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;const n=16777215;const o=16777214;const p=16777212;const q=16777208;var r=0;var s=0;var t=0;var u=0;var v=global.NaN,w=global.Infinity;var x=0,y=0,z=0,A=0,B=0.0,C=0,D=0,E=0,F=0.0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=0;var M=0;var N=0;var O=0;var P=0;var Q=global.Math.floor;var R=global.Math.abs;var S=global.Math.sqrt;var T=global.Math.pow;var U=global.Math.cos;var V=global.Math.sin;var W=global.Math.tan;var X=global.Math.acos;var Y=global.Math.asin;var Z=global.Math.atan;var _=global.Math.atan2;var $=global.Math.exp;var aa=global.Math.log;var ba=global.Math.ceil;var ca=global.Math.imul;var da=global.Math.min;var ea=global.Math.clz32;var fa=env.abort;var ga=env.assert;var ha=env.nullFunc_iiiiiiii;var ia=env.nullFunc_iiii;var ja=env.nullFunc_viiiiii;var ka=env.nullFunc_vi;var la=env.nullFunc_viiiii;var ma=env.nullFunc_dii;var na=env.nullFunc_vid;var oa=env.nullFunc_di;var pa=env.nullFunc_i;var qa=env.nullFunc_iiiiiiiiii;var ra=env.nullFunc_vii;var sa=env.nullFunc_iiiiiii;var ta=env.nullFunc_ii;var ua=env.nullFunc_viii;var va=env.nullFunc_v;var wa=env.nullFunc_iiiiiiiii;var xa=env.nullFunc_iiiii;var ya=env.nullFunc_viiii;var za=env.nullFunc_iii;var Aa=env.nullFunc_iiid;var Ba=env.nullFunc_iiiiii;var Ca=env.invoke_iiiiiiii;var Da=env.invoke_iiii;var Ea=env.invoke_viiiiii;var Fa=env.invoke_vi;var Ga=env.invoke_viiiii;var Ha=env.invoke_dii;var Ia=env.invoke_vid;var Ja=env.invoke_di;var Ka=env.invoke_i;var La=env.invoke_iiiiiiiiii;var Ma=env.invoke_vii;var Na=env.invoke_iiiiiii;var Oa=env.invoke_ii;var Pa=env.invoke_viii;var Qa=env.invoke_v;var Ra=env.invoke_iiiiiiiii;var Sa=env.invoke_iiiii;var Ta=env.invoke_viiii;var Ua=env.invoke_iii;var Va=env.invoke_iiid;var Wa=env.invoke_iiiiii;var Xa=env._dlerror;var Ya=env._utimes;var Za=env._getuid;var _a=env._send;var $a=env._dlsym;var ab=env._mknod;var bb=env._chown;var cb=env._lseek;var db=env._emscripten_set_main_loop_timing;var eb=env._access;var fb=env._fstat;var gb=env._chmod;var hb=env._rmdir;var ib=env.___assert_fail;var jb=env._usleep;var kb=env.___buildEnvironment;var lb=env._fflush;var mb=env._pwrite;var nb=env._strerror_r;var ob=env._localtime_r;var pb=env._tzset;var qb=env._open;var rb=env._getpid;var sb=env._sbrk;var tb=env._fcntl;var ub=env._emscripten_memcpy_big;var vb=env._unlink;var wb=env._sysconf;var xb=env._fchmod;var yb=env.___setErrNo;var zb=env._ftruncate;var Ab=env._mkdir;var Bb=env._pread;var Cb=env._mkport;var Db=env._dlopen;var Eb=env._dlclose;var Fb=env._write;var Gb=env._fsync;var Hb=env.___errno_location;var Ib=env._stat;var Jb=env._recv;var Kb=env._geteuid;var Lb=env._getenv;var Mb=env._sleep;var Nb=env._emscripten_set_main_loop;var Ob=env._abort;var Pb=env._time;var Qb=env._fchown;var Rb=env._strerror;var Sb=env._gettimeofday;var Tb=env._munmap;var Ub=env._mmap;var Vb=env._localtime;var Wb=env._getcwd;var Xb=env._close;var Yb=env._read;var Zb=env._truncate;var _b=0.0;function _declare_heap_length(){return a[33554431]|0}
6 4|0;c[(J&p)>>2]=c[(J&p)>>2]|1024;c[(k&p)+8>>2]=t;k=lr(f,m,k)|0;if(!k)k=0;else{b[((c[(k&p)+4>>2]|0)+(l*20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q=v}else{q=wh(U,17,y,m,0)|0;wh(U,22,B,W,0)|0;wh(U,16,0,q,0)|0}u=wh(U,17,y,m,0)|0;wh(U,22,B,v,0)|0;wh(U,16,0,T,0)|0;do if(!R)if(r){v=u;u=u+1|0;break}else{v=wh(U,22,B,v,0)|0;wh(U,16,0,T,0)|0;break}else v=u;while(0);t=c[(I&p)>>2]|0;if(w)wh(U,17,A,k,0)|0;wh(U,22,C,q,0)|0;wh(U,16,0,T,0)|0;s=c[(I&p)>>2]|0;if(s>>>0>z>>>0)c[((c[(U&p)+4>>2]|0)+(z*20|0)&p)+8>>2]=s;c[((c[(D&p)>>2]|0)&p)+88>>2]=s+-1;wh(U,22,B,l,0)|0;wh(U,22,C,q,0)|0;q=c[(D&p)>>2]|0;m=~T;if((T|0)<0?(S=c[(q&p)+112>>2]|0,(S|0)!=0):0)c[(S+(m<<2)&p)>>2]=c[(I&p)>>2];c[(q&p)+88>>2]=(c[(I&p)>>2]|0)+-1;xh(U,wh(U,41,0,0,0)|0,M,-15);xh(U,wh(U,42,c[(E&p)>>2]|0,c[(F&p)>>2]|0,Q)|0,K,-6);l=c[(U&p)+4>>2]|0;if(l)a[(l+(((c[(I&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;wh(U,43,u,v,t)|0;l=c[(D&p)>>2]|0;k=~W;if((W|0)<0?(V=c[(l&p)+112>>2]|0,(V|0)!=0):0)c[(V+(k<<2)&p)>>2]=c[(I&p)>>2];c[(l&p)+88>>2]=(c[(I&p)>>2]|0)+-1;if((a[(h&n)>>0]|0)==9){k=_;while(1){l=c[(k&p)+52>>2]|0;if(!l)break;else k=l}Ns(f,0,c[(k&p)>>2]|0)}k=c[(Z&p)>>2]|0;if(k)Mk(X,k,1);c[(Z&p)>>2]=_;c[(L&p)>>2]=g;Qs(f,d[(Y&n)>>0]|0,J,H,0);k=0}i=$;return k|0}function Ms(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;do if(!(c[(a&p)+4>>2]&1024)){e=d[(a&n)>>0]|0;if((e|0)==158){e=Ms(c[(a&p)+12>>2]|0,b)|0;break}else if((e|0)!=157){e=0;break}if(!(Ms(c[(a&p)+12>>2]|0,f)|0))e=0;else{c[(b&p)>>2]=0-(c[(f&p)>>2]|0);e=1}}else{c[(b&p)>>2]=c[(a&p)+8>>2];e=1}while(0);i=g;return e|0}function Ns(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+32|0;if((i|0)>=(j|0))fa();C=D;B=d+8|0;y=c[(B&p)>>2]|0;z=c[(d&p)>>2]|0;if(((a[(d&n)+450>>0]|0)==0?(k=d+16|0,!((a[(k&n)>>0]|0)!=0|(y|0)==0)):0)?(a[(z&n)+65>>0]|0)==0:0){a[(k&n)>>0]=1;k=c[(z&p)+24>>2]|0;x=(k&32|0)==0;iq(y,c[(f&p)>>2]|0);h=c[(f&p)>>2]|0;if((h|0)>0){w=f+4|0;v=(e|0)==0;s=(k&96|0)==0;t=(e|0)!=0;u=0;do{r=c[(w&p)>>2]|0;h=c[(r+(u*20|0)&p)>>2]|0;do if(h){k=c[(r+(u*20|0)&p)+4>>2]|0;if(k){jq(y,u,0,k,-1);break}k=a[(h&n)>>0]|0;if(k<<24>>24==-102){if(v)A=25}else if(!(k<<24>>24==-100&t))A=25;if((A|0)==25){A=0;k=c[(r+(u*20|0)&p)+8>>2]|0;if(!k){c[(C&p)>>2]=u+1;k=uh(z,34880,C)|0}else k=kh(z,k)|0;jq(y,u,0,k,75);break}q=b[(h&o)+32>>1]|0;k=q<<16>>16;m=c[(e&p)>>2]|0;a:do if((m|0)>0){g=c[(h&p)+28>>2]|0;l=0;while(1){h=l+1|0;if((c[(e+(l*72|0)&p)+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)&p)+24>>2]|0;if(q<<16>>16<0)k=b[(h&o)+36>>1]|0;if((k|0)<0)k=20456;else k=c[((c[(h&p)+4>>2]|0)+(k*24|0)&p)>>2]|0;if(s){jq(y,u,0,kh(z,c[(r+(u*20|0)&p)+8>>2]|0)|0,75);break}if(x){jq(y,u,0,k,-1);break}else{c[(C&p)>>2]=c[(h&p)>>2];c[(C&p)+4>>2]=k;jq(y,u,0,uh(z,27824,C)|0,75);break}}while(0);u=u+1|0;h=c[(f&p)>>2]|0}while((u|0)<(h|0))}k=c[(B&p)>>2]|0;c[(C&p)+4>>2]=e;c[(C&p)>>2]=d;if((h|0)>0){g=f+4|0;h=0;do{jq(k,h,1,yu(C,c[((c[(g&p)>>2]|0)+(h*20|0)&p)>>2]|0,0)|0,-1);h=h+1|0}while((h|0)<(c[(f&p)>>2]|0))}}i=D;return}function Os(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();f=o;h=b+8|0;if((c[(h&p)>>2]|0)==0?(at(a),g=b+60|0,(c[(g&p)>>2]|0)!=0):0){l=a+72|0;m=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=m;c[(h&p)>>2]=m;n=Oq(a)|0;do if(Ms(c[(g&p)>>2]|0,f)|0){f=c[(f&p)>>2]|0;wh(n,25,f,m,0)|0;if(!f){wh(n,16,0,d,0)|0;break}if((f|0)>-1?(e=b+24|0,d=e,h=c[(d&p)+4>>2]|0,k=((f|0)<0)<<31>>31,h>>>0>k>>>0|((h|0)==(k|0)?(c[(d&p)>>2]|0)>>>0>f>>>0:0)):0){d=e;c[(d&p)>>2]=f;c[(d&p)+4>>2]=k}}else{Rq(a,c[(g&p)>>2]|0,m);wh(n,38,m,0,0)|0;wh(n,46,m,d,0)|0}while(0);f=c[(b&p)+64>>2]|0;if(f){k=c[(l&p)>>2]|0;d=k+1|0;c[(b&p)+12>>2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){s=0;do{wh(I,47,h,s,s+F|0)|0;s=s+1|0}while((s|0)!=(E|0))}}else{if(D<<24>>24==9)r=1;else if(D<<24>>24==3)break;else r=D<<24>>24==13&1;bt(b,g,F,r)}while(0);if(y){r=d[(j&n)+1>>0]|0;if((r|0)==1)zh(I,c[(j&p)+8>>2]|0);else if((r|0)==2){r=b+72|0;h=c[(r&p)>>2]|0;w=h+1|0;c[(r&p)>>2]=h+E;r=j+8|0;zh(I,c[(r&p)>>2]|0);r=c[(r&p)>>2]|0;if((r|0)<0)r=(c[(I&p)+32>>2]|0)+-1|0;if(!(a[((c[(I&p)>>2]|0)&n)+65>>0]|0))r=(c[(I&p)+4>>2]|0)+(r*20|0)|0;else r=29120;a[(r&n)>>0]=28;c[(r&p)+4>>2]=1;c[(r&p)+8>>2]=w;h=I+32|0;i=(c[(h&p)>>2]|0)+E|0;if((E|0)>0){s=g+4|0;r=E+-1|0;t=I+4|0;v=0;do{y=cu(b,c[((c[(s&p)>>2]|0)+(v*20|0)&p)>>2]|0)|0;j=v+F|0;q=v+w|0;if((v|0)<(r|0))wh(I,78,j,i,q)|0;else wh(I,79,j,l,q)|0;xh(I,-1,y,-4);u=c[(t&p)>>2]|0;if(u)a[(u+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;v=v+1|0}while((v|0)!=(E|0))}else r=E+-1|0;wh(I,33,F,w,r)|0}else zu(b,c[(j&p)+4>>2]|0,l,E,F);if(!H)it(I,c[(f&p)+12>>2]|0,l)}a:do switch(x|0){case 11:{i=k+1|0;a[(i&n)>>0]=Bu(c[(c[(g&p)+4>>2]&p)>>2]|0,a[(i&n)>>0]|0)|0;if(C){Au(b,H,f,F,1,A);break a}j=b+19|0;q=a[(j&n)>>0]|0;if(!(q<<24>>24)){E=b+72|0;j=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=j}else{E=q+-1<<24>>24;a[(j&n)>>0]=E;j=c[(b+((E&255)<<2)&p)+24>>2]|0}xh(I,wh(I,49,F,1,j)|0,i,1);dt(b,F,1);wh(I,110,G,j,0)|0;_r(b,j);B=94;break}case 3:{wh(I,25,1,G,0)|0;B=94;break}case 10:{if(C)Au(b,H,f,F,1,A);else B=95;break}case 2:{wh(I,111,G,F,E)|0;B=94;break}case 12:case 14:case 6:case 5:{s=A+1|0;r=b+60|0;i=c[(r&p)>>2]|0;t=b+56|0;q=c[(t&p)>>2]|0;if((q|0)<(s|0)){B=b+72|0;i=c[(B&p)>>2]|0;c[(B&p)>>2]=i+s;i=i+1|0}else{c[(r&p)>>2]=i+s;c[(t&p)>>2]=q-s}q=i+A|0;wh(I,49,F,E,q)|0;if(D<<24>>24==6){F=G+1|0;xh(I,wh(I,69,F,(c[(I&p)+32>>2]|0)+4|0,i)|0,0,-14);wh(I,110,F,i,0)|0}if(C)Au(b,H,f,q,1,A);else{q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){F=b+72|0;j=(c[(F&p)>>2]|0)+1|0;c[(F&p)>>2]=j}else{j=j+-1<<24>>24;a[(q&n)>>0]=j;j=c[(b+((j&255)<<2)&p)+24>>2]|0}wh(I,74,G,j,0)|0;wh(I,75,G,i,j)|0;q=c[(I&p)+4>>2]|0;if(q)a[(q+(((c[(I&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;_r(b,j)}dt(b,i,s);if((c[(t&p)>>2]|0)<(s|0)){c[(t&p)>>2]=s;c[(r&p)>>2]=i;B=94}else B=94;break}case 1:{q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){D=b+72|0;j=(c[(D&p)>>2]|0)+1|0;c[(D&p)>>2]=j}else{j=j+-1<<24>>24;a[(q&n)>>0]=j;j=c[(b+((j&255)<<2)&p)+24>>2]|0}wh(I,49,F,E,j)|0;wh(I,110,G,j,0)|0;_r(b,j);B=94;break}case 9:case 13:{if(C){Au(b,H,f,F,E,A);break a}if(D<<24>>24==13){wh(I,22,c[(z&p)>>2]|0,0,0)|0;B=95;break a}else{wh(I,35,F,E,0)|0;dt(b,F,E);B=94;break a}}case 7:case 8:{u=c[(k&p)+16>>2]|0;h=c[(u&p)>>2]|0;q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){C=b+72|0;v=(c[(C&p)>>2]|0)+1|0;c[(C&p)>>2]=v}else{v=j+-1<<24>>24;a[(q&n)>>0]=v;v=c[(b+((v&255)<<2)&p)+24>>2]|0}w=h+2|0;x=b+60|0;i=c[(x&p)>>2]|0;y=b+56|0;q=c[(y&p)>>2]|0;if((q|0)<(w|0)){C=b+72|0;i=c[(C&p)>>2]|0;c[(C&p)>>2]=i+w;i=i+1|0}else{c[(x&p)>>2]=i+w;c[(y&p)>>2]=q-w}t=i+h|0;r=t+1|0;if(D<<24>>24==8){q=G+1|0;j=wh(I,69,q,0,F)|0;xh(I,j,E,-14);wh(I,49,F,E,r)|0;wh(I,110,q,r,0)|0;q=c[(I&p)+4>>2]|0;if(!q)s=j;else{a[(q+(((c[(I&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;s=j}}else{wh(I,49,F,E,r)|0;s=0}if((h|0)>0){r=u+4|0;q=F+-1|0;j=0;do{wh(I,34,q+(e[((c[(r&p)>>2]|0)+(j*20|0)&o)+16>>1]|0)|0,j+i|0,0)|0;j=j+1|0}while((j|0)!=(h|0))}wh(I,73,G,t,0)|0;wh(I,49,i,w,v)|0;wh(I,110,G,v,0)|0;if(s){q=c[(I&p)+32>>2]|0;if(q>>>0>s>>>0)c[((c[(I&p)+4>>2]|0)+(s*20|0)&p)+8>>2]=q;c[((c[(I&p)+24>>2]|0)&p)+88>>2]=q+-1}_r(b,v);dt(b,i,w);if((c[(y&p)>>2]|0)<(w|0)){c[(y&p)>>2]=w;c[(x&p)>>2]=i;B=94}else B=94;break}default:B=94}while(0);if((B|0)==94?(H|0)==0:0)B=95;if((B|0)==95?(J=c[(f&p)+8>>2]|0,(J|0)!=0):0)wh(I,140,J,m,0)|0;return}function Qs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;if((a[(b&n)+450>>0]|0)==2){k=c[(b&p)+8>>2]|0;l=c[(b&p)>>2]|0;h=(g|0)!=0?35160:10360;if((d|0)==118)g=35336;else if((d|0)==116)g=35320;else if((d|0)==117)g=35352;else g=35360;c[(m&p)>>2]=e;c[(m&p)+4>>2]=f;c[(m&p)+8>>2]=h;c[(m&p)+12>>2]=g;g=uh(l,35120,m)|0;xh(k,wh(k,157,c[(b&p)+464>>2]|0,0,0)|0,g,-1)}i=o;return}function Rs(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=qg(h,0)|0;if(!i)a[(d&n)+65>>0]=1;else{fw(i|0,0,h|0)|0;c[(i&p)+16>>2]=i+20+(g<<2);b[(i&o)+6>>1]=e;b[(i&o)+8>>1]=f;a[(i&n)+4>>0]=a[(d&n)+62>>0]|0;c[(i&p)+12>>2]=d;c[(i&p)>>2]=1}return i|0}function Ss(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[(b&p)+52>>2]|0;if(!((f|0)!=0?(e=Ss(a,f,d)|0,(e|0)!=0):0)){e=c[(b&p)>>2]|0;if((c[(e&p)>>2]|0)>(d|0))e=cu(a,c[((c[(e&p)+4>>2]|0)+(d*20|0)&p)>>2]|0)|0;else e=0}return e|0}function Ts(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&p)>>2]|0,(h|0)==(c[(d&p)>>2]|0)):0)if((h|0)>0){b=c[(b&p)+4>>2]|0;f=c[(d&p)+4>>2]|0;g=0;while(1){if((a[(b+(g*20|0)&n)+12>>0]|0)!=(a[(f+(g*20|0)&n)+12>>0]|0)){f=1;break a}if(Cu(c[(b+(g*20|0)&p)>>2]|0,c[(f+(g*20|0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[(A&n)>>0]=2;c[(Na&p)>>2]=78;c[(z&p)>>2]=79;c[(r&p)>>2]=0;rs(Na,h)|0;h=c[(_&p)>>2]|0;if(a[(A&n)>>0]|0)xa=15}else xa=15;if((xa|0)==15){xa=0;gt(f,c[((c[(h&p)+20>>2]|0)+(s*48|0)&p)>>2]|0,c[(t&p)>>2]|0,16);h=c[(_&p)>>2]|0;da=(c[(h&p)+20>>2]|0)+(s*48|0)+20|0;b[(da&o)>>1]=e[(da&o)>>1]|4}s=s+1|0}while((s|0)<(c[(h&p)+12>>2]|0))}if(B){if(S)a[(k&n)+36>>0]=c[(S&p)>>2];if(L&1024)a[(k&n)+40>>0]=1}if((c[(g&p)>>2]|0)>0){x=0;do{R=c[(g+(x*72|0)&p)+48>>2]|0;da=c[(Ha&p)>>2]|0;c[(Ha&p)>>2]=da+1;c[(Ha+(da<<2)&p)+4>>2]=R;x=x+1|0}while((x|0)<(c[(g&p)>>2]|0))}u=c[(ya&p)>>2]|0;if((u|0)>0)do{u=u+-1|0;Eu(Ia,u)}while((u|0)>0);b:do if(!(a[(Aa&n)>>0]|0)){da=(L&1024|0)==0;c:do if(!da){d:do if((c[(g&p)>>2]|0)==1){K=c[(g&p)+48>>2]|0;s=c[(g&p)+24>>2]|0;A=c[(l&p)>>2]|0;e:do if((A|0)>0){z=c[(l&p)+4>>2]|0;r=0;while(1){h=c[(z+(r*20|0)&p)>>2]|0;f:do if(!h)h=0;else while(1){B=c[(h&p)+4>>2]|0;if(!(B&4096))break f;if(!(B&262144))h=h+12|0;else h=c[((c[(h&p)+20>>2]|0)&p)+4>>2]|0;h=c[(h&p)>>2]|0;if(!h){h=0;break}}while(0);do if((a[(h&n)>>0]|0)==-102){if((c[(h&p)+28>>2]|0)!=(K|0))break;if((b[(h&o)+32>>1]|0)<0)break e}while(0);r=r+1|0;if((r|0)>=(A|0)){xa=41;break}}}else xa=41;while(0);g:do if((xa|0)==41){h=c[(s&p)+8>>2]|0;if(!h)break d;t=l+4|0;s=s+4|0;while(1){if(a[(h&n)+50>>0]|0){F=h+46|0;h:do if(!(b[(F&o)>>1]|0))B=0;else{I=h+4|0;H=h+32|0;B=0;do{E=b[((c[(I&p)>>2]|0)+(B<<1)&o)>>1]|0;if(!(Fu(Ia,K,E,-1,-1,2,h)|0)){r=c[((c[(H&p)>>2]|0)+(B<<2)&p)>>2]|0;if((c[(l&p)>>2]|0)>0)A=0;else break h;i:while(1){C=c[((c[(t&p)>>2]|0)+(A*20|0)&p)>>2]|0;j:do if(!C)z=0;else{z=C;while(1){D=c[(z&p)+4>>2]|0;if(!(D&4096))break j;if(!(D&262144))z=z+12|0;else z=c[((c[(z&p)+20>>2]|0)&p)+4>>2]|0;z=c[(z&p)>>2]|0;if(!z){z=0;break}}}while(0);do if((a[(z&n)>>0]|0)==-102){if((b[(z&o)+32>>1]|0)!=(b[((c[(I&p)>>2]|0)+(B<<1)&o)>>1]|0))break;if((c[(z&p)+28>>2]|0)!=(K|0))break;z=cu(f,C)|0;if(!z)break;if(!(dd(c[(z&p)>>2]|0,r)|0))break i}while(0);A=A+1|0;if((A|0)>=(c[(l&p)>>2]|0))break h}if((A|0)<0)break h;if(!(a[((c[(s&p)>>2]|0)+(E*24|0)&n)+20>>0]|0))break h}B=B+1|0}while((B|0)<(e[(F&o)>>1]|0))}while(0);if((B|0)==(e[(F&o)>>1]|0))break g}h=c[(h&p)+20>>2]|0;if(!h)break d}}while(0);a[(k&n)+40>>0]=1;break c}while(0);if(!S){b[(Ea&o)>>1]=e[(Ea&o)>>1]|512;c[(ca&p)>>2]=l}}while(0);k:do if((((X|0)==1?(Z=c[($&p)>>2]|0,Y=Z+34|0,(b[(Y&o)>>1]&32)==0):0)?(U=c[(Z&p)+4>>2]|0,Q=c[(U&p)+24>>2]|0,(a[(Q&n)+44>>0]&16)==0):0)?(c[(U&p)+72>>2]|0)==0:0){S=c[(U&p)+48>>2]|0;C=Z+328|0;R=c[(V&p)>>2]|0;K=R+36|0;c[(K&p)>>2]=0;b[(R&o)+42>>1]=0;y=Fu(C,S,-1,0,0,2,0)|0;l:do if(!y){A=c[(Q&p)+8>>2]|0;m:do if(A){D=R+48|0;n:while(1){do if(a[(A&n)+50>>0]|0){if(c[(A&p)+36>>2]|0)break;z=A+46|0;h=b[(z&o)>>1]|0;if((h&65535)>3)break;t=A+4|0;o:do if(!(h<<16>>16)){h=0;B=0}else{B=0;while(1){h=Fu(C,S,b[((c[(t&p)>>2]|0)+(B<<1)&o)>>1]|0,0,0,2,A)|0;if(!h)break;c[((c[(D&p)>>2]|0)+(B<<2)&p)>>2]=h;B=B+1|0;h=b[(z&o)>>1]|0;if((B|0)>=(h&65535|0))break o}h=b[(z&o)>>1]|0}while(0);if((B|0)==(h&65535|0)){D=B;break n}}while(0);A=c[(A&p)+20>>2]|0;if(!A)break m}c[(K&p)>>2]=4609;if(!(a[(A&n)+51>>0]&32)){s=U+64|0;r=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;z=0;y=0;h=e[(A&o)+48>>1]|0;p:while(1){B=h;while(1){h=B+-1|0;if((B|0)<=0)break p;B=b[((c[(t&p)>>2]|0)+(h<<1)&o)>>1]|0;if((B&65535)<63)break;else B=h}$=iw(1,0,B<<16>>16|0)|0;z=$|z;y=G|y}if((r&~z|0)==0&(s&~y|0)==0)xa=91}else xa=91;if((xa|0)==91)c[(K&p)>>2]=4673;$=D&65535;b[(R&o)+40>>1]=$;b[(R&o)+24>>1]=$;c[(R&p)+28>>2]=A;b[(R&o)+20>>1]=39;break l}while(0);if(!(c[(K&p)>>2]|0)){xa=103;break k}}else{c[(K&p)>>2]=4353;c[(c[(R&p)+48>>2]&p)>>2]=y;b[(R&o)+40>>1]=1;b[(R&o)+24>>1]=1;b[(R&o)+20>>1]=33}while(0);b[(R&o)+22>>1]=1;c[(Z&p)+800>>2]=R;t=c[(Z&p)+68>>2]|0;q:do if((t|0)>0){u=0;while(1){if((c[(Z+(u<<2)&p)+72>>2]|0)==(S|0))break;u=u+1|0;if((u|0)>=(t|0)){u=0;t=0;break q}}u=iw(1,0,u|0)|0;t=G}else{u=0;t=0}while(0);s=R+8|0;c[(s&p)>>2]=u;c[(s&p)+4>>2]=t;c[(Z&p)+740>>2]=S;b[(Z&o)+32>>1]=1;s=c[(Z&p)+8>>2]|0;if(s)a[(Z&n)+36>>0]=c[(s&p)>>2];if(!(b[(Y&o)>>1]&1024)){xa=120;break}a[(Z&n)+40>>0]=1;xa=120}else xa=103;while(0);if((xa|0)==103){F=c[($&p)>>2]|0;h=c[(F&p)+4>>2]|0;H=c[(c[(F&p)>>2]&p)>>2]|0;Z=a[(F&n)+41>>0]|0;I=Z&255;z=c[(V&p)>>2]|0;c[(z&p)+48>>2]=z+56;b[(z&o)+40>>1]=0;b[(z&o)+44>>1]=3;c[(z&p)+36>>2]=0;r=H+65|0;r:do if(Z<<24>>24){s=z+16|0;t=F+68|0;u=z+8|0;v=0;w=0;x=0;y=0;E=0;D=h+8|0;C=0;while(1){a[(s&n)>>0]=E;B=c[(D&p)+40>>2]|0;A=c[(t&p)>>2]|0;s:do if((A|0)>0){h=0;while(1){if((c[(F+(h<<2)&p)+72>>2]|0)==(B|0))break;h=h+1|0;if((h|0)>=(A|0)){h=0;B=0;break s}}h=iw(1,0,h|0)|0;B=G}else{h=0;B=0}while(0);Z=u;c[(Z&p)>>2]=h;c[(Z&p)+4>>2]=B;Z=C;C=a[(D&n)+36>>0]|0;Z=((C|Z)&10)==0;w=Z?w:v;y=Z?y:x;if(!(a[((c[(D&p)+16>>2]|0)&n)+44>>0]&16))h=Hu($,w,y)|0;else h=Gu($,w,y)|0;if(h)break;Z=Iu($,w,y)|0;h=u;if(Z)break;if(a[(r&n)>>0]|0)break r;E=E+1|0;if((E|0)>=(I|0))break r;else{v=c[(h&p)>>2]|v;x=c[(h&p)+4>>2]|x;D=D+72|0}}Ju(H,z);break b}while(0);Ju(H,z);Ku(k,0);if(a[(Aa&n)>>0]|0)break;if(c[(ca&p)>>2]|0){Ku(k,(e[(k&o)+32>>1]|0)+1&65535);if(!(a[(Aa&n)>>0]|0))xa=120;else break}else xa=121}if((xa|0)==120?(c[(ca&p)>>2]|0)==0:0)xa=121;if((xa|0)==121?(c[(La&p)+24>>2]&131072|0)!=0:0){ca=k+24|0;c[(ca&p)>>2]=-1;c[(ca&p)+4>>2]=-1}if((c[(f&p)+64>>2]|0)==0?(a[(Aa&n)>>0]|0)==0:0){x=a[(Ba&n)>>0]|0;t:do if((x&255)>1&(l|0)!=0?(b[(ba&o)>>1]&1024)==0:0){s=Lu(Ha,l)|0;t=G;r=c[(aa&p)>>2]|0;if(r){ca=Lu(Ha,r)|0;s=ca|s;t=G|t}B=k+736|0;h=c[(Ca&p)>>2]|0;A=c[(_&p)>>2]|0;z=A+20|0;A=A+12|0;y=x;r=X;do{u=c[(B+(((y&255)+-1|0)*80|0)&p)+64>>2]|0;if(!(a[(h+((d[(u&n)+16>>0]|0)*72|0)&n)+44>>0]&8))break t;if(da?(c[(u&p)+36>>2]&4096|0)==0:0)break t;w=u+8|0;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;if(!((v&s|0)==0&(w&t|0)==0))break t;u=c[(z&p)>>2]|0;ca=c[(A&p)>>2]|0;x=u+(ca*48|0)|0;if((ca|0)>0)do{ca=u+40|0;if(!((v&c[(ca&p)>>2]|0)==0?(w&c[(ca&p)+4>>2]|0)==0:0)?(c[((c[(u&p)>>2]|0)&p)+4>>2]&1|0)==0:0)break t;u=u+48|0}while(u>>>0<x>>>0);y=y+-1<<24>>24;a[(Ba&n)>>0]=y;r=r+-1|0}while((y&255)>1)}else r=X;while(0);da=(c[(k&p)>>2]|0)+424|0;c[(da&p)>>2]=(c[(da&p)>>2]|0)+(b[(k&o)+32>>1]|0);do if((L&4|0)!=0?(W=(c[(k&p)+800>>2]|0)+36|0,T=c[(W&p)>>2]|0,(T&4096|0)!=0):0){a[(k&n)+38>>0]=1;if(a[((c[(g&p)+24>>2]|0)&n)+44>>0]&32)break;c[(W&p)>>2]=T&-65}while(0);wa=k+736|0;S=(r|0)>0;if(S){P=L&16;Q=k+38|0;R=ha+32|0;M=O^1;O=(q|0)==0|M;N=f+68|0;K=54-(L>>>12&1)|0;J=ha+4|0;E=La+20|0;C=La+16|0;v=0;L=wa;while(1){D=d[(L&n)+44>>0]|0;F=g+(D*72|0)+24|0;t=c[(F&p)>>2]|0;h=c[(t&p)+68>>2]|0;u:do if(!h)z=-1e6;else{B=c[(E&p)>>2]|0;if((B|0)<=0){z=0;break}A=c[(C&p)>>2]|0;s=0;while(1){z=s+1|0;if((c[(A+(s<<4)&p)+12>>2]|0)==(h|0)){z=s;break u}if((z|0)<(B|0))s=z;else break}}while(0);I=c[(L&p)+64>>2]|0;H=t+44|0;h=d[(H&n)>>0]|0;do if(!(h&2)){if(c[(t&p)+12>>2]|0)break;B=c[(I&p)+36>>2]|0;if(B&1024){y=c[(t&p)+60>>2]|0;v:do if(!y)y=0;else while(1){if((c[(y&p)>>2]|0)==(La|0))break v;y=c[(y&p)+24>>2]|0;if(!y){y=0;break}}while(0);xh(ha,wh(ha,149,c[(g+(D*72|0)&p)+48>>2]|0,0,0)|0,y,-10);break}if(h&16)break;if(B&64|P){gs(f,z,c[(t&p)+32>>2]|0,0,c[(t&p)>>2]|0);break}A=g+(D*72|0)+48|0;if(!(a[(Q&n)>>0]|0))h=54;else{c[(ea&p)>>2]=c[(A&p)>>2];h=55}Qq(f,c[(A&p)>>2]|0,z,t,h);if(a[(Q&n)>>0]|0)break;if((b[(t&o)+38>>1]|0)>=64)break;if(a[(H&n)>>0]&32)break;A=g+(D*72|0)+64|0;y=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;if((y|0)==0&(A|0)==0)x=0;else{x=0;do{y=mw(y|0,A|0,1)|0;A=G;x=x+1|0}while(!((y|0)==0&(A|0)==0))}xh(ha,(c[(R&p)>>2]|0)+-1|0,x,-14)}while(0);B=I+36|0;w:do if(c[(B&p)>>2]&512){h=c[(I&p)+28>>2]|0;do if(a[(H&n)>>0]&32){if((a[(h&n)+51>>0]&3)!=2|M)break;c[(L&p)+8>>2]=c[(L&p)+4>>2];break w}while(0);do if(!(a[(Q&n)>>0]|0)){if(!O){x=q;w=K;break}x=c[(N&p)>>2]|0;c[(N&p)>>2]=x+1;w=54}else{w=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if((w|0)==0|(w|0)==(h|0))x=q;else{x=q;do{x=x+1|0;w=c[(w&p)+20>>2]|0}while(!((w|0)==0|(w|0)==(h|0)))}c[(ga&p)>>2]=x;w=55}while(0);c[(L&p)+8>>2]=x;wh(ha,w,x,c[(h&p)+40>>2]|0,z)|0;da=c[(Ka&p)>>2]|0;xh(da,-1,hs(f,h)|0,-6);da=c[(B&p)>>2]|0;if(!((da&15|0)!=0&(da&32770|0)==0))break;if(b[(Ea&o)>>1]&1)break;u=c[(J&p)>>2]|0;if(!u)break;a[(u+(((c[(R&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=2}while(0);if((z|0)>-1)Ar(f,z);v=v+1|0;if((v|0)==(r|0))break;else L=L+80|0}ga=(a[(Aa&n)>>0]|0)==0;c[(k&p)+44>>2]=c[(R&p)>>2];if(!ga)break}else{R=ha+32|0;c[(k&p)+44>>2]=c[(R&p)>>2]}if(!S)break a;ka=k+24|0;la=k+36|0;ma=k+39|0;na=f+80|0;oa=f+68|0;pa=f+100|0;qa=f+19|0;ra=f+72|0;sa=Na+20|0;ta=Na+4|0;ua=Na+24|0;t=-1;s=-1;va=0;while(1){Y=wa+(va*80|0)|0;h=wa+(va*80|0)+64|0;_=wa+(va*80|0)+44|0;if(c[((c[(h&p)>>2]|0)&p)+36>>2]&16384){K=d[(_&n)>>0]|0;U=g+(K*72|0)+8|0;Z=c[(Ka&p)>>2]|0;y=Oq(f)|0;$=c[(na&p)>>2]|0;c[(na&p)>>2]=$+1;$=wh(y,44,$,0,0)|0;y=c[(g+(K*72|0)&p)+24>>2]|0;ga=c[(ya&p)>>2]|0;B=c[(za&p)>>2]|0;T=B+(ga*48|0)|0;M=c[(h&p)>>2]|0;x:do if((ga|0)>0){z=g+(K*72|0)+48|0;v=y+4|0;w=M+48|0;F=0;C=0;A=0;u=0;E=0;while(1){D=c[(B&p)>>2]|0;ga=M;do if((c[(ga&p)>>2]|0)==0&(c[(ga&p)+4>>2]|0)==0){if(b[(B&o)+20>>1]&2)break;if(c[(D&p)+4>>2]&1)break;ga=c[(z&p)>>2]|0;c[(Na&p)>>2]=0;c[(Na&p)+4>>2]=0;c[(Na&p)+8>>2]=0;c[(Na&p)+12>>2]=0;c[(Na&p)+16>>2]=0;c[(Na&p)+20>>2]=0;a[(sa&n)>>0]=3;c[(Na&p)>>2]=78;c[(ta&p)>>2]=79;c[(ua&p)>>2]=ga;rs(Na,D)|0;if(!(a[(sa&n)>>0]|0))break;ga=c[(f&p)>>2]|0;u=ss(ga,u,Mr(ga,D,0,0)|0)|0}while(0);do if(!(Mu(B,U,t,s)|0)){I=F;D=C;h=A}else{D=c[(B&p)+12>>2]|0;if((D|0)>63){I=0;H=-2147483648}else{I=iw(1,0,D|0)|0;H=G}if(!(E<<24>>24)){E=c[((c[(v&p)>>2]|0)+(D*24|0)&p)>>2]|0;c[(Na&p)>>2]=c[(y&p)>>2];c[(Na&p)+4>>2]=E;bd(284,33960,Na);E=1}if(!((I&F|0)==0&(H&C|0)==0)){I=F;D=C;h=A;break}h=A+1|0;if(Nu(c[(f&p)>>2]|0,M,h)|0)break x;c[((c[(w&p)>>2]|0)+(A<<2)&p)>>2]=B;I=I|F;D=H|C}while(0);B=B+48|0;if(B>>>0>=T>>>0){B=I;xa=207;break}else{F=I;C=D;A=h}}}else{D=0;B=0;h=0;u=0;xa=207}while(0);do if((xa|0)==207){xa=0;v=h&65535;b[(M&o)+40>>1]=v;b[(M&o)+24>>1]=v;v=M+36|0;c[(v&p)>>2]=16961;L=g+(K*72|0)+64|0;N=L;H=c[(N&p)+4>>2]|0;N=c[(N&p)>>2]&~B;P=H&((D|-2147483648)^2147483647);x=y+38|0;Q=b[(x&o)>>1]|0;I=Q<<16>>16;Q=Q<<16>>16>63?63:I;S=(Q|0)>0;if(S){D=0;do{ga=iw(1,0,D|0)|0;h=(((ga&N|0)!=0|(G&P|0)!=0)&1)+h|0;D=D+1|0}while((D|0)!=(Q|0))}if((H|0)<0)h=h+-63+I|0;O=h+1|0;J=us(c[(f&p)>>2]|0,O&65535,0,Oa)|0;if(!J)break;c[(M&p)+28>>2]=J;c[(J&p)>>2]=33992;c[(J&p)+12>>2]=y;D=c[(za&p)>>2]|0;if(D>>>0<T>>>0){h=J+4|0;B=J+32|0;H=0;I=0;A=0;do{do if(Mu(D,U,t,s)|0){F=c[(D&p)+12>>2]|0;if((F|0)>63){E=0;C=-2147483648}else{E=iw(1,0,F|0)|0;C=G}if(!((E&H|0)==0&(C&I|0)==0))break;ga=c[(D&p)>>2]|0;b[((c[(h&p)>>2]|0)+(A<<1)&o)>>1]=F;F=Ou(f,c[(ga&p)+12>>2]|0,c[(ga&p)+16>>2]|0)|0;if(!F)F=11152;else F=c[(F&p)>>2]|0;c[((c[(B&p)>>2]|0)+(A<<2)&p)>>2]=F;H=E|H;I=C|I;A=A+1|0}while(0);D=D+48|0}while(D>>>0<T>>>0)}else A=0;if(S){D=J+4|0;C=J+32|0;h=0;do{ga=iw(1,0,h|0)|0;if(!((ga&N|0)==0&(G&P|0)==0)){b[((c[(D&p)>>2]|0)+(A<<1)&o)>>1]=h;c[((c[(C&p)>>2]|0)+(A<<2)&p)>>2]=11152;A=A+1|0}h=h+1|0}while((h|0)!=(Q|0))}do if((c[(L&p)+4>>2]|0)<0){if((b[(x&o)>>1]|0)<=63)break;h=J+4|0;B=J+32|0;z=63;do{b[((c[(h&p)>>2]|0)+(A<<1)&o)>>1]=z;c[((c[(B&p)>>2]|0)+(A<<2)&p)>>2]=11152;A=A+1|0;z=z+1|0}while((z|0)<(b[(x&o)>>1]|0))}while(0);b[((c[(J&p)+4>>2]|0)+(A<<1)&o)>>1]=-1;c[((c[(J&p)+32>>2]|0)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|0)break b}Pu(f,g,Y,va,d[(_&n)>>0]|0,m);c[(wa+(va*80|0)&p)+32>>2]=c[(R&p)>>2];ja=c[(k&p)>>2]|0;O=ja+8|0;ea=c[(O&p)>>2]|0;ha=c[(ja&p)>>2]|0;u=k+(va*80|0)+736|0;N=c[(k+(va*80|0)&p)+800>>2]|0;ca=k+(va*80|0)+780|0;K=d[(ca&n)>>0]|0;I=c[(Ca&p)>>2]|0;Q=I+(K*72|0)+8|0;q=c[(I+(K*72|0)&p)+48>>2]|0;B=c[(Ha&p)>>2]|0;y:do if((B|0)>0){h=0;while(1){if((c[(Ha+(h<<2)&p)+4>>2]|0)==(q|0))break;h=h+1|0;if((h|0)>=(B|0)){h=-1;B=-1;break y}}h=iw(1,0,h|0)|0;h=~h;B=~G}else{h=-1;B=-1}while(0);ia=k+(va*80|0)+808|0;P=ia;c[(P&p)>>2]=h&t;c[(P&p)+4>>2]=B&s;P=ka;P=mw(c[(P&p)>>2]|0,c[(P&p)+4>>2]|0,va|0)|0;ba=P&1;W=N+36|0;if(!(c[(W&p)>>2]&64))y=0;else y=(b[(Ea&o)>>1]&32)==0;J=xs(ea)|0;S=k+(va*80|0)+752|0;c[(S&p)>>2]=J;da=k+(va*80|0)+748|0;c[(da&p)>>2]=J;ga=xs(ea)|0;c[(k+(va*80|0)&p)+760>>2]=ga;do if(a[(ca&n)>>0]|0){if(!(a[(I+(K*72|0)&n)+44>>0]&8))break;aa=ja+72|0;l=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=l;c[(u&p)>>2]=l;wh(ea,25,0,l,0)|0}while(0);D=a[(I+(K*72|0)&n)+45>>0]|0;z:do if(!(D&4)){F=c[(W&p)>>2]|0;if(F&1024){v=b[(N&o)+40>>1]|0;w=v&65535;y=ja+100|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1;y=w+2|0;J=ja+60|0;h=c[(J&p)>>2]|0;K=ja+56|0;B=c[(K&p)>>2]|0;if((B|0)<(y|0)){ca=ja+72|0;x=c[(ca&p)>>2]|0;c[(ca&p)>>2]=x+y;x=x+1|0}else{c[(J&p)>>2]=h+y;c[(K&p)>>2]=B-y;x=h}h=c[(da&p)>>2]|0;E=v<<16>>16==0;if(!E){H=x+2|0;F=N+48|0;I=0;do{D=H+I|0;C=c[((c[(F&p)>>2]|0)+(I<<2)&p)>>2]|0;do if(C)if(!(b[(C&o)+18>>1]&1)){Rq(ja,c[((c[(C&p)>>2]|0)&p)+16>>2]|0,D);break}else{Qu(ja,C,u,I,ba,D)|0;h=c[(S&p)>>2]|0;break}while(0);I=I+1|0}while((I|0)<(w|0))}wh(ea,25,c[(N&p)+24>>2]|0,x,0)|0;wh(ea,25,w,x+1|0,0)|0;ba=c[(N&p)+32>>2]|0;da=N+28|0;ca=(a[(da&n)>>0]|0)!=0?-11:-2;xh(ea,wh(ea,14,q,h,x)|0,ba,ca);a[(da&n)>>0]=0;if(!E){z=N+30|0;A=N+48|0;h=(v&65535)>1?0-w|0:-1;h=h>>>0>4294967280?0-h|0:16;B=0;do{if(e[(z&o)>>1]&1<<B)Ru(u,c[((c[(A&p)>>2]|0)+(B<<2)&p)>>2]|0);B=B+1|0}while((B|0)!=(h|0))}a[(k+(va*80|0)&n)+781>>0]=-105;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=c[(ea&p)+32>>2];dt(ja,x,y);if((c[(K&p)>>2]|0)<(y|0)){c[(K&p)>>2]=y;c[(J&p)>>2]=x}bu(ja);xa=459;break}if(!((F&256|0)==0|(F&5|0)==0)){y=c[(c[(N&p)+48>>2]&p)>>2]|0;da=ja+72|0;A=(c[(da&p)>>2]|0)+1|0;c[(da&p)>>2]=A;y=Qu(ja,y,u,0,ba,A)|0;if((y|0)!=(A|0))_r(ja,A);xa=c[(S&p)>>2]|0;wh(ea,38,y,xa,0)|0;wh(ea,70,q,xa,y)|0;dt(ja,y,1);Su(ja,q,-1,y);a[(k+(va*80|0)&n)+781>>0]=-100;xa=459;break}if((F&258|0)==258){if(!(F&32)){h=0;A=0}else{h=1;A=c[(c[(N&p)+48>>2]&p)>>2]|0}if(!(F&16))h=0;else h=c[((c[(N&p)+48>>2]|0)+(h<<2)&p)>>2]|0;B=(ba|0)!=0;z=B?A:h;h=B?h:A;if(!h)wh(ea,B?105:108,q,J,0)|0;else{ca=c[(h&p)>>2]|0;da=$t(ja,c[(ca&p)+16>>2]|0,Na)|0;wh(ea,d[((d[(ca&n)>>0]|0)+-80&n)+33536>>0]|0,q,J,da)|0;dt(ja,da,1);_r(ja,c[(Na&p)>>2]|0);Ru(u,h)}if(!z){h=0;B=156}else{da=c[(z&p)>>2]|0;ca=ja+72|0;h=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=h;Rq(ja,c[(da&p)+16>>2]|0,h);da=a[(da&n)>>0]|0;if(da<<24>>24==80|da<<24>>24==82)B=ba<<1^83;else B=ba<<1|80;Ru(u,z)}A=ea+32|0;da=c[(A&p)>>2]|0;a[(k+(va*80|0)&n)+781>>0]=ba^9;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=da;if((B|0)==156){xa=459;break}da=ja+72|0;x=(c[(da&p)>>2]|0)+1|0;c[(da&p)>>2]=x;wh(ea,103,q,x,0)|0;Su(ja,q,-1,x);wh(ea,B,h,J,x)|0;x=c[(ea&p)+4>>2]|0;if(!x){xa=459;break}a[(x+(((c[(A&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=83;xa=459;break}if(F&512){O=b[(N&o)+24>>1]|0;a[(Ma&n)>>0]=0;V=c[(N&p)+28>>2]|0;X=c[(k+(va*80|0)&p)+744>>2]|0;do if(!(b[(Eaea,25,(a[((c[(V&p)+28>>2]|0)+h&n)>>0]|0)==1^ba,da,0)|0;c[(k+(va*80|0)&p)+776>>2]=c[(ea&p)+32>>2]}if(K){D=1;break}D=b[((c[(V&p)+4>>2]|0)+(h<<1)&o)>>1]|0;if(D<<16>>16<=-1){D=1;break}H=(a[((c[((c[(V&p)+12>>2]|0)&p)+4>>2]|0)+((D<<16>>16)*24|0)&n)+20>>0]|0)==0?1:H;D=1}while(0);M=Tu(ja,u,ba,D,Oa)|0;L=c[(Oa&p)>>2]|0;J=(L|0)==0;if(!J)a[(Ma&n)>>0]=a[(L+h&n)>>0]|0;N=c[(S&p)>>2]|0;E=b[(V&o)+46>>1]|0;if((O&65535)<(E&65535)?!((a[((c[(V&p)+28>>2]|0)+h&n)>>0]|0)==0^((P&1|0)!=0|0!=0)):0)xa=318;else if((ba|0)!=0?E<<16>>16==O<<16>>16:0)xa=318;else{Q=H;H=0;P=C;S=K}if((xa|0)==318){Q=0;P=K;S=C}C=(S|0)!=0;if(C)E=(b[(S&o)+18>>1]&40)!=0;else E=1;F=E&1;K=(P|0)!=0;if(K)I=(b[(P&o)+18>>1]&40)!=0;else I=1;D=I&1;I=(C|O<<16>>16!=0)&1;do if(C){B=c[((c[(S&p)>>2]|0)&p)+16>>2]|0;C=M+h|0;Rq(ja,B,C);if(b[(S&o)+20>>1]&256){if(!(a[((c[(ea&p)>>2]|0)&n)+65>>0]|0))E=(c[(ea&p)+4>>2]|0)+(((c[(ea&p)+32>>2]|0)+-1|0)*20|0)|0;else E=29120;c[(E&p)+12>>2]=c[(k+(va*80|0)&p)+772>>2];a[(E&n)+3>>0]=1}if(Uu(B)|0)wh(ea,76,C,N,0)|0;do if(!J){E=L+h|0;if((Bu(B,a[(E&n)>>0]|0)|0)<<24>>24==65){a[(E&n)>>0]=65;C=65}else C=a[(E&n)>>0]|0;if(!(Vu(B,C)|0))break;a[(E&n)>>0]=65}while(0);E=h+1|0}else{if(!(Q<<24>>24)){E=h;break}wh(ea,28,0,M+h|0,0)|0;E=h+1|0;F=0;I=1}while(0);Wu(ja,M,E-(Q&255)|0,L);xh(ea,wh(ea,d[((I<<2|ba|F<<1)&n)+33544>>0]|0,X,N,M)|0,E,-14);do if(K){B=c[((c[(P&p)>>2]|0)&p)+16>>2]|0;A=M+h|0;dt(ja,A,1);Rq(ja,B,A);if(b[(P&o)+20>>1]&256){if(!(a[((c[(ea&p)>>2]|0)&n)+65>>0]|0))C=(c[(ea&p)+4>>2]|0)+(((c[(ea&p)+32>>2]|0)+-1|0)*20|0)|0;else C=29120;c[(C&p)+12>>2]=c[(k+(va*80|0)&p)+772>>2];a[(C&n)+3>>0]=1}if(Uu(B)|0)wh(ea,76,A,N,0)|0;do if((Bu(B,a[(Ma&n)>>0]|0)|0)<<24>>24!=65){if(Vu(B,a[(Ma&n)>>0]|0)|0)break;Wu(ja,A,1,Ma)}while(0);h=h+1|0}else{if(!(H<<24>>24))break;wh(ea,28,0,M+h|0,0)|0;D=0;h=h+1|0}while(0);mg(ha,L);c[(k+(va*80|0)&p)+788>>2]=c[(ea&p)+32>>2];if(h)xh(ea,wh(ea,d[((D|ba<<1)&n)+33552>>0]|0,X,N,M)|0,h,-14);Ru(u,S);Ru(u,P);do if(!y){h=c[(V&p)+12>>2]|0;if(!(a[(h&n)+44>>0]&32)){ca=ja+72|0;da=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=da;wh(ea,112,X,da,0)|0;Su(ja,q,-1,da);wh(ea,66,q,da,0)|0;break}if((q|0)==(X|0))break;h=c[(h&p)+8>>2]|0;A:do if(!h)D=0;else while(1){if((a[(h&n)+51>>0]&3)==2){D=h;break A}h=c[(h&p)+20>>2]|0;if(!h){D=0;break}}while(0);I=D+46|0;w=b[(I&o)>>1]|0;h=w&65535;B=ja+60|0;A=c[(B&p)>>2]|0;z=ja+56|0;v=c[(z&p)>>2]|0;if((v|0)<(h|0)){da=ja+72|0;A=c[(da&p)>>2]|0;c[(da&p)>>2]=A+h;A=A+1|0}else{c[(B&p)>>2]=A+h;c[(z&p)>>2]=v-h}if(w<<16>>16){v=D+4|0;w=V+48|0;z=V+4|0;E=0;do{D=b[((c[(v&p)>>2]|0)+(E<<1)&o)>>1]|0;h=b[(w&o)>>1]|0;B:do if(!(h<<16>>16))h=-1;else{C=c[(z&p)>>2]|0;B=h&65535;h=0;while(1){if((b[(C+(h<<1)&o)>>1]|0)==D<<16>>16)break B;h=h+1|0;if((h|0)>=(B|0)){h=-1;break}}}while(0);wh(ea,47,X,h<<16>>16,E+A|0)|0;E=E+1|0;h=e[(I&o)>>1]|0}while((E|0)<(h|0))}xh(ea,wh(ea,68,q,ga,A)|0,h,-14)}while(0);A=c[(W&p)>>2]|0;do if(!(A&4096)){z=k+(va*80|0)+781|0;if(!ba){a[(z&n)>>0]=9;break}else{a[(z&n)>>0]=8;break}}else a[(k+(va*80|0)&n)+781>>0]=-100;while(0);c[(k+(va*80|0)&p)+784>>2]=X;a[(k+(va*80|0)&n)+782>>0]=A>>>16&1;if(A&15){xa=459;break}a[(k+(va*80|0)&n)+783>>0]=1;xa=459;break}if(!(F&8192))if(!(D&8)){a[(k+(va*80|0)&n)+781>>0]=a[(ba&n)+33560>>0]|0;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=(wh(ea,d[(ba&n)+33568>>0]|0,q,J,0)|0)+1;a[(k+(va*80|0)&n)+783>>0]=1;xa=459;break}else{a[(k+(va*80|0)&n)+781>>0]=-100;xa=459;break}J=ja+68|0;aa=c[(J&p)>>2]|0;c[(J&p)>>2]=aa+1;_=ja+72|0;$=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=$;ba=xs(ea)|0;Z=c[(I+(K*72|0)&p)+24>>2]|0;l=c[(c[(N&p)+48>>2]&p)>>2]|0;S=c[(l&p)+12>>2]|0;a[(k+(va*80|0)&n)+781>>0]=18;c[(k+(va*80|0)&p)+784>>2]=$;D=a[(Ba&n)>>0]|0;do if((D&255)>1){I=(D&255)-va|0;F=I+-1|0;E=mh(ha,(F*72|0)+80|0,0)|0;if(!E)break z;D=I&255;c[(E&p)+4>>2]=D;c[(E&p)>>2]=D;D=E+8|0;K=D+0|0;C=Q+0|0;h=K+72|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));H=c[(Ca&p)>>2]|0;if((I|0)<2){Y=E;break}else I=1;while(1){K=D+(I*72|0)+0|0;C=H+((d[(k+((I+va|0)*80|0)&n)+780>>0]|0)*72|0)+8|0;h=K+72|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));if((I|0)<(F|0))I=I+1|0;else{Y=E;break}}}else Y=c[(Ca&p)>>2]|0;while(0);if(!(b[(Ea&o)>>1]&8)){if(!(a[(Z&n)+44>>0]&32)){D=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=D;wh(ea,28,0,D,0)|0}else{D=c[(Z&p)+8>>2]|0;C:do if(!D)D=0;else while(1){if((a[(D&n)+51>>0]&3)==2)break C;D=c[(D&p)+20>>2]|0;if(!D){D=0;break}}while(0);X=c[(J&p)>>2]|0;c[(J&p)>>2]=X+1;wh(ea,57,X,e[(D&o)+46>>1]|0,0)|0;W=c[(O&p)>>2]|0;xh(W,-1,hs(ja,D)|0,-6);D=X}W=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=W}else{W=0;D=0}X=wh(ea,25,0,$,0)|0;C=c[(ya&p)>>2]|0;do if((C|0)>1){E=0;I=0;do{H=c[(za&p)>>2]|0;V=H+(E*48|0)|0;F=c[(V&p)>>2]|0;do if((V|0)!=(l|0)){if(c[(F&p)+4>>2]&1)break;if(b[(H+(E*48|0)&o)+20>>1]&2)break;if(!(b[(H+(E*48|0)&o)+18>>1]&4095))break;I=ss(ha,I,Mr(ha,F,0,0)|0)|0;C=c[(ya&p)>>2]|0}while(0);E=E+1|0}while((E|0)<(C|0));C=I;if(!C){V=0;break}V=Zq(ja,72,0,C,0)|0}else V=0;while(0);U=S+12|0;do if((c[(U&p)>>2]|0)>0){x=S+20|0;w=(V|0)==0;v=Z+44|0;z=ea+32|0;A=ea+4|0;C=ea+24|0;E=Z+8|0;F=ja+60|0;H=ja+56|0;I=V+12|0;T=0;B=0;h=0;y=240;while(1){K=c[(x&p)>>2]|0;if((c[(K+(T*48|0)&p)+8>>2]|0)!=(q|0)?(b[(K+(T*48|0)&o)+18>>1]&512)==0:0)K=y;else xa=407;do if((xa|0)==407){xa=0;K=c[(K+(T*48|0)&p)>>2]|0;do if(!w){if(c[(K&p)+4>>2]&1)break;c[(I&p)>>2]=K;K=V}while(0);L=Vs(ja,Y,K,0,0,y,aa)|0;if(!L){K=y;break}Pu(ja,Y,L+736|0,va,d[(ca&n)>>0]|0,0);do if(!(b[(Ea&o)>>1]&8)){O=(T|0)==((c[(U&p)>>2]|0)+-1|0)?-1:T;do if(!(a[(v&n)>>0]&32)){J=wh(ea,130,D,0,ct(ja,Z,-1,q,W,0)|0)|0;xh(ea,J,O,-14)}else{K=c[(E&p)>>2]|0;D:do if(!K)K=0;else while(1){if((a[(K&n)+51>>0]&3)==2)break D;K=c[(K&p)+20>>2]|0;if(!K){K=0;break}}while(0);P=b[(K&o)+46>>1]|0;M=P&65535;S=c[(F&p)>>2]|0;Q=c[(H&p)>>2]|0;if((Q|0)<(M|0)){N=c[(_&p)>>2]|0;c[(_&p)>>2]=N+M;N=N+1|0}else{c[(F&p)>>2]=S+M;c[(H&p)>>2]=Q-M;N=S}if(P<<16>>16){Q=K+4|0;S=0;do{ct(ja,Z,b[((c[(Q&p)>>2]|0)+(S<<1)&o)>>1]|0,q,S+N|0,0)|0;S=S+1|0}while((S|0)<(M|0))}S=(O|0)!=0;if(S){J=wh(ea,69,D,0,N)|0;xh(ea,J,M,-14);if((O|0)>-1)xa=426}else{J=0;xa=426}do if((xa|0)==426){xa=0;wh(ea,49,N,M,W)|0;wh(ea,110,D,W,0)|0;if(!S)break;O=c[(A&p)>>2]|0;if(!O)break;a[(O+(((c[(z&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16}while(0);dt(ja,N,M);if((c[(H&p)>>2]|0)>=(M|0))break;c[(H&p)>>2]=M;c[(F&p)>>2]=N}while(0);wh(ea,17,$,ba,0)|0;if(!J)break;K=c[(z&p)>>2]|0;if(K>>>0>J>>>0)c[((c[(A&p)>>2]|0)+(J*20|0)&p)+8>>2]=K;c[((c[(C&p)>>2]|0)&p)+88>>2]=K+-1}else wh(ea,17,$,ba,0)|0;while(0);h=(a[(L&n)+39>>0]|0)==0?h:1;K=c[(L&p)+800>>2]|0;do if(!(c[(K&p)+36>>2]&512)){B=0;K=y}else{if((T|0)!=0?(c[(K&p)+28>>2]|0)!=(B|0):0){B=0;K=y;break}B=c[(K&p)+28>>2]|0;if((a[(v&n)>>0]&32)!=0?(a[(B&n)+51>>0]&3)==2:0){B=0;K=y;break}K=(y&65535|4096)&65535}while(0);Xs(L)}while(0);T=T+1|0;if((T|0)>=(c[(U&p)>>2]|0))break;else y=K}c[(k+(va*80|0)&p)+792>>2]=B;if(!B){v=h;break}c[(k+(va*80|0)&p)+744>>2]=aa;v=h}else{c[(k+(va*80|0)&p)+792>>2]=0;v=0}while(0);if(V){c[(V&p)+12>>2]=0;Gk(ha,V)}z=ea+32|0;h=c[(z&p)>>2]|0;if(h>>>0>X>>>0)c[((c[(ea&p)+4>>2]|0)+(X*20|0)&p)+4>>2]=h;wh(ea,16,0,c[(da&p)>>2]|0,0)|0;B=c[(ea&p)+24>>2]|0;A=~ba;do if((ba|0)<0){h=c[(B&p)+112>>2]|0;if(!h)break;c[(h+(A<<2)&p)>>2]=c[(z&p)>>2]}while(0);c[(B&p)+88>>2]=(c[(z&p)>>2]|0)+-1;if((d[(Ba&n)>>0]|0)>1)mg(ha,Y);if(v){xa=459;break}Ru(u,l);xa=459}else{xa=c[(I+(K*72|0)&p)+36>>2]|0;wh(ea,20,xa,0,c[(I+(K*72|0)&p)+32>>2]|0)|0;c[(k+(va*80|0)&p)+788>>2]=wh(ea,22,xa,J,0)|0;a[(k+(va*80|0)&n)+781>>0]=16;xa=459}while(0);if((xa|0)==459){xa=0;h=c[(ya&p)>>2]|0;do if((h|0)>0){x=k+(va*80|0)+772|0;y=ea+32|0;C=ea+4|0;D=ea+24|0;w=c[(za&p)>>2]|0;while(1){v=w+20|0;B=b[(v&o)>>1]|0;do if(!(B&6)){da=w+40|0;ca=ia;if(!((c[(ca&p)>>2]&c[(da&p)>>2]|0)==0?(c[(ca&p)+4>>2]&c[(da&p)+4>>2]|0)==0:0)){a[(ma&n)>>0]=1;break}A=c[(w&p)>>2]|0;if((c[(u&p)>>2]|0)!=0?(c[(A&p)+4>>2]&1|0)==0:0)break;do if(!(B&512))gt(ja,A,ga,16);else{z=wh(ea,46,c[(x&p)>>2]|0,0,0)|0;gt(ja,A,ga,16);if(!z)break;B=c[(y&p)>>2]|0;if(B>>>0>z>>>0)c[((c[(C&p)>>2]|0)+(z*20|0)&p)+8>>2]=B;c[((c[(D&p)>>2]|0)&p)+88>>2]=B+-1}while(0);b[(v&o)>>1]=e[(v&o)>>1]|4}while(0);h=h+-1|0;if((h|0)<=0)break;else w=w+48|0}x=c[(ya&p)>>2]|0;if((x|0)<=0){xa=475;break}z=c[(za&p)>>2]|0;while(1){do if(!(b[(z&o)+20>>1]&6)){if((b[(z&o)+18>>1]|0)!=1026)break;if((c[(z&p)+8>>2]|0)!=(q|0))break;if(c[(u&p)>>2]|0)break;B=c[(z&p)>>2]|0;h=Fu(Ia,q,c[(z&p)+12>>2]|0,t,s,3,0)|0;if(!h)break;if(b[(h&o)+20>>1]&4)break;A=mh(ha,48,0)|0;if(!A)break;K=A+0|0;C=(c[(h&p)>>2]|0)+0|0;h=K+48|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));c[(A&p)+12>>2]=c[(B&p)+12>>2];gt(ja,A,ga,16);mg(ha,A)}while(0);x=x+-1|0;if((x|0)<=0)break;else z=z+48|0}}else xa=475;while(0);if((xa|0)==475)xa=0;u=c[(u&p)>>2]|0;do if(u){c[(k+(va*80|0)&p)+764>>2]=c[(ea&p)+32>>2];wh(ea,25,1,u,0)|0;at(ja);u=c[(ya&p)>>2]|0;if((u|0)<=0)break;x=0;w=c[(za&p)>>2]|0;while(1){t=w+20|0;do if(!(b[(t&o)>>1]&6)){ea=w+40|0;da=ia;if(!((c[(da&p)>>2]&c[(ea&p)>>2]|0)==0?(c[(da&p)+4>>2]&c[(eamt(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r+4|0;h=r;a:do if(c[((c[(a&p)>>2]|0)&p)+24>>2]&524288){if(!e){f=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,h)|0;if((f|0)!=0?(c[(f&p)+8>>2]|0)!=0:0)g=1;else g=(c[(d&p)+16>>2]|0)!=0;g=g&1;break}a=c[(d&p)+16>>2]|0;if(a){m=d+36|0;n=(f|0)!=0;do{h=c[(a&p)+20>>2]|0;if((h|0)>0){l=0;do{k=c[(a+(l<<3)&p)+36>>2]|0;if((c[(e+(k<<2)&p)>>2]|0)>-1){g=1;break a}l=l+1|0;if((k|0)==(b[(m&o)>>1]|0)&n){g=1;break a}}while((l|0)<(h|0))}a=c[(a&p)+4>>2]|0}while((a|0)!=0)}h=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,q)|0;if((h|0)!=0?(g=c[(h&p)+8>>2]|0,(g|0)!=0):0)while(1){if(bv(d,g,e,f)|0){g=1;break a}g=c[(g&p)+12>>2]|0;if(!g){g=0;break}}else g=0}else g=0;while(0);i=r;return g|0}function nt(e,f,g,h,i){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0;if((h|0)>=0?(b[(f&o)+36>>1]|0)!=(h|0):0){j=d[(f&n)+44>>0]|0;q=(j&16|0)!=0?150:47;if(!(j&32))j=h;else{j=c[(f&p)+8>>2]|0;a:do if(!j)j=0;else while(1){if((a[(j&n)+51>>0]&3)==2)break a;j=c[(j&p)+20>>2]|0;if(!j){j=0;break}}while(0);m=h&65535;k=b[(j&o)+48>>1]|0;b:do if(!(k<<16>>16))j=-1;else{l=c[(j&p)+4>>2]|0;k=k&65535;j=0;while(1){if((b[(l+(j<<1)&o)>>1]|0)==m<<16>>16)break b;j=j+1|0;if((j|0)>=(k|0)){j=-1;break}}}while(0);j=j<<16>>16}wh(e,q,g,j,i)|0}else wh(e,103,g,i,0)|0;if((h|0)>-1)Nt(e,f,h,i);return}function ot(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=f+16|0;g=c[(j&p)>>2]|0;do if(!g){h=c[(f&p)+12>>2]|0;g=c[(d&p)>>2]|0;i=f+48|0;d=qg((e[(i&o)>>1]|0)+1|0,0)|0;c[(j&p)>>2]=d;if(!d){a[(g&n)+65>>0]=1;g=0;break}if(!(b[(i&o)>>1]|0))g=0;else{f=f+4|0;h=h+4|0;g=0;do{d=b[((c[(f&p)>>2]|0)+(g<<1)&o)>>1]|0;if(d<<16>>16<0)d=68;else d=a[((c[(h&p)>>2]|0)+((d<<16>>16)*24|0)&n)+21>>0]|0;a[((c[(j&p)>>2]|0)+g&n)>>0]=d;g=g+1|0}while((g|0)<(e[(i&o)>>1]|0));d=c[(j&p)>>2]|0}a[(d+g&n)>>0]=0;g=c[(j&p)>>2]|0}while(0);return g|0}function pt(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,o=0,q=0,r=0,s=0,t=0;t=d+44|0;if(!(a[(t&n)>>0]&16)){k=c[(b&p)>>2]|0;m=c[(d&p)+68>>2]|0;a:do if(m){o=c[(k&p)+20>>2]|0;if((o|0)>0){k=c[(k&p)+16>>2]|0;l=0;while(1){j=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(m|0))break a;if((j|0)<(o|0))l=j;else{l=j;break}}}else l=0}else l=-1e6;while(0);s=Oq(b)|0;if((f|0)<0)f=c[(b&p)+68>>2]|0;k=f+1|0;r=(h|0)!=0;if(r)c[(h&p)>>2]=f;do if(!(a[(t&n)>>0]&32)){if((g|0)!=0?(a[(g&n)>>0]|0)==0:0){q=15;break}Qq(b,f,l,d,e)}else q=15;while(0);if((q|0)==15)gs(b,l,c[(d&p)+32>>2]|0,(e|0)==55&1,c[(d&p)>>2]|0);if(i)c[(i&p)>>2]=k;f=c[(d&p)+8>>2]|0;if(!f)j=0;else{m=(g|0)==0;d=b+8|0;o=k;j=0;while(1){k=o+1|0;if((a[(f&n)+51>>0]&3)==2?(a[(t&n)>>0]&32)!=0&r:0)c[(h&p)>>2]=o;j=j+1|0;if(!(!m?(a[(g+j&n)>>0]|0)==0:0)){wh(s,e,o,c[(f&p)+40>>2]|0,l)|0;q=c[(d&p)>>2]|0;xh(q,-1,hs(b,f)|0,-6)}f=c[(f&p)+20>>2]|0;if(!f)break;else o=k}}f=b+68|0;if((k|0)>(c[(f&p)>>2]|0))c[(f&p)>>2]=k}else j=0;return j|0}function qt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=c[(b&p)+408>>2]|0;h=(h|0)==0?b:h;g=h+452|0;b=c[(g&p)>>2]|0;e=c[(h&p)+520>>2]|0;a:do if((b|0)>0){f=0;while(1){if((c[(e+(f<<2)&p)>>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=Xc(e,(b<<2)+4|0)|0;if(!b){a[((c[(h&p)>>2]|0)&n)+65>>0]=1;break}else{c[(h&p)+520>>2]=b;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+1;c[(b+(e<<2)&p)>>2]=d;break}}while(0);return}function rt(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 q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;z=c[(d&p)+8>>2]|0;A=xs(z)|0;x=(a[(e&n)+44>>0]&32)>>>4^70;if(!(m<<24>>24))xh(z,wh(z,x,g,A,i)|0,j<<16>>16,-14);if((mt(d,e,0,0)|0)!=0|(f|0)!=0){t=l&255;u=vt(d,f,0,0,3,e,t)|0;u=ut(d,e)|0|u;r=d+72|0;q=c[(r&p)>>2]|0;m=q+1|0;v=e+38|0;c[(r&p)>>2]=m+(b[(v&o)>>1]|0);wh(z,33,i,m,0)|0;r=b[(v&o)>>1]|0;if(r<<16>>16>0){w=(u|0)==-1;s=q+2|0;q=0;do{if(!w){if((q|0)<32?(1<<q&u|0)!=0:0)y=9}else y=9;if((y|0)==9){y=0;nt(z,e,g,q,s+q|0);r=b[(v&o)>>1]|0}q=q+1|0}while((q|0)<(r<<16>>16|0))}w=z+32|0;v=c[(w&p)>>2]|0;xt(d,f,109,0,1,e,m,t,A);if((v|0)<(c[(w&p)>>2]|0))xh(z,wh(z,x,g,A,i)|0,j<<16>>16,-14);zt(d,e,m,0,0,0)}else m=0;if((c[(e&p)+12>>2]|0)==0?(At(d,e,g,h,0),wh(z,95,g,k<<24>>24!=0&1,0)|0,k<<24>>24!=0):0)xh(z,-1,c[(e&p)>>2]|0,0);Ct(d,e,0,m,0,0);xt(d,f,109,0,2,e,m,l&255,A);q=c[(z&p)+24>>2]|0;m=~A;if((A|0)<0?(B=c[(q&p)+112>>2]|0,(B|0)!=0):0)c[(B+(m<<2)&p)>>2]=c[(z&p)+32>>2];c[(q&p)+88>>2]=(c[(z&p)+32>>2]|0)+-1;return}function st(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0;j=c[(b&p)+8>>2]|0;d=c[(b&p)+404>>2]|0;if(d){l=(c[(b&p)>>2]|0)+16|0;m=b+19|0;o=b+72|0;q=j+32|0;r=j+4|0;k=j+24|0;do{f=c[(d&p)+8>>2]|0;g=c[(l&p)>>2]|0;i=c[(d&p)+12>>2]|0;e=a[(m&n)>>0]|0;if(!(e<<24>>24)){h=(c[(o&p)>>2]|0)+1|0;c[(o&p)>>2]=h}else{h=e+-1<<24>>24;a[(m&n)>>0]=h;h=c[(b+((h&255)<<2)&p)+24>>2]|0}Qq(b,0,f,c[((c[(g+(f<<4)&p)+12>>2]|0)&p)+72>>2]|0,55);g=i+1|0;f=wh(j,77,g,0,0)|0;wh(j,74,0,g,0)|0;e=c[(q&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(r&p)>>2]|0)+(f*20|0)&p)+8>>2]=e;c[((c[(k&p)>>2]|0)&p)+88>>2]=e+-1;wh(j,49,i+-1|0,2,h)|0;wh(j,75,0,h,g)|0;e=c[(r&p)>>2]|0;if(e)a[(e+(((c[(q&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(j,61,0,0,0)|0;_r(b,h);d=c[(d&p)>>2]|0}while((d|0)!=0)}return}function tt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;c[(g&p)>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[(g&p)+4>>2]=f;f=nr(b,d,g,0)|0;i=h;return f|0}function ut(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q+4|0;n=q;if(c[((c[(a&p)>>2]|0)&p)+24>>2]&524288){f=c[(d&p)+16>>2]|0;if(!f)e=0;else{e=0;do{g=c[(f&p)+20>>2]|0;if((g|0)>0){h=0;do{r=c[(f+(h<<3)&p)+36>>2]|0;e=((r|0)>31?-1:1<<r)|e;h=h+1|0}while((h|0)<(g|0))}f=c[(f&p)+4>>2]|0}while((f|0)!=0)}f=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,k)|0;if((f|0)!=0?(l=c[(f&p)+8>>2]|0,(l|0)!=0):0)do{c[(n&p)>>2]=0;Mt(a,d,l,n,0)|0;f=c[(n&p)>>2]|0;if((f|0)!=0?(m=b[(f&o)+46>>1]|0,m<<16>>16!=0):0){k=m&65535;h=c[(f&p)+4>>2]|0;g=0;do{f=b[(h+(g<<1)&o)>>1]|0;if(f<<16>>16>31)f=-1;else f=1<<(f<<16>>16);e=f|e;g=g+1|0}while((g|0)<(k|0))}l=c[(l&p)+12>>2]|0}while((l|0)!=0)}else e=0;i=q;return e|0}function vt(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;k=(e|0)!=0?110:109;if(!b)j=0;else{j=0;do{if((((d[(b&n)+8>>0]|0|0)==(k|0)?((d[(b&n)+9>>0]|0)&g|0)!=0:0)?(av(c[(b&p)+16>>2]|0,e)|0)!=0:0)?(l=cv(a,b,h,i)|0,(l|0)!=0):0)j=c[(l+(f<<2)&p)+16>>2]|j;b=c[(b&p)+32>>2]|0}while((b|0)!=0)}return j|0}function wt(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=e+20|0;g=c[(l&p)>>2]|0;do if(!g){i=c[(d&p)>>2]|0;k=e+38|0;h=(b[(k&o)>>1]|0)+1|0;h=qg(h,((h|0)<0)<<31>>31)|0;if(!h){a[(i&n)+65>>0]=1;break}if((b[(k&o)>>1]|0)>0){i=e+4|0;g=0;do{a[(h+g&n)>>0]=a[((c[(i&p)>>2]|0)+(g*24|0)&n)+21>>0]|0;g=g+1|0}while((g|0)<(b[(k&o)>>1]|0))}else g=0;do{a[(h+g&n)>>0]=0;if((g|0)<=0)break;g=g+-1|0}while((a[(h+g&n)>>0]|0)==65);c[(l&p)>>2]=h;j=10}else{h=g;j=10}while(0);do if((j|0)==10){g=h;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-h&1073741823;if(g)if(!f){xh(d,-1,h,g);break}else{xh(d,wh(d,48,f,g,0)|0,h,g);break}}while(0);return}function xt(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;if(b)do{if(((d[(b&n)+8>>0]|0|0)==(e|0)?(d[(b&n)+9>>0]|0|0)==(g|0):0)?(av(c[(b&p)+16>>2]|0,f)|0)!=0:0)dv(a,b,h,i,j,k);b=c[(b&p)+32>>2]|0}while((b|0)!=0);return}function yt(d,f,g,h,k,l,m,q,r,s,t){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,eaea=c[(I+(A*24|0)&p)>>2]|0;c[(L&p)>>2]=c[(f&p)>>2];c[(L&p)+4>>2]=ea;ea=uh(Q,27824,L)|0;xh(na,wh(na,23,1299,D,v+A|0)|0,ea,-1);D=c[(E&p)>>2]|0;if(D)a[(D+(((c[(F&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1}while(0);A=A+1|0}while((A|0)!=(B|0))}A=c[(f&p)+24>>2]|0;if(((A|0)!=0?(c[(Q&p)+24>>2]&8192|0)==0:0)?(c[(d&p)+92>>2]=l+1,(c[(A&p)>>2]|0)>0):0){z=A+4|0;v=na+24|0;B=na+32|0;D=0;x=r<<24>>24==10?2:r&255;while(1){C=xs(na)|0;Zu(d,c[((c[(z&p)>>2]|0)+(D*20|0)&p)>>2]|0,C,16);if((x|0)==4){wh(na,16,0,s,0)|0;w=4}else{y=c[((c[(z&p)>>2]|0)+(D*20|0)&p)+4>>2]|0;if(!y)y=c[(f&p)>>2]|0;w=(x|0)==5?2:x;zs(d,275,w,y,0,3)}y=c[(v&p)>>2]|0;x=~C;if((C|0)<0?(M=c[(y&p)+112>>2]|0,(M|0)!=0):0)c[(M+(x<<2)&p)>>2]=c[(B&p)>>2];c[(y&p)+88>>2]=(c[(B&p)>>2]|0)+-1;D=D+1|0;if((D|0)>=(c[(A&p)>>2]|0))break;else x=w}}if(q<<24>>24!=0&(ga|0)==0){z=xs(na)|0;v=a[(f&n)+45>>0]|0;if(r<<24>>24==10)v=v<<24>>24==10?2:v&255;else v=r&255;if(ia?(wh(na,79,l,z,m)|0,N=c[(na&p)+4>>2]|0,(N|0)!=0):0)a[(N+(((c[(na&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;b:do if(!((v|0)!=5|r<<24>>24==5)?(u=c[(f&p)+8>>2]|0,(u|0)!=0):0){while(1){if(((a[(u&n)+50>>0]|0)+-3&255)<2)break;u=c[(u&p)+20>>2]|0;if(!u){A=0;break b}}A=wh(na,16,0,0,0)|0}else A=0;while(0);wh(na,70,h,z,l)|0;c:do switch(v|0){case 4:{wh(na,16,0,s,0)|0;v=0;break}case 3:case 2:case 1:{ma=49;break}case 5:{if((c[(Q&p)+24>>2]&262144|0)!=0?(O=jt(d,f,109,0,0)|0,(O|0)!=0):0)v=O;else if(!(mt(d,f,0,0)|0)){if(!(c[(f&p)+8>>2]|0)){v=1;break c}v=c[(d&p)+408>>2]|0;a[(((v|0)==0?d:v)&n)+20>>0]=1;At(d,f,h,k,0);v=1;break c}else v=0;ea=c[(d&p)+408>>2]|0;a[(((ea|0)==0?d:ea)&n)+20>>0]=1;rt(d,f,v,h,k,l,1,0,5,1);v=1;break}default:{v=2;ma=49}}while(0);if((ma|0)==49){Ft(d,v,f);v=0}y=na+24|0;x=c[(y&p)>>2]|0;w=~z;if((z|0)<0?(P=c[(x&p)+112>>2]|0,(P|0)!=0):0)c[(P+(w<<2)&p)>>2]=c[(na&p)+32>>2];u=na+32|0;c[(x&p)+88>>2]=(c[(u&p)>>2]|0)+-1;if(!A){w=0;A=0}else{w=wh(na,16,0,0,0)|0;u=c[(u&p)>>2]|0;if(u>>>0>A>>>0)c[((c[(na&p)+4>>2]|0)+(A*20|0)&p)+8>>2]=u;c[((c[(y&p)>>2]|0)&p)+88>>2]=u+-1}}else{w=0;A=0;v=0}D=c[(f&p)+8>>2]|0;if(D){ba=l+1|0;ca=d+60|0;da=d+56|0;ea=d+72|0;T=q<<24>>24==0;U=na+24|0;V=na+32|0;W=r<<24>>24==10;X=na+4|0;Y=ga+46|0;Z=ga+32|0;_=ga+4|0;$=m+1|0;aa=d+408|0;R=Q+24|0;S=ha&65535;z=r&255;y=f+36|0;x=d+92|0;H=0;u=0;C=-1;while(1){O=g+(u<<2)|0;do if(c[(O&p)>>2]|0){if(!(H<<24>>24)){wt(na,f,ba);H=1}P=u+k|0;r=xs(na)|0;N=D+36|0;if(c[(N&p)>>2]|0){wh(na,28,0,c[(O&p)>>2]|0,0)|0;c[(x&p)>>2]=ba;gt(d,c[(N&p)>>2]|0,r,16);c[(x&p)>>2]=0}Q=D+48|0;I=b[(Q&o)>>1]|0;L=I&65535;K=c[(ca&p)>>2]|0;J=c[(da&p)>>2]|0;if((J|0)<(L|0)){q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+L;q=q+1|0}else{c[(ca&p)>>2]=K+L;c[(da&p)>>2]=J-L;q=K}if(!(I<<16>>16))M=C;else{M=D+4|0;J=0;do{B=b[((c[(M&p)>>2]|0)+(J<<1)&o)>>1]|0;L=B<<16>>16;if(B<<16>>16>=0?B<<16>>16!=(b[(y&o)>>1]|0):0){K=J+q|0;L=ba+L|0;ma=81}else{L=J+q|0;if((C|0)!=(L|0)){K=L;C=(c[(N&p)>>2]|0)==0?L:-1;L=l;ma=81}}if((ma|0)==81){ma=0;wh(na,34,L,K,0)|0;I=b[(Q&o)>>1]|0}J=J+1|0;L=I&65535}while((J|0)<(L|0));M=C}wh(na,49,q,L,c[(O&p)>>2]|0)|0;dt(d,q,e[(Q&o)>>1]|0);N=(ga|0)==(D|0);if(ia&N&T){C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ja=c[(C&p)+112>>2]|0,(ja|0)!=0):0)c[(ja+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}G=a[(D&n)+50>>0]|0;F=G&255;if(!(G<<24>>24)){C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ka=c[(C&p)+112>>2]|0,(ka|0)!=0):0)c[(ka+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}if(W)O=G<<24>>24==10?2:F;else O=z;C=e[(D&o)+46>>1]|0;xh(na,wh(na,67,P,r,q)|0,C,-14);do if(!N){L=c[(ca&p)>>2]|0;K=c[(da&p)>>2]|0;if((K|0)<(ha|0)){L=c[(ea&p)>>2]|0;c[(ea=0;nt(t,u,f,h<<16>>16,l+m|0);Pq(t,39)|0}l=l+1|0}while((l|0)<(q|0))}if(g)wh(t,49,m,q,g)|0;dt(d,m,q);if((c[(s&p)>>2]|0)<(q|0)){c[(s&p)>>2]=q;c[(r&p)>>2]=m}return m|0}function Qt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[(a&p)+8>>2]|0;e=c[(d&p)+24>>2]|0;f=~b;if((b|0)<0?(g=c[(e&p)+112>>2]|0,(g|0)!=0):0)c[(g+(f<<2)&p)>>2]=c[(d&p)+32>>2];c[(e&p)+88>>2]=(c[(d&p)+32>>2]|0)+-1;bu(a)}return}function Rt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(d&p)+16>>2]|0;a:do if((e|0)!=0?(f=c[(d&p)+64>>2]|0,(f|0)!=0):0){e=c[(e&p)+8>>2]|0;b:do if(e){while(1){if(!(dd(c[(e&p)>>2]|0,f)|0))break;e=c[(e&p)+20>>2]|0;if(!e)break b}c[(d&p)+68>>2]=e;e=0;break a}while(0);c[(g&p)>>2]=f;c[(g&p)+4>>2]=0;th(b,28104,g);a[(b&n)+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function St(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Tt(a,b)|0;if(b&1){e=St(c[(a&p)+12>>2]|0,b)|0;return e+d+(St(c[(a&p)+16>>2]|0,b)|0)|0}}else d=0;return d|0}
7 o if(m){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(t|0))break;r=r+1|0;if((r|0)>=(l|0)){j=0;u=0;break f}}j=iw(1,0,r|0)|0;u=G}else{j=0;u=0}while(0);if(!(q&2)){r=j;t=u}else{t=c[((c[(E&p)>>2]|0)+((c[(w&p)+4>>2]|0)*48|0)&p)+8>>2]|0;g:do if(m){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(t|0))break;r=r+1|0;if((r|0)>=(l|0)){r=0;t=0;break g}}r=iw(1,0,r|0)|0;t=G}else{r=0;t=0}while(0);r=r|j;t=t|u}l=(v&2)==0;m=r&y;q=t&x;i=l?0:r&i;h=l?0:t&h}else{m=y;q=x}}r=(m|0)!=0|(q|0)!=0;if(!((s|0)>0&r))break;else{y=m;x=q;w=w+48|0}}t=A+408|0;c[(t&p)>>2]=m;c[(t&p)+4>>2]=q;b[(C&o)>>1]=(m|0)==0&(q|0)==0?0:256;if(r)K=104}else{i=A+408|0;c[(i&p)>>2]=-1;c[(i&p)+4>>2]=-1;b[(C&o)>>1]=256;i=-1;h=-1;K=104}h:do if((K|0)==104)if((c[(D&p)>>2]|0)==2){l=c[(E&p)>>2]|0;m=0;i:while(1){j=m+1|0;if((b[(l&o)+18>>1]|0)!=512)if(!m)r=l;else break h;else{q=c[(l&p)+12>>2]|0;if((c[(q&p)+12>>2]|0)<=(m|0))break h;r=(c[(q&p)+20>>2]|0)+(m*48|0)|0}if(!r)break h;else s=0;while(1){if((b[(l&o)+66>>1]|0)==512){q=c[(l&p)+60>>2]|0;if((c[(q&p)+12>>2]|0)<=(s|0)){m=j;continue i}q=(c[(q&p)+20>>2]|0)+(s*48|0)|0;if(!q){m=j;continue i}}else if(!s)q=l+48|0;else{m=j;continue i}Cv(f,r,q);l=c[(E&p)>>2]|0;s=s+1|0}}}while(0);if(!((i|0)==0&(h|0)==0)){u=F+68|0;t=-1;v=0;while(1){q=c[(D&p)>>2]|0;if((q|0)<=0)break d;s=c[(E&p)>>2]|0;while(1){j=q;q=q+-1|0;l=s+20|0;b[(l&o)>>1]=e[(l&o)>>1]&65471;l=c[(s&p)+8>>2]|0;if((l|0)!=(t|0)){m=c[(u&p)>>2]|0;j:do if((m|0)>0){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(l|0))break;r=r+1|0;if((r|0)>=(m|0)){r=0;m=0;break j}}r=iw(1,0,r|0)|0;m=G}else{r=0;m=0}while(0);if(!((r&i|0)==0&(m&h|0)==0)){r=j;break}}if((q|0)<=0)break d;else s=s+48|0}m=c[(s&p)+12>>2]|0;if((r|0)<1)break d;else r=l;while(1){if((r|0)==(l|0)){if((c[(s&p)+12>>2]|0)!=(m|0)){q=l;m=1;break}t=kv(c[((c[(s&p)>>2]|0)&p)+16>>2]|0)|0;if(!(t<<24>>24==0|t<<24>>24==(kv(c[((c[(s&p)>>2]|0)&p)+12>>2]|0)|0)<<24>>24)){q=l;m=1;break}t=s+20|0;b[(t&o)>>1]=e[(t&o)>>1]|64}else{t=s+20|0;b[(t&o)>>1]=e[(t&o)>>1]&65471}if((q|0)<=0){q=l;m=0;break}r=c[(s&p)+56>>2]|0;q=q+-1|0;s=s+48|0}v=v+1|0;if(!((v|0)<2&m))break;else t=q}if(!m){l=c[(D&p)>>2]|0;if((l|0)>0){m=0;i=0;j=c[(E&p)>>2]|0;while(1){l=l+-1|0;if(b[(j&o)+20>>1]&64){m=Mr(V,c[((c[(j&p)>>2]|0)&p)+16>>2]|0,0,0)|0;i=lr(c[(F&p)>>2]|0,i,m)|0;m=c[((c[(j&p)>>2]|0)&p)+12>>2]|0}if((l|0)<=0){l=m;break}else j=j+48|0}}else{l=0;i=0}j=Zq(T,75,Mr(V,l,0,0)|0,0,0)|0;if(!j)Nk(V,i);else{t=j+4|0;c[(t&p)>>2]=c[(t&p)>>2]|c[(Q&p)>>2]&1;b[(j&o)+36>>1]=b[(U&o)+36>>1]|0;c[(j&p)+20>>2]=i;t=zv(f,j,3)|0;Eu(f,t);k=c[(W&p)>>2]|0;c[(k+(t*48|0)&p)+4>>2]=g;b[(k+(t*48|0)&o)+16>>1]=b[(k+(g*48|0)&o)+16>>1]|0;t=k+(g*48|0)+22|0;a[(t&n)>>0]=(a[(t&n)>>0]|0)+1<<24>>24}b[(k+(g*48|0)&o)+18>>1]=2048}}}}else c[(k+(g*48|0)&p)+12>>2]=0;while(0);h=(c[(W&p)>>2]|0)+(g*48|0)|0}while(0);k:do if((a[(f&n)+8>>0]|0)==72){x=c[(T&p)>>2]|0;if((a[(U&n)>>0]|0)==-103){w=U+20|0;t=c[(w&p)>>2]|0;if((t|0)!=0?(c[(t&p)>>2]|0)==2:0){m=c[(U&p)+8>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}l=Sh(x,m,l,2,1,0)|0;if(((((l|0)!=0?(H=b[(l&o)+2>>1]|0,(H&4)!=0):0)?(N=c[(l&p)+4>>2]|0,L=a[(N&n)>>0]|0,M=a[(N&n)+1>>0]|0,N=a[(N&n)+2>>0]|0,P=(H&65535)>>>3&1,I=(c[(w&p)>>2]|0)+4|0,J=c[((c[(I&p)>>2]|0)&p)+20>>2]|0,(a[(J&n)>>0]|0)==-102):0)?(kv(J)|0)<<24>>24==66:0)?(a[((c[(J&p)+44>>2]|0)&n)+44>>0]&16)==0:0){k=c[(c[(I&p)>>2]&p)>>2]|0;l:do if(!k)k=0;else while(1){j=c[(k&p)+4>>2]|0;if(!(j&4096))break l;if(!(j&262144))k=k+12|0;else k=c[((c[(k&p)+20>>2]|0)&p)+4>>2]|0;k=c[(k&p)>>2]|0;if(!k){k=0;break}}while(0);j=a[(k&n)>>0]|0;u=j<<24>>24==-121;do if(u){l=c[(T&p)+476>>2]|0;r=b[(k&o)+32>>1]|0;s=r<<16>>16;do if(!l){i=0;m=0}else{K=s+-1|0;J=c[(l&p)+60>>2]|0;i=J+(K*40|0)|0;if(b[(J+(K*40|0)&o)+8>>1]&1){i=0;m=0;break}m=c[(l&p)>>2]|0;q=mh(m,40,0)|0;if(!q){i=0;m=0;break}l=q+0|0;j=l+40|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(j|0));K=q+8|0;b[(K&o)>>1]=1;c[(q&p)+32>>2]=m;_g(q,i)|0;if((b[(K&o)>>1]&15)!=2){i=q;m=0;break}i=q;m=Sg(q,1)|0}while(0);l=c[(T&p)+8>>2]|0;if(r<<16>>16>32){c[(l&p)+188>>2]=-1;t=m;K=177;break}else{t=l+188|0;c[(t&p)>>2]=c[(t&p)>>2]|1<<s+-1;t=m;K=177;break}}else if(j<<24>>24==97){i=0;t=c[(k&p)+8>>2]|0;K=177}else i=0;while(0);do if((K|0)==177)if(t){m=0;while(1){K=a[(t+m&n)>>0]|0;j=K<<24>>24==L<<24>>24;l=m+1|0;if(K<<24>>24!=N<<24>>24&((K<<24>>24==0|j|K<<24>>24==M<<24>>24)^1))m=l;else break}if(m){if((a[(t+m+-1&n)>>0]|0)==-1)break;if(j)l=(a[(t+l&n)>>0]|0)==0;else l=0;q=l&1;v=tt(x,97,t)|0;if(v)a[((c[(v&p)+8>>2]|0)+m&n)>>0]=0;do if(u){m=c[(T&p)+8>>2]|0;j=b[(k&o)+32>>1]|0;if(j<<16>>16>32)c[(m&p)+188>>2]=-1;else{N=m+188|0;c[(N&p)>>2]=c[(N&p)>>2]|1<<(j<<16>>16)+-1}if(!l){q=0;break}if(!(a[((c[(k&p)+8>>2]|0)&n)+1>>0]|0))break;j=T+19|0;l=a[(j&n)>>0]|0;if(!(l<<24>>24)){N=T+72|0;j=(c[(N&p)>>2]|0)+1|0;c[(N&p)>>2]=j}else{N=l+-1<<24>>24;a[(j&n)>>0]=N;j=c[(T+((N&255)<<2)&p)+24>>2]|0}is(T,k,j)|0;k=c[(m&p)+32>>2]|0;if(k>>>0>0)c[((c[(m&p)+4>>2]|0)+((k+-1|0)*20|0)&p)+12>>2]=0;_r(T,j)}while(0);Mh(i);if(!t){K=217;break k}r=c[((c[((c[(w&p)>>2]|0)&p)+4>>2]|0)&p)+20>>2]|0;m=Mr(V,v,0,0)|0;s=P<<16>>16!=0;do if(!s){if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;i=h+20|0;b[(i&o)>>1]=e[(i&o)>>1]|1024;i=v+8|0;l=c[(i&p)>>2]|0;k=a[(l&n)>>0]|0;if(!(k<<24>>24))break;h=m+8|0;j=0;do{N=k&255;a[(l&n)>>0]=((d[(N&n)+10368>>0]|223)^32)&N;a[((c[(h&p)>>2]|0)+j&n)>>0]=a[(N&n)+9328>>0]|0;j=j+1|0;l=(c[(i&p)>>2]|0)+j|0;k=a[(l&n)>>0]|0}while(k<<24>>24!=0)}while(0);if(!(a[(O&n)>>0]|0)){k=c[(m&p)+8>>2]|0;if(!k)j=-1;else{j=k;while(1)if(!(a[(j&n)>>0]|0))break;else j=j+1|0;j=(j-k&1073741823)+-1|0}k=k+j|0;j=a[(k&n)>>0]|0;if(s)i=q;else{i=j<<24>>24==64?0:q;j=a[(j&255&n)+9328>>0]|0}a[(k&n)>>0]=(j&255)+1;l=i}else l=q;i=P<<16>>16==0?13752:11152;j=Zq(T,83,xv(T,Mr(V,r,0,0)|0,i)|0,v,0)|0;if(j){P=j+4|0;c[(P&p)>>2]=c[(P&p)>>2]|c[(Q&p)>>2]&1;b[(j&o)+36>>1]=b[(U&o)+36>>1]|0}k=zv(f,j,259)|0;Eu(f,k);i=Zq(T,82,xv(T,Mr(V,r,0,0)|0,i)|0,m,0)|0;if(i){P=i+4|0;c[(P&p)>>2]=c[(P&p)>>2]|c[(Q&p)>>2]&1;b[(i&o)+36>>1]=b[(U&o)+36>>1]|0}i=zv(f,i,259)|0;Eu(f,i);j=c[(W&p)>>2]|0;h=j+(g*48|0)|0;if(!l){K=217;break k}c[(j+(k*48|0)&p)+4>>2]=g;Q=j+(g*48|0)+16|0;b[(j+(k*48|0)&o)+16>>1]=b[(Q&o)>>1]|0;K=j+(g*48|0)+22|0;a[(K&n)>>0]=(a[(K&n)>>0]|0)+1<<24>>24;c[(j+(i*48|0)&p)+4>>2]=g;b[(j+(i*48|0)&o)+16>>1]=b[(Q&o)>>1]|0;a[(K&n)>>0]=(a[(K&n)>>0]|0)+1<<24>>24;K=217;break k}}while(0);Mh(i);K=217}else K=217}else K=217}}else K=217;while(0);if((K|0)==217)if(((((a[(U&n)>>0]|0)==-103?(dd(c[(U&p)+8>>2]|0,31416)|0)==0:0)?(X=c[(U&p)+20>>2]|0,(c[(X&p)>>2]|0)==2):0)?(Y=c[(X&p)+4>>2]|0,Z=c[(Y&p)+20>>2]|0,(a[(Z&n)>>0]|0)==-102):0)?(_=c[(Y&p)>>2]|0,$=Av(ba,_)|0,aa=G,ba=Av(ba,Z)|0,(ba&$|0)==0&(G&aa|0)==0):0){ba=zv(f,Zq(T,51,0,Mr(V,_,0,0)|0,0)|0,3)|0;h=c[(W&p)>>2]|0;_=h+(ba*48|0)+32|0;c[(_&p)>>2]=$;c[(_&p)+4>>2]=aa;c[(h+(ba*48|0)&p)+8>>2]=c[(Z&p)+28>>2];c[(h+(ba*48|0)&p)+12>>2]=b[(Z&o)+32>>1];b[(h+(ba*48|0)&o)+18>>1]=64;c[(h+(ba*48|0)&p)+4>>2]=g;b[(h+(ba*48|0)&o)+16>>1]=b[(h+(g*48|0)&o)+16>>1]|0;$=h+(g*48|0)+22|0;a[($&n)>>0]=(a[($&n)>>0]|0)+1<<24>>24;$=h+(g*48|0)+20|0;b[($&o)>>1]=e[($&o)>>1]|8;$=h+(g*48|0)+40|0;aa=c[($&p)+4>>2]|0;ba=h+(ba*48|0)+40|0;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;h=h+(g*48|0)|0}g=h+32|0;aa=g;ba=c[(aa&p)+4>>2]|S;c[(g&p)>>2]=c[(aa&p)>>2]|R;c[(g&p)+4>>2]=ba}while(0);return}function Fu(a,d,e,f,g,h,k){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0;m=i;i=i+112|0;if((i|0)>=(j|0))fa();l=m;h=Dv(l,a,d,e,h,k)|0;a:do if(!h)h=0;else{k=h;h=0;do{d=k+32|0;e=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((e&f|0)==0&(d&g|0)==0){if((e|0)==0&(d|0)==0?(b[(k&o)+18>>1]&2)!=0:0){h=k;break a}h=(h|0)==0?k:h}k=Ev(l)|0}while((k|0)!=0)}while(0);i=m;return h|0}function Gu(e,f,g){e=e|0;f=f|0;g=g|0;var l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0.0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;pa=i;i=i+16|0;if((i|0)>=(j|0))fa();ma=pa;z=c[(e&p)>>2]|0;ka=c[(z&p)>>2]|0;na=c[(ka&p)>>2]|0;ja=c[(e&p)+4>>2]|0;la=c[(e&p)+12>>2]|0;y=d[(la&n)+16>>0]|0;z=c[(z&p)+4>>2]|0;ha=c[(z+(y*72|0)&p)+24>>2]|0;B=c[(e&p)+8>>2]|0;ia=ja+20|0;ja=ja+12|0;l=c[(ja&p)>>2]|0;if((l|0)>0){r=c[(z+(y*72|0)&p)+48>>2]|0;s=0;m=0;t=c[(ia&p)>>2]|0;while(1){if((c[(t&p)+8>>2]|0)==(r|0))m=((b[(t&o)+18>>1]&-1153)<<16>>16!=0&1)+m|0;s=s+1|0;if((s|0)==(l|0))break;else t=t+48|0}}else m=0;if(!B)x=0;else{v=c[(B&p)>>2]|0;a:do if((v|0)>0){t=c[(B&p)+4>>2]|0;s=z+(y*72|0)+48|0;u=0;while(1){r=c[(t+(u*20|0)&p)>>2]|0;if((a[(r&n)>>0]|0)!=-102){l=u;break a}l=u+1|0;if((c[(r&p)+28>>2]|0)!=(c[(s&p)>>2]|0)){l=u;break a}if((l|0)<(v|0))u=l;else break}}else l=0;while(0);x=(l|0)==(v|0)?v:0}l=(m*20|0)+56+(x<<3)|0;ga=mh(na,l,0)|0;do if(!ga){th(ka,15776,ma);l=7}else{fw(ga|0,0,l|0)|0;l=ga+56|0;w=l+(m*12|0)|0;c[(ga&p)>>2]=m;aa=ga+8|0;c[(aa&p)>>2]=x;ca=ga+4|0;c[(ca&p)>>2]=l;c[(ga&p)+12>>2]=w;ea=ga+16|0;c[(ea&p)>>2]=w+(x<<3);r=c[(ja&p)>>2]|0;if((r|0)>0){u=c[(z+(y*72|0)&p)+48>>2]|0;t=0;v=0;s=c[(ia&p)>>2]|0;while(1){if((c[(s&p)+8>>2]|0)==(u|0)?(C=b[(s&o)+18>>1]|0,(C&-1153)<<16>>16!=0):0){c[(l+(v*12|0)&p)>>2]=c[(s&p)+12>>2];c[(l+(v*12|0)&p)+8>>2]=t;a[(l+(v*12|0)&n)+4>>0]=(C&255)==1?2:C&255;v=v+1|0}t=t+1|0;if((t|0)==(r|0))break;else s=s+48|0}}if((x|0)>0){l=c[(B&p)+4>>2]|0;m=0;do{c[(w+(m<<3)&p)>>2]=b[((c[(l+(m*20|0)&p)>>2]|0)&o)+32>>1];a[(w+(m<<3)&n)+4>>0]=a[(l+(m*20|0)&n)+12>>0]|0;m=m+1|0}while((m|0)!=(x|0))}E=la;c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;E=la+18|0;b[(E&o)>>1]=0;c[(la&p)+36>>2]=1024;F=la+40|0;b[(F&o)>>1]=0;H=la+28|0;a[(H&n)>>0]=0;I=c[(ea&p)>>2]|0;J=c[(ga&p)>>2]|0;if(Nu(na,la,J)|0){mg(na,ga);l=7;break}_=ga+28|0;$=ga+24|0;K=ga+20|0;L=ga+32|0;M=ga+40|0;N=ga+48|0;O=ha+60|0;P=ka+64|0;S=(J|0)>0;T=la+30|0;U=la+24|0;V=la+32|0;W=la+29|0;X=la+20|0;Y=la+22|0;Z=la+48|0;z=0;C=0;B=0;b:while(1){if(!((C|0)!=0|(z&1|0)==0))if((z|0)>2){l=0;break}else D=z+1|0;else D=z;if((B|0)==0&(D|0)>1){l=0;break}t=c[(ga&p)>>2]|0;if((t|0)>0){m=c[(ia&p)>>2]|0;r=0;s=c[(ca&p)>>2]|0;while(1){z=c[(s&p)+8>>2]|0;if((D|0)==2)a[(s&n)+5>>0]=b[(m+(z*48|0)&o)+18>>1]&1^1;else if(!D){l=s+5|0;a[(l&n)>>0]=0;y=(b[(m+(z*48|0)&o)+18>>1]&1)==0;C=y?C:1;z=m+(z*48|0)+32|0;z=(c[(z&p)>>2]|0)!=0|(c[(z&p)+4>>2]|0)!=0;if(z|y^1)B=z?1:B;else a[(l&n)>>0]=1}else if((D|0)==1){y=m+(z*48|0)+32|0;a[(s&n)+5>>0]=(c[(y&p)>>2]|0)==0&(c[(y&p)+4>>2]|0)==0&1}else a[(s&n)+5>>0]=1;r=r+1|0;if((r|0)>=(t|0)){y=C;break}else s=s+12|0}}else y=C;fw(I|0,0,t<<3|0)|0;if(c[(_&p)>>2]|0)Wc(c[($&p)>>2]|0);c[(K&p)>>2]=0;c[(K&p)+4>>2]=0;c[(K&p)+8>>2]=0;c[(K&p)+12>>2]=0;h[(M&q)>>3]=5.e+98;l=N;c[(l&p)>>2]=25;c[(l&p)+4>>2]=0;l=c[(ka&p)>>2]|0;z=O;while(1){z=c[(z&p)>>2]|0;if((c[(z&p)>>2]|0)==(l|0))break;else z=z+24|0}C=c[(z&p)+8>>2]|0;z=rc[c[((c[(C&p)>>2]|0)&p)+12>>2]&127](C,ga)|0;do if((z|0)==7)a[((c[(ka&p)>>2]|0)&n)+65>>0]=1;else if(z){l=c[(C&p)+8>>2]|0;if(l){c[(ma&p)>>2]=l;th(ka,10344,ma);break}if((z|0)!=516){z=z&255;if(z>>>0>26|(z|0)==2)z=16328;else z=c[(z<<2&p)+15488>>2]|0}else z=16344;c[(ma&p)>>2]=z;th(ka,10344,ma)}while(0);z=C+8|0;Wc(c[(z&p)>>2]|0);c[(z&p)>>2]=0;z=c[(ga&p)>>2]|0;if((z|0)>0){l=0;do{if((a[((c[(ca&p)>>2]|0)+(l*12|0)&n)+5>>0]|0)==0?(c[((c[(eaea=0,ga=0;ga=i;i=i+64|0;if((i|0)>=(j|0))fa();s=ga;r=ga+56|0;q=ga+52|0;b[(q&o)>>1]=-1;ca=c[(f&p)+12>>2]|0;da=c[(f&p)>>2]|0;J=c[(da&p)+4>>2]|0;K=d[(ca&n)+16>>0]|0;Z=J+(K*72|0)+8|0;m=J+(K*72|0)+24|0;L=c[(m&p)>>2]|0;_=c[(f&p)+4>>2]|0;$=J+(K*72|0)+76|0;k=c[($&p)>>2]|0;do if(!k){if(a[(L&n)+44>>0]&32){s=c[(L&p)+8>>2]|0;break}k=s+0|0;l=k+52|0;do{c[(k&p)>>2]=0;k=k+4|0}while((k|0)<(l|0));b[(s&o)+46>>1]=1;b[(s&o)+48>>1]=1;c[(s&p)+4>>2]=q;c[(s&p)+8>>2]=r;a[(s&n)+50>>0]=5;c[(s&p)+12>>2]=L;b[(s&o)+44>>1]=b[(L&o)+42>>1]|0;b[(r&o)>>1]=b[(L&o)+28>>1]|0;b[(r&o)+2>>1]=0;if(!(a[(J+(K*72|0)&n)+45>>0]&1))c[(s&p)+20>>2]=c[((c[(m&p)>>2]|0)&p)+8>>2]}else s=k;while(0);r=b[(L&o)+28>>1]|0;if(r<<16>>16<11)E=0;else{E=r<<16>>16;E=((fs(E,((E|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((c[(f&p)+16>>2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(W&p)>>2]|0;b:do if(x){k=c[(u&p)>>2]|0;if((k|0)>0){m=0;q=c[(J&p)>>2]|0;while(1){l=c[(q&p)>>2]|0;if(Hv(l,x,y)|0){if(!(c[(l&p)+4>>2]&1)){ea=32;break b}if((b[(l&o)+36>>1]|0)==(y|0)){ea=32;break b}}m=m+1|0;if((m|0)>=(k|0)){k=0;break}else q=q+48|0}}else k=0}else ea=32;while(0);if((ea|0)==32){ea=0;K=b[(c[(s&p)+8>>2]&o)>>1]|0;b[(P&o)>>1]=0;b[(Q&o)>>1]=0;b[(R&o)>>1]=0;a[(S&n)>>0]=0;b[(T&o)>>1]=0;L=ca;c[(L&p)>>2]=g;c[(L&p)+4>>2]=h;b[(U&o)>>1]=K;c[(V&p)>>2]=s;L=s+51|0;z=a[(L&n)>>0]|0;c:do if(((z&4)==0?(aa=c[((c[(f&p)>>2]|0)&p)+8>>2]|0,(aa|0)!=0):0)?(ba=c[(aa&p)>>2]|0,(ba|0)>0):0){I=c[(aa&p)+4>>2]|0;H=s+46|0;B=s+4|0;A=0;while(1){E=c[(I+(A*20|0)&p)>>2]|0;d:do if(!E)E=0;else while(1){D=c[(E&p)+4>>2]|0;if(!(D&4096))break d;if(!(D&262144))E=E+12|0;else E=c[((c[(E&p)+20>>2]|0)&p)+4>>2]|0;E=c[(E&p)>>2]|0;if(!E){E=0;break}}while(0);if((a[(E&n)>>0]|0)!=-102){A=0;break c}if((c[(E&p)+28>>2]|0)==(y|0)){D=b[(E&o)+32>>1]|0;if(D<<16>>16<0){A=1;break c}E=b[(H&o)>>1]|0;if(E<<16>>16){C=c[(B&p)>>2]|0;E=E&65535;F=0;do{if(D<<16>>16==(b[(C+(F<<1)&o)>>1]|0)){A=1;break c}F=F+1|0}while((F|0)<(E|0))}}A=A+1|0;if((A|0)>=(ba|0)){A=0;break}}}else A=0;while(0);do if((c[(s&p)+40>>2]|0)<1){c[(Y&p)>>2]=256;a[(S&n)>>0]=(A|0)!=0?M&255:0;b[(X&o)>>1]=(K&65535)+16;Iv(_,ca,K);k=Fv(f,ca)|0;b[(U&o)>>1]=K;if(k)break a}else{if(!(z&32)){H=N;I=c[(H&p)>>2]|0;H=c[(H&p)+4>>2]|0;F=s+4|0;E=0;D=0;C=e[(s&o)+48>>1]|0;e:while(1){B=C;while(1){C=B+-1|0;if((B|0)<=0)break e;B=b[((c[(F&p)>>2]|0)+(C<<1)&o)>>1]|0;if((B&65535)<63)break;else B=C}t=iw(1,0,B<<16>>16|0)|0;E=t|E;D=G|D}t=I&~E;x=H&~D;E=t;D=x;x=(t|0)==0&(x|0)==0?576:512}else{E=0;D=0;x=576}c[(Y&p)>>2]=x;t=(A|0)!=0;if(!t?(a[(w&n)>>0]&32)==0:0){if(!((E|0)==0&(D|0)==0))break;if(a[(L&n)>>0]&4)break;if((b[(s&o)+44>>1]|0)>=(b[(O&o)>>1]|0))break;if(!((b[(v&o)>>1]&4)==0&(c[2190]|0)!=0))break;if(b[((c[(c[(da&p)>>2]&p)>>2]|0)&o)+60>>1]&64)break}a[(S&n)>>0]=t?M&255:0;r=K<<16>>16;t=r+1+(((b[(s&o)+44>>1]|0)*15|0)/(b[(O&o)>>1]|0)|0)&65535;if(!((E|0)==0&(D|0)==0))t=Gv(t,r+16&65535)|0;b[(X&o)>>1]=t;Iv(_,ca,K);k=Fv(f,ca)|0;b[(U&o)>>1]=K;if(k)break a}while(0);k=Jv(f,Z,s,0)|0;if(c[($&p)>>2]|0)break a}s=c[(s&p)+20>>2]|0;if(!((k|0)==0&(s|0)!=0))break;else M=M+1|0}}while(0);i=ga;return k|0}function Iu(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0;ca=i;i=i+608|0;if((i|0)>=(j|0))fa();aa=ca+168|0;_=ca+576|0;$=ca+112|0;Y=ca+56|0;Z=ca;k=c[(f&p)>>2]|0;V=c[(f&p)+4>>2]|0;r=c[(V&p)+20>>2]|0;q=c[(V&p)+12>>2]|0;X=r+(q*48|0)|0;U=c[(f&p)+12>>2]|0;l=$+0|0;m=l+56|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(m|0));m=c[(k&p)+4>>2]|0;l=d[(U&n)+16>>0]|0;T=c[(m+(l*72|0)&p)+48>>2]|0;a:do if((q|0)>0){D=U+8|0;E=_+8|0;F=_+16|0;G=U+40|0;H=U+48|0;I=U+36|0;J=U+18|0;K=U+17|0;L=U+24|0;M=U+20|0;N=U+22|0;O=aa+4|0;P=aa+8|0;Q=aa+12|0;R=aa+20|0;S=_+4|0;z=m+(l*72|0)+24|0;A=Z+8|0;B=$+8|0;C=Y+8|0;while(1){b:do if((b[(r&o)+18>>1]&256)!=0?(W=c[(r&p)+12>>2]|0,w=W+408|0,v=D,!((c[(v&p)>>2]&c[(w&p)>>2]|0)==0?(c[(v&p)+4>>2]&c[(w&p)+4>>2]|0)==0:0)):0){q=W+20|0;y=(c[(q&p)>>2]|0)+((c[(W&p)+12>>2]|0)*48|0)|0;c[(_&p)>>2]=c[(f&p)>>2];c[(_&p)+4>>2]=c[(f&p)+4>>2];c[(_&p)+8>>2]=c[(f&p)+8>>2];c[(_&p)+12>>2]=c[(f&p)+12>>2];c[(E&p)>>2]=0;c[(F&p)>>2]=Y;q=c[(q&p)>>2]|0;c:do if(q>>>0<y>>>0){l=1;k=0;d:while(1){if(!(b[(q&o)+18>>1]&512))if((c[(q&p)+8>>2]|0)==(T|0)){c[(aa&p)>>2]=c[(V&p)>>2];c[(O&p)>>2]=V;a[(P&n)>>0]=72;c[(Q&p)>>2]=1;c[(R&p)>>2]=q;m=aa;ba=10}else m=l;else{m=c[(q&p)+12>>2]|0;ba=10}do if((ba|0)==10){ba=0;c[(S&p)>>2]=m;b[(Y&o)>>1]=0;if(!(a[((c[(z&p)>>2]|0)&n)+44>>0]&16))k=Hu(_,g,h)|0;else k=Gu(_,g,h)|0;if(!k)k=Iu(_,g,h)|0;m=b[(Y&o)>>1]|0;if(!(m<<16>>16))break d;if(l){b[($&o)>>1]=m;kw(B|0,C|0,(m&65535)<<4|0)|0;m=0;break}w=b[($&o)>>1]|0;b[(Z&o)>>1]=w;x=w&65535;kw(A|0,B|0,x<<4|0)|0;b[($&o)>>1]=0;if(!(w<<16>>16))m=0;else{w=0;do{if(!(m<<16>>16))m=0;else{s=Z+(w<<4)+8|0;l=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;t=b[(Z+(w<<4)&o)+16>>1]|0;u=b[(Z+(w<<4)&o)+18>>1]|0;v=0;do{da=Y+(v<<4)+8|0;ea=c[(da&p)>>2]|l;da=c[(da&p)+4>>2]|s;m=Gv(t,b[(Y+(v<<4)&o)+16>>1]|0)|0;Kv($,ea,da,m,Gv(u,b[(Y+(v<<4)&o)+18>>1]|0)|0);v=v+1|0;m=b[(Y&o)>>1]|0}while((v|0)<(m&65535|0))}w=w+1|0}while((w|0)<(x|0));m=0}}while(0);q=q+48|0;if(q>>>0>=y>>>0)break c;else l=m}b[($&o)>>1]=0}else k=0;while(0);b[(G&o)>>1]=1;c[(c[(H&p)>>2]&p)>>2]=r;c[(I&p)>>2]=8192;b[(J&o)>>1]=0;a[(K&n)>>0]=0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;if(k)break a;q=e[($&o)>>1]|0;m=0;while(1){if((m|0)>=(q|0))break b;b[(M&o)>>1]=(e[($+(m<<4)&o)+16>>1]|0)+1;b[(N&o)>>1]=b[($+(m<<4)&o)+18>>1]|0;v=$+(m<<4)+8|0;w=c[(v&p)+4>>2]|0;k=U;c[(k&p)>>2]=c[(v&p)>>2];c[(k&p)+4>>2]=w;k=Fv(f,U)|0;if(!k)m=m+1|0;else break a}}while(0);r=r+48|0;if(r>>>0>=X>>>0){k=0;break}}}else k=0;while(0);i=ca;return k|0}function Ju(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=d+48|0;f=c[(e&p)>>2]|0;g=d+56|0;if((f|0)!=(g|0))mg(a,f);Lv(a,d);c[(e&p)>>2]=g;b[(d&o)+40>>1]=0;b[(d&o)+44>>1]=3;c[(d&p)+36>>2]=0;return}function Ku(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+32|0;if((i|0)>=(j|0))fa();ea=oa+24|0;aa=oa+16|0;ia=oa+8|0;na=oa;da=c[(d&p)>>2]|0;ka=c[(da&p)>>2]|0;r=a[(d&n)+41>>0]|0;la=r&255;if((r&255)<2)Y=1;else Y=r<<24>>24==2?5:10;ma=d+8|0;l=c[(ma&p)>>2]|0;ga=f<<16>>16==0;if((l|0)==0|ga)X=0;else X=c[(l&p)>>2]|0;m=X<<1;ja=m+(ca((la<<3)+64|0,Y)|0)|0;ja=mh(ka,ja,((ja|0)<0)<<31>>31)|0;do if(ja){l=ja+(Y<<5)|0;c[(l&p)>>2]=0;c[(l&p)+4>>2]=0;c[(l&p)+8>>2]=0;c[(l&p)+12>>2]=0;c[(l&p)+16>>2]=0;c[(l&p)+20>>2]=0;c[(l&p)+24>>2]=0;c[(l&p)+28>>2]=0;g=Y<<1;q=ca(Y,-2)|0;q=ja+((ca((((q|0)>-1?q:1073741823)+(Y<<1)<<2)+4|0,la)|0)+(Y<<6))|0;k=g;h=ja;g=ja+(g<<5)|0;while(1){c[(h&p)+24>>2]=g;k=k+-1|0;if((k|0)<=0)break;else{h=h+32|0;g=g+(la<<2)|0}}k=(X|0)!=0;if(k)fw(q|0,0,m|0)|0;else q=0;W=c[(da&p)+424>>2]|0;b[(ja+(Y<<5)&o)+16>>1]=W>>>0<48?W&65535:48;if(k)a[(ja+(Y<<5)&n)+22>>0]=r<<24>>24!=0?-1:X&255;W=r<<24>>24==0;if(!W){S=d+16|0;T=d+34|0;U=f<<16>>16<11;V=(f&65535)+16|0;P=f<<16>>16;Q=((P|0)<0)<<31>>31;R=Y>>>0>1;g=ja;O=0;m=0;r=0;f=0;h=1;while(1){if((h|0)>0){J=O&65535;K=O<<2;L=g+18|0;M=g+16|0;N=0;k=0;I=l;while(1){s=c[(S&p)>>2]|0;if(s){D=I+22|0;E=I+16|0;F=I+20|0;G=I+24|0;H=I+8|0;C=k;while(1){u=a[(D&n)>>0]|0;v=aa;c[(v&p)>>2]=0;c[(v&p)+4>>2]=0;v=s;k=I;t=c[(k&p)>>2]|0;k=c[(k&p)+4>>2]|0;a:do if(((c[(v&p)>>2]&~t|0)==0?(c[(v&p)+4>>2]&~k|0)==0:0)?(Z=s+8|0,$=Z,_=c[($&p)>>2]|0,$=c[($&p)+4>>2]|0,(_&t|0)==0&($&k|0)==0):0){y=e[(E&o)>>1]|0;A=Gv(b[(s&o)+18>>1]|0,y+(e[(s&o)+20>>1]|0)&65535)|0;A=Gv(A,b[(F&o)>>1]|0)|0;y=(e[(s&o)+22>>1]|0)+y|0;B=y&65535;x=_|t;v=$|k;if(u<<24>>24<0)z=Mv(d,c[(ma&p)>>2]|0,I,b[(T&o)>>1]|0,J,s,aa)|0;else{k=H;t=c[(k&p)+4>>2]|0;z=aa;c[(z&p)>>2]=c[(k&p)>>2];c[(z&p)+4>>2]=t;z=u}u=z<<24>>24;if(z<<24>>24>-1&(X|0)>(u|0)){w=q+(u<<1)|0;t=b[(w&o)>>1]|0;if(!(t<<16>>16)){u=((X-u|0)*100|0)/(X|0)|0;u=(fs(u,((u|0)<0)<<31>>31)|0)&65535;if(U)k=0;else k=((fs(P,Q)|0)&65535)+65503&65535;u=V+(((u<<16)+-4325376|0)>>>16)+k|0;if(b[(T&o)>>1]&1024)u=(u&65535)+16|0;t=u&65535;b[(w&o)>>1]=t}w=Gv(A,t)|0}else w=A;b:do if((C|0)>0){u=0;t=g;while(1){k=t;if(((c[(k&p)>>2]|0)==(x|0)?(c[(k&p)+4>>2]|0)==(v|0):0)?(a[(t&n)+22>>0]^z)<<24>>24>-1:0)break;u=u+1|0;if((u|0)>=(C|0)){ba=35;break b}else t=t+32|0}k=b[(t&o)+18>>1]|0;if(k<<16>>16<w<<16>>16){k=C;break a}if(k<<16>>16!=w<<16>>16){k=C;break}if((b[(t&o)+16>>1]|0)>(y<<16>>16|0))k=C;else{k=C;break a}}else ba=35;while(0);if((ba|0)==35){ba=0;t=(C|0)<(Y|0);if(!t){if(w<<16>>16>m<<16>>16){k=C;break}if(!(w<<16>>16!=m<<16>>16?1:A<<16>>16<f<<16>>16)){k=C;break}}k=(t&1)+C|0;t=g+((t?C:r)<<5)|0}u=I;y=Z;v=c[(y&p)+4>>2]|c[(u&p)+4>>2];x=t;c[(x&p)>>2]=c[(y&p)>>2]|c[(u&p)>>2];c[(x&p)+4>>2]=v;x=aa;v=c[(x&p)+4>>2]|0;u=t+8|0;c[(u&p)>>2]=c[(x&p)>>2];c[(u&p)+4>>2]=v;b[(t&o)+16>>1]=B;b[(t&o)+18>>1]=w;b[(t&o)+20>>1]=A;a[(t&n)+22>>0]=z;t=t+24|0;kw(c[(t&p)>>2]|0,c[(G&p)>>2]|0,K|0)|0;c[((c[(t&p)>>2]|0)+(O<<2)&p)>>2]=s;if((k|0)<(Y|0))break;m=b[(L&o)>>1]|0;f=b[(M&o)>>1]|0;if(R){v=g;w=1;u=m;r=0;t=f}else{r=0;break}while(1){m=b[(v&o)+50>>1]|0;do if(m<<16>>16<=u<<16>>16){if(m<<16>>16!=u<<16>>16){m=u;f=t;break}f=b[(v&o)+52>>1]|0;if(f<<16>>16>t<<16>>16)ba=48;else{m=u;f=t}}else{f=b[(v&o)+52>>1]|0;ba=48}while(0);v=v+32|0;if((ba|0)==48){ba=0;r=w}w=w+1|0;if((w|0)>=(Y|0))break;else{u=m;t=f}}}else k=C;while(0);s=c[(s&p)+52>>2]|0;if(!s)break;else C=k}}N=N+1|0;if((N|0)==(h|0)){h=k;break}else I=I+32|0}}else h=0;O=O+1|0;if((O|0)>=(la|0))break;else{N=g;g=l;l=N}}if(!h){th(da,34008,ea
8 0,F=f+16|0,(E|0)<=(e[(F&o)>>1]|0)):0){l=Gg(c[(f&p)+68>>2]|0)|0;if(l){c[(q&p)>>2]=l;break}z=c[(f&p)+56>>2]|0;t=e[(f&o)+14>>1]|0;A=f+18|0;B=e[(A&o)>>1]<<1;v=g<<1;w=t+v|0;x=f+6|0;l=d[(x&n)>>0]|0;c[(C&p)>>2]=0;g=B+t|0;t=z+(l+5)|0;u=z+(l+6)|0;r=((d[(t&n)>>0]<<8|d[(u&n)>>0])+65535&65535)+1|0;b:do if((g|0)>(r|0)){c[(s&p)>>2]=54326;c[(s&p)+4>>2]=10788;bd(11,13600,s);l=11}else{s=g+2|0;do if((s|0)<=(r|0)){if((a[(z+l&n)+1>>0]|0)==0?(a[(z+l&n)+2>>0]|0)==0:0){D=20;break}c[(y&p)>>2]=0;g=Dq(f,k,C,y)|0;l=c[(C&p)>>2]|0;if(l)break b;if(!(c[(y&p)>>2]|0))if(!g)D=20;else r=g-z|0;else D=21}else D=20;while(0);if((D|0)==20)if((s+k|0)>(r|0))D=21;else D=23;if((D|0)==21){l=Eq(f)|0;c[(C&p)>>2]=l;if(l)break;r=((d[(t&n)>>0]<<8|d[(u&n)>>0])+65535&65535)+1|0;D=23}if((D|0)==23){r=r-k|0;a[(t&n)>>0]=r>>>8;a[(u&n)>>0]=r}b[(A&o)>>1]=(b[(A&o)>>1]|0)+1<<16>>16;b[(F&o)>>1]=(e[(F&o)>>1]|0)-E;l=z+r|0;k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ia&p)>>2]=0;while(0);if(g){h=ga;break}b[(qa&o)>>1]=1;b[(na&o)>>1]=0;b[(oa&o)>>1]=0;l=c[(ia&p)>>2]|0;k=l+1|0;if(!(a[(k&n)>>0]|0)){h=1;m=1;ea=15}else{s=1;m=1;r=k}}else if(h){h=l;l=q;k=r;ea=15}else{s=l;l=q}if((ea|0)==15){ea=0;if((e[(l&o)+16>>1]|0)>>>0>pa>>>0){s=h;r=k}else{h=ga;g=0;break}}k=m+-1|0;da=c[(f+(k<<2)&p)+120>>2]|0;k=b[(f+(k<<1)&o)+78>>1]|0;t=k&65535;g=Gg(c[(da&p)+68>>2]|0)|0;do if(!g){if(((((a[(l&n)+3>>0]|0)!=0?(a[(r&n)>>0]|0)==1:0)?(ja=b[(l&o)+22>>1]|0,ka=l+18|0,ja<<16>>16==(b[(ka&o)>>1]|0)):0)?(la=da+72|0,(c[(la&p)>>2]|0)!=1):0)?(ma=da+18|0,(b[(ma&o)>>1]|0)==k<<16>>16):0){k=c[(l&p)+52>>2]|0;if(!(ja<<16>>16)){c[(Qa&p)>>2]=59423;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);h=ga;g=11;break}ca=ip(k,Ia,La,0,0)|0;c[(Ma&p)>>2]=ca;if(!ca){h=c[(l&p)+32>>2]|0;c[(Ha&p)>>2]=h;g=Lp(l,h)|0;b[(Oa&o)>>1]=g;m=c[(Ia&p)>>2]|0;pl(m,13);Hq(m,1,Ha,Oa);b[(m&o)+16>>1]=65534-(g&65535)+(c[(k&p)+36>>2]|0)-(e[(m&o)+14>>1]|0);if((a[(k&n)+17>>0]|0)!=0?(zp(k,c[(La&p)>>2]|0,5,c[(la&p)>>2]|0,Ma),(g&65535)>(e[(m&o)+12>>1]|0)):0)Fq(m,h,Ma);ca=c[(l&p)+56>>2]|0;k=e[(ka&o)>>1]<<1;h=c[(l&p)+64>>2]|0;k=(d[(h+k+-2&n)>>0]<<8|d[(h+k+-1&n)>>0])&e[(l&o)+20>>1];h=ca+k|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){ea=47;break a}else x=k}if((ea|0)==54){ea=0;c[(Qa&p)>>2]=59766;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;fw(Da|0,0,k<<2|0)|0;m=0;q=0;break}t=s+3&-4;Z=gi((c[(aa&p)+32>>2]|0)+(t*6|0)|0)|0;if(!Z){c[(Na&p)>>2]=7;m=Z;q=0;break}X=Z+(t<<2)|0;J=X+(t<<1)|0;M=c[(Da&p)>>2]|0;U=d[(M&n)+5>>0]<<2;Y=U&65535;V=a[(M&n)+3>>0]|0;F=V&255;if((ba|0)>-1){I=V<<24>>24!=0;K=M;q=0;L=0;s=0;while(1){H=e[(K&o)+18>>1]|0;P=a[(K&n)+1>>0]|0;D=P&255;E=D+H|0;if(!(P<<24>>24)){g=c[(K&p)+56>>2]|0;if((E|0)>0){y=e[(K&o)+20>>1]|0;x=e[(K&o)+14>>1]|0;w=0;v=s;while(1){P=(w<<1)+x|0;P=g+((d[(g+P&n)>>0]<<8|d[(g+P&n)+1>>0])&y)|0;c[(Z+(v<<2)&p)>>2]=P;b[(X+(v<<1)&o)>>1]=Lp(K,P)|0;w=w+1|0;if((w|0)==(H|0))break;else v=v+1|0}s=H+s|0}}else if((E|0)>0){z=K+56|0;x=K+20|0;w=K+64|0;v=0;g=s;while(1){y=v;C=D;b:while(1){while(1){A=C+-1|0;if((C|0)<=0){ea=72;break b}C=e[(K+(A<<1)&o)+22>>1]|0;if((C|0)>(y|0))C=A;else{B=C;C=A;break}}if((B|0)==(y|0)){ea=71;break}else y=y+-1|0}if((ea|0)==71){ea=0;y=c[(K+(C<<2)&p)+32>>2]|0}else if((ea|0)==72){ea=0;y=y<<1;P=c[(w&p)>>2]|0;y=(c[(z&p)>>2]|0)+((d[(P+y&n)>>0]<<8|d[(P+(y|1)&n)>>0])&e[(x&o)>>1])|0}c[(Z+(g<<2)&p)>>2]=y;b[(X+(g<<1)&o)>>1]=Lp(K,y)|0;v=v+1|0;if((v|0)==(E|0))break;else g=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=A+-1|0;y=A-F|0;if(u){if(!E){q=D;break}B=b[(X+(y<<1)&o)>>1]|0;C=u+2|0;y=b[(X+(z<<1)&o)>>1]|0;x=D+-2|0;if(((B&65535)+C|0)>(x-(y&65535)|0)){q=D;break}}else{x=D+-2|0;C=2;B=b[(X+(y<<1)&o)>>1]|0;y=b[(X+(z<<1)&o)>>1]|0}c[(w&p)>>2]=z;A=z;D=x-(y&65535)|0;u=(B&65535)+C|0}c[(v&p)>>2]=u;c[(g&p)>>2]=q}while((m|0)>0);L=1;P=t;O=s}else{L=1;P=t;O=s}}else ea=93}else{t=U+-12+(c[(Q&p)>>2]|0)|0;s=0;ea=93}if((ea|0)==93){ea=0;c[(Pa&p)>>2]=0;c[(Ea&p)>>2]=s;L=0;P=t;k=0;O=s}if((c[(M&p)+72>>2]|0)>>>0<2){c[(Qa&p)>>2]=59963;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;m=Z;q=0;break}H=d[(c[(M&p)+56>>2]&n)>>0]|0;if((k|0)>-1){v=(N|0)!=0;g=aa+17|0;m=da+72|0;x=0;q=0;while(1){do if((x|0)<(ca|0)){M=Da+(x<<2)|0;N=c[(M&p)>>2]|0;c[(Ca+(x<<2)&p)>>2]=N;c[(Ja&p)>>2]=N;c[(M&p)>>2]=0;N=Gg(c[(N&p)+68>>2]|0)|0;c[(Na&p)>>2]=N;q=q+1|0;if(N){m=Z;break a}}else{N=ip(aa,Ja,Ka,v?1:c[(Ka&p)>>2]|0,0)|0;c[(Na&p)>>2]=N;if(N){m=Z;break a}t=c[(Ja&p)>>2]|0;pl(t,H);c[(Ca+(x<<2)&p)>>2]=t;q=q+1|0;c[(Fa+(x<<2)&p)>>2]=O;if(!(a[(g&n)>>0]|0))break;zp(aa,c[(t&p)+72>>2]|0,5,c[(m&p)>>2]|0,Na);if(c[(Na&p)>>2]|0){m=Z;break a}}while(0);if((x|0)<(k|0))x=x+1|0;else break}if((q|0)>0){s=0;c:do{N=c[(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|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24;a[(T&n)>>0]=S;a[(T&n)+1>>0]=S>>8;a[(T&n)+2>>0]=S>>16;a[(T&n)+3>>0]=S>>24}M=aa+17|0;if((a[(M&n)>>0]|0)!=0?(ra=c[(Ca&p)>>2]|0,sa=c[(Q&p)>>2]|0,L):0){D=V<<24>>24==0;B=D&1;A=Y<<16>>16==0;y=c[(ra&p)+56>>2]|0;x=(e[(ra&o)+18>>1]|0)+(d[(ra&n)+1>>0]|0)|0;z=0;w=0;s=0;u=ra;while(1){C=c[(Z+(z<<2)&p)>>2]|0;if((z|0)==(x|0)){s=s+1|0;if((s|0)<(q|0))t=Ca+(s<<2)|0;else t=Da+(s<<2)|0;x=c[(t&p)>>2]|0;y=c[(x&p)+56>>2]|0;x=z+B+(e[(x&o)+18>>1]|0)+(d[(x&n)+1>>0]|0)|0}if((z|0)==(c[(Ea+(w<<2)&p)>>2]|0)){t=w+1|0;u=c[(Ca+(t<<2)&p)>>2]|0;if(!D)ea=142}else{t=w;ea=142}do if((ea|0)==142){ea=0;if((s|0)<(q|0)?(C>>>0>=y>>>0?(c[(u&p)+72>>2]|0)==(c[(za+(s<<2)&p)>>2]|0):0)&C>>>0<(y+sa|0)>>>0:0)break;if(A)zp(aa,d[(C&n)+1>>0]<<16|d[(C&n)>>0]<<24|d[(C&n)+2>>0]<<8|d[(C&n)+3>>0],5,c[(u&p)+72>>2]|0,Na);if((e[(X+(z<<1)&o)>>1]|0)<=(e[(u&o)+12>>1]|0))break;Fq(u,C,Na)}while(0);z=z+1|0;if((z|0)==(O|0))break;else w=t}}if((K|0)>0){v=V<<24>>24==0;x=0;y=0;while(1){w=c[(Ca+(x<<2)&p)>>2]|0;s=c[(EaEa&p)>>2]|0;K=V<<24>>24==0&1;do{I=(t|0)<0?0-t|0:t;J=Aa+I|0;do if(!(a[(J&n)>>0]|0)){if((t|0)<=-1?(W=I+-1|0,(c[(Fa+(W<<2)&p)>>2]|0)<(c[(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2]|0)+(y<<1)|0,G-y|0,Z+(W<<2)|0,X+(W<<1)|0)|0){ea=181;break}W=G&65535;b[(u&o)>>1]=W;a[(F&n)>>0]=0;a[(v+g&n)+3>>0]=(W&65535)>>>8;a[(v+g&n)+4>>0]=b[(u&o)>>1];W=(c[(Qa&p)>>2]|0)-v|0;a[(A&n)>>0]=W>>>8;a[(z&n)>>0]=W}while(0);if((ea|0)==181){ea=0;Hq(E,G,Z+(H<<2)|0,X+(H<<1)|0)}a[(J&n)>>0]=1;b[(E&o)+16>>1]=P-(c[(Pa+(I<<2)&p)>>2]|0)}while(0);t=t+1|0}while((t|0)!=(q|0))}do if(_){if(b[($&o)>>1]|0){ea=191;break}m=c[(Ca&p)>>2]|0;if((d[(da&n)+6>>0]|0)>>>0>(e[(m&o)+16>>1]|0)>>>0){ea=191;break}c[(Na&p)>>2]=Eq(m)|0;Gq(m,da,Na);if(c[(Na&p)>>2]|0)break;c[(Na&p)>>2]=Ym(c[(m&p)+52>>2]|0,m,c[(m&p)+72>>2]|0)|0}else ea=191;while(0);do if((ea|0)==191){ea=0;if((a[(M&n)>>0]|0)==0|Y<<16>>16!=0|N)break;else m=0;do{$=c[(Ca+(m<<2)&p)>>2]|0;_=c[($&p)+56>>2]|0;zp(aa,d[(_&n)+9>>0]<<16|d[(_&n)+8>>0]<<24|d[(_&n)+10>>0]<<8|d[(_&n)+11>>0],5,c[($&p)+72>>2]|0,Na);m=m+1|0}while((m|0)!=(q|0))}while(0);if((q|0)>=(ca|0)){m=Z;break}m=c[(Na&p)>>2]|0;g=q;do{k=c[(Da+(g<<2)&p)>>2]|0;if(!m){m=Ym(c[(k&p)+52>>2]|0,k,c[(k&p)+72>>2]|0)|0;c[(Na&p)>>2]=m}g=g+1|0}while((g|0)!=(ca|0));m=Z}else{k=ba;ea=47}while(0);if((ea|0)==47){ea
11 function mq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0;ha=i;i=i+192|0;if((i|0)>=(j|0))fa();ba=ha+48|0;$=ha+24|0;_=ha+160|0;I=ha+156|0;S=ha+152|0;L=ha+148|0;V=ha+144|0;O=ha+140|0;H=ha+16|0;ea=ha;y=ha+128|0;x=ha+116|0;z=ha+96|0;l=ha+88|0;ga=f+8|0;ca=c[(ga&p)>>2]|0;da=c[(f&p)>>2]|0;c[(ea&p)>>2]=c[9286];c[(ea&p)+4>>2]=c[9287];c[(ea&p)+8>>2]=c[9288];a:do switch(g|0){case 9:{l=c[(f+(da+-1<<4)&p)+16>>2]|0;k=c[(ca&p)>>2]|0;if((Sq(ca,22,37104,0,0)|0)==0?(E=Oq(ca)|0,(E|0)!=0):0){if((l|0)!=7?(F=k+20|0,(c[(F&p)>>2]|0)>0):0){l=(l|0)==9?2:1;k=E+96|0;q=0;do{wh(E,4,q,l,0)|0;c[(k&p)>>2]=c[(k&p)>>2]|1<<q;q=q+1|0}while((q|0)<(c[(F&p)>>2]|0))}wh(E,3,0,0,0)|0}break}case 8:{y=c[(ca&p)>>2]|0;C=y+65|0;if(((a[(C&n)>>0]|0)==0?(a[(ca&n)+18>>0]|0)==0:0)?(Y=ca+64|0,(c[(Y&p)>>2]|0)==0):0){B=Oq(ca)|0;if(B){do{}while((Pq(B,61)|0)!=0);wh(B,24,0,0,0)|0;do if(!(a[(C&n)>>0]|0)){r=ca+332|0;v=c[(r&p)>>2]|0;if((v|0)==0?(c[(ca&p)+316>>2]|0)==0:0)break;s=B+32|0;t=c[(s&p)>>2]|0;if(t)c[((c[(B&p)+4>>2]|0)&p)+8>>2]=t;c[((c[(B&p)+24>>2]|0)&p)+88>>2]=t+-1;w=y+20|0;b:do if((c[(w&p)>>2]|0)>0){h=B+96|0;k=ca+328|0;l=y+16|0;m=y+145|0;q=B+4|0;u=0;while(1){x=1<<u;if(((x&v|0)!=0?(c[(h&p)>>2]=c[(h&p)>>2]|x,ba=c[((c[((c[(l&p)>>2]|0)+(u<<4)&p)+12>>2]|0)&p)+4>>2]|0,xh(B,wh(B,4,u,(c[(k&p)>>2]&x|0)!=0&1,c[(ca+(u<<2)&p)+336>>2]|0)|0,ba,-14),(a[(m&n)>>0]|0)==0):0)?(N=c[(q&p)>>2]|0,(N|0)!=0):0)a[(N+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;u=u+1|0;if((u|0)>=(c[(w&p)>>2]|0))break b;v=c[(r&p)>>2]|0}}while(0);s=ca+452|0;if((c[(s&p)>>2]|0)>0){r=ca+520|0;q=0;do{t=c[((c[((c[(r&p)>>2]|0)+(q<<2)&p)>>2]|0)&p)+60>>2]|0;c:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break c;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);xh(B,wh(B,146,0,0,0)|0,t,-10);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}c[(s&p)>>2]=0;s=Oq(ca)|0;r=ca+396|0;if((c[(r&p)>>2]|0)>0){q=ca+400|0;m=0;do{$=c[(q&p)>>2]|0;ba=c[($+(m<<4)&p)+12>>2]|0;xh(s,wh(s,145,c[($+(m<<4)&p)>>2]|0,c[($+(m<<4)&p)+4>>2]|0,d[($+(m<<4)&n)+8>>0]|0)|0,ba,-2);m=m+1|0}while((m|0)<(c[(r&p)>>2]|0))}k=c[(ca&p)+8>>2]|0;t=c[(ca&p)+404>>2]|0;if(t){h=(c[(ca&p)>>2]|0)+16|0;u=k+32|0;v=k+4|0;do{r=c[(t&p)+8>>2]|0;s=c[(t&p)+12>>2]|0;Qq(ca,0,r,c[((c[((c[(h&p)>>2]|0)+(r<<4)&p)+12>>2]|0)&p)+72>>2]|0,54);r=s+1|0;wh(k,28,0,s,r)|0;q=c[(u&p)>>2]|0;l=s+-1|0;m=c[(c[(t&p)+4>>2]&p)>>2]|0;xh(k,wh(k,97,0,l,0)|0,m,0);m=q+9|0;wh(k,108,0,m,0)|0;wh(k,47,0,0,s)|0;wh(k,78,l,q+7|0,s)|0;l=c[(v&p)>>2]|0;if(l)a[(l+(((c[(u&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;wh(k,103,0,r,0)|0;wh(k,47,0,1,s)|0;wh(k,16,0,m,0)|0;wh(k,9,0,q+2|0,0)|0;wh(k,25,0,s,0)|0;wh(k,61,0,0,0)|0;t=c[(t&p)>>2]|0}while((t|0)!=0)}s=c[(ca&p)+316>>2]|0;if((s|0)!=0?(a[(ca&n)+23>>0]=0,(c[(s&p)>>2]|0)>0):0){r=s+4|0;q=0;do{ba=c[(r&p)>>2]|0;Rq(ca,c[(ba+(q*20|0)&p)>>2]|0,c[(ba+(q*20|0)&p)+16>>2]|0);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}wh(B,16,0,1,0)|0}while(0);if((c[(Y&p)>>2]|0)==0?(a[(C&n)>>0]|0)==0:0){if((c[(ca&p)+404>>2]|0)!=0?(Z=ca+68|0,(c[(Z&p)>>2]|0)==0):0)c[(Z&p)>>2]=1;Ah(B,ca);c[(ca&p)+12>>2]=101;a[(ca&n)+16>>0]=0}else aa=48}else aa=48;if((aa|0)==48)c[(ca&p)+12>>2]=1;c[(ca&p)+68>>2]=0;c[(ca&p)+72>>2]=0;c[(ca&p)+76>>2]=0;c[(ca&p)+440>>2]=0;c[(ca&p)+332>>2]=0}break}case 5:{a[(ca&n)+450>>0]=0;c[(ca&p)+440>>2]=0;break}case 6:{a[(ca&n)+450>>0]=1;c[(ca&p)+440>>2]=0;break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[(ea&p)>>2]=0;break}case 27:{a[((c[(ca&p)>>2]|0)&n)+250>>0]=0;aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[(ea&p)>>2]=1;break}case 32:{Vq(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,a[(f+(da<<4)&n)+16>>0]|0,0);break}case 33:{ba=f+(da<<4)+16|0;Vq(ca,0,0,0,c[(ba&p)>>2]|0);Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 34:{a[(ea&n)>>0]=0;break}case 35:{l=c[(f+(da<<4)&p)+20>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;if((l|0)==5?(Fc(k,20456,5)|0)==0:0){a[(ea&n)>>0]=32;break a}a[(ea&n)>>0]=0;c[(ba&p)>>2]=l;c[(ba&p)+4>>2]=k;th(ca,20464,ba);break}case 59:{ba=f+(da<<4)+16|0;c[(x&p)>>2]=Zq(ca,97,0,0,ba)|0;ba=c[(ba&p)>>2]|0;c[(x&p)+4>>2]=ba;c[(x&p)+8>>2]=ba+(c[(f+(da<<4)&p)+20>>2]|0);Yq(ca,x);break}case 61:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(v=b[(l&o)+38>>1]|0,v<<16>>16>=1):0)a[((c[(l&p)+4>>2]|0)+(((v<<16>>16)+-1|0)*24|0)&n)+20>>0]=k;break}case 70:{c[(ea&p)>>2]=0;break}case 71:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2]&~c[(f+(da<<4)&p)+20>>2]|c[(f+(da<<4)&p)+16>>2];break}case 73:case 72:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 74:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=255;break}case 76:{c[(ea&p)>>2]=7;break}case 75:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2]<<8;c[(ea&p)+4>>2]=65280;break}case 65:{br(ca,0,f+(da+-2<<4)+16|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 66:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(u=c[(l&p)+16>>2]|0,(u|0)!=0):0)a[(u&n)+24>>0]=k;break}case 67:{q=c[(ca&p)+484>>2]|0;if((q|0)!=0?(D=(b[(q&o)+38>>1]|0)+-1|0,r=c[(ca&p)>>2]|0,m=Wq(r,f+(da<<4)+16|0)|0,(m|0)!=0):0){if(!(cr(ca,m)|0)){mg(r,m);break a}s=q+4|0;mg(r,c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]|0);c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]=m;l=c[(q&p)+8>>2]|0;if(l)do{if((b[(c[(l&p)+4>>2]&o)>>1]|0)==(D|0))c[(c[(l&p)+32>>2]&p)>>2]=c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2];l=c[(l&p)+20>>2]|0}while((l|0)!=0)}break}case 13:{c[(ea&p)>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];break}case 46:{ca=c[(f+(da+-3<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 47:{ca=c[(f+(da+-5<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 49:{ca=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 92:case 54:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ca+320|0;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 57:case 55:{Yq(ca,f+(da<<4)+16|0);break}case 56:{Yq(ca,f+(da+-1<<4)+16|0);break}case 58:{c[(y&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(y&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(y&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];Yq(ca,y);break}case 18:case 17:{if((Sq(ca,22,37136,0,0)|0)==0?(B=Oq(ca)|0,(B|0)!=0):0)wh(B,3,1,0,0)|0;break}case 19:{if((Sq(ca,22,37120,0,0)|0)==0?(A=Oq(ca)|0,(A|0)!=0):0)wh(A,3,1,1,0)|0;break}case 22:{Tq(ca,0,f+(da<<4)+16|0);break}case 38:{ba=c[(f+(da+-2<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=(c[(ca&p)+504>>2]|0)-ba+(c[(ca&p)+508>>2]|0);break}case 39:{x=f+(da<<4)+16|0;v=c[(ca&p)>>2]|0;k=c[(ca&p)+484>>2]|0;d:do if(k){w=k+38|0;if((b[(w&o)>>1]|0)>=(c[(v&p)+96>>2]|0)){c[(ba&p)>>2]=c[(k&p)>>2];th(ca,36528,ba);break}u=Wq(v,x)|0;if(u){s=b[(w&o)>>1]|0;h=s<<16>>16;e:do if(s<<16>>16>0){t=a[((d[(u&n)>>0]|0)&n)+9328>>0]|0;q=c[(k&p)+4>>2]|0;r=u+1|0;l=0;while(1){m=c[(q+(l*24|0)&p)>>2]|0;if(t<<24>>24==(a[((d[(m&n)>>0]|0)&n)+9328>>0]|0)?(dd(r,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break e}c[(ba&p)>>2]=u;th(ca,36552,ba);mg(v,u);break d}else q=c[(k&p)+4>>2]|0;while(0);r=k+4|0;do if(!(h&7)){q=ro(v,q,(h*24|0)+192|0,0)|0;if(!q){mg(v,u);break d}else{c[(r&p)>>2]=q;s=b[(w&o)>>1]|0;break}}while(0);ba=s<<16>>16;aa=q+(ba*24|0)|0;c[(aa&p)>>2]=0;c[(aa&p)+4>>2]=0;c[(aa&p)+8>>2]=0;c[(aa&p)+12>>2]=0;c[(aa&p)+16>>2]=0;c[(aa&p)+20>>2]=0;c[(aa&p)>>2]=u;a[(q+(ba*24|0)&n)+21>>0]=65;a[(q+(ba*24|0)&n)+22>>0]=1;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16}}while(0);$=x;aa=c[($&p)+4>>2]|0;ba=ea;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;c[(ca&p)+324>>2]=0;break}case 62:{_q(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 63:{$q(ca,0,0,0,0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 64:{ar(ca,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 44:{l=f+(da<<4)+16|0;k=c[(ca&p)+484>>2]|0;if((k|0)!=0?(J=b[(k&o)+38>>1]|0,J<<16>>16>=1):0){ba=(J<<16>>16)+-1|0;aa=c[(k&p)+4>>2]|0;ca=Wq(c[(ca&p)>>2]|0,l)|0;c[(aa+(ba*24|0)&p)+12>>2]=ca;a[(aa+(ba*24|0)&n)+21>>0]=Xq(ca,aa+(ba*24|0)+22|0)|0}break}case 226:{l=da+-1|0;k=f+(l<<4)+16|0;r=f+(da<<4)+16|0;q=pr(c[(ca&p)>>2]|0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+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 228:{k=Zq(ca,136,c[(f+(da+-3<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=k;if(!k){Nk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);Gk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)}else{l=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da+-2<<4)&p)+16>>2]|0;if(l)h=lr(ca,h,l)|0;c[(k&p)+20>>2]=h;yr(ca,c[(ea&p)>>2]|0)}c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 291:case 240:{c[(ea&p)>>2]=2;break}case 241:{c[(ea&p)>>2]=0;break}case 239:{$q(ca,f+(da+-7<<4)+16|0,f+(da+-6<<4)+16|0,pr(c[(ca&p)>>2]|0,0,f+(da+-4<<4)+16|0,0)|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-10<<4)&p)+16>>2]|0,f+(da+-11<<4)+16|0,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-8<<4)&p)+16>>2]|0)|0;break}case 229:{c[(eaea&p)>>2]=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 237:{c[(ea&p)>>2]=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 238:{c[(ea&p)>>2]=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 245:{h=lr(ca,0,vr(ca,0,f+(da+-1<<4)+16|0,1)|0)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 244:{h=vr(ca,0,f+(da+-1<<4)+16|0,1)|0;h=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,h)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 248:{v=c[(f+(da<<4)&p)+16>>2]|0;s=c[(f+(da+-1<<4)&p)+16>>2]|0;u=c[(ca&p)>>2]|0;do if((a[(u&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){r=v+12|0;k=bq(u,c[(v&p)+16>>2]|0,c[(r&p)>>2]|0)|0;if(!k){if(!s){c[(ba&p)>>2]=v;c[(ba&p)+4>>2]=0;th(ca,33056,ba)}else zr(ca,c[(r&p)>>2]|0);a[(ca&n)+17>>0]=1;break}if(a[(k&n)+51>>0]&3){c[(ba&p)>>2]=0;th(ca,33080,ba);break}s=c[(k&p)+24>>2]|0;f:do if(s){r=c[(u&p)+20>>2]|0;if((r|0)>0){q=c[(u&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break f}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);s=c[(k&p)+12>>2]|0;r=u+16|0;q=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2]|0;l=(m|0)==1?13184:13208;if(((Sq(ca,9,l,0,q)|0)==0?(Sq(ca,(m|0)==0?10:12,c[(k&p)>>2]|0,c[(s&p)>>2]|0,q)|0)==0:0)?(K=Oq(ca)|0,(K|0)!=0):0){aa=c[(ca&p)+408>>2]|0;aa=(aa|0)==0?ca:aa;Ar(ca,m);$=aa+328|0;c[($&p)>>2]=c[($&p)>>2]|1<<m;aa=aa+20|0;a[(aa&n)>>0]=d[(aa&n)>>0]|1;aa=c[(k&p)>>2]|0;c[(ba&p)>>2]=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2];c[(ba&p)+4>>2]=l;c[(ba&p)+8>>2]=aa;Br(ca,33160,ba);Cr(ca,m,28536,c[(k&p)>>2]|0);Dr(ca,m);Er(ca,c[(k&p)+40>>2]|0,m);ca=c[(k&p)>>2]|0;xh(K,wh(K,125,m,0,0)|0,ca,0)}}while(0);Do(u,v);break}case 246:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 250:case 249:{h=Oq(ca)|0;if(h){wh(h,13,0,0,0)|0;ca=h+96|0;c[(ca&p)>>2]=c[(ca&p)>>2]|1}break}case 251:{Fr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,0,0);break}case 252:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,0);break}case 253:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,0);break}case 254:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,1);break}case 255:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,1);break}case 264:{h=c[(f+(da+-3<<4)&p)+16>>2]|0;l=(c[(f+(da<<4)&p)+16>>2]|0)-h+(c[(f+(da<<4)&p)+20>>2]|0)|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;aa=ca+488|0;z=c[(aa&p)>>2]|0;A=c[(ca&p)>>2]|0;c[(aa&p)>>2]=0;g:do if((c[(ca&p)+64>>2]|0)==0&(z|0)!=0){y=c[(z&p)>>2]|0;m=z+20|0;v=c[(m&p)>>2]|0;h:do if(v){u=c[(A&p)+20>>2]|0;if((u|0)>0){s=c[(A&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(v|0))break h;if((r|0)<(u|0))q=r;else{q=r;break}}}else q=0}else q=-1e6;while(0);c[(z&p)+28>>2]=k;x=(k|0)==0;if(!x){s=k;do{c[(s&p)+4>>2]=z;s=c[(s&p)+32>>2]|0}while((s|0)!=0)}c[(_&p)>>2]=y;if(!y)s=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-y&1073741823}c[(_&p)+4>>2]=s;c[($&p)>>2]=ca;w=A+16|0;v=c[(w&p)>>2]|0;c[($&p)+12>>2]=c[(v+(q<<4)&p)>>2];c[($&p)+4>>2]=c[(v+(q<<4)&p)+12>>2];c[($&p)+16>>2]=10720;c[($&p)+20>>2]=_;v=(q|0)==1;c[($&p)+8>>2]=v&1;if(!x)do{if(fr($,c[(k&p)+8>>2]|0)|0){k=0;l=z;break g}if(Gr($,c[(k&p)+20>>2]|0)|0){k=0;l=z;break g}if(Hr($,c[(k&p)+24>>2]|0)|0){k=0;l=z;break g}k=c[(k&p)+32>>2]|0}while((k|0)!=0);if(!(Gr($,c[(z&p)+12>>2]|0)|0)){s=A+145|0;if(!(a[(s&n)>>0]|0)){r=Oq(ca)|0;if(!r){k=0;l=z;break}aa=c[(ca&p)+408>>2]|0;Ar(ca,q);aa=((aa|0)==0?ca:aa)+328|0;c[(aa&p)>>2]=c[(aa&p)>>2]|1<<q;if((h|0)!=0?(t=jw(l|0,0,1,0)|0,t=mh(A,t,G)|0,(t|0)!=0):0){kw(t|0,h|0,l|0)|0;a[(t+l&n)>>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2]|0)+40|0,y,z)|0;if(l){a[(A&n)+65>>0]=1;k=0;break}k=c[(m&p)>>2]|0;if((k|0)==(c[(z&p)+24>>2]|0)){k=bn(k+8|0,c[(z&p)+4>>2]|0,ba)|0;if(!k)k=0;else k=c[(k&p)+8>>2]|0;k=k+64|0;c[(z&p)+32>>2]=c[(k&p)>>2];c[(k&p)>>2]=z;k=0}else k=0}else{k=0;l=z}}else l=z;while(0);jg(A,l);Fk(A,k);break}case 265:{D=f+(da+-7<<4)+16|0;C=da+-6|0;E=f+(C<<4)+16|0;r=c[(f+(da+-5<<4)&p)+16>>2]|0;F=da+-4|0;B=c[(f+(F<<4)&p)+16>>2]|0;F=c[(f+(F<<4)&p)+20>>2]|0;H=c[(f+(da+-2<<4)&p)+16>>2]|0;I=c[(f+(da<<4)&p)+16>>2]|0;k=c[(f+(da+-8<<4)&p)+16>>2]|0;J=c[(ca&p)>>2]|0;z=(c[(f+(da+-10<<4)&p)+16>>2]|0)!=0;do if(z)if(!(c[(f+(C<<4)&p)+20>>2]|0)){c[($&p)>>2]=D;if(!H){s=0;t=0;break}else{v=1;aa=483;break}}else{th(ca,29664,ba);s=0;t=0;break}else{v=er(ca,D,E,$)|0;if((v|0)>-1&(H|0)!=0)aa=483;else{s=0;t=0}}while(0);do if((aa|0)==483){h=J+65|0;if(!(a[(h&n)>>0]|0)){x=J+145|0;if((a[(x&n)>>0]|0)!=0&(v|0)!=1){aa=H+12|0;mg(J,c[(aa&p)>>2]|0);c[(aa&p)>>2]=0}w=Jr(ca,H)|0;if((a[(x&n)>>0]|0)==0?((w|0)!=0?(c[(f+(C<<4)&p)+20>>2]|0)==0:0):0)v=(c[(w&p)+68>>2]|0)==(c[((c[(J&p)+16>>2]|0)&p)+28>>2]|0)?1:v;if((a[(h&n)>>0]|0)==0?(R=c[($&p)>>2]|0,aa=c[(ca&p)>>2]|0,c[(_&p)>>2]=ca,aa=c[(aa&p)+16>>2]|0,c[(_&p)+12>>2]=c[(aa+(v<<4)&p)>>2],c[(_&p)+4>>2]=c[(aa+(v<<4)&p)+12>>2],c[(_&p)+16>>2]=10720,c[(_&p)+20>>2]=R,c[(_&p)+8>>2]=(v|0)==1&1,(Kr(_,H)|0)==0):0){x=Jr(ca,H)|0;if(!x){if((a[(J&n)+144>>0]|0)!=1){s=0;t=0;break}a[(J&n)+146>>0]=1;s=0;t=0;break}if(a[(x&n)+44>>0]&16){th(ca,29712,ba);s=0;t=0;break}t=Wq(J,R)|0;if(t)if(!(Lr(ca,t)|0)){A=J+16|0;aa=bn((c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2]|0)+40|0,t,S)|0;if((aa|0)!=0?(c[(aa&p)+8>>2]|0)!=0:0)if(!k){c[(ba&p)>>2]=R;th(ca,29760,ba);s=0;break}else{Ar(ca,v);s=0;break}y=c[(x&p)>>2]|0;if(!(Fc(y,25568,7)|0)){th(ca,29792,ba);s=ca+64|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;s=0;break}u=c[(x&p)+12>>2]|0;if((u|0)!=0&(r|0)!=49){c[(ba&p)>>2]=(r|0)==35?29872:29880;c[(ba&p)+4>>2]=H;c[(ba&p)+8>>2]=0;th(ca,29832,ba);s=0;break}q=(r|0)==49;if((u|0)==0&q){c[(ba&p)>>2]=H;c[(ba&p)+4>>2]=0;th(ca,29888,ba);s=0;break}m=x+68|0;x=c[(m&p)>>2]|0;i:do if(x){w=c[(J&p)+20>>2]|0;if((w|0)>0){k=c[(A&p)>>2]|0;l=0;while(1){h=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(x|0)){h=l;break i}if((h|0)<(w|0))l=h;else break}}else h=0}else h=-1e6;while(0);x=c[(A&p)>>2]|0;k=c[(x+(h<<4)&p)>>2]|0;if(z)w=c[(x&p)+16>>2]|0;else w=k;x=(h|0)==1;if((Sq(ca,x|z?5:7,t,y,w)|0)==0?(Sq(ca,18,x?13184:13208,0,k)|0)==0:0){s=mh(J,36,0)|0;if(!s){s=0;break}y=s+0|0;k=y+36|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(s&p)>>2]=t;c[(s&p)+4>>2]=kh(J,c[(H&p)+16>>2]|0)|0;c[(s&p)+20>>2]=c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2];c[(s&p)+24>>2]=c[(m&p)>>2];a[(s&n)+8>>0]=B;a[(s&n)+9>>0]=q|(r|0)==35?1:2;c[(s&p)+12>>2]=Mr(J,I,1,0)|0;c[(s&p)+16>>2]=Nr(J,F)|0;c[(ca&p)+488>>2]=s;t=0}else s=0}else s=0;else{s=0;t=0}}else{s=0;t=0}}else{s=0;t=0}}while(0);mg(J,t);Do(J,H);Hk(J,F);Gk(J,I);if(!(c[(ca&p)+488>>2]|0))jg(J,s);if(!(c[(f+(C<<4)&p)+20>>2]|0)){aa=D;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}else{aa=E;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}}case 269:case 266:{c[(ea&p)>>2]=35;break}case 267:{c[(ea&p)>>2]=31;break}case 268:{c[(ea&p)>>2]=49;break}case 284:{l=c[(ca&p)>>2]|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;m=a[(f+(da+-5<<4)&n)+16>>0]|0;q=Or(l,110,f+(da+-4<<4)+16|0)|0;if(q){c[(q&p)+24>>2]=Pr(l,k,1)|0;c[(q&p)+20>>2]=Mr(l,h,1,0)|0;a[(q&n)+1>>0]=m}Nk(l,k);Gk(l,h);c[(ea&p)>>2]=q;break}case 271:case 270:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];c[(ea&p)+4>>2]=0;break}case 272:{c[(ea&p)>>2]=110;c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 296:case 275:{c[(ea&p)>>2]=0;break}case 297:case 276:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 277:{ba=f+(da+-1<<4)+16|0;ca=f+(da+-2<<4)+16|0;c[((c[((c[(ca&p)>>2]|0)&p)+36>>2]|0)&p)+32>>2]=c[(ba&p)>>2];c[((c[(ca&p)>>2]|0)&p)+36>>2]=c[(ba&p)>>2];c[(ea&p)>>2]=c[(ca&p)>>2];break}case 278:{ca=f+(da+-1<<4)+16|0;ba=c[(ca&p)>>2]|0;c[(ba&p)+36>>2]=ba;c[(ea&p)>>2]=c[(ca&p)>>2];break}case 282:{th(ca,20736,ba);break}case 280:{_=f+(da<<4)+16|0;$=c[(_&p)+4>>2]|0;aa=ea;c[(aa&p)>>2]=c[(_&p)>>2];c[(aa&p)+4>>2]=$;th(ca,20640,ba);break}case 283:{th(ca,20824,ba);break}case 286:{h=c[(ca&p)>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;l=Or(h,109,f+(da+-2<<4)+16|0)|0;if(l){c[(l&p)+20>>2]=Mr(h,k,1,0)|0;a[(l&n)+1>>0]=10}Gk(h,k);c[(ea&p)>>2]=l;break}case 287:{l=c[(ca&p)>>2]|0;q=c[(f+(da<<4)&p)+16>>2]|0;h=mh(l,40,0)|0;if(!h){Mk(l,q,1);h=0}else{y=h+0|0;k=y+40|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));a[(h&n)>>0]=119;c[(h&p)+8>>2]=q;a[(h&n)+1>>0]=10}c[(ea&p)>>2]=h;break}case 285:{q=c[(ca&p)>>2]|0;m=c[(f+(da+-1<<4)&p)+16>>2]|0;l=c[(f+(da<<4)&p)+16>>2]|0;k=a[(f+(da+-4<<4)&n)+16>>0]|0;h=Or(q,108,f+(da+-2<<4)+16|0)|0;if(!h)Hk(q,m);else{c[(h&p)+8>>2]=gr(q,l,1)|0;c[(h&p)+28>>2]=m;a[(h&n)+1>>0]=k}Mk(q,l,1);c[(ea&p)>>2]=h;break}case 288:{h=Zq(ca,57,0,0,0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=4;c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 289:{h=Zq(ca,57,0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 290:{c[(ea&p)>>2]=1;break}case 292:{c[(eaea&p)>>2]=0;break}case 324:case 323:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 325:{c[(ea&p)>>2]=cs(ca,0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 326:{c[(ea&p)>>2]=cs(ca,c[(f+(da+-7<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 314:{bs(ca);c[(ca&p)+512>>2]=0;c[(ca&p)+516>>2]=0;break}case 318:case 317:case 316:{l=ca+512|0;k=c[(l&p)>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;if(!k){c[(l&p)>>2]=h;h=c[(f+(da<<4)&p)+20>>2]|0}else h=h+(c[(f+(da<<4)&p)+20>>2]|0)-k|0;c[(ca&p)+516>>2]=h;break}case 77:{c[(ea&p)>>2]=8;break}case 78:{c[(ea&p)>>2]=9;break}case 79:{c[(ea&p)>>2]=6;break}case 80:{c[(ea&p)>>2]=0;break}case 103:case 100:case 98:case 82:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 86:{c[(ea&p)+4>>2]=0;c[(ea&p)>>2]=0;break}case 87:{aa=f+(da+-1<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 90:{c[(ca&p)+324>>2]=0;break}case 109:{h=da+-7|0;r=f+(da+-3<<4)+16|0;q=f+(da+-2<<4)+16|0;x=c[(f+(da<<4)&p)+16>>2]|0;t=c[(f+(da+-6<<4)&p)+16>>2]|0;s=c[(f+(da+-4<<4)&p)+16>>2]|0;c[(I&p)>>2]=0;w=c[(ca&p)>>2]|0;if((c[(ca&p)+440>>2]|0)>0){th(ca,35440,ba);Mk(w,x,1);break a}Uq(ca,r,q,t,1,0,s);l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(c[(ca&p)+64>>2]|0)==0:0){er(ca,r,q,I)|0;t=c[(l&p)+68>>2]|0;p:do if(t){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){s=m;break p}if((s|0)<(r|0))m=s;else break}}else s=0}else s=-1e6;while(0);ba=c[(I&p)>>2]|0;aa=c[(ca&p)>>2]|0;c[(_&p)>>2]=ca;aa=c[(aa&p)+16>>2]|0;c[(_&p)+12>>2]=c[(aa+(s<<4)&p)>>2];c[(_&p)+4>>2]=c[(aa+(s<<4)&p)+12>>2];c[(_&p)+16>>2]=35480;c[(_&p)+20>>2]=ba;c[(_&p)+8>>2]=(s|0)==1&1;if(fr(_,x)|0){Mk(w,x,1);break a}c[(l&p)+12>>2]=gr(w,x,1)|0;Mk(w,x,1);if(a[(w&n)+65>>0]|0)break a;if(!(a[(w&n)+145>>0]|0))hr(ca,l)|0;q=ca+504|0;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;ba=$;c[(ba&p)>>2]=m;c[(ba&p)+4>>2]=q;ba=a[(m&n)>>0]|0;if(!(ba<<24>>24==59|ba<<24>>24==0)){m=m+q|0;c[($&p)>>2]=m}r=$+4|0;c[(r&p)>>2]=0;s=c[(f+(h<<4)&p)+16>>2]|0;q=m-s|0;do{ba=q;q=q+-1|0;l=s+q|0;if((ba|0)<=0)break}while((a[((d[(l&n)>>0]|0)&n)+10368>>0]&1)!=0);c[($&p)>>2]=l;c[(r&p)>>2]=1;Vq(ca,0,$,0,0);break a}Mk(w,x,1);break}case 93:{_q(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,0);break}case 94:{$q(ca,0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 95:{ar(ca,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 96:{br(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-3<<4)+16|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(q=c[(l&p)+16>>2]|0,(q|0)!=0):0)a[(q&n)+24>>0]=k;break}case 99:{c[(ea&p)>>2]=10;break}case 101:{a[(ea&n)>>0]=10;break}case 102:{a[(ea&n)>>0]=c[(f+(da<<4)&p)+16>>2];break}case 104:{c[(ea&p)>>2]=4;break}case 105:{c[(ea&p)>>2]=5;break}case 106:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 110:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,1,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 111:{c[(z&p)>>2]=c[5124];c[(z&p)+4>>2]=c[5125];c[(z&p)+8>>2]=c[5126];c[(z&p)+12>>2]=c[5127];c[(z&p)+16>>2]=c[5128];ba=f+(da<<4)+16|0;ir(ca,c[(ba&p)>>2]|0,z)|0;Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 112:{t=c[(f+(da<<4)&p)+16>>2]|0;do if(t){c[(t&p)+68>>2]=c[(f+(da+-1<<4)&p)+16>>2];l=c[(t&p)+52>>2]|0;if(l){m=128;q=1;r=t;s=0;while(1){c[(r&p)+56>>2]=s;$=r+6|0;aa=e[($&o)>>1]|64;b[($&o)>>1]=aa;m=aa&m;if(!l)break;aa=l;l=c[(l&p)+52>>2]|0;q=q+1|0;s=r;r=aa}if(m){ca=t+6|0;b[(ca&o)>>1]=e[(ca&o)>>1]|256;break}aa=c[((c[(ca&p)>>2]|0)&p)+104>>2]|0;if((aa|0)>0&(q|0)>(aa|0))th(ca,20520,ba)}}else Qn(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);while(0);c[(ea&p)>>2]=t;break}case 116:{c[(ea&p)>>2]=116;break}case 119:case 113:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 114:{h=c[(f+(da<<4)&p)+16>>2]|0;do if(h){if(c[(h&p)+52>>2]|0){c[(l&p)+4>>2]=0;h=kr(ca,0,jr(ca,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){aa=192;break}}ba=c[(f+(da+-1<<4)&p)+16>>2]|0;a[(h&n)+4>>0]=ba;c[(h&p)+52>>2]=c[(f+(da+-2<<4)&p)+16>>2];if((ba|0)!=116)a[(ca&n)+22>>0]=1}else aa=192;while(0);if((aa|0)==192){Mk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,1);h=0}c[(ea&p)>>2]=h;break}case 121:{h=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}else{a[(h&n)+4>>0]=116;c[(h&p)+52>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)>>2]=h;break a}}case 122:{b[(ea&o)>>1]=1;break}case 124:case 123:{b[(ea&o)>>1]=0;break}case 242:case 236:case 161:case 154:case 126:{c[(ea&p)>>2]=0;break}case 243:case 125:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 167:{c[(ea&p)>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 168:{c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 169:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}ba=f+(da+-2<<4)+16|0;or(ca,c[(ba&p)>>2]|0,f+(da+-1<<4)+16|0);rr(ca,c[(ba&p)>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 176:{h=c[(f+(da+-6<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 173:{ba=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 174:{ba=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 175:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,d[(f+(da+-4<<4)&n)+16>>0]|0);break}case 181:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,f+(da<<4)+16|0)|0;break}case 182:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,0,f+(da<<4)+16|0)|0;break}case 183:{ca=f+(da<<4)+16|0;c[(ea&p)>>2]=c[(ca&p)>>2];c[(ea&p)+4>>2]=c[(ca&p)+4>>2];c[(ea&p)+8>>2]=c[(ca&p)+8>>2];break}case 177:{a[(ea&n)>>0]=a[(f+(da<<4)&n)+16>>0]|0;break}case 178:{a[(ea&n)>>0]=5;break}case 184:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 191:case 190:case 185:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 187:case 186:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,27,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 188:{aa=f+(da+-2<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,27,0,0,ba)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 189:{aa=f+(da+-4<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,Zq(ca,27,0,0,ba)|0,0)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 192:{x=f+(da<<4)+16|0;w=f+(da<<4)+20|0;do if(((c[(w&p)>>2]|0)>>>0>1?(C=c[(x&p)>>2]|0,(a[(C&n)>>0]|0)==35):0)?((d[(C&n)+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[(ca&n)+18>>0]|0)){c[(ba&p)>>2]=x;th(ca,20432,ba);c[(ea&p)>>2]=0;break}r=Zq(ca,159,0,0,x)|0;c[(ea&p)>>2]=r;if(r)Dn((c[(x&p)>>2]|0)+1|0,r+28|0)|0}else aa=298;while(0);q:do if((aa|0)==298?(P=Zq(ca,135,0,0,x)|0,c[(ea&p)>>2]=P,W=c[(x&p)>>2]|0,c[(ea&p)+4>>2]=W,c[(ea&p)+8>>2]=W+(c[(w&p)>>2]|0),W=c[(ca&p)>>2]|0,(P|0)!=0):0){z=c[(P&p)+8>>2]|0;r=z+1|0;do if(a[(r&n)>>0]|0){y=(z|0)==0;if(y)A=0;else{t=z;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;A=t-z&1073741823}r:do if((a[(z&n)>>0]|0)==63){$=Ul(r,H,A+-1|0,1)|0;m=H;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=q&65535;b[(P&o)+32>>1]=t;r=c[(W&p)+124>>2]|0;aa=((r|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&q>>>0<1|($|0)!=0|((m|0)>(aa|0)|(m|0)==(aa|0)&q>>>0>r>>>0)){c[(ba&p)>>2]=r;th(ca,33296,ba);t=0}r=ca+440|0;aa=c[(r&p)>>2]|0;$=((aa|0)<0)<<31>>31;if((m|0)>($|0)|(m|0)==($|0)&q>>>0>aa>>>0)c[(r&p)>>2]=q}else{r=c[(ca&p)+444>>2]|0;s:do if((r|0)>0){q=c[(ca&p)+472>>2]|0;t=0;l=0;while(1){m=c[(q+(t<<2)&p)>>2]|0;if((m|0)!=0?(_v(m,z)|0)==0:0)break;l=l+1<<16>>16;t=l<<16>>16;if((t|0)>=(r|0)){aa=315;break s}}t=t+1&65535;r=P+32|0;b[(r&o)>>1]=t;if(t<<16>>16)break r}else aa=315;while(0);if((aa|0)==315)r=P+32|0;aa=ca+440|0;t=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=t;t=t&65535;b[(r&o)>>1]=t}while(0);m=t<<16>>16;if(t<<16>>16>0){t=ca+444|0;if((m|0)>(c[(t&p)>>2]|0)){r=ca+472|0;q=ro(W,c[(r&p)>>2]|0,m<<2,0)|0;if(!q)break q;c[(r&p)>>2]=q;aa=c[(t&p)>>2]|0;fw(q+(aa<<2)|0,0,m-aa<<2|0)|0;c[(t&p)>>2]=m}if((a[(z&n)>>0]|0)==63){r=m+-1|0;if(!(c[((c[(ca&p)+472>>2]|0)+(r<<2)&p)>>2]|0))t=0;else break}else{t=m+-1|0;r=t;t=c[((c[(ca&p)+472>>2]|0)+(t<<2)&p)>>2]|0}q=ca+472|0;mg(W,t);if(!y?(s=jw(A|0,0,1,0)|0,s=mh(W,s,G)|0,(s|0)!=0):0){kw(s|0,z|0,A|0)|0;a[(s+A&n)>>0]=0}else s=0;c[((c[(q&p)>>2]|0)+(r<<2)&p)>>2]=s}}else{$=ca+440|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;b[(P&o)+32>>1]=aa}while(0);if((c[(ca&p)+64>>2]|0)==0?(c[(ca&p)+440>>2]|0)>(c[(W&p)+124>>2]|0):0)th(ca,33344,ba)}while(0);ca=c[(x&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(w&p)>>2]|0);break}case 196:{ba=f+(da+-3<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 197:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 193:{aa=da+-2|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=vr(ca,c[(f+(aa<<4)&p)+16>>2]|0,ba,1)|0;c[(ea&p)+4>>2]=c[(f+(aa<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 194:{c[(ea&p)>>2]=Zq(ca,38,c[(f+(da+-3<<4)&p)+16>>2]|0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 195:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+112>>2]|0)){c[(ba&p)>>2]=f+(da+-4<<4)+16;th(ca,20576,ba);h=c[(l&p)>>2]|0}}else h=0;ba=f+(da+-4<<4)+16|0;h=wr(ca,h,ba)|0;c[(ea&p)>>2]=h;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);if(!((h|0)==0?1:(b[(f+(da+-2<<4)&o)+16>>1]|0)==0)){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da+-1<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 206:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=0;break}case 207:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=1;break}case 208:{l=da+-2|0;ba=da+-1|0;h=wr(ca,lr(ca,lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 210:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(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<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 211:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,77,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 212:{$=da+-2|0;aa=f+(da<<4)+16|0;ba=Zq(ca,73,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,76);break}case 213:{$=da+-3|0;aa=f+(da<<4)+16|0;ba=Zq(ca,148,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,77);break}case 215:case 214:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(ba<<4)&n)+14>>0]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 216:{c[(ea&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 217:{c[(ea&p)>>2]=Zq(ca,158,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 220:{k=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;l=da+-4|0;h=Zq(ca,74,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Nk(c[(ca&p)>>2]|0,k);else c[(h&p)+20>>2]=k;if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,c[(ea&p)>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 224:{h=Zq(ca,119,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=c[(ea&p)>>2]|0;aa=ba+4|0;c[(aa&p)>>2]=c[(aa&p)>>2]|2099200;yr(ca,ba)}c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 118:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,c[(f+(da+-5<<4)&p)+16>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,b[(f+(da+-7<<4)&o)+16>>1]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+20>>2]|0)|0;break}case 120:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 127:{l=da+-1|0;q=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(l<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=q;if(c[(f+(da<<4)&p)+20>>2]|0)mr(ca,q,f+(da<<4)+16|0,1);s=c[(ca&p)>>2]|0;if(q){r=(c[(q&p)+4>>2]|0)+(((c[(q&p)>>2]|0)+-1|0)*20|0)+8|0;mg(s,c[(r&p)>>2]|0);m=c[(f+(l<<4)&p)+20>>2]|0;q=(c[(f+(l<<4)&p)+24>>2]|0)-m|0;if((m|0)!=0?(h=jw(q|0,((q|0)<0)<<31>>31|0,1,0)|0,h=mh(s,h,G)|0,(h|0)!=0):0){kw(h|0,m|0,q|0)|0;a[(h+q&n)>>0]=0}else h=0;c[(r&p)>>2]=h}break}case 133:{l=mh(c[(ca&p)>>2]|0,80,0)|0;if(l){y=l+0|0;k=y+80|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0))}c[(ea&p)>>2]=l;break}case 134:{q=c[(f+(da<<4)&p)+16>>2]|0;c[(ea&p)>>2]=q;if(q){l=c[(q&p)>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[(q+(k*72|0)&n)+44>>0]=a[(q+((l+-2|0)*72|0)&n)+44>>0]|0;l=k+-1|0;if((l|0)>0){ca=k;k=l;l=ca}else break}a[(q&n)+44>>0]=0}break}case 128:{aa=c[(ca&p)>>2]|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;ba=nr(aa,116,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,ba)|0;break}case 132:{c[(eaea&p)>>2]=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,ba)|0;break}case 136:{c[(ea&p)>>2]=0;break}case 137:{ba=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;or(ca,ba,f+(da+-2<<4)+16|0);break}case 135:{h=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=h;if((h|0)!=0?(w=c[(h&p)>>2]|0,(w|0)>0):0)a[(h+((w+-1|0)*72|0)&n)+44>>0]=c[(f+(da<<4)&p)+16>>2];break}case 138:{c[(ea&p)>>2]=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,0,0,f+(da+-2<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 139:{l=f+(da+-6<<4)+16|0;q=c[(l&p)>>2]|0;if((((q|0)==0?(c[(f+(da+-2<<4)&p)+20>>2]|0)==0:0)?(c[(f+(da+-1<<4)&p)+16>>2]|0)==0:0)?(c[(f+(da<<4)&p)+16>>2]|0)==0:0){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}s=f+(da+-4<<4)+16|0;k=c[(s&p)>>2]|0;r=c[(k&p)>>2]|0;if((r|0)==1){l=jr(ca,q,0,0,f+(da+-2<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=l;if(l){_=(c[(l&p)>>2]|0)+-1|0;ba=c[(s&p)>>2]|0;aa=ba+16|0;c[(l+(_*72|0)&p)+16>>2]=c[(aa&p)>>2];$=ba+12|0;c[(l+(_*72|0)&p)+12>>2]=c[($&p)>>2];ba=ba+28|0;c[(l+(_*72|0)&p)+28>>2]=c[(ba&p)>>2];c[($&p)>>2]=0;c[(aa&p)>>2]=0;c[(ba&p)>>2]=0}Do(c[(ca&p)>>2]|0,c[(s&p)>>2]|0);break a}if(k){m=r+-1|0;if((m|0)>0){q=r;while(1){a[(k+(m*72|0)&n)+44>>0]=a[(k+((q+-2|0)*72|0)&n)+44>>0]|0;q=m+-1|0;if((q|0)>0){ba=m;m=q;q=ba}else break}}a[(k&n)+44>>0]=0}ba=kr(ca,0,k,0,0,0,0,512,0,0)|0;c[(ea&p)>>2]=jr(ca,c[(l&p)>>2]|0,0,0,f+(da+-2<<4)+16|0,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 149:case 140:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 144:{c[(ea&p)>>2]=qr(ca,f+(da+-1<<4)+16|0,0,0)|0;break}case 145:{c[(ea&p)>>2]=qr(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,0)|0;break}case 146:{c[(ea&p)>>2]=qr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[(ea&p)>>2]=0;break}case 151:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=1;break}case 143:{c[(ea&p)>>2]=1;break}case 142:{c[(ea&p)>>2]=pr(c[(ca&p)>>2]|0,0,f+(da+-1<<4)+16|0,f+(da<<4)+16|0)|0;break}case 157:{h=lr(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if((h|0)!=0?(k=c[(h&p)+4>>2]|0,(k|0)!=0):0)a[(k&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 160:case 158:{c[(ea&p)>>2]=0;break}case 159:{c[(ea&p)>>2]=1;break}case 165:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 166:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=0;break}case 179:case 153:{c[(ea&p)>>2]=0;break}case 180:case 152:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 172:{l=c[(f+(da+-7<<4)&p)+16>>2]|0;if(l){aa=ca+532|0;c[(l&p)+4>>2]=c[(aa&p)>>2];c[(aa&p)>>2]=l;a[(ca&n)+449>>0]=1}m=f+(da+-4<<4)+16|0;or(ca,c[(m&p)>>2]|0,f+(da+-3<<4)+16|0);q=f+(da+-1<<4)+16|0;l=c[(q&p)>>2]|0;if(l){if((c[(l&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20560;th(ca,34544,ba);l=c[(q&p)>>2]|0}}else l=0;sr(ca,c[(m&p)>>2]|0,l,c[(f+(da<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 235:case 162:case 155:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 156:{h=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if(h)a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 7:{a[(ca&n)+450>>0]=2;c[(ca&p)+440>>2]=0;break}case 23:{Tq(ca,1,f+(da<<4)+16|0);break}case 24:{Tq(ca,2,f+(da<<4)+16|0);break}case 26:{Uq(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}default:{}}while(0);h=a[(g<<1&n)+20912>>0]|0;r=h&255;q=a[(g<<1&n)+20913>>0]|0;m=q&255;s=(c[(f&p)>>2]|0)-m|0;c[(f&p)>>2]=s;l=b[((b[(e[(f+(da-m<<4)&o)+12>>1]<<1&o)+21568>>1]|0)+r<<1&o)+22184>>1]|0;k=l&65535;do if((l&65535)<642)if(!(q<<24>>24)){kq(f,k,r,ea);break}else{c[(f&p)>>2]=s+1;da=1-m+da|0;b[(f+(da<<4)&o)+12>>1]=l;a[(f+(da<<4)&n)+14>>0]=h;da=f+(da<<4)+16|0;c[(da&p)>>2]=c[(ea&p)>>2];c[(da&p)+4>>2]=c[(ea&p)+4>>2];c[(da&p)+8>>2]=c[(ea&p)+8>>2];break}else{h=c[(ga&p)>>2]|0;if((s|0)>-1)do Pn(f);while((c[(f&p)>>2]|0)>-1);c[(ga&p)>>2]=h}while(0);i=ha;return}function nq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0;da=i;i=i+64|0;if((i|0)>=(j|0))fa();ca=da+8|0;Z=da;q=da+24|0;h=da+16|0;l=xq(e,0,h)|0;do if(!l){if(c[(h&p)>>2]|0){l=ds(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){ba=e+43|0;k=(a[(ba&n)>>0]|0)==0;do if(!(a[(e&n)+46>>0]&2)){if(k?(m=e+4|0,aa=c[(m&p)>>2]|0,ac[c[((c[(aa&p)>>2]|0)&p)+40>>2]&63](aa,24,0)|0,m=c[(m&p)>>2]|0,m=pc[c[((c[(m&p)>>2]|0)&p)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}aa=e+44|0;a[(aa&n)>>0]=1;k=xq(e,0,h)|0;if(!k){h=ds(e,f)|0;if(!h){h=0;g=0}else{$=d[(e&n)+45>>0]|0;_=$+1|0;$=7-$|0;if(!((a[(ba&n)>>0]|0)==0?(g=c[(e&p)+4>>2]|0,g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,_,$,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(k|0));T=e+8|0;g=c[(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[(q&n)+30>>0]<<8|d[(q&n)+31>>0]|0)){l=0;g=0;break}if((d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0]|0)!=3007e3){c[(ca&p)>>2]=49983;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14;break a}w=l+24|0;U=Tc(w)|0;if(!U){g=7;break a}x=U+24|0;y=((w|0)<0)<<31>>31;q=jw(w|0,y|0,32,0)|0;m=G;R=Z;Q=c[(R&p)+4>>2]|0;c:do if(!((m|0)>(Q|0)|((m|0)==(Q|0)?q>>>0>(c[(R&p)>>2]|0)>>>0:0))){z=U+8|0;A=U+1|0;B=U+2|0;C=U+3|0;D=U+16|0;E=U+17|0;F=U+18|0;H=U+19|0;I=U+20|0;J=U+21|0;K=U+22|0;L=U+23|0;M=U+4|0;N=U+5|0;O=U+6|0;P=U+7|0;Q=e+68|0;R=e+72|0;u=(k>>>16|g)&65535;v=e+66|0;r=32;k=0;l=0;s=0;t=1;while(1){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,U,w,r,k)|0;if(g){k=36;break}if(Zv(X,z,8)|0){g=s;k=37;break}k=d[(A&n)>>0]<<16|d[(U&n)>>0]<<24|d[(B&n)>>0]<<8|d[(C&n)>>0];if(!k){g=s;k=37;break}r=(a[(V&n)>>0]|0)==0&1;yq(r,U,8,Y,Y);yq(r,x,c[(W&p)>>2]|0,Y,Y);if((c[(Y&p)>>2]|0)!=(d[(E&n)>>0]<<16|d[(D&n)>>0]<<24|d[(F&n)>>0]<<8|d[(H&n)>>0]|0)){g=s;k=37;break}if((c[(S&p)>>2]|0)!=(d[(J&n)>>0]<<16|d[(I&n)>>0]<<24|d[(K&n)>>0]<<8|d[(L&n)>>0]|0)){g=s;break c}r=d[(N&n)>>0]<<16|d[(M&n)>>0]<<24|d[(O&n)>>0]<<8|d[(P&n)>>0];g=_o(e,t,k)|0;if(g){k=36;break}if(!r)g=s;else{c[(Q&p)>>2]=t;c[(R&p)>>2]=r;b[(v&o)>>1]=u;l=c[(Y&p)>>2]|0;g=c[(S&p)>>2]|0}k=jw(q|0,m|0,w|0,y|0)|0;r=G;s=Z;ea=c[(s&p)+4>>2]|0;if((r|0)>(ea|0)|((r|0)==(ea|0)?k>>>0>(c[(s&p)>>2]|0)>>>0:0))break c;else{ga=m;ea=q;q=k;m=r;s=g;t=t+1|0;k=ga;r=ea(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<<m;k=l+328|0;c[(k&p)>>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,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0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0}
12 function ir(f,g,h){f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0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(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)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|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A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0<da>>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&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(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,eaea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<<m;E=E+20|0;a[(E&n)>>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(eaea&p)>>2]&1|0)==0|(r|0)>31)){if(1<<r&y)break;wh(V,28,0,r+M|0,0)|0;break i}while(0);nt(V,ka,t,r,r+M|0)}while(0);r=r+1|0}while((r|0)<(b[(ja&o)>>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<<r;$=$+20|0;a[($&n)>>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v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&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!eaea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<<g,js(a,g),n=yh(m,9,29624)|0,xh(m,n+1|0,c[(b&p)>>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<<d;vs(b,e,-1);break}}}while(0);i=m;return}function Tr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return}
13 function gh(f){f=f|0;var g=0,l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0.0,C=0,D=0.0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,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))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;x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[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(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>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0<M>>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea
14 function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16<b<<16>>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1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;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(eaea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(eaf>>>0>=m>>>0))Ob();c[(f&p)+12>>2]=u;c[(e&p)>>2]=u;c[(u&p)+8>>2]=f;c[(u&p)+12>>2]=d;c[(u&p)+24>>2]=0;return}function cw(){}function dw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=b-d-(c>>>0>a>>>0|0)>>>0;return (G=b,a-c>>>0|0)|0}function ew(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){G=b>>c;return a>>>c|(b&(1<<c)-1)<<32-c}G=(b|0)<0?-1:0;return b>>c-32|0}function fw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=b+e|0;if((e|0)>=20){d=d&255;h=b&3;i=d|d<<8|d<<16|d<<24;g=f&~3;if(h){h=b+4-h|0;while((b|0)<(h|0)){a[(b&n)>>0]=d;b=b+1|0}}while((b|0)<(g|0)){c[(b&p)>>2]=i;b=b+4|0}}while((b|0)<(f|0)){a[(b&n)>>0]=d;b=b+1|0}return b-e|0}function gw(b){b=b|0;var c=0;c=b;while(a[(c&n)>>0]|0)c=c+1|0;return c-b|0}function hw(b,c){b=b|0;c=c|0;var d=0,e=0;e=b+(gw(b)|0)|0;do{a[(e+d&n)>>0]=a[(c+d&n)>>0];d=d+1|0}while(a[(c+(d-1)&n)>>0]|0);return b|0}function iw(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){G=b<<c|(a&(1<<c)-1<<32-c)>>>32-c;return a<<c}G=a<<c-32;return 0}function jw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=a+c>>>0;return (G=b+d+(c>>>0<a>>>0|0)>>>0,c|0)|0}function kw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;if((e|0)>=4096)return ub(b|0,d|0,e|0)|0;f=b|0;if((b&3)==(d&3)){while(b&3){if(!e)return f|0;a[(b&n)>>0]=a[(d&n)>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[(b&p)>>2]=c[(d&p)>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[(b&n)>>0]=a[(d&n)>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function lw(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if((c|0)<(b|0)&(b|0)<(c+d|0)){e=b;c=c+d|0;b=b+d|0;while((d|0)>0){b=b-1|0;c=c-1|0;d=d-1|0;a[(b&n)>>0]=a[(c&n)>>0]|0}b=e}else kw(b,c,d)|0;return b|0}function mw(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){G=b>>>c;return a>>>c|(b&(1<<c)-1)<<32-c}G=0;return b>>>c-32|0}function nw(a){a=a|0;return (a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>>24|0}function ow(b){b=b|0;var c=0;c=a[(m+(b&255)&n)>>0]|0;if((c|0)<8)return c|0;c=a[(m+(b>>8&255)&n)>>0]|0;if((c|0)<8)return c+8|0;c=a[(m+(b>>16&255)&n)>>0]|0;if((c|0)<8)return c+16|0;return (a[(m+(b>>>24)&n)>>0]|0)+24|0}function pw(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=a&65535;d=b&65535;c=ca(d,f)|0;e=a>>>16;d=(c>>>16)+(ca(d,e)|0)|0;b=b>>>16;a=ca(b,f)|0;return (G=(d>>>16)+(ca(b,e)|0)+(((d&65535)+a|0)>>>16)|0,d+a<<16|c&65535|0)|0}function qw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=b>>31|((b|0)<0?-1:0)<<1;i=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;f=d>>31|((d|0)<0?-1:0)<<1;e=((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1;h=dw(j^a,i^b,j,i)|0;g=G;b=f^j;a=e^i;a=dw((vw(h,g,dw(f^c,e^d,f,e)|0,G,0)|0)^b,G^a,b,a)|0;return a|0}function rw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+8|0;j=f|0;h=b>>31|((b|0)<0?-1:0)<<1;g=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;l=e>>31|((e|0)<0?-1:0)<<1;k=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;b=dw(h^a,g^b,h,g)|0;a=G;vw(b,a,dw(l^d,k^e,l,k)|0,G,j)|0;a=dw(c[(j&p)>>2]^h,c[(j&p)+4>>2]^g,h,g)|0;b=G;i=f;return (G=b,a)|0}function sw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;f=c;a=pw(e,f)|0;c=G;return (G=(ca(b,f)|0)+(ca(d,e)|0)+c|c&0,a|0|0)|0}function tw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=vw(a,b,c,d,0)|0;return a|0}function uw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+8|0;f=g|0;vw(a,b,d,e,f)|0;i=g;return (G=c[(f&p)+4>>2]|0,c[(f&p)>>2]|0)|0}function vw(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,q=0;n=a;l=b;m=l;k=d;o=e;i=o;if(!m){g=(f|0)!=0;if(!i){if(g){c[(f&p)>>2]=(n>>>0)%(k>>>0);c[(f&p)+4>>2]=0}l=0;m=(n>>>0)/(k>>>0)>>>0;return (G=l,m)|0}else{if(!g){l=0;m=0;return (G=l,m)|0}c[(f&p)>>2]=a|0;c[(f&p)+4>>2]=b&0;l=0;m=0;return (G=l,m)|0}}j=(i|0)==0;do if(k){if(!j){h=(ea(i|0)|0)-(ea(m|0)|0)|0;if(h>>>0<=31){g=h+1|0;l=31-h|0;k=h-31>>31;i=g;j=n>>>(g>>>0)&k|m<<l;k=m>>>(g>>>0)&k;g=0;h=n<<l;break}if(!f){l=0;m=0;return (G=l,m)|0}c[(f&p)>>2]=a|0;c[(f&p)+4>>2]=l|b&0;l=0;m=0;return (G=l,m)|0}j=k-1|0;if(j&k){h=(ea(k|0)|0)+33-(ea(m|0)|0)|0;q=64-h|0;l=32-h|0;a=l>>31;b=h-32|0;k=b>>31;i=h;j=l-1>>31&m>>>(b>>>0)|(m<<l|n>>>(h>>>0))&k;k=k&m>>>(h>>>0);g=n<<q&a;h=(m<<q|n>>>(b>>>0))&a|n<<l&h-33>>31;break}if(f){c[(f&p)>>2]=j&n;c[(f&p)+4>>2]=0}if((k|0)==1){l=l|b&0;m=a|0|0;return (G=l,m)|0}else{a=ow(k|0)|0;l=m>>>(a>>>0)|0;m=m<<32-a|n>>>(a>>>0)|0;return (G=l,m)|0}}else{if(j){if(f){c[(f&p)>>2]=(m>>>0)%(k>>>0);c[(f&p)+4>>2]=0}l=0;m=(m>>>0)/(k>>>0)>>>0;return (G=l,m)|0}if(!n){if(f){c[(f&p)>>2]=0;c[(f&p)+4>>2]=(m>>>0)%(i>>>0)}l=0;m=(m>>>0)/(i>>>0)>>>0;return (G=l,m)|0}j=i-1|0;if(!(j&i)){if(f){c[(f&p)>>2]=a|0;c[(f&p)+4>>2]=j&m|b&0}l=0;m=m>>>((ow(i|0)|0)>>>0);return (G=l,m)|0}h=(ea(i|0)|0)-(ea(m|0)|0)|0;if(h>>>0<=30){k=h+1|0;h=31-h|0;i=k;j=m<<h|n>>>(k>>>0);k=m>>>(k>>>0);g=0;h=n<<h;break}if(!f){l=0;m=0;return (G=l,m)|0}c[(f&p)>>2]=a|0;c[(f&p)+4>>2]=l|b&0;l=0;m=0;return (G=l,m)|0}while(0);if(!i){l=h;i=0;h=0}else{m=d|0|0;l=o|e&0;b=jw(m,l,-1,-1)|0;a=G;d=h;h=0;do{q=d;d=g>>>31|d<<1;g=h|g<<1;q=j<<1|q>>>31|0;o=j>>>31|k<<1|0;dw(b,a,q,o)|0;n=G;e=n>>31|((n|0)<0?-1:0)<<1;h=e&1;j=dw(q,o,e&m,(((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1)&l)|0;k=G;i=i-1|0}while((i|0)!=0);l=d;i=0}d=0;if(f){c[(f&p)>>2]=j;c[(f&p)+4>>2]=k}l=(g|0)>>>31|(l|d)<<1|(d<<1|g>>>31)&0|i;m=(g<<1|0>>>31)&-2|h;return (G=l,m)|0}function ww(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;return $b[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function xw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ac[a&63](b|0,c|0,d|0)|0}function yw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;bc[a&1](b|0,c|0,d|0,e|0,f|0,g|0)}function zw(a,b){a=a|0;b=b|0;cc[a&31](b|0)}function Aw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;dc[a&1](b|0,c|0,d|0,e|0,f|0)}function Bw(a,b,c){a=a|0;b=b|0;c=c|0;return +ec[a&1](b|0,c|0)}function Cw(a,b,c){a=a|0;b=b|0;c=+c;fc[a&1](b|0,+c)}function Dw(a,b){a=a|0;b=b|0;return +gc[a&1](b|0)}function Ew(a){a=a|0;return hc[a&7]()|0}function Fw(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;return ic[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)|0}function Gw(a,b,c){a=a|0;b=b|0;c=c|0;jc[a&15](b|0,c|0)}function Hw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;return kc[a&7](b|0,c|0,d|0,e|0,f|0,g|0)|0}function Iw(a,b){a=a|0;b=b|0;return lc[a&127](b|0)|0}function Jw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;mc[a&63](b|0,c|0,d|0)}function Kw(a){a=a|0;nc[a&3]()}function Lw(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;return oc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)|0}function Mw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return pc[a&31](b|0,c|0,d|0,e|0)|0}function Nw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;qc[a&15](b|0,c|0,d|0,e|0)}function Ow(a,b,c){a=a|0;b=b|0;c=c|0;return rc[a&127](b|0,c|0)|0}function Pw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return sc[a&1](b|0,c|0,+d)|0}function Qw(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 tc[a&31](b|0,c|0,d|0,e|0,f|0)|0}function Rw(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;ha(0);return 0}function Sw(a,b,c){a=a|0;b=b|0;c=c|0;ia(1);return 0}function Tw(a,b,c){a=a|0;b=b|0;c=c|0;return tb(a|0,b|0,c|0)|0}function Uw(a,b,c){a=a|0;b=b|0;c=c|0;return Yb(a|0,b|0,c|0)|0}function Vw(a,b,c){a=a|0;b=b|0;c=c|0;return Fb(a|0,b|0,c|0)|0}function Ww(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ja(2)}function Xw(a){a=a|0;ka(3)}function Yw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;la(4)}function Zw(a,b){a=a|0;b=b|0;ma(5);return 0.0}function _w(a,b){a=a|0;b=+b;na(6)}function $w(a){a=a|0;oa(7);return 0.0}function ax(){pa(8);return 0}function bx(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;qa(9);return 0}function cx(a,b){a=a|0;b=b|0;ra(10)}function dx(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;sa(11);return 0}function ex(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 Ub(a|0,b|0,c|0,d|0,e|0,f|0)|0}function fx(a){a=a|0;ta(12);return 0}function gx(a){a=a|0;return Xb(a|0)|0}function hx(a){a=a|0;return vb(a|0)|0}function ix(a){a=a|0;return hb(a|0)|0}function jx(a,b,c){a=a|0;b=b|0;c=c|0;ua(13)}function kx(){va(14)}function lx(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;wa(15);return 0}function mx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;xa(16);return 0}function nx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ya(17)}function ox(a,b){a=a|0;b=b|0;za(18);return 0}function px(a,b){a=a|0;b=b|0;return eb(a|0,b|0)|0}function qx(a,b){a=a|0;b=b|0;return Wb(a|0,b|0)|0}function rx(a,b){a=a|0;b=b|0;return Ib(a|0,b|0)|0}function sx(a,b){a=a|0;b=b|0;return fb(a|0,b|0)|0}function tx(a,b){a=a|0;b=b|0;return zb(a|0,b|0)|0}function ux(a,b){a=a|0;b=b|0;return xb(a|0,b|0)|0}function vx(a,b){a=a|0;b=b|0;return Ab(a|0,b|0)|0}function wx(a,b){a=a|0;b=b|0;return Tb(a|0,b|0)|0}function xx(a,b,c){a=a|0;b=b|0;c=+c;Aa(19);return 0}function yx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Ba(20);return 0}