Home | History | Annotate | Download | only in sqlite3

Lines Matching refs:Ea

3 "use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env.cttz_i8|0;var n=0;var o=0;var p=0;var q=0;var r=global.NaN,s=global.Infinity;var t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0,B=0.0;var C=0;var D=0;var E=0;var F=0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=0;var M=global.Math.floor;var N=global.Math.abs;var O=global.Math.sqrt;var P=global.Math.pow;var Q=global.Math.cos;var R=global.Math.sin;var S=global.Math.tan;var T=global.Math.acos;var U=global.Math.asin;var V=global.Math.atan;var W=global.Math.atan2;var X=global.Math.exp;var Y=global.Math.log;var Z=global.Math.ceil;var _=global.Math.imul;var $=global.Math.min;var aa=global.Math.clz32;var ba=env.abort;var ca=env.assert;var da=env.nullFunc_iiiiiiii;var ea=env.nullFunc_iiii;var fa=env.nullFunc_viiiiii;var ga=env.nullFunc_vi;var ha=env.nullFunc_viiiii;var ia=env.nullFunc_dii;var ja=env.nullFunc_vid;var ka=env.nullFunc_di;var la=env.nullFunc_i;var ma=env.nullFunc_iiiiiiiiii;var na=env.nullFunc_vii;var oa=env.nullFunc_iiiiiii;var pa=env.nullFunc_ii;var qa=env.nullFunc_viii;var ra=env.nullFunc_v;var sa=env.nullFunc_iiiiiiiii;var ta=env.nullFunc_iiiii;var ua=env.nullFunc_viiii;var va=env.nullFunc_iii;var wa=env.nullFunc_iiid;var xa=env.nullFunc_iiiiii;var ya=env.invoke_iiiiiiii;var za=env.invoke_iiii;var Aa=env.invoke_viiiiii;var Ba=env.invoke_vi;var Ca=env.invoke_viiiii;var Da=env.invoke_dii;var Ea=env.invoke_vid;var Fa=env.invoke_di;var Ga=env.invoke_i;var Ha=env.invoke_iiiiiiiiii;var Ia=env.invoke_vii;var Ja=env.invoke_iiiiiii;var Ka=env.invoke_ii;var La=env.invoke_viii;var Ma=env.invoke_v;var Na=env.invoke_iiiiiiiii;var Oa=env.invoke_iiiii;var Pa=env.invoke_viiii;var Qa=env.invoke_iii;var Ra=env.invoke_iiid;var Sa=env.invoke_iiiiii;var Ta=env._dlerror;var Ua=env._utimes;var Va=env._getuid;var Wa=env._send;var Xa=env._dlsym;var Ya=env._mknod;var Za=env._chown;var _a=env._lseek;var $a=env._emscripten_set_main_loop_timing;var ab=env._access;var bb=env._fstat;var cb=env._chmod;var db=env._rmdir;var eb=env.___assert_fail;var fb=env._usleep;var gb=env.___buildEnvironment;var hb=env._fflush;var ib=env._pwrite;var jb=env._strerror_r;var kb=env._localtime_r;var lb=env._tzset;var mb=env._open;var nb=env._getpid;var ob=env._sbrk;var pb=env._fcntl;var qb=env._emscripten_memcpy_big;var rb=env._unlink;var sb=env._sysconf;var tb=env._fchmod;var ub=env.___setErrNo;var vb=env._ftruncate;var wb=env._mkdir;var xb=env._pread;var yb=env._mkport;var zb=env._dlopen;var Ab=env._dlclose;var Bb=env._write;var Cb=env._fsync;var Db=env.___errno_location;var Eb=env._stat;var Fb=env._recv;var Gb=env._geteuid;var Hb=env._getenv;var Ib=env._sleep;var Jb=env._emscripten_set_main_loop;var Kb=env._abort;var Lb=env._time;var Mb=env._fchown;var Nb=env._strerror;var Ob=env._gettimeofday;var Pb=env._munmap;var Qb=env._mmap;var Rb=env._localtime;var Sb=env._getcwd;var Tb=env._close;var Ub=env._read;var Vb=env._truncate;var Wb=0.0;
6 ;i=i+32|0;if((i|0)>=(j|0))ba();z=A;y=d+8|0;v=c[y>>2]|0;w=c[d>>2]|0;if(((a[d+450>>0]|0)==0?(k=d+16|0,!((a[k>>0]|0)!=0|(v|0)==0)):0)?(a[w+65>>0]|0)==0:0){a[k>>0]=1;k=c[w+24>>2]|0;u=(k&32|0)==0;eq(v,c[f>>2]|0);h=c[f>>2]|0;if((h|0)>0){t=f+4|0;s=(e|0)==0;p=(k&96|0)==0;q=(e|0)!=0;r=0;do{o=c[t>>2]|0;h=c[o+(r*20|0)>>2]|0;do if(h){k=c[o+(r*20|0)+4>>2]|0;if(k){fq(v,r,0,k,-1);break}k=a[h>>0]|0;if(k<<24>>24==-102){if(s)x=25}else if(!(k<<24>>24==-100&q))x=25;if((x|0)==25){x=0;k=c[o+(r*20|0)+8>>2]|0;if(!k){c[z>>2]=r+1;k=qh(w,34880,z)|0}else k=gh(w,k)|0;fq(v,r,0,k,75);break}n=b[h+32>>1]|0;k=n<<16>>16;m=c[e>>2]|0;a:do if((m|0)>0){g=c[h+28>>2]|0;l=0;while(1){h=l+1|0;if((c[e+(l*72|0)+48>>2]|0)==(g|0)){h=l;break a}if((h|0)<(m|0))l=h;else break}}else h=0;while(0);h=c[e+(h*72|0)+24>>2]|0;if(n<<16>>16<0)k=b[h+36>>1]|0;if((k|0)<0)k=20456;else k=c[(c[h+4>>2]|0)+(k*24|0)>>2]|0;if(p){fq(v,r,0,gh(w,c[o+(r*20|0)+8>>2]|0)|0,75);break}if(u){fq(v,r,0,k,-1);break}else{c[z>>2]=c[h>>2];c[z+4>>2]=k;fq(v,r,0,qh(w,27824,z)|0,75);break}}while(0);r=r+1|0;h=c[f>>2]|0}while((r|0)<(h|0))}k=c[y>>2]|0;c[z+4>>2]=e;c[z>>2]=d;if((h|0)>0){g=f+4|0;h=0;do{fq(k,h,1,uu(z,c[(c[g>>2]|0)+(h*20|0)>>2]|0,0)|0,-1);h=h+1|0}while((h|0)<(c[f>>2]|0))}}i=A;return}function Ks(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();f=o;h=b+8|0;if((c[h>>2]|0)==0?(Ys(a),g=b+60|0,(c[g>>2]|0)!=0):0){l=a+72|0;m=(c[l>>2]|0)+1|0;c[l>>2]=m;c[h>>2]=m;n=Kq(a)|0;do if(Is(c[g>>2]|0,f)|0){f=c[f>>2]|0;sh(n,25,f,m,0)|0;if(!f){sh(n,16,0,d,0)|0;break}if((f|0)>-1?(e=b+24|0,d=e,h=c[d+4>>2]|0,k=((f|0)<0)<<31>>31,h>>>0>k>>>0|((h|0)==(k|0)?(c[d>>2]|0)>>>0>f>>>0:0)):0){d=e;c[d>>2]=f;c[d+4>>2]=k}}else{Nq(a,c[g>>2]|0,m);sh(n,38,m,0,0)|0;sh(n,46,m,d,0)|0}while(0);f=c[b+64>>2]|0;if(f){k=c[l>>2]|0;d=k+1|0;c[b+12>>2]=d;c[l>>2]=k+2;Nq(a,f,d);sh(n,38,d,0,0)|0;f=sh(n,137,d,0,0)|0;sh(n,25,0,d,0)|0;g=n+32|0;e=c[g>>2]|0;if(e>>>0>f>>>0)c[(c[n+4>>2]|0)+(f*20|0)+8>>2]=e;h=n+24|0;c[(c[h>>2]|0)+88>>2]=e+-1;e=k+2|0;sh(n,89,m,d,e)|0;f=sh(n,137,m,0,0)|0;sh(n,25,-1,e,0)|0;e=c[g>>2]|0;if(e>>>0>f>>>0)c[(c[n+4>>2]|0)+(f*20|0)+8>>2]=e;c[(c[h>>2]|0)+88>>2]=e+-1}}i=o;return}function Ls(b,f,g,h,i,j,k,l,m){b=b|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var 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;F=c[b+8>>2]|0;A=a[k>>0]|0;u=A&255;w=k+4|0;D=c[w>>2]|0;if(!j)n=0;else n=d[j+1>>0]|0;if(!i)E=0;else E=(c[i>>2]|0)==0?0:i;z=(E|0)!=0;v=(n|0)!=0;if(!(z|v))et(F,c[f+12>>2]|0,l);B=c[g>>2]|0;q=k+8|0;i=c[q>>2]|0;if(i){p=b+72|0;o=c[p>>2]|0;if((i+B|0)>(o|0)){c[p>>2]=o+B;C=i;x=0}else{C=i;x=0}}else{if(z){o=((a[E+24>>0]&1^1)&255)+(c[c[E>>2]>>2]|0)|0;C=b+72|0;p=o+(c[C>>2]|0)|0;c[C>>2]=p}else{p=c[b+72>>2]|0;o=0}C=p+1|0;c[q>>2]=C;c[b+72>>2]=p+B;x=o}c[k+12>>2]=B;do if((h|0)>-1){if((B|0)>0){p=0;do{sh(F,47,h,p,p+C|0)|0;p=p+1|0}while((p|0)!=(B|0))}}else{if(A<<24>>24==3)break;else if(A<<24>>24==9)o=1;else o=A<<24>>24==13&1;Zs(b,g,C,o)}while(0);if(v){o=d[j+1>>0]|0;if((o|0)==2){o=b+72|0;h=c[o>>2]|0;t=h+1|0;c[o>>2]=h+B;o=j+8|0;vh(F,c[o>>2]|0);o=c[o>>2]|0;if((o|0)<0)o=(c[F+32>>2]|0)+-1|0;if(!(a[(c[F>>2]|0)+65>>0]|0))o=(c[F+4>>2]|0)+(o*20|0)|0;else o=29120;a[o>>0]=28;c[o+4>>2]=1;c[o+8>>2]=t;h=F+32|0;i=(c[h>>2]|0)+B|0;if((B|0)>0){p=g+4|0;o=B+-1|0;q=F+4|0;s=0;do{v=_t(b,c[(c[p>>2]|0)+(s*20|0)>>2]|0)|0;j=s+C|0;n=s+t|0;if((s|0)<(o|0))sh(F,78,j,i,n)|0;else sh(F,79,j,l,n)|0;th(F,-1,v,-4);r=c[q>>2]|0;if(r)a[r+(((c[h>>2]|0)+-1|0)*20|0)+3>>0]=-128;s=s+1|0}while((s|0)!=(B|0))}else o=B+-1|0;sh(F,33,C,t,o)|0}else if((o|0)==1)vh(F,c[j+8>>2]|0);else vu(b,c[j+4>>2]|0,l,B,C);if(!E)et(F,c[f+12>>2]|0,l)}a:do switch(u|0){case 12:case 14:case 6:case 5:{p=x+1|0;o=b+60|0;i=c[o>>2]|0;q=b+56|0;n=c[q>>2]|0;if((n|0)<(p|0)){y=b+72|0;i=c[y>>2]|0;c[y>>2]=i+p;i=i+1|0}else{c[o>>2]=i+p;c[q>>2]=n-p}n=i+x|0;sh(F,49,C,B,n)|0;if(A<<24>>24==6){C=D+1|0;th(F,sh(F,69,C,(c[F+32>>2]|0)+4|0,i)|0,0,-14);sh(F,110,C,i,0)|0}if(z)wu(b,E,f,n,1,x);else{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){C=b+72|0;j=(c[C>>2]|0)+1|0;c[C>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,74,D,j,0)|0;sh(F,75,D,i,j)|0;n=c[F+4>>2]|0;if(n)a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=8;Wr(b,j)}$s(b,i,p);if((c[q>>2]|0)<(p|0)){c[q>>2]=p;c[o>>2]=i;y=94}else y=94;break}case 1:{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){A=b+72|0;j=(c[A>>2]|0)+1|0;c[A>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,49,C,B,j)|0;sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 2:{sh(F,111,D,C,B)|0;y=94;break}case 11:{i=k+1|0;a[i>>0]=xu(c[c[g+4>>2]>>2]|0,a[i>>0]|0)|0;if(z){wu(b,E,f,C,1,x);break a}j=b+19|0;n=a[j>>0]|0;if(!(n<<24>>24)){B=b+72|0;j=(c[B>>2]|0)+1|0;c[B>>2]=j}else{B=n+-1<<24>>24;a[j>>0]=B;j=c[b+((B&255)<<2)+24>>2]|0}th(F,sh(F,49,C,1,j)|0,i,1);$s(b,C,1);sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 3:{sh(F,25,1,D,0)|0;y=94;break}case 10:{if(z)wu(b,E,f,C,1,x);else y=95;break}case 9:case 13:{if(z){wu(b,E,f,C,B,x);break a}if(A<<24>>24==13){sh(F,22,c[w>>2]|0,0,0)|0;y=95;break a}else{sh(F,35,C,B,0)|0;$s(b,C,B);y=94;break a}}case 7:case 8:{r=c[k+16>>2]|0;h=c[r>>2]|0;n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){z=b+72|0;s=(c[z>>2]|0)+1|0;c[z>>2]=s}else{s=j+-1<<24>>24;a[n>>0]=s;s=c[b+((s&255)<<2)+24>>2]|0}t=h+2|0;u=b+60|0;i=c[u>>2]|0;v=b+56|0;n=c[v>>2]|0;if((n|0)<(t|0)){z=b+72|0;i=c[z>>2]|0;c[z>>2]=i+t;i=i+1|0}else{c[u>>2]=i+t;c[v>>2]=n-t}q=i+h|0;o=q+1|0;if(A<<24>>24==8){n=D+1|0;j=sh(F,69,n,0,C)|0;th(F,j,B,-14);sh(F,49,C,B,o)|0;sh(F,110,n,o,0)|0;n=c[F+4>>2]|0;if(!n)p=j;else{a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=16;p=j}}else{sh(F,49,C,B,o)|0;p=0}if((h|0)>0){o=r+4|0;n=C+-1|0;j=0;do{sh(F,34,n+(e[(c[o>>2]|0)+(j*20|0)+16>>1]|0)|0,j+i|0,0)|0;j=j+1|0}while((j|0)!=(h|0))}sh(F,73,D,q,0)|0;sh(F,49,i,t,s)|0;sh(F,110,D,s,0)|0;if(p){n=c[F+32>>2]|0;if(n>>>0>p>>>0)c[(c[F+4>>2]|0)+(p*20|0)+8>>2]=n;c[(c[F+24>>2]|0)+88>>2]=n+-1}Wr(b,s);$s(b,i,t);if((c[v>>2]|0)<(t|0)){c[v>>2]=t;c[u>>2]=i;y=94}else y=94;break}default:y=94}while(0);if((y|0)==94?(E|0)==0:0)y=95;if((y|0)==95?(G=c[f+8>>2]|0,(G|0)!=0):0)sh(F,140,G,m,0)|0;return}function Ms(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;if((a[b+450>>0]|0)==2){k=c[b+8>>2]|0;l=c[b>>2]|0;h=(g|0)!=0?35160:10360;if((d|0)==117)g=35352;else if((d|0)==118)g=35336;else if((d|0)==116)g=35320;else g=35360;c[m>>2]=e;c[m+4>>2]=f;c[m+8>>2]=h;c[m+12>>2]=g;g=qh(l,35120,m)|0;th(k,sh(k,157,c[b+464>>2]|0,0,0)|0,g,-1)}i=n;return}function Ns(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=f+e|0;h=(g*5|0)+24|0;i=mg(h,0)|0;if(!i)a[d+65>>0]=1;else{bw(i|0,0,h|0)|0;c[i+16>>2]=i+20+(g<<2);b[i+6>>1]=e;b[i+8>>1]=f;a[i+4>>0]=a[d+62>>0]|0;c[i+12>>2]=d;c[i>>2]=1}return i|0}function Os(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[b+52>>2]|0;if(!((f|0)!=0?(e=Os(a,f,d)|0,(e|0)!=0):0)){e=c[b>>2]|0;if((c[e>>2]|0)>(d|0))e=_t(a,c[(c[e+4>>2]|0)+(d*20|0)>>2]|0)|0;else e=0}return e|0}function Ps(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=(b|0)==0;f=(d|0)==0;a:do if(!(g&f))if(!(g|f)?(h=c[b>>2]|0,(h|0)==(c[d>>2]|0)):0)if((h|0)>0){b=c[b+4>>2]|0;f=c[d+4>>2]|0;g=0;while(1){if((a[b+(g*20|0)+12>>0]|0)!=(a[f+(g*20|0)+12>>0]|0)){f=1;break a}if(yu(c[b+(g*20|0)>>2]|0,c[f+(g*20|0)>>2]|0,e)|0){f=1;break a}g=g+1|0;if((g|0)>=(h|0)){f=0;break}}}else f=0;else f=1;else f=0;while(0);return f|0}function Qs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[b>>2]|0;l=c[d>>2]|0;k=Ns(g,l-e|0,f+1|0)|0;if((k|0)!=0&(l|0)>(e|0)){h=g+8|0;i=k+16|0;j=e;f=(c[d+4>>2]|0)+(e*20|0)|0;while(1){g=_t(b,c[f>>2]|0)|0;if(!g)g=c[h>>2]|0;d=j-e|0;c[k+(d<<2)+20>>2]=g;a[(c[i>>2]|0)+d>>0]=a[f+12>>0]|0;j=j+1|0;if((j|0)==(l|0))break;else f=f+20|0}}return k|0}function Rs(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,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,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0;Ma=i;i=i+64|0;if((i|0)>=(j|0))ba();Ka=Ma;La=Ma+48|0;Ja=Ma+52|0;Y=Ma+28|0;Ha=f+8|0;eaea)|0;Aa=k+48|0;c[Aa>>2]=Ba;q=k+52|0;c[q>>2]=Ba;Ba=k+34|0;b[Ba>>1]=m;Ca=f+424|0;Da=k+56|0;c[Da>>2]=c[Ca>>2];Ea=k+68|0;c[Y>>2]=k;Fa=k+328|0;X=Y+4|0;c[X>>2]=Fa;S=Y+12|0;c[S>>2]=k+u;c[k+(u+48)>>2]=k+(u+56);b[k+(u+40)>>1]=0;b[k+(u+44)>>1]=3;c[k+(u+36)>>2]=0;c[Ea>>2]=0;c[Fa>>2]=k;c[k+332>>2]=0;va=k+340|0;c[va>>2]=0;c[k+344>>2]=8;wa=k+348|0;c[wa>>2]=k+352;zu(Fa,h,72);y=(U|0)==0;if((c[k+340>>2]|0)>0){x=Ka+20|0;w=Ka+4|0;o=Ka+24|0;h=Fa;p=0;do{if(!y){h=c[(c[h+20>>2]|0)+(p*48|0)>>2]|0;c[Ka+0>>2]=0;c[Ka+4>>2]=0;c[Ka+8>>2]=0;c[Ka+12>>2]=0;c[Ka+16>>2]=0;c[Ka+20>>2]=0;a[x>>0]=2;c[Ka>>2]=78;c[w>>2]=79;c[o>>2]=0;ns(Ka,h)|0;h=c[X>>2]|0;if(a[x>>0]|0)ua=15}else ua=15;if((ua|0)==15){ua=0;ct(f,c[(c[h+20>>2]|0)+(p*48|0)>>2]|0,c[q>>2]|0,16);h=c[X>>2]|0;aa=(c[h+20>>2]|0)+(p*48|0)+20|0;b[aa>>1]=e[aa>>1]|4}p=p+1|0}while((p|0)<(c[h+12>>2]|0))}if(y){if(P)a[k+36>>0]=c[P>>2];if(I&1024)a[k+40>>0]=1}if((c[g>>2]|0)>0){u=0;do{O=c[g+(u*72|0)+48>>2]|0;aa=c[Ea>>2]|0;c[Ea>>2]=aa+1;c[Ea+(aa<<2)+4>>2]=O;u=u+1|0}while((u|0)<(c[g>>2]|0))}r=c[va>>2]|0;if((r|0)>0)do{r=r+-1|0;Au(Fa,r)}while((r|0)>0);b:do if(!(a[xa>>0]|0)){aa=(I&1024|0)==0;c:do if(!aa){d:do if((c[g>>2]|0)==1){H=c[g+48>>2]|0;p=c[g+24>>2]|0;x=c[l>>2]|0;e:do if((x|0)>0){w=c[l+4>>2]|0;o=0;while(1){h=c[w+(o*20|0)>>2]|0;f:do if(!h)h=0;else while(1){y=c[h+4>>2]|0;if(!(y&4096))break f;if(!(y&262144))h=h+12|0;else h=c[(c[h+20>>2]|0)+4>>2]|0;h=c[h>>2]|0;if(!h){h=0;break}}while(0);do if((a[h>>0]|0)==-102){if((c[h+28>>2]|0)!=(H|0))break;if((b[h+32>>1]|0)<0)break e}while(0);o=o+1|0;if((o|0)>=(x|0)){ua=41;break}}}else ua=41;while(0);g:do if((ua|0)==41){h=c[p+8>>2]|0;if(!h)break d;q=l+4|0;p=p+4|0;while(1){if(a[h+50>>0]|0){D=h+46|0;h:do if(!(b[D>>1]|0))y=0;else{F=h+4|0;E=h+32|0;y=0;do{B=b[(c[F>>2]|0)+(y<<1)>>1]|0;if(!(Bu(Fa,H,B,-1,-1,2,h)|0)){o=c[(c[E>>2]|0)+(y<<2)>>2]|0;if((c[l>>2]|0)>0)x=0;else break h;i:while(1){z=c[(c[q>>2]|0)+(x*20|0)>>2]|0;j:do if(!z)w=0;else{w=z;while(1){A=c[w+4>>2]|0;if(!(A&4096))break j;if(!(A&262144))w=w+12|0;else w=c[(c[w+20>>2]|0)+4>>2]|0;w=c[w>>2]|0;if(!w){w=0;break}}}while(0);do if((a[w>>0]|0)==-102){if((b[w+32>>1]|0)!=(b[(c[F>>2]|0)+(y<<1)>>1]|0))break;if((c[w+28>>2]|0)!=(H|0))break;w=_t(f,z)|0;if(!w)break;if(!($c(c[w>>2]|0,o)|0))break i}while(0);x=x+1|0;if((x|0)>=(c[l>>2]|0))break h}if((x|0)<0)break h;if(!(a[(c[p>>2]|0)+(B*24|0)+20>>0]|0))break h}y=y+1|0}while((y|0)<(e[D>>1]|0))}while(0);if((y|0)==(e[D>>1]|0))break g}h=c[h+20>>2]|0;if(!h)break d}}while(0);a[k+40>>0]=1;break c}while(0);if(!P){b[Ba>>1]=e[Ba>>1]|512;c[$>>2]=l}}while(0);k:do if((((U|0)==1?(W=c[Y>>2]|0,V=W+34|0,(b[V>>1]&32)==0):0)?(R=c[W+4>>2]|0,N=c[R+24>>2]|0,(a[N+44>>0]&16)==0):0)?(c[R+72>>2]|0)==0:0){P=c[R+48>>2]|0;z=W+328|0;O=c[S>>2]|0;H=O+36|0;c[H>>2]=0;b[O+42>>1]=0;v=Bu(z,P,-1,0,0,2,0)|0;l:do if(!v){x=c[N+8>>2]|0;m:do if(x){A=O+48|0;n:while(1){do if(a[x+50>>0]|0){if(c[x+36>>2]|0)break;w=x+46|0;h=b[w>>1]|0;if((h&65535)>3)break;q=x+4|0;o:do if(!(h<<16>>16)){h=0;y=0}else{y=0;while(1){h=Bu(z,P,b[(c[q>>2]|0)+(y<<1)>>1]|0,0,0,2,x)|0;if(!h)break;c[(c[A>>2]|0)+(y<<2)>>2]=h;y=y+1|0;h=b[w>>1]|0;if((y|0)>=(h&65535|0))break o}h=b[w>>1]|0}while(0);if((y|0)==(h&65535|0)){A=y;break n}}while(0);x=c[x+20>>2]|0;if(!x)break m}c[H>>2]=4609;if(!(a[x+51>>0]&32)){p=R+64|0;o=c[p>>2]|0;p=c[p+4>>2]|0;w=0;v=0;h=e[x+48>>1]|0;p:while(1){y=h;while(1){h=y+-1|0;if((y|0)<=0)break p;y=b[(c[q>>2]|0)+(h<<1)>>1]|0;if((y&65535)<63)break;else y=h}Y=ew(1,0,y<<16>>16|0)|0;w=Y|w;v=C|v}if((o&~w|0)==0&(p&~v|0)==0)ua=91}else ua=91;if((ua|0)==91)c[H>>2]=4673;Y=A&65535;b[O+40>>1]=Y;b[O+24>>1]=Y;c[O+28>>2]=x;b[O+20>>1]=39;break l}while(0);if(!(c[H>>2]|0)){ua=103;break k}}else{c[H>>2]=4353;c[c[O+48>>2]>>2]=v;b[O+40>>1]=1;b[O+24>>1]=1;b[O+20>>1]=33}while(0);b[O+22>>1]=1;c[W+800>>2]=O;q=c[W+68>>2]|0;q:do if((q|0)>0){r=0;while(1){if((c[W+(r<<2)+72>>2]|0)==(P|0))break;r=r+1|0;if((r|0)>=(q|0)){r=0;q=0;break q}}r=ew(1,0,r|0)|0;q=C}else{r=0;q=0}while(0);p=O+8|0;c[p>>2]=r;c[p+4>>2]=q;c[W+740>>2]=P;b[W+32>>1]=1;p=c[W+8>>2]|0;if(p)a[W+36>>0]=c[p>>2];if(!(b[V>>1]&1024)){ua=120;break}a[W+40>>0]=1;ua=120}else ua=103;while(0);if((ua|0)==103){D=c[Y>>2]|0;h=c[D+4>>2]|0;E=c[c[D>>2]>>2]|0;W=a[D+41>>0]|0;F=W&255;w=c[S>>2]|0;c[w+48>>2]=w+56;b[w+40>>1]=0;b[w+44>>1]=3;c[w+36>>2]=0;o=E+65|0;r:do if(W<<24>>24){p=w+16|0;q=D+68|0;r=w+8|0;s=0;t=0;u=0;v=0;B=0;A=h+8|0;z=0;while(1){a[p>>0]=B;y=c[A+40>>2]|0;x=c[q>>2]|0;s:do if((x|0)>0){h=0;while(1){if((c[D+(h<<2)+72>>2]|0)==(y|0))break;h=h+1|0;if((h|0)>=(x|0)){h=0;y=0;break s}}h=ew(1,0,h|0)|0;y=C}else{h=0;y=0}while(0);W=r;c[W>>2]=h;c[W+4>>2]=y;W=z;z=a[A+36>>0]|0;W=((z|W)&10)==0;t=W?t:s;v=W?v:u;if(!(a[(c[A+16>>2]|0)+44>>0]&16))h=Du(Y,t,v)|0;else h=Cu(Y,t,v)|0;if(h)break;W=Eu(Y,t,v)|0;h=r;if(W)break;if(a[o>>0]|0)break r;B=B+1|0;if((B|0)>=(F|0))break r;else{s=c[h>>2]|s;u=c[h+4>>2]|u;A=A+72|0}}Fu(E,w);break b}while(0);Fu(E,w);Gu(k,0);if(a[xa>>0]|0)break;if(c[$>>2]|0){Gu(k,(e[k+32>>1]|0)+1&65535);if(!(a[xa>>0]|0))ua=120;else break}else ua=121}if((ua|0)==120?(c[$>>2]|0)==0:0)ua=121;if((ua|0)==121?(c[Ia+24>>2]&131072|0)!=0:0){$=k+24|0;c[$>>2]=-1;c[$+4>>2]=-1}if((c[f+64>>2]|0)==0?(a[xa>>0]|0)==0:0){u=a[ya>>0]|0;t:do if((u&255)>1&(l|0)!=0?(b[_>>1]&1024)==0:0){p=Hu(Ea,l)|0;q=C;o=c[Z>>2]|0;if(o){$=Hu(Ea,o)|0;p=$|p;q=C|q}y=k+736|0;h=c[za>>2]|0;x=c[X>>2]|0;w=x+20|0;x=x+12|0;v=u;o=U;do{r=c[y+(((v&255)+-1|0)*80|0)+64>>2]|0;if(!(a[h+((d[r+16>>0]|0)*72|0)+44>>0]&8))break t;if(aa?(c[r+36>>2]&4096|0)==0:0)break t;t=r+8|0;s=c[t>>2]|0;t=c[t+4>>2]|0;if(!((s&p|0)==0&(t&q|0)==0))break t;r=c[w>>2]|0;$=c[x>>2]|0;u=r+($*48|0)|0;if(($|0)>0)do{$=r+40|0;if(!((s&c[$>>2]|0)==0?(t&c[$+4>>2]|0)==0:0)?(c[(c[r>>2]|0)+4>>2]&1|0)==0:0)break t;r=r+48|0}while(r>>>0<u>>>0);v=v+-1<<24>>24;a[ya>>0]=v;o=o+-1|0}while((v&255)>1)}else o=U;while(0);aa=(c[k>>2]|0)+424|0;c[aa>>2]=(c[aa>>2]|0)+(b[k+32>>1]|0);do if((I&4|0)!=0?(T=(c[k+800>>2]|0)+36|0,Q=c[T>>2]|0,(Q&4096|0)!=0):0){a[k+38>>0]=1;if(a[(c[g+24>>2]|0)+44>>0]&32)break;c[T>>2]=Q&-65}while(0);ta=k+736|0;P=(o|0)>0;if(P){M=I&16;N=k+38|0;O=ea+32|0;J=L^1;L=(n|0)==0|J;K=f+68|0;H=54-(I>>>12&1)|0;G=ea+4|0;B=Ia+20|0;z=Ia+16|0;s=0;I=ta;while(1){A=d[I+44>>0]|0;D=g+(A*72|0)+24|0;q=c[D>>2]|0;h=c[q+68>>2]|0;u:do if(!h)w=-1e6;else{y=c[B>>2]|0;if((y|0)<=0){w=0;break}x=c[z>>2]|0;p=0;while(1){w=p+1|0;if((c[x+(p<<4)+12>>2]|0)==(h|0)){w=p;break u}if((w|0)<(y|0))p=w;else break}}while(0);F=c[I+64>>2]|0;E=q+44|0;h=d[E>>0]|0;do if(!(h&2)){if(c[q+12>>2]|0)break;y=c[F+36>>2]|0;if(y&1024){v=c[q+60>>2]|0;v:do if(!v)v=0;else while(1){if((c[v>>2]|0)==(Ia|0))break v;v=c[v+24>>2]|0;if(!v){v=0;break}}while(0);th(ea,sh(ea,149,c[g+(A*72|0)+48>>2]|0,0,0)|0,v,-10);break}if(h&16)break;if(y&64|M){cs(f,w,c[q+32>>2]|0,0,c[q>>2]|0);break}x=g+(A*72|0)+48|0;if(!(a[N>>0]|0))h=54;else{c[ca>>2]=c[x>>2];h=55}Mq(f,c[x>>2]|0,w,q,h);if(a[N>>0]|0)break;if((b[q+38>>1]|0)>=64)break;if(a[E>>0]&32)break;x=g+(A*72|0)+64|0;v=c[x>>2]|0;x=c[x+4>>2]|0;if((v|0)==0&(x|0)==0)u=0;else{u=0;do{v=iw(v|0,x|0,1)|0;x=C;u=u+1|0}while(!((v|0)==0&(x|0)==0))}th(ea,(c[O>>2]|0)+-1|0,u,-14)}while(0);y=F+36|0;w:do if(c[y>>2]&512){h=c[F+28>>2]|0;do if(a[E>>0]&32){if((a[h+51>>0]&3)!=2|J)break;c[I+8>>2]=c[I+4>>2];break w}while(0);do if(!(a[N>>0]|0)){if(!L){u=n;t=H;break}u=c[K>>2]|0;c[K>>2]=u+1;t=54}else{t=c[(c[D>>2]|0)+8>>2]|0;if((t|0)==0|(t|0)==(h|0))u=n;else{u=n;do{u=u+1|0;t=c[t+20>>2]|0}while(!((t|0)==0|(t|0)==(h|0)))}c[da>>2]=u;t=55}while(0);c[I+8>>2]=u;sh(ea,t,u,c[h+40>>2]|0,w)|0;aa=c[Ha>>2]|0;th(aa,-1,ds(f,h)|0,-6);aa=c[y>>2]|0;if(!((aa&15|0)!=0&(aa&32770|0)==0))break;if(b[Ba>>1]&1)break;r=c[G>>2]|0;if(!r)break;a[r+(((c[O>>2]|0)+-1|0)*20|0)+3>>0]=2}while(0);if((w|0)>-1)wr(f,w);s=s+1|0;if((s|0)==(o|0))break;else I=I+80|0}da=(a[xa>>0]|0)==0;c[k+44>>2]=c[O>>2];if(!da)break}else{O=ea+32|0;c[k+44>>2]=c[O>>2]}if(!P)break a;ha=k+24|0;ia=k+36|0;ja=k+39|0;ka=f+80|0;la=f+68|0;ma=f+100|0;na=f+19|0;oa=f+72|0;pa=Ka+20|0;qa=Ka+4|0;ra=Ka+24|0;q=-1;p=-1;sa=0;while(1){V=ta+(sa*80|0)|0;h=ta+(sa*80|0)+64|0;X=ta+(sa*80|0)+44|0;if(c[(c[h>>2]|0)+36>>2]&16384){H=d[X>>0]|0;R=g+(H*72|0)+8|0;W=c[Ha>>2]|0;v=Kq(f)|0;Y=c[ka>>2]|0;c[ka>>2]=Y+1;Y=sh(v,44,Y,0,0)|0;v=c[g+(H*72|0)+24>>2]|0;da=c[va>>2]|0;y=c[wa>>2]|0;Q=y+(da*48|0)|0;J=c[h>>2]|0;x:do if((da|0)>0){w=g+(H*72|0)+48|0;s=v+4|0;t=J+48|0;D=0;z=0;x=0;r=0;B=0;while(1){A=c[y>>2]|0;da=J;do if((c[da>>2]|0)==0&(c[da+4>>2]|0)==0){if(b[y+20>>1]&2)break;if(c[A+4>>2]&1)break;da=c[w>>2]|0;c[Ka+0>>2]=0;c[Ka+4>>2]=0;c[Ka+8>>2]=0;c[Ka+12>>2]=0;c[Ka+16>>2]=0;c[Ka+20>>2]=0;a[pa>>0]=3;c[Ka>>2]=78;c[qa>>2]=79;c[ra>>2]=da;ns(Ka,A)|0;if(!(a[pa>>0]|0))break;da=c[f>>2]|0;r=os(da,r,Ir(da,A,0,0)|0)|0}while(0);do if(!(Iu(y,R,q,p)|0)){F=D;A=z;h=x}else{A=c[y+12>>2]|0;if((A|0)>63){F=0;E=-2147483648}else{F=ew(1,0,A|0)|0;E=C}if(!(B<<24>>24)){B=c[(c[s>>2]|0)+(A*24|0)>>2]|0;c[Ka>>2]=c[v>>2];c[Ka+4>>2]=B;Zc(284,33960,Ka);B=1}if(!((F&D|0)==0&(E&z|0)==0)){F=D;A=z;h=x;break}h=x+1|0;if(Ju(c[f>>2]|0,J,h)|0)break x;c[(c[t>>2]|0)+(x<<2)>>2]=y;F=F|D;A=E|z}while(0);y=y+48|0;if(y>>>0>=Q>>>0){y=F;ua=207;break}else{D=F;z=A;x=h}}}else{A=0;y=0;h=0;r=0;ua=207}while(0);do if((ua|0)==207){ua=0;s=h&65535;b[J+40>>1]=s;b[J+24>>1]=s;s=J+36|0;c[s>>2]=16961;I=g+(H*72|0)+64|0;K=I;E=c[K+4>>2]|0;K=c[K>>2]&~y;M=E&((A|-2147483648)^2147483647);u=v+38|0;N=b[u>>1]|0;F=N<<16>>16;N=N<<16>>16>63?63:F;P=(N|0)>0;if(P){A=0;do{da=ew(1,0,A|0)|0;h=(((da&K|0)!=0|(C&M|0)!=0)&1)+h|0;A=A+1|0}while((A|0)!=(N|0))}if((E|0)<0)h=h+-63+F|0;L=h+1|0;G=qs(c[f>>2]|0,L&65535,0,La)|0;if(!G)break;c[J+28>>2]=G;c[G>>2]=33992;c[G+12>>2]=v;A=c[wa>>2]|0;if(A>>>0<Q>>>0){h=G+4|0;y=G+32|0;E=0;F=0;x=0;do{do if(Iu(A,R,q,p)|0){D=c[A+12>>2]|0;if((D|0)>63){B=0;z=-2147483648}else{B=ew(1,0,D|0)|0;z=C}if(!((B&E|0)==0&(z&F|0)==0))break;da=c[A>>2]|0;b[(c[h>>2]|0)+(x<<1)>>1]=D;D=Ku(f,c[da+12>>2]|0,c[da+16>>2]|0)|0;if(!D)D=11152;else D=c[D>>2]|0;c[(c[y>>2]|0)+(x<<2)>>2]=D;E=B|E;F=z|F;x=x+1|0}while(0);A=A+48|0}while(A>>>0<Q>>>0)}else x=0;if(P){A=G+4|0;z=G+32|0;h=0;do{da=ew(1,0,h|0)|0;if(!((da&K|0)==0&(C&M|0)==0)){b[(c[A>>2]|0)+(x<<1)>>1]=h;c[(c[z>>2]|0)+(x<<2)>>2]=11152;x=x+1|0}h=h+1|0}while((h|0)!=(N|0))}do if((c[I+4>>2]|0)<0){if((b[u>>1]|0)<=63)break;h=G+4|0;y=G+32|0;w=63;do{b[(c[h>>2]|0)+(x<<1)>>1]=w;c[(c[y>>2]|0)+(x<<2)>>2]=11152;x=x+1|0;w=w+1|0}while((w|0)<(b[u>>1]|0))}while(0);b[(c[G+4>>2]|0)+(x<<1)>>1]=-1;c[(c[G+32>>2]|0)+(x<<2)>>2]=11152;A=c[la>>2]|0;c[la>>2]=A+1;y=ta+(sa*80|0)+8|0;c[y>>2]=A;sh(W,56,A,L,0)|0;A=c[Ha>>2]|0;th(A,-1,ds(f,G)|0,-6);c[ma>>2]=(c[ma>>2]|0)+1;A=ta+(sa*80|0)+4|0;t=sh(W,108,c[A>>2]|0,0,0)|0;x=(r|0)!=0;if(x){w=ts(W)|0;ct(f,r,w,16);c[s>>2]=c[s>>2]|131072}else w=0;h=a[na>>0]|0;if(!(h<<24>>24)){s=(c[oa>>2]|0)+1|0;c[oa>>2]=s}else{s=h+-1<<24>>24;a[na>>0]=s;s=c[f+((s&255)<<2)+24>>2]|0}Lt(f,G,c[A>>2]|0,s,0,0,0,0)|0;sh(W,110,c[y>>2]|0,s,0)|0;z=W+4|0;h=c[z>>2]|0;if(h)a[h+(((c[W+32>>2]|0)+-1|0)*20|0)+3>>0]=16;if(x){y=c[W+24>>2]|0;x=~w;do if((w|0)<0){h=c[y+112>>2]|0;if(!h)break;c[h+(x<<2)>>2]=c[W+32>>2]}while(0);c[y+88>>2]=(c[W+32>>2]|0)+-1}sh(W,9,c[A>>2]|0,t+1|0,0)|0;h=c[z>>2]|0;y=c[W+32>>2]|0;if(h)a[h+((y+-1|0)*20|0)+3>>0]=3;if(y>>>0>t>>>0)c[h+(t*20|0)+8>>2]=y;h=W+24|0;c[(c[h>>2]|0)+88>>2]=y+-1;Wr(f,s);Zt(f);u=c[W+32>>2]|0;if(u>>>0>Y>>>0)c[(c[z>>2]|0)+(Y*20|0)+8>>2]=u;c[(c[h>>2]|0)+88>>2]=u+-1}while(0);Ck(c[f>>2]|0,r);if(a[xa>>0]|0)break b}Lu(f,g,V,sa,d[X>>0]|0,m);c[ta+(sa*80|0)+32>>2]=c[O>>2];ga=c[k>>2]|0;L=ga+8|0;ca=c[L>>2]|0;ea=c[ga>>2]|0;r=k+(sa*80|0)+736|0;K=c[k+(sa*80|0)+800>>2]|0;$=k+(sa*80|0)+780|0;H=d[$>>0]|0;F=c[za>>2]|0;N=F+(H*72|0)+8|0;n=c[F+(H*72|0)+48>>2]|0;y=c[Ea>>2]|0;y:do if((y|0)>0){h=0;while(1){if((c[Ea+(h<<2)+4>>2]|0)==(n|0))break;h=h+1|0;if((h|0)>=(y|0)){h=-1;y=-1;break y}}h=ew(1,0,h|0)|0;h=~h;y=~C}else{h=-1;y=-1}while(0);fa=k+(sa*80|0)+808|0;M=fa;c[M>>2]=h&q;c[M+4>>2]=y&p;M=ha;M=iw(c[M>>2]|0,c[M+4>>2]|0,sa|0)|0;_=M&1;T=K+36|0;if(!(c[T>>2]&64))v=0;else v=(b[Ba>>1]&32)==0;G=ts(ca)|0;P=k+(sa*80|0)+752|0;c[P>>2]=G;aa=k+(sa*80|0)+748|0;c[aa>>2]=G;da=ts(ca)|0;c[k+(sa*80|0)+760>>2]=da;do if(a[$>>0]|0){if(!(a[F+(H*72|0)+44>>0]&8))break;Z=ga+72|0;l=(c[Z>>2]|0)+1|0;c[Z>>2]=l;c[r>>2]=l;sh(ca,25,0,l,0)|0}while(0);A=a[F+(H*72|0)+45>>0]|0;z:do if(!(A&4)){D=c[T>>2]|0;if(D&1024){s=b[K+40>>1]|0;t=s&65535;v=ga+100|0;c[v>>2]=(c[v>>2]|0)+1;v=t+2|0;G=ga+60|0;h=c[G>>2]|0;H=ga+56|0;y=c[H>>2]|0;if((y|0)<(v|0)){$=ga+72|0;u=c[$>>2]|0;c[$>>2]=u+v;u=u+1|0}else{c[G>>2]=h+v;c[H>>2]=y-v;u=h}h=c[aa>>2]|0;B=s<<16>>16==0;if(!B){E=u+2|0;D=K+48|0;F=0;do{A=E+F|0;z=c[(c[D>>2]|0)+(F<<2)>>2]|0;do if(z)if(!(b[z+18>>1]&1)){Nq(ga,c[(c[z>>2]|0)+16>>2]|0,A);break}else{Mu(ga,z,r,F,_,A)|0;h=c[P>>2]|0;break}while(0);F=F+1|0}while((F|0)<(t|0))}sh(ca,25,c[K+24>>2]|0,u,0)|0;sh(ca,25,t,u+1|0,0)|0;_=c[K+32>>2]|0;aa=K+28|0;$=(a[aa>>0]|0)!=0?-11:-2;th(ca,sh(ca,14,n,h,u)|0,_,$);a[aa>>0]=0;if(!B){w=K+30|0;x=K+48|0;h=(s&65535)>1?0-t|0:-1;h=h>>>0>4294967280?0-h|0:16;y=0;do{if(e[w>>1]&1<<y)Nu(r,c[(c[x>>2]|0)+(y<<2)>>2]|0);y=y+1|0}while((y|0)!=(h|0))}a[k+(sa*80|0)+781>>0]=-105;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=c[ca+32>>2];$s(ga,u,v);if((c[H>>2]|0)<(v|0)){c[H>>2]=v;c[G>>2]=u}Zt(ga);ua=459;break}if(!((D&256|0)==0|(D&5|0)==0)){v=c[c[K+48>>2]>>2]|0;aa=ga+72|0;x=(c[aa>>2]|0)+1|0;c[aa>>2]=x;v=Mu(ga,v,r,0,_,x)|0;if((v|0)!=(x|0))Wr(ga,x);ua=c[P>>2]|0;sh(ca,38,v,ua,0)|0;sh(ca,70,n,ua,v)|0;$s(ga,v,1);Ou(ga,n,-1,v);a[k+(sa*80|0)+781>>0]=-100;ua=459;break}if((D&258|0)==258){if(!(D&32)){h=0;x=0}else{h=1;x=c[c[K+48>>2]>>2]|0}if(!(D&16))h=0;else h=c[(c[K+48>>2]|0)+(h<<2)>>2]|0;y=(_|0)!=0;w=y?x:h;h=y?h:x;if(!h)sh(ca,y?105:108,n,G,0)|0;else{$=c[h>>2]|0;aa=Xt(ga,c[$+16>>2]|0,Ka)|0;sh(ca,d[33536+((d[$>>0]|0)+-80)>>0]|0,n,G,aa)|0;$s(ga,aa,1);Wr(ga,c[Ka>>2]|0);Nu(r,h)}if(!w){h=0;y=156}else{aa=c[w>>2]|0;$=ga+72|0;h=(c[$>>2]|0)+1|0;c[$>>2]=h;Nq(ga,c[aa+16>>2]|0,h);aa=a[aa>>0]|0;if(aa<<24>>24==80|aa<<24>>24==82)y=_<<1^83;else y=_<<1|80;Nu(r,w)}x=ca+32|0;aa=c[x>>2]|0;a[k+(sa*80|0)+781>>0]=_^9;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=aa;if((y|0)==156){ua=459;break}aa=ga+72|0;u=(c[aa>>2]|0)+1|0;c[aa>>2]=u;sh(ca,103,n,u,0)|0;Ou(ga,n,-1,u);sh(ca,y,h,G,u)|0;u=c[ca+4>>2]|0;if(!u){ua=459;break}a[u+(((c[x>>2]|0)+-1|0)*20|0)+3>>0]=83;ua=459;break}if(D&512){L=b[K+24>>1]|0;a[Ja>>0]=0;S=c[K+28>>2]|0;U=c[k+(sa*80|0)+744>>2]|0;do if(!(b[Ba>>1]&1)){E=0;A=0}else{if((a[ia>>0]|0)<=0){E=0;A=0;break}A=(e[S+46>>1]|0)>(L&65535);E=A&1;A=A&1}while(0);h=L&65535;if(!(D&32)){F=h;H=0}else{F=h+1|0;A=1;H=c[(c[K+48>>2]|0)+(h<<2)>>2]|0}do if(!(D&16))z=0;else{z=c[(c[K+48>>2]|0)+(F<<2)>>2]|0;if(b[z+20>>1]&256){$=ga+72|0;aa=(c[$>>2]|0)+1|0;c[$>>2]=aa;c[k+(sa*80|0)+772>>2]=aa;sh(ca,25,(a[(c[S+28>>2]|0)+h>>0]|0)==1^_,aa,0)|0;c[k+(sa*80|0)+776>>2]=c[ca+32>>2]}if(H){A=1;break}A=b[(c[S+4>>2]|0)+(h<<1)>>1]|0;if(A<<16>>16<=-1){A=1;break}E=(a[(c[(c[S+12>>2]|0)+4>>2]|0)+((A<<16>>16)*24|0)+20>>0]|0)==0?1:E;A=1}while(0);J=Pu(ga,r,_,A,La)|0;I=c[La>>2]|0;G=(I|0)==0;if(!G)a[Ja>>0]=a[I+h>>0]|0;K=c[P>>2]|0;B=b[S+46>>1]|0;if((L&65535)<(B&65535)?!((a[(c[S+28>>2]|0)+h>>0]|0)==0^((M&1|0)!=0|0!=0)):0)ua=318;else if((_|0)!=0?B<<16>>16==L<<16>>16:0)ua=318;else{N=E;E=0;M=z;P=H}if((ua|0)==318){N=0;M=H;P=z}z=(P|0)!=0;if(z)B=(b[P+18>>1]&40)!=0;else B=1;D=B&1;H=(M|0)!=0;if(H)F=(b[M+18>>1]&40)!=0;else F=1;A=F&1;F=(z|L<<16>>16!=0)&1;do if(z){y=c[(c[P>>2]|0)+16>>2]|0;z=J+h|0;Nq(ga,y,z);if(b[P+20>>1]&256){if(!(a[(c[ca>>2]|0)+65>>0]|0))B=(c[ca+4>>2]|0)+(((c[ca+32>>2]|0)+-1|0)*20|0)|0;else B=29120;c[B+12>>2]=c[k+(sa*80|0)+772>>2];a[B+3>>0]=1}if(Qu(y)|0)sh(ca,76,z,K,0)|0;do if(!G){B=I+h|0;if((xu(y,a[B>>0]|0)|0)<<24>>24==65){a[B>>0]=65;z=65}else z=a[B>>0]|0;if(!(Ru(y,z)|0))break;a[B>>0]=65}while(0);B=h+1|0}else{if(!(N<<24>>24)){B=h;break}sh(ca,28,0,J+h|0,0)|0;B=h+1|0;D=0;F=1}while(0);Su(ga,J,B-(N&255)|0,I);th(ca,sh(ca,d[33544+(F<<2|_|D<<1)>>0]|0,U,K,J)|0,B,-14);do if(H){y=c[(c[M>>2]|0)+16>>2]|0;x=J+h|0;$s(ga,x,1);Nq(ga,y,x);if(b[M+20>>1]&256){if(!(a[(c[ca>>2]|0)+65>>0]|0))z=(c[ca+4>>2]|0)+(((c[ca+32>>2]|0)+-1|0)*20|0)|0;else z=29120;c[z+12>>2]=c[k+(sa*80|0)+772>>2];a[z+3>>0]=1}if(Qu(y)|0)sh(ca,76,x,K,0)|0;do if((xu(y,a[Ja>>0]|0)|0)<<24>>24!=65){if(Ru(y,a[Ja>>0]|0)|0)break;Su(ga,x,1,Ja)}while(0);h=h+1|0}else{if(!(E<<24>>24))break;sh(ca,28,0,J+h|0,0)|0;A=0;h=h+1|0}while(0);ig(eaea,(D*72|0)+80|0,0)|0;if(!B)break z;A=F&255;c[B+4>>2]=A;c[B>>2]=A;A=B+8|0;H=A+0|0;z=N+0|0;h=H+72|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));E=c[za>>2]|0;if((F|0)<2){V=B;break}else F=1;while(1){H=A+(F*72|0)+0|0;z=E+((d[k+((F+sa|0)*80|0)+780>>0]|0)*72|0)+8|0;h=H+72|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));if((F|0)<(D|0))F=F+1|0;else{V=B;break}}}else V=c[za>>2]|0;while(0);if(!(b[Ba>>1]&8)){if(!(a[W+44>>0]&32)){A=(c[X>>2]|0)+1|0;c[X>>2]=A;sh(ca,28,0,A,0)|0}else{A=c[W+8>>2]|0;C:do if(!A)A=0;else while(1){if((a[A+51>>0]&3)==2)break C;A=c[A+20>>2]|0;if(!A){A=0;break}}while(0);U=c[G>>2]|0;c[G>>2]=U+1;sh(ca,57,U,e[A+46>>1]|0,0)|0;T=c[L>>2]|0;th(T,-1,ds(ga,A)|0,-6);A=U}T=(c[X>>2]|0)+1|0;c[X>>2]=T}else{T=0;A=0}U=sh(ca,25,0,Y,0)|0;z=c[va>>2]|0;do if((z|0)>1){B=0;F=0;do{E=c[wa>>2]|0;S=E+(B*48|0)|0;D=c[S>>2]|0;do if((S|0)!=(l|0)){if(c[D+4>>2]&1)break;if(b[E+(B*48|0)+20>>1]&2)break;if(!(b[E+(B*48|0)+18>>1]&4095))break;F=os(ea,F,Ir(ea,D,0,0)|0)|0;z=c[va>>2]|0}while(0);B=B+1|0}while((B|0)<(z|0));z=F;if(!z){S=0;break}S=Vq(ga,72,0,z,0)|0}else S=0;while(0);R=P+12|0;do if((c[R>>2]|0)>0){u=P+20|0;t=(S|0)==0;s=W+44|0;w=ca+32|0;x=ca+4|0;z=ca+24|0;B=W+8|0;D=ga+60|0;E=ga+56|0;F=S+12|0;Q=0;y=0;h=0;v=240;while(1){H=c[u>>2]|0;if((c[H+(Q*48|0)+8>>2]|0)!=(n|0)?(b[H+(Q*48|0)+18>>1]&512)==0:0)H=v;else ua=407;do if((ua|0)==407){ua=0;H=c[H+(Q*48|0)>>2]|0;do if(!t){if(c[H+4>>2]&1)break;c[F>>2]=H;H=S}while(0);I=Rs(ga,V,H,0,0,v,Z)|0;if(!I){H=v;break}Lu(ga,V,I+736|0,sa,d[$>>0]|0,0);do if(!(b[Ba>>1]&8)){L=(Q|0)==((c[R>>2]|0)+-1|0)?-1:Q;do if(!(a[s>>0]&32)){G=sh(ca,130,A,0,_s(ga,W,-1,n,T,0)|0)|0;th(ca,G,L,-14)}else{H=c[B>>2]|0;D:do if(!H)H=0;else while(1){if((a[H+51>>0]&3)==2)break D;H=c[H+20>>2]|0;if(!H){H=0;break}}while(0);M=b[H+46>>1]|0;J=M&65535;P=c[D>>2]|0;N=c[E>>2]|0;if((N|0)<(J|0)){K=c[X>>2]|0;c[X>>2]=K+J;K=K+1|0}else{c[D>>2]=P+J;c[E>>2]=N-J;K=P}if(M<<16>>16){N=H+4|0;P=0;do{_s(ga,W,b[(c[N>>2]|0)+(P<<1)>>1]|0,n,P+K|0,0)|0;P=P+1|0}while((P|0)<(J|0))}P=(L|0)!=0;if(P){G=sh(ca,69,A,0,K)|0;th(ca,G,J,-14);if((L|0)>-1)ua=426}else{G=0;ua=426}do if((ua|0)==426){ua=0;sh(ca,49,K,J,T)|0;sh(ca,110,A,T,0)|0;if(!P)break;L=c[x>>2]|0;if(!L)break;a[L+(((c[w>>2]|0)+-1|0)*20|0)+3>>0]=16}while(0);$s(ga,K,J);if((c[E>>2]|0)>=(J|0))break;c[E>>2]=J;c[D>>2]=K}while(0);sh(ca,17,Y,_,0)|0;if(!G)break;H=c[w>>2]|0;if(H>>>0>G>>>0)c[(c[x>>2]|0)+(G*20|0)+8>>2]=H;c[(c[z>>2]|0)+88>>2]=H+-1}else sh(ca,17,Y,_,0)|0;while(0);h=(a[I+39>>0]|0)==0?h:1;H=c[I+800>>2]|0;do if(!(c[H+36>>2]&512)){y=0;H=v}else{if((Q|0)!=0?(c[H+28>>2]|0)!=(y|0):0){y=0;H=v;break}y=c[H+28>>2]|0;if((a[s>>0]&32)!=0?(a[y+51>>0]&3)==2:0){y=0;H=v;break}H=(v&65535|4096)&65535}while(0);Ts(I)}while(0);Q=Q+1|0;if((Q|0)>=(c[R>>2]|0))break;else v=H}c[k+(sa*80|0)+792>>2]=y;if(!y){s=h;break}c[k+(sa*80|0)+744>>2]=Z;s=h}else{c[k+(sa*80|0)+792>>2]=0;s=0}while(0);if(S){c[S+12>>2]=0;Ck(ea,S)}w=ca+32|0;h=c[w>>2]|0;if(h>>>0>U>>>0)c[(c[ca+4>>2]|0)+(U*20|0)+4>>2]=h;sh(ca,16,0,c[aa>>2]|0,0)|0;y=c[ca+24>>2]|0;x=~_;do if((_|0)<0){h=c[y+112>>2]|0;if(!h)break;c[h+(x<<2)>>2]=c[w>>2]}while(0);c[y+88>>2]=(c[w>>2]|0)+-1;if((d[ya>>0]|0)>1)ig(ea,V);if(s){ua=459;break}Nu(r,l);ua=459}else{ua=c[F+(H*72|0)+36>>2]|0;sh(ca,20,ua,0,c[F+(H*72|0)+32>>2]|0)|0;c[k+(sa*80|0)+788>>2]=sh(ca,22,ua,G,0)|0;a[k+(sa*80|0)+781>>0]=16;ua=459}while(0);if((ua|0)==459){ua=0;h=c[va>>2]|0;do if((h|0)>0){u=k+(sa*80|0)+772|0;v=ca+32|0;z=ca+4|0;A=ca+24|0;t=c[wa>>2]|0;while(1){s=t+20|0;y=b[s>>1]|0;do if(!(y&6)){aa=t+40|0;$=fa;if(!((c[$>>2]&c[aa>>2]|0)==0?(c[$+4>>2]&c[aa+4>>2]|0)==0:0)){a[ja>>0]=1;break}x=c[t>>2]|0;if((c[r>>2]|0)!=0?(c[x+4>>2]&1|0)==0:0)break;do if(!(y&512))ct(ga,x,da,16);else{w=sh(ca,46,c[u>>2]|0,0,0)|0;ct(ga,x,da,16);if(!w)break;y=c[v>>2]|0;if(y>>>0>w>>>0)c[(c[z>>2]|0)+(w*20|0)+8>>2]=y;c[(c[A>>2]|0)+88>>2]=y+-1}while(0);b[s>>1]=e[s>>1]|4}while(0);h=h+-1|0;if((h|0)<=0)break;else t=t+48|0}u=c[va>>2]|0;if((u|0)<=0){ua=475;break}w=c[wa>>2]|0;while(1){do if(!(b[w+20>>1]&6)){if((b[w+18>>1]|0)!=1026)break;if((c[w+8>>2]|0)!=(n|0))break;if(c[r>>2]|0)break;y=c[w>>2]|0;h=Bu(Fa,n,c[w+12>>2]|0,q,p,3,0)|0;if(!h)break;if(b[h+20>>1]&4)break;x=ih(ea,48,0)|0;if(!x)break;H=x+0|0;z=(c[h>>2]|0)+0|0;h=H+48|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));c[x+12>>2]=c[y+12>>2];ct(ga,x,da,16);ig(ea{f=f+4|0;h=h+4|0;g=0;do{d=b[(c[f>>2]|0)+(g<<1)>>1]|0;if(d<<16>>16<0)d=68;else d=a[(c[h>>2]|0)+((d<<16>>16)*24|0)+21>>0]|0;a[(c[j>>2]|0)+g>>0]=d;g=g+1|0}while((g|0)<(e[i>>1]|0));d=c[j>>2]|0}a[d+g>>0]=0;g=c[j>>2]|0}while(0);return g|0}function lt(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=d+44|0;if(!(a[r>>0]&16)){k=c[b>>2]|0;m=c[d+68>>2]|0;a:do if(m){n=c[k+20>>2]|0;if((n|0)>0){k=c[k+16>>2]|0;l=0;while(1){j=l+1|0;if((c[k+(l<<4)+12>>2]|0)==(m|0))break a;if((j|0)<(n|0))l=j;else{l=j;break}}}else l=0}else l=-1e6;while(0);q=Kq(b)|0;if((f|0)<0)f=c[b+68>>2]|0;k=f+1|0;p=(h|0)!=0;if(p)c[h>>2]=f;do if(!(a[r>>0]&32)){if((g|0)!=0?(a[g>>0]|0)==0:0){o=15;break}Mq(b,f,l,d,e)}else o=15;while(0);if((o|0)==15)cs(b,l,c[d+32>>2]|0,(e|0)==55&1,c[d>>2]|0);if(i)c[i>>2]=k;f=c[d+8>>2]|0;if(!f)j=0;else{m=(g|0)==0;d=b+8|0;n=k;j=0;while(1){k=n+1|0;if((a[f+51>>0]&3)==2?(a[r>>0]&32)!=0&p:0)c[h>>2]=n;j=j+1|0;if(!(!m?(a[g+j>>0]|0)==0:0)){sh(q,e,n,c[f+40>>2]|0,l)|0;o=c[d>>2]|0;th(o,-1,ds(b,f)|0,-6)}f=c[f+20>>2]|0;if(!f)break;else n=k}}f=b+68|0;if((k|0)>(c[f>>2]|0))c[f>>2]=k}else j=0;return j|0}function mt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+452|0;b=c[g>>2]|0;e=c[h+520>>2]|0;a:do if((b|0)>0){f=0;while(1){if((c[e+(f<<2)>>2]|0)==(d|0))break a;f=f+1|0;if((f|0)>=(b|0)){i=4;break}}}else i=4;while(0);do if((i|0)==4){b=Tc(e,(b<<2)+4|0)|0;if(!b){a[(c[h>>2]|0)+65>>0]=1;break}else{c[h+520>>2]=b;e=c[g>>2]|0;c[g>>2]=e+1;c[b+(e<<2)>>2]=d;break}}while(0);return}function nt(d,e,f,g,h,i,j,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;w=c[d+8>>2]|0;x=ts(w)|0;u=(a[e+44>>0]&32)>>>4^70;if(!(m<<24>>24))th(w,sh(w,u,g,x,i)|0,j<<16>>16,-14);if((it(d,e,0,0)|0)!=0|(f|0)!=0){q=l&255;r=rt(d,f,0,0,3,e,q)|0;r=qt(d,e)|0|r;o=d+72|0;n=c[o>>2]|0;m=n+1|0;s=e+38|0;c[o>>2]=m+(b[s>>1]|0);sh(w,33,i,m,0)|0;o=b[s>>1]|0;if(o<<16>>16>0){t=(r|0)==-1;p=n+2|0;n=0;do{if(!t){if((n|0)<32?(1<<n&r|0)!=0:0)v=9}else v=9;if((v|0)==9){v=0;jt(w,e,g,n,p+n|0);o=b[s>>1]|0}n=n+1|0}while((n|0)<(o<<16>>16|0))}t=w+32|0;s=c[t>>2]|0;tt(d,f,109,0,1,e,m,q,x);if((s|0)<(c[t>>2]|0))th(w,sh(w,u,g,x,i)|0,j<<16>>16,-14);vt(d,e,m,0,0,0)}else m=0;if((c[e+12>>2]|0)==0?(wt(d,e,g,h,0),sh(w,95,g,k<<24>>24!=0&1,0)|0,k<<24>>24!=0):0)th(w,-1,c[e>>2]|0,0);yt(d,e,0,m,0,0);tt(d,f,109,0,2,e,m,l&255,x);n=c[w+24>>2]|0;m=~x;if((x|0)<0?(y=c[n+112>>2]|0,(y|0)!=0):0)c[y+(m<<2)>>2]=c[w+32>>2];c[n+88>>2]=(c[w+32>>2]|0)+-1;return}function ot(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=c[b+8>>2]|0;d=c[b+404>>2]|0;if(d){l=(c[b>>2]|0)+16|0;m=b+19|0;n=b+72|0;o=j+32|0;p=j+4|0;k=j+24|0;do{f=c[d+8>>2]|0;g=c[l>>2]|0;i=c[d+12>>2]|0;e=a[m>>0]|0;if(!(e<<24>>24)){h=(c[n>>2]|0)+1|0;c[n>>2]=h}else{h=e+-1<<24>>24;a[m>>0]=h;h=c[b+((h&255)<<2)+24>>2]|0}Mq(b,0,f,c[(c[g+(f<<4)+12>>2]|0)+72>>2]|0,55);g=i+1|0;f=sh(j,77,g,0,0)|0;sh(j,74,0,g,0)|0;e=c[o>>2]|0;if(e>>>0>f>>>0)c[(c[p>>2]|0)+(f*20|0)+8>>2]=e;c[(c[k>>2]|0)+88>>2]=e+-1;sh(j,49,i+-1|0,2,h)|0;sh(j,75,0,h,g)|0;e=c[p>>2]|0;if(e)a[e+(((c[o>>2]|0)+-1|0)*20|0)+3>>0]=8;sh(j,61,0,0,0)|0;Wr(b,h);d=c[d>>2]|0}while((d|0)!=0)}return}function pt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;c[g>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[g+4>>2]=f;f=jr(b,d,g,0)|0;i=h;return f|0}function qt(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o+4|0;n=o;if(c[(c[a>>2]|0)+24>>2]&524288){f=c[d+16>>2]|0;if(!f)e=0;else{e=0;do{g=c[f+20>>2]|0;if((g|0)>0){h=0;do{p=c[f+(h<<3)+36>>2]|0;e=((p|0)>31?-1:1<<p)|e;h=h+1|0}while((h|0)<(g|0))}f=c[f+4>>2]|0}while((f|0)!=0)}f=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,k)|0;if((f|0)!=0?(l=c[f+8>>2]|0,(l|0)!=0):0)do{c[n>>2]=0;It(a,d,l,n,0)|0;f=c[n>>2]|0;if((f|0)!=0?(m=b[f+46>>1]|0,m<<16>>16!=0):0){k=m&65535;h=c[f+4>>2]|0;g=0;do{f=b[h+(g<<1)>>1]|0;if(f<<16>>16>31)f=-1;else f=1<<(f<<16>>16);e=f|e;g=g+1|0}while((g|0)<(k|0))}l=c[l+12>>2]|0}while((l|0)!=0)}else e=0;i=o;return e|0}function rt(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;k=(e|0)!=0?110:109;if(!b)j=0;else{j=0;do{if((((d[b+8>>0]|0|0)==(k|0)?((d[b+9>>0]|0)&g|0)!=0:0)?(Yu(c[b+16>>2]|0,e)|0)!=0:0)?(l=_u(a,b,h,i)|0,(l|0)!=0):0)j=c[l+(f<<2)+16>>2]|j;b=c[b+32>>2]|0}while((b|0)!=0)}return j|0}function st(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=e+20|0;g=c[l>>2]|0;do if(!g){i=c[d>>2]|0;k=e+38|0;h=(b[k>>1]|0)+1|0;h=mg(h,((h|0)<0)<<31>>31)|0;if(!h){a[i+65>>0]=1;break}if((b[k>>1]|0)>0){i=e+4|0;g=0;do{a[h+g>>0]=a[(c[i>>2]|0)+(g*24|0)+21>>0]|0;g=g+1|0}while((g|0)<(b[k>>1]|0))}else g=0;do{a[h+g>>0]=0;if((g|0)<=0)break;g=g+-1|0}while((a[h+g>>0]|0)==65);c[l>>2]=h;j=10}else{h=g;j=10}while(0);do if((j|0)==10){g=h;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823;if(g)if(!f){th(d,-1,h,g);break}else{th(d,sh(d,48,f,g,0)|0,h,g);break}}while(0);return}function tt(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;if(b)do{if(((d[b+8>>0]|0|0)==(e|0)?(d[b+9>>0]|0|0)==(g|0):0)?(Yu(c[b+16>>2]|0,f)|0)!=0:0)$u(a,b,h,i,j,k);b=c[b+32>>2]|0}while((b|0)!=0);return}function ut(d,f,g,h,k,l,m,n,o,p,q){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,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,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+16|0;if((i|0)>=(j|0))ba();I=la;fa=(m|0)!=0;N=c[d>>2]|0;ka=Kq(d)|0;A=b[f+38>>1]|0;ia=f+44|0;if(!(a[ia>>0]&32)){ea=1;da=0}else{u=f+8|0;while(1){u=c[u>>2]|0;if((a[u+51>>0]&3)==2)break;else u=u+20|0}ea=e[u+46>>1]|0;da=u}if(A<<16>>16>0){w=f+36|0;v=f+4|0;u=o<<24>>24==10;t=d+408|0;s=l+1|0;B=ka+4|0;C=ka+32|0;D=ka+24|0;E=o&255;y=A<<16>>16;x=0;do{a:do if((x|0)!=(b[w>>1]|0)?(F=c[v>>2]|0,G=a[F+(x*24|0)+20>>0]|0,H=G&255,G<<24>>24!=0):0){if(u)if(G<<24>>24==10)ja=14;else{A=H;ja=11}else{A=E;ja=11}do if((ja|0)==11){ja=0;if((A|0)==5)A=(c[F+(x*24|0)+4>>2]|0)==0?2:5;if((A|0)==4){sh(ka,76,s+x|0,p,0)|0;break a}else if((A|0)==3|(A|0)==1)break;else if((A|0)==2){ja=14;break}z=s+x|0;A=sh(ka,77,z,0,0)|0;Nq(d,c[(c[v>>2]|0)+(x*24|0)+4>>2]|0,z);z=c[C>>2]|0;if(z>>>0>A>>>0)c[(c[B>>2]|0)+(A*20|0)+8>>2]=z;c[(c[D>>2]|0)+88>>2]=z+-1;break a}while(0);if((ja|0)==14){ja=0;A=c[t>>2]|0;a[((A|0)==0?d:A)+21>>0]=1;A=2}ca=c[F+(x*24|0)>>2]|0;c[I>>2]=c[f>>2];c[I+4>>2]=ca;ca=qh(N,27824,I)|0;th(ka,sh(ka,23,1299,A,s+x|0)|0,ca,-1);A=c[B>>2]|0;if(A)a[A+(((c[C>>2]|0)+-1|0)*20|0)+3>>0]=1}while(0);x=x+1|0}while((x|0)!=(y|0))}x=c[f+24>>2]|0;if(((x|0)!=0?(c[N+24>>2]&8192|0)==0:0)?(c[d+92>>2]=l+1,(c[x>>2]|0)>0):0){w=x+4|0;s=ka+24|0;y=ka+32|0;A=0;u=o<<24>>24==10?2:o&255;while(1){z=ts(ka)|0;Vu(d,c[(c[w>>2]|0)+(A*20|0)>>2]|0,z,16);if((u|0)==4){sh(ka,16,0,p,0)|0;t=4}else{v=c[(c[w>>2]|0)+(A*20|0)+4>>2]|0;if(!v)v=c[f>>2]|0;t=(u|0)==5?2:u;vs(d,275,t,v,0,3)}v=c[s>>2]|0;u=~z;if((z|0)<0?(J=c[v+112>>2]|0,(J|0)!=0):0)c[J+(u<<2)>>2]=c[y>>2];c[v+88>>2]=(c[y>>2]|0)+-1;A=A+1|0;if((A|0)>=(c[x>>2]|0))break;else u=t}}if(n<<24>>24!=0&(da|0)==0){w=ts(ka)|0;s=a[f+45>>0]|0;if(o<<24>>24==10)s=s<<24>>24==10?2:s&255;else s=o&255;if(fa?(sh(ka,79,l,w,m)|0,K=c[ka+4>>2]|0,(K|0)!=0):0)a[K+(((c[ka+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;b:do if(!((s|0)!=5|o<<24>>24==5)?(r=c[f+8>>2]|0,(r|0)!=0):0){while(1){if(((a[r+50>>0]|0)+-3&255)<2)break;r=c[r+20>>2]|0;if(!r){x=0;break b}}x=sh(ka,16,0,0,0)|0}else x=0;while(0);sh(ka,70,h,w,l)|0;c:do switch(s|0){case 4:{sh(ka,16,0,p,0)|0;s=0;break}case 3:case 2:case 1:{ja=49;break}case 5:{if((c[N+24>>2]&262144|0)!=0?(L=ft(d,f,109,0,0)|0,(L|0)!=0):0)s=L;else if(!(it(d,f,0,0)|0)){if(!(c[f+8>>2]|0)){s=1;break c}s=c[d+408>>2]|0;a[((s|0)==0?d:s)+20>>0]=1;wt(d,f,h,k,0);s=1;break c}else s=0;ca=c[d+408>>2]|0;a[((ca|0)==0?d:ca)+20>>0]=1;nt(d,f,s,h,k,l,1,0,5,1);s=1;break}default:{s=2;ja=49}}while(0);if((ja|0)==49){Bt(d,s,f);s=0}v=ka+24|0;u=c[v>>2]|0;t=~w;if((w|0)<0?(M=c[u+112>>2]|0,(M|0)!=0):0)c[M+(t<<2)>>2]=c[ka+32>>2];r=ka+32|0;c[u+88>>2]=(c[r>>2]|0)+-1;if(!x){t=0;x=0}else{t=sh(ka,16,0,0,0)|0;r=c[r>>2]|0;if(r>>>0>x>>>0)c[(c[ka+4>>2]|0)+(x*20|0)+8>>2]=r;c[(c[v>>2]|0)+88>>2]=r+-1}}else{t=0;x=0;s=0}A=c[f+8>>2]|0;if(A){_=l+1|0;$=d+60|0;aa=d+56|0;ca=d+72|0;Q=n<<24>>24==0;R=ka+24|0;S=ka+32|0;T=o<<24>>24==10;U=ka+4|0;V=da+46|0;W=da+32|0;X=da+4|0;Y=m+1|0;Z=d+408|0;O=N+24|0;P=ea&65535;w=o&255;v=f+36|0;u=d+92|0;E=0;r=0;z=-1;while(1){L=g+(r<<2)|0;do if(c[L>>2]|0){if(!(E<<24>>24)){st(ka,f,_);E=1}M=r+k|0;o=ts(ka)|0;K=A+36|0;if(c[K>>2]|0){sh(ka,28,0,c[L>>2]|0,0)|0;c[u>>2]=_;ct(d,c[K>>2]|0,o,16);c[u>>2]=0}N=A+48|0;F=b[N>>1]|0;I=F&65535;H=c[$>>2]|0;G=c[aa>>2]|0;if((G|0)<(I|0)){n=c[ca>>2]|0;c[ca>>2]=n+I;n=n+1|0}else{c[$>>2]=H+I;c[aa>>2]=G-I;n=H}if(!(F<<16>>16))J=z;else{J=A+4|0;G=0;do{y=b[(c[J>>2]|0)+(G<<1)>>1]|0;I=y<<16>>16;if(y<<16>>16>=0?y<<16>>16!=(b[v>>1]|0):0){H=G+n|0;I=_+I|0;ja=81}else{I=G+n|0;if((z|0)!=(I|0)){H=I;z=(c[K>>2]|0)==0?I:-1;I=l;ja=81}}if((ja|0)==81){ja=0;sh(ka,34,I,H,0)|0;F=b[N>>1]|0}G=G+1|0;I=F&65535}while((G|0)<(I|0));J=z}sh(ka,49,n,I,c[L>>2]|0)|0;$s(d,n,e[N>>1]|0);K=(da|0)==(A|0);if(fa&K&Q){z=c[R>>2]|0;y=~o;if((o|0)<0?(ga=c[z+112>>2]|0,(ga|0)!=0):0)c[ga+(y<<2)>>2]=c[S>>2];c[z+88>>2]=(c[S>>2]|0)+-1;z=J;break}D=a[A+50>>0]|0;C=D&255;if(!(D<<24>>24)){z=e[N>>1]|0;$s(d,n,z);if((c[aa>>2]|0)<(z|0)){c[aa>>2]=z;c[$>>2]=n}z=c[R>>2]|0;y=~o;if((o|0)<0?(ha=c[z+112>>2]|0,(ha|0)!=0):0)c[ha+(y<<2)>>2]=c[S>>2];c[z+88>>2]=(c[S>>2]|0)+-1;z=J;break}if(T)L=D<<24>>24==10?2:C;else L=w;z=e[A+46>>1]|0;th(ka,sh(ka,67,M,o,n)|0,z,-14);do if(!K){I=c[$>>2]|0;H=c[aa>>2]|0;if((H|0)<(ea|0)){I=c[ca>>2]|0;c[ca>>2]=I+ea;I=I+1|0;break}else{c[$>>2]=I+ea;c[aa>>2]=H-eaea);if((c[aa>>2]|0)>=(ea|0)){z=J;break}c[aa>>2]=ea;c[$>>2]=I;z=J}while(0);A=c[A+20>>2]|0;if(!A)break;else r=r+1|0}}if(x){sh(ka,16,0,x+1|0,0)|0;r=c[ka+32>>2]|0;if(r>>>0>t>>>0)c[(c[ka+4>>2]|0)+(t*20|0)+8>>2]=r;c[(c[ka+24>>2]|0)+88>>2]=r+-1}c[q>>2]=s;i=la;return}function vt(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;Z=i;i=i+32|0;if((i|0)>=(j|0))ba();Q=Z+20|0;O=Z+16|0;M=Z+12|0;N=Z+8|0;X=Z+4|0;W=Z;S=c[e>>2]|0;L=e+438|0;R=a[L>>0]|0;V=S+24|0;a:do if(c[V>>2]&524288){P=f+68|0;m=c[P>>2]|0;b:do if(m){o=c[S+20>>2]|0;if((o|0)>0){n=c[S+16>>2]|0;r=0;while(1){q=r+1|0;if((c[n+(r<<4)+12>>2]|0)==(m|0)){q=r;break b}if((q|0)<(o|0))r=q;else break}}else q=0}else q=-1e6;while(0);K=c[(c[S+16>>2]|0)+(q<<4)>>2]|0;x=c[f+16>>2]|0;if(!x)n=f;else{z=(k|0)==0;A=R<<24>>24==0;B=S+65|0;C=g+1|0;D=e+68|0;E=(g|0)==0;F=(h|0)==0;G=e+408|0;H=f+36|0;I=S+284|0;J=(l|0)!=0;y=x;do{c[O>>2]=0;c[M>>2]=0;c:do if(!z){x=c[y+8>>2]|0;if($c(c[f>>2]|0,x)|0){w=c[y+20>>2]|0;if((w|0)>0){n=0;do{m=c[y+(n<<3)+36>>2]|0;if((c[k+(m<<2)>>2]|0)>-1){Y=17;break c}n=n+1|0;if((m|0)==(b[H>>1]|0)&J){Y=17;break c}}while((n|0)<(w|0))}}else Y=17}else{x=c[y+8>>2]|0;Y=17}while(0);do if((Y|0)==17){Y=0;if(!(a[L>>0]|0))v=oh(e,0,x,K)|0;else v=Wh(S,x,K)|0;x=(v|0)==0;if(!x?(It(e,v,y,O,M)|0)==0:0){x=c[M>>2]|0;if(!x){c[N>>2]=c[y+36>>2];x=N}n=y+20|0;if((c[n>>2]|0)>0){t=c[O>>2]|0;o=(t|0)==0;r=v+36|0;s=v+4|0;t=t+4|0;m=0;u=0;do{w=x+(u<<2)|0;if((c[w>>2]|0)==(b[H>>1]|0))c[w>>2]=-1;if(c[I>>2]|0){if(o)w=r;else w=(c[t>>2]|0)+(u<<1)|0;m=(av(e,c[v>>2]|0,c[(c[s>>2]|0)+((b[w>>1]|0)*24|0)>>2]|0,q)|0)==2&1}u=u+1|0}while((u|0)<(c[n>>2]|0));w=v}else{w=v;m=0}cs(e,q,c[v+32>>2]|0,0,c[w>>2]|0);c[D>>2]=(c[D>>2]|0)+1;if(!E)bv(e,q,v,c[O>>2]|0,y,x,g,-1,m);d:do if(!F){w=c[G>>2]|0;w=c[((w|0)==0?e:w)+528>>2]|0;do if(w){w=c[w>>2]|0;if((w|0)==(c[y+28>>2]|0)?(a[y+25>>0]|0)==7:0)break d;if((w|0)!=(c[y+32>>2]|0))break;if((a[y+26>>0]|0)==7)break d}while(0);bv(e,q,v,c[O>>2]|0,y,x,h,1,m)}while(0);ig(S,c[M>>2]|0);break}if(A)break a;if(a[B>>0]|0)break a;if(x){x=Kq(e)|0;w=y+20|0;n=c[w>>2]|0;m=(c[x+32>>2]|0)+1+n|0;if((n|0)>0){n=0;do{sh(x,76,C+(c[y+(n<<3)+36>>2]|0)|0,m,0)|0;n=n+1|0}while((n|0)<(c[w>>2]|0))}sh(x,134,d[y+24>>0]|0,-1,0)|0}}while(0);y=c[y+4>>2]|0}while((y|0)!=0);n=f;m=c[P>>2]|0}m=Zm(m+56|0,c[n>>2]|0,Q)|0;if((m|0)!=0?(p=c[m+8>>2]|0,T=S+65|0,(p|0)!=0):0){r=(k|0)!=0;s=e+408|0;t=e+20|0;u=e+68|0;v=(h|0)==0;w=(g|0)==0;x=r&1;q=R<<24>>24==0;do{c[X>>2]=0;c[W>>2]=0;if(!(r?(Zu(f,p,k,l)|0)==0:0))Y=57;do if((Y|0)==57){Y=0;n=p+24|0;if((((a[n>>0]|0)==0?(c[V>>2]&16777216|0)==0:0)?(c[s>>2]|0)==0:0)?(a[t>>0]|0)==0:0)break;if(It(e,f,p,X,W)|0){if(q)break a;if(!(a[T>>0]|0))break;else break a}m=lr(S,0,0,0)|0;if(m){H=c[p>>2]|0;c[m+24>>2]=H;o=m+16|0;c[o>>2]=c[H>>2];H=H+40|0;b[H>>1]=(b[H>>1]|0)+1<<16>>16;H=c[u>>2]|0;c[u>>2]=H+1;c[m+48>>2]=H;if(!v)cv(e,m,f,c[X>>2]|0,p,c[W>>2]|0,h,-1);if((!w?(U=a[p+x+25>>0]|0,cv(e,m,f,c[X>>2]|0,p,c[W>>2]|0,g,1),(a[n>>0]|0)==0):0)?!(U<<24>>24==7|U<<24>>24==9):0){H=c[s>>2]|0;a[((H|0)==0?e:H)+21>>0]=1}c[o>>2]=0;zo(S,m)}ig(S,c[W>>2]|0)}while(0);p=c[p+12>>2]|0}while((p|0)!=0)}}while(0);i=Z;return}function wt(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();r=s;q=c[b+8>>2]|0;l=c[d+8>>2]|0;a:do if(a[d+44>>0]&32){if(l){k=l;while(1){if((a[k+51>>0]&3)==2){p=5;break a}k=c[k+20>>2]|0;if(!k){k=0;p=5;break}}}}else{k=0;p=5}while(0);if((p|0)==5?(l|0)!=0:0){n=(h|0)==0;o=0;d=0;m=-1;while(1){if(n){if((l|0)!=(k|0))p=10}else if(!((l|0)==(k|0)?1:(c[h+(o<<2)>>2]|0)==0))p=10;if((p|0)==10){p=0;m=Lt(b,l,f,0,1,r,d,m)|0;sh(q,111,o+g|0,m,e[((a[l+51>>0]&8)==0?l+48|0:l+46|0)>>1]|0)|0;Mt(b,c[r>>2]|0);d=l}l=c[l+20>>2]|0;if(!l)break;else o=o+1|0}}i=s;return}function xt(d,e,f,g,h,i,j,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=Kq(d)|0;q=c[e+8>>2]|0;if(!q){n=e+44|0;p=0}else{r=(l|0)!=0;n=e+44|0;s=r?17:1;t=w+4|0;u=w+32|0;p=0;v=0;m=q;while(1){o=i+(v<<2)|0;q=c[o>>2]|0;do if(q){if(c[m+36>>2]|0){sh(w,76,q,(c[u>>2]|0)+2|0,0)|0;q=c[o>>2]|0}sh(w,110,v+g|0,q,0)|0;if((a[m+51>>0]&3)==2){q=(a[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=c[t>>2]|0;if(!q)p=1;else{a[q+(((c[u>>2]|0)+-1|0)*20|0)+3>>0]=p;p=1}}while(0);m=c[m+20>>2]|0;if(!m)break;else v=v+1|0}}if(!(a[n>>0]&32)){o=h+1|0;n=d+19|0;m=a[n>>0]|0;if(!(m<<24>>24)){i=d+72|0;q=(c[i>>2]|0)+1|0;c[i>>2]=q}else{q=m+-1<<24>>24;a[n>>0]=q;q=c[d+((q&255)<<2)+24>>2]|0}n=e+38|0;sh(w,49,o,b[n>>1]|0,q)|0;if(!(p<<24>>24))st(w,e,0);$s(d,o,b[n>>1]|0);o=d+18|0;if(!(a[o>>0]|0))m=(j|0)!=0?5:3;else m=0;if(k)m=(m&255|8)&255;if(!l)n=m;else n=(m&255|16)&255;sh(w,75,f,q,h)|0;if(!(a[o>>0]|0))th(w,-1,c[e>>2]|0,0);m=c[w+4>>2]|0;if(m)a[m+(((c[w+32>>2]|0)+-1|0)*20|0)+3>>0]=n}return}function yt(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=i;i=i+64|0;if((i|0)>=(j|0))ba();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(((c[(c[d>>2]|0)+24>>2]&524288|0)!=0?(P=e+68|0,l=Zm((c[P>>2]|0)+56|0,c[e>>2]|0,Y+16|0)|0,(l|0)!=0):0)?(m=c[l+8>>2]|0,(m|0)!=0):0){O=(h|0)==0;H=(f|0)!=0;I=H&1;J=W+4|0;K=T+4|0;L=e+4|0;M=S+4|0;N=H?110:109;do{if(!(!O?(Zu(e,m,h,k)|0)==0:0)){E=c[d>>2]|0;D=a[m+I+25>>0]|0;F=D&255;G=m+(I<<2)+28|0;f=c[G>>2]|0;do if(!(D<<24>>24==0|(f|0)!=0)){c[R>>2]=0;c[Q>>2]=0;if(!(It(d,e,m,R,Q)|0)){r=m+20|0;if((c[r>>2]|0)>0){x=34352;w=c[x>>2]|0;x=c[x+4>>2]|0;z=34360;y=c[z>>2]|0;z=c[z+4>>2]|0;A=m+36|0;C=D<<24>>24!=6&(D<<24>>24!=9|H);B=0;o=0;l=0;n=0;do{f=V;c[f>>2]=w;c[f+4>>2]=x;f=U;c[f>>2]=y;c[f+4>>2]=z;f=c[Q>>2]|0;if(!f)f=A;else f=f+(B<<2)|0;q=c[f>>2]|0;s=c[R>>2]|0;if(!s)u=34368;else u=c[(c[L>>2]|0)+((b[(c[s+4>>2]|0)+(B<<1)>>1]|0)*24|0)>>2]|0;c[W>>2]=u;f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)>>2]|0;c[T>>2]=f;if(!u)t=0;else{v=u;while(1)if(!(a[v>>0]|0))break;else v=v+1|0;t=v-u&1073741823}c[J>>2]=t;if(!f)p=0;else{u=f;while(1)if(!(a[u>>0]|0))break;else u=u+1|0;p=u-f&1073741823}c[K>>2]=p;v=Vq(d,27,0,0,V)|0;v=Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0;n=os(E,n,Vq(d,79,v,Vq(d,27,0,0,T)|0,0)|0)|0;if(H){u=Vq(d,27,0,0,V)|0;u=Vq(d,122,u,Vq(d,27,0,0,W)|0,0)|0;v=Vq(d,27,0,0,U)|0;l=os(E,l,Vq(d,73,u,Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0,0)|0)|0}if(C){do if(D<<24>>24==8){f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)+4>>2]|0;if(!f){f=Vq(d,101,0,0,0)|0;break}else{f=Ir(E,f,0,0)|0;break}}else if(D<<24>>24==9){f=Vq(d,27,0,0,U)|0;f=Vq(d,122,f,Vq(d,27,0,0,W)|0,0)|0}else f=Vq(d,101,0,0,0)|0;while(0);o=hr(d,o,f)|0;ir(d,o,T,0)}B=B+1|0}while((B|0)<(c[r>>2]|0));f=m}else{f=m;o=0;l=0;n=0}ig(E,c[Q>>2]|0);v=c[c[f>>2]>>2]|0;if(!v)p=0;else{f=v;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;p=f-v&1073741823}if(D<<24>>24==6){c[S>>2]=v;c[M>>2]=p;f=pt(E,57,34376)|0;if(f)a[f+1>>0]=2;u=hr(d,0,f)|0;u=gr(d,u,lr(E,0,S,0)|0,n,0,0,0,0,0,0)|0;t=0}else{u=0;t=n}q=E+250|0;r=a[q>>0]|0;a[q>>0]=0;f=p+77|0;s=ih(E,f,0)|0;if(s){bw(s|0,0,f|0)|0;n=s+36|0;c[s+28>>2]=n;D=s+76|0;c[s+48>>2]=D;c[s+52>>2]=p;gw(D|0,v|0,p|0)|0;c[s+56>>2]=Ir(E,t,1,0)|0;c[s+60>>2]=Lr(E,o,1)|0;c[s+44>>2]=cr(E,u,1)|0;if(!l){f=s;l=0}else{l=Vq(d,19,l,0,0)|0;c[s+12>>2]=Ir(E,l,1,0)|0;f=s}}else{f=0;n=0}a[q>>0]=r;Ck(E,t);Ck(E,l);Jk(E,o);Ik(E,u,1);if((a[E+65>>0]|0)==1){Gk(E,f);f=0;break}if((F|0)==6)a[n>>0]=119;else if((F|0)==9?!H:0)a[n>>0]=109;else X=49;if((X|0)==49){X=0;a[n>>0]=110}c[n+4>>2]=f;F=c[P>>2]|0;c[s+20>>2]=F;c[s+24>>2]=F;c[G>>2]=f;a[s+8>>0]=N}else f=0}while(0);if(f)$u(d,f,e,g,2,0)}m=c[m+12>>2]|0}while((m|0)!=0)}i=Y;return}function zt(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=b[d+46>>1]|0;a:do if(f<<16>>16==(b[e+46>>1]|0)?(a[d+50>>0]|0)==(a[e+50>>0]|0):0){if(f<<16>>16){g=c[e+4>>2]|0;h=c[d+4>>2]|0;i=e+28|0;j=d+28|0;k=e+32|0;l=d+32|0;p=0;do{if((b[g+(p<<1)>>1]|0)!=(b[h+(p<<1)>>1]|0)){f=0;break a}if((a[(c[i>>2]|0)+p>>0]|0)!=(a[(c[j>>2]|0)+p>>0]|0)){f=0;break a}m=c[(c[k>>2]|0)+(p<<2)>>2]|0;n=c[(c[l>>2]|0)+(p<<2)>>2]|0;o=(n|0)==0;if(!m){if(!o){f=0;break a}}else{if(o){f=0;break a}if($c(m,n)|0){f=0;break a}}p=p+1|0}while((p|0)<(f&65535|0))}f=(yu(c[e+36>>2]|0,c[d+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function At(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[e+44>>0]&8))f=0;else{h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[g>>2]|0;a:do if(!f)i=5;else while(1){if((c[f+4>>2]|0)==(e|0))break a;f=c[f>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=ih(c[b>>2]|0,16,0)|0;if(!f){f=0;break}c[f>>2]=c[g>>2];c[g>>2]=f;c[f+4>>2]=e;c[f+8>>2]=d;b=h+72|0;g=c[b>>2]|0;c[f+12>>2]=g+2;c[b>>2]=g+3}f=c[f+12>>2]|0}while(0);return f|0}function Bt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;g=b[e+36>>1]|0;h=c[a>>2]|0;f=c[e>>2]|0;if(g<<16>>16>-1){g=c[(c[e+4>>2]|0)+((g<<16>>16)*24|0)>>2]|0;c[k>>2]=f;c[k+4>>2]=g;g=1555;f=qh(h,27824,k)|0}else{c[k>>2]=f;g=2579;f=qh(h,34408,k)|0}vs(a,g,d,f,-1,2);i=l;return}function Ct(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[g>>2]|0;d=hr(b,h,Ir(c[b>>2]|0,d,0,0)|0)|0;if(d){b=(c[d>>2]|0)+-1|0;h=c[d+4>>2]|0;c[h+(b*20|0)+16>>2]=e;b=h+(b*20|0)+13|0;a[b>>0]=a[b>>0]&-5|f<<2&4}c[g>>2]=d;return}function Dt(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[e>>2]|0;if(!(g+-1&g)){i=_((g|0)==0?1:g<<1,d)|0;a=no(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[f>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){bw(a+(_(g,d)|0)|0,0,d|0)|0;c[f>>2]=g;c[e>>2]=(c[e>>2]|0)+1}return a|0}function Et(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;b=c[a+12>>2]|0;if((b|0)!=0?(d=c[b+24>>2]|0,(d|0)>0):0){c[h>>2]=d;b=d}else b=0;d=c[a+16>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(b|0)):0)c[h>>2]=e;f=a+4|0;b=a+20|0;if(!(c[f>>2]&2048)){d=c[b>>2]|0;if(d){pu(d,h);b=c[b>>2]|0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;do{b=c[(c[e+(d*20|0)>>2]|0)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[f>>2]=c[f>>2]|b}}else As(c[b>>2]|0,h);c[a+24>>2]=(c[h>>2]|0)+1;i=k;return}function Ft(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Kq(b)|0;i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h;b=ih(c[b>>2]|0,8,0)|0;if(b){i=b;c[i>>2]=e;c[i+4>>2]=f}th(g,sh(g,26,0,h,0)|0,b,-13);eq(g,1);if(!(a[(c[g>>2]|0)+65>>0]|0))Tg(c[g+16>>2]|0,d,-1,1,0)|0;sh(g,35,h,1,0)|0;return}function Gt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;d=c[b>>2]|0;e=d+16|0;f=c[(c[e>>2]|0)+20>>2]|0;do if(!f)d=0;else{if((a[d+63>>0]|0)!=0?(a[f+8>>0]|0)==0:0){Il(f);c[(c[e>>2]|0)+20>>2]=0;Ag(d);d=0;break}ph(b,32128,g);d=1}while(0);i=h;return d|0}function Ht(b){b=b|0;var e=0,f=0,g=0;if((a[b+63>>0]|0)!=0?(e=c[b+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[b+16>>2]|0;while(1){e=e+-1|0;b=c[f+4>>2]|0;if(b)po(b,c[g>>2]&28|d[f+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function It(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,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=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[g+20>>2]|0;m=c[g+40>>2]|0;if((x|0)==1){s=b[f+36>>1]|0;l=s<<16>>16;if(s<<16>>16>-1)if((m|0)!=0?($c(c[(c[f+4>>2]|0)+(l*24|0)>>2]|0,m)|0)!=0:0){v=0;y=8}else k=0;else{v=0;y=8}}else if(k){l=ih(c[d>>2]|0,x<<2,0)|0;if(!l)k=1;else{c[k>>2]=l;v=l;y=8}}else{v=0;y=8}a:do if((y|0)==8){k=c[f+8>>2]|0;b:do if(k){s=(m|0)==0;u=(x|0)>0;r=f+4|0;t=(v|0)==0;c:while(1){do if((e[k+46>>1]|0)==(x|0)?(a[k+50>>0]|0)!=0:0){if(s)if((a[k+51>>0]&3)==2){y=16;break c}else break;d:do if(u){n=c[k+4>>2]|0;o=c[r>>2]|0;p=c[k+32>>2]|0;q=0;while(1){f=b[n+(q<<1)>>1]|0;m=c[o+(f*24|0)+16>>2]|0;if($c(c[p+(q<<2)>>2]|0,(m|0)!=0?m:11152)|0){m=q;break d}m=c[o+(f*24|0)>>2]|0;l=0;while(1){f=l+1|0;if(!($c(c[g+(l<<3)+40>>2]|0,m)|0)){f=l;y=23;break}if((f|0)<(x|0))l=f;else break}if((y|0)==23){y=0;if(!t)c[v+(q<<2)>>2]=c[g+(f<<3)+36>>2]}m=q+1|0;if((f|0)==(x|0)){m=q;break d}if((m|0)<(x|0))q=m;else break}}else m=0;while(0);if((m|0)==(x|0))break c}while(0);k=c[k+20>>2]|0;if(!k)break b}if((y|0)==16)if(!(t|u^1)){l=0;do{c[v+(l<<2)>>2]=c[g+(l<<3)+36>>2];l=l+1|0}while((l|0)!=(x|0))}c[h>>2]=k;k=0;break a}while(0);if(!(a[d+438>>0]|0)){s=c[g+8>>2]|0;c[w>>2]=c[c[g>>2]>>2];c[w+4>>2]=s;ph(d,32008,w)}ig(c[d>>2]|0,v);k=1}while(0);i=z;return k|0}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(c[d+12>>2]|0)){c[h>>2]=0;l=c[b>>2]|0;g=d+4|0;d=c[g>>2]|0;Vr(l,c[d+(e*24|0)+4>>2]|0,a[l+62>>0]|0,a[d+(e*24|0)+21>>0]|0,h)|0;d=c[h>>2]|0;if(d)th(b,-1,d,-8);if((a[(c[g>>2]|0)+(e*24|0)+21>>0]|0)==69)sh(b,39,f,0,0)|0}i=k;return}function Kt(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Oh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[g>>1]=e[g>>1]|f&255}return}function Lt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=c[d+8>>2]|0;r=c[e+12>>2]|0;do if(i){l=e+36|0;if(!(c[l>>2]|0)){c[i>>2]=0;break}else{c[i>>2]=ts(q)|0;c[d+96>>2]=f;p=d+100|0;c[p>>2]=(c[p>>2]|0)+1;ct(d,c[l>>2]|0,c[i>>2]|0,16);break}}while(0);if((h|0)!=0?(a[e+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[l>>1]|0;n=l&65535;o=d+60|0;h=c[o>>2]|0;p=d+56|0;i=c[p>>2]|0;if((i|0)<(n|0)){h=d+72|0;m=c[h>>2]|0;c[h>>2]=m+n;m=m+1|0}else{c[o>>2]=h+n;c[p>>2]=i-n;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[j+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[(c[k>>2]|0)+(l<<1)>>1]|0;if((b[(c[i>>2]|0)+(l<<1)>>1]|0)!=h<<16>>16)s=21}else{h=b[(c[k>>2]|0)+(l<<1)>>1]|0;s=21}if((s|0)==21){s=0;jt(q,r,f,h<<16>>16,l+m|0);Lq(q,39)|0}l=l+1|0}while((l|0)<(n|0))}if(g)sh(q,49,m,n,g)|0;$s(d,m,n);if((c[p>>2]|0)<(n|0)){c[p>>2]=n;c[o>>2]=m}return m|0}function Mt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[a+8>>2]|0;e=c[d+24>>2]|0;f=~b;if((b|0)<0?(g=c[e+112>>2]|0,(g|0)!=0):0)c[g+(f<<2)>>2]=c[d+32>>2];c[e+88>>2]=(c[d+32>>2]|0)+-1;Zt(a)}return}function Nt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[d+16>>2]|0;a:do if((e|0)!=0?(f=c[d+64>>2]|0,(f|0)!=0):0){e=c[e+8>>2]|0;b:do if(e){while(1){if(!($c(c[e>>2]|0,f)|0))break;e=c[e+20>>2]|0;if(!e)break b}c[d+68>>2]=e;e=0;break a}while(0);c[g>>2]=f;c[g+4>>2]=0;ph(b,28104,g);a[b+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function Ot(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Pt(a,b)|0;if(b&1){e=Ot(c[a+12>>2]|0,b)|0;return e+d+(Ot(c[a+16>>2]|0,b)|0)|0}}else d=0;return d|0}
7 |0)+22|0;a[H>>0]=(a[H>>0]|0)+1<<24>>24;c[j+(i*48|0)+4>>2]=g;b[j+(i*48|0)+16>>1]=b[N>>1]|0;a[H>>0]=(a[H>>0]|0)+1<<24>>24;H=217;break k}}while(0);Ih(i);H=217}else H=217}else H=217}}else H=217;while(0);if((H|0)==217)if(((((a[R>>0]|0)==-103?($c(c[R+8>>2]|0,31416)|0)==0:0)?(U=c[R+20>>2]|0,(c[U>>2]|0)==2):0)?(V=c[U+4>>2]|0,W=c[V+20>>2]|0,(a[W>>0]|0)==-102):0)?(X=c[V>>2]|0,Y=wv(_,X)|0,Z=C,_=wv(_,W)|0,(_&Y|0)==0&(C&Z|0)==0):0){_=vv(f,Vq(Q,51,0,Ir(S,X,0,0)|0,0)|0,3)|0;h=c[T>>2]|0;X=h+(_*48|0)+32|0;c[X>>2]=Y;c[X+4>>2]=Z;c[h+(_*48|0)+8>>2]=c[W+28>>2];c[h+(_*48|0)+12>>2]=b[W+32>>1];b[h+(_*48|0)+18>>1]=64;c[h+(_*48|0)+4>>2]=g;b[h+(_*48|0)+16>>1]=b[h+(g*48|0)+16>>1]|0;Y=h+(g*48|0)+22|0;a[Y>>0]=(a[Y>>0]|0)+1<<24>>24;Y=h+(g*48|0)+20|0;b[Y>>1]=e[Y>>1]|8;Y=h+(g*48|0)+40|0;Z=c[Y+4>>2]|0;_=h+(_*48|0)+40|0;c[_>>2]=c[Y>>2];c[_+4>>2]=Z;h=h+(g*48|0)|0}g=h+32|0;Z=g;_=c[Z+4>>2]|P;c[g>>2]=c[Z>>2]|O;c[g+4>>2]=_}while(0);return}function Bu(a,d,e,f,g,h,k){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0;m=i;i=i+112|0;if((i|0)>=(j|0))ba();l=m;h=zv(l,a,d,e,h,k)|0;a:do if(!h)h=0;else{k=h;h=0;do{d=k+32|0;e=c[d>>2]|0;d=c[d+4>>2]|0;if((e&f|0)==0&(d&g|0)==0){if((e|0)==0&(d|0)==0?(b[k+18>>1]&2)!=0:0){h=k;break a}h=(h|0)==0?k:h}k=Av(l)|0}while((k|0)!=0)}while(0);i=m;return h|0}function Cu(e,f,g){e=e|0;f=f|0;g=g|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;la=i;i=i+16|0;if((i|0)>=(j|0))ba();ia=la;v=c[e>>2]|0;ga=c[v>>2]|0;ja=c[ga>>2]|0;fa=c[e+4>>2]|0;ha=c[e+12>>2]|0;u=d[ha+16>>0]|0;v=c[v+4>>2]|0;da=c[v+(u*72|0)+24>>2]|0;x=c[e+8>>2]|0;ea=fa+20|0;fa=fa+12|0;l=c[fa>>2]|0;if((l|0)>0){n=c[v+(u*72|0)+48>>2]|0;o=0;m=0;p=c[eaea>>2]|0;while(1){if((c[o+8>>2]|0)==(q|0)?(y=b[o+18>>1]|0,(y&-1153)<<16>>16!=0):0){c[l+(r*12|0)>>2]=c[o+12>>2];c[l+(r*12|0)+8>>2]=p;a[l+(r*12|0)+4>>0]=(y&255)==1?2:y&255;r=r+1|0}p=p+1|0;if((p|0)==(n|0))break;else o=o+48|0}}if((t|0)>0){l=c[x+4>>2]|0;m=0;do{c[s+(m<<3)>>2]=b[(c[l+(m*20|0)>>2]|0)+32>>1];a[s+(m<<3)+4>>0]=a[l+(m*20|0)+12>>0]|0;m=m+1|0}while((m|0)!=(t|0))}A=ha;c[A>>2]=0;c[A+4>>2]=0;A=ha+18|0;b[A>>1]=0;c[ha+36>>2]=1024;B=ha+40|0;b[B>>1]=0;D=ha+28|0;a[D>>0]=0;E=c[aa>>2]|0;F=c[ca>>2]|0;if(Ju(ja,ha,F)|0){ig(ja,ca);l=7;break}W=ca+28|0;X=ca+24|0;G=ca+20|0;H=ca+32|0;I=ca+40|0;J=ca+48|0;K=da+60|0;L=ga+64|0;O=(F|0)>0;P=ha+30|0;Q=ha+24|0;R=ha+32|0;S=ha+29|0;T=ha+20|0;U=ha+22|0;V=ha+48|0;v=0;y=0;x=0;b:while(1){if(!((y|0)!=0|(v&1|0)==0))if((v|0)>2){l=0;break}else z=v+1|0;else z=v;if((x|0)==0&(z|0)>1){l=0;break}p=c[ca>>2]|0;if((p|0)>0){m=c[ea>>2]|0;n=0;o=c[_>>2]|0;while(1){v=c[o+8>>2]|0;if(!z){l=o+5|0;a[l>>0]=0;u=(b[m+(v*48|0)+18>>1]&1)==0;y=u?y:1;v=m+(v*48|0)+32|0;v=(c[v>>2]|0)!=0|(c[v+4>>2]|0)!=0;if(v|u^1)x=v?1:x;else a[l>>0]=1}else if((z|0)==1){u=m+(v*48|0)+32|0;a[o+5>>0]=(c[u>>2]|0)==0&(c[u+4>>2]|0)==0&1}else if((z|0)==2)a[o+5>>0]=b[m+(v*48|0)+18>>1]&1^1;else a[o+5>>0]=1;n=n+1|0;if((n|0)>=(p|0)){u=y;break}else o=o+12|0}}else u=y;bw(E|0,0,p<<3|0)|0;if(c[W>>2]|0)Sc(c[X>>2]|0);c[G+0>>2]=0;c[G+4>>2]=0;c[G+8>>2]=0;c[G+12>>2]=0;h[I>>3]=5.e+98;l=J;c[l>>2]=25;c[l+4>>2]=0;l=c[ga>>2]|0;v=K;while(1){v=c[v>>2]|0;if((c[v>>2]|0)==(l|0))break;else v=v+24|0}y=c[v+8>>2]|0;v=nc[c[(c[y>>2]|0)+12>>2]&127](y,ca)|0;do if((v|0)==7)a[(c[ga>>2]|0)+65>>0]=1;else if(v){l=c[y+8>>2]|0;if(l){c[ia>>2]=l;ph(ga,10344,ia);break}if((v|0)!=516){v=v&255;if(v>>>0>26|(v|0)==2)v=16328;else v=c[15488+(v<<2)>>2]|0}else v=16344;c[ia>>2]=v;ph(ga,10344,ia)}while(0);v=y+8|0;Sc(c[v>>2]|0);c[v>>2]=0;v=c[ca>>2]|0;if((v|0)>0){l=0;do{if((a[(c[_>>2]|0)+(l*12|0)+5>>0]|0)==0?(c[(c[aa>>2]|0)+(l<<3)>>2]|0)>0:0){c[ia>>2]=c[da>>2];ph(ga,34096,ia);v=c[ca>>2]|0}l=l+1|0}while((l|0)<(v|0))}l=c[L>>2]|0;if(l)break;y=c[_>>2]|0;t=ha;c[t>>2]=f;c[t+4>>2]=g;c:do if(O){v=0;do{c[(c[V>>2]|0)+(v<<2)>>2]=0;v=v+1|0}while((v|0)!=(F|0));b[P>>1]=0;if(O){n=f;m=g;l=0;t=0;v=-1;while(1){p=c[E+(t<<3)>>2]|0;q=p+-1|0;do if((p|0)>0){r=c[y+8>>2]|0;if((p|0)>(F|0)|(r|0)<0){ka=65;break b}if((r|0)>=(c[fa>>2]|0)){ka=65;break b}o=(c[V>>2]|0)+(q<<2)|0;if(c[o>>2]|0){ka=65;break b}s=c[ea>>2]|0;ma=s+(r*48|0)+32|0;n=n|c[ma>>2];m=m|c[ma+4>>2];ma=ha;c[ma>>2]=n;c[ma+4>>2]=m;c[o>>2]=s+(r*48|0);v=(q|0)>(v|0)?q:v;do if((p|0)<17){if(!(a[E+(t<<3)+4>>0]|0))break;l=(l&65535|1<<q)&65535;b[P>>1]=l}while(0);if(!(b[s+(r*48|0)+18>>1]&1))break;if(!(a[E+(t<<3)+4>>0]|0))break c;c[H>>2]=0}while(0);t=t+1|0;if((t|0)>=(F|0)){ka=73;break}else y=y+12|0}}else{v=-1;ka=73}}else{b[P>>1]=0;v=-1;ka=73}while(0);if((ka|0)==73){ka=0;b[B>>1]=v+1;c[Q>>2]=c[G>>2];a[D>>0]=c[W>>2];c[W>>2]=0;c[R>>2]=c[X>>2];if(!(c[H>>2]|0))v=0;else v=c[Y>>2]&255;a[S>>0]=v;b[A>>1]=0;w=+h[I>>3];h[k>>3]=w;v=c[k>>2]|0;l=c[k+4>>2]|0;do if(!(w<=1.0))if(!(w<=2.0e9)){v=iw(v|0,l|0,52)|0;v=fw(v|0,C|0,64514,0)|0;v=(v<<16>>16)*10&65535;break}else{v=bs(~~w>>>0,+N(w)>=1.0?(w>0.0?~~+$(+M(w/4294967296.0),4294967295.0)>>>0:~~+Z((w-+(~~w>>>0))/4294967296.0)>>>0):0)|0;break}else v=0;while(0);b[T>>1]=v;t=J;b[U>>1]=bs(c[t>>2]|0,c[t+4>>2]|0)|0;Bv(e,ha)|0;if(a[D>>0]|0){Sc(c[R>>2]|0);a[D>>0]=0}}v=z+1|0;if((v|0)>=4){l=0;break}else y=u}if((ka|0)==65){c[ia>>2]=c[da>>2];ph(ga,34064,ia);l=1}if(c[W>>2]|0)Sc(c[X>>2]|0);ig(ja,ca)}while(0);i=la;return l|0}function Du(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,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,ca=0,da=0;da=i;i=i+64|0;if((i|0)>=(j|0))ba();p=da;o=da+56|0;n=da+52|0;b[n>>1]=-1;$=c[f+12>>2]|0;aa=c[f>>2]|0;G=c[aa+4>>2]|0;H=d[$+16>>0]|0;W=G+(H*72|0)+8|0;m=G+(H*72|0)+24|0;I=c[m>>2]|0;X=c[f+4>>2]|0;Y=G+(H*72|0)+76|0;k=c[Y>>2]|0;do if(!k){if(a[I+44>>0]&32){p=c[I+8>>2]|0;break}k=p+0|0;l=k+52|0;do{c[k>>2]=0;k=k+4|0}while((k|0)<(l|0));b[p+46>>1]=1;b[p+48>>1]=1;c[p+4>>2]=n;c[p+8>>2]=o;a[p+50>>0]=5;c[p+12>>2]=I;b[p+44>>1]=b[I+42>>1]|0;b[o>>1]=b[I+28>>1]|0;b[o+2>>1]=0;if(!(a[G+(H*72|0)+45>>0]&1))c[p+20>>2]=c[(c[m>>2]|0)+8>>2]}else p=k;while(0);o=b[I+28>>1]|0;if(o<<16>>16<11)B=0;else{B=o<<16>>16;B=((bs(B,((B|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((c[f+16>>2]|0)==0?(b[aa+34>>1]&128)==0:0)?(c[(c[c[aa>>2]>>2]|0)+24>>2]&1048576|0)!=0:0)?(c[Y>>2]|0)==0:0)?(q=a[G+(H*72|0)+45>>0]|0,(q&5)==0):0)?(F=I+44|0,(q&10|a[F>>0]&32)<<24>>24==0):0)?(D=c[X+20>>2]|0,V=c[X+12>>2]|0,E=D+(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;r=(B&65535)+(o&65535)|0;n=r+4&65535;m=$+18|0;l=I+12|0;r=r+28&65535;s=$+22|0;t=$+20|0;u=$+36|0;o=D;do{q=o+32|0;V=q;U=v;if(((c[U>>2]&c[V>>2]|0)==0?(c[U+4>>2]&c[V+4>>2]|0)==0:0)?(Iu(o,W,0,0)|0)!=0:0){b[w>>1]=1;b[x>>1]=0;c[y>>2]=0;b[z>>1]=1;c[c[A>>2]>>2]=o;b[m>>1]=n;if((c[l>>2]|0)==0?(a[F>>0]&2)==0:0)b[m>>1]=r;b[s>>1]=43;b[t>>1]=Cv(B,43)|0;c[u>>2]=16384;U=q;V=c[U+4>>2]|h;k=$;c[k>>2]=c[U>>2]|g;c[k+4>>2]=V;k=Bv(f,$)|0}else k=0;o=o+48|0}while((k|0)==0&o>>>0<E>>>0)}else k=0;V=$+36|0;a:do if((k|0)==0&(p|0)!=0){M=$+24|0;N=$+42|0;O=$+40|0;P=$+17|0;Q=$+18|0;R=$+22|0;S=$+28|0;T=G+(H*72|0)+48|0;U=$+20|0;K=G+(H*72|0)+64|0;L=I+42|0;t=I+44|0;s=aa+34|0;r=X+12|0;G=X+20|0;J=1;while(1){u=c[p+36>>2]|0;v=c[T>>2]|0;b:do if(u){k=c[r>>2]|0;if((k|0)>0){m=0;n=c[G>>2]|0;while(1){l=c[n>>2]|0;if(Dv(l,u,v)|0){if(!(c[l+4>>2]&1)){ca=32;break b}if((b[l+36>>1]|0)==(v|0)){ca=32;break b}}m=m+1|0;if((m|0)>=(k|0)){k=0;break}else n=n+48|0}}else k=0}else ca=32;while(0);if((ca|0)==32){ca=0;H=b[c[p+8>>2]>>1]|0;b[M>>1]=0;b[N>>1]=0;b[O>>1]=0;a[P>>0]=0;b[Q>>1]=0;I=$;c[I>>2]=g;c[I+4>>2]=h;b[R>>1]=H;c[S>>2]=p;I=p+51|0;w=a[I>>0]|0;c:do if(((w&4)==0?(Z=c[(c[f>>2]|0)+8>>2]|0,(Z|0)!=0):0)?(_=c[Z>>2]|0,(_|0)>0):0){F=c[Z+4>>2]|0;E=p+46|0;y=p+4|0;x=0;while(1){B=c[F+(x*20|0)>>2]|0;d:do if(!B)B=0;else while(1){A=c[B+4>>2]|0;if(!(A&4096))break d;if(!(A&262144))B=B+12|0;else B=c[(c[B+20>>2]|0)+4>>2]|0;B=c[B>>2]|0;if(!B){B=0;break}}while(0);if((a[B>>0]|0)!=-102){x=0;break c}if((c[B+28>>2]|0)==(v|0)){A=b[B+32>>1]|0;if(A<<16>>16<0){x=1;break c}B=b[E>>1]|0;if(B<<16>>16){z=c[y>>2]|0;B=B&65535;D=0;do{if(A<<16>>16==(b[z+(D<<1)>>1]|0)){x=1;break c}D=D+1|0}while((D|0)<(B|0))}}x=x+1|0;if((x|0)>=(_|0)){x=0;break}}}else x=0;while(0);do if((c[p+40>>2]|0)<1){c[V>>2]=256;a[P>>0]=(x|0)!=0?J&255:0;b[U>>1]=(H&65535)+16;Ev(X,$,H);k=Bv(f,$)|0;b[R>>1]=H;if(k)break a}else{if(!(w&32)){E=K;F=c[E>>2]|0;E=c[E+4>>2]|0;D=p+4|0;B=0;A=0;z=e[p+48>>1]|0;e:while(1){y=z;while(1){z=y+-1|0;if((y|0)<=0)break e;y=b[(c[D>>2]|0)+(z<<1)>>1]|0;if((y&65535)<63)break;else y=z}q=ew(1,0,y<<16>>16|0)|0;B=q|B;A=C|A}q=F&~B;u=E&~A;B=q;A=u;u=(q|0)==0&(u|0)==0?576:512}else{B=0;A=0;u=576}c[V>>2]=u;q=(x|0)!=0;if(!q?(a[t>>0]&32)==0:0){if(!((B|0)==0&(A|0)==0))break;if(a[I>>0]&4)break;if((b[p+44>>1]|0)>=(b[L>>1]|0))break;if(!((b[s>>1]&4)==0&(c[2190]|0)!=0))break;if(b[(c[c[aa>>2]>>2]|0)+60>>1]&64)break}a[P>>0]=q?J&255:0;o=H<<16>>16;q=o+1+(((b[p+44>>1]|0)*15|0)/(b[L>>1]|0)|0)&65535;if(!((B|0)==0&(A|0)==0))q=Cv(q,o+16&65535)|0;b[U>>1]=q;Ev(X,$,H);k=Bv(f,$)|0;b[R>>1]=H;if(k)break a}while(0);k=Fv(f,W,p,0)|0;if(c[Y>>2]|0)break a}p=c[p+20>>2]|0;if(!((k|0)==0&(p|0)!=0))break;else J=J+1|0}}while(0);i=da;return k|0}function Eu(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,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,ca=0;$=i;i=i+608|0;if((i|0)>=(j|0))ba();Z=$+168|0;X=$+576|0;Y=$+112|0;V=$+56|0;W=$;k=c[f>>2]|0;S=c[f+4>>2]|0;o=c[S+20>>2]|0;n=c[S+12>>2]|0;U=o+(n*48|0)|0;R=c[f+12>>2]|0;l=Y+0|0;m=l+56|0;do{c[l>>2]=0;l=l+4|0}while((l|0)<(m|0));m=c[k+4>>2]|0;l=d[R+16>>0]|0;Q=c[m+(l*72|0)+48>>2]|0;a:do if((n|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=m+(l*72|0)+24|0;x=W+8|0;y=Y+8|0;z=V+8|0;while(1){b:do if((b[o+18>>1]&256)!=0?(T=c[o+12>>2]|0,t=T+408|0,s=A,!((c[s>>2]&c[t>>2]|0)==0?(c[s+4>>2]&c[t+4>>2]|0)==0:0)):0){n=T+20|0;v=(c[n>>2]|0)+((c[T+12>>2]|0)*48|0)|0;c[X+0>>2]=c[f+0>>2];c[X+4>>2]=c[f+4>>2];c[X+8>>2]=c[f+8>>2];c[X+12>>2]=c[f+12>>2];c[B>>2]=0;c[C>>2]=V;n=c[n>>2]|0;c:do if(n>>>0<v>>>0){l=1;k=0;d:while(1){if(!(b[n+18>>1]&512))if((c[n+8>>2]|0)==(Q|0)){c[Z>>2]=c[S>>2];c[L>>2]=S;a[M>>0]=72;c[N>>2]=1;c[O>>2]=n;m=Z;_=10}else m=l;else{m=c[n+12>>2]|0;_=10}do if((_|0)==10){_=0;c[P>>2]=m;b[V>>1]=0;if(!(a[(c[w>>2]|0)+44>>0]&16))k=Du(X,g,h)|0;else k=Cu(X,g,h)|0;if(!k)k=Eu(X,g,h)|0;m=b[V>>1]|0;if(!(m<<16>>16))break d;if(l){b[Y>>1]=m;gw(y|0,z|0,(m&65535)<<4|0)|0;m=0;break}t=b[Y>>1]|0;b[W>>1]=t;u=t&65535;gw(x|0,y|0,u<<4|0)|0;b[Y>>1]=0;if(!(t<<16>>16))m=0;else{t=0;do{if(!(m<<16>>16))m=0;else{p=W+(t<<4)+8|0;l=c[p>>2]|0;p=c[p+4>>2]|0;q=b[W+(t<<4)+16>>1]|0;r=b[W+(t<<4)+18>>1]|0;s=0;do{aa=V+(s<<4)+8|0;ca=c[aa>>2]|l;aa=c[aa+4>>2]|p;m=Cv(q,b[V+(s<<4)+16>>1]|0)|0;Gv(Y,ca,aa,m,Cv(r,b[V+(s<<4)+18>>1]|0)|0);s=s+1|0;m=b[V>>1]|0}while((s|0)<(m&65535|0))}t=t+1|0}while((t|0)<(u|0));m=0}}while(0);n=n+48|0;if(n>>>0>=v>>>0)break c;else l=m}b[Y>>1]=0}else k=0;while(0);b[D>>1]=1;c[c[E>>2]>>2]=o;c[F>>2]=8192;b[G>>1]=0;a[H>>0]=0;c[I+0>>2]=0;c[I+4>>2]=0;c[I+8>>2]=0;if(k)break a;n=e[Y>>1]|0;m=0;while(1){if((m|0)>=(n|0))break b;b[J>>1]=(e[Y+(m<<4)+16>>1]|0)+1;b[K>>1]=b[Y+(m<<4)+18>>1]|0;s=Y+(m<<4)+8|0;t=c[s+4>>2]|0;k=R;c[k>>2]=c[s>>2];c[k+4>>2]=t;k=Bv(f,R)|0;if(!k)m=m+1|0;else break a}}while(0);o=o+48|0;if(o>>>0>=U>>>0){k=0;break}}}else k=0;while(0);i=$;return k|0}function Fu(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=d+48|0;f=c[e>>2]|0;g=d+56|0;if((f|0)!=(g|0))ig(a,f);Hv(a,d);c[e>>2]=g;b[d+40>>1]=0;b[d+44>>1]=3;c[d+36>>2]=0;return}function Gu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+32|0;if((i|0)>=(j|0))ba();ca=la+24|0;Z=la+16|0;fa=la+8|0;ka=la;aa=c[d>>2]|0;ha=c[aa>>2]|0;o=a[d+41>>0]|0;ia=o&255;if((o&255)<2)V=1;else V=o<<24>>24==2?5:10;ja=d+8|0;l=c[ja>>2]|0;da=f<<16>>16==0;if((l|0)==0|da)U=0;else U=c[l>>2]|0;m=U<<1;ga=m+(_((ia<<3)+64|0,V)|0)|0;ga=ih(ha,ga,((ga|0)<0)<<31>>31)|0;do if(ga){l=ga+(V<<5)|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;c[l+16>>2]=0;c[l+20>>2]=0;c[l+24>>2]=0;c[l+28>>2]=0;g=V<<1;n=_(V,-2)|0;n=ga+((_((((n|0)>-1?n:1073741823)+(V<<1)<<2)+4|0,ia)|0)+(V<<6))|0;k=g;h=ga;g=ga+(g<<5)|0;while(1){c[h+24>>2]=g;k=k+-1|0;if((k|0)<=0)break;else{h=h+32|0;g=g+(ia<<2)|0}}k=(U|0)!=0;if(k)bw(n|0,0,m|0)|0;else n=0;T=c[aa+424>>2]|0;b[ga+(V<<5)+16>>1]=T>>>0<48?T&65535:48;if(k)a[ga+(V<<5)+22>>0]=o<<24>>24!=0?-1:U&255;T=o<<24>>24==0;if(!T){P=d+16|0;Q=d+34|0;R=f<<16>>16<11;S=(f&65535)+16|0;M=f<<16>>16;N=((M|0)<0)<<31>>31;O=V>>>0>1;g=ga;L=0;m=0;o=0;f=0;h=1;while(1){if((h|0)>0){G=L&65535;H=L<<2;I=g+18|0;J=g+16|0;K=0;k=0;F=l;while(1){p=c[P>>2]|0;if(p){A=F+22|0;B=F+16|0;C=F+20|0;D=F+24|0;E=F+8|0;z=k;while(1){r=a[A>>0]|0;s=Z;c[s>>2]=0;c[s+4>>2]=0;s=p;k=F;q=c[k>>2]|0;k=c[k+4>>2]|0;a:do if(((c[s>>2]&~q|0)==0?(c[s+4>>2]&~k|0)==0:0)?(W=p+8|0,Y=W,X=c[Y>>2]|0,Y=c[Y+4>>2]|0,(X&q|0)==0&(Y&k|0)==0):0){v=e[B>>1]|0;x=Cv(b[p+18>>1]|0,v+(e[p+20>>1]|0)&65535)|0;x=Cv(x,b[C>>1]|0)|0;v=(e[p+22>>1]|0)+v|0;y=v&65535;u=X|q;s=Y|k;if(r<<24>>24<0)w=Iv(d,c[ja>>2]|0,F,b[Q>>1]|0,G,p,Z)|0;else{k=E;q=c[k+4>>2]|0;w=Z;c[w>>2]=c[k>>2];c[w+4>>2]=q;w=r}r=w<<24>>24;if(w<<24>>24>-1&(U|0)>(r|0)){t=n+(r<<1)|0;q=b[t>>1]|0;if(!(q<<16>>16)){r=((U-r|0)*100|0)/(U|0)|0;r=(bs(r,((r|0)<0)<<31>>31)|0)&65535;if(R)k=0;else k=((bs(M,N)|0)&65535)+65503&65535;r=S+(((r<<16)+-4325376|0)>>>16)+k|0;if(b[Q>>1]&1024)r=(r&65535)+16|0;q=r&65535;b[t>>1]=q}t=Cv(x,q)|0}else t=x;b:do if((z|0)>0){r=0;q=g;while(1){k=q;if(((c[k>>2]|0)==(u|0)?(c[k+4>>2]|0)==(s|0):0)?(a[q+22>>0]^w)<<24>>24>-1:0)break;r=r+1|0;if((r|0)>=(z|0)){$=35;break b}else q=q+32|0}k=b[q+18>>1]|0;if(k<<16>>16<t<<16>>16){k=z;break a}if(k<<16>>16!=t<<16>>16){k=z;break}if((b[q+16>>1]|0)>(v<<16>>16|0))k=z;else{k=z;break a}}else $=35;while(0);if(($|0)==35){$=0;q=(z|0)<(V|0);if(!q){if(t<<16>>16>m<<16>>16){k=z;break}if(!(t<<16>>16!=m<<16>>16?1:x<<16>>16<f<<16>>16)){k=z;break}}k=(q&1)+z|0;q=g+((q?z:o)<<5)|0}r=F;v=W;s=c[v+4>>2]|c[r+4>>2];u=q;c[u>>2]=c[v>>2]|c[r>>2];c[u+4>>2]=s;u=Z;s=c[u+4>>2]|0;r=q+8|0;c[r>>2]=c[u>>2];c[r+4>>2]=s;b[q+16>>1]=y;b[q+18>>1]=t;b[q+20>>1]=x;a[q+22>>0]=w;q=q+24|0;gw(c[q>>2]|0,c[D>>2]|0,H|0)|0;c[(c[q>>2]|0)+(L<<2)>>2]=p;if((k|0)<(V|0))break;m=b[I>>1]|0;f=b[J>>1]|0;if(O){s=g;t=1;r=m;o=0;q=f}else{o=0;break}while(1){m=b[s+50>>1]|0;do if(m<<16>>16<=r<<16>>16){if(m<<16>>16!=r<<16>>16){m=r;f=q;break}f=b[s+52>>1]|0;if(f<<16>>16>q<<16>>16)$=48;else{m=r;f=q}}else{f=b[s+52>>1]|0;$=48}while(0);s=s+32|0;if(($|0)==48){$=0;o=t}t=t+1|0;if((t|0)>=(V|0))break;else{r=m;q=f}}}else k=z;while(0);p=c[p+52>>2]|0;if(!p)break;else z=k}}K=K+1|0;if((K|0)==(h|0)){h=k;break}else F=F+32|0}}else h=0;L=L+1|0;if((L|0)>=(ia|0))break;else{K=g;g=l;l=K}}if(!h){ph(aa,34008,ca);ig(ha,ga);break}if((h|0)>1){k=1;l=g;do{if((b[l+18>>1]|0)>(b[g+(k<<5)+18>>1]|0))l=g+(k<<5)|0;k=k+1|0}while((k|0)!=(h|0))}else l=g;if(!T){h=d+4|0;k=c[l+24>>2]|0;g=0;do{$=c[k+(g<<2)>>2]|0;c[d+(g*80|0)+800>>2]=$;$=a[$+16>>0]|0;a[d+(g*80|0)+780>>0]=$;c[d+(g*80|0)+740>>2]=c[(c[h>>2]|0)+(($&255)*72|0)+48>>2];g=g+1|0}while((g|0)<(ia|0))}}h=d+34|0;if(((b[h>>1]&1536)==1024?(ea=d+40|0,!((a[ea>>0]|0)!=0|da)):0)?($=d+12|0,Z=ia+-1|0,Z=(Iv(d,c[$>>2]|0,l,512,Z&65535,c[(c[l+24>>2]|0)+(Z<<2)>>2]|0,fa)|0)<<24>>24,(Z|0)==(c[c[$>>2]>>2]|0)):0)a[ea
8 else{if((Qo(e)|0)!=0?(f=Ro(e)|0,(f|0)!=0):0)break;f=sl(d,e,0,0)|0;k=16}while(0);if((k|0)==16)if(!f){tl(e);f=0;break}g=f&255;if((g|0)==10|(g|0)==13){c[j>>2]=f;a[d+16>>0]=6}}else f=0;while(0);return f|0}function up(d){d=d|0;var e=0;e=c[d+8>>2]|0;if((a[e>>0]|0)!=0?(a[e>>0]=0,(b[d+26>>1]|0)>1):0)Xp(e)|0;return}function vp(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;m=o+8|0;do if(!(c[h>>2]|0)){if(!e){c[n>>2]=53856;c[n+4>>2]=10788;Zc(11,13600,n);c[h>>2]=11;break}if(e>>>0<2)k=0;else{k=e+-2|0;k=k-((k>>>0)%(((((c[b+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(((c[2514]|0)>>>0)/((c[b+32>>2]|0)>>>0)|0|0)?3:2)+k|0}l=vg(c[b>>2]|0,k,m,0)|0;if(l){c[h>>2]=l;break}e=(e-k|0)*5|0;l=e+-5|0;do if((l|0)>=0){k=c[m>>2]|0;b=c[k+4>>2]|0;l=b+l|0;if((a[l>>0]|0)==f<<24>>24?(d[b+(e+-3)>>0]<<16|d[b+(e+-4)>>0]<<24|d[b+(e+-2)>>0]<<8|d[b+(e+-1)>>0]|0)==(g|0):0)break;m=Cg(k)|0;c[h>>2]=m;if(!m){a[l>>0]=f;a[b+(e+-4)>>0]=g>>>24;a[b+(e+-3)>>0]=g>>>16;a[b+(e+-2)>>0]=g>>>8;a[b+(e+-1)>>0]=g}}else{c[n>>2]=53867;c[n+4>>2]=10788;Zc(11,13600,n);c[h>>2]=11;k=c[m>>2]|0}while(0);if(k)xg(k)}while(0);i=o;return}function wp(a,b,c){a=a|0;b=b|0;c=c|0;return Gm(a,b,c,0)|0}function xp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;j=d[f>>0]&63;h=f+j|0;l=c[g+8>>2]|0;k=c[l>>2]|0;l=c[l+4>>2]|0;switch(d[f+1>>0]|0){case 1:{h=a[h>>0]|0;i=((h|0)<0)<<31>>31;m=11;break}case 6:{i=d[f+(j+1)>>0]<<16|d[h>>0]<<24|d[f+(j+2)>>0]<<8|d[f+(j+3)>>0];h=d[f+(j+5)>>0]<<16|d[f+(j+4)>>0]<<24|d[f+(j+6)>>0]<<8|d[f+(j+7)>>0];m=11;break}case 7:case 0:{h=Gm(b,f,g,0)|0;break}case 9:{i=0;h=1;m=11;break}case 3:{h=d[f+(j+1)>>0]<<8|a[h>>0]<<16|d[f+(j+2)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 4:{h=d[f+(j+1)>>0]<<16|d[h>>0]<<24|d[f+(j+2)>>0]<<8|d[f+(j+3)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 8:{i=0;h=0;m=11;break}case 2:{h=a[h>>0]<<8|d[f+(j+1)>>0];i=((h|0)<0)<<31>>31;m=11;break}case 5:{i=a[h>>0]<<8|d[f+(j+1)>>0];h=d[f+(j+3)>>0]<<16|d[f+(j+2)>>0]<<24|d[f+(j+4)>>0]<<8|d[f+(j+5)>>0];m=11;break}default:h=Gm(b,f,g,0)|0}do if((m|0)==11){if((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>h>>>0){h=c[g+12>>2]|0;break}if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<h>>>0){h=c[g+16>>2]|0;break}if((e[g+4>>1]|0)>1){h=Gm(b,f,g,1)|0;break}else{h=a[g+6>>0]|0;break}}while(0);return h|0}function yp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;l=o+8|0;h=f+1|0;k=a[h>>0]|0;if(k<<24>>24>-1){h=k&255;c[l>>2]=h}else{im(h,l)|0;h=c[l>>2]|0}do if((h|0)>=12){if(!(h&1)){h=c[g+16>>2]|0;break}l=d[f>>0]|0;m=(h+-12|0)/2|0;if((l+m|0)>(b|0)){c[n>>2]=68550;c[n+4>>2]=10788;Zc(11,13600,n);a[g+7>>0]=11;h=0;break}h=c[g+8>>2]|0;k=c[h+12>>2]|0;h=Vv(f+l|0,c[h+16>>2]|0,(m|0)>(k|0)?k:m)|0;if(h)if((h|0)>0){h=c[g+16>>2]|0;break}else{h=c[g+12>>2]|0;break}if((m|0)==(k|0))if((e[g+4>>1]|0)>1){h=Gm(b,f,g,1)|0;break}else{h=a[g+6>>0]|0;break}else if((m-k|0)>0){h=c[g+16>>2]|0;break}else{h=c[g+12>>2]|0;break}}else h=c[g+12>>2]|0;while(0);i=o;return h|0}function zp(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;m=f+73|0;h=a[m>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Gn(f)|0;if(h)break;h=a[m>>0]|0}if(!(h<<24>>24)){c[g>>2]=1;h=0;break}h=f+68|0;i=c[h>>2]|0;if((i|0)!=0?(a[m>>0]=1,c[h>>2]=0,(i|0)>0):0)h=0;else n=9}else n=9;while(0);do if((n|0)==9){l=f+76|0;h=b[l>>1]|0;i=c[f+(h<<2)+120>>2]|0;h=f+(h<<1)+78|0;j=(b[h>>1]|0)+1<<16>>16;b[h>>1]=j;h=(a[i+5>>0]|0)!=0;if((j&65535)<(e[i+18>>1]|0)){if(h){h=0;break}h=Rm(f)|0;break}if(!h){h=d[i+6>>0]|0;i=c[i+56>>2]|0;h=nm(f,d[i+(h+9)>>0]<<16|d[i+(h+8)>>0]<<24|d[i+(h+10)>>0]<<8|d[i+(h+11)>>0])|0;if(h)break;h=Rm(f)|0;break}j=f+44|0;k=f+72|0;i=b[l>>1]|0;do{if(!(i<<16>>16)){n=15;break}h=c[f+(i<<16>>16<<2)+120>>2]|0;if(h){xg(c[h+68>>2]|0);i=b[l>>1]|0}i=i+-1<<16>>16;b[l>>1]=i;b[j>>1]=0;a[k>>0]=d[k>>0]&249;o=i<<16>>16;h=c[f+(o<<2)+120>>2]|0}while((e[f+(o<<1)+78>>1]|0)>=(e[h+18>>1]|0));if((n|0)==15){c[g>>2]=1;a[m>>0]=0;h=0;break}if(!(a[h+2>>0]|0))h=0;else h=zm(f,g)|0}while(0);return h|0}function Ap(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;p=f+73|0;h=a[p>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Gn(f)|0;if(h)break;h=a[p>>0]|0}if(!(h<<24>>24)){c[g>>2]=1;h=0;break}h=f+68|0;i=c[h>>2]|0;if((i|0)!=0?(a[p>>0]=1,c[h>>2]=0,(i|0)<0):0)h=0;else j=9}else j=9;while(0);a:do if((j|0)==9){o=f+76|0;k=b[o>>1]|0;l=k<<16>>16;j=c[f+(l<<2)+120>>2]|0;i=f+(l<<1)+78|0;h=b[i>>1]|0;if(!(a[j+5>>0]|0)){g=c[j+56>>2]|0;h=(h&65535)<<1;p=c[j+64>>2]|0;h=(d[p+h>>0]<<8|d[p+(h|1)>>0])&e[j+20>>1];h=nm(f,d[g+(h+1)>>0]<<16|d[g+h>>0]<<24|d[g+(h+2)>>0]<<8|d[g+(h+3)>>0])|0;if(h)break;h=Bp(f)|0;break}b:do if(!(h<<16>>16)){m=f+44|0;n=f+72|0;j=l;while(1){if(!(k<<16>>16))break;i=c[f+(j<<2)+120>>2]|0;if(!i)i=k;else{xg(c[i+68>>2]|0);i=b[o>>1]|0}k=i+-1<<16>>16;b[o>>1]=k;b[m>>1]=0;a[n>>0]=d[n>>0]&249;j=k<<16>>16;i=f+(j<<1)+78|0;h=b[i>>1]|0;if(h<<16>>16)break b}a[p>>0]=0;c[g>>2]=1;h=0;break a}while(0);b[i>>1]=h+-1<<16>>16;p=c[f+(b[o>>1]<<2)+120>>2]|0;if((a[p+2>>0]|0)!=0?(a[p+5>>0]|0)==0:0)h=Am(f,g)|0;else h=0}while(0);return h|0}function Bp(f){f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=f+76|0;do{h=b[i>>1]|0;g=c[f+(h<<2)+120>>2]|0;if(a[g+5>>0]|0){j=4;break}k=d[g+6>>0]|0;l=c[g+56>>2]|0;k=d[l+(k+9)>>0]<<16|d[l+(k+8)>>0]<<24|d[l+(k+10)>>0]<<8|d[l+(k+11)>>0];b[f+(h<<1)+78>>1]=b[g+18>>1]|0;g=nm(f,k)|0}while((g|0)==0);if((j|0)==4){b[f+(h<<1)+78>>1]=(e[g+18>>1]|0)+65535;g=0}return g|0}function Cp(a,d,e,f,g,h){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+224|0;if((i|0)>=(j|0))ba();m=o;k=o+8|0;c[k>>2]=0;do if(d){l=a+16|0;n=Bm(c[l>>2]|0,o+16|0,200,k)|0;if(n){Cm(c[l>>2]|0,e,d,n);if(!(b[n+4>>1]|0)){ig(c[(c[l>>2]|0)+12>>2]|0,c[k>>2]|0);c[m>>2]=53713;c[m+4>>2]=10788;Zc(11,13600,m);k=11;break}l=c[k>>2]|0;k=ym(a,n,e,f,g,h)|0;if(l)ig(c[(c[a+16>>2]|0)+12>>2]|0,l)}else k=7}else k=ym(a,0,e,f,g,h)|0;while(0);i=o;return k|0}function Dp(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+48|0;if((i|0)>=(j|0))ba();r=s+24|0;h=s;p=s+36|0;q=s+32|0;n=c[a+52>>2]|0;np(a,f,h);b[g>>1]=b[h+20>>1]|0;g=b[h+18>>1]|0;a:do if(g<<16>>16){k=g&65535;l=f+(k+3)|0;if(l>>>0>((c[a+56>>2]|0)+(e[a+20>>1]|0)|0)>>>0){c[r>>2]=58720;c[r+4>>2]=10788;Zc(11,13600,r);g=11;break}g=(c[n+36>>2]|0)+-4|0;g=(((c[h+12>>2]|0)+-1+g-(e[h+16>>1]|0)|0)>>>0)/(g>>>0)|0;if(g){m=n+44|0;a=g;k=d[f+(k+1)>>0]<<16|d[f+k>>0]<<24|d[f+(k+2)>>0]<<8|d[l>>0];while(1){a=a+-1|0;c[p>>2]=0;c[q>>2]=0;if(k>>>0<2)break;if(k>>>0>(c[m>>2]|0)>>>0)break;f=(a|0)==0;if(!f){g=Ip(n,k,q,p)|0;if(g)break a;g=c[q>>2]|0;if(g)l=13;else l=12}else l=12;if((l|0)==12){g=Up(n,k)|0;c[q>>2]=g;if(!g){g=0;l=15}else l=13}if((l|0)==13){l=0;if((b[(c[g+68>>2]|0)+26>>1]|0)==1)l=15;else{c[r>>2]=58754;c[r+4>>2]=10788;Zc(11,13600,r);g=11}}if((l|0)==15)g=Um(n,g,k)|0;h=c[q>>2]|0;if((h|0)!=0?(o=c[h+68>>2]|0,(o|0)!=0):0)xg(o);if(g)break a;if(f){g=0;break a}else k=c[p>>2]|0}c[r>>2]=58734;c[r+4>>2]=10788;Zc(11,13600,r);g=11}else g=0}else g=0;while(0);i=s;return g|0}function Ep(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();m=w;do if(!(c[k>>2]|0)){s=c[f+56>>2]|0;t=g<<1;u=c[f+64>>2]|0;v=u+t|0;l=(d[v>>0]|0)<<8|(d[u+(t|1)>>0]|0);n=f+6|0;o=d[n>>0]|0;p=s+(o+5)|0;q=s+(o+6)|0;if(l>>>0>=((d[p>>0]|0)<<8|(d[q>>0]|0))>>>0?(r=f+52|0,(l+h|0)>>>0<=(c[(c[r>>2]|0)+36>>2]|0)>>>0):0){h=yq(f,l&65535,h&65535)|0;if(h){c[k>>2]=h;break}h=f+18|0;l=(b[h>>1]|0)+-1<<16>>16;b[h>>1]=l;if(!(l<<16>>16)){k=s+(o+1)|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;a[s+(o+7)>>0]=0;a[p>>0]=(c[(c[r>>2]|0)+36>>2]|0)>>>8;a[q>>0]=c[(c[r>>2]|0)+36>>2];b[f+16>>1]=(c[(c[r>>2]|0)+36>>2]|0)+65528-(d[n>>0]|0)-(d[f+7>>0]|0);break}else{hw(v|0,u+(t+2)|0,(l&65535)-g<<1|0)|0;a[s+(o+3)>>0]=(e[h>>1]|0)>>>8;a[s+(o+4)>>0]=b[h>>1];s=f+16|0;b[s>>1]=(e[s>>1]|0)+2;break}}c[m>>2]=58991;c[m+4>>2]=10788;Zc(11,13600,m);c[k>>2]=11}while(0);i=w;return}function Fp(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+16|0;if((i|0)>=(j|0))ba();p=D;z=D+12|0;v=D+8|0;a:do if(!(c[n>>2]|0)){o=f+1|0;if((a[o>>0]|0)==0?(B=k+2|0,C=f+16|0,(B|0)<=(e[C>>1]|0)):0){l=Cg(c[f+68>>2]|0)|0;if(l){c[n>>2]=l;break}w=c[f+56>>2]|0;q=e[f+14>>1]|0;x=f+18|0;y=e[x>>1]<<1;s=g<<1;t=q+s|0;u=f+6|0;l=d[u>>0]|0;c[z>>2]=0;g=y+q|0;q=w+(l+5)|0;r=w+(l+6)|0;o=((d[q>>0]<<8|d[r>>0])+65535&65535)+1|0;b:do if((g|0)>(o|0)){c[p>>2]=54326;c[p+4>>2]=10788;Zc(11,13600,p);l=11}else{p=g+2|0;do if((p|0)<=(o|0)){if((a[w+(l+1)>>0]|0)==0?(a[w+(l+2)>>0]|0)==0:0){A=20;break}c[v>>2]=0;g=zq(f,k,z,v)|0;l=c[z>>2]|0;if(l)break b;if(!(c[v>>2]|0))if(!g)A=20;else o=g-w|0;else A=21}else A=20;while(0);if((A|0)==20)if((p+k|0)>(o|0))A=21;else A=23;if((A|0)==21){l=Aq(f)|0;c[z>>2]=l;if(l)break;o=((d[q>>0]<<8|d[r>>0])+65535&65535)+1|0;A=23}if((A|0)==23){o=o-k|0;a[q>>0]=o>>>8;a[r>>0]=o}b[x>>1]=(b[x>>1]|0)+1<<16>>16;b[C>>1]=(e[C>>1]|0)-B;l=w+o|0;gw(l|0,h|0,k|0)|0;if(m){a[l>>0]=m>>>24;a[w+(o+1)>>0]=m>>>16;a[w+(o+2)>>0]=m>>>8;a[w+(o+3)>>0]=m}m=w+t|0;hw(w+(t+2)|0,m|0,y-s|0)|0;a[m>>0]=o>>>8;a[w+(t+1)>>0]=o;a[w+((d[u>>0]|0)+3)>>0]=(e[x>>1]|0)>>>8;a[w+((d[u>>0]|0)+4)>>0]=b[x>>1];if(!(a[(c[f+52>>2]|0)+17>>0]|0))break a;Bq(f,h,n);break a}while(0);c[n>>2]=l;break}if(!l)l=h;else gw(l|0,h|0,k|0)|0;if(m){a[l>>0]=m>>>24;a[l+1>>0]=m>>>16;a[l+2>>0]=m>>>8;a[l+3>>0]=m}n=a[o>>0]|0;a[o>>0]=n+1<<24>>24;n=n&255;c[f+(n<<2)+32>>2]=l;b[f+(n<<1)+22>>1]=g}while(0);i=D;return}function Gp(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0;Oa=i;i=i+240|0;if((i|0)>=(j|0))ba();Na=Oa+24|0;Ka=Oa+200|0;Aa=Oa+188|0;za=Oa+168|0;ya=Oa+160|0;Ba=Oa+136|0;Ca=Oa+116|0;Ma=Oa+96|0;Ha=Oa+92|0;xa=Oa+229|0;wa=Oa+72|0;va=Oa+52|0;ua=Oa+206|0;Ga=Oa+48|0;Da=Oa;Fa=Oa+44|0;Ja=Oa+40|0;Ia=Oa+36|0;Ea=Oa+32|0;La=Oa+204|0;ta=Oa+216|0;ea=f+4|0;ma=(c[(c[ea>>2]|0)+36>>2]<<1>>>0)/3|0;na=f+76|0;qa=f+74|0;ra=ta+4|0;sa=ta;fa=f+124|0;ka=f+78|0;la=f+80|0;l=b[na>>1]|0;da=0;while(1){m=l<<16>>16;n=c[f+(m<<2)+120>>2]|0;o=n+1|0;h=(a[o>>0]|0)==0;if(!(l<<16>>16)){if(h){h=da;g=0;break}c[Ka>>2]=0;c[Aa>>2]=0;k=c[n+52>>2]|0;g=Cg(c[n+68>>2]|0)|0;c[Na>>2]=g;do if(!g){h=n+72|0;c[Na>>2]=ep(k,Ka,Aa,c[h>>2]|0,0)|0;l=c[Ka>>2]|0;Cq(n,l,Na);if(a[k+17>>0]|0)vp(k,c[Aa>>2]|0,5,c[h>>2]|0,Na);g=c[Na>>2]|0;if(!g){gw(l+22|0,n+22|0,d[o>>0]<<1|0)|0;gw(l+32|0,n+32|0,d[o>>0]<<2|0)|0;a[l+1>>0]=a[o>>0]|0;ll(n,d[c[l+56>>2]>>0]&247);g=d[n+6>>0]|0;$=c[n+56>>2]|0;_=c[Aa>>2]|0;a[$+(g+8)>>0]=_>>>24;a[$+(g+9)>>0]=_>>>16;a[$+(g+10)>>0]=_>>>8;a[$+(g+11)>>0]=_;c[fa>>2]=l;g=0;break}c[fa>>2]=0;if(l)xg(c[l+68>>2]|0)}else c[fa>>2]=0;while(0);if(g){h=da;break}b[na>>1]=1;b[ka>>1]=0;b[la>>1]=0;l=c[fa>>2]|0;k=l+1|0;if(!(a[k>>0]|0)){h=1;m=1;ca=15}else{p=1;m=1;o=k}}else if(h){h=l;l=n;k=o;ca=15}else{p=l;l=n}if((ca|0)==15){ca=0;if((e[l+16>>1]|0)>>>0>ma>>>0){p=h;o=k}else{h=da;g=0;break}}k=m+-1|0;aa=c[f+(k<<2)+120>>2]|0;k=b[f+(k<<1)+78>>1]|0;q=k&65535;g=Cg(c[aa+68>>2]|0)|0;do if(!g){if(((((a[l+3>>0]|0)!=0?(a[o>>0]|0)==1:0)?(ga=b[l+22>>1]|0,ha=l+18|0,ga<<16>>16==(b[ha>>1]|0)):0)?(ia=aa+72|0,(c[ia>>2]|0)!=1):0)?(ja=aa+18|0,(b[ja>>1]|0)==k<<16>>16):0){k=c[l+52>>2]|0;if(!(ga<<16>>16)){c[Na>>2]=59423;c[Na+4>>2]=10788;Zc(11,13600,Na);h=da;g=11;break}$=ep(k,Fa,Ia,0,0)|0;c[Ja>>2]=$;if(!$){h=c[l+32>>2]|0;c[Ea>>2]=h;g=Hp(l,h)|0;b[La>>1]=g;m=c[Fa>>2]|0;ll(m,13);Dq(m,1,Ea,La);b[m+16>>1]=65534-(g&65535)+(c[k+36>>2]|0)-(e[m+14>>1]|0);if((a[k+17>>0]|0)!=0?(vp(k,c[Ia>>2]|0,5,c[ia>>2]|0,Ja),(g&65535)>(e[m+12>>1]|0)):0)Bq(m,h,Ja);$=c[l+56>>2]|0;k=e[ha>>1]<<1;h=c[l+64>>2]|0;k=(d[h+(k+-2)>>0]<<8|d[h+(k+-1)>>0])&e[l+20>>1];h=$+k|0;c[Ea>>2]=h;k=$+(k+9)|0;while(1){g=h+1|0;if((a[h>>0]|0)<0&g>>>0<k>>>0)h=g;else break}c[Ea>>2]=g;k=h+10|0;m=ra;while(1){c[Ea>>2]=g+1;$=a[g>>0]|0;h=m+1|0;a[m>>0]=$;g=c[Ea>>2]|0;if(!($<<24>>24<0&g>>>0<k>>>0))break;else m=h}Fp(aa,e[ja>>1]|0,ta,h-sa|0,0,c[l+72>>2]|0,Ja);h=d[aa+6>>0]|0;$=c[aa+56>>2]|0;_=c[Ia>>2]|0;a[$+(h+8)>>0]=_>>>24;a[$+(h+9)>>0]=_>>>16;a[$+(h+10)>>0]=_>>>8;a[$+(h+11)>>0]=_;h=c[Fa>>2]|0;if(h)xg(c[h+68>>2]|0)}h=da;g=c[Ja>>2]|0;break}h=Co(c[(c[ea
11 function iq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,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,ca=0,da=0,ea=0;ea=i;i=i+192|0;if((i|0)>=(j|0))ba();_=ea+48|0;Y=ea+24|0;X=ea+160|0;F=ea+156|0;P=ea+152|0;I=ea+148|0;S=ea+144|0;L=ea+140|0;E=ea+16|0;ca=ea;v=ea+128|0;u=ea+116|0;w=ea+96|0;l=ea0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 206:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=0;break}case 207:{Z=f+(aa<<4)+16|0;_=c[Z+4>>2]|0;$=ca;c[$>>2]=c[Z>>2];c[$+4>>2]=_;c[ca+8>>2]=1;break}case 208:{l=aa+-2|0;_=aa+-1|0;h=sr($,hr($,hr($,0,c[f+(aa<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 210:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(aa<<4)+14>>0]|0,c[f+(_<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 209:{l=aa+-4|0;_=aa+-3|0;h=sr($,hr($,hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(l<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0,f+(_<<4)+16|0)|0;c[ca>>2]=h;if(c[f+(_<<4)+24>>2]|0){h=Vq($,19,h,0,0)|0;c[ca>>2]=h}c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];if(h){$=h+4|0;c[$>>2]=c[$>>2]|128}break}case 223:{l=f+(aa+-1<<4)+16|0;h=c[l>>2]|0;do if(h){if((c[h>>2]|0)==1){_=c[h+4>>2]|0;h=c[_>>2]|0;c[_>>2]=0;Jk(c[$>>2]|0,c[l>>2]|0);if(h){_=h+4|0;c[_>>2]=c[_>>2]&-769|512}c[ca>>2]=Vq($,(c[f+(aa+-3<<4)+16>>2]|0)!=0?78:79,c[f+(aa+-4<<4)+16>>2]|0,h,0)|0;break}h=Vq($,75,c[f+(aa+-4<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h){Jk(c[$>>2]|0,c[l>>2]|0);h=0}else{c[h+20>>2]=c[l>>2];h=c[ca>>2]|0;ur($,h)}if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,h,0,0)|0}else{c[ca>>2]=Vq($,132,0,0,20616+(c[f+(aa+-3<<4)+16>>2]<<3)|0)|0;Ck(c[$>>2]|0,c[f+(aa+-4<<4)+16>>2]|0)}while(0);c[ca+4>>2]=c[f+(aa+-4<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 211:{_=aa+-2|0;c[ca>>2]=Vq($,77,c[f+(_<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+20>>2];c[ca+8>>2]=(c[f+(aa<<4)+16>>2]|0)+(c[f+(aa<<4)+20>>2]|0);break}case 212:{Y=aa+-2|0;Z=f+(aa<<4)+16|0;_=Vq($,73,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,76);break}case 213:{Y=aa+-3|0;Z=f+(aa<<4)+16|0;_=Vq($,148,c[f+(Y<<4)+16>>2]|0,c[Z>>2]|0,0)|0;c[ca>>2]=_;c[ca+4>>2]=c[f+(Y<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];tr($,c[Z>>2]|0,_,77);break}case 215:case 214:{_=aa+-1|0;c[ca>>2]=Vq($,d[f+(_<<4)+14>>0]|0,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(_<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 216:{c[ca>>2]=Vq($,157,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 217:{c[ca>>2]=Vq($,158,c[f+(aa<<4)+16>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(aa+-1<<4)+16>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 220:{k=hr($,hr($,0,c[f+(aa+-2<<4)+16>>2]|0)|0,c[f+(aa<<4)+16>>2]|0)|0;l=aa+-4|0;h=Vq($,74,c[f+(l<<4)+16>>2]|0,0,0)|0;c[ca>>2]=h;if(!h)Jk(c[$>>2]|0,k);else c[h+20>>2]=k;if(c[f+(aa+-3<<4)+16>>2]|0)c[ca>>2]=Vq($,19,c[ca>>2]|0,0,0)|0;c[ca+4>>2]=c[f+(l<<4)+20>>2];c[ca+8>>2]=c[f+(aa<<4)+24>>2];break}case 116:{c[ca>>2]=116;break}case 121:{h=gr($,c[f+(aa+-1<<4)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}else{a[h+4>>0]=116;c[h+52>>2]=c[f+(aa+-4<<4)+16>>2];c[ca>>2]=h;break a}}case 122:{b[ca>>1]=1;break}case 124:case 123:{b[ca>>1]=0;break}case 243:case 125:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 242:case 236:case 161:case 154:case 126:{c[ca>>2]=0;break}case 127:{l=aa+-1|0;n=hr($,c[f+(aa+-2<<4)+16>>2]|0,c[f+(l<<4)+16>>2]|0)|0;c[ca>>2]=n;if(c[f+(aa<<4)+20>>2]|0)ir($,n,f+(aa<<4)+16|0,1);p=c[$>>2]|0;if(n){o=(c[n+4>>2]|0)+(((c[n>>2]|0)+-1|0)*20|0)+8|0;ig(p,c[o>>2]|0);m=c[f+(l<<4)+20>>2]|0;n=(c[f+(l<<4)+24>>2]|0)-m|0;if((m|0)!=0?(h=fw(n|0,((n|0)<0)<<31>>31|0,1,0)|0,h=ih(p,h,C)|0,(h|0)!=0):0){gw(h|0,m|0,n|0)|0;a[h+n>>0]=0}else h=0;c[o>>2]=h}break}case 133:{l=ih(c[$>>2]|0,80,0)|0;if(l){v=l+0|0;k=v+80|0;do{a[v>>0]=0;v=v+1|0}while((v|0)<(k|0))}c[ca>>2]=l;break}case 134:{n=c[f+(aa<<4)+16>>2]|0;c[ca>>2]=n;if(n){l=c[n>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[n+(k*72|0)+44>>0]=a[n+((l+-2|0)*72|0)+44>>0]|0;l=k+-1|0;if((l|0)>0){$=k;k=l;l=$}else break}a[n+44>>0]=0}break}case 128:{Z=c[$>>2]|0;c[_>>2]=0;c[_+4>>2]=0;_=jr(Z,116,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-1<<4)+16>>2]|0,_)|0;break}case 132:{c[ca+4>>2]=0;break}case 129:{_=Vq($,116,0,0,f+(aa<<4)+16|0)|0;_=Vq($,122,Vq($,27,0,0,f+(aa+-2<<4)+16|0)|0,_,0)|0;c[ca>>2]=hr($,c[f+(aa+-3<<4)+16>>2]|0,_)|0;break}case 136:{c[ca>>2]=0;break}case 137:{_=fr($,c[f+(aa+-6<<4)+16>>2]|0,f+(aa+-5<<4)+16|0,f+(aa+-4<<4)+16|0,f+(aa+-3<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=_;kr($,_,f+(aa+-2<<4)+16|0);break}case 135:{h=c[f+(aa+-1<<4)+16>>2]|0;c[ca>>2]=h;if((h|0)!=0?(t=c[h>>2]|0,(t|0)>0):0)a[h+((t+-1|0)*72|0)+44>>0]=c[f+(aa<<4)+16>>2];break}case 138:{c[ca>>2]=fr($,c[f+(aa+-6<<4)+16>>2]|0,0,0,f+(aa+-2<<4)+16|0,c[f+(aa+-4<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 139:{l=f+(aa+-6<<4)+16|0;n=c[l>>2]|0;if((((n|0)==0?(c[f+(aa+-2<<4)+20>>2]|0)==0:0)?(c[f+(aa+-1<<4)+16>>2]|0)==0:0)?(c[f+(aa<<4)+16>>2]|0)==0:0){c[ca>>2]=c[f+(aa+-4<<4)+16>>2];break a}p=f+(aa+-4<<4)+16|0;k=c[p>>2]|0;o=c[k>>2]|0;if((o|0)==1){l=fr($,n,0,0,f+(aa+-2<<4)+16|0,0,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;c[ca>>2]=l;if(l){X=(c[l>>2]|0)+-1|0;_=c[p>>2]|0;Z=_+16|0;c[l+(X*72|0)+16>>2]=c[Z>>2];Y=_+12|0;c[l+(X*72|0)+12>>2]=c[Y>>2];_=_+28|0;c[l+(X*72|0)+28>>2]=c[_>>2];c[Y>>2]=0;c[Z>>2]=0;c[_>>2]=0}zo(c[$>>2]|0,c[p>>2]|0);break a}if(k){m=o+-1|0;if((m|0)>0){n=o;while(1){a[k+(m*72|0)+44>>0]=a[k+((n+-2|0)*72|0)+44>>0]|0;n=m+-1|0;if((n|0)>0){_=m;m=n;n=_}else break}}a[k+44>>0]=0}_=gr($,0,k,0,0,0,0,512,0,0)|0;c[ca>>2]=fr($,c[l>>2]|0,0,0,f+(aa+-2<<4)+16|0,_,c[f+(aa+-1<<4)+16>>2]|0,c[f+(aa<<4)+16>>2]|0)|0;break}case 149:case 140:{c[ca>>2]=0;c[ca+4>>2]=0;break}case 144:{c[ca>>2]=mr($,f+(aa+-1<<4)+16|0,0,0)|0;break}case 145:{c[ca>>2]=mr($,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0,0)|0;break}case 146:{c[ca>>2]=mr($,f+(aa+-3<<4)+16|0,f+(aa+-2<<4)+16|0,f+(aa+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[ca>>2]=0;break}case 151:{c[ca>>2]=0;c[ca+4>>2]=1;break}case 143:{c[ca>>2]=1;break}case 142:{c[ca>>2]=lr(c[$>>2]|0,0,f+(aa+-1<<4)+16|0,f+(aa<<4)+16|0)|0;break}case 156:{h=hr($,c[f+(aa+-3<<4)+16>>2]|0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if(h)a[(c[h+4>>2]|0)+(((c[h>>2]|0)+-1|0)*20|0)+12>>0]=c[f+(aa<<4)+16>>2];break}case 157:{h=hr($,0,c[f+(aa+-1<<4)+16>>2]|0)|0;c[ca>>2]=h;if((h|0)!=0?(k=c[h+4>>2]|0,(k|0)!=0):0)a[k+12>>0]=c[f+(aa<<4)+16>>2];break}case 179:case 153:{c[ca>>2]=0;break}case 180:case 152:{c[ca>>2]=c[f+(aa+-1<<4)+16>>2];break}case 166:{c[ca>>2]=c[f+(aa<<4)+16>>2];c[ca+4>>2]=0;break}case 167:{c[ca>>2]=c[f+(aa+-2<<4)+16>>2];c[ca+4>>2]=c[f+(aa<<4)+16>>2];break}case 168:{c[ca+4>>2]=c[f+(aa+-2<<4)+16>>2];c[ca>>2]=c[f+(aa<<4)+16>>2];break}case 169:{h=c[f+(aa+-5<<4)+16>>2]|0;if(h){_=$+532|0;c[h+4>>2]=c[_>>2];c[_>>2]=h;a[$+449>>0]=1}_=f+(aa+-2<<4)+16|0;kr($,c[_>>2]|0,f+(aa+-1<<4)+16|0);nr($,c[_>>2]|0,c[f+(aa<<4)+16>>2]|0);break}case 235:case 162:case 155:{c[ca>>2]=c[f+(aa<<4)+16>>2];break}default:{}}while(0);h=a[20912+(g<<1)>>0]|0;o=h&255;n=a[20913+(g<<1)>>0]|0;m=n&255;p=(c[f>>2]|0)-m|0;c[f>>2]=p;l=b[22184+((b[21568+(e[f+(aa-m<<4)+12>>1]<<1)>>1]|0)+o<<1)>>1]|0;k=l&65535;do if((l&65535)<642)if(!(n<<24>>24)){gq(f,k,o,ca);break}else{c[f>>2]=p+1;aa=1-m+aa|0;b[f+(aa<<4)+12>>1]=l;a[f+(aa<<4)+14>>0]=h;aa=f+(aa<<4)+16|0;c[aa+0>>2]=c[ca+0>>2];c[aa+4>>2]=c[ca+4>>2];c[aa+8>>2]=c[ca+8>>2];break}else{h=c[da>>2]|0;if((p|0)>-1)do Ln(f);while((c[f>>2]|0)>-1);c[da>>2]=h}while(0);i=eah=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m;h=c[b>>2]|0;do if((f|0)!=0?(c[f+4>>2]|0)!=0:0){if(a[h+145>>0]|0){ph(b,28488,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1;break}c[g>>2]=f;g=Sq(h,e)|0;f=Rh(h,g)|0;ig(h,g);if((f|0)<0){c[k>>2]=e;ph(b,28512,k);f=b+64|0;c[f>>2]=(c[f>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[h+144>>0]|0;c[g>>2]=e}i=m;return f|0}function br(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Dr(a,c[b>>2]|0)|0){b=1;break a}if(Gr(a,c[b+32>>2]|0)|0){b=1;break a}if(Cr(a,c[b+36>>2]|0)|0){b=1;break a}if(Dr(a,c[b+40>>2]|0)|0){b=1;break a}if(Cr(a,c[b+44>>2]|0)|0){b=1;break a}if(Dr(a,c[b+48>>2]|0)|0){b=1;break a}if(Cr(a,c[b+60>>2]|0)|0){b=1;break a}if(Cr(a,c[b+64>>2]|0)|0){b=1;break a}b=c[b+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function cr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=ih(d,72,0)|0,(h|0)!=0):0){c[h>>2]=Lr(d,c[f>>2]|0,g)|0;c[h+32>>2]=us(d,c[f+32>>2]|0,g)|0;c[h+36>>2]=Ir(d,c[f+36>>2]|0,g,0)|0;c[h+40>>2]=Lr(d,c[f+40>>2]|0,g)|0;c[h+44>>2]=Ir(d,c[f+44>>2]|0,g,0)|0;c[h+48>>2]=Lr(d,c[f+48>>2]|0,g)|0;a[h+4>>0]=a[f+4>>0]|0;j=cr(d,c[f+52>>2]|0,g)|0;c[h+52>>2]=j;if(j)c[j+56>>2]=h;c[h+56>>2]=0;c[h+60>>2]=Ir(d,c[f+60>>2]|0,g,0)|0;c[h+64>>2]=Ir(d,c[f+64>>2]|0,g,0)|0;c[h+8>>2]=0;c[h+12>>2]=0;b[h+6>>1]=(e[f+6>>1]|0)&65527;c[h+16>>2]=-1;c[h+20>>2]=-1;l=f+24|0;j=c[l+4>>2]|0;g=h+24|0;c[g>>2]=c[l>>2];c[g+4>>2]=j;g=c[f+68>>2]|0;if((g|0)!=0?(k=c[g>>2]<<4|8,i=ih(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){bw(i|0,0,k|0)|0;c[i>>2]=c[g>>2];if((c[g>>2]|0)>0){f=i+8|0;j=0;do{c[f+(j<<4)+8>>2]=cr(d,c[g+(j<<4)+16>>2]|0,0)|0;c[f+(j<<4)+4>>2]=Lr(d,c[g+(j<<4)+12>>2]|0,0)|0;c[f+(j<<4)>>2]=gh(d,c[g+(j<<4)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[g>>2]|0))}}else i=0;c[h+68>>2]=i}else h=0;return h|0}function dr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))ba();p=t;k=t+8|0;m=t+4|0;s=c[d>>2]|0;n=f+44|0;h=a[n>>0]|0;a:do if(!(h&16))q=11;else{g=c[f+60>>2]|0;if(g)do{if((c[g>>2]|0)==(s|0)){q=11;break a}g=c[g+24>>2]|0}while((g|0)!=0);g=f+56|0;h=Zm(s+308|0,c[c[g>>2]>>2]|0,k)|0;if((h|0)!=0?(l=c[h+8>>2]|0,(l|0)!=0):0){c[m>>2]=0;l=(vn(s,f,l,c[(c[l>>2]|0)+8>>2]|0,m)|0)==0;h=c[m>>2]|0;if(l){ig(s,h);h=a[n>>0]|0;q=11;break}else{c[p>>2]=h;ph(d,10344,p);ig(s,h);g=1;break}}c[p>>2]=c[c[g>>2]>>2];ph(d,28320,p);g=1}while(0);do if((q|0)==11)if((h&16)==0?(r=f+38|0,o=b[r>>1]|0,o<<16>>16<=0):0){if(o<<16>>16<0){c[p>>2]=c[f>>2];ph(d,26752,p);g=1;break}h=cr(s,c[f+12>>2]|0,0)|0;if(!h)g=1;else{o=s+250|0;n=a[o>>0]|0;q=d+68|0;p=c[q>>2]|0;ys(d,c[h+32>>2]|0);b[r>>1]=-1;a[o>>0]=0;m=s+284|0;l=c[m>>2]|0;c[m>>2]=0;g=js(d,h)|0;c[m>>2]=l;a[o>>0]=n;c[q>>2]=p;if(!g){b[r>>1]=0;g=1}else{d=g+38|0;b[r>>1]=b[d>>1]|0;q=g+4|0;c[f+4>>2]=c[q>>2];b[d>>1]=0;c[q>>2]=0;gg(s,g);g=(c[f+68>>2]|0)+78|0;b[g>>1]=e[g>>1]|0|2;g=0}Ik(s,h,1)}}else g=0;while(0);i=t;return g|0}
12 function er(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,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,ca=0,da=0,eaea=c[O>>2]|0,(ea|0)>-1):0){if(!(a[(c[ta>>2]|0)+65>>0]|0))k=(c[ta+4>>2]|0)+(ea{Ts(t);if(!o){r=0;m=p;break}m=ts(I)|0;sh(I,16,0,m,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;r=m;m=p}while(0);if(!M)lt(e,E,55,z,h,N,O)|0;do if(!o)if(y){l=sh(I,108,x,0,0)|0;sh(I,101,x,k,0)|0;break}else{l=sh(I,129,w,0,k)|0;break}else{n=c[N>>2]|0;if(!(a[h+(n-z)>>0]|0)){l=0;break}th(I,sh(I,68,n,r,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[B>>0]&16))nt(e,E,D,c[N>>2]|0,c[O>>2]|0,k,m,(a[J>>0]|0)==0&1,10,v);else{n=c[E+60>>2]|0;d:do if(!n)n=0;else while(1){if((c[n>>2]|0)==(P|0))break d;n=c[n+24>>2]|0;if(!n){n=0;break}}while(0);mt(e,E);th(I,sh(I,15,0,1,k)|0,n,-10);n=c[I+4>>2]|0;if(n)a[n+(((c[I+32>>2]|0)+-1|0)*20|0)+3>>0]=2;E=c[A>>2]|0;a[((E|0)==0?e:E)+21>>0]=1}do if(!o)if(y){sh(I,9,x,l+1|0,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;break}else{sh(I,16,0,l,0)|0;n=c[I+32>>2]|0;if(n>>>0>l>>>0)c[(c[I+4>>2]|0)+(l*20|0)+8>>2]=n;c[(c[I+24>>2]|0)+88>>2]=n+-1;break}else{m=c[I+24>>2]|0;l=~r;do if((r|0)<0){n=c[m+112>>2]|0;if(!n)break;c[n+(l<<2)>>2]=c[I+32>>2]}while(0);c[m+88>>2]=(c[I+32>>2]|0)+-1}while(0);if(M)break;if(a[B>>0]&16)break;if(!y)sh(I,61,c[N>>2]|0,0,0)|0;k=c[F>>2]|0;if(!k)break;else l=0;while(1){sh(I,61,(c[O>>2]|0)+l|0,0,0)|0;k=c[k+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[J>>0]|0)==0?(c[e+412>>2]|0)==0:0)ot(e);if((c[G>>2]&128|0)!=0?(a[J>>0]|0)==0:0){if(c[e+412>>2]|0)break;sh(I,35,H,1,0)|0;eq(I,1);if(a[(c[I>>2]|0)+65>>0]|0)break;Tg(c[I+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(K)c[K+492>>2]=L}else h=0}else h=0;zo(P,f);Ck(P,g);ig(P,h);i=Q;return}function or(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0;ja=i;i=i+64|0;if((i|0)>=(j|0))ba();Q=ja;V=ja+32|0;ca=ja+24|0;eaea>>2]=0;ut(e,ha,Z,q,fa,L,N,R,k&255,D,ea);if(M)vt(e,ha,N,0,l,U);m=(c[ea>>2]|U|0)==0;do if(!m)if(!p){n=sh(S,70,q,0,N)|0;break}else{n=sh(S,68,q,0,B)|0;th(S,n,z,-14);break}else n=0;while(0);wt(e,ha,q,fa,Z);if(M|(K|(p|0)!=0))sh(S,95,q,0,0)|0;if(!m){m=c[S+32>>2]|0;if(m>>>0>n>>>0)c[(c[S+4>>2]|0)+(n*20|0)+8>>2]=m;c[(c[S+24>>2]|0)+88>>2]=m+-1}if(M){vt(e,ha,0,L,l,U);xt(e,ha,q,fa,L,Z,1,0,0);yt(e,ha,g,N,l,U);break}else{xt(e,ha,q,fa,L,Z,1,0,0);break}}while(0);do if(c[H>>2]&128){if(c[e+412>>2]|0)break;sh(S,37,s,1,0)|0}while(0);tt(e,da,110,g,2,ha,N,k,D);do if(!E){if(!p){sh(S,16,0,D,0)|0;break}o=c[S+24>>2]|0;n=~D;do if((D|0)<0){p=c[o+112>>2]|0;if(!p)break;c[p+(n<<2)>>2]=c[S+32>>2]}while(0);c[o+88>>2]=(c[S+32>>2]|0)+-1;sh(S,9,A,C,0)|0}while(0);o=c[S+24>>2]|0;n=~r;do if((r|0)<0){p=c[o+112>>2]|0;if(!p)break;c[p+(n<<2)>>2]=c[S+32>>2]}while(0);c[o+88>>2]=(c[S+32>>2]|0)+-1;n=c[t>>2]|0;if(n){o=0;do{p=o;o=o+1|0;if(a[aa+o>>0]|0)sh(S,61,p+fa|0,0,0)|0;n=c[n+20>>2]|0}while((n|0)!=0)}if((q|0)<(fa|0))sh(S,61,q,0,0)|0;do if(!(a[T>>0]|0)){if(c[e+412>>2]|0)break;ot(e)}while(0);if(!(c[H>>2]&128))break;if(c[e+412>>2]|0)break;if(a[T>>0]|0)break;sh(S,35,s,1,0)|0;eq(S,1);if(a[(c[S>>2]|0)+65>>0]|0)break;Tg(c[S+16>>2]|0,34520,-1,1,0)|0}while(0);if(P)c[P+492>>2]=Q}}}else l=0}else l=0;while(0);ig(ia,l);zo(ia,f);Jk(ia,g);Ck(ia,h);i=ja;return}function pr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+96|0;if((i|0)>=(j|0))ba();$=la;ga=la+92|0;ia=la+88|0;I=la+68|0;V=la+64|0;L=la+32|0;_=la+28|0;c[ga>>2]=0;c[ia>>2]=0;ka=c[e>>2]|0;c[I+0>>2]=0;c[I+4>>2]=0;c[I+8>>2]=0;c[I+12>>2]=0;c[I+16>>2]=0;a:do if((c[e+64>>2]|0)==0?(K=ka+65|0,(a[K>>0]|0)==0):0){if(g)if((b[g+6>>1]&128)!=0?(c[g+52>>2]|0)==0:0){l=c[g>>2]|0;c[g>>2]=0;Ik(ka,g,1);g=0}else l=0;else{g=0;l=0}if((c[f+16>>2]|0)!=0?(ha=Fr(e,f)|0,(ha|0)!=0):0){r=c[ha+68>>2]|0;b:do if(r){q=c[ka+20>>2]|0;if((q|0)>0){p=c[ka+16>>2]|0;n=0;while(1){o=n+1|0;if((c[p+(n<<4)+12>>2]|0)==(r|0)){o=n;break b}if((o|0)<(q|0))n=o;else break}}else o=0}else o=-1e6;while(0);if((((Oq(e,18,c[ha>>2]|0,0,c[(c[ka+16>>2]|0)+(o<<4)>>2]|0)|0)==0?(da=ha+44|0,W=(d[da>>0]|0)>>>5&1,ca=ft(e,ha,108,0,V)|0,ea=(c[ha+12>>2]|0)!=0,(dr(e,ha)|0)==0):0)?(gt(e,ha,c[V>>2]|0)|0)==0:0)?(ja=Kq(e)|0,(ja|0)!=0):0){fa=e+18|0;if(!(a[fa>>0]|0)){aa=ja+88|0;b[aa>>1]=b[aa>>1]|4}aa=(g|0)!=0;Z=e+408|0;Y=c[Z>>2]|0;Y=(Y|0)==0?e:Y;wr(e,o);U=Y+328|0;c[U>>2]=c[U>>2]|1<<o;Y=Y+20|0;a[Y>>0]=d[Y>>0]|(aa|(ca|0)!=0)&1;Y=(h|0)==0;c:do if((((!((g|0)==0|Y^1)?(c[e+532>>2]|0)==0:0)?(c[g+68>>2]|0)==0:0)?(ws(e,ha)|0)==0:0)?(a[da>>0]&16)==0:0){if((k|0)==10){if((b[ha+36>>1]|0)>-1)r=d[ha+45>>0]|0;else r=10;v=(r|0)==10?2:r}else v=k;q=c[g+32>>2]|0;if((c[q>>2]|0)==1){if(c[q+28>>2]|0){X=117;break}if(c[g+36>>2]|0){X=117;break}if(c[g+48>>2]|0){X=117;break}if(c[g+40>>2]|0){X=117;break}if(c[g+60>>2]|0){X=117;break}if(c[g+52>>2]|0){X=117;break}if(b[g+6>>1]&1){X=117;break}r=c[g>>2]|0;if((c[r>>2]|0)!=1){X=117;break}if((a[c[c[r+4>>2]>>2]>>0]|0)!=116){X=117;break}u=Qr(e,0,q+8|0)|0;if((u|0)==0|(u|0)==(ha|0)){X=117;break}y=u+44|0;U=d[y>>0]|0;if(!((U&16|0)==0?(((d[da>>0]|0)>>>5&1^1)&255|0)==(U>>>5&1^1|0):0)){X=117;break}if(c[u+12>>2]|0){X=117;break}s=b[ha+38>>1]|0;if(s<<16>>16!=(b[u+38>>1]|0)){X=117;break}x=ha+36|0;if((b[x>>1]|0)!=(b[u+36>>1]|0)){X=117;break}if(s<<16>>16>0){n=c[ha+4>>2]|0;m=c[u+4>>2]|0;t=0;do{if((a[n+(t*24|0)+21>>0]|0)!=(a[m+(t*24|0)+21>>0]|0)){X=117;break c}r=c[n+(t*24|0)+16>>2]|0;q=c[m+(t*24|0)+16>>2]|0;p=(q|0)==0;if(!r){if(!p){X=117;break c}}else{if(p){X=117;break c}if($c(r,q)|0){X=117;break c}}if((a[n+(t*24|0)+20>>0]|0)!=0?(a[m+(t*24|0)+20>>0]|0)==0:0){X=117;break c}do if((t|0)>0){r=c[n+(t*24|0)+8>>2]|0;q=(r|0)==0;p=c[m+(t*24|0)+8>>2]|0;if(q^(p|0)==0){X=117;break c}if(q)break;if(Wv(r,p)|0){X=117;break c}}while(0);t=t+1|0}while((t|0)<(s<<16>>16|0))}B=ha+8|0;r=c[B>>2]|0;if(!r)q=0;else{s=c[u+8>>2]|0;if(!s){X=117;break}else q=0;do{q=(a[r+50>>0]|0)==0?q:1;p=s;while(1){if(zt(r,p)|0)break;p=c[p+20>>2]|0;if(!p){X=117;break c}}if(!p){X=117;break c}r=c[r+20>>2]|0}while((r|0)!=0)}r=c[ha+24>>2]|0;if((r|0)!=0?(Ps(c[u+24>>2]|0,r,-1)|0)!=0:0){X=117;break}p=c[e>>2]|0;r=c[p+24>>2]|0;if(!(r&524288)){if(r&128){X=117;break}}else if(!((c[ha+16>>2]|0)==0&(r&128|0)==0)){X=117;break}m=c[u+68>>2]|0;d:do if(!m)p=-1e6;else{s=c[p+20>>2]|0;if((s|0)<=0){p=0;break}r=c[p+16>>2]|0;n=0;while(1){p=n+1|0;if((c[r+(n<<4)+12>>2]|0)==(m|0)){p=n;break d}if((p|0)<(s|0))n=p;else break}}while(0);A=Kq(e)|0;wr(e,p);w=e+68|0;C=c[w>>2]|0;z=C+1|0;c[w>>2]=C+2;w=At(e,o,ha)|0;s=e+19|0;n=a[s>>0]|0;do if(!(n<<24>>24)){X=e+72|0;r=(c[X>>2]|0)+1|0;c[X>>2]=r;X=78}else{U=n+-1<<24>>24;a[s>>0]=U;r=c[e+((U&255)<<2)+24>>2]|0;if(!(U<<24>>24)){X=78;break}D=n+-2<<24>>24;a[s>>0]=D;E=r;D=c[e+((D&255)<<2)+24>>2]|0}while(0);if((X|0)==78){E=e+72|0;D=(c[E>>2]|0)+1|0;c[E>>2]=D;E=r}Mq(e,z,o,ha,55);if((b[x>>1]|0)<0)if((c[B>>2]|0)!=0|(q|0)!=0|(v+-1|0)>>>0>1)X=83;else F=0;else if((q|0)!=0|(v+-1|0)>>>0>1)X=83;else F=0;if((X|0)==83){t=sh(A,108,z,0,0)|0;s=sh(A,16,0,0,0)|0;r=c[A+32>>2]|0;if(r>>>0>t>>>0)c[(c[A+4>>2]|0)+(t*20|0)+8>>2]=r;c[(c[A+24>>2]|0)+88>>2]=r+-1;F=s}if(!(a[y>>0]&32)){Mq(e,C,p,u,54);q=sh(A,108,C,0,0)|0;do if((b[x>>1]|0)<=-1)if(!(c[B>>2]|0)){r=sh(A,74,z,D,0)|0;break}else{r=sh(A,103,C,D,0)|0;break}else{r=sh(A,103,C,D,0)|0;t=sh(A,70,z,0,D)|0;Bt(e,v,ha);s=c[A+32>>2]|0;if(s>>>0>t>>>0)c[(c[A+4>>2]|0)+(t*20|0)+8>>2]=s;c[(c[A+24>>2]|0)+88>>2]=s+-1;if((w|0)<=0)break;sh(c[e+8>>2]|0,136,w,D,0)|0}while(0);sh(A,102,C,E,0)|0;sh(A,75,z,E,D)|0;s=c[A+4>>2]|0;if(s)a[s+(((c[A+32>>2]|0)+-1|0)*20|0)+3>>0]=11;th(A,-1,c[ha>>2]|0,0);sh(A,9,C,r,0)|0;sh(A,61,C,0,0)|0;sh(A,61,z,0,0)|0}else{cs(e,o,c[ha+32>>2]|0,1,c[ha>>2]|0);cs(e,p,c[u+32>>2]|0,0,c[u>>2]|0);q=0}t=c[B>>2]|0;if(t){n=u+8|0;m=e+8|0;u=A+4|0;v=A+32|0;w=A+24|0;r=t;do{t=n;while(1){t=c[t>>2]|0;if(zt(r,t)|0)break;t=t+20|0}sh(A,54,C,c[t+40>>2]|0,p)|0;U=c[m>>2]|0;th(U,-1,ds(e,t)|0,-6);sh(A,55,z,c[r+40>>2]|0,o)|0;t=c[m>>2]|0;th(t,-1,ds(e,r)|0,-6);t=c[u>>2]|0;if(t)a[t+(((c[v>>2]|0)+-1|0)*20|0)+3>>0]=1;t=sh(A,108,C,0,0)|0;sh(A,101,C,E,0)|0;sh(A,110,z,E,1)|0;sh(A,9,C,t+1|0,0)|0;s=c[v>>2]|0;if(s>>>0>t>>>0)c[(c[u>>2]|0)+(t*20|0)+8>>2]=s;c[(c[w>>2]|0)+88>>2]=s+-1;sh(A,61,C,0,0)|0;sh(A,61,z,0,0)|0;r=c[r+20>>2]|0}while((r|0)!=0)}if(q){r=c[A+32>>2]|0;if(r>>>0>q>>>0)c[(c[A+4>>2]|0)+(q*20|0)+8>>2]=r;c[(c[A+24>>2]|0)+88>>2]=r+-1}Wr(e,D);Wr(e,E);if(!F){m=0;n=0;break}sh(A,24,0,0,0)|0;r=c[A+32>>2]|0;if(r>>>0>F>>>0)c[(c[A+4>>2]|0)+(F*20|0)+8>>2]=r;c[(c[A+24>>2]|0)+88>>2]=r+-1;sh(A,61,z,0,0)|0;X=117}else X=117}else X=117;while(0);do if((X|0)==117){P=At(e,o,ha)|0;O=e+72|0;q=c[O>>2]|0;T=q+1|0;U=ha+38|0;F=b[U>>1]|0;E=F<<16>>16;r=T+E|0;c[O>>2]=r;if(!(a[da>>0]&16))S=T;else{r=r+1|0;c[O>>2]=r;S=q+2|0}Q=S+1|0;R=(h|0)!=0;e:do if(R?(M=c[h+4>>2]|0,N=(M|0)>0,N):0){s=c[h>>2]|0;q=0;do{c[s+(q<<3)+4>>2]=-1;q=q+1|0}while((q|0)<(M|0));if(N){A=W<<24>>24!=0;z=ha+4|0;y=ha+36|0;q=1;x=0;s=-1;while(1){f:do if(F<<16>>16>0){w=c[h>>2]|0;p=c[w+(x<<3)>>2]|0;n=c[z>>2]|0;m=0;while(1){t=m+1|0;if(!($c(p,c[n+(m*24|0)>>2]|0)|0)){t=m;break}if((t|0)<(E|0))m=t;else break f}c[w+(x<<3)+4>>2]=t;q=(x|0)==(t|0)?q:0;s=(t|0)==(b[y>>1]|0)?x:s}else t=0;while(0);if((t|0)>=(E|0)){m=c[(c[h>>2]|0)+(x<<3)>>2]|0;if((Xh(m)|0)==0|A)break;else{q=0;t=x}}else t=s;x=x+1|0;if((x|0)>=(M|0)){B=t;break e}else s=t}c[$>>2]=f;c[$+4>>2]=0;c[$+8>>2]=m;ph(e,33368,$);a[e+17>>0]=1;m=0;break a}else{q=1;B=-1}}else{q=1;B=-1}while(0);g:do if(!aa){c[L+0>>2]=0;c[L+4>>2]=0;c[L+8>>2]=0;c[L+12>>2]=0;c[L+16>>2]=0;c[L+20>>2]=0;c[L+24>>2]=0;c[L+28>>2]=0;c[L>>2]=e;if(l){p=c[l>>2]|0;if((p|0)>0){r=l+4|0;q=0;while(1){if(hs(L,c[(c[r>>2]|0)+(q*20|0)>>2]|0)|0){g=0;m=0;break a}q=q+1|0;if((q|0)>=(p|0)){r=0;q=-1;o=0;X=169;break}}}else{M=B;L=0;N=-1;w=0}}else{M=B;p=0;L=0;N=-1;w=0}}else{r=r+1|0;c[O>>2]=r;D=ja+32|0;s=c[D>>2]|0;sh(ja,20,r,0,s+1|0)|0;a[I>>0]=13;E=I+4|0;c[E>>2]=r;a[I+1>>0]=0;C=I+8|0;c[C>>2]=q<<24>>24!=0?Q:0;c[I+12>>2]=b[U>>1];N=er(e,g,I)|0;C=c[C>>2]|0;if(N){m=0;break a}if(a[K>>0]|0){m=0;break a}sh(ja,21,r,0,0)|0;r=c[D>>2]|0;if(r>>>0>s>>>0)c[(c[ja+4>>2]|0)+(s*20|0)+8>>2]=r;F=ja+24|0;c[(c[F>>2]|0)+88>>2]=r+-1;p=c[c[g>>2]>>2]|0;h:do if(!ca){t=Kq(e)|0;q=c[t+32>>2]|0;i:do if(!(a[da>>0]&16))s=0;else{r=c[e>>2]|0;s=c[ha+60>>2]|0;if(!s){s=0;break}while(1){if((c[s>>2]|0)==(r|0))break i;s=c[s+24>>2]|0;if(!s){s=0;break}}}while(0);if((q|0)<=1){r=C;q=0;o=0;X=169;break g}n=(a[(c[t>>2]|0)+65>>0]|0)==0;w=t+4|0;v=ha+32|0;u=ha+8|0;m=1;while(1){if(n)t=(c[w>>2]|0)+(m*20|0)|0;else t=29120;r=a[t>>0]|0;do if(r<<24>>24==54){if((c[t+12>>2]|0)!=(o|0))break;r=c[t+8>>2]|0;if((r|0)==(c[v>>2]|0))break h;t=c[u>>2]|0;if(!t)break;do{if((r|0)==(c[t+40>>2]|0))break h;t=c[t+20>>2]|0}while((t|0)!=0)}else if(r<<24>>24==-107?(c[t+16>>2]|0)==(s|0):0)break h;while(0);m=m+1|0;if((m|0)>=(q|0)){r=C;q=0;o=0;X=169;break g}}}while(0);s=e+68|0;t=c[s>>2]|0;c[s>>2]=t+1;s=e+19|0;q=a[s>>0]|0;do if(!(q<<24>>24)){r=(c[O>>2]|0)+1|0;c[O>>2]=r;X=159}else{N=q+-1<<24>>24;a[s>>0]=N;r=c[e+((N&255)<<2)+24>>2]|0;if(!(N<<24>>24)){X=159;break}N=q+-2<<24>>24;a[s>>0]=N;s=c[e+((N&255)<<2)+24>>2]|0}while(0);if((X|0)==159){s=(c[O>>2]|0)+1|0;c[O>>2]=s}sh(ja,57,t,p,0)|0;o=sh(ja,22,c[E>>2]|0,0,0)|0;sh(ja,49,C,p,r)|0;sh(ja,74,t,s,0)|0;sh(ja,75,t,r,s)|0;sh(ja,16,0,o,0)|0;q=c[D>>2]|0;if(q>>>0>o>>>0)c[(c[ja+4>>2]|0)+(o*20|0)+8>>2]=q;c[(c[F>>2]|0)+88>>2]=q+-1;Wr(e,r);Wr(e,s);r=C;q=t;o=1;X=169}while(0);if((X|0)==169)if(Y&(p|0)>0){M=b[ha+36>>1]|0;L=r;N=q;w=o}else{M=B;L=r;N=q;w=o}if((a[da>>0]&16)!=0?(J=b[U>>1]|0,J<<16>>16>0):0){s=c[ha+4>>2]|0;q=J<<16>>16;o=0;r=0;do{r=((d[s+(o*24|0)+23>>0]|0)>>>1&1)+r|0;o=o+1|0}while((o|0)<(q|0))}else r=0;do if(Y&(p|0)!=0){r=(b[U>>1]|0)-r|0;if((p|0)==(r|0))break;c[$>>2]=f;c[$+4>>2]=0;c[$+8>>2]=r;c[$+12>>2]=p;ph(e,33400,$);m=0;break a}while(0);do if(R){r=c[h+4>>2]|0;if((p|0)==(r|0))break;c[$>>2]=p;c[$+4>>2]=r;ph(e,33456,$);m=0;break a}while(0);H=ka+24|0;if(!(c[H>>2]&128))n=0;else{n=(c[O>>2]|0)+1|0;c[O>>2]=n;sh(ja,25,0,n,0)|0}do if(ea)m=0;else{r=lt(e,ha,55,-1,0,ga,ia)|0;m=ih(ka,(r<<2)+4|0,0)|0;if(!m)break a;if((r|0)>0)q=0;else break;do{K=(c[O>>2]|0)+1|0;c[O>>2]=K;c[m+(q<<2)>>2]=K;q=q+1|0}while((q|0)!=(r|0))}while(0);J=w<<24>>24!=0;do if(J){K=sh(ja,108,N,0,0)|0;I=c[ja+32>>2]|0}else{if(!aa){I=0;K=0;break}K=sh(ja,22,c[I+4>>2]|0,0,0)|0;I=K}while(0);G=ts(ja)|0;do if(c[V>>2]&1){t=(b[U>>1]|0)+1|0;E=e+60|0;s=c[E>>2]|0;D=e+56|0;r=c[D>>2]|0;if((r|0)<(t|0)){F=c[O>>2]|0;c[O>>2]=F+t;F=F+1|0}else{c[E>>2]=t+s;c[D>>2]=r-t;F=s}if((M|0)<0)sh(ja,25,-1,F,0)|0;else{if(J)sh(ja,47,N,M,F)|0;else Nq(e,c[(c[l+4>>2]|0)+(M*20|0)>>2]|0,F);t=sh(ja,77,F,0,0)|0;sh(ja,25,-1,F,0)|0;s=c[ja+32>>2]|0;if(s>>>0>t>>>0)c[(c[ja+4>>2]|0)+(t*20|0)+8>>2]=s;c[(c[ja+24>>2]|0)+88>>2]=s+-1;sh(ja,38,F,0,0)|0}s=b[U>>1]|0;if(s<<16>>16>0){A=J|(l|0)!=0;q=h+4|0;r=F+1|0;t=l+4|0;x=e+8|0;y=ha+4|0;z=0;do{j:do if(Y)w=z;else{v=c[q>>2]|0;if((v|0)<=0){w=0;break}u=c[h>>2]|0;o=0;while(1){w=o+1|0;if((c[u+(o<<3)+4>>2]|0)==(z|0)){w=o;break j}if((w|0)<(v|0))o=w;else break}}while(0);do if(A){if(R?(w|0)>=(c[q>>2]|0):0){X=213;break}if(J){sh(ja,47,N,w,r+z|0)|0;break}else{V=c[(c[t>>2]|0)+(w*20|0)>>2]|0;o=r+z|0;u=c[x>>2]|0;Nq(e,V,o);s=(c[O>>2]|0)+1|0;c[O>>2]=s;sh(u,33,o,s,0)|0;a[V+38>>0]=a[V>>0]|0;a[V>>0]=-97;c[V+28>>2]=s;V=V+4|0;c[V>>2]=c[V>>2]&-4097;break}}else X=213;while(0);if((X|0)==213){X=0;Nq(e,c[(c[y>>2]|0)+(z*24|0)+4>>2]|0,r+z|0)}z=z+1|0;s=b[U>>1]|0}while((z|0)<(s<<16>>16|0))}if(!ea){st(ja,ha,F+1|0);s=b[U>>1]|0}tt(e,ca,108,0,1,ha,F+-1-(s<<16>>16)|0,k,G);s=(b[U>>1]|0)+1|0;$s(e,F,s);if((c[D>>2]|0)>=(s|0))break;c[D>>2]=s;c[E>>2]=F}while(0);do if(!eaea();f=h;g=c[a>>2]|0;if(!(Cn(a)|0)){do if(!b){b=g+20|0;e=c[b>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){St(a,d);e=c[b>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[d+4>>2]|0){e=ar(a,b,d,f)|0;if((e|0)<=-1)break;e=c[(c[g+16>>2]|0)+(e<<4)>>2]|0;b=Sq(g,c[f>>2]|0)|0;if(!b)break;d=Zp(g,b,e)|0;if(!d){e=oh(a,0,b,e)|0;if(e)Tt(a,e,0)}else Tt(a,c[d+12>>2]|0,d);ig(g,b);break}d=Sq(g,b)|0;e=Rh(g,d)|0;ig(g,d);if((e|0)>-1){St(a,e);break}d=Sq(g,b)|0;if(d){e=Zp(g,d,0)|0;if(!e){e=oh(a,0,d,0)|0;if(e)Tt(a,e,0)}else Tt(a,c[e+12>>2]|0,e);ig(g,d)}}while(0);e=Kq(a)|0;if(e)sh(e,144,0,0,0)|0}i=h;return}function Qr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[d>>2]|0;if(!f)e=d+4|0;else{i=c[a>>2]|0;g=c[i+20>>2]|0;i=c[i+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[i+(h<<4)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return oh(a,b,c[d+8>>2]|0,c[e>>2]|0)|0}function Rr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(d){e=d;while(1)if(!(a[e>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Bc(d,25568,7)|0)==0:0){c[f>>2]=d;ph(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Sr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if(!b){c[e>>2]=d;a=qh(a,25992,e)|0}else{c[e>>2]=b;c[e+4>>2]=d;e=qh(a,26e3,e)|0;ig(a,b);a=e}i=f;return a|0}function Tr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[a>>2]|0;f=c[(c[e+16>>2]|0)+28>>2]|0;if((c[b+68>>2]|0)!=(f|0)?(d=ws(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[b+20>>2]|0)==(f|0))d=Sr(e,d,c[b>>2]|0)|0;b=c[b+32>>2]|0}while((b|0)!=0);if(d){b=c[a>>2]|0;c[g>>2]=d;b=qh(b,25968,g)|0;ig(c[a>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;o=Kq(a)|0;if(o){e=c[a>>2]|0;h=c[b+68>>2]|0;a:do if(h){k=c[e+20>>2]|0;if((k|0)>0){f=c[e+16>>2]|0;g=0;while(1){e=g+1|0;if((c[f+(g<<4)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=ws(a,b)|0;if(e)do{f=c[a>>2]|0;l=c[e+20>>2]|0;b:do if(l){m=c[f+20>>2]|0;if((m|0)>0){k=c[f+16>>2]|0;h=0;while(1){f=h+1|0;if((c[k+(h<<4)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[e>>2]|0;th(o,sh(o,126,f,0,0)|0,m,0);e=c[e+32>>2]|0}while((e|0)!=0);e=c[b>>2]|0;th(o,sh(o,124,g,0,0)|0,e,0);e=c[a>>2]|0;c[n>>2]=d;e=qh(e,25952,n)|0;if((e|0)!=0?(Er(o,g,e),p=Tr(a,b)|0,(p|0)!=0):0)Er(o,1,p)}i=q;return}
13 function ch(f){f=f|0;var g=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0.0,z=0,A=0.0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,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,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,gc=0,jc=0,kc=0,mc=0,oc=0,qc=0,rc=0,sc=0,tc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Tc=0,Uc=0,Vc=0,Wc=0,Xc=0,Yc=0,ad=0,bd=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,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=i;i=i+1040|0;if((i|0)>=(j|0))ba();ge=ke+400|0;Qc=ke+792|0;fd=ke+392|0;ad=ke+788|0;Pd=ke+320|0;jd=ke+784|0;md=ke+780|0;nd=ke+280|0;Kd=ke+680|0;Yc=ke+240|0;Nd=ke+200|0;Xc=ke+676|0;Uc=ke+672|0;Ld=ke+160|0;Rc=ke+644|0;qd=ke+152|0;Gd=ke+112|0;hd=ke+640|0;Id=ke+636|0;Vc=ke+632|0;rd=ke+628|0;xd=ke+624|0;td=ke+604|0;yd=ke+600|0;ld=ke+596|0;ud=ke+576|0;Pc=ke+840|0;zd=ke+572|0;Md=ke+104|0;Ad=ke+568|0;bd=ke+564|0;ed=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;gd=ke+508|0;sd=ke+504|0;Wc=ke+488|0;Jd=ke+48|0;Tc=ke+456|0;Oc=ke+444|0;Hd=ke+8|0;pd=ke+440|0;Fd=ke+412|0;Ed=ke;wc=f+4|0;o=c[wc>>2]|0;he=c[f>>2]|0;Gc=a[he+62>>0]|0;Kc=f+8|0;v=c[Kc>>2]|0;je=he+32|0;l=je;m=c[l>>2]|0;l=c[l+4>>2]|0;ie=f+80|0;a:do if((c[ie>>2]|0)==7){u=he+65|0;v=f+44|0;n=m;g=0;p=0;m=0;ee=1317}else{c[ie>>2]=0;$d=f+136|0;c[$d>>2]=0;c[$d+4>>2]=0;$d=f+20|0;c[$d>>2]=0;c[he+452>>2]=0;zc=he+240|0;b:do if(!(c[zc>>2]|0)){Zd=he+292|0;if(c[Zd>>2]|0){n=c[f+124>>2]|0;g=he+300|0;u=c[g>>2]|0;if(!n)vc=g;else{vc=g;u=(n>>>0)%(u>>>0)|0}}else{vc=he+300|0;u=0}de=f+76|0;ce=he+65|0;Vd=he+296|0;pb=f+176|0;qb=f+184|0;rb=f+92|0;sb=he+80|0;tb=he+84|0;ub=Gc&255;vb=Gc<<24>>24==1;wb=he+88|0;xb=f+60|0;Wd=f+144|0;be=f+86|0;fe=f+44|0;yb=f+12|0;zb=Rc+4|0;Ab=Rc+16|0;Bb=Rc+12|0;Cb=Rc+25|0;Db=Rc+20|0;Eb=f+200|0;Fb=f+56|0;Xd=f+72|0;Gb=Gd+16|0;Hb=Gd+8|0;Ib=Gd+24|0;Jb=f+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=f+88|0;Tb=f+104|0;Ub=f+152|0;Vb=f+160|0;Wb=he+152|0;Xb=he+64|0;_b=td+4|0;$b=td+6|0;ac=td+8|0;bc=ud+4|0;cc=ud+8|0;dc=he+212|0;ec=he+208|0;gc=f+116|0;jc=vd+4|0;kc=vd+6|0;mc=vd+8|0;oc=Yc+8|0;qc=Yc+32|0;rc=Yc+24|0;sc=Yc+16|0;tc=Yc+12|0;uc=wd+4|0;V=wd+6|0;W=wd+8|0;X=nd+8|0;Y=nd+32|0;aa=nd+24|0;ca=nd+12|0;da=nd+16|0;ea=he+164|0;fa=Wc+8|0;ga=Wc+4|0;ha=he+145|0;ia=Wc+12|0;ja=Pd+4|0;ka=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=f+28|0;Aa=f+36|0;Ba=f+32|0;Ca=f+196|0;Da=Tc+4|0;Eaea>>2]|0)+1|0)){g=m;m=n;q=t;ee=832;break c}L=c[o+(p*20|0)+12>>2]|0;K=c[(c[Td>>2]|0)+(L<<4)+4>>2]|0;P=o+(p*20|0)+4|0;F=c[P>>2]|0;z=K+4|0;s=c[z>>2]|0;c[s+4>>2]=c[K>>2];c[ge>>2]=0;do if(!(c[s+8>>2]|0)){r=$k(s,F,ge,0)|0;if(!r){r=Tm(K,F,0)|0;if(r){w=c[ge>>2]|0;if(!w){x=0;break}xg(c[w+68>>2]|0);x=0;break}if(F>>>0<=1){w=c[ge>>2]|0;ll(w,9);if(!w){r=0;x=0;break}xg(c[w+68>>2]|0);r=0;x=0;break}if(!(a[s+17>>0]|0)){w=c[ge>>2]|0;r=Um(c[w+52>>2]|0,w,c[w+72>>2]|0)|0;if(!w){x=0;break}xg(c[w+68>>2]|0);x=0;break}G=c[z>>2]|0;c[G+4>>2]=c[K>>2];G=c[(c[G+12>>2]|0)+56>>2]|0;G=d[G+53>>0]<<16|d[G+52>>0]<<24|d[G+54>>0]<<8|d[G+55>>0];z=c[ge>>2]|0;if((G|0)==(F|0)){r=Um(c[z+52>>2]|0,z,c[z+72>>2]|0)|0;if(z)xg(c[z+68>>2]|0);if(!r)x=0;else{x=0;break}}else{if(z)xg(c[z+68>>2]|0);r=$k(s,G,Pd,0)|0;if(r){x=0;break}z=c[Pd>>2]|0;r=Vm(s,z,1,0,F,0)|0;if(z)xg(c[z+68>>2]|0);if(r){x=0;break}c[Pd>>2]=0;r=$k(s,G,Pd,0)|0;z=c[Pd>>2]|0;if(r){if(!z){x=0;break}}else r=Um(c[z+52>>2]|0,z,c[z+72>>2]|0)|0;xg(c[z+68>>2]|0);if(!r)x=G;else{x=0;break}}E=((c[2514]|0)>>>0)/((c[s+32>>2]|0)>>>0)|0;D=E+1|0;F=s+36|0;while(1){z=G+-1|0;if((z|0)==(D|0)){G=z;continue}if(z>>>0<2)B=0;else{B=G+-3|0;B=B-((B>>>0)%(((((c[F>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;B=((B+1|0)==(E|0)?3:2)+B|0}if((B|0)==(z|0))G=z;else break}r=zg(K,4,z)|0}else x=0}else{r=262;x=0}while(0);b[O>>1]=4;S=J;c[S>>2]=x;c[S+4>>2]=((x|0)<0)<<31>>31;if((r|0)==0&(x|0)!=0){g=m;K=L;z=P;m=n;r=J;n=p;ee=865;break d}else{z=J;R=p}break}case 118:{c[gd>>2]=0;g=o+(p*20|0)+12|0;r=Tm(c[(c[Td>>2]|0)+(c[o+(p*20|0)+8>>2]<<4)+4>>2]|0,c[o+(p*20|0)+4>>2]|0,(c[g>>2]|0)!=0?gd:0)|0;g=c[g>>2]|0;if((g|0)!=0?(Fc=c[gd>>2]|0,c[rb>>2]=(c[rb>>2]|0)+Fc,(g|0)>0):0){z=v+(g*40|0)|0;R=z;R=fw(c[R>>2]|0,c[R+4>>2]|0,Fc|0,((Fc|0)<0)<<31>>31|0)|0;c[z>>2]=R;c[z+4>>2]=C;z=J;R=p}else{z=J;R=p}break}case 121:case 120:{c[sd>>2]=0;r=wm(c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)+4>>2]|0,sd,G<<24>>24==121?1:2)|0;R=c[sd>>2]|0;z=J;c[z>>2]=R;c[z+4>>2]=((R|0)<0)<<31>>31;z=J;R=p;break}case 119:{g=c[(c[Fb>>2]|0)+(c[o+(p*20|0)+4>>2]<<2)>>2]|0;r=c[g+56>>2]|0;if(r){g=m;m=n;G=J;n=p;ee=878;break d}r=c[g>>2]|0;z=J;R=p;r=Tm(c[r>>2]|0,c[r+60>>2]|0,0)|0;break}case 123:{z=J;R=p;r=Ym(he,c[o+(p*20|0)+4>>2]|0)|0;break}case 124:{g=m;m=n;r=J;n=p;ee=886;break d}case 122:{g=m;m=n;G=J;n=p;ee=881;break d}case 126:{g=m;m=n;r=J;n=p;ee=895;break d}case 125:{g=m;m=n;G=J;n=p;ee=887;break d}case 127:{g=m;m=n;r=J;ee=903;break d}case 128:{g=m;m=n;G=J;ee=947;break d}case 129:{s=c[o+(p*20|0)+4>>2]|0;r=v+(s*40|0)|0;s=v+(s*40|0)+8|0;g=b[s>>1]|0;do if(g&32){B=c[r>>2]|0;g=B+26|0;w=b[g>>1]|0;if(!(w&2)){if(!(w&1)){w=B+8|0;c[w>>2]=fn(c[w>>2]|0)|0;w=b[g>>1]|0}b[g>>1]=w&65535|2}z=B+8|0;x=c[z>>2]|0;if(!x){g=b[s>>1]|0;break}s=x;w=c[s>>2]|0;s=c[s+4>>2]|0;S=c[x+8>>2]|0;c[z>>2]=S;if(!S)Vk(B);r=c[o+(p*20|0)+12>>2]|0;g=v+(r*40|0)|0;r=v+(r*40|0)+8|0;if(!(b[r>>1]&9312)){ee=g;c[ee>>2]=w;c[ee+4>>2]=s;b[r>>1]=4;r=0;ee=19;break e}else{Vg(g,w,s);r=0;ee=19;break e}}while(0);if(!(g&9312))b[s>>1]=1;else rg(r);p=(c[o+(p*20|0)+8>>2]|0)+-1|0;r=0;ee=19;break}case 130:{g=m;m=n;r=J;ee=966;break d}case 131:{g=m;m=n;r=J;n=p;ee=993;break d}case 132:{g=m;m=n;r=J;n=p;ee=1009;break d}case 134:{g=m;m=n;G=J;n=p;ee=1010;break d}case 135:{g=m;m=n;r=J;n=p;ee=1015;break d}case 136:{g=m;m=n;n=p;ee=1022;break d}case 137:{g=m;m=n;r=J;n=p;ee=1028;break d}case 138:{g=m;m=n;r=J;n=p;ee=1030;break d}case 139:{g=m;m=n;G=J;n=p;ee=1032;break d}case 140:{g=m;m=n;r=J;n=p;ee=1034;break d}case 141:{g=m;m=n;r=J;n=p;ee=1036;break d}case 10:{S=a[o+(p*20|0)+3>>0]|0;w=S&255;g=c[yb>>2]|0;if(S<<24>>24){r=0;s=v+((c[o+(p*20|0)+8>>2]|0)*40|0)|0;while(1){c[g+(r<<2)>>2]=s;r=r+1|0;if((r|0)>=(w|0))break;else s=s+40|0}}S=c[o+(p*20|0)+16>>2]|0;c[Da>>2]=S;R=c[o+(p*20|0)+12>>2]|0;c[Eaea>>2]=(c[ea>>2]|0)+1;g=Wh(he,c[o+(p*20|0)+16>>2]|0,c[(c[Td>>2]|0)+(c[o+(p*20|0)+4>>2]<<4)>>2]|0)|0;m:do if((g|0)!=0?(Mc=g+60|0,Nc=c[Mc>>2]|0,(Nc|0)!=0):0){r=Nc;do{if((c[(c[r+8>>2]|0)+4>>2]|0)>0){r=6;break m}r=c[r+24>>2]|0}while((r|0)!=0);g=Kk(he,g)|0;s=g+8|0;r=hc[c[(c[c[g+4>>2]>>2]|0)+20>>2]&127](c[s>>2]|0)|0;if(!r){c[s>>2]=0;c[Mc>>2]=0;wn(g);r=0}}else r=0;while(0);c[ea>>2]=(c[ea2]=o;$g(fe,he,10344,ge);n=m;o=q;m=t;ee=1311;break a}}else{q=f+44|0;n=m;g=0;p=0;m=0}while(0);c[ie>>2]=9;c[ge>>2]=15832;$g(q,he,10344,ge);o=9;ee=1311}while(0);if((ee|0)==1317){a[u>>0]=1;$g(v,he,15776,ge);o=7;ee=1311}if((ee|0)==1311){c[ie>>2]=o;md=c[f+168>>2]|0;nd=c[f+44>>2]|0;c[ge>>2]=p;c[ge+4>>2]=md;c[ge+8>>2]=nd;Zc(o,42256,ge);Nl(f)|0;if((o|0)==3082)a[he+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{rm(he,(m&255)+-1|0);m=g;g=1}}nd=je;c[nd>>2]=n;c[nd+4>>2]=l;nd=f+124|0;c[nd>>2]=(c[nd>>2]|0)+m;i=ke;return g|0}
14 function Av(e){e=e|0;var 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,A=0;A=e+20|0;r=e+14|0;f=a[r>>0]|0;w=e+13|0;g=a[w>>0]|0;a:do if((f&255)>(g&255))f=0;else{y=e+4|0;z=e+16|0;s=e+8|0;t=e+12|0;u=e+24|0;v=e+28|0;i=f&255;j=c[y>>2]|0;h=c[A>>2]|0;b:while(1){q=c[e+(i+-2<<2)+24>>2]|0;p=c[e+(i+-1<<2)+24>>2]|0;if(j){while(1){o=j+12|0;if((h|0)<(c[o>>2]|0)){g=h;f=(c[j+20>>2]|0)+(h*48|0)|0;while(1){do if((c[f+8>>2]|0)==(q|0)?(c[f+12>>2]|0)==(p|0):0){if((d[r>>0]|0)>=3?(c[(c[f>>2]|0)+4>>2]&1|0)!=0:0)break;n=f+18|0;h=b[n>>1]|0;if((h&1024)!=0?(x=a[w>>0]|0,(x&255)<22):0){i=c[(c[f>>2]|0)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[i+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[(c[i+20>>2]|0)+4>>2]|0;i=c[i>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(x<<24>>24)){m=0;k=0}else{l=c[i+28>>2]|0;m=i+32|0;k=0;while(1){if((c[e+(k<<2)+24>>2]|0)==(l|0)?(c[e+((k|1)<<2)+24>>2]|0)==(b[m>>1]|0):0){m=x;break d}k=k+2|0;if((k|0)>=(x&255|0)){m=x;break}}}while(0);if((k|0)==(m&255|0)){c[e+(k<<2)+24>>2]=c[i+28>>2];c[e+((k|1)<<2)+24>>2]=b[i+32>>1];a[w>>0]=(d[w>>0]|0)+2}}i=h&65535;if(i&c[z>>2]){if((c[s>>2]|0)!=0&(i&128|0)==0){l=c[c[j>>2]>>2]|0;k=c[f>>2]|0;i=a[t>>0]|0;h=(jv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ku(l,c[k+12>>2]|0,c[k+16>>2]|0)|0;if(!h)h=c[(c[l>>2]|0)+8>>2]|0;if($c(c[h>>2]|0,c[s>>2]|0)|0)break;h=b[n>>1]|0}if(!(h&2))break b;h=c[(c[f>>2]|0)+16>>2]|0;if((a[h>>0]|0)!=-102)break b;if((c[h+28>>2]|0)!=(c[u>>2]|0))break b;if((b[h+32>>1]|0)!=(c[v>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[o>>2]|0))break;else f=f+48|0}g=c[y>>2]|0}else g=j;j=c[g+4>>2]|0;c[y>>2]=j;if(!j)break;else h=0}f=a[r>>0]|0;g=a[w>>0]|0}j=c[e>>2]|0;c[y>>2]=j;h=(f&255)+2|0;f=h&255;a[r>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[A>>2]=g+1}while(0);return f|0}function Bv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=c[d>>2]|0;l=c[c[g>>2]>>2]|0;d=c[d+16>>2]|0;a:do if(!d){g=g+16|0;i=c[g>>2]|0;k=f+36|0;if((c[k>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[f+16>>0]|0;do{do if((a[i+16>>0]|0)==h<<24>>24?(c[i+36>>2]&512|0)!=0:0){if(Pv(i,f)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+65535;break}if(Pv(f,i)|0){b[d>>1]=b[i+20>>1]|0;b[j>>1]=(e[i+22>>1]|0)+1}}while(0);i=c[i+52>>2]|0}while((i|0)!=0)}d=Qv(g,f)|0;if(d){g=c[d>>2]|0;b:do if(g){d=g+52|0;if(c[d>>2]|0)do{d=Qv(d,f)|0;if(!d)break b;h=c[d>>2]|0;if(!h)break b;c[d>>2]=c[h+52>>2];Fu(l,h);ig(l,h)}while((c[d>>2]|0)!=0)}else{g=ih(l,72,0)|0;c[d>>2]=g;if(!g){d=7;break a}c[g+48>>2]=g+56;b[g+40>>1]=0;b[g+44>>1]=3;c[g+36>>2]=0;c[g+52>>2]=0}while(0);Hv(l,g);do if(!(Ju(l,g,e[f+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[h>>2]=c[d>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));gw(c[g+48>>2]|0,c[f+48>>2]|0,e[g+40>>1]<<2|0)|0;d=c[k>>2]|0;if(d&1024){a[f+28>>0]=0;break}if(d&16384)c[f+28>>2]=0}else{d=g+24|0;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0}while(0);if(((c[g+36>>2]&1024|0)==0?(m=g+28|0,n=c[m>>2]|0,(n|0)!=0):0)?(c[n+40>>2]|0)==0:0){c[m>>2]=0;d=0}else d=0}else d=0}else{g=f;Gv(d,c[g>>2]|0,c[g+4>>2]|0,b[f+20>>1]|0,b[f+22>>1]|0);d=0}while(0);return d|0}function Cv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16<b<<16>>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[34032+(e-c)>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[34032+(c-e)>>0]|0)+c&65535;break}while(0);return a|0}function Dv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(yu(b,d,e)|0))f=1;else{f=a[d>>0]|0;if(f<<24>>24==77)g=6;else if(f<<24>>24==71){if(Dv(b,c[d+12>>2]|0,e)|0){f=1;break}if(Dv(b,c[d+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}if(((g|0)==6?(yu(c[b+12>>2]|0,c[d+12>>2]|0,e)|0)==0:0)?(f=a[b>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Ev(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();u=v;s=d;t=d+8|0;g=t;r=~(c[g>>2]|c[s>>2]);s=~(c[g+4>>2]|c[s+4>>2]);g=c[a+12>>2]|0;p=a+20|0;a:do if((g|0)>0){q=d+40|0;a=d+22|0;o=d+48|0;d=0;n=c[p>>2]|0;while(1){if(b[n+20>>1]&2)break a;m=n+40|0;l=c[m>>2]|0;m=c[m+4>>2]|0;k=t;b:do if(((c[k>>2]&l|0)!=0?1:(c[k+4>>2]&m|0)!=0)&((l&r|0)==0&(m&s|0)==0)){h=b[q>>1]|0;c:do if(h<<16>>16){m=c[o>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[m+(l<<2)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[k+4>>2]|0;if((k|0)>-1?((c[p>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[n+16>>1]|0;if(h<<16>>16<1){b[a>>1]=(e[a>>1]|0)+(h&65535);break}b[a>>1]=(b[a>>1]|0)+-1<<16>>16;if(b[n+18>>1]&2){l=(Is(c[(c[n>>2]|0)+16>>2]|0,u)|0)!=0;m=c[u>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[u>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[a>>1]|0)>(d|0))b[a>>1]=d;i=v;return}function Fv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,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,ca=0,da=0,ea=0;ea=i;i=i+112|0;if((i|0)>=(j|0))ba();O=ea;S=c[c[c[d>>2]>>2]>>2]|0;ca=c[d+12>>2]|0;if(!(a[S+65>>0]|0)){da=ca+36|0;if(!(c[da>>2]&32))if((c[g+40>>2]|0)<1)k=63;else k=(a[f+36>>0]&8)<<4^191;else k=24;T=g+51|0;$=ca+24|0;l=b[(c[g+4>>2]|0)+(e[$>>1]<<1)>>1]|0;K=l<<16>>16;L=d+4|0;k=zv(O,c[L>>2]|0,c[f+40>>2]|0,K,(a[T>>0]&4)==0?k:k&131,g)|0;U=b[$>>1]|0;V=ca+42|0;Q=b[V>>1]|0;W=ca+40|0;R=b[W>>1]|0;X=c[da>>2]|0;N=ca;M=c[N>>2]|0;N=c[N+4>>2]|0;Y=ca+22|0;Z=b[Y>>1]|0;b[ca+18>>1]=0;_=g+8|0;A=b[c[_>>2]>>1]|0;if(A<<16>>16<11)z=0;else{z=A<<16>>16;z=((bs(z,((z|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{B=l<<16>>16<0;C=f+16|0;D=ca+8|0;E=(R&65535)+1|0;F=ca+48|0;G=h<<16>>16==0;H=g+46|0;t=l<<16>>16>-1;u=g+50|0;v=g+44|0;w=ca+20|0;x=h<<16>>16;y=g+48|0;o=0;r=k;p=0;while(1){l=b[r+18>>1]|0;q=l&65535;if(l<<16>>16==128)if(!B?(a[(c[(c[C>>2]|0)+4>>2]|0)+(K*24|0)+20>>0]|0)==0:0)P=12;else{m=o;l=p;k=0}else P=12;if((P|0)==12){P=0;m=r+32|0;s=m;n=D;if(((c[n>>2]&c[s>>2]|0)==0?(c[n+4>>2]&c[s+4>>2]|0)==0:0)?(I=r+20|0,!((b[I>>1]&256)!=0&l<<16>>16==16)):0){c[da>>2]=X;b[$>>1]=U;b[W>>1]=R;if(Ju(S,ca,E)|0){k=0;break a}k=b[W>>1]|0;n=k+1<<16>>16;b[W>>1]=n;c[(c[F>>2]|0)+((k&65535)<<2)>>2]=r;k=m;l=D;m=(c[k+4>>2]|N)&~c[l+4>>2];s=ca;c[s>>2]=(c[k>>2]|M)&~c[l>>2];c[s+4>>2]=m;b:do if(!(q&1)){if(q&2){k=c[da>>2]|0;l=k|1;c[da>>2]=l;do if(!B){if(!G){s=0;break b}if((e[$>>1]|0)!=((e[H>>1]|0)+-1|0)){s=0;break b}if(!t)break;if(a[u>>0]|0)break;l=k|65537;c[da>>2]=l;s=0;break b}while(0);l=k|4097;c[da>>2]=l;s=0;break}if(q&128){l=c[da>>2]|8;c[da>>2]=l;s=0;break}k=c[da>>2]|0;if(!(q&36)){l=k|18;c[da>>2]=l;if(!(k&32)){s=0;o=0;p=r;break}s=0;o=c[(c[F>>2]|0)+((n&65535)+-2<<2)>>2]|0;p=r;break}l=k|34;c[da>>2]=l;if(!(b[I>>1]&256)){s=0;o=r;p=0}else{k=r+48|0;if(Ju(S,ca,(n&65535)+1|0)|0){k=0;break a}l=b[W>>1]|0;b[W>>1]=l+1<<16>>16;c[(c[F>>2]|0)+((l&65535)<<2)>>2]=k;l=c[da>>2]|16;c[da>>2]=l;s=0;o=r;p=k}}else{k=c[r>>2]|0;l=c[da>>2]|4;c[da>>2]=l;if(!(c[k+4>>2]&2048)){k=c[k+20>>2]|0;if((k|0)!=0?(J=c[k>>2]|0,(J|0)!=0):0)s=(bs(J,((J|0)<0)<<31>>31)|0)<<16>>16;else s=0}else s=46}while(0);do if(!(l&2)){k=(b[$>>1]|0)+1<<16>>16;b[$>>1]=k;k=k&65535;m=b[r+16>>1]|0;if(m<<16>>16<1&t){n=(m&65535)-s+(e[Y>>1]|0)&65535;b[Y>>1]=n;break}m=c[_>>2]|0;m=(e[Y>>1]|0)+((e[m+(k<<1)>>1]|0)-(e[m+(k+-1<<1)>>1]|0))|0;k=m&65535;b[Y>>1]=k;if(!(q&128))n=k;else{n=m+10&65535;b[Y>>1]=n}}else{k=b[Y>>1]|0;n=k<<16>>16;do if(o){m=b[o+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(p){m=b[p+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(o|0)!=0;do if(m?(b[o+16>>1]|0)>0&(p|0)!=0:0){if((b[p+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);n=(((p|0)!=0)<<31>>31)+(m<<31>>31)+n|0;r=k<<16>>16<10?10:k<<16>>16;n=((r|0)<(n|0)?r:n)&65535;b[Y>>1]=n}while(0);k=n&65535;m=Cv(z,k+1+(((b[v>>1]|0)*15|0)/(b[(c[C>>2]|0)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Cv(m,k+16&65535)|0;l=s+x|0;b[w>>1]=(m&65535)+l;b[Y>>1]=k+l;Ev(c[L>>2]|0,ca,A);k=Bv(d,ca)|0;s=c[da>>2]|0;b[Y>>1]=(s&2|0)==0?n:Z;if((s&16|0)==0?(e[$>>1]|0)<(e[y>>1]|0):0)Fv(d,f,g,l&65535)|0;b[Y>>1]=Z;m=o;l=p}else{m=o;l=p;k=0}}r=Av(O)|0;if(!((k|0)==0&(r|0)!=0))break;else{o=m;p=l}}}while(0);l=ca;c[l>>2]=M;c[l+4>>2]=N;b[$>>1]=U;b[V>>1]=Q;c[da>>2]=X;b[Y>>1]=Z;b[W>>1]=R;l=U&65535;if(((U<<16>>16==Q<<16>>16?(aa=l+1|0,aa>>>0<(e[g+46>>1]|0)>>>0):0)?(a[T>>0]&64)==0:0)?(b[(c[_>>2]|0)+(aa<<1)>>1]|0)>41:0){k=Ju(S,ca,(R&65535)+1|0)|0;if(!k){b[$>>1]=(b[$>>1]|0)+1<<16>>16;b[V>>1]=(b[V>>1]|0)+1<<16>>16;k=b[W>>1]|0;b[W>>1]=k+1<<16>>16;c[(c[ca+48>>2]|0)+((k&65535)<<2)>>2]=0;c[da>>2]=c[da>>2]|32768;k=c[_>>2]|0;k=(e[k+(l<<1)>>1]|0)-(e[k+(aa<<1)>>1]|0)|0;b[Y>>1]=(e[Y>>1]|0)-k;Fv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[Y>>1]=Z;b[$>>1]=U;b[V>>1]=U;c[da>>2]=X;k=0}}}else k=7;i=ea;return k|0}function Gv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=b[a>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[k+8>>1]|0;if(i<<16>>16>=f<<16>>16?(p=k,(c[p>>2]&d|0)==(d|0)?(c[p+4>>2]&e|0)==(e|0):0):0){n=k;o=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,p=c[i>>2]|0,i=c[i+4>>2]|0,(p&d|0)==(p|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[a+16>>1]|0;k=1;do{if(i<<16>>16>(b[a+(k<<4)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[h+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;o=14}}else o=9}else o=9;while(0);if((o|0)==9){n=l&65535;b[a>>1]=l+1<<16>>16;b[a+(n<<4)+18>>1]=g;n=a+(n<<4)+8|0;o=14}if((o|0)==14?(m=n,c[m>>2]=d,c[m+4>>2]=e,b[n+8>>1]=f,m=n+10|0,(b[m>>1]|0)>g<<16>>16):0)b[m>>1]=g;return}function Hv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[d+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[h>>0]|0)!=0):0){e=d+32|0;Sc(c[e>>2]|0);a[h>>0]=0;c[e>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[f>>2]|0,(g|0)!=0):0){ig(b,c[g+16>>2]|0);ig(b,c[f>>2]|0);c[f>>2]=0}}while(0);return}function Iv(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,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,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;qa=i;i=i+32|0;if((i|0)>=(j|0))ba();la=qa;p=c[c[f>>2]>>2]|0;ka=l&65535;if(l<<16>>16!=0?(b[p+60>>1]&128)!=0:0)o=0;else ma=3;a:do if((ma|0)==3){pa=c[g>>2]|0;o=pa&65535;if(o>>>0<=63){na=ew(1,0,o|0)|0;na=fw(na|0,C|0,-1,-1)|0;oa=C;b:do if((na|0)==0&(oa|0)==0){g=0;h=0;p=1}else{ea=h+24|0;fa=f+4|0;ga=(o|0)==0;ca=g+4|0;da=(k&768)==0;aa=p+8|0;T=(k&256)==0;U=f+68|0;V=la+20|0;W=la+4|0;Z=la+24|0;_=f+328|0;X=0;Y=0;g=0;h=0;k=0;q=0;$=0;p=1;l=0;while(1){if(($|0)>0){R=l+8|0;S=c[R>>2]|k;q=c[R+4>>2]|q}else S=k;if(($|0)<(ka|0))l=c[(c[eaea(1);return 0}function Pw(a,b,c){a=a|0;b=b|0;c=c|0;return pb(a|0,b|0,c|0)|0}function Qw(a,b,c){a=a|0;b=b|0;c=c|0;return Ub(a|0,b|0,c|0)|0}function Rw(a,b,c){a=a|0;b=b|0;c=c|0;return Bb(a|0,b|0,c|0)|0}function Sw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;fa(2)}function Tw(a){a=a|0;ga(3)}function Uw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ha(4)}function Vw(a,b){a=a|0;b=b|0;ia(5);return 0.0}function Ww(a,b){a=a|0;b=+b;ja(6)}function Xw(a){a=a|0;ka(7);return 0.0}function Yw(){la(8);return 0}function Zw(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;ma(9);return 0}function _w(a,b){a=a|0;b=b|0;na(10)}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(11);return 0}function ax(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 Qb(a|0,b|0,c|0,d|0,e|0,f|0)|0}function bx(a){a=a|0;pa(12);return 0}function cx(a){a=a|0;return Tb(a|0)|0}function dx(a){a=a|0;return rb(a|0)|0}function ex(a){a=a|0;return db(a|0)|0}function fx(a,b,c){a=a|0;b=b|0;c=c|0;qa(13)}function gx(){ra(14)}function hx(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;sa(15);return 0}function ix(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ta(16);return 0}function jx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ua(17)}function kx(a,b){a=a|0;b=b|0;va(18);return 0}function lx(a,b){a=a|0;b=b|0;return ab(a|0,b|0)|0}function mx(a,b){a=a|0;b=b|0;return Sb(a|0,b|0)|0}function nx(a,b){a=a|0;b=b|0;return Eb(a|0,b|0)|0}function ox(a,b){a=a|0;b=b|0;return bb(a|0,b|0)|0}function px(a,b){a=a|0;b=b|0;return vb(a|0,b|0)|0}function qx(a,b){a=a|0;b=b|0;return tb(a|0,b|0)|0}function rx(a,b){a=a|0;b=b|0;return wb(a|0,b|0)|0}function sx(a,b){a=a|0;b=b|0;return Pb(a|0,b|0)|0}function tx(a,b,c){a=a|0;b=b|0;c=+c;wa(19);return 0}function ux(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;xa(20);return 0}