// This prevents pollution of the global namespace var SQL = (function () { function e(a){throw a;}var g=void 0,k=!0,l=null,m=!1;function n(){return function(){}}var q,r;r||(r=eval("(function() { try { return Module || {} } catch(e) { return {} } })()"));var aa={},ba;for(ba in r)r.hasOwnProperty(ba)&&(aa[ba]=r[ba]);var s="object"===typeof process&&"function"===typeof require,da="object"===typeof window,ea="function"===typeof importScripts,ga=!da&&!s&&!ea; if(s){r.print||(r.print=function(a){process.stdout.write(a+"\n")});r.printErr||(r.printErr=function(a){process.stderr.write(a+"\n")});var ha=require("fs"),ia=require("path");r.read=function(a,b){var a=ia.normalize(a),c=ha.readFileSync(a);!c&&a!=ia.resolve(a)&&(a=path.join(__dirname,"..","src",a),c=ha.readFileSync(a));c&&!b&&(c=c.toString());return c};r.readBinary=function(a){return r.read(a,k)};r.load=function(a){ja(read(a))};r.thisProgram=1 0) var gc = undefined")):da||ea?(r.read=function(a){var b=new XMLHttpRequest;b.open("GET",a,m);b.send(l);return b.responseText},"undefined"!=typeof arguments&&(r.arguments=arguments),"undefined"!==typeof console?(r.print||(r.print=function(a){console.log(a)}),r.printErr||(r.printErr=function(a){console.log(a)})):r.print||(r.print= n()),da?window.Module=r:r.load=importScripts):e("Unknown runtime environment. Where are we?");function ja(a){eval.call(l,a)}!r.load&&r.read&&(r.load=function(a){ja(r.read(a))});r.print||(r.print=n());r.printErr||(r.printErr=r.print);r.arguments||(r.arguments=[]);r.thisProgram||(r.thisProgram="./this.program");r.print=r.print;r.Ca=r.printErr;r.preRun=[];r.postRun=[];for(ba in aa)aa.hasOwnProperty(ba)&&(r[ba]=aa[ba]); var w={Lf:function(a){la=a},Ye:function(){return la},Xb:function(){return v},Wb:function(a){v=a},qd:function(a){switch(a){case "i1":case "i8":return 1;case "i16":return 2;case "i32":return 4;case "i64":return 8;case "float":return 4;case "double":return 8;default:return"*"===a[a.length-1]?w.wa:"i"===a[0]?(a=parseInt(a.substr(1)),u(0===a%8),a/8):0}},Ve:function(a){return Math.max(w.qd(a),w.wa)},ei:16,zi:function(a,b,c){return!c&&("i64"==a||"double"==a)?8:!a?Math.min(b,8):Math.min(b||(a?w.Ve(a):0), w.wa)},ib:function(a,b,c){return c&&c.length?(c.splice||(c=Array.prototype.slice.call(c)),c.splice(0,0,b),r["dynCall_"+a].apply(l,c)):r["dynCall_"+a].call(l,b)},Mb:[],ge:function(a){for(var b=0;b=oa&&ma("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+oa+", (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.");return b},ec:function(a,b){return Math.ceil(a/(b?b:16))*(b?b:16)},Qi:function(a,b,c){return c?+(a>>>0)+4294967296*+(b>>>0):+(a>>>0)+4294967296* +(b|0)},Ab:8,wa:4,ki:0};r.Runtime=w;w.addFunction=w.ge;w.removeFunction=w.Gf;var pa=m,qa,ra,la;function u(a,b){a||ma("Assertion failed: "+b)}function sa(a){var b=r["_"+a];if(!b)try{b=eval("_"+a)}catch(c){}u(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)");return b}var ta,va; (function(){function a(a){a=a.toString().match(d).slice(1);return{arguments:a[0],body:a[1],returnValue:a[2]}}var b={stackSave:function(){w.Xb()},stackRestore:function(){w.Wb()},arrayToC:function(a){var b=w.Ma(a.length);wa(a,b);return b},stringToC:function(a){var b=0;a!==l&&(a!==g&&0!==a)&&(b=w.Ma((a.length<<2)+1),xa(a,b));return b}},c={string:b.stringToC,array:b.arrayToC};va=function(a,b,d,f){var h=sa(a),t=[],a=0;if(f)for(var B=0;B>0]=b;break;case "i8":D[a>>0]=b;break;case "i16":za[a>>1]=b;break;case "i32":E[a>>2]=b;break;case "i64":ra=[b>>>0,(qa=b,1<=+Aa(qa)?0>>0:~~+Da((qa-+(~~qa>>>0))/4294967296)>>>0:0)];E[a>>2]=ra[0];E[a+4>>2]=ra[1];break;case "float":Ea[a>>2]=b;break;case "double":Fa[a>>3]=b;break;default:ma("invalid type for setValue: "+c)}}r.setValue=ya; function Ga(a,b){b=b||"i8";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return D[a>>0];case "i8":return D[a>>0];case "i16":return za[a>>1];case "i32":return E[a>>2];case "i64":return E[a>>2];case "float":return Ea[a>>2];case "double":return Fa[a>>3];default:ma("invalid type for setValue: "+b)}return l}r.getValue=Ga;var F=0,G=2,Ha=4;r.ALLOC_NORMAL=F;r.ALLOC_STACK=1;r.ALLOC_STATIC=G;r.ALLOC_DYNAMIC=3;r.ALLOC_NONE=Ha; function H(a,b,c,d){var f,h;"number"===typeof a?(f=k,h=a):(f=m,h=a.length);var i="string"===typeof b?b:l,c=c==Ha?d:[Ia,w.Ma,w.Jd,w.Kb][c===g?G:c](Math.max(h,i?1:b.length));if(f){d=c;u(0==(c&3));for(a=c+(h&-4);d>2]=0;for(a=c+h;d>0]=0;return c}if("i8"===i)return a.subarray||a.slice?K.set(a,c):K.set(new Uint8Array(a),c),c;for(var d=0,j,x;d>0];if(128<=d)c=k;else if(0==d&&!b)break;f++;if(b&&f==b)break}b||(b=f);var h="";if(!c){for(;0>0],h+=c.Vb(d);return h}r.Pointer_stringify=y;r.UTF16ToString=function(a){for(var b=0,c="";;){var d=za[a+2*b>>1];if(0==d)return c;++b;c+=String.fromCharCode(d)}}; r.stringToUTF16=function(a,b){for(var c=0;c>1]=a.charCodeAt(c);za[b+2*a.length>>1]=0};r.UTF32ToString=function(a){for(var b=0,c="";;){var d=E[a+4*b>>2];if(0==d)return c;++b;65536<=d?(d-=65536,c+=String.fromCharCode(55296|d>>10,56320|d&1023)):c+=String.fromCharCode(d)}};r.stringToUTF32=function(a,b){for(var c=0,d=0;d=f)var h=a.charCodeAt(++d),f=65536+((f&1023)<<10)|h&1023;E[b+4*c>>2]=f;++c}E[b+4*c>>2]=0}; function Ja(a){function b(c,d,f){var d=d||Infinity,h="",i=[],t;if("N"===a[j]){j++;"K"===a[j]&&j++;for(t=[];"E"!==a[j];)if("S"===a[j]){j++;var J=a.indexOf("_",j);t.push(p[a.substring(j,J)||0]||"?");j=J+1}else if("C"===a[j])t.push(t[t.length-1]),j+=2;else{var J=parseInt(a.substr(j)),fa=J.toString().length;if(!J||!fa){j--;break}var Tb=a.substr(j+fa,J);t.push(Tb);p.push(Tb);j+=fa+J}j++;t=t.join("::");d--;if(0===d)return c?[t]:t}else if(("K"===a[j]||A&&"L"===a[j])&&j++,J=parseInt(a.substr(j)))fa=J.toString().length, t=a.substr(j+fa,J),j+=fa+J;A=m;"I"===a[j]?(j++,J=b(k),fa=b(k,1,k),h+=fa[0]+" "+t+"<"+J.join(", ")+">"):h=t;a:for(;jL?2*L:L+16777216; L!==oa&&(r.Ca("increasing TOTAL_MEMORY to "+L+" to be compliant with the asm.js spec"),oa=L);u("undefined"!==typeof Int32Array&&"undefined"!==typeof Float64Array&&!!(new Int32Array(1)).subarray&&!!(new Int32Array(1)).set,"JS engine does not provide full typed array support");var M=new ArrayBuffer(oa);D=new Int8Array(M);za=new Int16Array(M);E=new Int32Array(M);K=new Uint8Array(M);Ma=new Uint16Array(M);Na=new Uint32Array(M);Ea=new Float32Array(M);Fa=new Float64Array(M);E[0]=255; u(255===K[0]&&0===K[3],"Typed arrays 2 must be run on a little-endian system");r.HEAP=g;r.buffer=M;r.HEAP8=D;r.HEAP16=za;r.HEAP32=E;r.HEAPU8=K;r.HEAPU16=Ma;r.HEAPU32=Na;r.HEAPF32=Ea;r.HEAPF64=Fa;function Ta(a){for(;0>0]=a[c],c+=1}r.writeStringToMemory=xa; function wa(a,b){for(var c=0;c>0]=a[c]}r.writeArrayToMemory=wa;function bb(a,b,c){for(var d=0;d>0]=a.charCodeAt(d);c||(D[b+a.length>>0]=0)}r.writeAsciiToMemory=bb;if(!Math.imul||-5!==Math.imul(4294967295,5))Math.imul=function(a,b){var c=a&65535,d=b&65535;return c*d+((a>>>16)*d+c*(b>>>16)<<16)|0};Math.Hi=Math.imul;var Aa=Math.abs,Da=Math.ceil,Ca=Math.floor,Ba=Math.min,cb=0,db=l,eb=l;function fb(){cb++;r.monitorRunDependencies&&r.monitorRunDependencies(cb)} r.addRunDependency=fb;function gb(){cb--;r.monitorRunDependencies&&r.monitorRunDependencies(cb);if(0==cb&&(db!==l&&(clearInterval(db),db=l),eb)){var a=eb;eb=l;a()}}r.removeRunDependency=gb;r.preloadedImages={};r.preloadedAudios={};var hb=l,Oa=8,na=Oa+39504;Va.push(); H([51,46,56,46,55,46,52,0,83,81,76,73,84,69,95,0,0,152,0,0,16,152,0,0,32,152,0,0,56,152,0,0,72,152,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38, 39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173, 174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,24,4,0,0,32,4,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5, 0,0,0,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,40,4,0,0,56,4,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,64,4,0,0,80,4,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,88,4,0,0,32,4,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,1,0,0,0,2,0,0, 0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,117,110,105,120,0,0,0,0,6,0,0,0,0,0,0,0,117,110,105,120,45,110,111,110,101,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,117,110,105,120,45,100,111,116,102,105,108,101,0,0,0,0,8,0,0,0,0,0,0,0,117,110,105,120,45,101,120,99,108,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,1,0,0,0,0,0,0,0,4,5,3,5,1,5,1,5,2,5,2,5,1,5,1,5,4,5,3,5,1,5,1,5,2,5,2,5,1,5,1,5,115,116,114,105,110,103,32,111,114,32,98,108,111,98,32,116,111,111,32,98,105,103,0,0,37,115,0,0,0,0,0,0,42,63,91,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,12,12,12,12,12,12,12,12,12,12,0,0,0,0,0,0,0,10,10,10,10,10,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,64,0,42,42,42,42,42,42,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,0,0,0,0,0,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64, 64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,0,0,0,0,0,0,0,0,116,114,105,103,103,101,114,0,116,101,109,112,0,0,0,0,50,48,49,52,45,49,50,45,48,57,32,48,49,58,51,52,58,51,54,32,102,54,54,102,55,97,49,55,98,55,56,98,97,54,49,55,97,99,100,101,57,48,102,99,56,49,48,49,48,55,102,51,52,102,49,97,49,102,50,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,117,110,107,110,111,119,110,32,100,97,116,97,98,97,115,101,58,32,37,115,0,0,0,0,0,202,154,59,0,202,154,59,208,7,0,0,232,3,0,0,244,1,0,0,168,97,0,0,127,0,0,0,10,0,0,0,80,195,0,0,231,3,0,0,232,3,0,0,0,0,0,0,57,50,50,51,51,55,50,48,51,54,56,53,52,55,55,53,56,48,0,0,0,0,0,0,111,110,111,102,102,97,108,115,101,121,101,115,116,114,117,101,102,117,108, 108,0,0,0,0,0,1,2,4,9,12,16,0,2,2,3,5,3,4,4,0,1,0,0,0,1,1,2,0,82,69,73,78,68,69,88,69,68,69,83,67,65,80,69,65,67,72,69,67,75,69,89,66,69,70,79,82,69,73,71,78,79,82,69,71,69,88,80,76,65,73,78,83,84,69,65,68,68,65,84,65,66,65,83,69,76,69,67,84,65,66,76,69,70,84,72,69,78,68,69,70,69,82,82,65,66,76,69,76,83,69,88,67,69,80,84,82,65,78,83,65,67,84,73,79,78,65,84,85,82,65,76,84,69,82,65,73,83,69,88,67,76,85,83,73,86,69,88,73,83,84,83,65,86,69,80,79,73,78,84,69,82,83,69,67,84,82,73,71,71,69,82,69,70,69,82, 69,78,67,69,83,67,79,78,83,84,82,65,73,78,84,79,70,70,83,69,84,69,77,80,79,82,65,82,89,85,78,73,81,85,69,82,89,87,73,84,72,79,85,84,69,82,69,76,69,65,83,69,65,84,84,65,67,72,65,86,73,78,71,82,79,85,80,68,65,84,69,66,69,71,73,78,78,69,82,69,67,85,82,83,73,86,69,66,69,84,87,69,69,78,79,84,78,85,76,76,73,75,69,67,65,83,67,65,68,69,76,69,84,69,67,65,83,69,67,79,76,76,65,84,69,67,82,69,65,84,69,67,85,82,82,69,78,84,95,68,65,84,69,68,69,84,65,67,72,73,77,77,69,68,73,65,84,69,74,79,73,78,83,69,82,84,77, 65,84,67,72,80,76,65,78,65,76,89,90,69,80,82,65,71,77,65,66,79,82,84,86,65,76,85,69,83,86,73,82,84,85,65,76,73,77,73,84,87,72,69,78,87,72,69,82,69,78,65,77,69,65,70,84,69,82,69,80,76,65,67,69,65,78,68,69,70,65,85,76,84,65,85,84,79,73,78,67,82,69,77,69,78,84,67,65,83,84,67,79,76,85,77,78,67,79,77,77,73,84,67,79,78,70,76,73,67,84,67,82,79,83,83,67,85,82,82,69,78,84,95,84,73,77,69,83,84,65,77,80,82,73,77,65,82,89,68,69,70,69,82,82,69,68,73,83,84,73,78,67,84,68,82,79,80,70,65,73,76,70,82,79,77,70,85, 76,76,71,76,79,66,89,73,70,73,83,78,85,76,76,79,82,68,69,82,69,83,84,82,73,67,84,82,73,71,72,84,82,79,76,76,66,65,67,75,82,79,87,85,78,73,79,78,85,83,73,78,71,86,65,67,85,85,77,86,73,69,87,73,78,73,84,73,65,76,76,89,0,0,0,0,0,0,0,76,105,117,74,0,45,0,0,82,0,77,0,0,42,12,78,15,0,116,85,54,112,0,19,0,0,121,0,119,115,0,22,93,0,9,0,0,70,71,0,69,6,0,48,90,102,0,118,101,0,0,44,0,103,24,0,17,0,122,53,23,0,5,110,25,96,0,0,124,106,60,123,57,28,55,0,91,0,100,26,0,99,0,0,0,95,92,97,88,109,14,39,108,0,81,0,18, 89,111,32,0,120,80,113,62,46,84,0,0,94,40,59,114,0,36,0,0,29,0,86,63,64,0,20,61,0,56,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,13,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,33,0,21,0,0,0,0,0,50,0,43,3,47,0,0,0,0,30,0,58,0,38,0,0,0,1,66,0,0,67,0,41,0,0,0,0,0,0,49,65,0,0,0,0,31,52,16,34,10,0,0,0,0,0,0,0,11,72,79,0,8,0,104,98,0,107,0,87,0,75,51,0,27,37,73,83,0,35,68,0,0,0,0,0,0,7,7,5,4,6,4,5,3,6,7,3,6,6,7,7,3,8,2,6,5,4,4,3,10,4,6,11,6,2,7,5,5,9,6,9,9,7,10,10,4,6,2,3,9,4,2,6,5,7,4,5,7,6,6,5,6,5,5,9, 7,7,3,2,4,4,7,3,6,4,7,6,12,6,9,4,6,5,4,7,6,5,6,7,5,4,5,6,5,7,3,7,13,2,2,4,6,6,8,5,17,12,7,8,8,2,4,4,4,4,4,2,2,6,5,8,5,8,3,5,5,6,4,9,3,0,0,0,0,0,0,2,0,2,0,8,0,9,0,14,0,16,0,20,0,23,0,25,0,25,0,29,0,33,0,36,0,41,0,46,0,48,0,53,0,54,0,59,0,62,0,65,0,67,0,69,0,78,0,81,0,86,0,91,0,95,0,96,0,101,0,105,0,109,0,117,0,122,0,128,0,136,0,142,0,152,0,159,0,162,0,162,0,165,0,167,0,167,0,171,0,176,0,179,0,184,0,184,0,188,0,192,0,199,0,204,0,209,0,212,0,218,0,221,0,225,0,234,0,240,0,240,0,240,0,243,0,246,0,250, 0,251,0,255,0,5,1,9,1,16,1,22,1,34,1,40,1,49,1,51,1,57,1,62,1,64,1,71,1,76,1,81,1,87,1,93,1,98,1,102,1,105,1,111,1,115,1,122,1,124,1,131,1,133,1,135,1,144,1,148,1,154,1,160,1,168,1,173,1,173,1,189,1,196,1,203,1,204,1,211,1,215,1,219,1,223,1,227,1,230,1,232,1,234,1,240,1,244,1,252,1,1,2,9,2,12,2,17,2,22,2,28,2,32,2,37,2,67,28,140,42,84,44,104,53,35,113,46,47,50,2,49,142,41,24,119,16,98,138,11,112,139,117,6,30,107,98,141,57,9,20,13,118,62,105,99,131,55,54,111,21,21,71,103,3,25,66,98,14,34,128,127,110, 5,98,58,74,77,19,52,101,50,37,33,109,136,95,17,69,43,8,124,108,51,4,32,56,29,120,65,129,137,130,68,31,59,72,100,106,15,75,38,39,10,40,98,69,69,102,7,121,73,114,45,123,98,50,36,18,76,126,60,98,12,61,115,125,63,64,48,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,105,115,117,115,101,32,97,116,32,108,105,110,101,32,37,100,32,111,102,32,91,37,46,49,48,115,93,0,0,0,0,117,110, 97,98,108,101,32,116,111,32,100,101,108,101,116,101,47,109,111,100,105,102,121,32,99,111,108,108,97,116,105,111,110,32,115,101,113,117,101,110,99,101,32,100,117,101,32,116,111,32,97,99,116,105,118,101,32,115,116,97,116,101,109,101,110,116,115,0,0,0,0,0,66,73,78,65,82,89,0,0,82,84,82,73,77,0,0,0,78,79,67,65,83,69,0,0,109,97,105,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,117,116,111,109,97,116,105,99, 32,101,120,116,101,110,115,105,111,110,32,108,111,97,100,105,110,103,32,102,97,105,108,101,100,58,32,37,115,0,0,77,65,84,67,72,0,0,0,58,109,101,109,111,114,121,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,5,0,0,0,9,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,114,101,99,111,118,101,114,101,100,32,37,100,32,112,97,103,101,115,32,102,114,111, 109,32,37,115,0,0,0,0,0,0,217,213,5,249,32,161,99,215,100,97,116,97,98,97,115,101,32,99,111,114,114,117,112,116,105,111,110,32,97,116,32,108,105,110,101,32,37,100,32,111,102,32,91,37,46,49,48,115,93,0,0,0,0,0,0,0,99,97,110,110,111,116,32,108,105,109,105,116,32,87,65,76,32,115,105,122,101,58,32,37,115,0,0,0,0,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,102,105,108,101,32,97,116,32,108,105,110,101,32,37,100,32,111,102,32,91,37,46,49,48,115,93,0,0,114,101,99,111,118,101,114,101,100,32,37,100,32, 102,114,97,109,101,115,32,102,114,111,109,32,87,65,76,32,102,105,108,101,32,37,115,0,0,0,0,45,106,111,117,114,110,97,108,0,0,0,0,0,0,0,0,45,119,97,108,0,0,0,0,110,111,108,111,99,107,0,0,105,109,109,117,116,97,98,108,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,105,108,101,58,0,0,0,108,111,99,97,108,104,111,115,116,0,0,0,0,0,0,0,105,110,118,97,108,105,100,32,117,114,105,32,97,117,116,104,111,114,105,116,121,58,32,37,46,42,115,0,0,0,0,0,118,102,115,0,0,0,0,0,99,97,99,104,101,0,0,0,96,18,0,0,0,0,2,0,104,18, 0,0,0,0,4,0,0,0,0,0,0,0,0,0,115,104,97,114,101,100,0,0,112,114,105,118,97,116,101,0,109,111,100,101,0,0,0,0,160,18,0,0,1,0,0,0,168,18,0,0,2,0,0,0,176,18,0,0,6,0,0,0,184,18,0,0,128,0,0,0,0,0,0,0,0,0,0,0,114,111,0,0,0,0,0,0,114,119,0,0,0,0,0,0,114,119,99,0,0,0,0,0,109,101,109,111,114,121,0,0,97,99,99,101,115,115,0,0,110,111,32,115,117,99,104,32,37,115,32,109,111,100,101,58,32,37,115,0,0,0,0,0,37,115,32,109,111,100,101,32,110,111,116,32,97,108,108,111,119,101,100,58,32,37,115,0,110,111,32,115,117,99, 104,32,118,102,115,58,32,37,115,0,105,110,118,97,108,105,100,0,65,80,73,32,99,97,108,108,32,119,105,116,104,32,37,115,32,100,97,116,97,98,97,115,101,32,99,111,110,110,101,99,116,105,111,110,32,112,111,105,110,116,101,114,0,0,0,0,117,110,97,98,108,101,32,116,111,32,117,115,101,32,102,117,110,99,116,105,111,110,32,37,115,32,105,110,32,116,104,101,32,114,101,113,117,101,115,116,101,100,32,99,111,110,116,101,120,116,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27, 28,29,30,31,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,0,1,2,3,0,1,0,0,117,110,97,98,108,101,32,116,111,32,100,101,108,101,116,101,47,109,111,100,105,102,121,32,117,115,101,114,45,102,117,110,99,116,105,111,110,32,100,117,101,32,116,111,32,97,99,116,105,118,101,32,115,116,97,116,101,109,101,110,116,115,0,0,104,20,0,0,120,20,0,0,0,0,0,0,160,20,0,0,192,20,0,0,224,20,0,0,248,20,0,0,24,21,0,0,40,21,0,0,80,21,0,0,96,21,0,0,112,21,0,0,152,21,0,0,176,21,0,0,208,21,0,0,240,21,0,0,8,22,0,0,32,22, 0,0,152,4,0,0,64,22,0,0,88,22,0,0,112,22,0,0,152,22,0,0,184,22,0,0,208,22,0,0,240,22,0,0,24,23,0,0,0,0,0,0,110,111,116,32,97,110,32,101,114,114,111,114,0,0,0,0,83,81,76,32,108,111,103,105,99,32,101,114,114,111,114,32,111,114,32,109,105,115,115,105,110,103,32,100,97,116,97,98,97,115,101,0,0,0,0,0,97,99,99,101,115,115,32,112,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,0,0,0,0,0,0,0,99,97,108,108,98,97,99,107,32,114,101,113,117,101,115,116,101,100,32,113,117,101,114,121,32,97,98, 111,114,116,0,0,100,97,116,97,98,97,115,101,32,105,115,32,108,111,99,107,101,100,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,116,97,98,108,101,32,105,115,32,108,111,99,107,101,100,0,0,0,0,0,0,0,0,111,117,116,32,111,102,32,109,101,109,111,114,121,0,0,0,97,116,116,101,109,112,116,32,116,111,32,119,114,105,116,101,32,97,32,114,101,97,100,111,110,108,121,32,100,97,116,97,98,97,115,101,0,0,0,0,105,110,116,101,114,114,117,112,116,101,100,0,0,0,0,0,100,105,115,107,32,73,47,79,32,101,114,114,111,114,0,0,100, 97,116,97,98,97,115,101,32,100,105,115,107,32,105,109,97,103,101,32,105,115,32,109,97,108,102,111,114,109,101,100,0,0,0,0,0,0,0,0,117,110,107,110,111,119,110,32,111,112,101,114,97,116,105,111,110,0,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,111,114,32,100,105,115,107,32,105,115,32,102,117,108,108,0,0,0,0,0,0,0,0,117,110,97,98,108,101,32,116,111,32,111,112,101,110,32,100,97,116,97,98,97,115,101,32,102,105,108,101,0,0,0,0,108,111,99,107,105,110,103,32,112,114,111,116,111,99,111,108,0,0,0,0,0,0,0,0, 116,97,98,108,101,32,99,111,110,116,97,105,110,115,32,110,111,32,100,97,116,97,0,0,100,97,116,97,98,97,115,101,32,115,99,104,101,109,97,32,104,97,115,32,99,104,97,110,103,101,100,0,0,0,0,0,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108,101,100,0,0,0,0,0,0,0,100,97,116,97,116,121,112,101,32,109,105,115,109,97,116,99,104,0,0,0,0,0,0,0,108,105,98,114,97,114,121,32,114,111,117,116,105,110,101,32,99,97,108,108,101,100,32,111,117,116,32,111,102,32,115,101,113,117,101,110,99,101,0,0,108,97,114, 103,101,32,102,105,108,101,32,115,117,112,112,111,114,116,32,105,115,32,100,105,115,97,98,108,101,100,0,0,97,117,116,104,111,114,105,122,97,116,105,111,110,32,100,101,110,105,101,100,0,0,0,0,97,117,120,105,108,105,97,114,121,32,100,97,116,97,98,97,115,101,32,102,111,114,109,97,116,32,101,114,114,111,114,0,98,105,110,100,32,111,114,32,99,111,108,117,109,110,32,105,110,100,101,120,32,111,117,116,32,111,102,32,114,97,110,103,101,0,0,0,0,0,0,0,102,105,108,101,32,105,115,32,101,110,99,114,121,112,116, 101,100,32,111,114,32,105,115,32,110,111,116,32,97,32,100,97,116,97,98,97,115,101,0,0,117,110,107,110,111,119,110,32,101,114,114,111,114,0,0,0,97,98,111,114,116,32,100,117,101,32,116,111,32,82,79,76,76,66,65,67,75,0,0,0,117,110,97,98,108,101,32,116,111,32,99,108,111,115,101,32,100,117,101,32,116,111,32,117,110,102,105,110,97,108,105,122,101,100,32,115,116,97,116,101,109,101,110,116,115,32,111,114,32,117,110,102,105,110,105,115,104,101,100,32,98,97,99,107,117,112,115,0,0,0,0,0,1,0,0,0,0,0,0,0,2,0, 0,0,1,0,0,0,6,0,0,0,1,0,0,0,3,0,0,0,7,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,0,0,0,0,4,0,0,0,4,0,0,0,11,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,5,0,0,0,0,0,0,0,102,97,105,108,101,100,32,109,101,109,111,114,121,32,114,101,115,105,122,101,32,37,117,32,116,111,32,37,117,32,98,121,116,101,115,0,0,0,0,0,102,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,37,117,32,98,121,116,101,115,32,111,102,32,109,101,109,111,114,121,0,0,0,1,0,1,8,1,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,96,32,0,0,0,0, 0,0,0,0,0,0,2,0,1,8,1,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,96,32,0,0,0,0,0,0,0,0,0,0,1,0,1,8,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,104,32,0,0,0,0,0,0,0,0,0,0,2,0,1,8,2,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,104,32,0,0,0,0,0,0,0,0,0,0,1,0,1,8,3,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,112,32,0,0,0,0,0,0,0,0,0,0,2,0,1,8,3,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,112,32,0,0,0,0,0,0,0,0,0,0,255,255,33,8,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,120,32,0,0,0,0,0,0,0,0,0,0,0,0,33,8,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,120,32,0,0,0,0,0,0,0,0,0,0,1,0,33,16,0,0,0,0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,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,10,0,0,0,40,34,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,33,0,0,0,11,0,0,0,48,34,0,0,0,0,0,0,0,0,0,0,2,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,33,0,0,0,11,0, 0,0,48,34,0,0,0,0,0,0,0,0,0,0,2,0,13,8,184,4,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,64,34,0,0,0,0,0,0,0,0,0,0,2,0,5,8,72,34,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,80,34,0,0,0,0,0,0,0,0,0,0,3,0,5,8,72,34,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,80,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,108,116,114,105,109,0,0,0,114,116,114,105,109,0,0,0,116,114,105,109,0,0,0,0,109,105,110,0,0,0,0,0,109,97,120,0,0,0,0,0,116,121,112,101,111,102,0,0,108,101,110,103,116,104,0,0,105,110,115,116,114,0,0,0,115,117,98,115,116,114,0,0,112, 114,105,110,116,102,0,0,117,110,105,99,111,100,101,0,99,104,97,114,0,0,0,0,97,98,115,0,0,0,0,0,114,111,117,110,100,0,0,0,117,112,112,101,114,0,0,0,108,111,119,101,114,0,0,0,99,111,97,108,101,115,99,101,0,0,0,0,0,0,0,0,104,101,120,0,0,0,0,0,105,102,110,117,108,108,0,0,117,110,108,105,107,101,108,121,0,0,0,0,0,0,0,0,108,105,107,101,108,105,104,111,111,100,0,0,0,0,0,0,108,105,107,101,108,121,0,0,114,97,110,100,111,109,0,0,114,97,110,100,111,109,98,108,111,98,0,0,0,0,0,0,110,117,108,108,105,102,0,0,115, 113,108,105,116,101,95,118,101,114,115,105,111,110,0,0,115,113,108,105,116,101,95,115,111,117,114,99,101,95,105,100,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,108,111,103,0,0,0,0,0,0,115,113,108,105,116,101,95,99,111,109,112,105,108,101,111,112,116,105,111,110,95,117,115,101,100,0,0,0,0,0,0,0,115,113,108,105,116,101,95,99,111,109,112,105,108,101,111,112,116,105,111,110,95,103,101,116,0,0,0,0,0,0,0,0,113,117,111,116,101,0,0,0,108,97,115,116,95,105,110,115,101,114,116,95,114,111,119,105,100,0,0,0,0, 0,0,0,99,104,97,110,103,101,115,0,116,111,116,97,108,95,99,104,97,110,103,101,115,0,0,0,114,101,112,108,97,99,101,0,122,101,114,111,98,108,111,98,0,0,0,0,0,0,0,0,115,117,109,0,0,0,0,0,116,111,116,97,108,0,0,0,97,118,103,0,0,0,0,0,99,111,117,110,116,0,0,0,103,114,111,117,112,95,99,111,110,99,97,116,0,0,0,0,103,108,111,98,0,0,0,0,37,95,0,1,0,0,0,0,108,105,107,101,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,35,0,0,0,0,0,0,0,0,0,0,0,200,34,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,36,0,0,0,0,0,0,0,0,0,0,0,224, 34,0,0,0,0,0,0,0,0,0,0,3,0,1,8,0,0,0,0,0,0,0,0,37,0,0,0,0,0,0,0,0,0,0,0,248,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,97,98,108,101,0,0,0,0,0,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,114,105,103,103,101,114,0,0,0,115,113,108,105,116,101,95,114,101,110,97,109,101,95,112,97,114,101,110,116,0,0,0,0,37,115,37,46,42,115,34,37,119,34,0,0,0,0,0,0,37,115,37,115,0,0,0,0,37,46,42,115,34,37,119,34,37,115,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,38, 0,0,0,0,0,0,0,0,0,0,0,88,36,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,39,0,0,0,0,0,0,0,0,0,0,0,104,36,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,112,36,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,120,36,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,42,0,0,0,0,0,0,0,0,0,0,0,136,36,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,43,0,0,0,0,0,0,0,0,0,0,0,152,36,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,168,36,0, 0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,45,0,0,0,0,0,0,0,0,0,0,0,192,36,0,0,0,0,0,0,0,0,0,0,106,117,108,105,97,110,100,97,121,0,0,0,0,0,0,0,100,97,116,101,0,0,0,0,116,105,109,101,0,0,0,0,100,97,116,101,116,105,109,101,0,0,0,0,0,0,0,0,115,116,114,102,116,105,109,101,0,0,0,0,0,0,0,0,99,117,114,114,101,110,116,95,116,105,109,101,0,0,0,0,99,117,114,114,101,110,116,95,116,105,109,101,115,116,97,109,112,0,0,0,0,0,0,0,99,117,114,114,101,110,116,95,100,97,116,101,0,0,0,0,37,48,50,100,0,0,0,0,37,48,54,46, 51,102,0,0,37,48,51,100,0,0,0,0,37,46,49,54,103,0,0,0,37,108,108,100,0,0,0,0,37,48,52,100,0,0,0,0,108,111,99,97,108,116,105,109,101,0,0,0,0,0,0,0,117,110,105,120,101,112,111,99,104,0,0,0,0,0,0,0,117,116,99,0,0,0,0,0,119,101,101,107,100,97,121,32,0,0,0,0,0,0,0,0,115,116,97,114,116,32,111,102,32,0,0,0,0,0,0,0,109,111,110,116,104,0,0,0,121,101,97,114,0,0,0,0,100,97,121,0,0,0,0,0,104,111,117,114,0,0,0,0,109,105,110,117,116,101,0,0,115,101,99,111,110,100,0,0,108,111,99,97,108,32,116,105,109,101,32,117, 110,97,118,97,105,108,97,98,108,101,0,0,110,111,119,0,0,0,0,0,37,48,52,100,45,37,48,50,100,45,37,48,50,100,32,37,48,50,100,58,37,48,50,100,58,37,48,50,100,0,0,0,37,48,50,100,58,37,48,50,100,58,37,48,50,100,0,0,37,48,52,100,45,37,48,50,100,45,37,48,50,100,0,0,76,73,75,69,32,111,114,32,71,76,79,66,32,112,97,116,116,101,114,110,32,116,111,111,32,99,111,109,112,108,101,120,0,0,0,0,0,0,0,0,69,83,67,65,80,69,32,101,120,112,114,101,115,115,105,111,110,32,109,117,115,116,32,98,101,32,97,32,115,105,110,103, 108,101,32,99,104,97,114,97,99,116,101,114,0,0,0,0,44,0,0,0,0,0,0,0,105,110,116,101,103,101,114,32,111,118,101,114,102,108,111,119,0,0,0,0,0,0,0,0,37,33,46,49,53,103,0,0,37,33,46,50,48,101,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,78,85,76,76,0,0,0,0,37,46,42,102,0,0,0,0,105,110,116,101,103,101,114,0,116,101,120,116,0,0,0,0,114,101,97,108,0,0,0,0,98,108,111,98,0,0,0,0,110,117,108,108,0,0,0,0,1,0,0,0,0,0,0,0,184,38,0,0,0,0,0,0,32,0,0,0,0,0,0,0,105,110,116,101,114,114,117,112,116,0,0,0,0, 0,0,0,117,110,114,101,99,111,103,110,105,122,101,100,32,116,111,107,101,110,58,32,34,37,84,34,0,0,0,0,0,0,0,0,110,101,97,114,32,34,37,84,34,58,32,115,121,110,116,97,120,32,101,114,114,111,114,0,114,111,119,105,100,0,0,0,117,110,107,110,111,119,110,32,116,97,98,108,101,32,111,112,116,105,111,110,58,32,37,46,42,115,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,116,101,114,109,115,32,105,110,32,99,111,109,112,111,117,110,100,32,83,69,76,69,67,84,0,0,0,0, 0,0,0,115,101,116,32,108,105,115,116,0,0,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,97,114,103,117,109,101,110,116,115,32,111,110,32,102,117,110,99,116,105,111,110,32,37,84,0,0,0,0,0,0,0,56,91,0,0,1,0,0,0,48,73,0,0,1,0,0,0,105,110,100,101,120,0,0,0,113,117,97,108,105,102,105,101,100,32,116,97,98,108,101,32,110,97,109,101,115,32,97,114,101,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,73,78,83,69,82,84,44,32,85,80,68,65,84,69,44,32,97,110,100,32,68,69,76,69,84,69,32,115,116,97,116], "i8",Ha,w.Ab); H([101,109,101,110,116,115,32,119,105,116,104,105,110,32,116,114,105,103,103,101,114,115,0,0,116,104,101,32,73,78,68,69,88,69,68,32,66,89,32,99,108,97,117,115,101,32,105,115,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,85,80,68,65,84,69,32,111,114,32,68,69,76,69,84,69,32,115,116,97,116,101,109,101,110,116,115,32,119,105,116,104,105,110,32,116,114,105,103,103,101,114,115,0,0,0,0,0,116,104,101,32,78,79,84,32,73,78,68,69,88,69,68,32,99,108,97,117,115,101,32,105,115,32,110,111,116,32,97, 108,108,111,119,101,100,32,111,110,32,85,80,68,65,84,69,32,111,114,32,68,69,76,69,84,69,32,115,116,97,116,101,109,101,110,116,115,32,119,105,116,104,105,110,32,116,114,105,103,103,101,114,115,0,0,0,0,144,1,145,2,145,1,146,1,146,3,147,0,147,1,147,3,148,1,149,3,151,0,151,1,151,2,150,0,150,1,150,1,150,1,149,2,149,2,149,2,153,1,153,0,149,2,149,3,149,5,149,2,154,6,156,1,158,0,158,3,157,1,157,0,155,5,155,2,162,0,162,2,160,3,160,1,164,3,165,1,152,1,152,1,152,1,166,0,166,1,168,1,168,4,168,6,169,1,169,2,170, 1,170,1,167,2,167,0,173,2,173,2,173,4,173,3,173,3,173,2,173,2,173,3,173,5,173,2,173,4,173,4,173,1,173,2,178,0,178,1,180,0,180,2,182,2,182,3,182,3,182,3,183,2,183,2,183,1,183,1,183,2,181,3,181,2,184,0,184,2,184,2,161,0,161,2,185,3,185,1,186,1,186,0,187,2,187,7,187,5,187,5,187,10,189,0,189,1,176,0,176,3,190,0,190,2,191,1,191,1,191,1,149,4,193,2,193,0,149,8,149,4,149,1,163,2,195,1,195,3,198,1,198,2,198,1,196,9,196,1,207,4,207,5,199,1,199,1,199,0,210,2,210,0,200,3,200,2,200,4,211,2,211,1,211,0,201,0, 201,2,213,2,213,0,212,7,212,7,212,7,159,0,159,2,194,2,214,1,214,2,214,3,214,4,216,2,216,0,215,0,215,3,215,2,217,4,217,0,205,0,205,3,220,4,220,2,177,1,177,1,177,0,203,0,203,3,204,0,204,2,206,0,206,2,206,4,206,4,149,6,202,0,202,2,149,8,221,5,221,3,149,6,149,7,222,2,222,1,223,0,223,3,219,3,219,1,175,1,175,3,174,1,175,1,175,1,175,3,175,5,174,1,174,1,175,1,175,3,175,6,175,5,175,4,174,1,175,3,175,3,175,3,175,3,175,3,175,3,175,3,175,3,224,1,224,2,175,3,175,5,175,2,175,3,175,3,175,4,175,2,175,2,175,2,175, 2,225,1,225,2,175,5,226,1,226,2,175,5,175,3,175,5,175,4,175,4,175,5,228,5,228,4,229,2,229,0,227,1,227,0,209,1,209,0,208,3,208,1,149,12,230,1,230,0,179,0,179,3,188,5,188,3,231,0,231,2,149,4,149,1,149,2,149,3,149,5,149,6,149,5,149,6,232,1,232,1,232,1,232,1,232,1,171,2,171,1,172,2,149,5,233,11,235,1,235,1,235,2,235,0,236,1,236,1,236,3,237,0,237,3,238,0,238,2,234,3,234,2,240,1,240,3,241,0,241,3,241,2,239,7,239,5,239,5,239,1,175,4,175,6,192,1,192,1,192,1,149,4,149,6,149,3,243,0,243,2,242,1,242,0,149,1, 149,3,149,1,149,3,149,6,149,6,244,1,245,0,245,1,149,1,149,4,246,8,247,1,247,3,248,0,248,2,249,1,249,3,250,1,251,0,251,4,251,2,197,0,197,2,197,3,252,6,252,8,0,0,238,0,186,3,213,0,33,1,54,1,234,0,144,0,61,1,147,255,126,1,121,1,47,1,205,1,133,1,122,1,112,1,46,1,38,1,253,0,139,1,37,1,68,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,254,3,244,3,237,3,230,3,195,3,193,3,191,3, 189,3,182,3,179,3,162,3,144,3,105,3,93,3,55,3,42,3,3,3,247,2,208,2,196,2,158,2,145,2,107,2,102,2,100,2,98,2,96,2,94,2,92,2,86,2,83,2,81,2,68,2,30,2,28,2,25,2,23,2,21,2,19,2,17,2,15,2,247,1,130,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,95,0,191,1,82,0,78,1,248,1,211,1,147,1,221,1,208,1,147,1,147,1,147,1,147,1,92,3,235,2,232,2,17,3,126,2,126,2,158,3,123,3,132,3,131,3,119,3,76,3,72,3,67,3,80,3,62,3,75,3,61,3,24,3,71,3,58,3,225,2,70,3,27,3,21,3,47,0,222,2,18,2,184,2,9,3,199,2,165,2,221, 2,218,2,217,2,216,2,215,2,115,2,192,1,64,0,187,0,25,5,22,5,228,4,10,5,249,4,43,5,42,5,41,5,39,5,38,5,36,5,35,5,34,5,33,5,32,5,31,5,30,5,28,5,27,5,24,5,23,5,21,5,18,5,14,5,12,5,9,5,242,4,240,4,235,4,8,5,7,5,214,4,5,5,1,5,0,5,255,4,254,4,227,4,253,4,252,4,251,4,249,4,244,4,243,4,241,4,239,4,237,4,233,4,224,4,213,4,223,4,222,4,219,4,214,4,216,4,211,4,225,4,210,4,209,4,206,4,196,4,190,4,186,4,201,4,195,4,208,4,207,4,173,4,171,4,203,4,200,4,177,4,184,4,218,4,113,4,212,4,205,4,169,4,157,4,197,4,153,4,172, 4,155,4,167,4,166,4,162,4,158,4,194,4,192,4,152,4,138,4,159,4,156,4,136,4,175,4,179,4,109,4,71,4,174,4,170,4,164,4,168,4,147,4,145,4,144,4,149,4,150,4,142,4,135,4,117,4,146,4,134,4,143,4,133,4,108,4,121,4,119,4,100,4,104,4,79,4,78,4,76,4,72,4,126,4,125,4,61,4,101,4,56,4,40,4,96,4,73,4,58,4,54,4,49,4,43,4,85,4,83,4,95,4,93,4,92,4,89,4,87,4,84,4,239,3,232,3,234,3,52,4,51,4,57,4,0,0,0,0,50,1,212,0,176,1,187,3,127,2,191,0,187,3,39,1,47,2,88,0,88,0,88,0,88,0,81,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84, 0,84,0,83,0,74,1,185,0,184,0,183,0,123,2,123,2,36,1,94,2,94,2,88,0,88,0,88,0,88,0,171,2,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,16,0,180,1,85,2,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,172,2,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,47,2,84,0,84,0,84,0,83,0,74,1,65,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,123,2,123,2,122,2,121,2,182,0,170,2,38,2,123,1,120,1,119,1,17,0,66,1,94,2,94,2,115,1,198,0,223,1,91,0,118,1,82,0,79,0,165, 0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,86,2,123,2,123,2,107,0,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,186,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,82,2,82,2,142,0,72,1,71,1,228,1,249,0,88,1,238,0,123,2,123,2,122,2,121,2,73,2,192,1,14,2,13,2,229,0,132,1,1,0,138,1,194,1,72,2,193,1,123,2,123,2,123,2,123,2,63,1,139,1,94,2,94,2,199,0,157,0,17,1,126,1,12,1,125,1,187,0,123,2,123,2,122,2,121,2,55,1,43,2,10,1,81,2,81,2,10,1,91,1,76,2,89,0,90,0,80,0,88,2,87,2,89, 2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,222,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,16,1,24,2,122,2,121,2,146,0,98,2,197,0,54,1,63,2,182,0,226,1,15,1,123,1,120,1,119,1,250,1,21,0,122,2,121,2,122,2,121,2,123,2,123,2,118,1,99,2,62,2,36,2,184,1,111,0,51,2,94,2,94,2,122,2,121,2,68,1,223,1,96,2,96,2,96,2,44,1,179,1,61,2,119,0,151,1,210,0,162,0,50,2,115,3,80,2,80,2,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,250,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0, 83,0,74,1,108,2,111,0,123,2,123,2,105,1,94,2,94,2,102,1,249,0,93,1,248,0,177,1,243,0,223,1,74,2,122,2,121,2,195,0,99,2,93,0,119,0,221,0,63,2,241,1,22,2,22,2,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,62,2,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,77,0,173,1,126,2,61,2,77,2,18,2,240,0,230,0,242,0,105,0,249,0,93,1,248,0,3,2,76,2,208,0,204,1,17,2,52,2,173,0,122,2,121,2,202,3,144,0,174,1,2,0,168,1,228,0,124,1,45,2,94,2,94,2,190,0,153,0,159,0,158,0,2,2,51,0,120, 2,119,2,118,2,71,0,24,2,176,1,186,3,196,0,98,2,186,3,102,2,45,0,18,0,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,5,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,96,2,96,2,96,2,30,2,168,1,146,1,129,1,241,0,250,1,195,1,64,1,211,0,31,2,164,0,180,1,130,1,37,1,195,1,75,2,108,0,240,1,111,0,78,1,135,1,79,2,168,1,102,2,27,0,196,1,197,1,94,2,94,2,72,0,1,1,70,0,3,1,196,1,83,1,86,1,52,2,70,2,68,0,159,1,213,1,72,1,71,1,62,0,102,2,45,0,110,0,137,1,89,0,90,0,80,0,88,2,87,2, 89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,152,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,110,0,243,1,8,2,26,2,146,1,133,1,168,1,110,0,54,2,244,1,81,2,81,2,198,1,82,0,79,0,165,0,168,1,79,2,128,1,52,2,84,1,103,2,188,0,162,0,168,1,94,1,104,2,168,1,102,2,44,0,94,2,94,2,189,1,70,2,44,1,178,1,151,0,19,0,102,2,9,0,56,2,68,2,92,1,103,2,213,1,55,2,102,2,26,0,104,2,102,2,45,0,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,155,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0, 83,0,74,1,50,1,67,2,110,0,66,2,9,2,26,1,177,1,142,1,144,1,255,0,230,1,82,0,79,0,165,0,231,1,164,0,82,0,79,0,165,0,232,1,232,1,108,1,131,1,168,1,32,2,32,2,253,1,94,1,106,1,155,0,191,0,94,2,94,2,47,2,130,2,128,2,77,1,82,0,79,0,165,0,49,1,52,2,251,1,56,1,101,1,102,2,45,0,73,1,84,2,83,2,194,0,81,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,20,0,67,1,150,0,7,1,211,0,31,2,165,1,84,2,83,2,102,2,22,0,168,1,193,0,168,1, 28,1,168,1,135,1,168,1,253,1,168,1,65,2,168,1,186,0,79,1,168,1,47,2,168,1,57,1,120,0,34,2,94,2,94,2,67,0,102,2,47,0,102,2,50,0,102,2,48,0,102,2,100,0,102,2,99,0,102,2,101,0,64,2,102,2,102,0,102,2,109,0,70,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,168,1,55,1,168,1,73,2,54,0,168,1,4,2,5,2,78,2,102,2,112,0,168,1,72,2,168,1,60,2,168,1,195,0,168,1,59,2,168,1,67,0,168,1,102,2,94,0,102,2,98,0,168,1,102,2,97,0,8,1, 94,2,94,2,195,0,102,2,46,0,102,2,96,0,102,2,30,0,102,2,49,0,102,2,115,0,102,2,114,0,162,1,229,0,132,1,102,2,113,0,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,119,0,168,1,78,2,110,0,116,1,94,2,94,2,195,0,53,0,250,0,102,2,29,0,195,0,216,1,182,1,217,2,190,0,46,1,242,1,14,0,11,2,129,2,2,0,102,2,43,0,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84, 0,83,0,74,1,168,1,101,2,196,3,196,3,98,1,94,2,94,2,164,1,56,1,64,0,102,2,42,0,135,1,99,1,27,1,181,1,45,1,255,0,158,1,154,1,239,1,236,1,102,2,28,0,215,1,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,168,1,110,0,110,0,110,0,110,0,94,2,94,2,110,0,254,0,13,0,102,2,41,0,20,2,19,2,27,1,225,1,19,2,201,1,28,1,119,0,49,2,100,1,102,2,40,0,28,1,50,1,89,0,78,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0, 86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,110,0,168,1,85,1,220,0,43,2,94,2,94,2,95,1,43,2,62,1,102,2,95,0,157,1,255,0,83,0,74,1,28,1,28,1,255,0,128,2,77,1,100,1,255,0,102,2,39,0,50,1,100,1,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,168,1,61,1,60,1,141,0,209,1,94,2,94,2,219,0,107,2,207,1,102,2,10,0,161,1,206,1,255,0,189,0,254,1,41,2,95,1,207,0,107,1,161,0,102,2,38,0,59,1,218,0,255,0,255,0,80,0,88,2,87,2,89,2,89,2, 87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,76,0,163,1,255,0,3,0,110,3,205,1,168,1,247,0,75,1,75,1,102,2,37,0,217,0,76,0,163,1,134,1,3,0,216,0,215,0,166,1,4,0,75,1,75,1,168,1,35,2,12,0,168,1,33,2,102,2,36,0,168,1,29,2,166,1,168,1,28,2,168,1,214,0,168,1,152,1,168,1,27,2,147,1,93,2,93,2,237,0,102,2,25,0,119,0,102,2,24,0,76,2,152,1,102,2,45,0,118,0,102,2,35,0,102,2,34,0,102,2,33,0,102,2,23,0,76,2,60,0,223,0,91,2,90,2,1,2,122,1,73,0,74,0,140,0,139,0,168, 1,110,0,9,1,75,0,170,1,169,1,59,0,168,1,98,2,73,0,74,0,37,2,146,1,148,1,168,1,117,1,75,0,170,1,169,1,92,2,138,0,98,2,102,2,11,0,136,1,76,0,163,1,181,0,3,0,102,2,32,0,15,1,113,1,75,1,75,1,237,1,102,2,31,0,149,0,96,2,96,2,96,2,95,2,15,0,166,1,109,1,102,2,8,0,137,0,233,1,136,0,190,0,96,2,96,2,96,2,95,2,15,0,229,1,176,0,135,0,7,0,252,0,221,1,152,1,174,0,133,0,175,0,218,1,57,0,56,0,132,0,130,0,119,0,76,0,163,1,76,2,3,0,212,1,245,0,208,1,171,0,75,1,75,1,125,0,123,0,200,1,191,1,122,0,190,1,104,0,80,1,231, 0,166,1,166,0,154,0,73,0,74,0,76,1,116,0,175,1,121,0,53,1,75,0,170,1,169,1,222,0,106,0,98,2,52,1,125,2,204,0,152,1,117,2,115,2,116,2,6,0,200,0,172,1,171,1,34,1,203,0,110,2,201,0,76,2,62,0,63,0,33,1,66,0,163,1,143,1,3,0,145,1,32,1,92,0,143,0,75,1,75,1,31,1,96,2,96,2,96,2,95,2,15,0,73,0,74,0,227,0,166,1,69,1,69,0,160,1,75,0,170,1,169,1,100,2,156,1,98,2,192,0,61,0,57,2,209,0,140,1,226,0,22,1,225,0,127,1,152,1,15,2,46,2,20,1,21,2,40,2,16,2,65,1,11,2,114,1,252,1,180,0,76,2,238,1,179,0,110,1,117,0,253, 0,13,1,10,2,247,1,96,2,96,2,96,2,95,2,15,0,39,2,246,1,58,0,18,1,12,2,178,0,73,0,74,0,48,1,245,1,112,1,47,1,206,0,75,0,170,1,169,1,235,1,104,1,98,2,213,0,177,0,227,1,131,0,89,1,42,1,41,1,40,1,202,0,38,1,224,1,234,1,210,1,134,0,172,0,129,0,188,1,90,1,214,1,128,0,58,1,203,1,103,0,127,0,126,0,148,0,124,0,167,0,187,1,235,0,96,2,96,2,96,2,95,2,15,0,186,1,183,1,111,2,234,0,43,1,145,0,71,2,35,1,121,1,69,2,160,0,119,0,156,0,14,1,124,2,203,3,169,0,23,1,114,2,8,2,113,2,217,1,112,2,170,0,109,2,106,2,119,0,168, 0,55,0,153,1,167,1,25,2,97,2,30,1,29,1,149,1,58,2,48,2,44,2,5,0,52,0,202,1,42,2,147,0,11,1,7,2,248,1,6,2,150,1,6,1,239,0,4,1,0,2,87,1,255,1,2,1,97,1,53,2,0,1,224,0,251,0,103,1,21,1,19,1,220,1,219,1,246,0,96,1,244,0,211,1,199,1,236,0,233,0,232,0,51,1,185,1,25,1,205,0,163,0,141,1,24,1,23,2,249,1,74,1,105,2,203,3,203,3,203,3,203,3,111,1,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,82,1,0,0,0,0,0,0,100,117,112,108,105,99,97,116,101,32,87,73,84,72,32,116,97,98,108,101,32,110,97,109, 101,58,32,37,115,0,0,0,110,111,116,32,97,117,116,104,111,114,105,122,101,100,0,0,97,117,116,104,111,114,105,122,101,114,32,109,97,108,102,117,110,99,116,105,111,110,0,0,67,82,69,65,84,69,32,86,73,82,84,85,65,76,32,84,65,66,76,69,32,37,84,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,116,121,112,101,61,39,116,97,98,108,101,39,44,32,110,97,109,101,61,37,81,44,32,116,98,108,95,110,97,109,101,61,37,81,44,32,114,111,111,116,112,97,103,101,61,48,44,32,115,113,108,61,37,81,32,87,72,69,82,69,32,114, 111,119,105,100,61,35,37,100,0,115,113,108,105,116,101,95,116,101,109,112,95,109,97,115,116,101,114,0,0,0,0,0,0,115,113,108,105,116,101,95,109,97,115,116,101,114,0,0,0,110,97,109,101,61,39,37,113,39,32,65,78,68,32,116,121,112,101,61,39,116,97,98,108,101,39,0,0,0,0,0,0,118,105,114,116,117,97,108,32,116,97,98,108,101,115,32,109,97,121,32,110,111,116,32,98,101,32,97,108,116,101,114,101,100,0,0,0,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,99,111,108,117,109,110,32,116,111,32,97,32,118,105,101, 119,0,0,0,115,113,108,105,116,101,95,97,108,116,101,114,116,97,98,95,37,115,0,0,0,0,0,0,117,110,97,98,108,101,32,116,111,32,111,112,101,110,32,97,32,116,101,109,112,111,114,97,114,121,32,100,97,116,97,98,97,115,101,32,102,105,108,101,32,102,111,114,32,115,116,111,114,105,110,103,32,116,101,109,112,111,114,97,114,121,32,116,97,98,108,101,115,0,0,0,115,113,108,105,116,101,95,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,97,108,116,101,114,101,100,0,0,0,0,0,67,97,110,110,111, 116,32,97,100,100,32,97,32,80,82,73,77,65,82,89,32,75,69,89,32,99,111,108,117,109,110,0,67,97,110,110,111,116,32,97,100,100,32,97,32,85,78,73,81,85,69,32,99,111,108,117,109,110,0,0,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,82,69,70,69,82,69,78,67,69,83,32,99,111,108,117,109,110,32,119,105,116,104,32,110,111,110,45,78,85,76,76,32,100,101,102,97,117,108,116,32,118,97,108,117,101,0,0,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,78,79,84,32,78,85,76,76,32,99,111,108,117,109,110,32, 119,105,116,104,32,100,101,102,97,117,108,116,32,118,97,108,117,101,32,78,85,76,76,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,99,111,108,117,109,110,32,119,105,116,104,32,110,111,110,45,99,111,110,115,116,97,110,116,32,100,101,102,97,117,108,116,0,0,0,85,80,68,65,84,69,32,34,37,119,34,46,37,115,32,83,69,84,32,115,113,108,32,61,32,115,117,98,115,116,114,40,115,113,108,44,49,44,37,100,41,32,124,124,32,39,44,32,39,32,124,124,32,37,81,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,37, 100,41,32,87,72,69,82,69,32,116,121,112,101,32,61,32,39,116,97,98,108,101,39,32,65,78,68,32,110,97,109,101,32,61,32,37,81,0,0,0,0,116,98,108,95,110,97,109,101,61,37,81,0,0,0,0,0,116,121,112,101,61,39,116,114,105,103,103,101,114,39,32,65,78,68,32,40,37,115,41,0,110,97,109,101,61,37,81,0,37,115,32,79,82,32,110,97,109,101,61,37,81,0,0,0,45,0,0,0,0,0,0,0,116,104,101,114,101,32,105,115,32,97,108,114,101,97,100,121,32,97,110,111,116,104,101,114,32,116,97,98,108,101,32,111,114,32,105,110,100,101,120,32, 119,105,116,104,32,116,104,105,115,32,110,97,109,101,58,32,37,115,0,0,0,0,0,0,118,105,101,119,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,97,108,116,101,114,101,100,0,0,0,0,0,0,85,80,68,65,84,69,32,34,37,119,34,46,37,115,32,83,69,84,32,115,113,108,32,61,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,112,97,114,101,110,116,40,115,113,108,44,32,37,81,44,32,37,81,41,32,87,72,69,82,69,32,37,115,59,0,0,0,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,115,113,108,32,61,32,67,65, 83,69,32,87,72,69,78,32,116,121,112,101,32,61,32,39,116,114,105,103,103,101,114,39,32,84,72,69,78,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,114,105,103,103,101,114,40,115,113,108,44,32,37,81,41,69,76,83,69,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,97,98,108,101,40,115,113,108,44,32,37,81,41,32,69,78,68,44,32,116,98,108,95,110,97,109,101,32,61,32,37,81,44,32,110,97,109,101,32,61,32,67,65,83,69,32,87,72,69,78,32,116,121,112,101,61,39,116,97,98,108,101,39,32,84,72, 69,78,32,37,81,32,87,72,69,78,32,110,97,109,101,32,76,73,75,69,32,39,115,113,108,105,116,101,95,97,117,116,111,105,110,100,101,120,37,37,39,32,65,78,68,32,116,121,112,101,61,39,105,110,100,101,120,39,32,84,72,69,78,32,39,115,113,108,105,116,101,95,97,117,116,111,105,110,100,101,120,95,39,32,124,124,32,37,81,32,124,124,32,115,117,98,115,116,114,40,110,97,109,101,44,37,100,43,49,56,41,32,69,76,83,69,32,110,97,109,101,32,69,78,68,32,87,72,69,82,69,32,116,98,108,95,110,97,109,101,61,37,81,32,67,79,76, 76,65,84,69,32,110,111,99,97,115,101,32,65,78,68,32,40,116,121,112,101,61,39,116,97,98,108,101,39,32,79,82,32,116,121,112,101,61,39,105,110,100,101,120,39,32,79,82,32,116,121,112,101,61,39,116,114,105,103,103,101,114,39,41,59,0,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,0,85,80,68,65,84,69,32,34,37,119,34,46,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,32,115,101,116,32,110,97,109,101,32,61,32,37,81,32,87,72,69,82,69,32,110,97,109,101,32,61,32,37,81,0,0,0,0,0,0,0,85,80, 68,65,84,69,32,115,113,108,105,116,101,95,116,101,109,112,95,109,97,115,116,101,114,32,83,69,84,32,115,113,108,32,61,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,114,105,103,103,101,114,40,115,113,108,44,32,37,81,41,44,32,116,98,108,95,110,97,109,101,32,61,32,37,81,32,87,72,69,82,69,32,37,115,59,0,0,0,0,0,118,105,101,119,32,37,115,32,105,115,32,99,105,114,99,117,108,97,114,108,121,32,100,101,102,105,110,101,100,0,0,0,0,0,2,0,3,0,5,0,6,0,7,0,8,0,9,0,110,111,32,115,117,99,104,32,99,111, 108,108,97,116,105,111,110,32,115,101,113,117,101,110,99,101,58,32,37,115,0,0,3,2,1,0,0,0,0,0,73,78,84,69,71,69,82,0,37,115,58,37,100,0,0,0,97,32,71,82,79,85,80,32,66,89,32,99,108,97,117,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,98,101,102,111,114,101,32,72,65,86,73,78,71,0,0,0,0,0,79,82,68,69,82,0,0,0,71,82,79,85,80,0,0,0,97,103,103,114,101,103,97,116,101,32,102,117,110,99,116,105,111,110,115,32,97,114,101,32,110,111,116,32,97,108,108,111,119,101,100,32,105,110,32,116,104,101,32,71, 82,79,85,80,32,66,89,32,99,108,97,117,115,101,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,116,101,114,109,115,32,105,110,32,79,82,68,69,82,32,66,89,32,99,108,97,117,115,101,0,0,0,0,0,0,0,37,114,32,79,82,68,69,82,32,66,89,32,116,101,114,109,32,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,97,110,121,32,99,111,108,117,109,110,32,105,110,32,116,104,101,32,114,101,115,117,108,116,32,115,101,116,0,0,0,0,37,114,32,37,115,32,66,89,32,116,101,114,109,32,111,117,116,32,111,102,32,114,97,110,103, 101,32,45,32,115,104,111,117,108,100,32,98,101,32,98,101,116,119,101,101,110,32,49,32,97,110,100,32,37,100,0,116,111,111,32,109,97,110,121,32,116,101,114,109,115,32,105,110,32,37,115,32,66,89,32,99,108,97,117,115,101,0,0,69,120,112,114,101,115,115,105,111,110,32,116,114,101,101,32,105,115,32,116,111,111,32,108,97,114,103,101,32,40,109,97,120,105,109,117,109,32,100,101,112,116,104,32,37,100,41,0,102,117,110,99,116,105,111,110,115,0,0,0,0,0,0,0,115,101,99,111,110,100,32,97,114,103,117,109,101,110,116, 32,116,111,32,108,105,107,101,108,105,104,111,111,100,40,41,32,109,117,115,116,32,98,101,32,97,32,99,111,110,115,116,97,110,116,32,98,101,116,119,101,101,110,32,48,46,48,32,97,110,100,32,49,46,48,0,0,110,111,116,32,97,117,116,104,111,114,105,122,101,100,32,116,111,32,117,115,101,32,102,117,110,99,116,105,111,110,58,32,37,115,0,0,0,0,0,0,109,105,115,117,115,101,32,111,102,32,97,103,103,114,101,103,97,116,101,32,102,117,110,99,116,105,111,110,32,37,46,42,115,40,41,0,0,0,0,0,110,111,32,115,117,99,104, 32,102,117,110,99,116,105,111,110,58,32,37,46,42,115,0,0,119,114,111,110,103,32,110,117,109,98,101,114,32,111,102,32,97,114,103,117,109,101,110,116,115,32,116,111,32,102,117,110,99,116,105,111,110,32,37,46,42,115,40,41,0,0,0,0,115,117,98,113,117,101,114,105,101,115,0,0,0,0,0,0,112,97,114,97,109,101,116,101,114,115,0,0,0,0,0,0,37,115,32,112,114,111,104,105,98,105,116,101,100,32,105,110,32,67,72,69,67,75,32,99,111,110,115,116,114,97,105,110,116,115,0,0,0,0,0,0,37,115,32,112,114,111,104,105,98,105,116, 101,100,32,105,110,32,112,97,114,116,105,97,108,32,105,110,100,101,120,32,87,72,69,82,69,32,99,108,97,117,115,101,115,0,0,0,0,110,101,119,0,0,0,0,0,111,108,100,0,0,0,0,0,109,105,115,117,115,101,32,111,102,32,97,108,105,97,115,101,100,32,97,103,103,114,101,103,97,116,101,32,37,115,0,0,110,111,32,115,117,99,104,32,99,111,108,117,109,110,0,0,97,109,98,105,103,117,111,117,115,32,99,111,108,117,109,110,32,110,97,109,101,0,0,0,37,115,58,32,37,115,46,37,115,46,37,115,0,0,0,0,37,115,58,32,37,115,46,37,115, 0,0,0,0,0,0,0,37,115,58,32,37,115,0,0,82,79,87,73,68,0,0,0,97,99,99,101,115,115,32,116,111,32,37,115,46,37,115,46,37,115,32,105,115,32,112,114,111,104,105,98,105,116,101,100,0,0,0,0,0,0,0,0,97,99,99,101,115,115,32,116,111,32,37,115,46,37,115,32,105,115,32,112,114,111,104,105,98,105,116,101,100,0,0,0,95,82,79,87,73,68,95,0,79,73,68,0,0,0,0,0,115,113,108,105,116,101,95,115,113,95,37,112,0,0,0,0,116,111,111,32,109,97,110,121,32,114,101,102,101,114,101,110,99,101,115,32,116,111,32,34,37,115,34,58,32, 109,97,120,32,54,53,53,51,53,0,0,42,0,0,0,0,0,0,0,37,115,46,37,115,0,0,0,37,115,46,37,115,46,37,115,0,0,0,0,0,0,0,0,110,111,32,115,117,99,104,32,116,97,98,108,101,58,32,37,115,0,0,0,0,0,0,0,110,111,32,116,97,98,108,101,115,32,115,112,101,99,105,102,105,101,100,0,0,0,0,0,116,111,111,32,109,97,110,121,32,99,111,108,117,109,110,115,32,105,110,32,114,101,115,117,108,116,32,115,101,116,0,0,97,32,78,65,84,85,82,65,76,32,106,111,105,110,32,109,97,121,32,110,111,116,32,104,97,118,101,32,97,110,32,79,78,32, 111,114,32,85,83,73,78,71,32,99,108,97,117,115,101,0,0,0,0,0,0,0,99,97,110,110,111,116,32,104,97,118,101,32,98,111,116,104,32,79,78,32,97,110,100,32,85,83,73,78,71,32,99,108,97,117,115,101,115,32,105,110,32,116,104,101,32,115,97,109,101,32,106,111,105,110,0,0,99,97,110,110,111,116,32,106,111,105,110,32,117,115,105,110,103,32,99,111,108,117,109,110,32,37,115,32,45,32,99,111,108,117,109,110,32,110,111,116,32,112,114,101,115,101,110,116,32,105,110,32,98,111,116,104,32,116,97,98,108,101,115,0,110,111, 32,115,117,99,104,32,105,110,100,101,120,58,32,37,115,0,0,0,0,0,0,0,109,117,108,116,105,112,108,101,32,114,101,102,101,114,101,110,99,101,115,32,116,111,32,114,101,99,117,114,115,105,118,101,32,116,97,98,108,101,58,32,37,115,0,0,0,0,0,0,99,105,114,99,117,108,97,114,32,114,101,102,101,114,101,110,99,101,58,32,37,115,0,0,116,97,98,108,101,32,37,115,32,104,97,115,32,37,100,32,118,97,108,117,101,115,32,102,111,114,32,37,100,32,99,111,108,117,109,110,115,0,0,0,109,117,108,116,105,112,108,101,32,114,101, 99,117,114,115,105,118,101,32,114,101,102,101,114,101,110,99,101,115,58,32,37,115,0,0,0,0,0,0,0,114,101,99,117,114,115,105,118,101,32,114,101,102,101,114,101,110,99,101,32,105,110,32,97,32,115,117,98,113,117,101,114,121,58,32,37,115,0,0,0,110,111,32,115,117,99,104,32,109,111,100,117,108,101,58,32,37,115,0,0,0,0,0,0,118,116,97,98,108,101,32,99,111,110,115,116,114,117,99,116,111,114,32,102,97,105,108,101,100,58,32,37,115,0,0,0,118,116,97,98,108,101,32,99,111,110,115,116,114,117,99,116,111,114,32,100, 105,100,32,110,111,116,32,100,101,99,108,97,114,101,32,115,99,104,101,109,97,58,32,37,115,0,0,0,104,105,100,100,101,110,0,0,32,104,105,100,100,101,110,0,111,98,106,101,99,116,32,110,97,109,101,32,114,101,115,101,114,118,101,100,32,102,111,114,32,105,110,116,101,114,110,97,108,32,117,115,101,58,32,37,115,0,0,0,0,0,0,0,99,111,114,114,117,112,116,32,100,97,116,97,98,97,115,101,0,0,0,0,0,0,0,0,117,110,107,110,111,119,110,32,100,97,116,97,98,97,115,101,32,37,84,0,0,0,0,0,105,100,120,0,0,0,0,0,116,98,108, 0,0,0,0,0,2,0,1,0,0,0,0,0,0,0,0,0,46,0,0,0,0,0,0,0,0,0,0,0,176,71,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,1,0,0,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,160,71,0,0,0,0,0,0,0,0,0,0,0,0,0,0,66,66,66,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,128,71,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,116,97,116,95,103,101,116,0,0,0,0,0,0,0,0,37,108,108,117,0,0,0,0,32,37,108,108,117,0,0,0,115,116,97,116,95,112,117,115,104,0,0,0,0,0,0,0,115,116,97,116,95,105,110,105,116,0,0,0,0,0,0,0,216,71,0,0,232,71,0,0,248,71,0, 0,0,0,0,0,8,72,0,0,0,0,0,0,115,113,108,105,116,101,95,115,116,97,116,49,0,0,0,0,116,98,108,44,105,100,120,44,115,116,97,116,0,0,0,0,115,113,108,105,116,101,95,115,116,97,116,51,0,0,0,0,115,113,108,105,116,101,95,115,116,97,116,52,0,0,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,37,81,46,37,115,40,37,115,41,0,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,37,115,32,87,72,69,82,69,32,37,115,61,37,81,0,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,115,113,108,105,116,101,95,109,97,115,116,101,114,40,10,32, 32,116,121,112,101,32,116,101,120,116,44,10,32,32,110,97,109,101,32,116,101,120,116,44,10,32,32,116,98,108,95,110,97,109,101,32,116,101,120,116,44,10,32,32,114,111,111,116,112,97,103,101,32,105,110,116,101,103,101,114,44,10,32,32,115,113,108,32,116,101,120,116,10,41,0,67,82,69,65,84,69,32,84,69,77,80,32,84,65,66,76,69,32,115,113,108,105,116,101,95,116,101,109,112,95,109,97,115,116,101,114,40,10,32,32,116,121,112,101,32,116,101,120,116,44,10,32,32,110,97,109,101,32,116,101,120,116,44,10,32,32,116, 98,108,95,110,97,109,101,32,116,101,120,116,44,10,32,32,114,111,111,116,112,97,103,101,32,105,110,116,101,103,101,114,44,10,32,32,115,113,108,32,116,101,120,116,10,41,0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,97,116,116,97,99,104,101,100,32,100,97,116,97,98,97,115,101,115,32,109,117,115,116,32,117,115,101,32,116,104,101,32,115,97,109,101,32,116,101,120,116,32,101,110,99,111,100,105,110,103,32,97,115,32,109,97,105,110,32,100,97,116,97,98,97,115,101,0,0,0,0,0,117,110,115,117,112,112,111,114,116,101,100,32,102, 105,108,101,32,102,111,114,109,97,116,0,83,69,76,69,67,84,32,110,97,109,101,44,32,114,111,111,116,112,97,103,101,44,32,115,113,108,32,70,82,79,77,32,39,37,113,39,46,37,115,32,79,82,68,69,82,32,66,89,32,114,111,119,105,100,0,0,83,69,76,69,67,84,32,116,98,108,44,105,100,120,44,115,116,97,116,32,70,82,79,77,32,37,81,46,115,113,108,105,116,101,95,115,116,97,116,49,0,0,0,0,0,0,0,0,117,110,111,114,100,101,114,101,100,42,0,0,0,0,0,0,115,122,61,91,48,45,57,93,42,0,0,0,0,0,0,0,33,0,32,0,30,0,28,0,26,0,0,0, 0,0,0,0,105,110,118,97,108,105,100,32,114,111,111,116,112,97,103,101,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,109,97,108,102,111,114,109,101,100,32,100,97,116,97,98,97,115,101,32,115,99,104,101,109,97,32,40,37,115,41,0,0,37,115,32,45,32,37,115,0,117,110,97,98,108,101,32,116,111,32,105,100,101,110,116,105,102,121,32,116,104,101,32,111,98,106,101,99,116,32,116,111,32,98,101,32,114,101,105,110,100,101,120,101,100,0,0,0,44,32,0,0,0,0,0,0,46,0,0,0,0,0,0,0,109,105,115,117,115,101,32,111,102,32,97,103,103,114,101, 103,97,116,101,58,32,37,115,40,41,0,0,0,0,0,0,0,117,110,107,110,111,119,110,32,102,117,110,99,116,105,111,110,58,32,37,46,42,115,40,41,0,0,0,0,0,0,0,0,82,65,73,83,69,40,41,32,109,97,121,32,111,110,108,121,32,98,101,32,117,115,101,100,32,119,105,116,104,105,110,32,97,32,116,114,105,103,103,101,114,45,112,114,111,103,114,97,109,0,0,0,0,0,0,0,69,88,69,67,85,84,69,32,37,115,37,115,32,83,85,66,81,85,69,82,89,32,37,100,0,0,0,0,0,0,0,0,67,79,82,82,69,76,65,84,69,68,32,0,0,0,0,0,76,73,83,84,0,0,0,0,83,67, 65,76,65,82,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,120,0,0,0,0,0,0,104,101,120,32,108,105,116,101,114,97,108,32,116,111,111,32,98,105,103,58,32,37,115,0,1,0,1,0,0,0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0,208,75,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,100,101,116,97,99,104,0,0,0,110,111,32,115,117,99,104,32,100,97,116,97,98,97,115,101,58,32,37,115,0,0,0,0,99,97,110,110,111,116,32,100,101,116,97,99,104,32,100,97,116,97,98,97,115,101,32,37,115,0,0,0,0,0,0,0,99,97,110,110, 111,116,32,68,69,84,65,67,72,32,100,97,116,97,98,97,115,101,32,119,105,116,104,105,110,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,37,115,32,105,115,32,108,111,99,107,101,100,0,0,0,3,0,1,0,0,0,0,0,0,0,0,0,50,0,0,0,0,0,0,0,0,0,0,0,136,76,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,97,116,116,97,99,104,0,0,0,116,111,111,32,109,97,110,121,32,97,116,116,97,99,104,101,100,32,100,97,116,97,98,97,115,101,115,32,45,32,109,97,120,32,37,100,0,0,0,0,99, 97,110,110,111,116,32,65,84,84,65,67,72,32,100,97,116,97,98,97,115,101,32,119,105,116,104,105,110,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,37,115,32,105,115,32,97,108,114,101,97,100,121,32,105,110,32,117,115,101,0,0,0,100,97,116,97,98,97,115,101,32,105,115,32,97,108,114,101,97,100,121,32,97,116,116,97,99,104,101,100,0,0,0,0,117,110,97,98,108,101,32,116,111,32,111,112,101,110,32,100,97,116,97,98,97,115,101,58,32,37,115,0,0,0,0,0,110,111,32,115,117,99, 104,32,116,114,105,103,103,101,114,58,32,37,83,0,0,0,0,0,108,0,246,0,97,0,1,0,47,0,1,2,78,2,247,1,97,0,1,0,47,0,0,2,78,2,247,1,95,0,0,0,9,0,254,0,0,0,0,0,116,101,109,112,111,114,97,114,121,32,116,114,105,103,103,101,114,32,109,97,121,32,110,111,116,32,104,97,118,101,32,113,117,97,108,105,102,105,101,100,32,110,97,109,101,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,116,114,105,103,103,101,114,115,32,111,110,32,118,105,114,116,117,97,108,32,116,97,98,108,101,115,0,0,0,0,0,0,0,0,116,114, 105,103,103,101,114,32,37,84,32,97,108,114,101,97,100,121,32,101,120,105,115,116,115,0,0,0,0,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,116,114,105,103,103,101,114,32,111,110,32,115,121,115,116,101,109,32,116,97,98,108,101,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,37,115,32,116,114,105,103,103,101,114,32,111,110,32,118,105,101,119,58,32,37,83,0,0,0,0,66,69,70,79,82,69,0,0,65,70,84,69,82,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,73,78,83,84,69,65,68,32,79,70, 32,116,114,105,103,103,101,114,32,111,110,32,116,97,98,108,101,58,32,37,83,0,0,0,37,115,32,37,84,32,99,97,110,110,111,116,32,114,101,102,101,114,101,110,99,101,32,111,98,106,101,99,116,115,32,105,110,32,100,97,116,97,98,97,115,101,32,37,115,0,0,0,37,115,32,99,97,110,110,111,116,32,117,115,101,32,118,97,114,105,97,98,108,101,115,0,73,78,83,69,82,84,32,73,78,84,79,32,37,81,46,37,115,32,86,65,76,85,69,83,40,39,116,114,105,103,103,101,114,39,44,37,81,44,37,81,44,48,44,39,67,82,69,65,84,69,32,84,82,73, 71,71,69,82,32,37,113,39,41,0,116,121,112,101,61,39,116,114,105,103,103,101,114,39,32,65,78,68,32,110,97,109,101,61,39,37,113,39,0,0,0,0,45,37,84,0,0,0,0,0,114,101,115,117,108,116,0,0,96,87,0,0,0,0,0,0,0,0,0,0,152,82,0,0,1,1,0,0,0,0,0,0,112,87,0,0,2,0,0,0,0,0,16,0,128,87,0,0,3,0,0,0,0,0,0,0,24,82,0,0,4,1,0,0,0,0,0,0,144,87,0,0,2,0,0,0,16,0,0,0,160,87,0,0,5,0,0,0,0,0,0,0,184,87,0,0,2,0,0,0,8,0,0,0,208,87,0,0,6,0,0,0,0,0,0,0,224,87,0,0,7,0,0,0,0,0,0,0,240,87,0,0,2,0,0,0,128,0,0,0,0,88,0,0,9,1,0,0,0, 0,0,0,16,88,0,0,10,1,0,0,0,0,0,0,40,88,0,0,2,0,0,0,0,0,0,1,64,88,0,0,2],"i8",Ha,w.Ab+10240); H([1,0,0,120,85,0,0,11,0,0,0,0,0,0,0,88,88,0,0,12,1,0,0,0,0,0,0,112,88,0,0,13,1,0,0,0,0,0,0,136,88,0,0,2,0,0,0,0,0,8,0,152,88,0,0,0,0,0,0,0,0,0,0,168,88,0,0,2,0,0,0,32,0,0,0,192,88,0,0,2,0,0,0,4,0,0,0,208,88,0,0,2,0,0,0,0,32,0,0,240,88,0,0,14,1,0,0,0,0,0,0,8,89,0,0,15,1,0,0,0,0,0,0,24,89,0,0,16,1,0,0,0,0,0,0,56,84,0,0,17,1,0,0,0,0,0,0,112,82,0,0,18,1,0,0,0,0,0,0,128,82,0,0,19,0,0,0,0,0,0,0,40,89,0,0,2,0,0,0,0,128,0,0,96,82,0,0,21,0,0,0,0,0,0,0,64,89,0,0,22,1,0,0,0,0,0,0,192,82,0,0,23,0,0,0,0,0,0, 0,80,89,0,0,22,1,0,0,0,0,0,0,40,82,0,0,24,0,0,0,0,0,0,0,96,89,0,0,2,0,0,0,0,0,0,2,112,89,0,0,17,1,0,0,0,0,0,0,128,89,0,0,2,0,0,0,0,64,0,0,152,89,0,0,2,0,0,0,0,0,4,0,176,89,0,0,2,0,0,0,0,0,2,0,208,89,0,0,0,0,0,0,0,0,0,0,56,82,0,0,25,0,0,0,0,0,0,0,224,89,0,0,2,0,0,0,64,0,0,0,248,89,0,0,26,0,0,0,0,0,0,0,40,86,0,0,27,0,0,0,0,0,0,0,8,90,0,0,28,1,0,0,0,0,0,0,24,83,0,0,29,1,0,0,0,0,0,0,16,90,0,0,30,1,0,0,0,0,0,0,208,82,0,0,31,0,0,0,0,0,0,0,224,82,0,0,32,0,0,0,0,0,0,0,56,86,0,0,33,0,0,0,0,0,0,0,32,90,0,0, 0,0,0,0,0,0,0,0,8,86,0,0,34,0,0,0,0,0,0,0,48,90,0,0,35,1,0,0,0,0,0,0,64,90,0,0,2,0,0,0,0,8,1,0,0,0,0,0,4,0,0,0,51,0,1,3,137,1,8,0,25,0,2,0,90,1,2,1,137,1,8,0,25,0,1,0,154,0,0,0,35,1,1,0,0,0,0,0,99,97,99,104,101,95,115,105,122,101,0,0,0,0,0,0,112,97,103,101,95,115,105,122,101,0,0,0,0,0,0,0,115,101,99,117,114,101,95,100,101,108,101,116,101,0,0,0,110,111,114,109,97,108,0,0,101,120,99,108,117,115,105,118,101,0,0,0,0,0,0,0,108,111,99,107,105,110,103,95,109,111,100,101,0,0,0,0,106,111,117,114,110,97,108, 95,109,111,100,101,0,0,0,0,106,111,117,114,110,97,108,95,115,105,122,101,95,108,105,109,105,116,0,0,0,0,0,0,97,117,116,111,95,118,97,99,117,117,109,0,0,0,0,0,4,0,1,0,51,0,1,4,45,1,0,0,24,0,2,0,25,0,1,0,52,0,7,1,109,109,97,112,95,115,105,122,101,0,0,0,0,0,0,0,116,101,109,112,95,115,116,111,114,101,0,0,0,0,0,0,116,101,109,112,95,115,116,111,114,101,95,100,105,114,101,99,116,111,114,121,0,0,0,0,110,111,116,32,97,32,119,114,105,116,97,98,108,101,32,100,105,114,101,99,116,111,114,121,0,0,0,0,0,0,0,0,115, 121,110,99,104,114,111,110,111,117,115,0,0,0,0,0,83,97,102,101,116,121,32,108,101,118,101,108,32,109,97,121,32,110,111,116,32,98,101,32,99,104,97,110,103,101,100,32,105,110,115,105,100,101,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,99,105,100,0,0,0,0,0,110,97,109,101,0,0,0,0,116,121,112,101,0,0,0,0,110,111,116,110,117,108,108,0,100,102,108,116,95,118,97,108,117,101,0,0,0,0,0,0,112,107,0,0,0,0,0,0,116,97,98,108,101,0,0,0,119,105,100,116,104,0,0,0,104,101,105,103,104,116,0,0,115,101, 113,110,111,0,0,0,115,101,113,0,0,0,0,0,117,110,105,113,117,101,0,0,102,105,108,101,0,0,0,0,105,100,0,0,0,0,0,0,102,114,111,109,0,0,0,0,116,111,0,0,0,0,0,0,111,110,95,117,112,100,97,116,101,0,0,0,0,0,0,0,111,110,95,100,101,108,101,116,101,0,0,0,0,0,0,0,109,97,116,99,104,0,0,0,78,79,78,69,0,0,0,0,112,97,114,101,110,116,0,0,102,107,105,100,0,0,0,0,138,1,0,0,97,0,3,0,35,3,1,0,0,0,0,0,105,110,116,101,103,114,105,116,121,95,99,104,101,99,107,0,42,42,42,32,105,110,32,100,97,116,97,98,97,115,101,32,37,115, 32,42,42,42,10,0,78,85,76,76,32,118,97,108,117,101,32,105,110,32,37,115,46,37,115,0,0,0,0,0,114,111,119,32,0,0,0,0,32,109,105,115,115,105,110,103,32,102,114,111,109,32,105,110,100,101,120,32,0,0,0,0,110,111,110,45,117,110,105,113,117,101,32,101,110,116,114,121,32,105,110,32,105,110,100,101,120,32,0,0,0,0,0,0,119,114,111,110,103,32,35,32,111,102,32,101,110,116,114,105,101,115,32,105,110,32,105,110,100,101,120,32,0,0,0,0,111,107,0,0,0,0,0,0,40,85,0,0,1,0,0,0,48,85,0,0,1,0,0,0,56,85,0,0,2,0,0,0,72,85, 0,0,3,0,0,0,88,85,0,0,2,0,0,0,96,85,0,0,3,0,0,0,104,85,0,0,0,0,0,0,112,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,84,70,56,0,0,0,0,85,84,70,45,56,0,0,0,85,84,70,45,49,54,108,101,0,0,0,0,0,0,0,0,85,84,70,45,49,54,98,101,0,0,0,0,0,0,0,0,85,84,70,49,54,108,101,0,85,84,70,49,54,98,101,0,85,84,70,45,49,54,0,0,85,84,70,49,54,0,0,0,101,110,99,111,100,105,110,103,0,0,0,0,0,0,0,0,117,110,115,117,112,112,111,114,116,101,100,32,101,110,99,111,100,105,110,103,58,32,37,115,0,0,0,0,0,0,0,0,4,0,1,0,25,0,1,0,52,0,0,1,0,0, 0,0,4,0,0,0,51,0,1,0,35,1,1,0,0,0,0,0,99,111,109,112,105,108,101,95,111,112,116,105,111,110,0,0,102,117,108,108,0,0,0,0,114,101,115,116,97,114,116,0,98,117,115,121,0,0,0,0,108,111,103,0,0,0,0,0,99,104,101,99,107,112,111,105,110,116,101,100,0,0,0,0,119,97,108,95,97,117,116,111,99,104,101,99,107,112,111,105,110,116,0,0,0,0,0,0,116,105,109,101,111,117,116,0,115,111,102,116,95,104,101,97,112,95,108,105,109,105,116,0,116,104,114,101,97,100,115,0,37,95,0,0,0,0,0,0,102,111,114,101,105,103,110,32,107,101, 121,32,109,105,115,109,97,116,99,104,32,45,32,34,37,119,34,32,114,101,102,101,114,101,110,99,105,110,103,32,34,37,119,34,0,0,0,0,83,69,84,32,78,85,76,76,0,0,0,0,0,0,0,0,83,69,84,32,68,69,70,65,85,76,84,0,0,0,0,0,67,65,83,67,65,68,69,0,82,69,83,84,82,73,67,84,0,0,0,0,0,0,0,0,78,79,32,65,67,84,73,79,78,0,0,0,0,0,0,0,116,101,109,112,111,114,97,114,121,32,115,116,111,114,97,103,101,32,99,97,110,110,111,116,32,98,101,32,99,104,97,110,103,101,100,32,102,114,111,109,32,119,105,116,104,105,110,32,97,32,116, 114,97,110,115,97,99,116,105,111,110,0,0,0,110,111,110,101,0,0,0,0,105,110,99,114,101,109,101,110,116,97,108,0,0,0,0,0,48,87,0,0,56,87,0,0,64,87,0,0,72,87,0,0,184,18,0,0,88,87,0,0,100,101,108,101,116,101,0,0,112,101,114,115,105,115,116,0,111,102,102,0,0,0,0,0,116,114,117,110,99,97,116,101,0,0,0,0,0,0,0,0,119,97,108,0,0,0,0,0,97,112,112,108,105,99,97,116,105,111,110,95,105,100,0,0,97,117,116,111,109,97,116,105,99,95,105,110,100,101,120,0,98,117,115,121,95,116,105,109,101,111,117,116,0,0,0,0,99,97, 99,104,101,95,115,112,105,108,108,0,0,0,0,0,99,97,115,101,95,115,101,110,115,105,116,105,118,101,95,108,105,107,101,0,0,0,0,0,99,104,101,99,107,112,111,105,110,116,95,102,117,108,108,102,115,121,110,99,0,0,0,0,99,111,108,108,97,116,105,111,110,95,108,105,115,116,0,0,99,111,109,112,105,108,101,95,111,112,116,105,111,110,115,0,99,111,117,110,116,95,99,104,97,110,103,101,115,0,0,0,100,97,116,97,98,97,115,101,95,108,105,115,116,0,0,0,100,101,102,97,117,108,116,95,99,97,99,104,101,95,115,105,122,101,0, 0,0,0,0,0,100,101,102,101,114,95,102,111,114,101,105,103,110,95,107,101,121,115,0,0,0,0,0,0,101,109,112,116,121,95,114,101,115,117,108,116,95,99,97,108,108,98,97,99,107,115,0,0,102,111,114,101,105,103,110,95,107,101,121,95,99,104,101,99,107,0,0,0,0,0,0,0,102,111,114,101,105,103,110,95,107,101,121,95,108,105,115,116,0,0,0,0,0,0,0,0,102,111,114,101,105,103,110,95,107,101,121,115,0,0,0,0,102,114,101,101,108,105,115,116,95,99,111,117,110,116,0,0,102,117,108,108,95,99,111,108,117,109,110,95,110,97,109, 101,115,0,0,0,0,0,0,0,102,117,108,108,102,115,121,110,99,0,0,0,0,0,0,0,105,103,110,111,114,101,95,99,104,101,99,107,95,99,111,110,115,116,114,97,105,110,116,115,0,0,0,0,0,0,0,0,105,110,99,114,101,109,101,110,116,97,108,95,118,97,99,117,117,109,0,0,0,0,0,0,105,110,100,101,120,95,105,110,102,111,0,0,0,0,0,0,105,110,100,101,120,95,108,105,115,116,0,0,0,0,0,0,108,101,103,97,99,121,95,102,105,108,101,95,102,111,114,109,97,116,0,0,0,0,0,0,109,97,120,95,112,97,103,101,95,99,111,117,110,116,0,0,112,97,103, 101,95,99,111,117,110,116,0,0,0,0,0,0,113,117,101,114,121,95,111,110,108,121,0,0,0,0,0,0,113,117,105,99,107,95,99,104,101,99,107,0,0,0,0,0,114,101,97,100,95,117,110,99,111,109,109,105,116,116,101,100,0,0,0,0,0,0,0,0,114,101,99,117,114,115,105,118,101,95,116,114,105,103,103,101,114,115,0,0,0,0,0,0,114,101,118,101,114,115,101,95,117,110,111,114,100,101,114,101,100,95,115,101,108,101,99,116,115,0,0,0,0,0,0,0,115,99,104,101,109,97,95,118,101,114,115,105,111,110,0,0,115,104,111,114,116,95,99,111,108,117, 109,110,95,110,97,109,101,115,0,0,0,0,0,0,115,104,114,105,110,107,95,109,101,109,111,114,121,0,0,0,115,116,97,116,115,0,0,0,116,97,98,108,101,95,105,110,102,111,0,0,0,0,0,0,117,115,101,114,95,118,101,114,115,105,111,110,0,0,0,0,119,97,108,95,99,104,101,99,107,112,111,105,110,116,0,0,119,114,105,116,97,98,108,101,95,115,99,104,101,109,97,0,110,111,32,115,117,99,104,32,105,110,100,101,120,58,32,37,83,0,0,0,0,0,0,0,105,110,100,101,120,32,97,115,115,111,99,105,97,116,101,100,32,119,105,116,104,32,85, 78,73,81,85,69,32,111,114,32,80,82,73,77,65,82,89,32,75,69,89,32,99,111,110,115,116,114,97,105,110,116,32,99,97,110,110,111,116,32,98,101,32,100,114,111,112,112,101,100,0,0,0,0,0,0,0,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,37,115,32,87,72,69,82,69,32,110,97,109,101,61,37,81,32,65,78,68,32,116,121,112,101,61,39,105,110,100,101,120,39,0,0,0,0,0,0,0,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,114,111,111,116,112,97,103,101,61,37,100,32,87,72,69,82,69,32,35,37,100,32,65,78,68,32,114, 111,111,116,112,97,103,101,61,35,37,100,0,115,113,108,105,116,101,95,115,116,97,116,37,100,0,0,0,48,0,0,0,0,0,0,0,118,97,114,105,97,98,108,101,32,110,117,109,98,101,114,32,109,117,115,116,32,98,101,32,98,101,116,119,101,101,110,32,63,49,32,97,110,100,32,63,37,100,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,83,81,76,32,118,97,114,105,97,98,108,101,115,0,0,116,97,98,108,101,32,37,83,32,104,97,115,32,110,111,32,99,111,108,117,109,110,32,110,97,109,101,100,32,37,115,0,116,97,98,108,101,32,37,83,32,104, 97,115,32,37,100,32,99,111,108,117,109,110,115,32,98,117,116,32,37,100,32,118,97,108,117,101,115,32,119,101,114,101,32,115,117,112,112,108,105,101,100,0,0,0,0,0,37,100,32,118,97,108,117,101,115,32,102,111,114,32,37,100,32,99,111,108,117,109,110,115,0,0,0,0,0,0,0,0,114,111,119,115,32,105,110,115,101,114,116,101,100,0,0,0,97,116,32,109,111,115,116,32,37,100,32,116,97,98,108,101,115,32,105,110,32,97,32,106,111,105,110,0,0,0,0,0,65,63,62,64,0,0,0,0,0,0,108,105,65,62,64,63,116,114,113,115,0,0,0,0,9,8, 0,0,0,0,0,0,108,105,0,0,0,0,0,0,83,69,65,82,67,72,0,0,83,67,65,78,0,0,0,0,32,83,85,66,81,85,69,82,89,32,37,100,0,0,0,0,32,84,65,66,76,69,32,37,115,0,0,0,0,0,0,0,32,65,83,32,37,115,0,0,80,82,73,77,65,82,89,32,75,69,89,0,0,0,0,0,65,85,84,79,77,65,84,73,67,32,67,79,86,69,82,73,78,71,32,73,78,68,69,88,0,0,0,0,0,0,0,0,67,79,86,69,82,73,78,71,32,73,78,68,69,88,32,37,115,0,0,0,0,0,0,0,73,78,68,69,88,32,37,115,0,0,0,0,0,0,0,0,32,85,83,73,78,71,32,0,40,114,111,119,105,100,61,63,41,0,0,0,0,0,0,0,40,114,111, 119,105,100,62,63,32,65,78,68,32,114,111,119,105,100,60,63,41,0,0,0,40,114,111,119,105,100,62,63,41,0,0,0,0,0,0,0,40,114,111,119,105,100,60,63,41,0,0,0,0,0,0,0,32,85,83,73,78,71,32,73,78,84,69,71,69,82,32,80,82,73,77,65,82,89,32,75,69,89,32,0,0,0,0,0,32,86,73,82,84,85,65,76,32,84,65,66,76,69,32,73,78,68,69,88,32,37,100,58,37,115,0,0,0,0,0,0,32,40,0,0,0,0,0,0,61,0,0,0,0,0,0,0,32,65,78,68,32,0,0,0,65,78,89,40,37,115,41,0,62,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,41,0,0,0,0,0,0,0,97,117,116,111,109,97,116,105, 99,32,105,110,100,101,120,32,111,110,32,37,115,40,37,115,41,0,0,0,0,0,0,0,97,117,116,111,45,105,110,100,101,120,0,0,0,0,0,0,110,111,32,113,117,101,114,121,32,115,111,108,117,116,105,111,110,0,0,0,0,0,0,0,10,10,9,9,8,8,7,7,7,6,6,6,5,5,5,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,37,115,46,120,66,101,115,116,73,110,100,101,120,40,41,32,109,97,108,102,117,110,99,116,105,111,110,0,0,0,0,0,116,97,98,108,101,32,37,115,58,32,120,66,101,115,116,73,110,100,101,120,32,114,101,116,117,114,110,101,100,32,97,110,32,105, 110,118,97,108,105,100,32,112,108,97,110,0,0,0,83,81,0,0,0,0,0,0,45,45,32,84,82,73,71,71,69,82,32,37,115,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,2,0,1,0,1,1,4,36,1,4,5,16,0,2,2,2,2,0,2,2,0,0,32,0,0,4,5,4,4,0,0,1,1,5,5,0,0,0,2,2,16,0,0,0,0,0,0,0,0,0,17,17,17,17,8,17,17,17,17,76,76,2,2,0,5,5,21,21,21,21,21,21,0,76,76,76,76,76,76,76,76,76,76,0,36,2,0,0,0,0,0,2,0,1,1,1,1,8,8,0,2,1,1,1,1,2,0,0,2,2,0,0,0,0,0,0,12,69,21,1,2,2,0,1,8,5,5,5,0,1,0,0,0,0,0,0,0,1,0,2,2,1,0,0,0,0,0,0,16,16,2,16,0,0,0,0,0,1,2,3,4,6,8,8,0, 0,0,0,0,0,0,0,16,67,0,0,3,0,0,0,8,67,0,0,3,0,0,0,111,105,100,0,0,0,0,0,70,79,82,69,73,71,78,32,75,69,89,32,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108,101,100,0,0,0,37,115,46,114,111,119,105,100,0,0,0,0,0,0,0,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,109,111,100,105,102,105,101,100,0,0,0,0,99,97,110,110,111,116,32,109,111,100,105,102,121,32,37,115,32,98,101,99,97,117,115,101,32,105,116,32,105,115,32,97,32,118,105,101,119,0,0,0,110,111,32,115,117,99,104,32, 99,111,108,117,109,110,58,32,37,115,0,0,0,0,0,0,114,111,119,115,32,117,112,100,97,116,101,100,0,0,0,0,95,114,111,119,105,100,95,0,116,111,111,32,109,97,110,121,32,99,111,108,117,109,110,115,32,105,110,32,37,115,0,0,114,111,119,115,32,100,101,108,101,116,101,100,0,0,0,0,110,97,116,117,114,97,108,101,102,116,111,117,116,101,114,105,103,104,116,102,117,108,108,105,110,110,101,114,99,114,111,115,115,0,0,0,0,0,0,0,0,7,4,6,4,40,10,5,32,14,5,48,19,4,56,23,5,1,28,5,3,0,0,0,117,110,107,110,111,119,110,32, 111,114,32,117,110,115,117,112,112,111,114,116,101,100,32,106,111,105,110,32,116,121,112,101,58,32,37,84,32,37,84,37,115,37,84,0,0,0,0,0,82,73,71,72,84,32,97,110,100,32,70,85,76,76,32,79,85,84,69,82,32,74,79,73,78,115,32,97,114,101,32,110,111,116,32,99,117,114,114,101,110,116,108,121,32,115,117,112,112,111,114,116,101,100,0,0,97,32,74,79,73,78,32,99,108,97,117,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,98,101,102,111,114,101,32,37,115,0,0,0,0,0,79,78,0,0,0,0,0,0,85,83,73,78,71,0,0,0, 68,73,83,84,73,78,67,84,0,0,0,0,0,0,0,0,71,82,79,85,80,32,66,89,0,0,0,0,0,0,0,0,82,73,71,72,84,32,80,65,82,84,32,79,70,32,79,82,68,69,82,32,66,89,0,0,79,82,68,69,82,32,66,89,0,0,0,0,0,0,0,0,99,111,108,117,109,110,37,100,0,0,0,0,0,0,0,0,83,67,65,78,32,84,65,66,76,69,32,37,115,37,115,37,115,0,0,0,0,0,0,0,32,85,83,73,78,71,32,67,79,86,69,82,73,78,71,32,73,78,68,69,88,32,0,0,68,73,83,84,73,78,67,84,32,97,103,103,114,101,103,97,116,101,115,32,109,117,115,116,32,104,97,118,101,32,101,120,97,99,116,108, 121,32,111,110,101,32,97,114,103,117,109,101,110,116,0,0,0,0,0,0,85,83,69,32,84,69,77,80,32,66,45,84,82,69,69,32,70,79,82,32,37,115,0,0,79,82,68,69,82,32,66,89,32,99,108,97,117,115,101,32,115,104,111,117,108,100,32,99,111,109,101,32,97,102,116,101,114,32,37,115,32,110,111,116,32,98,101,102,111,114,101,0,76,73,77,73,84,32,99,108,97,117,115,101,32,115,104,111,117,108,100,32,99,111,109,101,32,97,102,116,101,114,32,37,115,32,110,111,116,32,98,101,102,111,114,101,0,0,0,0,97,108,108,32,86,65,76,85,69,83, 32,109,117,115,116,32,104,97,118,101,32,116,104,101,32,115,97,109,101,32,110,117,109,98,101,114,32,111,102,32,116,101,114,109,115,0,0,0,83,69,76,69,67,84,115,32,116,111,32,116,104,101,32,108,101,102,116,32,97,110,100,32,114,105,103,104,116,32,111,102,32,37,115,32,100,111,32,110,111,116,32,104,97,118,101,32,116,104,101,32,115,97,109,101,32,110,117,109,98,101,114,32,111,102,32,114,101,115,117,108,116,32,99,111,108,117,109,110,115,0,0,0,0,0,0,0,67,79,77,80,79,85,78,68,32,83,85,66,81,85,69,82,73,69,83, 32,37,100,32,65,78,68,32,37,100,32,37,115,40,37,115,41,0,0,0,0,85,83,73,78,71,32,84,69,77,80,32,66,45,84,82,69,69,32,0,0,0,0,0,0,85,78,73,79,78,32,65,76,76,0,0,0,0,0,0,0,73,78,84,69,82,83,69,67,84,0,0,0,0,0,0,0,69,88,67,69,80,84,0,0,85,78,73,79,78,0,0,0,111,110,108,121,32,97,32,115,105,110,103,108,101,32,114,101,115,117,108,116,32,97,108,108,111,119,101,100,32,102,111,114,32,97,32,83,69,76,69,67,84,32,116,104,97,116,32,105,115,32,112,97,114,116,32,111,102,32,97,110,32,101,120,112,114,101,115,115, 105,111,110,0,112,97,114,97,109,101,116,101,114,115,32,97,114,101,32,110,111,116,32,97,108,108,111,119,101,100,32,105,110,32,118,105,101,119,115,0,0,0,0,0,118,105,101,119,0,0,0,0,115,113,108,105,116,101,95,115,116,97,116,0,0,0,0,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,100,114,111,112,112,101,100,0,0,0,0,0,117,115,101,32,68,82,79,80,32,84,65,66,76,69,32,116,111,32,100,101,108,101,116,101,32,116,97,98,108,101,32,37,115,0,0,0,0,0,0,0,117,115,101,32,68,82,79,80,32,86,73, 69,87,32,116,111,32,100,101,108,101,116,101,32,118,105,101,119,32,37,115,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,32,87,72,69,82,69,32,110,97,109,101,61,37,81,0,0,0,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,37,115,32,87,72,69,82,69,32,116,98,108,95,110,97,109,101,61,37,81,32,97,110,100,32,116,121,112,101,33,61,39,116,114,105,103,103,101,114,39,0,102,111,114,101,105,103,110,32,107,101,121,32,111,110,32,37,115,32,115,104,111,117,108, 100,32,114,101,102,101,114,101,110,99,101,32,111,110,108,121,32,111,110,101,32,99,111,108,117,109,110,32,111,102,32,116,97,98,108,101,32,37,84,0,0,110,117,109,98,101,114,32,111,102,32,99,111,108,117,109,110,115,32,105,110,32,102,111,114,101,105,103,110,32,107,101,121,32,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,116,104,101,32,110,117,109,98,101,114,32,111,102,32,99,111,108,117,109,110,115,32,105,110,32,116,104,101,32,114,101,102,101,114,101,110,99,101,100,32,116,97,98,108,101,0,0,0,117, 110,107,110,111,119,110,32,99,111,108,117,109,110,32,34,37,115,34,32,105,110,32,102,111,114,101,105,103,110,32,107,101,121,32,100,101,102,105,110,105,116,105,111,110,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,97,32,84,69,77,80,32,105,110,100,101,120,32,111,110,32,110,111,110,45,84,69,77,80,32,116,97,98,108,101,32,34,37,115,34,0,0,0,0,0,0,0,97,108,116,101,114,116,97,98,95,0,0,0,0,0,0,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,105,110,100,101,120,101,100,0, 0,0,0,0,118,105,101,119,115,32,109,97,121,32,110,111,116,32,98,101,32,105,110,100,101,120,101,100,0,0,0,0,0,0,0,0,118,105,114,116,117,97,108,32,116,97,98,108,101,115,32,109,97,121,32,110,111,116,32,98,101,32,105,110,100,101,120,101,100,0,0,0,0,0,0,0,116,104,101,114,101,32,105,115,32,97,108,114,101,97,100,121,32,97,32,116,97,98,108,101,32,110,97,109,101,100,32,37,115,0,0,0,0,0,0,0,105,110,100,101,120,32,37,115,32,97,108,114,101,97,100,121,32,101,120,105,115,116,115,0,115,113,108,105,116,101,95,97, 117,116,111,105,110,100,101,120,95,37,115,95,37,100,0,0,116,97,98,108,101,32,37,115,32,104,97,115,32,110,111,32,99,111,108,117,109,110,32,110,97,109,101,100,32,37,115,0,99,111,110,102,108,105,99,116,105,110,103,32,79,78,32,67,79,78,70,76,73,67,84,32,99,108,97,117,115,101,115,32,115,112,101,99,105,102,105,101,100,0,0,0,0,0,0,0,67,82,69,65,84,69,37,115,32,73,78,68,69,88,32,37,46,42,115,0,0,0,0,0,32,85,78,73,81,85,69,0,73,78,83,69,82,84,32,73,78,84,79,32,37,81,46,37,115,32,86,65,76,85,69,83,40,39,105, 110,100,101,120,39,44,37,81,44,37,81,44,35,37,100,44,37,81,41,59,0,110,97,109,101,61,39,37,113,39,32,65,78,68,32,116,121,112,101,61,39,105,110,100,101,120,39,0,0,0,0,0,0,116,97,98,108,101,32,34,37,115,34,32,104,97,115,32,109,111,114,101,32,116,104,97,110,32,111,110,101,32,112,114,105,109,97,114,121,32,107,101,121,0,0,0,0,0,0,0,0,65,85,84,79,73,78,67,82,69,77,69,78,84,32,105,115,32,111,110,108,121,32,97,108,108,111,119,101,100,32,111,110,32,97,110,32,73,78,84,69,71,69,82,32,80,82,73,77,65,82,89,32, 75,69,89,0,100,101,102,97,117,108,116,32,118,97,108,117,101,32,111,102,32,99,111,108,117,109,110,32,91,37,115,93,32,105,115,32,110,111,116,32,99,111,110,115,116,97,110,116,0,0,0,0,116,111,111,32,109,97,110,121,32,99,111,108,117,109,110,115,32,111,110,32,37,115,0,0,100,117,112,108,105,99,97,116,101,32,99,111,108,117,109,110,32,110,97,109,101,58,32,37,115,0,0,0,0,0,0,0,65,85,84,79,73,78,67,82,69,77,69,78,84,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,87,73,84,72,79,85,84,32,82,79,87, 73,68,32,116,97,98,108,101,115,0,0,0,0,0,0,0,80,82,73,77,65,82,89,32,75,69,89,32,109,105,115,115,105,110,103,32,111,110,32,116,97,98,108,101,32,37,115,0,84,65,66,76,69,0,0,0,86,73,69,87,0,0,0,0,67,82,69,65,84,69,32,37,115,32,37,46,42,115,0,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,116,121,112,101,61,39,37,115,39,44,32,110,97,109,101,61,37,81,44,32,116,98,108,95,110,97,109,101,61,37,81,44,32,114,111,111,116,112,97,103,101,61,35,37,100,44,32,115,113,108,61,37,81,32,87,72,69,82,69,32,114, 111,119,105,100,61,35,37,100,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,37,81,46,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,40,110,97,109,101,44,115,101,113,41,0,0,0,0,0,0,0,116,98,108,95,110,97,109,101,61,39,37,113,39,32,65,78,68,32,116,121,112,101,33,61,39,116,114,105,103,103,101,114,39,0,0,0,0,0,0,0,10,32,32,0,0,0,0,0,44,10,32,32,0,0,0,0,10,41,0,0,0,0,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,0,0,0,192,4,0,0,88,105,0,0,96,105,0,0,104,105,0,0,112,105,0,0,0,0,0,0,32,84,69,88,84,0, 0,0,32,78,85,77,0,0,0,0,32,73,78,84,0,0,0,0,32,82,69,65,76,0,0,0,116,101,109,112,111,114,97,114,121,32,116,97,98,108,101,32,110,97,109,101,32,109,117,115,116,32,98,101,32,117,110,113,117,97,108,105,102,105,101,100,0,0,0,0,0,0,0,0,116,97,98,108,101,32,37,84,32,97,108,114,101,97,100,121,32,101,120,105,115,116,115,0,116,104,101,114,101,32,105,115,32,97,108,114,101,97,100,121,32,97,110,32,105,110,100,101,120,32,110,97,109,101,100,32,37,115,0,0,0,0,0,0,248,105,0,0,0,106,0,0,8,106,0,0,0,0,0,0,66,69,71, 73,78,0,0,0,82,69,76,69,65,83,69,0,82,79,76,76,66,65,67,75,0,0,0,0,0,0,0,0,67,79,77,77,73,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,97,114,115,101,114,32,115,116,97,99,107,32,111,118,101,114,102,108,111,119,0,0,0,224,3,33,4,75,5,132,4,180,4,180,4,1,0,6,1,237,255,135,0,135,0,8,3,180,4,180,4,180,4,180,4,69,0,69,0,53,0,208,0,27,1,243,2,58,0,213,2,136,2,59,2,238,1,161,1,84,1,7,1,212,0,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,110,3,59,3,161,3,212,3,212,3,46,4,180,4,180, 4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,234,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,185,255,209,255,209,255,209,255,209,255,209,255,0,0,29,0,244,255,27,1,27,1,139,0,91,0,136,1,136,1,126,3,160,2,214,2,103,5,170,255,170,255,170,255,88,0,62,1,62,1,99,0,125,1,236,255,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1, 27,1,27,1,27,1,27,1,27,1,27,1,112,2,108,3,214,2,160,2,60,5,60,5,60,5,60,5,60,5,60,5,170,255,170,255,170,255,49,1,136,0,136,0,142,0,167,0,226,0,154,0,137,0,152,0,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,80,1,80,1,80,1,27,1,27,1,96,1,27,1,27,1,27,1,27,1,27,1,228,0,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,245,1,57,2,84,2,84,2,84,2,251,1,241,1,185,1,135,1,97,1,156,0,156,0,89,3,97,1,89,3,223,2,45,3,127,2,203,2,156,0,76,1,203,2,203,2,240,1,163,1,134, 2,77,5,160,4,160,4,55,5,55,5,160,4,61,5,236,4,120,4,66,5,66,5,66,5,66,5,160,4,26,5,120,4,61,5,236,4,236,4,120,4,160,4,26,5,182,4,4,5,160,4,160,4,26,5,160,4,26,5,160,4,26,5,238,4,183,4,183,4,183,4,250,4,238,4,183,4,193,4,183,4,250,4,183,4,183,4,161,4,176,4,161,4,176,4,161,4,176,4,160,4,160,4,137,4,238,4,178,4,178,4,238,4,130,4,131,4,123,4,128,4,120,4,217,4,215,4,226,4,226,4,230,4,230,4,230,4,230,4,170,255,170,255,170,255,170,255,170,255,170,255,44,4,48,1,14,2,249,0,152,1,173,255,178,1,44,3,27,0,43, 3,39,3,34,3,239,2,77,2,139,2,163,0,131,0,162,2,110,1,194,1,43,1,148,0,23,0,102,0,229,0,235,255,221,4,220,4,198,4,75,4,204,4,148,4,199,4,191,4,189,4,91,4,82,4,99,4,86,4,185,4,81,4,188,4,202,4,74,4,65,4,116,4,115,4,80,4,165,4,154,4,70,4,187,4,181,4,163,4,77,4,47,4,129,4,151,4,122,4,114,4,127,4,67,4,140,4,141,4,139,4,45,4,48,4,124,4,88,4,110,4,103,4,105,4,102,4,68,4,90,4,94,4,64,4,66,4,69,4,63,4,60,4,219,3,55,4,53,4,50,4,41,4,156,3,253,3,246,3,236,3,238,3,51,3,227,2,128,3,87,3,36,3,227,2,228,2,224,2, 178,2,142,2,153,2,106,2,70,2,56,2,16,2,42,2,123,1,20,2,223,1,199,1,123,1,176,1,115,1,85,1,28,0,82,1,116,0,245,255,199,255,171,255,7,0,248,255,3,0,0,0,0,0,135,2,196,3,196,3,196,3,110,3,110,3,201,3,196,3,6,3,34,3,34,3,170,3,201,3,201,3,201,3,108,3,201,3,201,3,201,3,196,3,201,3,10,3,40,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,169,3,171,3,48,3,47,3,150,3,21,3,45,3,38,3,42,3,111,3,104,3,105,3,103,3,107,3,112,3,201,3,41,3,73,3,88,3,72,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201, 3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,82,3,87,3,94,3,86,3,83,3,75,3,74,3,76,3,77,3,201,3,201,3,161,2,227,2,201,3,201,3,78,3,201,3,173,2,79,3,91,3,90,3,89,3,168,2,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,135,2,196,3,201, 3,201,3,196,3,196,3,196,3,196,3,196,3,196,3,188,3,10,3,0,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,176,3,174,3,201,3,123,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,141,2,201,3,143,3,6,3,6,3,6,3,8,3,242,2,254,2,143,2,44,3,23,3,23,3,155,3,44,3,155,3,198,2,221,2,195,2,34,3,23,3,106,3,34,3,34,3,7,3,254,2,201,3,181,3,14,3,14,3, 173,3,173,3,14,3,53,3,231,2,44,3,238,2,238,2,238,2,238,2,14,3,158,2,44,3,53,3,231,2,231,2,44,3,14,3,158,2,149,3,147,3,14,3,14,3,158,2,14,3,158,2,14,3,158,2,116,3,229,2,229,2,229,2,213,2,116,3,229,2,198,2,229,2,213,2,229,2,229,2,27,3,22,3,27,3,22,3,27,3,22,3,14,3,14,3,201,3,116,3,120,3,120,3,116,3,39,3,28,3,37,3,35,3,44,3,164,2,216,2,151,2,151,2,140,2,140,2,140,2,140,2,193,3,193,3,188,3,200,2,200,2,183,2,201,3,201,3,201,3,201,3,201,3,201,3,175,2,201,3,125,3,201,3,201,3,201,3,201,3,201,3,201,3,201, 3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,60,3,201,3,136,2,183,3,201,3,201,3,180,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,153,3,201,3,201,3,201,3,201,3,201,3,201,3,146,3,145,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,245,2,201,3,201,3,201,3,249,2,201,3,201,3,201,3,201,3,201,3,201,3,36,3,201,3,29,3,201,3,109,3,201,3,201,3,201, 3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,198,3,201,3,201,3,201,3,197,3,201,3,201,3,201,3,201,3,201,3,62,3,201,3,61,3,65,3,201,3,149,2,201,3,132,2,137,2,192,3,195,3,194,3,191,3,190,3,189,3,184,3,182,3,179,3,178,3,177,3,175,3,172,3,168,3,129,3,127,3,134,3,133,3,132,3,131,3,130,3,128,3,126,3,124,3,50,3,49,3,46,3,43,3,241,2,167,3,122,3,240,2,237,2,236,2,157,2,185,3,152,3,161,3,160,3,159,3,54,3,158,3,157,3,156,3,154,3,151,3,138,3,52,3,51,3,232,2,114,3,113,3,160,2,142,3,141,3,140,3,144,3,148,3,139,3, 16,3,239,2,159,2,156,2,163,2,167,2,219,2,220,2,228,2,226,2,225,2,224,2,223,2,222,2,218,2,169,2,174,2,212,2,197,2,196,2,205,2,204,2,210,2,209,2,208,2,207,2,206,2,203,2,202,2,201,2,194,2,193,2,199,2,192,2,215,2,214,2,211,2,191,2,235,2,234,2,233,2,230,2,190,2,189,2,188,2,65,3,187,2,186,2,70,3,69,3,98,3,58,3,243,2,247,2,246,2,250,2,251,2,3,3,2,3,1,3,12,3,13,3,25,3,24,3,56,3,55,3,26,3,11,3,5,3,4,3,20,3,19,3,18,3,17,3,9,3,255,2,31,3,30,3,100,3,15,3,99,3,97,3,166,3,165,3,164,3,163,3,162,3,102,3,199,3,200, 3,119,3,121,3,118,3,33,3,32,3,117,3,101,3,71,3,68,3,178,2,179,2,137,3,136,3,135,3,181,2,180,2,177,2,176,2,95,3,92,3,84,3,96,3,93,3,85,3,81,3,80,3,66,3,64,3,63,3,59,3,67,3,248,2,244,2,57,3,253,2,252,2,185,2,184,2,182,2,166,2,165,2,162,2,155,2,153,2,152,2,154,2,150,2,148,2,147,2,146,2,145,2,144,2,172,2,171,2,170,2,142,2,139,2,138,2,134,2,133,2,131,2,0,0,0,0,19,22,22,23,1,24,26,15,27,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,108,109,110,27,28,23,50,51,80,81,82,83,122,85,86,87,88,89,90,91,92,93, 94,95,22,70,23,71,72,73,74,75,76,77,78,79,80,81,82,83,122,85,86,87,88,89,90,91,92,93,94,95,19,97,91,92,93,94,95,26,85,86,87,88,89,90,91,92,93,94,95,27,28,97,98,99,122,211,102,103,104,79,19,50,51,19,122,59,55,113,224,225,226,89,90,91,92,93,94,95,23,27,28,26,71,72,73,74,75,76,77,78,79,80,81,82,83,51,85,86,87,88,89,90,91,92,93,94,95,19,132,133,58,89,90,21,108,109,110,27,28,97,98,33,100,7,8,119,120,22,19,107,42,109,27,28,27,28,95,28,50,51,99,100,101,102,103,104,105,27,28,97,98,107,152,112,132,133,112, 65,69,71,72,73,74,75,76,77,78,79,80,81,82,83,11,85,86,87,88,89,90,91,92,93,94,95,19,101,97,97,98,24,101,122,157,12,99,103,112,102,103,104,152,22,97,98,97,98,27,28,113,27,29,91,164,165,124,50,51,97,98,219,59,132,133,134,22,23,45,66,47,212,213,124,140,132,133,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,164,165,27,28,230,50,51,233,108,109,110,70,16,59,23,97,98,26,97,22,66,185,12,187,27,28,71,72,73,74,75,76,77,78,79,80,81,82,83,29,85,86,87,88,89,90,91,92,93,94,95,19, 22,148,149,45,23,47,62,154,64,156,108,109,110,37,69,23,163,59,26,26,97,98,144,145,146,147,152,200,52,23,50,51,26,22,89,90,60,210,7,8,9,138,97,22,23,26,101,26,174,175,197,71,72,73,74,75,76,77,78,79,80,81,82,83,16,85,86,87,88,89,90,91,92,93,94,95,19,132,133,134,23,152,208,209,140,152,152,111,195,196,98,70,163,160,152,23,22,164,165,246,207,27,152,174,175,171,172,50,51,137,62,139,64,171,172,222,124,27,138,24,163,89,90,130,174,175,197,163,71,72,73,74,75,76,77,78,79,80,81,82,83,22,85,86,87,88,89,90,91, 92,93,94,95,19,197,181,182,23,208,209,152,197,26,189,132,133,232,224,225,226,152,97,91,26,232,116,212,213,152,222,121,152,174,175,50,51,243,97,22,23,22,234,174,175,177,23,239,116,163,177,174,175,121,174,175,71,72,73,74,75,76,77,78,79,80,81,82,83,24,85,86,87,88,89,90,91,92,93,94,95,19,23,197,11,23,227,70,208,220,152,31,224,225,226,35,98,224,225,226,108,109,110,115,152,117,118,27,222,49,123,24,50,51,27,0,1,2,224,225,226,166,124,168,169,239,174,175,170,171,172,22,194,71,72,73,74,75,76,77,78,79,80,81, 82,83,152,85,86,87,88,89,90,91,92,93,94,95,19,22,208,24,23,195,196,170,171,172,174,175,152,26,152,152,152,207,152,97,152,23,152,51,244,152,97,152,247,248,23,50,51,26,174,175,174,175,174,175,174,175,174,175,174,175,23,174,175,174,175,188,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,19,152,107,152,33,24,152,100,101,27,174,175,152,42,152,23,152,26,152,23,152,26,152,174,175,174,175,152,174,175,23,50,51,26,174,175,174,175,174,175,174,175,174,175,174,175,163,119,120,174,175, 19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,66,152,97,197,23,50,51,26,53,23,174,175,26,23,23,23,26,26,26,36,106,146,147,174,175,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,152,196,119,120,19,50,51,168,169,26,174,175,207,28,152,249,250,152,163,163,163,163,174,175,163,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,152,197,197,197,197,50,51,197,194,36,174,175,191,192,152,191,192,163,152,66,124,152,174, 175,152,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,197,152,100,188,152,50,51,152,152,188,174,175,252,152,94,95,152,152,152,1,2,152,152,174,175,19,152,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,152,188,188,22,194,50,51,240,173,194,174,175,252,194,152,36,181,28,152,23,219,122,174,175,219,221,152,152,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,19,20,152,22,23,194,152,240,27,28,174,175,240,19,20,26,22,194,194, 38,22,27,28,152,23,22,152,116,174,175,152,23,38,152,23,152,221,152,57,152,23,163,50,51,194,174,175,66,174,175,69,57,174,175,40,174,175,174,175,174,175,174,175,69,22,53,74,75,30,53,89,90,22,22,152,197,23,96,97,98,22,152,101,89,90,91,208,209,152,53,96,97,98,101,22,101,174,175,152,19,20,105,22,174,175,112,19,27,28,20,174,175,24,132,133,134,135,136,38,44,174,175,107,61,54,26,132,133,134,135,136,54,107,22,5,140,1,57,36,111,122,28,79,79,131,123,66,19,20,69,22,1,16,20,125,27,28,123,111,120,23,131,23,16, 68,142,38,15,22,89,90,3,167,4,248,251,96,97,98,180,180,101,251,151,6,57,151,13,151,26,25,151,161,202,153,162,153,69,130,128,203,19,20,127,22,126,204,129,22,27,28,205,132,133,134,135,136,89,90,231,38,95,137,179,96,97,98,206,179,101,122,107,159,159,125,231,216,228,107,57,184,217,216,176,217,176,48,106,18,184,158,69,159,158,46,71,237,176,176,176,132,133,134,135,136,217,176,137,216,178,158,89,90,179,176,159,179,159,96,97,98,159,159,101,5,158,202,22,18,10,11,12,13],"i8",Ha,w.Ab+20481); H([14,190,238,17,190,158,193,41,159,202,193,159,202,245,193,193,223,190,32,159,34,132,133,134,135,136,159,39,155,43,150,223,177,201,178,177,186,66,199,177,152,253,56,215,152,182,152,202,152,63,152,152,66,67,242,229,152,174,152,152,152,152,152,152,152,199,242,202,152,198,152,152,152,183,192,152,215,152,183,215,183,152,241,214,152,211,152,152,211,211,152,152,241,152,152,152,152,152,152,152,114,152,152,235,152,152,152,174,187,95,174,253,253,253,253,236,253,253,253,253,253,253,253,253,253,253,253,141, 0,0,0,0,0,0,0,0,0,27,27,27,27,0,27,27,27,0,27,27,27,27,0,0,0,27,0,0,27,0,0,0,27,0,0,0,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,0,0,100,97,116,97,98,97,115,101,32,115,99,104,101,109,97,32,105,115,32,108,111,99,107,101,100,58,32,37,115,0,0,0,115,116,97,116,101,109,101,110,116,32,116,111,111,32,108,111,110,103,0,0,0,0,0,0,64,121,0,0,72,121,0,0,80,121,0,0,88,121,0,0,96,121,0,0,104,121,0,0,112,121,0,0,120,121,0,0,128,121, 0,0,144,121,0,0,216,83,0,0,152,121,0,0,97,100,100,114,0,0,0,0,111,112,99,111,100,101,0,0,112,49,0,0,0,0,0,0,112,50,0,0,0,0,0,0,112,51,0,0,0,0,0,0,112,52,0,0,0,0,0,0,112,53,0,0,0,0,0,0,99,111,109,109,101,110,116,0,115,101,108,101,99,116,105,100,0,0,0,0,0,0,0,0,111,114,100,101,114,0,0,0,100,101,116,97,105,108,0,0,117,110,111,112,101,110,101,100,0,0,0,0,0,0,0,0,110,111,32,115,117,99,104,32,118,105,101,119,0,0,0,0,110,111,32,115,117,99,104,32,116,97,98,108,101,0,0,0,98,105,110,100,32,111,110,32,97,32, 98,117,115,121,32,112,114,101,112,97,114,101,100,32,115,116,97,116,101,109,101,110,116,58,32,91,37,115,93,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,122,0,0,64,122,0,0,72,122,0,0,80,122,0,0,78,79,84,32,78,85,76,76,0,0,0,0,0,0,0,0,85,78,73,81,85,69,0,0,67,72,69,67,75,0,0,0,70,79,82,69,73,71,78,32,75,69,89,0,0,0,0,0,97,98,111,114,116,32,97,116,32,37,100,32,105,110,32,91,37,115,93,58,32,37,115,0,37,115,32,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108, 101,100,58,32,37,115,0,0,0,0,0,0,0,0,37,115,32,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108,101,100,0,0,0,0,0,0,0,0,1,2,0,2,2,0,0,0,0,0,0,0,0,1,2,1,1,1,2,1,2,0,0,0,0,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,115,97,118,101,112,111,105,110,116,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,0,0,0,0,110,111,32,115,117,99,104,32,115,97,118,101,112,111,105,110,116,58,32,37,115,0,0,0,99,97,110,110,111,116,32,114,101,108,101, 97,115,101,32,115,97,118,101,112,111,105,110,116,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,0,99,97,110,110,111,116,32,99,111,109,109,105,116,32,116,114,97,110,115,97,99,116,105,111,110,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,99,97,110,110,111,116,32,115,116,97,114,116,32,97,32,116,114,97,110,115,97,99,116,105,111,110,32,119,105,116,104,105,110,32,97,32,116,114, 97,110,115,97,99,116,105,111,110,0,99,97,110,110,111,116,32,114,111,108,108,98,97,99,107,32,45,32,110,111,32,116,114,97,110,115,97,99,116,105,111,110,32,105,115,32,97,99,116,105,118,101,0,0,0,0,0,0,99,97,110,110,111,116,32,99,111,109,109,105,116,32,45,32,110,111,32,116,114,97,110,115,97,99,116,105,111,110,32,105,115,32,97,99,116,105,118,101,0,0,0,0,0,0,0,0,83,69,76,69,67,84,32,110,97,109,101,44,32,114,111,111,116,112,97,103,101,44,32,115,113,108,32,70,82,79,77,32,39,37,113,39,46,37,115,32,87,72,69, 82,69,32,37,115,32,79,82,68,69,82,32,66,89,32,114,111,119,105,100,0,116,111,111,32,109,97,110,121,32,108,101,118,101,108,115,32,111,102,32,116,114,105,103,103,101,114,32,114,101,99,117,114,115,105,111,110,0,0,0,0,99,97,110,110,111,116,32,99,104,97,110,103,101,32,37,115,32,119,97,108,32,109,111,100,101,32,102,114,111,109,32,119,105,116,104,105,110,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,105,110,116,111,0,0,0,0,111,117,116,32,111,102,0,0,100,97,116,97,98,97,115,101,32,116,97,98, 108,101,32,105,115,32,108,111,99,107,101,100,58,32,37,115,0,0,0,0,115,116,97,116,101,109,101,110,116,32,97,98,111,114,116,115,32,97,116,32,37,100,58,32,91,37,115,93,32,37,115,0,45,45,32,0,0,0,0,0,39,37,46,42,113,39,0,0,122,101,114,111,98,108,111,98,40,37,100,41,0,0,0,0,120,39,0,0,0,0,0,0,37,48,50,120,0,0,0,0,39,0,0,0,0,0,0,0,99,97,110,110,111,116,32,86,65,67,85,85,77,32,102,114,111,109,32,119,105,116,104,105,110,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,99,97,110,110,111,116,32,86,65,67, 85,85,77,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,0,0,0,0,65,84,84,65,67,72,32,39,58,109,101,109,111,114,121,58,39,32,65,83,32,118,97,99,117,117,109,95,100,98,59,0,65,84,84,65,67,72,32,39,39,32,65,83,32,118,97,99,117,117,109,95,100,98,59,0,80,82,65,71,77,65,32,118,97,99,117,117,109,95,100,98,46,115,121,110,99,104,114,111,110,111,117,115,61,79,70,70,0,0,0,0,0,0,0,0,66,69,71,73,78,59,0,0,83,69,76,69,67,84,32,39,67,82,69,65,84,69,32, 84,65,66,76,69,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,49,52,41,32,32,32,70,82,79,77,32,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,116,121,112,101,61,39,116,97,98,108,101,39,32,65,78,68,32,110,97,109,101,33,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,32,32,32,65,78,68,32,99,111,97,108,101,115,99,101,40,114,111,111,116,112,97,103,101,44,49,41,62,48,0,0,0,0,0,83,69,76,69,67,84,32,39,67,82,69,65, 84,69,32,73,78,68,69,88,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,49,52,41,32,32,70,82,79,77,32,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,115,113,108,32,76,73,75,69,32,39,67,82,69,65,84,69,32,73,78,68,69,88,32,37,39,32,0,83,69,76,69,67,84,32,39,67,82,69,65,84,69,32,85,78,73,81,85,69,32,73,78,68,69,88,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,50,49,41,32,32,32,70, 82,79,77,32,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,115,113,108,32,76,73,75,69,32,39,67,82,69,65,84,69,32,85,78,73,81,85,69,32,73,78,68,69,88,32,37,39,0,0,0,83,69,76,69,67,84,32,39,73,78,83,69,82,84,32,73,78,84,79,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,32,83,69,76,69,67,84,32,42,32,70,82,79,77,32,109,97,105,110,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,59,39, 70,82,79,77,32,109,97,105,110,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,116,121,112,101,32,61,32,39,116,97,98,108,101,39,32,65,78,68,32,110,97,109,101,33,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,32,32,32,65,78,68,32,99,111,97,108,101,115,99,101,40,114,111,111,116,112,97,103,101,44,49,41,62,48,0,0,0,0,0,83,69,76,69,67,84,32,39,68,69,76,69,84,69,32,70,82,79,77,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,113,117,111,116,101,40,110, 97,109,101,41,32,124,124,32,39,59,39,32,70,82,79,77,32,118,97,99,117,117,109,95,100,98,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,110,97,109,101,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,32,0,0,0,0,0,0,0,0,83,69,76,69,67,84,32,39,73,78,83,69,82,84,32,73,78,84,79,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,32,83,69,76,69,67,84,32,42,32,70,82,79,77,32,109,97,105,110,46,39,32, 124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,59,39,32,70,82,79,77,32,118,97,99,117,117,109,95,100,98,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,110,97,109,101,61,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,59,0,0,0,0,0,0,73,78,83,69,82,84,32,73,78,84,79,32,118,97,99,117,117,109,95,100,98,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,32,32,83,69,76,69,67,84,32,116,121,112,101,44,32,110,97,109,101,44,32,116,98,108, 95,110,97,109,101,44,32,114,111,111,116,112,97,103,101,44,32,115,113,108,32,32,32,32,70,82,79,77,32,109,97,105,110,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,32,32,87,72,69,82,69,32,116,121,112,101,61,39,118,105,101,119,39,32,79,82,32,116,121,112,101,61,39,116,114,105,103,103,101,114,39,32,32,32,32,32,32,79,82,32,40,116,121,112,101,61,39,116,97,98,108,101,39,32,65,78,68,32,114,111,111,116,112,97,103,101,61,48,41,0,1,1,3,0,5,0,6,0,8,0,0,0,0,0,0,0,77,97,105,110,32,102,114,101,101,108,105, 115,116,58,32,0,76,105,115,116,32,111,102,32,116,114,101,101,32,114,111,111,116,115,58,32,0,0,0,0,80,97,103,101,32,37,100,32,105,115,32,110,101,118,101,114,32,117,115,101,100,0,0,0,80,111,105,110,116,101,114,32,109,97,112,32,112,97,103,101,32,37,100,32,105,115,32,114,101,102,101,114,101,110,99,101,100,0,0,0,0,0,0,0,79,117,116,115,116,97,110,100,105,110,103,32,112,97,103,101,32,99,111,117,110,116,32,103,111,101,115,32,102,114,111,109,32,37,100,32,116,111,32,37,100,32,100,117,114,105,110,103,32,116, 104,105,115,32,97,110,97,108,121,115,105,115,0,0,10,0,0,0,0,0,0,0,80,97,103,101,32,37,100,58,32,0,0,0,0,0,0,0,117,110,97,98,108,101,32,116,111,32,103,101,116,32,116,104,101,32,112,97,103,101,46,32,101,114,114,111,114,32,99,111,100,101,61,37,100,0,0,0,98,116,114,101,101,73,110,105,116,80,97,103,101,40,41,32,114,101,116,117,114,110,115,32,101,114,114,111,114,32,99,111,100,101,32,37,100,0,0,0,79,110,32,116,114,101,101,32,112,97,103,101,32,37,100,32,99,101,108,108,32,37,100,58,32,0,0,0,0,0,0,0,82,111, 119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,112,114,101,118,105,111,117,115,32,119,97,115,32,37,108,108,100,41,0,0,0,0,0,67,104,105,108,100,32,112,97,103,101,32,100,101,112,116,104,32,100,105,102,102,101,114,115,0,0,0,0,0,0,0,0,79,110,32,112,97,103,101,32,37,100,32,97,116,32,114,105,103,104,116,32,99,104,105,108,100,58,32,0,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,97,120,32,108,97,114,103,101,114, 32,116,104,97,110,32,112,97,114,101,110,116,32,109,105,110,32,111,102,32,37,108,108,100,41,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,105,110,32,108,101,115,115,32,116,104,97,110,32,112,97,114,101,110,116,32,109,105,110,32,111,102,32,37,108,108,100,41,0,0,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,97,120,32,108,97,114,103,101,114,32,116,104,97,110,32,112,97,114,101,110,116,32, 109,97,120,32,111,102,32,37,108,108,100,41,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,105,110,32,108,101,115,115,32,116,104,97,110,32,112,97,114,101,110,116,32,109,97,120,32,111,102,32,37,108,108,100,41,0,0,0,0,0,0,67,111,114,114,117,112,116,105,111,110,32,100,101,116,101,99,116,101,100,32,105,110,32,99,101,108,108,32,37,100,32,111,110,32,112,97,103,101,32,37,100,0,0,0,0,0,0,0,77,117,108,116,105,112,108,101,32,117,115,101,115,32,102,111, 114,32,98,121,116,101,32,37,100,32,111,102,32,112,97,103,101,32,37,100,0,0,0,0,70,114,97,103,109,101,110,116,97,116,105,111,110,32,111,102,32,37,100,32,98,121,116,101,115,32,114,101,112,111,114,116,101,100,32,97,115,32,37,100,32,111,110,32,112,97,103,101,32,37,100,0,0,0,0,0,105,110,118,97,108,105,100,32,112,97,103,101,32,110,117,109,98,101,114,32,37,100,0,0,50,110,100,32,114,101,102,101,114,101,110,99,101,32,116,111,32,112,97,103,101,32,37,100,0,0,0,0,0,0,0,0,70,97,105,108,101,100,32,116,111,32,114, 101,97,100,32,112,116,114,109,97,112,32,107,101,121,61,37,100,0,0,0,0,66,97,100,32,112,116,114,32,109,97,112,32,101,110,116,114,121,32,107,101,121,61,37,100,32,101,120,112,101,99,116,101,100,61,40,37,100,44,37,100,41,32,103,111,116,61,40,37,100,44,37,100,41,0,0,0,37,100,32,111,102,32,37,100,32,112,97,103,101,115,32,109,105,115,115,105,110,103,32,102,114,111,109,32,111,118,101,114,102,108,111,119,32,108,105,115,116,32,115,116,97,114,116,105,110,103,32,97,116,32,37,100,0,0,0,0,0,0,0,0,102,97,105,108, 101,100,32,116,111,32,103,101,116,32,112,97,103,101,32,37,100,0,0,0,102,114,101,101,108,105,115,116,32,108,101,97,102,32,99,111,117,110,116,32,116,111,111,32,98,105,103,32,111,110,32,112,97,103,101,32,37,100,0,0,83,81,76,105,116,101,32,102,111,114,109,97,116,32,51,0,37,115,45,109,106,88,88,88,88,88,88,57,88,88,122,0,77,74,32,100,101,108,101,116,101,58,32,37,115,0,0,0,77,74,32,99,111,108,108,105,100,101,58,32,37,115,0,0,45,109,106,37,48,54,88,57,37,48,50,88,0,0,0,0,37,46,50,120,0,0,0,0,107,40,37,100, 0,0,0,0,110,105,108,0,0,0,0,0,66,0,0,0,0,0,0,0,44,46,46,46,0,0,0,0,40,37,46,50,48,115,41,0,37,115,40,37,100,41,0,0,37,100,0,0,0,0,0,0,40,98,108,111,98,41,0,0,118,116,97,98,58,37,112,58,37,112,0,0,0,0,0,0,105,110,116,97,114,114,97,121,0,0,0,0,0,0,0,0,112,114,111,103,114,97,109,0,72,74,0,0,152,137,0,0,168,137,0,0,184,137,0,0,200,137,0,0,216,137,0,0,232,137,0,0,248,137,0,0,8,138,0,0,16,138,0,0,24,138,0,0,32,138,0,0,48,138,0,0,64,138,0,0,72,138,0,0,80,138,0,0,88,138,0,0,96,138,0,0,104,138,0,0,112,138, 0,0,120,138,0,0,136,138,0,0,152,138,0,0,160,138,0,0,176,138,0,0,184,138,0,0,192,138,0,0,200,138,0,0,208,138,0,0,216,138,0,0,232,138,0,0,240,138,0,0,0,139,0,0,8,139,0,0,16,139,0,0,24,139,0,0,40,139,0,0,48,139,0,0,56,139,0,0,72,139,0,0,88,139,0,0,96,139,0,0,112,139,0,0,120,139,0,0,128,139,0,0,136,139,0,0,144,139,0,0,152,139,0,0,160,139,0,0,176,139,0,0,192,139,0,0,200,139,0,0,216,139,0,0,232,139,0,0,248,139,0,0,8,140,0,0,24,140,0,0,40,140,0,0,56,140,0,0,72,140,0,0,88,140,0,0,104,140,0,0,112,140,0,0, 120,140,0,0,128,140,0,0,136,140,0,0,144,140,0,0,152,140,0,0,168,140,0,0,184,140,0,0,192,140,0,0,208,140,0,0,216,140,0,0,224,140,0,0,240,140,0,0,0,141,0,0,8,141,0,0,16,141,0,0,24,141,0,0,32,141,0,0,40,141,0,0,48,141,0,0,56,141,0,0,64,141,0,0,72,141,0,0,88,141,0,0,96,141,0,0,104,141,0,0,120,141,0,0,136,141,0,0,144,141,0,0,160,141,0,0,176,141,0,0,184,141,0,0,200,141,0,0,208,141,0,0,216,141,0,0,224,141,0,0,232,141,0,0,248,141,0,0,8,142,0,0,24,142,0,0,32,142,0,0,40,142,0,0,48,142,0,0,56,142,0,0,64,142, 0,0,80,142,0,0,88,142,0,0,96,142,0,0,112,142,0,0,128,142,0,0,144,142,0,0,160,142,0,0,168,142,0,0,176,142,0,0,184,142,0,0,192,142,0,0,200,142,0,0,208,142,0,0,224,142,0,0,240,142,0,0,0,143,0,0,16,143,0,0,32,143,0,0,48,143,0,0,64,143,0,0,80,143,0,0,96,143,0,0,112,143,0,0,128,143,0,0,144,143,0,0,152,143,0,0,160,143,0,0,168,143,0,0,184,143,0,0,200,143,0,0,208,143,0,0,216,143,0,0,224,143,0,0,232,143,0,0,248,143,0,0,8,144,0,0,16,144,0,0,32,144,0,0,40,144,0,0,48,144,0,0,64,144,0,0,72,144,0,0,80,144,0,0,88, 144,0,0,96,144,0,0,112,144,0,0,128,144,0,0,136,144,0,0,144,144,0,0,70,117,110,99,116,105,111,110,0,0,0,0,0,0,0,0,83,97,118,101,112,111,105,110,116,0,0,0,0,0,0,0,65,117,116,111,67,111,109,109,105,116,0,0,0,0,0,0,84,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,83,111,114,116,101,114,78,101,120,116,0,0,0,0,0,0,80,114,101,118,73,102,79,112,101,110,0,0,0,0,0,0,78,101,120,116,73,102,79,112,101,110,0,0,0,0,0,0,80,114,101,118,0,0,0,0,78,101,120,116,0,0,0,0,65,103,103,83,116,101,112,0,67,104,101,99,107, 112,111,105,110,116,0,0,0,0,0,0,74,111,117,114,110,97,108,77,111,100,101,0,0,0,0,0,86,97,99,117,117,109,0,0,86,70,105,108,116,101,114,0,86,85,112,100,97,116,101,0,71,111,116,111,0,0,0,0,71,111,115,117,98,0,0,0,82,101,116,117,114,110,0,0,78,111,116,0,0,0,0,0,73,110,105,116,67,111,114,111,117,116,105,110,101,0,0,0,69,110,100,67,111,114,111,117,116,105,110,101,0,0,0,0,89,105,101,108,100,0,0,0,72,97,108,116,73,102,78,117,108,108,0,0,0,0,0,0,72,97,108,116,0,0,0,0,73,110,116,101,103,101,114,0,73,110,116, 54,52,0,0,0,83,116,114,105,110,103,0,0,78,117,108,108,0,0,0,0,83,111,102,116,78,117,108,108,0,0,0,0,0,0,0,0,66,108,111,98,0,0,0,0,86,97,114,105,97,98,108,101,0,0,0,0,0,0,0,0,77,111,118,101,0,0,0,0,67,111,112,121,0,0,0,0,83,67,111,112,121,0,0,0,82,101,115,117,108,116,82,111,119,0,0,0,0,0,0,0,67,111,108,108,83,101,113,0,65,100,100,73,109,109,0,0,77,117,115,116,66,101,73,110,116,0,0,0,0,0,0,0,82,101,97,108,65,102,102,105,110,105,116,121,0,0,0,0,67,97,115,116,0,0,0,0,80,101,114,109,117,116,97,116,105, 111,110,0,0,0,0,0,67,111,109,112,97,114,101,0,74,117,109,112,0,0,0,0,79,110,99,101,0,0,0,0,73,102,0,0,0,0,0,0,73,102,78,111,116,0,0,0,67,111,108,117,109,110,0,0,65,102,102,105,110,105,116,121,0,0,0,0,0,0,0,0,77,97,107,101,82,101,99,111,114,100,0,0,0,0,0,0,67,111,117,110,116,0,0,0,82,101,97,100,67,111,111,107,105,101,0,0,0,0,0,0,83,101,116,67,111,111,107,105,101,0,0,0,0,0,0,0,82,101,111,112,101,110,73,100,120,0,0,0,0,0,0,0,79,112,101,110,82,101,97,100,0,0,0,0,0,0,0,0,79,112,101,110,87,114,105,116, 101,0,0,0,0,0,0,0,79,112,101,110,65,117,116,111,105,110,100,101,120,0,0,0,79,112,101,110,69,112,104,101,109,101,114,97,108,0,0,0,83,111,114,116,101,114,79,112,101,110,0,0,0,0,0,0,83,101,113,117,101,110,99,101,84,101,115,116,0,0,0,0,79,112,101,110,80,115,101,117,100,111,0,0,0,0,0,0,67,108,111,115,101,0,0,0,83,101,101,107,76,84,0,0,83,101,101,107,76,69,0,0,83,101,101,107,71,69,0,0,83,101,101,107,71,84,0,0,83,101,101,107,0,0,0,0,78,111,67,111,110,102,108,105,99,116,0,0,0,0,0,0,78,111,116,70,111,117, 110,100,0,0,0,0,0,0,0,0,70,111,117,110,100,0,0,0,78,111,116,69,120,105,115,116,115,0,0,0,0,0,0,0,79,114,0,0,0,0,0,0,65,110,100,0,0,0,0,0,83,101,113,117,101,110,99,101,0,0,0,0,0,0,0,0,78,101,119,82,111,119,105,100,0,0,0,0,0,0,0,0,73,110,115,101,114,116,0,0,73,115,78,117,108,108,0,0,78,111,116,78,117,108,108,0,78,101,0,0,0,0,0,0,69,113,0,0,0,0,0,0,71,116,0,0,0,0,0,0,76,101,0,0,0,0,0,0,76,116,0,0,0,0,0,0,71,101,0,0,0,0,0,0,73,110,115,101,114,116,73,110,116,0,0,0,0,0,0,0,66,105,116,65,110,100,0,0,66, 105,116,79,114,0,0,0,83,104,105,102,116,76,101,102,116,0,0,0,0,0,0,0,83,104,105,102,116,82,105,103,104,116,0,0,0,0,0,0,65,100,100,0,0,0,0,0,83,117,98,116,114,97,99,116,0,0,0,0,0,0,0,0,77,117,108,116,105,112,108,121,0,0,0,0,0,0,0,0,68,105,118,105,100,101,0,0,82,101,109,97,105,110,100,101,114,0,0,0,0,0,0,0,67,111,110,99,97,116,0,0,68,101,108,101,116,101,0,0,66,105,116,78,111,116,0,0,83,116,114,105,110,103,56,0,82,101,115,101,116,67,111,117,110,116,0,0,0,0,0,0,83,111,114,116,101,114,67,111,109,112,97, 114,101,0,0,0,83,111,114,116,101,114,68,97,116,97,0,0,0,0,0,0,82,111,119,75,101,121,0,0,82,111,119,68,97,116,97,0,82,111,119,105,100,0,0,0,78,117,108,108,82,111,119,0,76,97,115,116,0,0,0,0,83,111,114,116,101,114,83,111,114,116,0,0,0,0,0,0,83,111,114,116,0,0,0,0,82,101,119,105,110,100,0,0,83,111,114,116,101,114,73,110,115,101,114,116,0,0,0,0,73,100,120,73,110,115,101,114,116,0,0,0,0,0,0,0,73,100,120,68,101,108,101,116,101,0,0,0,0,0,0,0,73,100,120,82,111,119,105,100,0,0,0,0,0,0,0,0,73,100,120,76,69, 0,0,0,73,100,120,71,84,0,0,0,73,100,120,76,84,0,0,0,73,100,120,71,69,0,0,0,68,101,115,116,114,111,121,0,67,108,101,97,114,0,0,0,82,101,115,101,116,83,111,114,116,101,114,0,0,0,0,0,67,114,101,97,116,101,73,110,100,101,120,0,0,0,0,0,67,114,101,97,116,101,84,97,98,108,101,0,0,0,0,0,80,97,114,115,101,83,99,104,101,109,97,0,0,0,0,0,76,111,97,100,65,110,97,108,121,115,105,115,0,0,0,0,68,114,111,112,84,97,98,108,101,0,0,0,0,0,0,0,68,114,111,112,73,110,100,101,120,0,0,0,0,0,0,0,68,114,111,112,84,114,105, 103,103,101,114,0,0,0,0,0,73,110,116,101,103,114,105,116,121,67,107,0,0,0,0,0,82,111,119,83,101,116,65,100,100,0,0,0,0,0,0,0,82,111,119,83,101,116,82,101,97,100,0,0,0,0,0,0,82,111,119,83,101,116,84,101,115,116,0,0,0,0,0,0,80,114,111,103,114,97,109,0,80,97,114,97,109,0,0,0,82,101,97,108,0,0,0,0,70,107,67,111,117,110,116,101,114,0,0,0,0,0,0,0,70,107,73,102,90,101,114,111,0,0,0,0,0,0,0,0,77,101,109,77,97,120,0,0,73,102,80,111,115,0,0,0,73,102,78,101,103,0,0,0,73,102,90,101,114,111,0,0,65,103,103,70, 105,110,97,108,0,0,0,0,0,0,0,0,73,110,99,114,86,97,99,117,117,109,0,0,0,0,0,0,69,120,112,105,114,101,0,0,84,97,98,108,101,76,111,99,107,0,0,0,0,0,0,0,86,66,101,103,105,110,0,0,86,67,114,101,97,116,101,0,86,68,101,115,116,114,111,121,0,0,0,0,0,0,0,0,86,79,112,101,110,0,0,0,86,67,111,108,117,109,110,0,86,78,101,120,116,0,0,0,86,82,101,110,97,109,101,0,80,97,103,101,99,111,117,110,116,0,0,0,0,0,0,0,77,97,120,80,103,99,110,116,0,0,0,0,0,0,0,0,73,110,105,116,0,0,0,0,78,111,111,112,0,0,0,0,69,120,112,108, 97,105,110,0,65,80,73,32,99,97,108,108,101,100,32,119,105,116,104,32,78,85,76,76,32,112,114,101,112,97,114,101,100,32,115,116,97,116,101,109,101,110,116,0,65,80,73,32,99,97,108,108,101,100,32,119,105,116,104,32,102,105,110,97,108,105,122,101,100,32,112,114,101,112,97,114,101,100,32,115,116,97,116,101,109,101,110,116,0,0,0,0,64,32,32,0,0,0,0,0,1,0,0,0,8,0,0,0,4,0,0,0,5,0,0,0,8,0,0,0,12,0,0,0,13,0,0,0,14,0,0,0,15,0,0,0,16,0,0,0,9,0,0,0,9,0,0,0,10,0,0,0,0,0,0,0,3,0,0,0,12,0,0,0,17,0,0,0,6,0,0,0,4,0, 0,0,0,0,0,0,160,146,0,0,10,0,0,0,0,0,0,0,120,146,0,0,11,0,0,0,0,0,0,0,192,18,0,0,18,0,0,0,0,0,0,0,168,146,0,0,19,0,0,0,0,0,0,0,176,146,0,0,20,0,0,0,0,0,0,0,184,146,0,0,21,0,0,0,0,0,0,0,192,146,0,0,22,0,0,0,0,0,0,0,208,146,0,0,11,0,0,0,0,0,0,0,216,146,0,0,12,0,0,0,0,0,0,0,224,146,0,0,0,0,0,0,0,0,0,0,232,146,0,0,0,0,0,0,0,0,0,0,240,146,0,0,13,0,0,0,0,0,0,0,248,146,0,0,0,0,0,0,0,0,0,0,0,147,0,0,0,0,0,0,0,0,0,0,16,147,0,0,23,0,0,0,0,0,0,0,24,147,0,0,0,0,0,0,0,0,0,0,40,147,0,0,12,0,0,0,0,0,0,0,48,147, 0,0,24,0,0,0,0,0,0,0,64,147,0,0,25,0,0,0,0,0,0,0,72,147,0,0,13,0,0,0,0,0,0,0,80,147,0,0,14,0,0,0,0,0,0,0,88,147,0,0,1,0,0,0,0,0,0,0,96,147,0,0,26,0,0,0,0,0,0,0,104,147,0,0,0,0,0,0,0,0,0,0,112,147,0,0,1,0,0,0,0,0,0,0,0,0,0,0,99,108,111,115,101,0,0,0,111,115,95,117,110,105,120,46,99,58,37,100,58,32,40,37,100,41,32,37,115,40,37,115,41,32,45,32,37,115,0,0,111,112,101,110,0,0,0,0,103,101,116,99,119,100,0,0,115,116,97,116,0,0,0,0,102,115,116,97,116,0,0,0,102,116,114,117,110,99,97,116,101,0,0,0,0,0,0,0, 102,99,110,116,108,0,0,0,114,101,97,100,0,0,0,0,112,114,101,97,100,0,0,0,112,114,101,97,100,54,52,0,119,114,105,116,101,0,0,0,112,119,114,105,116,101,0,0,112,119,114,105,116,101,54,52,0,0,0,0,0,0,0,0,102,99,104,109,111,100,0,0,102,97,108,108,111,99,97,116,101,0,0,0,0,0,0,0,117,110,108,105,110,107,0,0,111,112,101,110,68,105,114,101,99,116,111,114,121,0,0,0,109,107,100,105,114,0,0,0,114,109,100,105,114,0,0,0,102,99,104,111,119,110,0,0,109,109,97,112,0,0,0,0,109,117,110,109,97,112,0,0,109,114,101,109, 97,112,0,0,103,101,116,112,97,103,101,115,105,122,101,0,0,0,0,0,97,116,116,101,109,112,116,32,116,111,32,111,112,101,110,32,34,37,115,34,32,97,115,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,37,100,0,0,0,0,0,0,47,100,101,118,47,110,117,108,108,0,0,0,0,0,0,0,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,48,49,50,51,52,53,54,55,56,57,0,0,37,115,47, 101,116,105,108,113,115,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,148,0,0,64,148,0,0,80,148,0,0,0,0,0,0,0,0,0,0,47,118,97,114,47,116,109,112,0,0,0,0,0,0,0,0,47,117,115,114,47,116,109,112,0,0,0,0,0,0,0,0,47,116,109,112,0,0,0,0,83,81,76,73,84,69,95,84,77,80,68,73,82,0,0,0,84,77,80,68,73,82,0,0,102,117,108,108,95,102,115,121,110,99,0,0,0,0,0,0,3,0,0,0,14,0,0,0,4,0,0,0,5,0,0,0,8,0,0,0,12,0,0,0,13,0,0,0,27,0,0,0,28,0,0,0,29,0,0,0,9,0,0,0,9,0,0,0,10,0,0,0,0,0,0,0,3,0,0,0,12,0,0,0,17,0,0,0,6,0,0,0,4,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,47,100,101,118,47,117,114,97,110,100,111,109,0,0,0,0,47,37,115,0,0,0,0,0,102,115,121,110,99,0,0,0,112,115,111,119,0,0,0,0,3,0,0,0,15,0,0,0,4,0,0,0,5,0,0,0,8,0,0,0,12,0,0,0,13,0,0,0,30,0,0,0,31,0,0,0,32,0,0,0,9,0,0,0,9,0,0,0,10,0,0,0,7,0,0,0,3,0,0,0,12,0,0,0,17,0,0,0,6,0,0,0,4,0,0,0,0,0,0,0,37,115,46,108,111,99,107,0,99,97,110,110,111,116,32,102,115,116,97,116,32,100,98,32,102,105,108,101,32,37,115,0,102,105,108,101,32,117,110,108,105,110,107,101,100,32,119,104,105,108,101, 32,111,112,101,110,58,32,37,115,0,0,0,0,109,117,108,116,105,112,108,101,32,108,105,110,107,115,32,116,111,32,102,105,108,101,58,32,37,115,0,0,0,0,0,0,102,105,108,101,32,114,101,110,97,109,101,100,32,119,104,105,108,101,32,111,112,101,110,58,32,37,115,0,0,0,0,0,0,0,0,0,0,0,0,0,37,115,45,115,104,109,0,0,114,101,97,100,111,110,108,121,95,115,104,109,0,0,0,0,37,0,0,0,0,0,0,0,100,10,1,1,0,0,115,0,4,6,0,0,103,0,1,4,30,0,122,0,4,7,0,0,113,0,4,10,0,0,81,0,4,11,0,0,119,0,4,15,0,0,99,0,0,9,0,0,111,8,0,1,0, 2,117,10,0,1,0,0,120,16,0,1,16,1,88,16,0,1,0,4,102,0,1,2,0,0,101,0,1,3,30,0,69,0,1,3,14,0,71,0,1,4,14,0,105,10,1,1,0,0,110,0,0,5,0,0,37,0,0,8,0,0,112,16,0,14,0,1,84,0,2,12,0,0,83,0,2,13,0,0,114,10,3,16,0,0,0,0,0,0,0,0,116,104,115,116,110,100,114,100,0,0,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,0,0,0,0,0,0,0,0,45,120,48,0,88,48,0,0,78,97,78,0,0,0,0,0,45,73,110,102,0,0,0,0,43,73,110,102,0,0,0,0,73,110,102,0,0,0,0,0,40,78,85,76,76, 41,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,254,255,255,127,0,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66,Yg:67,ag:68,Bh:69,mg:70,rh:71,Mg:72,sg:73,eg:74,mh:76,dg:77,uh:78,Eg:79,Fg:80,Ig:81,Hg:82,Gg:83,hh:38,ac:39,Ng:36,$b:40,wb:95,ph:96,og:104, Tg:105,bg:97,th:91,kh:88,dh:92,yh:108,Mc:111,Zf:98,ng:103,Qg:101,Og:100,Fh:110,wg:112,Oc:113,Qd:115,Od:114,Pd:89,Lg:90,sh:93,zh:94,$f:99,Pg:102,Rd:106,vb:107,Gh:109,Jh:87,tg:122,Ch:116,lh:95,Zg:123,yg:84,nh:75,jg:125,jh:131,oh:130,Dh:86},jb={"0":"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes", 12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func", 34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange", 53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)", 74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required", 90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected", 107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"},kb=0;function P(a){return E[kb>>2]=a} function lb(a,b){for(var c=0,d=a.length-1;0<=d;d--){var f=a[d];"."===f?a.splice(d,1):".."===f?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function mb(a){var b="/"===a.charAt(0),c="/"===a.substr(-1),a=lb(a.split("/").filter(function(a){return!!a}),!b).join("/");!a&&!b&&(a=".");a&&c&&(a+="/");return(b?"/":"")+a} function nb(a){var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1),a=b[0],b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b}function ob(a){if("/"===a)return"/";var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)}function pb(){var a=Array.prototype.slice.call(arguments,0);return mb(a.join("/"))}function qb(a,b){return mb(a+"/"+b)} function rb(){for(var a="",b=m,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:z.Ib();"string"!==typeof b&&e(new TypeError("Arguments to path.resolve must be strings"));if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=lb(a.split("/").filter(function(a){return!!a}),!b).join("/");return(b?"/":"")+a||"."} function sb(a,b){function c(a){for(var b=0;bc?[]:a.slice(b,c-b+1)}for(var a=rb(a).substr(1),b=rb(b).substr(1),d=c(a.split("/")),f=c(b.split("/")),h=Math.min(d.length,f.length),i=h,j=0;ja.n.length)&&(a.n=Q.Te(a),a.C=a.n.length);if(!a.n||a.n.subarray){var c=a.n?a.n.buffer.byteLength:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)|0),0!=c&&(b=Math.max(b,256)),c=a.n,a.n=new Uint8Array(b),0b)a.n.length=b;else for(;a.n.length=a.k.C)return 0;a=Math.min(a.k.C-f,d);u(0<=a);if(8b&&e(new z.e(O.B));return b},fb:function(a,b,c){Q.md(a.k,b+c);a.k.C=Math.max(a.k.C,b+c)},Ra:function(a,b,c,d,f,h,i){z.isFile(a.k.mode)||e(new z.e(O.ub));c= a.k.n;if(!(i&2)&&(c.buffer===b||c.buffer===b.buffer))a=m,d=c.byteOffset;else{if(0>>0)%z.ia.length},ud:function(a){var b=z.tc(a.parent.id,a.name);a.La=z.ia[b];z.ia[b]=a},vd:function(a){var b=z.tc(a.parent.id,a.name);if(z.ia[b]===a)z.ia[b]=a.La;else for(b=z.ia[b];b;){if(b.La===a){b.La=a.La;break}b=b.La}},sa:function(a,b){var c=z.mf(a);c&&e(new z.e(c,a));for(c=z.ia[z.tc(a.id,b)];c;c=c.La){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return z.Pa(a,b)},createNode:function(a, b,c,d){z.yb||(z.yb=function(a,b,c,d){a||(a=this);this.parent=a;this.O=a.O;this.mb=l;this.id=z.rf++;this.name=b;this.mode=c;this.o={};this.q={};this.pb=d},z.yb.prototype={},Object.defineProperties(z.yb.prototype,{W:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}},gf:{get:function(){return z.U(this.mode)}},uc:{get:function(){return z.Qb(this.mode)}}})); a=new z.yb(a,b,c,d);z.ud(a);return a},mc:function(a){z.vd(a)},Rb:function(a){return a===a.parent},Ia:function(a){return!!a.mb},isFile:function(a){return 32768===(a&61440)},U:function(a){return 16384===(a&61440)},lb:function(a){return 40960===(a&61440)},Qb:function(a){return 8192===(a&61440)},ef:function(a){return 24576===(a&61440)},ff:function(a){return 4096===(a&61440)},hf:function(a){return 49152===(a&49152)},Oe:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217, xa:1217,"a+":1090,"ax+":1218,"xa+":1218},Cd:function(a){var b=z.Oe[a];"undefined"===typeof b&&e(Error("Unknown file open mode: "+a));return b},Pe:function(a){var b=["r","w","rw"][a&2097155];a&512&&(b+="w");return b},Ba:function(a,b){return z.wd?0:-1!==b.indexOf("r")&&!(a.mode&292)||-1!==b.indexOf("w")&&!(a.mode&146)||-1!==b.indexOf("x")&&!(a.mode&73)?O.tb:0},mf:function(a){var b=z.Ba(a,"x");return b?b:!a.o.Pa?O.tb:0},xc:function(a,b){try{return z.sa(a,b),O.Nc}catch(c){}return z.Ba(a,"wx")},Sb:function(a, b,c){var d;try{d=z.sa(a,b)}catch(f){return f.Lb}if(a=z.Ba(a,"wx"))return a;if(c){if(!z.U(d.mode))return O.cb;if(z.Rb(d)||z.ra(d)===z.Ib())return O.Ea}else if(z.U(d.mode))return O.Oa;return 0},nf:function(a,b){return!a?O.ea:z.lb(a.mode)?O.$b:z.U(a.mode)&&(0!==(b&2097155)||b&512)?O.Oa:z.Ba(a,z.Pe(b))},Yd:4096,sf:function(a,b){for(var b=b||z.Yd,c=a||0;c<=b;c++)if(!z.Na[c])return c;e(new z.e(O.Sd))},T:function(a){return z.Na[a]},bd:function(a,b,c){z.zb||(z.zb=n(),z.zb.prototype={},Object.defineProperties(z.zb.prototype, {object:{get:function(){return this.k},set:function(a){this.k=a}},Ji:{get:function(){return 1!==(this.D&2097155)}},Ki:{get:function(){return 0!==(this.D&2097155)}},Ii:{get:function(){return this.D&1024}}}));var d=new z.zb,f;for(f in a)d[f]=a[f];a=d;b=z.sf(b,c);a.I=b;return z.Na[b]=a},ve:function(a){z.Na[a]=l},Fi:function(a){return z.Na[a-1]},sc:function(a){return a?a.I+1:0},ue:{open:function(a){a.q=z.Se(a.k.pb).q;a.q.open&&a.q.open(a)},ga:function(){e(new z.e(O.xb))}},wc:function(a){return a>>8}, Ri:function(a){return a&255},Ka:function(a,b){return a<<8|b},Cc:function(a,b){z.gd[a]={q:b}},Se:function(a){return z.gd[a]},pd:function(a){for(var b=[],a=[a];a.length;){var c=a.pop();b.push(c);a.push.apply(a,c.nb)}return b},Kd:function(a,b){function c(a){if(a){if(!c.Ke)return c.Ke=k,b(a)}else++f>=d.length&&b(l)}"function"===typeof a&&(b=a,a=m);var d=z.pd(z.root.O),f=0;d.forEach(function(b){if(!b.type.Kd)return c(l);b.type.Kd(b,a,c)})},O:function(a,b,c){var d="/"===c,f=!c,h;d&&z.root&&e(new z.e(O.Ea)); !d&&!f&&(h=z.G(c,{pc:m}),c=h.path,h=h.k,z.Ia(h)&&e(new z.e(O.Ea)),z.U(h.mode)||e(new z.e(O.cb)));b={type:a,Ti:b,of:c,nb:[]};a=a.O(b);a.O=b;b.root=a;d?z.root=a:h&&(h.mb=b,h.O&&h.O.nb.push(b));return a},Zi:function(a){a=z.G(a,{pc:m});z.Ia(a.k)||e(new z.e(O.B));var a=a.k,b=a.mb,c=z.pd(b);Object.keys(z.ia).forEach(function(a){for(a=z.ia[a];a;){var b=a.La;-1!==c.indexOf(a.O)&&z.mc(a);a=b}});a.mb=l;b=a.O.nb.indexOf(b);u(-1!==b);a.O.nb.splice(b,1)},Pa:function(a,b){return a.o.Pa(a,b)},ha:function(a,b,c){var d= z.G(a,{parent:k}).k,a=ob(a);(!a||"."===a||".."===a)&&e(new z.e(O.B));var f=z.xc(d,a);f&&e(new z.e(f));d.o.ha||e(new z.e(O.$));return d.o.ha(d,a,b,c)},create:function(a,b){b=(b!==g?b:438)&4095;b|=32768;return z.ha(a,b,0)},ta:function(a,b){b=(b!==g?b:511)&1023;b|=16384;return z.ha(a,b,0)},Tb:function(a,b,c){"undefined"===typeof c&&(c=b,b=438);return z.ha(a,b|8192,c)},va:function(a,b){rb(a)||e(new z.e(O.ea));var c=z.G(b,{parent:k}).k;c||e(new z.e(O.ea));var d=ob(b),f=z.xc(c,d);f&&e(new z.e(f));c.o.va|| e(new z.e(O.$));return c.o.va(c,d,a)},rename:function(a,b){var c=nb(a),d=nb(b),f=ob(a),h=ob(b),i,j,x;try{i=z.G(a,{parent:k}),j=i.k,i=z.G(b,{parent:k}),x=i.k}catch(p){e(new z.e(O.Ea))}(!j||!x)&&e(new z.e(O.ea));j.O!==x.O&&e(new z.e(O.Vd));i=z.sa(j,f);d=sb(a,d);"."!==d.charAt(0)&&e(new z.e(O.B));d=sb(b,c);"."!==d.charAt(0)&&e(new z.e(O.ac));var A;try{A=z.sa(x,h)}catch(t){}if(i!==A){c=z.U(i.mode);(f=z.Sb(j,f,c))&&e(new z.e(f));(f=A?z.Sb(x,h,c):z.xc(x,h))&&e(new z.e(f));j.o.rename||e(new z.e(O.$));(z.Ia(i)|| A&&z.Ia(A))&&e(new z.e(O.Ea));x!==j&&(f=z.Ba(j,"w"))&&e(new z.e(f));try{z.Q.willMovePath&&z.Q.willMovePath(a,b)}catch(B){console.log("FS.trackingDelegate['willMovePath']('"+a+"', '"+b+"') threw an exception: "+B.message)}z.vd(i);try{j.o.rename(i,x,h)}catch(I){e(I)}finally{z.ud(i)}try{if(z.Q.onMovePath)z.Q.onMovePath(a,b)}catch(ca){console.log("FS.trackingDelegate['onMovePath']('"+a+"', '"+b+"') threw an exception: "+ca.message)}}},Va:function(a){var b=z.G(a,{parent:k}).k,c=ob(a),d=z.sa(b,c),f=z.Sb(b, c,k);f&&e(new z.e(f));b.o.Va||e(new z.e(O.$));z.Ia(d)&&e(new z.e(O.Ea));try{z.Q.willDeletePath&&z.Q.willDeletePath(a)}catch(h){console.log("FS.trackingDelegate['willDeletePath']('"+a+"') threw an exception: "+h.message)}b.o.Va(b,c);z.mc(d);try{if(z.Q.onDeletePath)z.Q.onDeletePath(a)}catch(i){console.log("FS.trackingDelegate['onDeletePath']('"+a+"') threw an exception: "+i.message)}},qb:function(a){a=z.G(a,{ca:k}).k;a.o.qb||e(new z.e(O.cb));return a.o.qb(a)},Da:function(a){var b=z.G(a,{parent:k}).k, c=ob(a),d=z.sa(b,c),f=z.Sb(b,c,m);f&&(f===O.Oa&&(f=O.$),e(new z.e(f)));b.o.Da||e(new z.e(O.$));z.Ia(d)&&e(new z.e(O.Ea));try{z.Q.willDeletePath&&z.Q.willDeletePath(a)}catch(h){console.log("FS.trackingDelegate['willDeletePath']('"+a+"') threw an exception: "+h.message)}b.o.Da(b,c);z.mc(d);try{if(z.Q.onDeletePath)z.Q.onDeletePath(a)}catch(i){console.log("FS.trackingDelegate['onDeletePath']('"+a+"') threw an exception: "+i.message)}},Ta:function(a){(a=z.G(a).k)||e(new z.e(O.ea));a.o.Ta||e(new z.e(O.B)); return a.o.Ta(a)},Ic:function(a,b){var c=z.G(a,{ca:!b}).k;c||e(new z.e(O.ea));c.o.fa||e(new z.e(O.$));return c.o.fa(c)},kf:function(a){return z.Ic(a,k)},hb:function(a,b,c){a="string"===typeof a?z.G(a,{ca:!c}).k:a;a.o.R||e(new z.e(O.$));a.o.R(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})},Mi:function(a,b){z.hb(a,b,k)},Me:function(a,b){var c=z.T(a);c||e(new z.e(O.N));z.hb(c.k,b)},kc:function(a,b,c,d){a="string"===typeof a?z.G(a,{ca:!d}).k:a;a.o.R||e(new z.e(O.$));a.o.R(a,{timestamp:Date.now()})}, Ni:function(a,b,c){z.kc(a,b,c,k)},Ne:function(a,b,c){(a=z.T(a))||e(new z.e(O.N));z.kc(a.k,b,c)},truncate:function(a,b){0>b&&e(new z.e(O.B));var c;c="string"===typeof a?z.G(a,{ca:k}).k:a;c.o.R||e(new z.e(O.$));z.U(c.mode)&&e(new z.e(O.Oa));z.isFile(c.mode)||e(new z.e(O.B));var d=z.Ba(c,"w");d&&e(new z.e(d));c.o.R(c,{size:b,timestamp:Date.now()})},Re:function(a,b){var c=z.T(a);c||e(new z.e(O.N));0===(c.D&2097155)&&e(new z.e(O.B));z.truncate(c.k,b)},Qf:function(a,b,c){a=z.G(a,{ca:k}).k;a.o.R(a,{timestamp:Math.max(b, c)})},open:function(a,b,c,d,f){""===a&&e(new z.e(O.ea));var b="string"===typeof b?z.Cd(b):b,c=b&64?("undefined"===typeof c?438:c)&4095|32768:0,h;if("object"===typeof a)h=a;else{a=mb(a);try{h=z.G(a,{ca:!(b&131072)}).k}catch(i){}}var j=m;b&64&&(h?b&128&&e(new z.e(O.Nc)):(h=z.ha(a,c,0),j=k));h||e(new z.e(O.ea));z.Qb(h.mode)&&(b&=-513);j||(c=z.nf(h,b))&&e(new z.e(c));b&512&&z.truncate(h,0);b&=-641;d=z.bd({k:h,path:z.ra(h),D:b,seekable:k,position:0,q:h.q,Pf:[],error:m},d,f);d.q.open&&d.q.open(d);r.logReadFiles&& !(b&1)&&(z.Ac||(z.Ac={}),a in z.Ac||(z.Ac[a]=1,r.printErr("read file: "+a)));try{z.Q.onOpenFile&&(f=0,1!==(b&2097155)&&(f|=z.Ld.Ed.Zd),0!==(b&2097155)&&(f|=z.Ld.Ed.de),z.Q.onOpenFile(a,f))}catch(x){console.log("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+x.message)}return d},close:function(a){try{a.q.close&&a.q.close(a)}catch(b){e(b)}finally{z.ve(a.I)}},ga:function(a,b,c){(!a.seekable||!a.q.ga)&&e(new z.e(O.xb));a.position=a.q.ga(a,b,c);a.Pf=[];return a.position},W:function(a, b,c,d,f){(0>d||0>f)&&e(new z.e(O.B));1===(a.D&2097155)&&e(new z.e(O.N));z.U(a.k.mode)&&e(new z.e(O.Oa));a.q.W||e(new z.e(O.B));var h=k;"undefined"===typeof f?(f=a.position,h=m):a.seekable||e(new z.e(O.xb));b=a.q.W(a,b,c,d,f);h||(a.position+=b);return b},write:function(a,b,c,d,f,h){(0>d||0>f)&&e(new z.e(O.B));0===(a.D&2097155)&&e(new z.e(O.N));z.U(a.k.mode)&&e(new z.e(O.Oa));a.q.write||e(new z.e(O.B));a.D&1024&&z.ga(a,0,2);var i=k;"undefined"===typeof f?(f=a.position,i=m):a.seekable||e(new z.e(O.xb)); b=a.q.write(a,b,c,d,f,h);i||(a.position+=b);try{if(a.path&&z.Q.onWriteToFile)z.Q.onWriteToFile(a.path)}catch(j){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+j.message)}return b},fb:function(a,b,c){(0>b||0>=c)&&e(new z.e(O.B));0===(a.D&2097155)&&e(new z.e(O.N));!z.isFile(a.k.mode)&&!z.U(node.mode)&&e(new z.e(O.ub));a.q.fb||e(new z.e(O.wb));a.q.fb(a,b,c)},Ra:function(a,b,c,d,f,h,i){1===(a.D&2097155)&&e(new z.e(O.tb));a.q.Ra||e(new z.e(O.ub));return a.q.Ra(a,b, c,d,f,h,i)},kb:function(a,b,c){a.q.kb||e(new z.e(O.Ud));return a.q.kb(a,b,c)},Ef:function(a,b){b=b||{};b.D=b.D||"r";b.encoding=b.encoding||"binary";"utf8"!==b.encoding&&"binary"!==b.encoding&&e(Error('Invalid encoding type "'+b.encoding+'"'));var c,d=z.open(a,b.D),f=z.Ic(a).size,h=new Uint8Array(f);z.W(d,h,0,f,0);if("utf8"===b.encoding){c="";for(var i=new w.eb,j=0;j>2]=z.sc(a);u(0===a.I,"invalid handle for stdin ("+a.I+")");a=z.open("/dev/stdout","w");E[Ab>>2]=z.sc(a);u(1===a.I,"invalid handle for stdout ("+a.I+")");a=z.open("/dev/stderr","w");E[Bb>>2]=z.sc(a);u(2===a.I,"invalid handle for stderr ("+a.I+")")},jd:function(){z.e|| (z.e=function(a,b){this.k=b;this.Id=function(a){this.Lb=a;for(var b in O)if(O[b]===a){this.code=b;break}};this.Id(a);this.message=jb[a]},z.e.prototype=Error(),[O.ea].forEach(function(a){z.rc[a]=new z.e(a);z.rc[a].stack=""}))},Nf:function(){z.jd();z.ia=Array(4096);z.O(Q,{},"/");z.xe();z.we()},jb:function(a,b,c){u(!z.jb.Pb,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"); z.jb.Pb=k;z.jd();r.stdin=a||r.stdin;r.stdout=b||r.stdout;r.stderr=c||r.stderr;z.Fe()},Cf:function(){z.jb.Pb=m;for(var a=0;a this.length-1||0>a)){var b=a%this.Db;return this.Ze(a/this.Db|0)[b]}};h.prototype.Kf=function(a){this.Ze=a};h.prototype.Zc=function(){var a=new XMLHttpRequest;a.open("HEAD",c,m);a.send(l);200<=a.status&&300>a.status||304===a.status||e(Error("Couldn't load "+c+". Status: "+a.status));var b=Number(a.getResponseHeader("Content-length")),d,f=1048576;if(!((d=a.getResponseHeader("Accept-Ranges"))&&"bytes"===d))f=b;var h=this;h.Kf(function(a){var d=a*f,i=(a+1)*f-1,i=Math.min(i,b-1);if("undefined"===typeof h.Eb[a]){var j= h.Eb;d>i&&e(Error("invalid range ("+d+", "+i+") or no bytes requested!"));i>b-1&&e(Error("only "+b+" bytes available! programmer error!"));var p=new XMLHttpRequest;p.open("GET",c,m);b!==f&&p.setRequestHeader("Range","bytes="+d+"-"+i);"undefined"!=typeof Uint8Array&&(p.responseType="arraybuffer");p.overrideMimeType&&p.overrideMimeType("text/plain; charset=x-user-defined");p.send(l);200<=p.status&&300>p.status||304===p.status||e(Error("Couldn't load "+c+". Status: "+p.status));d=p.response!==g?new Uint8Array(p.response|| []):N(p.responseText||"",k);j[a]=d}"undefined"===typeof h.Eb[a]&&e(Error("doXHR failed!"));return h.Eb[a]});this.fe=b;this.ee=f;this.vc=k};if("undefined"!==typeof XMLHttpRequest){ea||e("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc");var i=new h;Object.defineProperty(i,"length",{get:function(){this.vc||this.Zc();return this.fe}});Object.defineProperty(i,"chunkSize",{get:function(){this.vc||this.Zc();return this.ee}});i={uc:m,n:i}}else i= {uc:m,url:c};var j=z.ye(a,b,i,d,f);i.n?j.n=i.n:i.url&&(j.n=l,j.url=i.url);Object.defineProperty(j,"usedBytes",{get:function(){return this.n.length}});var x={};Object.keys(j.q).forEach(function(a){var b=j.q[a];x[a]=function(){z.nd(j)||e(new z.e(O.Fa));return b.apply(l,arguments)}});x.W=function(a,b,c,d,f){z.nd(j)||e(new z.e(O.Fa));a=a.k.n;if(f>=a.length)return 0;d=Math.min(a.length-f,d);u(0<=d);if(a.slice)for(var h=0;h>h-6&63,h=h-6,c=c+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[p]}2==h?(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(d&3)<<4],c+="=="):4==h&&(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(d&15)<<2],c+="="); t.src="data:audio/x-"+b.substr(-3)+";base64,"+c;f(t)}};t.src=j;r.noExitRuntime=k;setTimeout(function(){pa||f(t)},1E4)}else return h()}});var B=r.canvas;B&&(B.Dc=B.requestPointerLock||B.mozRequestPointerLock||B.webkitRequestPointerLock||B.msRequestPointerLock||n(),B.ld=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||n(),B.ld=B.ld.bind(document),document.addEventListener("pointerlockchange",p,m),document.addEventListener("mozpointerlockchange", p,m),document.addEventListener("webkitpointerlockchange",p,m),document.addEventListener("mspointerlockchange",p,m),r.elementPointerLock&&B.addEventListener("click",function(a){!Cb&&B.Dc&&(B.Dc(),a.preventDefault())},m))}var I=b?rb(qb(a,b)):a;fb();"string"==typeof c?Ib(c,function(a){A(a)},i):A(c)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},Kc:function(){return"EM_FS_"+window.location.pathname},Lc:20,$a:"FILE_DATA",Vi:function(a,b, c){var b=b||n(),c=c||n(),d=z.indexedDB();try{var f=d.open(z.Kc(),z.Lc)}catch(h){return c(h)}f.wf=function(){console.log("creating db");f.result.createObjectStore(z.$a)};f.onsuccess=function(){var d=f.result.transaction([z.$a],"readwrite"),h=d.objectStore(z.$a),x=0,p=0,A=a.length;a.forEach(function(a){a=h.put(z.ic(a).object.n,a);a.onsuccess=function(){x++;x+p==A&&(0==p?b():c())};a.onerror=function(){p++;x+p==A&&(0==p?b():c())}});d.onerror=c};f.onerror=c},Pi:function(a,b,c){var b=b||n(),c=c||n(),d= z.indexedDB();try{var f=d.open(z.Kc(),z.Lc)}catch(h){return c(h)}f.wf=c;f.onsuccess=function(){var d=f.result;try{var h=d.transaction([z.$a],"readonly")}catch(x){c(x);return}var p=h.objectStore(z.$a),A=0,t=0,B=a.length;a.forEach(function(a){var d=p.get(a);d.onsuccess=function(){z.ic(a).oc&&z.Da(a);z.Gb(nb(a),ob(a),d.result,k,k,k);A++;A+t==B&&(0==t?b():c())};d.onerror=function(){t++;A+t==B&&(0==t?b():c())}});h.onerror=c};f.onerror=c}};r._i64Subtract=Jb;r._memset=Kb; function Lb(a,b,c){a="string"!==typeof a?y(a):a;try{var d=c?z.kf(a):z.Ic(a);E[b>>2]=d.He;E[b+4>>2]=0;E[b+8>>2]=d.xd;E[b+12>>2]=d.mode;E[b+16>>2]=d.tf;E[b+20>>2]=d.uid;E[b+24>>2]=d.$e;E[b+28>>2]=d.pb;E[b+32>>2]=0;E[b+36>>2]=d.size;E[b+40>>2]=4096;E[b+44>>2]=d.se;E[b+48>>2]=d.ke.getTime()/1E3|0;E[b+52>>2]=0;E[b+56>>2]=d.pf.getTime()/1E3|0;E[b+60>>2]=0;E[b+64>>2]=d.Ge.getTime()/1E3|0;E[b+68>>2]=0;E[b+72>>2]=d.xd;return 0}catch(f){return f.k&&mb(a)!==mb(z.ra(f.k))&&f.Id(O.cb),z.F(f),-1}} r._bitshift64Shl=Mb;function Nb(a){a/=1E3;if((da||ea)&&self.performance&&self.performance.now)for(var b=self.performance.now();self.performance.now()-b>8,a.Ya&255]));return b},Ob:function(a,b,c){return a.ob[b+":"+c]},Wc:function(a,b){a.ob[b.ma+":"+b.port]=b},Hd:function(a,b){delete a.ob[b.ma+ ":"+b.port]},cf:function(a,b){function c(){r.websocket.aa("open",a.J.I);try{for(var c=b.Jb.shift();c;)b.p.send(c),c=b.Jb.shift()}catch(d){b.p.close()}}function d(c){u("string"!==typeof c&&c.byteLength!==g);var c=new Uint8Array(c),d=f;f=m;d&&10===c.length&&255===c[0]&&255===c[1]&&255===c[2]&&255===c[3]&&112===c[4]&&111===c[5]&&114===c[6]&&116===c[7]?(c=c[8]<<8|c[9],R.X.Hd(a,b),b.port=c,R.X.Wc(a,b)):(a.Ua.push({ma:b.ma,port:b.port,data:c}),r.websocket.aa("message",a.J.I))}var f=k;s?(b.p.on("open",c), b.p.on("message",function(a,b){b.binary&&d((new Uint8Array(a)).buffer)}),b.p.on("close",function(){r.websocket.aa("close",a.J.I)}),b.p.on("error",function(){a.error=O.Mc;r.websocket.aa("error",[a.J.I,a.error,"ECONNREFUSED: Connection refused"])})):(b.p.onopen=c,b.p.onclose=function(){r.websocket.aa("close",a.J.I)},b.p.onmessage=function(a){d(a.data)},b.p.onerror=function(){a.error=O.Mc;r.websocket.aa("error",[a.J.I,a.error,"ECONNREFUSED: Connection refused"])})},Fd:function(a){if(1===a.type&&a.P)return a.yc.length? 65:0;var b=0,c=1===a.type?R.X.Ob(a,a.oa,a.pa):l;if(a.Ua.length||!c||c&&c.p.readyState===c.p.sb||c&&c.p.readyState===c.p.CLOSED)b|=65;if(!c||c&&c.p.readyState===c.p.OPEN)b|=4;if(c&&c.p.readyState===c.p.sb||c&&c.p.readyState===c.p.CLOSED)b|=16;return b},kb:function(a,b,c){switch(b){case 21531:return b=0,a.Ua.length&&(b=a.Ua[0].data.length),E[c>>2]=b,0;default:return O.B}},close:function(a){if(a.P){try{a.P.close()}catch(b){}a.P=l}for(var c=Object.keys(a.ob),d=0;d=mc;)mc+=1E3/60;b=Math.max(mc-b,0);setTimeout(a,b)}function ac(a){"undefined"===typeof window?nc(a):(window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||nc),window.requestAnimationFrame(a))} function Hb(a){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[a.substr(a.lastIndexOf(".")+1)]} function Ib(a,b,c){function d(){c?c():e('Loading data file "'+a+'" failed.')}var f=new XMLHttpRequest;f.open("GET",a,k);f.responseType="arraybuffer";f.onload=function(){if(200==f.status||0==f.status&&f.response){var c=f.response;u(c,'Loading data file "'+a+'" failed (no arrayBuffer).');b(new Uint8Array(c));gb()}else d()};f.onerror=d;f.send(l);fb()}var oc=[];function pc(){var a=r.canvas;oc.forEach(function(b){b(a.width,a.height)})} function qc(a,b,c){b&&c?(a.Rf=b,a.df=c):(b=a.Rf,c=a.df);var d=b,f=c;r.forcedAspectRatio&&0>2]=60*-(new Date).getTimezoneOffset();var b=new Date(2E3,0,1),c=new Date(2E3,6,1);E[tc>>2]=Number(b.getTimezoneOffset()!=c.getTimezoneOffset());var d=a(b),f=a(c),d=H(N(d),"i8",F),f=H(N(f),"i8",F);c.getTimezoneOffset()>2]=d,E[sc+4>>2]=f):(E[sc>>2]=f,E[sc+4>>2]=d)}} function wc(a,b){vc();var c=new Date(1E3*E[a>>2]);E[b>>2]=c.getSeconds();E[b+4>>2]=c.getMinutes();E[b+8>>2]=c.getHours();E[b+12>>2]=c.getDate();E[b+16>>2]=c.getMonth();E[b+20>>2]=c.getFullYear()-1900;E[b+24>>2]=c.getDay();var d=new Date(c.getFullYear(),0,1);E[b+28>>2]=(c.getTime()-d.getTime())/864E5|0;E[b+36>>2]=-(60*c.getTimezoneOffset());c=c.getTimezoneOffset()==Math.min(d.getTimezoneOffset(),(new Date(2E3,6,1)).getTimezoneOffset())|0;E[b+32>>2]=c;E[b+40>>2]=E[sc+(c?w.wa:0)>>2];return b} r._bitshift64Lshr=xc;function yc(a,b,c){a=z.T(a);if(!a)return P(O.N),-1;try{return z.W(a,D,b,c)}catch(d){return z.F(d),-1}}var zc=H(1,"i32*",G); function Ac(a){var b,c;Ac.gb?(c=E[zc>>2],b=E[c>>2]):(Ac.gb=k,S.USER="web_user",S.PATH="/",S.PWD="/",S.HOME="/home/web_user",S.LANG="C",S._=r.thisProgram,b=H(1024,"i8",G),c=H(256,"i8*",G),E[c>>2]=b,E[zc>>2]=c);var d=[],f=0,h;for(h in a)if("string"===typeof a[h]){var i=h+"="+a[h];d.push(i);f+=i.length}1024>2]=b,b+=i.length+1;E[c+4*d.length>>2]=0}var S={}; function Bc(a){if(0===a)return 0;a=y(a);if(!S.hasOwnProperty(a))return 0;Bc.Ec&&Ka(Bc.Ec);Bc.Ec=H(N(S[a]),"i8",F);return Bc.Ec}r._memcpy=Cc;function Dc(a){Dc.gb||(C=C+4095&-4096,Dc.gb=k,u(w.Kb),Dc.he=w.Kb,w.Kb=function(){ma("cannot dynamically allocate, sbrk now has control")});var b=C;0!=a&&Dc.he(a);return b}r._memmove=Ec;function Fc(a,b,c){if(a in jb){if(jb[a].length>c-1)return P(O.Qc);bb(jb[a],b);return 0}return P(O.B)} function Gc(a){Gc.buffer||(Gc.buffer=Ia(256));Fc(a,Gc.buffer,256);return Gc.buffer}function Hc(a,b,c,d,f,h){var i,j=m;Hc.Qa||(Hc.Qa={});if(-1==f){i=Ia(b);if(!i)return-1;Kb(i,0,b);j=k}else{f=z.T(f);if(!f)return-1;try{var x=z.Ra(f,K,a,b,h,c,d);i=x.Af;j=x.fc}catch(p){return z.F(p),-1}}Hc.Qa[i]={lf:i,vf:b,fc:j};return i}z.Nf();Va.unshift({Ha:function(){!r.noFSInit&&!z.jb.Pb&&z.jb()}});Wa.push({Ha:function(){z.wd=m}});Xa.push({Ha:function(){z.Cf()}});r.FS_createFolder=z.ze;r.FS_createPath=z.Ce; r.FS_createDataFile=z.Gb;r.FS_createPreloadedFile=z.De;r.FS_createLazyFile=z.Ae;r.FS_createLink=z.Be;r.FS_createDevice=z.na;kb=w.Jd(4);E[kb>>2]=0;Va.unshift({Ha:n()});Xa.push({Ha:n()});var wb=new w.eb;s&&(require("fs"),process.platform.match(/^win/));Va.push({Ha:function(){R.root=z.O(R,{},l)}}); r.requestFullScreen=function(a,b){function c(){ic=m;var a=d.parentNode;(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===a?(d.$c=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.msExitFullscreen||document.exitFullscreen|| n(),d.$c=d.$c.bind(document),kc&&d.Dc(),ic=k,lc&&("undefined"!=typeof SDL&&(a=Na[SDL.screen+0*w.wa>>2],E[SDL.screen+0*w.wa>>2]=a|8388608),pc())):(a.parentNode.insertBefore(d,a),a.parentNode.removeChild(a),lc&&("undefined"!=typeof SDL&&(a=Na[SDL.screen+0*w.wa>>2],E[SDL.screen+0*w.wa>>2]=a&-8388609),pc()));if(r.onFullScreen)r.onFullScreen(ic);qc(d)}kc=a;lc=b;"undefined"===typeof kc&&(kc=k);"undefined"===typeof lc&&(lc=m);var d=r.canvas;jc||(jc=k,document.addEventListener("fullscreenchange",c,m),document.addEventListener("mozfullscreenchange", c,m),document.addEventListener("webkitfullscreenchange",c,m),document.addEventListener("MSFullscreenChange",c,m));var f=document.createElement("div");d.parentNode.insertBefore(f,d);f.appendChild(d);f.Hf=f.requestFullScreen||f.mozRequestFullScreen||f.msRequestFullscreen||(f.webkitRequestFullScreen?function(){f.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:l);f.Hf()};r.requestAnimationFrame=function(a){ac(a)};r.setCanvasSize=function(a,b,c){qc(r.canvas,a,b);c||pc()}; r.pauseMainLoop=function(){Yb=l;dc++};r.resumeMainLoop=function(){dc++;var a=Vb,b=Wb,c=Xb;Xb=l;bc(c,0,m,cc);Ub(a,b)};r.getUserMedia=function(){window.sd||(window.sd=navigator.getUserMedia||navigator.mozGetUserMedia);window.sd(g)};Ac(S);Pa=v=w.ec(na);Qa=Pa+Sa;Ra=C=w.ec(Qa);u(Ra>2],c+=E[b+12>>2]/1E3):c=Date.now();a=y(a);try{return z.Qf(a,c,c),0}catch(d){return z.F(d),-1}},_getuid:Qb,_send:function(a,b,c){return!R.rd(a)?(P(O.N),-1):Sb(a,b,c)},_getcwd:function(a,b){if(0==b)return P(O.B),0;var c=z.Ib();if(b>2];if(0>b)return P(O.B),-1;var d;try{d=z.open(a.path,a.D,0,b)}catch(f){return z.F(f), -1}return d.I;case 1:case 2:return 0;case 3:return a.D;case 4:return b=E[c>>2],a.D|=b,0;case 12:case 12:return b=E[c>>2],za[b+0>>1]=2,0;case 13:case 14:case 13:case 14:return 0;case 8:case 9:return P(O.B),-1;default:return P(O.B),-1}},___buildEnvironment:Ac,_fflush:n(),_pwrite:function(a,b,c,d){a=z.T(a);if(!a)return P(O.N),-1;try{return z.write(a,D,b,c,d)}catch(f){return z.F(f),-1}},_strerror_r:Fc,_localtime_r:wc,_tzset:vc,_open:function(a,b,c){c=E[c>>2];a=y(a);try{return z.open(a,b,c).I}catch(d){return z.F(d), -1}},_getpid:function(){return 42},_sbrk:Dc,_usleep:Nb,_emscripten_memcpy_big:function(a,b,c){K.set(K.subarray(b,b+c),a);return a},_unlink:function(a){a=y(a);try{return z.Da(a),0}catch(b){return z.F(b),-1}},_sysconf:function(a){switch(a){case 30:return 4096;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 79:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809; case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32; case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1E3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"===typeof navigator?navigator.hardwareConcurrency||1:1}P(O.B);return-1}, _fchmod:function(a,b){try{return z.Me(a,b),0}catch(c){return z.F(c),-1}},___setErrNo:P,_ftruncate:function(a,b){try{return z.Re(a,b),0}catch(c){return z.F(c),-1}},_mkdir:function(a,b){a=y(a);a=mb(a);"/"===a[a.length-1]&&(a=a.substr(0,a.length-1));try{return z.ta(a,b,0),0}catch(c){return z.F(c),-1}},_pread:function(a,b,c,d){a=z.T(a);if(!a)return P(O.N),-1;try{return z.W(a,D,b,c,d)}catch(f){return z.F(f),-1}},_mkport:Rb,_write:Sb,_fsync:function(a){if(z.T(a))return 0;P(O.N);return-1},___errno_location:function(){return kb}, _stat:Lb,_recv:function(a,b,c){return!R.rd(a)?(P(O.N),-1):yc(a,b,c)},_geteuid:function(){return Qb.apply(l,arguments)},_getenv:Bc,_sleep:function(a){return Nb(1E6*a)},_emscripten_set_main_loop:bc,_abort:function(){r.abort()},_time:function(a){var b=Date.now()/1E3|0;a&&(E[a>>2]=b);return b},_fchown:function(a,b,c){try{return z.Ne(a,b,c),0}catch(d){return z.F(d),-1}},_strerror:Gc,_gettimeofday:function(a){var b=Date.now();E[a>>2]=b/1E3|0;E[a+4>>2]=1E3*(b%1E3)|0;return 0},_munmap:function(a,b){Hc.Qa|| (Hc.Qa={});var c=Hc.Qa[a];if(!c)return 0;b==c.vf&&(Hc.Qa[a]=l,c.fc&&Ka(c.lf));return 0},_mmap:Hc,_localtime:function(a){return wc(a,rc)},_close:function(a){a=z.T(a);if(!a)return P(O.N),-1;try{return z.close(a),0}catch(b){return z.F(b),-1}},_read:yc,_truncate:function(a,b){"string"!==typeof a&&(a=y(a));try{return z.truncate(a,b),0}catch(c){return z.F(c),-1}},STACKTOP:v,STACK_MAX:Qa,tempDoublePtr:ib,ABORT:pa,cttz_i8:Jc,ctlz_i8:Ic,NaN:NaN,Infinity:Infinity};// EMSCRIPTEN_START_ASM var T=(function(global,env,buffer) { "use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env.cttz_i8|0;var n=env.ctlz_i8|0;var o=0;var p=0;var q=0;var r=0;var s=+env.NaN,t=+env.Infinity;var u=0,v=0,w=0,x=0,y=0.0,z=0,A=0,B=0,C=0.0;var D=0;var E=0;var F=0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=0;var M=0;var N=global.Math.floor;var O=global.Math.abs;var P=global.Math.sqrt;var Q=global.Math.pow;var R=global.Math.cos;var S=global.Math.sin;var T=global.Math.tan;var U=global.Math.acos;var V=global.Math.asin;var W=global.Math.atan;var X=global.Math.atan2;var Y=global.Math.exp;var Z=global.Math.log;var _=global.Math.ceil;var $=global.Math.imul;var aa=env.abort;var ba=env.assert;var ca=env.min;var da=env.invoke_iiii;var ea=env.invoke_i;var fa=env.invoke_vi;var ga=env.invoke_vii;var ha=env.invoke_iiiiiii;var ia=env.invoke_ii;var ja=env.invoke_viii;var ka=env.invoke_v;var la=env.invoke_iiiii;var ma=env.invoke_viiiiii;var na=env.invoke_iii;var oa=env.invoke_iiiiii;var pa=env.invoke_viiii;var qa=env._utimes;var ra=env._getuid;var sa=env._send;var ta=env._getcwd;var ua=env._mknod;var va=env._lseek;var wa=env._emscripten_set_main_loop_timing;var xa=env._access;var ya=env._fstat;var za=env._chmod;var Aa=env._rmdir;var Ba=env._chown;var Ca=env._fcntl;var Da=env.___buildEnvironment;var Ea=env._fflush;var Fa=env._pwrite;var Ga=env._strerror_r;var Ha=env._localtime_r;var Ia=env._tzset;var Ja=env._open;var Ka=env._getpid;var La=env._sbrk;var Ma=env._usleep;var Na=env._emscripten_memcpy_big;var Oa=env._unlink;var Pa=env._sysconf;var Qa=env._fchmod;var Ra=env.___setErrNo;var Sa=env._ftruncate;var Ta=env._mkdir;var Ua=env._pread;var Va=env._mkport;var Wa=env._write;var Xa=env._fsync;var Ya=env.___errno_location;var Za=env._stat;var _a=env._recv;var $a=env._geteuid;var ab=env._getenv;var bb=env._sleep;var cb=env._emscripten_set_main_loop;var db=env._abort;var eb=env._time;var fb=env._fchown;var gb=env._strerror;var hb=env._gettimeofday;var ib=env._munmap;var jb=env._mmap;var kb=env._localtime;var lb=env._close;var mb=env._read;var nb=env._truncate;var ob=0.0; // EMSCRIPTEN_START_FUNCS function Cb(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;return b|0}function Db(){return i|0}function Eb(a){a=a|0;i=a}function Fb(a,b){a=a|0;b=b|0;if(!o){o=a;p=b}}function Gb(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0]}function Hb(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0];a[k+4>>0]=a[b+4>>0];a[k+5>>0]=a[b+5>>0];a[k+6>>0]=a[b+6>>0];a[k+7>>0]=a[b+7>>0]}function Ib(a){a=a|0;D=a}function Jb(){return D|0}function Kb(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;i=i+16|0;d=e+12|0;f=e+8|0;g=e+4|0;h=e;c[f>>2]=b;if(!(Lb(c[f>>2]|0,16,7)|0))c[f>>2]=(c[f>>2]|0)+7;c[h>>2]=Mb(c[f>>2]|0)|0;c[g>>2]=0;while(1){if((c[g>>2]|0)>=5){b=9;break}if((Lb(c[f>>2]|0,c[24+(c[g>>2]<<2)>>2]|0,c[h>>2]|0)|0)==0?(Nb(a[(c[24+(c[g>>2]<<2)>>2]|0)+(c[h>>2]|0)>>0]|0)|0)==0:0){b=7;break}c[g>>2]=(c[g>>2]|0)+1}if((b|0)==7){c[d>>2]=1;h=c[d>>2]|0;i=e;return h|0}else if((b|0)==9){c[d>>2]=0;h=c[d>>2]|0;i=e;return h|0}return 0}function Lb(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+32|0;l=f+16|0;k=f+12|0;j=f+8|0;g=f+4|0;h=f;c[l>>2]=a;c[k>>2]=b;c[j>>2]=e;c[g>>2]=c[l>>2];c[h>>2]=c[k>>2];while(1){l=c[j>>2]|0;c[j>>2]=l+ -1;if((l|0)<=0)break;if(!(d[c[g>>2]>>0]|0))break;if((d[440+(d[c[g>>2]>>0]|0)>>0]|0|0)!=(d[440+(d[c[h>>2]>>0]|0)>>0]|0|0))break;c[g>>2]=(c[g>>2]|0)+1;c[h>>2]=(c[h>>2]|0)+1}if((c[j>>2]|0)<0){l=0;i=f;return l|0}l=(d[440+(d[c[g>>2]>>0]|0)>>0]|0)-(d[440+(d[c[h>>2]>>0]|0)>>0]|0)|0;i=f;return l|0}function Mb(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;e=d+8|0;f=d+4|0;g=d;c[f>>2]=b;c[g>>2]=c[f>>2];if(!(c[f>>2]|0)){c[e>>2]=0;b=c[e>>2]|0;i=d;return b|0}while(1){b=c[g>>2]|0;if(!(a[c[g>>2]>>0]|0))break;c[g>>2]=b+1}c[e>>2]=1073741823&b-(c[f>>2]|0);b=c[e>>2]|0;i=d;return b|0}function Nb(b){b=b|0;var c=0,e=0;e=i;i=i+16|0;c=e;a[c>>0]=b;i=e;return((d[1224+(d[c>>0]|0)>>0]|0)&70|0)!=0|0}function Ob(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[e>>2]=a;if((c[e>>2]|0)>=0&(c[e>>2]|0)<5){c[d>>2]=c[24+(c[e>>2]<<2)>>2];e=c[d>>2]|0;i=b;return e|0}else{c[d>>2]=0;e=c[d>>2]|0;i=b;return e|0}return 0}function Pb(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+32|0;g=f+16|0;h=f+12|0;j=f+8|0;k=f+4|0;l=f;c[h>>2]=a;c[j>>2]=b;c[k>>2]=d;c[l>>2]=e;if((c[h>>2]|0)<0|(c[h>>2]|0)>=10){c[g>>2]=Qb(14581)|0;a=c[g>>2]|0;i=f;return a|0}c[c[j>>2]>>2]=c[48+(c[h>>2]<<2)>>2];c[c[k>>2]>>2]=c[88+(c[h>>2]<<2)>>2];if(c[l>>2]|0)c[88+(c[h>>2]<<2)>>2]=c[48+(c[h>>2]<<2)>>2];c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}function Qb(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b;e=b+8|0;c[e>>2]=a;e=c[e>>2]|0;a=(vf()|0)+20|0;c[d>>2]=e;c[d+4>>2]=a;tc(21,3216,d);i=b;return 21}function Rb(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=0;while(1){if((c[e>>2]|0)>=(c[(c[d>>2]|0)+20>>2]|0))break;c[f>>2]=c[(c[(c[d>>2]|0)+16>>2]|0)+(c[e>>2]<<4)+4>>2];if(c[f>>2]|0)c[(c[(c[f>>2]|0)+4>>2]|0)+4>>2]=c[c[f>>2]>>2];c[e>>2]=(c[e>>2]|0)+1}i=b;return}function Sb(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[c[(c[b>>2]|0)+4>>2]>>2]|0}function Tb(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=ub[c[38640+48>>2]&31](c[d>>2]|0)|0;i=b;return a|0}function Ub(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){i=d;return}Bn(c[e>>2]|0,c[(c[f>>2]|0)+28>>2]|0);Xb(c[e>>2]|0,c[c[f>>2]>>2]|0);Xb(c[e>>2]|0,c[(c[f>>2]|0)+4>>2]|0);wn(c[e>>2]|0,c[(c[f>>2]|0)+12>>2]|0);xn(c[e>>2]|0,c[(c[f>>2]|0)+16>>2]|0);Xb(c[e>>2]|0,c[f>>2]|0);i=d;return}function Vb(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+32|0;g=f+16|0;h=f+12|0;j=f+8|0;l=f+4|0;k=f;c[g>>2]=a;c[h>>2]=d;if(!(c[h>>2]|0)){i=f;return}if(!((c[g>>2]|0)!=0?(c[(c[g>>2]|0)+520>>2]|0)!=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)+(c[j>>2]<<2)>>2]|0);c[j>>2]=(c[j>>2]|0)+ -1}dD(d,c[(c[f>>2]|0)+4>>2]|0,c[(c[f>>2]|0)+32>>2]|0);Xb(c[g>>2]|0,c[(c[f>>2]|0)+16>>2]|0);Xb(c[g>>2]|0,c[(c[f>>2]|0)+168>>2]|0);Xb(c[g>>2]|0,c[(c[f>>2]|0)+172>>2]|0);i=h;return}function Xb(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+8|0;e=d+4|0;f=d;c[g>>2]=a;c[e>>2]=b;if(!(c[e>>2]|0)){i=d;return}if(c[g>>2]|0){a=c[g>>2]|0;b=c[e>>2]|0;if(c[(c[g>>2]|0)+520>>2]|0){OE(a,b);i=d;return}if(Ck(a,b)|0){c[f>>2]=c[e>>2];c[c[f>>2]>>2]=c[(c[g>>2]|0)+272>>2];c[(c[g>>2]|0)+272>>2]=c[f>>2];a=(c[g>>2]|0)+252|0;c[a>>2]=(c[a>>2]|0)+ -1;i=d;return}}hc(c[e>>2]|0);i=d;return}function Yb(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;d=b+12|0;f=b+8|0;e=b+4|0;g=b;c[f>>2]=a;c[e>>2]=0;c[g>>2]=Zb()|0;if(c[g>>2]|0){c[d>>2]=0;g=c[d>>2]|0;i=b;return g|0}c[e>>2]=c[32];while(1){if((c[e>>2]|0)==0|(c[f>>2]|0)==0)break;if(!(UE(c[f>>2]|0,c[(c[e>>2]|0)+16>>2]|0)|0))break;c[e>>2]=c[(c[e>>2]|0)+12>>2]}c[d>>2]=c[e>>2];g=c[d>>2]|0;i=b;return g|0}function Zb(){var a=0,b=0,d=0,e=0,f=0;a=i;i=i+16|0;b=a+8|0;d=a+4|0;e=a;if(c[9716]|0){c[b>>2]=0;f=c[b>>2]|0;i=a;return f|0}c[d>>2]=0;if(c[d>>2]|0){c[b>>2]=c[d>>2];f=c[b>>2]|0;i=a;return f|0}c[9718]=1;if(!(c[9719]|0))c[d>>2]=wf()|0;if((((c[d>>2]|0)==0?(c[9719]=1,(c[9722]|0)==0):0)?(c[9722]=8,(c[9661]|0)!=0):0)?(c[9722]|0)==0:0)c[d>>2]=7;if(!(c[d>>2]|0))c[9721]=(c[9721]|0)+1;if(c[d>>2]|0){c[b>>2]=c[d>>2];f=c[b>>2]|0;i=a;return f|0}if((c[9716]|0)==0?(c[9717]|0)==0:0){c[e>>2]=1576;c[9717]=1;f=(c[e>>2]|0)+0|0;e=f+92|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(e|0));xf();if(!(c[9720]|0))c[d>>2]=yf()|0;if(!(c[d>>2]|0)){c[9720]=1;c[d>>2]=zf()|0}if(!(c[d>>2]|0)){Af(c[9711]|0,c[9712]|0,c[9713]|0);c[9716]=1}c[9717]=0}c[9721]=(c[9721]|0)+ -1;if((c[9721]|0)<=0)c[9722]=0;c[b>>2]=c[d>>2];f=c[b>>2]|0;i=a;return f|0}function _b(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=Zb()|0;if(c[h>>2]|0){c[e>>2]=c[h>>2];a=c[e>>2]|0;i=d;return a|0}$b(c[f>>2]|0);b=c[32]|0;if((c[g>>2]|0)!=0|(c[32]|0)==0){c[(c[f>>2]|0)+12>>2]=b;c[32]=c[f>>2]}else{c[(c[f>>2]|0)+12>>2]=c[b+12>>2];c[(c[32]|0)+12>>2]=c[f>>2]}c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}function $b(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+4|0;e=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}if((c[32]|0)==(c[d>>2]|0)){c[32]=c[(c[d>>2]|0)+12>>2];i=b;return}if(!(c[32]|0)){i=b;return}c[e>>2]=c[32];while(1){if(c[(c[e>>2]|0)+12>>2]|0)f=(c[(c[e>>2]|0)+12>>2]|0)!=(c[d>>2]|0);else f=0;a=c[(c[e>>2]|0)+12>>2]|0;if(!f)break;c[e>>2]=a}if((a|0)!=(c[d>>2]|0)){i=b;return}c[(c[e>>2]|0)+12>>2]=c[(c[d>>2]|0)+12>>2];i=b;return}function ac(a){a=a|0;var b=0;b=i;i=i+16|0;c[b>>2]=a;i=b;return 0}function bc(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;f=i;i=i+32|0;k=f+16|0;j=f+12|0;g=f;h=f+8|0;c[k>>2]=a;c[j>>2]=b;b=g;c[b>>2]=d;c[b+4>>2]=e;c[38]=c[k>>2];c[39]=c[j>>2];d=g;b=c[d+4>>2]|0;a=144|0;c[a>>2]=c[d>>2];c[a+4>>2]=b;c[h>>2]=ME(0)|0;a=g;b=c[a+4>>2]|0;if(!((b|0)>0|(b|0)==0&(c[a>>2]|0)>>>0>0)){k=0;k=k&1;c[43]=k;i=f;return 0}j=g;b=c[j+4>>2]|0;k=c[h>>2]|0;a=((k|0)<0)<<31>>31;k=(b|0)<(a|0)|((b|0)==(a|0)?(c[j>>2]|0)>>>0<=k>>>0:0);k=k&1;c[43]=k;i=f;return 0}function cc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+48|0;e=d+24|0;g=d+16|0;f=d+8|0;h=d;j=d+32|0;k=g;c[k>>2]=a;c[k+4>>2]=b;c[j>>2]=Zb()|0;if(c[j>>2]|0){j=e;c[j>>2]=-1;c[j+4>>2]=-1;j=e;k=j;k=c[k>>2]|0;j=j+4|0;j=c[j>>2]|0;D=j;i=d;return k|0}a=144|0;j=c[a+4>>2]|0;k=f;c[k>>2]=c[a>>2];c[k+4>>2]=j;if((c[g+4>>2]|0)<0){a=f;k=c[a+4>>2]|0;j=e;c[j>>2]=c[a>>2];c[j+4>>2]=k;j=e;k=j;k=c[k>>2]|0;j=j+4|0;j=c[j>>2]|0;D=j;i=d;return k|0}k=g;j=c[k+4>>2]|0;if((j|0)>0|(j|0)==0&(c[k>>2]|0)>>>0>0){k=g;bc(2,0,c[k>>2]|0,c[k+4>>2]|0)|0}else bc(0,0,0,0)|0;k=ec()|0;j=g;j=ZE(k|0,D|0,c[j>>2]|0,c[j+4>>2]|0)|0;k=h;c[k>>2]=j;c[k+4>>2]=D;k=h;j=c[k+4>>2]|0;if((j|0)>0|(j|0)==0&(c[k>>2]|0)>>>0>0)ac(c[h>>2]&2147483647)|0;a=f;k=c[a+4>>2]|0;j=e;c[j>>2]=c[a>>2];c[j+4>>2]=k;j=e;k=j;k=c[k>>2]|0;j=j+4|0;j=c[j>>2]|0;D=j;i=d;return k|0}function dc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f+8|0;c[f+12>>2]=a;a=f;c[a>>2]=b;c[a+4>>2]=d;c[g>>2]=e;ac(c[g>>2]|0)|0;i=f;return}function ec(){var a=0,b=0,d=0,e=0;b=i;i=i+16|0;e=b+12|0;a=b;Pb(0,e,b+8|0,0)|0;e=c[e>>2]|0;d=a;c[d>>2]=e;c[d+4>>2]=((e|0)<0)<<31>>31;D=c[a+4>>2]|0;i=b;return c[a>>2]|0}function fc(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[e>>2]=a;if(Zb()|0){c[d>>2]=0;e=c[d>>2]|0;i=b;return e|0}if((c[e>>2]|0)<=0)a=0;else{a=c[e>>2]|0;a=gc(a,((a|0)<0)<<31>>31)|0}c[d>>2]=a;e=c[d>>2]|0;i=b;return e|0}function gc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d;e=d+8|0;g=f;c[g>>2]=a;c[g+4>>2]=b;g=f;a=f;b=c[a+4>>2]|0;if((c[g>>2]|0)==0&(c[g+4>>2]|0)==0|(b>>>0>0|(b|0)==0&(c[a>>2]|0)>>>0>=2147483392)){c[e>>2]=0;g=c[e>>2]|0;i=d;return g|0}if(c[9660]|0){PE(c[f>>2]|0,e)|0;g=c[e>>2]|0;i=d;return g|0}else{c[e>>2]=ub[c[38640+36>>2]&31](c[f>>2]|0)|0;g=c[e>>2]|0;i=d;return g|0}return 0}function hc(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}if(c[9660]|0){ic(0,0-(Tb(c[d>>2]|0)|0)|0);ic(9,-1);rb[c[38640+40>>2]&31](c[d>>2]|0);i=b;return}else{rb[c[38640+40>>2]&31](c[d>>2]|0);i=b;return}}function ic(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;a=48+(c[e>>2]<<2)|0;c[a>>2]=(c[a>>2]|0)+(c[f>>2]|0);if((c[48+(c[e>>2]<<2)>>2]|0)<=(c[88+(c[e>>2]<<2)>>2]|0)){i=d;return}c[88+(c[e>>2]<<2)>>2]=c[48+(c[e>>2]<<2)>>2];i=d;return}function jc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;e=d+8|0;g=d+4|0;f=d;c[g>>2]=a;c[f>>2]=b;if(Zb()|0){c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}if((c[f>>2]|0)<0)c[f>>2]=0;a=c[f>>2]|0;c[e>>2]=kc(c[g>>2]|0,a,((a|0)<0)<<31>>31)|0;a=c[e>>2]|0;i=d;return a|0}function kc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;k=i;i=i+32|0;f=k+28|0;g=k+24|0;e=k;l=k+20|0;j=k+16|0;m=k+12|0;h=k+8|0;c[g>>2]=a;a=e;c[a>>2]=b;c[a+4>>2]=d;d=e;b=c[d>>2]|0;d=c[d+4>>2]|0;if(!(c[g>>2]|0)){c[f>>2]=gc(b,d)|0;a=c[f>>2]|0;i=k;return a|0}if((b|0)==0&(d|0)==0){hc(c[g>>2]|0);c[f>>2]=0;a=c[f>>2]|0;i=k;return a|0}a=e;b=c[a+4>>2]|0;if(b>>>0>0|(b|0)==0&(c[a>>2]|0)>>>0>=2147483392){c[f>>2]=0;a=c[f>>2]|0;i=k;return a|0}c[l>>2]=Tb(c[g>>2]|0)|0;c[j>>2]=ub[c[38640+52>>2]&31](c[e>>2]|0)|0;do if((c[l>>2]|0)!=(c[j>>2]|0)){if(!(c[9660]|0)){c[h>>2]=zb[c[38640+44>>2]&63](c[g>>2]|0,c[j>>2]|0)|0;break}Bg(5,c[e>>2]|0);c[m>>2]=(c[j>>2]|0)-(c[l>>2]|0);b=ME(0)|0;n=((b|0)<0)<<31>>31;d=144|0;a=c[m>>2]|0;a=ZE(c[d>>2]|0,c[d+4>>2]|0,a|0,((a|0)<0)<<31>>31|0)|0;d=D;if((n|0)>(d|0)|(n|0)==(d|0)&b>>>0>=a>>>0)NE(c[m>>2]|0);c[h>>2]=zb[c[38640+44>>2]&63](c[g>>2]|0,c[j>>2]|0)|0;if((c[h>>2]|0)==0&(c[38]|0)!=0){NE(c[e>>2]|0);c[h>>2]=zb[c[38640+44>>2]&63](c[g>>2]|0,c[j>>2]|0)|0}if(c[h>>2]|0){c[j>>2]=Tb(c[h>>2]|0)|0;ic(0,(c[j>>2]|0)-(c[l>>2]|0)|0)}}else c[h>>2]=c[g>>2];while(0);c[f>>2]=c[h>>2];n=c[f>>2]|0;i=k;return n|0}function lc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+12|0;g=e+8|0;h=e;c[g>>2]=a;a=h;c[a>>2]=b;c[a+4>>2]=d;if(Zb()|0){c[f>>2]=0;a=c[f>>2]|0;i=e;return a|0}else{a=h;c[f>>2]=kc(c[g>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0;a=c[f>>2]|0;i=e;return a|0}return 0}function mc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+128|0;f=e+40|0;k=e+36|0;j=e+32|0;g=e+28|0;h=e;c[k>>2]=b;c[j>>2]=d;if(Zb()|0){c[f>>2]=0;b=c[f>>2]|0;i=e;return b|0}else{nc(h,e+44|0,70,1e9);a[h+24>>0]=2;oc(h,0,c[k>>2]|0,c[j>>2]|0);c[g>>2]=pc(h)|0;c[f>>2]=c[g>>2];b=c[f>>2]|0;i=e;return b|0}return 0}function nc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+16|0;h=g+12|0;l=g+8|0;k=g+4|0;j=g;c[h>>2]=b;c[l>>2]=d;c[k>>2]=e;c[j>>2]=f;b=c[l>>2]|0;c[(c[h>>2]|0)+4>>2]=b;c[(c[h>>2]|0)+8>>2]=b;c[c[h>>2]>>2]=0;c[(c[h>>2]|0)+12>>2]=0;c[(c[h>>2]|0)+16>>2]=c[k>>2];c[(c[h>>2]|0)+20>>2]=c[j>>2];a[(c[h>>2]|0)+24>>0]=1;a[(c[h>>2]|0)+25>>0]=0;i=g;return}function oc(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0.0;m=i;i=i+272|0;Y=m+172|0;ra=m+168|0;q=m+164|0;z=m+160|0;p=m+156|0;I=m+152|0;A=m+148|0;J=m+144|0;G=m+140|0;o=m+136|0;r=m+264|0;s=m+263|0;t=m+262|0;w=m+261|0;u=m+260|0;v=m+259|0;B=m+258|0;C=m+257|0;n=m+256|0;F=m+255|0;x=m+254|0;ia=m+253|0;Q=m+252|0;ma=m+32|0;P=m+24|0;E=m+132|0;X=m+128|0;ja=m+124|0;W=m+120|0;S=m+116|0;V=m+112|0;j=m+108|0;R=m+16|0;Z=m+251|0;U=m+250|0;y=m+104|0;H=m+180|0;qa=m+8|0;pa=m+100|0;oa=m+96|0;na=m+179|0;ka=m+92|0;la=m+178|0;T=m;$=m+88|0;_=m+84|0;ea=m+80|0;ha=m+76|0;ca=m+72|0;da=m+68|0;ba=m+64|0;ga=m+60|0;fa=m+177|0;K=m+176|0;aa=m+56|0;L=m+52|0;M=m+48|0;N=m+44|0;O=m+40|0;c[Y>>2]=b;c[ra>>2]=e;c[q>>2]=f;c[z>>2]=g;a[F>>0]=0;c[W>>2]=0;c[y>>2]=0;c[I>>2]=0;if(c[ra>>2]|0){g=c[ra>>2]&2;a[x>>0]=g;if(g&255){b=c[z>>2]|0;e=c[b>>2]|0;g=c[e>>2]|0;c[b>>2]=e+4;c[y>>2]=g}a[ia>>0]=c[ra>>2]&1}else{a[ia>>0]=0;a[x>>0]=0}a:while(1){g=a[c[q>>2]>>0]|0;c[p>>2]=g;if(!g){l=274;break}if((c[p>>2]|0)!=37){c[I>>2]=c[q>>2];do{c[q>>2]=(c[q>>2]|0)+1;if(!(a[c[q>>2]>>0]|0))break}while((a[c[q>>2]>>0]|0)!=37);Vm(c[Y>>2]|0,c[I>>2]|0,(c[q>>2]|0)-(c[I>>2]|0)|0);if(!(a[c[q>>2]>>0]|0)){l=274;break}}g=(c[q>>2]|0)+1|0;c[q>>2]=g;g=a[g>>0]|0;c[p>>2]=g;if(!g){l=13;break}a[v>>0]=0;a[u>>0]=0;a[w>>0]=0;a[t>>0]=0;a[s>>0]=0;a[r>>0]=0;a[n>>0]=0;do{switch(c[p>>2]|0){case 45:{a[r>>0]=1;break};case 43:{a[s>>0]=1;break};case 32:{a[t>>0]=1;break};case 33:{a[u>>0]=1;break};case 48:{a[v>>0]=1;break};case 35:{a[w>>0]=1;break};default:a[n>>0]=1}if(a[n>>0]|0)break;g=(c[q>>2]|0)+1|0;c[q>>2]=g;g=a[g>>0]|0;c[p>>2]=g}while((g|0)!=0);c[o>>2]=0;b:do if((c[p>>2]|0)==42){if(a[x>>0]|0){g=HE(c[y>>2]|0)|0;c[o>>2]=g}else{b=c[z>>2]|0;e=c[b>>2]|0;g=c[e>>2]|0;c[b>>2]=e+4;c[o>>2]=g}if((c[o>>2]|0)<0){a[r>>0]=1;c[o>>2]=0-(c[o>>2]|0)}g=(c[q>>2]|0)+1|0;c[q>>2]=g;c[p>>2]=a[g>>0]}else while(1){if(!((c[p>>2]|0)>=48&(c[p>>2]|0)<=57))break b;c[o>>2]=((c[o>>2]|0)*10|0)+(c[p>>2]|0)-48;g=(c[q>>2]|0)+1|0;c[q>>2]=g;c[p>>2]=a[g>>0]}while(0);c:do if((c[p>>2]|0)==46){c[A>>2]=0;g=(c[q>>2]|0)+1|0;c[q>>2]=g;c[p>>2]=a[g>>0];if((c[p>>2]|0)!=42)while(1){if(!((c[p>>2]|0)>=48&(c[p>>2]|0)<=57))break c;c[A>>2]=((c[A>>2]|0)*10|0)+(c[p>>2]|0)-48;g=(c[q>>2]|0)+1|0;c[q>>2]=g;c[p>>2]=a[g>>0]}if(a[x>>0]|0){g=HE(c[y>>2]|0)|0;c[A>>2]=g}else{b=c[z>>2]|0;e=c[b>>2]|0;g=c[e>>2]|0;c[b>>2]=e+4;c[A>>2]=g}if((c[A>>2]|0)<0)c[A>>2]=0-(c[A>>2]|0);g=(c[q>>2]|0)+1|0;c[q>>2]=g;c[p>>2]=a[g>>0]}else c[A>>2]=-1;while(0);do if((c[p>>2]|0)==108){a[B>>0]=1;g=(c[q>>2]|0)+1|0;c[q>>2]=g;c[p>>2]=a[g>>0];if((c[p>>2]|0)==108){a[C>>0]=1;g=(c[q>>2]|0)+1|0;c[q>>2]=g;c[p>>2]=a[g>>0];break}else{a[C>>0]=0;break}}else{a[C>>0]=0;a[B>>0]=0}while(0);c[E>>2]=38392;a[F>>0]=0;c[G>>2]=0;while(1){if((c[G>>2]|0)>=23)break;ra=c[G>>2]|0;if((c[p>>2]|0)==(a[38392+((c[G>>2]|0)*6|0)>>0]|0)){l=53;break}c[G>>2]=ra+1}if((l|0)==53){l=0;c[E>>2]=38392+(ra*6|0);if((d[ia>>0]|0)==0?(d[(c[E>>2]|0)+2>>0]&2|0)!=0:0){l=274;break}a[F>>0]=a[(c[E>>2]|0)+3>>0]|0}d:do switch(d[F>>0]|0){case 14:{a[C>>0]=0;a[B>>0]=1;l=59;break};case 1:case 16:{l=59;break};case 4:case 3:case 2:{if(a[x>>0]|0)h[P>>3]=+IE(c[y>>2]|0);else{g=c[z>>2]|0;b=c[g>>2]|0;c[k>>2]=c[b>>2];c[k+4>>2]=c[b+4>>2];sa=+h[k>>3];c[g>>2]=b+8;h[P>>3]=sa}if((c[A>>2]|0)<0)c[A>>2]=6;do if(!(+h[P>>3]<0.0)){if(a[s>>0]|0){a[Q>>0]=43;break}if(a[t>>0]|0){a[Q>>0]=32;break}else{a[Q>>0]=0;break}}else{h[P>>3]=-+h[P>>3];a[Q>>0]=45}while(0);if((d[F>>0]|0)==4&(c[A>>2]|0)>0)c[A>>2]=(c[A>>2]|0)+ -1;c[G>>2]=c[A>>2];h[R>>3]=.5;while(1){if((c[G>>2]|0)<=0)break;c[G>>2]=(c[G>>2]|0)+ -1;h[R>>3]=+h[R>>3]*.1}if((d[F>>0]|0)==2)h[P>>3]=+h[P>>3]+ +h[R>>3];c[S>>2]=0;if($w(+h[P>>3])|0){c[I>>2]=38600;c[J>>2]=3;break d}if(+h[P>>3]>0.0){h[T>>3]=1.0;while(1){if(!((c[S>>2]|0)<=350?+h[P>>3]>=+h[T>>3]*1.0e+100:0))break;h[T>>3]=+h[T>>3]*1.0e+100;c[S>>2]=(c[S>>2]|0)+100}while(1){if(!((c[S>>2]|0)<=350?+h[P>>3]>=+h[T>>3]*1.0e+64:0))break;h[T>>3]=+h[T>>3]*1.0e+64;c[S>>2]=(c[S>>2]|0)+64}while(1){if(!((c[S>>2]|0)<=350?+h[P>>3]>=+h[T>>3]*1.0e8:0))break;h[T>>3]=+h[T>>3]*1.0e8;c[S>>2]=(c[S>>2]|0)+8}while(1){if(+h[P>>3]>=+h[T>>3]*10.0)ra=(c[S>>2]|0)<=350;else ra=0;sa=+h[T>>3];if(!ra)break;h[T>>3]=sa*10.0;c[S>>2]=(c[S>>2]|0)+1}h[P>>3]=+h[P>>3]/sa;while(1){if(!(+h[P>>3]<1.0e-8))break;h[P>>3]=+h[P>>3]*1.0e8;c[S>>2]=(c[S>>2]|0)-8}while(1){if(!(+h[P>>3]<1.0))break;h[P>>3]=+h[P>>3]*10.0;c[S>>2]=(c[S>>2]|0)+ -1}if((c[S>>2]|0)>350){do if((a[Q>>0]|0)!=45)if((a[Q>>0]|0)==43){c[I>>2]=38616;break}else{c[I>>2]=38624;break}else c[I>>2]=38608;while(0);c[J>>2]=Mb(c[I>>2]|0)|0;break d}}c[I>>2]=H;if((d[F>>0]|0)!=2?(h[P>>3]=+h[P>>3]+ +h[R>>3],+h[P>>3]>=10.0):0){h[P>>3]=+h[P>>3]*.1;c[S>>2]=(c[S>>2]|0)+1}e:do if((d[F>>0]|0)==4){a[U>>0]=((a[w>>0]|0)!=0^1)&1;do if((c[S>>2]|0)>=-4){if((c[S>>2]|0)>(c[A>>2]|0))break;c[A>>2]=(c[A>>2]|0)-(c[S>>2]|0);a[F>>0]=2;break e}while(0);a[F>>0]=3}else a[U>>0]=a[u>>0]|0;while(0);if((d[F>>0]|0)==3)c[V>>2]=0;else c[V>>2]=c[S>>2];if((((c[V>>2]|0)>0?c[V>>2]|0:0)+(c[A>>2]|0)+(c[o>>2]|0)|0)>55?(g=((c[V>>2]|0)>0?c[V>>2]|0:0)+(c[A>>2]|0)+(c[o>>2]|0)+15|0,g=gc(g,((g|0)<0)<<31>>31)|0,c[W>>2]=g,c[I>>2]=g,(c[I>>2]|0)==0):0){l=167;break a}c[X>>2]=c[I>>2];c[j>>2]=16+((d[u>>0]|0)*10|0);a[Z>>0]=((c[A>>2]|0)>0?1:0)|d[w>>0]|d[u>>0];if(a[Q>>0]|0){b=a[Q>>0]|0;g=c[I>>2]|0;c[I>>2]=g+1;a[g>>0]=b}f:do if((c[V>>2]|0)<0){g=c[I>>2]|0;c[I>>2]=g+1;a[g>>0]=48}else while(1){if((c[V>>2]|0)<0)break f;b=JE(P,j)|0;g=c[I>>2]|0;c[I>>2]=g+1;a[g>>0]=b;c[V>>2]=(c[V>>2]|0)+ -1}while(0);if(a[Z>>0]|0){g=c[I>>2]|0;c[I>>2]=g+1;a[g>>0]=46}c[V>>2]=(c[V>>2]|0)+1;while(1){if((c[V>>2]|0)>=0)break;g=c[I>>2]|0;c[I>>2]=g+1;a[g>>0]=48;c[A>>2]=(c[A>>2]|0)+ -1;c[V>>2]=(c[V>>2]|0)+1}while(1){g=c[A>>2]|0;c[A>>2]=g+ -1;if((g|0)<=0)break;b=JE(P,j)|0;g=c[I>>2]|0;c[I>>2]=g+1;a[g>>0]=b}do if(d[U>>0]|0){if(!(d[Z>>0]|0))break;while(1){ra=(c[I>>2]|0)+ -1|0;if((a[(c[I>>2]|0)+ -1>>0]|0)!=48)break;c[I>>2]=ra;a[ra>>0]=0}if((a[ra>>0]|0)!=46)break;ra=c[I>>2]|0;if(a[u>>0]|0){c[I>>2]=ra+1;a[ra>>0]=48;break}else{g=ra+ -1|0;c[I>>2]=g;a[g>>0]=0;break}}while(0);if((d[F>>0]|0)==3){ra=a[38552+(d[(c[E>>2]|0)+4>>0]|0)>>0]|0;g=c[I>>2]|0;c[I>>2]=g+1;a[g>>0]=ra;g=(c[S>>2]|0)<0;ra=c[I>>2]|0;c[I>>2]=ra+1;if(g){a[ra>>0]=45;c[S>>2]=0-(c[S>>2]|0)}else a[ra>>0]=43;if((c[S>>2]|0)>=100){b=((c[S>>2]|0)/100|0)+48&255;g=c[I>>2]|0;c[I>>2]=g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(c[A>>2]|0)-1|0,c[p>>2]&255)}c[J>>2]=1;a[H>>0]=c[p>>2];c[I>>2]=H;break};case 7:case 6:{if(a[x>>0]|0)c[I>>2]=KE(c[y>>2]|0)|0;else{b=c[z>>2]|0;e=c[b>>2]|0;g=c[e>>2]|0;c[b>>2]=e+4;c[I>>2]=g}if(c[I>>2]|0){if(!((d[F>>0]|0)!=7|(a[x>>0]|0)!=0))c[W>>2]=c[I>>2]}else c[I>>2]=1216;if((c[A>>2]|0)<0){c[J>>2]=Mb(c[I>>2]|0)|0;break d}c[J>>2]=0;while(1){if((c[J>>2]|0)>=(c[A>>2]|0))break d;if(!(a[(c[I>>2]|0)+(c[J>>2]|0)>>0]|0))break d;c[J>>2]=(c[J>>2]|0)+1}};case 15:case 11:case 10:{a[K>>0]=(d[F>>0]|0)==15?34:39;if(a[x>>0]|0)c[aa>>2]=KE(c[y>>2]|0)|0;else{b=c[z>>2]|0;e=c[b>>2]|0;g=c[e>>2]|0;c[b>>2]=e+4;c[aa>>2]=g}c[ba>>2]=(c[aa>>2]|0)==0&1;if(c[ba>>2]|0)c[aa>>2]=(d[F>>0]|0)==11?9840:38632;c[ca>>2]=c[A>>2];c[da>>2]=0;c[ea>>2]=0;while(1){if(!(c[ca>>2]|0))break;g=a[(c[aa>>2]|0)+(c[ea>>2]|0)>>0]|0;a[fa>>0]=g;if(!(g<<24>>24))break;if((a[fa>>0]|0)==(a[K>>0]|0))c[da>>2]=(c[da>>2]|0)+1;c[ea>>2]=(c[ea>>2]|0)+1;c[ca>>2]=(c[ca>>2]|0)+ -1}if(c[ba>>2]|0)ra=0;else ra=(d[F>>0]|0)==11;c[ga>>2]=ra&1;c[da>>2]=(c[da>>2]|0)+((c[ea>>2]|0)+1+(c[ga>>2]<<1));if((c[da>>2]|0)>70){g=c[da>>2]|0;g=gc(g,((g|0)<0)<<31>>31)|0;c[W>>2]=g;c[I>>2]=g;if(!(c[I>>2]|0)){l=247;break a}}else c[I>>2]=H;c[ha>>2]=0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ra=c[z>>2]|0;if(a[C>>0]|0){g=c[ra>>2]|0;b=g;e=c[b>>2]|0;b=c[b+4>>2]|0;c[ra>>2]=g+8;g=qa;c[g>>2]=e;c[g+4>>2]=b;break}else{g=c[ra>>2]|0;b=c[g>>2]|0;c[ra>>2]=g+4;g=qa;c[g>>2]=b;c[g+4>>2]=((b|0)<0)<<31>>31;break}}else{b=HE(c[y>>2]|0)|0;g=qa;c[g>>2]=b;c[g+4>>2]=D}while(0);ra=qa;f=c[ra>>2]|0;ra=c[ra+4>>2]|0;if((c[qa+4>>2]|0)<0){if((f|0)==0&(ra|0)==-2147483648){g=ma;c[g>>2]=0;c[g+4>>2]=-2147483648}else{b=qa;b=ZE(0,0,c[b>>2]|0,c[b+4>>2]|0)|0;g=ma;c[g>>2]=b;c[g+4>>2]=D}a[Q>>0]=45;break}g=ma;c[g>>2]=f;c[g+4>>2]=ra;if(a[s>>0]|0){a[Q>>0]=43;break}if(a[t>>0]|0){a[Q>>0]=32;break}else{a[Q>>0]=0;break}}else{do if(!ra){ra=c[z>>2]|0;if(a[C>>0]|0){g=c[ra>>2]|0;b=g;e=c[b>>2]|0;b=c[b+4>>2]|0;c[ra>>2]=g+8;g=ma;c[g>>2]=e;c[g+4>>2]=b;break}else{g=c[ra>>2]|0;b=c[g>>2]|0;c[ra>>2]=g+4;g=ma;c[g>>2]=b;c[g+4>>2]=0;break}}else{b=HE(c[y>>2]|0)|0;g=ma;c[g>>2]=b;c[g+4>>2]=D}while(0);a[Q>>0]=0}while(0);g=ma;if((c[g>>2]|0)==0&(c[g+4>>2]|0)==0)a[w>>0]=0;if((d[v>>0]|0)!=0?(c[A>>2]|0)<((c[o>>2]|0)-((a[Q>>0]|0)!=0&1)|0):0)c[A>>2]=(c[o>>2]|0)-((a[Q>>0]|0)!=0&1);if((c[A>>2]|0)>=60){c[ja>>2]=(c[A>>2]|0)+10;g=c[ja>>2]|0;g=gc(g,((g|0)<0)<<31>>31)|0;c[W>>2]=g;c[X>>2]=g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2]>>0]|0;a[la>>0]=g;if(!(g<<24>>24))break g;b=a[la>>0]|0;g=(c[I>>2]|0)+ -1|0;c[I>>2]=g;a[g>>0]=b;c[ka>>2]=(c[ka>>2]|0)+1}}while(0);c[J>>2]=(c[X>>2]|0)+((c[ja>>2]|0)-1)-(c[I>>2]|0)}c[o>>2]=(c[o>>2]|0)-(c[J>>2]|0);if(!((c[o>>2]|0)<=0|(a[r>>0]|0)!=0))LE(c[Y>>2]|0,c[o>>2]|0,32);Vm(c[Y>>2]|0,c[I>>2]|0,c[J>>2]|0);if((c[o>>2]|0)>0?(d[r>>0]|0)!=0:0)LE(c[Y>>2]|0,c[o>>2]|0,32);if(c[W>>2]|0){hc(c[W>>2]|0);c[W>>2]=0}c[q>>2]=(c[q>>2]|0)+1}if((l|0)==13){Vm(c[Y>>2]|0,38384,1);i=m;return}else if((l|0)==89){Ym(c[Y>>2]|0,1);i=m;return}else if((l|0)==167){Ym(c[Y>>2]|0,1);i=m;return}else if((l|0)==247){Ym(c[Y>>2]|0,1);i=m;return}else if((l|0)==274){i=m;return}}function pc(b){b=b|0;var e=0,f=0,g=0;f=i;i=i+16|0;e=f;c[e>>2]=b;do if(((c[(c[e>>2]|0)+8>>2]|0)!=0?(a[(c[(c[e>>2]|0)+8>>2]|0)+(c[(c[e>>2]|0)+12>>2]|0)>>0]=0,(d[(c[e>>2]|0)+24>>0]|0|0)!=0):0)?(c[(c[e>>2]|0)+8>>2]|0)==(c[(c[e>>2]|0)+4>>2]|0):0){b=c[e>>2]|0;if((d[(c[e>>2]|0)+24>>0]|0|0)==1){g=(c[(c[e>>2]|0)+12>>2]|0)+1|0;b=Qe(c[b>>2]|0,g,((g|0)<0)<<31>>31)|0;c[(c[e>>2]|0)+8>>2]=b}else{g=fc((c[b+12>>2]|0)+1|0)|0;c[(c[e>>2]|0)+8>>2]=g}b=c[e>>2]|0;if(c[(c[e>>2]|0)+8>>2]|0){dF(c[b+8>>2]|0,c[(c[e>>2]|0)+4>>2]|0,(c[(c[e>>2]|0)+12>>2]|0)+1|0)|0;break}else{Ym(b,1);break}}while(0);i=f;return c[(c[e>>2]|0)+8>>2]|0}function qc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+32|0;e=d+28|0;h=d+24|0;g=d+8|0;f=d;c[h>>2]=a;if(Zb()|0){c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}else{c[g>>2]=b;c[f>>2]=mc(c[h>>2]|0,g)|0;c[e>>2]=c[f>>2];a=c[e>>2]|0;i=d;return a|0}return 0}function rc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+48|0;h=l+44|0;m=l+40|0;n=l+36|0;g=l+32|0;k=l+28|0;j=l;c[m>>2]=b;c[n>>2]=d;c[g>>2]=e;c[k>>2]=f;f=c[n>>2]|0;if((c[m>>2]|0)<=0){c[h>>2]=f;n=c[h>>2]|0;i=l;return n|0}else{nc(j,f,c[m>>2]|0,0);a[j+24>>0]=0;oc(j,0,c[g>>2]|0,c[k>>2]|0);c[h>>2]=pc(j)|0;n=c[h>>2]|0;i=l;return n|0}return 0}function sc(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;g=i;i=i+32|0;l=g+28|0;k=g+24|0;j=g+20|0;f=g+16|0;h=g;c[l>>2]=a;c[k>>2]=b;c[j>>2]=d;c[h>>2]=e;c[f>>2]=rc(c[l>>2]|0,c[k>>2]|0,c[j>>2]|0,h)|0;i=g;return c[f>>2]|0}function tc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+32|0;g=e+20|0;h=e+16|0;f=e;c[g>>2]=a;c[h>>2]=b;if(!(c[9723]|0)){i=e;return}c[f>>2]=d;uc(c[g>>2]|0,c[h>>2]|0,f);i=e;return}function uc(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+256|0;j=f+36|0;k=f+32|0;g=f+28|0;h=f;c[j>>2]=b;c[k>>2]=d;c[g>>2]=e;nc(h,f+40|0,210,0);a[h+24>>0]=0;oc(h,0,c[k>>2]|0,c[g>>2]|0);g=c[9723]|0;e=c[9724]|0;d=c[j>>2]|0;b=pc(h)|0;vb[g&63](e,d,b);i=f;return}function vc(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+288|0;j=f+12|0;m=f+8|0;g=f+272|0;h=f+4|0;k=f;l=f+16|0;c[j>>2]=b;c[m>>2]=e;c[h>>2]=c[m>>2];if((c[j>>2]|0)<=0){a[176]=0;i=f;return}if(!(a[176]|0)){a[178]=0;a[177]=0;wc(Yb(0)|0,256,l)|0;c[k>>2]=0;while(1){if((c[k>>2]|0)>=256)break;a[(c[k>>2]|0)+179>>0]=c[k>>2];c[k>>2]=(c[k>>2]|0)+1}c[k>>2]=0;while(1){if((c[k>>2]|0)>=256)break;a[178]=(d[178]|0)+((d[(c[k>>2]|0)+179>>0]|0)+(a[l+(c[k>>2]|0)>>0]|0));a[g>>0]=a[(d[178]|0)+179>>0]|0;a[(d[178]|0)+179>>0]=a[(c[k>>2]|0)+179>>0]|0;a[(c[k>>2]|0)+179>>0]=a[g>>0]|0;c[k>>2]=(c[k>>2]|0)+1}a[176]=1}do{a[177]=(a[177]|0)+1<<24>>24;a[g>>0]=a[(d[177]|0)+179>>0]|0;a[178]=(d[178]|0)+(d[g>>0]|0);a[(d[177]|0)+179>>0]=a[(d[178]|0)+179>>0]|0;a[(d[178]|0)+179>>0]=a[g>>0]|0;a[g>>0]=(d[g>>0]|0)+(d[(d[177]|0)+179>>0]|0);b=a[(d[g>>0]|0)+179>>0]|0;m=c[h>>2]|0;c[h>>2]=m+1;a[m>>0]=b;m=(c[j>>2]|0)+ -1|0;c[j>>2]=m}while((m|0)!=0);i=f;return}function wc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e+8|0;g=e+4|0;f=e;c[h>>2]=a;c[g>>2]=b;c[f>>2]=d;a=pb[c[(c[h>>2]|0)+56>>2]&31](c[h>>2]|0,c[g>>2]|0,c[f>>2]|0)|0;i=e;return a|0}function xc(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;j=e+12|0;h=e+8|0;g=e+4|0;f=e;c[j>>2]=a;c[h>>2]=b;c[g>>2]=c[j>>2];c[f>>2]=c[h>>2];while(1){if(d[c[g>>2]>>0]|0)a=(d[440+(d[c[g>>2]>>0]|0)>>0]|0|0)==(d[440+(d[c[f>>2]>>0]|0)>>0]|0|0);else a=0;b=c[g>>2]|0;if(!a)break;c[g>>2]=b+1;c[f>>2]=(c[f>>2]|0)+1}i=e;return(d[440+(d[b>>0]|0)>>0]|0)-(d[440+(d[c[f>>2]>>0]|0)>>0]|0)|0}function yc(){var a=0,b=0;a=i;i=i+16|0;b=a;c[b>>2]=0;while(1){if((c[b>>2]|0)>>>0>=4)break;_b(696+((c[b>>2]|0)*88|0)|0,(c[b>>2]|0)==0&1)|0;c[b>>2]=(c[b>>2]|0)+1}i=a;return 0}function zc(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,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;q=i;i=i+624|0;p=q+92|0;A=q+88|0;C=q+84|0;B=q+80|0;k=q+76|0;H=q+72|0;s=q+68|0;r=q+64|0;t=q+60|0;j=q+56|0;F=q+52|0;n=q+48|0;D=q+44|0;w=q+40|0;G=q+36|0;v=q+32|0;o=q+28|0;u=q+24|0;E=q+20|0;m=q+96|0;z=q+16|0;l=q+12|0;x=q+8|0;y=q+4|0;g=q;c[A>>2]=a;c[C>>2]=b;c[B>>2]=d;c[k>>2]=e;c[H>>2]=f;c[s>>2]=c[B>>2];c[r>>2]=-1;c[t>>2]=0;c[j>>2]=c[k>>2]&-256;c[n>>2]=0;c[D>>2]=0;c[w>>2]=c[k>>2]&16;c[G>>2]=c[k>>2]&8;c[v>>2]=c[k>>2]&4;c[o>>2]=c[k>>2]&1;c[u>>2]=c[k>>2]&2;if(c[v>>2]|0)if((c[j>>2]|0)==16384|(c[j>>2]|0)==2048)f=1;else f=(c[j>>2]|0)==524288;else f=0;c[E>>2]=f&1;c[z>>2]=c[C>>2];a=c[9524]|0;if((a|0)!=(Ka()|0)){c[9524]=Ka()|0;vc(0,0)}e=(c[s>>2]|0)+0|0;f=e+44|0;do{c[e>>2]=0;e=e+4|0}while((e|0)<(f|0));f=c[z>>2]|0;do if((c[j>>2]|0)!=256){if(!f){c[n>>2]=bE(514,m)|0;if(!(c[n>>2]|0)){c[z>>2]=m;break}c[p>>2]=c[n>>2];a=c[p>>2]|0;i=q;return a|0}}else{c[l>>2]=qE(f,c[k>>2]|0)|0;if(!(c[l>>2]|0)){c[l>>2]=fc(12)|0;if(!(c[l>>2]|0)){c[p>>2]=7;a=c[p>>2]|0;i=q;return a|0}}else c[r>>2]=c[c[l>>2]>>2];c[(c[s>>2]|0)+28>>2]=c[l>>2]}while(0);if(c[o>>2]|0)c[t>>2]=c[t>>2];if(c[u>>2]|0)c[t>>2]=c[t>>2]|2;if(c[v>>2]|0)c[t>>2]=c[t>>2]|64;if(c[w>>2]|0)c[t>>2]=c[t>>2]|131200;c[t>>2]=c[t>>2];do if((c[r>>2]|0)<0){c[n>>2]=rE(c[z>>2]|0,c[k>>2]|0,x,y,g)|0;if(c[n>>2]|0){c[p>>2]=c[n>>2];a=c[p>>2]|0;i=q;return a|0}c[r>>2]=ZD(c[z>>2]|0,c[t>>2]|0,c[x>>2]|0)|0;if((c[r>>2]|0)<0?(a=(c[(Ya()|0)>>2]|0)!=21,!(a&(c[u>>2]|0)!=0^1|(c[w>>2]|0)!=0)):0){c[k>>2]=c[k>>2]&-7;c[t>>2]=c[t>>2]&-67;c[k>>2]=c[k>>2]|1;c[t>>2]=c[t>>2];c[o>>2]=1;c[r>>2]=ZD(c[z>>2]|0,c[t>>2]|0,c[x>>2]|0)|0}if((c[r>>2]|0)<0){a=Ij(30591)|0;c[n>>2]=UD(a,37536,c[z>>2]|0,30591)|0;break}if(c[k>>2]&526336){pb[c[37192+244>>2]&31](c[r>>2]|0,c[y>>2]|0,c[g>>2]|0)|0;h=34}else h=34}else h=34;while(0);if((h|0)==34){if(c[H>>2]|0)c[c[H>>2]>>2]=c[k>>2];if(c[(c[s>>2]|0)+28>>2]|0){c[c[(c[s>>2]|0)+28>>2]>>2]=c[r>>2];c[(c[(c[s>>2]|0)+28>>2]|0)+4>>2]=c[k>>2]}if(c[G>>2]|0)ub[c[37192+196>>2]&31](c[z>>2]|0)|0;c[F>>2]=(c[j>>2]|0)!=256&1;if(c[G>>2]|0)c[D>>2]=c[D>>2]|32;if(c[o>>2]|0)c[D>>2]=c[D>>2]|2;if(c[F>>2]|0)c[D>>2]=c[D>>2]|128;if(c[E>>2]|0)c[D>>2]=c[D>>2]|8;if(c[k>>2]&64)c[D>>2]=c[D>>2]|64;c[n>>2]=sE(c[A>>2]|0,c[r>>2]|0,c[B>>2]|0,c[C>>2]|0,c[D>>2]|0)|0}if(c[n>>2]|0)hc(c[(c[s>>2]|0)+28>>2]|0);c[p>>2]=c[n>>2];a=c[p>>2]|0;i=q;return a|0}function Ac(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;g=i;i=i+32|0;f=g+20|0;h=g+12|0;k=g+8|0;e=g+4|0;j=g;c[g+16>>2]=a;c[h>>2]=b;c[k>>2]=d;c[e>>2]=0;if((ub[c[37192+196>>2]&31](c[h>>2]|0)|0)==-1){if((c[(Ya()|0)>>2]|0)==2)c[e>>2]=5898;else c[e>>2]=UD(2570,37672,c[h>>2]|0,30729)|0;c[f>>2]=c[e>>2];a=c[f>>2]|0;i=g;return a|0}do if(c[k>>2]&1){c[e>>2]=zb[c[37192+208>>2]&63](c[h>>2]|0,j)|0;if(c[e>>2]|0){if((c[e>>2]|0)!=14)break;c[e>>2]=0;break}if(Xa(c[j>>2]|0)|0)c[e>>2]=UD(1290,38128,c[h>>2]|0,30744)|0;TD(0,c[j>>2]|0,30746)}while(0);c[f>>2]=c[e>>2];a=c[f>>2]|0;i=g;return a|0}function Bc(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;k=i;i=i+96|0;g=k+88|0;l=k+84|0;j=k+80|0;f=k+76|0;h=k;c[k+92>>2]=a;c[g>>2]=b;c[l>>2]=d;c[j>>2]=e;c[f>>2]=0;e=c[l>>2]|0;if((e|0)==2)c[f>>2]=4;else if(!e)c[f>>2]=0;else if((e|0)==1)c[f>>2]=6;a=(zb[c[37192+28>>2]&63](c[g>>2]|0,c[f>>2]|0)|0)==0&1;c[c[j>>2]>>2]=a;if(c[l>>2]|0){i=k;return 0}if(!(c[c[j>>2]>>2]|0)){i=k;return 0}if(zb[c[37192+52>>2]&63](c[g>>2]|0,h)|0){i=k;return 0}if(c[h+36>>2]|0){i=k;return 0}c[c[j>>2]>>2]=0;i=k;return 0}function Cc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;j=h;l=h+24|0;k=h+16|0;m=h+12|0;g=h+8|0;n=h+4|0;c[h+20>>2]=b;c[k>>2]=d;c[m>>2]=e;c[g>>2]=f;a[(c[g>>2]|0)+((c[m>>2]|0)-1)>>0]=0;do if((a[c[k>>2]>>0]|0)==47){d=c[m>>2]|0;b=c[g>>2]|0;c[j>>2]=c[k>>2];sc(d,b,1200,j)|0}else{if(zb[c[37192+40>>2]&63](c[g>>2]|0,(c[m>>2]|0)-1|0)|0){c[n>>2]=aF(c[g>>2]|0)|0;d=(c[m>>2]|0)-(c[n>>2]|0)|0;b=(c[g>>2]|0)+(c[n>>2]|0)|0;c[j>>2]=c[k>>2];sc(d,b,38120,j)|0;break}b=Ij(30831)|0;c[l>>2]=UD(b,37544,c[k>>2]|0,30831)|0;b=c[l>>2]|0;i=h;return b|0}while(0);c[l>>2]=0;b=c[l>>2]|0;i=h;return b|0}function Dc(b,d,e){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+32|0;g=f+16|0;h=f+12|0;k=f+8|0;l=f+4|0;j=f;c[f+20>>2]=b;c[g>>2]=d;c[h>>2]=e;_E(c[h>>2]|0,0,c[g>>2]|0)|0;c[9524]=Ka()|0;c[k>>2]=ZD(38104,0,0)|0;if((c[k>>2]|0)<0){eb(j|0)|0;b=c[h>>2]|0;a[b+0>>0]=a[j+0>>0]|0;a[b+1>>0]=a[j+1>>0]|0;a[b+2>>0]=a[j+2>>0]|0;a[b+3>>0]=a[j+3>>0]|0;b=(c[h>>2]|0)+4|0;a[b+0>>0]=a[38096]|0;a[b+1>>0]=a[38097]|0;a[b+2>>0]=a[38098]|0;a[b+3>>0]=a[38099]|0;c[g>>2]=8;b=c[g>>2]|0;i=f;return b|0}do{c[l>>2]=pb[c[37192+100>>2]&31](c[k>>2]|0,c[h>>2]|0,c[g>>2]|0)|0;if((c[l>>2]|0)>=0)break}while((c[(Ya()|0)>>2]|0)==4);TD(0,c[k>>2]|0,30936);b=c[g>>2]|0;i=f;return b|0}function Ec(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;f=e+4|0;d=e;c[e+8>>2]=a;c[f>>2]=b;c[d>>2]=((c[f>>2]|0)+999999|0)/1e6|0;bb(c[d>>2]|0)|0;i=e;return(c[d>>2]|0)*1e6|0}function Fc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+32|0;f=e+12|0;g=e;d=e+8|0;c[e+16>>2]=a;c[f>>2]=b;a=g;c[a>>2]=0;c[a+4>>2]=0;c[d>>2]=Hc(0,g)|0;a=g;h[c[f>>2]>>3]=(+((c[a>>2]|0)>>>0)+4294967296.0*+(c[a+4>>2]|0))/864.0e5;i=e;return c[d>>2]|0}function Gc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=i;i=i+16|0;c[e+8>>2]=a;c[e+4>>2]=b;c[e>>2]=d;i=e;return 0}function Hc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+32|0;f=d+12|0;e=d+8|0;g=d;c[d+16>>2]=a;c[f>>2]=b;c[e>>2]=0;if(!(hb(g|0,0)|0)){a=c[g>>2]|0;a=lF(1e3,0,a|0,((a|0)<0)<<31>>31|0)|0;a=bF(1045635584,49096,a|0,D|0)|0;g=(c[g+4>>2]|0)/1e3|0;g=bF(a|0,D|0,g|0,((g|0)<0)<<31>>31|0)|0;a=c[f>>2]|0;c[a>>2]=g;c[a+4>>2]=D;a=c[e>>2]|0;i=d;return a|0}else{c[e>>2]=1;a=c[e>>2]|0;i=d;return a|0}return 0}function Ic(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;g=i;i=i+32|0;k=g+12|0;j=g+8|0;h=g+4|0;f=g;c[g+16>>2]=a;c[k>>2]=b;c[j>>2]=d;c[f>>2]=12;if(!(c[k>>2]|0)){c[f>>2]=0;c[h>>2]=0;while(1){if((c[h>>2]|0)>>>0>=25)break;if(c[37200+((c[h>>2]|0)*12|0)>>2]|0)c[37196+((c[h>>2]|0)*12|0)>>2]=c[37200+((c[h>>2]|0)*12|0)>>2];c[h>>2]=(c[h>>2]|0)+1}a=c[f>>2]|0;i=g;return a|0}c[h>>2]=0;while(1){if((c[h>>2]|0)>>>0>=25){e=16;break}a=(UE(c[k>>2]|0,c[37192+((c[h>>2]|0)*12|0)>>2]|0)|0)==0;d=c[h>>2]|0;if(a)break;c[h>>2]=d+1}if((e|0)==16){a=c[f>>2]|0;i=g;return a|0}if(!(c[37200+(d*12|0)>>2]|0))c[37200+((c[h>>2]|0)*12|0)>>2]=c[37196+((c[h>>2]|0)*12|0)>>2];c[f>>2]=0;if(!(c[j>>2]|0))c[j>>2]=c[37200+((c[h>>2]|0)*12|0)>>2];c[37196+((c[h>>2]|0)*12|0)>>2]=c[j>>2];a=c[f>>2]|0;i=g;return a|0}function Jc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;d=e+12|0;f=e+4|0;g=e;c[e+8>>2]=a;c[f>>2]=b;c[g>>2]=0;while(1){if((c[g>>2]|0)>>>0>=25){f=6;break}a=(UE(c[f>>2]|0,c[37192+((c[g>>2]|0)*12|0)>>2]|0)|0)==0;b=c[g>>2]|0;if(a){f=4;break}c[g>>2]=b+1}if((f|0)==4){c[d>>2]=c[37196+(b*12|0)>>2];a=c[d>>2]|0;i=e;return a|0}else if((f|0)==6){c[d>>2]=0;a=c[d>>2]|0;i=e;return a|0}return 0}function Kc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;d=e+12|0;g=e+4|0;f=e;c[e+8>>2]=a;c[g>>2]=b;c[f>>2]=-1;a:do if(c[g>>2]|0){c[f>>2]=0;while(1){if((c[f>>2]|0)>=24)break a;if(!(UE(c[g>>2]|0,c[37192+((c[f>>2]|0)*12|0)>>2]|0)|0))break a;c[f>>2]=(c[f>>2]|0)+1}}while(0);c[f>>2]=(c[f>>2]|0)+1;while(1){if((c[f>>2]|0)>=25){f=11;break}b=c[f>>2]|0;if(c[37196+((c[f>>2]|0)*12|0)>>2]|0){f=9;break}c[f>>2]=b+1}if((f|0)==9){c[d>>2]=c[37192+(b*12|0)>>2];a=c[d>>2]|0;i=e;return a|0}else if((f|0)==11){c[d>>2]=0;a=c[d>>2]|0;i=e;return a|0}return 0}function Lc(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;k=i;i=i+32|0;f=k+28|0;g=k+24|0;l=k+20|0;h=k+16|0;j=k;c[f>>2]=a;c[g>>2]=b;c[l>>2]=d;c[(c[f>>2]|0)+52>>2]=c[g>>2];d=c[f>>2]|0;if(!(c[l>>2]|0)){Nc(d,c[g>>2]|0);i=k;return}if((c[d+232>>2]|0)==0?(a=rf(c[f>>2]|0)|0,c[(c[f>>2]|0)+232>>2]=a,(a|0)==0):0){i=k;return}c[j>>2]=e;c[h>>2]=yn(c[f>>2]|0,c[l>>2]|0,j)|0;sf(c[(c[f>>2]|0)+232>>2]|0,-1,c[h>>2]|0,1,16);i=k;return}function Mc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d;e=d+8|0;g=f;c[g>>2]=a;c[g+4>>2]=b;a=f;c[e>>2]=gc(c[a>>2]|0,c[a+4>>2]|0)|0;if(!(c[e>>2]|0)){g=c[e>>2]|0;i=d;return g|0}_E(c[e>>2]|0,0,c[f>>2]|0)|0;g=c[e>>2]|0;i=d;return g|0}function Nc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;c[(c[e>>2]|0)+52>>2]=c[f>>2];if(!(c[(c[e>>2]|0)+232>>2]|0)){i=d;return}wD(c[(c[e>>2]|0)+232>>2]|0);i=d;return}function Oc(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0;o=i;i=i+112|0;e=o+108|0;E=o+104|0;m=o+100|0;z=o+96|0;h=o+92|0;A=o+88|0;r=o+84|0;l=o+80|0;F=o+76|0;y=o+72|0;s=o+68|0;B=o+64|0;C=o+60|0;t=o+56|0;v=o+52|0;k=o+16|0;n=o+48|0;u=o+44|0;x=o+40|0;j=o+8|0;g=o;w=o+36|0;p=o+32|0;q=o+28|0;f=o+24|0;c[e>>2]=a;c[E>>2]=b;c[h>>2]=0;c[A>>2]=0;Pc(c[(c[e>>2]|0)+24>>2]|0);c[m>>2]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p>>2]|0);F=c[h>>2]|0;a=j;F=bF(c[a>>2]|0,c[a+4>>2]|0,F|0,((F|0)<0)<<31>>31|0)|0;a=j;c[a>>2]=F;c[a+4>>2]=D}if(!(c[m>>2]|0)){a=k;c[m>>2]=jd(c[n>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0}if(!(c[m>>2]|0))c[m>>2]=kd(c[l>>2]|0,0)|0}else{ld(c[l>>2]|0,c[t>>2]|0);c[m>>2]=hd(c[l>>2]|0,0,0)|0}if(!(c[m>>2]|0)){a=md(c[(c[e>>2]|0)+4>>2]|0,0)|0;c[m>>2]=a;c[m>>2]=0==(a|0)?101:a}}}if(c[s>>2]|0){nd(c[(c[e>>2]|0)+24>>2]|0,0)|0;md(c[(c[e>>2]|0)+24>>2]|0,0)|0}if((c[m>>2]|0)==3082)c[m>>2]=7;c[(c[e>>2]|0)+28>>2]=c[m>>2];a=c[m>>2]|0;i=o;return a|0}function Pc(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;c[(c[(c[d>>2]|0)+4>>2]|0)+4>>2]=c[c[d>>2]>>2];i=b;return}function Qc(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if(!((c[d>>2]|0)!=0&(c[d>>2]|0)!=5)){d=0;d=d&1;i=b;return d|0}d=(c[d>>2]|0)!=6;d=d&1;i=b;return d|0}function Rc(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=i;i=i+32|0;l=j+24|0;m=j+20|0;o=j+16|0;k=j+12|0;n=j+8|0;p=j+4|0;h=j;c[l>>2]=f;c[m>>2]=g;c[o>>2]=0;c[k>>2]=c[(c[l>>2]|0)+4>>2];c[n>>2]=0;Pc(c[l>>2]|0);do if((d[(c[l>>2]|0)+8>>0]|0)!=2?(c[m>>2]|0)!=0?1:(d[(c[l>>2]|0)+8>>0]|0)!=1:0){if((c[m>>2]|0)!=0?(e[(c[k>>2]|0)+22>>1]&1|0)!=0:0){c[n>>2]=8;break}if((c[m>>2]|0)!=0?(d[(c[k>>2]|0)+20>>0]|0)==2:0)g=8;else g=7;a:do if((g|0)==7)if(!(e[(c[k>>2]|0)+22>>1]&64)){if((c[m>>2]|0)>1){c[p>>2]=c[(c[k>>2]|0)+72>>2];while(1){if(!(c[p>>2]|0))break a;f=c[p>>2]|0;if((c[c[p>>2]>>2]|0)!=(c[l>>2]|0))break;c[p>>2]=c[f+12>>2]}c[o>>2]=c[c[f>>2]>>2]}}else g=8;while(0);if((g|0)==8)c[o>>2]=c[c[(c[k>>2]|0)+76>>2]>>2];if(c[o>>2]|0){c[n>>2]=262;break}c[n>>2]=By(c[l>>2]|0,1,1)|0;if(!(c[n>>2]|0)){f=(c[k>>2]|0)+22|0;b[f>>1]=e[f>>1]&-9;if(!(c[(c[k>>2]|0)+44>>2]|0)){f=(c[k>>2]|0)+22|0;b[f>>1]=e[f>>1]|8}while(1){if((c[(c[k>>2]|0)+12>>2]|0)==0?(f=tD(c[k>>2]|0)|0,c[n>>2]=f,0==(f|0)):0)continue;do if((c[n>>2]|0)==0&(c[m>>2]|0)!=0){if(e[(c[k>>2]|0)+22>>1]&1){c[n>>2]=8;break}g=c[c[k>>2]>>2]|0;f=(c[m>>2]|0)>1&1;c[n>>2]=uD(g,f,xh(c[c[l>>2]>>2]|0)|0)|0;if(!(c[n>>2]|0))c[n>>2]=IC(c[k>>2]|0)|0}while(0);if(c[n>>2]|0)Sk(c[k>>2]|0);if((c[n>>2]&255|0)!=5)break;if(d[(c[k>>2]|0)+20>>0]|0)break;if(!(Fh(c[k>>2]|0)|0))break}if(!(c[n>>2]|0)){if((d[(c[l>>2]|0)+8>>0]|0)==0?(f=(c[k>>2]|0)+40|0,c[f>>2]=(c[f>>2]|0)+1,(a[(c[l>>2]|0)+9>>0]|0)!=0):0){a[(c[l>>2]|0)+36>>0]=1;c[(c[l>>2]|0)+40>>2]=c[(c[k>>2]|0)+72>>2];c[(c[k>>2]|0)+72>>2]=(c[l>>2]|0)+28}a[(c[l>>2]|0)+8>>0]=(c[m>>2]|0)!=0?2:1;if((d[(c[l>>2]|0)+8>>0]|0)>(d[(c[k>>2]|0)+20>>0]|0))a[(c[k>>2]|0)+20>>0]=a[(c[l>>2]|0)+8>>0]|0;if(c[m>>2]|0){c[h>>2]=c[(c[k>>2]|0)+12>>2];c[(c[k>>2]|0)+76>>2]=c[l>>2];f=(c[k>>2]|0)+22|0;b[f>>1]=e[f>>1]&-33;if((c[m>>2]|0)>1){f=(c[k>>2]|0)+22|0;b[f>>1]=e[f>>1]|32}f=c[(c[k>>2]|0)+44>>2]|0;if((f|0)!=(Hh((c[(c[h>>2]|0)+56>>2]|0)+28|0)|0)?(c[n>>2]=gd(c[(c[h>>2]|0)+68>>2]|0)|0,(c[n>>2]|0)==0):0)ck((c[(c[h>>2]|0)+56>>2]|0)+28|0,c[(c[k>>2]|0)+44>>2]|0)}}}}while(0);if(!((c[n>>2]|0)==0&(c[m>>2]|0)!=0)){f=c[n>>2]|0;i=j;return f|0}c[n>>2]=GC(c[c[k>>2]>>2]|0,c[(c[c[l>>2]>>2]|0)+496>>2]|0)|0;f=c[n>>2]|0;i=j;return f|0}function Sc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;j=e+12|0;g=e+8|0;f=e+4|0;h=e;c[j>>2]=a;c[g>>2]=b;c[f>>2]=d;c[h>>2]=c[(c[j>>2]|0)+4>>2];Pc(c[j>>2]|0);a=Hh((c[(c[(c[h>>2]|0)+12>>2]|0)+56>>2]|0)+(36+(c[g>>2]<<2))|0)|0;c[c[f>>2]>>2]=a;i=e;return}function Tc(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;c[b>>2]=a;i=e;return(d[(c[b>>2]|0)+8>>0]|0|0)!=0|0}function Uc(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[(c[b>>2]|0)+4>>2]|0)+32>>2]|0}function Vc(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;c[b>>2]=a;i=e;return d[(c[b>>2]|0)+5>>0]|0|0}function Wc(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=Aw(c[(c[d>>2]|0)+4>>2]|0)|0;i=b;return a|0}function Xc(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=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;q=i;i=i+48|0;j=q+44|0;p=q+40|0;m=q+36|0;l=q+32|0;u=q+28|0;o=q+24|0;k=q+20|0;s=q+16|0;t=q+12|0;r=q+8|0;n=q+4|0;g=q;c[p>>2]=a;c[m>>2]=b;c[l>>2]=e;c[u>>2]=f;c[o>>2]=0;c[k>>2]=0;c[s>>2]=0;c[t>>2]=c[u>>2]&1;c[r>>2]=0;if(!(c[m>>2]|0)){c[j>>2]=kj(46160)|0;u=c[j>>2]|0;i=q;return u|0}do if(!(c[(c[p>>2]|0)+40>>2]|0)){if(((c[r>>2]|0)!=0?(ai(c[p>>2]|0)|0)!=0:0)?(c[o>>2]=cj(c[(c[p>>2]|0)+208>>2]|0,c[m>>2]|0,s)|0,(c[o>>2]|0)!=0):0)break;if((c[r>>2]|0)!=0&(c[s>>2]|0)==0){c[n>>2]=0;a=c[(c[p>>2]|0)+60>>2]|0;u=c[(c[p>>2]|0)+152>>2]|0;u=lF((c[m>>2]|0)-1|0,0,u|0,((u|0)<0)<<31>>31|0)|0;c[o>>2]=XB(a,u,D,c[(c[p>>2]|0)+152>>2]|0,n)|0;if((c[o>>2]|0)==0&(c[n>>2]|0)!=0){if((d[(c[p>>2]|0)+16>>0]|0|0)>1)c[k>>2]=Hi(c[p>>2]|0,c[m>>2]|0)|0;f=c[p>>2]|0;if(!(c[k>>2]|0))c[o>>2]=rD(f,c[m>>2]|0,c[n>>2]|0,k)|0;else{a=c[f+60>>2]|0;u=c[(c[p>>2]|0)+152>>2]|0;u=lF((c[m>>2]|0)-1|0,0,u|0,((u|0)<0)<<31>>31|0)|0;hj(a,u,D,c[n>>2]|0)|0}if(c[k>>2]|0){c[c[l>>2]>>2]=c[k>>2];c[j>>2]=0;u=c[j>>2]|0;i=q;return u|0}}if(c[o>>2]|0)break}c[g>>2]=Li(c[(c[p>>2]|0)+204>>2]|0,c[m>>2]|0,3)|0;if((c[g>>2]|0)==0?(c[o>>2]=sD(c[(c[p>>2]|0)+204>>2]|0,c[m>>2]|0,g)|0,(c[o>>2]|0)!=0):0)break;u=Mi(c[(c[p>>2]|0)+204>>2]|0,c[m>>2]|0,c[g>>2]|0)|0;c[c[l>>2]>>2]=u;c[k>>2]=u;if(!(c[k>>2]|0)){c[o>>2]=7;h=22}else h=22}else{c[o>>2]=c[(c[p>>2]|0)+40>>2];h=22}while(0);do if((h|0)==22){if(c[o>>2]|0){c[k>>2]=0;break}if(!((c[t>>2]|0)!=0?1:(c[(c[c[l>>2]>>2]|0)+16>>2]|0)==0)){u=(c[p>>2]|0)+184|0;c[u>>2]=(c[u>>2]|0)+1;c[j>>2]=0;u=c[j>>2]|0;i=q;return u|0}c[k>>2]=c[c[l>>2]>>2];c[(c[k>>2]|0)+16>>2]=c[p>>2];if((c[m>>2]|0)>>>0<=2147483647?(c[m>>2]|0)!=(((c[282]|0)/(c[(c[p>>2]|0)+152>>2]|0)|0)+1|0):0){if(((d[(c[p>>2]|0)+15>>0]|0|0)==0?!((c[t>>2]|0)!=0?1:(c[(c[p>>2]|0)+24>>2]|0)>>>0<(c[m>>2]|0)>>>0):0)?(c[c[(c[p>>2]|0)+60>>2]>>2]|0)!=0:0){u=(ai(c[p>>2]|0)|0)!=0;if(u&(c[r>>2]|0)==0?(c[o>>2]=cj(c[(c[p>>2]|0)+208>>2]|0,c[m>>2]|0,s)|0,(c[o>>2]|0)!=0):0)break;u=(c[p>>2]|0)+188|0;c[u>>2]=(c[u>>2]|0)+1;c[o>>2]=dj(c[k>>2]|0,c[s>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return c[(c[b>>2]|0)+4>>2]|0}function _c(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}ej(c[d>>2]|0);i=b;return}function $c(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=pd(Sb(c[(c[d>>2]|0)+24>>2]|0)|0)|0;c[(c[d>>2]|0)+44>>2]=c[c[e>>2]>>2];c[c[e>>2]>>2]=c[d>>2];c[(c[d>>2]|0)+40>>2]=1;i=b;return}function ad(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;e=d+4|0;b=d;c[e>>2]=a;Pc(c[e>>2]|0);c[(c[(c[e>>2]|0)+4>>2]|0)+44>>2]=0;c[b>>2]=IC(c[(c[e>>2]|0)+4>>2]|0)|0;i=d;return c[b>>2]|0}function bd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;m=f+20|0;l=f+16|0;h=f+12|0;j=f+8|0;k=f+4|0;g=f;c[m>>2]=b;c[l>>2]=d;c[h>>2]=e;c[j>>2]=c[(c[m>>2]|0)+4>>2];Pc(c[m>>2]|0);c[k>>2]=c[(c[(c[j>>2]|0)+12>>2]|0)+56>>2];c[g>>2]=gd(c[(c[(c[j>>2]|0)+12>>2]|0)+68>>2]|0)|0;if(c[g>>2]|0){m=c[g>>2]|0;i=f;return m|0}ck((c[k>>2]|0)+(36+(c[l>>2]<<2))|0,c[h>>2]|0);if((c[l>>2]|0)!=7){m=c[g>>2]|0;i=f;return m|0}a[(c[j>>2]|0)+18>>0]=c[h>>2];m=c[g>>2]|0;i=f;return m|0}function cd(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;b=d+8|0;e=d+4|0;f=d;c[b>>2]=a;Rb(c[b>>2]|0);c[e>>2]=0;while(1){if((c[e>>2]|0)>=(c[(c[b>>2]|0)+20>>2]|0))break;c[f>>2]=(c[(c[b>>2]|0)+16>>2]|0)+(c[e>>2]<<4);if(c[(c[f>>2]|0)+12>>2]|0)wh(c[(c[f>>2]|0)+12>>2]|0);c[e>>2]=(c[e>>2]|0)+1}f=(c[b>>2]|0)+24|0;c[f>>2]=c[f>>2]&-3;Lk(c[b>>2]|0);Mk(c[b>>2]|0);i=d;return}function dd(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;j=i;i=i+32|0;l=j+16|0;n=j+12|0;h=j+8|0;k=j+4|0;m=j;c[l>>2]=f;c[n>>2]=g;c[h>>2]=c[(c[l>>2]|0)+4>>2];f=(c[h>>2]|0)+22|0;b[f>>1]=(e[f>>1]|0)&-17;if((c[n>>2]|0)==1){f=(c[h>>2]|0)+22|0;b[f>>1]=e[f>>1]|0|16}c[k>>2]=Rc(c[l>>2]|0,0)|0;do if(!(c[k>>2]|0)){c[m>>2]=c[(c[(c[h>>2]|0)+12>>2]|0)+56>>2];if((d[(c[m>>2]|0)+18>>0]|0|0)==(c[n>>2]&255|0)?(d[(c[m>>2]|0)+19>>0]|0|0)==(c[n>>2]&255|0):0)break;c[k>>2]=Rc(c[l>>2]|0,2)|0;if((c[k>>2]|0)==0?(c[k>>2]=gd(c[(c[(c[h>>2]|0)+12>>2]|0)+68>>2]|0)|0,(c[k>>2]|0)==0):0){a[(c[m>>2]|0)+18>>0]=c[n>>2];a[(c[m>>2]|0)+19>>0]=c[n>>2]}}while(0);f=(c[h>>2]|0)+22|0;b[f>>1]=(e[f>>1]|0)&-17;i=j;return c[k>>2]|0}function ed(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[b>>2]|0)+60>>2]|0}function fd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;c[c[e>>2]>>2]=c[(c[f>>2]|0)+24>>2];i=d;return}function gd(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[e>>2]=a;a=c[e>>2]|0;if((c[(c[(c[e>>2]|0)+16>>2]|0)+148>>2]|0)>>>0>(c[(c[(c[e>>2]|0)+16>>2]|0)+152>>2]|0)>>>0){c[d>>2]=mD(a)|0;e=c[d>>2]|0;i=b;return e|0}else{c[d>>2]=nD(a)|0;e=c[d>>2]|0;i=b;return e|0}return 0}function hd(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;n=i;i=i+32|0;h=n+28|0;l=n+24|0;p=n+20|0;o=n+16|0;k=n+12|0;m=n+8|0;j=n+4|0;g=n;c[l>>2]=b;c[p>>2]=e;c[o>>2]=f;c[k>>2]=0;f=c[l>>2]|0;if(c[(c[l>>2]|0)+40>>2]|0){c[h>>2]=c[f+40>>2];b=c[h>>2]|0;i=n;return b|0}if((d[f+16>>0]|0)<3){c[h>>2]=0;b=c[h>>2]|0;i=n;return b|0}f=c[l>>2]|0;do if(!(a[(c[l>>2]|0)+15>>0]|0)){b=(ai(f)|0)!=0;f=c[l>>2]|0;if(b){c[m>>2]=Zi(c[f+204>>2]|0)|0;c[j>>2]=0;if(!(c[m>>2]|0)){c[k>>2]=Xc(c[l>>2]|0,1,j,0)|0;c[m>>2]=c[j>>2];c[(c[m>>2]|0)+12>>2]=0}if(c[m>>2]|0)c[k>>2]=Zj(c[l>>2]|0,c[m>>2]|0,c[(c[l>>2]|0)+24>>2]|0,1)|0;_c(c[j>>2]|0);if(c[k>>2]|0)break;$h(c[(c[l>>2]|0)+204>>2]|0);break}c[k>>2]=kD(f,0)|0;if((((c[k>>2]|0)==0?(c[k>>2]=lD(c[l>>2]|0,c[p>>2]|0)|0,(c[k>>2]|0)==0):0)?(c[k>>2]=_j(c[l>>2]|0,0)|0,(c[k>>2]|0)==0):0)?(b=c[l>>2]|0,c[k>>2]=$j(b,Zi(c[(c[l>>2]|0)+204>>2]|0)|0)|0,(c[k>>2]|0)==0):0){$h(c[(c[l>>2]|0)+204>>2]|0);if((c[(c[l>>2]|0)+24>>2]|0)>>>0>(c[(c[l>>2]|0)+32>>2]|0)>>>0){c[g>>2]=(c[(c[l>>2]|0)+24>>2]|0)-((c[(c[l>>2]|0)+24>>2]|0)==(((c[282]|0)/(c[(c[l>>2]|0)+152>>2]|0)|0)+1|0)&1);c[k>>2]=ci(c[l>>2]|0,c[g>>2]|0)|0;if((c[k>>2]|0)!=0|(c[o>>2]|0)!=0)break}else if(c[o>>2]|0)break;c[k>>2]=kd(c[l>>2]|0,c[p>>2]|0)|0}}else Og(c[f+88>>2]|0);while(0);if((c[k>>2]|0)==0?(ai(c[l>>2]|0)|0)==0:0)a[(c[l>>2]|0)+16>>0]=5;c[h>>2]=c[k>>2];b=c[h>>2]|0;i=n;return b|0}function id(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,j=0,k=0,l=0;g=i;i=i+32|0;k=g+16|0;j=g+12|0;h=g+8|0;l=g;c[k>>2]=a;c[j>>2]=b;c[h>>2]=d;a=l;c[a>>2]=e;c[a+4>>2]=f;a=l;a=Ab[c[(c[c[k>>2]>>2]|0)+12>>2]&15](c[k>>2]|0,c[j>>2]|0,c[h>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0;i=g;return a|0}function jd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+32|0;h=e+20|0;g=e+8|0;j=e;f=e+16|0;c[h>>2]=a;a=g;c[a>>2]=b;c[a+4>>2]=d;c[f>>2]=Gg(c[h>>2]|0,j)|0;if(c[f>>2]|0){a=c[f>>2]|0;i=e;return a|0}b=j;d=c[b+4>>2]|0;a=g;j=c[a+4>>2]|0;if(!((d|0)>(j|0)|((d|0)==(j|0)?(c[b>>2]|0)>>>0>(c[a>>2]|0)>>>0:0))){a=c[f>>2]|0;i=e;return a|0}a=g;c[f>>2]=Xh(c[h>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0;a=c[f>>2]|0;i=e;return a|0}function kd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;g=i;i=i+16|0;h=g+12|0;k=g+8|0;f=g+4|0;j=g;c[h>>2]=b;c[k>>2]=e;c[f>>2]=0;if(c[c[(c[h>>2]|0)+60>>2]>>2]|0){c[j>>2]=c[k>>2];b=ig(c[(c[h>>2]|0)+60>>2]|0,21,c[j>>2]|0)|0;c[f>>2]=b;c[f>>2]=(c[f>>2]|0)==12?0:b}if(c[f>>2]|0){b=c[f>>2]|0;i=g;return b|0}if(a[(c[h>>2]|0)+7>>0]|0){b=c[f>>2]|0;i=g;return b|0}c[f>>2]=Yh(c[(c[h>>2]|0)+60>>2]|0,d[(c[h>>2]|0)+11>>0]|0)|0;b=c[f>>2]|0;i=g;return b|0}function ld(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;c[(c[e>>2]|0)+24>>2]=c[f>>2];i=d;return}function md(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+32|0;g=f+16|0;h=f+12|0;l=f+8|0;k=f+4|0;j=f;c[h>>2]=b;c[l>>2]=e;if(!(d[(c[h>>2]|0)+8>>0]|0)){c[g>>2]=0;b=c[g>>2]|0;i=f;return b|0}Pc(c[h>>2]|0);do if((d[(c[h>>2]|0)+8>>0]|0|0)==2){c[j>>2]=c[(c[h>>2]|0)+4>>2];c[k>>2]=jD(c[c[j>>2]>>2]|0)|0;if(!((c[k>>2]|0)!=0&(c[l>>2]|0)==0)){a[(c[j>>2]|0)+20>>0]=1;eD(c[j>>2]|0);break}c[g>>2]=c[k>>2];b=c[g>>2]|0;i=f;return b|0}while(0);fD(c[h>>2]|0);c[g>>2]=0;b=c[g>>2]|0;i=f;return b|0}function nd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;h=i;i=i+32|0;g=h+16|0;l=h+12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];h=c[d>>2]|0;i=b;return h|0}function pd(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return(c[b>>2]|0)+88|0}function qd(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=i;i=i+48|0;m=j+32|0;p=j+28|0;q=j+24|0;h=j+20|0;g=j+16|0;k=j+12|0;o=j+8|0;n=j+4|0;l=j;c[m>>2]=b;c[p>>2]=e;c[q>>2]=f;c[g>>2]=c[(c[m>>2]|0)+4>>2];Pc(c[m>>2]|0);if(!(c[p>>2]|0)){b=Hy(c[g>>2]|0,0,0)|0;c[p>>2]=b;c[h>>2]=b;if(c[h>>2]|0)c[q>>2]=0}else c[h>>2]=0;if((c[p>>2]|0)!=0?(c[o>>2]=sz(c[m>>2]|0,c[p>>2]|0,c[q>>2]|0)|0,(c[o>>2]|0)!=0):0)c[h>>2]=c[o>>2];if((d[(c[m>>2]|0)+8>>0]|0|0)!=2){b=c[m>>2]|0;fD(b);b=c[h>>2]|0;i=j;return b|0}c[n>>2]=Th(c[c[g>>2]>>2]|0)|0;if(c[n>>2]|0)c[h>>2]=c[n>>2];if(!(Bw(c[g>>2]|0,1,k,0)|0)){c[l>>2]=Hh((c[(c[k>>2]|0)+56>>2]|0)+28|0)|0;if(!(c[l>>2]|0))fd(c[c[g>>2]>>2]|0,l);c[(c[g>>2]|0)+44>>2]=c[l>>2];Rk(c[k>>2]|0)}a[(c[g>>2]|0)+20>>0]=1;eD(c[g>>2]|0);b=c[m>>2]|0;fD(b);b=c[h>>2]|0;i=j;return b|0}function rd(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;j=i;i=i+48|0;e=j+36|0;f=j+32|0;d=j+28|0;n=j+24|0;o=j+20|0;m=j+16|0;l=j+12|0;k=j+8|0;h=j+4|0;g=j;c[e>>2]=b;if((c[(c[e>>2]|0)+76>>2]|0)!=1691352191){i=j;return}if(Hk(c[e>>2]|0)|0){i=j;return}Ik(c[e>>2]|0,0);Jk(c[e>>2]|0);c[d>>2]=0;while(1){if((c[d>>2]|0)>=(c[(c[e>>2]|0)+20>>2]|0))break;c[n>>2]=(c[(c[e>>2]|0)+16>>2]|0)+(c[d>>2]<<4);if(c[(c[n>>2]|0)+4>>2]|0){a:do if(c[(c[n>>2]|0)+12>>2]|0){Pc(c[(c[n>>2]|0)+4>>2]|0);c[f>>2]=c[(c[(c[n>>2]|0)+12>>2]|0)+32>>2];while(1){if(!(c[f>>2]|0))break a;c[o>>2]=c[(c[f>>2]|0)+8>>2];eh(c[(c[o>>2]|0)+40>>2]|0);c[(c[o>>2]|0)+40>>2]=0;c[f>>2]=c[c[f>>2]>>2]}}while(0);Kk(c[(c[n>>2]|0)+4>>2]|0)|0;c[(c[n>>2]|0)+4>>2]=0;if((c[d>>2]|0)!=1)c[(c[n>>2]|0)+12>>2]=0}c[d>>2]=(c[d>>2]|0)+1}if(c[(c[(c[e>>2]|0)+16>>2]|0)+28>>2]|0)wh(c[(c[(c[e>>2]|0)+16>>2]|0)+28>>2]|0);Lk(c[e>>2]|0);Mk(c[e>>2]|0);c[d>>2]=0;while(1){if((c[d>>2]|0)>=23)break;c[k>>2]=c[(c[e>>2]|0)+336+(c[d>>2]<<2)>>2];while(1){if(!(c[k>>2]|0))break;c[l>>2]=c[(c[k>>2]|0)+28>>2];while(1){if(!(c[k>>2]|0))break;Gk(c[e>>2]|0,c[k>>2]|0);c[m>>2]=c[(c[k>>2]|0)+8>>2];Xb(c[e>>2]|0,c[k>>2]|0);c[k>>2]=c[m>>2]}c[k>>2]=c[l>>2]}c[d>>2]=(c[d>>2]|0)+1}c[f>>2]=c[(c[e>>2]|0)+436>>2];while(1){if(!(c[f>>2]|0))break;c[h>>2]=c[(c[f>>2]|0)+8>>2];c[d>>2]=0;while(1){if((c[d>>2]|0)>=3)break;if(c[(c[h>>2]|0)+((c[d>>2]|0)*20|0)+16>>2]|0)rb[c[(c[h>>2]|0)+((c[d>>2]|0)*20|0)+16>>2]&31](c[(c[h>>2]|0)+((c[d>>2]|0)*20|0)+8>>2]|0);c[d>>2]=(c[d>>2]|0)+1}Xb(c[e>>2]|0,c[h>>2]|0);c[f>>2]=c[c[f>>2]>>2]}mh((c[e>>2]|0)+428|0);c[f>>2]=c[(c[e>>2]|0)+316>>2];while(1){if(!(c[f>>2]|0))break;c[g>>2]=c[(c[f>>2]|0)+8>>2];if(c[(c[g>>2]|0)+12>>2]|0)rb[c[(c[g>>2]|0)+12>>2]&31](c[(c[g>>2]|0)+8>>2]|0);Xb(c[e>>2]|0,c[g>>2]|0);c[f>>2]=c[c[f>>2]>>2]}mh((c[e>>2]|0)+308|0);Nc(c[e>>2]|0,0);tf(c[(c[e>>2]|0)+232>>2]|0);c[(c[e>>2]|0)+76>>2]=-1254786768;Xb(c[e>>2]|0,c[(c[(c[e>>2]|0)+16>>2]|0)+28>>2]|0);c[(c[e>>2]|0)+76>>2]=-1623446221;if(a[(c[e>>2]|0)+251>>0]|0)hc(c[(c[e>>2]|0)+276>>2]|0);hc(c[e>>2]|0);i=j;return}function sd(a){a=a|0;var b=0,d=0,f=0;b=i;i=i+16|0;f=b+4|0;d=b;c[f>>2]=a;c[d>>2]=c[f>>2];if(!(c[d>>2]|0)){f=0;i=b;return f|0}if(!((e[(c[d>>2]|0)+88>>1]|0)>>>10&1)){f=0;i=b;return f|0}f=c[(c[d>>2]|0)+168>>2]|0;i=b;return f|0}function td(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;e=i;i=i+32|0;d=e+16|0;h=e+12|0;b=e+8|0;g=e+4|0;f=e;c[h>>2]=a;do if(!(c[h>>2]|0))c[b>>2]=0;else{c[g>>2]=c[h>>2];c[f>>2]=c[c[g>>2]>>2];if(!(ud(c[g>>2]|0)|0)){c[b>>2]=vd(c[g>>2]|0)|0;c[b>>2]=wd(c[f>>2]|0,c[b>>2]|0)|0;rd(c[f>>2]|0);break}c[d>>2]=Qb(67386)|0;h=c[d>>2]|0;i=e;return h|0}while(0);c[d>>2]=c[b>>2];h=c[d>>2]|0;i=e;return h|0}function ud(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+8|0;e=b+4|0;c[e>>2]=a;if(!(c[c[e>>2]>>2]|0)){tc(21,37056,b);c[d>>2]=1;e=c[d>>2]|0;i=b;return e|0}else{c[d>>2]=0;e=c[d>>2]|0;i=b;return e|0}return 0}function vd(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;e=d+4|0;b=d;c[e>>2]=a;c[b>>2]=0;if(!((c[(c[e>>2]|0)+40>>2]|0)!=-1108210269?(c[(c[e>>2]|0)+40>>2]|0)!=1369188723:0))c[b>>2]=yd(c[e>>2]|0)|0;qn(c[e>>2]|0);i=d;return c[b>>2]|0}function wd(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;h=e+4|0;g=e;c[h>>2]=a;c[g>>2]=b;if(!(c[h>>2]|0)){c[f>>2]=c[g>>2]&255;a=c[f>>2]|0;i=e;return a|0}if((c[g>>2]|0)==3082?1:(d[(c[h>>2]|0)+64>>0]|0|0)!=0){c[f>>2]=cD(c[h>>2]|0)|0;a=c[f>>2]|0;i=e;return a|0}else{c[f>>2]=c[g>>2]&c[(c[h>>2]|0)+56>>2];a=c[f>>2]|0;i=e;return a|0}return 0}function xd(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;f=b+8|0;d=b+4|0;e=b;c[f>>2]=a;if(!(c[f>>2]|0)){c[d>>2]=0;f=c[d>>2]|0;i=b;return f|0}else{c[e>>2]=c[f>>2];c[d>>2]=yd(c[e>>2]|0)|0;zd(c[e>>2]|0);c[d>>2]=wd(c[c[e>>2]>>2]|0,c[d>>2]|0)|0;f=c[d>>2]|0;i=b;return f|0}return 0}function yd(a){a=a|0;var d=0,f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;h=f;d=f+8|0;g=f+4|0;c[d>>2]=a;c[g>>2]=c[c[d>>2]>>2];$y(c[d>>2]|0)|0;a=c[d>>2]|0;if((c[(c[d>>2]|0)+76>>2]|0)>=0){Wy(a)|0;Xb(c[g>>2]|0,c[(c[d>>2]|0)+44>>2]|0);c[(c[d>>2]|0)+44>>2]=0;if((e[(c[d>>2]|0)+88>>1]|0)>>>6&1){a=(c[d>>2]|0)+88|0;b[a>>1]=b[a>>1]&-33|32}}else if((c[a+80>>2]|0)!=0?((e[(c[d>>2]|0)+88>>1]|0)>>>5&1|0)!=0:0){k=c[g>>2]|0;j=c[(c[d>>2]|0)+80>>2]|0;a=(c[(c[d>>2]|0)+44>>2]|0)!=0?1200:0;c[h>>2]=c[(c[d>>2]|0)+44>>2];Lc(k,j,a,h);Xb(c[g>>2]|0,c[(c[d>>2]|0)+44>>2]|0);c[(c[d>>2]|0)+44>>2]=0}bD(c[d>>2]|0);k=(c[d>>2]|0)+136|0;c[k>>2]=0;c[k+4>>2]=0;c[(c[d>>2]|0)+40>>2]=649915045;i=f;return c[(c[d>>2]|0)+80>>2]&c[(c[g>>2]|0)+56>>2]|0}function zd(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;c[(c[e>>2]|0)+40>>2]=-1108210269;c[(c[e>>2]|0)+76>>2]=-1;c[(c[e>>2]|0)+80>>2]=0;a[(c[e>>2]|0)+86>>0]=2;c[(c[e>>2]|0)+40>>2]=-1108210269;c[(c[e>>2]|0)+92>>2]=0;c[(c[e>>2]|0)+72>>2]=1;a[(c[e>>2]|0)+87>>0]=-1;c[(c[e>>2]|0)+104>>2]=0;b=(c[e>>2]|0)+144|0;c[b>>2]=0;c[b+4>>2]=0;i=d;return}function Ad(a){a=a|0;var d=0,f=0,g=0,h=0,j=0;f=i;i=i+16|0;j=f+12|0;h=f+8|0;d=f+4|0;g=f;c[j>>2]=a;c[d>>2]=0;c[g>>2]=c[j>>2];c[h>>2]=0;while(1){if((c[h>>2]|0)>=(b[(c[g>>2]|0)+68>>1]|0))break;Bd((c[(c[g>>2]|0)+60>>2]|0)+((c[h>>2]|0)*40|0)|0);b[(c[(c[g>>2]|0)+60>>2]|0)+((c[h>>2]|0)*40|0)+8>>1]=1;c[h>>2]=(c[h>>2]|0)+1}if(!((e[(c[g>>2]|0)+88>>1]|0)>>>10&1)){j=c[d>>2]|0;i=f;return j|0}if(!(c[(c[g>>2]|0)+188>>2]|0)){j=c[d>>2]|0;i=f;return j|0}j=(c[g>>2]|0)+88|0;b[j>>1]=b[j>>1]&-33|32;j=c[d>>2]|0;i=f;return j|0}function Bd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if(((e[(c[d>>2]|0)+8>>1]|0)&9312|0)==0?(c[(c[d>>2]|0)+24>>2]|0)==0:0){i=b;return}aD(c[d>>2]|0);i=b;return}function Cd(a){a=a|0;var d=0,f=0,g=0,h=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;h=d;c[g>>2]=a;c[h>>2]=c[g>>2];if(!((e[(c[h>>2]|0)+8>>1]|0)&18)){c[f>>2]=Ed(c[g>>2]|0)|0;h=c[f>>2]|0;i=d;return h|0}Dd(c[h>>2]|0)|0;g=(c[h>>2]|0)+8|0;b[g>>1]=e[g>>1]|0|16;if(c[(c[h>>2]|0)+12>>2]|0)a=c[(c[h>>2]|0)+16>>2]|0;else a=0;c[f>>2]=a;h=c[f>>2]|0;i=d;return h|0}function Dd(a){a=a|0;var d=0,f=0,g=0,h=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;h=d;c[g>>2]=a;do if((e[(c[g>>2]|0)+8>>1]|0)&16384){a=(c[(c[g>>2]|0)+12>>2]|0)+(c[c[g>>2]>>2]|0)|0;c[h>>2]=a;c[h>>2]=(c[h>>2]|0)<=0?1:a;if(!(Dk(c[g>>2]|0,c[h>>2]|0,1)|0)){_E((c[(c[g>>2]|0)+16>>2]|0)+(c[(c[g>>2]|0)+12>>2]|0)|0,0,c[c[g>>2]>>2]|0)|0;h=(c[g>>2]|0)+12|0;c[h>>2]=(c[h>>2]|0)+(c[c[g>>2]>>2]|0);h=(c[g>>2]|0)+8|0;b[h>>1]=(e[h>>1]|0)&-16897;break}c[f>>2]=7;h=c[f>>2]|0;i=d;return h|0}while(0);c[f>>2]=0;h=c[f>>2]|0;i=d;return h|0}function Ed(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=Md(c[d>>2]|0,1)|0;i=b;return a|0}function Fd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=Gd(c[d>>2]|0,1)|0;i=b;return a|0}function Gd(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,j=0,k=0;g=i;i=i+16|0;f=g+8|0;k=g+4|0;j=g+12|0;h=g;c[k>>2]=b;a[j>>0]=d;c[h>>2]=c[k>>2];if(((e[(c[h>>2]|0)+8>>1]|0)&16|0)==0?(Md(c[k>>2]|0,a[j>>0]|0)|0)==0:0){c[f>>2]=0;b=c[f>>2]|0;i=g;return b|0}d=c[(c[h>>2]|0)+12>>2]|0;if((e[(c[h>>2]|0)+8>>1]|0)&16384){c[f>>2]=d+(c[c[h>>2]>>2]|0);b=c[f>>2]|0;i=g;return b|0}else{c[f>>2]=d;b=c[f>>2]|0;i=g;return b|0}return 0}function Hd(a){a=a|0;var b=0.0,d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=a;b=+Id(c[e>>2]|0);i=d;return+b}function Id(b){b=b|0;var d=0,f=0,g=0,j=0,k=0,l=0.0;d=i;i=i+32|0;f=d+8|0;j=d+16|0;g=d;c[j>>2]=b;b=c[j>>2]|0;if((e[(c[j>>2]|0)+8>>1]|0)&8){h[f>>3]=+h[b>>3];l=+h[f>>3];i=d;return+l}k=c[j>>2]|0;if((e[b+8>>1]|0)&4){h[f>>3]=+((c[k>>2]|0)>>>0)+4294967296.0*+(c[k+4>>2]|0);l=+h[f>>3];i=d;return+l}if((e[k+8>>1]|0)&18){h[g>>3]=0.0;Lm(c[(c[j>>2]|0)+16>>2]|0,g,c[(c[j>>2]|0)+12>>2]|0,a[(c[j>>2]|0)+10>>0]|0)|0;h[f>>3]=+h[g>>3];l=+h[f>>3];i=d;return+l}else{h[f>>3]=0.0;l=+h[f>>3];i=d;return+l}return 0.0}function Jd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=Kd(c[d>>2]|0)|0;i=b;return a|0}function Kd(b){b=b|0;var d=0,f=0,g=0,j=0,k=0;d=i;i=i+32|0;f=d+8|0;g=d+20|0;k=d+16|0;j=d;c[g>>2]=b;c[k>>2]=e[(c[g>>2]|0)+8>>1];do if(!(c[k>>2]&4)){if(c[k>>2]&8){j=Ip(+h[c[g>>2]>>3])|0;k=f;c[k>>2]=j;c[k+4>>2]=D;break}if(c[k>>2]&18){k=j;c[k>>2]=0;c[k+4>>2]=0;wg(c[(c[g>>2]|0)+16>>2]|0,j,c[(c[g>>2]|0)+12>>2]|0,a[(c[g>>2]|0)+10>>0]|0)|0;g=j;j=c[g+4>>2]|0;k=f;c[k>>2]=c[g>>2];c[k+4>>2]=j;break}else{k=f;c[k>>2]=0;c[k+4>>2]=0;break}}else{g=c[g>>2]|0;j=c[g+4>>2]|0;k=f;c[k>>2]=c[g>>2];c[k+4>>2]=j}while(0);k=f;D=c[k+4>>2]|0;i=d;return c[k>>2]|0}function Ld(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=Kd(c[d>>2]|0)|0;i=b;return a|0}function Md(b,f){b=b|0;f=f|0;var g=0,h=0,j=0,k=0;h=i;i=i+16|0;g=h+4|0;j=h;k=h+8|0;c[j>>2]=b;a[k>>0]=f;do if(c[j>>2]|0){if(((e[(c[j>>2]|0)+8>>1]|0)&514|0)==514?(d[(c[j>>2]|0)+10>>0]|0|0)==(d[k>>0]|0|0):0){c[g>>2]=c[(c[j>>2]|0)+16>>2];break}if((e[(c[j>>2]|0)+8>>1]|0)&1){c[g>>2]=0;break}else{c[g>>2]=$C(c[j>>2]|0,a[k>>0]|0)|0;break}}else c[g>>2]=0;while(0);i=h;return c[g>>2]|0}function Nd(a){a=a|0;var b=0,f=0;f=i;i=i+16|0;b=f;c[b>>2]=a;i=f;return d[1144+((e[(c[b>>2]|0)+8>>1]|0)&31)>>0]|0|0}function Od(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;f=i;i=i+16|0;k=f+12|0;j=f+8|0;h=f+4|0;g=f;c[k>>2]=a;c[j>>2]=b;c[h>>2]=d;c[g>>2]=e;Pd(c[k>>2]|0,c[j>>2]|0,c[h>>2]|0,0,c[g>>2]|0);i=f;return}function Pd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;j=h+12|0;n=h+8|0;m=h+4|0;l=h+16|0;k=h;c[j>>2]=b;c[n>>2]=d;c[m>>2]=e;a[l>>0]=f;c[k>>2]=g;if((Vd(c[c[j>>2]>>2]|0,c[n>>2]|0,c[m>>2]|0,a[l>>0]|0,c[k>>2]|0)|0)!=18){i=h;return}he(c[j>>2]|0);i=h;return}function Qd(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,j=0,k=0,l=0;g=i;i=i+32|0;h=g+16|0;k=g+12|0;l=g;j=g+8|0;c[h>>2]=a;c[k>>2]=b;a=l;c[a>>2]=d;c[a+4>>2]=e;c[j>>2]=f;a=l;b=c[a+4>>2]|0;if(b>>>0>0|(b|0)==0&(c[a>>2]|0)>>>0>2147483647){Rd(c[k>>2]|0,c[j>>2]|0,c[h>>2]|0)|0;i=g;return}else{Pd(c[h>>2]|0,c[k>>2]|0,c[l>>2]|0,0,c[j>>2]|0);i=g;return}}function Rd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;g=e+8|0;h=e+4|0;f=e;c[g>>2]=a;c[h>>2]=b;c[f>>2]=d;if(!((c[h>>2]|0)==0|(c[h>>2]|0)==(-1|0)))rb[c[h>>2]&31](c[g>>2]|0);if(!(c[f>>2]|0)){i=e;return 18}he(c[f>>2]|0);i=e;return 18}function Sd(a,b){a=a|0;b=+b;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+8|0;e=d;c[f>>2]=a;h[e>>3]=b;Td(c[c[f>>2]>>2]|0,+h[e>>3]);i=d;return}function Td(a,d){a=a|0;d=+d;var e=0,f=0,g=0;e=i;i=i+16|0;g=e+8|0;f=e;c[g>>2]=a;h[f>>3]=d;_d(c[g>>2]|0);if($w(+h[f>>3])|0){i=e;return}h[c[g>>2]>>3]=+h[f>>3];b[(c[g>>2]|0)+8>>1]=8;i=e;return}function Ud(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;j=f+8|0;h=f+4|0;g=f;c[j>>2]=b;c[h>>2]=d;c[g>>2]=e;c[(c[j>>2]|0)+20>>2]=1;a[(c[j>>2]|0)+25>>0]=1;Vd(c[c[j>>2]>>2]|0,c[h>>2]|0,c[g>>2]|0,1,-1)|0;i=f;return}function Vd(f,g,h,j,k){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;o=i;i=i+48|0;l=o+28|0;n=o+24|0;u=o+20|0;v=o+16|0;r=o+34|0;s=o+12|0;m=o+8|0;p=o+4|0;q=o+32|0;t=o;c[n>>2]=f;c[u>>2]=g;c[v>>2]=h;a[r>>0]=j;c[s>>2]=k;c[m>>2]=c[v>>2];b[q>>1]=0;k=c[n>>2]|0;if(!(c[u>>2]|0)){_d(k);c[l>>2]=0;v=c[l>>2]|0;i=o;return v|0}if(c[k+32>>2]|0)c[p>>2]=c[(c[(c[n>>2]|0)+32>>2]|0)+88>>2];else c[p>>2]=1e9;b[q>>1]=(d[r>>0]|0)==0?16:2;if((c[m>>2]|0)<0){a:do if((d[r>>0]|0)==1){c[m>>2]=Mb(c[u>>2]|0)|0;if((c[m>>2]|0)>(c[p>>2]|0))c[m>>2]=(c[p>>2]|0)+1}else{c[m>>2]=0;while(1){if((c[m>>2]|0)>(c[p>>2]|0))break a;if(!(a[(c[u>>2]|0)+(c[m>>2]|0)>>0]|a[(c[u>>2]|0)+((c[m>>2]|0)+1)>>0]))break a;c[m>>2]=(c[m>>2]|0)+2}}while(0);b[q>>1]=e[q>>1]|512}do if((c[s>>2]|0)!=(-1|0)){v=(c[s>>2]|0)==16;Bd(c[n>>2]|0);t=c[u>>2]|0;c[(c[n>>2]|0)+16>>2]=t;if(v){c[(c[n>>2]|0)+20>>2]=t;v=Bk(c[(c[n>>2]|0)+32>>2]|0,c[(c[n>>2]|0)+20>>2]|0)|0;c[(c[n>>2]|0)+24>>2]=v;break}else{c[(c[n>>2]|0)+36>>2]=c[s>>2];b[q>>1]=e[q>>1]|((c[s>>2]|0)==0?2048:1024);break}}else{c[t>>2]=c[m>>2];if(e[q>>1]&512)c[t>>2]=(c[t>>2]|0)+((d[r>>0]|0)==1?1:2);if((c[m>>2]|0)>(c[p>>2]|0)){c[l>>2]=18;v=c[l>>2]|0;i=o;return v|0}if(!(Lp(c[n>>2]|0,(c[t>>2]|0)>32?c[t>>2]|0:32)|0)){dF(c[(c[n>>2]|0)+16>>2]|0,c[u>>2]|0,c[t>>2]|0)|0;break}c[l>>2]=7;v=c[l>>2]|0;i=o;return v|0}while(0);c[(c[n>>2]|0)+12>>2]=c[m>>2];b[(c[n>>2]|0)+8>>1]=b[q>>1]|0;if(!(d[r>>0]|0))q=1;else q=d[r>>0]|0;a[(c[n>>2]|0)+10>>0]=q;if((d[(c[n>>2]|0)+10>>0]|0)!=1?(_C(c[n>>2]|0)|0)!=0:0){c[l>>2]=7;v=c[l>>2]|0;i=o;return v|0}if((c[m>>2]|0)>(c[p>>2]|0)){c[l>>2]=18;v=c[l>>2]|0;i=o;return v|0}else{c[l>>2]=0;v=c[l>>2]|0;i=o;return v|0}return 0}function Wd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;a=c[f>>2]|0;Xd(c[c[e>>2]>>2]|0,a,((a|0)<0)<<31>>31);i=d;return}function Xd(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,j=0;g=i;i=i+16|0;h=g+8|0;j=g;c[h>>2]=a;a=j;c[a>>2]=d;c[a+4>>2]=f;if((e[(c[h>>2]|0)+8>>1]|0)&9312){a=j;ZC(c[h>>2]|0,c[a>>2]|0,c[a+4>>2]|0);i=g;return}else{d=c[j+4>>2]|0;a=c[h>>2]|0;c[a>>2]=c[j>>2];c[a+4>>2]=d;b[(c[h>>2]|0)+8>>1]=4;i=g;return}}function Yd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+8|0;g=e;c[f>>2]=a;a=g;c[a>>2]=b;c[a+4>>2]=d;a=g;Xd(c[c[f>>2]>>2]|0,c[a>>2]|0,c[a+4>>2]|0);i=e;return}function Zd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;_d(c[c[d>>2]>>2]|0);i=b;return}function _d(a){a=a|0;var d=0,f=0;d=i;i=i+16|0;f=d;c[f>>2]=a;a=c[f>>2]|0;if((e[(c[f>>2]|0)+8>>1]|0)&9312){gn(a);i=d;return}else{b[a+8>>1]=1;i=d;return}}function $d(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;f=i;i=i+16|0;k=f+12|0;j=f+8|0;h=f+4|0;g=f;c[k>>2]=a;c[j>>2]=b;c[h>>2]=d;c[g>>2]=e;Pd(c[k>>2]|0,c[j>>2]|0,c[h>>2]|0,1,c[g>>2]|0);i=f;return}function ae(b,e,f,g,h,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0;n=i;i=i+32|0;m=n+16|0;p=n+12|0;o=n;l=n+8|0;k=n+20|0;c[m>>2]=b;c[p>>2]=e;b=o;c[b>>2]=f;c[b+4>>2]=g;c[l>>2]=h;a[k>>0]=j;if((d[k>>0]|0)==4)a[k>>0]=(a[1136]|0)==0?3:2;b=o;e=c[b+4>>2]|0;if(e>>>0>0|(e|0)==0&(c[b>>2]|0)>>>0>2147483647){Rd(c[p>>2]|0,c[l>>2]|0,c[m>>2]|0)|0;i=n;return}else{Pd(c[m>>2]|0,c[p>>2]|0,c[o>>2]|0,a[k>>0]|0,c[l>>2]|0);i=n;return}}function be(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;ce(c[c[f>>2]>>2]|0,c[e>>2]|0)|0;i=d;return}function ce(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0;g=i;i=i+16|0;h=g+8|0;j=g+4|0;f=g;c[h>>2]=a;c[j>>2]=d;c[f>>2]=0;if((e[(c[h>>2]|0)+8>>1]|0)&9312)gn(c[h>>2]|0);a=c[h>>2]|0;d=c[j>>2]|0;c[a+0>>2]=c[d+0>>2];c[a+4>>2]=c[d+4>>2];c[a+8>>2]=c[d+8>>2];c[a+12>>2]=c[d+12>>2];c[a+16>>2]=c[d+16>>2];a=(c[h>>2]|0)+8|0;b[a>>1]=(e[a>>1]|0)&-1025;if(!((e[(c[h>>2]|0)+8>>1]|0)&18)){a=c[f>>2]|0;i=g;return a|0}if((e[(c[j>>2]|0)+8>>1]|0)&2048){a=c[f>>2]|0;i=g;return a|0}a=(c[h>>2]|0)+8|0;b[a>>1]=e[a>>1]|0|4096;c[f>>2]=Ak(c[h>>2]|0)|0;a=c[f>>2]|0;i=g;return a|0}function de(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;ee(c[c[f>>2]>>2]|0,c[e>>2]|0);i=d;return}function ee(d,e){d=d|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+16|0;g=f+4|0;h=f;c[g>>2]=d;c[h>>2]=e;Bd(c[g>>2]|0);b[(c[g>>2]|0)+8>>1]=16400;c[(c[g>>2]|0)+12>>2]=0;if((c[h>>2]|0)<0)c[h>>2]=0;c[c[g>>2]>>2]=c[h>>2];a[(c[g>>2]|0)+10>>0]=1;c[(c[g>>2]|0)+16>>2]=0;i=f;return}function fe(b,d){b=b|0;d=d|0;var f=0,g=0,h=0;f=i;i=i+16|0;g=f+4|0;h=f;c[g>>2]=b;c[h>>2]=d;c[(c[g>>2]|0)+20>>2]=c[h>>2];a[(c[g>>2]|0)+25>>0]=1;if(!((e[(c[c[g>>2]>>2]|0)+8>>1]|0)&1)){i=f;return}b=c[c[g>>2]>>2]|0;Vd(b,ge(c[h>>2]|0)|0,-1,1,0)|0;i=f;return}function ge(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=5952;if((c[e>>2]|0)!=516){c[e>>2]=c[e>>2]&255;if((c[e>>2]|0)>=0&(c[e>>2]|0)<27?(c[5112+(c[e>>2]<<2)>>2]|0)!=0:0)c[d>>2]=c[5112+(c[e>>2]<<2)>>2]}else c[d>>2]=5968;i=b;return c[d>>2]|0}function he(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;c[(c[e>>2]|0)+20>>2]=18;a[(c[e>>2]|0)+25>>0]=1;Vd(c[c[e>>2]>>2]|0,1176,-1,1,0)|0;i=d;return}function ie(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;_d(c[c[e>>2]>>2]|0);c[(c[e>>2]|0)+20>>2]=7;a[(c[e>>2]|0)+25>>0]=1;a[(c[(c[c[e>>2]>>2]|0)+32>>2]|0)+64>>0]=1;i=d;return}function je(d){d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;j=i;i=i+48|0;f=j+32|0;m=j+28|0;k=j+24|0;l=j+20|0;e=j+16|0;o=j+12|0;g=j+8|0;n=j+4|0;h=j;c[m>>2]=d;c[k>>2]=0;c[l>>2]=0;c[e>>2]=c[m>>2];c[o>>2]=0;if(ke(c[e>>2]|0)|0){c[f>>2]=Qb(67871)|0;o=c[f>>2]|0;i=j;return o|0}c[g>>2]=c[c[e>>2]>>2];d=(c[e>>2]|0)+88|0;b[d>>1]=b[d>>1]&-2049;while(1){d=le(c[e>>2]|0)|0;c[k>>2]=d;if((d|0)!=17)break;d=c[o>>2]|0;c[o>>2]=d+1;if((d|0)>=50)break;c[n>>2]=c[(c[e>>2]|0)+76>>2];d=me(c[e>>2]|0)|0;c[k>>2]=d;c[l>>2]=d;if(c[k>>2]|0)break;xd(c[m>>2]|0)|0;if((c[n>>2]|0)<0)continue;d=(c[e>>2]|0)+88|0;b[d>>1]=b[d>>1]&-2049|2048}do if(c[l>>2]|0){c[h>>2]=Ed(c[(c[g>>2]|0)+232>>2]|0)|0;Xb(c[g>>2]|0,c[(c[e>>2]|0)+44>>2]|0);if(a[(c[g>>2]|0)+64>>0]|0){c[(c[e>>2]|0)+44>>2]=0;c[k>>2]=7;c[(c[e>>2]|0)+80>>2]=7;break}else{o=ne(c[g>>2]|0,c[h>>2]|0)|0;c[(c[e>>2]|0)+44>>2]=o;c[(c[e>>2]|0)+80>>2]=c[l>>2];break}}while(0);c[k>>2]=wd(c[g>>2]|0,c[k>>2]|0)|0;c[f>>2]=c[k>>2];o=c[f>>2]|0;i=j;return o|0}function ke(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+8|0;e=b+4|0;c[e>>2]=a;if(!(c[e>>2]|0)){tc(21,37016,b);c[d>>2]=1;e=c[d>>2]|0;i=b;return e|0}else{c[d>>2]=ud(c[e>>2]|0)|0;e=c[d>>2]|0;i=b;return e|0}return 0}function le(d){d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;i=i+32|0;f=g+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(Mb(c[g>>2]|0)|0)+1;a=c[h>>2]|0;c[f>>2]=Qe(c[j>>2]|0,a,((a|0)<0)<<31>>31)|0;if(c[f>>2]|0)dF(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;c[e>>2]=c[f>>2];a=c[e>>2]|0;i=d;return a|0}function oe(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[(c[b>>2]|0)+4>>2]|0)+4>>2]|0}function pe(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[c[b>>2]>>2]|0)+32>>2]|0}function qe(a,b){a=a|0;b=b|0;var d=0,f=0,g=0,h=0;d=i;i=i+16|0;f=d+8|0;h=d+4|0;g=d;c[h>>2]=a;c[g>>2]=b;b=c[h>>2]|0;if(!((e[(c[(c[h>>2]|0)+8>>2]|0)+8>>1]|0)&8192)){c[f>>2]=re(b,c[g>>2]|0)|0;h=c[f>>2]|0;i=d;return h|0}else{c[f>>2]=c[(c[b+8>>2]|0)+16>>2];h=c[f>>2]|0;i=d;return h|0}return 0}function re(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e+8|0;g=e+4|0;f=e;c[h>>2]=a;c[g>>2]=d;c[f>>2]=c[(c[h>>2]|0)+8>>2];d=c[f>>2]|0;if((c[g>>2]|0)>0){Lp(d,c[g>>2]|0)|0;b[(c[f>>2]|0)+8>>1]=8192;c[c[f>>2]>>2]=c[(c[h>>2]|0)+4>>2];if(c[(c[f>>2]|0)+16>>2]|0)_E(c[(c[f>>2]|0)+16>>2]|0,0,c[g>>2]|0)|0}else{_d(d);c[(c[f>>2]|0)+16>>2]=0}i=e;return c[(c[f>>2]|0)+16>>2]|0}function se(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e+12|0;g=e;f=e+8|0;c[h>>2]=a;a=g;c[a>>2]=b;c[a+4>>2]=d;a=g;c[f>>2]=Qe(c[h>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0;if(!(c[f>>2]|0)){h=c[f>>2]|0;i=e;return h|0}_E(c[f>>2]|0,0,c[g>>2]|0)|0;h=c[f>>2]|0;i=e;return h|0}function te(a){a=a|0;var b=0,d=0,f=0;b=i;i=i+16|0;f=b+4|0;d=b;c[f>>2]=a;c[d>>2]=c[f>>2];if(!(c[d>>2]|0)){f=0;i=b;return f|0}f=e[(c[d>>2]|0)+84>>1]|0;i=b;return f|0}function ue(a){a=a|0;var b=0,d=0,f=0,g=0;b=i;i=i+16|0;d=b+8|0;g=b+4|0;f=b;c[g>>2]=a;c[f>>2]=c[g>>2];if((c[f>>2]|0)!=0?(c[(c[f>>2]|0)+20>>2]|0)!=0:0){c[d>>2]=e[(c[f>>2]|0)+84>>1];g=c[d>>2]|0;i=b;return g|0}c[d>>2]=0;g=c[d>>2]|0;i=b;return g|0}function ve(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;d=e;c[f>>2]=a;c[g>>2]=b;c[d>>2]=Cd(we(c[f>>2]|0,c[g>>2]|0)|0)|0;xe(c[f>>2]|0);i=e;return c[d>>2]|0}function we(a,b){a=a|0;b=b|0;var d=0,f=0,g=0,h=0,j=0;d=i;i=i+16|0;j=d+12|0;g=d+8|0;h=d+4|0;f=d;c[j>>2]=a;c[g>>2]=b;c[h>>2]=c[j>>2];if(((c[h>>2]|0)!=0?(c[(c[h>>2]|0)+20>>2]|0)!=0:0)?(c[g>>2]|0)>=0?(c[g>>2]|0)<(e[(c[h>>2]|0)+84>>1]|0|0):0:0){c[f>>2]=(c[(c[h>>2]|0)+20>>2]|0)+((c[g>>2]|0)*40|0);j=c[f>>2]|0;i=d;return j|0}if((c[h>>2]|0)!=0?(c[c[h>>2]>>2]|0)!=0:0)Nc(c[c[h>>2]>>2]|0,25);c[f>>2]=Sy()|0;j=c[f>>2]|0;i=d;return j|0}function xe(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=c[e>>2];if(!(c[d>>2]|0)){i=b;return}e=wd(c[c[d>>2]>>2]|0,c[(c[d>>2]|0)+80>>2]|0)|0;c[(c[d>>2]|0)+80>>2]=e;i=b;return}function ye(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;d=e;c[f>>2]=a;c[g>>2]=b;c[d>>2]=Fd(we(c[f>>2]|0,c[g>>2]|0)|0)|0;xe(c[f>>2]|0);i=e;return c[d>>2]|0}function ze(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;f=e+12|0;g=e+8|0;d=e;c[f>>2]=a;c[g>>2]=b;h[d>>3]=+Hd(we(c[f>>2]|0,c[g>>2]|0)|0);xe(c[f>>2]|0);i=e;return+(+h[d>>3])}function Ae(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;d=e;c[f>>2]=a;c[g>>2]=b;c[d>>2]=Ed(we(c[f>>2]|0,c[g>>2]|0)|0)|0;xe(c[f>>2]|0);i=e;return c[d>>2]|0}function Be(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;d=e;c[f>>2]=a;c[g>>2]=b;c[d>>2]=Nd(we(c[f>>2]|0,c[g>>2]|0)|0)|0;xe(c[f>>2]|0);i=e;return c[d>>2]|0}function Ce(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=De(c[f>>2]|0,c[e>>2]|0,17,0)|0;i=d;return a|0}function De(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;m=i;i=i+32|0;p=m+28|0;g=m+24|0;n=m+20|0;k=m+16|0;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[n>>2]|0);t=c[l>>2]|0;i=q;return t|0}if(!(c[n>>2]|0)){t=c[l>>2]|0;i=q;return t|0}c[k>>2]=(c[(c[o>>2]|0)+60>>2]|0)+(((c[p>>2]|0)-1|0)*40|0);c[l>>2]=Vd(c[k>>2]|0,c[n>>2]|0,c[r>>2]|0,a[s>>0]|0,c[m>>2]|0)|0;if((c[l>>2]|0)==0?(d[s>>0]|0|0)!=0:0)c[l>>2]=yk(c[k>>2]|0,d[(c[(c[(c[c[o>>2]>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]|0)|0;Nc(c[c[o>>2]>>2]|0,c[l>>2]|0);c[l>>2]=wd(c[c[o>>2]>>2]|0,c[l>>2]|0)|0;t=c[l>>2]|0;i=q;return t|0}function Ge(a,b,d){a=a|0;b=b|0;d=+d;var e=0,f=0,g=0,j=0,k=0,l=0;e=i;i=i+32|0;l=e+20|0;j=e+16|0;k=e;f=e+12|0;g=e+8|0;c[l>>2]=a;c[j>>2]=b;h[k>>3]=d;c[g>>2]=c[l>>2];c[f>>2]=He(c[g>>2]|0,c[j>>2]|0)|0;if(c[f>>2]|0){l=c[f>>2]|0;i=e;return l|0}Td((c[(c[g>>2]|0)+60>>2]|0)+(((c[j>>2]|0)-1|0)*40|0)|0,+h[k>>3]);l=c[f>>2]|0;i=e;return l|0}function He(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;m=g;h=g+16|0;j=g+12|0;k=g+8|0;l=g+4|0;c[j>>2]=a;c[k>>2]=d;if(ke(c[j>>2]|0)|0){c[h>>2]=Qb(68415)|0;a=c[h>>2]|0;i=g;return a|0}if((c[(c[j>>2]|0)+40>>2]|0)==-1108210269?(c[(c[j>>2]|0)+76>>2]|0)<0:0){if((c[k>>2]|0)>=1?(c[k>>2]|0)<=(b[(c[j>>2]|0)+68>>1]|0):0){c[k>>2]=(c[k>>2]|0)+ -1;c[l>>2]=(c[(c[j>>2]|0)+60>>2]|0)+((c[k>>2]|0)*40|0);Bd(c[l>>2]|0);b[(c[l>>2]|0)+8>>1]=1;Nc(c[c[j>>2]>>2]|0,0);do if((e[(c[j>>2]|0)+88>>1]|0)>>>10&1){if(!((c[k>>2]|0)<32?(c[(c[j>>2]|0)+188>>2]&1<>2]|0)!=0:0))f=12;if((f|0)==12?(c[(c[j>>2]|0)+188>>2]|0)!=-1:0)break;a=(c[j>>2]|0)+88|0;b[a>>1]=b[a>>1]&-33|32}while(0);c[h>>2]=0;a=c[h>>2]|0;i=g;return a|0}Nc(c[c[j>>2]>>2]|0,25);c[h>>2]=25;a=c[h>>2]|0;i=g;return a|0}Nc(c[c[j>>2]>>2]|0,21);c[m>>2]=c[(c[j>>2]|0)+168>>2];tc(21,31184,m);c[h>>2]=Qb(68423)|0;a=c[h>>2]|0;i=g;return a|0}function Ie(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;g=e+8|0;f=e+4|0;h=e;c[g>>2]=a;c[f>>2]=b;c[h>>2]=d;a=c[h>>2]|0;a=Je(c[g>>2]|0,c[f>>2]|0,a,((a|0)<0)<<31>>31)|0;i=e;return a|0}function Je(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+32|0;l=f+20|0;k=f+16|0;h=f;g=f+12|0;j=f+8|0;c[l>>2]=a;c[k>>2]=b;a=h;c[a>>2]=d;c[a+4>>2]=e;c[j>>2]=c[l>>2];c[g>>2]=He(c[j>>2]|0,c[k>>2]|0)|0;if(c[g>>2]|0){l=c[g>>2]|0;i=f;return l|0}l=h;Xd((c[(c[j>>2]|0)+60>>2]|0)+(((c[k>>2]|0)-1|0)*40|0)|0,c[l>>2]|0,c[l+4>>2]|0);l=c[g>>2]|0;i=f;return l|0}function Ke(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,j=0,k=0,l=0,m=0;g=i;i=i+32|0;m=g+16|0;l=g+12|0;k=g+8|0;j=g+4|0;h=g;c[m>>2]=a;c[l>>2]=b;c[k>>2]=d;c[j>>2]=e;c[h>>2]=f;a=Fe(c[m>>2]|0,c[l>>2]|0,c[k>>2]|0,c[j>>2]|0,c[h>>2]|0,1)|0;i=g;return a|0}function Le(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;b=c[f>>2]|0;a=c[e>>2]|0;a=Me(b,a,Mb(c[e>>2]|0)|0)|0;i=d;return a|0}function Me(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;h=g+20|0;m=g+16|0;k=g+12|0;l=g+8|0;n=g+4|0;j=g;c[m>>2]=d;c[k>>2]=e;c[l>>2]=f;if(!(c[m>>2]|0)){c[h>>2]=0;d=c[h>>2]|0;i=g;return d|0}a:do if(c[k>>2]|0){c[n>>2]=0;while(1){if((c[n>>2]|0)>=(b[(c[m>>2]|0)+70>>1]|0))break a;c[j>>2]=c[(c[(c[m>>2]|0)+64>>2]|0)+(c[n>>2]<<2)>>2];if(((c[j>>2]|0)!=0?(VE(c[j>>2]|0,c[k>>2]|0,c[l>>2]|0)|0)==0:0)?(a[(c[j>>2]|0)+(c[l>>2]|0)>>0]|0)==0:0)break;c[n>>2]=(c[n>>2]|0)+1}c[h>>2]=(c[n>>2]|0)+1;d=c[h>>2]|0;i=g;return d|0}while(0);c[h>>2]=0;d=c[h>>2]|0;i=g;return d|0}function Ne(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;k=e+16|0;j=e+12|0;g=e+8|0;h=e+4|0;f=e;c[k>>2]=a;c[j>>2]=d;c[g>>2]=c[k>>2];c[h>>2]=c[j>>2];c[f>>2]=0;while(1){if((c[f>>2]|0)>=(b[(c[g>>2]|0)+68>>1]|0))break;Ry((c[(c[h>>2]|0)+60>>2]|0)+((c[f>>2]|0)*40|0)|0,(c[(c[g>>2]|0)+60>>2]|0)+((c[f>>2]|0)*40|0)|0);c[f>>2]=(c[f>>2]|0)+1}i=e;return 0}function Oe(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;e=b+8|0;d=b+4|0;f=b;c[e>>2]=a;c[d>>2]=Nd(c[e>>2]|0)|0;if((c[d>>2]|0)!=3){f=c[d>>2]|0;i=b;return f|0}c[f>>2]=c[e>>2];Pe(c[f>>2]|0,0);c[d>>2]=Nd(c[e>>2]|0)|0;f=c[d>>2]|0;i=b;return f|0}function Pe(d,f){d=d|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;k=g+20|0;m=g+16|0;l=g+8|0;j=g;n=g+24|0;c[k>>2]=d;c[m>>2]=f;a[n>>0]=a[(c[k>>2]|0)+10>>0]|0;if(!(Lm(c[(c[k>>2]|0)+16>>2]|0,l,c[(c[k>>2]|0)+12>>2]|0,a[n>>0]|0)|0)){i=g;return}if(!(wg(c[(c[k>>2]|0)+16>>2]|0,j,c[(c[k>>2]|0)+12>>2]|0,a[n>>0]|0)|0)){m=j;n=c[m+4>>2]|0;d=c[k>>2]|0;c[d>>2]=c[m>>2];c[d+4>>2]=n;d=(c[k>>2]|0)+8|0;b[d>>1]=e[d>>1]|0|4;i=g;return}h[c[k>>2]>>3]=+h[l>>3];d=(c[k>>2]|0)+8|0;b[d>>1]=e[d>>1]|0|8;if(!(c[m>>2]|0)){i=g;return}Hp(c[k>>2]|0);i=g;return}function Qe(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;h=g+20|0;l=g+16|0;j=g;k=g+12|0;m=g+8|0;c[l>>2]=b;b=j;c[b>>2]=d;c[b+4>>2]=f;do if(c[l>>2]|0){if(a[(c[l>>2]|0)+64>>0]|0){c[h>>2]=0;b=c[h>>2]|0;i=g;return b|0}if(a[(c[l>>2]|0)+250>>0]|0){b=j;d=c[b+4>>2]|0;f=(c[l>>2]|0)+248|0;if(d>>>0>0|((d|0)==0?(c[b>>2]|0)>>>0>(e[(c[l>>2]|0)+248>>1]|0)>>>0:0)){b=f+16|0;c[b>>2]=(c[b>>2]|0)+1;break}b=c[f+24>>2]|0;c[m>>2]=b;if(!b){b=(c[l>>2]|0)+268|0;c[b>>2]=(c[b>>2]|0)+1;break}c[(c[l>>2]|0)+272>>2]=c[c[m>>2]>>2];b=(c[l>>2]|0)+252|0;c[b>>2]=(c[b>>2]|0)+1;b=(c[l>>2]|0)+260|0;c[b>>2]=(c[b>>2]|0)+1;if((c[(c[l>>2]|0)+252>>2]|0)>(c[(c[l>>2]|0)+256>>2]|0))c[(c[l>>2]|0)+256>>2]=c[(c[l>>2]|0)+252>>2];c[h>>2]=c[m>>2];b=c[h>>2]|0;i=g;return b|0}}while(0);b=j;c[k>>2]=gc(c[b>>2]|0,c[b+4>>2]|0)|0;if((c[k>>2]|0)==0&(c[l>>2]|0)!=0)a[(c[l>>2]|0)+64>>0]=1;c[h>>2]=c[k>>2];b=c[h>>2]|0;i=g;return b|0}function Re(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=i;i=i+48|0;k=l;g=l+36|0;m=l+32|0;p=l+28|0;j=l+24|0;h=l+20|0;n=l+16|0;o=l+12|0;c[m>>2]=b;c[p>>2]=d;c[j>>2]=e;c[h>>2]=f;if(Ar(c[m>>2]|0)|0){c[g>>2]=0;b=c[g>>2]|0;i=l;return b|0}c[n>>2]=sp(c[c[m>>2]>>2]|0,c[j>>2]|0,c[h>>2]|0)|0;if(!(c[n>>2]|0)){c[o>>2]=(c[p>>2]|0)!=0?31152:31168;p=c[m>>2]|0;o=c[o>>2]|0;if(c[h>>2]|0){d=c[h>>2]|0;b=c[j>>2]|0;c[k>>2]=o;c[k+4>>2]=d;c[k+8>>2]=b;Se(p,17264,k)}else{b=c[j>>2]|0;c[k>>2]=o;c[k+4>>2]=b;Se(p,17280,k)}a[(c[m>>2]|0)+17>>0]=1}c[g>>2]=c[n>>2];b=c[g>>2]|0;i=l;return b|0}function Se(b,d,e){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+48|0;j=f+32|0;l=f+28|0;g=f+24|0;k=f+8|0;h=f;c[j>>2]=b;c[l>>2]=d;c[h>>2]=c[c[j>>2]>>2];c[k>>2]=e;c[g>>2]=yn(c[h>>2]|0,c[l>>2]|0,k)|0;if(a[(c[h>>2]|0)+67>>0]|0){Xb(c[h>>2]|0,c[g>>2]|0);i=f;return}else{l=(c[j>>2]|0)+64|0;c[l>>2]=(c[l>>2]|0)+1;Xb(c[h>>2]|0,c[(c[j>>2]|0)+4>>2]|0);c[(c[j>>2]|0)+4>>2]=c[g>>2];c[(c[j>>2]|0)+12>>2]=1;i=f;return}}function Te(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;i=i+32|0;j=f+28|0;h=f+24|0;g=f+8|0;e=f;c[j>>2]=a;c[h>>2]=b;c[g>>2]=d;c[e>>2]=yn(c[j>>2]|0,c[h>>2]|0,g)|0;i=f;return c[e>>2]|0}function Ue(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;d=b+12|0;g=b+8|0;e=b+4|0;f=b;c[g>>2]=a;c[e>>2]=c[c[g>>2]>>2];c[f>>2]=se(c[e>>2]|0,208,0)|0;if(!(c[f>>2]|0)){c[d>>2]=0;g=c[d>>2]|0;i=b;return g|0}c[c[f>>2]>>2]=c[e>>2];if(c[(c[e>>2]|0)+4>>2]|0)c[(c[(c[e>>2]|0)+4>>2]|0)+48>>2]=c[f>>2];c[(c[f>>2]|0)+52>>2]=c[(c[e>>2]|0)+4>>2];c[(c[f>>2]|0)+48>>2]=0;c[(c[e>>2]|0)+4>>2]=c[f>>2];c[(c[f>>2]|0)+40>>2]=649915045;c[(c[f>>2]|0)+24>>2]=c[g>>2];c[d>>2]=c[f>>2];g=c[d>>2]|0;i=b;return g|0}function Ve(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;e=d;c[f>>2]=a;c[g>>2]=b;c[e>>2]=-1e6;if(!(c[g>>2]|0)){a=c[e>>2]|0;i=d;return a|0}c[e>>2]=0;while(1){if((c[e>>2]|0)>=(c[(c[f>>2]|0)+20>>2]|0)){b=6;break}if((c[(c[(c[f>>2]|0)+16>>2]|0)+(c[e>>2]<<4)+12>>2]|0)==(c[g>>2]|0)){b=6;break}c[e>>2]=(c[e>>2]|0)+1}if((b|0)==6){a=c[e>>2]|0;i=d;return a|0}return 0}function We(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=i;i=i+32|0;l=j+24|0;p=j+20|0;o=j+16|0;n=j+12|0;m=j+8|0;k=j+4|0;h=j;c[l>>2]=a;c[p>>2]=b;c[o>>2]=d;c[n>>2]=e;c[m>>2]=f;c[k>>2]=g;c[h>>2]=ip(c[l>>2]|0,c[p>>2]|0,c[o>>2]|0,c[n>>2]|0,c[m>>2]|0)|0;bf(c[l>>2]|0,c[h>>2]|0,c[k>>2]|0,-14);i=j;return c[h>>2]|0}function Xe(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;g=e;f=e+4|0;c[g>>2]=b;a[f>>0]=d;if(!(c[(c[g>>2]|0)+4>>2]|0)){i=e;return}a[(c[(c[g>>2]|0)+4>>2]|0)+(((c[(c[g>>2]|0)+32>>2]|0)-1|0)*20|0)+3>>0]=a[f>>0]|0;i=e;return}function Ye(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;i=i+48|0;n=h+36|0;k=h+32|0;l=h+28|0;q=h+24|0;j=h+16|0;o=h+12|0;m=h+8|0;g=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>2]|0)>>>0<=(c[h>>2]|0)>>>0){i=e;return}c[(c[(c[g>>2]|0)+4>>2]|0)+((c[h>>2]|0)*20|0)+4>>2]=c[f>>2];i=e;return}function $e(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;g=e+8|0;h=e+4|0;f=e;c[g>>2]=a;c[h>>2]=b;c[f>>2]=d;if((c[(c[g>>2]|0)+32>>2]|0)>>>0<=(c[h>>2]|0)>>>0){i=e;return}c[(c[(c[g>>2]|0)+4>>2]|0)+((c[h>>2]|0)*20|0)+8>>2]=c[f>>2];i=e;return}function af(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;g=e+8|0;h=e+4|0;f=e;c[g>>2]=a;c[h>>2]=b;c[f>>2]=d;if((c[(c[g>>2]|0)+32>>2]|0)>>>0<=(c[h>>2]|0)>>>0){i=e;return}c[(c[(c[g>>2]|0)+4>>2]|0)+((c[h>>2]|0)*20|0)+12>>2]=c[f>>2];i=e;return}function bf(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0;j=i;i=i+32|0;k=j+20|0;o=j+16|0;h=j+12|0;m=j+8|0;l=j+4|0;n=j;c[k>>2]=b;c[o>>2]=e;c[h>>2]=f;c[m>>2]=g;c[n>>2]=c[c[k>>2]>>2];if((c[(c[k>>2]|0)+4>>2]|0)!=0?(d[(c[n>>2]|0)+64>>0]|0)==0:0){if((c[o>>2]|0)<0)c[o>>2]=(c[(c[k>>2]|0)+32>>2]|0)-1;c[l>>2]=(c[(c[k>>2]|0)+4>>2]|0)+((c[o>>2]|0)*20|0);Oy(c[n>>2]|0,a[(c[l>>2]|0)+1>>0]|0,c[(c[l>>2]|0)+16>>2]|0);c[(c[l>>2]|0)+16>>2]=0;n=c[h>>2]|0;if((c[m>>2]|0)==-14){c[(c[l>>2]|0)+16>>2]=n;a[(c[l>>2]|0)+1>>0]=-14;i=j;return}if(!n){c[(c[l>>2]|0)+16>>2]=0;a[(c[l>>2]|0)+1>>0]=0;i=j;return}if((c[m>>2]|0)==-6){c[(c[l>>2]|0)+16>>2]=c[h>>2];a[(c[l>>2]|0)+1>>0]=-6;i=j;return}if((c[m>>2]|0)==-10){c[(c[l>>2]|0)+16>>2]=c[h>>2];a[(c[l>>2]|0)+1>>0]=-10;Qy(c[h>>2]|0);i=j;return}if((c[m>>2]|0)<0){c[(c[l>>2]|0)+16>>2]=c[h>>2];a[(c[l>>2]|0)+1>>0]=c[m>>2];i=j;return}if(!(c[m>>2]|0))c[m>>2]=Mb(c[h>>2]|0)|0;b=c[m>>2]|0;b=rm(c[c[k>>2]>>2]|0,c[h>>2]|0,b,((b|0)<0)<<31>>31)|0;c[(c[l>>2]|0)+16>>2]=b;a[(c[l>>2]|0)+1>>0]=-1;i=j;return}if((c[m>>2]|0)==-10){i=j;return}Oy(c[n>>2]|0,c[m>>2]|0,c[h>>2]|0);i=j;return}function cf(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+12|0;g=e+8|0;h=e+4|0;j=e;c[f>>2]=b;c[g>>2]=d;if((c[g>>2]|0)>=(c[(c[f>>2]|0)+32>>2]|0)){i=e;return}c[h>>2]=(c[(c[f>>2]|0)+4>>2]|0)+((c[g>>2]|0)*20|0);c[j>>2]=c[c[f>>2]>>2];Oy(c[j>>2]|0,a[(c[h>>2]|0)+1>>0]|0,c[(c[h>>2]|0)+16>>2]|0);b=c[h>>2]|0;c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;c[b+16>>2]=0;a[c[h>>2]>>0]=-102;if((c[g>>2]|0)!=((c[(c[f>>2]|0)+32>>2]|0)-1|0)){i=e;return}b=(c[f>>2]|0)+32|0;c[b>>2]=(c[b>>2]|0)+ -1;i=e;return}function df(e,f){e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,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e>>1]=f;e=c[n>>2]|0;zd(e);i=m;return}e=(c[n>>2]|0)+8|0;c[e>>2]=(c[e>>2]|0)+ -40;c[(c[n>>2]|0)+28>>2]=c[s>>2];c[j>>2]=1;while(1){if((c[j>>2]|0)>(c[s>>2]|0))break;b[(c[(c[n>>2]|0)+8>>2]|0)+((c[j>>2]|0)*40|0)+8>>1]=128;c[(c[(c[n>>2]|0)+8>>2]|0)+((c[j>>2]|0)*40|0)+32>>2]=c[l>>2];c[j>>2]=(c[j>>2]|0)+1}f=c[o>>2]|0;f=f+450|0;f=a[f>>0]|0;f=f&255;e=c[n>>2]|0;e=e+88|0;f=f&65535;t=b[e>>1]|0;f=f&3;t=t&-4;f=t|f;b[e>>1]=f;e=c[n>>2]|0;zd(e);i=m;return}function ef(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}c[e>>2]=c[c[d>>2]>>2];Xb(c[e>>2]|0,c[(c[d>>2]|0)+112>>2]|0);sn(c[e>>2]|0,c[(c[d>>2]|0)+316>>2]|0);i=b;return}function ff(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;m=i;i=i+32|0;h=m+20|0;k=m+16|0;l=m+12|0;g=m+8|0;n=m+4|0;j=m;c[k>>2]=a;c[l>>2]=b;c[g>>2]=e;c[n>>2]=f;if(!(d[(c[k>>2]|0)+73>>0]|0)){c[h>>2]=4;a=c[h>>2]|0;i=m;return a|0}if((d[(c[k>>2]|0)+73>>0]|0|0)>=3)f=vw(c[k>>2]|0)|0;else f=0;c[j>>2]=f;if(!(c[j>>2]|0))c[j>>2]=Lw(c[k>>2]|0,c[l>>2]|0,c[g>>2]|0,c[n>>2]|0,0)|0;c[h>>2]=c[j>>2];a=c[h>>2]|0;i=m;return a|0}function gf(a){a=a|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=c[(c[f>>2]|0)+4>>2];while(1){if(!(c[e>>2]|0))break;f=(c[e>>2]|0)+88|0;b[f>>1]=b[f>>1]&-33|32;c[e>>2]=c[(c[e>>2]|0)+52>>2]}i=d;return}function hf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=(jf(c[f>>2]|0,c[e>>2]|0,1208,0)|0)==0&1;i=d;return a|0}function jf(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=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;k=i;i=i+64|0;n=k+56|0;m=k+52|0;l=k+48|0;h=k+44|0;j=k+40|0;p=k+36|0;r=k+32|0;t=k+28|0;u=k+24|0;s=k+20|0;o=k+60|0;v=k+16|0;q=k+12|0;w=k+8|0;x=k+4|0;y=k;c[m>>2]=b;c[l>>2]=e;c[h>>2]=f;c[j>>2]=g;c[t>>2]=d[(c[h>>2]|0)+1>>0];c[u>>2]=d[c[h>>2]>>0];a[o>>0]=a[(c[h>>2]|0)+3>>0]|0;c[v>>2]=0;if(c[j>>2]|0)g=c[j>>2]|0;else g=d[(c[h>>2]|0)+2>>0]|0;c[s>>2]=g;a:while(1){b=Um(m)|0;c[p>>2]=b;if(!b){v=76;break}if((c[p>>2]|0)==(c[u>>2]|0)){v=7;break}do if((c[p>>2]|0)==(c[s>>2]|0)){if(c[j>>2]|0){c[p>>2]=Um(m)|0;if(!(c[p>>2]|0)){v=43;break a}c[v>>2]=c[m>>2];break}c[w>>2]=0;c[x>>2]=0;c[y>>2]=0;c[p>>2]=Um(l)|0;if(!(c[p>>2]|0)){v=46;break a}c[r>>2]=Um(m)|0;if((c[r>>2]|0)==94){c[y>>2]=1;c[r>>2]=Um(m)|0}if((c[r>>2]|0)==93){if((c[p>>2]|0)==93)c[x>>2]=1;c[r>>2]=Um(m)|0}while(1){if(c[r>>2]|0)f=(c[r>>2]|0)!=93;else f=0;g=c[r>>2]|0;if(!f)break;if(((g|0)==45?(d[c[m>>2]>>0]|0)!=93:0)?(c[w>>2]|0)>>>0>0?(d[c[m>>2]>>0]|0)!=0:0:0){c[r>>2]=Um(m)|0;if((c[p>>2]|0)>>>0>=(c[w>>2]|0)>>>0?(c[p>>2]|0)>>>0<=(c[r>>2]|0)>>>0:0)c[x>>2]=1;c[w>>2]=0}else{if((c[p>>2]|0)==(c[r>>2]|0))c[x>>2]=1;c[w>>2]=c[r>>2]}c[r>>2]=Um(m)|0}if(!g){v=69;break a}if(!(c[x>>2]^c[y>>2])){v=69;break a}else continue a}while(0);c[r>>2]=Um(l)|0;if((c[p>>2]|0)==(c[r>>2]|0))continue;if((d[o>>0]|0)!=0&(c[p>>2]|0)>>>0<128&(c[r>>2]|0)>>>0<128?(d[440+(c[p>>2]&255)>>0]|0)==(d[440+(c[r>>2]&255)>>0]|0):0)continue;if((c[p>>2]|0)!=(c[t>>2]|0)){v=75;break}if(!((c[r>>2]|0)!=0?(c[m>>2]|0)!=(c[v>>2]|0):0)){v=75;break}}if((v|0)==7){while(1){v=0;b=Um(m)|0;c[p>>2]=b;if((b|0)==(c[u>>2]|0))x=1;else x=(c[p>>2]|0)==(c[t>>2]|0);w=c[p>>2]|0;if(!x)break;if((w|0)!=(c[t>>2]|0)){v=7;continue}if(!(Um(l)|0)){v=12;break}else v=7}if((v|0)==12){c[n>>2]=0;b=c[n>>2]|0;i=k;return b|0}if(!w){c[n>>2]=1;b=c[n>>2]|0;i=k;return b|0}do if((c[p>>2]|0)==(c[s>>2]|0)){if(c[j>>2]|0){c[p>>2]=Um(m)|0;if(c[p>>2]|0)break;c[n>>2]=0;b=c[n>>2]|0;i=k;return b|0}b:while(1){if(d[c[l>>2]>>0]|0)p=(jf((c[m>>2]|0)+ -1|0,c[l>>2]|0,c[h>>2]|0,c[j>>2]|0)|0)==0;else p=0;o=c[l>>2]|0;if(!p)break;c[l>>2]=o+1;if((d[o>>0]|0)<192)continue;while(1){if((d[c[l>>2]>>0]&192|0)!=128)continue b;c[l>>2]=(c[l>>2]|0)+1}}c[n>>2]=(d[o>>0]|0)!=0&1;b=c[n>>2]|0;i=k;return b|0}while(0);c:do if((c[p>>2]|0)>>>0<=128){s=c[p>>2]|0;if(a[o>>0]|0){c[q>>2]=s&~(d[1224+(c[p>>2]&255)>>0]&32);c[p>>2]=d[440+(c[p>>2]&255)>>0]}else c[q>>2]=s;while(1){b=c[l>>2]|0;c[l>>2]=b+1;b=d[b>>0]|0;c[r>>2]=b;if(!b)break c;if((c[r>>2]|0)!=(c[p>>2]|0)?(c[r>>2]|0)!=(c[q>>2]|0):0)continue;if(jf(c[m>>2]|0,c[l>>2]|0,c[h>>2]|0,c[j>>2]|0)|0)break}c[n>>2]=1;b=c[n>>2]|0;i=k;return b|0}else{while(1){b=Um(l)|0;c[r>>2]=b;if(!b)break c;if((c[r>>2]|0)!=(c[p>>2]|0))continue;if(jf(c[m>>2]|0,c[l>>2]|0,c[h>>2]|0,c[j>>2]|0)|0)break}c[n>>2]=1;b=c[n>>2]|0;i=k;return b|0}while(0);c[n>>2]=0;b=c[n>>2]|0;i=k;return b|0}else if((v|0)==43){c[n>>2]=0;b=c[n>>2]|0;i=k;return b|0}else if((v|0)==46){c[n>>2]=0;b=c[n>>2]|0;i=k;return b|0}else if((v|0)==69){c[n>>2]=0;b=c[n>>2]|0;i=k;return b|0}else if((v|0)==75){c[n>>2]=0;b=c[n>>2]|0;i=k;return b|0}else if((v|0)==76){c[n>>2]=(d[c[l>>2]>>0]|0)==0&1;b=c[n>>2]|0;i=k;return b|0}return 0}function kf(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var 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;u=i;i=i+64|0;l=u+56|0;o=u+52|0;t=u+48|0;x=u+44|0;z=u+40|0;n=u+36|0;m=u+32|0;j=u+28|0;r=u+24|0;q=u+20|0;v=u+16|0;w=u+12|0;s=u+8|0;y=u+4|0;p=u;c[o>>2]=b;c[t>>2]=e;c[x>>2]=f;c[z>>2]=g;c[n>>2]=h;c[m>>2]=0;c[r>>2]=0;c[q>>2]=0;if(!(lf(c[o>>2]|0)|0)){c[l>>2]=Qb(99392)|0;b=c[l>>2]|0;i=u;return b|0}if(!(c[t>>2]|0))c[t>>2]=1216;Nc(c[o>>2]|0,0);a:while(1){if(c[m>>2]|0)break;if(!(a[c[t>>2]>>0]|0))break;c[s>>2]=0;c[r>>2]=0;c[m>>2]=mf(c[o>>2]|0,c[t>>2]|0,-1,r,j)|0;if(c[m>>2]|0)continue;if(!(c[r>>2]|0)){c[t>>2]=c[j>>2];continue}c[v>>2]=0;c[w>>2]=te(c[r>>2]|0)|0;do{c[m>>2]=je(c[r>>2]|0)|0;do if(c[x>>2]|0){if(100!=(c[m>>2]|0)){if(101!=(c[m>>2]|0)|(c[v>>2]|0)!=0)break;if(!(c[(c[o>>2]|0)+24>>2]&256))break}if(!(c[v>>2]|0)){c[q>>2]=se(c[o>>2]|0,(c[w>>2]<<1<<2)+1|0,0)|0;if(!(c[q>>2]|0))break a;c[y>>2]=0;while(1){if((c[y>>2]|0)>=(c[w>>2]|0))break;b=Ce(c[r>>2]|0,c[y>>2]|0)|0;c[(c[q>>2]|0)+(c[y>>2]<<2)>>2]=b;c[y>>2]=(c[y>>2]|0)+1}c[v>>2]=1}b:do if((c[m>>2]|0)==100){c[s>>2]=(c[q>>2]|0)+(c[w>>2]<<2);c[y>>2]=0;while(1){if((c[y>>2]|0)>=(c[w>>2]|0))break b;b=Ae(c[r>>2]|0,c[y>>2]|0)|0;c[(c[s>>2]|0)+(c[y>>2]<<2)>>2]=b;if((c[(c[s>>2]|0)+(c[y>>2]<<2)>>2]|0)==0?(Be(c[r>>2]|0,c[y>>2]|0)|0)!=5:0){k=27;break a}c[y>>2]=(c[y>>2]|0)+1}}while(0);if(xb[c[x>>2]&7](c[z>>2]|0,c[w>>2]|0,c[s>>2]|0,c[q>>2]|0)|0){k=30;break a}}while(0)}while((c[m>>2]|0)==100);c[m>>2]=vd(c[r>>2]|0)|0;c[r>>2]=0;c[t>>2]=c[j>>2];while(1){if(!(d[1224+(d[c[t>>2]>>0]|0)>>0]&1))break;c[t>>2]=(c[t>>2]|0)+1}Xb(c[o>>2]|0,c[q>>2]|0);c[q>>2]=0}if((k|0)==27)a[(c[o>>2]|0)+64>>0]=1;else if((k|0)==30){c[m>>2]=4;vd(c[r>>2]|0)|0;c[r>>2]=0;Nc(c[o>>2]|0,4)}if(c[r>>2]|0)vd(c[r>>2]|0)|0;Xb(c[o>>2]|0,c[q>>2]|0);c[m>>2]=wd(c[o>>2]|0,c[m>>2]|0)|0;do if((c[m>>2]|0)!=0&(c[n>>2]|0)!=0){c[p>>2]=1+(Mb(nf(c[o>>2]|0)|0)|0);b=c[p>>2]|0;b=gc(b,((b|0)<0)<<31>>31)|0;c[c[n>>2]>>2]=b;if(c[c[n>>2]>>2]|0){e=c[c[n>>2]>>2]|0;b=nf(c[o>>2]|0)|0;dF(e|0,b|0,c[p>>2]|0)|0;break}else{c[m>>2]=7;Nc(c[o>>2]|0,7);break}}else if(c[n>>2]|0)c[c[n>>2]>>2]=0;while(0);c[l>>2]=c[m>>2];b=c[l>>2]|0;i=u;return b|0}function lf(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+8|0;e=b+4|0;f=b;c[e>>2]=a;do if(!(c[e>>2]|0)){sk(9840);c[d>>2]=0}else{c[f>>2]=c[(c[e>>2]|0)+76>>2];if((c[f>>2]|0)==-1607883113){c[d>>2]=1;break}if($f(c[e>>2]|0)|0)sk(31136);c[d>>2]=0}while(0);i=b;return c[d>>2]|0}function mf(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,j=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;n=h+20|0;m=h+16|0;l=h+12|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0);b=qm((c[t>>2]|0)+(c[l>>2]|0)|0,w)|0;c[(c[h>>2]|0)+508>>2]=b;c[l>>2]=(c[l>>2]|0)+(c[(c[h>>2]|0)+508>>2]|0);if((c[l>>2]|0)>(c[x>>2]|0)){q=10;break}f=c[w>>2]|0;if((f|0)==150){q=14;break}else if((f|0)==151)if(c[(c[k>>2]|0)+240>>2]|0){q=13;break}else continue;else if((f|0)==1)c[(c[h>>2]|0)+480>>2]=(c[t>>2]|0)+(c[l>>2]|0);f=c[r>>2]|0;e=c[w>>2]|0;y=(c[h>>2]|0)+504|0;b=c[h>>2]|0;c[v+0>>2]=c[y+0>>2];c[v+4>>2]=c[y+4>>2];nn(f,e,v,b);c[u>>2]=c[w>>2];if(c[(c[h>>2]|0)+12>>2]|0)break}if((q|0)==10)c[(c[h>>2]|0)+12>>2]=18;else if((q|0)==13){Se(c[h>>2]|0,9920,v);c[(c[h>>2]|0)+12>>2]=9}else if((q|0)==14){Xb(c[k>>2]|0,c[c[s>>2]>>2]|0);y=c[k>>2]|0;c[v>>2]=(c[h>>2]|0)+504;y=Te(y,9936,v)|0;c[c[s>>2]>>2]=y;c[m>>2]=(c[m>>2]|0)+1}if(((c[m>>2]|0)==0?(a[(c[t>>2]|0)+(c[l>>2]|0)>>0]|0)==0:0)?(c[(c[h>>2]|0)+12>>2]|0)==0:0){if((c[u>>2]|0)!=1){b=c[r>>2]|0;e=(c[h>>2]|0)+504|0;y=c[h>>2]|0;c[v+0>>2]=c[e+0>>2];c[v+4>>2]=c[e+4>>2];nn(b,1,v,y);c[(c[h>>2]|0)+480>>2]=(c[t>>2]|0)+(c[l>>2]|0)}b=c[r>>2]|0;e=(c[h>>2]|0)+504|0;y=c[h>>2]|0;c[v+0>>2]=c[e+0>>2];c[v+4>>2]=c[e+4>>2];nn(b,0,v,y)}on(c[r>>2]|0,13);a[(c[k>>2]|0)+250>>0]=a[p>>0]|0;if(a[(c[k>>2]|0)+64>>0]|0)c[(c[h>>2]|0)+12>>2]=7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>>2]|0)}while(1){if(!(c[(c[h>>2]|0)+524>>2]|0))break;c[o>>2]=c[(c[h>>2]|0)+524>>2];c[(c[h>>2]|0)+524>>2]=c[(c[o>>2]|0)+72>>2];Vb(c[k>>2]|0,c[o>>2]|0)}if((c[m>>2]|0)>0?(c[(c[h>>2]|0)+12>>2]|0)==0:0)c[(c[h>>2]|0)+12>>2]=1;c[n>>2]=c[m>>2];y=c[n>>2]|0;i=g;return y|0}function rf(a){a=a|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=se(c[f>>2]|0,40,0)|0;if(!(c[e>>2]|0)){f=c[e>>2]|0;i=d;return f|0}b[(c[e>>2]|0)+8>>1]=1;c[(c[e>>2]|0)+32>>2]=c[f>>2];f=c[e>>2]|0;i=d;return f|0}function sf(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;m=i;i=i+32|0;j=m+12|0;l=m+8|0;k=m+4|0;h=m+16|0;n=m;c[j>>2]=b;c[l>>2]=d;c[k>>2]=e;a[h>>0]=f;c[n>>2]=g;if(!(c[j>>2]|0)){i=m;return}Vd(c[j>>2]|0,c[k>>2]|0,c[l>>2]|0,a[h>>0]|0,c[n>>2]|0)|0;i=m;return}function tf(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}Bd(c[d>>2]|0);Xb(c[(c[d>>2]|0)+32>>2]|0,c[d>>2]|0);i=b;return}function uf(){return 8}function vf(){return 1504}function wf(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0;f=i;i=i+16|0;e=f+12|0;d=f+8|0;a=f+4|0;b=f;if(!(c[9669]|0))Cf();h=136|0;g=h+40|0;do{c[h>>2]=0;h=h+4|0}while((h|0)<(g|0));if(c[9661]|0)c[34]=8;if(((c[9708]|0)!=0?(c[9709]|0)>=100:0)?(c[9710]|0)>0:0){c[a>>2]=c[9709]&-8;c[9709]=c[a>>2];c[b>>2]=c[9708];c[d>>2]=c[9710];c[41]=c[b>>2];c[42]=c[d>>2];c[e>>2]=0;while(1){if((c[e>>2]|0)>=((c[d>>2]|0)-1|0))break;c[c[b>>2]>>2]=(c[b>>2]|0)+(c[a>>2]|0);c[b>>2]=c[c[b>>2]>>2];c[e>>2]=(c[e>>2]|0)+1}c[c[b>>2]>>2]=0;c[40]=(c[b>>2]|0)+4}else{c[40]=0;c[9708]=0;c[9709]=0;c[9710]=0}if(((c[9711]|0)!=0?(c[9712]|0)>=512:0)?(c[9713]|0)>=1:0){g=c[9674]|0;h=c[9676]|0;h=ub[g&31](h)|0;i=f;return h|0}c[9711]=0;c[9712]=0;c[9713]=0;g=c[9674]|0;h=c[9676]|0;h=ub[g&31](h)|0;i=f;return h|0}function xf(){var a=0,b=0,d=0,e=0;a=i;i=i+16|0;b=a+8|0;d=a+4|0;e=a;c[d>>2]=1576;c[e>>2]=6232;c[b>>2]=0;while(1){if((c[b>>2]|0)>=57)break;xk(c[d>>2]|0,(c[e>>2]|0)+((c[b>>2]|0)*36|0)|0);c[b>>2]=(c[b>>2]|0)+1}lm();mm();i=a;return}function yf(){var a=0,b=0;a=i;if(!(c[9688]|0))Df();b=ub[c[38640+112>>2]&31](c[9687]|0)|0;i=a;return b|0}function zf(){var a=0,b=0,d=0;a=i;i=i+16|0;b=a+4|0;d=a;c[d>>2]=fc(10)|0;if(!(c[d>>2]|0)){c[b>>2]=7;d=c[b>>2]|0;i=a;return d|0}else{hc(c[d>>2]|0);c[b>>2]=yc()|0;d=c[b>>2]|0;i=a;return d|0}return 0}function Af(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;g=e+12|0;j=e+8|0;f=e+4|0;h=e;c[g>>2]=a;c[j>>2]=b;c[f>>2]=d;if(!(c[791]|0)){i=e;return}c[j>>2]=c[j>>2]&-8;c[792]=c[j>>2];a=c[f>>2]|0;c[799]=a;c[793]=a;if((c[f>>2]|0)>90)d=10;else d=((c[f>>2]|0)/10|0)+1|0;c[794]=d;c[795]=c[g>>2];c[798]=0;c[800]=0;while(1){a=c[f>>2]|0;c[f>>2]=a+ -1;d=c[g>>2]|0;if(!a)break;c[h>>2]=d;c[c[h>>2]>>2]=c[798];c[798]=c[h>>2];c[g>>2]=(c[g>>2]|0)+(c[j>>2]|0)}c[796]=d;i=e;return}function Bf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+48|0;d=f+44|0;k=f+40|0;h=f+24|0;e=f+16|0;j=f+8|0;g=f;c[k>>2]=a;c[e>>2]=0;if(c[9716]|0){c[d>>2]=Qb(125290)|0;a=c[d>>2]|0;i=f;return a|0}c[h>>2]=b;do switch(c[k>>2]|0){case 9:{k=c[h>>2]|0;a=c[k>>2]|0;c[h>>2]=k+4;c[9660]=a;break};case 5:{if(!(c[9669]|0))Cf();k=c[h>>2]|0;a=c[k>>2]|0;c[h>>2]=k+4;c[a+0>>2]=c[9669];c[a+4>>2]=c[9670];c[a+8>>2]=c[9671];c[a+12>>2]=c[9672];c[a+16>>2]=c[9673];c[a+20>>2]=c[9674];c[a+24>>2]=c[9675];c[a+28>>2]=c[9676];break};case 19:{if(!(c[9688]|0))Df();g=c[h>>2]|0;j=c[g>>2]|0;c[h>>2]=g+4;j=j+0|0;h=38744|0;g=j+52|0;do{c[j>>2]=c[h>>2];j=j+4|0;h=h+4|0}while((j|0)<(g|0));break};case 16:{a=c[h>>2]|0;k=c[a>>2]|0;c[h>>2]=a+4;c[9723]=k;k=c[h>>2]|0;a=c[k>>2]|0;c[h>>2]=k+4;c[9724]=a;break};case 17:{k=c[h>>2]|0;a=c[k>>2]|0;c[h>>2]=k+4;c[9663]=a;break};case 22:{a=c[h>>2]|0;k=a;l=c[k>>2]|0;k=c[k+4>>2]|0;c[h>>2]=a+8;a=j;c[a>>2]=l;c[a+4>>2]=k;a=c[h>>2]|0;k=a;l=c[k>>2]|0;k=c[k+4>>2]|0;c[h>>2]=a+8;a=g;c[a>>2]=l;c[a+4>>2]=k;a=g;b=c[a+4>>2]|0;a=(c[g+4>>2]|0)<0|((b|0)>0|(b|0)==0&(c[a>>2]|0)>>>0>0);b=g;c[b>>2]=a?0:l;c[b+4>>2]=a?0:k;b=g;k=c[b+4>>2]|0;a=38824|0;c[a>>2]=c[b>>2];c[a+4>>2]=k;if((c[j+4>>2]|0)<0){l=j;c[l>>2]=0;c[l+4>>2]=0}a=j;b=c[a+4>>2]|0;l=g;k=c[l+4>>2]|0;if((b|0)>(k|0)|((b|0)==(k|0)?(c[a>>2]|0)>>>0>(c[l>>2]|0)>>>0:0)){k=g;a=c[k+4>>2]|0;l=j;c[l>>2]=c[k>>2];c[l+4>>2]=a}k=j;a=c[k+4>>2]|0;l=38816|0;c[l>>2]=c[k>>2];c[l+4>>2]=a;break};case 13:{l=c[h>>2]|0;a=c[l>>2]|0;c[h>>2]=l+4;c[9667]=a;a=c[h>>2]|0;l=c[a>>2]|0;c[h>>2]=a+4;c[9668]=l;break};case 7:{a=c[h>>2]|0;l=c[a>>2]|0;c[h>>2]=a+4;c[9711]=l;l=c[h>>2]|0;a=c[l>>2]|0;c[h>>2]=l+4;c[9712]=a;a=c[h>>2]|0;l=c[a>>2]|0;c[h>>2]=a+4;c[9713]=l;break};case 20:{a=c[h>>2]|0;l=c[a>>2]|0;c[h>>2]=a+4;c[9664]=l;break};case 15:{c[e>>2]=1;break};case 4:{a=c[h>>2]|0;l=c[a>>2]|0;c[h>>2]=a+4;c[9669]=c[l+0>>2];c[9670]=c[l+4>>2];c[9671]=c[l+8>>2];c[9672]=c[l+12>>2];c[9673]=c[l+16>>2];c[9674]=c[l+20>>2];c[9675]=c[l+24>>2];c[9676]=c[l+28>>2];break};case 6:{a=c[h>>2]|0;l=c[a>>2]|0;c[h>>2]=a+4;c[9708]=l;l=c[h>>2]|0;a=c[l>>2]|0;c[h>>2]=l+4;c[9709]=a;a=c[h>>2]|0;l=c[a>>2]|0;c[h>>2]=a+4;c[9710]=l;break};case 18:{j=c[h>>2]|0;g=c[j>>2]|0;c[h>>2]=j+4;j=38744|0;h=g+0|0;g=j+52|0;do{c[j>>2]=c[h>>2];j=j+4|0;h=h+4|0}while((j|0)<(g|0));break};case 14:break;default:c[e>>2]=1}while(0);c[d>>2]=c[e>>2];l=c[d>>2]|0;i=f;return l|0}function Cf(){var a=0,b=0;a=i;i=i+16|0;b=a;c[b>>2]=6120;Bf(4,b)|0;i=a;return}function Df(){var a=0,b=0;a=i;i=i+16|0;b=a;c[b>>2]=6064;Bf(18,b)|0;i=a;return}function Ef(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;f=b+12|0;g=b+8|0;d=b+4|0;e=b;c[f>>2]=a;Rb(c[f>>2]|0);c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[(c[f>>2]|0)+20>>2]|0))break;c[d>>2]=c[(c[(c[f>>2]|0)+16>>2]|0)+(c[g>>2]<<4)+4>>2];if(c[d>>2]|0){c[e>>2]=Sb(c[d>>2]|0)|0;Ff(c[e>>2]|0)}c[g>>2]=(c[g>>2]|0)+1}i=b;return 0}function Ff(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;Zk(c[(c[d>>2]|0)+204>>2]|0);i=b;return}function Gf(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;n=i;i=i+32|0;j=n+28|0;o=n+24|0;q=n+20|0;p=n+16|0;m=n+12|0;k=n+8|0;h=n+4|0;l=n;c[o>>2]=d;c[q>>2]=e;c[p>>2]=f;c[m>>2]=g;if(c[(c[o>>2]|0)+252>>2]|0){c[j>>2]=5;d=c[j>>2]|0;i=n;return d|0}if(a[(c[o>>2]|0)+251>>0]|0)hc(c[(c[o>>2]|0)+276>>2]|0);d=c[p>>2]&-8;c[p>>2]=d;c[p>>2]=(c[p>>2]|0)<=4?0:d;if((c[m>>2]|0)<0)c[m>>2]=0;do if(!((c[p>>2]|0)==0|(c[m>>2]|0)==0)){if(c[q>>2]|0){c[k>>2]=c[q>>2];break}kh();d=$(c[p>>2]|0,c[m>>2]|0)|0;c[k>>2]=gc(d,((d|0)<0)<<31>>31)|0;lh();if(c[k>>2]|0){d=Tb(c[k>>2]|0)|0;c[m>>2]=(d|0)/(c[p>>2]|0)|0}}else{c[p>>2]=0;c[k>>2]=0}while(0);c[(c[o>>2]|0)+276>>2]=c[k>>2];c[(c[o>>2]|0)+272>>2]=0;b[(c[o>>2]|0)+248>>1]=c[p>>2];if(c[k>>2]|0){c[l>>2]=c[k>>2];c[h>>2]=(c[m>>2]|0)-1;while(1){if((c[h>>2]|0)<0)break;c[c[l>>2]>>2]=c[(c[o>>2]|0)+272>>2];c[(c[o>>2]|0)+272>>2]=c[l>>2];c[l>>2]=(c[l>>2]|0)+(c[p>>2]|0);c[h>>2]=(c[h>>2]|0)+ -1}c[(c[o>>2]|0)+280>>2]=c[l>>2];a[(c[o>>2]|0)+250>>0]=1;a[(c[o>>2]|0)+251>>0]=(c[q>>2]|0)==0?1:0}else{c[(c[o>>2]|0)+276>>2]=c[o>>2];c[(c[o>>2]|0)+280>>2]=c[o>>2];a[(c[o>>2]|0)+250>>0]=0;a[(c[o>>2]|0)+251>>0]=0}c[j>>2]=0;d=c[j>>2]|0;i=n;return d|0}function Hf(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=(c[d>>2]|0)+32|0;D=c[a+4>>2]|0;i=b;return c[a>>2]|0}function If(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[b>>2]|0)+80>>2]|0}function Jf(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[b>>2]|0)+84>>2]|0}function Kf(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=Lf(c[d>>2]|0,0)|0;i=b;return a|0}function Lf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;g=d;e=d+12|0;f=d+8|0;h=d+4|0;c[f>>2]=a;c[h>>2]=b;if(!(c[f>>2]|0)){c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}if(!($f(c[f>>2]|0)|0)){c[e>>2]=Qb(125804)|0;a=c[e>>2]|0;i=d;return a|0}Xk(c[f>>2]|0);Uk(c[f>>2]|0)|0;if((c[h>>2]|0)==0?(Hk(c[f>>2]|0)|0)!=0:0){Lc(c[f>>2]|0,5,5992,g);c[e>>2]=5;a=c[e>>2]|0;i=d;return a|0}c[(c[f>>2]|0)+76>>2]=1691352191;rd(c[f>>2]|0);c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}function Mf(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=Lf(c[d>>2]|0,1)|0;i=b;return a|0}function Nf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;h=e+4|0;g=e;c[f>>2]=a;c[h>>2]=b;c[g>>2]=d;c[(c[f>>2]|0)+444>>2]=c[h>>2];c[(c[f>>2]|0)+448>>2]=c[g>>2];c[(c[f>>2]|0)+452>>2]=0;c[(c[f>>2]|0)+492>>2]=0;i=e;return 0}function Of(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=c[e>>2]|0;if((c[f>>2]|0)>0){Nf(b,34,c[e>>2]|0)|0;c[(c[e>>2]|0)+492>>2]=c[f>>2];i=d;return 0}else{Nf(b,0,0)|0;i=d;return 0}return 0}function Pf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;i=i+32|0;e=d+16|0;j=d+12|0;h=d+8|0;f=d+4|0;g=d;c[j>>2]=a;c[h>>2]=b;c[f>>2]=c[j>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,c[A>>2]|0,c[B>>2]|0)|0;if(!(c[D>>2]|0)){c[u>>2]=3;break}c[z>>2]=c[D>>2];d=c[z>>2]|0;i=v;return d|0}}else c[u>>2]=(a[1136]|0)==0?3:2;while(0);c[o>>2]=Sf(c[q>>2]|0,c[r>>2]|0,c[s>>2]|0,c[t>>2]|0,c[u>>2]&255,0)|0;do if(((c[o>>2]|0)!=0?(e[(c[o>>2]|0)+2>>1]&3|0)==(c[u>>2]|0):0)?(b[c[o>>2]>>1]|0)==(c[t>>2]|0):0){D=c[q>>2]|0;if(!(c[(c[q>>2]|0)+148>>2]|0)){gf(D);break}Lc(D,5,5048,C);c[z>>2]=5;d=c[z>>2]|0;i=v;return d|0}while(0);c[o>>2]=Sf(c[q>>2]|0,c[r>>2]|0,c[s>>2]|0,c[t>>2]|0,c[u>>2]&255,1)|0;if(!(c[o>>2]|0)){c[z>>2]=7;d=c[z>>2]|0;i=v;return d|0}Gk(c[q>>2]|0,c[o>>2]|0);if(c[B>>2]|0){d=c[B>>2]|0;c[d>>2]=(c[d>>2]|0)+1}c[(c[o>>2]|0)+32>>2]=c[B>>2];b[(c[o>>2]|0)+2>>1]=e[(c[o>>2]|0)+2>>1]&3|c[w>>2];c[(c[o>>2]|0)+12>>2]=c[y>>2];c[(c[o>>2]|0)+16>>2]=c[p>>2];c[(c[o>>2]|0)+20>>2]=c[A>>2];c[(c[o>>2]|0)+4>>2]=c[x>>2];b[c[o>>2]>>1]=c[t>>2];c[z>>2]=0;d=c[z>>2]|0;i=v;return d|0}}while(0);c[z>>2]=Qb(126362)|0;d=c[z>>2]|0;i=v;return d|0}function Rf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;i=i+32|0;g=f+16|0;j=f+12|0;h=f+8|0;k=f+4|0;e=f;c[g>>2]=a;c[j>>2]=b;c[h>>2]=d;c[k>>2]=Mb(c[j>>2]|0)|0;c[e>>2]=0;if(!(Sf(c[g>>2]|0,c[j>>2]|0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&(c[s>>2]|0)<6?(e=se(c[q>>2]|0,37+(c[p>>2]|0)|0,0)|0,c[u>>2]=e,(e|0)!=0):0){c[(c[u>>2]|0)+24>>2]=(c[u>>2]|0)+36;b[c[u>>2]>>1]=c[m>>2];b[(c[u>>2]|0)+2>>1]=d[n>>0]|0;dF(c[(c[u>>2]|0)+24>>2]|0,c[o>>2]|0,c[p>>2]|0)|0;a[(c[(c[u>>2]|0)+24>>2]|0)+(c[p>>2]|0)>>0]=0;xk((c[q>>2]|0)+336|0,c[u>>2]|0)}do if(c[u>>2]|0){if(((c[(c[u>>2]|0)+16>>2]|0)==0?(c[(c[u>>2]|0)+12>>2]|0)==0:0)?(d[r>>0]|0)==0:0)break;c[x>>2]=c[u>>2];e=c[x>>2]|0;i=y;return e|0}while(0);c[x>>2]=0;e=c[x>>2]|0;i=y;return e|0}function Tf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+32|0;h=e;g=e+20|0;j=e+8|0;f=e+4|0;c[g>>2]=a;c[e+16>>2]=b;c[e+12>>2]=d;c[j>>2]=c[(c[(c[g>>2]|0)+4>>2]|0)+24>>2];c[h>>2]=c[j>>2];c[f>>2]=qc(4928,h)|0;Ud(c[g>>2]|0,c[f>>2]|0,-1);hc(c[f>>2]|0);i=e;return}function Uf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;b=c[f>>2]|0;if((c[e>>2]|0)>0){Vf(b,5,c[e>>2]|0)|0;i=d;return 0}else{Vf(b,0,0)|0;i=d;return 0}return 0}function Vf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;i=i+16|0;g=f+12|0;j=f+8|0;h=f+4|0;e=f;c[g>>2]=a;c[j>>2]=b;c[h>>2]=d;c[e>>2]=c[(c[g>>2]|0)+216>>2];c[(c[g>>2]|0)+212>>2]=c[j>>2];c[(c[g>>2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2]|0)){a=c[e>>2]|0;i=d;return a|0}c[h>>2]=Mb(c[g>>2]|0)|0;c[e>>2]=(c[(c[j>>2]|0)+20>>2]|0)-1;c[f>>2]=(c[(c[j>>2]|0)+16>>2]|0)+(c[e>>2]<<4);while(1){if((c[e>>2]|0)<0){b=7;break}a=c[h>>2]|0;if((a|0)==(Mb(c[c[f>>2]>>2]|0)|0)?0==(xc(c[c[f>>2]>>2]|0,c[g>>2]|0)|0):0){b=7;break}c[e>>2]=(c[e>>2]|0)+ -1;c[f>>2]=(c[f>>2]|0)+ -16}if((b|0)==7){a=c[e>>2]|0;i=d;return a|0}return 0}function Zf(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,j=0,k=0,l=0,m=0,n=0,o=0,p=0;n=i;i=i+32|0;k=n+28|0;p=n+24|0;m=n+20|0;g=n+16|0;o=n+12|0;h=n+8|0;l=n+4|0;j=n;c[k>>2]=a;c[p>>2]=b;c[m>>2]=d;c[g>>2]=e;c[o>>2]=f;c[h>>2]=0;c[j>>2]=0;c[l>>2]=0;while(1){if(!((c[h>>2]|0)==0?(c[l>>2]|0)<(c[(c[k>>2]|0)+20>>2]|0):0))break;if(((c[p>>2]|0)==10?1:(c[l>>2]|0)==(c[p>>2]|0))?(c[h>>2]=tk(c[(c[(c[k>>2]|0)+16>>2]|0)+(c[l>>2]<<4)+4>>2]|0,c[m>>2]|0,c[g>>2]|0,c[o>>2]|0)|0,c[g>>2]=0,c[o>>2]=0,(c[h>>2]|0)==5):0){c[j>>2]=1;c[h>>2]=0}c[l>>2]=(c[l>>2]|0)+1}i=n;return((c[h>>2]|0)==0&(c[j>>2]|0)!=0?5:c[h>>2]|0)|0}function _f(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=Xf(c[f>>2]|0,c[e>>2]|0,0,0,0)|0;i=d;return a|0}function $f(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+8|0;f=b+4|0;e=b;c[f>>2]=a;c[e>>2]=c[(c[f>>2]|0)+76>>2];if((c[e>>2]|0)!=1266094736&(c[e>>2]|0)!=-1607883113&(c[e>>2]|0)!=-264537850){sk(4872);c[d>>2]=0;f=c[d>>2]|0;i=b;return f|0}else{c[d>>2]=1;f=c[d>>2]|0;i=b;return f|0}return 0}function ag(a){a=a|0;var b=0,e=0,f=0;e=i;i=i+16|0;b=e+4|0;f=e;c[f>>2]=a;if((c[f>>2]|0)!=0?($f(c[f>>2]|0)|0)==0:0){c[b>>2]=Qb(126921)|0;f=c[b>>2]|0;i=e;return f|0}if((c[f>>2]|0)!=0?(d[(c[f>>2]|0)+64>>0]|0|0)==0:0){c[b>>2]=c[(c[f>>2]|0)+52>>2]&c[(c[f>>2]|0)+56>>2];f=c[b>>2]|0;i=e;return f|0}c[b>>2]=7;f=c[b>>2]|0;i=e;return f|0}function bg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;f=e+16|0;j=e+12|0;k=e+8|0;h=e+4|0;g=e;c[j>>2]=a;c[k>>2]=b;c[h>>2]=d;if((c[k>>2]|0)<0|(c[k>>2]|0)>=12){c[f>>2]=-1;a=c[f>>2]|0;i=e;return a|0}c[g>>2]=c[(c[j>>2]|0)+88+(c[k>>2]<<2)>>2];if((c[h>>2]|0)>=0){if((c[h>>2]|0)>(c[1696+(c[k>>2]<<2)>>2]|0))c[h>>2]=c[1696+(c[k>>2]<<2)>>2];c[(c[j>>2]|0)+88+(c[k>>2]<<2)>>2]=c[h>>2]}c[f>>2]=c[g>>2];a=c[f>>2]|0;i=e;return a|0}function cg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=dg(c[f>>2]|0,c[e>>2]|0,6,0)|0;i=d;return a|0}function dg(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;p=i;i=i+48|0;q=p;m=p+40|0;o=p+36|0;r=p+32|0;g=p+28|0;n=p+24|0;l=p+20|0;j=p+16|0;s=p+12|0;k=p+8|0;h=p+4|0;c[o>>2]=b;c[r>>2]=d;c[g>>2]=e;c[n>>2]=f;c[k>>2]=0;c[h>>2]=0;c[c[r>>2]>>2]=0;c[j>>2]=Zb()|0;if(c[j>>2]|0){c[m>>2]=c[j>>2];b=c[m>>2]|0;i=p;return b|0}if(!(1<<(c[g>>2]&7)&70)){c[m>>2]=Qb(127429)|0;b=c[m>>2]|0;i=p;return b|0}do if(c[9661]|0){if(c[g>>2]&32768){c[s>>2]=0;break}if(c[g>>2]&65536){c[s>>2]=1;break}else{c[s>>2]=c[9662];break}}else c[s>>2]=0;while(0);if(!(c[g>>2]&262144)){if(c[9715]|0)c[g>>2]=c[g>>2]|131072}else c[g>>2]=c[g>>2]&-131073;c[g>>2]=c[g>>2]&-655129;c[l>>2]=Mc(528,0)|0;do if(c[l>>2]|0){if((c[s>>2]|0)!=0?(c[(c[l>>2]|0)+12>>2]=8,(c[(c[l>>2]|0)+12>>2]|0)==0):0){hc(c[l>>2]|0);c[l>>2]=0;break}c[(c[l>>2]|0)+56>>2]=255;c[(c[l>>2]|0)+20>>2]=2;c[(c[l>>2]|0)+76>>2]=-264537850;c[(c[l>>2]|0)+16>>2]=(c[l>>2]|0)+456;e=(c[l>>2]|0)+88|0;s=1696;f=e+48|0;do{c[e>>2]=c[s>>2];e=e+4|0;s=s+4|0}while((e|0)<(f|0));c[(c[l>>2]|0)+132>>2]=0;a[(c[l>>2]|0)+62>>0]=1;a[(c[l>>2]|0)+66>>0]=-1;e=38816;d=c[e+4>>2]|0;b=(c[l>>2]|0)+40|0;c[b>>2]=c[e>>2];c[b+4>>2]=d;c[(c[l>>2]|0)+72>>2]=0;c[(c[l>>2]|0)+136>>2]=2147483647;b=(c[l>>2]|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>>2]|0);c[j>>2]=ag(c[l>>2]|0)|0;if((c[j>>2]|0)==0?(uh(c[l>>2]|0),c[j>>2]=ag(c[l>>2]|0)|0,(c[j>>2]|0)!=0):0)break;if(c[j>>2]|0)Nc(c[l>>2]|0,c[j>>2]|0);Gf(c[l>>2]|0,0,c[9667]|0,c[9668]|0)|0;Uf(c[l>>2]|0,1e3)|0}}}while(0);hc(c[k>>2]|0);c[j>>2]=ag(c[l>>2]|0)|0;if((c[j>>2]|0)!=7){if(c[j>>2]|0)c[(c[l>>2]|0)+76>>2]=1266094736}else{Kf(c[l>>2]|0)|0;c[l>>2]=0}c[c[r>>2]>>2]=c[l>>2];c[m>>2]=wd(0,c[j>>2]|0)|0;b=c[m>>2]|0;i=p;return b|0}function eg(b,e,f,g,h,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;r=i;i=i+64|0;m=r;t=r+44|0;n=r+40|0;p=r+36|0;x=r+48|0;v=r+32|0;u=r+28|0;w=r+24|0;q=r+20|0;o=r+16|0;k=r+12|0;s=r+8|0;l=r+4|0;c[n>>2]=b;c[p>>2]=e;a[x>>0]=f;c[v>>2]=g;c[u>>2]=h;c[w>>2]=j;c[o>>2]=d[x>>0];if((c[o>>2]|0)==4|(c[o>>2]|0)==8)c[o>>2]=(a[1136]|0)==0?3:2;if((c[o>>2]|0)<1|(c[o>>2]|0)>3){c[t>>2]=Qb(127001)|0;b=c[t>>2]|0;i=r;return b|0}c[q>>2]=$g(c[n>>2]|0,c[o>>2]&255,c[p>>2]|0,0)|0;a:do if((c[q>>2]|0)!=0?(c[(c[q>>2]|0)+12>>2]|0)!=0:0){j=c[n>>2]|0;if(c[(c[n>>2]|0)+148>>2]|0){Lc(j,5,3248,m);c[t>>2]=5;b=c[t>>2]|0;i=r;return b|0}gf(j);ah(c[n>>2]|0);if((d[(c[q>>2]|0)+4>>0]&-9|0)==(c[o>>2]|0)){c[k>>2]=bh((c[n>>2]|0)+428|0,c[p>>2]|0)|0;c[s>>2]=0;while(1){if((c[s>>2]|0)>=3)break a;c[l>>2]=(c[k>>2]|0)+((c[s>>2]|0)*20|0);if((d[(c[l>>2]|0)+4>>0]|0)==(d[(c[q>>2]|0)+4>>0]|0)){if(c[(c[l>>2]|0)+16>>2]|0)rb[c[(c[l>>2]|0)+16>>2]&31](c[(c[l>>2]|0)+8>>2]|0);c[(c[l>>2]|0)+12>>2]=0}c[s>>2]=(c[s>>2]|0)+1}}}while(0);c[q>>2]=$g(c[n>>2]|0,c[o>>2]&255,c[p>>2]|0,1)|0;if(!(c[q>>2]|0)){c[t>>2]=7;b=c[t>>2]|0;i=r;return b|0}else{c[(c[q>>2]|0)+12>>2]=c[u>>2];c[(c[q>>2]|0)+8>>2]=c[v>>2];c[(c[q>>2]|0)+16>>2]=c[w>>2];a[(c[q>>2]|0)+4>>0]=c[o>>2]|d[x>>0]&8;Nc(c[n>>2]|0,0);c[t>>2]=0;b=c[t>>2]|0;i=r;return b|0}return 0}function fg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=zb[c[(c[f>>2]|0)+60>>2]&63](c[f>>2]|0,c[e>>2]|0)|0;i=d;return a|0}function gg(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,m=0,n=0,o=0;k=i;i=i+32|0;o=k+28|0;n=k+24|0;j=k+20|0;g=k+16|0;f=k+12|0;l=k+8|0;m=k+4|0;h=k;c[o>>2]=a;c[n>>2]=b;c[j>>2]=d;c[g>>2]=e;c[f>>2]=1;c[l>>2]=hg(c[o>>2]|0,c[n>>2]|0)|0;if(!(c[l>>2]|0)){o=c[f>>2]|0;i=k;return o|0}Pc(c[l>>2]|0);c[m>>2]=Sb(c[l>>2]|0)|0;c[h>>2]=ed(c[m>>2]|0)|0;l=c[h>>2]|0;if((c[j>>2]|0)==7){c[c[g>>2]>>2]=l;c[f>>2]=0;o=c[f>>2]|0;i=k;return o|0}if(c[l>>2]|0){c[f>>2]=ig(c[h>>2]|0,c[j>>2]|0,c[g>>2]|0)|0;o=c[f>>2]|0;i=k;return o|0}else{c[f>>2]=12;o=c[f>>2]|0;i=k;return o|0}return 0}function hg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;i=i+16|0;d=e+12|0;f=e+8|0;h=e+4|0;g=e;c[f>>2]=a;c[h>>2]=b;c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[(c[f>>2]|0)+20>>2]|0)){b=8;break}if(c[(c[(c[f>>2]|0)+16>>2]|0)+(c[g>>2]<<4)+4>>2]|0){if(!(c[h>>2]|0)){b=6;break}if(!(xc(c[h>>2]|0,c[(c[(c[f>>2]|0)+16>>2]|0)+(c[g>>2]<<4)>>2]|0)|0)){b=6;break}}c[g>>2]=(c[g>>2]|0)+1}if((b|0)==6){c[d>>2]=c[(c[(c[f>>2]|0)+16>>2]|0)+(c[g>>2]<<4)+4>>2];a=c[d>>2]|0;i=e;return a|0}else if((b|0)==8){c[d>>2]=0;a=c[d>>2]|0;i=e;return a|0}return 0}function ig(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e+8|0;g=e+4|0;f=e;c[h>>2]=a;c[g>>2]=b;c[f>>2]=d;a=pb[c[(c[c[h>>2]>>2]|0)+40>>2]&31](c[h>>2]|0,c[g>>2]|0,c[f>>2]|0)|0;i=e;return a|0}function jg(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=c[9725];if(!(c[d>>2]|0)){e=0;i=b;return e|0}e=ub[c[d>>2]&31](c[e>>2]|0)|0;i=b;return e|0}function kg(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;m=i;i=i+32|0;j=m+24|0;p=m+20|0;o=m+16|0;h=m+12|0;n=m+8|0;k=m+4|0;l=m;c[p>>2]=a;c[o>>2]=d;c[h>>2]=f;c[n>>2]=g;c[k>>2]=0;c[l>>2]=c[(c[p>>2]|0)+4>>2];Pc(c[p>>2]|0);if((e[(c[l>>2]|0)+22>>1]|0)&2){c[j>>2]=8;p=c[j>>2]|0;i=m;return p|0}if((c[h>>2]|0)<0)c[h>>2]=(c[(c[l>>2]|0)+32>>2]|0)-(c[(c[l>>2]|0)+36>>2]|0);if((c[o>>2]|0)>=512&(c[o>>2]|0)<=65536?((c[o>>2]|0)-1&c[o>>2]|0)==0:0){c[(c[l>>2]|0)+32>>2]=c[o>>2];Dg(c[l>>2]|0)}c[k>>2]=Eg(c[c[l>>2]>>2]|0,(c[l>>2]|0)+32|0,c[h>>2]|0)|0;c[(c[l>>2]|0)+36>>2]=(c[(c[l>>2]|0)+32>>2]|0)-(c[h>>2]&65535);if(c[n>>2]|0){p=(c[l>>2]|0)+22|0;b[p>>1]=e[p>>1]|0|2}c[j>>2]=c[k>>2];p=c[j>>2]|0;i=m;return p|0}function lg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=Cg(c[f>>2]|0,c[e>>2]|0)|0;i=d;return a|0}function mg(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;Bg(8,c[e>>2]|0);if((c[42]|0)!=0?(c[9709]|0)>=(c[e>>2]|0):0){c[d>>2]=c[41];c[41]=c[c[41]>>2];c[42]=(c[42]|0)+ -1;ic(3,1);e=c[d>>2]|0;i=b;return e|0}e=c[e>>2]|0;c[d>>2]=gc(e,((e|0)<0)<<31>>31)|0;if(!((c[9660]|0)!=0&(c[d>>2]|0)!=0)){e=c[d>>2]|0;i=b;return e|0}ic(4,Tb(c[d>>2]|0)|0);e=c[d>>2]|0;i=b;return e|0}function ng(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}if((c[d>>2]|0)>>>0>=(c[9708]|0)>>>0?(c[d>>2]|0)>>>0<(c[40]|0)>>>0:0){c[e>>2]=c[d>>2];c[c[e>>2]>>2]=c[41];c[41]=c[e>>2];c[42]=(c[42]|0)+1;ic(3,-1);i=b;return}if(c[9660]|0){c[f>>2]=Tb(c[d>>2]|0)|0;ic(4,0-(c[f>>2]|0)|0);ic(0,0-(c[f>>2]|0)|0);ic(9,-1);rb[c[38640+40>>2]&31](c[d>>2]|0);i=b;return}else{rb[c[38640+40>>2]&31](c[d>>2]|0);i=b;return}}function og(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+12|0;g=e+8|0;h=e+4|0;j=e;c[g>>2]=b;c[h>>2]=d;if(!(c[g>>2]|0)){c[f>>2]=0;b=c[f>>2]|0;i=e;return b|0}b=(Mb(c[g>>2]|0)|0)+1|0;c[g>>2]=(c[g>>2]|0)+b;while(1){if(!(a[c[g>>2]>>0]|0)){g=8;break}c[j>>2]=UE(c[g>>2]|0,c[h>>2]|0)|0;d=(Mb(c[g>>2]|0)|0)+1|0;c[g>>2]=(c[g>>2]|0)+d;d=c[g>>2]|0;if(!(c[j>>2]|0)){g=6;break}b=(Mb(d)|0)+1|0;c[g>>2]=(c[g>>2]|0)+b}if((g|0)==6){c[f>>2]=d;b=c[f>>2]|0;i=e;return b|0}else if((g|0)==8){c[f>>2]=0;b=c[f>>2]|0;i=e;return b|0}return 0}function pg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;j=e+12|0;h=e+8|0;f=e+4|0;g=e;c[j>>2]=a;c[h>>2]=b;c[f>>2]=d;c[g>>2]=og(c[j>>2]|0,c[h>>2]|0)|0;c[f>>2]=(c[f>>2]|0)!=0&1;if(c[g>>2]|0){j=(qg(c[g>>2]|0,c[f>>2]&255)|0)&255;i=e;return j|0}else{j=c[f>>2]|0;i=e;return j|0}return 0}function qg(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;g=e;f=e+4|0;c[g>>2]=b;a[f>>0]=d;b=((yg(c[g>>2]|0,1,a[f>>0]|0)|0)&255|0)!=0&255;i=e;return b|0}function rg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;f=g+24|0;k=g+20|0;j=g+16|0;m=g;l=g+12|0;h=g+8|0;c[k>>2]=b;c[j>>2]=e;do if((a[c[k>>2]>>0]|0)==48){if((a[(c[k>>2]|0)+1>>0]|0)!=120?(a[(c[k>>2]|0)+1>>0]|0)!=88:0)break;if(d[1224+(d[(c[k>>2]|0)+2>>0]|0)>>0]&8){b=m;c[b>>2]=0;c[b+4>>2]=0;c[l>>2]=2;while(1){e=c[l>>2]|0;if((a[(c[k>>2]|0)+(c[l>>2]|0)>>0]|0)!=48)break;c[l>>2]=e+1}c[h>>2]=e;while(1){if(!(d[1224+(d[(c[k>>2]|0)+(c[h>>2]|0)>>0]|0)>>0]&8))break;b=m;b=lF(c[b>>2]|0,c[b+4>>2]|0,16,0)|0;e=D;e=bF(b|0,e|0,(vg(a[(c[k>>2]|0)+(c[h>>2]|0)>>0]|0)|0)&255|0,0)|0;b=m;c[b>>2]=e;c[b+4>>2]=D;c[h>>2]=(c[h>>2]|0)+1}b=c[j>>2]|0;c[b+0>>2]=c[m+0>>2];c[b+4>>2]=c[m+4>>2];if(!(a[(c[k>>2]|0)+(c[h>>2]|0)>>0]|0))h=((c[h>>2]|0)-(c[l>>2]|0)|0)<=16;else h=0;c[f>>2]=h?0:1;b=c[f>>2]|0;i=g;return b|0}}while(0);e=c[k>>2]|0;b=c[j>>2]|0;c[f>>2]=wg(e,b,Mb(c[k>>2]|0)|0,1)|0;b=c[f>>2]|0;i=g;return b|0}function sg(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=ug(c[c[(c[d>>2]|0)+4>>2]>>2]|0,1)|0;i=b;return a|0}function tg(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return((e[(c[(c[b>>2]|0)+4>>2]|0)+22>>1]|0)&1|0)!=0|0}function ug(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+4|0;g=e;c[f>>2]=a;c[g>>2]=b;if((c[g>>2]|0)!=0?(d[(c[f>>2]|0)+15>>0]|0|0)!=0:0){g=1216;i=e;return g|0}g=c[(c[f>>2]|0)+168>>2]|0;i=e;return g|0}function vg(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;c[b>>2]=(c[b>>2]|0)+((1&c[b>>2]>>6)*9|0);i=d;return c[b>>2]&15|0}function wg(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=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;q=i;i=i+64|0;p=q+48|0;k=q+44|0;n=q+40|0;v=q+36|0;w=q+52|0;s=q+32|0;u=q;r=q+28|0;l=q+24|0;t=q+20|0;o=q+16|0;h=q+12|0;m=q+8|0;c[k>>2]=b;c[n>>2]=e;c[v>>2]=f;a[w>>0]=g;b=u;c[b>>2]=0;c[b+4>>2]=0;c[r>>2]=0;c[t>>2]=0;c[o>>2]=0;c[m>>2]=(c[k>>2]|0)+(c[v>>2]|0);if((d[w>>0]|0)==1)c[s>>2]=1;else{c[s>>2]=2;c[l>>2]=3-(d[w>>0]|0);while(1){if((c[l>>2]|0)>=(c[v>>2]|0))break;if(a[(c[k>>2]|0)+(c[l>>2]|0)>>0]|0)break;c[l>>2]=(c[l>>2]|0)+2}c[o>>2]=(c[l>>2]|0)<(c[v>>2]|0)&1;c[m>>2]=(c[k>>2]|0)+(c[l>>2]|0)+(d[w>>0]|0)+ -3;c[k>>2]=(c[k>>2]|0)+(d[w>>0]&1)}while(1){if((c[k>>2]|0)>>>0>=(c[m>>2]|0)>>>0)break;if(!(d[1224+(d[c[k>>2]>>0]|0)>>0]&1))break;c[k>>2]=(c[k>>2]|0)+(c[s>>2]|0)}do if((c[k>>2]|0)>>>0<(c[m>>2]|0)>>>0){if((a[c[k>>2]>>0]|0)==45){c[r>>2]=1;c[k>>2]=(c[k>>2]|0)+(c[s>>2]|0);break}if((a[c[k>>2]>>0]|0)==43)c[k>>2]=(c[k>>2]|0)+(c[s>>2]|0)}while(0);c[h>>2]=c[k>>2];while(1){if((c[k>>2]|0)>>>0>=(c[m>>2]|0)>>>0)break;if((a[c[k>>2]>>0]|0)!=48)break;c[k>>2]=(c[k>>2]|0)+(c[s>>2]|0)}c[l>>2]=0;while(1){if(((c[k>>2]|0)+(c[l>>2]|0)|0)>>>0>=(c[m>>2]|0)>>>0)break;b=a[(c[k>>2]|0)+(c[l>>2]|0)>>0]|0;c[t>>2]=b;if(!((b|0)>=48&(c[t>>2]|0)<=57))break;b=u;b=lF(c[b>>2]|0,c[b+4>>2]|0,10,0)|0;e=c[t>>2]|0;e=bF(b|0,D|0,e|0,((e|0)<0)<<31>>31|0)|0;e=ZE(e|0,D|0,48,0)|0;b=u;c[b>>2]=e;c[b+4>>2]=D;c[l>>2]=(c[l>>2]|0)+(c[s>>2]|0)}b=u;e=c[b+4>>2]|0;v=(c[r>>2]|0)!=0;do if(!(e>>>0>2147483647|(e|0)==2147483647&(c[b>>2]|0)>>>0>4294967295)){w=c[u>>2]|0;u=c[u+4>>2]|0;if(v){e=ZE(0,0,w|0,u|0)|0;b=c[n>>2]|0;c[b>>2]=e;c[b+4>>2]=D;break}else{b=c[n>>2]|0;c[b>>2]=w;c[b+4>>2]=u;break}}else{b=c[n>>2]|0;c[b>>2]=v?0:-1;c[b+4>>2]=v?-2147483648:2147483647}while(0);if(!((c[t>>2]|0)!=0?((c[k>>2]|0)+(c[l>>2]|0)|0)>>>0<(c[m>>2]|0)>>>0:0))j=31;do if((j|0)==31){if((c[l>>2]|0)==0?(c[h>>2]|0)==(c[k>>2]|0):0)break;if(!((c[o>>2]|0)!=0?1:(c[l>>2]|0)>((c[s>>2]|0)*19|0))){if((c[l>>2]|0)<((c[s>>2]|0)*19|0)){c[p>>2]=0;b=c[p>>2]|0;i=q;return b|0}c[t>>2]=xg(c[k>>2]|0,c[s>>2]|0)|0;if((c[t>>2]|0)<0){c[p>>2]=0;b=c[p>>2]|0;i=q;return b|0}if((c[t>>2]|0)>0){c[p>>2]=1;b=c[p>>2]|0;i=q;return b|0}else{c[p>>2]=(c[r>>2]|0)!=0?0:2;b=c[p>>2]|0;i=q;return b|0}}}while(0);c[p>>2]=1;b=c[p>>2]|0;i=q;return b|0}function xg(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;i=i+32|0;g=f+16|0;h=f+12|0;e=f+8|0;j=f+4|0;k=f;c[g>>2]=b;c[h>>2]=d;c[e>>2]=0;c[k>>2]=1744;c[j>>2]=0;while(1){if(!((c[e>>2]|0)==0&(c[j>>2]|0)<18))break;b=$(c[j>>2]|0,c[h>>2]|0)|0;c[e>>2]=((a[(c[g>>2]|0)+b>>0]|0)-(a[(c[k>>2]|0)+(c[j>>2]|0)>>0]|0)|0)*10;c[j>>2]=(c[j>>2]|0)+1}if(c[e>>2]|0){b=c[e>>2]|0;i=f;return b|0}c[e>>2]=(a[(c[g>>2]|0)+((c[h>>2]|0)*18|0)>>0]|0)-56;b=c[e>>2]|0;i=f;return b|0}function yg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;k=i;i=i+32|0;g=k+17|0;m=k+12|0;n=k+8|0;h=k+16|0;j=k+4|0;l=k;c[m>>2]=b;c[n>>2]=e;a[h>>0]=f;f=c[m>>2]|0;if((d[1224+(d[c[m>>2]>>0]|0)>>0]|0)&4){a[g>>0]=zg(f)|0;b=a[g>>0]|0;i=k;return b|0}c[l>>2]=Mb(f)|0;c[j>>2]=0;while(1){if((c[j>>2]|0)>=(7-(c[n>>2]|0)|0)){l=9;break}if((d[1800+(c[j>>2]|0)>>0]|0|0)==(c[l>>2]|0)?(Lb(1768+(d[1792+(c[j>>2]|0)>>0]|0)|0,c[m>>2]|0,c[l>>2]|0)|0)==0:0){l=7;break}c[j>>2]=(c[j>>2]|0)+1}if((l|0)==7){a[g>>0]=a[1808+(c[j>>2]|0)>>0]|0;b=a[g>>0]|0;i=k;return b|0}else if((l|0)==9){a[g>>0]=a[h>>0]|0;b=a[g>>0]|0;i=k;return b|0}return 0}function zg(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;e=d+4|0;b=d;c[e>>2]=a;c[b>>2]=0;if(c[e>>2]|0)Ag(c[e>>2]|0,b)|0;i=d;return c[b>>2]|0}function Ag(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;i=i+48|0;j=g+32|0;k=g+28|0;h=g+24|0;m=g;f=g+20|0;o=g+16|0;n=g+12|0;l=g+8|0;c[k>>2]=b;c[h>>2]=e;b=m;c[b>>2]=0;c[b+4>>2]=0;c[n>>2]=0;do if((a[c[k>>2]>>0]|0)!=45){e=c[k>>2]|0;if((a[c[k>>2]>>0]|0)==43){c[k>>2]=e+1;break}if((a[e>>0]|0)==48){if((a[(c[k>>2]|0)+1>>0]|0)!=120?(a[(c[k>>2]|0)+1>>0]|0)!=88:0)break;if(d[1224+(d[(c[k>>2]|0)+2>>0]|0)>>0]&8){c[l>>2]=0;c[k>>2]=(c[k>>2]|0)+2;while(1){if((a[c[k>>2]>>0]|0)!=48)break;c[k>>2]=(c[k>>2]|0)+1}c[f>>2]=0;while(1){m=c[l>>2]|0;if(!((c[f>>2]|0)<8?(d[1224+(d[(c[k>>2]|0)+(c[f>>2]|0)>>0]|0)>>0]&8|0)!=0:0))break;c[l>>2]=(m<<4)+((vg(a[(c[k>>2]|0)+(c[f>>2]|0)>>0]|0)|0)&255);c[f>>2]=(c[f>>2]|0)+1}if((m&-2147483648|0)==0?(d[1224+(d[(c[k>>2]|0)+(c[f>>2]|0)>>0]|0)>>0]&8|0)==0:0){b=c[h>>2]|0;c[b+0>>2]=c[l+0>>2];c[j>>2]=1;b=c[j>>2]|0;i=g;return b|0}c[j>>2]=0;b=c[j>>2]|0;i=g;return b|0}}}else{c[n>>2]=1;c[k>>2]=(c[k>>2]|0)+1}while(0);c[f>>2]=0;while(1){if((c[f>>2]|0)>=11)break;b=(a[(c[k>>2]|0)+(c[f>>2]|0)>>0]|0)-48|0;c[o>>2]=b;if(!((b|0)>=0&(c[o>>2]|0)<=9))break;b=m;b=lF(c[b>>2]|0,c[b+4>>2]|0,10,0)|0;e=c[o>>2]|0;e=bF(b|0,D|0,e|0,((e|0)<0)<<31>>31|0)|0;b=m;c[b>>2]=e;c[b+4>>2]=D;c[f>>2]=(c[f>>2]|0)+1}if((c[f>>2]|0)>10){c[j>>2]=0;b=c[j>>2]|0;i=g;return b|0}e=m;b=c[n>>2]|0;b=ZE(c[e>>2]|0,c[e+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=D;if((e|0)>0|(e|0)==0&b>>>0>2147483647){c[j>>2]=0;b=c[j>>2]|0;i=g;return b|0}if(c[n>>2]|0){e=m;e=ZE(0,0,c[e>>2]|0,c[e+4>>2]|0)|0;b=m;c[b>>2]=e;c[b+4>>2]=D}c[c[h>>2]>>2]=c[m>>2];c[j>>2]=1;b=c[j>>2]|0;i=g;return b|0}function Bg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;c[48+(c[e>>2]<<2)>>2]=c[f>>2];if((c[48+(c[e>>2]<<2)>>2]|0)<=(c[88+(c[e>>2]<<2)>>2]|0)){i=d;return}c[88+(c[e>>2]<<2)>>2]=c[48+(c[e>>2]<<2)>>2];i=d;return}function Cg(a,b){a=a|0;b=b|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+32|0;g=f+16|0;j=f+12|0;k=f+8|0;l=f+4|0;h=f;c[j>>2]=a;c[k>>2]=b;if((c[k>>2]|0)<2){c[g>>2]=27;a=c[g>>2]|0;i=f;return a|0}c[l>>2]=((d[440+(d[c[j>>2]>>0]|0)>>0]|0)<<2^(d[440+(d[(c[j>>2]|0)+((c[k>>2]|0)-1)>>0]|0)>>0]|0)*3^c[k>>2]|0)%127|0;c[h>>2]=(d[2376+(c[l>>2]|0)>>0]|0)-1;while(1){if((c[h>>2]|0)<0){b=9;break}if((d[2632+(c[h>>2]|0)>>0]|0|0)==(c[k>>2]|0)?(Lb(1816+(e[2760+(c[h>>2]<<1)>>1]|0)|0,c[j>>2]|0,c[k>>2]|0)|0)==0:0){b=7;break}c[h>>2]=(d[2504+(c[h>>2]|0)>>0]|0)-1}if((b|0)==7){c[g>>2]=d[3008+(c[h>>2]|0)>>0];a=c[g>>2]|0;i=f;return a|0}else if((b|0)==9){c[g>>2]=27;a=c[g>>2]|0;i=f;return a|0}return 0}function Dg(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if(!(c[(c[d>>2]|0)+80>>2]|0)){i=b;return}a=(c[d>>2]|0)+80|0;c[a>>2]=(c[a>>2]|0)+ -4;Kg(c[(c[d>>2]|0)+80>>2]|0);c[(c[d>>2]|0)+80>>2]=0;i=b;return}function Eg(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=i;i=i+32|0;k=j+28|0;l=j+24|0;p=j+20|0;n=j+16|0;o=j+12|0;m=j+8|0;g=j;c[k>>2]=a;c[l>>2]=e;c[p>>2]=f;c[n>>2]=0;c[o>>2]=c[c[l>>2]>>2];if(!((d[(c[k>>2]|0)+15>>0]|0)!=0?(c[(c[k>>2]|0)+24>>2]|0)!=0:0))h=3;do if(((h|0)==3?(a=(Fg(c[(c[k>>2]|0)+204>>2]|0)|0)==0,a&(c[o>>2]|0)!=0):0)?(c[o>>2]|0)!=(c[(c[k>>2]|0)+152>>2]|0):0){c[m>>2]=0;a=g;c[a>>2]=0;c[a+4>>2]=0;if((d[(c[k>>2]|0)+16>>0]|0)>0?(c[c[(c[k>>2]|0)+60>>2]>>2]|0)!=0:0)c[n>>2]=Gg(c[(c[k>>2]|0)+60>>2]|0,g)|0;if((c[n>>2]|0)==0?(c[m>>2]=Hg(c[o>>2]|0)|0,(c[m>>2]|0)==0):0)c[n>>2]=7;if(!(c[n>>2]|0)){Ig(c[k>>2]|0);c[n>>2]=Jg(c[(c[k>>2]|0)+204>>2]|0,c[o>>2]|0)|0}if(!(c[n>>2]|0)){Kg(c[(c[k>>2]|0)+200>>2]|0);c[(c[k>>2]|0)+200>>2]=c[m>>2];a=g;a=bF(c[a>>2]|0,c[a+4>>2]|0,c[o>>2]|0,0)|0;a=ZE(a|0,D|0,1,0)|0;a=jF(a|0,D|0,c[o>>2]|0,0)|0;c[(c[k>>2]|0)+24>>2]=a;c[(c[k>>2]|0)+152>>2]=c[o>>2];break}else{Kg(c[m>>2]|0);break}}while(0);c[c[l>>2]>>2]=c[(c[k>>2]|0)+152>>2];if(c[n>>2]|0){a=c[n>>2]|0;i=j;return a|0}if((c[p>>2]|0)<0)c[p>>2]=b[(c[k>>2]|0)+142>>1];b[(c[k>>2]|0)+142>>1]=c[p>>2];Lg(c[k>>2]|0);a=c[n>>2]|0;i=j;return a|0}function Fg(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[b>>2]|0)+12>>2]|0}function Gg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=zb[c[(c[c[f>>2]>>2]|0)+24>>2]&63](c[f>>2]|0,c[e>>2]|0)|0;i=d;return a|0}function Hg(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=Ug(c[d>>2]|0)|0;i=b;return a|0}function Ig(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;Og(c[(c[d>>2]|0)+88>>2]|0);Pg(c[(c[d>>2]|0)+204>>2]|0);i=b;return}function Jg(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+16|0;f=e+12|0;h=e+8|0;j=e+4|0;g=e;c[h>>2]=a;c[j>>2]=b;if(c[(c[h>>2]|0)+20>>2]|0){c[g>>2]=pb[c[38640+120>>2]&31](c[j>>2]|0,(c[(c[h>>2]|0)+24>>2]|0)+40|0,d[(c[h>>2]|0)+28>>0]|0)|0;if(!(c[g>>2]|0)){c[f>>2]=7;a=c[f>>2]|0;i=e;return a|0}k=c[9691]|0;b=c[g>>2]|0;a=Ng(c[h>>2]|0)|0;sb[k&7](b,a);if(c[(c[h>>2]|0)+40>>2]|0)rb[c[38640+148>>2]&31](c[(c[h>>2]|0)+40>>2]|0);c[(c[h>>2]|0)+40>>2]=c[g>>2];c[(c[h>>2]|0)+44>>2]=0;c[(c[h>>2]|0)+20>>2]=c[j>>2]}c[f>>2]=0;k=c[f>>2]|0;i=e;return k|0}function Kg(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;Mg(c[d>>2]|0)|0;i=b;return}function Lg(a){a=a|0;var b=0;b=i;i=i+16|0;c[b>>2]=a;i=b;return}function Mg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;d=b+12|0;f=b+8|0;e=b+4|0;g=b;c[f>>2]=a;c[e>>2]=0;if(!(c[f>>2]|0)){c[d>>2]=0;g=c[d>>2]|0;i=b;return g|0}if((c[f>>2]|0)>>>0>=(c[795]|0)>>>0?(c[f>>2]|0)>>>0<(c[796]|0)>>>0:0){ic(1,-1);c[g>>2]=c[f>>2];c[c[g>>2]>>2]=c[798];c[798]=c[g>>2];c[799]=(c[799]|0)+1;c[800]=(c[799]|0)<(c[794]|0)&1}else{c[e>>2]=Tb(c[f>>2]|0)|0;ic(2,0-(c[e>>2]|0)|0);hc(c[f>>2]|0)}c[d>>2]=c[e>>2];g=c[d>>2]|0;i=b;return g|0}function Ng(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+4|0;e=b;c[e>>2]=a;a=c[(c[e>>2]|0)+16>>2]|0;if((c[(c[e>>2]|0)+16>>2]|0)>=0){c[d>>2]=a;a=c[d>>2]|0;i=b;return a|0}else{f=lF(-1024,-1,a|0,((a|0)<0)<<31>>31|0)|0;a=(c[(c[e>>2]|0)+20>>2]|0)+(c[(c[e>>2]|0)+24>>2]|0)|0;a=jF(f|0,D|0,a|0,((a|0)<0)<<31>>31|0)|0;c[d>>2]=a;a=c[d>>2]|0;i=b;return a|0}return 0}function Og(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=c[e>>2];while(1){if(!(c[d>>2]|0))break;c[(c[d>>2]|0)+16>>2]=1;c[d>>2]=c[(c[d>>2]|0)+44>>2]}i=b;return}function Pg(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;Qg(c[d>>2]|0,0);i=b;return}function Qg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;if(!(c[(c[e>>2]|0)+40>>2]|0)){i=d;return}c[g>>2]=c[c[e>>2]>>2];while(1){if(!(c[g>>2]|0))break;c[h>>2]=c[(c[g>>2]|0)+32>>2];if((c[(c[g>>2]|0)+20>>2]|0)>>>0>(c[f>>2]|0)>>>0)Rg(c[g>>2]|0);c[g>>2]=c[h>>2]}if((c[f>>2]|0)==0?(c[(c[e>>2]|0)+44>>2]|0)!=0:0){_E(c[(c[(c[e>>2]|0)+44>>2]|0)+4>>2]|0,0,c[(c[e>>2]|0)+20>>2]|0)|0;c[f>>2]=1}sb[c[38640+144>>2]&7](c[(c[e>>2]|0)+40>>2]|0,(c[f>>2]|0)+1|0);i=d;return}function Rg(a){a=a|0;var d=0,f=0;d=i;i=i+16|0;f=d;c[f>>2]=a;if(!(e[(c[f>>2]|0)+24>>1]&2)){i=d;return}Sg(c[f>>2]|0,1);a=(c[f>>2]|0)+24|0;b[a>>1]=e[a>>1]&-7;if(b[(c[f>>2]|0)+26>>1]|0){i=d;return}Tg(c[f>>2]|0);i=d;return}function Sg(b,f){b=b|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;j=i;i=i+16|0;g=j+8|0;k=j+12|0;h=j+4|0;l=j;c[g>>2]=b;a[k>>0]=f;c[h>>2]=c[(c[g>>2]|0)+28>>2];if(d[k>>0]&1){if((c[(c[h>>2]|0)+8>>2]|0)==(c[g>>2]|0)){c[l>>2]=c[(c[g>>2]|0)+36>>2];while(1){if(c[l>>2]|0)b=(e[(c[l>>2]|0)+24>>1]&4|0)!=0;else b=0;f=c[l>>2]|0;if(!b)break;c[l>>2]=c[f+36>>2]}c[(c[h>>2]|0)+8>>2]=f}l=c[(c[g>>2]|0)+36>>2]|0;if(c[(c[g>>2]|0)+32>>2]|0)c[(c[(c[g>>2]|0)+32>>2]|0)+36>>2]=l;else c[(c[h>>2]|0)+4>>2]=l;l=c[(c[g>>2]|0)+32>>2]|0;if(!(c[(c[g>>2]|0)+36>>2]|0)){c[c[h>>2]>>2]=l;if((c[c[h>>2]>>2]|0)==0?(d[(c[h>>2]|0)+28>>0]|0)!=0:0)a[(c[h>>2]|0)+29>>0]=2}else c[(c[(c[g>>2]|0)+36>>2]|0)+32>>2]=l;c[(c[g>>2]|0)+32>>2]=0;c[(c[g>>2]|0)+36>>2]=0}if(!(d[k>>0]&2)){i=j;return}c[(c[g>>2]|0)+32>>2]=c[c[h>>2]>>2];k=c[g>>2]|0;if(!(c[(c[g>>2]|0)+32>>2]|0)){c[(c[h>>2]|0)+4>>2]=k;if(a[(c[h>>2]|0)+28>>0]|0)a[(c[h>>2]|0)+29>>0]=1}else c[(c[(c[g>>2]|0)+32>>2]|0)+36>>2]=k;c[c[h>>2]>>2]=c[g>>2];if(c[(c[h>>2]|0)+8>>2]|0){i=j;return}if(e[(c[g>>2]|0)+24>>1]&4){i=j;return}c[(c[h>>2]|0)+8>>2]=c[g>>2];i=j;return}function Tg(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;if(!(a[(c[(c[e>>2]|0)+28>>2]|0)+28>>0]|0)){i=d;return}if((c[(c[e>>2]|0)+20>>2]|0)==1)c[(c[(c[e>>2]|0)+28>>2]|0)+44>>2]=0;vb[c[38640+136>>2]&63](c[(c[(c[e>>2]|0)+28>>2]|0)+40>>2]|0,c[c[e>>2]>>2]|0,0);i=d;return}function Ug(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;f=d+8|0;b=d+4|0;e=d;c[f>>2]=a;c[b>>2]=0;Bg(7,c[f>>2]|0);if((c[f>>2]|0)<=(c[792]|0)?(c[b>>2]=c[798],(c[b>>2]|0)!=0):0){c[798]=c[c[798]>>2];c[799]=(c[799]|0)+ -1;c[800]=(c[799]|0)<(c[794]|0)&1;ic(1,1)}if(c[b>>2]|0){f=c[b>>2]|0;i=d;return f|0}f=c[f>>2]|0;c[b>>2]=gc(f,((f|0)<0)<<31>>31)|0;if(!(c[b>>2]|0)){f=c[b>>2]|0;i=d;return f|0}c[e>>2]=Tb(c[b>>2]|0)|0;ic(2,c[e>>2]|0);f=c[b>>2]|0;i=d;return f|0}function Vg(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=Mc(512,0)|0;if(!(c[d>>2]|0)){e=c[d>>2]|0;i=b;return e|0}c[c[d>>2]>>2]=c[e>>2];e=c[d>>2]|0;i=b;return e|0}function Wg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;m=i;i=i+32|0;h=m+28|0;j=m+24|0;k=m+20|0;o=m+16|0;p=m+12|0;n=m+8|0;f=m+4|0;l=m;c[j>>2]=b;c[k>>2]=e;if(!(c[j>>2]|0)){c[h>>2]=0;b=c[h>>2]|0;i=m;return b|0}c[k>>2]=(c[k>>2]|0)+ -1;while(1){if((c[c[j>>2]>>2]|0)>>>0<=4e3)break;if(!(c[(c[j>>2]|0)+8>>2]|0))break;c[p>>2]=((c[k>>2]|0)>>>0)/((c[(c[j>>2]|0)+8>>2]|0)>>>0)|0;c[k>>2]=((c[k>>2]|0)>>>0)%((c[(c[j>>2]|0)+8>>2]|0)>>>0)|0;if((c[(c[j>>2]|0)+12+(c[p>>2]<<2)>>2]|0)==0?(b=Vg(c[(c[j>>2]|0)+8>>2]|0)|0,c[(c[j>>2]|0)+12+(c[p>>2]<<2)>>2]=b,(c[(c[j>>2]|0)+12+(c[p>>2]<<2)>>2]|0)==0):0){g=8;break}c[j>>2]=c[(c[j>>2]|0)+12+(c[p>>2]<<2)>>2]}if((g|0)==8){c[h>>2]=7;b=c[h>>2]|0;i=m;return b|0}p=c[k>>2]|0;if((c[c[j>>2]>>2]|0)>>>0<=4e3){b=(c[j>>2]|0)+12+(((c[k>>2]|0)>>>0)/8|0)|0;a[b>>0]=d[b>>0]|0|1<<(p&7);c[h>>2]=0;b=c[h>>2]|0;i=m;return b|0}c[k>>2]=p+1;c[o>>2]=(p>>>0)%125|0;a:do if(!(c[(c[j>>2]|0)+12+(c[o>>2]<<2)>>2]|0)){if((c[(c[j>>2]|0)+4>>2]|0)>>>0>=124)g=17}else{while(1){if((c[(c[j>>2]|0)+12+(c[o>>2]<<2)>>2]|0)==(c[k>>2]|0))break;b=(c[o>>2]|0)+1|0;c[o>>2]=b;c[o>>2]=(c[o>>2]|0)>>>0>=125?0:b;if(!(c[(c[j>>2]|0)+12+(c[o>>2]<<2)>>2]|0)){g=17;break a}}c[h>>2]=0;b=c[h>>2]|0;i=m;return b|0}while(0);if((g|0)==17?(c[(c[j>>2]|0)+4>>2]|0)>>>0>=62:0){c[l>>2]=Qe(0,500,0)|0;if(!(c[l>>2]|0)){c[h>>2]=7;b=c[h>>2]|0;i=m;return b|0}dF(c[l>>2]|0,(c[j>>2]|0)+12|0,500)|0;_E((c[j>>2]|0)+12|0,0,500)|0;c[(c[j>>2]|0)+8>>2]=(((c[c[j>>2]>>2]|0)+125-1|0)>>>0)/125|0;c[f>>2]=Wg(c[j>>2]|0,c[k>>2]|0)|0;c[n>>2]=0;while(1){if((c[n>>2]|0)>>>0>=125)break;if(c[(c[l>>2]|0)+(c[n>>2]<<2)>>2]|0){b=Wg(c[j>>2]|0,c[(c[l>>2]|0)+(c[n>>2]<<2)>>2]|0)|0;c[f>>2]=c[f>>2]|b}c[n>>2]=(c[n>>2]|0)+1}Xb(0,c[l>>2]|0);c[h>>2]=c[f>>2];b=c[h>>2]|0;i=m;return b|0}b=(c[j>>2]|0)+4|0;c[b>>2]=(c[b>>2]|0)+1;c[(c[j>>2]|0)+12+(c[o>>2]<<2)>>2]=c[k>>2];c[h>>2]=0;b=c[h>>2]|0;i=m;return b|0}function Xg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;n=i;i=i+32|0;j=n+24|0;k=n+20|0;o=n+16|0;p=n+12|0;m=n+8|0;l=n+4|0;g=n;c[j>>2]=b;c[k>>2]=e;c[o>>2]=f;if(!(c[j>>2]|0)){i=n;return}c[k>>2]=(c[k>>2]|0)+ -1;while(1){if(!(c[(c[j>>2]|0)+8>>2]|0))break;c[p>>2]=((c[k>>2]|0)>>>0)/((c[(c[j>>2]|0)+8>>2]|0)>>>0)|0;c[k>>2]=((c[k>>2]|0)>>>0)%((c[(c[j>>2]|0)+8>>2]|0)>>>0)|0;c[j>>2]=c[(c[j>>2]|0)+12+(c[p>>2]<<2)>>2];if(!(c[j>>2]|0)){h=16;break}}if((h|0)==16){i=n;return}if((c[c[j>>2]>>2]|0)>>>0<=4e3){b=(c[j>>2]|0)+12+(((c[k>>2]|0)>>>0)/8|0)|0;a[b>>0]=(d[b>>0]|0)&~(1<<(c[k>>2]&7));i=n;return}c[l>>2]=c[o>>2];dF(c[l>>2]|0,(c[j>>2]|0)+12|0,500)|0;_E((c[j>>2]|0)+12|0,0,500)|0;c[(c[j>>2]|0)+4>>2]=0;c[m>>2]=0;while(1){if((c[m>>2]|0)>>>0>=125)break;if((c[(c[l>>2]|0)+(c[m>>2]<<2)>>2]|0)!=0?(c[(c[l>>2]|0)+(c[m>>2]<<2)>>2]|0)!=((c[k>>2]|0)+1|0):0){c[g>>2]=(((c[(c[l>>2]|0)+(c[m>>2]<<2)>>2]|0)-1|0)>>>0)%125|0;b=(c[j>>2]|0)+4|0;c[b>>2]=(c[b>>2]|0)+1;while(1){if(!(c[(c[j>>2]|0)+12+(c[g>>2]<<2)>>2]|0))break;b=(c[g>>2]|0)+1|0;c[g>>2]=b;c[g>>2]=(c[g>>2]|0)>>>0>=125?0:b}c[(c[j>>2]|0)+12+(c[g>>2]<<2)>>2]=c[(c[l>>2]|0)+(c[m>>2]<<2)>>2]}c[m>>2]=(c[m>>2]|0)+1}i=n;return}function Yg(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;f=e+16|0;g=e+12|0;h=e+8|0;l=e+4|0;j=e;c[g>>2]=a;c[h>>2]=b;if(!(c[g>>2]|0)){c[f>>2]=0;a=c[f>>2]|0;i=e;return a|0}if((c[h>>2]|0)==0?1:(c[h>>2]|0)>>>0>(c[c[g>>2]>>2]|0)>>>0){c[f>>2]=0;a=c[f>>2]|0;i=e;return a|0}c[h>>2]=(c[h>>2]|0)+ -1;while(1){if(!(c[(c[g>>2]|0)+8>>2]|0))break;c[l>>2]=((c[h>>2]|0)>>>0)/((c[(c[g>>2]|0)+8>>2]|0)>>>0)|0;c[h>>2]=((c[h>>2]|0)>>>0)%((c[(c[g>>2]|0)+8>>2]|0)>>>0)|0;c[g>>2]=c[(c[g>>2]|0)+12+(c[l>>2]<<2)>>2];if(!(c[g>>2]|0)){k=8;break}}if((k|0)==8){c[f>>2]=0;a=c[f>>2]|0;i=e;return a|0}k=c[h>>2]|0;if((c[c[g>>2]>>2]|0)>>>0<=4e3){c[f>>2]=((d[(c[g>>2]|0)+12+((k>>>0)/8|0)>>0]|0)&1<<(c[h>>2]&7)|0)!=0&1;a=c[f>>2]|0;i=e;return a|0}c[h>>2]=k+1;c[j>>2]=(k>>>0)%125|0;while(1){if(!(c[(c[g>>2]|0)+12+(c[j>>2]<<2)>>2]|0)){k=16;break}if((c[(c[g>>2]|0)+12+(c[j>>2]<<2)>>2]|0)==(c[h>>2]|0)){k=14;break}c[j>>2]=(((c[j>>2]|0)+1|0)>>>0)%125|0}if((k|0)==14){c[f>>2]=1;a=c[f>>2]|0;i=e;return a|0}else if((k|0)==16){c[f>>2]=0;a=c[f>>2]|0;i=e;return a|0}return 0}function Zg(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[c[b>>2]>>2]|0}function _g(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;if(!(c[e>>2]|0)){i=b;return}a:do if(c[(c[e>>2]|0)+8>>2]|0){c[d>>2]=0;while(1){if((c[d>>2]|0)>>>0>=125)break a;_g(c[(c[e>>2]|0)+12+(c[d>>2]<<2)>>2]|0);c[d>>2]=(c[d>>2]|0)+1}}while(0);hc(c[e>>2]|0);i=b;return}function $g(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;j=i;i=i+32|0;n=j+12|0;k=j+16|0;m=j+8|0;l=j+4|0;h=j;c[n>>2]=b;a[k>>0]=e;c[m>>2]=f;c[l>>2]=g;g=c[n>>2]|0;if(c[m>>2]|0)c[h>>2]=fh(g,c[m>>2]|0,c[l>>2]|0)|0;else c[h>>2]=c[g+8>>2];if(!(c[h>>2]|0)){n=c[h>>2]|0;i=j;return n|0}c[h>>2]=(c[h>>2]|0)+(((d[k>>0]|0)-1|0)*20|0);n=c[h>>2]|0;i=j;return n|0}function ah(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;i=i+32|0;g=b+20|0;d=b+16|0;f=b+12|0;e=b+8|0;h=b+4|0;j=b;c[g>>2]=a;c[f>>2]=0;c[d>>2]=c[(c[g>>2]|0)+16>>2];while(1){if((c[f>>2]|0)>=(c[(c[g>>2]|0)+20>>2]|0))break;a:do if(c[(c[d>>2]|0)+4>>2]|0){Pc(c[(c[d>>2]|0)+4>>2]|0);c[e>>2]=c[(c[(c[d>>2]|0)+12>>2]|0)+16>>2];while(1){if(!(c[e>>2]|0))break a;c[h>>2]=c[(c[e>>2]|0)+8>>2];c[j>>2]=c[(c[h>>2]|0)+8>>2];while(1){if(!(c[j>>2]|0))break;if((c[(c[j>>2]|0)+40>>2]|0)!=0?(c[(c[(c[j>>2]|0)+40>>2]|0)+12>>2]|0)==(c[g>>2]|0):0){eh(c[(c[j>>2]|0)+40>>2]|0);c[(c[j>>2]|0)+40>>2]=0}c[j>>2]=c[(c[j>>2]|0)+20>>2]}c[e>>2]=c[c[e>>2]>>2]}}while(0);c[f>>2]=(c[f>>2]|0)+1;c[d>>2]=(c[d>>2]|0)+16}i=b;return}function bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+12|0;f=d+8|0;e=d+4|0;c[g>>2]=a;c[f>>2]=b;c[e>>2]=ch(c[g>>2]|0,c[f>>2]|0,d)|0;if(!(c[e>>2]|0)){g=0;i=d;return g|0}g=c[(c[e>>2]|0)+8>>2]|0;i=d;return g|0}function ch(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;e=i;i=i+32|0;f=e+28|0;n=e+24|0;h=e+20|0;k=e+16|0;g=e+12|0;j=e+8|0;l=e+4|0;m=e;c[n>>2]=a;c[h>>2]=b;c[k>>2]=d;if(c[(c[n>>2]|0)+12>>2]|0){a=dh(c[h>>2]|0)|0;c[l>>2]=(a>>>0)%((c[c[n>>2]>>2]|0)>>>0)|0;c[m>>2]=(c[(c[n>>2]|0)+12>>2]|0)+(c[l>>2]<<3);c[g>>2]=c[(c[m>>2]|0)+4>>2];c[j>>2]=c[c[m>>2]>>2]}else{c[l>>2]=0;c[g>>2]=c[(c[n>>2]|0)+8>>2];c[j>>2]=c[(c[n>>2]|0)+4>>2]}c[c[k>>2]>>2]=c[l>>2];while(1){a=c[j>>2]|0;c[j>>2]=a+ -1;if(!a){g=9;break}a=(xc(c[(c[g>>2]|0)+12>>2]|0,c[h>>2]|0)|0)==0;k=c[g>>2]|0;if(a){g=7;break}c[g>>2]=c[k>>2]}if((g|0)==7){c[f>>2]=k;a=c[f>>2]|0;i=e;return a|0}else if((g|0)==9){c[f>>2]=0;a=c[f>>2]|0;i=e;return a|0}return 0}function dh(b){b=b|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+4|0;h=e;g=e+8|0;c[f>>2]=b;c[h>>2]=0;while(1){j=c[f>>2]|0;c[f>>2]=j+1;j=a[j>>0]|0;a[g>>0]=j;b=c[h>>2]|0;if(!(j&255))break;c[h>>2]=b<<3^c[h>>2]^(d[440+(d[g>>0]|0)>>0]|0)}i=e;return b|0}function eh(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}a=c[d>>2]|0;c[a>>2]=(c[a>>2]|0)+ -1;if(c[c[d>>2]>>2]|0){i=b;return}Xb(0,c[d>>2]|0);i=b;return}function fh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;l=f+20|0;j=f+16|0;m=f+12|0;g=f+8|0;k=f+4|0;h=f;c[l>>2]=b;c[j>>2]=d;c[m>>2]=e;c[g>>2]=bh((c[l>>2]|0)+428|0,c[j>>2]|0)|0;if(!(0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>>2]|0)+8>>2]|0)+4>>2]=c[e>>2];c[(c[e>>2]|0)+4>>2]=0;c[(c[f>>2]|0)+8>>2]=c[e>>2];i=g;return}c[c[e>>2]>>2]=c[h>>2];c[(c[e>>2]|0)+4>>2]=c[(c[h>>2]|0)+4>>2];j=c[e>>2]|0;if(c[(c[h>>2]|0)+4>>2]|0)c[c[(c[h>>2]|0)+4>>2]>>2]=j;else c[(c[f>>2]|0)+8>>2]=j;c[(c[h>>2]|0)+4>>2]=c[e>>2];i=g;return}function kh(){var a=0;a=i;if(!(c[802]|0)){i=a;return}wb[c[3208>>2]&0]();i=a;return}function lh(){var a=0;a=i;if(!(c[803]|0)){i=a;return}wb[c[3208+4>>2]&0]();i=a;return}function mh(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;b=d+8|0;e=d+4|0;f=d;c[b>>2]=a;c[e>>2]=c[(c[b>>2]|0)+8>>2];c[(c[b>>2]|0)+8>>2]=0;hc(c[(c[b>>2]|0)+12>>2]|0);c[(c[b>>2]|0)+12>>2]=0;c[c[b>>2]>>2]=0;while(1){if(!(c[e>>2]|0))break;c[f>>2]=c[c[e>>2]>>2];hc(c[e>>2]|0);c[e>>2]=c[f>>2]}c[(c[b>>2]|0)+4>>2]=0;i=d;return}function nh(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;c[(c[d>>2]|0)+8>>2]=0;c[(c[d>>2]|0)+4>>2]=0;c[c[d>>2]>>2]=0;c[(c[d>>2]|0)+12>>2]=0;i=b;return}function oh(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,j=0,k=0,l=0,m=0,n=0,o=0;m=i;i=i+32|0;o=m+24|0;n=m+20|0;g=m+16|0;l=m+12|0;j=m+8|0;h=m+4|0;k=m;c[o>>2]=a;c[n>>2]=b;c[g>>2]=d;c[l>>2]=e;c[j>>2]=f;c[k>>2]=(c[n>>2]|0)<(c[l>>2]|0)?c[n>>2]|0:c[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z+24|0;r=z+20|0;x=z+16|0;w=z+12|0;y=z+8|0;c[O>>2]=b;c[F>>2]=e;c[K>>2]=f;c[J>>2]=g;c[L>>2]=h;c[H>>2]=j;c[I>>2]=0;c[v>>2]=c[c[K>>2]>>2];c[n>>2]=c[O>>2];c[N>>2]=Mb(c[F>>2]|0)|0;if(c[v>>2]&64)if((c[N>>2]|0)>=5)j=4;else j=83;else if((c[9663]|0)!=0&(c[N>>2]|0)>=5)j=4;else j=83;a:do if((j|0)==4)if(!(TE(c[F>>2]|0,4608,5)|0)){c[k>>2]=0;c[M>>2]=(c[N>>2]|0)+2;c[v>>2]=c[v>>2]|64;c[E>>2]=0;while(1){if((c[E>>2]|0)>=(c[N>>2]|0))break;c[M>>2]=(c[M>>2]|0)+((a[(c[F>>2]|0)+(c[E>>2]|0)>>0]|0)==38&1);c[E>>2]=(c[E>>2]|0)+1}c[A>>2]=fc(c[M>>2]|0)|0;if(!(c[A>>2]|0)){c[C>>2]=7;O=c[C>>2]|0;i=z;return O|0}c[E>>2]=5;do if((a[(c[F>>2]|0)+5>>0]|0)==47?(a[(c[F>>2]|0)+6>>0]|0)==47:0){c[E>>2]=7;while(1){if(a[(c[F>>2]|0)+(c[E>>2]|0)>>0]|0)N=(a[(c[F>>2]|0)+(c[E>>2]|0)>>0]|0)!=47;else N=0;M=c[E>>2]|0;if(!N)break;c[E>>2]=M+1}if((M|0)!=7){if((c[E>>2]|0)==16?(TE(4616,(c[F>>2]|0)+7|0,9)|0)==0:0)break;O=(c[F>>2]|0)+7|0;c[G>>2]=(c[E>>2]|0)-7;c[G+4>>2]=O;O=qc(4632,G)|0;c[c[H>>2]>>2]=O;c[I>>2]=1;break a}}while(0);c[B>>2]=0;b:while(1){O=a[(c[F>>2]|0)+(c[E>>2]|0)>>0]|0;a[D>>0]=O;if(!(O<<24>>24))break;if((a[D>>0]|0)==35)break;c[E>>2]=(c[E>>2]|0)+1;do if(((a[D>>0]|0)==37?(d[1224+(d[(c[F>>2]|0)+(c[E>>2]|0)>>0]|0)>>0]&8|0)!=0:0)?(d[1224+(d[(c[F>>2]|0)+((c[E>>2]|0)+1)>>0]|0)>>0]&8|0)!=0:0){O=c[E>>2]|0;c[E>>2]=O+1;c[l>>2]=((vg(a[(c[F>>2]|0)+O>>0]|0)|0)&255)<<4;O=c[E>>2]|0;c[E>>2]=O+1;O=(vg(a[(c[F>>2]|0)+O>>0]|0)|0)&255;c[l>>2]=(c[l>>2]|0)+O;if(c[l>>2]|0){a[D>>0]=c[l>>2];break}while(1){O=a[(c[F>>2]|0)+(c[E>>2]|0)>>0]|0;a[D>>0]=O;if(!(O<<24>>24))continue b;if((a[D>>0]|0)==35)continue b;if((c[B>>2]|0)==0?(a[D>>0]|0)==63:0)continue b;if((c[B>>2]|0)==1){if((a[D>>0]|0)==61)continue b;if((a[D>>0]|0)==38)continue b}if((c[B>>2]|0)==2?(a[D>>0]|0)==38:0)continue b;c[E>>2]=(c[E>>2]|0)+1}}else j=39;while(0);c:do if((j|0)==39){j=0;do if((c[B>>2]|0)==1){if((a[D>>0]|0)!=38?(a[D>>0]|0)!=61:0)break;if(!(a[(c[A>>2]|0)+((c[k>>2]|0)-1)>>0]|0))while(1){if(!(a[(c[F>>2]|0)+(c[E>>2]|0)>>0]|0))continue b;if((a[(c[F>>2]|0)+(c[E>>2]|0)>>0]|0)==35)continue b;if((a[(c[F>>2]|0)+((c[E>>2]|0)-1)>>0]|0)==38)continue b;c[E>>2]=(c[E>>2]|0)+1}else{if((a[D>>0]|0)==38){O=c[k>>2]|0;c[k>>2]=O+1;a[(c[A>>2]|0)+O>>0]=0}else c[B>>2]=2;a[D>>0]=0;break c}}while(0);if(!((c[B>>2]|0)==0?(a[D>>0]|0)==63:0)){if((c[B>>2]|0)!=2)break;if((a[D>>0]|0)!=38)break}a[D>>0]=0;c[B>>2]=1}while(0);b=a[D>>0]|0;O=c[k>>2]|0;c[k>>2]=O+1;a[(c[A>>2]|0)+O>>0]=b}if((c[B>>2]|0)==1){O=c[k>>2]|0;c[k>>2]=O+1;a[(c[A>>2]|0)+O>>0]=0}O=c[k>>2]|0;c[k>>2]=O+1;a[(c[A>>2]|0)+O>>0]=0;O=c[k>>2]|0;c[k>>2]=O+1;a[(c[A>>2]|0)+O>>0]=0;O=(Mb(c[A>>2]|0)|0)+1|0;c[t>>2]=(c[A>>2]|0)+O;while(1){if(!(a[c[t>>2]>>0]|0)){j=86;break a}c[s>>2]=Mb(c[t>>2]|0)|0;c[m>>2]=(c[t>>2]|0)+((c[s>>2]|0)+1);c[u>>2]=Mb(c[m>>2]|0)|0;if((c[s>>2]|0)==3?(TE(4664,c[t>>2]|0,3)|0)==0:0)c[n>>2]=c[m>>2];else{c[o>>2]=0;c[p>>2]=0;c[q>>2]=0;c[r>>2]=0;if((c[s>>2]|0)==5?(TE(4672,c[t>>2]|0,5)|0)==0:0){c[q>>2]=393216;c[o>>2]=4680;c[r>>2]=c[q>>2];c[p>>2]=4672}if((c[s>>2]|0)==4?(TE(4720,c[t>>2]|0,4)|0)==0:0){c[q>>2]=135;c[o>>2]=4728;c[r>>2]=c[q>>2]&c[v>>2];c[p>>2]=4800}if(c[o>>2]|0){c[w>>2]=0;c[x>>2]=0;while(1){if(!(c[(c[o>>2]|0)+(c[x>>2]<<3)>>2]|0))break;c[y>>2]=c[(c[o>>2]|0)+(c[x>>2]<<3)>>2];O=c[u>>2]|0;if((O|0)==(Mb(c[y>>2]|0)|0)?0==(TE(c[m>>2]|0,c[y>>2]|0,c[u>>2]|0)|0):0){j=75;break}c[x>>2]=(c[x>>2]|0)+1}if((j|0)==75){j=0;c[w>>2]=c[(c[o>>2]|0)+(c[x>>2]<<3)+4>>2]}if(!(c[w>>2]|0)){j=78;break}if((c[w>>2]&-129|0)>(c[r>>2]|0)){j=80;break}c[v>>2]=c[v>>2]&~c[q>>2]|c[w>>2]}}c[t>>2]=(c[m>>2]|0)+((c[u>>2]|0)+1)}if((j|0)==78){O=c[m>>2]|0;c[G>>2]=c[p>>2];c[G+4>>2]=O;O=qc(4808,G)|0;c[c[H>>2]>>2]=O;c[I>>2]=1;break}else if((j|0)==80){O=c[m>>2]|0;c[G>>2]=c[p>>2];c[G+4>>2]=O;O=qc(4832,G)|0;c[c[H>>2]>>2]=O;c[I>>2]=3;break}}else j=83;while(0);do if((j|0)==83){c[A>>2]=fc((c[N>>2]|0)+2|0)|0;if(c[A>>2]|0){dF(c[A>>2]|0,c[F>>2]|0,c[N>>2]|0)|0;a[(c[A>>2]|0)+(c[N>>2]|0)>>0]=0;a[(c[A>>2]|0)+((c[N>>2]|0)+1)>>0]=0;c[v>>2]=c[v>>2]&-65;j=86;break}c[C>>2]=7;O=c[C>>2]|0;i=z;return O|0}while(0);if((j|0)==86?(O=Yb(c[n>>2]|0)|0,c[c[J>>2]>>2]=O,(c[c[J>>2]>>2]|0)==0):0){c[G>>2]=c[n>>2];O=qc(4856,G)|0;c[c[H>>2]>>2]=O;c[I>>2]=1}if(c[I>>2]|0){hc(c[A>>2]|0);c[A>>2]=0}c[c[K>>2]>>2]=c[v>>2];c[c[L>>2]>>2]=c[A>>2];c[C>>2]=c[I>>2];O=c[C>>2]|0;i=z;return O|0}function rh(f,g,h,j,k,l){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;m=i;i=i+192|0;r=m+72|0;z=m+68|0;v=m+64|0;y=m+60|0;q=m+56|0;x=m+52|0;A=m+48|0;p=m+44|0;o=m+40|0;n=m+32|0;F=m+176|0;u=m+76|0;H=m+28|0;w=m+24|0;t=m+20|0;B=m+16|0;D=m+12|0;E=m+8|0;G=m+4|0;s=m;c[z>>2]=f;c[v>>2]=g;c[y>>2]=h;c[q>>2]=j;c[x>>2]=k;c[A>>2]=l;c[p>>2]=0;c[m+36>>2]=0;c[n>>2]=0;if(!(c[v>>2]|0))l=1;else l=(a[c[v>>2]>>0]|0)==0;c[H>>2]=l&1;if((c[v>>2]|0)!=0?(UE(c[v>>2]|0,4216)|0)==0:0)l=1;else C=5;do if((C|0)==5){if((c[H>>2]|0)!=0?(xh(c[y>>2]|0)|0)!=0:0){l=1;break}l=(c[A>>2]&128|0)!=0}while(0);c[w>>2]=l&1;if(c[w>>2]|0)c[x>>2]=c[x>>2]|2;if((c[A>>2]&256|0)!=0?(c[w>>2]|0)!=0|(c[H>>2]|0)!=0:0)c[A>>2]=c[A>>2]&-257|512;c[o>>2]=Mc(44,0)|0;if(!(c[o>>2]|0)){c[r>>2]=7;f=c[r>>2]|0;i=m;return f|0}a[(c[o>>2]|0)+8>>0]=0;c[c[o>>2]>>2]=c[y>>2];c[(c[o>>2]|0)+28>>2]=c[o>>2];c[(c[o>>2]|0)+32>>2]=1;do if(!(c[H>>2]|0)){if((c[w>>2]|0)!=0?(c[A>>2]&64|0)==0:0)break;if(c[A>>2]&131072){c[t>>2]=(c[(c[z>>2]|0)+8>>2]|0)+1;f=c[t>>2]|0;c[B>>2]=gc(f,((f|0)<0)<<31>>31)|0;a[(c[o>>2]|0)+9>>0]=1;if(!(c[B>>2]|0)){hc(c[o>>2]|0);c[r>>2]=7;f=c[r>>2]|0;i=m;return f|0}if(!(c[w>>2]|0)){c[n>>2]=yh(c[z>>2]|0,c[v>>2]|0,c[t>>2]|0,c[B>>2]|0)|0;if(c[n>>2]|0){hc(c[B>>2]|0);hc(c[o>>2]|0);c[r>>2]=c[n>>2];f=c[r>>2]|0;i=m;return f|0}}else{g=c[B>>2]|0;f=c[v>>2]|0;dF(g|0,f|0,(Mb(c[v>>2]|0)|0)+1|0)|0}c[p>>2]=c[1058];while(1){if(!(c[p>>2]|0))break;f=c[B>>2]|0;if(0==(UE(f,ug(c[c[p>>2]>>2]|0,0)|0)|0)?(f=zh(c[c[p>>2]>>2]|0)|0,(f|0)==(c[z>>2]|0)):0){C=29;break}c[p>>2]=c[(c[p>>2]|0)+68>>2]}do if((C|0)==29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>2]|0)+22|0;b[f>>1]=e[f>>1]|2;f=(Hh(u+52|0)|0)!=0;a[(c[p>>2]|0)+17>>0]=f?1:0;f=(Hh(u+64|0)|0)!=0;a[(c[p>>2]|0)+18>>0]=f?1:0}else{c[(c[p>>2]|0)+32>>2]=0;if(!((c[v>>2]|0)==0|(c[w>>2]|0)!=0)){a[(c[p>>2]|0)+17>>0]=0;a[(c[p>>2]|0)+18>>0]=0}a[F>>0]=0}c[n>>2]=Eg(c[c[p>>2]>>2]|0,(c[p>>2]|0)+32|0,d[F>>0]|0)|0;if(!(c[n>>2]|0)){c[(c[p>>2]|0)+36>>2]=(c[(c[p>>2]|0)+32>>2]|0)-(d[F>>0]|0);if(a[(c[o>>2]|0)+9>>0]|0){c[(c[p>>2]|0)+64>>2]=1;c[(c[p>>2]|0)+68>>2]=c[1058];c[1058]=c[p>>2];C=56}else C=56}}}else C=56;while(0);if((C|0)==56){a:do if(a[(c[o>>2]|0)+9>>0]|0){c[G>>2]=0;while(1){if((c[G>>2]|0)>=(c[(c[y>>2]|0)+20>>2]|0))break a;f=c[(c[(c[y>>2]|0)+16>>2]|0)+(c[G>>2]<<4)+4>>2]|0;c[s>>2]=f;if((f|0)!=0?(d[(c[s>>2]|0)+9>>0]|0)!=0:0)break;c[G>>2]=(c[G>>2]|0)+1}while(1){if(!(c[(c[s>>2]|0)+24>>2]|0))break;c[s>>2]=c[(c[s>>2]|0)+24>>2]}if((c[(c[o>>2]|0)+4>>2]|0)>>>0<(c[(c[s>>2]|0)+4>>2]|0)>>>0){c[(c[o>>2]|0)+20>>2]=c[s>>2];c[(c[o>>2]|0)+24>>2]=0;c[(c[s>>2]|0)+24>>2]=c[o>>2];break}while(1){if(c[(c[s>>2]|0)+20>>2]|0)u=(c[(c[(c[s>>2]|0)+20>>2]|0)+4>>2]|0)>>>0<(c[(c[o>>2]|0)+4>>2]|0)>>>0;else u=0;t=c[(c[s>>2]|0)+20>>2]|0;if(!u)break;c[s>>2]=t}c[(c[o>>2]|0)+20>>2]=t;c[(c[o>>2]|0)+24>>2]=c[s>>2];if(c[(c[o>>2]|0)+20>>2]|0)c[(c[(c[o>>2]|0)+20>>2]|0)+24>>2]=c[o>>2];c[(c[s>>2]|0)+20>>2]=c[o>>2]}while(0);c[c[q>>2]>>2]=c[o>>2]}if(!(c[n>>2]|0)){if(!(vh(c[o>>2]|0,0,0)|0))Jh(c[c[(c[o>>2]|0)+4>>2]>>2]|0,2e3)}else{if((c[p>>2]|0)!=0?(c[c[p>>2]>>2]|0)!=0:0)Ih(c[c[p>>2]>>2]|0)|0;hc(c[p>>2]|0);hc(c[o>>2]|0);c[c[q>>2]>>2]=0}c[r>>2]=c[n>>2];f=c[r>>2]|0;i=m;return f|0}function sh(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0;h=i;i=i+16|0;f=h+8|0;j=h+4|0;g=h;c[f>>2]=b;c[j>>2]=e;if(c[j>>2]|0)c[g>>2]=vh(c[j>>2]|0,84,15)|0;else c[g>>2]=se(0,84,0)|0;if(!(c[g>>2]|0)){a[(c[f>>2]|0)+64>>0]=1;b=c[g>>2]|0;i=h;return b|0}if(d[(c[g>>2]|0)+76>>0]|0){b=c[g>>2]|0;i=h;return b|0}nh((c[g>>2]|0)+8|0);nh((c[g>>2]|0)+24|0);nh((c[g>>2]|0)+40|0);nh((c[g>>2]|0)+56|0);a[(c[g>>2]|0)+77>>0]=1;b=c[g>>2]|0;i=h;return b|0}function th(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=b;c[f>>2]=Rf(c[e>>2]|0,4208,2)|0;if((c[f>>2]|0)!=7){i=d;return}a[(c[e>>2]|0)+64>>0]=1;i=d;return}function uh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;b=i;i=i+32|0;g=b;d=b+24|0;k=b+20|0;h=b+16|0;e=b+12|0;j=b+8|0;f=b+4|0;c[d>>2]=a;c[h>>2]=1;if(!(c[370]|0)){i=b;return}c[k>>2]=0;while(1){if(!(c[h>>2]|0))break;if((c[k>>2]|0)>=(c[370]|0)){c[j>>2]=0;c[h>>2]=0}else c[j>>2]=c[(c[371]|0)+(c[k>>2]<<2)>>2];c[f>>2]=0;if((c[j>>2]|0)!=0?(a=pb[c[j>>2]&31](c[d>>2]|0,f,3352)|0,c[e>>2]=a,(a|0)!=0):0){l=c[d>>2]|0;a=c[e>>2]|0;c[g>>2]=c[f>>2];Lc(l,a,4168,g);c[h>>2]=0}hc(c[f>>2]|0);c[k>>2]=(c[k>>2]|0)+1}i=b;return}function vh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;j=e+12|0;g=e+8|0;h=e+4|0;f=e;c[j>>2]=a;c[g>>2]=b;c[h>>2]=d;c[f>>2]=c[(c[j>>2]|0)+4>>2];Pc(c[j>>2]|0);if(!((c[g>>2]|0)!=0?(c[(c[f>>2]|0)+48>>2]|0)==0:0)){j=c[f>>2]|0;j=j+48|0;j=c[j>>2]|0;i=e;return j|0}j=c[g>>2]|0;j=se(0,j,((j|0)<0)<<31>>31)|0;c[(c[f>>2]|0)+48>>2]=j;c[(c[f>>2]|0)+52>>2]=c[h>>2];j=c[f>>2]|0;j=j+48|0;j=c[j>>2]|0;i=e;return j|0}function wh(a){a=a|0;var d=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;i=i+64|0;l=d+48|0;f=d+32|0;k=d+16|0;h=d+8|0;g=d+4|0;j=d;c[l>>2]=a;c[g>>2]=c[l>>2];a=(c[g>>2]|0)+8|0;c[f+0>>2]=c[a+0>>2];c[f+4>>2]=c[a+4>>2];c[f+8>>2]=c[a+8>>2];c[f+12>>2]=c[a+12>>2];a=(c[g>>2]|0)+40|0;c[k+0>>2]=c[a+0>>2];c[k+4>>2]=c[a+4>>2];c[k+8>>2]=c[a+8>>2];c[k+12>>2]=c[a+12>>2];nh((c[g>>2]|0)+40|0);mh((c[g>>2]|0)+24|0);c[h>>2]=c[k+8>>2];while(1){if(!(c[h>>2]|0))break;Ub(0,c[(c[h>>2]|0)+8>>2]|0);c[h>>2]=c[c[h>>2]>>2]}mh(k);nh((c[g>>2]|0)+8|0);c[h>>2]=c[f+8>>2];while(1){if(!(c[h>>2]|0))break;c[j>>2]=c[(c[h>>2]|0)+8>>2];Vb(0,c[j>>2]|0);c[h>>2]=c[c[h>>2]>>2]}mh(f);mh((c[g>>2]|0)+56|0);c[(c[g>>2]|0)+72>>2]=0;if(!((e[(c[g>>2]|0)+78>>1]|0)&1)){i=d;return}l=(c[g>>2]|0)+4|0;c[l>>2]=(c[l>>2]|0)+1;l=(c[g>>2]|0)+78|0;b[l>>1]=(e[l>>1]|0)&-2;i=d;return}function xh(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;c[b>>2]=a;i=e;return(d[(c[b>>2]|0)+63>>0]|0|0)==2|0}function yh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+16|0;l=g+12|0;k=g+8|0;j=g+4|0;h=g;c[l>>2]=b;c[k>>2]=d;c[j>>2]=e;c[h>>2]=f;a[c[h>>2]>>0]=0;b=xb[c[(c[l>>2]|0)+36>>2]&7](c[l>>2]|0,c[k>>2]|0,c[j>>2]|0,c[h>>2]|0)|0;i=g;return b|0}function zh(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[c[b>>2]>>2]|0}function Ah(d,e,f,g,h,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;v=i;i=i+112|0;A=v+96|0;p=v+92|0;E=v+88|0;s=v+84|0;y=v+80|0;L=v+76|0;r=v+72|0;D=v+68|0;H=v+64|0;q=v+60|0;o=v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>>2]|0)+0|0;G=4552;F=H+10|0;do{a[H>>0]=a[G>>0]|0;H=H+1|0;G=G+1|0}while((H|0)<(F|0));c[(c[q>>2]|0)+212>>2]=(c[(c[q>>2]|0)+172>>2]|0)+((c[t>>2]|0)+9);dF(c[(c[q>>2]|0)+212>>2]|0,c[n>>2]|0,c[t>>2]|0)|0;d=(c[(c[q>>2]|0)+212>>2]|0)+(c[t>>2]|0)|0;a[d+0>>0]=a[4568]|0;a[d+1>>0]=a[4569]|0;a[d+2>>0]=a[4570]|0;a[d+3>>0]=a[4571]|0;a[d+4>>0]=a[4572]|0;Xb(0,c[n>>2]|0)}c[c[q>>2]>>2]=c[p>>2];c[(c[q>>2]|0)+144>>2]=c[r>>2];do if((c[s>>2]|0)!=0?(a[c[s>>2]>>0]|0)!=0:0){c[u>>2]=0;c[o>>2]=Di(c[p>>2]|0,c[(c[q>>2]|0)+168>>2]|0,c[(c[q>>2]|0)+60>>2]|0,c[r>>2]|0,u)|0;c[l>>2]=c[u>>2]&1;if(!(c[o>>2]|0)){c[w>>2]=Ai(c[(c[q>>2]|0)+60>>2]|0)|0;do if((c[l>>2]|0)==0?(zi(c[q>>2]|0),(c[x>>2]|0)>>>0<(c[(c[q>>2]|0)+148>>2]|0)>>>0):0)if((c[(c[q>>2]|0)+148>>2]|0)>>>0>8192){c[x>>2]=8192;break}else{c[x>>2]=c[(c[q>>2]|0)+148>>2];break}while(0);d=(pg(c[s>>2]|0,4576,0)|0)&255;a[(c[q>>2]|0)+13>>0]=d;if((c[w>>2]&8192|0)==0?(pg(c[s>>2]|0,4584,0)|0)==0:0)break;c[r>>2]=c[r>>2]|1;m=39}}else m=39;while(0);if((m|0)==39){c[C>>2]=1;a[(c[q>>2]|0)+16>>0]=1;a[(c[q>>2]|0)+17>>0]=4;a[(c[q>>2]|0)+13>>0]=1;c[l>>2]=c[r>>2]&1}if(!(c[o>>2]|0))c[o>>2]=Eg(c[q>>2]|0,x,-1)|0;if(!(c[o>>2]|0)){c[y>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){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+8|0;g=e;c[f>>2]=a;a=g;c[a>>2]=b;c[a+4>>2]=d;d=g;b=c[d+4>>2]|0;a=(c[f>>2]|0)+128|0;c[a>>2]=c[d>>2];c[a+4>>2]=b;Lg(c[f>>2]|0);i=e;return}function Dh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;g=e+12|0;j=e+8|0;h=e+4|0;f=e;c[g>>2]=a;c[j>>2]=b;c[h>>2]=d;c[f>>2]=0;_E(c[h>>2]|0,0,c[j>>2]|0)|0;if(!(c[c[(c[g>>2]|0)+60>>2]>>2]|0)){a=c[f>>2]|0;i=e;return a|0}a=Ei(c[(c[g>>2]|0)+60>>2]|0,c[h>>2]|0,c[j>>2]|0,0,0)|0;c[f>>2]=a;c[f>>2]=(c[f>>2]|0)==522?0:a;a=c[f>>2]|0;i=e;return a|0}function Eh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+12|0;j=e+8|0;h=e+4|0;g=e;c[f>>2]=a;c[j>>2]=b;c[h>>2]=d;c[(c[f>>2]|0)+176>>2]=c[j>>2];c[(c[f>>2]|0)+180>>2]=c[h>>2];if(!(c[c[(c[f>>2]|0)+60>>2]>>2]|0)){i=e;return}c[g>>2]=(c[f>>2]|0)+176;rj(c[(c[f>>2]|0)+60>>2]|0,15,c[g>>2]|0);i=e;return}function Fh(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=c[e>>2];a=Pj((c[(c[d>>2]|0)+4>>2]|0)+444|0)|0;i=b;return a|0}function Gh(b){b=b|0;var d=0,e=0;e=i;i=i+16|0;d=e;c[d>>2]=b;i=e;return a[(c[d>>2]|0)+14>>0]|0}function Hh(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;c[b>>2]=a;i=e;return(d[c[b>>2]>>0]|0)<<24|(d[(c[b>>2]|0)+1>>0]|0)<<16|(d[(c[b>>2]|0)+2>>0]|0)<<8|(d[(c[b>>2]|0)+3>>0]|0)|0}function Ih(b){b=b|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+4|0;g=e;c[f>>2]=b;c[g>>2]=c[(c[f>>2]|0)+200>>2];kh();Lh(c[f>>2]|0);a[(c[f>>2]|0)+4>>0]=0;Mh(c[(c[f>>2]|0)+208>>2]|0,d[(c[f>>2]|0)+9>>0]|0,c[(c[f>>2]|0)+152>>2]|0,c[g>>2]|0)|0;c[(c[f>>2]|0)+208>>2]=0;Ig(c[f>>2]|0);b=c[f>>2]|0;if(a[(c[f>>2]|0)+15>>0]|0)Nh(b);else{if(c[c[b+64>>2]>>2]|0){b=c[f>>2]|0;Oh(b,Ph(c[f>>2]|0)|0)|0}Qh(c[f>>2]|0)}lh();Rh(c[(c[f>>2]|0)+64>>2]|0)|0;Rh(c[(c[f>>2]|0)+60>>2]|0)|0;Kg(c[g>>2]|0);Sh(c[(c[f>>2]|0)+204>>2]|0);hc(c[f>>2]|0);i=e;return 0}function Jh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;Kh(c[(c[f>>2]|0)+204>>2]|0,c[e>>2]|0);i=d;return}function Kh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;c[(c[f>>2]|0)+16>>2]=c[e>>2];e=c[9691]|0;b=c[(c[f>>2]|0)+40>>2]|0;a=Ng(c[f>>2]|0)|0;sb[e&7](b,a);i=d;return}function Lh(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;f=b+8|0;d=b+4|0;e=b;c[f>>2]=a;c[d>>2]=c[(c[f>>2]|0)+136>>2];while(1){if(!(c[d>>2]|0))break;c[e>>2]=c[(c[d>>2]|0)+12>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>2]=Yh(c[(c[f>>2]|0)+64>>2]|0,2)|0;if(c[d>>2]|0){f=c[d>>2]|0;i=e;return f|0}c[d>>2]=Gg(c[(c[f>>2]|0)+64>>2]|0,(c[f>>2]|0)+80|0)|0;f=c[d>>2]|0;i=e;return f|0}function Qh(b){b=b|0;var e=0,f=0;e=i;i=i+16|0;f=e;c[f>>2]=b;do if((d[(c[f>>2]|0)+16>>0]|0)!=6?(d[(c[f>>2]|0)+16>>0]|0)!=0:0){if((d[(c[f>>2]|0)+16>>0]|0)>=2){kh();Th(c[f>>2]|0)|0;lh();break}if(!(a[(c[f>>2]|0)+4>>0]|0))Uh(c[f>>2]|0,0,0)|0}while(0);Nh(c[f>>2]|0);i=e;return}function Rh(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=0;if(!(c[c[e>>2]>>2]|0)){e=c[d>>2]|0;i=b;return e|0}c[d>>2]=ub[c[(c[c[e>>2]>>2]|0)+4>>2]&31](c[e>>2]|0)|0;c[c[e>>2]>>2]=0;e=c[d>>2]|0;i=b;return e|0}function Sh(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;rb[c[38640+148>>2]&31](c[(c[d>>2]|0)+40>>2]|0);i=b;return}function Th(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;f=e+16|0;g=e+12|0;h=e+8|0;j=e+4|0;k=e;c[g>>2]=b;c[h>>2]=0;b=c[g>>2]|0;if((d[(c[g>>2]|0)+16>>0]|0)==6){c[f>>2]=c[b+40>>2];b=c[f>>2]|0;i=e;return b|0}if((d[b+16>>0]|0)<=1){c[f>>2]=0;b=c[f>>2]|0;i=e;return b|0}l=(ai(c[g>>2]|0)|0)!=0;b=c[g>>2]|0;do if(l){c[h>>2]=si(b,2,-1)|0;c[j>>2]=Uh(c[g>>2]|0,d[(c[g>>2]|0)+19>>0]|0,0)|0;if(!(c[h>>2]|0))c[h>>2]=c[j>>2]}else{if((c[c[b+64>>2]>>2]|0)!=0?(d[(c[g>>2]|0)+16>>0]|0)!=2:0){c[h>>2]=ti(c[g>>2]|0,0)|0;break}c[k>>2]=d[(c[g>>2]|0)+16>>0];c[h>>2]=Uh(c[g>>2]|0,0,0)|0;if((c[k>>2]|0)>2?(a[(c[g>>2]|0)+15>>0]|0)==0:0){c[(c[g>>2]|0)+40>>2]=4;a[(c[g>>2]|0)+16>>0]=6;c[f>>2]=c[h>>2];l=c[f>>2]|0;i=e;return l|0}}while(0);c[f>>2]=Oh(c[g>>2]|0,c[h>>2]|0)|0;l=c[f>>2]|0;i=e;return l|0}function Uh(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;m=i;i=i+32|0;h=m+24|0;l=m+20|0;n=m+16|0;k=m+12|0;j=m+8|0;g=m+4|0;o=m;c[l>>2]=b;c[n>>2]=e;c[k>>2]=f;c[j>>2]=0;c[g>>2]=0;if((d[(c[l>>2]|0)+16>>0]|0)<2?(d[(c[l>>2]|0)+17>>0]|0)<2:0){c[h>>2]=0;b=c[h>>2]|0;i=m;return b|0}Vh(c[l>>2]|0);a:do if(c[c[(c[l>>2]|0)+64>>2]>>2]|0){b=(Wh(c[(c[l>>2]|0)+64>>2]|0)|0)!=0;f=c[l>>2]|0;if(b){Rh(c[f+64>>2]|0)|0;break}e=c[l>>2]|0;if((d[f+5>>0]|0)==3){b=e+72|0;if(!((c[b>>2]|0)==0&(c[b+4>>2]|0)==0)){c[j>>2]=Xh(c[(c[l>>2]|0)+64>>2]|0,0,0)|0;if((c[j>>2]|0)==0?(d[(c[l>>2]|0)+8>>0]|0)!=0:0)c[j>>2]=Yh(c[(c[l>>2]|0)+64>>2]|0,d[(c[l>>2]|0)+11>>0]|0)|0}else c[j>>2]=0;b=(c[l>>2]|0)+72|0;c[b>>2]=0;c[b+4>>2]=0;break}else{do if((d[e+5>>0]|0)!=1){if((d[(c[l>>2]|0)+4>>0]|0)!=0?(d[(c[l>>2]|0)+5>>0]|0)!=5:0)break;c[o>>2]=((a[(c[l>>2]|0)+12>>0]|0)!=0?0:1)&1;Rh(c[(c[l>>2]|0)+64>>2]|0)|0;if(!(c[o>>2]|0))break a;c[j>>2]=_h(c[c[l>>2]>>2]|0,c[(c[l>>2]|0)+172>>2]|0,0)|0;break a}while(0);c[j>>2]=Zh(c[l>>2]|0,c[n>>2]|0)|0;b=(c[l>>2]|0)+72|0;c[b>>2]=0;c[b+4>>2]=0;break}}while(0);_g(c[(c[l>>2]|0)+56>>2]|0);c[(c[l>>2]|0)+56>>2]=0;c[(c[l>>2]|0)+44>>2]=0;$h(c[(c[l>>2]|0)+204>>2]|0);Qg(c[(c[l>>2]|0)+204>>2]|0,c[(c[l>>2]|0)+24>>2]|0);if(!(ai(c[l>>2]|0)|0)){if((c[j>>2]|0)==0&(c[k>>2]|0)!=0?(c[(c[l>>2]|0)+32>>2]|0)>>>0>(c[(c[l>>2]|0)+24>>2]|0)>>>0:0)c[j>>2]=ci(c[l>>2]|0,c[(c[l>>2]|0)+24>>2]|0)|0}else c[g>>2]=bi(c[(c[l>>2]|0)+208>>2]|0)|0;if((c[j>>2]|0)==0&(c[k>>2]|0)!=0?(c[c[(c[l>>2]|0)+60>>2]>>2]|0)!=0:0){b=ig(c[(c[l>>2]|0)+60>>2]|0,22,0)|0;c[j>>2]=b;c[j>>2]=(c[j>>2]|0)==12?0:b}do if(!(a[(c[l>>2]|0)+4>>0]|0)){if((ai(c[l>>2]|0)|0)!=0?(di(c[(c[l>>2]|0)+208>>2]|0,0)|0)==0:0)break;c[g>>2]=ei(c[l>>2]|0,1)|0;a[(c[l>>2]|0)+18>>0]=0}while(0);a[(c[l>>2]|0)+16>>0]=1;a[(c[l>>2]|0)+19>>0]=0;c[h>>2]=(c[j>>2]|0)==0?c[g>>2]|0:c[j>>2]|0;b=c[h>>2]|0;i=m;return b|0}function Vh(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e+4|0;f=e;c[d>>2]=b;c[f>>2]=0;while(1){if((c[f>>2]|0)>=(c[(c[d>>2]|0)+96>>2]|0))break;_g(c[(c[(c[d>>2]|0)+92>>2]|0)+((c[f>>2]|0)*48|0)+16>>2]|0);c[f>>2]=(c[f>>2]|0)+1}if(!((a[(c[d>>2]|0)+4>>0]|0)!=0?(Wh(c[(c[d>>2]|0)+68>>2]|0)|0)==0:0))Rh(c[(c[d>>2]|0)+68>>2]|0)|0;hc(c[(c[d>>2]|0)+92>>2]|0);c[(c[d>>2]|0)+92>>2]=0;c[(c[d>>2]|0)+96>>2]=0;c[(c[d>>2]|0)+52>>2]=0;i=e;return}function Wh(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return(c[c[b>>2]>>2]|0)==4272|0}function Xh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+8|0;g=e;c[f>>2]=a;a=g;c[a>>2]=b;c[a+4>>2]=d;a=g;a=pb[c[(c[c[f>>2]>>2]|0)+16>>2]&31](c[f>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0;i=e;return a|0}function Yh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=zb[c[(c[c[f>>2]>>2]|0)+20>>2]&63](c[f>>2]|0,c[e>>2]|0)|0;i=d;return a|0}function Zh(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;h=f+24|0;l=f+20|0;g=f+16|0;k=f+8|0;j=f;c[h>>2]=b;c[l>>2]=e;c[g>>2]=0;b=(c[h>>2]|0)+72|0;if(!((c[b>>2]|0)!=0|(c[b+4>>2]|0)!=0)){b=c[g>>2]|0;i=f;return b|0}m=(c[h>>2]|0)+160|0;e=c[m+4>>2]|0;b=k;c[b>>2]=c[m>>2];c[b+4>>2]=e;b=k;e=c[(c[h>>2]|0)+64>>2]|0;if((c[l>>2]|0)!=0|(c[b>>2]|0)==0&(c[b+4>>2]|0)==0)c[g>>2]=Xh(e,0,0)|0;else c[g>>2]=id(e,4240,28,0,0)|0;if((c[g>>2]|0)==0?(a[(c[h>>2]|0)+7>>0]|0)==0:0)c[g>>2]=Yh(c[(c[h>>2]|0)+64>>2]|0,16|d[(c[h>>2]|0)+11>>0])|0;m=k;b=c[m+4>>2]|0;if(!((c[g>>2]|0)==0&((b|0)>0|(b|0)==0&(c[m>>2]|0)>>>0>0))){m=c[g>>2]|0;i=f;return m|0}c[g>>2]=Gg(c[(c[h>>2]|0)+64>>2]|0,j)|0;if(c[g>>2]|0){m=c[g>>2]|0;i=f;return m|0}b=j;l=c[b+4>>2]|0;m=k;e=c[m+4>>2]|0;if(!((l|0)>(e|0)|((l|0)==(e|0)?(c[b>>2]|0)>>>0>(c[m>>2]|0)>>>0:0))){m=c[g>>2]|0;i=f;return m|0}m=k;c[g>>2]=Xh(c[(c[h>>2]|0)+64>>2]|0,c[m>>2]|0,c[m+4>>2]|0)|0;m=c[g>>2]|0;i=f;return m|0}function _h(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e+8|0;g=e+4|0;f=e;c[h>>2]=a;c[g>>2]=b;c[f>>2]=d;a=pb[c[(c[h>>2]|0)+28>>2]&31](c[h>>2]|0,c[g>>2]|0,c[f>>2]|0)|0;i=e;return a|0}function $h(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[d>>2]=a;while(1){a=c[c[d>>2]>>2]|0;c[e>>2]=a;if(!a)break;Rg(c[e>>2]|0)}i=b;return}function ai(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return(c[(c[b>>2]|0)+208>>2]|0)!=0|0}function bi(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;if(!(a[(c[e>>2]|0)+44>>0]|0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<<31>>31|0)|0;c[f>>2]=id(l,a,n,o,D)|0}}else{o=k;c[f>>2]=Xh(c[(c[g>>2]|0)+60>>2]|0,c[o>>2]|0,c[o+4>>2]|0)|0}if(c[f>>2]|0){o=c[f>>2]|0;i=e;return o|0}c[(c[g>>2]|0)+32>>2]=c[m>>2];o=c[f>>2]|0;i=e;return o|0}function di(e,f){e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;i=i+16|0;j=g+8|0;k=g+4|0;h=g;c[j>>2]=e;c[k>>2]=f;if(c[k>>2]|0){f=c[j>>2]|0;if((c[k>>2]|0)>0){hi(f,3+(b[(c[j>>2]|0)+40>>1]|0)|0);a[(c[j>>2]|0)+43>>0]=1;c[h>>2]=1;e=c[h>>2]|0;i=g;return e|0}else{c[h>>2]=(d[f+43>>0]|0)==0&1;e=c[h>>2]|0;i=g;return e|0}}if(!(a[(c[j>>2]|0)+43>>0]|0)){c[h>>2]=0;e=c[h>>2]|0;i=g;return e|0}a[(c[j>>2]|0)+43>>0]=0;if(gi(c[j>>2]|0,3+(b[(c[j>>2]|0)+40>>1]|0)|0)|0)a[(c[j>>2]|0)+43>>0]=1;c[h>>2]=(d[(c[j>>2]|0)+43>>0]|0)==0&1;e=c[h>>2]|0;i=g;return e|0}function ei(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;h=f+8|0;j=f+4|0;g=f;c[h>>2]=b;c[j>>2]=e;c[g>>2]=0;if(!(c[c[(c[h>>2]|0)+60>>2]>>2]|0)){b=c[g>>2]|0;i=f;return b|0}if(d[(c[h>>2]|0)+13>>0]|0)e=0;else e=fi(c[(c[h>>2]|0)+60>>2]|0,c[j>>2]|0)|0;c[g>>2]=e;if((d[(c[h>>2]|0)+17>>0]|0|0)==5){b=c[g>>2]|0;i=f;return b|0}a[(c[h>>2]|0)+17>>0]=c[j>>2];b=c[g>>2]|0;i=f;return b|0}function fi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=zb[c[(c[c[f>>2]>>2]|0)+32>>2]&63](c[f>>2]|0,c[e>>2]|0)|0;i=d;return a|0}function gi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+12|0;j=e+8|0;h=e+4|0;g=e;c[j>>2]=b;c[h>>2]=d;if(a[(c[j>>2]|0)+43>>0]|0){c[f>>2]=0;b=c[f>>2]|0;i=e;return b|0}else{c[g>>2]=ii(c[(c[j>>2]|0)+4>>2]|0,c[h>>2]|0,1,6)|0;c[f>>2]=c[g>>2];b=c[f>>2]|0;i=e;return b|0}return 0}function hi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+4|0;g=e;c[f>>2]=b;c[g>>2]=d;if(a[(c[f>>2]|0)+43>>0]|0){i=e;return}ii(c[(c[f>>2]|0)+4>>2]|0,c[g>>2]|0,1,5)|0;i=e;return}function ii(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;f=i;i=i+16|0;k=f+12|0;j=f+8|0;h=f+4|0;g=f;c[k>>2]=a;c[j>>2]=b;c[h>>2]=d;c[g>>2]=e;a=xb[c[(c[c[k>>2]>>2]|0)+56>>2]&7](c[k>>2]|0,c[j>>2]|0,c[h>>2]|0,c[g>>2]|0)|0;i=f;return a|0}function ji(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;g=f+8|0;h=f+4|0;j=f;c[g>>2]=b;c[h>>2]=d;c[j>>2]=e;if(a[(c[g>>2]|0)+43>>0]|0){i=f;return}ii(c[(c[g>>2]|0)+4>>2]|0,c[h>>2]|0,c[j>>2]|0,9)|0;i=f;return}function ki(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;ni(c[d>>2]|0,0,0)|0;i=b;return 0}function li(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=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<0)<<31>>31|0)|0;c[s>>2]=r;c[s+4>>2]=D}if((j|0)==8){c[h>>2]=3082;s=c[h>>2]|0;i=g;return s|0}else if((j|0)==14){c[h>>2]=0;s=c[h>>2]|0;i=g;return s|0}return 0}function ni(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;i=i+32|0;e=f+20|0;j=f+16|0;g=f+12|0;h=f+8|0;c[e>>2]=a;a=f;c[a>>2]=b;c[a+4>>2]=d;c[j>>2]=c[e>>2];c[g>>2]=c[(c[j>>2]|0)+4>>2];while(1){if(!(c[g>>2]|0))break;c[h>>2]=c[g>>2];c[g>>2]=c[c[g>>2]>>2];hc(c[h>>2]|0)}qi(c[e>>2]|0);i=f;return 0}function oi(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d+4>>2]=a;c[d>>2]=b;i=d;return 0}function pi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+8|0;f=d+4|0;e=d;c[g>>2]=a;c[f>>2]=b;c[e>>2]=c[g>>2];e=(c[e>>2]|0)+8|0;b=c[e+4>>2]|0;a=c[f>>2]|0;c[a>>2]=c[e>>2];c[a+4>>2]=b;i=d;return 0}function qi(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=c[e>>2];a=c[d>>2]|0;_E(a|0,0,ri()|0)|0;c[c[d>>2]>>2]=4272;i=b;return}function ri(){return 40}function si(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;h=i;i=i+32|0;g=h+24|0;j=h+20|0;m=h+16|0;e=h+12|0;l=h+8|0;k=h+4|0;f=h;c[g>>2]=a;c[j>>2]=b;c[m>>2]=d;c[e>>2]=c[(c[g>>2]|0)+40>>2];if(c[e>>2]|0){a=c[e>>2]|0;i=h;return a|0}if((c[m>>2]|0)>=(c[(c[g>>2]|0)+96>>2]|0)){a=c[e>>2]|0;i=h;return a|0}c[k>>2]=(c[m>>2]|0)+((c[j>>2]|0)==1?0:1);c[l>>2]=c[k>>2];while(1){if((c[l>>2]|0)>=(c[(c[g>>2]|0)+96>>2]|0))break;_g(c[(c[(c[g>>2]|0)+92>>2]|0)+((c[l>>2]|0)*48|0)+16>>2]|0);c[l>>2]=(c[l>>2]|0)+1}c[(c[g>>2]|0)+96>>2]=c[k>>2];if((c[j>>2]|0)!=1){if((ai(c[g>>2]|0)|0)==0?(c[c[(c[g>>2]|0)+64>>2]>>2]|0)==0:0){a=c[e>>2]|0;i=h;return a|0}if(!(c[k>>2]|0))j=0;else j=(c[(c[g>>2]|0)+92>>2]|0)+(((c[k>>2]|0)-1|0)*48|0)|0;c[f>>2]=j;c[e>>2]=Pi(c[g>>2]|0,c[f>>2]|0)|0;a=c[e>>2]|0;i=h;return a|0}if(c[k>>2]|0){a=c[e>>2]|0;i=h;return a|0}if(!(c[c[(c[g>>2]|0)+68>>2]>>2]|0)){a=c[e>>2]|0;i=h;return a|0}if(Wh(c[(c[g>>2]|0)+68>>2]|0)|0)c[e>>2]=Xh(c[(c[g>>2]|0)+68>>2]|0,0,0)|0;c[(c[g>>2]|0)+52>>2]=0;a=c[e>>2]|0;i=h;return a|0}function ti(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;l=i;i=i+64|0;n=l+8|0;g=l+56|0;m=l+52|0;t=l+48|0;q=l;r=l+44|0;p=l+40|0;o=l+36|0;j=l+32|0;k=l+28|0;h=l+24|0;s=l+20|0;f=l+16|0;c[g>>2]=b;c[m>>2]=e;c[t>>2]=c[c[g>>2]>>2];c[o>>2]=0;c[k>>2]=1;c[h>>2]=0;c[f>>2]=0;c[j>>2]=Gg(c[(c[g>>2]|0)+64>>2]|0,q)|0;a:do if(!(c[j>>2]|0)){c[h>>2]=c[(c[g>>2]|0)+200>>2];c[j>>2]=ui(c[(c[g>>2]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}c[j>>2]=xi(c[g>>2]|0,(c[g>>2]|0)+72|0,0,1,0)|0;if(c[j>>2]|0)break;c[f>>2]=(c[f>>2]|0)+1;c[p>>2]=(c[p>>2]|0)+1}if((c[j>>2]|0)!=101){o=26;break}e=q;t=c[e+4>>2]|0;b=(c[g>>2]|0)+72|0;c[b>>2]=c[e>>2];c[b+4>>2]=t}if((o|0)==8){if((c[j>>2]|0)!=101)break;c[j>>2]=0;break}else if((o|0)==26){if((c[j>>2]|0)!=522)break;c[j>>2]=0;break}}}while(0);a[(c[g>>2]|0)+18>>0]=a[(c[g>>2]|0)+12>>0]|0;if(!(c[j>>2]|0)){c[h>>2]=c[(c[g>>2]|0)+200>>2];c[j>>2]=ui(c[(c[g>>2]|0)+64>>2]|0,c[h>>2]|0,(c[(c[c[g>>2]>>2]|0)+8>>2]|0)+1|0)|0}do if(!(c[j>>2]|0)){if((d[(c[g>>2]|0)+16>>0]|0)<4?(d[(c[g>>2]|0)+16>>0]|0)!=0:0)break;c[j>>2]=kd(c[g>>2]|0,0)|0}while(0);if(!(c[j>>2]|0))c[j>>2]=Uh(c[g>>2]|0,(a[c[h>>2]>>0]|0)!=0&1,0)|0;if((c[j>>2]|0)==0?(c[k>>2]|0)!=0?(a[c[h>>2]>>0]|0)!=0:0:0)c[j>>2]=yi(c[g>>2]|0,c[h>>2]|0)|0;if(!((c[m>>2]|0)!=0&(c[f>>2]|0)!=0)){b=c[g>>2]|0;zi(b);b=c[j>>2]|0;i=l;return b|0}b=c[(c[g>>2]|0)+172>>2]|0;c[n>>2]=c[f>>2];c[n+4>>2]=b;tc(539,4352,n);b=c[g>>2]|0;zi(b);b=c[j>>2]|0;i=l;return b|0}function ui(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=i;i=i+48|0;h=j+36|0;k=j+32|0;l=j+28|0;q=j+24|0;g=j+20|0;f=j+16|0;n=j;p=j+12|0;m=j+8|0;o=j+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>>2]|0)|0,(g|0)!=(c[z>>2]|0)):0){c[l>>2]=101;g=c[l>>2]|0;i=m;return g|0}}if((c[A>>2]|0)!=0?(g=Wg(c[A>>2]|0,c[s>>2]|0)|0,c[o>>2]=g,(g|0)!=0):0){c[l>>2]=c[o>>2];g=c[l>>2]|0;i=m;return g|0}if((c[s>>2]|0)==1?(b[(c[r>>2]|0)+142>>1]|0)!=(d[(c[u>>2]|0)+20>>0]|0):0)b[(c[r>>2]|0)+142>>1]=d[(c[u>>2]|0)+20>>0]|0;if(ai(c[r>>2]|0)|0)c[n>>2]=0;else c[n>>2]=Hi(c[r>>2]|0,c[s>>2]|0)|0;if(c[x>>2]|0){if(d[(c[r>>2]|0)+7>>0]|0)z=1;else{g=c[w>>2]|0;j=c[g+4>>2]|0;z=(c[r>>2]|0)+80|0;h=c[z+4>>2]|0;z=(j|0)<(h|0)|((j|0)==(h|0)?(c[g>>2]|0)>>>0<=(c[z>>2]|0)>>>0:0)}c[v>>2]=z&1}else{if(!(c[n>>2]|0))z=1;else z=0==(e[(c[n>>2]|0)+24>>1]&4|0);c[v>>2]=z&1}do if(c[c[(c[r>>2]|0)+60>>2]>>2]|0){if((d[(c[r>>2]|0)+16>>0]|0)>=4){if(!(c[v>>2]|0)){y=44;break}}else if(!((c[v>>2]|0)!=0?(d[(c[r>>2]|0)+16>>0]|0)==0:0)){y=44;break}h=c[(c[r>>2]|0)+152>>2]|0;h=lF((c[s>>2]|0)-1|0,0,h|0,((h|0)<0)<<31>>31|0)|0;g=t;c[g>>2]=h;c[g+4>>2]=D;g=t;c[o>>2]=id(c[(c[r>>2]|0)+60>>2]|0,c[u>>2]|0,c[(c[r>>2]|0)+152>>2]|0,c[g>>2]|0,c[g+4>>2]|0)|0;if((c[s>>2]|0)>>>0>(c[(c[r>>2]|0)+32>>2]|0)>>>0)c[(c[r>>2]|0)+32>>2]=c[s>>2];if(c[(c[r>>2]|0)+88>>2]|0){Ii(c[(c[r>>2]|0)+88>>2]|0,c[s>>2]|0,c[u>>2]|0);c[u>>2]=c[u>>2]}}else y=44;while(0);do if((y|0)==44?(c[x>>2]|0)==0&(c[n>>2]|0)==0:0){g=(c[r>>2]|0)+20|0;a[g>>0]=d[g>>0]|2;c[o>>2]=Xc(c[r>>2]|0,c[s>>2]|0,n,1)|0;g=(c[r>>2]|0)+20|0;a[g>>0]=d[g>>0]&-3;if(!(c[o>>2]|0)){g=(c[n>>2]|0)+24|0;b[g>>1]=e[g>>1]&-9;Ji(c[n>>2]|0);break}c[l>>2]=c[o>>2];g=c[l>>2]|0;i=m;return g|0}while(0);if(c[n>>2]|0){c[p>>2]=c[(c[n>>2]|0)+4>>2];dF(c[p>>2]|0,c[u>>2]|0,c[(c[r>>2]|0)+152>>2]|0)|0;rb[c[(c[r>>2]|0)+196>>2]&31](c[n>>2]|0);do if(c[x>>2]|0){if((c[q>>2]|0)!=0?(h=c[w>>2]|0,k=c[h+4>>2]|0,g=(c[r>>2]|0)+80|0,j=c[g+4>>2]|0,!((k|0)<(j|0)|((k|0)==(j|0)?(c[h>>2]|0)>>>0<=(c[g>>2]|0)>>>0:0))):0)break;Rg(c[n>>2]|0)}while(0);if((c[s>>2]|0)==1){q=(c[r>>2]|0)+100|0;r=(c[p>>2]|0)+24|0;p=q+16|0;do{a[q>>0]=a[r>>0]|0;q=q+1|0;r=r+1|0}while((q|0)<(p|0))}Ki(c[n>>2]|0)}c[l>>2]=c[o>>2];g=c[l>>2]|0;i=m;return g|0}c[l>>2]=0;g=c[l>>2]|0;i=m;return g|0}c[l>>2]=101;g=c[l>>2]|0;i=m;return g|0}function yi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=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;s=i;i=i+64|0;t=s+60|0;j=s+56|0;h=s+52|0;g=s+48|0;m=s+44|0;f=s+40|0;e=s+36|0;r=s;p=s+32|0;l=s+28|0;n=s+24|0;q=s+16|0;k=s+12|0;o=s+8|0;c[t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0;else d=0;c[k>>2]=d&1;if(c[k>>2]|0)break a}u=(Mb(c[p>>2]|0)|0)+1|0;c[p>>2]=(c[p>>2]|0)+u}Rh(c[m>>2]|0)|0;c[g>>2]=_h(c[h>>2]|0,c[j>>2]|0,0)|0}}while(0);hc(c[e>>2]|0);if(!(c[m>>2]|0)){u=c[g>>2]|0;i=s;return u|0}Rh(c[m>>2]|0)|0;hc(c[m>>2]|0);u=c[g>>2]|0;i=s;return u|0}function zi(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;c[b>>2]=a;if((d[(c[b>>2]|0)+12>>0]|0|0)==0?((Ai(c[(c[b>>2]|0)+60>>2]|0)|0)&4096|0)==0:0){a=Bi(c[(c[b>>2]|0)+60>>2]|0)|0;c[(c[b>>2]|0)+148>>2]=a;i=e;return}c[(c[b>>2]|0)+148>>2]=512;i=e;return}function Ai(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=ub[c[(c[c[d>>2]>>2]|0)+48>>2]&31](c[d>>2]|0)|0;i=b;return a|0}function Bi(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=Ci(c[e>>2]|0)|0;if((c[d>>2]|0)>=32){if((c[d>>2]|0)>65536)c[d>>2]=65536}else c[d>>2]=512;i=b;return c[d>>2]|0}function Ci(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=c[(c[c[e>>2]>>2]|0)+44>>2];if(!(c[d>>2]|0)){e=4096;i=b;return e|0}e=ub[c[d>>2]&31](c[e>>2]|0)|0;i=b;return e|0}function Di(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,j=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;n=h+20|0;m=h+16|0;l=h+12|0;k=h+8|0;j=h+4|0;g=h;c[n>>2]=a;c[m>>2]=b;c[l>>2]=d;c[k>>2]=e;c[j>>2]=f;c[g>>2]=Ab[c[(c[n>>2]|0)+24>>2]&15](c[n>>2]|0,c[m>>2]|0,c[l>>2]|0,c[k>>2]&556927,c[j>>2]|0)|0;i=h;return c[g>>2]|0}function Ei(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,j=0,k=0,l=0;g=i;i=i+32|0;k=g+16|0;j=g+12|0;h=g+8|0;l=g;c[k>>2]=a;c[j>>2]=b;c[h>>2]=d;a=l;c[a>>2]=e;c[a+4>>2]=f;a=l;a=Ab[c[(c[c[k>>2]>>2]|0)+8>>2]&15](c[k>>2]|0,c[j>>2]|0,c[h>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0;i=g;return a|0}function Fi(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+32|0;k=f+16|0;l=f;j=f+12|0;h=f+20|0;g=f+8|0;c[k>>2]=a;a=l;c[a>>2]=b;c[a+4>>2]=d;c[j>>2]=e;a=l;c[g>>2]=Ei(c[k>>2]|0,h,4,c[a>>2]|0,c[a+4>>2]|0)|0;if(c[g>>2]|0){l=c[g>>2]|0;i=f;return l|0}l=Hh(h)|0;c[c[j>>2]>>2]=l;l=c[g>>2]|0;i=f;return l|0}function Gi(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;j=e+12|0;h=e+8|0;f=e+4|0;g=e;c[j>>2]=a;c[h>>2]=b;c[f>>2]=c[(c[j>>2]|0)+48>>2];c[g>>2]=(c[(c[j>>2]|0)+152>>2]|0)-200;while(1){if((c[g>>2]|0)<=0)break;c[f>>2]=(c[f>>2]|0)+(d[(c[h>>2]|0)+(c[g>>2]|0)>>0]|0);c[g>>2]=(c[g>>2]|0)-200}i=e;return c[f>>2]|0}function Hi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+8|0;f=d+4|0;e=d;c[g>>2]=a;c[f>>2]=b;c[e>>2]=Li(c[(c[g>>2]|0)+204>>2]|0,c[f>>2]|0,0)|0;a=Mi(c[(c[g>>2]|0)+204>>2]|0,c[f>>2]|0,c[e>>2]|0)|0;i=d;return a|0}function Ii(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;k=e+16|0;g=e+12|0;h=e+8|0;f=e+4|0;j=e;c[k>>2]=a;c[g>>2]=b;c[h>>2]=d;c[f>>2]=c[k>>2];while(1){if(!(c[f>>2]|0))break;if(((Qc(c[(c[f>>2]|0)+28>>2]|0)|0)==0?(c[g>>2]|0)>>>0<(c[(c[f>>2]|0)+16>>2]|0)>>>0:0)?(c[j>>2]=Yc(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0,1)|0,(c[j>>2]|0)!=0):0)c[(c[f>>2]|0)+28>>2]=c[j>>2];c[f>>2]=c[(c[f>>2]|0)+44>>2]}i=e;return}function Ji(a){a=a|0;var d=0,f=0;d=i;i=i+16|0;f=d;c[f>>2]=a;a=(c[f>>2]|0)+24|0;b[a>>1]=(e[a>>1]|0)&-33;if((e[(c[f>>2]|0)+24>>1]|0)&2){i=d;return}a=(c[f>>2]|0)+24|0;b[a>>1]=e[a>>1]|0|2;Sg(c[f>>2]|0,2);i=d;return}function Ki(a){a=a|0;var d=0,f=0;d=i;i=i+16|0;f=d;c[f>>2]=a;a=(c[f>>2]|0)+26|0;b[a>>1]=(b[a>>1]|0)+ -1<<16>>16;if(b[(c[f>>2]|0)+26>>1]|0){i=d;return}a=(c[(c[f>>2]|0)+28>>2]|0)+12|0;c[a>>2]=(c[a>>2]|0)+ -1;a=c[f>>2]|0;if(!(e[(c[f>>2]|0)+24>>1]&2)){Tg(a);i=d;return}if(!(c[a+36>>2]|0)){i=d;return}Sg(c[f>>2]|0,3);i=d;return}function Li(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;j=f+12|0;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[u+4>>2]|0,c[t>>2]|0,c[t+4>>2]|0)|0;u=(c[(c[h>>2]|0)+152>>2]|0)+8|0;u=jF(t|0,D|0,u|0,((u|0)<0)<<31>>31|0)|0;c[q>>2]=u}c[e>>2]=0;while(1){if(c[l>>2]|0)continue b;if((c[e>>2]|0)>>>0>=(c[q>>2]|0)>>>0)continue b;t=(c[h>>2]|0)+72|0;d=c[t+4>>2]|0;u=p;b=c[u+4>>2]|0;if(!((d|0)<(b|0)|((d|0)==(b|0)?(c[t>>2]|0)>>>0<(c[u>>2]|0)>>>0:0)))continue b;c[l>>2]=xi(c[h>>2]|0,(c[h>>2]|0)+72|0,c[n>>2]|0,1,1)|0;c[e>>2]=(c[e>>2]|0)+1}}c:do if(c[j>>2]|0){t=4+(c[(c[h>>2]|0)+152>>2]|0)|0;t=lF(c[(c[j>>2]|0)+24>>2]|0,0,t|0,((t|0)<0)<<31>>31|0)|0;u=m;c[u>>2]=t;c[u+4>>2]=D;if(ai(c[h>>2]|0)|0)c[l>>2]=Ri(c[(c[h>>2]|0)+208>>2]|0,(c[j>>2]|0)+28|0)|0;c[k>>2]=c[(c[j>>2]|0)+24>>2];while(1){if(c[l>>2]|0)break c;if((c[k>>2]|0)>>>0>=(c[(c[h>>2]|0)+52>>2]|0)>>>0)break c;c[l>>2]=xi(c[h>>2]|0,m,c[n>>2]|0,0,1)|0;c[k>>2]=(c[k>>2]|0)+1}}while(0);_g(c[n>>2]|0);if(!(c[l>>2]|0)){b=p;t=c[b+4>>2]|0;u=(c[h>>2]|0)+72|0;c[u>>2]=c[b>>2];c[u+4>>2]=t}c[o>>2]=c[l>>2];u=c[o>>2]|0;i=g;return u|0}function Qi(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;g=b+12|0;d=b+8|0;e=b+4|0;f=b;c[g>>2]=a;c[(c[g>>2]|0)+24>>2]=c[(c[g>>2]|0)+28>>2];c[d>>2]=Xi(c[(c[g>>2]|0)+208>>2]|0,36,c[g>>2]|0)|0;c[e>>2]=Zi(c[(c[g>>2]|0)+204>>2]|0)|0;while(1){if(!((c[e>>2]|0)!=0&(c[d>>2]|0)==0))break;c[f>>2]=c[(c[e>>2]|0)+12>>2];c[d>>2]=Yi(c[g>>2]|0,c[(c[e>>2]|0)+20>>2]|0)|0;c[e>>2]=c[f>>2]}i=b;return c[d>>2]|0}function Ri(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;g=e+8|0;f=e+4|0;d=e;c[g>>2]=a;c[f>>2]=b;c[d>>2]=0;if((c[(c[f>>2]|0)+12>>2]|0)!=(c[(c[g>>2]|0)+104>>2]|0)){c[c[f>>2]>>2]=0;c[(c[f>>2]|0)+12>>2]=c[(c[g>>2]|0)+104>>2]}if((c[c[f>>2]>>2]|0)>>>0>=(c[(c[g>>2]|0)+68>>2]|0)>>>0){a=c[d>>2]|0;i=e;return a|0}c[(c[g>>2]|0)+68>>2]=c[c[f>>2]>>2];c[(c[g>>2]|0)+76>>2]=c[(c[f>>2]|0)+4>>2];c[(c[g>>2]|0)+80>>2]=c[(c[f>>2]|0)+8>>2];Si(c[g>>2]|0);a=c[d>>2]|0;i=e;return a|0}function Si(a){a=a|0;var d=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;d=i;i=i+32|0;l=d+24|0;f=d+20|0;g=d+16|0;m=d+12|0;h=d+8|0;j=d+4|0;k=d;c[l>>2]=a;c[f>>2]=0;c[g>>2]=0;c[m>>2]=0;c[h>>2]=0;if(!(c[(c[l>>2]|0)+68>>2]|0)){i=d;return}a=c[l>>2]|0;Ti(a,Ui(c[(c[l>>2]|0)+68>>2]|0)|0,f,g,m)|0;c[h>>2]=(c[(c[l>>2]|0)+68>>2]|0)-(c[m>>2]|0);c[k>>2]=0;while(1){if((c[k>>2]|0)>=8192)break;if((e[(c[f>>2]|0)+(c[k>>2]<<1)>>1]|0|0)>(c[h>>2]|0))b[(c[f>>2]|0)+(c[k>>2]<<1)>>1]=0;c[k>>2]=(c[k>>2]|0)+1}c[j>>2]=(c[f>>2]|0)-((c[g>>2]|0)+((c[h>>2]|0)+1<<2));_E((c[g>>2]|0)+((c[h>>2]|0)+1<<2)|0,0,c[j>>2]|0)|0;i=d;return}function Ti(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,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;n=i;i=i+48|0;q=n+32|0;p=n+28|0;m=n+24|0;k=n+20|0;o=n+16|0;h=n+12|0;j=n+8|0;g=n+4|0;l=n;c[q>>2]=a;c[p>>2]=b;c[m>>2]=d;c[k>>2]=e;c[o>>2]=f;c[h>>2]=Vi(c[q>>2]|0,c[p>>2]|0,j)|0;if(c[h>>2]|0){q=c[h>>2]|0;i=n;return q|0}c[l>>2]=(c[j>>2]|0)+16384;if(!(c[p>>2]|0)){c[j>>2]=(c[j>>2]|0)+136;c[g>>2]=0}else c[g>>2]=4062+((c[p>>2]|0)-1<<12);c[c[k>>2]>>2]=(c[j>>2]|0)+ -4;c[c[m>>2]>>2]=c[l>>2];c[c[o>>2]>>2]=c[g>>2];q=c[h>>2]|0;i=n;return q|0}function Ui(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;e=d+4|0;b=d;c[e>>2]=a;c[b>>2]=(((c[e>>2]|0)+4096-4062-1|0)>>>0)/4096|0;i=d;return c[b>>2]|0}function Vi(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;m=i;i=i+32|0;g=m+24|0;l=m+20|0;h=m+16|0;j=m+12|0;k=m+8|0;o=m+4|0;n=m;c[l>>2]=b;c[h>>2]=e;c[j>>2]=f;c[k>>2]=0;do if((c[(c[l>>2]|0)+24>>2]|0)<=(c[h>>2]|0)){c[o>>2]=(c[h>>2]|0)+1<<2;c[n>>2]=jc(c[(c[l>>2]|0)+32>>2]|0,c[o>>2]|0)|0;if(c[n>>2]|0){_E((c[n>>2]|0)+(c[(c[l>>2]|0)+24>>2]<<2)|0,0,(c[h>>2]|0)+1-(c[(c[l>>2]|0)+24>>2]|0)<<2|0)|0;c[(c[l>>2]|0)+32>>2]=c[n>>2];c[(c[l>>2]|0)+24>>2]=(c[h>>2]|0)+1;break}c[c[j>>2]>>2]=0;c[g>>2]=7;b=c[g>>2]|0;i=m;return b|0}while(0);do if(!(c[(c[(c[l>>2]|0)+32>>2]|0)+(c[h>>2]<<2)>>2]|0))if((d[(c[l>>2]|0)+43>>0]|0|0)==2){b=Mc(32768,0)|0;c[(c[(c[l>>2]|0)+32>>2]|0)+(c[h>>2]<<2)>>2]=b;if(c[(c[(c[l>>2]|0)+32>>2]|0)+(c[h>>2]<<2)>>2]|0)break;c[k>>2]=7;break}else{c[k>>2]=Wi(c[(c[l>>2]|0)+4>>2]|0,c[h>>2]|0,32768,d[(c[l>>2]|0)+44>>0]|0,(c[(c[l>>2]|0)+32>>2]|0)+(c[h>>2]<<2)|0)|0;if((c[k>>2]|0)!=8)break;b=(c[l>>2]|0)+46|0;a[b>>0]=d[b>>0]|0|2;c[k>>2]=0;break}while(0);c[c[j>>2]>>2]=c[(c[(c[l>>2]|0)+32>>2]|0)+(c[h>>2]<<2)>>2];c[g>>2]=c[k>>2];b=c[g>>2]|0;i=m;return b|0}function Wi(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,j=0,k=0,l=0,m=0;g=i;i=i+32|0;m=g+16|0;l=g+12|0;k=g+8|0;j=g+4|0;h=g;c[m>>2]=a;c[l>>2]=b;c[k>>2]=d;c[j>>2]=e;c[h>>2]=f;a=Ab[c[(c[c[m>>2]>>2]|0)+52>>2]&15](c[m>>2]|0,c[l>>2]|0,c[k>>2]|0,c[j>>2]|0,c[h>>2]|0)|0;i=g;return a|0}function Xi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;l=i;i=i+32|0;h=l+20|0;f=l+16|0;m=l+12|0;g=l+8|0;k=l+4|0;j=l;c[h>>2]=b;c[f>>2]=d;c[m>>2]=e;c[g>>2]=0;if(!(a[(c[h>>2]|0)+44>>0]|0)){b=c[g>>2]|0;i=l;return b|0}c[k>>2]=c[(c[h>>2]|0)+68>>2];b=(c[h>>2]|0)+52|0;b=b+0|0;d=(mj(c[h>>2]|0)|0)+0|0;e=b+48|0;do{a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0}while((b|0)<(e|0));c[j>>2]=(c[(c[h>>2]|0)+68>>2]|0)+1;while(1){if(c[g>>2]|0)break;if((c[j>>2]|0)>>>0>(c[k>>2]|0)>>>0)break;e=c[f>>2]|0;d=c[m>>2]|0;b=nj(c[h>>2]|0,c[j>>2]|0)|0;c[g>>2]=zb[e&63](d,b)|0;c[j>>2]=(c[j>>2]|0)+1}if((c[k>>2]|0)==(c[(c[h>>2]|0)+68>>2]|0)){b=c[g>>2]|0;i=l;return b|0}Si(c[h>>2]|0);b=c[g>>2]|0;i=l;return b|0}function Yi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;k=e+20|0;j=e+16|0;d=e+12|0;f=e+8|0;g=e+4|0;h=e;c[k>>2]=a;c[j>>2]=b;c[d>>2]=0;c[f>>2]=c[k>>2];c[g>>2]=Hi(c[f>>2]|0,c[j>>2]|0)|0;do if(c[g>>2]|0){if((aj(c[g>>2]|0)|0)==1){bj(c[g>>2]|0);break}c[h>>2]=0;c[d>>2]=cj(c[(c[f>>2]|0)+208>>2]|0,c[(c[g>>2]|0)+20>>2]|0,h)|0;if(!(c[d>>2]|0))c[d>>2]=dj(c[g>>2]|0,c[h>>2]|0)|0;if(!(c[d>>2]|0))rb[c[(c[f>>2]|0)+196>>2]&31](c[g>>2]|0);ej(c[g>>2]|0)}while(0);Og(c[(c[f>>2]|0)+88>>2]|0);i=e;return c[d>>2]|0}function Zi(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;b=d+4|0;e=d;c[b>>2]=a;c[e>>2]=c[c[b>>2]>>2];while(1){if(!(c[e>>2]|0))break;c[(c[e>>2]|0)+12>>2]=c[(c[e>>2]|0)+32>>2];c[e>>2]=c[(c[e>>2]|0)+32>>2]}e=_i(c[c[b>>2]>>2]|0)|0;i=d;return e|0}function _i(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;f=i;i=i+144|0;h=f+136|0;b=f+8|0;d=f+4|0;e=f;c[h>>2]=a;j=b+0|0;a=j+128|0;do{c[j>>2]=0;j=j+4|0}while((j|0)<(a|0));while(1){if(!(c[h>>2]|0))break;c[d>>2]=c[h>>2];c[h>>2]=c[(c[d>>2]|0)+12>>2];c[(c[d>>2]|0)+12>>2]=0;c[e>>2]=0;while(1){if((c[e>>2]|0)>=31)break;if(!(c[b+(c[e>>2]<<2)>>2]|0)){g=6;break}c[d>>2]=$i(c[b+(c[e>>2]<<2)>>2]|0,c[d>>2]|0)|0;c[b+(c[e>>2]<<2)>>2]=0;c[e>>2]=(c[e>>2]|0)+1}if((g|0)==6){g=0;c[b+(c[e>>2]<<2)>>2]=c[d>>2]}if((c[e>>2]|0)!=31)continue;j=$i(c[b+(c[e>>2]<<2)>>2]|0,c[d>>2]|0)|0;c[b+(c[e>>2]<<2)>>2]=j}c[d>>2]=c[b>>2];c[e>>2]=1;while(1){g=c[d>>2]|0;if((c[e>>2]|0)>=32)break;c[d>>2]=$i(g,c[b+(c[e>>2]<<2)>>2]|0)|0;c[e>>2]=(c[e>>2]|0)+1}i=f;return g|0}function $i(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;g=i;i=i+64|0;d=g+52|0;h=g+48|0;f=g+8|0;e=g;c[d>>2]=a;c[h>>2]=b;c[e>>2]=f;while(1){if(c[d>>2]|0)a=(c[h>>2]|0)!=0;else a=0;b=c[d>>2]|0;if(!a)break;if((c[b+20>>2]|0)>>>0<(c[(c[h>>2]|0)+20>>2]|0)>>>0){c[(c[e>>2]|0)+12>>2]=c[d>>2];c[e>>2]=c[d>>2];c[d>>2]=c[(c[d>>2]|0)+12>>2];continue}else{c[(c[e>>2]|0)+12>>2]=c[h>>2];c[e>>2]=c[h>>2];c[h>>2]=c[(c[h>>2]|0)+12>>2];continue}}if(b){c[(c[e>>2]|0)+12>>2]=c[d>>2];a=f+12|0;a=c[a>>2]|0;i=g;return a|0}if(c[h>>2]|0){c[(c[e>>2]|0)+12>>2]=c[h>>2];a=f+12|0;a=c[a>>2]|0;i=g;return a|0}else{c[(c[e>>2]|0)+12>>2]=0;a=f+12|0;a=c[a>>2]|0;i=g;return a|0}return 0}function aj(a){a=a|0;var d=0,e=0;e=i;i=i+16|0;d=e;c[d>>2]=a;i=e;return b[(c[d>>2]|0)+26>>1]|0}function bj(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;if((e[(c[b>>2]|0)+24>>1]|0)&2)Sg(c[b>>2]|0,1);a=(c[(c[b>>2]|0)+28>>2]|0)+12|0;c[a>>2]=(c[a>>2]|0)+ -1;if((c[(c[b>>2]|0)+20>>2]|0)==1)c[(c[(c[b>>2]|0)+28>>2]|0)+44>>2]=0;vb[c[38640+136>>2]&63](c[(c[(c[b>>2]|0)+28>>2]|0)+40>>2]|0,c[c[b>>2]>>2]|0,1);i=d;return}function cj(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=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;j=i;i=i+64|0;h=j+52|0;m=j+48|0;o=j+44|0;g=j+40|0;l=j+36|0;v=j+32|0;q=j+28|0;r=j+24|0;s=j+20|0;t=j+16|0;p=j+12|0;n=j+8|0;k=j+4|0;u=j;c[m>>2]=a;c[o>>2]=d;c[g>>2]=f;c[l>>2]=0;c[v>>2]=c[(c[m>>2]|0)+68>>2];if((c[v>>2]|0)!=0?(b[(c[m>>2]|0)+40>>1]|0)!=0:0){c[q>>2]=Ui(c[v>>2]|0)|0;a:while(1){if(!((c[q>>2]|0)>=0&(c[l>>2]|0)==0)){m=17;break}c[k>>2]=Ti(c[m>>2]|0,c[q>>2]|0,r,s,t)|0;if(c[k>>2]|0){m=7;break}c[n>>2]=8192;c[p>>2]=jj(c[o>>2]|0)|0;while(1){if(!(b[(c[r>>2]|0)+(c[p>>2]<<1)>>1]|0))break;c[u>>2]=(e[(c[r>>2]|0)+(c[p>>2]<<1)>>1]|0)+(c[t>>2]|0);if((c[u>>2]|0)>>>0<=(c[v>>2]|0)>>>0?(c[(c[s>>2]|0)+(e[(c[r>>2]|0)+(c[p>>2]<<1)>>1]<<2)>>2]|0)==(c[o>>2]|0):0)c[l>>2]=c[u>>2];a=c[n>>2]|0;c[n>>2]=a+ -1;if(!a){m=14;break a}c[p>>2]=lj(c[p>>2]|0)|0}c[q>>2]=(c[q>>2]|0)+ -1}if((m|0)==7){c[h>>2]=c[k>>2];a=c[h>>2]|0;i=j;return a|0}else if((m|0)==14){c[h>>2]=kj(50484)|0;a=c[h>>2]|0;i=j;return a|0}else if((m|0)==17){c[c[g>>2]>>2]=c[l>>2];c[h>>2]=0;a=c[h>>2]|0;i=j;return a|0}}c[c[g>>2]>>2]=0;c[h>>2]=0;a=c[h>>2]|0;i=j;return a|0}function dj(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;e=i;i=i+48|0;j=e+32|0;m=e+28|0;l=e+24|0;k=e+20|0;f=e+16|0;h=e+12|0;n=e;g=e+8|0;c[j>>2]=b;c[m>>2]=d;c[l>>2]=c[(c[j>>2]|0)+16>>2];c[k>>2]=c[(c[j>>2]|0)+20>>2];c[f>>2]=0;c[h>>2]=c[(c[l>>2]|0)+152>>2];if(c[m>>2]|0)c[f>>2]=ij(c[(c[l>>2]|0)+208>>2]|0,c[m>>2]|0,c[h>>2]|0,c[(c[j>>2]|0)+4>>2]|0)|0;else{m=c[(c[l>>2]|0)+152>>2]|0;m=lF((c[k>>2]|0)-1|0,0,m|0,((m|0)<0)<<31>>31|0)|0;b=n;c[b>>2]=m;c[b+4>>2]=D;b=n;b=Ei(c[(c[l>>2]|0)+60>>2]|0,c[(c[j>>2]|0)+4>>2]|0,c[h>>2]|0,c[b>>2]|0,c[b+4>>2]|0)|0;c[f>>2]=b;c[f>>2]=(c[f>>2]|0)==522?0:b}if((c[k>>2]|0)!=1){b=c[f>>2]|0;i=e;return b|0}if(c[f>>2]|0){h=(c[l>>2]|0)+100|0;g=h+16|0;do{a[h>>0]=255;h=h+1|0}while((h|0)<(g|0));b=c[f>>2]|0;i=e;return b|0}else{c[g>>2]=(c[(c[j>>2]|0)+4>>2]|0)+24;h=(c[l>>2]|0)+100|0;j=(c[g>>2]|0)+0|0;g=h+16|0;do{a[h>>0]=a[j>>0]|0;h=h+1|0;j=j+1|0}while((h|0)<(g|0));b=c[f>>2]|0;i=e;return b|0}return 0}function ej(a){a=a|0;var b=0,d=0,f=0;b=i;i=i+16|0;f=b+4|0;d=b;c[f>>2]=a;c[d>>2]=c[(c[f>>2]|0)+16>>2];a=c[f>>2]|0;if((e[(c[f>>2]|0)+24>>1]|0)&64){fj(a);f=c[d>>2]|0;gj(f);i=b;return}else{Ki(a);f=c[d>>2]|0;gj(f);i=b;return}}function fj(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+4|0;f=b;c[d>>2]=a;c[f>>2]=c[(c[d>>2]|0)+16>>2];e=(c[f>>2]|0)+120|0;c[e>>2]=(c[e>>2]|0)+ -1;c[(c[d>>2]|0)+12>>2]=c[(c[f>>2]|0)+136>>2];c[(c[f>>2]|0)+136>>2]=c[d>>2];e=c[(c[f>>2]|0)+60>>2]|0;a=c[(c[f>>2]|0)+152>>2]|0;a=lF((c[(c[d>>2]|0)+20>>2]|0)-1|0,0,a|0,((a|0)<0)<<31>>31|0)|0;hj(e,a,D,c[(c[d>>2]|0)+4>>2]|0)|0;i=b;return}function gj(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if(c[(c[d>>2]|0)+120>>2]|0){i=b;return}if(Fg(c[(c[d>>2]|0)+204>>2]|0)|0){i=b;return}Qh(c[d>>2]|0);i=b;return}function hj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;i=i+16|0;c[f+12>>2]=a;a=f;c[a>>2]=b;c[a+4>>2]=d;c[f+8>>2]=e;i=f;return 0}function ij(a,b,d,f){a=a|0;b=b|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;l=g+24|0;n=g+20|0;h=g+16|0;k=g+12|0;j=g+8|0;m=g;c[l>>2]=a;c[n>>2]=b;c[h>>2]=d;c[k>>2]=f;c[j>>2]=e[(c[l>>2]|0)+66>>1];c[j>>2]=(c[j>>2]&65024)+((c[j>>2]&1)<<16);b=(c[j>>2]|0)+24|0;b=lF((c[n>>2]|0)-1|0,0,b|0,((b|0)<0)<<31>>31|0)|0;b=bF(32,0,b|0,D|0)|0;b=bF(b|0,D|0,24,0)|0;a=m;c[a>>2]=b;c[a+4>>2]=D;a=m;a=Ei(c[(c[l>>2]|0)+8>>2]|0,c[k>>2]|0,(c[h>>2]|0)>(c[j>>2]|0)?c[j>>2]|0:c[h>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0;i=g;return a|0}function jj(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return(c[b>>2]|0)*383&8191|0}function kj(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b;e=b+8|0;c[e>>2]=a;e=c[e>>2]|0;a=(vf()|0)+20|0;c[d>>2]=e;c[d+4>>2]=a;tc(11,4392,d);i=b;return 11}function lj(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return(c[b>>2]|0)+1&8191|0}function mj(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[c[(c[b>>2]|0)+32>>2]>>2]|0}function nj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;e=d+12|0;f=d+8|0;h=d+4|0;g=d;c[f>>2]=a;c[h>>2]=b;c[g>>2]=Ui(c[h>>2]|0)|0;b=c[h>>2]|0;if(!(c[g>>2]|0)){c[e>>2]=c[(c[c[(c[f>>2]|0)+32>>2]>>2]|0)+(34+b-1<<2)>>2];h=c[e>>2]|0;i=d;return h|0}else{c[e>>2]=c[(c[(c[(c[f>>2]|0)+32>>2]|0)+(c[g>>2]<<2)>>2]|0)+((((b-1-4062|0)>>>0)%4096|0)<<2)>>2];h=c[e>>2]|0;i=d;return h|0}return 0}function oj(a){a=a|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=a;bi(c[e>>2]|0)|0;if((b[(c[e>>2]|0)+40>>1]|0)<0){i=d;return}hi(c[e>>2]|0,3+(b[(c[e>>2]|0)+40>>1]|0)|0);b[(c[e>>2]|0)+40>>1]=-1;i=d;return}function pj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=zb[c[(c[c[f>>2]>>2]|0)+28>>2]&63](c[f>>2]|0,c[e>>2]|0)|0;i=d;return a|0}function qj(b,d,e,f,g,h,j,k,l){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;n=i;i=i+64|0;m=n+48|0;p=n+44|0;r=n+40|0;t=n+36|0;u=n+32|0;v=n+28|0;x=n+24|0;w=n+20|0;z=n+16|0;s=n+12|0;o=n+8|0;y=n+4|0;q=n;c[p>>2]=b;c[r>>2]=d;c[t>>2]=e;c[u>>2]=f;c[v>>2]=g;c[x>>2]=h;c[w>>2]=j;c[z>>2]=k;c[s>>2]=l;c[y>>2]=0;c[q>>2]=c[r>>2];if(a[(c[p>>2]|0)+46>>0]|0){c[m>>2]=8;b=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b[c[(c[c[h>>2]>>2]|0)+40>>2]&31](c[h>>2]|0,c[g>>2]|0,c[f>>2]|0)|0;i=e;return}function sj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;h=e+16|0;g=e+24|0;j=e+8|0;k=e;f=e+20|0;c[g>>2]=a;a=j;c[a>>2]=b;c[a+4>>2]=d;kh();c[f>>2]=Gg(c[(c[g>>2]|0)+8>>2]|0,k)|0;if((c[f>>2]|0)==0?(b=k,d=c[b+4>>2]|0,a=j,k=c[a+4>>2]|0,(d|0)>(k|0)|((d|0)==(k|0)?(c[b>>2]|0)>>>0>(c[a>>2]|0)>>>0:0)):0){a=j;c[f>>2]=Xh(c[(c[g>>2]|0)+8>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0}lh();if(!(c[f>>2]|0)){i=e;return}a=c[f>>2]|0;c[h>>2]=c[(c[g>>2]|0)+100>>2];tc(a,4440,h);i=e;return}function tj(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;g=e+8|0;f=e+4|0;h=e;c[g>>2]=a;c[f>>2]=b;if((d[(c[g>>2]|0)+43>>0]|0|0)!=2){uj(c[(c[g>>2]|0)+4>>2]|0,c[f>>2]|0)|0;i=e;return}c[h>>2]=0;while(1){if((c[h>>2]|0)>=(c[(c[g>>2]|0)+24>>2]|0))break;hc(c[(c[(c[g>>2]|0)+32>>2]|0)+(c[h>>2]<<2)>>2]|0);c[(c[(c[g>>2]|0)+32>>2]|0)+(c[h>>2]<<2)>>2]=0;c[h>>2]=(c[h>>2]|0)+1}i=e;return}function uj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=zb[c[(c[c[f>>2]>>2]|0)+64>>2]&63](c[f>>2]|0,c[e>>2]|0)|0;i=d;return a|0}function vj(b,d,e){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+32|0;g=f+16|0;l=f+12|0;k=f+8|0;j=f+4|0;h=f;c[l>>2]=b;c[k>>2]=d;c[j>>2]=e;if(a[(c[l>>2]|0)+43>>0]|0){c[g>>2]=0;b=c[g>>2]|0;i=f;return b|0}else{c[h>>2]=ii(c[(c[l>>2]|0)+4>>2]|0,c[k>>2]|0,c[j>>2]|0,10)|0;c[g>>2]=c[h>>2];b=c[g>>2]|0;i=f;return b|0}return 0}function wj(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,j=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;m=h+20|0;k=h+16|0;l=h+12|0;j=h+8|0;n=h+4|0;g=h;c[m>>2]=a;c[k>>2]=b;c[l>>2]=d;c[j>>2]=e;c[n>>2]=f;while(1){c[g>>2]=vj(c[m>>2]|0,c[j>>2]|0,c[n>>2]|0)|0;if(!((c[k>>2]|0)!=0&(c[g>>2]|0)==5)){j=4;break}if(!(ub[c[k>>2]&31](c[l>>2]|0)|0)){j=4;break}}if((j|0)==4){i=h;return c[g>>2]|0}return 0}function xj(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;k=i;i=i+32|0;g=k+20|0;f=k+16|0;l=k+12|0;h=k+8|0;j=k+4|0;m=k;c[f>>2]=b;c[l>>2]=e;c[h>>2]=Vi(c[f>>2]|0,0,m)|0;if(c[h>>2]|0){c[g>>2]=c[h>>2];b=c[g>>2]|0;i=k;return b|0}if(c[m>>2]|0)e=Gj(c[f>>2]|0,c[l>>2]|0)|0;else e=1;c[j>>2]=e;do if(c[j>>2]|0){e=c[f>>2]|0;if((d[(c[f>>2]|0)+46>>0]|0)&2){b=gi(e,0)|0;c[h>>2]=b;if(b)break;hi(c[f>>2]|0,0);c[h>>2]=264;break}b=vj(e,0,1)|0;c[h>>2]=b;if(!b){a[(c[f>>2]|0)+44>>0]=1;b=Vi(c[f>>2]|0,0,m)|0;c[h>>2]=b;if(0==(b|0)?(c[j>>2]=Gj(c[f>>2]|0,c[l>>2]|0)|0,(c[j>>2]|0)!=0):0){c[h>>2]=Hj(c[f>>2]|0)|0;c[c[l>>2]>>2]=1}a[(c[f>>2]|0)+44>>0]=0;ji(c[f>>2]|0,0,1)}}while(0);if((c[j>>2]|0)==0?(c[(c[f>>2]|0)+52>>2]|0)!=3007e3:0)c[h>>2]=Ij(50131)|0;c[g>>2]=c[h>>2];b=c[g>>2]|0;i=k;return b|0}function yj(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return((e[(c[b>>2]|0)+66>>1]|0)&65024)+(((e[(c[b>>2]|0)+66>>1]|0)&1)<<16)|0}function zj(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0;x=i;i=i+112|0;k=x+104|0;n=x+100|0;m=x+96|0;H=x+92|0;E=x+88|0;q=x+84|0;z=x+80|0;l=x+76|0;r=x+72|0;t=x+68|0;w=x+64|0;u=x+60|0;o=x+56|0;h=x+52|0;F=x+48|0;p=x+44|0;C=x+40|0;G=x+36|0;B=x+24|0;v=x+32|0;A=x+16|0;y=x+8|0;s=x;c[n>>2]=a;c[m>>2]=b;c[H>>2]=d;c[E>>2]=e;c[q>>2]=f;c[z>>2]=g;c[t>>2]=0;c[w>>2]=0;c[u>>2]=0;c[C>>2]=0;c[r>>2]=yj(c[n>>2]|0)|0;c[p>>2]=Aj(c[n>>2]|0)|0;if((c[c[p>>2]>>2]|0)>>>0>=(c[(c[n>>2]|0)+68>>2]|0)>>>0){c[k>>2]=0;a=c[k>>2]|0;i=x;return a|0}c[l>>2]=Bj(c[n>>2]|0,t)|0;if(c[l>>2]|0){c[k>>2]=c[l>>2];a=c[k>>2]|0;i=x;return a|0}if(c[m>>2]|0)c[C>>2]=c[H>>2];c[o>>2]=c[(c[n>>2]|0)+68>>2];c[h>>2]=c[(c[n>>2]|0)+72>>2];c[F>>2]=1;a:while(1){if((c[F>>2]|0)>=5){j=15;break}c[G>>2]=c[(c[p>>2]|0)+4+(c[F>>2]<<2)>>2];do if((c[o>>2]|0)>>>0>(c[G>>2]|0)>>>0){c[l>>2]=wj(c[n>>2]|0,c[C>>2]|0,c[E>>2]|0,3+(c[F>>2]|0)|0,1)|0;if(!(c[l>>2]|0)){c[(c[p>>2]|0)+4+(c[F>>2]<<2)>>2]=(c[F>>2]|0)==1?c[o>>2]|0:-1;ji(c[n>>2]|0,3+(c[F>>2]|0)|0,1);break}if((c[l>>2]|0)!=5)break a;c[o>>2]=c[G>>2];c[C>>2]=0}while(0);c[F>>2]=(c[F>>2]|0)+1}do if((j|0)==15){if((c[c[p>>2]>>2]|0)>>>0<(c[o>>2]|0)>>>0?(a=wj(c[n>>2]|0,c[C>>2]|0,c[E>>2]|0,3,1)|0,c[l>>2]=a,(a|0)==0):0){c[v>>2]=c[c[p>>2]>>2];if(c[q>>2]|0)c[l>>2]=Yh(c[(c[n>>2]|0)+8>>2]|0,c[q>>2]|0)|0;if(((c[l>>2]|0)==0?(b=c[r>>2]|0,b=lF(c[h>>2]|0,0,b|0,((b|0)<0)<<31>>31|0)|0,a=A,c[a>>2]=b,c[a+4>>2]=D,c[l>>2]=Gg(c[(c[n>>2]|0)+4>>2]|0,B)|0,(c[l>>2]|0)==0):0)?(b=B,e=c[b+4>>2]|0,a=A,d=c[a+4>>2]|0,(e|0)<(d|0)|((e|0)==(d|0)?(c[b>>2]|0)>>>0<(c[a>>2]|0)>>>0:0)):0)rj(c[(c[n>>2]|0)+4>>2]|0,5,A);b:while(1){if(c[l>>2]|0)break;while(1){if(Cj(c[t>>2]|0,w,u)|0)break b;if((c[u>>2]|0)>>>0<=(c[v>>2]|0)>>>0)continue b;if((c[u>>2]|0)>>>0>(c[o>>2]|0)>>>0)continue b;if((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,4,4)}}while(0);Dj(c[t>>2]|0);c[k>>2]=c[l>>2];a=c[k>>2]|0;i=x;return a|0}function Aj(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return(c[c[(c[b>>2]|0)+32>>2]>>2]|0)+96|0}function Bj(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=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;n=i;i=i+64|0;f=n+60|0;u=n+56|0;h=n+52|0;g=n+48|0;t=n+44|0;o=n+40|0;v=n+36|0;s=n+32|0;k=n+28|0;j=n+24|0;q=n+20|0;l=n+16|0;r=n+12|0;e=n+8|0;p=n+4|0;m=n;c[u>>2]=a;c[h>>2]=d;c[j>>2]=0;c[o>>2]=c[(c[u>>2]|0)+68>>2];c[t>>2]=(Ui(c[o>>2]|0)|0)+1;c[v>>2]=28+(((c[t>>2]|0)-1|0)*20|0)+(c[o>>2]<<1);c[g>>2]=mg(c[v>>2]|0)|0;if(!(c[g>>2]|0)){c[f>>2]=7;a=c[f>>2]|0;i=n;return a|0}_E(c[g>>2]|0,0,c[v>>2]|0)|0;c[(c[g>>2]|0)+4>>2]=c[t>>2];c[k>>2]=mg(((c[o>>2]|0)>>>0>4096?4096:c[o>>2]|0)<<1)|0;if(!(c[k>>2]|0))c[j>>2]=7;c[s>>2]=0;while(1){if(c[j>>2]|0)break;if((c[s>>2]|0)>=(c[t>>2]|0))break;c[j>>2]=Ti(c[u>>2]|0,c[s>>2]|0,q,r,l)|0;if(!(c[j>>2]|0)){c[r>>2]=(c[r>>2]|0)+4;if(((c[s>>2]|0)+1|0)==(c[t>>2]|0))c[p>>2]=(c[o>>2]|0)-(c[l>>2]|0);else c[p>>2]=((c[q>>2]|0)-(c[r>>2]|0)|0)/4|0;c[m>>2]=(c[g>>2]|0)+8+((c[(c[g>>2]|0)+4>>2]|0)*20|0)+(c[l>>2]<<1);c[l>>2]=(c[l>>2]|0)+1;c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>>2]=(c[(c[f>>2]|0)+16>>2]|0)+(e[(c[(c[f>>2]|0)+4>>2]|0)+(c[c[f>>2]>>2]<<1)>>1]|0)}c[p>>2]=(c[p>>2]|0)+ -1}a=c[m>>2]|0;c[c[h>>2]>>2]=a;c[c[j>>2]>>2]=a;i=k;return(c[m>>2]|0)==-1|0}function Dj(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;ng(c[d>>2]|0);i=b;return}function Ej(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,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=i;i=i+160|0;g=r+144|0;p=r+140|0;k=r+136|0;q=r+132|0;m=r+128|0;j=r+124|0;l=r+120|0;o=r+116|0;h=r+112|0;f=r+8|0;n=r+4|0;s=r;c[g>>2]=a;c[p>>2]=b;c[k>>2]=d;c[q>>2]=e;c[m>>2]=c[c[q>>2]>>2];c[j>>2]=0;c[l>>2]=0;c[h>>2]=0;d=f+0|0;e=d+104|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(e|0));c[o>>2]=0;while(1){if((c[o>>2]|0)>=(c[m>>2]|0))break;c[j>>2]=1;c[l>>2]=(c[k>>2]|0)+(c[o>>2]<<1);c[h>>2]=0;while(1){if(!(c[o>>2]&1<>2]))break;c[n>>2]=f+(c[h>>2]<<3);Fj(c[g>>2]|0,c[(c[n>>2]|0)+4>>2]|0,c[c[n>>2]>>2]|0,l,j,c[p>>2]|0);c[h>>2]=(c[h>>2]|0)+1}c[f+(c[h>>2]<<3)+4>>2]=c[l>>2];c[f+(c[h>>2]<<3)>>2]=c[j>>2];c[o>>2]=(c[o>>2]|0)+1}c[h>>2]=(c[h>>2]|0)+1;while(1){if((c[h>>2]|0)>=13)break;if(c[m>>2]&1<>2]){c[s>>2]=f+(c[h>>2]<<3);Fj(c[g>>2]|0,c[(c[s>>2]|0)+4>>2]|0,c[c[s>>2]>>2]|0,l,j,c[p>>2]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|0)+1}c[c[m>>2]>>2]=c[u>>2];c[c[o>>2]>>2]=c[n>>2];dF(c[u>>2]|0,c[p>>2]|0,c[n>>2]<<1|0)|0;i=q;return}function Gj(b,f){b=b|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;i=i+128|0;l=g+120|0;m=g+116|0;o=g+112|0;n=g+104|0;k=g+56|0;h=g+8|0;j=g;c[m>>2]=b;c[o>>2]=f;c[j>>2]=mj(c[m>>2]|0)|0;b=k+0|0;f=(c[j>>2]|0)+0|0;p=b+48|0;do{a[b>>0]=a[f>>0]|0;b=b+1|0;f=f+1|0}while((b|0)<(p|0));Nj(c[m>>2]|0);b=h+0|0;f=(c[j>>2]|0)+48|0;p=b+48|0;do{a[b>>0]=a[f>>0]|0;b=b+1|0;f=f+1|0}while((b|0)<(p|0));if(TE(k,h,48)|0){c[l>>2]=1;p=c[l>>2]|0;i=g;return p|0}if(!(d[k+12>>0]|0)){c[l>>2]=1;p=c[l>>2]|0;i=g;return p|0}Jj(1,k,40,0,n);if((c[n>>2]|0)==(c[k+40>>2]|0)?(c[n+4>>2]|0)==(c[k+44>>2]|0):0){if(TE((c[m>>2]|0)+52|0,k,48)|0){c[c[o>>2]>>2]=1;b=(c[m>>2]|0)+52|0;f=k+0|0;p=b+48|0;do{c[b>>2]=c[f>>2];b=b+4|0;f=f+4|0}while((b|0)<(p|0));c[(c[m>>2]|0)+36>>2]=((e[(c[m>>2]|0)+66>>1]|0)&65024)+(((e[(c[m>>2]|0)+66>>1]|0)&1)<<16)}c[l>>2]=0;p=c[l>>2]|0;i=g;return p|0}c[l>>2]=1;p=c[l>>2]|0;i=g;return p|0}function Hj(e){e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0;s=i;i=i+144|0;C=s+16|0;r=s+96|0;j=s+92|0;h=s+88|0;k=s+8|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0)+(c[m>>2]|0))}while((c[l>>2]|0)>>>0<(c[g>>2]|0)>>>0);q=c[m>>2]|0;p=c[h>>2]|0;c[p>>2]=q;p=c[j>>2]|0;q=c[h>>2]|0;q=q+4|0;c[q>>2]=p;i=k;return}else{do{c[m>>2]=(c[m>>2]|0)+(((c[c[l>>2]>>2]&255)<<24)+((c[c[l>>2]>>2]&65280)<<8)+((c[c[l>>2]>>2]&16711680)>>>8)+((c[c[l>>2]>>2]&-16777216)>>>24)+(c[j>>2]|0));c[j>>2]=(c[j>>2]|0)+(((c[(c[l>>2]|0)+4>>2]&255)<<24)+((c[(c[l>>2]|0)+4>>2]&65280)<<8)+((c[(c[l>>2]|0)+4>>2]&16711680)>>>8)+((c[(c[l>>2]|0)+4>>2]&-16777216)>>>24)+(c[m>>2]|0));c[l>>2]=(c[l>>2]|0)+8}while((c[l>>2]|0)>>>0<(c[g>>2]|0)>>>0);q=c[m>>2]|0;p=c[h>>2]|0;c[p>>2]=q;p=c[j>>2]|0;q=c[h>>2]|0;q=q+4|0;c[q>>2]=p;i=k;return}}function Kj(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;p=i;i=i+48|0;k=p+32|0;q=p+28|0;m=p+24|0;o=p+20|0;s=p+16|0;n=p+12|0;r=p+8|0;j=p+4|0;l=p;c[q>>2]=b;c[m>>2]=e;c[o>>2]=f;c[s>>2]=g;c[n>>2]=h;c[j>>2]=(c[q>>2]|0)+76;if(TE((c[q>>2]|0)+84|0,(c[n>>2]|0)+8|0,8)|0){c[k>>2]=0;b=c[k>>2]|0;i=p;return b|0}c[l>>2]=Hh(c[n>>2]|0)|0;if(!(c[l>>2]|0)){c[k>>2]=0;b=c[k>>2]|0;i=p;return b|0}c[r>>2]=(d[(c[q>>2]|0)+65>>0]|0)==((a[1136]|0)==0|0)&1;Jj(c[r>>2]|0,c[n>>2]|0,8,c[j>>2]|0,c[j>>2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129)|0;a=c[h>>2]|0;i=j;return a|0}while(0);c[h>>2]=c[o>>2];a=c[h>>2]|0;i=j;return a|0}function Mj(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=i;i=i+16|0;d=f+8|0;e=f+4|0;c[d>>2]=b;c[e>>2]=mj(c[d>>2]|0)|0;c[f>>2]=40;a[(c[d>>2]|0)+64>>0]=1;c[(c[d>>2]|0)+52>>2]=3007e3;Jj(1,(c[d>>2]|0)+52|0,40,0,(c[d>>2]|0)+92|0);h=(c[e>>2]|0)+48|0;g=(c[d>>2]|0)+52|0;b=h+48|0;do{a[h>>0]=a[g>>0]|0;h=h+1|0;g=g+1|0}while((h|0)<(b|0));Nj(c[d>>2]|0);h=(c[e>>2]|0)+0|0;g=(c[d>>2]|0)+52|0;b=h+48|0;do{a[h>>0]=a[g>>0]|0;h=h+1|0;g=g+1|0}while((h|0)<(b|0));i=f;return}function Nj(a){a=a|0;var b=0,e=0;b=i;i=i+16|0;e=b;c[e>>2]=a;if((d[(c[e>>2]|0)+43>>0]|0|0)==2){i=b;return}Oj(c[(c[e>>2]|0)+4>>2]|0);i=b;return}function Oj(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;rb[c[(c[c[d>>2]>>2]|0)+60>>2]&31](c[d>>2]|0);i=b;return}function Pj(a){a=a|0;var b=0,d=0,e=0,f=0;e=i;i=i+16|0;d=e+8|0;f=e+4|0;b=e;c[f>>2]=a;if(((c[f>>2]|0)!=0?(c[c[f>>2]>>2]|0)!=0:0)?(c[(c[f>>2]|0)+8>>2]|0)>=0:0){c[b>>2]=zb[c[c[f>>2]>>2]&63](c[(c[f>>2]|0)+4>>2]|0,c[(c[f>>2]|0)+8>>2]|0)|0;a=(c[f>>2]|0)+8|0;if(!(c[b>>2]|0))c[a>>2]=-1;else c[a>>2]=(c[a>>2]|0)+1;c[d>>2]=c[b>>2];f=c[d>>2]|0;i=e;return f|0}c[d>>2]=0;f=c[d>>2]|0;i=e;return f|0}function Qj(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[b>>2]|0)+8>>2]|0}function Rj(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=aj(c[d>>2]|0)|0;i=b;return a|0}function Sj(f){f=f|0;var g=0,h=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;j=i;i=i+48|0;h=j+32|0;k=j+28|0;r=j+42|0;s=j+44|0;q=j+24|0;v=j+20|0;l=j+16|0;p=j+40|0;m=j+12|0;t=j+8|0;g=j+4|0;o=j;u=j+38|0;n=j+36|0;c[k>>2]=f;do if(!(a[c[k>>2]>>0]|0)){c[v>>2]=c[(c[k>>2]|0)+52>>2];a[s>>0]=a[(c[k>>2]|0)+6>>0]|0;c[q>>2]=c[(c[k>>2]|0)+56>>2];if(Tj(c[k>>2]|0,d[(c[q>>2]|0)+(d[s>>0]|0)>>0]|0)|0){c[h>>2]=kj(53694)|0;v=c[h>>2]|0;i=j;return v|0}b[(c[k>>2]|0)+20>>1]=(c[(c[v>>2]|0)+32>>2]|0)-1;a[(c[k>>2]|0)+1>>0]=0;c[l>>2]=c[(c[v>>2]|0)+36>>2];f=(d[s>>0]|0)+12-(d[(c[k>>2]|0)+5>>0]<<2)&65535;b[p>>1]=f;b[(c[k>>2]|0)+14>>1]=f;c[(c[k>>2]|0)+60>>2]=(c[q>>2]|0)+(c[l>>2]|0);c[(c[k>>2]|0)+64>>2]=(c[q>>2]|0)+(e[p>>1]|0);c[t>>2]=((d[(c[q>>2]|0)+((d[s>>0]|0)+5)>>0]<<8|d[(c[q>>2]|0)+((d[s>>0]|0)+5)+1>>0])-1&65535)+1;b[(c[k>>2]|0)+18>>1]=d[(c[q>>2]|0)+((d[s>>0]|0)+3)>>0]<<8|d[(c[q>>2]|0)+((d[s>>0]|0)+3)+1>>0];if((e[(c[k>>2]|0)+18>>1]|0)>>>0>((((c[(c[v>>2]|0)+32>>2]|0)-8|0)>>>0)/6|0)>>>0){c[h>>2]=kj(53706)|0;v=c[h>>2]|0;i=j;return v|0}c[g>>2]=(e[p>>1]|0)+(e[(c[k>>2]|0)+18>>1]<<1);c[o>>2]=(c[l>>2]|0)-4;b[r>>1]=d[(c[q>>2]|0)+((d[s>>0]|0)+1)>>0]<<8|d[(c[q>>2]|0)+((d[s>>0]|0)+1)+1>>0];c[m>>2]=(d[(c[q>>2]|0)+((d[s>>0]|0)+7)>>0]|0)+(c[t>>2]|0);while(1){if((e[r>>1]|0)<=0){n=16;break}if((e[r>>1]|0)<(c[g>>2]|0)){n=10;break}if((e[r>>1]|0)>(c[o>>2]|0)){n=10;break}b[u>>1]=d[(c[q>>2]|0)+(e[r>>1]|0)>>0]<<8|d[(c[q>>2]|0)+(e[r>>1]|0)+1>>0];b[n>>1]=d[(c[q>>2]|0)+((e[r>>1]|0)+2)>>0]<<8|d[(c[q>>2]|0)+((e[r>>1]|0)+2)+1>>0];if((e[u>>1]|0)>0?(e[u>>1]|0)<=((e[r>>1]|0)+(e[n>>1]|0)+3|0):0){n=14;break}if(((e[r>>1]|0)+(e[n>>1]|0)|0)>(c[l>>2]|0)){n=14;break}c[m>>2]=(c[m>>2]|0)+(e[n>>1]|0);b[r>>1]=b[u>>1]|0}if((n|0)==10){c[h>>2]=kj(53749)|0;v=c[h>>2]|0;i=j;return v|0}else if((n|0)==14){c[h>>2]=kj(53756)|0;v=c[h>>2]|0;i=j;return v|0}else if((n|0)==16){if((c[m>>2]|0)<=(c[l>>2]|0)){b[(c[k>>2]|0)+16>>1]=(c[m>>2]|0)-(c[g>>2]|0);a[c[k>>2]>>0]=1;break}c[h>>2]=kj(53770)|0;v=c[h>>2]|0;i=j;return v|0}}while(0);c[h>>2]=0;v=c[h>>2]|0;i=j;return v|0}function Tj(e,f){e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;k=i;i=i+16|0;j=k+12|0;h=k+8|0;l=k+4|0;g=k;c[h>>2]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>>2]|0)+16>>2];c[h>>2]=c[(c[j>>2]|0)+20>>2];c[f>>2]=0;while(1){if((c[f>>2]|0)>=(c[(c[e>>2]|0)+96>>2]|0)){a=7;break}c[g>>2]=(c[(c[e>>2]|0)+92>>2]|0)+((c[f>>2]|0)*48|0);if((c[(c[g>>2]|0)+20>>2]|0)>>>0>=(c[h>>2]|0)>>>0?0==(Yg(c[(c[g>>2]|0)+16>>2]|0,c[h>>2]|0)|0):0){a=5;break}c[f>>2]=(c[f>>2]|0)+1}if((a|0)==5){c[b>>2]=1;j=c[b>>2]|0;i=d;return j|0}else if((a|0)==7){c[b>>2]=0;j=c[b>>2]|0;i=d;return j|0}return 0}function Yj(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;j=e+24|0;b=e+20|0;f=e+16|0;k=e+12|0;h=e;g=e+8|0;c[j>>2]=a;c[b>>2]=0;c[f>>2]=c[(c[j>>2]|0)+16>>2];if(((d[(c[f>>2]|0)+5>>0]|0|0)!=2?(c[b>>2]=ok(c[f>>2]|0)|0,(c[b>>2]|0)==0):0)?(c[k>>2]=c[(c[j>>2]|0)+4>>2],l=4+(c[(c[f>>2]|0)+152>>2]|0)|0,l=lF(c[(c[f>>2]|0)+52>>2]|0,0,l|0,((l|0)<0)<<31>>31|0)|0,a=h,c[a>>2]=l,c[a+4>>2]=D,c[g>>2]=c[k>>2],k=h,c[b>>2]=pk(c[(c[f>>2]|0)+68>>2]|0,c[k>>2]|0,c[k+4>>2]|0,c[(c[j>>2]|0)+20>>2]|0)|0,(c[b>>2]|0)==0):0){a=c[(c[f>>2]|0)+68>>2]|0;g=c[g>>2]|0;k=c[(c[f>>2]|0)+152>>2]|0;l=h;l=bF(c[l>>2]|0,c[l+4>>2]|0,4,0)|0;c[b>>2]=id(a,g,k,l,D)|0}if(c[b>>2]|0){l=c[b>>2]|0;i=e;return l|0}l=(c[f>>2]|0)+52|0;c[l>>2]=(c[l>>2]|0)+1;c[b>>2]=qk(c[f>>2]|0,c[(c[j>>2]|0)+20>>2]|0)|0;l=c[b>>2]|0;i=e;return l|0}function Zj(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;i=i+48|0;l=h+32|0;j=h+28|0;m=h+24|0;g=h+20|0;n=h+16|0;o=h+12|0;p=h+8|0;q=h+4|0;k=h;c[l>>2]=a;c[j>>2]=b;c[m>>2]=e;c[g>>2]=f;a:do if(c[g>>2]|0){c[q>>2]=j;c[o>>2]=0;c[p>>2]=c[j>>2];while(1){a=c[p>>2]|0;c[c[q>>2]>>2]=a;if(!a)break a;if((c[(c[p>>2]|0)+20>>2]|0)>>>0<=(c[m>>2]|0)>>>0){c[q>>2]=(c[p>>2]|0)+12;c[o>>2]=(c[o>>2]|0)+1}c[p>>2]=c[(c[p>>2]|0)+12>>2]}}else c[o>>2]=1;while(0);a=(c[l>>2]|0)+192|0;c[a>>2]=(c[a>>2]|0)+(c[o>>2]|0);if((c[(c[j>>2]|0)+20>>2]|0)==1)bk(c[j>>2]|0);c[n>>2]=ik(c[(c[l>>2]|0)+208>>2]|0,c[(c[l>>2]|0)+152>>2]|0,c[j>>2]|0,c[m>>2]|0,c[g>>2]|0,d[(c[l>>2]|0)+10>>0]|0)|0;if(c[n>>2]|0){a=c[n>>2]|0;i=h;return a|0}if(!(c[(c[l>>2]|0)+88>>2]|0)){a=c[n>>2]|0;i=h;return a|0}c[k>>2]=c[j>>2];while(1){if(!(c[k>>2]|0))break;Ii(c[(c[l>>2]|0)+88>>2]|0,c[(c[k>>2]|0)+20>>2]|0,c[(c[k>>2]|0)+4>>2]|0);c[k>>2]=c[(c[k>>2]|0)+12>>2]}a=c[n>>2]|0;i=h;return a|0}function _j(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;k=i;i=i+48|0;g=k+24|0;j=k+20|0;o=k+16|0;h=k+12|0;l=k+8|0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]=Yh(c[(c[j>>2]|0)+64>>2]|0,d[(c[j>>2]|0)+11>>0]|((d[(c[j>>2]|0)+11>>0]|0)==3?16:0))|0,(c[h>>2]|0)!=0):0){c[g>>2]=c[h>>2];b=c[g>>2]|0;i=k;return b|0}m=(c[j>>2]|0)+72|0;n=c[m+4>>2]|0;b=(c[j>>2]|0)+80|0;c[b>>2]=c[m>>2];c[b+4>>2]=n;if(!(c[o>>2]|0))break;if(c[l>>2]&512)break;c[(c[j>>2]|0)+44>>2]=0;c[h>>2]=ek(c[j>>2]|0)|0;if(!(c[h>>2]|0))break;c[g>>2]=c[h>>2];b=c[g>>2]|0;i=k;return b|0}n=(c[j>>2]|0)+72|0;o=c[n+4>>2]|0;b=(c[j>>2]|0)+80|0;c[b>>2]=c[n>>2];c[b+4>>2]=o}while(0);fk(c[(c[j>>2]|0)+204>>2]|0);a[(c[j>>2]|0)+16>>0]=4;c[g>>2]=0;b=c[g>>2]|0;i=k;return b|0}function $j(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+48|0;h=l+32|0;f=l+28|0;g=l+24|0;n=l+8|0;j=l+20|0;k=l;m=l+16|0;c[h>>2]=b;c[f>>2]=d;c[g>>2]=0;if(!(c[c[(c[h>>2]|0)+60>>2]>>2]|0))c[g>>2]=ak(c[h>>2]|0,c[(c[h>>2]|0)+60>>2]|0,c[(c[h>>2]|0)+144>>2]|0)|0;do if((c[g>>2]|0)==0?(c[(c[h>>2]|0)+36>>2]|0)>>>0<(c[(c[h>>2]|0)+24>>2]|0)>>>0:0){if((c[(c[f>>2]|0)+12>>2]|0)==0?(c[(c[f>>2]|0)+20>>2]|0)>>>0<=(c[(c[h>>2]|0)+36>>2]|0)>>>0:0)break;d=c[(c[h>>2]|0)+152>>2]|0;d=lF(d|0,((d|0)<0)<<31>>31|0,c[(c[h>>2]|0)+24>>2]|0,0)|0;b=n;c[b>>2]=d;c[b+4>>2]=D;rj(c[(c[h>>2]|0)+60>>2]|0,5,n);c[(c[h>>2]|0)+36>>2]=c[(c[h>>2]|0)+24>>2]}while(0);while(1){if(!((c[g>>2]|0)==0&(c[f>>2]|0)!=0))break;c[j>>2]=c[(c[f>>2]|0)+20>>2];if((c[j>>2]|0)>>>0<=(c[(c[h>>2]|0)+24>>2]|0)>>>0?0==((e[(c[f>>2]|0)+24>>1]|0)&32|0):0){d=c[(c[h>>2]|0)+152>>2]|0;d=lF((c[j>>2]|0)-1|0,0,d|0,((d|0)<0)<<31>>31|0)|0;b=k;c[b>>2]=d;c[b+4>>2]=D;if((c[(c[f>>2]|0)+20>>2]|0)==1)bk(c[f>>2]|0);c[m>>2]=c[(c[f>>2]|0)+4>>2];b=k;c[g>>2]=id(c[(c[h>>2]|0)+60>>2]|0,c[m>>2]|0,c[(c[h>>2]|0)+152>>2]|0,c[b>>2]|0,c[b+4>>2]|0)|0;if((c[j>>2]|0)==1){b=(c[h>>2]|0)+100|0;d=(c[m>>2]|0)+24|0;n=b+16|0;do{a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0}while((b|0)<(n|0))}if((c[j>>2]|0)>>>0>(c[(c[h>>2]|0)+32>>2]|0)>>>0)c[(c[h>>2]|0)+32>>2]=c[j>>2];b=(c[h>>2]|0)+192|0;c[b>>2]=(c[b>>2]|0)+1;Ii(c[(c[h>>2]|0)+88>>2]|0,c[j>>2]|0,c[(c[f>>2]|0)+4>>2]|0)}c[f>>2]=c[(c[f>>2]|0)+12>>2]}i=l;return c[g>>2]|0}function ak(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;i=i+16|0;j=f+12|0;h=f+8|0;g=f+4|0;e=f;c[j>>2]=a;c[h>>2]=b;c[g>>2]=d;c[g>>2]=c[g>>2]|30;c[e>>2]=Di(c[c[j>>2]>>2]|0,0,c[h>>2]|0,c[g>>2]|0,0)|0;i=f;return c[e>>2]|0}function bk(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d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>>2]|0)+32>>2];c[s>>2]=c[(c[t>>2]|0)+8>>2];do if(!(c[h>>2]|0)){t=Ew(c[s>>2]|0,0,0,l)|0;c[(c[n>>2]|0)+32>>2]=t;c[h>>2]=t;if(c[h>>2]|0){b[(c[h>>2]|0)+4>>1]=c[p>>2];break}c[k>>2]=7;t=c[k>>2]|0;i=l;return t|0}while(0);c[r>>2]=lC(c[n>>2]|0,q)|0;Fw(c[s>>2]|0,c[q>>2]|0,c[r>>2]|0,c[h>>2]|0);c[o>>2]=0;while(1){if((c[o>>2]|0)>=(c[p>>2]|0)){n=10;break}if((e[(c[(c[h>>2]|0)+8>>2]|0)+((c[o>>2]|0)*40|0)+8>>1]|0)&1){n=8;break}c[o>>2]=(c[o>>2]|0)+1}if((n|0)==8){c[c[j>>2]>>2]=-1;c[k>>2]=0;t=c[k>>2]|0;i=l;return t|0}else if((n|0)==10){t=Uw(c[(c[m>>2]|0)+12>>2]|0,c[(c[m>>2]|0)+16>>2]|0,c[h>>2]|0)|0;c[c[j>>2]>>2]=t;c[k>>2]=0;t=c[k>>2]|0;i=l;return t|0}return 0}function Gz(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;g=f+20|0;m=f+16|0;k=f+12|0;l=f+8|0;j=f+4|0;h=f;c[m>>2]=a;c[k>>2]=d;c[l>>2]=c[(c[m>>2]|0)+56>>2];c[j>>2]=lC(c[l>>2]|0,h)|0;if(Lp(c[k>>2]|0,c[h>>2]|0)|0){c[g>>2]=7;m=c[g>>2]|0;i=f;return m|0}else{c[(c[k>>2]|0)+12>>2]=c[h>>2];b[(c[k>>2]|0)+8>>1]=(e[(c[k>>2]|0)+8>>1]|0)&-16896|16;dF(c[(c[k>>2]|0)+16>>2]|0,c[j>>2]|0,c[h>>2]|0)|0;c[g>>2]=0;m=c[g>>2]|0;i=f;return m|0}return 0}function Hz(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;e=d+4|0;g=d;c[f>>2]=a;c[e>>2]=b;c[g>>2]=c[c[f>>2]>>2];Xb(c[g>>2]|0,c[(c[f>>2]|0)+44>>2]|0);a=ne(c[g>>2]|0,c[(c[e>>2]|0)+8>>2]|0)|0;c[(c[f>>2]|0)+44>>2]=a;hc(c[(c[e>>2]|0)+8>>2]|0);c[(c[e>>2]|0)+8>>2]=0;i=d;return}function Iz(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[e>>2]=a;if(iC(c[c[e>>2]>>2]|0)|0){c[d>>2]=jC(c[e>>2]|0)|0;e=c[d>>2]|0;i=b;return e|0}else{c[d>>2]=0;e=c[d>>2]|0;i=b;return e|0}return 0}function Jz(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;g=i;i=i+32|0;f=g+16|0;k=g+12|0;j=g+8|0;h=g+4|0;e=g;c[k>>2]=a;c[j>>2]=b;c[h>>2]=c[(c[k>>2]|0)+56>>2];c[e>>2]=0;b=c[h>>2]|0;if(d[(c[h>>2]|0)+56>>0]|0){c[e>>2]=EB(b)|0;c[e>>2]=c[e>>2];if(!(c[e>>2]|0)){c[e>>2]=ZB(c[h>>2]|0)|0;c[c[j>>2]>>2]=0}c[f>>2]=c[e>>2];k=c[f>>2]|0;i=g;return k|0}j=c[j>>2]|0;if(c[b+36>>2]|0){c[j>>2]=0;c[e>>2]=HB((c[h>>2]|0)+64|0,(c[h>>2]|0)+36|0)|0}else c[j>>2]=1;c[f>>2]=c[e>>2];k=c[f>>2]|0;i=g;return k|0}function Kz(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0;f=i;i=i+16|0;g=f+8|0;h=f+4|0;e=f;c[g>>2]=a;c[h>>2]=b;c[e>>2]=Iw(c[g>>2]|0)|0;do if(!(c[e>>2]|0)){b=c[h>>2]|0;if(!(d[(c[g>>2]|0)+73>>0]|0)){c[b>>2]=1;break}else{c[b>>2]=0;c[e>>2]=bx(c[g>>2]|0)|0;break}}while(0);i=f;return c[e>>2]|0}function Lz(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;k=f+20|0;m=f+16|0;h=f+12|0;j=f+8|0;g=f+4|0;l=f;c[k>>2]=b;c[m>>2]=d;c[h>>2]=e;c[j>>2]=c[(c[m>>2]|0)+56>>2];e=c[j>>2]|0;if(a[(c[j>>2]|0)+56>>0]|0){c[g>>2]=QB(c[e+20>>2]|0,c[h>>2]|0)|0;m=c[g>>2]|0;i=f;return m|0}c[l>>2]=c[e+36>>2];c[(c[j>>2]|0)+36>>2]=c[(c[l>>2]|0)+4>>2];c[(c[l>>2]|0)+4>>2]=0;if(!(c[(c[j>>2]|0)+40>>2]|0))oB(c[k>>2]|0,c[l>>2]|0);c[c[h>>2]>>2]=((c[(c[j>>2]|0)+36>>2]|0)!=0^1)&1;c[g>>2]=0;m=c[g>>2]|0;i=f;return m|0}function Mz(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+48|0;l=e+44|0;q=e+40|0;j=e+36|0;k=e+32|0;d=e+28|0;h=e+24|0;p=e+20|0;n=e+16|0;o=e+12|0;g=e+8|0;f=e+4|0;m=e;c[q>>2]=a;c[j>>2]=b;c[k>>2]=c[(c[q>>2]|0)+56>>2];c[d>>2]=0;c[n>>2]=(c[(c[j>>2]|0)+12>>2]|0)+8;b=c[(c[j>>2]|0)+12>>2]|0;a=c[(c[j>>2]|0)+12>>2]|0;c[o>>2]=b+(Zw(a,((a|0)<0)<<31>>31)|0);if(c[(c[k>>2]|0)+4>>2]|0){b=c[k>>2]|0;if(c[(c[k>>2]|0)+40>>2]|0){if(c[b+48>>2]|0)b=((c[(c[k>>2]|0)+48>>2]|0)+(c[n>>2]|0)|0)>(c[(c[k>>2]|0)+4>>2]|0);else b=0;c[p>>2]=b&1}else{if((c[b+44>>2]|0)<=(c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2]=gc(q,((q|0)<0)<<31>>31)|0;if(c[h>>2]|0){c[(c[h>>2]|0)+4>>2]=c[(c[k>>2]|0)+36>>2];break}c[l>>2]=7;q=c[l>>2]|0;i=e;return q|0}while(0);dF((c[h>>2]|0)+8|0,c[(c[j>>2]|0)+16>>2]|0,c[(c[j>>2]|0)+12>>2]|0)|0;c[c[h>>2]>>2]=c[(c[j>>2]|0)+12>>2];c[(c[k>>2]|0)+36>>2]=c[h>>2];c[l>>2]=c[d>>2];q=c[l>>2]|0;i=e;return q|0}function Nz(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;l=i;i=i+128|0;g=l+116|0;r=l+112|0;q=l+108|0;m=l+104|0;p=l+80|0;o=l+100|0;n=l+96|0;k=l+92|0;j=l+88|0;h=l+40|0;f=l;c[r>>2]=a;c[q>>2]=b;c[m>>2]=e;a=p;c[a>>2]=0;c[a+4>>2]=0;Ly(c[q>>2]|0,p)|0;en(h,c[r>>2]|0,0);c[o>>2]=mz(c[q>>2]|0,0,c[p>>2]|0,1,h)|0;if(c[o>>2]|0){c[g>>2]=c[o>>2];r=c[g>>2]|0;i=l;return r|0}e=c[h+16>>2]|0;if((d[c[h+16>>2]>>0]|0|0)<128)c[n>>2]=d[e>>0];else Rw(e,n)|0;if((c[n>>2]|0)>>>0>=3?(c[n>>2]|0)<=(c[h+12>>2]|0):0){e=(c[h+16>>2]|0)+((c[n>>2]|0)-1)|0;if((d[(c[h+16>>2]|0)+((c[n>>2]|0)-1)>>0]|0|0)<128)c[k>>2]=d[e>>0];else Rw(e,k)|0;if(!((c[k>>2]|0)>>>0<1|(c[k>>2]|0)>>>0>9|(c[k>>2]|0)==7)?(c[j>>2]=Ww(c[k>>2]|0)|0,(c[h+12>>2]|0)>>>0>=((c[n>>2]|0)+(c[j>>2]|0)|0)>>>0):0){Xw((c[h+16>>2]|0)+((c[h+12>>2]|0)-(c[j>>2]|0))|0,c[k>>2]|0,f)|0;p=f;q=c[p+4>>2]|0;r=c[m>>2]|0;c[r>>2]=c[p>>2];c[r+4>>2]=q;Bd(h);c[g>>2]=0;r=c[g>>2]|0;i=l;return r|0}}Bd(h);c[g>>2]=kj(67174)|0;r=c[g>>2]|0;i=l;return r|0}function Oz(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,m=0,n=0,o=0,p=0;l=i;i=i+80|0;g=l+72|0;m=l+68|0;n=l+64|0;f=l+60|0;h=l+56|0;o=l+40|0;j=l+52|0;p=l+48|0;k=l;c[m>>2]=a;c[n>>2]=b;c[f>>2]=d;c[h>>2]=e;d=o;c[d>>2]=0;c[d+4>>2]=0;c[p>>2]=c[c[n>>2]>>2];Ly(c[p>>2]|0,o)|0;d=o;e=c[d+4>>2]|0;a=o;b=c[a+4>>2]|0;if((e|0)<0|(e|0)==0&(c[d>>2]|0)>>>0<=0|((b|0)>0|(b|0)==0&(c[a>>2]|0)>>>0>2147483647)){c[c[h>>2]>>2]=0;c[g>>2]=kj(67206)|0;p=c[g>>2]|0;i=l;return p|0}en(k,c[m>>2]|0,0);c[j>>2]=mz(c[c[n>>2]>>2]|0,0,c[o>>2]|0,1,k)|0;if(c[j>>2]|0){c[g>>2]=c[j>>2];p=c[g>>2]|0;i=l;return p|0}else{p=Uw(c[k+12>>2]|0,c[k+16>>2]|0,c[f>>2]|0)|0;c[c[h>>2]>>2]=p;Bd(k);c[g>>2]=0;p=c[g>>2]|0;i=l;return p|0}return 0}function Pz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;i=i+16|0;j=f+12|0;h=f+8|0;g=f+4|0;e=f;c[j>>2]=a;c[h>>2]=b;c[g>>2]=d;Pc(c[j>>2]|0);c[e>>2]=DB(c[j>>2]|0,c[h>>2]|0,c[g>>2]|0)|0;i=f;return c[e>>2]|0}function Qz(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var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h(c[k>>2]|0,c[j>>2]|0,0)|0;if(!(c[h>>2]|0)){l=c[f>>2]|0;l=l+24|0;k=c[l>>2]|0;k=k|2;c[l>>2]=k;i=e;return}d=c[h>>2]|0;if((c[(c[(c[h>>2]|0)+12>>2]|0)+8>>2]|0)!=(c[h>>2]|0)){c[g>>2]=c[(c[d+12>>2]|0)+8>>2];while(1){if(c[g>>2]|0)b=(c[(c[g>>2]|0)+20>>2]|0)!=(c[h>>2]|0);else b=0;d=c[g>>2]|0;if(!b)break;c[g>>2]=c[d+20>>2]}if((d|0)!=0?(c[(c[g>>2]|0)+20>>2]|0)==(c[h>>2]|0):0)c[(c[g>>2]|0)+20>>2]=c[(c[h>>2]|0)+20>>2]}else c[(c[(c[h>>2]|0)+12>>2]|0)+8>>2]=c[d+20>>2];ly(c[f>>2]|0,c[h>>2]|0);l=c[f>>2]|0;l=l+24|0;k=c[l>>2]|0;k=k|2;c[l>>2]=k;i=e;return}function Wz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;i=i+32|0;h=e+24|0;m=e+20|0;k=e+16|0;f=e+12|0;l=e+8|0;j=e+4|0;g=e;c[h>>2]=a;c[m>>2]=b;c[k>>2]=d;c[l>>2]=(c[(c[(c[h>>2]|0)+16>>2]|0)+(c[m>>2]<<4)+12>>2]|0)+40;c[f>>2]=gh(c[l>>2]|0,c[k>>2]|0,0)|0;if(!(c[f>>2]|0)){i=e;return}if((c[(c[f>>2]|0)+20>>2]|0)==(c[(c[f>>2]|0)+24>>2]|0)){c[j>>2]=Ct(c[f>>2]|0)|0;c[g>>2]=(c[j>>2]|0)+64;while(1){d=(c[c[g>>2]>>2]|0)+32|0;if((c[c[g>>2]>>2]|0)==(c[f>>2]|0))break;c[g>>2]=d}c[c[g>>2]>>2]=c[d>>2]}Ub(c[h>>2]|0,c[f>>2]|0);m=(c[h>>2]|0)+24|0;c[m>>2]=c[m>>2]|2;i=e;return}function Xz(b,e,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+(c[j>>2]<<2)>>2]|0)>1:0)gB(o,c[(c[r>>2]|0)+(c[j>>2]<<2)>>2]|0,1,0);c[o+28>>2]=33336;hB(o,c[(c[r>>2]|0)+(c[j>>2]<<2)>>2]|0,0,0)|0;c[o+28>>2]=0}c[j>>2]=(c[j>>2]|0)+1}c[j>>2]=1;while(1){if((c[j>>2]|0)>>>0>(c[o+12>>2]|0)>>>0)break;if(!(c[o+16>>2]|0))break;do if(!(iB(o,c[j>>2]|0)|0)){u=Pw(c[n>>2]|0,c[j>>2]|0)|0;if((u|0)==(c[j>>2]|0)?(a[(c[n>>2]|0)+17>>0]|0)!=0:0)break;c[q>>2]=c[j>>2];jB(o,33360,q)}while(0);if(((iB(o,c[j>>2]|0)|0)!=0?(u=Pw(c[n>>2]|0,c[j>>2]|0)|0,(u|0)==(c[j>>2]|0)):0)?(d[(c[n>>2]|0)+17>>0]|0)!=0:0){c[q>>2]=c[j>>2];jB(o,33384,q)}c[j>>2]=(c[j>>2]|0)+1}u=c[m>>2]|0;if((u|0)!=(dB(c[c[n>>2]>>2]|0)|0)){t=c[m>>2]|0;u=dB(c[c[n>>2]>>2]|0)|0;c[q>>2]=t;c[q+4>>2]=u;jB(o,33424,q)}hc(c[o+8>>2]|0);if(c[o+24>>2]|0){Zm(o+40|0);c[c[l>>2]>>2]=(c[o+20>>2]|0)+1;c[k>>2]=0;u=c[k>>2]|0;i=p;return u|0}c[c[l>>2]>>2]=c[o+20>>2];if(!(c[o+20>>2]|0))Zm(o+40|0);c[k>>2]=pc(o+40|0)|0;u=c[k>>2]|0;i=p;return u|0}function Yz(d){d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+4|0;g=e;c[f>>2]=d;c[g>>2]=c[(c[f>>2]|0)+32>>2];Bd(c[f>>2]|0);d=Qe(c[g>>2]|0,64,0)|0;c[(c[f>>2]|0)+20>>2]=d;if(a[(c[g>>2]|0)+64>>0]|0){b[(c[f>>2]|0)+8>>1]=1;c[(c[f>>2]|0)+24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2]=c[(c[o>>2]|0)+20>>2];a:while(1){if(!(c[m>>2]|0)){q=25;break}c[h>>2]=c[(c[m>>2]|0)+12>>2];while(1){if(!(c[h>>2]|0))break;d=c[h>>2]|0;g=c[d+4>>2]|0;a=j;f=c[a+4>>2]|0;n=c[h>>2]|0;if((g|0)<(f|0)|((g|0)==(f|0)?(c[d>>2]|0)>>>0<(c[a>>2]|0)>>>0:0)){c[h>>2]=c[n+8>>2];continue}d=n;g=c[d+4>>2]|0;a=j;f=c[a+4>>2]|0;if(!((g|0)>(f|0)|((g|0)==(f|0)?(c[d>>2]|0)>>>0>(c[a>>2]|0)>>>0:0))){q=23;break a}c[h>>2]=c[(c[h>>2]|0)+12>>2]}c[m>>2]=c[(c[m>>2]|0)+8>>2]}if((q|0)==23){c[k>>2]=1;a=c[k>>2]|0;i=l;return a|0}else if((q|0)==25){c[k>>2]=0;a=c[k>>2]|0;i=l;return a|0}return 0}function aA(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;e=b+4|0;f=b;c[f>>2]=a;if((d[(c[f>>2]|0)+16>>0]|0|0)>=3){c[e>>2]=0;f=c[e>>2]|0;i=b;return f|0}if((c[c[(c[f>>2]|0)+64>>2]>>2]|0)!=0?(f=(c[f>>2]|0)+72|0,a=c[f+4>>2]|0,(a|0)>0|(a|0)==0&(c[f>>2]|0)>>>0>0):0){c[e>>2]=0;f=c[e>>2]|0;i=b;return f|0}c[e>>2]=1;f=c[e>>2]|0;i=b;return f|0}function bA(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;f=b+4|0;e=b;c[f>>2]=a;c[e>>2]=c[c[(c[f>>2]|0)+60>>2]>>2];if(d[(c[f>>2]|0)+4>>0]|0){f=1;f=f&1;i=b;return f|0}if((c[c[e>>2]>>2]|0)<2){f=0;f=f&1;i=b;return f|0}f=(c[(c[e>>2]|0)+52>>2]|0)!=0;f=f&1;i=b;return f|0}function cA(a){a=a|0;var b=0,e=0,f=0,g=0;e=i;i=i+16|0;f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>2]=KA(c[g>>2]|0)|0;if((d[(c[g>>2]|0)+16>>0]|0)==1)c[h>>2]=hk(c[g>>2]|0,2)|0;if(!(c[h>>2]|0))_h(c[c[g>>2]>>2]|0,c[(c[g>>2]|0)+172>>2]|0,0)|0;if((c[h>>2]|0)==0&(c[j>>2]|0)==1){ei(c[g>>2]|0,1)|0;break}if(!(c[j>>2]|0))Nh(c[g>>2]|0)}while(0);i=f;return d[(c[g>>2]|0)+5>>0]|0}function eA(b,e){b=b|0;e=e|0;var f=0,g=0,h=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;q=i;i=i+80|0;v=q;n=q+68|0;u=q+64|0;h=q+60|0;g=q+56|0;o=q+52|0;r=q+48|0;x=q+44|0;k=q+40|0;l=q+36|0;m=q+32|0;f=q+28|0;p=q+24|0;w=q+20|0;t=q+16|0;y=q+12|0;j=q+8|0;s=q+4|0;c[u>>2]=b;c[h>>2]=e;c[g>>2]=0;c[x>>2]=0;c[p>>2]=0;if(!(a[(c[h>>2]|0)+62>>0]|0)){pn(c[u>>2]|0,c[h>>2]|0,32072,v);c[n>>2]=1;b=c[n>>2]|0;i=q;return b|0}if((c[(c[h>>2]|0)+148>>2]|0)>1){pn(c[u>>2]|0,c[h>>2]|0,32112,v);c[n>>2]=1;b=c[n>>2]|0;i=q;return b|0}c[k>>2]=c[(c[h>>2]|0)+24>>2];c[l>>2]=c[(c[h>>2]|0)+80>>2];c[m>>2]=c[(c[h>>2]|0)+84>>2];c[f>>2]=c[(c[h>>2]|0)+172>>2];b=(c[h>>2]|0)+24|0;c[b>>2]=c[b>>2]|2107392;b=(c[h>>2]|0)+24|0;c[b>>2]=c[b>>2]&-655361;c[(c[h>>2]|0)+172>>2]=0;c[o>>2]=c[(c[(c[h>>2]|0)+16>>2]|0)+4>>2];c[w>>2]=DA(Sb(c[o>>2]|0)|0)|0;c[y>>2]=c[(c[h>>2]|0)+20>>2];if(xh(c[h>>2]|0)|0)c[x>>2]=32160;else c[x>>2]=32192;c[g>>2]=EA(c[h>>2]|0,c[u>>2]|0,c[x>>2]|0)|0;if((c[(c[h>>2]|0)+20>>2]|0)>(c[y>>2]|0))c[p>>2]=(c[(c[h>>2]|0)+16>>2]|0)+((c[(c[h>>2]|0)+20>>2]|0)-1<<4);a:do if((((c[g>>2]|0)==0?(c[r>>2]=c[(c[(c[h>>2]|0)+16>>2]|0)+((c[(c[h>>2]|0)+20>>2]|0)-1<<4)+4>>2],gs(c[r>>2]|0)|0,c[t>>2]=FA(c[o>>2]|0)|0,c[g>>2]=EA(c[h>>2]|0,c[u>>2]|0,32216)|0,(c[g>>2]|0)==0):0)?(c[g>>2]=EA(c[h>>2]|0,c[u>>2]|0,32256)|0,(c[g>>2]|0)==0):0)?(c[g>>2]=Rc(c[o>>2]|0,2)|0,(c[g>>2]|0)==0):0){if((Vc(Sb(c[o>>2]|0)|0)|0)==5)c[(c[h>>2]|0)+72>>2]=0;y=c[r>>2]|0;b=Uc(c[o>>2]|0)|0;do if(!(kg(y,b,c[t>>2]|0,0)|0)){if((c[w>>2]|0)==0?(kg(c[r>>2]|0,c[(c[h>>2]|0)+72>>2]|0,c[t>>2]|0,0)|0)!=0:0)break;if(!(d[(c[h>>2]|0)+64>>0]|0)){v=c[r>>2]|0;if((a[(c[h>>2]|0)+66>>0]|0)>=0)e=a[(c[h>>2]|0)+66>>0]|0;else e=Tt(c[o>>2]|0)|0;Vt(v,e)|0;c[g>>2]=GA(c[h>>2]|0,c[u>>2]|0,32264)|0;if(c[g>>2]|0)break a;c[g>>2]=GA(c[h>>2]|0,c[u>>2]|0,32416)|0;if(c[g>>2]|0)break a;c[g>>2]=GA(c[h>>2]|0,c[u>>2]|0,32520)|0;if(c[g>>2]|0)break a;c[g>>2]=GA(c[h>>2]|0,c[u>>2]|0,32640)|0;if(c[g>>2]|0)break a;c[g>>2]=GA(c[h>>2]|0,c[u>>2]|0,32840)|0;if(c[g>>2]|0)break a;c[g>>2]=GA(c[h>>2]|0,c[u>>2]|0,32960)|0;if(c[g>>2]|0)break a;c[g>>2]=EA(c[h>>2]|0,c[u>>2]|0,33120)|0;if(c[g>>2]|0)break a;c[s>>2]=0;while(1){u=c[o>>2]|0;if((c[s>>2]|0)>=10)break;Sc(u,d[33304+(c[s>>2]|0)>>0]|0,j);c[g>>2]=bd(c[r>>2]|0,d[33304+(c[s>>2]|0)>>0]|0,(c[j>>2]|0)+(d[(c[s>>2]|0)+33305>>0]|0)|0)|0;if(c[g>>2]|0)break a;c[s>>2]=(c[s>>2]|0)+2}c[g>>2]=HA(u,c[r>>2]|0)|0;if(c[g>>2]|0)break a;c[g>>2]=gs(c[r>>2]|0)|0;if(c[g>>2]|0)break a;y=c[o>>2]|0;Vt(y,Tt(c[r>>2]|0)|0)|0;y=c[o>>2]|0;b=Uc(c[r>>2]|0)|0;c[g>>2]=kg(y,b,c[t>>2]|0,1)|0;break a}}while(0);c[g>>2]=7}while(0);c[(c[h>>2]|0)+24>>2]=c[k>>2];c[(c[h>>2]|0)+80>>2]=c[l>>2];c[(c[h>>2]|0)+84>>2]=c[m>>2];c[(c[h>>2]|0)+172>>2]=c[f>>2];kg(c[o>>2]|0,-1,-1,1)|0;a[(c[h>>2]|0)+62>>0]=1;if(c[p>>2]|0){Kk(c[(c[p>>2]|0)+4>>2]|0)|0;c[(c[p>>2]|0)+4>>2]=0;c[(c[p>>2]|0)+12>>2]=0}cd(c[h>>2]|0);c[n>>2]=c[g>>2];b=c[n>>2]|0;i=q;return b|0}function fA(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+32|0;k=d+20|0;e=d+16|0;f=d+12|0;h=d+8|0;j=d+4|0;g=d;c[k>>2]=b;c[f>>2]=c[(c[k>>2]|0)+4>>2];Pc(c[k>>2]|0);if(!(a[(c[f>>2]|0)+17>>0]|0)){c[e>>2]=101;k=c[e>>2]|0;i=d;return k|0}c[h>>2]=Aw(c[f>>2]|0)|0;c[j>>2]=Hh((c[(c[(c[f>>2]|0)+12>>2]|0)+56>>2]|0)+36|0)|0;c[g>>2]=rA(c[f>>2]|0,c[h>>2]|0,c[j>>2]|0)|0;if((c[h>>2]|0)>>>0<(c[g>>2]|0)>>>0){c[e>>2]=kj(55422)|0;k=c[e>>2]|0;i=d;return k|0}if((c[j>>2]|0)>>>0<=0){c[e>>2]=101;k=c[e>>2]|0;i=d;return k|0}c[e>>2]=Hy(c[f>>2]|0,0,0)|0;if(!(c[e>>2]|0)){sA(c[f>>2]|0);c[e>>2]=tA(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0,0)|0}if(c[e>>2]|0){k=c[e>>2]|0;i=d;return k|0}c[e>>2]=gd(c[(c[(c[f>>2]|0)+12>>2]|0)+68>>2]|0)|0;ck((c[(c[(c[f>>2]|0)+12>>2]|0)+56>>2]|0)+28|0,c[(c[f>>2]|0)+44>>2]|0);k=c[e>>2]|0;i=d;return k|0}function gA(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+16|0;j=g+8|0;k=g+4|0;m=g+13|0;h=g;l=g+12|0;c[j>>2]=b;c[k>>2]=e;a[m>>0]=f;c[h>>2]=0;if(!(a[(c[j>>2]|0)+9>>0]|0)){b=c[h>>2]|0;i=g;return b|0}a[l>>0]=1+(d[m>>0]|0);Pc(c[j>>2]|0);c[h>>2]=By(c[j>>2]|0,c[k>>2]|0,a[l>>0]|0)|0;if(c[h>>2]|0){b=c[h>>2]|0;i=g;return b|0}c[h>>2]=qA(c[j>>2]|0,c[k>>2]|0,a[l>>0]|0)|0;b=c[h>>2]|0;i=g;return b|0}function hA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;f=e+20|0;h=e+16|0;k=e+12|0;j=e+8|0;l=e+4|0;g=e;c[h>>2]=a;c[k>>2]=b;c[j>>2]=0;if((c[(c[h>>2]|0)+304>>2]|0)>0?(c[(c[h>>2]|0)+328>>2]|0)==0:0){c[f>>2]=6;a=c[f>>2]|0;i=e;return a|0}if(!(c[k>>2]|0)){c[f>>2]=0;a=c[f>>2]|0;i=e;return a|0}c[l>>2]=c[c[(c[k>>2]|0)+8>>2]>>2];if(c[(c[l>>2]|0)+56>>2]|0){c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[(c[h>>2]|0)+304>>2]|0))break;if((c[(c[(c[h>>2]|0)+328>>2]|0)+(c[g>>2]<<2)>>2]|0)==(c[k>>2]|0)){d=10;break}c[g>>2]=(c[g>>2]|0)+1}if((d|0)==10){c[f>>2]=0;a=c[f>>2]|0;i=e;return a|0}c[j>>2]=oA(c[h>>2]|0)|0;if((c[j>>2]|0)==0?(c[j>>2]=ub[c[(c[l>>2]|0)+56>>2]&31](c[(c[k>>2]|0)+8>>2]|0)|0,(c[j>>2]|0)==0):0)pA(c[h>>2]|0,c[k>>2]|0)}c[f>>2]=c[j>>2];a=c[f>>2]|0;i=e;return a|0}function iA(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,m=0,n=0,o=0,p=0;g=i;i=i+48|0;m=g;h=g+32|0;o=g+28|0;p=g+24|0;k=g+20|0;l=g+16|0;j=g+12|0;f=g+8|0;n=g+4|0;c[h>>2]=a;c[o>>2]=b;c[p>>2]=d;c[k>>2]=e;c[l>>2]=0;c[j>>2]=sp(c[h>>2]|0,c[p>>2]|0,c[(c[(c[h>>2]|0)+16>>2]|0)+(c[o>>2]<<4)>>2]|0)|0;c[n>>2]=c[c[(c[j>>2]|0)+56>>2]>>2];c[f>>2]=bh((c[h>>2]|0)+308|0,c[n>>2]|0)|0;e=c[h>>2]|0;if(c[f>>2]|0)c[l>>2]=zr(e,c[j>>2]|0,c[f>>2]|0,c[(c[c[f>>2]>>2]|0)+4>>2]|0,c[k>>2]|0)|0;else{c[m>>2]=c[n>>2];p=Te(e,17944,m)|0;c[c[k>>2]>>2]=p;c[l>>2]=1}if(c[l>>2]|0){p=c[l>>2]|0;i=g;return p|0}if(!(Rp(c[h>>2]|0,c[j>>2]|0)|0)){p=c[l>>2]|0;i=g;return p|0}c[l>>2]=oA(c[h>>2]|0)|0;if(c[l>>2]|0){p=c[l>>2]|0;i=g;return p|0}p=c[h>>2]|0;pA(p,Rp(c[h>>2]|0,c[j>>2]|0)|0);p=c[l>>2]|0;i=g;return p|0}function jA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;g=e+20|0;k=e+16|0;l=e+12|0;f=e+8|0;h=e+4|0;j=e;c[g>>2]=a;c[k>>2]=b;c[l>>2]=d;c[f>>2]=0;c[h>>2]=sp(c[g>>2]|0,c[l>>2]|0,c[(c[(c[g>>2]|0)+16>>2]|0)+(c[k>>2]<<4)>>2]|0)|0;if(!(c[h>>2]|0)){l=c[f>>2]|0;i=e;return l|0}if(!(c[(c[h>>2]|0)+60>>2]|0)){l=c[f>>2]|0;i=e;return l|0}c[j>>2]=Gy(c[g>>2]|0,c[h>>2]|0)|0;c[f>>2]=ub[c[(c[c[(c[j>>2]|0)+4>>2]>>2]|0)+20>>2]&31](c[(c[j>>2]|0)+8>>2]|0)|0;if(c[f>>2]|0){l=c[f>>2]|0;i=e;return l|0}c[(c[j>>2]|0)+8>>2]=0;c[(c[h>>2]|0)+60>>2]=0;Nk(c[j>>2]|0);l=c[f>>2]|0;i=e;return l|0}function kA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;g=e+8|0;f=e+4|0;d=e;c[g>>2]=a;c[f>>2]=b;Pc(c[g>>2]|0);c[d>>2]=nA(c[c[(c[g>>2]|0)+4>>2]>>2]|0,c[f>>2]|0)|0;i=e;return c[d>>2]|0}function lA(b,f){b=b|0;f=f|0;var g=0,j=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;g=i;i=i+240|0;s=g+40|0;p=g+120|0;t=g+116|0;r=g+112|0;n=g+108|0;o=g+104|0;l=g+100|0;m=g+96|0;y=g+92|0;q=g+88|0;j=g+60|0;z=g+56|0;w=g+52|0;u=g+124|0;v=g;x=g+48|0;c[p>>2]=b;c[t>>2]=f;c[n>>2]=0;c[o>>2]=1;c[r>>2]=c[c[p>>2]>>2];nc(j,g+128|0,100,c[(c[r>>2]|0)+88>>2]|0);c[j>>2]=c[r>>2];if((c[(c[r>>2]|0)+160>>2]|0)>1){while(1){if(!(a[c[t>>2]>>0]|0))break;c[z>>2]=c[t>>2];do{b=c[t>>2]|0;c[t>>2]=b+1;if((a[b>>0]|0)==10)break}while((a[c[t>>2]>>0]|0)!=0);Vm(j,32016,3);Vm(j,c[z>>2]|0,(c[t>>2]|0)-(c[z>>2]|0)|0)}b=pc(j)|0;i=g;return b|0}while(1){if(!(a[c[t>>2]>>0]|0)){l=31;break}c[l>>2]=mA(c[t>>2]|0,m)|0;Vm(j,c[t>>2]|0,c[l>>2]|0);c[t>>2]=(c[t>>2]|0)+(c[l>>2]|0);if(!(c[m>>2]|0)){l=31;break}do if((a[c[t>>2]>>0]|0)==63)if((c[m>>2]|0)>1){Ag((c[t>>2]|0)+1|0,n)|0;break}else{c[n>>2]=c[o>>2];break}else c[n>>2]=Me(c[p>>2]|0,c[t>>2]|0,c[m>>2]|0)|0;while(0);c[t>>2]=(c[t>>2]|0)+(c[m>>2]|0);c[o>>2]=(c[n>>2]|0)+1;c[q>>2]=(c[(c[p>>2]|0)+60>>2]|0)+(((c[n>>2]|0)-1|0)*40|0);if(e[(c[q>>2]|0)+8>>1]&1){Vm(j,9840,4);continue}z=c[q>>2]|0;if(e[(c[q>>2]|0)+8>>1]&4){f=c[z+4>>2]|0;b=s;c[b>>2]=c[z>>2];c[b+4>>2]=f;kn(j,0,9456,s);continue}f=c[q>>2]|0;if(e[z+8>>1]&8){h[k>>3]=+h[f>>3];c[s>>2]=c[k>>2];c[s+4>>2]=c[k+4>>2];kn(j,0,9808,s);continue}if(e[f+8>>1]&2){a[u>>0]=a[(c[(c[(c[r>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]|0;if((d[u>>0]|0)!=1){f=v+0|0;z=f+40|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(z|0));c[v+32>>2]=c[r>>2];Vd(v,c[(c[q>>2]|0)+16>>2]|0,c[(c[q>>2]|0)+12>>2]|0,a[u>>0]|0,0)|0;yk(v,1)|0;c[q>>2]=v}c[w>>2]=c[(c[q>>2]|0)+12>>2];b=c[(c[q>>2]|0)+16>>2]|0;c[s>>2]=c[w>>2];c[s+4>>2]=b;kn(j,0,32024,s);if((d[u>>0]|0)==1)continue;Bd(v);continue}if(e[(c[q>>2]|0)+8>>1]&16384){c[s>>2]=c[c[q>>2]>>2];kn(j,0,32032,s);continue}Vm(j,32048,2);c[x>>2]=c[(c[q>>2]|0)+12>>2];c[y>>2]=0;while(1){if((c[y>>2]|0)>=(c[x>>2]|0))break;c[s>>2]=a[(c[(c[q>>2]|0)+16>>2]|0)+(c[y>>2]|0)>>0]&255;kn(j,0,32056,s);c[y>>2]=(c[y>>2]|0)+1}Vm(j,32064,1)}if((l|0)==31){b=pc(j)|0;i=g;return b|0}return 0}function mA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;g=i;i=i+32|0;j=g+16|0;h=g+12|0;k=g+8|0;f=g+4|0;l=g;c[j>>2]=b;c[h>>2]=d;c[f>>2]=0;c[c[h>>2]>>2]=0;while(1){if(!(a[c[j>>2]>>0]|0)){e=6;break}c[l>>2]=qm(c[j>>2]|0,k)|0;d=c[l>>2]|0;if((c[k>>2]|0)==135)break;c[f>>2]=(c[f>>2]|0)+d;c[j>>2]=(c[j>>2]|0)+(c[l>>2]|0)}if((e|0)==6){b=c[f>>2]|0;i=g;return b|0}c[c[h>>2]>>2]=d;b=c[f>>2]|0;i=g;return b|0}function nA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e+4|0;f=e;c[d>>2]=a;c[f>>2]=b;if((c[f>>2]|0)>0)c[(c[d>>2]|0)+156>>2]=c[f>>2];i=e;return c[(c[d>>2]|0)+156>>2]|0}function oA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+32|0;d=b+16|0;e=b+12|0;f=b+4|0;g=b;c[e>>2]=a;c[b+8>>2]=5;do if(!((c[(c[e>>2]|0)+304>>2]|0)%5|0)){c[g>>2]=(c[(c[e>>2]|0)+304>>2]|0)+5<<2;g=c[g>>2]|0;c[f>>2]=Fk(c[e>>2]|0,c[(c[e>>2]|0)+328>>2]|0,g,((g|0)<0)<<31>>31)|0;if(c[f>>2]|0){g=(c[f>>2]|0)+(c[(c[e>>2]|0)+304>>2]<<2)|0;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[g+16>>2]=0;c[(c[e>>2]|0)+328>>2]=c[f>>2];break}c[d>>2]=7;g=c[d>>2]|0;i=b;return g|0}while(0);c[d>>2]=0;g=c[d>>2]|0;i=b;return g|0}function pA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;b=c[e>>2]|0;g=(c[f>>2]|0)+304|0;a=c[g>>2]|0;c[g>>2]=a+1;c[(c[(c[f>>2]|0)+328>>2]|0)+(a<<2)>>2]=b;Qy(c[e>>2]|0);i=d;return}function qA(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;o=i;i=i+32|0;g=o+20|0;l=o+16|0;k=o+12|0;n=o+24|0;m=o+8|0;j=o+4|0;p=o;c[l>>2]=b;c[k>>2]=e;a[n>>0]=f;c[m>>2]=c[(c[l>>2]|0)+4>>2];c[j>>2]=0;c[p>>2]=c[(c[m>>2]|0)+72>>2];while(1){if(!(c[p>>2]|0))break;if((c[(c[p>>2]|0)+4>>2]|0)==(c[k>>2]|0)?(c[c[p>>2]>>2]|0)==(c[l>>2]|0):0){h=5;break}c[p>>2]=c[(c[p>>2]|0)+12>>2]}if((h|0)==5)c[j>>2]=c[p>>2];do if(!(c[j>>2]|0)){c[j>>2]=Mc(16,0)|0;if(c[j>>2]|0){c[(c[j>>2]|0)+4>>2]=c[k>>2];c[c[j>>2]>>2]=c[l>>2];c[(c[j>>2]|0)+12>>2]=c[(c[m>>2]|0)+72>>2];c[(c[m>>2]|0)+72>>2]=c[j>>2];break}c[g>>2]=7;b=c[g>>2]|0;i=o;return b|0}while(0);if((d[n>>0]|0|0)>(d[(c[j>>2]|0)+8>>0]|0|0))a[(c[j>>2]|0)+8>>0]=a[n>>0]|0;c[g>>2]=0;b=c[g>>2]|0;i=o;return b|0}function rA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;g=e+20|0;h=e+16|0;k=e+12|0;l=e+8|0;j=e+4|0;f=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=((c[(c[g>>2]|0)+36>>2]|0)>>>0)/5|0;a=(c[k>>2]|0)-(c[h>>2]|0)|0;a=a+(Pw(c[g>>2]|0,c[h>>2]|0)|0)|0;c[j>>2]=((a+(c[l>>2]|0)|0)>>>0)/((c[l>>2]|0)>>>0)|0;c[f>>2]=(c[h>>2]|0)-(c[k>>2]|0)-(c[j>>2]|0);if((c[h>>2]|0)>>>0>((((c[282]|0)>>>0)/((c[(c[g>>2]|0)+32>>2]|0)>>>0)|0)+1|0)>>>0?(c[f>>2]|0)>>>0<((((c[282]|0)>>>0)/((c[(c[g>>2]|0)+32>>2]|0)>>>0)|0)+1|0)>>>0:0)c[f>>2]=(c[f>>2]|0)+ -1;while(1){l=Pw(c[g>>2]|0,c[f>>2]|0)|0;if((l|0)==(c[f>>2]|0))b=1;else b=(c[f>>2]|0)==((((c[282]|0)>>>0)/((c[(c[g>>2]|0)+32>>2]|0)>>>0)|0)+1|0);d=c[f>>2]|0;if(!b)break;c[f>>2]=d+ -1}i=e;return d|0}function sA(b){b=b|0;var e=0,f=0,g=0;e=i;i=i+16|0;g=e+4|0;f=e;c[g>>2]=b;c[f>>2]=c[(c[g>>2]|0)+8>>2];while(1){if(!(c[f>>2]|0))break;g=(c[f>>2]|0)+72|0;a[g>>0]=(d[g>>0]|0)&-5;c[f>>2]=c[(c[f>>2]|0)+8>>2]}i=e;return}function tA(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=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;t=i;i=i+64|0;k=t+52|0;o=t+48|0;v=t+44|0;q=t+40|0;m=t+36|0;z=t+32|0;l=t+28|0;s=t+57|0;h=t+24|0;p=t+20|0;n=t+16|0;u=t+12|0;r=t+8|0;y=t+56|0;x=t+4|0;w=t;c[o>>2]=b;c[v>>2]=e;c[q>>2]=f;c[m>>2]=g;b=Pw(c[o>>2]|0,c[q>>2]|0)|0;do if((b|0)!=(c[q>>2]|0)?(c[q>>2]|0)!=((((c[282]|0)>>>0)/((c[(c[o>>2]|0)+32>>2]|0)>>>0)|0)+1|0):0){c[z>>2]=Hh((c[(c[(c[o>>2]|0)+12>>2]|0)+56>>2]|0)+36|0)|0;if(!(c[z>>2]|0)){c[k>>2]=101;b=c[k>>2]|0;i=t;return b|0}c[l>>2]=Qw(c[o>>2]|0,c[q>>2]|0,s,h)|0;if(c[l>>2]|0){c[k>>2]=c[l>>2];b=c[k>>2]|0;i=t;return b|0}if((d[s>>0]|0|0)==1){c[k>>2]=kj(55307)|0;b=c[k>>2]|0;i=t;return b|0}if((d[s>>0]|0|0)==2){if(c[m>>2]|0)break;c[l>>2]=uA(c[o>>2]|0,n,p,c[q>>2]|0,1)|0;if(!(c[l>>2]|0)){Rk(c[n>>2]|0);break}c[k>>2]=c[l>>2];b=c[k>>2]|0;i=t;return b|0}a[y>>0]=0;c[x>>2]=0;c[l>>2]=Bw(c[o>>2]|0,c[q>>2]|0,r,0)|0;if(c[l>>2]|0){c[k>>2]=c[l>>2];b=c[k>>2]|0;i=t;return b|0}if(!(c[m>>2]|0)){a[y>>0]=2;c[x>>2]=c[v>>2]}do{c[l>>2]=uA(c[o>>2]|0,w,u,c[x>>2]|0,a[y>>0]|0)|0;if(c[l>>2]|0){j=19;break}Rk(c[w>>2]|0);if(!(c[m>>2]|0))break}while((c[u>>2]|0)>>>0>(c[v>>2]|0)>>>0);if((j|0)==19){Rk(c[r>>2]|0);c[k>>2]=c[l>>2];b=c[k>>2]|0;i=t;return b|0}c[l>>2]=vA(c[o>>2]|0,c[r>>2]|0,a[s>>0]|0,c[h>>2]|0,c[u>>2]|0,c[m>>2]|0)|0;Rk(c[r>>2]|0);if(c[l>>2]|0){c[k>>2]=c[l>>2];b=c[k>>2]|0;i=t;return b|0}}while(0);if(!(c[m>>2]|0)){while(1){c[q>>2]=(c[q>>2]|0)+ -1;if((c[q>>2]|0)==((((c[282]|0)>>>0)/((c[(c[o>>2]|0)+32>>2]|0)>>>0)|0)+1|0))continue;b=Pw(c[o>>2]|0,c[q>>2]|0)|0;if((b|0)!=(c[q>>2]|0))break}a[(c[o>>2]|0)+19>>0]=1;c[(c[o>>2]|0)+44>>2]=c[q>>2]}c[k>>2]=0;b=c[k>>2]|0;i=t;return b|0}function uA(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;m=i;i=i+112|0;k=m+92|0;A=m+88|0;l=m+84|0;E=m+80|0;B=m+76|0;q=m+98|0;z=m+72|0;j=m+68|0;H=m+64|0;x=m+60|0;o=m+56|0;n=m+52|0;t=m+48|0;D=m+44|0;w=m+97|0;I=m+96|0;C=m+40|0;u=m+36|0;r=m+32|0;s=m+28|0;y=m+24|0;v=m+20|0;p=m+16|0;F=m+12|0;G=m+8|0;K=m+4|0;J=m;c[A>>2]=b;c[l>>2]=e;c[E>>2]=f;c[B>>2]=g;a[q>>0]=h;c[o>>2]=0;c[n>>2]=0;c[z>>2]=c[(c[A>>2]|0)+12>>2];c[t>>2]=Aw(c[A>>2]|0)|0;c[H>>2]=Hh((c[(c[z>>2]|0)+56>>2]|0)+36|0)|0;if((c[H>>2]|0)>>>0>=(c[t>>2]|0)>>>0){c[k>>2]=kj(57337)|0;b=c[k>>2]|0;i=m;return b|0}a:do if((c[H>>2]|0)>>>0>0){a[w>>0]=0;do if((d[q>>0]|0)==1){if((c[B>>2]|0)>>>0<=(c[t>>2]|0)>>>0){c[j>>2]=Qw(c[A>>2]|0,c[B>>2]|0,I,0)|0;if(c[j>>2]|0){c[k>>2]=c[j>>2];b=c[k>>2]|0;i=m;return b|0}else{if((d[I>>0]|0)!=2)break;a[w>>0]=1;break}}}else if((d[q>>0]|0)==2)a[w>>0]=1;while(0);c[j>>2]=gd(c[(c[z>>2]|0)+68>>2]|0)|0;if(c[j>>2]|0){c[k>>2]=c[j>>2];b=c[k>>2]|0;i=m;return b|0}ck((c[(c[z>>2]|0)+56>>2]|0)+36|0,(c[H>>2]|0)-1|0);b:while(1){c[n>>2]=c[o>>2];if(c[n>>2]|0)c[D>>2]=Hh(c[(c[n>>2]|0)+56>>2]|0)|0;else c[D>>2]=Hh((c[(c[z>>2]|0)+56>>2]|0)+32|0)|0;if((c[D>>2]|0)>>>0>(c[t>>2]|0)>>>0)c[j>>2]=kj(57386)|0;else c[j>>2]=Bw(c[A>>2]|0,c[D>>2]|0,o,0)|0;if(c[j>>2]|0){p=22;break}c[x>>2]=Hh((c[(c[o>>2]|0)+56>>2]|0)+4|0)|0;c:do if((c[x>>2]|0)!=0|(a[w>>0]|0)!=0){if((c[x>>2]|0)>>>0>((((c[(c[A>>2]|0)+36>>2]|0)>>>0)/4|0)-2|0)>>>0){p=27;break b}do if(d[w>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!(c[n>>2]|0)){ck((c[(c[z>>2]|0)+56>>2]|0)+32|0,c[u>>2]|0);break}c[j>>2]=gd(c[(c[n>>2]|0)+68>>2]|0)|0;if(c[j>>2]|0)break a;ck(c[(c[n>>2]|0)+56>>2]|0,c[u>>2]|0)}while(0);c[o>>2]=0;break c}while(0);if((c[x>>2]|0)>>>0>0){c[y>>2]=c[(c[o>>2]|0)+56>>2];b=(c[B>>2]|0)>>>0>0;c[r>>2]=0;d:do if(b)if((d[q>>0]|0)==2){c[v>>2]=0;while(1){if((c[v>>2]|0)>>>0>=(c[x>>2]|0)>>>0)break d;c[s>>2]=Hh((c[y>>2]|0)+(8+(c[v>>2]<<2))|0)|0;H=c[v>>2]|0;if((c[s>>2]|0)>>>0<=(c[B>>2]|0)>>>0)break;c[v>>2]=H+1}c[r>>2]=H;break}else{b=Hh((c[y>>2]|0)+8|0)|0;c[p>>2]=ds(b-(c[B>>2]|0)|0)|0;c[v>>2]=1;while(1){if((c[v>>2]|0)>>>0>=(c[x>>2]|0)>>>0)break d;b=Hh((c[y>>2]|0)+(8+(c[v>>2]<<2))|0)|0;c[F>>2]=ds(b-(c[B>>2]|0)|0)|0;if((c[F>>2]|0)<(c[p>>2]|0)){c[r>>2]=c[v>>2];c[p>>2]=c[F>>2]}c[v>>2]=(c[v>>2]|0)+1}}while(0);c[s>>2]=Hh((c[y>>2]|0)+(8+(c[r>>2]<<2))|0)|0;if((c[s>>2]|0)>>>0>(c[t>>2]|0)>>>0){p=62;break b}if((a[w>>0]|0)!=0?(c[s>>2]|0)!=(c[B>>2]|0):0){if((c[s>>2]|0)>>>0>=(c[B>>2]|0)>>>0)break;if((d[q>>0]|0)!=2)break}c[c[E>>2]>>2]=c[s>>2];c[j>>2]=gd(c[(c[o>>2]|0)+68>>2]|0)|0;if(c[j>>2]|0)break a;if((c[r>>2]|0)>>>0<((c[x>>2]|0)-1|0)>>>0){b=(c[y>>2]|0)+(8+(c[r>>2]<<2))|0;e=(c[y>>2]|0)+(4+(c[x>>2]<<2))|0;a[b+0>>0]=a[e+0>>0]|0;a[b+1>>0]=a[e+1>>0]|0;a[b+2>>0]=a[e+2>>0]|0;a[b+3>>0]=a[e+3>>0]|0}ck((c[y>>2]|0)+4|0,(c[x>>2]|0)-1|0);b=(CA(c[A>>2]|0,c[c[E>>2]>>2]|0)|0)!=0^1;c[G>>2]=b?1:0;c[j>>2]=Bw(c[A>>2]|0,c[c[E>>2]>>2]|0,c[l>>2]|0,c[G>>2]|0)|0;do if(!(c[j>>2]|0)){c[j>>2]=gd(c[(c[c[l>>2]>>2]|0)+68>>2]|0)|0;if(!(c[j>>2]|0))break;Rk(c[c[l>>2]>>2]|0)}while(0);a[w>>0]=0}}else{c[j>>2]=gd(c[(c[o>>2]|0)+68>>2]|0)|0;if(c[j>>2]|0)break a;c[c[E>>2]>>2]=c[D>>2];b=(c[(c[z>>2]|0)+56>>2]|0)+32|0;e=c[(c[o>>2]|0)+56>>2]|0;a[b+0>>0]=a[e+0>>0]|0;a[b+1>>0]=a[e+1>>0]|0;a[b+2>>0]=a[e+2>>0]|0;a[b+3>>0]=a[e+3>>0]|0;c[c[l>>2]>>2]=c[o>>2];c[o>>2]=0}while(0);Rk(c[n>>2]|0);c[n>>2]=0;if(!(a[w>>0]|0))break a}if((p|0)==22){c[o>>2]=0;break}else if((p|0)==27){c[j>>2]=kj(57414)|0;break}else if((p|0)==39){c[j>>2]=kj(57448)|0;break}else if((p|0)==42){Rk(H);break}else if((p|0)==62){c[j>>2]=kj(57513)|0;break}}else{c[K>>2]=0==(d[(c[A>>2]|0)+19>>0]|0)?1:0;c[j>>2]=gd(c[(c[(c[A>>2]|0)+12>>2]|0)+68>>2]|0)|0;if(c[j>>2]|0){c[k>>2]=c[j>>2];b=c[k>>2]|0;i=m;return b|0}b=(c[A>>2]|0)+44|0;c[b>>2]=(c[b>>2]|0)+1;if((c[(c[A>>2]|0)+44>>2]|0)==((((c[282]|0)>>>0)/((c[(c[A>>2]|0)+32>>2]|0)>>>0)|0)+1|0)){b=(c[A>>2]|0)+44|0;c[b>>2]=(c[b>>2]|0)+1}do if((d[(c[A>>2]|0)+17>>0]|0)!=0?(b=Pw(c[A>>2]|0,c[(c[A>>2]|0)+44>>2]|0)|0,(b|0)==(c[(c[A>>2]|0)+44>>2]|0)):0){c[J>>2]=0;c[j>>2]=Bw(c[A>>2]|0,c[(c[A>>2]|0)+44>>2]|0,J,c[K>>2]|0)|0;if(!(c[j>>2]|0)){c[j>>2]=gd(c[(c[J>>2]|0)+68>>2]|0)|0;Rk(c[J>>2]|0)}if(c[j>>2]|0){c[k>>2]=c[j>>2];b=c[k>>2]|0;i=m;return b|0}else{b=(c[A>>2]|0)+44|0;c[b>>2]=(c[b>>2]|0)+1;if((c[(c[A>>2]|0)+44>>2]|0)!=((((c[282]|0)>>>0)/((c[(c[A>>2]|0)+32>>2]|0)>>>0)|0)+1|0))break;b=(c[A>>2]|0)+44|0;c[b>>2]=(c[b>>2]|0)+1;break}}while(0);ck((c[(c[(c[A>>2]|0)+12>>2]|0)+56>>2]|0)+28|0,c[(c[A>>2]|0)+44>>2]|0);c[c[E>>2]>>2]=c[(c[A>>2]|0)+44>>2];c[j>>2]=Bw(c[A>>2]|0,c[c[E>>2]>>2]|0,c[l>>2]|0,c[K>>2]|0)|0;if(c[j>>2]|0){c[k>>2]=c[j>>2];b=c[k>>2]|0;i=m;return b|0}else{c[j>>2]=gd(c[(c[c[l>>2]>>2]|0)+68>>2]|0)|0;if(!(c[j>>2]|0))break;Rk(c[c[l>>2]>>2]|0);break}}while(0);Rk(c[o>>2]|0);Rk(c[n>>2]|0);n=c[l>>2]|0;do if(!(c[j>>2]|0)){b=(Rj(c[(c[n>>2]|0)+68>>2]|0)|0)>1;n=c[c[l>>2]>>2]|0;if(!b){a[n>>0]=0;break}Rk(n);c[c[l>>2]>>2]=0;c[k>>2]=kj(57612)|0;b=c[k>>2]|0;i=m;return b|0}else c[n>>2]=0;while(0);c[k>>2]=c[j>>2];b=c[k>>2]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>2]|0)break;yA(c[m>>2]|0,c[r>>2]|0,a[p>>0]|0,c[n>>2]|0,l);break}}while(0);c[k>>2]=c[l>>2];x=c[k>>2]|0;i=q;return x|0}function wA(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;l=i;i=i+48|0;k=l+36|0;r=l+32|0;p=l+28|0;j=l+24|0;t=l+20|0;n=l+16|0;m=l+12|0;q=l+8|0;o=l+4|0;s=l;c[r>>2]=d;c[p>>2]=f;c[j>>2]=g;c[t>>2]=h;c[m>>2]=0;if((a[(c[r>>2]|0)+15>>0]|0)!=0?(c[q>>2]=gd(c[p>>2]|0)|0,(c[q>>2]|0)!=0):0){c[k>>2]=c[q>>2];d=c[k>>2]|0;i=l;return d|0}if(((e[(c[p>>2]|0)+24>>1]&2|0)!=0?(Xj(c[p>>2]|0)|0)!=0:0)?(d=Yj(c[p>>2]|0)|0,c[q>>2]=d,0!=(d|0)):0){c[k>>2]=c[q>>2];d=c[k>>2]|0;i=l;return d|0}if(!((c[t>>2]|0)!=0?1:(e[(c[p>>2]|0)+24>>1]&4|0)==0))c[m>>2]=c[(c[p>>2]|0)+20>>2];d=(c[p>>2]|0)+24|0;b[d>>1]=e[d>>1]&-5;c[n>>2]=Hi(c[r>>2]|0,c[j>>2]|0)|0;do if(c[n>>2]|0){h=(c[p>>2]|0)+24|0;b[h>>1]=e[h>>1]|e[(c[n>>2]|0)+24>>1]&4;h=c[n>>2]|0;if(a[(c[r>>2]|0)+15>>0]|0){BA(h,(c[(c[r>>2]|0)+24>>2]|0)+1|0);break}else{bj(h);break}}while(0);c[o>>2]=c[(c[p>>2]|0)+20>>2];BA(c[p>>2]|0,c[j>>2]|0);Ji(c[p>>2]|0);if(a[(c[r>>2]|0)+15>>0]|0){BA(c[n>>2]|0,c[o>>2]|0);ej(c[n>>2]|0)}do if(c[m>>2]|0){c[q>>2]=Xc(c[r>>2]|0,c[m>>2]|0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,t=0,u=0;r=i;i=i+64|0;l=r+48|0;n=r+44|0;o=r+40|0;m=r+36|0;j=r+53|0;q=r+52|0;s=r+32|0;t=r+28|0;u=r+24|0;p=r;c[n>>2]=b;c[o>>2]=f;c[m>>2]=g;a[j>>0]=h;h=c[n>>2]|0;do if((d[j>>0]|0|0)==4){b=Hh(c[h+56>>2]|0)|0;if((b|0)==(c[o>>2]|0)){ck(c[(c[n>>2]|0)+56>>2]|0,c[m>>2]|0);break}c[l>>2]=kj(55139)|0;b=c[l>>2]|0;i=r;return b|0}else{a[q>>0]=a[h>>0]|0;Sj(c[n>>2]|0)|0;c[t>>2]=e[(c[n>>2]|0)+18>>1];c[s>>2]=0;while(1){if((c[s>>2]|0)>=(c[t>>2]|0))break;c[u>>2]=(c[(c[n>>2]|0)+56>>2]|0)+((e[(c[n>>2]|0)+20>>1]|0)&((d[(c[(c[n>>2]|0)+64>>2]|0)+(c[s>>2]<<1)>>0]|0)<<8|(d[(c[(c[n>>2]|0)+64>>2]|0)+(c[s>>2]<<1)+1>>0]|0)));if((d[j>>0]|0|0)==3){Kw(c[n>>2]|0,c[u>>2]|0,p);if(((e[p+18>>1]|0|0)!=0?((c[u>>2]|0)+(e[p+18>>1]|0)+3|0)>>>0<=((c[(c[n>>2]|0)+56>>2]|0)+(e[(c[n>>2]|0)+20>>1]|0)|0)>>>0:0)?(b=c[o>>2]|0,(b|0)==(Hh((c[u>>2]|0)+(e[p+18>>1]|0)|0)|0)):0){k=11;break}}else{b=Hh(c[u>>2]|0)|0;if((b|0)==(c[o>>2]|0)){k=13;break}}c[s>>2]=(c[s>>2]|0)+1}if((k|0)==11)ck((c[u>>2]|0)+(e[p+18>>1]|0)|0,c[m>>2]|0);else if((k|0)==13)ck(c[u>>2]|0,c[m>>2]|0);do if((c[s>>2]|0)==(c[t>>2]|0)){if((d[j>>0]|0|0)==5?(b=Hh((c[(c[n>>2]|0)+56>>2]|0)+((d[(c[n>>2]|0)+6>>0]|0)+8)|0)|0,(b|0)==(c[o>>2]|0)):0){ck((c[(c[n>>2]|0)+56>>2]|0)+((d[(c[n>>2]|0)+6>>0]|0)+8)|0,c[m>>2]|0);break}c[l>>2]=kj(55173)|0;b=c[l>>2]|0;i=r;return b|0}while(0);a[c[n>>2]>>0]=a[q>>0]|0}while(0);c[l>>2]=0;b=c[l>>2]|0;i=r;return b|0}function AA(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+48|0;l=g+36|0;h=g+32|0;m=g+28|0;j=g;k=g+24|0;c[l>>2]=a;c[h>>2]=d;c[m>>2]=f;if(c[c[m>>2]>>2]|0){i=g;return}Kw(c[l>>2]|0,c[h>>2]|0,j);if(!(b[j+18>>1]|0)){i=g;return}c[k>>2]=Hh((c[h>>2]|0)+(e[j+18>>1]|0)|0)|0;yA(c[(c[l>>2]|0)+52>>2]|0,c[k>>2]|0,3,c[(c[l>>2]|0)+72>>2]|0,c[m>>2]|0);i=g;return}function BA(a,b){a=a|0;b=b|0;var d=0,f=0,g=0,h=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;h=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=c[(c[f>>2]|0)+28>>2];Bb[c[38640+140>>2]&3](c[(c[h>>2]|0)+40>>2]|0,c[c[f>>2]>>2]|0,c[(c[f>>2]|0)+20>>2]|0,c[g>>2]|0);c[(c[f>>2]|0)+20>>2]=c[g>>2];if(!((e[(c[f>>2]|0)+24>>1]|0)&2)){i=d;return}if(!((e[(c[f>>2]|0)+24>>1]|0)&4)){i=d;return}Sg(c[f>>2]|0,3);i=d;return}function CA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+8|0;f=d+4|0;e=d;c[g>>2]=a;c[f>>2]=b;c[e>>2]=c[(c[g>>2]|0)+60>>2];if(!(c[e>>2]|0)){g=0;g=g&1;i=d;return g|0}g=c[f>>2]|0;if(g>>>0>(Zg(c[e>>2]|0)|0)>>>0){g=1;g=g&1;i=d;return g|0}g=(Yg(c[e>>2]|0,c[f>>2]|0)|0)!=0;g=g&1;i=d;return g|0}function DA(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;c[b>>2]=a;i=e;return d[(c[b>>2]|0)+15>>0]|0|0}function EA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;f=e+20|0;h=e+16|0;g=e+12|0;k=e+8|0;j=e+4|0;c[h>>2]=a;c[g>>2]=b;c[k>>2]=d;if(!(c[k>>2]|0)){c[f>>2]=7;a=c[f>>2]|0;i=e;return a|0}if(of(c[h>>2]|0,c[k>>2]|0,-1,j,0)|0){b=c[g>>2]|0;a=c[h>>2]|0;pn(b,a,nf(c[h>>2]|0)|0,e);c[f>>2]=ag(c[h>>2]|0)|0;a=c[f>>2]|0;i=e;return a|0}else{je(c[j>>2]|0)|0;c[f>>2]=JA(c[h>>2]|0,c[j>>2]|0,c[g>>2]|0)|0;a=c[f>>2]|0;i=e;return a|0}return 0}function FA(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;e=d+4|0;b=d;c[e>>2]=a;Pc(c[e>>2]|0);c[b>>2]=(c[(c[(c[e>>2]|0)+4>>2]|0)+32>>2]|0)-(c[(c[(c[e>>2]|0)+4>>2]|0)+36>>2]|0);i=d;return c[b>>2]|0}function GA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;j=i;i=i+32|0;f=j+20|0;h=j+16|0;k=j+12|0;l=j+8|0;e=j+4|0;g=j;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[g>>2]=of(c[h>>2]|0,c[l>>2]|0,-1,e,0)|0;if(c[g>>2]|0){c[f>>2]=c[g>>2];l=c[f>>2]|0;i=j;return l|0}while(1){l=100==(je(c[e>>2]|0)|0);d=c[h>>2]|0;if(!l){b=6;break}l=c[k>>2]|0;c[g>>2]=EA(d,l,Ae(c[e>>2]|0,0)|0)|0;if(c[g>>2]|0){b=5;break}}if((b|0)==5){JA(c[h>>2]|0,c[e>>2]|0,c[k>>2]|0)|0;c[f>>2]=c[g>>2];l=c[f>>2]|0;i=j;return l|0}else if((b|0)==6){c[f>>2]=JA(d,c[e>>2]|0,c[k>>2]|0)|0;l=c[f>>2]|0;i=j;return l|0}return 0}function HA(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+80|0;f=g+68|0;h=g+64|0;k=g+60|0;m=g+56|0;j=g+8|0;l=g;c[f>>2]=a;c[h>>2]=d;Pc(c[f>>2]|0);Pc(c[h>>2]|0);c[m>>2]=ed(Sb(c[f>>2]|0)|0)|0;if((c[c[m>>2]>>2]|0)!=0?(d=Uc(c[h>>2]|0)|0,d=lF(d|0,((d|0)<0)<<31>>31|0,Wc(c[h>>2]|0)|0,0)|0,a=l,c[a>>2]=d,c[a+4>>2]=D,a=ig(c[m>>2]|0,11,l)|0,c[k>>2]=a,c[k>>2]=(c[k>>2]|0)==12?0:a,(c[k>>2]|0)!=0):0){a=c[k>>2]|0;i=g;return a|0}l=j+0|0;d=l+48|0;do{c[l>>2]=0;l=l+4|0}while((l|0)<(d|0));c[j+20>>2]=c[c[h>>2]>>2];c[j+24>>2]=c[h>>2];c[j+4>>2]=c[f>>2];c[j+16>>2]=1;Oc(j,2147483647)|0;c[k>>2]=od(j)|0;if(!(c[k>>2]|0)){a=(c[(c[f>>2]|0)+4>>2]|0)+22|0;b[a>>1]=(e[a>>1]|0)&-3;a=c[k>>2]|0;i=g;return a|0}else{IA(Sb(c[j+4>>2]|0)|0);a=c[k>>2]|0;i=g;return a|0}return 0}function IA(b){b=b|0;var e=0,f=0;e=i;i=i+16|0;f=e;c[f>>2]=b;if(a[(c[f>>2]|0)+15>>0]|0){i=e;return}if(d[(c[f>>2]|0)+12>>0]|0){i=e;return}Ig(c[f>>2]|0);i=e;return}function JA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=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c[f>>2]=Ij(45936)|0;Rh(c[(c[h>>2]|0)+64>>2]|0)|0}m=c[h>>2]|0;if(c[c[(c[h>>2]|0)+64>>2]>>2]|0){c[f>>2]=Ph(m)|0;if(!(c[f>>2]|0)){c[f>>2]=ti(c[h>>2]|0,1)|0;a[(c[h>>2]|0)+16>>0]=0}}else if(!(a[m+4>>0]|0))ei(c[h>>2]|0,1)|0;if(c[f>>2]|0){Oh(c[h>>2]|0,c[f>>2]|0)|0;break}}do if(!(a[(c[h>>2]|0)+12>>0]|0)){if((c[(c[h>>2]|0)+88>>2]|0)==0?(MA(c[(c[h>>2]|0)+204>>2]|0)|0)<=0:0)break;c[l>>2]=0;c[f>>2]=NA(c[h>>2]|0,l)|0;if(c[f>>2]|0)break a;if((c[l>>2]|0)>>>0>0){c[f>>2]=Ei(c[(c[h>>2]|0)+60>>2]|0,j,16,24,0)|0;if((c[f>>2]|0)!=0&(c[f>>2]|0)!=522)break a}else{l=j+0|0;k=l+16|0;do{a[l>>0]=0;l=l+1|0}while((l|0)<(k|0))}if(TE((c[h>>2]|0)+100|0,j,16)|0)Ig(c[h>>2]|0)}while(0);c[f>>2]=OA(c[h>>2]|0)|0;k=36}}}else k=36;while(0);if((k|0)==36){if(ai(c[h>>2]|0)|0)c[f>>2]=PA(c[h>>2]|0)|0;if((c[f>>2]|0)==0?(d[(c[h>>2]|0)+16>>0]|0)==0:0)c[f>>2]=NA(c[h>>2]|0,(c[h>>2]|0)+24|0)|0}h=c[h>>2]|0;if(c[f>>2]|0)Nh(h);else a[h+16>>0]=1;c[e>>2]=c[f>>2];b=c[e>>2]|0;i=g;return b|0}function LA(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;g=i;i=i+48|0;h=g+32|0;f=g+28|0;j=g+24|0;l=g+20|0;q=g+16|0;m=g+12|0;p=g+8|0;o=g+4|0;n=g;k=g+36|0;c[h>>2]=b;c[f>>2]=e;c[j>>2]=c[c[h>>2]>>2];c[l>>2]=0;c[q>>2]=1;c[m>>2]=((c[c[(c[h>>2]|0)+64>>2]>>2]|0)!=0^1^1)&1;c[c[f>>2]>>2]=0;if(!(c[m>>2]|0))c[l>>2]=vi(c[j>>2]|0,c[(c[h>>2]|0)+172>>2]|0,0,q)|0;if(!((c[l>>2]|0)==0&(c[q>>2]|0)!=0)){b=c[l>>2]|0;i=g;return b|0}c[p>>2]=0;c[l>>2]=WA(c[(c[h>>2]|0)+60>>2]|0,p)|0;if((c[l>>2]|0)!=0|(c[p>>2]|0)!=0){b=c[l>>2]|0;i=g;return b|0}c[l>>2]=NA(c[h>>2]|0,o)|0;if(c[l>>2]|0){b=c[l>>2]|0;i=g;return b|0}if(!((c[o>>2]|0)!=0|(c[m>>2]|0)!=0)){kh();if((hk(c[h>>2]|0,2)|0)==0?(_h(c[j>>2]|0,c[(c[h>>2]|0)+172>>2]|0,0)|0,(a[(c[h>>2]|0)+4>>0]|0)==0):0)ei(c[h>>2]|0,1)|0;lh();b=c[l>>2]|0;i=g;return b|0}if(!(c[m>>2]|0)){c[n>>2]=2049;c[l>>2]=Di(c[j>>2]|0,c[(c[h>>2]|0)+172>>2]|0,c[(c[h>>2]|0)+64>>2]|0,c[n>>2]|0,n)|0}if(!(c[l>>2]|0)){a[k>>0]=0;b=Ei(c[(c[h>>2]|0)+64>>2]|0,k,1,0,0)|0;c[l>>2]=b;c[l>>2]=(c[l>>2]|0)==522?0:b;if(!(c[m>>2]|0))Rh(c[(c[h>>2]|0)+64>>2]|0)|0;c[c[f>>2]>>2]=(d[k>>0]|0)!=0&1;b=c[l>>2]|0;i=g;return b|0}else{if((c[l>>2]|0)!=14){b=c[l>>2]|0;i=g;return b|0}c[c[f>>2]>>2]=1;c[l>>2]=0;b=c[l>>2]|0;i=g;return b|0}return 0}function MA(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=ub[c[38640+128>>2]&31](c[(c[d>>2]|0)+40>>2]|0)|0;i=b;return a|0}function NA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;f=i;i=i+32|0;e=f+24|0;j=f+20|0;h=f+16|0;g=f+12|0;k=f;d=f+8|0;c[j>>2]=a;c[h>>2]=b;c[g>>2]=VA(c[(c[j>>2]|0)+208>>2]|0)|0;if(!(c[g>>2]|0)){a=k;c[a>>2]=0;c[a+4>>2]=0;if((c[c[(c[j>>2]|0)+60>>2]>>2]|0)!=0?(c[d>>2]=Gg(c[(c[j>>2]|0)+60>>2]|0,k)|0,(c[d>>2]|0)!=0):0){c[e>>2]=c[d>>2];a=c[e>>2]|0;i=f;return a|0}a=k;k=c[(c[j>>2]|0)+152>>2]|0;k=bF(c[a>>2]|0,c[a+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;k=ZE(k|0,D|0,1,0)|0;a=c[(c[j>>2]|0)+152>>2]|0;a=jF(k|0,D|0,a|0,((a|0)<0)<<31>>31|0)|0;c[g>>2]=a}if((c[g>>2]|0)>>>0>(c[(c[j>>2]|0)+156>>2]|0)>>>0)c[(c[j>>2]|0)+156>>2]=c[g>>2];c[c[h>>2]>>2]=c[g>>2];c[e>>2]=0;a=c[e>>2]|0;i=f;return a|0}function OA(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;f=e+16|0;h=e+12|0;g=e+8|0;j=e+4|0;k=e;c[h>>2]=b;c[g>>2]=0;do if(!(a[(c[h>>2]|0)+12>>0]|0)){c[g>>2]=NA(c[h>>2]|0,k)|0;if(c[g>>2]|0){c[f>>2]=c[g>>2];l=c[f>>2]|0;i=e;return l|0}l=c[c[h>>2]>>2]|0;b=c[(c[h>>2]|0)+212>>2]|0;if(!(c[k>>2]|0)){l=_h(l,b,0)|0;c[g>>2]=l;c[g>>2]=(c[g>>2]|0)==5898?0:l;c[j>>2]=0}else c[g>>2]=vi(l,b,0,j)|0;if(!(c[g>>2]|0)){k=c[h>>2]|0;if(c[j>>2]|0){c[g>>2]=RA(k,0)|0;break}if((d[k+5>>0]|0)==5)a[(c[h>>2]|0)+5>>0]=0}}while(0);c[f>>2]=c[g>>2];l=c[f>>2]|0;i=e;return l|0}function PA(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;e=b+8|0;d=b+4|0;f=b;c[e>>2]=a;c[f>>2]=0;oj(c[(c[e>>2]|0)+208>>2]|0);c[d>>2]=QA(c[(c[e>>2]|0)+208>>2]|0,f)|0;if(!((c[d>>2]|0)!=0|(c[f>>2]|0)!=0)){f=c[d>>2]|0;i=b;return f|0}Ig(c[e>>2]|0);f=c[d>>2]|0;i=b;return f|0}function QA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;i=i+16|0;f=d+12|0;g=d+8|0;e=d+4|0;h=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=0;do{j=c[f>>2]|0;b=c[g>>2]|0;a=(c[h>>2]|0)+1|0;c[h>>2]=a;c[e>>2]=nk(j,b,0,a)|0}while((c[e>>2]|0)==-1);i=d;return c[e>>2]|0}function RA(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;h=i;i=i+16|0;g=h+12|0;j=h+8|0;k=h+4|0;f=h;c[j>>2]=b;c[k>>2]=d;c[f>>2]=0;do if((a[(c[j>>2]|0)+12>>0]|0)==0?(c[(c[j>>2]|0)+208>>2]|0)==0:0)if(bA(c[j>>2]|0)|0){Rh(c[(c[j>>2]|0)+64>>2]|0)|0;c[f>>2]=SA(c[j>>2]|0)|0;if(c[f>>2]|0)break;a[(c[j>>2]|0)+5>>0]=5;a[(c[j>>2]|0)+16>>0]=0;break}else{c[g>>2]=14;b=c[g>>2]|0;i=h;return b|0}else e=7;while(0);if((e|0)==7)c[c[k>>2]>>2]=1;c[g>>2]=c[f>>2];b=c[g>>2]|0;i=h;return b|0}function SA(b){b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;e=g+4|0;f=g;c[e>>2]=b;c[f>>2]=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>2]=c[u>>2];a[(c[o>>2]|0)+48>>0]=1;a[(c[o>>2]|0)+49>>0]=1;a[(c[o>>2]|0)+43>>0]=(c[v>>2]|0)!=0?2:0;c[w>>2]=524294;c[n>>2]=Di(c[s>>2]|0,c[u>>2]|0,c[(c[o>>2]|0)+8>>2]|0,c[w>>2]|0,w)|0;if((c[n>>2]|0)==0?(c[w>>2]&1|0)!=0:0)a[(c[o>>2]|0)+46>>0]=1;if(c[n>>2]|0){tj(c[o>>2]|0,0);Rh(c[(c[o>>2]|0)+8>>2]|0)|0;hc(c[o>>2]|0)}else{c[q>>2]=Ai(c[r>>2]|0)|0;if(c[q>>2]&1024)a[(c[o>>2]|0)+48>>0]=0;if(c[q>>2]&4096)a[(c[o>>2]|0)+49>>0]=0;c[c[p>>2]>>2]=c[o>>2]}c[m>>2]=c[n>>2];d=c[m>>2]|0;i=t;return d|0}function VA(a){a=a|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[f>>2]=a;if((c[f>>2]|0)!=0?(b[(c[f>>2]|0)+40>>1]|0)>=0:0){c[e>>2]=c[(c[f>>2]|0)+72>>2];f=c[e>>2]|0;i=d;return f|0}c[e>>2]=0;f=c[e>>2]|0;i=d;return f|0}function WA(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=zb[c[(c[c[f>>2]>>2]|0)+36>>2]&63](c[f>>2]|0,c[e>>2]|0)|0;i=d;return a|0}function XA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+176|0;d=b+168|0;e=b+164|0;g=b+160|0;f=b;c[d>>2]=a;_E(f|0,0,160)|0;while(1){if(!(c[d>>2]|0))break;c[g>>2]=c[(c[d>>2]|0)+8>>2];c[(c[d>>2]|0)+8>>2]=0;c[e>>2]=0;while(1){if(!(c[f+(c[e>>2]<<2)>>2]|0))break;c[d>>2]=_A(c[f+(c[e>>2]<<2)>>2]|0,c[d>>2]|0)|0;c[f+(c[e>>2]<<2)>>2]=0;c[e>>2]=(c[e>>2]|0)+1}c[f+(c[e>>2]<<2)>>2]=c[d>>2];c[d>>2]=c[g>>2]}c[d>>2]=0;c[e>>2]=0;while(1){a=c[d>>2]|0;if((c[e>>2]|0)>>>0>=40)break;c[d>>2]=_A(a,c[f+(c[e>>2]<<2)>>2]|0)|0;c[e>>2]=(c[e>>2]|0)+1}i=b;return a|0}function YA(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;e=b+12|0;g=b+8|0;d=b+4|0;f=b;c[e>>2]=a;c[d>>2]=c[e>>2];c[e>>2]=c[(c[d>>2]|0)+8>>2];c[(c[d>>2]|0)+8>>2]=0;c[(c[d>>2]|0)+12>>2]=0;c[g>>2]=1;while(1){a=c[d>>2]|0;if(!(c[e>>2]|0))break;c[f>>2]=a;c[d>>2]=c[e>>2];c[e>>2]=c[(c[d>>2]|0)+8>>2];c[(c[d>>2]|0)+12>>2]=c[f>>2];a=aB(e,c[g>>2]|0)|0;c[(c[d>>2]|0)+8>>2]=a;c[g>>2]=(c[g>>2]|0)+1}i=b;return a|0}function ZA(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;g=i;i=i+16|0;e=g+12|0;j=g+8|0;f=g+4|0;h=g;c[e>>2]=a;c[j>>2]=b;c[f>>2]=d;d=c[e>>2]|0;if(c[(c[e>>2]|0)+12>>2]|0){ZA(c[d+12>>2]|0,c[j>>2]|0,h);c[(c[h>>2]|0)+8>>2]=c[e>>2]}else c[c[j>>2]>>2]=d;h=c[e>>2]|0;if(c[(c[e>>2]|0)+8>>2]|0){ZA(c[h+8>>2]|0,(c[e>>2]|0)+8|0,c[f>>2]|0);i=g;return}else{c[c[f>>2]>>2]=h;i=g;return}}function _A(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;g=i;i=i+32|0;d=g+24|0;h=g+20|0;f=g;e=g+16|0;c[d>>2]=a;c[h>>2]=b;c[e>>2]=f;while(1){if(c[d>>2]|0)a=(c[h>>2]|0)!=0;else a=0;b=c[d>>2]|0;if(!a)break;k=c[b+4>>2]|0;a=c[h>>2]|0;j=c[a+4>>2]|0;if((k|0)<(j|0)|((k|0)==(j|0)?(c[b>>2]|0)>>>0<(c[a>>2]|0)>>>0:0)){c[(c[e>>2]|0)+8>>2]=c[d>>2];c[d>>2]=c[(c[d>>2]|0)+8>>2];c[e>>2]=c[(c[e>>2]|0)+8>>2];continue}j=c[h>>2]|0;b=c[j+4>>2]|0;k=c[d>>2]|0;a=c[k+4>>2]|0;if((b|0)<(a|0)|((b|0)==(a|0)?(c[j>>2]|0)>>>0<(c[k>>2]|0)>>>0:0)){c[(c[e>>2]|0)+8>>2]=c[h>>2];c[h>>2]=c[(c[h>>2]|0)+8>>2];c[e>>2]=c[(c[e>>2]|0)+8>>2];continue}else{c[d>>2]=c[(c[d>>2]|0)+8>>2];continue}}if(b){c[(c[e>>2]|0)+8>>2]=c[d>>2];k=f+8|0;k=c[k>>2]|0;i=g;return k|0}else{c[(c[e>>2]|0)+8>>2]=c[h>>2];k=f+8|0;k=c[k>>2]|0;i=g;return k|0}return 0}function $A(a){a=a|0;var d=0,f=0,g=0,h=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;h=d;c[g>>2]=a;do if(!(e[(c[g>>2]|0)+24>>1]|0)){c[h>>2]=Qe(c[(c[g>>2]|0)+4>>2]|0,1016,0)|0;if(c[h>>2]|0){c[c[h>>2]>>2]=c[c[g>>2]>>2];c[c[g>>2]>>2]=c[h>>2];c[(c[g>>2]|0)+16>>2]=(c[h>>2]|0)+8;b[(c[g>>2]|0)+24>>1]=63;break}c[f>>2]=0;h=c[f>>2]|0;i=d;return h|0}while(0);h=(c[g>>2]|0)+24|0;b[h>>1]=(b[h>>1]|0)+ -1<<16>>16;g=(c[g>>2]|0)+16|0;h=c[g>>2]|0;c[g>>2]=h+16;c[f>>2]=h;h=c[f>>2]|0;i=d;return h|0}function aB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;i=i+32|0;e=d+16|0;g=d+12|0;h=d+8|0;f=d+4|0;j=d;c[g>>2]=a;c[h>>2]=b;if(!(c[c[g>>2]>>2]|0)){c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}b=c[g>>2]|0;if((c[h>>2]|0)==1){c[f>>2]=c[b>>2];c[c[g>>2]>>2]=c[(c[f>>2]|0)+8>>2];c[(c[f>>2]|0)+8>>2]=0;c[(c[f>>2]|0)+12>>2]=0;c[e>>2]=c[f>>2];a=c[e>>2]|0;i=d;return a|0}c[j>>2]=aB(b,(c[h>>2]|0)-1|0)|0;c[f>>2]=c[c[g>>2]>>2];j=c[j>>2]|0;if(!(c[f>>2]|0)){c[e>>2]=j;a=c[e>>2]|0;i=d;return a|0}else{c[(c[f>>2]|0)+12>>2]=j;c[c[g>>2]>>2]=c[(c[f>>2]|0)+8>>2];a=aB(c[g>>2]|0,(c[h>>2]|0)-1|0)|0;c[(c[f>>2]|0)+8>>2]=a;c[e>>2]=c[f>>2];a=c[e>>2]|0;i=d;return a|0}return 0}function bB(a){a=a|0;var d=0,f=0;d=i;i=i+16|0;f=d;c[f>>2]=a;if(!((e[(c[f>>2]|0)+26>>1]|0)&1)){a=XA(c[(c[f>>2]|0)+8>>2]|0)|0;c[(c[f>>2]|0)+8>>2]=a}f=(c[f>>2]|0)+26|0;b[f>>1]=e[f>>1]|0|2;i=d;return}function cB(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;g=i;i=i+16|0;j=g+12|0;k=g+8|0;h=g+4|0;f=g;c[j>>2]=a;c[k>>2]=d;c[h>>2]=e;c[f>>2]=c[k>>2];c[c[f>>2]>>2]=0;c[(c[f>>2]|0)+4>>2]=c[j>>2];c[(c[f>>2]|0)+8>>2]=0;c[(c[f>>2]|0)+12>>2]=0;c[(c[f>>2]|0)+20>>2]=0;c[(c[f>>2]|0)+16>>2]=(c[f>>2]|0)+32;b[(c[f>>2]|0)+24>>1]=(((c[h>>2]|0)-32|0)>>>0)/16|0;b[(c[f>>2]|0)+26>>1]=1;c[(c[f>>2]|0)+28>>2]=0;i=g;return c[f>>2]|0}function dB(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=Fg(c[(c[d>>2]|0)+204>>2]|0)|0;i=b;return a|0}function eB(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+16|0;h=f+4|0;g=f;c[h>>2]=b;c[g>>2]=e;b=(c[(c[h>>2]|0)+8>>2]|0)+(((c[g>>2]|0)>>>0)/8|0)|0;a[b>>0]=d[b>>0]|0|1<<(c[g>>2]&7);i=f;return}function fB(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=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;o=i;i=i+64|0;l=o;n=o+52|0;t=o+48|0;h=o+44|0;k=o+40|0;u=o+36|0;m=o+32|0;j=o+28|0;s=o+24|0;p=o+20|0;r=o+16|0;q=o+12|0;c[n>>2]=b;c[t>>2]=e;c[h>>2]=f;c[k>>2]=g;c[m>>2]=c[k>>2];c[j>>2]=c[h>>2];while(1){b=c[k>>2]|0;c[k>>2]=b+ -1;if((b|0)<=0){p=23;break}if(!(c[(c[n>>2]|0)+16>>2]|0)){p=23;break}g=c[n>>2]|0;if((c[h>>2]|0)<1){p=5;break}if(kB(g,c[h>>2]|0)|0){p=23;break}if(Xc(c[(c[n>>2]|0)+4>>2]|0,c[h>>2]|0,s,0)|0){p=8;break}c[p>>2]=Zc(c[s>>2]|0)|0;do if(!(c[t>>2]|0)){if((c[k>>2]|0)>0?(d[(c[c[n>>2]>>2]|0)+17>>0]|0)!=0:0){c[u>>2]=Hh(c[p>>2]|0)|0;gB(c[n>>2]|0,c[u>>2]|0,4,c[h>>2]|0)}}else{c[r>>2]=Hh((c[p>>2]|0)+4|0)|0;if(a[(c[c[n>>2]>>2]|0)+17>>0]|0)gB(c[n>>2]|0,c[h>>2]|0,2,0);if((c[r>>2]|0)>(((c[(c[c[n>>2]>>2]|0)+36>>2]|0)/4|0)-2|0)){b=c[n>>2]|0;c[l>>2]=c[h>>2];jB(b,34368,l);c[k>>2]=(c[k>>2]|0)+ -1;break}c[u>>2]=0;while(1){if((c[u>>2]|0)>=(c[r>>2]|0))break;c[q>>2]=Hh((c[p>>2]|0)+(8+(c[u>>2]<<2))|0)|0;if(a[(c[c[n>>2]>>2]|0)+17>>0]|0)gB(c[n>>2]|0,c[q>>2]|0,2,0);kB(c[n>>2]|0,c[q>>2]|0)|0;c[u>>2]=(c[u>>2]|0)+1}c[k>>2]=(c[k>>2]|0)-(c[r>>2]|0)}while(0);c[h>>2]=Hh(c[p>>2]|0)|0;_c(c[s>>2]|0)}if((p|0)==5){e=c[m>>2]|0;b=c[j>>2]|0;c[l>>2]=(c[k>>2]|0)+1;c[l+4>>2]=e;c[l+8>>2]=b;jB(g,34280,l);i=o;return}else if((p|0)==8){b=c[n>>2]|0;c[l>>2]=c[h>>2];jB(b,34344,l);i=o;return}else if((p|0)==23){i=o;return}}function gB(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;l=i;i=i+48|0;k=l;n=l+36|0;j=l+32|0;h=l+41|0;o=l+28|0;m=l+24|0;p=l+40|0;q=l+20|0;c[n>>2]=b;c[j>>2]=e;a[h>>0]=f;c[o>>2]=g;c[m>>2]=Qw(c[c[n>>2]>>2]|0,c[j>>2]|0,p,q)|0;if(c[m>>2]|0){if((c[m>>2]|0)==7|(c[m>>2]|0)==3082)c[(c[n>>2]|0)+24>>2]=1;b=c[n>>2]|0;c[k>>2]=c[j>>2];jB(b,34192,k);i=l;return}if((d[p>>0]|0|0)==(d[h>>0]|0|0)?(c[q>>2]|0)==(c[o>>2]|0):0){i=l;return}b=c[n>>2]|0;n=d[h>>0]|0;o=c[o>>2]|0;f=d[p>>0]|0;e=c[q>>2]|0;c[k>>2]=c[j>>2];c[k+4>>2]=n;c[k+8>>2]=o;c[k+12>>2]=f;c[k+16>>2]=e;jB(b,34224,k);i=l;return}function hB(f,g,h,j){f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;G=i;i=i+192|0;t=G+40|0;m=G+180|0;o=G+176|0;z=G+172|0;M=G+168|0;K=G+164|0;u=G+160|0;w=G+156|0;V=G+152|0;r=G+148|0;O=G+144|0;U=G+140|0;v=G+136|0;y=G+132|0;E=G+128|0;F=G+124|0;x=G+120|0;I=G+116|0;D=G+112|0;k=G+108|0;J=G+32|0;L=G+24|0;n=G+104|0;p=G+100|0;q=G+96|0;P=G+92|0;S=G+88|0;T=G;R=G+84|0;Q=G+80|0;H=G+76|0;A=G+72|0;B=G+68|0;C=G+64|0;N=G+60|0;s=G+56|0;c[o>>2]=f;c[z>>2]=g;c[M>>2]=h;c[K>>2]=j;c[k>>2]=0;f=J;c[f>>2]=0;c[f+4>>2]=0;f=L;c[f>>2]=0;c[f+4>>2]=0;c[n>>2]=c[(c[o>>2]|0)+28>>2];c[p>>2]=c[(c[o>>2]|0)+32>>2];c[q>>2]=c[(c[o>>2]|0)+36>>2];c[I>>2]=c[c[o>>2]>>2];c[D>>2]=c[(c[I>>2]|0)+36>>2];if(!(c[z>>2]|0)){c[m>>2]=0;f=c[m>>2]|0;i=G;return f|0}if(kB(c[o>>2]|0,c[z>>2]|0)|0){c[m>>2]=0;f=c[m>>2]|0;i=G;return f|0}c[(c[o>>2]|0)+28>>2]=33496;c[(c[o>>2]|0)+32>>2]=c[z>>2];f=Bw(c[I>>2]|0,c[z>>2]|0,u,0)|0;c[V>>2]=f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>2]|0)+2)+1>>0];c[s>>2]=(c[w>>2]|0)+(c[N>>2]|0)-1;while(1){if((c[s>>2]|0)<(c[w>>2]|0))break;W=(c[k>>2]|0)+(c[s>>2]|0)|0;a[W>>0]=(a[W>>0]|0)+1<<24>>24;c[s>>2]=(c[s>>2]|0)+ -1}c[s>>2]=d[(c[x>>2]|0)+(c[w>>2]|0)>>0]<<8|d[(c[x>>2]|0)+(c[w>>2]|0)+1>>0];c[w>>2]=c[s>>2]}c[v>>2]=0;c[w>>2]=0;while(1){if((c[w>>2]|0)>=(c[D>>2]|0))break;if(a[(c[k>>2]|0)+(c[w>>2]|0)>>0]|0){if((a[(c[k>>2]|0)+(c[w>>2]|0)>>0]|0)>1){l=72;break}}else c[v>>2]=(c[v>>2]|0)+1;c[w>>2]=(c[w>>2]|0)+1}if((l|0)==72){W=c[o>>2]|0;f=c[z>>2]|0;c[t>>2]=c[w>>2];c[t+4>>2]=f;jB(W,34040,t)}if((c[v>>2]|0)!=(d[(c[x>>2]|0)+((c[y>>2]|0)+7)>>0]|0)){W=c[o>>2]|0;g=d[(c[x>>2]|0)+((c[y>>2]|0)+7)>>0]|0;f=c[z>>2]|0;c[t>>2]=c[v>>2];c[t+4>>2]=g;c[t+8>>2]=f;jB(W,34080,t)}}else c[(c[o>>2]|0)+24>>2]=1;Kg(c[k>>2]|0);Rk(c[u>>2]|0)}while(0);c[(c[o>>2]|0)+28>>2]=c[n>>2];c[(c[o>>2]|0)+32>>2]=c[p>>2];c[(c[o>>2]|0)+36>>2]=c[q>>2];c[m>>2]=(c[r>>2]|0)+1;W=c[m>>2]|0;i=G;return W|0}function iB(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;f=g+4|0;e=g;c[f>>2]=a;c[e>>2]=b;i=g;return(d[(c[(c[f>>2]|0)+8>>2]|0)+(((c[e>>2]|0)>>>0)/8|0)>>0]|0)&1<<(c[e>>2]&7)|0}function jB(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+240|0;k=f;g=f+28|0;h=f+24|0;j=f+8|0;l=f+32|0;c[g>>2]=a;c[h>>2]=b;if(!(c[(c[g>>2]|0)+16>>2]|0)){i=f;return}a=(c[g>>2]|0)+16|0;c[a>>2]=(c[a>>2]|0)+ -1;a=(c[g>>2]|0)+20|0;c[a>>2]=(c[a>>2]|0)+1;c[j>>2]=e;if(c[(c[g>>2]|0)+52>>2]|0)Vm((c[g>>2]|0)+40|0,33488,1);if(c[(c[g>>2]|0)+28>>2]|0){a=c[(c[g>>2]|0)+28>>2]|0;b=c[(c[g>>2]|0)+36>>2]|0;c[k>>2]=c[(c[g>>2]|0)+32>>2];c[k+4>>2]=b;sc(200,l,a,k)|0;ss((c[g>>2]|0)+40|0,l)}oc((c[g>>2]|0)+40|0,1,c[h>>2]|0,j);if((d[(c[g>>2]|0)+65>>0]|0|0)!=1){i=f;return}c[(c[g>>2]|0)+24>>2]=1;i=f;return}function kB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;e=d;f=d+12|0;h=d+8|0;g=d+4|0;c[h>>2]=a;c[g>>2]=b;do if(c[g>>2]|0){b=c[h>>2]|0;a=c[g>>2]|0;if((c[g>>2]|0)>>>0>(c[(c[h>>2]|0)+12>>2]|0)>>>0){c[e>>2]=a;jB(b,34136,e);c[f>>2]=1;break}a=(iB(b,a)|0)!=0;h=c[h>>2]|0;g=c[g>>2]|0;if(a){c[e>>2]=g;jB(h,34160,e);c[f>>2]=1;break}else{eB(h,g);c[f>>2]=0;break}}else c[f>>2]=1;while(0);i=d;return c[f>>2]|0}function lB(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=i;i=i+32|0;k=l+24|0;o=l+20|0;j=l+16|0;m=l+12|0;h=l+8|0;n=l+4|0;p=l;c[o>>2]=f;c[j>>2]=g;c[m>>2]=(c[j>>2]|0)+(d[(c[o>>2]|0)+7>>0]|0);g=c[m>>2]|0;if(a[(c[o>>2]|0)+4>>0]|0){c[h>>2]=g+9;do{f=c[m>>2]|0;c[m>>2]=f+1;if(!(d[f>>0]&128))break}while((c[m>>2]|0)>>>0<(c[h>>2]|0)>>>0);b[k>>1]=(c[m>>2]|0)-(c[j>>2]|0);f=b[k>>1]|0;i=l;return f|0}c[n>>2]=d[g>>0];a:do if((c[n>>2]|0)>>>0>=128){c[h>>2]=(c[m>>2]|0)+9;c[n>>2]=c[n>>2]&127;do{g=c[n>>2]<<7;f=(c[m>>2]|0)+1|0;c[m>>2]=f;c[n>>2]=g|d[f>>0]&127;if((d[c[m>>2]>>0]|0)<128)break a}while((c[m>>2]|0)>>>0<(c[h>>2]|0)>>>0)}while(0);c[m>>2]=(c[m>>2]|0)+1;b:do if(a[(c[o>>2]|0)+2>>0]|0){c[h>>2]=(c[m>>2]|0)+9;do{f=c[m>>2]|0;c[m>>2]=f+1;if(!(d[f>>0]&128))break b}while((c[m>>2]|0)>>>0<(c[h>>2]|0)>>>0)}while(0);if((c[n>>2]|0)>>>0<=(e[(c[o>>2]|0)+10>>1]|0)>>>0){f=(c[n>>2]|0)+((c[m>>2]|0)-(c[j>>2]|0))|0;c[n>>2]=f;c[n>>2]=(c[n>>2]|0)>>>0<4?4:f}else{c[p>>2]=e[(c[o>>2]|0)+12>>1];c[n>>2]=(c[p>>2]|0)+((((c[n>>2]|0)-(c[p>>2]|0)|0)>>>0)%(((c[(c[(c[o>>2]|0)+52>>2]|0)+36>>2]|0)-4|0)>>>0)|0);if((c[n>>2]|0)>>>0>(e[(c[o>>2]|0)+10>>1]|0)>>>0)c[n>>2]=c[p>>2];c[n>>2]=(c[n>>2]|0)+(4+((c[m>>2]|0)-(c[j>>2]|0)&65535))}b[k>>1]=c[n>>2];f=b[k>>1]|0;i=l;return f|0}function mB(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[d>>2]=a;if(!(c[d>>2]|0)){e=c[d>>2]|0;hc(e);i=b;return}c[e>>2]=0;while(1){if((c[e>>2]|0)>=(c[c[d>>2]>>2]|0))break;qB((c[(c[d>>2]|0)+12>>2]|0)+((c[e>>2]|0)*56|0)|0);c[e>>2]=(c[e>>2]|0)+1}e=c[d>>2]|0;hc(e);i=b;return}function nB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;Xb(c[f>>2]|0,c[(c[e>>2]|0)+12>>2]|0);c[(c[e>>2]|0)+12>>2]=0;oB(0,c[(c[e>>2]|0)+16>>2]|0);c[(c[e>>2]|0)+16>>2]=0;if(c[(c[e>>2]|0)+32>>2]|0){pB(c[(c[e>>2]|0)+32>>2]|0)|0;c[(c[e>>2]|0)+32>>2]=0;f=(c[e>>2]|0)+40|0;c[f>>2]=0;c[f+4>>2]=0}if(!(c[(c[e>>2]|0)+48>>2]|0)){i=d;return}pB(c[(c[e>>2]|0)+48>>2]|0)|0;c[(c[e>>2]|0)+48>>2]=0;f=(c[e>>2]|0)+56|0;c[f>>2]=0;c[f+4>>2]=0;i=d;return}function oB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;g=d+12|0;h=d+8|0;e=d+4|0;f=d;c[g>>2]=a;c[h>>2]=b;c[e>>2]=c[h>>2];while(1){if(!(c[e>>2]|0))break;c[f>>2]=c[(c[e>>2]|0)+4>>2];Xb(c[g>>2]|0,c[e>>2]|0);c[e>>2]=c[f>>2]}i=d;return}function pB(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;e=d+4|0;b=d;c[e>>2]=a;c[b>>2]=0;c[b>>2]=Rh(c[e>>2]|0)|0;hc(c[e>>2]|0);i=d;return c[b>>2]|0}function qB(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;hc(c[(c[d>>2]|0)+28>>2]|0);hc(c[(c[d>>2]|0)+36>>2]|0);if(c[(c[d>>2]|0)+44>>2]|0)hj(c[(c[d>>2]|0)+24>>2]|0,0,0,c[(c[d>>2]|0)+44>>2]|0)|0;rB(c[(c[d>>2]|0)+48>>2]|0);d=(c[d>>2]|0)+0|0;a=d+56|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(a|0));i=b;return}function rB(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}mB(c[(c[d>>2]|0)+4>>2]|0);hc(c[d>>2]|0);i=b;return}function sB(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;n=h+20|0;k=h;l=h+16|0;j=h+12|0;m=h+8|0;c[n>>2]=b;b=k;c[b>>2]=e;c[b+4>>2]=f;c[l>>2]=g;c[m>>2]=c[(c[n>>2]|0)+4>>2];c[j>>2]=c[(c[m>>2]|0)+8>>2];while(1){if(!(c[j>>2]|0))break;do if((d[(c[j>>2]|0)+72>>0]|0)&16){if((c[l>>2]|0)==0?(m=(c[j>>2]|0)+24|0,n=k,!((c[m>>2]|0)==(c[n>>2]|0)?(c[m+4>>2]|0)==(c[n+4>>2]|0):0)):0)break;a[(c[j>>2]|0)+73>>0]=0}while(0);c[j>>2]=c[(c[j>>2]|0)+8>>2]}i=h;return}function tB(b,f,g,h){b=b|0;f=f|0;g=g|0;h=h|0;var 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;o=i;i=i+48|0;j=o+36|0;r=o+32|0;v=o+28|0;n=o+24|0;q=o+20|0;l=o+16|0;k=o+12|0;p=o+8|0;u=o+4|0;m=o;t=o+40|0;c[r>>2]=b;c[v>>2]=f;c[n>>2]=g;c[q>>2]=h;b=c[v>>2]|0;if(b>>>0>(Aw(c[r>>2]|0)|0)>>>0){c[j>>2]=kj(59756)|0;b=c[j>>2]|0;i=o;return b|0}c[k>>2]=zw(c[r>>2]|0,c[v>>2]|0,l,0)|0;if(c[k>>2]|0){c[j>>2]=c[k>>2];b=c[j>>2]|0;i=o;return b|0}c[m>>2]=d[(c[l>>2]|0)+6>>0];c[u>>2]=0;while(1){v=c[l>>2]|0;if((c[u>>2]|0)>=(e[(c[l>>2]|0)+18>>1]|0)){s=11;break}c[p>>2]=(c[v+56>>2]|0)+(e[(c[l>>2]|0)+20>>1]&(d[(c[(c[l>>2]|0)+64>>2]|0)+(c[u>>2]<<1)>>0]<<8|d[(c[(c[l>>2]|0)+64>>2]|0)+(c[u>>2]<<1)+1>>0]));if((a[(c[l>>2]|0)+5>>0]|0)==0?(f=c[r>>2]|0,b=Hh(c[p>>2]|0)|0,c[k>>2]=tB(f,b,1,c[q>>2]|0)|0,(c[k>>2]|0)!=0):0)break;c[k>>2]=uB(c[l>>2]|0,c[p>>2]|0,t)|0;if(c[k>>2]|0)break;c[u>>2]=(c[u>>2]|0)+1}do if((s|0)==11){if(a[v+5>>0]|0){if(c[q>>2]|0){b=c[q>>2]|0;c[b>>2]=(c[b>>2]|0)+(e[(c[l>>2]|0)+18>>1]|0)}}else{f=c[r>>2]|0;b=Hh((c[(c[l>>2]|0)+56>>2]|0)+((c[m>>2]|0)+8)|0)|0;c[k>>2]=tB(f,b,1,c[q>>2]|0)|0;if(c[k>>2]|0)break}p=c[l>>2]|0;if(c[n>>2]|0){vB(p,k);break}b=gd(c[p+68>>2]|0)|0;c[k>>2]=b;if(!b)wB(c[l>>2]|0,d[(c[(c[l>>2]|0)+56>>2]|0)+(c[m>>2]|0)>>0]|8)}while(0);Rk(c[l>>2]|0);c[j>>2]=c[k>>2];b=c[j>>2]|0;i=o;return b|0}function uB(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=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;p=i;i=i+80|0;j=p+64|0;t=p+60|0;q=p+56|0;u=p+52|0;m=p+48|0;r=p;n=p+44|0;k=p+40|0;g=p+36|0;s=p+32|0;o=p+28|0;l=p+24|0;c[t>>2]=a;c[q>>2]=d;c[u>>2]=f;c[m>>2]=c[(c[t>>2]|0)+52>>2];Kw(c[t>>2]|0,c[q>>2]|0,r);b[c[u>>2]>>1]=b[r+20>>1]|0;if(!(e[r+18>>1]|0)){c[j>>2]=0;u=c[j>>2]|0;i=p;return u|0}if(((c[q>>2]|0)+(e[r+18>>1]|0)+3|0)>>>0>((c[(c[t>>2]|0)+56>>2]|0)+(e[(c[t>>2]|0)+20>>1]|0)|0)>>>0){c[j>>2]=kj(57786)|0;u=c[j>>2]|0;i=p;return u|0}c[n>>2]=Hh((c[q>>2]|0)+(e[r+18>>1]|0)|0)|0;c[s>>2]=(c[(c[m>>2]|0)+36>>2]|0)-4;c[g>>2]=(((c[r+12>>2]|0)-(e[r+16>>1]|0)+(c[s>>2]|0)-1|0)>>>0)/((c[s>>2]|0)>>>0)|0;while(1){u=c[g>>2]|0;c[g>>2]=u+ -1;if(!u){h=23;break}c[o>>2]=0;c[l>>2]=0;if((c[n>>2]|0)>>>0<2){h=9;break}u=c[n>>2]|0;if(u>>>0>(Aw(c[m>>2]|0)|0)>>>0){h=9;break}if((c[g>>2]|0)!=0?(c[k>>2]=Ow(c[m>>2]|0,c[n>>2]|0,l,o)|0,(c[k>>2]|0)!=0):0){h=12;break}if((c[l>>2]|0)==0?(u=zB(c[m>>2]|0,c[n>>2]|0)|0,c[l>>2]=u,(u|0)==0):0)h=17;else if((Rj(c[(c[l>>2]|0)+68>>2]|0)|0)!=1)c[k>>2]=kj(57820)|0;else h=17;if((h|0)==17){h=0;c[k>>2]=xB(c[m>>2]|0,c[l>>2]|0,c[n>>2]|0)|0}if(c[l>>2]|0)_c(c[(c[l>>2]|0)+68>>2]|0);if(c[k>>2]|0){h=21;break}c[n>>2]=c[o>>2]}if((h|0)==9){c[j>>2]=kj(57800)|0;u=c[j>>2]|0;i=p;return u|0}else if((h|0)==12){c[j>>2]=c[k>>2];u=c[j>>2]|0;i=p;return u|0}else if((h|0)==21){c[j>>2]=c[k>>2];u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=Hh((c[(c[h>>2]|0)+56>>2]|0)+4|0)|0;if((c[j>>2]|0)>>>0>((((c[(c[k>>2]|0)+36>>2]|0)>>>0)/4|0)-2|0)>>>0){c[g>>2]=kj(57698)|0;break}if((c[j>>2]|0)>>>0<((((c[(c[k>>2]|0)+36>>2]|0)>>>0)/4|0)-8|0)>>>0){c[g>>2]=gd(c[(c[h>>2]|0)+68>>2]|0)|0;if(c[g>>2]|0)break;ck((c[(c[h>>2]|0)+56>>2]|0)+4|0,(c[j>>2]|0)+1|0);ck((c[(c[h>>2]|0)+56>>2]|0)+(8+(c[j>>2]<<2))|0,c[p>>2]|0);if((c[n>>2]|0)!=0?(e[(c[k>>2]|0)+22>>1]&4|0)==0:0)AB(c[(c[n>>2]|0)+68>>2]|0);c[g>>2]=BB(c[k>>2]|0,c[p>>2]|0)|0;break}}if((c[n>>2]|0)==0?(b=Bw(c[k>>2]|0,c[p>>2]|0,n,0)|0,c[g>>2]=b,0!=(b|0)):0)break;c[g>>2]=gd(c[(c[n>>2]|0)+68>>2]|0)|0;if(!(c[g>>2]|0)){ck(c[(c[n>>2]|0)+56>>2]|0,c[m>>2]|0);ck((c[(c[n>>2]|0)+56>>2]|0)+4|0,0);ck((c[(c[l>>2]|0)+56>>2]|0)+32|0,c[p>>2]|0)}}while(0);if(!(c[n>>2]|0)){b=c[n>>2]|0;Rk(b);b=c[h>>2]|0;Rk(b);b=c[g>>2]|0;i=q;return b|0}a[c[n>>2]>>0]=0;b=c[n>>2]|0;Rk(b);b=c[h>>2]|0;Rk(b);b=c[g>>2]|0;i=q;return b|0}function yB(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;CB(c[d>>2]|0);i=b;return}function zB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=Hi(c[c[f>>2]>>2]|0,c[g>>2]|0)|0;if(c[h>>2]|0){c[e>>2]=Cw(c[h>>2]|0,c[g>>2]|0,c[f>>2]|0)|0;a=c[e>>2]|0;i=d;return a|0}else{c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}return 0}function AB(a){a=a|0;var d=0,f=0,g=0;d=i;i=i+16|0;f=d+4|0;g=d;c[f>>2]=a;c[g>>2]=c[(c[f>>2]|0)+16>>2];if(!((e[(c[f>>2]|0)+24>>1]|0)&2)){i=d;return}if(c[(c[g>>2]|0)+96>>2]|0){i=d;return}g=(c[f>>2]|0)+24|0;b[g>>1]=e[g>>1]|0|32;i=d;return}function BB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;g=e+8|0;f=e+4|0;d=e;c[g>>2]=a;c[f>>2]=b;c[d>>2]=0;if((c[(c[g>>2]|0)+60>>2]|0)==0?(a=Vg(c[(c[g>>2]|0)+44>>2]|0)|0,c[(c[g>>2]|0)+60>>2]=a,(c[(c[g>>2]|0)+60>>2]|0)==0):0)c[d>>2]=7;if(c[d>>2]|0){a=c[d>>2]|0;i=e;return a|0}a=c[f>>2]|0;if(a>>>0>(Zg(c[(c[g>>2]|0)+60>>2]|0)|0)>>>0){a=c[d>>2]|0;i=e;return a|0}c[d>>2]=Wg(c[(c[g>>2]|0)+60>>2]|0,c[f>>2]|0)|0;a=c[d>>2]|0;i=e;return a|0}function CB(a){a=a|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=a;a=(c[e>>2]|0)+26|0;b[a>>1]=(b[a>>1]|0)+1<<16>>16;i=d;return}function DB(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;m=i;i=i+48|0;g=m+32|0;n=m+28|0;o=m+24|0;p=m+20|0;h=m+16|0;j=m+12|0;k=m+8|0;l=m+4|0;f=m;c[n>>2]=b;c[o>>2]=d;c[p>>2]=e;c[j>>2]=0;c[k>>2]=c[(c[n>>2]|0)+4>>2];if(c[(c[k>>2]|0)+8>>2]|0){c[g>>2]=262;b=c[g>>2]|0;i=m;return b|0}c[h>>2]=Bw(c[k>>2]|0,c[o>>2]|0,j,0)|0;if(c[h>>2]|0){c[g>>2]=c[h>>2];b=c[g>>2]|0;i=m;return b|0}c[h>>2]=Rz(c[n>>2]|0,c[o>>2]|0,0)|0;if(c[h>>2]|0){Rk(c[j>>2]|0);c[g>>2]=c[h>>2];b=c[g>>2]|0;i=m;return b|0}c[c[p>>2]>>2]=0;do if((c[o>>2]|0)>>>0>1){if(!(a[(c[k>>2]|0)+17>>0]|0)){vB(c[j>>2]|0,h);Rk(c[j>>2]|0);break}Sc(c[n>>2]|0,4,l);e=c[j>>2]|0;do if((c[o>>2]|0)==(c[l>>2]|0)){vB(e,h);Rk(c[j>>2]|0);if(c[h>>2]|0){c[g>>2]=c[h>>2];b=c[g>>2]|0;i=m;return b|0}}else{Rk(e);c[h>>2]=Bw(c[k>>2]|0,c[l>>2]|0,f,0)|0;if(c[h>>2]|0){c[g>>2]=c[h>>2];b=c[g>>2]|0;i=m;return b|0}c[h>>2]=vA(c[k>>2]|0,c[f>>2]|0,1,0,c[o>>2]|0,0)|0;Rk(c[f>>2]|0);if(c[h>>2]|0){c[g>>2]=c[h>>2];b=c[g>>2]|0;i=m;return b|0}c[f>>2]=0;c[h>>2]=Bw(c[k>>2]|0,c[l>>2]|0,f,0)|0;vB(c[f>>2]|0,h);Rk(c[f>>2]|0);if(!(c[h>>2]|0)){c[c[p>>2]>>2]=c[l>>2];break}c[g>>2]=c[h>>2];b=c[g>>2]|0;i=m;return b|0}while(0);c[l>>2]=(c[l>>2]|0)+ -1;while(1){if((c[l>>2]|0)!=((((c[282]|0)>>>0)/((c[(c[k>>2]|0)+32>>2]|0)>>>0)|0)+1|0)?(b=Pw(c[k>>2]|0,c[l>>2]|0)|0,(b|0)!=(c[l>>2]|0)):0)break;c[l>>2]=(c[l>>2]|0)+ -1}c[h>>2]=bd(c[n>>2]|0,4,c[l>>2]|0)|0}else{wB(c[j>>2]|0,9);Rk(c[j>>2]|0)}while(0);c[g>>2]=c[h>>2];b=c[g>>2]|0;i=m;return b|0}function EB(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;a[(c[e>>2]|0)+56>>0]=1;b=FB((c[e>>2]|0)+64|0,(c[e>>2]|0)+36|0)|0;i=d;return b|0}function FB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;g=i;i=i+64|0;h=g+60|0;f=g+56|0;l=g+52|0;e=g+48|0;j=g;k=g+44|0;d=g+40|0;c[h>>2]=a;c[f>>2]=b;c[l>>2]=c[(c[(c[h>>2]|0)+8>>2]|0)+24>>2];c[e>>2]=0;a=j+0|0;b=a+40|0;do{c[a>>2]=0;a=a+4|0}while((a|0)<(b|0));if(!(c[(c[h>>2]|0)+32>>2]|0))c[e>>2]=GB(c[l>>2]|0,0,0,(c[h>>2]|0)+32|0)|0;if(!(c[e>>2]|0))c[e>>2]=HB(c[h>>2]|0,c[f>>2]|0)|0;if(c[e>>2]|0){a=c[e>>2]|0;i=g;return a|0}c[d>>2]=0;a=(c[h>>2]|0)+40|0;IB(c[(c[h>>2]|0)+32>>2]|0,j,c[(c[(c[h>>2]|0)+8>>2]|0)+12>>2]|0,c[a>>2]|0,c[a+4>>2]|0);a=(c[h>>2]|0)+28|0;c[a>>2]=(c[a>>2]|0)+1;a=c[(c[f>>2]|0)+8>>2]|0;JB(j,a,((a|0)<0)<<31>>31);c[k>>2]=c[c[f>>2]>>2];while(1){l=c[k>>2]|0;if(!(c[k>>2]|0))break;c[d>>2]=c[l+4>>2];a=c[c[k>>2]>>2]|0;JB(j,a,((a|0)<0)<<31>>31);KB(j,(c[k>>2]|0)+8|0,c[c[k>>2]>>2]|0);if(!(c[(c[f>>2]|0)+4>>2]|0))hc(c[k>>2]|0);c[k>>2]=c[d>>2]}c[c[f>>2]>>2]=l;c[e>>2]=LB(j,(c[h>>2]|0)+40|0)|0;a=c[e>>2]|0;i=g;return a|0}function GB(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;f=i;i=i+32|0;k=f+24|0;j=f+20|0;g=f+16|0;h=f;c[k>>2]=a;a=f+8|0;c[a>>2]=b;c[a+4>>2]=d;c[j>>2]=e;c[g>>2]=PB(c[c[k>>2]>>2]|0,0,c[j>>2]|0,4126,g)|0;if(c[g>>2]|0){k=c[g>>2]|0;i=f;return k|0}k=h;c[k>>2]=0;c[k+4>>2]=0;rj(c[c[j>>2]>>2]|0,18,h);k=c[g>>2]|0;i=f;return k|0}function HB(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;j=i;i=i+32|0;f=j+28|0;m=j+24|0;k=j+20|0;h=j+16|0;l=j+12|0;g=j+8|0;n=j+4|0;e=j;c[m>>2]=a;c[k>>2]=b;c[n>>2]=MB(c[m>>2]|0)|0;if(c[n>>2]|0){c[f>>2]=c[n>>2];a=c[f>>2]|0;i=j;return a|0}c[l>>2]=Mc(256,0)|0;if(!(c[l>>2]|0)){c[f>>2]=7;a=c[f>>2]|0;i=j;return a|0}c[g>>2]=c[c[k>>2]>>2];while(1){if(!(c[g>>2]|0))break;b=c[g>>2]|0;do if(c[(c[k>>2]|0)+4>>2]|0)if((b|0)==(c[(c[k>>2]|0)+4>>2]|0)){c[e>>2]=0;break}else{c[e>>2]=(c[(c[k>>2]|0)+4>>2]|0)+(c[(c[g>>2]|0)+4>>2]|0);break}else c[e>>2]=c[b+4>>2];while(0);c[(c[g>>2]|0)+4>>2]=0;c[h>>2]=0;while(1){if(!(c[(c[l>>2]|0)+(c[h>>2]<<2)>>2]|0))break;NB(c[m>>2]|0,c[g>>2]|0,c[(c[l>>2]|0)+(c[h>>2]<<2)>>2]|0,g);c[(c[l>>2]|0)+(c[h>>2]<<2)>>2]=0;c[h>>2]=(c[h>>2]|0)+1}c[(c[l>>2]|0)+(c[h>>2]<<2)>>2]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|0,c[j>>2]|0,c[h>>2]|0)|0;i=m;return a|0}function PB(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,j=0,k=0,l=0,m=0,n=0,o=0;j=i;i=i+32|0;l=j+24|0;m=j+20|0;h=j+16|0;k=j+12|0;o=j+8|0;g=j+4|0;n=j;c[l>>2]=a;c[m>>2]=b;c[h>>2]=d;c[k>>2]=e;c[o>>2]=f;c[g>>2]=7;a=c[(c[l>>2]|0)+4>>2]|0;c[n>>2]=Mc(a,((a|0)<0)<<31>>31)|0;if(!(c[n>>2]|0)){a=c[g>>2]|0;i=j;return a|0}c[g>>2]=Di(c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[k>>2]|0,c[o>>2]|0)|0;k=c[n>>2]|0;if(c[g>>2]|0){hc(k);a=c[g>>2]|0;i=j;return a|0}else{c[c[h>>2]>>2]=k;a=c[g>>2]|0;i=j;return a|0}return 0}function QB(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;g=i;i=i+48|0;j=g+36|0;k=g+32|0;h=g+28|0;q=g+24|0;m=g+20|0;e=g+16|0;n=g+12|0;l=g+8|0;o=g+4|0;p=g;c[j>>2]=a;c[k>>2]=b;c[q>>2]=c[(c[(c[j>>2]|0)+8>>2]|0)+4>>2];c[m>>2]=c[(c[j>>2]|0)+4>>2];c[h>>2]=RB((c[(c[j>>2]|0)+12>>2]|0)+((c[q>>2]|0)*56|0)|0)|0;if(!(c[h>>2]|0)){c[n>>2]=(c[(c[j>>2]|0)+12>>2]|0)+((c[q>>2]&65534)*56|0);c[l>>2]=(c[(c[j>>2]|0)+12>>2]|0)+((c[q>>2]|1)*56|0);c[o>>2]=c[(c[l>>2]|0)+32>>2];c[e>>2]=((c[c[j>>2]>>2]|0)+(c[q>>2]|0)|0)/2|0;while(1){if((c[e>>2]|0)<=0)break;do if(c[(c[n>>2]|0)+24>>2]|0)if(!(c[(c[l>>2]|0)+24>>2]|0)){c[p>>2]=-1;break}else{c[p>>2]=OB(c[m>>2]|0,c[(c[n>>2]|0)+32>>2]|0,c[(c[n>>2]|0)+20>>2]|0,c[o>>2]|0,c[(c[l>>2]|0)+20>>2]|0)|0;break}else c[p>>2]=1;while(0);do if((c[p>>2]|0)<0)f=12;else{if((c[p>>2]|0)==0?(c[n>>2]|0)>>>0<(c[l>>2]|0)>>>0:0){f=12;break}if(c[(c[n>>2]|0)+24>>2]|0)c[o>>2]=0;c[(c[(c[j>>2]|0)+8>>2]|0)+(c[e>>2]<<2)>>2]=((c[l>>2]|0)-(c[(c[j>>2]|0)+12>>2]|0)|0)/56|0;c[n>>2]=(c[(c[j>>2]|0)+12>>2]|0)+((c[(c[(c[j>>2]|0)+8>>2]|0)+((c[e>>2]^1)<<2)>>2]|0)*56|0)}while(0);if((f|0)==12){f=0;c[(c[(c[j>>2]|0)+8>>2]|0)+(c[e>>2]<<2)>>2]=((c[n>>2]|0)-(c[(c[j>>2]|0)+12>>2]|0)|0)/56|0;c[l>>2]=(c[(c[j>>2]|0)+12>>2]|0)+((c[(c[(c[j>>2]|0)+8>>2]|0)+((c[e>>2]^1)<<2)>>2]|0)*56|0);c[o>>2]=c[(c[l>>2]|0)+32>>2]}c[e>>2]=(c[e>>2]|0)/2|0}c[c[k>>2]>>2]=(c[(c[(c[j>>2]|0)+12>>2]|0)+((c[(c[(c[j>>2]|0)+8>>2]|0)+4>>2]|0)*56|0)+24>>2]|0)==0&1}if(!(c[h>>2]|0)){a=d[(c[(c[m>>2]|0)+12>>2]|0)+7>>0]|0;i=g;return a|0}else{a=c[h>>2]|0;i=g;return a|0}return 0}function RB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;e=f+24|0;b=f+20|0;d=f+16|0;g=f;j=f+12|0;h=f+8|0;c[b>>2]=a;c[d>>2]=0;k=g;c[k>>2]=0;c[k+4>>2]=0;k=c[b>>2]|0;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,c[w>>2]|0,c[w+4>>2]|0)|0;if(c[t>>2]|0){c[g>>2]=c[t>>2];w=c[g>>2]|0;i=q;return w|0}}c[e>>2]=(c[(c[h>>2]|0)+40>>2]|0)-(c[n>>2]|0);do if((c[j>>2]|0)<=(c[e>>2]|0)){c[c[k>>2]>>2]=(c[(c[h>>2]|0)+36>>2]|0)+(c[n>>2]|0);v=c[j>>2]|0;w=c[h>>2]|0;a=w;v=bF(c[a>>2]|0,c[a+4>>2]|0,v|0,((v|0)<0)<<31>>31|0)|0;c[w>>2]=v;c[w+4>>2]=D}else{do if((c[(c[h>>2]|0)+16>>2]|0)<(c[j>>2]|0)){if(128>(c[(c[h>>2]|0)+16>>2]<<1|0))t=128;else t=c[(c[h>>2]|0)+16>>2]<<1;c[r>>2]=t;while(1){if((c[j>>2]|0)<=(c[r>>2]|0))break;c[r>>2]=c[r>>2]<<1}w=c[r>>2]|0;c[s>>2]=kc(c[(c[h>>2]|0)+28>>2]|0,w,((w|0)<0)<<31>>31)|0;if(c[s>>2]|0){c[(c[h>>2]|0)+16>>2]=c[r>>2];c[(c[h>>2]|0)+28>>2]=c[s>>2];break}c[g>>2]=7;w=c[g>>2]|0;i=q;return w|0}while(0);dF(c[(c[h>>2]|0)+28>>2]|0,(c[(c[h>>2]|0)+36>>2]|0)+(c[n>>2]|0)|0,c[e>>2]|0)|0;v=c[e>>2]|0;w=c[h>>2]|0;a=w;v=bF(c[a>>2]|0,c[a+4>>2]|0,v|0,((v|0)<0)<<31>>31|0)|0;c[w>>2]=v;c[w+4>>2]=D;c[o>>2]=(c[j>>2]|0)-(c[e>>2]|0);while(1){if((c[o>>2]|0)<=0){f=27;break}c[p>>2]=c[o>>2];if((c[o>>2]|0)>(c[(c[h>>2]|0)+40>>2]|0))c[p>>2]=c[(c[h>>2]|0)+40>>2];c[l>>2]=VB(c[h>>2]|0,c[p>>2]|0,m)|0;if(c[l>>2]|0)break;dF((c[(c[h>>2]|0)+28>>2]|0)+((c[j>>2]|0)-(c[o>>2]|0))|0,c[m>>2]|0,c[p>>2]|0)|0;c[o>>2]=(c[o>>2]|0)-(c[p>>2]|0)}if((f|0)==27){c[c[k>>2]>>2]=c[(c[h>>2]|0)+28>>2];break}c[g>>2]=c[l>>2];w=c[g>>2]|0;i=q;return w|0}while(0);c[g>>2]=0;w=c[g>>2]|0;i=q;return w|0}function WB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;l=e+16|0;h=e+12|0;j=e+8|0;f=e+4|0;g=e;c[l>>2]=a;c[h>>2]=b;c[j>>2]=d;c[f>>2]=0;b=(c[h>>2]|0)+8|0;k=c[b+4>>2]|0;a=c[(c[(c[(c[l>>2]|0)+8>>2]|0)+24>>2]|0)+136>>2]|0;d=((a|0)<0)<<31>>31;if(!((k|0)<(d|0)|((k|0)==(d|0)?(c[b>>2]|0)>>>0<=a>>>0:0))){l=c[f>>2]|0;i=e;return l|0}c[g>>2]=c[c[h>>2]>>2];if((c[c[c[g>>2]>>2]>>2]|0)<3){l=c[f>>2]|0;i=e;return l|0}c[f>>2]=XB(c[g>>2]|0,0,0,c[(c[h>>2]|0)+8>>2]|0,c[j>>2]|0)|0;l=c[f>>2]|0;i=e;return l|0}function XB(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;i=i+32|0;h=g+8|0;c[g+16>>2]=a;a=g;c[a>>2]=b;c[a+4>>2]=d;c[g+12>>2]=e;c[h>>2]=f;c[c[h>>2]>>2]=0;i=g;return 0}function YB(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+96|0;l=d+88|0;h=d+84|0;g=d+80|0;k=d+48|0;f=d+76|0;p=d+72|0;m=d+68|0;e=d+8|0;o=d+64|0;n=d+60|0;j=d+56|0;b=d;c[l>>2]=a;c[h>>2]=0;r=(c[l>>2]|0)+8|0;q=c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;c[e>>2]=0;c[b>>2]=_B(c[f>>2]|0,e)|0;if(!(c[b>>2]|0)){c[b>>2]=$B(c[g>>2]|0,c[e>>2]|0,0)|0;c[(c[f>>2]|0)+20>>2]=c[e>>2];c[e>>2]=0}if(!(c[b>>2]|0)){g=c[b>>2]|0;i=d;return g|0}mB(c[e>>2]|0);g=c[b>>2]|0;i=d;return g|0}function _B(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;h=i;i=i+64|0;r=h+52|0;m=h+48|0;n=h+44|0;g=h+40|0;s=h+36|0;k=h+32|0;j=h+28|0;e=h+24|0;l=h;q=h+20|0;f=h+16|0;o=h+12|0;p=h+8|0;c[r>>2]=a;c[m>>2]=b;c[n>>2]=0;c[g>>2]=0;c[s>>2]=0;while(1){if(c[g>>2]|0)break;if((c[s>>2]|0)>=(d[(c[r>>2]|0)+59>>0]|0|0))break;c[k>>2]=(c[r>>2]|0)+64+(c[s>>2]<<6);c[j>>2]=0;c[e>>2]=cC(c[(c[k>>2]|0)+28>>2]|0)|0;a=l;c[a>>2]=0;c[a+4>>2]=0;a:do if((c[(c[k>>2]|0)+28>>2]|0)<=16)c[g>>2]=dC(c[k>>2]|0,c[(c[k>>2]|0)+28>>2]|0,l,j)|0;else{c[f>>2]=0;c[j>>2]=eC(16)|0;if(!(c[j>>2]|0))c[g>>2]=7;c[q>>2]=0;while(1){if(!((c[g>>2]|0)==0?(c[q>>2]|0)<(c[(c[k>>2]|0)+28>>2]|0):0))break a;c[o>>2]=0;if(((c[(c[k>>2]|0)+28>>2]|0)-(c[q>>2]|0)|0)<16)b=(c[(c[k>>2]|0)+28>>2]|0)-(c[q>>2]|0)|0;else b=16;c[p>>2]=b;c[g>>2]=dC(c[k>>2]|0,c[p>>2]|0,l,o)|0;if(!(c[g>>2]|0)){t=c[k>>2]|0;b=c[e>>2]|0;a=c[f>>2]|0;c[f>>2]=a+1;c[g>>2]=fC(t,b,a,c[j>>2]|0,c[o>>2]|0)|0}c[q>>2]=(c[q>>2]|0)+16}}while(0);b=c[j>>2]|0;if(!(c[g>>2]|0))c[n>>2]=b;else mB(b);c[s>>2]=(c[s>>2]|0)+1}if(!(c[g>>2]|0)){a=c[n>>2]|0;t=c[m>>2]|0;c[t>>2]=a;t=c[g>>2]|0;i=h;return t|0}mB(c[n>>2]|0);c[n>>2]=0;a=c[n>>2]|0;t=c[m>>2]|0;c[t>>2]=a;t=c[g>>2]|0;i=h;return t|0}function $B(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;j=i;i=i+32|0;h=j+24|0;l=j+20|0;f=j+16|0;m=j+8|0;k=j+4|0;n=j;c[l>>2]=a;c[f>>2]=b;c[j+12>>2]=e;c[m>>2]=0;c[n>>2]=c[c[f>>2]>>2];c[(c[f>>2]|0)+4>>2]=c[l>>2];c[k>>2]=0;while(1){if((c[k>>2]|0)>=(c[n>>2]|0))break;c[m>>2]=aC((c[(c[f>>2]|0)+12>>2]|0)+((c[k>>2]|0)*56|0)|0,0)|0;if(c[m>>2]|0){g=4;break}c[k>>2]=(c[k>>2]|0)+1}if((g|0)==4){c[h>>2]=c[m>>2];a=c[h>>2]|0;i=j;return a|0}c[k>>2]=(c[c[f>>2]>>2]|0)-1;while(1){if((c[k>>2]|0)<=0)break;bC(c[f>>2]|0,c[k>>2]|0);c[k>>2]=(c[k>>2]|0)+ -1}c[h>>2]=d[(c[(c[l>>2]|0)+12>>2]|0)+7>>0];a=c[h>>2]|0;i=j;return a|0}function aC(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;i=i+32|0;k=d+24|0;l=d+20|0;e=d+16|0;g=d+12|0;f=d+8|0;j=d+4|0;h=d;c[k>>2]=a;c[l>>2]=b;c[e>>2]=0;c[g>>2]=c[(c[k>>2]|0)+48>>2];if(!(c[g>>2]|0)){a=c[e>>2]|0;i=d;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c[h>>2]|0)*56|0);c[k>>2]=(c[(c[e>>2]|0)+12>>2]|0)+((c[m>>2]|0)*56|0);do if(c[(c[d>>2]|0)+24>>2]|0){if(!(c[(c[k>>2]|0)+24>>2]|0)){c[j>>2]=c[h>>2];break}c[l>>2]=OB(c[(c[e>>2]|0)+4>>2]|0,c[(c[d>>2]|0)+32>>2]|0,c[(c[d>>2]|0)+20>>2]|0,c[(c[k>>2]|0)+32>>2]|0,c[(c[k>>2]|0)+20>>2]|0)|0;if((c[l>>2]|0)<=0){c[j>>2]=c[h>>2];break}else{c[j>>2]=c[m>>2];break}}else c[j>>2]=c[m>>2];while(0);c[(c[(c[e>>2]|0)+8>>2]|0)+(c[f>>2]<<2)>>2]=c[j>>2];i=g;return}function cC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0;b=i;i=i+16|0;f=b+12|0;d=b+8|0;e=b;c[f>>2]=a;c[d>>2]=0;a=e;c[a>>2]=16;c[a+4>>2]=0;while(1){g=e;j=c[g+4>>2]|0;a=c[f>>2]|0;h=((a|0)<0)<<31>>31;if(!((j|0)<(h|0)|((j|0)==(h|0)?(c[g>>2]|0)>>>0>>0:0)))break;h=e;h=lF(c[h>>2]|0,c[h+4>>2]|0,16,0)|0;j=e;c[j>>2]=h;c[j+4>>2]=D;c[d>>2]=(c[d>>2]|0)+1}i=b;return c[d>>2]|0}function dC(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,m=0,n=0,o=0,p=0,q=0;j=i;i=i+48|0;p=j+44|0;n=j+40|0;g=j+36|0;l=j+32|0;k=j+28|0;m=j+8|0;f=j+24|0;h=j+20|0;q=j;o=j+16|0;c[p>>2]=a;c[n>>2]=b;c[g>>2]=d;c[l>>2]=e;d=c[g>>2]|0;b=c[d+4>>2]|0;a=m;c[a>>2]=c[d>>2];c[a+4>>2]=b;c[h>>2]=0;a=eC(c[n>>2]|0)|0;c[k>>2]=a;c[c[l>>2]>>2]=a;if(!(c[k>>2]|0))c[h>>2]=7;c[f>>2]=0;while(1){if(!((c[h>>2]|0)==0?(c[f>>2]|0)<(c[n>>2]|0):0))break;c[o>>2]=(c[(c[k>>2]|0)+12>>2]|0)+((c[f>>2]|0)*56|0);d=m;c[h>>2]=hC(c[p>>2]|0,(c[p>>2]|0)+32|0,c[d>>2]|0,c[d+4>>2]|0,c[o>>2]|0,q)|0;d=(c[o>>2]|0)+8|0;b=c[d+4>>2]|0;a=m;c[a>>2]=c[d>>2];c[a+4>>2]=b;c[f>>2]=(c[f>>2]|0)+1}if(!(c[h>>2]|0)){b=m;q=b;q=c[q>>2]|0;b=b+4|0;b=c[b>>2]|0;a=c[g>>2]|0;d=a;c[d>>2]=q;a=a+4|0;c[a>>2]=b;a=c[h>>2]|0;i=j;return a|0}mB(c[k>>2]|0);c[c[l>>2]>>2]=0;b=m;q=b;q=c[q>>2]|0;b=b+4|0;b=c[b>>2]|0;a=c[g>>2]|0;d=a;c[d>>2]=q;a=a+4|0;c[a>>2]=b;a=c[h>>2]|0;i=j;return a|0}function eC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+12|0;e=d+8|0;f=d+4|0;b=d;c[g>>2]=a;c[e>>2]=2;while(1){a=c[e>>2]|0;if((c[e>>2]|0)>=(c[g>>2]|0))break;c[e>>2]=(c[e>>2]|0)+a}c[f>>2]=16+(a*60|0);if(jg(100)|0)f=0;else{f=c[f>>2]|0;f=Mc(f,((f|0)<0)<<31>>31)|0}c[b>>2]=f;if(!(c[b>>2]|0)){a=c[b>>2]|0;i=d;return a|0}c[c[b>>2]>>2]=c[e>>2];c[(c[b>>2]|0)+4>>2]=0;c[(c[b>>2]|0)+12>>2]=(c[b>>2]|0)+16;c[(c[b>>2]|0)+8>>2]=(c[(c[b>>2]|0)+12>>2]|0)+((c[e>>2]|0)*56|0);a=c[b>>2]|0;i=d;return a|0}function fC(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,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;j=i;i=i+64|0;p=j+48|0;s=j+44|0;g=j+40|0;u=j+36|0;t=j+32|0;h=j+28|0;o=j+24|0;r=j+20|0;k=j+16|0;m=j+12|0;q=j+8|0;n=j+4|0;l=j;c[p>>2]=a;c[s>>2]=b;c[g>>2]=d;c[u>>2]=e;c[t>>2]=f;c[h>>2]=0;c[o>>2]=1;c[k>>2]=c[u>>2];c[h>>2]=gC(c[p>>2]|0,c[t>>2]|0,m)|0;c[r>>2]=1;while(1){if((c[r>>2]|0)>=(c[s>>2]|0))break;c[o>>2]=c[o>>2]<<4;c[r>>2]=(c[r>>2]|0)+1}c[r>>2]=1;while(1){if(!((c[h>>2]|0)==0?(c[r>>2]|0)<(c[s>>2]|0):0))break;c[q>>2]=((c[g>>2]|0)/(c[o>>2]|0)|0|0)%16|0;c[n>>2]=(c[(c[k>>2]|0)+12>>2]|0)+((c[q>>2]|0)*56|0);do if(!(c[(c[n>>2]|0)+48>>2]|0)){c[l>>2]=eC(16)|0;if(!(c[l>>2]|0)){c[h>>2]=7;break}else{c[h>>2]=gC(c[p>>2]|0,c[l>>2]|0,(c[n>>2]|0)+48|0)|0;break}}while(0);if(!(c[h>>2]|0)){c[k>>2]=c[(c[(c[n>>2]|0)+48>>2]|0)+4>>2];c[o>>2]=(c[o>>2]|0)/16|0}c[r>>2]=(c[r>>2]|0)+1}l=c[m>>2]|0;if(!(c[h>>2]|0)){c[(c[(c[k>>2]|0)+12>>2]|0)+(((c[g>>2]|0)%16|0)*56|0)+48>>2]=l;u=c[h>>2]|0;i=j;return u|0}else{rB(l);u=c[h>>2]|0;i=j;return u|0}return 0}function gC(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;g=e+16|0;j=e+12|0;k=e+8|0;h=e+4|0;f=e;c[g>>2]=a;c[j>>2]=b;c[k>>2]=d;c[h>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>2]|0;i=j;return p|0}c[m>>2]=RB(c[k>>2]|0)|0;p=c[m>>2]|0;i=j;return p|0}function iC(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;c[b>>2]=a;i=e;return(d[(c[b>>2]|0)+73>>0]|0|0)!=1|0}function jC(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;e=d;c[f>>2]=b;c[e>>2]=kC(c[c[f>>2]>>2]|0,g)|0;c[(c[f>>2]|0)+60>>2]=0;if(!(c[g>>2]|0)){g=c[e>>2]|0;i=d;return g|0}a[(c[f>>2]|0)+25>>0]=1;g=c[e>>2]|0;i=d;return g|0}function kC(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0;h=i;i=i+16|0;g=h+12|0;j=h+8|0;e=h+4|0;f=h;c[j>>2]=a;c[e>>2]=b;if((d[(c[j>>2]|0)+73>>0]|0|0)>=3)b=vw(c[j>>2]|0)|0;else b=0;c[f>>2]=b;if(c[f>>2]|0){c[c[e>>2]>>2]=1;c[g>>2]=c[f>>2];a=c[g>>2]|0;i=h;return a|0}if((d[(c[j>>2]|0)+73>>0]|0|0)==1?(c[(c[j>>2]|0)+68>>2]|0)==0:0)c[c[e>>2]>>2]=0;else c[c[e>>2]>>2]=1;c[g>>2]=0;a=c[g>>2]|0;i=h;return a|0}function lC(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;j=e+12|0;h=e+8|0;f=e+4|0;g=e;c[j>>2]=b;c[h>>2]=d;d=c[j>>2]|0;if(a[(c[j>>2]|0)+56>>0]|0){c[g>>2]=(c[(c[(c[j>>2]|0)+20>>2]|0)+12>>2]|0)+((c[(c[(c[d+20>>2]|0)+8>>2]|0)+4>>2]|0)*56|0);c[c[h>>2]>>2]=c[(c[g>>2]|0)+20>>2];c[f>>2]=c[(c[g>>2]|0)+32>>2];b=c[f>>2]|0;i=e;return b|0}else{c[c[h>>2]>>2]=c[c[d+36>>2]>>2];c[f>>2]=(c[(c[j>>2]|0)+36>>2]|0)+8;b=c[f>>2]|0;i=e;return b|0}return 0}function mC(f,g,h,j){f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;q=i;i=i+48|0;n=q+32|0;p=q+28|0;t=q+24|0;m=q+20|0;s=q+16|0;k=q+12|0;o=q+8|0;l=q+4|0;r=q;c[n>>2]=f;c[p>>2]=g;c[t>>2]=h;c[m>>2]=j;if(c[c[m>>2]>>2]|0){i=q;return}c[k>>2]=c[(c[n>>2]|0)+56>>2];c[o>>2]=(c[(c[n>>2]|0)+64>>2]|0)+(c[p>>2]<<1);c[s>>2]=(d[c[o>>2]>>0]|0)<<8|(d[(c[o>>2]|0)+1>>0]|0);c[r>>2]=d[(c[n>>2]|0)+6>>0];if((c[s>>2]|0)>>>0>=((d[(c[k>>2]|0)+((c[r>>2]|0)+5)>>0]|0)<<8|(d[(c[k>>2]|0)+((c[r>>2]|0)+5)+1>>0]|0))>>>0?((c[s>>2]|0)+(c[t>>2]|0)|0)>>>0<=(c[(c[(c[n>>2]|0)+52>>2]|0)+36>>2]|0)>>>0:0){c[l>>2]=yC(c[n>>2]|0,c[s>>2]&65535,c[t>>2]&65535)|0;if(c[l>>2]|0){c[c[m>>2]>>2]=c[l>>2];i=q;return}else{f=(c[n>>2]|0)+18|0;b[f>>1]=(b[f>>1]|0)+ -1<<16>>16;eF(c[o>>2]|0,(c[o>>2]|0)+2|0,(e[(c[n>>2]|0)+18>>1]|0)-(c[p>>2]|0)<<1|0)|0;a[(c[k>>2]|0)+((c[r>>2]|0)+3)>>0]=(e[(c[n>>2]|0)+18>>1]|0)>>8;a[(c[k>>2]|0)+((c[r>>2]|0)+3)+1>>0]=b[(c[n>>2]|0)+18>>1];f=(c[n>>2]|0)+16|0;b[f>>1]=(e[f>>1]|0)+2;i=q;return}}f=kj(58057)|0;c[c[m>>2]>>2]=f;i=q;return}function nC(f,g,h,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|0;I=m+328|0;R=m+324|0;wa=m+320|0;V=m+316|0;X=m+312|0;ba=m+308|0;u=m+304|0;H=m+300|0;ta=m+296|0;o=m+292|0;q=m+288|0;n=m+284|0;E=m+280|0;w=m+276|0;P=m+272|0;y=m+268|0;v=m+338|0;l=m+264|0;ia=m+260|0;M=m+256|0;ha=m+252|0;qa=m+248|0;N=m+244|0;ua=m+240|0;r=m+228|0;F=m+216|0;p=m+196|0;W=m+192|0;sa=m+184|0;z=m+160|0;ga=m+140|0;s=m+136|0;J=m+132|0;pa=m+128|0;aa=m+124|0;va=m+120|0;ka=m+116|0;ja=m+112|0;la=m+108|0;ma=m+336|0;na=m+334|0;oa=m+332|0;ra=m+104|0;ca=m+100|0;ea=m+96|0;fa=m+92|0;da=m+88|0;_=m+84|0;Z=m+80|0;Y=m+76|0;U=m+72|0;S=m+68|0;Q=m+64|0;K=m+60|0;O=m+56|0;T=m;L=m+52|0;x=m+48|0;D=m+44|0;C=m+40|0;G=m+36|0;A=m+32|0;B=m+28|0;t=m+24|0;c[R>>2]=f;c[wa>>2]=g;c[V>>2]=h;c[X>>2]=j;c[ba>>2]=k;c[H>>2]=0;c[ta>>2]=0;c[o>>2]=0;c[y>>2]=0;c[qa>>2]=0;c[N>>2]=0;c[s>>2]=0;c[u>>2]=c[(c[R>>2]|0)+52>>2];if(!(c[V>>2]|0)){c[I>>2]=7;f=c[I>>2]|0;i=m;return f|0}c[n>>2]=(d[(c[R>>2]|0)+1>>0]|0)+(e[(c[R>>2]|0)+18>>1]|0);if((c[n>>2]|0)<2)c[P>>2]=0;else{do if(c[wa>>2]|0)if((c[wa>>2]|0)==(c[n>>2]|0)){c[P>>2]=(c[n>>2]|0)-2+(c[ba>>2]|0);break}else{c[P>>2]=(c[wa>>2]|0)-1;break}else c[P>>2]=0;while(0);c[n>>2]=2-(c[ba>>2]|0)}c[q>>2]=(c[n>>2]|0)+1;k=c[R>>2]|0;if(((c[n>>2]|0)+(c[P>>2]|0)-(d[(c[R>>2]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[z+(c[w>>2]<<2)>>2]|0)?(f=(c[w>>2]|0)+1|0,c[w>>2]=f,c[x>>2]=c[p+(f<<2)>>2],(c[l>>2]|0)==0):0))va=116;do if((va|0)==116){va=0;if((c[B>>2]|0)==0?(c[(c[D>>2]|0)+72>>2]|0)==(c[(c[x>>2]|0)+72>>2]|0):0)break;if(!(b[v>>1]|0)){g=c[u>>2]|0;f=Hh(c[(c[s>>2]|0)+(c[n>>2]<<2)>>2]|0)|0;yA(g,f,5,c[(c[x>>2]|0)+72>>2]|0,y)}if((e[(c[J>>2]|0)+(c[n>>2]<<1)>>1]|0)>(e[(c[x>>2]|0)+12>>1]|0))AA(c[x>>2]|0,c[(c[s>>2]|0)+(c[n>>2]<<2)>>2]|0,y)}while(0);c[n>>2]=(c[n>>2]|0)+1}if(!(b[v>>1]|0)){c[n>>2]=0;while(1){if((c[n>>2]|0)>=(c[o>>2]|0))break a;c[t>>2]=Hh((c[(c[p+(c[n>>2]<<2)>>2]|0)+56>>2]|0)+8|0)|0;yA(c[u>>2]|0,c[t>>2]|0,5,c[(c[p+(c[n>>2]<<2)>>2]|0)+72>>2]|0,y);c[n>>2]=(c[n>>2]|0)+1}}}}while(0);ng(c[s>>2]|0);c[n>>2]=0;while(1){if((c[n>>2]|0)>=(c[q>>2]|0))break;Rk(c[r+(c[n>>2]<<2)>>2]|0);c[n>>2]=(c[n>>2]|0)+1}c[n>>2]=0;while(1){if((c[n>>2]|0)>=(c[o>>2]|0))break;Rk(c[p+(c[n>>2]<<2)>>2]|0);c[n>>2]=(c[n>>2]|0)+1}c[I>>2]=c[y>>2];f=c[I>>2]|0;i=m;return f|0}function sC(a,b){a=a|0;b=b|0;var f=0,g=0,h=0,j=0,k=0,l=0;j=i;i=i+32|0;h=j+16|0;f=j+12|0;g=j+8|0;k=j+4|0;l=j;c[f>>2]=a;c[g>>2]=b;c[k>>2]=(d[(c[f>>2]|0)+1>>0]|0)-1;while(1){if((c[k>>2]|0)<0){b=8;break}c[l>>2]=e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c[j>>2];i=o;return}if(!(a[(c[m>>2]|0)+17>>0]|0)){i=o;return}b=xA(c[l>>2]|0)|0;c[c[k>>2]>>2]=b;i=o;return}function vC(b,f,g){b=b|0;f=f|0;g=g|0;var h=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;p=i;i=i+64|0;o=p+52|0;x=p+48|0;k=p+44|0;n=p+40|0;m=p+36|0;l=p+32|0;r=p+28|0;q=p+24|0;w=p+20|0;v=p+16|0;h=p+12|0;t=p+8|0;u=p+4|0;s=p;c[x>>2]=b;c[k>>2]=f;c[n>>2]=g;c[m>>2]=d[(c[x>>2]|0)+6>>0];c[l>>2]=c[(c[x>>2]|0)+56>>2];c[v>>2]=c[(c[(c[x>>2]|0)+52>>2]|0)+36>>2];c[q>>2]=(e[(c[x>>2]|0)+14>>1]|0)+((e[(c[x>>2]|0)+18>>1]|0)<<1);c[r>>2]=(d[(c[l>>2]|0)+((c[m>>2]|0)+5)>>0]|0)<<8|(d[(c[l>>2]|0)+((c[m>>2]|0)+5)+1>>0]|0);do if((c[q>>2]|0)>(c[r>>2]|0)){if(!(c[r>>2]|0)){c[r>>2]=65536;break}c[o>>2]=kj(53453)|0;b=c[o>>2]|0;i=p;return b|0}while(0);a:do if(((c[q>>2]|0)+2|0)<=(c[r>>2]|0)){if((d[(c[l>>2]|0)+((c[m>>2]|0)+1)>>0]|0|0)==0?(d[(c[l>>2]|0)+((c[m>>2]|0)+2)>>0]|0|0)==0:0){j=22;break}c[t>>2]=(c[m>>2]|0)+1;while(1){b=(d[(c[l>>2]|0)+(c[t>>2]|0)>>0]|0)<<8|(d[(c[l>>2]|0)+(c[t>>2]|0)+1>>0]|0);c[h>>2]=b;if((b|0)<=0){j=22;break a}if((c[h>>2]|0)>((c[v>>2]|0)-4|0)){j=12;break}if((c[h>>2]|0)<((c[t>>2]|0)+4|0)){j=12;break}c[u>>2]=(d[(c[l>>2]|0)+((c[h>>2]|0)+2)>>0]|0)<<8|(d[(c[l>>2]|0)+((c[h>>2]|0)+2)+1>>0]|0);if((c[u>>2]|0)>=(c[k>>2]|0))break;c[t>>2]=c[h>>2]}if((j|0)==12){c[o>>2]=kj(53469)|0;b=c[o>>2]|0;i=p;return b|0}c[s>>2]=(c[u>>2]|0)-(c[k>>2]|0);do if((c[s>>2]|0)<4){if((d[(c[l>>2]|0)+((c[m>>2]|0)+7)>>0]|0|0)>=60){j=23;break a}b=(c[l>>2]|0)+(c[t>>2]|0)|0;f=(c[l>>2]|0)+(c[h>>2]|0)|0;a[b+0>>0]=a[f+0>>0]|0;a[b+1>>0]=a[f+1>>0]|0;b=(c[l>>2]|0)+((c[m>>2]|0)+7)|0;a[b>>0]=(d[b>>0]|0)+(c[s>>2]&255)}else{if(((c[u>>2]|0)+(c[h>>2]|0)|0)<=(c[v>>2]|0)){a[(c[l>>2]|0)+((c[h>>2]|0)+2)>>0]=c[s>>2]>>8;a[(c[l>>2]|0)+((c[h>>2]|0)+2)+1>>0]=c[s>>2];break}c[o>>2]=kj(53483)|0;b=c[o>>2]|0;i=p;return b|0}while(0);c[c[n>>2]>>2]=(c[h>>2]|0)+(c[s>>2]|0);c[o>>2]=0;b=c[o>>2]|0;i=p;return b|0}else j=22;while(0);if((j|0)==22?((c[q>>2]|0)+2+(c[k>>2]|0)|0)>(c[r>>2]|0):0)j=23;do if((j|0)==23){c[w>>2]=wC(c[x>>2]|0)|0;if(!(c[w>>2]|0)){c[r>>2]=(((d[(c[l>>2]|0)+((c[m>>2]|0)+5)>>0]|0)<<8|(d[(c[l>>2]|0)+((c[m>>2]|0)+5)+1>>0]|0))-1&65535)+1;break}c[o>>2]=c[w>>2];b=c[o>>2]|0;i=p;return b|0}while(0);c[r>>2]=(c[r>>2]|0)-(c[k>>2]|0);a[(c[l>>2]|0)+((c[m>>2]|0)+5)>>0]=c[r>>2]>>8;a[(c[l>>2]|0)+((c[m>>2]|0)+5)+1>>0]=c[r>>2];c[c[n>>2]>>2]=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0)|0)>(c[p>>2]|0)){n=8;break}dF((c[h>>2]|0)+(c[g>>2]|0)|0,(c[q>>2]|0)+(c[o>>2]|0)|0,c[n>>2]|0)|0;a[c[u>>2]>>0]=c[g>>2]>>8;a[(c[u>>2]|0)+1>>0]=c[g>>2];c[t>>2]=(c[t>>2]|0)+1}if((n|0)==5){c[m>>2]=kj(53381)|0;v=c[m>>2]|0;i=f;return v|0}else if((n|0)==8){c[m>>2]=kj(53393)|0;v=c[m>>2]|0;i=f;return v|0}else if((n|0)==10){a[(c[h>>2]|0)+((c[j>>2]|0)+5)>>0]=c[g>>2]>>8;a[(c[h>>2]|0)+((c[j>>2]|0)+5)+1>>0]=c[g>>2];a[(c[h>>2]|0)+((c[j>>2]|0)+1)>>0]=0;a[(c[h>>2]|0)+((c[j>>2]|0)+2)>>0]=0;a[(c[h>>2]|0)+((c[j>>2]|0)+7)>>0]=0;_E((c[h>>2]|0)+(c[k>>2]|0)|0,0,(c[g>>2]|0)-(c[k>>2]|0)|0)|0;if(((c[g>>2]|0)-(c[k>>2]|0)|0)!=(e[(c[l>>2]|0)+16>>1]|0|0)){c[m>>2]=kj(53410)|0;v=c[m>>2]|0;i=f;return v|0}else{c[m>>2]=0;v=c[m>>2]|0;i=f;return v|0}}return 0}function xC(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[b>>2]|0)+200>>2]|0}function yC(f,g,h){f=f|0;g=g|0;h=h|0;var 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;n=i;i=i+48|0;m=n+20|0;t=n+16|0;j=n+32|0;u=n+30|0;s=n+28|0;o=n+26|0;q=n+35|0;v=n+34|0;l=n+24|0;x=n+12|0;r=n+8|0;p=n+4|0;w=n;c[t>>2]=f;b[j>>1]=g;b[u>>1]=h;a[v>>0]=0;b[l>>1]=b[u>>1]|0;c[x>>2]=(c[(c[(c[t>>2]|0)+52>>2]|0)+36>>2]|0)-4;c[r>>2]=(e[j>>1]|0)+(e[u>>1]|0);c[p>>2]=c[(c[t>>2]|0)+56>>2];if((e[(c[(c[t>>2]|0)+52>>2]|0)+22>>1]|0)&4)_E((c[p>>2]|0)+(e[j>>1]|0)|0,0,e[u>>1]|0|0)|0;a[q>>0]=a[(c[t>>2]|0)+6>>0]|0;b[s>>1]=(d[q>>0]|0)+1;if((d[(c[p>>2]|0)+((e[s>>1]|0)+1)>>0]|0|0)==0?(d[(c[p>>2]|0)+(e[s>>1]|0)>>0]|0|0)==0:0)b[o>>1]=0;else k=6;do if((k|0)==6){while(1){k=0;f=((d[(c[p>>2]|0)+(e[s>>1]|0)>>0]|0)<<8|(d[(c[p>>2]|0)+(e[s>>1]|0)+1>>0]|0))&65535;b[o>>1]=f;if((f&65535|0)>0)g=(e[o>>1]|0|0)<(e[j>>1]|0|0);else g=0;h=e[o>>1]|0;if(!g)break;if((h|0)<((e[s>>1]|0)+4|0)){k=10;break}b[s>>1]=b[o>>1]|0;k=6}if((k|0)==10){c[m>>2]=kj(53568)|0;f=c[m>>2]|0;i=n;return f|0}if(h>>>0>(c[x>>2]|0)>>>0){c[m>>2]=kj(53571)|0;f=c[m>>2]|0;i=n;return f|0}do if((e[o>>1]|0|0)!=0?((c[r>>2]|0)+3|0)>>>0>=(e[o>>1]|0)>>>0:0){a[v>>0]=(e[o>>1]|0)-(c[r>>2]|0);if((c[r>>2]|0)>>>0<=(e[o>>1]|0)>>>0){c[r>>2]=(e[o>>1]|0)+((d[(c[p>>2]|0)+((e[o>>1]|0)+2)>>0]|0)<<8|(d[(c[p>>2]|0)+((e[o>>1]|0)+2)+1>>0]|0));b[u>>1]=(c[r>>2]|0)-(e[j>>1]|0);b[o>>1]=(d[(c[p>>2]|0)+(e[o>>1]|0)>>0]|0)<<8|(d[(c[p>>2]|0)+(e[o>>1]|0)+1>>0]|0);break}c[m>>2]=kj(53582)|0;f=c[m>>2]|0;i=n;return f|0}while(0);do if((e[s>>1]|0|0)>((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|0){c[G>>2]=c[L>>2];c[I>>2]=c[H>>2];c[H>>2]=0}else{N=J;b=c[N+4>>2]|0;if(!((b|0)>0|(b|0)==0&(c[N>>2]|0)>>>0>2147483647|(c[K>>2]|0)==0)){c[u>>2]=c[J>>2];c[G>>2]=c[K>>2];c[I>>2]=c[J>>2];break}c[r>>2]=kj(57891)|0;N=c[r>>2]|0;i=o;return N|0}while(0);if((c[u>>2]|0)<=(e[(c[E>>2]|0)+10>>1]|0)){N=(c[B>>2]|0)+(c[u>>2]|0)|0;c[v>>2]=N;c[v>>2]=(c[v>>2]|0)<4?4:N;c[c[C>>2]>>2]=c[v>>2];c[w>>2]=c[u>>2];c[x>>2]=c[M>>2]}else{c[D>>2]=e[(c[E>>2]|0)+12>>1];c[v>>2]=(c[D>>2]|0)+((((c[u>>2]|0)-(c[D>>2]|0)|0)>>>0)%(((c[(c[(c[E>>2]|0)+52>>2]|0)+36>>2]|0)-4|0)>>>0)|0);if((c[v>>2]|0)>(e[(c[E>>2]|0)+10>>1]|0))c[v>>2]=c[D>>2];c[w>>2]=c[v>>2];c[c[C>>2]>>2]=(c[v>>2]|0)+(c[B>>2]|0)+4;c[x>>2]=(c[M>>2]|0)+((c[B>>2]|0)+(c[v>>2]|0))}c[z>>2]=(c[M>>2]|0)+(c[B>>2]|0);while(1){if((c[u>>2]|0)<=0){s=37;break}if(!(c[w>>2]|0)){c[s>>2]=c[F>>2];if(a[(c[A>>2]|0)+17>>0]|0)while(1){c[F>>2]=(c[F>>2]|0)+1;N=Pw(c[A>>2]|0,c[F>>2]|0)|0;if((N|0)==(c[F>>2]|0))continue;if((c[F>>2]|0)!=((((c[282]|0)>>>0)/((c[(c[A>>2]|0)+32>>2]|0)>>>0)|0)+1|0))break}c[p>>2]=uA(c[A>>2]|0,y,F,c[F>>2]|0,0)|0;if(((c[p>>2]|0)==0?(d[(c[A>>2]|0)+17>>0]|0)!=0:0)?(a[t>>0]=(c[s>>2]|0)!=0?4:3,yA(c[A>>2]|0,c[F>>2]|0,a[t>>0]|0,c[s>>2]|0,p),(c[p>>2]|0)!=0):0)Rk(c[y>>2]|0);if(c[p>>2]|0){s=26;break}ck(c[x>>2]|0,c[F>>2]|0);Rk(c[q>>2]|0);c[q>>2]=c[y>>2];c[x>>2]=c[(c[y>>2]|0)+56>>2];ck(c[x>>2]|0,0);c[z>>2]=(c[(c[y>>2]|0)+56>>2]|0)+4;c[w>>2]=(c[(c[A>>2]|0)+36>>2]|0)-4}c[v>>2]=c[u>>2];if((c[v>>2]|0)>(c[w>>2]|0))c[v>>2]=c[w>>2];if((c[I>>2]|0)>0){if((c[v>>2]|0)>(c[I>>2]|0))c[v>>2]=c[I>>2];dF(c[z>>2]|0,c[G>>2]|0,c[v>>2]|0)|0}else _E(c[z>>2]|0,0,c[v>>2]|0)|0;c[u>>2]=(c[u>>2]|0)-(c[v>>2]|0);c[z>>2]=(c[z>>2]|0)+(c[v>>2]|0);c[G>>2]=(c[G>>2]|0)+(c[v>>2]|0);c[I>>2]=(c[I>>2]|0)-(c[v>>2]|0);c[w>>2]=(c[w>>2]|0)-(c[v>>2]|0);if(c[I>>2]|0)continue;c[I>>2]=c[H>>2];c[G>>2]=c[L>>2]}if((s|0)==26){Rk(c[q>>2]|0);c[r>>2]=c[p>>2];N=c[r>>2]|0;i=o;return N|0}else if((s|0)==37){Rk(c[q>>2]|0);c[r>>2]=0;N=c[r>>2]|0;i=o;return N|0}return 0}function AC(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;e=d+8|0;g=d+4|0;f=d;c[e>>2]=a;c[g>>2]=b;c[f>>2]=c[(c[g>>2]|0)+56>>2];if(!(c[f>>2]|0)){i=d;return}Sz(c[e>>2]|0,c[f>>2]|0);hc(c[(c[f>>2]|0)+40>>2]|0);Xb(c[e>>2]|0,c[f>>2]|0);c[(c[g>>2]|0)+56>>2]=0;i=d;return}function BC(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0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2]=Bw(c[h>>2]|0,c[g>>2]|0,k,0)|0;if(c[p>>2]|0){c[o>>2]=c[p>>2];b=c[o>>2]|0;i=j;return b|0}c[p>>2]=gd(c[(c[k>>2]|0)+68>>2]|0)|0;if(c[p>>2]|0){Rk(c[k>>2]|0);c[o>>2]=c[p>>2];b=c[o>>2]|0;i=j;return b|0}}else c[k>>2]=c[t>>2];yA(c[h>>2]|0,c[g>>2]|0,1,0,p);if(c[p>>2]|0){Rk(c[k>>2]|0);c[o>>2]=c[p>>2];b=c[o>>2]|0;i=j;return b|0}c[p>>2]=bd(c[n>>2]|0,4,c[g>>2]|0)|0;if(c[p>>2]|0){Rk(c[k>>2]|0);c[o>>2]=c[p>>2];b=c[o>>2]|0;i=j;return b|0}}else{c[p>>2]=uA(f,k,g,1,0)|0;if(c[p>>2]|0){c[o>>2]=c[p>>2];b=c[o>>2]|0;i=j;return b|0}}if(c[m>>2]&1)c[l>>2]=13;else c[l>>2]=10;wB(c[k>>2]|0,c[l>>2]|0);_c(c[(c[k>>2]|0)+68>>2]|0);c[c[u>>2]>>2]=c[g>>2];c[o>>2]=0;b=c[o>>2]|0;i=j;return b|0}function CC(d,f,g,h,j){d=d|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;p=i;i=i+32|0;l=p+24|0;k=p+20|0;m=p+16|0;r=p+12|0;o=p+8|0;n=p+4|0;q=p;c[k>>2]=d;c[m>>2]=f;c[r>>2]=g;c[o>>2]=h;c[n>>2]=j;c[q>>2]=c[(c[k>>2]|0)+4>>2];if((c[r>>2]|0)!=0?((e[(c[q>>2]|0)+22>>1]|0)&1|0)!=0:0){c[l>>2]=8;d=c[l>>2]|0;i=p;return d|0}if((c[r>>2]|0)!=0?(DC(c[q>>2]|0),(c[(c[q>>2]|0)+80>>2]|0)==0):0){c[l>>2]=7;d=c[l>>2]|0;i=p;return d|0}if((c[m>>2]|0)==1?(Aw(c[q>>2]|0)|0)==0:0)c[m>>2]=0;c[(c[n>>2]|0)+60>>2]=c[m>>2];b[(c[n>>2]|0)+76>>1]=-1;c[(c[n>>2]|0)+16>>2]=c[o>>2];c[c[n>>2]>>2]=c[k>>2];c[(c[n>>2]|0)+4>>2]=c[q>>2];a[(c[n>>2]|0)+72>>0]=c[r>>2];c[(c[n>>2]|0)+8>>2]=c[(c[q>>2]|0)+8>>2];if(c[(c[n>>2]|0)+8>>2]|0)c[(c[(c[n>>2]|0)+8>>2]|0)+12>>2]=c[n>>2];c[(c[q>>2]|0)+8>>2]=c[n>>2];a[(c[n>>2]|0)+73>>0]=0;c[l>>2]=0;d=c[l>>2]|0;i=p;return d|0}function DC(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;if(c[(c[e>>2]|0)+80>>2]|0){i=d;return}b=Hg(c[(c[e>>2]|0)+32>>2]|0)|0;c[(c[e>>2]|0)+80>>2]=b;if(!(c[(c[e>>2]|0)+80>>2]|0)){i=d;return}b=c[(c[e>>2]|0)+80>>2]|0;a[b+0>>0]=0;a[b+1>>0]=0;a[b+2>>0]=0;a[b+3>>0]=0;a[b+4>>0]=0;a[b+5>>0]=0;a[b+6>>0]=0;a[b+7>>0]=0;e=(c[e>>2]|0)+80|0;c[e>>2]=(c[e>>2]|0)+4;i=d;return}function EC(){return 200}function FC(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;d=(c[d>>2]|0)+0|0;a=d+76|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(a|0));i=b;return}function GC(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;i=i+32|0;f=e+24|0;h=e+20|0;l=e+16|0;g=e+12|0;m=e+8|0;k=e+4|0;j=e;c[h>>2]=a;c[l>>2]=b;c[g>>2]=0;c[m>>2]=c[(c[h>>2]|0)+96>>2];a:do if((c[l>>2]|0)>(c[m>>2]|0)?(d[(c[h>>2]|0)+6>>0]|0|0)!=0:0){c[j>>2]=kc(c[(c[h>>2]|0)+92>>2]|0,(c[l>>2]|0)*48|0,0)|0;if(!(c[j>>2]|0)){c[f>>2]=7;a=c[f>>2]|0;i=e;return a|0}_E((c[j>>2]|0)+((c[m>>2]|0)*48|0)|0,0,((c[l>>2]|0)-(c[m>>2]|0)|0)*48|0)|0;c[(c[h>>2]|0)+92>>2]=c[j>>2];c[k>>2]=c[m>>2];while(1){if((c[k>>2]|0)>=(c[l>>2]|0))break a;c[(c[j>>2]|0)+((c[k>>2]|0)*48|0)+20>>2]=c[(c[h>>2]|0)+24>>2];if((c[c[(c[h>>2]|0)+64>>2]>>2]|0)!=0?(a=(c[h>>2]|0)+72|0,m=c[a+4>>2]|0,(m|0)>0|(m|0)==0&(c[a>>2]|0)>>>0>0):0){b=(c[h>>2]|0)+72|0;m=c[b+4>>2]|0;a=(c[j>>2]|0)+((c[k>>2]|0)*48|0)|0;c[a>>2]=c[b>>2];c[a+4>>2]=m}else{a=(c[j>>2]|0)+((c[k>>2]|0)*48|0)|0;c[a>>2]=c[(c[h>>2]|0)+148>>2];c[a+4>>2]=0}c[(c[j>>2]|0)+((c[k>>2]|0)*48|0)+24>>2]=c[(c[h>>2]|0)+52>>2];a=Vg(c[(c[h>>2]|0)+24>>2]|0)|0;c[(c[j>>2]|0)+((c[k>>2]|0)*48|0)+16>>2]=a;if(!(c[(c[j>>2]|0)+((c[k>>2]|0)*48|0)+16>>2]|0))break;if(ai(c[h>>2]|0)|0)HC(c[(c[h>>2]|0)+208>>2]|0,(c[j>>2]|0)+((c[k>>2]|0)*48|0)+28|0);c[(c[h>>2]|0)+96>>2]=(c[k>>2]|0)+1;c[k>>2]=(c[k>>2]|0)+1}c[f>>2]=7;a=c[f>>2]|0;i=e;return a|0}while(0);c[f>>2]=c[g>>2];a=c[f>>2]|0;i=e;return a|0}function HC(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;c[c[e>>2]>>2]=c[(c[f>>2]|0)+68>>2];c[(c[e>>2]|0)+4>>2]=c[(c[f>>2]|0)+76>>2];c[(c[e>>2]|0)+8>>2]=c[(c[f>>2]|0)+80>>2];c[(c[e>>2]|0)+12>>2]=c[(c[f>>2]|0)+104>>2];i=d;return}function IC(f){f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;h=g+16|0;j=g+12|0;l=g+8|0;k=g+4|0;m=g;c[j>>2]=f;if((c[(c[j>>2]|0)+44>>2]|0)>>>0>0){c[h>>2]=0;n=c[h>>2]|0;i=g;return n|0}c[l>>2]=c[(c[j>>2]|0)+12>>2];c[k>>2]=c[(c[l>>2]|0)+56>>2];c[m>>2]=gd(c[(c[l>>2]|0)+68>>2]|0)|0;if(c[m>>2]|0){c[h>>2]=c[m>>2];n=c[h>>2]|0;i=g;return n|0}else{n=(c[k>>2]|0)+0|0;m=34408|0;f=n+16|0;do{a[n>>0]=a[m>>0]|0;n=n+1|0;m=m+1|0}while((n|0)<(f|0));a[(c[k>>2]|0)+16>>0]=(c[(c[j>>2]|0)+32>>2]|0)>>>8;a[(c[k>>2]|0)+17>>0]=(c[(c[j>>2]|0)+32>>2]|0)>>>16;a[(c[k>>2]|0)+18>>0]=1;a[(c[k>>2]|0)+19>>0]=1;a[(c[k>>2]|0)+20>>0]=(c[(c[j>>2]|0)+32>>2]|0)-(c[(c[j>>2]|0)+36>>2]|0);a[(c[k>>2]|0)+21>>0]=64;a[(c[k>>2]|0)+22>>0]=32;a[(c[k>>2]|0)+23>>0]=32;n=(c[k>>2]|0)+24|0;f=n+76|0;do{a[n>>0]=0;n=n+1|0}while((n|0)<(f|0));wB(c[l>>2]|0,13);n=(c[j>>2]|0)+22|0;b[n>>1]=e[n>>1]|0|2;ck((c[k>>2]|0)+52|0,d[(c[j>>2]|0)+17>>0]|0);ck((c[k>>2]|0)+64|0,d[(c[j>>2]|0)+18>>0]|0);c[(c[j>>2]|0)+44>>2]=1;a[(c[k>>2]|0)+31>>0]=1;c[h>>2]=0;n=c[h>>2]|0;i=g;return n|0}return 0}function JC(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;h=i;i=i+48|0;l=h+24|0;g=h+20|0;k=h;j=h+16|0;n=h+12|0;m=h+8|0;o=h+28|0;c[g>>2]=b;b=k;c[b>>2]=e;c[b+4>>2]=f;if(0!=0?1:(c[k+4>>2]&-16777216|0)!=0){a[(c[g>>2]|0)+8>>0]=c[k>>2];e=k;e=cF(c[e>>2]|0,c[e+4>>2]|0,8)|0;b=k;c[b>>2]=e;c[b+4>>2]=D;c[j>>2]=7;while(1){if((c[j>>2]|0)<0)break;a[(c[g>>2]|0)+(c[j>>2]|0)>>0]=c[k>>2]&127|128;e=k;e=cF(c[e>>2]|0,c[e+4>>2]|0,7)|0;b=k;c[b>>2]=e;c[b+4>>2]=D;c[j>>2]=(c[j>>2]|0)+ -1}c[l>>2]=9;b=c[l>>2]|0;i=h;return b|0}c[m>>2]=0;do{b=(c[k>>2]&127|128)&255;e=c[m>>2]|0;c[m>>2]=e+1;a[o+e>>0]=b;e=k;e=cF(c[e>>2]|0,c[e+4>>2]|0,7)|0;b=k;c[b>>2]=e;c[b+4>>2]=D;b=k}while((c[b>>2]|0)!=0|(c[b+4>>2]|0)!=0);a[o>>0]=(d[o>>0]|0)&127;c[j>>2]=0;c[n>>2]=(c[m>>2]|0)-1;while(1){if((c[n>>2]|0)<0)break;a[(c[g>>2]|0)+(c[j>>2]|0)>>0]=a[o+(c[n>>2]|0)>>0]|0;c[n>>2]=(c[n>>2]|0)+ -1;c[j>>2]=(c[j>>2]|0)+1}c[l>>2]=c[m>>2];b=c[l>>2]|0;i=h;return b|0}function KC(a,b){a=a|0;b=b|0;var d=0,f=0,g=0;f=i;i=i+16|0;d=f+4|0;g=f;c[d>>2]=a;c[g>>2]=b;c[c[g>>2]>>2]=e[(c[d>>2]|0)+40>>1];i=f;return c[(c[d>>2]|0)+32>>2]|0}function LC(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;e=d+12|0;g=d+8|0;h=d+4|0;f=d;c[g>>2]=b;b=(c[g>>2]|0)+48|0;c[f>>2]=Gw(c[c[g>>2]>>2]|0,0,c[b>>2]|0,c[b+4>>2]|0,0,h)|0;if(c[f>>2]|0){c[e>>2]=c[f>>2];h=c[e>>2]|0;i=d;return h|0}if(c[h>>2]|0){c[e>>2]=kj(65954)|0;h=c[e>>2]|0;i=d;return h|0}else{a[(c[g>>2]|0)+26>>0]=0;c[(c[g>>2]|0)+60>>2]=0;c[e>>2]=0;h=c[e>>2]|0;i=d;return h|0}return 0}function MC(d){d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+4|0;g=e;c[g>>2]=d;if(!(Lm(c[(c[g>>2]|0)+16>>2]|0,c[g>>2]|0,c[(c[g>>2]|0)+12>>2]|0,a[(c[g>>2]|0)+10>>0]|0)|0)){b[f>>1]=0;g=b[f>>1]|0;i=e;return g|0}if(!(wg(c[(c[g>>2]|0)+16>>2]|0,c[g>>2]|0,c[(c[g>>2]|0)+12>>2]|0,a[(c[g>>2]|0)+10>>0]|0)|0)){b[f>>1]=4;g=b[f>>1]|0;i=e;return g|0}else{b[f>>1]=8;g=b[f>>1]|0;i=e;return g|0}return 0}function NC(d){d=d|0;var f=0,g=0,h=0;f=i;i=i+16|0;g=f+4|0;h=f;c[h>>2]=d;if(Dk(c[h>>2]|0,(c[(c[h>>2]|0)+12>>2]|0)+2|0,1)|0){c[g>>2]=7;h=c[g>>2]|0;i=f;return h|0}else{a[(c[(c[h>>2]|0)+16>>2]|0)+(c[(c[h>>2]|0)+12>>2]|0)>>0]=0;a[(c[(c[h>>2]|0)+16>>2]|0)+((c[(c[h>>2]|0)+12>>2]|0)+1)>>0]=0;h=(c[h>>2]|0)+8|0;b[h>>1]=e[h>>1]|0|512;c[g>>2]=0;h=c[g>>2]|0;i=f;return h|0}return 0}function OC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;e=i;i=i+32|0;b=e+16|0;h=e+12|0;g=e+8|0;f=e+4|0;d=e;c[b>>2]=a;if(c[(c[b>>2]|0)+176>>2]|0){c[h>>2]=c[(c[b>>2]|0)+176>>2];while(1){a=c[h>>2]|0;if(!(c[(c[h>>2]|0)+4>>2]|0))break;c[h>>2]=c[a+4>>2]}_y(a)|0;c[(c[b>>2]|0)+176>>2]=0;c[(c[b>>2]|0)+184>>2]=0}a:do if(c[(c[b>>2]|0)+56>>2]|0){c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[(c[b>>2]|0)+36>>2]|0))break a;c[f>>2]=c[(c[(c[b>>2]|0)+56>>2]|0)+(c[g>>2]<<2)>>2];if(c[f>>2]|0){Az(c[b>>2]|0,c[f>>2]|0);c[(c[(c[b>>2]|0)+56>>2]|0)+(c[g>>2]<<2)>>2]=0}c[g>>2]=(c[g>>2]|0)+1}}while(0);if(c[(c[b>>2]|0)+8>>2]|0)hu((c[(c[b>>2]|0)+8>>2]|0)+40|0,c[(c[b>>2]|0)+28>>2]|0);while(1){f=c[b>>2]|0;if(!(c[(c[b>>2]|0)+180>>2]|0))break;c[d>>2]=c[f+180>>2];c[(c[b>>2]|0)+180>>2]=c[(c[d>>2]|0)+4>>2];WC(c[d>>2]|0)}if(!(c[f+204>>2]|0)){i=e;return}hz(c[b>>2]|0,-1,0);i=e;return}function PC(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0;g=i;i=i+112|0;x=g+8|0;f=g+104|0;h=g+100|0;F=g+96|0;j=g+92|0;B=g+88|0;s=g+84|0;C=g+80|0;E=g+76|0;l=g+72|0;k=g+68|0;o=g+64|0;q=g+60|0;m=g+56|0;A=g+52|0;n=g+48|0;d=g;y=g+44|0;u=g+40|0;w=g+36|0;v=g+32|0;t=g+28|0;r=g+24|0;p=g+20|0;z=g+16|0;c[h>>2]=a;c[F>>2]=b;c[B>>2]=0;c[s>>2]=0;c[C>>2]=0;c[s>>2]=QC(c[h>>2]|0,c[F>>2]|0)|0;c[j>>2]=0;while(1){if(c[s>>2]|0)break;if((c[j>>2]|0)>=(c[(c[h>>2]|0)+20>>2]|0))break;c[E>>2]=c[(c[(c[h>>2]|0)+16>>2]|0)+(c[j>>2]<<4)+4>>2];if(Tk(c[E>>2]|0)|0){c[C>>2]=1;if((c[j>>2]|0)!=1)c[B>>2]=(c[B>>2]|0)+1;Pc(c[E>>2]|0);c[s>>2]=dk(Sb(c[E>>2]|0)|0)|0}c[j>>2]=(c[j>>2]|0)+1}if(c[s>>2]|0){c[f>>2]=c[s>>2];F=c[f>>2]|0;i=g;return F|0}if(((c[C>>2]|0)!=0?(c[(c[h>>2]|0)+192>>2]|0)!=0:0)?(c[s>>2]=ub[c[(c[h>>2]|0)+192>>2]&31](c[(c[h>>2]|0)+188>>2]|0)|0,(c[s>>2]|0)!=0):0){c[f>>2]=531;F=c[f>>2]|0;i=g;return F|0}F=0==(Mb(sg(c[(c[(c[h>>2]|0)+16>>2]|0)+4>>2]|0)|0)|0);if(F|(c[B>>2]|0)<=1){c[j>>2]=0;while(1){if(c[s>>2]|0)break;if((c[j>>2]|0)>=(c[(c[h>>2]|0)+20>>2]|0))break;c[l>>2]=c[(c[(c[h>>2]|0)+16>>2]|0)+(c[j>>2]<<4)+4>>2];if(c[l>>2]|0)c[s>>2]=nd(c[l>>2]|0,0)|0;c[j>>2]=(c[j>>2]|0)+1}c[j>>2]=0;while(1){if(c[s>>2]|0)break;if((c[j>>2]|0)>=(c[(c[h>>2]|0)+20>>2]|0))break;c[k>>2]=c[(c[(c[h>>2]|0)+16>>2]|0)+(c[j>>2]<<4)+4>>2];if(c[k>>2]|0)c[s>>2]=md(c[k>>2]|0,0)|0;c[j>>2]=(c[j>>2]|0)+1}if(!(c[s>>2]|0))RC(c[h>>2]|0)|0}else{c[o>>2]=c[c[h>>2]>>2];c[q>>2]=0;c[m>>2]=0;c[A>>2]=sg(c[(c[(c[h>>2]|0)+16>>2]|0)+4>>2]|0)|0;c[n>>2]=0;F=d;c[F>>2]=0;c[F+4>>2]=0;c[u>>2]=0;c[w>>2]=Mb(c[A>>2]|0)|0;F=c[h>>2]|0;c[x>>2]=c[A>>2];c[m>>2]=Te(F,34424,x)|0;if(!(c[m>>2]|0)){c[f>>2]=7;F=c[f>>2]|0;i=g;return F|0}do{if(c[u>>2]|0){if((c[u>>2]|0)>100){e=34;break}if((c[u>>2]|0)==1){c[x>>2]=c[m>>2];tc(13,34456,x)}}c[u>>2]=(c[u>>2]|0)+1;vc(4,v);F=(c[m>>2]|0)+(c[w>>2]|0)|0;a=c[v>>2]&255;c[x>>2]=(c[v>>2]|0)>>>8&16777215;c[x+4>>2]=a;sc(13,F,34472,x)|0;c[s>>2]=vi(c[o>>2]|0,c[m>>2]|0,0,y)|0}while((c[s>>2]|0)==0&(c[y>>2]|0)!=0);if((e|0)==34){c[x>>2]=c[m>>2];tc(13,34440,x);_h(c[o>>2]|0,c[m>>2]|0,0)|0}if(!(c[s>>2]|0))c[s>>2]=PB(c[o>>2]|0,c[m>>2]|0,n,16406,0)|0;if(c[s>>2]|0){Xb(c[h>>2]|0,c[m>>2]|0);c[f>>2]=c[s>>2];F=c[f>>2]|0;i=g;return F|0}c[j>>2]=0;while(1){if((c[j>>2]|0)>=(c[(c[h>>2]|0)+20>>2]|0))break;c[t>>2]=c[(c[(c[h>>2]|0)+16>>2]|0)+(c[j>>2]<<4)+4>>2];if((Tk(c[t>>2]|0)|0)!=0?(c[r>>2]=SC(c[t>>2]|0)|0,(c[r>>2]|0)!=0):0){if((c[q>>2]|0)==0?(TC(c[t>>2]|0)|0)==0:0)c[q>>2]=1;E=c[n>>2]|0;b=c[r>>2]|0;F=(Mb(c[r>>2]|0)|0)+1|0;a=d;c[s>>2]=id(E,b,F,c[a>>2]|0,c[a+4>>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2]|0)|0}c[f>>2]=c[s>>2];F=c[f>>2]|0;i=g;return F|0}function QC(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;d=e+24|0;k=e+20|0;l=e+16|0;f=e+12|0;g=e+8|0;h=e+4|0;j=e;c[d>>2]=a;c[k>>2]=b;c[f>>2]=0;c[g>>2]=c[(c[d>>2]|0)+328>>2];c[(c[d>>2]|0)+328>>2]=0;c[l>>2]=0;while(1){if(c[f>>2]|0){h=8;break}if((c[l>>2]|0)>=(c[(c[d>>2]|0)+304>>2]|0)){h=8;break}c[j>>2]=c[(c[(c[g>>2]|0)+(c[l>>2]<<2)>>2]|0)+8>>2];if((c[j>>2]|0)!=0?(a=c[(c[c[j>>2]>>2]|0)+60>>2]|0,c[h>>2]=a,(a|0)!=0):0){c[f>>2]=ub[c[h>>2]&31](c[j>>2]|0)|0;Hz(c[k>>2]|0,c[j>>2]|0)}c[l>>2]=(c[l>>2]|0)+1}if((h|0)==8){c[(c[d>>2]|0)+328>>2]=c[g>>2];i=e;return c[f>>2]|0}return 0}function RC(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;Vk(c[d>>2]|0,64);i=b;return 0}function SC(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=VC(c[c[(c[d>>2]|0)+4>>2]>>2]|0)|0;i=b;return a|0}function TC(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;f=d+8|0;e=d+4|0;b=d;c[f>>2]=a;c[e>>2]=c[(c[f>>2]|0)+4>>2];Pc(c[f>>2]|0);c[b>>2]=UC(c[c[e>>2]>>2]|0)|0;i=d;return c[b>>2]|0}function UC(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;c[b>>2]=a;i=e;return d[(c[b>>2]|0)+7>>0]|0|0}function VC(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[b>>2]|0)+172>>2]|0}function WC(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=i;i=i+16|0;d=e+12|0;f=e+8|0;b=e+4|0;g=e;c[d>>2]=a;c[b>>2]=(c[d>>2]|0)+72;c[g>>2]=(c[b>>2]|0)+((c[(c[d>>2]|0)+60>>2]|0)*40|0);c[f>>2]=0;while(1){if((c[f>>2]|0)>=(c[(c[d>>2]|0)+64>>2]|0))break;Az(c[c[d>>2]>>2]|0,c[(c[g>>2]|0)+(c[f>>2]<<2)>>2]|0);c[f>>2]=(c[f>>2]|0)+1}hu(c[b>>2]|0,c[(c[d>>2]|0)+60>>2]|0);Xb(c[c[c[d>>2]>>2]>>2]|0,c[d>>2]|0);i=e;return}function XC(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[34600+(c[b>>2]<<2)>>2]|0}function YC(d,f,g){d=d|0;f=f|0;g=g|0;var j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;n=i;i=i+64|0;v=n;z=n+60|0;l=n+56|0;m=n+52|0;j=n+48|0;u=n+44|0;s=n+40|0;o=n+36|0;q=n+32|0;t=n+28|0;r=n+24|0;y=n+20|0;A=n+16|0;w=n+12|0;x=n+8|0;c[z>>2]=d;c[l>>2]=f;c[m>>2]=g;c[j>>2]=c[l>>2];do switch(a[(c[z>>2]|0)+1>>0]|0){case-10:{c[x>>2]=c[(c[(c[z>>2]|0)+16>>2]|0)+8>>2];f=c[m>>2]|0;d=c[l>>2]|0;A=c[c[x>>2]>>2]|0;c[v>>2]=c[x>>2];c[v+4>>2]=A;sc(f,d,34560,v)|0;d=c[j>>2]|0;i=n;return d|0};case-5:{c[A>>2]=c[(c[z>>2]|0)+16>>2];f=c[m>>2]|0;d=c[l>>2]|0;z=b[c[A>>2]>>1]|0;c[v>>2]=c[(c[A>>2]|0)+24>>2];c[v+4>>2]=z;sc(f,d,34536,v)|0;d=c[j>>2]|0;i=n;return d|0};case-19:{a[c[l>>2]>>0]=0;d=c[j>>2]|0;i=n;return d|0};case-4:{c[y>>2]=c[(c[z>>2]|0)+16>>2];f=c[m>>2]|0;d=c[l>>2]|0;c[v>>2]=c[c[y>>2]>>2];sc(f,d,34528,v)|0;d=c[j>>2]|0;i=n;return d|0};case-13:{f=c[m>>2]|0;d=c[l>>2]|0;y=c[(c[z>>2]|0)+16>>2]|0;z=c[y+4>>2]|0;A=v;c[A>>2]=c[y>>2];c[A+4>>2]=z;sc(f,d,9456,v)|0;d=c[j>>2]|0;i=n;return d|0};case-6:{c[o>>2]=c[(c[z>>2]|0)+16>>2];f=c[m>>2]|0;d=c[l>>2]|0;c[v>>2]=e[(c[o>>2]|0)+6>>1];sc(f,d,34496,v)|0;c[u>>2]=Mb(c[l>>2]|0)|0;c[s>>2]=0;while(1){if((c[s>>2]|0)>=(e[(c[o>>2]|0)+6>>1]|0))break;c[q>>2]=c[(c[o>>2]|0)+20+(c[s>>2]<<2)>>2];if(c[q>>2]|0)v=c[c[q>>2]>>2]|0;else v=34504;c[t>>2]=v;c[r>>2]=Mb(c[t>>2]|0)|0;if((c[r>>2]|0)==6?(TE(c[t>>2]|0,3320,6)|0)==0:0){c[t>>2]=34512;c[r>>2]=1}v=c[u>>2]|0;if(((c[u>>2]|0)+(c[r>>2]|0)|0)>((c[m>>2]|0)-6|0)){p=10;break}c[u>>2]=v+1;a[(c[l>>2]|0)+v>>0]=44;if(a[(c[(c[o>>2]|0)+16>>2]|0)+(c[s>>2]|0)>>0]|0){d=c[u>>2]|0;c[u>>2]=d+1;a[(c[l>>2]|0)+d>>0]=45}dF((c[l>>2]|0)+(c[u>>2]|0)|0,c[t>>2]|0,(c[r>>2]|0)+1|0)|0;c[u>>2]=(c[u>>2]|0)+(c[r>>2]|0);c[s>>2]=(c[s>>2]|0)+1}if((p|0)==10){d=(c[l>>2]|0)+v|0;a[d+0>>0]=a[34520]|0;a[d+1>>0]=a[34521]|0;a[d+2>>0]=a[34522]|0;a[d+3>>0]=a[34523]|0}d=c[u>>2]|0;c[u>>2]=d+1;a[(c[l>>2]|0)+d>>0]=41;a[(c[l>>2]|0)+(c[u>>2]|0)>>0]=0;d=c[j>>2]|0;i=n;return d|0};case-8:{c[w>>2]=c[(c[z>>2]|0)+16>>2];o=c[w>>2]|0;if(e[(c[w>>2]|0)+8>>1]&2){c[j>>2]=c[o+16>>2];d=c[j>>2]|0;i=n;return d|0}if(e[o+8>>1]&4){f=c[m>>2]|0;d=c[l>>2]|0;y=c[w>>2]|0;z=c[y+4>>2]|0;A=v;c[A>>2]=c[y>>2];c[A+4>>2]=z;sc(f,d,9456,v)|0;d=c[j>>2]|0;i=n;return d|0}if(e[(c[w>>2]|0)+8>>1]&8){f=c[m>>2]|0;d=c[l>>2]|0;h[k>>3]=+h[c[w>>2]>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];sc(f,d,9448,v)|0;d=c[j>>2]|0;i=n;return d|0}if(e[(c[w>>2]|0)+8>>1]&1){sc(c[m>>2]|0,c[l>>2]|0,9840,v)|0;d=c[j>>2]|0;i=n;return d|0}else{c[j>>2]=34552;d=c[j>>2]|0;i=n;return d|0}};case-14:{f=c[m>>2]|0;d=c[l>>2]|0;c[v>>2]=c[(c[z>>2]|0)+16>>2];sc(f,d,34544,v)|0;d=c[j>>2]|0;i=n;return d|0};case-18:{sc(c[m>>2]|0,c[l>>2]|0,34592,v)|0;d=c[j>>2]|0;i=n;return d|0};case-12:{f=c[m>>2]|0;d=c[l>>2]|0;h[k>>3]=+h[c[(c[z>>2]|0)+16>>2]>>3];c[v>>2]=c[k>>2];c[v+4>>2]=c[k+4>>2];sc(f,d,9448,v)|0;d=c[j>>2]|0;i=n;return d|0};case-15:{sc(c[m>>2]|0,c[l>>2]|0,34576,v)|0;d=c[j>>2]|0;i=n;return d|0};default:{c[j>>2]=c[(c[z>>2]|0)+16>>2];if(c[j>>2]|0){d=c[j>>2]|0;i=n;return d|0}c[j>>2]=c[l>>2];a[c[l>>2]>>0]=0;d=c[j>>2]|0;i=n;return d|0}}while(0);return 0}function ZC(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+16|0;g=f+8|0;h=f;c[g>>2]=a;a=h;c[a>>2]=d;c[a+4>>2]=e;_d(c[g>>2]|0);e=h;d=c[e+4>>2]|0;a=c[g>>2]|0;c[a>>2]=c[e>>2];c[a+4>>2]=d;b[(c[g>>2]|0)+8>>1]=4;i=f;return}function _C(f){f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+4|0;g=h;k=h+10|0;l=h+9|0;m=h+8|0;c[j>>2]=f;c[g>>2]=0;a[k>>0]=0;if((c[(c[j>>2]|0)+12>>2]|0)>1){a[l>>0]=a[c[(c[j>>2]|0)+16>>2]>>0]|0;a[m>>0]=a[(c[(c[j>>2]|0)+16>>2]|0)+1>>0]|0;if((d[l>>0]|0)==254?(d[m>>0]|0)==255:0)a[k>>0]=3;if((d[l>>0]|0)==255?(d[m>>0]|0)==254:0)a[k>>0]=2}if(!(a[k>>0]|0)){m=c[g>>2]|0;i=h;return m|0}c[g>>2]=Ak(c[j>>2]|0)|0;if(c[g>>2]|0){m=c[g>>2]|0;i=h;return m|0}m=(c[j>>2]|0)+12|0;c[m>>2]=(c[m>>2]|0)-2;eF(c[(c[j>>2]|0)+16>>2]|0,(c[(c[j>>2]|0)+16>>2]|0)+2|0,c[(c[j>>2]|0)+12>>2]|0)|0;a[(c[(c[j>>2]|0)+16>>2]|0)+(c[(c[j>>2]|0)+12>>2]|0)>>0]=0;a[(c[(c[j>>2]|0)+16>>2]|0)+((c[(c[j>>2]|0)+12>>2]|0)+1)>>0]=0;m=(c[j>>2]|0)+8|0;b[m>>1]=e[m>>1]|512;a[(c[j>>2]|0)+10>>0]=a[k>>0]|0;m=c[g>>2]|0;i=h;return m|0}function $C(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0;j=i;i=i+16|0;h=j+4|0;k=j;l=j+8|0;c[k>>2]=f;a[l>>0]=g;g=c[k>>2]|0;if((e[(c[k>>2]|0)+8>>1]|0)&18){f=g+8|0;b[f>>1]=e[f>>1]|0|2;if((e[(c[k>>2]|0)+8>>1]|0)&16384)Dd(c[k>>2]|0)|0;if((d[(c[k>>2]|0)+10>>0]|0|0)!=((d[l>>0]|0)&-9|0))yk(c[k>>2]|0,(d[l>>0]|0)&-9)|0;if((((d[l>>0]|0)&8|0)!=0?1==(1&c[(c[k>>2]|0)+16>>2]|0):0)?(Ak(c[k>>2]|0)|0)!=0:0){c[h>>2]=0;f=c[h>>2]|0;i=j;return f|0}dz(c[k>>2]|0)|0}else Kp(g,a[l>>0]|0,0)|0;if((d[(c[k>>2]|0)+10>>0]|0|0)==((d[l>>0]|0)&-9|0)){c[h>>2]=c[(c[k>>2]|0)+16>>2];f=c[h>>2]|0;i=j;return f|0}else{c[h>>2]=0;f=c[h>>2]|0;i=j;return f|0}return 0}function aD(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;if((e[(c[b>>2]|0)+8>>1]|0)&9312)gn(c[b>>2]|0);if(!(c[(c[b>>2]|0)+24>>2]|0)){b=c[b>>2]|0;b=b+16|0;c[b>>2]=0;i=d;return}Xb(c[(c[b>>2]|0)+32>>2]|0,c[(c[b>>2]|0)+20>>2]|0);c[(c[b>>2]|0)+24>>2]=0;b=c[b>>2]|0;b=b+16|0;c[b>>2]=0;i=d;return}function bD(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=c[c[d>>2]>>2];Xb(c[e>>2]|0,c[(c[d>>2]|0)+44>>2]|0);c[(c[d>>2]|0)+44>>2]=0;c[(c[d>>2]|0)+20>>2]=0;i=b;return}function cD(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;a[(c[e>>2]|0)+64>>0]=0;Nc(c[e>>2]|0,7);i=d;return 7}function dD(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;h=f+12|0;g=f+8|0;k=f+4|0;j=f;c[h>>2]=b;c[g>>2]=d;c[k>>2]=e;if(!(c[g>>2]|0)){d=c[h>>2]|0;b=c[g>>2]|0;Xb(d,b);i=f;return}c[j>>2]=c[g>>2];while(1){if((c[j>>2]|0)>>>0>=((c[g>>2]|0)+((c[k>>2]|0)*20|0)|0)>>>0)break;Oy(c[h>>2]|0,a[(c[j>>2]|0)+1>>0]|0,c[(c[j>>2]|0)+16>>2]|0);c[j>>2]=(c[j>>2]|0)+20}d=c[h>>2]|0;b=c[g>>2]|0;Xb(d,b);i=f;return}function eD(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;_g(c[(c[d>>2]|0)+60>>2]|0);c[(c[d>>2]|0)+60>>2]=0;i=b;return}function fD(b){b=b|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;h=e;c[f>>2]=b;c[g>>2]=c[(c[f>>2]|0)+4>>2];c[h>>2]=c[c[f>>2]>>2];a[(c[g>>2]|0)+19>>0]=0;if((d[(c[f>>2]|0)+8>>0]|0|0)>0?(c[(c[h>>2]|0)+152>>2]|0)>1:0){gD(c[f>>2]|0);a[(c[f>>2]|0)+8>>0]=1;i=e;return}if((d[(c[f>>2]|0)+8>>0]|0|0)!=0?(hD(c[f>>2]|0),h=(c[g>>2]|0)+40|0,c[h>>2]=(c[h>>2]|0)+ -1,0==(c[(c[g>>2]|0)+40>>2]|0)):0)a[(c[g>>2]|0)+20>>0]=0;a[(c[f>>2]|0)+8>>0]=0;Sk(c[g>>2]|0);i=e;return}function gD(d){d=d|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;j=f+8|0;h=f+4|0;g=f;c[j>>2]=d;c[h>>2]=c[(c[j>>2]|0)+4>>2];if((c[(c[h>>2]|0)+76>>2]|0)!=(c[j>>2]|0)){i=f;return}c[(c[h>>2]|0)+76>>2]=0;j=(c[h>>2]|0)+22|0;b[j>>1]=(e[j>>1]|0)&-97;c[g>>2]=c[(c[h>>2]|0)+72>>2];while(1){if(!(c[g>>2]|0))break;a[(c[g>>2]|0)+8>>0]=1;c[g>>2]=c[(c[g>>2]|0)+12>>2]}i=f;return}function hD(a){a=a|0;var d=0,f=0,g=0,h=0,j=0;f=i;i=i+16|0;g=f+12|0;d=f+8|0;h=f+4|0;j=f;c[g>>2]=a;c[d>>2]=c[(c[g>>2]|0)+4>>2];c[h>>2]=(c[d>>2]|0)+72;while(1){if(!(c[c[h>>2]>>2]|0))break;c[j>>2]=c[c[h>>2]>>2];a=(c[j>>2]|0)+12|0;if((c[c[j>>2]>>2]|0)!=(c[g>>2]|0)){c[h>>2]=a;continue}c[c[h>>2]>>2]=c[a>>2];if((c[(c[j>>2]|0)+4>>2]|0)==1)continue;hc(c[j>>2]|0)}h=c[d>>2]|0;if((c[(c[d>>2]|0)+76>>2]|0)==(c[g>>2]|0)){c[h+76>>2]=0;a=(c[d>>2]|0)+22|0;b[a>>1]=(e[a>>1]|0)&-97;i=f;return}if((c[h+40>>2]|0)!=2){i=f;return}a=(c[d>>2]|0)+22|0;b[a>>1]=(e[a>>1]|0)&-65;i=f;return}function iD(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;i=i+32|0;d=e+28|0;h=e+24|0;f=e+20|0;g=e+16|0;j=e+12|0;k=e+8|0;l=e+4|0;m=e;c[h>>2]=b;c[f>>2]=0;c[g>>2]=c[c[h>>2]>>2];sA(c[h>>2]|0);do if(!(a[(c[h>>2]|0)+18>>0]|0)){c[m>>2]=Aw(c[h>>2]|0)|0;b=Pw(c[h>>2]|0,c[m>>2]|0)|0;if((b|0)!=(c[m>>2]|0)?(c[m>>2]|0)!=((((c[282]|0)>>>0)/((c[(c[h>>2]|0)+32>>2]|0)>>>0)|0)+1|0):0){c[k>>2]=Hh((c[(c[(c[h>>2]|0)+12>>2]|0)+56>>2]|0)+36|0)|0;c[j>>2]=rA(c[h>>2]|0,c[m>>2]|0,c[k>>2]|0)|0;if((c[j>>2]|0)>>>0>(c[m>>2]|0)>>>0){c[d>>2]=kj(55475)|0;m=c[d>>2]|0;i=e;return m|0}if((c[j>>2]|0)>>>0<(c[m>>2]|0)>>>0)c[f>>2]=Hy(c[h>>2]|0,0,0)|0;c[l>>2]=c[m>>2];while(1){if(!((c[f>>2]|0)==0?(c[l>>2]|0)>>>0>(c[j>>2]|0)>>>0:0))break;c[f>>2]=tA(c[h>>2]|0,c[j>>2]|0,c[l>>2]|0,1)|0;c[l>>2]=(c[l>>2]|0)+ -1}if(((c[f>>2]|0)==101|(c[f>>2]|0)==0)&(c[k>>2]|0)>>>0>0){c[f>>2]=gd(c[(c[(c[h>>2]|0)+12>>2]|0)+68>>2]|0)|0;ck((c[(c[(c[h>>2]|0)+12>>2]|0)+56>>2]|0)+32|0,0);ck((c[(c[(c[h>>2]|0)+12>>2]|0)+56>>2]|0)+36|0,0);ck((c[(c[(c[h>>2]|0)+12>>2]|0)+56>>2]|0)+28|0,c[j>>2]|0);a[(c[h>>2]|0)+19>>0]=1;c[(c[h>>2]|0)+44>>2]=c[j>>2]}if(!(c[f>>2]|0))break;Th(c[g>>2]|0)|0;break}c[d>>2]=kj(55470)|0;m=c[d>>2]|0;i=e;return m|0}while(0);c[d>>2]=c[f>>2];m=c[d>>2]|0;i=e;return m|0}function jD(b){b=b|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;h=e;c[g>>2]=b;c[h>>2]=0;b=c[g>>2]|0;if(c[(c[g>>2]|0)+40>>2]|0){c[f>>2]=c[b+40>>2];b=c[f>>2]|0;i=e;return b|0}if(((d[b+16>>0]|0|0)==2?(d[(c[g>>2]|0)+4>>0]|0|0)!=0:0)?(d[(c[g>>2]|0)+5>>0]|0|0)==1:0){a[(c[g>>2]|0)+16>>0]=1;c[f>>2]=0;b=c[f>>2]|0;i=e;return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2]=Xh(c[(c[g>>2]|0)+64>>2]|0,c[p>>2]|0,c[p+4>>2]|0)|0}c[f>>2]=c[j>>2];p=c[f>>2]|0;i=l;return p|0}c[f>>2]=c[j>>2];p=c[f>>2]|0;i=l;return p|0}c[f>>2]=0;p=c[f>>2]|0;i=l;return p|0}function mD(f){f=f|0;var g=0,h=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;k=i;i=i+48|0;s=k+44|0;j=k+40|0;t=k+36|0;l=k+32|0;g=k+28|0;m=k+24|0;p=k+20|0;o=k+16|0;u=k+12|0;r=k+8|0;q=k+4|0;n=k;c[s>>2]=f;c[j>>2]=0;c[g>>2]=0;c[p>>2]=0;c[o>>2]=c[(c[s>>2]|0)+16>>2];c[u>>2]=((c[(c[o>>2]|0)+148>>2]|0)>>>0)/((c[(c[o>>2]|0)+152>>2]|0)>>>0)|0;f=(c[o>>2]|0)+20|0;a[f>>0]=d[f>>0]|0|4;c[l>>2]=((c[(c[s>>2]|0)+20>>2]|0)-1&~((c[u>>2]|0)-1))+1;c[t>>2]=c[(c[o>>2]|0)+24>>2];do if((c[(c[s>>2]|0)+20>>2]|0)>>>0<=(c[t>>2]|0)>>>0)if(((c[l>>2]|0)+(c[u>>2]|0)-1|0)>>>0>(c[t>>2]|0)>>>0){c[g>>2]=(c[t>>2]|0)+1-(c[l>>2]|0);break}else{c[g>>2]=c[u>>2];break}else c[g>>2]=(c[(c[s>>2]|0)+20>>2]|0)-(c[l>>2]|0)+1;while(0);c[m>>2]=0;while(1){if(!((c[j>>2]|0)==0?(c[m>>2]|0)<(c[g>>2]|0):0))break;c[r>>2]=(c[l>>2]|0)+(c[m>>2]|0);if((c[r>>2]|0)!=(c[(c[s>>2]|0)+20>>2]|0)?(Yg(c[(c[o>>2]|0)+56>>2]|0,c[r>>2]|0)|0)!=0:0){f=Hi(c[o>>2]|0,c[r>>2]|0)|0;c[q>>2]=f;if(f){if((e[(c[q>>2]|0)+24>>1]|0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]|0)+20>>2]|0)|0;a=qk(c[f>>2]|0,c[(c[k>>2]|0)+20>>2]|0)|0;c[l>>2]=c[l>>2]|a;if(!(c[l>>2]|0))break;c[h>>2]=c[l>>2];a=c[h>>2]|0;i=j;return a|0}if((d[(c[f>>2]|0)+16>>0]|0|0)!=4){a=(c[k>>2]|0)+24|0;b[a>>1]=e[a>>1]|0|4}}while(0);if((c[(c[f>>2]|0)+96>>2]|0)>0?(Xj(c[k>>2]|0)|0)!=0:0)c[l>>2]=Yj(c[k>>2]|0)|0}if((c[(c[f>>2]|0)+24>>2]|0)>>>0<(c[(c[k>>2]|0)+20>>2]|0)>>>0)c[(c[f>>2]|0)+24>>2]=c[(c[k>>2]|0)+20>>2];c[h>>2]=c[l>>2];a=c[h>>2]|0;i=j;return a|0}function oD(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;f=e+16|0;h=e+12|0;g=e+8|0;j=e+4|0;k=e;c[h>>2]=b;c[g>>2]=0;c[j>>2]=c[c[h>>2]>>2];b=c[h>>2]|0;if(c[(c[h>>2]|0)+40>>2]|0){c[f>>2]=c[b+40>>2];b=c[f>>2]|0;i=e;return b|0}if((ai(b)|0)==0?(d[(c[h>>2]|0)+5>>0]|0|0)!=2:0){b=Vg(c[(c[h>>2]|0)+24>>2]|0)|0;c[(c[h>>2]|0)+56>>2]=b;if(!(c[(c[h>>2]|0)+56>>2]|0)){c[f>>2]=7;b=c[f>>2]|0;i=e;return b|0}do if(!(c[c[(c[h>>2]|0)+64>>2]>>2]|0)){b=c[h>>2]|0;if((d[(c[h>>2]|0)+5>>0]|0|0)==4){qi(c[b+64>>2]|0);break}c[k>>2]=6|((d[b+12>>0]|0|0)!=0?4104:2048);c[g>>2]=qD(c[h>>2]|0)|0;if(!(c[g>>2]|0))c[g>>2]=Di(c[j>>2]|0,c[(c[h>>2]|0)+172>>2]|0,c[(c[h>>2]|0)+64>>2]|0,c[k>>2]|0,0)|0}while(0);if(!(c[g>>2]|0)){c[(c[h>>2]|0)+44>>2]=0;b=(c[h>>2]|0)+72|0;c[b>>2]=0;c[b+4>>2]=0;a[(c[h>>2]|0)+19>>0]=0;b=(c[h>>2]|0)+80|0;c[b>>2]=0;c[b+4>>2]=0;c[g>>2]=ek(c[h>>2]|0)|0}}j=c[h>>2]|0;if(c[g>>2]|0){_g(c[j+56>>2]|0);c[(c[h>>2]|0)+56>>2]=0}else a[j+16>>0]=3;c[f>>2]=c[g>>2];b=c[f>>2]|0;i=e;return b|0}function pD(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=Yg(c[(c[f>>2]|0)+56>>2]|0,c[(c[e>>2]|0)+20>>2]|0)|0;i=d;return a|0}function qD(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[f>>2]=b;c[g>>2]=0;if(a[(c[f>>2]|0)+12>>0]|0){c[e>>2]=0;h=c[e>>2]|0;i=d;return h|0}if(!(c[(c[f>>2]|0)+24>>2]|0)){c[e>>2]=0;h=c[e>>2]|0;i=d;return h|0}c[h>>2]=ig(c[(c[f>>2]|0)+60>>2]|0,20,g)|0;if((c[h>>2]|0)!=12){if((c[h>>2]|0)==0&(c[g>>2]|0)!=0)c[h>>2]=1032}else c[h>>2]=0;c[e>>2]=c[h>>2];h=c[e>>2]|0;i=d;return h|0}function rD(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0;h=i;i=i+32|0;m=h+20|0;l=h+16|0;n=h+12|0;k=h+8|0;o=h+4|0;j=h;c[l>>2]=a;c[n>>2]=d;c[k>>2]=f;c[o>>2]=g;g=c[l>>2]|0;do if(c[(c[l>>2]|0)+136>>2]|0){a=c[g+136>>2]|0;c[j>>2]=a;c[c[o>>2]>>2]=a;c[(c[l>>2]|0)+136>>2]=c[(c[j>>2]|0)+12>>2];c[(c[j>>2]|0)+12>>2]=0;_E(c[(c[j>>2]|0)+8>>2]|0,0,e[(c[l>>2]|0)+140>>1]|0|0)|0}else{a=Mc(40+(e[g+140>>1]|0)|0,0)|0;c[j>>2]=a;c[c[o>>2]>>2]=a;if(c[j>>2]|0){c[(c[j>>2]|0)+8>>2]=(c[j>>2]|0)+40;b[(c[j>>2]|0)+24>>1]=64;b[(c[j>>2]|0)+26>>1]=1;c[(c[j>>2]|0)+16>>2]=c[l>>2];break}d=c[(c[l>>2]|0)+60>>2]|0;a=c[(c[l>>2]|0)+152>>2]|0;a=lF((c[n>>2]|0)-1|0,0,a|0,((a|0)<0)<<31>>31|0)|0;hj(d,a,D,c[k>>2]|0)|0;c[m>>2]=7;a=c[m>>2]|0;i=h;return a|0}while(0);c[(c[j>>2]|0)+20>>2]=c[n>>2];c[(c[j>>2]|0)+4>>2]=c[k>>2];a=(c[l>>2]|0)+120|0;c[a>>2]=(c[a>>2]|0)+1;c[m>>2]=0;a=c[m>>2]|0;i=h;return a|0}function sD(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0;h=i;i=i+32|0;j=h+20|0;l=h+16|0;n=h+12|0;o=h+8|0;m=h+4|0;k=h;c[l>>2]=a;c[n>>2]=f;c[o>>2]=g;if((d[(c[l>>2]|0)+29>>0]|0)==2){c[j>>2]=0;a=c[j>>2]|0;i=h;return a|0}c[m>>2]=c[(c[l>>2]|0)+8>>2];while(1){if(!(c[m>>2]|0))break;if((b[(c[m>>2]|0)+26>>1]|0)==0?(e[(c[m>>2]|0)+24>>1]&4|0)==0:0)break;c[m>>2]=c[(c[m>>2]|0)+36>>2]}c[(c[l>>2]|0)+8>>2]=c[m>>2];a:do if(!(c[m>>2]|0)){c[m>>2]=c[(c[l>>2]|0)+4>>2];while(1){if(!(c[m>>2]|0))break a;if(!(b[(c[m>>2]|0)+26>>1]|0))break a;c[m>>2]=c[(c[m>>2]|0)+36>>2]}}while(0);if((c[m>>2]|0)!=0?(c[k>>2]=zb[c[(c[l>>2]|0)+32>>2]&63](c[(c[l>>2]|0)+36>>2]|0,c[m>>2]|0)|0,(c[k>>2]|0)!=0&(c[k>>2]|0)!=5):0){c[j>>2]=c[k>>2];a=c[j>>2]|0;i=h;return a|0}a=pb[c[38640+132>>2]&31](c[(c[l>>2]|0)+40>>2]|0,c[n>>2]|0,2)|0;c[c[o>>2]>>2]=a;c[j>>2]=(c[c[o>>2]>>2]|0)==0?7:0;a=c[j>>2]|0;i=h;return a|0}function tD(f){f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;k=i;i=i+48|0;g=k+40|0;j=k+36|0;q=k+32|0;h=k+28|0;l=k+24|0;r=k+20|0;n=k+12|0;p=k+8|0;m=k+4|0;o=k;c[j>>2]=f;c[r>>2]=0;c[q>>2]=KA(c[c[j>>2]>>2]|0)|0;if(c[q>>2]|0){c[g>>2]=c[q>>2];r=c[g>>2]|0;i=k;return r|0}c[q>>2]=Bw(c[j>>2]|0,1,h,0)|0;if(c[q>>2]|0){c[g>>2]=c[q>>2];r=c[g>>2]|0;i=k;return r|0}f=Hh((c[(c[h>>2]|0)+56>>2]|0)+28|0)|0;c[k+16>>2]=f;c[l>>2]=f;fd(c[c[j>>2]>>2]|0,r);if(!((c[l>>2]|0)!=0?(TE((c[(c[h>>2]|0)+56>>2]|0)+24|0,(c[(c[h>>2]|0)+56>>2]|0)+92|0,4)|0)==0:0))c[l>>2]=c[r>>2];a:do if((c[l>>2]|0)>0){c[m>>2]=c[(c[h>>2]|0)+56>>2];c[q>>2]=26;b:do if(!(TE(c[m>>2]|0,34408,16)|0)){if((d[(c[m>>2]|0)+18>>0]|0|0)>2){f=(c[j>>2]|0)+22|0;b[f>>1]=e[f>>1]|0|1}if((d[(c[m>>2]|0)+19>>0]|0|0)<=2){do if((d[(c[m>>2]|0)+19>>0]|0|0)==2?((e[(c[j>>2]|0)+22>>1]|0)&16|0)==0:0){c[o>>2]=0;c[q>>2]=RA(c[c[j>>2]>>2]|0,o)|0;if(c[q>>2]|0)break b;if(c[o>>2]|0){c[q>>2]=26;break}Rk(c[h>>2]|0);c[g>>2]=0;r=c[g>>2]|0;i=k;return r|0}while(0);if((TE((c[m>>2]|0)+21|0,37104,3)|0)==0?(c[n>>2]=(d[(c[m>>2]|0)+16>>0]|0)<<8|(d[(c[m>>2]|0)+17>>0]|0)<<16,!(((c[n>>2]|0)>>>0>65536?1:((c[n>>2]|0)-1&c[n>>2]|0)!=0)|(c[n>>2]|0)>>>0<=256)):0){c[p>>2]=(c[n>>2]|0)-(d[(c[m>>2]|0)+20>>0]|0);if((c[n>>2]|0)!=(c[(c[j>>2]|0)+32>>2]|0)){Rk(c[h>>2]|0);c[(c[j>>2]|0)+36>>2]=c[p>>2];c[(c[j>>2]|0)+32>>2]=c[n>>2];Dg(c[j>>2]|0);c[q>>2]=Eg(c[c[j>>2]>>2]|0,(c[j>>2]|0)+32|0,(c[n>>2]|0)-(c[p>>2]|0)|0)|0;c[g>>2]=c[q>>2];r=c[g>>2]|0;i=k;return r|0}if((c[(c[(c[j>>2]|0)+4>>2]|0)+24>>2]&65536|0)==0?(c[l>>2]|0)>(c[r>>2]|0):0){c[q>>2]=kj(54754)|0;break}if((c[p>>2]|0)>>>0>=480){c[(c[j>>2]|0)+32>>2]=c[n>>2];c[(c[j>>2]|0)+36>>2]=c[p>>2];r=(Hh((c[m>>2]|0)+52|0)|0)!=0;a[(c[j>>2]|0)+17>>0]=r?1:0;r=(Hh((c[m>>2]|0)+64|0)|0)!=0;a[(c[j>>2]|0)+18>>0]=r?1:0;break a}}}}while(0);Rk(c[h>>2]|0);c[(c[j>>2]|0)+12>>2]=0;c[g>>2]=c[q>>2];r=c[g>>2]|0;i=k;return r|0}while(0);b[(c[j>>2]|0)+24>>1]=(((c[(c[j>>2]|0)+36>>2]|0)-12<<6>>>0)/255|0)-23;b[(c[j>>2]|0)+26>>1]=(((c[(c[j>>2]|0)+36>>2]|0)-12<<5>>>0)/255|0)-23;b[(c[j>>2]|0)+28>>1]=(c[(c[j>>2]|0)+36>>2]|0)-35;b[(c[j>>2]|0)+30>>1]=(((c[(c[j>>2]|0)+36>>2]|0)-12<<5>>>0)/255|0)-23;m=c[j>>2]|0;if((e[(c[j>>2]|0)+24>>1]|0|0)>127)a[m+21>>0]=127;else a[(c[j>>2]|0)+21>>0]=b[m+24>>1];c[(c[j>>2]|0)+12>>2]=c[h>>2];c[(c[j>>2]|0)+44>>2]=c[l>>2];c[g>>2]=0;r=c[g>>2]|0;i=k;return r|0}function uD(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;h=g+16|0;j=g+12|0;l=g+8|0;m=g+4|0;k=g;c[j>>2]=b;c[l>>2]=e;c[m>>2]=f;c[k>>2]=0;if(c[(c[j>>2]|0)+40>>2]|0){c[h>>2]=c[(c[j>>2]|0)+40>>2];b=c[h>>2]|0;i=g;return b|0}a[(c[j>>2]|0)+21>>0]=c[m>>2];if((d[(c[j>>2]|0)+16>>0]|0|0)==1){b=(ai(c[j>>2]|0)|0)!=0;f=c[j>>2]|0;if(!b){c[k>>2]=hk(f,2)|0;if((c[k>>2]|0)==0&(c[l>>2]|0)!=0)c[k>>2]=gk(c[j>>2]|0,4)|0}else{do if((d[f+4>>0]|0|0)!=0?(di(c[(c[j>>2]|0)+208>>2]|0,-1)|0)!=0:0){c[k>>2]=hk(c[j>>2]|0,4)|0;if(!(c[k>>2]|0)){di(c[(c[j>>2]|0)+208>>2]|0,1)|0;break}c[h>>2]=c[k>>2];b=c[h>>2]|0;i=g;return b|0}while(0);c[k>>2]=vD(c[(c[j>>2]|0)+208>>2]|0)|0}if(!(c[k>>2]|0)){a[(c[j>>2]|0)+16>>0]=2;c[(c[j>>2]|0)+36>>2]=c[(c[j>>2]|0)+24>>2];c[(c[j>>2]|0)+32>>2]=c[(c[j>>2]|0)+24>>2];c[(c[j>>2]|0)+28>>2]=c[(c[j>>2]|0)+24>>2];b=(c[j>>2]|0)+72|0;c[b>>2]=0;c[b+4>>2]=0}}c[h>>2]=c[k>>2];b=c[h>>2]|0;i=g;return b|0}function vD(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;e=d+8|0;g=d+4|0;f=d;c[g>>2]=b;if(a[(c[g>>2]|0)+46>>0]|0){c[e>>2]=8;g=c[e>>2]|0;i=d;return g|0}c[f>>2]=vj(c[g>>2]|0,0,1)|0;if(c[f>>2]|0){c[e>>2]=c[f>>2];g=c[e>>2]|0;i=d;return g|0}a[(c[g>>2]|0)+44>>0]=1;b=(c[g>>2]|0)+52|0;if(TE(b,mj(c[g>>2]|0)|0,48)|0){ji(c[g>>2]|0,0,1);a[(c[g>>2]|0)+44>>0]=0;c[f>>2]=517}c[e>>2]=c[f>>2];g=c[e>>2]|0;i=d;return g|0}function wD(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;_d(c[d>>2]|0);i=b;return}function xD(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d+4>>2]=a;c[d>>2]=b;i=d;return 37112}function yD(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;e=b+8|0;d=b+4|0;f=b;c[e>>2]=a;c[d>>2]=0;if(!(c[e>>2]|0)){f=c[d>>2]|0;i=b;return f|0}c[f>>2]=c[e>>2];FD(c[e>>2]|0,0)|0;hc(c[(c[f>>2]|0)+24>>2]|0);c[d>>2]=kE(c[e>>2]|0)|0;f=c[d>>2]|0;i=b;return f|0}function zD(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,j=0,k=0,l=0,m=0,n=0,o=0;l=i;i=i+32|0;h=l+28|0;o=l+24|0;k=l+20|0;m=l+16|0;n=l;j=l+12|0;g=l+8|0;c[o>>2]=a;c[k>>2]=b;c[m>>2]=d;a=n;c[a>>2]=e;c[a+4>>2]=f;c[j>>2]=c[o>>2];a=n;c[g>>2]=jE(c[j>>2]|0,c[a>>2]|0,c[a+4>>2]|0,c[k>>2]|0,c[m>>2]|0)|0;if((c[g>>2]|0)==(c[m>>2]|0)){c[h>>2]=0;o=c[h>>2]|0;i=l;return o|0}if((c[g>>2]|0)<0){c[h>>2]=266;o=c[h>>2]|0;i=l;return o|0}else{c[(c[j>>2]|0)+20>>2]=0;_E((c[k>>2]|0)+(c[g>>2]|0)|0,0,(c[m>>2]|0)-(c[g>>2]|0)|0)|0;c[h>>2]=522;o=c[h>>2]|0;i=l;return o|0}return 0}function AD(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,j=0,k=0,l=0,m=0,n=0,o=0;h=i;i=i+32|0;m=h+28|0;o=h+24|0;n=h+20|0;l=h+16|0;g=h;k=h+12|0;j=h+8|0;c[o>>2]=a;c[n>>2]=b;c[l>>2]=d;a=g;c[a>>2]=e;c[a+4>>2]=f;c[k>>2]=c[o>>2];c[j>>2]=0;while(1){if((c[l>>2]|0)<=0)break;o=g;o=fE(c[k>>2]|0,c[o>>2]|0,c[o+4>>2]|0,c[n>>2]|0,c[l>>2]|0)|0;c[j>>2]=o;if((o|0)<=0)break;c[l>>2]=(c[l>>2]|0)-(c[j>>2]|0);a=c[j>>2]|0;o=g;a=bF(c[o>>2]|0,c[o+4>>2]|0,a|0,((a|0)<0)<<31>>31|0)|0;o=g;c[o>>2]=a;c[o+4>>2]=D;c[n>>2]=(c[n>>2]|0)+(c[j>>2]|0)}if((c[l>>2]|0)<=0){c[m>>2]=0;o=c[m>>2]|0;i=h;return o|0}if((c[j>>2]|0)<0?(c[(c[k>>2]|0)+20>>2]|0)!=28:0){c[m>>2]=778;o=c[m>>2]|0;i=h;return o|0}c[(c[k>>2]|0)+20>>2]=0;c[m>>2]=13;o=c[m>>2]|0;i=h;return o|0}function BD(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;g=i;i=i+32|0;f=g+20|0;k=g+16|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)|0;if(!((c[k>>2]|0)==0&(c[j>>2]|0)>=0)){if((c[k>>2]|0)==14)c[k>>2]=0}else{iE(c[j>>2]|0,0,0)|0;TD(c[h>>2]|0,c[j>>2]|0,28399)}o=(c[h>>2]|0)+18|0;b[o>>1]=(e[o>>1]|0)&-9}c[g>>2]=c[k>>2];o=c[g>>2]|0;i=f;return o|0}function DD(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;i=i+96|0;e=d+88|0;f=d+84|0;g=d+80|0;j=d+76|0;h=d;c[f>>2]=a;c[g>>2]=b;c[j>>2]=zb[c[37192+64>>2]&63](c[(c[f>>2]|0)+12>>2]|0,h)|0;if(c[j>>2]|0){j=c[(Ya()|0)>>2]|0;c[(c[f>>2]|0)+20>>2]=j;c[e>>2]=1802;j=c[e>>2]|0;i=d;return j|0}a=c[h+36>>2]|0;j=c[g>>2]|0;c[j>>2]=a;c[j+4>>2]=((a|0)<0)<<31>>31;j=c[g>>2]|0;if((c[j>>2]|0)==1&(c[j+4>>2]|0)==0){j=c[g>>2]|0;c[j>>2]=0;c[j+4>>2]=0}c[e>>2]=0;j=c[e>>2]|0;i=d;return j|0}function ED(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;i=i+32|0;g=f+24|0;n=f+20|0;k=f+16|0;j=f+12|0;h=f+8|0;l=f+4|0;m=f;c[n>>2]=b;c[k>>2]=e;c[j>>2]=c[n>>2];c[h>>2]=c[(c[j>>2]|0)+24>>2];c[l>>2]=0;if((d[(c[j>>2]|0)+16>>0]|0|0)>0){a[(c[j>>2]|0)+16>>0]=c[k>>2];qa(c[h>>2]|0,0)|0;c[g>>2]=0;n=c[g>>2]|0;i=f;return n|0}c[l>>2]=zb[c[37192+220>>2]&63](c[h>>2]|0,511)|0;if((c[l>>2]|0)>=0){a[(c[j>>2]|0)+16>>0]=c[k>>2];c[g>>2]=c[l>>2];n=c[g>>2]|0;i=f;return n|0}c[m>>2]=c[(Ya()|0)>>2];if(17!=(c[m>>2]|0)){c[l>>2]=hE(c[m>>2]|0,3850)|0;if((c[l>>2]|0)!=0&(c[l>>2]|0)!=5)c[(c[j>>2]|0)+20>>2]=c[m>>2]}else c[l>>2]=5;c[g>>2]=c[l>>2];n=c[g>>2]|0;i=f;return n|0}function FD(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;i=i+32|0;g=f+24|0;n=f+20|0;m=f+16|0;h=f+12|0;l=f+8|0;k=f+4|0;j=f;c[n>>2]=b;c[m>>2]=e;c[h>>2]=c[n>>2];c[l>>2]=c[(c[h>>2]|0)+24>>2];if((d[(c[h>>2]|0)+16>>0]|0|0)==(c[m>>2]|0)){c[g>>2]=0;n=c[g>>2]|0;i=f;return n|0}if((c[m>>2]|0)==1){a[(c[h>>2]|0)+16>>0]=1;c[g>>2]=0;n=c[g>>2]|0;i=f;return n|0}c[k>>2]=ub[c[37192+232>>2]&31](c[l>>2]|0)|0;if((c[k>>2]|0)<0?(c[(Ya()|0)>>2]|0)==20:0)c[k>>2]=ub[c[37192+196>>2]&31](c[l>>2]|0)|0;if((c[k>>2]|0)>=0){a[(c[h>>2]|0)+16>>0]=0;c[g>>2]=0;n=c[g>>2]|0;i=f;return n|0}c[j>>2]=c[(Ya()|0)>>2];c[k>>2]=0;c[k>>2]=2!=(c[j>>2]|0)?2058:0;if((c[k>>2]|0)!=0&(c[k>>2]|0)!=5)c[(c[h>>2]|0)+20>>2]=c[j>>2];c[g>>2]=c[k>>2];n=c[g>>2]|0;i=f;return n|0}function GD(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;l=e+20|0;g=e+16|0;f=e+12|0;h=e+8|0;k=e+4|0;j=e;c[l>>2]=a;c[g>>2]=b;c[f>>2]=0;c[h>>2]=0;c[k>>2]=c[l>>2];if((d[(c[k>>2]|0)+16>>0]|0|0)>1){c[h>>2]=1;a=c[h>>2]|0;l=c[g>>2]|0;c[l>>2]=a;l=c[f>>2]|0;i=e;return l|0}else{c[j>>2]=c[(c[k>>2]|0)+24>>2];c[h>>2]=(zb[c[37192+28>>2]&63](c[j>>2]|0,0)|0)==0&1;a=c[h>>2]|0;l=c[g>>2]|0;c[l>>2]=a;l=c[f>>2]|0;i=e;return l|0}return 0}function HD(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;k=f;g=f+28|0;o=f+24|0;n=f+20|0;j=f+16|0;h=f+12|0;m=f+8|0;l=f+4|0;c[o>>2]=a;c[n>>2]=b;c[j>>2]=e;c[h>>2]=c[o>>2];do switch(c[n>>2]|0){case 6:{c[(c[h>>2]|0)+40>>2]=c[c[j>>2]>>2];c[g>>2]=0;break};case 10:{aE(c[h>>2]|0,4,c[j>>2]|0);c[g>>2]=0;break};case 12:{c[k>>2]=c[(c[(c[h>>2]|0)+4>>2]|0)+16>>2];o=qc(1200,k)|0;c[c[j>>2]>>2]=o;c[g>>2]=0;break};case 20:{o=cE(c[h>>2]|0)|0;c[c[j>>2]>>2]=o;c[g>>2]=0;break};case 1:{c[c[j>>2]>>2]=d[(c[h>>2]|0)+16>>0];c[g>>2]=0;break};case 13:{aE(c[h>>2]|0,16,c[j>>2]|0);c[g>>2]=0;break};case 16:{c[l>>2]=fc(c[(c[(c[h>>2]|0)+4>>2]|0)+8>>2]|0)|0;if(c[l>>2]|0){bE(c[(c[(c[h>>2]|0)+4>>2]|0)+8>>2]|0,c[l>>2]|0)|0;c[c[j>>2]>>2]=c[l>>2]}c[g>>2]=0;break};case 5:{o=c[j>>2]|0;c[m>>2]=$D(c[h>>2]|0,c[o>>2]|0,c[o+4>>2]|0)|0;c[g>>2]=c[m>>2];break};case 4:{c[c[j>>2]>>2]=c[(c[h>>2]|0)+20>>2];c[g>>2]=0;break};default:c[g>>2]=12}while(0);i=f;return c[g>>2]|0}function ID(a){a=a|0;var b=0;b=i;i=i+16|0;c[b>>2]=a;i=b;return 4096}function JD(a){a=a|0;var b=0,d=0,f=0,g=0;b=i;i=i+16|0;g=b+8|0;f=b+4|0;d=b;c[g>>2]=a;c[f>>2]=c[g>>2];c[d>>2]=0;if(!((e[(c[f>>2]|0)+18>>1]|0)&16)){g=c[d>>2]|0;i=b;return g|0}c[d>>2]=c[d>>2]|4096;g=c[d>>2]|0;i=b;return g|0}function KD(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=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;k=i;i=i+48|0;v=k+32|0;m=k+28|0;n=k+24|0;t=k+20|0;u=k+16|0;r=k+12|0;h=k+8|0;l=k+4|0;q=k;o=k+40|0;p=k+38|0;s=k+36|0;c[v>>2]=a;c[m>>2]=d;c[n>>2]=f;c[t>>2]=g;c[u>>2]=c[v>>2];c[r>>2]=c[(c[u>>2]|0)+36>>2];c[l>>2]=c[c[r>>2]>>2];c[q>>2]=0;b[o>>1]=(1<<(c[m>>2]|0)+(c[n>>2]|0))-(1<>2]);if(c[t>>2]&1){b[p>>1]=0;c[h>>2]=c[(c[l>>2]|0)+32>>2];while(1){if(!(c[h>>2]|0))break;if((c[h>>2]|0)!=(c[r>>2]|0))b[p>>1]=e[p>>1]|0|(e[(c[h>>2]|0)+10>>1]|0);c[h>>2]=c[(c[h>>2]|0)+4>>2]}if(!((e[o>>1]|0)&(e[p>>1]|0)))c[q>>2]=_D(c[l>>2]|0,2,(c[m>>2]|0)+120|0,c[n>>2]|0)|0;else c[q>>2]=0;if(c[q>>2]|0){v=c[q>>2]|0;i=k;return v|0}v=(c[r>>2]|0)+12|0;b[v>>1]=(e[v>>1]|0)&~(e[o>>1]|0);v=(c[r>>2]|0)+10|0;b[v>>1]=(e[v>>1]|0)&~(e[o>>1]|0);v=c[q>>2]|0;i=k;return v|0}if(!(c[t>>2]&4)){c[h>>2]=c[(c[l>>2]|0)+32>>2];while(1){if(!(c[h>>2]|0))break;if((e[(c[h>>2]|0)+12>>1]|0)&(e[o>>1]|0)){j=28;break}if((e[(c[h>>2]|0)+10>>1]|0)&(e[o>>1]|0)){j=28;break}c[h>>2]=c[(c[h>>2]|0)+4>>2]}if((j|0)==28)c[q>>2]=5;if(c[q>>2]|0){v=c[q>>2]|0;i=k;return v|0}c[q>>2]=_D(c[l>>2]|0,1,(c[m>>2]|0)+120|0,c[n>>2]|0)|0;if(c[q>>2]|0){v=c[q>>2]|0;i=k;return v|0}v=(c[r>>2]|0)+12|0;b[v>>1]=e[v>>1]|0|(e[o>>1]|0);v=c[q>>2]|0;i=k;return v|0}b[s>>1]=0;c[h>>2]=c[(c[l>>2]|0)+32>>2];while(1){if(!(c[h>>2]|0))break;if((e[(c[h>>2]|0)+12>>1]|0)&(e[o>>1]|0)){j=16;break}b[s>>1]=e[s>>1]|0|(e[(c[h>>2]|0)+10>>1]|0);c[h>>2]=c[(c[h>>2]|0)+4>>2]}if((j|0)==16)c[q>>2]=5;do if(!(c[q>>2]|0))if(!((e[s>>1]|0)&(e[o>>1]|0))){c[q>>2]=_D(c[l>>2]|0,0,(c[m>>2]|0)+120|0,c[n>>2]|0)|0;break}else{c[q>>2]=0;break}while(0);if(c[q>>2]|0){v=c[q>>2]|0;i=k;return v|0}v=(c[r>>2]|0)+10|0;b[v>>1]=e[v>>1]|0|(e[o>>1]|0);v=c[q>>2]|0;i=k;return v|0}function LD(a){a=a|0;var b=0;b=i;i=i+16|0;c[b>>2]=a;PD();RD();i=b;return}function MD(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;i=i+32|0;e=d+24|0;l=d+20|0;f=d+16|0;h=d+12|0;g=d+8|0;j=d+4|0;k=d;c[l>>2]=a;c[f>>2]=b;c[k>>2]=c[l>>2];c[h>>2]=c[(c[k>>2]|0)+36>>2];if(!(c[h>>2]|0)){c[e>>2]=0;l=c[e>>2]|0;i=d;return l|0}c[g>>2]=c[c[h>>2]>>2];c[j>>2]=(c[g>>2]|0)+32;while(1){if((c[c[j>>2]>>2]|0)==(c[h>>2]|0))break;c[j>>2]=(c[c[j>>2]>>2]|0)+4}c[c[j>>2]>>2]=c[(c[h>>2]|0)+4>>2];hc(c[h>>2]|0);c[(c[k>>2]|0)+36>>2]=0;PD();l=(c[g>>2]|0)+28|0;c[l>>2]=(c[l>>2]|0)+ -1;if(!(c[(c[g>>2]|0)+28>>2]|0)){if((c[f>>2]|0)!=0?(c[(c[g>>2]|0)+12>>2]|0)>=0:0)ub[c[37192+196>>2]&31](c[(c[g>>2]|0)+8>>2]|0)|0;QD(c[k>>2]|0)}RD();c[e>>2]=0;l=c[e>>2]|0;i=d;return l|0}function ND(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;i=i+32|0;h=g+8|0;c[g+16>>2]=a;a=g;c[a>>2]=b;c[a+4>>2]=d;c[g+12>>2]=e;c[h>>2]=f;c[c[h>>2]>>2]=0;i=g;return 0}function OD(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=i;i=i+16|0;c[f+12>>2]=a;a=f;c[a>>2]=b;c[a+4>>2]=d;c[f+8>>2]=e;i=f;return 0}function PD(){return}function QD(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;b=i;i=i+16|0;d=b+12|0;f=b+8|0;h=b+4|0;g=b;c[d>>2]=a;c[f>>2]=c[(c[(c[d>>2]|0)+8>>2]|0)+20>>2];if(!(c[f>>2]|0)){i=b;return}if(c[(c[f>>2]|0)+28>>2]|0){i=b;return}c[h>>2]=SD()|0;c[g>>2]=0;while(1){a=c[f>>2]|0;if((c[g>>2]|0)>=(e[(c[f>>2]|0)+20>>1]|0|0))break;if((c[a+12>>2]|0)>=0)zb[c[37192+268>>2]&63](c[(c[(c[f>>2]|0)+24>>2]|0)+(c[g>>2]<<2)>>2]|0,c[(c[f>>2]|0)+16>>2]|0)|0;else hc(c[(c[(c[f>>2]|0)+24>>2]|0)+(c[g>>2]<<2)>>2]|0);c[g>>2]=(c[g>>2]|0)+(c[h>>2]|0)}hc(c[a+24>>2]|0);if((c[(c[f>>2]|0)+12>>2]|0)>=0){TD(c[d>>2]|0,c[(c[f>>2]|0)+12>>2]|0,28999);c[(c[f>>2]|0)+12>>2]=-1}c[(c[c[f>>2]>>2]|0)+20>>2]=0;hc(c[f>>2]|0);i=b;return}function RD(){return}function SD(){var a=0,b=0,d=0,e=0;a=i;i=i+16|0;b=a+8|0;d=a+4|0;e=a;c[d>>2]=32768;c[e>>2]=qb[c[37192+292>>2]&1]()|0;if((c[e>>2]|0)<(c[d>>2]|0)){c[b>>2]=1;e=c[b>>2]|0;i=a;return e|0}else{c[b>>2]=(c[e>>2]|0)/(c[d>>2]|0)|0;e=c[b>>2]|0;i=a;return e|0}return 0}function TD(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;g=e+8|0;h=e+4|0;f=e;c[g>>2]=a;c[h>>2]=b;c[f>>2]=d;if(!(ub[c[37192+16>>2]&31](c[h>>2]|0)|0)){i=e;return}if(c[g>>2]|0)d=c[(c[g>>2]|0)+32>>2]|0;else d=0;UD(4106,37496,d,c[f>>2]|0)|0;i=e;return}function UD(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,m=0,n=0;g=i;i=i+48|0;h=g;l=g+40|0;m=g+36|0;f=g+32|0;j=g+28|0;k=g+24|0;n=g+20|0;c[l>>2]=a;c[m>>2]=b;c[f>>2]=d;c[j>>2]=e;c[n>>2]=c[(Ya()|0)>>2];c[k>>2]=gb(c[n>>2]|0)|0;if(!(c[f>>2]|0))c[f>>2]=1216;a=c[l>>2]|0;e=c[n>>2]|0;n=c[m>>2]|0;d=c[f>>2]|0;b=c[k>>2]|0;c[h>>2]=c[j>>2];c[h+4>>2]=e;c[h+8>>2]=n;c[h+12>>2]=d;c[h+16>>2]=b;tc(a,37504,h);i=g;return c[l>>2]|0}function VD(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e;j=e+12|0;h=e+8|0;g=e+4|0;c[j>>2]=a;c[h>>2]=b;c[g>>2]=d;b=c[j>>2]|0;a=c[h>>2]|0;c[f>>2]=c[g>>2];a=Ja(b|0,a|0,f|0)|0;i=e;return a|0}function WD(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+544|0;k=e;l=e+16|0;g=e+12|0;j=e+8|0;f=e+4|0;h=e+20|0;c[l>>2]=b;c[g>>2]=d;c[f>>2]=-1;c[k>>2]=c[l>>2];sc(512,h,1200,k)|0;c[j>>2]=aF(h|0)|0;while(1){if((c[j>>2]|0)<=1)break;if((a[h+(c[j>>2]|0)>>0]|0)==47)break;c[j>>2]=(c[j>>2]|0)+ -1}if((c[j>>2]|0)>0){a[h+(c[j>>2]|0)>>0]=0;c[f>>2]=ZD(h,0,0)|0}c[c[g>>2]>>2]=c[f>>2];if((c[f>>2]|0)>=0){l=0;i=e;return l|0}l=UD(Ij(28344)|0,37536,h,28344)|0;i=e;return l|0}function XD(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if($a()|0){a=0;i=e;return a|0}a=fb(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return a|0}function YD(){var a=0,b=0;b=i;a=Pa(30)|0;i=b;return a|0}function ZD(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;l=i;i=i+112|0;k=l;f=l+100|0;g=l+96|0;e=l+92|0;j=l+88|0;h=l+84|0;m=l+8|0;c[f>>2]=a;c[g>>2]=b;c[e>>2]=d;c[h>>2]=(c[e>>2]|0)!=0?c[e>>2]|0:420;while(1){c[j>>2]=pb[c[37192+4>>2]&31](c[f>>2]|0,c[g>>2]|524288,c[h>>2]|0)|0;if((c[j>>2]|0)<0)if((c[(Ya()|0)>>2]|0)==4)continue;else break;if((c[j>>2]|0)>=3)break;ub[c[37192+16>>2]&31](c[j>>2]|0)|0;a=c[j>>2]|0;c[k>>2]=c[f>>2];c[k+4>>2]=a;tc(28,37760,k);c[j>>2]=-1;if((pb[c[37192+4>>2]&31](37808,c[g>>2]|0,c[e>>2]|0)|0)<0)break}if(!((c[j>>2]|0)>=0&(c[e>>2]|0)!=0)){a=c[j>>2]|0;i=l;return a|0}if(zb[c[37192+64>>2]&63](c[j>>2]|0,m)|0){a=c[j>>2]|0;i=l;return a|0}if(c[m+36>>2]|0){a=c[j>>2]|0;i=l;return a|0}if((c[m+12>>2]&511|0)==(c[e>>2]|0)){a=c[j>>2]|0;i=l;return a|0}zb[c[37192+172>>2]&63](c[j>>2]|0,c[e>>2]|0)|0;a=c[j>>2]|0;i=l;return a|0}function _D(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;m=i;i=i+48|0;o=m;n=m+36|0;k=m+32|0;l=m+28|0;g=m+24|0;j=m+8|0;h=m+4|0;c[n>>2]=a;c[k>>2]=d;c[l>>2]=e;c[g>>2]=f;c[h>>2]=0;if((c[(c[n>>2]|0)+12>>2]|0)<0){a=c[h>>2]|0;i=m;return a|0}c[j+0>>2]=0;c[j+4>>2]=0;c[j+8>>2]=0;c[j+12>>2]=0;b[j>>1]=c[k>>2];b[j+2>>1]=0;c[j+4>>2]=c[l>>2];c[j+8>>2]=c[g>>2];d=c[9320]|0;a=c[(c[n>>2]|0)+12>>2]|0;c[o>>2]=j;c[h>>2]=pb[d&31](a,13,o)|0;c[h>>2]=(c[h>>2]|0)!=-1?0:5;a=c[h>>2]|0;i=m;return a|0}function $D(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;k=i;i=i+128|0;f=k+112|0;g=k+108|0;n=k+16|0;e=k+8|0;l=k+32|0;m=k+28|0;h=k;j=k+24|0;c[g>>2]=a;a=n;c[a>>2]=b;c[a+4>>2]=d;a:do if((c[(c[g>>2]|0)+40>>2]|0)>0){if(zb[c[37192+64>>2]&63](c[(c[g>>2]|0)+12>>2]|0,l)|0){c[f>>2]=1802;a=c[f>>2]|0;i=k;return a|0}b=n;d=c[(c[g>>2]|0)+40>>2]|0;d=bF(c[b>>2]|0,c[b+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;d=ZE(d|0,D|0,1,0)|0;b=c[(c[g>>2]|0)+40>>2]|0;b=jF(d|0,D|0,b|0,((b|0)<0)<<31>>31|0)|0;d=c[(c[g>>2]|0)+40>>2]|0;d=lF(b|0,D|0,d|0,((d|0)<0)<<31>>31|0)|0;b=e;c[b>>2]=d;c[b+4>>2]=D;b=e;d=c[b+4>>2]|0;a=c[l+36>>2]|0;n=((a|0)<0)<<31>>31;if((d|0)>(n|0)|((d|0)==(n|0)?(c[b>>2]|0)>>>0>a>>>0:0)){c[m>>2]=c[l+40>>2];a=e;if(eE(c[(c[g>>2]|0)+12>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0){a=c[(Ya()|0)>>2]|0;c[(c[g>>2]|0)+20>>2]=a;c[f>>2]=UD(1546,37568,c[(c[g>>2]|0)+32>>2]|0,28530)|0;a=c[f>>2]|0;i=k;return a|0}b=($(((c[l+36>>2]|0)+(c[m>>2]<<1)-1|0)/(c[m>>2]|0)|0,c[m>>2]|0)|0)-1|0;a=h;c[a>>2]=b;c[a+4>>2]=((b|0)<0)<<31>>31;while(1){b=h;l=c[b+4>>2]|0;a=e;n=c[a+4>>2]|0;if(!((l|0)<(n|0)|((l|0)==(n|0)?(c[b>>2]|0)>>>0<(c[a>>2]|0)>>>0:0)))break a;a=h;c[j>>2]=fE(c[g>>2]|0,c[a>>2]|0,c[a+4>>2]|0,1216,1)|0;if((c[j>>2]|0)!=1)break;b=c[m>>2]|0;a=h;b=bF(c[a>>2]|0,c[a+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;a=h;c[a>>2]=b;c[a+4>>2]=D}c[f>>2]=778;a=c[f>>2]|0;i=k;return a|0}}while(0);c[f>>2]=0;a=c[f>>2]|0;i=k;return a|0}function aE(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;j=i;i=i+16|0;l=j+4|0;m=j+8|0;k=j;c[l>>2]=f;a[m>>0]=g;c[k>>2]=h;if((c[c[k>>2]>>2]|0)<0){c[c[k>>2]>>2]=((e[(c[l>>2]|0)+18>>1]|0)&(d[m>>0]|0)|0)!=0&1;i=j;return}h=d[m>>0]|0;if(!(c[c[k>>2]>>2]|0)){f=(c[l>>2]|0)+18|0;b[f>>1]=(e[f>>1]|0)&~h;i=j;return}else{f=(c[l>>2]|0)+18|0;b[f>>1]=e[f>>1]|0|h;i=j;return}}function bE(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;k=i;i=i+32|0;n=k;g=k+24|0;l=k+20|0;h=k+16|0;f=k+12|0;j=k+8|0;m=k+4|0;c[l>>2]=b;c[h>>2]=e;b=dE()|0;c[m>>2]=b;c[m>>2]=(c[m>>2]|0)==0?19120:b;b=(aF(c[m>>2]|0)|0)+25|0;if(b>>>0>=(c[l>>2]|0)>>>0){c[g>>2]=1;b=c[g>>2]|0;i=k;return b|0}do{e=(c[l>>2]|0)-18|0;b=c[h>>2]|0;c[n>>2]=c[m>>2];sc(e,b,37888,n)|0;c[j>>2]=aF(c[h>>2]|0)|0;vc(15,(c[h>>2]|0)+(c[j>>2]|0)|0);c[f>>2]=0;while(1){e=(c[h>>2]|0)+(c[j>>2]|0)|0;if((c[f>>2]|0)>>>0>=15)break;a[(c[h>>2]|0)+(c[j>>2]|0)>>0]=a[37824+(((d[e>>0]|0)>>>0)%62|0)>>0]|0;c[f>>2]=(c[f>>2]|0)+1;c[j>>2]=(c[j>>2]|0)+1}a[e>>0]=0;a[(c[h>>2]|0)+((c[j>>2]|0)+1)>>0]=0}while((zb[c[37192+28>>2]&63](c[h>>2]|0,0)|0)==0);c[g>>2]=0;b=c[g>>2]|0;i=k;return b|0}function cE(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+80|0;e=b+76|0;d=b;c[e>>2]=a;if(!(c[(c[e>>2]|0)+8>>2]|0)){e=0;e=e&1;i=b;return e|0}if(zb[c[37192+52>>2]&63](c[(c[e>>2]|0)+32>>2]|0,d)|0){e=1;e=e&1;i=b;return e|0}e=(c[d+72>>2]|0)!=(c[(c[(c[e>>2]|0)+8>>2]|0)+4>>2]|0);e=e&1;i=b;return e|0}function dE(){var a=0,b=0,d=0,e=0,f=0;a=i;i=i+96|0;e=a+80|0;d=a+4|0;b=a;c[b>>2]=0;c[9476]=c[392];if(!(c[9477]|0))c[9477]=ab(37976)|0;if(!(c[9478]|0))c[9478]=ab(37992)|0;c[e>>2]=0;while(1){if((c[e>>2]|0)>>>0>=7){d=12;break}if((((c[b>>2]|0)!=0?(zb[c[37192+52>>2]&63](c[b>>2]|0,d)|0)==0:0)?(c[d+12>>2]&61440|0)==16384:0)?(zb[c[37192+28>>2]&63](c[b>>2]|0,7)|0)==0:0){d=12;break}f=c[e>>2]|0;c[e>>2]=f+1;c[b>>2]=c[37904+(f<<2)>>2]}if((d|0)==12){i=a;return c[b>>2]|0}return 0}function eE(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;g=e+12|0;h=e;f=e+8|0;c[g>>2]=a;a=h;c[a>>2]=b;c[a+4>>2]=d;while(1){c[f>>2]=zb[c[37192+76>>2]&63](c[g>>2]|0,c[h>>2]|0)|0;if((c[f>>2]|0)>=0){d=4;break}if((c[(Ya()|0)>>2]|0)!=4){d=4;break}}if((d|0)==4){i=e;return c[f>>2]|0}return 0}function fE(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,j=0,k=0,l=0;g=i;i=i+32|0;h=g+16|0;l=g;k=g+12|0;j=g+8|0;c[h>>2]=a;a=l;c[a>>2]=b;c[a+4>>2]=d;c[k>>2]=e;c[j>>2]=f;a=l;a=gE(c[(c[h>>2]|0)+12>>2]|0,c[a>>2]|0,c[a+4>>2]|0,c[k>>2]|0,c[j>>2]|0,(c[h>>2]|0)+20|0)|0;i=g;return a|0}function gE(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;j=i;i=i+48|0;h=j+36|0;n=j+32|0;r=j+8|0;o=j+28|0;p=j+24|0;k=j+20|0;l=j+16|0;q=j;c[n>>2]=a;a=r;c[a>>2]=b;c[a+4>>2]=d;c[o>>2]=e;c[p>>2]=f;c[k>>2]=g;c[l>>2]=0;c[p>>2]=c[p>>2]&131071;while(1){a=va(c[n>>2]|0,c[r>>2]|0,0)|0;b=q;c[b>>2]=a;c[b+4>>2]=((a|0)<0)<<31>>31;b=q;a=r;if((c[b>>2]|0)!=(c[a>>2]|0)?1:(c[b+4>>2]|0)!=(c[a+4>>2]|0))break;c[l>>2]=pb[c[37192+136>>2]&31](c[n>>2]|0,c[o>>2]|0,c[p>>2]|0)|0;if((c[l>>2]|0)>=0){m=10;break}if((c[(Ya()|0)>>2]|0)!=4){m=10;break}}if((m|0)==10){if((c[l>>2]|0)<0&(c[k>>2]|0)!=0){a=c[(Ya()|0)>>2]|0;c[c[k>>2]>>2]=a}c[h>>2]=c[l>>2];a=c[h>>2]|0;i=j;return a|0}if(c[k>>2]|0){a=q;if((c[a>>2]|0)==-1?(c[a+4>>2]|0)==-1:0)l=c[(Ya()|0)>>2]|0;else l=0;c[c[k>>2]>>2]=l}c[h>>2]=-1;a=c[h>>2]|0;i=j;return a|0}function hE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;h=e+4|0;g=e;c[h>>2]=a;c[g>>2]=b;switch(c[h>>2]|0){case 37:case 4:case 16:case 110:case 11:{c[f>>2]=5;break};case 1:{d=5;break};case 13:{if((c[g>>2]|0)==3850|(c[g>>2]|0)==2058|(c[g>>2]|0)==2314|(c[g>>2]|0)==3594)c[f>>2]=5;else d=5;break};default:c[f>>2]=c[g>>2]}if((d|0)==5)c[f>>2]=3;i=e;return c[f>>2]|0}function iE(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;g=f+12|0;e=f;c[g>>2]=a;c[f+8>>2]=b;c[f+4>>2]=d;c[e>>2]=Xa(c[g>>2]|0)|0;i=f;return c[e>>2]|0}function jE(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,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=i;i=i+48|0;o=j+36|0;k=j+32|0;p=j+8|0;q=j+28|0;g=j+24|0;m=j+20|0;n=j+16|0;l=j;c[k>>2]=a;a=p;c[a>>2]=b;c[a+4>>2]=d;c[q>>2]=e;c[g>>2]=f;c[n>>2]=0;c[g>>2]=c[g>>2]&131071;do{a=va(c[(c[k>>2]|0)+12>>2]|0,c[p>>2]|0,0)|0;b=l;c[b>>2]=a;c[b+4>>2]=((a|0)<0)<<31>>31;b=l;a=p;if((c[b>>2]|0)!=(c[a>>2]|0)?1:(c[b+4>>2]|0)!=(c[a+4>>2]|0)){h=3;break}c[m>>2]=pb[c[37192+100>>2]&31](c[(c[k>>2]|0)+12>>2]|0,c[q>>2]|0,c[g>>2]|0)|0;if((c[m>>2]|0)==(c[g>>2]|0))break;if((c[m>>2]|0)>=0){if((c[m>>2]|0)>0){c[g>>2]=(c[g>>2]|0)-(c[m>>2]|0);b=c[m>>2]|0;a=p;b=bF(c[a>>2]|0,c[a+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;a=p;c[a>>2]=b;c[a+4>>2]=D;c[n>>2]=(c[n>>2]|0)+(c[m>>2]|0);c[q>>2]=(c[q>>2]|0)+(c[m>>2]|0)}}else{if((c[(Ya()|0)>>2]|0)!=4){h=11;break}c[m>>2]=1}}while((c[m>>2]|0)>0);if((h|0)==3){a=l;if((c[a>>2]|0)==-1?(c[a+4>>2]|0)==-1:0){a=c[(Ya()|0)>>2]|0;c[(c[k>>2]|0)+20>>2]=a}else c[(c[k>>2]|0)+20>>2]=0;c[o>>2]=-1;a=c[o>>2]|0;i=j;return a|0}else if((h|0)==11){c[n>>2]=0;a=c[(Ya()|0)>>2]|0;c[(c[k>>2]|0)+20>>2]=a}c[o>>2]=(c[m>>2]|0)+(c[n>>2]|0);a=c[o>>2]|0;i=j;return a|0}function kE(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=c[e>>2];if((c[(c[d>>2]|0)+12>>2]|0)>=0){TD(c[d>>2]|0,c[(c[d>>2]|0)+12>>2]|0,26735);c[(c[d>>2]|0)+12>>2]=-1}hc(c[(c[d>>2]|0)+28>>2]|0);d=(c[d>>2]|0)+0|0;a=d+44|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(a|0));i=b;return 0}function lE(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d+4>>2]=a;c[d>>2]=b;i=d;return 38016}function mE(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=kE(c[d>>2]|0)|0;i=b;return a|0}function nE(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d+4>>2]=a;c[d>>2]=b;i=d;return 0}function oE(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d+4>>2]=a;c[d>>2]=b;i=d;return 0}function pE(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[d+4>>2]=a;c[e>>2]=b;c[c[e>>2]>>2]=0;i=d;return 0}function qE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+96|0;k=d+92|0;j=d+88|0;e=d+84|0;h=d+8|0;f=d+4|0;g=d;c[k>>2]=a;c[j>>2]=b;c[e>>2]=0;if(zb[c[37192+52>>2]&63](c[k>>2]|0,h)|0){k=c[e>>2]|0;i=d;return k|0}PD();c[f>>2]=c[9588];while(1){if(c[f>>2]|0)if((c[c[f>>2]>>2]|0)!=(c[h>>2]|0))a=1;else a=(c[(c[f>>2]|0)+4>>2]|0)!=(c[h+72>>2]|0);else a=0;b=c[f>>2]|0;if(!a)break;c[f>>2]=c[b+32>>2]}if(b){c[g>>2]=(c[f>>2]|0)+28;while(1){if(!(c[c[g>>2]>>2]|0))break;if((c[(c[c[g>>2]>>2]|0)+4>>2]|0)==(c[j>>2]|0))break;c[g>>2]=(c[c[g>>2]>>2]|0)+8}c[e>>2]=c[c[g>>2]>>2];if(c[e>>2]|0)c[c[g>>2]>>2]=c[(c[e>>2]|0)+8>>2]}RD();k=c[e>>2]|0;i=d;return k|0}function rE(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;o=i;i=i+624|0;q=o+100|0;l=o+96|0;k=o+92|0;n=o+88|0;h=o+84|0;j=o+80|0;p=o+104|0;r=o+76|0;m=o;c[q>>2]=b;c[l>>2]=d;c[k>>2]=e;c[n>>2]=f;c[h>>2]=g;c[j>>2]=0;c[c[k>>2]>>2]=0;c[c[n>>2]>>2]=0;c[c[h>>2]>>2]=0;if(!(c[l>>2]&526336)){if(!(c[l>>2]&8)){b=c[j>>2]|0;i=o;return b|0}c[c[k>>2]>>2]=384;b=c[j>>2]|0;i=o;return b|0}c[r>>2]=(Mb(c[q>>2]|0)|0)-1;while(1){if((a[(c[q>>2]|0)+(c[r>>2]|0)>>0]|0)==45)break;c[r>>2]=(c[r>>2]|0)+ -1}dF(p|0,c[q>>2]|0,c[r>>2]|0)|0;a[p+(c[r>>2]|0)>>0]=0;if(!(zb[c[37192+52>>2]&63](p,m)|0)){c[c[k>>2]>>2]=c[m+12>>2]&511;c[c[n>>2]>>2]=c[m+20>>2];c[c[h>>2]>>2]=c[m+24>>2];b=c[j>>2]|0;i=o;return b|0}else{c[j>>2]=1802;b=c[j>>2]|0;i=o;return b|0}return 0}function sE(a,d,f,g,h){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;j=i;i=i+48|0;o=j;s=j+40|0;r=j+36|0;u=j+32|0;n=j+28|0;t=j+24|0;p=j+20|0;q=j+16|0;k=j+12|0;l=j+8|0;m=j+4|0;c[s>>2]=a;c[r>>2]=d;c[u>>2]=f;c[n>>2]=g;c[t>>2]=h;c[q>>2]=c[u>>2];c[k>>2]=0;c[(c[q>>2]|0)+12>>2]=c[r>>2];c[(c[q>>2]|0)+4>>2]=c[s>>2];c[(c[q>>2]|0)+32>>2]=c[n>>2];b[(c[q>>2]|0)+18>>1]=c[t>>2]&255;if(pg((c[t>>2]&64|0)!=0?c[n>>2]|0:0,38136,1)|0){u=(c[q>>2]|0)+18|0;b[u>>1]=e[u>>1]|0|16}if(!(UE(c[(c[s>>2]|0)+16>>2]|0,1112)|0)){u=(c[q>>2]|0)+18|0;b[u>>1]=e[u>>1]|0|1}if(c[t>>2]&128)c[p>>2]=38016;else c[p>>2]=zb[c[c[(c[s>>2]|0)+20>>2]>>2]&63](c[n>>2]|0,c[q>>2]|0)|0;if((c[p>>2]|0)!=38144){if((c[p>>2]|0)==37112){c[m>>2]=(aF(c[n>>2]|0)|0)+6;c[l>>2]=fc(c[m>>2]|0)|0;if(!(c[l>>2]|0))c[k>>2]=7;else{a=c[m>>2]|0;u=c[l>>2]|0;c[o>>2]=c[n>>2];sc(a,u,38224,o)|0}c[(c[q>>2]|0)+24>>2]=c[l>>2]}}else{PD();c[k>>2]=tE(c[q>>2]|0,(c[q>>2]|0)+8|0)|0;if(c[k>>2]|0){TD(c[q>>2]|0,c[r>>2]|0,30114);c[r>>2]=-1}RD()}c[(c[q>>2]|0)+20>>2]=0;if(!(c[k>>2]|0)){c[c[q>>2]>>2]=c[p>>2];uE(c[q>>2]|0);u=c[k>>2]|0;i=j;return u|0}if((c[r>>2]|0)<0){u=c[k>>2]|0;i=j;return u|0}TD(c[q>>2]|0,c[r>>2]|0,30199);u=c[k>>2]|0;i=j;return u|0}function tE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;h=i;i=i+112|0;e=h+104|0;j=h+100|0;g=h+96|0;l=h+92|0;m=h+88|0;d=h+80|0;k=h+4|0;f=h;c[j>>2]=a;c[g>>2]=b;c[f>>2]=0;c[m>>2]=c[(c[j>>2]|0)+12>>2];c[l>>2]=zb[c[37192+64>>2]&63](c[m>>2]|0,k)|0;if(c[l>>2]|0){m=c[(Ya()|0)>>2]|0;c[(c[j>>2]|0)+20>>2]=m;if((c[(c[j>>2]|0)+20>>2]|0)==75){c[e>>2]=22;m=c[e>>2]|0;i=h;return m|0}else{c[e>>2]=10;m=c[e>>2]|0;i=h;return m|0}}c[d+0>>2]=0;c[d+4>>2]=0;c[d>>2]=c[k>>2];c[d+4>>2]=c[k+72>>2];c[f>>2]=c[9588];while(1){if(c[f>>2]|0)b=(TE(d,c[f>>2]|0,8)|0)!=0;else b=0;j=c[f>>2]|0;if(!b)break;c[f>>2]=c[j+32>>2]}if(!j){c[f>>2]=fc(40)|0;if(!(c[f>>2]|0)){c[e>>2]=7;m=c[e>>2]|0;i=h;return m|0}b=(c[f>>2]|0)+0|0;j=b+40|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(j|0));m=c[f>>2]|0;c[m+0>>2]=c[d+0>>2];c[m+4>>2]=c[d+4>>2];c[(c[f>>2]|0)+16>>2]=1;c[(c[f>>2]|0)+32>>2]=c[9588];c[(c[f>>2]|0)+36>>2]=0;if(c[9588]|0)c[(c[9588]|0)+36>>2]=c[f>>2];c[9588]=c[f>>2]}else{m=(c[f>>2]|0)+16|0;c[m>>2]=(c[m>>2]|0)+1}c[c[g>>2]>>2]=c[f>>2];c[e>>2]=0;m=c[e>>2]|0;i=h;return m|0}function uE(a){a=a|0;var d=0,f=0,g=0,h=0,j=0;d=i;i=i+96|0;g=d;f=d+84|0;h=d+8|0;j=d+4|0;c[f>>2]=a;if((e[(c[f>>2]|0)+18>>1]|0)&256){i=d;return}c[j>>2]=zb[c[37192+64>>2]&63](c[(c[f>>2]|0)+12>>2]|0,h)|0;if(c[j>>2]|0){c[g>>2]=c[(c[f>>2]|0)+32>>2];tc(28,38232,g);j=(c[f>>2]|0)+18|0;b[j>>1]=e[j>>1]|0|256;i=d;return}if((c[h+16>>2]|0)==0?((e[(c[f>>2]|0)+18>>1]|0)&32|0)==0:0){c[g>>2]=c[(c[f>>2]|0)+32>>2];tc(28,38256,g);j=(c[f>>2]|0)+18|0;b[j>>1]=e[j>>1]|0|256;i=d;return}a=c[f>>2]|0;if((c[h+16>>2]|0)>>>0>1){c[g>>2]=c[a+32>>2];tc(28,38288,g);j=(c[f>>2]|0)+18|0;b[j>>1]=e[j>>1]|0|256;i=d;return}if(!(cE(a)|0)){i=d;return}c[g>>2]=c[(c[f>>2]|0)+32>>2];tc(28,38320,g);j=(c[f>>2]|0)+18|0;b[j>>1]=e[j>>1]|0|256;i=d;return}function vE(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;e=d+8|0;b=d+4|0;f=d;c[e>>2]=a;c[b>>2]=0;c[f>>2]=c[e>>2];uE(c[f>>2]|0);xE(c[e>>2]|0,0)|0;PD();if((c[(c[f>>2]|0)+8>>2]|0)!=0?(c[(c[(c[f>>2]|0)+8>>2]|0)+24>>2]|0)!=0:0)EE(c[f>>2]|0);FE(c[f>>2]|0);c[b>>2]=kE(c[e>>2]|0)|0;RD();i=d;return c[b>>2]|0}function wE(e,f){e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;k=i;i=i+48|0;g=k+44|0;q=k+40|0;j=k+36|0;h=k+32|0;l=k+28|0;m=k+24|0;n=k+8|0;o=k;c[q>>2]=e;c[j>>2]=f;c[h>>2]=0;c[l>>2]=c[q>>2];c[o>>2]=0;if((d[(c[l>>2]|0)+16>>0]|0|0)>=(c[j>>2]|0)){c[g>>2]=0;q=c[g>>2]|0;i=k;return q|0}PD();c[m>>2]=c[(c[l>>2]|0)+8>>2];if((d[(c[l>>2]|0)+16>>0]|0|0)!=(d[(c[m>>2]|0)+12>>0]|0|0)?(c[j>>2]|0)>1?1:(d[(c[m>>2]|0)+12>>0]|0|0)>=3:0)c[h>>2]=5;else p=6;a:do if((p|0)==6){do if((c[j>>2]|0)==1){if((d[(c[m>>2]|0)+12>>0]|0|0)!=1?(d[(c[m>>2]|0)+12>>0]|0|0)!=2:0)break;a[(c[l>>2]|0)+16>>0]=1;q=(c[m>>2]|0)+8|0;c[q>>2]=(c[q>>2]|0)+1;q=(c[m>>2]|0)+24|0;c[q>>2]=(c[q>>2]|0)+1;break a}while(0);c[n+8>>2]=1;b[n+2>>1]=0;if((c[j>>2]|0)!=1){if((c[j>>2]|0)==4?(d[(c[l>>2]|0)+16>>0]|0|0)<3:0)p=13}else p=13;if((p|0)==13?(b[n>>1]=(c[j>>2]|0)==1?0:1,c[n+4>>2]=c[282],(CE(c[l>>2]|0,n)|0)!=0):0){c[o>>2]=c[(Ya()|0)>>2];c[h>>2]=hE(c[o>>2]|0,3850)|0;if((c[h>>2]|0)==5)break;c[(c[l>>2]|0)+20>>2]=c[o>>2];break}do if((c[j>>2]|0)!=1){if((c[j>>2]|0)==4?(c[(c[m>>2]|0)+8>>2]|0)>1:0){c[h>>2]=5;break}b[n>>1]=1;p=c[282]|0;if((c[j>>2]|0)==2){c[n+4>>2]=p+1;c[n+8>>2]=1}else{c[n+4>>2]=p+2;c[n+8>>2]=510}if((CE(c[l>>2]|0,n)|0)!=0?(c[o>>2]=c[(Ya()|0)>>2],c[h>>2]=hE(c[o>>2]|0,3850)|0,(c[h>>2]|0)!=5):0)c[(c[l>>2]|0)+20>>2]=c[o>>2]}else{c[n+4>>2]=(c[282]|0)+2;c[n+8>>2]=510;if(CE(c[l>>2]|0,n)|0){c[o>>2]=c[(Ya()|0)>>2];c[h>>2]=hE(c[o>>2]|0,3850)|0}c[n+4>>2]=c[282];c[n+8>>2]=1;b[n>>1]=2;q=(CE(c[l>>2]|0,n)|0)!=0;if(q&(c[h>>2]|0)==0){c[o>>2]=c[(Ya()|0)>>2];c[h>>2]=2058}if(!(c[h>>2]|0)){a[(c[l>>2]|0)+16>>0]=1;q=(c[m>>2]|0)+24|0;c[q>>2]=(c[q>>2]|0)+1;c[(c[m>>2]|0)+8>>2]=1;break}if((c[h>>2]|0)==5)break a;c[(c[l>>2]|0)+20>>2]=c[o>>2];break a}while(0);n=c[j>>2]|0;if(!(c[h>>2]|0)){a[(c[l>>2]|0)+16>>0]=n;a[(c[m>>2]|0)+12>>0]=c[j>>2];break}if((n|0)==4){a[(c[l>>2]|0)+16>>0]=3;a[(c[m>>2]|0)+12>>0]=3}}while(0);RD();c[g>>2]=c[h>>2];q=c[g>>2]|0;i=k;return q|0}function xE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=BE(c[f>>2]|0,c[e>>2]|0,0)|0;i=d;return a|0}function yE(e,f){e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;m=i;i=i+48|0;j=m;o=m+40|0;l=m+36|0;n=m+32|0;k=m+28|0;h=m+24|0;g=m+8|0;c[o>>2]=e;c[l>>2]=f;c[n>>2]=0;c[k>>2]=0;c[h>>2]=c[o>>2];PD();if((d[(c[(c[h>>2]|0)+8>>2]|0)+12>>0]|0)>1)c[k>>2]=1;do if((c[k>>2]|0)==0?(a[(c[(c[h>>2]|0)+8>>2]|0)+13>>0]|0)==0:0){b[g+2>>1]=0;c[g+4>>2]=(c[282]|0)+1;c[g+8>>2]=1;b[g>>1]=1;e=c[9320]|0;o=c[(c[h>>2]|0)+12>>2]|0;c[j>>2]=g;if(pb[e&31](o,12,j)|0){c[n>>2]=3594;o=c[(Ya()|0)>>2]|0;c[(c[h>>2]|0)+20>>2]=o;break}if((b[g>>1]|0)!=2)c[k>>2]=1}while(0);RD();c[c[l>>2]>>2]=c[k>>2];i=m;return c[n>>2]|0}function zE(a,f,g,h,j){a=a|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;l=i;i=i+160|0;k=l+148|0;E=l+144|0;n=l+140|0;r=l+136|0;z=l+132|0;p=l+128|0;C=l+124|0;D=l+120|0;m=l+116|0;o=l+112|0;t=l+108|0;u=l+104|0;v=l+100|0;x=l+96|0;y=l+20|0;q=l+16|0;w=l+12|0;B=l+8|0;A=l+4|0;s=l;c[E>>2]=a;c[n>>2]=f;c[r>>2]=g;c[z>>2]=h;c[p>>2]=j;c[C>>2]=c[E>>2];c[o>>2]=0;c[t>>2]=SD()|0;if((c[(c[C>>2]|0)+36>>2]|0)==0?(c[o>>2]=AE(c[C>>2]|0)|0,(c[o>>2]|0)!=0):0){c[k>>2]=c[o>>2];E=c[k>>2]|0;i=l;return E|0}c[D>>2]=c[(c[C>>2]|0)+36>>2];c[m>>2]=c[c[D>>2]>>2];c[u>>2]=$(((c[n>>2]|0)+(c[t>>2]|0)|0)/(c[t>>2]|0)|0,c[t>>2]|0)|0;a:do if((e[(c[m>>2]|0)+20>>1]|0|0)<(c[u>>2]|0)){c[x>>2]=$(c[u>>2]|0,c[r>>2]|0)|0;c[(c[m>>2]|0)+16>>2]=c[r>>2];b:do if((c[(c[m>>2]|0)+12>>2]|0)>=0){if(zb[c[37192+64>>2]&63](c[(c[m>>2]|0)+12>>2]|0,y)|0){c[o>>2]=4874;break a}if((c[y+36>>2]|0)<(c[x>>2]|0)){if(!(c[z>>2]|0))break a;c[q>>2]=(c[y+36>>2]|0)/4096|0;while(1){if((c[q>>2]|0)>=((c[x>>2]|0)/4096|0|0))break b;E=(c[q>>2]<<12)+4096-1|0;if((gE(c[(c[m>>2]|0)+12>>2]|0,E,((E|0)<0)<<31>>31,1216,1,0)|0)!=1)break;c[q>>2]=(c[q>>2]|0)+1}c[w>>2]=c[(c[m>>2]|0)+8>>2];c[o>>2]=UD(4874,37616,c[w>>2]|0,29258)|0;break a}}while(0);c[v>>2]=jc(c[(c[m>>2]|0)+24>>2]|0,c[u>>2]<<2)|0;if(!(c[v>>2]|0)){c[o>>2]=3082;break}c[(c[m>>2]|0)+24>>2]=c[v>>2];while(1){if((e[(c[m>>2]|0)+20>>1]|0|0)>=(c[u>>2]|0))break a;c[B>>2]=$(c[r>>2]|0,c[t>>2]|0)|0;if((c[(c[m>>2]|0)+12>>2]|0)>=0){h=c[9362]|0;g=c[B>>2]|0;f=(d[(c[m>>2]|0)+22>>0]|0|0)!=0?1:3;a=c[(c[m>>2]|0)+12>>2]|0;E=c[r>>2]|0;E=lF(E|0,((E|0)<0)<<31>>31|0,e[(c[m>>2]|0)+20>>1]|0|0,0)|0;c[s>>2]=tb[h&1](0,g,f,1,a,E)|0;if((c[s>>2]|0)==(-1|0)){q=21;break}}else{c[s>>2]=fc(c[r>>2]|0)|0;if(!(c[s>>2]|0)){q=23;break}_E(c[s>>2]|0,0,c[r>>2]|0)|0}c[A>>2]=0;while(1){if((c[A>>2]|0)>=(c[t>>2]|0))break;E=$(c[r>>2]|0,c[A>>2]|0)|0;c[(c[(c[m>>2]|0)+24>>2]|0)+((e[(c[m>>2]|0)+20>>1]|0)+(c[A>>2]|0)<<2)>>2]=(c[s>>2]|0)+E;c[A>>2]=(c[A>>2]|0)+1}E=(c[m>>2]|0)+20|0;b[E>>1]=(e[E>>1]|0)+(c[t>>2]|0)}if((q|0)==21){c[o>>2]=UD(5386,37720,c[(c[m>>2]|0)+8>>2]|0,29285)|0;break}else if((q|0)==23){c[o>>2]=7;break}}while(0);if((e[(c[m>>2]|0)+20>>1]|0|0)>(c[n>>2]|0))c[c[p>>2]>>2]=c[(c[(c[m>>2]|0)+24>>2]|0)+(c[n>>2]<<2)>>2];else c[c[p>>2]>>2]=0;if((c[o>>2]|0)==0?(d[(c[m>>2]|0)+22>>0]|0|0)!=0:0)c[o>>2]=8;c[k>>2]=c[o>>2];E=c[k>>2]|0;i=l;return E|0}function AE(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;m=i;i=i+128|0;r=m;g=m+112|0;h=m+108|0;j=m+104|0;l=m+100|0;k=m+96|0;p=m+92|0;e=m+88|0;q=m+84|0;o=m+8|0;n=m+4|0;c[h>>2]=b;c[j>>2]=0;c[j>>2]=fc(16)|0;if(!(c[j>>2]|0)){c[g>>2]=7;b=c[g>>2]|0;i=m;return b|0}b=c[j>>2]|0;c[b+0>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;PD();c[p>>2]=c[(c[h>>2]|0)+8>>2];c[l>>2]=c[(c[p>>2]|0)+20>>2];a:do if(!(c[l>>2]|0)){if((zb[c[37192+64>>2]&63](c[(c[h>>2]|0)+12>>2]|0,o)|0)!=0?(d[(c[p>>2]|0)+13>>0]|0|0)==0:0)c[k>>2]=1802;else f=7;do if((f|0)==7){c[q>>2]=6+(aF(c[(c[h>>2]|0)+32>>2]|0)|0);c[l>>2]=fc(36+(c[q>>2]|0)|0)|0;if(!(c[l>>2]|0)){c[k>>2]=7;break}_E(c[l>>2]|0,0,36+(c[q>>2]|0)|0)|0;b=(c[l>>2]|0)+36|0;c[(c[l>>2]|0)+8>>2]=b;c[e>>2]=b;q=c[q>>2]|0;b=c[e>>2]|0;c[r>>2]=c[(c[h>>2]|0)+32>>2];sc(q,b,38360,r)|0;c[(c[l>>2]|0)+12>>2]=-1;c[(c[(c[h>>2]|0)+8>>2]|0)+20>>2]=c[l>>2];c[c[l>>2]>>2]=c[(c[h>>2]|0)+8>>2];c[(c[l>>2]|0)+4>>2]=8;if(!(c[(c[l>>2]|0)+4>>2]|0)){c[k>>2]=7;break}if(d[(c[p>>2]|0)+13>>0]|0)break a;c[n>>2]=66;if(pg(c[(c[h>>2]|0)+32>>2]|0,38368,0)|0){c[n>>2]=0;a[(c[l>>2]|0)+22>>0]=1}b=ZD(c[e>>2]|0,c[n>>2]|0,c[o+12>>2]&511)|0;c[(c[l>>2]|0)+12>>2]=b;if((c[(c[l>>2]|0)+12>>2]|0)<0){b=Ij(29111)|0;c[k>>2]=UD(b,37536,c[e>>2]|0,29111)|0;break}pb[c[37192+244>>2]&31](c[(c[l>>2]|0)+12>>2]|0,c[o+20>>2]|0,c[o+24>>2]|0)|0;c[k>>2]=0;if((_D(c[l>>2]|0,1,128,1)|0)==0?(eE(c[(c[l>>2]|0)+12>>2]|0,0,0)|0)!=0:0)c[k>>2]=UD(4618,37568,c[e>>2]|0,29127)|0;if(!(c[k>>2]|0))c[k>>2]=_D(c[l>>2]|0,0,128,1)|0;if(!(c[k>>2]|0))break a}while(0);QD(c[h>>2]|0);hc(c[j>>2]|0);RD();c[g>>2]=c[k>>2];b=c[g>>2]|0;i=m;return b|0}while(0);c[c[j>>2]>>2]=c[l>>2];b=(c[l>>2]|0)+28|0;c[b>>2]=(c[b>>2]|0)+1;c[(c[h>>2]|0)+36>>2]=c[j>>2];RD();c[(c[j>>2]|0)+4>>2]=c[(c[l>>2]|0)+32>>2];c[(c[l>>2]|0)+32>>2]=c[j>>2];c[g>>2]=0;b=c[g>>2]|0;i=m;return b|0}function BE(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;n=i;i=i+48|0;k=n+44|0;q=n+40|0;l=n+36|0;h=n+28|0;o=n+24|0;p=n+8|0;m=n;c[q>>2]=e;c[l>>2]=f;c[n+32>>2]=g;c[h>>2]=c[q>>2];c[m>>2]=0;if((d[(c[h>>2]|0)+16>>0]|0|0)<=(c[l>>2]|0)){c[k>>2]=0;q=c[k>>2]|0;i=n;return q|0}PD();c[o>>2]=c[(c[h>>2]|0)+8>>2];do if((d[(c[h>>2]|0)+16>>0]|0|0)>1){if((c[l>>2]|0)==1?(b[p>>1]=0,b[p+2>>1]=0,c[p+4>>2]=(c[282]|0)+2,c[p+8>>2]=510,(CE(c[h>>2]|0,p)|0)!=0):0){c[m>>2]=2314;q=c[(Ya()|0)>>2]|0;c[(c[h>>2]|0)+20>>2]=q;break}b[p>>1]=2;b[p+2>>1]=0;c[p+4>>2]=c[282];c[p+8>>2]=2;if(!(CE(c[h>>2]|0,p)|0)){a[(c[o>>2]|0)+12>>0]=1;j=10;break}else{c[m>>2]=2058;q=c[(Ya()|0)>>2]|0;c[(c[h>>2]|0)+20>>2]=q;break}}else j=10;while(0);if((j|0)==10?(c[l>>2]|0)==0:0){q=(c[o>>2]|0)+8|0;c[q>>2]=(c[q>>2]|0)+ -1;do if(!(c[(c[o>>2]|0)+8>>2]|0)){b[p>>1]=2;b[p+2>>1]=0;c[p+8>>2]=0;c[p+4>>2]=0;if(!(CE(c[h>>2]|0,p)|0)){a[(c[o>>2]|0)+12>>0]=0;break}else{c[m>>2]=2058;q=c[(Ya()|0)>>2]|0;c[(c[h>>2]|0)+20>>2]=q;a[(c[o>>2]|0)+12>>0]=0;a[(c[h>>2]|0)+16>>0]=0;break}}while(0);q=(c[o>>2]|0)+24|0;c[q>>2]=(c[q>>2]|0)+ -1;if(!(c[(c[o>>2]|0)+24>>2]|0))DE(c[h>>2]|0)}RD();if(!(c[m>>2]|0))a[(c[h>>2]|0)+16>>0]=c[l>>2];c[k>>2]=c[m>>2];q=c[k>>2]|0;i=n;return q|0}function CE(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;k=i;i=i+48|0;n=k;j=k+40|0;l=k+36|0;h=k+32|0;m=k+28|0;o=k+24|0;p=k+8|0;c[l>>2]=f;c[h>>2]=g;c[o>>2]=c[(c[l>>2]|0)+8>>2];if(((e[(c[l>>2]|0)+18>>1]|0)&1|0)==0?(d[(c[o>>2]|0)+13>>0]|0|0)==0:0)g=9;else g=3;do if((g|0)==3)if(!((e[(c[l>>2]|0)+18>>1]|0)&2)){if(d[(c[o>>2]|0)+13>>0]|0){c[m>>2]=0;break}b[p+2>>1]=0;c[p+4>>2]=(c[282]|0)+2;c[p+8>>2]=510;b[p>>1]=1;h=c[9320]|0;f=c[(c[l>>2]|0)+12>>2]|0;c[n>>2]=p;c[m>>2]=pb[h&31](f,13,n)|0;if((c[m>>2]|0)>=0){a[(c[o>>2]|0)+13>>0]=1;f=(c[o>>2]|0)+24|0;c[f>>2]=(c[f>>2]|0)+1;break}c[j>>2]=c[m>>2];f=c[j>>2]|0;i=k;return f|0}else g=9;while(0);if((g|0)==9){g=c[9320]|0;f=c[(c[l>>2]|0)+12>>2]|0;c[n>>2]=c[h>>2];c[m>>2]=pb[g&31](f,13,n)|0}c[j>>2]=c[m>>2];f=c[j>>2]|0;i=k;return f|0}function DE(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+12|0;b=d+8|0;e=d+4|0;f=d;c[g>>2]=a;c[b>>2]=c[(c[g>>2]|0)+8>>2];c[e>>2]=c[(c[b>>2]|0)+28>>2];while(1){if(!(c[e>>2]|0))break;c[f>>2]=c[(c[e>>2]|0)+8>>2];TD(c[g>>2]|0,c[c[e>>2]>>2]|0,25997);hc(c[e>>2]|0);c[e>>2]=c[f>>2]}c[(c[b>>2]|0)+28>>2]=0;i=d;return}function EE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=c[(c[d>>2]|0)+8>>2];c[f>>2]=c[(c[d>>2]|0)+28>>2];c[(c[f>>2]|0)+8>>2]=c[(c[e>>2]|0)+28>>2];c[(c[e>>2]|0)+28>>2]=c[f>>2];c[(c[d>>2]|0)+12>>2]=-1;c[(c[d>>2]|0)+28>>2]=0;i=b;return}function FE(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=c[(c[e>>2]|0)+8>>2];if(!(c[d>>2]|0)){i=b;return}a=(c[d>>2]|0)+16|0;c[a>>2]=(c[a>>2]|0)+ -1;if(c[(c[d>>2]|0)+16>>2]|0){i=b;return}DE(c[e>>2]|0);a=c[(c[d>>2]|0)+32>>2]|0;if(c[(c[d>>2]|0)+36>>2]|0)c[(c[(c[d>>2]|0)+36>>2]|0)+32>>2]=a;else c[9588]=a;if(c[(c[d>>2]|0)+32>>2]|0)c[(c[(c[d>>2]|0)+32>>2]|0)+36>>2]=c[(c[d>>2]|0)+36>>2];hc(c[d>>2]|0);i=b;return}function GE(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d+4>>2]=a;c[d>>2]=b;i=d;return 38144}function HE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b;e=b+8|0;c[e>>2]=a;if((c[c[e>>2]>>2]|0)<=(c[(c[e>>2]|0)+4>>2]|0)){e=d;c[e>>2]=0;c[e+4>>2]=0;e=d;e=c[e>>2]|0;d=d+4|0;d=c[d>>2]|0;D=d;i=b;return e|0}else{f=(c[e>>2]|0)+4|0;a=c[f>>2]|0;c[f>>2]=a+1;a=Ld(c[(c[(c[e>>2]|0)+8>>2]|0)+(a<<2)>>2]|0)|0;e=d;c[e>>2]=a;c[e+4>>2]=D;e=d;e=c[e>>2]|0;d=d+4|0;d=c[d>>2]|0;D=d;i=b;return e|0}return 0}function IE(a){a=a|0;var b=0,d=0,e=0,f=0.0,g=0;b=i;i=i+16|0;d=b;e=b+8|0;c[e>>2]=a;if((c[c[e>>2]>>2]|0)<=(c[(c[e>>2]|0)+4>>2]|0)){h[d>>3]=0.0;f=+h[d>>3];i=b;return+f}else{g=(c[e>>2]|0)+4|0;a=c[g>>2]|0;c[g>>2]=a+1;h[d>>3]=+Hd(c[(c[(c[e>>2]|0)+8>>2]|0)+(a<<2)>>2]|0);f=+h[d>>3];i=b;return+f}return 0.0}function JE(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0;e=i;i=i+32|0;f=e+20|0;j=e+16|0;l=e+12|0;g=e+8|0;k=e;c[j>>2]=b;c[l>>2]=d;if((c[c[l>>2]>>2]|0)<=0){a[f>>0]=48;b=a[f>>0]|0;i=e;return b|0}else{b=c[l>>2]|0;c[b>>2]=(c[b>>2]|0)+ -1;c[g>>2]=~~+h[c[j>>2]>>3];h[k>>3]=+(c[g>>2]|0);c[g>>2]=(c[g>>2]|0)+48;h[c[j>>2]>>3]=(+h[c[j>>2]>>3]- +h[k>>3])*10.0;a[f>>0]=c[g>>2];b=a[f>>0]|0;i=e;return b|0}return 0}function KE(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+4|0;e=b;c[e>>2]=a;if((c[c[e>>2]>>2]|0)<=(c[(c[e>>2]|0)+4>>2]|0)){c[d>>2]=0;e=c[d>>2]|0;i=b;return e|0}else{f=(c[e>>2]|0)+4|0;a=c[f>>2]|0;c[f>>2]=a+1;c[d>>2]=Ed(c[(c[(c[e>>2]|0)+8>>2]|0)+(a<<2)>>2]|0)|0;e=c[d>>2]|0;i=b;return e|0}return 0}function LE(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;j=f+4|0;g=f;h=f+8|0;c[j>>2]=b;c[g>>2]=d;a[h>>0]=e;if(((c[(c[j>>2]|0)+12>>2]|0)+(c[g>>2]|0)|0)>=(c[(c[j>>2]|0)+16>>2]|0)?(b=Xm(c[j>>2]|0,c[g>>2]|0)|0,c[g>>2]=b,(b|0)<=0):0){i=f;return}while(1){b=c[g>>2]|0;c[g>>2]=b+ -1;if((b|0)<=0)break;d=a[h>>0]|0;e=(c[j>>2]|0)+12|0;b=c[e>>2]|0;c[e>>2]=b+1;a[(c[(c[j>>2]|0)+8>>2]|0)+b>>0]=d}i=f;return}function ME(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[48+(c[b>>2]<<2)>>2]|0}function NE(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+32|0;g=b+16|0;d=b+12|0;e=b;f=b+8|0;c[g>>2]=a;if(!(c[38]|0)){i=b;return}c[d>>2]=c[38];h=ME(0)|0;a=e;c[a>>2]=h;c[a+4>>2]=((h|0)<0)<<31>>31;c[f>>2]=c[39];c[38]=0;Bb[c[d>>2]&3](c[f>>2]|0,c[e>>2]|0,c[e+4>>2]|0,c[g>>2]|0);c[38]=c[d>>2];c[39]=c[f>>2];i=b;return}function OE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=Bk(c[e>>2]|0,c[f>>2]|0)|0;a=c[(c[e>>2]|0)+520>>2]|0;c[a>>2]=(c[a>>2]|0)+b;i=d;return}function PE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;g=i;i=i+32|0;j=g+16|0;e=g+12|0;f=g+8|0;d=g+4|0;h=g;c[j>>2]=a;c[e>>2]=b;c[f>>2]=ub[c[38640+52>>2]&31](c[j>>2]|0)|0;Bg(5,c[j>>2]|0);do if(c[38]|0){c[h>>2]=ME(0)|0;a=c[h>>2]|0;b=((a|0)<0)<<31>>31;h=144|0;j=c[f>>2]|0;j=ZE(c[h>>2]|0,c[h+4>>2]|0,j|0,((j|0)<0)<<31>>31|0)|0;h=D;if((b|0)>(h|0)|(b|0)==(h|0)&a>>>0>=j>>>0){c[43]=1;NE(c[f>>2]|0);break}else{c[43]=0;break}}while(0);c[d>>2]=ub[c[38640+36>>2]&31](c[f>>2]|0)|0;if(!(c[d>>2]|0)){a=c[d>>2]|0;j=c[e>>2]|0;c[j>>2]=a;j=c[f>>2]|0;i=g;return j|0}c[f>>2]=Tb(c[d>>2]|0)|0;ic(0,c[f>>2]|0);ic(9,1);a=c[d>>2]|0;j=c[e>>2]|0;c[j>>2]=a;j=c[f>>2]|0;i=g;return j|0}function QE(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;b=i;do if(a>>>0<245){if(a>>>0<11)a=16;else a=a+11&-8;x=a>>>3;p=c[9750]|0;w=p>>>x;if(w&3){g=(w&1^1)+x|0;f=g<<1;d=39040+(f<<2)|0;f=39040+(f+2<<2)|0;h=c[f>>2]|0;j=h+8|0;e=c[j>>2]|0;do if((d|0)!=(e|0)){if(e>>>0<(c[9754]|0)>>>0)db();k=e+12|0;if((c[k>>2]|0)==(h|0)){c[k>>2]=d;c[f>>2]=e;break}else db()}else c[9750]=p&~(1<>2]=H|3;H=h+(H|4)|0;c[H>>2]=c[H>>2]|1;H=j;i=b;return H|0}v=c[9752]|0;if(a>>>0>v>>>0){if(w){h=2<>>12&16;h=h>>>d;j=h>>>5&8;h=h>>>j;f=h>>>2&4;h=h>>>f;g=h>>>1&2;h=h>>>g;e=h>>>1&1;e=(j|d|f|g|e)+(h>>>e)|0;h=e<<1;g=39040+(h<<2)|0;h=39040+(h+2<<2)|0;f=c[h>>2]|0;d=f+8|0;j=c[d>>2]|0;do if((g|0)!=(j|0)){if(j>>>0<(c[9754]|0)>>>0)db();k=j+12|0;if((c[k>>2]|0)==(f|0)){c[k>>2]=g;c[h>>2]=j;E=c[9752]|0;break}else db()}else{c[9750]=p&~(1<>2]=a|3;g=f+a|0;c[f+(a|4)>>2]=e|1;c[f+H>>2]=e;if(E){f=c[9755]|0;l=E>>>3;j=l<<1;h=39040+(j<<2)|0;k=c[9750]|0;l=1<>2]|0;if(k>>>0<(c[9754]|0)>>>0)db();else{D=j;C=k}}else{c[9750]=k|l;D=39040+(j+2<<2)|0;C=h}c[D>>2]=f;c[C+12>>2]=f;c[f+8>>2]=C;c[f+12>>2]=h}c[9752]=e;c[9755]=g;H=d;i=b;return H|0}p=c[9751]|0;if(p){d=(p&0-p)+ -1|0;G=d>>>12&16;d=d>>>G;F=d>>>5&8;d=d>>>F;H=d>>>2&4;d=d>>>H;f=d>>>1&2;d=d>>>f;e=d>>>1&1;e=c[39304+((F|G|H|f|e)+(d>>>e)<<2)>>2]|0;d=(c[e+4>>2]&-8)-a|0;f=e;while(1){g=c[f+16>>2]|0;if(!g){g=c[f+20>>2]|0;if(!g)break}f=(c[g+4>>2]&-8)-a|0;H=f>>>0>>0;d=H?f:d;f=g;e=H?g:e}h=c[9754]|0;if(e>>>0>>0)db();f=e+a|0;if(e>>>0>=f>>>0)db();g=c[e+24>>2]|0;k=c[e+12>>2]|0;do if((k|0)==(e|0)){k=e+20|0;j=c[k>>2]|0;if(!j){k=e+16|0;j=c[k>>2]|0;if(!j){B=0;break}}while(1){l=j+20|0;m=c[l>>2]|0;if(m){j=m;k=l;continue}l=j+16|0;m=c[l>>2]|0;if(!m)break;else{j=m;k=l}}if(k>>>0>>0)db();else{c[k>>2]=0;B=j;break}}else{j=c[e+8>>2]|0;if(j>>>0>>0)db();h=j+12|0;if((c[h>>2]|0)!=(e|0))db();l=k+8|0;if((c[l>>2]|0)==(e|0)){c[h>>2]=k;c[l>>2]=j;B=k;break}else db()}while(0);do if(g){j=c[e+28>>2]|0;h=39304+(j<<2)|0;if((e|0)==(c[h>>2]|0)){c[h>>2]=B;if(!B){c[9751]=c[9751]&~(1<>>0<(c[9754]|0)>>>0)db();h=g+16|0;if((c[h>>2]|0)==(e|0))c[h>>2]=B;else c[g+20>>2]=B;if(!B)break}h=c[9754]|0;if(B>>>0>>0)db();c[B+24>>2]=g;g=c[e+16>>2]|0;do if(g)if(g>>>0>>0)db();else{c[B+16>>2]=g;c[g+24>>2]=B;break}while(0);g=c[e+20>>2]|0;if(g)if(g>>>0<(c[9754]|0)>>>0)db();else{c[B+20>>2]=g;c[g+24>>2]=B;break}}while(0);if(d>>>0<16){H=d+a|0;c[e+4>>2]=H|3;H=e+(H+4)|0;c[H>>2]=c[H>>2]|1}else{c[e+4>>2]=a|3;c[e+(a|4)>>2]=d|1;c[e+(d+a)>>2]=d;h=c[9752]|0;if(h){g=c[9755]|0;k=h>>>3;l=k<<1;h=39040+(l<<2)|0;j=c[9750]|0;k=1<>2]|0;if(k>>>0<(c[9754]|0)>>>0)db();else{A=j;z=k}}else{c[9750]=j|k;A=39040+(l+2<<2)|0;z=h}c[A>>2]=g;c[z+12>>2]=g;c[g+8>>2]=z;c[g+12>>2]=h}c[9752]=d;c[9755]=f}H=e+8|0;i=b;return H|0}}}else if(a>>>0<=4294967231){z=a+11|0;a=z&-8;B=c[9751]|0;if(B){A=0-a|0;z=z>>>8;if(z)if(a>>>0>16777215)C=31;else{G=(z+1048320|0)>>>16&8;H=z<>>16&4;H=H<>>16&2;C=14-(F|G|C)+(H<>>15)|0;C=a>>>(C+7|0)&1|C<<1}else C=0;D=c[39304+(C<<2)>>2]|0;a:do if(!D){F=0;z=0}else{if((C|0)==31)z=0;else z=25-(C>>>1)|0;F=0;E=a<>2]&-8;H=G-a|0;if(H>>>0>>0)if((G|0)==(a|0)){A=H;F=D;z=D;break a}else{A=H;z=D}H=c[D+20>>2]|0;D=c[D+(E>>>31<<2)+16>>2]|0;F=(H|0)==0|(H|0)==(D|0)?F:H;if(!D)break;else E=E<<1}}while(0);if((F|0)==0&(z|0)==0){H=2<>>12&16;H=H>>>D;C=H>>>5&8;H=H>>>C;E=H>>>2&4;H=H>>>E;G=H>>>1&2;H=H>>>G;F=H>>>1&1;F=c[39304+((C|D|E|G|F)+(H>>>F)<<2)>>2]|0}if(F)while(1){H=(c[F+4>>2]&-8)-a|0;B=H>>>0>>0;A=B?H:A;z=B?F:z;B=c[F+16>>2]|0;if(B){F=B;continue}F=c[F+20>>2]|0;if(!F)break}if((z|0)!=0?A>>>0<((c[9752]|0)-a|0)>>>0:0){f=c[9754]|0;if(z>>>0>>0)db();d=z+a|0;if(z>>>0>=d>>>0)db();e=c[z+24>>2]|0;g=c[z+12>>2]|0;do if((g|0)==(z|0)){h=z+20|0;g=c[h>>2]|0;if(!g){h=z+16|0;g=c[h>>2]|0;if(!g){x=0;break}}while(1){j=g+20|0;k=c[j>>2]|0;if(k){g=k;h=j;continue}j=g+16|0;k=c[j>>2]|0;if(!k)break;else{g=k;h=j}}if(h>>>0>>0)db();else{c[h>>2]=0;x=g;break}}else{h=c[z+8>>2]|0;if(h>>>0>>0)db();j=h+12|0;if((c[j>>2]|0)!=(z|0))db();f=g+8|0;if((c[f>>2]|0)==(z|0)){c[j>>2]=g;c[f>>2]=h;x=g;break}else db()}while(0);do if(e){f=c[z+28>>2]|0;g=39304+(f<<2)|0;if((z|0)==(c[g>>2]|0)){c[g>>2]=x;if(!x){c[9751]=c[9751]&~(1<>>0<(c[9754]|0)>>>0)db();f=e+16|0;if((c[f>>2]|0)==(z|0))c[f>>2]=x;else c[e+20>>2]=x;if(!x)break}f=c[9754]|0;if(x>>>0>>0)db();c[x+24>>2]=e;e=c[z+16>>2]|0;do if(e)if(e>>>0>>0)db();else{c[x+16>>2]=e;c[e+24>>2]=x;break}while(0);e=c[z+20>>2]|0;if(e)if(e>>>0<(c[9754]|0)>>>0)db();else{c[x+20>>2]=e;c[e+24>>2]=x;break}}while(0);b:do if(A>>>0>=16){c[z+4>>2]=a|3;c[z+(a|4)>>2]=A|1;c[z+(A+a)>>2]=A;f=A>>>3;if(A>>>0<256){h=f<<1;e=39040+(h<<2)|0;g=c[9750]|0;f=1<>2]|0;if(g>>>0>=(c[9754]|0)>>>0){w=f;v=g;break}db()}while(0);c[w>>2]=d;c[v+12>>2]=d;c[z+(a+8)>>2]=v;c[z+(a+12)>>2]=e;break}e=A>>>8;if(e)if(A>>>0>16777215)e=31;else{G=(e+1048320|0)>>>16&8;H=e<>>16&4;H=H<>>16&2;e=14-(F|G|e)+(H<>>15)|0;e=A>>>(e+7|0)&1|e<<1}else e=0;f=39304+(e<<2)|0;c[z+(a+28)>>2]=e;c[z+(a+20)>>2]=0;c[z+(a+16)>>2]=0;g=c[9751]|0;h=1<>2]=d;c[z+(a+24)>>2]=f;c[z+(a+12)>>2]=d;c[z+(a+8)>>2]=d;break}h=c[f>>2]|0;if((e|0)==31)e=0;else e=25-(e>>>1)|0;c:do if((c[h+4>>2]&-8|0)!=(A|0)){e=A<>>31<<2)+16|0;f=c[g>>2]|0;if(!f)break;if((c[f+4>>2]&-8|0)==(A|0)){p=f;break c}else{e=e<<1;h=f}}if(g>>>0<(c[9754]|0)>>>0)db();else{c[g>>2]=d;c[z+(a+24)>>2]=h;c[z+(a+12)>>2]=d;c[z+(a+8)>>2]=d;break b}}else p=h;while(0);f=p+8|0;e=c[f>>2]|0;H=c[9754]|0;if(p>>>0>=H>>>0&e>>>0>=H>>>0){c[e+12>>2]=d;c[f>>2]=d;c[z+(a+8)>>2]=e;c[z+(a+12)>>2]=p;c[z+(a+24)>>2]=0;break}else db()}else{H=A+a|0;c[z+4>>2]=H|3;H=z+(H+4)|0;c[H>>2]=c[H>>2]|1}while(0);H=z+8|0;i=b;return H|0}}}else a=-1;while(0);p=c[9752]|0;if(p>>>0>=a>>>0){e=p-a|0;d=c[9755]|0;if(e>>>0>15){c[9755]=d+a;c[9752]=e;c[d+(a+4)>>2]=e|1;c[d+p>>2]=e;c[d+4>>2]=a|3}else{c[9752]=0;c[9755]=0;c[d+4>>2]=p|3;H=d+(p+4)|0;c[H>>2]=c[H>>2]|1}H=d+8|0;i=b;return H|0}p=c[9753]|0;if(p>>>0>a>>>0){G=p-a|0;c[9753]=G;H=c[9756]|0;c[9756]=H+a;c[H+(a+4)>>2]=G|1;c[H+4>>2]=a|3;H=H+8|0;i=b;return H|0}do if(!(c[9868]|0)){p=Pa(30)|0;if(!(p+ -1&p)){c[9870]=p;c[9869]=p;c[9871]=-1;c[9872]=-1;c[9873]=0;c[9861]=0;c[9868]=(eb(0)|0)&-16^1431655768;break}else db()}while(0);x=a+48|0;p=c[9870]|0;w=a+47|0;A=p+w|0;p=0-p|0;v=A&p;if(v>>>0<=a>>>0){H=0;i=b;return H|0}z=c[9860]|0;if((z|0)!=0?(G=c[9858]|0,H=G+v|0,H>>>0<=G>>>0|H>>>0>z>>>0):0){H=0;i=b;return H|0}d:do if(!(c[9861]&4)){B=c[9756]|0;e:do if(B){z=39448|0;while(1){C=c[z>>2]|0;if(C>>>0<=B>>>0?(y=z+4|0,(C+(c[y>>2]|0)|0)>>>0>B>>>0):0)break;z=c[z+8>>2]|0;if(!z){o=181;break e}}if(z){A=A-(c[9753]|0)&p;if(A>>>0<2147483647){p=La(A|0)|0;if((p|0)==((c[z>>2]|0)+(c[y>>2]|0)|0)){z=A;o=190}else{z=A;o=191}}else z=0}else o=181}else o=181;while(0);do if((o|0)==181){y=La(0)|0;if((y|0)!=(-1|0)){A=y;z=c[9869]|0;p=z+ -1|0;if(!(p&A))z=v;else z=v-A+(p+A&0-z)|0;p=c[9858]|0;A=p+z|0;if(z>>>0>a>>>0&z>>>0<2147483647){H=c[9860]|0;if((H|0)!=0?A>>>0<=p>>>0|A>>>0>H>>>0:0){z=0;break}p=La(z|0)|0;if((p|0)==(y|0)){p=y;o=190}else o=191}else z=0}else z=0}while(0);f:do if((o|0)==190){if((p|0)!=(-1|0)){q=z;o=201;break d}}else if((o|0)==191){o=0-z|0;do if((p|0)!=(-1|0)&z>>>0<2147483647&x>>>0>z>>>0?(u=c[9870]|0,u=w-z+u&0-u,u>>>0<2147483647):0)if((La(u|0)|0)==(-1|0)){La(o|0)|0;z=0;break f}else{z=u+z|0;break}while(0);if((p|0)==(-1|0))z=0;else{q=z;o=201;break d}}while(0);c[9861]=c[9861]|4;o=198}else{z=0;o=198}while(0);if((((o|0)==198?v>>>0<2147483647:0)?(t=La(v|0)|0,s=La(0)|0,(t|0)!=(-1|0)&(s|0)!=(-1|0)&t>>>0>>0):0)?(r=s-t|0,q=r>>>0>(a+40|0)>>>0,q):0){p=t;q=q?r:z;o=201}if((o|0)==201){r=(c[9858]|0)+q|0;c[9858]=r;if(r>>>0>(c[9859]|0)>>>0)c[9859]=r;r=c[9756]|0;g:do if(r){t=39448|0;while(1){s=c[t>>2]|0;v=t+4|0;w=c[v>>2]|0;if((p|0)==(s+w|0)){o=213;break}u=c[t+8>>2]|0;if(!u)break;else t=u}if(((o|0)==213?(c[t+12>>2]&8|0)==0:0)?r>>>0>=s>>>0&r>>>0

>>0:0){c[v>>2]=w+q;d=(c[9753]|0)+q|0;e=r+8|0;if(!(e&7))e=0;else e=0-e&7;H=d-e|0;c[9756]=r+e;c[9753]=H;c[r+(e+4)>>2]=H|1;c[r+(d+4)>>2]=40;c[9757]=c[9872];break}s=c[9754]|0;if(p>>>0>>0){c[9754]=p;s=p}v=p+q|0;t=39448|0;while(1){if((c[t>>2]|0)==(v|0)){o=223;break}u=c[t+8>>2]|0;if(!u)break;else t=u}if((o|0)==223?(c[t+12>>2]&8|0)==0:0){c[t>>2]=p;h=t+4|0;c[h>>2]=(c[h>>2]|0)+q;h=p+8|0;if(!(h&7))h=0;else h=0-h&7;j=p+(q+8)|0;if(!(j&7))n=0;else n=0-j&7;o=p+(n+q)|0;k=h+a|0;j=p+k|0;m=o-(p+h)-a|0;c[p+(h+4)>>2]=a|3;h:do if((o|0)!=(r|0)){if((o|0)==(c[9755]|0)){H=(c[9752]|0)+m|0;c[9752]=H;c[9755]=j;c[p+(k+4)>>2]=H|1;c[p+(H+k)>>2]=H;break}r=q+4|0;u=c[p+(r+n)>>2]|0;if((u&3|0)==1){a=u&-8;t=u>>>3;i:do if(u>>>0>=256){l=c[p+((n|24)+q)>>2]|0;t=c[p+(q+12+n)>>2]|0;do if((t|0)==(o|0)){v=n|16;u=p+(r+v)|0;t=c[u>>2]|0;if(!t){u=p+(v+q)|0;t=c[u>>2]|0;if(!t){g=0;break}}while(1){w=t+20|0;v=c[w>>2]|0;if(v){t=v;u=w;continue}w=t+16|0;v=c[w>>2]|0;if(!v)break;else{t=v;u=w}}if(u>>>0>>0)db();else{c[u>>2]=0;g=t;break}}else{u=c[p+((n|8)+q)>>2]|0;if(u>>>0>>0)db();v=u+12|0;if((c[v>>2]|0)!=(o|0))db();s=t+8|0;if((c[s>>2]|0)==(o|0)){c[v>>2]=t;c[s>>2]=u;g=t;break}else db()}while(0);if(!l)break;s=c[p+(q+28+n)>>2]|0;t=39304+(s<<2)|0;do if((o|0)!=(c[t>>2]|0)){if(l>>>0<(c[9754]|0)>>>0)db();s=l+16|0;if((c[s>>2]|0)==(o|0))c[s>>2]=g;else c[l+20>>2]=g;if(!g)break i}else{c[t>>2]=g;if(g)break;c[9751]=c[9751]&~(1<>>0>>0)db();c[g+24>>2]=l;s=n|16;l=c[p+(s+q)>>2]|0;do if(l)if(l>>>0>>0)db();else{c[g+16>>2]=l;c[l+24>>2]=g;break}while(0);l=c[p+(r+s)>>2]|0;if(!l)break;if(l>>>0<(c[9754]|0)>>>0)db();else{c[g+20>>2]=l;c[l+24>>2]=g;break}}else{g=c[p+((n|8)+q)>>2]|0;r=c[p+(q+12+n)>>2]|0;u=39040+(t<<1<<2)|0;do if((g|0)!=(u|0)){if(g>>>0>>0)db();if((c[g+12>>2]|0)==(o|0))break;db()}while(0);if((r|0)==(g|0)){c[9750]=c[9750]&~(1<>>0>>0)db();s=r+8|0;if((c[s>>2]|0)==(o|0)){l=s;break}db()}while(0);c[g+12>>2]=r;c[l>>2]=g}while(0);o=p+((a|n)+q)|0;m=a+m|0}g=o+4|0;c[g>>2]=c[g>>2]&-2;c[p+(k+4)>>2]=m|1;c[p+(m+k)>>2]=m;g=m>>>3;if(m>>>0<256){l=g<<1;d=39040+(l<<2)|0;m=c[9750]|0;g=1<>2]|0;if(g>>>0>=(c[9754]|0)>>>0){f=l;e=g;break}db()}while(0);c[f>>2]=j;c[e+12>>2]=j;c[p+(k+8)>>2]=e;c[p+(k+12)>>2]=d;break}e=m>>>8;do if(!e)e=0;else{if(m>>>0>16777215){e=31;break}G=(e+1048320|0)>>>16&8;H=e<>>16&4;H=H<>>16&2;e=14-(F|G|e)+(H<>>15)|0;e=m>>>(e+7|0)&1|e<<1}while(0);l=39304+(e<<2)|0;c[p+(k+28)>>2]=e;c[p+(k+20)>>2]=0;c[p+(k+16)>>2]=0;g=c[9751]|0;f=1<>2]=j;c[p+(k+24)>>2]=l;c[p+(k+12)>>2]=j;c[p+(k+8)>>2]=j;break}f=c[l>>2]|0;if((e|0)==31)e=0;else e=25-(e>>>1)|0;j:do if((c[f+4>>2]&-8|0)!=(m|0)){e=m<>>31<<2)+16|0;l=c[g>>2]|0;if(!l)break;if((c[l+4>>2]&-8|0)==(m|0)){d=l;break j}else{e=e<<1;f=l}}if(g>>>0<(c[9754]|0)>>>0)db();else{c[g>>2]=j;c[p+(k+24)>>2]=f;c[p+(k+12)>>2]=j;c[p+(k+8)>>2]=j;break h}}else d=f;while(0);e=d+8|0;f=c[e>>2]|0;H=c[9754]|0;if(d>>>0>=H>>>0&f>>>0>=H>>>0){c[f+12>>2]=j;c[e>>2]=j;c[p+(k+8)>>2]=f;c[p+(k+12)>>2]=d;c[p+(k+24)>>2]=0;break}else db()}else{H=(c[9753]|0)+m|0;c[9753]=H;c[9756]=j;c[p+(k+4)>>2]=H|1}while(0);H=p+(h|8)|0;i=b;return H|0}e=39448|0;while(1){d=c[e>>2]|0;if(d>>>0<=r>>>0?(n=c[e+4>>2]|0,m=d+n|0,m>>>0>r>>>0):0)break;e=c[e+8>>2]|0}e=d+(n+ -39)|0;if(!(e&7))e=0;else e=0-e&7;d=d+(n+ -47+e)|0;d=d>>>0<(r+16|0)>>>0?r:d;e=d+8|0;f=p+8|0;if(!(f&7))f=0;else f=0-f&7;H=q+ -40-f|0;c[9756]=p+f;c[9753]=H;c[p+(f+4)>>2]=H|1;c[p+(q+ -36)>>2]=40;c[9757]=c[9872];c[d+4>>2]=27;c[e+0>>2]=c[9862];c[e+4>>2]=c[9863];c[e+8>>2]=c[9864];c[e+12>>2]=c[9865];c[9862]=p;c[9863]=q;c[9865]=0;c[9864]=e;e=d+28|0;c[e>>2]=7;if((d+32|0)>>>0>>0)do{H=e;e=e+4|0;c[e>>2]=7}while((H+8|0)>>>0>>0);if((d|0)!=(r|0)){d=d-r|0;e=r+(d+4)|0;c[e>>2]=c[e>>2]&-2;c[r+4>>2]=d|1;c[r+d>>2]=d;e=d>>>3;if(d>>>0<256){f=e<<1;d=39040+(f<<2)|0;g=c[9750]|0;e=1<>2]|0;if(e>>>0>=(c[9754]|0)>>>0){k=f;j=e;break}db()}while(0);c[k>>2]=r;c[j+12>>2]=r;c[r+8>>2]=j;c[r+12>>2]=d;break}e=d>>>8;if(e)if(d>>>0>16777215)e=31;else{G=(e+1048320|0)>>>16&8;H=e<>>16&4;H=H<>>16&2;e=14-(F|G|e)+(H<>>15)|0;e=d>>>(e+7|0)&1|e<<1}else e=0;j=39304+(e<<2)|0;c[r+28>>2]=e;c[r+20>>2]=0;c[r+16>>2]=0;f=c[9751]|0;g=1<>2]=r;c[r+24>>2]=j;c[r+12>>2]=r;c[r+8>>2]=r;break}f=c[j>>2]|0;if((e|0)==31)e=0;else e=25-(e>>>1)|0;k:do if((c[f+4>>2]&-8|0)!=(d|0)){e=d<>>31<<2)+16|0;g=c[f>>2]|0;if(!g)break;if((c[g+4>>2]&-8|0)==(d|0)){h=g;break k}else{e=e<<1;j=g}}if(f>>>0<(c[9754]|0)>>>0)db();else{c[f>>2]=r;c[r+24>>2]=j;c[r+12>>2]=r;c[r+8>>2]=r;break g}}else h=f;while(0);e=h+8|0;d=c[e>>2]|0;H=c[9754]|0;if(h>>>0>=H>>>0&d>>>0>=H>>>0){c[d+12>>2]=r;c[e>>2]=r;c[r+8>>2]=d;c[r+12>>2]=h;c[r+24>>2]=0;break}else db()}}else{H=c[9754]|0;if((H|0)==0|p>>>0>>0)c[9754]=p;c[9862]=p;c[9863]=q;c[9865]=0;c[9759]=c[9868];c[9758]=-1;d=0;do{H=d<<1;G=39040+(H<<2)|0;c[39040+(H+3<<2)>>2]=G;c[39040+(H+2<<2)>>2]=G;d=d+1|0}while((d|0)!=32);d=p+8|0;if(!(d&7))d=0;else d=0-d&7;H=q+ -40-d|0;c[9756]=p+d;c[9753]=H;c[p+(d+4)>>2]=H|1;c[p+(q+ -36)>>2]=40;c[9757]=c[9872]}while(0);d=c[9753]|0;if(d>>>0>a>>>0){G=d-a|0;c[9753]=G;H=c[9756]|0;c[9756]=H+a;c[H+(a+4)>>2]=G|1;c[H+4>>2]=a|3;H=H+8|0;i=b;return H|0}}c[(Ya()|0)>>2]=12;H=0;i=b;return H|0}function RE(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=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;b=i;if(!a){i=b;return}q=a+ -8|0;r=c[9754]|0;if(q>>>0>>0)db();n=c[a+ -4>>2]|0;m=n&3;if((m|0)==1)db();j=n&-8;h=a+(j+ -8)|0;do if(!(n&1)){u=c[q>>2]|0;if(!m){i=b;return}q=-8-u|0;n=a+q|0;m=u+j|0;if(n>>>0>>0)db();if((n|0)==(c[9755]|0)){e=a+(j+ -4)|0;o=c[e>>2]|0;if((o&3|0)!=3){e=n;o=m;break}c[9752]=m;c[e>>2]=o&-2;c[a+(q+4)>>2]=m|1;c[h>>2]=m;i=b;return}t=u>>>3;if(u>>>0<256){e=c[a+(q+8)>>2]|0;o=c[a+(q+12)>>2]|0;p=39040+(t<<1<<2)|0;if((e|0)!=(p|0)){if(e>>>0>>0)db();if((c[e+12>>2]|0)!=(n|0))db()}if((o|0)==(e|0)){c[9750]=c[9750]&~(1<>>0>>0)db();p=o+8|0;if((c[p>>2]|0)==(n|0))s=p;else db()}else s=o+8|0;c[e+12>>2]=o;c[s>>2]=e;e=n;o=m;break}s=c[a+(q+24)>>2]|0;t=c[a+(q+12)>>2]|0;do if((t|0)==(n|0)){u=a+(q+20)|0;t=c[u>>2]|0;if(!t){u=a+(q+16)|0;t=c[u>>2]|0;if(!t){p=0;break}}while(1){v=t+20|0;w=c[v>>2]|0;if(w){t=w;u=v;continue}v=t+16|0;w=c[v>>2]|0;if(!w)break;else{t=w;u=v}}if(u>>>0>>0)db();else{c[u>>2]=0;p=t;break}}else{u=c[a+(q+8)>>2]|0;if(u>>>0>>0)db();r=u+12|0;if((c[r>>2]|0)!=(n|0))db();v=t+8|0;if((c[v>>2]|0)==(n|0)){c[r>>2]=t;c[v>>2]=u;p=t;break}else db()}while(0);if(s){r=c[a+(q+28)>>2]|0;t=39304+(r<<2)|0;if((n|0)==(c[t>>2]|0)){c[t>>2]=p;if(!p){c[9751]=c[9751]&~(1<>>0<(c[9754]|0)>>>0)db();r=s+16|0;if((c[r>>2]|0)==(n|0))c[r>>2]=p;else c[s+20>>2]=p;if(!p){e=n;o=m;break}}r=c[9754]|0;if(p>>>0>>0)db();c[p+24>>2]=s;s=c[a+(q+16)>>2]|0;do if(s)if(s>>>0>>0)db();else{c[p+16>>2]=s;c[s+24>>2]=p;break}while(0);q=c[a+(q+20)>>2]|0;if(q)if(q>>>0<(c[9754]|0)>>>0)db();else{c[p+20>>2]=q;c[q+24>>2]=p;e=n;o=m;break}else{e=n;o=m}}else{e=n;o=m}}else{e=q;o=j}while(0);if(e>>>0>=h>>>0)db();m=a+(j+ -4)|0;n=c[m>>2]|0;if(!(n&1))db();if(!(n&2)){if((h|0)==(c[9756]|0)){w=(c[9753]|0)+o|0;c[9753]=w;c[9756]=e;c[e+4>>2]=w|1;if((e|0)!=(c[9755]|0)){i=b;return}c[9755]=0;c[9752]=0;i=b;return}if((h|0)==(c[9755]|0)){w=(c[9752]|0)+o|0;c[9752]=w;c[9755]=e;c[e+4>>2]=w|1;c[e+w>>2]=w;i=b;return}o=(n&-8)+o|0;m=n>>>3;do if(n>>>0>=256){l=c[a+(j+16)>>2]|0;m=c[a+(j|4)>>2]|0;do if((m|0)==(h|0)){n=a+(j+12)|0;m=c[n>>2]|0;if(!m){n=a+(j+8)|0;m=c[n>>2]|0;if(!m){k=0;break}}while(1){q=m+20|0;p=c[q>>2]|0;if(p){m=p;n=q;continue}p=m+16|0;q=c[p>>2]|0;if(!q)break;else{m=q;n=p}}if(n>>>0<(c[9754]|0)>>>0)db();else{c[n>>2]=0;k=m;break}}else{n=c[a+j>>2]|0;if(n>>>0<(c[9754]|0)>>>0)db();p=n+12|0;if((c[p>>2]|0)!=(h|0))db();q=m+8|0;if((c[q>>2]|0)==(h|0)){c[p>>2]=m;c[q>>2]=n;k=m;break}else db()}while(0);if(l){m=c[a+(j+20)>>2]|0;n=39304+(m<<2)|0;if((h|0)==(c[n>>2]|0)){c[n>>2]=k;if(!k){c[9751]=c[9751]&~(1<>>0<(c[9754]|0)>>>0)db();m=l+16|0;if((c[m>>2]|0)==(h|0))c[m>>2]=k;else c[l+20>>2]=k;if(!k)break}h=c[9754]|0;if(k>>>0>>0)db();c[k+24>>2]=l;l=c[a+(j+8)>>2]|0;do if(l)if(l>>>0>>0)db();else{c[k+16>>2]=l;c[l+24>>2]=k;break}while(0);h=c[a+(j+12)>>2]|0;if(h)if(h>>>0<(c[9754]|0)>>>0)db();else{c[k+20>>2]=h;c[h+24>>2]=k;break}}}else{k=c[a+j>>2]|0;j=c[a+(j|4)>>2]|0;a=39040+(m<<1<<2)|0;if((k|0)!=(a|0)){if(k>>>0<(c[9754]|0)>>>0)db();if((c[k+12>>2]|0)!=(h|0))db()}if((j|0)==(k|0)){c[9750]=c[9750]&~(1<>>0<(c[9754]|0)>>>0)db();a=j+8|0;if((c[a>>2]|0)==(h|0))l=a;else db()}else l=j+8|0;c[k+12>>2]=j;c[l>>2]=k}while(0);c[e+4>>2]=o|1;c[e+o>>2]=o;if((e|0)==(c[9755]|0)){c[9752]=o;i=b;return}}else{c[m>>2]=n&-2;c[e+4>>2]=o|1;c[e+o>>2]=o}h=o>>>3;if(o>>>0<256){j=h<<1;d=39040+(j<<2)|0;k=c[9750]|0;h=1<>2]|0;if(h>>>0<(c[9754]|0)>>>0)db();else{f=j;g=h}}else{c[9750]=k|h;f=39040+(j+2<<2)|0;g=d}c[f>>2]=e;c[g+12>>2]=e;c[e+8>>2]=g;c[e+12>>2]=d;i=b;return}f=o>>>8;if(f)if(o>>>0>16777215)f=31;else{v=(f+1048320|0)>>>16&8;w=f<>>16&4;w=w<>>16&2;f=14-(u|v|f)+(w<>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;g=39304+(f<<2)|0;c[e+28>>2]=f;c[e+20>>2]=0;c[e+16>>2]=0;j=c[9751]|0;h=1<>2]|0;if((f|0)==31)f=0;else f=25-(f>>>1)|0;b:do if((c[g+4>>2]&-8|0)!=(o|0)){f=o<>>31<<2)+16|0;h=c[j>>2]|0;if(!h)break;if((c[h+4>>2]&-8|0)==(o|0)){d=h;break b}else{f=f<<1;g=h}}if(j>>>0<(c[9754]|0)>>>0)db();else{c[j>>2]=e;c[e+24>>2]=g;c[e+12>>2]=e;c[e+8>>2]=e;break a}}else d=g;while(0);g=d+8|0;f=c[g>>2]|0;w=c[9754]|0;if(d>>>0>=w>>>0&f>>>0>=w>>>0){c[f+12>>2]=e;c[g>>2]=e;c[e+8>>2]=f;c[e+12>>2]=d;c[e+24>>2]=0;break}else db()}else{c[9751]=j|h;c[g>>2]=e;c[e+24>>2]=g;c[e+12>>2]=e;c[e+8>>2]=e}while(0);w=(c[9758]|0)+ -1|0;c[9758]=w;if(!w)d=39456|0;else{i=b;return}while(1){d=c[d>>2]|0;if(!d)break;else d=d+8|0}c[9758]=-1;i=b;return}function SE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;do if(a){if(b>>>0>4294967231){c[(Ya()|0)>>2]=12;e=0;break}if(b>>>0<11)e=16;else e=b+11&-8;e=WE(a+ -8|0,e)|0;if(e){e=e+8|0;break}e=QE(b)|0;if(!e)e=0;else{f=c[a+ -4>>2]|0;f=(f&-8)-((f&3|0)==0?8:4)|0;dF(e|0,a|0,(f>>>0>>0?f:b)|0)|0;RE(a)}}else e=QE(b)|0;while(0);i=d;return e|0}function TE(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=i;a:do if(!d)d=0;else{while(1){f=a[b>>0]|0;g=a[c>>0]|0;if(f<<24>>24!=g<<24>>24)break;d=d+ -1|0;if(!d){d=0;break a}else{b=b+1|0;c=c+1|0}}d=(f&255)-(g&255)|0}while(0);i=e;return d|0}function UE(b,c){b=b|0;c=c|0;var d=0,e=0,f=0;d=i;f=a[b>>0]|0;e=a[c>>0]|0;if(f<<24>>24==0?1:f<<24>>24!=e<<24>>24)c=f;else{do{b=b+1|0;c=c+1|0;f=a[b>>0]|0;e=a[c>>0]|0}while(!(f<<24>>24==0?1:f<<24>>24!=e<<24>>24));c=f}i=d;return(c&255)-(e&255)|0}function VE(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0,h=0;f=i;if(!e){b=0;i=f;return b|0}g=a[b>>0]|0;a:do if(!(g<<24>>24))g=0;else while(1){e=e+ -1|0;h=a[c>>0]|0;if(!(h<<24>>24!=0&(e|0)!=0&g<<24>>24==h<<24>>24))break a;b=b+1|0;c=c+1|0;g=a[b>>0]|0;if(!(g<<24>>24)){g=0;break}}while(0);h=(g&255)-(d[c>>0]|0)|0;i=f;return h|0}function WE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;f=a+4|0;e=c[f>>2]|0;l=e&-8;j=a+l|0;m=c[9754]|0;h=e&3;if(!((h|0)!=1&a>>>0>=m>>>0&a>>>0>>0))db();g=a+(l|4)|0;p=c[g>>2]|0;if(!(p&1))db();if(!h){if(b>>>0<256){r=0;i=d;return r|0}if(l>>>0>=(b+4|0)>>>0?(l-b|0)>>>0<=c[9870]<<1>>>0:0){r=a;i=d;return r|0}r=0;i=d;return r|0}if(l>>>0>=b>>>0){h=l-b|0;if(h>>>0<=15){r=a;i=d;return r|0}c[f>>2]=e&1|b|2;c[a+(b+4)>>2]=h|3;c[g>>2]=c[g>>2]|1;XE(a+b|0,h);r=a;i=d;return r|0}if((j|0)==(c[9756]|0)){g=(c[9753]|0)+l|0;if(g>>>0<=b>>>0){r=0;i=d;return r|0}r=g-b|0;c[f>>2]=e&1|b|2;c[a+(b+4)>>2]=r|1;c[9756]=a+b;c[9753]=r;r=a;i=d;return r|0}if((j|0)==(c[9755]|0)){h=(c[9752]|0)+l|0;if(h>>>0>>0){r=0;i=d;return r|0}g=h-b|0;if(g>>>0>15){c[f>>2]=e&1|b|2;c[a+(b+4)>>2]=g|1;c[a+h>>2]=g;e=a+(h+4)|0;c[e>>2]=c[e>>2]&-2;e=a+b|0}else{c[f>>2]=e&1|h|2;e=a+(h+4)|0;c[e>>2]=c[e>>2]|1;e=0;g=0}c[9752]=g;c[9755]=e;r=a;i=d;return r|0}if(p&2){r=0;i=d;return r|0}g=(p&-8)+l|0;if(g>>>0>>0){r=0;i=d;return r|0}h=g-b|0;o=p>>>3;do if(p>>>0>=256){n=c[a+(l+24)>>2]|0;o=c[a+(l+12)>>2]|0;do if((o|0)==(j|0)){p=a+(l+20)|0;o=c[p>>2]|0;if(!o){p=a+(l+16)|0;o=c[p>>2]|0;if(!o){k=0;break}}while(1){r=o+20|0;q=c[r>>2]|0;if(q){o=q;p=r;continue}q=o+16|0;r=c[q>>2]|0;if(!r)break;else{o=r;p=q}}if(p>>>0>>0)db();else{c[p>>2]=0;k=o;break}}else{p=c[a+(l+8)>>2]|0;if(p>>>0>>0)db();m=p+12|0;if((c[m>>2]|0)!=(j|0))db();q=o+8|0;if((c[q>>2]|0)==(j|0)){c[m>>2]=o;c[q>>2]=p;k=o;break}else db()}while(0);if(n){m=c[a+(l+28)>>2]|0;o=39304+(m<<2)|0;if((j|0)==(c[o>>2]|0)){c[o>>2]=k;if(!k){c[9751]=c[9751]&~(1<>>0<(c[9754]|0)>>>0)db();m=n+16|0;if((c[m>>2]|0)==(j|0))c[m>>2]=k;else c[n+20>>2]=k;if(!k)break}j=c[9754]|0;if(k>>>0>>0)db();c[k+24>>2]=n;m=c[a+(l+16)>>2]|0;do if(m)if(m>>>0>>0)db();else{c[k+16>>2]=m;c[m+24>>2]=k;break}while(0);j=c[a+(l+20)>>2]|0;if(j)if(j>>>0<(c[9754]|0)>>>0)db();else{c[k+20>>2]=j;c[j+24>>2]=k;break}}}else{k=c[a+(l+8)>>2]|0;l=c[a+(l+12)>>2]|0;p=39040+(o<<1<<2)|0;if((k|0)!=(p|0)){if(k>>>0>>0)db();if((c[k+12>>2]|0)!=(j|0))db()}if((l|0)==(k|0)){c[9750]=c[9750]&~(1<>>0>>0)db();m=l+8|0;if((c[m>>2]|0)==(j|0))n=m;else db()}else n=l+8|0;c[k+12>>2]=l;c[n>>2]=k}while(0);if(h>>>0<16){c[f>>2]=g|e&1|2;r=a+(g|4)|0;c[r>>2]=c[r>>2]|1;r=a;i=d;return r|0}else{c[f>>2]=e&1|b|2;c[a+(b+4)>>2]=h|3;r=a+(g|4)|0;c[r>>2]=c[r>>2]|1;XE(a+b|0,h);r=a;i=d;return r|0}return 0} function qo(f,g,h,j,k){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0;r=i;i=i+272|0;Y=r;u=r+264|0;E=r+260|0;o=r+256|0;p=r+252|0;H=r+248|0;O=r+244|0;C=r+240|0;pa=r+236|0;oa=r+232|0;K=r+228|0;J=r+224|0;V=r+220|0;s=r+216|0;U=r+212|0;R=r+208|0;L=r+204|0;A=r+200|0;P=r+196|0;x=r+192|0;I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!=0){if((c[R>>2]|0)==((b[(c[C>>2]|0)+38>>1]|0)-(c[L>>2]|0)|0))break;f=c[u>>2]|0;h=(b[(c[C>>2]|0)+38>>1]|0)-(c[L>>2]|0)|0;g=c[R>>2]|0;c[Y>>2]=c[E>>2];c[Y+4>>2]=0;c[Y+8>>2]=h;c[Y+12>>2]=g;Se(f,23464,Y);break a}while(0);do if(c[p>>2]|0){if((c[R>>2]|0)==(c[(c[p>>2]|0)+4>>2]|0))break;f=c[u>>2]|0;g=c[(c[p>>2]|0)+4>>2]|0;c[Y>>2]=c[R>>2];c[Y+4>>2]=g;Se(f,23520,Y);break a}while(0);if(c[(c[O>>2]|0)+24>>2]&128){g=(c[u>>2]|0)+72|0;f=(c[g>>2]|0)+1|0;c[g>>2]=f;c[t>>2]=f;fp(c[s>>2]|0,25,0,c[t>>2]|0)|0}f:do if(!(c[F>>2]|0)){c[aa>>2]=du(c[u>>2]|0,c[C>>2]|0,55,-1,0,A,P)|0;c[q>>2]=Qe(c[O>>2]|0,(c[aa>>2]|0)+1<<2,0)|0;if(!(c[q>>2]|0))break a;c[K>>2]=0;while(1){if((c[K>>2]|0)>=(c[aa>>2]|0))break f;g=(c[u>>2]|0)+72|0;f=(c[g>>2]|0)+1|0;c[g>>2]=f;c[(c[q>>2]|0)+(c[K>>2]<<2)>>2]=f;c[K>>2]=(c[K>>2]|0)+1}}while(0);do if(a[D>>0]|0){c[M>>2]=Ir(c[s>>2]|0,108,c[w>>2]|0)|0;c[N>>2]=Mr(c[s>>2]|0)|0}else{if(!(c[o>>2]|0))break;f=Ir(c[s>>2]|0,22,c[X+4>>2]|0)|0;c[N>>2]=f;c[M>>2]=f}while(0);c[I>>2]=Nr(c[s>>2]|0)|0;if(c[da>>2]&1){c[ea>>2]=ys(c[u>>2]|0,(b[(c[C>>2]|0)+38>>1]|0)+1|0)|0;if((c[x>>2]|0)<0)fp(c[s>>2]|0,25,-1,c[ea>>2]|0)|0;else{if(a[D>>0]|0)ip(c[s>>2]|0,47,c[w>>2]|0,c[x>>2]|0,c[ea>>2]|0)|0;else Os(c[u>>2]|0,c[(c[(c[n>>2]|0)+4>>2]|0)+((c[x>>2]|0)*20|0)>>2]|0,c[ea>>2]|0);c[$>>2]=Ir(c[s>>2]|0,77,c[ea>>2]|0)|0;fp(c[s>>2]|0,25,-1,c[ea>>2]|0)|0;zp(c[s>>2]|0,c[$>>2]|0);Ir(c[s>>2]|0,38,c[ea>>2]|0)|0}c[K>>2]=0;while(1){if((c[K>>2]|0)>=(b[(c[C>>2]|0)+38>>1]|0))break;g:do if(!(c[p>>2]|0))c[J>>2]=c[K>>2];else{c[J>>2]=0;while(1){if((c[J>>2]|0)>=(c[(c[p>>2]|0)+4>>2]|0))break g;if((c[(c[c[p>>2]>>2]|0)+(c[J>>2]<<3)+4>>2]|0)==(c[K>>2]|0))break g;c[J>>2]=(c[J>>2]|0)+1}}while(0);do if((a[D>>0]|0)!=0|(c[n>>2]|0)!=0){if((c[p>>2]|0)!=0?(c[J>>2]|0)>=(c[(c[p>>2]|0)+4>>2]|0):0){ba=95;break}if(a[D>>0]|0){ip(c[s>>2]|0,47,c[w>>2]|0,c[J>>2]|0,(c[ea>>2]|0)+(c[K>>2]|0)+1|0)|0;break}else{ru(c[u>>2]|0,c[(c[(c[n>>2]|0)+4>>2]|0)+((c[J>>2]|0)*20|0)>>2]|0,(c[ea>>2]|0)+(c[K>>2]|0)+1|0);break}}else ba=95;while(0);if((ba|0)==95){ba=0;Os(c[u>>2]|0,c[(c[(c[C>>2]|0)+4>>2]|0)+((c[K>>2]|0)*24|0)+4>>2]|0,(c[ea>>2]|0)+(c[K>>2]|0)+1|0)}c[K>>2]=(c[K>>2]|0)+1}if(!(c[F>>2]|0))su(c[s>>2]|0,c[C>>2]|0,(c[ea>>2]|0)+1|0);tu(c[u>>2]|0,c[G>>2]|0,108,0,1,c[C>>2]|0,(c[ea>>2]|0)-(b[(c[C>>2]|0)+38>>1]|0)-1|0,c[H>>2]|0,c[I>>2]|0);Bs(c[u>>2]|0,c[ea>>2]|0,(b[(c[C>>2]|0)+38>>1]|0)+1|0)}do if(!(c[F>>2]|0)){if(d[(c[C>>2]|0)+44>>0]&16)fp(c[s>>2]|0,28,0,c[l>>2]|0)|0;h:do if((c[x>>2]|0)>=0){do if(a[D>>0]|0)ip(c[s>>2]|0,47,c[w>>2]|0,c[x>>2]|0,c[y>>2]|0)|0;else{if(c[o>>2]|0){fp(c[s>>2]|0,33,(c[z>>2]|0)+(c[x>>2]|0)|0,c[y>>2]|0)|0;break}Os(c[u>>2]|0,c[(c[(c[n>>2]|0)+4>>2]|0)+((c[x>>2]|0)*20|0)>>2]|0,c[y>>2]|0);c[_>>2]=dt(c[s>>2]|0,-1)|0;if(!(c[_>>2]|0))break;if((d[c[_>>2]>>0]|0)!=28)break;if(d[(c[C>>2]|0)+44>>0]&16)break;a[v>>0]=1;a[c[_>>2]>>0]=74;c[(c[_>>2]|0)+4>>2]=c[A>>2];c[(c[_>>2]|0)+8>>2]=c[y>>2];c[(c[_>>2]|0)+12>>2]=c[B>>2]}while(0);if(a[v>>0]|0)break;X=c[s>>2]|0;if(d[(c[C>>2]|0)+44>>0]&16){c[Q>>2]=Mr(X)|0;fp(c[s>>2]|0,76,c[y>>2]|0,(c[Q>>2]|0)+2|0)|0}else{c[Q>>2]=Ir(X,77,c[y>>2]|0)|0;ip(c[s>>2]|0,74,c[A>>2]|0,c[y>>2]|0,c[B>>2]|0)|0;zp(c[s>>2]|0,c[Q>>2]|0)}Ir(c[s>>2]|0,38,c[y>>2]|0)|0}else{do if(!(d[(c[C>>2]|0)+44>>0]&16)){if(d[Z>>0]|0)break;ip(c[s>>2]|0,74,c[A>>2]|0,c[y>>2]|0,c[B>>2]|0)|0;a[v>>0]=1;break h}while(0);fp(c[s>>2]|0,28,0,c[y>>2]|0)|0}while(0);uu(c[u>>2]|0,c[B>>2]|0,c[y>>2]|0);c[L>>2]=0;c[K>>2]=0;while(1){if((c[K>>2]|0)>=(b[(c[C>>2]|0)+38>>1]|0))break;c[S>>2]=(c[y>>2]|0)+1+(c[K>>2]|0);i:do if((c[K>>2]|0)==(b[(c[C>>2]|0)+36>>1]|0))Ir(c[s>>2]|0,29,c[S>>2]|0)|0;else{j:do if(!(c[p>>2]|0))if(d[(c[(c[C>>2]|0)+4>>2]|0)+((c[K>>2]|0)*24|0)+23>>0]&2){c[J>>2]=-1;c[L>>2]=(c[L>>2]|0)+1;break}else{c[J>>2]=(c[K>>2]|0)-(c[L>>2]|0);break}else{c[J>>2]=0;while(1){if((c[J>>2]|0)>=(c[(c[p>>2]|0)+4>>2]|0))break j;if((c[(c[c[p>>2]>>2]|0)+(c[J>>2]<<3)+4>>2]|0)==(c[K>>2]|0))break j;c[J>>2]=(c[J>>2]|0)+1}}while(0);do if(!((c[J>>2]|0)<0|(c[R>>2]|0)==0)){if((c[p>>2]|0)!=0?(c[J>>2]|0)>=(c[(c[p>>2]|0)+4>>2]|0):0)break;if(a[D>>0]|0){ip(c[s>>2]|0,47,c[w>>2]|0,c[J>>2]|0,c[S>>2]|0)|0;break i}if(!(c[o>>2]|0)){Os(c[u>>2]|0,c[(c[(c[n>>2]|0)+4>>2]|0)+((c[J>>2]|0)*20|0)>>2]|0,c[S>>2]|0);break i}if((c[z>>2]|0)==(c[T>>2]|0))break i;fp(c[s>>2]|0,34,(c[z>>2]|0)+(c[J>>2]|0)|0,c[S>>2]|0)|0;break i}while(0);vu(c[u>>2]|0,c[(c[(c[C>>2]|0)+4>>2]|0)+((c[K>>2]|0)*24|0)+4>>2]|0,c[S>>2]|0)}while(0);c[K>>2]=(c[K>>2]|0)+1}if(d[(c[C>>2]|0)+44>>0]&16){c[m>>2]=Rp(c[O>>2]|0,c[C>>2]|0)|0;wu(c[u>>2]|0,c[C>>2]|0);hp(c[s>>2]|0,15,1,(b[(c[C>>2]|0)+38>>1]|0)+2|0,c[l>>2]|0,c[m>>2]|0,-10)|0;Xe(c[s>>2]|0,((c[H>>2]|0)==10?2:c[H>>2]|0)&255);Sp(c[u>>2]|0);break}else{xu(c[u>>2]|0,c[C>>2]|0,c[q>>2]|0,c[A>>2]|0,c[P>>2]|0,c[l>>2]|0,0,(c[x>>2]|0)>=0&255,c[H>>2]&255,c[I>>2]|0,W);yu(c[u>>2]|0,c[C>>2]|0,0,c[l>>2]|0,0,0);zu(c[u>>2]|0,c[C>>2]|0,c[A>>2]|0,c[P>>2]|0,c[l>>2]|0,c[q>>2]|0,0,d[v>>0]|0,(c[W>>2]|0)==0&1);break}}while(0);if(c[(c[O>>2]|0)+24>>2]&128)fp(c[s>>2]|0,37,c[t>>2]|0,1)|0;if(c[G>>2]|0)tu(c[u>>2]|0,c[G>>2]|0,108,0,2,c[C>>2]|0,(c[T>>2]|0)-2-(b[(c[C>>2]|0)+38>>1]|0)|0,c[H>>2]|0,c[I>>2]|0);Pr(c[s>>2]|0,c[I>>2]|0);do if(a[D>>0]|0){fp(c[s>>2]|0,9,c[w>>2]|0,c[N>>2]|0)|0;zp(c[s>>2]|0,c[M>>2]|0);Ir(c[s>>2]|0,61,c[w>>2]|0)|0}else{if(!(c[o>>2]|0))break;fp(c[s>>2]|0,16,0,c[N>>2]|0)|0;zp(c[s>>2]|0,c[M>>2]|0)}while(0);if((c[F>>2]|0)!=0?1:(d[(c[C>>2]|0)+44>>0]&16|0)!=0)break;if((c[A>>2]|0)<(c[P>>2]|0))Ir(c[s>>2]|0,61,c[A>>2]|0)|0;c[V>>2]=0;c[U>>2]=c[(c[C>>2]|0)+8>>2];while(1){if(!(c[U>>2]|0))break b;Ir(c[s>>2]|0,61,(c[V>>2]|0)+(c[P>>2]|0)|0)|0;c[U>>2]=c[(c[U>>2]|0)+20>>2];c[V>>2]=(c[V>>2]|0)+1}}while(0);if((d[(c[u>>2]|0)+18>>0]|0)==0?(c[(c[u>>2]|0)+412>>2]|0)==0:0)Au(c[u>>2]|0);if(((c[(c[O>>2]|0)+24>>2]&128|0)!=0?(a[(c[u>>2]|0)+18>>0]|0)==0:0)?(c[(c[u>>2]|0)+412>>2]|0)==0:0){fp(c[s>>2]|0,35,c[t>>2]|0,1)|0;Nt(c[s>>2]|0,1);Ot(c[s>>2]|0,0,0,23552,0)|0}}}while(0);vn(c[O>>2]|0,c[E>>2]|0);sn(c[O>>2]|0,c[n>>2]|0);tn(c[O>>2]|0,c[o>>2]|0);xn(c[O>>2]|0,c[p>>2]|0);Xb(c[O>>2]|0,c[q>>2]|0);i=r;return}function ro(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;i=i+32|0;e=f+16|0;k=f+12|0;g=f+8|0;h=f+4|0;j=f;c[k>>2]=a;c[g>>2]=b;c[h>>2]=d;if((c[g>>2]|0)==0?(c[g>>2]=se(c[k>>2]|0,8,0)|0,(c[g>>2]|0)==0):0){c[e>>2]=0;a=c[e>>2]|0;i=f;return a|0}d=ku(c[k>>2]|0,c[c[g>>2]>>2]|0,8,(c[g>>2]|0)+4|0,j)|0;c[c[g>>2]>>2]=d;d=c[k>>2]|0;if((c[j>>2]|0)<0){xn(d,c[g>>2]|0);c[e>>2]=0;a=c[e>>2]|0;i=f;return a|0}else{a=Zo(d,c[h>>2]|0)|0;c[(c[c[g>>2]>>2]|0)+(c[j>>2]<<3)>>2]=a;c[e>>2]=c[g>>2];a=c[e>>2]|0;i=f;return a|0}return 0}function so(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;h=e+4|0;g=e;c[f>>2]=a;c[h>>2]=b;c[g>>2]=d;c[(c[f>>2]|0)+4>>2]=c[c[h>>2]>>2];c[(c[f>>2]|0)+8>>2]=(c[c[g>>2]>>2]|0)+(c[(c[g>>2]|0)+4>>2]|0);i=e;return}function to(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;n=i;i=i+48|0;o=n+8|0;j=n+36|0;r=n+32|0;h=n+28|0;m=n+24|0;k=n+42|0;p=n+20|0;f=n;q=n+16|0;s=n+40|0;l=n+12|0;c[j>>2]=d;c[r>>2]=e;c[h>>2]=c[c[j>>2]>>2];if(!(c[r>>2]|0)){i=n;return}c[m>>2]=c[(c[r>>2]|0)+8>>2];do if(a[(c[m>>2]|0)+1>>0]|0){b[k>>1]=0;c[p>>2]=Mb(c[m>>2]|0)|0;if((a[c[m>>2]>>0]|0)==63){c[q>>2]=0==(wg((c[m>>2]|0)+1|0,f,(c[p>>2]|0)-1|0,1)|0)&1;d=c[f>>2]&65535;b[k>>1]=d;b[(c[r>>2]|0)+32>>1]=d;d=f;e=c[d+4>>2]|0;if(!(!((c[q>>2]|0)==0|((e|0)<0|(e|0)==0&(c[d>>2]|0)>>>0<1))?(e=f,r=c[e+4>>2]|0,d=c[(c[h>>2]|0)+124>>2]|0,s=((d|0)<0)<<31>>31,!((r|0)>(s|0)|((r|0)==(s|0)?(c[e>>2]|0)>>>0>d>>>0:0))):0)){d=c[j>>2]|0;c[o>>2]=c[(c[h>>2]|0)+124>>2];Se(d,23360,o);b[k>>1]=0}e=f;r=c[e+4>>2]|0;d=c[(c[j>>2]|0)+440>>2]|0;s=((d|0)<0)<<31>>31;if((r|0)>(s|0)|((r|0)==(s|0)?(c[e>>2]|0)>>>0>d>>>0:0))c[(c[j>>2]|0)+440>>2]=c[f>>2]}else{b[s>>1]=0;while(1){if((b[s>>1]|0)>=(c[(c[j>>2]|0)+444>>2]|0))break;if((c[(c[(c[j>>2]|0)+472>>2]|0)+(b[s>>1]<<2)>>2]|0)!=0?(UE(c[(c[(c[j>>2]|0)+472>>2]|0)+(b[s>>1]<<2)>>2]|0,c[m>>2]|0)|0)==0:0){g=14;break}b[s>>1]=(b[s>>1]|0)+1<<16>>16}if((g|0)==14){d=(b[s>>1]|0)+1&65535;b[k>>1]=d;b[(c[r>>2]|0)+32>>1]=d}if(!(b[k>>1]|0)){e=(c[j>>2]|0)+440|0;d=(c[e>>2]|0)+1|0;c[e>>2]=d;d=d&65535;b[(c[r>>2]|0)+32>>1]=d;b[k>>1]=d}}if((b[k>>1]|0)>0){do if((b[k>>1]|0)>(c[(c[j>>2]|0)+444>>2]|0)){c[l>>2]=Fk(c[h>>2]|0,c[(c[j>>2]|0)+472>>2]|0,b[k>>1]<<2,0)|0;if(!(c[l>>2]|0)){i=n;return}else{c[(c[j>>2]|0)+472>>2]=c[l>>2];_E((c[l>>2]|0)+(c[(c[j>>2]|0)+444>>2]<<2)|0,0,(b[k>>1]|0)-(c[(c[j>>2]|0)+444>>2]|0)<<2|0)|0;c[(c[j>>2]|0)+444>>2]=b[k>>1];break}}while(0);if((a[c[m>>2]>>0]|0)==63?(c[(c[(c[j>>2]|0)+472>>2]|0)+((b[k>>1]|0)-1<<2)>>2]|0)!=0:0)break;Xb(c[h>>2]|0,c[(c[(c[j>>2]|0)+472>>2]|0)+((b[k>>1]|0)-1<<2)>>2]|0);d=rm(c[h>>2]|0,c[m>>2]|0,c[p>>2]|0,0)|0;c[(c[(c[j>>2]|0)+472>>2]|0)+((b[k>>1]|0)-1<<2)>>2]=d}}else{e=(c[j>>2]|0)+440|0;d=(c[e>>2]|0)+1|0;c[e>>2]=d;b[(c[r>>2]|0)+32>>1]=d}while(0);if(c[(c[j>>2]|0)+64>>2]|0){i=n;return}if((c[(c[j>>2]|0)+440>>2]|0)<=(c[(c[h>>2]|0)+124>>2]|0)){i=n;return}Se(c[j>>2]|0,23408,o);i=n;return}function uo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;h=e+12|0;f=e+8|0;j=e+4|0;g=e;c[h>>2]=a;c[f>>2]=b;c[j>>2]=d;if((c[(c[j>>2]|0)+4>>2]|0)>>>0<=0){a=c[f>>2]|0;i=e;return a|0}c[g>>2]=or(c[c[h>>2]>>2]|0,95,c[j>>2]|0,1)|0;if(!(c[g>>2]|0)){a=c[f>>2]|0;i=e;return a|0}c[(c[g>>2]|0)+12>>2]=c[f>>2];a=(c[g>>2]|0)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c[(c[h>>2]|0)+8>>2]=(c[c[j>>2]>>2]|0)+(c[(c[j>>2]|0)+4>>2]|0);i=g;return}function yo(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;n=h+16|0;m=h+12|0;k=h+8|0;j=h+4|0;l=h;c[n>>2]=b;c[m>>2]=e;c[k>>2]=f;c[j>>2]=g;c[l>>2]=c[c[n>>2]>>2];if(!((c[m>>2]|0)!=0&(c[k>>2]|0)!=0)){i=h;return}if((d[c[m>>2]>>0]|0|0)!=101){i=h;return}a[c[k>>2]>>0]=c[j>>2];wn(c[l>>2]|0,c[(c[k>>2]|0)+16>>2]|0);c[(c[k>>2]|0)+16>>2]=0;i=h;return}function zo(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,j=0,k=0,l=0,m=0;g=i;i=i+32|0;h=g+16|0;m=g+12|0;l=g+8|0;j=g+4|0;k=g;c[h>>2]=a;c[m>>2]=b;c[l>>2]=d;c[j>>2]=e;c[k>>2]=f;a=Rn(c[m>>2]|0,c[l>>2]|0,c[c[j>>2]>>2]|0,0,0)|0;c[c[h>>2]>>2]=a;c[(c[h>>2]|0)+4>>2]=c[c[k>>2]>>2];c[(c[h>>2]|0)+8>>2]=c[(c[j>>2]|0)+8>>2];i=g;return}function Ao(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;qr(c[e>>2]|0);Qq(c[f>>2]|0,c[(c[e>>2]|0)+24>>2]|0)|0;i=d;return}function Bo(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;l=i;i=i+64|0;j=l;h=l+52|0;f=l+48|0;k=l+44|0;m=l+40|0;n=l+36|0;g=l+32|0;r=l+28|0;o=l+24|0;p=l+20|0;q=l+16|0;s=l+12|0;c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=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0;o=i;i=i+560|0;t=o+32|0;q=o+544|0;Ib=o+540|0;cb=o+536|0;Gb=o+532|0;Fb=o+528|0;m=o+524|0;n=o+520|0;na=o+516|0;Hb=o+512|0;Eb=o+496|0;r=o+488|0;ib=o+484|0;hb=o+480|0;tb=o+476|0;gb=o+472|0;l=o+468|0;bb=o+464|0;p=o+460|0;Db=o+456|0;Na=o+452|0;Oa=o+448|0;ab=o+444|0;va=o+440|0;eb=o+436|0;Aa=o+432|0;fb=o+428|0;la=o+424|0;Da=o+420|0;Ea=o+416|0;Fa=o+412|0;Ga=o+408|0;Ya=o+404|0;Za=o+400|0;Xa=o+396|0;Wa=o+392|0;Ca=o+388|0;Ba=o+24|0;Qa=o+384|0;Sa=o+380|0;Ra=o+376|0;Ma=o+372|0;La=o+368|0;Ka=o+364|0;_a=o+16|0;vb=o+360|0;wa=o+356|0;qa=o+352|0;sa=o+348|0;pa=o+344|0;ta=o+340|0;ra=o+336|0;oa=o+332|0;ub=o+328|0;lb=o+324|0;mb=o+320|0;xb=o+316|0;zb=o+312|0;wb=o+308|0;yb=o+548|0;Bb=o+304|0;Ab=o+300|0;Cb=o+296|0;Ja=o+292|0;kb=o+288|0;$a=o+284|0;jb=o+280|0;Ha=o+276|0;Va=o+272|0;Pa=o+268|0;Ia=o+264|0;db=o+260|0;Ta=o+256|0;Ua=o+252|0;da=o+248|0;ja=o+244|0;ea=o+240|0;fa=o+236|0;ca=o+232|0;_=o+228|0;$=o+224|0;ga=o+220|0;ba=o+216|0;ma=o+212|0;aa=o+208|0;ha=o+204|0;Z=o+200|0;ia=o+196|0;ka=o+192|0;V=o+188|0;S=o+184|0;Y=o+180|0;X=o+176|0;w=o+172|0;x=o+168|0;u=o+164|0;W=o+160|0;U=o+156|0;v=o+152|0;R=o+148|0;Q=o+144|0;E=o+140|0;M=o+136|0;T=o+132|0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>>2]|0)+1|0;c[k>>2]=h;c[Db>>2]=h;hp(c[p>>2]|0,97,0,c[Db>>2]|0,0,c[Eb>>2]|0,0)|0;Nt(c[p>>2]|0,1);Ot(c[p>>2]|0,0,0,20304,0)|0;fp(c[p>>2]|0,35,c[Db>>2]|0,1)|0;hc(c[Eb>>2]|0);break}if((c[gb>>2]|0)!=12){if(c[Eb>>2]|0){h=c[q>>2]|0;c[t>>2]=c[Eb>>2];Se(h,1200,t);hc(c[Eb>>2]|0)}h=(c[q>>2]|0)+64|0;c[h>>2]=(c[h>>2]|0)+1;c[(c[q>>2]|0)+12>>2]=c[gb>>2];break}c[ib>>2]=0;c[hb>>2]=54;while(1){if((c[ib>>2]|0)>(c[hb>>2]|0))break;c[tb>>2]=((c[ib>>2]|0)+(c[hb>>2]|0)|0)/2|0;c[gb>>2]=xc(c[m>>2]|0,c[20312+((c[tb>>2]|0)*12|0)>>2]|0)|0;if(!(c[gb>>2]|0))break;Db=c[tb>>2]|0;if((c[gb>>2]|0)<0){c[hb>>2]=Db-1;continue}else{c[ib>>2]=Db+1;continue}}if((c[ib>>2]|0)<=(c[hb>>2]|0)){if((d[20317+((c[tb>>2]|0)*12|0)>>0]&1|0)!=0?(Ar(c[q>>2]|0)|0)!=0:0)break;do switch(d[20316+((c[tb>>2]|0)*12|0)>>0]|0){case 25:{c[eb>>2]=c[(c[bb>>2]|0)+4>>2];c[Aa>>2]=-1;if(c[n>>2]|0)c[Aa>>2]=(qg(c[n>>2]|0,0)|0)&255;b:do if((c[Aa>>2]|0)>=0?(c[(c[cb>>2]|0)+4>>2]|0)==0:0){c[fb>>2]=0;while(1){if((c[fb>>2]|0)>=(c[(c[l>>2]|0)+20>>2]|0))break b;wt(c[(c[(c[l>>2]|0)+16>>2]|0)+(c[fb>>2]<<4)+4>>2]|0,c[Aa>>2]|0)|0;c[fb>>2]=(c[fb>>2]|0)+1}}while(0);c[Aa>>2]=wt(c[eb>>2]|0,c[Aa>>2]|0)|0;h=c[Aa>>2]|0;Pt(c[q>>2]|0,21048,h,((h|0)<0)<<31>>31);break a};case 24:{c[ab>>2]=c[(c[bb>>2]|0)+4>>2];if(c[n>>2]|0){h=zg(c[n>>2]|0)|0;c[(c[l>>2]|0)+72>>2]=h;if(7!=(kg(c[ab>>2]|0,c[(c[l>>2]|0)+72>>2]|0,-1,0)|0))break a;a[(c[l>>2]|0)+64>>0]=1;break a}if(c[ab>>2]|0)p=Uc(c[ab>>2]|0)|0;else p=0;c[va>>2]=p;h=c[va>>2]|0;Pt(c[q>>2]|0,21032,h,((h|0)<0)<<31>>31);break a};case 23:{h=_a;c[h>>2]=0;c[h+4>>2]=0;c[gb>>2]=0;if(!(c[gb>>2]|0)){h=_a;Pt(c[q>>2]|0,21184,c[h>>2]|0,c[h+4>>2]|0);break a}if((c[gb>>2]|0)==12)break a;h=(c[q>>2]|0)+64|0;c[h>>2]=(c[h>>2]|0)+1;c[(c[q>>2]|0)+12>>2]=c[gb>>2];break a};case 18:{Nt(c[p>>2]|0,1);Ot(c[p>>2]|0,0,0,21104,0)|0;if(c[n>>2]|0){c[Wa>>2]=Mb(c[n>>2]|0)|0;c[Ya>>2]=0;while(1){h=Rt(c[Ya>>2]|0)|0;c[Xa>>2]=h;if(!h)break;if(!(Lb(c[n>>2]|0,c[Xa>>2]|0,c[Wa>>2]|0)|0))break;c[Ya>>2]=(c[Ya>>2]|0)+1}if(!(c[Xa>>2]|0))c[Ya>>2]=-1}else c[Ya>>2]=-1;if((c[Ya>>2]|0)==-1?(c[(c[cb>>2]|0)+4>>2]|0)==0:0){c[r>>2]=0;c[(c[cb>>2]|0)+4>>2]=1}c[Za>>2]=(c[(c[l>>2]|0)+20>>2]|0)-1;while(1){if((c[Za>>2]|0)<0)break;do if(c[(c[(c[l>>2]|0)+16>>2]|0)+(c[Za>>2]<<4)+4>>2]|0){if((c[Za>>2]|0)!=(c[r>>2]|0)?(c[(c[cb>>2]|0)+4>>2]|0)!=0:0)break;Ze(c[p>>2]|0,c[Za>>2]|0);ip(c[p>>2]|0,12,c[Za>>2]|0,1,c[Ya>>2]|0)|0}while(0);c[Za>>2]=(c[Za>>2]|0)+ -1}fp(c[p>>2]|0,35,1,1)|0;break a};case 30:{if(!(c[n>>2]|0))break a;c[qa>>2]=sp(c[l>>2]|0,c[n>>2]|0,c[na>>2]|0)|0;if(!(c[qa>>2]|0))break a;c[ta>>2]=0;c[oa>>2]=Zr(c[qa>>2]|0)|0;Nt(c[p>>2]|0,6);c[(c[q>>2]|0)+72>>2]=6;qp(c[q>>2]|0,c[r>>2]|0);Ot(c[p>>2]|0,0,0,21344,0)|0;Ot(c[p>>2]|0,1,0,21352,0)|0;Ot(c[p>>2]|0,2,0,21360,0)|0;Ot(c[p>>2]|0,3,0,21368,0)|0;Ot(c[p>>2]|0,4,0,21376,0)|0;Ot(c[p>>2]|0,5,0,21392,0)|0;Qp(c[q>>2]|0,c[qa>>2]|0)|0;c[sa>>2]=0;c[ra>>2]=c[(c[qa>>2]|0)+4>>2];while(1){if((c[sa>>2]|0)>=(b[(c[qa>>2]|0)+38>>1]|0))break a;if(d[(c[ra>>2]|0)+23>>0]&2)c[ta>>2]=(c[ta>>2]|0)+1;else{fp(c[p>>2]|0,25,(c[sa>>2]|0)-(c[ta>>2]|0)|0,1)|0;hp(c[p>>2]|0,97,0,2,0,c[c[ra>>2]>>2]|0,0)|0;if(c[(c[ra>>2]|0)+12>>2]|0)q=c[(c[ra>>2]|0)+12>>2]|0;else q=1216;hp(c[p>>2]|0,97,0,3,0,q,0)|0;fp(c[p>>2]|0,25,(d[(c[ra>>2]|0)+20>>0]|0)!=0?1:0,4)|0;q=c[p>>2]|0;if(c[(c[ra>>2]|0)+8>>2]|0)hp(q,97,0,5,0,c[(c[ra>>2]|0)+8>>2]|0,0)|0;else fp(q,28,0,5)|0;c:do if(!(d[(c[ra>>2]|0)+23>>0]&1))c[pa>>2]=0;else{h=(c[oa>>2]|0)==0;c[pa>>2]=1;if(h)break;while(1){if((c[pa>>2]|0)>(b[(c[qa>>2]|0)+38>>1]|0))break c;if((b[(c[(c[oa>>2]|0)+4>>2]|0)+((c[pa>>2]|0)-1<<1)>>1]|0)==(c[sa>>2]|0))break c;c[pa>>2]=(c[pa>>2]|0)+1}}while(0);fp(c[p>>2]|0,25,c[pa>>2]|0,6)|0;fp(c[p>>2]|0,35,1,6)|0}c[sa>>2]=(c[sa>>2]|0)+1;c[ra>>2]=(c[ra>>2]|0)+24}};case 29:{if(!(c[n>>2]|0)){h=(d[(c[bb>>2]|0)+8>>0]|0)-1|0;Pt(c[q>>2]|0,21272,h,((h|0)<0)<<31>>31);break a}if(a[(c[l>>2]|0)+62>>0]|0){h=((yg(c[n>>2]|0,0,1)|0)&255)+1&255;a[(c[bb>>2]|0)+8>>0]=h;Yt(c[l>>2]|0);break a}else{Se(c[q>>2]|0,21288,t);break a}};case 10:{Ze(c[p>>2]|0,c[r>>2]|0);if(c[n>>2]|0){c[Oa>>2]=ds(zg(c[n>>2]|0)|0)|0;pp(c[q>>2]|0,0,c[r>>2]|0);fp(c[p>>2]|0,25,c[Oa>>2]|0,1)|0;ip(c[p>>2]|0,52,c[r>>2]|0,3,1)|0;c[(c[(c[bb>>2]|0)+12>>2]|0)+80>>2]=c[Oa>>2];es(c[(c[bb>>2]|0)+4>>2]|0,c[(c[(c[bb>>2]|0)+12>>2]|0)+80>>2]|0)|0;break a}else{Nt(c[p>>2]|0,1);Ot(c[p>>2]|0,0,0,21016,0)|0;h=(c[q>>2]|0)+72|0;c[h>>2]=(c[h>>2]|0)+2;c[Na>>2]=Ye(c[p>>2]|0,9,20976,0)|0;_e(c[p>>2]|0,c[Na>>2]|0,c[r>>2]|0);_e(c[p>>2]|0,(c[Na>>2]|0)+1|0,c[r>>2]|0);_e(c[p>>2]|0,(c[Na>>2]|0)+6|0,2e3);break a}};case 14:{if(!((c[n>>2]|0)!=0?(h=(Ag(c[n>>2]|0,Ma)|0)==0,!(h|(c[Ma>>2]|0)<=0)):0))c[Ma>>2]=2147483647;p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=Ye(c[p>>2]|0,3,21544,0)|0;af(c[p>>2]|0,c[Y>>2]|0,0-(c[X>>2]|0)|0);zp(c[p>>2]|0,c[Y>>2]|0);bf(c[p>>2]|0,(c[Y>>2]|0)+1|0,21720,-2);break a};case 5:{if(!(c[n>>2]|0))break a;h=c[l>>2]|0;bu(h,(qg(c[n>>2]|0,0)|0)&255);break a};case 11:{if(!(c[n>>2]|0)){if(Ar(c[q>>2]|0)|0)break a;Nt(c[p>>2]|0,1);Ot(c[p>>2]|0,0,0,21880,0)|0;fp(c[p>>2]|0,97,0,1)|0;bf(c[p>>2]|0,-1,c[21728+(d[(c[(c[(c[c[q>>2]>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]<<3)>>2]|0,-2);fp(c[p>>2]|0,35,1,1)|0;break a}if((e[(c[(c[(c[l>>2]|0)+16>>2]|0)+12>>2]|0)+78>>1]&1|0)==1?(e[(c[(c[(c[l>>2]|0)+16>>2]|0)+12>>2]|0)+78>>1]&4|0)!=4:0)break a;c[ua>>2]=21728;while(1){if(!(c[c[ua>>2]>>2]|0))break;h=0==(xc(c[n>>2]|0,c[c[ua>>2]>>2]|0)|0);p=c[ua>>2]|0;if(h){s=286;break}c[ua>>2]=p+8}if((s|0)==286){if(d[p+4>>0]|0)p=d[(c[ua>>2]|0)+4>>0]|0;else p=(a[1136]|0)==0?3:2;a[(c[(c[(c[c[q>>2]>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]=p}if(c[c[ua>>2]>>2]|0)break a;h=c[q>>2]|0;c[t>>2]=c[n>>2];Se(h,21896,t);break a};case 0:{Ze(c[p>>2]|0,c[r>>2]|0);switch(a[c[m>>2]>>0]|0){case 65:case 97:{c[xa>>2]=8;break};case 70:case 102:{c[xa>>2]=0;break};case 83:case 115:{c[xa>>2]=1;break};default:c[xa>>2]=6}q=c[p>>2]|0;if((c[n>>2]|0)!=0&(c[xa>>2]|0)!=0){c[ya>>2]=Ye(q,3,21928,0)|0;_e(c[p>>2]|0,c[ya>>2]|0,c[r>>2]|0);k=c[p>>2]|0;h=(c[ya>>2]|0)+1|0;_e(k,h,zg(c[n>>2]|0)|0);_e(c[p>>2]|0,(c[ya>>2]|0)+2|0,c[r>>2]|0);$e(c[p>>2]|0,(c[ya>>2]|0)+2|0,c[xa>>2]|0);break a}else{c[za>>2]=Ye(q,3,21944,0)|0;_e(c[p>>2]|0,c[za>>2]|0,c[r>>2]|0);_e(c[p>>2]|0,(c[za>>2]|0)+1|0,c[r>>2]|0);af(c[p>>2]|0,(c[za>>2]|0)+1|0,c[xa>>2]|0);Nt(c[p>>2]|0,1);Ot(c[p>>2]|0,0,0,c[m>>2]|0,-1)|0;break a}};case 35:{c[nb>>2]=(c[c[cb>>2]>>2]|0)!=0?c[r>>2]|0:10;c[ob>>2]=0;do if(c[n>>2]|0){if(!(xc(c[n>>2]|0,21976)|0)){c[ob>>2]=1;break}if(!(xc(c[n>>2]|0,21984)|0))c[ob>>2]=2}while(0);Nt(c[p>>2]|0,3);c[(c[q>>2]|0)+72>>2]=3;Ot(c[p>>2]|0,0,0,21992,0)|0;Ot(c[p>>2]|0,1,0,22e3,0)|0;Ot(c[p>>2]|0,2,0,22008,0)|0;ip(c[p>>2]|0,11,c[nb>>2]|0,c[ob>>2]|0,1)|0;fp(c[p>>2]|0,35,1,3)|0;break a};case 7:{c[pb>>2]=0;Nt(c[p>>2]|0,1);c[(c[q>>2]|0)+72>>2]=1;Ot(c[p>>2]|0,0,0,21960,0)|0;while(1){h=c[pb>>2]|0;c[pb>>2]=h+1;h=Ob(h)|0;c[qb>>2]=h;if(!h)break a;hp(c[p>>2]|0,97,0,1,0,c[qb>>2]|0,0)|0;fp(c[p>>2]|0,35,1,1)|0}};case 26:{Ef(c[l>>2]|0)|0;break a};case 34:{if(c[n>>2]|0){h=c[l>>2]|0;Uf(h,zg(c[n>>2]|0)|0)|0}if((c[(c[l>>2]|0)+212>>2]|0)==5)p=c[(c[l>>2]|0)+216>>2]|0;else p=0;Pt(c[q>>2]|0,22024,p,((p|0)<0)<<31>>31);break a};case 27:{if((c[n>>2]|0)!=0?(rg(c[n>>2]|0,rb)|0)==0:0){h=rb;cc(c[h>>2]|0,c[h+4>>2]|0)|0}k=c[q>>2]|0;h=cc(-1,-1)|0;Pt(k,22056,h,D);break a};case 33:{if((c[n>>2]|0)!=0?(f=(rg(c[n>>2]|0,sb)|0)==0,h=sb,k=c[h+4>>2]|0,f&((k|0)>0|(k|0)==0&(c[h>>2]|0)>>>0>=0)):0)bg(c[l>>2]|0,11,c[sb>>2]&2147483647)|0;k=c[q>>2]|0;h=bg(c[l>>2]|0,11,-1)|0;Pt(k,22072,h,((h|0)<0)<<31>>31);break a};case 31:{p=c[q>>2]|0;if(c[n>>2]|0){Wt(p,c[n>>2]|0)|0;break a}else{Pt(p,21200,d[(c[l>>2]|0)+63>>0]|0,0);break a}};case 2:{if(!(c[n>>2]|0)){h=(c[(c[l>>2]|0)+24>>2]&c[20320+((c[tb>>2]|0)*12|0)>>2]|0)!=0&1;Pt(c[q>>2]|0,c[20312+((c[tb>>2]|0)*12|0)>>2]|0,h,((h|0)<0)<<31>>31);break a}c[wa>>2]=c[20320+((c[tb>>2]|0)*12|0)>>2];if(!(d[(c[l>>2]|0)+62>>0]|0))c[wa>>2]=c[wa>>2]&-524289;h=(qg(c[n>>2]|0,0)|0)<<24>>24!=0;q=c[wa>>2]|0;if(!h){h=(c[l>>2]|0)+24|0;c[h>>2]=c[h>>2]&~q;if((c[wa>>2]|0)==16777216){h=(c[l>>2]|0)+512|0;c[h>>2]=0;c[h+4>>2]=0}}else{h=(c[l>>2]|0)+24|0;c[h>>2]=c[h>>2]|q}fp(c[p>>2]|0,142,0,0)|0;Yt(c[l>>2]|0);break a};case 32:{if(!(c[n>>2]|0)){if(!(c[392]|0))break a;Nt(c[p>>2]|0,1);Ot(c[p>>2]|0,0,0,21216,0)|0;hp(c[p>>2]|0,97,0,1,0,c[392]|0,0)|0;fp(c[p>>2]|0,35,1,1)|0;break a}if((a[c[n>>2]>>0]|0)!=0?(c[gb>>2]=vi(c[c[l>>2]>>2]|0,c[n>>2]|0,1,vb)|0,(c[gb>>2]|0)!=0|(c[vb>>2]|0)==0):0){Se(c[q>>2]|0,21240,t);break a}if((d[(c[l>>2]|0)+63>>0]|0)<=1)Xt(c[q>>2]|0)|0;hc(c[392]|0);if(a[c[n>>2]>>0]|0){c[t>>2]=c[n>>2];c[392]=qc(1200,t)|0;break a}else{c[392]=0;break a}};case 15:{if(!(c[n>>2]|0))break a;c[xb>>2]=Op(c[l>>2]|0,c[n>>2]|0,c[na>>2]|0)|0;if(!(c[xb>>2]|0))break a;c[zb>>2]=c[(c[xb>>2]|0)+12>>2];Nt(c[p>>2]|0,3);c[(c[q>>2]|0)+72>>2]=3;qp(c[q>>2]|0,c[r>>2]|0);Ot(c[p>>2]|0,0,0,21424,0)|0;Ot(c[p>>2]|0,1,0,21344,0)|0;Ot(c[p>>2]|0,2,0,21352,0)|0;c[wb>>2]=0;while(1){if((c[wb>>2]|0)>=(e[(c[xb>>2]|0)+50>>1]|0))break a;b[yb>>1]=b[(c[(c[xb>>2]|0)+4>>2]|0)+(c[wb>>2]<<1)>>1]|0;fp(c[p>>2]|0,25,c[wb>>2]|0,1)|0;fp(c[p>>2]|0,25,b[yb>>1]|0,2)|0;hp(c[p>>2]|0,97,0,3,0,c[(c[(c[zb>>2]|0)+4>>2]|0)+((b[yb>>1]|0)*24|0)>>2]|0,0)|0;fp(c[p>>2]|0,35,1,3)|0;c[wb>>2]=(c[wb>>2]|0)+1}};case 16:{if(!(c[n>>2]|0))break a;c[Ab>>2]=sp(c[l>>2]|0,c[n>>2]|0,c[na>>2]|0)|0;if(!(c[Ab>>2]|0))break a;c[p>>2]=dp(c[q>>2]|0)|0;Nt(c[p>>2]|0,3);c[(c[q>>2]|0)+72>>2]=3;qp(c[q>>2]|0,c[r>>2]|0);Ot(c[p>>2]|0,0,0,21432,0)|0;Ot(c[p>>2]|0,1,0,21352,0)|0;Ot(c[p>>2]|0,2,0,21440,0)|0;c[Bb>>2]=c[(c[Ab>>2]|0)+8>>2];c[Cb>>2]=0;while(1){if(!(c[Bb>>2]|0))break a;fp(c[p>>2]|0,25,c[Cb>>2]|0,1)|0;hp(c[p>>2]|0,97,0,2,0,c[c[Bb>>2]>>2]|0,0)|0;fp(c[p>>2]|0,25,(d[(c[Bb>>2]|0)+54>>0]|0)!=0&1,3)|0;fp(c[p>>2]|0,35,1,3)|0;c[Bb>>2]=c[(c[Bb>>2]|0)+20>>2];c[Cb>>2]=(c[Cb>>2]|0)+1}};default:{if(c[n>>2]|0){h=c[l>>2]|0;Of(h,zg(c[n>>2]|0)|0)|0}h=c[(c[l>>2]|0)+492>>2]|0;Pt(c[q>>2]|0,22048,h,((h|0)<0)<<31>>31);break a}}while(0)}}while(0);Xb(c[l>>2]|0,c[m>>2]|0);Xb(c[l>>2]|0,c[n>>2]|0);i=o;return}function Eo(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=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;j=i;i=i+112|0;r=j;f=j+100|0;h=j+96|0;g=j+92|0;o=j+88|0;n=j+84|0;p=j+80|0;u=j+56|0;l=j+48|0;v=j+40|0;s=j+36|0;q=j+32|0;k=j+28|0;m=j+24|0;t=j+20|0;c[f>>2]=b;c[h>>2]=d;c[g>>2]=e;c[o>>2]=c[(c[f>>2]|0)+488>>2];c[p>>2]=c[c[f>>2]>>2];c[(c[f>>2]|0)+488>>2]=0;do if((c[o>>2]|0)!=0?(c[(c[f>>2]|0)+64>>2]|0)==0:0){c[n>>2]=c[c[o>>2]>>2];c[l>>2]=Ve(c[c[f>>2]>>2]|0,c[(c[o>>2]|0)+20>>2]|0)|0;c[(c[o>>2]|0)+28>>2]=c[h>>2];while(1){e=c[o>>2]|0;if(!(c[h>>2]|0))break;c[(c[h>>2]|0)+4>>2]=e;c[h>>2]=c[(c[h>>2]|0)+32>>2]}c[v>>2]=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;if((a[(c[w>>2]|0)+64>>0]|0)==0?(Gt(I,c[s>>2]|0,c[t>>2]|0,1488,c[F>>2]|0),(Ht(I,c[p>>2]|0)|0)==0):0){c[A>>2]=Ft(c[s>>2]|0,c[p>>2]|0)|0;if(!(c[A>>2]|0)){if((d[(c[w>>2]|0)+144>>0]|0)!=1)break;a[(c[w>>2]|0)+146>>0]=1;break}if(d[(c[A>>2]|0)+44>>0]&16){Se(c[s>>2]|0,19904,y);break}c[u>>2]=Zo(c[w>>2]|0,c[F>>2]|0)|0;if((c[u>>2]|0)!=0?0==(Pp(c[s>>2]|0,c[u>>2]|0)|0):0){if(bh((c[(c[(c[w>>2]|0)+16>>2]|0)+(c[t>>2]<<4)+12>>2]|0)+40|0,c[u>>2]|0)|0){z=c[s>>2]|0;if(c[x>>2]|0){qp(z,c[t>>2]|0);break}else{c[y>>2]=c[F>>2];Se(z,19952,y);break}}if(!(Lb(c[c[A>>2]>>2]|0,15144,7)|0)){Se(c[s>>2]|0,19984,y);b=(c[s>>2]|0)+64|0;c[b>>2]=(c[b>>2]|0)+1;break}if((c[H>>2]|0)!=49?(c[(c[A>>2]|0)+12>>2]|0)!=0:0){b=c[s>>2]|0;e=c[p>>2]|0;c[y>>2]=(c[H>>2]|0)==35?20064:20072;c[y+4>>2]=e;c[y+8>>2]=0;Se(b,20024,y);break}if((c[H>>2]|0)==49?(c[(c[A>>2]|0)+12>>2]|0)==0:0){b=c[s>>2]|0;c[y>>2]=c[p>>2];c[y+4>>2]=0;Se(b,20080,y);break}c[C>>2]=Ve(c[w>>2]|0,c[(c[A>>2]|0)+68>>2]|0)|0;c[E>>2]=7;c[D>>2]=c[(c[(c[w>>2]|0)+16>>2]|0)+(c[C>>2]<<4)>>2];if(c[G>>2]|0)x=c[(c[(c[w>>2]|0)+16>>2]|0)+16>>2]|0;else x=c[D>>2]|0;c[z>>2]=x;if((c[C>>2]|0)==1|(c[G>>2]|0)!=0)c[E>>2]=5;if((ap(c[s>>2]|0,c[E>>2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0,c[g>>2]|0);c[f>>2]=0;b=c[f>>2]|0;i=e;return b|0}else{a[c[j>>2]>>0]=119;c[(c[j>>2]|0)+8>>2]=c[g>>2];a[(c[j>>2]|0)+1>>0]=10;c[f>>2]=c[j>>2];b=c[f>>2]|0;i=e;return b|0}return 0}function Ko(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;m=i;i=i+48|0;l=m;j=m+40|0;g=m+36|0;f=m+32|0;n=m+28|0;r=m+24|0;k=m+20|0;q=m+16|0;h=m+12|0;p=m+8|0;c[j>>2]=b;c[g>>2]=d;c[f>>2]=e;c[n>>2]=0;c[h>>2]=c[c[j>>2]>>2];if(a[(c[h>>2]|0)+64>>0]|0){d=c[h>>2]|0;b=c[g>>2]|0;vn(d,b);i=m;return}if(Ar(c[j>>2]|0)|0){d=c[h>>2]|0;b=c[g>>2]|0;vn(d,b);i=m;return}c[k>>2]=c[(c[g>>2]|0)+12>>2];c[q>>2]=c[(c[g>>2]|0)+16>>2];c[r>>2]=0;while(1){if((c[r>>2]|0)>=(c[(c[h>>2]|0)+20>>2]|0))break;b=c[r>>2]|0;c[p>>2]=(c[r>>2]|0)<2?b^1:b;if(!((c[k>>2]|0)!=0?(xc(c[(c[(c[h>>2]|0)+16>>2]|0)+(c[p>>2]<<4)>>2]|0,c[k>>2]|0)|0)!=0:0))o=7;if((o|0)==7?(o=0,c[n>>2]=bh((c[(c[(c[h>>2]|0)+16>>2]|0)+(c[p>>2]<<4)+12>>2]|0)+40|0,c[q>>2]|0)|0,(c[n>>2]|0)!=0):0)break;c[r>>2]=(c[r>>2]|0)+1}if(c[n>>2]|0){Bt(c[j>>2]|0,c[n>>2]|0);d=c[h>>2]|0;b=c[g>>2]|0;vn(d,b);i=m;return}n=c[j>>2]|0;if(c[f>>2]|0)At(n,c[k>>2]|0);else{c[l>>2]=c[g>>2];c[l+4>>2]=0;Se(n,19792,l)}a[(c[j>>2]|0)+17>>0]=1;d=c[h>>2]|0;b=c[g>>2]|0;vn(d,b);i=m;return}function Lo(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;f=i;i=i+16|0;k=f+12|0;j=f+8|0;h=f+4|0;g=f;c[k>>2]=a;c[j>>2]=b;c[h>>2]=d;c[g>>2]=e;st(c[k>>2]|0,24,19552,c[j>>2]|0,c[j>>2]|0,c[h>>2]|0,c[g>>2]|0);i=f;return}function Mo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;st(c[f>>2]|0,25,19368,c[e>>2]|0,0,0,c[e>>2]|0);i=d;return}function No(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=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;k=i;i=i+64|0;j=k;f=k+48|0;r=k+44|0;s=k+40|0;u=k+36|0;p=k+32|0;l=k+28|0;n=k+24|0;h=k+20|0;g=k+16|0;o=k+12|0;q=k+8|0;t=k+4|0;c[f>>2]=b;c[r>>2]=d;c[s>>2]=e;c[o>>2]=c[c[f>>2]>>2];if(Ar(c[f>>2]|0)|0){i=k;return}if(!(c[r>>2]|0)){ms(c[f>>2]|0,0);i=k;return}if(!((c[s>>2]|0)!=0?(c[c[s>>2]>>2]|0)!=0:0))m=6;do if((m|0)==6){c[t>>2]=Zo(c[c[f>>2]>>2]|0,c[r>>2]|0)|0;if(!(c[t>>2]|0)){i=k;return}c[u>>2]=$g(c[o>>2]|0,a[(c[(c[(c[o>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]|0,c[t>>2]|0,0)|0;if(!(c[u>>2]|0)){Xb(c[o>>2]|0,c[t>>2]|0);break}ms(c[f>>2]|0,c[t>>2]|0);Xb(c[o>>2]|0,c[t>>2]|0);i=k;return}while(0);c[g>>2]=Er(c[f>>2]|0,c[r>>2]|0,c[s>>2]|0,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:14928;f=c[v>>2]|0;z=c[j>>2]|0;e=c[h>>2]|0;c[n>>2]=c[s>>2];c[n+4>>2]=y;c[n+8>>2]=f;c[n+12>>2]=z;c[n+16>>2]=e;cp(b,15696,n);Xb(c[r>>2]|0,c[h>>2]|0)}b=c[o>>2]|0;A=(c[t>>2]|0)==1?14904:14928;t=c[j>>2]|0;w=c[j>>2]|0;x=c[j>>2]|0;y=c[j>>2]|0;f=c[j>>2]|0;z=c[u>>2]|0;e=c[v>>2]|0;c[n>>2]=c[s>>2];c[n+4>>2]=A;c[n+8>>2]=t;c[n+12>>2]=w;c[n+16>>2]=x;c[n+20>>2]=y;c[n+24>>2]=f;c[n+28>>2]=z;c[n+32>>2]=e;cp(b,15768,n);if(sp(c[r>>2]|0,16152,c[s>>2]|0)|0){A=c[o>>2]|0;e=c[j>>2]|0;b=c[c[m>>2]>>2]|0;c[n>>2]=c[s>>2];c[n+4>>2]=e;c[n+8>>2]=b;cp(A,16168,n)}A=xp(c[o>>2]|0,c[m>>2]|0)|0;c[h>>2]=A;if(A){A=c[o>>2]|0;e=c[j>>2]|0;b=c[h>>2]|0;c[n>>2]=c[j>>2];c[n+4>>2]=e;c[n+8>>2]=b;cp(A,16232,n);Xb(c[r>>2]|0,c[h>>2]|0)}a:do if(c[(c[r>>2]|0)+24>>2]&524288){c[p>>2]=Up(c[m>>2]|0)|0;while(1){if(!(c[p>>2]|0))break a;c[g>>2]=c[c[p>>2]>>2];if((c[g>>2]|0)!=(c[m>>2]|0))vp(c[o>>2]|0,c[c[p>>2]>>2]|0,c[c[g>>2]>>2]|0);c[p>>2]=c[(c[p>>2]|0)+12>>2]}}while(0);vp(c[o>>2]|0,c[m>>2]|0,c[j>>2]|0);break}A=c[o>>2]|0;c[n>>2]=c[j>>2];Se(A,15600,n)}while(0);vn(c[r>>2]|0,c[q>>2]|0);Xb(c[r>>2]|0,c[j>>2]|0);c[(c[r>>2]|0)+24>>2]=c[k>>2];i=l;return}function Qo(e,f){e=e|0;f=f|0;var g=0,h=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;p=i;i=i+80|0;j=p;h=p+76|0;l=p+72|0;s=p+68|0;w=p+64|0;t=p+60|0;u=p+56|0;v=p+52|0;m=p+48|0;r=p+44|0;o=p+40|0;k=p+36|0;n=p+32|0;g=p+28|0;q=p+24|0;c[h>>2]=e;c[l>>2]=f;c[k>>2]=c[c[h>>2]>>2];if(c[(c[h>>2]|0)+64>>2]|0){i=p;return}if(d[(c[k>>2]|0)+64>>0]|0){i=p;return}c[s>>2]=c[(c[h>>2]|0)+484>>2];c[t>>2]=Ve(c[k>>2]|0,c[(c[s>>2]|0)+68>>2]|0)|0;c[u>>2]=c[(c[(c[k>>2]|0)+16>>2]|0)+(c[t>>2]<<4)>>2];c[v>>2]=(c[c[s>>2]>>2]|0)+16;c[r>>2]=(c[(c[s>>2]|0)+4>>2]|0)+(((b[(c[s>>2]|0)+38>>1]|0)-1|0)*24|0);c[o>>2]=c[(c[r>>2]|0)+4>>2];c[w>>2]=sp(c[k>>2]|0,c[v>>2]|0,c[u>>2]|0)|0;if(ap(c[h>>2]|0,26,c[u>>2]|0,c[c[w>>2]>>2]|0,0)|0){i=p;return}if((c[o>>2]|0)!=0?(d[c[o>>2]>>0]|0)==101:0)c[o>>2]=0;if(d[(c[r>>2]|0)+23>>0]&1){Se(c[h>>2]|0,15184,j);i=p;return}if(c[(c[s>>2]|0)+8>>2]|0){Se(c[h>>2]|0,15216,j);i=p;return}if((c[(c[k>>2]|0)+24>>2]&524288|0)!=0?(c[o>>2]|0)!=0?(c[(c[s>>2]|0)+16>>2]|0)!=0:0:0){Se(c[h>>2]|0,15248,j);i=p;return}if(!((c[o>>2]|0)!=0?1:(d[(c[r>>2]|0)+20>>0]|0)==0)){Se(c[h>>2]|0,15312,j);i=p;return}do if(c[o>>2]|0){c[n>>2]=0;if(tp(c[k>>2]|0,c[o>>2]|0,1,65,n)|0){a[(c[k>>2]|0)+64>>0]=1;i=p;return}if(c[n>>2]|0){tf(c[n>>2]|0);break}Se(c[h>>2]|0,15368,j);i=p;return}while(0);c[m>>2]=rm(c[k>>2]|0,c[c[l>>2]>>2]|0,c[(c[l>>2]|0)+4>>2]|0,0)|0;if(c[m>>2]|0){c[g>>2]=(c[m>>2]|0)+((c[(c[l>>2]|0)+4>>2]|0)-1);c[q>>2]=c[(c[k>>2]|0)+24>>2];while(1){if((c[g>>2]|0)>>>0<=(c[m>>2]|0)>>>0)break;if((a[c[g>>2]>>0]|0)!=59?(d[1224+(d[c[g>>2]>>0]|0)>>0]&1|0)==0:0)break;e=c[g>>2]|0;c[g>>2]=e+ -1;a[e>>0]=0}e=(c[k>>2]|0)+24|0;c[e>>2]=c[e>>2]|2097152;e=c[h>>2]|0;l=(c[t>>2]|0)==1?14904:14928;n=c[(c[s>>2]|0)+48>>2]|0;r=c[m>>2]|0;s=(c[(c[s>>2]|0)+48>>2]|0)+1|0;v=c[v>>2]|0;c[j>>2]=c[u>>2];c[j+4>>2]=l;c[j+8>>2]=n;c[j+12>>2]=r;c[j+16>>2]=s;c[j+20>>2]=v;cp(e,15416,j);Xb(c[k>>2]|0,c[m>>2]|0);c[(c[k>>2]|0)+24>>2]=c[q>>2]}up(c[h>>2]|0,c[t>>2]|0,(c[o>>2]|0)!=0?3:2);vp(c[h>>2]|0,c[w>>2]|0,c[c[w>>2]>>2]|0);i=p;return}function Ro(e,f){e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;g=i;i=i+48|0;l=g;k=g+40|0;n=g+36|0;h=g+32|0;o=g+28|0;p=g+24|0;m=g+20|0;q=g+16|0;s=g+12|0;j=g+8|0;r=g+4|0;c[k>>2]=e;c[n>>2]=f;c[j>>2]=c[c[k>>2]>>2];if(a[(c[j>>2]|0)+64>>0]|0){f=c[j>>2]|0;e=c[n>>2]|0;vn(f,e);i=g;return}c[o>>2]=np(c[k>>2]|0,0,(c[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[c[p>>2]>>2];c[k>>2]=Zo(c[c[p>>2]>>2]|0,c[s>>2]|0)|0;a:do if((c[k>>2]|0)!=0&(c[l>>2]|0)!=0){c[r>>2]=0;while(1){if((c[r>>2]|0)>=(c[c[l>>2]>>2]|0))break a;if(!(xc(c[k>>2]|0,c[(c[l>>2]|0)+8+(c[r>>2]<<4)>>2]|0)|0)){s=c[p>>2]|0;c[q>>2]=c[k>>2];Se(s,14720,q)}c[r>>2]=(c[r>>2]|0)+1}}while(0);if(c[l>>2]|0){c[g>>2]=24+(c[c[l>>2]>>2]<<4);s=c[g>>2]|0;c[m>>2]=Fk(c[o>>2]|0,c[l>>2]|0,s,((s|0)<0)<<31>>31)|0}else c[m>>2]=se(c[o>>2]|0,24,0)|0;if(!(c[m>>2]|0)){sn(c[o>>2]|0,c[h>>2]|0);tn(c[o>>2]|0,c[j>>2]|0);Xb(c[o>>2]|0,c[k>>2]|0);c[m>>2]=c[l>>2];s=c[m>>2]|0;i=n;return s|0}else{c[(c[m>>2]|0)+8+(c[c[m>>2]>>2]<<4)+8>>2]=c[j>>2];c[(c[m>>2]|0)+8+(c[c[m>>2]>>2]<<4)+4>>2]=c[h>>2];c[(c[m>>2]|0)+8+(c[c[m>>2]>>2]<<4)>>2]=c[k>>2];c[(c[m>>2]|0)+8+(c[c[m>>2]>>2]<<4)+12>>2]=0;s=c[m>>2]|0;c[s>>2]=(c[s>>2]|0)+1;s=c[m>>2]|0;i=n;return s|0}return 0}function Xo(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0;j=i;i=i+16|0;l=j+4|0;k=j+8|0;h=j;c[l>>2]=f;a[k>>0]=g;c[h>>2]=b[11104+(c[l>>2]<<1)>>1];c[h>>2]=(c[h>>2]|0)+(d[k>>0]|0);i=j;return e[11720+(c[h>>2]<<1)>>1]|0}function Yo(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;d=e+4|0;b=e;c[d>>2]=a;c[b>>2]=c[(c[d>>2]|0)+8>>2];while(1){if((c[c[d>>2]>>2]|0)<0)break;zn(c[d>>2]|0)|0}c[(c[d>>2]|0)+8>>2]=c[b>>2];i=e;return}function Zo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+8|0;f=d+4|0;e=d;c[g>>2]=a;c[f>>2]=b;if(c[f>>2]|0){c[e>>2]=rm(c[g>>2]|0,c[c[f>>2]>>2]|0,c[(c[f>>2]|0)+4>>2]|0,0)|0;sm(c[e>>2]|0)|0;a=c[e>>2]|0;i=d;return a|0}else{c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}return 0}function _o(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[d>>2]=a;if(!(c[(c[d>>2]|0)+512>>2]|0)){i=b;return}if(!(c[(c[d>>2]|0)+484>>2]|0)){i=b;return}c[e>>2]=c[(c[d>>2]|0)+512>>2];c[f>>2]=c[(c[d>>2]|0)+516>>2];c[g>>2]=c[c[d>>2]>>2];a=c[g>>2]|0;d=c[(c[d>>2]|0)+484>>2]|0;f=c[f>>2]|0;$o(a,d,rm(c[g>>2]|0,c[e>>2]|0,f,((f|0)<0)<<31>>31)|0);i=b;return}function $o(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;j=i;i=i+32|0;k=j+24|0;f=j+20|0;e=j+16|0;h=j+12|0;m=j+8|0;g=j+4|0;l=j;c[k>>2]=a;c[f>>2]=b;c[e>>2]=d;b=(c[f>>2]|0)+52|0;a=c[b>>2]|0;c[b>>2]=a+1;c[h>>2]=a;c[m>>2]=1+(c[(c[f>>2]|0)+52>>2]|0)<<2;a=c[m>>2]|0;c[g>>2]=Fk(c[k>>2]|0,c[(c[f>>2]|0)+56>>2]|0,a,((a|0)<0)<<31>>31)|0;if(c[g>>2]|0){c[(c[g>>2]|0)+(c[h>>2]<<2)>>2]=c[e>>2];c[(c[g>>2]|0)+((c[h>>2]|0)+1<<2)>>2]=0;a=c[g>>2]|0;m=c[f>>2]|0;m=m+56|0;c[m>>2]=a;i=j;return}c[l>>2]=0;while(1){d=c[k>>2]|0;if((c[l>>2]|0)>=(c[h>>2]|0))break;Xb(d,c[(c[(c[f>>2]|0)+56>>2]|0)+(c[l>>2]<<2)>>2]|0);c[l>>2]=(c[l>>2]|0)+1}Xb(d,c[e>>2]|0);Xb(c[k>>2]|0,c[(c[f>>2]|0)+56>>2]|0);c[(c[f>>2]|0)+52>>2]=0;a=c[g>>2]|0;m=c[f>>2]|0;m=m+56|0;c[m>>2]=a;i=j;return}function ap(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;o=i;i=i+48|0;m=o;j=o+32|0;l=o+28|0;h=o+24|0;p=o+20|0;q=o+16|0;r=o+12|0;n=o+8|0;k=o+4|0;c[l>>2]=a;c[h>>2]=b;c[p>>2]=e;c[q>>2]=f;c[r>>2]=g;c[n>>2]=c[c[l>>2]>>2];if((d[(c[n>>2]|0)+145>>0]|0|0)==0?(d[(c[l>>2]|0)+451>>0]|0|0)==0:0){if(!(c[(c[n>>2]|0)+284>>2]|0)){c[j>>2]=0;a=c[j>>2]|0;i=o;return a|0}c[k>>2]=tb[c[(c[n>>2]|0)+284>>2]&1](c[(c[n>>2]|0)+288>>2]|0,c[h>>2]|0,c[p>>2]|0,c[q>>2]|0,c[r>>2]|0,c[(c[l>>2]|0)+492>>2]|0)|0;if((c[k>>2]|0)!=1){if((c[k>>2]|0)!=0&(c[k>>2]|0)!=2){c[k>>2]=1;bp(c[l>>2]|0)}}else{Se(c[l>>2]|0,14752,m);c[(c[l>>2]|0)+12>>2]=23}c[j>>2]=c[k>>2];a=c[j>>2]|0;i=o;return a|0}c[j>>2]=0;a=c[j>>2]|0;i=o;return a|0}function bp(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b+4|0;c[d>>2]=a;Se(c[d>>2]|0,14768,b);c[(c[d>>2]|0)+12>>2]=1;i=b;return}function cp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+144|0;f=l+36|0;n=l+32|0;m=l+16|0;g=l+8|0;h=l+4|0;j=l;k=l+40|0;c[f>>2]=b;c[n>>2]=d;c[h>>2]=0;c[j>>2]=c[c[f>>2]>>2];if(c[(c[f>>2]|0)+64>>2]|0){i=l;return}c[m>>2]=e;c[g>>2]=yn(c[j>>2]|0,c[n>>2]|0,m)|0;if(!(c[g>>2]|0)){i=l;return}n=(c[f>>2]|0)+18|0;a[n>>0]=(a[n>>0]|0)+1<<24>>24;n=k+0|0;e=(c[f>>2]|0)+440|0;m=n+96|0;do{a[n>>0]=a[e>>0]|0;n=n+1|0;e=e+1|0}while((n|0)<(m|0));n=(c[f>>2]|0)+440|0;m=n+96|0;do{c[n>>2]=0;n=n+4|0}while((n|0)<(m|0));qf(c[f>>2]|0,c[g>>2]|0,h)|0;Xb(c[j>>2]|0,c[h>>2]|0);Xb(c[j>>2]|0,c[g>>2]|0);n=(c[f>>2]|0)+440|0;e=k+0|0;m=n+96|0;do{a[n>>0]=a[e>>0]|0;n=n+1|0;e=e+1|0}while((n|0)<(m|0));b=(c[f>>2]|0)+18|0;a[b>>0]=(a[b>>0]|0)+ -1<<24>>24;i=l;return}function dp(b){b=b|0;var d=0,f=0,g=0;d=i;i=i+16|0;g=d+4|0;f=d;c[g>>2]=b;c[f>>2]=c[(c[g>>2]|0)+8>>2];if(!(c[f>>2]|0)){b=Ue(c[g>>2]|0)|0;c[(c[g>>2]|0)+8>>2]=b;c[f>>2]=b;if(c[f>>2]|0)mp(c[f>>2]|0,153)|0;if((c[(c[g>>2]|0)+408>>2]|0)==0?((e[(c[c[g>>2]>>2]|0)+60>>1]|0)&8|0)==0:0)a[(c[g>>2]|0)+23>>0]=1}i=d;return c[f>>2]|0}function ep(a,b){a=a|0;b=b|0;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(c[g>>2]|0)+4>>2]|0,(c[h>>2]|0)*20|0,0)|0;if(!(c[d>>2]|0)){a=c[d>>2]|0;a=(a|0)!=0;a=a?0:7;i=e;return a|0}a=((Bk(c[c[f>>2]>>2]|0,c[d>>2]|0)|0)>>>0)/20|0;c[(c[f>>2]|0)+84>>2]=a;c[(c[g>>2]|0)+4>>2]=c[d>>2];a=c[d>>2]|0;a=(a|0)!=0;a=a?0:7;i=e;return a|0}function kp(b){b=b|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+4|0;g=e;c[g>>2]=b;b=c[g>>2]|0;if(!(d[(c[g>>2]|0)+19>>0]|0)){g=b+72|0;b=(c[g>>2]|0)+1|0;c[g>>2]=b;c[f>>2]=b;b=c[f>>2]|0;i=e;return b|0}else{h=b+19|0;b=(a[h>>0]|0)+ -1<<24>>24;a[h>>0]=b;c[f>>2]=c[(c[g>>2]|0)+24+((b&255)<<2)>>2];b=c[f>>2]|0;i=e;return b|0}return 0}function lp(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;j=f+12|0;h=f+8|0;k=f+4|0;g=f;c[j>>2]=b;c[h>>2]=e;if(!(c[h>>2]|0)){i=f;return}if((d[(c[j>>2]|0)+19>>0]|0|0)>=8){i=f;return}c[k>>2]=0;c[g>>2]=(c[j>>2]|0)+116;while(1){if((c[k>>2]|0)>=10){e=8;break}if((c[(c[g>>2]|0)+12>>2]|0)==(c[h>>2]|0)){e=6;break}c[k>>2]=(c[k>>2]|0)+1;c[g>>2]=(c[g>>2]|0)+20}if((e|0)==6){a[(c[g>>2]|0)+6>>0]=1;i=f;return}else if((e|0)==8){k=c[h>>2]|0;e=(c[j>>2]|0)+19|0;b=a[e>>0]|0;a[e>>0]=b+1<<24>>24;c[(c[j>>2]|0)+24+((b&255)<<2)>>2]=k;i=f;return}}function mp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;a=ip(c[f>>2]|0,c[e>>2]|0,0,0,0)|0;i=d;return a|0}function np(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;j=e+16|0;h=e+12|0;g=e+8|0;f=e+4|0;k=e;c[j>>2]=a;c[h>>2]=b;c[g>>2]=d;if(c[c[g>>2]>>2]|0){c[k>>2]=Ve(c[c[j>>2]>>2]|0,c[c[g>>2]>>2]|0)|0;c[f>>2]=c[(c[(c[c[j>>2]>>2]|0)+16>>2]|0)+(c[k>>2]<<4)>>2]}else c[f>>2]=c[(c[g>>2]|0)+4>>2];a=Re(c[j>>2]|0,c[h>>2]|0,c[(c[g>>2]|0)+8>>2]|0,c[f>>2]|0)|0;i=e;return a|0}function op(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;f=h;g=h+12|0;d=h+8|0;e=h+4|0;c[d>>2]=a;c[e>>2]=b;if((Mb(c[e>>2]|0)|0)>6?0==(Lb(c[e>>2]|0,15144,7)|0):0){a=c[d>>2]|0;c[f>>2]=c[e>>2];Se(a,15152,f);c[g>>2]=1;a=c[g>>2]|0;i=h;return a|0}c[g>>2]=0;a=c[g>>2]|0;i=h;return a|0}function pp(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+16|0;l=g+12|0;h=g+8|0;k=g+4|0;j=g;c[l>>2]=b;c[h>>2]=e;c[k>>2]=f;f=c[l>>2]|0;if(c[(c[l>>2]|0)+408>>2]|0)f=c[f+408>>2]|0;c[j>>2]=f;qp(c[l>>2]|0,c[k>>2]|0);b=(c[j>>2]|0)+328|0;c[b>>2]=c[b>>2]|1<>2];b=(c[j>>2]|0)+20|0;a[b>>0]=d[b>>0]|0|c[h>>2];i=g;return}function qp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;h=d+12|0;f=d+8|0;e=d+4|0;g=d;c[h>>2]=a;c[f>>2]=b;b=c[h>>2]|0;if(c[(c[h>>2]|0)+408>>2]|0)b=c[b+408>>2]|0;c[e>>2]=b;c[g>>2]=c[c[e>>2]>>2];if((c[(c[e>>2]|0)+332>>2]&1<>2]|0)!=0|0){i=d;return}h=(c[e>>2]|0)+332|0;c[h>>2]=c[h>>2]|1<>2];c[(c[e>>2]|0)+336+(c[f>>2]<<2)>>2]=c[c[(c[(c[g>>2]|0)+16>>2]|0)+(c[f>>2]<<4)+12>>2]>>2];if((c[f>>2]|0)!=1){i=d;return}rp(c[e>>2]|0)|0;i=d;return}function rp(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+32|0;h=d;e=d+20|0;f=d+16|0;j=d+12|0;g=d+8|0;k=d+4|0;c[f>>2]=b;c[j>>2]=c[c[f>>2]>>2];if((c[(c[(c[j>>2]|0)+16>>2]|0)+20>>2]|0)==0?(a[(c[f>>2]|0)+450>>0]|0)==0:0){c[g>>2]=rh(c[c[j>>2]>>2]|0,0,c[j>>2]|0,k,0,542)|0;if(c[g>>2]|0){Se(c[f>>2]|0,15072,h);c[(c[f>>2]|0)+12>>2]=c[g>>2];c[e>>2]=1;k=c[e>>2]|0;i=d;return k|0}c[(c[(c[j>>2]|0)+16>>2]|0)+20>>2]=c[k>>2];if(7==(kg(c[k>>2]|0,c[(c[j>>2]|0)+72>>2]|0,-1,0)|0)){a[(c[j>>2]|0)+64>>0]=1;c[e>>2]=1;k=c[e>>2]|0;i=d;return k|0}}c[e>>2]=0;k=c[e>>2]|0;i=d;return k|0}function sp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;k=i;i=i+32|0;h=k+20|0;e=k+16|0;l=k+12|0;g=k+8|0;m=k+4|0;j=k;c[h>>2]=a;c[e>>2]=b;c[l>>2]=d;c[g>>2]=0;c[m>>2]=0;while(1){if((c[m>>2]|0)>=(c[(c[h>>2]|0)+20>>2]|0)){f=7;break}a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2]|0);lp(c[f>>2]|0,c[h>>2]|0);i=j;return}function vp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;k=i;i=i+48|0;l=k;j=k+32|0;h=k+28|0;e=k+24|0;f=k+20|0;m=k+16|0;g=k+12|0;n=k+8|0;o=k+4|0;c[j>>2]=a;c[h>>2]=b;c[e>>2]=d;c[f>>2]=dp(c[j>>2]|0)|0;if(!(c[f>>2]|0)){i=k;return}c[g>>2]=Ve(c[c[j>>2]>>2]|0,c[(c[h>>2]|0)+68>>2]|0)|0;c[n>>2]=wp(c[j>>2]|0,c[h>>2]|0)|0;while(1){if(!(c[n>>2]|0))break;c[o>>2]=Ve(c[c[j>>2]>>2]|0,c[(c[n>>2]|0)+20>>2]|0)|0;hp(c[f>>2]|0,126,c[o>>2]|0,0,0,c[c[n>>2]>>2]|0,0)|0;c[n>>2]=c[(c[n>>2]|0)+32>>2]}hp(c[f>>2]|0,124,c[g>>2]|0,0,0,c[c[h>>2]>>2]|0,0)|0;a=c[c[j>>2]>>2]|0;c[l>>2]=c[e>>2];c[m>>2]=Te(a,15528,l)|0;if(!(c[m>>2]|0)){i=k;return}gp(c[f>>2]|0,c[g>>2]|0,c[m>>2]|0);a=xp(c[j>>2]|0,c[h>>2]|0)|0;c[m>>2]=a;if(!a){i=k;return}gp(c[f>>2]|0,1,c[m>>2]|0);i=k;return}function wp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;e=f+24|0;m=f+20|0;k=f+16|0;l=f+12|0;h=f+8|0;j=f+4|0;g=f;c[m>>2]=b;c[k>>2]=d;c[l>>2]=c[(c[(c[c[m>>2]>>2]|0)+16>>2]|0)+28>>2];c[h>>2]=0;if(a[(c[m>>2]|0)+438>>0]|0){c[e>>2]=0;m=c[e>>2]|0;i=f;return m|0}a:do if((c[l>>2]|0)!=(c[(c[k>>2]|0)+68>>2]|0)){c[j>>2]=c[(c[l>>2]|0)+48>>2];while(1){if(!(c[j>>2]|0))break a;c[g>>2]=c[(c[j>>2]|0)+8>>2];if((c[(c[g>>2]|0)+24>>2]|0)==(c[(c[k>>2]|0)+68>>2]|0)?0==(xc(c[(c[g>>2]|0)+4>>2]|0,c[c[k>>2]>>2]|0)|0):0){if(c[h>>2]|0)d=c[h>>2]|0;else d=c[(c[k>>2]|0)+64>>2]|0;c[(c[g>>2]|0)+32>>2]=d;c[h>>2]=c[g>>2]}c[j>>2]=c[c[j>>2]>>2]}}while(0);if(c[h>>2]|0)g=c[h>>2]|0;else g=c[(c[k>>2]|0)+64>>2]|0;c[e>>2]=g;m=c[e>>2]|0;i=f;return m|0}function xp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;i=i+32|0;g=e;f=e+28|0;m=e+24|0;k=e+20|0;h=e+16|0;l=e+12|0;j=e+8|0;d=e+4|0;c[f>>2]=a;c[m>>2]=b;c[h>>2]=0;c[l>>2]=c[(c[(c[c[f>>2]>>2]|0)+16>>2]|0)+28>>2];a:do if((c[(c[m>>2]|0)+68>>2]|0)!=(c[l>>2]|0)){c[j>>2]=c[c[f>>2]>>2];c[k>>2]=wp(c[f>>2]|0,c[m>>2]|0)|0;while(1){if(!(c[k>>2]|0))break a;if((c[(c[k>>2]|0)+20>>2]|0)==(c[l>>2]|0))c[h>>2]=yp(c[j>>2]|0,c[h>>2]|0,c[c[k>>2]>>2]|0)|0;c[k>>2]=c[(c[k>>2]|0)+32>>2]}}while(0);if(!(c[h>>2]|0)){a=c[h>>2]|0;i=e;return a|0}a=c[c[f>>2]>>2]|0;c[g>>2]=c[h>>2];c[d>>2]=Te(a,15544,g)|0;Xb(c[c[f>>2]>>2]|0,c[h>>2]|0);c[h>>2]=c[d>>2];a=c[h>>2]|0;i=e;return a|0}function yp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;j=e;h=e+20|0;g=e+16|0;k=e+12|0;f=e+8|0;c[h>>2]=a;c[g>>2]=b;c[k>>2]=d;d=c[h>>2]|0;if(c[g>>2]|0){a=c[k>>2]|0;c[j>>2]=c[g>>2];c[j+4>>2]=a;c[f>>2]=Te(d,15576,j)|0;Xb(c[h>>2]|0,c[g>>2]|0);a=c[f>>2]|0;i=e;return a|0}else{c[j>>2]=c[k>>2];c[f>>2]=Te(d,15568,j)|0;a=c[f>>2]|0;i=e;return a|0}return 0}function zp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;$e(c[e>>2]|0,c[f>>2]|0,c[(c[e>>2]|0)+32>>2]|0);c[(c[(c[e>>2]|0)+24>>2]|0)+88>>2]=(c[(c[e>>2]|0)+32>>2]|0)-1;i=d;return}function Ap(f,g,j,k,l,m){f=f|0;g=g|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0;r=i;i=i+64|0;C=r;n=r+52|0;u=r+48|0;y=r+44|0;t=r+58|0;s=r+57|0;o=r+40|0;x=r+36|0;z=r+32|0;v=r+28|0;q=r+24|0;w=r+20|0;B=r+16|0;p=r+12|0;A=r+56|0;E=r+8|0;c[u>>2]=f;c[y>>2]=g;a[t>>0]=j;a[s>>0]=k;c[o>>2]=l;c[x>>2]=m;c[v>>2]=0;c[q>>2]=0;c[w>>2]=1;c[B>>2]=1216;c[p>>2]=0;if(!(c[y>>2]|0)){c[c[o>>2]>>2]=0;c[n>>2]=0;f=c[n>>2]|0;i=r;return f|0}while(1){f=d[c[y>>2]>>0]|0;c[z>>2]=f;if((f|0)!=158)break;c[y>>2]=c[(c[y>>2]|0)+12>>2]}if((c[z>>2]|0)==159)c[z>>2]=d[(c[y>>2]|0)+38>>0];if((c[z>>2]|0)==38){a[A>>0]=Bp(c[(c[y>>2]|0)+8>>2]|0,0)|0;c[p>>2]=Ap(c[u>>2]|0,c[(c[y>>2]|0)+12>>2]|0,a[t>>0]|0,a[A>>0]|0,c[o>>2]|0,c[x>>2]|0)|0;if(c[c[o>>2]>>2]|0){Cp(c[c[o>>2]>>2]|0,a[A>>0]|0,1);Dp(c[c[o>>2]>>2]|0,a[s>>0]|0,1)}c[n>>2]=c[p>>2];f=c[n>>2]|0;i=r;return f|0}do if((c[z>>2]|0)==157){if((d[c[(c[y>>2]|0)+12>>2]>>0]|0|0)!=132?(d[c[(c[y>>2]|0)+12>>2]>>0]|0|0)!=133:0)break;c[y>>2]=c[(c[y>>2]|0)+12>>2];c[z>>2]=d[c[y>>2]>>0];c[w>>2]=-1;c[B>>2]=15592}while(0);do if((c[z>>2]|0)==97|(c[z>>2]|0)==133|(c[z>>2]|0)==132){c[q>>2]=Ep(c[u>>2]|0,c[x>>2]|0)|0;if(c[q>>2]|0){if(c[(c[y>>2]|0)+4>>2]&1024){g=c[q>>2]|0;j=c[(c[y>>2]|0)+8>>2]|0;f=c[w>>2]|0;f=lF(j|0,((j|0)<0)<<31>>31|0,f|0,((f|0)<0)<<31>>31|0)|0;Xd(g,f,D)}else{f=c[u>>2]|0;g=c[(c[y>>2]|0)+8>>2]|0;c[C>>2]=c[B>>2];c[C+4>>2]=g;c[v>>2]=Te(f,8992,C)|0;if(!(c[v>>2]|0)){s=43;break}sf(c[q>>2]|0,-1,c[v>>2]|0,1,16)}if((c[z>>2]|0)==132|(c[z>>2]|0)==133?(d[s>>0]|0|0)==65:0)Dp(c[q>>2]|0,67,1);else Dp(c[q>>2]|0,a[s>>0]|0,1);if((e[(c[q>>2]|0)+8>>1]|0)&12){f=(c[q>>2]|0)+8|0;b[f>>1]=(e[f>>1]|0)&-3}if((d[t>>0]|0|0)!=1){c[p>>2]=yk(c[q>>2]|0,d[t>>0]|0)|0;s=42}else s=42}else s=43}else{if((c[z>>2]|0)!=157){if((c[z>>2]|0)==101){c[q>>2]=Ep(c[u>>2]|0,c[x>>2]|0)|0;if(!(c[q>>2]|0)){s=43;break}else{s=42;break}}if((c[z>>2]|0)!=134){s=42;break}c[q>>2]=Ep(c[u>>2]|0,c[x>>2]|0)|0;if(!(c[q>>2]|0)){s=43;break}c[v>>2]=(c[(c[y>>2]|0)+8>>2]|0)+2;c[E>>2]=(Mb(c[v>>2]|0)|0)-1;f=c[q>>2]|0;s=Gp(c[u>>2]|0,c[v>>2]|0,c[E>>2]|0)|0;Vd(f,s,(c[E>>2]|0)/2|0,0,16)|0;s=42;break}f=0==(tp(c[u>>2]|0,c[(c[y>>2]|0)+12>>2]|0,a[t>>0]|0,a[s>>0]|0,q)|0);if(f&(c[q>>2]|0)!=0){Fp(c[q>>2]|0)|0;u=c[q>>2]|0;do if(!((e[(c[q>>2]|0)+8>>1]|0)&8)){f=u;u=c[q>>2]|0;if((c[f>>2]|0)==0?(c[f+4>>2]|0)==-2147483648:0){h[u>>3]=9223372036854776000.0;b[(c[q>>2]|0)+8>>1]=(e[(c[q>>2]|0)+8>>1]|0)&-16896|8;break}else{g=u;g=ZE(0,0,c[g>>2]|0,c[g+4>>2]|0)|0;f=c[q>>2]|0;c[f>>2]=g;c[f+4>>2]=D;break}}else h[c[q>>2]>>3]=-+h[u>>3];while(0);Dp(c[q>>2]|0,a[s>>0]|0,a[t>>0]|0);s=42}else s=42}while(0);if((s|0)==42){c[c[o>>2]>>2]=c[q>>2];c[n>>2]=c[p>>2];f=c[n>>2]|0;i=r;return f|0}else if((s|0)==43){a[(c[u>>2]|0)+64>>0]=1;Xb(c[u>>2]|0,c[v>>2]|0);tf(c[q>>2]|0);c[n>>2]=7;f=c[n>>2]|0;i=r;return f|0}return 0}function Bp(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;l=i;i=i+32|0;h=l+21|0;o=l+16|0;k=l+12|0;n=l+8|0;j=l+20|0;m=l+4|0;f=l;c[o>>2]=b;c[k>>2]=e;c[n>>2]=0;a[j>>0]=67;c[m>>2]=0;if(!(c[o>>2]|0)){a[h>>0]=a[j>>0]|0;b=a[h>>0]|0;i=l;return b|0}a:while(1){if(!(a[c[o>>2]>>0]|0))break;c[n>>2]=(c[n>>2]<<8)+(d[440+(a[c[o>>2]>>0]&255)>>0]|0);c[o>>2]=(c[o>>2]|0)+1;if((c[n>>2]|0)==1667785074){a[j>>0]=66;c[m>>2]=c[o>>2];continue}if((c[n>>2]|0)==1668050786){a[j>>0]=66;continue}if((c[n>>2]|0)==1952807028){a[j>>0]=66;continue}do if((c[n>>2]|0)==1651273570){if((a[j>>0]|0)!=67?(a[j>>0]|0)!=69:0)break;a[j>>0]=65;if((a[c[o>>2]>>0]|0)!=40)continue a;c[m>>2]=c[o>>2];continue a}while(0);if((c[n>>2]|0)==1919246700?(a[j>>0]|0)==67:0){a[j>>0]=69;continue}if((c[n>>2]|0)==1718382433?(a[j>>0]|0)==67:0){a[j>>0]=69;continue}if((c[n>>2]|0)==1685026146?(a[j>>0]|0)==67:0){a[j>>0]=69;continue}if((c[n>>2]&16777215|0)==6909556){g=25;break}}if((g|0)==25)a[j>>0]=68;b:do if((c[k>>2]|0)!=0?(a[c[k>>2]>>0]=1,(a[j>>0]|0)<67):0){if(!(c[m>>2]|0)){a[c[k>>2]>>0]=5;break}while(1){if(!(a[c[m>>2]>>0]|0))break b;if(d[1224+(d[c[m>>2]>>0]|0)>>0]&4)break;c[m>>2]=(c[m>>2]|0)+1}c[f>>2]=0;Ag(c[m>>2]|0,f)|0;b=((c[f>>2]|0)/4|0)+1|0;c[f>>2]=b;c[f>>2]=(c[f>>2]|0)>255?255:b;a[c[k>>2]>>0]=c[f>>2]}while(0);a[h>>0]=a[j>>0]|0;b=a[h>>0]|0;i=l;return b|0}function Cp(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0;j=i;i=i+16|0;l=j;m=j+5|0;k=j+4|0;c[l>>2]=f;a[m>>0]=g;a[k>>0]=h;if((e[(c[l>>2]|0)+8>>1]|0)&1){i=j;return}h=d[m>>0]|0;if((h|0)==65){h=c[l>>2]|0;if(!((e[(c[l>>2]|0)+8>>1]|0)&16)){Dp(h,66,a[k>>0]|0);b[(c[l>>2]|0)+8>>1]=(e[(c[l>>2]|0)+8>>1]|0)&-16896|16;i=j;return}else{f=h+8|0;b[f>>1]=(e[f>>1]|0)&-496;i=j;return}}else if((h|0)==67){Fp(c[l>>2]|0)|0;i=j;return}else if((h|0)==68){Mp(c[l>>2]|0)|0;i=j;return}else if((h|0)==69){Np(c[l>>2]|0)|0;i=j;return}else{f=(c[l>>2]|0)+8|0;b[f>>1]=e[f>>1]|0|((e[(c[l>>2]|0)+8>>1]|0)&16)>>3;Dp(c[l>>2]|0,66,a[k>>0]|0);f=(c[l>>2]|0)+8|0;b[f>>1]=(e[f>>1]|0)&-16413;i=j;return}}function Dp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;j=f;h=f+5|0;g=f+4|0;c[j>>2]=b;a[h>>0]=d;a[g>>0]=e;Jp(c[j>>2]|0,a[h>>0]|0,a[g>>0]|0);i=f;return}function Ep(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d+4|0;c[e>>2]=a;c[d>>2]=b;a=rf(c[e>>2]|0)|0;i=d;return a|0}function Fp(d){d=d|0;var f=0,g=0,j=0,k=0.0;f=i;i=i+16|0;g=f;c[g>>2]=d;do if(!((e[(c[g>>2]|0)+8>>1]|0)&13)){j=0==(wg(c[(c[g>>2]|0)+16>>2]|0,c[g>>2]|0,c[(c[g>>2]|0)+12>>2]|0,a[(c[g>>2]|0)+10>>0]|0)|0);d=c[g>>2]|0;if(j){b[(c[g>>2]|0)+8>>1]=(e[d+8>>1]|0)&-16896|4;break}else{k=+Id(d);h[c[g>>2]>>3]=k;b[(c[g>>2]|0)+8>>1]=(e[(c[g>>2]|0)+8>>1]|0)&-16896|8;Hp(c[g>>2]|0);break}}while(0);j=(c[g>>2]|0)+8|0;b[j>>1]=(e[j>>1]|0)&-19;i=f;return 0}function Gp(b,d,e){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+32|0;l=f+16|0;k=f+12|0;j=f+8|0;g=f+4|0;h=f;c[l>>2]=b;c[k>>2]=d;c[j>>2]=e;b=((c[j>>2]|0)/2|0)+1|0;c[g>>2]=Qe(c[l>>2]|0,b,((b|0)<0)<<31>>31)|0;c[j>>2]=(c[j>>2]|0)+ -1;if(!(c[g>>2]|0)){l=c[g>>2]|0;i=f;return l|0}c[h>>2]=0;while(1){e=c[h>>2]|0;if((c[h>>2]|0)>=(c[j>>2]|0))break;l=((vg(a[(c[k>>2]|0)+e>>0]|0)|0)&255)<<4;l=(l|(vg(a[(c[k>>2]|0)+((c[h>>2]|0)+1)>>0]|0)|0)&255)&255;a[(c[g>>2]|0)+((c[h>>2]|0)/2|0)>>0]=l;c[h>>2]=(c[h>>2]|0)+2}a[(c[g>>2]|0)+((e|0)/2|0)>>0]=0;l=c[g>>2]|0;i=f;return l|0}function Hp(a){a=a|0;var d=0,f=0,g=0,j=0,k=0,l=0,m=0;d=i;i=i+16|0;g=d+8|0;f=d;c[g>>2]=a;k=Ip(+h[c[g>>2]>>3])|0;m=f;c[m>>2]=k;c[m+4>>2]=D;m=f;k=f;l=c[k+4>>2]|0;a=f;j=c[a+4>>2]|0;if(!(+h[c[g>>2]>>3]==+((c[m>>2]|0)>>>0)+4294967296.0*+(c[m+4>>2]|0)&((l|0)>-2147483648|(l|0)==-2147483648&(c[k>>2]|0)>>>0>0)&((j|0)<2147483647|(j|0)==2147483647&(c[a>>2]|0)>>>0<4294967295))){i=d;return}k=f;l=c[k+4>>2]|0;m=c[g>>2]|0;c[m>>2]=c[k>>2];c[m+4>>2]=l;b[(c[g>>2]|0)+8>>1]=(e[(c[g>>2]|0)+8>>1]|0)&-16896|4;i=d;return}function Ip(a){a=+a;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+8|0;e=b;h[e>>3]=a;do if(!(+h[e>>3]<=-9223372036854776000.0))if(+h[e>>3]>=9223372036854776000.0){e=d;c[e>>2]=-1;c[e+4>>2]=2147483647;break}else{a=+h[e>>3];f=+O(a)>=1.0?a>0.0?(ca(+N(a/4294967296.0),4294967295.0)|0)>>>0:~~+_((a- +(~~a>>>0))/4294967296.0)>>>0:0;e=d;c[e>>2]=~~a>>>0;c[e+4>>2]=f;break}else{f=d;c[f>>2]=0;c[f+4>>2]=-2147483648}while(0);f=d;D=c[f+4>>2]|0;i=b;return c[f>>2]|0}function Jp(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;i=i+16|0;h=g;k=g+5|0;j=g+4|0;c[h>>2]=b;a[k>>0]=d;a[j>>0]=f;if((a[k>>0]|0)<67){if((a[k>>0]|0)!=66){i=g;return}if(e[(c[h>>2]|0)+8>>1]&2){i=g;return}if(!(e[(c[h>>2]|0)+8>>1]&12)){i=g;return}Kp(c[h>>2]|0,a[j>>0]|0,1)|0;i=g;return}if(e[(c[h>>2]|0)+8>>1]&4){i=g;return}f=c[h>>2]|0;if(e[(c[h>>2]|0)+8>>1]&8){Hp(f);i=g;return}if(!(e[f+8>>1]&2)){i=g;return}Pe(c[h>>2]|0,1);i=g;return}function Kp(f,g,j){f=f|0;g=g|0;j=j|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=i;i=i+32|0;l=q;m=q+20|0;n=q+16|0;o=q+25|0;p=q+24|0;r=q+12|0;c[n>>2]=f;a[o>>0]=g;a[p>>0]=j;c[r>>2]=e[(c[n>>2]|0)+8>>1];c[q+8>>2]=32;if(Lp(c[n>>2]|0,32)|0){c[m>>2]=7;f=c[m>>2]|0;i=q;return f|0}j=c[(c[n>>2]|0)+16>>2]|0;g=c[n>>2]|0;if(c[r>>2]&4){r=g;g=c[r+4>>2]|0;f=l;c[f>>2]=c[r>>2];c[f+4>>2]=g;sc(32,j,9456,l)|0}else{h[k>>3]=+h[g>>3];c[l>>2]=c[k>>2];c[l+4>>2]=c[k+4>>2];sc(32,j,9808,l)|0}f=Mb(c[(c[n>>2]|0)+16>>2]|0)|0;c[(c[n>>2]|0)+12>>2]=f;a[(c[n>>2]|0)+10>>0]=1;f=(c[n>>2]|0)+8|0;b[f>>1]=e[f>>1]|514;if(a[p>>0]|0){f=(c[n>>2]|0)+8|0;b[f>>1]=e[f>>1]&-13}yk(c[n>>2]|0,d[o>>0]|0)|0;c[m>>2]=0;f=c[m>>2]|0;i=q;return f|0}function Lp(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;g=f+8|0;j=f+4|0;h=f;c[j>>2]=a;c[h>>2]=d;d=c[j>>2]|0;if((c[(c[j>>2]|0)+24>>2]|0)<(c[h>>2]|0)){c[g>>2]=Dk(d,c[h>>2]|0,0)|0;a=c[g>>2]|0;i=f;return a|0}else{c[(c[j>>2]|0)+16>>2]=c[d+20>>2];a=(c[j>>2]|0)+8|0;b[a>>1]=(e[a>>1]|0)&13;c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}return 0}function Mp(a){a=a|0;var d=0,f=0,g=0;d=i;i=i+16|0;f=d;c[f>>2]=a;g=Kd(c[f>>2]|0)|0;a=c[f>>2]|0;c[a>>2]=g;c[a+4>>2]=D;b[(c[f>>2]|0)+8>>1]=(e[(c[f>>2]|0)+8>>1]|0)&-16896|4;i=d;return 0}function Np(a){a=a|0;var d=0,f=0,g=0.0;d=i;i=i+16|0;f=d;c[f>>2]=a;g=+Id(c[f>>2]|0);h[c[f>>2]>>3]=g;b[(c[f>>2]|0)+8>>1]=(e[(c[f>>2]|0)+8>>1]|0)&-16896|8;i=d;return 0}function Op(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+32|0;e=l+24|0;j=l+20|0;k=l+16|0;g=l+12|0;n=l+8|0;m=l+4|0;h=l;c[e>>2]=a;c[j>>2]=b;c[k>>2]=d;c[g>>2]=0;c[n>>2]=0;while(1){if((c[n>>2]|0)>=(c[(c[e>>2]|0)+20>>2]|0)){f=7;break}a=c[n>>2]|0;c[m>>2]=(c[n>>2]|0)<2?a^1:a;c[h>>2]=c[(c[(c[e>>2]|0)+16>>2]|0)+(c[m>>2]<<4)+12>>2];if(!((c[k>>2]|0)!=0?(xc(c[k>>2]|0,c[(c[(c[e>>2]|0)+16>>2]|0)+(c[m>>2]<<4)>>2]|0)|0)!=0:0))f=5;if((f|0)==5?(f=0,c[g>>2]=bh((c[h>>2]|0)+24|0,c[j>>2]|0)|0,(c[g>>2]|0)!=0):0){f=7;break}c[n>>2]=(c[n>>2]|0)+1}if((f|0)==7){i=l;return c[g>>2]|0}return 0}function Pp(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;k=i;i=i+16|0;h=k;j=k+12|0;f=k+8|0;g=k+4|0;c[f>>2]=b;c[g>>2]=e;if((((a[(c[c[f>>2]>>2]|0)+145>>0]|0)==0?(d[(c[f>>2]|0)+18>>0]|0)==0:0)?(c[(c[c[f>>2]>>2]|0)+24>>2]&2048|0)==0:0)?0==(Lb(c[g>>2]|0,15144,7)|0):0){b=c[f>>2]|0;c[h>>2]=c[g>>2];Se(b,18064,h);c[j>>2]=1;b=c[j>>2]|0;i=k;return b|0}c[j>>2]=0;b=c[j>>2]|0;i=k;return b|0}function Qp(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;o=i;i=i+48|0;m=o;j=o+36|0;k=o+32|0;l=o+28|0;s=o+24|0;q=o+20|0;t=o+16|0;p=o+12|0;n=o+8|0;r=o+4|0;h=o+40|0;c[k>>2]=f;c[l>>2]=g;c[t>>2]=0;c[n>>2]=c[c[k>>2]>>2];if(Vp(c[k>>2]|0,c[l>>2]|0)|0){c[j>>2]=1;f=c[j>>2]|0;i=o;return f|0}if(d[(c[l>>2]|0)+44>>0]&16){c[j>>2]=0;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;break}if((c[c[e>>2]>>2]|0)==(c[f>>2]|0)){b=5;break}c[e>>2]=c[(c[e>>2]|0)+24>>2]}if((b|0)==5){i=d;return c[e>>2]|0}return 0}function Sp(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=b;b=c[f>>2]|0;if(c[(c[f>>2]|0)+408>>2]|0)b=c[b+408>>2]|0;c[e>>2]=b;a[(c[e>>2]|0)+21>>0]=1;i=d;return}function Tp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;g=d+12|0;h=d+8|0;f=d+4|0;e=d;c[g>>2]=a;c[h>>2]=b;c[e>>2]=0;c[f>>2]=Up(c[h>>2]|0)|0;while(1){if(!(c[f>>2]|0))break;c[e>>2]=yp(c[c[g>>2]>>2]|0,c[e>>2]|0,c[c[c[f>>2]>>2]>>2]|0)|0;c[f>>2]=c[(c[f>>2]|0)+12>>2]}i=d;return c[e>>2]|0}function Up(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=bh((c[(c[d>>2]|0)+68>>2]|0)+56|0,c[c[d>>2]>>2]|0)|0;i=b;return a|0}function Vp(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+48|0;m=p;o=p+36|0;l=p+32|0;g=p+28|0;f=p+24|0;n=p+20|0;h=p+16|0;j=p+12|0;e=p+8|0;k=p+4|0;c[l>>2]=a;c[g>>2]=b;c[f>>2]=c[c[l>>2]>>2];if(((d[(c[g>>2]|0)+44>>0]|0)&16|0)!=0?(Rp(c[f>>2]|0,c[g>>2]|0)|0)==0:0){c[n>>2]=c[c[(c[g>>2]|0)+56>>2]>>2];c[h>>2]=bh((c[f>>2]|0)+308|0,c[n>>2]|0)|0;if(c[h>>2]|0){c[k>>2]=0;c[j>>2]=zr(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0,c[(c[c[h>>2]>>2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,m=0;f=i;i=i+32|0;g=f+20|0;j=f+16|0;k=f+12|0;h=f+8|0;l=f+4|0;m=f;c[j>>2]=d;c[k>>2]=e;c[l>>2]=c[c[j>>2]>>2];c[m>>2]=c[(c[l>>2]|0)+24>>2];d=(c[l>>2]|0)+24|0;c[d>>2]=c[d>>2]&-33;d=(c[l>>2]|0)+24|0;c[d>>2]=c[d>>2]|64;Zp(c[j>>2]|0,c[k>>2]|0,0);if(c[(c[j>>2]|0)+64>>2]|0){c[g>>2]=0;d=c[g>>2]|0;i=f;return d|0}while(1){if(!(c[(c[k>>2]|0)+52>>2]|0))break;c[k>>2]=c[(c[k>>2]|0)+52>>2]}c[(c[l>>2]|0)+24>>2]=c[m>>2];c[h>>2]=se(c[l>>2]|0,76,0)|0;if(!(c[h>>2]|0)){c[g>>2]=0;d=c[g>>2]|0;i=f;return d|0}b[(c[h>>2]|0)+40>>1]=1;c[c[h>>2]>>2]=0;b[(c[h>>2]|0)+28>>1]=200;_p(c[j>>2]|0,c[c[k>>2]>>2]|0,(c[h>>2]|0)+38|0,(c[h>>2]|0)+4|0)|0;$p(c[j>>2]|0,c[h>>2]|0,c[k>>2]|0);b[(c[h>>2]|0)+36>>1]=-1;if(a[(c[l>>2]|0)+64>>0]|0){Vb(c[l>>2]|0,c[h>>2]|0);c[g>>2]=0;d=c[g>>2]|0;i=f;return d|0}else{c[g>>2]=c[h>>2];d=c[g>>2]|0;i=f;return d|0}return 0}function Zp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;k=h+8|0;l=h+4|0;m=h;c[j>>2]=b;c[k>>2]=f;c[l>>2]=g;if(!(c[k>>2]|0)){i=h;return}c[m>>2]=c[c[j>>2]>>2];if(a[(c[m>>2]|0)+64>>0]|0){i=h;return}if(e[(c[k>>2]|0)+6>>1]&32){i=h;return}jq(c[j>>2]|0,c[k>>2]|0);if(c[(c[j>>2]|0)+64>>2]|0){i=h;return}if(d[(c[m>>2]|0)+64>>0]|0){i=h;return}kq(c[j>>2]|0,c[k>>2]|0,c[l>>2]|0);if(c[(c[j>>2]|0)+64>>2]|0){i=h;return}if(d[(c[m>>2]|0)+64>>0]|0){i=h;return}lq(c[j>>2]|0,c[k>>2]|0);i=h;return}function _p(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;j=i;i=i+96|0;v=j;q=j+84|0;F=j+80|0;z=j+76|0;m=j+72|0;l=j+68|0;n=j+64|0;p=j+60|0;o=j+56|0;u=j+52|0;k=j+48|0;C=j+44|0;B=j+40|0;A=j+36|0;s=j+32|0;t=j+28|0;r=j+24|0;w=j+20|0;x=j+16|0;E=j+12|0;D=j+8|0;c[F>>2]=e;c[z>>2]=f;c[m>>2]=g;c[l>>2]=h;c[n>>2]=c[c[F>>2]>>2];if(c[z>>2]|0){c[B>>2]=c[c[z>>2]>>2];c[k>>2]=se(c[n>>2]|0,(c[B>>2]|0)*24|0,0)|0}else{c[B>>2]=0;c[k>>2]=0}b[c[m>>2]>>1]=c[B>>2];c[c[l>>2]>>2]=c[k>>2];c[p>>2]=0;c[C>>2]=c[k>>2];while(1){if((c[p>>2]|0)>=(c[B>>2]|0))break;c[A>>2]=iq(c[(c[(c[z>>2]|0)+4>>2]|0)+((c[p>>2]|0)*20|0)>>2]|0)|0;F=c[(c[(c[z>>2]|0)+4>>2]|0)+((c[p>>2]|0)*20|0)+4>>2]|0;c[s>>2]=F;do if(!F){c[r>>2]=c[A>>2];while(1){h=c[r>>2]|0;if((d[c[r>>2]>>0]|0)!=122)break;c[r>>2]=c[h+16>>2]}if((d[h>>0]|0)==154?(c[(c[r>>2]|0)+44>>2]|0)!=0:0){c[x>>2]=b[(c[r>>2]|0)+32>>1];c[w>>2]=c[(c[r>>2]|0)+44>>2];if((c[x>>2]|0)<0)c[x>>2]=b[(c[w>>2]|0)+36>>1];h=c[n>>2]|0;if((c[x>>2]|0)>=0)g=c[(c[(c[w>>2]|0)+4>>2]|0)+((c[x>>2]|0)*24|0)>>2]|0;else g=9992;c[v>>2]=g;c[s>>2]=Te(h,1200,v)|0;break}h=c[n>>2]|0;if((d[c[r>>2]>>0]|0)==27){c[v>>2]=c[(c[r>>2]|0)+8>>2];c[s>>2]=Te(h,1200,v)|0;break}else{c[v>>2]=c[(c[(c[z>>2]|0)+4>>2]|0)+((c[p>>2]|0)*20|0)+8>>2];c[s>>2]=Te(h,1200,v)|0;break}}else c[s>>2]=ne(c[n>>2]|0,c[s>>2]|0)|0;while(0);if(a[(c[n>>2]|0)+64>>0]|0){y=22;break}c[t>>2]=Mb(c[s>>2]|0)|0;c[u>>2]=0;c[o>>2]=0;while(1){if((c[o>>2]|0)>=(c[p>>2]|0))break;if(!(xc(c[(c[k>>2]|0)+((c[o>>2]|0)*24|0)>>2]|0,c[s>>2]|0)|0)){c[D>>2]=(c[t>>2]|0)-1;while(1){if((c[D>>2]|0)<=1)break;if(!(d[1224+(d[(c[s>>2]|0)+(c[D>>2]|0)>>0]|0)>>0]&4))break;c[D>>2]=(c[D>>2]|0)+ -1}if((c[D>>2]|0)>=0?(a[(c[s>>2]|0)+(c[D>>2]|0)>>0]|0)==58:0)c[t>>2]=c[D>>2];a[(c[s>>2]|0)+(c[t>>2]|0)>>0]=0;F=c[n>>2]|0;f=c[s>>2]|0;e=(c[u>>2]|0)+1|0;c[u>>2]=e;c[v>>2]=f;c[v+4>>2]=e;c[E>>2]=Te(F,16424,v)|0;Xb(c[n>>2]|0,c[s>>2]|0);c[s>>2]=c[E>>2];c[o>>2]=-1;if(!(c[s>>2]|0))break}c[o>>2]=(c[o>>2]|0)+1}c[c[C>>2]>>2]=c[s>>2];c[p>>2]=(c[p>>2]|0)+1;c[C>>2]=(c[C>>2]|0)+24}if((y|0)==22)Xb(c[n>>2]|0,c[s>>2]|0);if(!(a[(c[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)+21>>0]|0))a[(c[h>>2]|0)+21>>0]=65;c[n>>2]=cq(c[l>>2]|0,c[m>>2]|0)|0;if(c[n>>2]|0){e=ne(c[r>>2]|0,c[c[n>>2]>>2]|0)|0;c[(c[h>>2]|0)+16>>2]=e}c[q>>2]=(c[q>>2]|0)+1;c[h>>2]=(c[h>>2]|0)+24}e=j;e=lF(c[e>>2]|0,c[e+4>>2]|0,4,0)|0;e=dq(e,D)|0;b[(c[k>>2]|0)+42>>1]=e;i=o;return}function aq(e,f,g){e=e|0;f=f|0;g=g|0;var h=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;s=i;i=i+128|0;j=s+116|0;n=s+112|0;v=s+108|0;r=s+104|0;p=s+100|0;t=s+96|0;o=s+120|0;h=s+92|0;q=s+88|0;k=s+84|0;u=s+80|0;m=s+48|0;l=s+40|0;y=s+8|0;w=s+4|0;x=s;c[n>>2]=e;c[v>>2]=f;c[r>>2]=g;c[p>>2]=0;a[o>>0]=1;if((c[v>>2]|0)!=0?(c[(c[n>>2]|0)+4>>2]|0)!=0:0){g=d[c[v>>2]>>0]|0;do if((g|0)==154|(g|0)==156){c[h>>2]=0;c[q>>2]=0;c[k>>2]=b[(c[v>>2]|0)+32>>1];while(1){if(!(c[n>>2]|0))break;if(!((c[h>>2]|0)!=0^1))break;c[u>>2]=c[(c[n>>2]|0)+4>>2];c[t>>2]=0;while(1){if((c[t>>2]|0)>=(c[c[u>>2]>>2]|0))break;if((c[(c[u>>2]|0)+8+((c[t>>2]|0)*72|0)+40>>2]|0)==(c[(c[v>>2]|0)+28>>2]|0))break;c[t>>2]=(c[t>>2]|0)+1}if((c[t>>2]|0)<(c[c[u>>2]>>2]|0)){c[h>>2]=c[(c[u>>2]|0)+8+((c[t>>2]|0)*72|0)+16>>2];c[q>>2]=c[(c[u>>2]|0)+8+((c[t>>2]|0)*72|0)+20>>2];continue}else{c[n>>2]=c[(c[n>>2]|0)+16>>2];continue}}if(c[h>>2]|0){if(c[q>>2]|0){if((c[k>>2]|0)<0)break;if((c[k>>2]|0)>=(c[c[c[q>>2]>>2]>>2]|0))break;c[l>>2]=c[(c[(c[c[q>>2]>>2]|0)+4>>2]|0)+((c[k>>2]|0)*20|0)>>2];c[m+4>>2]=c[(c[q>>2]|0)+32>>2];c[m+16>>2]=c[n>>2];c[m>>2]=c[c[n>>2]>>2];c[p>>2]=aq(m,c[l>>2]|0,o)|0;break}if(c[(c[h>>2]|0)+68>>2]|0){if((c[k>>2]|0)<0)c[k>>2]=b[(c[h>>2]|0)+36>>1];if((c[k>>2]|0)<0){c[p>>2]=16416;break}else{c[p>>2]=c[(c[(c[h>>2]|0)+4>>2]|0)+((c[k>>2]|0)*24|0)+12>>2];a[o>>0]=a[(c[(c[h>>2]|0)+4>>2]|0)+((c[k>>2]|0)*24|0)+22>>0]|0;break}}}}else if((g|0)==119){c[w>>2]=c[(c[v>>2]|0)+20>>2];c[x>>2]=c[c[(c[c[w>>2]>>2]|0)+4>>2]>>2];c[y+4>>2]=c[(c[w>>2]|0)+32>>2];c[y+16>>2]=c[n>>2];c[y>>2]=c[c[n>>2]>>2];c[p>>2]=aq(y,c[x>>2]|0,o)|0}while(0);if(c[r>>2]|0)a[c[r>>2]>>0]=a[o>>0]|0;c[j>>2]=c[p>>2];e=c[j>>2]|0;i=s;return e|0}c[j>>2]=0;e=c[j>>2]|0;i=s;return e|0}function bq(e){e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;g=f+12|0;h=f+8|0;k=f+4|0;j=f;c[h>>2]=e;c[h>>2]=iq(c[h>>2]|0)|0;if(c[(c[h>>2]|0)+4>>2]&512){a[g>>0]=0;k=a[g>>0]|0;i=f;return k|0}c[k>>2]=d[c[h>>2]>>0];if((c[k>>2]|0)==119){a[g>>0]=bq(c[c[(c[c[(c[h>>2]|0)+20>>2]>>2]|0)+4>>2]>>2]|0)|0;k=a[g>>0]|0;i=f;return k|0}if((c[k>>2]|0)==38){a[g>>0]=Bp(c[(c[h>>2]|0)+8>>2]|0,0)|0;k=a[g>>0]|0;i=f;return k|0}if((c[k>>2]|0)==156|(c[k>>2]|0)==154|(c[k>>2]|0)==159?(c[(c[h>>2]|0)+44>>2]|0)!=0:0){c[j>>2]=b[(c[h>>2]|0)+32>>1];if((c[j>>2]|0)<0){a[g>>0]=68;k=a[g>>0]|0;i=f;return k|0}else{a[g>>0]=a[(c[(c[(c[h>>2]|0)+44>>2]|0)+4>>2]|0)+((c[j>>2]|0)*24|0)+21>>0]|0;k=a[g>>0]|0;i=f;return k|0}}a[g>>0]=a[(c[h>>2]|0)+1>>0]|0;k=a[g>>0]|0;i=f;return k|0}function cq(e,f){e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=i;i=i+32|0;k=j+28|0;q=j+24|0;o=j+20|0;m=j+16|0;l=j+12|0;p=j+8|0;g=j+4|0;n=j;c[k>>2]=e;c[q>>2]=f;c[o>>2]=c[c[k>>2]>>2];c[m>>2]=0;c[l>>2]=c[q>>2];while(1){if(!(c[l>>2]|0))break;c[p>>2]=d[c[l>>2]>>0];if(c[(c[l>>2]|0)+4>>2]&512)break;if((c[p>>2]|0)==38|(c[p>>2]|0)==158){c[l>>2]=c[(c[l>>2]|0)+12>>2];continue}if((c[p>>2]|0)==95){h=9;break}if((c[p>>2]|0)==159?(d[(c[l>>2]|0)+38>>0]|0)==95:0){h=9;break}if((c[(c[l>>2]|0)+44>>2]|0)!=0?(c[p>>2]|0)==156|(c[p>>2]|0)==154|(c[p>>2]|0)==159|(c[p>>2]|0)==62:0){h=12;break}if(!(c[(c[l>>2]|0)+4>>2]&256))break;if((c[(c[l>>2]|0)+12>>2]|0)!=0?(c[(c[(c[l>>2]|0)+12>>2]|0)+4>>2]&256|0)!=0:0){c[l>>2]=c[(c[l>>2]|0)+12>>2];continue}c[l>>2]=c[(c[l>>2]|0)+16>>2]}if((h|0)==9)c[m>>2]=eq(c[k>>2]|0,a[(c[(c[(c[o>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]|0,0,c[(c[l>>2]|0)+8>>2]|0)|0;else if((h|0)==12?(c[g>>2]=b[(c[l>>2]|0)+32>>1],(c[g>>2]|0)>=0):0){c[n>>2]=c[(c[(c[(c[l>>2]|0)+44>>2]|0)+4>>2]|0)+((c[g>>2]|0)*24|0)+16>>2];c[m>>2]=$g(c[o>>2]|0,a[(c[(c[(c[o>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]|0,c[n>>2]|0,0)|0}if(!(fq(c[k>>2]|0,c[m>>2]|0)|0)){q=c[m>>2]|0;i=j;return q|0}c[m>>2]=0;q=c[m>>2]|0;i=j;return q|0}function dq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+10|0;g=e;h=e+8|0;j=g;c[j>>2]=a;c[j+4>>2]=d;b[h>>1]=40;a=g;d=c[a+4>>2]|0;a:do if(d>>>0<0|(d|0)==0&(c[a>>2]|0)>>>0<8){j=g;a=c[j+4>>2]|0;if(a>>>0<0|(a|0)==0&(c[j>>2]|0)>>>0<2){b[f>>1]=0;j=b[f>>1]|0;i=e;return j|0}else while(1){j=g;a=c[j+4>>2]|0;if(!(a>>>0<0|(a|0)==0&(c[j>>2]|0)>>>0<8))break a;b[h>>1]=(b[h>>1]|0)-10;a=g;a=$E(c[a>>2]|0,c[a+4>>2]|0,1)|0;j=g;c[j>>2]=a;c[j+4>>2]=D}}else{while(1){j=g;a=c[j+4>>2]|0;if(!(a>>>0>0|(a|0)==0&(c[j>>2]|0)>>>0>255))break;b[h>>1]=(b[h>>1]|0)+40;a=g;a=cF(c[a>>2]|0,c[a+4>>2]|0,4)|0;j=g;c[j>>2]=a;c[j+4>>2]=D}while(1){j=g;a=c[j+4>>2]|0;if(!(a>>>0>0|(a|0)==0&(c[j>>2]|0)>>>0>15))break a;b[h>>1]=(b[h>>1]|0)+10;a=g;a=cF(c[a>>2]|0,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=0;b=c[e>>2]|0;i=f;return b|0}function gq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;h=g+20|0;n=g+16|0;k=g+12|0;m=g+8|0;l=g+4|0;j=g;c[h>>2]=b;c[n>>2]=e;c[k>>2]=f;do if(c[(c[h>>2]|0)+220>>2]|0){c[m>>2]=ne(c[h>>2]|0,c[k>>2]|0)|0;if(c[m>>2]|0){Bb[c[(c[h>>2]|0)+220>>2]&3](c[(c[h>>2]|0)+228>>2]|0,c[h>>2]|0,c[n>>2]|0,c[m>>2]|0);Xb(c[h>>2]|0,c[m>>2]|0);break}else{i=g;return}}while(0);if(!(c[(c[h>>2]|0)+224>>2]|0)){i=g;return}c[j>>2]=rf(c[h>>2]|0)|0;sf(c[j>>2]|0,-1,c[k>>2]|0,1,0);c[l>>2]=Md(c[j>>2]|0,((a[1136]|0)==0?3:2)&255)|0;if(c[l>>2]|0)Bb[c[(c[h>>2]|0)+224>>2]&3](c[(c[h>>2]|0)+228>>2]|0,c[h>>2]|0,d[(c[(c[(c[h>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]|0,c[l>>2]|0);tf(c[j>>2]|0);i=g;return}function hq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+32|0;e=f+20|0;j=f+16|0;g=f+12|0;h=f+8|0;l=f+4|0;k=f;c[j>>2]=b;c[g>>2]=d;c[l>>2]=c[c[g>>2]>>2];c[k>>2]=0;while(1){if((c[k>>2]|0)>=3){d=6;break}c[h>>2]=$g(c[j>>2]|0,a[16408+(c[k>>2]|0)>>0]|0,c[l>>2]|0,0)|0;if(c[(c[h>>2]|0)+12>>2]|0){d=4;break}c[k>>2]=(c[k>>2]|0)+1}if((d|0)==4){b=c[g>>2]|0;l=c[h>>2]|0;c[b+0>>2]=c[l+0>>2];c[b+4>>2]=c[l+4>>2];c[b+8>>2]=c[l+8>>2];c[b+12>>2]=c[l+12>>2];c[b+16>>2]=c[l+16>>2];c[(c[g>>2]|0)+16>>2]=0;c[e>>2]=0;b=c[e>>2]|0;i=f;return b|0}else if((d|0)==6){c[e>>2]=1;b=c[e>>2]|0;i=f;return b|0}return 0}function iq(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b;c[d>>2]=a;while(1){if(c[d>>2]|0)e=(c[(c[d>>2]|0)+4>>2]&4096|0)!=0;else e=0;a=c[d>>2]|0;if(!e)break;e=c[d>>2]|0;if(c[a+4>>2]&262144){c[d>>2]=c[c[(c[e+20>>2]|0)+4>>2]>>2];continue}else{c[d>>2]=c[e+12>>2];continue}}i=b;return a|0}function jq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+32|0;h=e+28|0;f=e+24|0;g=e;c[h>>2]=b;c[f>>2]=d;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[g+16>>2]=0;c[g+20>>2]=0;c[g>>2]=37;c[g+12>>2]=c[h>>2];if(a[(c[h>>2]|0)+22>>0]|0){c[g+4>>2]=38;oq(g,c[f>>2]|0)|0}c[g+4>>2]=39;c[g+8>>2]=3;oq(g,c[f>>2]|0)|0;i=e;return}function kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+48|0;j=e+32|0;f=e+28|0;h=e+24|0;g=e;c[j>>2]=a;c[f>>2]=b;c[h>>2]=d;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[g+16>>2]=0;c[g+20>>2]=0;c[g>>2]=40;c[g+4>>2]=41;c[g+12>>2]=c[j>>2];c[g+20>>2]=c[h>>2];oq(g,c[f>>2]|0)|0;i=e;return}function lq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+32|0;g=d+28|0;e=d+24|0;f=d;c[g>>2]=a;c[e>>2]=b;c[f+0>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[f+12>>2]=0;c[f+16>>2]=0;c[f+20>>2]=0;c[f+8>>2]=4;c[f>>2]=37;c[f+12>>2]=c[g>>2];oq(f,c[e>>2]|0)|0;i=d;return}function mq(a,f){a=a|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=i;i=i+32|0;p=l+28|0;o=l+24|0;n=l+20|0;g=l+16|0;m=l+12|0;h=l+8|0;k=l+4|0;j=l;c[p>>2]=a;c[o>>2]=f;if((e[(c[o>>2]|0)+6>>1]|0)&32){i=l;return}a=(c[o>>2]|0)+6|0;b[a>>1]=e[a>>1]|0|32;c[n>>2]=c[(c[p>>2]|0)+12>>2];c[m>>2]=c[(c[o>>2]|0)+32>>2];c[g>>2]=0;c[h>>2]=(c[m>>2]|0)+8;while(1){if((c[g>>2]|0)>=(c[c[m>>2]>>2]|0))break;c[k>>2]=c[(c[h>>2]|0)+16>>2];if(((c[k>>2]|0)!=0?((d[(c[k>>2]|0)+44>>0]|0)&2|0)!=0:0)?(c[j>>2]=c[(c[h>>2]|0)+20>>2],(c[j>>2]|0)!=0):0){while(1){if(!(c[(c[j>>2]|0)+52>>2]|0))break;c[j>>2]=c[(c[j>>2]|0)+52>>2]}$p(c[n>>2]|0,c[k>>2]|0,c[j>>2]|0)}c[g>>2]=(c[g>>2]|0)+1;c[h>>2]=(c[h>>2]|0)+72}i=l;return}function nq(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d+4>>2]=a;c[d>>2]=b;i=d;return 0}function oq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;i=i+16|0;d=e+12|0;f=e+8|0;h=e+4|0;g=e;c[f>>2]=a;c[h>>2]=b;do if(c[h>>2]|0){if((c[(c[f>>2]|0)+4>>2]|0)==0?(c[(c[f>>2]|0)+8>>2]|0)==0:0)break;c[g>>2]=0;a=(c[f>>2]|0)+16|0;c[a>>2]=(c[a>>2]|0)+1;while(1){if(!(c[h>>2]|0)){b=15;break}if((c[(c[f>>2]|0)+4>>2]|0)!=0?(c[g>>2]=zb[c[(c[f>>2]|0)+4>>2]&63](c[f>>2]|0,c[h>>2]|0)|0,(c[g>>2]|0)!=0):0){b=15;break}if(pq(c[f>>2]|0,c[h>>2]|0)|0){b=11;break}if(qq(c[f>>2]|0,c[h>>2]|0)|0){b=11;break}if(c[(c[f>>2]|0)+8>>2]|0)sb[c[(c[f>>2]|0)+8>>2]&7](c[f>>2]|0,c[h>>2]|0);c[h>>2]=c[(c[h>>2]|0)+52>>2]}if((b|0)==11){a=(c[f>>2]|0)+16|0;c[a>>2]=(c[a>>2]|0)+ -1;c[d>>2]=2;a=c[d>>2]|0;i=e;return a|0}else if((b|0)==15){a=(c[f>>2]|0)+16|0;c[a>>2]=(c[a>>2]|0)+ -1;c[d>>2]=c[g>>2]&2;a=c[d>>2]|0;i=e;return a|0}}while(0);c[d>>2]=0;a=c[d>>2]|0;i=e;return a|0}function pq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;d=e+8|0;f=e+4|0;g=e;c[f>>2]=a;c[g>>2]=b;do if(!(rq(c[f>>2]|0,c[c[g>>2]>>2]|0)|0)){if(sq(c[f>>2]|0,c[(c[g>>2]|0)+36>>2]|0)|0){c[d>>2]=2;break}if(rq(c[f>>2]|0,c[(c[g>>2]|0)+40>>2]|0)|0){c[d>>2]=2;break}if(sq(c[f>>2]|0,c[(c[g>>2]|0)+44>>2]|0)|0){c[d>>2]=2;break}if(rq(c[f>>2]|0,c[(c[g>>2]|0)+48>>2]|0)|0){c[d>>2]=2;break}if(sq(c[f>>2]|0,c[(c[g>>2]|0)+60>>2]|0)|0){c[d>>2]=2;break}if(sq(c[f>>2]|0,c[(c[g>>2]|0)+64>>2]|0)|0){c[d>>2]=2;break}else{c[d>>2]=0;break}}else c[d>>2]=2;while(0);i=e;return c[d>>2]|0}function qq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;d=e+20|0;f=e+16|0;k=e+12|0;j=e+8|0;h=e+4|0;g=e;c[f>>2]=a;c[k>>2]=b;c[j>>2]=c[(c[k>>2]|0)+32>>2];a:do if(c[j>>2]|0){c[h>>2]=c[c[j>>2]>>2];c[g>>2]=(c[j>>2]|0)+8;while(1){if((c[h>>2]|0)<=0)break a;if(oq(c[f>>2]|0,c[(c[g>>2]|0)+20>>2]|0)|0)break;c[h>>2]=(c[h>>2]|0)+ -1;c[g>>2]=(c[g>>2]|0)+72}c[d>>2]=2;k=c[d>>2]|0;i=e;return k|0}while(0);c[d>>2]=0;k=c[d>>2]|0;i=e;return k|0}function rq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;e=i;i=i+32|0;d=e+16|0;f=e+12|0;j=e+8|0;h=e+4|0;g=e;c[f>>2]=a;c[j>>2]=b;a:do if(c[j>>2]|0){c[h>>2]=c[c[j>>2]>>2];c[g>>2]=c[(c[j>>2]|0)+4>>2];while(1){if((c[h>>2]|0)<=0)break a;if(sq(c[f>>2]|0,c[c[g>>2]>>2]|0)|0)break;c[h>>2]=(c[h>>2]|0)+ -1;c[g>>2]=(c[g>>2]|0)+20}c[d>>2]=2;a=c[d>>2]|0;i=e;return a|0}while(0);c[d>>2]=0;a=c[d>>2]|0;i=e;return a|0}function sq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;e=d+12|0;h=d+8|0;g=d+4|0;f=d;c[h>>2]=a;c[g>>2]=b;a:do if(!(c[g>>2]|0))c[e>>2]=0;else{c[f>>2]=zb[c[c[h>>2]>>2]&63](c[h>>2]|0,c[g>>2]|0)|0;do if((c[f>>2]|0)==0?(c[(c[g>>2]|0)+4>>2]&16384|0)==0:0){if(sq(c[h>>2]|0,c[(c[g>>2]|0)+12>>2]|0)|0){c[e>>2]=2;break a}if(sq(c[h>>2]|0,c[(c[g>>2]|0)+16>>2]|0)|0){c[e>>2]=2;break a}h=c[h>>2]|0;b=(c[g>>2]|0)+20|0;if(c[(c[g>>2]|0)+4>>2]&2048){if(!(oq(h,c[b>>2]|0)|0))break;c[e>>2]=2;break a}else{if(!(rq(h,c[b>>2]|0)|0))break;c[e>>2]=2;break a}}while(0);c[e>>2]=c[f>>2]&2}while(0);i=d;return c[e>>2]|0}function tq(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;j=i;i=i+96|0;s=j;h=j+84|0;l=j+80|0;x=j+76|0;o=j+72|0;p=j+68|0;F=j+64|0;D=j+60|0;C=j+56|0;E=j+52|0;m=j+48|0;z=j+44|0;t=j+40|0;u=j+36|0;n=j+32|0;y=j+28|0;r=j+24|0;q=j+20|0;k=j+16|0;v=j+88|0;A=j+12|0;B=j+8|0;c[l>>2]=f;c[x>>2]=g;c[o>>2]=c[(c[l>>2]|0)+20>>2];c[p>>2]=c[c[o>>2]>>2];if(c[(c[x>>2]|0)+4>>2]&4){c[h>>2]=1;f=c[h>>2]|0;i=j;return f|0}f=(c[x>>2]|0)+4|0;c[f>>2]=c[f>>2]|4;switch(d[c[x>>2]>>0]|0){case 153:{c[m>>2]=c[(c[x>>2]|0)+20>>2];if(c[m>>2]|0)B=c[c[m>>2]>>2]|0;else B=0;c[z>>2]=B;c[t>>2]=0;c[u>>2]=0;c[n>>2]=0;a[v>>0]=a[(c[(c[(c[c[p>>2]>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]|0;Sq(c[p>>2]|0,c[o>>2]|0,16800);c[q>>2]=c[(c[x>>2]|0)+8>>2];c[r>>2]=Mb(c[q>>2]|0)|0;c[k>>2]=Sf(c[c[p>>2]>>2]|0,c[q>>2]|0,c[r>>2]|0,c[z>>2]|0,a[v>>0]|0,0)|0;do if(!(c[k>>2]|0)){c[k>>2]=Sf(c[c[p>>2]>>2]|0,c[q>>2]|0,c[r>>2]|0,-2,a[v>>0]|0,0)|0;if(!(c[k>>2]|0)){c[t>>2]=1;break}else{c[u>>2]=1;break}}else{c[n>>2]=(c[(c[k>>2]|0)+12>>2]|0)==0&1;do if(e[(c[k>>2]|0)+2>>1]&1024){f=(c[x>>2]|0)+4|0;c[f>>2]=c[f>>2]|266240;if((c[z>>2]|0)!=2){c[(c[x>>2]|0)+28>>2]=(a[c[(c[k>>2]|0)+24>>2]>>0]|0)==117?62:938;break}f=Tq(c[(c[(c[m>>2]|0)+4>>2]|0)+20>>2]|0)|0;c[(c[x>>2]|0)+28>>2]=f;if((c[(c[x>>2]|0)+28>>2]|0)<0){Se(c[p>>2]|0,16816,s);f=(c[o>>2]|0)+24|0;c[f>>2]=(c[f>>2]|0)+1}}while(0);c[y>>2]=ap(c[p>>2]|0,31,0,c[(c[k>>2]|0)+24>>2]|0,0)|0;if(!(c[y>>2]|0)){if(!(e[(c[k>>2]|0)+2>>1]&2048))break;f=(c[x>>2]|0)+4|0;c[f>>2]=c[f>>2]|524288;break}if((c[y>>2]|0)==1){f=c[p>>2]|0;c[s>>2]=c[(c[k>>2]|0)+24>>2];Se(f,16888,s);f=(c[o>>2]|0)+24|0;c[f>>2]=(c[f>>2]|0)+1}a[c[x>>2]>>0]=101;c[h>>2]=1;f=c[h>>2]|0;i=j;return f|0}while(0);if((c[n>>2]|0)!=0?(e[(c[o>>2]|0)+28>>1]&1|0)==0:0){f=c[p>>2]|0;g=c[q>>2]|0;c[s>>2]=c[r>>2];c[s+4>>2]=g;Se(f,16928,s);f=(c[o>>2]|0)+24|0;c[f>>2]=(c[f>>2]|0)+1;c[n>>2]=0}else w=29;do if((w|0)==29){if((c[t>>2]|0)!=0?(d[(c[c[p>>2]>>2]|0)+145>>0]|0)==0:0){f=c[p>>2]|0;g=c[q>>2]|0;c[s>>2]=c[r>>2];c[s+4>>2]=g;Se(f,16968,s);f=(c[o>>2]|0)+24|0;c[f>>2]=(c[f>>2]|0)+1;break}if(c[u>>2]|0){f=c[p>>2]|0;g=c[q>>2]|0;c[s>>2]=c[r>>2];c[s+4>>2]=g;Se(f,16992,s);f=(c[o>>2]|0)+24|0;c[f>>2]=(c[f>>2]|0)+1}}while(0);if(c[n>>2]|0){f=(c[o>>2]|0)+28|0;b[f>>1]=e[f>>1]&-2}rq(c[l>>2]|0,c[m>>2]|0)|0;if(c[n>>2]|0){c[A>>2]=c[o>>2];a[c[x>>2]>>0]=-101;a[(c[x>>2]|0)+38>>0]=0;while(1){if(!(c[A>>2]|0))break;if(!((Uq(c[x>>2]|0,c[(c[A>>2]|0)+4>>2]|0)|0)!=0^1))break;f=(c[x>>2]|0)+38|0;a[f>>0]=(a[f>>0]|0)+1<<24>>24;c[A>>2]=c[(c[A>>2]|0)+16>>2]}if(c[A>>2]|0){f=(c[A>>2]|0)+28|0;b[f>>1]=e[f>>1]|(2|e[(c[k>>2]|0)+2>>1]&4096)}f=(c[o>>2]|0)+28|0;b[f>>1]=e[f>>1]|1}c[h>>2]=1;f=c[h>>2]|0;i=j;return f|0};case 135:{Vq(c[p>>2]|0,c[o>>2]|0,17056);Sq(c[p>>2]|0,c[o>>2]|0,17056);break};case 75:case 20:case 119:{if((c[(c[x>>2]|0)+4>>2]&2048|0)!=0?(c[B>>2]=c[(c[o>>2]|0)+20>>2],Vq(c[p>>2]|0,c[o>>2]|0,17040),Sq(c[p>>2]|0,c[o>>2]|0,17040),oq(c[l>>2]|0,c[(c[x>>2]|0)+20>>2]|0)|0,(c[B>>2]|0)!=(c[(c[o>>2]|0)+20>>2]|0)):0){f=(c[x>>2]|0)+4|0;c[f>>2]=c[f>>2]|32}break};case 122:{c[E>>2]=c[(c[x>>2]|0)+16>>2];if((d[c[E>>2]>>0]|0)==27){c[C>>2]=0;c[D>>2]=c[(c[(c[x>>2]|0)+12>>2]|0)+8>>2];c[F>>2]=c[(c[E>>2]|0)+8>>2]}else{c[C>>2]=c[(c[(c[x>>2]|0)+12>>2]|0)+8>>2];c[D>>2]=c[(c[(c[E>>2]|0)+12>>2]|0)+8>>2];c[F>>2]=c[(c[(c[E>>2]|0)+16>>2]|0)+8>>2]}c[h>>2]=Rq(c[p>>2]|0,c[C>>2]|0,c[D>>2]|0,c[F>>2]|0,c[o>>2]|0,c[x>>2]|0)|0;f=c[h>>2]|0;i=j;return f|0};case 27:{c[h>>2]=Rq(c[p>>2]|0,0,0,c[(c[x>>2]|0)+8>>2]|0,c[o>>2]|0,c[x>>2]|0)|0;f=c[h>>2]|0;i=j;return f|0};default:{}}if(c[(c[p>>2]|0)+64>>2]|0)k=1;else k=(d[(c[c[p>>2]>>2]|0)+64>>0]|0)!=0;c[h>>2]=k?2:0;f=c[h>>2]|0;i=j;return f|0}function uq(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;j=i;i=i+112|0;m=j;h=j+108|0;C=j+104|0;B=j+100|0;o=j+96|0;t=j+64|0;k=j+56|0;A=j+52|0;l=j+48|0;u=j+44|0;q=j+40|0;r=j+36|0;n=j+32|0;p=j+28|0;w=j+24|0;y=j+20|0;z=j+16|0;x=j+12|0;v=j+8|0;s=j+4|0;c[C>>2]=f;c[B>>2]=g;if(e[(c[B>>2]|0)+6>>1]&2){c[h>>2]=1;f=c[h>>2]|0;i=j;return f|0}c[o>>2]=c[(c[C>>2]|0)+20>>2];c[l>>2]=c[(c[C>>2]|0)+12>>2];c[p>>2]=c[c[l>>2]>>2];if(!(e[(c[B>>2]|0)+6>>1]&16)){Zp(c[l>>2]|0,c[B>>2]|0,c[o>>2]|0);if(c[(c[l>>2]|0)+64>>2]|0)k=1;else k=(d[(c[p>>2]|0)+64>>0]|0)!=0;c[h>>2]=k?2:1;f=c[h>>2]|0;i=j;return f|0}c[k>>2]=(c[(c[B>>2]|0)+52>>2]|0)!=0&1;c[A>>2]=0;c[n>>2]=c[B>>2];a:while(1){if(!(c[B>>2]|0)){o=58;break}f=(c[B>>2]|0)+6|0;b[f>>1]=e[f>>1]|2;c[t+0>>2]=0;c[t+4>>2]=0;c[t+8>>2]=0;c[t+12>>2]=0;c[t+16>>2]=0;c[t+20>>2]=0;c[t+24>>2]=0;c[t+28>>2]=0;c[t>>2]=c[l>>2];if(vq(t,c[(c[B>>2]|0)+60>>2]|0)|0){o=11;break}if(vq(t,c[(c[B>>2]|0)+64>>2]|0)|0){o=11;break}c[q>>2]=0;while(1){if((c[q>>2]|0)>=(c[c[(c[B>>2]|0)+32>>2]>>2]|0))break;c[w>>2]=(c[(c[B>>2]|0)+32>>2]|0)+8+((c[q>>2]|0)*72|0);if(c[(c[w>>2]|0)+20>>2]|0){c[z>>2]=0;c[x>>2]=c[(c[l>>2]|0)+492>>2];c[y>>2]=c[o>>2];while(1){if(!(c[y>>2]|0))break;c[z>>2]=(c[z>>2]|0)+(c[(c[y>>2]|0)+20>>2]|0);c[y>>2]=c[(c[y>>2]|0)+16>>2]}if(c[(c[w>>2]|0)+8>>2]|0)c[(c[l>>2]|0)+492>>2]=c[(c[w>>2]|0)+8>>2];kq(c[l>>2]|0,c[(c[w>>2]|0)+20>>2]|0,c[o>>2]|0);c[(c[l>>2]|0)+492>>2]=c[x>>2];if(c[(c[l>>2]|0)+64>>2]|0){o=22;break a}if(d[(c[p>>2]|0)+64>>0]|0){o=22;break a}c[y>>2]=c[o>>2];while(1){if(!(c[y>>2]|0))break;c[z>>2]=(c[z>>2]|0)-(c[(c[y>>2]|0)+20>>2]|0);c[y>>2]=c[(c[y>>2]|0)+16>>2]}f=(c[w>>2]|0)+37|0;a[f>>0]=a[f>>0]&-3|((c[z>>2]|0)!=0&1)<<1&255}c[q>>2]=(c[q>>2]|0)+1}b[t+28>>1]=1;c[t+4>>2]=c[(c[B>>2]|0)+32>>2];c[t+16>>2]=c[o>>2];c[u>>2]=c[c[B>>2]>>2];c[q>>2]=0;while(1){if((c[q>>2]|0)>=(c[c[u>>2]>>2]|0))break;c[v>>2]=c[(c[(c[u>>2]|0)+4>>2]|0)+((c[q>>2]|0)*20|0)>>2];if(vq(t,c[v>>2]|0)|0){o=31;break a}c[q>>2]=(c[q>>2]|0)+1}c[r>>2]=c[(c[B>>2]|0)+40>>2];if((c[r>>2]|0)==0?(e[t+28>>1]&2|0)==0:0){f=t+28|0;b[f>>1]=e[f>>1]&-2}else{f=(c[B>>2]|0)+6|0;b[f>>1]=e[f>>1]|(4|e[t+28>>1]&4096)}if(!((c[r>>2]|0)!=0?1:(c[(c[B>>2]|0)+44>>2]|0)==0)){o=38;break}c[t+8>>2]=c[c[B>>2]>>2];if(vq(t,c[(c[B>>2]|0)+44>>2]|0)|0){o=40;break}if(vq(t,c[(c[B>>2]|0)+36>>2]|0)|0){o=42;break}c[t+16>>2]=0;f=t+28|0;b[f>>1]=e[f>>1]|1;if((c[k>>2]|0)==0?(wq(t,c[B>>2]|0,c[(c[B>>2]|0)+48>>2]|0,16480)|0)!=0:0){o=45;break}if(a[(c[p>>2]|0)+64>>0]|0){o=47;break}b:do if(c[r>>2]|0){if(wq(t,c[B>>2]|0,c[r>>2]|0,16488)|0){o=51;break a}if(d[(c[p>>2]|0)+64>>0]|0){o=51;break a}c[q>>2]=0;c[s>>2]=c[(c[r>>2]|0)+4>>2];while(1){if((c[q>>2]|0)>=(c[c[r>>2]>>2]|0))break b;if(c[(c[c[s>>2]>>2]|0)+4>>2]&2){o=55;break a}c[q>>2]=(c[q>>2]|0)+1;c[s>>2]=(c[s>>2]|0)+20}}while(0);c[B>>2]=c[(c[B>>2]|0)+52>>2];c[A>>2]=(c[A>>2]|0)+1}switch(o|0){case 11:{c[h>>2]=2;f=c[h>>2]|0;i=j;return f|0};case 22:{c[h>>2]=2;f=c[h>>2]|0;i=j;return f|0};case 31:{c[h>>2]=2;f=c[h>>2]|0;i=j;return f|0};case 38:{Se(c[l>>2]|0,16432,m);c[h>>2]=2;f=c[h>>2]|0;i=j;return f|0};case 40:{c[h>>2]=2;f=c[h>>2]|0;i=j;return f|0};case 42:{c[h>>2]=2;f=c[h>>2]|0;i=j;return f|0};case 45:{c[h>>2]=2;f=c[h>>2]|0;i=j;return f|0};case 47:{c[h>>2]=2;f=c[h>>2]|0;i=j;return f|0};case 51:{c[h>>2]=2;f=c[h>>2]|0;i=j;return f|0};case 55:{Se(c[l>>2]|0,16496,m);c[h>>2]=2;f=c[h>>2]|0;i=j;return f|0};case 58:{if((c[k>>2]|0)!=0?(xq(c[l>>2]|0,c[n>>2]|0)|0)!=0:0){c[h>>2]=2;f=c[h>>2]|0;i=j;return f|0}c[h>>2]=1;f=c[h>>2]|0;i=j;return f|0}}return 0}function vq(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+48|0;g=f+40|0;k=f+36|0;j=f+32|0;l=f+44|0;m=f+8|0;h=f;c[k>>2]=a;c[j>>2]=d;if(!(c[j>>2]|0)){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}c[h>>2]=c[c[k>>2]>>2];if(Qq(c[h>>2]|0,(c[(c[j>>2]|0)+24>>2]|0)+(c[(c[c[k>>2]>>2]|0)+460>>2]|0)|0)|0){c[g>>2]=1;a=c[g>>2]|0;i=f;return a|0}a=(c[h>>2]|0)+460|0;c[a>>2]=(c[a>>2]|0)+(c[(c[j>>2]|0)+24>>2]|0);b[l>>1]=(e[(c[k>>2]|0)+28>>1]|0)&4098;a=(c[k>>2]|0)+28|0;b[a>>1]=(e[a>>1]|0)&-4099;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;c[m>>2]=40;c[m+4>>2]=41;c[m+12>>2]=c[c[k>>2]>>2];c[m+20>>2]=c[k>>2];sq(m,c[j>>2]|0)|0;a=(c[c[k>>2]>>2]|0)+460|0;c[a>>2]=(c[a>>2]|0)-(c[(c[j>>2]|0)+24>>2]|0);if(!((c[(c[k>>2]|0)+24>>2]|0)<=0?(c[(c[m+12>>2]|0)+64>>2]|0)<=0:0)){a=(c[j>>2]|0)+4|0;c[a>>2]=c[a>>2]|8}if((e[(c[k>>2]|0)+28>>1]|0)&2){a=(c[j>>2]|0)+4|0;c[a>>2]=c[a>>2]|2}a=(c[k>>2]|0)+28|0;b[a>>1]=e[a>>1]|0|(e[l>>1]|0);c[g>>2]=(c[(c[j>>2]|0)+4>>2]&8|0)!=0&1;a=c[g>>2]|0;i=f;return a|0}function wq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=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;r=i;i=i+64|0;k=r+48|0;v=r+44|0;o=r+40|0;t=r+36|0;h=r+32|0;s=r+28|0;u=r+24|0;l=r+20|0;m=r+16|0;n=r+12|0;w=r+8|0;q=r+4|0;p=r;c[v>>2]=d;c[o>>2]=e;c[t>>2]=f;c[h>>2]=g;if(!(c[t>>2]|0)){c[k>>2]=0;d=c[k>>2]|0;i=r;return d|0}c[w>>2]=c[c[c[o>>2]>>2]>>2];c[n>>2]=c[c[v>>2]>>2];c[s>>2]=0;c[m>>2]=c[(c[t>>2]|0)+4>>2];a:while(1){if((c[s>>2]|0)>=(c[c[t>>2]>>2]|0)){j=20;break}c[q>>2]=c[c[m>>2]>>2];c[p>>2]=iq(c[q>>2]|0)|0;if((a[c[h>>2]>>0]|0)!=71?(c[l>>2]=Aq(c[n>>2]|0,c[c[o>>2]>>2]|0,c[p>>2]|0)|0,(c[l>>2]|0)>0):0)b[(c[m>>2]|0)+16>>1]=c[l>>2];else j=8;b:do if((j|0)==8){j=0;if(yq(c[p>>2]|0,l)|0){if((c[l>>2]|0)<1|(c[l>>2]|0)>65535){j=10;break a}b[(c[m>>2]|0)+16>>1]=c[l>>2];break}b[(c[m>>2]|0)+16>>1]=0;if(vq(c[v>>2]|0,c[q>>2]|0)|0){j=13;break a}c[u>>2]=0;while(1){if((c[u>>2]|0)>=(c[c[c[o>>2]>>2]>>2]|0))break b;if(!(Dq(c[q>>2]|0,c[(c[(c[c[o>>2]>>2]|0)+4>>2]|0)+((c[u>>2]|0)*20|0)>>2]|0,-1)|0))b[(c[m>>2]|0)+16>>1]=(c[u>>2]|0)+1;c[u>>2]=(c[u>>2]|0)+1}}while(0);c[s>>2]=(c[s>>2]|0)+1;c[m>>2]=(c[m>>2]|0)+20}if((j|0)==10){zq(c[n>>2]|0,c[h>>2]|0,(c[s>>2]|0)+1|0,c[w>>2]|0);c[k>>2]=1;d=c[k>>2]|0;i=r;return d|0}else if((j|0)==13){c[k>>2]=1;d=c[k>>2]|0;i=r;return d|0}else if((j|0)==20){c[k>>2]=Lq(c[n>>2]|0,c[o>>2]|0,c[t>>2]|0,c[h>>2]|0)|0;d=c[k>>2]|0;i=r;return d|0}return 0}function xq(d,e){d=d|0;e=e|0;var f=0,g=0,h=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;m=i;i=i+64|0;h=m;k=m+52|0;g=m+48|0;o=m+44|0;f=m+40|0;l=m+36|0;j=m+32|0;s=m+28|0;n=m+24|0;p=m+20|0;q=m+16|0;r=m+12|0;t=m+8|0;u=m+4|0;c[g>>2]=d;c[o>>2]=e;c[n>>2]=1;c[l>>2]=c[(c[o>>2]|0)+48>>2];if(!(c[l>>2]|0)){c[k>>2]=0;d=c[k>>2]|0;i=m;return d|0}c[s>>2]=c[c[g>>2]>>2];if((c[c[l>>2]>>2]|0)>(c[(c[s>>2]|0)+96>>2]|0)){Se(c[g>>2]|0,16560,h);c[k>>2]=1;d=c[k>>2]|0;i=m;return d|0}c[f>>2]=0;while(1){if((c[f>>2]|0)>=(c[c[l>>2]>>2]|0))break;d=(c[(c[l>>2]|0)+4>>2]|0)+((c[f>>2]|0)*20|0)+13|0;a[d>>0]=a[d>>0]&-2;c[f>>2]=(c[f>>2]|0)+1}c[(c[o>>2]|0)+56>>2]=0;while(1){if(!(c[(c[o>>2]|0)+52>>2]|0))break;c[(c[(c[o>>2]|0)+52>>2]|0)+56>>2]=c[o>>2];c[o>>2]=c[(c[o>>2]|0)+52>>2]}a:while(1){if(!((c[o>>2]|0)!=0&(c[n>>2]|0)!=0)){n=33;break}c[n>>2]=0;c[j>>2]=c[c[o>>2]>>2];c[f>>2]=0;c[p>>2]=c[(c[l>>2]|0)+4>>2];while(1){if((c[f>>2]|0)>=(c[c[l>>2]>>2]|0))break;c[q>>2]=-1;do if(!(a[(c[p>>2]|0)+13>>0]&1)){c[r>>2]=iq(c[c[p>>2]>>2]|0)|0;if(yq(c[r>>2]|0,q)|0){if((c[q>>2]|0)<=0){n=18;break a}if((c[q>>2]|0)>(c[c[j>>2]>>2]|0)){n=18;break a}}else{c[q>>2]=Aq(c[g>>2]|0,c[j>>2]|0,c[r>>2]|0)|0;if(!(c[q>>2]|0)){c[t>>2]=Bq(c[s>>2]|0,c[r>>2]|0,0)|0;if(!(a[(c[s>>2]|0)+64>>0]|0))c[q>>2]=Cq(c[g>>2]|0,c[o>>2]|0,c[t>>2]|0)|0;wn(c[s>>2]|0,c[t>>2]|0)}}if((c[q>>2]|0)<=0){c[n>>2]=1;break}c[u>>2]=ho(c[s>>2]|0,132,0)|0;if(!(c[u>>2]|0)){n=25;break a}d=(c[u>>2]|0)+4|0;c[d>>2]=c[d>>2]|1024;c[(c[u>>2]|0)+8>>2]=c[q>>2];d=c[u>>2]|0;e=c[p>>2]|0;if((c[c[p>>2]>>2]|0)==(c[r>>2]|0))c[e>>2]=d;else c[(c[e>>2]|0)+12>>2]=d;wn(c[s>>2]|0,c[r>>2]|0);b[(c[p>>2]|0)+16>>1]=c[q>>2];d=(c[p>>2]|0)+13|0;a[d>>0]=a[d>>0]&-2|1}while(0);c[f>>2]=(c[f>>2]|0)+1;c[p>>2]=(c[p>>2]|0)+20}c[o>>2]=c[(c[o>>2]|0)+56>>2]}if((n|0)==18){zq(c[g>>2]|0,16480,(c[f>>2]|0)+1|0,c[c[j>>2]>>2]|0);c[k>>2]=1;d=c[k>>2]|0;i=m;return d|0}else if((n|0)==25){c[k>>2]=1;d=c[k>>2]|0;i=m;return d|0}else if((n|0)==33){c[f>>2]=0;while(1){if((c[f>>2]|0)>=(c[c[l>>2]>>2]|0)){n=38;break}if(!(a[(c[(c[l>>2]|0)+4>>2]|0)+((c[f>>2]|0)*20|0)+13>>0]&1)){n=36;break}c[f>>2]=(c[f>>2]|0)+1}if((n|0)==36){d=c[g>>2]|0;c[h>>2]=(c[f>>2]|0)+1;Se(d,16600,h);c[k>>2]=1;d=c[k>>2]|0;i=m;return d|0}else if((n|0)==38){c[k>>2]=0;d=c[k>>2]|0;i=m;return d|0}}return 0}function yq(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;f=e+16|0;k=e+12|0;g=e+8|0;h=e+4|0;j=e;c[k>>2]=a;c[g>>2]=b;c[h>>2]=0;b=c[k>>2]|0;if(c[(c[k>>2]|0)+4>>2]&1024){c[c[g>>2]>>2]=c[b+8>>2];c[f>>2]=1;a=c[f>>2]|0;i=e;return a|0}b=d[b>>0]|0;if((b|0)==157){if(yq(c[(c[k>>2]|0)+12>>2]|0,j)|0){c[c[g>>2]>>2]=0-(c[j>>2]|0);c[h>>2]=1}}else if((b|0)==158)c[h>>2]=yq(c[(c[k>>2]|0)+12>>2]|0,c[g>>2]|0)|0;c[f>>2]=c[h>>2];a=c[f>>2]|0;i=e;return a|0}function zq(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+32|0;g=f;l=f+24|0;k=f+20|0;h=f+16|0;j=f+12|0;c[l>>2]=a;c[k>>2]=b;c[h>>2]=d;c[j>>2]=e;a=c[l>>2]|0;d=c[k>>2]|0;b=c[j>>2]|0;c[g>>2]=c[h>>2];c[g+4>>2]=d;c[g+8>>2]=b;Se(a,16664,g);i=f;return}function Aq(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;f=g+24|0;k=g+16|0;m=g+12|0;l=g+8|0;j=g+4|0;h=g;c[g+20>>2]=a;c[k>>2]=b;c[m>>2]=e;a:do if((d[c[m>>2]>>0]|0|0)==27){c[j>>2]=c[(c[m>>2]|0)+8>>2];c[l>>2]=0;while(1){if((c[l>>2]|0)>=(c[c[k>>2]>>2]|0))break a;c[h>>2]=c[(c[(c[k>>2]|0)+4>>2]|0)+((c[l>>2]|0)*20|0)+4>>2];if((c[h>>2]|0)!=0?(xc(c[h>>2]|0,c[j>>2]|0)|0)==0:0)break;c[l>>2]=(c[l>>2]|0)+1}c[f>>2]=(c[l>>2]|0)+1;a=c[f>>2]|0;i=g;return a|0}while(0);c[f>>2]=0;a=c[f>>2]|0;i=g;return a|0}function Bq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e+8|0;g=e+4|0;f=e;c[h>>2]=a;c[g>>2]=b;c[f>>2]=d;a=Fq(c[h>>2]|0,c[g>>2]|0,c[f>>2]|0,0)|0;i=e;return a|0}function Cq(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i;i=i+80|0;h=g+60|0;q=g+56|0;r=g+52|0;l=g+48|0;k=g+44|0;j=g+40|0;p=g+8|0;n=g+4|0;m=g;o=g+64|0;c[q>>2]=d;c[r>>2]=e;c[l>>2]=f;c[j>>2]=c[c[r>>2]>>2];c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;c[p+12>>2]=0;c[p+16>>2]=0;c[p+20>>2]=0;c[p+24>>2]=0;c[p+28>>2]=0;c[p>>2]=c[q>>2];c[p+4>>2]=c[(c[r>>2]|0)+32>>2];c[p+8>>2]=c[j>>2];b[p+28>>1]=1;c[p+24>>2]=0;c[n>>2]=c[c[q>>2]>>2];a[o>>0]=a[(c[n>>2]|0)+67>>0]|0;a[(c[n>>2]|0)+67>>0]=1;c[m>>2]=vq(p,c[l>>2]|0)|0;a[(c[n>>2]|0)+67>>0]=a[o>>0]|0;if(c[m>>2]|0){c[h>>2]=0;r=c[h>>2]|0;i=g;return r|0}c[k>>2]=0;while(1){if((c[k>>2]|0)>=(c[c[j>>2]>>2]|0)){j=8;break}r=(Dq(c[(c[(c[j>>2]|0)+4>>2]|0)+((c[k>>2]|0)*20|0)>>2]|0,c[l>>2]|0,-1)|0)<2;f=(c[k>>2]|0)+1|0;if(r){j=6;break}c[k>>2]=f}if((j|0)==6){c[h>>2]=f;r=c[h>>2]|0;i=g;return r|0}else if((j|0)==8){c[h>>2]=0;r=c[h>>2]|0;i=g;return r|0}return 0}function Dq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;l=i;i=i+32|0;h=l+16|0;j=l+12|0;k=l+8|0;g=l+4|0;m=l;c[j>>2]=a;c[k>>2]=e;c[g>>2]=f;if((c[j>>2]|0)==0|(c[k>>2]|0)==0){c[h>>2]=(c[k>>2]|0)==(c[j>>2]|0)?0:2;a=c[h>>2]|0;i=l;return a|0}c[m>>2]=c[(c[j>>2]|0)+4>>2]|c[(c[k>>2]|0)+4>>2];f=c[j>>2]|0;if(c[m>>2]&1024){if((c[f+4>>2]&c[(c[k>>2]|0)+4>>2]&1024|0)!=0?(c[(c[j>>2]|0)+8>>2]|0)==(c[(c[k>>2]|0)+8>>2]|0):0){c[h>>2]=0;a=c[h>>2]|0;i=l;return a|0}c[h>>2]=2;a=c[h>>2]|0;i=l;return a|0}e=d[c[j>>2]>>0]|0;if((d[f>>0]|0)!=(d[c[k>>2]>>0]|0)){if((e|0)==95?(Dq(c[(c[j>>2]|0)+12>>2]|0,c[k>>2]|0,c[g>>2]|0)|0)<2:0){c[h>>2]=1;a=c[h>>2]|0;i=l;return a|0}if((d[c[k>>2]>>0]|0)==95?(Dq(c[j>>2]|0,c[(c[k>>2]|0)+12>>2]|0,c[g>>2]|0)|0)<2:0){c[h>>2]=1;a=c[h>>2]|0;i=l;return a|0}c[h>>2]=2;a=c[h>>2]|0;i=l;return a|0}if((((e|0)!=154?(d[c[j>>2]>>0]|0)!=156:0)?(c[(c[j>>2]|0)+8>>2]|0)!=0:0)?(UE(c[(c[j>>2]|0)+8>>2]|0,c[(c[k>>2]|0)+8>>2]|0)|0)!=0:0){c[h>>2]=(d[c[j>>2]>>0]|0)==95?1:2;a=c[h>>2]|0;i=l;return a|0}if((c[(c[j>>2]|0)+4>>2]&16|0)!=(c[(c[k>>2]|0)+4>>2]&16|0)){c[h>>2]=2;a=c[h>>2]|0;i=l;return a|0}do if(!(c[m>>2]&16384)){if(c[m>>2]&2048){c[h>>2]=2;a=c[h>>2]|0;i=l;return a|0}if(Dq(c[(c[j>>2]|0)+12>>2]|0,c[(c[k>>2]|0)+12>>2]|0,c[g>>2]|0)|0){c[h>>2]=2;a=c[h>>2]|0;i=l;return a|0}if(Dq(c[(c[j>>2]|0)+16>>2]|0,c[(c[k>>2]|0)+16>>2]|0,c[g>>2]|0)|0){c[h>>2]=2;a=c[h>>2]|0;i=l;return a|0}if(Eq(c[(c[j>>2]|0)+20>>2]|0,c[(c[k>>2]|0)+20>>2]|0,c[g>>2]|0)|0){c[h>>2]=2;a=c[h>>2]|0;i=l;return a|0}if(!(c[m>>2]&8192)){if((b[(c[j>>2]|0)+32>>1]|0)!=(b[(c[k>>2]|0)+32>>1]|0)){c[h>>2]=2;a=c[h>>2]|0;i=l;return a|0}if((c[(c[j>>2]|0)+28>>2]|0)!=(c[(c[k>>2]|0)+28>>2]|0)){if((c[(c[j>>2]|0)+28>>2]|0)==(c[g>>2]|0)?(c[(c[k>>2]|0)+28>>2]|0)<0:0)break;c[h>>2]=2;a=c[h>>2]|0;i=l;return a|0}}}while(0);c[h>>2]=0;a=c[h>>2]|0;i=l;return a|0}function Eq(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;f=g+24|0;h=g+20|0;n=g+16|0;l=g+12|0;m=g+8|0;j=g+4|0;k=g;c[h>>2]=a;c[n>>2]=b;c[l>>2]=e;if((c[h>>2]|0)==0&(c[n>>2]|0)==0){c[f>>2]=0;a=c[f>>2]|0;i=g;return a|0}if((c[h>>2]|0)==0|(c[n>>2]|0)==0){c[f>>2]=1;a=c[f>>2]|0;i=g;return a|0}if((c[c[h>>2]>>2]|0)!=(c[c[n>>2]>>2]|0)){c[f>>2]=1;a=c[f>>2]|0;i=g;return a|0}c[m>>2]=0;while(1){if((c[m>>2]|0)>=(c[c[h>>2]>>2]|0)){h=14;break}c[j>>2]=c[(c[(c[h>>2]|0)+4>>2]|0)+((c[m>>2]|0)*20|0)>>2];c[k>>2]=c[(c[(c[n>>2]|0)+4>>2]|0)+((c[m>>2]|0)*20|0)>>2];if((d[(c[(c[h>>2]|0)+4>>2]|0)+((c[m>>2]|0)*20|0)+12>>0]|0|0)!=(d[(c[(c[n>>2]|0)+4>>2]|0)+((c[m>>2]|0)*20|0)+12>>0]|0|0)){h=10;break}if(Dq(c[j>>2]|0,c[k>>2]|0,c[l>>2]|0)|0){h=12;break}c[m>>2]=(c[m>>2]|0)+1}if((h|0)==10){c[f>>2]=1;a=c[f>>2]|0;i=g;return a|0}else if((h|0)==12){c[f>>2]=1;a=c[f>>2]|0;i=g;return a|0}else if((h|0)==14){c[f>>2]=0;a=c[f>>2]|0;i=g;return a|0}return 0}function Fq(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,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;j=i;i=i+64|0;m=j+48|0;h=j+44|0;k=j+40|0;l=j+36|0;f=j+32|0;n=j+28|0;g=j+24|0;p=j+20|0;t=j+16|0;q=j+12|0;s=j+8|0;o=j+4|0;r=j;c[m>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;c[f>>2]=0;if(!(c[h>>2]|0)){a=c[f>>2]|0;i=j;return a|0}c[n>>2]=c[k>>2]&1;c[p>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=c[f>>2]|0;i=j;return a|0}a=Bq(c[m>>2]|0,c[(c[h>>2]|0)+12>>2]|0,0)|0;c[(c[f>>2]|0)+12>>2]=a;a=Bq(c[m>>2]|0,c[(c[h>>2]|0)+16>>2]|0,0)|0;c[(c[f>>2]|0)+16>>2]=a;a=c[f>>2]|0;i=j;return a|0}a=Kq(n,c[k>>2]|0)|0;c[g>>2]=(c[g>>2]|0)+a;if(c[(c[f>>2]|0)+4>>2]&8192){a=Fq(c[m>>2]|0,c[(c[h>>2]|0)+12>>2]|0,1,g)|0;c[(c[f>>2]|0)+12>>2]=a;a=Fq(c[m>>2]|0,c[(c[h>>2]|0)+16>>2]|0,1,g)|0;c[(c[f>>2]|0)+16>>2]=a}if(!(c[l>>2]|0)){a=c[f>>2]|0;i=j;return a|0}c[c[l>>2]>>2]=c[g>>2];a=c[f>>2]|0;i=j;return a|0}function Gq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;e=d;c[f>>2]=a;c[g>>2]=b;c[e>>2]=0;if(!(c[f>>2]|0)){a=c[e>>2]|0;i=d;return a|0}c[e>>2]=Kq(c[f>>2]|0,c[g>>2]|0)|0;if(!(c[g>>2]&1)){a=c[e>>2]|0;i=d;return a|0}a=Gq(c[(c[f>>2]|0)+12>>2]|0,c[g>>2]|0)|0;a=a+(Gq(c[(c[f>>2]|0)+16>>2]|0,c[g>>2]|0)|0)|0;c[e>>2]=(c[e>>2]|0)+a;a=c[e>>2]|0;i=d;return a|0}function Hq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;e=d;c[f>>2]=a;c[g>>2]=b;do if(!(c[g>>2]&1))c[e>>2]=48;else{if((c[(c[f>>2]|0)+12>>2]|0)==0?(c[(c[f>>2]|0)+20>>2]|0)==0:0){c[e>>2]=16396;break}c[e>>2]=8220}while(0);i=d;return c[e>>2]|0}function Iq(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;b=d+4|0;e=d;c[e>>2]=a;do if(!(c[(c[e>>2]|0)+4>>2]&16384))if(c[(c[e>>2]|0)+4>>2]&8192){c[b>>2]=28;break}else{c[b>>2]=48;break}else c[b>>2]=12;while(0);i=d;return c[b>>2]|0}function Jq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;m=i;i=i+48|0;h=m+32|0;j=m+28|0;l=m+24|0;q=m+20|0;k=m+16|0;o=m+12|0;g=m+8|0;n=m+4|0;p=m;c[j>>2]=b;c[l>>2]=e;c[q>>2]=f;if(!(c[l>>2]|0)){c[h>>2]=0;b=c[h>>2]|0;i=m;return b|0}c[k>>2]=Qe(c[j>>2]|0,8,0)|0;if(!(c[k>>2]|0)){c[h>>2]=0;b=c[h>>2]|0;i=m;return b|0}b=c[c[l>>2]>>2]|0;c[n>>2]=b;c[c[k>>2]>>2]=b;a:do if(!(c[q>>2]&1)){c[n>>2]=1;while(1){if((c[n>>2]|0)>=(c[c[l>>2]>>2]|0))break a;c[n>>2]=(c[n>>2]|0)+(c[n>>2]|0)}}while(0);b=Qe(c[j>>2]|0,(c[n>>2]|0)*20|0,0)|0;c[o>>2]=b;c[(c[k>>2]|0)+4>>2]=b;if(!(c[o>>2]|0)){Xb(c[j>>2]|0,c[k>>2]|0);c[h>>2]=0;b=c[h>>2]|0;i=m;return b|0}c[g>>2]=c[(c[l>>2]|0)+4>>2];c[n>>2]=0;while(1){if((c[n>>2]|0)>=(c[c[l>>2]>>2]|0))break;c[p>>2]=c[c[g>>2]>>2];b=Bq(c[j>>2]|0,c[p>>2]|0,c[q>>2]|0)|0;c[c[o>>2]>>2]=b;b=ne(c[j>>2]|0,c[(c[g>>2]|0)+4>>2]|0)|0;c[(c[o>>2]|0)+4>>2]=b;b=ne(c[j>>2]|0,c[(c[g>>2]|0)+8>>2]|0)|0;c[(c[o>>2]|0)+8>>2]=b;a[(c[o>>2]|0)+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c[g>>2]=f;b[(c[(c[t>>2]|0)+4>>2]|0)+((c[u>>2]|0)*20|0)+18>>1]=f}c[(c[n>>2]|0)+28>>2]=e[(c[(c[t>>2]|0)+4>>2]|0)+((c[u>>2]|0)*20|0)+18>>1]}if((d[c[m>>2]>>0]|0)==95)c[n>>2]=Oq(c[r>>2]|0,c[n>>2]|0,c[(c[m>>2]|0)+8>>2]|0)|0;r=(c[m>>2]|0)+4|0;c[r>>2]=c[r>>2]|32768;wn(c[o>>2]|0,c[m>>2]|0);r=(c[m>>2]|0)+0|0;l=(c[n>>2]|0)+0|0;q=r+48|0;do{c[r>>2]=c[l>>2];r=r+4|0;l=l+4|0}while((r|0)<(q|0));if((c[(c[m>>2]|0)+4>>2]&1024|0)==0?(c[(c[m>>2]|0)+8>>2]|0)!=0:0){f=ne(c[o>>2]|0,c[(c[m>>2]|0)+8>>2]|0)|0;c[(c[m>>2]|0)+8>>2]=f;f=(c[m>>2]|0)+4|0;c[f>>2]=c[f>>2]|65536}Xb(c[o>>2]|0,c[n>>2]|0);i=p;return}function Nq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+32|0;g=d+28|0;f=d+24|0;e=d;c[g>>2]=a;c[f>>2]=b;if((c[f>>2]|0)<=0){i=d;return}c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;c[e+20>>2]=0;c[e>>2]=42;c[e+20>>2]=c[f>>2];sq(e,c[g>>2]|0)|0;i=d;return}function Oq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+32|0;h=e+16|0;g=e+12|0;j=e+8|0;f=e;c[h>>2]=a;c[g>>2]=b;c[j>>2]=d;c[f>>2]=c[j>>2];c[f+4>>2]=Mb(c[f>>2]|0)|0;a=uo(c[h>>2]|0,c[g>>2]|0,f)|0;i=e;return a|0}function Pq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+16|0;h=f+4|0;g=f;c[h>>2]=b;c[g>>2]=e;if((d[c[g>>2]>>0]|0|0)!=155){i=f;return 0}b=(c[g>>2]|0)+38|0;a[b>>0]=(d[b>>0]|0)+(c[(c[h>>2]|0)+20>>2]|0);i=f;return 0}function Qq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;i=i+32|0;h=d;f=d+16|0;j=d+12|0;e=d+8|0;g=d+4|0;c[f>>2]=a;c[j>>2]=b;c[e>>2]=0;c[g>>2]=c[(c[c[f>>2]>>2]|0)+100>>2];if((c[j>>2]|0)<=(c[g>>2]|0)){j=c[e>>2]|0;i=d;return j|0}j=c[f>>2]|0;c[h>>2]=c[g>>2];Se(j,16752,h);c[e>>2]=1;j=c[e>>2]|0;i=d;return j|0}function Rq(f,g,h,j,k,l){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=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;o=i;i=i+144|0;y=o;u=o+132|0;m=o+128|0;E=o+124|0;w=o+120|0;x=o+116|0;z=o+112|0;n=o+108|0;P=o+104|0;J=o+100|0;p=o+96|0;F=o+92|0;R=o+88|0;q=o+84|0;O=o+80|0;t=o+76|0;v=o+72|0;A=o+68|0;r=o+64|0;H=o+60|0;K=o+56|0;I=o+52|0;Q=o+48|0;N=o+44|0;S=o+40|0;M=o+36|0;G=o+32|0;C=o+28|0;T=o+24|0;B=o+20|0;s=o+16|0;c[m>>2]=f;c[E>>2]=g;c[w>>2]=h;c[x>>2]=j;c[z>>2]=k;c[n>>2]=l;c[p>>2]=0;c[F>>2]=0;c[R>>2]=0;c[q>>2]=c[c[m>>2]>>2];c[t>>2]=0;c[v>>2]=c[z>>2];c[A>>2]=0;c[r>>2]=0;c[H>>2]=0;c[(c[n>>2]|0)+28>>2]=-1;c[(c[n>>2]|0)+44>>2]=0;a:do if(c[E>>2]|0){if(e[(c[z>>2]|0)+28>>1]&20){c[E>>2]=0;break}c[P>>2]=0;while(1){if((c[P>>2]|0)>=(c[(c[q>>2]|0)+20>>2]|0))break a;k=(xc(c[(c[(c[q>>2]|0)+16>>2]|0)+(c[P>>2]<<4)>>2]|0,c[E>>2]|0)|0)==0;l=c[P>>2]|0;if(k)break;c[P>>2]=l+1}c[A>>2]=c[(c[(c[q>>2]|0)+16>>2]|0)+(l<<4)+12>>2]}while(0);b:while(1){if(!((c[z>>2]|0)!=0&(c[p>>2]|0)==0)){U=92;break}c[Q>>2]=c[(c[z>>2]|0)+4>>2];if(c[Q>>2]|0){c[P>>2]=0;c[O>>2]=(c[Q>>2]|0)+8;while(1){if((c[P>>2]|0)>=(c[c[Q>>2]>>2]|0))break;c[H>>2]=c[(c[O>>2]|0)+16>>2];if((c[(c[O>>2]|0)+20>>2]|0)!=0?(e[(c[(c[O>>2]|0)+20>>2]|0)+6>>1]&512|0)!=0:0){c[N>>2]=0;c[I>>2]=c[c[(c[O>>2]|0)+20>>2]>>2];c[J>>2]=0;while(1){if((c[J>>2]|0)>=(c[c[I>>2]>>2]|0))break;if(Xq(c[(c[(c[I>>2]|0)+4>>2]|0)+((c[J>>2]|0)*20|0)+8>>2]|0,c[x>>2]|0,c[w>>2]|0,c[E>>2]|0)|0){c[p>>2]=(c[p>>2]|0)+1;c[F>>2]=2;c[t>>2]=c[O>>2];b[(c[n>>2]|0)+32>>1]=c[J>>2];c[N>>2]=1}c[J>>2]=(c[J>>2]|0)+1}if(!((c[N>>2]|0)!=0|(c[w>>2]|0)==0))U=21}else U=21;c:do if((U|0)==21){U=0;if((c[E>>2]|0)!=0?(c[(c[H>>2]|0)+68>>2]|0)!=(c[A>>2]|0):0)break;if(c[w>>2]|0){if(c[(c[O>>2]|0)+12>>2]|0)l=c[(c[O>>2]|0)+12>>2]|0;else l=c[c[H>>2]>>2]|0;c[S>>2]=l;if(xc(c[S>>2]|0,c[w>>2]|0)|0)break}k=c[F>>2]|0;c[F>>2]=k+1;if(!k)c[t>>2]=c[O>>2];c[J>>2]=0;c[K>>2]=c[(c[H>>2]|0)+4>>2];while(1){if((c[J>>2]|0)>=(b[(c[H>>2]|0)+38>>1]|0))break c;if(!(xc(c[c[K>>2]>>2]|0,c[x>>2]|0)|0)){if((c[p>>2]|0)!=1)break;if((d[(c[O>>2]|0)+36>>0]&4|0)==0?(Yq(c[(c[O>>2]|0)+48>>2]|0,c[x>>2]|0)|0)==0:0)break}c[J>>2]=(c[J>>2]|0)+1;c[K>>2]=(c[K>>2]|0)+24}c[p>>2]=(c[p>>2]|0)+1;c[t>>2]=c[O>>2];if((c[J>>2]|0)==(b[(c[H>>2]|0)+36>>1]|0))l=-1;else l=(c[J>>2]&65535)<<16>>16;b[(c[n>>2]|0)+32>>1]=l}while(0);c[P>>2]=(c[P>>2]|0)+1;c[O>>2]=(c[O>>2]|0)+72}if(c[t>>2]|0){c[(c[n>>2]|0)+28>>2]=c[(c[t>>2]|0)+40>>2];c[(c[n>>2]|0)+44>>2]=c[(c[t>>2]|0)+16>>2];if(d[(c[t>>2]|0)+36>>0]&8){k=(c[n>>2]|0)+4|0;c[k>>2]=c[k>>2]|1048576}c[A>>2]=c[(c[(c[n>>2]|0)+44>>2]|0)+68>>2]}}if((c[E>>2]|0)==0&(c[w>>2]|0)!=0&(c[F>>2]|0)==0?(c[(c[m>>2]|0)+412>>2]|0)!=0:0){c[M>>2]=d[(c[m>>2]|0)+436>>0];if((c[M>>2]|0)!=109?(xc(17160,c[w>>2]|0)|0)==0:0){c[(c[n>>2]|0)+28>>2]=1;c[H>>2]=c[(c[m>>2]|0)+412>>2]}else U=50;do if((U|0)==50){U=0;if((c[M>>2]|0)!=108?(xc(17168,c[w>>2]|0)|0)==0:0){c[(c[n>>2]|0)+28>>2]=0;c[H>>2]=c[(c[m>>2]|0)+412>>2];break}c[H>>2]=0}while(0);if(c[H>>2]|0){c[A>>2]=c[(c[H>>2]|0)+68>>2];c[F>>2]=(c[F>>2]|0)+1;c[G>>2]=0;c[K>>2]=c[(c[H>>2]|0)+4>>2];while(1){if((c[G>>2]|0)>=(b[(c[H>>2]|0)+38>>1]|0))break;k=(xc(c[c[K>>2]>>2]|0,c[x>>2]|0)|0)==0;L=c[G>>2]|0;if(k){U=58;break}c[G>>2]=L+1;c[K>>2]=(c[K>>2]|0)+24}if((U|0)==58?(U=0,(L|0)==(b[(c[H>>2]|0)+36>>1]|0)):0)c[G>>2]=-1;if(((c[G>>2]|0)>=(b[(c[H>>2]|0)+38>>1]|0)?(Zq(c[x>>2]|0)|0)!=0:0)?(d[(c[H>>2]|0)+44>>0]&32|0)==0:0)c[G>>2]=-1;if((c[G>>2]|0)<(b[(c[H>>2]|0)+38>>1]|0)){c[p>>2]=(c[p>>2]|0)+1;l=c[n>>2]|0;do if((c[G>>2]|0)>=0){j=(c[G>>2]|0)>=32;if(!(c[l+28>>2]|0)){if(j)l=-1;else l=1<>2];k=(c[m>>2]|0)+428|0;c[k>>2]=c[k>>2]|l;break}else{if(j)l=-1;else l=1<>2];k=(c[m>>2]|0)+432|0;c[k>>2]=c[k>>2]|l;break}}else a[l+1>>0]=68;while(0);b[(c[n>>2]|0)+32>>1]=c[G>>2];c[(c[n>>2]|0)+44>>2]=c[H>>2];c[r>>2]=1}}}if(((c[p>>2]|0)==0&(c[F>>2]|0)==1&(c[t>>2]|0)!=0?(Zq(c[x>>2]|0)|0)!=0:0)?(d[(c[(c[t>>2]|0)+16>>2]|0)+44>>0]&32|0)==0:0){c[p>>2]=1;b[(c[n>>2]|0)+32>>1]=-1;a[(c[n>>2]|0)+1>>0]=68}k=c[(c[z>>2]|0)+8>>2]|0;c[I>>2]=k;d:do if((k|0)!=0&(c[w>>2]|0)==0&(c[p>>2]|0)==0){c[J>>2]=0;while(1){if((c[J>>2]|0)>=(c[c[I>>2]>>2]|0))break d;c[C>>2]=c[(c[(c[I>>2]|0)+4>>2]|0)+((c[J>>2]|0)*20|0)+4>>2];if((c[C>>2]|0)!=0?(xc(c[C>>2]|0,c[x>>2]|0)|0)==0:0){U=85;break b}c[J>>2]=(c[J>>2]|0)+1}}while(0);if(c[p>>2]|0)continue;c[z>>2]=c[(c[z>>2]|0)+16>>2];c[R>>2]=(c[R>>2]|0)+1}if((U|0)==85){c[T>>2]=c[(c[(c[I>>2]|0)+4>>2]|0)+((c[J>>2]|0)*20|0)>>2];if((e[(c[z>>2]|0)+28>>1]&1|0)==0?(c[(c[T>>2]|0)+4>>2]&2|0)!=0:0){k=c[m>>2]|0;c[y>>2]=c[C>>2];Se(k,17176,y);c[u>>2]=2;k=c[u>>2]|0;i=o;return k|0}Mq(c[m>>2]|0,c[I>>2]|0,c[J>>2]|0,c[n>>2]|0,1216,c[R>>2]|0);c[p>>2]=1;c[t>>2]=0}else if((U|0)==92){if((c[p>>2]|0)==0&(c[w>>2]|0)==0?(c[(c[n>>2]|0)+4>>2]&64|0)!=0:0){a[c[n>>2]>>0]=97;c[(c[n>>2]|0)+44>>2]=0;c[u>>2]=1;k=c[u>>2]|0;i=o;return k|0}if((c[p>>2]|0)!=1){c[B>>2]=(c[p>>2]|0)==0?17208:17224;do if(!(c[E>>2]|0)){C=c[m>>2]|0;B=c[B>>2]|0;if(c[w>>2]|0){f=c[w>>2]|0;k=c[x>>2]|0;c[y>>2]=B;c[y+4>>2]=f;c[y+8>>2]=k;Se(C,17264,y);break}else{k=c[x>>2]|0;c[y>>2]=B;c[y+4>>2]=k;Se(C,17280,y);break}}else{k=c[m>>2]|0;h=c[E>>2]|0;g=c[w>>2]|0;f=c[x>>2]|0;c[y>>2]=c[B>>2];c[y+4>>2]=h;c[y+8>>2]=g;c[y+12>>2]=f;Se(k,17248,y)}while(0);a[(c[m>>2]|0)+17>>0]=1;k=(c[v>>2]|0)+24|0;c[k>>2]=(c[k>>2]|0)+1}if((c[t>>2]|0)!=0?(b[(c[n>>2]|0)+32>>1]|0)>=0:0){g=b[(c[n>>2]|0)+32>>1]|0;c[s>>2]=g;c[s>>2]=(c[s>>2]|0)>=64?63:g;g=$E(1,0,c[s>>2]|0)|0;k=(c[t>>2]|0)+56|0;h=k;f=c[h+4>>2]|D;c[k>>2]=c[h>>2]|g;c[k+4>>2]=f}wn(c[q>>2]|0,c[(c[n>>2]|0)+12>>2]|0);c[(c[n>>2]|0)+12>>2]=0;wn(c[q>>2]|0,c[(c[n>>2]|0)+16>>2]|0);c[(c[n>>2]|0)+16>>2]=0;a[c[n>>2]>>0]=(c[r>>2]|0)!=0?62:154}if((c[p>>2]|0)!=1){c[u>>2]=2;k=c[u>>2]|0;i=o;return k|0}if((d[c[n>>2]>>0]|0)!=24)_q(c[m>>2]|0,c[n>>2]|0,c[A>>2]|0,c[(c[z>>2]|0)+4>>2]|0);while(1){k=(c[v>>2]|0)+20|0;c[k>>2]=(c[k>>2]|0)+1;if((c[v>>2]|0)==(c[z>>2]|0))break;c[v>>2]=c[(c[v>>2]|0)+16>>2]}c[u>>2]=1;k=c[u>>2]|0;i=o;return k|0}function Sq(a,b,d){a=a|0;b=b|0;d=d|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;j=f;g=f+12|0;k=f+8|0;h=f+4|0;c[g>>2]=a;c[k>>2]=b;c[h>>2]=d;if(!((e[(c[k>>2]|0)+28>>1]|0)&16)){i=f;return}k=c[g>>2]|0;c[j>>2]=c[h>>2];Se(k,17112,j);i=f;return}function Tq(a){a=a|0;var b=0,e=0,f=0,g=0;b=i;i=i+16|0;e=b+12|0;g=b+8|0;f=b;c[g>>2]=a;h[f>>3]=-1.0;if((d[c[g>>2]>>0]|0|0)!=133){c[e>>2]=-1;g=c[e>>2]|0;i=b;return g|0}a=c[(c[g>>2]|0)+8>>2]|0;Lm(a,f,Mb(c[(c[g>>2]|0)+8>>2]|0)|0,1)|0;if(+h[f>>3]>1.0){c[e>>2]=-1;g=c[e>>2]|0;i=b;return g|0}else{c[e>>2]=~~(+h[f>>3]*1.0e3);g=c[e>>2]|0;i=b;return g|0}return 0}function Uq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+48|0;f=d+44|0;h=d+40|0;g=d+16|0;e=d;c[f>>2]=a;c[h>>2]=b;c[g+0>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;c[g+16>>2]=0;c[g+20>>2]=0;c[g>>2]=43;c[g+20>>2]=e;c[e>>2]=c[h>>2];c[e+4>>2]=0;c[e+8>>2]=0;rq(g,c[(c[f>>2]|0)+20>>2]|0)|0;if((c[e+4>>2]|0)>0){h=1;h=h&1;i=d;return h|0}h=(c[e+8>>2]|0)==0;h=h&1;i=d;return h|0}function Vq(a,b,d){a=a|0;b=b|0;d=d|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;j=f;g=f+12|0;k=f+8|0;h=f+4|0;c[g>>2]=a;c[k>>2]=b;c[h>>2]=d;if(!((e[(c[k>>2]|0)+28>>1]|0)&4)){i=f;return}k=c[g>>2]|0;c[j>>2]=c[h>>2];Se(k,17072,j);i=f;return}function Wq(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;k=e+16|0;j=e+12|0;f=e+8|0;h=e+4|0;g=e;c[k>>2]=a;c[j>>2]=b;if((d[c[j>>2]>>0]|0|0)!=154?(d[c[j>>2]>>0]|0|0)!=156:0){i=e;return 0}c[h>>2]=c[(c[k>>2]|0)+20>>2];c[g>>2]=c[c[h>>2]>>2];c[f>>2]=0;while(1){if((c[f>>2]|0)>=(c[c[g>>2]>>2]|0))break;if((c[(c[j>>2]|0)+28>>2]|0)==(c[(c[g>>2]|0)+8+((c[f>>2]|0)*72|0)+40>>2]|0))break;c[f>>2]=(c[f>>2]|0)+1}b=c[h>>2]|0;if((c[f>>2]|0)<(c[c[g>>2]>>2]|0)){a=b+4|0;c[a>>2]=(c[a>>2]|0)+1;i=e;return 0}else{a=b+8|0;c[a>>2]=(c[a>>2]|0)+1;i=e;return 0}return 0}function Xq(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;k=g+20|0;h=g+16|0;n=g+12|0;l=g+8|0;m=g+4|0;j=g;c[h>>2]=b;c[n>>2]=d;c[l>>2]=e;c[m>>2]=f;c[j>>2]=0;while(1){if(!(a[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0))break;if((a[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)==46)break;c[j>>2]=(c[j>>2]|0)+1}do if(c[m>>2]|0){if((Lb(c[h>>2]|0,c[m>>2]|0,c[j>>2]|0)|0)==0?(a[(c[m>>2]|0)+(c[j>>2]|0)>>0]|0)==0:0)break;c[k>>2]=0;b=c[k>>2]|0;i=g;return b|0}while(0);c[h>>2]=(c[h>>2]|0)+((c[j>>2]|0)+1);c[j>>2]=0;while(1){if(!(a[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0))break;if((a[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)==46)break;c[j>>2]=(c[j>>2]|0)+1}do if(c[l>>2]|0){if((Lb(c[h>>2]|0,c[l>>2]|0,c[j>>2]|0)|0)==0?(a[(c[l>>2]|0)+(c[j>>2]|0)>>0]|0)==0:0)break;c[k>>2]=0;b=c[k>>2]|0;i=g;return b|0}while(0);c[h>>2]=(c[h>>2]|0)+((c[j>>2]|0)+1);if((c[n>>2]|0)!=0?(xc(c[h>>2]|0,c[n>>2]|0)|0)!=0:0){c[k>>2]=0;b=c[k>>2]|0;i=g;return b|0}c[k>>2]=1;b=c[k>>2]|0;i=g;return b|0}function Yq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;i=i+16|0;d=e+12|0;f=e+8|0;h=e+4|0;g=e;c[f>>2]=a;c[h>>2]=b;a:do if(c[f>>2]|0){c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[(c[f>>2]|0)+4>>2]|0))break a;if(!(xc(c[(c[c[f>>2]>>2]|0)+(c[g>>2]<<3)>>2]|0,c[h>>2]|0)|0))break;c[g>>2]=(c[g>>2]|0)+1}c[d>>2]=1;a=c[d>>2]|0;i=e;return a|0}while(0);c[d>>2]=0;a=c[d>>2]|0;i=e;return a|0}function Zq(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;b=d+4|0;e=d;c[e>>2]=a;do if(xc(c[e>>2]|0,17368)|0){if(!(xc(c[e>>2]|0,17288)|0)){c[b>>2]=1;break}if(!(xc(c[e>>2]|0,17376)|0)){c[b>>2]=1;break}else{c[b>>2]=0;break}}else c[b>>2]=1;while(0);i=d;return c[b>>2]|0}function _q(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;p=i;i=i+48|0;l=p+36|0;j=p+32|0;s=p+28|0;q=p+24|0;t=p+20|0;k=p+16|0;m=p+12|0;r=p+8|0;n=p+4|0;o=p;c[l>>2]=e;c[j>>2]=f;c[s>>2]=g;c[q>>2]=h;c[t>>2]=c[c[l>>2]>>2];c[k>>2]=0;if(!(c[(c[t>>2]|0)+284>>2]|0)){i=p;return}c[n>>2]=Ve(c[c[l>>2]>>2]|0,c[s>>2]|0)|0;if((c[n>>2]|0)<0){i=p;return}a:do if((d[c[j>>2]>>0]|0)==62)c[k>>2]=c[(c[l>>2]|0)+412>>2];else{c[r>>2]=0;while(1){if((c[r>>2]|0)>=(c[c[q>>2]>>2]|0))break a;h=c[r>>2]|0;if((c[(c[j>>2]|0)+28>>2]|0)==(c[(c[q>>2]|0)+8+((c[r>>2]|0)*72|0)+40>>2]|0))break;c[r>>2]=h+1}c[k>>2]=c[(c[q>>2]|0)+8+(h*72|0)+16>>2]}while(0);c[o>>2]=b[(c[j>>2]|0)+32>>1];if(!(c[k>>2]|0)){i=p;return}do if((c[o>>2]|0)<0)if((b[(c[k>>2]|0)+36>>1]|0)>=0){c[m>>2]=c[(c[(c[k>>2]|0)+4>>2]|0)+((b[(c[k>>2]|0)+36>>1]|0)*24|0)>>2];break}else{c[m>>2]=17288;break}else c[m>>2]=c[(c[(c[k>>2]|0)+4>>2]|0)+((c[o>>2]|0)*24|0)>>2];while(0);if(2!=($q(c[l>>2]|0,c[c[k>>2]>>2]|0,c[m>>2]|0,c[n>>2]|0)|0)){i=p;return}a[c[j>>2]>>0]=101;i=p;return}function $q(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,m=0,n=0,o=0;m=i;i=i+48|0;f=m;h=m+36|0;j=m+32|0;k=m+28|0;n=m+24|0;o=m+20|0;l=m+16|0;g=m+12|0;c[h>>2]=a;c[j>>2]=b;c[k>>2]=d;c[n>>2]=e;c[o>>2]=c[c[h>>2]>>2];c[l>>2]=c[(c[(c[o>>2]|0)+16>>2]|0)+(c[n>>2]<<4)>>2];c[g>>2]=tb[c[(c[o>>2]|0)+284>>2]&1](c[(c[o>>2]|0)+288>>2]|0,20,c[j>>2]|0,c[k>>2]|0,c[l>>2]|0,c[(c[h>>2]|0)+492>>2]|0)|0;if((c[g>>2]|0)!=1){if(!((c[g>>2]|0)!=2&(c[g>>2]|0)!=0)){a=c[g>>2]|0;i=m;return a|0}bp(c[h>>2]|0);a=c[g>>2]|0;i=m;return a|0}e=c[h>>2]|0;if((c[n>>2]|0)!=0?1:(c[(c[o>>2]|0)+20>>2]|0)>2){b=c[j>>2]|0;a=c[k>>2]|0;c[f>>2]=c[l>>2];c[f+4>>2]=b;c[f+8>>2]=a;Se(e,17296,f)}else{a=c[k>>2]|0;c[f>>2]=c[j>>2];c[f+4>>2]=a;Se(e,17336,f)}c[(c[h>>2]|0)+12>>2]=23;a=c[g>>2]|0;i=m;return a|0}function ar(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;n=i;i=i+48|0;j=n+44|0;p=n+40|0;o=n+36|0;r=n+32|0;l=n+28|0;t=n+24|0;h=n+20|0;s=n+16|0;m=n+12|0;k=n+8|0;q=n;c[p>>2]=f;c[o>>2]=g;if(!(c[(c[o>>2]|0)+52>>2]|0)){c[j>>2]=0;f=c[j>>2]|0;i=n;return f|0}if(!(c[(c[o>>2]|0)+48>>2]|0)){c[j>>2]=0;f=c[j>>2]|0;i=n;return f|0}c[t>>2]=c[o>>2];while(1){if(!(c[t>>2]|0))break;if((d[(c[t>>2]|0)+4>>0]|0|0)!=116?(d[(c[t>>2]|0)+4>>0]|0|0)!=119:0)break;c[t>>2]=c[(c[t>>2]|0)+52>>2]}if(!(c[t>>2]|0)){c[j>>2]=0;f=c[j>>2]|0;i=n;return f|0}c[s>>2]=c[(c[(c[o>>2]|0)+48>>2]|0)+4>>2];c[r>>2]=(c[c[(c[o>>2]|0)+48>>2]>>2]|0)-1;while(1){if((c[r>>2]|0)<0)break;if(c[(c[(c[s>>2]|0)+((c[r>>2]|0)*20|0)>>2]|0)+4>>2]&256)break;c[r>>2]=(c[r>>2]|0)+ -1}if((c[r>>2]|0)<0){c[j>>2]=0;f=c[j>>2]|0;i=n;return f|0}c[k>>2]=c[(c[p>>2]|0)+12>>2];c[h>>2]=c[c[k>>2]>>2];c[l>>2]=se(c[h>>2]|0,72,0)|0;if(!(c[l>>2]|0)){c[j>>2]=2;f=c[j>>2]|0;i=n;return f|0}c[q+0>>2]=0;c[q+4>>2]=0;c[m>>2]=bo(c[k>>2]|0,0,0,0,q,c[l>>2]|0,0,0)|0;if(!(c[m>>2]|0)){c[j>>2]=2;f=c[j>>2]|0;i=n;return f|0}else{r=(c[l>>2]|0)+0|0;q=(c[o>>2]|0)+0|0;p=r+72|0;do{c[r>>2]=c[q>>2];r=r+4|0;q=q+4|0}while((r|0)<(p|0));c[(c[o>>2]|0)+32>>2]=c[m>>2];f=c[k>>2]|0;f=eo(f,0,ho(c[h>>2]|0,116,0)|0)|0;c[c[o>>2]>>2]=f;a[(c[o>>2]|0)+4>>0]=119;c[(c[o>>2]|0)+36>>2]=0;c[(c[l>>2]|0)+40>>2]=0;c[(c[l>>2]|0)+44>>2]=0;c[(c[l>>2]|0)+48>>2]=0;c[(c[o>>2]|0)+52>>2]=0;c[(c[o>>2]|0)+56>>2]=0;f=(c[o>>2]|0)+6|0;b[f>>1]=(e[f>>1]|0)&-65;c[(c[(c[l>>2]|0)+52>>2]|0)+56>>2]=c[l>>2];c[(c[l>>2]|0)+60>>2]=0;c[(c[l>>2]|0)+64>>2]=0;c[j>>2]=0;f=c[j>>2]|0;i=n;return f|0}return 0}function br(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,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;D=i;i=i+160|0;l=D;z=D+148|0;Q=D+144|0;m=D+140|0;k=D+136|0;B=D+132|0;E=D+128|0;r=D+124|0;C=D+120|0;o=D+116|0;h=D+112|0;n=D+108|0;s=D+104|0;t=D+100|0;J=D+96|0;R=D+152|0;O=D+92|0;P=D+88|0;q=D+84|0;p=D+80|0;N=D+76|0;L=D+72|0;v=D+68|0;u=D+64|0;x=D+60|0;w=D+56|0;y=D+52|0;A=D+48|0;j=D+44|0;F=D+40|0;I=D+36|0;G=D+32|0;K=D+24|0;M=D+16|0;H=D+12|0;c[Q>>2]=f;c[m>>2]=g;c[k>>2]=c[(c[Q>>2]|0)+12>>2];c[n>>2]=c[c[k>>2]>>2];b[R>>1]=b[(c[m>>2]|0)+6>>1]|0;f=(c[m>>2]|0)+6|0;b[f>>1]=e[f>>1]|16;if(a[(c[n>>2]|0)+64>>0]|0){c[z>>2]=2;f=c[z>>2]|0;i=D;return f|0}if((c[(c[m>>2]|0)+32>>2]|0)!=0?(e[R>>1]&16|0)==0:0){c[C>>2]=c[(c[m>>2]|0)+32>>2];c[o>>2]=c[c[m>>2]>>2];f=c[k>>2]|0;mo(f,c[(dr(c[m>>2]|0)|0)+68>>2]|0,0);Xp(c[k>>2]|0,c[C>>2]|0);c[B>>2]=0;c[h>>2]=(c[C>>2]|0)+8;a:while(1){if((c[B>>2]|0)>=(c[c[C>>2]>>2]|0)){P=33;break}if(!((d[(c[h>>2]|0)+37>>0]|0)>>>3&1)){g=c[Q>>2]|0;if(c[(c[h>>2]|0)+16>>2]|0){P=10;break}if(er(g,c[h>>2]|0)|0){P=12;break}do if(!(c[(c[h>>2]|0)+16>>2]|0)){if(!(c[(c[h>>2]|0)+8>>2]|0)){c[P>>2]=c[(c[h>>2]|0)+20>>2];oq(c[Q>>2]|0,c[P>>2]|0)|0;f=se(c[n>>2]|0,76,0)|0;c[O>>2]=f;c[(c[h>>2]|0)+16>>2]=f;if(!(c[O>>2]|0)){P=16;break a}b[(c[O>>2]|0)+40>>1]=1;f=c[n>>2]|0;c[l>>2]=c[O>>2];f=Te(f,17384,l)|0;c[c[O>>2]>>2]=f;while(1){if(!(c[(c[P>>2]|0)+52>>2]|0))break;c[P>>2]=c[(c[P>>2]|0)+52>>2]}_p(c[k>>2]|0,c[c[P>>2]>>2]|0,(c[O>>2]|0)+38|0,(c[O>>2]|0)+4|0)|0;b[(c[O>>2]|0)+36>>1]=-1;b[(c[O>>2]|0)+28>>1]=200;f=(c[O>>2]|0)+44|0;a[f>>0]=d[f>>0]|2;break}f=np(c[k>>2]|0,0,c[h>>2]|0)|0;c[O>>2]=f;c[(c[h>>2]|0)+16>>2]=f;if(!(c[O>>2]|0)){P=22;break a}if((e[(c[O>>2]|0)+40>>1]|0)==65535){P=24;break a}f=(c[O>>2]|0)+40|0;b[f>>1]=(b[f>>1]|0)+1<<16>>16;if((c[(c[O>>2]|0)+12>>2]|0)==0?(d[(c[O>>2]|0)+44>>0]&16|0)==0:0)break;if(Qp(c[k>>2]|0,c[O>>2]|0)|0){P=28;break a}f=Wp(c[n>>2]|0,c[(c[O>>2]|0)+12>>2]|0,0)|0;c[(c[h>>2]|0)+20>>2]=f;oq(c[Q>>2]|0,c[(c[h>>2]|0)+20>>2]|0)|0}while(0);if(fr(c[k>>2]|0,c[h>>2]|0)|0){P=31;break}}c[B>>2]=(c[B>>2]|0)+1;c[h>>2]=(c[h>>2]|0)+72}if((P|0)==10){cr(g,c[m>>2]|0);c[z>>2]=1;f=c[z>>2]|0;i=D;return f|0}else if((P|0)==12){c[z>>2]=2;f=c[z>>2]|0;i=D;return f|0}else if((P|0)==16){c[z>>2]=2;f=c[z>>2]|0;i=D;return f|0}else if((P|0)==22){c[z>>2]=2;f=c[z>>2]|0;i=D;return f|0}else if((P|0)==24){f=c[k>>2]|0;c[l>>2]=c[c[O>>2]>>2];Se(f,17400,l);c[(c[h>>2]|0)+16>>2]=0;c[z>>2]=2;f=c[z>>2]|0;i=D;return f|0}else if((P|0)==28){c[z>>2]=2;f=c[z>>2]|0;i=D;return f|0}else if((P|0)==31){c[z>>2]=2;f=c[z>>2]|0;i=D;return f|0}else if((P|0)==33){if((d[(c[n>>2]|0)+64>>0]|0)==0?(gr(c[k>>2]|0,c[m>>2]|0)|0)==0:0){c[r>>2]=0;while(1){if((c[r>>2]|0)>=(c[c[o>>2]>>2]|0))break;c[s>>2]=c[(c[(c[o>>2]|0)+4>>2]|0)+((c[r>>2]|0)*20|0)>>2];if((d[c[s>>2]>>0]|0)==116)break;if((d[c[s>>2]>>0]|0)==122?(d[c[(c[s>>2]|0)+16>>2]>>0]|0)==116:0)break;c[r>>2]=(c[r>>2]|0)+1}if((c[r>>2]|0)<(c[c[o>>2]>>2]|0)){c[q>>2]=c[(c[o>>2]|0)+4>>2];c[p>>2]=0;c[N>>2]=c[(c[c[k>>2]>>2]|0)+24>>2];if(c[N>>2]&32)N=(c[N>>2]&64|0)==0;else N=0;c[L>>2]=N&1;c[r>>2]=0;while(1){if((c[r>>2]|0)>=(c[c[o>>2]>>2]|0))break;c[s>>2]=c[(c[q>>2]|0)+((c[r>>2]|0)*20|0)>>2];c[t>>2]=c[(c[s>>2]|0)+16>>2];do if((d[c[s>>2]>>0]|0)!=116){if((d[c[s>>2]>>0]|0)==122?(d[c[t>>2]>>0]|0)==116:0){P=53;break}c[p>>2]=eo(c[k>>2]|0,c[p>>2]|0,c[(c[q>>2]|0)+((c[r>>2]|0)*20|0)>>2]|0)|0;if(c[p>>2]|0){c[(c[(c[p>>2]|0)+4>>2]|0)+(((c[c[p>>2]>>2]|0)-1|0)*20|0)+4>>2]=c[(c[q>>2]|0)+((c[r>>2]|0)*20|0)+4>>2];c[(c[(c[p>>2]|0)+4>>2]|0)+(((c[c[p>>2]>>2]|0)-1|0)*20|0)+8>>2]=c[(c[q>>2]|0)+((c[r>>2]|0)*20|0)+8>>2];c[(c[q>>2]|0)+((c[r>>2]|0)*20|0)+4>>2]=0;c[(c[q>>2]|0)+((c[r>>2]|0)*20|0)+8>>2]=0}c[(c[q>>2]|0)+((c[r>>2]|0)*20|0)>>2]=0}else P=53;while(0);do if((P|0)==53){P=0;c[v>>2]=0;c[u>>2]=0;if((d[c[s>>2]>>0]|0)==122)c[u>>2]=c[(c[(c[s>>2]|0)+12>>2]|0)+8>>2];c[B>>2]=0;c[h>>2]=(c[C>>2]|0)+8;while(1){if((c[B>>2]|0)>=(c[c[C>>2]>>2]|0))break;c[x>>2]=c[(c[h>>2]|0)+16>>2];c[w>>2]=c[(c[h>>2]|0)+20>>2];c[y>>2]=c[(c[h>>2]|0)+12>>2];c[A>>2]=0;if(!(c[y>>2]|0))c[y>>2]=c[c[x>>2]>>2];if(a[(c[n>>2]|0)+64>>0]|0)break;if((c[w>>2]|0)!=0?(e[(c[w>>2]|0)+6>>1]&512|0)!=0:0)P=67;else P=62;do if((P|0)==62){P=0;c[w>>2]=0;if((c[u>>2]|0)!=0?(xc(c[u>>2]|0,c[y>>2]|0)|0)!=0:0)break;c[j>>2]=Ve(c[n>>2]|0,c[(c[x>>2]|0)+68>>2]|0)|0;if((c[j>>2]|0)>=0)N=c[(c[(c[n>>2]|0)+16>>2]|0)+(c[j>>2]<<4)>>2]|0;else N=17440;c[A>>2]=N;P=67}while(0);b:do if((P|0)==67){P=0;c[E>>2]=0;while(1){if((c[E>>2]|0)>=(b[(c[x>>2]|0)+38>>1]|0))break b;c[F>>2]=c[(c[(c[x>>2]|0)+4>>2]|0)+((c[E>>2]|0)*24|0)>>2];if(!((c[u>>2]|0)!=0&(c[w>>2]|0)!=0?(Xq(c[(c[(c[c[w>>2]>>2]|0)+4>>2]|0)+((c[E>>2]|0)*20|0)+8>>2]|0,0,c[u>>2]|0,0)|0)==0:0))P=71;do if((P|0)==71){P=0;if(d[(c[(c[x>>2]|0)+4>>2]|0)+((c[E>>2]|0)*24|0)+23>>0]&2)break;c[v>>2]=1;if((c[B>>2]|0)>0&(c[u>>2]|0)==0){if((d[(c[h>>2]|0)+36>>0]&4|0)!=0?(hr(c[C>>2]|0,c[B>>2]|0,c[F>>2]|0,0,0)|0)!=0:0)break;if((ir(c[(c[h>>2]|0)+48>>2]|0,c[F>>2]|0)|0)>=0)break}c[t>>2]=ho(c[n>>2]|0,27,c[F>>2]|0)|0;c[I>>2]=c[F>>2];c[G>>2]=0;do if(c[L>>2]|0)P=78;else{if((c[c[C>>2]>>2]|0)>1){P=78;break}c[J>>2]=c[t>>2]}while(0);do if((P|0)==78){P=0;c[M>>2]=ho(c[n>>2]|0,27,c[y>>2]|0)|0;c[J>>2]=Rn(c[k>>2]|0,122,c[M>>2]|0,c[t>>2]|0,0)|0;if(c[A>>2]|0){c[M>>2]=ho(c[n>>2]|0,27,c[A>>2]|0)|0;c[J>>2]=Rn(c[k>>2]|0,122,c[M>>2]|0,c[J>>2]|0,0)|0}if(!(c[L>>2]|0))break;f=c[n>>2]|0;R=c[F>>2]|0;c[l>>2]=c[y>>2];c[l+4>>2]=R;c[I>>2]=Te(f,17448,l)|0;c[G>>2]=c[I>>2]}while(0);c[p>>2]=eo(c[k>>2]|0,c[p>>2]|0,c[J>>2]|0)|0;c[K>>2]=c[I>>2];c[K+4>>2]=Mb(c[I>>2]|0)|0;fo(c[k>>2]|0,c[p>>2]|0,K,0);do if(c[p>>2]|0){if(!(e[(c[m>>2]|0)+6>>1]&512))break;c[H>>2]=(c[(c[p>>2]|0)+4>>2]|0)+(((c[c[p>>2]>>2]|0)-1|0)*20|0);N=c[n>>2]|0;if(c[w>>2]|0){f=ne(N,c[(c[(c[c[w>>2]>>2]|0)+4>>2]|0)+((c[E>>2]|0)*20|0)+8>>2]|0)|0;c[(c[H>>2]|0)+8>>2]=f}else{R=c[y>>2]|0;f=c[I>>2]|0;c[l>>2]=c[A>>2];c[l+4>>2]=R;c[l+8>>2]=f;f=Te(N,17456,l)|0;c[(c[H>>2]|0)+8>>2]=f}f=(c[H>>2]|0)+13|0;a[f>>0]=a[f>>0]&-3|2}while(0);Xb(c[n>>2]|0,c[G>>2]|0)}while(0);c[E>>2]=(c[E>>2]|0)+1}}while(0);c[B>>2]=(c[B>>2]|0)+1;c[h>>2]=(c[h>>2]|0)+72}if(!(c[v>>2]|0)){N=c[k>>2]|0;if(c[u>>2]|0){c[l>>2]=c[u>>2];Se(N,17472,l);break}else{Se(N,17496,l);break}}}while(0);c[r>>2]=(c[r>>2]|0)+1}sn(c[n>>2]|0,c[o>>2]|0);c[c[m>>2]>>2]=c[p>>2]}if((c[c[m>>2]>>2]|0)!=0?(c[c[c[m>>2]>>2]>>2]|0)>(c[(c[n>>2]|0)+96>>2]|0):0)Se(c[k>>2]|0,17520,l);c[z>>2]=0;f=c[z>>2]|0;i=D;return f|0}c[z>>2]=2;f=c[z>>2]|0;i=D;return f|0}}c[z>>2]=1;f=c[z>>2]|0;i=D;return f|0}function cr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;h=d+12|0;g=d+8|0;f=d+4|0;e=d;c[h>>2]=a;c[g>>2]=b;c[f>>2]=c[(c[h>>2]|0)+12>>2];c[e>>2]=c[(dr(c[g>>2]|0)|0)+68>>2];if(!(c[e>>2]|0)){i=d;return}c[(c[f>>2]|0)+532>>2]=c[(c[e>>2]|0)+4>>2];i=d;return}function dr(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;while(1){a=c[d>>2]|0;if(!(c[(c[d>>2]|0)+56>>2]|0))break;c[d>>2]=c[a+56>>2]}i=b;return a|0}function er(f,g){f=f|0;g=g|0;var h=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;o=i;i=i+80|0;r=o;n=o+72|0;l=o+68|0;y=o+64|0;k=o+60|0;z=o+56|0;j=o+52|0;u=o+48|0;q=o+44|0;t=o+40|0;m=o+36|0;p=o+32|0;s=o+28|0;h=o+24|0;x=o+20|0;w=o+16|0;v=o+12|0;c[l>>2]=f;c[y>>2]=g;c[k>>2]=c[(c[l>>2]|0)+12>>2];c[z>>2]=c[c[k>>2]>>2];c[j>>2]=vr(c[(c[k>>2]|0)+532>>2]|0,c[y>>2]|0,u)|0;if(c[j>>2]|0){if(c[(c[j>>2]|0)+12>>2]|0){z=c[k>>2]|0;f=c[(c[j>>2]|0)+12>>2]|0;c[r>>2]=c[c[j>>2]>>2];Se(z,f,r);c[n>>2]=1;f=c[n>>2]|0;i=o;return f|0}f=se(c[z>>2]|0,76,0)|0;c[q>>2]=f;c[(c[y>>2]|0)+16>>2]=f;if(!(c[q>>2]|0)){c[n>>2]=2;f=c[n>>2]|0;i=o;return f|0}b[(c[q>>2]|0)+40>>1]=1;f=ne(c[z>>2]|0,c[c[j>>2]>>2]|0)|0;c[c[q>>2]>>2]=f;b[(c[q>>2]|0)+36>>1]=-1;b[(c[q>>2]|0)+28>>1]=200;f=(c[q>>2]|0)+44|0;a[f>>0]=d[f>>0]|2;f=Wp(c[z>>2]|0,c[(c[j>>2]|0)+8>>2]|0,0)|0;c[(c[y>>2]|0)+20>>2]=f;if(a[(c[z>>2]|0)+64>>0]|0){c[n>>2]=7;f=c[n>>2]|0;i=o;return f|0}c[m>>2]=c[(c[y>>2]|0)+20>>2];if((d[(c[m>>2]|0)+4>>0]|0)==116)g=1;else g=(d[(c[m>>2]|0)+4>>0]|0)==115;c[s>>2]=g&1;a:do if(c[s>>2]|0){c[w>>2]=c[(c[(c[y>>2]|0)+20>>2]|0)+32>>2];c[x>>2]=0;while(1){if((c[x>>2]|0)>=(c[c[w>>2]>>2]|0))break a;c[v>>2]=(c[w>>2]|0)+8+((c[x>>2]|0)*72|0);if(((c[(c[v>>2]|0)+4>>2]|0)==0?(c[(c[v>>2]|0)+8>>2]|0)!=0:0)?0==(xc(c[(c[v>>2]|0)+8>>2]|0,c[c[j>>2]>>2]|0)|0):0){c[(c[v>>2]|0)+16>>2]=c[q>>2];f=(c[v>>2]|0)+37|0;a[f>>0]=a[f>>0]&-9|8;f=(c[q>>2]|0)+40|0;b[f>>1]=(b[f>>1]|0)+1<<16>>16;f=(c[m>>2]|0)+6|0;b[f>>1]=e[f>>1]|2048}c[x>>2]=(c[x>>2]|0)+1}}while(0);if((e[(c[q>>2]|0)+40>>1]|0)>2){f=c[k>>2]|0;c[r>>2]=c[c[j>>2]>>2];Se(f,17752,r);c[n>>2]=1;f=c[n>>2]|0;i=o;return f|0}c[(c[j>>2]|0)+12>>2]=17800;c[h>>2]=c[(c[k>>2]|0)+532>>2];c[(c[k>>2]|0)+532>>2]=c[u>>2];u=c[m>>2]|0;if(c[s>>2]|0)u=c[u+52>>2]|0;oq(c[l>>2]|0,u)|0;c[p>>2]=c[m>>2];while(1){u=c[p>>2]|0;if(!(c[(c[p>>2]|0)+52>>2]|0))break;c[p>>2]=c[u+52>>2]}c[t>>2]=c[u>>2];do if(c[(c[j>>2]|0)+4>>2]|0){if((c[c[t>>2]>>2]|0)==(c[c[(c[j>>2]|0)+4>>2]>>2]|0)){c[t>>2]=c[(c[j>>2]|0)+4>>2];break}f=c[k>>2]|0;g=c[c[t>>2]>>2]|0;z=c[c[(c[j>>2]|0)+4>>2]>>2]|0;c[r>>2]=c[c[j>>2]>>2];c[r+4>>2]=g;c[r+8>>2]=z;Se(f,17824,r);c[(c[k>>2]|0)+532>>2]=c[h>>2];c[n>>2]=1;f=c[n>>2]|0;i=o;return f|0}while(0);_p(c[k>>2]|0,c[t>>2]|0,(c[q>>2]|0)+38|0,(c[q>>2]|0)+4|0)|0;if(c[s>>2]|0){p=(c[j>>2]|0)+12|0;if(e[(c[m>>2]|0)+6>>1]&2048)c[p>>2]=17864;else c[p>>2]=17904;oq(c[l>>2]|0,c[m>>2]|0)|0}c[(c[j>>2]|0)+12>>2]=0;c[(c[k>>2]|0)+532>>2]=c[h>>2]}c[n>>2]=0;f=c[n>>2]|0;i=o;return f|0}function fr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;l=f;e=f+28|0;j=f+24|0;h=f+20|0;m=f+16|0;k=f+12|0;g=f+8|0;c[j>>2]=b;c[h>>2]=d;do if((c[(c[h>>2]|0)+16>>2]|0)!=0?(c[(c[h>>2]|0)+64>>2]|0)!=0:0){c[m>>2]=c[(c[h>>2]|0)+16>>2];c[k>>2]=c[(c[h>>2]|0)+64>>2];c[g>>2]=c[(c[m>>2]|0)+8>>2];while(1){if(!(c[g>>2]|0))break;if(!(xc(c[c[g>>2]>>2]|0,c[k>>2]|0)|0))break;c[g>>2]=c[(c[g>>2]|0)+20>>2]}if(c[g>>2]|0){c[(c[h>>2]|0)+68>>2]=c[g>>2];break}b=c[j>>2]|0;c[l>>2]=c[k>>2];c[l+4>>2]=0;Se(b,17728,l);a[(c[j>>2]|0)+17>>0]=1;c[e>>2]=1;b=c[e>>2]|0;i=f;return b|0}while(0);c[e>>2]=0;b=c[e>>2]|0;i=f;return b|0}function gr(a,e){a=a|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;f=i;i=i+80|0;h=f;j=f+76|0;g=f+72|0;l=f+68|0;m=f+64|0;p=f+60|0;q=f+56|0;v=f+52|0;x=f+48|0;w=f+44|0;s=f+40|0;r=f+36|0;t=f+32|0;n=f+28|0;o=f+24|0;u=f+20|0;k=f+16|0;z=f+12|0;A=f+8|0;y=f+4|0;c[g>>2]=a;c[l>>2]=e;c[m>>2]=c[(c[l>>2]|0)+32>>2];c[v>>2]=(c[m>>2]|0)+8;c[x>>2]=(c[v>>2]|0)+72;c[p>>2]=0;a:while(1){if((c[p>>2]|0)>=((c[c[m>>2]>>2]|0)-1|0)){l=28;break}c[w>>2]=c[(c[v>>2]|0)+16>>2];c[s>>2]=c[(c[x>>2]|0)+16>>2];b:do if(!((c[w>>2]|0)==0|(c[s>>2]|0)==0)){c[r>>2]=(d[(c[x>>2]|0)+36>>0]&32|0)!=0&1;c:do if(d[(c[x>>2]|0)+36>>0]&4){if(c[(c[x>>2]|0)+44>>2]|0){l=7;break a}if(c[(c[x>>2]|0)+48>>2]|0){l=7;break a}c[q>>2]=0;while(1){if((c[q>>2]|0)>=(b[(c[s>>2]|0)+38>>1]|0))break c;c[t>>2]=c[(c[(c[s>>2]|0)+4>>2]|0)+((c[q>>2]|0)*24|0)>>2];if(hr(c[m>>2]|0,(c[p>>2]|0)+1|0,c[t>>2]|0,n,o)|0)kr(c[g>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0,(c[p>>2]|0)+1|0,c[q>>2]|0,c[r>>2]|0,(c[l>>2]|0)+36|0);c[q>>2]=(c[q>>2]|0)+1}}while(0);if((c[(c[x>>2]|0)+44>>2]|0)!=0?(c[(c[x>>2]|0)+48>>2]|0)!=0:0){l=15;break a}if(c[(c[x>>2]|0)+44>>2]|0){if(c[r>>2]|0)lr(c[(c[x>>2]|0)+44>>2]|0,c[(c[x>>2]|0)+40>>2]|0);a=mr(c[c[g>>2]>>2]|0,c[(c[l>>2]|0)+36>>2]|0,c[(c[x>>2]|0)+44>>2]|0)|0;c[(c[l>>2]|0)+36>>2]=a;c[(c[x>>2]|0)+44>>2]=0}if(c[(c[x>>2]|0)+48>>2]|0){c[u>>2]=c[(c[x>>2]|0)+48>>2];c[q>>2]=0;while(1){if((c[q>>2]|0)>=(c[(c[u>>2]|0)+4>>2]|0))break b;c[k>>2]=c[(c[c[u>>2]>>2]|0)+(c[q>>2]<<3)>>2];c[y>>2]=jr(c[s>>2]|0,c[k>>2]|0)|0;if((c[y>>2]|0)<0){l=25;break a}if(!(hr(c[m>>2]|0,(c[p>>2]|0)+1|0,c[k>>2]|0,z,A)|0)){l=25;break a}kr(c[g>>2]|0,c[m>>2]|0,c[z>>2]|0,c[A>>2]|0,(c[p>>2]|0)+1|0,c[y>>2]|0,c[r>>2]|0,(c[l>>2]|0)+36|0);c[q>>2]=(c[q>>2]|0)+1}}}while(0);c[p>>2]=(c[p>>2]|0)+1;c[x>>2]=(c[x>>2]|0)+72;c[v>>2]=(c[v>>2]|0)+72}if((l|0)==7){a=c[g>>2]|0;c[h>>2]=0;Se(a,17552,h);c[j>>2]=1;a=c[j>>2]|0;i=f;return a|0}else if((l|0)==15){Se(c[g>>2]|0,17608,h);c[j>>2]=1;a=c[j>>2]|0;i=f;return a|0}else if((l|0)==25){a=c[g>>2]|0;c[h>>2]=c[k>>2];Se(a,17664,h);c[j>>2]=1;a=c[j>>2]|0;i=f;return a|0}else if((l|0)==28){c[j>>2]=0;a=c[j>>2]|0;i=f;return a|0}return 0}function hr(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,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=i;i=i+32|0;o=j+28|0;g=j+24|0;q=j+20|0;p=j+16|0;l=j+12|0;n=j+8|0;k=j+4|0;m=j;c[g>>2]=a;c[q>>2]=b;c[p>>2]=d;c[l>>2]=e;c[n>>2]=f;c[k>>2]=0;while(1){if((c[k>>2]|0)>=(c[q>>2]|0)){h=8;break}c[m>>2]=jr(c[(c[g>>2]|0)+8+((c[k>>2]|0)*72|0)+16>>2]|0,c[p>>2]|0)|0;if((c[m>>2]|0)>=0)break;c[k>>2]=(c[k>>2]|0)+1}if((h|0)==8){c[o>>2]=0;a=c[o>>2]|0;i=j;return a|0}if(c[l>>2]|0){c[c[l>>2]>>2]=c[k>>2];c[c[n>>2]>>2]=c[m>>2]}c[o>>2]=1;a=c[o>>2]|0;i=j;return a|0}function ir(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;e=d+12|0;f=d+8|0;h=d+4|0;g=d;c[f>>2]=a;c[h>>2]=b;if(!(c[f>>2]|0)){c[e>>2]=-1;a=c[e>>2]|0;i=d;return a|0}c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[(c[f>>2]|0)+4>>2]|0)){f=8;break}a=(xc(c[(c[c[f>>2]>>2]|0)+(c[g>>2]<<3)>>2]|0,c[h>>2]|0)|0)==0;b=c[g>>2]|0;if(a){f=6;break}c[g>>2]=b+1}if((f|0)==6){c[e>>2]=b;a=c[e>>2]|0;i=d;return a|0}else if((f|0)==8){c[e>>2]=-1;a=c[e>>2]|0;i=d;return a|0}return 0}function jr(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;i=i+16|0;e=f+12|0;g=f+8|0;j=f+4|0;h=f;c[g>>2]=a;c[j>>2]=d;c[h>>2]=0;while(1){if((c[h>>2]|0)>=(b[(c[g>>2]|0)+38>>1]|0)){g=6;break}a=(xc(c[(c[(c[g>>2]|0)+4>>2]|0)+((c[h>>2]|0)*24|0)>>2]|0,c[j>>2]|0)|0)==0;d=c[h>>2]|0;if(a){g=4;break}c[h>>2]=d+1}if((g|0)==4){c[e>>2]=d;a=c[e>>2]|0;i=f;return a|0}else if((g|0)==6){c[e>>2]=-1;a=c[e>>2]|0;i=f;return a|0}return 0}function kr(a,d,e,f,g,h,j,k){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,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=d;d=c[k>>2]|0;if(!(c[e>>2]|0)){c[f>>2]=d;a=c[f>>2]|0;i=j;return a|0}b=c[e>>2]|0;if(!d){c[f>>2]=b;a=c[f>>2]|0;i=j;return a|0}if((nr(b)|0)==0?(nr(c[k>>2]|0)|0)==0:0){c[h>>2]=or(c[g>>2]|0,72,0,0)|0;pr(c[g>>2]|0,c[h>>2]|0,c[e>>2]|0,c[k>>2]|0);c[f>>2]=c[h>>2];a=c[f>>2]|0;i=j;return a|0}wn(c[g>>2]|0,c[e>>2]|0);wn(c[g>>2]|0,c[k>>2]|0);c[f>>2]=or(c[g>>2]|0,132,10152,0)|0;a=c[f>>2]|0;i=j;return a|0}function nr(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;b=d+8|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=0;do if(!(c[(c[f>>2]|0)+4>>2]&1))if(yq(c[f>>2]|0,e)|0){c[b>>2]=(c[e>>2]|0)==0&1;break}else{c[b>>2]=0;break}else c[b>>2]=0;while(0);i=d;return c[b>>2]|0}function or(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=i;i=i+32|0;q=j+28|0;p=j+24|0;l=j+20|0;n=j+16|0;o=j+12|0;h=j+8|0;k=j+4|0;m=j;c[q>>2]=d;c[p>>2]=e;c[l>>2]=f;c[n>>2]=g;c[h>>2]=0;c[k>>2]=0;do if(c[l>>2]|0){if(((c[p>>2]|0)==132?(c[c[l>>2]>>2]|0)!=0:0)?(Ag(c[c[l>>2]>>2]|0,k)|0)!=0:0)break;c[h>>2]=(c[(c[l>>2]|0)+4>>2]|0)+1}while(0);c[o>>2]=se(c[q>>2]|0,48+(c[h>>2]|0)|0,0)|0;if(!(c[o>>2]|0)){d=c[o>>2]|0;i=j;return d|0}a[c[o>>2]>>0]=c[p>>2];b[(c[o>>2]|0)+34>>1]=-1;do if(c[l>>2]|0){g=c[o>>2]|0;if(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a=(c[d>>2]|0)+20|0;if(c[(c[d>>2]|0)+4>>2]&2048)sr(c[a>>2]|0,e);else tr(c[a>>2]|0,e);c[(c[d>>2]|0)+24>>2]=(c[e>>2]|0)+1;i=b;return}function rr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[e>>2]|0)){i=d;return}if((c[(c[e>>2]|0)+24>>2]|0)<=(c[c[f>>2]>>2]|0)){i=d;return}c[c[f>>2]>>2]=c[(c[e>>2]|0)+24>>2];i=d;return}function sr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[e>>2]|0)){i=d;return}rr(c[(c[e>>2]|0)+36>>2]|0,c[f>>2]|0);rr(c[(c[e>>2]|0)+44>>2]|0,c[f>>2]|0);rr(c[(c[e>>2]|0)+60>>2]|0,c[f>>2]|0);rr(c[(c[e>>2]|0)+64>>2]|0,c[f>>2]|0);tr(c[c[e>>2]>>2]|0,c[f>>2]|0);tr(c[(c[e>>2]|0)+40>>2]|0,c[f>>2]|0);tr(c[(c[e>>2]|0)+48>>2]|0,c[f>>2]|0);sr(c[(c[e>>2]|0)+52>>2]|0,c[f>>2]|0);i=d;return}function tr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;e=d;c[f>>2]=a;c[g>>2]=b;if(!(c[f>>2]|0)){i=d;return}c[e>>2]=0;while(1){if((c[e>>2]|0)>=(c[c[f>>2]>>2]|0))break;rr(c[(c[(c[f>>2]|0)+4>>2]|0)+((c[e>>2]|0)*20|0)>>2]|0,c[g>>2]|0);c[e>>2]=(c[e>>2]|0)+1}i=d;return}function ur(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;n=g+20|0;l=g+16|0;m=g+12|0;j=g+8|0;h=g+4|0;k=g;c[n>>2]=a;c[l>>2]=d;c[m>>2]=e;c[j>>2]=f;c[h>>2]=or(c[n>>2]|0,154,0,0)|0;if(!(c[h>>2]|0)){n=c[h>>2]|0;i=g;return n|0}c[k>>2]=(c[l>>2]|0)+8+((c[m>>2]|0)*72|0);c[(c[h>>2]|0)+44>>2]=c[(c[k>>2]|0)+16>>2];c[(c[h>>2]|0)+28>>2]=c[(c[k>>2]|0)+40>>2];if((b[(c[(c[h>>2]|0)+44>>2]|0)+36>>1]|0)==(c[j>>2]|0))b[(c[h>>2]|0)+32>>1]=-1;else{b[(c[h>>2]|0)+32>>1]=c[j>>2];d=$E(1,0,((c[j>>2]|0)>=64?63:c[j>>2]|0)|0)|0;n=(c[k>>2]|0)+56|0;e=n;a=c[e+4>>2]|D;c[n>>2]=c[e>>2]|d;c[n+4>>2]=a}n=(c[h>>2]|0)+4|0;c[n>>2]=c[n>>2]|4;n=c[h>>2]|0;i=g;return n|0}function vr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;j=f+24|0;l=f+20|0;m=f+16|0;k=f+12|0;e=f+8|0;h=f+4|0;g=f;c[l>>2]=a;c[m>>2]=b;c[k>>2]=d;a:do if((c[(c[m>>2]|0)+4>>2]|0)==0?(a=c[(c[m>>2]|0)+8>>2]|0,c[e>>2]=a,(a|0)!=0):0){c[h>>2]=c[l>>2];b:while(1){if(!(c[h>>2]|0))break a;c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[c[h>>2]>>2]|0))break;if(!(xc(c[e>>2]|0,c[(c[h>>2]|0)+8+(c[g>>2]<<4)>>2]|0)|0))break b;c[g>>2]=(c[g>>2]|0)+1}c[h>>2]=c[(c[h>>2]|0)+4>>2]}c[c[k>>2]>>2]=c[h>>2];c[j>>2]=(c[h>>2]|0)+8+(c[g>>2]<<4);a=c[j>>2]|0;i=f;return a|0}while(0);c[j>>2]=0;a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>2]=tb[c[G>>2]&1](c[m>>2]|0,c[(c[B>>2]|0)+8>>2]|0,c[H>>2]|0,c[I>>2]|0,(c[q>>2]|0)+8|0,s)|0;c[(c[m>>2]|0)+324>>2]=c[F>>2];if((c[n>>2]|0)==7)a[(c[m>>2]|0)+64>>0]=1;a:do if(!(c[n>>2]|0)){if(c[(c[q>>2]|0)+8>>2]|0){e=c[(c[q>>2]|0)+8>>2]|0;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[c[(c[q>>2]|0)+8>>2]>>2]=c[c[B>>2]>>2];c[(c[q>>2]|0)+12>>2]=1;if(c[C+4>>2]|0){c[D>>2]=18e3;f=c[m>>2]|0;e=c[D>>2]|0;c[o>>2]=c[c[u>>2]>>2];e=Te(f,e,o)|0;c[c[p>>2]>>2]=e;Nk(c[q>>2]|0);c[n>>2]=1;break}c[(c[q>>2]|0)+24>>2]=c[(c[u>>2]|0)+60>>2];c[(c[u>>2]|0)+60>>2]=c[q>>2];c[t>>2]=0;while(1){if((c[t>>2]|0)>=(b[(c[u>>2]|0)+38>>1]|0))break a;c[v>>2]=c[(c[(c[u>>2]|0)+4>>2]|0)+((c[t>>2]|0)*24|0)+12>>2];c[w>>2]=0;if(c[v>>2]|0){c[z>>2]=Mb(c[v>>2]|0)|0;if(!(Lb(18048,c[v>>2]|0,6)|0)){if((a[(c[v>>2]|0)+6>>0]|0)!=0?(a[(c[v>>2]|0)+6>>0]|0)!=32:0)A=21}else A=21;b:do if((A|0)==21){A=0;c[w>>2]=0;while(1){if((c[w>>2]|0)>=(c[z>>2]|0))break b;if(!(Lb(18056,(c[v>>2]|0)+(c[w>>2]|0)|0,7)|0)){if(!(a[(c[v>>2]|0)+((c[w>>2]|0)+7)>>0]|0))break;if((a[(c[v>>2]|0)+((c[w>>2]|0)+7)>>0]|0)==32)break}c[w>>2]=(c[w>>2]|0)+1}c[w>>2]=(c[w>>2]|0)+1}while(0);if((c[w>>2]|0)<(c[z>>2]|0)){c[x>>2]=6+((a[(c[v>>2]|0)+((c[w>>2]|0)+6)>>0]|0)!=0?1:0);c[y>>2]=c[w>>2];while(1){if(((c[y>>2]|0)+(c[x>>2]|0)|0)>(c[z>>2]|0))break;a[(c[v>>2]|0)+(c[y>>2]|0)>>0]=a[(c[v>>2]|0)+((c[y>>2]|0)+(c[x>>2]|0))>>0]|0;c[y>>2]=(c[y>>2]|0)+1}if((c[w>>2]|0)>0?(a[(c[v>>2]|0)+(c[w>>2]|0)>>0]|0)==0:0)a[(c[v>>2]|0)+((c[w>>2]|0)-1)>>0]=0;e=(c[(c[u>>2]|0)+4>>2]|0)+((c[t>>2]|0)*24|0)+23|0;a[e>>0]=d[e>>0]|2}}c[t>>2]=(c[t>>2]|0)+1}}}else{t=c[m>>2]|0;if(!(c[s>>2]|0)){c[o>>2]=c[l>>2];e=Te(t,17968,o)|0;c[c[p>>2]>>2]=e}else{c[o>>2]=c[s>>2];e=Te(t,1200,o)|0;c[c[p>>2]>>2]=e;hc(c[s>>2]|0)}Xb(c[m>>2]|0,c[q>>2]|0)}while(0);Xb(c[m>>2]|0,c[l>>2]|0);c[k>>2]=c[n>>2];e=c[k>>2]|0;i=r;return e|0}function Ar(b){b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;f=e+8|0;d=e+4|0;g=e;c[f>>2]=b;c[d>>2]=0;c[g>>2]=c[c[f>>2]>>2];if(!(a[(c[g>>2]|0)+145>>0]|0))c[d>>2]=_r(c[g>>2]|0,(c[f>>2]|0)+4|0)|0;if(!(c[d>>2]|0)){g=c[d>>2]|0;i=e;return g|0}c[(c[f>>2]|0)+12>>2]=c[d>>2];g=(c[f>>2]|0)+64|0;c[g>>2]=(c[g>>2]|0)+1;g=c[d>>2]|0;i=e;return g|0}function Br(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;i=i+48|0;d=f+32|0;e=f+28|0;n=f+24|0;m=f+20|0;g=f+16|0;j=f+12|0;k=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a,b,d,c[c[j>>2]>>2]|0,18160);else Fr(a,b,d,c[c[e>>2]>>2]|0,18168);Gr(c[g>>2]|0,c[e>>2]|0,c[j>>2]|0,c[h>>2]|0,(c[(c[g>>2]|0)+72>>2]|0)+1|0,c[(c[g>>2]|0)+68>>2]|0);Hr(c[g>>2]|0,c[f>>2]|0);i=k;return}function Er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;n=i;i=i+32|0;l=n;j=n+28|0;k=n+24|0;m=n+20|0;o=n+16|0;p=n+12|0;h=n+8|0;q=n+4|0;c[k>>2]=b;c[m>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=c[c[k>>2]>>2];if((c[o>>2]|0)!=0?(c[(c[o>>2]|0)+4>>2]|0)>>>0>0:0){if(a[(c[q>>2]|0)+145>>0]|0){Se(c[k>>2]|0,18112,l);b=(c[k>>2]|0)+64|0;c[b>>2]=(c[b>>2]|0)+1;c[j>>2]=-1;b=c[j>>2]|0;i=n;return b|0}c[c[p>>2]>>2]=c[o>>2];c[h>>2]=Cr(c[q>>2]|0,c[m>>2]|0)|0;if((c[h>>2]|0)<0){b=c[k>>2]|0;c[l>>2]=c[m>>2];Se(b,18136,l);b=(c[k>>2]|0)+64|0;c[b>>2]=(c[b>>2]|0)+1;c[j>>2]=-1;b=c[j>>2]|0;i=n;return b|0}}else{c[h>>2]=d[(c[q>>2]|0)+144>>0];c[c[p>>2]>>2]=c[m>>2]}c[j>>2]=c[h>>2];b=c[j>>2]|0;i=n;return b|0}function Fr(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=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;r=i;i=i+80|0;s=r;p=r+68|0;n=r+64|0;l=r+60|0;u=r+56|0;w=r+52|0;j=r+48|0;v=r+44|0;h=r+40|0;k=r+36|0;m=r+24|0;o=r+72|0;q=r+20|0;t=r+16|0;c[p>>2]=b;c[n>>2]=d;c[l>>2]=e;c[u>>2]=f;c[w>>2]=g;c[v>>2]=c[c[p>>2]>>2];c[k>>2]=dp(c[p>>2]|0)|0;if(!(c[k>>2]|0)){i=r;return}c[h>>2]=(c[(c[v>>2]|0)+16>>2]|0)+(c[n>>2]<<4);c[j>>2]=0;while(1){if((c[j>>2]|0)>=3)break;c[q>>2]=c[18368+(c[j>>2]<<3)>>2];b=sp(c[v>>2]|0,c[q>>2]|0,c[c[h>>2]>>2]|0)|0;c[t>>2]=b;do if(!b){if(c[18372+(c[j>>2]<<3)>>2]|0){b=c[p>>2]|0;e=c[q>>2]|0;d=c[18372+(c[j>>2]<<3)>>2]|0;c[s>>2]=c[c[h>>2]>>2];c[s+4>>2]=e;c[s+8>>2]=d;cp(b,18456,s);c[m+(c[j>>2]<<2)>>2]=c[(c[p>>2]|0)+388>>2];a[o+(c[j>>2]|0)>>0]=2}}else{c[m+(c[j>>2]<<2)>>2]=c[(c[t>>2]|0)+32>>2];a[o+(c[j>>2]|0)>>0]=0;Jr(c[p>>2]|0,c[n>>2]|0,c[m+(c[j>>2]<<2)>>2]|0,1,c[q>>2]|0);if(c[u>>2]|0){b=c[p>>2]|0;f=c[q>>2]|0;e=c[w>>2]|0;d=c[u>>2]|0;c[s>>2]=c[c[h>>2]>>2];c[s+4>>2]=f;c[s+8>>2]=e;c[s+12>>2]=d;cp(b,18480,s);break}else{fp(c[k>>2]|0,118,c[m+(c[j>>2]<<2)>>2]|0,c[n>>2]|0)|0;break}}while(0);c[j>>2]=(c[j>>2]|0)+1}c[j>>2]=0;while(1){if(!(c[18372+(c[j>>2]<<3)>>2]|0))break;We(c[k>>2]|0,55,(c[l>>2]|0)+(c[j>>2]|0)|0,c[m+(c[j>>2]<<2)>>2]|0,c[n>>2]|0,3)|0;Xe(c[k>>2]|0,a[o+(c[j>>2]|0)>>0]|0);c[j>>2]=(c[j>>2]|0)+1}i=r;return}function Gr(b,f,g,h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>>2]=b;c[e>>2]=dp(c[g>>2]|0)|0;if(!(c[e>>2]|0)){i=d;return}Ir(c[e>>2]|0,123,c[f>>2]|0)|0;i=d;return}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e+8|0;g=e+4|0;f=e;c[h>>2]=a;c[g>>2]=b;c[f>>2]=d;a=ip(c[h>>2]|0,c[g>>2]|0,c[f>>2]|0,0,0)|0;i=e;return a|0}function Jr(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;k=i;i=i+48|0;t=k+28|0;l=k+24|0;m=k+20|0;n=k+32|0;o=k+16|0;p=k+12|0;q=k+8|0;r=k+4|0;j=k;c[t>>2]=b;c[l>>2]=e;c[m>>2]=f;a[n>>0]=g;c[o>>2]=h;h=c[t>>2]|0;if(c[(c[t>>2]|0)+408>>2]|0)h=c[h+408>>2]|0;c[p>>2]=h;c[q>>2]=0;while(1){if((c[q>>2]|0)>=(c[(c[p>>2]|0)+396>>2]|0))break;c[j>>2]=(c[(c[p>>2]|0)+400>>2]|0)+(c[q>>2]<<4);if((c[c[j>>2]>>2]|0)==(c[l>>2]|0)?(c[(c[j>>2]|0)+4>>2]|0)==(c[m>>2]|0):0){s=7;break}c[q>>2]=(c[q>>2]|0)+1}if((s|0)==7){if(d[(c[j>>2]|0)+8>>0]|0)l=1;else l=(d[n>>0]|0|0)!=0;a[(c[j>>2]|0)+8>>0]=l&1;i=k;return}c[r>>2]=(c[(c[p>>2]|0)+396>>2]|0)+1<<4;q=c[r>>2]|0;q=Ek(c[c[p>>2]>>2]|0,c[(c[p>>2]|0)+400>>2]|0,q,((q|0)<0)<<31>>31)|0;c[(c[p>>2]|0)+400>>2]=q;q=(c[p>>2]|0)+396|0;if(c[(c[p>>2]|0)+400>>2]|0){t=c[q>>2]|0;c[q>>2]=t+1;c[j>>2]=(c[(c[p>>2]|0)+400>>2]|0)+(t<<4);c[c[j>>2]>>2]=c[l>>2];c[(c[j>>2]|0)+4>>2]=c[m>>2];a[(c[j>>2]|0)+8>>0]=a[n>>0]|0;c[(c[j>>2]|0)+12>>2]=c[o>>2];i=k;return}else{c[q>>2]=0;a[(c[c[p>>2]>>2]|0)+64>>0]=1;i=k;return}}function Kr(a,e,f,g,h){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;i=i+32|0;q=o+24|0;m=o+20|0;l=o+16|0;k=o+12|0;n=o+8|0;j=o+4|0;p=o;c[q>>2]=a;c[m>>2]=e;c[l>>2]=f;c[k>>2]=g;c[n>>2]=h;c[j>>2]=dp(c[q>>2]|0)|0;Jr(c[q>>2]|0,c[l>>2]|0,c[(c[k>>2]|0)+32>>2]|0,((c[n>>2]|0)==55?1:0)&255,c[c[k>>2]>>2]|0);if(!(d[(c[k>>2]|0)+44>>0]&32)){We(c[j>>2]|0,c[n>>2]|0,c[m>>2]|0,c[(c[k>>2]|0)+32>>2]|0,c[l>>2]|0,b[(c[k>>2]|0)+38>>1]|0)|0;i=o;return}else{c[p>>2]=Zr(c[k>>2]|0)|0;ip(c[j>>2]|0,c[n>>2]|0,c[m>>2]|0,c[(c[p>>2]|0)+44>>2]|0,c[l>>2]|0)|0;Lr(c[q>>2]|0,c[p>>2]|0);i=o;return}}function Lr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;e=d+4|0;g=d;c[f>>2]=a;c[e>>2]=b;c[g>>2]=c[(c[f>>2]|0)+8>>2];a=c[g>>2]|0;bf(a,-1,Wr(c[f>>2]|0,c[e>>2]|0)|0,-6);i=d;return}function Mr(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[b>>2]|0)+32>>2]|0}function Nr(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;f=d+8|0;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;c[a>>2]=c[d>>2];c[a+4>>2]=b;sc(24,o,18328,n)|0;o=Mb(c[m>>2]|0)|0;c[m>>2]=(c[m>>2]|0)+o;c[h>>2]=(c[h>>2]|0)+1}$d(c[f>>2]|0,c[g>>2]|0,-1,13);i=k;return}function Sr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;i=i+32|0;j=f+12|0;g=f+8|0;e=f+4|0;h=f;c[f+20>>2]=a;c[f+16>>2]=b;c[j>>2]=d;c[e>>2]=Cd(c[c[j>>2]>>2]|0)|0;c[h>>2]=Jd(c[(c[j>>2]|0)+4>>2]|0)|0;if(!(c[c[e>>2]>>2]|0)){c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[(c[e>>2]|0)+8>>2]|0))break;c[(c[(c[e>>2]|0)+20>>2]|0)+(c[g>>2]<<2)>>2]=1;c[g>>2]=(c[g>>2]|0)+1}j=c[e>>2]|0;a=c[j>>2]|0;a=a+1|0;c[j>>2]=a;i=f;return}Tr(c[e>>2]|0,c[h>>2]|0);c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[h>>2]|0))break;j=(c[(c[e>>2]|0)+20>>2]|0)+(c[g>>2]<<2)|0;c[j>>2]=(c[j>>2]|0)+1;c[g>>2]=(c[g>>2]|0)+1}c[g>>2]=c[h>>2];while(1){if((c[g>>2]|0)>=(c[(c[e>>2]|0)+8>>2]|0))break;j=(c[(c[e>>2]|0)+24>>2]|0)+(c[g>>2]<<2)|0;c[j>>2]=(c[j>>2]|0)+1;c[(c[(c[e>>2]|0)+20>>2]|0)+(c[g>>2]<<2)>>2]=1;c[g>>2]=(c[g>>2]|0)+1}j=c[e>>2]|0;a=c[j>>2]|0;a=a+1|0;c[j>>2]=a;i=f;return}function Tr(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d+4>>2]=a;c[d>>2]=b;i=d;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k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;c[(c[h>>2]|0)+12>>2]=c[j>>2];c[c[h>>2]>>2]=1;d=c[h>>2]|0;i=g;return d|0}else{a[(c[j>>2]|0)+64>>0]=1;d=c[h>>2]|0;i=g;return d|0}return 0}function Yr(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;if(c[b>>2]|0){a=c[b>>2]|0;c[a>>2]=(c[a>>2]|0)+1}i=d;return c[b>>2]|0}function Zr(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=b;c[e>>2]=c[(c[f>>2]|0)+8>>2];while(1){if(!(c[e>>2]|0)){b=5;break}if((a[(c[e>>2]|0)+55>>0]&3|0)==2){b=5;break}c[e>>2]=c[(c[e>>2]|0)+20>>2]}if((b|0)==5){i=d;return c[e>>2]|0}return 0}function _r(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0;g=i;i=i+32|0;h=g+16|0;k=g+12|0;l=g+8|0;f=g+4|0;j=g;c[h>>2]=b;c[k>>2]=d;c[j>>2]=((c[(c[h>>2]|0)+24>>2]&2|0)!=0^1)&1;c[f>>2]=0;a[(c[h>>2]|0)+145>>0]=1;c[l>>2]=0;while(1){if(c[f>>2]|0)break;if((c[l>>2]|0)>=(c[(c[h>>2]|0)+20>>2]|0))break;if(!((c[l>>2]|0)==1?1:((e[(c[(c[(c[h>>2]|0)+16>>2]|0)+(c[l>>2]<<4)+12>>2]|0)+78>>1]|0)&1|0)==1)?(c[f>>2]=$r(c[h>>2]|0,c[l>>2]|0,c[k>>2]|0)|0,(c[f>>2]|0)!=0):0)as(c[h>>2]|0,c[l>>2]|0);c[l>>2]=(c[l>>2]|0)+1}if(((c[f>>2]|0)==0?((e[(c[(c[(c[h>>2]|0)+16>>2]|0)+28>>2]|0)+78>>1]|0)&1|0)!=1:0)?(c[f>>2]=$r(c[h>>2]|0,1,c[k>>2]|0)|0,(c[f>>2]|0)!=0):0)as(c[h>>2]|0,1);a[(c[h>>2]|0)+145>>0]=0;if(!((c[f>>2]|0)==0&(c[j>>2]|0)!=0)){b=c[f>>2]|0;i=g;return b|0}bs(c[h>>2]|0);b=c[f>>2]|0;i=g;return b|0}function $r(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;r=i;i=i+128|0;j=r;v=r+120|0;l=r+116|0;m=r+112|0;q=r+108|0;n=r+104|0;A=r+100|0;x=r+96|0;B=r+92|0;o=r+88|0;C=r+72|0;w=r+48|0;k=r+32|0;D=r+24|0;s=r+20|0;p=r+16|0;y=r+124|0;t=r+12|0;u=r+8|0;c[l>>2]=f;c[m>>2]=g;c[q>>2]=h;c[p>>2]=0;if((c[m>>2]|0)==1)c[D>>2]=18616;else c[D>>2]=18512;c[s>>2]=(c[m>>2]|0)==1?14904:14928;c[C>>2]=c[s>>2];c[C+4>>2]=18736;c[C+8>>2]=c[D>>2];c[C+12>>2]=0;c[k>>2]=c[l>>2];c[k+8>>2]=c[m>>2];c[k+12>>2]=0;c[k+4>>2]=c[q>>2];cs(k,3,C,0)|0;if(!(c[k+12>>2]|0)){c[B>>2]=sp(c[l>>2]|0,c[s>>2]|0,c[(c[(c[l>>2]|0)+16>>2]|0)+(c[m>>2]<<4)>>2]|0)|0;if(c[B>>2]|0){f=(c[B>>2]|0)+44|0;a[f>>0]=d[f>>0]|1}c[o>>2]=(c[(c[l>>2]|0)+16>>2]|0)+(c[m>>2]<<4);if(!(c[(c[o>>2]|0)+4>>2]|0)){if((c[m>>2]|0)==1){f=(c[(c[(c[l>>2]|0)+16>>2]|0)+28>>2]|0)+78|0;b[f>>1]=e[f>>1]|1}c[v>>2]=0;f=c[v>>2]|0;i=r;return f|0}Pc(c[(c[o>>2]|0)+4>>2]|0);do if(!(Tc(c[(c[o>>2]|0)+4>>2]|0)|0)){c[n>>2]=Rc(c[(c[o>>2]|0)+4>>2]|0,0)|0;if(c[n>>2]|0){g=c[q>>2]|0;f=c[l>>2]|0;c[j>>2]=ge(c[n>>2]|0)|0;pn(g,f,1200,j);break}else{c[p>>2]=1;z=16;break}}else z=16;while(0);a:do if((z|0)==16){c[A>>2]=0;while(1){if((c[A>>2]|0)>=5)break;Sc(c[(c[o>>2]|0)+4>>2]|0,(c[A>>2]|0)+1|0,w+(c[A>>2]<<2)|0);c[A>>2]=(c[A>>2]|0)+1}c[c[(c[o>>2]|0)+12>>2]>>2]=c[w>>2];z=c[m>>2]|0;do if(c[w+16>>2]|0){A=c[w+16>>2]|0;if(!z){f=A&3;a[y>>0]=f;a[y>>0]=(d[y>>0]|0)==0?1:f;a[(c[(c[(c[l>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]=a[y>>0]|0;break}if((A|0)!=(d[(c[(c[(c[l>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]|0)){pn(c[q>>2]|0,c[l>>2]|0,18744,j);c[n>>2]=1;break a}}else{f=(c[(c[(c[l>>2]|0)+16>>2]|0)+(z<<4)+12>>2]|0)+78|0;b[f>>1]=e[f>>1]|4}while(0);a[(c[(c[o>>2]|0)+12>>2]|0)+77>>0]=a[(c[(c[(c[l>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]|0;if(!(c[(c[(c[o>>2]|0)+12>>2]|0)+80>>2]|0)){f=ds(c[w+8>>2]|0)|0;c[x>>2]=f;c[x>>2]=(c[x>>2]|0)==0?2e3:f;c[(c[(c[o>>2]|0)+12>>2]|0)+80>>2]=c[x>>2];es(c[(c[o>>2]|0)+4>>2]|0,c[(c[(c[o>>2]|0)+12>>2]|0)+80>>2]|0)|0}a[(c[(c[o>>2]|0)+12>>2]|0)+76>>0]=c[w+4>>2];if(!(d[(c[(c[o>>2]|0)+12>>2]|0)+76>>0]|0))a[(c[(c[o>>2]|0)+12>>2]|0)+76>>0]=1;if((d[(c[(c[o>>2]|0)+12>>2]|0)+76>>0]|0)>4){pn(c[q>>2]|0,c[l>>2]|0,18816,j);c[n>>2]=1;break}if((c[m>>2]|0)==0?(c[w+4>>2]|0)>=4:0){f=(c[l>>2]|0)+24|0;c[f>>2]=c[f>>2]&-32769}f=c[l>>2]|0;g=c[s>>2]|0;c[j>>2]=c[(c[(c[l>>2]|0)+16>>2]|0)+(c[m>>2]<<4)>>2];c[j+4>>2]=g;c[t>>2]=Te(f,18840,j)|0;c[u>>2]=c[(c[l>>2]|0)+284>>2];c[(c[l>>2]|0)+284>>2]=0;c[n>>2]=kf(c[l>>2]|0,c[t>>2]|0,6,k,0)|0;c[(c[l>>2]|0)+284>>2]=c[u>>2];if(!(c[n>>2]|0))c[n>>2]=c[k+12>>2];Xb(c[l>>2]|0,c[t>>2]|0);if(!(c[n>>2]|0))fs(c[l>>2]|0,c[m>>2]|0)|0;if(a[(c[l>>2]|0)+64>>0]|0){c[n>>2]=7;cd(c[l>>2]|0)}if((c[n>>2]|0)!=0?(c[(c[l>>2]|0)+24>>2]&65536|0)==0:0)break;f=(c[(c[(c[l>>2]|0)+16>>2]|0)+(c[m>>2]<<4)+12>>2]|0)+78|0;b[f>>1]=e[f>>1]|1;c[n>>2]=0}while(0);if(c[p>>2]|0)gs(c[(c[o>>2]|0)+4>>2]|0)|0}else c[n>>2]=c[k+12>>2];if((c[n>>2]|0)==7|(c[n>>2]|0)==3082)a[(c[l>>2]|0)+64>>0]=1;c[v>>2]=c[n>>2];f=c[v>>2]|0;i=r;return f|0}function as(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;e=d+8|0;g=d+4|0;f=d;c[e>>2]=a;c[g>>2]=b;c[f>>2]=(c[(c[e>>2]|0)+16>>2]|0)+(c[g>>2]<<4);wh(c[(c[f>>2]|0)+12>>2]|0);if((c[g>>2]|0)==1){i=d;return}c[f>>2]=(c[(c[e>>2]|0)+16>>2]|0)+16;wh(c[(c[f>>2]|0)+12>>2]|0);i=d;return}function bs(a){a=a|0;var b=0,d=0;b=i;i=i+16|0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]|0)|0;break}if(!(c[c[l>>2]>>2]|0)){ks(c[m>>2]|0,0,0);break}c[r>>2]=Op(c[j>>2]|0,c[c[l>>2]>>2]|0,c[(c[(c[j>>2]|0)+16>>2]|0)+(c[q>>2]<<4)>>2]|0)|0;if((c[r>>2]|0)!=0?(Ag(c[(c[l>>2]|0)+4>>2]|0,(c[r>>2]|0)+44|0)|0)==0:0)ks(c[m>>2]|0,c[c[l>>2]>>2]|0,18992)}else ks(c[m>>2]|0,c[c[l>>2]>>2]|0,0);while(0);c[k>>2]=0;s=c[k>>2]|0;i=o;return s|0}function ds(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;b=d+4|0;e=d;c[e>>2]=a;a=c[e>>2]|0;do if((c[e>>2]|0)<0)if((a|0)==-2147483648){c[b>>2]=2147483647;break}else{c[b>>2]=0-(c[e>>2]|0);break}else c[b>>2]=a;while(0);i=d;return c[b>>2]|0}function es(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+8|0;e=d+4|0;f=d;c[g>>2]=a;c[e>>2]=b;c[f>>2]=c[(c[g>>2]|0)+4>>2];Pc(c[g>>2]|0);Jh(c[c[f>>2]>>2]|0,c[e>>2]|0);i=d;return 0}function fs(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+48|0;l=f;k=f+40|0;h=f+36|0;m=f+32|0;e=f+24|0;n=f+16|0;j=f+12|0;g=f+8|0;o=f+4|0;c[h>>2]=b;c[m>>2]=d;c[n>>2]=c[(c[(c[(c[h>>2]|0)+16>>2]|0)+(c[m>>2]<<4)+12>>2]|0)+32>>2];while(1){if(!(c[n>>2]|0))break;c[o>>2]=c[(c[n>>2]|0)+8>>2];hs(c[o>>2]|0);c[n>>2]=c[c[n>>2]>>2]}c[e>>2]=c[h>>2];c[e+4>>2]=c[(c[(c[h>>2]|0)+16>>2]|0)+(c[m>>2]<<4)>>2];if(!(sp(c[h>>2]|0,18392,c[e+4>>2]|0)|0)){c[k>>2]=1;b=c[k>>2]|0;i=f;return b|0}b=c[h>>2]|0;c[l>>2]=c[e+4>>2];c[j>>2]=Te(b,18896,l)|0;if(!(c[j>>2]|0))c[g>>2]=7;else{c[g>>2]=kf(c[h>>2]|0,c[j>>2]|0,7,e,0)|0;Xb(c[h>>2]|0,c[j>>2]|0)}if((c[g>>2]|0)==7)a[(c[h>>2]|0)+64>>0]=1;c[k>>2]=c[g>>2];b=c[k>>2]|0;i=f;return b|0}function gs(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;Pc(c[e>>2]|0);c[d>>2]=nd(c[e>>2]|0,0)|0;if(c[d>>2]|0){e=c[d>>2]|0;i=b;return e|0}c[d>>2]=md(c[e>>2]|0,0)|0;e=c[d>>2]|0;i=b;return e|0}function hs(a){a=a|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+32|0;g=f+12|0;k=f+16|0;j=f+8|0;l=f+4|0;h=f;c[g>>2]=a;b[k+0>>1]=b[9488]|0;b[k+2>>1]=b[9489]|0;b[k+4>>1]=b[9490]|0;b[k+6>>1]=b[9491]|0;b[k+8>>1]=b[9492]|0;c[j>>2]=c[(c[g>>2]|0)+8>>2];if(5<(e[(c[g>>2]|0)+50>>1]|0))a=5;else a=e[(c[g>>2]|0)+50>>1]|0;c[l>>2]=a;b[c[j>>2]>>1]=b[(c[(c[g>>2]|0)+12>>2]|0)+28>>1]|0;if((b[c[j>>2]>>1]|0)<33)b[c[j>>2]>>1]=33;dF((c[j>>2]|0)+2|0,k|0,c[l>>2]<<1|0)|0;c[h>>2]=(c[l>>2]|0)+1;while(1){if((c[h>>2]|0)>(e[(c[g>>2]|0)+50>>1]|0))break;b[(c[j>>2]|0)+(c[h>>2]<<1)>>1]=23;c[h>>2]=(c[h>>2]|0)+1}if(!(d[(c[g>>2]|0)+54>>0]|0)){i=f;return}b[(c[j>>2]|0)+(e[(c[g>>2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>>2]=0;t=c[k>>2]|0;i=p;return t|0}function js(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;o=i;i=i+48|0;r=o+32|0;q=o+28|0;n=o+20|0;l=o+16|0;k=o+12|0;p=o+8|0;j=o+4|0;m=o;c[r>>2]=d;c[q>>2]=e;c[o+24>>2]=f;c[n>>2]=g;c[l>>2]=h;c[k>>2]=c[r>>2];c[j>>2]=0;while(1){if(!(a[c[k>>2]>>0]|0))break;if((c[j>>2]|0)>=(c[q>>2]|0))break;c[m>>2]=0;while(1){r=a[c[k>>2]>>0]|0;c[p>>2]=r;if(!((r|0)>=48&(c[p>>2]|0)<=57))break;c[m>>2]=((c[m>>2]|0)*10|0)+(c[p>>2]|0)-48;c[k>>2]=(c[k>>2]|0)+1}r=dq(c[m>>2]|0,0)|0;b[(c[n>>2]|0)+(c[j>>2]<<1)>>1]=r;if((a[c[k>>2]>>0]|0)==32)c[k>>2]=(c[k>>2]|0)+1;c[j>>2]=(c[j>>2]|0)+1}a:while(1){if(!(a[c[k>>2]>>0]|0))break;if(hf(18944,c[k>>2]|0)|0){if(!(hf(18960,c[k>>2]|0)|0)){r=zg((c[k>>2]|0)+3|0)|0;r=dq(r,((r|0)<0)<<31>>31)|0;b[(c[l>>2]|0)+48>>1]=r}}else{r=(c[l>>2]|0)+55|0;a[r>>0]=a[r>>0]&-5|4}while(1){if(!(a[c[k>>2]>>0]|0))break;if((a[c[k>>2]>>0]|0)==32)break;c[k>>2]=(c[k>>2]|0)+1}while(1){if((a[c[k>>2]>>0]|0)!=32)continue a;c[k>>2]=(c[k>>2]|0)+1}}i=o;return}function ks(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;h=i;i=i+32|0;l=h;g=h+20|0;m=h+16|0;k=h+12|0;j=h+8|0;c[g>>2]=b;c[m>>2]=e;c[k>>2]=f;c[j>>2]=c[c[g>>2]>>2];if((a[(c[j>>2]|0)+64>>0]|0)==0?(c[(c[j>>2]|0)+24>>2]&65536|0)==0:0){if(!(c[m>>2]|0))c[m>>2]=19016;e=c[(c[g>>2]|0)+4>>2]|0;b=c[j>>2]|0;c[l>>2]=c[m>>2];pn(e,b,19024,l);if(c[k>>2]|0){e=c[j>>2]|0;b=c[c[(c[g>>2]|0)+4>>2]>>2]|0;m=c[k>>2]|0;c[l>>2]=c[c[(c[g>>2]|0)+4>>2]>>2];c[l+4>>2]=m;b=ls(e,b,19056,l)|0;c[c[(c[g>>2]|0)+4>>2]>>2]=b}}if(d[(c[j>>2]|0)+64>>0]|0){e=7;b=c[g>>2]|0;b=b+12|0;c[b>>2]=e;i=h;return}e=kj(103217)|0;b=c[g>>2]|0;b=b+12|0;c[b>>2]=e;i=h;return}function ls(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;g=i;i=i+48|0;j=g+32|0;h=g+28|0;l=g+24|0;k=g+8|0;f=g;c[j>>2]=a;c[h>>2]=b;c[l>>2]=d;c[k>>2]=e;c[f>>2]=yn(c[j>>2]|0,c[l>>2]|0,k)|0;Xb(c[j>>2]|0,c[h>>2]|0);i=g;return c[f>>2]|0}function ms(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;i=i+32|0;k=d+24|0;l=d+20|0;e=d+16|0;g=d+12|0;h=d+8|0;f=d+4|0;j=d;c[k>>2]=a;c[l>>2]=b;c[h>>2]=c[c[k>>2]>>2];c[g>>2]=0;c[e>>2]=c[(c[h>>2]|0)+16>>2];while(1){if((c[g>>2]|0)>=(c[(c[h>>2]|0)+20>>2]|0))break;c[f>>2]=c[(c[(c[e>>2]|0)+12>>2]|0)+16>>2];while(1){if(!(c[f>>2]|0))break;c[j>>2]=c[(c[f>>2]|0)+8>>2];ns(c[k>>2]|0,c[j>>2]|0,c[l>>2]|0);c[f>>2]=c[c[f>>2]>>2]}c[g>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[(c[t>>2]|0)+36>>2]|0)==0:0)break;c[t>>2]=0}while(0);c[r>>2]=0;while(1){if((c[r>>2]|0)>=(c[u>>2]|0))break;if(!((c[t>>2]|0)!=0?(b[(c[(c[t>>2]|0)+4>>2]|0)+(c[r>>2]<<1)>>1]|0)==(b[(c[(c[q>>2]|0)+4>>2]|0)+(c[r>>2]<<1)>>1]|0):0)){zs(c[s>>2]|0,c[o>>2]|0,c[p>>2]|0,b[(c[(c[q>>2]|0)+4>>2]|0)+(c[r>>2]<<1)>>1]|0,(c[m>>2]|0)+(c[r>>2]|0)|0);As(c[s>>2]|0,39)|0}c[r>>2]=(c[r>>2]|0)+1}if(!(c[w>>2]|0)){f=c[n>>2]|0;e=c[m>>2]|0;a=c[u>>2]|0;Bs(f,e,a);a=c[m>>2]|0;i=x;return a|0}ip(c[s>>2]|0,49,c[m>>2]|0,c[u>>2]|0,c[w>>2]|0)|0;f=c[n>>2]|0;e=c[m>>2]|0;a=c[u>>2]|0;Bs(f,e,a);a=c[m>>2]|0;i=x;return a|0}function qs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){i=d;return}Pr(c[(c[e>>2]|0)+8>>2]|0,c[f>>2]|0);us(c[e>>2]|0);i=d;return}function rs(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;i=i+64|0;k=h+52|0;m=h+48|0;l=h+44|0;j=h+40|0;p=h+36|0;n=h+8|0;o=h+4|0;q=h;c[k>>2]=d;c[m>>2]=f;c[l>>2]=g;c[o>>2]=c[(c[l>>2]|0)+12>>2];nc(n,0,0,200);c[n>>2]=c[c[k>>2]>>2];c[p>>2]=0;while(1){if((c[p>>2]|0)>=(e[(c[l>>2]|0)+50>>1]|0))break;c[q>>2]=c[(c[(c[o>>2]|0)+4>>2]|0)+((b[(c[(c[l>>2]|0)+4>>2]|0)+(c[p>>2]<<1)>>1]|0)*24|0)>>2];if(c[p>>2]|0)Vm(n,19112,2);ss(n,c[c[o>>2]>>2]|0);Vm(n,19120,1);ss(n,c[q>>2]|0);c[p>>2]=(c[p>>2]|0)+1}c[j>>2]=pc(n)|0;ts(c[k>>2]|0,(a[(c[l>>2]|0)+55>>0]&3|0)==2?1555:2067,c[m>>2]|0,c[j>>2]|0,-1,2);i=h;return}function ss(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;b=c[f>>2]|0;a=c[e>>2]|0;Vm(b,a,Mb(c[e>>2]|0)|0);i=d;return}function ts(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;p=i;i=i+32|0;q=p+16|0;m=p+12|0;n=p+8|0;o=p+4|0;j=p+21|0;l=p+20|0;k=p;c[q>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;a[j>>0]=g;a[l>>0]=h;c[k>>2]=dp(c[q>>2]|0)|0;if((c[n>>2]|0)==2)Sp(c[q>>2]|0);hp(c[k>>2]|0,24,c[m>>2]|0,c[n>>2]|0,0,c[o>>2]|0,a[j>>0]|0)|0;if(!(a[l>>0]|0)){i=p;return}Xe(c[k>>2]|0,a[l>>0]|0);i=p;return}function us(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;e=b+8|0;f=b+4|0;d=b;c[e>>2]=a;a=(c[e>>2]|0)+100|0;c[a>>2]=(c[a>>2]|0)+ -1;c[f>>2]=0;c[d>>2]=(c[e>>2]|0)+116;while(1){if((c[f>>2]|0)>=10)break;if((c[(c[d>>2]|0)+12>>2]|0)!=0?(c[(c[d>>2]|0)+8>>2]|0)>(c[(c[e>>2]|0)+100>>2]|0):0){vs(c[e>>2]|0,c[d>>2]|0);c[(c[d>>2]|0)+12>>2]=0}c[f>>2]=(c[f>>2]|0)+1;c[d>>2]=(c[d>>2]|0)+20}i=b;return}function vs(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;h=f+4|0;g=f;c[h>>2]=b;c[g>>2]=e;if(!(a[(c[g>>2]|0)+6>>0]|0)){i=f;return}if((d[(c[h>>2]|0)+19>>0]|0)<8){e=c[(c[g>>2]|0)+12>>2]|0;j=(c[h>>2]|0)+19|0;b=a[j>>0]|0;a[j>>0]=b+1<<24>>24;c[(c[h>>2]|0)+24+((b&255)<<2)>>2]=e}a[(c[g>>2]|0)+6>>0]=0;i=f;return}function ws(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=(c[d>>2]|0)+100|0;c[a>>2]=(c[a>>2]|0)+1;i=b;return}function xs(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;o=i;i=i+48|0;h=o+44|0;l=o+40|0;m=o+36|0;n=o+32|0;g=o+28|0;s=o+24|0;j=o+20|0;k=o+16|0;q=o+12|0;r=o+8|0;p=o+4|0;t=o;c[h>>2]=a;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;c[g>>2]=c[(c[h>>2]|0)+8>>2];c[s>>2]=0;c[j>>2]=0;c[k>>2]=0;if((c[g>>2]|0)==0|(c[l>>2]|0)==0){i=o;return}c[s>>2]=((d[c[l>>2]>>0]|0)+0^1)-0;a:do switch(d[c[l>>2]>>0]|0|0){case 19:{Gs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,c[m>>2]|0,c[n>>2]|0);break};case 71:{c[p>>2]=Nr(c[g>>2]|0)|0;Gs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,c[p>>2]|0,c[n>>2]^16);ws(c[h>>2]|0);xs(c[h>>2]|0,c[(c[l>>2]|0)+16>>2]|0,c[m>>2]|0,c[n>>2]|0);Pr(c[g>>2]|0,c[p>>2]|0);us(c[h>>2]|0);break};case 79:case 78:case 83:case 80:case 81:case 82:{c[q>>2]=Hs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,j)|0;c[r>>2]=Hs(c[h>>2]|0,c[(c[l>>2]|0)+16>>2]|0,k)|0;Is(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,c[(c[l>>2]|0)+16>>2]|0,c[s>>2]|0,c[q>>2]|0,c[r>>2]|0,c[m>>2]|0,c[n>>2]|0)|0;break};case 74:{Js(c[h>>2]|0,c[l>>2]|0,c[m>>2]|0,0,c[n>>2]|0);break};case 72:{xs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,c[m>>2]|0,c[n>>2]|0);ws(c[h>>2]|0);xs(c[h>>2]|0,c[(c[l>>2]|0)+16>>2]|0,c[m>>2]|0,c[n>>2]|0);us(c[h>>2]|0);break};case 77:case 76:{c[q>>2]=Hs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,j)|0;fp(c[g>>2]|0,c[s>>2]|0,c[q>>2]|0,c[m>>2]|0)|0;break};case 75:if(c[n>>2]|0){Ks(c[h>>2]|0,c[l>>2]|0,c[m>>2]|0,c[m>>2]|0);break a}else{c[t>>2]=Nr(c[g>>2]|0)|0;Ks(c[h>>2]|0,c[l>>2]|0,c[m>>2]|0,c[t>>2]|0);Pr(c[g>>2]|0,c[t>>2]|0);break a};case 148:case 73:{c[q>>2]=Hs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,j)|0;c[r>>2]=Hs(c[h>>2]|0,c[(c[l>>2]|0)+16>>2]|0,k)|0;c[s>>2]=(d[c[l>>2]>>0]|0|0)==73?78:79;Is(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,c[(c[l>>2]|0)+16>>2]|0,c[s>>2]|0,c[q>>2]|0,c[r>>2]|0,c[m>>2]|0,128)|0;break};default:{if(nr(c[l>>2]|0)|0){fp(c[g>>2]|0,16,0,c[m>>2]|0)|0;break a}if(!(Ls(c[l>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p>>2]|0,c[n>>2]|0)|0;if((c[m>>2]|0)<0){i=o;return}Es(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0);i=o;return}function As(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;g=f+4|0;h=f;j=f+8|0;c[h>>2]=b;a[j>>0]=e;if(((c[(c[h>>2]|0)+32>>2]|0)-1|0)>(c[(c[(c[h>>2]|0)+24>>2]|0)+88>>2]|0)?(d[(c[(c[h>>2]|0)+4>>2]|0)+(((c[(c[h>>2]|0)+32>>2]|0)-1|0)*20|0)>>0]|0|0)==(d[j>>0]|0|0):0){cf(c[h>>2]|0,(c[(c[h>>2]|0)+32>>2]|0)-1|0);c[g>>2]=1;j=c[g>>2]|0;i=f;return j|0}c[g>>2]=0;j=c[g>>2]|0;i=f;return j|0}function Bs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;g=e+8|0;h=e+4|0;f=e;c[g>>2]=a;c[h>>2]=b;c[f>>2]=d;Cs(c[g>>2]|0,c[h>>2]|0,c[f>>2]|0);if((c[f>>2]|0)<=(c[(c[g>>2]|0)+56>>2]|0)){i=e;return}c[(c[g>>2]|0)+56>>2]=c[f>>2];c[(c[g>>2]|0)+60>>2]=c[h>>2];i=e;return}function Cs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;i=i+32|0;f=e+24|0;j=e+20|0;m=e+16|0;l=e+12|0;k=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[j>>2]=b;c[m>>2]=d;c[k>>2]=(c[j>>2]|0)+(c[m>>2]|0)-1;c[l>>2]=0;c[g>>2]=(c[f>>2]|0)+116;while(1){if((c[l>>2]|0)>=10)break;c[h>>2]=c[(c[g>>2]|0)+12>>2];if((c[h>>2]|0)>=(c[j>>2]|0)?(c[h>>2]|0)<=(c[k>>2]|0):0){vs(c[f>>2]|0,c[g>>2]|0);c[(c[g>>2]|0)+12>>2]=0}c[l>>2]=(c[l>>2]|0)+1;c[g>>2]=(c[g>>2]|0)+20}i=e;return}function Ds(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0;g=i;i=i+16|0;f=g+10|0;k=g+4|0;j=g+8|0;h=g;c[k>>2]=a;b[j>>1]=d;c[h>>2]=0;while(1){if((c[h>>2]|0)>=(e[(c[k>>2]|0)+52>>1]|0)){h=6;break}d=c[h>>2]|0;if((b[j>>1]|0)==(b[(c[(c[k>>2]|0)+4>>2]|0)+(c[h>>2]<<1)>>1]|0)){h=4;break}c[h>>2]=d+1}if((h|0)==4){b[f>>1]=d;a=b[f>>1]|0;i=g;return a|0}else if((h|0)==6){b[f>>1]=-1;a=b[f>>1]|0;i=g;return a|0}return 0}function Es(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;m=i;i=i+32|0;h=m+20|0;k=m+16|0;l=m+12|0;j=m+8|0;g=m+4|0;n=m+24|0;o=m;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;c[j>>2]=f;if(c[(c[k>>2]|0)+12>>2]|0){i=m;return}c[g>>2]=0;a[n>>0]=a[(c[(c[(Fs(c[h>>2]|0)|0)+16>>2]|0)+12>>2]|0)+77>>0]|0;c[o>>2]=(c[(c[k>>2]|0)+4>>2]|0)+((c[l>>2]|0)*24|0);b=Fs(c[h>>2]|0)|0;tp(b,c[(c[o>>2]|0)+4>>2]|0,a[n>>0]|0,a[(c[o>>2]|0)+21>>0]|0,g)|0;if(c[g>>2]|0)bf(c[h>>2]|0,-1,c[g>>2]|0,-8);if((a[(c[(c[k>>2]|0)+4>>2]|0)+((c[l>>2]|0)*24|0)+21>>0]|0)!=69){i=m;return}Ir(c[h>>2]|0,39,c[j>>2]|0)|0;i=m;return}function Fs(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[c[b>>2]>>2]|0}function Gs(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=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;p=i;i=i+64|0;h=p+48|0;l=p+44|0;m=p+40|0;n=p+36|0;o=p+32|0;t=p+28|0;j=p+24|0;k=p+20|0;r=p+16|0;s=p+12|0;u=p+8|0;g=p+4|0;q=p;c[h>>2]=a;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;c[o>>2]=c[(c[h>>2]|0)+8>>2];c[t>>2]=0;c[j>>2]=0;c[k>>2]=0;if((c[o>>2]|0)==0|(c[l>>2]|0)==0){i=p;return}c[t>>2]=d[c[l>>2]>>0];a:do switch(c[t>>2]|0){case 19:{xs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,c[m>>2]|0,c[n>>2]|0);break};case 75:{c[g>>2]=Nr(c[o>>2]|0)|0;c[q>>2]=(c[n>>2]|0)!=0?c[m>>2]|0:c[g>>2]|0;Ks(c[h>>2]|0,c[l>>2]|0,c[g>>2]|0,c[q>>2]|0);fp(c[o>>2]|0,16,0,c[m>>2]|0)|0;Pr(c[o>>2]|0,c[g>>2]|0);break};case 148:case 73:{c[r>>2]=Hs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,j)|0;c[s>>2]=Hs(c[h>>2]|0,c[(c[l>>2]|0)+16>>2]|0,k)|0;c[t>>2]=(c[t>>2]|0)==73?79:78;Is(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,c[(c[l>>2]|0)+16>>2]|0,c[t>>2]|0,c[r>>2]|0,c[s>>2]|0,c[m>>2]|0,128)|0;break};case 79:case 78:case 83:case 80:case 81:case 82:{c[r>>2]=Hs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,j)|0;c[s>>2]=Hs(c[h>>2]|0,c[(c[l>>2]|0)+16>>2]|0,k)|0;Is(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,c[(c[l>>2]|0)+16>>2]|0,c[t>>2]|0,c[r>>2]|0,c[s>>2]|0,c[m>>2]|0,c[n>>2]|0)|0;break};case 72:{c[u>>2]=Nr(c[o>>2]|0)|0;xs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,c[u>>2]|0,c[n>>2]^16);ws(c[h>>2]|0);Gs(c[h>>2]|0,c[(c[l>>2]|0)+16>>2]|0,c[m>>2]|0,c[n>>2]|0);Pr(c[o>>2]|0,c[u>>2]|0);us(c[h>>2]|0);break};case 71:{Gs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,c[m>>2]|0,c[n>>2]|0);ws(c[h>>2]|0);Gs(c[h>>2]|0,c[(c[l>>2]|0)+16>>2]|0,c[m>>2]|0,c[n>>2]|0);us(c[h>>2]|0);break};case 74:{Js(c[h>>2]|0,c[l>>2]|0,c[m>>2]|0,1,c[n>>2]|0);break};case 77:case 76:{c[r>>2]=Hs(c[h>>2]|0,c[(c[l>>2]|0)+12>>2]|0,j)|0;fp(c[o>>2]|0,c[t>>2]|0,c[r>>2]|0,c[m>>2]|0)|0;break};default:{if(Ls(c[l>>2]|0)|0){fp(c[o>>2]|0,16,0,c[m>>2]|0)|0;break a}if(!(nr(c[l>>2]|0)|0)){c[r>>2]=Hs(c[h>>2]|0,c[l>>2]|0,j)|0;ip(c[o>>2]|0,45,c[r>>2]|0,c[m>>2]|0,(c[n>>2]|0)!=0&1)|0}}}while(0);lp(c[h>>2]|0,c[j>>2]|0);lp(c[h>>2]|0,c[k>>2]|0);i=p;return}function Hs(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;m=i;i=i+48|0;l=m+32|0;n=m+28|0;j=m+24|0;p=m+20|0;h=m+16|0;o=m+12|0;f=m+8|0;k=m+4|0;q=m;c[n>>2]=a;c[j>>2]=b;c[p>>2]=e;c[j>>2]=iq(c[j>>2]|0)|0;if(((d[(c[n>>2]|0)+23>>0]|0|0)!=0?(d[c[j>>2]>>0]|0|0)!=159:0)?(pt(c[j>>2]|0)|0)!=0:0){c[o>>2]=c[(c[n>>2]|0)+316>>2];c[c[p>>2]>>2]=0;a:do if(c[o>>2]|0){c[k>>2]=c[(c[o>>2]|0)+4>>2];c[f>>2]=c[c[o>>2]>>2];while(1){if((c[f>>2]|0)<=0)break a;if(((d[(c[k>>2]|0)+13>>0]|0)>>>2&1|0)!=0?(Dq(c[c[k>>2]>>2]|0,c[j>>2]|0,-1)|0)==0:0)break;c[k>>2]=(c[k>>2]|0)+20;c[f>>2]=(c[f>>2]|0)+ -1}c[l>>2]=c[(c[k>>2]|0)+16>>2];a=c[l>>2]|0;i=m;return a|0}while(0);b=(c[n>>2]|0)+72|0;a=(c[b>>2]|0)+1|0;c[b>>2]=a;c[h>>2]=a;ct(c[n>>2]|0,c[j>>2]|0,c[h>>2]|0,1)}else g=12;do if((g|0)==12){c[q>>2]=kp(c[n>>2]|0)|0;c[h>>2]=Qs(c[n>>2]|0,c[j>>2]|0,c[q>>2]|0)|0;if((c[h>>2]|0)==(c[q>>2]|0)){c[c[p>>2]>>2]=c[q>>2];break}else{lp(c[n>>2]|0,c[q>>2]|0);c[c[p>>2]>>2]=0;break}}while(0);c[l>>2]=c[h>>2];a=c[l>>2]|0;i=m;return a|0}function Is(a,b,d,e,f,g,h,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;l=i;i=i+48|0;n=l+40|0;v=l+36|0;u=l+32|0;s=l+28|0;p=l+24|0;r=l+20|0;q=l+16|0;t=l+12|0;m=l+8|0;k=l+4|0;o=l;c[n>>2]=a;c[v>>2]=b;c[u>>2]=d;c[s>>2]=e;c[p>>2]=f;c[r>>2]=g;c[q>>2]=h;c[t>>2]=j;c[o>>2]=at(c[n>>2]|0,c[v>>2]|0,c[u>>2]|0)|0;c[m>>2]=(ot(c[v>>2]|0,c[u>>2]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>2]|0)>2:0)break;c[x>>2]=5}while(0);if(c[x>>2]|0){c[(c[v>>2]|0)+28>>2]=c[m>>2];f=c[x>>2]|0;i=n;return f|0}c[D>>2]=c[(c[q>>2]|0)+424>>2];c[E>>2]=0;c[x>>2]=2;if(c[o>>2]&4){c[(c[q>>2]|0)+424>>2]=0;if((b[(c[(c[v>>2]|0)+12>>2]|0)+32>>1]|0)<0?(c[(c[v>>2]|0)+4>>2]&2048|0)==0:0)c[x>>2]=1}else if(c[w>>2]|0){g=(c[q>>2]|0)+72|0;f=(c[g>>2]|0)+1|0;c[g>>2]=f;c[E>>2]=f;c[c[w>>2]>>2]=f}Ys(c[q>>2]|0,c[v>>2]|0,c[E>>2]|0,(c[x>>2]|0)==1&1)|0;c[(c[q>>2]|0)+424>>2]=c[D>>2];f=c[x>>2]|0;i=n;return f|0}function Ns(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d;e=d+4|0;c[f>>2]=b;a[e>>0]=bq(c[(c[f>>2]|0)+12>>2]|0)|0;b=c[f>>2]|0;if(c[(c[f>>2]|0)+16>>2]|0){a[e>>0]=kt(c[b+16>>2]|0,a[e>>0]|0)|0;b=a[e>>0]|0;i=d;return b|0}if(c[b+4>>2]&2048){a[e>>0]=kt(c[c[(c[c[(c[f>>2]|0)+20>>2]>>2]|0)+4>>2]>>2]|0,a[e>>0]|0)|0;b=a[e>>0]|0;i=d;return b|0}if(a[e>>0]|0){b=a[e>>0]|0;i=d;return b|0}a[e>>0]=65;b=a[e>>0]|0;i=d;return b|0}function Os(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;j=f+12|0;h=f+8|0;g=f+4|0;k=f;c[j>>2]=a;c[h>>2]=b;c[g>>2]=e;if((c[h>>2]|0)!=0?(d[c[h>>2]>>0]|0|0)==159:0){fp(c[(c[j>>2]|0)+8>>2]|0,33,c[(c[h>>2]|0)+28>>2]|0,c[g>>2]|0)|0;i=f;return}c[k>>2]=Qs(c[j>>2]|0,c[h>>2]|0,c[g>>2]|0)|0;if((c[k>>2]|0)==(c[g>>2]|0)){i=f;return}if(!(c[(c[j>>2]|0)+8>>2]|0)){i=f;return}fp(c[(c[j>>2]|0)+8>>2]|0,34,c[k>>2]|0,c[g>>2]|0)|0;i=f;return}function Ps(e){e=e|0;var f=0,g=0,h=0,j=0,k=0;g=i;i=i+16|0;f=g+4|0;h=g;j=g+8|0;c[h>>2]=e;while(1){if((d[c[h>>2]>>0]|0)==158)k=1;else k=(d[c[h>>2]>>0]|0)==157;e=c[h>>2]|0;if(!k)break;c[h>>2]=c[e+12>>2]}a[j>>0]=a[e>>0]|0;if((d[j>>0]|0)==159)a[j>>0]=a[(c[h>>2]|0)+38>>0]|0;switch(d[j>>0]|0){case 154:{if(!(c[(c[h>>2]|0)+4>>2]&1048576))if((b[(c[h>>2]|0)+32>>1]|0)>=0)h=(d[(c[(c[(c[h>>2]|0)+44>>2]|0)+4>>2]|0)+((b[(c[h>>2]|0)+32>>1]|0)*24|0)+20>>0]|0)==0;else h=0;else h=1;c[f>>2]=h&1;k=c[f>>2]|0;i=g;return k|0};case 134:case 133:case 97:case 132:{c[f>>2]=0;k=c[f>>2]|0;i=g;return k|0};default:{c[f>>2]=1;k=c[f>>2]|0;i=g;return k|0}}return 0}function Qs(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0;r=i;i=i+304|0;P=r;q=r+292|0;k=r+288|0;H=r+284|0;p=r+280|0;o=r+276|0;ja=r+272|0;n=r+268|0;l=r+264|0;m=r+260|0;K=r+256|0;fa=r+252|0;ba=r+248|0;T=r+244|0;M=r+240|0;B=r+192|0;ga=r+184|0;ha=r+180|0;Z=r+176|0;X=r+172|0;W=r+168|0;Y=r+164|0;U=r+160|0;ia=r+156|0;V=r+152|0;D=r+148|0;C=r+144|0;G=r+140|0;O=r+136|0;N=r+132|0;L=r+128|0;J=r+124|0;Q=r+297|0;E=r+120|0;I=r+116|0;F=r+296|0;_=r+112|0;aa=r+108|0;ea=r+104|0;R=r+100|0;ca=r+96|0;S=r+92|0;da=r+88|0;s=r+84|0;t=r+80|0;v=r+76|0;z=r+72|0;A=r+68|0;u=r+64|0;x=r+16|0;y=r+12|0;w=r+8|0;c[k>>2]=f;c[H>>2]=g;c[p>>2]=h;c[o>>2]=c[(c[k>>2]|0)+8>>2];c[n>>2]=c[p>>2];c[l>>2]=0;c[m>>2]=0;c[M>>2]=c[c[k>>2]>>2];if(!(c[o>>2]|0)){c[q>>2]=0;f=c[q>>2]|0;i=r;return f|0}if(!(c[H>>2]|0))c[ja>>2]=101;else c[ja>>2]=d[c[H>>2]>>0];a:do switch(c[ja>>2]|0){case 77:case 76:{fp(c[o>>2]|0,25,1,c[p>>2]|0)|0;c[K>>2]=Hs(c[k>>2]|0,c[(c[H>>2]|0)+12>>2]|0,l)|0;c[ia>>2]=Ir(c[o>>2]|0,c[ja>>2]|0,c[K>>2]|0)|0;fp(c[o>>2]|0,25,0,c[p>>2]|0)|0;zp(c[o>>2]|0,c[ia>>2]|0);break};case 156:{c[ga>>2]=c[(c[H>>2]|0)+40>>2];c[ha>>2]=(c[(c[ga>>2]|0)+28>>2]|0)+((b[(c[H>>2]|0)+34>>1]|0)*24|0);if(!(a[c[ga>>2]>>0]|0)){c[n>>2]=c[(c[ha>>2]|0)+16>>2];break a}if(a[(c[ga>>2]|0)+1>>0]|0)ip(c[o>>2]|0,47,c[(c[ga>>2]|0)+8>>2]|0,c[(c[ha>>2]|0)+12>>2]|0,c[p>>2]|0)|0;else j=11;break};case 148:case 73:{c[K>>2]=Hs(c[k>>2]|0,c[(c[H>>2]|0)+12>>2]|0,l)|0;c[fa>>2]=Hs(c[k>>2]|0,c[(c[H>>2]|0)+16>>2]|0,m)|0;c[ja>>2]=(c[ja>>2]|0)==73?79:78;Is(c[k>>2]|0,c[(c[H>>2]|0)+12>>2]|0,c[(c[H>>2]|0)+16>>2]|0,c[ja>>2]|0,c[K>>2]|0,c[fa>>2]|0,c[n>>2]|0,160)|0;break};case 97:{hp(c[o>>2]|0,97,0,c[p>>2]|0,0,c[(c[H>>2]|0)+8>>2]|0,0)|0;break};case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{c[K>>2]=Hs(c[k>>2]|0,c[(c[H>>2]|0)+12>>2]|0,l)|0;c[fa>>2]=Hs(c[k>>2]|0,c[(c[H>>2]|0)+16>>2]|0,m)|0;ip(c[o>>2]|0,c[ja>>2]|0,c[fa>>2]|0,c[K>>2]|0,c[p>>2]|0)|0;break};case 135:{fp(c[o>>2]|0,31,b[(c[H>>2]|0)+32>>1]|0,c[p>>2]|0)|0;if(a[(c[(c[H>>2]|0)+8>>2]|0)+1>>0]|0)bf(c[o>>2]|0,-1,c[(c[(c[k>>2]|0)+472>>2]|0)+((b[(c[H>>2]|0)+32>>1]|0)-1<<2)>>2]|0,-2);break};case 79:case 78:case 83:case 80:case 81:case 82:{c[K>>2]=Hs(c[k>>2]|0,c[(c[H>>2]|0)+12>>2]|0,l)|0;c[fa>>2]=Hs(c[k>>2]|0,c[(c[H>>2]|0)+16>>2]|0,m)|0;Is(c[k>>2]|0,c[(c[H>>2]|0)+12>>2]|0,c[(c[H>>2]|0)+16>>2]|0,c[ja>>2]|0,c[K>>2]|0,c[fa>>2]|0,c[n>>2]|0,32)|0;break};case 159:{c[n>>2]=c[(c[H>>2]|0)+28>>2];break};case 119:case 20:{c[n>>2]=Ys(c[k>>2]|0,c[H>>2]|0,0,0)|0;break};case 158:case 95:{c[n>>2]=Qs(c[k>>2]|0,c[(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5)|0;Xe(c[o>>2]|0,c[C>>2]&255);if(!((c[C>>2]|0)!=0&(c[L>>2]|0)==0))break a;Bs(c[k>>2]|0,c[K>>2]|0,c[C>>2]|0);break a}f=c[k>>2]|0;g=c[N>>2]|0;c[P>>2]=c[O>>2];c[P+4>>2]=g;Se(f,19160,P);break};case 155:{c[V>>2]=c[(c[H>>2]|0)+40>>2];if(!(c[V>>2]|0)){f=c[k>>2]|0;c[P>>2]=c[(c[H>>2]|0)+8>>2];Se(f,19128,P);break a}else{c[n>>2]=c[(c[(c[V>>2]|0)+40>>2]|0)+(b[(c[H>>2]|0)+34>>1]<<4)+8>>2];break a}};case 134:{c[W>>2]=(c[(c[H>>2]|0)+8>>2]|0)+2;c[X>>2]=(Mb(c[W>>2]|0)|0)-1;c[Y>>2]=Gp(Fs(c[o>>2]|0)|0,c[W>>2]|0,c[X>>2]|0)|0;hp(c[o>>2]|0,30,(c[X>>2]|0)/2|0,c[p>>2]|0,0,c[Y>>2]|0,-1)|0;break};case 132:{Ss(c[k>>2]|0,c[H>>2]|0,0,c[p>>2]|0);break};case 154:{j=11;break};case 101:{fp(c[o>>2]|0,28,0,c[p>>2]|0)|0;break};case 38:{c[n>>2]=Qs(c[k>>2]|0,c[(c[H>>2]|0)+12>>2]|0,c[p>>2]|0)|0;if((c[n>>2]|0)!=(c[p>>2]|0)){fp(c[o>>2]|0,34,c[n>>2]|0,c[p>>2]|0)|0;c[n>>2]=c[p>>2]}fp(c[o>>2]|0,40,c[p>>2]|0,(Bp(c[(c[H>>2]|0)+8>>2]|0,0)|0)<<24>>24)|0;Us(c[k>>2]|0,c[n>>2]|0,1);break};case 24:{c[n>>2]=Qs(c[k>>2]|0,c[(c[H>>2]|0)+12>>2]|0,c[p>>2]|0)|0;break};case 57:{if(!(c[(c[k>>2]|0)+412>>2]|0)){Se(c[k>>2]|0,19192,P);c[q>>2]=0;f=c[q>>2]|0;i=r;return f|0}if((a[(c[H>>2]|0)+1>>0]|0)==2)Sp(c[k>>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19336,2)|0)){r=c[q>>2]|0;c[n>>2]=c[m>>2];Se(r,19344,n);i=h;return}else{Ts(c[j>>2]|0,c[m>>2]|0,c[p>>2]|0,c[g>>2]|0);i=h;return}if(c[p>>2]|0){if((c[o>>2]|0)==2){m=0;l=-2147483648}else{m=k;m=ZE(0,0,c[m>>2]|0,c[m+4>>2]|0)|0;l=D}r=k;c[r>>2]=m;c[r+4>>2]=l}c[f>>2]=ht(c[j>>2]|0,k)|0;hp(c[j>>2]|0,26,0,c[g>>2]|0,0,c[f>>2]|0,-13)|0;i=h;return}function Ts(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+32|0;g=l+24|0;m=l+20|0;n=l+16|0;f=l+12|0;j=l;k=l+8|0;c[g>>2]=a;c[m>>2]=b;c[n>>2]=d;c[f>>2]=e;if(!(c[m>>2]|0)){i=l;return}a=c[m>>2]|0;Lm(a,j,Mb(c[m>>2]|0)|0,1)|0;if(c[n>>2]|0)h[j>>3]=-+h[j>>3];c[k>>2]=ht(c[g>>2]|0,j)|0;hp(c[g>>2]|0,133,0,c[f>>2]|0,0,c[k>>2]|0,-12)|0;i=l;return}function Us(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e+8|0;g=e+4|0;f=e;c[h>>2]=a;c[g>>2]=b;c[f>>2]=d;Cs(c[h>>2]|0,c[g>>2]|0,c[f>>2]|0);i=e;return}function Vs(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=et(c[d>>2]|0,1)|0;i=b;return a|0}function Ws(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=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;r=i;i=i+48|0;n=r+36|0;v=r+32|0;q=r+28|0;u=r+41|0;t=r+24|0;h=r+20|0;k=r+16|0;o=r+40|0;p=r+12|0;s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36|0;q=o+32|0;x=o+28|0;n=o+24|0;k=o+20|0;p=o+16|0;u=o+12|0;s=o+8|0;w=o+4|0;t=o;c[v>>2]=f;c[m>>2]=g;c[r>>2]=h;c[z>>2]=j;c[n>>2]=0;c[k>>2]=0;c[u>>2]=0;if(!(c[z>>2]|0)){c[l>>2]=c[m>>2];f=c[l>>2]|0;i=o;return f|0}if((d[c[z>>2]>>0]|0)!=154){c[l>>2]=c[m>>2];f=c[l>>2]|0;i=o;return f|0}c[y>>2]=c[(c[z>>2]|0)+44>>2];if(!(c[y>>2]|0)){c[l>>2]=c[m>>2];f=c[l>>2]|0;i=o;return f|0}if(!(d[(c[y>>2]|0)+44>>0]&16)){c[l>>2]=c[m>>2];f=c[l>>2]|0;i=o;return f|0}c[q>>2]=c[(Rp(c[v>>2]|0,c[y>>2]|0)|0)+8>>2];c[x>>2]=c[c[q>>2]>>2];if(!(c[(c[x>>2]|0)+72>>2]|0)){c[l>>2]=c[m>>2];f=c[l>>2]|0;i=o;return f|0}c[s>>2]=ne(c[v>>2]|0,c[(c[m>>2]|0)+24>>2]|0)|0;if(c[s>>2]|0){c[w>>2]=c[s>>2];while(1){if(!(a[c[w>>2]>>0]|0))break;a[c[w>>2]>>0]=a[440+(d[c[w>>2]>>0]|0)>>0]|0;c[w>>2]=(c[w>>2]|0)+1}z=c[(c[x>>2]|0)+72>>2]|0;h=c[q>>2]|0;g=c[r>>2]|0;f=c[s>>2]|0;c[t>>2]=n;c[u>>2]=Ab[z&15](h,g,f,c[t>>2]|0,k)|0;Xb(c[v>>2]|0,c[s>>2]|0)}if(!(c[u>>2]|0)){c[l>>2]=c[m>>2];f=c[l>>2]|0;i=o;return f|0}f=c[v>>2]|0;c[p>>2]=se(f,37+(Mb(c[(c[m>>2]|0)+24>>2]|0)|0)|0,0)|0;if(!(c[p>>2]|0)){c[l>>2]=c[m>>2];f=c[l>>2]|0;i=o;return f|0}else{s=(c[p>>2]|0)+0|0;r=(c[m>>2]|0)+0|0;q=s+36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l=(c[g>>2]|0)+0|0;b=l+12|0;do{a[l>>0]=0;l=l+1|0}while((l|0)<(b|0))}else{n=c[g>>2]|0;a[n+0>>0]=a[4384]|0;a[n+1>>0]=a[4385]|0;a[n+2>>0]=a[4386]|0;a[n+3>>0]=a[4387]|0;a[n+4>>0]=a[4388]|0;a[n+5>>0]=a[4389]|0;a[n+6>>0]=a[4390]|0;a[n+7>>0]=a[4391]|0;ck((c[g>>2]|0)+8|0,-1)}vc(4,(c[k>>2]|0)+48|0);ck((c[g>>2]|0)+12|0,c[(c[k>>2]|0)+48>>2]|0);ck((c[g>>2]|0)+16|0,c[(c[k>>2]|0)+28>>2]|0);ck((c[g>>2]|0)+20|0,c[(c[k>>2]|0)+148>>2]|0);ck((c[g>>2]|0)+24|0,c[(c[k>>2]|0)+152>>2]|0);_E((c[g>>2]|0)+28|0,0,(c[h>>2]|0)-28|0)|0;c[j>>2]=0;while(1){if(c[e>>2]|0){g=17;break}if((c[j>>2]|0)>>>0>=(c[(c[k>>2]|0)+148>>2]|0)>>>0){g=17;break}n=(c[k>>2]|0)+72|0;c[e>>2]=id(c[(c[k>>2]|0)+64>>2]|0,c[g>>2]|0,c[h>>2]|0,c[n>>2]|0,c[n+4>>2]|0)|0;n=(c[k>>2]|0)+72|0;m=n;m=bF(c[m>>2]|0,c[m+4>>2]|0,c[h>>2]|0,0)|0;c[n>>2]=m;c[n+4>>2]=D;c[j>>2]=(c[j>>2]|0)+(c[h>>2]|0)}if((g|0)==17){i=f;return c[e>>2]|0}return 0}function fk(a){a=a|0;var d=0,f=0,g=0;f=i;i=i+16|0;d=f+4|0;g=f;c[d>>2]=a;c[g>>2]=c[c[d>>2]>>2];while(1){if(!(c[g>>2]|0))break;a=(c[g>>2]|0)+24|0;b[a>>1]=(e[a>>1]|0)&-5;c[g>>2]=c[(c[g>>2]|0)+32>>2]}c[(c[d>>2]|0)+8>>2]=c[(c[d>>2]|0)+4>>2];i=f;return}function gk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;e=d;c[f>>2]=a;c[g>>2]=b;while(1){c[e>>2]=hk(c[f>>2]|0,c[g>>2]|0)|0;if((c[e>>2]|0)!=5){b=4;break}if(!(ub[c[(c[f>>2]|0)+176>>2]&31](c[(c[f>>2]|0)+180>>2]|0)|0)){b=4;break}}if((b|0)==4){i=d;return c[e>>2]|0}return 0}function hk(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;h=f+8|0;j=f+4|0;g=f;c[h>>2]=b;c[j>>2]=e;c[g>>2]=0;if((d[(c[h>>2]|0)+17>>0]|0|0)>=(c[j>>2]|0)?(d[(c[h>>2]|0)+17>>0]|0|0)!=5:0){b=c[g>>2]|0;i=f;return b|0}if(d[(c[h>>2]|0)+13>>0]|0)e=0;else e=pj(c[(c[h>>2]|0)+60>>2]|0,c[j>>2]|0)|0;c[g>>2]=e;if(c[g>>2]|0){b=c[g>>2]|0;i=f;return b|0}if(!((c[j>>2]|0)==4?1:(d[(c[h>>2]|0)+17>>0]|0|0)!=5)){b=c[g>>2]|0;i=f;return b|0}a[(c[h>>2]|0)+17>>0]=c[j>>2];b=c[g>>2]|0;i=f;return b|0}function ik(e,f,g,h,j,k){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0;z=i;i=i+144|0;n=z+104|0;q=z+100|0;C=z+96|0;E=z+92|0;v=z+88|0;p=z+84|0;s=z+80|0;o=z+76|0;B=z+72|0;A=z+68|0;u=z+64|0;x=z+60|0;w=z+56|0;t=z+32|0;r=z+8|0;H=z+112|0;G=z+48|0;l=z+44|0;y=z+40|0;F=z;c[q>>2]=e;c[C>>2]=f;c[E>>2]=g;c[v>>2]=h;c[p>>2]=j;c[s>>2]=k;c[u>>2]=0;c[x>>2]=0;e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31>>31|0)|0;a=h;c[a>>2]=b;c[a+4>>2]=D;c[g>>2]=(c[g>>2]|0)-(c[j>>2]|0);c[k>>2]=(c[k>>2]|0)+(c[j>>2]|0);c[l>>2]=Yh(c[(c[m>>2]|0)+4>>2]|0,c[(c[m>>2]|0)+16>>2]&19)|0;if((c[g>>2]|0)==0|(c[l>>2]|0)!=0){c[n>>2]=c[l>>2];a=c[n>>2]|0;i=o;return a|0}}a=h;c[l>>2]=id(c[(c[m>>2]|0)+4>>2]|0,c[k>>2]|0,c[g>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0;c[n>>2]=c[l>>2];a=c[n>>2]|0;i=o;return a|0}function nk(a,e,f,g){a=a|0;e=e|0;f=f|0;g=g|0;var h=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;j=i;i=i+48|0;h=j+44|0;m=j+40|0;t=j+36|0;s=j+32|0;v=j+28|0;q=j+24|0;o=j+20|0;n=j+16|0;p=j+12|0;l=j+8|0;u=j+4|0;k=j;c[m>>2]=a;c[t>>2]=e;c[s>>2]=f;c[v>>2]=g;c[l>>2]=0;if((c[v>>2]|0)>5){c[u>>2]=1;if((c[v>>2]|0)>100){c[h>>2]=15;a=c[h>>2]|0;i=j;return a|0}if((c[v>>2]|0)>=10)c[u>>2]=($((c[v>>2]|0)-9|0,(c[v>>2]|0)-9|0)|0)*39;fg(c[c[m>>2]>>2]|0,c[u>>2]|0)|0}if(!(c[s>>2]|0)){c[l>>2]=xj(c[m>>2]|0,c[t>>2]|0)|0;do if((c[l>>2]|0)==5){if(!(c[c[(c[m>>2]|0)+32>>2]>>2]|0)){c[l>>2]=-1;break}a=gi(c[m>>2]|0,2)|0;c[l>>2]=a;if(!a){hi(c[m>>2]|0,2);c[l>>2]=-1;break}if((c[l>>2]|0)==5)c[l>>2]=261}while(0);if(c[l>>2]|0){c[h>>2]=c[l>>2];a=c[h>>2]|0;i=j;return a|0}}c[q>>2]=Aj(c[m>>2]|0)|0;do if((c[s>>2]|0)==0?(c[c[q>>2]>>2]|0)==(c[(c[m>>2]|0)+68>>2]|0):0){c[l>>2]=gi(c[m>>2]|0,3)|0;Nj(c[m>>2]|0);if(c[l>>2]|0){if((c[l>>2]|0)==5)break;c[h>>2]=c[l>>2];a=c[h>>2]|0;i=j;return a|0}a=mj(c[m>>2]|0)|0;a=(TE(a,(c[m>>2]|0)+52|0,48)|0)!=0;k=c[m>>2]|0;if(a){hi(k,3);c[h>>2]=-1;a=c[h>>2]|0;i=j;return a|0}else{b[k+40>>1]=0;c[h>>2]=0;a=c[h>>2]|0;i=j;return a|0}}while(0);c[o>>2]=0;c[n>>2]=0;c[p>>2]=1;while(1){if((c[p>>2]|0)>=5)break;c[k>>2]=c[(c[q>>2]|0)+4+(c[p>>2]<<2)>>2];if((c[o>>2]|0)>>>0<=(c[k>>2]|0)>>>0?(c[k>>2]|0)>>>0<=(c[(c[m>>2]|0)+68>>2]|0)>>>0:0){c[o>>2]=c[k>>2];c[n>>2]=c[p>>2]}c[p>>2]=(c[p>>2]|0)+1}a:do if(((d[(c[m>>2]|0)+46>>0]|0)&2|0)==0?(c[n>>2]|0)==0?1:(c[o>>2]|0)>>>0<(c[(c[m>>2]|0)+68>>2]|0)>>>0:0){c[p>>2]=1;while(1){if((c[p>>2]|0)>=5)break a;c[l>>2]=vj(c[m>>2]|0,3+(c[p>>2]|0)|0,1)|0;if(!(c[l>>2]|0)){r=36;break}if((c[l>>2]|0)!=5)break;c[p>>2]=(c[p>>2]|0)+1}if((r|0)==36){a=c[(c[m>>2]|0)+68>>2]|0;c[(c[q>>2]|0)+4+(c[p>>2]<<2)>>2]=a;c[o>>2]=a;c[n>>2]=c[p>>2];ji(c[m>>2]|0,3+(c[p>>2]|0)|0,1);break}c[h>>2]=c[l>>2];a=c[h>>2]|0;i=j;return a|0}while(0);if(!(c[n>>2]|0)){c[h>>2]=(c[l>>2]|0)==5?-1:520;a=c[h>>2]|0;i=j;return a|0}c[l>>2]=gi(c[m>>2]|0,3+(c[n>>2]|0)|0)|0;if(c[l>>2]|0){c[h>>2]=(c[l>>2]|0)==5?-1:c[l>>2]|0;a=c[h>>2]|0;i=j;return a|0}Nj(c[m>>2]|0);if((c[(c[q>>2]|0)+4+(c[n>>2]<<2)>>2]|0)==(c[o>>2]|0)?(a=mj(c[m>>2]|0)|0,(TE(a,(c[m>>2]|0)+52|0,48)|0)==0):0){b[(c[m>>2]|0)+40>>1]=c[n>>2];c[h>>2]=c[l>>2];a=c[h>>2]|0;i=j;return a|0}hi(c[m>>2]|0,3+(c[n>>2]|0)|0);c[h>>2]=-1;a=c[h>>2]|0;i=j;return a|0}function ok(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;f=b+4|0;e=b;c[f>>2]=a;c[e>>2]=0;if(c[c[(c[f>>2]|0)+68>>2]>>2]|0){f=c[e>>2]|0;i=b;return f|0}if((d[(c[f>>2]|0)+5>>0]|0|0)!=4?(d[(c[f>>2]|0)+21>>0]|0|0)==0:0){c[e>>2]=ak(c[f>>2]|0,c[(c[f>>2]|0)+68>>2]|0,8192)|0;f=c[e>>2]|0;i=b;return f|0}qi(c[(c[f>>2]|0)+68>>2]|0);f=c[e>>2]|0;i=b;return f|0}function pk(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;f=i;i=i+32|0;h=f+12|0;j=f;k=f+8|0;g=f+16|0;c[h>>2]=a;a=j;c[a>>2]=b;c[a+4>>2]=d;c[k>>2]=e;ck(g,c[k>>2]|0);a=j;a=id(c[h>>2]|0,g,4,c[a>>2]|0,c[a+4>>2]|0)|0;i=f;return a|0}function qk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;i=i+32|0;f=d+16|0;j=d+12|0;g=d+8|0;e=d+4|0;h=d;c[f>>2]=a;c[j>>2]=b;c[e>>2]=0;c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[(c[f>>2]|0)+96>>2]|0))break;c[h>>2]=(c[(c[f>>2]|0)+92>>2]|0)+((c[g>>2]|0)*48|0);if((c[j>>2]|0)>>>0<=(c[(c[h>>2]|0)+20>>2]|0)>>>0){a=Wg(c[(c[h>>2]|0)+16>>2]|0,c[j>>2]|0)|0;c[e>>2]=c[e>>2]|a}c[g>>2]=(c[g>>2]|0)+1}i=d;return c[e>>2]|0}function rk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;g=e+4|0;f=e;c[g>>2]=b;c[f>>2]=d;while(1){if((c[f>>2]|0)>0)b=(a[(c[g>>2]|0)+((c[f>>2]|0)-1)>>0]|0)==32;else b=0;d=c[f>>2]|0;if(!b)break;c[f>>2]=d+ -1}i=e;return(d|0)==0|0}function sk(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b;e=b+4|0;c[e>>2]=a;c[d>>2]=c[e>>2];tc(21,4880,d);i=b;return}function tk(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+32|0;n=l+20|0;k=l+16|0;g=l+12|0;m=l+8|0;h=l+4|0;j=l;c[n>>2]=a;c[k>>2]=b;c[g>>2]=e;c[m>>2]=f;c[h>>2]=0;if(!(c[n>>2]|0)){a=c[h>>2]|0;i=l;return a|0}c[j>>2]=c[(c[n>>2]|0)+4>>2];Pc(c[n>>2]|0);if(d[(c[j>>2]|0)+20>>0]|0){c[h>>2]=6;a=c[h>>2]|0;i=l;return a|0}else{c[h>>2]=uk(c[c[j>>2]>>2]|0,c[k>>2]|0,c[g>>2]|0,c[m>>2]|0)|0;a=c[h>>2]|0;i=l;return a|0}return 0}function uk(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;j=g+16|0;k=g+12|0;l=g+8|0;m=g+4|0;h=g;c[j>>2]=a;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[h>>2]=0;if(!(c[(c[j>>2]|0)+208>>2]|0)){a=c[h>>2]|0;i=g;return a|0}c[h>>2]=qj(c[(c[j>>2]|0)+208>>2]|0,c[k>>2]|0,c[(c[j>>2]|0)+176>>2]|0,c[(c[j>>2]|0)+180>>2]|0,d[(c[j>>2]|0)+9>>0]|0,c[(c[j>>2]|0)+152>>2]|0,c[(c[j>>2]|0)+200>>2]|0,c[l>>2]|0,c[m>>2]|0)|0;a=c[h>>2]|0;i=g;return a|0}function vk(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;g=h+20|0;n=h+16|0;m=h+12|0;k=h+8|0;l=h+4|0;j=h;c[n>>2]=b;c[m>>2]=d;c[k>>2]=e;c[l>>2]=f;c[j>>2]=c[(c[n>>2]|0)+(c[m>>2]<<2)>>2];while(1){if(!(c[j>>2]|0)){f=7;break}if((Lb(c[(c[j>>2]|0)+24>>2]|0,c[k>>2]|0,c[l>>2]|0)|0)==0?(a[(c[(c[j>>2]|0)+24>>2]|0)+(c[l>>2]|0)>>0]|0)==0:0){f=5;break}c[j>>2]=c[(c[j>>2]|0)+28>>2]}if((f|0)==5){c[g>>2]=c[j>>2];n=c[g>>2]|0;i=h;return n|0}else if((f|0)==7){c[g>>2]=0;n=c[g>>2]|0;i=h;return n|0}return 0}function wk(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0;j=i;i=i+32|0;k=j+12|0;m=j+8|0;o=j+4|0;n=j+16|0;l=j;c[m>>2]=f;c[o>>2]=g;a[n>>0]=h;h=c[m>>2]|0;if((c[o>>2]|0)==-2){if(!(c[h+12>>2]|0))l=(c[(c[m>>2]|0)+16>>2]|0)==0;else l=0;c[k>>2]=l?0:6;f=c[k>>2]|0;i=j;return f|0}if((b[h>>1]|0)!=(c[o>>2]|0)?(b[c[m>>2]>>1]|0)>=0:0){c[k>>2]=0;f=c[k>>2]|0;i=j;return f|0}if((b[c[m>>2]>>1]|0)==(c[o>>2]|0))c[l>>2]=4;else c[l>>2]=1;if((d[n>>0]|0)!=(e[(c[m>>2]|0)+2>>1]&3|0)){if(d[n>>0]&e[(c[m>>2]|0)+2>>1]&2)c[l>>2]=(c[l>>2]|0)+1}else c[l>>2]=(c[l>>2]|0)+2;c[k>>2]=c[l>>2];f=c[k>>2]|0;i=j;return f|0}function xk(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;k=f+16|0;h=f+12|0;g=f+8|0;l=f+4|0;m=f+20|0;j=f;c[k>>2]=b;c[h>>2]=e;c[l>>2]=Mb(c[(c[h>>2]|0)+24>>2]|0)|0;a[m>>0]=a[c[(c[h>>2]|0)+24>>2]>>0]|0;c[j>>2]=((d[440+(d[m>>0]|0)>>0]|0)+(c[l>>2]|0)|0)%23|0;c[g>>2]=vk(c[k>>2]|0,c[j>>2]|0,c[(c[h>>2]|0)+24>>2]|0,c[l>>2]|0)|0;if(c[g>>2]|0){c[(c[h>>2]|0)+8>>2]=c[(c[g>>2]|0)+8>>2];c[(c[g>>2]|0)+8>>2]=c[h>>2];i=f;return}else{c[(c[h>>2]|0)+8>>2]=0;c[(c[h>>2]|0)+28>>2]=c[(c[k>>2]|0)+(c[j>>2]<<2)>>2];c[(c[k>>2]|0)+(c[j>>2]<<2)>>2]=c[h>>2];i=f;return}}function yk(a,b){a=a|0;b=b|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;g=f+12|0;k=f+8|0;j=f+4|0;h=f;c[k>>2]=a;c[j>>2]=b;if(((e[(c[k>>2]|0)+8>>1]|0)&2|0)!=0?(d[(c[k>>2]|0)+10>>0]|0|0)!=(c[j>>2]|0):0){c[h>>2]=zk(c[k>>2]|0,c[j>>2]&255)|0;c[g>>2]=c[h>>2];a=c[g>>2]|0;i=f;return a|0}c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}function zk(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l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[p>>2]=d[4984+((c[p>>2]|0)-192)>>0];while(1){if((c[m>>2]|0)!=(c[n>>2]|0))r=((d[c[m>>2]>>0]|0)&192|0)==128;else r=0;s=c[p>>2]|0;if(!r)break;g=c[m>>2]|0;c[m>>2]=g+1;c[p>>2]=(s<<6)+(63&(d[g>>0]|0))}if((s>>>0>=128?(c[p>>2]&-2048|0)!=55296:0)?(c[p>>2]&-2|0)!=65534:0)break;c[p>>2]=65533}while(0);r=c[p>>2]|0;if((c[p>>2]|0)>>>0<=65535){v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=r;v=(c[p>>2]|0)>>>8&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;continue}else{g=(r>>>10&63)+(((c[p>>2]|0)-65536|0)>>>10&192)&255;v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=g;v=216+(((c[p>>2]|0)-65536|0)>>>18&3)&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;g=c[p>>2]&255;v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=g;v=220+((c[p>>2]|0)>>>8&3)&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;continue}}else while(1){if((c[m>>2]|0)>>>0>=(c[n>>2]|0)>>>0)break a;g=c[m>>2]|0;c[m>>2]=g+1;c[p>>2]=d[g>>0];do if((c[p>>2]|0)>>>0>=192){c[p>>2]=d[4984+((c[p>>2]|0)-192)>>0];while(1){if((c[m>>2]|0)!=(c[n>>2]|0))s=((d[c[m>>2]>>0]|0)&192|0)==128;else s=0;r=c[p>>2]|0;if(!s)break;g=c[m>>2]|0;c[m>>2]=g+1;c[p>>2]=(r<<6)+(63&(d[g>>0]|0))}if((r>>>0>=128?(c[p>>2]&-2048|0)!=55296:0)?(c[p>>2]&-2|0)!=65534:0)break;c[p>>2]=65533}while(0);r=c[p>>2]|0;if((c[p>>2]|0)>>>0<=65535){v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=r>>>8;v=c[p>>2]&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;continue}else{v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=216+((r-65536|0)>>>18&3);v=((c[p>>2]|0)>>>10&63)+(((c[p>>2]|0)-65536|0)>>>10&192)&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;g=220+((c[p>>2]|0)>>>8&3)&255;v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=g;v=c[p>>2]&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;continue}}while(0);c[(c[l>>2]|0)+12>>2]=(c[h>>2]|0)-(c[q>>2]|0);g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=0}else{b:do if((d[(c[l>>2]|0)+10>>0]|0|0)==2)while(1){if((c[m>>2]|0)>>>0>=(c[n>>2]|0)>>>0)break b;g=c[m>>2]|0;c[m>>2]=g+1;c[p>>2]=d[g>>0];g=c[m>>2]|0;c[m>>2]=g+1;c[p>>2]=(c[p>>2]|0)+((d[g>>0]|0)<<8);if((c[p>>2]|0)>>>0>=55296&(c[p>>2]|0)>>>0<57344?(c[m>>2]|0)>>>0<(c[n>>2]|0)>>>0:0){g=c[m>>2]|0;c[m>>2]=g+1;c[r>>2]=d[g>>0];g=c[m>>2]|0;c[m>>2]=g+1;c[r>>2]=(c[r>>2]|0)+((d[g>>0]|0)<<8);c[p>>2]=(c[r>>2]&1023)+((c[p>>2]&63)<<10)+((c[p>>2]&960)+64<<10)}t=c[p>>2]|0;if((c[p>>2]|0)>>>0<128){g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=t;continue}s=c[p>>2]|0;if(t>>>0<2048){v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=192+(s>>>6&31);v=128+(c[p>>2]&63)&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;continue}t=c[p>>2]|0;if(s>>>0<65536){g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=224+(t>>>12&15);g=128+((c[p>>2]|0)>>>6&63)&255;v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=g;v=128+(c[p>>2]&63)&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;continue}else{v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=240+(t>>>18&7);v=128+((c[p>>2]|0)>>>12&63)&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;g=128+((c[p>>2]|0)>>>6&63)&255;v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=g;v=128+(c[p>>2]&63)&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;continue}}else while(1){if((c[m>>2]|0)>>>0>=(c[n>>2]|0)>>>0)break b;g=c[m>>2]|0;c[m>>2]=g+1;c[p>>2]=(d[g>>0]|0)<<8;g=c[m>>2]|0;c[m>>2]=g+1;c[p>>2]=(c[p>>2]|0)+(d[g>>0]|0);if((c[p>>2]|0)>>>0>=55296&(c[p>>2]|0)>>>0<57344?(c[m>>2]|0)>>>0<(c[n>>2]|0)>>>0:0){g=c[m>>2]|0;c[m>>2]=g+1;c[s>>2]=(d[g>>0]|0)<<8;g=c[m>>2]|0;c[m>>2]=g+1;c[s>>2]=(c[s>>2]|0)+(d[g>>0]|0);c[p>>2]=(c[s>>2]&1023)+((c[p>>2]&63)<<10)+((c[p>>2]&960)+64<<10)}t=c[p>>2]|0;if((c[p>>2]|0)>>>0<128){g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=t;continue}r=c[p>>2]|0;if(t>>>0<2048){v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=192+(r>>>6&31);v=128+(c[p>>2]&63)&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;continue}t=c[p>>2]|0;if(r>>>0<65536){g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=224+(t>>>12&15);g=128+((c[p>>2]|0)>>>6&63)&255;v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=g;v=128+(c[p>>2]&63)&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;continue}else{v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=240+(t>>>18&7);v=128+((c[p>>2]|0)>>>12&63)&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;g=128+((c[p>>2]|0)>>>6&63)&255;v=c[h>>2]|0;c[h>>2]=v+1;a[v>>0]=g;v=128+(c[p>>2]&63)&255;g=c[h>>2]|0;c[h>>2]=g+1;a[g>>0]=v;continue}}while(0);c[(c[l>>2]|0)+12>>2]=(c[h>>2]|0)-(c[q>>2]|0)}a[c[h>>2]>>0]=0;c[p>>2]=e[(c[l>>2]|0)+8>>1];Bd(c[l>>2]|0);b[(c[l>>2]|0)+8>>1]=514|c[p>>2]&31;a[(c[l>>2]|0)+10>>0]=a[k>>0]|0;c[(c[l>>2]|0)+16>>2]=c[q>>2];c[(c[l>>2]|0)+20>>2]=c[(c[l>>2]|0)+16>>2];g=Bk(c[(c[l>>2]|0)+32>>2]|0,c[(c[l>>2]|0)+16>>2]|0)|0;c[(c[l>>2]|0)+24>>2]=g}c[o>>2]=0;g=c[o>>2]|0;i=j;return g|0}function Ak(d){d=d|0;var f=0,g=0,h=0,j=0;h=i;i=i+16|0;g=h+8|0;f=h+4|0;j=h;c[f>>2]=d;if((e[(c[f>>2]|0)+8>>1]|0)&16384)Dd(c[f>>2]|0)|0;c[j>>2]=e[(c[f>>2]|0)+8>>1];do if(c[j>>2]&18){if((c[(c[f>>2]|0)+24>>2]|0)!=0?(c[(c[f>>2]|0)+16>>2]|0)==(c[(c[f>>2]|0)+20>>2]|0):0)break;if(!(Dk(c[f>>2]|0,(c[(c[f>>2]|0)+12>>2]|0)+2|0,1)|0)){a[(c[(c[f>>2]|0)+16>>2]|0)+(c[(c[f>>2]|0)+12>>2]|0)>>0]=0;a[(c[(c[f>>2]|0)+16>>2]|0)+((c[(c[f>>2]|0)+12>>2]|0)+1)>>0]=0;j=(c[f>>2]|0)+8|0;b[j>>1]=e[j>>1]|0|512;break}c[g>>2]=7;j=c[g>>2]|0;i=h;return j|0}while(0);c[g>>2]=0;j=c[g>>2]|0;i=h;return j|0}function Bk(a,b){a=a|0;b=b|0;var d=0,f=0,g=0,h=0;d=i;i=i+16|0;f=d+8|0;h=d+4|0;g=d;c[h>>2]=a;c[g>>2]=b;if(!(c[h>>2]|0)){c[f>>2]=Tb(c[g>>2]|0)|0;a=c[f>>2]|0;i=d;return a|0}if(Ck(c[h>>2]|0,c[g>>2]|0)|0){c[f>>2]=e[(c[h>>2]|0)+248>>1];a=c[f>>2]|0;i=d;return a|0}else{c[f>>2]=ub[c[38640+48>>2]&31](c[g>>2]|0)|0;a=c[f>>2]|0;i=d;return a|0}return 0}function Ck(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;if((c[e>>2]|0)>>>0<(c[(c[f>>2]|0)+276>>2]|0)>>>0){a=0;a=a&1;i=d;return a|0}a=(c[e>>2]|0)>>>0<(c[(c[f>>2]|0)+280>>2]|0)>>>0;a=a&1;i=d;return a|0}function Dk(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;k=i;i=i+16|0;j=k+12|0;h=k+8|0;l=k+4|0;g=k;c[h>>2]=a;c[l>>2]=d;c[g>>2]=f;do if((c[(c[h>>2]|0)+24>>2]|0)<(c[l>>2]|0)){if((c[l>>2]|0)<32)c[l>>2]=32;if(((c[g>>2]|0)!=0?(c[(c[h>>2]|0)+24>>2]|0)>0:0)?(c[(c[h>>2]|0)+16>>2]|0)==(c[(c[h>>2]|0)+20>>2]|0):0){a=c[l>>2]|0;a=Ek(c[(c[h>>2]|0)+32>>2]|0,c[(c[h>>2]|0)+16>>2]|0,a,((a|0)<0)<<31>>31)|0;c[(c[h>>2]|0)+20>>2]=a;c[(c[h>>2]|0)+16>>2]=a;c[g>>2]=0}else{if((c[(c[h>>2]|0)+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,o=0;n=i;i=i+32|0;k=n+20|0;o=n+16|0;j=n+12|0;l=n;m=n+8|0;c[o>>2]=b;c[j>>2]=f;b=l;c[b>>2]=g;c[b+4>>2]=h;c[m>>2]=0;do if(!(d[(c[o>>2]|0)+64>>0]|0)){h=c[o>>2]|0;if(!(c[j>>2]|0)){b=l;c[k>>2]=Qe(h,c[b>>2]|0,c[b+4>>2]|0)|0;b=c[k>>2]|0;i=n;return b|0}if(!(Ck(h,c[j>>2]|0)|0)){b=l;c[m>>2]=lc(c[j>>2]|0,c[b>>2]|0,c[b+4>>2]|0)|0;if(c[m>>2]|0)break;a[(c[o>>2]|0)+64>>0]=1;break}b=l;f=c[b+4>>2]|0;if(f>>>0<0|((f|0)==0?(c[b>>2]|0)>>>0<=(e[(c[o>>2]|0)+248>>1]|0)>>>0:0)){c[k>>2]=c[j>>2];b=c[k>>2]|0;i=n;return b|0}else{b=l;c[m>>2]=Qe(c[o>>2]|0,c[b>>2]|0,c[b+4>>2]|0)|0;if(!(c[m>>2]|0))break;dF(c[m>>2]|0,c[j>>2]|0,e[(c[o>>2]|0)+248>>1]|0|0)|0;Xb(c[o>>2]|0,c[j>>2]|0);break}}while(0);c[k>>2]=c[m>>2];b=c[k>>2]|0;i=n;return b|0}function Gk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;e=d;c[f>>2]=a;c[g>>2]=b;c[e>>2]=c[(c[g>>2]|0)+32>>2];if(!(c[e>>2]|0)){i=d;return}g=c[e>>2]|0;c[g>>2]=(c[g>>2]|0)+ -1;if(c[c[e>>2]>>2]|0){i=d;return}rb[c[(c[e>>2]|0)+4>>2]&31](c[(c[e>>2]|0)+8>>2]|0);Xb(c[f>>2]|0,c[e>>2]|0);i=d;return}function Hk(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[e>>2]=a;if(c[(c[e>>2]|0)+4>>2]|0){c[d>>2]=1;g=c[d>>2]|0;i=b;return g|0}c[f>>2]=0;while(1){if((c[f>>2]|0)>=(c[(c[e>>2]|0)+20>>2]|0)){a=9;break}c[g>>2]=c[(c[(c[e>>2]|0)+16>>2]|0)+(c[f>>2]<<4)+4>>2];if((c[g>>2]|0)!=0?(Wk(c[g>>2]|0)|0)!=0:0){a=7;break}c[f>>2]=(c[f>>2]|0)+1}if((a|0)==7){c[d>>2]=1;g=c[d>>2]|0;i=b;return g|0}else if((a|0)==9){c[d>>2]=0;g=c[d>>2]|0;i=b;return g|0}return 0}function Ik(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;g=f+20|0;l=f+16|0;k=f+12|0;h=f+8|0;m=f+4|0;j=f;c[g>>2]=b;c[l>>2]=e;c[h>>2]=0;kh();Rb(c[g>>2]|0);if(c[(c[g>>2]|0)+24>>2]&2)e=(d[(c[g>>2]|0)+145>>0]|0)==0;else e=0;c[m>>2]=e&1;c[k>>2]=0;while(1){if((c[k>>2]|0)>=(c[(c[g>>2]|0)+20>>2]|0))break;c[j>>2]=c[(c[(c[g>>2]|0)+16>>2]|0)+(c[k>>2]<<4)+4>>2];if(c[j>>2]|0){if(Tk(c[j>>2]|0)|0)c[h>>2]=1;qd(c[j>>2]|0,c[l>>2]|0,((c[m>>2]|0)!=0^1)&1)|0}c[k>>2]=(c[k>>2]|0)+1}Uk(c[g>>2]|0)|0;lh();if((c[(c[g>>2]|0)+24>>2]&2|0)!=0?(d[(c[g>>2]|0)+145>>0]|0)==0:0){gf(c[g>>2]|0);cd(c[g>>2]|0)}b=(c[g>>2]|0)+504|0;c[b>>2]=0;c[b+4>>2]=0;b=(c[g>>2]|0)+512|0;c[b>>2]=0;c[b+4>>2]=0;b=(c[g>>2]|0)+24|0;c[b>>2]=c[b>>2]&-16777217;if(!(c[(c[g>>2]|0)+200>>2]|0)){i=f;return}if((c[h>>2]|0)==0?(a[(c[g>>2]|0)+62>>0]|0)!=0:0){i=f;return}rb[c[(c[g>>2]|0)+200>>2]&31](c[(c[g>>2]|0)+196>>2]|0);i=f;return}function Jk(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e+4|0;f=e;c[d>>2]=b;while(1){b=c[d>>2]|0;if(!(c[(c[d>>2]|0)+488>>2]|0))break;c[f>>2]=c[b+488>>2];c[(c[d>>2]|0)+488>>2]=c[(c[f>>2]|0)+24>>2];Xb(c[d>>2]|0,c[f>>2]|0)}c[b+496>>2]=0;c[(c[d>>2]|0)+500>>2]=0;a[(c[d>>2]|0)+69>>0]=0;i=e;return}function Kk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;i=i+16|0;d=e+12|0;f=e+8|0;g=e+4|0;h=e;c[d>>2]=b;c[f>>2]=c[(c[d>>2]|0)+4>>2];Pc(c[d>>2]|0);c[g>>2]=c[(c[f>>2]|0)+8>>2];while(1){if(!(c[g>>2]|0))break;c[h>>2]=c[g>>2];c[g>>2]=c[(c[g>>2]|0)+8>>2];if((c[c[h>>2]>>2]|0)!=(c[d>>2]|0))continue;Ok(c[h>>2]|0)|0}qd(c[d>>2]|0,0,0)|0;if(!((a[(c[d>>2]|0)+9>>0]|0)!=0?(Pk(c[f>>2]|0)|0)==0:0)){Ih(c[c[f>>2]>>2]|0)|0;if((c[(c[f>>2]|0)+52>>2]|0)!=0?(c[(c[f>>2]|0)+48>>2]|0)!=0:0)rb[c[(c[f>>2]|0)+52>>2]&31](c[(c[f>>2]|0)+48>>2]|0);Xb(0,c[(c[f>>2]|0)+48>>2]|0);Dg(c[f>>2]|0);hc(c[f>>2]|0)}if(c[(c[d>>2]|0)+24>>2]|0)c[(c[(c[d>>2]|0)+24>>2]|0)+20>>2]=c[(c[d>>2]|0)+20>>2];if(!(c[(c[d>>2]|0)+20>>2]|0)){h=c[d>>2]|0;hc(h);i=e;return 0}c[(c[(c[d>>2]|0)+20>>2]|0)+24>>2]=c[(c[d>>2]|0)+24>>2];h=c[d>>2]|0;hc(h);i=e;return 0}function Lk(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;f=b+8|0;d=b+4|0;e=b;c[f>>2]=a;c[d>>2]=c[(c[f>>2]|0)+332>>2];c[(c[f>>2]|0)+332>>2]=0;if(!(c[d>>2]|0)){i=b;return}gf(c[f>>2]|0);do{c[e>>2]=c[(c[d>>2]|0)+24>>2];Nk(c[d>>2]|0);c[d>>2]=c[e>>2]}while((c[d>>2]|0)!=0);i=b;return}function Mk(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;d=b+12|0;g=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=2;c[g>>2]=2;while(1){if((c[g>>2]|0)>=(c[(c[d>>2]|0)+20>>2]|0))break;c[f>>2]=(c[(c[d>>2]|0)+16>>2]|0)+(c[g>>2]<<4);if(!(c[(c[f>>2]|0)+4>>2]|0)){Xb(c[d>>2]|0,c[c[f>>2]>>2]|0);c[c[f>>2]>>2]=0}else{if((c[e>>2]|0)<(c[g>>2]|0)){a=(c[(c[d>>2]|0)+16>>2]|0)+(c[e>>2]<<4)|0;h=(c[(c[d>>2]|0)+16>>2]|0)+(c[g>>2]<<4)|0;c[a+0>>2]=c[h+0>>2];c[a+4>>2]=c[h+4>>2];c[a+8>>2]=c[h+8>>2];c[a+12>>2]=c[h+12>>2]}c[e>>2]=(c[e>>2]|0)+1}c[g>>2]=(c[g>>2]|0)+1}_E((c[(c[d>>2]|0)+16>>2]|0)+(c[e>>2]<<4)|0,0,(c[(c[d>>2]|0)+20>>2]|0)-(c[e>>2]|0)<<4|0)|0;c[(c[d>>2]|0)+20>>2]=c[e>>2];if((c[(c[d>>2]|0)+20>>2]|0)>2){i=b;return}if((c[(c[d>>2]|0)+16>>2]|0)==((c[d>>2]|0)+456|0)){i=b;return}h=(c[d>>2]|0)+456|0;g=c[(c[d>>2]|0)+16>>2]|0;c[h+0>>2]=c[g+0>>2];c[h+4>>2]=c[g+4>>2];c[h+8>>2]=c[g+8>>2];c[h+12>>2]=c[g+12>>2];c[h+16>>2]=c[g+16>>2];c[h+20>>2]=c[g+20>>2];c[h+24>>2]=c[g+24>>2];c[h+28>>2]=c[g+28>>2];Xb(c[d>>2]|0,c[(c[d>>2]|0)+16>>2]|0);c[(c[d>>2]|0)+16>>2]=(c[d>>2]|0)+456;i=b;return}function Nk(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;e=b+8|0;d=b+4|0;f=b;c[e>>2]=a;c[d>>2]=c[c[e>>2]>>2];a=(c[e>>2]|0)+12|0;c[a>>2]=(c[a>>2]|0)+ -1;if(c[(c[e>>2]|0)+12>>2]|0){i=b;return}c[f>>2]=c[(c[e>>2]|0)+8>>2];if(c[f>>2]|0)ub[c[(c[c[f>>2]>>2]|0)+16>>2]&31](c[f>>2]|0)|0;Xb(c[d>>2]|0,c[e>>2]|0);i=b;return}function Ok(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;g=d+12|0;f=d+8|0;h=d+4|0;e=d;c[g>>2]=a;c[f>>2]=c[c[g>>2]>>2];if(!(c[f>>2]|0)){i=d;return 0}c[e>>2]=c[(c[g>>2]|0)+4>>2];Pc(c[f>>2]|0);Qk(c[g>>2]|0);a=c[(c[g>>2]|0)+8>>2]|0;if(c[(c[g>>2]|0)+12>>2]|0)c[(c[(c[g>>2]|0)+12>>2]|0)+8>>2]=a;else c[(c[e>>2]|0)+8>>2]=a;if(c[(c[g>>2]|0)+8>>2]|0)c[(c[(c[g>>2]|0)+8>>2]|0)+12>>2]=c[(c[g>>2]|0)+12>>2];c[h>>2]=0;while(1){if((c[h>>2]|0)>(b[(c[g>>2]|0)+76>>1]|0))break;Rk(c[(c[g>>2]|0)+120+(c[h>>2]<<2)>>2]|0);c[h>>2]=(c[h>>2]|0)+1}Sk(c[e>>2]|0);Xb(c[c[f>>2]>>2]|0,c[(c[g>>2]|0)+20>>2]|0);i=d;return 0}function Pk(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;f=b+8|0;e=b+4|0;d=b;c[f>>2]=a;c[d>>2]=0;g=(c[f>>2]|0)+64|0;c[g>>2]=(c[g>>2]|0)+ -1;if((c[(c[f>>2]|0)+64>>2]|0)>0){g=c[d>>2]|0;i=b;return g|0}if((c[1058]|0)!=(c[f>>2]|0)){c[e>>2]=c[1058];while(1){if(c[e>>2]|0)g=(c[(c[e>>2]|0)+68>>2]|0)!=(c[f>>2]|0);else g=0;a=c[e>>2]|0;if(!g)break;c[e>>2]=c[a+68>>2]}if(a)c[(c[e>>2]|0)+68>>2]=c[(c[f>>2]|0)+68>>2]}else c[1058]=c[(c[f>>2]|0)+68>>2];c[d>>2]=1;g=c[d>>2]|0;i=b;return g|0}function Qk(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;hc(c[(c[e>>2]|0)+56>>2]|0);c[(c[e>>2]|0)+56>>2]=0;a[(c[e>>2]|0)+73>>0]=0;i=d;return}function Rk(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}ej(c[(c[d>>2]|0)+68>>2]|0);i=b;return}function Sk(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;e=b+4|0;f=b;c[e>>2]=a;if(d[(c[e>>2]|0)+20>>0]|0){i=b;return}if(!(c[(c[e>>2]|0)+12>>2]|0)){i=b;return}c[f>>2]=c[(c[e>>2]|0)+12>>2];c[(c[e>>2]|0)+12>>2]=0;Rk(c[f>>2]|0);i=b;return}function Tk(a){a=a|0;var b=0,e=0;b=i;i=i+16|0;e=b;c[e>>2]=a;if(!(c[e>>2]|0)){e=0;e=e&1;i=b;return e|0}e=(d[(c[e>>2]|0)+8>>0]|0|0)==2;e=e&1;i=b;return e|0}function Uk(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;Vk(c[d>>2]|0,68);i=b;return 0}function Vk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+32|0;e=d+20|0;g=d+16|0;j=d+12|0;k=d+8|0;f=d+4|0;h=d;c[e>>2]=a;c[g>>2]=b;if(!(c[(c[e>>2]|0)+328>>2]|0)){i=d;return}c[j>>2]=0;while(1){if((c[j>>2]|0)>=(c[(c[e>>2]|0)+304>>2]|0))break;c[k>>2]=c[(c[(c[e>>2]|0)+328>>2]|0)+(c[j>>2]<<2)>>2];c[f>>2]=c[(c[k>>2]|0)+8>>2];if((c[f>>2]|0)!=0?(c[h>>2]=c[(c[c[f>>2]>>2]|0)+(c[g>>2]|0)>>2],(c[h>>2]|0)!=0):0)ub[c[h>>2]&31](c[f>>2]|0)|0;c[(c[k>>2]|0)+20>>2]=0;Nk(c[k>>2]|0);c[j>>2]=(c[j>>2]|0)+1}Xb(c[e>>2]|0,c[(c[e>>2]|0)+328>>2]|0);c[(c[e>>2]|0)+304>>2]=0;c[(c[e>>2]|0)+328>>2]=0;i=d;return}function Wk(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return(c[(c[b>>2]|0)+16>>2]|0)!=0|0}function Xk(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,j=0;e=i;i=i+32|0;b=e+16|0;h=e+12|0;f=e+8|0;g=e+4|0;j=e;c[b>>2]=a;Rb(c[b>>2]|0);c[h>>2]=0;while(1){if((c[h>>2]|0)>=(c[(c[b>>2]|0)+20>>2]|0))break;c[f>>2]=c[(c[(c[b>>2]|0)+16>>2]|0)+(c[h>>2]<<4)+12>>2];a:do if(c[(c[(c[b>>2]|0)+16>>2]|0)+(c[h>>2]<<4)+12>>2]|0){c[g>>2]=c[(c[f>>2]|0)+16>>2];while(1){if(!(c[g>>2]|0))break a;c[j>>2]=c[(c[g>>2]|0)+8>>2];if((d[(c[j>>2]|0)+44>>0]|0)&16)Yk(c[b>>2]|0,c[j>>2]|0);c[g>>2]=c[c[g>>2]>>2]}}while(0);c[h>>2]=(c[h>>2]|0)+1}Lk(c[b>>2]|0);i=e;return}function Yk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;h=e+12|0;j=e+8|0;g=e+4|0;f=e;c[h>>2]=a;c[j>>2]=b;c[g>>2]=(c[j>>2]|0)+60;while(1){if(!(c[c[g>>2]>>2]|0)){d=6;break}b=c[c[g>>2]>>2]|0;if((c[c[c[g>>2]>>2]>>2]|0)==(c[h>>2]|0))break;c[g>>2]=b+24}if((d|0)==6){i=e;return}c[f>>2]=b;c[c[g>>2]>>2]=c[(c[f>>2]|0)+24>>2];Nk(c[f>>2]|0);i=e;return}function Zk(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;rb[c[38640+152>>2]&31](c[(c[d>>2]|0)+40>>2]|0);i=b;return}function _k(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;c[b>>2]=a;d=3136|0;a=d+68|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(a|0));if(c[9661]|0){c[784]=8;c[797]=8}c[787]=10;c[791]=1;i=b;return 0}function $k(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;c[b>>2]=a;d=3136|0;a=d+68|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(a|0));i=b;return}function al(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;h=e+24|0;j=e+20|0;k=e+16|0;f=e+12|0;g=e+8|0;l=e+4|0;c[h>>2]=a;c[j>>2]=b;c[k>>2]=d;c[e>>2]=0;c[l>>2]=48;a=c[l>>2]|0;c[f>>2]=Mc(a,((a|0)<0)<<31>>31)|0;if(!(c[f>>2]|0)){l=c[f>>2]|0;i=e;return l|0}c[g>>2]=3136;c[c[f>>2]>>2]=c[g>>2];c[(c[f>>2]|0)+4>>2]=c[h>>2];c[(c[f>>2]|0)+8>>2]=c[j>>2];c[(c[f>>2]|0)+12>>2]=(c[k>>2]|0)!=0?1:0;ql(c[f>>2]|0);if(c[k>>2]|0){c[(c[f>>2]|0)+16>>2]=10;l=(c[g>>2]|0)+8|0;c[l>>2]=(c[l>>2]|0)+(c[(c[f>>2]|0)+16>>2]|0);c[(c[g>>2]|0)+12>>2]=(c[(c[g>>2]|0)+4>>2]|0)+10-(c[(c[g>>2]|0)+8>>2]|0)}if(c[(c[f>>2]|0)+40>>2]|0){l=c[f>>2]|0;i=e;return l|0}hl(c[f>>2]|0);c[f>>2]=0;l=c[f>>2]|0;i=e;return l|0}function bl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;h=d+12|0;g=d+8|0;e=d+4|0;f=d;c[h>>2]=a;c[g>>2]=b;c[e>>2]=c[h>>2];if(!(c[(c[e>>2]|0)+12>>2]|0)){i=d;return}c[f>>2]=c[c[e>>2]>>2];h=(c[f>>2]|0)+4|0;c[h>>2]=(c[h>>2]|0)+((c[g>>2]|0)-(c[(c[e>>2]|0)+20>>2]|0));c[(c[f>>2]|0)+12>>2]=(c[(c[f>>2]|0)+4>>2]|0)+10-(c[(c[f>>2]|0)+8>>2]|0);c[(c[e>>2]|0)+20>>2]=c[g>>2];c[(c[e>>2]|0)+24>>2]=(((c[(c[e>>2]|0)+20>>2]|0)*9|0)>>>0)/10|0;jl(c[f>>2]|0);i=d;return}function cl(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;f=d+8|0;b=d+4|0;e=d;c[f>>2]=a;c[e>>2]=c[f>>2];c[b>>2]=c[(c[e>>2]|0)+36>>2];i=d;return c[b>>2]|0}function dl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;g=i;i=i+32|0;l=g+16|0;j=g+12|0;k=g+8|0;h=g+4|0;f=g;c[l>>2]=b;c[j>>2]=d;c[k>>2]=e;c[h>>2]=c[l>>2];c[f>>2]=0;c[f>>2]=c[(c[(c[h>>2]|0)+44>>2]|0)+((((c[j>>2]|0)>>>0)%((c[(c[h>>2]|0)+40>>2]|0)>>>0)|0)<<2)>>2];while(1){if(c[f>>2]|0)d=(c[(c[f>>2]|0)+8>>2]|0)!=(c[j>>2]|0);else d=0;e=c[f>>2]|0;if(!d)break;c[f>>2]=c[e+16>>2]}if(e){if(a[(c[f>>2]|0)+12>>0]|0){l=c[f>>2]|0;i=g;return l|0}kl(c[f>>2]|0);l=c[f>>2]|0;i=g;return l|0}else{if(!(c[k>>2]|0)){l=c[f>>2]|0;i=g;return l|0}c[f>>2]=ol(c[h>>2]|0,c[j>>2]|0,c[k>>2]|0)|0;l=c[f>>2]|0;i=g;return l|0}return 0}function el(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;h=i;i=i+32|0;m=h+20|0;l=h+16|0;k=h+12|0;f=h+8|0;g=h+4|0;j=h;c[m>>2]=b;c[l>>2]=d;c[k>>2]=e;c[f>>2]=c[m>>2];c[g>>2]=c[l>>2];c[j>>2]=c[c[f>>2]>>2];if((c[k>>2]|0)==0?(c[(c[j>>2]|0)+16>>2]|0)>>>0<=(c[(c[j>>2]|0)+4>>2]|0)>>>0:0){d=c[g>>2]|0;e=c[j>>2]|0;if(c[(c[j>>2]|0)+20>>2]|0){c[(c[e+20>>2]|0)+28>>2]=d;c[(c[g>>2]|0)+24>>2]=c[(c[j>>2]|0)+20>>2];c[(c[j>>2]|0)+20>>2]=c[g>>2]}else{c[e+24>>2]=d;c[(c[j>>2]|0)+20>>2]=c[g>>2]}m=(c[f>>2]|0)+32|0;c[m>>2]=(c[m>>2]|0)+1;a[(c[g>>2]|0)+12>>0]=0;i=h;return}ll(c[g>>2]|0);ml(c[g>>2]|0);i=h;return}function fl(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,m=0,n=0,o=0;f=i;i=i+32|0;o=f+28|0;n=f+24|0;m=f+20|0;j=f+16|0;k=f+12|0;g=f+8|0;h=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e>>2]|0)+12>>2]=(c[(c[e>>2]|0)+4>>2]|0)+10-(c[(c[e>>2]|0)+8>>2]|0);jl(c[e>>2]|0);hc(c[(c[d>>2]|0)+44>>2]|0);hc(c[d>>2]|0);i=b;return}function il(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;g=b+12|0;d=b+8|0;e=b+4|0;f=b;c[g>>2]=a;c[d>>2]=c[g>>2];if(!(c[(c[d>>2]|0)+12>>2]|0)){i=b;return}c[e>>2]=c[c[d>>2]>>2];c[f>>2]=c[(c[e>>2]|0)+4>>2];c[(c[e>>2]|0)+4>>2]=0;jl(c[e>>2]|0);c[(c[e>>2]|0)+4>>2]=c[f>>2];i=b;return}function jl(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[d>>2]=a;while(1){if((c[(c[d>>2]|0)+16>>2]|0)>>>0<=(c[(c[d>>2]|0)+4>>2]|0)>>>0){a=5;break}if(!(c[(c[d>>2]|0)+24>>2]|0)){a=5;break}c[e>>2]=c[(c[d>>2]|0)+24>>2];kl(c[e>>2]|0);ll(c[e>>2]|0);ml(c[e>>2]|0)}if((a|0)==5){i=b;return}}function kl(b){b=b|0;var d=0,e=0,f=0,g=0;f=i;i=i+16|0;d=f+8|0;e=f+4|0;g=f;c[d>>2]=b;c[e>>2]=c[(c[d>>2]|0)+20>>2];c[g>>2]=c[c[e>>2]>>2];b=c[(c[d>>2]|0)+24>>2]|0;if(c[(c[d>>2]|0)+28>>2]|0)c[(c[(c[d>>2]|0)+28>>2]|0)+24>>2]=b;else c[(c[g>>2]|0)+20>>2]=b;b=c[(c[d>>2]|0)+28>>2]|0;if(c[(c[d>>2]|0)+24>>2]|0)c[(c[(c[d>>2]|0)+24>>2]|0)+28>>2]=b;else c[(c[g>>2]|0)+24>>2]=b;c[(c[d>>2]|0)+24>>2]=0;c[(c[d>>2]|0)+28>>2]=0;a[(c[d>>2]|0)+12>>0]=1;b=(c[e>>2]|0)+32|0;c[b>>2]=(c[b>>2]|0)+ -1;i=f;return}function ll(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=i;i=i+16|0;f=e+12|0;g=e+8|0;d=e+4|0;b=e;c[f>>2]=a;c[d>>2]=c[(c[f>>2]|0)+20>>2];c[g>>2]=((c[(c[f>>2]|0)+8>>2]|0)>>>0)%((c[(c[d>>2]|0)+40>>2]|0)>>>0)|0;c[b>>2]=(c[(c[d>>2]|0)+44>>2]|0)+(c[g>>2]<<2);while(1){a=(c[c[b>>2]>>2]|0)+16|0;if((c[c[b>>2]>>2]|0)==(c[f>>2]|0))break;c[b>>2]=a}c[c[b>>2]>>2]=c[a>>2];g=(c[d>>2]|0)+36|0;c[g>>2]=(c[g>>2]|0)+ -1;i=e;return}function ml(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;if(!(c[e>>2]|0)){i=b;return}c[d>>2]=c[(c[e>>2]|0)+20>>2];Mg(c[c[e>>2]>>2]|0)|0;if(!(c[(c[d>>2]|0)+12>>2]|0)){i=b;return}e=(c[c[d>>2]>>2]|0)+16|0;c[e>>2]=(c[e>>2]|0)+ -1;i=b;return}function nl(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;h=e+16|0;k=e+12|0;j=e+8|0;f=e+4|0;g=e;c[h>>2]=b;c[k>>2]=d;c[j>>2]=0;while(1){if((c[j>>2]|0)>>>0>=(c[(c[h>>2]|0)+40>>2]|0)>>>0)break;c[f>>2]=(c[(c[h>>2]|0)+44>>2]|0)+(c[j>>2]<<2);while(1){b=c[c[f>>2]>>2]|0;c[g>>2]=b;if(!b)break;if((c[(c[g>>2]|0)+8>>2]|0)>>>0<(c[k>>2]|0)>>>0){c[f>>2]=(c[g>>2]|0)+16;continue}b=(c[h>>2]|0)+36|0;c[b>>2]=(c[b>>2]|0)+ -1;c[c[f>>2]>>2]=c[(c[g>>2]|0)+16>>2];if(!(a[(c[g>>2]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=0;break}else{b=(c[h>>2]|0)+16|0;c[b>>2]=(c[b>>2]|0)-((c[(c[j>>2]|0)+12>>2]|0)-(c[(c[k>>2]|0)+12>>2]|0));break}}while(0);if(!(c[g>>2]|0)){if((c[l>>2]|0)==1)kh();c[g>>2]=rl(c[k>>2]|0)|0;if((c[l>>2]|0)==1)lh()}if((c[g>>2]|0)!=0?(c[m>>2]=((c[f>>2]|0)>>>0)%((c[(c[k>>2]|0)+40>>2]|0)>>>0)|0,b=(c[k>>2]|0)+36|0,c[b>>2]=(c[b>>2]|0)+1,c[(c[g>>2]|0)+8>>2]=c[f>>2],c[(c[g>>2]|0)+16>>2]=c[(c[(c[k>>2]|0)+44>>2]|0)+(c[m>>2]<<2)>>2],c[(c[g>>2]|0)+20>>2]=c[k>>2],c[(c[g>>2]|0)+28>>2]=0,c[(c[g>>2]|0)+24>>2]=0,a[(c[g>>2]|0)+12>>0]=1,c[c[(c[g>>2]|0)+4>>2]>>2]=0,c[(c[(c[k>>2]|0)+44>>2]|0)+(c[m>>2]<<2)>>2]=c[g>>2],(c[f>>2]|0)>>>0>(c[(c[k>>2]|0)+28>>2]|0)>>>0):0)c[(c[k>>2]|0)+28>>2]=c[f>>2];c[n>>2]=c[g>>2];b=c[n>>2]|0;i=o;return b|0}function pl(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[e>>2]=a;if((c[793]|0)!=0?((c[(c[e>>2]|0)+4>>2]|0)+(c[(c[e>>2]|0)+8>>2]|0)|0)<=(c[792]|0):0){c[d>>2]=c[800];e=c[d>>2]|0;i=b;return e|0}c[d>>2]=sl()|0;e=c[d>>2]|0;i=b;return e|0}function ql(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,j=0,k=0;b=i;i=i+32|0;d=b+24|0;e=b+20|0;f=b+16|0;j=b+12|0;h=b+8|0;g=b+4|0;k=b;c[d>>2]=a;a=c[(c[d>>2]|0)+40>>2]<<1;c[f>>2]=a;c[f>>2]=(c[f>>2]|0)>>>0<256?256:a;if(c[(c[d>>2]|0)+40>>2]|0)kh();c[e>>2]=Mc(c[f>>2]<<2,0)|0;if(c[(c[d>>2]|0)+40>>2]|0)lh();if(!(c[e>>2]|0)){i=b;return}c[j>>2]=0;while(1){if((c[j>>2]|0)>>>0>=(c[(c[d>>2]|0)+40>>2]|0)>>>0)break;c[g>>2]=c[(c[(c[d>>2]|0)+44>>2]|0)+(c[j>>2]<<2)>>2];while(1){a=c[g>>2]|0;c[h>>2]=a;if(!a)break;c[k>>2]=((c[(c[h>>2]|0)+8>>2]|0)>>>0)%((c[f>>2]|0)>>>0)|0;c[g>>2]=c[(c[h>>2]|0)+16>>2];c[(c[h>>2]|0)+16>>2]=c[(c[e>>2]|0)+(c[k>>2]<<2)>>2];c[(c[e>>2]|0)+(c[k>>2]<<2)>>2]=c[h>>2]}c[j>>2]=(c[j>>2]|0)+1}hc(c[(c[d>>2]|0)+44>>2]|0);c[(c[d>>2]|0)+44>>2]=c[e>>2];c[(c[d>>2]|0)+40>>2]=c[f>>2];i=b;return}function rl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;d=b+12|0;f=b+8|0;e=b+4|0;g=b;c[f>>2]=a;c[e>>2]=0;c[g>>2]=Ug(32+(c[(c[f>>2]|0)+4>>2]|0)+(c[(c[f>>2]|0)+8>>2]|0)|0)|0;c[e>>2]=(c[g>>2]|0)+(c[(c[f>>2]|0)+4>>2]|0);if(!(c[g>>2]|0)){c[d>>2]=0;g=c[d>>2]|0;i=b;return g|0}c[c[e>>2]>>2]=c[g>>2];c[(c[e>>2]|0)+4>>2]=(c[e>>2]|0)+32;if(c[(c[f>>2]|0)+12>>2]|0){g=(c[c[f>>2]>>2]|0)+16|0;c[g>>2]=(c[g>>2]|0)+1}c[d>>2]=c[e>>2];g=c[d>>2]|0;i=b;return g|0}function sl(){return c[43]|0}function tl(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;e=b;f=b+8|0;d=b+4|0;c[f>>2]=a;c[f>>2]=(c[f>>2]|0)+7&-8;c[d>>2]=QE((c[f>>2]|0)+8|0)|0;a=c[f>>2]|0;if(c[d>>2]|0){f=c[d>>2]|0;c[f>>2]=a;c[f+4>>2]=((a|0)<0)<<31>>31;c[d>>2]=(c[d>>2]|0)+8;f=c[d>>2]|0;i=b;return f|0}else{c[e>>2]=a;tc(7,6192,e);f=c[d>>2]|0;i=b;return f|0}return 0}function ul(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=c[e>>2];c[d>>2]=(c[d>>2]|0)+ -8;RE(c[d>>2]|0);i=b;return}function vl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+32|0;g=d;h=d+16|0;f=d+12|0;e=d+8|0;c[h>>2]=a;c[f>>2]=b;c[e>>2]=c[h>>2];c[e>>2]=(c[e>>2]|0)+ -8;c[e>>2]=SE(c[e>>2]|0,(c[f>>2]|0)+8|0)|0;if(c[e>>2]|0){h=c[f>>2]|0;a=c[e>>2]|0;c[a>>2]=h;c[a+4>>2]=((h|0)<0)<<31>>31;c[e>>2]=(c[e>>2]|0)+8;a=c[e>>2]|0;i=d;return a|0}else{h=wl(c[h>>2]|0)|0;a=c[f>>2]|0;c[g>>2]=h;c[g+4>>2]=a;tc(7,6152,g);a=c[e>>2]|0;i=d;return a|0}return 0}function wl(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+8|0;f=b+4|0;e=b;c[f>>2]=a;if(!(c[f>>2]|0)){c[d>>2]=0;f=c[d>>2]|0;i=b;return f|0}else{c[e>>2]=c[f>>2];c[e>>2]=(c[e>>2]|0)+ -8;c[d>>2]=c[c[e>>2]>>2];f=c[d>>2]|0;i=b;return f|0}return 0}function xl(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return(c[b>>2]|0)+7&-8|0}function yl(a){a=a|0;var b=0;b=i;i=i+16|0;c[b>>2]=a;i=b;return 0}function zl(a){a=a|0;var b=0;b=i;i=i+16|0;c[b>>2]=a;i=b;return}function Al(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=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;p=i;i=i+64|0;h=p+52|0;v=p+48|0;t=p+44|0;l=p+40|0;q=p+36|0;k=p+32|0;j=p+28|0;s=p+24|0;g=p+20|0;o=p+16|0;m=p+12|0;n=p+8|0;r=p+4|0;u=p;c[h>>2]=b;c[v>>2]=e;c[t>>2]=f;c[g>>2]=0;c[o>>2]=0;if((Nd(c[c[t>>2]>>2]|0)|0)==5){i=p;return}c[l>>2]=Ed(c[c[t>>2]>>2]|0)|0;if(!(c[l>>2]|0)){i=p;return}c[k>>2]=Fd(c[c[t>>2]>>2]|0)|0;a:do if((c[v>>2]|0)!=1){b=Ed(c[(c[t>>2]|0)+4>>2]|0)|0;c[q>>2]=b;if(!b){i=p;return}c[n>>2]=c[q>>2];c[m>>2]=0;while(1){if(!(a[c[n>>2]>>0]|0))break;b=c[n>>2]|0;c[n>>2]=b+1;b:do if((d[b>>0]|0)>=192)while(1){if((d[c[n>>2]>>0]&192|0)!=128)break b;c[n>>2]=(c[n>>2]|0)+1}while(0);c[m>>2]=(c[m>>2]|0)+1}if((c[m>>2]|0)>0){e=c[h>>2]|0;b=c[m>>2]|0;b=lF(b|0,((b|0)<0)<<31>>31|0,5,0)|0;c[o>>2]=$m(e,b,D)|0;if(!(c[o>>2]|0)){i=p;return}c[g>>2]=(c[o>>2]|0)+(c[m>>2]<<2);c[n>>2]=c[q>>2];c[m>>2]=0;while(1){if(!(a[c[n>>2]>>0]|0))break a;c[(c[o>>2]|0)+(c[m>>2]<<2)>>2]=c[n>>2];b=c[n>>2]|0;c[n>>2]=b+1;c:do if((d[b>>0]|0)>=192)while(1){if((d[c[n>>2]>>0]&192|0)!=128)break c;c[n>>2]=(c[n>>2]|0)+1}while(0);a[(c[g>>2]|0)+(c[m>>2]|0)>>0]=(c[n>>2]|0)-(c[(c[o>>2]|0)+(c[m>>2]<<2)>>2]|0);c[m>>2]=(c[m>>2]|0)+1}}}else{c[m>>2]=1;c[g>>2]=9896;c[o>>2]=9904;c[q>>2]=0}while(0);if((c[m>>2]|0)>0){c[j>>2]=oe(c[h>>2]|0)|0;d:do if((c[j>>2]&1|0)!=0&(c[k>>2]|0)>0)do{c[r>>2]=0;c[s>>2]=0;while(1){if((c[s>>2]|0)>=(c[m>>2]|0))break;c[r>>2]=d[(c[g>>2]|0)+(c[s>>2]|0)>>0];if((c[r>>2]|0)<=(c[k>>2]|0)?(TE(c[l>>2]|0,c[(c[o>>2]|0)+(c[s>>2]<<2)>>2]|0,c[r>>2]|0)|0)==0:0)break;c[s>>2]=(c[s>>2]|0)+1}if((c[s>>2]|0)>=(c[m>>2]|0))break d;c[l>>2]=(c[l>>2]|0)+(c[r>>2]|0);c[k>>2]=(c[k>>2]|0)-(c[r>>2]|0)}while((c[k>>2]|0)>0);while(0);e:do if((c[j>>2]&2|0)!=0&(c[k>>2]|0)>0)do{c[u>>2]=0;c[s>>2]=0;while(1){if((c[s>>2]|0)>=(c[m>>2]|0))break;c[u>>2]=d[(c[g>>2]|0)+(c[s>>2]|0)>>0];if((c[u>>2]|0)<=(c[k>>2]|0)?(TE((c[l>>2]|0)+((c[k>>2]|0)-(c[u>>2]|0))|0,c[(c[o>>2]|0)+(c[s>>2]<<2)>>2]|0,c[u>>2]|0)|0)==0:0)break;c[s>>2]=(c[s>>2]|0)+1}if((c[s>>2]|0)>=(c[m>>2]|0))break e;c[k>>2]=(c[k>>2]|0)-(c[u>>2]|0)}while((c[k>>2]|0)>0);while(0);if(c[q>>2]|0)hc(c[o>>2]|0)}$d(c[h>>2]|0,c[l>>2]|0,c[k>>2]|0,-1);i=p;return}function Bl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+32|0;g=l+24|0;n=l+20|0;h=l+16|0;k=l+12|0;m=l+8|0;j=l+4|0;e=l;c[g>>2]=a;c[n>>2]=b;c[h>>2]=d;a=(oe(c[g>>2]|0)|0)==0;c[m>>2]=a?0:-1;c[e>>2]=an(c[g>>2]|0)|0;c[j>>2]=0;if((Nd(c[c[h>>2]>>2]|0)|0)==5){i=l;return}c[k>>2]=1;while(1){if((c[k>>2]|0)>=(c[n>>2]|0))break;if((Nd(c[(c[h>>2]|0)+(c[k>>2]<<2)>>2]|0)|0)==5){f=9;break}a=bn(c[(c[h>>2]|0)+(c[j>>2]<<2)>>2]|0,c[(c[h>>2]|0)+(c[k>>2]<<2)>>2]|0,c[e>>2]|0)|0;if((a^c[m>>2]|0)>=0)c[j>>2]=c[k>>2];c[k>>2]=(c[k>>2]|0)+1}if((f|0)==9){i=l;return}be(c[g>>2]|0,c[(c[h>>2]|0)+(c[j>>2]<<2)>>2]|0);i=l;return}function Cl(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+32|0;g=l+28|0;n=l+20|0;j=l+16|0;h=l+12|0;f=l+8|0;m=l+4|0;k=l;c[g>>2]=a;c[l+24>>2]=d;c[n>>2]=e;c[j>>2]=c[c[n>>2]>>2];c[h>>2]=qe(c[g>>2]|0,40)|0;if(!(c[h>>2]|0)){i=l;return}a=(Nd(c[c[n>>2]>>2]|0)|0)==5;e=(b[(c[h>>2]|0)+8>>1]|0)!=0;if(a){if(!e){i=l;return}ln(c[g>>2]|0);i=l;return}n=c[g>>2]|0;if(!e){a=pe(n)|0;c[(c[h>>2]|0)+32>>2]=a;ce(c[h>>2]|0,c[j>>2]|0)|0;i=l;return}c[k>>2]=an(n)|0;c[f>>2]=(oe(c[g>>2]|0)|0)!=0&1;c[m>>2]=bn(c[h>>2]|0,c[j>>2]|0,c[k>>2]|0)|0;if(!((c[f>>2]|0)!=0&(c[m>>2]|0)<0)?!((c[f>>2]|0)==0&(c[m>>2]|0)>0):0){ln(c[g>>2]|0);i=l;return}ce(c[h>>2]|0,c[j>>2]|0)|0;i=l;return}function Dl(a){a=a|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=qe(c[f>>2]|0,0)|0;if(!(c[e>>2]|0)){i=d;return}if(b[(c[e>>2]|0)+8>>1]|0)be(c[f>>2]|0,c[e>>2]|0);Bd(c[e>>2]|0);i=d;return}function El(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;g=e+12|0;h=e+4|0;f=e;c[g>>2]=a;c[e+8>>2]=b;c[h>>2]=d;c[f>>2]=0;d=Nd(c[c[h>>2]>>2]|0)|0;if((d|0)==3)c[f>>2]=9864;else if((d|0)==2)c[f>>2]=9872;else if((d|0)==4)c[f>>2]=9880;else if((d|0)==1)c[f>>2]=9856;else c[f>>2]=9888;$d(c[g>>2]|0,c[f>>2]|0,-1,0);i=e;return}function Fl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+32|0;h=g+16|0;l=g+8|0;j=g+4|0;k=g;c[h>>2]=b;c[g+12>>2]=e;c[l>>2]=f;f=Nd(c[c[l>>2]>>2]|0)|0;if((f|0)==3){c[k>>2]=Ed(c[c[l>>2]>>2]|0)|0;if(!(c[k>>2]|0)){i=g;return}c[j>>2]=0;a:while(1){if(!(a[c[k>>2]>>0]|0))break;c[j>>2]=(c[j>>2]|0)+1;b=c[k>>2]|0;c[k>>2]=b+1;if((d[b>>0]|0)<192)continue;while(1){if((d[c[k>>2]>>0]&192|0)!=128)continue a;c[k>>2]=(c[k>>2]|0)+1}}Wd(c[h>>2]|0,c[j>>2]|0);i=g;return}else if((f|0)==2|(f|0)==1|(f|0)==4){b=c[h>>2]|0;Wd(b,Fd(c[c[l>>2]>>2]|0)|0);i=g;return}else{Zd(c[h>>2]|0);i=g;return}}function Gl(a,b,e){a=a|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]|0)|0)==5){i=l;return}if((c[r>>2]|0)==3?(Nd(c[(c[p>>2]|0)+8>>2]|0)|0)==5:0){i=l;return}c[o>>2]=Nd(c[c[p>>2]>>2]|0)|0;b=Jd(c[(c[p>>2]|0)+4>>2]|0)|0;f=j;c[f>>2]=b;c[f+4>>2]=((b|0)<0)<<31>>31;f=c[c[p>>2]>>2]|0;a:do if((c[o>>2]|0)==4){c[n>>2]=Fd(f)|0;c[g>>2]=Cd(c[c[p>>2]>>2]|0)|0;if(!(c[g>>2]|0)){i=l;return}}else{c[g>>2]=Ed(f)|0;if(!(c[g>>2]|0)){i=l;return}c[n>>2]=0;if((c[j+4>>2]|0)<0){c[m>>2]=c[g>>2];while(1){if(!(a[c[m>>2]>>0]|0))break a;b=c[m>>2]|0;c[m>>2]=b+1;b:do if((d[b>>0]|0)>=192)while(1){if((d[c[m>>2]>>0]&192|0)!=128)break b;c[m>>2]=(c[m>>2]|0)+1}while(0);c[n>>2]=(c[n>>2]|0)+1}}}while(0);if((c[r>>2]|0)==3){e=Jd(c[(c[p>>2]|0)+8>>2]|0)|0;b=h;c[b>>2]=e;c[b+4>>2]=((e|0)<0)<<31>>31;if((c[h+4>>2]|0)<0){e=h;e=ZE(0,0,c[e>>2]|0,c[e+4>>2]|0)|0;b=h;c[b>>2]=e;c[b+4>>2]=D;c[q>>2]=1}}else{e=c[(pe(c[k>>2]|0)|0)+88>>2]|0;b=h;c[b>>2]=e;c[b+4>>2]=((e|0)<0)<<31>>31}do if((c[j+4>>2]|0)<0){e=c[n>>2]|0;b=j;e=bF(c[b>>2]|0,c[b+4>>2]|0,e|0,((e|0)<0)<<31>>31|0)|0;b=j;c[b>>2]=e;c[b+4>>2]=D;if((c[j+4>>2]|0)<0){r=j;e=h;r=bF(c[e>>2]|0,c[e+4>>2]|0,c[r>>2]|0,c[r+4>>2]|0)|0;e=D;f=h;c[f>>2]=r;c[f+4>>2]=e;f=(c[h+4>>2]|0)<0;b=h;c[b>>2]=f?0:r;c[b+4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192|0)!=128)break c;c[g>>2]=(c[g>>2]|0)+1}while(0);e=j;e=bF(c[e>>2]|0,c[e+4>>2]|0,-1,-1)|0;b=j;c[b>>2]=e;c[b+4>>2]=D}c[m>>2]=n;while(1){b=h;if(!((d[c[m>>2]>>0]|0)!=0&((c[b>>2]|0)!=0|(c[b+4>>2]|0)!=0)))break;b=c[m>>2]|0;c[m>>2]=b+1;d:do if((d[b>>0]|0)>=192)while(1){if((d[c[m>>2]>>0]&192|0)!=128)break d;c[m>>2]=(c[m>>2]|0)+1}while(0);e=h;e=bF(c[e>>2]|0,c[e+4>>2]|0,-1,-1)|0;b=h;c[b>>2]=e;c[b+4>>2]=D}b=(c[m>>2]|0)-(c[g>>2]|0)|0;ae(c[k>>2]|0,c[g>>2]|0,b,((b|0)<0)<<31>>31,-1,1);i=l;return}function Il(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;k=i;i=i+64|0;m=k;e=k+60|0;f=k+56|0;h=k+52|0;g=k+40|0;j=k+12|0;l=k+8|0;n=k+4|0;c[e>>2]=a;c[f>>2]=b;c[h>>2]=d;if((c[f>>2]|0)<1){i=k;return}a=Ed(c[c[h>>2]>>2]|0)|0;c[l>>2]=a;if(!a){i=k;return}c[g>>2]=(c[f>>2]|0)-1;c[g+4>>2]=0;c[g+8>>2]=(c[h>>2]|0)+4;nc(j,0,0,1e9);c[j>>2]=pe(c[e>>2]|0)|0;b=c[l>>2]|0;c[m>>2]=g;kn(j,2,b,m);c[n>>2]=c[j+12>>2];b=c[e>>2]|0;a=pc(j)|0;$d(b,a,c[n>>2]|0,16);i=k;return}function Jl(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;g=f+12|0;j=f+4|0;h=f;c[g>>2]=a;c[f+8>>2]=b;c[j>>2]=e;c[h>>2]=Ed(c[c[j>>2]>>2]|0)|0;if(!(c[h>>2]|0)){i=f;return}if(!(d[c[h>>2]>>0]|0)){i=f;return}j=c[g>>2]|0;Wd(j,Um(h)|0);i=f;return}function Kl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;m=i;i=i+48|0;g=m+32|0;o=m+28|0;k=m+24|0;j=m+20|0;h=m+16|0;l=m+12|0;f=m;n=m+8|0;c[g>>2]=b;c[o>>2]=d;c[k>>2]=e;b=fc((c[o>>2]<<2)+1|0)|0;c[j>>2]=b;c[h>>2]=b;if(!(c[j>>2]|0)){ie(c[g>>2]|0);i=m;return}c[l>>2]=0;while(1){if((c[l>>2]|0)>=(c[o>>2]|0))break;p=Ld(c[(c[k>>2]|0)+(c[l>>2]<<2)>>2]|0)|0;b=D;e=f;c[e>>2]=p;c[e+4>>2]=b;e=f;d=c[e+4>>2]|0;e=(c[f+4>>2]|0)<0|((d|0)>0|(d|0)==0&(c[e>>2]|0)>>>0>1114111);d=f;c[d>>2]=e?65533:p;c[d+4>>2]=e?0:b;c[n>>2]=c[f>>2]&2097151;d=c[n>>2]|0;do if((c[n>>2]|0)>>>0>=128){e=c[n>>2]|0;if(d>>>0<2048){b=c[h>>2]|0;c[h>>2]=b+1;a[b>>0]=192+(e>>>6&31);b=128+(c[n>>2]&63)&255;p=c[h>>2]|0;c[h>>2]=p+1;a[p>>0]=b;break}d=c[n>>2]|0;if(e>>>0<65536){p=c[h>>2]|0;c[h>>2]=p+1;a[p>>0]=224+(d>>>12&15);p=128+((c[n>>2]|0)>>>6&63)&255;b=c[h>>2]|0;c[h>>2]=b+1;a[b>>0]=p;b=128+(c[n>>2]&63)&255;p=c[h>>2]|0;c[h>>2]=p+1;a[p>>0]=b;break}else{b=c[h>>2]|0;c[h>>2]=b+1;a[b>>0]=240+(d>>>18&7);b=128+((c[n>>2]|0)>>>12&63)&255;p=c[h>>2]|0;c[h>>2]=p+1;a[p>>0]=b;p=128+((c[n>>2]|0)>>>6&63)&255;b=c[h>>2]|0;c[h>>2]=b+1;a[b>>0]=p;b=128+(c[n>>2]&63)&255;p=c[h>>2]|0;c[h>>2]=p+1;a[p>>0]=b;break}}else{p=c[h>>2]|0;c[h>>2]=p+1;a[p>>0]=d}while(0);c[l>>2]=(c[l>>2]|0)+1}p=(c[h>>2]|0)-(c[j>>2]|0)|0;ae(c[g>>2]|0,c[j>>2]|0,p,((p|0)<0)<<31>>31,13,1);i=m;return}function Ll(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0;e=i;i=i+32|0;f=e+24|0;j=e+16|0;g=e+8|0;k=e;c[f>>2]=a;c[e+20>>2]=b;c[j>>2]=d;d=Nd(c[c[j>>2]>>2]|0)|0;if((d|0)==1){b=Ld(c[c[j>>2]>>2]|0)|0;a=g;c[a>>2]=b;c[a+4>>2]=D;do if((c[g+4>>2]|0)<0){a=g;if(!((c[a>>2]|0)==0?(c[a+4>>2]|0)==-2147483648:0)){b=g;b=ZE(0,0,c[b>>2]|0,c[b+4>>2]|0)|0;a=g;c[a>>2]=b;c[a+4>>2]=D;break}Ud(c[f>>2]|0,9784,-1);i=e;return}while(0);a=g;Yd(c[f>>2]|0,c[a>>2]|0,c[a+4>>2]|0);i=e;return}else if((d|0)==5){Zd(c[f>>2]|0);i=e;return}else{h[k>>3]=+Hd(c[c[j>>2]>>2]|0);if(+h[k>>3]<0.0)h[k>>3]=-+h[k>>3];Sd(c[f>>2]|0,+h[k>>3]);i=e;return}}function Ml(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,l=0,m=0,n=0,o=0,p=0.0;e=i;i=i+48|0;l=e+8|0;f=e+36|0;o=e+32|0;n=e+28|0;j=e+24|0;g=e;m=e+20|0;c[f>>2]=a;c[o>>2]=b;c[n>>2]=d;c[j>>2]=0;do if((c[o>>2]|0)==2)if(5==(Nd(c[(c[n>>2]|0)+4>>2]|0)|0)){i=e;return}else{o=Jd(c[(c[n>>2]|0)+4>>2]|0)|0;c[j>>2]=o;o=(c[j>>2]|0)>30?30:o;c[j>>2]=o;c[j>>2]=(c[j>>2]|0)<0?0:o;break}while(0);if((Nd(c[c[n>>2]>>2]|0)|0)==5){i=e;return}h[g>>3]=+Hd(c[c[n>>2]>>2]|0);do if((c[j>>2]|0)==0&+h[g>>3]>=0.0&+h[g>>3]<9223372036854776000.0){p=+h[g>>3]+.5;h[g>>3]=+(~~p>>>0>>>0)+4294967296.0*+((+O(p)>=1.0?p>0.0?(ca(+N(p/4294967296.0),4294967295.0)|0)>>>0:~~+_((p- +(~~p>>>0))/4294967296.0)>>>0:0)|0)}else{if((c[j>>2]|0)==0&+h[g>>3]<0.0?-+h[g>>3]<9223372036854776000.0:0){p=-+h[g>>3]+.5;h[g>>3]=-(+(~~p>>>0>>>0)+4294967296.0*+((+O(p)>=1.0?p>0.0?(ca(+N(p/4294967296.0),4294967295.0)|0)>>>0:~~+_((p- +(~~p>>>0))/4294967296.0)>>>0:0)|0));break}p=+h[g>>3];c[l>>2]=c[j>>2];o=l+4|0;h[k>>3]=p;c[o>>2]=c[k>>2];c[o+4>>2]=c[k+4>>2];c[m>>2]=qc(9848,l)|0;if(c[m>>2]|0){o=c[m>>2]|0;Lm(o,g,Mb(c[m>>2]|0)|0,1)|0;hc(c[m>>2]|0);break}ie(c[f>>2]|0);i=e;return}while(0);Sd(c[f>>2]|0,+h[g>>3]);i=e;return}function Nl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;h=g+24|0;n=g+16|0;j=g+12|0;m=g+8|0;l=g+4|0;k=g;c[h>>2]=b;c[g+20>>2]=e;c[n>>2]=f;c[m>>2]=Ed(c[c[n>>2]>>2]|0)|0;c[k>>2]=Fd(c[c[n>>2]>>2]|0)|0;if(!(c[m>>2]|0)){i=g;return}b=c[h>>2]|0;n=c[k>>2]|0;n=bF(n|0,((n|0)<0)<<31>>31|0,1,0)|0;c[j>>2]=$m(b,n,D)|0;if(!(c[j>>2]|0)){i=g;return}c[l>>2]=0;while(1){if((c[l>>2]|0)>=(c[k>>2]|0))break;a[(c[j>>2]|0)+(c[l>>2]|0)>>0]=a[(c[m>>2]|0)+(c[l>>2]|0)>>0]&~(d[1224+(d[(c[m>>2]|0)+(c[l>>2]|0)>>0]|0)>>0]&32);c[l>>2]=(c[l>>2]|0)+1}$d(c[h>>2]|0,c[j>>2]|0,c[k>>2]|0,13);i=g;return}function Ol(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;h=g+24|0;n=g+16|0;j=g+12|0;m=g+8|0;l=g+4|0;k=g;c[h>>2]=b;c[g+20>>2]=e;c[n>>2]=f;c[m>>2]=Ed(c[c[n>>2]>>2]|0)|0;c[k>>2]=Fd(c[c[n>>2]>>2]|0)|0;if(!(c[m>>2]|0)){i=g;return}b=c[h>>2]|0;n=c[k>>2]|0;n=bF(n|0,((n|0)<0)<<31>>31|0,1,0)|0;c[j>>2]=$m(b,n,D)|0;if(!(c[j>>2]|0)){i=g;return}c[l>>2]=0;while(1){if((c[l>>2]|0)>=(c[k>>2]|0))break;a[(c[j>>2]|0)+(c[l>>2]|0)>>0]=a[440+(d[(c[m>>2]|0)+(c[l>>2]|0)>>0]|0)>>0]|0;c[l>>2]=(c[l>>2]|0)+1}$d(c[h>>2]|0,c[j>>2]|0,c[k>>2]|0,13);i=g;return}function Pl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;f=e+8|0;c[f>>2]=a;c[e+4>>2]=b;c[e>>2]=d;a=c[f>>2]|0;$d(a,uf()|0,-1,0);i=e;return}function Ql(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=i;i=i+48|0;j=l+28|0;p=l+20|0;m=l+16|0;g=l+12|0;n=l+8|0;k=l+4|0;h=l;o=l+32|0;c[j>>2]=b;c[l+24>>2]=e;c[p>>2]=f;c[n>>2]=Cd(c[c[p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13);i=e;return}function Tl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+12|0;g=e+4|0;h=e;c[f>>2]=a;c[e+8>>2]=b;c[g>>2]=d;c[h>>2]=an(c[f>>2]|0)|0;if(!(bn(c[c[g>>2]>>2]|0,c[(c[g>>2]|0)+4>>2]|0,c[h>>2]|0)|0)){i=e;return}be(c[f>>2]|0,c[c[g>>2]>>2]|0);i=e;return}function Ul(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;f=e+8|0;c[f>>2]=a;c[e+4>>2]=b;c[e>>2]=d;a=c[f>>2]|0;$d(a,vf()|0,-1,0);i=e;return}function Vl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e;g=e+4|0;c[e+12>>2]=a;c[e+8>>2]=b;c[g>>2]=d;a=Jd(c[c[g>>2]>>2]|0)|0;c[f>>2]=Ed(c[(c[g>>2]|0)+4>>2]|0)|0;tc(a,1200,f);i=e;return}function Wl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+12|0;h=e+4|0;g=e;c[f>>2]=a;c[e+8>>2]=b;c[h>>2]=d;a=Ed(c[c[h>>2]>>2]|0)|0;c[g>>2]=a;if(!a){i=e;return}h=c[f>>2]|0;Wd(h,Kb(c[g>>2]|0)|0);i=e;return}function Xl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;g=e+12|0;h=e+4|0;f=e;c[g>>2]=a;c[e+8>>2]=b;c[h>>2]=d;c[f>>2]=Jd(c[c[h>>2]>>2]|0)|0;a=c[g>>2]|0;$d(a,Ob(c[f>>2]|0)|0,-1,0);i=e;return}function Yl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,j=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;s=i;i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>>2]|0)|0;if(!(c[y>>2]|0)){i=s;return}c[v>>2]=0;b=x;c[b>>2]=0;c[b+4>>2]=0;while(1){if(!(a[(c[y>>2]|0)+(c[v>>2]|0)>>0]|0))break;if((d[(c[y>>2]|0)+(c[v>>2]|0)>>0]|0)==39){e=x;e=bF(c[e>>2]|0,c[e+4>>2]|0,1,0)|0;b=x;c[b>>2]=e;c[b+4>>2]=D}c[v>>2]=(c[v>>2]|0)+1}e=c[l>>2]|0;f=c[v>>2]|0;b=x;b=bF(f|0,((f|0)<0)<<31>>31|0,c[b>>2]|0,c[b+4>>2]|0)|0;b=bF(b|0,D|0,3,0)|0;c[u>>2]=$m(e,b,D)|0;if(!(c[u>>2]|0)){i=s;return}a[c[u>>2]>>0]=39;c[v>>2]=0;c[w>>2]=1;while(1){if(!(a[(c[y>>2]|0)+(c[v>>2]|0)>>0]|0))break;e=a[(c[y>>2]|0)+(c[v>>2]|0)>>0]|0;b=c[w>>2]|0;c[w>>2]=b+1;a[(c[u>>2]|0)+b>>0]=e;if((d[(c[y>>2]|0)+(c[v>>2]|0)>>0]|0)==39){b=c[w>>2]|0;c[w>>2]=b+1;a[(c[u>>2]|0)+b>>0]=39}c[v>>2]=(c[v>>2]|0)+1}b=c[w>>2]|0;c[w>>2]=b+1;a[(c[u>>2]|0)+b>>0]=39;a[(c[u>>2]|0)+(c[w>>2]|0)>>0]=0;$d(c[l>>2]|0,c[u>>2]|0,c[w>>2]|0,13);i=s;return}else if((f|0)==1){be(c[l>>2]|0,c[c[p>>2]>>2]|0);i=s;return}else{$d(c[l>>2]|0,9840,4,0);i=s;return}}function Zl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;g=e+12|0;f=e;c[g>>2]=a;c[e+8>>2]=b;c[e+4>>2]=d;c[f>>2]=pe(c[g>>2]|0)|0;b=c[g>>2]|0;a=Hf(c[f>>2]|0)|0;Yd(b,a,D);i=e;return}function _l(a,b,d){a=a|0;b=b|0;d=d|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return}}function bm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+32|0;j=e+20|0;h=e+12|0;f=e;g=e+8|0;c[j>>2]=a;c[e+16>>2]=b;c[h>>2]=d;c[g>>2]=pe(c[j>>2]|0)|0;h=Ld(c[c[h>>2]>>2]|0)|0;b=f;c[b>>2]=h;c[b+4>>2]=D;b=f;h=c[b+4>>2]|0;a=c[(c[g>>2]|0)+88>>2]|0;g=((a|0)<0)<<31>>31;d=c[j>>2]|0;if((h|0)>(g|0)|((h|0)==(g|0)?(c[b>>2]|0)>>>0>a>>>0:0)){he(d);i=e;return}else{de(d,c[f>>2]|0);i=e;return}}function cm(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0.0;g=i;i=i+32|0;n=g+24|0;m=g+16|0;j=g+12|0;l=g+8|0;k=g;c[n>>2]=b;c[g+20>>2]=e;c[m>>2]=f;c[j>>2]=qe(c[n>>2]|0,32)|0;c[l>>2]=Oe(c[c[m>>2]>>2]|0)|0;if(!((c[j>>2]|0)!=0&(c[l>>2]|0)!=5)){i=g;return}f=(c[j>>2]|0)+16|0;n=f;n=bF(c[n>>2]|0,c[n+4>>2]|0,1,0)|0;c[f>>2]=n;c[f+4>>2]=D;f=c[c[m>>2]>>2]|0;if((c[l>>2]|0)!=1){o=+Hd(f);n=c[j>>2]|0;h[n>>3]=+h[n>>3]+o;a[(c[j>>2]|0)+25>>0]=1;i=g;return}n=Ld(f)|0;b=k;c[b>>2]=n;c[b+4>>2]=D;b=k;n=c[j>>2]|0;h[n>>3]=+h[n>>3]+(+((c[b>>2]|0)>>>0)+4294967296.0*+(c[b+4>>2]|0));if(d[(c[j>>2]|0)+25>>0]|0|(d[(c[j>>2]|0)+24>>0]|0)){i=g;return}n=k;if(!(_m((c[j>>2]|0)+8|0,c[n>>2]|0,c[n+4>>2]|0)|0)){i=g;return}a[(c[j>>2]|0)+24>>0]=1;i=g;return}function dm(b){b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=b;c[e>>2]=qe(c[f>>2]|0,0)|0;if(!(c[e>>2]|0)){i=d;return}b=(c[e>>2]|0)+16|0;g=c[b+4>>2]|0;if(!((g|0)>0|(g|0)==0&(c[b>>2]|0)>>>0>0)){i=d;return}if(a[(c[e>>2]|0)+24>>0]|0){Ud(c[f>>2]|0,9784,-1);i=d;return}f=c[f>>2]|0;b=c[e>>2]|0;if(a[(c[e>>2]|0)+25>>0]|0){Sd(f,+h[b>>3]);i=d;return}else{g=b+8|0;Yd(f,c[g>>2]|0,c[g+4>>2]|0);i=d;return}}function em(a){a=a|0;var b=0,d=0,e=0,f=0.0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=qe(c[e>>2]|0,0)|0;a=c[e>>2]|0;if(!(c[d>>2]|0)){f=0.0;Sd(a,f);i=b;return}f=+h[c[d>>2]>>3];Sd(a,f);i=b;return}function fm(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=qe(c[e>>2]|0,0)|0;if(!(c[d>>2]|0)){i=b;return}a=(c[d>>2]|0)+16|0;f=c[a+4>>2]|0;if(!((f|0)>0|(f|0)==0&(c[a>>2]|0)>>>0>0)){i=b;return}f=(c[d>>2]|0)+16|0;Sd(c[e>>2]|0,+h[c[d>>2]>>3]/(+((c[f>>2]|0)>>>0)+4294967296.0*+(c[f+4>>2]|0)));i=b;return}function gm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;j=e+12|0;h=e+8|0;g=e+4|0;f=e;c[j>>2]=a;c[h>>2]=b;c[g>>2]=d;c[f>>2]=qe(c[j>>2]|0,8)|0;if(!(c[h>>2]|0)){if(!(c[f>>2]|0)){i=e;return}}else{j=5!=(Nd(c[c[g>>2]>>2]|0)|0);if(!(j&(c[f>>2]|0)!=0)){i=e;return}}j=c[f>>2]|0;h=j;h=bF(c[h>>2]|0,c[h+4>>2]|0,1,0)|0;c[j>>2]=h;c[j+4>>2]=D;i=e;return}function hm(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=qe(c[e>>2]|0,0)|0;a=c[e>>2]|0;if(!(c[d>>2]|0)){d=0;e=0;Yd(a,d,e);i=b;return}e=c[d>>2]|0;d=c[e>>2]|0;e=c[e+4>>2]|0;Yd(a,d,e);i=b;return}function im(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;n=i;i=i+48|0;o=n+36|0;l=n+32|0;h=n+28|0;m=n+24|0;q=n+20|0;j=n+16|0;g=n+12|0;k=n+8|0;p=n+4|0;r=n;c[o>>2]=b;c[l>>2]=e;c[h>>2]=f;if((Nd(c[c[h>>2]>>2]|0)|0)==5){i=n;return}c[q>>2]=qe(c[o>>2]|0,28)|0;if(!(c[q>>2]|0)){i=n;return}c[p>>2]=pe(c[o>>2]|0)|0;c[r>>2]=(d[(c[q>>2]|0)+24>>0]|0|0)==0&1;a[(c[q>>2]|0)+24>>0]=2;c[(c[q>>2]|0)+20>>2]=c[(c[p>>2]|0)+88>>2];if(!(c[r>>2]|0)){if((c[l>>2]|0)==2){c[j>>2]=Ed(c[(c[h>>2]|0)+4>>2]|0)|0;c[k>>2]=Fd(c[(c[h>>2]|0)+4>>2]|0)|0}else{c[j>>2]=9776;c[k>>2]=1}if(c[k>>2]|0)Vm(c[q>>2]|0,c[j>>2]|0,c[k>>2]|0)}c[m>>2]=Ed(c[c[h>>2]>>2]|0)|0;c[g>>2]=Fd(c[c[h>>2]>>2]|0)|0;if(!(c[m>>2]|0)){i=n;return}Vm(c[q>>2]|0,c[m>>2]|0,c[g>>2]|0);i=n;return}function jm(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;f=b+4|0;e=b;c[f>>2]=a;c[e>>2]=qe(c[f>>2]|0,0)|0;if(!(c[e>>2]|0)){i=b;return}if((d[(c[e>>2]|0)+25>>0]|0|0)==2){he(c[f>>2]|0);i=b;return}a=c[f>>2]|0;if((d[(c[e>>2]|0)+25>>0]|0|0)==1){ie(a);i=b;return}else{$d(a,pc(c[e>>2]|0)|0,-1,13);i=b;return}}function km(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;k=i;i=i+48|0;f=k+36|0;n=k+32|0;l=k+28|0;g=k+24|0;h=k+20|0;e=k+16|0;p=k+12|0;o=k+8|0;j=k+4|0;m=k;c[f>>2]=a;c[n>>2]=b;c[l>>2]=d;c[e>>2]=0;c[o>>2]=pe(c[f>>2]|0)|0;c[h>>2]=Ed(c[c[l>>2]>>2]|0)|0;c[g>>2]=Ed(c[(c[l>>2]|0)+4>>2]|0)|0;c[p>>2]=Fd(c[c[l>>2]>>2]|0)|0;if((c[p>>2]|0)>(c[(c[o>>2]|0)+120>>2]|0)){Ud(c[f>>2]|0,9688,-1);i=k;return}do if((c[n>>2]|0)==3){c[j>>2]=Ed(c[(c[l>>2]|0)+8>>2]|0)|0;if(!(c[j>>2]|0)){i=k;return}if((Tm(c[j>>2]|0,-1)|0)==1){c[e>>2]=Um(j)|0;break}Ud(c[f>>2]|0,9728,-1);i=k;return}while(0);if(!((c[g>>2]|0)!=0&(c[h>>2]|0)!=0)){i=k;return}c[m>>2]=oe(c[f>>2]|0)|0;p=c[f>>2]|0;Wd(p,jf(c[h>>2]|0,c[g>>2]|0,c[m>>2]|0,c[e>>2]|0)|0);i=k;return}function lm(){var a=0,b=0,d=0,e=0;a=i;i=i+16|0;b=a+8|0;d=a+4|0;e=a;c[d>>2]=1576;c[e>>2]=9016;c[b>>2]=0;while(1){if((c[b>>2]|0)>=8)break;xk(c[d>>2]|0,(c[e>>2]|0)+((c[b>>2]|0)*36|0)|0);c[b>>2]=(c[b>>2]|0)+1}i=a;return}function mm(){var a=0,b=0,d=0,e=0;a=i;i=i+16|0;b=a+8|0;d=a+4|0;e=a;c[d>>2]=1576;c[e>>2]=8792;c[b>>2]=0;while(1){if((c[b>>2]|0)>=3)break;xk(c[d>>2]|0,(c[e>>2]|0)+((c[b>>2]|0)*36|0)|0);c[b>>2]=(c[b>>2]|0)+1}i=a;return}function nm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;n=i;i=i+64|0;m=n;o=n+60|0;s=n+52|0;j=n+48|0;k=n+44|0;p=n+40|0;l=n+32|0;q=n+28|0;r=n+24|0;f=n+20|0;h=n+16|0;c[o>>2]=b;c[n+56>>2]=d;c[s>>2]=e;c[j>>2]=Ed(c[c[s>>2]>>2]|0)|0;c[k>>2]=Ed(c[(c[s>>2]|0)+4>>2]|0)|0;c[q>>2]=c[j>>2];c[r>>2]=0;c[h>>2]=pe(c[o>>2]|0)|0;if(!(c[j>>2]|0)){i=n;return}do{if(!(a[c[q>>2]>>0]|0)){g=7;break}c[l>>2]=c[q>>2];c[l+4>>2]=c[r>>2];do{c[q>>2]=(c[q>>2]|0)+(c[r>>2]|0);c[r>>2]=qm(c[q>>2]|0,p)|0}while((c[p>>2]|0)==151)}while((c[p>>2]|0)!=22&(c[p>>2]|0)!=125);if((g|0)==7){i=n;return}s=c[h>>2]|0;e=c[j>>2]|0;d=c[k>>2]|0;b=(c[l>>2]|0)+(c[l+4>>2]|0)|0;c[m>>2]=(c[l>>2]|0)-(c[j>>2]|0);c[m+4>>2]=e;c[m+8>>2]=d;c[m+12>>2]=b;c[f>>2]=Te(s,9e3,m)|0;$d(c[o>>2]|0,c[f>>2]|0,-1,16);i=n;return}function om(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;o=i;i=i+80|0;q=o;s=o+68|0;t=o+60|0;f=o+56|0;p=o+52|0;j=o+48|0;m=o+40|0;h=o+32|0;k=o+28|0;l=o+24|0;r=o+20|0;n=o+16|0;c[s>>2]=b;c[o+64>>2]=d;c[t>>2]=e;c[f>>2]=Ed(c[c[t>>2]>>2]|0)|0;c[p>>2]=Ed(c[(c[t>>2]|0)+4>>2]|0)|0;c[h>>2]=3;c[k>>2]=c[f>>2];c[l>>2]=0;c[n>>2]=pe(c[s>>2]|0)|0;if(!(c[f>>2]|0)){i=o;return}while(1){if(!(a[c[k>>2]>>0]|0)){g=8;break}c[m>>2]=c[k>>2];c[m+4>>2]=c[l>>2];do{c[k>>2]=(c[k>>2]|0)+(c[l>>2]|0);c[l>>2]=qm(c[k>>2]|0,j)|0}while((c[j>>2]|0)==151);t=(c[h>>2]|0)+1|0;c[h>>2]=t;c[h>>2]=(c[j>>2]|0)==122|(c[j>>2]|0)==107?0:t;if((c[h>>2]|0)!=2)continue;if(!((c[j>>2]|0)!=137&(c[j>>2]|0)!=46&(c[j>>2]|0)!=5))break}if((g|0)==8){i=o;return}t=c[n>>2]|0;e=c[f>>2]|0;d=c[p>>2]|0;b=(c[m>>2]|0)+(c[m+4>>2]|0)|0;c[q>>2]=(c[m>>2]|0)-(c[f>>2]|0);c[q+4>>2]=e;c[q+8>>2]=d;c[q+12>>2]=b;c[r>>2]=Te(t,9e3,q)|0;$d(c[s>>2]|0,c[r>>2]|0,-1,16);i=o;return}function pm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=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;n=i;i=i+80|0;k=n;m=n+68|0;u=n+60|0;g=n+56|0;j=n+52|0;l=n+48|0;h=n+44|0;s=n+40|0;o=n+36|0;f=n+32|0;q=n+28|0;t=n+24|0;r=n+20|0;p=n+16|0;c[m>>2]=b;c[n+64>>2]=d;c[u>>2]=e;c[g>>2]=pe(c[m>>2]|0)|0;c[j>>2]=0;c[h>>2]=Ed(c[c[u>>2]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|0)!=45){c[c[m>>2]>>2]=90;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0}c[j>>2]=2;while(1){b=d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0;c[k>>2]=b;if(!((b|0)!=0&(c[k>>2]|0)!=10))break;c[j>>2]=(c[j>>2]|0)+1}c[c[m>>2]>>2]=151;c[f>>2]=c[j>>2];b=c[f>>2]|0;i=g;return b|0};case 59:{c[c[m>>2]>>2]=1;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0};case 38:{c[c[m>>2]>>2]=85;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0};case 40:{c[c[m>>2]>>2]=22;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0};case 62:{b=d[(c[h>>2]|0)+1>>0]|0;c[k>>2]=b;if((b|0)==61){c[c[m>>2]>>2]=83;c[f>>2]=2;b=c[f>>2]|0;i=g;return b|0}h=c[m>>2]|0;if((c[k>>2]|0)==62){c[h>>2]=88;c[f>>2]=2;b=c[f>>2]|0;i=g;return b|0}else{c[h>>2]=80;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0}};case 124:{j=c[m>>2]|0;if((d[(c[h>>2]|0)+1>>0]|0)!=124){c[j>>2]=86;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0}else{c[j>>2]=94;c[f>>2]=2;b=c[f>>2]|0;i=g;return b|0}};case 126:{c[c[m>>2]>>2]=96;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0};case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:break;case 61:{c[c[m>>2]>>2]=79;c[f>>2]=1+((d[(c[h>>2]|0)+1>>0]|0)==61&1);b=c[f>>2]|0;i=g;return b|0};case 44:{c[c[m>>2]>>2]=26;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0};case 60:{b=d[(c[h>>2]|0)+1>>0]|0;c[k>>2]=b;if((b|0)==61){c[c[m>>2]>>2]=81;c[f>>2]=2;b=c[f>>2]|0;i=g;return b|0}if((c[k>>2]|0)==62){c[c[m>>2]>>2]=78;c[f>>2]=2;b=c[f>>2]|0;i=g;return b|0}h=c[m>>2]|0;if((c[k>>2]|0)==60){c[h>>2]=87;c[f>>2]=2;b=c[f>>2]|0;i=g;return b|0}else{c[h>>2]=82;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0}};case 46:{if(!(d[1224+(d[(c[h>>2]|0)+1>>0]|0)>>0]&4)){c[c[m>>2]>>2]=122;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0}break};case 13:case 12:case 10:case 9:case 32:{c[j>>2]=1;while(1){if(!(d[1224+(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)>>0]&1))break;c[j>>2]=(c[j>>2]|0)+1}c[c[m>>2]>>2]=151;c[f>>2]=c[j>>2];b=c[f>>2]|0;i=g;return b|0};case 37:{c[c[m>>2]>>2]=93;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0};case 88:case 120:{if((d[(c[h>>2]|0)+1>>0]|0)==39){c[c[m>>2]>>2]=134;c[j>>2]=2;while(1){k=c[j>>2]|0;if(!(d[1224+(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)>>0]&8))break;c[j>>2]=k+1}if(!((d[(c[h>>2]|0)+k>>0]|0)==39?((c[j>>2]|0)%2|0|0)==0:0))l=125;a:do if((l|0)==125){c[c[m>>2]>>2]=150;while(1){if(!(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0))break a;if((d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)==39)break a;c[j>>2]=(c[j>>2]|0)+1}}while(0);if(a[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)c[j>>2]=(c[j>>2]|0)+1;c[f>>2]=c[j>>2];b=c[f>>2]|0;i=g;return b|0}else l=132;break};case 91:{c[j>>2]=1;c[k>>2]=d[c[h>>2]>>0];while(1){if((c[k>>2]|0)==93)break;b=d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0;c[k>>2]=b;if(!b)break;c[j>>2]=(c[j>>2]|0)+1}c[c[m>>2]>>2]=(c[k>>2]|0)==93?27:150;c[f>>2]=c[j>>2];b=c[f>>2]|0;i=g;return b|0};case 42:{c[c[m>>2]>>2]=91;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0};case 58:case 35:case 64:case 36:{c[n>>2]=0;c[c[m>>2]>>2]=135;c[j>>2]=1;while(1){b=d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0;c[k>>2]=b;if(!b)break;if(d[1224+(c[k>>2]&255)>>0]&70)c[n>>2]=(c[n>>2]|0)+1;else{if((c[k>>2]|0)==40&(c[n>>2]|0)>0){l=107;break}if((c[k>>2]|0)!=58)break;if((d[(c[h>>2]|0)+((c[j>>2]|0)+1)>>0]|0)!=58)break;c[j>>2]=(c[j>>2]|0)+1}c[j>>2]=(c[j>>2]|0)+1}do if((l|0)==107){while(1){c[j>>2]=(c[j>>2]|0)+1;b=d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0;c[k>>2]=b;if(!b)break;if((c[k>>2]|0)!=41?(d[1224+(c[k>>2]&255)>>0]&1|0)==0:0)l=107;else break}if((c[k>>2]|0)==41){c[j>>2]=(c[j>>2]|0)+1;break}else{c[c[m>>2]>>2]=150;break}}while(0);if(!(c[n>>2]|0))c[c[m>>2]>>2]=150;c[f>>2]=c[j>>2];b=c[f>>2]|0;i=g;return b|0};case 34:case 39:case 96:{c[o>>2]=d[c[h>>2]>>0];c[j>>2]=1;while(1){b=d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0;c[k>>2]=b;if(!b)break;if((c[k>>2]|0)==(c[o>>2]|0)){if((d[(c[h>>2]|0)+((c[j>>2]|0)+1)>>0]|0)!=(c[o>>2]|0))break;c[j>>2]=(c[j>>2]|0)+1}c[j>>2]=(c[j>>2]|0)+1}if((c[k>>2]|0)==39){c[c[m>>2]>>2]=97;c[f>>2]=(c[j>>2]|0)+1;b=c[f>>2]|0;i=g;return b|0}h=c[m>>2]|0;if(c[k>>2]|0){c[h>>2]=27;c[f>>2]=(c[j>>2]|0)+1;b=c[f>>2]|0;i=g;return b|0}else{c[h>>2]=150;c[f>>2]=c[j>>2];b=c[f>>2]|0;i=g;return b|0}};case 41:{c[c[m>>2]>>2]=23;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0};case 33:{j=c[m>>2]|0;if((d[(c[h>>2]|0)+1>>0]|0)!=61){c[j>>2]=150;c[f>>2]=2;b=c[f>>2]|0;i=g;return b|0}else{c[j>>2]=78;c[f>>2]=2;b=c[f>>2]|0;i=g;return b|0}};case 47:{if((d[(c[h>>2]|0)+1>>0]|0)==42?(d[(c[h>>2]|0)+2>>0]|0)!=0:0){c[j>>2]=3;c[k>>2]=d[(c[h>>2]|0)+2>>0];while(1){if((c[k>>2]|0)==42?(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)==47:0)break;b=d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0;c[k>>2]=b;if(!b)break;c[j>>2]=(c[j>>2]|0)+1}if(c[k>>2]|0)c[j>>2]=(c[j>>2]|0)+1;c[c[m>>2]>>2]=151;c[f>>2]=c[j>>2];b=c[f>>2]|0;i=g;return b|0}c[c[m>>2]>>2]=92;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0};case 43:{c[c[m>>2]>>2]=89;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0};case 63:{c[c[m>>2]>>2]=135;c[j>>2]=1;while(1){k=c[j>>2]|0;if(!(d[1224+(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)>>0]&4))break;c[j>>2]=k+1}c[f>>2]=k;b=c[f>>2]|0;i=g;return b|0};default:l=132}while(0);if((l|0)==132){if(!(d[1224+(d[c[h>>2]>>0]|0)>>0]&70)){c[c[m>>2]>>2]=150;c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0}c[j>>2]=1;while(1){if(!(d[1224+(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)>>0]&70))break;c[j>>2]=(c[j>>2]|0)+1}b=Cg(c[h>>2]|0,c[j>>2]|0)|0;c[c[m>>2]>>2]=b;c[f>>2]=c[j>>2];b=c[f>>2]|0;i=g;return b|0}c[c[m>>2]>>2]=132;do if((d[c[h>>2]>>0]|0)==48){if((d[(c[h>>2]|0)+1>>0]|0)!=120?(d[(c[h>>2]|0)+1>>0]|0)!=88:0)break;if(d[1224+(d[(c[h>>2]|0)+2>>0]|0)>>0]&8){c[j>>2]=3;while(1){k=c[j>>2]|0;if(!(d[1224+(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)>>0]&8))break;c[j>>2]=k+1}c[f>>2]=k;b=c[f>>2]|0;i=g;return b|0}}while(0);c[j>>2]=0;while(1){k=c[j>>2]|0;if(!(d[1224+(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)>>0]&4))break;c[j>>2]=k+1}if((d[(c[h>>2]|0)+k>>0]|0)==46){c[j>>2]=(c[j>>2]|0)+1;while(1){if(!(d[1224+(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)>>0]&4))break;c[j>>2]=(c[j>>2]|0)+1}c[c[m>>2]>>2]=133}if(!((d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)!=101?(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)!=69:0))l=82;do if((l|0)==82){if(!(d[1224+(d[(c[h>>2]|0)+((c[j>>2]|0)+1)>>0]|0)>>0]&4)){if((d[(c[h>>2]|0)+((c[j>>2]|0)+1)>>0]|0)!=43?(d[(c[h>>2]|0)+((c[j>>2]|0)+1)>>0]|0)!=45:0)break;if(!(d[1224+(d[(c[h>>2]|0)+((c[j>>2]|0)+2)>>0]|0)>>0]&4))break}c[j>>2]=(c[j>>2]|0)+2;while(1){if(!(d[1224+(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)>>0]&4))break;c[j>>2]=(c[j>>2]|0)+1}c[c[m>>2]>>2]=133}while(0);while(1){if(!(d[1224+(d[(c[h>>2]|0)+(c[j>>2]|0)>>0]|0)>>0]&70))break;c[c[m>>2]>>2]=150;c[j>>2]=(c[j>>2]|0)+1}c[f>>2]=c[j>>2];b=c[f>>2]|0;i=g;return b|0}function rm(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;h=g+20|0;m=g+16|0;k=g+12|0;l=g;j=g+8|0;c[m>>2]=b;c[k>>2]=d;b=l;c[b>>2]=e;c[b+4>>2]=f;if(!(c[k>>2]|0)){c[h>>2]=0;b=c[h>>2]|0;i=g;return b|0}d=c[m>>2]|0;b=l;b=bF(c[b>>2]|0,c[b+4>>2]|0,1,0)|0;c[j>>2]=Qe(d,b,D)|0;if(c[j>>2]|0){dF(c[j>>2]|0,c[k>>2]|0,c[l>>2]|0)|0;a[(c[j>>2]|0)+(c[l>>2]|0)>>0]=0}c[h>>2]=c[j>>2];b=c[h>>2]|0;i=g;return b|0}function sm(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+32|0;e=d+12|0;g=d+8|0;h=d+16|0;f=d+4|0;j=d;c[g>>2]=b;if(!(c[g>>2]|0)){c[e>>2]=-1;b=c[e>>2]|0;i=d;return b|0}a[h>>0]=a[c[g>>2]>>0]|0;b=a[h>>0]|0;if((b|0)==91)a[h>>0]=93;else if(!((b|0)==96|(b|0)==34|(b|0)==39)){c[e>>2]=-1;b=c[e>>2]|0;i=d;return b|0}c[f>>2]=1;c[j>>2]=0;while(1){b=c[f>>2]|0;if((a[(c[g>>2]|0)+(c[f>>2]|0)>>0]|0)==(a[h>>0]|0)){if((a[(c[g>>2]|0)+(b+1)>>0]|0)!=(a[h>>0]|0))break;k=a[h>>0]|0;b=c[j>>2]|0;c[j>>2]=b+1;a[(c[g>>2]|0)+b>>0]=k;c[f>>2]=(c[f>>2]|0)+1}else{b=a[(c[g>>2]|0)+b>>0]|0;k=c[j>>2]|0;c[j>>2]=k+1;a[(c[g>>2]|0)+k>>0]=b}c[f>>2]=(c[f>>2]|0)+1}a[(c[g>>2]|0)+(c[j>>2]|0)>>0]=0;c[e>>2]=c[j>>2];k=c[e>>2]|0;i=d;return k|0}function tm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+64|0;g=e+56|0;j=e+52|0;h=e+48|0;f=e;c[g>>2]=a;c[j>>2]=b;c[h>>2]=d;if(Bm(c[g>>2]|0,c[j>>2]|0,c[h>>2]|0,f)|0){i=e;return}Cm(f);j=f;Sd(c[g>>2]|0,(+((c[j>>2]|0)>>>0)+4294967296.0*+(c[j+4>>2]|0))/864.0e5);i=e;return}function um(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+176|0;g=e+48|0;j=e+68|0;l=e+64|0;k=e+60|0;f=e;h=e+72|0;c[j>>2]=a;c[l>>2]=b;c[k>>2]=d;if(Bm(c[j>>2]|0,c[l>>2]|0,c[k>>2]|0,f)|0){i=e;return}Em(f);k=c[f+12>>2]|0;l=c[f+16>>2]|0;c[g>>2]=c[f+8>>2];c[g+4>>2]=k;c[g+8>>2]=l;sc(100,h,9672,g)|0;$d(c[j>>2]|0,h,-1,-1);i=e;return}function vm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0;e=i;i=i+176|0;g=e+48|0;k=e+68|0;m=e+64|0;l=e+60|0;f=e;j=e+72|0;c[k>>2]=a;c[m>>2]=b;c[l>>2]=d;if(Bm(c[k>>2]|0,c[m>>2]|0,c[l>>2]|0,f)|0){i=e;return}Fm(f);l=c[f+24>>2]|0;m=~~+h[f+32>>3];c[g>>2]=c[f+20>>2];c[g+4>>2]=l;c[g+8>>2]=m;sc(100,j,9656,g)|0;$d(c[k>>2]|0,j,-1,-1);i=e;return}function wm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0;e=i;i=i+192|0;g=e+48|0;k=e+80|0;m=e+76|0;l=e+72|0;f=e;j=e+84|0;c[k>>2]=a;c[m>>2]=b;c[l>>2]=d;if(Bm(c[k>>2]|0,c[m>>2]|0,c[l>>2]|0,f)|0){i=e;return}Dm(f);d=c[f+12>>2]|0;b=c[f+16>>2]|0;a=c[f+20>>2]|0;l=c[f+24>>2]|0;m=~~+h[f+32>>3];c[g>>2]=c[f+8>>2];c[g+4>>2]=d;c[g+8>>2]=b;c[g+12>>2]=a;c[g+16>>2]=l;c[g+20>>2]=m;sc(100,j,9624,g)|0;$d(c[k>>2]|0,j,-1,-1);i=e;return}function xm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=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;t=i;i=i+272|0;r=t+112|0;o=t+156|0;y=t+152|0;z=t+148|0;q=t+64|0;v=t+56|0;n=t+144|0;l=t+140|0;j=t+136|0;w=t+132|0;f=t+128|0;m=t+160|0;s=t+48|0;g=t+124|0;p=t;u=t+120|0;c[o>>2]=b;c[y>>2]=d;c[z>>2]=e;c[f>>2]=Ed(c[c[z>>2]>>2]|0)|0;if(!(c[f>>2]|0)){i=t;return}if(Bm(c[o>>2]|0,(c[y>>2]|0)-1|0,(c[z>>2]|0)+4|0,q)|0){i=t;return}c[w>>2]=pe(c[o>>2]|0)|0;c[n>>2]=0;b=v;c[b>>2]=1;c[b+4>>2]=0;a:while(1){if(!(a[(c[f>>2]|0)+(c[n>>2]|0)>>0]|0))break;if((a[(c[f>>2]|0)+(c[n>>2]|0)>>0]|0)==37){switch(a[(c[f>>2]|0)+((c[n>>2]|0)+1)>>0]|0){case 102:{d=v;b=v;c[b>>2]=bF(c[d>>2]|0,c[d+4>>2]|0,8,0)|0;c[b+4>>2]=D;break};case 87:case 83:case 77:case 109:case 72:case 100:{d=v;b=v;c[b>>2]=bF(c[d>>2]|0,c[d+4>>2]|0,1,0)|0;c[b+4>>2]=D;break};case 74:case 115:{d=v;b=v;c[b>>2]=bF(c[d>>2]|0,c[d+4>>2]|0,50,0)|0;c[b+4>>2]=D;break};case 89:{d=v;b=v;c[b>>2]=bF(c[d>>2]|0,c[d+4>>2]|0,8,0)|0;c[b+4>>2]=D;break};case 37:case 119:break;case 106:{d=v;b=v;c[b>>2]=bF(c[d>>2]|0,c[d+4>>2]|0,3,0)|0;c[b+4>>2]=D;break};default:{x=43;break a}}c[n>>2]=(c[n>>2]|0)+1}c[n>>2]=(c[n>>2]|0)+1;d=v;d=bF(c[d>>2]|0,c[d+4>>2]|0,1,0)|0;b=v;c[b>>2]=d;c[b+4>>2]=D}if((x|0)==43){i=t;return}b=v;d=c[b+4>>2]|0;if(!(d>>>0<0|(d|0)==0&(c[b>>2]|0)>>>0<100)){d=v;z=c[d+4>>2]|0;b=c[(c[w>>2]|0)+88>>2]|0;e=((b|0)<0)<<31>>31;if(z>>>0>e>>>0|((z|0)==(e|0)?(c[d>>2]|0)>>>0>b>>>0:0)){he(c[o>>2]|0);i=t;return}b=c[v>>2]|0;c[j>>2]=Qe(c[w>>2]|0,b,((b|0)<0)<<31>>31)|0;if(!(c[j>>2]|0)){ie(c[o>>2]|0);i=t;return}}else c[j>>2]=m;Cm(q);Dm(q);c[l>>2]=0;c[n>>2]=0;while(1){if(!(a[(c[f>>2]|0)+(c[n>>2]|0)>>0]|0))break;v=c[n>>2]|0;b:do if((a[(c[f>>2]|0)+(c[n>>2]|0)>>0]|0)!=37){d=a[(c[f>>2]|0)+v>>0]|0;b=c[l>>2]|0;c[l>>2]=b+1;a[(c[j>>2]|0)+b>>0]=d}else{c[n>>2]=v+1;do switch(a[(c[f>>2]|0)+(c[n>>2]|0)>>0]|0){case 106:case 87:{x=p+0|0;w=q+0|0;v=x+48|0;do{c[x>>2]=c[w>>2];x=x+4|0;w=w+4|0}while((x|0)<(v|0));a[p+42>>0]=0;c[p+12>>2]=1;c[p+16>>2]=1;Cm(p);d=q;b=p;c[g>>2]=jF(bF(ZE(c[d>>2]|0,c[d+4>>2]|0,c[b>>2]|0,c[b+4>>2]|0)|0,D|0,432e5,0)|0,D|0,864e5,0)|0;if((a[(c[f>>2]|0)+(c[n>>2]|0)>>0]|0)==87){b=q;b=bF(c[b>>2]|0,c[b+4>>2]|0,432e5,0)|0;b=jF(b|0,D|0,864e5,0)|0;b=kF(b|0,D|0,7,0)|0;c[u>>2]=b;b=(c[j>>2]|0)+(c[l>>2]|0)|0;c[r>>2]=((c[g>>2]|0)+7-(c[u>>2]|0)|0)/7|0;sc(3,b,9424,r)|0;c[l>>2]=(c[l>>2]|0)+2;break b}else{b=(c[j>>2]|0)+(c[l>>2]|0)|0;c[r>>2]=(c[g>>2]|0)+1;sc(4,b,9440,r)|0;c[l>>2]=(c[l>>2]|0)+3;break b}};case 77:{b=(c[j>>2]|0)+(c[l>>2]|0)|0;c[r>>2]=c[q+24>>2];sc(3,b,9424,r)|0;c[l>>2]=(c[l>>2]|0)+2;break b};case 115:{b=(c[j>>2]|0)+(c[l>>2]|0)|0;e=q;d=r;c[d>>2]=ZE(jF(c[e>>2]|0,c[e+4>>2]|0,1e3,0)|0,D|0,413362496,49)|0;c[d+4>>2]=D;sc(30,b,9456,r)|0;c[l>>2]=(Mb((c[j>>2]|0)+(c[l>>2]|0)|0)|0)+(c[l>>2]|0);break b};case 72:{b=(c[j>>2]|0)+(c[l>>2]|0)|0;c[r>>2]=c[q+20>>2];sc(3,b,9424,r)|0;c[l>>2]=(c[l>>2]|0)+2;break b};case 109:{b=(c[j>>2]|0)+(c[l>>2]|0)|0;c[r>>2]=c[q+12>>2];sc(3,b,9424,r)|0;c[l>>2]=(c[l>>2]|0)+2;break b};case 89:{b=(c[j>>2]|0)+(c[l>>2]|0)|0;c[r>>2]=c[q+8>>2];sc(5,b,9464,r)|0;c[l>>2]=(Mb((c[j>>2]|0)+(c[l>>2]|0)|0)|0)+(c[l>>2]|0);break b};case 74:{b=(c[j>>2]|0)+(c[l>>2]|0)|0;d=q;h[k>>3]=(+((c[d>>2]|0)>>>0)+4294967296.0*+(c[d+4>>2]|0))/864.0e5;c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];sc(20,b,9448,r)|0;c[l>>2]=(Mb((c[j>>2]|0)+(c[l>>2]|0)|0)|0)+(c[l>>2]|0);break b};case 100:{b=(c[j>>2]|0)+(c[l>>2]|0)|0;c[r>>2]=c[q+16>>2];sc(3,b,9424,r)|0;c[l>>2]=(c[l>>2]|0)+2;break b};case 119:{d=q;d=kF(jF(bF(c[d>>2]|0,c[d+4>>2]|0,1296e5,0)|0,D|0,864e5,0)|0,D|0,7,0)|0;b=c[l>>2]|0;c[l>>2]=b+1;a[(c[j>>2]|0)+b>>0]=((d&255)<<24>>24)+48;break b};case 83:{b=(c[j>>2]|0)+(c[l>>2]|0)|0;c[r>>2]=~~+h[q+32>>3];sc(3,b,9424,r)|0;c[l>>2]=(c[l>>2]|0)+2;break b};case 102:{h[s>>3]=+h[q+32>>3];if(+h[s>>3]>59.999)h[s>>3]=59.999;b=(c[j>>2]|0)+(c[l>>2]|0)|0;h[k>>3]=+h[s>>3];c[r>>2]=c[k>>2];c[r+4>>2]=c[k+4>>2];sc(7,b,9432,r)|0;c[l>>2]=(Mb((c[j>>2]|0)+(c[l>>2]|0)|0)|0)+(c[l>>2]|0);break b};default:{b=c[l>>2]|0;c[l>>2]=b+1;a[(c[j>>2]|0)+b>>0]=37;break b}}while(0)}while(0);c[n>>2]=(c[n>>2]|0)+1}a[(c[j>>2]|0)+(c[l>>2]|0)>>0]=0;$d(c[o>>2]|0,c[j>>2]|0,-1,(c[j>>2]|0)==(m|0)?-1:16);i=t;return}function ym(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;f=e+8|0;c[f>>2]=a;c[e+4>>2]=b;c[e>>2]=d;vm(c[f>>2]|0,0,0);i=e;return}function zm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;f=e+8|0;c[f>>2]=a;c[e+4>>2]=b;c[e>>2]=d;wm(c[f>>2]|0,0,0);i=e;return}function Am(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;f=e+8|0;c[f>>2]=a;c[e+4>>2]=b;c[e>>2]=d;um(c[f>>2]|0,0,0);i=e;return}function Bm(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0;h=i;i=i+32|0;g=h+28|0;k=h+24|0;o=h+20|0;m=h+16|0;l=h+12|0;p=h+8|0;j=h+4|0;n=h;c[k>>2]=b;c[o>>2]=d;c[m>>2]=e;c[l>>2]=f;e=(c[l>>2]|0)+0|0;f=e+48|0;do{c[e>>2]=0;e=e+4|0}while((e|0)<(f|0));if(!(c[o>>2]|0)){c[g>>2]=Gm(c[k>>2]|0,c[l>>2]|0)|0;b=c[g>>2]|0;i=h;return b|0}b=Nd(c[c[m>>2]>>2]|0)|0;c[n>>2]=b;f=c[c[m>>2]>>2]|0;do if((b|0)==2|(c[n>>2]|0)==1){q=+Hd(f)*864.0e5+.5;d=+O(q)>=1.0?q>0.0?(ca(+N(q/4294967296.0),4294967295.0)|0)>>>0:~~+_((q- +(~~q>>>0))/4294967296.0)>>>0:0;b=c[l>>2]|0;c[b>>2]=~~q>>>0;c[b+4>>2]=d;a[(c[l>>2]|0)+42>>0]=1}else{c[j>>2]=Ed(f)|0;if((c[j>>2]|0)!=0?(Hm(c[k>>2]|0,c[j>>2]|0,c[l>>2]|0)|0)==0:0)break;c[g>>2]=1;b=c[g>>2]|0;i=h;return b|0}while(0);c[p>>2]=1;while(1){if((c[p>>2]|0)>=(c[o>>2]|0)){j=14;break}c[j>>2]=Ed(c[(c[m>>2]|0)+(c[p>>2]<<2)>>2]|0)|0;if(!(c[j>>2]|0)){j=12;break}if(Im(c[k>>2]|0,c[j>>2]|0,c[l>>2]|0)|0){j=12;break}c[p>>2]=(c[p>>2]|0)+1}if((j|0)==12){c[g>>2]=1;b=c[g>>2]|0;i=h;return b|0}else if((j|0)==14){c[g>>2]=0;b=c[g>>2]|0;i=h;return b|0}return 0}function Cm(b){b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0.0;d=i;i=i+32|0;n=d+28|0;e=d+24|0;k=d+20|0;m=d+16|0;f=d+12|0;g=d+8|0;j=d+4|0;l=d;c[n>>2]=b;if(a[(c[n>>2]|0)+42>>0]|0){i=d;return}if(a[(c[n>>2]|0)+40>>0]|0){c[e>>2]=c[(c[n>>2]|0)+8>>2];c[k>>2]=c[(c[n>>2]|0)+12>>2];c[m>>2]=c[(c[n>>2]|0)+16>>2]}else{c[e>>2]=2e3;c[k>>2]=1;c[m>>2]=1}if((c[k>>2]|0)<=2){c[e>>2]=(c[e>>2]|0)+ -1;c[k>>2]=(c[k>>2]|0)+12}c[f>>2]=(c[e>>2]|0)/100|0;c[g>>2]=2-(c[f>>2]|0)+((c[f>>2]|0)/4|0);c[j>>2]=(((c[e>>2]|0)+4716|0)*36525|0)/100|0;c[l>>2]=(((c[k>>2]|0)+1|0)*306001|0)/1e4|0;o=(+((c[j>>2]|0)+(c[l>>2]|0)+(c[m>>2]|0)+(c[g>>2]|0)|0)-1524.5)*864.0e5;l=+O(o)>=1.0?o>0.0?(ca(+N(o/4294967296.0),4294967295.0)|0)>>>0:~~+_((o- +(~~o>>>0))/4294967296.0)>>>0:0;m=c[n>>2]|0;c[m>>2]=~~o>>>0;c[m+4>>2]=l;a[(c[n>>2]|0)+42>>0]=1;if(!(a[(c[n>>2]|0)+41>>0]|0)){i=d;return}l=$(c[(c[n>>2]|0)+20>>2]|0,36e5)|0;l=l+((c[(c[n>>2]|0)+24>>2]|0)*6e4|0)|0;o=+h[(c[n>>2]|0)+32>>3]*1.0e3;l=bF(l|0,((l|0)<0)<<31>>31|0,~~o>>>0|0,(+O(o)>=1.0?o>0.0?(ca(+N(o/4294967296.0),4294967295.0)|0)>>>0:~~+_((o- +(~~o>>>0))/4294967296.0)>>>0:0)|0)|0;m=c[n>>2]|0;k=m;l=bF(c[k>>2]|0,c[k+4>>2]|0,l|0,D|0)|0;c[m>>2]=l;c[m+4>>2]=D;if(!(a[(c[n>>2]|0)+43>>0]|0)){i=d;return}l=(c[(c[n>>2]|0)+28>>2]|0)*6e4|0;m=c[n>>2]|0;k=m;l=ZE(c[k>>2]|0,c[k+4>>2]|0,l|0,((l|0)<0)<<31>>31|0)|0;c[m>>2]=l;c[m+4>>2]=D;a[(c[n>>2]|0)+40>>0]=0;a[(c[n>>2]|0)+41>>0]=0;a[(c[n>>2]|0)+43>>0]=0;i=d;return}function Dm(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;Em(c[d>>2]|0);Fm(c[d>>2]|0);i=b;return}function Em(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;h=i;i=i+32|0;e=h+28|0;f=h+24|0;g=h+20|0;d=h+16|0;j=h+12|0;k=h+8|0;l=h+4|0;m=h;c[e>>2]=b;if(a[(c[e>>2]|0)+40>>0]|0){i=h;return}b=c[e>>2]|0;if(a[(c[e>>2]|0)+42>>0]|0){b=bF(c[b>>2]|0,c[b+4>>2]|0,432e5,0)|0;b=jF(b|0,D|0,864e5,0)|0;c[f>>2]=b;c[g>>2]=~~((+(c[f>>2]|0)-1867216.25)/36524.25);c[g>>2]=(c[f>>2]|0)+1+(c[g>>2]|0)-((c[g>>2]|0)/4|0);c[d>>2]=(c[g>>2]|0)+1524;c[j>>2]=~~((+(c[d>>2]|0)-122.1)/365.25);c[k>>2]=((c[j>>2]|0)*36525|0)/100|0;c[l>>2]=~~(+((c[d>>2]|0)-(c[k>>2]|0)|0)/30.6001);c[m>>2]=~~(+(c[l>>2]|0)*30.6001);c[(c[e>>2]|0)+16>>2]=(c[d>>2]|0)-(c[k>>2]|0)-(c[m>>2]|0);b=c[l>>2]|0;c[(c[e>>2]|0)+12>>2]=(c[l>>2]|0)<14?b-1|0:b-13|0;b=c[j>>2]|0;c[(c[e>>2]|0)+8>>2]=(c[(c[e>>2]|0)+12>>2]|0)>2?b-4716|0:b-4715|0}else{c[b+8>>2]=2e3;c[(c[e>>2]|0)+12>>2]=1;c[(c[e>>2]|0)+16>>2]=1}a[(c[e>>2]|0)+40>>0]=1;i=h;return}function Fm(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=b;if(a[(c[e>>2]|0)+41>>0]|0){i=d;return}Cm(c[e>>2]|0);b=c[e>>2]|0;b=bF(c[b>>2]|0,c[b+4>>2]|0,432e5,0)|0;b=kF(b|0,D|0,864e5,0)|0;c[f>>2]=b;h[(c[e>>2]|0)+32>>3]=+(c[f>>2]|0)/1.0e3;c[f>>2]=~~+h[(c[e>>2]|0)+32>>3];b=(c[e>>2]|0)+32|0;h[b>>3]=+h[b>>3]- +(c[f>>2]|0);c[(c[e>>2]|0)+20>>2]=(c[f>>2]|0)/3600|0;c[f>>2]=(c[f>>2]|0)-((c[(c[e>>2]|0)+20>>2]|0)*3600|0);c[(c[e>>2]|0)+24>>2]=(c[f>>2]|0)/60|0;b=(c[e>>2]|0)+32|0;h[b>>3]=+h[b>>3]+ +((c[f>>2]|0)-((c[(c[e>>2]|0)+24>>2]|0)*60|0)|0);a[(c[e>>2]|0)+41>>0]=1;i=d;return}function Gm(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;h=e+4|0;g=e;c[h>>2]=b;c[g>>2]=d;d=Rm(c[h>>2]|0)|0;b=c[g>>2]|0;c[b>>2]=d;c[b+4>>2]=D;b=c[g>>2]|0;d=c[b+4>>2]|0;if((d|0)>0|(d|0)==0&(c[b>>2]|0)>>>0>0){a[(c[g>>2]|0)+42>>0]=1;c[f>>2]=0;h=c[f>>2]|0;i=e;return h|0}else{c[f>>2]=1;h=c[f>>2]|0;i=e;return h|0}return 0}function Hm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0.0;f=i;i=i+32|0;g=f+20|0;j=f+16|0;l=f+12|0;k=f+8|0;m=f;c[j>>2]=b;c[l>>2]=d;c[k>>2]=e;if(!(Qm(c[l>>2]|0,c[k>>2]|0)|0)){c[g>>2]=0;b=c[g>>2]|0;i=f;return b|0}if(!(Mm(c[l>>2]|0,c[k>>2]|0)|0)){c[g>>2]=0;b=c[g>>2]|0;i=f;return b|0}if(!(xc(c[l>>2]|0,9616)|0)){c[g>>2]=Gm(c[j>>2]|0,c[k>>2]|0)|0;b=c[g>>2]|0;i=f;return b|0}b=c[l>>2]|0;if(Lm(b,m,Mb(c[l>>2]|0)|0,1)|0){n=+h[m>>3]*864.0e5+.5;d=+O(n)>=1.0?n>0.0?(ca(+N(n/4294967296.0),4294967295.0)|0)>>>0:~~+_((n- +(~~n>>>0))/4294967296.0)>>>0:0;b=c[k>>2]|0;c[b>>2]=~~n>>>0;c[b+4>>2]=d;a[(c[k>>2]|0)+42>>0]=1;c[g>>2]=0;b=c[g>>2]|0;i=f;return b|0}else{c[g>>2]=1;b=c[g>>2]|0;i=f;return b|0}return 0}function Im(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0.0;g=i;i=i+160|0;x=g+124|0;z=g+120|0;k=g+116|0;l=g+112|0;v=g+108|0;q=g+80|0;j=g+104|0;y=g+72|0;w=g+64|0;r=g+56|0;m=g+100|0;n=g+8|0;o=g;t=g+96|0;s=g+92|0;p=g+88|0;c[x>>2]=b;c[z>>2]=e;c[k>>2]=f;c[l>>2]=1;c[j>>2]=g+128;c[v>>2]=0;while(1){if((c[v>>2]|0)>=29)break;if(!(a[(c[z>>2]|0)+(c[v>>2]|0)>>0]|0))break;a[(c[j>>2]|0)+(c[v>>2]|0)>>0]=a[440+(d[(c[z>>2]|0)+(c[v>>2]|0)>>0]|0)>>0]|0;c[v>>2]=(c[v>>2]|0)+1}a[(c[j>>2]|0)+(c[v>>2]|0)>>0]=0;switch(a[c[j>>2]>>0]|0){case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:case 45:case 43:{c[v>>2]=1;while(1){if(!(a[(c[j>>2]|0)+(c[v>>2]|0)>>0]|0))break;if((a[(c[j>>2]|0)+(c[v>>2]|0)>>0]|0)==58)break;if(d[1224+(d[(c[j>>2]|0)+(c[v>>2]|0)>>0]|0)>>0]&1)break;c[v>>2]=(c[v>>2]|0)+1}if(!(Lm(c[j>>2]|0,q,c[v>>2]|0,1)|0)){c[l>>2]=1;b=c[l>>2]|0;i=g;return b|0}if((a[(c[j>>2]|0)+(c[v>>2]|0)>>0]|0)==58){c[m>>2]=c[j>>2];if(!(d[1224+(d[c[m>>2]>>0]|0)>>0]&4))c[m>>2]=(c[m>>2]|0)+1;q=n+0|0;p=q+48|0;do{c[q>>2]=0;q=q+4|0}while((q|0)<(p|0));if(Mm(c[m>>2]|0,n)|0){b=c[l>>2]|0;i=g;return b|0}Cm(n);e=n;e=ZE(c[e>>2]|0,c[e+4>>2]|0,432e5,0)|0;b=n;c[b>>2]=e;c[b+4>>2]=D;b=n;b=jF(c[b>>2]|0,c[b+4>>2]|0,864e5,0)|0;e=o;c[e>>2]=b;c[e+4>>2]=D;e=o;e=lF(c[e>>2]|0,c[e+4>>2]|0,864e5,0)|0;b=n;e=ZE(c[b>>2]|0,c[b+4>>2]|0,e|0,D|0)|0;b=n;c[b>>2]=e;c[b+4>>2]=D;if((a[c[j>>2]>>0]|0)==45){e=n;e=ZE(0,0,c[e>>2]|0,c[e+4>>2]|0)|0;b=n;c[b>>2]=e;c[b+4>>2]=D}Cm(c[k>>2]|0);Km(c[k>>2]|0);e=n;b=c[k>>2]|0;f=b;e=bF(c[f>>2]|0,c[f+4>>2]|0,c[e>>2]|0,c[e+4>>2]|0)|0;c[b>>2]=e;c[b+4>>2]=D;c[l>>2]=0;b=c[l>>2]|0;i=g;return b|0}c[j>>2]=(c[j>>2]|0)+(c[v>>2]|0);while(1){m=c[j>>2]|0;if(!(d[1224+(d[c[j>>2]>>0]|0)>>0]&1))break;c[j>>2]=m+1}c[v>>2]=Mb(m)|0;if((c[v>>2]|0)>10|(c[v>>2]|0)<3){b=c[l>>2]|0;i=g;return b|0}if((a[(c[j>>2]|0)+((c[v>>2]|0)-1)>>0]|0)==115){a[(c[j>>2]|0)+((c[v>>2]|0)-1)>>0]=0;c[v>>2]=(c[v>>2]|0)+ -1}Cm(c[k>>2]|0);c[l>>2]=0;h[r>>3]=+h[q>>3]<0.0?-.5:.5;if((c[v>>2]|0)==3?(UE(c[j>>2]|0,9560)|0)==0:0){A=+h[q>>3]*864.0e5+ +h[r>>3];e=+O(A)>=1.0?A>0.0?(ca(+N(A/4294967296.0),4294967295.0)|0)>>>0:~~+_((A- +(~~A>>>0))/4294967296.0)>>>0:0;b=c[k>>2]|0;f=b;e=bF(c[f>>2]|0,c[f+4>>2]|0,~~A>>>0|0,e|0)|0;c[b>>2]=e;c[b+4>>2]=D}else u=50;do if((u|0)==50){if((c[v>>2]|0)==4?(UE(c[j>>2]|0,9568)|0)==0:0){A=+h[q>>3]*36.0e5+ +h[r>>3];e=+O(A)>=1.0?A>0.0?(ca(+N(A/4294967296.0),4294967295.0)|0)>>>0:~~+_((A- +(~~A>>>0))/4294967296.0)>>>0:0;b=c[k>>2]|0;f=b;e=bF(c[f>>2]|0,c[f+4>>2]|0,~~A>>>0|0,e|0)|0;c[b>>2]=e;c[b+4>>2]=D;break}if((c[v>>2]|0)==6?(UE(c[j>>2]|0,9576)|0)==0:0){A=+h[q>>3]*6.0e4+ +h[r>>3];e=+O(A)>=1.0?A>0.0?(ca(+N(A/4294967296.0),4294967295.0)|0)>>>0:~~+_((A- +(~~A>>>0))/4294967296.0)>>>0:0;b=c[k>>2]|0;f=b;e=bF(c[f>>2]|0,c[f+4>>2]|0,~~A>>>0|0,e|0)|0;c[b>>2]=e;c[b+4>>2]=D;break}if((c[v>>2]|0)==6?(UE(c[j>>2]|0,9584)|0)==0:0){A=+h[q>>3]*1.0e3+ +h[r>>3];e=+O(A)>=1.0?A>0.0?(ca(+N(A/4294967296.0),4294967295.0)|0)>>>0:~~+_((A- +(~~A>>>0))/4294967296.0)>>>0:0;b=c[k>>2]|0;f=b;e=bF(c[f>>2]|0,c[f+4>>2]|0,~~A>>>0|0,e|0)|0;c[b>>2]=e;c[b+4>>2]=D;break}if((c[v>>2]|0)==5?(UE(c[j>>2]|0,9544)|0)==0:0){Dm(c[k>>2]|0);b=(c[k>>2]|0)+12|0;c[b>>2]=(c[b>>2]|0)+~~+h[q>>3];b=c[(c[k>>2]|0)+12>>2]|0;c[t>>2]=(((c[(c[k>>2]|0)+12>>2]|0)>0?b-1|0:b-12|0)|0)/12|0;b=(c[k>>2]|0)+8|0;c[b>>2]=(c[b>>2]|0)+(c[t>>2]|0);b=(c[k>>2]|0)+12|0;c[b>>2]=(c[b>>2]|0)-((c[t>>2]|0)*12|0);a[(c[k>>2]|0)+42>>0]=0;Cm(c[k>>2]|0);c[s>>2]=~~+h[q>>3];if(!(+(c[s>>2]|0)!=+h[q>>3]))break;A=(+h[q>>3]- +(c[s>>2]|0))*30.0*864.0e5+ +h[r>>3];e=+O(A)>=1.0?A>0.0?(ca(+N(A/4294967296.0),4294967295.0)|0)>>>0:~~+_((A- +(~~A>>>0))/4294967296.0)>>>0:0;b=c[k>>2]|0;f=b;e=bF(c[f>>2]|0,c[f+4>>2]|0,~~A>>>0|0,e|0)|0;c[b>>2]=e;c[b+4>>2]=D;break}if((c[v>>2]|0)==4?(UE(c[j>>2]|0,9552)|0)==0:0){c[p>>2]=~~+h[q>>3];Dm(c[k>>2]|0);b=(c[k>>2]|0)+8|0;c[b>>2]=(c[b>>2]|0)+(c[p>>2]|0);a[(c[k>>2]|0)+42>>0]=0;Cm(c[k>>2]|0);if(!(+(c[p>>2]|0)!=+h[q>>3]))break;A=(+h[q>>3]- +(c[p>>2]|0))*365.0*864.0e5+ +h[r>>3];e=+O(A)>=1.0?A>0.0?(ca(+N(A/4294967296.0),4294967295.0)|0)>>>0:~~+_((A- +(~~A>>>0))/4294967296.0)>>>0:0;b=c[k>>2]|0;f=b;e=bF(c[f>>2]|0,c[f+4>>2]|0,~~A>>>0|0,e|0)|0;c[b>>2]=e;c[b+4>>2]=D;break}c[l>>2]=1}while(0);Km(c[k>>2]|0);b=c[l>>2]|0;i=g;return b|0};case 119:{if(VE(c[j>>2]|0,9512,8)|0){b=c[l>>2]|0;i=g;return b|0}b=(c[j>>2]|0)+8|0;if(!(Lm(b,q,Mb((c[j>>2]|0)+8|0)|0,1)|0)){b=c[l>>2]|0;i=g;return b|0}b=~~+h[q>>3];c[v>>2]=b;if(!(((c[v>>2]|0)>=0?+(b|0)==+h[q>>3]:0)&+h[q>>3]<7.0)){b=c[l>>2]|0;i=g;return b|0}Dm(c[k>>2]|0);a[(c[k>>2]|0)+43>>0]=0;a[(c[k>>2]|0)+42>>0]=0;Cm(c[k>>2]|0);z=c[k>>2]|0;z=bF(c[z>>2]|0,c[z+4>>2]|0,1296e5,0)|0;z=jF(z|0,D|0,864e5,0)|0;z=kF(z|0,D|0,7,0)|0;e=w;c[e>>2]=z;c[e+4>>2]=D;e=w;z=c[e+4>>2]|0;b=c[v>>2]|0;f=((b|0)<0)<<31>>31;if((z|0)>(f|0)|((z|0)==(f|0)?(c[e>>2]|0)>>>0>b>>>0:0)){e=w;e=ZE(c[e>>2]|0,c[e+4>>2]|0,7,0)|0;b=w;c[b>>2]=e;c[b+4>>2]=D}b=c[v>>2]|0;e=w;e=ZE(b|0,((b|0)<0)<<31>>31|0,c[e>>2]|0,c[e+4>>2]|0)|0;e=lF(e|0,D|0,864e5,0)|0;b=c[k>>2]|0;f=b;e=bF(c[f>>2]|0,c[f+4>>2]|0,e|0,D|0)|0;c[b>>2]=e;c[b+4>>2]=D;Km(c[k>>2]|0);c[l>>2]=0;b=c[l>>2]|0;i=g;return b|0};case 108:{if(UE(c[j>>2]|0,9472)|0){b=c[l>>2]|0;i=g;return b|0}Cm(c[k>>2]|0);e=Jm(c[k>>2]|0,c[x>>2]|0,l)|0;b=c[k>>2]|0;f=b;e=bF(c[f>>2]|0,c[f+4>>2]|0,e|0,D|0)|0;c[b>>2]=e;c[b+4>>2]=D;Km(c[k>>2]|0);b=c[l>>2]|0;i=g;return b|0};case 115:{if(VE(c[j>>2]|0,9528,9)|0){b=c[l>>2]|0;i=g;return b|0}c[j>>2]=(c[j>>2]|0)+9;Em(c[k>>2]|0);a[(c[k>>2]|0)+41>>0]=1;c[(c[k>>2]|0)+24>>2]=0;c[(c[k>>2]|0)+20>>2]=0;h[(c[k>>2]|0)+32>>3]=0.0;a[(c[k>>2]|0)+43>>0]=0;a[(c[k>>2]|0)+42>>0]=0;if(!(UE(c[j>>2]|0,9544)|0)){c[(c[k>>2]|0)+16>>2]=1;c[l>>2]=0;b=c[l>>2]|0;i=g;return b|0}if(!(UE(c[j>>2]|0,9552)|0)){Em(c[k>>2]|0);c[(c[k>>2]|0)+12>>2]=1;c[(c[k>>2]|0)+16>>2]=1;c[l>>2]=0;b=c[l>>2]|0;i=g;return b|0}if(UE(c[j>>2]|0,9560)|0){b=c[l>>2]|0;i=g;return b|0}c[l>>2]=0;b=c[l>>2]|0;i=g;return b|0};case 117:{if((UE(c[j>>2]|0,9488)|0)==0?(a[(c[k>>2]|0)+42>>0]|0)!=0:0){e=c[k>>2]|0;e=bF(c[e>>2]|0,c[e+4>>2]|0,43200,0)|0;e=jF(e|0,D|0,86400,0)|0;e=bF(e|0,D|0,1045635584,49096)|0;b=c[k>>2]|0;c[b>>2]=e;c[b+4>>2]=D;Km(c[k>>2]|0);c[l>>2]=0;b=c[l>>2]|0;i=g;return b|0}if(UE(c[j>>2]|0,9504)|0){b=c[l>>2]|0;i=g;return b|0}Cm(c[k>>2]|0);e=Jm(c[k>>2]|0,c[x>>2]|0,l)|0;b=y;c[b>>2]=e;c[b+4>>2]=D;if(c[l>>2]|0){b=c[l>>2]|0;i=g;return b|0}f=y;b=c[k>>2]|0;e=b;f=ZE(c[e>>2]|0,c[e+4>>2]|0,c[f>>2]|0,c[f+4>>2]|0)|0;c[b>>2]=f;c[b+4>>2]=D;Km(c[k>>2]|0);b=y;f=c[b>>2]|0;b=c[b+4>>2]|0;e=Jm(c[k>>2]|0,c[x>>2]|0,l)|0;e=ZE(f|0,b|0,e|0,D|0)|0;b=c[k>>2]|0;f=b;e=bF(c[f>>2]|0,c[f+4>>2]|0,e|0,D|0)|0;c[b>>2]=e;c[b+4>>2]=D;b=c[l>>2]|0;i=g;return b|0};default:{b=c[l>>2]|0;i=g;return b|0}}return 0}function Jm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;i=i+176|0;f=o+96|0;q=o+164|0;l=o+160|0;m=o+156|0;n=o+48|0;p=o;j=o+152|0;k=o+108|0;g=o+104|0;c[q>>2]=b;c[l>>2]=d;c[m>>2]=e;d=k+0|0;e=d+44|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(e|0));d=n+0|0;q=(c[q>>2]|0)+0|0;e=d+48|0;do{c[d>>2]=c[q>>2];d=d+4|0;q=q+4|0}while((d|0)<(e|0));Dm(n);if((c[n+8>>2]|0)>=1971?(c[n+8>>2]|0)<2038:0){c[g>>2]=~~(+h[n+32>>3]+.5);h[n+32>>3]=+(c[g>>2]|0)}else{c[n+8>>2]=2e3;c[n+12>>2]=1;c[n+16>>2]=1;c[n+20>>2]=0;c[n+24>>2]=0;h[n+32>>3]=0.0}c[n+28>>2]=0;a[n+42>>0]=0;Cm(n);b=n;b=jF(c[b>>2]|0,c[b+4>>2]|0,1e3,0)|0;b=ZE(b|0,D|0,413362496,49)|0;c[j>>2]=b;if(Pm(j,k)|0){Ud(c[l>>2]|0,9592,-1);c[c[m>>2]>>2]=1;d=f;c[d>>2]=0;c[d+4>>2]=0;d=f;b=d;b=c[b>>2]|0;d=d+4|0;d=c[d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]|0)>=(c[C>>2]|0))break;if(a[(c[p>>2]|0)+(c[B>>2]|0)>>0]|0)break;c[B>>2]=(c[B>>2]|0)+2}c[r>>2]=(c[B>>2]|0)<(c[C>>2]|0)&1;c[q>>2]=(c[p>>2]|0)+(c[B>>2]|0)+(d[E>>0]|0)+ -3;c[p>>2]=(c[p>>2]|0)+(d[E>>0]&1)}while(1){if((c[p>>2]|0)>>>0>=(c[q>>2]|0)>>>0)break;if(!(d[1224+(d[c[p>>2]>>0]|0)>>0]&1))break;c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0)}if((c[p>>2]|0)>>>0>=(c[q>>2]|0)>>>0){c[j>>2]=0;b=c[j>>2]|0;i=k;return b|0}if((a[c[p>>2]>>0]|0)!=45){if((a[c[p>>2]>>0]|0)==43)c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0)}else{c[v>>2]=-1;c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0)}while(1){if((c[p>>2]|0)>>>0>=(c[q>>2]|0)>>>0)break;if((a[c[p>>2]>>0]|0)!=48)break;c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0);c[o>>2]=(c[o>>2]|0)+1}while(1){if((c[p>>2]|0)>>>0>=(c[q>>2]|0)>>>0)break;b=y;e=c[b+4>>2]|0;if(!((d[1224+(d[c[p>>2]>>0]|0)>>0]&4|0)!=0&((e|0)<214748364|(e|0)==214748364&(c[b>>2]|0)>>>0<3435973835)))break;b=y;b=lF(c[b>>2]|0,c[b+4>>2]|0,10,0)|0;e=(a[c[p>>2]>>0]|0)-48|0;e=bF(b|0,D|0,e|0,((e|0)<0)<<31>>31|0)|0;b=y;c[b>>2]=e;c[b+4>>2]=D;c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0);c[o>>2]=(c[o>>2]|0)+1}while(1){if((c[p>>2]|0)>>>0>=(c[q>>2]|0)>>>0)break;if(!(d[1224+(d[c[p>>2]>>0]|0)>>0]&4))break;c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0);c[o>>2]=(c[o>>2]|0)+1;c[w>>2]=(c[w>>2]|0)+1}a:do if((c[p>>2]|0)>>>0<(c[q>>2]|0)>>>0){b:do if((a[c[p>>2]>>0]|0)==46){c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0);while(1){if((c[p>>2]|0)>>>0>=(c[q>>2]|0)>>>0)break;b=y;e=c[b+4>>2]|0;if(!((d[1224+(d[c[p>>2]>>0]|0)>>0]&4|0)!=0&((e|0)<214748364|(e|0)==214748364&(c[b>>2]|0)>>>0<3435973835)))break;b=y;b=lF(c[b>>2]|0,c[b+4>>2]|0,10,0)|0;e=(a[c[p>>2]>>0]|0)-48|0;e=bF(b|0,D|0,e|0,((e|0)<0)<<31>>31|0)|0;b=y;c[b>>2]=e;c[b+4>>2]=D;c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0);c[o>>2]=(c[o>>2]|0)+1;c[w>>2]=(c[w>>2]|0)+ -1}while(1){if((c[p>>2]|0)>>>0>=(c[q>>2]|0)>>>0)break b;if(!(d[1224+(d[c[p>>2]>>0]|0)>>0]&4))break b;c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0);c[o>>2]=(c[o>>2]|0)+1}}while(0);if((c[p>>2]|0)>>>0<(c[q>>2]|0)>>>0){if(!((a[c[p>>2]>>0]|0)!=101?(a[c[p>>2]>>0]|0)!=69:0))A=38;c:do if((A|0)==38){c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0);c[n>>2]=0;if((c[p>>2]|0)>>>0>=(c[q>>2]|0)>>>0)break a;if((a[c[p>>2]>>0]|0)!=45){if((a[c[p>>2]>>0]|0)==43)c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0)}else{c[s>>2]=-1;c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0)}while(1){if((c[p>>2]|0)>>>0>=(c[q>>2]|0)>>>0)break c;if(!(d[1224+(d[c[p>>2]>>0]|0)>>0]&4))break c;if((c[x>>2]|0)<1e4)A=((c[x>>2]|0)*10|0)+((a[c[p>>2]>>0]|0)-48)|0;else A=1e4;c[x>>2]=A;c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0);c[n>>2]=1}}while(0);if((c[o>>2]|0)!=0&(c[n>>2]|0)!=0)while(1){if((c[p>>2]|0)>>>0>=(c[q>>2]|0)>>>0)break a;if(!(d[1224+(d[c[p>>2]>>0]|0)>>0]&1))break a;c[p>>2]=(c[p>>2]|0)+(c[z>>2]|0)}}}while(0);b=$(c[x>>2]|0,c[s>>2]|0)|0;c[x>>2]=b+(c[w>>2]|0);if((c[x>>2]|0)<0){c[s>>2]=-1;c[x>>2]=$(c[x>>2]|0,-1)|0}else c[s>>2]=1;b=y;do if((c[b>>2]|0)!=0|(c[b+4>>2]|0)!=0){d:do if((c[s>>2]|0)>0)while(1){b=y;e=c[b+4>>2]|0;if(!(((e|0)<214748364|(e|0)==214748364&(c[b>>2]|0)>>>0<3435973836)&(c[x>>2]|0)>0))break d;c[x>>2]=(c[x>>2]|0)+ -1;e=y;e=lF(c[e>>2]|0,c[e+4>>2]|0,10,0)|0;b=y;c[b>>2]=e;c[b+4>>2]=D}else while(1){b=y;b=kF(c[b>>2]|0,c[b+4>>2]|0,10,0)|0;if(!((b|0)==0&(D|0)==0&(c[x>>2]|0)>0))break d;c[x>>2]=(c[x>>2]|0)+ -1;e=y;e=jF(c[e>>2]|0,c[e+4>>2]|0,10,0)|0;b=y;c[b>>2]=e;c[b+4>>2]=D}while(0);f=(c[v>>2]|0)<0;e=y;g=c[e>>2]|0;e=c[e+4>>2]|0;E=ZE(0,0,g|0,e|0)|0;b=y;c[b>>2]=f?E:g;c[b+4>>2]=f?D:e;if(!(c[x>>2]|0)){b=y;h[m>>3]=+((c[b>>2]|0)>>>0)+4294967296.0*+(c[b+4>>2]|0);break}h[u>>3]=1.0;if((c[x>>2]|0)>307&(c[x>>2]|0)<342){while(1){if(!((c[x>>2]|0)%308|0))break;h[u>>3]=+h[u>>3]*10.0;c[x>>2]=(c[x>>2]|0)-1}b=y;F=+((c[b>>2]|0)>>>0)+4294967296.0*+(c[b+4>>2]|0);G=+h[u>>3];if((c[s>>2]|0)<0){h[m>>3]=F/G;h[m>>3]=+h[m>>3]/1.0e+308;break}else{h[m>>3]=F*G;h[m>>3]=+h[m>>3]*1.0e+308;break}}if((c[x>>2]|0)>=342){b=y;F=+((c[b>>2]|0)>>>0)+4294967296.0*+(c[b+4>>2]|0);if((c[s>>2]|0)<0){h[m>>3]=0.0*F;break}else{h[m>>3]=t*F;break}}while(1){if(!((c[x>>2]|0)%22|0))break;h[u>>3]=+h[u>>3]*10.0;c[x>>2]=(c[x>>2]|0)-1}while(1){if((c[x>>2]|0)<=0)break;h[u>>3]=+h[u>>3]*1.0e+22;c[x>>2]=(c[x>>2]|0)-22}b=y;F=+((c[b>>2]|0)>>>0)+4294967296.0*+(c[b+4>>2]|0);G=+h[u>>3];if((c[s>>2]|0)<0){h[m>>3]=F/G;break}else{h[m>>3]=F*G;break}}else{if((c[v>>2]|0)<0)s=(c[o>>2]|0)!=0;else s=0;h[m>>3]=s?-0.0:0.0}while(0);h[c[l>>2]>>3]=+h[m>>3];if(((c[o>>2]|0)>0?(c[p>>2]|0)>>>0>=(c[q>>2]|0)>>>0:0)&(c[n>>2]|0)!=0)l=(c[r>>2]|0)==0;else l=0;c[j>>2]=l&1;b=c[j>>2]|0;i=k;return b|0}function Mm(b,e){b=b|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;m=i;i=i+80|0;l=m+16|0;g=m+76|0;k=m+72|0;n=m+68|0;o=m+64|0;p=m+60|0;f=m+56|0;q=m+8|0;j=m;c[k>>2]=b;c[n>>2]=e;h[q>>3]=0.0;b=c[k>>2]|0;c[l>>2]=2;c[l+4>>2]=0;c[l+8>>2]=24;c[l+12>>2]=58;c[l+16>>2]=o;c[l+20>>2]=2;c[l+24>>2]=0;c[l+28>>2]=59;c[l+32>>2]=0;c[l+36>>2]=p;if((Nm(b,l)|0)!=2){c[g>>2]=1;b=c[g>>2]|0;i=m;return b|0}c[k>>2]=(c[k>>2]|0)+5;if((a[c[k>>2]>>0]|0)==58){c[k>>2]=(c[k>>2]|0)+1;b=c[k>>2]|0;c[l>>2]=2;c[l+4>>2]=0;c[l+8>>2]=59;c[l+12>>2]=0;c[l+16>>2]=f;if((Nm(b,l)|0)!=1){c[g>>2]=1;b=c[g>>2]|0;i=m;return b|0}c[k>>2]=(c[k>>2]|0)+2;if((a[c[k>>2]>>0]|0)==46?(d[1224+(d[(c[k>>2]|0)+1>>0]|0)>>0]&4|0)!=0:0){h[j>>3]=1.0;c[k>>2]=(c[k>>2]|0)+1;while(1){if(!(d[1224+(d[c[k>>2]>>0]|0)>>0]&4))break;h[q>>3]=+h[q>>3]*10.0+ +(a[c[k>>2]>>0]|0)-48.0;h[j>>3]=+h[j>>3]*10.0;c[k>>2]=(c[k>>2]|0)+1}h[q>>3]=+h[q>>3]/+h[j>>3]}}else c[f>>2]=0;a[(c[n>>2]|0)+42>>0]=0;a[(c[n>>2]|0)+41>>0]=1;c[(c[n>>2]|0)+20>>2]=c[o>>2];c[(c[n>>2]|0)+24>>2]=c[p>>2];h[(c[n>>2]|0)+32>>3]=+(c[f>>2]|0)+ +h[q>>3];if(Om(c[k>>2]|0,c[n>>2]|0)|0){c[g>>2]=1;b=c[g>>2]|0;i=m;return b|0}else{a[(c[n>>2]|0)+43>>0]=(c[(c[n>>2]|0)+28>>2]|0)!=0?1:0;c[g>>2]=0;b=c[g>>2]|0;i=m;return b|0}return 0}function Nm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;i=i+64|0;l=g+48|0;p=g+32|0;j=g+24|0;o=g+20|0;n=g+16|0;m=g+12|0;h=g+8|0;k=g+4|0;f=g;c[l>>2]=b;c[f>>2]=0;c[p>>2]=e;a:while(1){e=c[p>>2]|0;b=c[e>>2]|0;c[p>>2]=e+4;c[o>>2]=b;b=c[p>>2]|0;e=c[b>>2]|0;c[p>>2]=b+4;c[n>>2]=e;e=c[p>>2]|0;b=c[e>>2]|0;c[p>>2]=e+4;c[m>>2]=b;b=c[p>>2]|0;e=c[b>>2]|0;c[p>>2]=b+4;c[h>>2]=e;e=c[p>>2]|0;b=c[e>>2]|0;c[p>>2]=e+4;c[k>>2]=b;c[j>>2]=0;while(1){b=c[o>>2]|0;c[o>>2]=b+ -1;if(!b)break;if(!(d[1224+(d[c[l>>2]>>0]|0)>>0]&4)){h=11;break a}c[j>>2]=((c[j>>2]|0)*10|0)+(a[c[l>>2]>>0]|0)-48;c[l>>2]=(c[l>>2]|0)+1}if((c[j>>2]|0)<(c[n>>2]|0)){h=11;break}if((c[j>>2]|0)>(c[m>>2]|0)){h=11;break}if((c[h>>2]|0)!=0?(c[h>>2]|0)!=(a[c[l>>2]>>0]|0):0){h=11;break}c[c[k>>2]>>2]=c[j>>2];c[l>>2]=(c[l>>2]|0)+1;c[f>>2]=(c[f>>2]|0)+1;if(!(c[h>>2]|0)){h=11;break}}if((h|0)==11){i=g;return c[f>>2]|0}return 0}function Om(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+80|0;o=f;h=f+64|0;g=f+60|0;n=f+56|0;k=f+52|0;j=f+48|0;l=f+44|0;p=f+40|0;c[g>>2]=b;c[n>>2]=e;c[k>>2]=0;while(1){if(!(d[1224+(d[c[g>>2]>>0]|0)>>0]&1))break;c[g>>2]=(c[g>>2]|0)+1}c[(c[n>>2]|0)+28>>2]=0;c[p>>2]=a[c[g>>2]>>0];do if((c[p>>2]|0)==45){c[k>>2]=-1;m=11}else{if((c[p>>2]|0)==43){c[k>>2]=1;m=11;break}if((c[p>>2]|0)==90|(c[p>>2]|0)==122){c[g>>2]=(c[g>>2]|0)+1;break}c[h>>2]=(c[p>>2]|0)!=0&1;b=c[h>>2]|0;i=f;return b|0}while(0);do if((m|0)==11){c[g>>2]=(c[g>>2]|0)+1;b=c[g>>2]|0;c[o>>2]=2;c[o+4>>2]=0;c[o+8>>2]=14;c[o+12>>2]=58;c[o+16>>2]=j;c[o+20>>2]=2;c[o+24>>2]=0;c[o+28>>2]=59;c[o+32>>2]=0;c[o+36>>2]=l;if((Nm(b,o)|0)==2){c[g>>2]=(c[g>>2]|0)+5;b=$(c[k>>2]|0,(c[l>>2]|0)+((c[j>>2]|0)*60|0)|0)|0;c[(c[n>>2]|0)+28>>2]=b;break}c[h>>2]=1;b=c[h>>2]|0;i=f;return b|0}while(0);while(1){j=c[g>>2]|0;if(!(d[1224+(d[c[g>>2]>>0]|0)>>0]&1))break;c[g>>2]=j+1}c[h>>2]=(a[j>>0]|0)!=0&1;b=c[h>>2]|0;i=f;return b|0}function Pm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;f=i;i=i+16|0;h=f+12|0;g=f+8|0;e=f+4|0;d=f;c[h>>2]=a;c[g>>2]=b;a=kb(c[h>>2]|0)|0;c[d>>2]=a;c[d>>2]=(c[9726]|0)!=0?0:a;if(c[d>>2]|0){a=(c[g>>2]|0)+0|0;g=(c[d>>2]|0)+0|0;b=a+44|0;do{c[a>>2]=c[g>>2];a=a+4|0;g=g+4|0}while((a|0)<(b|0))}c[e>>2]=(c[d>>2]|0)==0&1;i=f;return c[e>>2]|0}function Qm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;i=i+96|0;o=g;l=g+84|0;h=g+80|0;j=g+76|0;k=g+72|0;m=g+68|0;n=g+64|0;f=g+60|0;c[h>>2]=b;c[j>>2]=e;if((a[c[h>>2]>>0]|0)==45){c[h>>2]=(c[h>>2]|0)+1;c[f>>2]=1}else c[f>>2]=0;b=c[h>>2]|0;c[o>>2]=4;c[o+4>>2]=0;c[o+8>>2]=9999;c[o+12>>2]=45;c[o+16>>2]=k;c[o+20>>2]=2;c[o+24>>2]=1;c[o+28>>2]=12;c[o+32>>2]=45;c[o+36>>2]=m;c[o+40>>2]=2;c[o+44>>2]=1;c[o+48>>2]=31;c[o+52>>2]=0;c[o+56>>2]=n;if((Nm(b,o)|0)!=3){c[l>>2]=1;b=c[l>>2]|0;i=g;return b|0}c[h>>2]=(c[h>>2]|0)+10;while(1){if(d[1224+(d[c[h>>2]>>0]|0)>>0]&1)o=1;else o=84==(d[c[h>>2]>>0]|0);e=c[h>>2]|0;if(!o)break;c[h>>2]=e+1}do if(Mm(e,c[j>>2]|0)|0){if(!(a[c[h>>2]>>0]|0)){a[(c[j>>2]|0)+41>>0]=0;break}c[l>>2]=1;b=c[l>>2]|0;i=g;return b|0}while(0);a[(c[j>>2]|0)+42>>0]=0;a[(c[j>>2]|0)+40>>0]=1;b=c[k>>2]|0;c[(c[j>>2]|0)+8>>2]=(c[f>>2]|0)!=0?0-b|0:b;c[(c[j>>2]|0)+12>>2]=c[m>>2];c[(c[j>>2]|0)+16>>2]=c[n>>2];if(a[(c[j>>2]|0)+43>>0]|0)Cm(c[j>>2]|0);c[l>>2]=0;b=c[l>>2]|0;i=g;return b|0}function Rm(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;f=d+8|0;b=d+4|0;e=d;c[f>>2]=a;c[b>>2]=c[(c[f>>2]|0)+12>>2];a=(c[b>>2]|0)+136|0;if((c[a>>2]|0)==0&(c[a+4>>2]|0)==0?(c[e>>2]=Sm(c[c[(c[c[f>>2]>>2]|0)+32>>2]>>2]|0,(c[b>>2]|0)+136|0)|0,(c[e>>2]|0)!=0):0){f=(c[b>>2]|0)+136|0;c[f>>2]=0;c[f+4>>2]=0}f=(c[b>>2]|0)+136|0;D=c[f+4>>2]|0;i=d;return c[f>>2]|0}function Sm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,j=0,k=0.0;d=i;i=i+32|0;g=d+16|0;f=d+12|0;e=d+8|0;j=d;c[g>>2]=a;c[f>>2]=b;if((c[c[g>>2]>>2]|0)>=2?(c[(c[g>>2]|0)+72>>2]|0)!=0:0){c[e>>2]=zb[c[(c[g>>2]|0)+72>>2]&63](c[g>>2]|0,c[f>>2]|0)|0;a=c[e>>2]|0;i=d;return a|0}c[e>>2]=zb[c[(c[g>>2]|0)+64>>2]&63](c[g>>2]|0,j)|0;k=+h[j>>3]*864.0e5;j=+O(k)>=1.0?k>0.0?(ca(+N(k/4294967296.0),4294967295.0)|0)>>>0:~~+_((k- +(~~k>>>0))/4294967296.0)>>>0:0;a=c[f>>2]|0;c[a>>2]=~~k>>>0;c[a+4>>2]=j;a=c[e>>2]|0;i=d;return a|0}function Tm(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;k=e+16|0;j=e+12|0;f=e+8|0;g=e+4|0;h=e;c[k>>2]=a;c[j>>2]=b;c[f>>2]=0;c[g>>2]=c[k>>2];if((c[j>>2]|0)>=0)c[h>>2]=(c[g>>2]|0)+(c[j>>2]|0);else c[h>>2]=-1;while(1){if(!(d[c[g>>2]>>0]|0)){b=10;break}if((c[g>>2]|0)>>>0>=(c[h>>2]|0)>>>0){b=10;break}k=c[g>>2]|0;c[g>>2]=k+1;a:do if((d[k>>0]|0|0)>=192)while(1){if(((d[c[g>>2]>>0]|0)&192|0)!=128)break a;c[g>>2]=(c[g>>2]|0)+1}while(0);c[f>>2]=(c[f>>2]|0)+1}if((b|0)==10){i=e;return c[f>>2]|0}return 0}function Um(a){a=a|0;var b=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;f=b+4|0;e=b;c[f>>2]=a;g=c[f>>2]|0;a=c[g>>2]|0;c[g>>2]=a+1;c[e>>2]=d[a>>0];if((c[e>>2]|0)>>>0<192){g=c[e>>2]|0;i=b;return g|0}c[e>>2]=d[4984+((c[e>>2]|0)-192)>>0];while(1){a=c[e>>2]|0;if(((d[c[c[f>>2]>>2]>>0]|0)&192|0)!=128)break;h=c[f>>2]|0;g=c[h>>2]|0;c[h>>2]=g+1;c[e>>2]=(a<<6)+(63&(d[g>>0]|0))}if((a>>>0>=128?(c[e>>2]&-2048|0)!=55296:0)?(c[e>>2]&-2|0)!=65534:0){h=c[e>>2]|0;i=b;return h|0}c[e>>2]=65533;h=c[e>>2]|0;i=b;return h|0}function Vm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e+8|0;g=e+4|0;f=e;c[h>>2]=a;c[g>>2]=b;c[f>>2]=d;if(((c[(c[h>>2]|0)+12>>2]|0)+(c[f>>2]|0)|0)>=(c[(c[h>>2]|0)+16>>2]|0)){Wm(c[h>>2]|0,c[g>>2]|0,c[f>>2]|0);i=e;return}else{a=(c[h>>2]|0)+12|0;c[a>>2]=(c[a>>2]|0)+(c[f>>2]|0);dF((c[(c[h>>2]|0)+8>>2]|0)+((c[(c[h>>2]|0)+12>>2]|0)-(c[f>>2]|0))|0,c[g>>2]|0,c[f>>2]|0)|0;i=e;return}}function Wm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[h>>2]=Xm(c[f>>2]|0,c[h>>2]|0)|0;if((c[h>>2]|0)<=0){i=e;return}dF((c[(c[f>>2]|0)+8>>2]|0)+(c[(c[f>>2]|0)+12>>2]|0)|0,c[g>>2]|0,c[h>>2]|0)|0;a=(c[f>>2]|0)+12|0;c[a>>2]=(c[a>>2]|0)+(c[h>>2]|0);i=e;return}function Xm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;k=i;i=i+32|0;g=k+24|0;h=k+20|0;j=k+16|0;l=k+12|0;f=k+8|0;m=k;c[h>>2]=b;c[j>>2]=e;if(a[(c[h>>2]|0)+25>>0]|0){c[g>>2]=0;b=c[g>>2]|0;i=k;return b|0}e=c[h>>2]|0;if(!(a[(c[h>>2]|0)+24>>0]|0)){c[j>>2]=(c[e+16>>2]|0)-(c[(c[h>>2]|0)+12>>2]|0)-1;Ym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a){a=a|0;var b=0,e=0;b=i;i=i+16|0;e=b;c[e>>2]=a;do if((c[(c[e>>2]|0)+8>>2]|0)!=(c[(c[e>>2]|0)+4>>2]|0)){a=c[e>>2]|0;if((d[(c[e>>2]|0)+24>>0]|0|0)==1){Xb(c[a>>2]|0,c[(c[e>>2]|0)+8>>2]|0);break}else{hc(c[a+8>>2]|0);break}}while(0);c[(c[e>>2]|0)+8>>2]=0;i=b;return}function _m(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;f=i;i=i+32|0;e=f+20|0;h=f+16|0;g=f+8|0;j=f;c[h>>2]=a;k=g;c[k>>2]=b;c[k+4>>2]=d;d=c[h>>2]|0;k=c[d+4>>2]|0;a=j;c[a>>2]=c[d>>2];c[a+4>>2]=k;a=g;k=c[a+4>>2]|0;d=j;b=c[d+4>>2]|0;if((k|0)>0|(k|0)==0&(c[a>>2]|0)>>>0>=0){if((b|0)>0|(b|0)==0&(c[d>>2]|0)>>>0>0?(a=j,a=ZE(-1,2147483647,c[a>>2]|0,c[a+4>>2]|0)|0,d=D,k=g,b=c[k+4>>2]|0,(d|0)<(b|0)|((d|0)==(b|0)?a>>>0<(c[k>>2]|0)>>>0:0)):0){c[e>>2]=1;k=c[e>>2]|0;i=f;return k|0}}else if((b|0)<0?(a=j,a=bF(c[a>>2]|0,c[a+4>>2]|0,-1,2147483647)|0,a=ZE(0,0,a|0,D|0)|0,d=D,k=g,k=bF(c[k>>2]|0,c[k+4>>2]|0,1,0)|0,b=D,(d|0)>(b|0)|(d|0)==(b|0)&a>>>0>k>>>0):0){c[e>>2]=1;k=c[e>>2]|0;i=f;return k|0}a=g;k=c[h>>2]|0;b=k;a=bF(c[b>>2]|0,c[b+4>>2]|0,c[a>>2]|0,c[a+4>>2]|0)|0;c[k>>2]=a;c[k+4>>2]=D;c[e>>2]=0;k=c[e>>2]|0;i=f;return k|0}function $m(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;g=e+16|0;h=e;f=e+12|0;k=e+8|0;c[g>>2]=a;j=h;c[j>>2]=b;c[j+4>>2]=d;c[k>>2]=pe(c[g>>2]|0)|0;b=h;j=c[b+4>>2]|0;a=c[(c[k>>2]|0)+88>>2]|0;d=((a|0)<0)<<31>>31;if((j|0)>(d|0)|((j|0)==(d|0)?(c[b>>2]|0)>>>0>a>>>0:0)){he(c[g>>2]|0);c[f>>2]=0;k=c[f>>2]|0;i=e;return k|0}k=h;c[f>>2]=gc(c[k>>2]|0,c[k+4>>2]|0)|0;if(c[f>>2]|0){k=c[f>>2]|0;i=e;return k|0}ie(c[g>>2]|0);k=c[f>>2]|0;i=e;return k|0}function an(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;e=d+4|0;b=d;c[e>>2]=a;c[b>>2]=(c[(c[(c[e>>2]|0)+12>>2]|0)+4>>2]|0)+(((c[(c[e>>2]|0)+16>>2]|0)-1|0)*20|0);i=d;return c[(c[b>>2]|0)+16>>2]|0}function bn(a,b,d){a=a|0;b=b|0;d=d|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;m=i;i=i+48|0;g=m+40|0;j=m+36|0;k=m+32|0;l=m+28|0;n=m+24|0;f=m+20|0;o=m+16|0;p=m+8|0;q=m;c[j>>2]=a;c[k>>2]=b;c[l>>2]=d;c[n>>2]=e[(c[j>>2]|0)+8>>1];c[f>>2]=e[(c[k>>2]|0)+8>>1];c[o>>2]=c[n>>2]|c[f>>2];a:do if(!(c[o>>2]&1)){if(!(c[o>>2]&12)){if(c[o>>2]&2){if(!(c[n>>2]&2)){c[g>>2]=1;break}if(!(c[f>>2]&2)){c[g>>2]=-1;break}if(c[l>>2]|0){c[g>>2]=cn(c[j>>2]|0,c[k>>2]|0,c[l>>2]|0,0)|0;break}}c[g>>2]=dn(c[j>>2]|0,c[k>>2]|0)|0;break}if(c[n>>2]&c[f>>2]&4){b=c[j>>2]|0;p=c[b+4>>2]|0;a=c[k>>2]|0;q=c[a+4>>2]|0;if((p|0)<(q|0)|((p|0)==(q|0)?(c[b>>2]|0)>>>0<(c[a>>2]|0)>>>0:0)){c[g>>2]=-1;break}b=c[j>>2]|0;p=c[b+4>>2]|0;a=c[k>>2]|0;q=c[a+4>>2]|0;if((p|0)>(q|0)|((p|0)==(q|0)?(c[b>>2]|0)>>>0>(c[a>>2]|0)>>>0:0)){c[g>>2]=1;break}else{c[g>>2]=0;break}}do if(!(c[n>>2]&8))if(c[n>>2]&4){a=c[j>>2]|0;h[p>>3]=+((c[a>>2]|0)>>>0)+4294967296.0*+(c[a+4>>2]|0);break}else{c[g>>2]=1;break a}else h[p>>3]=+h[c[j>>2]>>3];while(0);do if(!(c[f>>2]&8))if(c[f>>2]&4){a=c[k>>2]|0;h[q>>3]=+((c[a>>2]|0)>>>0)+4294967296.0*+(c[a+4>>2]|0);break}else{c[g>>2]=-1;break a}else h[q>>3]=+h[c[k>>2]>>3];while(0);if(+h[p>>3]<+h[q>>3]){c[g>>2]=-1;break}if(+h[p>>3]>+h[q>>3]){c[g>>2]=1;break}else{c[g>>2]=0;break}}else c[g>>2]=(c[f>>2]&1)-(c[n>>2]&1);while(0);i=m;return c[g>>2]|0}function cn(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=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;o=i;i=i+128|0;n=o+116|0;u=o+112|0;t=o+108|0;k=o+104|0;m=o+100|0;l=o+96|0;p=o+92|0;q=o+88|0;j=o+84|0;h=o+80|0;r=o+40|0;s=o;c[u>>2]=b;c[t>>2]=e;c[k>>2]=f;c[m>>2]=g;if((d[(c[u>>2]|0)+10>>0]|0|0)==(d[(c[k>>2]|0)+4>>0]|0|0)){c[n>>2]=Ab[c[(c[k>>2]|0)+12>>2]&15](c[(c[k>>2]|0)+8>>2]|0,c[(c[u>>2]|0)+12>>2]|0,c[(c[u>>2]|0)+16>>2]|0,c[(c[t>>2]|0)+12>>2]|0,c[(c[t>>2]|0)+16>>2]|0)|0;b=c[n>>2]|0;i=o;return b|0}en(r,c[(c[u>>2]|0)+32>>2]|0,1);en(s,c[(c[u>>2]|0)+32>>2]|0,1);fn(r,c[u>>2]|0,4096);fn(s,c[t>>2]|0,4096);c[p>>2]=Md(r,a[(c[k>>2]|0)+4>>0]|0)|0;if(!(c[p>>2]|0))g=0;else g=c[r+12>>2]|0;c[j>>2]=g;c[q>>2]=Md(s,a[(c[k>>2]|0)+4>>0]|0)|0;if(!(c[q>>2]|0))g=0;else g=c[s+12>>2]|0;c[h>>2]=g;c[l>>2]=Ab[c[(c[k>>2]|0)+12>>2]&15](c[(c[k>>2]|0)+8>>2]|0,c[j>>2]|0,c[p>>2]|0,c[h>>2]|0,c[q>>2]|0)|0;Bd(r);Bd(s);if(((c[p>>2]|0)==0|(c[q>>2]|0)==0)&(c[m>>2]|0)!=0)a[c[m>>2]>>0]=7;c[n>>2]=c[l>>2];b=c[n>>2]|0;i=o;return b|0}function dn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;f=i;i=i+16|0;e=f+12|0;g=f+8|0;h=f+4|0;d=f;c[g>>2]=a;c[h>>2]=b;if((c[(c[g>>2]|0)+12>>2]|0)>(c[(c[h>>2]|0)+12>>2]|0))b=c[(c[h>>2]|0)+12>>2]|0;else b=c[(c[g>>2]|0)+12>>2]|0;c[d>>2]=TE(c[(c[g>>2]|0)+16>>2]|0,c[(c[h>>2]|0)+16>>2]|0,b)|0;if(c[d>>2]|0){c[e>>2]=c[d>>2];a=c[e>>2]|0;i=f;return a|0}else{c[e>>2]=(c[(c[g>>2]|0)+12>>2]|0)-(c[(c[h>>2]|0)+12>>2]|0);a=c[e>>2]|0;i=f;return a|0}return 0}function en(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;g=f+4|0;h=f;j=f+8|0;c[g>>2]=a;c[h>>2]=d;b[j>>1]=e;b[(c[g>>2]|0)+8>>1]=b[j>>1]|0;c[(c[g>>2]|0)+32>>2]=c[h>>2];c[(c[g>>2]|0)+24>>2]=0;i=f;return}function fn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;i=i+16|0;h=g+8|0;k=g+4|0;j=g;c[h>>2]=a;c[k>>2]=d;c[j>>2]=f;if((e[(c[h>>2]|0)+8>>1]|0)&9312)gn(c[h>>2]|0);a=c[h>>2]|0;d=c[k>>2]|0;c[a+0>>2]=c[d+0>>2];c[a+4>>2]=c[d+4>>2];c[a+8>>2]=c[d+8>>2];c[a+12>>2]=c[d+12>>2];c[a+16>>2]=c[d+16>>2];if((e[(c[k>>2]|0)+8>>1]|0)&2048){i=g;return}a=(c[h>>2]|0)+8|0;b[a>>1]=(e[a>>1]|0)&-7169;a=(c[h>>2]|0)+8|0;b[a>>1]=e[a>>1]|0|c[j>>2];i=g;return}function gn(a){a=a|0;var d=0,f=0,g=0,h=0;f=i;i=i+16|0;d=f+4|0;g=f;c[d>>2]=a;if((e[(c[d>>2]|0)+8>>1]|0)&8192)hn(c[d>>2]|0,c[c[d>>2]>>2]|0)|0;a=c[d>>2]|0;do if(!((e[(c[d>>2]|0)+8>>1]|0)&1024)){h=c[d>>2]|0;if((e[a+8>>1]|0)&32){jn(c[h>>2]|0);break}if((e[h+8>>1]|0)&64){c[g>>2]=c[c[d>>2]>>2];c[(c[g>>2]|0)+4>>2]=c[(c[c[g>>2]>>2]|0)+180>>2];c[(c[c[g>>2]>>2]|0)+180>>2]=c[g>>2]}}else rb[c[a+36>>2]&31](c[(c[d>>2]|0)+16>>2]|0);while(0);b[(c[d>>2]|0)+8>>1]=1;i=f;return}function hn(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;g=i;i=i+80|0;j=g+76|0;k=g+72|0;f=g+68|0;e=g+40|0;h=g;c[j>>2]=a;c[k>>2]=d;c[f>>2]=0;if(!(c[k>>2]|0)){a=c[f>>2]|0;i=g;return a|0}if(!(c[(c[k>>2]|0)+20>>2]|0)){a=c[f>>2]|0;i=g;return a|0}c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;c[e+20>>2]=0;c[e+24>>2]=0;a=h+0|0;d=a+40|0;do{c[a>>2]=0;a=a+4|0}while((a|0)<(d|0));b[h+8>>1]=1;c[h+32>>2]=c[(c[j>>2]|0)+32>>2];c[e>>2]=h;c[e+8>>2]=c[j>>2];c[e+4>>2]=c[k>>2];rb[c[(c[k>>2]|0)+20>>2]&31](e);if((c[(c[j>>2]|0)+24>>2]|0)>0)Xb(c[(c[j>>2]|0)+32>>2]|0,c[(c[j>>2]|0)+20>>2]|0);a=(c[j>>2]|0)+0|0;h=h+0|0;d=a+40|0;do{c[a>>2]=c[h>>2];a=a+4|0;h=h+4|0}while((a|0)<(d|0));c[f>>2]=c[e+20>>2];a=c[f>>2]|0;i=g;return a|0}function jn(a){a=a|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;d=e+8|0;f=e+4|0;g=e;c[d>>2]=a;c[f>>2]=c[c[d>>2]>>2];while(1){if(!(c[f>>2]|0))break;c[g>>2]=c[c[f>>2]>>2];Xb(c[(c[d>>2]|0)+4>>2]|0,c[f>>2]|0);c[f>>2]=c[g>>2]}c[c[d>>2]>>2]=0;b[(c[d>>2]|0)+24>>1]=0;c[(c[d>>2]|0)+8>>2]=0;c[(c[d>>2]|0)+12>>2]=0;c[(c[d>>2]|0)+20>>2]=0;b[(c[d>>2]|0)+26>>1]=1;i=e;return}function kn(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;f=i;i=i+32|0;k=f+24|0;j=f+20|0;h=f+16|0;g=f;c[k>>2]=a;c[j>>2]=b;c[h>>2]=d;c[g>>2]=e;oc(c[k>>2]|0,c[j>>2]|0,c[h>>2]|0,g);i=f;return}function ln(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;a[(c[e>>2]|0)+24>>0]=1;i=d;return}function mn(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=zb[c[e>>2]&63](1612,0)|0;if(!(c[d>>2]|0)){e=c[d>>2]|0;i=b;return e|0}c[c[d>>2]>>2]=-1;e=c[d>>2]|0;i=b;return e|0}function nn(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=i;i=i+48|0;l=h+32|0;p=h+28|0;n=h+24|0;o=h+20|0;k=h+8|0;j=h+4|0;m=h;c[p>>2]=d;c[n>>2]=e;c[o>>2]=g;c[m>>2]=c[p>>2];if((c[c[m>>2]>>2]|0)<0){c[c[m>>2]>>2]=0;c[(c[m>>2]|0)+4>>2]=-1;b[(c[m>>2]|0)+12>>1]=0;a[(c[m>>2]|0)+14>>0]=0}c[k+0>>2]=c[f+0>>2];c[k+4>>2]=c[f+4>>2];c[(c[m>>2]|0)+8>>2]=c[o>>2];while(1){c[j>>2]=Cn(c[m>>2]|0,c[n>>2]&255)|0;do if((c[j>>2]|0)>=642){f=c[m>>2]|0;if((c[j>>2]|0)<969){En(f,(c[j>>2]|0)-642|0);break}else{p=c[n>>2]|0;c[l+0>>2]=c[k+0>>2];c[l+4>>2]=c[k+4>>2];c[l+8>>2]=c[k+8>>2];Fn(f,p,l);An(c[m>>2]|0,c[n>>2]&255,k);c[n>>2]=254;break}}else{Dn(c[m>>2]|0,c[j>>2]|0,c[n>>2]|0,k);p=(c[m>>2]|0)+4|0;c[p>>2]=(c[p>>2]|0)+ -1;c[n>>2]=254}while(0);if((c[n>>2]|0)==254){j=11;break}if((c[c[m>>2]>>2]|0)<0){j=11;break}}if((j|0)==11){i=h;return}}function on(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+8|0;e=d+4|0;f=d;c[g>>2]=a;c[e>>2]=b;c[f>>2]=c[g>>2];if(!(c[f>>2]|0)){i=d;return}while(1){if((c[c[f>>2]>>2]|0)<0)break;zn(c[f>>2]|0)|0}rb[c[e>>2]&31](c[f>>2]|0);i=d;return}function pn(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+48|0;g=f+32|0;j=f+28|0;l=f+24|0;k=f+8|0;h=f;c[g>>2]=a;c[j>>2]=b;c[l>>2]=d;c[k>>2]=e;c[h>>2]=yn(c[j>>2]|0,c[l>>2]|0,k)|0;Xb(c[j>>2]|0,c[c[g>>2]>>2]|0);c[c[g>>2]>>2]=c[h>>2];i=f;return}function qn(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b+4|0;e=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}c[e>>2]=c[c[d>>2]>>2];Wb(c[e>>2]|0,c[d>>2]|0);a=c[(c[d>>2]|0)+52>>2]|0;if(c[(c[d>>2]|0)+48>>2]|0)c[(c[(c[d>>2]|0)+48>>2]|0)+52>>2]=a;else c[(c[e>>2]|0)+4>>2]=a;if(c[(c[d>>2]|0)+52>>2]|0)c[(c[(c[d>>2]|0)+52>>2]|0)+48>>2]=c[(c[d>>2]|0)+48>>2];c[(c[d>>2]|0)+40>>2]=-1241070648;c[c[d>>2]>>2]=0;Xb(c[e>>2]|0,c[d>>2]|0);i=b;return}function rn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){i=d;return}c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[c[f>>2]>>2]|0))break;c[h>>2]=(c[f>>2]|0)+8+(c[g>>2]<<4);sn(c[e>>2]|0,c[(c[h>>2]|0)+4>>2]|0);tn(c[e>>2]|0,c[(c[h>>2]|0)+8>>2]|0);Xb(c[e>>2]|0,c[c[h>>2]>>2]|0);c[g>>2]=(c[g>>2]|0)+1}Xb(c[e>>2]|0,c[f>>2]|0);i=d;return}function sn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;f=d+12|0;e=d+8|0;g=d+4|0;h=d;c[f>>2]=a;c[e>>2]=b;if(!(c[e>>2]|0)){i=d;return}c[h>>2]=c[(c[e>>2]|0)+4>>2];c[g>>2]=0;while(1){b=c[f>>2]|0;if((c[g>>2]|0)>=(c[c[e>>2]>>2]|0))break;wn(b,c[c[h>>2]>>2]|0);Xb(c[f>>2]|0,c[(c[h>>2]|0)+4>>2]|0);Xb(c[f>>2]|0,c[(c[h>>2]|0)+8>>2]|0);c[g>>2]=(c[g>>2]|0)+1;c[h>>2]=(c[h>>2]|0)+20}Xb(b,c[(c[e>>2]|0)+4>>2]|0);Xb(c[f>>2]|0,c[e>>2]|0);i=d;return}function tn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){i=d;return}un(c[e>>2]|0,c[f>>2]|0);Xb(c[e>>2]|0,c[f>>2]|0);i=d;return}function un(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;sn(c[f>>2]|0,c[c[e>>2]>>2]|0);vn(c[f>>2]|0,c[(c[e>>2]|0)+32>>2]|0);wn(c[f>>2]|0,c[(c[e>>2]|0)+36>>2]|0);sn(c[f>>2]|0,c[(c[e>>2]|0)+40>>2]|0);wn(c[f>>2]|0,c[(c[e>>2]|0)+44>>2]|0);sn(c[f>>2]|0,c[(c[e>>2]|0)+48>>2]|0);tn(c[f>>2]|0,c[(c[e>>2]|0)+52>>2]|0);wn(c[f>>2]|0,c[(c[e>>2]|0)+60>>2]|0);wn(c[f>>2]|0,c[(c[e>>2]|0)+64>>2]|0);rn(c[f>>2]|0,c[(c[e>>2]|0)+68>>2]|0);i=d;return}function vn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;f=d+12|0;e=d+8|0;g=d+4|0;h=d;c[f>>2]=a;c[e>>2]=b;if(!(c[e>>2]|0)){i=d;return}c[h>>2]=(c[e>>2]|0)+8;c[g>>2]=0;while(1){b=c[f>>2]|0;if((c[g>>2]|0)>=(c[c[e>>2]>>2]|0))break;Xb(b,c[(c[h>>2]|0)+4>>2]|0);Xb(c[f>>2]|0,c[(c[h>>2]|0)+8>>2]|0);Xb(c[f>>2]|0,c[(c[h>>2]|0)+12>>2]|0);Xb(c[f>>2]|0,c[(c[h>>2]|0)+64>>2]|0);Vb(c[f>>2]|0,c[(c[h>>2]|0)+16>>2]|0);tn(c[f>>2]|0,c[(c[h>>2]|0)+20>>2]|0);wn(c[f>>2]|0,c[(c[h>>2]|0)+44>>2]|0);xn(c[f>>2]|0,c[(c[h>>2]|0)+48>>2]|0);c[g>>2]=(c[g>>2]|0)+1;c[h>>2]=(c[h>>2]|0)+72}Xb(b,c[e>>2]|0);i=d;return}function wn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){i=d;return}do if(!(c[(c[f>>2]|0)+4>>2]&16384)){wn(c[e>>2]|0,c[(c[f>>2]|0)+12>>2]|0);wn(c[e>>2]|0,c[(c[f>>2]|0)+16>>2]|0);if(c[(c[f>>2]|0)+4>>2]&65536)Xb(c[e>>2]|0,c[(c[f>>2]|0)+8>>2]|0);a=c[e>>2]|0;b=(c[f>>2]|0)+20|0;if(c[(c[f>>2]|0)+4>>2]&2048){tn(a,c[b>>2]|0);break}else{sn(a,c[b>>2]|0);break}}while(0);if(c[(c[f>>2]|0)+4>>2]&32768){i=d;return}Xb(c[e>>2]|0,c[f>>2]|0);i=d;return}function xn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;e=d+4|0;g=d;c[f>>2]=a;c[e>>2]=b;if(!(c[e>>2]|0)){i=d;return}c[g>>2]=0;while(1){b=c[f>>2]|0;if((c[g>>2]|0)>=(c[(c[e>>2]|0)+4>>2]|0))break;Xb(b,c[(c[c[e>>2]>>2]|0)+(c[g>>2]<<3)>>2]|0);c[g>>2]=(c[g>>2]|0)+1}Xb(b,c[c[e>>2]>>2]|0);Xb(c[f>>2]|0,c[e>>2]|0);i=d;return}function yn(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+128|0;j=g+40|0;m=g+36|0;l=g+32|0;h=g+28|0;k=g;c[j>>2]=b;c[m>>2]=e;c[l>>2]=f;nc(k,g+44|0,70,c[(c[j>>2]|0)+88>>2]|0);c[k>>2]=c[j>>2];oc(k,1,c[m>>2]|0,c[l>>2]|0);c[h>>2]=pc(k)|0;if((d[k+25>>0]|0|0)!=1){m=c[h>>2]|0;i=g;return m|0}a[(c[j>>2]|0)+64>>0]=1;m=c[h>>2]|0;i=g;return m|0}function zn(b){b=b|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+8|0;h=e+4|0;g=e+12|0;j=e;c[h>>2]=b;c[j>>2]=(c[h>>2]|0)+12+(c[c[h>>2]>>2]<<4);if((c[c[h>>2]>>2]|0)<0){c[f>>2]=0;j=c[f>>2]|0;i=e;return j|0}else{a[g>>0]=a[(c[j>>2]|0)+2>>0]|0;An(c[h>>2]|0,a[g>>0]|0,(c[j>>2]|0)+4|0);j=c[h>>2]|0;c[j>>2]=(c[j>>2]|0)+ -1;c[f>>2]=d[g>>0];j=c[f>>2]|0;i=e;return j|0}return 0}function An(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+16|0;l=g+8|0;k=g+12|0;h=g+4|0;j=g;c[l>>2]=b;a[k>>0]=e;c[h>>2]=f;c[j>>2]=c[(c[l>>2]|0)+8>>2];do switch(d[k>>0]|0|0){case 228:case 221:case 220:case 210:case 209:case 208:case 205:case 203:case 200:case 188:case 179:{sn(c[c[j>>2]>>2]|0,c[c[h>>2]>>2]|0);i=g;return};case 213:case 212:case 201:case 194:{vn(c[c[j>>2]>>2]|0,c[c[h>>2]>>2]|0);i=g;return};case 175:case 174:{wn(c[c[j>>2]>>2]|0,c[c[h>>2]>>2]|0);i=g;return};case 239:case 234:{Bn(c[c[j>>2]>>2]|0,c[c[h>>2]>>2]|0);i=g;return};case 243:case 238:case 229:case 227:case 216:case 204:case 202:{wn(c[c[j>>2]>>2]|0,c[c[h>>2]>>2]|0);i=g;return};case 223:case 219:case 217:{xn(c[c[j>>2]>>2]|0,c[c[h>>2]>>2]|0);i=g;return};case 207:case 196:case 195:case 163:{tn(c[c[j>>2]>>2]|0,c[c[h>>2]>>2]|0);i=g;return};case 252:case 197:{rn(c[c[j>>2]>>2]|0,c[c[h>>2]>>2]|0);i=g;return};case 236:{xn(c[c[j>>2]>>2]|0,c[(c[h>>2]|0)+4>>2]|0);i=g;return};default:{i=g;return}}while(0)}function Bn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+8|0;e=d+4|0;f=d;c[g>>2]=a;c[e>>2]=b;while(1){if(!(c[e>>2]|0))break;c[f>>2]=c[e>>2];c[e>>2]=c[(c[e>>2]|0)+32>>2];wn(c[g>>2]|0,c[(c[f>>2]|0)+20>>2]|0);sn(c[g>>2]|0,c[(c[f>>2]|0)+24>>2]|0);tn(c[g>>2]|0,c[(c[f>>2]|0)+8>>2]|0);xn(c[g>>2]|0,c[(c[f>>2]|0)+28>>2]|0);Xb(c[g>>2]|0,c[f>>2]|0)}i=d;return}function Cn(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;k=i;i=i+32|0;j=k+16|0;l=k+12|0;n=k+21|0;h=k+8|0;p=k+4|0;m=k+20|0;o=k;c[l>>2]=f;a[n>>0]=g;c[p>>2]=e[(c[l>>2]|0)+12+(c[c[l>>2]>>2]<<4)>>1];if((c[p>>2]|0)<=429?(f=b[27208+(c[p>>2]<<1)>>1]|0,c[h>>2]=f,(f|0)!=-86):0){c[h>>2]=(c[h>>2]|0)+(d[n>>0]|0);if(!((c[h>>2]|0)<0|(c[h>>2]|0)>=1497)?(d[29360+(c[h>>2]|0)>>0]|0)==(d[n>>0]|0):0){c[j>>2]=e[11720+(c[h>>2]<<1)>>1];f=c[j>>2]|0;i=k;return f|0}if((d[n>>0]|0)>0){if((d[n>>0]|0)>>>0<70?(f=a[30864+(d[n>>0]|0)>>0]|0,a[m>>0]=f,(f&255|0)!=0):0){c[j>>2]=Cn(c[l>>2]|0,a[m>>0]|0)|0;f=c[j>>2]|0;i=k;return f|0}c[o>>2]=(c[h>>2]|0)-(d[n>>0]|0)+70;if((c[o>>2]|0)>=0?(d[29360+(c[o>>2]|0)>>0]|0)==70:0){c[j>>2]=e[11720+(c[o>>2]<<1)>>1];f=c[j>>2]|0;i=k;return f|0}}c[j>>2]=e[28072+(c[p>>2]<<1)>>1];f=c[j>>2]|0;i=k;return f|0}c[j>>2]=e[28072+(c[p>>2]<<1)>>1];f=c[j>>2]|0;i=k;return f|0}function Dn(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;m=i;i=i+32|0;n=m+16|0;h=m+12|0;l=m+8|0;j=m+4|0;k=m;c[n>>2]=d;c[h>>2]=e;c[l>>2]=f;c[j>>2]=g;g=c[n>>2]|0;c[g>>2]=(c[g>>2]|0)+1;g=c[n>>2]|0;if((c[c[n>>2]>>2]|0)>=100){wy(g,c[j>>2]|0);i=m;return}else{c[k>>2]=(c[n>>2]|0)+12+(c[g>>2]<<4);b[c[k>>2]>>1]=c[h>>2];a[(c[k>>2]|0)+2>>0]=c[l>>2];d=(c[k>>2]|0)+4|0;e=c[j>>2]|0;c[d+0>>2]=c[e+0>>2];c[d+4>>2]=c[e+4>>2];c[d+8>>2]=c[e+8>>2];i=m;return}}function En(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,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;n=i;i=i+224|0;r=n;p=n+220|0;o=n+216|0;m=n+212|0;l=n+208|0;h=n+196|0;j=n+192|0;k=n+188|0;q=n+184|0;W=n+172|0;J=n+160|0;u=n+140|0;v=n+136|0;A=n+132|0;z=n+128|0;y=n+124|0;x=n+120|0;w=n+116|0;K=n+112|0;L=n+104|0;B=n+100|0;C=n+96|0;E=n+92|0;F=n+88|0;D=n+84|0;H=n+80|0;I=n+76|0;G=n+72|0;N=n+68|0;M=n+64|0;P=n+60|0;R=n+56|0;Q=n+52|0;O=n+48|0;S=n+44|0;T=n+40|0;V=n+36|0;U=n+32|0;t=n+28|0;X=n+24|0;Y=n+20|0;Z=n+16|0;_=n+8|0;c[p>>2]=f;c[o>>2]=g;c[q>>2]=c[(c[p>>2]|0)+8>>2];c[j>>2]=(c[p>>2]|0)+12+(c[c[p>>2]>>2]<<4);c[h+0>>2]=c[6792];c[h+4>>2]=c[6793];c[h+8>>2]=c[6794];a:do switch(c[o>>2]|0){case 65:{Xn(c[q>>2]|0,0,(c[j>>2]|0)+ -32+4|0,c[(c[j>>2]|0)+ -16+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0);break};case 117:case 115:case 16:case 15:case 14:{c[h>>2]=d[(c[j>>2]|0)+2>>0];break};case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[h>>2]=1;break};case 33:{Nn(c[q>>2]|0,0,0,0,c[(c[j>>2]|0)+4>>2]|0);tn(c[c[q>>2]>>2]|0,c[(c[j>>2]|0)+4>>2]|0);break};case 9:{In(c[q>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0);break};case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[h>>2]=0;break};case 26:{Mn(c[q>>2]|0,(c[j>>2]|0)+ -16+4|0,(c[j>>2]|0)+4|0,c[(c[j>>2]|0)+ -64+4>>2]|0,0,0,c[(c[j>>2]|0)+ -32+4>>2]|0);break};case 23:{Ln(c[q>>2]|0,1,(c[j>>2]|0)+4|0);break};case 49:{c[h>>2]=c[(c[j>>2]|0)+ -16+4>>2];c[h+4>>2]=(c[(c[j>>2]|0)+8>>2]|0)+((c[(c[j>>2]|0)+4>>2]|0)-(c[(c[j>>2]|0)+ -16+4>>2]|0));break};case 94:{Vn(c[q>>2]|0,0,0,0,c[(c[j>>2]|0)+ -32+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0,0,0,0,0)|0;break};case 95:{Wn(c[q>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0);break};case 61:{Tn(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0);break};case 66:{Yn(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0);break};case 67:{Zn(c[q>>2]|0,(c[j>>2]|0)+4|0);break};case 70:{c[h>>2]=0;break};case 62:{Un(c[q>>2]|0,0,c[(c[j>>2]|0)+ -16+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0);break};case 106:{_n(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0,0,c[(c[j>>2]|0)+ -16+4>>2]|0);break};case 59:{Sn(J,c[q>>2]|0,97,(c[j>>2]|0)+4|0);Qn(c[q>>2]|0,J);break};case 87:{f=(c[j>>2]|0)+ -16+4|0;c[h+0>>2]=c[f+0>>2];c[h+4>>2]=c[f+4>>2];break};case 90:{c[(c[q>>2]|0)+324>>2]=0;break};case 76:{c[h>>2]=7;break};case 75:{c[h>>2]=c[(c[j>>2]|0)+4>>2]<<8;c[h+4>>2]=65280;break};case 77:{c[h>>2]=8;break};case 78:{c[h>>2]=9;break};case 79:{c[h>>2]=6;break};case 80:{c[h>>2]=0;break};case 73:case 72:{c[h>>2]=0;c[h+4>>2]=0;break};case 74:{c[h>>2]=c[(c[j>>2]|0)+4>>2];c[h+4>>2]=255;break};case 19:{Kn(c[q>>2]|0);break};case 8:{Hn(c[q>>2]|0);break};case 58:{c[W>>2]=Rn(c[q>>2]|0,157,c[(c[j>>2]|0)+4>>2]|0,0,0)|0;c[W+4>>2]=c[(c[j>>2]|0)+ -16+4>>2];c[W+8>>2]=c[(c[j>>2]|0)+12>>2];Qn(c[q>>2]|0,W);break};case 7:{Gn(c[q>>2]|0,2);break};case 13:{c[h>>2]=7;break};case 93:{Un(c[q>>2]|0,c[(c[j>>2]|0)+ -48+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0,0);break};case 32:{Nn(c[q>>2]|0,(c[j>>2]|0)+ -32+4|0,(c[j>>2]|0)+ -16+4|0,a[(c[j>>2]|0)+4>>0]|0,0);break};case 110:{_n(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0,1,c[(c[j>>2]|0)+ -16+4>>2]|0);break};case 111:{c[u+0>>2]=c[2508];c[u+4>>2]=c[2509];c[u+8>>2]=c[2510];c[u+12>>2]=c[2511];c[u+16>>2]=c[2512];ao(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0,u)|0;tn(c[c[q>>2]>>2]|0,c[(c[j>>2]|0)+4>>2]|0);break};case 112:{c[v>>2]=c[(c[j>>2]|0)+4>>2];if(c[v>>2]|0){c[y>>2]=0;c[(c[v>>2]|0)+68>>2]=c[(c[j>>2]|0)+ -16+4>>2];if(c[(c[v>>2]|0)+52>>2]|0){c[A>>2]=0;c[z>>2]=c[v>>2];while(1){if(!(c[z>>2]|0))break;c[(c[z>>2]|0)+56>>2]=c[A>>2];f=(c[z>>2]|0)+6|0;b[f>>1]=e[f>>1]|64;c[A>>2]=c[z>>2];c[z>>2]=c[(c[z>>2]|0)+52>>2];c[y>>2]=(c[y>>2]|0)+1}c[x>>2]=c[(c[c[q>>2]>>2]|0)+104>>2];if((c[x>>2]|0)!=0?(c[y>>2]|0)>(c[x>>2]|0):0)Se(c[q>>2]|0,10056,r)}}else rn(c[c[q>>2]>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0);c[h>>2]=c[v>>2];break};case 116:{c[h>>2]=116;break};case 27:{a[(c[c[q>>2]>>2]|0)+250>>0]=0;f=(c[j>>2]|0)+4|0;c[h+0>>2]=c[f+0>>2];c[h+4>>2]=c[f+4>>2];break};case 103:case 100:case 98:case 82:{c[h>>2]=c[(c[j>>2]|0)+4>>2];break};case 86:{c[h+4>>2]=0;c[h>>2]=0;break};case 46:{c[h>>2]=c[(c[j>>2]|0)+ -48+4>>2];c[h+4>>2]=(c[(c[j>>2]|0)+4>>2]|0)+(c[(c[j>>2]|0)+8>>2]|0)-(c[(c[j>>2]|0)+ -48+4>>2]|0);break};case 102:{a[h>>0]=c[(c[j>>2]|0)+4>>2];break};case 104:{c[h>>2]=4;break};case 105:{c[h>>2]=5;break};case 109:{$n(c[q>>2]|0,(c[j>>2]|0)+ -112+4|0,(c[j>>2]|0)+ -48+4|0,(c[j>>2]|0)+ -32+4|0,c[(c[j>>2]|0)+4>>2]|0,c[(c[j>>2]|0)+ -96+4>>2]|0,c[(c[j>>2]|0)+ -64+4>>2]|0);break};case 24:{Ln(c[q>>2]|0,2,(c[j>>2]|0)+4|0);break};case 118:{c[h>>2]=co(c[q>>2]|0,c[(c[j>>2]|0)+ -96+4>>2]|0,c[(c[j>>2]|0)+ -80+4>>2]|0,c[(c[j>>2]|0)+ -64+4>>2]|0,c[(c[j>>2]|0)+ -48+4>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0,b[(c[j>>2]|0)+ -112+4>>1]|0,c[(c[j>>2]|0)+4>>2]|0,c[(c[j>>2]|0)+8>>2]|0)|0;break};case 120:{c[h>>2]=co(c[q>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0,0,0,0,0,0,128,0,0)|0;break};case 133:{c[h>>2]=se(c[c[q>>2]>>2]|0,80,0)|0;break};case 134:{c[h>>2]=c[(c[j>>2]|0)+4>>2];io(c[h>>2]|0);break};case 135:{c[h>>2]=c[(c[j>>2]|0)+ -16+4>>2];if((c[h>>2]|0)!=0?(c[c[h>>2]>>2]|0)>0:0)a[(c[h>>2]|0)+8+(((c[c[h>>2]>>2]|0)-1|0)*72|0)+36>>0]=c[(c[j>>2]|0)+4>>2];break};case 121:{c[B>>2]=co(c[q>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0,0,0,0,0,0,128,0,0)|0;if(c[B>>2]|0){a[(c[B>>2]|0)+4>>0]=116;c[(c[B>>2]|0)+52>>2]=c[(c[j>>2]|0)+ -64+4>>2];c[h>>2]=c[B>>2];break a}else{c[h>>2]=c[(c[j>>2]|0)+ -64+4>>2];break a}};case 63:{Vn(c[q>>2]|0,0,0,0,0,c[(c[j>>2]|0)+4>>2]|0,0,0,0,0)|0;break};case 39:{On(c[q>>2]|0,(c[j>>2]|0)+4|0);f=(c[j>>2]|0)+4|0;c[h+0>>2]=c[f+0>>2];c[h+4>>2]=c[f+4>>2];c[(c[q>>2]|0)+324>>2]=0;break};case 71:{c[h>>2]=c[(c[j>>2]|0)+ -16+4>>2]&~c[(c[j>>2]|0)+8>>2]|c[(c[j>>2]|0)+4>>2];break};case 92:case 54:{f=(c[q>>2]|0)+320|0;g=(c[j>>2]|0)+4|0;c[f+0>>2]=c[g+0>>2];c[f+4>>2]=c[g+4>>2];break};case 56:{Qn(c[q>>2]|0,(c[j>>2]|0)+ -16+4|0);break};case 57:case 55:{Qn(c[q>>2]|0,(c[j>>2]|0)+4|0);break};case 38:{c[h>>2]=c[(c[j>>2]|0)+ -32+4>>2];c[h+4>>2]=(c[(c[q>>2]|0)+504>>2]|0)-(c[(c[j>>2]|0)+ -32+4>>2]|0)+(c[(c[q>>2]|0)+508>>2]|0);break};case 99:{c[h>>2]=10;break};case 101:{a[h>>0]=10;break};case 96:{Xn(c[q>>2]|0,c[(c[j>>2]|0)+ -96+4>>2]|0,(c[j>>2]|0)+ -48+4|0,c[(c[j>>2]|0)+ -32+4>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0);Yn(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0);break};case 44:{Pn(c[q>>2]|0,(c[j>>2]|0)+4|0);break};case 122:{b[h>>1]=1;break};case 124:case 123:{b[h>>1]=0;break};case 243:case 125:{c[h>>2]=c[(c[j>>2]|0)+ -16+4>>2];break};case 242:case 236:case 161:case 154:case 126:{c[h>>2]=0;break};case 64:{Wn(c[q>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0);break};case 127:{c[h>>2]=eo(c[q>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0)|0;if((c[(c[j>>2]|0)+8>>2]|0)>>>0>0)fo(c[q>>2]|0,c[h>>2]|0,(c[j>>2]|0)+4|0,1);go(c[q>>2]|0,c[h>>2]|0,(c[j>>2]|0)+ -16+4|0);break};case 128:{c[C>>2]=ho(c[c[q>>2]>>2]|0,116,0)|0;c[h>>2]=eo(c[q>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0,c[C>>2]|0)|0;break};case 132:{c[h+4>>2]=0;break};case 129:{c[E>>2]=Rn(c[q>>2]|0,116,0,0,(c[j>>2]|0)+4|0)|0;c[F>>2]=Rn(c[q>>2]|0,27,0,0,(c[j>>2]|0)+ -32+4|0)|0;c[D>>2]=Rn(c[q>>2]|0,122,c[F>>2]|0,c[E>>2]|0,0)|0;c[h>>2]=eo(c[q>>2]|0,c[(c[j>>2]|0)+ -48+4>>2]|0,c[D>>2]|0)|0;break};case 137:{c[h>>2]=bo(c[q>>2]|0,c[(c[j>>2]|0)+ -96+4>>2]|0,(c[j>>2]|0)+ -80+4|0,(c[j>>2]|0)+ -64+4|0,(c[j>>2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2]|0)+20>>2]=c[(c[I>>2]|0)+20>>2];c[(c[I>>2]|0)+4>>2]=0;c[(c[I>>2]|0)+8>>2]=0;c[(c[I>>2]|0)+20>>2]=0}vn(c[c[q>>2]>>2]|0,c[(c[j>>2]|0)+ -64+4>>2]|0);break};case 149:case 140:{c[h>>2]=0;c[h+4>>2]=0;break};case 144:{c[h>>2]=lo(c[q>>2]|0,(c[j>>2]|0)+ -16+4|0,0,0)|0;break};case 145:{c[h>>2]=lo(c[q>>2]|0,(c[j>>2]|0)+ -32+4|0,(c[j>>2]|0)+ -16+4|0,0)|0;break};case 146:{c[h>>2]=lo(c[q>>2]|0,(c[j>>2]|0)+ -48+4|0,(c[j>>2]|0)+ -32+4|0,(c[j>>2]|0)+ -16+4|0)|0;break};case 143:{c[h>>2]=1;break};case 142:{c[h>>2]=ko(c[c[q>>2]>>2]|0,0,(c[j>>2]|0)+ -16+4|0,(c[j>>2]|0)+4|0)|0;break};case 180:case 152:{c[h>>2]=c[(c[j>>2]|0)+ -16+4>>2];break};case 179:case 153:{c[h>>2]=0;break};case 235:case 162:case 155:{c[h>>2]=c[(c[j>>2]|0)+4>>2];break};case 156:{c[h>>2]=eo(c[q>>2]|0,c[(c[j>>2]|0)+ -48+4>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0)|0;if(c[h>>2]|0)a[(c[(c[h>>2]|0)+4>>2]|0)+(((c[c[h>>2]>>2]|0)-1|0)*20|0)+12>>0]=c[(c[j>>2]|0)+4>>2];break};case 233:case 231:case 171:case 164:case 147:{c[h>>2]=c[(c[j>>2]|0)+4>>2];break};case 234:case 232:case 170:case 163:case 148:{c[h>>2]=0;break};case 151:{c[h>>2]=0;c[h+4>>2]=1;break};case 160:case 158:{c[h>>2]=0;break};case 159:{c[h>>2]=1;break};case 165:{c[h>>2]=0;c[h+4>>2]=0;break};case 166:{c[h>>2]=c[(c[j>>2]|0)+4>>2];c[h+4>>2]=0;break};case 167:{c[h>>2]=c[(c[j>>2]|0)+ -32+4>>2];c[h+4>>2]=c[(c[j>>2]|0)+4>>2];break};case 157:{c[h>>2]=eo(c[q>>2]|0,0,c[(c[j>>2]|0)+ -16+4>>2]|0)|0;if((c[h>>2]|0)!=0?(c[(c[h>>2]|0)+4>>2]|0)!=0:0)a[(c[(c[h>>2]|0)+4>>2]|0)+12>>0]=c[(c[j>>2]|0)+4>>2];break};case 181:{c[h>>2]=ro(c[c[q>>2]>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0,(c[j>>2]|0)+4|0)|0;break};case 182:{c[h>>2]=ro(c[c[q>>2]>>2]|0,0,(c[j>>2]|0)+4|0)|0;break};case 183:{f=(c[j>>2]|0)+4|0;c[h+0>>2]=c[f+0>>2];c[h+4>>2]=c[f+4>>2];c[h+8>>2]=c[f+8>>2];break};case 168:{c[h+4>>2]=c[(c[j>>2]|0)+ -32+4>>2];c[h>>2]=c[(c[j>>2]|0)+4>>2];break};case 169:{mo(c[q>>2]|0,c[(c[j>>2]|0)+ -80+4>>2]|0,1);jo(c[q>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0,(c[j>>2]|0)+ -16+4|0);no(c[q>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0,c[(c[j>>2]|0)+4>>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:{f=(c[j>>2]|0)+4|0;c[h+0>>2]=c[f+0>>2];c[h+4>>2]=c[f+4>>2];break};case 119:case 113:{c[h>>2]=c[(c[j>>2]|0)+4>>2];break};case 114:{c[w>>2]=c[(c[j>>2]|0)+4>>2];if((c[w>>2]|0)!=0?(c[(c[w>>2]|0)+52>>2]|0)!=0:0){c[L+4>>2]=0;c[K>>2]=bo(c[q>>2]|0,0,0,0,L,c[w>>2]|0,0,0)|0;c[w>>2]=co(c[q>>2]|0,0,c[K>>2]|0,0,0,0,0,0,0,0)|0}if(c[w>>2]|0){a[(c[w>>2]|0)+4>>0]=c[(c[j>>2]|0)+ -16+4>>2];c[(c[w>>2]|0)+52>>2]=c[(c[j>>2]|0)+ -32+4>>2];if((c[(c[j>>2]|0)+ -16+4>>2]|0)!=116)a[(c[q>>2]|0)+22>>0]=1}else tn(c[c[q>>2]>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0);c[h>>2]=c[w>>2];break};case 47:{c[h>>2]=c[(c[j>>2]|0)+ -80+4>>2];c[h+4>>2]=(c[(c[j>>2]|0)+4>>2]|0)+(c[(c[j>>2]|0)+8>>2]|0)-(c[(c[j>>2]|0)+ -80+4>>2]|0);break};case 22:{Ln(c[q>>2]|0,0,(c[j>>2]|0)+4|0);break};case 34:{a[h>>0]=0;break};case 5:{Gn(c[q>>2]|0,0);break};case 18:case 17:{Jn(c[q>>2]|0);break};case 35:{if((c[(c[j>>2]|0)+8>>2]|0)==5?(Lb(c[(c[j>>2]|0)+4>>2]|0,9992,5)|0)==0:0){a[h>>0]=32;break a}a[h>>0]=0;f=c[q>>2]|0;g=c[(c[j>>2]|0)+4>>2]|0;c[r>>2]=c[(c[j>>2]|0)+8>>2];c[r+4>>2]=g;Se(f,1e4,r);break};case 6:{Gn(c[q>>2]|0,1);break};case 172:{mo(c[q>>2]|0,c[(c[j>>2]|0)+ -112+4>>2]|0,1);jo(c[q>>2]|0,c[(c[j>>2]|0)+ -64+4>>2]|0,(c[j>>2]|0)+ -48+4|0);oo(c[q>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0,10096);po(c[q>>2]|0,c[(c[j>>2]|0)+ -64+4>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0,d[(c[j>>2]|0)+ -80+4>>0]|0);break};case 173:{c[h>>2]=eo(c[q>>2]|0,c[(c[j>>2]|0)+ -64+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0)|0;fo(c[q>>2]|0,c[h>>2]|0,(c[j>>2]|0)+ -32+4|0,1);break};case 174:{c[h>>2]=eo(c[q>>2]|0,0,c[(c[j>>2]|0)+4>>2]|0)|0;fo(c[q>>2]|0,c[h>>2]|0,(c[j>>2]|0)+ -32+4|0,1);break};case 175:{mo(c[q>>2]|0,c[(c[j>>2]|0)+ -80+4>>2]|0,1);qo(c[q>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0,d[(c[j>>2]|0)+ -64+4>>0]|0);break};case 176:{mo(c[q>>2]|0,c[(c[j>>2]|0)+ -96+4>>2]|0,1);qo(c[q>>2]|0,c[(c[j>>2]|0)+ -48+4>>2]|0,0,c[(c[j>>2]|0)+ -32+4>>2]|0,d[(c[j>>2]|0)+ -80+4>>0]|0);break};case 177:{a[h>>0]=a[(c[j>>2]|0)+4>>0]|0;break};case 178:{a[h>>0]=5;break};case 184:{c[h>>2]=c[(c[j>>2]|0)+ -16+4>>2];so(h,(c[j>>2]|0)+ -32+4|0,(c[j>>2]|0)+4|0);break};case 191:case 190:case 185:{Sn(h,c[q>>2]|0,d[(c[j>>2]|0)+2>>0]|0,(c[j>>2]|0)+4|0);break};case 187:case 186:{Sn(h,c[q>>2]|0,27,(c[j>>2]|0)+4|0);break};case 188:{c[N>>2]=Rn(c[q>>2]|0,27,0,0,(c[j>>2]|0)+ -32+4|0)|0;c[M>>2]=Rn(c[q>>2]|0,27,0,0,(c[j>>2]|0)+4|0)|0;c[h>>2]=Rn(c[q>>2]|0,122,c[N>>2]|0,c[M>>2]|0,0)|0;so(h,(c[j>>2]|0)+ -32+4|0,(c[j>>2]|0)+4|0);break};case 189:{c[P>>2]=Rn(c[q>>2]|0,27,0,0,(c[j>>2]|0)+ -64+4|0)|0;c[R>>2]=Rn(c[q>>2]|0,27,0,0,(c[j>>2]|0)+ -32+4|0)|0;c[Q>>2]=Rn(c[q>>2]|0,27,0,0,(c[j>>2]|0)+4|0)|0;c[O>>2]=Rn(c[q>>2]|0,122,c[R>>2]|0,c[Q>>2]|0,0)|0;c[h>>2]=Rn(c[q>>2]|0,122,c[P>>2]|0,c[O>>2]|0,0)|0;so(h,(c[j>>2]|0)+ -64+4|0,(c[j>>2]|0)+4|0);break};case 192:{do if(((c[(c[j>>2]|0)+8>>2]|0)>>>0>=2?(a[c[(c[j>>2]|0)+4>>2]>>0]|0)==35:0)?(d[1224+(d[(c[(c[j>>2]|0)+4>>2]|0)+1>>0]|0)>>0]&4|0)!=0:0){t=c[q>>2]|0;u=(c[j>>2]|0)+4|0;if(!(d[(c[q>>2]|0)+18>>0]|0)){c[r>>2]=u;Se(t,9968,r);c[h>>2]=0;break}c[h>>2]=Rn(t,159,0,0,u)|0;if(c[h>>2]|0)Ag((c[(c[j>>2]|0)+4>>2]|0)+1|0,(c[h>>2]|0)+28|0)|0}else s=170;while(0);if((s|0)==170){Sn(h,c[q>>2]|0,135,(c[j>>2]|0)+4|0);to(c[q>>2]|0,c[h>>2]|0)}so(h,(c[j>>2]|0)+4|0,(c[j>>2]|0)+4|0);break};case 193:{c[h>>2]=uo(c[q>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0,(c[j>>2]|0)+4|0)|0;c[h+4>>2]=c[(c[j>>2]|0)+ -32+8>>2];c[h+8>>2]=(c[(c[j>>2]|0)+4>>2]|0)+(c[(c[j>>2]|0)+8>>2]|0);break};case 194:{c[h>>2]=Rn(c[q>>2]|0,38,c[(c[j>>2]|0)+ -48+4>>2]|0,0,(c[j>>2]|0)+ -16+4|0)|0;so(h,(c[j>>2]|0)+ -80+4|0,(c[j>>2]|0)+4|0);break};case 195:{if((c[(c[j>>2]|0)+ -16+4>>2]|0)!=0?(c[c[(c[j>>2]|0)+ -16+4>>2]>>2]|0)>(c[(c[c[q>>2]>>2]|0)+112>>2]|0):0){f=c[q>>2]|0;c[r>>2]=(c[j>>2]|0)+ -64+4;Se(f,10112,r)}c[h>>2]=vo(c[q>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0,(c[j>>2]|0)+ -64+4|0)|0;so(h,(c[j>>2]|0)+ -64+4|0,(c[j>>2]|0)+4|0);if((e[(c[j>>2]|0)+ -32+4>>1]|0)!=0?(c[h>>2]|0)!=0:0){f=(c[h>>2]|0)+4|0;c[f>>2]=c[f>>2]|16}break};case 196:{c[h>>2]=vo(c[q>>2]|0,0,(c[j>>2]|0)+ -48+4|0)|0;so(h,(c[j>>2]|0)+ -48+4|0,(c[j>>2]|0)+4|0);break};case 197:{c[h>>2]=vo(c[q>>2]|0,0,(c[j>>2]|0)+4|0)|0;so(h,(c[j>>2]|0)+4|0,(c[j>>2]|0)+4|0);break};case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{wo(h,c[q>>2]|0,d[(c[j>>2]|0)+ -16+2>>0]|0,(c[j>>2]|0)+ -32+4|0,(c[j>>2]|0)+4|0);break};case 206:{f=(c[j>>2]|0)+4|0;c[h+0>>2]=c[f+0>>2];c[h+4>>2]=c[f+4>>2];c[h+8>>2]=0;break};case 207:{f=(c[j>>2]|0)+4|0;c[h+0>>2]=c[f+0>>2];c[h+4>>2]=c[f+4>>2];c[h+8>>2]=1;break};case 208:{c[S>>2]=eo(c[q>>2]|0,0,c[(c[j>>2]|0)+4>>2]|0)|0;c[S>>2]=eo(c[q>>2]|0,c[S>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0)|0;c[h>>2]=vo(c[q>>2]|0,c[S>>2]|0,(c[j>>2]|0)+ -16+4|0)|0;if(c[(c[j>>2]|0)+ -16+12>>2]|0)c[h>>2]=Rn(c[q>>2]|0,19,c[h>>2]|0,0,0)|0;c[h+4>>2]=c[(c[j>>2]|0)+ -32+8>>2];c[h+8>>2]=c[(c[j>>2]|0)+12>>2];if(c[h>>2]|0){f=(c[h>>2]|0)+4|0;c[f>>2]=c[f>>2]|128}break};case 209:{c[T>>2]=eo(c[q>>2]|0,0,c[(c[j>>2]|0)+ -32+4>>2]|0)|0;c[T>>2]=eo(c[q>>2]|0,c[T>>2]|0,c[(c[j>>2]|0)+ -64+4>>2]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2]|0,c[(c[j>>2]|0)+ -64+4>>2]|0)}while(0);c[h+4>>2]=c[(c[j>>2]|0)+ -64+8>>2];c[h+8>>2]=(c[(c[j>>2]|0)+4>>2]|0)+(c[(c[j>>2]|0)+8>>2]|0);break};case 210:{xo(h,c[q>>2]|0,d[(c[j>>2]|0)+2>>0]|0,(c[j>>2]|0)+ -16+4|0,(c[j>>2]|0)+4|0);break};case 211:{xo(h,c[q>>2]|0,77,(c[j>>2]|0)+ -32+4|0,(c[j>>2]|0)+4|0);break};case 212:{wo(h,c[q>>2]|0,73,(c[j>>2]|0)+ -32+4|0,(c[j>>2]|0)+4|0);yo(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0,c[h>>2]|0,76);break};case 213:{wo(h,c[q>>2]|0,148,(c[j>>2]|0)+ -48+4|0,(c[j>>2]|0)+4|0);yo(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0,c[h>>2]|0,77);break};case 215:case 214:{zo(h,c[q>>2]|0,d[(c[j>>2]|0)+ -16+2>>0]|0,(c[j>>2]|0)+4|0,(c[j>>2]|0)+ -16+4|0);break};case 216:{zo(h,c[q>>2]|0,157,(c[j>>2]|0)+4|0,(c[j>>2]|0)+ -16+4|0);break};case 217:{zo(h,c[q>>2]|0,158,(c[j>>2]|0)+4|0,(c[j>>2]|0)+ -16+4|0);break};case 220:{c[V>>2]=eo(c[q>>2]|0,0,c[(c[j>>2]|0)+ -32+4>>2]|0)|0;c[V>>2]=eo(c[q>>2]|0,c[V>>2]|0,c[(c[j>>2]|0)+4>>2]|0)|0;c[h>>2]=Rn(c[q>>2]|0,74,c[(c[j>>2]|0)+ -64+4>>2]|0,0,0)|0;if(c[h>>2]|0)c[(c[h>>2]|0)+20>>2]=c[V>>2];else sn(c[c[q>>2]>>2]|0,c[V>>2]|0);if(c[(c[j>>2]|0)+ -48+4>>2]|0)c[h>>2]=Rn(c[q>>2]|0,19,c[h>>2]|0,0,0)|0;c[h+4>>2]=c[(c[j>>2]|0)+ -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)|0;break};case 229:{c[h>>2]=eo(c[q>>2]|0,c[(c[j>>2]|0)+ -64+4>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0)|0;c[h>>2]=eo(c[q>>2]|0,c[h>>2]|0,c[(c[j>>2]|0)+4>>2]|0)|0;break};case 230:{c[h>>2]=eo(c[q>>2]|0,0,c[(c[j>>2]|0)+ -32+4>>2]|0)|0;c[h>>2]=eo(c[q>>2]|0,c[h>>2]|0,c[(c[j>>2]|0)+4>>2]|0)|0;break};case 237:{c[h>>2]=eo(c[q>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0)|0;break};case 248:{Bo(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0);break};case 250:case 249:{Co(c[q>>2]|0);break};case 251:{Do(c[q>>2]|0,(c[j>>2]|0)+ -16+4|0,(c[j>>2]|0)+4|0,0,0);break};case 252:{Do(c[q>>2]|0,(c[j>>2]|0)+ -48+4|0,(c[j>>2]|0)+ -32+4|0,(c[j>>2]|0)+4|0,0);break};case 291:case 240:{c[h>>2]=2;break};case 241:{c[h>>2]=0;break};case 239:{Vn(c[q>>2]|0,(c[j>>2]|0)+ -112+4|0,(c[j>>2]|0)+ -96+4|0,ko(c[c[q>>2]>>2]|0,0,(c[j>>2]|0)+ -64+4|0,0)|0,c[(c[j>>2]|0)+ -32+4>>2]|0,c[(c[j>>2]|0)+ -160+4>>2]|0,(c[j>>2]|0)+ -176+4|0,c[(c[j>>2]|0)+4>>2]|0,0,c[(c[j>>2]|0)+ -128+4>>2]|0)|0;break};case 244:{c[Y>>2]=uo(c[q>>2]|0,0,(c[j>>2]|0)+ -16+4|0)|0;c[h>>2]=eo(c[q>>2]|0,c[(c[j>>2]|0)+ -64+4>>2]|0,c[Y>>2]|0)|0;fo(c[q>>2]|0,c[h>>2]|0,(c[j>>2]|0)+ -32+4|0,1);oo(c[q>>2]|0,c[h>>2]|0,10168);if(c[h>>2]|0)a[(c[(c[h>>2]|0)+4>>2]|0)+(((c[c[h>>2]>>2]|0)-1|0)*20|0)+12>>0]=c[(c[j>>2]|0)+4>>2];break};case 245:{c[Z>>2]=uo(c[q>>2]|0,0,(c[j>>2]|0)+ -16+4|0)|0;c[h>>2]=eo(c[q>>2]|0,0,c[Z>>2]|0)|0;fo(c[q>>2]|0,c[h>>2]|0,(c[j>>2]|0)+ -32+4|0,1);oo(c[q>>2]|0,c[h>>2]|0,10168);if(c[h>>2]|0)a[(c[(c[h>>2]|0)+4>>2]|0)+(((c[c[h>>2]>>2]|0)-1|0)*20|0)+12>>0]=c[(c[j>>2]|0)+4>>2];break};case 246:{c[h>>2]=0;c[h+4>>2]=0;break};case 271:case 270:{c[h>>2]=d[(c[j>>2]|0)+2>>0];c[h+4>>2]=0;break};case 296:case 275:{c[h>>2]=0;break};case 272:{c[h>>2]=110;c[h+4>>2]=c[(c[j>>2]|0)+4>>2];break};case 297:case 276:{c[h>>2]=c[(c[j>>2]|0)+4>>2];break};case 253:{Do(c[q>>2]|0,(c[j>>2]|0)+ -64+4|0,(c[j>>2]|0)+ -48+4|0,(c[j>>2]|0)+ -16+4|0,0);break};case 254:{Do(c[q>>2]|0,(c[j>>2]|0)+ -48+4|0,(c[j>>2]|0)+ -32+4|0,(c[j>>2]|0)+4|0,1);break};case 255:{Do(c[q>>2]|0,(c[j>>2]|0)+ -64+4|0,(c[j>>2]|0)+ -48+4|0,(c[j>>2]|0)+ -16+4|0,1);break};case 264:{c[_>>2]=c[(c[j>>2]|0)+ -48+4>>2];c[_+4>>2]=(c[(c[j>>2]|0)+4>>2]|0)-(c[(c[j>>2]|0)+ -48+4>>2]|0)+(c[(c[j>>2]|0)+8>>2]|0);Eo(c[q>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0,_);break};case 265:{Fo(c[q>>2]|0,(c[j>>2]|0)+ -112+4|0,(c[j>>2]|0)+ -96+4|0,c[(c[j>>2]|0)+ -80+4>>2]|0,c[(c[j>>2]|0)+ -64+4>>2]|0,c[(c[j>>2]|0)+ -64+8>>2]|0,c[(c[j>>2]|0)+ -32+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0,c[(c[j>>2]|0)+ -160+4>>2]|0,c[(c[j>>2]|0)+ -128+4>>2]|0);q=c[j>>2]|0;if(!(c[(c[j>>2]|0)+ -96+8>>2]|0)){f=q+ -112+4|0;c[h+0>>2]=c[f+0>>2];c[h+4>>2]=c[f+4>>2];break a}else{f=q+ -96+4|0;c[h+0>>2]=c[f+0>>2];c[h+4>>2]=c[f+4>>2];break a}};case 269:case 266:{c[h>>2]=35;break};case 267:{c[h>>2]=31;break};case 268:{c[h>>2]=49;break};case 283:{Se(c[q>>2]|0,10360,r);break};case 284:{c[h>>2]=Go(c[c[q>>2]>>2]|0,(c[j>>2]|0)+ -64+4|0,c[(c[j>>2]|0)+ -16+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0,a[(c[j>>2]|0)+ -80+4>>0]|0)|0;break};case 277:{c[(c[(c[(c[j>>2]|0)+ -32+4>>2]|0)+36>>2]|0)+32>>2]=c[(c[j>>2]|0)+ -16+4>>2];c[(c[(c[j>>2]|0)+ -32+4>>2]|0)+36>>2]=c[(c[j>>2]|0)+ -16+4>>2];c[h>>2]=c[(c[j>>2]|0)+ -32+4>>2];break};case 278:{c[(c[(c[j>>2]|0)+ -16+4>>2]|0)+36>>2]=c[(c[j>>2]|0)+ -16+4>>2];c[h>>2]=c[(c[j>>2]|0)+ -16+4>>2];break};case 282:{Se(c[q>>2]|0,10272,r);break};case 280:{f=(c[j>>2]|0)+4|0;c[h+0>>2]=c[f+0>>2];c[h+4>>2]=c[f+4>>2];Se(c[q>>2]|0,10176,r);break};case 287:{c[h>>2]=Jo(c[c[q>>2]>>2]|0,c[(c[j>>2]|0)+4>>2]|0)|0;break};case 288:{c[h>>2]=Rn(c[q>>2]|0,57,0,0,0)|0;if(c[h>>2]|0)a[(c[h>>2]|0)+1>>0]=4;c[h+4>>2]=c[(c[j>>2]|0)+ -48+4>>2];c[h+8>>2]=(c[(c[j>>2]|0)+4>>2]|0)+(c[(c[j>>2]|0)+8>>2]|0);break};case 285:{c[h>>2]=Ho(c[c[q>>2]>>2]|0,(c[j>>2]|0)+ -32+4|0,c[(c[j>>2]|0)+ -16+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0,a[(c[j>>2]|0)+ -64+4>>0]|0)|0;break};case 286:{c[h>>2]=Io(c[c[q>>2]>>2]|0,(c[j>>2]|0)+ -32+4|0,c[(c[j>>2]|0)+4>>2]|0)|0;break};case 293:{Ko(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0);break};case 294:{Lo(c[q>>2]|0,c[(c[j>>2]|0)+ -48+4>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0,c[(c[j>>2]|0)+4>>2]|0);break};case 295:{Mo(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0);break};case 300:{No(c[q>>2]|0,0,0);break};case 289:{c[h>>2]=Rn(c[q>>2]|0,57,0,0,(c[j>>2]|0)+ -16+4|0)|0;if(c[h>>2]|0)a[(c[h>>2]|0)+1>>0]=c[(c[j>>2]|0)+ -48+4>>2];c[h+4>>2]=c[(c[j>>2]|0)+ -80+4>>2];c[h+8>>2]=(c[(c[j>>2]|0)+4>>2]|0)+(c[(c[j>>2]|0)+8>>2]|0);break};case 290:{c[h>>2]=1;break};case 292:{c[h>>2]=3;break};case 303:{Oo(c[q>>2]|0,(c[j>>2]|0)+ -16+4|0,(c[j>>2]|0)+4|0);break};case 304:{Po(c[q>>2]|0,c[(c[j>>2]|0)+ -48+4>>2]|0,(c[j>>2]|0)+4|0);break};case 305:{Qo(c[q>>2]|0,(c[j>>2]|0)+4|0);break};case 306:{a[(c[c[q>>2]>>2]|0)+250>>0]=0;Ro(c[q>>2]|0,c[(c[j>>2]|0)+4>>2]|0);break};case 301:{No(c[q>>2]|0,(c[j>>2]|0)+ -16+4|0,(c[j>>2]|0)+4|0);break};case 302:{Oo(c[q>>2]|0,0,0);break};case 310:{So(c[q>>2]|0,(c[j>>2]|0)+4|0);break};case 311:{To(c[q>>2]|0,(c[j>>2]|0)+ -48+4|0,(c[j>>2]|0)+ -32+4|0,(c[j>>2]|0)+4|0,c[(c[j>>2]|0)+ -64+4>>2]|0);break};case 314:{Uo(c[q>>2]|0);break};case 318:case 317:case 316:{Vo(c[q>>2]|0,(c[j>>2]|0)+4|0);break};case 322:{c[h>>2]=0;break};case 309:{So(c[q>>2]|0,0);break};case 324:case 323:{c[h>>2]=c[(c[j>>2]|0)+4>>2];break};case 325:{c[h>>2]=Wo(c[q>>2]|0,0,(c[j>>2]|0)+ -80+4|0,c[(c[j>>2]|0)+ -64+4>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0)|0;break};case 326:{c[h>>2]=Wo(c[q>>2]|0,c[(c[j>>2]|0)+ -112+4>>2]|0,(c[j>>2]|0)+ -80+4|0,c[(c[j>>2]|0)+ -64+4>>2]|0,c[(c[j>>2]|0)+ -16+4>>2]|0)|0;break};default:{}}while(0);c[m>>2]=d[10448+(c[o>>2]<<1)>>0];c[k>>2]=d[10449+(c[o>>2]<<1)>>0];f=c[p>>2]|0;c[f>>2]=(c[f>>2]|0)-(c[k>>2]|0);c[l>>2]=Xo(e[(c[j>>2]|0)+(0-(c[k>>2]|0)<<4)>>1]|0,c[m>>2]&255)|0;if((c[l>>2]|0)>=642){Yo(c[p>>2]|0);i=n;return}o=c[p>>2]|0;if(c[k>>2]|0){c[o>>2]=(c[o>>2]|0)+1;c[j>>2]=(c[j>>2]|0)+(0-((c[k>>2]|0)-1)<<4);b[c[j>>2]>>1]=c[l>>2];a[(c[j>>2]|0)+2>>0]=c[m>>2];f=(c[j>>2]|0)+4|0;c[f+0>>2]=c[h+0>>2];c[f+4>>2]=c[h+4>>2];c[f+8>>2]=c[h+8>>2];i=n;return}else{Dn(o,c[l>>2]|0,c[m>>2]|0,h);i=n;return}}function Fn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e;f=e+12|0;g=e+4|0;c[f>>2]=a;c[e+8>>2]=b;c[g>>2]=c[(c[f>>2]|0)+8>>2];a=c[g>>2]|0;c[h>>2]=d;Se(a,9968,h);c[(c[f>>2]|0)+8>>2]=c[g>>2];i=e;return}function Gn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+4|0;g=e;c[f>>2]=b;c[g>>2]=d;a[(c[f>>2]|0)+450>>0]=c[g>>2];c[(c[f>>2]|0)+440>>2]=0;i=e;return}function Hn(b){b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;i=i+32|0;g=e+24|0;h=e+20|0;f=e+16|0;m=e+12|0;k=e+8|0;l=e+4|0;j=e;c[g>>2]=b;c[h>>2]=c[c[g>>2]>>2];if(a[(c[h>>2]|0)+64>>0]|0){i=e;return}if(a[(c[g>>2]|0)+18>>0]|0){i=e;return}if(c[(c[g>>2]|0)+64>>2]|0){i=e;return}c[f>>2]=dp(c[g>>2]|0)|0;do if(c[f>>2]|0){do{}while((As(c[f>>2]|0,61)|0)!=0);mp(c[f>>2]|0,24)|0;if(!(d[(c[h>>2]|0)+64>>0]|0)){if((c[(c[g>>2]|0)+332>>2]|0)==0?(c[(c[g>>2]|0)+316>>2]|0)==0:0)break;zp(c[f>>2]|0,0);c[m>>2]=0;while(1){if((c[m>>2]|0)>=(c[(c[h>>2]|0)+20>>2]|0))break;if(((c[(c[g>>2]|0)+332>>2]&1<>2]|0)!=0|0)!=0?(Ze(c[f>>2]|0,c[m>>2]|0),We(c[f>>2]|0,4,c[m>>2]|0,(c[(c[g>>2]|0)+328>>2]&1<>2]|0)!=0&1,c[(c[g>>2]|0)+336+(c[m>>2]<<2)>>2]|0,c[(c[(c[(c[h>>2]|0)+16>>2]|0)+(c[m>>2]<<4)+12>>2]|0)+4>>2]|0)|0,(d[(c[h>>2]|0)+145>>0]|0)==0):0)Xe(c[f>>2]|0,1);c[m>>2]=(c[m>>2]|0)+1}c[k>>2]=0;while(1){if((c[k>>2]|0)>=(c[(c[g>>2]|0)+452>>2]|0))break;c[l>>2]=Rp(c[h>>2]|0,c[(c[(c[g>>2]|0)+520>>2]|0)+(c[k>>2]<<2)>>2]|0)|0;hp(c[f>>2]|0,144,0,0,0,c[l>>2]|0,-10)|0;c[k>>2]=(c[k>>2]|0)+1}c[(c[g>>2]|0)+452>>2]=0;uy(c[g>>2]|0);vy(c[g>>2]|0);a:do if(c[(c[g>>2]|0)+316>>2]|0){c[j>>2]=c[(c[g>>2]|0)+316>>2];a[(c[g>>2]|0)+23>>0]=0;c[k>>2]=0;while(1){if((c[k>>2]|0)>=(c[c[j>>2]>>2]|0))break a;Os(c[g>>2]|0,c[(c[(c[j>>2]|0)+4>>2]|0)+((c[k>>2]|0)*20|0)>>2]|0,c[(c[(c[j>>2]|0)+4>>2]|0)+((c[k>>2]|0)*20|0)+16>>2]|0);c[k>>2]=(c[k>>2]|0)+1}}while(0);fp(c[f>>2]|0,16,0,1)|0}}while(0);if(((c[f>>2]|0)!=0?(c[(c[g>>2]|0)+64>>2]|0)==0:0)?(a[(c[h>>2]|0)+64>>0]|0)==0:0){if((c[(c[g>>2]|0)+404>>2]|0)!=0?(c[(c[g>>2]|0)+68>>2]|0)==0:0)c[(c[g>>2]|0)+68>>2]=1;df(c[f>>2]|0,c[g>>2]|0);c[(c[g>>2]|0)+12>>2]=101;a[(c[g>>2]|0)+16>>0]=0}else c[(c[g>>2]|0)+12>>2]=1;c[(c[g>>2]|0)+68>>2]=0;c[(c[g>>2]|0)+72>>2]=0;c[(c[g>>2]|0)+76>>2]=0;c[(c[g>>2]|0)+440>>2]=0;c[(c[g>>2]|0)+332>>2]=0;i=e;return}function In(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;i=i+32|0;j=d+16|0;h=d+12|0;f=d+8|0;g=d+4|0;e=d;c[j>>2]=a;c[h>>2]=b;c[f>>2]=c[c[j>>2]>>2];if(ap(c[j>>2]|0,22,27128,0,0)|0){i=d;return}c[g>>2]=dp(c[j>>2]|0)|0;if(!(c[g>>2]|0)){i=d;return}a:do if((c[h>>2]|0)!=7){c[e>>2]=0;while(1){if((c[e>>2]|0)>=(c[(c[f>>2]|0)+20>>2]|0))break a;fp(c[g>>2]|0,4,c[e>>2]|0,((c[h>>2]|0)==9&1)+1|0)|0;Ze(c[g>>2]|0,c[e>>2]|0);c[e>>2]=(c[e>>2]|0)+1}}while(0);fp(c[g>>2]|0,3,0,0)|0;i=d;return}function Jn(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;if(ap(c[e>>2]|0,22,27160,0,0)|0){i=b;return}c[d>>2]=dp(c[e>>2]|0)|0;if(!(c[d>>2]|0)){i=b;return}fp(c[d>>2]|0,3,1,0)|0;i=b;return}function Kn(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;if(ap(c[e>>2]|0,22,27144,0,0)|0){i=b;return}c[d>>2]=dp(c[e>>2]|0)|0;if(!(c[d>>2]|0)){i=b;return}fp(c[d>>2]|0,3,1,1)|0;i=b;return}function Ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;j=e+16|0;g=e+12|0;k=e+8|0;h=e+4|0;f=e;c[j>>2]=a;c[g>>2]=b;c[k>>2]=d;c[h>>2]=Zo(c[c[j>>2]>>2]|0,c[k>>2]|0)|0;if(!(c[h>>2]|0)){i=e;return}c[f>>2]=dp(c[j>>2]|0)|0;if((c[f>>2]|0)!=0?(ap(c[j>>2]|0,32,c[27112+(c[g>>2]<<2)>>2]|0,c[h>>2]|0,0)|0)==0:0){hp(c[f>>2]|0,2,c[g>>2]|0,0,0,c[h>>2]|0,-1)|0;i=e;return}Xb(c[c[j>>2]>>2]|0,c[h>>2]|0);i=e;return}function Mn(e,f,g,h,j,k,l){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;m=i;i=i+96|0;t=m;w=m+84|0;I=m+80|0;H=m+76|0;G=m+72|0;z=m+68|0;y=m+64|0;v=m+60|0;D=m+56|0;q=m+52|0;p=m+48|0;o=m+44|0;n=m+40|0;u=m+36|0;B=m+32|0;A=m+28|0;C=m+24|0;E=m+20|0;F=m+16|0;x=m+12|0;s=m+8|0;r=m+4|0;c[w>>2]=e;c[I>>2]=f;c[H>>2]=g;c[G>>2]=h;c[z>>2]=j;c[y>>2]=k;c[v>>2]=l;c[q>>2]=0;c[p>>2]=c[c[w>>2]>>2];c[n>>2]=Er(c[w>>2]|0,c[I>>2]|0,c[H>>2]|0,u)|0;if((c[n>>2]|0)<0){i=m;return}if((c[G>>2]|0)!=0?(c[n>>2]|0)!=1?(c[(c[H>>2]|0)+4>>2]|0)>>>0>0:0:0){Se(c[w>>2]|0,27e3,t);i=m;return}if(c[G>>2]|0)c[n>>2]=1;I=(c[w>>2]|0)+496|0;e=c[u>>2]|0;c[I+0>>2]=c[e+0>>2];c[I+4>>2]=c[e+4>>2];c[q>>2]=Zo(c[p>>2]|0,c[u>>2]|0)|0;if(!(c[q>>2]|0)){i=m;return}a:do if(!(Pp(c[w>>2]|0,c[q>>2]|0)|0)){if((d[(c[p>>2]|0)+144>>0]|0)==1)c[G>>2]=1;c[A>>2]=c[(c[(c[p>>2]|0)+16>>2]|0)+(c[n>>2]<<4)>>2];if(!(ap(c[w>>2]|0,18,(c[G>>2]|0)==1?14904:14928,0,c[A>>2]|0)|0)){l=(c[G>>2]|0)!=0;do if(c[z>>2]|0)if(l){c[B>>2]=6;break}else{c[B>>2]=8;break}else if(l){c[B>>2]=4;break}else{c[B>>2]=2;break}while(0);if((c[y>>2]|0)==0?(ap(c[w>>2]|0,c[B>>2]|0,c[q>>2]|0,0,c[A>>2]|0)|0)!=0:0)break;do if(!(a[(c[w>>2]|0)+451>>0]|0)){c[C>>2]=c[(c[(c[p>>2]|0)+16>>2]|0)+(c[n>>2]<<4)>>2];if(Ar(c[w>>2]|0)|0)break a;c[D>>2]=sp(c[p>>2]|0,c[q>>2]|0,c[C>>2]|0)|0;if(!(c[D>>2]|0)){if(!(Op(c[p>>2]|0,c[q>>2]|0,c[C>>2]|0)|0))break;I=c[w>>2]|0;c[t>>2]=c[q>>2];Se(I,27072,t);break a}o=c[w>>2]|0;if(c[v>>2]|0){qp(o,c[n>>2]|0);break a}else{c[t>>2]=c[u>>2];Se(o,27048,t);break a}}while(0);c[D>>2]=se(c[p>>2]|0,76,0)|0;if(!(c[D>>2]|0)){a[(c[p>>2]|0)+64>>0]=1;c[(c[w>>2]|0)+12>>2]=7;I=(c[w>>2]|0)+64|0;c[I>>2]=(c[I>>2]|0)+1;break}c[c[D>>2]>>2]=c[q>>2];b[(c[D>>2]|0)+36>>1]=-1;c[(c[D>>2]|0)+68>>2]=c[(c[(c[p>>2]|0)+16>>2]|0)+(c[n>>2]<<4)+12>>2];b[(c[D>>2]|0)+40>>1]=1;b[(c[D>>2]|0)+28>>1]=200;c[(c[w>>2]|0)+484>>2]=c[D>>2];if((a[(c[w>>2]|0)+18>>0]|0)==0?(UE(c[q>>2]|0,16152)|0)==0:0)c[(c[(c[D>>2]|0)+68>>2]|0)+72>>2]=c[D>>2];if(a[(c[p>>2]|0)+145>>0]|0){i=m;return}I=dp(c[w>>2]|0)|0;c[o>>2]=I;if(!I){i=m;return}pp(c[w>>2]|0,0,c[n>>2]|0);if(c[y>>2]|0)mp(c[o>>2]|0,144)|0;e=(c[w>>2]|0)+72|0;I=(c[e>>2]|0)+1|0;c[e>>2]=I;c[(c[w>>2]|0)+384>>2]=I;c[x>>2]=I;I=(c[w>>2]|0)+72|0;e=(c[I>>2]|0)+1|0;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y+88|0;v=y+84|0;t=y+80|0;E=y+60|0;F=y+56|0;w=y+52|0;r=y+48|0;A=y+44|0;z=y+40|0;B=y+36|0;l=y+32|0;c[u>>2]=e;c[C>>2]=f;c[x>>2]=g;a[D>>0]=h;c[H>>2]=j;c[n>>2]=c[c[u>>2]>>2];if((c[x>>2]|0)==0&(c[H>>2]|0)==0){i=y;return}if(d[(c[n>>2]|0)+64>>0]|0){i=y;return}c[q>>2]=c[(c[u>>2]|0)+484>>2];if(!(c[q>>2]|0)){i=y;return}if(a[(c[n>>2]|0)+145>>0]|0)c[(c[q>>2]|0)+32>>2]=c[(c[n>>2]|0)+140>>2];do if(d[D>>0]&32){if(d[(c[q>>2]|0)+44>>0]&8){Se(c[u>>2]|0,26608,m);i=y;return}if(!(d[(c[q>>2]|0)+44>>0]&4)){e=c[u>>2]|0;c[m>>2]=c[c[q>>2]>>2];Se(e,26664,m);break}else{e=(c[q>>2]|0)+44|0;a[e>>0]=d[e>>0]|32;oy(c[u>>2]|0,c[q>>2]|0);break}}while(0);c[p>>2]=Ve(c[n>>2]|0,c[(c[q>>2]|0)+68>>2]|0)|0;if(c[(c[q>>2]|0)+24>>2]|0)iy(c[u>>2]|0,c[q>>2]|0,4,0,c[(c[q>>2]|0)+24>>2]|0);py(c[q>>2]|0);c[G>>2]=c[(c[q>>2]|0)+8>>2];while(1){if(!(c[G>>2]|0))break;ky(c[G>>2]|0);c[G>>2]=c[(c[G>>2]|0)+20>>2]}if(!(a[(c[n>>2]|0)+145>>0]|0)){c[o>>2]=dp(c[u>>2]|0)|0;if(!(c[o>>2]|0)){i=y;return}Ir(c[o>>2]|0,61,0)|0;if(!(c[(c[q>>2]|0)+12>>2]|0)){c[s>>2]=21400;c[v>>2]=26696}else{c[s>>2]=25504;c[v>>2]=26704}do if((c[H>>2]|0)!=0?(ip(c[o>>2]|0,55,1,c[(c[u>>2]|0)+388>>2]|0,c[p>>2]|0)|0,Xe(c[o>>2]|0,2),c[(c[u>>2]|0)+68>>2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]|0)+(c[p>>2]<<4),(c[(c[(c[r>>2]|0)+12>>2]|0)+72>>2]|0)==0):0){e=c[u>>2]|0;c[m>>2]=c[c[r>>2]>>2];cp(e,26816,m)}g=c[o>>2]|0;f=c[p>>2]|0;e=c[n>>2]|0;c[m>>2]=c[c[q>>2]>>2];gp(g,f,Te(e,26864,m)|0)}if(!(a[(c[n>>2]|0)+145>>0]|0)){i=y;return}c[z>>2]=c[(c[q>>2]|0)+68>>2];c[A>>2]=gh((c[z>>2]|0)+8|0,c[c[q>>2]>>2]|0,c[q>>2]|0)|0;if(c[A>>2]|0){a[(c[n>>2]|0)+64>>0]=1;i=y;return}c[(c[u>>2]|0)+484>>2]=0;e=(c[n>>2]|0)+24|0;c[e>>2]=c[e>>2]|2;if(c[(c[q>>2]|0)+12>>2]|0){i=y;return}c[B>>2]=c[(c[u>>2]|0)+496>>2];if(!(c[c[C>>2]>>2]|0))c[C>>2]=c[x>>2];c[l>>2]=(c[c[C>>2]>>2]|0)-(c[B>>2]|0);e=13+(Tm(c[B>>2]|0,c[l>>2]|0)|0)|0;c[(c[q>>2]|0)+48>>2]=e;i=y;return}function On(e,f){e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;n=i;i=i+48|0;l=n;j=n+32|0;r=n+28|0;k=n+24|0;q=n+20|0;p=n+16|0;o=n+12|0;m=n+8|0;g=n+4|0;c[j>>2]=e;c[r>>2]=f;c[m>>2]=c[c[j>>2]>>2];e=c[(c[j>>2]|0)+484>>2]|0;c[k>>2]=e;if(!e){i=n;return}if(((b[(c[k>>2]|0)+38>>1]|0)+1|0)>(c[(c[m>>2]|0)+96>>2]|0)){e=c[j>>2]|0;c[l>>2]=c[c[k>>2]>>2];Se(e,26552,l);i=n;return}c[p>>2]=Zo(c[m>>2]|0,c[r>>2]|0)|0;if(!(c[p>>2]|0)){i=n;return}c[q>>2]=0;while(1){if((c[q>>2]|0)>=(b[(c[k>>2]|0)+38>>1]|0))break;if((d[440+(d[c[p>>2]>>0]|0)>>0]|0)==(d[440+(d[c[(c[(c[k>>2]|0)+4>>2]|0)+((c[q>>2]|0)*24|0)>>2]>>0]|0)>>0]|0)?(xc((c[p>>2]|0)+1|0,(c[(c[(c[k>>2]|0)+4>>2]|0)+((c[q>>2]|0)*24|0)>>2]|0)+1|0)|0)==0:0){h=9;break}c[q>>2]=(c[q>>2]|0)+1}if((h|0)==9){e=c[j>>2]|0;c[l>>2]=c[p>>2];Se(e,26576,l);Xb(c[m>>2]|0,c[p>>2]|0);i=n;return}do if(!(b[(c[k>>2]|0)+38>>1]&7)){c[g>>2]=Fk(c[m>>2]|0,c[(c[k>>2]|0)+4>>2]|0,((b[(c[k>>2]|0)+38>>1]|0)+8|0)*24|0,0)|0;if(c[g>>2]|0){c[(c[k>>2]|0)+4>>2]=c[g>>2];break}Xb(c[m>>2]|0,c[p>>2]|0);i=n;return}while(0);c[o>>2]=(c[(c[k>>2]|0)+4>>2]|0)+((b[(c[k>>2]|0)+38>>1]|0)*24|0);e=c[o>>2]|0;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;c[e+20>>2]=0;c[c[o>>2]>>2]=c[p>>2];a[(c[o>>2]|0)+21>>0]=65;a[(c[o>>2]|0)+22>>0]=1;e=(c[k>>2]|0)+38|0;b[e>>1]=(b[e>>1]|0)+1<<16>>16;i=n;return}function Pn(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;j=f+12|0;k=f+8|0;g=f+4|0;h=f;c[j>>2]=d;c[k>>2]=e;c[g>>2]=c[(c[j>>2]|0)+484>>2];if(!(c[g>>2]|0)){i=f;return}if((b[(c[g>>2]|0)+38>>1]|0)<1){i=f;return}c[h>>2]=(c[(c[g>>2]|0)+4>>2]|0)+(((b[(c[g>>2]|0)+38>>1]|0)-1|0)*24|0);d=Zo(c[c[j>>2]>>2]|0,c[k>>2]|0)|0;c[(c[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=f;f=c[c[j>>2]>>2]|0;if((c[n>>2]|0)==72&(c[l>>2]|0)!=0&(c[k>>2]|0)!=0)c[m>>2]=mr(f,c[l>>2]|0,c[k>>2]|0)|0;else{c[m>>2]=or(f,c[n>>2]|0,c[g>>2]|0,1)|0;pr(c[c[j>>2]>>2]|0,c[m>>2]|0,c[l>>2]|0,c[k>>2]|0)}if(!(c[m>>2]|0)){a=c[m>>2]|0;i=h;return a|0}Qq(c[j>>2]|0,c[(c[m>>2]|0)+24>>2]|0)|0;a=c[m>>2]|0;i=h;return a|0}function Sn(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;f=i;i=i+16|0;g=f+12|0;k=f+8|0;j=f+4|0;h=f;c[g>>2]=a;c[k>>2]=b;c[j>>2]=d;c[h>>2]=e;a=Rn(c[k>>2]|0,c[j>>2]|0,0,0,c[h>>2]|0)|0;c[c[g>>2]>>2]=a;c[(c[g>>2]|0)+4>>2]=c[c[h>>2]>>2];c[(c[g>>2]|0)+8>>2]=(c[c[h>>2]>>2]|0)+(c[(c[h>>2]|0)+4>>2]|0);i=f;return}function Tn(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;j=f+8|0;g=f+4|0;h=f;c[j>>2]=d;c[g>>2]=e;c[h>>2]=c[(c[j>>2]|0)+484>>2];if(!(c[h>>2]|0)){i=f;return}if((b[(c[h>>2]|0)+38>>1]|0)<1){i=f;return}a[(c[(c[h>>2]|0)+4>>2]|0)+(((b[(c[h>>2]|0)+38>>1]|0)-1|0)*24|0)+20>>0]=c[g>>2];i=f;return}function Un(e,f,g,h,j){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;s=i;i=i+64|0;n=s;m=s+48|0;l=s+44|0;o=s+40|0;p=s+36|0;q=s+32|0;u=s+28|0;w=s+24|0;t=s+20|0;y=s+16|0;x=s+12|0;k=s+8|0;r=s+4|0;c[m>>2]=e;c[l>>2]=f;c[o>>2]=g;c[p>>2]=h;c[q>>2]=j;c[u>>2]=c[(c[m>>2]|0)+484>>2];c[w>>2]=0;c[t>>2]=-1;if(!(c[u>>2]|0)){f=c[m>>2]|0;f=c[f>>2]|0;e=c[l>>2]|0;sn(f,e);i=s;return}if(d[(c[m>>2]|0)+451>>0]|0){f=c[m>>2]|0;f=c[f>>2]|0;e=c[l>>2]|0;sn(f,e);i=s;return}if(d[(c[u>>2]|0)+44>>0]&4){f=c[m>>2]|0;c[n>>2]=c[c[u>>2]>>2];Se(f,26400,n);f=c[m>>2]|0;f=c[f>>2]|0;e=c[l>>2]|0;sn(f,e);i=s;return}e=(c[u>>2]|0)+44|0;a[e>>0]=d[e>>0]|4;a:do if(!(c[l>>2]|0)){c[t>>2]=(b[(c[u>>2]|0)+38>>1]|0)-1;e=(c[(c[u>>2]|0)+4>>2]|0)+((c[t>>2]|0)*24|0)+23|0;a[e>>0]=d[e>>0]|1;c[w>>2]=c[(c[(c[u>>2]|0)+4>>2]|0)+((c[t>>2]|0)*24|0)+12>>2];c[x>>2]=1}else{c[x>>2]=c[c[l>>2]>>2];c[y>>2]=0;while(1){if((c[y>>2]|0)>=(c[x>>2]|0))break a;c[t>>2]=0;while(1){if((c[t>>2]|0)>=(b[(c[u>>2]|0)+38>>1]|0))break;e=(xc(c[(c[(c[l>>2]|0)+4>>2]|0)+((c[y>>2]|0)*20|0)+4>>2]|0,c[(c[(c[u>>2]|0)+4>>2]|0)+((c[t>>2]|0)*24|0)>>2]|0)|0)==0;j=c[t>>2]|0;if(e){v=12;break}c[t>>2]=j+1}if((v|0)==12){v=0;e=(c[(c[u>>2]|0)+4>>2]|0)+(j*24|0)+23|0;a[e>>0]=d[e>>0]|1;c[w>>2]=c[(c[(c[u>>2]|0)+4>>2]|0)+((c[t>>2]|0)*24|0)+12>>2]}c[y>>2]=(c[y>>2]|0)+1}}while(0);if((c[x>>2]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=i;i=i+240|0;D=s;Y=s+232|0;ka=s+228|0;ja=s+224|0;t=s+220|0;x=s+216|0;B=s+212|0;H=s+208|0;v=s+204|0;ma=s+200|0;_=s+196|0;q=s+192|0;A=s+188|0;w=s+184|0;r=s+180|0;$=s+176|0;J=s+172|0;L=s+168|0;ia=s+144|0;R=s+140|0;u=s+136|0;Z=s+132|0;C=s+128|0;M=s+124|0;Q=s+120|0;X=s+116|0;V=s+112|0;ba=s+108|0;U=s+104|0;K=s+100|0;ga=s+96|0;ha=s+92|0;fa=s+88|0;la=s+84|0;W=s+80|0;S=s+76|0;P=s+72|0;T=s+68|0;I=s+64|0;da=s+60|0;ea=s+56|0;F=s+52|0;G=s+48|0;E=s+44|0;ca=s+40|0;O=s+36|0;aa=s+32|0;N=s+28|0;z=s+24|0;c[Y>>2]=f;c[ka>>2]=g;c[ja>>2]=h;c[t>>2]=j;c[x>>2]=k;c[B>>2]=l;c[H>>2]=m;c[v>>2]=n;c[ma>>2]=o;c[_>>2]=p;c[q>>2]=0;c[A>>2]=0;c[w>>2]=0;c[r>>2]=0;c[u>>2]=c[c[Y>>2]>>2];c[M>>2]=0;c[V>>2]=0;c[U>>2]=0;c[K>>2]=0;a:do if(((d[(c[u>>2]|0)+64>>0]|0)==0?(d[(c[Y>>2]|0)+451>>0]|0)==0:0)?0==(Ar(c[Y>>2]|0)|0):0){p=c[Y>>2]|0;if(c[t>>2]|0){c[C>>2]=Er(p,c[ka>>2]|0,c[ja>>2]|0,M)|0;if((c[C>>2]|0)<0)break;if(((a[(c[u>>2]|0)+145>>0]|0)==0?(c[A>>2]=Ft(c[Y>>2]|0,c[t>>2]|0)|0,(c[A>>2]|0)!=0?(c[(c[ja>>2]|0)+4>>2]|0)==0:0):0)?(c[(c[A>>2]|0)+68>>2]|0)==(c[(c[(c[u>>2]|0)+16>>2]|0)+28>>2]|0):0)c[C>>2]=1;Gt(ia,c[Y>>2]|0,c[C>>2]|0,10168,c[M>>2]|0);Ht(ia,c[t>>2]|0)|0;c[A>>2]=np(c[Y>>2]|0,0,(c[t>>2]|0)+8|0)|0;if(!(c[A>>2]|0))break;if((c[C>>2]|0)==1?(c[(c[(c[u>>2]|0)+16>>2]|0)+(c[C>>2]<<4)+12>>2]|0)!=(c[(c[A>>2]|0)+68>>2]|0):0){f=c[Y>>2]|0;c[D>>2]=c[c[A>>2]>>2];Se(f,25944,D);break}if(d[(c[A>>2]|0)+44>>0]&32)c[K>>2]=Zr(c[A>>2]|0)|0}else{c[A>>2]=c[p+484>>2];if(!(c[A>>2]|0))break;c[C>>2]=Ve(c[u>>2]|0,c[(c[A>>2]|0)+68>>2]|0)|0}c[Z>>2]=(c[(c[u>>2]|0)+16>>2]|0)+(c[C>>2]<<4);if(((Lb(c[c[A>>2]>>2]|0,15144,7)|0)==0?(d[(c[u>>2]|0)+145>>0]|0)==0:0)?(Lb((c[c[A>>2]>>2]|0)+7|0,26e3,9)|0)!=0:0){f=c[Y>>2]|0;c[D>>2]=c[c[A>>2]>>2];Se(f,26016,D);break}if(c[(c[A>>2]|0)+12>>2]|0){Se(c[Y>>2]|0,26048,D);break}if(d[(c[A>>2]|0)+44>>0]&16){Se(c[Y>>2]|0,26080,D);break}if(c[M>>2]|0){c[r>>2]=Zo(c[u>>2]|0,c[M>>2]|0)|0;if(!(c[r>>2]|0))break;if(Pp(c[Y>>2]|0,c[r>>2]|0)|0)break;if((a[(c[u>>2]|0)+145>>0]|0)==0?(sp(c[u>>2]|0,c[r>>2]|0,0)|0)!=0:0){f=c[Y>>2]|0;c[D>>2]=c[r>>2];Se(f,26120,D);break}if(Op(c[u>>2]|0,c[r>>2]|0,c[c[Z>>2]>>2]|0)|0){y=c[Y>>2]|0;if(c[_>>2]|0){qp(y,c[C>>2]|0);break}else{c[D>>2]=c[r>>2];Se(y,26160,D);break}}}else{c[ha>>2]=c[(c[A>>2]|0)+8>>2];c[ga>>2]=1;while(1){if(!(c[ha>>2]|0))break;c[ha>>2]=c[(c[ha>>2]|0)+20>>2];c[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[(c[(c[w>>2]|0)+32>>2]|0)+(c[J>>2]<<2)>>2]=3320}while(0);hs(c[w>>2]|0);if(!(c[(c[Y>>2]|0)+484>>2]|0))ky(c[w>>2]|0);c:do if((c[A>>2]|0)==(c[(c[Y>>2]|0)+484>>2]|0)){c[da>>2]=c[(c[A>>2]|0)+8>>2];while(1){if(!(c[da>>2]|0))break c;if((e[(c[da>>2]|0)+50>>1]|0)==(e[(c[w>>2]|0)+50>>1]|0)){c[ea>>2]=0;while(1){if((c[ea>>2]|0)>=(e[(c[da>>2]|0)+50>>1]|0))break;if((b[(c[(c[da>>2]|0)+4>>2]|0)+(c[ea>>2]<<1)>>1]|0)!=(b[(c[(c[w>>2]|0)+4>>2]|0)+(c[ea>>2]<<1)>>1]|0))break;c[F>>2]=c[(c[(c[da>>2]|0)+32>>2]|0)+(c[ea>>2]<<2)>>2];c[G>>2]=c[(c[(c[w>>2]|0)+32>>2]|0)+(c[ea>>2]<<2)>>2];if((c[F>>2]|0)!=(c[G>>2]|0)?(xc(c[F>>2]|0,c[G>>2]|0)|0)!=0:0)break;c[ea>>2]=(c[ea>>2]|0)+1}if((c[ea>>2]|0)==(e[(c[da>>2]|0)+50>>1]|0))break}c[da>>2]=c[(c[da>>2]|0)+20>>2]}if((d[(c[da>>2]|0)+54>>0]|0)==(d[(c[w>>2]|0)+54>>0]|0))break a;do if((d[(c[da>>2]|0)+54>>0]|0)!=10){if((d[(c[w>>2]|0)+54>>0]|0)==10)break;f=c[Y>>2]|0;c[D>>2]=0;Se(f,26240,D)}while(0);if((d[(c[da>>2]|0)+54>>0]|0)!=10)break a;a[(c[da>>2]|0)+54>>0]=a[(c[w>>2]|0)+54>>0]|0;break a}while(0);do if(a[(c[u>>2]|0)+145>>0]|0){c[E>>2]=gh((c[(c[w>>2]|0)+24>>2]|0)+24|0,c[c[w>>2]>>2]|0,c[w>>2]|0)|0;C=c[u>>2]|0;if(c[E>>2]|0){a[C+64>>0]=1;break a}f=C+24|0;c[f>>2]=c[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0)==0?1:(d[(c[u>>2]|0)+145>>0]|0)!=0))break;do if((c[B>>2]|0)!=5)y=121;else{if(!(c[(c[A>>2]|0)+8>>2]|0)){y=121;break}if((d[(c[(c[A>>2]|0)+8>>2]|0)+54>>0]|0)==5){y=121;break}c[z>>2]=c[(c[A>>2]|0)+8>>2];while(1){if(c[(c[z>>2]|0)+20>>2]|0)B=(d[(c[(c[z>>2]|0)+20>>2]|0)+54>>0]|0)!=5;else B=0;A=c[(c[z>>2]|0)+20>>2]|0;if(!B)break;c[z>>2]=A}c[(c[w>>2]|0)+20>>2]=A;c[(c[z>>2]|0)+20>>2]=c[w>>2]}while(0);if((y|0)==121){c[(c[w>>2]|0)+20>>2]=c[(c[A>>2]|0)+8>>2];c[(c[A>>2]|0)+8>>2]=c[w>>2]}c[q>>2]=c[w>>2];c[w>>2]=0}}}while(0);if(!(c[w>>2]|0)){f=c[u>>2]|0;g=c[v>>2]|0;wn(f,g);g=c[u>>2]|0;f=c[x>>2]|0;sn(g,f);f=c[u>>2]|0;g=c[t>>2]|0;vn(f,g);g=c[u>>2]|0;f=c[r>>2]|0;Xb(g,f);f=c[q>>2]|0;i=s;return f|0}ly(c[u>>2]|0,c[w>>2]|0);f=c[u>>2]|0;g=c[v>>2]|0;wn(f,g);g=c[u>>2]|0;f=c[x>>2]|0;sn(g,f);f=c[u>>2]|0;g=c[t>>2]|0;vn(f,g);g=c[u>>2]|0;f=c[r>>2]|0;Xb(g,f);f=c[q>>2]|0;i=s;return f|0}function Wn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;j=i;i=i+16|0;f=j+12|0;h=j+8|0;g=j+4|0;k=j;c[f>>2]=b;c[h>>2]=e;c[g>>2]=c[(c[f>>2]|0)+484>>2];c[k>>2]=c[c[f>>2]>>2];if(((c[g>>2]|0)!=0?(a[(c[f>>2]|0)+451>>0]|0)==0:0)?(tg(c[(c[(c[k>>2]|0)+16>>2]|0)+(d[(c[k>>2]|0)+144>>0]<<4)+4>>2]|0)|0)==0:0){b=eo(c[f>>2]|0,c[(c[g>>2]|0)+24>>2]|0,c[h>>2]|0)|0;c[(c[g>>2]|0)+24>>2]=b;if(!(c[(c[f>>2]|0)+324>>2]|0)){i=j;return}fo(c[f>>2]|0,c[(c[g>>2]|0)+24>>2]|0,(c[f>>2]|0)+320|0,1);i=j;return}wn(c[c[f>>2]>>2]|0,c[h>>2]|0);i=j;return}function Xn(e,f,g,h,j){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;p=i;i=i+80|0;u=p;q=p+68|0;n=p+64|0;C=p+60|0;o=p+56|0;k=p+52|0;w=p+48|0;m=p+44|0;x=p+40|0;s=p+36|0;B=p+32|0;v=p+28|0;z=p+24|0;t=p+20|0;A=p+16|0;y=p+12|0;r=p+8|0;c[q>>2]=e;c[n>>2]=f;c[C>>2]=g;c[o>>2]=h;c[k>>2]=j;c[w>>2]=c[c[q>>2]>>2];c[m>>2]=0;c[s>>2]=c[(c[q>>2]|0)+484>>2];a:do if((c[s>>2]|0)!=0?(d[(c[q>>2]|0)+451>>0]|0)==0:0){if(!(c[n>>2]|0)){c[A>>2]=(b[(c[s>>2]|0)+38>>1]|0)-1;if((c[A>>2]|0)<0)break;if((c[o>>2]|0)!=0?(c[c[o>>2]>>2]|0)!=1:0){e=c[q>>2]|0;f=c[C>>2]|0;c[u>>2]=c[(c[(c[s>>2]|0)+4>>2]|0)+((c[A>>2]|0)*24|0)>>2];c[u+4>>2]=f;Se(e,25736,u);break}c[z>>2]=1}else{if((c[o>>2]|0)!=0?(c[c[o>>2]>>2]|0)!=(c[c[n>>2]>>2]|0):0){Se(c[q>>2]|0,25800,u);break}c[z>>2]=c[c[n>>2]>>2]}c[B>>2]=44+((c[z>>2]|0)-1<<3)+(c[(c[C>>2]|0)+4>>2]|0)+1;b:do if(c[o>>2]|0){c[v>>2]=0;while(1){if((c[v>>2]|0)>=(c[c[o>>2]>>2]|0))break b;e=(Mb(c[(c[(c[o>>2]|0)+4>>2]|0)+((c[v>>2]|0)*20|0)+4>>2]|0)|0)+1|0;c[B>>2]=(c[B>>2]|0)+e;c[v>>2]=(c[v>>2]|0)+1}}while(0);e=c[B>>2]|0;c[m>>2]=se(c[w>>2]|0,e,((e|0)<0)<<31>>31)|0;if(c[m>>2]|0){c[c[m>>2]>>2]=c[s>>2];c[(c[m>>2]|0)+4>>2]=c[(c[s>>2]|0)+16>>2];c[t>>2]=(c[m>>2]|0)+36+(c[z>>2]<<3);c[(c[m>>2]|0)+8>>2]=c[t>>2];dF(c[t>>2]|0,c[c[C>>2]>>2]|0,c[(c[C>>2]|0)+4>>2]|0)|0;a[(c[t>>2]|0)+(c[(c[C>>2]|0)+4>>2]|0)>>0]=0;sm(c[t>>2]|0)|0;c[t>>2]=(c[t>>2]|0)+((c[(c[C>>2]|0)+4>>2]|0)+1);c[(c[m>>2]|0)+20>>2]=c[z>>2];c:do if(!(c[n>>2]|0))c[(c[m>>2]|0)+36>>2]=(b[(c[s>>2]|0)+38>>1]|0)-1;else{c[v>>2]=0;while(1){if((c[v>>2]|0)>=(c[z>>2]|0))break c;c[y>>2]=0;while(1){if((c[y>>2]|0)>=(b[(c[s>>2]|0)+38>>1]|0))break;e=(xc(c[(c[(c[s>>2]|0)+4>>2]|0)+((c[y>>2]|0)*24|0)>>2]|0,c[(c[(c[n>>2]|0)+4>>2]|0)+((c[v>>2]|0)*20|0)+4>>2]|0)|0)==0;A=c[y>>2]|0;if(e){l=25;break}c[y>>2]=A+1}if((l|0)==25){l=0;c[(c[m>>2]|0)+36+(c[v>>2]<<3)>>2]=A}if((c[y>>2]|0)>=(b[(c[s>>2]|0)+38>>1]|0))break;c[v>>2]=(c[v>>2]|0)+1}e=c[q>>2]|0;c[u>>2]=c[(c[(c[n>>2]|0)+4>>2]|0)+((c[v>>2]|0)*20|0)+4>>2];Se(e,25896,u);break a}while(0);d:do if(c[o>>2]|0){c[v>>2]=0;while(1){if((c[v>>2]|0)>=(c[z>>2]|0))break d;c[r>>2]=Mb(c[(c[(c[o>>2]|0)+4>>2]|0)+((c[v>>2]|0)*20|0)+4>>2]|0)|0;c[(c[m>>2]|0)+36+(c[v>>2]<<3)+4>>2]=c[t>>2];dF(c[t>>2]|0,c[(c[(c[o>>2]|0)+4>>2]|0)+((c[v>>2]|0)*20|0)+4>>2]|0,c[r>>2]|0)|0;a[(c[t>>2]|0)+(c[r>>2]|0)>>0]=0;c[t>>2]=(c[t>>2]|0)+((c[r>>2]|0)+1);c[v>>2]=(c[v>>2]|0)+1}}while(0);a[(c[m>>2]|0)+24>>0]=0;a[(c[m>>2]|0)+25>>0]=c[k>>2];a[(c[m>>2]|0)+26>>0]=c[k>>2]>>8;c[x>>2]=gh((c[(c[s>>2]|0)+68>>2]|0)+56|0,c[(c[m>>2]|0)+8>>2]|0,c[m>>2]|0)|0;if((c[x>>2]|0)==(c[m>>2]|0)){a[(c[w>>2]|0)+64>>0]=1;break}if(c[x>>2]|0){c[(c[m>>2]|0)+12>>2]=c[x>>2];c[(c[x>>2]|0)+16>>2]=c[m>>2]}c[(c[s>>2]|0)+16>>2]=c[m>>2];c[m>>2]=0}}while(0);Xb(c[w>>2]|0,c[m>>2]|0);sn(c[w>>2]|0,c[n>>2]|0);sn(c[w>>2]|0,c[o>>2]|0);i=p;return}function Yn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;j=e+12|0;f=e+8|0;h=e+4|0;g=e;c[j>>2]=b;c[f>>2]=d;b=c[(c[j>>2]|0)+484>>2]|0;c[h>>2]=b;if(!b){i=e;return}j=c[(c[h>>2]|0)+16>>2]|0;c[g>>2]=j;if(!j){i=e;return}a[(c[g>>2]|0)+24>>0]=c[f>>2];i=e;return}function Zn(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;j=i;i=i+32|0;k=j+24|0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2]|0)+67|0;a[b>>0]=(a[b>>0]|0)+ -1<<24>>24}if(!(c[n>>2]|0)){if(!(c[m>>2]|0))break;At(c[l>>2]|0,c[(c[j>>2]|0)+12>>2]|0);break}c[t>>2]=Ve(c[q>>2]|0,c[(c[n>>2]|0)+68>>2]|0)|0;if((d[(c[n>>2]|0)+44>>0]&16|0)!=0?(Qp(c[l>>2]|0,c[n>>2]|0)|0)!=0:0)break;c[v>>2]=(c[t>>2]|0)==1?14904:14928;c[h>>2]=c[(c[(c[q>>2]|0)+16>>2]|0)+(c[t>>2]<<4)>>2];c[s>>2]=0;if(!(ap(c[l>>2]|0,9,c[v>>2]|0,0,c[h>>2]|0)|0)){do if(c[p>>2]|0)if((c[t>>2]|0)==1){c[r>>2]=15;break}else{c[r>>2]=17;break}else{if(d[(c[n>>2]|0)+44>>0]&16){c[r>>2]=30;c[s>>2]=c[(c[(Rp(c[q>>2]|0,c[n>>2]|0)|0)+4>>2]|0)+4>>2];break}if((c[t>>2]|0)==1){c[r>>2]=13;break}else{c[r>>2]=11;break}}while(0);if((ap(c[l>>2]|0,c[r>>2]|0,c[c[n>>2]>>2]|0,c[s>>2]|0,c[h>>2]|0)|0)==0?(ap(c[l>>2]|0,9,c[c[n>>2]>>2]|0,0,c[h>>2]|0)|0)==0:0){if((Lb(c[c[n>>2]>>2]|0,15144,7)|0)==0?(Lb(c[c[n>>2]>>2]|0,25512,11)|0)!=0:0){b=c[l>>2]|0;c[o>>2]=c[c[n>>2]>>2];Se(b,25528,o);break}if((c[p>>2]|0)!=0?(c[(c[n>>2]|0)+12>>2]|0)==0:0){b=c[l>>2]|0;c[o>>2]=c[c[n>>2]>>2];Se(b,25560,o);break}if((c[p>>2]|0)==0?(c[(c[n>>2]|0)+12>>2]|0)!=0:0){b=c[l>>2]|0;c[o>>2]=c[c[n>>2]>>2];Se(b,25600,o);break}c[u>>2]=dp(c[l>>2]|0)|0;if(c[u>>2]|0){pp(c[l>>2]|0,1,c[t>>2]|0);iu(c[l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,c[q>>2]|0)|0;b=(c[o>>2]|0)+504|0;c[l+0>>2]=c[b+0>>2];c[l+4>>2]=c[b+4>>2];if((a[c[l>>2]>>0]|0)!=0?(a[c[l>>2]>>0]|0)!=59:0)c[l>>2]=(c[l>>2]|0)+(c[l+4>>2]|0);c[l+4>>2]=0;c[m>>2]=(c[l>>2]|0)-(c[c[s>>2]>>2]|0);c[n>>2]=c[c[s>>2]>>2];while(1){if((c[m>>2]|0)>0)r=(d[1224+(d[(c[n>>2]|0)+((c[m>>2]|0)-1)>>0]|0)>>0]&1|0)!=0;else r=0;q=c[m>>2]|0;if(!r)break;c[m>>2]=q+ -1}c[l>>2]=(c[n>>2]|0)+(q-1);c[l+4>>2]=1;Nn(c[o>>2]|0,0,l,0,0);i=p;return}tn(c[r>>2]|0,c[t>>2]|0);i=p;return}function ao(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,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;W=i;i=i+400|0;T=W+384|0;o=W+380|0;n=W+376|0;l=W+372|0;u=W+368|0;I=W+364|0;N=W+360|0;t=W+356|0;ra=W+352|0;r=W+348|0;q=W+344|0;ma=W+340|0;y=W+336|0;z=W+332|0;w=W+328|0;A=W+316|0;p=W+288|0;V=W+240|0;L=W+236|0;m=W+232|0;v=W+228|0;pa=W+224|0;ua=W+204|0;ta=W+200|0;ya=W+196|0;za=W+192|0;sa=W+188|0;qa=W+184|0;va=W+180|0;wa=W+176|0;xa=W+388|0;ba=W+144|0;S=W+140|0;R=W+136|0;Y=W+132|0;Z=W+128|0;M=W+124|0;j=W+120|0;O=W+116|0;P=W+112|0;Q=W+108|0;oa=W+104|0;na=W+100|0;k=W+96|0;x=W+92|0;$=W+88|0;_=W+84|0;s=W+80|0;B=W+76|0;X=W+72|0;U=W+68|0;aa=W+64|0;H=W+60|0;G=W+56|0;J=W+52|0;K=W+48|0;F=W+44|0;E=W+40|0;C=W+36|0;ea=W+32|0;fa=W+28|0;la=W+24|0;ka=W+20|0;ca=W+16|0;ja=W+12|0;ia=W+8|0;ha=W+4|0;ga=W;da=W+390|0;c[o>>2]=f;c[n>>2]=g;c[l>>2]=h;c[w>>2]=1;c[v>>2]=c[(c[o>>2]|0)+464>>2];g=(c[o>>2]|0)+468|0;f=c[g>>2]|0;c[g>>2]=f+1;c[(c[o>>2]|0)+464>>2]=f;c[m>>2]=c[c[o>>2]>>2];if(((c[n>>2]|0)!=0?(d[(c[m>>2]|0)+64>>0]|0)==0:0)?(c[(c[o>>2]|0)+64>>2]|0)==0:0){if(ap(c[o>>2]|0,21,0,0,0)|0){c[T>>2]=1;f=c[T>>2]|0;i=W;return f|0}g=V+0|0;h=g+48|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));if((d[c[l>>2]>>0]|0)<=8){sn(c[m>>2]|0,c[(c[n>>2]|0)+48>>2]|0);c[(c[n>>2]|0)+48>>2]=0;f=(c[n>>2]|0)+6|0;b[f>>1]=e[f>>1]&-2}Zp(c[o>>2]|0,c[n>>2]|0,0);c[p+0>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;c[p+12>>2]=0;c[p+16>>2]=0;c[p+20>>2]=0;c[p+24>>2]=0;c[p>>2]=c[(c[n>>2]|0)+48>>2];c[q>>2]=c[(c[n>>2]|0)+32>>2];c[r>>2]=c[c[n>>2]>>2];a:do if((((c[(c[o>>2]|0)+64>>2]|0)==0?(d[(c[m>>2]|0)+64>>0]|0)==0:0)?(c[ra>>2]=(e[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>>2]|0,0,0)|0,-6)|0;Xe(c[t>>2]|0,8);a[A+1>>0]=3}else a[A+1>>0]=0;if((c[ra>>2]|0)==0&(c[y>>2]|0)==0){b[xa>>1]=(d[A>>0]|0)!=0?1024:0;c[N>>2]=Hu(c[o>>2]|0,c[q>>2]|0,c[ma>>2]|0,c[p>>2]|0,c[c[n>>2]>>2]|0,b[xa>>1]|0,0)|0;if(!(c[N>>2]|0))break;g=ux(c[N>>2]|0)|0;za=D;f=(c[n>>2]|0)+24|0;h=c[f+4>>2]|0;if(za>>>0>>0|((za|0)==(h|0)?g>>>0<(c[f>>2]|0)>>>0:0)){g=ux(c[N>>2]|0)|0;f=(c[n>>2]|0)+24|0;c[f>>2]=g;c[f+4>>2]=D}do if(d[A>>0]|0){if(!(vx(c[N>>2]|0)|0))break;a[A+1>>0]=vx(c[N>>2]|0)|0}while(0);do if(c[p>>2]|0){c[p+4>>2]=wx(c[N>>2]|0)|0;if((c[p+4>>2]|0)!=(c[c[p>>2]>>2]|0))break;c[p>>2]=0}while(0);do if((c[p+20>>2]|0)>=0){if(c[p>>2]|0)break;cf(c[t>>2]|0,c[p+20>>2]|0)}while(0);ya=c[o>>2]|0;za=c[n>>2]|0;h=c[r>>2]|0;g=c[l>>2]|0;f=yx(c[N>>2]|0)|0;xx(ya,za,h,-1,p,A,g,f,zx(c[N>>2]|0)|0);Iu(c[N>>2]|0)}else{c[O>>2]=0;c[P>>2]=0;c[Q>>2]=0;pa=c[n>>2]|0;do if(c[y>>2]|0){c[oa>>2]=c[c[pa>>2]>>2];c[na>>2]=c[(c[c[n>>2]>>2]|0)+4>>2];while(1){if((c[oa>>2]|0)<=0)break;b[(c[na>>2]|0)+18>>1]=0;c[oa>>2]=(c[oa>>2]|0)+ -1;c[na>>2]=(c[na>>2]|0)+20}c[oa>>2]=c[c[y>>2]>>2];c[na>>2]=c[(c[y>>2]|0)+4>>2];while(1){if((c[oa>>2]|0)<=0)break;b[(c[na>>2]|0)+18>>1]=0;c[oa>>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=c[r>>2]|0;i=p;return d|0}un(c[q>>2]|0,c[r>>2]|0);if((c[r>>2]|0)!=(B|0))Xb(c[q>>2]|0,c[r>>2]|0);c[r>>2]=0;d=c[r>>2]|0;i=p;return d|0}function eo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;e=i;i=i+32|0;h=e+24|0;m=e+20|0;j=e+16|0;g=e+12|0;k=e+8|0;l=e+4|0;f=e;c[m>>2]=a;c[j>>2]=b;c[g>>2]=d;c[k>>2]=c[c[m>>2]>>2];if(!(c[j>>2]|0)){c[j>>2]=se(c[k>>2]|0,8,0)|0;if((c[j>>2]|0)!=0?(m=Qe(c[k>>2]|0,20,0)|0,c[(c[j>>2]|0)+4>>2]=m,(c[(c[j>>2]|0)+4>>2]|0)!=0):0)d=7;else d=8}else if(!(c[c[j>>2]>>2]&(c[c[j>>2]>>2]|0)-1)){c[l>>2]=Fk(c[k>>2]|0,c[(c[j>>2]|0)+4>>2]|0,(c[c[j>>2]>>2]<<1)*20|0,0)|0;if(!(c[l>>2]|0))d=8;else{c[(c[j>>2]|0)+4>>2]=c[l>>2];d=7}}else d=7;if((d|0)==7){a=c[j>>2]|0;m=c[a>>2]|0;c[a>>2]=m+1;c[f>>2]=(c[(c[j>>2]|0)+4>>2]|0)+(m*20|0);m=c[f>>2]|0;c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[c[f>>2]>>2]=c[g>>2];c[h>>2]=c[j>>2];m=c[h>>2]|0;i=e;return m|0}else if((d|0)==8){wn(c[k>>2]|0,c[g>>2]|0);sn(c[k>>2]|0,c[j>>2]|0);c[h>>2]=0;m=c[h>>2]|0;i=e;return m|0}return 0}function fo(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+32|0;j=f+16|0;h=f+12|0;k=f+8|0;l=f+4|0;g=f;c[j>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;if(!(c[h>>2]|0)){i=f;return}c[g>>2]=(c[(c[h>>2]|0)+4>>2]|0)+(((c[c[h>>2]>>2]|0)-1|0)*20|0);a=rm(c[c[j>>2]>>2]|0,c[c[k>>2]>>2]|0,c[(c[k>>2]|0)+4>>2]|0,0)|0;c[(c[g>>2]|0)+4>>2]=a;if(!(c[l>>2]|0)){i=f;return}if(!(c[(c[g>>2]|0)+4>>2]|0)){i=f;return}sm(c[(c[g>>2]|0)+4>>2]|0)|0;i=f;return}function go(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;k=e+16|0;f=e+12|0;j=e+8|0;h=e+4|0;g=e;c[k>>2]=a;c[f>>2]=b;c[j>>2]=d;c[h>>2]=c[c[k>>2]>>2];if(!(c[f>>2]|0)){i=e;return}c[g>>2]=(c[(c[f>>2]|0)+4>>2]|0)+(((c[c[f>>2]>>2]|0)-1|0)*20|0);Xb(c[h>>2]|0,c[(c[g>>2]|0)+8>>2]|0);k=(c[(c[j>>2]|0)+8>>2]|0)-(c[(c[j>>2]|0)+4>>2]|0)|0;k=rm(c[h>>2]|0,c[(c[j>>2]|0)+4>>2]|0,k,((k|0)<0)<<31>>31)|0;c[(c[g>>2]|0)+8>>2]=k;i=e;return}function ho(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+32|0;h=e+16|0;g=e+12|0;j=e+8|0;f=e;c[h>>2]=a;c[g>>2]=b;c[j>>2]=d;c[f>>2]=c[j>>2];if(c[j>>2]|0)d=Mb(c[j>>2]|0)|0;else d=0;c[f+4>>2]=d;a=or(c[h>>2]|0,c[g>>2]|0,f,0)|0;i=e;return a|0}function io(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=b;if(!(c[e>>2]|0)){i=d;return}c[f>>2]=(c[c[e>>2]>>2]|0)-1;while(1){if((c[f>>2]|0)<=0)break;a[(c[e>>2]|0)+8+((c[f>>2]|0)*72|0)+36>>0]=a[(c[e>>2]|0)+8+(((c[f>>2]|0)-1|0)*72|0)+36>>0]|0;c[f>>2]=(c[f>>2]|0)+ -1}a[(c[e>>2]|0)+44>>0]=0;i=d;return}function jo(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;h=f+12|0;k=f+8|0;j=f+4|0;g=f;c[h>>2]=b;c[k>>2]=d;c[j>>2]=e;if(!(c[k>>2]|0)){i=f;return}if((c[c[k>>2]>>2]|0)<=0){i=f;return}c[g>>2]=(c[k>>2]|0)+8+(((c[c[k>>2]>>2]|0)-1|0)*72|0);if((c[(c[j>>2]|0)+4>>2]|0)==1?(c[c[j>>2]>>2]|0)==0:0){b=(c[g>>2]|0)+37|0;a[b>>0]=a[b>>0]&-2|1;i=f;return}b=Zo(c[c[h>>2]>>2]|0,c[j>>2]|0)|0;c[(c[g>>2]|0)+64>>2]=b;i=f;return}function ko(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;k=i;i=i+32|0;j=k+24|0;m=k+20|0;h=k+16|0;n=k+12|0;l=k+8|0;o=k+4|0;g=k;c[m>>2]=b;c[h>>2]=d;c[n>>2]=e;c[l>>2]=f;do if(!(c[h>>2]|0)){c[h>>2]=se(c[m>>2]|0,80,0)|0;if(c[h>>2]|0){c[(c[h>>2]|0)+4>>2]=1;break}c[j>>2]=0;b=c[j>>2]|0;i=k;return b|0}while(0);c[h>>2]=mx(c[m>>2]|0,c[h>>2]|0,1,c[c[h>>2]>>2]|0)|0;if(a[(c[m>>2]|0)+64>>0]|0){vn(c[m>>2]|0,c[h>>2]|0);c[j>>2]=0;b=c[j>>2]|0;i=k;return b|0}c[o>>2]=(c[h>>2]|0)+8+(((c[c[h>>2]>>2]|0)-1|0)*72|0);if((c[l>>2]|0)!=0?(c[c[l>>2]>>2]|0)==0:0)c[l>>2]=0;if(c[l>>2]|0){c[g>>2]=c[l>>2];c[l>>2]=c[n>>2];c[n>>2]=c[g>>2]}b=Zo(c[m>>2]|0,c[n>>2]|0)|0;c[(c[o>>2]|0)+8>>2]=b;b=Zo(c[m>>2]|0,c[l>>2]|0)|0;c[(c[o>>2]|0)+4>>2]=b;c[j>>2]=c[h>>2];b=c[j>>2]|0;i=k;return b|0}function lo(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;j=i;i=i+64|0;l=j;k=j+60|0;g=j+56|0;m=j+52|0;o=j+48|0;p=j+44|0;q=j+32|0;s=j+28|0;r=j+24|0;t=j+20|0;n=j+16|0;c[k>>2]=a;c[g>>2]=b;c[m>>2]=e;c[o>>2]=f;c[p>>2]=0;c[q>>2]=c[g>>2];c[q+4>>2]=c[m>>2];c[q+8>>2]=c[o>>2];c[r>>2]=0;while(1){if((c[r>>2]|0)>=3)break;if(!(c[q+(c[r>>2]<<2)>>2]|0))break;c[s>>2]=c[q+(c[r>>2]<<2)>>2];c[t>>2]=0;while(1){if((c[t>>2]|0)>=7)break;if((c[(c[s>>2]|0)+4>>2]|0)==(d[24649+((c[t>>2]|0)*3|0)>>0]|0|0)?(Lb(c[c[s>>2]>>2]|0,24608+(d[24648+((c[t>>2]|0)*3|0)>>0]|0)|0,c[(c[s>>2]|0)+4>>2]|0)|0)==0:0){h=8;break}c[t>>2]=(c[t>>2]|0)+1}if((h|0)==8){h=0;c[p>>2]=c[p>>2]|(d[24650+((c[t>>2]|0)*3|0)>>0]|0)}if((c[t>>2]|0)>=7){h=11;break}c[r>>2]=(c[r>>2]|0)+1}if((h|0)==11)c[p>>2]=c[p>>2]|64;if((c[p>>2]&33|0)!=33?(c[p>>2]&64|0)==0:0){if(!(c[p>>2]&32)){a=c[p>>2]|0;i=j;return a|0}if((c[p>>2]&24|0)==8){a=c[p>>2]|0;i=j;return a|0}Se(c[k>>2]|0,24720,l);c[p>>2]=1;a=c[p>>2]|0;i=j;return a|0}c[n>>2]=9912;if(!(c[o>>2]|0))c[n>>2]=(c[n>>2]|0)+1;a=c[k>>2]|0;f=c[m>>2]|0;e=c[n>>2]|0;b=c[o>>2]|0;c[l>>2]=c[g>>2];c[l+4>>2]=f;c[l+8>>2]=e;c[l+12>>2]=b;Se(a,24672,l);c[p>>2]=1;a=c[p>>2]|0;i=j;return a|0}function mo(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;g=f+4|0;h=f;j=f+8|0;c[g>>2]=b;c[h>>2]=d;a[j>>0]=e;if(!(c[h>>2]|0)){i=f;return}c[(c[h>>2]|0)+4>>2]=c[(c[g>>2]|0)+532>>2];c[(c[g>>2]|0)+532>>2]=c[h>>2];a[(c[g>>2]|0)+449>>0]=a[j>>0]|0;i=f;return}function no(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,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;n=i;i=i+192|0;q=n+172|0;k=n+168|0;l=n+164|0;o=n+160|0;s=n+156|0;U=n+152|0;j=n+148|0;L=n+144|0;r=n+140|0;I=n+136|0;z=n+132|0;h=n+128|0;R=n+124|0;v=n+120|0;y=n+112|0;T=n+80|0;O=n+76|0;p=n+72|0;S=n+68|0;E=n+64|0;Q=n+56|0;m=n+52|0;x=n+48|0;M=n+44|0;N=n+178|0;H=n+40|0;D=n+176|0;t=n+36|0;G=n+32|0;F=n+28|0;u=n+24|0;K=n+20|0;P=n+16|0;w=n+12|0;A=n+8|0;C=n+4|0;B=n;c[q>>2]=e;c[k>>2]=f;c[l>>2]=g;c[p>>2]=-1;c[m>>2]=0;c[M>>2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+1|0)|0;zp(c[o>>2]|0,c[u>>2]|0);break}else{fp(A,16,0,c[u>>2]|0)|0;zp(c[o>>2]|0,c[u>>2]|0);break}}else Pr(c[o>>2]|0,c[F>>2]|0);while(0);if(c[w>>2]|0)break;if(d[(c[s>>2]|0)+44>>0]&16)break;if(!(c[x>>2]|0))Ir(c[o>>2]|0,61,c[z>>2]|0)|0;c[j>>2]=0;c[r>>2]=c[(c[s>>2]|0)+8>>2];while(1){if(!(c[r>>2]|0))break c;Ir(c[o>>2]|0,61,(c[h>>2]|0)+(c[j>>2]|0)|0)|0;c[j>>2]=(c[j>>2]|0)+1;c[r>>2]=c[(c[r>>2]|0)+20>>2]}}while(0);if((d[(c[q>>2]|0)+18>>0]|0)==0?(c[(c[q>>2]|0)+412>>2]|0)==0:0)Au(c[q>>2]|0);if(((c[(c[v>>2]|0)+24>>2]&128|0)!=0?(a[(c[q>>2]|0)+18>>0]|0)==0:0)?(c[(c[q>>2]|0)+412>>2]|0)==0:0){fp(c[o>>2]|0,35,c[p>>2]|0,1)|0;Nt(c[o>>2]|0,1);Ot(c[o>>2]|0,0,0,24592,0)|0}}}}while(0);lx(y);vn(c[v>>2]|0,c[k>>2]|0);wn(c[v>>2]|0,c[l>>2]|0);Xb(c[v>>2]|0,c[m>>2]|0);i=n;return}function oo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;h=e;f=e+16|0;j=e+12|0;g=e+8|0;k=e+4|0;c[f>>2]=a;c[j>>2]=b;c[g>>2]=d;c[k>>2]=c[(c[c[f>>2]>>2]|0)+96>>2];if(!(c[j>>2]|0)){i=e;return}if((c[c[j>>2]>>2]|0)<=(c[k>>2]|0)){i=e;return}a=c[f>>2]|0;c[h>>2]=c[g>>2];Se(a,24568,h);i=e;return}function po(f,g,h,j,k){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w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>>2]|0,c[J>>2]|0)|0;We(c[x>>2]|0,68,c[C>>2]|0,c[F>>2]|0,c[J>>2]|0,0)|0;break}else{c[F>>2]=ip(ca,129,c[$>>2]|0,c[A>>2]|0,c[N>>2]|0)|0;ip(c[x>>2]|0,70,c[C>>2]|0,c[F>>2]|0,c[N>>2]|0)|0;break}}else{if(!((c[S>>2]|0)!=0?1:(d[(c[E>>2]|0)+((c[C>>2]|0)-(c[fa>>2]|0))>>0]|0)==0))We(c[x>>2]|0,68,c[C>>2]|0,c[A>>2]|0,c[J>>2]|0,c[P>>2]|0)|0;c[F>>2]=c[A>>2];fp(c[x>>2]|0,76,(c[s>>2]|0)!=0?c[J>>2]|0:c[N>>2]|0,c[A>>2]|0)|0}while(0);if(a[_>>0]|0){Os(c[u>>2]|0,c[aa>>2]|0,c[O>>2]|0);Ir(c[x>>2]|0,38,c[O>>2]|0)|0}do if((d[ba>>0]|0)!=0|(c[K>>2]|0)!=0|(c[I>>2]|0)!=0){if(c[K>>2]|0)$=hw(c[u>>2]|0,c[r>>2]|0)|0;else $=0;c[Z>>2]=$;f=gw(c[u>>2]|0,c[I>>2]|0,c[n>>2]|0,0,3,c[r>>2]|0,c[H>>2]|0)|0;c[Z>>2]=c[Z>>2]|f;c[t>>2]=0;while(1){if((c[t>>2]|0)>=(b[(c[r>>2]|0)+38>>1]|0))break;do if((c[Z>>2]|0)==-1)T=117;else{if((c[t>>2]|0)<32?(c[Z>>2]&1<>2]|0)!=0:0){T=117;break}if(d[(c[(c[r>>2]|0)+4>>2]|0)+((c[t>>2]|0)*24|0)+23>>0]&1){T=117;break}fp(c[x>>2]|0,28,0,(c[V>>2]|0)+(c[t>>2]|0)|0)|0}while(0);if((T|0)==117){T=0;zs(c[x>>2]|0,c[r>>2]|0,c[C>>2]|0,c[t>>2]|0,(c[V>>2]|0)+(c[t>>2]|0)|0)}c[t>>2]=(c[t>>2]|0)+1}if(!((d[_>>0]|0)==0&(c[s>>2]|0)==0))break;fp(c[x>>2]|0,33,c[N>>2]|0,c[O>>2]|0)|0}while(0);c[Y>>2]=gw(c[u>>2]|0,c[I>>2]|0,c[n>>2]|0,1,1,c[r>>2]|0,c[H>>2]|0)|0;c[t>>2]=0;while(1){if((c[t>>2]|0)>=(b[(c[r>>2]|0)+38>>1]|0))break;c:do if((c[t>>2]|0)==(b[(c[r>>2]|0)+36>>1]|0))fp(c[x>>2]|0,28,0,(c[U>>2]|0)+(c[t>>2]|0)|0)|0;else{c[W>>2]=c[(c[p>>2]|0)+(c[t>>2]<<2)>>2];if((c[W>>2]|0)>=0){Os(c[u>>2]|0,c[(c[(c[n>>2]|0)+4>>2]|0)+((c[W>>2]|0)*20|0)>>2]|0,(c[U>>2]|0)+(c[t>>2]|0)|0);break}do if(!((c[t>>2]|0)>31?1:0==(c[X>>2]&1|0))){if(c[Y>>2]&1<>2])break;fp(c[x>>2]|0,28,0,(c[U>>2]|0)+(c[t>>2]|0)|0)|0;break c}while(0);zs(c[x>>2]|0,c[r>>2]|0,c[C>>2]|0,c[t>>2]|0,(c[U>>2]|0)+(c[t>>2]|0)|0)}while(0);c[t>>2]=(c[t>>2]|0)+1}d:do if(c[X>>2]&1){su(c[x>>2]|0,c[r>>2]|0,c[U>>2]|0);tu(c[u>>2]|0,c[I>>2]|0,110,c[n>>2]|0,1,c[r>>2]|0,c[N>>2]|0,c[H>>2]|0,c[F>>2]|0);X=c[x>>2]|0;W=c[C>>2]|0;V=c[F>>2]|0;if(c[s>>2]|0)We(X,68,W,V,c[J>>2]|0,c[P>>2]|0)|0;else ip(X,70,W,V,c[N>>2]|0)|0;c[t>>2]=0;while(1){if((c[t>>2]|0)>=(b[(c[r>>2]|0)+38>>1]|0))break d;do if((c[(c[p>>2]|0)+(c[t>>2]<<2)>>2]|0)<0){if((c[t>>2]|0)==(b[(c[r>>2]|0)+36>>1]|0))break;zs(c[x>>2]|0,c[r>>2]|0,c[C>>2]|0,c[t>>2]|0,(c[U>>2]|0)+(c[t>>2]|0)|0)}while(0);c[t>>2]=(c[t>>2]|0)+1}}while(0);do if(!(c[S>>2]|0)){c[G>>2]=0;c[L>>2]=0;xu(c[u>>2]|0,c[r>>2]|0,c[R>>2]|0,c[C>>2]|0,c[l>>2]|0,c[O>>2]|0,c[N>>2]|0,a[M>>0]|0,c[H>>2]&255,c[F>>2]|0,L);if(c[K>>2]|0)yu(c[u>>2]|0,c[r>>2]|0,c[N>>2]|0,0,c[p>>2]|0,d[M>>0]|0);if(!((c[L>>2]|0)==0?(d[M>>0]|0)==0:0))T=148;do if((T|0)==148){T=c[x>>2]|0;S=c[C>>2]|0;if(c[s>>2]|0){c[G>>2]=We(T,68,S,0,c[J>>2]|0,c[P>>2]|0)|0;break}else{c[G>>2]=ip(T,70,S,0,c[N>>2]|0)|0;break}}while(0);fw(c[u>>2]|0,c[r>>2]|0,c[C>>2]|0,c[l>>2]|0,c[R>>2]|0);if(!((c[K>>2]|0)==0?!((d[M>>0]|0)!=0|(c[s>>2]|0)!=0):0))fp(c[x>>2]|0,95,c[C>>2]|0,0)|0;if(!((c[L>>2]|0)==0?(d[M>>0]|0)==0:0))zp(c[x>>2]|0,c[G>>2]|0);if(c[K>>2]|0)yu(c[u>>2]|0,c[r>>2]|0,0,c[O>>2]|0,c[p>>2]|0,d[M>>0]|0);zu(c[u>>2]|0,c[r>>2]|0,c[C>>2]|0,c[l>>2]|0,c[O>>2]|0,c[R>>2]|0,1,0,0);if(!(c[K>>2]|0))break;iw(c[u>>2]|0,c[r>>2]|0,c[n>>2]|0,c[N>>2]|0,c[p>>2]|0,d[M>>0]|0)}while(0);do if(c[(c[v>>2]|0)+24>>2]&128){if(c[(c[u>>2]|0)+412>>2]|0)break;fp(c[x>>2]|0,37,c[w>>2]|0,1)|0}while(0);tu(c[u>>2]|0,c[I>>2]|0,110,c[n>>2]|0,2,c[r>>2]|0,c[N>>2]|0,c[H>>2]|0,c[F>>2]|0);do if(!(c[Q>>2]|0)){G=c[x>>2]|0;F=c[F>>2]|0;if(c[s>>2]|0){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0;vn(g,f);f=c[v>>2]|0;g=c[n>>2]|0;sn(f,g);g=c[v>>2]|0;f=c[z>>2]|0;wn(g,f);i=y;return}else if((T|0)==182){lx(q);f=c[v>>2]|0;g=c[p>>2]|0;Xb(f,g);g=c[v>>2]|0;f=c[o>>2]|0;vn(g,f);f=c[v>>2]|0;g=c[n>>2]|0;sn(f,g);g=c[v>>2]|0;f=c[z>>2]|0;wn(g,f);i=y;return}} function Ys(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;B=i;i=i+160|0;J=B;k=B+140|0;l=B+136|0;p=B+132|0;q=B+128|0;x=B+124|0;o=B+120|0;m=B+116|0;n=B+112|0;K=B+108|0;h=B+144|0;r=B+104|0;G=B+100|0;s=B+96|0;F=B+92|0;E=B+72|0;D=B+68|0;z=B+64|0;C=B+60|0;y=B+56|0;t=B+52|0;u=B+48|0;A=B+44|0;w=B+40|0;v=B+36|0;I=B+32|0;H=B+12|0;c[l>>2]=b;c[p>>2]=e;c[q>>2]=f;c[x>>2]=g;c[o>>2]=-1;c[m>>2]=0;c[n>>2]=dp(c[l>>2]|0)|0;if(!(c[n>>2]|0)){c[k>>2]=0;b=c[k>>2]|0;i=B;return b|0}ws(c[l>>2]|0);if(!(c[(c[p>>2]|0)+4>>2]&32))c[o>>2]=_s(c[l>>2]|0)|0;if((d[(c[l>>2]|0)+450>>0]|0)==2){b=c[c[l>>2]>>2]|0;f=(d[c[p>>2]>>0]|0)==75?19296:19304;e=c[(c[l>>2]|0)+468>>2]|0;c[J>>2]=(c[o>>2]|0)>=0?1216:19280;c[J+4>>2]=f;c[J+8>>2]=e;c[K>>2]=Te(b,19248,J)|0;hp(c[n>>2]|0,155,c[(c[l>>2]|0)+464>>2]|0,0,0,c[K>>2]|0,-1)|0}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2]|0);c[k>>2]=c[m>>2];b=c[k>>2]|0;i=B;return b|0}function Zs(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+4|0;g=e;c[f>>2]=b;c[g>>2]=d;a[(c[f>>2]|0)+38>>0]=a[c[f>>2]>>0]|0;a[c[f>>2]>>0]=-97;c[(c[f>>2]|0)+28>>2]=c[g>>2];b=(c[f>>2]|0)+4|0;c[b>>2]=c[b>>2]&-4097;i=e;return}function _s(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=dp(c[e>>2]|0)|0;d=c[d>>2]|0;e=(c[e>>2]|0)+80|0;a=c[e>>2]|0;c[e>>2]=a+1;a=Ir(d,44,a)|0;i=b;return a|0}function $s(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;g=f+8|0;j=f+4|0;h=f;c[g>>2]=b;c[j>>2]=d;c[h>>2]=e;a[c[g>>2]>>0]=c[j>>2];c[(c[g>>2]|0)+4>>2]=c[h>>2];a[(c[g>>2]|0)+1>>0]=0;c[(c[g>>2]|0)+8>>2]=0;c[(c[g>>2]|0)+12>>2]=0;i=f;return}function at(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;h=e+12|0;g=e+8|0;j=e+4|0;f=e;c[h>>2]=a;c[g>>2]=b;c[j>>2]=d;if(c[(c[g>>2]|0)+4>>2]&256){c[f>>2]=cq(c[h>>2]|0,c[g>>2]|0)|0;a=c[f>>2]|0;i=e;return a|0}if((c[j>>2]|0)!=0?(c[(c[j>>2]|0)+4>>2]&256|0)!=0:0){c[f>>2]=cq(c[h>>2]|0,c[j>>2]|0)|0;a=c[f>>2]|0;i=e;return a|0}c[f>>2]=cq(c[h>>2]|0,c[g>>2]|0)|0;if(c[f>>2]|0){a=c[f>>2]|0;i=e;return a|0}c[f>>2]=cq(c[h>>2]|0,c[j>>2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;return b|0}else{c[e>>2]=(c[(c[g>>2]|0)+4>>2]|0)+((c[h>>2]|0)*20|0);b=c[e>>2]|0;i=f;return b|0}return 0}function et(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+32|0;f=e+28|0;g=e+24|0;d=e;c[f>>2]=a;c[g>>2]=b;c[d+0>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;c[d+16>>2]=0;c[d+20>>2]=0;c[d+20>>2]=c[g>>2];c[d>>2]=44;c[d+4>>2]=45;sq(d,c[f>>2]|0)|0;i=e;return c[d+20>>2]|0}function ft(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;g=f+8|0;h=f+4|0;j=f;c[h>>2]=b;c[j>>2]=e;if((c[(c[h>>2]|0)+20>>2]|0)==2?(c[(c[j>>2]|0)+4>>2]&1|0)!=0:0){c[(c[h>>2]|0)+20>>2]=0;c[g>>2]=2;b=c[g>>2]|0;i=f;return b|0}a:do switch(d[c[j>>2]>>0]|0|0){case 153:{if((c[(c[h>>2]|0)+20>>2]|0)<3?(c[(c[j>>2]|0)+4>>2]&524288|0)==0:0){e=8;break a}c[g>>2]=0;b=c[g>>2]|0;i=f;return b|0};case 135:{if((c[(c[h>>2]|0)+20>>2]|0)==4){a[c[j>>2]>>0]=101;e=13;break a}if((c[(c[h>>2]|0)+20>>2]|0)==3){c[(c[h>>2]|0)+20>>2]=0;c[g>>2]=2;b=c[g>>2]|0;i=f;return b|0}else e=13;break};case 156:case 155:case 154:case 27:{e=8;break};default:e=13}while(0);if((e|0)==8){c[(c[h>>2]|0)+20>>2]=0;c[g>>2]=2;b=c[g>>2]|0;i=f;return b|0}else if((e|0)==13){c[g>>2]=0;b=c[g>>2]|0;i=f;return b|0}return 0}function gt(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d+4|0;c[e>>2]=a;c[d>>2]=b;c[(c[e>>2]|0)+20>>2]=0;i=d;return 2}function ht(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e+8|0;g=e+4|0;f=e;c[h>>2]=b;c[g>>2]=d;c[f>>2]=Qe(Fs(c[h>>2]|0)|0,8,0)|0;if(!(c[f>>2]|0)){h=c[f>>2]|0;i=e;return h|0}h=c[f>>2]|0;b=c[g>>2]|0;a[h+0>>0]=a[b+0>>0]|0;a[h+1>>0]=a[b+1>>0]|0;a[h+2>>0]=a[b+2>>0]|0;a[h+3>>0]=a[b+3>>0]|0;a[h+4>>0]=a[b+4>>0]|0;a[h+5>>0]=a[b+5>>0]|0;a[h+6>>0]=a[b+6>>0]|0;a[h+7>>0]=a[b+7>>0]|0;h=c[f>>2]|0;i=e;return h|0}function it(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;j=e+12|0;g=e+8|0;h=e+4|0;f=e;c[j>>2]=b;c[g>>2]=d;c[h>>2]=0;c[f>>2]=(c[j>>2]|0)+116;while(1){if((c[h>>2]|0)>=10)break;if((c[(c[f>>2]|0)+12>>2]|0)==(c[g>>2]|0))a[(c[f>>2]|0)+6>>0]=0;c[h>>2]=(c[h>>2]|0)+1;c[f>>2]=(c[f>>2]|0)+20}i=e;return}function jt(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=i;i=i+32|0;l=q+28|0;o=q+24|0;p=q+20|0;j=q+16|0;r=q+12|0;s=q+8|0;m=q+4|0;n=q;c[l>>2]=d;c[o>>2]=f;c[p>>2]=g;c[j>>2]=h;if((e[(c[c[l>>2]>>2]|0)+60>>1]|0)&2){i=q;return}c[r>>2]=0;c[n>>2]=(c[l>>2]|0)+116;while(1){if((c[r>>2]|0)>=10)break;if(!(c[(c[n>>2]|0)+12>>2]|0)){k=5;break}c[r>>2]=(c[r>>2]|0)+1;c[n>>2]=(c[n>>2]|0)+20}if((k|0)==5){c[(c[n>>2]|0)+8>>2]=c[(c[l>>2]|0)+100>>2];c[c[n>>2]>>2]=c[o>>2];b[(c[n>>2]|0)+4>>1]=c[p>>2];c[(c[n>>2]|0)+12>>2]=c[j>>2];a[(c[n>>2]|0)+6>>0]=0;f=(c[l>>2]|0)+104|0;d=c[f>>2]|0;c[f>>2]=d+1;c[(c[n>>2]|0)+16>>2]=d;i=q;return}c[s>>2]=2147483647;c[m>>2]=-1;c[r>>2]=0;c[n>>2]=(c[l>>2]|0)+116;while(1){if((c[r>>2]|0)>=10)break;if((c[(c[n>>2]|0)+16>>2]|0)<(c[s>>2]|0)){c[m>>2]=c[r>>2];c[s>>2]=c[(c[n>>2]|0)+16>>2]}c[r>>2]=(c[r>>2]|0)+1;c[n>>2]=(c[n>>2]|0)+20}if((c[m>>2]|0)<0){i=q;return}c[n>>2]=(c[l>>2]|0)+116+((c[m>>2]|0)*20|0);c[(c[n>>2]|0)+8>>2]=c[(c[l>>2]|0)+100>>2];c[c[n>>2]>>2]=c[o>>2];b[(c[n>>2]|0)+4>>1]=c[p>>2];c[(c[n>>2]|0)+12>>2]=c[j>>2];a[(c[n>>2]|0)+6>>0]=0;f=(c[l>>2]|0)+104|0;d=c[f>>2]|0;c[f>>2]=d+1;c[(c[n>>2]|0)+16>>2]=d;i=q;return}function kt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+6|0;j=e;g=e+5|0;h=e+4|0;c[j>>2]=b;a[g>>0]=d;a[h>>0]=bq(c[j>>2]|0)|0;if((a[h>>0]|0)!=0?(a[g>>0]|0)!=0:0){if((a[h>>0]|0)<67?(a[g>>0]|0)<67:0){a[f>>0]=65;j=a[f>>0]|0;i=e;return j|0}a[f>>0]=67;j=a[f>>0]|0;i=e;return j|0}if((a[h>>0]|0)!=0|(a[g>>0]|0)!=0){a[f>>0]=(a[h>>0]|0)+(a[g>>0]|0);j=a[f>>0]|0;i=e;return j|0}else{a[f>>0]=65;j=a[f>>0]|0;i=e;return j|0}return 0}function lt(a){a=a|0;var b=0,f=0,g=0,h=0,j=0,k=0;f=i;i=i+32|0;b=f+16|0;g=f+12|0;k=f+8|0;h=f+4|0;j=f;c[g>>2]=a;do if(c[g>>2]|0){if(c[(c[g>>2]|0)+52>>2]|0){c[b>>2]=0;break}if((e[(c[g>>2]|0)+6>>1]|0)&5){c[b>>2]=0;break}if(c[(c[g>>2]|0)+60>>2]|0){c[b>>2]=0;break}if(c[(c[g>>2]|0)+36>>2]|0){c[b>>2]=0;break}c[k>>2]=c[(c[g>>2]|0)+32>>2];if((c[c[k>>2]>>2]|0)!=1){c[b>>2]=0;break}if(c[(c[k>>2]|0)+28>>2]|0){c[b>>2]=0;break}c[j>>2]=c[(c[k>>2]|0)+24>>2];if(!(c[j>>2]|0)){c[b>>2]=0;break}if((d[(c[j>>2]|0)+44>>0]|0)&16){c[b>>2]=0;break}c[h>>2]=c[c[g>>2]>>2];if((c[c[h>>2]>>2]|0)!=1){c[b>>2]=0;break}if((d[c[c[(c[h>>2]|0)+4>>2]>>2]>>0]|0|0)!=154){c[b>>2]=0;break}else{c[b>>2]=1;break}}else c[b>>2]=0;while(0);i=f;return c[b>>2]|0}function mt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;i=i+16|0;e=f+4|0;j=f;g=f+9|0;h=f+8|0;c[j>>2]=b;a[g>>0]=d;a[h>>0]=Ns(c[j>>2]|0)|0;d=a[h>>0]|0;if((d|0)==66)c[e>>2]=(a[g>>0]|0)==66&1;else if((d|0)==65)c[e>>2]=1;else c[e>>2]=(a[g>>0]|0)>=67&1;i=f;return c[e>>2]|0}function nt(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;e=d+8|0;f=d+4|0;b=d;c[e>>2]=a;c[f>>2]=c[(c[e>>2]|0)+12>>2];c[(c[e>>2]|0)+12>>2]=0;c[b>>2]=Vs(c[e>>2]|0)|0;c[(c[e>>2]|0)+12>>2]=c[f>>2];i=d;return c[b>>2]|0}function ot(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;g=i;i=i+16|0;j=g+8|0;k=g+4|0;h=g;f=g+12|0;c[j>>2]=b;c[k>>2]=d;c[h>>2]=e;a[f>>0]=bq(c[k>>2]|0)|0;b=(kt(c[j>>2]|0,a[f>>0]|0)|0)&255;a[f>>0]=b|c[h>>2]&255;i=g;return a[f>>0]|0}function pt(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=et(c[d>>2]|0,2)|0;i=b;return a|0}function qt(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0;g=i;i=i+32|0;f=g+16|0;j=g+12|0;k=g+8|0;l=g+4|0;h=g;c[j>>2]=a;c[k>>2]=d;c[l>>2]=0;while(1){if((c[l>>2]|0)>=(e[(c[k>>2]|0)+52>>1]|0)){d=7;break}c[h>>2]=c[(c[(c[k>>2]|0)+32>>2]|0)+(c[l>>2]<<2)>>2];if((b[(c[(c[k>>2]|0)+4>>2]|0)+(c[l>>2]<<1)>>1]|0)>=0?0==(xc(c[h>>2]|0,c[j>>2]|0)|0):0){d=5;break}c[l>>2]=(c[l>>2]|0)+1}if((d|0)==5){c[f>>2]=1;a=c[f>>2]|0;i=g;return a|0}else if((d|0)==7){c[f>>2]=0;a=c[f>>2]|0;i=g;return a|0}return 0}function rt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;h=i;i=i+160|0;f=h;k=h+28|0;o=h+20|0;j=h+16|0;m=h+12|0;l=h+8|0;n=h+4|0;g=h+32|0;c[k>>2]=b;c[h+24>>2]=d;c[o>>2]=e;c[j>>2]=Ed(c[c[o>>2]>>2]|0)|0;c[m>>2]=pe(c[k>>2]|0)|0;c[n>>2]=0;if(!(c[j>>2]|0))c[j>>2]=1216;c[l>>2]=0;while(1){if((c[l>>2]|0)>=(c[(c[m>>2]|0)+20>>2]|0))break;c[n>>2]=(c[(c[m>>2]|0)+16>>2]|0)+(c[l>>2]<<4);if((c[(c[n>>2]|0)+4>>2]|0)!=0?(xc(c[c[n>>2]>>2]|0,c[j>>2]|0)|0)==0:0)break;c[l>>2]=(c[l>>2]|0)+1}do if((c[l>>2]|0)>=(c[(c[m>>2]|0)+20>>2]|0)){c[f>>2]=c[j>>2];sc(128,g,19424,f)|0}else{if((c[l>>2]|0)<2){c[f>>2]=c[j>>2];sc(128,g,19448,f)|0;break}if(!(a[(c[m>>2]|0)+62>>0]|0)){sc(128,g,19480,f)|0;break}if((Tc(c[(c[n>>2]|0)+4>>2]|0)|0)==0?(Wk(c[(c[n>>2]|0)+4>>2]|0)|0)==0:0){Kk(c[(c[n>>2]|0)+4>>2]|0)|0;c[(c[n>>2]|0)+4>>2]=0;c[(c[n>>2]|0)+12>>2]=0;cd(c[m>>2]|0);i=h;return}c[f>>2]=c[j>>2];sc(128,g,19528,f)|0}while(0);Ud(c[k>>2]|0,g,-1);i=h;return}function st(a,e,f,g,h,j,k){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+80|0;q=y+76|0;p=y+72|0;o=y+68|0;l=y+64|0;r=y+60|0;s=y+56|0;t=y+52|0;v=y+48|0;z=y+16|0;w=y+12|0;x=y+8|0;n=y+4|0;u=y;c[q>>2]=a;c[p>>2]=e;c[o>>2]=f;c[l>>2]=g;c[r>>2]=h;c[s>>2]=j;c[t>>2]=k;c[x>>2]=c[c[q>>2]>>2];c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;c[z+12>>2]=0;c[z+16>>2]=0;c[z+20>>2]=0;c[z+24>>2]=0;c[z+28>>2]=0;c[z>>2]=c[q>>2];a=tt(z,c[r>>2]|0)|0;c[v>>2]=a;do if((0==(a|0)?(a=tt(z,c[s>>2]|0)|0,c[v>>2]=a,0==(a|0)):0)?(a=tt(z,c[t>>2]|0)|0,c[v>>2]=a,0==(a|0)):0){if(c[l>>2]|0){if((d[c[l>>2]>>0]|0)==97)c[u>>2]=c[(c[l>>2]|0)+8>>2];else c[u>>2]=0;c[v>>2]=ap(c[q>>2]|0,c[p>>2]|0,c[u>>2]|0,0,0)|0;if(c[v>>2]|0)break}c[w>>2]=dp(c[q>>2]|0)|0;c[n>>2]=ys(c[q>>2]|0,4)|0;Os(c[q>>2]|0,c[r>>2]|0,c[n>>2]|0);Os(c[q>>2]|0,c[s>>2]|0,(c[n>>2]|0)+1|0);Os(c[q>>2]|0,c[t>>2]|0,(c[n>>2]|0)+2|0);if(c[w>>2]|0){ip(c[w>>2]|0,1,0,(c[n>>2]|0)+3-(b[c[o>>2]>>1]|0)|0,(c[n>>2]|0)+3|0)|0;Xe(c[w>>2]|0,b[c[o>>2]>>1]&255);bf(c[w>>2]|0,-1,c[o>>2]|0,-5);Ir(c[w>>2]|0,142,(c[p>>2]|0)==24&1)|0}}else m=4;while(0);if((m|0)==4){a=(c[q>>2]|0)+64|0;c[a>>2]=(c[a>>2]|0)+1}wn(c[x>>2]|0,c[r>>2]|0);wn(c[x>>2]|0,c[s>>2]|0);wn(c[x>>2]|0,c[t>>2]|0);i=y;return}function tt(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0;g=i;i=i+16|0;j=g+8|0;h=g+4|0;f=g;c[j>>2]=b;c[h>>2]=e;c[f>>2]=0;do if(c[h>>2]|0)if((d[c[h>>2]>>0]|0|0)!=27){c[f>>2]=vq(c[j>>2]|0,c[h>>2]|0)|0;break}else{a[c[h>>2]>>0]=97;break}while(0);i=g;return c[f>>2]|0}function ut(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=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;k=i;i=i+80|0;j=k;l=k+68|0;z=k+60|0;x=k+56|0;n=k+52|0;o=k+48|0;p=k+44|0;u=k+40|0;t=k+36|0;m=k+32|0;h=k+28|0;g=k+24|0;r=k+20|0;s=k+16|0;y=k+12|0;q=k+8|0;v=k+4|0;c[l>>2]=b;c[k+64>>2]=e;c[z>>2]=f;c[n>>2]=0;c[o>>2]=pe(c[l>>2]|0)|0;c[t>>2]=0;c[m>>2]=0;c[r>>2]=0;c[u>>2]=Ed(c[c[z>>2]>>2]|0)|0;c[p>>2]=Ed(c[(c[z>>2]|0)+4>>2]|0)|0;if(!(c[u>>2]|0))c[u>>2]=1216;if(!(c[p>>2]|0))c[p>>2]=1216;f=c[o>>2]|0;do if((c[(c[o>>2]|0)+20>>2]|0)<((c[(c[o>>2]|0)+116>>2]|0)+2|0)){if(!(a[f+62>>0]|0)){c[r>>2]=Te(c[o>>2]|0,19648,j)|0;break}c[x>>2]=0;while(1){if((c[x>>2]|0)>=(c[(c[o>>2]|0)+20>>2]|0))break;c[y>>2]=c[(c[(c[o>>2]|0)+16>>2]|0)+(c[x>>2]<<4)>>2];if(!(xc(c[y>>2]|0,c[p>>2]|0)|0)){w=12;break}c[x>>2]=(c[x>>2]|0)+1}if((w|0)==12){z=c[o>>2]|0;c[j>>2]=c[p>>2];c[r>>2]=Te(z,19696,j)|0;break}w=c[o>>2]|0;do if((c[(c[o>>2]|0)+16>>2]|0)==((c[o>>2]|0)+456|0)){c[g>>2]=Qe(w,48,0)|0;if(!(c[g>>2]|0)){i=k;return}else{z=c[g>>2]|0;b=c[(c[o>>2]|0)+16>>2]|0;c[z+0>>2]=c[b+0>>2];c[z+4>>2]=c[b+4>>2];c[z+8>>2]=c[b+8>>2];c[z+12>>2]=c[b+12>>2];c[z+16>>2]=c[b+16>>2];c[z+20>>2]=c[b+20>>2];c[z+24>>2]=c[b+24>>2];c[z+28>>2]=c[b+28>>2];break}}else{c[g>>2]=Fk(w,c[(c[o>>2]|0)+16>>2]|0,(c[(c[o>>2]|0)+20>>2]|0)+1<<4,0)|0;if(!(c[g>>2]|0)){i=k;return}}while(0);c[(c[o>>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(c[o>>2]|0,c[p>>2]|0)|0;c[c[g>>2]>>2]=z;if((c[n>>2]|0)==0?(c[c[g>>2]>>2]|0)==0:0)c[n>>2]=7;if(!(c[n>>2]|0)){Rb(c[o>>2]|0);c[n>>2]=_r(c[o>>2]|0,r)|0}if(!(c[n>>2]|0)){i=k;return}c[v>>2]=(c[(c[o>>2]|0)+20>>2]|0)-1;if(c[(c[(c[o>>2]|0)+16>>2]|0)+(c[v>>2]<<4)+4>>2]|0){Kk(c[(c[(c[o>>2]|0)+16>>2]|0)+(c[v>>2]<<4)+4>>2]|0)|0;c[(c[(c[o>>2]|0)+16>>2]|0)+(c[v>>2]<<4)+4>>2]=0;c[(c[(c[o>>2]|0)+16>>2]|0)+(c[v>>2]<<4)+12>>2]=0}cd(c[o>>2]|0);c[(c[o>>2]|0)+20>>2]=c[v>>2];if((c[n>>2]|0)==7|(c[n>>2]|0)==3082){a[(c[o>>2]|0)+64>>0]=1;Xb(c[o>>2]|0,c[r>>2]|0);c[r>>2]=Te(c[o>>2]|0,5400,j)|0;break}if(!(c[r>>2]|0)){z=c[o>>2]|0;c[j>>2]=c[u>>2];c[r>>2]=Te(z,19760,j)|0}}else{c[j>>2]=c[(c[o>>2]|0)+116>>2];c[r>>2]=Te(f,19608,j)|0}while(0);if(c[r>>2]|0){Ud(c[l>>2]|0,c[r>>2]|0,-1);Xb(c[o>>2]|0,c[r>>2]|0)}if(!(c[n>>2]|0)){i=k;return}fe(c[l>>2]|0,c[n>>2]|0);i=k;return}function vt(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+16|0;g=f+4|0;h=f;c[g>>2]=b;c[h>>2]=e;if(((c[h>>2]|0)>=0?(a[(c[g>>2]|0)+12>>0]|0)==0:0)?(zt(c[(c[g>>2]|0)+208>>2]|0)|0)==0:0)a[(c[g>>2]|0)+4>>0]=c[h>>2];i=f;return d[(c[g>>2]|0)+4>>0]|0}function wt(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;g=f+12|0;h=f+8|0;k=f+4|0;j=f;c[h>>2]=a;c[k>>2]=d;if(!(c[h>>2]|0)){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}Pc(c[h>>2]|0);if((c[k>>2]|0)>=0?(a=(c[(c[h>>2]|0)+4>>2]|0)+22|0,b[a>>1]=(e[a>>1]|0)&-5,(c[k>>2]|0)!=0):0){a=(c[(c[h>>2]|0)+4>>2]|0)+22|0;b[a>>1]=e[a>>1]|0|4}c[j>>2]=((e[(c[(c[h>>2]|0)+4>>2]|0)+22>>1]|0)&4|0)!=0&1;c[g>>2]=c[j>>2];a=c[g>>2]|0;i=f;return a|0}function xt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;g=d+8|0;e=d+4|0;f=d;c[g>>2]=a;c[e>>2]=b;c[f>>2]=c[(c[g>>2]|0)+4>>2];Pc(c[g>>2]|0);yt(c[c[f>>2]>>2]|0,c[e>>2]|0);i=d;return 0}function yt(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0;g=i;i=i+16|0;h=g+8|0;f=g+4|0;j=g;c[h>>2]=b;c[f>>2]=e;c[j>>2]=c[f>>2]&3;if((c[j>>2]|0)==1)b=1;else b=(d[(c[h>>2]|0)+12>>0]|0)!=0;a[(c[h>>2]|0)+7>>0]=b?1:0;if((c[j>>2]|0)==3)j=(a[(c[h>>2]|0)+12>>0]|0)!=0^1;else j=0;a[(c[h>>2]|0)+8>>0]=j?1:0;do if(!(a[(c[h>>2]|0)+7>>0]|0)){if(c[f>>2]&4){a[(c[h>>2]|0)+11>>0]=3;a[(c[h>>2]|0)+9>>0]=3;break}e=(c[f>>2]&8|0)!=0;a[(c[h>>2]|0)+11>>0]=2;j=(c[h>>2]|0)+9|0;if(e){a[j>>0]=3;break}else{a[j>>0]=2;break}}else{a[(c[h>>2]|0)+11>>0]=0;a[(c[h>>2]|0)+9>>0]=0}while(0);a[(c[h>>2]|0)+10>>0]=a[(c[h>>2]|0)+11>>0]|0;if(a[(c[h>>2]|0)+8>>0]|0){e=(c[h>>2]|0)+10|0;a[e>>0]=d[e>>0]|32}h=(c[h>>2]|0)+20|0;j=d[h>>0]|0;if(c[f>>2]&16){a[h>>0]=j&-2;i=g;return}else{a[h>>0]=j|1;i=g;return}}function zt(a){a=a|0;var b=0,e=0;b=i;i=i+16|0;e=b;c[e>>2]=a;if(!(c[e>>2]|0)){e=0;e=e&1;i=b;return e|0}e=(d[(c[e>>2]|0)+43>>0]|0|0)==2;e=e&1;i=b;return e|0}function At(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;i=i+32|0;j=d+16|0;e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[j>>2]=a;c[e>>2]=b;c[f>>2]=c[c[j>>2]>>2];c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[(c[f>>2]|0)+20>>2]|0))break;c[h>>2]=(c[(c[f>>2]|0)+16>>2]|0)+(c[g>>2]<<4);do if(c[(c[h>>2]|0)+4>>2]|0){if((c[e>>2]|0)!=0?0!=(xc(c[e>>2]|0,c[c[h>>2]>>2]|0)|0):0)break;qp(c[j>>2]|0,c[g>>2]|0)}while(0);c[g>>2]=(c[g>>2]|0)+1}i=d;return}function Bt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;j=i;i=i+48|0;e=j+36|0;d=j+32|0;n=j+28|0;g=j+24|0;o=j+20|0;f=j+16|0;m=j+12|0;l=j+8|0;k=j+4|0;h=j;c[e>>2]=a;c[d>>2]=b;c[o>>2]=c[c[e>>2]>>2];c[f>>2]=Ve(c[c[e>>2]>>2]|0,c[(c[d>>2]|0)+20>>2]|0)|0;c[n>>2]=Ct(c[d>>2]|0)|0;c[m>>2]=16;c[l>>2]=c[(c[(c[o>>2]|0)+16>>2]|0)+(c[f>>2]<<4)>>2];c[k>>2]=(c[f>>2]|0)==1?14904:14928;if((c[f>>2]|0)==1)c[m>>2]=14;if(ap(c[e>>2]|0,c[m>>2]|0,c[c[d>>2]>>2]|0,c[c[n>>2]>>2]|0,c[l>>2]|0)|0){i=j;return}if(ap(c[e>>2]|0,9,c[k>>2]|0,0,c[l>>2]|0)|0){i=j;return}o=dp(c[e>>2]|0)|0;c[g>>2]=o;if(!o){i=j;return}pp(c[e>>2]|0,0,c[f>>2]|0);Dt(c[e>>2]|0,c[f>>2]|0);c[h>>2]=Ye(c[g>>2]|0,9,19816,0)|0;bf(c[g>>2]|0,(c[h>>2]|0)+1|0,c[c[d>>2]>>2]|0,0);bf(c[g>>2]|0,(c[h>>2]|0)+4|0,1488,-2);ep(c[e>>2]|0,c[f>>2]|0);fp(c[g>>2]|0,61,0,0)|0;hp(c[g>>2]|0,126,c[f>>2]|0,0,0,c[c[d>>2]>>2]|0,0)|0;if((c[(c[e>>2]|0)+72>>2]|0)>=3){i=j;return}c[(c[e>>2]|0)+72>>2]=3;i=j;return}function Ct(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=bh((c[(c[d>>2]|0)+24>>2]|0)+8|0,c[(c[d>>2]|0)+4>>2]|0)|0;i=b;return a|0}function Dt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;e=d+8|0;f=d+4|0;g=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=dp(c[e>>2]|0)|0;Jr(c[e>>2]|0,c[f>>2]|0,1,1,(c[f>>2]|0)==1?14904:14928);We(c[g>>2]|0,55,0,1,c[f>>2]|0,5)|0;if(c[(c[e>>2]|0)+68>>2]|0){i=d;return}c[(c[e>>2]|0)+68>>2]=1;i=d;return}function Et(b,d,e){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+32|0;l=f+12|0;k=f+16|0;j=f+8|0;g=f+4|0;h=f;c[l>>2]=b;a[k>>0]=d;c[j>>2]=e;c[g>>2]=se(c[l>>2]|0,40+(c[(c[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h>>2]|0)+8>>2]=(c[j>>2]|0)==1&1;i=g;return}function Ht(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;h=i;i=i+48|0;d=h;e=h+32|0;f=h+28|0;l=h+24|0;k=h+20|0;j=h+16|0;g=h+12|0;c[f>>2]=a;c[l>>2]=b;if(!(c[l>>2]|0)){c[e>>2]=0;a=c[e>>2]|0;i=h;return a|0}c[j>>2]=c[(c[f>>2]|0)+12>>2];c[k>>2]=0;c[g>>2]=(c[l>>2]|0)+8;while(1){if((c[k>>2]|0)>=(c[c[l>>2]>>2]|0)){b=15;break}if(!(c[(c[f>>2]|0)+8>>2]|0)){if((c[(c[g>>2]|0)+4>>2]|0)!=0?(xc(c[(c[g>>2]|0)+4>>2]|0,c[j>>2]|0)|0)!=0:0){b=8;break}Xb(c[c[c[f>>2]>>2]>>2]|0,c[(c[g>>2]|0)+4>>2]|0);c[(c[g>>2]|0)+4>>2]=0;c[c[g>>2]>>2]=c[(c[f>>2]|0)+4>>2]}if(It(c[f>>2]|0,c[(c[g>>2]|0)+20>>2]|0)|0){b=11;break}if(Jt(c[f>>2]|0,c[(c[g>>2]|0)+44>>2]|0)|0){b=13;break}c[k>>2]=(c[k>>2]|0)+1;c[g>>2]=(c[g>>2]|0)+72}if((b|0)==8){a=c[c[f>>2]>>2]|0;k=c[(c[f>>2]|0)+20>>2]|0;l=c[(c[g>>2]|0)+4>>2]|0;c[d>>2]=c[(c[f>>2]|0)+16>>2];c[d+4>>2]=k;c[d+8>>2]=l;Se(a,20128,d);c[e>>2]=1;a=c[e>>2]|0;i=h;return a|0}else if((b|0)==11){c[e>>2]=1;a=c[e>>2]|0;i=h;return a|0}else if((b|0)==13){c[e>>2]=1;a=c[e>>2]|0;i=h;return a|0}else if((b|0)==15){c[e>>2]=0;a=c[e>>2]|0;i=h;return a|0}return 0}function It(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;e=d+8|0;f=d+4|0;g=d;c[f>>2]=a;c[g>>2]=b;while(1){if(!(c[g>>2]|0)){b=20;break}if(Kt(c[f>>2]|0,c[c[g>>2]>>2]|0)|0){b=4;break}if(Ht(c[f>>2]|0,c[(c[g>>2]|0)+32>>2]|0)|0){b=6;break}if(Jt(c[f>>2]|0,c[(c[g>>2]|0)+36>>2]|0)|0){b=8;break}if(Kt(c[f>>2]|0,c[(c[g>>2]|0)+40>>2]|0)|0){b=10;break}if(Jt(c[f>>2]|0,c[(c[g>>2]|0)+44>>2]|0)|0){b=12;break}if(Kt(c[f>>2]|0,c[(c[g>>2]|0)+48>>2]|0)|0){b=14;break}if(Jt(c[f>>2]|0,c[(c[g>>2]|0)+60>>2]|0)|0){b=16;break}if(Jt(c[f>>2]|0,c[(c[g>>2]|0)+64>>2]|0)|0){b=18;break}c[g>>2]=c[(c[g>>2]|0)+52>>2]}if((b|0)==4)c[e>>2]=1;else if((b|0)==6)c[e>>2]=1;else if((b|0)==8)c[e>>2]=1;else if((b|0)==10)c[e>>2]=1;else if((b|0)==12)c[e>>2]=1;else if((b|0)==14)c[e>>2]=1;else if((b|0)==16)c[e>>2]=1;else if((b|0)==18)c[e>>2]=1;else if((b|0)==20)c[e>>2]=0;i=d;return c[e>>2]|0}function Jt(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;g=i;i=i+16|0;j=g;f=g+12|0;h=g+8|0;k=g+4|0;c[h>>2]=b;c[k>>2]=e;while(1){if(!(c[k>>2]|0)){k=16;break}if((d[c[k>>2]>>0]|0)==135){if(!(a[(c[c[c[h>>2]>>2]>>2]|0)+145>>0]|0)){k=6;break}a[c[k>>2]>>0]=101}if(c[(c[k>>2]|0)+4>>2]&16384){k=16;break}b=c[h>>2]|0;e=(c[k>>2]|0)+20|0;if(c[(c[k>>2]|0)+4>>2]&2048){if(It(b,c[e>>2]|0)|0){k=10;break}}else if(Kt(b,c[e>>2]|0)|0){k=12;break}if(Jt(c[h>>2]|0,c[(c[k>>2]|0)+16>>2]|0)|0){k=14;break}c[k>>2]=c[(c[k>>2]|0)+12>>2]}if((k|0)==6){b=c[c[h>>2]>>2]|0;c[j>>2]=c[(c[h>>2]|0)+16>>2];Se(b,20176,j);c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0}else if((k|0)==10){c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0}else if((k|0)==12){c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0}else if((k|0)==14){c[f>>2]=1;b=c[f>>2]|0;i=g;return b|0}else if((k|0)==16){c[f>>2]=0;b=c[f>>2]|0;i=g;return b|0}return 0}function Kt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;i=i+32|0;e=d+16|0;f=d+12|0;j=d+8|0;h=d+4|0;g=d;c[f>>2]=a;c[j>>2]=b;if(!(c[j>>2]|0)){c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}c[h>>2]=0;c[g>>2]=c[(c[j>>2]|0)+4>>2];while(1){if((c[h>>2]|0)>=(c[c[j>>2]>>2]|0)){b=8;break}if(Jt(c[f>>2]|0,c[c[g>>2]>>2]|0)|0){b=6;break}c[h>>2]=(c[h>>2]|0)+1;c[g>>2]=(c[g>>2]|0)+20}if((b|0)==6){c[e>>2]=1;a=c[e>>2]|0;i=d;return a|0}else if((b|0)==8){c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}return 0}function Lt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;e=d+8|0;f=d+4|0;g=d;c[f>>2]=a;c[g>>2]=b;while(1){if(!(c[g>>2]|0)){b=10;break}if(It(c[f>>2]|0,c[(c[g>>2]|0)+8>>2]|0)|0){b=4;break}if(Jt(c[f>>2]|0,c[(c[g>>2]|0)+20>>2]|0)|0){b=6;break}if(Kt(c[f>>2]|0,c[(c[g>>2]|0)+24>>2]|0)|0){b=8;break}c[g>>2]=c[(c[g>>2]|0)+32>>2]}if((b|0)==4)c[e>>2]=1;else if((b|0)==6)c[e>>2]=1;else if((b|0)==8)c[e>>2]=1;else if((b|0)==10)c[e>>2]=0;i=d;return c[e>>2]|0}function Mt(a){a=a|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=a;a=(c[e>>2]|0)+88|0;b[a>>1]=b[a>>1]&-65|64;i=d;return}function Nt(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+32|0;j=f+16|0;l=f+12|0;h=f+8|0;g=f+4|0;k=f;c[j>>2]=a;c[l>>2]=d;c[k>>2]=c[c[j>>2]>>2];hu(c[(c[j>>2]|0)+16>>2]|0,(e[(c[j>>2]|0)+84>>1]|0)<<1);Xb(c[k>>2]|0,c[(c[j>>2]|0)+16>>2]|0);c[g>>2]=c[l>>2]<<1;b[(c[j>>2]|0)+84>>1]=c[l>>2];a=se(c[k>>2]|0,(c[g>>2]|0)*40|0,0)|0;c[h>>2]=a;c[(c[j>>2]|0)+16>>2]=a;if(!(c[(c[j>>2]|0)+16>>2]|0)){i=f;return}while(1){l=c[g>>2]|0;c[g>>2]=l+ -1;if((l|0)<=0)break;b[(c[h>>2]|0)+8>>1]=1;c[(c[h>>2]|0)+32>>2]=c[c[j>>2]>>2];c[h>>2]=(c[h>>2]|0)+40}i=f;return}function Ot(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;p=i;i=i+32|0;k=p+28|0;j=p+24|0;r=p+20|0;q=p+16|0;n=p+12|0;m=p+8|0;l=p+4|0;o=p;c[j>>2]=b;c[r>>2]=d;c[q>>2]=f;c[n>>2]=g;c[m>>2]=h;if(a[(c[c[j>>2]>>2]|0)+64>>0]|0){c[k>>2]=7;b=c[k>>2]|0;i=p;return b|0}else{b=(c[r>>2]|0)+($(c[q>>2]|0,e[(c[j>>2]|0)+84>>1]|0)|0)|0;c[o>>2]=(c[(c[j>>2]|0)+16>>2]|0)+(b*40|0);c[l>>2]=Vd(c[o>>2]|0,c[n>>2]|0,-1,1,c[m>>2]|0)|0;c[k>>2]=c[l>>2];b=c[k>>2]|0;i=p;return b|0}return 0}function Pt(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,m=0;f=i;i=i+32|0;m=f+24|0;j=f+20|0;l=f;h=f+16|0;g=f+12|0;k=f+8|0;c[m>>2]=a;c[j>>2]=b;b=l;c[b>>2]=d;c[b+4>>2]=e;c[h>>2]=dp(c[m>>2]|0)|0;b=(c[m>>2]|0)+72|0;a=(c[b>>2]|0)+1|0;c[b>>2]=a;c[g>>2]=a;c[k>>2]=Qe(c[c[m>>2]>>2]|0,8,0)|0;if(c[k>>2]|0){m=c[k>>2]|0;c[m+0>>2]=c[l+0>>2];c[m+4>>2]=c[l+4>>2]}hp(c[h>>2]|0,26,0,c[g>>2]|0,0,c[k>>2]|0,-13)|0;Nt(c[h>>2]|0,1);Ot(c[h>>2]|0,0,0,c[j>>2]|0,0)|0;fp(c[h>>2]|0,35,c[g>>2]|0,1)|0;i=f;return}function Qt(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[f>>2]=a;do if(c[f>>2]|0){if(!(xc(c[f>>2]|0,21072)|0)){c[e>>2]=1;break}if(!(xc(c[f>>2]|0,21064)|0))c[e>>2]=0;else b=6}else b=6;while(0);if((b|0)==6)c[e>>2]=-1;i=d;return c[e>>2]|0}function Rt(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;b=d+4|0;e=d;c[e>>2]=a;if((c[e>>2]|0)==6)c[b>>2]=0;else c[b>>2]=c[22296+(c[e>>2]<<2)>>2];i=d;return c[b>>2]|0}function St(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+8|0;g=e;c[f>>2]=a;a=g;c[a>>2]=b;c[a+4>>2]=d;a=g;b=c[a+4>>2]|0;if(!((b|0)>-1|(b|0)==-1&(c[a>>2]|0)>>>0>=4294967295)){b=c[f>>2]|0;b=b+160|0;a=b;a=c[a>>2]|0;b=b+4|0;b=c[b>>2]|0;D=b;i=e;return a|0}d=g;a=c[d+4>>2]|0;b=(c[f>>2]|0)+160|0;c[b>>2]=c[d>>2];c[b+4>>2]=a;b=g;gu(c[(c[f>>2]|0)+208>>2]|0,c[b>>2]|0,c[b+4>>2]|0);b=c[f>>2]|0;b=b+160|0;a=b;a=c[a>>2]|0;b=b+4|0;b=c[b>>2]|0;D=b;i=e;return a|0}function Tt(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=b;Pc(c[f>>2]|0);if(!(a[(c[(c[f>>2]|0)+4>>2]|0)+17>>0]|0)){f=0;c[e>>2]=f;f=c[e>>2]|0;i=d;return f|0}f=(a[(c[(c[f>>2]|0)+4>>2]|0)+18>>0]|0)!=0^1?1:2;c[e>>2]=f;f=c[e>>2]|0;i=d;return f|0}function Ut(a){a=a|0;var b=0,d=0,e=0,f=0;d=i;i=i+16|0;b=d+8|0;e=d+4|0;f=d;c[e>>2]=a;do if(xc(c[e>>2]|0,22272)|0){if(!(xc(c[e>>2]|0,21976)|0)){c[b>>2]=1;break}if(!(xc(c[e>>2]|0,22280)|0)){c[b>>2]=2;break}else{c[f>>2]=zg(c[e>>2]|0)|0;c[b>>2]=((c[f>>2]|0)>=0&(c[f>>2]|0)<=2?c[f>>2]|0:0)&255;break}}else c[b>>2]=0;while(0);i=d;return c[b>>2]|0}function Vt(b,f){b=b|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;l=g+12|0;m=g+8|0;k=g+4|0;h=g;j=g+16|0;c[l>>2]=b;c[m>>2]=f;c[k>>2]=c[(c[l>>2]|0)+4>>2];c[h>>2]=0;a[j>>0]=c[m>>2];Pc(c[l>>2]|0);if(((e[(c[k>>2]|0)+22>>1]|0)&2|0)!=0?(((d[j>>0]|0|0)!=0?1:0)|0)!=(d[(c[k>>2]|0)+17>>0]|0|0):0){c[h>>2]=8;m=c[h>>2]|0;i=g;return m|0}a[(c[k>>2]|0)+17>>0]=(d[j>>0]|0|0)!=0?1:0;a[(c[k>>2]|0)+18>>0]=(d[j>>0]|0|0)==2?1:0;m=c[h>>2]|0;i=g;return m|0}function Wt(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+32|0;g=f+16|0;k=f+12|0;l=f+8|0;h=f+4|0;j=f;c[k>>2]=b;c[l>>2]=e;c[h>>2]=fu(c[l>>2]|0)|0;c[j>>2]=c[c[k>>2]>>2];if((d[(c[j>>2]|0)+63>>0]|0|0)==(c[h>>2]|0)){c[g>>2]=0;l=c[g>>2]|0;i=f;return l|0}if(Xt(c[k>>2]|0)|0){c[g>>2]=1;l=c[g>>2]|0;i=f;return l|0}else{a[(c[j>>2]|0)+63>>0]=c[h>>2];c[g>>2]=0;l=c[g>>2]|0;i=f;return l|0}return 0}function Xt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e;d=e+12|0;g=e+8|0;f=e+4|0;c[g>>2]=b;c[f>>2]=c[c[g>>2]>>2];do if(c[(c[(c[f>>2]|0)+16>>2]|0)+20>>2]|0){if((a[(c[f>>2]|0)+62>>0]|0)!=0?(Tc(c[(c[(c[f>>2]|0)+16>>2]|0)+20>>2]|0)|0)==0:0){Kk(c[(c[(c[f>>2]|0)+16>>2]|0)+20>>2]|0)|0;c[(c[(c[f>>2]|0)+16>>2]|0)+20>>2]=0;cd(c[f>>2]|0);break}Se(c[g>>2]|0,22208,h);c[d>>2]=1;h=c[d>>2]|0;i=e;return h|0}while(0);c[d>>2]=0;h=c[d>>2]|0;i=e;return h|0}function Yt(b){b=b|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;g=e+8|0;f=e+4|0;h=e;c[g>>2]=b;if(!(a[(c[g>>2]|0)+62>>0]|0)){i=e;return}c[f>>2]=c[(c[g>>2]|0)+16>>2];c[h>>2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b|0;var e=0,f=0,g=0;f=i;i=i+16|0;g=f+4|0;e=f;a[g>>0]=b;b=d[g>>0]|0;if((b|0)==6)c[e>>2]=22176;else if((b|0)==8)c[e>>2]=22152;else if((b|0)==9)c[e>>2]=22168;else if((b|0)==7)c[e>>2]=22136;else c[e>>2]=22192;i=f;return c[e>>2]|0}function $t(f,g,h,j,k){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;x=i;i=i+80|0;v=x;n=x+64|0;q=x+60|0;z=x+56|0;t=x+52|0;p=x+48|0;D=x+44|0;o=x+40|0;u=x+36|0;s=x+32|0;l=x+28|0;r=x+24|0;w=x+20|0;C=x+16|0;y=x+68|0;A=x+12|0;B=x+8|0;c[q>>2]=f;c[z>>2]=g;c[t>>2]=h;c[p>>2]=j;c[D>>2]=k;c[o>>2]=0;c[u>>2]=0;c[s>>2]=c[(c[t>>2]|0)+20>>2];c[l>>2]=c[(c[t>>2]|0)+40>>2];do if((c[s>>2]|0)==1){if((b[(c[z>>2]|0)+36>>1]|0)>=0){if(!(c[l>>2]|0)){c[n>>2]=0;f=c[n>>2]|0;i=x;return f|0}if(!(xc(c[(c[(c[z>>2]|0)+4>>2]|0)+((b[(c[z>>2]|0)+36>>1]|0)*24|0)>>2]|0,c[l>>2]|0)|0)){c[n>>2]=0;f=c[n>>2]|0;i=x;return f|0}}}else if(c[D>>2]|0){c[u>>2]=Qe(c[c[q>>2]>>2]|0,c[s>>2]<<2,0)|0;if(c[u>>2]|0){c[c[D>>2]>>2]=c[u>>2];break}c[n>>2]=1;f=c[n>>2]|0;i=x;return f|0}while(0);c[o>>2]=c[(c[z>>2]|0)+8>>2];a:while(1){if(!(c[o>>2]|0))break;do if((e[(c[o>>2]|0)+50>>1]|0)==(c[s>>2]|0)?(d[(c[o>>2]|0)+54>>0]|0)!=0:0){if(!(c[l>>2]|0))if((a[(c[o>>2]|0)+55>>0]&3|0)==2){m=17;break a}else break;c[w>>2]=0;while(1){if((c[w>>2]|0)>=(c[s>>2]|0))break;b[y>>1]=b[(c[(c[o>>2]|0)+4>>2]|0)+(c[w>>2]<<1)>>1]|0;f=c[(c[(c[z>>2]|0)+4>>2]|0)+((b[y>>1]|0)*24|0)+16>>2]|0;c[A>>2]=f;c[A>>2]=(c[A>>2]|0)!=0?f:3320;if(xc(c[(c[(c[o>>2]|0)+32>>2]|0)+(c[w>>2]<<2)>>2]|0,c[A>>2]|0)|0)break;c[B>>2]=c[(c[(c[z>>2]|0)+4>>2]|0)+((b[y>>1]|0)*24|0)>>2];c[C>>2]=0;while(1){if((c[C>>2]|0)>=(c[s>>2]|0))break;if(!(xc(c[(c[t>>2]|0)+36+(c[C>>2]<<3)+4>>2]|0,c[B>>2]|0)|0)){m=27;break}c[C>>2]=(c[C>>2]|0)+1}if((m|0)==27?(m=0,(c[u>>2]|0)!=0):0)c[(c[u>>2]|0)+(c[w>>2]<<2)>>2]=c[(c[t>>2]|0)+36+(c[C>>2]<<3)>>2];if((c[C>>2]|0)==(c[s>>2]|0))break;c[w>>2]=(c[w>>2]|0)+1}if((c[w>>2]|0)==(c[s>>2]|0))break a}while(0);c[o>>2]=c[(c[o>>2]|0)+20>>2]}b:do if((m|0)==17?(c[u>>2]|0)!=0:0){c[r>>2]=0;while(1){if((c[r>>2]|0)>=(c[s>>2]|0))break b;c[(c[u>>2]|0)+(c[r>>2]<<2)>>2]=c[(c[t>>2]|0)+36+(c[r>>2]<<3)>>2];c[r>>2]=(c[r>>2]|0)+1}}while(0);if(c[o>>2]|0){c[c[p>>2]>>2]=c[o>>2];c[n>>2]=0;f=c[n>>2]|0;i=x;return f|0}if(!(a[(c[q>>2]|0)+438>>0]|0)){f=c[q>>2]|0;g=c[(c[t>>2]|0)+8>>2]|0;c[v>>2]=c[c[c[t>>2]>>2]>>2];c[v+4>>2]=g;Se(f,22088,v)}Xb(c[c[q>>2]>>2]|0,c[u>>2]|0);c[n>>2]=1;f=c[n>>2]|0;i=x;return f|0}function au(d,f){d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;l=i;i=i+32|0;h=l+20|0;o=l+16|0;j=l+12|0;m=l+8|0;k=l+4|0;n=l;g=l+24|0;c[o>>2]=d;c[j>>2]=f;if(!(c[(c[j>>2]|0)+16>>2]|0)){c[k>>2]=c[(c[j>>2]|0)+12>>2];c[n>>2]=Fs(c[o>>2]|0)|0;d=(e[(c[j>>2]|0)+52>>1]|0)+1|0;d=Qe(0,d,((d|0)<0)<<31>>31)|0;c[(c[j>>2]|0)+16>>2]=d;if(!(c[(c[j>>2]|0)+16>>2]|0)){a[(c[n>>2]|0)+64>>0]=1;c[h>>2]=0;d=c[h>>2]|0;i=l;return d|0}c[m>>2]=0;while(1){n=c[m>>2]|0;f=c[j>>2]|0;if((c[m>>2]|0)>=(e[(c[j>>2]|0)+52>>1]|0))break;b[g>>1]=b[(c[f+4>>2]|0)+(n<<1)>>1]|0;if((b[g>>1]|0)<0)f=68;else f=a[(c[(c[k>>2]|0)+4>>2]|0)+((b[g>>1]|0)*24|0)+21>>0]|0;a[(c[(c[j>>2]|0)+16>>2]|0)+(c[m>>2]|0)>>0]=f;c[m>>2]=(c[m>>2]|0)+1}a[(c[f+16>>2]|0)+n>>0]=0}c[h>>2]=c[(c[j>>2]|0)+16>>2];d=c[h>>2]|0;i=l;return d|0}function bu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;e=d+4|0;g=d;c[f>>2]=a;c[e>>2]=b;if(c[e>>2]|0)c[g>>2]=22080;else c[g>>2]=8776;Qf(c[f>>2]|0,8784,2,1,c[g>>2]|0,34,0,0,0)|0;Qf(c[f>>2]|0,8784,3,1,c[g>>2]|0,34,0,0,0)|0;Qf(c[f>>2]|0,8768,2,1,1208,34,0,0,0)|0;eu(c[f>>2]|0,8768,12);eu(c[f>>2]|0,8784,((c[e>>2]|0)!=0?12:4)&255);i=d;return}function cu(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+8|0;f=b+4|0;e=b;c[d>>2]=a;c[f>>2]=0;c[e>>2]=(c[d>>2]|0)+116;while(1){if((c[f>>2]|0)>=10)break;if(c[(c[e>>2]|0)+12>>2]|0){vs(c[d>>2]|0,c[e>>2]|0);c[(c[e>>2]|0)+12>>2]=0}c[f>>2]=(c[f>>2]|0)+1;c[e>>2]=(c[e>>2]|0)+20}i=b;return}function du(b,e,f,g,h,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;w=i;i=i+64|0;r=w+52|0;p=w+48|0;x=w+44|0;l=w+40|0;o=w+36|0;v=w+32|0;m=w+28|0;z=w+24|0;n=w+20|0;u=w+16|0;A=w+12|0;t=w+8|0;q=w+4|0;s=w;c[p>>2]=b;c[x>>2]=e;c[l>>2]=f;c[o>>2]=g;c[v>>2]=h;c[m>>2]=j;c[z>>2]=k;if((d[(c[x>>2]|0)+44>>0]|0)&16){c[r>>2]=0;b=c[r>>2]|0;i=w;return b|0}c[u>>2]=Ve(c[c[p>>2]>>2]|0,c[(c[x>>2]|0)+68>>2]|0)|0;c[q>>2]=dp(c[p>>2]|0)|0;if((c[o>>2]|0)<0)c[o>>2]=c[(c[p>>2]|0)+68>>2];b=c[o>>2]|0;c[o>>2]=b+1;c[A>>2]=b;if(c[m>>2]|0)c[c[m>>2]>>2]=c[A>>2];do if(!((d[(c[x>>2]|0)+44>>0]|0)&32)){if((c[v>>2]|0)!=0?(d[c[v>>2]>>0]|0|0)==0:0){y=11;break}Kr(c[p>>2]|0,c[A>>2]|0,c[u>>2]|0,c[x>>2]|0,c[l>>2]|0)}else y=11;while(0);if((y|0)==11)Jr(c[p>>2]|0,c[u>>2]|0,c[(c[x>>2]|0)+32>>2]|0,(c[l>>2]|0)==55&255,c[c[x>>2]>>2]|0);if(c[z>>2]|0)c[c[z>>2]>>2]=c[o>>2];c[n>>2]=0;c[t>>2]=c[(c[x>>2]|0)+8>>2];while(1){y=c[o>>2]|0;if(!(c[t>>2]|0))break;c[o>>2]=y+1;c[s>>2]=y;if((a[(c[t>>2]|0)+55>>0]&3|0)==2?(c[m>>2]|0)!=0?((d[(c[x>>2]|0)+44>>0]|0)&32|0)!=0:0:0)c[c[m>>2]>>2]=c[s>>2];if(!((c[v>>2]|0)!=0?(d[(c[v>>2]|0)+((c[n>>2]|0)+1)>>0]|0|0)==0:0)){ip(c[q>>2]|0,c[l>>2]|0,c[s>>2]|0,c[(c[t>>2]|0)+44>>2]|0,c[u>>2]|0)|0;Lr(c[p>>2]|0,c[t>>2]|0)}c[t>>2]=c[(c[t>>2]|0)+20>>2];c[n>>2]=(c[n>>2]|0)+1}if((y|0)>(c[(c[p>>2]|0)+68>>2]|0))c[(c[p>>2]|0)+68>>2]=c[o>>2];c[r>>2]=c[n>>2];b=c[r>>2]|0;i=w;return b|0}function eu(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0;j=i;i=i+16|0;n=j+8|0;m=j+4|0;l=j+12|0;k=j;c[n>>2]=f;c[m>>2]=g;a[l>>0]=h;g=c[n>>2]|0;f=c[m>>2]|0;c[k>>2]=Sf(g,f,Mb(c[m>>2]|0)|0,2,1,0)|0;if(!(c[k>>2]|0)){i=j;return}n=(c[k>>2]|0)+2|0;b[n>>1]=e[n>>1]|0|(d[l>>0]|0);i=j;return}function fu(b){b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;f=e+4|0;g=e;c[g>>2]=b;if((a[c[g>>2]>>0]|0)>=48?(a[c[g>>2]>>0]|0)<=50:0)c[f>>2]=(a[c[g>>2]>>0]|0)-48;else d=4;do if((d|0)==4){if(!(xc(c[g>>2]|0,21448)|0)){c[f>>2]=1;break}if(!(xc(c[g>>2]|0,4792)|0)){c[f>>2]=2;break}else{c[f>>2]=0;break}}while(0);i=e;return c[f>>2]|0}function gu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;g=e+8|0;f=e;c[g>>2]=a;a=f;c[a>>2]=b;c[a+4>>2]=d;if(!(c[g>>2]|0)){i=e;return}b=c[f+4>>2]|0;a=(c[g>>2]|0)+16|0;c[a>>2]=c[f>>2];c[a+4>>2]=b;i=e;return}function hu(d,f){d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;h=g+12|0;m=g+8|0;j=g+4|0;k=g;l=g+16|0;c[h>>2]=d;c[m>>2]=f;if(!((c[h>>2]|0)!=0&(c[m>>2]|0)!=0)){i=g;return}c[j>>2]=(c[h>>2]|0)+((c[m>>2]|0)*40|0);c[k>>2]=c[(c[h>>2]|0)+32>>2];a[l>>0]=a[(c[k>>2]|0)+64>>0]|0;if(c[(c[k>>2]|0)+520>>2]|0){do{if(c[(c[h>>2]|0)+24>>2]|0)Xb(c[k>>2]|0,c[(c[h>>2]|0)+20>>2]|0);d=(c[h>>2]|0)+40|0;c[h>>2]=d}while(d>>>0<(c[j>>2]|0)>>>0);i=g;return}do{f=c[h>>2]|0;if(!((e[(c[h>>2]|0)+8>>1]|0)&9312)){if(c[f+24>>2]|0){Xb(c[k>>2]|0,c[(c[h>>2]|0)+20>>2]|0);c[(c[h>>2]|0)+24>>2]=0}}else Bd(f);b[(c[h>>2]|0)+8>>1]=128;d=(c[h>>2]|0)+40|0;c[h>>2]=d}while(d>>>0<(c[j>>2]|0)>>>0);a[(c[k>>2]|0)+64>>0]=a[l>>0]|0;i=g;return}function iu(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,m=0,n=0,o=0;l=i;i=i+64|0;f=l;g=l+36|0;o=l+32|0;h=l+28|0;j=l+24|0;n=l+20|0;k=l+16|0;m=l+40|0;c[g>>2]=a;c[o>>2]=b;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]&(c[j>>2]|0)-1)){if(!(c[j>>2]|0))f=1;else f=c[j>>2]<<1;c[q>>2]=f;a=$(c[q>>2]|0,c[k>>2]|0)|0;c[p>>2]=Fk(c[r>>2]|0,c[o>>2]|0,a,((a|0)<0)<<31>>31)|0;if(c[p>>2]|0){c[o>>2]=c[p>>2];break}c[c[l>>2]>>2]=-1;c[n>>2]=c[o>>2];a=c[n>>2]|0;i=h;return a|0}while(0);c[m>>2]=c[o>>2];a=$(c[j>>2]|0,c[k>>2]|0)|0;_E((c[m>>2]|0)+a|0,0,c[k>>2]|0)|0;c[c[l>>2]>>2]=c[j>>2];a=c[g>>2]|0;c[a>>2]=(c[a>>2]|0)+1;c[n>>2]=c[o>>2];a=c[n>>2]|0;i=h;return a|0}function lu(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;k=i;i=i+32|0;q=k+28|0;p=k+24|0;h=k+20|0;n=k+16|0;l=k+12|0;o=k+8|0;j=k+4|0;m=k;c[q>>2]=a;c[p>>2]=b;c[h>>2]=e;c[n>>2]=f;c[l>>2]=g;c[o>>2]=0;c[j>>2]=0;if(c[(c[c[q>>2]>>2]|0)+24>>2]&8388608)c[j>>2]=wp(c[q>>2]|0,c[p>>2]|0)|0;c[m>>2]=c[j>>2];while(1){if(!(c[m>>2]|0))break;if((d[(c[m>>2]|0)+8>>0]|0|0)==(c[h>>2]|0)?(ex(c[(c[m>>2]|0)+16>>2]|0,c[n>>2]|0)|0)!=0:0)c[o>>2]=c[o>>2]|(d[(c[m>>2]|0)+9>>0]|0);c[m>>2]=c[(c[m>>2]|0)+32>>2]}if(!(c[l>>2]|0)){b=c[o>>2]|0;b=(b|0)!=0;a=c[j>>2]|0;a=b?a:0;i=k;return a|0}c[c[l>>2]>>2]=c[o>>2];b=c[o>>2]|0;b=(b|0)!=0;a=c[j>>2]|0;a=b?a:0;i=k;return a|0}function mu(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;l=i;i=i+32|0;j=l;k=l+16|0;g=l+12|0;h=l+8|0;m=l+4|0;c[g>>2]=a;c[h>>2]=b;c[m>>2]=e;if(!(((d[(c[h>>2]|0)+44>>0]|0)&16|0)!=0?(c[(c[c[(Rp(c[c[g>>2]>>2]|0,c[h>>2]|0)|0)+4>>2]>>2]|0)+52>>2]|0)==0:0))f=3;do if((f|0)==3){if((((d[(c[h>>2]|0)+44>>0]|0)&1|0)!=0?(c[(c[c[g>>2]>>2]|0)+24>>2]&2048|0)==0:0)?(d[(c[g>>2]|0)+18>>0]|0|0)==0:0)break;if((c[m>>2]|0)==0?(c[(c[h>>2]|0)+12>>2]|0)!=0:0){a=c[g>>2]|0;c[j>>2]=c[c[h>>2]>>2];Se(a,24480,j);c[k>>2]=1;a=c[k>>2]|0;i=l;return a|0}c[k>>2]=0;a=c[k>>2]|0;i=l;return a|0}while(0);a=c[g>>2]|0;c[j>>2]=c[c[h>>2]>>2];Se(a,24448,j);c[k>>2]=1;a=c[k>>2]|0;i=l;return a|0}function nu(a){a=a|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=a;a=(c[e>>2]|0)+88|0;b[a>>1]=b[a>>1]&-17|16;i=d;return}function ou(f,g,h,j,k){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;l=i;i=i+112|0;v=l+100|0;p=l+96|0;n=l+92|0;H=l+88|0;E=l+84|0;w=l+80|0;K=l+76|0;o=l+72|0;q=l+68|0;m=l+64|0;I=l+60|0;J=l+56|0;s=l+52|0;r=l+48|0;A=l+44|0;z=l+40|0;C=l+36|0;B=l+32|0;u=l+28|0;t=l+24|0;D=l+20|0;F=l+16|0;x=l+12|0;y=l+8|0;L=l+4|0;G=l;c[p>>2]=f;c[n>>2]=g;c[H>>2]=h;c[E>>2]=j;c[w>>2]=k;c[B>>2]=0;c[u>>2]=0;c[F>>2]=0;if(!(c[H>>2]|0)){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if((c[(c[p>>2]|0)+532>>2]|0)==0?(c[(c[H>>2]|0)+68>>2]|0)==0:0){if(wp(c[p>>2]|0,c[n>>2]|0)|0){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if(d[(c[n>>2]|0)+44>>0]&16){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if((c[E>>2]|0)==10){if((b[(c[n>>2]|0)+36>>1]|0)>=0)c[E>>2]=d[(c[n>>2]|0)+45>>0];if((c[E>>2]|0)==10)c[E>>2]=2}if((c[c[(c[H>>2]|0)+32>>2]>>2]|0)!=1){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if(c[(c[(c[H>>2]|0)+32>>2]|0)+28>>2]|0){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if(c[(c[H>>2]|0)+36>>2]|0){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if(c[(c[H>>2]|0)+48>>2]|0){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if(c[(c[H>>2]|0)+40>>2]|0){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if(c[(c[H>>2]|0)+60>>2]|0){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if(c[(c[H>>2]|0)+52>>2]|0){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if(e[(c[H>>2]|0)+6>>1]&1){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}c[K>>2]=c[c[H>>2]>>2];if((c[c[K>>2]>>2]|0)!=1){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if((d[c[c[(c[K>>2]|0)+4>>2]>>2]>>0]|0)!=116){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}c[I>>2]=(c[(c[H>>2]|0)+32>>2]|0)+8;c[o>>2]=np(c[p>>2]|0,0,c[I>>2]|0)|0;if(!(c[o>>2]|0)){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if((c[o>>2]|0)==(c[n>>2]|0)){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if(((d[(c[n>>2]|0)+44>>0]&32|0)==0|0)!=((d[(c[o>>2]|0)+44>>0]&32|0)==0|0)){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if(d[(c[o>>2]|0)+44>>0]&16){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if(c[(c[o>>2]|0)+12>>2]|0){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if((b[(c[n>>2]|0)+38>>1]|0)!=(b[(c[o>>2]|0)+38>>1]|0)){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}if((b[(c[n>>2]|0)+36>>1]|0)!=(b[(c[o>>2]|0)+36>>1]|0)){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}c[J>>2]=0;a:while(1){if((c[J>>2]|0)>=(b[(c[n>>2]|0)+38>>1]|0)){G=64;break}c[L>>2]=(c[(c[n>>2]|0)+4>>2]|0)+((c[J>>2]|0)*24|0);c[G>>2]=(c[(c[o>>2]|0)+4>>2]|0)+((c[J>>2]|0)*24|0);if((a[(c[L>>2]|0)+21>>0]|0)!=(a[(c[G>>2]|0)+21>>0]|0)){G=52;break}if(!(fx(c[(c[L>>2]|0)+16>>2]|0,c[(c[G>>2]|0)+16>>2]|0)|0)){G=54;break}if((d[(c[L>>2]|0)+20>>0]|0)!=0?(a[(c[G>>2]|0)+20>>0]|0)==0:0){G=57;break}do if((c[J>>2]|0)>0){if(((c[(c[L>>2]|0)+8>>2]|0)==0|0)!=((c[(c[G>>2]|0)+8>>2]|0)==0|0)){G=62;break a}if(!(c[(c[L>>2]|0)+8>>2]|0))break;if(UE(c[(c[L>>2]|0)+8>>2]|0,c[(c[G>>2]|0)+8>>2]|0)|0){G=62;break a}}while(0);c[J>>2]=(c[J>>2]|0)+1}if((G|0)==52){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}else if((G|0)==54){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}else if((G|0)==57){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}else if((G|0)==62){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}else if((G|0)==64){c[m>>2]=c[(c[n>>2]|0)+8>>2];while(1){if(!(c[m>>2]|0))break;if(d[(c[m>>2]|0)+54>>0]|0)c[F>>2]=1;c[q>>2]=c[(c[o>>2]|0)+8>>2];while(1){if(!(c[q>>2]|0))break;if(gx(c[m>>2]|0,c[q>>2]|0)|0)break;c[q>>2]=c[(c[q>>2]|0)+20>>2]}if(!(c[q>>2]|0)){G=73;break}c[m>>2]=c[(c[m>>2]|0)+20>>2]}if((G|0)==73){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}do if(c[(c[n>>2]|0)+24>>2]|0){if(!(Eq(c[(c[o>>2]|0)+24>>2]|0,c[(c[n>>2]|0)+24>>2]|0,-1)|0))break;c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}while(0);do if(c[(c[c[p>>2]>>2]|0)+24>>2]&524288){if(!(c[(c[n>>2]|0)+16>>2]|0))break;c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}while(0);if(c[(c[c[p>>2]>>2]|0)+24>>2]&128){c[v>>2]=0;f=c[v>>2]|0;i=l;return f|0}c[s>>2]=Ve(c[c[p>>2]>>2]|0,c[(c[o>>2]|0)+68>>2]|0)|0;c[t>>2]=dp(c[p>>2]|0)|0;qp(c[p>>2]|0,c[s>>2]|0);f=(c[p>>2]|0)+68|0;g=c[f>>2]|0;c[f>>2]=g+1;c[r>>2]=g;g=(c[p>>2]|0)+68|0;f=c[g>>2]|0;c[g>>2]=f+1;c[A>>2]=f;c[D>>2]=pu(c[p>>2]|0,c[w>>2]|0,c[n>>2]|0)|0;c[x>>2]=kp(c[p>>2]|0)|0;c[y>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(c[c[r>>2]>>2]|0,c[n>>2]|0)|0;else e=0;c[m>>2]=e;c[o>>2]=1;a:while(1){if((c[o>>2]|0)>=(c[q>>2]|0)){h=18;break}c[k>>2]=dt(c[l>>2]|0,c[o>>2]|0)|0;b:do if((d[c[k>>2]>>0]|0|0)==54?(c[(c[k>>2]|0)+12>>2]|0)==(c[p>>2]|0):0){c[h>>2]=c[(c[k>>2]|0)+8>>2];if((c[h>>2]|0)==(c[(c[n>>2]|0)+32>>2]|0)){h=8;break a}c[j>>2]=c[(c[n>>2]|0)+8>>2];while(1){if(!(c[j>>2]|0))break b;if((c[h>>2]|0)==(c[(c[j>>2]|0)+44>>2]|0)){h=12;break a}c[j>>2]=c[(c[j>>2]|0)+20>>2]}}while(0);if((d[c[k>>2]>>0]|0|0)==147?(c[(c[k>>2]|0)+16>>2]|0)==(c[m>>2]|0):0){h=16;break}c[o>>2]=(c[o>>2]|0)+1}if((h|0)==8){c[g>>2]=1;a=c[g>>2]|0;i=f;return a|0}else if((h|0)==12){c[g>>2]=1;a=c[g>>2]|0;i=f;return a|0}else if((h|0)==16){c[g>>2]=1;a=c[g>>2]|0;i=f;return a|0}else if((h|0)==18){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}return 0}function ru(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;k=e+16|0;g=e+12|0;h=e+8|0;j=e+4|0;f=e;c[k>>2]=a;c[g>>2]=b;c[h>>2]=d;c[j>>2]=c[(c[k>>2]|0)+8>>2];Os(c[k>>2]|0,c[g>>2]|0,c[h>>2]|0);b=(c[k>>2]|0)+72|0;a=(c[b>>2]|0)+1|0;c[b>>2]=a;c[f>>2]=a;fp(c[j>>2]|0,33,c[h>>2]|0,c[f>>2]|0)|0;Zs(c[g>>2]|0,c[f>>2]|0);i=e;return}function su(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;j=i;i=i+32|0;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[o>>2]|0))break;if(((d[(c[o>>2]|0)+8>>0]|0|0)==(c[m>>2]|0)?(d[(c[o>>2]|0)+9>>0]|0|0)==(c[v>>2]|0):0)?(ex(c[(c[o>>2]|0)+16>>2]|0,c[t>>2]|0)|0)!=0:0)kw(c[n>>2]|0,c[o>>2]|0,c[p>>2]|0,c[q>>2]|0,c[r>>2]|0,c[s>>2]|0);c[o>>2]=c[(c[o>>2]|0)+32>>2]}i=u;return}function uu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if((c[g>>2]|0)<=0){i=e;return}fp(c[(c[f>>2]|0)+8>>2]|0,136,c[g>>2]|0,c[h>>2]|0)|0;i=e;return}function vu(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0;j=i;i=i+16|0;f=j+8|0;g=j+4|0;h=j;c[f>>2]=a;c[g>>2]=b;c[h>>2]=e;if((d[(c[f>>2]|0)+23>>0]|0|0)!=0?(Vs(c[g>>2]|0)|0)!=0:0){ct(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0,0);i=j;return}Os(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=j;return}function wu(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;j=i;i=i+32|0;m=j+20|0;h=j+16|0;g=j+12|0;l=j+8|0;e=j+4|0;k=j;c[m>>2]=b;c[h>>2]=d;d=c[m>>2]|0;if(c[(c[m>>2]|0)+408>>2]|0)d=c[d+408>>2]|0;c[g>>2]=d;c[l>>2]=0;while(1){if((c[l>>2]|0)>=(c[(c[g>>2]|0)+452>>2]|0))break;if((c[h>>2]|0)==(c[(c[(c[g>>2]|0)+520>>2]|0)+(c[l>>2]<<2)>>2]|0)){f=10;break}c[l>>2]=(c[l>>2]|0)+1}if((f|0)==10){i=j;return}c[e>>2]=(c[(c[g>>2]|0)+452>>2]|0)+1<<2;c[k>>2]=jc(c[(c[g>>2]|0)+520>>2]|0,c[e>>2]|0)|0;if(c[k>>2]|0){c[(c[g>>2]|0)+520>>2]=c[k>>2];b=c[h>>2]|0;d=(c[g>>2]|0)+452|0;m=c[d>>2]|0;c[d>>2]=m+1;c[(c[(c[g>>2]|0)+520>>2]|0)+(m<<2)>>2]=b;i=j;return}else{a[(c[c[g>>2]>>2]|0)+64>>0]=1;i=j;return}}function xu(f,g,h,j,k,l,m,n,o,p,q){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0;aa=i;i=i+176|0;ka=aa;D=aa+168|0;v=aa+164|0;x=aa+160|0;X=aa+156|0;A=aa+152|0;z=aa+148|0;Q=aa+144|0;I=aa+175|0;N=aa+174|0;s=aa+140|0;$=aa+136|0;V=aa+132|0;w=aa+128|0;H=aa+124|0;Y=aa+120|0;F=aa+116|0;u=aa+112|0;ha=aa+108|0;M=aa+104|0;ja=aa+100|0;W=aa+96|0;O=aa+92|0;K=aa+88|0;t=aa+84|0;G=aa+173|0;y=aa+172|0;L=aa+80|0;ia=aa+76|0;ca=aa+72|0;ea=aa+68|0;da=aa+64|0;ga=aa+60|0;ba=aa+56|0;E=aa+52|0;P=aa+48|0;B=aa+44|0;C=aa+40|0;J=aa+36|0;r=aa+32|0;R=aa+28|0;S=aa+24|0;T=aa+20|0;U=aa+16|0;Z=aa+12|0;_=aa+8|0;c[D>>2]=f;c[v>>2]=g;c[x>>2]=h;c[X>>2]=j;c[A>>2]=k;c[z>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,ka)|0;hp(c[V>>2]|0,23,1299,c[M>>2]|0,(c[z>>2]|0)+1+(c[F>>2]|0)|0,c[ia>>2]|0,-1)|0;Xe(c[V>>2]|0,1)}while(0);c[F>>2]=(c[F>>2]|0)+1}a:do if((c[(c[v>>2]|0)+24>>2]|0)!=0?(c[(c[Y>>2]|0)+24>>2]&8192|0)==0:0){c[ca>>2]=c[(c[v>>2]|0)+24>>2];c[(c[D>>2]|0)+92>>2]=(c[z>>2]|0)+1;if((d[N>>0]|0)!=10)ha=d[N>>0]|0;else ha=2;c[M>>2]=ha;c[F>>2]=0;while(1){if((c[F>>2]|0)>=(c[c[ca>>2]>>2]|0))break a;c[ea>>2]=Nr(c[V>>2]|0)|0;Gs(c[D>>2]|0,c[(c[(c[ca>>2]|0)+4>>2]|0)+((c[F>>2]|0)*20|0)>>2]|0,c[ea>>2]|0,16);if((c[M>>2]|0)==4)fp(c[V>>2]|0,16,0,c[s>>2]|0)|0;else{c[da>>2]=c[(c[(c[ca>>2]|0)+4>>2]|0)+((c[F>>2]|0)*20|0)+4>>2];if(!(c[da>>2]|0))c[da>>2]=c[c[v>>2]>>2];if((c[M>>2]|0)==5)c[M>>2]=2;ts(c[D>>2]|0,275,c[M>>2]|0,c[da>>2]|0,0,3)}Pr(c[V>>2]|0,c[ea>>2]|0);c[F>>2]=(c[F>>2]|0)+1}}while(0);if((d[I>>0]|0)!=0&(c[H>>2]|0)==0){c[ga>>2]=Nr(c[V>>2]|0)|0;c[M>>2]=d[(c[v>>2]|0)+45>>0];if((d[N>>0]|0)==10){if((c[M>>2]|0)==10)c[M>>2]=2}else c[M>>2]=d[N>>0];if(a[G>>0]|0){ip(c[V>>2]|0,79,c[z>>2]|0,c[ga>>2]|0,c[Q>>2]|0)|0;Xe(c[V>>2]|0,-112)}b:do if((c[M>>2]|0)==5?(d[N>>0]|0)!=5:0){c[w>>2]=c[(c[v>>2]|0)+8>>2];while(1){if(!(c[w>>2]|0))break b;if((d[(c[w>>2]|0)+54>>0]|0)==4)break;if((d[(c[w>>2]|0)+54>>0]|0)==3)break;c[w>>2]=c[(c[w>>2]|0)+20>>2]}c[K>>2]=mp(c[V>>2]|0,16)|0}while(0);ip(c[V>>2]|0,70,c[X>>2]|0,c[ga>>2]|0,c[z>>2]|0)|0;switch(c[M>>2]|0){case 4:{fp(c[V>>2]|0,16,0,c[s>>2]|0)|0;break};case 5:{c[ba>>2]=0;if(c[(c[Y>>2]|0)+24>>2]&262144)c[ba>>2]=lu(c[D>>2]|0,c[v>>2]|0,109,0,0)|0;if((c[ba>>2]|0)==0?(cw(c[D>>2]|0,c[v>>2]|0,0,0)|0)==0:0){if(c[(c[v>>2]|0)+8>>2]|0){dw(c[D>>2]|0);fw(c[D>>2]|0,c[v>>2]|0,c[X>>2]|0,c[A>>2]|0,0)}}else{dw(c[D>>2]|0);ew(c[D>>2]|0,c[v>>2]|0,c[ba>>2]|0,c[X>>2]|0,c[A>>2]|0,c[z>>2]|0,1,0,5,1)}c[W>>2]=1;break};case 3:case 2:case 1:{fa=52;break};default:{c[M>>2]=2;fa=52}}if((fa|0)==52)bw(c[D>>2]|0,c[M>>2]|0,c[v>>2]|0);Pr(c[V>>2]|0,c[ga>>2]|0);if(c[K>>2]|0){c[t>>2]=mp(c[V>>2]|0,16)|0;zp(c[V>>2]|0,c[K>>2]|0)}}c[u>>2]=0;c[w>>2]=c[(c[v>>2]|0)+8>>2];while(1){if(!(c[w>>2]|0))break;do if(c[(c[x>>2]|0)+(c[u>>2]<<2)>>2]|0){if(!(d[y>>0]|0)){su(c[V>>2]|0,c[v>>2]|0,(c[z>>2]|0)+1|0);a[y>>0]=1}c[B>>2]=(c[A>>2]|0)+(c[u>>2]|0);c[C>>2]=Nr(c[V>>2]|0)|0;if(c[(c[w>>2]|0)+36>>2]|0){fp(c[V>>2]|0,28,0,c[(c[x>>2]|0)+(c[u>>2]<<2)>>2]|0)|0;c[(c[D>>2]|0)+92>>2]=(c[z>>2]|0)+1;xs(c[D>>2]|0,c[(c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)+24>>0]|0)==0?(c[(c[o>>2]|0)+24>>2]&16777216|0)==0:0)?(c[(c[p>>2]|0)+408>>2]|0)==0:0)?(a[(c[p>>2]|0)+20>>0]|0)==0:0)break;if($t(c[p>>2]|0,c[q>>2]|0,c[n>>2]|0,t,u)|0){if(!(c[v>>2]|0)){m=57;break b}if(d[(c[o>>2]|0)+64>>0]|0){m=57;break b}else break}c[w>>2]=ko(c[o>>2]|0,0,0,0)|0;if(c[w>>2]|0){c[x>>2]=(c[w>>2]|0)+8;c[(c[x>>2]|0)+16>>2]=c[c[n>>2]>>2];c[(c[x>>2]|0)+8>>2]=c[c[c[n>>2]>>2]>>2];f=(c[(c[x>>2]|0)+16>>2]|0)+40|0;b[f>>1]=(b[f>>1]|0)+1<<16>>16;f=(c[p>>2]|0)+68|0;e=c[f>>2]|0;c[f>>2]=e+1;c[(c[x>>2]|0)+40>>2]=e;if(c[y>>2]|0)Eu(c[p>>2]|0,c[w>>2]|0,c[q>>2]|0,c[t>>2]|0,c[n>>2]|0,c[u>>2]|0,c[y>>2]|0,-1);if(c[z>>2]|0)Eu(c[p>>2]|0,c[w>>2]|0,c[q>>2]|0,c[t>>2]|0,c[n>>2]|0,c[u>>2]|0,c[z>>2]|0,1);c[(c[x>>2]|0)+8>>2]=0;vn(c[o>>2]|0,c[w>>2]|0)}Xb(c[o>>2]|0,c[u>>2]|0)}while(0);c[n>>2]=c[(c[n>>2]|0)+12>>2]}if((m|0)==57){i=D;return}}else if((m|0)==57){i=D;return}}function zu(e,f,g,h,j,k,l,m,n){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;A=i;i=i+64|0;t=A+52|0;z=A+48|0;q=A+44|0;B=A+40|0;s=A+36|0;D=A+32|0;x=A+28|0;w=A+24|0;v=A+20|0;p=A+16|0;E=A+12|0;u=A+57|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0)){j=8;break}c[l>>2]=c[(c[j>>2]|0)+36+(c[n>>2]<<3)>>2];if((c[(c[o>>2]|0)+(c[l>>2]<<2)>>2]|0)>=0){j=4;break}if((c[k>>2]|0)!=0?(c[l>>2]|0)==(b[(c[m>>2]|0)+36>>1]|0):0){j=6;break}c[n>>2]=(c[n>>2]|0)+1}if((j|0)==4){c[h>>2]=1;a=c[h>>2]|0;i=g;return a|0}else if((j|0)==6){c[h>>2]=1;a=c[h>>2]|0;i=g;return a|0}else if((j|0)==8){c[h>>2]=0;a=c[h>>2]|0;i=g;return a|0}return 0}function Cu(e,f,g,h,j,k,l,m,n){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;t=i;i=i+96|0;u=t+84|0;w=t+80|0;A=t+76|0;E=t+72|0;s=t+68|0;z=t+64|0;y=t+60|0;r=t+56|0;J=t+52|0;v=t+48|0;p=t+44|0;o=t+40|0;q=t+36|0;K=t+32|0;x=t+28|0;I=t+24|0;C=t+20|0;B=t+16|0;D=t+12|0;H=t+8|0;F=t+4|0;G=t;c[u>>2]=e;c[w>>2]=f;c[A>>2]=g;c[E>>2]=h;c[s>>2]=j;c[z>>2]=k;c[y>>2]=l;c[r>>2]=m;c[J>>2]=n;c[p>>2]=dp(c[u>>2]|0)|0;c[o>>2]=(c[(c[u>>2]|0)+68>>2]|0)-1;c[q>>2]=Nr(c[p>>2]|0)|0;if((c[r>>2]|0)<0)fp(c[p>>2]|0,135,d[(c[s>>2]|0)+24>>0]|0,c[q>>2]|0)|0;c[v>>2]=0;while(1){if((c[v>>2]|0)>=(c[(c[s>>2]|0)+20>>2]|0))break;c[K>>2]=(c[(c[z>>2]|0)+(c[v>>2]<<2)>>2]|0)+(c[y>>2]|0)+1;fp(c[p>>2]|0,76,c[K>>2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+48|0;q=k+32|0;m=k+28|0;n=k+24|0;h=k+20|0;r=k+16|0;o=k+12|0;p=k+8|0;l=k+4|0;s=k;c[m>>2]=a;c[n>>2]=e;c[h>>2]=f;c[r>>2]=g;c[o>>2]=0;a:while(1){if((c[o>>2]|0)>=(c[(c[n>>2]|0)+20>>2]|0)){j=14;break}c[p>>2]=c[(c[n>>2]|0)+36+(c[o>>2]<<3)+4>>2];c[l>>2]=0;while(1){if((c[l>>2]|0)>=(b[(c[m>>2]|0)+38>>1]|0))break;if(!((c[(c[h>>2]|0)+(c[l>>2]<<2)>>2]|0)<0?!((c[r>>2]|0)!=0?(c[l>>2]|0)==(b[(c[m>>2]|0)+36>>1]|0):0):0))j=7;do if((j|0)==7){j=0;c[s>>2]=(c[(c[m>>2]|0)+4>>2]|0)+((c[l>>2]|0)*24|0);g=c[s>>2]|0;if(c[p>>2]|0)if(!(xc(c[g>>2]|0,c[p>>2]|0)|0)){j=9;break a}else break;else if(d[g+23>>0]&1){j=11;break a}else break}while(0);c[l>>2]=(c[l>>2]|0)+1}c[o>>2]=(c[o>>2]|0)+1}if((j|0)==9){c[q>>2]=1;a=c[q>>2]|0;i=k;return a|0}else if((j|0)==11){c[q>>2]=1;a=c[q>>2]|0;i=k;return a|0}else if((j|0)==14){c[q>>2]=0;a=c[q>>2]|0;i=k;return a|0}return 0}function Eu(f,g,h,j,k,l,m,n){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;v=i;i=i+144|0;w=v+128|0;J=v+124|0;z=v+120|0;G=v+116|0;t=v+112|0;M=v+108|0;A=v+104|0;o=v+100|0;q=v+96|0;E=v+92|0;r=v+88|0;H=v+56|0;p=v+48|0;s=v+44|0;u=v+40|0;L=v+36|0;O=v+32|0;P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>>2]|0)){f=(c[t>>2]|0)+34|0;b[f>>1]=e[f>>1]|512;c[(c[t>>2]|0)+8>>2]=c[S>>2]}}while(0);if(!((c[n>>2]|0)==1?(Wu(N)|0)!=0:0)){c[U>>2]=Xu(N)|0;if(c[U>>2]|0)break;Yu(c[t>>2]|0,0)|0;if(a[(c[u>>2]|0)+64>>0]|0)break;if((c[(c[t>>2]|0)+8>>2]|0)!=0?(Yu(c[t>>2]|0,(b[(c[t>>2]|0)+32>>1]|0)+1&65535)|0,(a[(c[u>>2]|0)+64>>0]|0)!=0):0)break}if((c[(c[t>>2]|0)+8>>2]|0)==0?(c[(c[u>>2]|0)+24>>2]&131072|0)!=0:0){f=(c[t>>2]|0)+24|0;c[f>>2]=-1;c[f+4>>2]=-1}if((c[(c[L>>2]|0)+64>>2]|0)==0?(d[(c[u>>2]|0)+64>>0]|0)==0:0){b:do if(((c[S>>2]|0)!=0?(d[(c[t>>2]|0)+41>>0]|0)>=2:0)?(e[(c[u>>2]|0)+60>>1]&1024|0)==0:0){g=Zu(c[R>>2]|0,c[S>>2]|0)|0;f=Q;c[f>>2]=g;c[f+4>>2]=D;if(c[N+8>>2]|0){h=Zu(c[R>>2]|0,c[N+8>>2]|0)|0;Z=Q;g=c[Z+4>>2]|D;f=Q;c[f>>2]=c[Z>>2]|h;c[f+4>>2]=g}while(1){if((d[(c[t>>2]|0)+41>>0]|0)<2)break b;c[v>>2]=c[(c[t>>2]|0)+736+(((d[(c[t>>2]|0)+41>>0]|0)-1|0)*72|0)+56>>2];if(!(d[(c[(c[t>>2]|0)+4>>2]|0)+8+((d[(c[v>>2]|0)+16>>0]|0)*72|0)+36>>0]&8))break b;if((e[F>>1]&1024|0)==0?(c[(c[v>>2]|0)+36>>2]&4096|0)==0:0)break b;g=Q;f=(c[v>>2]|0)+8|0;if((c[g>>2]&c[f>>2]|0)!=0?1:(c[g+4>>2]&c[f+4>>2]|0)!=0)break b;c[O>>2]=(c[(c[N+4>>2]|0)+20>>2]|0)+((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,c[x>>2]|0,-10)|0;break}if(d[(c[w>>2]|0)+44>>0]&16)break;do if(!(c[(c[v>>2]|0)+36>>2]&64)){if(e[F>>1]&16)break;c[E>>2]=54;if(a[(c[t>>2]|0)+38>>0]|0){c[E>>2]=55;c[(c[t>>2]|0)+60>>2]=c[(c[y>>2]|0)+40>>2]}Kr(c[L>>2]|0,c[(c[y>>2]|0)+40>>2]|0,c[A>>2]|0,c[w>>2]|0,c[E>>2]|0);if(a[(c[t>>2]|0)+38>>0]|0)break c;if((b[(c[w>>2]|0)+38>>1]|0)>=64)break c;if(d[(c[w>>2]|0)+44>>0]&32)break c;h=(c[y>>2]|0)+56|0;g=c[h+4>>2]|0;f=C;c[f>>2]=c[h>>2];c[f+4>>2]=g;c[B>>2]=0;while(1){f=C;if(!((c[f>>2]|0)!=0|(c[f+4>>2]|0)!=0))break;g=C;g=cF(c[g>>2]|0,c[g+4>>2]|0,1)|0;f=C;c[f>>2]=g;c[f+4>>2]=D;c[B>>2]=(c[B>>2]|0)+1}g=c[s>>2]|0;f=(Mr(c[s>>2]|0)|0)-1|0;bf(g,f,c[B>>2]|0,-14);break c}while(0);Jr(c[L>>2]|0,c[A>>2]|0,c[(c[w>>2]|0)+32>>2]|0,0,c[c[w>>2]>>2]|0)}while(0);do if(c[(c[v>>2]|0)+36>>2]&512){c[G>>2]=c[(c[v>>2]|0)+28>>2];c[H>>2]=54;do if(!(d[(c[w>>2]|0)+44>>0]&32))o=87;else{if((a[(c[G>>2]|0)+55>>0]&3|0)!=2){o=87;break}if(!(e[F>>1]&64)){o=87;break}c[T>>2]=c[(c[J>>2]|0)+4>>2];c[H>>2]=0}while(0);d:do if((o|0)==87){o=0;if(a[(c[t>>2]|0)+38>>0]|0){c[W>>2]=c[(c[(c[y>>2]|0)+16>>2]|0)+8>>2];c[T>>2]=c[p>>2];while(1){if(!(c[W>>2]|0))break;if((c[W>>2]|0)==(c[G>>2]|0))break;c[T>>2]=(c[T>>2]|0)+1;c[W>>2]=c[(c[W>>2]|0)+20>>2]}c[H>>2]=55;c[(c[t>>2]|0)+64>>2]=c[T>>2];break}else{do if(c[p>>2]|0){if(!(e[F>>1]&64))break;c[T>>2]=c[p>>2];if(!(e[F>>1]&4096))break d;c[H>>2]=53;break d}while(0);g=(c[L>>2]|0)+68|0;f=c[g>>2]|0;c[g>>2]=f+1;c[T>>2]=f;break}}while(0);c[(c[J>>2]|0)+8>>2]=c[T>>2];if(!(c[H>>2]|0))break;ip(c[s>>2]|0,c[H>>2]|0,c[T>>2]|0,c[(c[G>>2]|0)+44>>2]|0,c[A>>2]|0)|0;Lr(c[L>>2]|0,c[G>>2]|0)}while(0);if((c[A>>2]|0)>=0)qp(c[L>>2]|0,c[A>>2]|0);h=_u((c[t>>2]|0)+68|0,c[(c[y>>2]|0)+40>>2]|0)|0;Z=M;g=c[Z+4>>2]&~D;f=M;c[f>>2]=c[Z>>2]&~h;c[f+4>>2]=g;c[K>>2]=(c[K>>2]|0)+1;c[J>>2]=(c[J>>2]|0)+72}f=Mr(c[s>>2]|0)|0;c[(c[t>>2]|0)+44>>2]=f;if(!(a[(c[u>>2]|0)+64>>0]|0)){f=M;c[f>>2]=-1;c[f+4>>2]=-1;c[K>>2]=0;while(1){if((c[K>>2]|0)>=(c[n>>2]|0))break;c[J>>2]=(c[t>>2]|0)+736+((c[K>>2]|0)*72|0);if((c[(c[(c[J>>2]|0)+56>>2]|0)+36>>2]&16384|0)!=0?(f=M,$u(c[L>>2]|0,(c[t>>2]|0)+328|0,(c[I>>2]|0)+8+((d[(c[J>>2]|0)+36>>0]|0)*72|0)|0,c[f>>2]|0,c[f+4>>2]|0,c[J>>2]|0),(a[(c[u>>2]|0)+64>>0]|0)!=0):0)break a;av(c[L>>2]|0,c[I>>2]|0,c[J>>2]|0,c[K>>2]|0,d[(c[J>>2]|0)+36>>0]|0,b[F>>1]|0);g=Mr(c[s>>2]|0)|0;c[(c[J>>2]|0)+32>>2]=g;g=M;g=bv(c[t>>2]|0,c[K>>2]|0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2]|0);c[w>>2]=0;c[p>>2]=(c[v>>2]|0)+736;while(1){if((c[w>>2]|0)>=(d[(c[v>>2]|0)+41>>0]|0))break;c[r>>2]=0;c[t>>2]=(c[s>>2]|0)+8+((d[(c[p>>2]|0)+36>>0]|0)*72|0);c[u>>2]=c[(c[t>>2]|0)+16>>2];c[g>>2]=c[(c[p>>2]|0)+56>>2];a:do if(((d[(c[t>>2]|0)+37>>0]|0)>>>2&1|0)!=0?(a[(c[k>>2]|0)+64>>0]|0)==0:0){c[n>>2]=Mr(c[o>>2]|0)|0;c[m>>2]=c[(c[p>>2]|0)+32>>2];c[q>>2]=dt(c[o>>2]|0,c[m>>2]|0)|0;while(1){if((c[m>>2]|0)>=(c[n>>2]|0))break a;do if((c[(c[q>>2]|0)+4>>2]|0)==(c[(c[p>>2]|0)+4>>2]|0)){A=c[q>>2]|0;if((d[c[q>>2]>>0]|0)==47){a[A>>0]=33;c[(c[q>>2]|0)+4>>2]=(c[(c[q>>2]|0)+8>>2]|0)+(c[(c[t>>2]|0)+32>>2]|0);c[(c[q>>2]|0)+8>>2]=c[(c[q>>2]|0)+12>>2];c[(c[q>>2]|0)+12>>2]=0;break}if((d[A>>0]|0)==103){a[c[q>>2]>>0]=28;c[(c[q>>2]|0)+4>>2]=0;c[(c[q>>2]|0)+12>>2]=0}}while(0);c[m>>2]=(c[m>>2]|0)+1;c[q>>2]=(c[q>>2]|0)+20}}else h=35;while(0);b:do if((h|0)==35){h=0;if(((d[(c[u>>2]|0)+44>>0]&2|0)==0?(c[(c[u>>2]|0)+12>>2]|0)==0:0)?(e[(c[v>>2]|0)+34>>1]&16|0)==0:0){c[z>>2]=c[(c[g>>2]|0)+36>>2];if((a[(c[v>>2]|0)+38>>0]|0)==0?(c[z>>2]&64|0)==0:0)Ir(c[o>>2]|0,61,c[(c[t>>2]|0)+40>>2]|0)|0;if(((c[z>>2]&512|0)!=0?(c[z>>2]&16640|0)==0:0)?(c[(c[p>>2]|0)+8>>2]|0)!=(c[(c[v>>2]|0)+64>>2]|0):0)Ir(c[o>>2]|0,61,c[(c[p>>2]|0)+8>>2]|0)|0}A=c[g>>2]|0;if(!(c[(c[g>>2]|0)+36>>2]&576)){if(c[A+36>>2]&8192)c[r>>2]=c[(c[p>>2]|0)+48>>2]}else c[r>>2]=c[A+28>>2];if((c[r>>2]|0)!=0?(a[(c[k>>2]|0)+64>>0]|0)==0:0){c[n>>2]=Mr(c[o>>2]|0)|0;c[m>>2]=c[(c[p>>2]|0)+32>>2];c[q>>2]=dt(c[o>>2]|0,c[m>>2]|0)|0;while(1){if((c[m>>2]|0)>=(c[n>>2]|0))break b;do if((c[(c[q>>2]|0)+4>>2]|0)==(c[(c[p>>2]|0)+4>>2]|0)){A=c[q>>2]|0;if((d[c[q>>2]>>0]|0)!=47){if((d[A>>0]|0)!=103)break;c[(c[q>>2]|0)+4>>2]=c[(c[p>>2]|0)+8>>2];a[c[q>>2]>>0]=112;break}c[x>>2]=c[A+8>>2];if(d[(c[u>>2]|0)+44>>0]&32){c[y>>2]=Zr(c[u>>2]|0)|0;c[x>>2]=b[(c[(c[y>>2]|0)+4>>2]|0)+(c[x>>2]<<1)>>1]}c[x>>2]=(Ds(c[r>>2]|0,c[x>>2]&65535)|0)<<16>>16;if((c[x>>2]|0)>=0){c[(c[q>>2]|0)+8>>2]=c[x>>2];c[(c[q>>2]|0)+4>>2]=c[(c[p>>2]|0)+8>>2]}}while(0);c[m>>2]=(c[m>>2]|0)+1;c[q>>2]=(c[q>>2]|0)+20}}}while(0);c[w>>2]=(c[w>>2]|0)+1;c[p>>2]=(c[p>>2]|0)+72}c[(c[j>>2]|0)+424>>2]=c[(c[v>>2]|0)+56>>2];Ju(c[k>>2]|0,c[v>>2]|0);i=l;return}function Ju(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;e=d+8|0;f=d+4|0;g=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){i=d;return}Ku((c[f>>2]|0)+328|0);while(1){if(!(c[(c[f>>2]|0)+16>>2]|0))break;c[g>>2]=c[(c[f>>2]|0)+16>>2];c[(c[f>>2]|0)+16>>2]=c[(c[g>>2]|0)+48>>2];Lu(c[e>>2]|0,c[g>>2]|0)}Xb(c[e>>2]|0,c[f>>2]|0);i=d;return}function Ku(a){a=a|0;var b=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;f=b+12|0;h=b+8|0;g=b+4|0;e=b;c[f>>2]=a;c[e>>2]=c[c[c[c[f>>2]>>2]>>2]>>2];c[h>>2]=(c[(c[f>>2]|0)+12>>2]|0)-1;c[g>>2]=c[(c[f>>2]|0)+20>>2];while(1){if((c[h>>2]|0)<0)break;if((d[(c[g>>2]|0)+20>>0]|0)&1)wn(c[e>>2]|0,c[c[g>>2]>>2]|0);if(!((d[(c[g>>2]|0)+20>>0]|0)&16)){if((d[(c[g>>2]|0)+20>>0]|0)&32)Qu(c[e>>2]|0,c[(c[g>>2]|0)+12>>2]|0)}else Pu(c[e>>2]|0,c[(c[g>>2]|0)+12>>2]|0);c[h>>2]=(c[h>>2]|0)+ -1;c[g>>2]=(c[g>>2]|0)+48}if((c[(c[f>>2]|0)+20>>2]|0)==((c[f>>2]|0)+24|0)){i=b;return}Xb(c[e>>2]|0,c[(c[f>>2]|0)+20>>2]|0);i=b;return}function Lu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;Mu(c[f>>2]|0,c[e>>2]|0);Xb(c[f>>2]|0,c[e>>2]|0);i=d;return}function Mu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;if((c[(c[e>>2]|0)+44>>2]|0)!=((c[e>>2]|0)+52|0))Xb(c[f>>2]|0,c[(c[e>>2]|0)+44>>2]|0);Nu(c[f>>2]|0,c[e>>2]|0);Ou(c[e>>2]|0);i=d;return}function Nu(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+16|0;h=f+4|0;g=f;c[h>>2]=b;c[g>>2]=e;if(!(c[(c[g>>2]|0)+36>>2]&17408)){i=f;return}if((c[(c[g>>2]|0)+36>>2]&1024|0)!=0?(d[(c[g>>2]|0)+28>>0]|0|0)!=0:0){hc(c[(c[g>>2]|0)+32>>2]|0);a[(c[g>>2]|0)+28>>0]=0;c[(c[g>>2]|0)+32>>2]=0;i=f;return}if(!(c[(c[g>>2]|0)+36>>2]&16384)){i=f;return}if(!(c[(c[g>>2]|0)+28>>2]|0)){i=f;return}Xb(c[h>>2]|0,c[(c[(c[g>>2]|0)+28>>2]|0)+16>>2]|0);eh(c[(c[(c[g>>2]|0)+28>>2]|0)+40>>2]|0);Xb(c[h>>2]|0,c[(c[g>>2]|0)+28>>2]|0);c[(c[g>>2]|0)+28>>2]=0;i=f;return}function Ou(a){a=a|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=a;c[(c[e>>2]|0)+44>>2]=(c[e>>2]|0)+52;b[(c[e>>2]|0)+40>>1]=0;b[(c[e>>2]|0)+42>>1]=4;c[(c[e>>2]|0)+36>>2]=0;i=d;return}function Pu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;Ku(c[e>>2]|0);Xb(c[f>>2]|0,c[e>>2]|0);i=d;return}function Qu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;Ku(c[e>>2]|0);Xb(c[f>>2]|0,c[e>>2]|0);i=d;return}function Ru(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;c[c[e>>2]>>2]=c[f>>2];c[(c[e>>2]|0)+4>>2]=0;c[(c[e>>2]|0)+12>>2]=0;c[(c[e>>2]|0)+16>>2]=8;c[(c[e>>2]|0)+20>>2]=(c[e>>2]|0)+24;i=d;return}function Su(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0;g=i;i=i+16|0;j=g+4|0;k=g;h=g+8|0;c[j>>2]=b;c[k>>2]=e;a[h>>0]=f;a[(c[j>>2]|0)+8>>0]=a[h>>0]|0;if(!(c[k>>2]|0)){i=g;return}e=c[j>>2]|0;f=c[k>>2]|0;if((d[c[k>>2]>>0]|0|0)!=(d[h>>0]|0|0)){Uv(e,f,0)|0;i=g;return}else{Su(e,c[f+12>>2]|0,a[h>>0]|0);Su(c[j>>2]|0,c[(c[k>>2]|0)+16>>2]|0,a[h>>0]|0);i=g;return}}function Tu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=c[f>>2]|0;f=c[e>>2]|0;a=c[f>>2]|0;c[f>>2]=a+1;c[(c[e>>2]|0)+4+(a<<2)>>2]=b;i=d;return}function Uu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d+8|0;g=d+4|0;e=d;c[f>>2]=a;c[g>>2]=b;c[e>>2]=(c[(c[g>>2]|0)+12>>2]|0)-1;while(1){if((c[e>>2]|0)<0)break;Rv(c[f>>2]|0,c[g>>2]|0,c[e>>2]|0);c[e>>2]=(c[e>>2]|0)+ -1}i=d;return}function Vu(a,f,g,h){a=a|0;f=f|0;g=g|0;h=h|0;var 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;s=i;i=i+48|0;l=s+40|0;o=s+36|0;w=s+32|0;t=s+28|0;p=s+24|0;u=s+20|0;n=s+16|0;m=s+12|0;q=s+8|0;v=s+4|0;j=s+44|0;r=s;c[o>>2]=a;c[w>>2]=f;c[t>>2]=g;c[p>>2]=h;if((c[c[w>>2]>>2]|0)!=1){c[l>>2]=0;a=c[l>>2]|0;i=s;return a|0}c[q>>2]=c[(c[w>>2]|0)+48>>2];c[u>>2]=c[(c[w>>2]|0)+24>>2];c[m>>2]=0;while(1){if((c[m>>2]|0)>=(c[c[p>>2]>>2]|0))break;c[v>>2]=iq(c[(c[(c[p>>2]|0)+4>>2]|0)+((c[m>>2]|0)*20|0)>>2]|0)|0;if(((d[c[v>>2]>>0]|0)==154?(c[(c[v>>2]|0)+28>>2]|0)==(c[q>>2]|0):0)?(b[(c[v>>2]|0)+32>>1]|0)<0:0){k=8;break}c[m>>2]=(c[m>>2]|0)+1}if((k|0)==8){c[l>>2]=1;a=c[l>>2]|0;i=s;return a|0}c[n>>2]=c[(c[u>>2]|0)+8>>2];while(1){if(!(c[n>>2]|0)){k=22;break}if(d[(c[n>>2]|0)+54>>0]|0){c[m>>2]=0;while(1){if((c[m>>2]|0)>=(e[(c[n>>2]|0)+50>>1]|0))break;b[j>>1]=b[(c[(c[n>>2]|0)+4>>2]|0)+(c[m>>2]<<1)>>1]|0;if(!(hv(c[t>>2]|0,c[q>>2]|0,b[j>>1]|0,-1,-1,2,c[n>>2]|0)|0)){c[r>>2]=Qv(c[o>>2]|0,c[p>>2]|0,c[q>>2]|0,c[n>>2]|0,c[m>>2]|0)|0;if((c[r>>2]|0)<0)break;if(!(d[(c[(c[u>>2]|0)+4>>2]|0)+((b[j>>1]|0)*24|0)+20>>0]|0))break}c[m>>2]=(c[m>>2]|0)+1}if((c[m>>2]|0)==(e[(c[n>>2]|0)+50>>1]|0)){k=20;break}}c[n>>2]=c[(c[n>>2]|0)+20>>2]}if((k|0)==20){c[l>>2]=1;a=c[l>>2]|0;i=s;return a|0}else if((k|0)==22){c[l>>2]=0;a=c[l>>2]|0;i=s;return a|0}return 0}function Wu(f){f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;m=i;i=i+48|0;h=m+40|0;s=m+36|0;q=m+32|0;o=m+28|0;r=m+24|0;k=m+20|0;j=m+16|0;p=m+12|0;l=m+8|0;n=m+4|0;g=m;c[s>>2]=f;c[q>>2]=c[c[s>>2]>>2];if(e[(c[q>>2]|0)+34>>1]&32){c[h>>2]=0;s=c[h>>2]|0;i=m;return s|0}c[o>>2]=(c[(c[q>>2]|0)+4>>2]|0)+8;c[n>>2]=c[(c[o>>2]|0)+16>>2];if(d[(c[n>>2]|0)+44>>0]&16){c[h>>2]=0;s=c[h>>2]|0;i=m;return s|0}if(c[(c[o>>2]|0)+64>>2]|0){c[h>>2]=0;s=c[h>>2]|0;i=m;return s|0}c[p>>2]=c[(c[o>>2]|0)+40>>2];c[r>>2]=(c[q>>2]|0)+328;c[j>>2]=c[(c[s>>2]|0)+12>>2];c[(c[j>>2]|0)+36>>2]=0;b[(c[j>>2]|0)+26>>1]=0;c[k>>2]=hv(c[r>>2]|0,c[p>>2]|0,-1,0,0,2,0)|0;a:do if(c[k>>2]|0){c[(c[j>>2]|0)+36>>2]=4353;c[c[(c[j>>2]|0)+44>>2]>>2]=c[k>>2];b[(c[j>>2]|0)+40>>1]=1;b[(c[j>>2]|0)+24>>1]=1;b[(c[j>>2]|0)+20>>1]=33}else{c[g>>2]=c[(c[n>>2]|0)+8>>2];while(1){if(!(c[g>>2]|0))break a;if(((d[(c[g>>2]|0)+54>>0]|0)!=0?(c[(c[g>>2]|0)+36>>2]|0)==0:0)?(e[(c[g>>2]|0)+50>>1]|0)<=4:0){c[l>>2]=0;while(1){if((c[l>>2]|0)>=(e[(c[g>>2]|0)+50>>1]|0))break;c[k>>2]=hv(c[r>>2]|0,c[p>>2]|0,b[(c[(c[g>>2]|0)+4>>2]|0)+(c[l>>2]<<1)>>1]|0,0,0,2,c[g>>2]|0)|0;if(!(c[k>>2]|0))break;c[(c[(c[j>>2]|0)+44>>2]|0)+(c[l>>2]<<2)>>2]=c[k>>2];c[l>>2]=(c[l>>2]|0)+1}if((c[l>>2]|0)==(e[(c[g>>2]|0)+50>>1]|0))break}c[g>>2]=c[(c[g>>2]|0)+20>>2]}c[(c[j>>2]|0)+36>>2]=4609;if(!(((d[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)+12>>2];Ou(c[g>>2]|0);c[o>>2]=0;c[l>>2]=(c[s>>2]|0)+8;while(1){if((c[o>>2]|0)>=(c[q>>2]|0)){j=13;break}a[(c[g>>2]|0)+16>>0]=c[o>>2];r=_u((c[p>>2]|0)+68|0,c[(c[l>>2]|0)+40>>2]|0)|0;s=(c[g>>2]|0)+8|0;c[s>>2]=r;c[s+4>>2]=D;if((d[(c[l>>2]|0)+36>>0]|0|(d[n>>0]|0))&10){b=m;r=c[b+4>>2]|0;s=k;c[s>>2]=c[b>>2];c[s+4>>2]=r}a[n>>0]=a[(c[l>>2]|0)+36>>0]|0;b=c[j>>2]|0;s=k;r=c[s>>2]|0;s=c[s+4>>2]|0;if((d[(c[(c[l>>2]|0)+16>>2]|0)+44>>0]|0)&16)c[f>>2]=vv(b,r,s)|0;else c[f>>2]=wv(b,r,s)|0;if(!(c[f>>2]|0)){s=k;c[f>>2]=xv(c[j>>2]|0,c[s>>2]|0,c[s+4>>2]|0)|0}b=(c[g>>2]|0)+8|0;t=m;r=c[t+4>>2]|c[b+4>>2];s=m;c[s>>2]=c[t>>2]|c[b>>2];c[s+4>>2]=r;if(c[f>>2]|0){j=13;break}if(d[(c[h>>2]|0)+64>>0]|0){j=13;break}c[o>>2]=(c[o>>2]|0)+1;c[l>>2]=(c[l>>2]|0)+72}if((j|0)==13){Mu(c[h>>2]|0,c[g>>2]|0);i=e;return c[f>>2]|0}return 0}function Yu(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,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;q=i;i=i+160|0;y=q+32|0;j=q+132|0;m=q+128|0;t=q+146|0;P=q+124|0;p=q+120|0;E=q+116|0;k=q+112|0;u=q+108|0;B=q+104|0;N=q+100|0;S=q+96|0;K=q+92|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>=0?(a[F>>0]|0)<(c[K>>2]|0):0){if(!(b[(c[L>>2]|0)+(a[F>>0]<<1)>>1]|0)){f=tv(c[m>>2]|0,b[t>>1]|0,c[K>>2]|0,a[F>>0]|0)|0;b[(c[L>>2]|0)+(a[F>>0]<<1)>>1]=f}b[M>>1]=rv(b[H>>1]|0,b[(c[L>>2]|0)+(a[F>>0]<<1)>>1]|0)|0}else b[M>>1]=b[H>>1]|0;c[N>>2]=0;c[O>>2]=c[x>>2];while(1){if((c[N>>2]|0)>=(c[D>>2]|0))break;g=c[O>>2]|0;f=J;if(((c[g>>2]|0)==(c[f>>2]|0)?(c[g+4>>2]|0)==(c[f+4>>2]|0):0)?((a[(c[O>>2]|0)+22>>0]^a[F>>0])&128|0)==0:0)break;c[N>>2]=(c[N>>2]|0)+1;c[O>>2]=(c[O>>2]|0)+32}do if((c[N>>2]|0)<(c[D>>2]|0)){if((b[(c[O>>2]|0)+18>>1]|0)<(b[M>>1]|0))break a;if((b[(c[O>>2]|0)+18>>1]|0)!=(b[M>>1]|0))break;if((b[(c[O>>2]|0)+16>>1]|0)<=(b[I>>1]|0))break a}else{do if((c[D>>2]|0)>=(c[P>>2]|0)){if((b[M>>1]|0)>(b[Q>>1]|0))break a;if((b[M>>1]|0)!=(b[Q>>1]|0))break;if((b[H>>1]|0)>=(b[R>>1]|0))break a}while(0);if((c[D>>2]|0)<(c[P>>2]|0)){f=c[D>>2]|0;c[D>>2]=f+1;c[N>>2]=f}else c[N>>2]=c[S>>2];c[O>>2]=(c[x>>2]|0)+(c[N>>2]<<5)}while(0);T=c[o>>2]|0;f=(c[w>>2]|0)+8|0;g=c[T+4>>2]|c[f+4>>2];U=c[O>>2]|0;c[U>>2]=c[T>>2]|c[f>>2];c[U+4>>2]=g;U=G;g=c[U+4>>2]|0;f=(c[O>>2]|0)+8|0;c[f>>2]=c[U>>2];c[f+4>>2]=g;b[(c[O>>2]|0)+16>>1]=b[I>>1]|0;b[(c[O>>2]|0)+18>>1]=b[M>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if((f|0)==4){a=$E(1,0,b|0)|0;b=d;c[b>>2]=a;c[b+4>>2]=D;b=d;a=b;a=c[a>>2]|0;b=b+4|0;b=c[b>>2]|0;D=b;i=e;return a|0}else if((f|0)==6){b=d;c[b>>2]=0;c[b+4>>2]=0;b=d;a=b;a=c[a>>2]|0;b=b+4|0;b=c[b>>2]|0;D=b;i=e;return a|0}return 0}function $u(d,e,f,g,h,j){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;F=i;i=i+144|0;O=F+40|0;o=F+132|0;J=F+128|0;v=F+124|0;l=F+32|0;p=F+120|0;r=F+116|0;y=F+112|0;G=F+108|0;m=F+104|0;q=F+100|0;u=F+96|0;H=F+92|0;s=F+88|0;t=F+84|0;n=F+80|0;x=F+76|0;k=F+72|0;C=F+68|0;I=F+64|0;K=F+60|0;B=F+24|0;w=F+16|0;P=F+136|0;N=F+56|0;M=F+8|0;E=F+52|0;A=F;z=F+48|0;c[o>>2]=d;c[J>>2]=e;c[v>>2]=f;d=l;c[d>>2]=g;c[d+4>>2]=h;c[p>>2]=j;a[P>>0]=0;c[q>>2]=c[(c[o>>2]|0)+8>>2];c[u>>2]=_s(c[o>>2]|0)|0;c[r>>2]=0;c[H>>2]=c[(c[v>>2]|0)+16>>2];c[G>>2]=(c[(c[J>>2]|0)+20>>2]|0)+((c[(c[J>>2]|0)+12>>2]|0)*48|0);c[I>>2]=c[(c[p>>2]|0)+56>>2];h=B;c[h>>2]=0;c[h+4>>2]=0;c[y>>2]=c[(c[J>>2]|0)+20>>2];while(1){if((c[y>>2]|0)>>>0>=(c[G>>2]|0)>>>0)break;h=l;if(mv(c[y>>2]|0,c[v>>2]|0,c[h>>2]|0,c[h+4>>2]|0)|0){c[N>>2]=c[(c[y>>2]|0)+12>>2];if((c[N>>2]|0)>=64){g=0;j=-2147483648}else{g=$E(1,0,c[N>>2]|0)|0;j=D}h=M;c[h>>2]=g;c[h+4>>2]=j;if(!(a[P>>0]|0)){h=c[(c[(c[H>>2]|0)+4>>2]|0)+((c[N>>2]|0)*24|0)>>2]|0;c[O>>2]=c[c[H>>2]>>2];c[O+4>>2]=h;tc(284,23984,O);a[P>>0]=1}d=B;h=M;if((c[d>>2]&c[h>>2]|0)==0?(c[d+4>>2]&c[h+4>>2]|0)==0:0){if(nv(c[c[o>>2]>>2]|0,c[I>>2]|0,(c[r>>2]|0)+1|0)|0){L=42;break}f=c[y>>2]|0;e=c[r>>2]|0;c[r>>2]=e+1;c[(c[(c[I>>2]|0)+44>>2]|0)+(e<<2)>>2]=f;e=M;f=B;d=c[f+4>>2]|c[e+4>>2];h=B;c[h>>2]=c[f>>2]|c[e>>2];c[h+4>>2]=d}}c[y>>2]=(c[y>>2]|0)+48}if((L|0)==42){i=F;return}f=c[r>>2]&65535;b[(c[I>>2]|0)+40>>1]=f;b[(c[I>>2]|0)+24>>1]=f;c[(c[I>>2]|0)+36>>2]=16961;f=(c[v>>2]|0)+56|0;e=B;d=c[f+4>>2]&(~c[e+4>>2]|-2147483648);h=w;c[h>>2]=c[f>>2]&~c[e>>2];c[h+4>>2]=d;if((b[(c[H>>2]|0)+38>>1]|0)>=63)L=63;else L=b[(c[H>>2]|0)+38>>1]|0;c[k>>2]=L;c[x>>2]=0;while(1){if((c[x>>2]|0)>=(c[k>>2]|0))break;h=w;e=c[h>>2]|0;h=c[h+4>>2]|0;d=$E(1,0,c[x>>2]|0)|0;if((e&d|0)!=0|(h&D|0)!=0)c[r>>2]=(c[r>>2]|0)+1;c[x>>2]=(c[x>>2]|0)+1}if(0!=0?1:(c[(c[v>>2]|0)+60>>2]&-2147483648|0)!=0)c[r>>2]=(c[r>>2]|0)+((b[(c[H>>2]|0)+38>>1]|0)-64+1);h=(c[I>>2]|0)+36|0;c[h>>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,H=0;B=i;i=i+208|0;w=B;H=B+96|0;F=B+92|0;G=B+88|0;s=B+84|0;t=B+80|0;E=B+100|0;y=B+76|0;q=B+72|0;D=B+68|0;r=B+64|0;z=B+60|0;x=B+56|0;A=B+52|0;p=B+48|0;o=B+20|0;C=B+104|0;u=B+16|0;v=B+12|0;m=B+8|0;c[H>>2]=f;c[F>>2]=g;c[G>>2]=h;c[s>>2]=j;c[t>>2]=k;b[E>>1]=l;if((d[(c[H>>2]|0)+450>>0]|0|0)!=2){i=B;return}c[y>>2]=(c[F>>2]|0)+8+((d[(c[G>>2]|0)+36>>0]|0)*72|0);c[q>>2]=c[(c[H>>2]|0)+8>>2];c[D>>2]=c[c[H>>2]>>2];c[r>>2]=c[(c[H>>2]|0)+464>>2];c[x>>2]=c[(c[G>>2]|0)+56>>2];c[A>>2]=c[(c[x>>2]|0)+36>>2];if(c[A>>2]&8192){i=B;return}if((e[E>>1]|0)&64){i=B;return}do if(c[A>>2]&48)E=1;else{if((c[A>>2]&1024|0)==0?(e[(c[x>>2]|0)+24>>1]|0|0)>0:0){E=1;break}E=((e[E>>1]|0)&3|0)!=0}while(0);c[z>>2]=E&1;nc(o,C,100,1e9);c[o>>2]=c[D>>2];ss(o,(c[z>>2]|0)!=0?23640:23648);C=c[y>>2]|0;if(c[(c[y>>2]|0)+20>>2]|0){c[w>>2]=d[C+38>>0];kn(o,0,23656,w)}else{c[w>>2]=c[C+8>>2];kn(o,0,23672,w)}if(c[(c[y>>2]|0)+12>>2]|0){c[w>>2]=c[(c[y>>2]|0)+12>>2];kn(o,0,23688,w)}do if(!(c[A>>2]&1280)){c[u>>2]=0;c[v>>2]=c[(c[x>>2]|0)+28>>2];if(((d[(c[(c[y>>2]|0)+16>>2]|0)+44>>0]|0)&32|0)!=0?(a[(c[v>>2]|0)+55>>0]&3|0)==2:0){if(c[z>>2]|0)c[u>>2]=23696}else n=18;do if((n|0)==18){if(c[A>>2]&16384){c[u>>2]=23712;break}if(c[A>>2]&64){c[u>>2]=23744;break}else{c[u>>2]=23768;break}}while(0);if(c[u>>2]|0){Vm(o,23784,7);f=c[u>>2]|0;c[w>>2]=c[c[v>>2]>>2];kn(o,0,f,w);kv(o,c[x>>2]|0,c[(c[y>>2]|0)+16>>2]|0)}}else{if((c[A>>2]&256|0)!=0?(c[A>>2]&15|0)!=0:0){do if(!(c[A>>2]&5)){if((c[A>>2]&48|0)==48){c[m>>2]=23808;break}if(c[A>>2]&32){c[m>>2]=23832;break}else{c[m>>2]=23848;break}}else c[m>>2]=23792;while(0);ss(o,23864);ss(o,c[m>>2]|0);break}if(c[A>>2]&1024){f=c[(c[x>>2]|0)+32>>2]|0;c[w>>2]=c[(c[x>>2]|0)+24>>2];c[w+4>>2]=f;kn(o,0,23896,w)}}while(0);c[p>>2]=pc(o)|0;hp(c[q>>2]|0,155,c[r>>2]|0,c[s>>2]|0,c[t>>2]|0,c[p>>2]|0,-1)|0;i=B;return}function bv(f,g,h,j){f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0;q=i;i=i+368|0;p=q+8|0;y=q+344|0;N=q+340|0;v=q;o=q+336|0;B=q+332|0;w=q+328|0;ma=q+324|0;ua=q+320|0;C=q+316|0;A=q+312|0;E=q+308|0;m=q+304|0;n=q+300|0;u=q+296|0;r=q+292|0;l=q+288|0;Ea=q+284|0;Ja=q+280|0;x=q+276|0;oa=q+272|0;Ra=q+268|0;Xa=q+264|0;Fa=q+260|0;Ha=q+256|0;Ga=q+252|0;Ia=q+248|0;Na=q+244|0;Va=q+240|0;Pa=q+236|0;Qa=q+232|0;Ua=q+228|0;Wa=q+224|0;Sa=q+220|0;Oa=q+216|0;Ta=q+212|0;Aa=q+350|0;xa=q+208|0;sa=q+204|0;ta=q+200|0;ra=q+196|0;va=q+192|0;la=q+188|0;ya=q+184|0;qa=q+180|0;T=q+176|0;Ma=q+172|0;wa=q+168|0;za=q+164|0;Ba=q+355|0;ka=q+354|0;Da=q+353|0;Ka=q+160|0;La=q+352|0;na=q+156|0;Ca=q+152|0;pa=q+148|0;X=q+144|0;aa=q+140|0;W=q+136|0;P=q+132|0;ca=q+128|0;ea=q+124|0;ga=q+120|0;F=q+116|0;da=q+112|0;L=q+108|0;ja=q+104|0;ia=q+348|0;Z=q+100|0;ba=q+96|0;$=q+92|0;_=q+88|0;fa=q+84|0;ha=q+80|0;Y=q+76|0;S=q+72|0;O=q+68|0;R=q+64|0;Q=q+60|0;H=q+56|0;K=q+52|0;M=q+48|0;J=q+44|0;I=q+40|0;G=q+36|0;V=q+32|0;z=q+28|0;k=q+24|0;s=q+20|0;t=q+16|0;c[y>>2]=f;c[N>>2]=g;g=v;c[g>>2]=h;c[g+4>>2]=j;c[oa>>2]=0;c[Ra>>2]=0;c[u>>2]=c[c[y>>2]>>2];c[l>>2]=c[(c[u>>2]|0)+8>>2];c[m>>2]=(c[y>>2]|0)+328;c[r>>2]=c[c[u>>2]>>2];c[A>>2]=(c[y>>2]|0)+736+((c[N>>2]|0)*72|0);c[E>>2]=c[(c[A>>2]|0)+56>>2];c[Ea>>2]=(c[(c[y>>2]|0)+4>>2]|0)+8+((d[(c[A>>2]|0)+36>>0]|0)*72|0);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if(c[ya>>2]|0){c[wa>>2]=d[23616+((c[C>>2]<<1)+(c[va>>2]|0))>>0];We(c[l>>2]|0,c[wa>>2]|0,c[T>>2]|0,c[ma>>2]|0,c[xa>>2]|0,c[ya>>2]|0)|0}dv(c[A>>2]|0,c[sa>>2]|0);dv(c[A>>2]|0,c[ta>>2]|0);do if(!(c[ua>>2]|0)){if(!(d[(c[(c[qa>>2]|0)+12>>2]|0)+44>>0]&32)){g=(c[u>>2]|0)+72|0;f=(c[g>>2]|0)+1|0;c[g>>2]=f;c[oa>>2]=f;fp(c[l>>2]|0,112,c[T>>2]|0,c[oa>>2]|0)|0;jt(c[u>>2]|0,c[w>>2]|0,-1,c[oa>>2]|0);fp(c[l>>2]|0,66,c[w>>2]|0,c[oa>>2]|0)|0;break}if((c[w>>2]|0)==(c[T>>2]|0))break;c[pa>>2]=Zr(c[(c[qa>>2]|0)+12>>2]|0)|0;c[oa>>2]=ys(c[u>>2]|0,e[(c[pa>>2]|0)+50>>1]|0)|0;c[o>>2]=0;while(1){if((c[o>>2]|0)>=(e[(c[pa>>2]|0)+50>>1]|0))break;c[B>>2]=(Ds(c[qa>>2]|0,b[(c[(c[pa>>2]|0)+4>>2]|0)+(c[o>>2]<<1)>>1]|0)|0)<<16>>16;ip(c[l>>2]|0,47,c[T>>2]|0,c[B>>2]|0,(c[oa>>2]|0)+(c[o>>2]|0)|0)|0;c[o>>2]=(c[o>>2]|0)+1}We(c[l>>2]|0,68,c[w>>2]|0,c[x>>2]|0,c[oa>>2]|0,e[(c[pa>>2]|0)+50>>1]|0)|0}while(0);do if(!(c[(c[E>>2]|0)+36>>2]&4096)){B=(c[A>>2]|0)+37|0;if(c[C>>2]|0){a[B>>0]=8;break}else{a[B>>0]=9;break}}else a[(c[A>>2]|0)+37>>0]=-102;while(0);c[(c[A>>2]|0)+40>>2]=c[T>>2];a[(c[A>>2]|0)+38>>0]=(c[(c[E>>2]|0)+36>>2]&65536|0)!=0?1:0;if(c[(c[E>>2]|0)+36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;c[(c[m>>2]|0)+52>>2]=t;c[o>>2]=c[(c[m>>2]|0)+52>>2];t=(c[m>>2]|0)+48|0;if(!(c[o>>2]|0)){c[t>>2]=0;e=c[m>>2]|0;b=c[l>>2]|0;dv(e,b);b=c[k>>2]|0;i=q;return b|0}c[o>>2]=(c[o>>2]|0)+(((c[t>>2]|0)-1|0)*12|0);c[c[o>>2]>>2]=c[s>>2];t=c[n>>2]|0;u=c[s>>2]|0;s=c[k>>2]|0;if((c[r>>2]|0)==1){b=fp(t,103,u,s)|0;c[(c[o>>2]|0)+4>>2]=b}else{b=ip(t,47,u,0,s)|0;c[(c[o>>2]|0)+4>>2]=b}a[(c[o>>2]|0)+8>>0]=(c[p>>2]|0)!=0?6:7;Ir(c[n>>2]|0,76,c[k>>2]|0)|0;e=c[m>>2]|0;b=c[l>>2]|0;dv(e,b);b=c[k>>2]|0;i=q;return b|0}function dv(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0;f=i;i=i+16|0;j=f+8|0;g=f+4|0;h=f;c[j>>2]=b;c[g>>2]=e;if(!(c[g>>2]|0)){i=f;return}if((d[(c[g>>2]|0)+20>>0]|0)&4){i=f;return}if((c[c[j>>2]>>2]|0)!=0?(c[(c[c[g>>2]>>2]|0)+4>>2]&1|0)==0:0){i=f;return}e=(c[j>>2]|0)+64|0;b=(c[g>>2]|0)+40|0;if(!((c[e>>2]&c[b>>2]|0)==0?(c[e+4>>2]&c[b+4>>2]|0)==0:0)){i=f;return}b=(c[g>>2]|0)+20|0;a[b>>0]=d[b>>0]|0|4;if((c[(c[g>>2]|0)+4>>2]|0)<0){i=f;return}c[h>>2]=(c[(c[(c[g>>2]|0)+24>>2]|0)+20>>2]|0)+((c[(c[g>>2]|0)+4>>2]|0)*48|0);g=(c[h>>2]|0)+21|0;b=(a[g>>0]|0)+ -1<<24>>24;a[g>>0]=b;if(b&255){i=f;return}dv(c[j>>2]|0,c[h>>2]|0);i=f;return}function ev(d,f,g,h,j){d=d|0;f=f|0;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);c[q>>2]=e[x>>1];while(1){if((c[q>>2]|0)>=(e[w>>1]|0))break;c[r>>2]=c[(c[(c[p>>2]|0)+44>>2]|0)+(c[q>>2]<<2)>>2];c[v>>2]=cv(c[s>>2]|0,c[r>>2]|0,c[t>>2]|0,c[q>>2]|0,c[k>>2]|0,(c[n>>2]|0)+(c[q>>2]|0)|0)|0;do if((c[v>>2]|0)!=((c[n>>2]|0)+(c[q>>2]|0)|0))if((c[o>>2]|0)==1){lp(c[s>>2]|0,c[n>>2]|0);c[n>>2]=c[v>>2];break}else{fp(c[y>>2]|0,34,c[v>>2]|0,(c[n>>2]|0)+(c[q>>2]|0)|0)|0;break}while(0);if(!(e[(c[r>>2]|0)+18>>1]&129)){c[A>>2]=c[(c[c[r>>2]>>2]|0)+16>>2];if(Ps(c[A>>2]|0)|0)fp(c[y>>2]|0,76,(c[n>>2]|0)+(c[q>>2]|0)|0,c[(c[t>>2]|0)+12>>2]|0)|0;if(c[u>>2]|0){if(((kt(c[A>>2]|0,a[(c[u>>2]|0)+(c[q>>2]|0)>>0]|0)|0)<<24>>24|0)==65)a[(c[u>>2]|0)+(c[q>>2]|0)>>0]=65;if(fv(c[A>>2]|0,a[(c[u>>2]|0)+(c[q>>2]|0)>>0]|0)|0)a[(c[u>>2]|0)+(c[q>>2]|0)>>0]=65}}c[q>>2]=(c[q>>2]|0)+1}c[c[l>>2]>>2]=c[u>>2];i=m;return c[n>>2]|0}function fv(e,f){e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;h=i;i=i+16|0;g=h+4|0;k=h;j=h+9|0;l=h+8|0;c[k>>2]=e;a[j>>0]=f;a:do if((a[j>>0]|0)==65)c[g>>2]=1;else{while(1){if((d[c[k>>2]>>0]|0)==158)f=1;else f=(d[c[k>>2]>>0]|0)==157;e=c[k>>2]|0;if(!f)break;c[k>>2]=c[e+12>>2]}a[l>>0]=a[e>>0]|0;if((d[l>>0]|0)==159)a[l>>0]=a[(c[k>>2]|0)+38>>0]|0;switch(d[l>>0]|0){case 133:{if((a[j>>0]|0)==69)j=1;else j=(a[j>>0]|0)==67;c[g>>2]=j&1;break a};case 132:{if((a[j>>0]|0)==68)j=1;else j=(a[j>>0]|0)==67;c[g>>2]=j&1;break a};case 134:{c[g>>2]=1;break a};case 154:{if((b[(c[k>>2]|0)+32>>1]|0)<0)if((a[j>>0]|0)==68)j=1;else j=(a[j>>0]|0)==67;else j=0;c[g>>2]=j&1;break a};case 97:{c[g>>2]=(a[j>>0]|0)==66&1;break a};default:{c[g>>2]=0;break a}}}while(0);i=h;return c[g>>2]|0}function gv(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;m=i;i=i+32|0;g=m+16|0;j=m+12|0;k=m+8|0;l=m+4|0;h=m;c[g>>2]=b;c[j>>2]=d;c[k>>2]=e;c[l>>2]=f;c[h>>2]=c[(c[g>>2]|0)+8>>2];if(!(c[l>>2]|0)){i=m;return}while(1){if((c[k>>2]|0)<=0)break;if((a[c[l>>2]>>0]|0)!=65)break;c[k>>2]=(c[k>>2]|0)+ -1;c[j>>2]=(c[j>>2]|0)+1;c[l>>2]=(c[l>>2]|0)+1}while(1){if((c[k>>2]|0)>1)e=(a[(c[l>>2]|0)+((c[k>>2]|0)-1)>>0]|0)==65;else e=0;f=c[k>>2]|0;if(!e)break;c[k>>2]=f+ -1}if((f|0)<=0){i=m;return}fp(c[h>>2]|0,48,c[j>>2]|0,c[k>>2]|0)|0;bf(c[h>>2]|0,-1,c[l>>2]|0,c[k>>2]|0);Us(c[g>>2]|0,c[j>>2]|0,c[k>>2]|0);i=m;return}function hv(a,b,d,f,g,h,j){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;l=i;i=i+160|0;k=l+148|0;u=l+144|0;t=l+140|0;s=l+136|0;o=l;r=l+132|0;q=l+128|0;n=l+124|0;m=l+120|0;p=l+8|0;c[u>>2]=a;c[t>>2]=b;c[s>>2]=d;a=o;c[a>>2]=f;c[a+4>>2]=g;c[r>>2]=h;c[q>>2]=j;c[n>>2]=0;c[m>>2]=iv(p,c[u>>2]|0,c[t>>2]|0,c[s>>2]|0,c[r>>2]|0,c[q>>2]|0)|0;while(1){if(!(c[m>>2]|0)){h=10;break}t=(c[m>>2]|0)+32|0;u=o;if((c[t>>2]&c[u>>2]|0)==0?(c[t+4>>2]&c[u+4>>2]|0)==0:0){u=(c[m>>2]|0)+32|0;if((c[u>>2]|0)==0&(c[u+4>>2]|0)==0?((e[(c[m>>2]|0)+18>>1]|0)&2|0)!=0:0){h=6;break}if(!(c[n>>2]|0))c[n>>2]=c[m>>2]}c[m>>2]=jv(p)|0}if((h|0)==6){c[k>>2]=c[m>>2];u=c[k>>2]|0;i=l;return u|0}else if((h|0)==10){c[k>>2]=c[n>>2];u=c[k>>2]|0;i=l;return u|0}return 0}function iv(d,f,g,h,j,k){d=d|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;r=i;i=i+32|0;q=r+28|0;n=r+24|0;u=r+20|0;o=r+16|0;p=r+12|0;t=r+8|0;l=r+4|0;s=r;c[n>>2]=d;c[u>>2]=f;c[o>>2]=g;c[p>>2]=h;c[t>>2]=j;c[l>>2]=k;c[c[n>>2]>>2]=c[u>>2];c[(c[n>>2]|0)+4>>2]=c[u>>2];do if((c[l>>2]|0)!=0&(c[p>>2]|0)>=0){a[(c[n>>2]|0)+12>>0]=a[(c[(c[(c[l>>2]|0)+12>>2]|0)+4>>2]|0)+((c[p>>2]|0)*24|0)+21>>0]|0;c[s>>2]=0;while(1){j=c[s>>2]|0;k=c[l>>2]|0;if((b[(c[(c[l>>2]|0)+4>>2]|0)+(c[s>>2]<<1)>>1]|0)==(c[p>>2]|0)){m=7;break}if((j|0)>(e[k+52>>1]|0))break;c[s>>2]=(c[s>>2]|0)+1}if((m|0)==7){c[(c[n>>2]|0)+8>>2]=c[(c[k+32>>2]|0)+(j<<2)>>2];break}c[q>>2]=0;u=c[q>>2]|0;i=r;return u|0}else{a[(c[n>>2]|0)+12>>0]=0;c[(c[n>>2]|0)+8>>2]=0}while(0);c[(c[n>>2]|0)+16>>2]=c[t>>2];c[(c[n>>2]|0)+20>>2]=0;c[(c[n>>2]|0)+24>>2]=c[o>>2];c[(c[n>>2]|0)+28>>2]=c[p>>2];a[(c[n>>2]|0)+13>>0]=2;a[(c[n>>2]|0)+14>>0]=2;c[q>>2]=jv(c[n>>2]|0)|0;u=c[q>>2]|0;i=r;return u|0}function jv(f){f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;h=i;i=i+48|0;k=h+40|0;j=h+36|0;m=h+32|0;n=h+28|0;p=h+24|0;o=h+20|0;l=h+16|0;g=h+12|0;q=h+8|0;s=h+4|0;r=h;c[j>>2]=f;c[g>>2]=c[(c[j>>2]|0)+20>>2];a:while(1){if((d[(c[j>>2]|0)+14>>0]|0)>(d[(c[j>>2]|0)+13>>0]|0)){m=35;break}c[m>>2]=c[(c[j>>2]|0)+24+((d[(c[j>>2]|0)+14>>0]|0)-2<<2)>>2];c[n>>2]=c[(c[j>>2]|0)+24+((d[(c[j>>2]|0)+14>>0]|0)-1<<2)>>2];while(1){f=c[(c[j>>2]|0)+4>>2]|0;c[o>>2]=f;if(!f)break;c[l>>2]=(c[(c[o>>2]|0)+20>>2]|0)+((c[g>>2]|0)*48|0);while(1){if((c[g>>2]|0)>=(c[(c[o>>2]|0)+12>>2]|0))break;do if((c[(c[l>>2]|0)+8>>2]|0)==(c[m>>2]|0)?(c[(c[l>>2]|0)+12>>2]|0)==(c[n>>2]|0):0){if((d[(c[j>>2]|0)+14>>0]|0)>2?(c[(c[c[l>>2]>>2]|0)+4>>2]&1|0)!=0:0)break;if((e[(c[l>>2]|0)+18>>1]&1024|0)!=0?(d[(c[j>>2]|0)+13>>0]|0)<22:0){c[p>>2]=iq(c[(c[c[l>>2]>>2]|0)+16>>2]|0)|0;c[q>>2]=0;while(1){if((c[q>>2]|0)>=(d[(c[j>>2]|0)+13>>0]|0))break;if((c[(c[j>>2]|0)+24+(c[q>>2]<<2)>>2]|0)==(c[(c[p>>2]|0)+28>>2]|0)?(c[(c[j>>2]|0)+24+((c[q>>2]|0)+1<<2)>>2]|0)==(b[(c[p>>2]|0)+32>>1]|0):0)break;c[q>>2]=(c[q>>2]|0)+2}if((c[q>>2]|0)==(d[(c[j>>2]|0)+13>>0]|0)){c[(c[j>>2]|0)+24+(c[q>>2]<<2)>>2]=c[(c[p>>2]|0)+28>>2];c[(c[j>>2]|0)+24+((c[q>>2]|0)+1<<2)>>2]=b[(c[p>>2]|0)+32>>1];f=(c[j>>2]|0)+13|0;a[f>>0]=(d[f>>0]|0)+2}}if(e[(c[l>>2]|0)+18>>1]&c[(c[j>>2]|0)+16>>2]){if((c[(c[j>>2]|0)+8>>2]|0)!=0?(e[(c[l>>2]|0)+18>>1]&128|0)==0:0){c[r>>2]=c[c[c[o>>2]>>2]>>2];c[p>>2]=c[c[l>>2]>>2];if(!(mt(c[p>>2]|0,a[(c[j>>2]|0)+12>>0]|0)|0))break;c[s>>2]=at(c[r>>2]|0,c[(c[p>>2]|0)+12>>2]|0,c[(c[p>>2]|0)+16>>2]|0)|0;if(!(c[s>>2]|0))c[s>>2]=c[(c[c[r>>2]>>2]|0)+8>>2];if(xc(c[c[s>>2]>>2]|0,c[(c[j>>2]|0)+8>>2]|0)|0)break}if(!(e[(c[l>>2]|0)+18>>1]&2)){m=31;break a}f=c[(c[c[l>>2]>>2]|0)+16>>2]|0;c[p>>2]=f;if((d[f>>0]|0)!=154){m=31;break a}if((c[(c[p>>2]|0)+28>>2]|0)!=(c[(c[j>>2]|0)+24>>2]|0)){m=31;break a}if((b[(c[p>>2]|0)+32>>1]|0)!=(c[(c[j>>2]|0)+28>>2]|0)){m=31;break a}}}while(0);c[g>>2]=(c[g>>2]|0)+1;c[l>>2]=(c[l>>2]|0)+48}c[(c[j>>2]|0)+4>>2]=c[(c[(c[j>>2]|0)+4>>2]|0)+4>>2];c[g>>2]=0}c[(c[j>>2]|0)+4>>2]=c[c[j>>2]>>2];c[g>>2]=0;f=(c[j>>2]|0)+14|0;a[f>>0]=(d[f>>0]|0)+2}if((m|0)==31){c[(c[j>>2]|0)+20>>2]=(c[g>>2]|0)+1;c[k>>2]=c[l>>2];s=c[k>>2]|0;i=h;return s|0}else if((m|0)==35){c[k>>2]=0;s=c[k>>2]|0;i=h;return s|0}return 0}function kv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=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;k=i;i=i+64|0;t=k;g=k+44|0;o=k+40|0;v=k+36|0;u=k+32|0;s=k+50|0;r=k+48|0;h=k+28|0;n=k+24|0;p=k+20|0;m=k+16|0;q=k+12|0;l=k+8|0;j=k+4|0;c[g>>2]=a;c[o>>2]=d;c[v>>2]=f;c[u>>2]=c[(c[o>>2]|0)+28>>2];b[s>>1]=b[(c[o>>2]|0)+24>>1]|0;b[r>>1]=b[(c[o>>2]|0)+26>>1]|0;c[p>>2]=c[(c[v>>2]|0)+4>>2];c[m>>2]=c[(c[u>>2]|0)+4>>2];if((e[s>>1]|0)==0?(c[(c[o>>2]|0)+36>>2]&48|0)==0:0){i=k;return}Vm(c[g>>2]|0,23928,2);c[h>>2]=0;while(1){f=c[h>>2]|0;if((c[h>>2]|0)>=(e[s>>1]|0))break;if((b[(c[m>>2]|0)+(f<<1)>>1]|0)<0)f=9992;else f=c[(c[p>>2]|0)+((b[(c[m>>2]|0)+(c[h>>2]<<1)>>1]|0)*24|0)>>2]|0;c[q>>2]=f;if((c[h>>2]|0)>=(e[r>>1]|0))lv(c[g>>2]|0,c[h>>2]|0,c[q>>2]|0,23936);else{if(c[h>>2]|0)Vm(c[g>>2]|0,23944,5);v=c[g>>2]|0;c[t>>2]=c[q>>2];kn(v,0,23952,t)}c[h>>2]=(c[h>>2]|0)+1}c[n>>2]=f;if(c[(c[o>>2]|0)+36>>2]&32){if((b[(c[m>>2]|0)+(c[n>>2]<<1)>>1]|0)<0)q=9992;else q=c[(c[p>>2]|0)+((b[(c[m>>2]|0)+(c[n>>2]<<1)>>1]|0)*24|0)>>2]|0;c[l>>2]=q;u=c[g>>2]|0;v=c[h>>2]|0;c[h>>2]=v+1;lv(u,v,c[l>>2]|0,23960)}if(c[(c[o>>2]|0)+36>>2]&16){if((b[(c[m>>2]|0)+(c[n>>2]<<1)>>1]|0)<0)l=9992;else l=c[(c[p>>2]|0)+((b[(c[m>>2]|0)+(c[n>>2]<<1)>>1]|0)*24|0)>>2]|0;c[j>>2]=l;lv(c[g>>2]|0,c[h>>2]|0,c[j>>2]|0,23968)}Vm(c[g>>2]|0,23976,1);i=k;return}function lv(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;f=i;i=i+16|0;g=f+12|0;k=f+8|0;j=f+4|0;h=f;c[g>>2]=a;c[k>>2]=b;c[j>>2]=d;c[h>>2]=e;if(c[k>>2]|0)Vm(c[g>>2]|0,23944,5);ss(c[g>>2]|0,c[j>>2]|0);Vm(c[g>>2]|0,c[h>>2]|0,1);Vm(c[g>>2]|0,19016,1);i=f;return}function mv(b,d,f,g){b=b|0;d=d|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;j=h+16|0;l=h+12|0;k=h+8|0;n=h;m=h+20|0;c[l>>2]=b;c[k>>2]=d;b=n;c[b>>2]=f;c[b+4>>2]=g;if((c[(c[l>>2]|0)+8>>2]|0)!=(c[(c[k>>2]|0)+40>>2]|0)){c[j>>2]=0;b=c[j>>2]|0;i=h;return b|0}if(!((e[(c[l>>2]|0)+18>>1]|0)&2)){c[j>>2]=0;b=c[j>>2]|0;i=h;return b|0}d=(c[l>>2]|0)+32|0;b=n;if((c[d>>2]&c[b>>2]|0)!=0?1:(c[d+4>>2]&c[b+4>>2]|0)!=0){c[j>>2]=0;b=c[j>>2]|0;i=h;return b|0}if((c[(c[l>>2]|0)+12>>2]|0)<0){c[j>>2]=0;b=c[j>>2]|0;i=h;return b|0}a[m>>0]=a[(c[(c[(c[k>>2]|0)+16>>2]|0)+4>>2]|0)+((c[(c[l>>2]|0)+12>>2]|0)*24|0)+21>>0]|0;if(mt(c[c[l>>2]>>2]|0,a[m>>0]|0)|0){c[j>>2]=1;b=c[j>>2]|0;i=h;return b|0}else{c[j>>2]=0;b=c[j>>2]|0;i=h;return b|0}return 0}function nv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;h=g+16|0;m=g+12|0;k=g+8|0;l=g+4|0;j=g;c[m>>2]=a;c[k>>2]=d;c[l>>2]=f;if((e[(c[k>>2]|0)+42>>1]|0|0)>=(c[l>>2]|0)){c[h>>2]=0;a=c[h>>2]|0;i=g;return a|0}c[l>>2]=(c[l>>2]|0)+7&-8;c[j>>2]=Qe(c[m>>2]|0,c[l>>2]<<2,0)|0;if(!(c[j>>2]|0)){c[h>>2]=7;a=c[h>>2]|0;i=g;return a|0}dF(c[j>>2]|0,c[(c[k>>2]|0)+44>>2]|0,(e[(c[k>>2]|0)+42>>1]|0)<<2|0)|0;if((c[(c[k>>2]|0)+44>>2]|0)!=((c[k>>2]|0)+52|0))Xb(c[m>>2]|0,c[(c[k>>2]|0)+44>>2]|0);c[(c[k>>2]|0)+44>>2]=c[j>>2];b[(c[k>>2]|0)+42>>1]=c[l>>2];c[h>>2]=0;a=c[h>>2]|0;i=g;return a|0}function ov(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;i=i+32|0;n=g+20|0;k=g+24|0;o=g+16|0;m=g+12|0;h=g+8|0;l=g+4|0;j=g;c[n>>2]=a;b[k>>1]=d;c[o>>2]=e;c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=c[l>>2]|k;c[a+4>>2]=b;a:do if(c[h>>2]|0){c[f>>2]=0;while(1){if((c[f>>2]|0)>=(c[c[h>>2]>>2]|0))break a;k=qv(c[j>>2]|0,c[(c[h>>2]|0)+8+((c[f>>2]|0)*72|0)+20>>2]|0)|0;l=d;b=c[l+4>>2]|D;a=d;c[a>>2]=c[l>>2]|k;c[a+4>>2]=b;a=pv(c[j>>2]|0,c[(c[h>>2]|0)+8+((c[f>>2]|0)*72|0)+44>>2]|0)|0;b=d;k=c[b+4>>2]|D;l=d;c[l>>2]=c[b>>2]|a;c[l+4>>2]=k;c[f>>2]=(c[f>>2]|0)+1}}while(0);c[g>>2]=c[(c[g>>2]|0)+52>>2]}l=d;D=c[l+4>>2]|0;i=e;return c[l>>2]|0}function rv(a,c){a=a|0;c=c|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+4|0;g=e+2|0;h=e;b[g>>1]=a;b[h>>1]=c;if((b[g>>1]|0)>=(b[h>>1]|0)){c=b[g>>1]|0;if((b[g>>1]|0)>((b[h>>1]|0)+49|0)){b[f>>1]=c;a=b[f>>1]|0;i=e;return a|0}a=b[g>>1]|0;if((c<<16>>16|0)>((b[h>>1]|0)+31|0)){b[f>>1]=a+1;a=b[f>>1]|0;i=e;return a|0}else{b[f>>1]=a+(d[24056+((b[g>>1]|0)-(b[h>>1]|0))>>0]|0);a=b[f>>1]|0;i=e;return a|0}}else{c=b[h>>1]|0;if((b[h>>1]|0)>((b[g>>1]|0)+49|0)){b[f>>1]=c;a=b[f>>1]|0;i=e;return a|0}a=b[h>>1]|0;if((c<<16>>16|0)>((b[g>>1]|0)+31|0)){b[f>>1]=a+1;a=b[f>>1]|0;i=e;return a|0}else{b[f>>1]=a+(d[24056+((b[h>>1]|0)-(b[g>>1]|0))>>0]|0);a=b[f>>1]|0;i=e;return a|0}}return 0}function sv(f,g,h,j,k,l,m){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=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D;f=r;c[f>>2]=c[j>>2]|h;c[f+4>>2]=g}while(0);c[p>>2]=(c[p>>2]|0)+1}if(!(c[(c[x>>2]|0)+36>>2]&4096)){if(c[(c[x>>2]|0)+36>>2]&256){c[w>>2]=0;b[R>>1]=0;b[z>>1]=1}else{f=c[(c[x>>2]|0)+28>>2]|0;c[w>>2]=f;if(!f){n=38;break}if((d[(c[w>>2]|0)+55>>0]|0)>>>2&1){n=38;break}b[R>>1]=b[(c[w>>2]|0)+50>>1]|0;b[z>>1]=b[(c[w>>2]|0)+52>>1]|0;a[u>>0]=(d[(c[w>>2]|0)+54>>0]|0)!=0}a[M>>0]=0;a[t>>0]=0;a[Q>>0]=0;c[y>>2]=0;while(1){if((c[y>>2]|0)>=(e[z>>1]|0))break;if(((c[y>>2]|0)<(e[(c[x>>2]|0)+24>>1]|0)?(e[(c[x>>2]|0)+26>>1]|0)==0:0)?(f=e[(c[(c[(c[x>>2]|0)+44>>2]|0)+(c[y>>2]<<2)>>2]|0)+18>>1]|0,c[p>>2]=f,(f&130|0)!=0):0){if(c[p>>2]&128)a[u>>0]=0}else{if(c[w>>2]|0){c[A>>2]=b[(c[(c[w>>2]|0)+4>>2]|0)+(c[y>>2]<<1)>>1];a[B>>0]=a[(c[(c[w>>2]|0)+28>>2]|0)+(c[y>>2]|0)>>0]|0;if((c[A>>2]|0)==(b[(c[(c[w>>2]|0)+12>>2]|0)+36>>1]|0))c[A>>2]=-1}else{c[A>>2]=-1;a[B>>0]=0}do if((d[u>>0]|0)!=0&(c[A>>2]|0)>=0?(c[y>>2]|0)>=(e[(c[x>>2]|0)+24>>1]|0):0){if(d[(c[(c[(c[w>>2]|0)+12>>2]|0)+4>>2]|0)+((c[A>>2]|0)*24|0)+20>>0]|0)break;a[u>>0]=0}while(0);a[C>>0]=1;a[E>>0]=0;c[p>>2]=0;a:while(1){if(!(d[C>>0]|0))break;if((c[p>>2]|0)>=(e[N>>1]|0))break;g=$E(1,0,c[p>>2]|0)|0;f=r;do if(!((g&c[f>>2]|0)!=0?1:(D&c[f+4>>2]|0)!=0)){c[G>>2]=iq(c[(c[(c[F>>2]|0)+4>>2]|0)+((c[p>>2]|0)*20|0)>>2]|0)|0;if(!(e[H>>1]&768))a[C>>0]=0;if((d[c[G>>2]>>0]|0)!=154)break;if((c[(c[G>>2]|0)+28>>2]|0)!=(c[I>>2]|0))break;if((b[(c[G>>2]|0)+32>>1]|0)!=(c[A>>2]|0))break;if((c[A>>2]|0)<0){n=68;break a}c[K>>2]=cq(c[c[J>>2]>>2]|0,c[(c[(c[F>>2]|0)+4>>2]|0)+((c[p>>2]|0)*20|0)>>2]|0)|0;if(!(c[K>>2]|0))c[K>>2]=c[(c[L>>2]|0)+8>>2];if(!(xc(c[c[K>>2]>>2]|0,c[(c[(c[w>>2]|0)+32>>2]|0)+(c[y>>2]<<2)>>2]|0)|0)){n=68;break a}}while(0);c[p>>2]=(c[p>>2]|0)+1}if((n|0)==68){n=0;a[E>>0]=1}do if(d[E>>0]|0){if(e[H>>1]&256)break;if(a[M>>0]|0){if((d[t>>0]^d[B>>0]|0)==(d[(c[(c[F>>2]|0)+4>>2]|0)+((c[p>>2]|0)*20|0)+12>>0]|0))break;a[E>>0]=0;break}a[t>>0]=d[B>>0]^d[(c[(c[F>>2]|0)+4>>2]|0)+((c[p>>2]|0)*20|0)+12>>0];if(a[t>>0]|0){h=$E(1,0,c[O>>2]|0)|0;f=c[P>>2]|0;j=f;g=c[j+4>>2]|D;c[f>>2]=c[j>>2]|h;c[f+4>>2]=g}a[M>>0]=1}while(0);if(!(a[E>>0]|0)){n=82;break}if((c[A>>2]|0)<0)a[Q>>0]=1;h=$E(1,0,c[p>>2]|0)|0;j=r;g=c[j+4>>2]|D;f=r;c[f>>2]=c[j>>2]|h;c[f+4>>2]=g}c[y>>2]=(c[y>>2]|0)+1}do if((n|0)==82){n=0;if((c[y>>2]|0)!=0?(c[y>>2]|0)>=(e[R>>1]|0):0)break;a[u>>0]=0}while(0);if(a[Q>>0]|0)a[u>>0]=1}b:do if(a[u>>0]|0){h=(c[x>>2]|0)+8|0;j=S;g=c[j+4>>2]|c[h+4>>2];f=S;c[f>>2]=c[j>>2]|c[h>>2];c[f+4>>2]=g;c[p>>2]=0;while(1){if((c[p>>2]|0)>=(e[N>>1]|0))break b;g=$E(1,0,c[p>>2]|0)|0;f=r;do if(!((g&c[f>>2]|0)!=0?1:(D&c[f+4>>2]|0)!=0)){c[_>>2]=c[(c[(c[F>>2]|0)+4>>2]|0)+((c[p>>2]|0)*20|0)>>2];g=pv((c[J>>2]|0)+68|0,c[_>>2]|0)|0;f=$;c[f>>2]=g;c[f+4>>2]=D;f=$;if((c[f>>2]|0)==0&(c[f+4>>2]|0)==0?(Vs(c[_>>2]|0)|0)==0:0)break;g=$;f=S;if((c[g>>2]&~c[f>>2]|0)==0?(c[g+4>>2]&~c[f+4>>2]|0)==0:0){h=$E(1,0,c[p>>2]|0)|0;j=r;g=c[j+4>>2]|D;f=r;c[f>>2]=c[j>>2]|h;c[f+4>>2]=g}}while(0);c[p>>2]=(c[p>>2]|0)+1}}while(0);c[O>>2]=(c[O>>2]|0)+1}if((n|0)==16){if(a[m+29>>0]|0){h=v;g=c[h+4>>2]|0;f=r;c[f>>2]=c[h>>2];c[f+4>>2]=g}}else if((n|0)==38){a[o>>0]=0;f=a[o>>0]|0;i=s;return f|0}g=r;f=v;if((c[g>>2]|0)==(c[f>>2]|0)?(c[g+4>>2]|0)==(c[f+4>>2]|0):0){a[o>>0]=b[N>>1];f=a[o>>0]|0;i=s;return f|0}if(a[u>>0]|0){a[o>>0]=-1;f=a[o>>0]|0;i=s;return f|0}c[p>>2]=(e[N>>1]|0)-1;while(1){if((c[p>>2]|0)<=0){n=106;break}g=$E(1,0,c[p>>2]|0)|0;g=ZE(g|0,D|0,1,0)|0;h=q;c[h>>2]=g;c[h+4>>2]=D;h=r;g=q;f=q;t=c[p>>2]|0;if((c[h>>2]&c[g>>2]|0)==(c[f>>2]|0)?(c[h+4>>2]&c[g+4>>2]|0)==(c[f+4>>2]|0):0){n=104;break}c[p>>2]=t+ -1}if((n|0)==104){a[o>>0]=t;f=a[o>>0]|0;i=s;return f|0}else if((n|0)==106){a[o>>0]=0;f=a[o>>0]|0;i=s;return f|0}return 0}function tv(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0;h=i;i=i+32|0;k=h+8|0;m=h+16|0;n=h+4|0;o=h;l=h+14|0;j=h+12|0;c[k>>2]=a;b[m>>1]=d;c[n>>2]=f;c[o>>2]=g;a=(((c[n>>2]|0)-(c[o>>2]|0)|0)*100|0)/(c[n>>2]|0)|0;b[l>>1]=((dq(a,((a|0)<0)<<31>>31)|0)<<16>>16)-66;a=b[m>>1]|0;a=a+((uv(b[m>>1]|0)|0)<<16>>16)|0;b[j>>1]=a+(b[l>>1]|0)+16;if(!(e[(c[k>>2]|0)+34>>1]&1024)){o=b[j>>1]|0;i=h;return o|0}b[j>>1]=(b[j>>1]|0)+16;o=b[j>>1]|0;i=h;return o|0}function uv(a){a=a|0;var c=0,d=0;c=i;i=i+16|0;d=c;b[d>>1]=a;if((b[d>>1]|0)<=10){d=0;d=d&65535;i=c;return d|0}d=b[d>>1]|0;d=((dq(d,((d|0)<0)<<31>>31)|0)<<16>>16)-33|0;d=d&65535;i=c;return d|0}function vv(f,g,j){f=f|0;g=g|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;y=i;i=i+112|0;H=y+8|0;m=y+96|0;r=y+92|0;k=y;J=y+88|0;z=y+84|0;C=y+80|0;I=y+76|0;A=y+72|0;n=y+68|0;o=y+64|0;x=y+60|0;v=y+56|0;D=y+52|0;t=y+48|0;B=y+44|0;w=y+40|0;s=y+36|0;u=y+32|0;F=y+28|0;G=y+24|0;E=y+20|0;q=y+16|0;p=y+12|0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|0)+32>>2]|0);a[(c[q>>2]|0)+28>>0]=0}}c[E>>2]=(c[E>>2]|0)+1}if((l|0)==36){c[p>>2]=1;J=c[z>>2]|0;c[H>>2]=c[c[A>>2]>>2];Se(J,24088,H)}if(c[(c[o>>2]|0)+28>>2]|0)hc(c[(c[o>>2]|0)+24>>2]|0);Xb(c[n>>2]|0,c[o>>2]|0);c[m>>2]=c[p>>2];J=c[m>>2]|0;i=y;return J|0}function wv(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0;k=i;i=i+144|0;n=k+128|0;m=k+8|0;r=k+124|0;v=k+120|0;A=k+64|0;C=k+140|0;B=k+136|0;F=k+56|0;o=k+52|0;z=k+48|0;j=k+44|0;s=k+40|0;p=k+36|0;t=k+134|0;x=k+132|0;q=k+32|0;u=k+28|0;E=k+24|0;w=k+20|0;y=k+16|0;l=k;c[n>>2]=f;f=m;c[f>>2]=g;c[f+4>>2]=h;b[B>>1]=-1;c[j>>2]=0;c[s>>2]=1;c[z>>2]=c[(c[n>>2]|0)+12>>2];c[r>>2]=c[c[n>>2]>>2];c[F>>2]=c[(c[r>>2]|0)+4>>2];c[o>>2]=(c[F>>2]|0)+8+((d[(c[z>>2]|0)+16>>0]|0)*72|0);c[u>>2]=c[(c[o>>2]|0)+16>>2];c[q>>2]=c[(c[n>>2]|0)+4>>2];do if(c[(c[o>>2]|0)+68>>2]|0)c[v>>2]=c[(c[o>>2]|0)+68>>2];else{if(d[(c[u>>2]|0)+44>>0]&32){c[v>>2]=c[(c[u>>2]|0)+8>>2];break}g=A+0|0;h=g+56|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));b[A+50>>1]=1;b[A+52>>1]=1;c[A+4>>2]=B;c[A+8>>2]=C;a[A+54>>0]=5;c[A+12>>2]=c[u>>2];b[A+48>>1]=b[(c[u>>2]|0)+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F>>2]=0;c[F+4>>2]=0}else{f=(c[o>>2]|0)+56|0;h=c[f>>2]|0;f=c[f+4>>2]|0;g=Iv(c[v>>2]|0)|0;F=l;c[F>>2]=h&~g;c[F+4>>2]=f&~D;F=l;c[(c[z>>2]|0)+36>>2]=(c[F>>2]|0)==0&(c[F+4>>2]|0)==0?576:512}if((c[p>>2]|0)==0?(d[(c[u>>2]|0)+44>>0]&32|0)==0:0){F=l;if(!((c[F>>2]|0)==0&(c[F+4>>2]|0)==0))break;if((d[(c[v>>2]|0)+55>>0]|0)>>>2&1)break;if((b[(c[v>>2]|0)+48>>1]|0)>=(b[(c[u>>2]|0)+42>>1]|0))break;if(e[(c[r>>2]|0)+34>>1]&4)break;if(!(c[9664]|0))break;if(e[(c[c[c[r>>2]>>2]>>2]|0)+60>>1]&64)break}a[(c[z>>2]|0)+17>>0]=(c[p>>2]|0)!=0?c[s>>2]|0:0;b[(c[z>>2]|0)+20>>1]=(b[t>>1]|0)+1+(((b[(c[v>>2]|0)+48>>1]|0)*15|0)/(b[(c[u>>2]|0)+42>>1]|0)|0);F=l;if((c[F>>2]|0)!=0|(c[F+4>>2]|0)!=0){F=rv(b[(c[z>>2]|0)+20>>1]|0,(b[t>>1]|0)+16&65535)|0;b[(c[z>>2]|0)+20>>1]=F}Hv(c[q>>2]|0,c[z>>2]|0,b[t>>1]|0);c[j>>2]=Av(c[n>>2]|0,c[z>>2]|0)|0;b[(c[z>>2]|0)+22>>1]=b[t>>1]|0;if(c[j>>2]|0){l=47;break b}}while(0);c[j>>2]=Jv(c[n>>2]|0,c[o>>2]|0,c[v>>2]|0,0)|0;if(c[(c[o>>2]|0)+68>>2]|0){l=47;break}}c[v>>2]=c[(c[v>>2]|0)+20>>2];c[s>>2]=(c[s>>2]|0)+1}if((l|0)==47){i=k;return c[j>>2]|0}return 0}function xv(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;t=i;i=i+672|0;x=t+660|0;l=t+576|0;F=t+656|0;p=t+652|0;m=t+648|0;q=t+644|0;s=t+640|0;r=t+636|0;o=t+632|0;B=t+168|0;y=t+612|0;D=t+112|0;j=t+56|0;n=t+608|0;u=t+604|0;v=t+600|0;A=t+596|0;w=t+592|0;C=t+588|0;E=t+584|0;z=t;c[x>>2]=f;f=l;c[f>>2]=g;c[f+4>>2]=h;c[F>>2]=c[c[x>>2]>>2];c[r>>2]=0;c[p>>2]=c[(c[x>>2]|0)+4>>2];c[s>>2]=(c[(c[p>>2]|0)+20>>2]|0)+((c[(c[p>>2]|0)+12>>2]|0)*48|0);c[m>>2]=c[(c[x>>2]|0)+12>>2];g=D+0|0;h=g+56|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(h|0));c[n>>2]=(c[(c[F>>2]|0)+4>>2]|0)+8+((d[(c[m>>2]|0)+16>>0]|0)*72|0);c[o>>2]=c[(c[n>>2]|0)+40>>2];c[q>>2]=c[(c[p>>2]|0)+20>>2];while(1){if(!((c[r>>2]|0)==0?(c[q>>2]|0)>>>0<(c[s>>2]|0)>>>0:0))break;a:do if((e[(c[q>>2]|0)+18>>1]&256|0)!=0?(g=(c[(c[q>>2]|0)+12>>2]|0)+408|0,f=(c[m>>2]|0)+8|0,(c[g>>2]&c[f>>2]|0)!=0?1:(c[g+4>>2]&c[f+4>>2]|0)!=0):0){c[u>>2]=c[(c[q>>2]|0)+12>>2];c[v>>2]=(c[(c[u>>2]|0)+20>>2]|0)+((c[(c[u>>2]|0)+12>>2]|0)*48|0);c[w>>2]=1;f=c[x>>2]|0;c[y+0>>2]=c[f+0>>2];c[y+4>>2]=c[f+4>>2];c[y+8>>2]=c[f+8>>2];c[y+12>>2]=c[f+12>>2];c[y+16>>2]=c[f+16>>2];c[y+8>>2]=0;c[y+16>>2]=j;c[A>>2]=c[(c[u>>2]|0)+20>>2];b:while(1){if((c[A>>2]|0)>>>0>=(c[v>>2]|0)>>>0)break;F=c[A>>2]|0;if(!(e[(c[A>>2]|0)+18>>1]&512)){if((c[F+8>>2]|0)==(c[o>>2]|0)){c[B>>2]=c[c[p>>2]>>2];c[B+4>>2]=c[p>>2];a[B+8>>0]=72;c[B+12>>2]=1;c[B+20>>2]=c[A>>2];c[y+4>>2]=B;k=11}}else{c[y+4>>2]=c[F+12>>2];k=11}c:do if((k|0)==11){k=0;b[j>>1]=0;F=l;h=c[F>>2]|0;F=c[F+4>>2]|0;if(d[(c[(c[n>>2]|0)+16>>2]|0)+44>>0]&16)c[r>>2]=vv(y,h,F)|0;else c[r>>2]=wv(y,h,F)|0;if(!(c[r>>2]|0)){f=l;c[r>>2]=xv(y,c[f>>2]|0,c[f+4>>2]|0)|0}if(!(e[j>>1]|0)){k=17;break b}if(c[w>>2]|0){yv(D,j);c[w>>2]=0;break}yv(z,D);b[D>>1]=0;c[C>>2]=0;while(1){if((c[C>>2]|0)>=(e[z>>1]|0))break c;c[E>>2]=0;while(1){F=c[C>>2]|0;if((c[E>>2]|0)>=(e[j>>1]|0))break;f=z+8+(F<<4)|0;g=j+8+(c[E>>2]<<4)|0;h=c[f>>2]|c[g>>2];g=c[f+4>>2]|c[g+4>>2];f=rv(b[z+8+(c[C>>2]<<4)+8>>1]|0,b[j+8+(c[E>>2]<<4)+8>>1]|0)|0;zv(D,h,g,f,rv(b[z+8+(c[C>>2]<<4)+10>>1]|0,b[j+8+(c[E>>2]<<4)+10>>1]|0)|0)|0;c[E>>2]=(c[E>>2]|0)+1}c[C>>2]=F+1}}while(0);c[A>>2]=(c[A>>2]|0)+48}if((k|0)==17){k=0;b[D>>1]=0}b[(c[m>>2]|0)+40>>1]=1;c[c[(c[m>>2]|0)+44>>2]>>2]=c[q>>2];c[(c[m>>2]|0)+36>>2]=8192;b[(c[m>>2]|0)+18>>1]=0;a[(c[m>>2]|0)+17>>0]=0;f=(c[m>>2]|0)+24|0;c[f+0>>2]=0;c[f+4>>2]=0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4>>2]&c[d+4>>2]|0)==(c[a+4>>2]|0):0):0){r=7;break}b[j>>1]=(b[j>>1]|0)+ -1<<16>>16;c[m>>2]=(c[m>>2]|0)+16}if((r|0)==7){c[q>>2]=0;a=c[q>>2]|0;i=k;return a|0}do if((r|0)==9){r=c[p>>2]|0;if((e[c[p>>2]>>1]|0)<3){a=b[r>>1]|0;b[r>>1]=a+1<<16>>16;c[m>>2]=(c[p>>2]|0)+8+((a&65535)<<4);b[(c[m>>2]|0)+10>>1]=b[l>>1]|0;break}c[m>>2]=r+8;b[j>>1]=1;while(1){r=b[(c[m>>2]|0)+8>>1]|0;if((e[j>>1]|0)>=(e[c[p>>2]>>1]|0))break;if((r|0)>(b[(c[p>>2]|0)+8+(e[j>>1]<<4)+8>>1]|0))c[m>>2]=(c[p>>2]|0)+8+(e[j>>1]<<4);b[j>>1]=(b[j>>1]|0)+1<<16>>16}if((r|0)<=(b[o>>1]|0)){c[q>>2]=0;a=c[q>>2]|0;i=k;return a|0}}while(0);f=n;d=c[f+4>>2]|0;a=c[m>>2]|0;c[a>>2]=c[f>>2];c[a+4>>2]=d;b[(c[m>>2]|0)+8>>1]=b[o>>1]|0;if((b[(c[m>>2]|0)+10>>1]|0)>(b[l>>1]|0))b[(c[m>>2]|0)+10>>1]=b[l>>1]|0;c[q>>2]=1;a=c[q>>2]|0;i=k;return a|0}function Av(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;k=i;i=i+48|0;f=k+36|0;h=k+32|0;g=k+28|0;l=k+24|0;e=k+20|0;p=k+16|0;j=k+12|0;n=k+8|0;o=k+4|0;m=k;c[h>>2]=a;c[g>>2]=d;c[p>>2]=c[c[h>>2]>>2];c[j>>2]=c[c[c[p>>2]>>2]>>2];if(c[(c[h>>2]|0)+16>>2]|0){a=c[g>>2]|0;zv(c[(c[h>>2]|0)+16>>2]|0,c[a>>2]|0,c[a+4>>2]|0,b[(c[g>>2]|0)+20>>1]|0,b[(c[g>>2]|0)+22>>1]|0)|0;c[f>>2]=0;a=c[f>>2]|0;i=k;return a|0}Bv(c[(c[p>>2]|0)+16>>2]|0,c[g>>2]|0);c[l>>2]=Cv((c[p>>2]|0)+16|0,c[g>>2]|0)|0;if(!(c[l>>2]|0)){c[f>>2]=0;a=c[f>>2]|0;i=k;return a|0}c[e>>2]=c[c[l>>2]>>2];a:do if(!(c[e>>2]|0)){a=Qe(c[j>>2]|0,72,0)|0;c[e>>2]=a;c[c[l>>2]>>2]=a;if(c[e>>2]|0){Ou(c[e>>2]|0);c[(c[e>>2]|0)+48>>2]=0;break}c[f>>2]=7;a=c[f>>2]|0;i=k;return a|0}else{c[n>>2]=(c[e>>2]|0)+48;while(1){if(!(c[c[n>>2]>>2]|0))break a;c[n>>2]=Cv(c[n>>2]|0,c[g>>2]|0)|0;if(!(c[n>>2]|0))break a;c[o>>2]=c[c[n>>2]>>2];if(!(c[o>>2]|0))break a;c[c[n>>2]>>2]=c[(c[o>>2]|0)+48>>2];Lu(c[j>>2]|0,c[o>>2]|0)}}while(0);Dv(c[j>>2]|0,c[e>>2]|0,c[g>>2]|0)|0;if(((c[(c[e>>2]|0)+36>>2]&1024|0)==0?(c[m>>2]=c[(c[e>>2]|0)+28>>2],(c[m>>2]|0)!=0):0)?(c[(c[m>>2]|0)+44>>2]|0)==0:0)c[(c[e>>2]|0)+28>>2]=0;c[f>>2]=0;a=c[f>>2]|0;i=k;return a|0}function Bv(a,e){a=a|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+16|0;g=f+4|0;h=f;c[g>>2]=a;c[h>>2]=e;if(!(c[(c[h>>2]|0)+36>>2]&512)){i=f;return}if(!((c[g>>2]|0)!=0?(c[(c[h>>2]|0)+36>>2]&32768|0)==0:0)){i=f;return}do{do if(((d[(c[g>>2]|0)+16>>0]|0)==(d[(c[h>>2]|0)+16>>0]|0)?(c[(c[g>>2]|0)+36>>2]&512|0)!=0:0)?(c[(c[g>>2]|0)+36>>2]&32768|0)==0:0){if(Ev(c[g>>2]|0,c[h>>2]|0)|0){b[(c[h>>2]|0)+20>>1]=b[(c[g>>2]|0)+20>>1]|0;b[(c[h>>2]|0)+22>>1]=(b[(c[g>>2]|0)+22>>1]|0)-1;break}if(Ev(c[h>>2]|0,c[g>>2]|0)|0){b[(c[h>>2]|0)+20>>1]=b[(c[g>>2]|0)+20>>1]|0;b[(c[h>>2]|0)+22>>1]=(b[(c[g>>2]|0)+22>>1]|0)+1}}while(0);c[g>>2]=c[(c[g>>2]|0)+48>>2]}while((c[g>>2]|0)!=0);i=f;return}function Cv(a,e){a=a|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;h=i;i=i+16|0;g=h+12|0;f=h+8|0;k=h+4|0;j=h;c[f>>2]=a;c[k>>2]=e;c[j>>2]=c[c[f>>2]>>2];while(1){if(!(c[j>>2]|0)){e=18;break}if((d[(c[j>>2]|0)+16>>0]|0)==(d[(c[k>>2]|0)+16>>0]|0)?(d[(c[j>>2]|0)+17>>0]|0)==(d[(c[k>>2]|0)+17>>0]|0):0){if((((c[(c[j>>2]|0)+36>>2]&16384|0)!=0?(c[(c[k>>2]|0)+36>>2]&512|0)!=0:0)?(c[(c[k>>2]|0)+36>>2]&1|0)!=0:0)?(l=c[j>>2]|0,e=c[k>>2]|0,a=c[k>>2]|0,(c[l>>2]&c[e>>2]|0)==(c[a>>2]|0)?(c[l+4>>2]&c[e+4>>2]|0)==(c[a+4>>2]|0):0):0){e=18;break}e=c[j>>2]|0;a=c[k>>2]|0;l=c[j>>2]|0;if(((((c[e>>2]&c[a>>2]|0)==(c[l>>2]|0)?(c[e+4>>2]&c[a+4>>2]|0)==(c[l+4>>2]|0):0)?(b[(c[j>>2]|0)+18>>1]|0)<=(b[(c[k>>2]|0)+18>>1]|0):0)?(b[(c[j>>2]|0)+20>>1]|0)<=(b[(c[k>>2]|0)+20>>1]|0):0)?(b[(c[j>>2]|0)+22>>1]|0)<=(b[(c[k>>2]|0)+22>>1]|0):0){e=13;break}e=c[j>>2]|0;a=c[k>>2]|0;l=c[k>>2]|0;if((((c[e>>2]&c[a>>2]|0)==(c[l>>2]|0)?(c[e+4>>2]&c[a+4>>2]|0)==(c[l+4>>2]|0):0)?(b[(c[j>>2]|0)+20>>1]|0)>=(b[(c[k>>2]|0)+20>>1]|0):0)?(b[(c[j>>2]|0)+22>>1]|0)>=(b[(c[k>>2]|0)+22>>1]|0):0){e=18;break}}c[f>>2]=(c[j>>2]|0)+48;c[j>>2]=c[c[f>>2]>>2]}if((e|0)==13){c[g>>2]=0;l=c[g>>2]|0;i=h;return l|0}else if((e|0)==18){c[g>>2]=c[f>>2];l=c[g>>2]|0;i=h;return l|0}return 0}function Dv(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;k=i;i=i+16|0;h=k+12|0;n=k+8|0;l=k+4|0;j=k;c[n>>2]=d;c[l>>2]=f;c[j>>2]=g;Nu(c[n>>2]|0,c[l>>2]|0);n=(nv(c[n>>2]|0,c[l>>2]|0,e[(c[j>>2]|0)+40>>1]|0)|0)!=0;d=c[l>>2]|0;if(n){n=d+24|0;c[n+0>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;c[h>>2]=7;n=c[h>>2]|0;i=k;return n|0}f=c[j>>2]|0;n=d+0|0;m=f+0|0;g=n+40|0;do{c[n>>2]=c[m>>2];n=n+4|0;m=m+4|0}while((n|0)<(g|0));b[d+40>>1]=b[f+40>>1]|0;dF(c[(c[l>>2]|0)+44>>2]|0,c[(c[j>>2]|0)+44>>2]|0,(e[(c[l>>2]|0)+40>>1]|0)<<2|0)|0;l=c[j>>2]|0;if(!(c[(c[j>>2]|0)+36>>2]&1024)){if(c[l+36>>2]&16384)c[(c[j>>2]|0)+28>>2]=0}else a[l+28>>0]=0;c[h>>2]=0;n=c[h>>2]|0;i=k;return n|0}function Ev(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+32|0;g=f+16|0;h=f+12|0;k=f+8|0;j=f+4|0;l=f;c[h>>2]=a;c[k>>2]=d;if((e[(c[h>>2]|0)+40>>1]|0)>=(e[(c[k>>2]|0)+40>>1]|0)){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}if((b[(c[h>>2]|0)+20>>1]|0)>=(b[(c[k>>2]|0)+20>>1]|0)){if((b[(c[h>>2]|0)+20>>1]|0)>(b[(c[k>>2]|0)+20>>1]|0)){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}if((b[(c[h>>2]|0)+22>>1]|0)>(b[(c[k>>2]|0)+22>>1]|0)){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}}c[j>>2]=(e[(c[h>>2]|0)+40>>1]|0)-1;while(1){if((c[j>>2]|0)<0){d=17;break}c[l>>2]=(e[(c[k>>2]|0)+40>>1]|0)-1;while(1){if((c[l>>2]|0)<0)break;if((c[(c[(c[k>>2]|0)+44>>2]|0)+(c[l>>2]<<2)>>2]|0)==(c[(c[(c[h>>2]|0)+44>>2]|0)+(c[j>>2]<<2)>>2]|0))break;c[l>>2]=(c[l>>2]|0)+ -1}if((c[l>>2]|0)<0){d=15;break}c[j>>2]=(c[j>>2]|0)+ -1}if((d|0)==15){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}else if((d|0)==17){c[g>>2]=1;a=c[g>>2]|0;i=f;return a|0}return 0}function Fv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;f=e+20|0;g=e+16|0;l=e+12|0;j=e+8|0;k=e+4|0;h=e;c[g>>2]=a;c[l>>2]=b;c[j>>2]=d;c[k>>2]=0;c[h>>2]=c[(c[l>>2]|0)+20>>2];while(1){if((c[k>>2]|0)>=(c[(c[l>>2]|0)+12>>2]|0)){g=6;break}if(Mv(c[c[h>>2]>>2]|0,c[j>>2]|0,c[g>>2]|0)|0){g=4;break}c[k>>2]=(c[k>>2]|0)+1;c[h>>2]=(c[h>>2]|0)+48}if((g|0)==4){c[f>>2]=1;a=c[f>>2]|0;i=e;return a|0}else if((g|0)==6){c[f>>2]=0;a=c[f>>2]|0;i=e;return a|0}return 0}function Gv(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=i;i=i+32|0;h=j+28|0;q=j+24|0;m=j+20|0;k=j+16|0;o=j+12|0;p=j+8|0;l=j+4|0;n=j;c[q>>2]=a;c[m>>2]=f;c[k>>2]=g;if((d[(c[m>>2]|0)+55>>0]|0)>>>2&1){c[h>>2]=0;a=c[h>>2]|0;i=j;return a|0}a=c[(c[c[q>>2]>>2]|0)+8>>2]|0;c[o>>2]=a;if(!a){c[h>>2]=0;a=c[h>>2]|0;i=j;return a|0}c[p>>2]=0;a:while(1){if((c[p>>2]|0)>=(c[c[o>>2]>>2]|0)){k=18;break}c[n>>2]=iq(c[(c[(c[o>>2]|0)+4>>2]|0)+((c[p>>2]|0)*20|0)>>2]|0)|0;if((d[c[n>>2]>>0]|0)!=154){k=8;break}b:do if((c[(c[n>>2]|0)+28>>2]|0)==(c[k>>2]|0)){if((b[(c[n>>2]|0)+32>>1]|0)<0){k=11;break a}c[l>>2]=0;while(1){if((c[l>>2]|0)>=(e[(c[m>>2]|0)+50>>1]|0))break b;if((b[(c[n>>2]|0)+32>>1]|0)==(b[(c[(c[m>>2]|0)+4>>2]|0)+(c[l>>2]<<1)>>1]|0)){k=15;break a}c[l>>2]=(c[l>>2]|0)+1}}while(0);c[p>>2]=(c[p>>2]|0)+1}if((k|0)==8){c[h>>2]=0;a=c[h>>2]|0;i=j;return a|0}else if((k|0)==11){c[h>>2]=1;a=c[h>>2]|0;i=j;return a|0}else if((k|0)==15){c[h>>2]=1;a=c[h>>2]|0;i=j;return a|0}else if((k|0)==18){c[h>>2]=0;a=c[h>>2]|0;i=j;return a|0}return 0}function Hv(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;n=i;i=i+48|0;p=n+32|0;j=n+28|0;k=n+36|0;m=n+24|0;o=n+20|0;q=n;r=n+16|0;h=n+12|0;l=n+8|0;c[p>>2]=a;c[j>>2]=f;b[k>>1]=g;s=c[j>>2]|0;g=(c[j>>2]|0)+8|0;f=~(c[s+4>>2]|c[g+4>>2]);a=q;c[a>>2]=~(c[s>>2]|c[g>>2]);c[a+4>>2]=f;c[l>>2]=0;c[r>>2]=c[(c[p>>2]|0)+12>>2];c[m>>2]=c[(c[p>>2]|0)+20>>2];while(1){if((c[r>>2]|0)<=0)break;if(d[(c[m>>2]|0)+20>>0]&2)break;a=(c[m>>2]|0)+40|0;s=(c[j>>2]|0)+8|0;do if(!((c[a>>2]&c[s>>2]|0)==0?(c[a+4>>2]&c[s+4>>2]|0)==0:0)?(a=(c[m>>2]|0)+40|0,s=q,!((c[a>>2]&c[s>>2]|0)!=0?1:(c[a+4>>2]&c[s+4>>2]|0)!=0)):0){c[h>>2]=(e[(c[j>>2]|0)+40>>1]|0)-1;while(1){if((c[h>>2]|0)<0)break;c[o>>2]=c[(c[(c[j>>2]|0)+44>>2]|0)+(c[h>>2]<<2)>>2];if(c[o>>2]|0){if((c[o>>2]|0)==(c[m>>2]|0))break;if((c[(c[o>>2]|0)+4>>2]|0)>=0?((c[(c[p>>2]|0)+20>>2]|0)+((c[(c[o>>2]|0)+4>>2]|0)*48|0)|0)==(c[m>>2]|0):0)break}c[h>>2]=(c[h>>2]|0)+ -1}if((c[h>>2]|0)<0){if((b[(c[m>>2]|0)+16>>1]|0)<=0){s=(c[j>>2]|0)+22|0;b[s>>1]=(b[s>>1]|0)+(b[(c[m>>2]|0)+16>>1]|0);break}s=(c[j>>2]|0)+22|0;b[s>>1]=(b[s>>1]|0)+ -1<<16>>16;if(e[(c[m>>2]|0)+18>>1]&2)c[l>>2]=(c[l>>2]|0)+1}}while(0);c[r>>2]=(c[r>>2]|0)+ -1;c[m>>2]=(c[m>>2]|0)+48}if(!(c[l>>2]|0)){i=n;return}if((b[(c[j>>2]|0)+22>>1]|0)<=((b[k>>1]|0)-10|0)){i=n;return}b[(c[j>>2]|0)+22>>1]=(b[k>>1]|0)-10;i=n;return}function Iv(a){a=a|0;var d=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;g=f+16|0;d=f;h=f+12|0;j=f+8|0;c[g>>2]=a;a=d;c[a>>2]=0;c[a+4>>2]=0;c[h>>2]=(e[(c[g>>2]|0)+52>>1]|0)-1;while(1){if((c[h>>2]|0)<0)break;c[j>>2]=b[(c[(c[g>>2]|0)+4>>2]|0)+(c[h>>2]<<1)>>1];if((c[j>>2]|0)>=0&(c[j>>2]|0)<63){l=$E(1,0,c[j>>2]|0)|0;m=d;k=c[m+4>>2]|D;a=d;c[a>>2]=c[m>>2]|l;c[a+4>>2]=k}c[h>>2]=(c[h>>2]|0)+ -1}m=d;D=c[m+4>>2]|0;i=f;return c[m>>2]|0}function Jv(f,g,h,j){f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;C=i;i=i+224|0;y=C+188|0;k=C+184|0;F=C+180|0;D=C+176|0;E=C+212|0;P=C+172|0;x=C+168|0;J=C+164|0;n=C+160|0;w=C+156|0;O=C+152|0;K=C+40|0;m=C;s=C+210|0;o=C+208|0;p=C+206|0;q=C+36|0;r=C+204|0;v=C+32|0;t=C+28|0;M=C+202|0;H=C+200|0;A=C+24|0;z=C+20|0;N=C+198|0;I=C+196|0;G=C+194|0;L=C+192|0;B=C+16|0;l=C+12|0;u=C+8|0;c[k>>2]=f;c[F>>2]=g;c[D>>2]=h;b[E>>1]=j;c[P>>2]=c[c[k>>2]>>2];c[x>>2]=c[c[P>>2]>>2];c[J>>2]=c[c[x>>2]>>2];c[t>>2]=0;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[(c[(c[n>>2]|0)+44>>2]|0)+((O&65535)<<2)>>2]=h;O=m;h=(c[w>>2]|0)+32|0;g=(c[n>>2]|0)+8|0;f=(c[O+4>>2]|c[h+4>>2])&~c[g+4>>2];P=c[n>>2]|0;c[P>>2]=(c[O>>2]|c[h>>2])&~c[g>>2];c[P+4>>2]=f;do if(e[I>>1]&1){c[l>>2]=c[c[w>>2]>>2];P=(c[n>>2]|0)+36|0;c[P>>2]=c[P>>2]|4;if(c[(c[l>>2]|0)+4>>2]&2048){c[B>>2]=46;break}if((c[(c[l>>2]|0)+20>>2]|0)!=0?(c[c[(c[l>>2]|0)+20>>2]>>2]|0)!=0:0){P=c[c[(c[l>>2]|0)+20>>2]>>2]|0;c[B>>2]=(dq(P,((P|0)<0)<<31>>31)|0)<<16>>16}}else if(e[I>>1]&2){P=(c[n>>2]|0)+36|0;c[P>>2]=c[P>>2]|1;if((c[v>>2]|0)>=0){if(b[E>>1]|0)break;if((e[(c[n>>2]|0)+24>>1]|0)!=((e[(c[D>>2]|0)+50>>1]|0)-1|0))break}if((c[v>>2]|0)>=0?(d[(c[D>>2]|0)+54>>0]|0)==0:0){P=(c[n>>2]|0)+36|0;c[P>>2]=c[P>>2]|65536;break}P=(c[n>>2]|0)+36|0;c[P>>2]=c[P>>2]|4096;break}else{if(e[I>>1]&128){P=(c[n>>2]|0)+36|0;c[P>>2]=c[P>>2]|8;break}j=(c[n>>2]|0)+36|0;N=c[j>>2]|0;if(e[I>>1]&36){c[j>>2]=N|34;c[z>>2]=c[w>>2];c[A>>2]=0;break}c[j>>2]=N|18;c[A>>2]=c[w>>2];if(c[(c[n>>2]|0)+36>>2]&32)j=c[(c[(c[n>>2]|0)+44>>2]|0)+((e[(c[n>>2]|0)+40>>1]|0)-2<<2)>>2]|0;else j=0;c[z>>2]=j;break}while(0);do if(!(c[(c[n>>2]|0)+36>>2]&2)){f=(c[n>>2]|0)+24|0;P=(b[f>>1]|0)+1<<16>>16;b[f>>1]=P;c[u>>2]=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=0,g=0,h=0,j=0;g=i;i=i+16|0;h=g;j=g+6|0;f=g+4|0;c[h>>2]=a;b[j>>1]=e;b[f>>1]=b[j>>1]|0;do if(c[h>>2]|0){e=c[h>>2]|0;if((b[(c[h>>2]|0)+16>>1]|0)<=0){b[f>>1]=(b[f>>1]|0)+(b[e+16>>1]|0);break}if(!(d[e+20>>0]&0))b[f>>1]=(b[f>>1]|0)-20}while(0);i=g;return b[f>>1]|0}function Mv(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;g=f+12|0;j=f+8|0;h=f+4|0;k=f;c[j>>2]=a;c[h>>2]=b;c[k>>2]=e;if(!(Dq(c[j>>2]|0,c[h>>2]|0,c[k>>2]|0)|0)){c[g>>2]=1;a=c[g>>2]|0;i=f;return a|0}do if((d[c[h>>2]>>0]|0|0)==71){if((Mv(c[j>>2]|0,c[(c[h>>2]|0)+12>>2]|0,c[k>>2]|0)|0)==0?(Mv(c[j>>2]|0,c[(c[h>>2]|0)+16>>2]|0,c[k>>2]|0)|0)==0:0)break;c[g>>2]=1;a=c[g>>2]|0;i=f;return a|0}while(0);if((((d[c[h>>2]>>0]|0|0)==77?(Dq(c[(c[j>>2]|0)+12>>2]|0,c[(c[h>>2]|0)+12>>2]|0,c[k>>2]|0)|0)==0:0)?(d[c[j>>2]>>0]|0|0)!=76:0)?(d[c[j>>2]>>0]|0|0)!=73:0){c[g>>2]=1;a=c[g>>2]|0;i=f;return a|0}c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}function Nv(f,g,h,j){f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;n=i;i=i+80|0;l=n;m=n+68|0;v=n+64|0;u=n+60|0;t=n+56|0;C=n+52|0;o=n+48|0;r=n+44|0;w=n+40|0;q=n+36|0;x=n+32|0;z=n+28|0;p=n+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c[g>>2]>>2]|0)+64>>0]=1;break}e=c[g>>2]|0;if(c[(c[m>>2]|0)+8>>2]|0){c[j>>2]=c[(c[m>>2]|0)+8>>2];Se(e,1200,j);break}else{c[j>>2]=ge(c[n>>2]|0)|0;Se(e,1200,j);break}}while(0);hc(c[(c[m>>2]|0)+8>>2]|0);c[(c[m>>2]|0)+8>>2]=0;c[f>>2]=0;while(1){if((c[f>>2]|0)>=(c[c[k>>2]>>2]|0))break;if((a[(c[(c[k>>2]|0)+4>>2]|0)+((c[f>>2]|0)*12|0)+5>>0]|0)==0?(c[(c[(c[k>>2]|0)+16>>2]|0)+(c[f>>2]<<3)>>2]|0)>0:0){b=c[g>>2]|0;c[j>>2]=c[c[h>>2]>>2];Se(b,24120,j)}c[f>>2]=(c[f>>2]|0)+1}i=l;return c[(c[g>>2]|0)+64>>2]|0}function Pv(a){a=+a;var d=0,e=0,f=0,g=0,j=0;d=i;i=i+32|0;e=d+18|0;f=d+8|0;g=d;j=d+16|0;h[f>>3]=a;if(+h[f>>3]<=1.0){b[e>>1]=0;j=b[e>>1]|0;i=d;return j|0}if(+h[f>>3]<=2.0e9){a=+h[f>>3];b[e>>1]=dq(~~a>>>0,+O(a)>=1.0?a>0.0?(ca(+N(a/4294967296.0),4294967295.0)|0)>>>0:~~+_((a- +(~~a>>>0))/4294967296.0)>>>0:0)|0;j=b[e>>1]|0;i=d;return j|0}else{c[g+0>>2]=c[f+0>>2];c[g+4>>2]=c[f+4>>2];g=cF(c[g>>2]|0,c[g+4>>2]|0,52)|0;g=ZE(g|0,D|0,1022,0)|0;b[j>>1]=g;b[e>>1]=(b[j>>1]|0)*10;j=b[e>>1]|0;i=d;return j|0}return 0}function Qv(a,e,f,g,h){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;j=i;i=i+48|0;l=j+36|0;p=j+32|0;q=j+28|0;t=j+24|0;r=j+20|0;s=j+16|0;k=j+12|0;o=j+8|0;m=j+4|0;n=j;c[p>>2]=a;c[q>>2]=e;c[t>>2]=f;c[r>>2]=g;c[s>>2]=h;c[o>>2]=c[(c[(c[r>>2]|0)+32>>2]|0)+(c[s>>2]<<2)>>2];c[k>>2]=0;while(1){if((c[k>>2]|0)>=(c[c[q>>2]>>2]|0)){m=10;break}c[m>>2]=iq(c[(c[(c[q>>2]|0)+4>>2]|0)+((c[k>>2]|0)*20|0)>>2]|0)|0;if(((((d[c[m>>2]>>0]|0)==154?(b[(c[m>>2]|0)+32>>1]|0)==(b[(c[(c[r>>2]|0)+4>>2]|0)+(c[s>>2]<<1)>>1]|0):0)?(c[(c[m>>2]|0)+28>>2]|0)==(c[t>>2]|0):0)?(c[n>>2]=cq(c[p>>2]|0,c[(c[(c[q>>2]|0)+4>>2]|0)+((c[k>>2]|0)*20|0)>>2]|0)|0,(c[n>>2]|0)!=0):0)?0==(xc(c[c[n>>2]>>2]|0,c[o>>2]|0)|0):0){m=8;break}c[k>>2]=(c[k>>2]|0)+1}if((m|0)==8){c[l>>2]=c[k>>2];a=c[l>>2]|0;i=j;return a|0}else if((m|0)==10){c[l>>2]=-1;a=c[l>>2]|0;i=j;return a|0}return 0}function Rv(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=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;I=i;i=i+208|0;K=I+188|0;v=I+184|0;j=I+180|0;aa=I+176|0;E=I+172|0;V=I+168|0;q=I+164|0;y=I+40|0;A=I+32|0;z=I+24|0;s=I+160|0;u=I+156|0;p=I+152|0;O=I+148|0;t=I+144|0;G=I+140|0;$=I+16|0;w=I+136|0;N=I+132|0;C=I+194|0;x=I+128|0;l=I+124|0;B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2];c[f+4>>2]=g;i=I;return}function Sv(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if((c[d>>2]|0)!=75?!((c[d>>2]|0)>=79&(c[d>>2]|0)<=83):0)a=(c[d>>2]|0)==76;else a=1;i=b;return a&1|0}function Tv(a){a=a|0;var d=0,e=0,f=0;e=i;i=i+16|0;f=e;d=e+4|0;c[f>>2]=a;do if((c[f>>2]|0)!=75)if((c[f>>2]|0)==76){b[d>>1]=128;break}else{b[d>>1]=2<<(c[f>>2]|0)-79;break}else b[d>>1]=1;while(0);i=e;return b[d>>1]|0}function Uv(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;i=i+32|0;h=o+24|0;l=o+20|0;n=o+16|0;k=o+28|0;j=o+12|0;m=o+8|0;q=o+4|0;p=o;c[l>>2]=e;c[n>>2]=f;a[k>>0]=g;do if((c[(c[l>>2]|0)+12>>2]|0)>=(c[(c[l>>2]|0)+16>>2]|0)){c[q>>2]=c[(c[l>>2]|0)+20>>2];c[p>>2]=c[c[c[c[l>>2]>>2]>>2]>>2];e=Qe(c[p>>2]|0,(c[(c[l>>2]|0)+16>>2]|0)*48<<1,0)|0;c[(c[l>>2]|0)+20>>2]=e;if(c[(c[l>>2]|0)+20>>2]|0){dF(c[(c[l>>2]|0)+20>>2]|0,c[q>>2]|0,(c[(c[l>>2]|0)+12>>2]|0)*48|0)|0;if((c[q>>2]|0)!=((c[l>>2]|0)+24|0))Xb(c[p>>2]|0,c[q>>2]|0);e=((Bk(c[p>>2]|0,c[(c[l>>2]|0)+20>>2]|0)|0)>>>0)/48|0;c[(c[l>>2]|0)+16>>2]=e;break}if((d[k>>0]|0)&1)wn(c[p>>2]|0,c[n>>2]|0);c[(c[l>>2]|0)+20>>2]=c[q>>2];c[h>>2]=0;e=c[h>>2]|0;i=o;return e|0}while(0);f=(c[l>>2]|0)+12|0;e=c[f>>2]|0;c[f>>2]=e+1;c[m>>2]=e;c[j>>2]=(c[(c[l>>2]|0)+20>>2]|0)+(e*48|0);if((c[n>>2]|0)!=0?(c[(c[n>>2]|0)+4>>2]&262144|0)!=0:0){e=c[(c[n>>2]|0)+28>>2]|0;e=((dq(e,((e|0)<0)<<31>>31)|0)<<16>>16)-99&65535;b[(c[j>>2]|0)+16>>1]=e}else b[(c[j>>2]|0)+16>>1]=1;e=iq(c[n>>2]|0)|0;c[c[j>>2]>>2]=e;a[(c[j>>2]|0)+20>>0]=a[k>>0]|0;c[(c[j>>2]|0)+24>>2]=c[l>>2];c[(c[j>>2]|0)+4>>2]=-1;c[h>>2]=c[m>>2];e=c[h>>2]|0;i=o;return e|0}function Vv(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0;h=i;i=i+16|0;l=h+8|0;j=h+4|0;m=h+14|0;n=h+12|0;k=h;c[l>>2]=f;c[j>>2]=g;b[m>>1]=c[(c[(c[j>>2]|0)+16>>2]|0)+4>>2]&256;b[n>>1]=c[(c[(c[j>>2]|0)+12>>2]|0)+4>>2]&256;do if((e[m>>1]|0)==(e[n>>1]|0)){if(b[m>>1]|0){n=(c[(c[j>>2]|0)+16>>2]|0)+4|0;c[n>>2]=c[n>>2]&-257;break}if(cq(c[l>>2]|0,c[(c[j>>2]|0)+12>>2]|0)|0){n=(c[(c[j>>2]|0)+12>>2]|0)+4|0;c[n>>2]=c[n>>2]|256}}while(0);c[k>>2]=c[(c[j>>2]|0)+16>>2];c[(c[j>>2]|0)+16>>2]=c[(c[j>>2]|0)+12>>2];c[(c[j>>2]|0)+12>>2]=c[k>>2];if((d[c[j>>2]>>0]|0)<80){i=h;return}a[c[j>>2]>>0]=((d[c[j>>2]>>0]|0)-80^2)+80;i=h;return}function Wv(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+4|0;g=e;c[f>>2]=a;c[g>>2]=d;if(!(c[f>>2]|0)){i=e;return}a=(c[f>>2]|0)+4|0;c[a>>2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+4>>2]=f}g=Q;h=K;f=c[h+4>>2]&c[g+4>>2];S=K;c[S>>2]=c[h>>2]&c[g>>2];c[S+4>>2]=f;if(!(e[(c[x>>2]|0)+18>>1]&2)){S=j;c[S>>2]=0;c[S+4>>2]=0;break}else{g=Q;h=j;f=c[h+4>>2]&c[g+4>>2];S=j;c[S>>2]=c[h>>2]&c[g>>2];c[S+4>>2]=f;break}}while(0);c[z>>2]=(c[z>>2]|0)+ -1;c[x>>2]=(c[x>>2]|0)+48}g=K;f=c[g+4>>2]|0;S=(c[P>>2]|0)+408|0;c[S>>2]=c[g>>2];c[S+4>>2]=f;S=K;b[(c[s>>2]|0)+18>>1]=(c[S>>2]|0)==0&(c[S+4>>2]|0)==0?0:256;S=j;if(!((c[S>>2]|0)!=0|(c[S+4>>2]|0)!=0)){i=C;return}c[B>>2]=0;c[G>>2]=-1;c[E>>2]=-1;c[F>>2]=0;c[F>>2]=0;while(1){if((c[F>>2]|0)>=2|(c[B>>2]|0)!=0)break;c[x>>2]=c[(c[A>>2]|0)+20>>2];c[z>>2]=(c[(c[A>>2]|0)+12>>2]|0)-1;while(1){if((c[z>>2]|0)<0)break;S=(c[x>>2]|0)+20|0;a[S>>0]=d[S>>0]&-65;if((c[(c[x>>2]|0)+8>>2]|0)!=(c[E>>2]|0)?(S=j,g=c[S>>2]|0,S=c[S+4>>2]|0,f=_u((c[y>>2]|0)+68|0,c[(c[x>>2]|0)+8>>2]|0)|0,!((g&f|0)==0&(S&D|0)==0)):0){k=28;break}c[z>>2]=(c[z>>2]|0)+ -1;c[x>>2]=(c[x>>2]|0)+48}if((k|0)==28){k=0;c[G>>2]=c[(c[x>>2]|0)+12>>2];c[E>>2]=c[(c[x>>2]|0)+8>>2]}if((c[z>>2]|0)<0)break;c[B>>2]=1;while(1){if(!((c[z>>2]|0)>=0&(c[B>>2]|0)!=0))break;J=c[x>>2]|0;do if((c[(c[x>>2]|0)+8>>2]|0)!=(c[E>>2]|0)){S=J+20|0;a[S>>0]=d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;c[z>>2]=F;if(((F|0)!=0?(c[z>>2]|0)!=(a[y>>0]|0):0)?(c[z>>2]|0)!=(a[y+1>>0]|0):0)A=(c[z>>2]|0)!=(a[y+2>>0]|0);else A=0;j=c[v>>2]|0;if(!A)break;c[v>>2]=j+1}if((j|0)!=0?255!=(d[(c[n>>2]|0)+((c[v>>2]|0)-1)>>0]|0):0){if((c[z>>2]|0)==(a[y>>0]|0))y=(a[(c[n>>2]|0)+((c[v>>2]|0)+1)>>0]|0)==0;else y=0;c[c[r>>2]>>2]=y&1;c[k>>2]=ho(c[w>>2]|0,97,c[n>>2]|0)|0;if(c[k>>2]|0)a[(c[(c[k>>2]|0)+8>>2]|0)+(c[v>>2]|0)>>0]=0;c[c[t>>2]>>2]=c[k>>2];if((c[u>>2]|0)!=135)break;c[p>>2]=c[(c[o>>2]|0)+8>>2];aw(c[p>>2]|0,b[(c[q>>2]|0)+32>>1]|0);if(!(c[c[r>>2]>>2]|0))break;if(!(a[(c[(c[q>>2]|0)+8>>2]|0)+1>>0]|0))break;c[l>>2]=kp(c[o>>2]|0)|0;Qs(c[o>>2]|0,c[q>>2]|0,c[l>>2]|0)|0;F=c[p>>2]|0;af(F,(Mr(c[p>>2]|0)|0)-1|0,0);lp(c[o>>2]|0,c[l>>2]|0);break}c[n>>2]=0}while(0);tf(c[m>>2]|0);c[s>>2]=(c[n>>2]|0)!=0&1;F=c[s>>2]|0;i=x;return F|0}c[s>>2]=0;F=c[s>>2]|0;i=x;return F|0}function Zv(a){a=a|0;var b=0,e=0,f=0,g=0;e=i;i=i+16|0;b=e+8|0;g=e+4|0;f=e;c[g>>2]=a;do if((d[c[g>>2]>>0]|0|0)==153){if(xc(c[(c[g>>2]|0)+8>>2]|0,21512)|0){c[b>>2]=0;break}c[f>>2]=c[(c[g>>2]|0)+20>>2];if((c[c[f>>2]>>2]|0)!=2){c[b>>2]=0;break}if((d[c[(c[(c[f>>2]|0)+4>>2]|0)+20>>2]>>0]|0|0)!=154){c[b>>2]=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l>>2]=c[g>>2];b=c[l>>2]|0;i=m;return b|0}c[l>>2]=0;b=c[l>>2]|0;i=m;return b|0}function aw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if((c[f>>2]|0)>32){c[(c[e>>2]|0)+188>>2]=-1;i=d;return}else{a=(c[e>>2]|0)+188|0;c[a>>2]=c[a>>2]|1<<(c[f>>2]|0)-1;i=d;return}}function bw(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;l=i;i=i+32|0;f=l;k=l+24|0;h=l+20|0;m=l+16|0;g=l+12|0;j=l+8|0;c[k>>2]=a;c[h>>2]=d;c[m>>2]=e;e=c[c[k>>2]>>2]|0;d=c[c[m>>2]>>2]|0;if((b[(c[m>>2]|0)+36>>1]|0)>=0){m=c[(c[(c[m>>2]|0)+4>>2]|0)+((b[(c[m>>2]|0)+36>>1]|0)*24|0)>>2]|0;c[f>>2]=d;c[f+4>>2]=m;c[g>>2]=Te(e,17448,f)|0;c[j>>2]=1555;m=c[k>>2]|0;e=c[j>>2]|0;d=c[h>>2]|0;a=c[g>>2]|0;ts(m,e,d,a,-1,2);i=l;return}else{c[f>>2]=d;c[g>>2]=Te(e,24432,f)|0;c[j>>2]=2579;m=c[k>>2]|0;e=c[j>>2]|0;d=c[h>>2]|0;a=c[g>>2]|0;ts(m,e,d,a,-1,2);i=l;return}}function cw(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,m=0,n=0;f=i;i=i+32|0;g=f+20|0;n=f+16|0;j=f+12|0;l=f+8|0;m=f+4|0;k=f;c[n>>2]=a;c[j>>2]=b;c[l>>2]=d;c[m>>2]=e;a:do if(c[(c[c[n>>2]>>2]|0)+24>>2]&524288){e=c[j>>2]|0;if(!(c[l>>2]|0)){if(Up(e)|0)h=1;else h=(c[(c[j>>2]|0)+16>>2]|0)!=0;c[g>>2]=h&1;n=c[g>>2]|0;i=f;return n|0}c[k>>2]=c[e+16>>2];while(1){e=c[j>>2]|0;if(!(c[k>>2]|0))break;if(Bu(e,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0)|0){h=9;break}c[k>>2]=c[(c[k>>2]|0)+4>>2]}if((h|0)==9){c[g>>2]=1;n=c[g>>2]|0;i=f;return n|0}c[k>>2]=Up(e)|0;while(1){if(!(c[k>>2]|0))break a;if(Du(c[j>>2]|0,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0)|0)break;c[k>>2]=c[(c[k>>2]|0)+12>>2]}c[g>>2]=1;n=c[g>>2]|0;i=f;return n|0}while(0);c[g>>2]=0;n=c[g>>2]|0;i=f;return n|0}function dw(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=b;b=c[f>>2]|0;if(c[(c[f>>2]|0)+408>>2]|0)b=c[b+408>>2]|0;c[e>>2]=b;a[(c[e>>2]|0)+20>>0]=1;i=d;return}function ew(e,f,g,h,j,k,l,m,n,o){e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;x=i;i=i+64|0;D=x+44|0;r=x+40|0;t=x+36|0;z=x+32|0;F=x+28|0;A=x+24|0;B=x+48|0;G=x+53|0;u=x+52|0;H=x+51|0;w=x+20|0;s=x+16|0;v=x+12|0;y=x+50|0;E=x+8|0;p=x+4|0;C=x;c[D>>2]=e;c[r>>2]=f;c[t>>2]=g;c[z>>2]=h;c[F>>2]=j;c[A>>2]=k;b[B>>1]=l;a[G>>0]=m;a[u>>0]=n;a[H>>0]=o;c[w>>2]=c[(c[D>>2]|0)+8>>2];c[s>>2]=0;c[v>>2]=Nr(c[w>>2]|0)|0;a[y>>0]=(d[(c[r>>2]|0)+44>>0]&32|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k=0,l=0,m=0;k=i;i=i+32|0;j=k+20|0;f=k+16|0;g=k+12|0;l=k+8|0;m=k+4|0;h=k;c[j>>2]=a;c[f>>2]=d;c[g>>2]=0;if(!(c[(c[c[j>>2]>>2]|0)+24>>2]&524288)){a=c[g>>2]|0;i=k;return a|0}c[l>>2]=c[(c[f>>2]|0)+16>>2];while(1){if(!(c[l>>2]|0))break;c[m>>2]=0;while(1){if((c[m>>2]|0)>=(c[(c[l>>2]|0)+20>>2]|0))break;if((c[(c[l>>2]|0)+36+(c[m>>2]<<3)>>2]|0)>31)d=-1;else d=1<>2]|0)+36+(c[m>>2]<<3)>>2];c[g>>2]=c[g>>2]|d;c[m>>2]=(c[m>>2]|0)+1}c[l>>2]=c[(c[l>>2]|0)+4>>2]}c[l>>2]=Up(c[f>>2]|0)|0;while(1){if(!(c[l>>2]|0))break;c[h>>2]=0;$t(c[j>>2]|0,c[f>>2]|0,c[l>>2]|0,h,0)|0;a:do if(c[h>>2]|0){c[m>>2]=0;while(1){if((c[m>>2]|0)>=(e[(c[h>>2]|0)+50>>1]|0))break a;if((b[(c[(c[h>>2]|0)+4>>2]|0)+(c[m>>2]<<1)>>1]|0)>31)d=-1;else d=1<>2]|0)+4>>2]|0)+(c[m>>2]<<1)>>1];c[g>>2]=c[g>>2]|d;c[m>>2]=(c[m>>2]|0)+1}}while(0);c[l>>2]=c[(c[l>>2]|0)+12>>2]}a=c[g>>2]|0;i=k;return a|0}function iw(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=i;i=i+32|0;k=q+28|0;m=q+24|0;p=q+20|0;n=q+16|0;h=q+12|0;r=q+8|0;o=q+4|0;l=q;c[k>>2]=a;c[m>>2]=b;c[p>>2]=d;c[n>>2]=e;c[h>>2]=f;c[r>>2]=g;if(!(c[(c[c[k>>2]>>2]|0)+24>>2]&524288)){i=q;return}c[o>>2]=Up(c[m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else g=0;c[j>>2]=g&1;b=c[k>>2]|0;a=c[l>>2]|0;q=c[m>>2]|0;d=(c[n>>2]|0)+72|0;r=(c[d>>2]|0)+1|0;c[d>>2]=r;ip(b,131,a,q,r)|0;bf(c[k>>2]|0,-1,c[(c[h>>2]|0)+8>>2]|0,-18);Xe(c[k>>2]|0,c[j>>2]&255);i=o;return}function lw(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,m=0;g=i;i=i+32|0;h=g+20|0;j=g+16|0;k=g+12|0;f=g+8|0;m=g+4|0;l=g;c[h>>2]=a;c[j>>2]=b;c[k>>2]=d;c[f>>2]=e;e=c[h>>2]|0;if(c[(c[h>>2]|0)+408>>2]|0)e=c[e+408>>2]|0;c[m>>2]=e;c[l>>2]=c[(c[m>>2]|0)+528>>2];while(1){if(!(c[l>>2]|0))break;if((c[c[l>>2]>>2]|0)==(c[j>>2]|0)?(c[(c[l>>2]|0)+12>>2]|0)==(c[f>>2]|0):0)break;c[l>>2]=c[(c[l>>2]|0)+4>>2]}if(c[l>>2]|0){a=c[l>>2]|0;i=g;return a|0}c[l>>2]=mw(c[h>>2]|0,c[j>>2]|0,c[k>>2]|0,c[f>>2]|0)|0;a=c[l>>2]|0;i=g;return a|0}function mw(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=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;q=i;i=i+96|0;j=q;s=q+84|0;w=q+80|0;l=q+76|0;u=q+72|0;p=q+68|0;v=q+64|0;k=q+60|0;t=q+56|0;m=q+52|0;r=q+48|0;n=q+16|0;x=q+12|0;o=q+8|0;h=q+4|0;c[w>>2]=b;c[l>>2]=e;c[u>>2]=f;c[p>>2]=g;g=c[w>>2]|0;if(c[(c[w>>2]|0)+408>>2]|0)g=c[g+408>>2]|0;c[v>>2]=g;c[k>>2]=c[c[w>>2]>>2];c[m>>2]=0;c[x>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>2]=c[(c[g>>2]|0)+4>>2];rw(c[g>>2]|0,c[j>>2]|0);c[c[h>>2]>>2]=c[(c[g>>2]|0)+32>>2];c[(c[g>>2]|0)+4>>2]=0;i=f;return c[e>>2]|0}function rw(e,f){e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;m=i;i=i+48|0;n=m+28|0;l=m+24|0;r=m+20|0;k=m+16|0;o=m+12|0;j=m+8|0;g=m+4|0;p=m+32|0;q=m;c[n>>2]=e;c[l>>2]=f;c[k>>2]=c[c[l>>2]>>2];c[j>>2]=c[(c[n>>2]|0)+24>>2];c[g>>2]=c[(c[j>>2]|0)+112>>2];e=(c[n>>2]|0)+88|0;b[e>>1]=b[e>>1]&-257|256;e=(c[n>>2]|0)+88|0;b[e>>1]=b[e>>1]&-513;c[o>>2]=c[(c[n>>2]|0)+4>>2];c[r>>2]=(c[(c[n>>2]|0)+32>>2]|0)-1;while(1){if((c[r>>2]|0)<0)break;a[p>>0]=a[c[o>>2]>>0]|0;switch(d[p>>0]|0|0){case 6:case 8:{c[(c[o>>2]|0)+16>>2]=47;a[(c[o>>2]|0)+1>>0]=-19;break};case 2:case 3:{h=8;break};case 10:case 1:{if((d[(c[o>>2]|0)+3>>0]|0|0)>(c[k>>2]|0))c[k>>2]=d[(c[o>>2]|0)+3>>0];break};case 12:case 13:case 11:{e=(c[n>>2]|0)+88|0;b[e>>1]=b[e>>1]&-257;e=(c[n>>2]|0)+88|0;b[e>>1]=b[e>>1]&-513|512;break};case 14:{c[q>>2]=c[(c[o>>2]|0)+ -20+4>>2];if((c[q>>2]|0)>(c[k>>2]|0))c[k>>2]=c[q>>2];break};case 15:{if((c[(c[o>>2]|0)+8>>2]|0)>(c[k>>2]|0))c[k>>2]=c[(c[o>>2]|0)+8>>2];break};case 4:{if(c[(c[o>>2]|0)+8>>2]|0){h=(c[n>>2]|0)+88|0;b[h>>1]=b[h>>1]&-257;h=8}else h=8;break};case 5:case 7:case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>2]|0;i=h;return f|0}else{c[j>>2]=bx(c[l>>2]|0)|0;f=c[j>>2]|0;i=h;return f|0}return 0}function tw(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0;h=i;i=i+16|0;j=h+8|0;k=h+4|0;l=h;c[k>>2]=f;c[l>>2]=g;c[c[l>>2]>>2]=0;f=(c[k>>2]|0)+72|0;a[f>>0]=d[f>>0]&-15;b[(c[k>>2]|0)+44>>1]=0;if(((d[(c[k>>2]|0)+73>>0]|0)==1?(e[(c[k>>2]|0)+78+(b[(c[k>>2]|0)+76>>1]<<1)>>1]|0)!=0:0)?(d[(c[(c[k>>2]|0)+120+(b[(c[k>>2]|0)+76>>1]<<2)>>2]|0)+5>>0]|0)!=0:0){f=(c[k>>2]|0)+78+(b[(c[k>>2]|0)+76>>1]<<1)|0;b[f>>1]=(b[f>>1]|0)+ -1<<16>>16;c[j>>2]=0;f=c[j>>2]|0;i=h;return f|0}c[j>>2]=uw(c[k>>2]|0,c[l>>2]|0)|0;f=c[j>>2]|0;i=h;return f|0}function uw(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;k=i;i=i+32|0;j=k+20|0;m=k+16|0;l=k+12|0;n=k+8|0;o=k+4|0;p=k;c[m>>2]=f;c[l>>2]=g;if((d[(c[m>>2]|0)+73>>0]|0)!=1){if((d[(c[m>>2]|0)+73>>0]|0)>=3)g=vw(c[m>>2]|0)|0;else g=0;c[n>>2]=g;if(c[n>>2]|0){c[j>>2]=c[n>>2];f=c[j>>2]|0;i=k;return f|0}if(!(d[(c[m>>2]|0)+73>>0]|0)){c[c[l>>2]>>2]=1;c[j>>2]=0;f=c[j>>2]|0;i=k;return f|0}if((c[(c[m>>2]|0)+68>>2]|0)!=0?(a[(c[m>>2]|0)+73>>0]=1,f=(c[(c[m>>2]|0)+68>>2]|0)<0,c[(c[m>>2]|0)+68>>2]=0,f):0){c[j>>2]=0;f=c[j>>2]|0;i=k;return f|0}}c[o>>2]=c[(c[m>>2]|0)+120+(b[(c[m>>2]|0)+76>>1]<<2)>>2];do if(a[(c[o>>2]|0)+5>>0]|0){while(1){p=b[(c[m>>2]|0)+76>>1]|0;if(e[(c[m>>2]|0)+78+(b[(c[m>>2]|0)+76>>1]<<1)>>1]|0)break;g=c[m>>2]|0;if(!p){h=17;break}yw(g)}if((h|0)==17){a[g+73>>0]=0;c[c[l>>2]>>2]=1;c[j>>2]=0;f=c[j>>2]|0;i=k;return f|0}f=(c[m>>2]|0)+78+(p<<1)|0;b[f>>1]=(b[f>>1]|0)+ -1<<16>>16;c[o>>2]=c[(c[m>>2]|0)+120+(b[(c[m>>2]|0)+76>>1]<<2)>>2];if((d[(c[o>>2]|0)+2>>0]|0)!=0?(a[(c[o>>2]|0)+5>>0]|0)==0:0){c[n>>2]=tw(c[m>>2]|0,c[l>>2]|0)|0;break}c[n>>2]=0}else{c[p>>2]=e[(c[m>>2]|0)+78+(b[(c[m>>2]|0)+76>>1]<<1)>>1];f=c[m>>2]|0;c[n>>2]=ww(f,Hh((c[(c[o>>2]|0)+56>>2]|0)+(e[(c[o>>2]|0)+20>>1]&(d[(c[(c[o>>2]|0)+64>>2]|0)+(c[p>>2]<<1)>>0]<<8|d[(c[(c[o>>2]|0)+64>>2]|0)+(c[p>>2]<<1)+1>>0]))|0)|0)|0;if(!(c[n>>2]|0)){c[n>>2]=xw(c[m>>2]|0)|0;break}c[j>>2]=c[n>>2];f=c[j>>2]|0;i=k;return f|0}while(0);c[j>>2]=c[n>>2];f=c[j>>2]|0;i=k;return f|0}function vw(b){b=b|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;h=e+4|0;g=e;c[h>>2]=b;b=c[h>>2]|0;if((d[(c[h>>2]|0)+73>>0]|0|0)==4){c[f>>2]=c[b+68>>2];b=c[f>>2]|0;i=e;return b|0}a[b+73>>0]=0;b=(c[h>>2]|0)+48|0;c[g>>2]=Dw(c[h>>2]|0,c[(c[h>>2]|0)+56>>2]|0,c[b>>2]|0,c[b+4>>2]|0,0,(c[h>>2]|0)+68|0)|0;if(((c[g>>2]|0)==0?(hc(c[(c[h>>2]|0)+56>>2]|0),c[(c[h>>2]|0)+56>>2]=0,(c[(c[h>>2]|0)+68>>2]|0)!=0):0)?(d[(c[h>>2]|0)+73>>0]|0|0)==1:0)a[(c[h>>2]|0)+73>>0]=2;c[f>>2]=c[g>>2];b=c[f>>2]|0;i=e;return b|0}function ww(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;h=i;i=i+32|0;j=h+24|0;m=h+20|0;p=h+16|0;k=h+12|0;n=h+8|0;l=h+4|0;o=h;c[m>>2]=f;c[p>>2]=g;c[n>>2]=b[(c[m>>2]|0)+76>>1];c[o>>2]=c[(c[m>>2]|0)+4>>2];if((b[(c[m>>2]|0)+76>>1]|0)>=19){c[j>>2]=kj(56561)|0;f=c[j>>2]|0;i=h;return f|0}c[k>>2]=zw(c[o>>2]|0,c[p>>2]|0,l,(d[(c[m>>2]|0)+72>>0]&1|0)==0?2:0)|0;if(c[k>>2]|0){c[j>>2]=c[k>>2];f=c[j>>2]|0;i=h;return f|0}c[(c[m>>2]|0)+120+((c[n>>2]|0)+1<<2)>>2]=c[l>>2];b[(c[m>>2]|0)+78+((c[n>>2]|0)+1<<1)>>1]=0;f=(c[m>>2]|0)+76|0;b[f>>1]=(b[f>>1]|0)+1<<16>>16;b[(c[m>>2]|0)+44>>1]=0;f=(c[m>>2]|0)+72|0;a[f>>0]=d[f>>0]&-7;if((e[(c[l>>2]|0)+18>>1]|0)>=1?(d[(c[l>>2]|0)+2>>0]|0)==(d[(c[(c[m>>2]|0)+120+(c[n>>2]<<2)>>2]|0)+2>>0]|0):0){c[j>>2]=0;f=c[j>>2]|0;i=h;return f|0}c[j>>2]=kj(56573)|0;f=c[j>>2]|0;i=h;return f|0}function xw(f){f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;j=i;i=i+32|0;h=j+16|0;g=j+12|0;m=j+8|0;k=j+4|0;l=j;c[g>>2]=f;c[k>>2]=0;c[l>>2]=0;while(1){n=c[(c[g>>2]|0)+120+(b[(c[g>>2]|0)+76>>1]<<2)>>2]|0;c[l>>2]=n;f=c[l>>2]|0;if(!((a[n+5>>0]|0)!=0^1)){l=5;break}c[m>>2]=Hh((c[(c[l>>2]|0)+56>>2]|0)+((d[f+6>>0]|0)+8)|0)|0;b[(c[g>>2]|0)+78+(b[(c[g>>2]|0)+76>>1]<<1)>>1]=b[(c[l>>2]|0)+18>>1]|0;c[k>>2]=ww(c[g>>2]|0,c[m>>2]|0)|0;if(c[k>>2]|0){l=4;break}}if((l|0)==4){c[h>>2]=c[k>>2];n=c[h>>2]|0;i=j;return n|0}else if((l|0)==5){b[(c[g>>2]|0)+78+(b[(c[g>>2]|0)+76>>1]<<1)>>1]=(e[f+18>>1]|0)-1;c[h>>2]=0;n=c[h>>2]|0;i=j;return n|0}return 0}function yw(e){e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f;c[g>>2]=e;Rk(c[(c[g>>2]|0)+120+(b[(c[g>>2]|0)+76>>1]<<2)>>2]|0);e=(c[g>>2]|0)+76|0;b[e>>1]=(b[e>>1]|0)+ -1<<16>>16;b[(c[g>>2]|0)+44>>1]=0;e=(c[g>>2]|0)+72|0;a[e>>0]=d[e>>0]&-7;i=f;return}function zw(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;m=g+16|0;l=g+12|0;j=g+8|0;k=g+4|0;h=g;c[m>>2]=a;c[l>>2]=b;c[j>>2]=e;c[k>>2]=f;a=c[l>>2]|0;if(a>>>0<=(Aw(c[m>>2]|0)|0)>>>0){c[h>>2]=Bw(c[m>>2]|0,c[l>>2]|0,c[j>>2]|0,c[k>>2]|0)|0;if(((c[h>>2]|0)==0?(d[c[c[j>>2]>>2]>>0]|0|0)==0:0)?(c[h>>2]=Sj(c[c[j>>2]>>2]|0)|0,(c[h>>2]|0)!=0):0)Rk(c[c[j>>2]>>2]|0)}else c[h>>2]=kj(53903)|0;i=g;return c[h>>2]|0}function Aw(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[b>>2]|0)+44>>2]|0}function Bw(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,m=0,n=0;k=i;i=i+32|0;g=k+24|0;f=k+20|0;l=k+16|0;j=k+12|0;n=k+8|0;h=k+4|0;m=k;c[f>>2]=a;c[l>>2]=b;c[j>>2]=d;c[n>>2]=e;c[h>>2]=Xc(c[c[f>>2]>>2]|0,c[l>>2]|0,m,c[n>>2]|0)|0;if(c[h>>2]|0){c[g>>2]=c[h>>2];n=c[g>>2]|0;i=k;return n|0}else{n=Cw(c[m>>2]|0,c[l>>2]|0,c[f>>2]|0)|0;c[c[j>>2]>>2]=n;c[g>>2]=0;n=c[g>>2]|0;i=k;return n|0}return 0}function Cw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;g=i;i=i+16|0;k=g+12|0;h=g+8|0;j=g+4|0;f=g;c[k>>2]=b;c[h>>2]=d;c[j>>2]=e;c[f>>2]=Qj(c[k>>2]|0)|0;b=Zc(c[k>>2]|0)|0;c[(c[f>>2]|0)+56>>2]=b;c[(c[f>>2]|0)+68>>2]=c[k>>2];c[(c[f>>2]|0)+52>>2]=c[j>>2];c[(c[f>>2]|0)+72>>2]=c[h>>2];a[(c[f>>2]|0)+6>>0]=(c[(c[f>>2]|0)+72>>2]|0)==1?100:0;i=g;return c[f>>2]|0}function Dw(a,b,d,f,g,h){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=i;i=i+240|0;k=q+36|0;l=q+32|0;s=q+28|0;n=q;p=q+24|0;j=q+20|0;r=q+16|0;o=q+12|0;m=q+8|0;c[l>>2]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>>2]=(c[k>>2]|0)+24;c[c[k>>2]>>2]=c[l>>2];b[(c[k>>2]|0)+4>>1]=(e[(c[l>>2]|0)+6>>1]|0)+1;c[j>>2]=c[k>>2];q=c[j>>2]|0;i=n;return q|0}function Fw(f,g,h,j){f=f|0;g=g|0;h=h|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;k=i;i=i+48|0;o=k+36|0;p=k+32|0;v=k+28|0;l=k+24|0;q=k+20|0;r=k+16|0;t=k+12|0;m=k+40|0;u=k+8|0;n=k+4|0;s=k;c[o>>2]=f;c[p>>2]=g;c[v>>2]=h;c[l>>2]=j;c[q>>2]=c[v>>2];c[n>>2]=c[(c[l>>2]|0)+8>>2];a[(c[l>>2]|0)+6>>0]=0;j=c[q>>2]|0;if((d[c[q>>2]>>0]|0|0)<128){c[u>>2]=d[j>>0];j=1}else j=(Rw(j,u)|0)&255;c[t>>2]=j&255;c[r>>2]=c[u>>2];b[m>>1]=0;while(1){if((c[t>>2]|0)>>>0>=(c[u>>2]|0)>>>0){n=11;break}if((c[r>>2]|0)>(c[p>>2]|0)){n=11;break}j=(c[q>>2]|0)+(c[t>>2]|0)|0;if((d[(c[q>>2]|0)+(c[t>>2]|0)>>0]|0|0)<128){c[s>>2]=d[j>>0];j=1}else j=(Rw(j,s)|0)&255;c[t>>2]=(c[t>>2]|0)+(j&255);a[(c[n>>2]|0)+10>>0]=a[(c[o>>2]|0)+4>>0]|0;c[(c[n>>2]|0)+32>>2]=c[(c[o>>2]|0)+12>>2];c[(c[n>>2]|0)+24>>2]=0;v=Xw((c[q>>2]|0)+(c[r>>2]|0)|0,c[s>>2]|0,c[n>>2]|0)|0;c[r>>2]=(c[r>>2]|0)+v;c[n>>2]=(c[n>>2]|0)+40;v=(b[m>>1]|0)+1<<16>>16;b[m>>1]=v;if((v&65535|0)>=(e[(c[l>>2]|0)+4>>1]|0|0)){n=11;break}}if((n|0)==11){b[(c[l>>2]|0)+4>>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=c[(c[D>>2]|0)+120+(b[(c[D>>2]|0)+76>>1]<<2)>>2];c[v>>2]=0;c[m>>2]=(e[(c[t>>2]|0)+18>>1]|0)-1;c[u>>2]=c[m>>2]>>1-(c[F>>2]|0);b[(c[D>>2]|0)+78+(b[(c[D>>2]|0)+76>>1]<<1)>>1]=c[u>>2];b:do if(!(c[n>>2]|0)){while(1){c[q>>2]=(c[(c[t>>2]|0)+56>>2]|0)+(e[(c[t>>2]|0)+20>>1]&(d[(c[(c[t>>2]|0)+64>>2]|0)+(c[u>>2]<<1)>>0]<<8|d[(c[(c[t>>2]|0)+64>>2]|0)+(c[u>>2]<<1)+1>>0]))+(d[(c[t>>2]|0)+7>>0]|0);c:do if(a[(c[t>>2]|0)+3>>0]|0)while(1){f=c[q>>2]|0;c[q>>2]=f+1;if(128>(d[f>>0]|0))break c;if((c[q>>2]|0)>>>0>=(c[(c[t>>2]|0)+60>>2]|0)>>>0){l=20;break a}}while(0);Jw(c[q>>2]|0,r)|0;g=r;j=c[g+4>>2]|0;f=s;h=c[f+4>>2]|0;if((j|0)<(h|0)|((j|0)==(h|0)?(c[g>>2]|0)>>>0<(c[f>>2]|0)>>>0:0)){c[v>>2]=(c[u>>2]|0)+1;if((c[v>>2]|0)>(c[m>>2]|0)){l=23;break}}else{g=r;j=c[g+4>>2]|0;f=s;h=c[f+4>>2]|0;if(!((j|0)>(h|0)|((j|0)==(h|0)?(c[g>>2]|0)>>>0>(c[f>>2]|0)>>>0:0))){l=27;break}c[m>>2]=(c[u>>2]|0)-1;if((c[v>>2]|0)>(c[m>>2]|0)){l=26;break}}c[u>>2]=(c[v>>2]|0)+(c[m>>2]|0)>>1}if((l|0)==23){c[y>>2]=-1;l=49;break}else if((l|0)==26){c[y>>2]=1;l=49;break}else if((l|0)==27){l=0;h=(c[D>>2]|0)+72|0;a[h>>0]=d[h>>0]|2;h=r;g=c[h+4>>2]|0;f=(c[D>>2]|0)+24|0;c[f>>2]=c[h>>2];c[f+4>>2]=g;b[(c[D>>2]|0)+78+(b[(c[D>>2]|0)+76>>1]<<1)>>1]=c[u>>2];if(a[(c[t>>2]|0)+5>>0]|0){l=29;break a}c[v>>2]=c[u>>2];break}}else while(1){c[q>>2]=(c[(c[t>>2]|0)+56>>2]|0)+(e[(c[t>>2]|0)+20>>1]&(d[(c[(c[t>>2]|0)+64>>2]|0)+(c[u>>2]<<1)>>0]<<8|d[(c[(c[t>>2]|0)+64>>2]|0)+(c[u>>2]<<1)+1>>0]))+(d[(c[t>>2]|0)+7>>0]|0);c[A>>2]=d[c[q>>2]>>0];do if((c[A>>2]|0)<=(d[(c[t>>2]|0)+8>>0]|0))c[y>>2]=pb[c[n>>2]&31](c[A>>2]|0,(c[q>>2]|0)+1|0,c[B>>2]|0)|0;else{if((d[(c[q>>2]|0)+1>>0]&128|0)==0?(f=((c[A>>2]&127)<<7)+(d[(c[q>>2]|0)+1>>0]|0)|0,c[A>>2]=f,(f|0)<=(e[(c[t>>2]|0)+10>>1]|0)):0){c[y>>2]=pb[c[n>>2]&31](c[A>>2]|0,(c[q>>2]|0)+2|0,c[B>>2]|0)|0;break}c[E>>2]=(c[q>>2]|0)+(0-(d[(c[t>>2]|0)+7>>0]|0));Kw(c[t>>2]|0,c[E>>2]|0,(c[D>>2]|0)+24|0);c[A>>2]=c[(c[D>>2]|0)+24>>2];f=c[A>>2]|0;c[C>>2]=gc(f,((f|0)<0)<<31>>31)|0;if(!(c[C>>2]|0)){l=37;break a}b[(c[D>>2]|0)+78+(b[(c[D>>2]|0)+76>>1]<<1)>>1]=c[u>>2];c[p>>2]=Lw(c[D>>2]|0,0,c[A>>2]|0,c[C>>2]|0,2)|0;if(c[p>>2]|0){l=39;break a}c[y>>2]=pb[c[n>>2]&31](c[A>>2]|0,c[C>>2]|0,c[B>>2]|0)|0;hc(c[C>>2]|0)}while(0);if((c[y>>2]|0)<0)c[v>>2]=(c[u>>2]|0)+1;else{if((c[y>>2]|0)<=0){l=45;break a}c[m>>2]=(c[u>>2]|0)-1}if((c[v>>2]|0)>(c[m>>2]|0)){l=49;break b}c[u>>2]=(c[v>>2]|0)+(c[m>>2]|0)>>1}while(0);if((l|0)==49?(l=0,(a[(c[t>>2]|0)+5>>0]|0)!=0):0){l=50;break}k=c[t>>2]|0;if((c[v>>2]|0)>=(e[(c[t>>2]|0)+18>>1]|0))c[x>>2]=Hh((c[(c[t>>2]|0)+56>>2]|0)+((d[k+6>>0]|0)+8)|0)|0;else c[x>>2]=Hh((c[k+56>>2]|0)+(e[(c[t>>2]|0)+20>>1]&(d[(c[(c[t>>2]|0)+64>>2]|0)+(c[v>>2]<<1)>>0]<<8|d[(c[(c[t>>2]|0)+64>>2]|0)+(c[v>>2]<<1)+1>>0]))|0)|0;b[(c[D>>2]|0)+78+(b[(c[D>>2]|0)+76>>1]<<1)>>1]=c[v>>2];c[p>>2]=ww(c[D>>2]|0,c[x>>2]|0)|0}while((c[p>>2]|0)==0);if((l|0)==20){c[w>>2]=kj(56945)|0;f=c[w>>2]|0;i=z;return f|0}else if((l|0)==29){c[c[o>>2]>>2]=0;c[p>>2]=0}else if((l|0)==37)c[p>>2]=7;else if((l|0)==39)hc(c[C>>2]|0);else if((l|0)==45){c[c[o>>2]>>2]=0;c[p>>2]=0;b[(c[D>>2]|0)+78+(b[(c[D>>2]|0)+76>>1]<<1)>>1]=c[u>>2];if(a[(c[B>>2]|0)+7>>0]|0)c[p>>2]=11}else if((l|0)==50){b[(c[D>>2]|0)+78+(b[(c[D>>2]|0)+76>>1]<<1)>>1]=c[u>>2];c[c[o>>2]>>2]=c[y>>2];c[p>>2]=0}b[(c[D>>2]|0)+44>>1]=0;f=(c[D>>2]|0)+72|0;a[f>>0]=d[f>>0]&-7;c[w>>2]=c[p>>2];f=c[w>>2]|0;i=z;return f|0}function Hw(b){b=b|0;var d=0,f=0,g=0,h=0;f=i;i=i+16|0;d=f+8|0;h=f+4|0;g=f;c[h>>2]=b;if(((e[(c[c[h>>2]>>2]|0)+6>>1]|0)+(e[(c[c[h>>2]>>2]|0)+8>>1]|0)|0)<=13){c[g>>2]=e[(c[(c[h>>2]|0)+8>>2]|0)+8>>1];b=(c[h>>2]|0)+12|0;if(a[c[(c[c[h>>2]>>2]|0)+16>>2]>>0]|0){c[b>>2]=1;c[(c[h>>2]|0)+16>>2]=-1}else{c[b>>2]=-1;c[(c[h>>2]|0)+16>>2]=1}if(c[g>>2]&4){c[d>>2]=15;b=c[d>>2]|0;i=f;return b|0}if((c[g>>2]&25|0)==0?(c[(c[c[h>>2]>>2]|0)+20>>2]|0)==0:0){c[d>>2]=16;b=c[d>>2]|0;i=f;return b|0}}c[d>>2]=17;b=c[d>>2]|0;i=f;return b|0}function Iw(f){f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;j=i;i=i+32|0;h=j+16|0;k=j+12|0;l=j+8|0;g=j+4|0;m=j;c[k>>2]=f;c[g>>2]=0;do if((d[(c[k>>2]|0)+73>>0]|0)>=3){f=c[k>>2]|0;if((d[(c[k>>2]|0)+73>>0]|0)!=4){Qk(f);break}c[h>>2]=c[f+68>>2];f=c[h>>2]|0;i=j;return f|0}while(0);a:do if((b[(c[k>>2]|0)+76>>1]|0)>=0)while(1){if(!(b[(c[k>>2]|0)+76>>1]|0))break a;n=(c[k>>2]|0)+76|0;f=b[n>>1]|0;b[n>>1]=f+ -1<<16>>16;Rk(c[(c[k>>2]|0)+120+(f<<16>>16<<2)>>2]|0)}else{f=c[k>>2]|0;if(!(c[(c[k>>2]|0)+60>>2]|0)){a[f+73>>0]=0;c[h>>2]=0;n=c[h>>2]|0;i=j;return n|0}c[g>>2]=zw(c[(c[f>>2]|0)+4>>2]|0,c[(c[k>>2]|0)+60>>2]|0,(c[k>>2]|0)+120|0,(d[(c[k>>2]|0)+72>>0]&1|0)==0?2:0)|0;f=c[k>>2]|0;if(!(c[g>>2]|0)){b[f+76>>1]=0;break}a[f+73>>0]=0;c[h>>2]=c[g>>2];n=c[h>>2]|0;i=j;return n|0}while(0);c[l>>2]=c[(c[k>>2]|0)+120>>2];if((d[c[l>>2]>>0]|0)!=0?((c[(c[k>>2]|0)+16>>2]|0)==0|0)==(d[(c[l>>2]|0)+2>>0]|0):0){b[(c[k>>2]|0)+78>>1]=0;b[(c[k>>2]|0)+44>>1]=0;n=(c[k>>2]|0)+72|0;a[n>>0]=d[n>>0]&-15;do if((e[(c[l>>2]|0)+18>>1]|0)>0)a[(c[k>>2]|0)+73>>0]=1;else{if(a[(c[l>>2]|0)+5>>0]|0){a[(c[k>>2]|0)+73>>0]=0;break}if((c[(c[l>>2]|0)+72>>2]|0)==1){c[m>>2]=Hh((c[(c[l>>2]|0)+56>>2]|0)+((d[(c[l>>2]|0)+6>>0]|0)+8)|0)|0;a[(c[k>>2]|0)+73>>0]=1;c[g>>2]=ww(c[k>>2]|0,c[m>>2]|0)|0;break}c[h>>2]=kj(56709)|0;n=c[h>>2]|0;i=j;return n|0}while(0);c[h>>2]=c[g>>2];n=c[h>>2]|0;i=j;return n|0}c[h>>2]=kj(56698)|0;n=c[h>>2]|0;i=j;return n|0} function Jw(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;k=i;i=i+32|0;g=k+20|0;m=k+16|0;j=k+12|0;h=k+8|0;f=k+4|0;l=k;c[m>>2]=b;c[j>>2]=e;c[h>>2]=d[c[m>>2]>>0];if(!(c[h>>2]&128)){b=c[j>>2]|0;c[b>>2]=c[h>>2];c[b+4>>2]=0;a[g>>0]=1;b=a[g>>0]|0;i=k;return b|0}c[m>>2]=(c[m>>2]|0)+1;c[f>>2]=d[c[m>>2]>>0];if(!(c[f>>2]&128)){c[h>>2]=c[h>>2]&127;c[h>>2]=c[h>>2]<<7;c[h>>2]=c[h>>2]|c[f>>2];b=c[j>>2]|0;c[b>>2]=c[h>>2];c[b+4>>2]=0;a[g>>0]=2;b=a[g>>0]|0;i=k;return b|0}c[m>>2]=(c[m>>2]|0)+1;c[h>>2]=c[h>>2]<<14;c[h>>2]=c[h>>2]|(d[c[m>>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(c[k>>2]|0,(c[(c[k>>2]|0)+56>>2]|0)+((e[(c[k>>2]|0)+20>>1]|0)&((d[(c[(c[k>>2]|0)+64>>2]|0)+(c[j>>2]<<1)>>0]|0)<<8|(d[(c[(c[k>>2]|0)+64>>2]|0)+(c[j>>2]<<1)+1>>0]|0)))|0,c[h>>2]|0);i=g;return}function Nw(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,j=0,k=0,l=0,m=0,n=0,o=0;m=i;i=i+32|0;h=m+24|0;l=m+20|0;k=m+16|0;j=m+12|0;o=m+8|0;n=m+4|0;g=m;c[l>>2]=a;c[k>>2]=b;c[j>>2]=d;c[o>>2]=e;c[n>>2]=f;do if(c[o>>2]|0){c[g>>2]=gd(c[n>>2]|0)|0;if(!(c[g>>2]|0)){dF(c[l>>2]|0,c[k>>2]|0,c[j>>2]|0)|0;break}c[h>>2]=c[g>>2];o=c[h>>2]|0;i=m;return o|0}else dF(c[k>>2]|0,c[l>>2]|0,c[j>>2]|0)|0;while(0);c[h>>2]=0;o=c[h>>2]|0;i=m;return o|0}function Ow(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;h=i;i=i+48|0;o=h+32|0;p=h+28|0;k=h+24|0;m=h+20|0;q=h+16|0;l=h+12|0;j=h+8|0;r=h+4|0;n=h;s=h+36|0;c[o>>2]=b;c[p>>2]=e;c[k>>2]=f;c[m>>2]=g;c[q>>2]=0;c[l>>2]=0;c[j>>2]=0;if(a[(c[o>>2]|0)+17>>0]|0){c[n>>2]=(c[p>>2]|0)+1;while(1){b=Pw(c[o>>2]|0,c[n>>2]|0)|0;if((b|0)==(c[n>>2]|0))f=1;else f=(c[n>>2]|0)==((((c[282]|0)>>>0)/((c[(c[o>>2]|0)+32>>2]|0)>>>0)|0)+1|0);g=c[n>>2]|0;if(!f)break;c[n>>2]=g+1}if(((g>>>0<=(Aw(c[o>>2]|0)|0)>>>0?(c[j>>2]=Qw(c[o>>2]|0,c[n>>2]|0,s,r)|0,(c[j>>2]|0)==0):0)?(d[s>>0]|0)==4:0)?(c[r>>2]|0)==(c[p>>2]|0):0){c[q>>2]=c[n>>2];c[j>>2]=101}}if((c[j>>2]|0)==0?(c[j>>2]=Bw(c[o>>2]|0,c[p>>2]|0,l,(c[k>>2]|0)==0?2:0)|0,(c[j>>2]|0)==0):0)c[q>>2]=Hh(c[(c[l>>2]|0)+56>>2]|0)|0;c[c[m>>2]>>2]=c[q>>2];l=c[l>>2]|0;if(c[k>>2]|0){c[c[k>>2]>>2]=l;e=c[j>>2]|0;e=(e|0)==101;b=c[j>>2]|0;b=e?0:b;i=h;return b|0}else{Rk(l);e=c[j>>2]|0;e=(e|0)==101;b=c[j>>2]|0;b=e?0:b;i=h;return b|0}return 0}function Pw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+32|0;e=d+20|0;g=d+16|0;j=d+12|0;h=d+8|0;k=d+4|0;f=d;c[g>>2]=a;c[j>>2]=b;if((c[j>>2]|0)>>>0<2){c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}c[h>>2]=(((c[(c[g>>2]|0)+36>>2]|0)>>>0)/5|0)+1;c[k>>2]=(((c[j>>2]|0)-2|0)>>>0)/((c[h>>2]|0)>>>0)|0;c[f>>2]=($(c[k>>2]|0,c[h>>2]|0)|0)+2;if((c[f>>2]|0)==((((c[282]|0)>>>0)/((c[(c[g>>2]|0)+32>>2]|0)>>>0)|0)+1|0))c[f>>2]=(c[f>>2]|0)+1;c[e>>2]=c[f>>2];a=c[e>>2]|0;i=d;return a|0}function Qw(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;o=i;i=i+48|0;j=o+36|0;s=o+32|0;q=o+28|0;h=o+24|0;p=o+20|0;l=o+16|0;r=o+12|0;m=o+8|0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0;t=c[h>>2]|0;i=j;return t|0};case 4:{c[r>>2]=d[c[q>>2]>>0]<<24|d[(c[q>>2]|0)+1>>0]<<16|d[(c[q>>2]|0)+2>>0]<<8|d[(c[q>>2]|0)+3>>0];b=c[r>>2]|0;t=p;c[t>>2]=b;c[t+4>>2]=((b|0)<0)<<31>>31;break};case 6:{b=s;c[b>>2]=d[c[q>>2]>>0]<<24|d[(c[q>>2]|0)+1>>0]<<16|d[(c[q>>2]|0)+2>>0]<<8|d[(c[q>>2]|0)+3>>0];c[b+4>>2]=0;b=c[s>>2]|0;f=s;c[f>>2]=d[(c[q>>2]|0)+4>>0]<<24|d[(c[q>>2]|0)+5>>0]<<16|d[(c[q>>2]|0)+6>>0]<<8|d[(c[q>>2]|0)+7>>0];c[f+4>>2]=b;f=s;b=c[f+4>>2]|0;t=p;c[t>>2]=c[f>>2];c[t+4>>2]=b;break};case 9:{t=p;c[t>>2]=1;c[t+4>>2]=0;break};case 8:{t=p;c[t>>2]=0;c[t+4>>2]=0;break};case 1:{b=a[c[q>>2]>>0]|0;t=p;c[t>>2]=b;c[t+4>>2]=((b|0)<0)<<31>>31;break};default:{c[h>>2]=Uw(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0)|0;t=c[h>>2]|0;i=j;return t|0}}while(0);b=o;s=c[b+4>>2]|0;t=p;f=c[t+4>>2]|0;do if(!((s|0)>(f|0)|((s|0)==(f|0)?(c[b>>2]|0)>>>0>(c[t>>2]|0)>>>0:0))){b=o;s=c[b+4>>2]|0;t=p;f=c[t+4>>2]|0;o=c[m>>2]|0;if((s|0)<(f|0)|((s|0)==(f|0)?(c[b>>2]|0)>>>0<(c[t>>2]|0)>>>0:0)){c[n>>2]=c[o+16>>2];break}if((e[o+4>>1]|0)>1){c[n>>2]=Vw(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,1)|0;break}else{c[n>>2]=a[(c[m>>2]|0)+6>>0];break}}else c[n>>2]=c[(c[m>>2]|0)+12>>2];while(0);c[h>>2]=c[n>>2];t=c[h>>2]|0;i=j;return t|0}function Tw(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;h=i;i=i+48|0;j=h+36|0;m=h+32|0;l=h+28|0;q=h+24|0;n=h+20|0;s=h+16|0;k=h+12|0;p=h+8|0;o=h+4|0;r=h;c[m>>2]=b;c[l>>2]=f;c[q>>2]=g;c[n>>2]=c[l>>2];g=(c[n>>2]|0)+1|0;if((d[(c[n>>2]|0)+1>>0]|0)<128)c[s>>2]=d[g>>0];else Rw(g,s)|0;do if((c[s>>2]|0)>=12){if(!(c[s>>2]&1)){c[k>>2]=c[(c[q>>2]|0)+16>>2];break}c[r>>2]=d[c[n>>2]>>0];c[o>>2]=((c[s>>2]|0)-12|0)/2|0;if(((c[r>>2]|0)+(c[o>>2]|0)|0)>(c[m>>2]|0)){b=(kj(67026)|0)&255;a[(c[q>>2]|0)+7>>0]=b;c[j>>2]=0;b=c[j>>2]|0;i=h;return b|0}if((c[(c[(c[q>>2]|0)+8>>2]|0)+12>>2]|0)<(c[o>>2]|0))s=c[(c[(c[q>>2]|0)+8>>2]|0)+12>>2]|0;else s=c[o>>2]|0;c[p>>2]=s;c[k>>2]=TE((c[n>>2]|0)+(c[r>>2]|0)|0,c[(c[(c[q>>2]|0)+8>>2]|0)+16>>2]|0,c[p>>2]|0)|0;if(c[k>>2]|0){l=c[q>>2]|0;if((c[k>>2]|0)>0){c[k>>2]=c[l+16>>2];break}else{c[k>>2]=c[l+12>>2];break}}c[k>>2]=(c[o>>2]|0)-(c[(c[(c[q>>2]|0)+8>>2]|0)+12>>2]|0);if(!(c[k>>2]|0))if((e[(c[q>>2]|0)+4>>1]|0)>1){c[k>>2]=Vw(c[m>>2]|0,c[l>>2]|0,c[q>>2]|0,1)|0;break}else{c[k>>2]=a[(c[q>>2]|0)+6>>0];break}else{l=c[q>>2]|0;if((c[k>>2]|0)>0){c[k>>2]=c[l+16>>2];break}else{c[k>>2]=c[l+12>>2];break}}}else c[k>>2]=c[(c[q>>2]|0)+12>>2];while(0);c[j>>2]=c[k>>2];b=c[j>>2]|0;i=h;return b|0}function Uw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;h=e+8|0;g=e+4|0;f=e;c[h>>2]=a;c[g>>2]=b;c[f>>2]=d;a=Vw(c[h>>2]|0,c[g>>2]|0,c[f>>2]|0,0)|0;i=e;return a|0}function Vw(f,g,j,k){f=f|0;g=g|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;p=i;i=i+160|0;o=p+148|0;A=p+144|0;K=p+140|0;l=p+136|0;J=p+132|0;q=p+128|0;E=p+124|0;B=p+120|0;v=p+116|0;m=p+112|0;C=p+108|0;n=p+104|0;H=p+100|0;s=p+40|0;I=p+96|0;r=p+92|0;G=p+32|0;t=p+24|0;u=p+16|0;x=p+8|0;w=p;F=p+88|0;z=p+84|0;y=p+80|0;c[A>>2]=f;c[K>>2]=g;c[l>>2]=j;c[J>>2]=k;c[m>>2]=0;c[C>>2]=c[(c[l>>2]|0)+8>>2];c[n>>2]=c[c[l>>2]>>2];c[H>>2]=c[K>>2];k=c[H>>2]|0;do if(c[J>>2]|0){j=(c[H>>2]|0)+1|0;if((d[k+1>>0]|0)<128){c[I>>2]=d[j>>0];k=1}else k=(Rw(j,I)|0)&255;c[v>>2]=1+(k&255);c[B>>2]=d[c[H>>2]>>0];K=c[B>>2]|0;c[q>>2]=K+(Ww(c[I>>2]|0)|0);c[E>>2]=1;c[C>>2]=(c[C>>2]|0)+40}else{I=c[H>>2]|0;if((d[k>>0]|0)<128){c[B>>2]=d[I>>0];I=1}else I=(Rw(I,B)|0)&255;c[v>>2]=I&255;c[q>>2]=c[B>>2];if((c[q>>2]|0)>>>0<=(c[A>>2]|0)>>>0){c[E>>2]=0;break}K=(kj(66745)|0)&255;a[(c[l>>2]|0)+7>>0]=K;c[o>>2]=0;K=c[o>>2]|0;i=p;return K|0}while(0);a:while(1){do if(e[(c[C>>2]|0)+8>>1]&4){c[r>>2]=d[(c[H>>2]|0)+(c[v>>2]|0)>>0];if((c[r>>2]|0)>>>0>=12){c[m>>2]=1;break}if(!(c[r>>2]|0)){c[m>>2]=-1;break}if((c[r>>2]|0)==7){K=c[C>>2]|0;h[G>>3]=+((c[K>>2]|0)>>>0)+4294967296.0*+(c[K+4>>2]|0);Xw((c[H>>2]|0)+(c[q>>2]|0)|0,c[r>>2]|0,s)|0;if(+h[s>>3]<+h[G>>3]){c[m>>2]=-1;break}if(!(+h[s>>3]>+h[G>>3]))break;c[m>>2]=1;break}else{g=Yw(c[r>>2]|0,(c[H>>2]|0)+(c[q>>2]|0)|0)|0;K=t;c[K>>2]=g;c[K+4>>2]=D;K=c[C>>2]|0;g=c[K+4>>2]|0;J=u;c[J>>2]=c[K>>2];c[J+4>>2]=g;J=t;g=c[J+4>>2]|0;K=u;f=c[K+4>>2]|0;if((g|0)<(f|0)|((g|0)==(f|0)?(c[J>>2]|0)>>>0<(c[K>>2]|0)>>>0:0)){c[m>>2]=-1;break}J=t;g=c[J+4>>2]|0;K=u;f=c[K+4>>2]|0;if(!((g|0)>(f|0)|((g|0)==(f|0)?(c[J>>2]|0)>>>0>(c[K>>2]|0)>>>0:0)))break;c[m>>2]=1;break}}else{if(e[(c[C>>2]|0)+8>>1]&8){c[r>>2]=d[(c[H>>2]|0)+(c[v>>2]|0)>>0];if((c[r>>2]|0)>>>0>=12){c[m>>2]=1;break}if(!(c[r>>2]|0)){c[m>>2]=-1;break}h[x>>3]=+h[c[C>>2]>>3];Xw((c[H>>2]|0)+(c[q>>2]|0)|0,c[r>>2]|0,s)|0;if((c[r>>2]|0)==7)h[w>>3]=+h[s>>3];else{K=s;h[w>>3]=+((c[K>>2]|0)>>>0)+4294967296.0*+(c[K+4>>2]|0)}if(+h[w>>3]<+h[x>>3]){c[m>>2]=-1;break}if(!(+h[w>>3]>+h[x>>3]))break;c[m>>2]=1;break}if(!(e[(c[C>>2]|0)+8>>1]&2)){k=d[(c[H>>2]|0)+(c[v>>2]|0)>>0]|0;if(!(e[(c[C>>2]|0)+8>>1]&16)){c[r>>2]=k;c[m>>2]=(c[r>>2]|0)!=0&1;break}I=(c[H>>2]|0)+(c[v>>2]|0)|0;if((k|0)<128)c[r>>2]=d[I>>0];else Rw(I,r)|0;if((c[r>>2]|0)>>>0>=12?(c[r>>2]&1|0)==0:0){c[z>>2]=(((c[r>>2]|0)-12|0)>>>0)/2|0;if(((c[q>>2]|0)+(c[z>>2]|0)|0)>>>0>(c[A>>2]|0)>>>0){q=63;break a}if((c[z>>2]|0)<(c[(c[C>>2]|0)+12>>2]|0))I=c[z>>2]|0;else I=c[(c[C>>2]|0)+12>>2]|0;c[y>>2]=I;c[m>>2]=TE((c[H>>2]|0)+(c[q>>2]|0)|0,c[(c[C>>2]|0)+16>>2]|0,c[y>>2]|0)|0;if(c[m>>2]|0)break;c[m>>2]=(c[z>>2]|0)-(c[(c[C>>2]|0)+12>>2]|0);break}c[m>>2]=-1;break}I=(c[H>>2]|0)+(c[v>>2]|0)|0;if((d[(c[H>>2]|0)+(c[v>>2]|0)>>0]|0)<128)c[r>>2]=d[I>>0];else Rw(I,r)|0;if((c[r>>2]|0)>>>0<12){c[m>>2]=-1;break}if(!(c[r>>2]&1)){c[m>>2]=1;break}c[s+12>>2]=(((c[r>>2]|0)-12|0)>>>0)/2|0;if(((c[q>>2]|0)+(c[s+12>>2]|0)|0)>>>0>(c[A>>2]|0)>>>0){q=47;break a}if(c[(c[n>>2]|0)+20+(c[E>>2]<<2)>>2]|0){a[s+10>>0]=a[(c[n>>2]|0)+4>>0]|0;c[s+32>>2]=c[(c[n>>2]|0)+12>>2];b[s+8>>1]=2;c[s+16>>2]=(c[H>>2]|0)+(c[q>>2]|0);c[m>>2]=cn(s,c[C>>2]|0,c[(c[n>>2]|0)+20+(c[E>>2]<<2)>>2]|0,(c[l>>2]|0)+7|0)|0;break}if((c[s+12>>2]|0)<(c[(c[C>>2]|0)+12>>2]|0))I=c[s+12>>2]|0;else I=c[(c[C>>2]|0)+12>>2]|0;c[F>>2]=I;c[m>>2]=TE((c[H>>2]|0)+(c[q>>2]|0)|0,c[(c[C>>2]|0)+16>>2]|0,c[F>>2]|0)|0;if(!(c[m>>2]|0))c[m>>2]=(c[s+12>>2]|0)-(c[(c[C>>2]|0)+12>>2]|0)}while(0);I=c[E>>2]|0;if(c[m>>2]|0){q=71;break}c[E>>2]=I+1;c[C>>2]=(c[C>>2]|0)+40;K=Ww(c[r>>2]|0)|0;c[q>>2]=(c[q>>2]|0)+K;K=Zw(c[r>>2]|0,0)|0;c[v>>2]=(c[v>>2]|0)+K;if((c[v>>2]|0)>>>0>=(c[B>>2]|0)>>>0){q=77;break}if((c[E>>2]|0)>=(e[(c[l>>2]|0)+4>>1]|0)){q=77;break}if((c[q>>2]|0)>>>0>(c[A>>2]|0)>>>0){q=77;break}}if((q|0)==47){K=(kj(66824)|0)&255;a[(c[l>>2]|0)+7>>0]=K;c[o>>2]=0;K=c[o>>2]|0;i=p;return K|0}else if((q|0)==63){K=(kj(66853)|0)&255;a[(c[l>>2]|0)+7>>0]=K;c[o>>2]=0;K=c[o>>2]|0;i=p;return K|0}else if((q|0)==71){if(a[(c[(c[n>>2]|0)+16>>2]|0)+I>>0]|0)c[m>>2]=0-(c[m>>2]|0);c[o>>2]=c[m>>2];K=c[o>>2]|0;i=p;return K|0}else if((q|0)==77){c[o>>2]=a[(c[l>>2]|0)+6>>0];K=c[o>>2]|0;i=p;return K|0}return 0}function Ww(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;e=b+4|0;f=b;c[f>>2]=a;a=c[f>>2]|0;if((c[f>>2]|0)>>>0>=12){c[e>>2]=((a-12|0)>>>0)/2|0;f=c[e>>2]|0;i=b;return f|0}else{c[e>>2]=d[24360+a>>0];f=c[e>>2]|0;i=b;return f|0}return 0}function Xw(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0;h=i;i=i+16|0;j=h+12|0;l=h+8|0;m=h+4|0;k=h;c[l>>2]=e;c[m>>2]=f;c[k>>2]=g;switch(c[m>>2]|0){case 4:{f=a[c[l>>2]>>0]<<24|d[(c[l>>2]|0)+1>>0]<<16|d[(c[l>>2]|0)+2>>0]<<8|d[(c[l>>2]|0)+3>>0];e=c[k>>2]|0;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[(c[k>>2]|0)+8>>1]=4;c[j>>2]=4;e=c[j>>2]|0;i=h;return e|0};case 2:{f=a[c[l>>2]>>0]<<8|d[(c[l>>2]|0)+1>>0];e=c[k>>2]|0;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[(c[k>>2]|0)+8>>1]=4;c[j>>2]=2;e=c[j>>2]|0;i=h;return e|0};case 9:case 8:{e=c[k>>2]|0;c[e>>2]=(c[m>>2]|0)-8;c[e+4>>2]=0;b[(c[k>>2]|0)+8>>1]=4;c[j>>2]=0;e=c[j>>2]|0;i=h;return e|0};case 3:{f=a[c[l>>2]>>0]<<16|d[(c[l>>2]|0)+1>>0]<<8|d[(c[l>>2]|0)+2>>0];e=c[k>>2]|0;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[(c[k>>2]|0)+8>>1]=4;c[j>>2]=3;e=c[j>>2]|0;i=h;return e|0};case 1:{f=a[c[l>>2]>>0]|0;e=c[k>>2]|0;c[e>>2]=f;c[e+4>>2]=((f|0)<0)<<31>>31;b[(c[k>>2]|0)+8>>1]=4;c[j>>2]=1;e=c[j>>2]|0;i=h;return e|0};case 5:{e=d[(c[l>>2]|0)+2>>0]<<24|d[(c[l>>2]|0)+3>>0]<<16|d[(c[l>>2]|0)+4>>0]<<8|d[(c[l>>2]|0)+5>>0];f=a[c[l>>2]>>0]<<8|d[(c[l>>2]|0)+1>>0];f=bF(e|0,0,lF(0,1,f|0,((f|0)<0)<<31>>31|0)|0,D|0)|0;e=c[k>>2]|0;c[e>>2]=f;c[e+4>>2]=D;b[(c[k>>2]|0)+8>>1]=4;c[j>>2]=6;e=c[j>>2]|0;i=h;return e|0};case 7:case 6:{c[j>>2]=_w(c[l>>2]|0,c[m>>2]|0,c[k>>2]|0)|0;e=c[j>>2]|0;i=h;return e|0};case 0:case 11:case 10:{b[(c[k>>2]|0)+8>>1]=1;c[j>>2]=0;e=c[j>>2]|0;i=h;return e|0};default:{c[(c[k>>2]|0)+16>>2]=c[l>>2];c[(c[k>>2]|0)+12>>2]=(((c[m>>2]|0)-12|0)>>>0)/2|0;b[(c[k>>2]|0)+8>>1]=b[24352+((c[m>>2]&1)<<1)>>1]|0;c[j>>2]=c[(c[k>>2]|0)+12>>2];e=c[j>>2]|0;i=h;return e|0}}return 0}function Yw(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;g=i;i=i+32|0;f=g+8|0;l=g+24|0;h=g+20|0;j=g+16|0;k=g;c[l>>2]=b;c[h>>2]=e;switch(c[l>>2]|0){case 5:{k=d[(c[h>>2]|0)+2>>0]<<24|d[(c[h>>2]|0)+3>>0]<<16|d[(c[h>>2]|0)+4>>0]<<8|d[(c[h>>2]|0)+5>>0];l=a[c[h>>2]>>0]<<8|d[(c[h>>2]|0)+1>>0];b=f;c[b>>2]=bF(k|0,0,lF(0,1,l|0,((l|0)<0)<<31>>31|0)|0,D|0)|0;c[b+4>>2]=D;break};case 4:{c[j>>2]=d[c[h>>2]>>0]<<24|d[(c[h>>2]|0)+1>>0]<<16|d[(c[h>>2]|0)+2>>0]<<8|d[(c[h>>2]|0)+3>>0];l=c[j>>2]|0;b=f;c[b>>2]=l;c[b+4>>2]=((l|0)<0)<<31>>31;break};case 6:{b=k;c[b>>2]=d[c[h>>2]>>0]<<24|d[(c[h>>2]|0)+1>>0]<<16|d[(c[h>>2]|0)+2>>0]<<8|d[(c[h>>2]|0)+3>>0];c[b+4>>2]=0;b=c[k>>2]|0;l=k;c[l>>2]=d[(c[h>>2]|0)+4>>0]<<24|d[(c[h>>2]|0)+5>>0]<<16|d[(c[h>>2]|0)+6>>0]<<8|d[(c[h>>2]|0)+7>>0];c[l+4>>2]=b;l=c[k+4>>2]|0;b=f;c[b>>2]=c[k>>2];c[b+4>>2]=l;break};case 2:{l=a[c[h>>2]>>0]<<8|d[(c[h>>2]|0)+1>>0];b=f;c[b>>2]=l;c[b+4>>2]=((l|0)<0)<<31>>31;break};case 3:{l=a[c[h>>2]>>0]<<16|d[(c[h>>2]|0)+1>>0]<<8|d[(c[h>>2]|0)+2>>0];b=f;c[b>>2]=l;c[b+4>>2]=((l|0)<0)<<31>>31;break};case 1:case 0:{l=a[c[h>>2]>>0]|0;b=f;c[b>>2]=l;c[b+4>>2]=((l|0)<0)<<31>>31;break};default:{b=f;c[b>>2]=(c[l>>2]|0)-8;c[b+4>>2]=0}}b=f;D=c[b+4>>2]|0;i=g;return c[b>>2]|0}function Zw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;f=d;e=d+8|0;g=f;c[g>>2]=a;c[g+4>>2]=b;c[e>>2]=0;do{c[e>>2]=(c[e>>2]|0)+1;a=f;a=cF(c[a>>2]|0,c[a+4>>2]|0,7)|0;g=f;c[g>>2]=a;c[g+4>>2]=D;g=f}while(((c[g>>2]|0)!=0|(c[g+4>>2]|0)!=0)&(c[e>>2]|0)<9);i=d;return c[e>>2]|0}function _w(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;n=g+20|0;l=g+16|0;j=g+12|0;k=g;m=g+8|0;c[n>>2]=a;c[l>>2]=e;c[j>>2]=f;e=k;c[e>>2]=(d[c[n>>2]>>0]|0)<<24|(d[(c[n>>2]|0)+1>>0]|0)<<16|(d[(c[n>>2]|0)+2>>0]|0)<<8|(d[(c[n>>2]|0)+3>>0]|0);c[e+4>>2]=0;c[m>>2]=(d[(c[n>>2]|0)+4>>0]|0)<<24|(d[(c[n>>2]|0)+5>>0]|0)<<16|(d[(c[n>>2]|0)+6>>0]|0)<<8|(d[(c[n>>2]|0)+7>>0]|0);e=bF(0,c[k>>2]|0,c[m>>2]|0,0)|0;a=k;c[a>>2]=e;c[a+4>>2]=D;if((c[l>>2]|0)==6){l=k;m=c[l+4>>2]|0;n=c[j>>2]|0;c[n>>2]=c[l>>2];c[n+4>>2]=m;b[(c[j>>2]|0)+8>>1]=4;i=g;return 8}else{n=c[j>>2]|0;c[n+0>>2]=c[k+0>>2];c[n+4>>2]=c[k+4>>2];n=($w(+h[c[j>>2]>>3])|0)!=0;b[(c[j>>2]|0)+8>>1]=n?1:8;i=g;return 8}return 0}function $w(a){a=+a;var b=0,d=0,e=0,f=0,g=0;d=i;i=i+32|0;g=d+16|0;b=d+24|0;f=d+8|0;e=d;h[g>>3]=a;h[f>>3]=+h[g>>3];h[e>>3]=+h[f>>3];c[b>>2]=+h[f>>3]!=+h[e>>3]&1;i=d;return c[b>>2]|0}function ax(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=i;i=i+32|0;k=l+20|0;n=l+16|0;m=l+12|0;o=l+8|0;p=l+4|0;h=l;c[n>>2]=f;c[m>>2]=g;if((d[(c[n>>2]|0)+73>>0]|0)!=1){if((d[(c[n>>2]|0)+73>>0]|0)>=3)g=vw(c[n>>2]|0)|0;else g=0;c[o>>2]=g;if(c[o>>2]|0){c[k>>2]=c[o>>2];f=c[k>>2]|0;i=l;return f|0}if(!(d[(c[n>>2]|0)+73>>0]|0)){c[c[m>>2]>>2]=1;c[k>>2]=0;f=c[k>>2]|0;i=l;return f|0}if((c[(c[n>>2]|0)+68>>2]|0)!=0?(a[(c[n>>2]|0)+73>>0]=1,f=(c[(c[n>>2]|0)+68>>2]|0)>0,c[(c[n>>2]|0)+68>>2]=0,f):0){c[k>>2]=0;f=c[k>>2]|0;i=l;return f|0}}c[h>>2]=c[(c[n>>2]|0)+120+(b[(c[n>>2]|0)+76>>1]<<2)>>2];f=(c[n>>2]|0)+78+(b[(c[n>>2]|0)+76>>1]<<1)|0;g=(b[f>>1]|0)+1<<16>>16;b[f>>1]=g;c[p>>2]=g&65535;g=(a[(c[h>>2]|0)+5>>0]|0)!=0;if((c[p>>2]|0)<(e[(c[h>>2]|0)+18>>1]|0))if(g){c[k>>2]=0;f=c[k>>2]|0;i=l;return f|0}else{c[k>>2]=bx(c[n>>2]|0)|0;f=c[k>>2]|0;i=l;return f|0}if(!g){f=c[n>>2]|0;c[o>>2]=ww(f,Hh((c[(c[h>>2]|0)+56>>2]|0)+((d[(c[h>>2]|0)+6>>0]|0)+8)|0)|0)|0;if(c[o>>2]|0){c[k>>2]=c[o>>2];f=c[k>>2]|0;i=l;return f|0}else{c[k>>2]=bx(c[n>>2]|0)|0;f=c[k>>2]|0;i=l;return f|0}}do{if(!(b[(c[n>>2]|0)+76>>1]|0)){j=17;break}yw(c[n>>2]|0);c[h>>2]=c[(c[n>>2]|0)+120+(b[(c[n>>2]|0)+76>>1]<<2)>>2]}while((e[(c[n>>2]|0)+78+(b[(c[n>>2]|0)+76>>1]<<1)>>1]|0)>=(e[(c[h>>2]|0)+18>>1]|0));if((j|0)==17){c[c[m>>2]>>2]=1;a[(c[n>>2]|0)+73>>0]=0;c[k>>2]=0;f=c[k>>2]|0;i=l;return f|0}if(a[(c[h>>2]|0)+2>>0]|0){c[k>>2]=sw(c[n>>2]|0,c[m>>2]|0)|0;f=c[k>>2]|0;i=l;return f|0}else{c[k>>2]=0;f=c[k>>2]|0;i=l;return f|0}return 0}function bx(f){f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+16|0;j=g+12|0;l=g+8|0;h=g+4|0;k=g;c[j>>2]=f;c[h>>2]=0;while(1){if(c[h>>2]|0){f=5;break}f=c[(c[j>>2]|0)+120+(b[(c[j>>2]|0)+76>>1]<<2)>>2]|0;c[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[(c[f>>2]|0)+8>>2]|0);wn(c[g>>2]|0,c[(c[e>>2]|0)+12>>2]|0);Xb(c[g>>2]|0,c[e>>2]|0);i=d;return}function ex(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[f>>2]=a;c[g>>2]=b;if((c[f>>2]|0)==0|(c[g>>2]|0)==0){c[e>>2]=1;a=c[e>>2]|0;i=d;return a|0}c[h>>2]=0;while(1){if((c[h>>2]|0)>=(c[c[g>>2]>>2]|0)){b=8;break}if((ir(c[f>>2]|0,c[(c[(c[g>>2]|0)+4>>2]|0)+((c[h>>2]|0)*20|0)+4>>2]|0)|0)>=0){b=6;break}c[h>>2]=(c[h>>2]|0)+1}if((b|0)==6){c[e>>2]=1;a=c[e>>2]|0;i=d;return a|0}else if((b|0)==8){c[e>>2]=0;a=c[e>>2]|0;i=d;return a|0}return 0}function fx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;d=e+8|0;g=e+4|0;f=e;c[g>>2]=a;c[f>>2]=b;b=(c[f>>2]|0)==0;do if(c[g>>2]|0)if(b){c[d>>2]=0;break}else{c[d>>2]=(xc(c[g>>2]|0,c[f>>2]|0)|0)==0&1;break}else c[d>>2]=b&1;while(0);i=e;return c[d>>2]|0}function gx(a,f){a=a|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+16|0;h=g+12|0;k=g+8|0;j=g+4|0;l=g;c[k>>2]=a;c[j>>2]=f;if((e[(c[k>>2]|0)+50>>1]|0)!=(e[(c[j>>2]|0)+50>>1]|0)){c[h>>2]=0;a=c[h>>2]|0;i=g;return a|0}if((d[(c[k>>2]|0)+54>>0]|0)!=(d[(c[j>>2]|0)+54>>0]|0)){c[h>>2]=0;a=c[h>>2]|0;i=g;return a|0}c[l>>2]=0;while(1){if((c[l>>2]|0)>=(e[(c[j>>2]|0)+50>>1]|0)){f=14;break}if((b[(c[(c[j>>2]|0)+4>>2]|0)+(c[l>>2]<<1)>>1]|0)!=(b[(c[(c[k>>2]|0)+4>>2]|0)+(c[l>>2]<<1)>>1]|0)){f=8;break}if((d[(c[(c[j>>2]|0)+28>>2]|0)+(c[l>>2]|0)>>0]|0)!=(d[(c[(c[k>>2]|0)+28>>2]|0)+(c[l>>2]|0)>>0]|0)){f=10;break}if(!(fx(c[(c[(c[j>>2]|0)+32>>2]|0)+(c[l>>2]<<2)>>2]|0,c[(c[(c[k>>2]|0)+32>>2]|0)+(c[l>>2]<<2)>>2]|0)|0)){f=12;break}c[l>>2]=(c[l>>2]|0)+1}if((f|0)==8){c[h>>2]=0;a=c[h>>2]|0;i=g;return a|0}else if((f|0)==10){c[h>>2]=0;a=c[h>>2]|0;i=g;return a|0}else if((f|0)==12){c[h>>2]=0;a=c[h>>2]|0;i=g;return a|0}else if((f|0)==14)if(Dq(c[(c[j>>2]|0)+36>>2]|0,c[(c[k>>2]|0)+36>>2]|0,-1)|0){c[h>>2]=0;a=c[h>>2]|0;i=g;return a|0}else{c[h>>2]=1;a=c[h>>2]|0;i=g;return a|0}return 0}function hx(a,d,e,f,g,h,j,k){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;l=i;i=i+96|0;z=l+88|0;y=l+84|0;v=l+80|0;C=l+76|0;A=l+72|0;D=l+68|0;m=l+64|0;q=l+60|0;n=l+56|0;x=l+52|0;u=l+48|0;E=l+44|0;r=l+40|0;w=l+36|0;s=l+32|0;o=l+28|0;t=l+24|0;p=l+20|0;B=l;c[z>>2]=a;c[y>>2]=d;c[v>>2]=e;c[C>>2]=f;c[A>>2]=g;c[D>>2]=h;c[m>>2]=j;c[q>>2]=k;c[n>>2]=c[(c[z>>2]|0)+8>>2];c[x>>2]=0;c[u>>2]=0;c[t>>2]=c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=c[n>>2];break}c[f>>2]=c[l>>2];a=c[f>>2]|0;i=g;return a|0}while(0);c[h>>2]=(c[c[l>>2]>>2]|0)-1;while(1){if((c[h>>2]|0)<(c[j>>2]|0))break;e=(c[l>>2]|0)+8+(((c[h>>2]|0)+(c[k>>2]|0)|0)*72|0)+0|0;n=(c[l>>2]|0)+8+((c[h>>2]|0)*72|0)+0|0;m=e+72|0;do{c[e>>2]=c[n>>2];e=e+4|0;n=n+4|0}while((e|0)<(m|0));c[h>>2]=(c[h>>2]|0)+ -1}a=c[l>>2]|0;c[a>>2]=(c[a>>2]|0)+(c[k>>2]|0);_E((c[l>>2]|0)+8+((c[j>>2]|0)*72|0)|0,0,(c[k>>2]|0)*72|0)|0;c[h>>2]=c[j>>2];while(1){if((c[h>>2]|0)>=((c[j>>2]|0)+(c[k>>2]|0)|0))break;c[(c[l>>2]|0)+8+((c[h>>2]|0)*72|0)+40>>2]=-1;c[h>>2]=(c[h>>2]|0)+1}c[f>>2]=c[l>>2];a=c[f>>2]|0;i=g;return a|0}function nx(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+32|0;h=f;g=f+20|0;j=f+16|0;m=f+12|0;l=f+8|0;k=f+4|0;c[j>>2]=a;c[m>>2]=b;c[l>>2]=e;c[k>>2]=d[c[m>>2]>>0];if((c[l>>2]|0)>1?(c[k>>2]|0)==10|(c[k>>2]|0)==11:0){Se(c[j>>2]|0,25392,h);c[g>>2]=1;m=c[g>>2]|0;i=f;return m|0}c[g>>2]=0;m=c[g>>2]|0;i=f;return m|0}function ox(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;e=d+4|0;b=d;c[e>>2]=a;c[b>>2]=0;sr(c[e>>2]|0,b);i=d;return c[b>>2]|0}function px(f,g,h,j,k){f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z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]=0;Q=c[x>>2]|0;i=E;return Q|0}if(e[(c[r>>2]|0)+6>>1]&1){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}if((c[(c[r>>2]|0)+60>>2]|0)!=0?(c[s>>2]|0)!=0?1:(c[c[w>>2]>>2]|0)>1:0){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}if((c[C>>2]|0)!=0?(e[(c[H>>2]|0)+6>>1]&1|0)!=0:0){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}if((c[(c[H>>2]|0)+48>>2]|0)!=0?(c[(c[r>>2]|0)+48>>2]|0)!=0:0){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}if((c[s>>2]|0)!=0?(c[(c[r>>2]|0)+48>>2]|0)!=0:0){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}if((c[(c[r>>2]|0)+60>>2]|0)!=0?(c[(c[H>>2]|0)+36>>2]|0)!=0:0){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}if((c[(c[r>>2]|0)+60>>2]|0)!=0?(e[(c[H>>2]|0)+6>>1]&1|0)!=0:0){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}if(e[(c[r>>2]|0)+6>>1]&6144){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}if((e[(c[H>>2]|0)+6>>1]&2048|0)!=0?(c[(c[r>>2]|0)+52>>2]|0)!=0:0){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}if(d[(c[B>>2]|0)+36>>0]&32){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}a:do if(c[(c[r>>2]|0)+52>>2]|0){if(c[(c[r>>2]|0)+48>>2]|0){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}do if(!(c[s>>2]|0)){if(e[(c[H>>2]|0)+6>>1]&1)break;if((c[c[w>>2]>>2]|0)!=1)break;c[o>>2]=c[r>>2];while(1){if(!(c[o>>2]|0))break;if(e[(c[o>>2]|0)+6>>1]&5){N=58;break}if((c[(c[o>>2]|0)+52>>2]|0)!=0?(d[(c[o>>2]|0)+4>>0]|0)!=116:0){N=58;break}if((c[c[(c[o>>2]|0)+32>>2]>>2]|0)<1){N=58;break}if((c[c[c[r>>2]>>2]>>2]|0)!=(c[c[c[o>>2]>>2]>>2]|0)){N=58;break}c[o>>2]=c[(c[o>>2]|0)+52>>2]}if((N|0)==58){c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}if(!(c[(c[H>>2]|0)+48>>2]|0))break a;c[P>>2]=0;while(1){if((c[P>>2]|0)>=(c[c[(c[H>>2]|0)+48>>2]>>2]|0))break a;if(!(e[(c[(c[(c[H>>2]|0)+48>>2]|0)+4>>2]|0)+((c[P>>2]|0)*20|0)+16>>1]|0))break;c[P>>2]=(c[P>>2]|0)+1}c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}while(0);c[x>>2]=0;Q=c[x>>2]|0;i=E;return Q|0}while(0);c[(c[I>>2]|0)+492>>2]=c[(c[B>>2]|0)+8>>2];ap(c[I>>2]|0,21,0,0,0)|0;c[(c[I>>2]|0)+492>>2]=c[Q>>2];c[r>>2]=c[(c[r>>2]|0)+52>>2];while(1){if(!(c[r>>2]|0))break;c[O>>2]=c[(c[H>>2]|0)+48>>2];c[J>>2]=c[(c[H>>2]|0)+60>>2];c[K>>2]=c[(c[H>>2]|0)+64>>2];c[L>>2]=c[(c[H>>2]|0)+52>>2];c[(c[H>>2]|0)+48>>2]=0;c[(c[H>>2]|0)+32>>2]=0;c[(c[H>>2]|0)+52>>2]=0;c[(c[H>>2]|0)+60>>2]=0;c[(c[H>>2]|0)+64>>2]=0;c[M>>2]=Wp(c[n>>2]|0,c[H>>2]|0,0)|0;c[(c[H>>2]|0)+64>>2]=c[K>>2];c[(c[H>>2]|0)+60>>2]=c[J>>2];c[(c[H>>2]|0)+48>>2]=c[O>>2];c[(c[H>>2]|0)+32>>2]=c[w>>2];a[(c[H>>2]|0)+4>>0]=116;f=c[L>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|0){c[(c[p>>2]|0)+60>>2]=c[(c[r>>2]|0)+60>>2];c[(c[r>>2]|0)+60>>2]=0}c[p>>2]=c[(c[p>>2]|0)+52>>2];c[r>>2]=c[(c[r>>2]|0)+52>>2]}tn(c[n>>2]|0,c[o>>2]|0);c[x>>2]=1;Q=c[x>>2]|0;i=E;return Q|0}function qx(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=b;a[(c[e>>2]|0)+19>>0]=0;c[(c[e>>2]|0)+56>>2]=0;i=d;return}function rx(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=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;q=i;i=i+224|0;G=q;p=q+212|0;s=q+208|0;o=q+204|0;m=q+200|0;j=q+196|0;C=q+192|0;z=q+188|0;n=q+168|0;k=q+164|0;l=q+160|0;x=q+156|0;y=q+152|0;A=q+148|0;B=q+144|0;r=q+140|0;M=q+216|0;L=q+136|0;J=q+132|0;K=q+128|0;O=q+124|0;N=q+104|0;F=q+100|0;E=q+96|0;H=q+92|0;I=q+88|0;R=q+84|0;U=q+80|0;Q=q+76|0;P=q+72|0;T=q+68|0;X=q+64|0;Y=q+60|0;Z=q+56|0;_=q+36|0;S=q+32|0;V=q+28|0;t=q+24|0;u=q+20|0;W=q+16|0;v=q+12|0;w=q+8|0;$=q+4|0;c[s>>2]=f;c[o>>2]=g;c[m>>2]=h;c[j>>2]=0;c[k>>2]=0;c[x>>2]=0;c[y>>2]=0;c[l>>2]=c[c[s>>2]>>2];c[C>>2]=c[(c[o>>2]|0)+52>>2];f=c[m>>2]|0;c[n+0>>2]=c[f+0>>2];c[n+4>>2]=c[f+4>>2];c[n+8>>2]=c[f+8>>2];c[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a=(c[l>>2]|0)+72|0;c[a>>2]=(c[a>>2]|0)+1;Os(c[l>>2]|0,c[(c[f>>2]|0)+64>>2]|0,c[m>>2]|0);Ir(c[g>>2]|0,38,c[m>>2]|0)|0;c[n>>2]=Ir(c[g>>2]|0,137,c[m>>2]|0)|0;fp(c[g>>2]|0,25,0,c[m>>2]|0)|0;zp(c[g>>2]|0,c[n>>2]|0);ip(c[g>>2]|0,89,c[e>>2]|0,c[m>>2]|0,(c[m>>2]|0)+1|0)|0;c[n>>2]=Ir(c[g>>2]|0,137,c[e>>2]|0)|0;fp(c[g>>2]|0,25,-1,(c[m>>2]|0)+1|0)|0;zp(c[g>>2]|0,c[n>>2]|0);i=k;return}function ux(a){a=a|0;var d=0,e=0;d=i;i=i+16|0;e=d;c[e>>2]=a;a=Zt(b[(c[e>>2]|0)+32>>1]|0)|0;i=d;return a|0}function vx(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;c[b>>2]=a;i=e;return d[(c[b>>2]|0)+40>>0]|0|0}function wx(b){b=b|0;var d=0,e=0;e=i;i=i+16|0;d=e;c[d>>2]=b;i=e;return a[(c[d>>2]|0)+36>>0]|0}function xx(b,f,g,h,j,k,l,m,n){b=b|0;f=f|0;g=g|0;h=h|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,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;r=i;i=i+128|0;q=r+124|0;s=r+120|0;P=r+116|0;U=r+112|0;t=r+108|0;R=r+104|0;x=r+100|0;J=r+96|0;o=r+92|0;p=r+88|0;H=r+84|0;T=r+80|0;u=r+76|0;z=r+72|0;v=r+68|0;y=r+64|0;w=r+60|0;S=r+56|0;K=r+52|0;L=r+48|0;O=r+44|0;M=r+40|0;B=r+36|0;Q=r+32|0;A=r+28|0;E=r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u>>2]|0,c[y>>2]|0,c[M>>2]|0)|0;fp(c[p>>2]|0,110,c[v>>2]|0,c[M>>2]|0)|0;lp(c[q>>2]|0,c[M>>2]|0);break};default:{}}while(0);if(c[t>>2]|0){i=r;return}if(!(c[(c[s>>2]|0)+8>>2]|0)){i=r;return}ip(c[p>>2]|0,139,c[(c[s>>2]|0)+8>>2]|0,c[o>>2]|0,-1)|0;i=r;return}function yx(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[b>>2]|0)+48>>2]|0}function zx(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;b=d;c[b>>2]=a;i=d;return c[(c[b>>2]|0)+52>>2]|0}function Ax(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;g=d+12|0;f=d+8|0;h=d+4|0;e=d;c[g>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){i=d;return}c[h>>2]=c[(c[f>>2]|0)+4>>2];c[e>>2]=0;while(1){if((c[e>>2]|0)>=(c[c[f>>2]>>2]|0))break;Bx(c[g>>2]|0,c[c[h>>2]>>2]|0);c[e>>2]=(c[e>>2]|0)+1;c[h>>2]=(c[h>>2]|0)+20}i=d;return}function Bx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+32|0;g=d+28|0;e=d+24|0;f=d;c[g>>2]=a;c[e>>2]=b;c[f+0>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[f+12>>2]=0;c[f+16>>2]=0;c[f+20>>2]=0;c[f>>2]=48;c[f+4>>2]=49;c[f+20>>2]=c[g>>2];sq(f,c[e>>2]|0)|0;i=d;return}function Cx(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;j=e;f=e+16|0;h=e+12|0;g=e+8|0;k=e+4|0;c[f>>2]=a;c[h>>2]=b;if((d[(c[f>>2]|0)+450>>0]|0|0)!=2){i=e;return}c[g>>2]=c[(c[f>>2]|0)+8>>2];a=c[c[f>>2]>>2]|0;c[j>>2]=c[h>>2];c[k>>2]=Te(a,25024,j)|0;hp(c[g>>2]|0,155,c[(c[f>>2]|0)+464>>2]|0,0,0,c[k>>2]|0,-1)|0;i=e;return}function Dx(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;c[b>>2]=a;i=e;return d[(c[b>>2]|0)+37>>0]|0|0}function Ex(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;f=i;i=i+16|0;j=f+12|0;h=f+8|0;k=f+4|0;g=f;c[j>>2]=a;c[h>>2]=b;c[k>>2]=d;c[g>>2]=e;ip(c[(c[j>>2]|0)+8>>2]|0,32,c[h>>2]|0,c[k>>2]|0,c[g>>2]|0)|0;Cs(c[j>>2]|0,c[h>>2]|0,c[g>>2]|0);i=f;return}function Fx(b,d){b=b|0;d=d|0;var f=0,g=0,h=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;o=i;i=i+64|0;h=o+56|0;g=o+52|0;m=o+48|0;k=o+44|0;n=o+40|0;j=o+36|0;u=o+32|0;l=o+28|0;q=o+24|0;v=o+20|0;t=o+16|0;s=o+12|0;f=o+8|0;r=o+4|0;p=o;c[h>>2]=b;c[g>>2]=d;c[m>>2]=c[(c[h>>2]|0)+8>>2];c[n>>2]=0;c[j>>2]=0;a[c[g>>2]>>0]=1;c[k>>2]=0;c[u>>2]=c[(c[g>>2]|0)+40>>2];while(1){if((c[k>>2]|0)>=(c[(c[g>>2]|0)+44>>2]|0))break;c[v>>2]=0;c[s>>2]=c[(c[c[u>>2]>>2]|0)+20>>2];if(c[s>>2]|0){c[q>>2]=c[c[s>>2]>>2];c[t>>2]=ys(c[h>>2]|0,c[q>>2]|0)|0;Ws(c[h>>2]|0,c[s>>2]|0,c[t>>2]|0,1)|0}else{c[q>>2]=0;c[t>>2]=0}if((c[(c[u>>2]|0)+12>>2]|0)>=0){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if(!(c[j>>2]|0)){i=o;return}zp(c[m>>2]|0,c[j>>2]|0);i=o;return}function Gx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+32|0;k=d+20|0;h=d+16|0;j=d+12|0;g=d+8|0;e=d+4|0;f=d;c[k>>2]=a;c[h>>2]=b;c[j>>2]=c[(c[k>>2]|0)+8>>2];c[g>>2]=0;c[e>>2]=c[(c[h>>2]|0)+40>>2];while(1){if((c[g>>2]|0)>=(c[(c[h>>2]|0)+44>>2]|0))break;c[f>>2]=c[(c[c[e>>2]>>2]|0)+20>>2];if(c[f>>2]|0)b=c[c[f>>2]>>2]|0;else b=0;hp(c[j>>2]|0,140,c[(c[e>>2]|0)+8>>2]|0,b,0,c[(c[e>>2]|0)+4>>2]|0,-5)|0;c[g>>2]=(c[g>>2]|0)+1;c[e>>2]=(c[e>>2]|0)+16}i=d;return}function Hx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;h=i;i=i+48|0;m=h;j=h+32|0;d=h+28|0;l=h+24|0;g=h+20|0;e=h+16|0;n=h+12|0;f=h+8|0;k=h+4|0;c[j>>2]=a;c[d>>2]=b;c[l>>2]=c[(c[j>>2]|0)+8>>2];c[n>>2]=(c[(c[d>>2]|0)+44>>2]|0)+(c[(c[d>>2]|0)+32>>2]|0);if(!(c[n>>2]|0)){i=h;return}ip(c[l>>2]|0,28,0,c[(c[d>>2]|0)+16>>2]|0,c[(c[d>>2]|0)+20>>2]|0)|0;c[e>>2]=c[(c[d>>2]|0)+40>>2];c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[(c[d>>2]|0)+44>>2]|0))break;do if((c[(c[e>>2]|0)+12>>2]|0)>=0){c[f>>2]=c[c[e>>2]>>2];if((c[(c[f>>2]|0)+20>>2]|0)!=0?(c[c[(c[f>>2]|0)+20>>2]>>2]|0)==1:0){c[k>>2]=sx(c[j>>2]|0,c[(c[f>>2]|0)+20>>2]|0,0,0)|0;hp(c[l>>2]|0,57,c[(c[e>>2]|0)+12>>2]|0,0,0,c[k>>2]|0,-6)|0;break}Se(c[j>>2]|0,24968,m);c[(c[e>>2]|0)+12>>2]=-1}while(0);c[g>>2]=(c[g>>2]|0)+1;c[e>>2]=(c[e>>2]|0)+16}i=h;return}function Ix(a,b){a=a|0;b=b|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+32|0;g=f+16|0;l=f+12|0;k=f+8|0;h=f+4|0;j=f;c[l>>2]=a;c[k>>2]=b;if((((c[(c[l>>2]|0)+36>>2]|0)==0?(c[c[c[l>>2]>>2]>>2]|0)==1:0)?(c[c[(c[l>>2]|0)+32>>2]>>2]|0)==1:0)?(c[(c[(c[l>>2]|0)+32>>2]|0)+28>>2]|0)==0:0){c[h>>2]=c[(c[(c[l>>2]|0)+32>>2]|0)+24>>2];c[j>>2]=c[c[(c[c[l>>2]>>2]|0)+4>>2]>>2];if((d[(c[h>>2]|0)+44>>0]|0)&16){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}if((d[c[j>>2]>>0]|0|0)!=155){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}if(!(c[(c[k>>2]|0)+44>>2]|0)){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}if(!((e[(c[(c[(c[k>>2]|0)+40>>2]|0)+4>>2]|0)+2>>1]|0)&256)){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}if(c[(c[j>>2]|0)+4>>2]&16){c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}else{c[g>>2]=c[h>>2];a=c[g>>2]|0;i=f;return a|0}}c[g>>2]=0;a=c[g>>2]|0;i=f;return a|0}function Jx(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+32|0;k=l;h=l+28|0;j=l+24|0;m=l+20|0;n=l+16|0;g=l+12|0;c[h>>2]=b;c[j>>2]=e;c[m>>2]=f;if((d[(c[h>>2]|0)+450>>0]|0|0)!=2){i=l;return}if(c[m>>2]|0)if(!((d[(c[j>>2]|0)+44>>0]|0)&32))f=1;else f=(a[(c[m>>2]|0)+55>>0]&3|0)==2^1;else f=0;c[n>>2]=f&1;e=c[c[h>>2]>>2]|0;f=(c[n>>2]|0)!=0?24944:1216;if(c[n>>2]|0)m=c[c[m>>2]>>2]|0;else m=1216;c[k>>2]=c[c[j>>2]>>2];c[k+4>>2]=f;c[k+8>>2]=m;c[g>>2]=Te(e,24920,k)|0;hp(c[(c[h>>2]|0)+8>>2]|0,155,c[(c[h>>2]|0)+464>>2]|0,0,0,c[g>>2]|0,-1)|0;i=l;return}function Kx(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+32|0;l=e+20|0;h=e+16|0;f=e+12|0;j=e+8|0;g=e+4|0;k=e;c[l>>2]=a;c[h>>2]=b;c[f>>2]=0;c[c[h>>2]>>2]=0;do if((((c[(c[l>>2]|0)+44>>2]|0)==1?(c[j>>2]=c[c[(c[l>>2]|0)+40>>2]>>2],c[g>>2]=c[(c[j>>2]|0)+20>>2],(c[g>>2]|0)!=0):0)?(c[c[g>>2]>>2]|0)==1:0)?(d[c[c[(c[g>>2]|0)+4>>2]>>2]>>0]|0|0)==156:0){c[k>>2]=c[(c[j>>2]|0)+8>>2];if(!(xc(c[k>>2]|0,8312)|0)){c[f>>2]=1;c[c[h>>2]>>2]=c[g>>2];break}if(!(xc(c[k>>2]|0,8320)|0)){c[f>>2]=2;c[c[h>>2]>>2]=c[g>>2]}}while(0);i=e;return c[f>>2]&255|0}function Lx(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;h=i;i=i+96|0;u=h+84|0;A=h+80|0;j=h+76|0;s=h+72|0;r=h+68|0;l=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,9,n,m)|0;if(!(c[(c[j>>2]|0)+12>>2]|0)){b=c[l>>2]|0;a=c[k>>2]|0;Pr(b,a);i=h;return}Ir(c[l>>2]|0,18,c[(c[j>>2]|0)+12>>2]|0)|0;b=c[l>>2]|0;a=c[k>>2]|0;Pr(b,a);i=h;return}function Mx(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;u=i;i=i+80|0;z=u;k=u+68|0;l=u+64|0;m=u+60|0;q=u+56|0;n=u+52|0;s=u+48|0;x=u+44|0;w=u+40|0;v=u+36|0;o=u+32|0;p=u+28|0;t=u+24|0;h=u+20|0;r=u+16|0;y=u+12|0;A=u+8|0;c[k>>2]=e;c[l>>2]=f;c[m>>2]=g;c[q>>2]=c[(c[k>>2]|0)+8>>2];c[x>>2]=c[c[k>>2]>>2];if(a[(c[k>>2]|0)+450>>0]|0){i=u;return}if((c[q>>2]|0)==0?1:(d[(c[k>>2]|0)+16>>0]|0)!=0){i=u;return}if(d[(c[x>>2]|0)+64>>0]|0){i=u;return}a[(c[k>>2]|0)+16>>0]=1;c[w>>2]=(c[(c[x>>2]|0)+24>>2]&32|0)!=0&1;c[v>>2]=(c[(c[x>>2]|0)+24>>2]&64|0)!=0&1;Nt(c[q>>2]|0,c[c[m>>2]>>2]|0);c[n>>2]=0;while(1){if((c[n>>2]|0)>=(c[c[m>>2]>>2]|0))break;c[o>>2]=c[(c[(c[m>>2]|0)+4>>2]|0)+((c[n>>2]|0)*20|0)>>2];do if(c[o>>2]|0){if(c[(c[(c[m>>2]|0)+4>>2]|0)+((c[n>>2]|0)*20|0)+4>>2]|0){c[p>>2]=c[(c[(c[m>>2]|0)+4>>2]|0)+((c[n>>2]|0)*20|0)+4>>2];Ot(c[q>>2]|0,c[n>>2]|0,0,c[p>>2]|0,-1)|0;break}if((d[c[o>>2]>>0]|0)==154){if(!(c[l>>2]|0))j=26}else if(!((c[l>>2]|0)!=0?(d[c[o>>2]>>0]|0)==156:0))j=26;if((j|0)==26){j=0;c[A>>2]=c[(c[(c[m>>2]|0)+4>>2]|0)+((c[n>>2]|0)*20|0)+8>>2];g=c[x>>2]|0;if(!(c[A>>2]|0)){c[z>>2]=(c[n>>2]|0)+1;g=Te(g,24904,z)|0}else g=ne(g,c[A>>2]|0)|0;c[A>>2]=g;Ot(c[q>>2]|0,c[n>>2]|0,0,c[A>>2]|0,16)|0;break}c[r>>2]=b[(c[o>>2]|0)+32>>1];c[s>>2]=0;while(1){if((c[s>>2]|0)>=(c[c[l>>2]>>2]|0))break;if((c[(c[l>>2]|0)+8+((c[s>>2]|0)*72|0)+40>>2]|0)==(c[(c[o>>2]|0)+28>>2]|0))break;c[s>>2]=(c[s>>2]|0)+1}c[t>>2]=c[(c[l>>2]|0)+8+((c[s>>2]|0)*72|0)+16>>2];if((c[r>>2]|0)<0)c[r>>2]=b[(c[t>>2]|0)+36>>1];if((c[r>>2]|0)<0)c[h>>2]=9992;else c[h>>2]=c[(c[(c[t>>2]|0)+4>>2]|0)+((c[r>>2]|0)*24|0)>>2];if(!((c[v>>2]|0)!=0|(c[w>>2]|0)!=0)){f=c[q>>2]|0;e=c[n>>2]|0;Ot(f,e,0,ne(c[x>>2]|0,c[(c[(c[m>>2]|0)+4>>2]|0)+((c[n>>2]|0)*20|0)+8>>2]|0)|0,16)|0;break}if(c[w>>2]|0){c[y>>2]=0;e=c[x>>2]|0;f=c[h>>2]|0;c[z>>2]=c[c[t>>2]>>2];c[z+4>>2]=f;c[y>>2]=Te(e,17448,z)|0;Ot(c[q>>2]|0,c[n>>2]|0,0,c[y>>2]|0,16)|0;break}else{Ot(c[q>>2]|0,c[n>>2]|0,0,c[h>>2]|0,-1)|0;break}}while(0);c[n>>2]=(c[n>>2]|0)+1}Nx(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0);i=u;return}function Nx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=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0)|0;if(c[(c[j>>2]|0)+20>>2]|0)t=c[c[(c[j>>2]|0)+20>>2]>>2]|0;else t=0;f=Sf(q,r,s,t,a[n>>0]|0,0)|0;c[(c[h>>2]|0)+4>>2]=f;if(c[(c[j>>2]|0)+4>>2]&16){g=(c[k>>2]|0)+68|0;f=c[g>>2]|0;c[g>>2]=f+1;c[(c[h>>2]|0)+12>>2]=f;break}else{c[(c[h>>2]|0)+12>>2]=-1;break}}while(0);b[(c[j>>2]|0)+34>>1]=c[o>>2];c[(c[j>>2]|0)+40>>2]=c[p>>2];c[l>>2]=1;f=c[l>>2]|0;i=m;return f|0}c[l>>2]=0;f=c[l>>2]|0;i=m;return f|0}else if((g|0)==154|(g|0)==156){a:do if(c[A>>2]|0){c[z>>2]=(c[A>>2]|0)+8;c[o>>2]=0;while(1){if((c[o>>2]|0)>=(c[c[A>>2]>>2]|0))break a;if((c[(c[j>>2]|0)+28>>2]|0)==(c[(c[z>>2]|0)+40>>2]|0))break;c[o>>2]=(c[o>>2]|0)+1;c[z>>2]=(c[z>>2]|0)+72}c[s>>2]=c[(c[p>>2]|0)+28>>2];c[y>>2]=0;while(1){if((c[y>>2]|0)>=(c[(c[p>>2]|0)+32>>2]|0))break;if((c[(c[s>>2]|0)+4>>2]|0)==(c[(c[j>>2]|0)+28>>2]|0)?(c[(c[s>>2]|0)+8>>2]|0)==(b[(c[j>>2]|0)+32>>1]|0):0)break;c[y>>2]=(c[y>>2]|0)+1;c[s>>2]=(c[s>>2]|0)+24}if((c[y>>2]|0)>=(c[(c[p>>2]|0)+32>>2]|0)?(f=Sx(c[c[k>>2]>>2]|0,c[p>>2]|0)|0,c[y>>2]=f,(f|0)>=0):0){c[s>>2]=(c[(c[p>>2]|0)+28>>2]|0)+((c[y>>2]|0)*24|0);c[c[s>>2]>>2]=c[(c[j>>2]|0)+44>>2];c[(c[s>>2]|0)+4>>2]=c[(c[j>>2]|0)+28>>2];c[(c[s>>2]|0)+8>>2]=b[(c[j>>2]|0)+32>>1];g=(c[k>>2]|0)+72|0;f=(c[g>>2]|0)+1|0;c[g>>2]=f;c[(c[s>>2]|0)+16>>2]=f;c[(c[s>>2]|0)+12>>2]=-1;c[(c[s>>2]|0)+20>>2]=c[j>>2];b:do if(c[(c[p>>2]|0)+24>>2]|0){c[x>>2]=c[(c[p>>2]|0)+24>>2];c[t>>2]=c[(c[x>>2]|0)+4>>2];c[w>>2]=c[c[x>>2]>>2];c[v>>2]=0;while(1){if((c[v>>2]|0)>=(c[w>>2]|0))break b;c[r>>2]=c[c[t>>2]>>2];if(((d[c[r>>2]>>0]|0)==154?(c[(c[r>>2]|0)+28>>2]|0)==(c[(c[j>>2]|0)+28>>2]|0):0)?(b[(c[r>>2]|0)+32>>1]|0)==(b[(c[j>>2]|0)+32>>1]|0):0)break;c[v>>2]=(c[v>>2]|0)+1;c[t>>2]=(c[t>>2]|0)+20}c[(c[s>>2]|0)+12>>2]=c[v>>2]}while(0);if((c[(c[s>>2]|0)+12>>2]|0)<0){g=(c[p>>2]|0)+12|0;f=c[g>>2]|0;c[g>>2]=f+1;c[(c[s>>2]|0)+12>>2]=f}}c[(c[j>>2]|0)+40>>2]=c[p>>2];a[c[j>>2]>>0]=-100;b[(c[j>>2]|0)+34>>1]=c[y>>2]}while(0);c[l>>2]=1;f=c[l>>2]|0;i=m;return f|0}else{c[l>>2]=0;f=c[l>>2]|0;i=m;return f|0}return 0}function Rx(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d+4>>2]=a;c[d>>2]=b;i=d;return 0}function Sx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16|0;g=e+8|0;f=e+4|0;d=e;c[g>>2]=a;c[f>>2]=b;a=ku(c[g>>2]|0,c[(c[f>>2]|0)+28>>2]|0,24,(c[f>>2]|0)+32|0,d)|0;c[(c[f>>2]|0)+28>>2]=a;i=e;return c[d>>2]|0}function Tx(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;e=i;i=i+16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2]|0,c[(c[o>>2]|0)+16>>2]|0)|0;Ir(c[n>>2]|0,119,c[(c[o>>2]|0)+8>>2]|0)|0;zp(c[n>>2]|0,c[z>>2]|0);Ex(c[w>>2]|0,c[A>>2]|0,c[B>>2]|0,c[(c[o>>2]|0)+4>>2]|0);zp(c[n>>2]|0,c[y>>2]|0);break}}while(0);if(d[(c[o>>2]|0)+24>>0]&1)c[v>>2]=109;else c[v>>2]=110;fp(c[n>>2]|0,c[v>>2]|0,c[(c[o>>2]|0)+8>>2]|0,c[E>>2]|0)|0;if(!(c[(c[m>>2]|0)+8>>2]|0)){i=q;return}s=c[m>>2]|0;if(c[(c[m>>2]|0)+12>>2]|0)c[p>>2]=(c[s+12>>2]|0)+1;else c[p>>2]=c[s+8>>2];c[r>>2]=Ir(c[n>>2]|0,139,c[p>>2]|0)|0;fp(c[n>>2]|0,37,c[p>>2]|0,-1)|0;c[l>>2]=mp(c[n>>2]|0,16)|0;zp(c[n>>2]|0,c[r>>2]|0);Ir(c[n>>2]|0,105,c[(c[o>>2]|0)+8>>2]|0)|0;Ir(c[n>>2]|0,95,c[(c[o>>2]|0)+8>>2]|0)|0;zp(c[n>>2]|0,c[l>>2]|0);i=q;return}function Vx(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;e=d+4|0;b=d;c[e>>2]=a;a=c[e>>2]|0;if((a|0)==117)c[b>>2]=25376;else if((a|0)==118)c[b>>2]=25360;else if((a|0)==116)c[b>>2]=25344;else c[b>>2]=25384;i=d;return c[b>>2]|0}function Wx(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;x=i;i=i+112|0;n=x+108|0;o=x+104|0;q=x+100|0;H=x+96|0;D=x+92|0;t=x+88|0;y=x+84|0;v=x+80|0;l=x+76|0;r=x+72|0;p=x+68|0;u=x+64|0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0);c[(c[o>>2]|0)+48>>2]=c[h>>2];c[(c[o>>2]|0)+60>>2]=c[w>>2];c[(c[o>>2]|0)+64>>2]=c[j>>2];i=x;return}function Xx(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=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;X=i;i=i+224|0;W=X+212|0;A=X+208|0;l=X+204|0;C=X+200|0;_=X+196|0;ba=X+192|0;m=X+188|0;n=X+184|0;G=X+164|0;B=X+144|0;r=X+140|0;y=X+136|0;H=X+132|0;L=X+128|0;o=X+124|0;w=X+120|0;p=X+116|0;x=X+112|0;J=X+108|0;v=X+104|0;E=X+100|0;q=X+96|0;Q=X+92|0;R=X+88|0;k=X+84|0;O=X+80|0;j=X+76|0;M=X+72|0;N=X+68|0;s=X+64|0;u=X+60|0;I=X+56|0;t=X+52|0;z=X+48|0;S=X+44|0;F=X+40|0;Z=X+36|0;T=X+32|0;U=X+28|0;K=X+24|0;P=X+20|0;ca=X+16|0;aa=X+12|0;Y=X+8|0;$=X+4|0;V=X;c[A>>2]=f;c[l>>2]=g;c[C>>2]=h;c[x>>2]=0;c[z>>2]=0;c[F>>2]=c[c[A>>2]>>2];c[n>>2]=c[(c[A>>2]|0)+8>>2];c[u>>2]=Nr(c[n>>2]|0)|0;c[s>>2]=Nr(c[n>>2]|0)|0;c[t>>2]=d[(c[l>>2]|0)+4>>0];c[m>>2]=c[(c[l>>2]|0)+52>>2];c[Z>>2]=c[(c[l>>2]|0)+48>>2];c[T>>2]=c[c[Z>>2]>>2];a:do if((c[t>>2]|0)!=116){c[_>>2]=1;while(1){if(d[(c[F>>2]|0)+64>>0]|0)break a;if((c[_>>2]|0)>(c[c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2]|0,155,c[(c[j>>2]|0)+464>>2]|0,0,0,c[q>>2]|0,-1)|0;i=o;return}function Zx(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;i=i+16|0;g=f+12|0;h=f+8|0;j=f+4|0;e=f;c[g>>2]=a;c[h>>2]=b;c[j>>2]=d;if(c[(c[h>>2]|0)+52>>2]|0)c[e>>2]=Zx(c[g>>2]|0,c[(c[h>>2]|0)+52>>2]|0,c[j>>2]|0)|0;else c[e>>2]=0;if(c[e>>2]|0){a=c[e>>2]|0;i=f;return a|0}if((c[j>>2]|0)>=(c[c[c[h>>2]>>2]>>2]|0)){a=c[e>>2]|0;i=f;return a|0}c[e>>2]=cq(c[g>>2]|0,c[(c[(c[c[h>>2]>>2]|0)+4>>2]|0)+((c[j>>2]|0)*20|0)>>2]|0)|0;a=c[e>>2]|0;i=f;return a|0}function _x(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;n=i;i=i+48|0;p=n+40|0;l=n+36|0;s=n+32|0;h=n+28|0;q=n+24|0;r=n+20|0;m=n+16|0;o=n+12|0;g=n+8|0;j=n+4|0;k=n;c[p>>2]=b;c[l>>2]=d;c[s>>2]=f;c[h>>2]=c[(c[l>>2]|0)+48>>2];c[q>>2]=c[c[(c[l>>2]|0)+48>>2]>>2];c[r>>2]=c[c[p>>2]>>2];c[m>>2]=Xr(c[r>>2]|0,(c[q>>2]|0)+(c[s>>2]|0)|0,1)|0;if(!(c[m>>2]|0)){s=c[m>>2]|0;i=n;return s|0}c[o>>2]=0;while(1){if((c[o>>2]|0)>=(c[q>>2]|0))break;c[g>>2]=(c[(c[h>>2]|0)+4>>2]|0)+((c[o>>2]|0)*20|0);c[j>>2]=c[c[g>>2]>>2];f=c[p>>2]|0;if(c[(c[j>>2]|0)+4>>2]&256)c[k>>2]=cq(f,c[j>>2]|0)|0;else{c[k>>2]=Zx(f,c[l>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>>2]|0;i=n;return e|0}do if((d[c[l>>2]>>0]|0)==154?(c[(c[l>>2]|0)+28>>2]|0)==(c[j>>2]|0):0)if((b[(c[l>>2]|0)+32>>1]|0)<0){a[c[l>>2]>>0]=101;break}else{c[p>>2]=Bq(c[q>>2]|0,c[(c[(c[m>>2]|0)+4>>2]|0)+((b[(c[l>>2]|0)+32>>1]|0)*20|0)>>2]|0,0)|0;wn(c[q>>2]|0,c[l>>2]|0);c[l>>2]=c[p>>2];break}else o=8;while(0);do if((o|0)==8){p=by(c[q>>2]|0,c[(c[l>>2]|0)+12>>2]|0,c[j>>2]|0,c[m>>2]|0)|0;c[(c[l>>2]|0)+12>>2]=p;p=by(c[q>>2]|0,c[(c[l>>2]|0)+16>>2]|0,c[j>>2]|0,c[m>>2]|0)|0;c[(c[l>>2]|0)+16>>2]=p;p=c[q>>2]|0;o=(c[l>>2]|0)+20|0;if(c[(c[l>>2]|0)+4>>2]&2048){cy(p,c[o>>2]|0,c[j>>2]|0,c[m>>2]|0);break}else{ay(p,c[o>>2]|0,c[j>>2]|0,c[m>>2]|0);break}}while(0);c[k>>2]=c[l>>2];e=c[k>>2]|0;i=n;return e|0}function cy(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,m=0,n=0;l=i;i=i+32|0;h=l+24|0;n=l+20|0;k=l+16|0;f=l+12|0;m=l+8|0;j=l+4|0;g=l;c[h>>2]=a;c[n>>2]=b;c[k>>2]=d;c[f>>2]=e;if(!(c[n>>2]|0)){i=l;return}ay(c[h>>2]|0,c[c[n>>2]>>2]|0,c[k>>2]|0,c[f>>2]|0);ay(c[h>>2]|0,c[(c[n>>2]|0)+40>>2]|0,c[k>>2]|0,c[f>>2]|0);ay(c[h>>2]|0,c[(c[n>>2]|0)+48>>2]|0,c[k>>2]|0,c[f>>2]|0);a=by(c[h>>2]|0,c[(c[n>>2]|0)+44>>2]|0,c[k>>2]|0,c[f>>2]|0)|0;c[(c[n>>2]|0)+44>>2]=a;a=by(c[h>>2]|0,c[(c[n>>2]|0)+36>>2]|0,c[k>>2]|0,c[f>>2]|0)|0;c[(c[n>>2]|0)+36>>2]=a;cy(c[h>>2]|0,c[(c[n>>2]|0)+52>>2]|0,c[k>>2]|0,c[f>>2]|0);c[m>>2]=c[(c[n>>2]|0)+32>>2];if(!(c[m>>2]|0)){i=l;return}c[g>>2]=c[c[m>>2]>>2];c[j>>2]=(c[m>>2]|0)+8;while(1){if((c[g>>2]|0)<=0)break;cy(c[h>>2]|0,c[(c[j>>2]|0)+20>>2]|0,c[k>>2]|0,c[f>>2]|0);c[g>>2]=(c[g>>2]|0)+ -1;c[j>>2]=(c[j>>2]|0)+72}i=l;return}function dy(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;l=i;i=i+32|0;k=l+24|0;m=l+20|0;h=l+16|0;g=l+12|0;n=l+8|0;o=l+4|0;j=l;c[k>>2]=b;c[m>>2]=e;c[h>>2]=f;c[g>>2]=c[c[k>>2]>>2];if(!(c[(c[g>>2]|0)+24>>2]&524288)){i=l;return}if((d[(c[h>>2]|0)+44>>0]|0)&16){i=l;return}if(c[(c[h>>2]|0)+12>>2]|0){i=l;return}c[n>>2]=0;c[o>>2]=dp(c[k>>2]|0)|0;do if(!(Up(c[h>>2]|0)|0)){c[j>>2]=c[(c[h>>2]|0)+16>>2];while(1){if(!(c[j>>2]|0))break;if(d[(c[j>>2]|0)+24>>0]|0)break;if(c[(c[g>>2]|0)+24>>2]&16777216)break;c[j>>2]=c[(c[j>>2]|0)+4>>2]}if(c[j>>2]|0){c[n>>2]=Nr(c[o>>2]|0)|0;fp(c[o>>2]|0,135,1,c[n>>2]|0)|0;break}else{i=l;return}}while(0);a[(c[k>>2]|0)+438>>0]=1;b=c[k>>2]|0;no(b,wr(c[g>>2]|0,c[m>>2]|0,0)|0,0);a[(c[k>>2]|0)+438>>0]=0;if(!(c[(c[g>>2]|0)+24>>2]&16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b,a);i=m;return}hp(c[n>>2]|0,146,c[h>>2]|0,0,0,c[c[j>>2]>>2]|0,0)|0;e=c[n>>2]|0;b=c[h>>2]|0;a=c[j>>2]|0;a=c[a>>2]|0;hp(e,124,b,0,0,a,0)|0;a=c[k>>2]|0;b=c[h>>2]|0;ep(a,b);b=c[l>>2]|0;a=c[h>>2]|0;gy(b,a);i=m;return}function fy(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;k=i;i=i+32|0;m=k+28|0;d=k+24|0;l=k+20|0;j=k+16|0;g=k+12|0;f=k+8|0;h=k+4|0;n=k;c[m>>2]=a;c[d>>2]=b;c[l>>2]=c[(c[d>>2]|0)+32>>2];c[j>>2]=0;while(1){c[f>>2]=0;if(!((c[j>>2]|0)!=0?(c[l>>2]|0)>=(c[j>>2]|0):0))c[f>>2]=c[l>>2];c[g>>2]=c[(c[d>>2]|0)+8>>2];while(1){if(!(c[g>>2]|0))break;c[h>>2]=c[(c[g>>2]|0)+44>>2];if(!((c[j>>2]|0)!=0?(c[h>>2]|0)>=(c[j>>2]|0):0))e=9;if((e|0)==9?(e=0,(c[h>>2]|0)>(c[f>>2]|0)):0)c[f>>2]=c[h>>2];c[g>>2]=c[(c[g>>2]|0)+20>>2]}if(!(c[f>>2]|0))break;c[n>>2]=Ve(c[c[m>>2]>>2]|0,c[(c[d>>2]|0)+68>>2]|0)|0;ju(c[m>>2]|0,c[f>>2]|0,c[n>>2]|0);c[j>>2]=c[f>>2]}i=k;return}function gy(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;g=f+12|0;h=f+8|0;j=f+4|0;k=f;c[g>>2]=a;c[h>>2]=d;if(((e[(c[(c[(c[g>>2]|0)+16>>2]|0)+(c[h>>2]<<4)+12>>2]|0)+78>>1]|0)&2|0)!=2){i=f;return}c[j>>2]=c[(c[(c[(c[g>>2]|0)+16>>2]|0)+(c[h>>2]<<4)+12>>2]|0)+16>>2];while(1){if(!(c[j>>2]|0))break;c[k>>2]=c[(c[j>>2]|0)+8>>2];if(c[(c[k>>2]|0)+12>>2]|0){hy(c[g>>2]|0,c[k>>2]|0);c[(c[k>>2]|0)+4>>2]=0;b[(c[k>>2]|0)+38>>1]=0}c[j>>2]=c[c[j>>2]>>2]}a=(c[(c[(c[g>>2]|0)+16>>2]|0)+(c[h>>2]<<4)+12>>2]|0)+78|0;b[a>>1]=(e[a>>1]|0)&-3;i=f;return}function hy(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;g=e+12|0;f=e+8|0;h=e+4|0;j=e;c[g>>2]=a;c[f>>2]=d;a=c[(c[f>>2]|0)+4>>2]|0;c[j>>2]=a;if(!a){i=e;return}c[h>>2]=0;while(1){d=c[g>>2]|0;if((c[h>>2]|0)>=(b[(c[f>>2]|0)+38>>1]|0))break;Xb(d,c[c[j>>2]>>2]|0);wn(c[g>>2]|0,c[(c[j>>2]|0)+4>>2]|0);Xb(c[g>>2]|0,c[(c[j>>2]|0)+8>>2]|0);Xb(c[g>>2]|0,c[(c[j>>2]|0)+12>>2]|0);Xb(c[g>>2]|0,c[(c[j>>2]|0)+16>>2]|0);c[h>>2]=(c[h>>2]|0)+1;c[j>>2]=(c[j>>2]|0)+24}Xb(d,c[(c[f>>2]|0)+4>>2]|0);i=e;return}function iy(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;i=i+144|0;k=h+136|0;j=h+132|0;m=h+128|0;n=h+124|0;o=h+120|0;p=h;l=h+88|0;q=h+80|0;c[k>>2]=a;c[j>>2]=d;c[m>>2]=e;c[n>>2]=f;c[o>>2]=g;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;c[l+16>>2]=0;c[l+20>>2]=0;c[l+24>>2]=0;c[l+28>>2]=0;f=p+0|0;g=f+80|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(g|0));c[p>>2]=1;c[p+16>>2]=c[c[j>>2]>>2];c[p+24>>2]=c[j>>2];c[p+48>>2]=-1;c[l>>2]=c[k>>2];c[l+4>>2]=p;b[l+28>>1]=c[m>>2];a=(vq(l,c[n>>2]|0)|0)==0;if(!(a&(c[o>>2]|0)!=0)){i=h;return}c[q>>2]=0;while(1){if((c[q>>2]|0)>=(c[c[o>>2]>>2]|0)){j=6;break}if(vq(l,c[(c[(c[o>>2]|0)+4>>2]|0)+((c[q>>2]|0)*20|0)>>2]|0)|0){j=6;break}c[q>>2]=(c[q>>2]|0)+1}if((j|0)==6){i=h;return}}function jy(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;g=i;i=i+16|0;f=g+12|0;j=g+8|0;k=g+4|0;h=g;c[j>>2]=a;c[k>>2]=d;c[h>>2]=e;while(1){a=c[k>>2]|0;c[k>>2]=a+ -1;if((a|0)<=0){e=5;break}d=c[h>>2]|0;a=c[j>>2]|0;c[j>>2]=a+2;if((d|0)==(b[a>>1]|0)){e=4;break}}if((e|0)==4){c[f>>2]=1;a=c[f>>2]|0;i=g;return a|0}else if((e|0)==5){c[f>>2]=0;a=c[f>>2]|0;i=g;return a|0}return 0}function ky(a){a=a|0;var f=0,g=0,h=0,j=0,k=0,l=0;h=i;i=i+32|0;g=h+12|0;f=h+8|0;k=h+4|0;j=h;l=h+16|0;c[g>>2]=a;c[f>>2]=0;c[j>>2]=c[(c[(c[g>>2]|0)+12>>2]|0)+4>>2];c[k>>2]=0;while(1){if((c[k>>2]|0)>=(e[(c[g>>2]|0)+52>>1]|0))break;b[l>>1]=b[(c[(c[g>>2]|0)+4>>2]|0)+(c[k>>2]<<1)>>1]|0;if((b[l>>1]|0)<0)a=1;else a=d[(c[j>>2]|0)+((b[(c[(c[g>>2]|0)+4>>2]|0)+(c[k>>2]<<1)>>1]|0)*24|0)+22>>0]|0;c[f>>2]=(c[f>>2]|0)+a;c[k>>2]=(c[k>>2]|0)+1}a=dq(c[f>>2]<<2,0)|0;b[(c[g>>2]|0)+48>>1]=a;i=h;return}function ly(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;e=g+4|0;f=g;c[e>>2]=a;c[f>>2]=b;my(c[e>>2]|0,c[f>>2]|0);if(!((c[e>>2]|0)!=0?(c[(c[e>>2]|0)+520>>2]|0)!=0:0))eh(c[(c[f>>2]|0)+40>>2]|0);wn(c[e>>2]|0,c[(c[f>>2]|0)+36>>2]|0);Xb(c[e>>2]|0,c[(c[f>>2]|0)+16>>2]|0);if(!((d[(c[f>>2]|0)+55>>0]|0)>>>4&1)){e=c[e>>2]|0;a=c[f>>2]|0;Xb(e,a);i=g;return}Xb(c[e>>2]|0,c[(c[f>>2]|0)+32>>2]|0);e=c[e>>2]|0;a=c[f>>2]|0;Xb(e,a);i=g;return}function my(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;c[d+4>>2]=a;c[d>>2]=b;i=d;return}function ny(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+16|0;h=f;g=f+4|0;c[h>>2]=b;a[g>>0]=e;b=et(c[h>>2]|0,3+(d[g>>0]|0)|0)|0;i=f;return b|0}function oy(f,g){f=f|0;g=g|0;var h=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;p=i;i=i+48|0;r=p+40|0;q=p+36|0;l=p+32|0;m=p+28|0;o=p+24|0;n=p+20|0;t=p+16|0;h=p+12|0;u=p+8|0;s=p+4|0;k=p;c[r>>2]=f;c[q>>2]=g;c[h>>2]=c[c[r>>2]>>2];c[u>>2]=c[(c[r>>2]|0)+8>>2];if(c[(c[r>>2]|0)+416>>2]|0)a[(dt(c[u>>2]|0,c[(c[r>>2]|0)+416>>2]|0)|0)>>0]=120;if(c[(c[r>>2]|0)+420>>2]|0)a[(dt(c[u>>2]|0,c[(c[r>>2]|0)+420>>2]|0)|0)>>0]=16;do if((b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[l>>2]|0)+52>>1]=b[(c[l>>2]|0)+50>>1]|0;break}if(ty(c[h>>2]|0,c[l>>2]|0,(e[(c[l>>2]|0)+50>>1]|0)+(c[k>>2]|0)|0)|0){j=38;break a}c[n>>2]=0;c[t>>2]=e[(c[l>>2]|0)+50>>1];while(1){if((c[n>>2]|0)>=(c[o>>2]|0))break b;if(!(jy(c[(c[l>>2]|0)+4>>2]|0,e[(c[l>>2]|0)+50>>1]|0,b[(c[(c[m>>2]|0)+4>>2]|0)+(c[n>>2]<<1)>>1]|0)|0)){b[(c[(c[l>>2]|0)+4>>2]|0)+(c[t>>2]<<1)>>1]=b[(c[(c[m>>2]|0)+4>>2]|0)+(c[n>>2]<<1)>>1]|0;c[(c[(c[l>>2]|0)+32>>2]|0)+(c[t>>2]<<2)>>2]=c[(c[(c[m>>2]|0)+32>>2]|0)+(c[n>>2]<<2)>>2];c[t>>2]=(c[t>>2]|0)+1}c[n>>2]=(c[n>>2]|0)+1}}while(0);c[l>>2]=c[(c[l>>2]|0)+20>>2]}if((j|0)==38){i=p;return}if((c[o>>2]|0)>=(b[(c[q>>2]|0)+38>>1]|0)){b[(c[m>>2]|0)+52>>1]=b[(c[q>>2]|0)+38>>1]|0;i=p;return}if(ty(c[h>>2]|0,c[m>>2]|0,b[(c[q>>2]|0)+38>>1]|0)|0){i=p;return}c[n>>2]=0;c[t>>2]=c[o>>2];while(1){if((c[n>>2]|0)>=(b[(c[q>>2]|0)+38>>1]|0))break;if(!(jy(c[(c[m>>2]|0)+4>>2]|0,c[t>>2]|0,c[n>>2]|0)|0)){b[(c[(c[m>>2]|0)+4>>2]|0)+(c[t>>2]<<1)>>1]=c[n>>2];c[(c[(c[m>>2]|0)+32>>2]|0)+(c[t>>2]<<2)>>2]=3320;c[t>>2]=(c[t>>2]|0)+1}c[n>>2]=(c[n>>2]|0)+1}i=p;return}function py(a){a=a|0;var e=0,f=0,g=0,h=0,j=0;g=i;i=i+16|0;f=g+12|0;e=g+8|0;j=g+4|0;h=g;c[f>>2]=a;c[e>>2]=0;c[h>>2]=b[(c[f>>2]|0)+38>>1];c[j>>2]=c[(c[f>>2]|0)+4>>2];while(1){if((c[h>>2]|0)<=0)break;c[e>>2]=(c[e>>2]|0)+(d[(c[j>>2]|0)+22>>0]|0);c[h>>2]=(c[h>>2]|0)+ -1;c[j>>2]=(c[j>>2]|0)+24}if((b[(c[f>>2]|0)+36>>1]|0)>=0){h=c[e>>2]|0;h=h<<2;h=dq(h,0)|0;j=c[f>>2]|0;j=j+42|0;b[j>>1]=h;i=g;return}c[e>>2]=(c[e>>2]|0)+1;h=c[e>>2]|0;h=h<<2;h=dq(h,0)|0;j=c[f>>2]|0;j=j+42|0;b[j>>1]=h;i=g;return}function qy(d,e){d=d|0;e=e|0;var f=0,g=0,h=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;h=i;i=i+64|0;k=h;n=h+52|0;u=h+48|0;o=h+44|0;g=h+40|0;f=h+36|0;m=h+32|0;l=h+28|0;p=h+24|0;q=h+20|0;j=h+16|0;r=h+12|0;t=h+8|0;s=h+4|0;c[u>>2]=d;c[o>>2]=e;c[m>>2]=0;c[r>>2]=c[(c[o>>2]|0)+4>>2];c[g>>2]=0;while(1){if((c[g>>2]|0)>=(b[(c[o>>2]|0)+38>>1]|0))break;d=(ry(c[c[r>>2]>>2]|0)|0)+5|0;c[m>>2]=(c[m>>2]|0)+d;c[g>>2]=(c[g>>2]|0)+1;c[r>>2]=(c[r>>2]|0)+24}d=ry(c[c[o>>2]>>2]|0)|0;c[m>>2]=(c[m>>2]|0)+d;if((c[m>>2]|0)<50){c[p>>2]=1216;c[q>>2]=9776;c[j>>2]=23976}else{c[p>>2]=26904;c[q>>2]=26912;c[j>>2]=26920}c[m>>2]=(c[m>>2]|0)+(35+((b[(c[o>>2]|0)+38>>1]|0)*6|0));d=c[m>>2]|0;c[l>>2]=Qe(0,d,((d|0)<0)<<31>>31)|0;if(!(c[l>>2]|0)){a[(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=c[n>>2]|0;Xb(b,e);e=c[m>>2]|0;b=c[q>>2]|0;b=wd(e,b)|0;c[q>>2]=b;b=c[q>>2]|0;i=l;return b|0}Lk(c[m>>2]|0);c[c[n>>2]>>2]=c[m>>2];c[(c[n>>2]|0)+424>>2]=0;do if((c[C>>2]|0)>=0){if((c[C>>2]|0)!=0?(a[(c[z>>2]|0)+((c[C>>2]|0)-1)>>0]|0)==0:0){s=17;break}c[D>>2]=c[(c[m>>2]|0)+92>>2];f=c[m>>2]|0;if((c[C>>2]|0)>(c[D>>2]|0)){Lc(f,18,30968,p);c[q>>2]=wd(c[m>>2]|0,18)|0;b=c[n>>2]|0;ef(b);b=c[m>>2]|0;e=c[n>>2]|0;Xb(b,e);e=c[m>>2]|0;b=c[q>>2]|0;b=wd(e,b)|0;c[q>>2]=b;b=c[q>>2]|0;i=l;return b|0}b=c[C>>2]|0;c[A>>2]=rm(f,c[z>>2]|0,b,((b|0)<0)<<31>>31)|0;if(c[A>>2]|0){qf(c[n>>2]|0,c[A>>2]|0,o)|0;Xb(c[m>>2]|0,c[A>>2]|0);c[(c[n>>2]|0)+480>>2]=(c[z>>2]|0)+((c[(c[n>>2]|0)+480>>2]|0)-(c[A>>2]|0));break}else{c[(c[n>>2]|0)+480>>2]=(c[z>>2]|0)+(c[C>>2]|0);break}}else s=17;while(0);if((s|0)==17)qf(c[n>>2]|0,c[z>>2]|0,o)|0;if(a[(c[m>>2]|0)+64>>0]|0)c[(c[n>>2]|0)+12>>2]=7;if((c[(c[n>>2]|0)+12>>2]|0)==101)c[(c[n>>2]|0)+12>>2]=0;if(a[(c[n>>2]|0)+17>>0]|0)zy(c[n>>2]|0);if(a[(c[m>>2]|0)+64>>0]|0)c[(c[n>>2]|0)+12>>2]=7;if(c[B>>2]|0)c[c[B>>2]>>2]=c[(c[n>>2]|0)+480>>2];c[q>>2]=c[(c[n>>2]|0)+12>>2];a:do if(((c[q>>2]|0)==0?(c[(c[n>>2]|0)+8>>2]|0)!=0:0)?(d[(c[n>>2]|0)+450>>0]|0)!=0:0){A=c[(c[n>>2]|0)+8>>2]|0;if((d[(c[n>>2]|0)+450>>0]|0)==2){Nt(A,4);c[w>>2]=8;c[v>>2]=12}else{Nt(A,8);c[w>>2]=0;c[v>>2]=8}c[u>>2]=c[w>>2];while(1){if((c[u>>2]|0)>=(c[v>>2]|0))break a;Ot(c[(c[n>>2]|0)+8>>2]|0,(c[u>>2]|0)-(c[w>>2]|0)|0,0,c[30992+(c[u>>2]<<2)>>2]|0,0)|0;c[u>>2]=(c[u>>2]|0)+1}}while(0);if(!(d[(c[m>>2]|0)+145>>0]|0)){c[x>>2]=c[(c[n>>2]|0)+8>>2];Ay(c[x>>2]|0,c[z>>2]|0,(c[(c[n>>2]|0)+480>>2]|0)-(c[z>>2]|0)|0,c[t>>2]|0)}do if(c[(c[n>>2]|0)+8>>2]|0){if((c[q>>2]|0)==0?(d[(c[m>>2]|0)+64>>0]|0)==0:0){s=43;break}vd(c[(c[n>>2]|0)+8>>2]|0)|0}else s=43;while(0);if((s|0)==43)c[c[y>>2]>>2]=c[(c[n>>2]|0)+8>>2];t=c[m>>2]|0;s=c[q>>2]|0;if(c[o>>2]|0){c[p>>2]=c[o>>2];Lc(t,s,1200,p);Xb(c[m>>2]|0,c[o>>2]|0)}else Nc(t,s);while(1){if(!(c[(c[n>>2]|0)+528>>2]|0))break;c[r>>2]=c[(c[n>>2]|0)+528>>2];c[(c[n>>2]|0)+528>>2]=c[(c[r>>2]|0)+4>>2];Xb(c[m>>2]|0,c[r>>2]|0)}b=c[n>>2]|0;ef(b);b=c[m>>2]|0;e=c[n>>2]|0;Xb(b,e);e=c[m>>2]|0;b=c[q>>2]|0;b=wd(e,b)|0;c[q>>2]=b;b=c[q>>2]|0;i=l;return b|0}function yy(a){a=a|0;var b=0,d=0,e=0;d=i;i=i+16|0;e=d+4|0;b=d;c[e>>2]=a;Pc(c[e>>2]|0);c[b>>2]=By(c[e>>2]|0,1,1)|0;i=d;return c[b>>2]|0}function zy(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0;d=i;i=i+32|0;l=d+24|0;g=d+20|0;h=d+16|0;k=d+12|0;f=d+8|0;j=d+4|0;e=d;c[l>>2]=b;c[g>>2]=c[c[l>>2]>>2];c[h>>2]=0;while(1){if((c[h>>2]|0)>=(c[(c[g>>2]|0)+20>>2]|0)){b=14;break}c[j>>2]=0;c[e>>2]=c[(c[(c[g>>2]|0)+16>>2]|0)+(c[h>>2]<<4)+4>>2];if(c[e>>2]|0){if(!(Tc(c[e>>2]|0)|0)){c[k>>2]=Rc(c[e>>2]|0,0)|0;if((c[k>>2]|0)==7|(c[k>>2]|0)==3082)a[(c[g>>2]|0)+64>>0]=1;if(c[k>>2]|0){b=14;break}c[j>>2]=1}Sc(c[e>>2]|0,1,f);if((c[f>>2]|0)!=(c[c[(c[(c[g>>2]|0)+16>>2]|0)+(c[h>>2]<<4)+12>>2]>>2]|0)){as(c[g>>2]|0,c[h>>2]|0);c[(c[l>>2]|0)+12>>2]=17}if(c[j>>2]|0)gs(c[e>>2]|0)|0}c[h>>2]=(c[h>>2]|0)+1}if((b|0)==14){i=d;return}}function Ay(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0;g=i;i=i+16|0;j=g+12|0;k=g+8|0;h=g+4|0;l=g;c[j>>2]=a;c[k>>2]=d;c[h>>2]=e;c[l>>2]=f;if(!(c[j>>2]|0)){i=g;return}a=c[h>>2]|0;a=rm(c[c[j>>2]>>2]|0,c[k>>2]|0,a,((a|0)<0)<<31>>31)|0;c[(c[j>>2]|0)+168>>2]=a;a=(c[j>>2]|0)+88|0;b[a>>1]=b[a>>1]&-1025|(c[l>>2]&1)<<10&65535;i=g;return}function By(f,g,h){f=f|0;g=g|0;h=h|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=i;i=i+32|0;l=o+16|0;n=o+12|0;j=o+8|0;p=o+20|0;q=o+4|0;m=o;c[n>>2]=f;c[j>>2]=g;a[p>>0]=h;c[q>>2]=c[(c[n>>2]|0)+4>>2];if(!(a[(c[n>>2]|0)+9>>0]|0)){c[l>>2]=0;f=c[l>>2]|0;i=o;return f|0}if((c[(c[q>>2]|0)+76>>2]|0)!=(c[n>>2]|0)?(e[(c[q>>2]|0)+22>>1]&32|0)!=0:0){c[l>>2]=262;f=c[l>>2]|0;i=o;return f|0}c[m>>2]=c[(c[q>>2]|0)+72>>2];while(1){if(!(c[m>>2]|0)){k=15;break}if(((c[c[m>>2]>>2]|0)!=(c[n>>2]|0)?(c[(c[m>>2]|0)+4>>2]|0)==(c[j>>2]|0):0)?(d[(c[m>>2]|0)+8>>0]|0)!=(d[p>>0]|0):0)break;c[m>>2]=c[(c[m>>2]|0)+12>>2]}if((k|0)==15){c[l>>2]=0;f=c[l>>2]|0;i=o;return f|0}if((d[p>>0]|0)==2){f=(c[q>>2]|0)+22|0;b[f>>1]=e[f>>1]|64}c[l>>2]=262;f=c[l>>2]|0;i=o;return f|0}function Cy(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+224|0;g=f+220|0;h=f+216|0;l=f;k=f+212|0;j=f+208|0;c[g>>2]=a;c[h>>2]=d;dF(l|0,c[g>>2]|0,208)|0;dF(c[g>>2]|0,c[h>>2]|0,208)|0;dF(c[h>>2]|0,l|0,208)|0;c[k>>2]=c[(c[g>>2]|0)+52>>2];c[(c[g>>2]|0)+52>>2]=c[(c[h>>2]|0)+52>>2];c[(c[h>>2]|0)+52>>2]=c[k>>2];c[k>>2]=c[(c[g>>2]|0)+48>>2];c[(c[g>>2]|0)+48>>2]=c[(c[h>>2]|0)+48>>2];c[(c[h>>2]|0)+48>>2]=c[k>>2];c[j>>2]=c[(c[g>>2]|0)+168>>2];c[(c[g>>2]|0)+168>>2]=c[(c[h>>2]|0)+168>>2];c[(c[h>>2]|0)+168>>2]=c[j>>2];a=(c[h>>2]|0)+88|0;b[a>>1]=b[a>>1]&-1025|((e[(c[g>>2]|0)+88>>1]|0)>>>10&1)<<10&65535;i=f;return}function Dy(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;c[(c[d>>2]|0)+80>>2]=0;i=b;return}function Ey(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;j=i;i=i+32|0;f=j+20|0;k=j+16|0;e=j+12|0;g=j+8|0;h=j+4|0;d=j;c[f>>2]=a;c[k>>2]=b;c[e>>2]=c[(c[k>>2]|0)+16>>2];while(1){if(!(c[e>>2]|0))break;if(!((c[f>>2]|0)!=0?(c[(c[f>>2]|0)+520>>2]|0)!=0:0)){b=c[(c[e>>2]|0)+12>>2]|0;if(c[(c[e>>2]|0)+16>>2]|0)c[(c[(c[e>>2]|0)+16>>2]|0)+12>>2]=b;else{c[h>>2]=b;b=c[e>>2]|0;if(c[h>>2]|0)b=c[(c[b+12>>2]|0)+8>>2]|0;else b=c[b+8>>2]|0;c[d>>2]=b;gh((c[(c[k>>2]|0)+68>>2]|0)+56|0,c[d>>2]|0,c[h>>2]|0)|0}if(c[(c[e>>2]|0)+12>>2]|0)c[(c[(c[e>>2]|0)+12>>2]|0)+16>>2]=c[(c[e>>2]|0)+16>>2]}dx(c[f>>2]|0,c[(c[e>>2]|0)+28>>2]|0);dx(c[f>>2]|0,c[(c[e>>2]|0)+32>>2]|0);c[g>>2]=c[(c[e>>2]|0)+4>>2];Xb(c[f>>2]|0,c[e>>2]|0);c[e>>2]=c[g>>2]}i=j;return}function Fy(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;e=d+8|0;f=d+4|0;g=d;c[e>>2]=a;c[f>>2]=b;if(!((c[e>>2]|0)!=0?(c[(c[e>>2]|0)+520>>2]|0)!=0:0))Gy(0,c[f>>2]|0)|0;if(!(c[(c[f>>2]|0)+56>>2]|0)){i=d;return}c[g>>2]=0;while(1){if((c[g>>2]|0)>=(c[(c[f>>2]|0)+52>>2]|0))break;if((c[g>>2]|0)!=1)Xb(c[e>>2]|0,c[(c[(c[f>>2]|0)+56>>2]|0)+(c[g>>2]<<2)>>2]|0);c[g>>2]=(c[g>>2]|0)+1}Xb(c[e>>2]|0,c[(c[f>>2]|0)+56>>2]|0);i=d;return}function Gy(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0;d=i;i=i+32|0;k=d+20|0;g=d+16|0;e=d+12|0;f=d+8|0;h=d+4|0;j=d;c[k>>2]=a;c[g>>2]=b;c[e>>2]=0;c[f>>2]=c[(c[g>>2]|0)+60>>2];c[(c[g>>2]|0)+60>>2]=0;while(1){if(!(c[f>>2]|0))break;c[h>>2]=c[c[f>>2]>>2];c[j>>2]=c[(c[f>>2]|0)+24>>2];if((c[h>>2]|0)==(c[k>>2]|0)){c[e>>2]=c[f>>2];c[(c[g>>2]|0)+60>>2]=c[e>>2];c[(c[e>>2]|0)+24>>2]=0}else{c[(c[f>>2]|0)+24>>2]=c[(c[h>>2]|0)+332>>2];c[(c[h>>2]|0)+332>>2]=c[f>>2]}c[f>>2]=c[j>>2]}i=d;return c[e>>2]|0}function Hy(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;j=e+12|0;g=e+8|0;h=e+4|0;f=e;c[j>>2]=a;c[g>>2]=b;c[h>>2]=d;c[f>>2]=c[(c[j>>2]|0)+8>>2];while(1){if(!(c[f>>2]|0))break;if((c[f>>2]|0)!=(c[h>>2]|0)){if(!(c[g>>2]|0))break;if((c[(c[f>>2]|0)+60>>2]|0)==(c[g>>2]|0))break}c[f>>2]=c[(c[f>>2]|0)+8>>2]}if(!(c[f>>2]|0)){j=0;i=e;return j|0}j=Iy(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return j|0}function Iy(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;h=i;i=i+32|0;f=h+16|0;l=h+12|0;j=h+8|0;k=h+4|0;g=h;c[l>>2]=a;c[j>>2]=b;c[k>>2]=e;a:while(1){do if((c[l>>2]|0)!=(c[k>>2]|0)){if(0!=(c[j>>2]|0)?(c[(c[l>>2]|0)+60>>2]|0)!=(c[j>>2]|0):0)break;e=c[l>>2]|0;if((d[(c[l>>2]|0)+73>>0]|0|0)==1){c[g>>2]=Jy(e)|0;if(c[g>>2]|0){j=7;break a}else break}else{Ky(e);break}}while(0);c[l>>2]=c[(c[l>>2]|0)+8>>2];if(!(c[l>>2]|0)){j=10;break}}if((j|0)==7){c[f>>2]=c[g>>2];a=c[f>>2]|0;i=h;return a|0}else if((j|0)==10){c[f>>2]=0;a=c[f>>2]|0;i=h;return a|0}return 0}function Jy(b){b=b|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;e=g+8|0;f=g+4|0;h=g;c[e>>2]=b;c[f>>2]=Ly(c[e>>2]|0,(c[e>>2]|0)+48|0)|0;do if(!(d[(c[(c[e>>2]|0)+120>>2]|0)+2>>0]|0)){b=(c[e>>2]|0)+48|0;c[h>>2]=gc(c[b>>2]|0,c[b+4>>2]|0)|0;if(!(c[h>>2]|0)){c[f>>2]=7;break}c[f>>2]=My(c[e>>2]|0,0,c[(c[e>>2]|0)+48>>2]|0,c[h>>2]|0)|0;b=c[h>>2]|0;if(!(c[f>>2]|0)){c[(c[e>>2]|0)+56>>2]=b;break}else{hc(b);break}}while(0);if(c[f>>2]|0){h=c[e>>2]|0;h=h+72|0;b=a[h>>0]|0;b=b&255;b=b&-5;b=b&255;a[h>>0]=b;h=c[f>>2]|0;i=g;return h|0}Ky(c[e>>2]|0);a[(c[e>>2]|0)+73>>0]=3;h=c[e>>2]|0;h=h+72|0;b=a[h>>0]|0;b=b&255;b=b&-5;b=b&255;a[h>>0]=b;h=c[f>>2]|0;i=g;return h|0}function Ky(a){a=a|0;var d=0,e=0,f=0;e=i;i=i+16|0;d=e+4|0;f=e;c[d>>2]=a;c[f>>2]=0;while(1){if((c[f>>2]|0)>(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a=c[k>>2]|0;c[a>>2]=(c[a>>2]|0)+(c[l>>2]|0)}else{a=c[g>>2]|0;c[a>>2]=(c[a>>2]|0)+(c[l>>2]|0)}c[h>>2]=c[j>>2];a=c[h>>2]|0;i=m;return a|0}function Oy(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+12|0;j=e+8|0;h=e+4|0;g=e;c[f>>2]=a;c[j>>2]=b;c[h>>2]=d;a:do if(c[h>>2]|0)switch(c[j>>2]|0){case-5:{Py(c[f>>2]|0,c[h>>2]|0);break a};case-6:{if(c[(c[f>>2]|0)+520>>2]|0)break a;eh(c[h>>2]|0);break a};case-11:{if(c[(c[f>>2]|0)+520>>2]|0)break a;hc(c[h>>2]|0);break a};case-8:{d=c[h>>2]|0;if(!(c[(c[f>>2]|0)+520>>2]|0)){tf(d);break a}c[g>>2]=d;if(c[(c[g>>2]|0)+24>>2]|0)Xb(c[f>>2]|0,c[(c[g>>2]|0)+20>>2]|0);Xb(c[f>>2]|0,c[g>>2]|0);break a};case-10:{if(c[(c[f>>2]|0)+520>>2]|0)break a;Nk(c[h>>2]|0);break a};case-15:case-1:case-13:case-12:{Xb(c[f>>2]|0,c[h>>2]|0);break a};default:break a}while(0);i=e;return}function Py(a,b){a=a|0;b=b|0;var d=0,f=0,g=0;d=i;i=i+16|0;f=d+4|0;g=d;c[f>>2]=a;c[g>>2]=b;if(!(c[g>>2]|0)){i=d;return}if(!((e[(c[g>>2]|0)+2>>1]|0)&16)){i=d;return}Xb(c[f>>2]|0,c[g>>2]|0);i=d;return}function Qy(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=(c[d>>2]|0)+12|0;c[a>>2]=(c[a>>2]|0)+1;i=b;return}function Ry(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;g=f+4|0;e=f;c[g>>2]=a;c[e>>2]=d;Bd(c[g>>2]|0);g=(c[g>>2]|0)+0|0;a=(c[e>>2]|0)+0|0;d=g+40|0;do{c[g>>2]=c[a>>2];g=g+4|0;a=a+4|0}while((g|0)<(d|0));b[(c[e>>2]|0)+8>>1]=1;c[(c[e>>2]|0)+24>>2]=0;i=f;return}function Sy(){return 31224}function Ty(f){f=f|0;var g=0,h=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;l=i;i=i+64|0;k=l;g=l+60|0;j=l+56|0;w=l+52|0;p=l+48|0;s=l+44|0;t=l+40|0;q=l+36|0;u=l+32|0;h=l+28|0;n=l+24|0;o=l+20|0;m=l+16|0;v=l+12|0;x=l+8|0;r=l+4|0;c[j>>2]=f;c[p>>2]=0;c[s>>2]=0;c[t>>2]=0;c[q>>2]=c[c[j>>2]>>2];c[h>>2]=0;c[n>>2]=(c[(c[j>>2]|0)+8>>2]|0)+40;hu(c[n>>2]|0,8);c[(c[j>>2]|0)+20>>2]=0;if((c[(c[j>>2]|0)+80>>2]|0)==7){a[(c[q>>2]|0)+64>>0]=1;c[g>>2]=1;x=c[g>>2]|0;i=l;return x|0}c[w>>2]=c[(c[j>>2]|0)+32>>2];a:do if((b[(c[j>>2]|0)+88>>1]&3|0)==1){c[t>>2]=(c[(c[j>>2]|0)+8>>2]|0)+360;if(e[(c[t>>2]|0)+8>>1]&16){c[p>>2]=((c[(c[t>>2]|0)+12>>2]|0)>>>0)/4|0;c[s>>2]=c[(c[t>>2]|0)+16>>2]}c[u>>2]=0;while(1){if((c[u>>2]|0)>=(c[p>>2]|0))break a;c[w>>2]=(c[w>>2]|0)+(c[(c[(c[s>>2]|0)+(c[u>>2]<<2)>>2]|0)+4>>2]|0);c[u>>2]=(c[u>>2]|0)+1}}while(0);do{y=(c[j>>2]|0)+76|0;f=c[y>>2]|0;c[y>>2]=f+1;c[u>>2]=f;if((c[u>>2]|0)>=(c[w>>2]|0))break;if((b[(c[j>>2]|0)+88>>1]&3|0)!=2)break}while((d[(c[(c[j>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=m+1428|0;jf=m+1424|0;I=m+1420|0;y=m+1416|0;w=m+1412|0;ia=m+1408|0;r=m+248|0;v=m+1404|0;C=m+1400|0;j=m+1396|0;s=m+1392|0;ef=m+1388|0;z=m+1384|0;A=m+1480|0;B=m+1380|0;ea=m+1376|0;fa=m+1372|0;ga=m+1368|0;ha=m+1364|0;lf=m+1360|0;mf=m+1356|0;da=m+240|0;Y=m+1678|0;aa=m+1478|0;Z=m+1476|0;$=m+1474|0;W=m+232|0;X=m+224|0;V=m+216|0;U=m+208|0;T=m+1352|0;S=m+1348|0;P=m+1320|0;R=m+1316|0;Q=m+1312|0;E=m+200|0;H=m+192|0;F=m+184|0;G=m+1677|0;J=m+1308|0;M=m+1676|0;K=m+1472|0;L=m+1470|0;ra=m+1304|0;la=m+1300|0;oa=m+1296|0;pa=m+1292|0;ka=m+1288|0;ja=m+1284|0;ma=m+1280|0;na=m+1276|0;sa=m+1272|0;ta=m+1268|0;ua=m+1264|0;Ga=m+176|0;va=m+1260|0;ya=m+1256|0;Fa=m+1252|0;za=m+1248|0;Ea=m+1244|0;of=m+1240|0;Ba=m+1236|0;nf=m+136|0;Da=m+1232|0;pf=m+1228|0;qf=m+1224|0;xa=m+1220|0;sf=m+1216|0;wa=m+1212|0;rf=m+1208|0;Ca=m+1468|0;Aa=m+1204|0;Ha=m+1200|0;Ia=m+1675|0;Pa=m+1196|0;Ja=m+1192|0;Ra=m+128|0;Ma=m+1188|0;Qa=m+120|0;Va=m+1184|0;Sa=m+1180|0;Ka=m+1176|0;Oa=m+1172|0;Ta=m+1168|0;Ya=m+1164|0;Xa=m+1160|0;Wa=m+1156|0;La=m+1152|0;Na=m+1148|0;Ua=m+1144|0;_a=m+112|0;Za=m+1140|0;fb=m+1136|0;bb=m+1132|0;$a=m+1128|0;ab=m+1124|0;cb=m+1120|0;hb=m+1116|0;gb=m+1112|0;eb=m+1108|0;ib=m+1104|0;db=m+1100|0;jb=m+1096|0;lb=m+1092|0;kb=m+1088|0;mb=m+1084|0;nb=m+1080|0;ob=m+1076|0;tb=m+1072|0;qb=m+1068|0;rb=m+1064|0;wb=m+1060|0;Bb=m+1056|0;yf=m+1052|0;xf=m+1048|0;uf=m+1044|0;zf=m+1040|0;wf=m+1036|0;vf=m+1032|0;tf=m+1028|0;Af=m+1024|0;Cb=m+1020|0;Eb=m+1016|0;Db=m+1012|0;Fb=m+1008|0;Gb=m+1004|0;Hb=m+1e3|0;Lb=m+996|0;Ib=m+992|0;Kb=m+988|0;Nb=m+968|0;Ob=m+964|0;Jb=m+104|0;Pb=m+960|0;Tb=m+956|0;Yb=m+952|0;Rb=m+948|0;Qb=m+944|0;Ub=m+940|0;Vb=m+936|0;Wb=m+916|0;Zb=m+1484|0;$b=m+912|0;ac=m+908|0;_b=m+904|0;bc=m+96|0;cc=m+88|0;ec=m+900|0;hc=m+896|0;gc=m+892|0;dc=m+888|0;fc=m+884|0;t=m+880|0;qc=m+876|0;mc=m+80|0;ic=m+872|0;oc=m+868|0;pc=m+864|0;jc=m+860|0;kc=m+856|0;lc=m+852|0;rc=m+848|0;sc=m+844|0;wc=m+840|0;uc=m+836|0;yc=m+832|0;Bc=m+828|0;Ac=m+824|0;zc=m+820|0;Cc=m+72|0;Gc=m+816|0;Dc=m+64|0;Ec=m+812|0;Fc=m+808|0;Kc=m+804|0;Hc=m+800|0;Ic=m+796|0;Jc=m+792|0;Cf=m+788|0;Df=m+784|0;Bf=m+780|0;Lc=m+776|0;Mc=m+772|0;Nc=m+768|0;Oc=m+764|0;Qc=m+760|0;Pc=m+756|0;Yc=m+752|0;Zc=m+748|0;hf=m+744|0;_c=m+724|0;Uc=m+720|0;Xc=m+716|0;Tc=m+56|0;fd=m+712|0;ad=m+708|0;ed=m+688|0;hd=m+684|0;id=m+680|0;jd=m+676|0;gd=m+672|0;ld=m+668|0;kd=m+664|0;nd=m+660|0;od=m+656|0;md=m+652|0;rd=m+648|0;sd=m+644|0;pd=m+640|0;qd=m+624|0;vd=m+616|0;ud=m+612|0;yd=m+608|0;xd=m+604|0;td=m+600|0;wd=m+596|0;zd=m+48|0;Ad=m+592|0;Cd=m+588|0;Hd=m+584|0;Nd=m+580|0;Fd=m+576|0;Md=m+572|0;Ld=m+568|0;Gd=m+564|0;Jd=m+560|0;Od=m+556|0;Pd=m+552|0;Qd=m+548|0;Rd=m+544|0;Yd=m+540|0;Td=m+536|0;Wd=m+532|0;$d=m+528|0;Sd=m+8|0;Ud=m+500|0;Zd=m+496|0;ae=m+492|0;he=m+488|0;ie=m+476|0;je=m+472|0;de=m+468|0;be=m+464|0;ce=m+460|0;ee=m+456|0;fe=m+452|0;ke=m+448|0;oe=m+1483|0;me=m+444|0;le=m+440|0;pe=m+436|0;re=m+432|0;qe=m+428|0;ue=m+424|0;te=m+420|0;Ae=m+416|0;ze=m+412|0;xe=m+408|0;Fe=m+404|0;Ee=m+400|0;ye=m+396|0;Ce=m+392|0;ve=m+388|0;we=m+384|0;De=m+380|0;Be=m+376|0;Je=m+372|0;Ke=m+368|0;Ge=m+364|0;He=m+336|0;Ie=m+332|0;Se=m+328|0;Oe=m+324|0;Ne=m+320|0;Re=m+316|0;Le=m+312|0;Me=m+308|0;We=m+304|0;Ve=m+300|0;Xe=m+296|0;_e=m+292|0;Ue=m;Ye=m+288|0;$e=m+284|0;Ze=m+1482|0;cf=m+280|0;bf=m+276|0;af=m+272|0;df=m+268|0;c[k>>2]=f;c[n>>2]=0;c[u>>2]=c[(c[k>>2]|0)+4>>2];c[l>>2]=0;c[q>>2]=c[c[k>>2]>>2];a[nc>>0]=0;a[x>>0]=a[(c[(c[(c[q>>2]|0)+16>>2]|0)+12>>2]|0)+77>>0]|0;c[qa>>2]=0;c[o>>2]=0;c[ba>>2]=0;c[$c>>2]=c[(c[k>>2]|0)+8>>2];c[jf>>2]=0;c[I>>2]=0;c[y>>2]=0;c[w>>2]=0;c[ia>>2]=0;f=(c[q>>2]|0)+32|0;Ff=c[f+4>>2]|0;Gf=r;c[Gf>>2]=c[f>>2];c[Gf+4>>2]=Ff;a:do if((c[(c[k>>2]|0)+80>>2]|0)==7)Ef=871;else{c[(c[k>>2]|0)+80>>2]=0;Gf=(c[k>>2]|0)+136|0;c[Gf>>2]=0;c[Gf+4>>2]=0;c[(c[k>>2]|0)+20>>2]=0;c[(c[q>>2]|0)+452>>2]=0;b:do if(!(c[(c[q>>2]|0)+240>>2]|0)){do if(c[(c[q>>2]|0)+292>>2]|0){c[ba>>2]=c[(c[k>>2]|0)+124>>2];f=c[(c[q>>2]|0)+300>>2]|0;if(!(c[ba>>2]|0)){c[ba>>2]=f;break}else{c[ba>>2]=((c[ba>>2]|0)>>>0)%(f>>>0)|0;break}}while(0);c[n>>2]=c[(c[k>>2]|0)+76>>2];c:while(1){if(c[l>>2]|0)break a;if(a[(c[q>>2]|0)+64>>0]|0){Ef=871;break a}c[o>>2]=(c[o>>2]|0)+1;c[p>>2]=(c[u>>2]|0)+((c[n>>2]|0)*20|0);if(d[(c[p>>2]|0)+2>>0]&2){c[w>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+8>>2]|0)*40|0);if(e[(c[w>>2]|0)+8>>1]&9312)_d(c[w>>2]|0);b[(c[w>>2]|0)+8>>1]=4}d:do switch(d[c[p>>2]>>0]|0){case 27:{Ef=57;break};case 21:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);c[v>>2]=(c[u>>2]|0)+((c[c[jf>>2]>>2]|0)*20|0);c[n>>2]=(c[(c[v>>2]|0)+8>>2]|0)-1;b[(c[jf>>2]|0)+8>>1]=128;break};case 26:{f=c[(c[p>>2]|0)+16>>2]|0;Ff=c[f+4>>2]|0;Gf=c[w>>2]|0;c[Gf>>2]=c[f>>2];c[Gf+4>>2]=Ff;break};case 133:{b[(c[w>>2]|0)+8>>1]=8;h[c[w>>2]>>3]=+h[c[(c[p>>2]|0)+16>>2]>>3];break};case 97:{a[c[p>>2]>>0]=27;Gf=Mb(c[(c[p>>2]|0)+16>>2]|0)|0;c[(c[p>>2]|0)+4>>2]=Gf;if((d[x>>0]|0)!=1){c[l>>2]=Vd(c[w>>2]|0,c[(c[p>>2]|0)+16>>2]|0,-1,1,0)|0;if((c[l>>2]|0)==18){Ef=870;break c}if(yk(c[w>>2]|0,d[x>>0]|0)|0){Ef=871;break a}c[(c[w>>2]|0)+24>>2]=0;Gf=(c[w>>2]|0)+8|0;b[Gf>>1]=e[Gf>>1]|2048;if((a[(c[p>>2]|0)+1>>0]|0)==-1)Xb(c[q>>2]|0,c[(c[p>>2]|0)+16>>2]|0);a[(c[p>>2]|0)+1>>0]=-1;c[(c[p>>2]|0)+16>>2]=c[(c[w>>2]|0)+16>>2];c[(c[p>>2]|0)+4>>2]=c[(c[w>>2]|0)+12>>2]}if((c[(c[p>>2]|0)+4>>2]|0)>(c[(c[q>>2]|0)+88>>2]|0)){Ef=870;break c}else Ef=57;break};case 16:{c[n>>2]=(c[(c[p>>2]|0)+8>>2]|0)-1;Ef=16;break};case 25:{Ff=c[(c[p>>2]|0)+4>>2]|0;Gf=c[w>>2]|0;c[Gf>>2]=Ff;c[Gf+4>>2]=((Ff|0)<0)<<31>>31;break};case 23:{c[y>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+12>>2]|0)*40|0);if(e[(c[y>>2]|0)+8>>1]&1)Ef=28;break};case 28:{c[z>>2]=(c[(c[p>>2]|0)+12>>2]|0)-(c[(c[p>>2]|0)+8>>2]|0);Gf=((c[(c[p>>2]|0)+4>>2]|0)!=0?257:1)&65535;b[A>>1]=Gf;b[(c[w>>2]|0)+8>>1]=Gf;while(1){if((c[z>>2]|0)<=0)break d;c[w>>2]=(c[w>>2]|0)+40;_d(c[w>>2]|0);b[(c[w>>2]|0)+8>>1]=b[A>>1]|0;c[z>>2]=(c[z>>2]|0)+ -1}};case 30:{Vd(c[w>>2]|0,c[(c[p>>2]|0)+16>>2]|0,c[(c[p>>2]|0)+4>>2]|0,0,0)|0;a[(c[w>>2]|0)+10>>0]=a[x>>0]|0;break};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(c[w>>2]|0)+8>>1]&-16896|4;break};case 29:{c[w>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);b[(c[w>>2]|0)+8>>1]=(e[(c[w>>2]|0)+8>>1]|1)&-129;break};case 24:{Ef=28;break};case 37:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);Mp(c[jf>>2]|0)|0;Gf=c[(c[p>>2]|0)+8>>2]|0;Hf=c[jf>>2]|0;Ff=Hf;Gf=bF(c[Ff>>2]|0,c[Ff+4>>2]|0,Gf|0,((Gf|0)<0)<<31>>31|0)|0;c[Hf>>2]=Gf;c[Hf+4>>2]=D;break};case 38:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);if((e[(c[jf>>2]|0)+8>>1]&4|0)==0?(Jp(c[jf>>2]|0,67,a[x>>0]|0),(e[(c[jf>>2]|0)+8>>1]&4|0)==0):0){if(!(c[(c[p>>2]|0)+8>>2]|0)){Ef=167;break c}c[n>>2]=(c[(c[p>>2]|0)+8>>2]|0)-1;break d}b[(c[jf>>2]|0)+8>>1]=e[(c[jf>>2]|0)+8>>1]&-16896|4;break};case 40:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);if(e[(c[jf>>2]|0)+8>>1]&16384)f=Dd(c[jf>>2]|0)|0;else f=0;c[l>>2]=f;Cp(c[jf>>2]|0,c[(c[p>>2]|0)+8>>2]&255,a[x>>0]|0);break};case 39:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);if(e[(c[jf>>2]|0)+8>>1]&4)Np(c[jf>>2]|0)|0;break};case 83:case 80:case 81:case 82:case 78:case 79:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);c[y>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+12>>2]|0)*40|0);b[K>>1]=b[(c[jf>>2]|0)+8>>1]|0;b[L>>1]=b[(c[y>>2]|0)+8>>1]|0;f=d[(c[p>>2]|0)+3>>0]|0;do if((e[K>>1]|e[L>>1])&1){if(!(f&128)){f=c[p>>2]|0;if(d[(c[p>>2]|0)+3>>0]&32){c[w>>2]=(c[$c>>2]|0)+((c[f+8>>2]|0)*40|0);b[(c[w>>2]|0)+8>>1]=e[(c[w>>2]|0)+8>>1]&-16896|1;break d}if(!(d[f+3>>0]&16))break d;c[n>>2]=(c[(c[p>>2]|0)+8>>2]|0)-1;break d}if(((e[K>>1]&1|0)!=0?(e[L>>1]&1|0)!=0:0)?(e[L>>1]&256|0)==0:0){c[J>>2]=0;break}c[J>>2]=1}else{a[M>>0]=f&71;if((a[M>>0]|0)>=67){if((e[(c[jf>>2]|0)+8>>1]&14|0)==2)Pe(c[jf>>2]|0,0);if((e[(c[y>>2]|0)+8>>1]&14|0)==2)Pe(c[y>>2]|0,0)}else if((a[M>>0]|0)==66){if((e[(c[jf>>2]|0)+8>>1]&2|0)==0?(e[(c[jf>>2]|0)+8>>1]&12|0)!=0:0)Kp(c[jf>>2]|0,a[x>>0]|0,1)|0;if((e[(c[y>>2]|0)+8>>1]&2|0)==0?(e[(c[y>>2]|0)+8>>1]&12|0)!=0:0)Kp(c[y>>2]|0,a[x>>0]|0,1)|0}if(e[(c[jf>>2]|0)+8>>1]&16384){Dd(c[jf>>2]|0)|0;b[K>>1]=e[K>>1]&-16385}if(e[(c[y>>2]|0)+8>>1]&16384){Dd(c[y>>2]|0)|0;b[L>>1]=e[L>>1]&-16385}if(a[(c[q>>2]|0)+64>>0]|0){Ef=871;break a}c[J>>2]=bn(c[y>>2]|0,c[jf>>2]|0,c[(c[p>>2]|0)+16>>2]|0)|0}while(0);switch(d[c[p>>2]>>0]|0){case 79:{c[J>>2]=(c[J>>2]|0)==0&1;break};case 78:{c[J>>2]=(c[J>>2]|0)!=0&1;break};case 81:{c[J>>2]=(c[J>>2]|0)<=0&1;break};case 80:{c[J>>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;Gf=W;Hf=X;if(((c[Gf>>2]|0)==-1?(c[Gf+4>>2]|0)==-1:0)&((c[Hf>>2]|0)==0?(c[Hf+4>>2]|0)==-2147483648:0))break;Gf=W;Hf=X;Gf=jF(c[Hf>>2]|0,c[Hf+4>>2]|0,c[Gf>>2]|0,c[Gf+4>>2]|0)|0;Hf=X;c[Hf>>2]=Gf;c[Hf+4>>2]=D}else{Hf=W;if((c[Hf>>2]|0)==0&(c[Hf+4>>2]|0)==0)break e;Hf=W;if((c[Hf>>2]|0)==-1?(c[Hf+4>>2]|0)==-1:0){Hf=W;c[Hf>>2]=1;c[Hf+4>>2]=0}Gf=W;Hf=X;Gf=kF(c[Hf>>2]|0,c[Hf+4>>2]|0,c[Gf>>2]|0,c[Gf+4>>2]|0)|0;Hf=X;c[Hf>>2]=Gf;c[Hf+4>>2]=D}Ff=X;Gf=c[Ff+4>>2]|0;Hf=c[w>>2]|0;c[Hf>>2]=c[Ff>>2];c[Hf+4>>2]=Gf;b[(c[w>>2]|0)+8>>1]=e[(c[w>>2]|0)+8>>1]&-16896|4;break d}else a[Y>>0]=0;while(0);h[V>>3]=+Id(c[jf>>2]|0);h[U>>3]=+Id(c[I>>2]|0);f=d[c[p>>2]>>0]|0;if((f|0)==89)h[U>>3]=+h[U>>3]+ +h[V>>3];else if((f|0)==90)h[U>>3]=+h[U>>3]- +h[V>>3];else if((f|0)==91)h[U>>3]=+h[U>>3]*+h[V>>3];else if((f|0)==92){if(+h[V>>3]==0.0)break;h[U>>3]=+h[U>>3]/+h[V>>3]}else{If=+h[V>>3];Hf=+O(If)>=1.0?If>0.0?(ca(+N(If/4294967296.0),4294967295.0)|0)>>>0:~~+_((If- +(~~If>>>0))/4294967296.0)>>>0:0;Gf=W;c[Gf>>2]=~~If>>>0;c[Gf+4>>2]=Hf;If=+h[U>>3];Gf=+O(If)>=1.0?If>0.0?(ca(+N(If/4294967296.0),4294967295.0)|0)>>>0:~~+_((If- +(~~If>>>0))/4294967296.0)>>>0:0;Hf=X;c[Hf>>2]=~~If>>>0;c[Hf+4>>2]=Gf;Hf=W;if((c[Hf>>2]|0)==0&(c[Hf+4>>2]|0)==0)break;Hf=W;if((c[Hf>>2]|0)==-1?(c[Hf+4>>2]|0)==-1:0){Hf=W;c[Hf>>2]=1;c[Hf+4>>2]=0}Gf=X;Hf=W;Hf=kF(c[Gf>>2]|0,c[Gf+4>>2]|0,c[Hf>>2]|0,c[Hf+4>>2]|0)|0;h[U>>3]=+(Hf>>>0)+4294967296.0*+(D|0)}if(!($w(+h[U>>3])|0)){h[c[w>>2]>>3]=+h[U>>3];b[(c[w>>2]|0)+8>>1]=e[(c[w>>2]|0)+8>>1]&-16896|8;if((a[Y>>0]|0)!=0?1:((e[Z>>1]|e[$>>1])&8|0)!=0)break d;Hp(c[w>>2]|0);break d}}while(0);_d(c[w>>2]|0);break};case 34:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);c[w>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+8>>2]|0)*40|0);fn(c[w>>2]|0,c[jf>>2]|0,4096);break};case 35:{if(((c[(c[q>>2]|0)+292>>2]|0)!=0?(c[o>>2]|0)>>>0>=(c[ba>>2]|0)>>>0:0)?(ub[c[(c[q>>2]|0)+292>>2]&31](c[(c[q>>2]|0)+296>>2]|0)|0)!=0:0){Ef=76;break c}Hf=bz(c[k>>2]|0,0)|0;c[l>>2]=Hf;if(0==(Hf|0)?(c[l>>2]=cz(c[k>>2]|0,1)|0,(c[l>>2]|0)==0):0){Ef=79;break c}break};case 94:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);c[I>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+8>>2]|0)*40|0);c[w>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+12>>2]|0)*40|0);if((e[(c[jf>>2]|0)+8>>1]|e[(c[I>>2]|0)+8>>1])&1){_d(c[w>>2]|0);break d}if((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c[w>>2]|0)+10>>0]=a[x>>0]|0;break};case 20:{c[w>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);Gf=(c[(c[p>>2]|0)+12>>2]|0)-1|0;Hf=c[w>>2]|0;c[Hf>>2]=Gf;c[Hf+4>>2]=((Gf|0)<0)<<31>>31;b[(c[w>>2]|0)+8>>1]=4;if(c[(c[p>>2]|0)+8>>2]|0)c[n>>2]=(c[(c[p>>2]|0)+8>>2]|0)-1;break};case 18:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);c[n>>2]=c[c[jf>>2]>>2];b[(c[jf>>2]|0)+8>>1]=128;break};case 32:{c[ea>>2]=c[(c[p>>2]|0)+12>>2];c[fa>>2]=c[(c[p>>2]|0)+4>>2];c[ga>>2]=c[(c[p>>2]|0)+8>>2];c[jf>>2]=(c[$c>>2]|0)+((c[fa>>2]|0)*40|0);c[w>>2]=(c[$c>>2]|0)+((c[ga>>2]|0)*40|0);do{Ry(c[w>>2]|0,c[jf>>2]|0);c[jf>>2]=(c[jf>>2]|0)+40;c[w>>2]=(c[w>>2]|0)+40;Hf=(c[ea>>2]|0)+ -1|0;c[ea>>2]=Hf}while((Hf|0)!=0);break};case 33:{c[ha>>2]=c[(c[p>>2]|0)+12>>2];c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);c[w>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+8>>2]|0)*40|0);while(1){fn(c[w>>2]|0,c[jf>>2]|0,4096);if((e[(c[w>>2]|0)+8>>1]&4096|0)!=0?(Ak(c[w>>2]|0)|0)!=0:0){Ef=871;break a}Hf=c[ha>>2]|0;c[ha>>2]=Hf+ -1;if(!Hf)break d;c[w>>2]=(c[w>>2]|0)+40;c[jf>>2]=(c[jf>>2]|0)+40}};case 41:{c[ia>>2]=c[(c[p>>2]|0)+16>>2];break};case 42:{if(!(d[(c[p>>2]|0)+3>>0]&1))c[ia>>2]=0;c[ra>>2]=c[(c[p>>2]|0)+12>>2];c[ka>>2]=c[(c[p>>2]|0)+16>>2];c[oa>>2]=c[(c[p>>2]|0)+4>>2];c[pa>>2]=c[(c[p>>2]|0)+8>>2];c[la>>2]=0;while(1){if((c[la>>2]|0)>=(c[ra>>2]|0))break;f=c[la>>2]|0;if(c[ia>>2]|0)f=c[(c[ia>>2]|0)+(f<<2)>>2]|0;c[ja>>2]=f;c[ma>>2]=c[(c[ka>>2]|0)+20+(c[la>>2]<<2)>>2];c[na>>2]=d[(c[(c[ka>>2]|0)+16>>2]|0)+(c[la>>2]|0)>>0];c[qa>>2]=bn((c[$c>>2]|0)+(((c[oa>>2]|0)+(c[ja>>2]|0)|0)*40|0)|0,(c[$c>>2]|0)+(((c[pa>>2]|0)+(c[ja>>2]|0)|0)*40|0)|0,c[ma>>2]|0)|0;if(c[qa>>2]|0){Ef=224;break}c[la>>2]=(c[la>>2]|0)+1}if((Ef|0)==224?(Ef=0,(c[na>>2]|0)!=0):0)c[qa>>2]=0-(c[qa>>2]|0);c[ia>>2]=0;break};case 43:{if((c[qa>>2]|0)<0){c[n>>2]=(c[(c[p>>2]|0)+4>>2]|0)-1;break d}f=c[p>>2]|0;if(!(c[qa>>2]|0)){c[n>>2]=(c[f+8>>2]|0)-1;break d}else{c[n>>2]=(c[f+12>>2]|0)-1;break d}};case 71:case 72:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);if(e[(c[jf>>2]|0)+8>>1]&1)c[sa>>2]=2;else{Hf=Kd(c[jf>>2]|0)|0;c[sa>>2]=((Hf|0)!=0|(D|0)!=0)&1}c[I>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+8>>2]|0)*40|0);if(e[(c[I>>2]|0)+8>>1]&1)c[ta>>2]=2;else{Hf=Kd(c[I>>2]|0)|0;c[ta>>2]=((Hf|0)!=0|(D|0)!=0)&1}f=((c[sa>>2]|0)*3|0)+(c[ta>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2]|0)*40|0);if(!(e[(c[jf>>2]|0)+8>>1]&1)){c[ua>>2]=+Id(c[jf>>2]|0)!=0.0&1;if((d[c[p>>2]>>0]|0)==46)c[ua>>2]=((c[ua>>2]|0)!=0^1)&1}else c[ua>>2]=c[(c[p>>2]|0)+12>>2];if(c[ua>>2]|0)c[n>>2]=(c[(c[p>>2]|0)+8>>2]|0)-1;break};case 76:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);if(e[(c[jf>>2]|0)+8>>1]&1)c[n>>2]=(c[(c[p>>2]|0)+8>>2]|0)-1;break};case 77:{c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);if(!(e[(c[jf>>2]|0)+8>>1]&1))c[n>>2]=(c[(c[p>>2]|0)+8>>2]|0)-1;break};case 47:{c[va>>2]=c[(c[p>>2]|0)+8>>2];c[Ba>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+12>>2]|0)*40|0);c[ya>>2]=c[(c[(c[k>>2]|0)+56>>2]|0)+(c[(c[p>>2]|0)+4>>2]<<2)>>2];c[za>>2]=c[(c[ya>>2]|0)+80>>2];c[Fa>>2]=c[c[ya>>2]>>2];c[l>>2]=iz(c[ya>>2]|0)|0;if(c[l>>2]|0)break c;f=c[ya>>2]|0;f:do if((c[(c[ya>>2]|0)+60>>2]|0)==(c[(c[k>>2]|0)+72>>2]|0))if((e[f+22>>1]|0)<=(c[va>>2]|0))Ef=284;else Ef=308;else{do if(a[f+25>>0]|0)if(!(c[Fa>>2]|0)){c[Aa>>2]=(c[$c>>2]|0)+((c[(c[ya>>2]|0)+16>>2]|0)*40|0);Hf=c[(c[Aa>>2]|0)+12>>2]|0;c[wa>>2]=Hf;c[(c[ya>>2]|0)+68>>2]=Hf;c[(c[ya>>2]|0)+64>>2]=Hf;c[(c[ya>>2]|0)+76>>2]=c[(c[Aa>>2]|0)+16>>2];break}else{_d(c[Ba>>2]|0);break f}else{f=c[Fa>>2]|0;if(!((d[(c[ya>>2]|0)+27>>0]|0)>>>2&1)){Ly(f,Ga)|0;Hf=jz(c[Fa>>2]|0,wa)|0;c[(c[ya>>2]|0)+76>>2]=Hf;c[(c[ya>>2]|0)+64>>2]=c[Ga>>2]}else{kz(f,(c[ya>>2]|0)+64|0)|0;Hf=lz(c[Fa>>2]|0,wa)|0;c[(c[ya>>2]|0)+76>>2]=Hf}if((c[(c[ya>>2]|0)+64>>2]|0)>>>0<=(c[wa>>2]|0)>>>0)c[(c[ya>>2]|0)+68>>2]=c[(c[ya>>2]|0)+64>>2];else c[(c[ya>>2]|0)+68>>2]=c[wa>>2];if((c[(c[ya>>2]|0)+64>>2]|0)>>>0>(c[(c[q>>2]|0)+88>>2]|0)>>>0){Ef=870;break c}}while(0);c[(c[ya>>2]|0)+60>>2]=c[(c[k>>2]|0)+72>>2];f=c[(c[ya>>2]|0)+76>>2]|0;if((d[c[(c[ya>>2]|0)+76>>2]>>0]|0)<128){c[xa>>2]=d[f>>0];f=1}else f=(Rw(f,xa)|0)&255;c[(c[ya>>2]|0)+72>>2]=f&255;b[(c[ya>>2]|0)+22>>1]=0;c[c[za>>2]>>2]=c[xa>>2];if((c[xa>>2]|0)>>>0<=98307?(c[xa>>2]|0)>>>0<=(c[(c[ya>>2]|0)+64>>2]|0)>>>0:0){if((c[wa>>2]|0)>>>0>=(c[xa>>2]|0)>>>0){Ef=284;break}c[(c[ya>>2]|0)+76>>2]=0;c[(c[ya>>2]|0)+68>>2]=0;Ef=284;break}c[l>>2]=kj(71391)|0;break d}while(0);do if((Ef|0)==284){Ef=0;do if((c[(c[ya>>2]|0)+72>>2]|0)>>>0<(c[c[za>>2]>>2]|0)>>>0){if(!(c[(c[ya>>2]|0)+76>>2]|0)){Ff=nf+0|0;f=Ff+40|0;do{c[Ff>>2]=0;Ff=Ff+4|0}while((Ff|0)<(f|0));c[l>>2]=mz(c[Fa>>2]|0,0,c[c[za>>2]>>2]|0,(((d[(c[ya>>2]|0)+27>>0]|0)>>>2&1|0)!=0^1)&1,nf)|0;if(c[l>>2]|0)break d;c[Da>>2]=c[nf+16>>2]}else c[Da>>2]=c[(c[ya>>2]|0)+76>>2];c[of>>2]=e[(c[ya>>2]|0)+22>>1];c[xa>>2]=c[(c[za>>2]|0)+(c[of>>2]<<2)>>2];c[pf>>2]=(c[Da>>2]|0)+(c[(c[ya>>2]|0)+72>>2]|0);c[qf>>2]=(c[Da>>2]|0)+(c[c[za>>2]>>2]|0);do{f=c[pf>>2]|0;if((d[c[pf>>2]>>0]|0)<128){c[rf>>2]=d[f>>0];c[pf>>2]=(c[pf>>2]|0)+1}else{Hf=(Rw(f,rf)|0)&255;c[pf>>2]=(c[pf>>2]|0)+Hf}c[(c[ya>>2]|0)+84+(c[of>>2]<<2)>>2]=c[rf>>2];c[sf>>2]=Ww(c[rf>>2]|0)|0;c[xa>>2]=(c[xa>>2]|0)+(c[sf>>2]|0);if((c[xa>>2]|0)>>>0<(c[sf>>2]|0)>>>0){Ef=294;break}c[of>>2]=(c[of>>2]|0)+1;c[(c[za>>2]|0)+(c[of>>2]<<2)>>2]=c[xa>>2];if((c[of>>2]|0)>(c[va>>2]|0))break}while((c[pf>>2]|0)>>>0<(c[qf>>2]|0)>>>0);if((Ef|0)==294){Ef=0;c[pf>>2]=(c[qf>>2]|0)+1}b[(c[ya>>2]|0)+22>>1]=c[of>>2];c[(c[ya>>2]|0)+72>>2]=(c[pf>>2]|0)-(c[Da>>2]|0);if(!(c[(c[ya>>2]|0)+76>>2]|0)){Bd(nf);b[nf+8>>1]=1}if((c[pf>>2]|0)>>>0>=(c[qf>>2]|0)>>>0){if((c[pf>>2]|0)>>>0<=(c[qf>>2]|0)>>>0?(c[xa>>2]|0)==(c[(c[ya>>2]|0)+64>>2]|0):0)Ef=302}else Ef=302;if((Ef|0)==302?(Ef=0,(c[xa>>2]|0)>>>0<=(c[(c[ya>>2]|0)+64>>2]|0)>>>0):0)break;c[l>>2]=kj(71475)|0;break d}while(0);if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]|0)+69>>0]|0)!=0;else f=0;c[ib>>2]=f&1;if(!((c[ib>>2]|0)!=0&(c[fb>>2]|0)==1)){c[gb>>2]=(c[(c[q>>2]|0)+496>>2]|0)-(c[gb>>2]|0)-1;g:do if((c[fb>>2]|0)==2){c[db>>2]=(c[(c[q>>2]|0)+24>>2]&2|0)!=0&1;c[eb>>2]=0;while(1){if((c[eb>>2]|0)>=(c[(c[q>>2]|0)+20>>2]|0))break g;c[l>>2]=sz(c[(c[(c[q>>2]|0)+16>>2]|0)+(c[eb>>2]<<4)+4>>2]|0,516,(c[db>>2]|0)==0&1)|0;if(c[l>>2]|0)break c;c[eb>>2]=(c[eb>>2]|0)+1}}else c[db>>2]=0;while(0);c[eb>>2]=0;while(1){if((c[eb>>2]|0)>=(c[(c[q>>2]|0)+20>>2]|0))break;c[l>>2]=tz(c[(c[(c[q>>2]|0)+16>>2]|0)+(c[eb>>2]<<4)+4>>2]|0,c[fb>>2]|0,c[gb>>2]|0)|0;if(c[l>>2]|0)break c;c[eb>>2]=(c[eb>>2]|0)+1}if(c[db>>2]|0){gf(c[q>>2]|0);cd(c[q>>2]|0);c[(c[q>>2]|0)+24>>2]=c[(c[q>>2]|0)+24>>2]|2}}else{Hf=bz(c[k>>2]|0,1)|0;c[l>>2]=Hf;if(Hf){Ef=869;break c}a[(c[q>>2]|0)+62>>0]=1;if(($y(c[k>>2]|0)|0)==5){Ef=381;break c}a[(c[q>>2]|0)+69>>0]=0;c[l>>2]=c[(c[k>>2]|0)+80>>2]}while(1){if((c[(c[q>>2]|0)+488>>2]|0)==(c[cb>>2]|0))break;c[hb>>2]=c[(c[q>>2]|0)+488>>2];c[(c[q>>2]|0)+488>>2]=c[(c[hb>>2]|0)+24>>2];Xb(c[q>>2]|0,c[hb>>2]|0);Hf=(c[q>>2]|0)+496|0;c[Hf>>2]=(c[Hf>>2]|0)+ -1}f=c[cb>>2]|0;if((c[fb>>2]|0)==1){c[(c[q>>2]|0)+488>>2]=c[f+24>>2];Xb(c[q>>2]|0,c[cb>>2]|0);if(!(c[ib>>2]|0)){Hf=(c[q>>2]|0)+496|0;c[Hf>>2]=(c[Hf>>2]|0)+ -1}}else{Hf=f+8|0;Gf=c[Hf+4>>2]|0;Ff=(c[q>>2]|0)+504|0;c[Ff>>2]=c[Hf>>2];c[Ff+4>>2]=Gf;Ff=(c[cb>>2]|0)+16|0;Gf=c[Ff+4>>2]|0;Hf=(c[q>>2]|0)+512|0;c[Hf>>2]=c[Ff>>2];c[Hf+4>>2]=Gf}if((c[ib>>2]|0)==0?(c[l>>2]=rz(c[q>>2]|0,c[fb>>2]|0,c[gb>>2]|0)|0,(c[l>>2]|0)!=0):0)break c;break};case 3:{c[jb>>2]=c[(c[p>>2]|0)+4>>2];c[lb>>2]=c[(c[p>>2]|0)+8>>2];if(c[jb>>2]|0)f=(a[(c[q>>2]|0)+62>>0]|0)!=0^1;else f=0;c[kb>>2]=f&1;if(!((c[kb>>2]|0)==0|(c[lb>>2]|0)!=0)?(c[(c[q>>2]|0)+156>>2]|0)>0:0){pn((c[k>>2]|0)+44|0,c[q>>2]|0,31576,g);c[l>>2]=5;break d}if((c[jb>>2]|0)!=(d[(c[q>>2]|0)+62>>0]|0)){Ef=409;break c}if(c[jb>>2]|0)f=(c[lb>>2]|0)!=0?31680:31728;else f=31632;pn((c[k>>2]|0)+44|0,c[q>>2]|0,f,g);c[l>>2]=1;break};case 4:{if((c[(c[p>>2]|0)+8>>2]|0)!=0?(c[(c[q>>2]|0)+24>>2]&33554432|0)!=0:0){Ef=422;break c}c[mb>>2]=c[(c[(c[q>>2]|0)+16>>2]|0)+(c[(c[p>>2]|0)+4>>2]<<4)+4>>2];if(c[mb>>2]|0){c[l>>2]=Rc(c[mb>>2]|0,c[(c[p>>2]|0)+8>>2]|0)|0;if((c[l>>2]|0)==5){Ef=425;break c}if(c[l>>2]|0)break c;do if((c[(c[p>>2]|0)+8>>2]|0)!=0?((e[(c[k>>2]|0)+88>>1]|0)>>>7&1|0)!=0:0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[_c+6>>0]=0;c[_c+8>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+8>>2]|0)*40|0);c[l>>2]=Gw(c[Zc>>2]|0,_c,0,0,0,hf)|0;if((c[l>>2]|0)==0&(c[hf>>2]|0)==0)c[l>>2]=Ez(c[Zc>>2]|0)|0;c[(c[Yc>>2]|0)+60>>2]=0;break};case 116:case 115:case 114:case 113:{c[fd>>2]=c[(c[(c[k>>2]|0)+56>>2]|0)+(c[(c[p>>2]|0)+4>>2]<<2)>>2];c[ed>>2]=c[(c[fd>>2]|0)+8>>2];b[ed+4>>1]=c[(c[p>>2]|0)+16>>2];f=ed+6|0;if((d[c[p>>2]>>0]|0)<115)a[f>>0]=-1;else a[f>>0]=0;c[ed+8>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+12>>2]|0)*40|0);c[ad>>2]=0;c[l>>2]=Oz(c[q>>2]|0,c[fd>>2]|0,ed,ad)|0;f=c[ad>>2]|0;if((d[c[p>>2]>>0]&1|0)==1)c[ad>>2]=0-f;else c[ad>>2]=f+1;if((c[ad>>2]|0)>0)c[n>>2]=(c[(c[p>>2]|0)+8>>2]|0)-1;break};case 117:{c[id>>2]=0;c[jd>>2]=c[(c[q>>2]|0)+4>>2];while(1){if(!(c[jd>>2]|0))break;if((((c[(c[jd>>2]|0)+40>>2]|0)==-1108210269?((e[(c[jd>>2]|0)+88>>1]|0)>>>9&1|0)!=0:0)?((e[(c[jd>>2]|0)+88>>1]|0)>>>2&3|0)<2:0)?(c[(c[jd>>2]|0)+76>>2]|0)>=0:0)c[id>>2]=(c[id>>2]|0)+1;c[jd>>2]=c[(c[jd>>2]|0)+52>>2]}b[(c[w>>2]|0)+8>>1]=1;if((c[id>>2]|0)>1){c[l>>2]=6;a[(c[k>>2]|0)+86>>0]=2;break d}c[gd>>2]=c[(c[p>>2]|0)+12>>2];c[hd>>2]=0;c[l>>2]=Pz(c[(c[(c[q>>2]|0)+16>>2]|0)+(c[gd>>2]<<4)+4>>2]|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;c[Hf>>2]=Gf;c[Hf+4>>2]=((Gf|0)<0)<<31>>31;break};case 123:{c[l>>2]=fs(c[q>>2]|0,c[(c[p>>2]|0)+4>>2]|0)|0;break};case 124:{Uz(c[q>>2]|0,c[(c[p>>2]|0)+4>>2]|0,c[(c[p>>2]|0)+16>>2]|0);break};case 122:{c[rd>>2]=c[(c[p>>2]|0)+4>>2];c[sd>>2]=(c[rd>>2]|0)==1?14904:14928;c[qd>>2]=c[q>>2];c[qd+8>>2]=c[(c[p>>2]|0)+4>>2];c[qd+4>>2]=(c[k>>2]|0)+44;Hf=c[q>>2]|0;Ff=c[sd>>2]|0;Gf=c[(c[p>>2]|0)+16>>2]|0;c[g>>2]=c[(c[(c[q>>2]|0)+16>>2]|0)+(c[rd>>2]<<4)>>2];c[g+4>>2]=Ff;c[g+8>>2]=Gf;c[pd>>2]=Te(Hf,31776,g)|0;if(!(c[pd>>2]|0))c[l>>2]=7;else{a[(c[q>>2]|0)+145>>0]=1;c[qd+12>>2]=0;c[l>>2]=kf(c[q>>2]|0,c[pd>>2]|0,6,qd,0)|0;if(!(c[l>>2]|0))c[l>>2]=c[qd+12>>2];Xb(c[q>>2]|0,c[pd>>2]|0);a[(c[q>>2]|0)+145>>0]=0}if(c[l>>2]|0)cd(c[q>>2]|0);if((c[l>>2]|0)==7){Ef=871;break a}break};case 126:{Wz(c[q>>2]|0,c[(c[p>>2]|0)+4>>2]|0,c[(c[p>>2]|0)+16>>2]|0);break};case 127:{c[vd>>2]=c[(c[p>>2]|0)+8>>2];c[ud>>2]=Qe(c[q>>2]|0,(c[vd>>2]|0)+1<<2,0)|0;if(!(c[ud>>2]|0)){Ef=871;break a}c[wd>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+12>>2]|0)*40|0);c[jf>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+4>>2]|0)*40|0);c[yd>>2]=0;while(1){f=c[yd>>2]|0;if((c[yd>>2]|0)>=(c[vd>>2]|0))break;Hf=Kd((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(!(aA(c[be>>2]|0)|0))c[ce>>2]=c[ee>>2];c[fe>>2]=ug(c[be>>2]|0,1)|0;do if((c[ce>>2]|0)==5){if((Mb(c[fe>>2]|0)|0)!=0?(bA(c[be>>2]|0)|0)!=0:0)break;c[ce>>2]=c[ee>>2]}while(0);do if((c[ce>>2]|0)!=(c[ee>>2]|0)?(c[ee>>2]|0)==5|(c[ce>>2]|0)==5:0){if((a[(c[q>>2]|0)+62>>0]|0)!=0?(c[(c[q>>2]|0)+152>>2]|0)<=1:0){do if((c[ee>>2]|0)==5){c[l>>2]=cA(c[be>>2]|0)|0;if(c[l>>2]|0)break;dA(c[be>>2]|0,c[ce>>2]|0)|0}else{if((c[ee>>2]|0)!=4)break;dA(c[be>>2]|0,2)|0}while(0);if(c[l>>2]|0)break;c[l>>2]=dd(c[de>>2]|0,(c[ce>>2]|0)==5?2:1)|0;break}c[l>>2]=1;Gf=(c[k>>2]|0)+44|0;Hf=c[q>>2]|0;c[g>>2]=(c[ce>>2]|0)==5?31936:31944;pn(Gf,Hf,31880,g);break d}while(0);if(c[l>>2]|0)c[ce>>2]=c[ee>>2];c[ce>>2]=dA(c[be>>2]|0,c[ce>>2]|0)|0;c[w>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+8>>2]|0)*40|0);b[(c[w>>2]|0)+8>>1]=2562;Hf=Rt(c[ce>>2]|0)|0;c[(c[w>>2]|0)+16>>2]=Hf;Hf=Mb(c[(c[w>>2]|0)+16>>2]|0)|0;c[(c[w>>2]|0)+12>>2]=Hf;a[(c[w>>2]|0)+10>>0]=1;yk(c[w>>2]|0,d[x>>0]|0)|0;break};case 11:{c[ie>>2]=0;c[ie+8>>2]=-1;c[ie+4>>2]=-1;c[l>>2]=Zf(c[q>>2]|0,c[(c[p>>2]|0)+4>>2]|0,c[(c[p>>2]|0)+8>>2]|0,ie+4|0,ie+8|0)|0;if((c[l>>2]|0)==5){c[l>>2]=0;c[ie>>2]=1}c[he>>2]=0;c[je>>2]=(c[$c>>2]|0)+((c[(c[p>>2]|0)+12>>2]|0)*40|0);while(1){if((c[he>>2]|0)>=3)break d;Hf=c[ie+(c[he>>2]<<2)>>2]|0;Xd(c[je>>2]|0,Hf,((Hf|0)<0)<<31>>31);c[he>>2]=(c[he>>2]|0)+1;c[je>>2]=(c[je>>2]|0)+40}};case 141:{c[ke>>2]=c[(c[(c[q>>2]|0)+16>>2]|0)+(c[(c[p>>2]|0)+4>>2]<<4)+4>>2];c[l>>2]=fA(c[ke>>2]|0)|0;if((c[l>>2]|0)==101){c[n>>2]=(c[(c[p>>2]|0)+8>>2]|0)-1;c[l>>2]=0}break};case 142:if(c[(c[p>>2]|0)+4>>2]|0){Hf=(c[k>>2]|0)+88|0;b[Hf>>1]=b[Hf>>1]&-33|32;break d}else{gf(c[q>>2]|0);break d};case 13:{c[l>>2]=eA((c[k>>2]|0)+44|0,c[q>>2]|0)|0;break};case 143:{a[oe>>0]=c[(c[p>>2]|0)+12>>2];if((d[oe>>0]|0)==0?0!=(c[(c[q>>2]|0)+24>>2]&16384|0):0)break d;c[me>>2]=c[(c[p>>2]|0)+4>>2];c[l>>2]=gA(c[(c[(c[q>>2]|0)+16>>2]|0)+(c[me>>2]<<4)+4>>2]|0,c[(c[p>>2]|0)+8>>2]|0,a[oe>>0]|0)|0;if((c[l>>2]&255|0)==6){c[le>>2]=c[(c[p>>2]|0)+16>>2];Gf=(c[k>>2]|0)+44|0;Hf=c[q>>2]|0;c[g>>2]=c[le>>2];pn(Gf,Hf,31952,g)}break};case 145:{c[l>>2]=iA(c[q>>2]|0,c[(c[p>>2]|0)+4>>2]|0,c[(c[p>>2]|0)+16>>2]|0,(c[k>>2]|0)+44|0)|0;break};case 146:{Hf=(c[k>>2]|0)+88|0;b[Hf>>1]=b[Hf>>1]&-13|8;c[l>>2]=jA(c[q>>2]|0,c[(c[p>>2]|0)+4>>2]|0,c[(c[p>>2]|0)+16>>2]|0)|0;Hf=(c[k>>2]|0)+88|0;b[Hf>>1]=b[Hf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44>>2]|0,1,-1);lh();a[(c[f>>2]|0)+64>>0]=a[h>>0]|0;c[(c[f>>2]|0)+52>>2]=c[e>>2];b=c[e>>2]|0;i=d;return b|0}function Xy(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;a=Yy(c[(c[d>>2]|0)+208>>2]|0)|0;i=b;return a|0}function Yy(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;e=b+4|0;d=b;c[e>>2]=a;c[d>>2]=0;if(!(c[e>>2]|0)){e=c[d>>2]|0;i=b;return e|0}c[d>>2]=c[(c[e>>2]|0)+12>>2];c[(c[e>>2]|0)+12>>2]=0;e=c[d>>2]|0;i=b;return e|0}function Zy(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;f=d+4|0;e=d;c[f>>2]=a;c[e>>2]=b;c[(c[f>>2]|0)+80>>2]=c[e>>2];a=(c[f>>2]|0)+84|0;c[a>>2]=(c[a>>2]|0)+(c[e>>2]|0);i=d;return}function _y(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=i;i=i+16|0;b=d+4|0;e=d;c[b>>2]=a;c[e>>2]=c[c[b>>2]>>2];c[(c[e>>2]|0)+200>>2]=c[(c[b>>2]|0)+16>>2];c[(c[e>>2]|0)+196>>2]=c[(c[b>>2]|0)+56>>2];c[(c[e>>2]|0)+4>>2]=c[(c[b>>2]|0)+8>>2];c[(c[e>>2]|0)+32>>2]=c[(c[b>>2]|0)+48>>2];c[(c[e>>2]|0)+8>>2]=c[(c[b>>2]|0)+12>>2];c[(c[e>>2]|0)+28>>2]=c[(c[b>>2]|0)+52>>2];c[(c[e>>2]|0)+56>>2]=c[(c[b>>2]|0)+20>>2];c[(c[e>>2]|0)+36>>2]=c[(c[b>>2]|0)+40>>2];g=(c[b>>2]|0)+32|0;f=c[g+4>>2]|0;a=(c[c[e>>2]>>2]|0)+32|0;c[a>>2]=c[g>>2];c[a+4>>2]=f;c[(c[e>>2]|0)+92>>2]=c[(c[b>>2]|0)+68>>2];i=d;return c[(c[b>>2]|0)+44>>2]|0}function $y(b){b=b|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;k=f+24|0;j=f+20|0;o=f+16|0;h=f+12|0;n=f+8|0;g=f+4|0;l=f;c[j>>2]=b;c[h>>2]=c[c[j>>2]>>2];if(a[(c[c[j>>2]>>2]|0)+64>>0]|0)c[(c[j>>2]|0)+80>>2]=7;if(c[(c[j>>2]|0)+200>>2]|0)_E(c[(c[j>>2]|0)+200>>2]|0,0,c[(c[j>>2]|0)+196>>2]|0)|0;OC(c[j>>2]|0);if((c[(c[j>>2]|0)+40>>2]|0)!=-1108210269){c[k>>2]=0;b=c[k>>2]|0;i=f;return b|0}if((c[(c[j>>2]|0)+76>>2]|0)>=0?((e[(c[j>>2]|0)+88>>1]|0)>>>9&1|0)!=0:0){c[g>>2]=0;c[n>>2]=c[(c[j>>2]|0)+80>>2]&255;if((c[n>>2]|0)==7|(c[n>>2]|0)==10|(c[n>>2]|0)==9)b=1;else b=(c[n>>2]|0)==13;c[l>>2]=b&1;do if((c[l>>2]|0)!=0?(c[n>>2]|0)!=9?1:((e[(c[j>>2]|0)+88>>1]|0)>>>8&1|0)==0:0){if((c[n>>2]|0)==7|(c[n>>2]|0)==13?((e[(c[j>>2]|0)+88>>1]|0)>>>7&1|0)!=0:0){c[g>>2]=2;break}Ik(c[h>>2]|0,516);Jk(c[h>>2]|0);a[(c[h>>2]|0)+62>>0]=1}while(0);if(!(c[(c[j>>2]|0)+80>>2]|0))bz(c[j>>2]|0,0)|0;if((c[(c[h>>2]|0)+304>>2]|0)>0?(c[(c[h>>2]|0)+328>>2]|0)==0:0)m=38;else if((d[(c[h>>2]|0)+62>>0]|0)!=0?(c[(c[h>>2]|0)+156>>2]|0)==(((e[(c[j>>2]|0)+88>>1]|0)>>>8&1|0)==0|0):0){if((c[(c[j>>2]|0)+80>>2]|0)!=0?(c[l>>2]|0)!=0?1:(d[(c[j>>2]|0)+86>>0]|0)!=3:0)Ik(c[h>>2]|0,0);else m=25;do if((m|0)==25){c[o>>2]=bz(c[j>>2]|0,1)|0;do if(c[o>>2]|0){if(!((e[(c[j>>2]|0)+88>>1]|0)>>>8&1)){c[o>>2]=787;break}c[k>>2]=1;b=c[k>>2]|0;i=f;return b|0}else c[o>>2]=PC(c[h>>2]|0,c[j>>2]|0)|0;while(0);if((c[o>>2]|0)==5?((e[(c[j>>2]|0)+88>>1]|0)>>>8&1|0)!=0:0){c[k>>2]=5;b=c[k>>2]|0;i=f;return b|0}if(c[o>>2]|0){c[(c[j>>2]|0)+80>>2]=c[o>>2];Ik(c[h>>2]|0,0);break}else{b=(c[h>>2]|0)+504|0;c[b>>2]=0;c[b+4>>2]=0;b=(c[h>>2]|0)+512|0;c[b>>2]=0;c[b+4>>2]=0;b=(c[h>>2]|0)+24|0;c[b>>2]=c[b>>2]&-16777217;bs(c[h>>2]|0);break}}while(0);c[(c[h>>2]|0)+500>>2]=0}else m=38;do if((m|0)==38?(c[g>>2]|0)==0:0){if((c[(c[j>>2]|0)+80>>2]|0)!=0?(d[(c[j>>2]|0)+86>>0]|0)!=3:0)if((d[(c[j>>2]|0)+86>>0]|0)==2){c[g>>2]=2;break}else{Ik(c[h>>2]|0,516);Jk(c[h>>2]|0);a[(c[h>>2]|0)+62>>0]=1;break}c[g>>2]=1}while(0);if((c[g>>2]|0)!=0?(c[o>>2]=cz(c[j>>2]|0,c[g>>2]|0)|0,(c[o>>2]|0)!=0):0){if(!((c[(c[j>>2]|0)+80>>2]|0)!=0?(c[(c[j>>2]|0)+80>>2]&255|0)!=19:0)){c[(c[j>>2]|0)+80>>2]=c[o>>2];Xb(c[h>>2]|0,c[(c[j>>2]|0)+44>>2]|0);c[(c[j>>2]|0)+44>>2]=0}Ik(c[h>>2]|0,516);Jk(c[h>>2]|0);a[(c[h>>2]|0)+62>>0]=1}if((e[(c[j>>2]|0)+88>>1]|0)>>>4&1){l=c[h>>2]|0;if((c[g>>2]|0)!=2)Zy(l,c[(c[j>>2]|0)+92>>2]|0);else Zy(l,0);c[(c[j>>2]|0)+92>>2]=0}}if((c[(c[j>>2]|0)+76>>2]|0)>=0){b=(c[h>>2]|0)+148|0;c[b>>2]=(c[b>>2]|0)+ -1;if(!((e[(c[j>>2]|0)+88>>1]|0)>>>8&1)){b=(c[h>>2]|0)+156|0;c[b>>2]=(c[b>>2]|0)+ -1}if((e[(c[j>>2]|0)+88>>1]|0)>>>9&1){b=(c[h>>2]|0)+152|0;c[b>>2]=(c[b>>2]|0)+ -1}}c[(c[j>>2]|0)+40>>2]=1369188723;if(a[(c[c[j>>2]>>2]|0)+64>>0]|0)c[(c[j>>2]|0)+80>>2]=7;c[k>>2]=(c[(c[j>>2]|0)+80>>2]|0)==5?5:0;b=c[k>>2]|0;i=f;return b|0}function az(a){a=a|0;var b=0,d=0,f=0,g=0;b=i;i=i+16|0;d=b+8|0;g=b+4|0;f=b;c[g>>2]=a;if(!((e[(c[g>>2]|0)+8>>1]|0)&18)){c[d>>2]=0;g=c[d>>2]|0;i=b;return g|0}c[f>>2]=c[(c[g>>2]|0)+12>>2];if((e[(c[g>>2]|0)+8>>1]|0)&16384)c[f>>2]=(c[f>>2]|0)+(c[c[g>>2]>>2]|0);c[d>>2]=(c[f>>2]|0)>(c[(c[(c[g>>2]|0)+32>>2]|0)+88>>2]|0)&1;g=c[d>>2]|0;i=b;return g|0}function bz(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;k=i;i=i+32|0;h=k;j=k+16|0;f=k+12|0;l=k+8|0;g=k+4|0;c[f>>2]=b;c[l>>2]=d;c[g>>2]=c[c[f>>2]>>2];if(!((c[l>>2]|0)!=0?(d=(c[g>>2]|0)+504|0,b=(c[g>>2]|0)+512|0,b=bF(c[d>>2]|0,c[d+4>>2]|0,c[b>>2]|0,c[b+4>>2]|0)|0,d=D,(d|0)>0|(d|0)==0&b>>>0>0):0))e=3;do if((e|0)==3){if((c[l>>2]|0)==0?(b=(c[f>>2]|0)+144|0,d=c[b+4>>2]|0,(d|0)>0|(d|0)==0&(c[b>>2]|0)>>>0>0):0)break;c[j>>2]=0;b=c[j>>2]|0;i=k;return b|0}while(0);c[(c[f>>2]|0)+80>>2]=787;a[(c[f>>2]|0)+86>>0]=2;pn((c[f>>2]|0)+44|0,c[g>>2]|0,24400,h);c[j>>2]=1;b=c[j>>2]|0;i=k;return b|0}function cz(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;h=i;i=i+32|0;g=h+28|0;d=h+24|0;f=h+20|0;e=h+16|0;k=h+12|0;m=h+8|0;j=h+4|0;l=h;c[g>>2]=a;c[d>>2]=b;c[f>>2]=c[c[g>>2]>>2];c[e>>2]=0;if(!(c[(c[f>>2]|0)+500>>2]|0)){a=c[e>>2]|0;i=h;return a|0}if(!(c[(c[g>>2]|0)+104>>2]|0)){a=c[e>>2]|0;i=h;return a|0}c[m>>2]=(c[(c[g>>2]|0)+104>>2]|0)-1;c[k>>2]=0;while(1){if((c[k>>2]|0)>=(c[(c[f>>2]|0)+20>>2]|0))break;c[j>>2]=0;c[l>>2]=c[(c[(c[f>>2]|0)+16>>2]|0)+(c[k>>2]<<4)+4>>2];if(c[l>>2]|0){if((c[d>>2]|0)==2)c[j>>2]=tz(c[l>>2]|0,2,c[m>>2]|0)|0;if(!(c[j>>2]|0))c[j>>2]=tz(c[l>>2]|0,1,c[m>>2]|0)|0;if(!(c[e>>2]|0))c[e>>2]=c[j>>2]}c[k>>2]=(c[k>>2]|0)+1}a=(c[f>>2]|0)+500|0;c[a>>2]=(c[a>>2]|0)+ -1;c[(c[g>>2]|0)+104>>2]=0;if(!(c[e>>2]|0)){if((c[d>>2]|0)==2)c[e>>2]=rz(c[f>>2]|0,2,c[m>>2]|0)|0;if(!(c[e>>2]|0))c[e>>2]=rz(c[f>>2]|0,1,c[m>>2]|0)|0}if((c[d>>2]|0)!=2){a=c[e>>2]|0;i=h;return a|0}a=(c[g>>2]|0)+152|0;m=c[a+4>>2]|0;l=(c[f>>2]|0)+504|0;c[l>>2]=c[a>>2];c[l+4>>2]=m;l=(c[g>>2]|0)+160|0;m=c[l+4>>2]|0;a=(c[f>>2]|0)+512|0;c[a>>2]=c[l>>2];c[a+4>>2]=m;a=c[e>>2]|0;i=h;return a|0}function dz(a){a=a|0;var b=0,d=0,f=0;b=i;i=i+16|0;d=b+4|0;f=b;c[f>>2]=a;if(((e[(c[f>>2]|0)+8>>1]|0)&514|0)!=2){c[d>>2]=0;f=c[d>>2]|0;i=b;return f|0}else{c[d>>2]=NC(c[f>>2]|0)|0;f=c[d>>2]|0;i=b;return f|0}return 0}function ez(a){a=a|0;var d=0,f=0,g=0;f=i;i=i+16|0;d=f+4|0;g=f;c[g>>2]=a;a=e[(c[g>>2]|0)+8>>1]|0;do if(!((e[(c[g>>2]|0)+8>>1]|0)&12))if(a&18){b[d>>1]=MC(c[g>>2]|0)|0;break}else{b[d>>1]=0;break}else b[d>>1]=a&12;while(0);i=f;return b[d>>1]|0}function fz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+12|0;h=e+8|0;g=e;c[h>>2]=a;a=g;c[a>>2]=b;c[a+4>>2]=d;a=g;d=c[h>>2]|0;if(!((c[a>>2]|0)==0?(c[a+4>>2]|0)==-2147483648:0)){a=g;a=ZE(0,0,c[a>>2]|0,c[a+4>>2]|0)|0;c[f>>2]=_m(d,a,D)|0;a=c[f>>2]|0;i=e;return a|0}a=d;b=c[a+4>>2]|0;if((b|0)>0|(b|0)==0&(c[a>>2]|0)>>>0>=0){c[f>>2]=1;a=c[f>>2]|0;i=e;return a|0}else{b=g;a=c[h>>2]|0;d=a;b=ZE(c[d>>2]|0,c[d+4>>2]|0,c[b>>2]|0,c[b+4>>2]|0)|0;c[a>>2]=b;c[a+4>>2]=D;c[f>>2]=0;a=c[f>>2]|0;i=e;return a|0}return 0}function gz(a,b,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c[k>>2]=1;o=c[k>>2]|0;i=f;return o|0}o=g;o=lF(c[o>>2]|0,c[o+4>>2]|0,0,1)|0;a=g;c[a>>2]=o;c[a+4>>2]=D;a=j;o=e;o=lF(c[a>>2]|0,c[a+4>>2]|0,c[o>>2]|0,c[o+4>>2]|0)|0;if(_m(g,o,D)|0){c[k>>2]=1;o=c[k>>2]|0;i=f;return o|0}else{b=g;a=c[b+4>>2]|0;o=c[h>>2]|0;c[o>>2]=c[b>>2];c[o+4>>2]=a;c[k>>2]=0;o=c[k>>2]|0;i=f;return o|0}return 0}function hz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;k=e+16|0;j=e+12|0;g=e+8|0;h=e+4|0;f=e;c[k>>2]=a;c[j>>2]=b;c[g>>2]=d;c[h>>2]=(c[k>>2]|0)+204;a:while(1){if(!(c[c[h>>2]>>2]|0))break;c[f>>2]=c[c[h>>2]>>2];do if((c[j>>2]|0)>=0){if((c[c[f>>2]>>2]|0)==(c[j>>2]|0)){if((c[(c[f>>2]|0)+4>>2]|0)>31)break;if(!(c[g>>2]&1<>2]|0)+4>>2]))break}c[h>>2]=(c[f>>2]|0)+16;continue a}while(0);if(c[(c[f>>2]|0)+12>>2]|0)rb[c[(c[f>>2]|0)+12>>2]&31](c[(c[f>>2]|0)+8>>2]|0);c[c[h>>2]>>2]=c[(c[f>>2]|0)+16>>2];Xb(c[c[k>>2]>>2]|0,c[f>>2]|0)}i=e;return}function iz(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;e=d+4|0;f=d;c[f>>2]=b;b=c[f>>2]|0;do if(a[(c[f>>2]|0)+26>>0]|0)c[e>>2]=LC(b)|0;else{if((c[b>>2]|0)!=0?(iC(c[c[f>>2]>>2]|0)|0)!=0:0){c[e>>2]=jC(c[f>>2]|0)|0;break}c[e>>2]=0}while(0);i=d;return c[e>>2]|0}function jz(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;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d=c[l>>2]|0;i=m;return d|0}b[(c[j>>2]|0)+8>>1]=1;d=Lp(c[j>>2]|0,(c[k>>2]|0)+2|0)|0;c[l>>2]=d;if(d){d=c[l>>2]|0;i=m;return d|0}p=c[q>>2]|0;r=c[o>>2]|0;q=c[k>>2]|0;o=c[(c[j>>2]|0)+16>>2]|0;if(c[n>>2]|0)c[l>>2]=My(p,r,q,o)|0;else c[l>>2]=ff(p,r,q,o)|0;if(!(c[l>>2]|0)){a[(c[(c[j>>2]|0)+16>>2]|0)+(c[k>>2]|0)>>0]=0;a[(c[(c[j>>2]|0)+16>>2]|0)+((c[k>>2]|0)+1)>>0]=0;b[(c[j>>2]|0)+8>>1]=528;c[(c[j>>2]|0)+12>>2]=c[k>>2];d=c[l>>2]|0;i=m;return d|0}else{Bd(c[j>>2]|0);d=c[l>>2]|0;i=m;return d|0}return 0}function nz(a,b){a=a|0;b=b|0;var d=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+48|0;d=f+32|0;k=f+28|0;j=f+24|0;m=f+20|0;l=f+16|0;h=f+8|0;g=f;c[k>>2]=a;c[j>>2]=b;c[m>>2]=e[(c[k>>2]|0)+8>>1];if(c[m>>2]&1){c[d>>2]=0;a=c[d>>2]|0;i=f;return a|0}if(!(c[m>>2]&4)){if(c[m>>2]&8){c[d>>2]=7;a=c[d>>2]|0;i=f;return a|0}c[l>>2]=c[(c[k>>2]|0)+12>>2];if(c[m>>2]&16384)c[l>>2]=(c[l>>2]|0)+(c[c[k>>2]>>2]|0);c[d>>2]=(c[l>>2]<<1)+12+((c[m>>2]&2|0)!=0&1);a=c[d>>2]|0;i=f;return a|0}a=c[k>>2]|0;k=c[a+4>>2]|0;b=h;c[b>>2]=c[a>>2];c[b+4>>2]=k;b=h;k=c[b>>2]|0;b=c[b+4>>2]|0;do if((c[h+4>>2]|0)<0){if(!((b|0)<-32768|(b|0)==-32768&k>>>0<1)){m=h;m=ZE(0,0,c[m>>2]|0,c[m+4>>2]|0)|0;a=g;c[a>>2]=m;c[a+4>>2]=D;break}c[d>>2]=6;a=c[d>>2]|0;i=f;return a|0}else{a=g;c[a>>2]=k;c[a+4>>2]=b}while(0);a=g;m=c[a+4>>2]|0;if(m>>>0<0|(m|0)==0&(c[a>>2]|0)>>>0<=127){a=h;if((0==(c[a+4>>2]|0)?(c[h>>2]&1|0)==(c[a>>2]|0):0)&(c[j>>2]|0)>=4)g=8+(c[g>>2]|0)|0;else g=1;c[d>>2]=g;a=c[d>>2]|0;i=f;return a|0}a=g;m=c[a+4>>2]|0;if(m>>>0<0|(m|0)==0&(c[a>>2]|0)>>>0<=32767){c[d>>2]=2;a=c[d>>2]|0;i=f;return a|0}a=g;m=c[a+4>>2]|0;if(m>>>0<0|(m|0)==0&(c[a>>2]|0)>>>0<=8388607){c[d>>2]=3;a=c[d>>2]|0;i=f;return a|0}a=g;m=c[a+4>>2]|0;if(m>>>0<0|(m|0)==0&(c[a>>2]|0)>>>0<=2147483647){c[d>>2]=4;a=c[d>>2]|0;i=f;return a|0}a=g;m=c[a+4>>2]|0;if(m>>>0<32767|(m|0)==32767&(c[a>>2]|0)>>>0<=4294967295){c[d>>2]=5;a=c[d>>2]|0;i=f;return a|0}else{c[d>>2]=6;a=c[d>>2]|0;i=f;return a|0}return 0}function oz(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;g=f+12|0;h=f+8|0;j=f;c[h>>2]=b;b=j;c[b>>2]=d;c[b+4>>2]=e;b=j;k=c[b+4>>2]|0;d=j;e=c[d>>2]|0;d=c[d+4>>2]|0;if(k>>>0<0|(k|0)==0&(c[b>>2]|0)>>>0<=127){a[c[h>>2]>>0]=e&127;c[g>>2]=1;k=c[g>>2]|0;i=f;return k|0}if(d>>>0<0|(d|0)==0&e>>>0<=16383){k=j;k=cF(c[k>>2]|0,c[k+4>>2]|0,7)|0;a[c[h>>2]>>0]=k&127|128;a[(c[h>>2]|0)+1>>0]=c[j>>2]&127;c[g>>2]=2;k=c[g>>2]|0;i=f;return k|0}else{k=j;c[g>>2]=JC(c[h>>2]|0,c[k>>2]|0,c[k+4>>2]|0)|0;k=c[g>>2]|0;i=f;return k|0}return 0}function pz(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;l=i;i=i+32|0;g=l+28|0;k=l+24|0;j=l+20|0;n=l+16|0;h=l+12|0;f=l;m=l+8|0;c[k>>2]=b;c[j>>2]=d;c[n>>2]=e;e=c[n>>2]|0;if(!((c[n>>2]|0)>>>0<=7&(c[n>>2]|0)>>>0>0))if(e>>>0>=12){c[h>>2]=c[(c[j>>2]|0)+12>>2];dF(c[k>>2]|0,c[(c[j>>2]|0)+16>>2]|0,c[h>>2]|0)|0;c[g>>2]=c[h>>2];b=c[g>>2]|0;i=l;return b|0}else{c[g>>2]=0;b=c[g>>2]|0;i=l;return b|0}if((e|0)==7){b=c[j>>2]|0;c[f+0>>2]=c[b+0>>2];c[f+4>>2]=c[b+4>>2]}else{e=c[j>>2]|0;d=c[e+4>>2]|0;b=f;c[b>>2]=c[e>>2];c[b+4>>2]=d}b=Ww(c[n>>2]|0)|0;c[m>>2]=b;c[h>>2]=b;do{b=c[f>>2]&255;d=(c[m>>2]|0)+ -1|0;c[m>>2]=d;a[(c[k>>2]|0)+d>>0]=b;d=f;d=cF(c[d>>2]|0,c[d+4>>2]|0,8)|0;b=f;c[b>>2]=d;c[b+4>>2]=D}while((c[m>>2]|0)!=0);c[g>>2]=c[h>>2];b=c[g>>2]|0;i=l;return b|0}function qz(f,g){f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;l=i;i=i+32|0;h=l+28|0;o=l+24|0;j=l+20|0;k=l;m=l+16|0;n=l+12|0;p=l+8|0;c[o>>2]=f;c[j>>2]=g;f=k;c[f>>2]=0;c[f+4>>2]=0;if(!(c[(c[o>>2]|0)+60>>2]|0)){f=c[j>>2]|0;c[f>>2]=0;c[f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return f|0}else if((n|0)==16){c[h>>2]=c[m>>2];f=c[h>>2]|0;i=l;return f|0}return 0}function rz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;i=i+32|0;m=f+28|0;g=f+24|0;k=f+20|0;e=f+16|0;n=f+12|0;j=f+8|0;l=f+4|0;h=f;c[m>>2]=a;c[g>>2]=b;c[k>>2]=d;c[e>>2]=0;if(!(c[(c[m>>2]|0)+328>>2]|0)){a=c[e>>2]|0;i=f;return a|0}c[n>>2]=0;while(1){if(c[e>>2]|0){g=15;break}if((c[n>>2]|0)>=(c[(c[m>>2]|0)+304>>2]|0)){g=15;break}c[j>>2]=c[(c[(c[m>>2]|0)+328>>2]|0)+(c[n>>2]<<2)>>2];c[l>>2]=c[c[(c[j>>2]|0)+4>>2]>>2];if((c[(c[j>>2]|0)+8>>2]|0)!=0?(c[c[l>>2]>>2]|0)>=2:0){d=c[g>>2]|0;if((d|0)==2)c[h>>2]=c[(c[l>>2]|0)+88>>2];else if(!d){c[h>>2]=c[(c[l>>2]|0)+80>>2];c[(c[j>>2]|0)+20>>2]=(c[k>>2]|0)+1}else c[h>>2]=c[(c[l>>2]|0)+84>>2];if((c[h>>2]|0)!=0?(c[(c[j>>2]|0)+20>>2]|0)>(c[k>>2]|0):0)c[e>>2]=zb[c[h>>2]&63](c[(c[j>>2]|0)+8>>2]|0,c[k>>2]|0)|0}c[n>>2]=(c[n>>2]|0)+1}if((g|0)==15){a=c[e>>2]|0;i=f;return a|0}return 0}function sz(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;n=i;i=i+32|0;l=n+20|0;o=n+16|0;p=n+12|0;m=n+8|0;k=n+4|0;h=n;c[l>>2]=e;c[o>>2]=f;c[p>>2]=g;c[k>>2]=0;if(!(c[l>>2]|0)){e=c[k>>2]|0;i=n;return e|0}Pc(c[l>>2]|0);c[m>>2]=c[(c[(c[l>>2]|0)+4>>2]|0)+8>>2];while(1){if(!(c[m>>2]|0)){j=14;break}if((c[p>>2]|0)!=0?(d[(c[m>>2]|0)+72>>0]&1|0)==0:0){if((d[(c[m>>2]|0)+73>>0]|0)==1?(c[k>>2]=Jy(c[m>>2]|0)|0,(c[k>>2]|0)!=0):0)break}else{Qk(c[m>>2]|0);a[(c[m>>2]|0)+73>>0]=4;c[(c[m>>2]|0)+68>>2]=c[o>>2]}c[h>>2]=0;while(1){if((c[h>>2]|0)>(b[(c[m>>2]|0)+76>>1]|0))break;Rk(c[(c[m>>2]|0)+120+(c[h>>2]<<2)>>2]|0);c[(c[m>>2]|0)+120+(c[h>>2]<<2)>>2]=0;c[h>>2]=(c[h>>2]|0)+1}c[m>>2]=c[(c[m>>2]|0)+8>>2]}if((j|0)==14){e=c[k>>2]|0;i=n;return e|0}sz(c[l>>2]|0,c[k>>2]|0,0)|0;e=c[k>>2]|0;i=n;return e|0}function tz(a,b,f){a=a|0;b=b|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0;g=i;i=i+32|0;j=g+16|0;l=g+12|0;m=g+8|0;h=g+4|0;k=g;c[j>>2]=a;c[l>>2]=b;c[m>>2]=f;c[h>>2]=0;if(!(c[j>>2]|0)){a=c[h>>2]|0;i=g;return a|0}if((d[(c[j>>2]|0)+8>>0]|0|0)!=2){a=c[h>>2]|0;i=g;return a|0}c[k>>2]=c[(c[j>>2]|0)+4>>2];Pc(c[j>>2]|0);c[h>>2]=si(c[c[k>>2]>>2]|0,c[l>>2]|0,c[m>>2]|0)|0;if(c[h>>2]|0){a=c[h>>2]|0;i=g;return a|0}if((c[m>>2]|0)<0?((e[(c[k>>2]|0)+22>>1]|0)&8|0)!=0:0)c[(c[k>>2]|0)+44>>2]=0;c[h>>2]=IC(c[k>>2]|0)|0;a=Hh((c[(c[(c[k>>2]|0)+12>>2]|0)+56>>2]|0)+28|0)|0;c[(c[k>>2]|0)+44>>2]=a;a=c[h>>2]|0;i=g;return a|0}function uz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]=(c[(c[n>>2]|0)+16>>2]|0)+(88+(c[l>>2]<<3));FC(c[c[o>>2]>>2]|0);d=c[o>>2]|0;i=j;return d|0}function wz(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,j=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;n=h+20|0;m=h+16|0;l=h+12|0;k=h+8|0;j=h+4|0;g=h;c[n>>2]=a;c[m>>2]=b;c[l>>2]=d;c[k>>2]=e;c[j>>2]=f;Pc(c[n>>2]|0);c[g>>2]=CC(c[n>>2]|0,c[m>>2]|0,c[l>>2]|0,c[k>>2]|0,c[j>>2]|0)|0;i=h;return c[g>>2]|0}function xz(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+4|0;g=e;c[f>>2]=b;c[g>>2]=d;a[(c[f>>2]|0)+74>>0]=c[g>>2];i=e;return}function yz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;f=i;i=i+16|0;j=f+12|0;h=f+8|0;g=f+4|0;e=f;c[j>>2]=a;c[h>>2]=b;c[g>>2]=d;Pc(c[j>>2]|0);c[e>>2]=BC(c[j>>2]|0,c[h>>2]|0,c[g>>2]|0)|0;i=f;return c[e>>2]|0}function zz(f,g,h){f=f|0;g=g|0;h=h|0;var 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;q=i;i=i+48|0;n=q+44|0;r=q+40|0;u=q+36|0;l=q+32|0;p=q+28|0;o=q+24|0;m=q+20|0;s=q+16|0;v=q+12|0;t=q+8|0;k=q+4|0;j=q;c[n>>2]=f;c[r>>2]=g;c[u>>2]=h;c[k>>2]=0;c[v>>2]=24+((e[(c[(c[u>>2]|0)+8>>2]|0)+6>>1]|0)-1<<2);c[t>>2]=128;f=(c[t>>2]|0)+(c[v>>2]|0)|0;c[m>>2]=se(c[n>>2]|0,f,((f|0)<0)<<31>>31)|0;c[(c[u>>2]|0)+56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>>2]=d;if(!(c[f>>2]|0)){i=e;return}AC(c[c[j>>2]>>2]|0,c[f>>2]|0);d=c[f>>2]|0;if(c[(c[f>>2]|0)+4>>2]|0){Kk(c[d+4>>2]|0)|0;i=e;return}a=c[f>>2]|0;if(c[d>>2]|0){Ok(c[a>>2]|0)|0;i=e;return}if(!(c[a+32>>2]|0)){i=e;return}c[g>>2]=c[(c[f>>2]|0)+32>>2];c[h>>2]=c[c[c[g>>2]>>2]>>2];a=(c[j>>2]|0)+88|0;b[a>>1]=b[a>>1]&-13|4;ub[c[(c[h>>2]|0)+28>>2]&31](c[g>>2]|0)|0;a=(c[j>>2]|0)+88|0;b[a>>1]=b[a>>1]&-13;i=e;return}function Bz(a){a=a|0;var b=0,e=0;e=i;i=i+16|0;b=e;c[b>>2]=a;i=e;return 1!=(d[(c[b>>2]|0)+73>>0]|0|0)|0}function Cz(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;g=f+12|0;j=f+8|0;k=f+4|0;h=f;c[j>>2]=b;c[k>>2]=e;if(1==(d[(c[j>>2]|0)+73>>0]|0|0)?((d[(c[j>>2]|0)+72>>0]|0)&8|0)!=0:0){c[g>>2]=0;b=c[g>>2]|0;i=f;return b|0}c[h>>2]=Iw(c[j>>2]|0)|0;do if(!(c[h>>2]|0)){e=c[k>>2]|0;if(!(d[(c[j>>2]|0)+73>>0]|0)){c[e>>2]=1;break}c[e>>2]=0;c[h>>2]=xw(c[j>>2]|0)|0;j=(c[j>>2]|0)+72|0;e=d[j>>0]|0;if(!(c[h>>2]|0)){a[j>>0]=e|8;break}else{a[j>>0]=e&-9;break}}while(0);c[g>>2]=c[h>>2];b=c[g>>2]|0;i=f;return b|0} function XE(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=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;d=i;h=a+b|0;l=c[a+4>>2]|0;do if(!(l&1)){p=c[a>>2]|0;if(!(l&3)){i=d;return}l=a+(0-p)|0;m=p+b|0;r=c[9754]|0;if(l>>>0>>0)db();if((l|0)==(c[9755]|0)){e=a+(b+4)|0;n=c[e>>2]|0;if((n&3|0)!=3){e=l;n=m;break}c[9752]=m;c[e>>2]=n&-2;c[a+(4-p)>>2]=m|1;c[h>>2]=m;i=d;return}s=p>>>3;if(p>>>0<256){e=c[a+(8-p)>>2]|0;n=c[a+(12-p)>>2]|0;o=39040+(s<<1<<2)|0;if((e|0)!=(o|0)){if(e>>>0>>0)db();if((c[e+12>>2]|0)!=(l|0))db()}if((n|0)==(e|0)){c[9750]=c[9750]&~(1<>>0>>0)db();o=n+8|0;if((c[o>>2]|0)==(l|0))q=o;else db()}else q=n+8|0;c[e+12>>2]=n;c[q>>2]=e;e=l;n=m;break}q=c[a+(24-p)>>2]|0;s=c[a+(12-p)>>2]|0;do if((s|0)==(l|0)){u=16-p|0;t=a+(u+4)|0;s=c[t>>2]|0;if(!s){t=a+u|0;s=c[t>>2]|0;if(!s){o=0;break}}while(1){v=s+20|0;u=c[v>>2]|0;if(u){s=u;t=v;continue}u=s+16|0;v=c[u>>2]|0;if(!v)break;else{s=v;t=u}}if(t>>>0>>0)db();else{c[t>>2]=0;o=s;break}}else{t=c[a+(8-p)>>2]|0;if(t>>>0>>0)db();r=t+12|0;if((c[r>>2]|0)!=(l|0))db();u=s+8|0;if((c[u>>2]|0)==(l|0)){c[r>>2]=s;c[u>>2]=t;o=s;break}else db()}while(0);if(q){s=c[a+(28-p)>>2]|0;r=39304+(s<<2)|0;if((l|0)==(c[r>>2]|0)){c[r>>2]=o;if(!o){c[9751]=c[9751]&~(1<>>0<(c[9754]|0)>>>0)db();r=q+16|0;if((c[r>>2]|0)==(l|0))c[r>>2]=o;else c[q+20>>2]=o;if(!o){e=l;n=m;break}}r=c[9754]|0;if(o>>>0>>0)db();c[o+24>>2]=q;p=16-p|0;q=c[a+p>>2]|0;do if(q)if(q>>>0>>0)db();else{c[o+16>>2]=q;c[q+24>>2]=o;break}while(0);p=c[a+(p+4)>>2]|0;if(p)if(p>>>0<(c[9754]|0)>>>0)db();else{c[o+20>>2]=p;c[p+24>>2]=o;e=l;n=m;break}else{e=l;n=m}}else{e=l;n=m}}else{e=a;n=b}while(0);l=c[9754]|0;if(h>>>0>>0)db();m=a+(b+4)|0;o=c[m>>2]|0;if(!(o&2)){if((h|0)==(c[9756]|0)){v=(c[9753]|0)+n|0;c[9753]=v;c[9756]=e;c[e+4>>2]=v|1;if((e|0)!=(c[9755]|0)){i=d;return}c[9755]=0;c[9752]=0;i=d;return}if((h|0)==(c[9755]|0)){v=(c[9752]|0)+n|0;c[9752]=v;c[9755]=e;c[e+4>>2]=v|1;c[e+v>>2]=v;i=d;return}n=(o&-8)+n|0;m=o>>>3;do if(o>>>0>=256){k=c[a+(b+24)>>2]|0;o=c[a+(b+12)>>2]|0;do if((o|0)==(h|0)){o=a+(b+20)|0;m=c[o>>2]|0;if(!m){o=a+(b+16)|0;m=c[o>>2]|0;if(!m){j=0;break}}while(1){p=m+20|0;q=c[p>>2]|0;if(q){m=q;o=p;continue}q=m+16|0;p=c[q>>2]|0;if(!p)break;else{m=p;o=q}}if(o>>>0>>0)db();else{c[o>>2]=0;j=m;break}}else{m=c[a+(b+8)>>2]|0;if(m>>>0>>0)db();p=m+12|0;if((c[p>>2]|0)!=(h|0))db();l=o+8|0;if((c[l>>2]|0)==(h|0)){c[p>>2]=o;c[l>>2]=m;j=o;break}else db()}while(0);if(k){m=c[a+(b+28)>>2]|0;l=39304+(m<<2)|0;if((h|0)==(c[l>>2]|0)){c[l>>2]=j;if(!j){c[9751]=c[9751]&~(1<>>0<(c[9754]|0)>>>0)db();l=k+16|0;if((c[l>>2]|0)==(h|0))c[l>>2]=j;else c[k+20>>2]=j;if(!j)break}h=c[9754]|0;if(j>>>0>>0)db();c[j+24>>2]=k;k=c[a+(b+16)>>2]|0;do if(k)if(k>>>0>>0)db();else{c[j+16>>2]=k;c[k+24>>2]=j;break}while(0);h=c[a+(b+20)>>2]|0;if(h)if(h>>>0<(c[9754]|0)>>>0)db();else{c[j+20>>2]=h;c[h+24>>2]=j;break}}}else{j=c[a+(b+8)>>2]|0;a=c[a+(b+12)>>2]|0;b=39040+(m<<1<<2)|0;if((j|0)!=(b|0)){if(j>>>0>>0)db();if((c[j+12>>2]|0)!=(h|0))db()}if((a|0)==(j|0)){c[9750]=c[9750]&~(1<>>0>>0)db();b=a+8|0;if((c[b>>2]|0)==(h|0))k=b;else db()}else k=a+8|0;c[j+12>>2]=a;c[k>>2]=j}while(0);c[e+4>>2]=n|1;c[e+n>>2]=n;if((e|0)==(c[9755]|0)){c[9752]=n;i=d;return}}else{c[m>>2]=o&-2;c[e+4>>2]=n|1;c[e+n>>2]=n}b=n>>>3;if(n>>>0<256){a=b<<1;h=39040+(a<<2)|0;j=c[9750]|0;b=1<>2]|0;if(j>>>0<(c[9754]|0)>>>0)db();else{g=a;f=j}}else{c[9750]=j|b;g=39040+(a+2<<2)|0;f=h}c[g>>2]=e;c[f+12>>2]=e;c[e+8>>2]=f;c[e+12>>2]=h;i=d;return}f=n>>>8;if(f)if(n>>>0>16777215)f=31;else{u=(f+1048320|0)>>>16&8;v=f<>>16&4;v=v<>>16&2;f=14-(t|u|f)+(v<>>15)|0;f=n>>>(f+7|0)&1|f<<1}else f=0;g=39304+(f<<2)|0;c[e+28>>2]=f;c[e+20>>2]=0;c[e+16>>2]=0;a=c[9751]|0;h=1<>2]=e;c[e+24>>2]=g;c[e+12>>2]=e;c[e+8>>2]=e;i=d;return}g=c[g>>2]|0;if((f|0)==31)f=0;else f=25-(f>>>1)|0;a:do if((c[g+4>>2]&-8|0)!=(n|0)){f=n<>>31<<2)+16|0;g=c[h>>2]|0;if(!g)break;if((c[g+4>>2]&-8|0)==(n|0))break a;else{f=f<<1;a=g}}if(h>>>0<(c[9754]|0)>>>0)db();c[h>>2]=e;c[e+24>>2]=a;c[e+12>>2]=e;c[e+8>>2]=e;i=d;return}while(0);f=g+8|0;h=c[f>>2]|0;v=c[9754]|0;if(!(g>>>0>=v>>>0&h>>>0>=v>>>0))db();c[h+12>>2]=e;c[f>>2]=e;c[e+8>>2]=h;c[e+12>>2]=g;c[e+24>>2]=0;i=d;return}function YE(){}function ZE(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(D=b,a-c>>>0|0)|0}function _E(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;i=b&3;h=d|d<<8|d<<16|d<<24;g=f&~3;if(i){i=b+4-i|0;while((b|0)<(i|0)){a[b>>0]=d;b=b+1|0}}while((b|0)<(g|0)){c[b>>2]=h;b=b+4|0}}while((b|0)<(f|0)){a[b>>0]=d;b=b+1|0}return b-e|0}function $E(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b<>>32-c;return a<>0]|0)c=c+1|0;return c-b|0}function bF(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=a+c>>>0;return(D=b+d+(c>>>0>>0|0)>>>0,c|0)|0}function cF(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b>>>c;return a>>>c|(b&(1<>>c-32|0}function dF(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;if((e|0)>=4096)return Na(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>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function eF(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>>0]=a[c>>0]|0}b=e}else dF(b,c,d)|0;return b|0}function fF(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b>>c;return a>>>c|(b&(1<>c-32|0}function gF(b){b=b|0;var c=0;c=a[n+(b>>>24)>>0]|0;if((c|0)<8)return c|0;c=a[n+(b>>16&255)>>0]|0;if((c|0)<8)return c+8|0;c=a[n+(b>>8&255)>>0]|0;if((c|0)<8)return c+16|0;return(a[n+(b&255)>>0]|0)+24|0}function hF(b){b=b|0;var c=0;c=a[m+(b&255)>>0]|0;if((c|0)<8)return c|0;c=a[m+(b>>8&255)>>0]|0;if((c|0)<8)return c+8|0;c=a[m+(b>>16&255)>>0]|0;if((c|0)<8)return c+16|0;return(a[m+(b>>>24)>>0]|0)+24|0}function iF(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=a&65535;d=b&65535;c=$(d,f)|0;e=a>>>16;d=(c>>>16)+($(d,e)|0)|0;b=b>>>16;a=$(b,f)|0;return(D=(d>>>16)+($(b,e)|0)+(((d&65535)+a|0)>>>16)|0,d+a<<16|c&65535|0)|0}function jF(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=ZE(j^a,i^b,j,i)|0;g=D;b=f^j;a=e^i;a=ZE((oF(h,g,ZE(f^c,e^d,f,e)|0,D,0)|0)^b,D^a,b,a)|0;return a|0}function kF(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=ZE(h^a,g^b,h,g)|0;a=D;oF(b,a,ZE(l^d,k^e,l,k)|0,D,j)|0;a=ZE(c[j>>2]^h,c[j+4>>2]^g,h,g)|0;b=D;i=f;return(D=b,a)|0}function lF(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=iF(e,f)|0;c=D;return(D=($(b,f)|0)+($(d,e)|0)+c|c&0,a|0|0)|0}function mF(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=oF(a,b,c,d,0)|0;return a|0}function nF(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;oF(a,b,d,e,f)|0;i=g;return(D=c[f+4>>2]|0,c[f>>2]|0)|0}function oF(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,p=0;h=a;j=b;i=j;l=d;g=e;k=g;if(!i){g=(f|0)!=0;if(!k){if(g){c[f>>2]=(h>>>0)%(l>>>0);c[f+4>>2]=0}k=0;m=(h>>>0)/(l>>>0)>>>0;return(D=k,m)|0}else{if(!g){l=0;m=0;return(D=l,m)|0}c[f>>2]=a|0;c[f+4>>2]=b&0;l=0;m=0;return(D=l,m)|0}}m=(k|0)==0;do if(l){if(!m){k=(gF(k|0)|0)-(gF(i|0)|0)|0;if(k>>>0<=31){m=k+1|0;l=31-k|0;a=k-31>>31;j=m;b=h>>>(m>>>0)&a|i<>>(m>>>0)&a;k=0;l=h<>2]=a|0;c[f+4>>2]=j|b&0;l=0;m=0;return(D=l,m)|0}k=l-1|0;if(k&l){l=(gF(l|0)|0)+33-(gF(i|0)|0)|0;p=64-l|0;m=32-l|0;n=m>>31;o=l-32|0;a=o>>31;j=l;b=m-1>>31&i>>>(o>>>0)|(i<>>(l>>>0))&a;a=a&i>>>(l>>>0);k=h<>>(o>>>0))&n|h<>31;break}if(f){c[f>>2]=k&h;c[f+4>>2]=0}if((l|0)==1){o=j|b&0;p=a|0|0;return(D=o,p)|0}else{p=hF(l|0)|0;o=i>>>(p>>>0)|0;p=i<<32-p|h>>>(p>>>0)|0;return(D=o,p)|0}}else{if(m){if(f){c[f>>2]=(i>>>0)%(l>>>0);c[f+4>>2]=0}o=0;p=(i>>>0)/(l>>>0)>>>0;return(D=o,p)|0}if(!h){if(f){c[f>>2]=0;c[f+4>>2]=(i>>>0)%(k>>>0)}o=0;p=(i>>>0)/(k>>>0)>>>0;return(D=o,p)|0}l=k-1|0;if(!(l&k)){if(f){c[f>>2]=a|0;c[f+4>>2]=l&i|b&0}o=0;p=i>>>((hF(k|0)|0)>>>0);return(D=o,p)|0}k=(gF(k|0)|0)-(gF(i|0)|0)|0;if(k>>>0<=30){a=k+1|0;l=31-k|0;j=a;b=i<>>(a>>>0);a=i>>>(a>>>0);k=0;l=h<>2]=a|0;c[f+4>>2]=j|b&0;o=0;p=0;return(D=o,p)|0}while(0);if(!j){g=l;e=0;i=0}else{h=d|0|0;g=g|e&0;e=bF(h,g,-1,-1)|0;d=D;i=0;do{m=l;l=k>>>31|l<<1;k=i|k<<1;m=b<<1|m>>>31|0;n=b>>>31|a<<1|0;ZE(e,d,m,n)|0;p=D;o=p>>31|((p|0)<0?-1:0)<<1;i=o&1;b=ZE(m,n,o&h,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&g)|0;a=D;j=j-1|0}while((j|0)!=0);g=l;e=0}h=0;if(f){c[f>>2]=b;c[f+4>>2]=a}o=(k|0)>>>31|(g|h)<<1|(h<<1|k>>>31)&0|e;p=(k<<1|0>>>31)&-2|i;return(D=o,p)|0}function pF(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return pb[a&31](b|0,c|0,d|0)|0}function qF(a){a=a|0;return qb[a&1]()|0}function rF(a,b){a=a|0;b=b|0;rb[a&31](b|0)}function sF(a,b,c){a=a|0;b=b|0;c=c|0;sb[a&7](b|0,c|0)}function tF(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 tb[a&1](b|0,c|0,d|0,e|0,f|0,g|0)|0}function uF(a,b){a=a|0;b=b|0;return ub[a&31](b|0)|0}function vF(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;vb[a&63](b|0,c|0,d|0)}function wF(a){a=a|0;wb[a&0]()}function xF(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return xb[a&7](b|0,c|0,d|0,e|0)|0}function yF(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;yb[a&0](b|0,c|0,d|0,e|0,f|0,g|0)}function zF(a,b,c){a=a|0;b=b|0;c=c|0;return zb[a&63](b|0,c|0)|0}function AF(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 Ab[a&15](b|0,c|0,d|0,e|0,f|0)|0}function BF(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Bb[a&3](b|0,c|0,d|0,e|0)}function CF(a,b,c){a=a|0;b=b|0;c=c|0;aa(0);return 0}function DF(a,b,c){a=a|0;b=b|0;c=c|0;return Ca(a|0,b|0,c|0)|0}function EF(a,b,c){a=a|0;b=b|0;c=c|0;return mb(a|0,b|0,c|0)|0}function FF(a,b,c){a=a|0;b=b|0;c=c|0;return Wa(a|0,b|0,c|0)|0}function GF(){aa(1);return 0}function HF(a){a=a|0;aa(2)}function IF(a,b){a=a|0;b=b|0;aa(3)}function JF(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;aa(4);return 0}function KF(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 jb(a|0,b|0,c|0,d|0,e|0,f|0)|0}function LF(a){a=a|0;aa(5);return 0}function MF(a){a=a|0;return lb(a|0)|0}function NF(a){a=a|0;return Oa(a|0)|0}function OF(a){a=a|0;return Aa(a|0)|0}function PF(a,b,c){a=a|0;b=b|0;c=c|0;aa(6)}function QF(){aa(7)}function RF(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;aa(8);return 0}function SF(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;aa(9)}function TF(a,b){a=a|0;b=b|0;aa(10);return 0}function UF(a,b){a=a|0;b=b|0;return xa(a|0,b|0)|0}function VF(a,b){a=a|0;b=b|0;return ta(a|0,b|0)|0}function WF(a,b){a=a|0;b=b|0;return Za(a|0,b|0)|0}function XF(a,b){a=a|0;b=b|0;return ya(a|0,b|0)|0}function YF(a,b){a=a|0;b=b|0;return Sa(a|0,b|0)|0}function ZF(a,b){a=a|0;b=b|0;return Qa(a|0,b|0)|0}function _F(a,b){a=a|0;b=b|0;return Ta(a|0,b|0)|0}function $F(a,b){a=a|0;b=b|0;return ib(a|0,b|0)|0}function aG(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;aa(11);return 0}function bG(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;aa(12)} // EMSCRIPTEN_END_FUNCS var pb=[CF,Ac,Dc,Gc,Ic,ni,al,dl,BD,HD,VD,DF,EF,FF,XD,Sw,Tw,Uw,CF,CF,CF,CF,CF,CF,CF,CF,CF,CF,CF,CF,CF,CF];var qb=[GF,YD];var rb=[HF,$k,hl,il,ul,zl,Dl,dm,em,fm,hm,jm,LD,hc,Bh,wh,Vr,HF,HF,HF,HF,HF,HF,HF,HF,HF,HF,HF,HF,HF,HF,HF];var sb=[IF,bl,gl,cr,mq,IF,IF,IF];var tb=[JF,KF];var ub=[LF,ki,_k,cl,tl,wl,xl,yl,yD,ID,JD,MF,NF,OF,mE,vE,Tb,Ed,Fh,LF,LF,LF,LF,LF,LF,LF,LF,LF,LF,LF,LF,LF];var vb=[PF,el,Al,Bl,Cl,El,Fl,Gl,Hl,Il,Jl,Kl,Ll,Ml,Nl,Ol,Pl,Ql,Rl,Sl,Tl,Ul,Vl,Wl,Xl,Yl,Zl,_l,$l,am,bm,cm,gm,im,km,nm,om,pm,tm,um,vm,wm,xm,ym,zm,Am,Ur,Sr,Rr,rt,ut,Tf,PF,PF,PF,PF,PF,PF,PF,PF,PF,PF,PF,PF];var wb=[QF];var xb=[RF,Bc,Cc,KD,OD,Wf,cs,is];var yb=[SF];var zb=[TF,Ec,Fc,Hc,Jc,Kc,GE,lE,xD,oi,pi,vl,CD,DD,ED,FD,GD,MD,UF,VF,WF,XF,YF,ZF,WD,_F,$F,nE,oE,pE,wE,xE,yE,gc,Pf,Wj,Yi,nq,ar,br,tq,uq,Pq,Wq,ft,gt,sw,tw,Qx,Rx,TF,TF,TF,TF,TF,TF,TF,TF,TF,TF,TF,TF,TF,TF];var Ab=[aG,zc,li,mi,zD,AD,ND,zE,oh,ph,aG,aG,aG,aG,aG,aG];var Bb=[bG,fl,dc,bG];return{_strlen:aF,_sqlite3_column_name:Ce,_sqlite3_reset:xd,_sqlite3_column_type:Be,_sqlite3_exec:kf,_sqlite3_step:je,_bitshift64Lshr:cF,_sqlite3_prepare_v2:mf,_sqlite3_close_v2:Mf,_sqlite3_open:cg,_bitshift64Shl:$E,_sqlite3_column_bytes:ye,_sqlite3_bind_int:Ie,_sqlite3_bind_blob:Ee,_memset:_E,_memcpy:dF,_sqlite3_column_blob:ve,_sqlite3_bind_parameter_index:Le,_i64Subtract:ZE,_sqlite3_column_text:Ae,_realloc:SE,_i64Add:bF,_sqlite3_finalize:td,_sqlite3_column_double:ze,_sqlite3_errmsg:nf,_sqlite3_data_count:ue,_sqlite3_bind_text:Ke,_sqlite3_bind_double:Ge,_free:RE,_memmove:eF,_sqlite3_free:hc,_sqlite3_clear_bindings:Ad,_malloc:QE,runPostSets:YE,stackAlloc:Cb,stackSave:Db,stackRestore:Eb,setThrew:Fb,setTempRet0:Ib,getTempRet0:Jb,dynCall_iiii:pF,dynCall_i:qF,dynCall_vi:rF,dynCall_vii:sF,dynCall_iiiiiii:tF,dynCall_ii:uF,dynCall_viii:vF,dynCall_v:wF,dynCall_iiiii:xF,dynCall_viiiiii:yF,dynCall_iii:zF,dynCall_iiiiii:AF,dynCall_viiii:BF}}) // EMSCRIPTEN_END_ASM (r.ie,r.je,M),Ob=r._strlen=T._strlen;r._sqlite3_column_name=T._sqlite3_column_name;r._sqlite3_reset=T._sqlite3_reset;r._sqlite3_column_type=T._sqlite3_column_type;r._sqlite3_exec=T._sqlite3_exec;r._sqlite3_step=T._sqlite3_step;var xc=r._bitshift64Lshr=T._bitshift64Lshr;r._sqlite3_prepare_v2=T._sqlite3_prepare_v2;r._sqlite3_close_v2=T._sqlite3_close_v2;r._sqlite3_open=T._sqlite3_open;var Mb=r._bitshift64Shl=T._bitshift64Shl;r._sqlite3_column_bytes=T._sqlite3_column_bytes; r._sqlite3_bind_int=T._sqlite3_bind_int;r._sqlite3_bind_blob=T._sqlite3_bind_blob;var Kb=r._memset=T._memset,Cc=r._memcpy=T._memcpy;r._sqlite3_column_blob=T._sqlite3_column_blob;r._sqlite3_bind_parameter_index=T._sqlite3_bind_parameter_index;var Jb=r._i64Subtract=T._i64Subtract;r._sqlite3_column_text=T._sqlite3_column_text;r._realloc=T._realloc;var Pb=r._i64Add=T._i64Add;r._sqlite3_finalize=T._sqlite3_finalize;r._sqlite3_column_double=T._sqlite3_column_double;r._sqlite3_errmsg=T._sqlite3_errmsg; r._sqlite3_data_count=T._sqlite3_data_count;r._sqlite3_bind_text=T._sqlite3_bind_text;r._sqlite3_bind_double=T._sqlite3_bind_double;var Ka=r._free=T._free,Ec=r._memmove=T._memmove;r._sqlite3_free=T._sqlite3_free;r._sqlite3_clear_bindings=T._sqlite3_clear_bindings;var Ia=r._malloc=T._malloc;r.runPostSets=T.runPostSets;r.dynCall_iiii=T.dynCall_iiii;r.dynCall_i=T.dynCall_i;r.dynCall_vi=T.dynCall_vi;r.dynCall_vii=T.dynCall_vii;r.dynCall_iiiiiii=T.dynCall_iiiiiii;r.dynCall_ii=T.dynCall_ii; r.dynCall_viii=T.dynCall_viii;r.dynCall_v=T.dynCall_v;r.dynCall_iiiii=T.dynCall_iiiii;r.dynCall_viiiiii=T.dynCall_viiiiii;r.dynCall_iii=T.dynCall_iii;r.dynCall_iiiiii=T.dynCall_iiiiii;r.dynCall_viiii=T.dynCall_viiii;w.Ma=T.stackAlloc;w.Xb=T.stackSave;w.Wb=T.stackRestore;w.Lf=T.setTempRet0;w.Ye=T.getTempRet0;function U(a,b){a!=l&&("number"==typeof a?this.da(a):b==l&&"string"!=typeof a?this.S(a,256):this.S(a,b))}function Kc(){return new U(l)} function Lc(a,b){var c=Mc[a.charCodeAt(b)];return c==l?-1:c}function Nc(a){var b=Kc();b.Aa(a);return b}function V(a,b){this.H=a|0;this.M=b|0}V.Tc={};V.Aa=function(a){if(-128<=a&&128>a){var b=V.Tc[a];if(b)return b}b=new V(a|0,0>a?-1:0);-128<=a&&128>a&&(V.Tc[a]=b);return b};V.da=function(a){return isNaN(a)||!isFinite(a)?V.ZERO:a<=-V.Vc?V.MIN_VALUE:a+1>=V.Vc?V.MAX_VALUE:0>a?V.da(-a).K():new V(a%V.ya|0,a/V.ya|0)};V.qa=function(a,b){return new V(a,b)}; V.S=function(a,b){0==a.length&&e(Error("number format error: empty string"));var c=b||10;(2>c||36i?(i=V.da(Math.pow(c,i)),f=f.multiply(i).add(V.da(j))):(f=f.multiply(d),f=f.add(V.da(j)))}return f};V.bc=65536; V.gi=16777216;V.ya=V.bc*V.bc;V.hi=V.ya/2;V.ii=V.ya*V.bc;V.ce=V.ya*V.ya;V.Vc=V.ce/2;V.ZERO=V.Aa(0);V.ONE=V.Aa(1);V.Uc=V.Aa(-1);V.MAX_VALUE=V.qa(-1,2147483647);V.MIN_VALUE=V.qa(0,-2147483648);V.be=V.Aa(16777216);q=V.prototype;q.Zb=function(){return this.M*V.ya+this.Ue()}; q.toString=function(a){a=a||10;(2>a||36h.length;)h="0"+h;d=""+h+d}};q.Ue=function(){return 0<=this.H?this.H:V.ya+this.H}; q.Ja=function(){return 0==this.M&&0==this.H};q.Y=function(){return 0>this.M};q.zd=function(){return 1==(this.H&1)};q.ba=function(a){return this.M==a.M&&this.H==a.H};q.Bd=function(){return 0>this.lc(V.be)};q.af=function(a){return 0>>16,c=this.M&65535,d=this.H>>>16,f=a.M>>>16,h=a.M&65535,i=a.H>>>16,j;j=0+((this.H&65535)+(a.H&65535));a=0+(j>>>16);a+=d+i;d=0+(a>>>16);d+=c+h;c=0+(d>>>16);c=c+(b+f)&65535;return V.qa((a&65535)<<16|j&65535,c<<16|d&65535)};q.rb=function(a){return this.add(a.K())}; q.multiply=function(a){if(this.Ja()||a.Ja())return V.ZERO;if(this.ba(V.MIN_VALUE))return a.zd()?V.MIN_VALUE:V.ZERO;if(a.ba(V.MIN_VALUE))return this.zd()?V.MIN_VALUE:V.ZERO;if(this.Y())return a.Y()?this.K().multiply(a.K()):this.K().multiply(a).K();if(a.Y())return this.multiply(a.K()).K();if(this.Bd()&&a.Bd())return V.da(this.Zb()*a.Zb());var b=this.M>>>16,c=this.M&65535,d=this.H>>>16,f=this.H&65535,h=a.M>>>16,i=a.M&65535,j=a.H>>>16,a=a.H&65535,x,p,A,t;t=0+f*a;A=0+(t>>>16);A+=d*a;p=0+(A>>>16);A=(A& 65535)+f*j;p+=A>>>16;A&=65535;p+=c*a;x=0+(p>>>16);p=(p&65535)+d*j;x+=p>>>16;p&=65535;p+=f*i;x+=p>>>16;p&=65535;x=x+(b*a+c*j+d*i+f*h)&65535;return V.qa(A<<16|t&65535,x<<16|p)}; q.Ga=function(a){a.Ja()&&e(Error("division by zero"));if(this.Ja())return V.ZERO;if(this.ba(V.MIN_VALUE)){if(a.ba(V.ONE)||a.ba(V.Uc))return V.MIN_VALUE;if(a.ba(V.MIN_VALUE))return V.ONE;var b=this.Mf().Ga(a).shiftLeft(1);if(b.ba(V.ZERO))return a.Y()?V.ONE:V.Uc;var c=this.rb(a.multiply(b));return b.add(c.Ga(a))}if(a.ba(V.MIN_VALUE))return V.ZERO;if(this.Y())return a.Y()?this.K().Ga(a.K()):this.K().Ga(a).K();if(a.Y())return this.Ga(a.K()).K();for(var d=V.ZERO,c=this;c.bf(a);){for(var b=Math.max(1,Math.floor(c.Zb()/ a.Zb())),f=Math.ceil(Math.log(b)/Math.LN2),f=48>=f?1:Math.pow(2,f-48),h=V.da(b),i=h.multiply(a);i.Y()||i.af(c);)b-=f,h=V.da(b),i=h.multiply(a);h.Ja()&&(h=V.ONE);d=d.add(h);c=c.rb(i)}return d};q.uf=function(){return V.qa(~this.H,~this.M)};q.shiftLeft=function(a){a&=63;if(0==a)return this;var b=this.H;return 32>a?V.qa(b<>>32-a):V.qa(0,b<a?V.qa(this.H>>>a|b<<32-a,b>>a):V.qa(b>>a-32,0<=b?0:-1)};q=U.prototype; q.hc=function(a,b,c,d){for(var f=0,h=0;0<=--d;){var i=a*this[f++]+b[c]+h,h=Math.floor(i/67108864);b[c++]=i&67108863}return h};q.A=26;q.la=67108863;q.ab=67108864;q.Wd=Math.pow(2,52);q.Rc=26;q.Sc=0;var Mc=[],Oc,W;Oc=48;for(W=0;9>=W;++W)Mc[Oc++]=W;Oc=97;for(W=10;36>W;++W)Mc[Oc++]=W;Oc=65;for(W=10;36>W;++W)Mc[Oc++]=W;q=U.prototype;q.copyTo=function(a){for(var b=this.g-1;0<=b;--b)a[b]=this[b];a.g=this.g;a.u=this.u};q.Aa=function(a){this.g=1;this.u=0>a?-1:0;0a?this[0]=a+DV:this.g=0}; q.S=function(a,b){var c;if(16==b)c=4;else if(8==b)c=3;else if(256==b)c=8;else if(2==b)c=1;else if(32==b)c=5;else if(4==b)c=2;else{this.Qe(a,b);return}this.u=this.g=0;for(var d=a.length,f=m,h=0;0<=--d;){var i=8==c?a[d]&255:Lc(a,d);0>i?"-"==a.charAt(d)&&(f=k):(f=m,0==h?this[this.g++]=i:h+c>this.A?(this[this.g-1]|=(i&(1<>this.A-h):this[this.g-1]|=i<=this.A&&(h-=this.A))}8==c&&0!=(a[0]&128)&&(this.u=-1,0>d|i,i=(this[j]&f)<=this.g)b.g=0;else{var d=a%this.A,f=this.A-d,h=(1<>d;for(var i=c+1;i>d;0>=this.A;if(a.g>=this.A;d+=this.u}else{for(d+=this.u;c>=this.A;d-=a.u}b.u=0>d?-1:0;-1>d?b[c++]=this.ab+d:0=d.g)){var f=this.abs();if(f.g>>16))j=p,x+=16;if(0!=(p=j>>8))j=p,x+=8;if(0!=(p=j>>4))j=p,x+=4;if(0!=(p=j>>2))j=p,x+=2;0!=j>>1&&(x+=1);j=this.A-x;0>this.Sc:0);x=this.Wd/p;p=(1<i&&U.ZERO.ka(c,c)}}}}; q.toString=function(a){if(0>this.u)return"-"+this.K().toString(a);if(16==a)a=4;else if(8==a)a=3;else if(2==a)a=1;else if(32==a)a=5;else if(4==a)a=2;else return this.Of(a);var b=(1<>i))d=k,f="0123456789abcdefghijklmnopqrstuvwxyz".charAt(c);for(;0<=h;)i>(i+=this.A-a)):(c=this[h]>>(i-=a)&b,0>=i&&(i+=this.A,--h)),0this.u?this.K():this};q.Fb=function(a){var b=this.u-a.u;if(0!=b)return b;var c=this.g,b=c-a.g;if(0!=b)return 0>this.u?-b:b;for(;0<=--c;)if(0!=(b=this[c]-a[c]))return b;return 0};U.ZERO=Nc(0);U.ONE=Nc(1);q=U.prototype; q.Qe=function(a,b){this.Aa(0);b==l&&(b=10);for(var c=this.Db(b),d=Math.pow(b,c),f=m,h=0,i=0,j=0;jx?"-"==a.charAt(j)&&0==this.Hc()&&(f=k):(i=b*i+x,++h>=c&&(this.fd(d),this.ed(i),i=h=0))}0this.u?-1:0>=this.g||1==this.g&&0>=this[0]?0:1};q.fd=function(a){this[this.g]=this.hc(a-1,this,0,this.g);++this.g;this.za()}; q.ed=function(a){var b=0;if(0!=a){for(;this.g<=b;)this[this.g++]=0;for(this[b]+=a;this[b]>=this.ab;)this[b]-=this.ab,++b>=this.g&&(this[this.g++]=0),++this[b]}};q.Of=function(a){a==l&&(a=10);if(0==this.Hc()||2>a||36this.u){if(1==this.g)return this[0]-this.ab;if(0==this.g)return-1}else{if(1==this.g)return this[0];if(0==this.g)return 0}return(this[1]&(1<<32-this.A)-1)<>=this.A;if(a.g>=this.A;d+=this.u}else{for(d+=this.u;c>=this.A;d+=a.u}b.u=0>d?-1:0;0d&&(b[c++]=this.ab+d);b.g=c;b.za()}; var X={abs:function(a,b){var c=new V(a,b),c=c.Y()?c.K():c;E[ib>>2]=c.H;E[ib+4>>2]=c.M},kd:function(){X.Je||(X.Je=k,X.Md=new U,X.Md.S("4294967296",10),X.Jc=new U,X.Jc.S("18446744073709551616",10),X.Xi=new U,X.Yi=new U)},Oi:function(a,b){var c=new U;c.S(b.toString(),10);var d=new U;c.qf(d);c=new U;c.S(a.toString(),10);var f=new U;c.dc(d,f);return f},stringify:function(a,b,c){a=(new V(a,b)).toString();c&&"-"==a[0]&&(X.kd(),c=new U,c.S(a,10),a=new U,X.Jc.dc(c,a),a=a.toString(10));return a},S:function(a, b,c,d,f){X.kd();var h=new U;h.S(a,b);a=new U;a.S(c,10);c=new U;c.S(d,10);f&&0>h.Fb(U.ZERO)&&(d=new U,h.dc(X.Jc,d),h=d);d=m;0>h.Fb(a)?(h=a,d=k):0>2]=h.H;E[ib+4>>2]=h.M;d&&e("range error")}}; if(hb)if("function"===typeof r.locateFile?hb=r.locateFile(hb):r.memoryInitializerPrefixURL&&(hb=r.memoryInitializerPrefixURL+hb),s||ga){var Pc=r.readBinary(hb);K.set(Pc,Oa)}else fb(),Ib(hb,function(a){K.set(a,Oa);gb()},function(){e("could not load memory initializer "+hb)});function ka(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}ka.prototype=Error();var Qc,Rc=l,eb=function Sc(){!r.calledRun&&Tc&&Uc();r.calledRun||(eb=Sc)}; r.callMain=r.ri=function(a){function b(){for(var a=0;3>a;a++)d.push(0)}u(0==cb,"cannot call main when async dependencies remain! (listen on __ATMAIN__)");u(0==Ua.length,"cannot call main when preRun functions remain to be called");a=a||[];Za||(Za=k,Ta(Va));var c=a.length+1,d=[H(N(r.thisProgram),"i8",F)];b();for(var f=0;fd;a=0<=d?++f:--f)c[a]=D[b+a];return c};$.prototype.get=function(a){var b,c,d;a!=l&&this.bind(a)&&this.step();d=[];a=b=0;for(c=kd(this.L);0<=c?bc;a=0<=c?++b:--b)switch(jd(this.L,a)){case Y.Xd:case Y.FLOAT:d.push(this.We(a));break;case Y.ae:d.push(this.Xe(a));break;case Y.Nd:d.push(this.getBlob(a));break;default:d.push(l)}return d}; $.prototype.getColumnNames=function(){var a,b,c,d;d=[];a=b=0;for(c=kd(this.L);0<=c?bc;a=0<=c?++b:--b)d.push(hd(this.L,a));return d};$.prototype.getAsObject=function(a){var b,c,d,f,h,i;f=this.get(a);c=this.getColumnNames();d={};a=h=0;for(i=c.length;h>>0);a!=l&&z.Gb("/",this.filename,a,k,k);this.handleError(od(this.filename,Z));this.db=Ga(Z,"i32");this.Yb={}} ud.prototype.run=function(a,b){var c;this.db||e("Database closed");b?(c=this.prepare(a,b),c.step(),c.free()):this.handleError(md(this.db,a,0,0,Z));return this}; ud.prototype.exec=function(a){var b,c,d,f,h;this.db||e("Database closed");f=w.Xb();c=w.Ma(a.length<<3);xa(a,c);a=w.Ma(4);for(d=[];Ga(c,"i8")!==Wc;)if(ya(Z,0,"i32"),ya(a,0,"i32"),this.handleError(qd(this.db,c,-1,Z,a)),b=Ga(Z,"i32"),c=Ga(a,"i32"),b!==Wc){h=new $(b,this);for(b=l;h.step();)b===l&&(b={columns:h.getColumnNames(),values:[]},d.push(b)),b.values.push(h.get());h.free()}w.Wb(f);return d}; ud.prototype.each=function(a,b,c,d){"function"===typeof b&&(d=c,c=b,b=g);for(a=this.prepare(a,b);a.step();)c(a.getAsObject());a.free();if("function"===typeof d)return d()};ud.prototype.prepare=function(a,b){var c,d;ya(Z,0,"i32");this.handleError(pd(this.db,a,-1,Z,Wc));c=Ga(Z,"i32");c===Wc&&e("Nothing to prepare");d=new $(c,this);b!=l&&d.bind(b);return this.Yb[c]=d}; ud.prototype["export"]=function(){var a,b,c;c=this.Yb;for(b in c)a=c[b],a.free();this.handleError(dd(this.db));a=z.Ef(this.filename,{encoding:"binary"});this.handleError(od(this.filename,Z));this.db=Ga(Z,"i32");return a};ud.prototype.close=function(){var a,b,c;c=this.Yb;for(b in c)a=c[b],a.free();this.handleError(dd(this.db));z.Da("/"+this.filename);return this.db=l};ud.prototype.handleError=function(a){if(a===Y.Bb)return l;a=ld(this.db);e(Error(a))};Database=ud; od=r.cwrap("sqlite3_open","number",["string","number"]);dd=r.cwrap("sqlite3_close_v2","number",["number"]);md=r.cwrap("sqlite3_exec","number",["number","string","number","number","number"]);r.cwrap("sqlite3_free","",["number"]);pd=r.cwrap("sqlite3_prepare_v2","number",["number","string","number","number","number"]);qd=r.cwrap("sqlite3_prepare_v2","number",["number","number","number","number","number"]);bd=r.cwrap("sqlite3_bind_text","number",["number","number","number","number","number"]); Yc=r.cwrap("sqlite3_bind_blob","number",["number","number","number","number","number"]);Zc=r.cwrap("sqlite3_bind_double","number",["number","number","number"]);$c=r.cwrap("sqlite3_bind_int","number",["number","number","number"]);ad=r.cwrap("sqlite3_bind_parameter_index","number",["number","string"]);td=r.cwrap("sqlite3_step","number",["number"]);ld=r.cwrap("sqlite3_errmsg","string",["number"]);kd=r.cwrap("sqlite3_data_count","number",["number"]); gd=r.cwrap("sqlite3_column_double","number",["number","number"]);id=r.cwrap("sqlite3_column_text","string",["number","number"]);ed=r.cwrap("sqlite3_column_blob","number",["number","number"]);fd=r.cwrap("sqlite3_column_bytes","number",["number","number"]);jd=r.cwrap("sqlite3_column_type","number",["number","number"]);hd=r.cwrap("sqlite3_column_name","string",["number","number"]);rd=r.cwrap("sqlite3_reset","number",["number"]);cd=r.cwrap("sqlite3_clear_bindings","number",["number"]); nd=r.cwrap("sqlite3_finalize","number",["number"]);this.SQL={Database:Database};for(Xc in this.SQL)r[Xc]=this.SQL[Xc];Wc=0;Y.Bb=0;Y.xh=1;Y.Oh=2;Y.$h=3;Y.Sf=4;Y.Uf=5;Y.Rh=6;Y.Vh=7;Y.ci=8;Y.Ph=9;Y.Qh=10;Y.Xf=11;Y.Xh=12;Y.Nh=13;Y.Vf=14;Y.ai=15;Y.EMPTY=16;Y.di=17;Y.fi=18;Y.Wf=19;Y.Sh=20;Y.Th=21;Y.Uh=22;Y.Tf=23;Y.Mh=24;Y.bi=25;Y.Wh=26;Y.Yh=27;Y.ji=28;Y.$d=100;Y.DONE=101;Y.Xd=1;Y.FLOAT=2;Y.ae=3;Y.Nd=4;Y.Zh=5; return this['SQL']; })(); if (typeof module !== 'undefined') module.exports = SQL; if (typeof define === 'function') define(SQL);