Home | History | Annotate | Download | only in sqlite3

Lines Matching refs:Rg

5 function mh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,l=0;h=k[a>>2]|0;l=k[a+80>>2]|0;e=a+44|0;do if(!(k[e>>2]|0)){k[h+52>>2]=l;b=k[h+236>>2]|0;if(b){a=b+8|0;if(!(j[a>>1]&9312)){j[a>>1]=1;break}else{Ag(b);break}}}else{f=h+65|0;g=i[f>>0]|0;a=k[3164]|0;if(a)sc[a&3]();d=h+236|0;a=k[d>>2]|0;do if(!a){a=rh(h,40,0)|0;if(!a){k[d>>2]=a;break}else{b=a+0|0;c=b+40|0;do{i[b>>0]=0;b=b+1|0}while((b|0)<(c|0));j[a+8>>1]=1;k[a+32>>2]=h;k[d>>2]=a;c=8;break}}else c=8;while(0);if((c|0)==8)ah(a,k[e>>2]|0,-1,1,-1)|0;a=k[3166]|0;if(a)sc[a&3]();i[f>>0]=g;k[h+52>>2]=l}while(0);return l|0}function nh(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();h=m;k[f>>2]=0;if(!((Mh(a)|0)==0|(b|0)==0)){h=k[a+20>>2]|0;if((h|0)>0){i=k[a+16>>2]|0;l=0;do{j=k[i+(l<<4)+4>>2]|0;if(j)k[(k[j+4>>2]|0)+4>>2]=k[j>>2];l=l+1|0}while((l|0)!=(h|0))}h=Kn(a,b,c,d,e,f,g)|0;if((h|0)==17){rd(k[f>>2]|0)|0;h=Kn(a,b,c,d,e,f,g)|0}}else{k[h>>2]=105892;k[h+4>>2]=10788;gd(21,13648,h);h=21}r=m;return h|0}function oh(a,b){a=a|0;b=b|0;var c=0,d=0;d=a+68|0;if((j[d>>1]|0)>0){c=b+60|0;b=a+60|0;a=0;do{dm((k[c>>2]|0)+(a*40|0)|0,(k[b>>2]|0)+(a*40|0)|0);a=a+1|0}while((a|0)<(j[d>>1]|0))}return}function ph(a,b){a=a|0;b=b|0;var c=0,d=0;if(b){c=b;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;d=(c-b&1073741823)+1|0;c=rh(a,d,0)|0;if(c)pw(c|0,b|0,d|0)|0;else c=0}else c=0;return c|0}function qh(a,b){a=a|0;b=b|0;var c=0,d=0;d=k[a+8>>2]|0;if((b|0)>=1){kh(d,b)|0;j[d+8>>1]=8192;k[d>>2]=k[a+4>>2];c=d+16|0;a=k[c>>2]|0;if(!a)c=0;else{kw(a|0,0,b|0)|0;c=k[c>>2]|0}}else{c=d+8|0;if(!(j[c>>1]&9312))j[c>>1]=1;else Ag(d);k[d+16>>2]=0;c=0}return c|0}function rh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:do if(a){f=a+65|0;if(!(i[f>>0]|0)){do if(i[a+250>>0]|0){if(0<c>>>0|(0==(c|0)?(m[a+248>>1]|0)>>>0<b>>>0:0)){d=a+264|0;k[d>>2]=(k[d>>2]|0)+1;break}e=a+272|0;d=k[e>>2]|0;if(!d){d=a+268|0;k[d>>2]=(k[d>>2]|0)+1;break}k[e>>2]=k[d>>2];c=a+252|0;e=k[c>>2]|0;b=e+1|0;k[c>>2]=b;c=a+260|0;k[c>>2]=(k[c>>2]|0)+1;c=a+256|0;if((e|0)>=(k[c>>2]|0))k[c>>2]=b;break a}while(0);d=vg(b,c)|0;if(!d){i[f>>0]=1;d=0}}else d=0}else d=vg(b,c)|0;while(0);return d|0}function sh(a,b){a=a|0;b=b|0;var c=0,d=0;do if(a){c=k[a+20>>2]|0;if((c|0)!=0?((b|0)>-1?(m[a+84>>1]|0|0)>(b|0):0):0){c=c+(b*40|0)|0;break}c=k[a>>2]|0;if((c|0)!=0?(k[c+52>>2]=25,d=k[c+236>>2]|0,(d|0)!=0):0){c=d+8|0;if(!(j[c>>1]&9312)){j[c>>1]=1;c=41496;break}else{Ag(d);c=41496;break}}else c=41496}else c=41496;while(0);return c|0}function th(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0;g=uh(a,b)|0;if(!g)if(!c)g=0;else{b=(k[a+60>>2]|0)+((b+-1|0)*40|0)|0;g=ah(b,c,d,f,e)|0;if((g|0)!=0|f<<24>>24==0)b=g;else b=bm(b,l[(k[a>>2]|0)+62>>0]|0)|0;g=k[a>>2]|0;k[g+52>>2]=b;e=k[g+236>>2]|0;do if(e){d=e+8|0;if(!(j[d>>1]&9312)){j[d>>1]=1;break}else{Ag(e);g=k[a>>2]|0;break}}while(0);g=Tg(g,b)|0}else{d=e;if(!((d|0)==0|(d|0)==-1))hc[e&31](c)}return g|0}function uh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g;do if(!(fh(a)|0)){if((k[a+40>>2]|0)==-1108210269?(k[a+76>>2]|0)<=-1:0){if((b|0)>=1?(j[a+68>>1]|0)>=(b|0):0){f=b+-1|0;e=k[a+60>>2]|0;d=e+(f*40|0)|0;c=e+(f*40|0)+8|0;if(!((j[c>>1]&9312)==0?(k[e+(f*40|0)+24>>2]|0)==0:0))Vg(d);j[c>>1]=1;d=k[a>>2]|0;k[d+52>>2]=0;d=k[d+236>>2]|0;do if(d){c=d+8|0;if(!(j[c>>1]&9312)){j[c>>1]=1;break}else{Ag(d);break}}while(0);e=a+88|0;c=j[e>>1]|0;if(!(c&256)){c=0;break}d=k[a+188>>2]|0;if((b|0)<33){if(!((d&1<<f|0)!=0|(d|0)==-1)){c=0;break}}else if((d|0)!=-1){c=0;break}j[e>>1]=c|8;c=0;break}c=k[a>>2]|0;k[c+52>>2]=25;c=k[c+236>>2]|0;if(!c){c=25;break}d=c+8|0;if(!(j[d>>1]&9312)){j[d>>1]=1;c=25;break}else{Ag(c);c=25;break}}d=k[a>>2]|0;k[d+52>>2]=21;d=k[d+236>>2]|0;do if(d){c=d+8|0;if(!(j[c>>1]&9312)){j[c>>1]=1;break}else{Ag(d);break}}while(0);k[e>>2]=k[a+168>>2];gd(21,41456,e);k[e>>2]=69987;k[e+4>>2]=10788;gd(21,13648,e);c=21}else{k[e>>2]=69979;k[e+4>>2]=10788;gd(21,13648,e);c=21}while(0);r=g;return c|0}function vh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a:do if(!((a|0)==0|(b|0)==0)?(f=j[a+70>>1]|0,f<<16>>16>0):0){d=k[a+64>>2]|0;a=0;while(1){e=k[d+(a<<2)>>2]|0;if(((e|0)!=0?(ew(e,b,c)|0)==0:0)?(i[e+c>>0]|0)==0:0)break;a=a+1|0;if((a|0)>=(f<<16>>16|0)){a=0;break a}}a=a+1|0}else a=0;while(0);return a|0}function wh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h+8|0;f=h;c=i[a+10>>0]|0;d=a+16|0;e=a+12|0;do if(Yl(k[d>>2]|0,g,k[e>>2]|0,c)|0){if(!(Zl(k[d>>2]|0,f,k[e>>2]|0,c)|0)){e=f;d=k[e+4>>2]|0;c=a;k[c>>2]=k[e>>2];k[c+4>>2]=d;c=a+8|0;j[c>>1]=m[c>>1]|0|4;break}p[a>>3]=+p[g>>3];c=a+8|0;j[c>>1]=m[c>>1]|0|8;if(b)im(a)}while(0);r=h;return}function xh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;if(!(Ln(a)|0)){e=di(k[a>>2]|0,c,d)|0;if(!e){e=(b|0)!=0?41368:41384;if(!d){k[f>>2]=e;k[f+4>>2]=c;yh(a,27680,f)}else{k[f>>2]=e;k[f+4>>2]=d;k[f+8>>2]=c;yh(a,27664,f)}i[a+17>>0]=1;e=0}}else e=0;r=g;return e|0}function yh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();f=e;d=k[a>>2]|0;k[f>>2]=c;c=$k(d,b,f)|0;if(!(i[d+68>>0]|0)){b=a+64|0;k[b>>2]=(k[b>>2]|0)+1;b=a+4|0;rg(d,k[b>>2]|0);k[b>>2]=c;k[a+12>>2]=1}else rgrg(b,k[a+112>>2]|0);Sk(b,k[a+316>>2]|0)}return}function Ih(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=i[a+73>>0]|0;do if(!(f<<24>>24))e=4;else{if((f&255)>2?(e=Pn(a)|0,(e|0)!=0):0)break;e=Qm(a,b,c,d,0)|0}while(0);return e|0}function Jh(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,l=0,m=0,n=0,o=0;i=r;r=r+16|0;if((r|0)>=(s|0))ka();g=i;if(!a){k[g>>2]=77646;k[g+4>>2]=10788;gd(21,13648,g);d=21}else{h=k[a+24>>2]|0;g=a+20|0;f=k[g>>2]|0;do if((d|c|0)>=0?(m=ow(d|0,((d|0)<0)<<31>>31|0,c|0,((c|0)<0)<<31>>31|0)|0,o=L,l=k[a+4>>2]|0,n=((l|0)<0)<<31>>31,!((o|0)>(n|0)|(o|0)==(n|0)&m>>>0>l>>>0)):0)if(f){d=uc[e&31](k[a+16>>2]|0,(k[a+8>>2]|0)+d|0,c,b)|0;if((d|0)==4){Sg(f)|0;k[g>>2]=0;d=4;break}else{k[f+80>>2]=d;break}}else d=4;else d=1;while(0);k[h+52>>2]=d;f=k[h+236>>2]|0;do if(f){g=f+8|0;if(!(j[g>>1]&9312)){j[g>>1]=1;break}else{Ag(f);break}}while(0);d=Tg(h,d)|0}r=i;return d|0}function Kh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=a+73|0;e=i[f>>0]|0;if((e&255)>2){e=Pn(a)|0;if(!e){e=i[f>>0]|0;g=4}}else g=4;if((g|0)==4)if(e<<24>>24==1){Qn(k[a+4>>2]|0,k[a+60>>2]|0,a)|0;if(!(i[a+72>>0]&1))e=8;else e=Qm(a,b,c,d,1)|0}else e=4;return e|0}function Lh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+16|0;if((r|0)>=(s|0))ka();w=y+4|0;x=y;k[w>>2]=a;k[x>>2]=b;p=l[c+1>>0]|0;q=l[c>>0]|0;v=i[c+3>>0]|0;u=(d|0)!=0;if(u)t=d;else t=l[c+2>>0]|0;m=v<<24>>24!=0;h=0;a:while(1){while(1){f=Rn(w)|0;if(!f){o=60;break a}if((f|0)==(q|0)){o=7;break a}if((f|0)!=(t|0))break;if(u){o=40;break}b=Rn(x)|0;if(!b){e=0;break a}g=Rn(w)|0;if((g|0)==94){g=Rn(w)|0;e=1}else e=0;if((g|0)==93){g=Rn(w)|0;j=(b|0)==93&1}else j=0;f=(g|0)==0;if((g|0)!=93&(f^1)){f=0;while(1){if(((g|0)==45?(n=i[k[w>>2]>>0]|0,n<<24>>24!=93):0)?n<<24>>24!=0&(f|0)!=0:0){g=b>>>0<f>>>0|b>>>0>(Rn(w)|0)>>>0;a=0;j=g?j:1}else{a=g;j=(b|0)==(g|0)?1:j}g=Rn(w)|0;f=(g|0)==0;if(!((g|0)!=93&(f^1))){g=f;break}else f=a}}else g=f;if(g|(j|0)==(e|0)){e=0;break a}}if((o|0)==40){o=0;f=Rn(w)|0;if(!f){e=0;break}h=k[w>>2]|0}g=Rn(x)|0;if((f|0)==(g|0))continue;if(m&f>>>0<128&g>>>0<128?(i[9328+(f&255)>>0]|0)==(i[9328+(g&255)>>0]|0):0)continue;if((f|0)!=(p|0)){e=0;break}if(!((g|0)!=0?(k[w>>2]|0)!=(h|0):0)){e=0;break}}b:do if((o|0)==7){b=Rn(w)|0;a=(b|0)==(p|0);if((b|0)==(q|0)|a)do{if(a?(Rn(x)|0)==0:0){e=0;break b}b=Rn(w)|0;a=(b|0)==(p|0)}while((b|0)==(q|0)|a);if(b){do if((b|0)==(t|0)){if(u){b=Rn(w)|0;if(!b){e=0;break b}else break}e=k[x>>2]|0;c:do if(!(i[e>>0]|0))e=0;else{a=k[w>>2]|0;while(1){if(Lh(a+-1|0,e,c,0)|0)break;b=e+1|0;k[x>>2]=b;if((l[e>>0]|0)>191?(i[b>>0]&-64)<<24>>24==-128:0){while(1){e=e+2|0;if((i[e>>0]&-64)<<24>>24==-128){o=b;b=e;e=o}else break}k[x>>2]=e}else e=b;if(!(i[e>>0]|0)){e=0;break c}}e=(i[e>>0]|0)!=0}while(0);e=e&1;break b}while(0);if(b>>>0>=129){e=Rn(x)|0;if(!e){e=0;break}a=k[w>>2]|0;while(1){if((e|0)==(b|0)?(Lh(a,k[x>>2]|0,c,d)|0)!=0:0){e=1;break b}e=Rn(x)|0;if(!e){e=0;break b}}}if(!(v<<24>>24)){j=b;h=b}else{h=b&255;j=l[9328+h>>0]|0;h=((l[10368+h>>0]|-33)^32)&b}a=k[x>>2]|0;e=a+1|0;k[x>>2]=e;b=i[a>>0]|0;if(!(b<<24>>24))e=0;else{g=k[w>>2]|0;f=b&255;while(1){if((f|0)==(j|0)|(f|0)==(h|0)?(Lh(g,e,c,d)|0)!=0:0){e=1;break b}b=a+2|0;k[x>>2]=b;a=i[e>>0]|0;if(!(a<<24>>24)){e=0;break}else{o=e;f=a&255;e=b;a=o}}}}else e=1}else if((o|0)==60)e=(i[k[x>>2]>>0]|0)==0&1;while(0);r=y;return e|0}function Mh(a){a=a|0;var b=0,c=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;do if(a){a=k[a+76>>2]|0;if((a|0)==-1607883113){a=1;break}else if((a|0)==1266094736|(a|0)==-264537850){k[b>>2]=41352;gd(21,15256,b);a=0;break}else{k[b>>2]=15248;gd(21,15256,b);a=0;break}}else{k[b>>2]=20304;gd(21,15256,b);a=0}while(0);r=c;return a|0}function Nh(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();g=l;h=l+8|0;k[h>>2]=0;k[e>>2]=0;if((Mh(a)|0)==0|(b|0)==0){k[g>>2]=106003;k[g+4>>2]=10788;gd(21,13648,g);d=21}else{a:do if((c|0)>-1)if((c|0)>0){g=0;do{if((i[b+g>>0]|0)==0?(i[b+(g|1)>>0]|0)==0:0)break a;g=g+2|0}while((g|0)<(c|0))}else g=0;else g=c;while(0);j=Wh(a,b,g)|0;if(j){d=nh(a,j,-1,d,0,e,h)|0;g=k[h>>2]|0;if((g|0)!=0&(f|0)!=0){e=Sn(j,g-j|0)|0;if((e|0)>0){c=0;g=b;do{g=(i[g+1>>0]&-8)<<24>>24==-40?g+4|0:g+2|0;c=c+1|0}while((c|0)!=(e|0))}else g=b;k[f>>2]=b+(g-b)}}else d=0;rg(a,j);d=Tg(a,d)|0}r=l;return d|0}function Oh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();m=p;n=a+12|0;f=k[n>>2]|0;l=(c|0)!=0;e=b<<((f|0)==0&l&1);o=a+20|0;h=a+8|0;g=k[h>>2]|0;if((e+(k[o>>2]|0)|0)>>>0>g>>>0){e=e+(g<<1)|0;k[h>>2]=e;f=k[a>>2]|0;if((Qc()|0)==0?(j=wg(f,e<<2,0)|0,(j|0)!=0):0){k[a>>2]=j;f=k[n>>2]|0;j=5}else j=21}else j=5;a:do if((j|0)==5){e=a+16|0;if(!f){k[e>>2]=b;if((b|0)>0){e=0;do{k[m>>2]=k[d+(e<<2)>>2];f=dd(10344,m)|0;if(!f){j=21;break a}h=k[o>>2]|0;k[o>>2]=h+1;k[(k[a>>2]|0)+(h<<2)>>2]=f;e=e+1|0}while((e|0)<(b|0))}}else if((k[e>>2]|0)!=(b|0)){e=a+4|0;$c(k[e>>2]|0);o=dd(40912,m)|0;k[e>>2]=o;k[a+24>>2]=1;e=1;break}if(l){if((b|0)>0){h=0;do{g=c+(h<<2)|0;e=k[g>>2]|0;if(!e)e=0;else{f=e;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;f=(f-e&1073741823)+1|0;e=Yc(f)|0;if(!e){j=21;break a}pw(e|0,k[g>>2]|0,f|0)|0}m=k[o>>2]|0;k[o>>2]=m+1;k[(k[a>>2]|0)+(m<<2)>>2]=e;h=h+1|0}while((h|0)<(b|0))}k[n>>2]=(k[n>>2]|0)+1;e=0}else e=0}while(0);if((j|0)==21){k[a+24>>2]=7;e=1}r=p;return e|0}function Ph(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();j=m;if(!b)g=0;else{f=b;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;g=f-b&1073741823}h=a+308|0;f=gn(h,b,j)|0;if((f|0)!=0?(k[f+8>>2]|0)!=0:0){k[j>>2]=114188;k[j+4>>2]=10788;gd(21,13648,j);f=21}else{f=rh(a,g+17|0,0)|0;if((f|0)!=0?(l=f+16|0,pw(l|0,b|0,g+1|0)|0,k[f+4>>2]=l,k[f>>2]=c,k[f+8>>2]=d,k[f+12>>2]=e,l=Nk(h,l,f)|0,(l|0)!=0):0){i[a+65>>0]=1;rg(a,l);f=0}else f=0}f=Tg(a,f)|0;if((f|0)!=0&(e|0)!=0)hc[e&31](d);r=m;return f|0}function Qh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=r;r=r+16|0;if((r|0)>=(s|0))ka();x=A;l=A+8|0;y=k[a>>2]|0;h=k[y+92>>2]|0;if(!(k[y+148>>2]|0))k[y+240>>2]=0;z=a+12|0;k[z>>2]=0;n=a+480|0;k[n>>2]=b;t=vg(1612,0)|0;if(t){k[t>>2]=-1;o=y+250|0;p=i[o>>0]|0;if(k[y+276>>2]|0)i[o>>0]=1;q=y+65|0;m=a+504|0;d=a+508|0;j=y+240|0;g=0;f=-1;a:while(1){while(1){if(i[q>>0]|0){v=19;break a}e=b+g|0;if(!(i[e>>0]|0)){v=19;break a}k[m>>2]=e;e=Hn(e,l)|0;k[d>>2]=e;g=e+g|0;if((g|0)>(h|0)){v=12;break a}e=k[l>>2]|0;if((e|0)==1){f=e;v=17;break}else if((e|0)==150){v=16;break a}else if((e|0)!=151){f=e;break}if(k[j>>2]|0){v=15;break a}}if((v|0)==17){v=0;k[n>>2]=b+g};k[x+0>>2]=k[m+0>>2];k[x+4>>2]=k[m+4>>2];Tn(t,f,x,a);f=k[l>>2]|0;if(k[z>>2]|0){v=19;break}}if((v|0)==12){k[z>>2]=18;v=19}else if((v|0)==15){yh(a,20384,x);k[z>>2]=9;v=19}else if((v|0)==16){rg(y,k[c>>2]|0);k[x>>2]=m;d=zh(y,20400,x)|0;k[c>>2]=d;d=1}if((v|0)==19){g=b+g|0;if((i[g>>0]|0)==0?(k[z>>2]|0)==0:0){if((f|0)!=1){k[x+0>>2]=k[m+0>>2];k[x+4>>2]=k[m+4>>2];Tn(t,1,x,a);k[n>>2]=g};k[x+0>>2]=k[m+0>>2];k[x+4>>2]=k[m+4>>2];Tn(t,0,x,a);d=0}else d=0}if((k[t>>2]|0)>-1)do Un(t);while((k[t>>2]|0)>-1);$c(t);i[o>>0]=p;if(!(i[q>>0]|0)){f=k[z>>2]|0;if(!((f|0)==101|(f|0)==0)){u=f;v=29}}else{k[z>>2]=7;u=7;v=29}if((v|0)==29?(w=a+4|0,(k[w>>2]|0)==0):0){if((u|0)!=516){f=u&255;if(f>>>0>26|(f|0)==2)f=16328;else f=k[15488+(f<<2)>>2]|0}else f=16344;k[x>>2]=f;ih(w,y,10344,x)}f=a+4|0;e=k[f>>2]|0;if(e){k[c>>2]=e;c=k[z>>2]|0;k[x>>2]=e;gd(c,10344,x);k[f>>2]=0;d=d+1|0}f=a+8|0;e=k[f>>2]|0;if(((e|0)!=0?(k[a+64>>2]|0)>0:0)?(i[a+18>>0]|0)==0:0){Ul(e);k[f>>2]=0}if(!(i[a+18>>0]|0)){c=a+400|0;rg(y,k[c>>2]|0);k[c>>2]=0;k[a+396>>2]=0}$c(k[a+520>>2]|0);if(!(i[a+451>>0]|0))pg(y,k[a+484>>2]|0);if(i[a+449>>0]|0)Vn(y,k[a+532>>2]|0);og(y,k[a+488>>2]|0);f=k[a+444>>2]|0;g=a+472|0;e=k[g>>2]|0;if((f|0)>0)do{f=f+-1|0;rg(y,k[e+(f<<2)>>2]|0);e=k[g>>2]|0}while((f|0)>0);rg(y,e);f=a+404|0;e=k[f>>2]|0;if(e)do{k[f>>2]=k[e>>2];rg(y,e);e=k[f>>2]|0}while((e|0)!=0);f=a+524|0;e=k[f>>2]|0;if(e)do{k[f>>2]=k[e+72>>2];pg(y,e);e=k[f>>2]|0}while((e|0)!=0);if((d|0)>0?(k[z>>2]|0)==0:0)k[z>>2]=1}else{i[y+65>>0]=1;d=7}r=A;return d|0}function Rh(a){a=a|0;if(a){if(!((j[a+8>>1]&9312)==0?(k[a+24>>2]|0)==0:0))Vg(a);rg(k[a+32>>2]|0,a)}return}function Sh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0;if(!(k[a+252>>2]|0)){n=a+251|0;if(i[n>>0]|0)$c(k[a+276>>2]|0);g=c&-8;e=(g|0)<5?0:g;f=(d|0)<0?0:d;if(!((e|0)==0|(f|0)==0))if(!b){c=k[3164]|0;if(c)sc[c&3]();c=ha(e,f)|0;c=vg(c,((c|0)<0)<<31>>31)|0;d=k[3166]|0;if(d)sc[d&3]();if(!c)c=0;else f=(qc[k[8744+48>>2]&127](c)|0)/(g|0)|0}else c=b;else{e=0;c=0}d=a+276|0;k[d>>2]=c;m=a+272|0;k[m>>2]=0;j[a+248>>1]=e;if(!c){k[d>>2]=a;k[a+280>>2]=a;i[a+250>>0]=0;c=0}else{if((f|0)>0){d=ha(e,f)|0;l=c+(ha(e,f+-1|0)|0)|0;h=0;g=c;while(1){f=f+-1|0;k[g>>2]=h;if((f|0)<=0)break;else{h=g;g=g+e|0}}k[m>>2]=l;c=c+d|0}k[a+280>>2]=c;i[a+250>>0]=1;c=(b|0)==0&1}i[n>>0]=c;c=0}else c=5;return c|0}function Th(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();n=o;do if(!a)c=0;else{h=a+76|0;l=k[h>>2]|0;if(!((l|0)==1266094736|(l|0)==-1607883113|(l|0)==-264537850)){k[n>>2]=15248;gd(21,15256,n);k[n>>2]=128509;k[n+4>>2]=10788;gd(21,13648,n);c=21;break}j=a+20|0;c=k[j>>2]|0;a:do if((c|0)>0){l=a+16|0;d=k[l>>2]|0;f=0;do{e=k[d+(f<<4)+4>>2]|0;if(e)k[(k[e+4>>2]|0)+4>>2]=k[e>>2];f=f+1|0}while((f|0)!=(c|0));g=0;while(1){c=k[d+(g<<4)+12>>2]|0;if((c|0)!=0?(m=k[c+16>>2]|0,(m|0)!=0):0){c=m;do{d=k[c+8>>2]|0;b:do if(i[d+44>>0]&16){e=d+60|0;while(1){d=k[e>>2]|0;if(!d)break b;f=d+24|0;if((k[d>>2]|0)==(a|0))break;else e=f}k[e>>2]=k[f>>2];Fn(d)}while(0);c=k[c>>2]|0}while((c|0)!=0)}c=g+1|0;if((c|0)>=(k[j>>2]|0))break a;d=k[l>>2]|0;g=c}}while(0);wl(a);Wn(a,68);if((b|0)==0?(Ol(a)|0)!=0:0){zg(a,5,16368,n);c=5;break}k[h>>2]=1691352191;Rgrg(n,b);d=g+(f+c)|0;b=q}rg(n,h);c=f}e=e+c|0}while((i[e>>0]|0)!=0)}while(0);k[o>>2]=(b|0)!=0?b:10360;k[o+4>>2]=d;$g(a,zh(n,19456,o)|0,-1,1,75);rgrg(x,k[y>>2]|0);d=zh(x,15776,v)|0;k[y>>2]=d;w=42;break}d=k[y>>2]|0;if(d){w=43;break}k[v>>2]=u;d=zh(x,29568,v)|0;k[y>>2]=d;w=42;break}n=k[b>>2]|0;k[a+20>>2]=1;i[a+25>>0]=1;ah(k[a>>2]|0,n,-1,1,-1)|0;$c(n)}else{k[v>>2]=e;d=zh(x,29416,v)|0;k[y>>2]=d;b=0;w=42}while(0);if((w|0)==42)if(!d){q=b;w=44}else w=43;if((w|0)==43){k[a+20>>2]=1;i[a+25>>0]=1;ah(k[a>>2]|0,d,-1,1,-1)|0;rg(x,k[y>>2]|0);q=b;w=44}if((w|0)==44?(q|0)!=0:0)Ud(a,q);r=z;return}function gk(a){a=a|0;if(a){nk(a,0)|0;$c(k[a+24>>2]|0);zo(a)}return 0}function hk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0;l=a+12|0;f=c&131071;j=b;h=e;i=0;a:while(1){while(1){e=hb(k[l>>2]|0,d|0,0)|0;if(!((e|0)==(d|0)&(((e|0)<0)<<31>>31|0)==(h|0))){d=4;break a}g=fc[k[47552+100>>2]&63](k[l>>2]|0,j,f)|0;if((f|0)==(g|0)){e=i;d=13;break a}if((g|0)>=0){e=g;break}e=Mb()|0;e=k[e>>2]|0;if((e|0)!=4){f=g;d=10;break a}}if((e|0)<=0){f=0;e=i;d=13;break}g=ow(e|0,((e|0)<0)<<31>>31|0,d|0,h|0)|0;f=f-e|0;j=j+e|0;h=L;d=g;i=e+i|0}do if((d|0)==4)if((e|0)==-1){e=Mb()|0;k[a+20>>2]=k[e>>2];e=-1;break}else{k[a+20>>2]=0;e=-1;break}else if((d|0)==10){k[a+20>>2]=e;e=0;d=13}while(0);if((d|0)==13)e=e+f|0;if((e|0)!=(c|0))if((e|0)<0)e=266;else{k[a+20>>2]=0;kw(b+e|0,0,c-e|0)|0;e=522}else e=0;return e|0}function ik(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;a:do if((c|0)>0){g=a+12|0;h=a+20|0;f=c;while(1){c=Ao(k[g>>2]|0,d,e,b,f,h)|0;if((c|0)<=0)break;f=f-c|0;d=ow(c|0,((c|0)<0)<<31>>31|0,d|0,e|0)|0;if((f|0)<=0){c=0;break a}else{b=b+c|0;e=L}}if((c|0)<0?(k[h>>2]|0)!=28:0){c=778;break}k[a+20>>2]=0;c=13}else c=0;while(0);return c|0}function jk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=k[a+40>>2]|0;if((d|0)>0){e=((d|0)<0)<<31>>31;c=ow(b|0,c|0,-1,-1)|0;c=ow(c|0,L|0,d|0,e|0)|0;b=L;d=ww(c|0,b|0,d|0,e|0)|0;d=iw(c|0,b|0,d|0,L|0)|0}else d=b;c=k[a+12>>2]|0;while(1){b=wc[k[47552+76>>2]&127](c,d)|0;if((b|0)>=0){d=6;break}b=Mb()|0;if((k[b>>2]|0)!=4){d=8;break}}if((d|0)==6)if(!b)b=0;else{b=Mb()|0;d=8}if((d|0)==8){k[a+20>>2]=k[b>>2];b=io(1546,47928,k[a+32>>2]|0,29004)|0}return b|0}function kk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();d=f;if(!(Lb(k[a+12>>2]|0)|0)){e=a+18|0;if(!(j[e>>1]&8))b=0;else{b=wc[k[47552+208>>2]&127](k[a+32>>2]|0,d)|0;c=k[d>>2]|0;if((b|0)==0&(c|0)>-1){Lb(c|0)|0;go(a,k[d>>2]|0,28974);b=0}else b=(b|0)==14?0:b;j[e>>1]=(m[e>>1]|0)&65527}}else{b=Mb()|0;k[a+20>>2]=k[b>>2];b=io(1034,48360,k[a+32>>2]|0,28960)|0}r=f;return b|0}function lk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=r;r=r+80|0;if((r|0)>=(s|0))ka();c=d;if(!(wc[k[47552+64>>2]&127](k[a+12>>2]|0,c)|0)){a=k[c+36>>2]|0;e=(a|0)==1;c=b;k[c>>2]=e?0:a;k[c+4>>2]=e?0:((a|0)<0)<<31>>31;c=0}else{c=Mb()|0;k[a+20>>2]=k[c>>2];c=1802}r=d;return c|0}function mk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=k[a+24>>2]|0;e=a+16|0;a:do if(!(i[e>>0]|0)){c=wc[k[47552+220>>2]&127](d,511)|0;if((c|0)>=0){i[e>>0]=b;break}d=Mb()|0;d=k[d>>2]|0;switch(d|0){case 1:{c=3;break}case 13:case 37:case 4:case 16:case 110:case 11:case 17:{c=5;break a}default:c=3850}k[a+20>>2]=d}else{i[e>>0]=b;bb(d|0,0)|0;c=0}while(0);return c|0}function nk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=k[a+24>>2]|0;e=a+16|0;a:do if((l[e>>0]|0|0)==(b|0))c=0;else{if((b|0)==1){i[e>>0]=1;c=0;break}do if((qc[k[47552+232>>2]&127](d)|0)<0){c=Mb()|0;b=k[c>>2]|0;if((b|0)==20){if((qc[k[47552+196>>2]&127](d)|0)>=0)break;b=k[c>>2]|0}d=(b|0)!=2;c=d?2058:0;if(!d)break a;k[a+20>>2]=b;break a}while(0);i[e>>0]=0;c=0}while(0);return c|0}function ok(a,b){a=a|0;b=b|0;if((l[a+16>>0]|0)>1)a=1;else a=(wc[k[47552+28>>2]&127](k[a+24>>2]|0,0)|0)==0&1;k[b>>2]=a;return 0}function pk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;j=r;r=r+80|0;if((r|0)>=(s|0))ka();e=j;a:do switch(b|0){case 1:{k[c>>2]=l[a+16>>0];d=0;break}case 10:{Bo(a,4,c);d=0;break}case 13:{Bo(a,16,c);d=0;break}case 20:{d=Co(a)|0;k[c>>2]=d;d=0;break}case 24:{d=0;break}case 16:{d=a+4|0;b=Yc(k[(k[d>>2]|0)+8>>2]|0)|0;if(!b)d=0;else{eo(k[(k[d>>2]|0)+8>>2]|0,b)|0;k[c>>2]=b;d=0}break}case 5:{b=c;c=k[b>>2]|0;b=k[b+4>>2]|0;d=a+40|0;if((k[d>>2]|0)>0){i=a+12|0;if(!(wc[k[47552+64>>2]&127](k[i>>2]|0,e)|0)){d=k[d>>2]|0;g=((d|0)<0)<<31>>31;c=ow(c|0,b|0,-1,-1)|0;c=ow(c|0,L|0,d|0,g|0)|0;h=L;g=ww(c|0,h|0,d|0,g|0)|0;g=iw(c|0,h|0,g|0,L|0)|0;h=L;c=k[e+36>>2]|0;d=((c|0)<0)<<31>>31;do if((h|0)>(d|0)|(h|0)==(d|0)&g>>>0>c>>>0){f=k[e+40>>2]|0;b=c+-1+(f<<1)|0;b=b+~((b|0)%(f|0)|0)|0;c=((b|0)<0)<<31>>31;d=a+20|0;if((c|0)<(h|0)|(c|0)==(h|0)&b>>>0<g>>>0){e=((f|0)<0)<<31>>31;do{a=(Ao(k[i>>2]|0,b,c,10360,1,d)|0)==1;b=ow(b|0,c|0,f|0,e|0)|0;c=L;if(!a){d=778;break a}}while((c|0)<(h|0)|(c|0)==(h|0)&b>>>0<g>>>0);b=ww(g|0,h|0,f|0,e|0)|0;if((b|0)==0&(L|0)==0)break}b=ow(g|0,h|0,-1,-1)|0;if((Ao(k[i>>2]|0,b,L,10360,1,d)|0)!=1){d=778;break a}}while(0);d=0}else d=1802}else d=0;break}case 6:{k[a+40>>2]=k[c>>2];d=0;break}case 12:{k[e>>2]=k[(k[a+4>>2]|0)+16>>2];d=dd(10344,e)|0;k[c>>2]=d;d=0;break}case 4:{k[c>>2]=k[a+20>>2];d=0;break}default:d=12}while(0);r=j;return d|0}function qk(a){a=a|0;return 4096}function rk(a){a=a|0;return (j[a+18>>1]&16)<<8|0}function sk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,l=0;i=k[a+36>>2]|0;f=k[i>>2]|0;l=(1<<c+b)-(1<<b)|0;a:do if(!(d&1)){g=k[f+32>>2]|0;f=(g|0)==0;if(d&4){if(f)d=0;else{d=0;f=g;do{if(l&(m[f+12>>1]|0)){e=5;break a}d=j[f+10>>1]|d;f=k[f+4>>2]|0}while((f|0)!=0)}if((l&(d&65535)|0)==0?(h=Do(a,0,b+120|0,c)|0,(h|0)!=0):0){e=h;break}e=i+10|0;j[e>>1]=m[e>>1]|0|l;e=0;break}if(!f){e=l&65535;d=g;do{if((m[d+12>>1]|0)&e){e=5;break a}if((m[d+10>>1]|0)&e){e=5;break a}d=k[d+4>>2]|0}while((d|0)!=0)}e=Do(a,1,b+120|0,c)|0;if(!e){e=i+12|0;j[e>>1]=m[e>>1]|0|l;e=0}}else{f=k[f+32>>2]|0;if(!f)d=0;else{d=0;do{if((f|0)!=(i|0))d=j[f+10>>1]|d;f=k[f+4>>2]|0}while((f|0)!=0)}if((d&65535&l|0)==0?(e=Do(a,2,b+120|0,c)|0,(e|0)!=0):0)break;d=(l|-65536)^65535;e=i+12|0;j[e>>1]=(m[e>>1]|0)&d;e=i+10|0;j[e>>1]=(m[e>>1]|0)&d;e=0}while(0);return e|0}function tk(a){a=a|0;return}function uk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=a+36|0;f=k[e>>2]|0;if(f){g=k[f>>2]|0;c=g+32|0;while(1){d=k[c>>2]|0;if((d|0)==(f|0))break;else c=d+4|0}k[c>>2]=k[f+4>>2];$c(f);k[e>>2]=0;d=g+28|0;c=(k[d>>2]|0)+-1|0;k[d>>2]=c;if(!c){if((b|0)!=0?(k[g+12>>2]|0)>-1:0)qc[k[47552+196>>2]&127](k[g+8>>2]|0)|0;Eo(a)}}return 0}function vk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;k[e>>2]=0;return 0}function wk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 0}function xk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();e=d;k[e>>2]=c;b=vb(a|0,b|0,e|0)|0;r=d;return b|0}function yk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=r;r=r+528|0;if((r|0)>=(s|0))ka();d=g;e=g+8|0;k[d>>2]=a;fd(512,e,10344,d)|0;a=lw(e|0)|0;a:do if((a|0)>1)while(1){c=a+-1|0;if((i[e+a>>0]|0)==47)break a;if((c|0)>1)a=c;else{a=c;break}}while(0);if((a|0)>0){i[e+a>>0]=0;a=fo(e,0,0)|0;k[b>>2]=a;if((a|0)>-1)a=0;else f=7}else{k[b>>2]=-1;f=7}if((f|0)==7){k[d>>2]=28919;k[d+4>>2]=10788;gd(14,14848,d);a=io(14,47896,e,28919)|0}r=g;return a|0}function zk(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Pb()|0))a=Vb(a|0,b|0,c|0)|0;else a=0;return a|0}function Ak(){return Bb(30)|0}function Bk(a){a=a|0;zo(a);return 0}function Ck(a,b){a=a|0;b=b|0;return 0}function Dk(a,b){a=a|0;b=b|0;return 0}function Ek(a,b){a=a|0;b=b|0;k[b>>2]=0;return 0}function Fk(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;ho(a);Hk(a,0)|0;e=k[a+8>>2]|0;if(e){if(k[e+24>>2]|0){b=a+28|0;d=k[b>>2]|0;c=e+28|0;k[d+8>>2]=k[c>>2];k[c>>2]=d;k[a+12>>2]=-1;k[b>>2]=0}c=e+16|0;b=(k[c>>2]|0)+-1|0;k[c>>2]=b;if(!b){Fo(a);f=e+36|0;b=k[f>>2]|0;c=e+32|0;d=k[c>>2]|0;if(!b)k[12178]=d;else k[b+32>>2]=d;b=k[c>>2]|0;if(b)k[b+36>>2]=k[f>>2];$c(e)}}zo(a);return 0}function Gk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();h=o;m=a+16|0;c=i[m>>0]|0;a:do if((c&255|0)<(b|0)){g=k[a+8>>2]|0;n=g+12|0;d=i[n>>0]|0;if(c<<24>>24!=d<<24>>24?(d&255)>2|(b|0)>1:0){c=5;break}e=(b|0)==1;do if(e)if((d+-1&255)<2){i[m>>0]=1;c=g+8|0;k[c>>2]=(k[c>>2]|0)+1;c=g+24|0;k[c>>2]=(k[c>>2]|0)+1;c=0;break a}else{d=h+8|0;k[d>>2]=1;j[h+2>>1]=0;l=10;break}else{d=h+8|0;k[d>>2]=1;j[h+2>>1]=0;if((b|0)==4)if((c&255)<3)l=10;else{f=d;l=14}else{e=d;l=24}}while(0);if((l|0)==10){j[h>>1]=e&1^1;k[h+4>>2]=k[2514];if(!(Go(a,h)|0)){f=d;l=14}else{d=Mb()|0;d=k[d>>2]|0;switch(d|0){case 13:case 37:case 4:case 16:case 110:case 11:{c=5;break a}case 1:{c=3;break}default:c=3850}k[a+20>>2]=d;break}}b:do if((l|0)==14)if(e){e=h+4|0;k[e>>2]=(k[2514]|0)+2;k[f>>2]=510;c:do if(!(Go(a,h)|0)){c=0;d=0}else{d=Mb()|0;d=k[d>>2]|0;switch(d|0){case 1:{c=3;d=1;break c}case 13:case 37:case 4:case 16:case 110:case 11:{c=5;break c}default:{c=3850;break c}}}while(0);k[e>>2]=k[2514];k[f>>2]=1;j[h>>1]=2;do if((Go(a,h)|0)!=0&(c|0)==0){d=Mb()|0;c=2058;d=k[d>>2]|0}else{if((c|0)==5){c=5;break a}else if(c)break;i[m>>0]=1;h=g+24|0;k[h>>2]=(k[h>>2]|0)+1;k[g+8>>2]=1;break b}while(0);k[a+20>>2]=d;break a}else{e=f;l=24}while(0);do if((l|0)==24){f=(b|0)==4;if(f)if((k[g+8>>2]|0)>1)c=5;else{j[h>>1]=1;d=k[2514]|0;l=29}else{j[h>>1]=1;d=k[2514]|0;if((b|0)==2){k[h+4>>2]=d+1;d=1;l=30}else l=29}if((l|0)==29){k[h+4>>2]=d+2;d=510;l=30}if((l|0)==30){k[e>>2]=d;if(!(Go(a,h)|0))break;d=Mb()|0;d=k[d>>2]|0;switch(d|0){case 13:case 37:case 4:case 16:case 110:case 11:{c=5;break}case 1:{c=3;l=33;break}default:{c=3850;l=33}}if((l|0)==33)k[a+20>>2]=d;if(!f)break a}i[m>>0]=3;i[n>>0]=3;break a}while(0);c=b&255;i[m>>0]=c;i[n>>0]=c;c=0}else c=0;while(0);r=o;return c|0}function Hk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();f=l;g=a+16|0;c=i[g>>0]|0;a:do if((c&255|0)>(b|0)){h=k[a+8>>2]|0;do if((c&255)>1){if((b|0)==1){j[f>>1]=0;e=f+2|0;j[e>>1]=0;c=f+4|0;k[c>>2]=(k[2514]|0)+2;d=f+8|0;k[d>>2]=510;if(Go(a,f)|0){c=Mb()|0;k[a+20>>2]=k[c>>2];c=2314;break a}}else{d=f+8|0;e=f+2|0;c=f+4|0}j[f>>1]=2;j[e>>1]=0;k[c>>2]=k[2514];k[d>>2]=2;if(!(Go(a,f)|0)){i[h+12>>0]=1;break}else{c=Mb()|0;k[a+20>>2]=k[c>>2];c=2058;break a}}while(0);if(!b){d=h+8|0;c=(k[d>>2]|0)+-1|0;k[d>>2]=c;do if(!c){j[f>>1]=2;j[f+2>>1]=0;k[f+8>>2]=0;k[f+4>>2]=0;if(!(Go(a,f)|0)){i[h+12>>0]=0;c=0;break}else{c=Mb()|0;k[a+20>>2]=k[c>>2];i[h+12>>0]=0;i[g>>0]=0;c=2058;break}}else c=0;while(0);e=h+24|0;d=(k[e>>2]|0)+-1|0;k[e>>2]=d;if(!d)Fo(a);if(c)break}i[g>>0]=b;c=0}else c=0;while(0);r=l;return c|0}function Ik(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=r;r=r+32|0;if((r|0)>=(s|0))ka();e=g;f=g+8|0;d=k[a+8>>2]|0;h=(l[d+12>>0]|0)>1;c=h&1;do if(!h)if(!(i[d+13>>0]|0)){j[f+2>>1]=0;k[f+4>>2]=(k[2514]|0)+1;k[f+8>>2]=1;j[f>>1]=1;h=k[11910]|0;d=k[a+12>>2]|0;k[e>>2]=f;if(!(fc[h&63](d,12,e)|0)){d=0;c=(j[f>>1]|0)==2?c:1;break}else{d=Mb()|0;k[a+20>>2]=k[d>>2];d=3594;break}}else{d=0;c=0}else{d=0;c=1}while(0);k[b>>2]=c;r=g;return d|0}function Jk(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=r;r=r+160|0;if((r|0)>=(s|0))ka();y=A;t=A+76|0;g=mc[k[47552+292>>2]&7]()|0;if((g|0)<32768)z=1;else z=(g|0)/32768|0;w=a+36|0;g=k[w>>2]|0;a:do if(!g){g=Yc(16)|0;if(!g)f=7;else{k[g+0>>2]=0;k[g+4>>2]=0;k[g+8>>2]=0;k[g+12>>2]=0;q=a+8|0;o=k[q>>2]|0;f=k[o+20>>2]|0;b:do if(!f){p=a+32|0;h=k[p>>2]|0;if((wc[k[47552+64>>2]&127](k[a+12>>2]|0,t)|0)!=0?(i[o+13>>0]|0)==0:0)f=1802;else x=8;c:do if((x|0)==8){f=lw(h|0)|0;l=f+42|0;u=Yc(l)|0;if(u){kw(u|0,0,l|0)|0;n=u+36|0;k[u+8>>2]=n;k[y>>2]=h;fd(f+6|0,n,48720,y)|0;f=u+12|0;k[f>>2]=-1;q=k[q>>2]|0;k[q+20>>2]=u;k[u>>2]=q;k[u+4>>2]=8;if(i[o+13>>0]|0){f=u;break b}if(!(kg(k[p>>2]|0,48728,0)|0))l=66;else{i[u+22>>0]=1;l=0}h=fo(n,l,k[t+12>>2]&511)|0;k[f>>2]=h;if((h|0)<0){k[y>>2]=29706;k[y+4>>2]=10788;gd(14,14848,y);f=io(14,47896,n,29706)|0;break}fc[k[47552+244>>2]&63](h,k[t+20>>2]|0,k[t+24>>2]|0)|0;do if(!(Do(a,1,128,1)|0)){f=k[f>>2]|0;do{h=wc[k[47552+76>>2]&127](f,0)|0;if((h|0)>=0){v=h;x=18;break}t=Mb()|0}while((k[t>>2]|0)==4);if((x|0)==18?(v|0)==0:0)break;f=io(4618,47928,n,29722)|0;if(f)break c}while(0);f=Do(a,0,128,1)|0;if(!f){f=u;break b}}else f=7}while(0);Eo(a);$c(g);if(f)break a;g=k[w>>2]|0;x=24;break a}while(0);k[g>>2]=f;x=f+28|0;k[x>>2]=(k[x>>2]|0)+1;k[a+36>>2]=g;x=f+32|0;k[g+4>>2]=k[x>>2];k[x>>2]=g;x=24}}else x=24;while(0);if((x|0)==24){u=k[g>>2]|0;w=z+b|0;w=w-((w|0)%(z|0)|0)|0;t=u+20|0;d:do if((m[t>>1]|0)<(w|0)){f=ha(w,c)|0;k[u+16>>2]=c;v=u+12|0;g=k[v>>2]|0;e:do if((g|0)>-1){if(wc[k[47552+64>>2]&127](g,y)|0){g=4874;break d}g=k[y+36>>2]|0;if((g|0)<(f|0)){if(!d){g=0;break d}g=(g|0)/4096|0;f=(f|0)/4096|0;if((g|0)<(f|0)){while(1){q=g<<12|4095;g=g+1|0;if((Ao(k[v>>2]|0,q,((q|0)<0)<<31>>31,10360,1,0)|0)!=1)break;if((g|0)>=(f|0))break e}g=io(4874,47976,k[u+8>>2]|0,29853)|0;break d}}}while(0);q=u+24|0;g=ad(k[q>>2]|0,w<<2)|0;if(g){k[q>>2]=g;g=m[t>>1]|0;if((g|0)<(w|0)){n=ha(z,c)|0;o=u+22|0;p=(z|0)>0;while(1){f=k[v>>2]|0;if((f|0)>-1){g=ha(g,c)|0;g=pc[k[47552+256>>2]&7](0,n,(i[o>>0]|0)!=0?1:3,1,f,g)|0;if((g|0)==(-1|0))break}else{g=Yc(c)|0;if(!g){g=7;break d}kw(g|0,0,c|0)|0}h=j[t>>1]|0;if(p){f=h&65535;l=0;do{a=g+(ha(l,c)|0)|0;k[(k[q>>2]|0)+(f+l<<2)>>2]=a;l=l+1|0}while((l|0)!=(z|0))}g=(h&65535)+z|0;j[t>>1]=g;g=g&65535;if((g|0)>=(w|0)){g=0;break d}}g=io(5386,48080,k[u+8>>2]|0,29880)|0}else g=0}else g=3082}else g=0;while(0);if((m[t>>1]|0)>(b|0))f=k[(k[u+24>>2]|0)+(b<<2)>>2]|0;else f=0;k[e>>2]=f;f=(i[u+22>>0]|0)!=0&(g|0)==0?8:g}r=A;return f|0}function Kk(a,b){a=a|0;b=b|0;var c=0;if(b)do{c=b;b=k[b+32>>2]|0;Lk(a,k[c+20>>2]|0);Sk(a,k[c+24>>2]|0);Rk(a,k[c+8>>2]|0,1);Mk(a,k[c+28>>2]|0);rg(a,c)}while((b|0)!=0);return}function Lk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(b){e=b+4|0;do if(!(k[e>>2]&16384)){Lk(a,k[b+12>>2]|0);Lk(a,k[b+16>>2]|0);c=k[e>>2]|0;if(c&65536){rg(a,k[b+8>>2]|0);c=k[e>>2]|0}d=b+20|0;if(!(c&2048)){Sk(a,k[d>>2]|0);break}else{Rk(a,k[d>>2]|0,1);break}}while(0);if(!(k[e>>2]&32768))rg(a,b)}return}function Mk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(b){e=b+4|0;c=k[b>>2]|0;if((k[e>>2]|0)>0){d=0;do{rg(a,k[c+(d<<3)>>2]|0);d=d+1|0;c=k[b>>2]|0}while((d|0)<(k[e>>2]|0))}rg(a,c);rg(a,b)}return}function Nk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();n=o;h=gn(a,b,n)|0;do if(!h)if(c){m=vg(16,0)|0;if(!m)d=c;else{k[m+12>>2]=b;k[m+8>>2]=c;j=a+4|0;f=(k[j>>2]|0)+1|0;k[j>>2]=f;if((f>>>0>9?(e=k[a>>2]|0,f>>>0>e<<1>>>0):0)?(g=f<<4>>>0>1024?128:f<<1,(g|0)!=(e|0)):0){d=k[3164]|0;if(d)sc[d&3]();j=vg(g<<3,0)|0;d=k[3166]|0;if(d)sc[d&3]();if(j){h=a+12|0;$c(k[h>>2]|0);k[h>>2]=j;h=(qc[k[8744+48>>2]&127](j)|0)>>>3;k[a>>2]=h;kw(j|0,0,h<<3|0)|0;c=a+8|0;f=k[c>>2]|0;k[c>>2]=0;if(f)do{g=k[f+12>>2]|0;e=i[g>>0]|0;if(!(e<<24>>24))e=0;else{c=e;e=0;do{g=g+1|0;e=e<<3^e^(l[9328+(c&255)>>0]|0);c=i[g>>0]|0}while(c<<24>>24!=0)}c=f;f=k[f>>2]|0;Ho(a,j+(((e>>>0)%(h>>>0)|0)<<3)|0,c)}while((f|0)!=0);d=i[b>>0]|0;if(!(d<<24>>24))d=0;else{f=d;d=0;do{b=b+1|0;d=d<<3^d^(l[9328+(f&255)>>0]|0);f=i[b>>0]|0}while(f<<24>>24!=0)}k[n>>2]=(d>>>0)%((k[a>>2]|0)>>>0)|0}}d=k[a+12>>2]|0;if(!d)d=0;else d=d+(k[n>>2]<<3)|0;Ho(a,d,m);d=0}}else d=0;else{f=h+8|0;d=k[f>>2]|0;if(c){k[f>>2]=c;k[h+12>>2]=b;break}g=k[n>>2]|0;f=k[h+4>>2]|0;e=k[h>>2]|0;if(!f)k[a+8>>2]=e;else{k[f>>2]=e;e=k[h>>2]|0}if(e)k[e+4>>2]=f;b=k[a+12>>2]|0;if(b){f=b+(g<<3)+4|0;if((k[f>>2]|0)==(h|0))k[f>>2]=e;n=b+(g<<3)|0;k[n>>2]=(k[n>>2]|0)+-1}$c(h);m=a+4|0;n=(k[m>>2]|0)+-1|0;k[m>>2]=n;if(!n)Tl(a)}while(0);r=o;return d|0}function Ok(a,b){a=a|0;b=b|0;Lk(a,k[b+36>>2]|0);rg(a,k[b+16>>2]|0);if(i[b+51>>0]&16)rg(a,k[b+32>>2]|0);rg(a,b);return}function Pk(a,b){a=a|0;b=b|0;var c=0;if(b){c=k[b+28>>2]|0;Lk(a,k[c+20>>2]|0);Sk(a,k[c+24>>2]|0);Rk(a,k[c+8>>2]|0,1);Lk(a,k[b+12>>2]|0);rg(a,b)}return}function Qk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=b+4|0;c=k[e>>2]|0;if(c){b=b+38|0;if((j[b>>1]|0)>0){d=0;while(1){rg(a,k[c>>2]|0);Lk(a,k[c+4>>2]|0);rg(a,k[c+8>>2]|0);rg(a,k[c+12>>2]|0);rg(a,k[c+16>>2]|0);d=d+1|0;if((d|0)>=(j[b>>1]|0))break;else c=c+24|0}c=k[e>>2]|0}rgrg(a,b);if(!c)break;else d=0}}return}function Sk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(b){c=b+4|0;if((k[b>>2]|0)>0){d=0;e=k[c>>2]|0;while(1){Lk(a,k[e>>2]|0);rg(a,k[e+4>>2]|0);rg(a,k[e+8>>2]|0);d=d+1|0;if((d|0)>=(k[b>>2]|0))break;else e=e+20|0}}rg(a,k[c>>2]|0);rg(a,b)}return}function Tk(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=b+60|0;c=k[g>>2]|0;k[g>>2]=0;a:do if(!c)b=0;else{b=0;do{while(1){e=k[c>>2]|0;d=c+24|0;f=c;c=k[d>>2]|0;if((e|0)==(a|0)){b=f;break}e=e+332|0;k[d>>2]=k[e>>2];k[e>>2]=f;if(!c)break a}k[g>>2]=b;k[d>>2]=0}while((c|0)!=0)}while(0);return b|0}function Uk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if((b|0)!=0?(d=b+(c*20|0)|0,(c|0)>0):0){c=b;do{Nn(a,i[c+1>>0]|0,k[c+16>>2]|0);c=c+20|0}while(c>>>0<d>>>0)}rg(a,b);return}function Vk(a,b){a=a|0;b=b|0;do if(!a)b=qc[k[8744+48>>2]&127](b)|0;else{if((k[a+276>>2]|0)>>>0<=b>>>0?(k[a+280>>2]|0)>>>0>b>>>0:0){b=m[a+248>>1]|0;break}b=qc[k[8744+48>>2]&127](b)|0}while(0);a=k[a+520>>2]|0;k[a>>2]=(k[a>>2]|0)+b;return}function Wk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=k[a+(b<<2)>>2]|0;a:do if(!a)a=0;else while(1){b=k[a+24>>2]|0;if((Kc(b,c,d)|0)==0?(i[b+d>>0]|0)==0:0)break a;a=k[a+28>>2]|0;if(!a){a=0;break}}while(0);return a|0}function Xk(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=a+12|0;e=k[d>>2]|0;f=e+c|0;if((f|0)<(k[a+16>>2]|0)){k[d>>2]=f;pw((k[a+8>>2]|0)+e|0,b|0,c|0)|0}else Jo(a,b,c);return}function Yk(a){a=a|0;var b=0,c=0;c=a+4|0;b=k[c>>2]|0;if((k[a>>2]|0)>(b|0)){k[c>>2]=b+1;c=_g(k[(k[a+8>>2]|0)+(b<<2)>>2]|0)|0;b=L}else{b=0;c=0}L=b;return c|0}function Zk(a){a=a|0;var b=0,c=0;b=a+4|0;c=k[b>>2]|0;if((k[a>>2]|0)>(c|0)){k[b>>2]=c+1;b=Xg(k[(k[a+8>>2]|0)+(c<<2)>>2]|0,1)|0}else b=0;return b|0}function _k(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;e=a+12|0;g=k[e>>2]|0;g=ow(g|0,((g|0)<0)<<31>>31|0,b|0,((b|0)<0)<<31>>31|0)|0;j=L;f=k[a+16>>2]|0;h=((f|0)<0)<<31>>31;if((j|0)<(h|0)|(j|0)==(h|0)&g>>>0<f>>>0){if((b|0)>0)d=4}else{b=Ko(a,b)|0;if((b|0)>=1)d=4}if((d|0)==4){a=a+8|0;do{b=b+-1|0;d=k[e>>2]|0;k[e>>2]=d+1;i[(k[a>>2]|0)+d>>0]=c}while((b|0)>0)}return}function $k(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=r;r=r+112|0;if((r|0)>=(s|0))ka();g=d+28|0;f=d;e=k[a+88>>2]|0;k[f+4>>2]=g;k[f+8>>2]=g;k[f+12>>2]=0;k[f+16>>2]=70;k[f+20>>2]=e;i[f+24>>0]=1;e=f+25|0;i[e>>0]=0;k[f>>2]=a;xg(f,1,b,c);c=yg(f)|0;if((i[e>>0]|0)==1)i[a+65>>0]=1;r=d;return c|0}function al(a){a=a|0;return qc[k[8744+48>>2]&127](a)|0}function bl(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;i=r;r=r+80|0;if((r|0)>=(s|0))ka();h=i+40|0;e=i;if((b|0)!=0?(d=k[b+20>>2]|0,(d|0)!=0):0){k[h+0>>2]=0;k[h+4>>2]=0;k[h+8>>2]=0;k[h+12>>2]=0;k[h+16>>2]=0;k[h+20>>2]=0;k[h+24>>2]=0;f=e+0|0;g=f+40|0;do{k[f>>2]=0;f=f+4|0}while((f|0)<(g|0));j[e+8>>1]=1;c=a+32|0;k[e+32>>2]=k[c>>2];k[h>>2]=e;k[h+8>>2]=a;k[h+4>>2]=b;hc[d&31](h);if((k[a+24>>2]|0)>0)rg(k[c>>2]|0,k[a+20>>2]|0);f=a+0|0;c=e+0|0;g=f+40|0;do{k[f>>2]=k[c>>2];f=f+4|0;c=c+4|0}while((f|0)<(g|0));c=k[h+20>>2]|0}else c=0;r=i;return c|0}function cl(a){a=a|0;var b=0,c=0,d=0;b=k[a>>2]|0;if(b){c=a+4|0;do{d=b;b=k[b>>2]|0;rg(k[c>>2]|0,d)}while((b|0)!=0)}k[a>>2]=0;j[a+24>>1]=0;k[a+8>>2]=0;k[a+12>>2]=0;k[a+20>>2]=0;j[a+26>>1]=1;return}function dl(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;e=g+4|0;b=k[a>>2]|0;c=b+16|0;do if((k[(k[c>>2]|0)+20>>2]|0)==0?(i[a+450>>0]|0)==0:0){d=Em(k[b>>2]|0,0,b,e,0,542)|0;if(d){yh(a,25496,f);k[a+12>>2]=d;b=1;break}d=k[e>>2]|0;k[(k[c>>2]|0)+20>>2]=d;if((Cg(d,k[b+72>>2]|0,-1,0)|0)==7){i[b+65>>0]=1;b=1}else b=0}else b=0;while(0);r=g;return b|0}function el(a){a=a|0;var b=0;do if(a)if((k[3157]|0)>>>0<=a>>>0&(k[3158]|0)>>>0>a>>>0){k[2167]=(k[2167]|0)+-1;k[a>>2]=k[3160];k[3160]=a;a=(k[3161]|0)+1|0;k[3161]=a;k[3162]=(a|0)<(k[3156]|0)&1;break}else{b=qc[k[8744+48>>2]&127](a)|0;k[2168]=(k[2168]|0)-b;$c(a);break}while(0);return}function fl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();l=o;h=k[b>>2]|0;if((i[a+15>>0]|0)!=0?(k[a+24>>2]|0)!=0:0)n=12;else n=3;do if((n|0)==3){g=a+204|0;if(((h|0)!=0?(k[(k[g>>2]|0)+12>>2]|0)==0:0)?(m=a+152|0,(h|0)!=(k[m>>2]|0)):0){p=l;k[p>>2]=0;k[p+4>>2]=0;if(((i[a+16>>0]|0)!=0?(e=k[a+60>>2]|0,d=k[e>>2]|0,(d|0)!=0):0)?(f=wc[k[d+24>>2]&127](e,l)|0,(f|0)!=0):0){d=0;c=f}else{d=Lo(h)|0;if(d){Cn(a);e=Mo(k[g>>2]|0,h)|0;if(!e){n=a+200|0;el(k[n>>2]|0);k[n>>2]=d;n=l;l=k[n>>2]|0;n=k[n+4>>2]|0;g=ow(h|0,0,-1,-1)|0;n=ow(g|0,L|0,l|0,n|0)|0;n=vw(n|0,L|0,h|0,0)|0;k[a+24>>2]=n;k[m>>2]=h;n=12;break}else c=e}else{d=0;c=7}}el(d);k[b>>2]=k[m>>2]}else n=12}while(0);if((n|0)==12){k[b>>2]=k[a+152>>2];d=a+142|0;if((c|0)<0)c=j[d>>1]|0;j[d>>1]=c;c=0}r=o;return c|0}function gl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=k[a+4>>2]|0;a:do if(i[a+9>>0]|0){if((k[e+76>>2]|0)!=(a|0)?(j[e+22>>1]&32)!=0:0){d=262;break}d=k[e+72>>2]|0;if(d){while(1){if(((k[d>>2]|0)!=(a|0)?(k[d+4>>2]|0)==(b|0):0)?(i[d+8>>0]|0)!=c<<24>>24:0)break;d=k[d+12>>2]|0;if(!d){d=0;break a}}if(c<<24>>24==2){d=e+22|0;j[d>>1]=m[d>>1]|64;d=262}else d=262}else d=0}else d=0;while(0);return d|0}function hl(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=r;r=r+64|0;if((r|0)>=(s|0))ka();E=F;B=F+28|0;A=F+24|0;h=F+20|0;p=F+48|0;t=F+16|0;u=F+12|0;y=F+8|0;z=F+32|0;if(!((i[a+15>>0]|0)!=0?(b=k[a+40>>2]|0,(b|0)!=0):0))D=3;do if((D|0)==3){C=a+208|0;c=k[C>>2]|0;a:do if(!c){x=a+16|0;do if(!(i[x>>0]|0)){e=a+176|0;d=a+180|0;while(1){b=kl(a,1)|0;if(!b)break;else if((b|0)!=5)break a;if(!(qc[k[e>>2]&127](k[d>>2]|0)|0)){b=5;break a}}q=a+17|0;if((l[q>>0]|0)<2){c=k[a>>2]|0;k[E>>2]=1;f=a+64|0;g=(k[k[f>>2]>>2]|0)!=0;if(g){e=1;b=0}else{b=uc[k[c+32>>2]&31](c,k[a+172>>2]|0,0,E)|0;e=(k[E>>2]|0)!=0}b:do if((b|0)==0&e){k[B>>2]=0;d=a+60|0;b=k[d>>2]|0;b=wc[k[(k[b>>2]|0)+36>>2]&127](b,B)|0;if(!(k[B>>2]|b)){b=No(a,A)|0;if(!b){if((k[A>>2]|0)!=0|g){do if(!g){k[h>>2]=2049;b=yc[k[c+24>>2]&31](c,k[a+172>>2]|0,k[f>>2]|0,2049,h)|0;if(!b)break;else if((b|0)!=14){e=0;break b}e=1;b=0;break b}while(0);i[p>>0]=0;b=k[f>>2]|0;b=yc[k[(k[b>>2]|0)+8>>2]&31](b,p,1,0,0)|0;b=(b|0)==522?0:b;if(!g?(n=k[f>>2]|0,o=k[n>>2]|0,(o|0)!=0):0){qc[k[o+4>>2]&127](n)|0;k[n>>2]=0}e=(i[p>>0]|0)!=0&1;break}e=k[3164]|0;if(e)sc[e&3]();do if(((kl(a,2)|0)==0?(fc[k[c+28>>2]&63](c,k[a+172>>2]|0,0)|0,(i[a+4>>0]|0)==0):0)?(j=k[d>>2]|0,m=k[j>>2]|0,(m|0)!=0):0){if(!(i[a+13>>0]|0))wc[k[m+32>>2]&127](j,1)|0;if((i[q>>0]|0)==5)break;i[q>>0]=1}while(0);e=k[3166]|0;if(!e){e=0;b=0}else{sc[e&3]();e=0;b=0}}else e=0}else e=0}else e=0;while(0);if(b)break a;if(e)D=35}else D=35;do if((D|0)==35){if(i[a+14>>0]|0){b=776;break a}b=kl(a,4)|0;if(b)break a;c=a+64|0;if(!(k[k[c>>2]>>2]|0)){e=k[a>>2]|0;d=a+172|0;b=uc[k[e+32>>2]&31](e,k[d>>2]|0,0,t)|0;if((b|0)==0&(k[t>>2]|0)!=0){k[u>>2]=0;b=yc[k[e+24>>2]&31](e,k[d>>2]|0,k[c>>2]|0,2050,u)|0;if(!b)if(k[u>>2]&1){k[E>>2]=46645;k[E+4>>2]=10788;gd(14,14848,E);e=k[c>>2]|0;d=k[e>>2]|0;if(!d)b=14;else{qc[k[d+4>>2]&127](e)|0;k[e>>2]=0;b=14}}else b=0}}else b=0;if(!(k[k[c>>2]>>2]|0))if((i[a+4>>0]|0)==0?(v=k[a+60>>2]|0,w=k[v>>2]|0,(w|0)!=0):0){if(!(i[a+13>>0]|0))wc[k[w+32>>2]&127](v,1)|0;if((i[q>>0]|0)!=5){i[q>>0]=1;D=52}else D=52}else D=52;else{b=Oo(a)|0;if(!b){b=Po(a,1)|0;i[x>>0]=0;D=52}}if((D|0)==52)if(!b)break;B=b&255;if(!((B|0)==10|(B|0)==13))break a;k[a+40>>2]=b;i[x>>0]=6;break a}while(0);e=a+12|0;if((i[e>>0]|0)==0?(i[a+23>>0]|0)!=0:0){k[y>>2]=0;b=No(a,y)|0;if(b)break a;if(k[y>>2]|0){b=k[a+60>>2]|0;b=yc[k[(k[b>>2]|0)+8>>2]&31](b,z,16,24,0)|0;if(!((b|0)==0|(b|0)==522))break a}else{d=z+0|0;c=d+16|0;do{i[d>>0]=0;d=d+1|0}while((d|0)<(c|0))}if(cw(a+104|0,z,16)|0)Cn(a)}if(!(i[e>>0]|0)){b=No(a,A)|0;if(!b){d=k[a>>2]|0;c=k[a+212>>2]|0;if(!(k[A>>2]|0)){b=fc[k[d+28>>2]&63](d,c,0)|0;k[B>>2]=0;if((b|0)!=5898)D=68}else{b=uc[k[d+32>>2]&31](d,c,0,B)|0;D=68}if((D|0)==68){if(b)break;if(k[B>>2]|0){b=jl(a,0)|0;break}}b=a+5|0;if((i[b>>0]|0)==5){i[b>>0]=0;b=0}else b=0}}else b=0}else b=0;while(0);c=k[C>>2]|0;if(!c)D=78;else D=74}else D=74;while(0);if((D|0)==74){k[E>>2]=0;Qo(c);c=k[C>>2]|0;d=0;do{d=d+1|0;b=Ro(c,E,0,d)|0}while((b|0)==-1);if(!(k[E>>2]|b))D=78;else{Cn(a);D=78}}if((D|0)==78){if((i[a+16>>0]|0)==0&(b|0)==0)b=No(a,a+24|0)|0;if(!b){i[a+16>>0]=1;b=0;break}}So(a)}while(0);r=F;return b|0}function il(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;d=Eg(k[a>>2]|0,b,e,d)|0;if(!d){e=k[e>>2]|0;d=k[e+8>>2]|0;k[d+56>>2]=k[e+4>>2];k[d+68>>2]=e;k[d+52>>2]=a;k[d+72>>2]=b;i[d+6>>0]=(b|0)==1?100:0;k[c>>2]=d;d=0}r=f;return d|0}function jl(a,b){a=a|0;b=b|0;var c=0,d=0;do if((i[a+12>>0]|0)==0?(k[a+208>>2]|0)==0:0){b=k[k[a+60>>2]>>2]|0;if(!(i[a+4>>0]|0)){if((k[b>>2]|0)<=1){b=14;break}if(!(k[b+52>>2]|0)){b=14;break}}b=k[a+64>>2]|0;c=k[b>>2]|0;if(c){qc[k[c+4>>2]&127](b)|0;k[b>>2]=0}b=un(a)|0;if(!b){i[a+5>>0]=5;i[a+16>>0]=0;b=0}}else d=10;while(0);if((d|0)==10){k[b>>2]=1;b=0}return b|0}function kl(a,b){a=a|0;b=b|0;var c=0,d=0;d=a+17|0;c=i[d>>0]|0;do if((c&255|0)<(b|0)|c<<24>>24==5){if(!(i[a+13>>0]|0)){c=k[a+60>>2]|0;c=wc[k[(k[c>>2]|0)+28>>2]&127](c,b)|0;if(c)break;c=i[d>>0]|0}if(c<<24>>24!=5|(b|0)==4){i[d>>0]=b;c=0}else c=0}else c=0;while(0);return c|0}function ll(a){a=a|0;var b=0,c=0,d=0;b=k[a+4>>2]|0;a=k[b+444>>2]|0;if((a|0)!=0?(d=b+452|0,c=k[d>>2]|0,(c|0)>=0):0){a=wc[a&127](k[b+448>>2]|0,c)|0;if(!a)b=-1;else b=(k[d>>2]|0)+1|0;k[d>>2]=b}else a=0;return a|0}function ml(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0;n=a+96|0;c=k[n>>2]|0;a:do if((c|0)<(b|0)?(i[a+6>>0]|0)!=0:0){d=a+92|0;q=wg(k[d>>2]|0,b*48|0,0)|0;if(!q)c=7;else{kw(q+(c*48|0)|0,0,(b-c|0)*48|0)|0;k[d>>2]=q;g=a+24|0;h=a+64|0;j=a+148|0;l=a+52|0;m=a+208|0;f=a+72|0;while(1){e=k[g>>2]|0;a=q+(c*48|0)|0;k[q+(c*48|0)+20>>2]=e;if((k[k[h>>2]>>2]|0)!=0?(p=f,o=k[p>>2]|0,p=k[p+4>>2]|0,(p|0)>0|(p|0)==0&o>>>0>0):0){k[a>>2]=o;k[a+4>>2]=p}else{k[a>>2]=k[j>>2];k[a+4>>2]=0}k[q+(c*48|0)+24>>2]=k[l>>2];d=vg(512,0)|0;if(!d)break;kw(d|0,0,512)|0;k[d>>2]=e;k[q+(c*48|0)+16>>2]=d;d=k[m>>2]|0;if(d){k[q+(c*48|0)+28>>2]=k[d+68>>2];k[q+(c*48|0)+32>>2]=k[d+76>>2];k[q+(c*48|0)+36>>2]=k[d+80>>2];k[q+(c*48|0)+40>>2]=k[d+104>>2]}c=c+1|0;k[n>>2]=c;if((c|0)>=(b|0)){c=0;break a}}k[q+(c*48|0)+16>>2]=d;c=7}}else c=0;while(0);return c|0}function nl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;do if(c){d=k[c+4>>2]|0;if(!(k[d>>2]|0)){d=To(a,b,c)|0;break}c=d+26|0;e=j[c>>1]|0;if(!(e<<16>>16)){f=a+12|0;k[f>>2]=(k[f>>2]|0)+1}j[c>>1]=e+1<<16>>16;if((b|0)==1)k[a+44>>2]=d}else d=0;while(0);return d|0}function ol(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=a+96|0;c=k[g>>2]|0;if((c|0)>0){f=a+92|0;e=0;a=0;do{d=k[f>>2]|0;if((k[d+(e*48|0)+20>>2]|0)>>>0>=b>>>0){a=gi(k[d+(e*48|0)+16>>2]|0,b)|0|a;c=k[g>>2]|0}e=e+1|0}while((e|0)<(c|0))}else a=0;return a|0}function pl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+32|0;if((r|0)>=(s|0))ka();w=y;q=y+16|0;t=y+12|0;v=y+8|0;o=k[a+68>>2]|0;a:do if((o|0)!=0?(j[a+40>>1]|0)!=0:0){p=b*383&8191;u=(o+33|0)>>>12;b:while(1){d=Uo(a,u,q,t,v)|0;if(d)break a;d=(k[q>>2]|0)+(p<<1)|0;if(!(j[d>>1]|0))d=0;else{i=k[v>>2]|0;l=k[q>>2]|0;n=k[t>>2]|0;f=d;g=p;d=0;h=8192;while(1){e=(m[f>>1]|0)+i|0;if(e>>>0<=o>>>0)d=(k[n+(m[f>>1]<<2)>>2]|0)==(b|0)?e:d;if(!h){x=11;break b}g=g+1&8191;f=l+(g<<1)|0;if(!(j[f>>1]|0))break;else h=h+-1|0}}if((u|0)>0&(d|0)==0)u=u+-1|0;else{x=14;break}}if((x|0)==11){k[w>>2]=51262;k[w+4>>2]=10788;gd(11,13600,w);d=11;break}else if((x|0)==14){k[c>>2]=d;d=0;break}}else x=3;while(0);if((x|0)==3){k[c>>2]=0;d=0}r=y;return d|0}function ql(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;e=k[a+16>>2]|0;f=k[a+20>>2]|0;c=k[e+152>>2]|0;a=a+4|0;d=k[a>>2]|0;if(!b){b=xw(f+-1|0,0,c|0,((c|0)<0)<<31>>31|0)|0;g=k[e+60>>2]|0;b=yc[k[(k[g>>2]|0)+8>>2]&31](g,d,c,b,L)|0;b=(b|0)==522?0:b}else{h=k[e+208>>2]|0;g=m[h+66>>1]|0;g=g<<16&65536|g&65024;b=xw(g|24|0,0,b+-1|0,0)|0;b=ow(b|0,L|0,56,0)|0;h=k[h+8>>2]|0;b=yc[k[(k[h>>2]|0)+8>>2]&31](h,d,(g|0)<(c|0)?g:c,b,L)|0}do if((f|0)==1)if(!b){d=e+104|0;c=(k[a>>2]|0)+24|0;a=d+16|0;do{i[d>>0]=i[c>>0]|0;d=d+1|0;c=c+1|0}while((d|0)<(a|0));break}else{d=e+104|0;a=d+16|0;do{i[d>>0]=255;d=d+1|0}while((d|0)<(a|0));break}while(0);return b|0}function rl(a){a=a|0;var b=0,c=0;if(j[a+24>>1]&2)Vo(a,1);b=k[a+28>>2]|0;c=b+12|0;k[c>>2]=(k[c>>2]|0)+-1;if((k[a+20>>2]|0)==1)k[b+44>>2]=0;rc[k[8744+136>>2]&63](k[b+40>>2]|0,k[a>>2]|0,1);return}function sl(a){a=a|0;var b=0;b=i[a+16>>0]|0;do if(!(b<<24>>24==0|b<<24>>24==6)){if((b&255)<=1){if(i[a+4>>0]|0)break;Hl(a,0,0)|0;break}b=k[3164]|0;if(b)sc[b&3]();Ml(a)|0;b=k[3166]|0;if(b)sc[b&3]()}while(0);So(a);return}function tl(a){a=a|0;var b=0,c=0;c=a+26|0;b=(j[c>>1]|0)+-1<<16>>16;j[c>>1]=b;do if(!(b<<16>>16)){b=k[a+28>>2]|0;c=b+12|0;k[c>>2]=(k[c>>2]|0)+-1;if(j[a+24>>1]&2){if(!(k[a+36>>2]|0))break;Vo(a,3);break}if(i[b+28>>0]|0){if((k[a+20>>2]|0)==1)k[b+44>>2]=0;rc[k[8744+136>>2]&63](k[b+40>>2]|0,k[a>>2]|0,0)}}while(0);return}function ul(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=k[a+56>>2]|0;g=k[a+52>>2]|0;c=l[a+6>>0]|0;d=f+c|0;e=g+36|0;if(j[g+22>>1]&4)kw(d|0,0,(k[e>>2]|0)-c|0)|0;i[d>>0]=b;d=c+(b>>>1&4^12)|0;h=f+(c+1)|0;i[h>>0]=0;i[h+1>>0]=0;i[h+2>>0]=0;i[h+3>>0]=0;i[f+(c+7)>>0]=0;i[f+(c+5)>>0]=(k[e>>2]|0)>>>8;i[f+(c+6)>>0]=k[e>>2];j[a+16>>1]=(k[e>>2]|0)-d;Wo(a,b)|0;j[a+14>>1]=d;k[a+60>>2]=f+(k[e>>2]|0);k[a+64>>2]=f+(d&65535);i[a+1>>0]=0;j[a+20>>1]=(k[g+32>>2]|0)+65535;j[a+18>>1]=0;i[a>>0]=1;return}function vl(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=r;r=r+32|0;if((r|0)>=(s|0))ka();e=f+16|0;d=f;b=a+8|0;k[e+0>>2]=k[b+0>>2];k[e+4>>2]=k[b+4>>2];k[e+8>>2]=k[b+8>>2];k[e+12>>2]=k[b+12>>2];c=a+40|0;k[d+0>>2]=k[c+0>>2];k[d+4>>2]=k[c+4>>2];k[d+8>>2]=k[c+8>>2];k[d+12>>2]=k[c+12>>2];k[c+0>>2]=0;k[c+4>>2]=0;k[c+8>>2]=0;k[c+12>>2]=0;Tl(a+24|0);c=k[d+8>>2]|0;if(c)do{og(0,k[c+8>>2]|0);c=k[c>>2]|0}while((c|0)!=0);Tl(d);k[b+0>>2]=0;k[b+4>>2]=0;k[b+8>>2]=0;k[b+12>>2]=0;b=k[e+8>>2]|0;if(b)do{pg(0,k[b+8>>2]|0);b=k[b>>2]|0}while((b|0)!=0);Tl(e);Tl(a+56|0);k[a+72>>2]=0;b=a+78|0;c=j[b>>1]|0;if(c&1){d=a+4|0;k[d>>2]=(k[d>>2]|0)+1;j[b>>1]=c&65534}r=f;return}function wl(a){a=a|0;var b=0,c=0;c=a+332|0;b=k[c>>2]|0;k[c>>2]=0;if(b){a=k[a+4>>2]|0;if(a)do{c=a+88|0;j[c>>1]=j[c>>1]|8;a=k[a+52>>2]|0}while((a|0)!=0);do{a=b;b=k[b+24>>2]|0;Fn(a)}while((b|0)!=0)}return}function xl(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;f=a+20|0;b=k[f>>2]|0;i=a+16|0;c=k[i>>2]|0;if((b|0)>2){e=2;d=2;do{b=c+(e<<4)|0;if(!(k[c+(e<<4)+4>>2]|0)){rg(a,k[b>>2]|0);k[b>>2]=0}else{if((d|0)<(e|0)){c=c+(d<<4)|0;k[c+0>>2]=k[b+0>>2];k[c+4>>2]=k[b+4>>2];k[c+8>>2]=k[b+8>>2];k[c+12>>2]=k[b+12>>2]}d=d+1|0}e=e+1|0;b=k[f>>2]|0;c=k[i>>2]|0}while((e|0)<(b|0))}else d=2;kw(c+(d<<4)|0,0,b-d<<4|0)|0;k[f>>2]=d;if((d|0)<3?(g=k[i>>2]|0,h=a+456|0,(g|0)!=(h|0)):0){k[h+0>>2]=k[g+0>>2];k[h+4>>2]=k[g+4>>2];k[h+8>>2]=k[g+8>>2];k[h+12>>2]=k[g+12>>2];k[h+16>>2]=k[g+16>>2];k[h+20>>2]=k[g+20>>2];k[h+24>>2]=k[g+24>>2];k[h+28>>2]=k[g+28>>2];rg
6 function cs(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,n=0,o=0,q=0,t=0,u=0,v=0,w=0,x=0;x=r;r=r+16|0;if((r|0)>=(s|0))ka();u=x;v=x+8|0;k[v>>2]=0;a:do if(!b){k[e>>2]=0;f=0}else{g=i[b>>0]|0;if(g<<24>>24==-98)do{b=k[b+12>>2]|0;g=i[b>>0]|0}while(g<<24>>24==-98);if(g<<24>>24==-97)n=l[b+38>>0]|0;else n=g&255;if((n|0)==157){b=k[b+12>>2]|0;n=i[b>>0]|0;if((n&-2)<<24>>24==-124){h=-1;g=-1;t=n&255;n=26016;w=12}else w=30}else if((n|0)==38){h=ar(k[b+8>>2]|0,0)|0;f=cs(a,k[b+12>>2]|0,c,h,e)|0;g=k[e>>2]|0;if(!g)break;lm(g,h,1);km(k[e>>2]|0,d,1);break}else{h=1;g=0;t=n;n=10360;w=12}b:do if((w|0)==12){c:do switch(t|0){case 97:case 132:case 133:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;do if(!(k[b+4>>2]&1024)){h=k[b+8>>2]|0;k[u>>2]=n;k[u+4>>2]=h;h=zh(a,19456,u)|0;if(!h)break c;if(f)ah(f,h,-1,1,75)|0}else{n=k[b+8>>2]|0;n=xw(n|0,((n|0)<0)<<31>>31|0,h|0,g|0)|0;h=L;b=f+8|0;if(!(j[b>>1]&9312)){v=f;k[v>>2]=n;k[v+4>>2]=h;j[b>>1]=4;break}else{ch(f,n,h);break}}while(0);if((t&-2|0)==132&d<<24>>24==65)km(f,67,1);else km(f,d,1);g=f+8|0;b=m[g>>1]|0;if(b&12)j[g>>1]=b&65533;if(c<<24>>24==1){g=f;f=0;break b}g=f;f=bm(f,c&255)|0;break b}case 101:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}else{o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;g=f;f=0;break b}}case 157:{b=k[b+12>>2]|0;w=30;break b}case 134:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;g=(k[b+8>>2]|0)+2|0;b=g;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;v=(b-g&1073741823)+-1|0;ah(f,bu(a,g,v)|0,(v|0)/2|0,0,75)|0;g=f;f=0;break b}default:{g=0;f=0;break b}}while(0);i[a+65>>0]=1;rg(a,0);Rh(f);f=7;break a}while(0);if((w|0)==30){u=(cs(a,b,c,d,v)|0)==0;g=k[v>>2]|0;if(u&(g|0)!=0){tp(g);h=g+8|0;b=j[h>>1]|0;do if(!(b&8)){n=g;f=k[n>>2]|0;n=k[n+4>>2]|0;if((f|0)==0&(n|0)==-2147483648){p[g>>3]=9223372036854775808.0;j[h>>1]=b&48640|8;break}else{u=iw(0,0,f|0,n|0)|0;v=g;k[v>>2]=u;k[v+4>>2]=L;break}}else p[g>>3]=-+p[g>>3];while(0);km(g,d,c);f=0}else f=0}k[e>>2]=g}while(0);r=x;return f|0}function ds(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;do if((b|0)!=0?(e=a+19|0,f=i[e>>0]|0,(f&255)<8):0){d=0;c=a+116|0;while(1){if((k[c+12>>2]|0)==(b|0)){d=5;break}d=d+1|0;if((d|0)>=10){d=7;break}else c=c+20|0}if((d|0)==5){i[c+6>>0]=1;break}else if((d|0)==7){i[e>>0]=f+1<<24>>24;k[a+((f&255)<<2)+24>>2]=b;break}}while(0);return}function es(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;m=r;r=r+32|0;if((r|0)>=(s|0))ka();l=m;c=a+484|0;h=k[c>>2]|0;j=k[a>>2]|0;do if((h|0)!=0?(gs(a),k[a+512>>2]=0,(k[h+52>>2]|0)>=1):0){if(i[j+145>>0]|0)if(!(Nk((k[h+68>>2]|0)+8|0,k[h>>2]|0,h)|0)){k[c>>2]=0;break}else{i[j+65>>0]=1;break}if(b)k[a+500>>2]=(k[b>>2]|0)-(k[a+496>>2]|0)+(k[b+4>>2]|0);k[l>>2]=a+496;g=zh(j,25256,l)|0;b=k[h+68>>2]|0;a:do if(b){d=k[j+20>>2]|0;if((d|0)>0){e=k[j+16>>2]|0;f=0;while(1){c=f+1|0;if((k[e+(f<<4)+12>>2]|0)==(b|0)){c=f;break a}if((c|0)<(d|0))f=c;else break}}else c=0}else c=-1e6;while(0);e=k[h>>2]|0;f=k[a+384>>2]|0;k[l>>2]=k[(k[j+16>>2]|0)+(c<<4)>>2];k[l+4>>2]=(c|0)==1?13184:13208;k[l+8>>2]=e;k[l+12>>2]=e;k[l+16>>2]=g;k[l+20>>2]=f;Gr(a,25280,l);rg(j,g);g=Tq(a)|0;Ir(a,c);Bh(g,144,0,0,0)|0;k[l>>2]=k[h>>2];Nr(g,c,zh(j,25368,l)|0);a=a+72|0;l=(k[a>>2]|0)+1|0;k[a>>2]=l;a=k[h>>2]|0;Ch(g,Bh(g,97,0,l,0)|0,a,0);Bh(g,147,c,l,0)|0}while(0);r=m;return}function fs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=b+52|0;h=k[g>>2]|0;d=h+1|0;k[g>>2]=d;f=(h<<2)+8|0;e=b+56|0;f=wo(a,k[e>>2]|0,f,((f|0)<0)<<31>>31)|0;if(!f){if((h|0)>0){b=0;do{rg(a,k[(k[e>>2]|0)+(b<<2)>>2]|0);b=b+1|0}while((b|0)!=(h|0))}rg(a,c);rg(a,k[e>>2]|0);k[g>>2]=0}else{k[f+(h<<2)>>2]=c;k[f+(d<<2)>>2]=0}k[e>>2]=f;return}function gs(a){a=a|0;var b=0,c=0,d=0,e=0;b=k[a+512>>2]|0;if((b|0)!=0?(e=k[a+484>>2]|0,(e|0)!=0):0){c=k[a+516>>2]|0;d=k[a>>2]|0;a=ow(c|0,((c|0)<0)<<31>>31|0,1,0)|0;a=rh(d,a,L)|0;if(!a)a=0;else{pw(a|0,b|0,c|0)|0;i[a+c>>0]=0}fs(d,e,a)}return}function hs(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();h=m;j=k[a>>2]|0;l=$q(j,c)|0;g=(b|0)!=0;if((l|0)!=0&g?(f=k[b>>2]|0,(f|0)>0):0){c=f;f=0;do{if(!(id(l,k[b+(f<<4)+8>>2]|0)|0)){k[h>>2]=l;yh(a,25184,h);c=k[b>>2]|0}f=f+1|0}while((f|0)<(c|0))}if(g){f=(k[b>>2]<<4)+24|0;f=wo(j,b,f,((f|0)<0)<<31>>31)|0;if(!f)c=10;else{b=f;c=11}}else{c=rh(j,24,0)|0;if(!c)c=10;else{f=c+0|0;b=f+24|0;do{i[f>>0]=0;f=f+1|0}while((f|0)<(b|0));b=c;c=11}}if((c|0)==10){Sk(j,d);Rk(j,e,1);rgrgrgrg(da,H);k[d+(sa*80|0)+788>>2]=k[ba+32>>2];if(c)Ch(ba,Bh(ba,l[33552+(A|_<<1)>>0]|0,U,J,I)|0,c,-14);Wu(p,P);Wu(p,M);do if(!v){c=k[S+12>>2]|0;if(!(i[c+44>>0]&32)){$=fa+72|0;aa=(k[$>>2]|0)+1|0;k[$>>2]=aa;Bh(ba,112,U,aa,0)|0;Xu(fa,g,-1,aa);Bh(ba,66,g,aa,0)|0;break}if((g|0)==(U|0))break;c=k[c+8>>2]|0;A:do if(!c)A=0;else while(1){if((i[c+51>>0]&3)==2){A=c;break A}c=k[c+20>>2]|0;if(!c){A=0;break}}while(0);E=A+46|0;t=j[E>>1]|0;c=t&65535;y=fa+60|0;x=k[y>>2]|0;w=fa+56|0;q=k[w>>2]|0;if((q|0)<(c|0)){aa=fa+72|0;x=k[aa>>2]|0;k[aa>>2]=x+c;x=x+1|0}else{k[y>>2]=x+c;k[w>>2]=q-c}if(t<<16>>16){q=A+4|0;t=S+48|0;w=S+4|0;B=0;do{A=j[(k[q>>2]|0)+(B<<1)>>1]|0;c=j[t>>1]|0;B:do if(!(c<<16>>16))c=-1;else{z=k[w>>2]|0;y=c&65535;c=0;while(1){if((j[z+(c<<1)>>1]|0)==A<<16>>16)break B;c=c+1|0;if((c|0)>=(y|0)){c=-1;break}}}while(0);Bh(ba,47,U,c<<16>>16,B+x|0)|0;B=B+1|0;c=m[E>>1]|0}while((B|0)<(c|0))}Ch(ba,Bh(ba,68,g,ca,x)|0,c,-14)}while(0);x=k[T>>2]|0;do if(!(x&4096)){w=d+(sa*80|0)+781|0;if(!_){i[w>>0]=9;break}else{i[w>>0]=8;break}}else i[d+(sa*80|0)+781>>0]=-100;while(0);k[d+(sa*80|0)+784>>2]=U;i[d+(sa*80|0)+782>>0]=x>>>16&1;if(x&15){ua=459;break}i[d+(sa*80|0)+783>>0]=1;ua=459;break}if(!(C&8192))if(!(A&8)){i[d+(sa*80|0)+781>>0]=i[33560+_>>0]|0;k[d+(sa*80|0)+784>>2]=g;ua=(Bh(ba,l[33568+_>>0]|0,g,F,0)|0)+1|0;k[d+(sa*80|0)+788>>2]=ua;i[d+(sa*80|0)+783>>0]=1;ua=459;break}else{i[d+(sa*80|0)+781>>0]=-100;ua=459;break}F=fa+68|0;Z=k[F>>2]|0;k[F>>2]=Z+1;X=fa+72|0;Y=(k[X>>2]|0)+1|0;k[X>>2]=Y;_=Cs(ba)|0;W=k[E+(G*72|0)+24>>2]|0;e=k[k[J+48>>2]>>2]|0;P=k[e+12>>2]|0;i[d+(sa*80|0)+781>>0]=18;k[d+(sa*80|0)+784>>2]=Y;A=i[ya>>0]|0;do if((A&255)>1){E=(A&255)-sa|0;C=E+-1|0;B=rh(da,(C*72|0)+80|0,0)|0;if(!B)break z;A=E&255;k[B+4>>2]=A;k[B>>2]=A;A=B+8|0;G=A+0|0;z=N+0|0;c=G+72|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));D=k[za>>2]|0;if((E|0)<2){V=B;break}else E=1;while(1){G=A+(E*72|0)+0|0;z=D+((l[d+((E+sa|0)*80|0)+780>>0]|0)*72|0)+8|0;c=G+72|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));if((E|0)<(C|0))E=E+1|0;else{V=B;break}}}else V=k[za>>2]|0;while(0);if(!(j[Ba>>1]&8)){if(!(i[W+44>>0]&32)){A=(k[X>>2]|0)+1|0;k[X>>2]=A;Bh(ba,28,0,A,0)|0}else{A=k[W+8>>2]|0;C:do if(!A)A=0;else while(1){if((i[A+51>>0]&3)==2)break C;A=k[A+20>>2]|0;if(!A){A=0;break}}while(0);U=k[F>>2]|0;k[F>>2]=U+1;Bh(ba,57,U,m[A+46>>1]|0,0)|0;T=k[K>>2]|0;Ch(T,-1,ms(fa,A)|0,-6);A=U}T=(k[X>>2]|0)+1|0;k[X>>2]=T}else{T=0;A=0}U=Bh(ba,25,0,Y,0)|0;z=k[va>>2]|0;do if((z|0)>1){B=0;E=0;do{D=k[wa>>2]|0;S=D+(B*48|0)|0;C=k[S>>2]|0;do if((S|0)!=(e|0)){if(k[C+4>>2]&1)break;if(j[D+(B*48|0)+20>>1]&2)break;if(!(j[D+(B*48|0)+18>>1]&4095))break;E=xs(da,E,Rr(da,C,0,0)|0)|0;z=k[va>>2]|0}while(0);B=B+1|0}while((B|0)<(z|0));z=E;if(!z){S=0;break}S=cr(fa,72,0,z,0)|0}else S=0;while(0);R=P+12|0;do if((k[R>>2]|0)>0){u=P+20|0;t=(S|0)==0;q=W+44|0;w=ba+32|0;x=ba+4|0;z=ba+24|0;B=W+8|0;C=fa+60|0;D=fa+56|0;E=S+12|0;Q=0;y=0;c=0;v=240;while(1){G=k[u>>2]|0;if((k[G+(Q*48|0)+8>>2]|0)!=(g|0)?(j[G+(Q*48|0)+18>>1]&512)==0:0)G=v;else ua=407;do if((ua|0)==407){ua=0;G=k[G+(Q*48|0)>>2]|0;do if(!t){if(k[G+4>>2]&1)break;k[E>>2]=G;G=S}while(0);H=_s(fa,V,G,0,0,v,Z)|0;if(!H){G=v;break}Uu(fa,V,H+736|0,sa,l[$>>0]|0,0);do if(!(j[Ba>>1]&8)){K=(Q|0)==((k[R>>2]|0)+-1|0)?-1:Q;do if(!(i[q>>0]&32)){F=Bh(ba,130,A,0,ht(fa,W,-1,g,T,0)|0)|0;Ch(ba,F,K,-14)}else{G=k[B>>2]|0;D:do if(!G)G=0;else while(1){if((i[G+51>>0]&3)==2)break D;G=k[G+20>>2]|0;if(!G){G=0;break}}while(0);M=j[G+46>>1]|0;I=M&65535;P=k[C>>2]|0;N=k[D>>2]|0;if((N|0)<(I|0)){J=k[X>>2]|0;k[X>>2]=J+I;J=J+1|0}else{k[C>>2]=P+I;k[D>>2]=N-I;J=P}if(M<<16>>16){N=G+4|0;P=0;do{ht(fa,W,j[(k[N>>2]|0)+(P<<1)>>1]|0,g,P+J|0,0)|0;P=P+1|0}while((P|0)<(I|0))}P=(K|0)!=0;if(P){F=Bh(ba,69,A,0,J)|0;Ch(ba,F,I,-14);if((K|0)>-1)ua=426}else{F=0;ua=426}do if((ua|0)==426){ua=0;Bh(ba,49,J,I,T)|0;Bh(ba,110,A,T,0)|0;if(!P)break;K=k[x>>2]|0;if(!K)break;i[K+(((k[w>>2]|0)+-1|0)*20|0)+3>>0]=16}while(0);it(fa,J,I);if((k[D>>2]|0)>=(I|0))break;k[D>>2]=I;k[C>>2]=J}while(0);Bh(ba,17,Y,_,0)|0;if(!F)break;G=k[w>>2]|0;if(G>>>0>F>>>0)k[(k[x>>2]|0)+(F*20|0)+8>>2]=G;k[(k[z>>2]|0)+88>>2]=G+-1}else Bh(ba,17,Y,_,0)|0;while(0);c=(i[H+39>>0]|0)==0?c:1;G=k[H+800>>2]|0;do if(!(k[G+36>>2]&512)){y=0;G=v}else{if((Q|0)!=0?(k[G+28>>2]|0)!=(y|0):0){y=0;G=v;break}y=k[G+28>>2]|0;if((i[q>>0]&32)!=0?(i[y+51>>0]&3)==2:0){y=0;G=v;break}G=(v&65535|4096)&65535}while(0);at(H)}while(0);Q=Q+1|0;if((Q|0)>=(k[R>>2]|0))break;else v=G}k[d+(sa*80|0)+792>>2]=y;if(!y){q=c;break}k[d+(sa*80|0)+744>>2]=Z;q=c}else{k[d+(sa*80|0)+792>>2]=0;q=0}while(0);if(S){k[S+12>>2]=0;Lk(da,S)}w=ba+32|0;c=k[w>>2]|0;if(c>>>0>U>>>0)k[(k[ba+4>>2]|0)+(U*20|0)+4>>2]=c;Bh(ba,16,0,k[aa>>2]|0,0)|0;y=k[ba+24>>2]|0;x=~_;do if((_|0)<0){c=k[y+112>>2]|0;if(!c)break;k[c+(x<<2)>>2]=k[w>>2]}while(0);k[y+88>>2]=(k[w>>2]|0)+-1;if((l[ya>>0]|0)>1)rg(da,V);if(q){ua=459;break}Wu(p,e);ua=459}else{ua=k[E+(G*72|0)+36>>2]|0;Bh(ba,20,ua,0,k[E+(G*72|0)+32>>2]|0)|0;ua=Bh(ba,22,ua,F,0)|0;k[d+(sa*80|0)+788>>2]=ua;i[d+(sa*80|0)+781>>0]=16;ua=459}while(0);if((ua|0)==459){ua=0;c=k[va>>2]|0;do if((c|0)>0){u=d+(sa*80|0)+772|0;v=ba+32|0;z=ba+4|0;A=ba+24|0;t=k[wa>>2]|0;while(1){q=t+20|0;y=j[q>>1]|0;do if(!(y&6)){aa=t+40|0;$=ea;if(!((k[$>>2]&k[aa>>2]|0)==0?(k[$+4>>2]&k[aa+4>>2]|0)==0:0)){i[ia>>0]=1;break}x=k[t>>2]|0;if((k[p>>2]|0)!=0?(k[x+4>>2]&1|0)==0:0)break;do if(!(y&512))lt(fa,x,ca,16);else{w=Bh(ba,46,k[u>>2]|0,0,0)|0;lt(fa,x,ca,16);if(!w)break;y=k[v>>2]|0;if(y>>>0>w>>>0)k[(k[z>>2]|0)+(w*20|0)+8>>2]=y;k[(k[A>>2]|0)+88>>2]=y+-1}while(0);j[q>>1]=m[q>>1]|4}while(0);c=c+-1|0;if((c|0)<=0)break;else t=t+48|0}u=k[va>>2]|0;if((u|0)<=0){ua=475;break}w=k[wa>>2]|0;while(1){do if(!(j[w+20>>1]&6)){if((j[w+18>>1]|0)!=1026)break;if((k[w+8>>2]|0)!=(g|0))break;if(k[p>>2]|0)break;y=k[w>>2]|0;c=Ku(Fa,g,k[w+12>>2]|0,o,n,3,0)|0;if(!c)break;if(j[c+20>>1]&4)break;x=rh(da,48,0)|0;if(!x)break;G=x+0|0;z=(k[c>>2]|0)+0|0;c=G+48|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));k[x+12>>2]=k[y+12>>2];lt(fa,x,ca,16);rg(da,x)}while(0);u=u+-1|0;if((u|0)<=0)break;else w=w+48|0}}else ua=475;while(0);if((ua|0)==475)ua=0;p=k[p>>2]|0;do if(p){k[d+(sa*80|0)+764>>2]=k[ba+32>>2];Bh(ba,25,1,p,0)|0;ft(fa);p=k[va>>2]|0;if((p|0)<=0)break;u=0;t=k[wa>>2]|0;while(1){o=t+20|0;do if(!(j[o>>1]&6)){ba=t+40|0;aa=ea;if(!((k[aa>>2]&k[ba>>2]|0)==0?(k[aa+4>>2]&k[ba+4>>2]|0)==0:0))break;lt(fa,k[t>>2]|0,ca,16);j[o>>1]=m[o>>1]|4;p=k[va>>2]|0}while(0);u=u+1|0;if((u|0)>=(p|0))break;else t=t+48|0}}while(0);n=ea;o=k[n>>2]|0;n=k[n+4>>2]|0}k[Aa>>2]=k[ta+(sa*80|0)+24>>2];sa=sa+1|0;if((sa|0)>=(h|0))break a}}}while(0);if(Ga)d=0;else{k[Ca>>2]=k[Da>>2];av(Ia,d);d=0}}else{k[Ka>>2]=64;yh(a,33504,Ka);d=0}while(0);r=Ma;return d|0}function $s(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=ow(a|0,b|0,-2,-1)|0;d=L}else{c=((a|0)!=0)<<31>>31;c=ow(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=L}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=ow(c|0,d|0,8,0)|0;a=rw(b|0,L|0,3-a|0)|0;b=L;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=ow(c|0,d|0,8,0)|0;a=nw(b|0,L|0,a+-3|0)|0;b=L}}else{b=0;a=1}while(0);L=b;return a|0}function at(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;C=k[a>>2]|0;D=k[C+8>>2]|0;F=k[a+4>>2]|0;G=k[C>>2]|0;ft(C);H=a+41|0;c=i[H>>0]|0;if(!(c<<24>>24))b=D+24|0;else{b=D+24|0;p=D+32|0;r=D+4|0;o=c&255;do{o=o+-1|0;e=k[a+(o*80|0)+800>>2]|0;A=k[a+(o*80|0)+760>>2]|0;c=k[b>>2]|0;d=~A;if((A|0)<0?(s=k[c+112>>2]|0,(s|0)!=0):0)k[s+(d<<2)>>2]=k[p>>2];k[c+88>>2]=(k[p>>2]|0)+-1;B=a+(o*80|0)+781|0;d=i[B>>0]|0;if(d<<24>>24!=-100?(Bh(D,d&255,k[a+(o*80|0)+784>>2]|0,k[a+(o*80|0)+788>>2]|0,l[a+(o*80|0)+782>>0]|0)|0,u=k[r>>2]|0,(u|0)!=0):0)i[u+(((k[p>>2]|0)+-1|0)*20|0)+3>>0]=i[a+(o*80|0)+783>>0]|0;t=e+36|0;if((k[t>>2]&2048|0)!=0?(v=a+(o*80|0)+792|0,w=k[v>>2]|0,(w|0)>0):0){A=k[a+(o*80|0)+752>>2]|0;g=k[b>>2]|0;d=~A;if((A|0)<0?(x=k[g+112>>2]|0,(x|0)!=0):0){k[x+(d<<2)>>2]=k[p>>2];h=k[v>>2]|0;f=k[p>>2]|0;k[g+88>>2]=f+-1;c=a+(o*80|0)+796|0;if((h|0)>0)I=16}else{f=k[p>>2]|0;k[g+88>>2]=f+-1;c=a+(o*80|0)+796|0;h=w;I=16}if((I|0)==16){I=0;d=g;n=h;m=(k[c>>2]|0)+((h+-1|0)*12|0)|0;while(1){h=m+4|0;g=k[h>>2]|0;e=g+1|0;if(f>>>0>e>>>0)k[(k[r>>2]|0)+(e*20|0)+8>>2]=f;k[d+88>>2]=f+-1;Bh(D,l[m+8>>0]|0,k[m>>2]|0,g,0)|0;h=(k[h>>2]|0)+-1|0;f=k[p>>2]|0;if(f>>>0>h>>>0)k[(k[r>>2]|0)+(h*20|0)+8>>2]=f;d=k[b>>2]|0;k[d+88>>2]=f+-1;n=n+-1|0;if((n|0)<=0)break;else m=m+-12|0}}rgrg(S,k[M>>2]|0);break}if(A)break a;if(i[B>>0]|0)break a;if(x){x=Tq(a)|0;w=y+20|0;h=k[w>>2]|0;g=(k[x+32>>2]|0)+1+h|0;if((h|0)>0){h=0;do{Bh(x,76,C+(k[y+(h<<3)+36>>2]|0)|0,g,0)|0;h=h+1|0}while((h|0)<(k[w>>2]|0))}Bh(x,134,l[y+24>>0]|0,-1,0)|0}}while(0);y=k[y+4>>2]|0}while((y|0)!=0);h=b;g=k[P>>2]|0}g=gn(g+56|0,k[h>>2]|0,Q)|0;if((g|0)!=0?(n=k[g+8>>2]|0,T=S+65|0,(n|0)!=0):0){p=(e|0)!=0;q=a+408|0;t=a+20|0;u=a+68|0;v=(d|0)==0;w=(c|0)==0;x=p&1;o=R<<24>>24==0;do{k[X>>2]=0;k[W>>2]=0;if(!(p?(gv(b,n,e,f)|0)==0:0))Y=57;do if((Y|0)==57){Y=0;h=n+24|0;if((((i[h>>0]|0)==0?(k[V>>2]&16777216|0)==0:0)?(k[q>>2]|0)==0:0)?(i[t>>0]|0)==0:0)break;if(Rt(a,b,n,X,W)|0){if(o)break a;if(!(i[T>>0]|0))break;else break a}g=ur(S,0,0,0)|0;if(g){H=k[n>>2]|0;k[g+24>>2]=H;m=g+16|0;k[m>>2]=k[H>>2];H=H+40|0;j[H>>1]=(j[H>>1]|0)+1<<16>>16;H=k[u>>2]|0;k[u>>2]=H+1;k[g+48>>2]=H;if(!v)lv(a,g,b,k[X>>2]|0,n,k[W>>2]|0,d,-1);if((!w?(U=i[n+x+25>>0]|0,lv(a,g,b,k[X>>2]|0,n,k[W>>2]|0,c,1),(i[h>>0]|0)==0):0)?!(U<<24>>24==7|U<<24>>24==9):0){H=k[q>>2]|0;i[((H|0)==0?a:H)+21>>0]=1}k[m>>2]=0;Io(S,g)}rg(S,k[W>>2]|0)}while(0);n=k[n+12>>2]|0}while((n|0)!=0)}}while(0);r=Z;return}function Ft(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,n=0,o=0,p=0,q=0;q=r;r=r+16|0;if((r|0)>=(s|0))ka();p=q;o=k[a+8>>2]|0;g=k[b+8>>2]|0;a:do if(i[b+44>>0]&32){if(g){f=g;while(1){if((i[f+51>>0]&3)==2){n=5;break a}f=k[f+20>>2]|0;if(!f){f=0;n=5;break}}}}else{f=0;n=5}while(0);if((n|0)==5?(g|0)!=0:0){j=(e|0)==0;l=0;b=0;h=-1;while(1){if(j){if((g|0)!=(f|0))n=10}else if(!((g|0)==(f|0)?1:(k[e+(l<<2)>>2]|0)==0))n=10;if((n|0)==10){n=0;h=Ut(a,g,c,0,1,p,b,h)|0;Bh(o,111,l+d|0,h,m[((i[g+51>>0]&8)==0?g+48|0:g+46|0)>>1]|0)|0;Vt(a,k[p>>2]|0);b=g}g=k[g+20>>2]|0;if(!g)break;else l=l+1|0}}r=q;return}function Gt(a,b,c,d,e,f,g,h,l){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=Tq(a)|0;q=k[b+8>>2]|0;if(!q){n=b+44|0;p=0}else{r=(l|0)!=0;n=b+44|0;s=r?17:1;t=w+4|0;u=w+32|0;p=0;v=0;m=q;while(1){o=f+(v<<2)|0;q=k[o>>2]|0;do if(q){if(k[m+36>>2]|0){Bh(w,76,q,(k[u>>2]|0)+2|0,0)|0;q=k[o>>2]|0}Bh(w,110,v+d|0,q,0)|0;if((i[m+51>>0]&3)==2){q=(i[n>>0]&32)!=0;if(q|r)p=q?s:16;else{p=1;break}}else if(r)p=16;else{p=1;break}q=k[t>>2]|0;if(!q)p=1;else{i[q+(((k[u>>2]|0)+-1|0)*20|0)+3>>0]=p;p=1}}while(0);m=k[m+20>>2]|0;if(!m)break;else v=v+1|0}}if(!(i[n>>0]&32)){o=e+1|0;n=a+19|0;m=i[n>>0]|0;if(!(m<<24>>24)){f=a+72|0;q=(k[f>>2]|0)+1|0;k[f>>2]=q}else{q=m+-1<<24>>24;i[n>>0]=q;q=k[a+((q&255)<<2)+24>>2]|0}n=b+38|0;Bh(w,49,o,j[n>>1]|0,q)|0;if(!(p<<24>>24))Bt(w,b,0);it(a,o,j[n>>1]|0);o=a+18|0;if(!(i[o>>0]|0))m=(g|0)!=0?5:3;else m=0;if(h)m=(m&255|8)&255;if(!l)n=m;else n=(m&255|16)&255;Bh(w,75,c,q,e)|0;if(!(i[o>>0]|0))Ch(w,-1,k[b>>2]|0,0);m=k[w+4>>2]|0;if(m)i[m+(((k[w+32>>2]|0)+-1|0)*20|0)+3>>0]=n}return}function Ht(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=r;r=r+64|0;if((r|0)>=(s|0))ka();R=Y+52|0;Q=Y+48|0;V=Y+8|0;U=Y;T=Y+40|0;W=Y+32|0;S=Y+24|0;if(((k[(k[a>>2]|0)+24>>2]&524288|0)!=0?(P=b+68|0,g=gn((k[P>>2]|0)+56|0,k[b>>2]|0,Y+16|0)|0,(g|0)!=0):0)?(h=k[g+8>>2]|0,(h|0)!=0):0){O=(e|0)==0;H=(c|0)!=0;I=H&1;J=W+4|0;K=T+4|0;L=b+4|0;M=S+4|0;N=H?110:109;do{if(!(!O?(gv(b,h,e,f)|0)==0:0)){E=k[a>>2]|0;D=i[h+I+25>>0]|0;F=D&255;G=h+(I<<2)+28|0;c=k[G>>2]|0;do if(!(D<<24>>24==0|(c|0)!=0)){k[R>>2]=0;k[Q>>2]=0;if(!(Rt(a,b,h,R,Q)|0)){p=h+20|0;if((k[p>>2]|0)>0){x=34352;w=k[x>>2]|0;x=k[x+4>>2]|0;z=34360;y=k[z>>2]|0;z=k[z+4>>2]|0;A=h+36|0;C=D<<24>>24!=6&(D<<24>>24!=9|H);B=0;m=0;g=0;l=0;do{c=V;k[c>>2]=w;k[c+4>>2]=x;c=U;k[c>>2]=y;k[c+4>>2]=z;c=k[Q>>2]|0;if(!c)c=A;else c=c+(B<<2)|0;o=k[c>>2]|0;q=k[R>>2]|0;if(!q)u=34368;else u=k[(k[L>>2]|0)+((j[(k[q+4>>2]|0)+(B<<1)>>1]|0)*24|0)>>2]|0;k[W>>2]=u;c=k[(k[(k[h>>2]|0)+4>>2]|0)+(o*24|0)>>2]|0;k[T>>2]=c;if(!u)t=0;else{v=u;while(1)if(!(i[v>>0]|0))break;else v=v+1|0;t=v-u&1073741823}k[J>>2]=t;if(!c)n=0;else{u=c;while(1)if(!(i[u>>0]|0))break;else u=u+1|0;n=u-c&1073741823}k[K>>2]=n;v=cr(a,27,0,0,V)|0;v=cr(a,122,v,cr(a,27,0,0,W)|0,0)|0;l=xs(E,l,cr(a,79,v,cr(a,27,0,0,T)|0,0)|0)|0;if(H){u=cr(a,27,0,0,V)|0;u=cr(a,122,u,cr(a,27,0,0,W)|0,0)|0;v=cr(a,27,0,0,U)|0;g=xs(E,g,cr(a,73,u,cr(a,122,v,cr(a,27,0,0,W)|0,0)|0,0)|0)|0}if(C){do if(D<<24>>24==9){c=cr(a,27,0,0,U)|0;c=cr(a,122,c,cr(a,27,0,0,W)|0,0)|0}else if(D<<24>>24==8){c=k[(k[(k[h>>2]|0)+4>>2]|0)+(o*24|0)+4>>2]|0;if(!c){c=cr(a,101,0,0,0)|0;break}else{c=Rr(E,c,0,0)|0;break}}else c=cr(a,101,0,0,0)|0;while(0);m=qr(a,m,c)|0;rr(a,m,T,0)}B=B+1|0}while((B|0)<(k[p>>2]|0));c=h}else{c=h;m=0;g=0;l=0}rg(E,k[Q>>2]|0);v=k[k[c>>2]>>2]|0;if(!v)n=0;else{c=v;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;n=c-v&1073741823}if(D<<24>>24==6){k[S>>2]=v;k[M>>2]=n;c=yt(E,57,34376)|0;if(c)i[c+1>>0]=2;u=qr(a,0,c)|0;u=pr(a,u,ur(E,0,S,0)|0,l,0,0,0,0,0,0)|0;t=0}else{u=0;t=l}o=E+250|0;p=i[o>>0]|0;i[o>>0]=0;c=n+77|0;q=rh(E,c,0)|0;if(q){kw(q|0,0,c|0)|0;l=q+36|0;k[q+28>>2]=l;D=q+76|0;k[q+48>>2]=D;k[q+52>>2]=n;pw(D|0,v|0,n|0)|0;D=Rr(E,t,1,0)|0;k[q+56>>2]=D;D=Ur(E,m,1)|0;k[q+60>>2]=D;D=lr(E,u,1)|0;k[q+44>>2]=D;if(!g){c=q;g=0}else{g=cr(a,19,g,0,0)|0;c=Rr(E,g,1,0)|0;k[q+12>>2]=c;c=q}}else{c=0;l=0}i[o>>0]=p;Lk(E,t);Lk(E,g);Sk(E,m);Rk(E,u,1);if((i[E+65>>0]|0)==1){Pk(E,c);c=0;break}if((F|0)==6)i[l>>0]=119;else if((F|0)==9?!H:0)i[l>>0]=109;else X=49;if((X|0)==49){X=0;i[l>>0]=110}k[l+4>>2]=c;F=k[P>>2]|0;k[q+20>>2]=F;k[q+24>>2]=F;k[G>>2]=c;i[q+8>>0]=N}else c=0}while(0);if(c)iv(a,c,b,d,2,0)}h=k[h+12>>2]|0}while((h|0)!=0)}r=Y;return}function It(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0;c=j[a+46>>1]|0;a:do if(c<<16>>16==(j[b+46>>1]|0)?(i[a+50>>0]|0)==(i[b+50>>0]|0):0){if(c<<16>>16){d=k[b+4>>2]|0;e=k[a+4>>2]|0;f=b+28|0;g=a+28|0;h=b+32|0;l=a+32|0;p=0;do{if((j[d+(p<<1)>>1]|0)!=(j[e+(p<<1)>>1]|0)){c=0;break a}if((i[(k[f>>2]|0)+p>>0]|0)!=(i[(k[g>>2]|0)+p>>0]|0)){c=0;break a}m=k[(k[h>>2]|0)+(p<<2)>>2]|0;n=k[(k[l>>2]|0)+(p<<2)>>2]|0;o=(n|0)==0;if(!m){if(!o){c=0;break a}}else{if(o){c=0;break a}if(id(m,n)|0){c=0;break a}}p=p+1|0}while((p|0)<(c&65535|0))}c=(Hu(k[b+36>>2]|0,k[a+36>>2]|0,-1)|0)==0&1}else c=0;while(0);return c|0}function Jt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;do if(!(i[c+44>>0]&8))d=0;else{f=k[a+408>>2]|0;f=(f|0)==0?a:f;e=f+404|0;d=k[e>>2]|0;a:do if(!d)g=5;else while(1){if((k[d+4>>2]|0)==(c|0))break a;d=k[d>>2]|0;if(!d){g=5;break}}while(0);if((g|0)==5){d=rh(k[a>>2]|0,16,0)|0;if(!d){d=0;break}k[d>>2]=k[e>>2];k[e>>2]=d;k[d+4>>2]=c;k[d+8>>2]=b;a=f+72|0;e=k[a>>2]|0;k[d+12>>2]=e+2;k[a>>2]=e+3}d=k[d+12>>2]|0}while(0);return d|0}function Kt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;e=j[c+36>>1]|0;f=k[a>>2]|0;d=k[c>>2]|0;if(e<<16>>16>-1){e=k[(k[c+4>>2]|0)+((e<<16>>16)*24|0)>>2]|0;k[g>>2]=d;k[g+4>>2]=e;e=1555;d=zh(f,27824,g)|0}else{k[g>>2]=d;e=2579;d=zh(f,34408,g)|0}Es(a,e,b,d,-1,2);r=h;return}function Lt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a+316|0;f=k[e>>2]|0;b=qr(a,f,Rr(k[a>>2]|0,b,0,0)|0)|0;if(b){a=(k[b>>2]|0)+-1|0;f=k[b+4>>2]|0;k[f+(a*20|0)+16>>2]=c;a=f+(a*20|0)+13|0;i[a>>0]=i[a>>0]&-5|d<<2&4}k[e>>2]=b;return}function Mt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=k[d>>2]|0;if(!(f+-1&f)){h=ha((f|0)==0?1:f<<1,c)|0;a=wo(a,b,h,((h|0)<0)<<31>>31)|0;if(!a){k[e>>2]=-1;a=b}else g=4}else{a=b;g=4}if((g|0)==4){kw(a+(ha(f,c)|0)|0,0,c|0)|0;k[e>>2]=f;k[d>>2]=(k[d>>2]|0)+1}return a|0}function Nt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;k[g>>2]=0;b=k[a+12>>2]|0;if((b|0)!=0?(c=k[b+24>>2]|0,(c|0)>0):0){k[g>>2]=c;b=c}else b=0;c=k[a+16>>2]|0;if((c|0)!=0?(d=k[c+24>>2]|0,(d|0)>(b|0)):0)k[g>>2]=d;e=a+4|0;b=a+20|0;if(!(k[e>>2]&2048)){c=k[b>>2]|0;if(c){yu(c,g);b=k[b>>2]|0;if((b|0)!=0?(f=k[b>>2]|0,(f|0)>0):0){d=k[b+4>>2]|0;c=0;b=0;do{b=k[(k[d+(c*20|0)>>2]|0)+4>>2]|b;c=c+1|0}while((c|0)!=(f|0));b=b&2097408}else b=0;k[e>>2]=k[e>>2]|b}}else Js(k[b>>2]|0,g);k[a+24>>2]=(k[g>>2]|0)+1;r=h;return}function Ot(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=Tq(a)|0;g=a+72|0;f=(k[g>>2]|0)+1|0;k[g>>2]=f;a=rh(k[a>>2]|0,8,0)|0;if(a){g=a;k[g>>2]=c;k[g+4>>2]=d}Ch(e,Bh(e,26,0,f,0)|0,a,-13);nq(e,1);if(!(i[(k[e>>2]|0)+65>>0]|0))ah(k[e+16>>2]|0,b,-1,1,0)|0;Bh(e,35,f,1,0)|0;return}function Pt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;b=k[a>>2]|0;c=b+16|0;d=k[(k[c>>2]|0)+20>>2]|0;do if(!d)b=0;else{if((i[b+63>>0]|0)!=0?(i[d+8>>0]|0)==0:0){Rl(d);k[(k[c>>2]|0)+20>>2]=0;Jg(b);b=0;break}yh(a,32128,e);b=1}while(0);r=f;return b|0}function Qt(a){a=a|0;var b=0,c=0,d=0;if((i[a+63>>0]|0)!=0?(b=k[a+20>>2]|0,(b|0)>0):0){d=a+24|0;c=k[a+16>>2]|0;while(1){b=b+-1|0;a=k[c+4>>2]|0;if(a)yo(a,k[d>>2]&28|l[c+8>>0]);if((b|0)<=0)break;else c=c+16|0}}return}function Rt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+16|0;if((r|0)>=(s|0))ka();w=z;x=k[c+20>>2]|0;g=k[c+40>>2]|0;if((x|0)==1){q=j[b+36>>1]|0;f=q<<16>>16;if(q<<16>>16>-1)if((g|0)!=0?(id(k[(k[b+4>>2]|0)+(f*24|0)>>2]|0,g)|0)!=0:0){v=0;y=8}else e=0;else{v=0;y=8}}else if(e){f=rh(k[a>>2]|0,x<<2,0)|0;if(!f)e=1;else{k[e>>2]=f;v=f;y=8}}else{v=0;y=8}a:do if((y|0)==8){e=k[b+8>>2]|0;b:do if(e){q=(g|0)==0;u=(x|0)>0;p=b+4|0;t=(v|0)==0;c:while(1){do if((m[e+46>>1]|0)==(x|0)?(i[e+50>>0]|0)!=0:0){if(q)if((i[e+51>>0]&3)==2){y=16;break c}else break;d:do if(u){h=k[e+4>>2]|0;l=k[p>>2]|0;n=k[e+32>>2]|0;o=0;while(1){b=j[h+(o<<1)>>1]|0;g=k[l+(b*24|0)+16>>2]|0;if(id(k[n+(o<<2)>>2]|0,(g|0)!=0?g:11152)|0){g=o;break d}g=k[l+(b*24|0)>>2]|0;f=0;while(1){b=f+1|0;if(!(id(k[c+(f<<3)+40>>2]|0,g)|0)){b=f;y=23;break}if((b|0)<(x|0))f=b;else break}if((y|0)==23){y=0;if(!t)k[v+(o<<2)>>2]=k[c+(b<<3)+36>>2]}g=o+1|0;if((b|0)==(x|0)){g=o;break d}if((g|0)<(x|0))o=g;else break}}else g=0;while(0);if((g|0)==(x|0))break c}while(0);e=k[e+20>>2]|0;if(!e)break b}if((y|0)==16)if(!(t|u^1)){f=0;do{k[v+(f<<2)>>2]=k[c+(f<<3)+36>>2];f=f+1|0}while((f|0)!=(x|0))}k[d>>2]=e;e=0;break a}while(0);if(!(i[a+438>>0]|0)){q=k[c+8>>2]|0;k[w>>2]=k[k[c>>2]>>2];k[w+4>>2]=q;yh(a,32008,w)}rg
7 function Yt(a,b){a=a|0;b=b|0;var c=0;if(b&1)if(!(k[a+12>>2]|0))b=(k[a+20>>2]|0)==0?12:28;else b=28;else b=48;if((k[a+4>>2]&1024|0)==0?(c=k[a+8>>2]|0,(c|0)!=0):0){a=c;while(1)if(!(i[a>>0]|0))break;else a=a+1|0;b=(b|1)+(a-c&1073741823)|0}return b+7&-8|0}function Zt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=k[a>>2]|0;g=d+20|0;c=k[g>>2]|0;if((c|0)>0){f=0;e=k[d+16>>2]|0;while(1){d=k[(k[e+12>>2]|0)+16>>2]|0;if(d){c=d;do{_t(a,k[c+8>>2]|0,b);c=k[c>>2]|0}while((c|0)!=0);c=k[g>>2]|0}f=f+1|0;if((f|0)>=(c|0))break;else e=e+16|0}}return}function _t(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0;d=k[b+8>>2]|0;if(d){m=(c|0)==0;i=b+68|0;l=a+408|0;do{a:do if(!m){g=d+32|0;b=j[d+48>>1]|0;if(b<<16>>16){f=k[d+4>>2]|0;b=b&65535;e=0;do{if((j[f+(e<<1)>>1]|0)>-1?(id(k[(k[g>>2]|0)+(e<<2)>>2]|0,c)|0)==0:0){n=9;break a}e=e+1|0}while((e|0)<(b|0))}}else n=9;while(0);if((n|0)==9){n=0;b=k[a>>2]|0;e=k[i>>2]|0;b:do if(e){h=k[b+20>>2]|0;if((h|0)>0){f=k[b+16>>2]|0;g=0;while(1){b=g+1|0;if((k[f+(g<<4)+12>>2]|0)==(e|0)){b=g;break b}if((b|0)<(h|0))g=b;else break}}else b=0}else b=-1e6;while(0);h=k[l>>2]|0;Fr(a,b);h=((h|0)==0?a:h)+328|0;k[h>>2]=k[h>>2]|1<<b;As(a,d,-1)}d=k[d+20>>2]|0}while((d|0)!=0)}return}function $t(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=k[(k[(k[a>>2]|0)+16>>2]|0)+(b<<4)+12>>2]|0;f=k[a+408>>2]|0;Fr(a,b);f=((f|0)==0?a:f)+328|0;k[f>>2]=k[f>>2]|1<<b;f=a+68|0;d=k[f>>2]|0;k[f>>2]=d+3;mv(a,b,d,0,0);e=(k[a+72>>2]|0)+1|0;f=k[f>>2]|0;c=k[c+16>>2]|0;if(c)do{nv(a,k[c+8>>2]|0,0,d,e,f);c=k[c>>2]|0}while((c|0)!=0);ov(a,b);return}function au(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=k[a>>2]|0;g=k[b+68>>2]|0;a:do if(g){h=k[d+20>>2]|0;if((h|0)>0){e=k[d+16>>2]|0;d=0;while(1){f=d+1|0;if((k[e+(d<<4)+12>>2]|0)==(g|0)){f=d;break a}if((f|0)<(h|0))d=f;else break}}else f=0}else f=-1e6;while(0);d=k[a+408>>2]|0;Fr(a,f);d=((d|0)==0?a:d)+328|0;k[d>>2]=k[d>>2]|1<<f;d=a+68|0;e=k[d>>2]|0;k[d>>2]=e+3;if(!c)mv(a,f,e,k[b>>2]|0,28544);else mv(a,f,e,k[c>>2]|0,28536);nv(a,b,c,e,(k[a+72>>2]|0)+1|0,k[d>>2]|0);ov(a,f);return}function bu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=((c|0)/2|0)+1|0;e=rh(a,e,((e|0)<0)<<31>>31)|0;a=c+-1|0;if(e){if((a|0)>0){d=0;do{f=i[b+d>>0]|0;g=i[b+(d|1)>>0]|0;i[e+((d|0)/2|0)>>0]=(0-(g>>>6&1)&9)+g&15|(0-(f>>>6&1)&9)+f<<4;d=d+2|0}while((d|0)<(a|0));a=(c&-2|0)/2|0}else a=0;i[e+a>>0]=0}return e|0}function cu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();f=j+8|0;h=j;g=k[a+8>>2]|0;e=b+8|0;do if(!(k[b+4>>2]&1024)){e=k[e>>2]|0;b=oi(e,h)|0;if((b|0)!=0?!((b|0)==2&(c|0)!=0):0)if(!(Kc(e,29144,2)|0)){k[f>>2]=e;yh(a,29152,f);break}else{du(g,e,c,d);break}if(c){if((b|0)==2){b=0;e=-2147483648}else{b=h;b=iw(0,0,k[b>>2]|0,k[b+4>>2]|0)|0;e=L}c=h;k[c>>2]=b;k[c+4>>2]=e}b=rh(k[g>>2]|0,8,0)|0;if(b){c=h;f=k[c>>2]|0;c=k[c+4>>2]|0;e=b;a=e;i[a>>0]=f;i[a+1>>0]=f>>8;i[a+2>>0]=f>>16;i[a+3>>0]=f>>24;e=e+4|0;i[e>>0]=c;i[e+1>>0]=c>>8;i[e+2>>0]=c>>16;i[e+3>>0]=c>>24}Ch(g,Bh(g,26,0,d,0)|0,b,-13)}else{b=k[e>>2]|0;Bh(g,25,(c|0)==0?b:0-b|0,d,0)|0}while(0);r=j;return}function du(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;if(b){e=b;while(1)if(!(i[e>>0]|0))break;else e=e+1|0;Yl(b,f,e-b&1073741823,1)|0;if(c)p[f>>3]=-+p[f>>3];e=rh(k[a>>2]|0,8,0)|0;if(e){b=f;h=k[b>>2]|0;b=k[b+4>>2]|0;c=e;f=c;i[f>>0]=h;i[f+1>>0]=h>>8;i[f+2>>0]=h>>16;i[f+3>>0]=h>>24;c=c+4|0;i[c>>0]=b;i[c+1>>0]=b>>8;i[c+2>>0]=b>>16;i[c+3>>0]=b>>24}Ch(a,Bh(a,133,0,d,0)|0,e,-12)}r=g;return}function eu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+32|0;if((r|0)>=(s|0))ka();e=j;a:do if(!b)g=0;else while(1){d=k[b+4>>2]|0;if(!(d&4096)){g=b;break a}if(!(d&262144))b=b+12|0;else b=k[(k[b+20>>2]|0)+4>>2]|0;b=k[b>>2]|0;if(!b){g=0;break}}while(0);b:do if(((i[a+23>>0]|0)!=0?(i[g>>0]|0)!=-97:0)?(k[e+0>>2]=0,k[e+4>>2]=0,k[e+8>>2]=0,k[e+12>>2]=0,k[e+16>>2]=0,k[e+20>>2]=0,d=e+20|0,i[d>>0]=2,k[e>>2]=78,k[e+4>>2]=79,k[e+24>>2]=0,ws(e,g)|0,(i[d>>0]|0)!=0):0){d=k[a+316>>2]|0;k[c>>2]=0;c:do if((d|0)!=0?(f=k[d>>2]|0,(f|0)>0):0){b=f;d=k[d+4>>2]|0;while(1){if((i[d+13>>0]&4)!=0?(Hu(k[d>>2]|0,g,-1)|0)==0:0)break;b=b+-1|0;if((b|0)<=0)break c;else d=d+20|0}d=k[d+16>>2]|0;break b}while(0);b=a+72|0;d=(k[b>>2]|0)+1|0;k[b>>2]=d;Lt(a,g,d,1)}else h=18;while(0);do if((h|0)==18){b=a+19|0;d=i[b>>0]|0;if(!(d<<24>>24)){b=a+72|0;d=(k[b>>2]|0)+1|0;k[b>>2]=d}else{d=d+-1<<24>>24;i[b>>0]=d;d=k[a+((d&255)<<2)+24>>2]|0}b=ns(a,g,d)|0;if((b|0)==(d|0)){k[c>>2]=d;break}else{ds(a,d);k[c>>2]=0;d=b;break}}while(0);r=j;return d|0}function fu(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,l=0;l=Tu(a,b,c)|0;j=Gu(b,pv(c)|0)|0;c=a+8|0;b=k[c>>2]|0;Ch(b,Bh(b,d,f,g,e)|0,l,-4);c=k[c>>2]|0;b=k[c+4>>2]|0;if(b)i[b+(((k[c+32>>2]|0)+-1|0)*20|0)+3>>0]=j&255|h;return}function gu(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0;b=a+100|0;k[b>>2]=(k[b>>2]|0)+-1;e=a+19|0;h=0;j=a+116|0;while(1){f=j+12|0;g=k[f>>2]|0;if((g|0)!=0?(k[j+8>>2]|0)>(k[b>>2]|0):0){c=j+6|0;if(i[c>>0]|0){d=i[e>>0]|0;if((d&255)<8){i[e>>0]=d+1<<24>>24;k[a+((d&255)<<2)+24>>2]=g}i[c>>0]=0}k[f>>2]=0}h=h+1|0;if((h|0)==10)break;else j=j+20|0}return}function hu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=k[a>>2]|0;a:do if(b){b:while(1){d=k[b+4>>2]|0;if(d&512){b=0;h=21;break a}switch(i[b>>0]|0){case 62:case -102:case -100:{h=8;break}case 38:case -98:{b=k[b+12>>2]|0;break}case 95:{h=7;break b}case -97:{if((i[b+38>>0]|0)==95){h=7;break b}else h=8;break}default:h=11}if((h|0)==8){c=k[b+44>>2]|0;if(!c)h=11;else{h=9;break}}c:do if((h|0)==11){h=0;if(!(d&256)){b=0;h=21;break a}c=k[b+12>>2]|0;if((c|0)!=0?(k[c+4>>2]&256|0)!=0:0){b=c;continue b}e=k[b+16>>2]|0;c=k[b+20>>2]|0;if((c|0)!=0&(d&2048|0)==0?(f=k[c>>2]|0,(f|0)>0):0){c=k[c+4>>2]|0;d=0;while(1){b=k[c+(d*20|0)>>2]|0;d=d+1|0;if(k[b+4>>2]&256)break c;if((d|0)>=(f|0)){b=e;break}}}else b=e}while(0);if(!b){b=0;h=21;break a}}if((h|0)==7)b=Bs(a,i[g+62>>0]|0,0,k[b+8>>2]|0)|0;else if((h|0)==9){b=j[b+32>>1]|0;if(b<<16>>16<=-1){b=0;h=21;break}b=bo(g,i[g+62>>0]|0,k[(k[c+4>>2]|0)+((b<<16>>16)*24|0)+16>>2]|0,0)|0}if(b)if(!(Bs(a,i[(k[a>>2]|0)+62>>0]|0,b,k[b>>2]|0)|0))b=0;else h=21;else{b=0;h=21}}else{b=0;h=21}while(0);return b|0}function iu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();o=p+4|0;n=p;k[o>>2]=0;k[n>>2]=0;if((((d|0)!=0?(i[d>>0]|0)==-102:0)?(g=k[d+44>>2]|0,(g|0)!=0):0)?(i[g+44>>0]&16)!=0:0){d=g+60|0;while(1){d=k[d>>2]|0;if((k[d>>2]|0)==(a|0))break;else d=d+24|0}f=k[d+8>>2]|0;e=(k[f>>2]|0)+72|0;if((k[e>>2]|0)!=0?(l=b+24|0,h=ph(a,k[l>>2]|0)|0,(h|0)!=0):0){g=i[h>>0]|0;if(g<<24>>24){d=h;do{i[d>>0]=i[9328+(g&255)>>0]|0;d=d+1|0;g=i[d>>0]|0}while(g<<24>>24!=0)}c=yc[k[e>>2]&31](f,c,h,o,n)|0;rgrg(x,b);if(!h){b=0;break c}else{m=-1;b=h}}else g=n;m=m+1|0;if((m|0)>=(a|0))break;else n=g}}while(0);k[p>>2]=b;a=a+1|0;if((a|0)<(q|0))p=p+24|0;else{b=t;break a}}rg(x,b);b=t}else y=6}else{j[c>>1]=0;k[d>>2]=0;e=0;y=6}while(0);if((y|0)==6){b=x+65|0;a=0}if(i[b>>0]|0){if((a|0)>0){b=0;do{rg(x,k[e+(b*24|0)>>2]|0);b=b+1|0}while((b|0)!=(a|0))}rg(x,e);k[d>>2]=0;j[c>>1]=0}r=z;return}function ou(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0;p=r;r=r+32|0;if((r|0)>=(s|0))ka();o=p;n=k[a>>2]|0;if(!(i[n+65>>0]|0)){k[o+0>>2]=0;k[o+4>>2]=0;k[o+8>>2]=0;k[o+12>>2]=0;k[o+16>>2]=0;k[o+20>>2]=0;k[o+24>>2]=0;k[o+28>>2]=0;k[o+4>>2]=k[c+32>>2];g=k[(k[c>>2]|0)+4>>2]|0;f=b+38|0;if((j[f>>1]|0)>0){c=0;d=0;h=0;m=k[b+4>>2]|0;while(1){e=k[g+(h*20|0)>>2]|0;q=m+22|0;t=ph(n,Du(o,e,q)|0)|0;k[m+12>>2]=t;c=ow(l[q>>0]|0,0,c|0,d|0)|0;d=L;q=pv(e)|0;i[m+21>>0]=q<<24>>24==0?65:q;e=hu(a,e)|0;if(e){e=ph(n,k[e>>2]|0)|0;k[m+16>>2]=e}h=h+1|0;if((h|0)>=(j[f>>1]|0))break;else m=m+24|0}d=nw(c|0,d|0,2)|0;c=L}else{d=0;c=0}o=ks(d,c)|0;j[b+42>>1]=o}r=p;return}function pu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;do if(!b)c=0;else{f=a+4|0;d=k[f>>2]|0;if((d|0)==0?(k[a+8>>2]|0)==0:0){c=0;break}i=a+16|0;k[i>>2]=(k[i>>2]|0)+1;g=a+8|0;a:while(1){if((d|0)!=0?(c=wc[d&127](a,b)|0,(c|0)!=0):0){j=24;break}if(qu(a,k[b>>2]|0)|0){j=19;break}if(ws(a,k[b+36>>2]|0)|0){j=19;break}if(qu(a,k[b+40>>2]|0)|0){j=19;break}if(ws(a,k[b+44>>2]|0)|0){j=19;break}if(qu(a,k[b+48>>2]|0)|0){j=19;break}if(ws(a,k[b+60>>2]|0)|0){j=19;break}if(ws(a,k[b+64>>2]|0)|0){j=19;break}d=k[b+32>>2]|0;if((d|0)!=0?(h=k[d>>2]|0,(h|0)>0):0){e=h;d=d+8|0;while(1){if(pu(a,k[d+20>>2]|0)|0){j=19;break a}e=e+-1|0;if((e|0)<=0)break;else d=d+72|0}}d=k[g>>2]|0;if(d)oc[d&15](a,b);b=k[b+52>>2]|0;if(!b){c=0;break}d=k[f>>2]|0}if((j|0)==19){k[i>>2]=(k[i>>2]|0)+-1;c=2;break}else if((j|0)==24)c=c&2;k[i>>2]=(k[i>>2]|0)+-1}while(0);return c|0}function qu(a,b){a=a|0;b=b|0;var c=0;a:do if((b|0)!=0?(c=k[b>>2]|0,(c|0)>0):0){b=k[b+4>>2]|0;while(1){if(ws(a,k[b>>2]|0)|0){c=2;break a}c=c+-1|0;if((c|0)<=0){c=0;break}else b=b+20|0}}else c=0;while(0);return c|0}function ru(a){a=a|0;var b=0,c=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;k[b>>2]=0;if((k[a+4>>2]&1|0)==0?(Rs(a,b)|0)!=0:0)a=(k[b>>2]|0)==0&1;else a=0;r=c;return a|0}function su(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0;q=r;r=r+32|0;if((r|0)>=(s|0))ka();o=q;f=k[c+12>>2]|0;k[o+0>>2]=0;k[o+4>>2]=0;k[o+8>>2]=0;k[o+12>>2]=0;k[o+16>>2]=0;k[o+20>>2]=200;i[o+24>>0]=1;i[o+25>>0]=0;k[o>>2]=k[a>>2];l=c+46|0;if(j[l>>1]|0){n=c+4|0;g=f+4|0;p=0;do{h=k[(k[g>>2]|0)+((j[(k[n>>2]|0)+(p<<1)>>1]|0)*24|0)>>2]|0;if(p)Xk(o,28920,2);e=k[f>>2]|0;if(!e)d=0;else{d=e;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-e&1073741823}Xk(o,e,d);Xk(o,28928,1);if(!h)d=0;else{d=h;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-h&1073741823}Xk(o,h,d);p=p+1|0}while((p|0)<(m[l>>1]|0))}p=yg(o)|0;Es(a,(i[c+51>>0]&3)==2?1555:2067,b,p,-1,2);r=q;return}function tu(a,b){a=a|0;b=b|0;return 0}function uu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();o=p+8|0;l=p;n=b+52|0;a:do if((k[n>>2]|0)!=0?(d=k[b+48>>2]|0,!((d|0)==0|(b|0)==0)):0){c=b;while(1){h=i[c+4>>0]|0;if(!(h<<24>>24==119|h<<24>>24==116))break;c=k[c+52>>2]|0;if(!c){c=0;break a}}e=k[d+4>>2]|0;c=k[d>>2]|0;while(1){d=c+-1|0;if((c|0)<=0){c=0;break a}if(!(k[(k[e+(d*20|0)>>2]|0)+4>>2]&256))c=d;else break}if((c|0)>=1){c=k[a+12>>2]|0;f=k[c>>2]|0;a=rh(f,72,0)|0;if(a){g=a+0|0;h=g+72|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(h|0));e=l;k[e>>2]=0;k[e+4>>2]=0;e=or(c,0,0,0,l,a,0,0)|0;if(e){g=a+0|0;d=b+0|0;h=g+72|0;do{k[g>>2]=k[d>>2];g=g+4|0;d=d+4|0}while((g|0)<(h|0));k[b+32>>2]=e;k[o>>2]=0;k[o+4>>2]=0;c=qr(c,0,sr(f,116,o,0)|0)|0;k[b>>2]=c;i[b+4>>0]=119;k[b+36>>2]=0;k[a+40>>2]=0;k[a+44>>2]=0;k[a+48>>2]=0;k[n>>2]=0;k[b+56>>2]=0;c=b+6|0;j[c>>1]=(m[c>>1]|0)&57279|8192;k[(k[a+52>>2]|0)+56>>2]=a;k[a+60>>2]=0;k[a+64>>2]=0;c=0}else c=2}else c=2}else c=0}else c=0;while(0);r=p;return c|0}function vu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;X=r;r=r+32|0;if((r|0)>=(s|0))ka();W=X;T=X+16|0;G=a+12|0;V=k[G>>2]|0;U=k[V>>2]|0;R=b+6|0;g=m[R>>1]|0;j[R>>1]=g|16;S=U+65|0;a:do if(!(i[S>>0]|0)){F=b+32|0;P=k[F>>2]|0;if((P|0)!=0&(g&16|0)==0){Q=k[b>>2]|0;if((k[a+8>>2]|0)==9){g=b;while(1){f=k[g+56>>2]|0;if(!f)break;else g=f}g=k[g+68>>2]|0;if(g){C=V+532|0;k[g+4>>2]=k[C>>2];k[C>>2]=g;i[V+449>>0]=0}}Hs(V,P);O=P+8|0;g=k[P>>2]|0;b:do if((g|0)>0){B=0;v=O;c:while(1){if(!(i[v+37>>0]&8)){C=v+16|0;c=k[G>>2]|0;if(k[C>>2]|0){d=c;N=10;break}q=k[c>>2]|0;f=c+532|0;h=k[f>>2]|0;d:do if((k[v+4>>2]|0)==0?(E=k[v+8>>2]|0,!((E|0)==0|(h|0)==0)):0){e:while(1){n=k[h>>2]|0;if((n|0)>0){e=0;do{g=h+(e<<4)+8|0;d=k[g>>2]|0;if(!(id(E,d)|0)){z=e;break e}e=e+1|0}while((e|0)<(n|0))}h=k[h+4>>2]|0;if(!h){N=46;break d}}w=h+(z<<4)+20|0;n=k[w>>2]|0;if(n){b=n;N=21;break c}y=rh(q,76,0)|0;if(!y){b=C;N=23;break c}o=y+0|0;n=o+76|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(n|0));k[C>>2]=y;t=y+40|0;j[t>>1]=1;A=ph(q,k[g>>2]|0)|0;k[y>>2]=A;j[y+36>>1]=-1;j[y+28>>1]=200;A=y+44|0;i[A>>0]=l[A>>0]|2;A=lr(q,k[h+(z<<4)+16>>2]|0,0)|0;k[v+20>>2]=A;if(i[q+65>>0]|0){b=2;break a}x=((i[A+4>>0]|0)+-115&255)<2;if(x?(u=k[A+32>>2]|0,D=k[u>>2]|0,(D|0)>0):0){n=A+6|0;o=D;q=0;do{do if(!(k[u+(q*72|0)+12>>2]|0)){p=k[u+(q*72|0)+16>>2]|0;if(!p)break;if(id(p,k[g>>2]|0)|0)break;k[u+(q*72|0)+24>>2]=y;o=u+(q*72|0)+45|0;i[o>>0]=i[o>>0]|8;j[t>>1]=(j[t>>1]|0)+1<<16>>16;j[n>>1]=m[n>>1]|2048;o=k[u>>2]|0}while(0);q=q+1|0}while((q|0)<(o|0))}if((m[t>>1]|0)>2){b=g;N=34;break c}k[w>>2]=28176;e=k[f>>2]|0;k[f>>2]=h;if(x)n=k[A+52>>2]|0;else n=A;pu(a,n)|0;n=A;while(1){d=k[n+52>>2]|0;if(!d)break;else n=d}d=k[n>>2]|0;n=k[h+(z<<4)+12>>2]|0;do if(n){if(!d)break;p=k[d>>2]|0;d=k[n>>2]|0;if((p|0)!=(d|0)){b=p;N=42;break c}}else n=d;while(0);nu(c,n,y+38|0,y+4|0);if(x){k[w>>2]=(j[A+6>>1]&2048)==0?28280:28240;pu(a,A)|0}k[w>>2]=0;k[f>>2]=e;if(!(k[C>>2]|0))N=46}else N=46;while(0);do if((N|0)==46){N=0;if(!(k[v+8>>2]|0)){h=k[v+20>>2]|0;if(pu(a,h)|0){b=2;break a}f=rh(U,76,0)|0;if(!f){b=C;N=49;break c}o=f+0|0;n=o+76|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(n|0));k[C>>2]=f;j[f+40>>1]=1;k[W>>2]=f;C=zh(U,27760,W)|0;k[f>>2]=C;while(1){g=k[h+52>>2]|0;if(!g)break;else h=g}nu(V,k[h>>2]|0,f+38|0,f+4|0);j[f+36>>1]=-1;j[f+28>>1]=200;C=f+44|0;i[C>>0]=l[C>>0]|2;break}c=Zr(V,0,v)|0;k[C>>2]=c;if(!c){b=2;break a}h=c+40|0;g=j[h>>1]|0;if(g<<16>>16==-1){b=C;N=55;break c}j[h>>1]=g+1<<16>>16;h=c+12|0;if((k[h>>2]|0)==0?(i[c+44>>0]&16)==0:0)break;if(mr(V,c)|0){b=2;break a}C=lr(U,k[h>>2]|0,0)|0;k[v+20>>2]=C;pu(a,C)|0}while(0);if(Wt(V,v)|0){b=2;break a}g=k[P>>2]|0}B=B+1|0;if((B|0)>=(g|0))break b;else v=v+72|0}if((N|0)==10){while(1){c=k[b+56>>2]|0;if(!c)break;else b=c}b=k[b+68>>2]|0;if(!b){b=1;break a}k[d+532>>2]=k[b+4>>2];b=1;break a}else if((N|0)==21){k[W>>2]=d;yh(c,b,W);b=2;break a}else if((N|0)==23){k[b>>2]=0;b=2;break a}else if((N|0)==34){k[W>>2]=k[b>>2];yh(c,28128,W);b=2;break a}else if((N|0)==42){k[W>>2]=k[g>>2];k[W+4>>2]=b;k[W+8>>2]=d;yh(c,28200,W);k[f>>2]=e;b=2;break a}else if((N|0)==49){k[b>>2]=0;b=2;break a}else if((N|0)==55){k[W>>2]=k[c>>2];yh(V,27776,W);k[b>>2]=0;b=2;break a}}while(0);if(!(i[S>>0]|0)){v=k[F>>2]|0;f:do if(((k[v>>2]|0)+-1|0)>0){w=b+36|0;y=0;z=v+8|0;A=v+80|0;g:while(1){x=k[A+16>>2]|0;if(!((k[z+16>>2]|0)==0|(x|0)==0)){D=l[A+36>>0]|0;u=D&32;q=(u|0)==0;u=u>>>5;t=A+44|0;if(D&4){if(k[t>>2]|0){N=73;break}g=A+48|0;if(k[g>>2]|0){N=73;break}d=x+38|0;h=j[d>>1]|0;if(h<<16>>16>0){c=x+4|0;p=y+1|0;o=0;do{f=k[(k[c>>2]|0)+(o*24|0)>>2]|0;e=0;do{n=xv(k[v+(e*72|0)+24>>2]|0,f)|0;if((n|0)>-1){h=e;N=77;break}e=e+1|0}while((e|0)<(p|0));if((N|0)==77){N=0;yv(V,v,h,n,p,o,u,w);h=j[d>>1]|0}o=o+1|0}while((o|0)<(h<<16>>16|0))}}else g=A+48|0;h=k[t>>2]|0;if(h){if(k[g>>2]|0){N=81;break}if(!q){zv(h,k[A+40>>2]|0);h=k[t>>2]|0}D=xs(k[V>>2]|0,k[w>>2]|0,h)|0;k[w>>2]=D;k[t>>2]=0}f=k[g>>2]|0;if((f|0)!=0?(M=f+4|0,(k[M>>2]|0)>0):0){e=y+1|0;n=0;do{c=k[(k[f>>2]|0)+(n<<3)>>2]|0;d=xv(x,c)|0;if((d|0)<0){N=91;break g}else h=0;while(1){g=xv(k[v+(h*72|0)+24>>2]|0,c)|0;if((g|0)>-1)break;h=h+1|0;if((h|0)>=(e|0)){N=91;break g}}yv(V,v,h,g,e,d,u,w);n=n+1|0}while((n|0)<(k[M>>2]|0))}}y=y+1|0;if((y|0)>=((k[v>>2]|0)+-1|0))break f;else{z=z+72|0;A=A+72|0}}if((N|0)==73){k[W>>2]=0;yh(V,27928,W);b=2;break a}else if((N|0)==81){yh(V,27984,W);b=2;break a}else if((N|0)==91){k[W>>2]=c;yh(V,28040,W);b=2;break a}}while(0);c=k[Q>>2]|0;h=(c|0)>0;h:do if(h){d=k[Q+4>>2]|0;g=0;do{f=k[d+(g*20|0)>>2]|0;e=i[f>>0]|0;if(e<<24>>24==122){if((i[k[f+16>>2]>>0]|0)==116)break h}else if(e<<24>>24==116)break h;g=g+1|0}while((g|0)<(c|0))}else g=0;while(0);if((g|0)<(c|0)){M=k[Q+4>>2]|0;g=k[(k[V>>2]|0)+24>>2]|0;if(!(g&32))L=0;else L=(g&64|0)==0;if(h){H=U+20|0;I=U+16|0;J=T+4|0;K=0;c=0;do{f=M+(K*20|0)|0;h=k[f>>2]|0;g=i[h>>0]|0;if(g<<24>>24==116){a=0;N=110}else if(g<<24>>24==122?(i[k[h+16>>2]>>0]|0)==116:0){a=k[(k[h+12>>2]|0)+8>>2]|0;N=110}else N=106;do if((N|0)==106){c=qr(V,c,h)|0;if(c){C=M+(K*20|0)+4|0;B=(k[c>>2]|0)+-1|0;A=k[c+4>>2]|0;k[A+(B*20|0)+4>>2]=k[C>>2];D=M+(K*20|0)+8|0;k[A+(B*20|0)+8>>2]=k[D>>2];k[C>>2]=0;k[D>>2]=0}k[f>>2]=0}else if((N|0)==110){if((k[P>>2]|0)>0){D=(a|0)==0;E=(a|0)!=0;F=0;G=O;g=0;while(1){q=k[G+16>>2]|0;f=k[G+20>>2]|0;h=k[G+12>>2]|0;if(!h)h=k[q>>2]|0;if(i[S>>0]|0)break;if((f|0)!=0?(j[f+6>>1]&512)!=0:0){C=0;N=125}else N=117;do if((N|0)==117){N=0;if(!D?(id(a,h)|0)!=0:0)break;n=k[q+68>>2]|0;if(!n){f=0;C=27816;N=125;break}e=k[H>>2]|0;o=k[I>>2]|0;if((e|0)>0){d=0;while(1){f=d+1|0;if((k[o+(d<<4)+12>>2]|0)==(n|0)){f=d;break}if((f|0)<(e|0))d=f;else break}if((f|0)>-1)e=f;else{f=0;C=27816;N=125;break}}else e=0;f=0;C=k[o+(e<<4)>>2]|0;N=125}while(0);do if((N|0)==125){N=0;B=q+38|0;t=j[B>>1]|0;if(t<<16>>16<=0)break;x=q+4|0;w=(f|0)!=0;o=E&w;y=(F|0)>0;p=y&D;v=G+36|0;y=y^1;u=G+48|0;n=(C|0)==0;z=0;do{q=k[x>>2]|0;d=k[q+(z*24|0)>>2]|0;if(!(o?(Av(k[(k[(k[f>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0,0,a,0)|0)==0:0))N=129;i:do if((N|0)==129){N=0;if(i[q+(z*24|0)+23>>0]&2)break;if(p){if(!((i[v>>0]&4)==0|y)){q=0;do{if((xv(k[P+(q*72|0)+24>>2]|0,d)|0)>-1){g=1;break i}q=q+1|0}while((q|0)<(F|0))}if((Bv(k[u>>2]|0,d)|0)>-1){g=1;break}}t=yt(U,27,d)|0;if(!L?(k[P>>2]|0)<=1:0){e=d;A=0}else N=137;do if((N|0)==137){N=0;t=cr(V,122,yt(U,27,h)|0,t,0)|0;if(!n)t=cr(V,122,yt(U,27,C)|0,t,0)|0;if(!L){e=d;A=0;break}k[W>>2]=h;k[W+4>>2]=d;A=zh(U,27824,W)|0;e=A}while(0);c=qr(V,c,t)|0;k[T>>2]=e;if(!e)t=0;else{t=e;while(1)if(!(i[t>>0]|0))break;else t=t+1|0;t=t-e&1073741823}k[J>>2]=t;rr(V,c,T,0);do if(c){if(!(j[R>>1]&512))break;q=(k[c>>2]|0)+-1|0;d=k[c+4>>2]|0;if(w)t=ph(U,k[(k[(k[f>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0)|0;else{k[W>>2]=C;k[W+4>>2]=h;k[W+8>>2]=e;t=zh(U,27832,W)|0}k[d+(q*20|0)+8>>2]=t;t=d+(q*20|0)+13|0;i[t>>0]=i[t>>0]|2}while(0);rgrg(ha,$);d=7;break}U=$+28|0;X=$+24|0;F=$+20|0;G=$+32|0;H=$+40|0;I=$+48|0;J=aa+60|0;K=da+64|0;M=(E|0)>0;N=ea+30|0;O=ea+24|0;P=ea+32|0;Q=ea+29|0;R=ea+20|0;S=ea+22|0;T=ea+48|0;v=0;y=0;x=0;b:while(1){if(!((y|0)!=0|(v&1|0)==0))if((v|0)>2){d=0;break}else z=v+1|0;else z=v;if((x|0)==0&(z|0)>1){d=0;break}h=k[$>>2]|0;if((h|0)>0){e=k[ba>>2]|0;f=0;g=k[Z>>2]|0;while(1){v=k[g+8>>2]|0;if((z|0)==2)i[g+5>>0]=j[e+(v*48|0)+18>>1]&1^1;else if((z|0)==1){u=e+(v*48|0)+32|0;i[g+5>>0]=(k[u>>2]|0)==0&(k[u+4>>2]|0)==0&1}else if(!z){d=g+5|0;i[d>>0]=0;u=(j[e+(v*48|0)+18>>1]&1)==0;y=u?y:1;v=e+(v*48|0)+32|0;v=(k[v>>2]|0)!=0|(k[v+4>>2]|0)!=0;if(v|u^1)x=v?1:x;else i[d>>0]=1}else i[g+5>>0]=1;f=f+1|0;if((f|0)>=(h|0)){u=y;break}else g=g+12|0}}else u=y;kw(D|0,0,h<<3|0)|0;if(k[U>>2]|0)$c(k[X>>2]|0);k[F+0>>2]=0;k[F+4>>2]=0;k[F+8>>2]=0;k[F+12>>2]=0;p[H>>3]=5.e+98;d=I;k[d>>2]=25;k[d+4>>2]=0;d=k[da>>2]|0;v=J;while(1){v=k[v>>2]|0;if((k[v>>2]|0)==(d|0))break;else v=v+24|0}y=k[v+8>>2]|0;v=wc[k[(k[y>>2]|0)+12>>2]&127](y,$)|0;do if((v|0)==7)i[(k[da>>2]|0)+65>>0]=1;else if(v){d=k[y+8>>2]|0;if(d){k[fa>>2]=d;yh(da,10344,fa);break}if((v|0)!=516){v=v&255;if(v>>>0>26|(v|0)==2)v=16328;else v=k[15488+(v<<2)>>2]|0}else v=16344;k[fa>>2]=v;yh(da,10344,fa)}while(0);v=y+8|0;$c(k[v>>2]|0);k[v>>2]=0;v=k[$>>2]|0;if((v|0)>0){d=0;do{if((i[(k[Z>>2]|0)+(d*12|0)+5>>0]|0)==0?(k[(k[_>>2]|0)+(d<<3)>>2]|0)>0:0){k[fa>>2]=k[aa>>2];yh(da,34096,fa);v=k[$>>2]|0}d=d+1|0}while((d|0)<(v|0))}d=k[K>>2]|0;if(d)break;y=k[Z>>2]|0;q=ea;k[q>>2]=b;k[q+4>>2]=c;c:do if(M){v=0;do{k[(k[T>>2]|0)+(v<<2)>>2]=0;v=v+1|0}while((v|0)!=(E|0));j[N>>1]=0;if(M){f=b;e=c;d=0;q=0;v=-1;while(1){h=k[D+(q<<3)>>2]|0;m=h+-1|0;do if((h|0)>0){n=k[y+8>>2]|0;if((h|0)>(E|0)|(n|0)<0){ja=65;break b}if((n|0)>=(k[ca>>2]|0)){ja=65;break b}g=(k[T>>2]|0)+(m<<2)|0;if(k[g>>2]|0){ja=65;break b}o=k[ba>>2]|0;ma=o+(n*48|0)+32|0;f=f|k[ma>>2];e=e|k[ma+4>>2];ma=ea;k[ma>>2]=f;k[ma+4>>2]=e;k[g>>2]=o+(n*48|0);v=(m|0)>(v|0)?m:v;do if((h|0)<17){if(!(i[D+(q<<3)+4>>0]|0))break;d=(d&65535|1<<m)&65535;j[N>>1]=d}while(0);if(!(j[o+(n*48|0)+18>>1]&1))break;if(!(i[D+(q<<3)+4>>0]|0))break c;k[G>>2]=0}while(0);q=q+1|0;if((q|0)>=(E|0)){ja=73;break}else y=y+12|0}}else{v=-1;ja=73}}else{j[N>>1]=0;v=-1;ja=73}while(0);if((ja|0)==73){ja=0;j[B>>1]=v+1;k[O>>2]=k[F>>2];i[C>>0]=k[U>>2];k[U>>2]=0;k[P>>2]=k[X>>2];if(!(k[G>>2]|0))v=0;else v=k[Y>>2]&255;i[Q>>0]=v;j[A>>1]=0;w=+p[H>>3];p[t>>3]=w;v=k[t>>2]|0;d=k[t+4>>2]|0;do if(!(w<=1.0))if(!(w<=2.0e9)){v=rw(v|0,d|0,52)|0;v=ow(v|0,L|0,64514,0)|0;v=(v<<16>>16)*10&65535;break}else{v=ks(~~w>>>0,+W(w)>=1.0?(w>0.0?~~+ia(+V(w/4294967296.0),4294967295.0)>>>0:~~+ga((w-+(~~w>>>0))/4294967296.0)>>>0):0)|0;break}else v=0;while(0);j[R>>1]=v;q=I;q=ks(k[q>>2]|0,k[q+4>>2]|0)|0;j[S>>1]=q;Kv(a,ea)|0;if(i[C>>0]|0){$c(k[P>>2]|0);i[C>>0]=0}}v=z+1|0;if((v|0)>=4){d=0;break}else y=u}if((ja|0)==65){k[fa>>2]=k[aa>>2];yh(da,34064,fa);d=1}if(k[U>>2]|0)$c(k[X>>2]|0);rg(ha,$)}while(0);r=la;return d|0}function Mu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0;ca=r;r=r+64|0;if((r|0)>=(s|0))ka();n=ca;h=ca+56|0;g=ca+52|0;j[g>>1]=-1;$=k[a+12>>2]|0;aa=k[a>>2]|0;F=k[aa+4>>2]|0;G=l[$+16>>0]|0;W=F+(G*72|0)+8|0;f=F+(G*72|0)+24|0;H=k[f>>2]|0;X=k[a+4>>2]|0;Y=F+(G*72|0)+76|0;d=k[Y>>2]|0;do if(!d){if(i[H+44>>0]&32){n=k[H+8>>2]|0;break}d=n+0|0;e=d+52|0;do{k[d>>2]=0;d=d+4|0}while((d|0)<(e|0));j[n+46>>1]=1;j[n+48>>1]=1;k[n+4>>2]=g;k[n+8>>2]=h;i[n+50>>0]=5;k[n+12>>2]=H;j[n+44>>1]=j[H+42>>1]|0;j[h>>1]=j[H+28>>1]|0;j[h+2>>1]=0;if(!(i[F+(G*72|0)+45>>0]&1))k[n+20>>2]=k[(k[f>>2]|0)+8>>2]}else n=d;while(0);h=j[H+28>>1]|0;if(h<<16>>16<11)B=0;else{B=h<<16>>16;B=((ks(B,((B|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((k[a+16>>2]|0)==0?(j[aa+34>>1]&128)==0:0)?(k[(k[k[aa>>2]>>2]|0)+24>>2]&1048576|0)!=0:0)?(k[Y>>2]|0)==0:0)?(o=i[F+(G*72|0)+45>>0]|0,(o&5)==0):0)?(E=H+44|0,(o&10|i[E>>0]&32)<<24>>24==0):0)?(C=k[X+20>>2]|0,V=k[X+12>>2]|0,D=C+(V*48|0)|0,(V|0)>0):0){v=$+8|0;w=$+24|0;x=$+42|0;y=$+28|0;z=$+40|0;A=$+48|0;p=(B&65535)+(h&65535)|0;g=p+4&65535;f=$+18|0;e=H+12|0;p=p+28&65535;q=$+22|0;t=$+20|0;u=$+36|0;h=C;do{o=h+32|0;V=o;U=v;if(((k[U>>2]&k[V>>2]|0)==0?(k[U+4>>2]&k[V+4>>2]|0)==0:0)?(Ru(h,W,0,0)|0)!=0:0){j[w>>1]=1;j[x>>1]=0;k[y>>2]=0;j[z>>1]=1;k[k[A>>2]>>2]=h;j[f>>1]=g;if((k[e>>2]|0)==0?(i[E>>0]&2)==0:0)j[f>>1]=p;j[q>>1]=43;U=Lv(B,43)|0;j[t>>1]=U;k[u>>2]=16384;U=o;V=k[U+4>>2]|c;d=$;k[d>>2]=k[U>>2]|b;k[d+4>>2]=V;d=Kv(a,$)|0}else d=0;h=h+48|0}while((d|0)==0&h>>>0<D>>>0)}else d=0;V=$+36|0;a:do if((d|0)==0&(n|0)!=0){M=$+24|0;N=$+42|0;O=$+40|0;P=$+17|0;Q=$+18|0;R=$+22|0;S=$+28|0;T=F+(G*72|0)+48|0;U=$+20|0;J=F+(G*72|0)+64|0;K=H+42|0;t=H+44|0;q=aa+34|0;p=X+12|0;F=X+20|0;I=1;while(1){u=k[n+36>>2]|0;v=k[T>>2]|0;b:do if(u){d=k[p>>2]|0;if((d|0)>0){f=0;g=k[F>>2]|0;while(1){e=k[g>>2]|0;if(Mv(e,u,v)|0){if(!(k[e+4>>2]&1)){ba=32;break b}if((j[e+36>>1]|0)==(v|0)){ba=32;break b}}f=f+1|0;if((f|0)>=(d|0)){d=0;break}else g=g+48|0}}else d=0}else ba=32;while(0);if((ba|0)==32){ba=0;G=j[k[n+8>>2]>>1]|0;j[M>>1]=0;j[N>>1]=0;j[O>>1]=0;i[P>>0]=0;j[Q>>1]=0;H=$;k[H>>2]=b;k[H+4>>2]=c;j[R>>1]=G;k[S>>2]=n;H=n+51|0;w=i[H>>0]|0;c:do if(((w&4)==0?(Z=k[(k[a>>2]|0)+8>>2]|0,(Z|0)!=0):0)?(_=k[Z>>2]|0,(_|0)>0):0){E=k[Z+4>>2]|0;D=n+46|0;y=n+4|0;x=0;while(1){B=k[E+(x*20|0)>>2]|0;d:do if(!B)B=0;else while(1){A=k[B+4>>2]|0;if(!(A&4096))break d;if(!(A&262144))B=B+12|0;else B=k[(k[B+20>>2]|0)+4>>2]|0;B=k[B>>2]|0;if(!B){B=0;break}}while(0);if((i[B>>0]|0)!=-102){x=0;break c}if((k[B+28>>2]|0)==(v|0)){A=j[B+32>>1]|0;if(A<<16>>16<0){x=1;break c}B=j[D>>1]|0;if(B<<16>>16){z=k[y>>2]|0;B=B&65535;C=0;do{if(A<<16>>16==(j[z+(C<<1)>>1]|0)){x=1;break c}C=C+1|0}while((C|0)<(B|0))}}x=x+1|0;if((x|0)>=(_|0)){x=0;break}}}else x=0;while(0);do if((k[n+40>>2]|0)<1){k[V>>2]=256;i[P>>0]=(x|0)!=0?I&255:0;j[U>>1]=(G&65535)+16;Nv(X,$,G);d=Kv(a,$)|0;j[R>>1]=G;if(d)break a}else{if(!(w&32)){D=J;E=k[D>>2]|0;D=k[D+4>>2]|0;C=n+4|0;B=0;A=0;z=m[n+48>>1]|0;e:while(1){y=z;while(1){z=y+-1|0;if((y|0)<=0)break e;y=j[(k[C>>2]|0)+(z<<1)>>1]|0;if((y&65535)<63)break;else y=z}o=nw(1,0,y<<16>>16|0)|0;B=o|B;A=L|A}o=E&~B;u=D&~A;B=o;A=u;u=(o|0)==0&(u|0)==0?576:512}else{B=0;A=0;u=576}k[V>>2]=u;o=(x|0)!=0;if(!o?(i[t>>0]&32)==0:0){if(!((B|0)==0&(A|0)==0))break;if(i[H>>0]&4)break;if((j[n+44>>1]|0)>=(j[K>>1]|0))break;if(!((j[q>>1]&4)==0&(k[2190]|0)!=0))break;if(j[(k[k[aa>>2]>>2]|0)+60>>1]&64)break}i[P>>0]=o?I&255:0;h=G<<16>>16;o=h+1+(((j[n+44>>1]|0)*15|0)/(j[K>>1]|0)|0)&65535;if(!((B|0)==0&(A|0)==0))o=Lv(o,h+16&65535)|0;j[U>>1]=o;Nv(X,$,G);d=Kv(a,$)|0;j[R>>1]=G;if(d)break a}while(0);d=Ov(a,W,n,0)|0;if(k[Y>>2]|0)break a}n=k[n+20>>2]|0;if(!((d|0)==0&(n|0)!=0))break;else I=I+1|0}}while(0);r=ca;return d|0}function Nu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0;$=r;r=r+608|0;if((r|0)>=(s|0))ka();Z=$+168|0;X=$+576|0;Y=$+112|0;V=$+56|0;W=$;d=k[a>>2]|0;S=k[a+4>>2]|0;h=k[S+20>>2]|0;g=k[S+12>>2]|0;U=h+(g*48|0)|0;R=k[a+12>>2]|0;e=Y+0|0;f=e+56|0;do{k[e>>2]=0;e=e+4|0}while((e|0)<(f|0));f=k[d+4>>2]|0;e=l[R+16>>0]|0;Q=k[f+(e*72|0)+48>>2]|0;a:do if((g|0)>0){A=R+8|0;B=X+8|0;C=X+16|0;D=R+40|0;E=R+48|0;F=R+36|0;G=R+18|0;H=R+17|0;I=R+24|0;J=R+20|0;K=R+22|0;L=Z+4|0;M=Z+8|0;N=Z+12|0;O=Z+20|0;P=X+4|0;w=f+(e*72|0)+24|0;x=W+8|0;y=Y+8|0;z=V+8|0;while(1){b:do if((j[h+18>>1]&256)!=0?(T=k[h+12>>2]|0,t=T+408|0,q=A,!((k[q>>2]&k[t>>2]|0)==0?(k[q+4>>2]&k[t+4>>2]|0)==0:0)):0){g=T+20|0;v=(k[g>>2]|0)+((k[T+12>>2]|0)*48|0)|0;k[X+0>>2]=k[a+0>>2];k[X+4>>2]=k[a+4>>2];k[X+8>>2]=k[a+8>>2];k[X+12>>2]=k[a+12>>2];k[B>>2]=0;k[C>>2]=V;g=k[g>>2]|0;c:do if(g>>>0<v>>>0){e=1;d=0;d:while(1){if(!(j[g+18>>1]&512))if((k[g+8>>2]|0)==(Q|0)){k[Z>>2]=k[S>>2];k[L>>2]=S;i[M>>0]=72;k[N>>2]=1;k[O>>2]=g;f=Z;_=10}else f=e;else{f=k[g+12>>2]|0;_=10}do if((_|0)==10){_=0;k[P>>2]=f;j[V>>1]=0;if(!(i[(k[w>>2]|0)+44>>0]&16))d=Mu(X,b,c)|0;else d=Lu(X,b,c)|0;if(!d)d=Nu(X,b,c)|0;f=j[V>>1]|0;if(!(f<<16>>16))break d;if(e){j[Y>>1]=f;pw(y|0,z|0,(f&65535)<<4|0)|0;f=0;break}t=j[Y>>1]|0;j[W>>1]=t;u=t&65535;pw(x|0,y|0,u<<4|0)|0;j[Y>>1]=0;if(!(t<<16>>16))f=0;else{t=0;do{if(!(f<<16>>16))f=0;else{n=W+(t<<4)+8|0;e=k[n>>2]|0;n=k[n+4>>2]|0;o=j[W+(t<<4)+16>>1]|0;p=j[W+(t<<4)+18>>1]|0;q=0;do{aa=V+(q<<4)+8|0;ba=k[aa>>2]|e;aa=k[aa+4>>2]|n;f=Lv(o,j[V+(q<<4)+16>>1]|0)|0;Pv(Y,ba,aa,f,Lv(p,j[V+(q<<4)+18>>1]|0)|0);q=q+1|0;f=j[V>>1]|0}while((q|0)<(f&65535|0))}t=t+1|0}while((t|0)<(u|0));f=0}}while(0);g=g+48|0;if(g>>>0>=v>>>0)break c;else e=f}j[Y>>1]=0}else d=0;while(0);j[D>>1]=1;k[k[E>>2]>>2]=h;k[F>>2]=8192;j[G>>1]=0;i[H>>0]=0;k[I+0>>2]=0;k[I+4>>2]=0;k[I+8>>2]=0;if(d)break a;g=m[Y>>1]|0;f=0;while(1){if((f|0)>=(g|0))break b;j[J>>1]=(m[Y+(f<<4)+16>>1]|0)+1;j[K>>1]=j[Y+(f<<4)+18>>1]|0;q=Y+(f<<4)+8|0;t=k[q+4>>2]|0;d=R;k[d>>2]=k[q>>2];k[d+4>>2]=t;d=Kv(a,R)|0;if(!d)f=f+1|0;else break a}}while(0);h=h+48|0;if(h>>>0>=U>>>0){d=0;break}}}else d=0;while(0);r=$;return d|0}function Ou(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b+48|0;d=k[c>>2]|0;e=b+56|0;if((d|0)!=(e|0))rg(a,d);Qv(a,b);k[c>>2]=e;j[b+40>>1]=0;j[b+44>>1]=3;k[b+36>>2]=0;return}function Pu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ia=0,ja=0,la=0;la=r;r=r+32|0;if((r|0)>=(s|0))ka();aa=la+24|0;Z=la+16|0;da=la+8|0;ja=la;$=k[a>>2]|0;fa=k[$>>2]|0;l=i[a+41>>0]|0;ga=l&255;if((l&255)<2)V=1;else V=l<<24>>24==2?5:10;ia=a+8|0;f=k[ia>>2]|0;ba=b<<16>>16==0;if((f|0)==0|ba)U=0;else U=k[f>>2]|0;g=U<<1;ea=g+(ha((ga<<3)+64|0,V)|0)|0;ea=rh(fa,ea,((ea|0)<0)<<31>>31)|0;do if(ea){f=ea+(V<<5)|0;k[f+0>>2]=0;k[f+4>>2]=0;k[f+8>>2]=0;k[f+12>>2]=0;k[f+16>>2]=0;k[f+20>>2]=0;k[f+24>>2]=0;k[f+28>>2]=0;c=V<<1;h=ha(V,-2)|0;h=ea+((ha((((h|0)>-1?h:1073741823)+(V<<1)<<2)+4|0,ga)|0)+(V<<6))|0;e=c;d=ea;c=ea+(c<<5)|0;while(1){k[d+24>>2]=c;e=e+-1|0;if((e|0)<=0)break;else{d=d+32|0;c=c+(ga<<2)|0}}e=(U|0)!=0;if(e)kw(h|0,0,g|0)|0;else h=0;T=k[$+424>>2]|0;j[ea+(V<<5)+16>>1]=T>>>0<48?T&65535:48;if(e)i[ea+(V<<5)+22>>0]=l<<24>>24!=0?-1:U&255;T=l<<24>>24==0;if(!T){P=a+16|0;Q=a+34|0;R=b<<16>>16<11;S=(b&65535)+16|0;M=b<<16>>16;N=((M|0)<0)<<31>>31;O=V>>>0>1;c=ea;L=0;g=0;l=0;b=0;d=1;while(1){if((d|0)>0){G=L&65535;H=L<<2;I=c+18|0;J=c+16|0;K=0;e=0;F=f;while(1){n=k[P>>2]|0;if(n){A=F+22|0;B=F+16|0;C=F+20|0;D=F+24|0;E=F+8|0;z=e;while(1){p=i[A>>0]|0;q=Z;k[q>>2]=0;k[q+4>>2]=0;q=n;e=F;o=k[e>>2]|0;e=k[e+4>>2]|0;a:do if(((k[q>>2]&~o|0)==0?(k[q+4>>2]&~e|0)==0:0)?(W=n+8|0,Y=W,X=k[Y>>2]|0,Y=k[Y+4>>2]|0,(X&o|0)==0&(Y&e|0)==0):0){v=m[B>>1]|0;x=Lv(j[n+18>>1]|0,v+(m[n+20>>1]|0)&65535)|0;x=Lv(x,j[C>>1]|0)|0;v=(m[n+22>>1]|0)+v|0;y=v&65535;u=X|o;q=Y|e;if(p<<24>>24<0)w=Rv(a,k[ia>>2]|0,F,j[Q>>1]|0,G,n,Z)|0;else{e=E;o=k[e+4>>2]|0;w=Z;k[w>>2]=k[e>>2];k[w+4>>2]=o;w=p}p=w<<24>>24;if(w<<24>>24>-1&(U|0)>(p|0)){t=h+(p<<1)|0;o=j[t>>1]|0;if(!(o<<16>>16)){p=((U-p|0)*100|0)/(U|0)|0;p=(ks(p,((p|0)<0)<<31>>31)|0)&65535;if(R)e=0;else e=((ks(M,N)|0)&65535)+65503&65535;p=S+(((p<<16)+-4325376|0)>>>16)+e|0;if(j[Q>>1]&1024)p=(p&65535)+16|0;o=p&65535;j[t>>1]=o}t=Lv(x,o)|0}else t=x;b:do if((z|0)>0){p=0;o=c;while(1){e=o;if(((k[e>>2]|0)==(u|0)?(k[e+4>>2]|0)==(q|0):0)?(i[o+22>>0]^w)<<24>>24>-1:0)break;p=p+1|0;if((p|0)>=(z|0)){_=35;break b}else o=o+32|0}e=j[o+18>>1]|0;if(e<<16>>16<t<<16>>16){e=z;break a}if(e<<16>>16!=t<<16>>16){e=z;break}if((j[o+16>>1]|0)>(v<<16>>16|0))e=z;else{e=z;break a}}else _=35;while(0);if((_|0)==35){_=0;o=(z|0)<(V|0);if(!o){if(t<<16>>16>g<<16>>16){e=z;break}if(!(t<<16>>16!=g<<16>>16?1:x<<16>>16<b<<16>>16)){e=z;break}}e=(o&1)+z|0;o=c+((o?z:l)<<5)|0}p=F;v=W;q=k[v+4>>2]|k[p+4>>2];u=o;k[u>>2]=k[v>>2]|k[p>>2];k[u+4>>2]=q;u=Z;q=k[u+4>>2]|0;p=o+8|0;k[p>>2]=k[u>>2];k[p+4>>2]=q;j[o+16>>1]=y;j[o+18>>1]=t;j[o+20>>1]=x;i[o+22>>0]=w;o=o+24|0;pw(k[o>>2]|0,k[D>>2]|0,H|0)|0;k[(k[o>>2]|0)+(L<<2)>>2]=n;if((e|0)<(V|0))break;g=j[I>>1]|0;b=j[J>>1]|0;if(O){q=c;t=1;p=g;l=0;o=b}else{l=0;break}while(1){g=j[q+50>>1]|0;do if(g<<16>>16<=p<<16>>16){if(g<<16>>16!=p<<16>>16){g=p;b=o;break}b=j[q+52>>1]|0;if(b<<16>>16>o<<16>>16)_=48;else{g=p;b=o}}else{b=j[q+52>>1]|0;_=48}while(0);q=q+32|0;if((_|0)==48){_=0;l=t}t=t+1|0;if((t|0)>=(V|0))break;else{p=g;o=b}}}else e=z;while(0);n=k[n+52>>2]|0;if(!n)break;else z=e}}K=K+1|0;if((K|0)==(d|0)){d=e;break}else F=F+32|0}}else d=0;L=L+1|0;if((L|0)>=(ga|0))break;else{K=c;c=f;f=K}}if(!d){yh($,34008,aa);rgrg(fa,ea)}while(0);r=la;return}function Qu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if((b|0)!=0?(f=k[b>>2]|0,(f|0)>0):0){d=k[b+4>>2]|0;c=0;b=0;e=0;do{g=Fv(a,k[d+(e*20|0)>>2]|0)|0;c=g|c;b=L|b;e=e+1|0}while((e|0)<(f|0))}else{b=0;c=0}L=b;return c|0}function Ru(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;do if((((k[a+8>>2]|0)==(k[b+40>>2]|0)?(j[a+18>>1]&2)!=0:0)?(f=a+32|0,(k[f>>2]&c|0)==0?(k[f+4>>2]&d|0)==0:0):0)?(e=k[a+12>>2]|0,(e|0)>=0):0){c=i[(k[(k[b+16>>2]|0)+4>>2]|0)+(e*24|0)+21>>0]|0;d=(sv(k[a>>2]|0)|0)<<24>>24;if((d|0)==66){d=c<<24>>24==66&1;break}else if((d|0)==65){d=1;break}else{d=c<<24>>24>66&1;break}}else d=0;while(0);return d|0}function Su(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=b+44|0;if((m[g>>1]|0|0)<(c|0)){d=c+7&-8;e=rh(a,d<<2,0)|0;if(!e)c=7;else{f=b+48|0;pw(e|0,k[f>>2]|0,(m[g>>1]|0)<<2|0)|0;c=k[f>>2]|0;if((c|0)!=(b+56|0))rg(a,c);k[f>>2]=e;j[g>>1]=d;c=0}}else c=0;return c|0}function Tu(a,b,c){a=a|0;b=b|0;c=c|0;do if(!(k[b+4>>2]&256)){if((c|0)!=0?(k[c+4>>2]&256|0)!=0:0){b=hu(a,c)|0;break}b=hu(a,b)|0;if(!b)b=hu(a,c)|0}else b=hu(a,b)|0;while(0);return b|0}function Uu(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+144|0;if((r|0)>=(s|0))ka();t=y;x=y+8|0;m=y+36|0;if(((i[a+450>>0]|0)==2?(o=l[c+44>>0]|0,w=k[a+8>>2]|0,h=k[a>>2]|0,v=k[a+464>>2]|0,q=k[c+64>>2]|0,u=q+36|0,p=k[u>>2]|0,(p&8192|0)==0):0)?(g=f&65535,(g&64|0)==0):0){f=p&48;do if(!f){if((p&1024|0)==0?(j[q+24>>1]|0)!=0:0){n=1;break}n=(g&3|0)!=0}else n=1;while(0);k[x+4>>2]=m;k[x+8>>2]=m;k[x+12>>2]=0;k[x+16>>2]=100;k[x+20>>2]=1e9;i[x+24>>0]=1;i[x+25>>0]=0;k[x>>2]=h;a=n?33576:33584;c=a;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;Xk(x,a,c-a&1073741823);if(!(k[b+(o*72|0)+28>>2]|0)){k[t>>2]=k[b+(o*72|0)+16>>2];Jn(x,0,33608,t)}else{k[t>>2]=l[b+(o*72|0)+46>>0];Jn(x,0,33592,t)}a=k[b+(o*72|0)+20>>2]|0;if(a){k[t>>2]=a;Jn(x,0,33624,t)}do if(!(p&1280)){g=q+28|0;c=k[g>>2]|0;f=b+(o*72|0)+24|0;if((i[(k[f>>2]|0)+44>>0]&32)!=0?(i[c+51>>0]&3)==2:0)if(n)a=33632;else break;else if(!(p&131072))if(!(p&16384))a=(p&64|0)==0?33744:33720;else a=33688;else a=33648;Xk(x,33760,7);k[t>>2]=k[c>>2];Jn(x,0,a,t);p=j[q+24>>1]|0;n=k[(k[f>>2]|0)+4>>2]|0;m=k[(k[g>>2]|0)+4>>2]|0;c=p&65535;if(!(p<<16>>16)){if(!(k[u>>2]&48))break;Xk(x,33904,2);g=0}else{f=j[q+42>>1]|0;Xk(x,33904,2);f=f&65535;g=0;do{a=j[m+(g<<1)>>1]|0;if(a<<16>>16<0)a=20456;else a=k[n+((a<<16>>16)*24|0)>>2]|0;if((g|0)<(f|0)){if(g)Xk(x,33920,5);k[t>>2]=a;Jn(x,0,33928,t)}else Sv(x,g,a,33912);g=g+1|0}while((g|0)<(c|0));g=c>>>0>1?c:1}f=k[u>>2]|0;if(!(f&32))a=g;else{f=j[m+(g<<1)>>1]|0;if(f<<16>>16<0)f=20456;else f=k[n+((f<<16>>16)*24|0)>>2]|0;Sv(x,g,f,33936);f=k[u>>2]|0;a=g+1|0}if(f&16){g=j[m+(g<<1)>>1]|0;if(g<<16>>16<0)g=20456;else g=k[n+((g<<16>>16)*24|0)>>2]|0;Sv(x,a,g,33944)}Xk(x,33952,1)}else{if((p&256|0)==0|(p&15|0)==0){if(!(p&1024))break;p=k[q+32>>2]|0;k[t>>2]=k[q+24>>2];k[t+4>>2]=p;Jn(x,0,33872,t);break}if(!(p&5))if((f|0)==48)f=33784;else f=(p&32|0)==0?33824:33808;else f=33768;Xk(x,33840,27);g=f;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;Xk(x,f,g-f&1073741823)}while(0);p=yg(x)|0;Ch(w,Bh(w,157,v,d,e)|0,p,-1)}r=y;return}function Vu(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,l=0,m=0,n=0;l=k[b>>2]|0;n=k[a+8>>2]|0;g=i[l>>0]|0;do if(g<<24>>24==76)Bh(n,28,0,f,0)|0;else if(g<<24>>24==79)f=ns(a,k[l+16>>2]|0,f)|0;else{h=k[c+64>>2]|0;g=h+36|0;if(((k[g>>2]&1024|0)==0?(j=k[h+28>>2]|0,(j|0)!=0):0)?(i[(k[j+28>>2]|0)+d>>0]|0)!=0:0)e=(e|0)==0&1;m=rv(a,l,4,0)|0;if((m|0)==4)e=(e|0)==0&1;l=k[l+28>>2]|0;d=(e|0)!=0;Bh(n,d?105:108,l,0,0)|0;k[g>>2]=k[g>>2]|2048;j=c+56|0;g=k[j>>2]|0;if(!g){g=Cs(n)|0;k[c+16>>2]=g;g=k[j>>2]|0}h=g+1|0;k[j>>2]=h;g=c+60|0;h=$l(k[a>>2]|0,k[g>>2]|0,h*12|0,0)|0;k[g>>2]=h;if(!h){k[j>>2]=0;break}g=(k[j>>2]|0)+-1|0;k[h+(g*12|0)>>2]=l;if((m|0)==1)e=Bh(n,103,l,f,0)|0;else e=Bh(n,47,l,0,f)|0;k[h+(g*12|0)+4>>2]=e;i[h+(g*12|0)+8>>0]=d?6:7;Bh(n,76,f,0,0)|0}while(0);Wu(c,b);return f|0}function Wu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:do if(b){f=a+72|0;e=0;while(1){c=b+20|0;d=j[c>>1]|0;if(d&4)break a;if((k[a>>2]|0)!=0?(k[(k[b>>2]|0)+4>>2]&1|0)==0:0)break a;g=f;h=b+40|0;if(!((k[h>>2]&k[g>>2]|0)==0?(k[h+4>>2]&k[g+4>>2]|0)==0:0))break a;d=d&65535;j[c>>1]=d|((e|0)==0|(d&1024|0)==0?4:512);d=k[b+4>>2]|0;if((d|0)<0)break a;b=k[(k[b+24>>2]|0)+20>>2]|0;g=b+(d*48|0)+22|0;c=(i[g>>0]|0)+-1<<24>>24;i[g>>0]=c;if(c<<24>>24)break a;b=b+(d*48|0)|0;if(!b)break;else e=e+1|0}}while(0);return}function Xu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0;do if(!(j[(k[a>>2]|0)+60>>1]&2)){h=a+116|0;g=0;e=h;while(1){f=e+12|0;if(!(k[f>>2]|0)){n=4;break}g=g+1|0;if((g|0)>=10){l=0;e=-1;m=2147483647;break}else e=e+20|0}if((n|0)==4){k[e+8>>2]=k[a+100>>2];k[e>>2]=b;j[e+4>>1]=c;k[f>>2]=d;i[e+6>>0]=0;d=a+104|0;b=k[d>>2]|0;k[d>>2]=b+1;k[e+16>>2]=b;break}while(1){g=k[h+16>>2]|0;f=(g|0)<(m|0);e=f?l:e;l=l+1|0;if((l|0)==10)break;else{m=f?g:m;h=h+20|0}}if((e|0)>-1){k[a+(e*20|0)+124>>2]=k[a+100>>2];k[a+(e*20|0)+116>>2]=b;j[a+(e*20|0)+120>>1]=c;k[a+(e*20|0)+128>>2]=d;i[a+(e*20|0)+122>>0]=0;d=a+104|0;b=k[d>>2]|0;k[d>>2]=b+1;k[a+(e*20|0)+132>>2]=b}}while(0);return}function Yu(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;r=k[a+8>>2]|0;m=k[b+64>>2]|0;n=j[m+24>>1]|0;p=j[m+42>>1]|0;t=k[m+28>>2]|0;q=a+72|0;l=k[q>>2]|0;f=l+1|0;s=n&65535;o=s+d|0;k[q>>2]=l+o;q=k[a>>2]|0;t=ph(q,tt(r,t)|0)|0;q=(t|0)!=0;if(!q)i[(k[a>>2]|0)+65>>0]=1;if(p<<16>>16){d=k[b+8>>2]|0;g=(c|0)!=0;Bh(r,g?105:108,d,0,0)|0;h=Bh(r,16,0,0,0)|0;l=p&65535;g=Bh(r,g?62:65,d,0,f)|0;Ch(r,g,l,-14);k[b+20>>2]=g;g=k[r+32>>2]|0;if(g>>>0>h>>>0)k[(k[r+4>>2]|0)+(h*20|0)+8>>2]=g;k[(k[r+24>>2]|0)+88>>2]=g+-1;h=0;do{Bh(r,47,d,h,h+f|0)|0;h=h+1|0}while((h|0)<(l|0))}if((p&65535)<(n&65535)){m=m+48|0;l=b+12|0;n=(o|0)==1;o=p&65535;h=f;while(1){g=k[(k[m>>2]|0)+(o<<2)>>2]|0;d=o+h|0;f=Vu(a,g,b,o,c,d)|0;do if((f|0)!=(d|0))if(n){ds(a,h);break}else{Bh(r,34,f,d,0)|0;f=h;break}else f=h;while(0);if(!(j[g+18>>1]&129)){d=k[(k[g>>2]|0)+16>>2]|0;if(Zu(d)|0)Bh(r,76,f+o|0,k[l>>2]|0,0)|0;if(q){g=t+o|0;if((Gu(d,i[g>>0]|0)|0)<<24>>24==65){i[g>>0]=65;h=65}else h=i[g>>0]|0;if(_u(d,h)|0)i[g>>0]=65}}o=o+1|0;if((o|0)>=(s|0))break;else h=f}}k[e>>2]=t;return f|0}function Zu(a){a=a|0;var b=0;b=i[a>>0]|0;if((b+99&255)<2)do{a=k[a+12>>2]|0;b=i[a>>0]|0}while((b+99&255)<2);if(b<<24>>24==-97)b=i[a+38>>0]|0;switch(b&255|0){case 134:case 133:case 97:case 132:{a=0;break}case 154:{if(!(k[a+4>>2]&1048576)){b=j[a+32>>1]|0;if(b<<16>>16>-1)a=(i[(k[(k[a+44>>2]|0)+4>>2]|0)+((b<<16>>16)*24|0)+20>>0]|0)==0;else a=0}else a=1;a=a&1;break}default:a=1}return a|0}function _u(a,b){a=a|0;b=b|0;var c=0;a:do if(b<<24>>24==65)a=1;else{c=i[a>>0]|0;if((c+99&255)<2)do{a=k[a+12>>2]|0;c=i[a>>0]|0}while((c+99&255)<2);if(c<<24>>24==-97)c=i[a+38>>0]|0;switch(c&255|0){case 133:{a=(b<<24>>24==69|b<<24>>24==67)&1;break a}case 134:{a=1;break a}case 132:{a=(b+-67&255)<2&1;break a}case 154:{if((j[a+32>>1]|0)<0)a=(b+-67&255)<2;else a=0;a=a&1;break a}case 97:{a=b<<24>>24==66&1;break a}default:{a=0;break a}}}while(0);return a|0}function $u(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=k[a+8>>2]|0;do if(d){a:do if((c|0)>0)while(1){if((i[d>>0]|0)!=65){e=d;break a}c=c+-1|0;b=b+1|0;d=d+1|0;if((c|0)<=0){e=d;break}}else e=d;while(0);while(1){if((c|0)<=1){g=8;break}d=c+-1|0;if((i[e+d>>0]|0)==65)c=d;else break}if((g|0)==8)if((c|0)<=0)break;Bh(f,48,b,c,0)|0;Ch(f,-1,e,c);it(a,b,c)}while(0);return}function av(a,b){a=a|0;b=b|0;var c=0,d=0;if(b){Tv(b+328|0);d=b+16|0;c=k[d>>2]|0;if(c)do{k[d>>2]=k[c+52>>2];Ou(a,c);rg(a,c);c=k[d>>2]|0}while((c|0)!=0);rg(a,b)}return}function bv(a,b){a=a|0;b=b|0;var c=0,d=0;c=r;r=r+32|0;if((r|0)>=(s|0))ka();d=c;k[d+0>>2]=0;k[d+4>>2]=0;k[d+8>>2]=0;k[d+12>>2]=0;k[d+16>>2]=0;k[d+20>>2]=0;k[d>>2]=80;k[d+4>>2]=81;k[d+24>>2]=a;ws(d,b)|0;r=c;return}function cv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0;n=r;r=r+16|0;if((r|0)>=(s|0))ka();l=n+4|0;m=n;j=k[a+8>>2]|0;k[l>>2]=0;k[m>>2]=0;if(!((j|0)==0|(b|0)==0)){f=i[b>>0]|0;e=f&255;a:do switch(e|0){case 74:{dv(a,b,c,1,d);break}case 77:case 76:{Bh(j,e,eu(a,k[b+12>>2]|0,l)|0,c,0)|0;break}case 79:case 78:case 83:case 80:case 81:case 82:{f=b+12|0;h=eu(a,k[f>>2]|0,l)|0;g=b+16|0;j=eu(a,k[g>>2]|0,m)|0;fu(a,k[f>>2]|0,k[g>>2]|0,e,h,j,c,d);break}case 72:{h=Cs(j)|0;lt(a,k[b+12>>2]|0,h,d^16);e=a+100|0;k[e>>2]=(k[e>>2]|0)+1;cv(a,k[b+16>>2]|0,c,d);e=k[j+24>>2]|0;f=~h;if((h|0)<0?(g=k[e+112>>2]|0,(g|0)!=0):0)k[g+(f<<2)>>2]=k[j+32>>2];k[e+88>>2]=(k[j+32>>2]|0)+-1;gu(a);break}case 71:{cv(a,k[b+12>>2]|0,c,d);j=a+100|0;k[j>>2]=(k[j>>2]|0)+1;cv(a,k[b+16>>2]|0,c,d);gu(a);break}case 19:{lt(a,k[b+12>>2]|0,c,d);break}case 148:case 73:{d=b+12|0;h=eu(a,k[d>>2]|0,l)|0;g=b+16|0;j=eu(a,k[g>>2]|0,m)|0;fu(a,k[d>>2]|0,k[g>>2]|0,f<<24>>24==73?79:78,h,j,c,128);break}case 75:{g=Cs(j)|0;ku(a,b,g,(d|0)!=0?c:g);Bh(j,16,0,c,0)|0;f=k[j+24>>2]|0;e=~g;if((g|0)<0?(h=k[f+112>>2]|0,(h|0)!=0):0)k[h+(e<<2)>>2]=k[j+32>>2];k[f+88>>2]=(k[j+32>>2]|0)+-1;break}default:{if(ev(b)|0){Bh(j,16,0,c,0)|0;break a}if(!(ru(b)|0))Bh(j,45,eu(a,b,l)|0,c,(d|0)!=0&1)|0}}while(0);ds(a,k[l>>2]|0);ds(a,k[m>>2]|0)}r=n;return}function dv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0;n=r;r=r+208|0;if((r|0)>=(s|0))ka();h=n+152|0;f=n+104|0;g=n+56|0;j=n+8|0;l=n;k[l>>2]=0;m=j+0|0;o=(k[b+12>>2]|0)+0|0;p=m+48|0;do{k[m>>2]=k[o>>2];m=m+4|0;o=o+4|0}while((m|0)<(p|0));i[h>>0]=72;k[h+12>>2]=f;k[h+16>>2]=g;i[f>>0]=83;k[f+12>>2]=j;b=k[(k[b+20>>2]|0)+4>>2]|0;k[f+16>>2]=k[b>>2];i[g>>0]=81;k[g+12>>2]=j;k[g+16>>2]=k[b+20>>2];b=eu(a,j,l)|0;i[j+38>>0]=i[j>>0]|0;i[j>>0]=-97;k[j+28>>2]=b;b=j+4|0;k[b>>2]=k[b>>2]&-4097;if(!d)lt(a,h,c,e);else cv(a,h,c,e);ds(a,k[l>>2]|0);r=n;return}function ev(a){a=a|0;var b=0,c=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;k[b>>2]=0;if((k[a+4>>2]&1|0)==0?(Rs(a,b)|0)!=0:0)a=(k[b>>2]|0)!=0&1;else a=0;r=c;return a|0}function fv(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!((a|0)==0|(b|0)==0)){d=k[b>>2]|0;if((d|0)>0){b=k[b+4>>2]|0;c=0;while(1){if((Bv(a,k[b+(c*20|0)+4>>2]|0)|0)>-1){b=1;break a}c=c+1|0;if((c|0)>=(d|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function gv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0;m=k[b+20>>2]|0;a:do if((m|0)>0){n=j[a+38>>1]|0;o=n<<16>>16>0;p=a+4|0;l=a+36|0;f=(d|0)!=0;g=0;while(1){d=k[b+(g<<3)+40>>2]|0;if(o){a=(d|0)==0;h=0;do{if(!((k[c+(h<<2)>>2]|0)<=-1?!((h|0)==(j[l>>1]|0)&f):0))q=7;do if((q|0)==7){q=0;e=k[p>>2]|0;if(a)if(!(i[e+(h*24|0)+23>>0]&1))break;else{a=1;break a}else if(!(id(k[e+(h*24|0)>>2]|0,d)|0)){a=1;break a}else break}while(0);h=h+1|0}while((h|0)<(n<<16>>16|0))}g=g+1|0;if((g|0)>=(m|0)){a=0;break}}}else a=0;while(0);return a|0}function hv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+48|0;if((r|0)>=(s|0))ka();j=v;o=v+8|0;u=k[a+408>>2]|0;u=(u|0)==0?a:u;h=u+528|0;e=k[h>>2]|0;a:do if(!e)g=5;else while(1){if((k[e>>2]|0)==(b|0)?(k[e+12>>2]|0)==(d|0):0)break a;e=k[e+4>>2]|0;if(!e){g=5;break}}while(0);do if((g|0)==5){q=k[a>>2]|0;e=rh(q,24,0)|0;if(e){g=e+0|0;f=g+24|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(f|0));k[e+4>>2]=k[h>>2];k[h>>2]=e;p=rh(q,28,0)|0;if(!p){k[e+8>>2]=0;e=0;break}g=p+0|0;f=g+24|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(f|0));k[e+8>>2]=p;l=(k[u+8>>2]|0)+192|0;k[p+24>>2]=k[l>>2];k[l>>2]=p;k[e>>2]=b;k[e+12>>2]=d;l=e+16|0;k[l>>2]=-1;m=e+20|0;k[m>>2]=-1;n=rh(q,536,0)|0;if(n){kw(n|0,0,536)|0;k[o+0>>2]=0;k[o+4>>2]=0;k[o+8>>2]=0;k[o+12>>2]=0;k[o+16>>2]=0;k[o+20>>2]=0;k[o+24>>2]=0;k[o+28>>2]=0;k[o>>2]=n;k[n>>2]=q;k[n+412>>2]=c;k[n+408>>2]=u;k[n+492>>2]=k[b>>2];i[n+436>>0]=i[b+8>>0]|0;k[n+424>>2]=k[a+424>>2];c=Tq(n)|0;if(c){k[j>>2]=k[b>>2];Ch(c,-1,zh(q,34152,j)|0,-1);g=k[b+12>>2]|0;if(!g)h=0;else{f=Rr(q,g,0,0)|0;if((qs(o,f)|0)==0?(i[q+65>>0]|0)==0:0){g=Cs(c)|0;lt(n,f,g,16)}else g=0;Lk(q,f);h=g}Uv(n,k[b+28>>2]|0,d);if(h){g=k[c+24>>2]|0;f=~h;if((h|0)<0?(t=k[g+112>>2]|0,(t|0)!=0):0)k[t+(f<<2)>>2]=k[c+32>>2];k[g+88>>2]=(k[c+32>>2]|0)+-1}Bh(c,24,0,0,0)|0;f=a+64|0;g=k[n+4>>2]|0;if(!(k[f>>2]|0)){k[a+4>>2]=g;k[f>>2]=k[n+64>>2]}else rg(k[n>>2]|0,g);if(!(i[q+65>>0]|0)){j=c+4|0;o=k[j>>2]|0;On(c,u+392|0);k[p+4>>2]=k[c+32>>2];k[j>>2]=0;k[p>>2]=o}k[p+8>>2]=k[n+72>>2];k[p+12>>2]=k[n+68>>2];k[p+16>>2]=k[n+80>>2];k[p+20>>2]=b;k[l>>2]=k[n+428>>2];k[m>>2]=k[n+432>>2];Ul(c)}Hh(n);rgrgrg(n,g)}while(0);r=q;return}function Ev(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,n=0;n=a+12|0;d=k[n>>2]|0;h=a+16|0;f=k[h>>2]|0;l=a+20|0;do if((d|0)<(f|0))i=15;else{d=k[l>>2]|0;g=k[k[k[a>>2]>>2]>>2]|0;e=rh(g,f*96|0,0)|0;k[l>>2]=e;if(!e){if(c&1)Lk(g,b);k[l>>2]=d;d=0;break}pw(e|0,d|0,(k[n>>2]|0)*48|0)|0;if((d|0)!=(a+24|0))rg(g,d);e=k[l>>2]|0;do if(!g)e=qc[k[8744+48>>2]&127](e)|0;else{if((k[g+276>>2]|0)>>>0<=e>>>0?(k[g+280>>2]|0)>>>0>e>>>0:0){e=m[g+248>>1]|0;break}e=qc[k[8744+48>>2]&127](e)|0}while(0);i=(e>>>0)/48|0;k[h>>2]=i;d=k[n>>2]|0;kw((k[l>>2]|0)+(d*48|0)|0,0,(i-d|0)*48|0)|0;d=k[n>>2]|0;i=15}while(0);if((i|0)==15){k[n>>2]=d+1;f=k[l>>2]|0;a:do if(!b){j[f+(d*48|0)+16>>1]=1;b=0}else{if(!(k[b+4>>2]&262144))e=1;else{e=k[b+28>>2]|0;e=((ks(e,((e|0)<0)<<31>>31)|0)&65535)+65266&65535}j[f+(d*48|0)+16>>1]=e;while(1){e=k[b+4>>2]|0;if(!(e&4096))break a;if(!(e&262144))b=b+12|0;else b=k[(k[b+20>>2]|0)+4>>2]|0;b=k[b>>2]|0;if(!b){b=0;break}}}while(0);k[f+(d*48|0)>>2]=b;j[f+(d*48|0)+20>>1]=c;k[f+(d*48|0)+24>>2]=a;k[f+(d*48|0)+4>>2]=-1}return d|0}function Fv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:do if(b)if((i[b>>0]|0)==-102){b=k[b+28>>2]|0;d=k[a>>2]|0;if((d|0)>0)c=0;else{d=0;c=0;break}while(1){if((k[a+(c<<2)+4>>2]|0)==(b|0))break;c=c+1|0;if((c|0)>=(d|0)){d=0;c=0;break a}}c=nw(1,0,c|0)|0;d=L;break}else{e=Fv(a,k[b+16>>2]|0)|0;c=L;f=Fv(a,k[b+12>>2]|0)|0;c=L|c;d=b+20|0;if(!(k[b+4>>2]&2048)){b=Qu(a,k[d>>2]|0)|0;d=L}else{b=Gv(a,k[d>>2]|0)|0;d=L}d=c|d;c=f|e|b;break}else{d=0;c=0}while(0);L=d;return c|0}function Gv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0;if(!b){b=0;c=0}else{f=b;c=0;b=0;do{e=k[f+32>>2]|0;l=Qu(a,k[f>>2]|0)|0;b=L|b;j=Qu(a,k[f+40>>2]|0)|0;b=b|L;i=Qu(a,k[f+48>>2]|0)|0;b=b|L;h=Fv(a,k[f+36>>2]|0)|0;b=b|L;d=Fv(a,k[f+44>>2]|0)|0;c=l|c|j|i|h|d;b=b|L;if((e|0)!=0?(g=k[e>>2]|0,(g|0)>0):0){d=0;do{i=Gv(a,k[e+(d*72|0)+28>>2]|0)|0;b=L|b;j=Fv(a,k[e+(d*72|0)+52>>2]|0)|0;c=i|c|j;b=b|L;d=d+1|0}while((d|0)<(g|0))}f=k[f+52>>2]|0}while((f|0)!=0)}L=b;return c|0}function Hv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0;l=j[b+18>>1]|0;h=j[c+18>>1]|0;e=h|l;if(((!((l&62)==0|(h&62)==0)?(d=e&65535,(d&26|0)==(d|0)|(d&38|0)==(d|0)):0)?(g=k[b>>2]|0,f=k[c>>2]|0,(Hu(k[g+12>>2]|0,k[f+12>>2]|0,-1)|0)==0):0)?(Hu(k[g+16>>2]|0,k[f+16>>2]|0,-1)|0)==0:0){if(d+65535&d)e=(d&24|0)==0?32:8;f=Rr(k[k[k[a>>2]>>2]>>2]|0,g,0,0)|0;if(f){e=e&65535;d=79;while(1)if((e|0)==(2<<d+-79|0))break;else d=d+1|0;i[f>>0]=d;Ju(a,Ev(a,f,3)|0)}}return}function Iv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,l=0,n=0;k[a>>2]=b;k[a+4>>2]=b;a:do if((f|0)!=0&(d|0)>-1){i[a+12>>0]=i[(k[(k[f+12>>2]|0)+4>>2]|0)+(d*24|0)+21>>0]|0;g=k[f+4>>2]|0;if((j[g>>1]|0)==(d|0))b=0;else{h=m[f+48>>1]|0;l=0;while(1){b=l+1|0;if((l|0)>(h|0)){b=0;break a}if((j[g+(b<<1)>>1]|0)==(d|0))break;else l=b}}k[a+8>>2]=k[(k[f+32>>2]|0)+(b<<2)>>2];n=8}else{i[a+12>>0]=0;k[a+8>>2]=0;n=8}while(0);if((n|0)==8){k[a+16>>2]=e;k[a+20>>2]=0;k[a+24>>2]=c;k[a+28>>2]=d;i[a+13>>0]=2;i[a+14>>0]=2;b=Jv(a)|0}return b|0}
8 function Yn(a,b,c,d,e,f,g,h,l){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;var n=0,o=0,p=0,q=0,t=0,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,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=r;r=r+160|0;if((r|0)>=(s|0))ka();O=aa+16|0;J=aa+152|0;M=aa+48|0;I=aa+40|0;N=aa+36|0;K=aa+32|0;R=aa+8|0;Q=aa;W=aa+28|0;_=aa+24|0;k[_>>2]=0;do if(!(i[a+46>>0]|0)){$=a+43|0;if((i[$>>0]|0)==0?(n=k[a+4>>2]|0,n=uc[k[(k[n>>2]|0)+56>>2]&31](n,1,1,10)|0,(n|0)!=0):0)break;Z=a+45|0;i[Z>>0]=1;a:do if(!b){t=0;X=11}else{p=a+4|0;n=(c|0)!=0;while(1){if(i[$>>0]|0)break;t=k[p>>2]|0;t=uc[k[(k[t>>2]|0)+56>>2]&31](t,0,1,10)|0;if(!(n&(t|0)==5)){X=9;break}if(!(qc[c&127](d)|0)){t=0;c=0;X=11;break a}}if((X|0)==9)if((t|0)==5){t=0;c=0;X=11;break}else if(t){Y=b;break}i[a+44>>0]=1;t=b;X=11}while(0);if((X|0)==11){Y=t;t=sq(a,_)|0}do if(!t){V=a+68|0;t=j[a+66>>1]|0;if((k[V>>2]|0)!=0?(U=t&65535,(U<<16&65536|U&65024|0)!=(f|0)):0){k[O>>2]=51863;k[O+4>>2]=10788;gd(11,13600,O);o=11;break}S=t&65535;S=S<<16&65536|S&65024;U=a+32|0;T=(k[k[U>>2]>>2]|0)+96|0;w=k[V>>2]|0;b:do if((k[T>>2]|0)>>>0<w>>>0){G=(w+33|0)>>>12;H=G+1|0;f=w<<1;v=f+28+(G*20|0)|0;n=Yc(v)|0;c:do if(!n){t=7;n=0}else{kw(n|0,0,v|0)|0;v=n+4|0;k[v>>2]=H;f=Yc(w>>>0>4096?8192:f)|0;do if(f){F=n+8|0;u=0;while(1){t=Uo(a,u,I,K,N)|0;if(t){X=21;break}E=(k[K>>2]|0)+4|0;k[K>>2]=E;if((u|0)==(G|0)){D=k[N>>2]|0;t=D;D=w-D|0}else{t=k[N>>2]|0;D=(k[I>>2]|0)-E>>2}p=F+((k[v>>2]|0)*20|0)|0;C=p+(t<<1)|0;B=t+1|0;k[N>>2]=B;if((D|0)>0){y=0;do{j[p+(y+t<<1)>>1]=y;y=y+1|0}while((y|0)!=(D|0));k[O>>2]=0;k[J>>2]=0;z=M+0|0;y=z+104|0;do{k[z>>2]=0;z=z+4|0}while((z|0)<(y|0));A=0;do{k[O>>2]=1;z=p+(A+t<<1)|0;k[J>>2]=z;if(!(A&1)){x=1;y=0}else{y=0;do{tq(E,k[M+(y<<3)+4>>2]|0,k[M+(y<<3)>>2]|0,J,O,f);y=y+1|0}while((1<<y&A|0)!=0);x=k[O>>2]|0;z=k[J>>2]|0}k[M+(y<<3)+4>>2]=z;k[M+(y<<3)>>2]=x;A=A+1|0}while((A|0)!=(D|0));y=y+1|0;if((y|0)<13)X=34}else{k[O>>2]=0;k[J>>2]=0;z=M+0|0;y=z+104|0;do{k[z>>2]=0;z=z+4|0}while((z|0)<(y|0));y=1;X=34}if((X|0)==34){while(1){X=0;if(1<<y&D)tq(E,k[M+(y<<3)+4>>2]|0,k[M+(y<<3)>>2]|0,J,O,f);y=y+1|0;if((y|0)==13)break;else X=34}x=k[O>>2]|0}k[F+(u*20|0)+16>>2]=B;k[F+(u*20|0)+12>>2]=x;k[F+(u*20|0)+4>>2]=C;k[F+(u*20|0)+8>>2]=E;u=u+1|0;if((u|0)>=(H|0)){X=39;break}}if((X|0)==21){$c(f);break}else if((X|0)==39){$c(f);t=0;break c}}else{$c(0);t=7}while(0);$c(n)}while(0);if(!t){O=a+72|0;N=k[O>>2]|0;M=a+4|0;x=1;w=k[V>>2]|0;t=0;while(1){f=T+(x<<2)+4|0;p=k[f>>2]|0;d:do if(w>>>0>p>>>0){v=x+3|0;u=(c|0)!=0;while(1){if(i[$>>0]|0)break;t=k[M>>2]|0;t=uc[k[(k[t>>2]|0)+56>>2]&31](t,v,1,10)|0;if(!(u&(t|0)==5)){X=49;break}if(!(qc[c&127](d)|0)){c=0;t=5;break d}}if((X|0)==49){X=0;if((t|0)==5){c=0;t=5;break}else if(t){o=t;X=100;break b}}k[f>>2]=(x|0)==1?w:-1;if(!(i[$>>0]|0)){p=k[M>>2]|0;uc[k[(k[p>>2]|0)+56>>2]&31](p,v,1,9)|0;p=w;t=0}else{p=w;t=0}}else p=w;while(0);x=x+1|0;if((x|0)>=5){H=p;break}else w=p}e:do if((k[T>>2]|0)>>>0<H>>>0){t=(c|0)!=0;while(1){if(i[$>>0]|0)break;p=k[M>>2]|0;p=uc[k[(k[p>>2]|0)+56>>2]&31](p,3,1,10)|0;if(!(t&(p|0)==5)){q=p;X=58;break}if(!(qc[c&127](d)|0)){q=5;break e}}if((X|0)==58?(q|0)!=0:0)break;E=k[T>>2]|0;F=(e|0)!=0;if(F?(P=k[a+8>>2]|0,P=wc[k[(k[P>>2]|0)+20>>2]&127](P,e)|0,(P|0)!=0):0)q=P;else X=61;f:do if((X|0)==61){P=xw(N|0,0,S|0,0)|0;q=Q;k[q>>2]=P;k[q+4>>2]=L;q=k[M>>2]|0;q=wc[k[(k[q>>2]|0)+24>>2]&127](q,R)|0;if(!q){P=R;J=k[P+4>>2]|0;R=Q;K=k[R+4>>2]|0;if((J|0)<(K|0)|((J|0)==(K|0)?(k[P>>2]|0)>>>0<(k[R>>2]|0)>>>0:0)){R=k[M>>2]|0;fc[k[(k[R>>2]|0)+40>>2]&63](R,5,Q)|0}B=n+4|0;C=S|24;D=a+8|0;t=k[B>>2]|0;g:do if((t|0)>0){q=0;while(1){A=k[n>>2]|0;z=-1;h:while(1){i:while(1){t=t+-1|0;x=n+(t*20|0)+8|0;f=k[x>>2]|0;p=k[n+(t*20|0)+20>>2]|0;j:do if((f|0)<(p|0)){w=k[n+(t*20|0)+12>>2]|0;y=k[n+(t*20|0)+16>>2]|0;while(1){u=m[w+(f<<1)>>1]|0;v=k[y+(u<<2)>>2]|0;if(v>>>0>A>>>0)break;f=f+1|0;k[x>>2]=f;if((f|0)>=(p|0))break j}if(v>>>0<z>>>0)break i}while(0);if((t|0)<=0){f=q;t=z;break h}}q=(k[n+(t*20|0)+24>>2]|0)+u|0;if((t|0)>0)z=v;else{f=q;t=v;break}}k[n>>2]=t;if((t|0)==-1)break g;if(!(f>>>0<=E>>>0|f>>>0>H>>>0|t>>>0>N>>>0)){q=xw(f+-1|0,0,C|0,0)|0;q=ow(q|0,L|0,56,0)|0;R=k[D>>2]|0;q=yc[k[(k[R>>2]|0)+8>>2]&31](R,g,S,q,L)|0;if(q)break f;q=xw(t+-1|0,0,S|0,0)|0;R=k[M>>2]|0;q=yc[k[(k[R>>2]|0)+12>>2]&31](R,g,S,q,L)|0;if(q)break f}t=k[B>>2]|0;if((t|0)<=0){X=66;break}else q=f}}else X=66;while(0);if((X|0)==66)k[n>>2]=-1;if((H|0)==(k[(k[k[U>>2]>>2]|0)+16>>2]|0)){q=xw(k[O>>2]|0,0,S|0,0)|0;X=k[M>>2]|0;q=fc[k[(k[X>>2]|0)+16>>2]&63](X,q,L)|0;if((q|0)==0&F){q=k[M>>2]|0;q=wc[k[(k[q>>2]|0)+20>>2]&127](q,e)|0}if(q)break}k[T>>2]=H;q=0}}while(0);if(!(i[$>>0]|0)){X=k[M>>2]|0;uc[k[(k[X>>2]|0)+56>>2]&31](X,3,1,9)|0}}else q=t;while(0);q=(q|0)==5?0:q;X=88}else o=t}else{n=0;q=0;X=88}while(0);k:do if((X|0)==88)if((q|0)==0&(Y|0)!=0)if((k[T>>2]|0)>>>0>=(k[V>>2]|0)>>>0)if((Y|0)>1){hd(4,W);t=a+4|0;p=(c|0)!=0;while(1){if(i[$>>0]|0)break;q=k[t>>2]|0;q=uc[k[(k[q>>2]|0)+56>>2]&31](q,4,4,10)|0;if(!(p&(q|0)==5)){o=q;X=95;break}if(!(qc[c&127](d)|0)){o=5;X=100;break k}}if((X|0)==95?(o|0)!=0:0){X=100;break}if((Y|0)==3){ap(a,k[W>>2]|0);o=k[a+8>>2]|0;o=fc[k[(k[o>>2]|0)+16>>2]&63](o,0,0)|0}else o=0;if(!(i[$>>0]|0)){X=k[t>>2]|0;uc[k[(k[X>>2]|0)+56>>2]&31](X,4,4,9)|0;X=100}else X=100}else{o=0;X=100}else{o=5;X=100}else{o=q;X=100}while(0);if((X|0)==100)$c(n);if((o|0)==0|(o|0)==5){if(h)k[h>>2]=k[V>>2];if(l)k[l>>2]=k[(k[k[U>>2]>>2]|0)+96>>2]}}else o=t;while(0);if(k[_>>2]|0){z=a+52|0;y=z+48|0;do{k[z>>2]=0;z=z+4|0}while((z|0)<(y|0))}n=a+44|0;if(i[n>>0]|0){if(!(i[$>>0]|0)){_=k[a+4>>2]|0;uc[k[(k[_>>2]|0)+56>>2]&31](_,0,1,9)|0}i[n>>0]=0;i[a+47>>0]=0}if(!(i[$>>0]|0)){$=k[a+4>>2]|0;uc[k[(k[$>>2]|0)+56>>2]&31]($,1,1,9)|0}i[Z>>0]=0;n=(o|0)!=0|(Y|0)==(b|0)?o:5}else n=8;while(0);r=aa;return n|0}function Zn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=(b|0)<(d|0)?b:d;f=cw(c,e,g)|0;a:do if(!f){b:do if(a){f=b-g|0;while(1){if((f|0)<=0)break;f=f+-1|0;if((i[c+(f+g)>>0]|0)!=32)break b}if(!f){f=d-g|0;while(1){if((f|0)<=0)break;f=f+-1|0;if((i[e+(f+g)>>0]|0)!=32)break b}if(!f){f=0;break a}}}while(0);f=b-d|0}while(0);return f|0}function _n(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Kc(c,e,(b|0)<(d|0)?b:d)|0;return ((a|0)==0?b-d|0:a)|0}function $n(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+16|0;if((r|0)>=(s|0))ka();w=y;n=k[c>>2]|0;a:do if(b){l=b;while(1)if(!(i[l>>0]|0))break;else l=l+1|0;m=l-b&1073741823;if((k[2189]|n&64|0)!=0&m>>>0>4?(cw(b,14984,5)|0)==0:0){l=m+2|0;j=n|64;if(m){n=0;do{l=((i[b+n>>0]|0)==38&1)+l|0;n=n+1|0}while((n|0)<(m|0))}h=Yc(l)|0;if(h){do if((i[b+5>>0]|0)==47?(i[b+6>>0]|0)==47:0){l=7;while(1){q=i[b+l>>0]|0;if(q<<24>>24==0|q<<24>>24==47)break;l=l+1|0}if((l|0)==7){l=0;n=7;g=0;break}else if((l|0)==16){g=b+7|0;if(!(cw(14992,g,9)|0)){l=0;n=16;g=0;break}}else g=b+7|0;k[w>>2]=l+-7;k[w+4>>2]=g;g=dd(15008,w)|0;k[f>>2]=g;g=1;x=74;break a}else{l=0;n=5;g=0}while(0);b:while(1){u=h+(g+-1)|0;c:while(1){d:while(1){m=i[b+n>>0]|0;if(m<<24>>24==35|m<<24>>24==0)break b;o=n+1|0;if((m<<24>>24==37?(v=i[b+o>>0]|0,(i[10368+(v&255)>>0]&8)!=0):0)?(t=i[b+(n+2)>>0]|0,(i[10368+(t&255)>>0]&8)!=0):0){m=v;o=t;break}if(!l){n=o;x=38;break c}else if((l|0)==2){n=o;x=39;break c}else if((l|0)!=1){n=o;break c}if(!(m<<24>>24==38|m<<24>>24==61)){l=1;n=o;break c}if(!(i[u>>0]|0))n=o;else{n=o;x=36;break c}while(1){q=i[b+n>>0]|0;if(q<<24>>24==35|q<<24>>24==0)continue d;if((i[b+(n+-1)>>0]|0)==38)continue d;else n=n+1|0}}m=m<<24>>24;n=n+3|0;q=o<<24>>24;m=(0-(q>>>6&1)&9)+q&15|(0-(m>>>6&1)&9)+m<<4&240;if(m){x=30;break}o=(l|0)==0;while(1){m=i[b+n>>0]|0;if(m<<24>>24==35|m<<24>>24==0)continue c;if(o&m<<24>>24==63){l=0;continue c}if((l|0)==1){if(m<<24>>24==38|m<<24>>24==61){l=1;continue c}}else if((l|0)==2?m<<24>>24==38:0){l=2;continue c}n=n+1|0}}if((x|0)==30){x=0;m=m&255}else if((x|0)==36){x=0;if(m<<24>>24==38){i[h+g>>0]=0;m=0;l=1;g=g+1|0}else{m=0;l=2}}else if((x|0)==38){x=0;if(m<<24>>24==63)x=40;else l=0}else if((x|0)==39){x=0;if(m<<24>>24==38)x=40;else l=2}if((x|0)==40){x=0;m=0;l=1}i[h+g>>0]=m;g=g+1|0}if((l|0)==1){i[h+g>>0]=0;g=g+1|0}i[h+g>>0]=0;i[h+(g+1)>>0]=0;g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=(g-h&1073741823)+1|0;l=i[h+g>>0]|0;if(l<<24>>24){v=h+g|0;e:while(1){m=v;while(1){g=m+1|0;if(!(l<<24>>24)){l=m;break}l=i[g>>0]|0;m=g}u=l-v&1073741823;l=v+(u+1)|0;m=l;while(1)if(!(i[m>>0]|0))break;else m=m+1|0;t=m-l&1073741823;if((u|0)==3){g=(cw(15040,v,3)|0)==0;g=g?l:a}else if((u|0)==5)if(!(cw(15048,v,5)|0)){b=15056;p=393216;q=-393217;g=15048;x=58}else g=a;else if((u|0)==4?(cw(15096,v,4)|0)==0:0){b=15104;p=j&135;q=-136;g=15176;x=58}else g=a;if((x|0)==58){x=0;n=k[b>>2]|0;if(!n){x=65;break}else m=0;while(1){o=n;while(1)if(!(i[o>>0]|0))break;else o=o+1|0;if((t|0)==(o-n&1073741823|0)?(cw(l,n,t)|0)==0:0){n=m;break}m=m+1|0;n=k[b+(m<<3)>>2]|0;if(!n){x=65;break e}}n=k[b+(n<<3)+4>>2]|0;if(!n){x=65;break}if((n&-129|0)>(p|0)){x=67;break}j=n|q&j;g=a}v=v+(u+2+t)|0;l=i[v>>0]|0;if(!(l<<24>>24)){x=72;break a}else a=g}if((x|0)==65){k[w>>2]=g;k[w+4>>2]=l;g=dd(15184,w)|0;k[f>>2]=g;g=1;x=74;break}else if((x|0)==67){k[w>>2]=g;k[w+4>>2]=l;g=dd(15208,w)|0;k[f>>2]=g;g=3;x=74;break}}else{g=a;x=72}}else g=7}else{j=m;x=70}}else{j=0;x=70}while(0);if((x|0)==70){h=Yc(j+2|0)|0;if(!h)g=7;else{pw(h|0,b|0,j|0)|0;i[h+j>>0]=0;i[h+(j+1)>>0]=0;j=n&-65;g=a;x=72}}if((x|0)==72){q=Pc(g)|0;k[d>>2]=q;if(!q){k[w>>2]=g;g=dd(15232,w)|0;k[f>>2]=g;g=1;x=74}else{g=0;x=75}}if((x|0)==74){$c(h);h=0;x=75}if((x|0)==75){k[c>>2]=j;k[e>>2]=h}r=y;return g|0}function ao(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;do if(!b){b=vg(84,0)|0;if(!b)c=8;else{a=b+0|0;e=a+84|0;do{i[a>>0]=0;a=a+1|0}while((a|0)<(e|0));c=9}}else{d=k[b+4>>2]|0;k[d+4>>2]=k[b>>2];c=d+48|0;b=k[c>>2]|0;if(!b){b=vg(84,0)|0;if(!b){k[c>>2]=0;k[d+52>>2]=22;c=8;break}else{a=b+0|0;e=a+84|0;do{i[a>>0]=0;a=a+1|0}while((a|0)<(e|0));k[c>>2]=b;k[d+52>>2]=22;c=9;break}}else c=9}while(0);if((c|0)==8){i[a+65>>0]=1;b=0}else if((c|0)==9)if(!(i[b+76>>0]|0)){c=b+77|0;a=b+8|0;e=a+64|0;do{k[a>>2]=0;a=a+4|0}while((a|0)<(e|0));i[c>>0]=1}return b|0}function bo(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();if(c){g=a+428|0;f=gn(g,c,j)|0;if(!f)e=0;else e=k[f+8>>2]|0;if((e|0)==0&(d|0)!=0){f=c;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;f=f-c&1073741823;d=f+61|0;e=rh(a,d,0)|0;if(e){kw(e|0,0,d|0)|0;d=e+60|0;k[e>>2]=d;i[e+4>>0]=1;k[e+20>>2]=d;i[e+24>>0]=2;k[e+40>>2]=d;i[e+44>>0]=3;pw(d|0,c|0,f|0)|0;i[e+(f+60)>>0]=0;f=Nk(g,k[e>>2]|0,e)|0;if(!f)h=10;else{i[a+65>>0]=1;rg(a,f);e=0}}else e=0}else h=10}else{e=k[a+8>>2]|0;h=10}if((h|0)==10)if(!e)e=0;else e=e+(((b&255)+-1|0)*20|0)|0;r=j;return e|0}function co(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=r;r=r+64|0;if((r|0)>=(s|0))ka();y=A;f=A+48|0;o=A+24|0;v=A+8|0;g=(b|0)==1;t=g?13184:13208;k[f>>2]=t;k[f+4>>2]=13224;k[f+8>>2]=g?13064:12960;k[f+12>>2]=0;k[v>>2]=a;k[v+8>>2]=b;u=v+12|0;k[u>>2]=0;k[v+4>>2]=c;en(v,3,f,0)|0;f=k[u>>2]|0;a:do if(!f){w=a+16|0;f=di(a,t,k[(k[w>>2]|0)+(b<<4)>>2]|0)|0;if(f){q=f+44|0;i[q>>0]=l[q>>0]|1}e=k[w>>2]|0;x=e+(b<<4)+4|0;f=k[x>>2]|0;if(!f){if(!g){d=0;break}d=(k[e+28>>2]|0)+78|0;j[d>>1]=m[d>>1]|1;d=0;break}k[(k[f+4>>2]|0)+4>>2]=k[f>>2];do if(!(i[f+8>>0]|0)){f=Dg(f,0)|0;if((f|0)==516)d=16344;else if(!f){f=k[x>>2]|0;q=1;break}else z=10;if((z|0)==10){d=f&255;if(d>>>0>26|(d|0)==2)d=16328;else d=k[15488+(d<<2)>>2]|0}k[y>>2]=d;ih(c,a,10344,y);d=f;z=38;break a}else q=0;while(0);Bm(f,1,o);p=o+4|0;Bm(k[x>>2]|0,2,p);h=o+8|0;Bm(k[x>>2]|0,3,h);Bm(k[x>>2]|0,4,o+12|0);g=o+16|0;Bm(k[x>>2]|0,5,g);n=e+(b<<4)+12|0;f=k[n>>2]|0;k[f>>2]=k[o>>2];e=k[g>>2]|0;do if(e){if(!b){g=e&3;g=(g|0)==0?1:g&255;i[a+62>>0]=g;z=19;break}g=i[a+62>>0]|0;if((e|0)==(g&255|0))z=19;else{ih(c,a,13232,y);d=1}}else{g=(k[(k[w>>2]|0)+(b<<4)+12>>2]|0)+78|0;j[g>>1]=m[g>>1]|4;g=i[a+62>>0]|0;z=19}while(0);do if((z|0)==19){i[f+77>>0]=g;g=f+80|0;if(!(k[g>>2]|0)){f=k[h>>2]|0;if((f|0)<=-1)f=(f|0)==-2147483648?2147483647:0-f|0;f=(f|0)==0?2e3:f;k[g>>2]=f;uq(k[x>>2]|0,f);f=k[n>>2]|0}e=k[p>>2]|0;g=e&255;f=f+76|0;if(g<<24>>24){i[f>>0]=g;if((g&255)>4){ih(c,a,13304,y);d=1;break}}else i[f>>0]=1;if((b|0)==0&(e|0)>3){p=a+24|0;k[p>>2]=k[p>>2]&-32769}k[y>>2]=k[(k[w>>2]|0)+(b<<4)>>2];k[y+4>>2]=t;f=zh(a,13328,y)|0;t=a+284|0;p=k[t>>2]|0;k[t>>2]=0;e=Ve(a,f,22,v,0)|0;k[t>>2]=p;e=(e|0)==0?k[u>>2]|0:e;rgrg(k[a+52>>2]|0,a);return}function wo(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=a+65|0;do if(!(i[f>>0]|0)){if(!b){e=rh(a,c,d)|0;break}if((k[a+276>>2]|0)>>>0<=b>>>0?(k[a+280>>2]|0)>>>0>b>>>0:0){f=a+248|0;if(!(0<d>>>0|(0==(d|0)?(m[f>>1]|0)>>>0<c>>>0:0))){e=b;break}e=rh(a,c,d)|0;if(!e){e=0;break}pw(e|0,b|0,m[f>>1]|0)|0;rgrg(a,k[d+4>>2]|0);rg(a,k[d+8>>2]|0);rg(a,k[d+12>>2]|0);rg(a,k[d+64>>2]|0);pg(a,k[d+16>>2]|0);Rk(a,k[d+20>>2]|0,1);Lk(a,k[d+44>>2]|0);Mk(a,k[d+48>>2]|0);c=c+1|0;if((c|0)>=(k[b>>2]|0))break;else d=d+72|0}}rg<<16|(l[a+4>>0]|0)<<24|(l[a+6>>0]|0)<<8|(l[a+7>>0]|0);h=c;k[h>>2]=a;k[h+4>>2]=d;if((b|0)==6)a=4;else{k[t>>2]=a;k[t+4>>2]=d;p[e>>3]=+p[t>>3];p[f>>3]=+p[e>>3];a=+p[e>>3]!=+p[f>>3]?1:8}j[c+8>>1]=a;r=g;return}function zp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;if(!(c>>>0>16777215|(c|0)==16777215&b>>>0>4294967295)){d=b;e=0;while(1){b=e+1|0;i[f+e>>0]=d|128;d=rw(d|0,c|0,7)|0;c=L;if((d|0)==0&(c|0)==0){c=e;break}else e=b}i[f>>0]=(l[f>>0]|0)&127;if((c|0)>-1){d=0;while(1){i[a+d>>0]=i[f+c>>0]|0;if((c|0)>0){d=d+1|0;c=c+-1|0}else break}}}else{i[a+8>>0]=b;b=rw(b|0,c|0,8)|0;d=L;c=7;while(1){i[a+c>>0]=b|128;b=rw(b|0,d|0,7)|0;if((c|0)<=0){b=9;break}else{d=L;c=c+-1|0}}}r=g;return b|0}function Ap(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;if((k[a+44>>2]|0)>>>0>=b>>>0){d=il(a,b,c,d)|0;if(!d){d=k[c>>2]|0;if((i[d>>0]|0)==0?(e=eq(d)|0,(e|0)!=0):0){d=k[c>>2]|0;if(d)Gg(k[d+68>>2]|0)}else e=0}else e=d}else{k[f>>2]=54788;k[f+4>>2]=10788;gd(11,13600,f);e=11}r=g;return e|0}function Bp(a){a=a|0;var b=0,c=0,d=0;if((i[a+12>>0]|0)==0?(b=a+60|0,c=k[b>>2]|0,((qc[k[(k[c>>2]|0)+48>>2]&127](c)|0)&4096|0)==0):0){b=k[b>>2]|0;c=k[(k[b>>2]|0)+44>>2]|0;if(c){b=qc[c&127](b)|0;if((b|0)<32)b=512;else d=6}else{b=4096;d=6}if((d|0)==6)b=(b|0)>65536?65536:b;k[a+148>>2]=b}else k[a+148>>2]=512;return}function Cp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=a+40|0;do if(!(k[g>>2]|0)){f=i[a+20>>0]|0;if(f<<24>>24){if(f&3){c=0;break}if(j[b+24>>1]&4){c=0;break}}k[b+12>>2]=0;do if(!(k[a+208>>2]|0)){if(!((j[b+24>>1]&4)==0?(i[a+16>>0]|0)!=3:0))h=11;if((h|0)==11?(d=El(a,1)|0,(d|0)!=0):0){c=d;break}if(((k[b+20>>2]|0)>>>0>(k[a+24>>2]|0)>>>0?(Zo(b)|0)!=0:0)?(e=_o(b)|0,(e|0)!=0):0){c=e;break}c=Fl(a,b)|0;h=16}else{if((Zo(b)|0)!=0?(c=_o(b)|0,(c|0)!=0):0)break;c=Bl(a,b,0,0)|0;h=16}while(0);if((h|0)==16)if(!c){Cl(b);c=0;break}d=c&255;if((d|0)==10|(d|0)==13){k[g>>2]=c;i[a+16>>0]=6}}else c=0;while(0);return c|0}function Dp(a){a=a|0;var b=0;b=k[a+8>>2]|0;if((i[b>>0]|0)!=0?(i[b>>0]=0,(j[a+26>>1]|0)>1):0)eq(b)|0;return}function Ep(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();j=m;h=m+8|0;do if(!(k[e>>2]|0)){if(!b){k[j>>2]=53856;k[j+4>>2]=10788;gd(11,13600,j);k[e>>2]=11;break}if(b>>>0<2)f=0;else{f=b+-2|0;f=f-((f>>>0)%(((((k[a+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;f=((f+1|0)==(((k[2514]|0)>>>0)/((k[a+32>>2]|0)>>>0)|0|0)?3:2)+f|0}g=Eg(k[a>>2]|0,f,h,0)|0;if(g){k[e>>2]=g;break}b=(b-f|0)*5|0;g=b+-5|0;do if((g|0)>=0){f=k[h>>2]|0;a=k[f+4>>2]|0;g=a+g|0;if((i[g>>0]|0)==c<<24>>24?(l[a+(b+-3)>>0]<<16|l[a+(b+-4)>>0]<<24|l[a+(b+-2)>>0]<<8|l[a+(b+-1)>>0]|0)==(d|0):0)break;h=Lg(f)|0;k[e>>2]=h;if(!h){i[g>>0]=c;i[a+(b+-4)>>0]=d>>>24;i[a+(b+-3)>>0]=d>>>16;i[a+(b+-2)>>0]=d>>>8;i[a+(b+-1)>>0]=d}}else{k[j>>2]=53867;k[j+4>>2]=10788;gd(11,13600,j);k[e>>2]=11;f=k[h>>2]|0}while(0);if(f)Gg(f)}while(0);r=m;return}function Fp(a,b,c){a=a|0;b=b|0;c=c|0;return Pm(a,b,c,0)|0}function Gp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;f=l[b>>0]&63;d=b+f|0;h=k[c+8>>2]|0;g=k[h>>2]|0;h=k[h+4>>2]|0;switch(l[b+1>>0]|0){case 5:{e=i[d>>0]<<8|l[b+(f+1)>>0];d=l[b+(f+3)>>0]<<16|l[b+(f+2)>>0]<<24|l[b+(f+4)>>0]<<8|l[b+(f+5)>>0];j=11;break}case 6:{e=l[b+(f+1)>>0]<<16|l[d>>0]<<24|l[b+(f+2)>>0]<<8|l[b+(f+3)>>0];d=l[b+(f+5)>>0]<<16|l[b+(f+4)>>0]<<24|l[b+(f+6)>>0]<<8|l[b+(f+7)>>0];j=11;break}case 9:{e=0;d=1;j=11;break}case 2:{d=i[d>>0]<<8|l[b+(f+1)>>0];e=((d|0)<0)<<31>>31;j=11;break}case 7:case 0:{d=Pm(a,b,c,0)|0;break}case 4:{d=l[b+(f+1)>>0]<<16|l[d>>0]<<24|l[b+(f+2)>>0]<<8|l[b+(f+3)>>0];e=((d|0)<0)<<31>>31;j=11;break}case 3:{d=l[b+(f+1)>>0]<<8|i[d>>0]<<16|l[b+(f+2)>>0];e=((d|0)<0)<<31>>31;j=11;break}case 8:{e=0;d=0;j=11;break}case 1:{d=i[d>>0]|0;e=((d|0)<0)<<31>>31;j=11;break}default:d=Pm(a,b,c,0)|0}do if((j|0)==11){if((h|0)>(e|0)|(h|0)==(e|0)&g>>>0>d>>>0){d=k[c+12>>2]|0;break}if((h|0)<(e|0)|(h|0)==(e|0)&g>>>0<d>>>0){d=k[c+16>>2]|0;break}if((m[c+4>>1]|0)>1){d=Pm(a,b,c,1)|0;break}else{d=i[c+6>>0]|0;break}}while(0);return d|0}function Hp(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;f=j+8|0;d=b+1|0;e=i[d>>0]|0;if(e<<24>>24>-1){d=e&255;k[f>>2]=d}else{rm(d,f)|0;d=k[f>>2]|0}do if((d|0)>=12){if(!(d&1)){d=k[c+16>>2]|0;break}f=l[b>>0]|0;g=(d+-12|0)/2|0;if((f+g|0)>(a|0)){k[h>>2]=68550;k[h+4>>2]=10788;gd(11,13600,h);i[c+7>>0]=11;d=0;break}d=k[c+8>>2]|0;e=k[d+12>>2]|0;d=cw(b+f|0,k[d+16>>2]|0,(g|0)>(e|0)?e:g)|0;if(d)if((d|0)>0){d=k[c+16>>2]|0;break}else{d=k[c+12>>2]|0;break}if((g|0)==(e|0))if((m[c+4>>1]|0)>1){d=Pm(a,b,c,1)|0;break}else{d=i[c+6>>0]|0;break}else if((g-e|0)>0){d=k[c+16>>2]|0;break}else{d=k[c+12>>2]|0;break}}else d=k[c+12>>2]|0;while(0);r=j;return d|0}function Ip(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0;h=a+73|0;c=i[h>>0]|0;do if(c<<24>>24!=1){if((c&255)>2){c=Pn(a)|0;if(c)break;c=i[h>>0]|0}if(!(c<<24>>24)){k[b>>2]=1;c=0;break}c=a+68|0;d=k[c>>2]|0;if((d|0)!=0?(i[h>>0]=1,k[c>>2]=0,(d|0)>0):0)c=0;else n=9}else n=9;while(0);do if((n|0)==9){g=a+76|0;c=j[g>>1]|0;d=k[a+(c<<2)+120>>2]|0;c=a+(c<<1)+78|0;e=(j[c>>1]|0)+1<<16>>16;j[c>>1]=e;c=(i[d+5>>0]|0)!=0;if((e&65535)<(m[d+18>>1]|0)){if(c){c=0;break}c=_m(a)|0;break}if(!c){c=l[d+6>>0]|0;d=k[d+56>>2]|0;c=wm(a,l[d+(c+9)>>0]<<16|l[d+(c+8)>>0]<<24|l[d+(c+10)>>0]<<8|l[d+(c+11)>>0])|0;if(c)break;c=_m(a)|0;break}e=a+44|0;f=a+72|0;d=j[g>>1]|0;do{if(!(d<<16>>16)){n=15;break}c=k[a+(d<<16>>16<<2)+120>>2]|0;if(c){Gg(k[c+68>>2]|0);d=j[g>>1]|0}d=d+-1<<16>>16;j[g>>1]=d;j[e>>1]=0;i[f>>0]=l[f>>0]&249;o=d<<16>>16;c=k[a+(o<<2)+120>>2]|0}while((m[a+(o<<1)+78>>1]|0)>=(m[c+18>>1]|0));if((n|0)==15){k[b>>2]=1;i[h>>0]=0;c=0;break}if(!(i[c+2>>0]|0))c=0;else c=Im(a,b)|0}while(0);return c|0}function Jp(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0;p=a+73|0;c=i[p>>0]|0;do if(c<<24>>24!=1){if((c&255)>2){c=Pn(a)|0;if(c)break;c=i[p>>0]|0}if(!(c<<24>>24)){k[b>>2]=1;c=0;break}c=a+68|0;d=k[c>>2]|0;if((d|0)!=0?(i[p>>0]=1,k[c>>2]=0,(d|0)<0):0)c=0;else e=9}else e=9;while(0);a:do if((e|0)==9){o=a+76|0;f=j[o>>1]|0;g=f<<16>>16;e=k[a+(g<<2)+120>>2]|0;d=a+(g<<1)+78|0;c=j[d>>1]|0;if(!(i[e+5>>0]|0)){b=k[e+56>>2]|0;c=(c&65535)<<1;p=k[e+64>>2]|0;c=(l[p+c>>0]<<8|l[p+(c|1)>>0])&m[e+20>>1];c=wm(a,l[b+(c+1)>>0]<<16|l[b+c>>0]<<24|l[b+(c+2)>>0]<<8|l[b+(c+3)>>0])|0;if(c)break;c=Kp(a)|0;break}b:do if(!(c<<16>>16)){h=a+44|0;n=a+72|0;e=g;while(1){if(!(f<<16>>16))break;d=k[a+(e<<2)+120>>2]|0;if(!d)d=f;else{Gg(k[d+68>>2]|0);d=j[o>>1]|0}f=d+-1<<16>>16;j[o>>1]=f;j[h>>1]=0;i[n>>0]=l[n>>0]&249;e=f<<16>>16;d=a+(e<<1)+78|0;c=j[d>>1]|0;if(c<<16>>16)break b}i[p>>0]=0;k[b>>2]=1;c=0;break a}while(0);j[d>>1]=c+-1<<16>>16;p=k[a+(j[o>>1]<<2)+120>>2]|0;if((i[p+2>>0]|0)!=0?(i[p+5>>0]|0)==0:0)c=Jm(a,b)|0;else c=0}while(0);return c|0}function Kp(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;d=a+76|0;do{c=j[d>>1]|0;b=k[a+(c<<2)+120>>2]|0;if(i[b+5>>0]|0){e=4;break}f=l[b+6>>0]|0;g=k[b+56>>2]|0;f=l[g+(f+9)>>0]<<16|l[g+(f+8)>>0]<<24|l[g+(f+10)>>0]<<8|l[g+(f+11)>>0];j[a+(c<<1)+78>>1]=j[b+18>>1]|0;b=wm(a,f)|0}while((b|0)==0);if((e|0)==4){j[a+(c<<1)+78>>1]=(m[b+18>>1]|0)+65535;b=0}return b|0}function Lp(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,l=0,m=0;m=r;r=r+224|0;if((r|0)>=(s|0))ka();i=m;g=m+8|0;k[g>>2]=0;do if(b){h=a+16|0;l=Km(k[h>>2]|0,m+16|0,200,g)|0;if(l){Lm(k[h>>2]|0,c,b,l);if(!(j[l+4>>1]|0)){rg(k[(k[h>>2]|0)+12>>2]|0,k[g>>2]|0);k[i>>2]=53713;k[i+4>>2]=10788;gd(11,13600,i);g=11;break}h=k[g>>2]|0;g=Hm(a,l,c,d,e,f)|0;if(h)rgrg(c,k[d>>2]|0);j[e>>1]=b;e=b*80|0;c=rh(c,e,0)|0;if(c){kw(c|0,0,e|0)|0;k[d>>2]=c;if((b|0)>0){e=k[a>>2]|0;d=b<<1;while(1){d=d+-1|0;j[c+8>>1]=1;k[c+32>>2]=e;if((d|0)<=0)break;else c=c+40|0}}}else k[d>>2]=0;return}function oq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(!(i[(k[a>>2]|0)+65>>0]|0)){b=(ha(m[a+84>>1]|0,c)|0)+b|0;ah((k[a+16>>2]|0)+(b*40|0)|0,d,-1,1,e)|0}return}function pq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;f=k[a>>2]|0;e=f+1|0;k[a>>2]=e;if((f|0)>98){c=a+8|0;e=k[c>>2]|0;k[a>>2]=f;do Un(a);while((k[a>>2]|0)>-1);yh(e,37160,g);k[c>>2]=e}else{j[a+(e<<4)+12>>1]=b;i[a+(e<<4)+14>>0]=c;c=a+(e<<4)+16|0;k[c+0>>2]=k[d+0>>2];k[c+4>>2]=k[d+4>>2];k[c+8>>2]=k[d+8>>2]}r=h;return}function qq(a,b,c){a=a|0;b=b|0;c=c|0;a=k[a+8>>2]|0;switch(b&255|0){case 236:{Mk(k[a>>2]|0,k[c+4>>2]|0);break}case 243:case 238:case 229:case 227:case 216:case 204:case 202:{Lk(k[a>>2]|0,k[c>>2]|0);break}case 213:case 212:case 201:case 194:{Io(k[a>>2]|0,k[c>>2]|0);break}case 207:case 196:case 195:case 163:{Rk(k[a>>2]|0,k[c>>2]|0,1);break}case 223:case 219:case 217:{Mk(k[a>>2]|0,k[c>>2]|0);break}case 175:case 174:{Lk(k[a>>2]|0,k[c>>2]|0);break}case 239:case 234:{Kk(k[a>>2]|0,k[c>>2]|0);break}case 252:case 197:{Vn(k[a>>2]|0,k[c>>2]|0);break}case 228:case 221:case 220:case 210:case 209:case 208:case 205:case 203:case 200:case 188:case 179:{Sk(k[a>>2]|0,k[c>>2]|0);break}default:{}}return}
9 function Hl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();j=o;n=a+16|0;if((l[n>>0]|0)<2?(l[a+17>>0]|0)<2:0)d=0;else{hp(a);m=a+64|0;g=k[m>>2]|0;e=k[g>>2]|0;do if(!e)e=0;else{if((e|0)==14696){Li(g,0,0)|0;k[g>>2]=0;e=0;break}f=i[a+5>>0]|0;if(f<<24>>24==3){f=a+72|0;j=f;if(!((k[j>>2]|0)==0&(k[j+4>>2]|0)==0)){e=fc[k[e+16>>2]&63](g,0,0)|0;if(!e)if(!(i[a+8>>0]|0))e=0;else{e=k[m>>2]|0;e=wc[k[(k[e>>2]|0)+20>>2]&127](e,l[a+11>>0]|0)|0}}else e=0;m=f;k[m>>2]=0;k[m+4>>2]=0;break}else if(f<<24>>24!=1?(i[a+4>>0]|0)==0|f<<24>>24==5:0){m=(i[a+12>>0]|0)==0;qc[k[e+4>>2]&127](g)|0;k[g>>2]=0;if(!m){e=0;break}e=k[a>>2]|0;e=fc[k[e+28>>2]&63](e,k[a+172>>2]|0,0)|0;break}h=a+72|0;f=h;if(!((k[f>>2]|0)==0&(k[f+4>>2]|0)==0)){d=a+160|0;f=k[d>>2]|0;d=k[d+4>>2]|0;if((b|0)!=0|(f|0)==0&(d|0)==0)e=fc[k[e+16>>2]&63](g,0,0)|0;else e=yc[k[e+12>>2]&31](g,14664,28,0,0)|0;if(!e){if(!(i[a+7>>0]|0)){e=k[m>>2]|0;e=wc[k[(k[e>>2]|0)+20>>2]&127](e,l[a+11>>0]|16)|0}else e=0;if((e|0)==0&((d|0)>0|(d|0)==0&f>>>0>0)){e=k[m>>2]|0;e=wc[k[(k[e>>2]|0)+24>>2]&127](e,j)|0;g=k[j+4>>2]|0;if((e|0)==0&((g|0)>(d|0)|((g|0)==(d|0)?(k[j>>2]|0)>>>0>f>>>0:0))){e=k[m>>2]|0;e=fc[k[(k[e>>2]|0)+16>>2]&63](e,f,d)|0}}}}else e=0;m=h;k[m>>2]=0;k[m+4>>2]=0}while(0);f=a+56|0;ji(k[f>>2]|0);k[f>>2]=0;k[a+44>>2]=0;f=a+204|0;d=k[f>>2]|0;b=k[d>>2]|0;if(b){do{Cl(b);b=k[d>>2]|0}while((b|0)!=0);d=k[f>>2]|0}f=a+24|0;ip(d,k[f>>2]|0);g=a+208|0;d=k[g>>2]|0;if(!d){if((e|0)==0&(c|0)!=0){d=k[f>>2]|0;if((k[a+32>>2]|0)>>>0>d>>>0)e=Gl(a,d)|0;else e=0}}else{b=d+44|0;if(i[b>>0]|0){if(!(i[d+43>>0]|0)){m=k[d+4>>2]|0;uc[k[(k[m>>2]|0)+56>>2]&31](m,0,1,9)|0}i[b>>0]=0;i[d+47>>0]=0}}if((e|0)==0&(c|0)!=0){d=k[a+60>>2]|0;e=k[d>>2]|0;if(!e)f=0;else{f=fc[k[e+40>>2]&63](d,22,0)|0;f=(f|0)==12?0:f}}else f=e;do if(!(i[a+4>>0]|0)){d=k[g>>2]|0;if((d|0)!=0?(jp(d,0)|0)==0:0){d=0;break}e=k[a+60>>2]|0;d=k[e>>2]|0;if(d){if(!(i[a+13>>0]|0))d=wc[k[d+32>>2]&127](e,1)|0;else d=0;e=a+17|0;if((i[e>>0]|0)!=5)i[e>>0]=1}else d=0;i[a+18>>0]=0}else d=0;while(0);i[n>>0]=1;i[a+19>>0]=0;d=(f|0)==0?d:f}r=o;return d|0}function Il(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,l=0;f=k[a+4>>2]|0;c=k[a>>2]|0;i[f+19>>0]=0;g=a+8|0;do if(i[g>>0]|0){if((k[c+152>>2]|0)>1){c=f+76|0;if((k[c>>2]|0)==(a|0)?(k[c>>2]=0,b=f+22|0,j[b>>1]=m[b>>1]&65439,b=k[f+72>>2]|0,(b|0)!=0):0)do{i[b+8>>0]=1;b=k[b+12>>2]|0}while((b|0)!=0);i[g>>0]=1;break}c=f+72|0;b=k[c>>2]|0;a:do if(b)do while(1){d=b+12|0;e=k[d>>2]|0;if((k[b>>2]|0)!=(a|0)){c=d;b=e;break}k[c>>2]=e;if((k[b+4>>2]|0)==1)b=e;else{$c(b);b=k[c>>2]|0}if(!b)break a}while((b|0)!=0);while(0);b=f+76|0;if((k[b>>2]|0)!=(a|0)){b=k[f+40>>2]|0;if((b|0)==2){e=f+22|0;j[e>>1]=m[e>>1]&65471;k[f+40>>2]=1;e=20;break}}else{k[b>>2]=0;b=f+22|0;j[b>>1]=m[b>>1]&65439;b=k[f+40>>2]|0}b=b+-1|0;k[f+40>>2]=b;if(!b){i[f+20>>0]=0;e=20}else e=20}else e=20;while(0);if(((e|0)==20?(i[g>>0]=0,(i[f+20>>0]|0)==0):0)?(h=f+12|0,l=k[h>>2]|0,(l|0)!=0):0){k[h>>2]=0;Gg(k[l+68>>2]|0)}return}function Jl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=((k[a+36>>2]|0)>>>0)/5|0;if(b>>>0<2){d=0;f=k[a+32>>2]|0;h=k[2514]|0}else{d=b+-2|0;d=d-((d>>>0)%((g+1|0)>>>0)|0)|0;h=k[2514]|0;f=k[a+32>>2]|0;d=((d+1|0)==((h>>>0)/(f>>>0)|0|0)?3:2)+d|0}d=b-c-(((c-b+g+d|0)>>>0)/(g>>>0)|0)|0;e=a+32|0;a=((h>>>0)/(f>>>0)|0)+1|0;c=((h>>>0)/(f>>>0)|0)+1|0;a=((a>>>0<b>>>0&d>>>0<a>>>0)<<31>>31)+d|0;while(1){if(a>>>0<2)d=0;else{d=a+-2|0;d=d-((d>>>0)%((g+1|0)>>>0)|0)|0;d=((d+1|0)==((h>>>0)/((k[e>>2]|0)>>>0)|0|0)?3:2)+d|0}if(!((d|0)==(a|0)|(a|0)==(c|0)))break;a=a+-1|0}return a|0}function Kl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=(b|0)==0;d=a;a:while(1){do if((d|0)!=(c|0)){if(!e?(k[d+60>>2]|0)!=(b|0):0)break;if(((i[d+73>>0]|0)+-1&255)<2){a=kp(d)|0;if(!a)break;else break a}else{lp(d);break}}while(0);d=k[d+8>>2]|0;if(!d){a=0;break}}return a|0}function Ll(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+48|0;if((r|0)>=(s|0))ka();f=v;h=v+32|0;q=v+28|0;g=v+24|0;m=v+20|0;o=v+16|0;t=v+12|0;p=v+8|0;if(c>>>0<2)j=0;else{j=c+-2|0;j=j-((j>>>0)%(((((k[a+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;j=((j+1|0)==(((k[2514]|0)>>>0)/((k[a+32>>2]|0)>>>0)|0|0)?3:2)+j|0}do if((j|0)!=(c|0)?((((k[2514]|0)>>>0)/((k[a+32>>2]|0)>>>0)|0)+1|0)!=(c|0):0){n=k[(k[a+12>>2]|0)+56>>2]|0;if((l[n+37>>0]|0)<<16|(l[n+36>>0]|0)<<24|(l[n+38>>0]|0)<<8|(l[n+39>>0]|0)){e=mp(a,c,h,q)|0;if(!e){n=i[h>>0]|0;if(n<<24>>24==2){if(d){e=0;break}e=np(a,m,g,c,1)|0;if(e)break;f=k[m>>2]|0;if(!f){u=24;break}Gg(k[f+68>>2]|0);u=24;break}else if(n<<24>>24!=1){e=il(a,c,t,0)|0;if(e)break;f=(d|0)==0;h=f?2:0;f=f?b:0;g=(d|0)!=0;do{e=np(a,p,o,f,h)|0;if(e){u=16;break}j=k[p>>2]|0;if(j)Gg(k[j+68>>2]|0);j=k[o>>2]|0}while(g&j>>>0>b>>>0);if((u|0)==16){f=k[t>>2]|0;if(!f)break;Gg(k[f+68>>2]|0);break}h=k[t>>2]|0;e=cn(a,h,n,k[q>>2]|0,j,d)|0;if(h)Gg(k[h+68>>2]|0);if(!e){u=24;break}else break}else{k[f>>2]=56228;k[f+4>>2]=10788;gd(11,13600,f);e=11;break}}}else e=101}else u=24;while(0);if((u|0)==24)if(!d){g=((k[2514]|0)>>>0)/((k[a+32>>2]|0)>>>0)|0;h=g+1|0;j=a+36|0;f=c;while(1){e=f+-1|0;if((e|0)==(h|0)){f=e;continue}if(e>>>0<2)f=0;else{f=f+-3|0;f=f-((f>>>0)%(((((k[j>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;f=((f+1|0)==(g|0)?3:2)+f|0}if((f|0)==(e|0))f=e;else break}i[a+19>>0]=1;k[a+44>>2]=e;e=0}else e=0;r=v;return e|0}function Ml(a){a=a|0;var b=0,c=0,d=0;d=a+16|0;c=i[d>>0]|0;a:do if(c<<24>>24!=6)if((c&255)>=2){do if(!(k[a+208>>2]|0)){if(!(c<<24>>24==2?1:(k[k[a+64>>2]>>2]|0)==0)){b=Po(a,0)|0;break}b=Hl(a,0,0)|0;if((i[a+15>>0]|0)==0&(c&255)>2){k[a+40>>2]=4;i[d>>0]=6;break a}}else{b=op(a,2,-1)|0;c=Hl(a,l[a+19>>0]|0,0)|0;b=(b|0)==0?c:b}while(0);c=b&255;if((c|0)==10|(c|0)==13){k[a+40>>2]=b;i[d>>0]=6}}else b=0;else b=k[a+40>>2]|0;while(0);return b|0}function Nl(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0;a:do if((a|0)!=0?(e=k[a+4>>2]|0,k[e+4>>2]=k[a>>2],e=k[e+8>>2]|0,(e|0)!=0):0){l=(c|0)==0;while(1){if(!l?(i[e+72>>0]&1)==0:0){if(((i[e+73>>0]|0)+-1&255)<2?(d=kp(e)|0,(d|0)!=0):0)break}else{c=e+56|0;$c(k[c>>2]|0);k[c>>2]=0;i[e+73>>0]=4;k[e+68>>2]=b}c=e+76|0;if((j[c>>1]|0)>=0){h=0;while(1){f=e+(h<<2)+120|0;g=k[f>>2]|0;if(g)Gg(k[g+68>>2]|0);k[f>>2]=0;if((h|0)<(j[c>>1]|0))h=h+1|0;else break}}e=k[e+8>>2]|0;if(!e)break a}Nl(a,d,0)|0;return d|0}while(0);return 0}function Ol(a){a=a|0;var b=0,c=0,d=0;a:do if(!(k[a+4>>2]|0)){c=k[a+20>>2]|0;if((c|0)>0){a=k[a+16>>2]|0;b=0;while(1){d=k[a+(b<<4)+4>>2]|0;if((d|0)!=0?(k[d+16>>2]|0)!=0:0){a=1;break a}b=b+1|0;if((b|0)>=(c|0)){a=0;break}}}else a=0}else a=1;while(0);return a|0}function Pl(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0;c=k[3164]|0;if(c)sc[c&3]();l=a+20|0;g=k[l>>2]|0;f=(g|0)>0;if(f){c=k[a+16>>2]|0;e=0;do{d=k[c+(e<<4)+4>>2]|0;if(d)k[(k[d+4>>2]|0)+4>>2]=k[d>>2];e=e+1|0}while((e|0)!=(g|0))}m=a+24|0;if(!(k[m>>2]&2))c=1;else c=(i[a+145>>0]|0)!=0;if(f){h=a+16|0;c=c&1;f=g;g=0;e=0;while(1){d=k[(k[h>>2]|0)+(g<<4)+4>>2]|0;if(!d)d=f;else{e=(i[d+8>>0]|0)==2?1:e;Qg(d,b,c);d=k[l>>2]|0}g=g+1|0;if((g|0)>=(d|0))break;else f=d}}else e=0;Wn(a,68);c=k[3166]|0;if(c)sc[c&3]();c=k[m>>2]|0;if((c&2|0)!=0?(i[a+145>>0]|0)==0:0){c=k[a+4>>2]|0;if(c)do{d=c+88|0;j[d>>1]=j[d>>1]|8;c=k[c+52>>2]|0}while((c|0)!=0);Jg(a);c=k[m>>2]|0}d=a+504|0;k[d+0>>2]=0;k[d+4>>2]=0;k[d+8>>2]=0;k[d+12>>2]=0;k[m>>2]=c&-16777217;c=k[a+204>>2]|0;do if(c){if((e|0)==0?(i[a+63>>0]|0)!=0:0)break;hc[c&31](k[a+200>>2]|0)}while(0);return}function Ql(a){a=a|0;var b=0,c=0;c=a+488|0;b=k[c>>2]|0;if(b)do{k[c>>2]=k[b+24>>2];rg(a,b);b=k[c>>2]|0}while((b|0)!=0);k[a+496>>2]=0;k[a+500>>2]=0;i[a+70>>0]=0;return}function Rl(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=k[a+4>>2]|0;k[f+4>>2]=k[a>>2];c=k[f+8>>2]|0;if(c)do{b=c;c=k[c+8>>2]|0;if((k[b>>2]|0)==(a|0))pp(b)}while((c|0)!=0);Qg(a,0,0);a:do if(i[a+9>>0]|0){c=f+64|0;b=k[c>>2]|0;k[c>>2]=b+-1;if((b|0)<2){b=k[3664]|0;if((b|0)==(f|0)){k[3664]=k[f+68>>2];d=12;break}else c=b;do{if(!c){d=12;break a}b=c+68|0;c=k[b>>2]|0}while((c|0)!=(f|0));k[b>>2]=k[f+68>>2];d=12}}else d=12;while(0);if((d|0)==12){qp(k[f>>2]|0);b=k[f+52>>2]|0;c=f+48|0;if((b|0)!=0?(e=k[c>>2]|0,(e|0)!=0):0)hc[b&31](e);b=k[c>>2]|0;if(b)$c(b);b=f+80|0;c=k[b>>2]|0;if(c){c=c+-4|0;k[b>>2]=c;el(c);k[b>>2]=0}$c(f)}c=k[a+28>>2]|0;b=a+24|0;if(c)k[c+24>>2]=k[b>>2];b=k[b>>2]|0;if(b)k[b+28>>2]=c;$c(a);return}function Sl(a,b){a=a|0;b=b|0;var c=0;b=k[b+32>>2]|0;if((b|0)!=0?(c=(k[b>>2]|0)+-1|0,k[b>>2]=c,(c|0)==0):0){hc[k[b+4>>2]&31](k[b+8>>2]|0);rg(a,b)}return}function Tl(a){a=a|0;var b=0,c=0;c=a+8|0;b=k[c>>2]|0;k[c>>2]=0;c=a+12|0;$c(k[c>>2]|0);k[c>>2]=0;k[a>>2]=0;if(b)do{c=b;b=k[b>>2]|0;$c(c)}while((b|0)!=0);k[a+4>>2]=0;return}function Ul(a){a=a|0;var b=0,c=0,d=0,e=0;if(a){d=k[a>>2]|0;qg(d,a);e=k[a+48>>2]|0;c=a+52|0;b=k[c>>2]|0;if(!e)k[d+4>>2]=b;else{k[e+52>>2]=b;b=k[c>>2]|0}if(b)k[b+48>>2]=e;k[a+40>>2]=-1241070648;k[a>>2]=0;rg(d,a)}return}function Vl(a){a=a|0;var b=0;i[a+65>>0]=0;k[a+52>>2]=7;a=k[a+236>>2]|0;do if(a){b=a+8|0;if(!(j[b>>1]&9312)){j[b>>1]=1;break}else{Ag(a);break}}while(0);return}function Wl(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,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=r;r=r+32|0;if((r|0)>=(s|0))ka();u=E;x=E+16|0;o=E+12|0;p=E+8|0;D=k[a>>2]|0;if(i[D+65>>0]|0)k[a+80>>2]=7;c=k[a+200>>2]|0;if(c)kw(c|0,0,k[a+196>>2]|0)|0;e=a+176|0;c=k[e>>2]|0;if(c){while(1){d=k[c+4>>2]|0;if(!d)break;else c=d}am(c)|0;k[e>>2]=0;k[a+184>>2]=0}l=a+56|0;c=k[l>>2]|0;a:do if((c|0)!=0?(n=a+36|0,b=k[n>>2]|0,(b|0)>0):0){e=0;while(1){d=k[c+(e<<2)>>2]|0;if(!d)d=b;else{Gm(a,d);k[(k[l>>2]|0)+(e<<2)>>2]=0;d=k[n>>2]|0}e=e+1|0;if((e|0)>=(d|0))break a;c=k[l>>2]|0;b=d}}while(0);c=k[a+8>>2]|0;if(c)hh(c+40|0,k[a+28>>2]|0);n=a+180|0;c=k[n>>2]|0;if(c)do{k[n>>2]=k[c+4>>2];l=c+80|0;b=c+60|0;d=k[b>>2]|0;g=l+(d*40|0)|0;h=c+64|0;if((k[h>>2]|0)>0){e=0;do{Gm(k[c>>2]|0,k[g+(e<<2)>>2]|0);e=e+1|0}while((e|0)<(k[h>>2]|0));d=k[b>>2]|0}hh(l,d);rgrg(D,q);C=135;break g}do if(!h)h=0;else{g=k[x>>2]|0;if((qc[k[(k[g>>2]|0)+48>>2]&127](g)|0)&1024)break;c=wc[k[(k[g>>2]|0)+20>>2]&127](g,2)|0;if(!c)break;d=k[g>>2]|0;if(d){qc[k[d+4>>2]&127](g)|0;k[g>>2]=0}$c(g);fc[k[t+28>>2]&63](t,q,0)|0;rg(D,q);C=135;break g}while(0);e=k[v>>2]|0;if((e|0)>0)n=0;else{n=1;c=0;break}while(1){g=k[(k[w>>2]|0)+(n<<4)+4>>2]|0;if(g){c=Pg(g,q)|0;if(c){n=0;break j}e=k[v>>2]|0}n=n+1|0;if((n|0)>=(e|0)){n=1;c=0;break}}}else{n=1;h=0;c=0}while(0);g=k[x>>2]|0;f=k[g>>2]|0;if(f){qc[k[f+4>>2]&127](g)|0;k[g>>2]=0}$c(g);if(!n){rg(D,q);C=135;break g}c=fc[k[t+28>>2]&63](t,q,h)|0;rg(D,q);if(c){C=135;break g}c=k[3164]|0;if(c)sc[c&3]();c=k[v>>2]|0;if((c|0)>0){e=0;do{d=k[(k[w>>2]|0)+(e<<4)+4>>2]|0;if(d){Og(d,1)|0;c=k[v>>2]|0}e=e+1|0}while((e|0)<(c|0))}c=k[3166]|0;if(c)sc[c&3]();Wn(D,64);break g}while(0);rg(D,q);C=135;break g}while(0);c=k[v>>2]|0;do if((c|0)>0){d=1;while(1){if(e){c=Pg(e,0)|0;if(c){C=135;break g}c=k[v>>2]|0}if((d|0)>=(c|0))break;e=k[(k[w>>2]|0)+(d<<4)+4>>2]|0;d=d+1|0}if((c|0)>0)e=0;else break;do{d=k[(k[w>>2]|0)+(e<<4)+4>>2]|0;if(d){c=Og(d,0)|0;if(c){C=135;break g}c=k[v>>2]|0}e=e+1|0}while((e|0)<(c|0))}while(0);Wn(D,64)}while(0);do if((C|0)==135){if(!c)break;else if((c|0)!=5)break d;if(!(j[A>>1]&64)){c=5;break d}else{b=5;break b}}while(0);x=D+504|0;C=D+24|0;k[x+0>>2]=0;k[x+4>>2]=0;k[x+8>>2]=0;k[x+12>>2]=0;k[C>>2]=k[C>>2]&-16777219;break c}while(0);k[y>>2]=c;Pl(D,0);k[a+92>>2]=0}while(0);k[D+500>>2]=0;C=146}else C=141;do if((C|0)==141)if(!b)if(k[y>>2]|0){c=i[a+86>>0]|0;if(c<<24>>24==2){b=2;C=147;break}else if(c<<24>>24==3){b=1;C=147;break}else{Pl(D,516);Ql(D);i[D+63>>0]=1;k[a+92>>2]=0;C=146;break}}else{b=1;C=147}else C=147;while(0);if((C|0)==146)if(!b)b=0;else C=147;if((C|0)==147){c=em(a,b)|0;if(c){C=k[y>>2]|0;if((C|0)==0|(C&255|0)==19){k[y>>2]=c;C=a+44|0;rg(D,k[C>>2]|0);k[C>>2]=0}Pl(D,516);Ql(D);i[D+63>>0]=1;k[a+92>>2]=0}}if(j[A>>1]&4){if((b|0)==2){k[D+80>>2]=0;b=a+92|0}else{b=a+92|0;y=k[b>>2]|0;k[D+80>>2]=y;C=D+84|0;k[C>>2]=(k[C>>2]|0)+y}k[b>>2]=0}}if((k[z>>2]|0)>-1){b=D+148|0;k[b>>2]=(k[b>>2]|0)+-1;b=j[A>>1]|0;if(!(b&64)){b=D+156|0;k[b>>2]=(k[b>>2]|0)+-1;b=j[A>>1]|0}if(b&128){C=D+152|0;k[C>>2]=(k[C>>2]|0)+-1}}}k[B>>2]=1369188723;b=a+80|0;if(!(i[(k[a>>2]|0)+65>>0]|0)){b=(k[b>>2]|0)==5?5:0;break}else{k[b>>2]=7;b=0;break}}else b=0;while(0);r=E;return b|0}function Xl(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=a+8|0;d=m[e>>1]|0;do if(d&18){j[e>>1]=d|2;if(d&16384)Wg(a)|0;c=a+10|0;b=b&255;d=b&247;if((l[c>>0]|0|0)!=(d|0))bm(a,d)|0;if(((b&8|0)!=0?(k[a+16>>2]&1|0)!=0:0)?(_l(a)|0)!=0:0){c=0;break}if((j[e>>1]&514)==2){fm(a)|0;f=12}else f=12}else{gm(a,b,0)|0;d=b&247;c=a+10|0;f=12}while(0);if((f|0)==12)if((l[c>>0]|0|0)==(d|0))c=k[a+16>>2]|0;else c=0;return c|0}function Yl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0.0,g=0,h=0.0,j=0,k=0,m=0,n=0,o=0,q=0,r=0,s=0;p[b>>3]=0.0;g=d&255;if(d<<24>>24==1){d=a;e=c;o=1;s=0}else{e=3-g|0;a:do if((e|0)<(c|0))while(1){d=e+2|0;if(i[a+e>>0]|0){c=1;break a}if((d|0)<(c|0))e=d;else{c=0;e=d;break}}else c=0;while(0);d=a+(g&1)|0;e=g+-3+e|0;o=2;s=c}r=a+e|0;b:do if(d>>>0<r>>>0){while(1){e=i[d>>0]|0;if(!(i[10368+(e&255)>>0]&1))break;d=d+o|0;if(d>>>0>=r>>>0){d=0;break b}}if(e<<24>>24==45){d=d+o|0;q=-1}else if(e<<24>>24==43){d=d+o|0;q=1}else q=1;c:do if(d>>>0<r>>>0){e=0;do{if((i[d>>0]|0)!=48)break c;d=d+o|0;e=e+1|0}while(d>>>0<r>>>0)}else e=0;while(0);d:do if(d>>>0<r>>>0){a=0;g=0;while(1){c=i[d>>0]|0;if(!(((c&255)+-48|0)>>>0<10&((a|0)<214748364|(a|0)==214748364&g>>>0<3435973835))){j=a;break d}g=xw(g|0,a|0,10,0)|0;a=(c<<24>>24)+-48|0;g=ow(a|0,((a|0)<0)<<31>>31|0,g|0,L|0)|0;a=L;d=d+o|0;e=e+1|0;if(d>>>0>=r>>>0){j=a;break}}}else{g=0;j=0}while(0);e:do if(d>>>0<r>>>0){c=0;while(1){a=i[d>>0]|0;if(((a&255)+-48|0)>>>0>=10){k=c;break}d=d+o|0;e=e+1|0;a=c+1|0;if(d>>>0<r>>>0)c=a;else{m=j;k=a;a=0;j=1;c=1;break e}}f:do if(a<<24>>24==46){c=d+o|0;g:do if(c>>>0<r>>>0){m=c;while(1){a=i[m>>0]|0;if(!(((a&255)+-48|0)>>>0<10&((j|0)<214748364|(j|0)==214748364&g>>>0<3435973835))){c=m;m=j;break g}g=xw(g|0,j|0,10,0)|0;j=(a<<24>>24)+-48|0;g=ow(j|0,((j|0)<0)<<31>>31|0,g|0,L|0)|0;j=L;e=e+1|0;a=k+-1|0;c=d+(o<<1)|0;if(c>>>0<r>>>0){d=m;m=c;k=a}else{d=m;m=j;k=a;break}}}else m=j;while(0);if(c>>>0<r>>>0){j=o<<1;while(1){if(((l[c>>0]|0)+-48|0)>>>0>=10)break f;a=d+j|0;e=e+1|0;if(a>>>0<r>>>0){d=c;c=a}else{c=a;break}}}}else{c=d;m=j}while(0);if(c>>>0<r>>>0){n=i[c>>0]|0;h:do if(n<<24>>24==69|n<<24>>24==101){d=c+o|0;if(d>>>0>=r>>>0){a=0;j=0;c=1;break e}a=i[d>>0]|0;if(a<<24>>24==45){d=c+(o<<1)|0;n=-1}else if(a<<24>>24==43){d=c+(o<<1)|0;n=1}else n=1;if(d>>>0<r>>>0){c=0;j=0}else{a=0;j=0;c=n;break e}while(1){a=i[d>>0]|0;if(((a&255)+-48|0)>>>0>=10){a=c;c=n;break h}if((c|0)<1e4)a=(c*10|0)+-48+(a<<24>>24)|0;else a=1e4;d=d+o|0;if(d>>>0<r>>>0){c=a;j=1}else{j=1;c=n;break}}}else{d=c;a=0;j=1;c=1}while(0);if((e|0)!=0&(j|0)!=0&d>>>0<r>>>0)do{if(!(i[10368+(l[d>>0]|0)>>0]&1))break e;d=d+o|0}while(d>>>0<r>>>0)}else{d=c;a=0;j=1;c=1}}else{m=j;k=0;a=0;j=1;c=1}while(0);a=(ha(a,c)|0)+k|0;n=(a|0)<0;c=n?0-a|0:a;do if((g|0)==0&(m|0)==0)if((q|0)<0)f=(e|0)!=0?-0.0:0.0;else f=0.0;else{if((a>>31|1|0)>0)if(((m|0)<214748364|(m|0)==214748364&g>>>0<3435973836)&(c|0)>0){a=m;do{c=c+-1|0;g=xw(g|0,a|0,10,0)|0;a=L}while(((a|0)<214748364|(a|0)==214748364&g>>>0<3435973836)&(c|0)>0)}else a=m;else{k=ww(g|0,m|0,10,0)|0;if((k|0)==0&(L|0)==0&(c|0)>0){a=m;do{c=c+-1|0;g=vw(g|0,a|0,10,0)|0;a=L;m=ww(g|0,a|0,10,0)|0}while((m|0)==0&(L|0)==0&(c|0)>0)}else a=m}m=(q|0)<0;k=iw(0,0,g|0,a|0)|0;k=m?k:g;m=m?L:a;if(!c){f=+(k>>>0)+4294967296.0*+(m|0);break}if((c+-308|0)>>>0<34){if(!((c|0)%308|0))h=1.0;else{f=1.0;do{f=f*10.0;c=c+-1|0}while(((c|0)%308|0|0)!=0);h=f}f=+(k>>>0)+4294967296.0*+(m|0);if(n){f=f/h/1.e+308;break}else{f=f*h*1.e+308;break}}if((c|0)>341){f=+(k>>>0)+4294967296.0*+(m|0);if(n){f=f*0.0;break}else{f=f*B;break}}if(!((c|0)%22|0)){g=c;f=1.0}else{g=c;f=1.0;do{f=f*10.0;g=g+-1|0}while(((g|0)%22|0|0)!=0)}if((g|0)>0){do{f=f*1.0e22;g=g+-22|0}while((g|0)>0);h=f}else h=f;f=+(k>>>0)+4294967296.0*+(m|0);if(n){f=f/h;break}else{f=f*h;break}}while(0);p[b>>3]=f;d=d>>>0>=r>>>0&(e|0)>0&(j|0)!=0&(s|0)==0&1}else d=0;while(0);return d|0}function Zl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0;g=d&255;if(d<<24>>24==1){e=a;f=c;n=1;c=0}else{f=3-g|0;a:do if((f|0)<(c|0))while(1){d=f+2|0;if(i[a+f>>0]|0){c=1;break a}if((d|0)<(c|0))f=d;else{c=0;f=d;break}}else c=0;while(0);e=a+(g&1)|0;f=g+-3+f|0;n=2}j=a+f|0;b:do if(e>>>0<j>>>0){while(1){f=i[e>>0]|0;if(!(i[10368+(f&255)>>0]&1))break;e=e+n|0;if(e>>>0>=j>>>0){l=0;break b}}if(f<<24>>24==45){e=e+n|0;l=1;break}else if(f<<24>>24==43){e=e+n|0;l=0;break}else{l=0;break}}else l=0;while(0);c:do if(e>>>0<j>>>0){f=e;while(1){if((i[f>>0]|0)!=48){m=f;break c}f=f+n|0;if(f>>>0>=j>>>0){m=f;break}}}else m=e;while(0);do if(m>>>0<j>>>0){a=m;h=0;g=0;f=0;while(1){d=i[a>>0]|0;if((d+-48&255)>=10){a=0;j=g;break}g=xw(h|0,g|0,10,0)|0;h=d<<24>>24;g=ow(g|0,L|0,-48,-1)|0;h=ow(g|0,L|0,h|0,((h|0)<0)<<31>>31|0)|0;g=L;f=f+n|0;a=m+f|0;if(a>>>0>=j>>>0){a=1;j=g;break}}g=d<<24>>24;d=(l|0)!=0;if((j|0)>=0)if(d){d=j;p=22;break}else{d=j;p=23;break}else{h=b;k[h>>2]=d?0:-1;k[h+4>>2]=d?-2147483648:2147483647;h=d?0:2;break}}else if(!l){a=1;h=0;d=0;g=0;f=0;p=23}else{a=1;h=0;d=0;g=0;f=0;p=22}while(0);if((p|0)==22){l=iw(0,0,h|0,d|0)|0;h=b;k[h>>2]=l;k[h+4>>2]=L;h=0}else if((p|0)==23){l=b;k[l>>2]=h;k[l+4>>2]=d;h=2}if(((g|0)==0|a?!((f|0)==0&(e|0)==(m|0)):0)?(o=n*19|0,!((f|0)>(o|0)|(c|0)!=0)):0)if((f|0)>=(o|0)){f=0;do{e=m+(ha(f,n)|0)|0;e=i[e>>0]|0;c=i[11192+f>>0]|0;f=f+1|0;d=e<<24>>24==c<<24>>24}while(d&(f|0)<18);if(d)e=(i[m+(n*18|0)>>0]|0)+-56|0;else e=((e<<24>>24)-(c<<24>>24)|0)*10|0;if((e|0)>=0)return ((e|0)>0?1:h)|0;else e=0}else e=0;else e=1;return e|0}function _l(a){a=a|0;var b=0,c=0;c=a+8|0;b=j[c>>1]|0;if(b&16384){Wg(a)|0;b=j[c>>1]|0}do if(b&18){if((k[a+24>>2]|0)!=0?(k[a+16>>2]|0)==(k[a+20>>2]|0):0){b=0;break}b=a+12|0;if(!(jh(a,(k[b>>2]|0)+2|0,1)|0)){a=a+16|0;i[(k[a>>2]|0)+(k[b>>2]|0)>>0]=0;i[(k[a>>2]|0)+((k[b>>2]|0)+1)>>0]=0;j[c>>1]=m[c>>1]|0|512;b=0}else b=7}else b=0;while(0);return b|0}function $l(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=wo(a,b,c,d)|0;if(!c)rg(a,b);return c|0}function am(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=k[a>>2]|0;k[c+200>>2]=k[a+20>>2];k[c+196>>2]=k[a+56>>2];k[c+4>>2]=k[a+8>>2];k[c+32>>2]=k[a+48>>2];k[c+8>>2]=k[a+16>>2];k[c+28>>2]=k[a+52>>2];k[c+56>>2]=k[a+24>>2];k[c+36>>2]=k[a+40>>2];f=a+32|0;e=k[f+4>>2]|0;b=k[c>>2]|0;d=b+32|0;k[d>>2]=k[f>>2];k[d+4>>2]=e;k[c+92>>2]=k[a+68>>2];k[b+80>>2]=k[a+72>>2];return k[a+44>>2]|0}function bm(a,b){a=a|0;b=b|0;if((j[a+8>>1]&2)!=0?(l[a+10>>0]|0|0)!=(b|0):0)b=Gn(a,b&255)|0;else b=0;return b|0}function cm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a+8|0;if(j[d>>1]&9312)Ag(a);k[a+0>>2]=k[b+0>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];if(!(j[b+8>>1]&2048))j[d>>1]=(m[d>>1]|0)&58367|c;return}function dm(a,b){a=a|0;b=b|0;var c=0,d=0;if(!((j[a+8>>1]&9312)==0?(k[a+24>>2]|0)==0:0))Vg(a);a=a+0|0;c=b+0|0;d=a+40|0;do{k[a>>2]=k[c>>2];a=a+4|0;c=c+4|0}while((a|0)<(d|0));j[b+8>>1]=1;k[b+24>>2]=0;return}function em(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0;p=k[a>>2]|0;m=p+500|0;e=k[m>>2]|0;do if((e|0)!=0?(n=a+104|0,d=k[n>>2]|0,(d|0)!=0):0){o=d+-1|0;j=p+20|0;d=k[j>>2]|0;if((d|0)>0){h=p+16|0;i=(b|0)==2;f=d;g=0;d=0;do{e=k[(k[h>>2]|0)+(g<<4)+4>>2]|0;if(e){if(i?(l=zm(e,2,o)|0,(l|0)!=0):0)e=l;else e=zm(e,1,o)|0;f=k[j>>2]|0;d=(d|0)==0?e:d}g=g+1|0}while((g|0)<(f|0));k[m>>2]=(k[m>>2]|0)+-1;k[n>>2]=0;if(!d)d=13;else{c=d;d=16}}else{k[m>>2]=e+-1;k[n>>2]=0;d=13}do if((d|0)==13){if((b|0)==2?(c=xm(p,2,o)|0,(c|0)!=0):0)break;c=xm(p,1,o)|0;d=16}while(0);if((d|0)==16)if((b|0)!=2)break;m=a+152|0;l=k[m+4>>2]|0;j=p+504|0;k[j>>2]=k[m>>2];k[j+4>>2]=l;j=a+160|0;l=k[j+4>>2]|0;m=p+512|0;k[m>>2]=k[j>>2];k[m+4>>2]=l}else c=0;while(0);return c|0}function fm(a){a=a|0;var b=0,c=0;b=a+12|0;if(!(jh(a,(k[b>>2]|0)+2|0,1)|0)){c=a+16|0;i[(k[c>>2]|0)+(k[b>>2]|0)>>0]=0;i[(k[c>>2]|0)+((k[b>>2]|0)+1)>>0]=0;b=a+8|0;j[b>>1]=m[b>>1]|0|512;b=0}else b=7;return b|0}function gm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();g=l;h=a+8|0;e=j[h>>1]|0;if(!(kh(a,32)|0)){d=a+16|0;f=k[d>>2]|0;if(!(e&4)){p[t>>3]=+p[a>>3];k[g>>2]=k[t>>2];k[g+4>>2]=k[t+4>>2];fd(32,f,20272,g)|0}else{o=a;n=k[o+4>>2]|0;e=g;k[e>>2]=k[o>>2];k[e+4>>2]=n;fd(32,f,19920,g)|0}e=k[d>>2]|0;if(!e)d=0;else{d=e;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-e&1073741823}k[a+12>>2]=d;i[a+10>>0]=1;d=m[h>>1]|514;j[h>>1]=c<<24>>24==0?d:d&65523;bm(a,b&255)|0;d=0}else d=7;r=l;return d|0}function hm(a){a=a|0;var b=0,c=0;b=m[a+8>>1]|0;c=b&12;if(!c)if(!(b&18))b=0;else b=sp(a)|0;else b=c&65535;return b|0}function im(a){a=a|0;var b=0.0,c=0,d=0,e=0,f=0;b=+p[a>>3];if(!(b<=-9223372036854775808.0)&!(b>=9223372036854775808.0)?(c=~~b>>>0,d=+W(b)>=1.0?(b>0.0?~~+ia(+V(b/4294967296.0),4294967295.0)>>>0:~~+ga((b-+(~~b>>>0))/4294967296.0)>>>0):0,e=ow(c|0,d|0,1,-2147483648)|0,f=L,!(b!=+(c>>>0)+4294967296.0*+(d|0)|(f>>>0<0|(f|0)==0&e>>>0<2))):0){e=a;k[e>>2]=c;k[e+4>>2]=d;c=a+8|0;j[c>>1]=(m[c>>1]|0)&48640|4}return}function jm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=a+204|0;d=k[e>>2]|0;a:do if(d){g=(b|0)<0;do{while(1){if(!g){if((k[d>>2]|0)!=(b|0))break;f=k[d+4>>2]|0;if((f|0)<=31?(1<<f&c|0)!=0:0)break}f=k[d+12>>2]|0;if(f)hc[f&31](k[d+8>>2]|0);k[e>>2]=k[d+16>>2];rgif(d)break a;e=k[v>>2]|0;f=e+68|0;d=Lg(k[f>>2]|0)|0;k[u>>2]=d;if(!d)break;if(!e)break a;Gg(k[f>>2]|0);break a}}else{k[p>>2]=60876;k[p+4>>2]=10788;gd(11,13600,p);k[u>>2]=11;d=11;e=k[v>>2]|0}if(!e)break a;Gg(k[e+68>>2]|0);break a}while(0);Ep(t,g,1,0,u);d=k[u>>2]|0;if(d){if(!e)break;Gg(k[e+68>>2]|0);break}d=Ig(a,4,g)|0;k[u>>2]=d;if(d){if(e)Gg(k[e+68>>2]|0)}else x=39}}while(0);if((x|0)==39){ul(e,(c&1|0)==0?10:13);d=k[(k[v>>2]|0)+68>>2]|0;if(d)Gg(d);k[b>>2]=k[w>>2];d=0}r=y;return d|0}function Gm(a,b){a=a|0;b=b|0;var c=0,d=0;do if(b){a=k[a>>2]|0;c=b+56|0;d=k[c>>2]|0;if(d){dn(a,d);$c(k[d+40>>2]|0);rgrgrg(a,k[d>>2]|0);k[d>>2]=0;d=b+(h<<6)+80|0;e=k[d>>2]|0;if(e)do{f=e;e=k[e+4>>2]|0;if(f)$c(f)}while((e|0)!=0);k[d>>2]=0;e=b+(h<<6)+96|0;d=k[e>>2]|0;if(d){f=k[d>>2]|0;if(f){qc[k[f+4>>2]&127](d)|0;k[d>>2]=0}$c(d);k[e>>2]=0;d=b+(h<<6)+104|0;k[d>>2]=0;k[d+4>>2]=0}f=b+(h<<6)+112|0;e=k[f>>2]|0;if(e){d=k[e>>2]|0;if(d){qc[k[d+4>>2]&127](e)|0;k[e>>2]=0}$c(e);k[f>>2]=0;d=b+(h<<6)+120|0;k[d>>2]=0;k[d+4>>2]=0}h=h+1|0}while((h|0)<(l[g>>0]|0))}e=b+36|0;if((k[b+40>>2]|0)==0?(c=k[e>>2]|0,(c|0)!=0):0)do{d=c;c=k[c+4>>2]|0;if(d)$c(d)}while((c|0)!=0);k[e>>2]=0;k[b+44>>2]=0;i[b+56>>0]=0;k[b+48>>2]=0;k[b+8>>2]=0;c=b+32|0;rg(a,k[c>>2]|0);k[c>>2]=0;return}function en(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();e=p+4|0;l=p;n=k[a>>2]|0;g=k[a+8>>2]|0;h=k[n+16>>2]|0;f=(k[h+(g<<4)+12>>2]|0)+78|0;j[f>>1]=m[f>>1]&65531;f=n+65|0;do if(!(i[f>>0]|0))if(c){o=c+4|0;b=k[o>>2]|0;if(!b){fq(a,k[c>>2]|0,0);d=0;break}d=c+8|0;q=k[d>>2]|0;if((q|0)!=0?(i[q>>0]|0)!=0:0){h=n+144|0;i[h>>0]=g;k[e>>2]=0;In(b,e)|0;b=k[d>>2]|0;k[n+140>>2]=k[e>>2];o=n+146|0;i[o>>0]=0;nh(n,b,-1,0,0,l,0)|0;b=k[n+52>>2]|0;i[h>>0]=0;do if((b|0)!=0?(i[o>>0]|0)==0:0){k[a+12>>2]=b;if((b|0)==7){i[f>>0]=1;break}else if((b|0)==9)break;if((b&255|0)!=6){o=k[c>>2]|0;fq(a,o,Xe(n)|0)}}while(0);rd(k[l>>2]|0)|0;d=0;break}b=k[c>>2]|0;if(!b){fq(a,0,0);d=0;break}b=gq(n,b,k[h+(g<<4)>>2]|0)|0;if((b|0)!=0?(In(k[o>>2]|0,b+40|0)|0)==0:0){fq(a,k[c>>2]|0,13528);d=0}else d=0}else d=0;else{fq(a,k[c>>2]|0,0);d=1}while(0);r=p;return d|0}function fn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();g=j;h=j+8|0;f=a+16|0;d=k[f>>2]|0;e=k[(k[d+(b<<4)+12>>2]|0)+32>>2]|0;if(e){d=e;do{hq(k[d+8>>2]|0);d=k[d>>2]|0}while((d|0)!=0);d=k[f>>2]|0}k[h>>2]=a;d=k[d+(b<<4)>>2]|0;k[h+4>>2]=d;do if(!(di(a,13384,d)|0))c=1;else{k[g>>2]=d;d=zh(a,13400,g)|0;if((d|0)!=0?(c=Ve(a,d,23,h,0)|0,rg(a,d),(c|0)!=7):0)break;i[a+65>>0]=1;c=7}while(0);r=j;return c|0}function gn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=k[a+12>>2]|0;if(!g){e=a+4|0;d=a+8|0;f=0}else{e=i[b>>0]|0;if(!(e<<24>>24))e=0;else{d=b;f=e;e=0;do{d=d+1|0;e=e<<3^e^(l[9328+(f&255)>>0]|0);f=i[d>>0]|0}while(f<<24>>24!=0)}f=(e>>>0)%((k[a>>2]|0)>>>0)|0;e=g+(f<<3)|0;d=g+(f<<3)+4|0}e=k[e>>2]|0;d=k[d>>2]|0;k[c>>2]=f;a:do if(!e)d=0;else while(1){e=e+-1|0;if(!(id(k[d+12>>2]|0,b)|0))break a;if(!e){d=0;break}else d=k[d>>2]|0}while(0);return d|0}function hn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0;u=r;r=r+16|0;if((r|0)>=(s|0))ka();t=u;q=u+12|0;a:do if((d|0)>0){o=a+16|0;p=a+4|0;n=(b|0)==0;e=c;b=d;while(1){h=b+-1|0;if(!(k[o>>2]|0))break a;if((e|0)<1){e=b;b=5;break}if(jq(a,e)|0)break a;if(Eg(k[p>>2]|0,e,q,0)|0){b=8;break}j=k[q>>2]|0;m=k[j+4>>2]|0;do if(n)if((h|0)>0?(i[(k[a>>2]|0)+17>>0]|0)!=0:0){jn(a,l[m+1>>0]<<16|l[m>>0]<<24|l[m+2>>0]<<8|l[m+3>>0],4,e);b=h}else b=h;else{g=l[m+5>>0]<<16|l[m+4>>0]<<24|l[m+6>>0]<<8|l[m+7>>0];f=k[a>>2]|0;if(i[f+17>>0]|0){jn(a,e,2,0);f=k[a>>2]|0}if((g|0)>(((k[f+36>>2]|0)/4|0)+-2|0)){k[t>>2]=e;ln(a,44640,t);b=b+-2|0;break}b:do if((g|0)>0){b=0;while(1){e=b<<2;e=l[m+(e+9)>>0]<<16|l[m+(e+8)>>0]<<24|l[m+(e+10)>>0]<<8|l[m+(e+11)>>0];if(i[f+17>>0]|0)jn(a,e,2,0);jq(a,e)|0;b=b+1|0;if((b|0)==(g|0))break b;f=k[a>>2]|0}}while(0);b=h-g|0}while(0);e=l[m+1>>0]<<16|l[m>>0]<<24|l[m+2>>0]<<8|l[m+3>>0];if(j)Gg(j);if((b|0)<=0)break a}if((b|0)==5){k[t>>2]=e;k[t+4>>2]=d;k[t+8>>2]=c;ln(a,44552,t);break}else if((b|0)==8){k[t>>2]=e;ln(a,44616,t);break}}while(0);r=u;return}function jn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0;l=r;r=r+32|0;if((r|0)>=(s|0))ka();h=l;f=l+24|0;g=l+20|0;e=mp(k[a>>2]|0,b,f,g)|0;if((e|0)==7|(e|0)==3082){k[a+24>>2]=1;j=3}else if(!e){f=i[f>>0]|0;e=k[g>>2]|0;if(!((e|0)==(d|0)?f<<24>>24==c<<24>>24:0)){k[h>>2]=b;k[h+4>>2]=c&255;k[h+8>>2]=d;k[h+12>>2]=f&255;k[h+16>>2]=e;ln(a,44496,h)}}else j=3;if((j|0)==3){k[h>>2]=b;ln(a,44464,h)}r=l;return}function kn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,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;Z=r;r=r+64|0;if((r|0)>=(s|0))ka();S=Z+40|0;h=Z+56|0;N=Z+32|0;O=Z+24|0;K=Z;X=N;k[X>>2]=0;k[X+4>>2]=0;X=O;k[X>>2]=0;k[X+4>>2]=0;X=a+28|0;Y=k[X>>2]|0;T=a+32|0;U=k[T>>2]|0;V=a+36|0;W=k[V>>2]|0;P=k[a>>2]|0;J=P+36|0;Q=k[J>>2]|0;if((b|0)!=0?(jq(a,b)|0)==0:0){k[X>>2]=43768;k[T>>2]=b;n=il(P,b,h,0)|0;do if(!n){R=k[h>>2]|0;i[R>>0]=0;n=eq(R)|0;if(n){k[S>>2]=n;ln(a,43824,S);if(!R){e=-1;break}Gg(k[R+68>>2]|0);e=-1;break}w=a+16|0;L=R+18|0;n=j[L>>1]|0;a:do if(!(n<<16>>16)){o=R+5|0;n=0;e=0}else{x=R+56|0;y=R+20|0;z=R+64|0;A=K+12|0;B=R+2|0;C=K+16|0;D=Q+-5|0;E=Q+-4|0;F=P+17|0;G=R+5|0;t=0;u=0;while(1){if(!(k[w>>2]|0)){o=G;e=t;break a}k[X>>2]=43864;k[T>>2]=b;k[V>>2]=u;h=k[x>>2]|0;n=u<<1;o=k[z>>2]|0;n=(l[o+n>>0]<<8|l[o+(n|1)>>0])&m[y>>1];o=h+n|0;wp(R,o,K);p=k[A>>2]|0;if(i[B>>0]|0){e=K;v=k[e>>2]|0;e=k[e+4>>2]|0;if(u){g=O;f=k[g>>2]|0;g=k[g+4>>2]|0;if(!((e|0)>(g|0)|(e|0)==(g|0)&v>>>0>f>>>0)){q=S;k[q>>2]=v;k[q+4>>2]=e;q=S+8|0;k[q>>2]=f;k[q+4>>2]=g;ln(a,43896,S)}}else{f=O;k[f>>2]=v;k[f+4>>2]=e;f=N;k[f>>2]=v;k[f+4>>2]=e}f=O;k[f>>2]=v;k[f+4>>2]=e}v=k[C>>2]|0;e=v&65535;if(p>>>0>e>>>0?(H=(v>>>16)+n|0,I=h+H|0,I>>>0<=((k[x>>2]|0)+(k[J>>2]|0)|0)>>>0):0){v=l[h+(H+1)>>0]<<16|l[I>>0]<<24|l[h+(H+2)>>0]<<8|l[h+(H+3)>>0];if(i[F>>0]|0)jn(a,v,3,b);hn(a,0,v,((D+p-e|0)>>>0)/(E>>>0)|0)}if(!(i[G>>0]|0)){q=l[h+(n+1)>>0]<<16|l[o>>0]<<24|l[h+(n+2)>>0]<<8|l[h+(n+3)>>0];if(i[F>>0]|0)jn(a,q,5,b);e=kn(a,q,N,(u|0)==0?0:O)|0;if(!((u|0)<1|(e|0)==(t|0)))ln(a,43944,S)}else e=t;u=u+1|0;n=j[L>>1]|0;if((u|0)>=(n&65535|0)){o=G;break}else t=e}}while(0);if(!(i[o>>0]|0)){h=l[R+6>>0]|0;G=k[R+56>>2]|0;h=l[G+(h+9)>>0]<<16|l[G+(h+8)>>0]<<24|l[G+(h+10)>>0]<<8|l[G+(h+11)>>0];k[X>>2]=43976;k[T>>2]=b;if(i[P+17>>0]|0){jn(a,h,5,b);n=j[L>>1]|0}kn(a,h,0,n<<16>>16!=0?O:0)|0;G=i[o>>0]|0;k[X>>2]=43768;k[T>>2]=b;if(G<<24>>24)M=34}else{k[X>>2]=43768;k[T>>2]=b;M=34}do if((M|0)==34?(i[R+2>>0]|0)!=0:0){h=(d|0)!=0;if(!c){if(!h)break;h=N;n=k[h>>2]|0;h=k[h+4>>2]|0;f=d;g=k[f>>2]|0;f=k[f+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&n>>>0>g>>>0)break;G=S;k[G>>2]=n;k[G+4>>2]=h;G=S+8|0;k[G>>2]=g;k[G+4>>2]=f;ln(a,44200,S);break}if(!h){n=O;h=k[n>>2]|0;n=k[n+4>>2]|0;f=c;g=k[f>>2]|0;f=k[f+4>>2]|0;if(!((n|0)>(f|0)|(n|0)==(f|0)&h>>>0>g>>>0))break;G=S;k[G>>2]=h;k[G+4>>2]=n;G=S+8|0;k[G>>2]=g;k[G+4>>2]=f;ln(a,44008,S);break}h=N;n=k[h>>2]|0;h=k[h+4>>2]|0;f=c;g=k[f>>2]|0;f=k[f+4>>2]|0;if(!((h|0)>(f|0)|(h|0)==(f|0)&n>>>0>g>>>0)){G=S;k[G>>2]=n;k[G+4>>2]=h;G=S+8|0;k[G>>2]=g;k[G+4>>2]=f;ln(a,44072,S)}g=O;f=k[g>>2]|0;g=k[g+4>>2]|0;h=d;n=k[h>>2]|0;h=k[h+4>>2]|0;if((g|0)>(h|0)|(g|0)==(h|0)&f>>>0>n>>>0){G=S;k[G>>2]=f;k[G+4>>2]=g;g=S+8|0;k[g>>2]=n;k[g+4>>2]=h;ln(a,44136,S);g=O;f=k[g>>2]|0;g=k[g+4>>2]|0}G=c;k[G>>2]=f;k[G+4>>2]=g}while(0);t=k[R+56>>2]|0;u=l[R+6>>0]|0;v=Lo(k[P+32>>2]|0)|0;k[X>>2]=0;if(v){q=((l[t+(u+5)>>0]<<8|l[t+(u+6)>>0])+65535&65535)+1|0;kw(v+q|0,0,Q-q|0)|0;kw(v|0,1,q|0)|0;q=l[t+(u+3)>>0]<<8|l[t+(u+4)>>0];g=u+12-(l[o>>0]<<2)|0;if(q){f=Q+-4|0;p=0;do{o=g+(p<<1)|0;o=l[t+o>>0]<<8|l[t+(o+1)>>0];if((o|0)>(f|0))h=65536;else h=(Qp(R,t+o|0)|0)&65535;n=h+o|0;if((n|0)<=(Q|0)){if(h)do{n=n+-1|0;G=v+n|0;i[G>>0]=(i[G>>0]|0)+1<<24>>24}while((n|0)>(o|0))}else{k[X>>2]=0;k[S>>2]=p;k[S+4>>2]=b;ln(a,44264,S)}p=p+1|0}while((p|0)<(q|0))}f=l[t+(u+1)>>0]<<8|l[t+(u+2)>>0];if(f)do{g=l[t+(f+2)>>0]<<8|l[t+(f+3)>>0];if(g){g=g+f|0;do{g=g+-1|0;G=v+g|0;i[G>>0]=(i[G>>0]|0)+1<<24>>24}while((g|0)>(f|0))}f=l[t+f>>0]<<8|l[t+(f+1)>>0]}while((f|0)!=0);b:do if((Q|0)>0){g=0;f=0;while(1){h=i[v+f>>0]|0;if(h<<24>>24){if(h<<24>>24>1)break}else g=g+1|0;f=f+1|0;if((f|0)>=(Q|0))break b}k[S>>2]=f;k[S+4>>2]=b;ln(a,44312,S)}else g=0;while(0);f=l[t+(u+7)>>0]|0;if((g|0)!=(f|0)){k[S>>2]=g;k[S+4>>2]=f;k[S+8>>2]=b;ln(a,44352,S)}}else k[a+24>>2]=1;el(v);if(R)Gg(k[R+68>>2]|0)}else{k[S>>2]=n;ln(a,43784,S);e=-1}while(0);k[X>>2]=Y;k[T>>2]=U;k[V>>2]=W;e=e+1|0}else e=0;r=Z;return e|0}function ln(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+224|0;if((r|0)>=(s|0))ka();f=j;g=j+8|0;h=j+24|0;d=a+16|0;e=k[d>>2]|0;if(e){k[d>>2]=e+-1;d=a+20|0;k[d>>2]=(k[d>>2]|0)+1;k[g>>2]=c;c=a+40|0;if(k[a+52>>2]|0)Xk(c,43760,1);d=k[a+28>>2]|0;if(d){e=k[a+36>>2]|0;k[f>>2]=k[a+32>>2];k[f+4>>2]=e;fd(200,h,d,f)|0;d=h;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;Xk(c,h,d-h&1073741823)}xg(c,1,b,g);if((i[a+65>>0]|0)==1)k[a+24>>2]=1}r=j;return}function mn(a){a=a|0;var b=0,c=0;b=a+8|0;c=k[b>>2]|0;do if((c|0)!=(k[a+4>>2]|0))if((i[a+24>>0]|0)==1){rgrg(a,y);f=7;break}n=v+0|0;m=n+28|0;do{i[n>>0]=0;n=n+1|0}while((n|0)<(m|0));k[v>>2]=a;k[v+4>>2]=c;o=k[b+68>>2]|0;a:do if(o){n=k[a+20>>2]|0;if((n|0)>0){h=k[a+16>>2]|0;g=0;while(1){m=g+1|0;if((k[h+(g<<4)+12>>2]|0)==(o|0)){m=g;break a}if((m|0)<(n|0))g=m;else break}}else m=0}else m=-1e6;while(0);k[(k[f>>2]|0)+4>>2]=k[(k[a+16>>2]|0)+(m<<4)>>2];n=p+4|0;k[n>>2]=b;k[p>>2]=v;o=a+324|0;h=k[o>>2]|0;k[o>>2]=p;m=v+8|0;f=pc[d&7](a,k[c+8>>2]|0,t,q,m,u)|0;k[o>>2]=h;do if((f|0)==7){i[a+65>>0]=1;x=11}else if(!f){h=k[m>>2]|0;if(h){k[h+0>>2]=0;k[h+4>>2]=0;k[h+8>>2]=0;k[k[m>>2]>>2]=k[c>>2];k[v+12>>2]=1;if(k[n>>2]|0){k[w>>2]=k[b>>2];f=zh(a,28376,w)|0;k[e>>2]=f;Fn(v);f=1;break}u=b+60|0;k[v+24>>2]=k[u>>2];k[u>>2]=v;u=b+38|0;f=j[u>>1]|0;if(f<<16>>16>0){t=b+4|0;g=k[t>>2]|0;d=0;while(1){p=k[g+(d*24|0)+12>>2]|0;if(p){h=p;while(1)if(!(i[h>>0]|0))break;else h=h+1|0;m=h-p|0;o=m&1073741823;if((Kc(28424,p,6)|0)==0?(q=i[p+6>>0]|0,q<<24>>24==32|q<<24>>24==0):0)h=0;else x=24;b:do if((x|0)==24){x=0;if(!o)h=0;else{h=0;while(1){if((Kc(28432,p+h|0,7)|0)==0?(q=i[p+(h+7)>>0]|0,q<<24>>24==32|q<<24>>24==0):0)break;h=h+1|0;if((h|0)>=(o|0))break b}h=h+1|0}}while(0);if((h|0)<(o|0)){n=(i[p+(h+6)>>0]|0)!=0|6;g=h+n|0;if((g|0)<=(o|0)){m=(m&1073741823)+1-n|0;f=g;g=h;while(1){i[p+g>>0]=i[p+f>>0]|0;g=g+1|0;if((g|0)==(m|0))break;else f=g+n|0}}if((i[p+h>>0]|0)==0&(h|0)>0)i[p+(h+-1)>>0]=0;g=k[t>>2]|0;f=g+(d*24|0)+23|0;i[f>>0]=l[f>>0]|2;f=j[u>>1]|0}}d=d+1|0;if((d|0)>=(f<<16>>16|0)){f=0;break}}}else f=0}else f=0}else x=11;while(0);if((x|0)==11){g=k[u>>2]|0;if(!g){k[w>>2]=y;d=zh(a,28344,w)|0;k[e>>2]=d}else{k[w>>2]=g;d=zh(a,10344,w)|0;k[e>>2]=d;$c(k[u>>2]|0)}rg(a,v)}rg(a,y)}while(0);r=z;return f|0}function Fn(a){a=a|0;var b=0,c=0,d=0;b=k[a>>2]|0;d=a+12|0;c=(k[d>>2]|0)+-1|0;k[d>>2]=c;if(!c){c=k[a+8>>2]|0;if(c)qc[k[(k[c>>2]|0)+16>>2]&127](c)|0;rgrg(a,m);h=D+480|0;k[h>>2]=b+((k[h>>2]|0)-m);break}k[D+480>>2]=b+c;break}}else B=21;while(0);if((B|0)==21)Qh(D,b,A)|0;q=a+65|0;e=D+12|0;if(!(i[q>>0]|0)){n=D+12|0;if((k[e>>2]|0)==101)k[n>>2]=0}else{k[e>>2]=7;n=D+12|0}c:do if((i[D+17>>0]|0)!=0?(t=k[D>>2]|0,u=t+20|0,(k[u>>2]|0)>0):0){m=t+16|0;p=0;while(1){e=k[m>>2]|0;h=k[e+(p<<4)+4>>2]|0;if(h){if(!(i[h+8>>0]|0)){e=Dg(h,0)|0;if((e|0)==7|(e|0)==3082)break;else if(e)break c;e=k[m>>2]|0;o=1}else o=0;c=k[h+4>>2]|0;k[c+4>>2]=k[h>>2];c=k[(k[c+12>>2]|0)+56>>2]|0;if((l[c+41>>0]<<16|l[c+40>>0]<<24|l[c+42>>0]<<8|l[c+43>>0]|0)!=(k[k[e+(p<<4)+12>>2]>>2]|0)){Am(t,p);k[n>>2]=17}if(o)zn(h)|0}p=p+1|0;if((p|0)>=(k[u>>2]|0))break c}i[t+65>>0]=1}while(0);if(i[q>>0]|0)k[n>>2]=7;if(g)k[g>>2]=k[D+480>>2];h=k[n>>2]|0;o=(h|0)==0;do if(o?(w=D+8|0,v=k[w>>2]|0,(v|0)!=0):0){n=i[D+450>>0]|0;if(n<<24>>24==2){nq(v,4);m=8;e=12}else if(!(n<<24>>24))break;else{nq(v,8);m=0;e=8}n=m;do{oq(k[w>>2]|0,n-m|0,0,k[41040+(n<<2)>>2]|0,0);n=n+1|0}while((n|0)<(e|0))}while(0);m=D+8|0;if((i[a+145>>0]|0)==0?(z=k[m>>2]|0,x=(k[D+480>>2]|0)-b|0,(z|0)!=0):0){if((b|0)!=0?(w=k[z>>2]|0,y=ow(x|0,((x|0)<0)<<31>>31|0,1,0)|0,y=rh(w,y,L)|0,(y|0)!=0):0){pw(y|0,b|0,x|0)|0;i[y+x>>0]=0;n=y}else n=0;k[z+168>>2]=n;z=z+88|0;j[z>>1]=j[z>>1]&-257|(d&65535)<<8&256}n=k[m>>2]|0;do if(!n)B=60;else{if(o?(i[q>>0]|0)==0:0){B=60;break}Sg(n)|0}while(0);if((B|0)==60)k[f>>2]=n;m=k[A>>2]|0;do if(!m){k[a+52>>2]=h;m=k[a+236>>2]|0;if(m){n=m+8|0;if(!(j[n>>1]&9312)){j[n>>1]=1;break}else{Ag(m);break}}}else{k[C>>2]=m;zg(a,h,10344,C);rg(a,m)}while(0);m=D+528|0;n=k[m>>2]|0;if(!n)n=D;else{do{k[m>>2]=k[n+4>>2];rg(a,n);n=k[m>>2]|0}while((n|0)!=0);n=D}}else{n=0;h=7}while(0);Hh(n);rg(a,D);C=Tg(a,h)|0;r=E;return C|0}function Ln(a){a=a|0;var b=0,c=0;c=k[a>>2]|0;if((i[c+145>>0]|0)==0?(b=ci(c,a+4|0)|0,(b|0)!=0):0){k[a+12>>2]=b;c=a+64|0;k[c>>2]=(k[c>>2]|0)+1}else b=0;return b|0}function Mn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=k[a+24>>2]|0;f=d+84|0;b=k[f>>2]|0;if(!b){b=1020;c=0}else{b=b*40|0;c=0}e=a+4|0;a=wo(k[d>>2]|0,k[e>>2]|0,b,c)|0;c=(a|0)!=0;if(c){b=k[d>>2]|0;do if(!b)b=qc[k[8744+48>>2]&127](a)|0;else{if((k[b+276>>2]|0)>>>0<=a>>>0?(k[b+280>>2]|0)>>>0>a>>>0:0){b=m[b+248>>1]|0;break}b=qc[k[8744+48>>2]&127](a)|0}while(0);k[f>>2]=(b>>>0)/20|0;k[e>>2]=a}return (c?0:7)|0}function Nn(a,b,c){a=a|0;b=b|0;c=c|0;a:do if(c)switch(b|0){case -11:{if(k[a+520>>2]|0)break a;$c(c);break a}case -5:{if(!(j[c+2>>1]&16))break a;rg(a,c);break a}case -10:{if(k[a+520>>2]|0)break a;Fn(c);break a}case -15:case -1:case -13:case -12:{rg(a,c);break a}case -8:{if(!(k[a+520>>2]|0)){Rh(c);break a}if(k[c+24>>2]|0)rg(a,k[c+20>>2]|0);rg(a,c);break a}case -6:{if(k[a+520>>2]|0)break a;a=(k[c>>2]|0)+-1|0;k[c>>2]=a;if(a)break a;$c(c);break a}default:break a}while(0);return}function On(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0;c=k[b>>2]|0;p=k[a+24>>2]|0;q=p+112|0;g=k[q>>2]|0;n=a+88|0;j[n>>1]=j[n>>1]&-193|64;d=k[a+32>>2]|0;a:do if((d|0)>0){f=k[a+4>>2]|0;while(1){d=d+-1|0;e=l[f>>0]|0;switch(e|0){case 4:{if(!(k[f+8>>2]|0))o=7;else{j[n>>1]=j[n>>1]&-65;o=7}break}case 14:{r=k[f+-16>>2]|0;c=(r|0)>(c|0)?r:c;break}case 2:case 3:{o=7;break}case 5:case 7:case 9:{k[f+16>>2]=76;i[f+1>>0]=-19;break}case 12:case 13:case 11:{j[n>>1]=j[n>>1]&-193|128;break}case 6:case 8:{k[f+16>>2]=77;i[f+1>>0]=-19;break}case 15:{r=k[f+8>>2]|0;c=(r|0)>(c|0)?r:c;break}case 10:case 1:{r=l[f+3>>0]|0;c=(r|0)>(c|0)?r:c;break}default:{}}if((o|0)==7){o=0;j[n>>1]=j[n>>1]|128}e=i[34168+e>>0]|0;i[f+2>>0]=e;if((e&1)!=0?(h=f+8|0,m=k[h>>2]|0,(m|0)<0):0)k[h>>2]=k[g+(~m<<2)>>2];if((d|0)<=0)break a;else f=f+20|0}}while(0);rg(k[a>>2]|0,k[q>>2]|0);k[q>>2]=0;k[p+108>>2]=0;k[b>>2]=c;return}function Pn(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;c=a+73|0;if((i[c>>0]|0)!=4){i[c>>0]=0;d=a+56|0;b=a+48|0;b=Lp(a,k[d>>2]|0,k[b>>2]|0,k[b+4>>2]|0,0,e)|0;if(!b){$c(k[d>>2]|0);k[d>>2]=0;d=a+68|0;b=k[d>>2]|k[e>>2];k[d>>2]=b;if((b|0)!=0?(i[c>>0]|0)==1:0){i[c>>0]=2;b=0}else b=0}}else b=k[a+68>>2]|0;r=f;return b|0}function Qn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=k[a+8>>2]|0;a:do if(!a)a=0;else{d=(b|0)==0;while(1){if((a|0)!=(c|0)){if(d)break;if((k[a+60>>2]|0)==(b|0))break}a=k[a+8>>2]|0;if(!a){a=0;break a}}a=Kl(a,b,c)|0}while(0);return a|0}function Rn(a){a=a|0;var b=0,c=0,d=0,e=0;c=k[a>>2]|0;d=c+1|0;k[a>>2]=d;e=i[c>>0]|0;b=e&255;if((e&255)<=191)return b|0;b=l[15360+(b+-192)>>0]|0;if((i[d>>0]&-64)<<24>>24==-128)while(1){c=c+2|0;k[a>>2]=c;b=(l[d>>0]|0)&63|b<<6;if((i[c>>0]&-64)<<24>>24==-128){e=d;d=c;c=e}else break}return (b>>>0<128|(b&-2048|0)==55296|(b&-2|0)==65534?65533:b)|0}function Sn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if((b|0)>-1)f=a+b|0;else f=-1;b=i[a>>0]|0;if(b<<24>>24!=0&f>>>0>a>>>0){c=b;b=0;do{e=a+1|0;if((c&255)>191){d=a;a=e;while(1){c=i[a>>0]|0;if((c&-64)<<24>>24==-128){c=a;a=d+2|0;d=c}else break}}else{c=i[e>>0]|0;a=e}b=b+1|0}while(c<<24>>24!=0&a>>>0<f>>>0)}else b=0;return b|0}function Tn(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0;x=r;r=r+48|0;if((r|0)>=(s|0))ka();t=x+32|0;u=x+16|0;v=x;e=k[a>>2]|0;if((e|0)<0){k[a>>2]=0;k[a+4>>2]=-1;j[a+12>>1]=0;i[a+14>>0]=0;e=0}n=c;l=k[n+4>>2]|0;o=v;k[o>>2]=k[n>>2];k[o+4>>2]=l;o=a+8|0;k[o>>2]=d;l=b&255;n=(b|0)==254;do{h=j[a+(e<<4)+12>>1]|0;d=h&65535;c=37184+(d<<1)|0;a:do if((h&65535)>429)w=6;else{h=l;while(1){g=j[c>>1]|0;f=g<<16>>16;if(g<<16>>16==-86){w=6;break a}g=h&255;e=f+g|0;if(e>>>0<=1496?(i[39336+e>>0]|0)==h<<24>>24:0){w=16;break}if(!(h<<24>>24))break;if((h&255)>=70){p=f;w=12;break}h=i[40840+g>>0]|0;if(!(h<<24>>24)){p=f;w=12;break}}if((w|0)==16){w=0;e=m[22184+(e<<1)>>1]|0;break}if(((w|0)==12?(w=0,q=p+70|0,(q|0)>-1):0)?(i[39336+q>>0]|0)==70:0){e=m[22184+(q<<1)>>1]|0;break}e=m[38048+(d<<1)>>1]|0}while(0);if((w|0)==6){w=0;e=m[38048+(d<<1)>>1]|0}if(e>>>0<642){w=18;break}if(e>>>0>=969){w=20;break}rq(a,e+-642|0);if(n)break;e=k[a>>2]|0}while((e|0)>-1);if((w|0)==18){pq(a,e,b,v);p=a+4|0;k[p>>2]=(k[p>>2]|0)+-1}else if((w|0)==20){k[u+0>>2]=k[v+0>>2];k[u+4>>2]=k[v+4>>2];k[u+8>>2]=k[v+8>>2];p=k[o>>2]|0;k[t>>2]=u;yh(p,20432,t);k[o>>2]=p;qq(a,l,v)}r=x;return}function Un(a){a=a|0;var b=0;b=k[a>>2]|0;if((b|0)>=0){qq(a,i[a+(b<<4)+14>>0]|0,a+(b<<4)+16|0);k[a>>2]=(k[a>>2]|0)+-1}return}function Vn(a,b){a=a|0;b=b|0;var c=0;if(b){if((k[b>>2]|0)>0){c=0;do{Sk(a,k[b+(c<<4)+12>>2]|0);Rk(a,k[b+(c<<4)+16>>2]|0,1);rg(a,k[b+(c<<4)+8>>2]|0);c=c+1|0}while((c|0)<(k[b>>2]|0))}rg(a,b)}return}function Wn(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=a+328|0;c=k[g>>2]|0;if(c){h=a+304|0;if((k[h>>2]|0)>0){e=0;do{d=k[c+(e<<2)>>2]|0;c=k[d+8>>2]|0;if((c|0)!=0?(f=k[(k[c>>2]|0)+b>>2]|0,(f|0)!=0):0)qc[f&127](c)|0;k[d+20>>2]=0;Fn(d);e=e+1|0;c=k[g>>2]|0}while((e|0)<(k[h>>2]|0))}rg(a,c);k[h>>2]=0;k[g>>2]=0}return}function Xn(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;do if((b|0)==-2)if(!(k[a+12>>2]|0))b=(k[a+16>>2]|0)==0?0:6;else b=6;else{e=j[a>>1]|0;d=e<<16>>16;if(!((d|0)!=(b|0)&e<<16>>16>-1)){e=(d|0)==(b|0)?4:1;d=c&255;b=m[a+2>>1]|0;if((d|0)==(b&3|0)){b=e|2;break}else return ((b&d)>>>1&1)+e|0}else b=0}while(0);return b|0}
10 function zc(a){a=a|0;var b=0;b=r;r=r+a|0;r=r+15&-16;if((r|0)>=(s|0))ka();return b|0}function Ac(){return r|0}function Bc(a){a=a|0;r=a}function Cc(a,b){a=a|0;b=b|0;if(!w){w=a;x=b}}function Dc(a){a=a|0;i[t>>0]=i[a>>0];i[t+1>>0]=i[a+1>>0];i[t+2>>0]=i[a+2>>0];i[t+3>>0]=i[a+3>>0]}function Ec(a){a=a|0;i[t>>0]=i[a>>0];i[t+1>>0]=i[a+1>>0];i[t+2>>0]=i[a+2>>0];i[t+3>>0]=i[a+3>>0];i[t+4>>0]=i[a+4>>0];i[t+5>>0]=i[a+5>>0];i[t+6>>0]=i[a+6>>0];i[t+7>>0]=i[a+7>>0]}function Fc(a){a=a|0;L=a}function Gc(){return L|0}function Hc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();c=f+4|0;d=f;e=0;a:while(1){k[c>>2]=0;k[d>>2]=0;i[280]=0;if(Wf(14640,c)|0){b=4;break}b=k[c>>2]|0;a=0;do{if(Ve(b,k[8+(a<<2)>>2]|0,17,0,d)|0){b=7;break a}a=a+1|0;b=k[c>>2]|0}while((a|0)!=5);yf(b)|0;if(dw(280,8504)|0){b=9;break}e=e+1|0;if((e|0)>=3){b=11;break}}if((b|0)==4)nb(8472,8488,47,8496);else if((b|0)==7)nb(8472,8488,50,8496);else if((b|0)==9)nb(8600,8488,53,8496);else if((b|0)==11){r=f;return 0}return 0}function Ic(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if((b|0)>0)while(1){b=b+-1|0;mw(280,k[d>>2]|0)|0;a=280+(lw(280)|0)|0;i[a>>0]=61;i[a+1>>0]=0;a=k[c>>2]|0;mw(280,((a|0)==0?20304:a)|0)|0;if((b|0)<=0)break;else{c=c+4|0;d=d+4|0}}return 0}function Jc(a){a=a|0;var b=0,c=0,d=0;d=(Kc(a,8640,7)|0)==0;d=d?a+7|0:a;if(!d)a=0;else{a=d;while(1)if(!(i[a>>0]|0))break;else a=a+1|0;a=a-d&1073741823}c=0;while(1){b=k[8648+(c<<2)>>2]|0;if((Kc(d,b,a)|0)==0?(i[10368+(l[b+a>>0]|0)>>0]&70)==0:0){a=1;break}c=c+1|0;if((c|0)>=4){a=0;break}}return a|0}function Kc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a:do if(a)if(b)if((c|0)>0){d=a;while(1){a=i[d>>0]|0;if(!(a<<24>>24))break;if((i[9328+(a&255)>>0]|0)!=(i[9328+(l[b>>0]|0)>>0]|0))break;c=c+-1|0;if((c|0)<=0){c=0;break a}else{d=d+1|0;b=b+1|0}}if((c|0)>=1)c=(l[9328+(a&255)>>0]|0)-(l[9328+(l[b>>0]|0)>>0]|0)|0;else c=0}else c=0;else c=1;else c=((b|0)!=0)<<31>>31;while(0);return c|0}function Lc(a){a=a|0;if(a>>>0<4)a=k[8648+(a<<2)>>2]|0;else a=0;return a|0}function Mc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g;if(a>>>0<=9){f=k[8664+(a<<2)>>2]|0;e=b;k[e>>2]=f;k[e+4>>2]=0;e=8704+(a<<2)|0;a=c;k[a>>2]=k[e>>2];k[a+4>>2]=0;if(!d)e=0;else{k[e>>2]=f;e=0}}else{k[e>>2]=15033;k[e+4>>2]=10788;gd(21,13648,e);e=21}r=g;return e|0}function Nc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g+8|0;f=g;a=Mc(a,e,f,d)|0;if(!a){k[b>>2]=k[e>>2];k[c>>2]=k[f>>2]}r=g;return a|0}function Oc(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0,n=0;n=r;r=r+16|0;if((r|0)>=(s|0))ka();j=n+4|0;h=n;switch(b|0){case 2:{k[j>>2]=0;l=a+20|0;e=k[l>>2]|0;f=(e|0)>0;if(f){h=k[a+16>>2]|0;g=0;do{b=k[h+(g<<4)+4>>2]|0;if(b)k[(k[b+4>>2]|0)+4>>2]=k[b>>2];g=g+1|0}while((g|0)!=(e|0));g=a+520|0;k[g>>2]=j;if(f){i=a+16|0;f=0;do{b=k[(k[i>>2]|0)+(f<<4)+12>>2]|0;if(b){h=qc[k[8744+52>>2]&127](16)|0;h=ha((k[b+44>>2]|0)+(k[b+12>>2]|0)+(k[b+28>>2]|0)+(k[b+60>>2]|0)|0,h)|0;k[j>>2]=h+(k[j>>2]|0);h=qc[k[8744+48>>2]&127](k[b+20>>2]|0)|0;k[j>>2]=(k[j>>2]|0)+h;h=qc[k[8744+48>>2]&127](k[b+52>>2]|0)|0;k[j>>2]=(k[j>>2]|0)+h;h=qc[k[8744+48>>2]&127](k[b+36>>2]|0)|0;k[j>>2]=(k[j>>2]|0)+h;h=qc[k[8744+48>>2]&127](k[b+68>>2]|0)|0;k[j>>2]=(k[j>>2]|0)+h;h=k[b+48>>2]|0;if(h)do{og(a,k[h+8>>2]|0);h=k[h>>2]|0}while((h|0)!=0);h=k[b+16>>2]|0;if(h)do{pg(a,k[h+8>>2]|0);h=k[h>>2]|0}while((h|0)!=0);e=k[l>>2]|0}f=f+1|0}while((f|0)<(e|0));f=k[j>>2]|0}else f=0}else{g=a+520|0;k[g>>2]=j;f=0}k[g>>2]=0;k[d>>2]=0;k[c>>2]=f;f=0;break}case 9:case 8:case 7:{l=a+20|0;h=k[l>>2]|0;if((h|0)>0){j=k[a+16>>2]|0;i=b+-7|0;g=(e|0)==0;f=0;b=h;e=0;while(1){h=k[j+(e<<4)+4>>2]|0;if(h){h=(k[k[h+4>>2]>>2]|0)+(i<<2)+184|0;f=(k[h>>2]|0)+f|0;if(g)h=b;else{k[h>>2]=0;h=k[l>>2]|0}}else h=b;e=e+1|0;if((e|0)>=(h|0))break;else b=h}}else f=0;k[d>>2]=0;k[c>>2]=f;f=0;break}case 0:{g=a+252|0;k[c>>2]=k[g>>2];f=a+256|0;k[d>>2]=k[f>>2];if(!e)f=0;else{k[f>>2]=k[g>>2];f=0}break}case 6:case 5:case 4:{k[c>>2]=0;f=a+(b+-4<<2)+260|0;k[d>>2]=k[f>>2];if(!e)f=0;else{k[f>>2]=0;f=0}break}case 1:{i=a+20|0;g=k[i>>2]|0;e=(g|0)>0;if(e){f=k[a+16>>2]|0;h=0;do{b=k[f+(h<<4)+4>>2]|0;if(b)k[(k[b+4>>2]|0)+4>>2]=k[b>>2];h=h+1|0}while((h|0)!=(g|0));if(e){b=a+16|0;h=0;f=0;while(1){e=k[(k[b>>2]|0)+(h<<4)+4>>2]|0;if(!e)e=g;else{l=k[k[e+4>>2]>>2]|0;a=l+152|0;j=(k[a>>2]|0)+60+(m[l+140>>1]|0)|0;j=ha(qc[k[8744+128>>2]&127](k[(k[l+204>>2]|0)+40>>2]|0)|0,j)|0;l=qc[k[8744+48>>2]&127](l)|0;e=k[i>>2]|0;f=j+f+l+(k[a>>2]|0)|0}h=h+1|0;if((h|0)>=(e|0))break;else g=e}}else f=0}else f=0;k[c>>2]=f;k[d>>2]=0;f=0;break}case 3:{k[h>>2]=0;e=a+520|0;k[e>>2]=h;g=k[a+4>>2]|0;if(!g)f=0;else{do{qg(a,g);rgRg(c);if(k[a>>2]|0)$c(a)}Rg(f)}return b|0}function nd(a){a=a|0;return k[a+32>>2]|0}function od(a){a=a|0;return k[a+36>>2]|0}function pd(a){a=a|0;if((a|0)!=0?(j[a+88>>1]&256)!=0:0)a=k[a+168>>2]|0;else a=0;return a|0}function qd(a){a=a|0;if(!a)a=1;else a=(j[a+88>>1]&8)!=0;return a&1|0}function rd(a){a=a|0;var b=0,c=0,d=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();c=d;do if(a){b=k[a>>2]|0;if(!b){gd(21,47360,c);k[c>>2]=68910;k[c+4>>2]=10788;gd(21,13648,c);b=21;break}else{a=Tg(b,Sg(a)|0)|0;Rg(b);b=a;break}}else b=0;while(0);r=d;return b|0}function sd(a){a=a|0;var b=0,c=0;if(!a)a=0;else{b=Ug(a)|0;k[a+76>>2]=-1;k[a+80>>2]=0;i[a+86>>0]=2;k[a+40>>2]=-1108210269;k[a+92>>2]=0;k[a+72>>2]=1;i[a+87>>0]=-1;k[a+104>>2]=0;c=a+144|0;k[c>>2]=0;k[c+4>>2]=0;a=Tg(k[a>>2]|0,b)|0}return a|0}function td(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=a+68|0;c=j[f>>1]|0;if(c<<16>>16>0){g=a+60|0;b=k[g>>2]|0;e=0;do{d=b+(e*40|0)|0;if(!((j[b+(e*40|0)+8>>1]&9312)==0?(k[b+(e*40|0)+24>>2]|0)==0:0)){Vg(d);b=k[g>>2]|0;c=j[f>>1]|0}j[b+(e*40|0)+8>>1]=1;e=e+1|0}while((e|0)<(c<<16>>16|0))}b=a+88|0;c=j[b>>1]|0;if((c&256)!=0?(k[a+188>>2]|0)!=0:0)j[b>>1]=c|8;return 0}function ud(a){a=a|0;var b=0;b=a+8|0;if(j[b>>1]&18){Wg(a)|0;j[b>>1]=m[b>>1]|0|16;if(!(k[a+12>>2]|0))b=0;else b=k[a+16>>2]|0}else b=Xg(a,1)|0;return b|0}function vd(a){a=a|0;return Xg(a,1)|0}function wd(a){a=a|0;return Yg(a,1)|0}function xd(a){a=a|0;return Yg(a,2)|0}function yd(a){a=a|0;return +(+Zg(a))}function zd(a){a=a|0;a=_g(a)|0;return a|0}function Ad(a){a=a|0;a=_g(a)|0;return a|0}function Bd(a){a=a|0;return Xg(a,2)|0}function Cd(a){a=a|0;return Xg(a,3)|0}function Dd(a){a=a|0;return Xg(a,2)|0}function Ed(a){a=a|0;return l[10064+((m[a+8>>1]|0)&31)>>0]|0|0}function Fd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;$g(a,b,c,0,d);return}function Gd(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(d>>>0>0|(d|0)==0&c>>>0>2147483647){c=e;if(!((c|0)==0|(c|0)==-1))hc[e&31](b);if(a){k[a+20>>2]=18;i[a+25>>0]=1;ah(k[a>>2]|0,10096,-1,1,0)|0}}else $g(a,b,c,0,e);return}function Hd(a,b){a=a|0;b=+b;bh(k[a>>2]|0,b);return}function Id(a,b,c){a=a|0;b=b|0;c=c|0;k[a+20>>2]=1;i[a+25>>0]=1;ah(k[a>>2]|0,b,c,1,-1)|0;return}function Jd(a,b,c){a=a|0;b=b|0;c=c|0;k[a+20>>2]=1;i[a+25>>0]=1;ah(k[a>>2]|0,b,c,2,-1)|0;return}function Kd(a,b){a=a|0;b=b|0;var c=0,d=0;a=k[a>>2]|0;c=((b|0)<0)<<31>>31;d=a+8|0;if(!(j[d>>1]&9312)){k[a>>2]=b;k[a+4>>2]=c;j[d>>1]=4}else ch(a,b,c);return}function Ld(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;a=k[a>>2]|0;d=a+8|0;if(!(j[d>>1]&9312)){k[a>>2]=b;k[a+4>>2]=c;j[d>>1]=4}else ch(a,b,c);return}function Md(a){a=a|0;var b=0;a=k[a>>2]|0;b=a+8|0;if(!(j[b>>1]&9312))j[b>>1]=1;else Ag(a);return}function Nd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;$g(a,b,c,1,d);return}function Od(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(d>>>0>0|(d|0)==0&c>>>0>2147483647){c=e;if(!((c|0)==0|(c|0)==-1))hc[e&31](b);if(a){k[a+20>>2]=18;i[a+25>>0]=1;ah(k[a>>2]|0,10096,-1,1,0)|0}}else $g(a,b,c,f<<24>>24==4?2:f,e);return}function Pd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;$g(a,b,c,2,d);return}function Qd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;$g(a,b,c,3,d);return}function Rd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;$g(a,b,c,2,d);return}function Sd(a,b){a=a|0;b=b|0;dh(k[a>>2]|0,b)|0;return}function Td(a,b){a=a|0;b=b|0;eh(k[a>>2]|0,b);return}function Ud(a,b){a=a|0;b=b|0;var c=0;k[a+20>>2]=b;i[a+25>>0]=1;c=k[a>>2]|0;if(j[c+8>>1]&1){if((b|0)!=516){a=b&255;if(a>>>0>26|(a|0)==2)a=16328;else a=k[15488+(a<<2)>>2]|0}else a=16344;ah(c,a,-1,1,0)|0}return}function Vd(a){a=a|0;k[a+20>>2]=18;i[a+25>>0]=1;ah(k[a>>2]|0,10096,-1,1,0)|0;return}function Wd(a){a=a|0;var b=0,c=0;b=k[a>>2]|0;c=b+8|0;if(!(j[c>>1]&9312))j[c>>1]=1;else{Ag(b);b=k[a>>2]|0}k[a+20>>2]=7;i[a+25>>0]=1;i[(k[b+32>>2]|0)+65>>0]=1;return}function Xd(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,q=0,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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;W=r;r=r+224|0;if((r|0)>=(s|0))ka();R=W+8|0;Q=W;if(!(fh(a)|0)){V=k[a>>2]|0;I=a+88|0;j[I>>1]=j[I>>1]&-513;N=a+40|0;O=a+76|0;P=a+128|0;U=a+80|0;z=a+168|0;A=a+8|0;B=a+20|0;C=a+32|0;D=a+4|0;E=a+84|0;T=a+44|0;F=(a|0)==0;G=a+52|0;H=a+48|0;y=0;while(1){if((k[N>>2]|0)!=-1108210269)sd(a)|0;x=k[a>>2]|0;if(i[x+65>>0]|0){S=7;break}c=k[O>>2]|0;do if((c|0)<1){if(j[I>>1]&8){k[U>>2]=17;c=1;break}if((c|0)<0){c=x+148|0;if(!(k[c>>2]|0))k[x+240>>2]=0;if((k[x+184>>2]|0)!=0?(i[x+145>>0]|0)==0:0)gh(k[x>>2]|0,P)|0;k[c>>2]=(k[c>>2]|0)+1;c=j[I>>1]|0;if(!(c&64)){c=x+156|0;k[c>>2]=(k[c>>2]|0)+1;c=j[I>>1]|0}if(c&128){w=x+152|0;k[w>>2]=(k[w>>2]|0)+1}k[O>>2]=0;S=22}else S=22}else S=22;while(0);if((S|0)==22){S=0;do if(!(j[I>>1]&3)){w=x+160|0;k[w>>2]=(k[w>>2]|0)+1;c=lh(a)|0;k[w>>2]=(k[w>>2]|0)+-1;if((c|0)==100)c=100;else S=101}else{g=k[a>>2]|0;v=k[A>>2]|0;u=v+40|0;hh(u,8);k[B>>2]=0;if((k[U>>2]|0)==7){i[g+65>>0]=1;c=1;S=101;break}e=k[C>>2]|0;h=j[I>>1]&3;if(h<<16>>16==1){f=k[A>>2]|0;n=f+360|0;if(j[f+368>>1]&16){o=(k[f+372>>2]|0)>>>2;d=k[f+376>>2]|0;if(!o){q=d;f=e;b=0}else{c=0;f=e;do{f=(k[(k[d+(c<<2)>>2]|0)+4>>2]|0)+f|0;c=c+1|0}while((c|0)<(o|0));q=d;b=o}}else{q=0;f=e;b=0}}else{q=0;f=e;b=0;n=0}e=h<<16>>16==2;d=k[O>>2]|0;while(1){c=d+1|0;if((d|0)>=(f|0)){S=33;break}if(!e)break;if((i[(k[D>>2]|0)+(d*20|0)>>0]|0)==-99)break;else d=c}if((S|0)==33){k[O>>2]=c;k[U>>2]=0;c=101;S=101;break}k[O>>2]=c;if(k[g+240>>2]|0){k[U>>2]=9;k[R>>2]=15832;ih(T,g,10344,R);c=1;S=101;break}f=k[C>>2]|0;if((d|0)<(f|0)){c=d;w=(k[D>>2]|0)+(d*20|0)|0}else{d=d-f|0;f=k[q>>2]|0;e=k[f+4>>2]|0;if((d|0)<(e|0))e=d;else{f=d;c=0;while(1){d=f-e|0;c=c+1|0;f=k[q+(c<<2)>>2]|0;e=k[f+4>>2]|0;if((d|0)<(e|0)){e=d;break}else f=d}}c=e;w=(k[f>>2]|0)+(e*20|0)|0}if((j[I>>1]&3)==1){j[v+48>>1]=4;e=u;k[e>>2]=c;k[e+4>>2]=((c|0)<0)<<31>>31;j[v+88>>1]=2562;e=k[44856+(l[w>>0]<<2)>>2]|0;k[v+96>>2]=e;f=e;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;o=v+80|0;k[v+92>>2]=f-e&1073741823;i[v+90>>0]=1;if((i[w+1>>0]|0)==-18){c=(b<<2)+4|0;a:do if(!b)f=0;else{e=k[w+16>>2]|0;d=0;while(1){f=d+1|0;if((k[q+(d<<2)>>2]|0)==(e|0)){f=d;break a}if((f|0)<(b|0))d=f;else break}}while(0);if((f|0)==(b|0)?(jh(n,c,(b|0)!=0&1)|0)==0:0){k[(k[n+16>>2]|0)+(b<<2)>>2]=k[w+16>>2];v=n+8|0;j[v>>1]=m[v>>1]|16;k[n+12>>2]=c;v=o}else v=o}else v=o}j[v+48>>1]=4;u=k[w+4>>2]|0;q=v+40|0;k[q>>2]=u;k[q+4>>2]=((u|0)<0)<<31>>31;j[v+88>>1]=4;q=k[w+8>>2]|0;u=v+80|0;k[u>>2]=q;k[u+4>>2]=((q|0)<0)<<31>>31;j[v+128>>1]=4;u=k[w+12>>2]|0;q=v+120|0;k[q>>2]=u;k[q+4>>2]=((u|0)<0)<<31>>31;q=v+160|0;if(!(kh(q,32)|0)){j[v+168>>1]=514;u=v+176|0;b=k[u>>2]|0;b:do switch(i[w+1>>0]|0){case -6:{g=k[w+16>>2]|0;c=g+6|0;k[R>>2]=m[c>>1];fd(32,b,44768,R)|0;if(!b)f=0;else{f=b;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;f=f-b&1073741823}c:do if(j[c>>1]|0){h=g+16|0;n=0;while(1){e=k[g+(n<<2)+20>>2]|0;if(e){e=k[e>>2]|0;if(!e){d=0;e=0}else S=61}else{e=44776;S=61}do if((S|0)==61){S=0;o=e;while(1)if(!(i[o>>0]|0))break;else o=o+1|0;d=o-e&1073741823;if((d|0)!=6)break;o=(cw(e,11152,6)|0)==0;d=o?1:6;e=o?44784:e}while(0);if((d+f|0)>26)break;o=f+1|0;i[b+f>>0]=44;if(i[(k[h>>2]|0)+n>>0]|0){i[b+o>>0]=45;o=f+2|0}pw(b+o|0,e|0,d+1|0)|0;f=o+d|0;n=n+1|0;if((n|0)>=(m[c>>1]|0))break c}c=b+f|0;i[c>>0]=44;i[c+1>>0]=46;i[c+2>>0]=46;i[c+3>>0]=46}while(0);i[b+f>>0]=41;i[b+(f+1)>>0]=0;e=b;break}case -15:{fd(32,b,44832,R)|0;e=b;break}case -18:{fd(32,b,44848,R)|0;e=b;break}case -4:{k[R>>2]=k[k[w+16>>2]>>2];fd(32,b,44792,R)|0;e=b;break}case -5:{c=k[w+16>>2]|0;e=j[c>>1]|0;k[R>>2]=k[c+24>>2];k[R+4>>2]=e;fd(32,b,44800,R)|0;e=b;break}case -13:{d=k[w+16>>2]|0;c=k[d+4>>2]|0;e=R;k[e>>2]=k[d>>2];k[e+4>>2]=c;fd(32,b,19920,R)|0;e=b;break}case -14:{k[R>>2]=k[w+16>>2];fd(32,b,44808,R)|0;e=b;break}case -12:{p[t>>3]=+p[k[w+16>>2]>>3];k[R>>2]=k[t>>2];k[R+4>>2]=k[t+4>>2];fd(32,b,19912,R)|0;e=b;break}case -8:{f=k[w+16>>2]|0;e=m[f+8>>1]|0;if(e&2){e=k[f+16>>2]|0;break b}if(e&4){d=f;c=k[d+4>>2]|0;e=R;k[e>>2]=k[d>>2];k[e+4>>2]=c;fd(32,b,19920,R)|0;e=b;break b}if(e&8){p[t>>3]=+p[f>>3];k[R>>2]=k[t>>2];k[R+4>>2]=k[t+4>>2];fd(32,b,19912,R)|0;e=b;break b}if(!(e&1))e=44816;else{fd(32,b,20304,R)|0;e=b}break}case -19:{i[b>>0]=0;e=b;break}case -10:{k[R>>2]=k[(k[w+16>>2]|0)+8>>2];fd(32,b,44824,R)|0;e=b;break}default:{f=k[w+16>>2]|0;if(!f){i[b>>0]=0;e=b}else e=f}}while(0);if((e|0)==(k[u>>2]|0)){if(!e)c=0;else{f=e;while(1)if(!(i[f>>0]|0))break;else f=f+1|0;c=f-e&1073741823}k[v+172>>2]=c;i[v+170>>0]=1}else ah(q,e,-1,1,0)|0;c=j[I>>1]|0;if((c&3)==1){if(kh(v+200|0,4)|0){c=1;S=101;break}j[v+208>>1]=514;k[v+212>>2]=2;c=k[v+216>>2]|0;k[R>>2]=l[w+3>>0];fd(3,c,44760,R)|0;i[v+210>>0]=1;j[v+248>>1]=1;c=j[I>>1]|0}j[E>>1]=12-((c&3)<<2);k[B>>2]=(k[A>>2]|0)+40;k[U>>2]=0;c=100}else{c=1;S=101}}while(0);if((S|0)==101){S=0;b=x+184|0;if(((k[b>>2]|0)!=0?(i[x+145>>0]|0)==0:0)?(k[z>>2]|0)!=0:0){gh(k[x>>2]|0,Q)|0;b=k[b>>2]|0;u=k[x+188>>2]|0;v=k[z>>2]|0;d=Q;w=P;w=iw(k[d>>2]|0,k[d+4>>2]|0,k[w>>2]|0,k[w+4>>2]|0)|0;w=xw(w|0,L|0,1e6,0)|0;vc[b&15](u,v,w,L)}if((c|0)==101){g=x+20|0;f=k[g>>2]|0;if((f|0)>0){h=x+16|0;n=x+216|0;o=x+220|0;b=0;c=0;do{e=k[h>>2]|0;d=k[e+(b<<4)+4>>2]|0;if(((d|0)!=0?(J=k[d+4>>2]|0,k[J+4>>2]=k[d>>2],J=k[(k[J>>2]|0)+208>>2]|0,(J|0)!=0):0)?(M=J+12|0,K=k[M>>2]|0,k[M>>2]=0,M=k[n>>2]|0,(M|0)!=0&(K|0)>0&(c|0)==0):0){c=uc[M&31](k[o>>2]|0,x,k[e+(b<<4)>>2]|0,K)|0;f=k[g>>2]|0}b=b+1|0}while((b|0)<(f|0))}else c=0;k[U>>2]=c;c=(c|0)==0?101:1}}k[x+52>>2]=c;if((Tg(k[a>>2]|0,k[U>>2]|0)|0)==7)k[U>>2]=7}if((j[I>>1]&256)!=0&(c|0)!=100&(c|0)!=101)c=mh(a)|0;b=k[x+56>>2]&c;if((b|0)!=17)break;f=y+1|0;if((y|0)>=50){b=17;break}d=k[O>>2]|0;if(!F?(j[I>>1]&256)!=0:0)c=k[z>>2]|0;else c=0;e=k[a>>2]|0;b=nh(e,c,-1,0,a,Q,0)|0;if((b|0)==7){b=e;S=124;break}else if(b){S=127;break}y=k[Q>>2]|0;pw(R|0,y|0,208)|0;pw(y|0,a|0,208)|0;pw(a|0,R|0,208)|0;w=y+52|0;x=k[w>>2]|0;k[w>>2]=k[G>>2];k[G>>2]=x;x=y+48|0;w=k[x>>2]|0;k[x>>2]=k[H>>2];k[H>>2]=w;w=y+168|0;x=k[w>>2]|0;k[w>>2]=k[z>>2];k[z>>2]=x;j[I>>1]=j[I>>1]&-257|j[y+88>>1]&256;oh(y,a);k[y+80>>2]=0;Sg(y)|0;sd(a)|0;if((d|0)<=-1){y=f;continue}j[I>>1]=j[I>>1]|512;y=f}if((S|0)==7){k[U>>2]=7;b=7}else if((S|0)==124){i[b+65>>0]=1;b=7;S=127}do if((S|0)==127){c=Xg(k[V+236>>2]|0,1)|0;rgrg(a,m);k[Q>>2]=0;m=k[H>>2]|0;if((m|0)>0){o=k[I>>2]|0;q=0;do{p=k[o+(q<<4)+4>>2]|0;if(p)k[(k[p+4>>2]|0)+4>>2]=k[p>>2];q=q+1|0}while((q|0)!=(m|0))}x=xh(n,0,c,b)|0;if(!x)break;m=i[x+44>>0]|0;if(m&16){O=11;break}if(m&32){O=13;break}if(k[x+12>>2]|0){O=17;break}w=x+38|0;t=j[w>>1]|0;a:do if(t<<16>>16>0){q=k[x+4>>2]|0;p=t<<16>>16;m=0;while(1){o=m+1|0;if(!(id(k[q+(m*24|0)>>2]|0,d)|0)){o=m;break a}if((o|0)<(p|0))m=o;else break}}else o=0;while(0);if((o|0)==(t<<16>>16|0)){O=23;break}if(K){if((k[y>>2]&524288|0)!=0?(M=k[x+16>>2]|0,(M|0)!=0):0){u=M;m=0;do{t=k[u+20>>2]|0;if((t|0)>0){q=0;do{m=(k[u+(q<<3)+36>>2]|0)==(o|0)?10280:m;q=q+1|0}while((q|0)<(t|0))}u=k[u+4>>2]|0}while((u|0)!=0)}else m=0;q=k[x+8>>2]|0;if(q)do{p=j[q+46>>1]|0;if(p<<16>>16){v=k[q+4>>2]|0;t=p&65535;u=0;do{m=(j[v+(u<<1)>>1]|0)==(o|0)?10296:m;u=u+1|0}while((u|0)<(t|0))}q=k[q+20>>2]|0}while((q|0)!=0);if(m){O=36;break}}v=Ah(n)|0;k[g>>2]=v;if(v){u=k[x+68>>2]|0;b:do if(u){t=k[H>>2]|0;if((t|0)>0){q=k[I>>2]|0;m=0;while(1){p=m+1|0;if((k[q+(m<<4)+12>>2]|0)==(u|0)){p=m;break b}if((p|0)<(t|0))m=p;else break}}else p=0}else p=-1e6;while(0);m=k[u+4>>2]|0;Ch(v,Bh(v,4,p,L,k[u>>2]|0)|0,m,-14);m=v+4|0;q=k[m>>2]|0;t=v+32|0;if(q)i[q+(((k[t>>2]|0)+-1|0)*20|0)+3>>0]=1;Dh(v,10,10120)|0;q=v+96|0;k[q>>2]=k[q>>2]|1<<p;if((k[t>>2]|0)>>>0>1){u=k[m>>2]|0;k[u+24>>2]=p;q=x+32|0;k[u+28>>2]=k[q>>2];k[(k[m>>2]|0)+32>>2]=L}else q=x+32|0;Ch(v,1,k[x>>2]|0,0);Eh(v,C);if((k[t>>2]|0)>>>0>D>>>0){k[(k[m>>2]|0)+(D*20|0)+8>>2]=k[q>>2];k[(k[m>>2]|0)+(D*20|0)+12>>2]=p}Ch(v,D,(j[w>>1]|0)+1|0,-14);if((k[t>>2]|0)>>>0>6)k[(k[m>>2]|0)+128>>2]=j[w>>1];if(!(i[B>>0]|0)){k[E>>2]=1;k[F>>2]=1;k[G>>2]=1;Fh(v,n)}}k[N>>2]=L;k[z>>2]=o;k[A>>2]=a;if(i[B>>0]|0){O=57;break}we(k[g>>2]|0,1,e,f)|0;l=Gh(N,e,f,Q)|0;if(!((J|0)<50&(l|0)==17)){O=57;break}m=k[Q>>2]|0;J=J+1|0;l=17}if((O|0)==11){k[P>>2]=c;yh(n,10160,P)}else if((O|0)==13){k[P>>2]=c;yh(n,10192,P)}else if((O|0)==17){k[P>>2]=c;yh(n,10232,P)}else if((O|0)==23){rg(a,0);k[P>>2]=d;l=zh(a,10256,P)|0;k[Q>>2]=l;l=1;O=62;break}else if((O|0)==36){rg(a,0);k[P>>2]=m;l=zh(a,10304,P)|0;k[Q>>2]=l;l=1;O=62;break}else if((O|0)==57)if(!l){l=1;m=n;O=58;break}else{m=n;O=61;break}m=n+4|0;if(!(k[m>>2]|0)){l=1;O=62}else{rg(a,0);k[Q>>2]=k[m>>2];k[m>>2]=0;l=1;O=62}}else{l=1;m=n;O=58}}else{l=0;m=0;O=58}while(0);do if((O|0)==58)if(i[a+65>>0]|0)if(l){l=0;O=61;break}else{l=0;O=64;break}else{k[h>>2]=N;l=0;break}while(0);if((O|0)==61){g=N+20|0;n=m;O=62}if((O|0)==62){m=k[g>>2]|0;if(!m){m=n;O=64}else{Sg(m)|0;m=n;O=64}}if((O|0)==64)rg(a,N);H=k[Q>>2]|0;k[P>>2]=H;zg(a,l,(H|0)!=0?10344:0,P);rg(a,H);Hh(m);rg(a,m);H=Tg(a,l)|0;r=R;return H|0}function Oe(a){a=a|0;var b=0,c=0;if(!a)a=0;else{c=k[a+24>>2]|0;b=rd(k[a+20>>2]|0)|0;rg(c,a);a=b}return a|0}function Pe(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Jh(a,b,c,d,18)|0}function Qe(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Jh(a,b,c,d,19)|0}function Re(a){a=a|0;if((a|0)!=0?(k[a+20>>2]|0)!=0:0)a=k[a+4>>2]|0;else a=0;return a|0}function Se(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();d=g;e=g+8|0;if(!a){k[d>>2]=77720;k[d+4>>2]=10788;gd(21,13648,d);b=21}else{f=k[a+24>>2]|0;if(k[a+20>>2]|0){b=Gh(a,b,c,e)|0;if(!b)b=0;else{c=k[e>>2]|0;k[d>>2]=c;zg(f,b,(c|0)!=0?10344:0,d);rg(f,c)}}else b=4;b=Tg(f,b)|0}r=g;return b|0}function Te(a,b,c){a=a|0;b=b|0;c=c|0;k[a+284>>2]=b;k[a+288>>2]=c;a=k[a+4>>2]|0;if(a)do{c=a+88|0;j[c>>1]=j[c>>1]|8;a=k[a+52>>2]|0}while((a|0)!=0);return 0}function Ue(a,b){a=a|0;b=b|0;return (Lh(a,b,10352,0)|0)==0|0}function Ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=r;r=r+16|0;if((r|0)>=(s|0))ka();g=B;x=B+12|0;y=B+8|0;k[y>>2]=0;do if(Mh(a)|0){f=(b|0)==0?10360:b;z=a+52|0;k[z>>2]=0;A=a+236|0;g=k[A>>2]|0;do if(g){b=g+8|0;if(!(j[b>>1]&9312)){j[b>>1]=1;break}else{Ag(g);break}}while(0);u=(c|0)==0;v=a+24|0;g=0;a:while(1){do{if(g){h=39;break a}if(!(i[f>>0]|0)){g=0;h=39;break a}k[y>>2]=0;g=nh(a,f,-1,1,0,y,x)|0}while((g|0)!=0);f=k[y>>2]|0;if(!f){f=k[x>>2]|0;g=0;continue}t=j[f+84>>1]|0;p=t&65535;q=p<<3|1;t=t<<16>>16==0;b=0;h=0;m=0;b:do{g=Xd(f)|0;do if(!u){n=(g|0)==100;if(!n){if((g|0)!=101|(m|0)!=0)break b;if(!(k[v>>2]&256)){m=0;break}}if(!m){b=rh(a,q,0)|0;if(!b){b=0;h=40;break a}kw(b|0,0,q|0)|0;if(t)o=1;else{m=0;do{o=oe(f,m)|0;k[b+(m<<2)>>2]=o;m=m+1|0}while((m|0)<(p|0));o=1}}else o=m;c:do if(n){h=b+(p<<2)|0;if(!t){m=0;while(1){n=ke(f,m)|0;k[b+(m+p<<2)>>2]=n;if((n|0)==0?(w=k[y>>2]|0,(ne(w,m)|0)!=5):0){g=w;h=27;break a}m=m+1|0;if((m|0)>=(p|0))break c;f=k[y>>2]|0}}}while(0);if(!(uc[c&31](d,p,h,b)|0))m=o;else{f=b;h=31;break a}}while(0);f=k[y>>2]|0}while((g|0)==100);g=Sg(f)|0;k[y>>2]=0;f=k[x>>2]|0;while(1)if(!(i[10368+(l[f>>0]|0)>>0]&1))break;else f=f+1|0;rg(a,b)}do if((h|0)==27){i[a+65>>0]=1;f=g;g=100;h=40}else if((h|0)==31){Sg(k[y>>2]|0)|0;k[y>>2]=0;k[z>>2]=4;g=k[A>>2]|0;if(g){b=g+8|0;if(!(j[b>>1]&9312)){j[b>>1]=1;b=f;g=4;break}else{Ag(g);b=f;g=4;break}}else{b=f;g=4}}else if((h|0)==39){f=k[y>>2]|0;b=0;h=40}while(0);if((h|0)==40)if(f)Sg(f)|0;rg(a,b);f=Tg(a,g)|0;b=(e|0)!=0;if(!((f|0)!=0&b)){if(!b)break;k[e>>2]=0;break}b=Xe(a)|0;if(!b)b=1;else{g=b;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;b=(g-b&1073741823)+1|0}g=vg(b,((b|0)<0)<<31>>31)|0;k[e>>2]=g;if(g){pw(g|0,Xe(a)|0,b|0)|0;break}k[z>>2]=7;f=k[A>>2]|0;if(f){b=f+8|0;if(!(j[b>>1]&9312)){j[b>>1]=1;f=7;break}else{Ag(f);f=7;break}}else f=7}else{k[g>>2]=101334;k[g+4>>2]=10788;gd(21,13648,g);f=21}while(0);r=B;return f|0}function We(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return nh(a,b,c,1,0,d,e)|0}function Xe(a){a=a|0;var b=0,c=0,d=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;do if(a){d=k[a+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){k[b>>2]=15248;gd(21,15256,b);k[b>>2]=129635;k[b+4>>2]=10788;gd(21,13648,b);b=16120;break}if(!(i[a+65>>0]|0)){b=Xg(k[a+236>>2]|0,1)|0;if(!b){b=k[a+52>>2]|0;if((b|0)!=516){b=b&255;if(b>>>0>26|(b|0)==2)b=16328;else b=k[15488+(b<<2)>>2]|0}else b=16344}}else b=15776}else b=15776;while(0);r=c;return b|0}function Ye(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0;u=r;r=r+16|0;if((r|0)>=(s|0))ka();q=u;t=u+8|0;p=k[a>>2]|0;k[t>>2]=0;j=(b|0)==0;if(j)e=0;else{h=b;while(1)if(!(i[h>>0]|0))break;else h=h+1|0;e=h-b&1073741823}n=e+300|0;m=(d|0)!=0;if(m)k[d>>2]=0;do if(!(k[a+24>>2]&4194304))if(m){e=dd(25216,q)|0;k[d>>2]=e;e=1}else e=1;else{l=(c|0)!=0?c:41192;g=p+40|0;h=wc[k[g>>2]&127](p,b)|0;if(!h){k[q>>2]=b;k[q+4>>2]=41184;f=dd(27824,q)|0;if(!f){e=7;break}h=wc[k[g>>2]&127](p,f)|0;$c(f);if(!h){if(!m){e=1;break}h=Yc(n)|0;k[t>>2]=h;k[d>>2]=h;if(!h){e=1;break}k[q>>2]=b;fd(n,h,41216,q)|0;rc[k[p+44>>2]&63](p,e+299|0,h);e=1;break}else o=h}else o=h;e=p+48|0;h=fc[k[e>>2]&63](p,o,l)|0;if((h|0)==0&(c|0)==0){if(j)h=0;else{h=b;while(1)if(!(i[h>>0]|0))break;else h=h+1|0;h=h-b&1073741823}c=Yc(h+30|0)|0;if(!c){oc[k[p+52>>2]&15](p,o);e=7;break}l=c;j=l;i[j>>0]=115;i[j+1>>0]=113;i[j+2>>0]=108;i[j+3>>0]=105;l=l+4|0;i[l>>0]=116;i[l+1>>0]=101;i[l+2>>0]=51;i[l+3>>0]=95;while(1){g=h+-1|0;if((h|0)<=0)break;if((i[b+g>>0]|0)==47)break;else h=g}f=(Kc(b+h|0,41256,3)|0)==0;g=8;f=f?h+3|0:h;while(1){h=i[b+f>>0]|0;if(h<<24>>24==0|h<<24>>24==46){h=g;break}if(!(i[10368+(h&255)>>0]&2))h=g;else{i[c+g>>0]=i[9328+(h<<24>>24)>>0]|0;h=g+1|0}g=h;f=f+1|0}h=c+h|0;i[h+0>>0]=i[41264]|0;i[h+1>>0]=i[41265]|0;i[h+2>>0]=i[41266]|0;i[h+3>>0]=i[41267]|0;i[h+4>>0]=i[41268]|0;i[h+5>>0]=i[41269]|0;h=fc[k[e>>2]&63](p,o,c)|0;e=c;f=c}else{e=0;f=l}if(!h){if(m){if(!f)h=0;else{h=f;while(1)if(!(i[h>>0]|0))break;else h=h+1|0;h=h-f&1073741823}h=h+n|0;g=Yc(h)|0;k[t>>2]=g;k[d>>2]=g;if(g){k[q>>2]=f;k[q+4>>2]=b;fd(h,g,41272,q)|0;rc[k[p+44>>2]&63](p,h+-1|0,g)}}oc[k[p+52>>2]&15](p,o);$c(e);e=1;break}$c(e);if(fc[h&63](a,t,13776)|0){if(m){k[q>>2]=k[t>>2];n=dd(41320,q)|0;k[d>>2]=n}$c(k[t>>2]|0);oc[k[p+52>>2]&15](p,o);e=1;break}g=a+168|0;e=(k[g>>2]<<2)+4|0;h=rh(a,e,0)|0;if(!h)e=7;else{kw(h|0,0,e|0)|0;e=k[g>>2]|0;f=a+172|0;if((e|0)>0)pw(h|0,k[f>>2]|0,e<<2|0)|0;rgrg(a,b);b=1}i[f>>0]=0;c=k[l+8>>2]|0;if(c)Sg(c)|0;pg(a,k[l+484>>2]|0);Hh(l);rg(a,l)}b=Tg(a,b)|0}else{k[a+52>>2]=21;c=k[a+236>>2]|0;do if(c){b=c+8|0;if(!(j[b>>1]&9312)){j[b>>1]=1;break}else{Ag(c);break}}while(0);k[m>>2]=114865;k[m+4>>2]=10788;gd(21,13648,m);b=21}r=n;return b|0}function jf(a){a=a|0;return l[10640+((l[a+69>>0]|0)+-1)>>0]|0|0}function kf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+32|0;if((r|0)>=(s|0))ka();e=g;d=g+8|0;k[d>>2]=c;do if((b|0)==1){b=k[a+324>>2]|0;if(!b){k[e>>2]=115248;k[e+4>>2]=10788;gd(21,13648,e);f=6;break}else{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;i[(k[b>>2]|0)+16>>0]=c;b=0;break}}else{k[e>>2]=115256;k[e+4>>2]=10788;gd(21,13648,e);f=6}while(0);do if((f|0)==6){k[a+52>>2]=21;b=k[a+236>>2]|0;if(b){c=b+8|0;if(!(j[c>>1]&9312)){j[c>>1]=1;b=21;break}else{Ag(b);b=21;break}}else b=21}while(0);r=g;return b|0}function lf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=i[a>>0]|0;a:do if(b<<24>>24){e=b;b=0;b:while(1){d=e<<24>>24;switch(d|0){case 45:{if((i[a+1>>0]|0)==45){c=e;while(1){d=c<<24>>24==0;e=a+1|0;if(!(c<<24>>24!=10&(d^1)))break;a=e;c=i[e>>0]|0}if(d){f=13;break b}else c=1}else c=2;break}case 91:{do{a=a+1|0;d=i[a>>0]|0;c=d<<24>>24==0}while(d<<24>>24!=93&(c^1));if(c){b=0;break a}else c=2;break}case 12:case 10:case 9:case 13:case 32:{c=1;break}case 39:case 34:case 96:{do{a=a+1|0;d=i[a>>0]|0;c=d<<24>>24==0}while(d<<24>>24!=e<<24>>24&(c^1));if(c){b=0;break a}else c=2;break}case 47:{if((i[a+1>>0]|0)==42){a=a+2|0;while(1){c=i[a>>0]|0;if(c<<24>>24==42){a=a+1|0;if((i[a>>0]|0)==47){c=1;break}else continue}else if(!(c<<24>>24)){b=0;break a}else{a=a+1|0;continue}}}else c=2;break}case 59:{c=0;break}default:if(!(i[10368+(e&255)>>0]&70))c=2;else{c=1;while(1)if(!(i[10368+(l[a+c>>0]|0)>>0]&70)){e=c;break}else c=c+1|0;c:do switch(d|0){case 67:case 99:{if((e|0)==6?(Kc(a,10712,6)|0)==0:0){c=4;break c}c=2;break}case 84:case 116:{if((e|0)==7){if(!(Kc(a,10720,7)|0)){c=6;break c}}else if((e|0)==4){if(!(Kc(a,10728,4)|0)){c=5;break c}}else if((e|0)==9?(Kc(a,10736,9)|0)==0:0){c=5;break c}c=2;break}case 69:case 101:{if((e|0)==3){if(!(Kc(a,10752,3)|0)){c=7;break c}}else if((e|0)==7?(Kc(a,10760,7)|0)==0:0){c=3;break c}c=2;break}default:c=2}while(0);a=a+(e+-1)|0}}b=i[(c&255)+(10648+((b&255)<<3))>>0]|0;a=a+1|0;e=i[a>>0]|0;if(!(e<<24>>24)){f=35;break}}if((f|0)==13){b=b<<24>>24==1&1;break}else if((f|0)==35){b=b<<24>>24==1;f=36;break}}else{b=0;f=36}while(0);if((f|0)==36)b=b&1;return b|0}function mf(a){a=a|0;var b=0,c=0,d=0;b=Qc()|0;if(!b){c=vg(40,0)|0;if(c){b=c+0|0;d=b+40|0;do{i[b>>0]=0;b=b+1|0}while((b|0)<(d|0));j[c+8>>1]=1;k[c+32>>2]=0;ah(c,a,-1,2,0)|0}b=Xg(c,1)|0;if(!b)b=7;else b=(lf(b)|0)&255;Rh(c)}return b|0}function nf(){return 8632}function of(){return 10768}function pf(){return 3008009}function qf(){return 0}function rf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=r;r=r+32|0;if((r|0)>=(s|0))ka();c=e;d=e+8|0;if(!(k[2243]|0)){k[d>>2]=b;do switch(a|0){case 5:{if(!(k[2195]|0)){k[c>>2]=16496;rf(4,c)|0}a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[c+0>>2]=k[2195];k[c+4>>2]=k[2196];k[c+8>>2]=k[2197];k[c+12>>2]=k[2198];k[c+16>>2]=k[2199];k[c+20>>2]=k[2200];k[c+24>>2]=k[2201];k[c+28>>2]=k[2202];c=0;break}case 17:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2189]=c;c=0;break}case 20:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2190]=c;c=0;break}case 19:{if(!(k[2214]|0)){k[c>>2]=16440;rf(18,c)|0}a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;c=c+0|0;a=8848|0;d=c+52|0;do{k[c>>2]=k[a>>2];c=c+4|0;a=a+4|0}while((c|0)<(d|0));c=0;break}case 16:{c=k[d>>2]|0;a=k[c>>2]|0;k[d>>2]=c+4;k[2250]=a;a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2251]=c;c=0;break}case 13:{c=k[d>>2]|0;a=k[c>>2]|0;k[d>>2]=c+4;k[2193]=a;a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2194]=c;c=0;break}case 7:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2237]=c;c=k[d>>2]|0;a=k[c>>2]|0;k[d>>2]=c+4;k[2238]=a;a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2239]=c;c=0;break}case 24:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[c>>2]=152;c=0;break}case 15:{c=1;break}case 4:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2195]=k[c+0>>2];k[2196]=k[c+4>>2];k[2197]=k[c+8>>2];k[2198]=k[c+12>>2];k[2199]=k[c+16>>2];k[2200]=k[c+20>>2];k[2201]=k[c+24>>2];k[2202]=k[c+28>>2];c=0;break}case 18:{c=k[d>>2]|0;a=k[c>>2]|0;k[d>>2]=c+4;c=8848|0;a=a+0|0;d=c+52|0;do{k[c>>2]=k[a>>2];c=c+4|0;a=a+4|0}while((c|0)<(d|0));c=0;break}case 6:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2234]=c;c=k[d>>2]|0;a=k[c>>2]|0;k[d>>2]=c+4;k[2235]=a;a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2236]=c;c=0;break}case 9:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2186]=c;c=0;break}case 22:{k[d>>2]=(k[d>>2]|0)+8;k[d>>2]=(k[d>>2]|0)+8;k[2230]=0;k[2231]=0;k[2232]=0;k[2233]=0;c=0;break}case 25:{a=k[d>>2]|0;c=k[a>>2]|0;k[d>>2]=a+4;k[2242]=c;c=0;break}case 14:{c=0;break}default:c=1}while(0)}else{k[c>>2]=127883;k[c+4>>2]=10788;gd(21,13648,c);c=21}r=e;return c|0}function sf(a){a=a|0;return k[a+12>>2]|0}function tf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=a+20|0;b=k[g>>2]|0;e=(b|0)>0;if(e){d=k[a+16>>2]|0;f=0;do{c=k[d+(f<<4)+4>>2]|0;if(c)k[(k[c+4>>2]|0)+4>>2]=k[c>>2];f=f+1|0}while((f|0)!=(b|0));if(e){e=a+16|0;d=0;do{c=k[(k[e>>2]|0)+(d<<4)+4>>2]|0;if(c){hc[k[8744+152>>2]&31](k[(k[(k[k[c+4>>2]>>2]|0)+204>>2]|0)+40>>2]|0);b=k[g>>2]|0}d=d+1|0}while((d|0)<(b|0))}}return 0}function uf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();f=h;k[f>>2]=c;a:do if((b|0)!=1001){c=0;while(1){if((k[10936+(c<<3)>>2]|0)==(b|0))break;c=c+1|0;if(c>>>0>=2){d=1;break a}}e=k[f>>2]|0;b=k[e>>2]|0;k[f>>2]=e+4;e=k[f>>2]|0;g=k[e>>2]|0;k[f>>2]=e+4;f=a+24|0;e=k[f>>2]|0;if((b|0)<=0)if(!b){b=e&~k[10940+(c<<3)>>2];k[f>>2]=b}else b=e;else{b=k[10940+(c<<3)>>2]|e;k[f>>2]=b}if((e|0)!=(b|0)?(d=k[a+4>>2]|0,(d|0)!=0):0)do{b=d+88|0;j[b>>1]=j[b>>1]|8;d=k[d+52>>2]|0}while((d|0)!=0);if(!g)d=0;else{k[g>>2]=(k[10940+(c<<3)>>2]&k[f>>2]|0)!=0&1;d=0}}else{e=k[f>>2]|0;b=k[e>>2]|0;k[f>>2]=e+4;e=k[f>>2]|0;c=k[e>>2]|0;k[f>>2]=e+4;e=k[f>>2]|0;d=k[e>>2]|0;k[f>>2]=e+4;d=Sh(a,b,c,d)|0}while(0);r=h;return d|0}function vf(a){a=a|0;a=a+32|0;L=k[a+4>>2]|0;return k[a>>2]|0}function wf(a){a=a|0;return k[a+80>>2]|0}function xf(a){a=a|0;return k[a+84>>2]|0}function yf(a){a=a|0;return Th(a,0)|0}function zf(a){a=a|0;return Th(a,1)|0}function Af(a,b,c){a=a|0;b=b|0;c=c|0;k[a+444>>2]=b;k[a+448>>2]=c;k[a+452>>2]=0;k[a+492>>2]=0;return 0}function Bf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=(b|0)>0;k[a+292>>2]=e?c:0;k[a+300>>2]=e?b:0;k[a+296>>2]=e?d:0;return}function Cf(a,b){a=a|0;b=b|0;var c=0;c=(b|0)>0;k[a+444>>2]=c?74:0;k[a+448>>2]=c?a:0;k[a+452>>2]=0;k[a+492>>2]=c?b:0;return 0}function Df(a){a=a|0;k[a+240>>2]=1;return}function Ef(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return Tg(a,Vh(a,b,c,d,e,f,g,h,0)|0)|0}function Ff(a,b,c,d,e,f,g,h,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var l=0,m=0,n=0;do if(j){l=rh(a,12,0)|0;if(!l){hc[j&31](e);d=1;break}m=l;n=m;i[n>>0]=0;i[n+1>>0]=0;i[n+2>>0]=0;i[n+3>>0]=0;m=m+4|0;i[m>>0]=0;i[m+1>>0]=0;i[m+2>>0]=0;i[m+3>>0]=0;k[l+4>>2]=j;k[l+8>>2]=e;d=Vh(a,b,c,d,e,f,g,h,l)|0;if(!(k[l>>2]|0)){hc[j&31](e);rg(a,l)}}else d=Vh(a,b,c,d,e,f,g,h,0)|0;while(0);return Tg(a,d)|0}function Gf(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;b=Wh(a,b,-1)|0;d=Vh(a,b,c,d,e,f,g,h,0)|0;rg(a,b);return Tg(a,d)|0}function Hf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!b)d=0;else{d=b;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-b&1073741823}if(!(Xh(a,b,d,c,1,0)|0))d=Vh(a,b,c,1,0,57,0,0,0)|0;else d=0;return Tg(a,d)|0}function If(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+180|0;d=k[e>>2]|0;k[a+176>>2]=b;k[e>>2]=c;return d|0}function Jf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+188|0;d=k[e>>2]|0;k[a+184>>2]=b;k[e>>2]=c;return d|0}function Kf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+192|0;d=k[e>>2]|0;k[a+196>>2]=b;k[e>>2]=c;return d|0}function Lf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+208|0;d=k[e>>2]|0;k[a+212>>2]=b;k[e>>2]=c;return d|0}function Mf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+200|0;d=k[e>>2]|0;k[a+204>>2]=b;k[e>>2]=c;return d|0}function Nf(a,b){a=a|0;b=b|0;var c=0;if((b|0)>0)c=21;else{b=0;c=0}k[a+216>>2]=c;k[a+220>>2]=b;return 0}function Of(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=a+220|0;d=k[e>>2]|0;k[a+216>>2]=b;k[e>>2]=c;return d|0}function Pf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();f=l;if(d)k[d>>2]=-1;if(e)k[e>>2]=-1;if(c>>>0>3)b=21;else{if((b|0)!=0?(i[b>>0]|0)!=0:0){g=_h(a,b)|0;if((g|0)<0){k[f>>2]=b;zg(a,1,10952,f);b=1}else h=10}else{g=10;h=10}do if((h|0)==10){k[a+452>>2]=0;b=$h(a,g,c,d,e)|0;k[a+52>>2]=b;f=k[a+236>>2]|0;if(f){g=f+8|0;if(!(j[g>>1]&9312)){j[g>>1]=1;break}else{Ag(f);break}}}while(0);b=Tg(a,b)|0}r=l;return b|0}function Qf(a,b){a=a|0;b=b|0;return Pf(a,b,0,0,0)|0}function Rf(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g;do if(a){b=k[a+76>>2]|0;if(!((b|0)==1266094736|(b|0)==-1607883113|(b|0)==-264537850)){k[e>>2]=15248;gd(21,15256,e);b=11008;break}f=a+65|0;if(!(i[f>>0]|0)){d=a+236|0;b=Xg(k[d>>2]|0,2)|0;if(!b){c=k[a+52>>2]|0;if((c|0)!=516){b=c&255;if(b>>>0>26|(b|0)==2)b=16328;else b=k[15488+(b<<2)>>2]|0}else b=16344;zg(a,c,b,e);b=Xg(k[d>>2]|0,2)|0}i[f>>0]=0}else b=10976}else b=10976;while(0);r=g;return b|0}function Sf(a){a=a|0;var b=0,c=0,d=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;do if(a){d=k[a+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){k[b>>2]=15248;gd(21,15256,b);k[b>>2]=129704;k[b+4>>2]=10788;gd(21,13648,b);a=21;break}if(!(i[a+65>>0]|0))a=k[a+56>>2]&k[a+52>>2];else a=7}else a=7;while(0);r=c;return a|0}function Tf(a){a=a|0;var b=0,c=0,d=0;c=r;r=r+16|0;if((r|0)>=(s|0))ka();b=c;do if(a){d=k[a+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){k[b>>2]=15248;gd(21,15256,b);k[b>>2]=129713;k[b+4>>2]=10788;gd(21,13648,b);a=21;break}if(!(i[a+65>>0]|0))a=k[a+52>>2]|0;else a=7}else a=7;while(0);r=c;return a|0}function Uf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=k[15488+(a<<2)>>2]|0}else a=16344;return a|0}function Vf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(b>>>0<=11){d=a+(b<<2)+88|0;a=k[d>>2]|0;if((c|0)>-1){b=k[11088+(b<<2)>>2]|0;k[d>>2]=(b|0)<(c|0)?b:c}}else a=-1;return a|0}function Wf(a,b){a=a|0;b=b|0;return ai(a,b,6,0)|0}function Xf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ai(a,b,c,d)|0}function Yf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;k[b>>2]=0;c=Qc()|0;if(!c){e=vg(40,0)|0;if(e){a=(a|0)==0?11136:a;c=e+0|0;d=c+40|0;do{i[c>>0]=0;c=c+1|0}while((c|0)<(d|0));j[e+8>>1]=1;k[e+32>>2]=0;ah(e,a,-1,2,0)|0}a=Xg(e,1)|0;if(a){c=ai(a,b,6,0)|0;if(!c){c=k[b>>2]|0;a=k[(k[c+16>>2]|0)+12>>2]|0;if(!(j[a+78>>1]&1)){i[c+62>>0]=2;i[a+77>>0]=2;c=0}else c=0}}else c=7;Rh(e);c=c&255}return c|0}function Zf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Tg(a,bi(a,b,c&255,d,e,0)|0)|0}function _f(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Tg(a,bi(a,b,c&255,d,e,f)|0)|0}function $f(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Wh(a,b,-1)|0;if(!b)b=0;else{c=bi(a,b,c&255,d,e,0)|0;rg(a,b);b=c}return Tg(a,b)|0}function ag(a,b,c){a=a|0;b=b|0;c=c|0;k[a+224>>2]=c;k[a+228>>2]=0;k[a+232>>2]=b;return 0}function bg(a,b,c){a=a|0;b=b|0;c=c|0;k[a+224>>2]=0;k[a+228>>2]=c;k[a+232>>2]=b;return 0}function cg(a){a=a|0;return l[a+63>>0]|0|0}function dg(){return}function eg(a,b,c,d,e,f,g,h,l){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+16|0;if((r|0)>=(s|0))ka();x=z;y=z+8|0;k[y>>2]=0;n=k[a+20>>2]|0;if((n|0)>0){m=k[a+16>>2]|0;p=0;do{o=k[m+(p<<4)+4>>2]|0;if(o)k[(k[o+4>>2]|0)+4>>2]=k[o>>2];p=p+1|0}while((p|0)!=(n|0))}m=ci(a,y)|0;w=(m|0)!=0;a:do if((!w?(u=di(a,c,b)|0,(u|0)!=0):0)?(k[u+12>>2]|0)==0:0){do if(d){t=j[u+38>>1]|0;b:do if(t<<16>>16>0){b=k[u+4>>2]|0;n=t<<16>>16;q=0;while(1){o=b+(q*24|0)|0;p=q+1|0;if(!(id(k[o>>2]|0,d)|0)){p=q;break b}if((p|0)<(n|0))q=p;else break}}else{p=0;o=0}while(0);if((p|0)==(t<<16>>16|0)){if(i[u+44>>0]&32){b=0;t=0;u=0;o=0;q=0;p=0;break a}if(!(ei(d)|0)){b=0;t=0;u=0;o=0;q=0;p=0;break a}v=j[u+36>>1]|0;n=v<<16>>16;if(v<<16>>16<=-1){b=0;q=0;n=1;v=0;p=11144;break}p=n;o=(k[u+4>>2]|0)+(n*24|0)|0}if(o){if((j[u+36>>1]|0)==(p|0))n=(i[u+44>>0]&8)!=0;else n=0;b=n&1;q=(i[o+20>>0]|0)!=0&1;n=i[o+23>>0]&1;v=k[o+16>>2]|0;p=k[o+12>>2]|0}else{b=0;q=0;n=1;v=0;p=11144}}else{b=0;q=0;n=1;v=0;p=11144}while(0);t=q;o=n;q=(v|0)==0?11152:v}else{b=0;t=0;u=0;o=0;q=0;p=0}while(0);if(e)k[e>>2]=p;if(f)k[f>>2]=q;if(g)k[g>>2]=t;if(h)k[h>>2]=o;if(l)k[l>>2]=b;n=k[y>>2]|0;if(!(w|(u|0)!=0)){rg(a,n);k[x>>2]=c;k[x+4>>2]=d;n=zh(a,11160,x)|0;k[y>>2]=n;m=1}k[x>>2]=n;zg(a,m,(n|0)!=0?10344:0,x);rgrg(a,k[b>>2]|0);rg(a,k[b+4>>2]|0);Lk(a,k[b+12>>2]|0);Mk(a,k[b+16>>2]|0);rg(a,b)}return}function pg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,l=0;do if(b){f=(a|0)!=0;if(!(f?(k[a+520>>2]|0)!=0:0))c=4;if((c|0)==4?(d=b+40|0,c=(j[d>>1]|0)+-1<<16>>16,j[d>>1]=c,c<<16>>16!=0):0)break;c=k[b+8>>2]|0;if(c){e=a+520|0;do{d=c;c=k[c+20>>2]|0;if(!(f?(k[e>>2]|0)!=0:0))Nk((k[d+24>>2]|0)+24|0,k[d>>2]|0,0)|0;Ok(a,d)}while((c|0)!=0)}c=k[b+16>>2]|0;if(c){h=(a|0)==0;i=b+68|0;l=a+520|0;do{if(!(!h?(k[l>>2]|0)!=0:0)){d=c+16|0;g=k[d>>2]|0;f=c+12|0;e=k[f>>2]|0;if(!g)Nk((k[i>>2]|0)+56|0,k[((e|0)==0?c:e)+8>>2]|0,e)|0;else k[g+12>>2]=e;f=k[f>>2]|0;if(f)k[f+16>>2]=k[d>>2]}Pk(a,k[c+28>>2]|0);Pk(a,k[c+32>>2]|0);d=c;c=k[c+4>>2]|0;rg(a,d)}while((c|0)!=0)}Qk(a,b);rg(a,k[b>>2]|0);rg(a,k[b+20>>2]|0);Rk(a,k[b+12>>2]|0,1);Sk(a,k[b+24>>2]|0);if(!((a|0)!=0?(k[a+520>>2]|0)!=0:0))Tk(0,b)|0;f=b+56|0;c=k[f>>2]|0;if(c){g=b+52|0;d=k[g>>2]|0;if((d|0)>0){e=0;do{if((e|0)!=1){rg(a,k[(k[f>>2]|0)+(e<<2)>>2]|0);d=k[g>>2]|0}e=e+1|0}while((e|0)<(d|0));c=k[f>>2]|0}rg(a,c)}rg(a,b)}while(0);return}function qg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;hh(k[b+60>>2]|0,j[b+68>>1]|0);e=b+16|0;hh(k[e>>2]|0,m[b+84>>1]<<1);c=k[b+192>>2]|0;if(c)do{d=c;c=k[c+24>>2]|0;Uk(a,k[d>>2]|0,k[d+4>>2]|0);rg(a,d)}while((c|0)!=0);c=j[b+70>>1]|0;if(c<<16>>16>0){d=b+64|0;c=c<<16>>16;do{c=c+-1|0;rg(a,k[(k[d>>2]|0)+(c<<2)>>2]|0)}while((c|0)>0)}Uk(a,k[b+4>>2]|0,k[b+32>>2]|0);rg(a,k[e>>2]|0);rg(a,k[b+168>>2]|0);rg(a,k[b+172>>2]|0);return}function rg(a,b){a=a|0;b=b|0;var c=0;do if(b){if(a){if(k[a+520>>2]|0){Vk(a,b);break}if((k[a+276>>2]|0)>>>0<=b>>>0?(k[a+280>>2]|0)>>>0>b>>>0:0){c=a+272|0;k[b>>2]=k[c>>2];k[c>>2]=b;a=a+252|0;k[a>>2]=(k[a>>2]|0)+-1;break}}$c(b)}while(0);return}function sg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=k[b+24>>2]|0;if(!e)c=0;else{c=e;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;c=c-e&1073741823}d=(((l[9328+(l[e>>0]|0)>>0]|0)+c|0)>>>0)%23|0;c=Wk(a,d,e,c)|0;if(!c){k[b+8>>2]=0;c=a+(d<<2)|0;k[b+28>>2]=k[c>>2];k[c>>2]=b}else{c=c+8|0;k[b+8>>2]=k[c>>2];k[c>>2]=b}return}function tg(a){a=a|0;var b=0,c=0;do if(a){b=k[2254]|0;if((b|0)==(a|0)){k[2254]=k[a+12>>2];break}if(b){do{c=b+12|0;b=k[c>>2]|0}while((b|0)!=(a|0)&(b|0)!=0);if((b|0)==(a|0))k[c>>2]=k[a+12>>2]}}while(0);return}function ug(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function vg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;b=ow(a|0,b|0,-1,-1)|0;c=L;do if(!(c>>>0>0|(c|0)==0&b>>>0>2147483390)){if(!(k[2186]|0)){b=qc[k[8744+36>>2]&127](a)|0;break}c=qc[k[8744+52>>2]&127](a)|0;k[2171]=a;if((k[2181]|0)>>>0<a>>>0)k[2181]=a;a=k[2260]|0;do if(a){b=k[2166]|0;d=9032|0;d=iw(k[d>>2]|0,k[d+4>>2]|0,c|0,((c|0)<0)<<31>>31|0)|0;e=L;if(0<(e|0)|0==(e|0)&b>>>0<d>>>0){k[2265]=0;break}else{k[2265]=1;d=k[2261]|0;k[2260]=0;vc[a&15](d,b,0,c);k[2260]=a;k[2261]=d;break}}while(0);b=qc[k[8744+36>>2]&127](c)|0;if(b){a=qc[k[8744+48>>2]&127](b)|0;a=(k[2166]|0)+a|0;k[2166]=a;if(a>>>0>(k[2176]|0)>>>0)k[2176]=a;a=(k[2175]|0)+1|0;k[2175]=a;if(a>>>0>(k[2185]|0)>>>0)k[2185]=a}else b=0}else b=0;while(0);return b|0}function wg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;do if(a){if((b|0)==0&(c|0)==0){$c(a);d=0;break}if(!(c>>>0>0|(c|0)==0&b>>>0>2147483391)){g=qc[k[8744+48>>2]&127](a)|0;f=qc[k[8744+52>>2]&127](b)|0;if((f|0)!=(g|0)){if(!(k[2186]|0)){d=wc[k[8744+44>>2]&127](a,f)|0;break}k[2171]=b;if((k[2181]|0)>>>0<b>>>0)k[2181]=b;c=f-g|0;d=k[2166]|0;h=9032|0;h=iw(k[h>>2]|0,k[h+4>>2]|0,c|0,((c|0)<0)<<31>>31|0)|0;i=L;if(!(0<(i|0)|0==(i|0)&d>>>0<h>>>0)?(e=k[2260]|0,(e|0)!=0):0){h=k[2261]|0;k[2260]=0;vc[e&15](h,d,0,c);k[2260]=e;k[2261]=h}d=wc[k[8744+44>>2]&127](a,f)|0;c=k[2260]|0;if((d|0)==0&(c|0)!=0){e=k[2166]|0;d=k[2261]|0;k[2260]=0;vc[c&15](d,e,0,b);k[2260]=c;k[2261]=d;d=wc[k[8744+44>>2]&127](a,f)|0}if(d){c=(qc[k[8744+48>>2]&127](d)|0)-g|0;c=(k[2166]|0)+c|0;k[2166]=c;if(c>>>0>(k[2176]|0)>>>0)k[2176]=c}else d=0}else d=a}else d=0}else d=vg(b,c)|0;while(0);return d|0}function xg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,m=0.0,n=0.0,o=0,q=0.0,u=0.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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=r;r=r+96|0;if((r|0)>=(s|0))ka();W=Y+8|0;X=Y;V=Y+16|0;if(!b){e=0;f=0;Q=0}else{e=b&2;if(!e)f=0;else{F=k[d>>2]|0;f=k[F>>2]|0;k[d>>2]=F+4}e=e&255;Q=(b&1|0)!=0}P=e<<24>>24==0;M=e<<24>>24!=0;N=f+4|0;O=f+8|0;K=a+12|0;e=0;a:while(1){b=i[c>>0]|0;if(b<<24>>24==37){b=c;c=e}else if(b<<24>>24){b=c;do{b=b+1|0;F=i[b>>0]|0}while(!(F<<24>>24==37|F<<24>>24==0));Xk(a,c,b-c|0);if(!(i[b>>0]|0))break}else break;e=b+1|0;g=i[e>>0]|0;if(!(g<<24>>24)){R=10;break}h=g<<24>>24;o=0;j=0;v=0;g=0;x=0;y=0;b:while(1){switch(h|0){case 45:{w=j;g=1;break}case 32:{w=j;v=1;break}case 35:{o=1;w=j;break}case 33:{w=1;break}case 48:{w=j;y=1;break}case 43:{w=j;x=1;break}default:{z=o;w=j;break b}}j=b+2|0;F=i[j>>0]|0;h=F<<24>>24;if(!(F<<24>>24)){e=j;z=o;break}else{b=e;e=j;j=w}}if((h|0)!=42)if((h+-48|0)>>>0<10){j=0;do{j=h+-48+(j*10|0)|0;e=e+1|0;h=i[e>>0]|0}while((h+-48|0)>>>0<10);J=g;I=j&2147483647}else{J=g;I=0}else{if(P){F=k[d>>2]|0;j=k[F>>2]|0;k[d>>2]=F+4}else j=Yk(f)|0;if((j|0)<0){g=1;j=(j|0)==-2147483648?0:0-j|0}h=e+1|0;e=h;h=i[h>>0]|0;J=g;I=j}do if((h|0)==46){j=e+1|0;g=i[j>>0]|0;if(g<<24>>24!=42){h=g<<24>>24;if((g+-48&255)<10)g=0;else{e=j;C=0;break}while(1){g=h+-48+(g*10|0)|0;e=e+2|0;F=i[e>>0]|0;h=F<<24>>24;if((F+-48&255)<10){F=j;j=e;e=F}else break}C=g&2147483647;break}if(P){F=k[d>>2]|0;j=k[F>>2]|0;k[d>>2]=F+4}else j=Yk(f)|0;e=e+2|0;h=i[e>>0]|0;if((j|0)<0)C=(j|0)==-2147483648?-1:0-j|0;else C=j}else C=-1;while(0);do if((h|0)==108){j=e+1|0;h=i[j>>0]|0;if(h<<24>>24==108){h=e+2|0;e=h;h=i[h>>0]|0;j=1;break}else{e=j;h=h<<24>>24;j=0;break}}else j=0;while(0);o=0;while(1){g=48752+(o*6|0)|0;if((h|0)==(i[g>>0]|0)){h=g;g=o;R=46;break}o=o+1|0;if((o|0)>=23){H=48752;F=0;break}}if((R|0)==46){R=0;if(!(Q|g>>>0<20))break;H=h;F=i[48755+(g*6|0)>>0]|0}c:do switch(F&255|0){case 14:{j=0;R=50;break}case 1:case 16:{R=50;break}case 13:{j=k[d>>2]|0;b=k[j>>2]|0;k[d>>2]=j+4;j=k[d>>2]|0;h=k[j>>2]|0;k[d>>2]=j+4;j=k[b+(h*72|0)+12>>2]|0;if(j){g=j;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;Xk(a,j,g-j&1073741823);Xk(a,28928,1)}g=k[b+(h*72|0)+16>>2]|0;if(!g)b=0;else{b=g;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;b=b-g&1073741823}Xk(a,g,b);v=c;h=0;b=0;j=0;break}case 4:case 3:case 2:{do if(!P){j=k[N>>2]|0;if((k[f>>2]|0)>(j|0)){k[N>>2]=j+1;m=+Zg(k[(k[O>>2]|0)+(j<<2)>>2]|0);R=92;break}else{j=(C|0)<0?6:C;m=0.0;R=94;break}}else{R=k[d>>2]|0;k[t>>2]=k[R>>2];k[t+4>>2]=k[R+4>>2];m=+p[t>>3];k[d>>2]=R+8;R=92}while(0);if((R|0)==92){R=0;j=(C|0)<0?6:C;if(m<0.0){m=-m;G=45}else R=94}if((R|0)==94){R=0;if(!(x<<24>>24))G=v<<24>>24==0?0:32;else G=43}C=F<<24>>24==4;g=((C&(j|0)>0)<<31>>31)+j|0;j=g&4095;if(!j)n=.5;else{n=.5;do{j=j+-1|0;n=n*.1}while((j|0)>0)}B=F<<24>>24==2;if(B)m=m+n;p[W>>3]=m;p[X>>3]=+p[W>>3];if(+p[W>>3]!=+p[X>>3]){v=48960;h=3;b=I;j=0}else{if(m>0.0){o=0;q=1.0;while(1){u=q*1.e+100;if(m>=u&(o|0)<351){o=o+100|0;q=u}else break}while(1){u=q*1.e+64;if(m>=u&(o|0)<351){o=o+64|0;q=u}else break}while(1){u=q*1.0e8;if(m>=u&(o|0)<351){o=o+8|0;q=u}else break}while(1){u=q*10.0;if((o|0)<351&m>=u){o=o+1|0;q=u}else break}m=m/q;if(m<1.0e-08)do{m=m*1.0e8;o=o+-8|0}while(m<1.0e-08);if(m<1.0)do{m=m*10.0;o=o+-1|0}while(m<1.0);if((o|0)>350){if(G<<24>>24==43)g=48976;else if(G<<24>>24==45)g=48968;else g=48984;c=g;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;v=g;h=c-g&1073741823;b=I;j=0;break c}}else o=0;if(!B){m=n+m;if(!(m>=10.0))E=o;else{m=m*.1;E=o+1|0}}else E=o;if(C){j=(E|0)<-4|(g|0)<(E|0);C=z<<24>>24==0&1;g=g-(j?0:E)|0;j=j?3:2}else{C=w;j=F}D=j<<24>>24==3;c=D?0:E;o=(c|0)>0;j=ow(g|0,((g|0)<0)<<31>>31|0,I|0,((I|0)<0)<<31>>31|0)|0;o=ow(j|0,L|0,(o?c:0)|0,(o?((c|0)<0)<<31>>31:0)|0)|0;j=L;if((j|0)>0|(j|0)==0&o>>>0>55){o=ow(o|0,j|0,15,0)|0;o=vg(o,L)|0;if(!o){R=124;break a}else{v=o;F=o}}else{v=V;F=0}o=((w&255)*10|0)+16|0;A=(w|z)&255|(g|0)>0;if(!(G<<24>>24))B=v;else{i[v>>0]=G;B=v+1|0}if((c|0)<0){i[B>>0]=48;b=2;j=B+1|0;x=c}else{z=~c;z=(z|0)>-1?z:-1;x=-2-z|0;z=c+z|0;h=B;while(1){if((o|0)<1)b=48;else{j=~~m;b=j+48&255;m=(m-+(j|0))*10.0;o=o+-1|0}i[h>>0]=b;if((c|0)>0){h=h+1|0;c=c+-1|0}else break}b=z+3|0;j=B+(z+2)|0}h=(A|0)==0;if(!h){i[j>>0]=46;j=B+b|0}if((x+1|0)<0){kw(j|0,48,~x|0)|0;j=j+~x|0;g=g+1+x|0}if((g|0)>0){b=j;c=g;while(1){c=c+-1|0;if((o|0)<1)x=48;else{B=~~m;x=B+48&255;m=(m-+(B|0))*10.0;o=o+-1|0}i[b>>0]=x;if((c|0)<=0)break;else b=b+1|0}j=j+g|0}d:do if(!(C<<24>>24==0|h)){h=j;while(1){j=h+-1|0;g=i[j>>0]|0;if(g<<24>>24==46)break;else if(g<<24>>24!=48){j=h;break d}i[j>>0]=0;h=j}if(!(w<<24>>24)){i[j>>0]=0;break}else{i[h>>0]=48;j=h+1|0;break}}while(0);if(D){h=j+1|0;i[j>>0]=i[48912+(l[H+4>>0]|0)>>0]|0;g=j+2|0;if((E|0)<0){i[h>>0]=45;h=0-E|0}else{i[h>>0]=43;h=E}if((h|0)>99){i[g>>0]=((h|0)/100|0)+48;c=4;b=5;g=j+3|0;h=(h|0)%100|0}else{c=3;b=4}i[g>>0]=((h|0)/10|0)+48;i[j+c>>0]=((h|0)%10|0)+48;j=j+b|0}i[j>>0]=0;b=v;h=j-b|0;if(!(J<<24>>24==0&y<<24>>24!=0&(I|0)>(h|0))){b=I;j=F;break c}g=I-h|0;if((h|0)>=0){c=I;while(1){i[v+c>>0]=i[v+(c-g)>>0]|0;if((c|0)>(g|0))c=c+-1|0;else break}}if((I|0)==(h|0)){h=I;b=I;j=F;break c}kw(v+(G<<24>>24!=0&1)|0,48,I+b-j|0)|0;h=I;b=I;j=F}break}case 5:{if(P){h=k[K>>2]|0;b=k[d>>2]|0;v=k[b>>2]|0;k[d>>2]=b+4;k[v>>2]=h;v=c;h=0;b=0;j=0}else{v=c;h=0;b=0;j=0}break}case 8:{i[V>>0]=37;v=V;h=1;b=I;j=0;break}case 9:{if(!P){b=Zk(f)|0;if(!b)j=0;else j=i[b>>0]|0}else{F=k[d>>2]|0;j=k[F>>2]|0;k[d>>2]=F+4}if((C|0)>1){g=C+-1|0;b=I-g|0;if(!((b|0)<2|J<<24>>24!=0)){_k(a,b+-1|0,32);b=0}c=j&255;_k(a,g,c)}else{c=j&255;b=I}i[V>>0]=c;v=V;h=1;j=0;break}case 7:case 6:{if(M)g=Zk(f)|0;else{E=k[d>>2]|0;g=k[E>>2]|0;k[d>>2]=E+4}if(!g){c=10360;j=0}else{c=g;j=F<<24>>24!=7|M?0:g}if((C|0)>-1){if((C|0)>0)g=0;else{v=c;h=0;b=I;break c}while(1){h=g+1|0;if(!(i[c+g>>0]|0)){v=c;h=g;b=I;break c}if((h|0)<(C|0))g=h;else{v=c;b=I;break}}}else{if(!c){v=0;h=0;b=I;break c}else g=c;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;v=c;h=g-c&1073741823;b=I;break c}break}case 15:case 11:case 10:{z=F<<24>>24==15?34:39;if(P){E=k[d>>2]|0;j=k[E>>2]|0;k[d>>2]=E+4}else j=Zk(f)|0;v=(j|0)==0;if(v)j=F<<24>>24==11?20304:48992;e:do if(!C){y=0;h=0}else{o=z&255;g=0;b=C;h=0;while(1){c=i[j+g>>0]|0;if(!(c<<24>>24)){y=g;break e}h=((c<<24>>24|0)==(o|0)&1)+h|0;g=g+1|0;b=b+-1|0;if(!b){y=g;break}}}while(0);w=F<<24>>24==11&(v^1);g=((w&1)<<1|1)+y+h|0;if((g|0)>70){h=vg(g,((g|0)<0)<<31>>31)|0;if(!h){R=197;break a}else{v=h;x=h}}else{v=V;x=0}if(w){i[v>>0]=z;g=1}else g=0;if((y|0)>0){o=z&255;b=0;do{h=i[j+b>>0]|0;c=g+1|0;i[v+g>>0]=h;if((h<<24>>24|0)==(o|0)){i[v+c>>0]=h;g=g+2|0}else g=c;b=b+1|0}while((b|0)!=(y|0))}if(w){i[v+g>>0]=z;g=g+1|0}i[v+g>>0]=0;h=g;b=I;j=x;break}case 12:{F=k[d>>2]|0;b=k[F>>2]|0;k[d>>2]=F+4;if((b|0)!=0?(U=k[b+4>>2]|0,(U|0)!=0):0){Xk(a,k[b>>2]|0,U);v=c;h=0;b=0;j=0}else{v=c;h=0;b=0;j=0}break}default:break a}while(0);if((R|0)==50){R=0;do if(!(i[H+2>>0]&1)){if(M){c=Yk(f)|0;o=L;B=0;break}if(!(j<<24>>24)){o=k[d>>2]|0;c=k[o>>2]|0;k[d>>2]=o+4;o=0;B=0;break}else{B=k[d>>2]|0;o=B;c=k[o>>2]|0;o=k[o+4>>2]|0;k[d>>2]=B+8;B=0;break}}else{do if(!M)if(!(j<<24>>24)){h=k[d>>2]|0;j=k[h>>2]|0;k[d>>2]=h+4;h=((j|0)<0)<<31>>31;break}else{E=k[d>>2]|0;h=E;j=k[h>>2]|0;h=k[h+4>>2]|0;k[d>>2]=E+8;break}else{j=Yk(f)|0;h=L}while(0);if((h|0)<0){c=iw(0,0,j|0,h|0)|0;o=L;B=45;break}if(!(x<<24>>24)){c=j;o=h;B=v<<24>>24==0?0:32}else{c=j;o=h;B=43}}while(0);A=(c|0)==0&(o|0)==0;if(!(y<<24>>24))x=C;else{x=I-(B<<24>>24!=0&1)|0;x=(C|0)<(x|0)?x:C}if((x|0)>=60){j=x+10|0;h=vg(j,((j|0)<0)<<31>>31)|0;if(!h){R=69;break}else{b=j;j=h;g=h}}else{b=70;j=0;g=V}y=g+(b+-1)|0;if(F<<24>>24==16){h=zw(c|0,o|0,10,0)|0;if(!(h>>>0<=3?(F=yw(c|0,o|0,10,0)|0,F=zw(F|0,L|0,10,0)|0,!((F|0)==1&(L|0)==0)):0))h=0;F=h<<1;i[g+(b+-2)>>0]=i[48896+(F|1)>>0]|0;h=g+(b+-3)|0;i[h>>0]=i[48896+F>>0]|0}else h=y;b=l[H+4>>0]|0;v=l[H+1>>0]|0;while(1){F=zw(c|0,o|0,v|0,0)|0;g=h+-1|0;i[g>>0]=i[48912+(F+b)>>0]|0;c=yw(c|0,o|0,v|0,0)|0;o=L;if((c|0)==0&(o|0)==0)break;else h=g}c=x-y+g|0;if((c|0)>0){b=h;h=g;while(1){g=b+-2|0;i[g>>0]=48;c=c+-1|0;if((c|0)<=0)break;else{b=h;h=g}}}if(B<<24>>24){g=h+-2|0;i[g>>0]=B}if((!(A|z<<24>>24==0)?(S=i[H+5>>0]|0,S<<24>>24!=0):0)?(T=48952+(S&255)|0,!(S<<24>>24==3|S<<24>>24==6)):0){c=i[T>>0]|0;h=T;do{g=g+-1|0;i[g>>0]=c;h=h+1|0;c=i[h>>0]|0}while(c<<24>>24!=0)}v=g;h=y-g|0;b=I}g=b-h|0;c=(g|0)<1;if(!(c|J<<24>>24!=0))_k(a,g,32);Xk(a,v,h);if(!(c|J<<24>>24==0))_k(a,g,32);if(j)$c(j);c=e+1|0;e=v}if((R|0)==10)Xk(a,48744,1);else if((R|0)==69){i[a+25>>0]=1;k[a+16>>2]=0}else if((R|0)==124){i[a+25>>0]=1;k[a+16>>2]=0}else if((R|0)==197){i[a+25>>0]=1;k[a+16>>2]=0}r=Y;return}function yg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=a+8|0;b=k[d>>2]|0;do if(((b|0)!=0?(f=a+12|0,i[b+(k[f>>2]|0)>>0]=0,c=i[a+24>>0]|0,c<<24>>24!=0):0)?(e=a+4|0,(k[d>>2]|0)==(k[e>>2]|0)):0){if(c<<24>>24==1){b=(k[f>>2]|0)+1|0;b=rh(k[a>>2]|0,b,((b|0)<0)<<31>>31)|0}else b=Yc((k[f>>2]|0)+1|0)|0;k[d>>2]=b;if(!b){i[a+25>>0]=1;k[a+16>>2]=0;break}else{pw(b|0,k[e>>2]|0,(k[f>>2]|0)+1|0)|0;break}}while(0);return k[d>>2]|0}function zg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();h=l;e=a+52|0;k[e>>2]=b;a:do if(!c){k[e>>2]=b;b=k[a+236>>2]|0;if(b){e=b+8|0;if(!(j[e>>1]&9312)){j[e>>1]=1;break}else{Ag(b);break}}}else{g=a+236|0;do if(!(k[g>>2]|0)){e=rh(a,40,0)|0;if(!e){k[g>>2]=e;break a}else{b=e+0|0;f=b+40|0;do{i[b>>0]=0;b=b+1|0}while((b|0)<(f|0));j[e+8>>1]=1;k[e+32>>2]=a;k[g>>2]=e;break}}while(0);k[h>>2]=d;e=$k(a,c,h)|0;b=k[g>>2]|0;if(b)ah(b,e,-1,1,75)|0}while(0);r=l;return}function Ag(a){a=a|0;var b=0,c=0;c=a+8|0;b=j[c>>1]|0;if(b&8192){bl(a,k[a>>2]|0)|0;b=j[c>>1]|0}b=b&65535;do if(!(b&1024)){if(b&32){cl(k[a>>2]|0);break}if(b&64){a=k[a>>2]|0;b=(k[a>>2]|0)+180|0;k[a+4>>2]=k[b>>2];k[b>>2]=a}}else hc[k[a+36>>2]&31](k[a+16>>2]|0);while(0);j[c>>1]=1;return}function Bg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();f=h;d=_h(b,c)|0;do if((d|0)==1){e=rh(a,536,0)|0;if(!e){zg(a,7,15776,f);d=0;break}kw(e|0,0,536)|0;k[e>>2]=b;if(!(dl(e)|0)){rg(a,k[e+4>>2]|0);Hh(e);rg(a,e);g=7;break}else{b=k[e+12>>2]|0;d=e+4|0;k[f>>2]=k[d>>2];zg(a,b,10344,f);rg(a,k[d>>2]|0);Hh(e);rgRg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=a+76|0;if((k[g>>2]|0)==1691352191?(Ol(a)|0)==0:0){Pl(a,0);Ql(a);f=a+20|0;h=a+16|0;b=k[h>>2]|0;if((k[f>>2]|0)>0){e=0;do{d=b+(e<<4)+4|0;c=k[d>>2]|0;if((c|0)!=0?(Rl(c),k[d>>2]=0,(e|0)!=1):0)k[b+(e<<4)+12>>2]=0;e=e+1|0;b=k[h>>2]|0}while((e|0)<(k[f>>2]|0))}b=k[b+28>>2]|0;if(b)vl(b);wl(a);xl(a);e=0;do{b=k[a+(e<<2)+336>>2]|0;if(b)do{d=b;b=k[b+28>>2]|0;if(d)do{Sl(a,d);c=d;d=k[d+8>>2]|0;rg(a,c)}while((d|0)!=0)}while((b|0)!=0);e=e+1|0}while((e|0)!=23);c=a+428|0;b=k[a+436>>2]|0;if(b)do{e=k[b+8>>2]|0;d=k[e+16>>2]|0;if(d)hc[d&31](k[e+8>>2]|0);d=k[e+36>>2]|0;if(d)hc[d&31](k[e+28>>2]|0);d=k[e+56>>2]|0;if(d)hc[d&31](k[e+48>>2]|0);rg(a,e);b=k[b>>2]|0}while((b|0)!=0);Tl(c);e=a+308|0;b=k[a+316>>2]|0;if(b)do{d=k[b+8>>2]|0;c=k[d+12>>2]|0;if(c)hc[c&31](k[d+8>>2]|0);rg(a,d);b=k[b>>2]|0}while((b|0)!=0);Tl(e);k[a+52>>2]=0;c=a+236|0;b=k[c>>2]|0;do if(b){d=b+8|0;if(!(j[d>>1]&9312)){j[d>>1]=1;break}else{Ag(b);b=k[c>>2]|0;break}}else b=0;while(0);Rh(b);d=a+168|0;if((k[d>>2]|0)>0){b=a+172|0;c=0;do{e=k[a>>2]|0;oc[k[e+52>>2]&15](e,k[(k[b>>2]|0)+(c<<2)>>2]|0);c=c+1|0}while((c|0)<(k[d>>2]|0))}else b=a+172|0;rg(a,k[b>>2]|0);k[g>>2]=-1254786768;rg(a,k[(k[h>>2]|0)+28>>2]|0);k[g>>2]=-1623446221;if(i[a+251>>0]|0)$c(k[a+276>>2]|0);$c(a)}return}function Sg(a){a=a|0;var b=0;b=k[a+40>>2]|0;if((b|0)==1369188723|(b|0)==-1108210269)b=Ug(a)|0;else b=0;Ul(a);return b|0}function Tg(a,b){a=a|0;b=b|0;do if(a)if((i[a+65>>0]|0)!=0|(b|0)==3082){Vl(a);a=7;break}else{a=k[a+56>>2]&b;break}else a=b&255;while(0);return a|0}function Ug(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();c=e;d=k[a>>2]|0;Wl(a)|0;if((k[a+76>>2]|0)>-1){mh(a)|0;b=a+44|0;rg(d,k[b>>2]|0);k[b>>2]=0;b=a+88|0;c=j[b>>1]|0;if(c&16)j[b>>1]=c|8}else{b=k[a+80>>2]|0;if((b|0)!=0?(j[a+88>>1]&8)!=0:0){f=a+44|0;g=k[f>>2]|0;k[c>>2]=g;zg(d,b,(g|0)!=0?10344:0,c);rg(d,k[f>>2]|0);k[f>>2]=0}}b=a+44|0;rg(k[a>>2]|0,k[b>>2]|0);k[b>>2]=0;k[a+20>>2]=0;b=a+136|0;k[b>>2]=0;k[b+4>>2]=0;k[a+40>>2]=649915045;r=e;return k[d+56>>2]&k[a+80>>2]|0}function Vg(a){a=a|0;var b=0;if(j[a+8>>1]&9312)Ag(a);b=a+24|0;if(k[b>>2]|0){rgrg(g,k[b+20>>2]|0);b=b+40|0;if(b>>>0>=f>>>0)break a}}do{b=a+8|0;if(!(j[b>>1]&9312)){c=a+24|0;if(k[c>>2]|0){rg(g,k[a+20>>2]|0);k[c>>2]=0}}else Vg(a);j[b>>1]=128;a=a+40|0}while(a>>>0<f>>>0);i[d>>0]=e}while(0);return}function ih(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();f=e;k[f>>2]=d;d=$k(b,c,f)|0;rg(b,k[a>>2]|0);k[a>>2]=d;r=e;return}function jh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,n=0,o=0;i=a+24|0;d=k[i>>2]|0;do if((d|0)<(b|0)){h=(b|0)<32?32:b;b=(d|0)>0;if((c|0)!=0&b?(e=a+16|0,f=k[e>>2]|0,g=a+20|0,(f|0)==(k[g>>2]|0)):0){d=$l(k[a+32>>2]|0,f,h,((h|0)<0)<<31>>31)|0;k[g>>2]=d;k[e>>2]=d;c=0}else{d=a+32|0;if(b){b=a+20|0;rg(k[d>>2]|0,k[b>>2]|0)}else b=a+20|0;d=rh(k[d>>2]|0,h,((h|0)<0)<<31>>31)|0;k[b>>2]=d}if(!d){c=a+8|0;if(!(j[c>>1]&9312))j[c>>1]=1;else Ag(a);k[a+16>>2]=0;k[i>>2]=0;c=7;break}b=k[a+32>>2]|0;do if(!b)b=qc[k[8744+48>>2]&127](d)|0;else{if((k[b+276>>2]|0)>>>0<=d>>>0?(k[b+280>>2]|0)>>>0>d>>>0:0){b=m[b+248>>1]|0;break}b=qc[k[8744+48>>2]&127](d)|0}while(0);k[i>>2]=b;o=21}else o=21;while(0);if((o|0)==21){if(((c|0)!=0?(l=k[a+16>>2]|0,(l|0)!=0):0)?(n=k[a+20>>2]|0,(l|0)!=(n|0)):0)pw(n|0,l|0,k[a+12>>2]|0)|0;b=a+8|0;c=j[b>>1]|0;if(!(c&1024))d=a+16|0;else{d=a+16|0;hc[k[a+36>>2]&31](k[d>>2]|0);c=j[b>>1]|0}k[d>>2]=k[a+20>>2];j[b>>1]=c&58367;c=0}return c|0}function kh(a,b){a=a|0;b=b|0;if((k[a+24>>2]|0)<(b|0))a=jh(a,b,0)|0;else{k[a+16>>2]=k[a+20>>2];a=a+8|0;j[a>>1]=(m[a>>1]|0)&13;a=0}return a|0}
11 function rq(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0;da=r;r=r+192|0;if((r|0)>=(s|0))ka();_=da+48|0;Y=da+24|0;X=da+160|0;E=da+156|0;P=da+152|0;H=da+148|0;S=da+144|0;K=da+140|0;D=da+16|0;ba=da;v=da+128|0;u=da+116|0;w=da+96|0;e=da+88|0;ca=a+8|0;$=k[ca>>2]|0;aa=k[a>>2]|0;k[ba+0>>2]=k[9286];k[ba+4>>2]=k[9287];k[ba+8>>2]=k[9288];a:do switch(b|0){case 8:{v=k[$>>2]|0;z=v+65|0;if(((i[z>>0]|0)==0?(i[$+18>>0]|0)==0:0)?(V=$+64|0,(k[V>>2]|0)==0):0){y=Tq($)|0;if(y){do{}while((Uq(y,61)|0)!=0);Bh(y,24,0,0,0)|0;do if(!(i[z>>0]|0)){h=$+332|0;q=k[h>>2]|0;if((q|0)==0?(k[$+316>>2]|0)==0:0)break;n=y+32|0;o=k[n>>2]|0;if(o)k[(k[y+4>>2]|0)+8>>2]=o;k[(k[y+24>>2]|0)+88>>2]=o+-1;t=v+20|0;b:do if((k[t>>2]|0)>0){c=y+96|0;d=$+328|0;e=v+16|0;f=v+145|0;g=y+4|0;p=0;while(1){u=1<<p;if(((u&q|0)!=0?(k[c>>2]=k[c>>2]|u,_=k[(k[(k[e>>2]|0)+(p<<4)+12>>2]|0)+4>>2]|0,Ch(y,Bh(y,4,p,(k[d>>2]&u|0)!=0&1,k[$+(p<<2)+336>>2]|0)|0,_,-14),(i[f>>0]|0)==0):0)?(J=k[g>>2]|0,(J|0)!=0):0)i[J+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=1;p=p+1|0;if((p|0)>=(k[t>>2]|0))break b;q=k[h>>2]|0}}while(0);n=$+452|0;if((k[n>>2]|0)>0){h=$+520|0;g=0;do{o=k[(k[(k[h>>2]|0)+(g<<2)>>2]|0)+60>>2]|0;c:do if(!o)o=0;else while(1){if((k[o>>2]|0)==(v|0))break c;o=k[o+24>>2]|0;if(!o){o=0;break}}while(0);Ch(y,Bh(y,146,0,0,0)|0,o,-10);g=g+1|0}while((g|0)<(k[n>>2]|0))}k[n>>2]=0;n=Tq($)|0;h=$+396|0;if((k[h>>2]|0)>0){g=$+400|0;f=0;do{Y=k[g>>2]|0;_=k[Y+(f<<4)+12>>2]|0;Ch(n,Bh(n,145,k[Y+(f<<4)>>2]|0,k[Y+(f<<4)+4>>2]|0,l[Y+(f<<4)+8>>0]|0)|0,_,-2);f=f+1|0}while((f|0)<(k[h>>2]|0))}d=k[$+8>>2]|0;o=k[$+404>>2]|0;if(o){c=(k[$>>2]|0)+16|0;p=d+32|0;q=d+4|0;do{h=k[o+8>>2]|0;n=k[o+12>>2]|0;Vq($,0,h,k[(k[(k[c>>2]|0)+(h<<4)+12>>2]|0)+72>>2]|0,54);h=n+1|0;Bh(d,28,0,n,h)|0;g=k[p>>2]|0;e=n+-1|0;f=k[k[o+4>>2]>>2]|0;Ch(d,Bh(d,97,0,e,0)|0,f,0);f=g+9|0;Bh(d,108,0,f,0)|0;Bh(d,47,0,0,n)|0;Bh(d,78,e,g+7|0,n)|0;e=k[q>>2]|0;if(e)i[e+(((k[p>>2]|0)+-1|0)*20|0)+3>>0]=16;Bh(d,103,0,h,0)|0;Bh(d,47,0,1,n)|0;Bh(d,16,0,f,0)|0;Bh(d,9,0,g+2|0,0)|0;Bh(d,25,0,n,0)|0;Bh(d,61,0,0,0)|0;o=k[o>>2]|0}while((o|0)!=0)}n=k[$+316>>2]|0;if((n|0)!=0?(i[$+23>>0]=0,(k[n>>2]|0)>0):0){h=n+4|0;g=0;do{_=k[h>>2]|0;Wq($,k[_+(g*20|0)>>2]|0,k[_+(g*20|0)+16>>2]|0);g=g+1|0}while((g|0)<(k[n>>2]|0))}Bh(y,16,0,1,0)|0}while(0);if((k[V>>2]|0)==0?(i[z>>0]|0)==0:0){if((k[$+404>>2]|0)!=0?(W=$+68|0,(k[W>>2]|0)==0):0)k[W>>2]=1;Fh(y,$);k[$+12>>2]=101;i[$+16>>0]=0}else Z=48}else Z=48;if((Z|0)==48)k[$+12>>2]=1;k[$+68>>2]=0;k[$+72>>2]=0;k[$+76>>2]=0;k[$+440>>2]=0;k[$+332>>2]=0}break}case 33:{_=a+(aa<<4)+16|0;_q($,0,0,0,k[_>>2]|0);Rk(k[$>>2]|0,k[_>>2]|0,1);break}case 35:{e=k[a+(aa<<4)+20>>2]|0;d=k[a+(aa<<4)+16>>2]|0;if((e|0)==5?(Kc(d,20456,5)|0)==0:0){i[ba>>0]=32;break a}i[ba>>0]=0;k[_>>2]=e;k[_+4>>2]=d;yh($,20464,_);break}case 26:{Zq($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0,k[a+(aa+-4<<4)+16>>2]|0,0,0,k[a+(aa+-2<<4)+16>>2]|0);break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{k[ba>>2]=0;break}case 27:{i[(k[$>>2]|0)+250>>0]=0;Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{k[ba>>2]=1;break}case 32:{_q($,a+(aa+-2<<4)+16|0,a+(aa+-1<<4)+16|0,i[a+(aa<<4)+16>>0]|0,0);break}case 34:{i[ba>>0]=0;break}case 62:{dr($,0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0);break}case 63:{er($,0,0,0,0,k[a+(aa<<4)+16>>2]|0,0,0,0,0)|0;break}case 70:{k[ba>>2]=0;break}case 71:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2]&~k[a+(aa<<4)+20>>2]|k[a+(aa<<4)+16>>2];break}case 73:case 72:{k[ba>>2]=0;k[ba+4>>2]=0;break}case 74:{k[ba>>2]=k[a+(aa<<4)+16>>2];k[ba+4>>2]=255;break}case 76:{k[ba>>2]=7;break}case 75:{k[ba>>2]=k[a+(aa<<4)+16>>2]<<8;k[ba+4>>2]=65280;break}case 6:{i[$+450>>0]=1;k[$+440>>2]=0;break}case 5:{i[$+450>>0]=0;k[$+440>>2]=0;break}case 9:{e=k[a+(aa+-1<<4)+16>>2]|0;d=k[$>>2]|0;if((Xq($,22,37104,0,0)|0)==0?(B=Tq($)|0,(B|0)!=0):0){if((e|0)!=7?(C=d+20|0,(k[C>>2]|0)>0):0){e=(e|0)==9?2:1;d=B+96|0;g=0;do{Bh(B,4,g,e,0)|0;k[d>>2]=k[d>>2]|1<<g;g=g+1|0}while((g|0)<(k[C>>2]|0))}Bh(B,3,0,0,0)|0}break}case 46:{$=k[a+(aa+-3<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 44:{e=a+(aa<<4)+16|0;d=k[$+484>>2]|0;if((d|0)!=0?(F=j[d+38>>1]|0,F<<16>>16>=1):0){_=(F<<16>>16)+-1|0;Z=k[d+4>>2]|0;$=$q(k[$>>2]|0,e)|0;k[Z+(_*24|0)+12>>2]=$;$=ar($,Z+(_*24|0)+22|0)|0;i[Z+(_*24|0)+21>>0]=$}break}case 58:{_=cr($,157,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[v>>2]=_;k[v+4>>2]=k[a+(aa+-1<<4)+16>>2];k[v+8>>2]=k[a+(aa<<4)+24>>2];br($,v);break}case 59:{_=a+(aa<<4)+16|0;Z=cr($,97,0,0,_)|0;k[u>>2]=Z;_=k[_>>2]|0;k[u+4>>2]=_;k[u+8>>2]=_+(k[a+(aa<<4)+20>>2]|0);br($,u);break}case 61:{d=k[a+(aa<<4)+16>>2]|0;e=k[$+484>>2]|0;if((e|0)!=0?(q=j[e+38>>1]|0,q<<16>>16>=1):0)i[(k[e+4>>2]|0)+(((q<<16>>16)+-1|0)*24|0)+20>>0]=d;break}case 7:{i[$+450>>0]=2;k[$+440>>2]=0;break}case 13:{k[ba>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{k[ba>>2]=l[a+(aa<<4)+14>>0];break}case 18:case 17:{if((Xq($,22,37136,0,0)|0)==0?(y=Tq($)|0,(y|0)!=0):0)Bh(y,3,1,0,0)|0;break}case 38:{_=k[a+(aa+-2<<4)+16>>2]|0;k[ba>>2]=_;k[ba+4>>2]=(k[$+504>>2]|0)-_+(k[$+508>>2]|0);break}case 39:{u=a+(aa<<4)+16|0;q=k[$>>2]|0;d=k[$+484>>2]|0;d:do if(d){t=d+38|0;if((j[t>>1]|0)>=(k[q+96>>2]|0)){k[_>>2]=k[d>>2];yh($,36528,_);break}p=$q(q,u)|0;if(p){n=j[t>>1]|0;c=n<<16>>16;e:do if(n<<16>>16>0){o=i[9328+(l[p>>0]|0)>>0]|0;g=k[d+4>>2]|0;h=p+1|0;e=0;while(1){f=k[g+(e*24|0)>>2]|0;if(o<<24>>24==(i[9328+(l[f>>0]|0)>>0]|0)?(id(h,f+1|0)|0)==0:0)break;e=e+1|0;if((e|0)>=(c|0))break e}k[_>>2]=p;yh($,36552,_);rg(q,p);break d}else g=k[d+4>>2]|0;while(0);h=d+4|0;do if(!(c&7)){g=wo(q,g,(c*24|0)+192|0,0)|0;if(!g){rg(q,p);break d}else{k[h>>2]=g;n=j[t>>1]|0;break}}while(0);_=n<<16>>16;Z=g+(_*24|0)|0;k[Z+0>>2]=0;k[Z+4>>2]=0;k[Z+8>>2]=0;k[Z+12>>2]=0;k[Z+16>>2]=0;k[Z+20>>2]=0;k[Z>>2]=p;i[g+(_*24|0)+21>>0]=65;i[g+(_*24|0)+22>>0]=1;j[t>>1]=(j[t>>1]|0)+1<<16>>16}}while(0);Y=u;Z=k[Y+4>>2]|0;_=ba;k[_>>2]=k[Y>>2];k[_+4>>2]=Z;k[$+324>>2]=0;break}case 47:{$=k[a+(aa+-5<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 49:{$=k[a+(aa+-1<<4)+16>>2]|0;k[ba>>2]=$;k[ba+4>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0)-$;break}case 92:case 54:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=$+320|0;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break}case 57:case 55:{br($,a+(aa<<4)+16|0);break}case 64:{fr($,k[a+(aa+-1<<4)+16>>2]|0);break}case 65:{gr($,0,a+(aa+-2<<4)+16|0,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0);break}case 66:{d=k[a+(aa<<4)+16>>2]|0;e=k[$+484>>2]|0;if((e|0)!=0?(p=k[e+16>>2]|0,(p|0)!=0):0)i[p+24>>0]=d;break}case 67:{g=k[$+484>>2]|0;if((g|0)!=0?(A=(j[g+38>>1]|0)+-1|0,h=k[$>>2]|0,f=$q(h,a+(aa<<4)+16|0)|0,(f|0)!=0):0){if(!(hr($,f)|0)){rg(h,f);break a}n=g+4|0;rgrg(x,o);Ir($,g);k[_>>2]=v;Nr(h,g,zh(x,30072,_)|0);if(!(i[n>>0]|0)){d=0;e=w;break}}e=Nk((k[(k[t>>2]|0)+(g<<4)+12>>2]|0)+40|0,v,w)|0;if(e){i[x+65>>0]=1;d=0;break}d=k[f>>2]|0;if((d|0)==(k[w+24>>2]|0)){d=gn(d+8|0,k[w+4>>2]|0,_)|0;if(!d)d=0;else d=k[d+8>>2]|0;d=d+64|0;k[w+32>>2]=k[d>>2];k[d>>2]=w;d=0}else d=0}else{d=0;e=w}}else e=w;while(0);og(x,e);Kk(x,d);break}case 265:{A=a+(aa+-7<<4)+16|0;z=aa+-6|0;B=a+(z<<4)+16|0;h=k[a+(aa+-5<<4)+16>>2]|0;C=aa+-4|0;y=k[a+(C<<4)+16>>2]|0;C=k[a+(C<<4)+20>>2]|0;D=k[a+(aa+-2<<4)+16>>2]|0;E=k[a+(aa<<4)+16>>2]|0;d=k[a+(aa+-8<<4)+16>>2]|0;F=k[$>>2]|0;w=(k[a+(aa+-10<<4)+16>>2]|0)!=0;do if(w)if(!(k[a+(z<<4)+20>>2]|0)){k[Y>>2]=A;if(!D){n=0;o=0;break}else{q=1;Z=483;break}}else{yh($,29664,_);n=0;o=0;break}else{q=jr($,A,B,Y)|0;if((q|0)>-1&(D|0)!=0)Z=483;else{n=0;o=0}}while(0);do if((Z|0)==483){c=F+65|0;if(!(i[c>>0]|0)){u=F+145|0;if((i[u>>0]|0)!=0&(q|0)!=1){Z=D+12|0;rg(F,k[Z>>2]|0);k[Z>>2]=0}t=Or($,D)|0;if((i[u>>0]|0)==0?((t|0)!=0?(k[a+(z<<4)+20>>2]|0)==0:0):0)q=(k[t+68>>2]|0)==(k[(k[F+16>>2]|0)+28>>2]|0)?1:q;if((i[c>>0]|0)==0?(O=k[Y>>2]|0,Z=k[$>>2]|0,k[X>>2]=$,Z=k[Z+16>>2]|0,k[X+12>>2]=k[Z+(q<<4)>>2],k[X+4>>2]=k[Z+(q<<4)+12>>2],k[X+16>>2]=10720,k[X+20>>2]=O,k[X+8>>2]=(q|0)==1&1,(Pr(X,D)|0)==0):0){u=Or($,D)|0;if(!u){if((i[F+144>>0]|0)!=1){n=0;o=0;break}i[F+146>>0]=1;n=0;o=0;break}if(i[u+44>>0]&16){yh($,29712,_);n=0;o=0;break}o=$q(F,O)|0;if(o)if(!(Qr($,o)|0)){x=F+16|0;Z=gn((k[(k[x>>2]|0)+(q<<4)+12>>2]|0)+40|0,o,P)|0;if((Z|0)!=0?(k[Z+8>>2]|0)!=0:0)if(!d){k[_>>2]=O;yh($,29760,_);n=0;break}else{Fr($,q);n=0;break}v=k[u>>2]|0;if(!(Kc(v,25568,7)|0)){yh($,29792,_);n=$+64|0;k[n>>2]=(k[n>>2]|0)+1;n=0;break}p=k[u+12>>2]|0;if((p|0)!=0&(h|0)!=49){k[_>>2]=(h|0)==35?29872:29880;k[_+4>>2]=D;k[_+8>>2]=0;yh($,29832,_);n=0;break}g=(h|0)==49;if((p|0)==0&g){k[_>>2]=D;k[_+4>>2]=0;yh($,29888,_);n=0;break}f=u+68|0;u=k[f>>2]|0;i:do if(u){t=k[F+20>>2]|0;if((t|0)>0){d=k[x>>2]|0;e=0;while(1){c=e+1|0;if((k[d+(e<<4)+12>>2]|0)==(u|0)){c=e;break i}if((c|0)<(t|0))e=c;else break}}else c=0}else c=-1e6;while(0);u=k[x>>2]|0;d=k[u+(c<<4)>>2]|0;if(w)t=k[u+16>>2]|0;else t=d;u=(c|0)==1;if((Xq($,u|w?5:7,o,v,t)|0)==0?(Xq($,18,u?13184:13208,0,d)|0)==0:0){n=rh(F,36,0)|0;if(!n){n=0;break}v=n+0|0;d=v+36|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));k[n>>2]=o;o=ph(F,k[D+16>>2]|0)|0;k[n+4>>2]=o;k[n+20>>2]=k[(k[x>>2]|0)+(q<<4)+12>>2];k[n+24>>2]=k[f>>2];i[n+8>>0]=y;i[n+9>>0]=g|(h|0)==35?1:2;o=Rr(F,E,1,0)|0;k[n+12>>2]=o;o=Sr(F,C)|0;k[n+16>>2]=o;k[$+488>>2]=n;o=0}else n=0}else n=0;else{n=0;o=0}}else{n=0;o=0}}else{n=0;o=0}}while(0);rg(F,o);Io(F,D);Mk(F,C);Lk(F,E);if(!(k[$+488>>2]|0))og(F,n);if(!(k[a+(z<<4)+20>>2]|0)){Z=A;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break a}else{Z=B;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;break a}}case 269:case 266:{k[ba>>2]=35;break}case 267:{k[ba>>2]=31;break}case 268:{k[ba>>2]=49;break}case 284:{e=k[$>>2]|0;d=k[a+(aa+-1<<4)+16>>2]|0;c=k[a+(aa<<4)+16>>2]|0;f=i[a+(aa+-5<<4)+16>>0]|0;g=Tr(e,110,a+(aa+-4<<4)+16|0)|0;if(g){$=Ur(e,d,1)|0;k[g+24>>2]=$;$=Rr(e,c,1,0)|0;k[g+20>>2]=$;i[g+1>>0]=f}Sk(e,d);Lk(e,c);k[ba>>2]=g;break}case 271:case 270:{k[ba>>2]=l[a+(aa<<4)+14>>0];k[ba+4>>2]=0;break}case 272:{k[ba>>2]=110;k[ba+4>>2]=k[a+(aa<<4)+16>>2];break}case 296:case 275:{k[ba>>2]=0;break}case 297:case 276:{k[ba>>2]=k[a+(aa<<4)+16>>2];break}case 277:{_=a+(aa+-1<<4)+16|0;$=a+(aa+-2<<4)+16|0;k[(k[(k[$>>2]|0)+36>>2]|0)+32>>2]=k[_>>2];k[(k[$>>2]|0)+36>>2]=k[_>>2];k[ba>>2]=k[$>>2];break}case 278:{$=a+(aa+-1<<4)+16|0;_=k[$>>2]|0;k[_+36>>2]=_;k[ba>>2]=k[$>>2];break}case 282:{yh($,20736,_);break}case 280:{X=a+(aa<<4)+16|0;Y=k[X+4>>2]|0;Z=ba;k[Z>>2]=k[X>>2];k[Z+4>>2]=Y;yh($,20640,_);break}case 283:{yh($,20824,_);break}case 286:{c=k[$>>2]|0;d=k[a+(aa<<4)+16>>2]|0;e=Tr(c,109,a+(aa+-2<<4)+16|0)|0;if(e){$=Rr(c,d,1,0)|0;k[e+20>>2]=$;i[e+1>>0]=10}Lk(c,d);k[ba>>2]=e;break}case 287:{e=k[$>>2]|0;g=k[a+(aa<<4)+16>>2]|0;c=rh(e,40,0)|0;if(!c){Rk(e,g,1);c=0}else{v=c+0|0;d=v+40|0;do{i[v>>0]=0;v=v+1|0}while((v|0)<(d|0));i[c>>0]=119;k[c+8>>2]=g;i[c+1>>0]=10}k[ba>>2]=c;break}case 285:{g=k[$>>2]|0;f=k[a+(aa+-1<<4)+16>>2]|0;e=k[a+(aa<<4)+16>>2]|0;d=i[a+(aa+-4<<4)+16>>0]|0;c=Tr(g,108,a+(aa+-2<<4)+16|0)|0;if(!c)Mk(g,f);else{$=lr(g,e,1)|0;k[c+8>>2]=$;k[c+28>>2]=f;i[c+1>>0]=d}Rk(g,e,1);k[ba>>2]=c;break}case 288:{c=cr($,57,0,0,0)|0;k[ba>>2]=c;if(c)i[c+1>>0]=4;k[ba+4>>2]=k[a+(aa+-3<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 289:{c=cr($,57,0,0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=c;if(c)i[c+1>>0]=k[a+(aa+-3<<4)+16>>2];k[ba+4>>2]=k[a+(aa+-5<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 290:{k[ba>>2]=1;break}case 292:{k[ba>>2]=3;break}case 293:{d=k[a+(aa<<4)+16>>2]|0;c=k[a+(aa+-1<<4)+16>>2]|0;t=k[$>>2]|0;do if((i[t+65>>0]|0)==0?(Ln($)|0)==0:0){u=k[d+12>>2]|0;q=k[d+16>>2]|0;p=t+20|0;if((k[p>>2]|0)>0){g=(u|0)==0;f=t+16|0;e=0;n=0;do{h=(e|0)<2^e;o=k[f>>2]|0;if(!(!g?(id(k[o+(h<<4)>>2]|0,u)|0)!=0:0)){o=gn((k[o+(h<<4)+12>>2]|0)+40|0,q,H)|0;if(o){n=k[o+8>>2]|0;if(n)break}else n=0}e=e+1|0}while((e|0)<(k[p>>2]|0));if(n){Vr($,n);break}}if(!c){k[_>>2]=d;k[_+4>>2]=0;yh($,29600,_)}else Er($,u);i[$+17>>0]=1}while(0);Io(t,d);break}case 294:{_=k[a+(aa+-3<<4)+16>>2]|0;Wr($,24,29360,_,_,k[a+(aa+-1<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0);break}case 303:{Yr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0);break}case 304:{w=k[a+(aa+-3<<4)+16>>2]|0;u=a+(aa<<4)+16|0;v=k[$>>2]|0;d=v+24|0;e=k[d>>2]|0;do if((i[v+65>>0]|0)==0?(U=Zr($,0,w+8|0)|0,(U|0)!=0):0){o=k[$>>2]|0;x=U+68|0;q=k[x>>2]|0;j:do if(q){p=k[o+20>>2]|0;if((p|0)>0){o=k[o+16>>2]|0;h=0;while(1){n=h+1|0;if((k[o+(h<<4)+12>>2]|0)==(q|0)){n=h;break j}if((n|0)<(p|0))h=n;else break}}else n=0}else n=-1e6;while(0);c=k[(k[v+16>>2]|0)+(n<<4)>>2]|0;k[d>>2]=k[d>>2]|2097152;g=$q(v,u)|0;if(g){if((di(v,g,c)|0)==0?(gq(v,g,c)|0)==0:0){if(_r($,k[U>>2]|0)|0)break;if(Qr($,g)|0)break;o=k[U>>2]|0;if(k[U+12>>2]|0){k[_>>2]=o;yh($,26088,_);break}if(Xq($,26,c,o,0)|0)break;if(mr($,U)|0)break;if(!(i[U+44>>0]&16))f=0;else{o=k[U+60>>2]|0;k:do if(!o)o=0;else while(1){if((k[o>>2]|0)==(v|0))break k;o=k[o+24>>2]|0;if(!o){o=0;break}}while(0);f=(k[(k[k[o+8>>2]>>2]|0)+76>>2]|0)==0?0:o}o=Tq($)|0;if(!o)break;Z=(f|0)!=0;h=$+408|0;Y=k[h>>2]|0;Y=(Y|0)==0?$:Y;Fr($,n);X=Y+328|0;k[X>>2]=k[X>>2]|1<<n;Y=Y+20|0;i[Y>>0]=l[Y>>0]|Z&1;Ir($,n);if(Z){Y=$+72|0;Z=(k[Y>>2]|0)+1|0;k[Y>>2]=Z;Ch(o,Bh(o,97,0,Z,0)|0,g,0);Ch(o,Bh(o,152,Z,0,0)|0,f,-10);Z=k[h>>2]|0;i[((Z|0)==0?$:Z)+21>>0]=1}u=k[U>>2]|0;t=Sn(u,-1)|0;do if((k[d>>2]&524288|0)!=0?(Q=gn((k[x>>2]|0)+56|0,u,S)|0,(Q|0)!=0):0){o=k[Q+8>>2]|0;if(!o)break;h=o;o=0;do{o=$r(k[$>>2]|0,o,k[k[h>>2]>>2]|0)|0;h=k[h+12>>2]|0}while((h|0)!=0);if(!o)break;k[_>>2]=c;k[_+4>>2]=(n|0)==1?13184:13208;k[_+8>>2]=u;k[_+12>>2]=g;k[_+16>>2]=o;Gr($,26120,_);rg(v,o)}while(0);k[_>>2]=c;k[_+4>>2]=(n|0)==1?13184:13208;k[_+8>>2]=g;k[_+12>>2]=g;k[_+16>>2]=g;k[_+20>>2]=g;k[_+24>>2]=g;k[_+28>>2]=t;k[_+32>>2]=u;Gr($,26192,_);if(di(v,26576,c)|0){Z=k[U>>2]|0;k[_>>2]=c;k[_+4>>2]=g;k[_+8>>2]=Z;Gr($,26592,_)}n=as($,U)|0;if(n){k[_>>2]=g;k[_+4>>2]=g;k[_+8>>2]=n;Gr($,26656,_);rg(v,n)}do if(k[d>>2]&524288){n=gn((k[x>>2]|0)+56|0,k[U>>2]|0,_)|0;if(!n)break;n=k[n+8>>2]|0;if(!n)break;do{h=k[n>>2]|0;if((h|0)!=(U|0))bs($,h,k[h>>2]|0);n=k[n+12>>2]|0}while((n|0)!=0)}while(0);bs($,U,g);break}k[_>>2]=g;yh($,26024,_)}else g=0}else g=0;while(0);Io(v,w);rg(v,g);k[d>>2]=e;break}case 295:{_=k[a+(aa<<4)+16>>2]|0;Wr($,25,29176,_,0,0,_);break}case 300:{Xr($,0,0);break}case 302:{Yr($,0,0);break}case 301:{Xr($,a+(aa+-1<<4)+16|0,a+(aa<<4)+16|0);break}case 305:{v=k[$>>2]|0;if((k[$+64>>2]|0)==0?(I=v+65|0,(i[I>>0]|0)==0):0){e=k[$+484>>2]|0;o=k[e+68>>2]|0;l:do if(o){n=k[v+20>>2]|0;if((n|0)>0){h=k[v+16>>2]|0;f=0;while(1){g=f+1|0;if((k[h+(f<<4)+12>>2]|0)==(o|0)){x=f;break l}if((g|0)<(n|0))f=g;else{x=g;break}}}else x=0}else x=-1e6;while(0);c=k[(k[v+16>>2]|0)+(x<<4)>>2]|0;d=(k[e>>2]|0)+16|0;p=(j[e+38>>1]|0)+-1|0;n=k[e+4>>2]|0;o=k[n+(p*24|0)+4>>2]|0;w=di(v,d,c)|0;if(!(Xq($,26,c,k[w>>2]|0,0)|0)){if(!o)q=0;else q=(i[o>>0]|0)==101?0:o;if(i[n+(p*24|0)+23>>0]&1){yh($,25608,_);break a}if(k[e+8>>2]|0){yh($,25640,_);break a}u=v+24|0;if((k[u>>2]&524288|0)!=0?(k[e+16>>2]|0)!=0&(q|0)!=0:0){yh($,25672,_);break a}t=(q|0)!=0;if(!((i[n+(p*24|0)+20>>0]|0)==0|t)){yh($,25736,_);break a}do if(t){k[K>>2]=0;if(cs(v,q,1,65,K)|0){i[I>>0]=1;break a}o=k[K>>2]|0;if(!o){yh($,25792,_);break a}else{Rh(o);break}}while(0);o=k[a+(aa<<4)+16>>2]|0;n=a+(aa<<4)+20|0;h=k[n>>2]|0;if((o|0)!=0?(R=ow(h|0,0,1,0)|0,R=rh(v,R,L)|0,(R|0)!=0):0){pw(R|0,o|0,h|0)|0;i[R+h>>0]=0;o=(k[n>>2]|0)+-1|0;n=k[u>>2]|0;m:do if((o|0)>0){o=R+o|0;do{Y=i[o>>0]|0;if(Y<<24>>24!=59?(i[10368+(Y&255)>>0]&1)==0:0)break m;i[o>>0]=0;o=o+-1|0}while(o>>>0>R>>>0)}while(0);k[u>>2]=k[u>>2]|2097152;Y=k[e+48>>2]|0;k[_>>2]=c;k[_+4>>2]=(x|0)==1?13184:13208;k[_+8>>2]=Y;k[_+12>>2]=R;k[_+16>>2]=Y+1;k[_+20>>2]=d;Gr($,25840,_);rgrg(T,o);if(!v?(n=ow(x|0,0,1,0)|0,n=rh(T,n,L)|0,(n|0)!=0):0){pw(n|0,w|0,x|0)|0;i[n+x>>0]=0}else n=0;k[(k[g>>2]|0)+(h<<2)>>2]=n}}else{Y=$+440|0;Z=(k[Y>>2]|0)+1|0;k[Y>>2]=Z;j[M+32>>1]=Z}while(0);if((k[$+64>>2]|0)==0?(k[$+440>>2]|0)>(k[T+124>>2]|0):0)yh($,33344,_)}while(0);$=k[u>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[t>>2]|0);break}case 196:{_=a+(aa+-3<<4)+16|0;$=Br($,0,_)|0;k[ba>>2]=$;k[ba+4>>2]=k[_>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 197:{_=a+(aa<<4)+16|0;$=Br($,0,_)|0;k[ba>>2]=$;$=k[_>>2]|0;k[ba+4>>2]=$;k[ba+8>>2]=$+(k[a+(aa<<4)+20>>2]|0);break}case 193:{Z=aa+-2|0;_=a+(aa<<4)+16|0;$=Ar($,k[a+(Z<<4)+16>>2]|0,_,1)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(Z<<4)+20>>2];k[ba+8>>2]=(k[_>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 194:{$=cr($,38,k[a+(aa+-3<<4)+16>>2]|0,0,a+(aa+-1<<4)+16|0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-5<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 195:{e=a+(aa+-1<<4)+16|0;c=k[e>>2]|0;if(c){if((k[c>>2]|0)>(k[(k[$>>2]|0)+112>>2]|0)){k[_>>2]=a+(aa+-4<<4)+16;yh($,20576,_);c=k[e>>2]|0}}else c=0;_=a+(aa+-4<<4)+16|0;c=Br($,c,_)|0;k[ba>>2]=c;k[ba+4>>2]=k[_>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);if(!((c|0)==0?1:(j[a+(aa+-2<<4)+16>>1]|0)==0)){$=c+4|0;k[$>>2]=k[$>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{_=aa+-2|0;$=cr($,l[a+(aa+-1<<4)+14>>0]|0,k[a+(_<<4)+16>>2]|0,k[a+(aa<<4)+16>>2]|0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 206:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;k[ba+8>>2]=0;break}case 207:{Z=a+(aa<<4)+16|0;_=k[Z+4>>2]|0;$=ba;k[$>>2]=k[Z>>2];k[$+4>>2]=_;k[ba+8>>2]=1;break}case 208:{e=aa+-2|0;_=aa+-1|0;c=Br($,qr($,qr($,0,k[a+(aa<<4)+16>>2]|0)|0,k[a+(e<<4)+16>>2]|0)|0,a+(_<<4)+16|0)|0;k[ba>>2]=c;if(k[a+(_<<4)+24>>2]|0){c=cr($,19,c,0,0)|0;k[ba>>2]=c}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];if(c){$=c+4|0;k[$>>2]=k[$>>2]|128}break}case 210:{_=aa+-1|0;$=cr($,l[a+(aa<<4)+14>>0]|0,k[a+(_<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 209:{e=aa+-4|0;_=aa+-3|0;c=Br($,qr($,qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(e<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0,a+(_<<4)+16|0)|0;k[ba>>2]=c;if(k[a+(_<<4)+24>>2]|0){c=cr($,19,c,0,0)|0;k[ba>>2]=c}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];if(c){$=c+4|0;k[$>>2]=k[$>>2]|128}break}case 223:{e=a+(aa+-1<<4)+16|0;c=k[e>>2]|0;do if(c){if((k[c>>2]|0)==1){_=k[c+4>>2]|0;c=k[_>>2]|0;k[_>>2]=0;Sk(k[$>>2]|0,k[e>>2]|0);if(c){_=c+4|0;k[_>>2]=k[_>>2]&-769|512}$=cr($,(k[a+(aa+-3<<4)+16>>2]|0)!=0?78:79,k[a+(aa+-4<<4)+16>>2]|0,c,0)|0;k[ba>>2]=$;break}c=cr($,75,k[a+(aa+-4<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c){Sk(k[$>>2]|0,k[e>>2]|0);c=0}else{k[c+20>>2]=k[e>>2];c=k[ba>>2]|0;Dr($,c)}if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,c,0,0)|0;k[ba>>2]=$}}else{_=cr($,132,0,0,20616+(k[a+(aa+-3<<4)+16>>2]<<3)|0)|0;k[ba>>2]=_;Lk(k[$>>2]|0,k[a+(aa+-4<<4)+16>>2]|0)}while(0);k[ba+4>>2]=k[a+(aa+-4<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 211:{_=aa+-2|0;$=cr($,77,k[a+(_<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+20>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 212:{Y=aa+-2|0;Z=a+(aa<<4)+16|0;_=cr($,73,k[a+(Y<<4)+16>>2]|0,k[Z>>2]|0,0)|0;k[ba>>2]=_;k[ba+4>>2]=k[a+(Y<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];Cr($,k[Z>>2]|0,_,76);break}case 213:{Y=aa+-3|0;Z=a+(aa<<4)+16|0;_=cr($,148,k[a+(Y<<4)+16>>2]|0,k[Z>>2]|0,0)|0;k[ba>>2]=_;k[ba+4>>2]=k[a+(Y<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];Cr($,k[Z>>2]|0,_,77);break}case 215:case 214:{_=aa+-1|0;$=cr($,l[a+(_<<4)+14>>0]|0,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(_<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 216:{$=cr($,157,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 217:{$=cr($,158,k[a+(aa<<4)+16>>2]|0,0,0)|0;k[ba>>2]=$;k[ba+4>>2]=k[a+(aa+-1<<4)+16>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 220:{d=qr($,qr($,0,k[a+(aa+-2<<4)+16>>2]|0)|0,k[a+(aa<<4)+16>>2]|0)|0;e=aa+-4|0;c=cr($,74,k[a+(e<<4)+16>>2]|0,0,0)|0;k[ba>>2]=c;if(!c)Sk(k[$>>2]|0,d);else k[c+20>>2]=d;if(k[a+(aa+-3<<4)+16>>2]|0){$=cr($,19,k[ba>>2]|0,0,0)|0;k[ba>>2]=$}k[ba+4>>2]=k[a+(e<<4)+20>>2];k[ba+8>>2]=k[a+(aa<<4)+24>>2];break}case 224:{c=cr($,119,0,0,0)|0;k[ba>>2]=c;if(!c)Rk(k[$>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,1);else{k[c+20>>2]=k[a+(aa+-1<<4)+16>>2];_=k[ba>>2]|0;Z=_+4|0;k[Z>>2]=k[Z>>2]|2099200;Dr($,_)}k[ba+4>>2]=k[a+(aa+-2<<4)+16>>2];k[ba+8>>2]=(k[a+(aa<<4)+16>>2]|0)+(k[a+(aa<<4)+20>>2]|0);break}case 118:{$=pr($,k[a+(aa+-6<<4)+16>>2]|0,k[a+(aa+-5<<4)+16>>2]|0,k[a+(aa+-4<<4)+16>>2]|0,k[a+(aa+-3<<4)+16>>2]|0,k[a+(aa+-2<<4)+16>>2]|0,k[a+(aa+-1<<4)+16>>2]|0,j[a+(aa+-7<<4)+16>>1]|0,k[a+(aa<<4)+16>>2]|0,k[a+(aa<<4)+20>>2]|0)|0;k[ba>>2]=$;break}case 120:{$=pr($,k[a+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;k[ba>>2]=$;break}case 121:{c=pr($,k[a+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!c){k[ba>>2]=k[a+(aa+-4<<4)+16>>2];break a}else{i[c+4>>0]=116;k[c+52>>2]=k[a+(aa+-4<<4)+16>>2];k[ba>>2]=c;break a}}case 122:{j[ba>>1]=1;break}case 124:case 123:{j[ba>>1]=0;break}case 243:case 125:{k[ba>>2]=k[a+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{k[ba>>2]=0;break}case 127:{e=aa+-1|0;g=qr($,k[a+(aa+-2<<4)+16>>2]|0,k[a+(e<<4)+16>>2]|0)|0;k[ba>>2]=g;if(k[a+(aa<<4)+20>>2]|0)rr($,g,a+(aa<<4)+16|0,1);n=k[$>>2]|0;if(g){h=(k[g+4>>2]|0)+(((k[g>>2]|0)+-1|0)*20|0)+8|0;rgrg(a,b);r=c;return d|0}function Sq(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();h=l;e=i[a>>0]|0;if(e<<24>>24!=0&(b|0)>0){g=0;do{if((e+-48&255)<10){f=0;do{f=(f*10|0)+-48+(e<<24>>24)|0;a=a+1|0;e=i[a>>0]|0}while((e+-48&255)<10);e=0}else{f=0;e=0}e=ks(f,e)|0;j[c+(g<<1)>>1]=e;a=(i[a>>0]|0)==32?a+1|0:a;g=g+1|0;e=i[a>>0]|0}while(e<<24>>24!=0&(g|0)<(b|0))}g=d+51|0;i[g>>0]=i[g>>0]&-69;a:do if(i[a>>0]|0){c=d+44|0;b:while(1){do if(!(Lh(13448,a,10352,0)|0)){if(Lh(13464,a,10352,0)|0){k[h>>2]=0;In(a+3|0,h)|0;e=k[h>>2]|0;e=ks(e,((e|0)<0)<<31>>31)|0;j[c>>1]=e;break}if(Lh(13480,a,10352,0)|0)i[g>>0]=i[g>>0]|64}else i[g>>0]=i[g>>0]|4;while(0);while(1){e=i[a>>0]|0;if(e<<24>>24==32|e<<24>>24==0)break;a=a+1|0}while(1){f=a+1|0;if(!(e<<24>>24))break a;else if(e<<24>>24!=32)continue b;e=i[f>>0]|0;a=f}}}while(0);r=l;return}function Tq(a){a=a|0;var b=0,c=0;c=a+8|0;b=k[c>>2]|0;if(!b){b=Ah(a)|0;k[c>>2]=b;if(b)Bh(b,155,0,0,0)|0;if((k[a+408>>2]|0)==0?(j[(k[a>>2]|0)+60>>1]&8)==0:0)i[a+23>>0]=1}return b|0}function Uq(a,b){a=a|0;b=b|0;var c=0;c=(k[a+32>>2]|0)+-1|0;if((c|0)>(k[(k[a+24>>2]|0)+88>>2]|0)?(i[(k[a+4>>2]|0)+(c*20|0)>>0]|0)==b<<24>>24:0){Eh(a,c);c=1}else c=0;return c|0}function Vq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=Tq(a)|0;f=d+32|0;ls(a,c,k[f>>2]|0,(e|0)==55&1,k[d>>2]|0);if(!(i[d+44>>0]&32)){d=j[d+38>>1]|0;Ch(g,Bh(g,e,b,k[f>>2]|0,c)|0,d,-14)}else{f=k[d+8>>2]|0;a:do if(!f)f=0;else while(1){if((i[f+51>>0]&3)==2)break a;f=k[f+20>>2]|0;if(!f){f=0;break}}while(0);Bh(g,e,b,k[f+40>>2]|0,c)|0;d=k[a+8>>2]|0;Ch(d,-1,ms(a,f)|0,-6)}return}function Wq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;if((b|0)!=0?(i[b>>0]|0)==-97:0)Bh(k[a+8>>2]|0,33,k[b+28>>2]|0,c,0)|0;else f=4;if(((f|0)==4?(e=ns(a,b,c)|0,(e|0)!=(c|0)):0)?(d=k[a+8>>2]|0,(d|0)!=0):0)Bh(d,34,e,c,0)|0;return}function Xq(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;f=k[a>>2]|0;do if(((i[f+145>>0]|0)==0?(i[a+451>>0]|0)==0:0)?(g=k[f+284>>2]|0,(g|0)!=0):0){f=pc[g&7](k[f+288>>2]|0,b,c,d,e,k[a+492>>2]|0)|0;if((f|0)==0|(f|0)==2)break;else if((f|0)==1){yh(a,25216,h);k[a+12>>2]=23;f=1;break}else{yh(a,25232,h);k[a+12>>2]=1;f=1;break}}else f=0;while(0);r=j;return f|0}function Yq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;c=$q(k[a>>2]|0,c)|0;do if(c){d=Tq(a)|0;if((d|0)!=0?(Xq(a,32,k[37088+(b<<2)>>2]|0,c,0)|0)==0:0){Ch(d,Bh(d,2,b,0,0)|0,c,-1);break}rg(k[a>>2]|0,c)}while(0);return}function Zq(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();p=v;n=v+4|0;u=k[a>>2]|0;b=jr(a,b,c,n)|0;a:do if((b|0)>=0){o=(d|0)!=0;if(o?(k[c+4>>2]|0)!=0&(b|0)!=1:0){yh(a,36976,p);break}t=o?1:b;c=k[n>>2]|0;o=c;b=k[o+4>>2]|0;n=a+496|0;k[n>>2]=k[o>>2];k[n+4>>2]=b;n=$q(u,c)|0;if(n){b:do if((Qr(a,n)|0)==0?(m=(i[u+144>>0]|0)==1?1:d,q=u+16|0,h=k[(k[q>>2]|0)+(t<<4)>>2]|0,(Xq(a,18,(m|0)==1?13184:13208,0,h)|0)==0):0){d=(m|0)!=0;if(!e)b=d?4:2;else b=d?6:8;o=(f|0)!=0;if(!o?(Xq(a,b,n,0,h)|0)!=0:0)break;do if(!(i[a+451>>0]|0)){d=k[(k[q>>2]|0)+(t<<4)>>2]|0;if(Ln(a)|0)break b;if(!(di(u,n,d)|0)){if(!(gq(u,n,d)|0))break;k[p>>2]=n;yh(a,37048,p);break b}if(!g){k[p>>2]=c;yh(a,37024,p);break b}else{Fr(a,t);break b}}while(0);m=rh(u,76,0)|0;if(!m){i[u+65>>0]=1;k[a+12>>2]=7;q=a+64|0;k[q>>2]=(k[q>>2]|0)+1;break}h=m+0|0;d=h+76|0;do{i[h>>0]=0;h=h+1|0}while((h|0)<(d|0));k[m>>2]=n;j[m+36>>1]=-1;h=k[(k[q>>2]|0)+(t<<4)+12>>2]|0;k[m+68>>2]=h;j[m+40>>1]=1;j[m+28>>1]=200;k[a+484>>2]=m;if((i[a+18>>0]|0)==0?(dw(n,26576)|0)==0:0)k[h+72>>2]=m;if(i[u+145>>0]|0)break a;c=Tq(a)|0;if(!c)break a;q=k[a+408>>2]|0;Fr(a,t);h=1<<t;q=((q|0)==0?a:q)+328|0;k[q>>2]=k[q>>2]|h;if(o)Bh(c,146,0,0,0)|0;m=a+72|0;b=k[m>>2]|0;n=b+1|0;k[a+384>>2]=n;o=b+2|0;k[a+388>>2]=o;b=b+3|0;k[m>>2]=b;Bh(c,51,t,b,2)|0;m=c+96|0;k[m>>2]=k[m>>2]|h;m=Bh(c,45,b,0,0)|0;Bh(c,25,(k[u+24>>2]&32768|0)!=0?1:4,b,0)|0;Bh(c,52,t,2,b)|0;Bh(c,25,l[u+62>>0]|0,b,0)|0;Bh(c,52,t,5,b)|0;d=c+32|0;h=k[d>>2]|0;if(h>>>0>m>>>0)k[(k[c+4>>2]|0)+(m*20|0)+8>>2]=h;k[(k[c+24>>2]|0)+88>>2]=h+-1;if(!(f|e)){q=Bh(c,121,t,o,0)|0;k[a+416>>2]=q}else Bh(c,25,0,o,0)|0;os(a,t);Bh(c,74,0,n,0)|0;Bh(c,28,0,b,0)|0;Bh(c,75,0,b,n)|0;h=k[c+4>>2]|0;if(h)i[h+(((k[d>>2]|0)+-1|0)*20|0)+3>>0]=8;Bh(c,61,0,0,0)|0;break a}while(0);rg(u,n)}}while(0);r=v;return}function _q(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,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;O=r;r=r+176|0;if((r|0)>=(s|0))ka();J=O+80|0;G=O+168|0;D=O;E=O+136|0;F=O+112|0;K=k[a>>2]|0;a:do if((!((c|0)==0&(e|0)==0)?(L=K+65|0,(i[L>>0]|0)==0):0)?(M=a+484|0,N=k[M>>2]|0,(N|0)!=0):0){I=K+145|0;if(i[I>>0]|0)k[N+32>>2]=k[K+140>>2];b:do if(d&32){n=N+44|0;h=l[n>>0]|0;if(h&8){yh(a,36584,J);break a}if(!(h&4)){k[J>>2]=k[N>>2];yh(a,36640,J);break}i[n>>0]=h|32;o=k[a+8>>2]|0;n=k[a+416>>2]|0;if(n){if((n|0)<0)n=(k[o+32>>2]|0)+-1|0;if(!(i[(k[o>>2]|0)+65>>0]|0))n=(k[o+4>>2]|0)+(n*20|0)|0;else n=29120;i[n>>0]=120}n=k[a+420>>2]|0;if(n){if((n|0)<0)n=(k[o+32>>2]|0)+-1|0;if(!(i[(k[o>>2]|0)+65>>0]|0))h=(k[o+4>>2]|0)+(n*20|0)|0;else h=29120;i[h>>0]=16}h=N+36|0;if((j[h>>1]|0)>-1){n=qr(a,0,0)|0;if(!n)break;z=ph(k[a>>2]|0,k[(k[N+4>>2]|0)+((j[h>>1]|0)*24|0)>>2]|0)|0;A=k[n+4>>2]|0;k[A+4>>2]=z;i[A+12>>0]=i[a+448>>0]|0;n=er(a,0,0,0,n,l[N+45>>0]|0,0,0,0,0)|0;if(!n)break;u=n+51|0;i[u>>0]=i[u>>0]&-4|2;j[h>>1]=-1;u=j[n+46>>1]|0}else{n=k[N+8>>2]|0;c:do if(!n)n=0;else while(1){if((i[n+51>>0]&3)==2)break c;n=k[n+20>>2]|0;if(!n){n=0;break}}while(0);v=n+46|0;o=j[v>>1]|0;if((o&65535)>1){t=k[n+4>>2]|0;q=n+48|0;u=1;h=1;do{f=j[t+(u<<1)>>1]|0;p=h;g=t;while(1){if((p|0)<=0){C=36;break}if((j[g>>1]|0)==f<<16>>16){C=35;break}else{p=p+-1|0;g=g+2|0}}if((C|0)==35){C=0;j[q>>1]=(j[q>>1]|0)+-1<<16>>16}else if((C|0)==36){C=0;j[t+(h<<1)>>1]=f;o=j[v>>1]|0;h=h+1|0}u=u+1|0}while((u|0)<(o&65535|0))}else h=1;u=h&65535;j[v>>1]=u}p=n+51|0;o=i[p>>0]|32;i[p>>0]=o;A=u&65535;if(!(i[K+147>>0]|0)){if(u<<16>>16){o=k[n+4>>2]|0;h=k[N+4>>2]|0;g=0;do{i[h+((j[o+(g<<1)>>1]|0)*24|0)+20>>0]=1;g=g+1|0}while((g|0)<(A|0));o=i[p>>0]|0}i[p>>0]=o|8}k[n+40>>2]=k[N+32>>2];p=k[N+8>>2]|0;if(p){x=u<<16>>16==0;y=n+4|0;z=n+32|0;do{d:do if((i[p+51>>0]&3)!=2){do if(x)o=j[p+46>>1]|0;else{q=k[p+4>>2]|0;o=j[p+46>>1]|0;g=o&65535;f=k[y>>2]|0;w=0;h=0;do{t=j[f+(w<<1)>>1]|0;v=g;u=q;while(1){if((v|0)<=0){u=1;break}if((j[u>>1]|0)==t<<16>>16){u=0;break}else{v=v+-1|0;u=u+2|0}}h=u+h|0;w=w+1|0}while((w|0)<(A|0));g=p+46|0;if(!h)break;if(ps(K,p,(o&65535)+h|0)|0)break b;if(x)break d;t=j[g>>1]|0;w=p+4|0;f=p+32|0;v=t;u=0;t=t&65535;while(1){o=k[w>>2]|0;h=j[(k[y>>2]|0)+(u<<1)>>1]|0;v=v&65535;q=o;while(1){if((v|0)<=0){C=63;break}if((j[q>>1]|0)==h<<16>>16)break;else{v=v+-1|0;q=q+2|0}}if((C|0)==63){C=0;j[o+(t<<1)>>1]=h;k[(k[f>>2]|0)+(t<<2)>>2]=k[(k[z>>2]|0)+(u<<2)>>2];t=t+1|0}u=u+1|0;if((u|0)>=(A|0))break d;v=j[g>>1]|0}}while(0);j[p+48>>1]=o}while(0);p=k[p+20>>2]|0}while((p|0)!=0)}v=N+38|0;o=j[v>>1]|0;h=o<<16>>16;if((A|0)>=(h|0)){j[n+48>>1]=o;break}if((ps(K,n,h)|0)==0?(B=j[v>>1]|0,B<<16>>16>0):0){q=n+4|0;u=n+32|0;o=B;t=0;n=A;do{g=k[q>>2]|0;p=n;h=g;while(1){if((p|0)<=0){C=74;break}if((j[h>>1]|0)==(t|0))break;else{p=p+-1|0;h=h+2|0}}if((C|0)==74){C=0;j[g+(n<<1)>>1]=t;k[(k[u>>2]|0)+(n<<2)>>2]=11152;o=j[v>>1]|0;n=n+1|0}t=t+1|0}while((t|0)<(o<<16>>16|0))}}while(0);C=N+68|0;n=k[C>>2]|0;e:do if(n){h=k[K+20>>2]|0;if((h|0)>0){g=k[K+16>>2]|0;o=0;while(1){f=o+1|0;if((k[g+(o<<4)+12>>2]|0)==(n|0))break e;if((f|0)<(h|0))o=f;else{o=f;break}}}else o=0}else o=-1e6;while(0);g=k[N+24>>2]|0;f:do if(g){k[E+0>>2]=0;k[E+4>>2]=0;k[E+8>>2]=0;k[E+12>>2]=0;k[E+16>>2]=0;k[E+20>>2]=0;k[E+24>>2]=0;k[E+28>>2]=0;n=D+0|0;h=n+80|0;do{k[n>>2]=0;n=n+4|0}while((n|0)<(h|0));k[D>>2]=1;k[D+16>>2]=k[N>>2];k[D+24>>2]=N;k[D+48>>2]=-1;k[E>>2]=a;k[E+4>>2]=D;j[E+28>>1]=4;n=g+4|0;if((k[g>>2]|0)>0){h=0;do{if(qs(E,k[(k[n>>2]|0)+(h*20|0)>>2]|0)|0)break f;h=h+1|0}while((h|0)<(k[g>>2]|0))}}while(0);A=N+38|0;f=j[A>>1]|0;if(f<<16>>16>0){n=f<<16>>16;h=k[N+4>>2]|0;g=0;while(1){g=(l[h+22>>0]|0)+g|0;n=n+-1|0;if((n|0)<=0)break;else h=h+24|0}}else g=0;g=ks(((m[N+36>>1]|0)>>>15&65535)+g<<2,0)|0;j[N+42>>1]=g;g=k[N+8>>2]|0;if(g)do{rs(g);g=k[g+20>>2]|0}while((g|0)!=0);if(!(i[I>>0]|0)){B=Tq(a)|0;if(!B)break;Bh(B,61,0,0,0)|0;y=(k[N+12>>2]|0)==0;h=y?36672:36680;y=y?31232:35480;do if(!e){g=d<<24>>24==0?c:a+504|0;e=k[g>>2]|0;n=k[a+496>>2]|0;f=e-n|0;if((i[e>>0]|0)!=59)f=(k[g+4>>2]|0)+f|0;k[J>>2]=h;k[J+4>>2]=f;k[J+8>>2]=n;n=a+388|0;f=N;h=zh(K,36688,J)|0}else{n=a+388|0;Bh(B,55,1,k[n>>2]|0,o)|0;h=k[B+4>>2]|0;if(h)i[h+(((k[B+32>>2]|0)+-1|0)*20|0)+3>>0]=4;k[a+68>>2]=2;i[F>>0]=14;k[F+4>>2]=1;i[F+1>>0]=0;k[F+8>>2]=0;k[F+12>>2]=0;nr(a,e,F)|0;Bh(B,61,1,0,0)|0;if(!(k[a+64>>2]|0)){f=ss(a,e)|0;if(!f)break a;F=f+38|0;j[A>>1]=j[F>>1]|0;e=f+4|0;k[N+4>>2]=k[e>>2];j[F>>1]=0;k[e>>2]=0;pg(K,f)}z=N+4|0;w=j[A>>1]|0;if(w<<16>>16>0){q=w<<16>>16;t=0;h=0;u=k[z>>2]|0;while(1){f=k[u>>2]|0;g=0;while(1){p=i[f>>0]|0;if(p<<24>>24==34)g=g+1|0;else if(!(p<<24>>24))break;f=f+1|0;g=g+1|0}h=h+7+g|0;t=t+1|0;if((t|0)==(q|0))break;else u=u+24|0}p=h+2|0}else p=2;f=k[N>>2]|0;h=0;while(1){g=i[f>>0]|0;if(!(g<<24>>24))break;else if(g<<24>>24==34)h=h+1|0;f=f+1|0;h=h+1|0}u=h+p|0;x=(u|0)<50;p=x?10360:36880;v=x?20240:36888;x=x?33952:36896;u=((w<<16>>16)*6|0)+35+u|0;h=vg(u,((u|0)<0)<<31>>31)|0;if(!h){i[L>>0]=1;f=N;h=0;break}fd(u,h,36904,J)|0;g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;k[G>>2]=g-h&1073741823;ts(h,G,k[N>>2]|0);f=k[G>>2]|0;q=f+1|0;k[G>>2]=q;i[h+f>>0]=40;f=u-q|0;g=h+q|0;if((j[A>>1]|0)>0){w=0;t=k[z>>2]|0;while(1){fd(f,g,p,J)|0;g=h+q|0;if(!g)g=0;else{p=g;while(1)if(!(i[p>>0]|0))break;else p=p+1|0;g=p-g&1073741823}k[G>>2]=g+q;ts(h,G,k[t>>2]|0);g=k[36920+((i[t+21>>0]|0)+-65<<2)>>2]|0;p=g;while(1)if(!(i[p>>0]|0))break;else p=p+1|0;q=p-g&1073741823;p=k[G>>2]|0;pw(h+p|0,g|0,q|0)|0;q=p+q|0;k[G>>2]=q;p=w+1|0;f=u-q|0;g=h+q|0;if((p|0)<(j[A>>1]|0)){w=p;t=t+24|0;p=v}else break}}k[J>>2]=x;fd(f,g,10344,J)|0;f=N}while(0);g=K+16|0;d=k[f>>2]|0;F=k[n>>2]|0;e=k[a+384>>2]|0;k[J>>2]=k[(k[g>>2]|0)+(o<<4)>>2];k[J+4>>2]=(o|0)==1?13184:13208;k[J+8>>2]=y;k[J+12>>2]=d;k[J+16>>2]=d;k[J+20>>2]=F;k[J+24>>2]=h;k[J+28>>2]=e;Gr(a,36704,J);rg(K,h);Ir(a,o);if((i[N+44>>0]&8)!=0?(H=k[g>>2]|0,(k[(k[H+(o<<4)+12>>2]|0)+72>>2]|0)==0):0){k[J>>2]=k[H+(o<<4)>>2];Gr(a,36792,J)}k[J>>2]=k[f>>2];Nr(B,o,zh(K,36840,J)|0);if(!(i[I>>0]|0))break}else f=N;if(Nk((k[C>>2]|0)+8|0,k[f>>2]|0,N)|0){i[L>>0]=1;break}k[M>>2]=0;e=K+24|0;k[e>>2]=k[e>>2]|2;if(!(k[N+12>>2]|0)){e=k[a+496>>2]|0;e=(Sn(e,(k[((k[b>>2]|0)==0?c:b)>>2]|0)-e|0)|0)+13|0;k[N+48>>2]=e}}while(0);r=O;return}function $q(a,b){a=a|0;b=b|0;var c=0,d=0;if(!b)c=0;else{d=k[b>>2]|0;b=k[b+4>>2]|0;if((d|0)!=0?(c=ow(b|0,0,1,0)|0,c=rh(a,c,L)|0,(c|0)!=0):0){pw(c|0,d|0,b|0)|0;i[c+b>>0]=0}else c=0;qo(c)}return c|0}function ar(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,m=0;j=r;r=r+16|0;if((r|0)>=(s|0))ka();h=j;a:do if(a){d=i[a>>0]|0;b:do if(!(d<<24>>24)){c=67;d=0}else{f=d;c=67;e=0;d=0;do{e=l[9328+(f&255)>>0]|0|e<<8;a=a+1|0;if((e|0)==1651273570)if(c<<24>>24==69|c<<24>>24==67){m=i[a>>0]|0;f=m;c=65;e=1651273570;d=m<<24>>24==40?a:d}else g=14;else if((e|0)==1718382433)if(c<<24>>24==67){c=69;e=1718382433;g=5}else g=13;else if((e|0)==1667785074){c=66;e=1667785074;d=a;g=5}else if((e|0)==1952807028){c=66;g=5}else if((e|0)==1685026146)if(c<<24>>24==67){c=69;e=1685026146;g=5}else g=13;else if((e|0)==1919246700)if(c<<24>>24==67){c=69;e=1919246700;g=5}else g=14;else if((e|0)!=1668050786)if((e&16777215|0)==6909556){c=68;break b}else g=5;else{c=66;g=5}if((g|0)==13)g=5;else if((g|0)==14)g=5;if((g|0)==5){g=0;f=i[a>>0]|0}}while(f<<24>>24!=0)}while(0);if((b|0)!=0?(i[b>>0]=1,c<<24>>24<67):0){if(!d){i[b>>0]=5;break}a=i[d>>0]|0;if(a<<24>>24){while(1){if(((a&255)+-48|0)>>>0<10)break;d=d+1|0;a=i[d>>0]|0;if(!(a<<24>>24))break a}k[h>>2]=0;In(d,h)|0;d=((k[h>>2]|0)/4|0)+1|0;d=(d|0)>255?255:d;k[h>>2]=d;i[b>>0]=d}}}else c=67;while(0);r=j;return c|0}function br(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0;m=r;r=r+32|0;if((r|0)>=(s|0))ka();g=m;h=k[a>>2]|0;e=k[a+484>>2]|0;do if(e){d=(j[e+38>>1]|0)+-1|0;f=k[e+4>>2]|0;n=k[b>>2]|0;o=(l[h+145>>0]|0)+4|0;k[g+0>>2]=0;k[g+4>>2]=0;k[g+8>>2]=0;k[g+12>>2]=0;k[g+16>>2]=0;k[g+20>>2]=0;e=g+20|0;i[e>>0]=o;k[g>>2]=78;k[g+4>>2]=79;k[g+24>>2]=0;ws(g,n)|0;if(!(i[e>>0]|0)){k[g>>2]=k[f+(d*24|0)>>2];yh(a,36480,g);break}e=f+(d*24|0)+4|0;Lk(h,k[e>>2]|0);n=Rr(h,k[b>>2]|0,1,0)|0;k[e>>2]=n;f=f+(d*24|0)+8|0;rgrg(U,b);if(!R)break;As(a,M,h);Ir(a,q);k[S>>2]=k[M>>2];Nr(p,q,zh(U,36344,S)|0);Bh(p,144,0,0,0)|0;T=126}else{if(Nk((k[H>>2]|0)+24|0,k[M>>2]|0,M)|0){i[P>>0]=1;c=0;p=0;T=134;break c}G=U+24|0;k[G>>2]=k[G>>2]|2;if(!R)break;k[M+40>>2]=k[U+140>>2];T=126}while(0);if((T|0)==126?!((i[c>>0]|0)!=0|(d|0)==0):0){c=0;p=0;T=134;break}c=k[u+8>>2]|0;do if((f|0)==5){if(!c){c=0;break}if((i[c+50>>0]|0)==5)break;do{p=c+20|0;c=k[p>>2]|0;if(!c){c=0;break}}while((i[c+50>>0]|0)!=5);k[M+20>>2]=c;k[p>>2]=M;h=0;p=M;c=t;break a}while(0);k[M+20>>2]=c;k[u+8>>2]=M;h=0;p=M;c=t;break a}else{c=h;p=0;T=134}while(0);if((T|0)==134)if(!M){h=c;c=t;break}Ok(U,M);h=c;c=t}else{p=0;c=t}}else{p=0;c=0}while(0);Lk(U,h);Sk(U,e);Io(U,d);rg(U,c);r=V;return p|0}function fr(a,b){a=a|0;b=b|0;var c=0,d=0;c=k[a+484>>2]|0;d=k[a>>2]|0;if(((c|0)!=0?(i[a+451>>0]|0)==0:0)?(j[(k[(k[(k[d+16>>2]|0)+(l[d+144>>0]<<4)+4>>2]|0)+4>>2]|0)+22>>1]&1)==0:0){d=c+24|0;c=qr(a,k[d>>2]|0,b)|0;k[d>>2]=c;if(k[a+324>>2]|0)rr(a,c,a+320|0,1)}else Lk(d,b);return}function gr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=r;r=r+16|0;if((r|0)>=(s|0))ka();z=C;B=k[a>>2]|0;A=k[a+484>>2]|0;a:do if((A|0)!=0?(i[a+451>>0]|0)==0:0){w=(b|0)==0;do if(w){y=j[A+38>>1]|0;g=(y<<16>>16)+-1|0;if(y<<16>>16<1){f=0;break a}if(d)if((k[d>>2]|0)==1){g=1;f=13}else{k[z>>2]=k[(k[A+4>>2]|0)+(g*24|0)>>2];k[z+4>>2]=c;yh(a,35712,z);f=0;break a}else{g=1;f=12}}else{if(!d){g=k[b>>2]|0;f=12;break}g=k[d>>2]|0;if((g|0)==(k[b>>2]|0))f=13;else{yh(a,35776,z);f=0;break a}}while(0);if((f|0)==12){h=c+4|0;n=h;t=0;h=(g<<3)+37+(k[h>>2]|0)|0;y=g}else if((f|0)==13){n=c+4|0;h=(g<<3)+37+(k[n>>2]|0)|0;o=k[d>>2]|0;if((o|0)>0){p=k[d+4>>2]|0;q=0;do{m=k[p+(q*20|0)+4>>2]|0;if(!m)f=1;else{l=m;while(1)if(!(i[l>>0]|0))break;else l=l+1|0;f=(l-m&1073741823)+1|0}h=f+h|0;q=q+1|0}while((q|0)<(o|0));t=1;y=g}else{t=1;y=g}}f=rh(B,h,((h|0)<0)<<31>>31)|0;if(f){kw(f|0,0,h|0)|0;k[f>>2]=A;x=A+16|0;k[f+4>>2]=k[x>>2];u=f+36|0;l=u+(y<<3)|0;v=f+8|0;k[v>>2]=l;pw(l|0,k[c>>2]|0,k[n>>2]|0)|0;i[l+(k[n>>2]|0)>>0]=0;qo(l);l=l+((k[n>>2]|0)+1)|0;k[f+20>>2]=y;b:do if(!w){if((y|0)>0){h=A+4|0;c=b+4|0;m=j[A+38>>1]|0;g=0;while(1){c:do if(m<<16>>16>0){q=k[h>>2]|0;p=k[(k[c>>2]|0)+(g*20|0)+4>>2]|0;o=0;while(1){n=o+1|0;if(!(id(k[q+(o*24|0)>>2]|0,p)|0)){n=o;break}if((n|0)<(m<<16>>16|0))o=n;else break c}k[u+(g<<3)>>2]=n}else n=0;while(0);if((n|0)>=(m<<16>>16|0))break;g=g+1|0;if((g|0)>=(y|0))break b}k[z>>2]=k[(k[c>>2]|0)+(g*20|0)+4>>2];yh(a,35872,z);break a}}else k[u>>2]=(j[A+38>>1]|0)+-1;while(0);if(t&(y|0)>0){m=d+4|0;n=0;while(1){h=k[(k[m>>2]|0)+(n*20|0)+4>>2]|0;if(!h)g=0;else{g=h;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823}k[u+(n<<3)+4>>2]=l;pw(l|0,h|0,g|0)|0;i[l+g>>0]=0;n=n+1|0;if((n|0)==(y|0))break;else l=l+(g+1)|0}}i[f+24>>0]=0;i[f+25>>0]=e;i[f+26>>0]=e>>>8;g=Nk((k[A+68>>2]|0)+56|0,k[v>>2]|0,f)|0;if((g|0)==(f|0)){i[B+65>>0]=1;break}if(g){k[f+12>>2]=g;k[g+16>>2]=f}k[x>>2]=f;f=0}else f=0}else f=0;while(0);rg(B,f);Sk(B,b);Sk(B,d);r=C;return}function hr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=k[a>>2]|0;d=i[c+62>>0]|0;e=i[c+145>>0]|0;c=bo(c,d,b,e&255)|0;do if(!(e<<24>>24)){if((c|0)!=0?(k[c+12>>2]|0)!=0:0)break;c=Bs(a,d,c,b)|0}while(0);return c|0}function ir(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0;y=r;r=r+16|0;if((r|0)>=(s|0))ka();w=y;q=y+12|0;x=k[a>>2]|0;do if(!(i[x+65>>0]|0)){d=(d|0)!=0;if(d){p=x+68|0;i[p>>0]=(i[p>>0]|0)+1<<24>>24;v=Zr(a,c,b+8|0)|0;i[p>>0]=(i[p>>0]|0)+-1<<24>>24}else v=Zr(a,c,b+8|0)|0;if(!v){if(!d)break;Er(a,k[b+12>>2]|0);break}n=v+68|0;f=k[n>>2]|0;a:do if(f){d=k[x+20>>2]|0;if((d|0)>0){e=k[x+16>>2]|0;h=0;while(1){g=h+1|0;if((k[e+(h<<4)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(d|0))h=g;else break}}else g=0}else g=-1e6;while(0);t=v+44|0;if((i[t>>0]&16)!=0?(mr(a,v)|0)!=0:0)break;h=(g|0)==1;u=h?13184:13208;d=k[(k[x+16>>2]|0)+(g<<4)>>2]|0;if(!(Xq(a,9,u,0,d)|0)){e=(c|0)!=0;do if(e){f=h?15:17;h=0}else{if(!(i[t>>0]&16)){f=h?13:11;h=0;break}h=v+60|0;while(1){h=k[h>>2]|0;if((k[h>>2]|0)==(x|0))break;else h=h+24|0}f=30;h=k[(k[h+4>>2]|0)+4>>2]|0}while(0);if((Xq(a,f,k[v>>2]|0,h,d)|0)==0?(Xq(a,9,k[v>>2]|0,0,d)|0)==0:0){h=k[v>>2]|0;if((Kc(h,25568,7)|0)==0?(Kc(h,35488,11)|0)!=0:0){k[w>>2]=h;yh(a,35504,w);break}d=v+12|0;f=(k[d>>2]|0)==0;if(e){if(f){k[w>>2]=h;yh(a,35536,w);break}}else if(!f){k[w>>2]=h;yh(a,35576,w);break}if(Tq(a)|0){o=a+408|0;f=k[o>>2]|0;f=(f|0)==0?a:f;Fr(a,g);p=1<<g;e=f+328|0;k[e>>2]=k[e>>2]|p;f=f+20|0;i[f>>0]=l[f>>0]|1;Hr(a,g,28544,k[v>>2]|0);f=k[a>>2]|0;e=f+24|0;b:do if(((k[e>>2]&524288|0)!=0?(i[t>>0]&16)==0:0)?(k[d>>2]|0)==0:0){m=Tq(a)|0;q=gn((k[n>>2]|0)+56|0,k[v>>2]|0,q)|0;if((q|0)!=0?(k[q+8>>2]|0)!=0:0)h=0;else{h=k[v+16>>2]|0;if(!h)break;while(1){if(i[h+24>>0]|0)break;if(k[e>>2]&16777216)break;h=k[h+4>>2]|0;if(!h)break b}h=Cs(m)|0;Bh(m,135,1,h,0)|0}q=a+438|0;i[q>>0]=1;wr(a,Ds(f,b,0)|0,0);i[q>>0]=0;if(!(k[e>>2]&16777216)){Bh(m,135,0,(k[m+32>>2]|0)+2|0,0)|0;Es(a,787,2,0,-2,4)}if(h){f=k[m+24>>2]|0;d=~h;do if((h|0)<0){h=k[f+112>>2]|0;if(!h)break;k[h+(d<<2)>>2]=k[m+32>>2]}while(0);k[f+88>>2]=(k[m+32>>2]|0)+-1}}while(0);m=k[a>>2]|0;n=m+16|0;f=k[n>>2]|0;d=Tq(a)|0;q=k[o>>2]|0;q=(q|0)==0?a:q;Fr(a,g);o=q+328|0;k[o>>2]=k[o>>2]|p;q=q+20|0;i[q>>0]=l[q>>0]|1;if(i[t>>0]&16)Bh(d,146,0,0,0)|0;h=Fs(a,v)|0;if(h)do{Vr(a,h);h=k[h+32>>2]|0}while((h|0)!=0);f=f+(g<<4)|0;if(i[t>>0]&8){q=k[v>>2]|0;k[w>>2]=k[f>>2];k[w+4>>2]=q;Gr(a,35608,w)}q=k[v>>2]|0;k[w>>2]=k[f>>2];k[w+4>>2]=u;k[w+8>>2]=q;Gr(a,35656,w);if((c|0)==0?(i[t>>0]&16)==0:0)Gs(a,v);if(i[t>>0]&16){q=k[v>>2]|0;Ch(d,Bh(d,148,g,0,0)|0,q,0)}e=k[v>>2]|0;Ch(d,Bh(d,124,g,0,0)|0,e,0);Ir(a,g);d=k[(k[n>>2]|0)+(g<<4)+12>>2]|0;e=j[d+78>>1]|0;if(e&2){f=k[d+16>>2]|0;if(f){e=f;do{d=k[e+8>>2]|0;if(k[d+12>>2]|0){Qk(m,d);k[d+4>>2]=0;j[d+38>>1]=0}e=k[e>>2]|0}while((e|0)!=0);e=k[(k[n>>2]|0)+(g<<4)+12>>2]|0;d=e;e=j[e+78>>1]|0}j[d+78>>1]=e&65533}}}}}while(0);Io(x,b);r=y;return}function jr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();f=h;e=k[a>>2]|0;do if((c|0)!=0?(k[c+4>>2]|0)!=0:0){if(i[e+145>>0]|0){yh(a,28488,f);c=a+64|0;k[c>>2]=(k[c>>2]|0)+1;c=-1;break}k[d>>2]=c;d=$q(e,b)|0;c=_h(e,d)|0;rg(e,d);if((c|0)<0){k[f>>2]=b;yh(a,28512,f);c=a+64|0;k[c>>2]=(k[c>>2]|0)+1;c=-1}}else g=7;while(0);if((g|0)==7){c=l[e+144>>0]|0;k[d>>2]=b}r=h;return c|0}function kr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Mr(a,k[b>>2]|0)|0){b=1;break a}if(Pr(a,k[b+32>>2]|0)|0){b=1;break a}if(Lr(a,k[b+36>>2]|0)|0){b=1;break a}if(Mr(a,k[b+40>>2]|0)|0){b=1;break a}if(Lr(a,k[b+44>>2]|0)|0){b=1;break a}if(Mr(a,k[b+48>>2]|0)|0){b=1;break a}if(Lr(a,k[b+60>>2]|0)|0){b=1;break a}if(Lr(a,k[b+64>>2]|0)|0){b=1;break a}b=k[b+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function lr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=0?(d=rh(a,72,0)|0,(d|0)!=0):0){f=Ur(a,k[b>>2]|0,c)|0;k[d>>2]=f;f=Ds(a,k[b+32>>2]|0,c)|0;k[d+32>>2]=f;f=Rr(a,k[b+36>>2]|0,c,0)|0;k[d+36>>2]=f;f=Ur(a,k[b+40>>2]|0,c)|0;k[d+40>>2]=f;f=Rr(a,k[b+44>>2]|0,c,0)|0;k[d+44>>2]=f;f=Ur(a,k[b+48>>2]|0,c)|0;k[d+48>>2]=f;i[d+4>>0]=i[b+4>>0]|0;f=lr(a,k[b+52>>2]|0,c)|0;k[d+52>>2]=f;if(f)k[f+56>>2]=d;k[d+56>>2]=0;h=Rr(a,k[b+60>>2]|0,c,0)|0;k[d+60>>2]=h;h=Rr(a,k[b+64>>2]|0,c,0)|0;k[d+64>>2]=h;k[d+8>>2]=0;k[d+12>>2]=0;j[d+6>>1]=(m[b+6>>1]|0)&65527;k[d+16>>2]=-1;k[d+20>>2]=-1;h=b+24|0;f=k[h+4>>2]|0;c=d+24|0;k[c>>2]=k[h>>2];k[c+4>>2]=f;c=k[b+68>>2]|0;if((c|0)!=0?(g=k[c>>2]<<4|8,e=rh(a,g,((g|0)<0)<<31>>31)|0,(e|0)!=0):0){kw(e|0,0,g|0)|0;k[e>>2]=k[c>>2];if((k[c>>2]|0)>0){b=e+8|0;f=0;do{g=lr(a,k[c+(f<<4)+16>>2]|0,0)|0;k[b+(f<<4)+8>>2]=g;g=Ur(a,k[c+(f<<4)+12>>2]|0,0)|0;k[b+(f<<4)+4>>2]=g;g=ph(a,k[c+(f<<4)+8>>2]|0)|0;k[b+(f<<4)>>2]=g;f=f+1|0}while((f|0)<(k[c>>2]|0))}}else e=0;k[d+68>>2]=e}else d=0;return d|0}function mr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0;t=r;r=r+16|0;if((r|0)>=(s|0))ka();n=t;e=t+8|0;g=t+4|0;q=k[a>>2]|0;h=b+44|0;d=i[h>>0]|0;a:do if(!(d&16))o=11;else{c=k[b+60>>2]|0;if(c)do{if((k[c>>2]|0)==(q|0)){o=11;break a}c=k[c+24>>2]|0}while((c|0)!=0);c=b+56|0;d=gn(q+308|0,k[k[c>>2]>>2]|0,e)|0;if((d|0)!=0?(f=k[d+8>>2]|0,(f|0)!=0):0){k[g>>2]=0;f=(En(q,b,f,k[(k[f>>2]|0)+8>>2]|0,g)|0)==0;d=k[g>>2]|0;if(f){rg(q,d);d=i[h>>0]|0;o=11;break}else{k[n>>2]=d;yh(a,10344,n);rg
12 function nr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,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,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,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;za=r;r=r+240|0;if((r|0)>=(s|0))ka();oa=za;pa=za+220|0;ga=za+216|0;ea=za+196|0;fa=za+176|0;ra=za+164|0;sa=za+136|0;va=za+88|0;ca=za+64|0;ia=za+32|0;xa=a+464|0;ya=k[xa>>2]|0;la=a+468|0;ua=k[la>>2]|0;k[la>>2]=ua+1;k[xa>>2]=ua;ua=k[a>>2]|0;a:do if((((b|0)!=0?(ma=ua+65|0,(i[ma>>0]|0)==0):0)?(d=a+64|0,(k[d>>2]|0)==0):0)?(Xq(a,21,0,0,0)|0)==0:0){A=va+0|0;z=A+48|0;do{k[A>>2]=0;A=A+4|0}while((A|0)<(z|0));ha=b+48|0;if((l[c>>0]|0)<9){Sk(ua,k[ha>>2]|0);k[ha>>2]=0;ba=b+6|0;j[ba>>1]=m[ba>>1]&65534}Is(a,b,0);k[sa+0>>2]=0;k[sa+4>>2]=0;k[sa+8>>2]=0;k[sa+12>>2]=0;k[sa+16>>2]=0;k[sa+20>>2]=0;k[sa+24>>2]=0;k[sa>>2]=k[ha>>2];ja=b+32|0;u=k[ja>>2]|0;t=k[b>>2]|0;b:do if(((k[d>>2]|0)==0?(i[ma>>0]|0)==0:0)?(qa=b+6|0,w=(m[qa>>1]|0)>>>2&1,ta=Tq(a)|0,(ta|0)!=0):0){if((k[t>>2]|0)>1?(i[c>>0]&-2)<<24>>24==10:0){yh(a,35368,oa);wa=444;break}na=b+52|0;t=k[na>>2]|0;c:do if(!t){h=a+460|0;g=a+492|0;f=b+36|0;e=a+408|0;d=b+60|0;Q=b+64|0;R=b+4|0;S=ua+60|0;T=ta+32|0;U=a+72|0;V=ca+4|0;W=ca+1|0;X=ca+8|0;Y=ca+12|0;Z=ta+4|0;_=ta+24|0;$=a+19|0;aa=a+56|0;ba=a+80|0;P=0;v=w;while(1){if((P|0)>=(k[u>>2]|0)){D=f;N=0;w=v;R=u;break c}J=k[u+(P*72|0)+28>>2]|0;do if(!J)w=P;else{M=u+(P*72|0)+32|0;x=k[M>>2]|0;if(x){if(i[u+(P*72|0)+45>>0]&4){w=P;break}Bh(ta,17,k[u+(P*72|0)+36>>2]|0,x,0)|0;w=P;break}k[oa>>2]=0;Js(b,oa);k[h>>2]=(k[h>>2]|0)+(k[oa>>2]|0);q=j[J+6>>1]&4;N=k[g>>2]|0;p=k[a>>2]|0;d:do if(!(j[p+60>>1]&1)){H=k[ja>>2]|0;o=k[H+(P*72|0)+48>>2]|0;G=H+(P*72|0)+28|0;K=k[G>>2]|0;n=q<<16>>16!=0;do if(n){if(v){wa=120;break d}if((k[H>>2]|0)>1){wa=120;break d}O=k[f>>2]|0;if((O|0)!=0?(k[O+4>>2]&2097152|0)!=0:0){wa=120;break d}D=k[b>>2]|0;do if(D){B=k[D>>2]|0;if((B|0)<=0)break;E=k[D+4>>2]|0;D=0;C=0;do{C=k[(k[E+(D*20|0)>>2]|0)+4>>2]|C;D=D+1|0}while((D|0)!=(B|0));if(C&2097152){wa=120;break d}}while(0);D=k[ha>>2]|0;if(!D)break;B=k[D>>2]|0;if((B|0)<=0)break;E=k[D+4>>2]|0;D=0;C=0;do{C=k[(k[E+(D*20|0)>>2]|0)+4>>2]|C;D=D+1|0}while((D|0)!=(B|0));if(C&2097152){wa=120;break d}}while(0);E=k[K+32>>2]|0;D=(k[K+60>>2]|0)==0;if(!D?(k[d>>2]|0)!=0:0){wa=120;break}if(k[K+64>>2]|0){wa=120;break}B=j[qa>>1]|0;C=(B&64)==0;if(!(C|D)){wa=120;break}if(!(k[E>>2]|0)){wa=120;break}A=j[K+6>>1]|0;if(A&1){wa=120;break}E=D|C^1;if(!E?(k[H>>2]|0)>1|(v|0)!=0:0){wa=120;break}D=B&1;if(D<<16>>16!=0&n){wa=120;break}y=k[ha>>2]|0;z=(y|0)==0;if(!z?(k[K+48>>2]|0)!=0:0){wa=120;break}F=(v|0)!=0;if(F?(k[K+48>>2]|0)!=0:0){wa=120;break}if(E){if(A&6144){wa=120;break}}else if(!((k[f>>2]|0)==0&D<<16>>16==0&(A&6144)==0)){wa=120;break}if((B&2048)!=0?(k[K+52>>2]|0)!=0:0){wa=120;break}O=H+(P*72|0)+44|0;if(i[O>>0]&32){wa=120;break}B=K+52|0;E=k[B>>2]|0;do if(E){if(!(D<<16>>16==0&(((k[K+48>>2]|0)!=0|F)^1))){wa=120;break d}if((k[H>>2]|0)!=1){wa=120;break d}e:do if(K){if(!(A&5))C=K;else{wa=120;break d}while(1){D=(E|0)==0;if(!D?(i[C+4>>0]|0)!=116:0){wa=120;break d}if((k[k[C+32>>2]>>2]|0)<1){wa=120;break d}if((k[k[K>>2]>>2]|0)!=(k[k[C>>2]>>2]|0)){wa=120;break d}if(D)break e;if(j[E+6>>1]&5){wa=120;break d}C=E;E=k[E+52>>2]|0}}while(0);if(z)break;C=k[y>>2]|0;if((C|0)<=0)break;E=k[y+4>>2]|0;D=0;do{if(!(j[E+(D*20|0)+16>>1]|0)){wa=120;break d}D=D+1|0}while((D|0)<(C|0))}while(0);x=H+(P*72|0)+16|0;k[g>>2]=k[x>>2];Xq(a,21,0,0,0)|0;k[g>>2]=N;E=k[B>>2]|0;f:do if(!E)wa=81;else{y=p+65|0;B=k[ha>>2]|0;A=k[d>>2]|0;z=k[Q>>2]|0;C=k[na>>2]|0;while(1){k[ha>>2]=0;k[ja>>2]=0;k[na>>2]=0;k[d>>2]=0;k[Q>>2]=0;D=lr(p,b,0)|0;k[Q>>2]=z;k[d>>2]=A;k[ha>>2]=B;k[ja>>2]=H;i[R>>0]=116;if(!D)D=C;else{k[D+52>>2]=C;if(C)k[C+56>>2]=D;k[D+56>>2]=b}k[na>>2]=D;if(i[y>>0]|0)break f;E=k[E+52>>2]|0;if(!E){wa=81;break}else C=D}}while(0);if((wa|0)==81){wa=0;I=k[G>>2]|0;B=H+(P*72|0)+12|0;rg(p,k[B>>2]|0);rg(p,k[x>>2]|0);C=H+(P*72|0)+20|0;rg[a+72>>2]|0;break}else{p=d+-2<<24>>24;i[t>>0]=p;n=1;p=k[a+((p&255)<<2)+24>>2]|0;d=e;break k}}else{d=a+72|0;t=(k[d>>2]|0)+1|0;k[d>>2]=t;d=t}while(0);p=t+1|0;k[a+72>>2]=p;n=1}while(0);h=(k[g>>2]|0)-(k[u>>2]|0)|0;w=sa+24|0;if(!(i[w>>0]&1)){t=Bh(D,107,B,E,0)|0;nt(D,k[b+12>>2]|0,C);e=1;f=B}else{ba=a+72|0;f=(k[ba>>2]|0)+1|0;k[ba>>2]=f;ba=a+68|0;g=k[ba>>2]|0;k[ba>>2]=g+1;if(!(k[v>>2]|0))e=0;else{ba=Tq(a)|0;aa=a+80|0;e=k[aa>>2]|0;k[aa>>2]=e+1;e=Bh(ba,44,e,0,0)|0}Bh(D,60,g,f,n+1+h|0)|0;if(e){t=k[D+32>>2]|0;if(t>>>0>e>>>0)k[(k[D+4>>2]|0)+(e*20|0)+8>>2]=t;k[(k[D+24>>2]|0)+88>>2]=t+-1}t=Bh(D,106,B,E,0)|0;nt(D,k[b+12>>2]|0,C);Bh(D,100,B,f,g)|0;e=0;f=g}u=t+1|0;if((n|0)>0){t=e+h|0;e=0;do{Bh(D,47,f,t+e|0,e+p|0)|0;e=e+1|0}while((e|0)!=(n|0))}do if((y|0)==12|(y|0)==14){Bh(D,74,A,d,0)|0;Bh(D,75,A,p,d)|0;o=k[D+4>>2]|0;if(!o)break;i[o+(((k[D+32>>2]|0)+-1|0)*20|0)+3>>0]=8}else if((y|0)==11){Ch(D,Bh(D,49,p,1,d)|0,c+1|0,1);it(a,p,1);Bh(D,110,A,d,0)|0}else if((y|0)!=10)if(o){ba=c+8|0;Bh(D,35,k[ba>>2]|0,x,0)|0;it(a,k[ba>>2]|0,x);break}else{Bh(D,22,k[z>>2]|0,0,0)|0;break}else{Bh(k[q>>2]|0,32,p,A,1)|0;it(a,p,1)}while(0);if(d){ds(a,p);ds(a,d)}n=D+24|0;p=k[n>>2]|0;q=~C;do if((C|0)<0){o=k[p+112>>2]|0;if(!o)break;k[o+(q<<2)>>2]=k[D+32>>2]}while(0);q=D+32|0;k[p+88>>2]=(k[q>>2]|0)+-1;if(!(i[w>>0]&1))Bh(D,9,B,u,0)|0;else Bh(D,5,B,u,0)|0;h=k[sa+12>>2]|0;if(h)Bh(D,18,h,0,0)|0;h=k[n>>2]|0;g=~E;do if((E|0)<0){f=k[h+112>>2]|0;if(!f)break;k[f+(g<<2)>>2]=k[q>>2]}while(0);k[h+88>>2]=(k[q>>2]|0)+-1}e=k[ta+24>>2]|0;f=~na;do if((na|0)<0){d=k[e+112>>2]|0;if(!d)break;k[d+(f<<2)>>2]=k[ta+32>>2]}while(0);k[e+88>>2]=(k[ta+32>>2]|0)+-1;k[xa>>2]=ya;if((i[c>>0]|0)!=9){d=0;break}Ss(a,R,Q);d=0}else wa=444;while(0);if((wa|0)==444){k[xa>>2]=ya;d=1}rg(ua,k[va+28>>2]|0);rg(ua,k[va+40>>2]|0)}else d=1;while(0);r=za;return d|0}function or(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();j=o;m=k[a>>2]|0;if((b|0)==0?(i=(g|0)!=0,i|(h|0)!=0):0){k[j>>2]=i?34792:34800;yh(a,34752,j);n=9}else{b=ur(m,b,c,d)|0;if((b|0)!=0?(l=k[b>>2]|0,(l|0)!=0):0){i=l+-1|0;if(k[e+4>>2]|0){e=$q(m,e)|0;k[b+(i*72|0)+20>>2]=e}k[b+(i*72|0)+28>>2]=f;k[b+(i*72|0)+52>>2]=g;k[b+(i*72|0)+56>>2]=h}else n=9}if((n|0)==9){Lk(m,g);Mk(m,h);Rk(m,f,1);b=0}r=o;return b|0}function pr(a,b,c,d,e,f,g,h,l,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+80|0;if((r|0)>=(s|0))ka();o=v+72|0;u=v;t=k[a>>2]|0;n=rh(t,72,0)|0;if(!n){p=u+0|0;q=p+72|0;do{k[p>>2]=0;p=p+4|0}while((p|0)<(q|0));n=u}else{p=n+0|0;q=p+72|0;do{i[p>>0]=0;p=p+1|0}while((p|0)<(q|0))}if(!b){k[o>>2]=0;k[o+4>>2]=0;b=qr(a,0,sr(t,116,o,0)|0)|0}k[n>>2]=b;if(!c){c=rh(t,80,0)|0;if(c){p=c+0|0;q=p+80|0;do{i[p>>0]=0;p=p+1|0}while((p|0)<(q|0))}}k[n+32>>2]=c;k[n+36>>2]=d;k[n+40>>2]=e;k[n+44>>2]=f;k[n+48>>2]=g;j[n+6>>1]=h;i[n+4>>0]=119;k[n+60>>2]=l;k[n+64>>2]=m;k[n+16>>2]=-1;k[n+20>>2]=-1;if(i[t+65>>0]|0){Rk(t,n,(n|0)!=(u|0)&1);n=0}r=v;return n|0}function qr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=k[a>>2]|0;if(!b){b=rh(e,8,0)|0;if(b){a=b;d=a;i[d>>0]=0;i[d+1>>0]=0;i[d+2>>0]=0;i[d+3>>0]=0;a=a+4|0;i[a>>0]=0;i[a+1>>0]=0;i[a+2>>0]=0;i[a+3>>0]=0;a=rh(e,20,0)|0;k[b+4>>2]=a;if(!a)d=8;else d=7}else{b=0;d=8}}else{a=k[b>>2]|0;if(!(a+-1&a)){d=b+4|0;a=wo(e,k[d>>2]|0,a*40|0,0)|0;if(!a)d=8;else{k[d>>2]=a;d=7}}else d=7}if((d|0)==7){a=k[b>>2]|0;k[b>>2]=a+1;a=(k[b+4>>2]|0)+(a*20|0)|0;k[a+0>>2]=0;k[a+4>>2]=0;k[a+8>>2]=0;k[a+12>>2]=0;k[a+16>>2]=0;k[a>>2]=c}else if((d|0)==8){Lk(e,c);Sk(e,b);b=0}return b|0}function rr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;do if(b){h=(k[b>>2]|0)+-1|0;e=k[b+4>>2]|0;f=k[c>>2]|0;b=k[c+4>>2]|0;if((f|0)!=0?(c=k[a>>2]|0,g=ow(b|0,0,1,0)|0,g=rh(c,g,L)|0,(g|0)!=0):0){pw(g|0,f|0,b|0)|0;i[g+b>>0]=0;k[e+(h*20|0)+4>>2]=g;if(!d)break;qo(g);break}k[e+(h*20|0)+4>>2]=0}while(0);return}function sr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();h=o;k[h>>2]=0;f=(c|0)!=0;do if(f){if(((b|0)==132?(e=k[c>>2]|0,(e|0)!=0):0)?(In(e,h)|0)!=0:0){m=0;break}m=(k[c+4>>2]|0)+1|0}else m=0;while(0);g=m+48|0;l=rh(a,g,0)|0;if(l){kw(l|0,0,g|0)|0;i[l>>0]=b;j[l+34>>1]=-1;do if(f){if(!m){d=l+4|0;k[d>>2]=k[d>>2]|1024;k[l+8>>2]=k[h>>2];break}e=l+48|0;g=l+8|0;k[g>>2]=e;f=c+4|0;a=k[f>>2]|0;if(!a)e=48;else{pw(e|0,k[c>>2]|0,a|0)|0;e=(k[f>>2]|0)+48|0}i[l+e>>0]=0;if(((d|0)!=0&(m|0)>2?(d=i[k[c>>2]>>0]|0,n=d<<24>>24==34,d<<24>>24==34|d<<24>>24==39|d<<24>>24==91|d<<24>>24==96):0)?(qo(k[g>>2]|0),n):0){d=l+4|0;k[d>>2]=k[d>>2]|64}}while(0);k[l+24>>2]=1}r=o;return l|0}function tr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;do if((b|0)!=0?(d=k[b>>2]|0,(d|0)>0):0){d=d+-1|0;if((k[c+4>>2]|0)==1?(k[c>>2]|0)==0:0){d=b+(d*72|0)+45|0;i[d>>0]=i[d>>0]|1;break}c=$q(k[a>>2]|0,c)|0;k[b+(d*72|0)+72>>2]=c}while(0);return}function ur(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(!b){b=rh(a,80,0)|0;if(!b)b=0;else{f=b+0|0;e=f+80|0;do{i[f>>0]=0;f=f+1|0}while((f|0)<(e|0));k[b+4>>2]=1;f=4}}else f=4;do if((f|0)==4){b=Ks(a,b,1,k[b>>2]|0)|0;if(i[a+65>>0]|0){Io(a,b);b=0;break}f=(k[b>>2]|0)+-1|0;if(!d)e=0;else e=(k[d>>2]|0)==0?0:d;d=(e|0)==0;e=$q(a,d?c:e)|0;k[b+(f*72|0)+16>>2]=e;e=$q(a,d?0:c)|0;k[b+(f*72|0)+12>>2]=e}while(0);return b|0}function vr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,m=0,n=0,o=0;o=r;r=r+32|0;if((r|0)>=(s|0))ka();m=o;i=o+16|0;k[i>>2]=b;k[i+4>>2]=c;k[i+8>>2]=d;h=b;j=1;e=0;a:while(1){if(!h)break;g=k[h+4>>2]|0;f=0;while(1){if((g|0)==(l[34625+(f*3|0)>>0]|0|0)?(Kc(k[h>>2]|0,34584+(l[34624+(f*3|0)>>0]|0)|0,g)|0)==0:0)break;f=f+1|0;if((f|0)>=7){n=10;break a}}e=l[34626+(f*3|0)>>0]|0|e;if((f|0)>6){n=10;break}if((j|0)>=3)break;h=k[i+(j<<2)>>2]|0;j=j+1|0}if((n|0)==10)e=e|64;if((e&33|0)!=33&(e&64|0)==0){if(!((e&32|0)==0|(e&24|0)==8)){yh(a,34696,m);e=1}}else{k[m>>2]=b;k[m+4>>2]=c;k[m+8>>2]=(d|0)==0?20377|0:20376;k[m+12>>2]=d;yh(a,34648,m);e=1}r=o;return e|0}function wr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,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;Q=r;r=r+48|0;if((r|0)>=(s|0))ka();N=Q+36|0;O=Q+32|0;m=Q;k[N>>2]=0;k[O>>2]=0;P=k[a>>2]|0;if(((((k[a+64>>2]|0)==0?(i[P+65>>0]|0)==0:0)?(E=Or(a,b)|0,(E|0)!=0):0)?(D=ot(a,E,109,0,0)|0,M=(k[E+12>>2]|0)!=0,(mr(a,E)|0)==0):0)?(o=(D|0)!=0,(pt(a,E,o&1)|0)==0):0){f=k[E+68>>2]|0;a:do if(f){e=k[P+20>>2]|0;if((e|0)>0){d=k[P+16>>2]|0;h=0;while(1){g=h+1|0;if((k[d+(h<<4)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=Xq(a,9,k[E>>2]|0,0,k[(k[P+16>>2]|0)+(g<<4)>>2]|0)|0;if((d|0)!=1){n=a+68|0;z=k[n>>2]|0;p=z+1|0;k[n>>2]=p;k[b+48>>2]=z;F=E+8|0;f=k[F>>2]|0;if(!f)h=0;else{e=p;h=0;do{e=e+1|0;k[n>>2]=e;h=h+1|0;f=k[f+20>>2]|0}while((f|0)!=0)}if(M){K=a+492|0;L=k[K>>2]|0;k[K>>2]=k[E>>2];K=a}else{K=0;L=0}I=Tq(a)|0;b:do if(I){J=a+18|0;if(!(i[J>>0]|0)){B=I+88|0;j[B>>1]=j[B>>1]|4}A=a+408|0;B=k[A>>2]|0;B=(B|0)==0?a:B;Fr(a,g);y=B+328|0;k[y>>2]=k[y>>2]|1<<g;B=B+20|0;i[B>>0]=l[B>>0]|1;if(M){qt(a,E,c,z);k[O>>2]=z;k[N>>2]=z};k[m+0>>2]=0;k[m+4>>2]=0;k[m+8>>2]=0;k[m+12>>2]=0;k[m+16>>2]=0;k[m+20>>2]=0;k[m+24>>2]=0;k[m+28>>2]=0;k[m>>2]=a;k[m+4>>2]=b;if(!(qs(m,c)|0)){G=P+24|0;if(!(k[G>>2]&128))H=-1;else{B=a+72|0;H=(k[B>>2]|0)+1|0;k[B>>2]=H;Bh(I,25,0,H,0)|0}B=E+44|0;do if((!((c|0)!=0|(d|0)!=0|o)?(i[B>>0]&16)==0:0)?(rt(a,E,0,0)|0)==0:0){f=E+32|0;ls(a,g,k[f>>2]|0,1,k[E>>2]|0);if(!(i[B>>0]&32)){E=k[E>>2]|0;Ch(I,Bh(I,118,k[f>>2]|0,g,H)|0,E,-2)}d=k[F>>2]|0;if(!d){d=0;break}do{Bh(I,118,k[d+40>>2]|0,g,0)|0;d=k[d+20>>2]|0}while((d|0)!=0);d=0}else C=31;while(0);do if((C|0)==31){if(!(i[B>>0]&32)){q=a+72|0;w=(k[q>>2]|0)+1|0;k[q>>2]=w;Bh(I,28,0,w,0)|0;q=0;x=0;d=0;u=1;g=0}else{g=k[F>>2]|0;c:do if(!g)g=0;else while(1){if((i[g+51>>0]&3)==2)break c;g=k[g+20>>2]|0;if(!g){g=0;break}}while(0);u=j[g+46>>1]|0;x=a+72|0;d=k[x>>2]|0;q=u<<16>>16;k[x>>2]=d+q;x=k[n>>2]|0;k[n>>2]=x+1;q=Bh(I,57,x,q,0)|0;w=k[a+8>>2]|0;Ch(w,-1,ms(a,g)|0,-6);d=d+1|0;w=0}t=_s(a,b,c,0,0,12,p)|0;if(!t){d=0;break b}p=t+60|0;o=k[p>>2]|0;p=k[p+4>>2]|0;v=i[t+38>>0]|0;if(k[G>>2]&128)Bh(I,37,H,1,0)|0;y=(g|0)!=0;do if(y){if(u<<16>>16<=0){e=d;break}m=g+4|0;f=u<<16>>16;n=0;do{st(I,E,z,j[(k[m>>2]|0)+(n<<1)>>1]|0,n+d|0);n=n+1|0}while((n|0)!=(f|0));e=d}else{f=a+72|0;e=ht(a,E,-1,z,(k[f>>2]|0)+1|0,0)|0;if((e|0)<=(k[f>>2]|0))break;k[f>>2]=e}while(0);m=v<<24>>24!=0;do if(!m)if(y){f=a+72|0;e=(k[f>>2]|0)+1|0;k[f>>2]=e;f=u<<16>>16;n=tt(I,g)|0;Ch(I,Bh(I,49,d,f,e)|0,n,f);Bh(I,110,x,e,0)|0;d=0;f=0;n=0;C=59;break}else{Bh(I,128,w,e,0)|0;at(t);d=0;p=0;g=1;break}else{d=h+2|0;d=rh(P,d,((d|0)<0)<<31>>31)|0;if(!d){at(t);d=0;break b}C=h+1|0;kw(d|0,1,C|0)|0;i[d+C>>0]=0;if((o|0)>-1)i[d+(o-z)>>0]=0;if((p|0)>-1)i[d+(p-z)>>0]=0;if(q)Eh(I,q);f=Bh(I,16,0,0,0)|0;n=u;C=59}while(0);do if((C|0)==59){at(t);if(!m){p=0;g=n;break}g=Cs(I)|0;Bh(I,16,0,g,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;p=g;g=n}while(0);if(!M)ut(a,E,55,z,d,N,O)|0;do if(!m)if(y){f=Bh(I,108,x,0,0)|0;Bh(I,101,x,e,0)|0;break}else{f=Bh(I,129,w,0,e)|0;break}else{h=k[N>>2]|0;if(!(i[d+(h-z)>>0]|0)){f=0;break}Ch(I,Bh(I,68,h,p,e)|0,g<<16>>16,-14);f=0}while(0);if(!(i[B>>0]&16))wt(a,E,D,k[N>>2]|0,k[O>>2]|0,e,g,(i[J>>0]|0)==0&1,10,v);else{h=k[E+60>>2]|0;d:do if(!h)h=0;else while(1){if((k[h>>2]|0)==(P|0))break d;h=k[h+24>>2]|0;if(!h){h=0;break}}while(0);vt(a,E);Ch(I,Bh(I,15,0,1,e)|0,h,-10);h=k[I+4>>2]|0;if(h)i[h+(((k[I+32>>2]|0)+-1|0)*20|0)+3>>0]=2;E=k[A>>2]|0;i[((E|0)==0?a:E)+21>>0]=1}do if(!m)if(y){Bh(I,9,x,f+1|0,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;break}else{Bh(I,16,0,f,0)|0;h=k[I+32>>2]|0;if(h>>>0>f>>>0)k[(k[I+4>>2]|0)+(f*20|0)+8>>2]=h;k[(k[I+24>>2]|0)+88>>2]=h+-1;break}else{g=k[I+24>>2]|0;f=~p;do if((p|0)<0){h=k[g+112>>2]|0;if(!h)break;k[h+(f<<2)>>2]=k[I+32>>2]}while(0);k[g+88>>2]=(k[I+32>>2]|0)+-1}while(0);if(M)break;if(i[B>>0]&16)break;if(!y)Bh(I,61,k[N>>2]|0,0,0)|0;e=k[F>>2]|0;if(!e)break;else f=0;while(1){Bh(I,61,(k[O>>2]|0)+f|0,0,0)|0;e=k[e+20>>2]|0;if(!e)break;else f=f+1|0}}while(0);if((i[J>>0]|0)==0?(k[a+412>>2]|0)==0:0)xt(a);if((k[G>>2]&128|0)!=0?(i[J>>0]|0)==0:0){if(k[a+412>>2]|0)break;Bh(I,35,H,1,0)|0;nq(I,1);if(i[(k[I>>2]|0)+65>>0]|0)break;ah(k[I+16>>2]|0,34568,-1,1,0)|0}}else d=0}else d=0;while(0);if(K)k[K+492>>2]=L}else d=0}else d=0;Io(P,b);Lk(P,c);rgrgrg(ja,g);r=la;return}function zr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();d=f;if(!b){b=rh(a,8,0)|0;if(!b)b=0;else{e=b;g=e;i[g>>0]=0;i[g+1>>0]=0;i[g+2>>0]=0;i[g+3>>0]=0;e=e+4|0;i[e>>0]=0;i[e+1>>0]=0;i[e+2>>0]=0;i[e+3>>0]=0;e=4}}else e=4;do if((e|0)==4){e=Mt(a,k[b>>2]|0,8,b+4|0,d)|0;k[b>>2]=e;d=k[d>>2]|0;if((d|0)<0){Mk(a,b);b=0;break}else{a=$q(a,c)|0;k[(k[b>>2]|0)+(d<<3)>>2]=a;break}}while(0);r=f;return b|0}function Ar(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if((k[c+4>>2]|0)!=0?(e=sr(k[a>>2]|0,95,c,d)|0,(e|0)!=0):0){k[e+12>>2]=b;b=e+4|0;k[b>>2]=k[b>>2]|4352;b=e}return b|0}function Br(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=k[a>>2]|0;c=sr(d,153,c,1)|0;if(!c){Sk(d,b);c=0}else{k[c+20>>2]=b;Dr(a,c)}return c|0}function Cr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=k[a>>2]|0;if((b|0)!=0&(c|0)!=0?(i[b>>0]|0)==101:0){i[c>>0]=d;d=c+16|0;Lk(a,k[d>>2]|0);k[d>>2]=0}return}function Dr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;if((k[a+64>>2]|0)==0?(Nt(b),c=k[(k[a>>2]|0)+100>>2]|0,(c|0)<(k[b+24>>2]|0)):0){k[d>>2]=c;yh(a,27152,d)}r=e;return}function Er(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;c=k[a>>2]|0;h=c+20|0;d=k[h>>2]|0;if((d|0)>0){f=c+16|0;g=(b|0)==0;c=d;e=0;do{d=k[f>>2]|0;do if(k[d+(e<<4)+4>>2]|0){if(!g?(id(b,k[d+(e<<4)>>2]|0)|0)!=0:0)break;Fr(a,e);c=k[h>>2]|0}while(0);e=e+1|0}while((e|0)<(c|0))}return}function Fr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;e=k[a+408>>2]|0;e=(e|0)==0?a:e;a=e+332|0;c=k[a>>2]|0;d=1<<b;if((c&d|0)==0?(f=k[e>>2]|0,k[a>>2]=c|d,k[e+(b<<2)+336>>2]=k[k[(k[f+16>>2]|0)+(b<<4)+12>>2]>>2],(b|0)==1):0)dl(e)|0;return}function Gr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;m=r;r=r+128|0;if((r|0)>=(s|0))ka();d=m+8|0;l=m;j=m+24|0;k[l>>2]=0;g=k[a>>2]|0;if((k[a+64>>2]|0)==0?(k[d>>2]=c,h=$k(g,b,d)|0,(h|0)!=0):0){b=a+18|0;i[b>>0]=(i[b>>0]|0)+1<<24>>24;c=a+440|0;d=j+0|0;e=c+0|0;f=d+96|0;do{i[d>>0]=i[e>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));d=c+0|0;f=d+96|0;do{k[d>>2]=0;d=d+4|0}while((d|0)<(f|0));Qh(a,h,l)|0;rg(g,k[l>>2]|0);rg=k[o>>2]|0;Ch(b,Bh(b,97,0,3,0)|0,D,0);D=k[(k[q>>2]|0)+((k[g+(c<<3)+36>>2]|0)*24|0)>>2]|0;Ch(b,Bh(b,97,0,4,0)|0,D,0);Ch(b,Bh(b,(p|0)!=0?97:28,0,5,0)|0,p,0);Ch(b,Bh(b,97,0,6,0)|0,n,0);Ch(b,Bh(b,97,0,7,0)|0,h,0);Ch(b,Bh(b,97,0,8,0)|0,31424,0);Bh(b,35,1,8,0)|0;c=c+1|0}while((c|0)<(k[d>>2]|0))}g=k[g+4>>2]|0;if(!g)break;else t=t+1|0}break}case 12:{b=k[P>>2]|0;E=b+1|0;F=b+5|0;G=b+6|0;k[P>>2]=G;H=Tq(a)|0;nq(H,4);if((((i[(k[H>>2]|0)+65>>0]|0)==0?(ah(k[H+16>>2]|0,31232,-1,1,0)|0,(i[(k[H>>2]|0)+65>>0]|0)==0):0)?(ah((k[H+16>>2]|0)+40|0,20456,-1,1,0)|0,(i[(k[H>>2]|0)+65>>0]|0)==0):0)?(ah((k[H+16>>2]|0)+80|0,31432,-1,1,0)|0,(i[(k[H>>2]|0)+65>>0]|0)==0):0)ah((k[H+16>>2]|0)+120|0,31440,-1,1,0)|0;Fr(a,N);t=k[(k[(k[O>>2]|0)+(N<<4)+12>>2]|0)+16>>2]|0;if(!t)break a;p=(R|0)==0;c=a+68|0;q=H+32|0;A=H+4|0;B=H+24|0;C=b+2|0;D=b+3|0;x=b+4|0;o=a+8|0;while(1){if(p){y=k[t>>2]|0;z=k[t+8>>2]|0}else{y=0;z=xh(a,0,R,I)|0}if((z|0)!=0?(J=z+16|0,(k[J>>2]|0)!=0):0){ls(a,N,k[z+32>>2]|0,0,k[z>>2]|0);b=(j[z+38>>1]|0)+G|0;if((b|0)>(k[P>>2]|0))k[P>>2]=b;Vq(a,0,N,z,54);t=k[z>>2]|0;Ch(H,Bh(H,97,0,E,0)|0,t,0);t=k[J>>2]|0;if(!t)b=1;else{b=1;do{e=di(T,k[t+8>>2]|0,I)|0;do if(e){k[L>>2]=0;ls(a,N,k[e+32>>2]|0,0,k[e>>2]|0);if(Rt(a,e,t,L,0)|0)break a;f=k[L>>2]|0;if(!f){Vq(a,b,N,e,54);break}else{Bh(H,54,b,k[f+40>>2]|0,N)|0;w=k[o>>2]|0;Ch(w,-1,ms(a,f)|0,-6);break}}while(0);b=b+1|0;t=k[t+4>>2]|0}while((t|0)!=0)}if((k[c>>2]|0)<(b|0))k[c>>2]=b;n=Bh(H,108,0,0,0)|0;b=k[J>>2]|0;if(b){w=z+36|0;v=1;while(1){u=b+8|0;t=di(T,k[u>>2]|0,I)|0;k[L>>2]=0;k[K>>2]=0;h=(t|0)!=0;do if(h){Rt(a,t,b,L,K)|0;e=k[L>>2]|0;f=Cs(H)|0;if(!(h&(e|0)==0)){t=f;M=306;break}t=k[b+36>>2]|0;if((t|0)==(j[w>>1]|0))Bh(H,103,0,G,0)|0;else{Bh(H,47,0,t,G)|0;St(H,z,t,G);Bh(H,76,G,f,0)|0;Bh(H,38,G,(k[q>>2]|0)+3|0,0)|0}Bh(H,70,v,0,G)|0;Bh(H,16,0,f,0)|0;t=k[q>>2]|0;if(t>>>0>1)k[(k[A>>2]|0)+((t+-2|0)*20|0)+8>>2]=t;k[(k[B>>2]|0)+88>>2]=t+-1;t=f}else{t=Cs(H)|0;e=0;M=306}while(0);do if((M|0)==306){M=0;g=b+20|0;f=k[g>>2]|0;if((f|0)>0){d=0;do{f=k[K>>2]|0;if(!f)f=b+(d<<3)+36|0;else f=f+(d<<2)|0;O=d+G|0;st(H,z,0,k[f>>2]|0,O);Bh(H,76,O,t,0)|0;d=d+1|0;f=k[g>>2]|0}while((d|0)<(f|0))}if(!h)break;d=tt(H,e)|0;e=k[g>>2]|0;Ch(H,Bh(H,49,G,f,F)|0,d,e);Ch(H,Bh(H,69,v,t,F)|0,0,-14)}while(0);Bh(H,103,0,C,0)|0;e=k[u>>2]|0;Ch(H,Bh(H,97,0,D,0)|0,e,0);Bh(H,25,v+-1|0,x,0)|0;Bh(H,35,E,4,0)|0;e=k[B>>2]|0;f=~t;do if((t|0)<0){t=k[e+112>>2]|0;if(!t)break;k[t+(f<<2)>>2]=k[q>>2]}while(0);k[e+88>>2]=(k[q>>2]|0)+-1;rg(T,k[K>>2]|0);b=k[b+4>>2]|0;if(!b)break;else v=v+1|0}}Bh(H,9,0,n+1|0,0)|0;b=k[q>>2]|0;if(b>>>0>n>>>0)k[(k[A>>2]|0)+(n*20|0)+8>>2]=b;k[(k[B>>2]|0)+88>>2]=b+-1}if(!y)break;else t=y}break}case 11:{if(!R){if(Ln(a)|0)break a;nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,31784,-1,1,0)|0;Bh(Q,97,0,1,0)|0;Ch(Q,-1,k[31632+(l[(k[a>>2]|0)+62>>0]<<3)>>2]|0,-2);Bh(Q,35,1,1,0)|0;break a}d=k[(k[O>>2]|0)+12>>2]|0;if((j[d+78>>1]&5)==1)break a;else{f=31632;e=31704}do{if(!(id(R,e)|0)){q=f;M=415;break}f=f+8|0;e=k[f>>2]|0}while((e|0)!=0);if((M|0)==415?(C=i[q+4>>0]|0,C=C<<24>>24==0?2:C,i[T+62>>0]=C,i[d+77>>0]=C,(k[q>>2]|0)!=0):0)break a;k[D>>2]=R;yh(a,31800,D);break a}case 0:{n=k[30128+(t*12|0)>>2]|0;C=Q+96|0;k[C>>2]=k[C>>2]|1<<N;if((R|0)!=0?!((t|0)==11|(t|0)==20):0){f=Dh(Q,3,31832)|0;d=Q+32|0;if((k[d>>2]|0)>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;e=f+1|0;k[D>>2]=0;In(R,D)|0;d=k[d>>2]|0;if(d>>>0>e>>>0)k[(k[Q+4>>2]|0)+(e*20|0)+4>>2]=k[D>>2];f=f+2|0;if(d>>>0<=f>>>0)break a;k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;k[(k[Q+4>>2]|0)+(f*20|0)+8>>2]=n;break a}f=Dh(Q,3,31848)|0;d=k[Q+32>>2]|0;if(d>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;f=f+1|0;if(d>>>0>f>>>0){k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;k[(k[Q+4>>2]|0)+(f*20|0)+12>>2]=n}nq(Q,1);if(i[(k[Q>>2]|0)+65>>0]|0)break a;ah(k[Q+16>>2]|0,S,-1,1,-1)|0;break a}case 7:{nq(Q,1);k[P>>2]=1;if(!(i[(k[Q>>2]|0)+65>>0]|0)){ah(k[Q+16>>2]|0,31864,-1,1,0)|0;e=0}else e=0;do{D=k[8648+(e<<2)>>2]|0;e=e+1|0;Ch(Q,Bh(Q,97,0,1,0)|0,D,0);Bh(Q,35,1,1,0)|0}while((e|0)!=4);break}case 35:{f=(k[c>>2]|0)!=0?N:10;if(R)if(id(R,31880)|0)if(!(id(R,31888)|0))e=2;else{e=(id(R,31896)|0)==0;e=e?3:0}else e=1;else e=0;nq(Q,3);k[P>>2]=3;if(((i[(k[Q>>2]|0)+65>>0]|0)==0?(ah(k[Q+16>>2]|0,31912,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)?(ah((k[Q+16>>2]|0)+40|0,31920,-1,1,0)|0,(i[(k[Q>>2]|0)+65>>0]|0)==0):0)ah((k[Q+16>>2]|0)+80|0,31928,-1,1,0)|0;Bh(Q,11,f,e,1)|0;Bh(Q,35,1,3,0)|0;break a}case 26:{tf(T)|0;break a}case 34:{if(!R)e=k[T+216>>2]|0;else{k[D>>2]=0;In(R,D)|0;e=k[D>>2]|0;if((e|0)>0)f=21;else{e=0;f=0}k[T+216>>2]=f;k[T+220>>2]=e;e=f}if((e|0)==21){e=k[T+220>>2]|0;f=e;e=((e|0)<0)<<31>>31}else{f=0;e=0}Ot(a,31944,f,e);break a}case 27:{if((R|0)!=0?(oi(R,u)|0)==0:0){D=u;Uc(k[D>>2]|0,k[D+4>>2]|0)|0}C=(Qc()|0)==0;D=9032;Ot(a,31976,C?k[D>>2]|0:-1,C?k[D+4>>2]|0:-1);break a}case 33:{if((R|0)!=0?(B=(oi(R,n)|0)==0,D=n,C=k[D+4>>2]|0,B&((C|0)>-1|(C|0)==-1&(k[D>>2]|0)>>>0>4294967295)):0)k[T+132>>2]=0;D=k[T+132>>2]|0;Ot(a,31992,D,((D|0)<0)<<31>>31);break a}case 16:{if(!R)break a;d=di(T,R,I)|0;if(!d)break a;g=Tq(a)|0;nq(g,5);k[P>>2]=5;Fr(a,N);if(((((i[(k[g>>2]|0)+65>>0]|0)==0?(ah(k[g+16>>2]|0,31288,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)?(ah((k[g+16>>2]|0)+40|0,31184,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)?(ah((k[g+16>>2]|0)+80|0,31296,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)?(ah((k[g+16>>2]|0)+120|0,31304,-1,1,0)|0,(i[(k[g>>2]|0)+65>>0]|0)==0):0)ah((k[g+16>>2]|0)+160|0,31312,-1,1,0)|0;f=k[d+8>>2]|0;if(!f)break a;else e=0;while(1){Bh(g,25,e,1,0)|0;D=k[f>>2]|0;Ch(g,Bh(g,97,0,2,0)|0,D,0);Bh(g,25,(i[f+50>>0]|0)!=0&1,3,0)|0;D=k[31336+((i[f+51>>0]&3)<<2)>>2]|0;Ch(g,Bh(g,97,0,4,0)|0,D,0);Bh(g,25,(k[f+36>>2]|0)!=0&1,5,0)|0;Bh(g,35,1,5,0)|0;f=k[f+20>>2]|0;if(!f)break;else e=e+1|0}break}case 10:{g=1<<N;C=Q+96|0;k[C>>2]=k[C>>2]|g;if(R){k[D>>2]=0;In(R,D)|0;d=k[D>>2]|0;if((d|0)<=-1)d=(d|0)==-2147483648?2147483647:0-d|0;D=k[a+408>>2]|0;Fr(a,N);D=((D|0)==0?a:D)+328|0;k[D>>2]=k[D>>2]|g;Bh(Q,25,d,1,0)|0;Bh(Q,52,N,3,1)|0;k[(k[z+(N<<4)+12>>2]|0)+80>>2]=d;uq(k[z+(N<<4)+4>>2]|0,d);break a}nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,30848,-1,1,0)|0;k[P>>2]=(k[P>>2]|0)+2;d=Dh(Q,9,30808)|0;e=k[Q+32>>2]|0;if(e>>>0>d>>>0)k[(k[Q+4>>2]|0)+(d*20|0)+4>>2]=N;f=d+1|0;if(e>>>0>f>>>0)k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=N;f=d+6|0;if(e>>>0<=f>>>0)break a;k[(k[Q+4>>2]|0)+(f*20|0)+4>>2]=2e3;break a}case 2:{if(!R){Ot(a,b,(k[30128+(t*12|0)>>2]&k[T+24>>2]|0)!=0&1,0);break a}e=k[30128+(t*12|0)>>2]|0;e=(i[T+63>>0]|0)==0?e&-524289:e;if(!((ni(R,1,0)|0)<<24>>24)){D=T+24|0;k[D>>2]=k[D>>2]&~e;if((e|0)==16777216){D=T+512|0;k[D>>2]=0;k[D+4>>2]=0}}else{D=T+24|0;k[D>>2]=k[D>>2]|e}Bh(Q,144,0,0,0)|0;Qt(T);break a}default:{if(!R)e=k[T+492>>2]|0;else{k[D>>2]=0;In(R,D)|0;e=k[D>>2]|0;D=(e|0)>0;e=D?e:0;k[T+444>>2]=D?74:0;k[T+448>>2]=D?T:0;k[h>>2]=0;k[T+492>>2]=e}Ot(a,31968,e,((e|0)<0)<<31>>31);break a}}while(0)}else if(!b){d=k[g>>2]|0;if(!d)break;f=(k[P>>2]|0)+1|0;k[P>>2]=f;Ch(Q,Bh(Q,97,0,f,0)|0,d,0);nq(Q,1);if(!(i[(k[Q>>2]|0)+65>>0]|0))ah(k[Q+16>>2]|0,30112,-1,1,0)|0;Bh(Q,35,f,1,0)|0;$c(k[g>>2]|0);break}else{d=k[g>>2]|0;if(d){k[D>>2]=d;yh(a,10344,D);$c(k[g>>2]|0)}D=a+64|0;k[D>>2]=(k[D>>2]|0)+1;k[a+12>>2]=b;break}}while(0);rg(T,S);rg(T,R)}}while(0);r=U;return}function Lr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;a:do if(!b)b=0;else{d=b;while(1){if((i[d>>0]|0)==-121){b=k[a>>2]|0;if(!(i[(k[b>>2]|0)+145>>0]|0))break;i[d>>0]=101}b=k[d+4>>2]|0;if(b&16384){b=0;break a}c=d+20|0;if(!(b&2048)){if(Mr(a,k[c>>2]|0)|0){b=1;break a}}else if(kr(a,k[c>>2]|0)|0){b=1;break a}if(Lr(a,k[d+16>>2]|0)|0){b=1;break a}d=k[d+12>>2]|0;if(!d){b=0;break a}}k[e>>2]=k[a+16>>2];yh(b,29984,e);b=1}while(0);r=f;return b|0}function Mr(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if((b|0)!=0?(k[b>>2]|0)>0:0){c=0;d=k[b+4>>2]|0;while(1){if(Lr(a,k[d>>2]|0)|0){c=1;break a}c=c+1|0;if((c|0)>=(k[b>>2]|0)){c=0;break}else d=d+20|0}}else c=0;while(0);return c|0}function Nr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;Ch(a,Bh(a,122,b,0,0)|0,c,-1);c=k[(k[a>>2]|0)+20>>2]|0;if((c|0)>0){d=a+96|0;b=k[d>>2]|0;a=0;do{b=b|1<<a;a=a+1|0}while((a|0)<(c|0));k[d>>2]=b}return}function Or(a,b){a=a|0;b=b|0;var c=0,d=0;c=b+8|0;d=Zr(a,0,c)|0;b=b+24|0;pg(k[a>>2]|0,k[b>>2]|0);k[b>>2]=d;if(d){b=d+40|0;j[b>>1]=(j[b>>1]|0)+1<<16>>16}c=(Wt(a,c)|0)==0;return (c?d:0)|0}function Pr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();j=l;a:do if((b|0)!=0?(e=k[a+12>>2]|0,(k[b>>2]|0)>0):0){f=a+8|0;g=a+4|0;h=0;i=b+8|0;while(1){if(!(k[f>>2]|0)){d=i+4|0;c=k[d>>2]|0;if((c|0)!=0?(id(c,e)|0)!=0:0)break;rg(k[k[a>>2]>>2]|0,c);k[d>>2]=0;k[i>>2]=k[g>>2]}if(kr(a,k[i+20>>2]|0)|0){c=1;break a}if(Lr(a,k[i+44>>2]|0)|0){c=1;break a}h=h+1|0;if((h|0)>=(k[b>>2]|0)){c=0;break a}else i=i+72|0}b=k[a>>2]|0;i=k[a+20>>2]|0;k[j>>2]=k[a+16>>2];k[j+4>>2]=i;k[j+8>>2]=c;yh(b,29936,j);c=1}else c=0;while(0);r=l;return c|0}function Qr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();c=d;e=k[a>>2]|0;if((((i[e+145>>0]|0)==0?(i[a+18>>0]|0)==0:0)?(k[e+24>>2]&2048|0)==0:0)?(Kc(b,25568,7)|0)==0:0){k[c>>2]=b;yh(a,28440,c);a=1}else a=0;r=d;return a|0}function Rr(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();u=v;do if(b){p=c&1;t=(d|0)!=0;if(t){e=k[d>>2]|0;n=32768}else{e=Xt(b,c)|0;e=rh(a,e,((e|0)<0)<<31>>31)|0;n=0}k[u>>2]=e;if(e){h=(p|0)==0;if(!h)if(!(k[b+12>>2]|0))m=(k[b+20>>2]|0)==0?16396:8220;else m=8220;else m=48;o=m&60;q=b+4|0;j=k[q>>2]|0;if((j&1024|0)==0?(f=k[b+8>>2]|0,(f|0)!=0):0){g=f;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;l=(g-f&1073741823)+1|0}else l=0;if(h){if(!(j&16384))g=(j&8192|0)==0?48:28;else g=12;pw(e|0,b|0,g|0)|0;kw(e+g|0,0,48-g|0)|0}else pw(e|0,b|0,o|0)|0;j=e+4|0;f=m&24576|n|k[j>>2]&-122881;k[j>>2]=f;if(l){f=e+o|0;k[e+8>>2]=f;pw(f|0,k[b+8>>2]|0,l|0)|0;f=k[j>>2]|0}g=k[q>>2]|0;do if(!((f|g)&16384)){f=b+20|0;if(!(g&2048)){p=Ur(a,k[f>>2]|0,p)|0;k[e+20>>2]=p;break}else{p=lr(a,k[f>>2]|0,p)|0;k[e+20>>2]=p;break}}while(0);f=k[j>>2]|0;if(!(f&24576)){if(k[q>>2]&16384)break;p=Rr(a,k[b+12>>2]|0,0,0)|0;k[e+12>>2]=p;p=Rr(a,k[b+16>>2]|0,0,0)|0;k[e+16>>2]=p;break}p=Yt(b,c)|0;k[u>>2]=(k[u>>2]|0)+p;if(f&8192){p=Rr(a,k[b+12>>2]|0,1,u)|0;k[e+12>>2]=p;p=Rr(a,k[b+16>>2]|0,1,u)|0;k[e+16>>2]=p}if(t)k[d>>2]=k[u>>2]}}else e=0;while(0);r=v;return e|0}function Sr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(c=rh(a,8,0)|0,(c|0)!=0):0){f=b+4|0;k[c+4>>2]=k[f>>2];d=rh(a,k[f>>2]<<3,0)|0;k[c>>2]=d;if(!d){rg(a,c);c=0;break}if((k[f>>2]|0)>0){e=0;while(1){g=k[b>>2]|0;h=ph(a,k[g+(e<<3)>>2]|0)|0;k[d+(e<<3)>>2]=h;k[d+(e<<3)+4>>2]=k[g+(e<<3)+4>>2];e=e+1|0;if((e|0)>=(k[f>>2]|0))break a;d=k[c>>2]|0}}}else c=0;while(0);return c|0}function Tr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=c+4|0;e=(k[d>>2]|0)+40|0;a=rh(a,e,0)|0;if(a){kw(a|0,0,e|0)|0;e=a+40|0;pw(e|0,k[c>>2]|0,k[d>>2]|0)|0;k[a+12>>2]=e;k[a+16>>2]=k[d>>2];i[a>>0]=b}return a|0}function Ur(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;do if((b|0)!=0?(d=rh(a,8,0)|0,(d|0)!=0):0){e=k[b>>2]|0;k[d>>2]=e;if(!(c&1)){f=k[b>>2]|0;e=1;while(1)if((e|0)<(f|0))e=e<<1;else break}e=rh(a,e*20|0,0)|0;k[d+4>>2]=e;if(!e){rgrg(f,d);break}else{Zt(a,d);rg(f,d);break a}}while(0);b=jr(a,b,c,e)|0;if((b|0)>=0?(g=$q(f,k[e>>2]|0)|0,(g|0)!=0):0){c=k[(k[f+16>>2]|0)+(b<<4)>>2]|0;d=di(f,g,c)|0;if(d){_t(a,d,0);rg(f,g);break}c=gq(f,g,c)|0;rg(f,g);if(!c){yh(a,28872,h);break}else{d=k[a+408>>2]|0;Fr(a,b);d=((d|0)==0?a:d)+328|0;k[d>>2]=k[d>>2]|1<<b;As(a,c,-1);break}}}while(0);r=j;return}function Yr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();e=g;f=k[a>>2]|0;if(!(Ln(a)|0)){do if(!b){b=f+20|0;d=k[b>>2]|0;if((d|0)>0){c=0;do{if((c|0)!=1){$t(a,c);d=k[b>>2]|0}c=c+1|0}while((c|0)<(d|0))}}else{if(k[c+4>>2]|0){d=jr(a,b,c,e)|0;if((d|0)<=-1)break;d=k[(k[f+16>>2]|0)+(d<<4)>>2]|0;b=$q(f,k[e>>2]|0)|0;if(!b)break;c=gq(f,b,d)|0;if(!c){d=xh(a,0,b,d)|0;if(d)au(a,d,0)}else au(a,k[c+12>>2]|0,c);rg(f,b);break}c=$q(f,b)|0;d=_h(f,c)|0;rg(f,c);if((d|0)>-1){$t(a,d);break}c=$q(f,b)|0;if(c){d=gq(f,c,0)|0;if(!d){d=xh(a,0,c,0)|0;if(d)au(a,d,0)}else au(a,k[d+12>>2]|0,d);rg(f,c)}}while(0);d=Tq(a)|0;if(d)Bh(d,144,0,0,0)|0}r=g;return}function Zr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=k[c>>2]|0;if(!e)d=c+4|0;else{h=k[a>>2]|0;f=k[h+20>>2]|0;h=k[h+16>>2]|0;a:do if((f|0)>0){g=0;while(1){d=g+1|0;if((k[h+(g<<4)+12>>2]|0)==(e|0)){d=g;break a}if((d|0)<(f|0))g=d;else break}}else d=0;while(0);d=h+(d<<4)|0}return xh(a,b,k[c+8>>2]|0,k[d>>2]|0)|0}function _r(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;if(b){c=b;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;if((c-b&1073741823)>>>0>6?(Kc(b,25568,7)|0)==0:0){k[d>>2]=b;yh(a,25576,d);c=1}else c=0}else c=0;r=e;return c|0}function $r(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;if(!b){k[d>>2]=c;a=zh(a,25992,d)|0}else{k[d>>2]=b;k[d+4>>2]=c;d=zh(a,26e3,d)|0;rg(a,b);a=d}r=e;return a|0}function as(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;d=k[a>>2]|0;e=k[(k[d+16>>2]|0)+28>>2]|0;if((k[b+68>>2]|0)!=(e|0)?(c=Fs(a,b)|0,(c|0)!=0):0){b=c;c=0;do{if((k[b+20>>2]|0)==(e|0))c=$r(d,c,k[b>>2]|0)|0;b=k[b+32>>2]|0}while((b|0)!=0);if(c){b=k[a>>2]|0;k[f>>2]=c;b=zh(b,25968,f)|0;rg(k[a>>2]|0,c);c=b}else c=0}else c=0;r=g;return c|0}function bs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+16|0;if((r|0)>=(s|0))ka();l=o;m=Tq(a)|0;if(m){d=k[a>>2]|0;g=k[b+68>>2]|0;a:do if(g){h=k[d+20>>2]|0;if((h|0)>0){e=k[d+16>>2]|0;f=0;while(1){d=f+1|0;if((k[e+(f<<4)+12>>2]|0)==(g|0))break a;if((d|0)<(h|0))f=d;else{f=d;break}}}else f=0}else f=-1e6;while(0);d=Fs(a,b)|0;if(d)do{e=k[a>>2]|0;i=k[d+20>>2]|0;b:do if(i){j=k[e+20>>2]|0;if((j|0)>0){h=k[e+16>>2]|0;g=0;while(1){e=g+1|0;if((k[h+(g<<4)+12>>2]|0)==(i|0)){e=g;break b}if((e|0)<(j|0))g=e;else break}}else e=0}else e=-1e6;while(0);j=k[d>>2]|0;Ch(m,Bh(m,126,e,0,0)|0,j,0);d=k[d+32>>2]|0}while((d|0)!=0);d=k[b>>2]|0;Ch(m,Bh(m,124,f,0,0)|0,d,0);d=k[a>>2]|0;k[l>>2]=c;d=zh(d,25952,l)|0;if((d|0)!=0?(Nr(m,f,d),n=as(a,b)|0,(n|0)!=0):0)Nr(m,1,n)}r=o;return}
13 function lh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,n=0,o=0,q=0,u=0,v=0,w=0,x=0,y=0.0,z=0,A=0.0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ja=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,Yb=0,Zb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,hc=0,ic=0,jc=0,kc=0,lc=0,mc=0,nc=0,pc=0,sc=0,tc=0,vc=0,xc=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,Wc=0,Xc=0,Yc=0,Zc=0,_c=0,ad=0,bd=0,cd=0,dd=0,ed=0,fd=0,jd=0,kd=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;ke=r;r=r+1040|0;if((r|0)>=(s|0))ka();ge=ke+400|0;Qc=ke+792|0;ad=ke+392|0;Yc=ke+788|0;Pd=ke+320|0;ed=ke+784|0;kd=ke+780|0;nd=ke+280|0;Kd=ke+680|0;Xc=ke+240|0;Nd=ke+200|0;Wc=ke+676|0;Tc=ke+672|0;Ld=ke+160|0;Rc=ke+644|0;qd=ke+152|0;Gd=ke+112|0;cd=ke+640|0;Id=ke+636|0;Uc=ke+632|0;rd=ke+628|0;xd=ke+624|0;td=ke+604|0;yd=ke+600|0;jd=ke+596|0;ud=ke+576|0;Pc=ke+840|0;zd=ke+572|0;Md=ke+104|0;Ad=ke+568|0;Zc=ke+564|0;_c=ke+96|0;Od=ke+88|0;Bd=ke+560|0;Cd=ke+556|0;Dd=ke+552|0;vd=ke+532|0;wd=ke+512|0;bd=ke+508|0;sd=ke+504|0;Vc=ke+488|0;Jd=ke+48|0;Sc=ke+456|0;Oc=ke+444|0;Hd=ke+8|0;pd=ke+440|0;Fd=ke+412|0;Ed=ke;tc=a+4|0;f=k[tc>>2]|0;he=k[a>>2]|0;Gc=i[he+62>>0]|0;Kc=a+8|0;v=k[Kc>>2]|0;je=he+32|0;c=je;d=k[c>>2]|0;c=k[c+4>>2]|0;ie=a+80|0;a:do if((k[ie>>2]|0)==7){u=he+65|0;v=a+44|0;e=d;b=0;g=0;d=0;ee=1317}else{k[ie>>2]=0;$d=a+136|0;k[$d>>2]=0;k[$d+4>>2]=0;$d=a+20|0;k[$d>>2]=0;k[he+452>>2]=0;zc=he+240|0;b:do if(!(k[zc>>2]|0)){Zd=he+292|0;if(k[Zd>>2]|0){e=k[a+124>>2]|0;b=he+300|0;u=k[b>>2]|0;if(!e)sc=b;else{sc=b;u=(e>>>0)%(u>>>0)|0}}else{sc=he+300|0;u=0}de=a+76|0;ce=he+65|0;Vd=he+296|0;pb=a+176|0;qb=a+184|0;rb=a+92|0;sb=he+80|0;tb=he+84|0;ub=Gc&255;vb=Gc<<24>>24==1;wb=he+88|0;xb=a+60|0;Wd=a+144|0;be=a+86|0;fe=a+44|0;yb=a+12|0;zb=Rc+4|0;Ab=Rc+16|0;Bb=Rc+12|0;Cb=Rc+25|0;Db=Rc+20|0;Eb=a+200|0;Fb=a+56|0;Xd=a+72|0;Gb=Gd+16|0;Hb=Gd+8|0;Ib=Gd+24|0;Jb=a+87|0;Yd=he+156|0;Kb=he+500|0;Lb=he+496|0;ae=he+63|0;Mb=he+488|0;Nb=he+504|0;Ob=he+512|0;Pb=he+70|0;Qb=he+24|0;Rb=he+20|0;Td=he+16|0;Sb=he+4|0;Ud=a+88|0;Tb=a+104|0;Ub=a+152|0;Vb=a+160|0;Wb=he+152|0;Xb=he+64|0;Yb=td+4|0;Zb=td+6|0;_b=td+8|0;$b=ud+4|0;ac=ud+8|0;bc=he+212|0;cc=he+208|0;dc=a+116|0;ec=vd+4|0;hc=vd+6|0;ic=vd+8|0;jc=Xc+8|0;kc=Xc+32|0;lc=Xc+24|0;mc=Xc+16|0;nc=Xc+12|0;pc=wd+4|0;T=wd+6|0;U=wd+8|0;X=nd+8|0;Y=nd+32|0;Z=nd+24|0;_=nd+12|0;$=nd+16|0;aa=he+164|0;ba=Vc+8|0;ca=Vc+4|0;da=he+145|0;ea=Vc+12|0;fa=Pd+4|0;ja=Pd+12|0;la=Pd+16|0;ma=Pd+20|0;na=Pd+24|0;oa=Pd+28|0;pa=Pd+8|0;qa=Pd+40|0;ra=Pd+44|0;sa=Pd+48|0;ta=Pd+52|0;ua=Pd+56|0;va=Pd+60|0;wa=Pd+64|0;xa=Pd+65|0;ya=he+128|0;za=a+28|0;Aa=a+36|0;Ba=a+32|0;Ca=a+196|0;Da=Sc+4|0;Ea=Sc+8|0;Fa=Jd+8|0;Ga=Jd+32|0;Ha=Jd+24|0;Ia=Sc+20|0;Ja=Sc+12|0;Ka=Sc+16|0;La=Sc+24|0;Ma=Oc+8|0;Na=Oc+4|0;Oa=he+148|0;Pa=he+176|0;Qa=he+72|0;Ra=he+67|0;Sa=Qc+20|0;Ta=Qc+24|0;Ua=Qc+4|0;Va=Qc+16|0;Wa=he+304|0;Xa=he+328|0;Ya=Hd+32|0;Za=Hd+8|0;_a=Hd+24|0;$a=he+308|0;ab=Fd+20|0;bb=he+69|0;_d=a+168|0;cb=nd+4|0;db=nd+8|0;eb=nd+12|0;fb=nd+16|0;gb=nd+20|0;hb=nd+24|0;ib=nd+25|0;jb=he+180|0;kb=Ld+32|0;lb=Ld+8|0;mb=Ld+12|0;nb=Ld+16|0;ob=Ld+24|0;R=0;S=0;b=0;n=0;g=k[de>>2]|0;q=0;c:while(1){e=d;d:while(1){if(i[ce>>0]|0){u=ce;v=fe;d=q;ee=1317;break a}d=b+1|0;if(!(i[f+(g*20|0)+2>>0]&2))I=n;else{n=k[f+(g*20|0)+8>>2]|0;b=v+(n*40|0)|0;n=v+(n*40|0)+8|0;if(j[n>>1]&9312)Ag(b);j[n>>1]=4;I=b}z=f+(g*20|0)|0;F=i[z>>0]|0;n=F&255;e:do switch(n|0){case 20:{b=d;d=e;ee=24;break d}case 21:{b=d;d=e;n=I;ee=25;break d}case 22:{b=d;d=e;n=I;ee=26;break d}case 23:{b=d;d=e;n=I;e=g;ee=27;break d}case 24:{b=d;d=e;n=I;e=g;ee=28;break d}case 29:{b=d;d=e;e=g;ee=65;break d}case 30:{b=d;d=e;n=I;e=g;ee=66;break d}case 28:{b=d;d=e;n=I;e=g;ee=60;break d}case 32:{b=d;d=e;e=g;ee=72;break d}case 17:{b=d;d=e;n=I;ee=22;break d}case 18:{b=d;d=e;n=I;ee=23;break d}case 25:{b=d;d=e;n=I;e=g;ee=44;break d}case 26:{b=d;d=e;n=I;e=g;ee=45;break d}case 133:{b=d;d=e;n=I;e=g;ee=46;break d}case 97:{i[z>>0]=27;z=f+(g*20|0)+16|0;o=k[z>>2]|0;if(!o)b=0;else{b=o;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;b=b-o&1073741823}w=f+(g*20|0)+4|0;k[w>>2]=b;if(vb)n=0;else{n=ah(I,o,-1,1,0)|0;if((n|0)==18){b=d;d=e;h=q;ee=1316;break c}if(bm(I,ub)|0){u=ce;v=fe;b=d;d=q;ee=1317;break a}k[I+24>>2]=0;b=I+8|0;j[b>>1]=m[b>>1]|2048;b=f+(g*20|0)+1|0;if((i[b>>0]|0)==-1)rg(he,k[z>>2]|0);i[b>>0]=-1;o=k[I+16>>2]|0;k[z>>2]=o;b=k[I+12>>2]|0;k[w>>2]=b}if((b|0)>(k[wb>>2]|0)){b=d;d=e;h=q;ee=1316;break c}else ee=57;break}case 31:{b=d;d=e;n=I;e=g;ee=67;break d}case 34:{b=d;d=e;e=g;ee=79;break d}case 35:{b=d;d=e;h=q;ee=80;break c}case 33:{b=d;d=e;ee=74;break d}case 94:{b=d;d=e;ee=94;break d}case 93:case 92:case 91:case 90:case 89:{b=d;N=z;d=e;e=g;ee=112;break d}case 27:{o=k[f+(g*20|0)+16>>2]|0;b=k[f+(g*20|0)+4>>2]|0;n=0;ee=57;break}case 16:{g=(k[f+(g*20|0)+8>>2]|0)+-1|0;n=0;ee=19;break}case 36:{b=d;d=e;F=I;e=g;ee=166;break d}case 1:{Q=i[f+(g*20|0)+3>>0]|0;z=Q&255;x=k[yb>>2]|0;b=v+((k[f+(g*20|0)+12>>2]|0)*40|0)|0;k[Rc>>2]=b;if(Q<<24>>24){w=0;b=v+((k[f+(g*20|0)+8>>2]|0)*40|0)|0;while(1){k[x+(w<<2)>>2]=b;if((j[b+8>>1]&4096)!=0?(_l(b)|0)!=0:0){u=ce;v=fe;b=d;d=q;ee=1317;break a}w=w+1|0;if((w|0)>=(z|0))break;else b=b+40|0}b=k[Rc>>2]|0}Q=k[f+(g*20|0)+16>>2]|0;k[zb>>2]=Q;k[Ab>>2]=g;k[Bb>>2]=a;P=b+8|0;j[P>>1]=m[P>>1]&48640|1;i[Cb>>0]=0;P=je;k[P>>2]=e;k[P+4>>2]=c;rc[k[Q+12>>2]&63](Rc,z,x);c=je;e=k[c>>2]|0;c=k[c+4>>2]|0;if(!(i[Cb>>0]|0))b=0;else{if(!(k[Db>>2]|0))b=0;else{b=Xg(k[Rc>>2]|0,1)|0;k[ge>>2]=b;ih(fe,he,10344,ge);b=k[Db>>2]|0}jm(a,g,k[f+(g*20|0)+4>>2]|0)}bm(k[Rc>>2]|0,ub)|0;o=k[Rc>>2]|0;w=m[o+8>>1]|0;if(w&18){n=k[o+12>>2]|0;if(w&16384)n=(k[o>>2]|0)+n|0;if((n|0)>(k[(k[o+32>>2]|0)+88>>2]|0)){b=d;d=e;h=q;ee=1316;break c}else{z=I;P=g;n=b}}else{z=I;P=g;n=b}break}case 88:case 87:case 86:case 85:{b=d;D=z;d=e;e=g;ee=184;break d}case 39:{b=d;d=e;F=I;e=g;ee=208;break d}case 37:{b=d;d=e;n=I;e=g;ee=202;break d}case 38:{b=d;d=e;F=I;e=g;ee=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{b=d;E=F;d=e;n=I;ee=213;break d}case 40:{Q=k[f+(g*20|0)+4>>2]|0;b=v+(Q*40|0)|0;if(!(j[v+(Q*40|0)+8>>1]&16384))n=0;else n=Wg(b)|0;lm(b,k[f+(g*20|0)+8>>2]&255,Gc);z=I;P=g;break}case 41:{b=d;d=e;n=I;e=g;ee=248;break d}case 42:{b=d;d=e;n=I;e=g;ee=249;break d}case 43:{b=d;d=e;n=I;ee=256;break d}case 71:case 72:{b=d;d=e;e=g;ee=261;break d}case 76:{b=d;d=e;n=I;e=g;ee=286;break d}case 19:{b=d;d=e;e=g;ee=268;break d}case 96:{b=d;d=e;e=g;ee=273;break d}case 44:{b=d;d=e;n=I;e=g;ee=278;break d}case 46:case 45:{b=d;d=e;n=I;e=g;ee=281;break d}case 77:{b=d;d=e;n=I;e=g;ee=288;break d}case 47:{b=d;d=e;n=I;ee=290;break d}case 48:{b=d;d=e;n=I;e=g;ee=368;break d}case 49:{b=d;d=e;ee=371;break d}case 50:{B=k[k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]>>2]|0;f:do if(k[B+60>>2]|0){b=vm(B)|0;if(!b){J=B+76|0;H=B+44|0;w=B+72|0;o=0;n=0;g:while(1){z=j[J>>1]|0;F=k[B+(z<<16>>16<<2)+120>>2]|0;if(!(i[F+5>>0]|0)){if(!(i[F+2>>0]|0)){o=ow(m[F+18>>1]|0,0,o|0,n|0)|0;n=L}}else{o=ow(m[F+18>>1]|0,0,o|0,n|0)|0;n=L;while(1){if(!(z<<16>>16))break g;if(F){Gg(k[F+68>>2]|0);z=j[J>>1]|0}z=z+-1<<16>>16;j[J>>1]=z;j[H>>1]=0;i[w>>0]=l[w>>0]&249;F=z<<16>>16;x=B+(F<<1)+78|0;E=j[x>>1]|0;F=k[B+(F<<2)+120>>2]|0;if((E&65535)<(m[F+18>>1]|0)){z=E;break}}j[x>>1]=z+1<<16>>16;F=j[J>>1]|0;z=F;F=k[B+(F<<16>>16<<2)+120>>2]|0}z=j[B+(z<<16>>16<<1)+78>>1]|0;x=k[F+56>>2]|0;if(z<<16>>16==(j[F+18>>1]|0)){b=l[F+6>>0]|0;b=wm(B,l[x+(b+9)>>0]<<16|l[x+(b+8)>>0]<<24|l[x+(b+10)>>0]<<8|l[x+(b+11)>>0])|0}else{b=(z&65535)<<1;Q=k[F+64>>2]|0;b=(l[Q+b>>0]<<8|l[Q+(b|1)>>0])&m[F+20>>1];b=wm(B,l[x+(b+1)>>0]<<16|l[x+b>>0]<<24|l[x+(b+2)>>0]<<8|l[x+(b+3)>>0])|0}if(b){o=0;n=0;break f}}b=vm(B)|0}else{o=0;n=0}}else{b=0;o=0;n=0}while(0);z=I;k[z>>2]=o;k[z+4>>2]=n;z=I;P=g;n=b;break}case 2:{M=k[f+(g*20|0)+4>>2]|0;o=k[f+(g*20|0)+16>>2]|0;if(!M){b=d;d=e;n=I;e=g;ee=446;break d}w=k[Mb>>2]|0;if(!w){f=o;b=d;d=e;h=q;ee=460;break c}else b=0;while(1){if(!(id(k[w>>2]|0,o)|0)){F=b;break}w=k[w+24>>2]|0;if(!w){f=o;b=d;d=e;h=q;ee=460;break c}else b=b+1|0}J=(M|0)==1;if((k[Yd>>2]|0)>0&J){b=d;d=e;h=q;ee=462;break c}H=w+24|0;if(!(k[H>>2]|0)){x=(i[Pb>>0]|0)!=0;if(x&J){b=ym(a,1)|0;if(b)break a;i[ae>>0]=1;if((Wl(a)|0)==5){b=g;ee=467;break c}i[Pb>>0]=0;x=1;n=k[ie>>2]|0}else ee=469}else{x=0;ee=469}if((ee|0)==469){ee=0;o=(k[Lb>>2]|0)-F+-1|0;if((M|0)==2){z=(k[Qb>>2]|0)>>>1&1;if((k[Rb>>2]|0)>0){F=z^1;E=0;while(1){D=Nl(k[(k[Td>>2]|0)+(E<<4)+4>>2]|0,516,F)|0;E=E+1|0;if(D){b=d;d=e;h=D;ee=1318;break c}b=k[Rb>>2]|0;if((E|0)>=(b|0)){ee=475;break}}}}else{b=k[Rb>>2]|0;z=0;ee=475}if((ee|0)==475){ee=0;if((b|0)>0){B=0;do{F=zm(k[(k[Td>>2]|0)+(B<<4)+4>>2]|0,M,o)|0;B=B+1|0;if(F){b=d;d=e;h=F;ee=1318;break c}}while((B|0)<(k[Rb>>2]|0))}}if(!z){F=o;n=0}else{z=k[Sb>>2]|0;if(z)do{Q=z+88|0;j[Q>>1]=j[Q>>1]|8;z=k[z+52>>2]|0}while((z|0)!=0);Jg(he);k[Qb>>2]=k[Qb>>2]|2;F=o;n=0}}z=k[Mb>>2]|0;if((z|0)!=(w|0))do{k[Mb>>2]=k[z+24>>2];rg(he,z);k[Lb>>2]=(k[Lb>>2]|0)+-1;z=k[Mb>>2]|0}while((z|0)!=(w|0));if(J){k[Mb>>2]=k[H>>2];rgrgbreak}case 288:{ee=0;if(!(j[v+((k[f+(e*20|0)+4>>2]|0)*40|0)+8>>1]&1)){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 290:{ee=0;P=k[f+(g*20|0)+8>>2]|0;x=k[f+(g*20|0)+12>>2]|0;B=v+(x*40|0)|0;O=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;H=k[O+80>>2]|0;w=k[O>>2]|0;if(!(i[O+26>>0]|0)){if((w|0)!=0?(i[w+73>>0]|0)!=1:0){Qd=om(O)|0;ee=295}}else{Qd=nm(O)|0;ee=295}if((ee|0)==295?(ee=0,(Qd|0)!=0):0){h=Qd;ee=1318;break c}I=O+60|0;z=k[Xd>>2]|0;u:do if((k[I>>2]|0)==(z|0)){z=j[O+22>>1]|0;if((z&65535|0)>(P|0))ee=350;else{E=O+72|0;ee=318}}else{do if(i[O+25>>0]|0){if(!w){F=k[O+16>>2]|0;C=k[v+(F*40|0)+12>>2]|0;k[O+68>>2]=C;k[O+64>>2]=C;F=k[v+(F*40|0)+16>>2]|0;o=O+76|0;k[o>>2]=F;break}e=v+(x*40|0)+8|0;if(!(j[e>>1]&9312)){j[e>>1]=1;break u}else{Ag(B);break u}}else{if(!(i[O+27>>0]&4)){pm(w,qd);E=m[w+40>>1]|0;F=k[w+32>>2]|0;k[O+76>>2]=F;z=k[qd>>2]|0;k[O+64>>2]=z}else{z=O+64|0;qm(w,z);E=m[w+40>>1]|0;F=k[w+32>>2]|0;k[O+76>>2]=F;z=k[z>>2]|0}k[O+68>>2]=z>>>0>E>>>0?E:z;if(z>>>0>(k[wb>>2]|0)>>>0){h=q;ee=1316;break c}o=O+76|0;z=k[Xd>>2]|0;C=E}while(0);k[I>>2]=z;z=i[F>>0]|0;if(z<<24>>24>-1){D=z&255;k[cd>>2]=D;F=1}else{F=rm(F,cd)|0;D=k[cd>>2]|0}E=O+72|0;k[E>>2]=F&255;j[O+22>>1]=0;k[H>>2]=D;if(D>>>0>98307){h=q;ee=313;break c}if(D>>>0>(k[O+64>>2]|0)>>>0){h=q;ee=313;break c}if(C>>>0<D>>>0){k[o>>2]=0;k[O+68>>2]=0;z=0;ee=318}else{z=0;ee=318}}while(0);do if((ee|0)==318){ee=0;F=k[E>>2]|0;D=k[H>>2]|0;if(F>>>0<D>>>0){N=O+76|0;C=k[N>>2]|0;if(!C){Q=Gd+0|0;C=Q+40|0;do{k[Q>>2]=0;Q=Q+4|0}while((Q|0)<(C|0));F=sm(w,0,k[H>>2]|0,((l[O+27>>0]|0)>>>2&1^1)&255,Gd)|0;if(F){f=F;h=q;ee=1309;break c}z=O+22|0;M=z;z=j[z>>1]|0;F=k[E>>2]|0;D=k[H>>2]|0;K=k[Gb>>2]|0}else{M=O+22|0;K=C}o=z&65535;J=k[H+(o<<2)>>2]|0;k[cd>>2]=J;e=K+D|0;F=K+F|0;while(1){C=i[F>>0]|0;if(C<<24>>24>-1){I=C&255;k[Id>>2]=I;F=F+1|0}else{F=F+((rm(F,Id)|0)&255)|0;I=k[Id>>2]|0}k[O+(o<<2)+84>>2]=I;if(I>>>0>11)C=(I+-12|0)>>>1;else C=l[34336+I>>0]|0;I=J+C|0;k[cd>>2]=I;if(I>>>0<J>>>0){F=I;C=o;ee=331;break}C=o+1|0;k[H+(C<<2)>>2]=I;if((o|0)<(P|0)&F>>>0<e>>>0){J=I;o=C}else break}if((ee|0)==331){ee=0;I=F;F=K+(D+1)|0}j[M>>1]=C;k[E>>2]=F-K;if(!(k[N>>2]|0)){if(!((j[Hb>>1]&9312)==0&(k[Ib>>2]|0)==0))Vg(Gd);j[Hb>>1]=1}if(F>>>0>=e>>>0){if(F>>>0>e>>>0){h=q;ee=343;break c}if((I|0)==(k[O+64>>2]|0))z=I;else{h=q;ee=343;break c}}else z=k[O+64>>2]|0;if(I>>>0>z>>>0){h=q;ee=343;break c}z=j[M>>1]|0}if((z&65535|0)<=(P|0)){if((i[f+(g*20|0)+1>>0]|0)==-8){cm(B,k[f+(g*20|0)+16>>2]|0,2048);e=v+(x*40|0)+8|0;break}e=v+(x*40|0)+8|0;if(!(j[e>>1]&9312)){j[e>>1]=1;break}else{Ag(B);break}}else ee=350}while(0);if((ee|0)==350){ee=0;e=v+(x*40|0)+8|0;if(j[e>>1]&9312)Ag(B);F=k[O+(P<<2)+84>>2]|0;k[Id>>2]=F;do if((k[O+68>>2]|0)>>>0<(k[H+(P+1<<2)>>2]|0)>>>0){Q=i[f+(g*20|0)+3>>0]|0;if(!((Q&255)>63?F>>>0>11&(F&1|0)==0|Q<<24>>24<0:0)){if(F>>>0>11)z=(F+-12|0)>>>1;else z=l[34336+F>>0]|0;if(z){z=sm(w,k[H+(P<<2)>>2]|0,z,((l[O+27>>0]|0)>>>2&1^1)&255,B)|0;if(z){f=z;h=q;ee=1309;break c}tm(k[v+(x*40|0)+16>>2]|0,F,B)|0;j[e>>1]=m[e>>1]&61439;break}}tm(F>>>0<14?qd:0,F,B)|0}else tm((k[O+76>>2]|0)+(k[H+(P<<2)>>2]|0)|0,F,B)|0;while(0);i[v+(x*40|0)+10>>0]=Gc}w=m[e>>1]|0;if((w&4096|0)!=0?(vc=v+(x*40|0)+16|0,xc=k[vc>>2]|0,(xc|0)!=0):0){o=k[v+(x*40|0)+12>>2]|0;if(kh(B,o+2|0)|0){u=ce;v=fe;e=d;d=q;ee=1317;break a}pw(k[vc>>2]|0,xc|0,o|0)|0;i[(k[vc>>2]|0)+o>>0]=0;i[(k[vc>>2]|0)+(o+1)>>0]=0;j[e>>1]=w&18|512;O=v;w=f;P=R;Q=S;e=g}else{O=v;w=f;P=R;Q=S;e=g}break}case 368:{ee=0;o=k[f+(e*20|0)+16>>2]|0;g=i[o>>0]|0;if(!(g<<24>>24)){O=v;w=f;P=R;Q=S}else{w=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;while(1){o=o+1|0;km(w,g,Gc);g=i[o>>0]|0;if(!(g<<24>>24)){O=v;w=f;P=R;Q=S;break}else w=w+40|0}}break}case 371:{ee=0;P=k[f+(g*20|0)+4>>2]|0;z=k[f+(g*20|0)+16>>2]|0;Q=v+(P*40|0)|0;P=v+((P+-1+(k[f+(g*20|0)+8>>2]|0)|0)*40|0)|0;x=i[Jb>>0]|0;O=k[f+(g*20|0)+12>>2]|0;n=v+(O*40|0)|0;if(z){w=i[z>>0]|0;e=Q;while(1){z=z+1|0;km(e,w,Gc);w=i[z>>0]|0;if(!(w<<24>>24))break;else e=e+40|0}}K=(x&255)>3;I=0;o=0;M=0;e=0;H=P;while(1){J=j[H+8>>1]|0;E=J&65535;v:do if(!(E&1)){do if(!(E&4)){if(E&8){F=7;ee=388;break v}F=k[H+12>>2]|0;if(E&16384)F=(k[H>>2]|0)+F|0;F=(F<<1)+12|E>>>1&1}else{E=H;F=k[E>>2]|0;E=k[E+4>>2]|0;D=jw(F|0,E|0,63)|0;D=D^F;C=L^E;if(C>>>0<0|(C|0)==0&D>>>0<128){if(!((F&1|0)==(F|0)&0==(E|0)&K)){F=1;ee=388;break v}F=D+8|0;break}if(C>>>0<0|(C|0)==0&D>>>0<32768){F=2;ee=388;break v}if(C>>>0<0|(C|0)==0&D>>>0<8388608){F=3;ee=388;break v}if(C>>>0<0|(C|0)==0&D>>>0<2147483648){F=4;ee=388;break v}F=C>>>0<32768|(C|0)==32768&D>>>0<0?5:6;ee=388;break v}while(0);k[H+28>>2]=F;if(F>>>0>11){E=F;F=(F+-12|0)>>>1}else ee=391}else{F=0;ee=388}while(0);if((ee|0)==388){k[H+28>>2]=F;ee=391}if((ee|0)==391){ee=0;E=F;F=l[34336+F>>0]|0}do if(J&16384)if((I|0)==0&(o|0)==0){J=k[H>>2]|0;F=F-J|0;J=J+e|0;break}else{Wg(H)|0;J=e;break}else J=e;while(0);I=ow(F|0,((F|0)<0)<<31>>31|0,I|0,o|0)|0;o=L;if(E>>>0<128)F=1;else{D=0;F=0;do{F=F+1|0;E=rw(E|0,D|0,7)|0;D=L}while(((E|0)!=0|(D|0)!=0)&(F|0)<9)}F=F+M|0;H=H+-40|0;if(H>>>0<Q>>>0){C=F;break}else{M=F;e=J}}if((C|0)<127)E=C+1|0;else{E=C;D=((C|0)<0)<<31>>31;F=0;do{F=F+1|0;E=rw(E|0,D|0,7)|0;D=L}while(((E|0)!=0|(D|0)!=0)&(F|0)<9);C=F+C|0;E=C;D=((C|0)<0)<<31>>31;z=0;do{z=z+1|0;E=rw(E|0,D|0,7)|0;D=L}while(((E|0)!=0|(D|0)!=0)&(z|0)<9);E=((F|0)<(z|0)&1)+C|0}F=((E|0)<0)<<31>>31;e=ow(E|0,F|0,I|0,o|0)|0;K=L;N=k[wb>>2]|0;M=((N|0)<0)<<31>>31;if((K|0)>(M|0)|(K|0)==(M|0)&e>>>0>N>>>0){h=q;ee=1316;break c}if(kh(n,e)|0){u=ce;v=fe;e=d;d=q;ee=1317;break a}H=k[v+(O*40|0)+16>>2]|0;if(E>>>0<128){i[H>>0]=E;o=1;I=Q}else{o=(um(H,E,F)|0)&255;I=Q}while(1){D=k[I+28>>2]|0;if(D>>>0<128){i[H+o>>0]=D;F=1}else F=(um(H+o|0,D,0)|0)&255;o=F+o|0;F=H+E|0;if(!(D>>>0<8&(D|0)!=0))if(D>>>0>11){z=k[I+12>>2]|0;pw(F|0,k[I+16>>2]|0,z|0)|0}else z=0;else{F=I;if(D>>>0>11)z=(D+-12|0)>>>1;else z=l[34336+D>>0]|0;C=k[F>>2]|0;F=k[F+4>>2]|0;D=z;while(1){D=D+-1|0;i[H+(D+E)>>0]=C;C=rw(C|0,F|0,8)|0;if(!D)break;else F=L}}I=I+40|0;if(I>>>0>P>>>0)break;else E=z+E|0}k[v+(O*40|0)+12>>2]=e;e=v+(O*40|0)+8|0;j[e>>1]=16;if(J){k[n>>2]=J;j[e>>1]=16400}i[v+(O*40|0)+10>>0]=1;O=v;w=f;P=R;Q=S;e=g;break}case 446:{ee=0;if((k[Yd>>2]|0)>0){h=q;ee=447;break c}if(!o)w=0;else{g=o;while(1)if(!(i[g>>0]|0))break;else g=g+1|0;w=g-o&1073741823}z=xm(he,0,(k[Lb>>2]|0)+(k[Kb>>2]|0)|0)|0;if(z){g=e;h=z;ee=1318;break c}g=rh(he,w+33|0,0)|0;if(!g){O=v;w=f;P=R;Q=S}else{Q=g+32|0;k[g>>2]=Q;pw(Q|0,o|0,w+1|0)|0;if(!(i[ae>>0]|0))k[Lb>>2]=(k[Lb>>2]|0)+1;else{i[ae>>0]=0;i[Pb>>0]=1}k[g+24>>2]=k[Mb>>2];k[Mb>>2]=g;O=Nb;w=k[O+4>>2]|0;P=g+8|0;k[P>>2]=k[O>>2];k[P+4>>2]=w;P=Ob;w=k[P+4>>2]|0;O=g+16|0;k[O>>2]=k[P>>2];k[O+4>>2]=w;O=v;w=f;P=R;Q=S}break}case 486:{k[Lb>>2]=(k[Lb>>2]|0)+-1;ee=488;break}case 525:{ee=0;Bm(k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+4>>2]|0,k[f+(e*20|0)+12>>2]|0,Uc);w=k[Uc>>2]|0;O=n;k[O>>2]=w;k[O+4>>2]=((w|0)<0)<<31>>31;O=v;w=f;P=R;Q=S;break}case 558:{ee=0;n=Cm(a,k[f+(g*20|0)+4>>2]|0,k[f+(g*20|0)+8>>2]|0,-1,1)|0;if(!n){u=ce;v=fe;e=d;d=q;ee=1317;break a}w=k[f+(g*20|0)+16>>2]|0;z=n+8|0;k[z>>2]=w;x=k[f+(g*20|0)+12>>2]|0;w=m[w+6>>1]<<2;e=w+148|0;o=rh(he,e,0)|0;if(!o){f=n;h=q;ee=560;break c}kw(o|0,0,e|0)|0;k[n+56>>2]=o;Q=o+128|0;k[o+28>>2]=Q;pw(Q|0,k[z>>2]|0,w+20|0)|0;k[o+140>>2]=0;if(x)j[o+134>>1]=x;e=k[Td>>2]|0;n=k[(k[(k[e+4>>2]|0)+4>>2]|0)+32>>2]|0;k[o+12>>2]=n;i[o+59>>0]=1;i[o+57>>0]=0;k[o+24>>2]=he;k[o+72>>2]=o;if(((i[Xb>>0]|0)!=2?(Ac=k[2242]|0,Q=ha(Ac,n)|0,k[o>>2]=Q,Q=k[(k[e+12>>2]|0)+80>>2]|0,Q=(Q|0)<(Ac|0)?Ac:Q,Ac=((n|0)<0)<<31>>31,Q=xw(Q|0,((Q|0)<0)<<31>>31|0,n|0,Ac|0)|0,P=L,k[o+4>>2]=(P|0)<0|(P|0)==0&Q>>>0<536870912?Q:536870912,(k[2234]|0)==0):0)?(k[o+52>>2]=n,Q=vg(n,Ac)|0,k[o+40>>2]=Q,(Q|0)==0):0){f=7;h=q;ee=1309;break c}else{O=v;w=f;P=R;Q=S;n=I;e=g}break}case 566:{ee=0;O=(k[(k[Fb>>2]|0)+(k[f+(e*20|0)+4>>2]<<2)>>2]|0)+40|0;Q=O;P=k[Q>>2]|0;Q=k[Q+4>>2]|0;N=ow(P|0,Q|0,1,0)|0;k[O>>2]=N;k[O+4>>2]=L;if((P|0)==0&(Q|0)==0){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 568:{ee=0;e=Cm(a,k[f+(g*20|0)+4>>2]|0,k[f+(g*20|0)+12>>2]|0,-1,0)|0;if(!e){u=ce;v=fe;e=d;d=q;ee=1317;break a}i[e+25>>0]=1;k[e+16>>2]=k[f+(g*20|0)+8>>2];O=e+27|0;i[O>>0]=i[O>>0]|4;O=v;w=f;P=R;Q=S;e=g;break}case 570:{ee=0;O=f+(e*20|0)+4|0;Gm(a,k[(k[Fb>>2]|0)+(k[O>>2]<<2)>>2]|0);k[(k[Fb>>2]|0)+(k[O>>2]<<2)>>2]=0;O=v;w=f;P=R;Q=S;break}case 571:{ee=0;I=k[(k[Fb>>2]|0)+(k[f+(e*20|0)+4>>2]<<2)>>2]|0;i[I+25>>0]=0;if(!(i[I+27>>0]&4)){Q=k[f+(e*20|0)+16>>2]|0;k[td>>2]=k[I+8>>2];j[Yb>>1]=Q;i[Zb>>0]=(w<<1&2^2)+255;Q=k[f+(e*20|0)+12>>2]|0;g=v+(Q*40|0)|0;k[_b>>2]=g;if(j[v+(Q*40|0)+8>>1]&16384)Wg(g)|0;z=Hm(k[I>>2]|0,td,0,0,0,xd)|0;if(z){g=e;h=z;ee=1318;break c}}else{z=k[f+(e*20|0)+12>>2]|0;x=v+(z*40|0)|0;z=v+(z*40|0)+8|0;if((j[z>>1]&14)==2)wh(x,0);F=_g(x)|0;E=L;z=m[z>>1]|0;do if(!(z&4)){if(!(z&8)){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0;break q}y=+p[x>>3];A=+(F>>>0)+4294967296.0*+(E|0);if(y<A){w=(w<<31>>31)+w|0;break}else{w=(y>A&(w&1|0)==0&1)+w|0;break}}while(0);z=Hm(k[I>>2]|0,0,F,E,0,xd)|0;Q=I+48|0;k[Q>>2]=F;k[Q+4>>2]=E;if(z){g=e;h=z;ee=1318;break c}}i[I+26>>0]=0;k[I+60>>2]=0;g=k[xd>>2]|0;do if((w|0)>63){if((g|0)>=0?!((g|0)==0&(w|0)==65):0){k[xd>>2]=0;O=v;w=f;P=R;Q=S;break q}k[xd>>2]=0;o=Im(k[I>>2]|0,xd)|0;if(!o)ee=593;else{g=e;h=o;ee=1318;break c}}else{if((g|0)<=0?!((g|0)==0&(w|0)==62):0){g=(i[(k[I>>2]|0)+73>>0]|0)!=1&1;k[xd>>2]=g;break}k[xd>>2]=0;o=Jm(k[I>>2]|0,xd)|0;if(!o)ee=593;else{g=e;h=o;ee=1318;break c}}while(0);if((ee|0)==593){ee=0;g=k[xd>>2]|0}if(!g){O=v;w=f;P=R;Q=S}else{O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}break}case 596:{ee=0;O=k[(k[Fb>>2]|0)+(k[f+(e*20|0)+4>>2]<<2)>>2]|0;i[O+25>>0]=0;P=_g(v+((k[f+(e*20|0)+8>>2]|0)*40|0)|0)|0;w=O+48|0;k[w>>2]=P;k[w+4>>2]=L;i[O+26>>0]=1;O=v;w=f;P=R;Q=S;break}case 597:{ee=0;J=k[(k[Fb>>2]|0)+(k[f+(g*20|0)+4>>2]<<2)>>2]|0;w=k[f+(g*20|0)+12>>2]|0;F=v+(w*40|0)|0;k[jd>>2]=0;o=f+(g*20|0)+16|0;z=k[o>>2]|0;e=J+8|0;x=k[e>>2]|0;w:do if((z|0)>0){k[ud>>2]=x;z=z&65535;j[$b>>1]=z;k[ac>>2]=F;if(!(z<<16>>16))w=ud;else{w=F;x=0;while(1){if(j[w+(x*40|0)+8>>1]&16384){Wg(w+(x*40|0)|0)|0;z=j[$b>>1]|0}x=x+1|0;if((x|0)>=(z&65535|0)){w=ud;break w}w=k[ac>>2]|0}}}else{z=Km(x,Pc,191,jd)|0;if(!z){u=ce;v=fe;e=d;d=q;ee=1317;break a}if(j[v+(w*40|0)+8>>1]&16384)Wg(F)|0;Lm(k[e>>2]|0,k[v+(w*40|0)+12>>2]|0,k[v+(w*40|0)+16>>2]|0,z);w=z}while(0);i[w+6>>0]=0;x:do if((i[H>>0]|0)==67?(Bc=j[w+4>>1]|0,Bc<<16>>16!=0):0){z=k[w+8>>2]|0;x=0;while(1){if(j[z+(x*40|0)+8>>1]&1)break;x=x+1|0;if((x|0)>=(Bc&65535|0)){I=g;e=g;break x}}I=g;e=(k[f+(g*20|0)+8>>2]|0)+-1|0}else{I=g;e=g}while(0);z=Hm(k[J>>2]|0,w,0,0,0,yd)|0;if(!(k[o>>2]|0))rgrg(he,n);i[da>>0]=0;if(!g){O=v;w=f;P=R;Q=S;n=F}else{f=g;g=e;h=q;ee=884;break c}break}case 886:{ee=0;pg(he,Nk((k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+12>>2]|0)+8|0,k[f+(e*20|0)+16>>2]|0,0)|0);k[Qb>>2]=k[Qb>>2]|2;O=v;w=f;P=R;Q=S;break}case 887:{ee=0;z=Nk((k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+12>>2]|0)+24|0,k[f+(e*20|0)+16>>2]|0,0)|0;if(z){g=(k[z+12>>2]|0)+8|0;n=k[g>>2]|0;z:do if((n|0)==(z|0))k[g>>2]=k[z+20>>2];else{do{if(!n)break z;g=n+20|0;n=k[g>>2]|0}while((n|0)!=(z|0));k[g>>2]=k[z+20>>2]}while(0);Ok(he,z)}k[Qb>>2]=k[Qb>>2]|2;O=v;w=f;P=R;Q=S;n=F;break}case 895:{ee=0;z=Nk((k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+12>>2]|0)+40|0,k[f+(e*20|0)+16>>2]|0,0)|0;if(!z){O=v;w=f;P=R;Q=S}else{g=k[z+20>>2]|0;if((g|0)==(k[z+24>>2]|0)){g=gn(g+8|0,k[z+4>>2]|0,ge)|0;if(!g)g=0;else g=k[g+8>>2]|0;o=g+64|0;while(1){Q=k[o>>2]|0;g=Q+32|0;if((Q|0)==(z|0))break;else o=g}k[o>>2]=k[g>>2]}og(he,z);k[Qb>>2]=k[Qb>>2]|2;O=v;w=f;P=R;Q=S}break}case 903:{ee=0;J=k[f+(g*20|0)+8>>2]|0;e=rh(he,(J<<2)+4|0,0)|0;if(!e){u=ce;v=fe;e=d;d=q;ee=1317;break a}x=k[f+(g*20|0)+12>>2]|0;H=k[f+(g*20|0)+4>>2]|0;G=v+(H*40|0)|0;if((J|0)>0){z=0;do{Q=_g(v+((z+H|0)*40|0)|0)|0;k[e+(z<<2)>>2]=Q;z=z+1|0}while((z|0)!=(J|0));z=J}else z=0;k[e+(z<<2)>>2]=0;E=k[(k[Td>>2]|0)+(l[f+(g*20|0)+3>>0]<<4)+4>>2]|0;N=v+(x*40|0)|0;Q=k[N>>2]|0;M=k[E+4>>2]|0;k[M+4>>2]=k[E>>2];E=k[M>>2]|0;o=k[(k[E+204>>2]|0)+12>>2]|0;k[Pd>>2]=M;k[fa>>2]=E;E=k[M+44>>2]|0;k[ja>>2]=E;k[la>>2]=Q;k[ma+0>>2]=0;k[ma+4>>2]=0;k[ma+8>>2]=0;k[ma+12>>2]=0;k[ma+16>>2]=0;do if(!E){x=0;z=0}else{F=(E>>>3)+1|0;D=vg(F,0)|0;if(!D){k[pa>>2]=0;x=0;z=1;break}kw(D|0,0,F|0)|0;k[pa>>2]=D;K=M+32|0;F=(((k[2514]|0)>>>0)/((k[K>>2]|0)>>>0)|0)+1|0;if(F>>>0<=E>>>0){Q=D+(F>>>3)|0;i[Q>>0]=l[Q>>0]|1<<(F&7)}k[ra>>2]=Kd;k[sa>>2]=Kd;k[qa>>2]=0;k[ta>>2]=0;k[ua>>2]=100;k[va>>2]=1e9;i[xa>>0]=0;i[wa>>0]=2;k[oa>>2]=43592;z=k[(k[M+12>>2]|0)+56>>2]|0;hn(Pd,1,l[z+33>>0]<<16|l[z+32>>0]<<24|l[z+34>>0]<<8|l[z+35>>0],l[z+37>>0]<<16|l[z+36>>0]<<24|l[z+38>>0]<<8|l[z+39>>0]);k[oa>>2]=0;z=k[la>>2]|0;if(!((J|0)<1|(z|0)==0)){C=M+17|0;D=0;do{E=e+(D<<2)|0;F=k[E>>2]|0;if(F){if((i[C>>0]|0)!=0&(F|0)>1){jn(Pd,F,1,0);F=k[E>>2]|0}k[oa>>2]=43608;kn(Pd,F,0,0)|0;k[oa>>2]=0;z=k[la>>2]|0}D=D+1|0}while(!((D|0)>=(J|0)|(z|0)==0))}if(!((k[ja>>2]|0)==0|(z|0)==0)){B=M+17|0;z=M+36|0;I=1;do{D=I>>>3;F=i[(k[pa>>2]|0)+D>>0]|0;C=1<<(I&7);do if(!(F&255&C)){if(I>>>0<2)E=0;else{E=I+-2|0;E=E-((E>>>0)%(((((k[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(((k[2514]|0)>>>0)/((k[K>>2]|0)>>>0)|0|0)?3:2)+E|0}if((E|0)==(I|0)?(i[B>>0]|0)!=0:0)break;k[ge>>2]=I;ln(Pd,43632,ge);F=i[(k[pa>>2]|0)+D>>0]|0}while(0);do if(F&255&C){if(I>>>0<2)F=0;else{F=I+-2|0;F=F-((F>>>0)%(((((k[z>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;F=((F+1|0)==(((k[2514]|0)>>>0)/((k[K>>2]|0)>>>0)|0|0)?3:2)+F|0}if((F|0)!=(I|0))break;if(!(i[B>>0]|0))break;k[ge>>2]=I;ln(Pd,43656,ge)}while(0);I=I+1|0}while(!((k[la>>2]|0)==0?1:I>>>0>(k[ja>>2]|0)>>>0))}z=k[(k[(k[M>>2]|0)+204>>2]|0)+12>>2]|0;if((o|0)!=(z|0)){k[ge>>2]=o;k[ge+4>>2]=z;ln(Pd,43696,ge)}$c(k[pa>>2]|0);if(k[na>>2]|0){mn(qa);x=0;z=(k[ma>>2]|0)+1|0;break}z=k[ma>>2]|0;if(!z)mn(qa);x=yg(qa)|0}while(0);rg(he,e);Q=N;Q=iw(k[Q>>2]|0,k[Q+4>>2]|0,z|0,((z|0)<0)<<31>>31|0)|0;w=N;k[w>>2]=Q;k[w+4>>2]=L;w=v+(H*40|0)+8|0;if(!(j[w>>1]&9312))j[w>>1]=1;else Ag(G);if(z){if(!x){u=ce;v=fe;e=d;d=q;ee=1317;break a}ah(G,x,-1,1,1)|0}bm(G,ub)|0;O=v;w=f;P=R;Q=S;e=g;break}case 947:{ee=0;o=k[f+(g*20|0)+4>>2]|0;e=v+(o*40|0)|0;n=k[f+(g*20|0)+8>>2]|0;o=v+(o*40|0)+8|0;if((j[o>>1]&32)==0?(nn(e),(j[o>>1]&32)==0):0){u=ce;v=fe;e=d;d=q;ee=1317;break a}O=v+(n*40|0)|0;on(k[e>>2]|0,k[O>>2]|0,k[O+4>>2]|0);O=v;w=f;P=R;Q=S;n=F;e=g;break}case 966:{ee=0;w=k[f+(g*20|0)+4>>2]|0;N=v+(w*40|0)|0;M=v+((k[f+(g*20|0)+12>>2]|0)*40|0)|0;K=k[f+(g*20|0)+16>>2]|0;w=v+(w*40|0)+8|0;if((j[w>>1]&32)==0?(nn(N),(j[w>>1]&32)==0):0){u=ce;v=fe;e=d;d=q;ee=1317;break a}if(K){I=k[N>>2]|0;G=M;J=k[G>>2]|0;G=k[G+4>>2]|0;o=I+28|0;if((k[o>>2]|0)!=(K|0)){e=I+8|0;F=k[e>>2]|0;if(F){E=I+20|0;H=I+26|0;if(!(j[H>>1]&1))F=pn(F)|0;D=k[E>>2]|0;A:do if(!D){dd=F;od=E;ee=978}else{while(1){E=D+12|0;C=k[E>>2]|0;if(!C)break;B=D+8|0;qn(C,ge,Pd);k[E>>2]=0;F=rn(k[ge>>2]|0,F)|0;D=k[B>>2]|0;if(!D){dd=F;od=B;ee=978;break A}}Q=sn(F)|0;k[E>>2]=Q}while(0);if((ee|0)==978?(ee=0,Hc=tn(I)|0,k[od>>2]=Hc,(Hc|0)!=0):0){Q=Hc;k[Q>>2]=0;k[Q+4>>2]=0;k[Hc+8>>2]=0;Q=sn(dd)|0;k[Hc+12>>2]=Q}k[e>>2]=0;k[I+12>>2]=0;j[H>>1]=m[H>>1]|1}k[o>>2]=K}z=k[I+20>>2]|0;B:do if(z){C:while(1){x=k[z+12>>2]|0;if(x)do{w=x;B=k[w>>2]|0;w=k[w+4>>2]|0;if((w|0)<(G|0)|(w|0)==(G|0)&B>>>0<J>>>0)x=x+8|0;else{if(!((w|0)>(G|0)|(w|0)==(G|0)&B>>>0>J>>>0))break C;x=x+12|0}x=k[x>>2]|0}while((x|0)!=0);z=k[z+8>>2]|0;if(!z)break B}O=v;w=f;P=R;Q=S;e=(k[f+(g*20|0)+8>>2]|0)+-1|0;break q}while(0);if((K|0)>-1)z=M;else{O=v;w=f;P=R;Q=S;e=g;break}}else z=M;O=z;on(k[N>>2]|0,k[O>>2]|0,k[O+4>>2]|0);O=v;w=f;P=R;Q=S;e=g;break}case 993:{ee=0;o=k[f+(e*20|0)+16>>2]|0;E=k[f+(e*20|0)+12>>2]|0;I=v+(E*40|0)|0;if((i[f+(e*20|0)+3>>0]|0)!=0?(Ic=k[o+20>>2]|0,fd=k[pb>>2]|0,(fd|0)!=0):0){w=fd;while(1){if((k[w+28>>2]|0)==(Ic|0)){O=v;w=f;P=R;Q=S;break q}w=k[w+4>>2]|0;if(!w){g=e;break}}}else g=e;e=k[qb>>2]|0;if((e|0)>=(k[ya>>2]|0)){h=q;ee=998;break c}B=v+(E*40|0)+8|0;if(!(j[B>>1]&64)){z=o+12|0;x=k[z>>2]|0;w=x+(k[o+8>>2]|0)|0;f=o+16|0;x=(x<<2)+80+(k[f>>2]|0)+(w*40|0)|0;F=rh(he,x,((x|0)<0)<<31>>31)|0;if(!F){u=ce;v=fe;e=d;d=q;ee=1317;break a}kw(F|0,0,x|0)|0;if(!((j[B>>1]&9312)==0?(k[v+(E*40|0)+24>>2]|0)==0:0))Vg(I);j[B>>1]=64;k[I>>2]=F;k[F>>2]=a;k[F+60>>2]=w;k[F+64>>2]=k[z>>2];k[F+44>>2]=g;k[F+16>>2]=k[Kc>>2];k[F+52>>2]=k[za>>2];k[F+24>>2]=k[Fb>>2];k[F+40>>2]=k[Aa>>2];k[F+8>>2]=k[tc>>2];k[F+48>>2]=k[Ba>>2];k[F+28>>2]=k[o+20>>2];k[F+20>>2]=k[Eb>>2];k[F+56>>2]=k[Ca>>2];v=F+80|0;e=v+(w*40|0)|0;if((v|0)!=(e|0))do{j[v+8>>1]=128;k[v+32>>2]=he;v=v+40|0}while((v|0)!=(e|0));e=k[qb>>2]|0;v=F}else{f=o+16|0;v=k[I>>2]|0}k[qb>>2]=e+1;k[v+4>>2]=k[pb>>2];O=v+32|0;k[O>>2]=d;k[O+4>>2]=c;k[v+68>>2]=k[rb>>2];k[v+72>>2]=k[(k[a>>2]|0)+80>>2];k[rb>>2]=0;k[pb>>2]=v;O=v+40|0;k[Kc>>2]=O;P=k[v+60>>2]|0;k[za>>2]=P;Q=k[v+64>>2]&65535;k[Aa>>2]=Q;P=O+((P+1|0)*40|0)|0;k[Fb>>2]=P;w=k[o>>2]|0;k[tc>>2]=w;k[Ba>>2]=k[o+4>>2];Q=P+(Q<<2)|0;k[Eb>>2]=Q;P=k[f>>2]|0;k[Ca>>2]=P;kw(Q|0,0,P|0)|0;P=R;Q=S;e=-1;break}case 1009:{ee=0;O=k[pb>>2]|0;cm(n,(k[O+16>>2]|0)+(((k[(k[O+8>>2]|0)+((k[O+44>>2]|0)*20|0)+4>>2]|0)+(k[f+(e*20|0)+4>>2]|0)|0)*40|0)|0,4096);O=v;w=f;P=R;Q=S;break}case 1010:{ee=0;if(k[Qb>>2]&16777216){w=k[f+(e*20|0)+8>>2]|0;O=Ob;w=ow(k[O>>2]|0,k[O+4>>2]|0,w|0,((w|0)<0)<<31>>31|0)|0;O=Ob;k[O>>2]=w;k[O+4>>2]=L;O=v;w=f;P=R;Q=S;n=F;break}g=k[f+(e*20|0)+8>>2]|0;n=((g|0)<0)<<31>>31;if(!(k[f+(e*20|0)+4>>2]|0)){w=Wd;w=ow(k[w>>2]|0,k[w+4>>2]|0,g|0,n|0)|0;O=Wd;k[O>>2]=w;k[O+4>>2]=L;O=v;w=f;P=R;Q=S;n=F;break}else{w=Nb;w=ow(k[w>>2]|0,k[w+4>>2]|0,g|0,n|0)|0;O=Nb;k[O>>2]=w;k[O+4>>2]=L;O=v;w=f;P=R;Q=S;n=F;break}}case 1015:{ee=0;if(!(k[f+(e*20|0)+4>>2]|0)){Q=Wd;if(!((k[Q>>2]|0)==0&(k[Q+4>>2]|0)==0)){O=v;w=f;P=R;Q=S;break}Q=Ob;if(!((k[Q>>2]|0)==0&(k[Q+4>>2]|0)==0)){O=v;w=f;P=R;Q=S;break}O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0;break}else{Q=Nb;if(!((k[Q>>2]|0)==0&(k[Q+4>>2]|0)==0)){O=v;w=f;P=R;Q=S;break}Q=Ob;if(!((k[Q>>2]|0)==0&(k[Q+4>>2]|0)==0)){O=v;w=f;P=R;Q=S;break}O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0;break}}case 1022:{ee=0;g=k[pb>>2]|0;if(!g)o=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;else{while(1){n=k[g+4>>2]|0;if(!n)break;else g=n}o=(k[g+16>>2]|0)+((k[f+(e*20|0)+4>>2]|0)*40|0)|0}P=_g(o)|0;Q=o;k[Q>>2]=P;k[Q+4>>2]=L;Q=o+8|0;j[Q>>1]=m[Q>>1]&48640|4;Q=k[f+(e*20|0)+8>>2]|0;P=v+(Q*40|0)|0;g=_g(P)|0;n=L;k[P>>2]=g;k[P+4>>2]=n;Q=v+(Q*40|0)+8|0;j[Q>>1]=m[Q>>1]&48640|4;Q=o;P=k[Q+4>>2]|0;if((P|0)<(n|0)|((P|0)==(n|0)?(k[Q>>2]|0)>>>0<g>>>0:0)){O=o;k[O>>2]=g;k[O+4>>2]=n;O=v;w=f;P=R;Q=S;n=I}else{O=v;w=f;P=R;Q=S;n=I}break}case 1028:{ee=0;Q=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;P=k[Q+4>>2]|0;if((P|0)>0|(P|0)==0&(k[Q>>2]|0)>>>0>0){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 1030:{ee=0;O=k[f+(e*20|0)+12>>2]|0;P=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;Q=P;O=ow(k[Q>>2]|0,k[Q+4>>2]|0,O|0,((O|0)<0)<<31>>31|0)|0;Q=L;k[P>>2]=O;k[P+4>>2]=Q;if((Q|0)<0){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 1032:{ee=0;g=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;o=g;n=k[o>>2]|0;o=k[o+4>>2]|0;if((n|0)==0&(o|0)==0){O=v;w=f;P=R;Q=S;n=F}else{w=k[f+(e*20|0)+12>>2]|0;w=ow(w|0,((w|0)<0)<<31>>31|0,n|0,o|0)|0;O=g;k[O>>2]=w;k[O+4>>2]=L;O=v;w=f;P=R;Q=S;n=F;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}break}case 1034:{ee=0;O=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;P=O;P=ow(k[P>>2]|0,k[P+4>>2]|0,-1,-1)|0;Q=L;k[O>>2]=P;k[O+4>>2]=Q;if((P|0)==0&(Q|0)==0){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 1036:{ee=0;O=v+((k[f+(e*20|0)+4>>2]|0)*40|0)|0;Q=O;P=k[Q>>2]|0;Q=k[Q+4>>2]|0;N=ow(P|0,Q|0,1,0)|0;k[O>>2]=N;k[O+4>>2]=L;if((P|0)==0&(Q|0)==0){O=v;w=f;P=R;Q=S;e=(k[f+(e*20|0)+8>>2]|0)+-1|0}else{O=v;w=f;P=R;Q=S}break}case 1157:{ee=0;O=v;w=f;P=R;Q=S;e=(k[f+(g*20|0)+8>>2]|0)+-1|0;break}case 1158:{ee=0;if(k[f+(e*20|0)+4>>2]|0){j[Ud>>1]=j[Ud>>1]|8;O=v;w=f;P=R;Q=S;break}g=k[Sb>>2]|0;if(!g){O=v;w=f;P=R;Q=S}else{do{Q=g+88|0;j[Q>>1]=j[Q>>1]|8;g=k[g+52>>2]|0}while((g|0)!=0);O=v;w=f;P=R;Q=S}break}case 1166:{ee=0;F=(k[o>>2]|0)+72|0;g=k[F>>2]|0;D:do if(g){while(1){if((k[g+4>>2]|0)==(x|0)?(k[g>>2]|0)==(z|0):0)break;g=k[g+12>>2]|0;if(!g){ee=1171;break D}}if(!g)ee=1171}else ee=1171;while(0);if((ee|0)==1171){ee=0;g=vg(16,0)|0;if(!g){g=e;f=7;h=q;ee=1309;break c}Q=g+0|0;C=Q+12|0;do{i[Q>>0]=0;Q=Q+1|0}while((Q|0)<(C|0));k[g+4>>2]=x;k[g>>2]=z;k[g+12>>2]=k[F>>2];k[F>>2]=g}g=g+8|0;if((l[g>>0]|0)<(w&255)){i[g>>0]=w;O=v;w=f;P=R;Q=S}else{O=v;w=f;P=R;Q=S}break}case 1213:{ee=0;k[pd>>2]=0;w=k[(k[f+(e*20|0)+16>>2]|0)+8>>2]|0;if(!w){g=e;f=6;h=q;ee=1309;break c}o=k[w>>2]|0;if(!o){g=e;f=6;h=q;ee=1309;break c}z=wc[k[o+24>>2]&127](w,pd)|0;Rm(a,w);if(z){g=e;f=z;h=q;ee=1309;break c}k[k[pd>>2]>>2]=w;g=Cm(a,k[f+(e*20|0)+4>>2]|0,0,-1,0)|0;if(!g){i[ce>>0]=1;qc[k[o+28>>2]&127](k[pd>>2]|0)|0;O=v;w=f;P=R;Q=S;break}else{k[g+32>>2]=k[pd>>2];O=w+4|0;k[O>>2]=(k[O>>2]|0)+1;O=v;w=f;P=R;Q=S;break}}case 1226:{ee=0;g=v+(z*40|0)+8|0;if(!(j[g>>1]&9312)){j[g>>1]=1;O=v;w=f;P=R;Q=S;break}else{Ag(x);O=v;w=f;P=R;Q=S;break}}case 1257:{ee=0;O=n;k[O>>2]=k[(k[(k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+4>>2]|0)+4>>2]|0)+44>>2];k[O+4>>2]=0;O=v;w=f;P=R;Q=S;break}case 1258:{ee=0;w=k[(k[Td>>2]|0)+(k[f+(e*20|0)+4>>2]<<4)+4>>2]|0;g=k[f+(e*20|0)+12>>2]|0;n=k[w+4>>2]|0;if(!g)g=0;else{Q=k[n+44>>2]|0;g=Q>>>0<g>>>0?g:Q}k[n+4>>2]=k[w>>2];n=(k[n>>2]|0)+156|0;if((g|0)>0)k[n>>2]=g;else g=k[n>>2]|0;O=F;k[O>>2]=g;k[O+4>>2]=((g|0)<0)<<31>>31;O=v;w=f;P=R;Q=S;n=F;break}case 1264:{ee=0;e=k[f+(g*20|0)+8>>2]|0;e=(e|0)==0?g:e+-1|0;if((k[Pa>>2]|0)!=0?(j[Ud>>1]&512)==0:0){g=k[f+(g*20|0)+16>>2]|0;if(!g){g=k[_d>>2]|0;if(!g){O=v;w=f;P=R;Q=S;n=I;break}}k[Pd>>2]=0;n=k[a>>2]|0;z=k[n+88>>2]|0;k[cb>>2]=Kd;k[db>>2]=Kd;k[eb>>2]=0;k[fb>>2]=100;k[gb>>2]=z;i[hb>>0]=1;i[ib>>0]=0;k[nd>>2]=n;z=i[g>>0]|0;w=z<<24>>24==0;E:do if((k[n+160>>2]|0)>1){if(!w){w=z;while(1){n=g;do{n=n+1|0;if(w<<24>>24==10)break;w=i[n>>0]|0}while(w<<24>>24!=0);Xk(nd,42288,3);Xk(nd,g,n-g|0);w=i[n>>0]|0;if(!(w<<24>>24))break;else g=n}}}else if(!w){o=n+62|0;w=z;J=1;do{F:do if(!(w<<24>>24)){x=0;w=0}else{z=g;w=0;while(1){x=Hn(z,ge)|0;if((k[ge>>2]|0)==135)break F;w=x+w|0;z=z+x|0;if(!(i[z>>0]|0)){x=0;break}}}while(0);Xk(nd,g,w);z=g+w|0;if(!x)break E;do if((i[z>>0]|0)==63)if((x|0)>1){In(g+(w+1)|0,Pd)|0;z=k[Pd>>2]|0;break}else{k[Pd>>2]=J;z=J;break}else{z=vh(a,z,x)|0;k[Pd>>2]=z}while(0);g=g+(w+x)|0;J=z+1|0;F=z+-1|0;E=k[xb>>2]|0;z=E+(F*40|0)|0;x=m[E+(F*40|0)+8>>1]|0;do if(!(x&1)){if(x&4){O=z;P=k[O+4>>2]|0;Q=ge;k[Q>>2]=k[O>>2];k[Q+4>>2]=P;Jn(nd,0,19920,ge);break}if(x&8){p[t>>3]=+p[z>>3];k[ge>>2]=k[t>>2];k[ge+4>>2]=k[t+4>>2];Jn(nd,0,20272,ge);break}if(!(x&2)){if(x&16384){k[ge>>2]=k[z>>2];Jn(nd,0,42304,ge);break}Xk(nd,42320,2);B=k[E+(F*40|0)+12>>2]|0;if((B|0)>0){z=E+(F*40|0)+16|0;x=0;do{k[ge>>2]=l[(k[z>>2]|0)+x>>0];Jn(nd,0,42328,ge);x=x+1|0}while((x|0)!=(B|0))}Xk(nd,42336,1);break}else{B=i[o>>0]|0;if(B<<24>>24==1){Q=k[E+(F*40|0)+16>>2]|0;k[ge>>2]=k[E+(F*40|0)+12>>2];k[ge+4>>2]=Q;Jn(nd,0,42296,ge);break}Q=Ld+0|0;C=Q+40|0;do{k[Q>>2]=0;Q=Q+4|0}while((Q|0)<(C|0));k[kb>>2]=n;ah(Ld,k[E+(F*40|0)+16>>2]|0,k[E+(F*40|0)+12>>2]|0,B,0)|0;Q=k[lb>>2]|0;if(!((Q&2|0)==0|(Q&16711680|0)==65536))Gn(Ld,1)|0;Q=k[nb>>2]|0;k[ge>>2]=k[mb>>2];k[ge+4>>2]=Q;Jn(nd,0,42296,ge);if((j[lb>>1]&9312)==0&(k[ob>>2]|0)==0)break;Vg(Ld);break}}else Xk(nd,20304,4);while(0);w=i[g>>0]|0}while(w<<24>>24!=0)}while(0);O=yg(nd)|0;oc[k[Pa>>2]&15](k[jb>>2]|0,O);rgrg(he,k[fe>>2]|0);nd=ph(he,16040)|0;k[fe>>2]=nd;f=k[f>>2]|0;if((k[k[(k[Td>>2]|0)+(f<<4)+12>>2]>>2]|0)!=(n|0))Am(he,f);j[Ud>>1]=j[Ud>>1]|8;f=17;ee=1309;break}case 542:{k[ge>>2]=73997;k[ge+4>>2]=10788;gd(11,13600,ge);h=11;q=f;ee=1318;break}case 560:{k[f+56>>2]=0;f=7;ee=1309;break}case 832:{i[be>>0]=2;f=6;ee=1309;break}case 882:{Jg(he);u=ce;v=fe;e=d;d=h;ee=1317;break a}case 884:{Jg(he);if((f|0)==7){u=ce;v=fe;e=d;d=h;ee=1317;break a}else ee=1309;break}case 998:{ih(fe,he,42112,ge);f=1;ee=1309;break}case 1080:{k[ge>>2]=f?42208:42216;ih(fe,he,42152,ge);f=1;ee=1309;break}case 1101:{ih(fe,he,42344,ge);f=1;ee=1309;break}case 1103:{ih(fe,he,42384,ge);f=1;ee=1309;break}case 1145:{k[ge>>2]=56343;k[ge+4>>2]=10788;gd(11,13600,ge);f=11;ee=1309;break}case 1316:{ih(fe,he,10096,ge);e=d;f=18;d=h;ee=1311;break a}}if((ee|0)==41)if((Wl(a)|0)==5){k[ie>>2]=5;e=d;d=b;b=5;break a}else{e=d;d=b;b=(k[ie>>2]|0)!=0?1:101;break a}else if((ee|0)==1309){e=d;g=g+1|0;d=h;ee=1311;break a}else if((ee|0)==1318){h=(i[ce>>0]|0)==0?h:7;if((h|0)==3082){e=d;f=3082;d=q;ee=1311;break a}else if((h|0)!=516){e=h&255;if(e>>>0>26|(e|0)==2)f=16328;else f=k[15488+(e<<2)>>2]|0}else f=16344;k[ge>>2]=f;ih(fe,he,10344,ge);e=d;f=h;d=q;ee=1311;break a}}else{h=a+44|0;e=d;b=0;g=0;d=0}while(0);k[ie>>2]=9;k[ge>>2]=15832;ih(h,he,10344,ge);f=9;ee=1311}while(0);if((ee|0)==1317){i[u>>0]=1;ih(v,he,15776,ge);f=7;ee=1311}if((ee|0)==1311){k[ie>>2]=f;kd=k[a+168>>2]|0;nd=k[a+44>>2]|0;k[ge>>2]=g;k[ge+4>>2]=kd;k[ge+8>>2]=nd;gd(f,42256,ge);Wl(a)|0;if((f|0)==3082)i[he+65>>0]=1;if(!(d<<24>>24)){d=b;b=1}else{Am(he,(d&255)+-1|0);d=b;b=1}}nd=je;k[nd>>2]=e;k[nd+4>>2]=c;nd=a+124|0;k[nd>>2]=(k[nd>>2]|0)+d;r=ke;return b|0}
14 function Jv(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=a+20|0;r=a+14|0;b=i[r>>0]|0;w=a+13|0;c=i[w>>0]|0;a:do if((b&255)>(c&255))b=0;else{y=a+4|0;z=a+16|0;s=a+8|0;t=a+12|0;u=a+24|0;v=a+28|0;e=b&255;f=k[y>>2]|0;d=k[A>>2]|0;b:while(1){q=k[a+(e+-2<<2)+24>>2]|0;p=k[a+(e+-1<<2)+24>>2]|0;if(f){while(1){o=f+12|0;if((d|0)<(k[o>>2]|0)){c=d;b=(k[f+20>>2]|0)+(d*48|0)|0;while(1){do if((k[b+8>>2]|0)==(q|0)?(k[b+12>>2]|0)==(p|0):0){if((l[r>>0]|0)>=3?(k[(k[b>>2]|0)+4>>2]&1|0)!=0:0)break;n=b+18|0;d=j[n>>1]|0;if((d&1024)!=0?(x=i[w>>0]|0,(x&255)<22):0){e=k[(k[b>>2]|0)+16>>2]|0;c:do if(!e)e=0;else while(1){g=k[e+4>>2]|0;if(!(g&4096))break c;if(!(g&262144))e=e+12|0;else e=k[(k[e+20>>2]|0)+4>>2]|0;e=k[e>>2]|0;if(!e){e=0;break}}while(0);d:do if(!(x<<24>>24)){m=0;g=0}else{h=k[e+28>>2]|0;m=e+32|0;g=0;while(1){if((k[a+(g<<2)+24>>2]|0)==(h|0)?(k[a+((g|1)<<2)+24>>2]|0)==(j[m>>1]|0):0){m=x;break d}g=g+2|0;if((g|0)>=(x&255|0)){m=x;break}}}while(0);if((g|0)==(m&255|0)){k[a+(g<<2)+24>>2]=k[e+28>>2];k[a+((g|1)<<2)+24>>2]=j[e+32>>1];i[w>>0]=(l[w>>0]|0)+2}}e=d&65535;if(e&k[z>>2]){if((k[s>>2]|0)!=0&(e&128|0)==0){h=k[k[f>>2]>>2]|0;g=k[b>>2]|0;e=i[t>>0]|0;d=(sv(g)|0)<<24>>24;if((d|0)==66){if(e<<24>>24!=66)break}else if((d|0)!=65?e<<24>>24<=66:0)break;d=Tu(h,k[g+12>>2]|0,k[g+16>>2]|0)|0;if(!d)d=k[(k[h>>2]|0)+8>>2]|0;if(id(k[d>>2]|0,k[s>>2]|0)|0)break;d=j[n>>1]|0}if(!(d&2))break b;d=k[(k[b>>2]|0)+16>>2]|0;if((i[d>>0]|0)!=-102)break b;if((k[d+28>>2]|0)!=(k[u>>2]|0))break b;if((j[d+32>>1]|0)!=(k[v>>2]|0))break b}}while(0);c=c+1|0;if((c|0)>=(k[o>>2]|0))break;else b=b+48|0}c=k[y>>2]|0}else c=f;f=k[c+4>>2]|0;k[y>>2]=f;if(!f)break;else d=0}b=i[r>>0]|0;c=i[w>>0]|0}f=k[a>>2]|0;k[y>>2]=f;d=(b&255)+2|0;b=d&255;i[r>>0]=b;if((b&255)>(c&255)){b=0;break a}else{e=d&255;d=0}}k[A>>2]=c+1}while(0);return b|0}function Kv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,n=0;c=k[a>>2]|0;h=k[k[c>>2]>>2]|0;a=k[a+16>>2]|0;a:do if(!a){c=c+16|0;e=k[c>>2]|0;g=b+36|0;if((k[g>>2]&512|0)!=0&(e|0)!=0){a=b+20|0;f=b+22|0;d=i[b+16>>0]|0;do{do if((i[e+16>>0]|0)==d<<24>>24?(k[e+36>>2]&512|0)!=0:0){if(Yv(e,b)|0){j[a>>1]=j[e+20>>1]|0;j[f>>1]=(m[e+22>>1]|0)+65535;break}if(Yv(b,e)|0){j[a>>1]=j[e+20>>1]|0;j[f>>1]=(m[e+22>>1]|0)+1}}while(0);e=k[e+52>>2]|0}while((e|0)!=0)}a=Zv(c,b)|0;if(a){c=k[a>>2]|0;b:do if(c){a=c+52|0;if(k[a>>2]|0)do{a=Zv(a,b)|0;if(!a)break b;d=k[a>>2]|0;if(!d)break b;k[a>>2]=k[d+52>>2];Ou(h,d);rg(h,d)}while((k[a>>2]|0)!=0)}else{c=rh(h,72,0)|0;k[a>>2]=c;if(!c){a=7;break a}k[c+48>>2]=c+56;j[c+40>>1]=0;j[c+44>>1]=3;k[c+36>>2]=0;k[c+52>>2]=0}while(0);Qv(h,c);do if(!(Su(h,c,m[b+40>>1]|0)|0)){d=c+0|0;a=b+0|0;e=d+44|0;do{k[d>>2]=k[a>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));pw(k[c+48>>2]|0,k[b+48>>2]|0,m[c+40>>1]<<2|0)|0;a=k[g>>2]|0;if(a&1024){i[b+28>>0]=0;break}if(a&16384)k[b+28>>2]=0}else{a=c+24|0;k[a+0>>2]=0;k[a+4>>2]=0;k[a+8>>2]=0}while(0);if(((k[c+36>>2]&1024|0)==0?(l=c+28|0,n=k[l>>2]|0,(n|0)!=0):0)?(k[n+40>>2]|0)==0:0){k[l>>2]=0;a=0}else a=0}else a=0}else{c=b;Pv(a,k[c>>2]|0,k[c+4>>2]|0,j[b+20>>1]|0,j[b+22>>1]|0);a=0}while(0);return a|0}function Lv(a,b){a=a|0;b=b|0;var c=0,d=0;c=a<<16>>16;d=b<<16>>16;do if(a<<16>>16<b<<16>>16)if((d|0)<=(c+49|0))if((d|0)>(c+31|0)){a=d+1&65535;break}else{a=(l[34032+(d-c)>>0]|0)+d&65535;break}else a=b;else if((c|0)<=(d+49|0))if((c|0)>(d+31|0)){a=c+1&65535;break}else{a=(l[34032+(c-d)>>0]|0)+c&65535;break}while(0);return a|0}function Mv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;do if(!(Hu(a,b,c)|0))d=1;else{d=i[b>>0]|0;if(d<<24>>24==71){if(Mv(a,k[b+12>>2]|0,c)|0){d=1;break}if(Mv(a,k[b+16>>2]|0,c)|0){d=1;break}if(d<<24>>24==77)e=6}else if(d<<24>>24==77)e=6;if(((e|0)==6?(Hu(k[a+12>>2]|0,k[b+12>>2]|0,c)|0)==0:0)?(d=i[a>>0]|0,!(d<<24>>24==73|d<<24>>24==76)):0){d=1;break}d=0}while(0);return d|0}function Nv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0;v=r;r=r+16|0;if((r|0)>=(s|0))ka();u=v;q=b;t=b+8|0;d=t;p=~(k[d>>2]|k[q>>2]);q=~(k[d+4>>2]|k[q+4>>2]);d=k[a+12>>2]|0;n=a+20|0;a:do if((d|0)>0){o=b+40|0;a=b+22|0;l=b+48|0;b=0;i=k[n>>2]|0;while(1){if(j[i+20>>1]&2)break a;h=i+40|0;g=k[h>>2]|0;h=k[h+4>>2]|0;f=t;b:do if(((k[f>>2]&g|0)!=0?1:(k[f+4>>2]&h|0)!=0)&((g&p|0)==0&(h&q|0)==0)){e=j[o>>1]|0;c:do if(e<<16>>16){h=k[l>>2]|0;g=e&65535;while(1){e=g;g=g+-1|0;f=k[h+(g<<2)>>2]|0;if(f){if((f|0)==(i|0))break;f=k[f+4>>2]|0;if((f|0)>-1?((k[n>>2]|0)+(f*48|0)|0)==(i|0):0)break}if((g|0)<=0)break c}if((e|0)>=1)break b}while(0);e=j[i+16>>1]|0;if(e<<16>>16<1){j[a>>1]=(m[a>>1]|0)+(e&65535);break}j[a>>1]=(j[a>>1]|0)+-1<<16>>16;if(j[i+18>>1]&2){g=(Rs(k[(k[i>>2]|0)+16>>2]|0,u)|0)!=0;h=k[u>>2]|0;h=g&(h|0)>-2&(h|0)<2?10:20;k[u>>2]=h;b=(b<<16>>16|0)<(h|0)?h&65535:b}}while(0);d=d+-1|0;if((d|0)<=0)break;else i=i+48|0}}else{a=b+22|0;b=0}while(0);b=(c<<16>>16)-(b<<16>>16)|0;if((j[a>>1]|0)>(b|0))j[a>>1]=b;r=v;return}function Ov(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0;da=r;r=r+112|0;if((r|0)>=(s|0))ka();O=da;S=k[k[k[a>>2]>>2]>>2]|0;ba=k[a+12>>2]|0;if(!(i[S+65>>0]|0)){ca=ba+36|0;if(!(k[ca>>2]&32))if((k[c+40>>2]|0)<1)e=63;else e=(i[b+36>>0]&8)<<4^191;else e=24;T=c+51|0;$=ba+24|0;f=j[(k[c+4>>2]|0)+(m[$>>1]<<1)>>1]|0;K=f<<16>>16;L=a+4|0;e=Iv(O,k[L>>2]|0,k[b+40>>2]|0,K,(i[T>>0]&4)==0?e:e&131,c)|0;U=j[$>>1]|0;V=ba+42|0;Q=j[V>>1]|0;W=ba+40|0;R=j[W>>1]|0;X=k[ca>>2]|0;N=ba;M=k[N>>2]|0;N=k[N+4>>2]|0;Y=ba+22|0;Z=j[Y>>1]|0;j[ba+18>>1]=0;_=c+8|0;A=j[k[_>>2]>>1]|0;if(A<<16>>16<11)z=0;else{z=A<<16>>16;z=((ks(z,((z|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!e)e=0;else{B=f<<16>>16<0;C=b+16|0;D=ba+8|0;E=(R&65535)+1|0;F=ba+48|0;G=d<<16>>16==0;H=c+46|0;t=f<<16>>16>-1;u=c+50|0;v=c+44|0;w=ba+20|0;x=d<<16>>16;y=c+48|0;l=0;p=e;n=0;while(1){f=j[p+18>>1]|0;o=f&65535;if(f<<16>>16==128)if(!B?(i[(k[(k[C>>2]|0)+4>>2]|0)+(K*24|0)+20>>0]|0)==0:0)P=12;else{g=l;f=n;e=0}else P=12;if((P|0)==12){P=0;g=p+32|0;q=g;h=D;if(((k[h>>2]&k[q>>2]|0)==0?(k[h+4>>2]&k[q+4>>2]|0)==0:0)?(I=p+20|0,!((j[I>>1]&256)!=0&f<<16>>16==16)):0){k[ca>>2]=X;j[$>>1]=U;j[W>>1]=R;if(Su(S,ba,E)|0){e=0;break a}e=j[W>>1]|0;h=e+1<<16>>16;j[W>>1]=h;k[(k[F>>2]|0)+((e&65535)<<2)>>2]=p;e=g;f=D;g=(k[e+4>>2]|N)&~k[f+4>>2];q=ba;k[q>>2]=(k[e>>2]|M)&~k[f>>2];k[q+4>>2]=g;b:do if(!(o&1)){if(o&2){e=k[ca>>2]|0;f=e|1;k[ca>>2]=f;do if(!B){if(!G){q=0;break b}if((m[$>>1]|0)!=((m[H>>1]|0)+-1|0)){q=0;break b}if(!t)break;if(i[u>>0]|0)break;f=e|65537;k[ca>>2]=f;q=0;break b}while(0);f=e|4097;k[ca>>2]=f;q=0;break}if(o&128){f=k[ca>>2]|8;k[ca>>2]=f;q=0;break}e=k[ca>>2]|0;if(!(o&36)){f=e|18;k[ca>>2]=f;if(!(e&32)){q=0;l=0;n=p;break}q=0;l=k[(k[F>>2]|0)+((h&65535)+-2<<2)>>2]|0;n=p;break}f=e|34;k[ca>>2]=f;if(!(j[I>>1]&256)){q=0;l=p;n=0}else{e=p+48|0;if(Su(S,ba,(h&65535)+1|0)|0){e=0;break a}f=j[W>>1]|0;j[W>>1]=f+1<<16>>16;k[(k[F>>2]|0)+((f&65535)<<2)>>2]=e;f=k[ca>>2]|16;k[ca>>2]=f;q=0;l=p;n=e}}else{e=k[p>>2]|0;f=k[ca>>2]|4;k[ca>>2]=f;if(!(k[e+4>>2]&2048)){e=k[e+20>>2]|0;if((e|0)!=0?(J=k[e>>2]|0,(J|0)!=0):0)q=(ks(J,((J|0)<0)<<31>>31)|0)<<16>>16;else q=0}else q=46}while(0);do if(!(f&2)){e=(j[$>>1]|0)+1<<16>>16;j[$>>1]=e;e=e&65535;g=j[p+16>>1]|0;if(g<<16>>16<1&t){h=(g&65535)-q+(m[Y>>1]|0)&65535;j[Y>>1]=h;break}g=k[_>>2]|0;g=(m[Y>>1]|0)+((m[g+(e<<1)>>1]|0)-(m[g+(e+-1<<1)>>1]|0))|0;e=g&65535;j[Y>>1]=e;if(!(o&128))h=e;else{h=g+10&65535;j[Y>>1]=h}}else{e=j[Y>>1]|0;h=e<<16>>16;do if(l){g=j[l+16>>1]|0;if(g<<16>>16<1){e=(g&65535)+(e&65535)&65535;break}else{e=(e&65535)+65516&65535;break}}while(0);do if(n){g=j[n+16>>1]|0;if(g<<16>>16<1){e=(g&65535)+(e&65535)&65535;break}else{e=(e&65535)+65516&65535;break}}while(0);g=(l|0)!=0;do if(g?(j[l+16>>1]|0)>0&(n|0)!=0:0){if((j[n+16>>1]|0)<=0)break;e=(e&65535)+65516&65535}while(0);h=(((n|0)!=0)<<31>>31)+(g<<31>>31)+h|0;p=e<<16>>16<10?10:e<<16>>16;h=((p|0)<(h|0)?p:h)&65535;j[Y>>1]=h}while(0);e=h&65535;g=Lv(z,e+1+(((j[v>>1]|0)*15|0)/(j[(k[C>>2]|0)+42>>1]|0)|0)&65535)|0;if(!(f&320))g=Lv(g,e+16&65535)|0;f=q+x|0;j[w>>1]=(g&65535)+f;j[Y>>1]=e+f;Nv(k[L>>2]|0,ba,A);e=Kv(a,ba)|0;q=k[ca>>2]|0;j[Y>>1]=(q&2|0)==0?h:Z;if((q&16|0)==0?(m[$>>1]|0)<(m[y>>1]|0):0)Ov(a,b,c,f&65535)|0;j[Y>>1]=Z;g=l;f=n}else{g=l;f=n;e=0}}p=Jv(O)|0;if(!((e|0)==0&(p|0)!=0))break;else{l=g;n=f}}}while(0);f=ba;k[f>>2]=M;k[f+4>>2]=N;j[$>>1]=U;j[V>>1]=Q;k[ca>>2]=X;j[Y>>1]=Z;j[W>>1]=R;f=U&65535;if(((U<<16>>16==Q<<16>>16?(aa=f+1|0,aa>>>0<(m[c+46>>1]|0)>>>0):0)?(i[T>>0]&64)==0:0)?(j[(k[_>>2]|0)+(aa<<1)>>1]|0)>41:0){e=Su(S,ba,(R&65535)+1|0)|0;if(!e){j[$>>1]=(j[$>>1]|0)+1<<16>>16;j[V>>1]=(j[V>>1]|0)+1<<16>>16;e=j[W>>1]|0;j[W>>1]=e+1<<16>>16;k[(k[ba+48>>2]|0)+((e&65535)<<2)>>2]=0;k[ca>>2]=k[ca>>2]|32768;e=k[_>>2]|0;e=(m[e+(f<<1)>>1]|0)-(m[e+(aa<<1)>>1]|0)|0;j[Y>>1]=(m[Y>>1]|0)-e;Ov(a,b,c,(((e<<16)+327680|0)>>>16)+(d&65535)&65535)|0;j[Y>>1]=Z;j[$>>1]=U;j[V>>1]=U;k[ca>>2]=X;e=0}}}else e=7;r=da;return e|0}function Pv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,l=0,m=0,n=0,o=0,p=0;l=j[a>>1]|0;f=a+8|0;a:do if(l<<16>>16){h=l;i=f;while(1){g=j[i+8>>1]|0;if(g<<16>>16>=d<<16>>16?(p=i,(k[p>>2]&b|0)==(b|0)?(k[p+4>>2]&c|0)==(c|0):0):0){n=i;o=14;break a}if(g<<16>>16<=d<<16>>16?(g=i,p=k[g>>2]|0,g=k[g+4>>2]|0,(p&b|0)==(p|0)&(g&c|0)==(g|0)):0)break a;h=h+-1<<16>>16;if(!(h<<16>>16))break;else i=i+16|0}if((l&65535)>=3){g=j[a+16>>1]|0;i=1;do{if(g<<16>>16>(j[a+(i<<4)+16>>1]|0))f=a+(i<<4)+8|0;i=i+1|0;g=j[f+8>>1]|0}while((i&65535)<(l&65535));if(g<<16>>16>d<<16>>16){n=f;o=14}}else o=9}else o=9;while(0);if((o|0)==9){n=l&65535;j[a>>1]=l+1<<16>>16;j[a+(n<<4)+18>>1]=e;n=a+(n<<4)+8|0;o=14}if((o|0)==14?(m=n,k[m>>2]=b,k[m+4>>2]=c,j[n+8>>1]=d,m=n+10|0,(j[m>>1]|0)>e<<16>>16):0)j[m>>1]=e;return}function Qv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=k[b+36>>2]|0;do if(c&17408){if((c&1024|0)!=0?(f=b+28|0,(i[f>>0]|0)!=0):0){c=b+32|0;$c(k[c>>2]|0);i[f>>0]=0;k[c>>2]=0;break}if((c&16384|0)!=0?(d=b+28|0,e=k[d>>2]|0,(e|0)!=0):0){rg(a,k[e+16>>2]|0);rgrg(g,c)}}else{c=k[f+12>>2]|0;Tv(c);rg(g,c)}if((b|0)<=0)break;else f=f+48|0}}b=k[e>>2]|0;if((b|0)!=(a+24|0))rg>2]|0,k[e>>2]|0)|0}function Aw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0;n=a;l=b;m=l;j=c;o=d;h=o;if(!m){f=(e|0)!=0;if(!h){if(f){k[e>>2]=(n>>>0)%(j>>>0);k[e+4>>2]=0}l=0;m=(n>>>0)/(j>>>0)>>>0;return (L=l,m)|0}else{if(!f){l=0;m=0;return (L=l,m)|0}k[e>>2]=a|0;k[e+4>>2]=b&0;l=0;m=0;return (L=l,m)|0}}i=(h|0)==0;do if(j){if(!i){g=(ja(h|0)|0)-(ja(m|0)|0)|0;if(g>>>0<=31){f=g+1|0;l=31-g|0;j=g-31>>31;h=f;i=n>>>(f>>>0)&j|m<<l;j=m>>>(f>>>0)&j;f=0;g=n<<l;break}if(!e){l=0;m=0;return (L=l,m)|0}k[e>>2]=a|0;k[e+4>>2]=l|b&0;l=0;m=0;return (L=l,m)|0}i=j-1|0;if(i&j){g=(ja(j|0)|0)+33-(ja(m|0)|0)|0;p=64-g|0;l=32-g|0;a=l>>31;b=g-32|0;j=b>>31;h=g;i=l-1>>31&m>>>(b>>>0)|(m<<l|n>>>(g>>>0))&j;j=j&m>>>(g>>>0);f=n<<p&a;g=(m<<p|n>>>(b>>>0))&a|n<<l&g-33>>31;break}if(e){k[e>>2]=i&n;k[e+4>>2]=0}if((j|0)==1){l=l|b&0;m=a|0|0;return (L=l,m)|0}else{a=tw(j|0)|0;l=m>>>(a>>>0)|0;m=m<<32-a|n>>>(a>>>0)|0;return (L=l,m)|0}}else{if(i){if(e){k[e>>2]=(m>>>0)%(j>>>0);k[e+4>>2]=0}l=0;m=(m>>>0)/(j>>>0)>>>0;return (L=l,m)|0}if(!n){if(e){k[e>>2]=0;k[e+4>>2]=(m>>>0)%(h>>>0)}l=0;m=(m>>>0)/(h>>>0)>>>0;return (L=l,m)|0}i=h-1|0;if(!(i&h)){if(e){k[e>>2]=a|0;k[e+4>>2]=i&m|b&0}l=0;m=m>>>((tw(h|0)|0)>>>0);return (L=l,m)|0}g=(ja(h|0)|0)-(ja(m|0)|0)|0;if(g>>>0<=30){j=g+1|0;g=31-g|0;h=j;i=m<<g|n>>>(j>>>0);j=m>>>(j>>>0);f=0;g=n<<g;break}if(!e){l=0;m=0;return (L=l,m)|0}k[e>>2]=a|0;k[e+4>>2]=l|b&0;l=0;m=0;return (L=l,m)|0}while(0);if(!h){l=g;h=0;g=0}else{m=c|0|0;l=o|d&0;b=ow(m,l,-1,-1)|0;a=L;c=g;g=0;do{p=c;c=f>>>31|c<<1;f=g|f<<1;p=i<<1|p>>>31|0;o=i>>>31|j<<1|0;iw(b,a,p,o)|0;n=L;d=n>>31|((n|0)<0?-1:0)<<1;g=d&1;i=iw(p,o,d&m,(((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1)&l)|0;j=L;h=h-1|0}while((h|0)!=0);l=c;h=0}c=0;if(e){k[e>>2]=i;k[e+4>>2]=j}l=(f|0)>>>31|(l|c)<<1|(c<<1|f>>>31)&0|h;m=(f<<1|0>>>31)&-2|g;return (L=l,m)|0}function Bw(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return ec[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function Cw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return fc[a&63](b|0,c|0,d|0)|0}function Dw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;gc[a&1](b|0,c|0,d|0,e|0,f|0,g|0)}function Ew(a,b){a=a|0;b=b|0;hc[a&31](b|0)}function Fw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ic[a&1](b|0,c|0,d|0,e|0,f|0)}function Gw(a,b,c){a=a|0;b=b|0;c=c|0;return +jc[a&1](b|0,c|0)}function Hw(a,b,c){a=a|0;b=b|0;c=+c;kc[a&1](b|0,+c)}function Iw(a,b){a=a|0;b=b|0;return +lc[a&1](b|0)}function Jw(a){a=a|0;return mc[a&7]()|0}function Kw(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;return nc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)|0}function Lw(a,b,c){a=a|0;b=b|0;c=c|0;oc[a&15](b|0,c|0)}function Mw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return pc[a&7](b|0,c|0,d|0,e|0,f|0,g|0)|0}function Nw(a,b){a=a|0;b=b|0;return qc[a&127](b|0)|0}function Ow(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;rc[a&63](b|0,c|0,d|0)}function Pw(a){a=a|0;sc[a&3]()}function Qw(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;return tc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)|0}function Rw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return uc[a&31](b|0,c|0,d|0,e|0)|0}function Sw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;vc[a&15](b|0,c|0,d|0,e|0)}function Tw(a,b,c){a=a|0;b=b|0;c=c|0;return wc[a&127](b|0,c|0)|0}function Uw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return xc[a&1](b|0,c|0,+d)|0}function Vw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return yc[a&31](b|0,c|0,d|0,e|0,f|0)|0}function Ww(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;ma(0);return 0}function Xw(a,b,c){a=a|0;b=b|0;c=c|0;na(1);return 0}function Yw(a,b,c){a=a|0;b=b|0;c=c|0;return yb(a|0,b|0,c|0)|0}function Zw(a,b,c){a=a|0;b=b|0;c=c|0;return bc(a|0,b|0,c|0)|0}function _w(a,b,c){a=a|0;b=b|0;c=c|0;return Kb(a|0,b|0,c|0)|0}function $w(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;oa(2)}function ax(a){a=a|0;pa(3)}function bx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;qa(4)}function cx(a,b){a=a|0;b=b|0;ra(5);return 0.0}function dx(a,b){a=a|0;b=+b;sa(6)}function ex(a){a=a|0;ta(7);return 0.0}function fx(){ua(8);return 0}function gx(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;va(9);return 0}function hx(a,b){a=a|0;b=b|0;wa(10)}function ix(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;xa(11);return 0}function jx(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Zb(a|0,b|0,c|0,d|0,e|0,f|0)|0}function kx(a){a=a|0;ya(12);return 0}function lx(a){a=a|0;return ac(a|0)|0}function mx(a){a=a|0;return Ab(a|0)|0}function nx(a){a=a|0;return mb(a|0)|0}function ox(a,b,c){a=a|0;b=b|0;c=c|0;za(13)}function px(){Aa(14)}function qx(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;Ba(15);return 0}function rx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Ca(16);return 0}function sx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Da(17)}function tx(a,b){a=a|0;b=b|0;Ea(18);return 0}function ux(a,b){a=a|0;b=b|0;return jb(a|0,b|0)|0}function vx(a,b){a=a|0;b=b|0;return $b(a|0,b|0)|0}function wx(a,b){a=a|0;b=b|0;return Nb(a|0,b|0)|0}function xx(a,b){a=a|0;b=b|0;return kb(a|0,b|0)|0}function yx(a,b){a=a|0;b=b|0;return Eb(a|0,b|0)|0}function zx(a,b){a=a|0;b=b|0;return Cb(a|0,b|0)|0}function Ax(a,b){a=a|0;b=b|0;return Fb(a|0,b|0)|0}function Bx(a,b){a=a|0;b=b|0;return Yb(a|0,b|0)|0}function Cx(a,b,c){a=a|0;b=b|0;c=+c;Fa(19);return 0}function Dx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Ga(20);return 0}