-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathocrad.min.js
29 lines (29 loc) · 930 KB
/
ocrad.min.js
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
var OCRAD=function(){function globalEval(e){eval.call(null,e)}function assert(e,r){e||abort("Assertion failed: "+r)}function ccall(e,r,i,f){return ccallFunc(getCFunc(e),r,i,f)}function getCFunc(ident){try{var func=Module["_"+ident];func||(func=eval("_"+ident))}catch(e){}return assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)"),func}function ccallFunc(e,r,i,f){function a(e,r){if("string"==r){if(null===e||void 0===e||0===e)return 0;e=intArrayFromString(e),r="array"}if("array"==r){n||(n=Runtime.stackSave());var i=Runtime.stackAlloc(e.length);return writeArrayToMemory(e,i),i}return e}function t(e,r){return"string"==r?Pointer_stringify(e):(assert("array"!=r),e)}var n=0,o=0,u=f?f.map(function(e){return a(e,i[o++])}):[],l=t(e.apply(null,u),r);return n&&Runtime.stackRestore(n),l}function cwrap(e,r,i){var f=getCFunc(e);return function(){return ccallFunc(f,r,i,Array.prototype.slice.call(arguments))}}function setValue(e,r,i){switch(i=i||"i8","*"===i.charAt(i.length-1)&&(i="i32"),i){case"i1":HEAP8[e]=r;break;case"i8":HEAP8[e]=r;break;case"i16":HEAP16[e>>1]=r;break;case"i32":HEAP32[e>>2]=r;break;case"i64":tempI64=[r>>>0,(tempDouble=r,+Math_abs(tempDouble)>=1?tempDouble>0?(0|Math_min(+Math_floor(tempDouble/4294967296),4294967295))>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[e>>2]=tempI64[0],HEAP32[e+4>>2]=tempI64[1];break;case"float":HEAPF32[e>>2]=r;break;case"double":HEAPF64[e>>3]=r;break;default:abort("invalid type for setValue: "+i)}}function getValue(e,r){switch(r=r||"i8","*"===r.charAt(r.length-1)&&(r="i32"),r){case"i1":return HEAP8[e];case"i8":return HEAP8[e];case"i16":return HEAP16[e>>1];case"i32":return HEAP32[e>>2];case"i64":return HEAP32[e>>2];case"float":return HEAPF32[e>>2];case"double":return HEAPF64[e>>3];default:abort("invalid type for setValue: "+r)}return null}function allocate(e,r,i,f){var a,t;"number"==typeof e?(a=!0,t=e):(a=!1,t=e.length);var n,o="string"==typeof r?r:null;if(n=i==ALLOC_NONE?f:[_malloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][void 0===i?ALLOC_STATIC:i](Math.max(t,o?1:r.length)),a){var u,f=n;for(assert(0==(3&n)),u=n+(-4&t);u>f;f+=4)HEAP32[f>>2]=0;for(u=n+t;u>f;)HEAP8[0|f++]=0;return n}if("i8"===o)return e.subarray||e.slice?HEAPU8.set(e,n):HEAPU8.set(new Uint8Array(e),n),n;for(var l,s,b,k=0;t>k;){var c=e[k];"function"==typeof c&&(c=Runtime.getFunctionIndex(c)),l=o||r[k],0!==l?("i64"==l&&(l="i32"),setValue(n+k,c,l),b!==l&&(s=Runtime.getNativeTypeSize(l),b=l),k+=s):k++}return n}function Pointer_stringify(e,r){for(var i,f=!1,a=0;;){if(i=HEAPU8[e+a|0],i>=128)f=!0;else if(0==i&&!r)break;if(a++,r&&a==r)break}r||(r=a);var t="";if(!f){for(var n,o=1024;r>0;)n=String.fromCharCode.apply(String,HEAPU8.subarray(e,e+Math.min(r,o))),t=t?t+n:n,e+=o,r-=o;return t}var u=new Runtime.UTF8Processor;for(a=0;r>a;a++)i=HEAPU8[e+a|0],t+=u.processCChar(i);return t}function UTF16ToString(e){for(var r=0,i="";;){var f=HEAP16[e+2*r>>1];if(0==f)return i;++r,i+=String.fromCharCode(f)}}function stringToUTF16(e,r){for(var i=0;i<e.length;++i){var f=e.charCodeAt(i);HEAP16[r+2*i>>1]=f}HEAP16[r+2*e.length>>1]=0}function UTF32ToString(e){for(var r=0,i="";;){var f=HEAP32[e+4*r>>2];if(0==f)return i;if(++r,f>=65536){var a=f-65536;i+=String.fromCharCode(55296|a>>10,56320|1023&a)}else i+=String.fromCharCode(f)}}function stringToUTF32(e,r){for(var i=0,f=0;f<e.length;++f){var a=e.charCodeAt(f);if(a>=55296&&57343>=a){var t=e.charCodeAt(++f);a=65536+((1023&a)<<10)|1023&t}HEAP32[r+4*i>>2]=a,++i}HEAP32[r+4*i>>2]=0}function demangle(e){function r(){f++,"K"===e[f]&&f++;for(var r=[];"E"!==e[f];)if("S"!==e[f])if("C"!==e[f]){var i=parseInt(e.substr(f)),a=i.toString().length;if(!i||!a){f--;break}var n=e.substr(f+a,i);r.push(n),t.push(n),f+=a+i}else r.push(r[r.length-1]),f+=2;else{f++;var o=e.indexOf("_",f),u=e.substring(f,o)||0;r.push(t[u]||"?"),f=o+1}return f++,r}function i(t,o,u){function l(){return"("+k.join(", ")+")"}o=o||1/0;var s,b="",k=[];if("N"===e[f]){if(s=r().join("::"),o--,0===o)return t?[s]:s}else{("K"===e[f]||n&&"L"===e[f])&&f++;var c=parseInt(e.substr(f));if(c){var d=c.toString().length;s=e.substr(f+d,c),f+=d+c}}if(n=!1,"I"===e[f]){f++;var h=i(!0),_=i(!0,1,!0);b+=_[0]+" "+s+"<"+h.join(", ")+">"}else b=s;e:for(;f<e.length&&o-->0;){var w=e[f++];if(w in a)k.push(a[w]);else switch(w){case"P":k.push(i(!0,1,!0)[0]+"*");break;case"R":k.push(i(!0,1,!0)[0]+"&");break;case"L":f++;var v=e.indexOf("E",f),c=v-f;k.push(e.substr(f,c)),f+=c+2;break;case"A":var c=parseInt(e.substr(f));if(f+=c.toString().length,"_"!==e[f])throw"?";f++,k.push(i(!0,1,!0)[0]+" ["+c+"]");break;case"E":break e;default:b+="?"+w;break e}}return u||1!==k.length||"void"!==k[0]||(k=[]),t?k:b+l()}try{if("number"==typeof e&&(e=Pointer_stringify(e)),"_"!==e[0])return e;if("_"!==e[1])return e;if("Z"!==e[2])return e;switch(e[3]){case"n":return"operator new()";case"d":return"operator delete()"}var f=3,a={v:"void",b:"bool",c:"char",s:"short",i:"int",l:"long",f:"float",d:"double",w:"wchar_t",a:"signed char",h:"unsigned char",t:"unsigned short",j:"unsigned int",m:"unsigned long",x:"long long",y:"unsigned long long",z:"..."},t=[],n=!0;return i()}catch(o){return e}}function demangleAll(e){return e.replace(/__Z[\w\d_]+/g,function(e){var r=demangle(e);return e===r?e:e+" ["+r+"]"})}function stackTrace(){var e=(new Error).stack;return e?demangleAll(e):"(no stack trace available)"}function alignMemoryPage(e){return e+4095&-4096}function enlargeMemory(){abort("Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+TOTAL_MEMORY+", or (2) set Module.TOTAL_MEMORY before the program runs.")}function callRuntimeCallbacks(e){for(;e.length>0;){var r=e.shift();if("function"!=typeof r){var i=r.func;"number"==typeof i?void 0===r.arg?Runtime.dynCall("v",i):Runtime.dynCall("vi",i,[r.arg]):i(void 0===r.arg?null:r.arg)}else r()}}function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){runtimeInitialized||(runtimeInitialized=!0,callRuntimeCallbacks(__ATINIT__))}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){callRuntimeCallbacks(__ATEXIT__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPreMain(e){__ATMAIN__.unshift(e)}function addOnExit(e){__ATEXIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}function intArrayFromString(e,r,i){var f=(new Runtime.UTF8Processor).processJSString(e);return i&&(f.length=i),r||f.push(0),f}function intArrayToString(e){for(var r=[],i=0;i<e.length;i++){var f=e[i];f>255&&(f&=255),r.push(String.fromCharCode(f))}return r.join("")}function writeStringToMemory(e,r,i){for(var f=intArrayFromString(e,i),a=0;a<f.length;){var t=f[a];HEAP8[r+a|0]=t,a+=1}}function writeArrayToMemory(e,r){for(var i=0;i<e.length;i++)HEAP8[r+i|0]=e[i]}function writeAsciiToMemory(e,r,i){for(var f=0;f<e.length;f++)HEAP8[r+f|0]=e.charCodeAt(f);i||(HEAP8[r+e.length|0]=0)}function unSign(e,r){return e>=0?e:32>=r?2*Math.abs(1<<r-1)+e:Math.pow(2,r)+e}function reSign(e,r){if(0>=e)return e;var i=32>=r?Math.abs(1<<r-1):Math.pow(2,r-1);return e>=i&&(32>=r||e>i)&&(e=-2*i+e),e}function addRunDependency(){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var e=dependenciesFulfilled;dependenciesFulfilled=null,e()}}function copyTempFloat(e){HEAP8[tempDoublePtr]=HEAP8[e],HEAP8[tempDoublePtr+1]=HEAP8[e+1],HEAP8[tempDoublePtr+2]=HEAP8[e+2],HEAP8[tempDoublePtr+3]=HEAP8[e+3]}function copyTempDouble(e){HEAP8[tempDoublePtr]=HEAP8[e],HEAP8[tempDoublePtr+1]=HEAP8[e+1],HEAP8[tempDoublePtr+2]=HEAP8[e+2],HEAP8[tempDoublePtr+3]=HEAP8[e+3],HEAP8[tempDoublePtr+4]=HEAP8[e+4],HEAP8[tempDoublePtr+5]=HEAP8[e+5],HEAP8[tempDoublePtr+6]=HEAP8[e+6],HEAP8[tempDoublePtr+7]=HEAP8[e+7]}function ___gxx_personality_v0(){}function _llvm_eh_typeid_for(e){return e}function _llvm_eh_exception(){return HEAP32[_llvm_eh_exception.buf>>2]}function ___cxa_get_exception_ptr(e){return e}function __ZSt18uncaught_exceptionv(){return!!__ZSt18uncaught_exceptionv.uncaught_exception}function ___cxa_begin_catch(e){return __ZSt18uncaught_exceptionv.uncaught_exception--,e}function ___cxa_free_exception(e){try{return _free(e)}catch(r){}}function ___cxa_end_catch(){if(___cxa_end_catch.rethrown)return void(___cxa_end_catch.rethrown=!1);asm.setThrew(0),HEAP32[_llvm_eh_exception.buf+4>>2]=0;var e=HEAP32[_llvm_eh_exception.buf>>2],r=HEAP32[_llvm_eh_exception.buf+8>>2];r&&(Runtime.dynCall("vi",r,[e]),HEAP32[_llvm_eh_exception.buf+8>>2]=0),e&&(___cxa_free_exception(e),HEAP32[_llvm_eh_exception.buf>>2]=0)}function _strncmp(e,r,i){for(var f=0;i>f;){var a=HEAPU8[e+f|0],t=HEAPU8[r+f|0];if(a==t&&0==a)return 0;if(0==a)return-1;if(0==t)return 1;if(a!=t)return a>t?1:-1;f++}return 0}function _strcmp(e,r){return _strncmp(e,r,TOTAL_MEMORY)}function ___setErrNo(e){return HEAP32[___errno_state>>2]=e,e}function _fflush(){}function _open(e,r,i){var f=HEAP32[i>>2];e=Pointer_stringify(e);try{var a=FS.open(e,r,f);return a.fd}catch(t){return FS.handleFSError(t),-1}}function _fopen(e,r){var i;if(r=Pointer_stringify(r),"r"==r[0])i=-1!=r.indexOf("+")?2:0;else if("w"==r[0])i=-1!=r.indexOf("+")?2:1,i|=64,i|=512;else{if("a"!=r[0])return ___setErrNo(ERRNO_CODES.EINVAL),0;i=-1!=r.indexOf("+")?2:1,i|=64,i|=1024}var f=_open(e,i,allocate([511,0,0,0],"i32",ALLOC_STACK));return-1==f?0:f}function _close(e){var r=FS.getStream(e);if(!r)return ___setErrNo(ERRNO_CODES.EBADF),-1;try{return FS.close(r),0}catch(i){return FS.handleFSError(i),-1}}function _fsync(e){var r=FS.getStream(e);return r?0:(___setErrNo(ERRNO_CODES.EBADF),-1)}function _fclose(e){return _fsync(e),_close(e)}function ___cxa_allocate_exception(e){return _malloc(e)}function ___cxa_is_number_type(e){var r=!1;try{e==__ZTIi&&(r=!0)}catch(i){}try{e==__ZTIj&&(r=!0)}catch(i){}try{e==__ZTIl&&(r=!0)}catch(i){}try{e==__ZTIm&&(r=!0)}catch(i){}try{e==__ZTIx&&(r=!0)}catch(i){}try{e==__ZTIy&&(r=!0)}catch(i){}try{e==__ZTIf&&(r=!0)}catch(i){}try{e==__ZTId&&(r=!0)}catch(i){}try{e==__ZTIe&&(r=!0)}catch(i){}try{e==__ZTIc&&(r=!0)}catch(i){}try{e==__ZTIa&&(r=!0)}catch(i){}try{e==__ZTIh&&(r=!0)}catch(i){}try{e==__ZTIs&&(r=!0)}catch(i){}try{e==__ZTIt&&(r=!0)}catch(i){}return r}function ___cxa_does_inherit(e,r,i){if(0==i)return!1;if(0==r||r==e)return!0;var f;if(___cxa_is_number_type(r))f=r;else{var a=HEAP32[r>>2]-8;f=HEAP32[a>>2]}switch(f){case 0:var t=HEAP32[e>>2]-8,n=HEAP32[t>>2];if(0==n){var o=e+8,u=HEAP32[o>>2],l=r+8,s=HEAP32[l>>2];return ___cxa_does_inherit(u,s,i)}return!1;case 1:return!1;case 2:var b=r+8,k=HEAP32[b>>2];return ___cxa_does_inherit(e,k,i);default:return!1}}function ___resumeException(e){throw 0==HEAP32[_llvm_eh_exception.buf>>2]&&(HEAP32[_llvm_eh_exception.buf>>2]=e),e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."}function ___cxa_find_matching_catch(e,r){-1==e&&(e=HEAP32[_llvm_eh_exception.buf>>2]),-1==r&&(r=HEAP32[_llvm_eh_exception.buf+4>>2]);var i=Array.prototype.slice.call(arguments,2);if(0!=r&&!___cxa_is_number_type(r)){var f=HEAP32[r>>2]-8,a=HEAP32[f>>2];0==a&&(e=HEAP32[e>>2])}for(var t=0;t<i.length;t++)if(___cxa_does_inherit(i[t],r,e))return 0|(asm.setTempRet0(i[t]),e);return 0|(asm.setTempRet0(r),e)}function ___cxa_throw(e,r,i){if(!___cxa_throw.initialized){try{HEAP32[__ZTVN10__cxxabiv119__pointer_type_infoE>>2]=0}catch(f){}try{HEAP32[__ZTVN10__cxxabiv117__class_type_infoE>>2]=1}catch(f){}try{HEAP32[__ZTVN10__cxxabiv120__si_class_type_infoE>>2]=2}catch(f){}___cxa_throw.initialized=!0}throw HEAP32[_llvm_eh_exception.buf>>2]=e,HEAP32[_llvm_eh_exception.buf+4>>2]=r,HEAP32[_llvm_eh_exception.buf+8>>2]=i,"uncaught_exception"in __ZSt18uncaught_exceptionv?__ZSt18uncaught_exceptionv.uncaught_exception++:__ZSt18uncaught_exceptionv.uncaught_exception=1,e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."}function _send(e,r,i){var f=SOCKFS.getSocket(e);return f?_write(e,r,i):(___setErrNo(ERRNO_CODES.EBADF),-1)}function _pwrite(e,r,i,f){var a=FS.getStream(e);if(!a)return ___setErrNo(ERRNO_CODES.EBADF),-1;try{var t=HEAP8;return FS.write(a,t,r,i,f)}catch(n){return FS.handleFSError(n),-1}}function _write(e,r,i){var f=FS.getStream(e);if(!f)return ___setErrNo(ERRNO_CODES.EBADF),-1;try{var a=HEAP8;return FS.write(f,a,r,i)}catch(t){return FS.handleFSError(t),-1}}function _fwrite(e,r,i,f){var a=i*r;if(0==a)return 0;var t=_write(f,e,a);if(-1==t){var n=FS.getStream(f);return n&&(n.error=!0),0}return Math.floor(t/r)}function __reallyNegative(e){return 0>e||0===e&&1/e===-1/0}function __formatString(e,r){function i(e){var i;return"double"===e?i=HEAPF64[r+o>>3]:"i64"==e?(i=[HEAP32[r+o>>2],HEAP32[r+(o+8)>>2]],o+=8):(e="i32",i=HEAP32[r+o>>2]),o+=Math.max(Runtime.getNativeFieldSize(e),Runtime.getAlignSize(e,null,!0)),i}for(var f,a,t,n=e,o=0,u=[];;){var l=n;if(f=HEAP8[n],0===f)break;if(a=HEAP8[n+1|0],37==f){var s=!1,b=!1,k=!1,c=!1,d=!1;e:for(;;){switch(a){case 43:s=!0;break;case 45:b=!0;break;case 35:k=!0;break;case 48:if(c)break e;c=!0;break;case 32:d=!0;break;default:break e}n++,a=HEAP8[n+1|0]}var h=0;if(42==a)h=i("i32"),n++,a=HEAP8[n+1|0];else for(;a>=48&&57>=a;)h=10*h+(a-48),n++,a=HEAP8[n+1|0];var _=!1;if(46==a){var w=0;if(_=!0,n++,a=HEAP8[n+1|0],42==a)w=i("i32"),n++;else for(;;){var v=HEAP8[n+1|0];if(48>v||v>57)break;w=10*w+(v-48),n++}a=HEAP8[n+1|0]}else var w=6;var m;switch(String.fromCharCode(a)){case"h":var p=HEAP8[n+2|0];104==p?(n++,m=1):m=2;break;case"l":var p=HEAP8[n+2|0];108==p?(n++,m=8):m=4;break;case"L":case"q":case"j":m=8;break;case"z":case"t":case"I":m=4;break;default:m=null}switch(m&&n++,a=HEAP8[n+1|0],String.fromCharCode(a)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":var E=100==a||105==a;m=m||4;var S,t=i("i"+8*m),g=t;if(8==m&&(t=Runtime.makeBigInt(t[0],t[1],117==a)),4>=m){var y=Math.pow(256,m)-1;t=(E?reSign:unSign)(t&y,8*m)}var A=Math.abs(t),O="";if(100==a||105==a)S=8==m&&i64Math?i64Math.stringify(g[0],g[1],null):reSign(t,8*m,1).toString(10);else if(117==a)S=8==m&&i64Math?i64Math.stringify(g[0],g[1],!0):unSign(t,8*m,1).toString(10),t=Math.abs(t);else if(111==a)S=(k?"0":"")+A.toString(8);else if(120==a||88==a){if(O=k&&0!=t?"0x":"",8==m&&i64Math)if(g[1]){S=(g[1]>>>0).toString(16);for(var R=(g[0]>>>0).toString(16);R.length<8;)R="0"+R;S+=R}else S=(g[0]>>>0).toString(16);else if(0>t){t=-t,S=(A-1).toString(16);for(var F=[],M=0;M<S.length;M++)F.push((15-parseInt(S[M],16)).toString(16));for(S=F.join("");S.length<2*m;)S="f"+S}else S=A.toString(16);88==a&&(O=O.toUpperCase(),S=S.toUpperCase())}else 112==a&&(0===A?S="(nil)":(O="0x",S=A.toString(16)));if(_)for(;S.length<w;)S="0"+S;for(t>=0&&(s?O="+"+O:d&&(O=" "+O)),"-"==S.charAt(0)&&(O="-"+O,S=S.substr(1));O.length+S.length<h;)b?S+=" ":c?S="0"+S:O=" "+O;S=O+S,S.split("").forEach(function(e){u.push(e.charCodeAt(0))});break;case"f":case"F":case"e":case"E":case"g":case"G":var S,t=i("double");if(isNaN(t))S="nan",c=!1;else if(isFinite(t)){var N=!1,D=Math.min(w,20);if(103==a||71==a){N=!0,w=w||1;var C=parseInt(t.toExponential(D).split("e")[1],10);w>C&&C>=-4?(a=(103==a?"f":"F").charCodeAt(0),w-=C+1):(a=(103==a?"e":"E").charCodeAt(0),w--),D=Math.min(w,20)}101==a||69==a?(S=t.toExponential(D),/[eE][-+]\d$/.test(S)&&(S=S.slice(0,-1)+"0"+S.slice(-1))):(102==a||70==a)&&(S=t.toFixed(D),0===t&&__reallyNegative(t)&&(S="-"+S));var T=S.split("e");if(N&&!k)for(;T[0].length>1&&-1!=T[0].indexOf(".")&&("0"==T[0].slice(-1)||"."==T[0].slice(-1));)T[0]=T[0].slice(0,-1);else for(k&&-1==S.indexOf(".")&&(T[0]+=".");w>D++;)T[0]+="0";S=T[0]+(T.length>1?"e"+T[1]:""),69==a&&(S=S.toUpperCase()),t>=0&&(s?S="+"+S:d&&(S=" "+S))}else S=(0>t?"-":"")+"inf",c=!1;for(;S.length<h;)b?S+=" ":S=!c||"-"!=S[0]&&"+"!=S[0]?(c?"0":" ")+S:S[0]+"0"+S.slice(1);97>a&&(S=S.toUpperCase()),S.split("").forEach(function(e){u.push(e.charCodeAt(0))});break;case"s":var P=i("i8*"),L=P?_strlen(P):"(null)".length;if(_&&(L=Math.min(L,w)),!b)for(;L<h--;)u.push(32);if(P)for(var M=0;L>M;M++)u.push(HEAPU8[0|P++]);else u=u.concat(intArrayFromString("(null)".substr(0,L),!0));if(b)for(;L<h--;)u.push(32);break;case"c":for(b&&u.push(i("i8"));--h>0;)u.push(32);b||u.push(i("i8"));break;case"n":var I=i("i32*");HEAP32[I>>2]=u.length;break;case"%":u.push(f);break;default:for(var M=l;n+2>M;M++)u.push(HEAP8[M])}n+=2}else u.push(f),n+=1}return u}function _fprintf(e,r,i){var f=__formatString(r,i),a=Runtime.stackSave(),t=_fwrite(allocate(f,"i8",ALLOC_STACK),1,f.length,e);return Runtime.stackRestore(a),t}function _fputc(e,r){var i=unSign(255&e);HEAP8[0|_fputc.ret]=i;var f=_write(r,_fputc.ret,1);if(-1==f){var a=FS.getStream(r);return a&&(a.error=!0),-1}return i}function _isspace(e){return 32==e||e>=9&&13>=e}function _recv(e,r,i){var f=SOCKFS.getSocket(e);return f?_read(e,r,i):(___setErrNo(ERRNO_CODES.EBADF),-1)}function _pread(e,r,i,f){var a=FS.getStream(e);if(!a)return ___setErrNo(ERRNO_CODES.EBADF),-1;try{var t=HEAP8;return FS.read(a,t,r,i,f)}catch(n){return FS.handleFSError(n),-1}}function _read(e,r,i){var f=FS.getStream(e);if(!f)return ___setErrNo(ERRNO_CODES.EBADF),-1;try{var a=HEAP8;return FS.read(f,a,r,i)}catch(t){return FS.handleFSError(t),-1}}function _fread(e,r,i,f){var a=i*r;if(0==a)return 0;var t=0,n=FS.getStream(f);if(!n)return ___setErrNo(ERRNO_CODES.EBADF),0;for(;n.ungotten.length&&a>0;)HEAP8[0|e++]=n.ungotten.pop(),a--,t++;var o=_read(f,e,a);return-1==o?(n&&(n.error=!0),0):(t+=o,a>t&&(n.eof=!0),Math.floor(t/r))}function _fgetc(e){var r=FS.getStream(e);if(!r)return-1;if(r.eof||r.error)return-1;var i=_fread(_fgetc.ret,1,1,e);return 0==i?-1:-1==i?(r.error=!0,-1):HEAPU8[0|_fgetc.ret]}function _llvm_lifetime_start(){}function _llvm_lifetime_end(){}function __exit(e){Module.exit(e)}function _exit(e){__exit(e)}function __ZSt9terminatev(){_exit(-1234)}function _isalpha(e){return e>=97&&122>=e||e>=65&&90>=e}function _islower(e){return e>=97&&122>=e}function _isupper(e){return e>=65&&90>=e}function _toupper(e){return e>=97&&122>=e?e-97+65:e}function _pthread_mutex_lock(){}function _pthread_mutex_unlock(){}function ___cxa_guard_acquire(e){return HEAP8[e]?0:(HEAP8[e]=1,1)}function ___cxa_guard_release(){}function _pthread_cond_broadcast(){return 0}function _pthread_cond_wait(){return 0}function _atexit(e,r){__ATEXIT__.unshift({func:e,arg:r})}function _ungetc(e,r){return(r=FS.getStream(r))?-1===e?e:(e=unSign(255&e),r.ungotten.push(e),r.eof=!1,e):-1}function ___errno_location(){return ___errno_state}function _strerror_r(e,r,i){if(e in ERRNO_MESSAGES){if(ERRNO_MESSAGES[e].length>i-1)return ___setErrNo(ERRNO_CODES.ERANGE);var f=ERRNO_MESSAGES[e];return writeAsciiToMemory(f,r),0}return ___setErrNo(ERRNO_CODES.EINVAL)}function _strerror(e){return _strerror.buffer||(_strerror.buffer=_malloc(256)),_strerror_r(e,_strerror.buffer,256),_strerror.buffer}function _abort(){Module.abort()}function ___cxa_rethrow(){throw ___cxa_end_catch.rethrown=!0,HEAP32[_llvm_eh_exception.buf>>2]+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."}function _snprintf(e,r,i,f){var a=__formatString(i,f),t=void 0===r?a.length:Math.min(a.length,Math.max(r-1,0));if(0>e){e=-e;var n=_malloc(t+1);HEAP32[e>>2]=n,e=n}for(var o=0;t>o;o++)HEAP8[e+o|0]=a[o];return(r>t||void 0===r)&&(HEAP8[e+o|0]=0),a.length}function _sysconf(e){switch(e){case 30:return PAGE_SIZE;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 1}return ___setErrNo(ERRNO_CODES.EINVAL),-1}function ___cxa_guard_abort(){}function _isxdigit(e){return e>=48&&57>=e||e>=97&&102>=e||e>=65&&70>=e}function _isdigit(e){return e>=48&&57>=e}function __getFloat(e){return/^[+-]?[0-9]*\.?[0-9]+([eE][+-]?[0-9]+)?/.exec(e)}function __scanString(e,r,i,f){__scanString.whiteSpace||(__scanString.whiteSpace={},__scanString.whiteSpace[32]=1,__scanString.whiteSpace[9]=1,__scanString.whiteSpace[10]=1,__scanString.whiteSpace[11]=1,__scanString.whiteSpace[12]=1,__scanString.whiteSpace[13]=1),e=Pointer_stringify(e);var a=0;if(e.indexOf("%n")>=0){var t=r;r=function(){return a++,t()};var n=i;i=function(){return a--,n()}}var o,u=0,l=0,s=0;e:for(var u=0;u<e.length;)if("%"!==e[u]||"n"!=e[u+1]){if("%"===e[u]){var b=e.indexOf("c",u+1);if(b>0){var k=1;if(b>u+1){var c=e.substring(u+1,b);k=parseInt(c),k!=c&&(k=0)}if(k){var d=HEAP32[f+s>>2];s+=Runtime.getAlignSize("void*",null,!0),l++;for(var h=0;k>h;h++)o=r(),HEAP8[0|d++]=o;u+=b-u+1;continue}}}if("%"===e[u]&&e.indexOf("[",u+1)>0){var _=/\%([0-9]*)\[(\^)?(\]?[^\]]*)\]/.exec(e.substring(u));if(_){for(var w,v=parseInt(_[1])||1/0,m="^"===_[2],p=_[3];w=/([^\-])\-([^\-])/.exec(p);){for(var E=w[1].charCodeAt(0),S=w[2].charCodeAt(0),g="";S>=E;g+=String.fromCharCode(E++));p=p.replace(w[1]+"-"+w[2],g)}var d=HEAP32[f+s>>2];s+=Runtime.getAlignSize("void*",null,!0),l++;for(var h=0;v>h;h++)if(o=r(),m){if(!(p.indexOf(String.fromCharCode(o))<0)){i();break}HEAP8[0|d++]=o}else{if(!(p.indexOf(String.fromCharCode(o))>=0)){i();break}HEAP8[0|d++]=o}HEAP8[0|d++]=0,u+=_[0].length;continue}}for(;;){if(o=r(),0==o)return l;if(!(o in __scanString.whiteSpace))break}if(i(),"%"===e[u]){u++;var y=!1;"*"==e[u]&&(y=!0,u++);for(var A=u;e[u].charCodeAt(0)>=48&&e[u].charCodeAt(0)<=57;)u++;var O;u!=A&&(O=parseInt(e.slice(A,u),10));var R=!1,F=!1,M=!1;"l"==e[u]?(R=!0,u++,"l"==e[u]&&(M=!0,u++)):"h"==e[u]&&(F=!0,u++);var N=e[u];u++;var D=0,C=[];if("f"==N||"e"==N||"g"==N||"F"==N||"E"==N||"G"==N){for(o=r();o>0&&!(o in __scanString.whiteSpace);)C.push(String.fromCharCode(o)),o=r();for(var T=__getFloat(C.join("")),P=T?T[0].length:0,h=0;h<C.length-P+1;h++)i();C.length=P}else{o=r();var L=!0;if(("x"==N||"X"==N)&&48==o){var I=r();120==I||88==I?o=r():i()}for(;(O>D||isNaN(O))&&o>0&&!(o in __scanString.whiteSpace||"s"!=N&&("d"!==N&&"u"!=N&&"i"!=N||!(o>=48&&57>=o||L&&45==o))&&("x"!==N&&"X"!==N||!(o>=48&&57>=o||o>=97&&102>=o||o>=65&&70>=o)))&&(u>=e.length||o!==e[u].charCodeAt(0));)C.push(String.fromCharCode(o)),o=r(),D++,L=!1;i()}if(0===C.length)return 0;if(y)continue;var x=C.join(""),d=HEAP32[f+s>>2];switch(s+=Runtime.getAlignSize("void*",null,!0),N){case"d":case"u":case"i":F?HEAP16[d>>1]=parseInt(x,10):M?(tempI64=[parseInt(x,10)>>>0,(tempDouble=parseInt(x,10),+Math_abs(tempDouble)>=1?tempDouble>0?(0|Math_min(+Math_floor(tempDouble/4294967296),4294967295))>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[d>>2]=tempI64[0],HEAP32[d+4>>2]=tempI64[1]):HEAP32[d>>2]=parseInt(x,10);break;case"X":case"x":HEAP32[d>>2]=parseInt(x,16);break;case"F":case"f":case"E":case"e":case"G":case"g":case"E":R?HEAPF64[d>>3]=parseFloat(x):HEAPF32[d>>2]=parseFloat(x);break;case"s":for(var B=intArrayFromString(x),H=0;H<B.length;H++)HEAP8[d+H|0]=B[H]}l++}else if(e[u].charCodeAt(0)in __scanString.whiteSpace){for(o=r();o in __scanString.whiteSpace;){if(0>=o)break e;o=r()}i(o),u++}else{if(o=r(),e[u].charCodeAt(0)!==o){i(o);break e}u++}}else{var d=HEAP32[f+s>>2];s+=Runtime.getAlignSize("void*",null,!0),HEAP32[d>>2]=a,u+=2}return l}function _sscanf(e,r,i){function f(){return HEAP8[e+t++|0]}function a(){t--}var t=0;return __scanString(r,f,a,i)}function _catopen(){throw"TODO: "+aborter}function _catgets(){throw"TODO: "+aborter}function _catclose(){throw"TODO: "+aborter}function _newlocale(){return _malloc(4)}function _freelocale(e){_free(e)}function _isascii(e){return e>=0&&0==(128&e)}function ___ctype_b_loc(){var e=___ctype_b_loc;if(!e.ret){for(var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,8195,8194,8194,8194,8194,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,24577,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,49156,55304,55304,55304,55304,55304,55304,55304,55304,55304,55304,49156,49156,49156,49156,49156,49156,49156,54536,54536,54536,54536,54536,54536,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,50440,49156,49156,49156,49156,49156,49156,54792,54792,54792,54792,54792,54792,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,50696,49156,49156,49156,49156,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=2,f=_malloc(r.length*i),a=0;a<r.length;a++)HEAP16[f+a*i>>1]=r[a];e.ret=allocate([f+128*i],"i16*",ALLOC_NORMAL)}return e.ret}function ___ctype_tolower_loc(){var e=___ctype_tolower_loc;if(!e.ret){for(var r=[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,-1,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],i=4,f=_malloc(r.length*i),a=0;a<r.length;a++)HEAP32[f+a*i>>2]=r[a];e.ret=allocate([f+128*i],"i32*",ALLOC_NORMAL)}return e.ret}function ___ctype_toupper_loc(){var e=___ctype_toupper_loc;if(!e.ret){for(var r=[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,-1,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,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,91,92,93,94,95,96,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,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],i=4,f=_malloc(r.length*i),a=0;a<r.length;a++)HEAP32[f+a*i>>2]=r[a];e.ret=allocate([f+128*i],"i32*",ALLOC_NORMAL)}return e.ret}function __isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function __arraySum(e,r){for(var i=0,f=0;r>=f;i+=e[f++]);return i}function __addDays(e,r){for(var i=new Date(e.getTime());r>0;){var f=__isLeapYear(i.getFullYear()),a=i.getMonth(),t=(f?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR)[a];if(!(r>t-i.getDate()))return i.setDate(i.getDate()+r),i;r-=t-i.getDate()+1,i.setDate(1),11>a?i.setMonth(a+1):(i.setMonth(0),i.setFullYear(i.getFullYear()+1))}return i}function _strftime(e,r,i,f){function a(e,r,i){for(var f="number"==typeof e?e.toString():e||"";f.length<r;)f=i[0]+f;return f}function t(e,r){return a(e,r,"0")}function n(e,r){function i(e){return 0>e?-1:e>0?1:0}var f;return 0===(f=i(e.getFullYear()-r.getFullYear()))&&0===(f=i(e.getMonth()-r.getMonth()))&&(f=i(e.getDate()-r.getDate())),f}function o(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function u(e){var r=__addDays(new Date(e.tm_year+1900,0,1),e.tm_yday),i=new Date(r.getFullYear(),0,4),f=new Date(r.getFullYear()+1,0,4),a=o(i),t=o(f);return n(a,r)<=0?n(t,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var l={tm_sec:HEAP32[f>>2],tm_min:HEAP32[f+4>>2],tm_hour:HEAP32[f+8>>2],tm_mday:HEAP32[f+12>>2],tm_mon:HEAP32[f+16>>2],tm_year:HEAP32[f+20>>2],tm_wday:HEAP32[f+24>>2],tm_yday:HEAP32[f+28>>2],tm_isdst:HEAP32[f+32>>2]},s=Pointer_stringify(i),b={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S"};for(var k in b)s=s.replace(new RegExp(k,"g"),b[k]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"],h={"%a":function(e){return c[e.tm_wday].substring(0,3)},"%A":function(e){return c[e.tm_wday]},"%b":function(e){return d[e.tm_mon].substring(0,3)},"%B":function(e){return d[e.tm_mon]
},"%C":function(e){var r=e.tm_year+1900;return t(Math.floor(r/100),2)},"%d":function(e){return t(e.tm_mday,2)},"%e":function(e){return a(e.tm_mday,2," ")},"%g":function(e){return u(e).toString().substring(2)},"%G":function(e){return u(e)},"%H":function(e){return t(e.tm_hour,2)},"%I":function(e){return t(e.tm_hour<13?e.tm_hour:e.tm_hour-12,2)},"%j":function(e){return t(e.tm_mday+__arraySum(__isLeapYear(e.tm_year+1900)?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,e.tm_mon-1),3)},"%m":function(e){return t(e.tm_mon+1,2)},"%M":function(e){return t(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>0&&e.tm_hour<13?"AM":"PM"},"%S":function(e){return t(e.tm_sec,2)},"%t":function(){return" "},"%u":function(e){var r=new Date(e.tm_year+1900,e.tm_mon+1,e.tm_mday,0,0,0,0);return r.getDay()||7},"%U":function(e){var r=new Date(e.tm_year+1900,0,1),i=0===r.getDay()?r:__addDays(r,7-r.getDay()),f=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(n(i,f)<0){var a=__arraySum(__isLeapYear(f.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,f.getMonth()-1)-31,o=31-i.getDate(),u=o+a+f.getDate();return t(Math.ceil(u/7),2)}return 0===n(i,r)?"01":"00"},"%V":function(e){var r=new Date(e.tm_year+1900,0,4),i=new Date(e.tm_year+1901,0,4),f=o(r),a=o(i),u=__addDays(new Date(e.tm_year+1900,0,1),e.tm_yday);if(n(u,f)<0)return"53";if(n(a,u)<=0)return"01";var l;return l=f.getFullYear()<e.tm_year+1900?e.tm_yday+32-f.getDate():e.tm_yday+1-f.getDate(),t(Math.ceil(l/7),2)},"%w":function(e){var r=new Date(e.tm_year+1900,e.tm_mon+1,e.tm_mday,0,0,0,0);return r.getDay()},"%W":function(e){var r=new Date(e.tm_year,0,1),i=1===r.getDay()?r:__addDays(r,0===r.getDay()?1:7-r.getDay()+1),f=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(n(i,f)<0){var a=__arraySum(__isLeapYear(f.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,f.getMonth()-1)-31,o=31-i.getDate(),u=o+a+f.getDate();return t(Math.ceil(u/7),2)}return 0===n(i,r)?"01":"00"},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(){return""},"%Z":function(){return""},"%%":function(){return"%"}};for(var k in h)s.indexOf(k)>=0&&(s=s.replace(new RegExp(k,"g"),h[k](l)));var _=intArrayFromString(s,!1);return _.length>r?0:(writeArrayToMemory(_,e),_.length-1)}function __parseInt64(e,r,i,f,a,t){for(var n=!1;_isspace(HEAP8[e]);)e++;45==HEAP8[e]?(e++,n=!0):43==HEAP8[e]&&e++;var o=!1,u=i;u?16==u&&48==HEAP8[e]&&(120==HEAP8[e+1|0]||88==HEAP8[e+1|0])&&(e+=2):48==HEAP8[e]&&(120==HEAP8[e+1|0]||88==HEAP8[e+1|0]?(u=16,e+=2):(u=8,o=!0)),u||(u=10);for(var l,s=e;0!=(l=HEAP8[e]);){var b=parseInt(String.fromCharCode(l),u);if(isNaN(b))break;e++,o=!0}if(!o)return ___setErrNo(ERRNO_CODES.EINVAL),0|(asm.setTempRet0(0),0);r&&(HEAP32[r>>2]=e);try{var k=n?"-"+Pointer_stringify(s,e-s):Pointer_stringify(s,e-s);i64Math.fromString(k,u,f,a,t)}catch(c){___setErrNo(ERRNO_CODES.ERANGE)}return 0|(asm.setTempRet0(0|HEAP32[tempDoublePtr+4>>2]),0|HEAP32[tempDoublePtr>>2])}function _strtoull(e,r,i){return __parseInt64(e,r,i,0,"18446744073709551615",!0)}function _strtoll(e,r,i){return __parseInt64(e,r,i,"-9223372036854775808","9223372036854775807")}function _uselocale(){return 0}function _sprintf(e,r,i){return _snprintf(e,void 0,r,i)}function _asprintf(e,r,i){return _sprintf(-e,r,i)}function _vasprintf(e,r,i){return _asprintf(e,r,HEAP32[i>>2])}function _llvm_va_end(){}function _vsnprintf(e,r,i,f){return _snprintf(e,r,i,HEAP32[f>>2])}function _vsscanf(e,r,i){return _sscanf(e,r,HEAP32[i>>2])}function _sbrk(e){var r=_sbrk;r.called||(DYNAMICTOP=alignMemoryPage(DYNAMICTOP),r.called=!0,assert(Runtime.dynamicAlloc),r.alloc=Runtime.dynamicAlloc,Runtime.dynamicAlloc=function(){abort("cannot dynamically allocate, sbrk now has control")});var i=DYNAMICTOP;return 0!=e&&r.alloc(e),i}function _time(e){var r=Math.floor(Date.now()/1e3);return e&&(HEAP32[e>>2]=r),r}function ___cxa_call_unexpected(e){throw Module.printErr("Unexpected exception thrown, this is not properly supported - aborting"),ABORT=!0,e}function invoke_iiiii(e,r,i,f,a){try{return Module.dynCall_iiiii(e,r,i,f,a)}catch(t){if("number"!=typeof t&&"longjmp"!==t)throw t;asm.setThrew(1,0)}}function invoke_viiii(e,r,i,f,a){try{Module.dynCall_viiii(e,r,i,f,a)}catch(t){if("number"!=typeof t&&"longjmp"!==t)throw t;asm.setThrew(1,0)}}function invoke_viiiii(e,r,i,f,a,t){try{Module.dynCall_viiiii(e,r,i,f,a,t)}catch(n){if("number"!=typeof n&&"longjmp"!==n)throw n;asm.setThrew(1,0)}}function invoke_vi(e,r){try{Module.dynCall_vi(e,r)}catch(i){if("number"!=typeof i&&"longjmp"!==i)throw i;asm.setThrew(1,0)}}function invoke_vii(e,r,i){try{Module.dynCall_vii(e,r,i)}catch(f){if("number"!=typeof f&&"longjmp"!==f)throw f;asm.setThrew(1,0)}}function invoke_iiiiii(e,r,i,f,a,t){try{return Module.dynCall_iiiiii(e,r,i,f,a,t)}catch(n){if("number"!=typeof n&&"longjmp"!==n)throw n;asm.setThrew(1,0)}}function invoke_viiiiiid(e,r,i,f,a,t,n,o){try{Module.dynCall_viiiiiid(e,r,i,f,a,t,n,o)}catch(u){if("number"!=typeof u&&"longjmp"!==u)throw u;asm.setThrew(1,0)}}function invoke_ii(e,r){try{return Module.dynCall_ii(e,r)}catch(i){if("number"!=typeof i&&"longjmp"!==i)throw i;asm.setThrew(1,0)}}function invoke_iiii(e,r,i,f){try{return Module.dynCall_iiii(e,r,i,f)}catch(a){if("number"!=typeof a&&"longjmp"!==a)throw a;asm.setThrew(1,0)}}function invoke_viiiiiii(e,r,i,f,a,t,n,o){try{Module.dynCall_viiiiiii(e,r,i,f,a,t,n,o)}catch(u){if("number"!=typeof u&&"longjmp"!==u)throw u;asm.setThrew(1,0)}}function invoke_viiiiid(e,r,i,f,a,t,n){try{Module.dynCall_viiiiid(e,r,i,f,a,t,n)}catch(o){if("number"!=typeof o&&"longjmp"!==o)throw o;asm.setThrew(1,0)}}function invoke_v(e){try{Module.dynCall_v(e)}catch(r){if("number"!=typeof r&&"longjmp"!==r)throw r;asm.setThrew(1,0)}}function invoke_iiiiiiiii(e,r,i,f,a,t,n,o,u){try{return Module.dynCall_iiiiiiiii(e,r,i,f,a,t,n,o,u)}catch(l){if("number"!=typeof l&&"longjmp"!==l)throw l;asm.setThrew(1,0)}}function invoke_viiiiiiiii(e,r,i,f,a,t,n,o,u,l){try{Module.dynCall_viiiiiiiii(e,r,i,f,a,t,n,o,u,l)}catch(s){if("number"!=typeof s&&"longjmp"!==s)throw s;asm.setThrew(1,0)}}function invoke_viiiiii(e,r,i,f,a,t,n){try{Module.dynCall_viiiiii(e,r,i,f,a,t,n)}catch(o){if("number"!=typeof o&&"longjmp"!==o)throw o;asm.setThrew(1,0)}}function invoke_iii(e,r,i){try{return Module.dynCall_iii(e,r,i)}catch(f){if("number"!=typeof f&&"longjmp"!==f)throw f;asm.setThrew(1,0)}}function invoke_viiiiiiii(e,r,i,f,a,t,n,o,u){try{Module.dynCall_viiiiiiii(e,r,i,f,a,t,n,o,u)}catch(l){if("number"!=typeof l&&"longjmp"!==l)throw l;asm.setThrew(1,0)}}function invoke_viii(e,r,i,f){try{Module.dynCall_viii(e,r,i,f)}catch(a){if("number"!=typeof a&&"longjmp"!==a)throw a;asm.setThrew(1,0)}}function asmPrintInt(e,r){Module.print("int "+e+","+r)}function asmPrintFloat(e,r){Module.print("float "+e+","+r)}function applyData(e){HEAPU8.set(e,STATIC_BASE)}function ExitStatus(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function run(e){function r(){ensureInitRuntime(),preMain(),Module.calledRun=!0,Module._main&&shouldRunNow&&Module.callMain(e),postRun()}return e=e||Module.arguments,null===preloadStartTime&&(preloadStartTime=Date.now()),runDependencies>0?void Module.printErr("run() called, but dependencies remain, so not running"):(preRun(),void(runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Module.setStatus("")},1),ABORT||r()},1)):r())))}function exit(e){throw ABORT=!0,EXITSTATUS=e,STACKTOP=initialStackTop,exitRuntime(),new ExitStatus(e)}function abort(e){throw e&&(Module.print(e),Module.printErr(e)),ABORT=!0,EXITSTATUS=1,"abort() at "+stackTrace()}var Module={},moduleOverrides={};for(var key in Module)Module.hasOwnProperty(key)&&(moduleOverrides[key]=Module[key]);var ENVIRONMENT_IS_NODE="object"==typeof process&&"function"==typeof require,ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){Module.print=function(e){process.stdout.write(e+"\n")},Module.printErr=function(e){process.stderr.write(e+"\n")};var nodeFS=require("fs"),nodePath=require("path");Module.read=function(e,r){e=nodePath.normalize(e);var i=nodeFS.readFileSync(e);return i||e==nodePath.resolve(e)||(e=path.join(__dirname,"..","src",e),i=nodeFS.readFileSync(e)),i&&!r&&(i=i.toString()),i},Module.readBinary=function(e){return Module.read(e,!0)},Module.load=function(e){globalEval(read(e))},Module.arguments=process.argv.slice(2),module.exports=Module}else if(ENVIRONMENT_IS_SHELL)Module.print=print,"undefined"!=typeof printErr&&(Module.printErr=printErr),Module.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)"},Module.readBinary=function(e){return read(e,"binary")},"undefined"!=typeof scriptArgs?Module.arguments=scriptArgs:"undefined"!=typeof arguments&&(Module.arguments=arguments),this.Module=Module,eval("if (typeof gc === 'function' && gc.toString().indexOf('[native code]') > 0) var gc = undefined");else{if(!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER)throw"Unknown runtime environment. Where are we?";if(Module.read=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},"undefined"!=typeof arguments&&(Module.arguments=arguments),"undefined"!=typeof console)Module.print=function(e){console.log(e)},Module.printErr=function(e){console.log(e)};else{var TRY_USE_DUMP=!1;Module.print=TRY_USE_DUMP&&"undefined"!=typeof dump?function(e){dump(e)}:function(){}}ENVIRONMENT_IS_WEB?this.Module=Module:Module.load=importScripts}"undefined"==!Module.load&&Module.read&&(Module.load=function(e){globalEval(Module.read(e))}),Module.print||(Module.print=function(){}),Module.printErr||(Module.printErr=Module.print),Module.arguments||(Module.arguments=[]),Module.print=Module.print,Module.printErr=Module.printErr,Module.preRun=[],Module.postRun=[];for(var key in moduleOverrides)moduleOverrides.hasOwnProperty(key)&&(Module[key]=moduleOverrides[key]);var Runtime={stackSave:function(){return STACKTOP},stackRestore:function(e){STACKTOP=e},forceAlign:function(e,r){return r=r||4,1==r?e:isNumber(e)&&isNumber(r)?Math.ceil(e/r)*r:isNumber(r)&&isPowerOfTwo(r)?"((("+e+")+"+(r-1)+")&"+-r+")":"Math.ceil(("+e+")/"+r+")*"+r},isNumberType:function(e){return e in Runtime.INT_TYPES||e in Runtime.FLOAT_TYPES},isPointerType:function(e){return"*"==e[e.length-1]},isStructType:function(e){return isPointerType(e)?!1:isArrayType(e)?!0:/<?{ ?[^}]* ?}>?/.test(e)?!0:"%"==e[0]},INT_TYPES:{i1:0,i8:0,i16:0,i32:0,i64:0},FLOAT_TYPES:{"float":0,"double":0},or64:function(e,r){var i=0|e|(0|r),f=4294967296*(Math.round(e/4294967296)|Math.round(r/4294967296));return i+f},and64:function(e,r){var i=(0|e)&(0|r),f=4294967296*(Math.round(e/4294967296)&Math.round(r/4294967296));return i+f},xor64:function(e,r){var i=(0|e)^(0|r),f=4294967296*(Math.round(e/4294967296)^Math.round(r/4294967296));return i+f},getNativeTypeSize:function(e){switch(e){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:if("*"===e[e.length-1])return Runtime.QUANTUM_SIZE;if("i"===e[0]){var r=parseInt(e.substr(1));return assert(r%8===0),r/8}return 0}},getNativeFieldSize:function(e){return Math.max(Runtime.getNativeTypeSize(e),Runtime.QUANTUM_SIZE)},dedup:function(e,r){var i={};return e.filter(r?function(e){return i[e[r]]?!1:(i[e[r]]=!0,!0)}:function(e){return i[e]?!1:(i[e]=!0,!0)})},set:function(){for(var e="object"==typeof arguments[0]?arguments[0]:arguments,r={},i=0;i<e.length;i++)r[e[i]]=0;return r},STACK_ALIGN:8,getAlignSize:function(e,r,i){return i?8:i||"i64"!=e&&"double"!=e?e?Math.min(r||(e?Runtime.getNativeFieldSize(e):0),Runtime.QUANTUM_SIZE):Math.min(r,8):8},calculateStructAlignment:function(e){e.flatSize=0,e.alignSize=0;var r=[],i=-1,f=0;return e.flatIndexes=e.fields.map(function(a){f++;var t,n;Runtime.isNumberType(a)||Runtime.isPointerType(a)?(t=Runtime.getNativeTypeSize(a),n=Runtime.getAlignSize(a,t)):Runtime.isStructType(a)?"0"===a[1]?(t=0,n=Types.types[a]?Runtime.getAlignSize(null,Types.types[a].alignSize):e.alignSize||QUANTUM_SIZE):(t=Types.types[a].flatSize,n=Runtime.getAlignSize(null,Types.types[a].alignSize)):"b"==a[0]?(t=0|a.substr(1),n=1):"<"===a[0]?t=n=Types.types[a].flatSize:"i"===a[0]?(t=n=parseInt(a.substr(1))/8,assert(t%1===0,"cannot handle non-byte-size field "+a)):assert(!1,"invalid type for calculateStructAlignment"),e.packed&&(n=1),e.alignSize=Math.max(e.alignSize,n);var o=Runtime.alignMemory(e.flatSize,n);return e.flatSize=o+t,i>=0&&r.push(o-i),i=o,o}),"["===e.name_[0]&&(e.flatSize=parseInt(e.name_.substr(1))*e.flatSize/2),e.flatSize=Runtime.alignMemory(e.flatSize,e.alignSize),0==r.length?e.flatFactor=e.flatSize:1==Runtime.dedup(r).length&&(e.flatFactor=r[0]),e.needsFlattening=1!=e.flatFactor,e.flatIndexes},generateStructInfo:function(e,r,i){var f,a;if(r){if(i=i||0,f=("undefined"==typeof Types?Runtime.typeInfo:Types.types)[r],!f)return null;if(f.fields.length!=e.length)return printErr("Number of named fields must match the type for "+r+": possibly duplicate struct names. Cannot return structInfo"),null;a=f.flatIndexes}else{var f={fields:e.map(function(e){return e[0]})};a=Runtime.calculateStructAlignment(f)}var t={__size__:f.flatSize};return e.forEach(r?function(e,r){if("string"==typeof e)t[e]=a[r]+i;else{var n;for(var o in e)n=o;t[n]=Runtime.generateStructInfo(e[n],f.fields[r],a[r])}}:function(e,r){t[e[1]]=a[r]}),t},dynCall:function(e,r,i){return i&&i.length?(i.splice||(i=Array.prototype.slice.call(i)),i.splice(0,0,r),Module["dynCall_"+e].apply(null,i)):Module["dynCall_"+e].call(null,r)},functionPointers:[],addFunction:function(e){for(var r=0;r<Runtime.functionPointers.length;r++)if(!Runtime.functionPointers[r])return Runtime.functionPointers[r]=e,2*(1+r);throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."},removeFunction:function(e){Runtime.functionPointers[(e-2)/2]=null},getAsmConst:function(code,numArgs){Runtime.asmConstCache||(Runtime.asmConstCache={});var func=Runtime.asmConstCache[code];if(func)return func;for(var args=[],i=0;numArgs>i;i++)args.push(String.fromCharCode(36)+i);return Runtime.asmConstCache[code]=eval("(function("+args.join(",")+"){ "+Pointer_stringify(code)+" })")},warnOnce:function(e){Runtime.warnOnce.shown||(Runtime.warnOnce.shown={}),Runtime.warnOnce.shown[e]||(Runtime.warnOnce.shown[e]=1,Module.printErr(e))},funcWrappers:{},getFuncWrapper:function(e,r){return assert(r),Runtime.funcWrappers[e]||(Runtime.funcWrappers[e]=function(){return Runtime.dynCall(r,e,arguments)}),Runtime.funcWrappers[e]},UTF8Processor:function(){var e=[],r=0;this.processCChar=function(i){if(i=255&i,0==e.length)return 0==(128&i)?String.fromCharCode(i):(e.push(i),r=192==(224&i)?1:224==(240&i)?2:3,"");if(r&&(e.push(i),r--,r>0))return"";var f,a=e[0],t=e[1],n=e[2],o=e[3];if(2==e.length)f=String.fromCharCode((31&a)<<6|63&t);else if(3==e.length)f=String.fromCharCode((15&a)<<12|(63&t)<<6|63&n);else{var u=(7&a)<<18|(63&t)<<12|(63&n)<<6|63&o;f=String.fromCharCode(Math.floor((u-65536)/1024)+55296,(u-65536)%1024+56320)}return e.length=0,f},this.processJSString=function(e){e=unescape(encodeURIComponent(e));for(var r=[],i=0;i<e.length;i++)r.push(e.charCodeAt(i));return r}},stackAlloc:function(e){var r=STACKTOP;return STACKTOP=STACKTOP+e|0,STACKTOP=STACKTOP+7&-8,r},staticAlloc:function(e){var r=STATICTOP;return STATICTOP=STATICTOP+e|0,STATICTOP=STATICTOP+7&-8,r},dynamicAlloc:function(e){var r=DYNAMICTOP;return DYNAMICTOP=DYNAMICTOP+e|0,DYNAMICTOP=DYNAMICTOP+7&-8,DYNAMICTOP>=TOTAL_MEMORY&&enlargeMemory(),r},alignMemory:function(e,r){var i=e=Math.ceil(e/(r?r:8))*(r?r:8);return i},makeBigInt:function(e,r,i){var f=i?+(e>>>0)+4294967296*+(r>>>0):+(e>>>0)+4294967296*+(0|r);return f},GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0},__THREW__=0,ABORT=!1,EXITSTATUS=0,undef=0,tempValue,tempInt,tempBigInt,tempInt2,tempBigInt2,tempPair,tempBigIntI,tempBigIntR,tempBigIntS,tempBigIntP,tempBigIntD,tempDouble,tempFloat,tempI64,tempI64b,tempRet0,tempRet1,tempRet2,tempRet3,tempRet4,tempRet5,tempRet6,tempRet7,tempRet8,tempRet9,globalScope=this;Module.ccall=ccall,Module.cwrap=cwrap,Module.setValue=setValue,Module.getValue=getValue;var ALLOC_NORMAL=0,ALLOC_STACK=1,ALLOC_STATIC=2,ALLOC_DYNAMIC=3,ALLOC_NONE=4;Module.ALLOC_NORMAL=ALLOC_NORMAL,Module.ALLOC_STACK=ALLOC_STACK,Module.ALLOC_STATIC=ALLOC_STATIC,Module.ALLOC_DYNAMIC=ALLOC_DYNAMIC,Module.ALLOC_NONE=ALLOC_NONE,Module.allocate=allocate,Module.Pointer_stringify=Pointer_stringify,Module.UTF16ToString=UTF16ToString,Module.stringToUTF16=stringToUTF16,Module.UTF32ToString=UTF32ToString,Module.stringToUTF32=stringToUTF32;var PAGE_SIZE=4096,HEAP,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,STATIC_BASE=0,STATICTOP=0,staticSealed=!1,STACK_BASE=0,STACKTOP=0,STACK_MAX=0,DYNAMIC_BASE=0,DYNAMICTOP=0,TOTAL_STACK=Module.TOTAL_STACK||5242880,TOTAL_MEMORY=Module.TOTAL_MEMORY||16777216,FAST_MEMORY=Module.FAST_MEMORY||2097152;assert("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set,"Cannot fallback to non-typed array case: Code is too specialized");var buffer=new ArrayBuffer(TOTAL_MEMORY);HEAP8=new Int8Array(buffer),HEAP16=new Int16Array(buffer),HEAP32=new Int32Array(buffer),HEAPU8=new Uint8Array(buffer),HEAPU16=new Uint16Array(buffer),HEAPU32=new Uint32Array(buffer),HEAPF32=new Float32Array(buffer),HEAPF64=new Float64Array(buffer),HEAP32[0]=255,assert(255===HEAPU8[0]&&0===HEAPU8[3],"Typed arrays 2 must be run on a little-endian system"),Module.HEAP=HEAP,Module.HEAP8=HEAP8,Module.HEAP16=HEAP16,Module.HEAP32=HEAP32,Module.HEAPU8=HEAPU8,Module.HEAPU16=HEAPU16,Module.HEAPU32=HEAPU32,Module.HEAPF32=HEAPF32,Module.HEAPF64=HEAPF64;var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATEXIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1;Module.addOnPreRun=Module.addOnPreRun=addOnPreRun,Module.addOnInit=Module.addOnInit=addOnInit,Module.addOnPreMain=Module.addOnPreMain=addOnPreMain,Module.addOnExit=Module.addOnExit=addOnExit,Module.addOnPostRun=Module.addOnPostRun=addOnPostRun,Module.intArrayFromString=intArrayFromString,Module.intArrayToString=intArrayToString,Module.writeStringToMemory=writeStringToMemory,Module.writeArrayToMemory=writeArrayToMemory,Module.writeAsciiToMemory=writeAsciiToMemory,Math.imul||(Math.imul=function(e,r){var i=e>>>16,f=65535&e,a=r>>>16,t=65535&r;return f*t+(i*t+f*a<<16)|0}),Math.imul=Math.imul;var Math_abs=Math.abs,Math_cos=Math.cos,Math_sin=Math.sin,Math_tan=Math.tan,Math_acos=Math.acos,Math_asin=Math.asin,Math_atan=Math.atan,Math_atan2=Math.atan2,Math_exp=Math.exp,Math_log=Math.log,Math_sqrt=Math.sqrt,Math_ceil=Math.ceil,Math_floor=Math.floor,Math_pow=Math.pow,Math_imul=Math.imul,Math_fround=Math.fround,Math_min=Math.min,runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;Module.addRunDependency=addRunDependency,Module.removeRunDependency=removeRunDependency,Module.preloadedImages={},Module.preloadedAudios={};var memoryInitializer=null;STATIC_BASE=8,STATICTOP=STATIC_BASE+16792;var _stdout,_stdout=_stdout=allocate([0,0,0,0,0,0,0,0],"i8",ALLOC_STATIC),_stdin,_stdin=_stdin=allocate([0,0,0,0,0,0,0,0],"i8",ALLOC_STATIC),_stderr,_stderr=_stderr=allocate([0,0,0,0,0,0,0,0],"i8",ALLOC_STATIC);__ATINIT__.push({func:function(){runPostSets()}},{func:function(){__GLOBAL__I_a()}});var ___fsmu8,___dso_handle,___dso_handle=___dso_handle=allocate([0,0,0,0,0,0,0,0],"i8",ALLOC_STATIC),__ZTVN10__cxxabiv120__si_class_type_infoE;__ZTVN10__cxxabiv120__si_class_type_infoE=allocate([0,0,0,0,232,48,0,0,250,0,0,0,148,0,0,0,66,0,0,0,152,0,0,0,8,0,0,0,10,0,0,0,2,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0],"i8",ALLOC_STATIC);var __ZTVN10__cxxabiv117__class_type_infoE;__ZTVN10__cxxabiv117__class_type_infoE=allocate([0,0,0,0,248,48,0,0,250,0,0,0,244,0,0,0,66,0,0,0,152,0,0,0,8,0,0,0,18,0,0,0,4,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],"i8",ALLOC_STATIC);var __ZN10Page_imageC1EP8_IO_FILEb,__ZN10Page_imageC1ERK12OCRAD_Pixmapb,__ZN9RectangleC1Eiiii,__ZN8TextpageC1ERK10Page_imagePKcRK7Controlb,__ZN8TextpageD1Ev,__ZN6BitmapC1Eiiii,__ZN6BitmapC1ERKS_RK9Rectangle,__ZN4BlobC1ERKS_,__ZN4BlobD1Ev,__ZN9TextblockC1ERK9RectangleS2_RNSt3__16vectorIP4BlobNS3_9allocatorIS6_EEEE,__ZN9TextblockD1Ev,__ZN9CharacterC1ERKS_,__ZN9CharacterD1Ev,__ZN8TextlineD1Ev,__ZN7ProfileC1ERK6BitmapNS_4TypeE,__ZN8FeaturesC1ERK4Blob,__ZNSt13runtime_errorC1EPKc,__ZNSt13runtime_errorD1Ev,__ZNSt12length_errorD1Ev,__ZNSt3__16localeC1Ev,__ZNSt3__16localeC1ERKS0_,__ZNSt3__16localeD1Ev,__ZNSt8bad_castC1Ev,__ZNSt8bad_castD1Ev,__ZNSt9bad_allocD1Ev;allocate([0,0,0,0,0,0,36,64,0,0,0,0,0,0,89,64,0,0,0,0,0,136,195,64,0,0,0,0,132,215,151,65,0,128,224,55,121,195,65,67,23,110,5,181,181,184,147,70,245,249,63,233,3,79,56,77,50,29,48,249,72,119,130,90,60,191,115,127,221,79,21,117,74,117,108,0,0,0,0,0,74,117,110,0,0,0,0,0,65,112,114,0,0,0,0,0,122,111,110,101,32,37,100,32,111,102,32,37,100,10,0,0,77,97,114,0,0,0,0,0,70,101,98,0,0,0,0,0,74,97,110,0,0,0,0,0,117,110,115,117,112,112,111,114,116,101,100,32,108,111,99,97,108,101,32,102,111,114,32,115,116,97,110,100,97,114,100,32,105,110,112,117,116,0,0,0,68,101,99,101,109,98,101,114,0,0,0,0,0,0,0,0,78,111,118,101,109,98,101,114,0,0,0,0,0,0,0,0,103,117,101,115,115,32,39,37,115,39,44,32,99,111,110,102,105,100,101,110,99,101,32,37,100,32,32,32,32,0,0,0,79,99,116,111,98,101,114,0,83,101,112,116,101,109,98,101,114,0,0,0,0,0,0,0,105,109,97,103,101,32,116,111,111,32,115,109,97,108,108,46,32,77,105,110,105,109,117,109,32,115,105,122,101,32,105,115,32,51,120,51,46,0,0,0,65,117,103,117,115,116,0,0,74,117,108,121,0,0,0,0,74,117,110,101,0,0,0,0,104,111,108,101,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,0,116,111,116,97,108,32,98,108,111,98,115,32,105,110,32,112,97,103,101,32,37,100,10,10,0,0,0,0,0,0,0,0,77,97,121,0,0,0,0,0,65,112,114,105,108,0,0,0,77,97,114,99,104,0,0,0,70,101,98,114,117,97,114,121,0,0,0,0,0,0,0,0,74,97,110,117,97,114,121,0,103,117,101,115,115,32,39,37,99,39,44,32,99,111,110,102,105,100,101,110,99,101,32,37,100,32,32,32,32,0,0,0,98,97,115,105,99,95,115,116,114,105,110,103,0,0,0,0,68,0,0,0,101,0,0,0,99,0,0,0,0,0,0,0,122,101,114,111,32,104,101,105,103,104,116,32,105,110,32,112,110,109,32,102,105,108,101,46,0,0,0,0,0,0,0,0,100,101,108,101,116,101,95,104,111,108,101,44,32,108,111,115,116,32,104,111,108,101,46,0,78,0,0,0,111,0,0,0,118,0,0,0,0,0,0,0,79,0,0,0,99,0,0,0,116,0,0,0,0,0,0,0,83,0,0,0,101,0,0,0,112,0,0,0,0,0,0,0,98,97,100,32,112,97,114,97,109,101,116,101,114,32,98,117,105,108,100,105,110,103,32,97,32,66,105,116,109,97,112,32,102,114,111,109,32,112,97,114,116,32,111,102,32,97,110,111,116,104,101,114,32,111,110,101,0,0,0,0,0,0,0,0,116,111,116,97,108,32,122,111,110,101,115,32,105,110,32,112,97,103,101,32,37,100,10,0,65,0,0,0,117,0,0,0,103,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,108,0,0,0,0,0,0,0,119,105,100,116,104,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,110,0,0,0,0,0,0,0,77,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,65,0,0,0,112,0,0,0,114,0,0,0,0,0,0,0,37,100,32,103,117,101,115,115,101,115,32,32,32,32,0,0,77,0,0,0,97,0,0,0,114,0,0,0,0,0,0,0,70,0,0,0,101,0,0,0,98,0,0,0,0,0,0,0,122,101,114,111,32,119,105,100,116,104,32,105,110,32,112,110,109,32,102,105,108,101,46,0,106,111,105,110,95,104,111,108,101,115,44,32,108,111,115,116,32,104,111,108,101,0,0,0,74,0,0,0,97,0,0,0,110,0,0,0,0,0,0,0,68,0,0,0,101,0,0,0,99,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,111,0,0,0,118,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,0,0,0,0,79,0,0,0,99,0,0,0,116,0,0,0,111,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,83,0,0,0,101,0,0,0,112,0,0,0,116,0,0,0,101,0,0,0,109,0,0,0,98,0,0,0,101,0,0,0,114,0,0,0,0,0,0,0,104,101,105,103,104,116,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,0,0,0,0,0,0,65,0,0,0,117,0,0,0,103,0,0,0,117,0,0,0,115,0,0,0,116,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,108,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,101,120,116,101,110,100,95,114,105,103,104,116,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,86,114,104,111,109,98,111,105,100,0,0,0,0,0,0,0,0,74,0,0,0,117,0,0,0,110,0,0,0,101,0,0,0,0,0,0,0,0,0,0,0,95,0,0,0,0,0,0,0,98,97,100,32,109,97,103,105,99,32,110,117,109,98,101,114,32,45,32,110,111,116,32,97,32,112,98,109,44,32,112,103,109,32,111,114,32,112,112,109,32,102,105,108,101,46,0,0,65,0,0,0,112,0,0,0,114,0,0,0,105,0,0,0,108,0,0,0,0,0,0,0,48,46,50,51,45,112,114,101,49,0,0,0,0,0,0,0,77,0,0,0,97,0,0,0,114,0,0,0,99,0,0,0,104,0,0,0,0,0,0,0,70,0,0,0,101,0,0,0,98,0,0,0,114,0,0,0,117,0,0,0,97,0,0,0,114,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,97,0,0,0,110,0,0,0,117,0,0,0,97,0,0,0,114,0,0,0,121,0,0,0,0,0,0,0,110,117,109,98,101,114,32,111,102,32,116,101,120,116,32,98,108,111,99,107,115,32,61,32,37,100,10,0,0,0,0,0,80,77,0,0,0,0,0,0,65,77,0,0,0,0,0,0,98,111,116,116,111,109,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,0,0,0,0,0,0,101,120,116,101,110,100,95,108,101,102,116,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,86,114,104,111,109,98,111,105,100,0,115,116,100,58,58,98,97,100,95,99,97,115,116,0,0,0,80,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,109,101,97,110,32,104,101,105,103,104,116,32,61,32,37,100,44,32,116,114,97,99,107,32,115,101,103,109,101,110,116,115,32,61,32,37,100,10,0,0,103,117,101,115,115,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,108,105,110,101,32,37,100,32,99,104,97,114,115,32,37,100,32,104,101,105,103,104,116,32,37,100,10,0,0,0,0,0,109,97,120,118,97,108,32,62,32,50,53,53,32,105,110,32,112,112,109,32,34,80,54,34,32,102,105,108,101,46,0,0,65,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,122,101,114,111,32,109,97,120,118,97,108,32,105,110,32,112,103,109,32,102,105,108,101,46,0,0,0,0,0,0,0,0,102,105,108,108,95,104,111,108,101,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,118,97,108,117,101,32,62,32,109,97,120,118,97,108,32,105,110,32,112,112,109,32,102,105,108,101,46,0,0,0,0,0,116,101,120,116,32,98,108,111,99,107,32,37,100,32,37,100,32,37,100,32,37,100,32,37,100,10,0,0,0,0,0,0,114,105,103,104,116,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,0,0,0,0,0,0,0,115,119,97,112,95,103,117,101,115,115,101,115,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,0,108,105,110,101,115,32,37,100,10,0,0,0,0,0,0,0,108,111,99,97,108,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,0,0,0,122,101,114,111,32,109,97,120,118,97,108,32,105,110,32,112,112,109,32,102,105,108,101,46,0,0,0,0,0,0,0,0,37,0,0,0,73,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,112,0,0,0,0,0,0,0,37,73,58,37,77,58,37,83,32,37,112,0,0,0,0,0,116,111,116,97,108,32,116,101,120,116,32,98,108,111,99,107,115,32,37,100,10,0,0,0,115,116,100,58,58,98,97,100,95,97,108,108,111,99,0,0,37,0,0,0,97,0,0,0,32,0,0,0,37,0,0,0,98,0,0,0,32,0,0,0,37,0,0,0,100,0,0,0,32,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,89,0,0,0,0,0,0,0,0,0,0,0,37,97,32,37,98,32,37,100,32,37,72,58,37,77,58,37,83,32,37,89,0,0,0,0,108,32,61,32,37,100,44,32,116,32,61,32,37,100,44,32,114,32,61,32,37,100,44,32,98,32,61,32,37,100,10,0,116,111,112,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,0,0,0,0,0,0,0,0,37,72,58,37,77,58,37,83,0,0,0,0,0,0,0,0,105,110,115,101,114,116,95,115,112,97,99,101,44,32,116,114,97,99,107,32,110,111,116,32,115,101,116,32,121,101,116,0,37,100,32,99,104,97,114,97,99,116,101,114,115,32,105,110,32,108,105,110,101,32,37,100,10,0,0,0,0,0,0,0,37,0,0,0,109,0,0,0,47,0,0,0,37,0,0,0,100,0,0,0,47,0,0,0,37,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,37,109,47,37,100,47,37,121,0,0,0,0,0,0,0,0,111,99,114,97,100,58,32,105,110,116,101,114,110,97,108,32,101,114,114,111,114,58,32,37,115,46,10,0,0,0,0,0,32,46,0,0,0,0,0,0,102,0,0,0,97,0,0,0,108,0,0,0,115,0,0,0,101,0,0,0,0,0,0,0,37,112,0,0,0,0,0,0,102,97,108,115,101,0,0,0,44,32,39,37,115,39,37,100,0,0,0,0,0,0,0,0,109,97,120,118,97,108,32,62,32,50,53,53,32,105,110,32,112,103,109,32,34,80,53,34,32,102,105,108,101,46,0,0,116,0,0,0,114,0,0,0,117,0,0,0,101,0,0,0,0,0,0,0,0,0,0,0,44,32,39,37,99,39,37,100,0,0,0,0,0,0,0,0,115,111,117,114,99,101,32,102,105,108,101,32,37,115,10,0,116,114,117,101,0,0,0,0,37,51,100,32,37,51,100,32,37,50,100,32,37,50,100,59,32,37,100,0,0,0,0,0,98,97,100,32,112,97,114,97,109,101,116,101,114,32,98,117,105,108,100,105,110,103,32,97,32,114,101,100,117,99,101,100,32,80,97,103,101,95,105,109,97,103,101,0,0,0,0,0,10,10,0,0,0,0,0,0,58,32,0,0,0,0,0,0,106,117,110,107,32,105,110,32,112,98,109,32,102,105,108,101,32,119,104,101,114,101,32,98,105,116,115,32,115,104,111,117,108,100,32,98,101,46,0,0,108,101,102,116,44,32,98,97,100,32,112,97,114,97,109,101,116,101,114,32,114,101,115,105,122,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,0,0,0,0,0,0,0,0,32,32,104,50,46,98,111,116,116,111,109,40,37,100,41,0,101,110,100,45,111,102,45,102,105,108,101,32,114,101,97,100,105,110,103,32,112,110,109,32,102,105,108,101,46,0,0,0,32,32,104,50,46,116,111,112,40,37,100,41,0,0,0,0,110,117,109,98,101,114,32,116,111,111,32,98,105,103,32,105,110,32,112,110,109,32,102,105,108,101,46,0,0,0,0,0,108,32,61,32,37,100,44,32,108,99,32,61,32,37,100,44,32,114,32,61,32,37,100,44,32,114,99,32,61,32,37,100,44,32,104,32,61,32,37,100,10,0,0,0,0,0,0,0,105,110,115,101,114,116,95,115,112,97,99,101,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,0,105,110,115,101,114,116,95,103,117,101,115,115,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,0,105,111,115,95,98,97,115,101,58,58,99,108,101,97,114,0,32,32,104,49,46,98,111,116,116,111,109,40,37,100,41,0,37,100,32,108,105,110,101,115,10,10,0,0,0,0,0,0,106,117,110,107,32,105,110,32,112,110,109,32,102,105,108,101,32,119,104,101,114,101,32,97,110,32,105,110,116,101,103,101,114,32,115,104,111,117,108,100,32,98,101,46,0,0,0,0,32,32,104,49,46,116,111,112,40,37,100,41,0,0,0,0,119,0,0,0,0,0,0,0,32,32,98,111,120,46,98,111,116,116,111,109,40,37,100,41,0,0,0,0,0,0,0,0,37,99,32,37,99,32,37,99,32,0,0,0,0,0,0,0,32,79,0,0,0,0,0,0,32,32,98,111,120,46,118,99,101,110,116,101,114,40,37,100,41,0,0,0,0,0,0,0,37,100,32,37,100,32,37,100,10,0,0,0,0,0,0,0,99,104,97,114,97,99,116,101,114,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,67,0,0,0,0,0,0,0,32,32,98,111,120,46,116,111,112,40,37,100,41,0,0,0,37,100,32,37,100,32,37,100,32,0,0,0,0,0,0,0,118,101,99,116,111,114,0,0,32,32,98,111,116,116,111,109,40,37,100,41,0,0,0,0,118,97,108,117,101,32,62,32,109,97,120,118,97,108,32,105,110,32,112,103,109,32,102,105,108,101,46,0,0,0,0,0,84,101,120,116,112,97,103,101,58,58,116,101,120,116,98,108,111,99,107,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,0,0,37,46,48,76,102,0,0,0,32,32,118,99,101,110,116,101,114,40,37,100,41,0,0,0,37,100,32,0,0,0,0,0,109,111,110,101,121,95,103,101,116,32,101,114,114,111,114,0,32,32,116,111,112,40,37,100,41,0,0,0,0,0,0,0,37,100,10,0,0,0,0,0,99,111,110,115,116,32,98,108,111,98,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,98,97,100,32,112,97,114,97,109,101,116,101,114,32,98,117,105,108,100,105,110,103,32,97,32,82,101,99,116,97,110,103,108,101,0,0,0,0,0,0,83,97,116,0,0,0,0,0,70,114,105,0,0,0,0,0,105,111,115,116,114,101,97,109,0,0,0,0,0,0,0,0,37,76,102,0,0,0,0,0,84,104,117,0,0,0,0,0,32,37,99,0,0,0,0,0,87,101,100,0,0,0,0,0,84,117,101,0,0,0,0,0,80,37,99,10,37,100,32,37,100,10,0,0,0,0,0,0,77,111,110,0,0,0,0,0,83,117,110,0,0,0,0,0,83,97,116,117,114,100,97,121,0,0,0,0,0,0,0,0,106,111,105,110,95,98,108,111,98,115,44,32,108,111,115,116,32,98,108,111,98,0,0,0,70,114,105,100,97,121,0,0,115,99,97,108,101,32,102,97,99,116,111,114,32,116,111,111,32,98,105,103,46,32,39,105,110,116,39,32,119,105,108,108,32,111,118,101,114,102,108,111,119,46,0,0,0,0,0,0,84,104,117,114,115,100,97,121,0,0,0,0,0,0,0,0,87,101,100,110,101,115,100,97,121,0,0,0,0,0,0,0,84,117,101,115,100,97,121,0,98,97,100,32,112,97,114,97,109,101,116,101,114,32,98,117,105,108,100,105,110,103,32,97,32,86,114,104,111,109,98,111,105,100,0,0,0,0,0,0,77,111,110,100,97,121,0,0,119,105,100,116,104,32,61,32,37,100,44,32,104,101,105,103,104,116,32,61,32,37,100,44,32,104,99,101,110,116,101,114,32,61,32,37,100,44,32,118,99,101,110,116,101,114,32,61,32,37,100,44,32,98,108,97,99,107,32,97,114,101,97,32,61,32,37,100,37,37,10,10,0,0,0,0,0,0,0,0,83,117,110,100,97,121,0,0,102,105,108,101,32,115,105,122,101,32,105,115,32,37,100,119,32,120,32,37,100,104,10,0,83,0,0,0,97,0,0,0,116,0,0,0,0,0,0,0,100,101,108,101,116,101,95,99,104,97,114,97,99,116,101,114,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,70,0,0,0,114,0,0,0,105,0,0,0,0,0,0,0,84,0,0,0,104,0,0,0,117,0,0,0,0,0,0,0,116,111,116,97,108,32,98,108,111,98,115,32,105,110,32,122,111,110,101,32,37,117,10,10,0,0,0,0,0,0,0,0,87,0,0,0,101,0,0,0,100,0,0,0,0,0,0,0,84,0,0,0,117,0,0,0,101,0,0,0,0,0,0,0,98,108,111,98,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,0,77,0,0,0,111,0,0,0,110,0,0,0,0,0,0,0,117,110,115,112,101,99,105,102,105,101,100,32,105,111,115,116,114,101,97,109,95,99,97,116,101,103,111,114,121,32,101,114,114,111,114,0,0,0,0,0,83,0,0,0,117,0,0,0,110,0,0,0,0,0,0,0,83,0,0,0,97,0,0,0,116,0,0,0,117,0,0,0,114,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,108,101,102,116,32,61,32,37,100,44,32,116,111,112,32,61,32,37,100,44,32,114,105,103,104,116,32,61,32,37,100,44,32,98,111,116,116,111,109,32,61,32,37,100,10,0,0,0,70,0,0,0,114,0,0,0,105,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,84,0,0,0,104,0,0,0,117,0,0,0,114,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,108,105,110,101,44,32,105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,0,0,0,0,0,0,0,102,105,108,101,32,116,121,112,101,32,105,115,32,80,37,99,10,0,0,0,0,0,0,0,87,0,0,0,101,0,0,0,100,0,0,0,110,0,0,0,101,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,84,0,0,0,117,0,0,0,101,0,0,0,115,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,77,0,0,0,111,0,0,0,110,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,122,111,110,101,32,115,105,122,101,32,37,100,119,32,120,32,37,100,104,10,0,0,0,0,83,0,0,0,117,0,0,0,110,0,0,0,100,0,0,0,97,0,0,0,121,0,0,0,0,0,0,0,0,0,0,0,68,101,99,0,0,0,0,0,78,111,118,0,0,0,0,0,79,99,116,0,0,0,0,0,83,101,112,0,0,0,0,0,65,117,103,0,0,0,0,0,105,109,97,103,101,32,116,111,111,32,98,105,103,46,32,39,105,110,116,39,32,119,105,108,108,32,111,118,101,114,102,108,111,119,46,0,0,0,0,0,114,98,0,0,0,0,0,0,45,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,49,50,51,52,53,54,55,56,57,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,0,0,0,0,0,0,37,0,0,0,89,0,0,0,45,0,0,0,37,0,0,0,109,0,0,0,45,0,0,0,37,0,0,0,100,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,0,0,0,0,37,0,0,0,73,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,32,0,0,0,37,0,0,0,112,0,0,0,0,0,0,0,37,0,0,0,109,0,0,0,47,0,0,0,37,0,0,0,100,0,0,0,47,0,0,0,37,0,0,0,121,0,0,0,37,0,0,0,72,0,0,0,58,0,0,0,37,0,0,0,77,0,0,0,58,0,0,0,37,0,0,0,83,0,0,0,37,72,58,37,77,58,37,83,37,72,58,37,77,0,0,0,37,73,58,37,77,58,37,83,32,37,112,0,0,0,0,0,37,89,45,37,109,45,37,100,37,109,47,37,100,47,37,121,37,72,58,37,77,58,37,83,37,0,0,0,0,0,0,0,37,112,0,0,0,0,0,0,0,0,0,0,255,255,255,255,1,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,1,0,0,0,255,255,255,255,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,0,0,0,0,0,43,0,0,36,0,0,0,118,0,0,0,68,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,43,0,0,198,0,0,0,162,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,43,0,0,72,0,0,0,6,1,0,0,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,43,0,0,96,0,0,0,8,0,0,0,104,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,43,0,0,96,0,0,0,22,0,0,0,104,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,43,0,0,168,0,0,0,84,0,0,0,54,0,0,0,2,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,43,0,0,254,0,0,0,190,0,0,0,54,0,0,0,4,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,152,43,0,0,160,0,0,0,192,0,0,0,54,0,0,0,8,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,43,0,0,0,1,0,0,138,0,0,0,54,0,0,0,6,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,44,0,0,252,0,0,0,94,0,0,0,54,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,120,44,0,0,158,0,0,0,110,0,0,0,54,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,152,44,0,0,44,0,0,0,112,0,0,0,54,0,0,0,118,0,0,0,4,0,0,0,30,0,0,0,6,0,0,0,20,0,0,0,54,0,0,0,2,0,0,0,248,255,255,255,152,44,0,0,20,0,0,0,10,0,0,0,32,0,0,0,14,0,0,0,2,0,0,0,30,0,0,0,122,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,44,0,0,242,0,0,0,226,0,0,0,54,0,0,0,18,0,0,0,16,0,0,0,58,0,0,0,26,0,0,0,18,0,0,0,2,0,0,0,4,0,0,0,248,255,255,255,192,44,0,0,62,0,0,0,100,0,0,0,112,0,0,0,120,0,0,0,88,0,0,0,42,0,0,0,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,232,44,0,0,78,0,0,0,194,0,0,0,54,0,0,0,44,0,0,0,38,0,0,0,8,0,0,0,46,0,0,0,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,248,44,0,0,64,0,0,0,68,0,0,0,54,0,0,0,40,0,0,0,76,0,0,0,12,0,0,0,58,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,45,0,0,246,0,0,0,2,0,0,0,54,0,0,0,24,0,0,0,30,0,0,0,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,45,0,0,52,0,0,0,210,0,0,0,54,0,0,0,38,0,0,0,14,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,45,0,0,214,0,0,0,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,45,0,0,34,0,0,0,136,0,0,0,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,45,0,0,6,0,0,0,174,0,0,0,54,0,0,0,8,0,0,0,6,0,0,0,12,0,0,0,4,0,0,0,10,0,0,0,4,0,0,0,2,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,45,0,0,100,0,0,0,20,0,0,0,54,0,0,0,22,0,0,0,26,0,0,0,32,0,0,0,24,0,0,0,22,0,0,0,8,0,0,0,6,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,45,0,0,46,0,0,0,28,0,0,0,54,0,0,0,46,0,0,0,44,0,0,0,36,0,0,0,38,0,0,0,28,0,0,0,42,0,0,0,34,0,0,0,52,0,0,0,50,0,0,0,48,0,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,45,0,0,58,0,0,0,4,0,0,0,54,0,0,0,76,0,0,0,68,0,0,0,62,0,0,0,64,0,0,0,56,0,0,0,66,0,0,0,60,0,0,0,74,0,0,0,72,0,0,0,70,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,224,45,0,0,74,0,0,0,92,0,0,0,54,0,0,0,6,0,0,0,12,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,45,0,0,32,0,0,0,176,0,0,0,54,0,0,0,16,0,0,0,16,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0,12,0,0,0,188,0,0,0,54,0,0,0,2,0,0,0,10,0,0,0,14,0,0,0,116,0,0,0,94,0,0,0,24,0,0,0,108,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,46,0,0,180,0,0,0,130,0,0,0,54,0,0,0,14,0,0,0,16,0,0,0,18,0,0,0,48,0,0,0,8,0,0,0,20,0,0,0,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,46,0,0,180,0,0,0,24,0,0,0,54,0,0,0,6,0,0,0,4,0,0,0,4,0,0,0,92,0,0,0,58,0,0,0,10,0,0,0,124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,46,0,0,180,0,0,0,102,0,0,0,54,0,0,0,12,0,0,0,8,0,0,0,22,0,0,0,28,0,0,0,66,0,0,0,8,0,0,0,126,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,46,0,0,180,0,0,0,40,0,0,0,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,46,0,0,62,0,0,0,156,0,0,0,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,46,0,0,180,0,0,0,80,0,0,0,54,0,0,0,20,0,0,0,2,0,0,0,4,0,0,0,10,0,0,0,16,0,0,0,28,0,0,0,24,0,0,0,6,0,0,0,4,0,0,0,8,0,0,0,10,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,46,0,0,4,1,0,0,42,0,0,0,54,0,0,0,10,0,0,0,4,0,0,0,18,0,0,0,36,0,0,0,8,0,0,0,6,0,0,0,26,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,46,0,0,70,0,0,0,222,0,0,0,70,0,0,0,6,0,0,0,14,0,0,0,32,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,47,0,0,180,0,0,0,86,0,0,0,54,0,0,0,12,0,0,0,8,0,0,0,22,0,0,0,28,0,0,0,66,0,0,0,8,0,0,0,126,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,47,0,0,180,0,0,0,164,0,0,0,54,0,0,0,12,0,0,0,8,0,0,0,22,0,0,0,28,0,0,0,66,0,0,0,8,0,0,0,126,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,47,0,0,128,0,0,0,234,0,0,0,20,0,0,0,22,0,0,0,16,0,0,0,14,0,0,0,80,0,0,0,96,0,0,0,34,0,0,0,26,0,0,0,24,0,0,0,6,0,0,0,44,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,47,0,0,10,0,0,0,120,0,0,0,64,0,0,0,40,0,0,0,28,0,0,0,10,0,0,0,46,0,0,0,78,0,0,0,18,0,0,0,6,0,0,0,12,0,0,0,26,0,0,0,16,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,88,47,0,0,50,0,0,0,208,0,0,0,252,255,255,255,252,255,255,255,88,47,0,0,144,0,0,0,126,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,112,47,0,0,216,0,0,0,236,0,0,0,252,255,255,255,252,255,255,255,112,47,0,0,108,0,0,0,202,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,136,47,0,0,88,0,0,0,8,1,0,0,248,255,255,255,248,255,255,255,136,47,0,0,182,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,160,47,0,0,106,0,0,0,206,0,0,0,248,255,255,255,248,255,255,255,160,47,0,0,134,0,0,0,56,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,47,0,0,204,0,0,0,184,0,0,0,36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,224,47,0,0,248,0,0,0,230,0,0,0,16,0,0,0,22,0,0,0,16,0,0,0,14,0,0,0,54,0,0,0,96,0,0,0,34,0,0,0,26,0,0,0,24,0,0,0,6,0,0,0,30,0,0,0,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,47,0,0,154,0,0,0,178,0,0,0,40,0,0,0,40,0,0,0,28,0,0,0,10,0,0,0,82,0,0,0,78,0,0,0,18,0,0,0,6,0,0,0,12,0,0,0,26,0,0,0,42,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,48,0,0,224,0,0,0,142,0,0,0,54,0,0,0,60,0,0,0,114,0,0,0,32,0,0,0,84,0,0,0,4,0,0,0,36,0,0,0,50,0,0,0,24,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,48,0,0,104,0,0,0,60,0,0,0,54,0,0,0,106,0,0,0,4,0,0,0,72,0,0,0,80,0,0,0,82,0,0,0,28,0,0,0,110,0,0,0,54,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,48,0,0,228,0,0,0,116,0,0,0,54,0,0,0,16,0,0,0,56,0,0,0,6,0,0,0,48,0,0,0,86,0,0,0,56,0,0,0,86,0,0,0,60,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,48,0,0,76,0,0,0,172,0,0,0,54,0,0,0,98,0,0,0,102,0,0,0,34,0,0,0,78,0,0,0,30,0,0,0,22,0,0,0,72,0,0,0,76,0,0,0,74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,48,0,0,90,0,0,0,18,0,0,0,42,0,0,0,22,0,0,0,16,0,0,0,14,0,0,0,80,0,0,0,96,0,0,0,34,0,0,0,64,0,0,0,74,0,0,0,12,0,0,0,44,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,200,48,0,0,16,0,0,0,218,0,0,0,66,0,0,0,40,0,0,0,28,0,0,0,10,0,0,0,46,0,0,0,78,0,0,0,18,0,0,0,90,0,0,0,22,0,0,0,2,0,0,0,16,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,216,48,0,0,250,0,0,0,200,0,0,0,66,0,0,0,152,0,0,0,8,0,0,0,2,0,0,0,12,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,83,116,57,116,121,112,101,95,105,110,102,111,0,0,0,0,83,116,57,101,120,99,101,112,116,105,111,110,0,0,0,0,83,116,57,98,97,100,95,97,108,108,111,99,0,0,0,0,83,116,56,98,97,100,95,99,97,115,116,0,0,0,0,0,83,116,49,51,114,117,110,116,105,109,101,95,101,114,114,111,114,0,0,0,0,0,0,0,83,116,49,50,108,101,110,103,116,104,95,101,114,114,111,114,0,0,0,0,0,0,0,0,83,116,49,49,108,111,103,105,99,95,101,114,114,111,114,0,78,83,116,51,95,95,49,57,116,105,109,101,95,98,97,115,101,69,0,0,0,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,57,109,111,110,101,121,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,78,83,116,51,95,95,49,57,98,97,115,105,99,95,105,111,115,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,57,98,97,115,105,99,95,105,111,115,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,112,117,116,73,119,69,69,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,112,117,116,73,99,69,69,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,103,101,116,73,119,69,69,0,0,0,78,83,116,51,95,95,49,57,95,95,110,117,109,95,103,101,116,73,99,69,69,0,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,78,83,116,51,95,95,49,56,116,105,109,101,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,78,83,116,51,95,95,49,56,110,117,109,112,117,110,99,116,73,119,69,69,0,0,0,0,78,83,116,51,95,95,49,56,110,117,109,112,117,110,99,116,73,99,69,69,0,0,0,0,78,83,116,51,95,95,49,56,109,101,115,115,97,103,101,115,73,119,69,69,0,0,0,0,78,83,116,51,95,95,49,56,109,101,115,115,97,103,101,115,73,99,69,69,0,0,0,0,78,83,116,51,95,95,49,56,105,111,115,95,98,97,115,101,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,56,105,111,115,95,98,97,115,101,55,102,97,105,108,117,114,101,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,112,117,116,73,119,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,112,117,116,73,99,78,83,95,49,57,111,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,103,101,116,73,119,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,110,117,109,95,103,101,116,73,99,78,83,95,49,57,105,115,116,114,101,97,109,98,117,102,95,105,116,101,114,97,116,111,114,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,108,108,97,116,101,73,119,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,108,108,97,116,101,73,99,69,69,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,119,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,99,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,68,115,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,78,83,116,51,95,95,49,55,99,111,100,101,99,118,116,73,68,105,99,49,49,95,95,109,98,115,116,97,116,101,95,116,69,69,0,0,0,0,0,0,78,83,116,51,95,95,49,54,108,111,99,97,108,101,53,102,97,99,101,116,69,0,0,0,78,83,116,51,95,95,49,54,108,111,99,97,108,101,53,95,95,105,109,112,69,0,0,0,78,83,116,51,95,95,49,53,99,116,121,112,101,73,119,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,53,99,116,121,112,101,73,99,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,50,48,95,95,116,105,109,101,95,103,101,116,95,99,95,115,116,111,114,97,103,101,73,119,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,50,48,95,95,116,105,109,101,95,103,101,116,95,99,95,115,116,111,114,97,103,101,73,99,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,57,95,95,105,111,115,116,114,101,97,109,95,99,97,116,101,103,111,114,121,69,0,0,0,78,83,116,51,95,95,49,49,55,95,95,119,105,100,101,110,95,102,114,111,109,95,117,116,102,56,73,76,106,51,50,69,69,69,0,0,0,0,0,0,78,83,116,51,95,95,49,49,54,95,95,110,97,114,114,111,119,95,116,111,95,117,116,102,56,73,76,106,51,50,69,69,69,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,53,98,97,115,105,99,95,115,116,114,101,97,109,98,117,102,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,53,98,97,115,105,99,95,115,116,114,101,97,109,98,117,102,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,52,101,114,114,111,114,95,99,97,116,101,103,111,114,121,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,52,95,95,115,104,97,114,101,100,95,99,111,117,110,116,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,52,95,95,110,117,109,95,112,117,116,95,98,97,115,101,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,52,95,95,110,117,109,95,103,101,116,95,98,97,115,101,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,51,109,101,115,115,97,103,101,115,95,98,97,115,101,69,0,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,111,115,116,114,101,97,109,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,111,115,116,114,101,97,109,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,105,115,116,114,101,97,109,73,119,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,119,69,69,69,69,0,0].concat([78,83,116,51,95,95,49,49,51,98,97,115,105,99,95,105,115,116,114,101,97,109,73,99,78,83,95,49,49,99,104,97,114,95,116,114,97,105,116,115,73,99,69,69,69,69,0,0,78,83,116,51,95,95,49,49,50,115,121,115,116,101,109,95,101,114,114,111,114,69,0,0,78,83,116,51,95,95,49,49,50,99,111,100,101,99,118,116,95,98,97,115,101,69,0,0,78,83,116,51,95,95,49,49,50,95,95,100,111,95,109,101,115,115,97,103,101,69,0,0,78,83,116,51,95,95,49,49,49,95,95,115,116,100,111,117,116,98,117,102,73,119,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,49,95,95,115,116,100,111,117,116,98,117,102,73,99,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,112,117,116,73,119,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,112,117,116,73,99,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,103,101,116,73,119,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,49,95,95,109,111,110,101,121,95,103,101,116,73,99,69,69,0,0,0,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,119,76,98,49,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,119,76,98,48,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,99,76,98,49,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,112,117,110,99,116,73,99,76,98,48,69,69,69,0,0,0,0,0,78,83,116,51,95,95,49,49,48,109,111,110,101,121,95,98,97,115,101,69,0,0,0,0,78,83,116,51,95,95,49,49,48,99,116,121,112,101,95,98,97,115,101,69,0,0,0,0,78,83,116,51,95,95,49,49,48,95,95,116,105,109,101,95,112,117,116,69,0,0,0,0,78,83,116,51,95,95,49,49,48,95,95,115,116,100,105,110,98,117,102,73,119,69,69,0,78,83,116,51,95,95,49,49,48,95,95,115,116,100,105,110,98,117,102,73,99,69,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,49,95,95,118,109,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,48,95,95,115,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,0,0,0,0,0,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,54,95,95,115,104,105,109,95,116,121,112,101,95,105,110,102,111,69,0,0,0,0,0,0,0,0,78,49,48,80,97,103,101,95,105,109,97,103,101,53,69,114,114,111,114,69,0,0,0,0,0,0,0,0,48,31,0,0,0,0,0,0,64,31,0,0,0,0,0,0,80,31,0,0,248,42,0,0,0,0,0,0,0,0,0,0,96,31,0,0,248,42,0,0,0,0,0,0,0,0,0,0,112,31,0,0,248,42,0,0,0,0,0,0,0,0,0,0,136,31,0,0,64,43,0,0,0,0,0,0,0,0,0,0,160,31,0,0,248,42,0,0,0,0,0,0,0,0,0,0,176,31,0,0,8,31,0,0,200,31,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,0,48,0,0,0,0,0,0,8,31,0,0,16,32,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,8,48,0,0,0,0,0,0,8,31,0,0,88,32,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,16,48,0,0,0,0,0,0,8,31,0,0,160,32,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,24,48,0,0,0,0,0,0,0,0,0,0,232,32,0,0,72,45,0,0,0,0,0,0,0,0,0,0,24,33,0,0,72,45,0,0,0,0,0,0,8,31,0,0,72,33,0,0,0,0,0,0,1,0,0,0,64,47,0,0,0,0,0,0,8,31,0,0,96,33,0,0,0,0,0,0,1,0,0,0,64,47,0,0,0,0,0,0,8,31,0,0,120,33,0,0,0,0,0,0,1,0,0,0,72,47,0,0,0,0,0,0,8,31,0,0,144,33,0,0,0,0,0,0,1,0,0,0,72,47,0,0,0,0,0,0,8,31,0,0,168,33,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,176,48,0,0,0,8,0,0,8,31,0,0,240,33,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,176,48,0,0,0,8,0,0,8,31,0,0,56,34,0,0,0,0,0,0,3,0,0,0,128,46,0,0,2,0,0,0,80,43,0,0,2,0,0,0,224,46,0,0,0,8,0,0,8,31,0,0,128,34,0,0,0,0,0,0,3,0,0,0,128,46,0,0,2,0,0,0,80,43,0,0,2,0,0,0,232,46,0,0,0,8,0,0,0,0,0,0,200,34,0,0,128,46,0,0,0,0,0,0,0,0,0,0,224,34,0,0,128,46,0,0,0,0,0,0,8,31,0,0,248,34,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,80,47,0,0,2,0,0,0,8,31,0,0,16,35,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,80,47,0,0,2,0,0,0,0,0,0,0,40,35,0,0,0,0,0,0,64,35,0,0,184,47,0,0,0,0,0,0,8,31,0,0,96,35,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,248,43,0,0,0,0,0,0,8,31,0,0,168,35,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,16,44,0,0,0,0,0,0,8,31,0,0,240,35,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,40,44,0,0,0,0,0,0,8,31,0,0,56,36,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,64,44,0,0,0,0,0,0,0,0,0,0,128,36,0,0,128,46,0,0,0,0,0,0,0,0,0,0,152,36,0,0,128,46,0,0,0,0,0,0,8,31,0,0,176,36,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,200,47,0,0,2,0,0,0,8,31,0,0,216,36,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,200,47,0,0,2,0,0,0,8,31,0,0,0,37,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,200,47,0,0,2,0,0,0,8,31,0,0,40,37,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,200,47,0,0,2,0,0,0,0,0,0,0,80,37,0,0,56,47,0,0,0,0,0,0,0,0,0,0,104,37,0,0,128,46,0,0,0,0,0,0,8,31,0,0,128,37,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,168,48,0,0,2,0,0,0,8,31,0,0,152,37,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,168,48,0,0,2,0,0,0,0,0,0,0,176,37,0,0,0,0,0,0,216,37,0,0,0,0,0,0,0,38,0,0,208,47,0,0,0,0,0,0,0,0,0,0,32,38,0,0,96,46,0,0,0,0,0,0,0,0,0,0,72,38,0,0,96,46,0,0,0,0,0,0,0,0,0,0,112,38,0,0,0,0,0,0,168,38,0,0,0,0,0,0,224,38,0,0,0,0,0,0,0,39,0,0,0,0,0,0,32,39,0,0,0,0,0,0,64,39,0,0,0,0,0,0,96,39,0,0,8,31,0,0,120,39,0,0,0,0,0,0,1,0,0,0,216,43,0,0,3,244,255,255,8,31,0,0,168,39,0,0,0,0,0,0,1,0,0,0,232,43,0,0,3,244,255,255,8,31,0,0,216,39,0,0,0,0,0,0,1,0,0,0,216,43,0,0,3,244,255,255,8,31,0,0,8,40,0,0,0,0,0,0,1,0,0,0,232,43,0,0,3,244,255,255,0,0,0,0,56,40,0,0,32,43,0,0,0,0,0,0,0,0,0,0,80,40,0,0,0,0,0,0,104,40,0,0,48,47,0,0,0,0,0,0,0,0,0,0,128,40,0,0,32,47,0,0,0,0,0,0,0,0,0,0,160,40,0,0,40,47,0,0,0,0,0,0,0,0,0,0,192,40,0,0,0,0,0,0,224,40,0,0,0,0,0,0,0,41,0,0,0,0,0,0,32,41,0,0,8,31,0,0,64,41,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,160,48,0,0,2,0,0,0,8,31,0,0,96,41,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,160,48,0,0,2,0,0,0,8,31,0,0,128,41,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,160,48,0,0,2,0,0,0,8,31,0,0,160,41,0,0,0,0,0,0,2,0,0,0,128,46,0,0,2,0,0,0,160,48,0,0,2,0,0,0,0,0,0,0,192,41,0,0,0,0,0,0,216,41,0,0,0,0,0,0,240,41,0,0,0,0,0,0,8,42,0,0,32,47,0,0,0,0,0,0,0,0,0,0,32,42,0,0,40,47,0,0,0,0,0,0,0,0,0,0,56,42,0,0,248,48,0,0,0,0,0,0,0,0,0,0,96,42,0,0,248,48,0,0,0,0,0,0,0,0,0,0,136,42,0,0,8,49,0,0,0,0,0,0,0,0,0,0,176,42,0,0,240,42,0,0,0,0,0,0,0,0,0,0,216,42,0,0,48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,65,66,67,68,69,70,120,88,43,45,112,80,105,73,110,78,0,0,0,0,0,0,0,0]),"i8",ALLOC_NONE,Runtime.GLOBAL_BASE);
var tempDoublePtr=Runtime.alignMemory(allocate(12,"i8",ALLOC_STATIC),8);assert(tempDoublePtr%8==0);var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86},ERRNO_MESSAGES={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"},___errno_state=0,PATH={splitPath:function(e){var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return r.exec(e).slice(1)},normalizeArray:function(e,r){for(var i=0,f=e.length-1;f>=0;f--){var a=e[f];"."===a?e.splice(f,1):".."===a?(e.splice(f,1),i++):i&&(e.splice(f,1),i--)}if(r)for(;i--;i)e.unshift("..");return e},normalize:function(e){var r="/"===e.charAt(0),i="/"===e.substr(-1);return e=PATH.normalizeArray(e.split("/").filter(function(e){return!!e}),!r).join("/"),e||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},dirname:function(e){var r=PATH.splitPath(e),i=r[0],f=r[1];return i||f?(f&&(f=f.substr(0,f.length-1)),i+f):"."},basename:function(e){if("/"===e)return"/";var r=e.lastIndexOf("/");return-1===r?e:e.substr(r+1)},extname:function(e){return PATH.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return PATH.normalize(e.join("/"))},join2:function(e,r){return PATH.normalize(e+"/"+r)},resolve:function(){for(var e="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var f=i>=0?arguments[i]:FS.cwd();if("string"!=typeof f)throw new TypeError("Arguments to path.resolve must be strings");f&&(e=f+"/"+e,r="/"===f.charAt(0))}return e=PATH.normalizeArray(e.split("/").filter(function(e){return!!e}),!r).join("/"),(r?"/":"")+e||"."},relative:function(e,r){function i(e){for(var r=0;r<e.length&&""===e[r];r++);for(var i=e.length-1;i>=0&&""===e[i];i--);return r>i?[]:e.slice(r,i-r+1)}e=PATH.resolve(e).substr(1),r=PATH.resolve(r).substr(1);for(var f=i(e.split("/")),a=i(r.split("/")),t=Math.min(f.length,a.length),n=t,o=0;t>o;o++)if(f[o]!==a[o]){n=o;break}for(var u=[],o=n;o<f.length;o++)u.push("..");return u=u.concat(a.slice(n)),u.join("/")}},TTY={ttys:[],init:function(){},shutdown:function(){},register:function(e,r){TTY.ttys[e]={input:[],output:[],ops:r},FS.registerDevice(e,TTY.stream_ops)},stream_ops:{open:function(e){var r=TTY.ttys[e.node.rdev];if(!r)throw new FS.ErrnoError(ERRNO_CODES.ENODEV);e.tty=r,e.seekable=!1},close:function(e){e.tty.output.length&&e.tty.ops.put_char(e.tty,10)},read:function(e,r,i,f){if(!e.tty||!e.tty.ops.get_char)throw new FS.ErrnoError(ERRNO_CODES.ENXIO);for(var a=0,t=0;f>t;t++){var n;try{n=e.tty.ops.get_char(e.tty)}catch(o){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(void 0===n&&0===a)throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);if(null===n||void 0===n)break;a++,r[i+t]=n}return a&&(e.node.timestamp=Date.now()),a},write:function(e,r,i,f){if(!e.tty||!e.tty.ops.put_char)throw new FS.ErrnoError(ERRNO_CODES.ENXIO);for(var a=0;f>a;a++)try{e.tty.ops.put_char(e.tty,r[i+a])}catch(t){throw new FS.ErrnoError(ERRNO_CODES.EIO)}return f&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:function(e){if(!e.input.length){var r=null;if(ENVIRONMENT_IS_NODE){if(r=process.stdin.read(),!r)return process.stdin._readableState&&process.stdin._readableState.ended?null:void 0}else"undefined"!=typeof window&&"function"==typeof window.prompt?(r=window.prompt("Input: "),null!==r&&(r+="\n")):"function"==typeof readline&&(r=readline(),null!==r&&(r+="\n"));if(!r)return null;e.input=intArrayFromString(r,!0)}return e.input.shift()},put_char:function(e,r){null===r||10===r?(Module.print(e.output.join("")),e.output=[]):e.output.push(TTY.utf8.processCChar(r))}},default_tty1_ops:{put_char:function(e,r){null===r||10===r?(Module.printErr(e.output.join("")),e.output=[]):e.output.push(TTY.utf8.processCChar(r))}}},MEMFS={ops_table:null,CONTENT_OWNING:1,CONTENT_FLEXIBLE:2,CONTENT_FIXED:3,mount:function(){return MEMFS.createNode(null,"/",16895,0)},createNode:function(e,r,i,f){if(FS.isBlkdev(i)||FS.isFIFO(i))throw new FS.ErrnoError(ERRNO_CODES.EPERM);MEMFS.ops_table||(MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}});var a=FS.createNode(e,r,i,f);return FS.isDir(a.mode)?(a.node_ops=MEMFS.ops_table.dir.node,a.stream_ops=MEMFS.ops_table.dir.stream,a.contents={}):FS.isFile(a.mode)?(a.node_ops=MEMFS.ops_table.file.node,a.stream_ops=MEMFS.ops_table.file.stream,a.contents=[],a.contentMode=MEMFS.CONTENT_FLEXIBLE):FS.isLink(a.mode)?(a.node_ops=MEMFS.ops_table.link.node,a.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(a.mode)&&(a.node_ops=MEMFS.ops_table.chrdev.node,a.stream_ops=MEMFS.ops_table.chrdev.stream),a.timestamp=Date.now(),e&&(e.contents[r]=a),a},ensureFlexible:function(e){if(e.contentMode!==MEMFS.CONTENT_FLEXIBLE){var r=e.contents;e.contents=Array.prototype.slice.call(r),e.contentMode=MEMFS.CONTENT_FLEXIBLE}},node_ops:{getattr:function(e){var r={};return r.dev=FS.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,r.size=FS.isDir(e.mode)?4096:FS.isFile(e.mode)?e.contents.length:FS.isLink(e.mode)?e.link.length:0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr:function(e,r){if(void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size){MEMFS.ensureFlexible(e);var i=e.contents;if(r.size<i.length)i.length=r.size;else for(;r.size>i.length;)i.push(0)}},lookup:function(){throw FS.genericErrors[ERRNO_CODES.ENOENT]},mknod:function(e,r,i,f){return MEMFS.createNode(e,r,i,f)},rename:function(e,r,i){if(FS.isDir(e.mode)){var f;try{f=FS.lookupNode(r,i)}catch(a){}if(f)for(var t in f.contents)throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}delete e.parent.contents[e.name],e.name=i,r.contents[i]=e,e.parent=r},unlink:function(e,r){delete e.contents[r]},rmdir:function(e,r){var i=FS.lookupNode(e,r);for(var f in i.contents)throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);delete e.contents[r]},readdir:function(e){var r=[".",".."];for(var i in e.contents)e.contents.hasOwnProperty(i)&&r.push(i);return r},symlink:function(e,r,i){var f=MEMFS.createNode(e,r,41471,0);return f.link=i,f},readlink:function(e){if(!FS.isLink(e.mode))throw new FS.ErrnoError(ERRNO_CODES.EINVAL);return e.link}},stream_ops:{read:function(e,r,i,f,a){var t=e.node.contents;if(a>=t.length)return 0;var n=Math.min(t.length-a,f);if(assert(n>=0),n>8&&t.subarray)r.set(t.subarray(a,a+n),i);else for(var o=0;n>o;o++)r[i+o]=t[a+o];return n},write:function(e,r,i,f,a,t){var n=e.node;n.timestamp=Date.now();var o=n.contents;if(f&&0===o.length&&0===a&&r.subarray)return t&&0===i?(n.contents=r,n.contentMode=r.buffer===HEAP8.buffer?MEMFS.CONTENT_OWNING:MEMFS.CONTENT_FIXED):(n.contents=new Uint8Array(r.subarray(i,i+f)),n.contentMode=MEMFS.CONTENT_FIXED),f;MEMFS.ensureFlexible(n);for(var o=n.contents;o.length<a;)o.push(0);for(var u=0;f>u;u++)o[a+u]=r[i+u];return f},llseek:function(e,r,i){var f=r;if(1===i?f+=e.position:2===i&&FS.isFile(e.node.mode)&&(f+=e.node.contents.length),0>f)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);return e.ungotten=[],e.position=f,f},allocate:function(e,r,i){MEMFS.ensureFlexible(e.node);for(var f=e.node.contents,a=r+i;a>f.length;)f.push(0)},mmap:function(e,r,i,f,a,t,n){if(!FS.isFile(e.node.mode))throw new FS.ErrnoError(ERRNO_CODES.ENODEV);var o,u,l=e.node.contents;if(2&n||l.buffer!==r&&l.buffer!==r.buffer){if((a>0||a+f<l.length)&&(l=l.subarray?l.subarray(a,a+f):Array.prototype.slice.call(l,a,a+f)),u=!0,o=_malloc(f),!o)throw new FS.ErrnoError(ERRNO_CODES.ENOMEM);r.set(l,o)}else u=!1,o=l.byteOffset;return{ptr:o,allocated:u}}}},IDBFS={dbs:{},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",mount:function(){return MEMFS.mount.apply(null,arguments)},syncfs:function(e,r,i){IDBFS.getLocalSet(e,function(f,a){return f?i(f):void IDBFS.getRemoteSet(e,function(e,f){if(e)return i(e);var t=r?f:a,n=r?a:f;IDBFS.reconcile(t,n,i)})})},reconcile:function(e,r,i){function f(e){return e?i(e):++s>=a?i(null):void 0}var a=0,t={};for(var n in e.files)if(e.files.hasOwnProperty(n)){var o=e.files[n],u=r.files[n];(!u||o.timestamp>u.timestamp)&&(t[n]=o,a++)}var l={};for(var n in r.files)if(r.files.hasOwnProperty(n)){var o=r.files[n],u=e.files[n];u||(l[n]=o,a++)}if(!a)return i(null);var s=0,b="remote"===e.type?e.db:r.db,k=b.transaction([IDBFS.DB_STORE_NAME],"readwrite");k.onerror=function(){i(this.error)};var c=k.objectStore(IDBFS.DB_STORE_NAME);for(var d in t)if(t.hasOwnProperty(d)){var h=t[d];if("local"===r.type)try{if(FS.isDir(h.mode))FS.mkdir(d,h.mode);else if(FS.isFile(h.mode)){var _=FS.open(d,"w+",438);FS.write(_,h.contents,0,h.contents.length,0,!0),FS.close(_)}f(null)}catch(o){return f(o)}else{var w=c.put(h,d);w.onsuccess=function(){f(null)},w.onerror=function(){f(this.error)}}}for(var d in l)if(l.hasOwnProperty(d)){var h=l[d];if("local"===r.type)try{FS.isDir(h.mode)?FS.rmdir(d):FS.isFile(h.mode)&&FS.unlink(d),f(null)}catch(o){return f(o)}else{var w=c.delete(d);w.onsuccess=function(){f(null)},w.onerror=function(){f(this.error)}}}},getLocalSet:function(e,r){function i(e){return"."!==e&&".."!==e}function f(e){return function(r){return PATH.join2(e,r)}}for(var a={},t=FS.readdir(e.mountpoint).filter(i).map(f(e.mountpoint));t.length;){var n,o,u=t.pop();try{var l=FS.lookupPath(u);o=l.node,n=FS.stat(u)}catch(s){return r(s)}if(FS.isDir(n.mode))t.push.apply(t,FS.readdir(u).filter(i).map(f(u))),a[u]={mode:n.mode,timestamp:n.mtime};else{if(!FS.isFile(n.mode))return r(new Error("node type not supported"));a[u]={contents:o.contents,mode:n.mode,timestamp:n.mtime}}}return r(null,{type:"local",files:a})},getDB:function(e,r){var i=IDBFS.dbs[e];if(i)return r(null,i);var f;try{f=IDBFS.indexedDB().open(e,IDBFS.DB_VERSION)}catch(a){return onerror(a)}f.onupgradeneeded=function(){i=f.result,i.createObjectStore(IDBFS.DB_STORE_NAME)},f.onsuccess=function(){i=f.result,IDBFS.dbs[e]=i,r(null,i)},f.onerror=function(){r(this.error)}},getRemoteSet:function(e,r){var i={};IDBFS.getDB(e.mountpoint,function(e,f){if(e)return r(e);var a=f.transaction([IDBFS.DB_STORE_NAME],"readonly");a.onerror=function(){r(this.error)};var t=a.objectStore(IDBFS.DB_STORE_NAME);t.openCursor().onsuccess=function(e){var a=e.target.result;return a?(i[a.key]=a.value,void a.continue()):r(null,{type:"remote",db:f,files:i})}})}},NODEFS={isWindows:!1,staticInit:function(){NODEFS.isWindows=!!process.platform.match(/^win/)},mount:function(e){return assert(ENVIRONMENT_IS_NODE),NODEFS.createNode(null,"/",NODEFS.getMode(e.opts.root),0)},createNode:function(e,r,i){if(!FS.isDir(i)&&!FS.isFile(i)&&!FS.isLink(i))throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var f=FS.createNode(e,r,i);return f.node_ops=NODEFS.node_ops,f.stream_ops=NODEFS.stream_ops,f},getMode:function(e){var r;try{r=fs.lstatSync(e),NODEFS.isWindows&&(r.mode=r.mode|(146&r.mode)>>1)}catch(i){if(!i.code)throw i;throw new FS.ErrnoError(ERRNO_CODES[i.code])}return r.mode},realPath:function(e){for(var r=[];e.parent!==e;)r.push(e.name),e=e.parent;return r.push(e.mount.opts.root),r.reverse(),PATH.join.apply(null,r)},flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:function(e){return e in NODEFS.flagsToPermissionStringMap?NODEFS.flagsToPermissionStringMap[e]:e},node_ops:{getattr:function(e){var r,i=NODEFS.realPath(e);try{r=fs.lstatSync(i)}catch(f){if(!f.code)throw f;throw new FS.ErrnoError(ERRNO_CODES[f.code])}return NODEFS.isWindows&&!r.blksize&&(r.blksize=4096),NODEFS.isWindows&&!r.blocks&&(r.blocks=(r.size+r.blksize-1)/r.blksize|0),{dev:r.dev,ino:r.ino,mode:r.mode,nlink:r.nlink,uid:r.uid,gid:r.gid,rdev:r.rdev,size:r.size,atime:r.atime,mtime:r.mtime,ctime:r.ctime,blksize:r.blksize,blocks:r.blocks}},setattr:function(e,r){var i=NODEFS.realPath(e);try{if(void 0!==r.mode&&(fs.chmodSync(i,r.mode),e.mode=r.mode),void 0!==r.timestamp){var f=new Date(r.timestamp);fs.utimesSync(i,f,f)}void 0!==r.size&&fs.truncateSync(i,r.size)}catch(a){if(!a.code)throw a;throw new FS.ErrnoError(ERRNO_CODES[a.code])}},lookup:function(e,r){var i=PATH.join2(NODEFS.realPath(e),r),f=NODEFS.getMode(i);return NODEFS.createNode(e,r,f)},mknod:function(e,r,i,f){var a=NODEFS.createNode(e,r,i,f),t=NODEFS.realPath(a);try{FS.isDir(a.mode)?fs.mkdirSync(t,a.mode):fs.writeFileSync(t,"",{mode:a.mode})}catch(n){if(!n.code)throw n;throw new FS.ErrnoError(ERRNO_CODES[n.code])}return a},rename:function(e,r,i){var f=NODEFS.realPath(e),a=PATH.join2(NODEFS.realPath(r),i);try{fs.renameSync(f,a)}catch(t){if(!t.code)throw t;throw new FS.ErrnoError(ERRNO_CODES[t.code])}},unlink:function(e,r){var i=PATH.join2(NODEFS.realPath(e),r);try{fs.unlinkSync(i)}catch(f){if(!f.code)throw f;throw new FS.ErrnoError(ERRNO_CODES[f.code])}},rmdir:function(e,r){var i=PATH.join2(NODEFS.realPath(e),r);try{fs.rmdirSync(i)}catch(f){if(!f.code)throw f;throw new FS.ErrnoError(ERRNO_CODES[f.code])}},readdir:function(e){var r=NODEFS.realPath(e);try{return fs.readdirSync(r)}catch(i){if(!i.code)throw i;throw new FS.ErrnoError(ERRNO_CODES[i.code])}},symlink:function(e,r,i){var f=PATH.join2(NODEFS.realPath(e),r);try{fs.symlinkSync(i,f)}catch(a){if(!a.code)throw a;throw new FS.ErrnoError(ERRNO_CODES[a.code])}},readlink:function(e){var r=NODEFS.realPath(e);try{return fs.readlinkSync(r)}catch(i){if(!i.code)throw i;throw new FS.ErrnoError(ERRNO_CODES[i.code])}}},stream_ops:{open:function(e){var r=NODEFS.realPath(e.node);try{FS.isFile(e.node.mode)&&(e.nfd=fs.openSync(r,NODEFS.flagsToPermissionString(e.flags)))}catch(i){if(!i.code)throw i;throw new FS.ErrnoError(ERRNO_CODES[i.code])}},close:function(e){try{FS.isFile(e.node.mode)&&e.nfd&&fs.closeSync(e.nfd)}catch(r){if(!r.code)throw r;throw new FS.ErrnoError(ERRNO_CODES[r.code])}},read:function(e,r,i,f,a){var t,n=new Buffer(f);try{t=fs.readSync(e.nfd,n,0,f,a)}catch(o){throw new FS.ErrnoError(ERRNO_CODES[o.code])}if(t>0)for(var u=0;t>u;u++)r[i+u]=n[u];return t},write:function(e,r,i,f,a){var t,n=new Buffer(r.subarray(i,i+f));try{t=fs.writeSync(e.nfd,n,0,f,a)}catch(o){throw new FS.ErrnoError(ERRNO_CODES[o.code])}return t},llseek:function(e,r,i){var f=r;if(1===i)f+=e.position;else if(2===i&&FS.isFile(e.node.mode))try{var a=fs.fstatSync(e.nfd);f+=a.size}catch(t){throw new FS.ErrnoError(ERRNO_CODES[t.code])}if(0>f)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);return e.position=f,f}}},_stdin=allocate(1,"i32*",ALLOC_STATIC),_stdout=allocate(1,"i32*",ALLOC_STATIC),_stderr=allocate(1,"i32*",ALLOC_STATIC),FS={root:null,mounts:[],devices:[null],streams:[null],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},handleFSError:function(e){if(!(e instanceof FS.ErrnoError))throw e+" : "+stackTrace();return ___setErrNo(e.errno)},lookupPath:function(e,r){if(e=PATH.resolve(FS.cwd(),e),r=r||{recurse_count:0},r.recurse_count>8)throw new FS.ErrnoError(ERRNO_CODES.ELOOP);for(var i=PATH.normalizeArray(e.split("/").filter(function(e){return!!e}),!1),f=FS.root,a="/",t=0;t<i.length;t++){var n=t===i.length-1;if(n&&r.parent)break;if(f=FS.lookupNode(f,i[t]),a=PATH.join2(a,i[t]),FS.isMountpoint(f)&&(f=f.mount.root),!n||r.follow)for(var o=0;FS.isLink(f.mode);){var u=FS.readlink(a);a=PATH.resolve(PATH.dirname(a),u);var l=FS.lookupPath(a,{recurse_count:r.recurse_count});if(f=l.node,o++>40)throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}}return{path:a,node:f}},getPath:function(e){for(var r;;){if(FS.isRoot(e)){var i=e.mount.mountpoint;return r?"/"!==i[i.length-1]?i+"/"+r:i+r:i}r=r?e.name+"/"+r:e.name,e=e.parent}},hashName:function(e,r){for(var i=0,f=0;f<r.length;f++)i=(i<<5)-i+r.charCodeAt(f)|0;return(e+i>>>0)%FS.nameTable.length},hashAddNode:function(e){var r=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[r],FS.nameTable[r]=e},hashRemoveNode:function(e){var r=FS.hashName(e.parent.id,e.name);if(FS.nameTable[r]===e)FS.nameTable[r]=e.name_next;else for(var i=FS.nameTable[r];i;){if(i.name_next===e){i.name_next=e.name_next;break}i=i.name_next}},lookupNode:function(e,r){var i=FS.mayLookup(e);if(i)throw new FS.ErrnoError(i);for(var f=FS.hashName(e.id,r),a=FS.nameTable[f];a;a=a.name_next){var t=a.name;if(a.parent.id===e.id&&t===r)return a}return FS.lookup(e,r)},createNode:function(e,r,i,f){if(!FS.FSNode){FS.FSNode=function(e,r,i,f){this.id=FS.nextInode++,this.name=r,this.mode=i,this.node_ops={},this.stream_ops={},this.rdev=f,this.parent=null,this.mount=null,e||(e=this),this.parent=e,this.mount=e.mount,FS.hashAddNode(this)};var a=365,t=146;FS.FSNode.prototype={},Object.defineProperties(FS.FSNode.prototype,{read:{get:function(){return(this.mode&a)===a},set:function(e){e?this.mode|=a:this.mode&=~a}},write:{get:function(){return(this.mode&t)===t},set:function(e){e?this.mode|=t:this.mode&=~t}},isFolder:{get:function(){return FS.isDir(this.mode)}},isDevice:{get:function(){return FS.isChrdev(this.mode)}}})}return new FS.FSNode(e,r,i,f)},destroyNode:function(e){FS.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return e.mounted},isFile:function(e){return 32768===(61440&e)},isDir:function(e){return 16384===(61440&e)},isLink:function(e){return 40960===(61440&e)},isChrdev:function(e){return 8192===(61440&e)},isBlkdev:function(e){return 24576===(61440&e)},isFIFO:function(e){return 4096===(61440&e)},isSocket:function(e){return 49152===(49152&e)},flagModes:{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},modeStringToFlags:function(e){var r=FS.flagModes[e];if("undefined"==typeof r)throw new Error("Unknown file open mode: "+e);return r},flagsToPermissionString:function(e){var r=2097155&e,i=["r","w","rw"][r];return 512&e&&(i+="w"),i},nodePermissions:function(e,r){return FS.ignorePermissions?0:(-1===r.indexOf("r")||292&e.mode)&&(-1===r.indexOf("w")||146&e.mode)&&(-1===r.indexOf("x")||73&e.mode)?0:ERRNO_CODES.EACCES},mayLookup:function(e){return FS.nodePermissions(e,"x")},mayCreate:function(e,r){try{{FS.lookupNode(e,r)}return ERRNO_CODES.EEXIST}catch(i){}return FS.nodePermissions(e,"wx")},mayDelete:function(e,r,i){var f;try{f=FS.lookupNode(e,r)}catch(a){return a.errno}var t=FS.nodePermissions(e,"wx");if(t)return t;if(i){if(!FS.isDir(f.mode))return ERRNO_CODES.ENOTDIR;if(FS.isRoot(f)||FS.getPath(f)===FS.cwd())return ERRNO_CODES.EBUSY}else if(FS.isDir(f.mode))return ERRNO_CODES.EISDIR;return 0},mayOpen:function(e,r){return e?FS.isLink(e.mode)?ERRNO_CODES.ELOOP:FS.isDir(e.mode)&&(0!==(2097155&r)||512&r)?ERRNO_CODES.EISDIR:FS.nodePermissions(e,FS.flagsToPermissionString(r)):ERRNO_CODES.ENOENT},MAX_OPEN_FDS:4096,nextfd:function(e,r){e=e||1,r=r||FS.MAX_OPEN_FDS;for(var i=e;r>=i;i++)if(!FS.streams[i])return i;throw new FS.ErrnoError(ERRNO_CODES.EMFILE)},getStream:function(e){return FS.streams[e]},createStream:function(e,r,i){if(FS.FSStream||(FS.FSStream=function(){},FS.FSStream.prototype={},Object.defineProperties(FS.FSStream.prototype,{object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!==(2097155&this.flags)}},isWrite:{get:function(){return 0!==(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}})),e.__proto__)e.__proto__=FS.FSStream.prototype;else{var f=new FS.FSStream;for(var a in e)f[a]=e[a];e=f}var t=FS.nextfd(r,i);return e.fd=t,FS.streams[t]=e,e},closeStream:function(e){FS.streams[e]=null},chrdev_stream_ops:{open:function(e){var r=FS.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,r){return e<<8|r},registerDevice:function(e,r){FS.devices[e]={stream_ops:r}},getDevice:function(e){return FS.devices[e]},syncfs:function(e,r){function i(e){return e?r(e):void(++f>=a&&r(null))}"function"==typeof e&&(r=e,e=!1);for(var f=0,a=FS.mounts.length,t=0;t<FS.mounts.length;t++){var n=FS.mounts[t];n.type.syncfs?n.type.syncfs(n,e,i):i(null)}},mount:function(e,r,i){var f;i&&(f=FS.lookupPath(i,{follow:!1}),i=f.path);var a={type:e,opts:r,mountpoint:i,root:null},t=e.mount(a);return t.mount=a,a.root=t,f&&(f.node.mount=a,f.node.mounted=!0,"/"===i&&(FS.root=a.root)),FS.mounts.push(a),t},lookup:function(e,r){return e.node_ops.lookup(e,r)},mknod:function(e,r,i){var f=FS.lookupPath(e,{parent:!0}),a=f.node,t=PATH.basename(e),n=FS.mayCreate(a,t);if(n)throw new FS.ErrnoError(n);if(!a.node_ops.mknod)throw new FS.ErrnoError(ERRNO_CODES.EPERM);return a.node_ops.mknod(a,t,r,i)},create:function(e,r){return r=void 0!==r?r:438,r&=4095,r|=32768,FS.mknod(e,r,0)},mkdir:function(e,r){return r=void 0!==r?r:511,r&=1023,r|=16384,FS.mknod(e,r,0)},mkdev:function(e,r,i){return"undefined"==typeof i&&(i=r,r=438),r|=8192,FS.mknod(e,r,i)},symlink:function(e,r){var i=FS.lookupPath(r,{parent:!0}),f=i.node,a=PATH.basename(r),t=FS.mayCreate(f,a);if(t)throw new FS.ErrnoError(t);if(!f.node_ops.symlink)throw new FS.ErrnoError(ERRNO_CODES.EPERM);return f.node_ops.symlink(f,a,e)},rename:function(e,r){var i,f,a,t=PATH.dirname(e),n=PATH.dirname(r),o=PATH.basename(e),u=PATH.basename(r);try{i=FS.lookupPath(e,{parent:!0}),f=i.node,i=FS.lookupPath(r,{parent:!0}),a=i.node}catch(l){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(f.mount!==a.mount)throw new FS.ErrnoError(ERRNO_CODES.EXDEV);var s=FS.lookupNode(f,o),b=PATH.relative(e,n);if("."!==b.charAt(0))throw new FS.ErrnoError(ERRNO_CODES.EINVAL);if(b=PATH.relative(r,t),"."!==b.charAt(0))throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);var k;try{k=FS.lookupNode(a,u)}catch(l){}if(s!==k){var c=FS.isDir(s.mode),d=FS.mayDelete(f,o,c);if(d)throw new FS.ErrnoError(d);if(d=k?FS.mayDelete(a,u,c):FS.mayCreate(a,u))throw new FS.ErrnoError(d);if(!f.node_ops.rename)throw new FS.ErrnoError(ERRNO_CODES.EPERM);if(FS.isMountpoint(s)||k&&FS.isMountpoint(k))throw new FS.ErrnoError(ERRNO_CODES.EBUSY);if(a!==f&&(d=FS.nodePermissions(f,"w")))throw new FS.ErrnoError(d);FS.hashRemoveNode(s);try{f.node_ops.rename(s,a,u)}catch(l){throw l}finally{FS.hashAddNode(s)}}},rmdir:function(e){var r=FS.lookupPath(e,{parent:!0}),i=r.node,f=PATH.basename(e),a=FS.lookupNode(i,f),t=FS.mayDelete(i,f,!0);if(t)throw new FS.ErrnoError(t);if(!i.node_ops.rmdir)throw new FS.ErrnoError(ERRNO_CODES.EPERM);if(FS.isMountpoint(a))throw new FS.ErrnoError(ERRNO_CODES.EBUSY);i.node_ops.rmdir(i,f),FS.destroyNode(a)},readdir:function(e){var r=FS.lookupPath(e,{follow:!0}),i=r.node;if(!i.node_ops.readdir)throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);return i.node_ops.readdir(i)},unlink:function(e){var r=FS.lookupPath(e,{parent:!0}),i=r.node,f=PATH.basename(e),a=FS.lookupNode(i,f),t=FS.mayDelete(i,f,!1);if(t)throw t===ERRNO_CODES.EISDIR&&(t=ERRNO_CODES.EPERM),new FS.ErrnoError(t);if(!i.node_ops.unlink)throw new FS.ErrnoError(ERRNO_CODES.EPERM);if(FS.isMountpoint(a))throw new FS.ErrnoError(ERRNO_CODES.EBUSY);i.node_ops.unlink(i,f),FS.destroyNode(a)},readlink:function(e){var r=FS.lookupPath(e,{follow:!1}),i=r.node;if(!i.node_ops.readlink)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);return i.node_ops.readlink(i)},stat:function(e,r){var i=FS.lookupPath(e,{follow:!r}),f=i.node;if(!f.node_ops.getattr)throw new FS.ErrnoError(ERRNO_CODES.EPERM);return f.node_ops.getattr(f)},lstat:function(e){return FS.stat(e,!0)},chmod:function(e,r,i){var f;if("string"==typeof e){var a=FS.lookupPath(e,{follow:!i});f=a.node}else f=e;if(!f.node_ops.setattr)throw new FS.ErrnoError(ERRNO_CODES.EPERM);f.node_ops.setattr(f,{mode:4095&r|-4096&f.mode,timestamp:Date.now()})},lchmod:function(e,r){FS.chmod(e,r,!0)},fchmod:function(e,r){var i=FS.getStream(e);if(!i)throw new FS.ErrnoError(ERRNO_CODES.EBADF);FS.chmod(i.node,r)},chown:function(e,r,i,f){var a;if("string"==typeof e){var t=FS.lookupPath(e,{follow:!f});a=t.node}else a=e;if(!a.node_ops.setattr)throw new FS.ErrnoError(ERRNO_CODES.EPERM);a.node_ops.setattr(a,{timestamp:Date.now()})},lchown:function(e,r,i){FS.chown(e,r,i,!0)},fchown:function(e,r,i){var f=FS.getStream(e);if(!f)throw new FS.ErrnoError(ERRNO_CODES.EBADF);FS.chown(f.node,r,i)},truncate:function(e,r){if(0>r)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var i;if("string"==typeof e){var f=FS.lookupPath(e,{follow:!0});i=f.node}else i=e;if(!i.node_ops.setattr)throw new FS.ErrnoError(ERRNO_CODES.EPERM);if(FS.isDir(i.mode))throw new FS.ErrnoError(ERRNO_CODES.EISDIR);if(!FS.isFile(i.mode))throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var a=FS.nodePermissions(i,"w");if(a)throw new FS.ErrnoError(a);i.node_ops.setattr(i,{size:r,timestamp:Date.now()})},ftruncate:function(e,r){var i=FS.getStream(e);if(!i)throw new FS.ErrnoError(ERRNO_CODES.EBADF);if(0===(2097155&i.flags))throw new FS.ErrnoError(ERRNO_CODES.EINVAL);FS.truncate(i.node,r)},utime:function(e,r,i){var f=FS.lookupPath(e,{follow:!0}),a=f.node;a.node_ops.setattr(a,{timestamp:Math.max(r,i)})},open:function(e,r,i,f,a){r="string"==typeof r?FS.modeStringToFlags(r):r,i="undefined"==typeof i?438:i,i=64&r?4095&i|32768:0;var t;if("object"==typeof e)t=e;else{e=PATH.normalize(e);try{var n=FS.lookupPath(e,{follow:!(131072&r)});t=n.node}catch(o){}}if(64&r)if(t){if(128&r)throw new FS.ErrnoError(ERRNO_CODES.EEXIST)}else t=FS.mknod(e,i,0);if(!t)throw new FS.ErrnoError(ERRNO_CODES.ENOENT);FS.isChrdev(t.mode)&&(r&=-513);var u=FS.mayOpen(t,r);if(u)throw new FS.ErrnoError(u);512&r&&FS.truncate(t,0),r&=-641;var l=FS.createStream({node:t,path:FS.getPath(t),flags:r,seekable:!0,position:0,stream_ops:t.stream_ops,ungotten:[],error:!1},f,a);return l.stream_ops.open&&l.stream_ops.open(l),!Module.logReadFiles||1&r||(FS.readFiles||(FS.readFiles={}),e in FS.readFiles||(FS.readFiles[e]=1,Module.printErr("read file: "+e))),l},close:function(e){try{e.stream_ops.close&&e.stream_ops.close(e)}catch(r){throw r}finally{FS.closeStream(e.fd)}},llseek:function(e,r,i){if(!e.seekable||!e.stream_ops.llseek)throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);return e.stream_ops.llseek(e,r,i)},read:function(e,r,i,f,a){if(0>f||0>a)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);if(1===(2097155&e.flags))throw new FS.ErrnoError(ERRNO_CODES.EBADF);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(ERRNO_CODES.EISDIR);if(!e.stream_ops.read)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var t=!0;if("undefined"==typeof a)a=e.position,t=!1;else if(!e.seekable)throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);var n=e.stream_ops.read(e,r,i,f,a);return t||(e.position+=n),n},write:function(e,r,i,f,a,t){if(0>f||0>a)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);if(0===(2097155&e.flags))throw new FS.ErrnoError(ERRNO_CODES.EBADF);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(ERRNO_CODES.EISDIR);if(!e.stream_ops.write)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var n=!0;if("undefined"==typeof a)a=e.position,n=!1;else if(!e.seekable)throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
1024&e.flags&&FS.llseek(e,0,2);var o=e.stream_ops.write(e,r,i,f,a,t);return n||(e.position+=o),o},allocate:function(e,r,i){if(0>r||0>=i)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);if(0===(2097155&e.flags))throw new FS.ErrnoError(ERRNO_CODES.EBADF);if(!FS.isFile(e.node.mode)&&!FS.isDir(node.mode))throw new FS.ErrnoError(ERRNO_CODES.ENODEV);if(!e.stream_ops.allocate)throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);e.stream_ops.allocate(e,r,i)},mmap:function(e,r,i,f,a,t,n){if(1===(2097155&e.flags))throw new FS.ErrnoError(ERRNO_CODES.EACCES);if(!e.stream_ops.mmap)throw new FS.errnoError(ERRNO_CODES.ENODEV);return e.stream_ops.mmap(e,r,i,f,a,t,n)},ioctl:function(e,r,i){if(!e.stream_ops.ioctl)throw new FS.ErrnoError(ERRNO_CODES.ENOTTY);return e.stream_ops.ioctl(e,r,i)},readFile:function(e,r){r=r||{},r.flags=r.flags||"r",r.encoding=r.encoding||"binary";var i,f=FS.open(e,r.flags),a=FS.stat(e),t=a.size,n=new Uint8Array(t);if(FS.read(f,n,0,t,0),"utf8"===r.encoding){i="";for(var o=new Runtime.UTF8Processor,u=0;t>u;u++)i+=o.processCChar(n[u])}else{if("binary"!==r.encoding)throw new Error('Invalid encoding type "'+r.encoding+'"');i=n}return FS.close(f),i},writeFile:function(e,r,i){i=i||{},i.flags=i.flags||"w",i.encoding=i.encoding||"utf8";var f=FS.open(e,i.flags,i.mode);if("utf8"===i.encoding){var a=new Runtime.UTF8Processor,t=new Uint8Array(a.processJSString(r));FS.write(f,t,0,t.length,0)}else{if("binary"!==i.encoding)throw new Error('Invalid encoding type "'+i.encoding+'"');FS.write(f,r,0,r.length,0)}FS.close(f)},cwd:function(){return FS.currentPath},chdir:function(e){var r=FS.lookupPath(e,{follow:!0});if(!FS.isDir(r.node.mode))throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);var i=FS.nodePermissions(r.node,"x");if(i)throw new FS.ErrnoError(i);FS.currentPath=r.path},createDefaultDirectories:function(){FS.mkdir("/tmp")},createDefaultDevices:function(){FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:function(){return 0},write:function(){return 0}}),FS.mkdev("/dev/null",FS.makedev(1,3)),TTY.register(FS.makedev(5,0),TTY.default_tty_ops),TTY.register(FS.makedev(6,0),TTY.default_tty1_ops),FS.mkdev("/dev/tty",FS.makedev(5,0)),FS.mkdev("/dev/tty1",FS.makedev(6,0)),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")},createStandardStreams:function(){Module.stdin?FS.createDevice("/dev","stdin",Module.stdin):FS.symlink("/dev/tty","/dev/stdin"),Module.stdout?FS.createDevice("/dev","stdout",null,Module.stdout):FS.symlink("/dev/tty","/dev/stdout"),Module.stderr?FS.createDevice("/dev","stderr",null,Module.stderr):FS.symlink("/dev/tty1","/dev/stderr");var e=FS.open("/dev/stdin","r");HEAP32[_stdin>>2]=e.fd,assert(1===e.fd,"invalid handle for stdin ("+e.fd+")");var r=FS.open("/dev/stdout","w");HEAP32[_stdout>>2]=r.fd,assert(2===r.fd,"invalid handle for stdout ("+r.fd+")");var i=FS.open("/dev/stderr","w");HEAP32[_stderr>>2]=i.fd,assert(3===i.fd,"invalid handle for stderr ("+i.fd+")")},ensureErrnoError:function(){FS.ErrnoError||(FS.ErrnoError=function(e){this.errno=e;for(var r in ERRNO_CODES)if(ERRNO_CODES[r]===e){this.code=r;break}this.message=ERRNO_MESSAGES[e],this.stack=stackTrace()},FS.ErrnoError.prototype=new Error,FS.ErrnoError.prototype.constructor=FS.ErrnoError,[ERRNO_CODES.ENOENT].forEach(function(e){FS.genericErrors[e]=new FS.ErrnoError(e),FS.genericErrors[e].stack="<generic error, no stack>"}))},staticInit:function(){FS.ensureErrnoError(),FS.nameTable=new Array(4096),FS.root=FS.createNode(null,"/",16895,0),FS.mount(MEMFS,{},"/"),FS.createDefaultDirectories(),FS.createDefaultDevices()},init:function(e,r,i){assert(!FS.init.initialized,"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)"),FS.init.initialized=!0,FS.ensureErrnoError(),Module.stdin=e||Module.stdin,Module.stdout=r||Module.stdout,Module.stderr=i||Module.stderr,FS.createStandardStreams()},quit:function(){FS.init.initialized=!1;for(var e=0;e<FS.streams.length;e++){var r=FS.streams[e];r&&FS.close(r)}},getMode:function(e,r){var i=0;return e&&(i|=365),r&&(i|=146),i},joinPath:function(e,r){var i=PATH.join.apply(null,e);return r&&"/"==i[0]&&(i=i.substr(1)),i},absolutePath:function(e,r){return PATH.resolve(r,e)},standardizePath:function(e){return PATH.normalize(e)},findObject:function(e,r){var i=FS.analyzePath(e,r);return i.exists?i.object:(___setErrNo(i.error),null)},analyzePath:function(e,r){try{var i=FS.lookupPath(e,{follow:!r});e=i.path}catch(f){}var a={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var i=FS.lookupPath(e,{parent:!0});a.parentExists=!0,a.parentPath=i.path,a.parentObject=i.node,a.name=PATH.basename(e),i=FS.lookupPath(e,{follow:!r}),a.exists=!0,a.path=i.path,a.object=i.node,a.name=i.node.name,a.isRoot="/"===i.path}catch(f){a.error=f.errno}return a},createFolder:function(e,r,i,f){var a=PATH.join2("string"==typeof e?e:FS.getPath(e),r),t=FS.getMode(i,f);return FS.mkdir(a,t)},createPath:function(e,r){e="string"==typeof e?e:FS.getPath(e);for(var i=r.split("/").reverse();i.length;){var f=i.pop();if(f){var a=PATH.join2(e,f);try{FS.mkdir(a)}catch(t){}e=a}}return a},createFile:function(e,r,i,f,a){var t=PATH.join2("string"==typeof e?e:FS.getPath(e),r),n=FS.getMode(f,a);return FS.create(t,n)},createDataFile:function(e,r,i,f,a,t){var n=r?PATH.join2("string"==typeof e?e:FS.getPath(e),r):e,o=FS.getMode(f,a),u=FS.create(n,o);if(i){if("string"==typeof i){for(var l=new Array(i.length),s=0,b=i.length;b>s;++s)l[s]=i.charCodeAt(s);i=l}FS.chmod(u,146|o);var k=FS.open(u,"w");FS.write(k,i,0,i.length,0,t),FS.close(k),FS.chmod(u,o)}return u},createDevice:function(e,r,i,f){var a=PATH.join2("string"==typeof e?e:FS.getPath(e),r),t=FS.getMode(!!i,!!f);FS.createDevice.major||(FS.createDevice.major=64);var n=FS.makedev(FS.createDevice.major++,0);return FS.registerDevice(n,{open:function(e){e.seekable=!1},close:function(){f&&f.buffer&&f.buffer.length&&f(10)},read:function(e,r,f,a){for(var t=0,n=0;a>n;n++){var o;try{o=i()}catch(u){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(void 0===o&&0===t)throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);if(null===o||void 0===o)break;t++,r[f+n]=o}return t&&(e.node.timestamp=Date.now()),t},write:function(e,r,i,a){for(var t=0;a>t;t++)try{f(r[i+t])}catch(n){throw new FS.ErrnoError(ERRNO_CODES.EIO)}return a&&(e.node.timestamp=Date.now()),t}}),FS.mkdev(a,t,n)},createLink:function(e,r,i){var f=PATH.join2("string"==typeof e?e:FS.getPath(e),r);return FS.symlink(i,f)},forceLoadFile:function(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;var r=!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!Module.read)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=intArrayFromString(Module.read(e.url),!0)}catch(i){r=!1}return r||___setErrNo(ERRNO_CODES.EIO),r},createLazyFile:function(e,r,i,f,a){function t(){this.lengthKnown=!1,this.chunks=[]}if("undefined"!=typeof XMLHttpRequest){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";t.prototype.get=function(e){if(e>this.length-1||0>e)return void 0;var r=e%this.chunkSize,i=Math.floor(e/this.chunkSize);return this.getter(i)[r]},t.prototype.setDataGetter=function(e){this.getter=e},t.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",i,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+i+". Status: "+e.status);var r,f=Number(e.getResponseHeader("Content-length")),a=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,t=1048576;a||(t=f);var n=function(e,r){if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>f-1)throw new Error("only "+f+" bytes available! programmer error!");var a=new XMLHttpRequest;if(a.open("GET",i,!1),f!==t&&a.setRequestHeader("Range","bytes="+e+"-"+r),"undefined"!=typeof Uint8Array&&(a.responseType="arraybuffer"),a.overrideMimeType&&a.overrideMimeType("text/plain; charset=x-user-defined"),a.send(null),!(a.status>=200&&a.status<300||304===a.status))throw new Error("Couldn't load "+i+". Status: "+a.status);return void 0!==a.response?new Uint8Array(a.response||[]):intArrayFromString(a.responseText||"",!0)},o=this;o.setDataGetter(function(e){var r=e*t,i=(e+1)*t-1;if(i=Math.min(i,f-1),"undefined"==typeof o.chunks[e]&&(o.chunks[e]=n(r,i)),"undefined"==typeof o.chunks[e])throw new Error("doXHR failed!");return o.chunks[e]}),this._length=f,this._chunkSize=t,this.lengthKnown=!0};var n=new t;Object.defineProperty(n,"length",{get:function(){return this.lengthKnown||this.cacheLength(),this._length}}),Object.defineProperty(n,"chunkSize",{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}});var o={isDevice:!1,contents:n}}else var o={isDevice:!1,url:i};var u=FS.createFile(e,r,o,f,a);o.contents?u.contents=o.contents:o.url&&(u.contents=null,u.url=o.url);var l={},s=Object.keys(u.stream_ops);return s.forEach(function(e){var r=u.stream_ops[e];l[e]=function(){if(!FS.forceLoadFile(u))throw new FS.ErrnoError(ERRNO_CODES.EIO);return r.apply(null,arguments)}}),l.read=function(e,r,i,f,a){if(!FS.forceLoadFile(u))throw new FS.ErrnoError(ERRNO_CODES.EIO);var t=e.node.contents;if(a>=t.length)return 0;var n=Math.min(t.length-a,f);if(assert(n>=0),t.slice)for(var o=0;n>o;o++)r[i+o]=t[a+o];else for(var o=0;n>o;o++)r[i+o]=t.get(a+o);return n},u.stream_ops=l,u},createPreloadedFile:function(e,r,i,f,a,t,n,o,u){function l(i){function l(i){o||FS.createDataFile(e,r,i,f,a,u),t&&t(),removeRunDependency("cp "+s)}var b=!1;Module.preloadPlugins.forEach(function(e){b||e.canHandle(s)&&(e.handle(i,s,l,function(){n&&n(),removeRunDependency("cp "+s)}),b=!0)}),b||l(i)}Browser.init();var s=r?PATH.resolve(PATH.join2(e,r)):e;addRunDependency("cp "+s),"string"==typeof i?Browser.asyncLoad(i,function(e){l(e)},n):l(i)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function(e,r,i){r=r||function(){},i=i||function(){};var f=FS.indexedDB();try{var a=f.open(FS.DB_NAME(),FS.DB_VERSION)}catch(t){return i(t)}a.onupgradeneeded=function(){console.log("creating db");var e=a.result;e.createObjectStore(FS.DB_STORE_NAME)},a.onsuccess=function(){function f(){0==l?r():i()}var t=a.result,n=t.transaction([FS.DB_STORE_NAME],"readwrite"),o=n.objectStore(FS.DB_STORE_NAME),u=0,l=0,s=e.length;e.forEach(function(e){var r=o.put(FS.analyzePath(e).object.contents,e);r.onsuccess=function(){u++,u+l==s&&f()},r.onerror=function(){l++,u+l==s&&f()}}),n.onerror=i},a.onerror=i},loadFilesFromDB:function(e,r,i){r=r||function(){},i=i||function(){};var f=FS.indexedDB();try{var a=f.open(FS.DB_NAME(),FS.DB_VERSION)}catch(t){return i(t)}a.onupgradeneeded=i,a.onsuccess=function(){function f(){0==s?r():i()}var t=a.result;try{var n=t.transaction([FS.DB_STORE_NAME],"readonly")}catch(o){return void i(o)}var u=n.objectStore(FS.DB_STORE_NAME),l=0,s=0,b=e.length;e.forEach(function(e){var r=u.get(e);r.onsuccess=function(){FS.analyzePath(e).exists&&FS.unlink(e),FS.createDataFile(PATH.dirname(e),PATH.basename(e),r.result,!0,!0,!0),l++,l+s==b&&f()},r.onerror=function(){s++,l+s==b&&f()}}),n.onerror=i},a.onerror=i}};Module._strlen=_strlen,Module._memcpy=_memcpy;var _llvm_memcpy_p0i8_p0i8_i32=_memcpy;Module._memset=_memset;var _llvm_memset_p0i8_i32=_memset,_llvm_memset_p0i8_i64=_memset,_mkport=void 0,SOCKFS={mount:function(){return FS.createNode(null,"/",16895,0)},createSocket:function(e,r,i){var f=1==r;i&&assert(f==(6==i));var a={family:e,type:r,protocol:i,server:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops},t=SOCKFS.nextname(),n=FS.createNode(SOCKFS.root,t,49152,0);n.sock=a;var o=FS.createStream({path:t,node:n,flags:FS.modeStringToFlags("r+"),seekable:!1,stream_ops:SOCKFS.stream_ops});return a.stream=o,a},getSocket:function(e){var r=FS.getStream(e);return r&&FS.isSocket(r.node.mode)?r.node.sock:null},stream_ops:{poll:function(e){var r=e.node.sock;return r.sock_ops.poll(r)},ioctl:function(e,r,i){var f=e.node.sock;return f.sock_ops.ioctl(f,r,i)},read:function(e,r,i,f){var a=e.node.sock,t=a.sock_ops.recvmsg(a,f);return t?(r.set(t.buffer,i),t.buffer.length):0},write:function(e,r,i,f){var a=e.node.sock;return a.sock_ops.sendmsg(a,r,i,f)},close:function(e){var r=e.node.sock;r.sock_ops.close(r)}},nextname:function(){return SOCKFS.nextname.current||(SOCKFS.nextname.current=0),"socket["+SOCKFS.nextname.current++ +"]"},websocket_sock_ops:{createPeer:function(e,r,i){var f;if("object"==typeof r&&(f=r,r=null,i=null),f)if(f._socket)r=f._socket.remoteAddress,i=f._socket.remotePort;else{var a=/ws[s]?:\/\/([^:]+):(\d+)/.exec(f.url);if(!a)throw new Error("WebSocket URL must be in the format ws(s)://address:port");r=a[1],i=parseInt(a[2],10)}else try{var t="ws://"+r+":"+i,n=ENVIRONMENT_IS_NODE?{headers:{"websocket-protocol":["binary"]}}:["binary"],o=ENVIRONMENT_IS_NODE?require("ws"):window.WebSocket;f=new o(t,n),f.binaryType="arraybuffer"}catch(u){throw new FS.ErrnoError(ERRNO_CODES.EHOSTUNREACH)}var l={addr:r,port:i,socket:f,dgram_send_queue:[]};return SOCKFS.websocket_sock_ops.addPeer(e,l),SOCKFS.websocket_sock_ops.handlePeerEvents(e,l),2===e.type&&"undefined"!=typeof e.sport&&l.dgram_send_queue.push(new Uint8Array([255,255,255,255,"p".charCodeAt(0),"o".charCodeAt(0),"r".charCodeAt(0),"t".charCodeAt(0),(65280&e.sport)>>8,255&e.sport])),l},getPeer:function(e,r,i){return e.peers[r+":"+i]},addPeer:function(e,r){e.peers[r.addr+":"+r.port]=r},removePeer:function(e,r){delete e.peers[r.addr+":"+r.port]},handlePeerEvents:function(e,r){function i(i){assert("string"!=typeof i&&void 0!==i.byteLength),i=new Uint8Array(i);var a=f;if(f=!1,a&&10===i.length&&255===i[0]&&255===i[1]&&255===i[2]&&255===i[3]&&i[4]==="p".charCodeAt(0)&&i[5]==="o".charCodeAt(0)&&i[6]==="r".charCodeAt(0)&&i[7]==="t".charCodeAt(0)){var t=i[8]<<8|i[9];return SOCKFS.websocket_sock_ops.removePeer(e,r),r.port=t,void SOCKFS.websocket_sock_ops.addPeer(e,r)}e.recv_queue.push({addr:r.addr,port:r.port,data:i})}var f=!0,a=function(){try{for(var e=r.dgram_send_queue.shift();e;)r.socket.send(e),e=r.dgram_send_queue.shift()}catch(i){r.socket.close()}};ENVIRONMENT_IS_NODE?(r.socket.on("open",a),r.socket.on("message",function(e,r){r.binary&&i(new Uint8Array(e).buffer)}),r.socket.on("error",function(){})):(r.socket.onopen=a,r.socket.onmessage=function(e){i(e.data)})},poll:function(e){if(1===e.type&&e.server)return e.pending.length?65:0;var r=0,i=1===e.type?SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport):null;return(e.recv_queue.length||!i||i&&i.socket.readyState===i.socket.CLOSING||i&&i.socket.readyState===i.socket.CLOSED)&&(r|=65),(!i||i&&i.socket.readyState===i.socket.OPEN)&&(r|=4),(i&&i.socket.readyState===i.socket.CLOSING||i&&i.socket.readyState===i.socket.CLOSED)&&(r|=16),r},ioctl:function(e,r,i){switch(r){case 21531:var f=0;return e.recv_queue.length&&(f=e.recv_queue[0].data.length),HEAP32[i>>2]=f,0;default:return ERRNO_CODES.EINVAL}},close:function(e){if(e.server){try{e.server.close()}catch(r){}e.server=null}for(var i=Object.keys(e.peers),f=0;f<i.length;f++){var a=e.peers[i[f]];try{a.socket.close()}catch(r){}SOCKFS.websocket_sock_ops.removePeer(e,a)}return 0},bind:function(e,r,i){if("undefined"!=typeof e.saddr||"undefined"!=typeof e.sport)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);if(e.saddr=r,e.sport=i||_mkport(),2===e.type){e.server&&(e.server.close(),e.server=null);try{e.sock_ops.listen(e,0)}catch(f){if(!(f instanceof FS.ErrnoError))throw f;if(f.errno!==ERRNO_CODES.EOPNOTSUPP)throw f}}},connect:function(e,r,i){if(e.server)throw new FS.ErrnoError(ERRNO_CODS.EOPNOTSUPP);if("undefined"!=typeof e.daddr&&"undefined"!=typeof e.dport){var f=SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport);if(f)throw new FS.ErrnoError(f.socket.readyState===f.socket.CONNECTING?ERRNO_CODES.EALREADY:ERRNO_CODES.EISCONN)}var a=SOCKFS.websocket_sock_ops.createPeer(e,r,i);throw e.daddr=a.addr,e.dport=a.port,new FS.ErrnoError(ERRNO_CODES.EINPROGRESS)},listen:function(e){if(!ENVIRONMENT_IS_NODE)throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);if(e.server)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var r=require("ws").Server,i=e.saddr;e.server=new r({host:i,port:e.sport}),e.server.on("connection",function(r){if(1===e.type){var i=SOCKFS.createSocket(e.family,e.type,e.protocol),f=SOCKFS.websocket_sock_ops.createPeer(i,r);i.daddr=f.addr,i.dport=f.port,e.pending.push(i)}else SOCKFS.websocket_sock_ops.createPeer(e,r)}),e.server.on("closed",function(){e.server=null}),e.server.on("error",function(){})},accept:function(e){if(!e.server)throw new FS.ErrnoError(ERRNO_CODES.EINVAL);var r=e.pending.shift();return r.stream.flags=e.stream.flags,r},getname:function(e,r){var i,f;if(r){if(void 0===e.daddr||void 0===e.dport)throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN);i=e.daddr,f=e.dport}else i=e.saddr||0,f=e.sport||0;return{addr:i,port:f}},sendmsg:function(e,r,i,f,a,t){if(2===e.type){if((void 0===a||void 0===t)&&(a=e.daddr,t=e.dport),void 0===a||void 0===t)throw new FS.ErrnoError(ERRNO_CODES.EDESTADDRREQ)}else a=e.daddr,t=e.dport;var n=SOCKFS.websocket_sock_ops.getPeer(e,a,t);if(1===e.type){if(!n||n.socket.readyState===n.socket.CLOSING||n.socket.readyState===n.socket.CLOSED)throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN);if(n.socket.readyState===n.socket.CONNECTING)throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}var o;if(o=r instanceof Array||r instanceof ArrayBuffer?r.slice(i,i+f):r.buffer.slice(r.byteOffset+i,r.byteOffset+i+f),2===e.type&&(!n||n.socket.readyState!==n.socket.OPEN))return n&&n.socket.readyState!==n.socket.CLOSING&&n.socket.readyState!==n.socket.CLOSED||(n=SOCKFS.websocket_sock_ops.createPeer(e,a,t)),n.dgram_send_queue.push(o),f;try{return n.socket.send(o),f}catch(u){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}},recvmsg:function(e,r){if(1===e.type&&e.server)throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN);var i=e.recv_queue.shift();if(!i){if(1===e.type){var f=SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport);if(f){if(f.socket.readyState===f.socket.CLOSING||f.socket.readyState===f.socket.CLOSED)return null;throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}var a=i.data.byteLength||i.data.length,t=i.data.byteOffset||0,n=i.data.buffer||i.data,o=Math.min(r,a),u={buffer:new Uint8Array(n,t,o),addr:i.addr,port:i.port};if(1===e.type&&a>o){var l=a-o;i.data=new Uint8Array(n,t+o,l),e.recv_queue.unshift(i)}return u}}},_putc=_fputc;Module._memmove=_memmove;var _llvm_memmove_p0i8_p0i8_i32=_memmove,_abs=Math_abs;Module._tolower=_tolower;var ___cxa_atexit=_atexit,_getc=_fgetc,_isxdigit_l=_isxdigit,_isdigit_l=_isdigit,__MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31],__MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31],_strftime_l=_strftime,_strtoull_l=_strtoull,_strtoll_l=_strtoll,_llvm_va_start=void 0,Browser={mainLoop:{scheduler:null,shouldPause:!1,paused:!1,queue:[],pause:function(){Browser.mainLoop.shouldPause=!0},resume:function(){Browser.mainLoop.paused&&(Browser.mainLoop.paused=!1,Browser.mainLoop.scheduler()),Browser.mainLoop.shouldPause=!1},updateStatus:function(){if(Module.setStatus){var e=Module.statusMessage||"Please wait...",r=Browser.mainLoop.remainingBlockers,i=Browser.mainLoop.expectedBlockers;Module.setStatus(r?i>r?e+" ("+(i-r)+"/"+i+")":e:"")}}},isFullScreen:!1,pointerLock:!1,moduleContextCreatedCallbacks:[],workers:[],init:function(){function e(){Browser.pointerLock=document.pointerLockElement===a||document.mozPointerLockElement===a||document.webkitPointerLockElement===a}if(Module.preloadPlugins||(Module.preloadPlugins=[]),!Browser.initted&&!ENVIRONMENT_IS_WORKER){Browser.initted=!0;try{new Blob,Browser.hasBlobConstructor=!0}catch(r){Browser.hasBlobConstructor=!1,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Browser.BlobBuilder="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:Browser.hasBlobConstructor?null:console.log("warning: no BlobBuilder"),Browser.URLObject="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0,Module.noImageDecoding||"undefined"!=typeof Browser.URLObject||(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),Module.noImageDecoding=!0);var i={};i.canHandle=function(e){return!Module.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},i.handle=function(e,r,i,f){var a=null;if(Browser.hasBlobConstructor)try{a=new Blob([e],{type:Browser.getMimetype(r)}),a.size!==e.length&&(a=new Blob([new Uint8Array(e).buffer],{type:Browser.getMimetype(r)}))}catch(t){Runtime.warnOnce("Blob constructor present but fails: "+t+"; falling back to blob builder")}if(!a){var n=new Browser.BlobBuilder;n.append(new Uint8Array(e).buffer),a=n.getBlob()}var o=Browser.URLObject.createObjectURL(a),u=new Image;u.onload=function(){assert(u.complete,"Image "+r+" could not be decoded");var f=document.createElement("canvas");f.width=u.width,f.height=u.height;var a=f.getContext("2d");a.drawImage(u,0,0),Module.preloadedImages[r]=f,Browser.URLObject.revokeObjectURL(o),i&&i(e)},u.onerror=function(){console.log("Image "+o+" could not be decoded"),f&&f()},u.src=o},Module.preloadPlugins.push(i);var f={};f.canHandle=function(e){return!Module.noAudioDecoding&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},f.handle=function(e,r,i,f){function a(f){n||(n=!0,Module.preloadedAudios[r]=f,i&&i(e))}function t(){n||(n=!0,Module.preloadedAudios[r]=new Audio,f&&f())}var n=!1;if(!Browser.hasBlobConstructor)return t();try{var o=new Blob([e],{type:Browser.getMimetype(r)})}catch(u){return t()}var l=Browser.URLObject.createObjectURL(o),s=new Audio;s.addEventListener("canplaythrough",function(){a(s)},!1),s.onerror=function(){function i(e){for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="=",f="",a=0,t=0,n=0;n<e.length;n++)for(a=a<<8|e[n],t+=8;t>=6;){var o=a>>t-6&63;t-=6,f+=r[o]}return 2==t?(f+=r[(3&a)<<4],f+=i+i):4==t&&(f+=r[(15&a)<<2],f+=i),f}n||(console.log("warning: browser could not fully decode audio "+r+", trying slower base64 approach"),s.src="data:audio/x-"+r.substr(-3)+";base64,"+i(e),a(s))},s.src=l,Browser.safeSetTimeout(function(){a(s)},1e4)},Module.preloadPlugins.push(f);var a=Module.canvas;a.requestPointerLock=a.requestPointerLock||a.mozRequestPointerLock||a.webkitRequestPointerLock,a.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||function(){},a.exitPointerLock=a.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",e,!1),document.addEventListener("mozpointerlockchange",e,!1),document.addEventListener("webkitpointerlockchange",e,!1),Module.elementPointerLock&&a.addEventListener("click",function(e){!Browser.pointerLock&&a.requestPointerLock&&(a.requestPointerLock(),e.preventDefault())},!1)}},createContext:function(e,r,i,f){function a(e){u=e.statusMessage||u}var t;try{if(r){var n={antialias:!1,alpha:!1};if(f)for(var o in f)n[o]=f[o];var u="?";e.addEventListener("webglcontextcreationerror",a,!1);try{["experimental-webgl","webgl"].some(function(r){return t=e.getContext(r,n)})}finally{e.removeEventListener("webglcontextcreationerror",a,!1)}}else t=e.getContext("2d");if(!t)throw":("}catch(l){return Module.print("Could not create canvas: "+[u,l]),null}return r&&(e.style.backgroundColor="black",e.addEventListener("webglcontextlost",function(){alert("WebGL context lost. You will need to reload the page.")},!1)),i&&(Module.ctx=t,Module.useWebGL=r,Browser.moduleContextCreatedCallbacks.forEach(function(e){e()}),Browser.init()),t},destroyContext:function(){},fullScreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullScreen:function(e,r){function i(){Browser.isFullScreen=!1,(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement)===f?(f.cancelFullScreen=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen,f.cancelFullScreen=f.cancelFullScreen.bind(document),Browser.lockPointer&&f.requestPointerLock(),Browser.isFullScreen=!0,Browser.resizeCanvas&&Browser.setFullScreenCanvasSize()):Browser.resizeCanvas&&Browser.setWindowedCanvasSize(),Module.onFullScreen&&Module.onFullScreen(Browser.isFullScreen)}Browser.lockPointer=e,Browser.resizeCanvas=r,"undefined"==typeof Browser.lockPointer&&(Browser.lockPointer=!0),"undefined"==typeof Browser.resizeCanvas&&(Browser.resizeCanvas=!1);var f=Module.canvas;Browser.fullScreenHandlersInstalled||(Browser.fullScreenHandlersInstalled=!0,document.addEventListener("fullscreenchange",i,!1),document.addEventListener("mozfullscreenchange",i,!1),document.addEventListener("webkitfullscreenchange",i,!1)),f.requestFullScreen=f.requestFullScreen||f.mozRequestFullScreen||(f.webkitRequestFullScreen?function(){f.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),f.requestFullScreen()},requestAnimationFrame:function(e){"undefined"==typeof window?setTimeout(e,1e3/60):(window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||window.setTimeout),window.requestAnimationFrame(e))},safeCallback:function(e){return function(){return ABORT?void 0:e.apply(null,arguments)}},safeRequestAnimationFrame:function(e){return Browser.requestAnimationFrame(function(){ABORT||e()})},safeSetTimeout:function(e,r){return setTimeout(function(){ABORT||e()},r)},safeSetInterval:function(e,r){return setInterval(function(){ABORT||e()},r)},getMimetype:function(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]},getUserMedia:function(e){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},getMovementX:function(e){return e.movementX||e.mozMovementX||e.webkitMovementX||0},getMovementY:function(e){return e.movementY||e.mozMovementY||e.webkitMovementY||0},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,calculateMouseEvent:function(e){if(Browser.pointerLock)"mousemove"!=e.type&&"mozMovementX"in e?Browser.mouseMovementX=Browser.mouseMovementY=0:(Browser.mouseMovementX=Browser.getMovementX(e),Browser.mouseMovementY=Browser.getMovementY(e)),"undefined"!=typeof SDL?(Browser.mouseX=SDL.mouseX+Browser.mouseMovementX,Browser.mouseY=SDL.mouseY+Browser.mouseMovementY):(Browser.mouseX+=Browser.mouseMovementX,Browser.mouseY+=Browser.mouseMovementY);else{var r,i,f=Module.canvas.getBoundingClientRect();if("touchstart"==e.type||"touchend"==e.type||"touchmove"==e.type){var a=e.touches.item(0);if(!a)return;r=a.pageX-(window.scrollX+f.left),i=a.pageY-(window.scrollY+f.top)}else r=e.pageX-(window.scrollX+f.left),i=e.pageY-(window.scrollY+f.top);var t=Module.canvas.width,n=Module.canvas.height;r*=t/f.width,i*=n/f.height,Browser.mouseMovementX=r-Browser.mouseX,Browser.mouseMovementY=i-Browser.mouseY,Browser.mouseX=r,Browser.mouseY=i}},xhrLoad:function(e,r,i){var f=new XMLHttpRequest;f.open("GET",e,!0),f.responseType="arraybuffer",f.onload=function(){200==f.status||0==f.status&&f.response?r(f.response):i()},f.onerror=i,f.send(null)},asyncLoad:function(e,r,i,f){Browser.xhrLoad(e,function(i){assert(i,'Loading data file "'+e+'" failed (no arrayBuffer).'),r(new Uint8Array(i)),f||removeRunDependency("al "+e)},function(){if(!i)throw'Loading data file "'+e+'" failed.';i()}),f||addRunDependency("al "+e)},resizeListeners:[],updateResizeListeners:function(){var e=Module.canvas;Browser.resizeListeners.forEach(function(r){r(e.width,e.height)})},setCanvasSize:function(e,r,i){var f=Module.canvas;f.width=e,f.height=r,i||Browser.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:function(){var e=Module.canvas;if(this.windowedWidth=e.width,this.windowedHeight=e.height,e.width=screen.width,e.height=screen.height,"undefined"!=typeof SDL){var r=HEAPU32[SDL.screen+0*Runtime.QUANTUM_SIZE>>2];r=8388608|r,HEAP32[SDL.screen+0*Runtime.QUANTUM_SIZE>>2]=r}Browser.updateResizeListeners()},setWindowedCanvasSize:function(){var e=Module.canvas;if(e.width=this.windowedWidth,e.height=this.windowedHeight,"undefined"!=typeof SDL){var r=HEAPU32[SDL.screen+0*Runtime.QUANTUM_SIZE>>2];r=-8388609&r,HEAP32[SDL.screen+0*Runtime.QUANTUM_SIZE>>2]=r}Browser.updateResizeListeners()}};if(_llvm_eh_exception.buf=allocate(12,"void*",ALLOC_STATIC),FS.staticInit(),__ATINIT__.unshift({func:function(){Module.noFSInit||FS.init.initialized||FS.init()}}),__ATMAIN__.push({func:function(){FS.ignorePermissions=!1}}),__ATEXIT__.push({func:function(){FS.quit()}}),Module.FS_createFolder=FS.createFolder,Module.FS_createPath=FS.createPath,Module.FS_createDataFile=FS.createDataFile,Module.FS_createPreloadedFile=FS.createPreloadedFile,Module.FS_createLazyFile=FS.createLazyFile,Module.FS_createLink=FS.createLink,Module.FS_createDevice=FS.createDevice,___errno_state=Runtime.staticAlloc(4),HEAP32[___errno_state>>2]=0,__ATINIT__.unshift({func:function(){TTY.init()}}),__ATEXIT__.push({func:function(){TTY.shutdown()}}),TTY.utf8=new Runtime.UTF8Processor,ENVIRONMENT_IS_NODE){var fs=require("fs");NODEFS.staticInit()}__ATINIT__.push({func:function(){SOCKFS.root=FS.mount(SOCKFS,{},null)}}),_fputc.ret=allocate([0],"i8",ALLOC_STATIC),_fgetc.ret=allocate([0],"i8",ALLOC_STATIC),Module.requestFullScreen=function(e,r){Browser.requestFullScreen(e,r)},Module.requestAnimationFrame=function(e){Browser.requestAnimationFrame(e)},Module.setCanvasSize=function(e,r,i){Browser.setCanvasSize(e,r,i)},Module.pauseMainLoop=function(){Browser.mainLoop.pause()},Module.resumeMainLoop=function(){Browser.mainLoop.resume()},Module.getUserMedia=function(){Browser.getUserMedia()},STACK_BASE=STACKTOP=Runtime.alignMemory(STATICTOP),staticSealed=!0,STACK_MAX=STACK_BASE+5242880,DYNAMIC_BASE=DYNAMICTOP=Runtime.alignMemory(STACK_MAX),assert(TOTAL_MEMORY>DYNAMIC_BASE);var ctlz_i8=allocate([8,7,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1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,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0;r=O_,O_=O_+144|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+104|0,l=r+112|0,s=r+128|0,b=s,k=O_,O_=O_+4|0,O_=O_+7&-8,c=O_,O_=O_+160|0,d=O_,O_=O_+4|0,O_=O_+7&-8,h=O_,O_=O_+4|0,O_=O_+7&-8,_=E_[a+4>>2]&74,w=(_|0)==0?0:(_|0)==8?16:(_|0)==64?8:10,_=o|0,g(l,a,_,u),An(b|0,0,12)|0,a=s,Oc(s,10,0),(m_[b]&1)==0?(o=a+1|0,v=o,p=o,E=s+8|0):(o=s+8|0,v=E_[o>>2]|0,p=a+1|0,E=o),E_[k>>2]=v,o=c|0,E_[d>>2]=o,E_[h>>2]=0,a=i|0,i=f|0,f=s|0,S=s+4|0,y=E_[u>>2]|0,u=v,v=E_[a>>2]|0;
e:for(;;){do if((v|0)==0)A=0;else{if(O=E_[v+12>>2]|0,R=(O|0)==(E_[v+16>>2]|0)?rv[E_[(E_[v>>2]|0)+36>>2]&127](v)|0:E_[O>>2]|0,(R|0)!=-1){A=v;break}E_[a>>2]=0,A=0}while(0);F=(A|0)==0,O=E_[i>>2]|0;do{if((O|0)!=0){if(N=E_[O+12>>2]|0,D=(N|0)==(E_[O+16>>2]|0)?rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0:E_[N>>2]|0,(D|0)==-1){E_[i>>2]=0,M=2783;break}if(N=(O|0)==0,F^N){C=O,T=N;break}P=u,L=O,I=N;break e}M=2783}while(0);if((M|0)==2783){if(M=0,F){P=u,L=0,I=1;break}C=0,T=1}if(O=S_[b]|0,N=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((N?O>>>1:E_[S>>2]|0)|0)?(N?(x=O>>>1,B=O>>>1):(O=E_[S>>2]|0,x=O,B=O),Oc(s,x<<1,0),H=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,H,0),U=(m_[b]&1)==0?p:E_[E>>2]|0,E_[k>>2]=U+B,z=U):z=u,O=A+12|0,N=E_[O>>2]|0,Y=A+16|0,V=(N|0)==(E_[Y>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[N>>2]|0,(m(V,w,z,k,h,y,l,o,d,_)|0)!=0){P=z,L=C,I=T;break}N=E_[O>>2]|0,(N|0)!=(E_[Y>>2]|0)?(E_[O>>2]=N+4,u=z,v=A):(Y=E_[(E_[A>>2]|0)+40>>2]|0,rv[Y&127](A)|0,u=z,v=A)}v=S_[l]|0,Z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((Z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;z=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=z}while(0);h=_t(P,E_[k>>2]|0,t,w)|0,E_[n>>2]=h,E_[n+4>>2]=z_,Pi(l,o,E_[d>>2]|0,t);do if(F)j=0;else{if(d=E_[A+12>>2]|0,q=(d|0)==(E_[A+16>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[d>>2]|0,(q|0)!=-1){j=A;break}E_[a>>2]=0,j=0}while(0);a=(j|0)==0;do{if(!I){if(A=E_[L+12>>2]|0,W=(A|0)==(E_[L+16>>2]|0)?rv[E_[(E_[L>>2]|0)+36>>2]&127](L)|0:E_[A>>2]|0,(W|0)==-1){E_[i>>2]=0,M=2825;break}if(!(a^(L|0)==0))break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}M=2825}while(0);do if((M|0)==2825){if(a)break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,K=e|0,E_[K>>2]=j,yc(s),yc(l),O_=r}function a(e,r,i,f,a,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,n|=0,o|=0;var u=0,l=0;r=O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);F=(A|0)==0,O=E_[i>>2]|0;do{if((O|0)!=0){if(N=E_[O+12>>2]|0,D=(N|0)==(E_[O+16>>2]|0)?rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0:E_[N>>2]|0,(D|0)==-1){E_[i>>2]=0,M=2854;break}if(N=(O|0)==0,F^N){C=O,T=N;break}P=u,L=O,I=N;break e}M=2854}while(0);if((M|0)==2854){if(M=0,F){P=u,L=0,I=1;break}C=0,T=1}if(O=S_[b]|0,N=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((N?O>>>1:E_[S>>2]|0)|0)?(N?(x=O>>>1,B=O>>>1):(O=E_[S>>2]|0,x=O,B=O),Oc(s,x<<1,0),H=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,H,0),U=(m_[b]&1)==0?p:E_[E>>2]|0,E_[k>>2]=U+B,z=U):z=u,O=A+12|0,N=E_[O>>2]|0,Y=A+16|0,V=(N|0)==(E_[Y>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[N>>2]|0,(m(V,w,z,k,h,y,l,o,d,_)|0)!=0){P=z,L=C,I=T;break}N=E_[O>>2]|0,(N|0)!=(E_[Y>>2]|0)?(E_[O>>2]=N+4,u=z,v=A):(Y=E_[(E_[A>>2]|0)+40>>2]|0,rv[Y&127](A)|0,u=z,v=A)}v=S_[l]|0,Z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((Z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;z=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=z}while(0);p_[n>>1]=ht(P,E_[k>>2]|0,t,w)|0,Pi(l,o,E_[d>>2]|0,t);do if(F)j=0;else{if(d=E_[A+12>>2]|0,q=(d|0)==(E_[A+16>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[d>>2]|0,(q|0)!=-1){j=A;break}E_[a>>2]=0,j=0}while(0);a=(j|0)==0;do{if(!I){if(A=E_[L+12>>2]|0,W=(A|0)==(E_[L+16>>2]|0)?rv[E_[(E_[L>>2]|0)+36>>2]&127](L)|0:E_[A>>2]|0,(W|0)==-1){E_[i>>2]=0,M=2896;break}if(!(a^(L|0)==0))break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}M=2896}while(0);do if((M|0)==2896){if(a)break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,K=e|0,E_[K>>2]=j,yc(s),yc(l),O_=r}function n(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var u=0,l=0;r=O_,O_=O_+16|0,u=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[u>>2],u=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[u>>2],u=r|0,l=r+8|0,E_[u>>2]=E_[i>>2],E_[l>>2]=E_[f>>2],o(e,0,u,l,a,t,n),O_=r}function o(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,p=0,E=0,S=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0;r=O_,O_=O_+144|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+104|0,l=r+112|0,s=r+128|0,b=s,k=O_,O_=O_+4|0,O_=O_+7&-8,c=O_,O_=O_+160|0,d=O_,O_=O_+4|0,O_=O_+7&-8,h=O_,O_=O_+4|0,O_=O_+7&-8,_=E_[a+4>>2]&74,w=(_|0)==0?0:(_|0)==8?16:(_|0)==64?8:10,_=o|0,g(l,a,_,u),An(b|0,0,12)|0,a=s,Oc(s,10,0),(m_[b]&1)==0?(o=a+1|0,v=o,p=o,E=s+8|0):(o=s+8|0,v=E_[o>>2]|0,p=a+1|0,E=o),E_[k>>2]=v,o=c|0,E_[d>>2]=o,E_[h>>2]=0,a=i|0,i=f|0,f=s|0,S=s+4|0,y=E_[u>>2]|0,u=v,v=E_[a>>2]|0;e:for(;;){do if((v|0)==0)A=0;else{if(O=E_[v+12>>2]|0,R=(O|0)==(E_[v+16>>2]|0)?rv[E_[(E_[v>>2]|0)+36>>2]&127](v)|0:E_[O>>2]|0,(R|0)!=-1){A=v;break}E_[a>>2]=0,A=0}while(0);F=(A|0)==0,O=E_[i>>2]|0;do{if((O|0)!=0){if(N=E_[O+12>>2]|0,D=(N|0)==(E_[O+16>>2]|0)?rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0:E_[N>>2]|0,(D|0)==-1){E_[i>>2]=0,M=2925;break}if(N=(O|0)==0,F^N){C=O,T=N;break}P=u,L=O,I=N;break e}M=2925}while(0);if((M|0)==2925){if(M=0,F){P=u,L=0,I=1;break}C=0,T=1}if(O=S_[b]|0,N=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((N?O>>>1:E_[S>>2]|0)|0)?(N?(x=O>>>1,B=O>>>1):(O=E_[S>>2]|0,x=O,B=O),Oc(s,x<<1,0),H=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,H,0),U=(m_[b]&1)==0?p:E_[E>>2]|0,E_[k>>2]=U+B,z=U):z=u,O=A+12|0,N=E_[O>>2]|0,Y=A+16|0,V=(N|0)==(E_[Y>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[N>>2]|0,(m(V,w,z,k,h,y,l,o,d,_)|0)!=0){P=z,L=C,I=T;break}N=E_[O>>2]|0,(N|0)!=(E_[Y>>2]|0)?(E_[O>>2]=N+4,u=z,v=A):(Y=E_[(E_[A>>2]|0)+40>>2]|0,rv[Y&127](A)|0,u=z,v=A)}v=S_[l]|0,Z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((Z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;z=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=z}while(0);E_[n>>2]=dt(P,E_[k>>2]|0,t,w)|0,Pi(l,o,E_[d>>2]|0,t);do if(F)j=0;else{if(d=E_[A+12>>2]|0,q=(d|0)==(E_[A+16>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[d>>2]|0,(q|0)!=-1){j=A;break}E_[a>>2]=0,j=0}while(0);a=(j|0)==0;do{if(!I){if(A=E_[L+12>>2]|0,W=(A|0)==(E_[L+16>>2]|0)?rv[E_[(E_[L>>2]|0)+36>>2]&127](L)|0:E_[A>>2]|0,(W|0)==-1){E_[i>>2]=0,M=2967;break}if(!(a^(L|0)==0))break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}M=2967}while(0);do if((M|0)==2967){if(a)break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,K=e|0,E_[K>>2]=j,yc(s),yc(l),O_=r}function u(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+8|0,E_[o>>2]=E_[i>>2],E_[u>>2]=E_[f>>2],l(e,0,o,u,a,t,n),O_=r}function l(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,p=0,E=0,S=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0;r=O_,O_=O_+144|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+104|0,l=r+112|0,s=r+128|0,b=s,k=O_,O_=O_+4|0,O_=O_+7&-8,c=O_,O_=O_+160|0,d=O_,O_=O_+4|0,O_=O_+7&-8,h=O_,O_=O_+4|0,O_=O_+7&-8,_=E_[a+4>>2]&74,w=(_|0)==0?0:(_|0)==8?16:(_|0)==64?8:10,_=o|0,g(l,a,_,u),An(b|0,0,12)|0,a=s,Oc(s,10,0),(m_[b]&1)==0?(o=a+1|0,v=o,p=o,E=s+8|0):(o=s+8|0,v=E_[o>>2]|0,p=a+1|0,E=o),E_[k>>2]=v,o=c|0,E_[d>>2]=o,E_[h>>2]=0,a=i|0,i=f|0,f=s|0,S=s+4|0,y=E_[u>>2]|0,u=v,v=E_[a>>2]|0;e:for(;;){do if((v|0)==0)A=0;else{if(O=E_[v+12>>2]|0,R=(O|0)==(E_[v+16>>2]|0)?rv[E_[(E_[v>>2]|0)+36>>2]&127](v)|0:E_[O>>2]|0,(R|0)!=-1){A=v;break}E_[a>>2]=0,A=0}while(0);F=(A|0)==0,O=E_[i>>2]|0;do{if((O|0)!=0){if(N=E_[O+12>>2]|0,D=(N|0)==(E_[O+16>>2]|0)?rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0:E_[N>>2]|0,(D|0)==-1){E_[i>>2]=0,M=2996;break}if(N=(O|0)==0,F^N){C=O,T=N;break}P=u,L=O,I=N;break e}M=2996}while(0);if((M|0)==2996){if(M=0,F){P=u,L=0,I=1;break}C=0,T=1}if(O=S_[b]|0,N=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((N?O>>>1:E_[S>>2]|0)|0)?(N?(x=O>>>1,B=O>>>1):(O=E_[S>>2]|0,x=O,B=O),Oc(s,x<<1,0),H=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,H,0),U=(m_[b]&1)==0?p:E_[E>>2]|0,E_[k>>2]=U+B,z=U):z=u,O=A+12|0,N=E_[O>>2]|0,Y=A+16|0,V=(N|0)==(E_[Y>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[N>>2]|0,(m(V,w,z,k,h,y,l,o,d,_)|0)!=0){P=z,L=C,I=T;break}N=E_[O>>2]|0,(N|0)!=(E_[Y>>2]|0)?(E_[O>>2]=N+4,u=z,v=A):(Y=E_[(E_[A>>2]|0)+40>>2]|0,rv[Y&127](A)|0,u=z,v=A)}v=S_[l]|0,Z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((Z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;z=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=z}while(0);E_[n>>2]=ct(P,E_[k>>2]|0,t,w)|0,Pi(l,o,E_[d>>2]|0,t);do if(F)j=0;else{if(d=E_[A+12>>2]|0,q=(d|0)==(E_[A+16>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[d>>2]|0,(q|0)!=-1){j=A;break}E_[a>>2]=0,j=0}while(0);a=(j|0)==0;do{if(!I){if(A=E_[L+12>>2]|0,W=(A|0)==(E_[L+16>>2]|0)?rv[E_[(E_[L>>2]|0)+36>>2]&127](L)|0:E_[A>>2]|0,(W|0)==-1){E_[i>>2]=0,M=3038;break}if(!(a^(L|0)==0))break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}M=3038}while(0);do if((M|0)==3038){if(a)break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,K=e|0,E_[K>>2]=j,yc(s),yc(l),O_=r}function s(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,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i>>2]|0;do{if((O|0)!=0){if(N=E_[O+12>>2]|0,D=(N|0)==(E_[O+16>>2]|0)?rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0:E_[N>>2]|0,(D|0)==-1){E_[i>>2]=0,M=3067;break}if(N=(O|0)==0,F^N){C=O,T=N;break}P=u,L=O,I=N;break e}M=3067}while(0);if((M|0)==3067){if(M=0,F){P=u,L=0,I=1;break}C=0,T=1}if(O=S_[b]|0,N=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((N?O>>>1:E_[S>>2]|0)|0)?(N?(x=O>>>1,B=O>>>1):(O=E_[S>>2]|0,x=O,B=O),Oc(s,x<<1,0),H=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,H,0),U=(m_[b]&1)==0?p:E_[E>>2]|0,E_[k>>2]=U+B,z=U):z=u,O=A+12|0,N=E_[O>>2]|0,Y=A+16|0,V=(N|0)==(E_[Y>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[N>>2]|0,(m(V,w,z,k,h,y,l,o,d,_)|0)!=0){P=z,L=C,I=T;break}N=E_[O>>2]|0,(N|0)!=(E_[Y>>2]|0)?(E_[O>>2]=N+4,u=z,v=A):(Y=E_[(E_[A>>2]|0)+40>>2]|0,rv[Y&127](A)|0,u=z,v=A)}v=S_[l]|0,Z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((Z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;z=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=z}while(0);h=kt(P,E_[k>>2]|0,t,w)|0,E_[n>>2]=h,E_[n+4>>2]=z_,Pi(l,o,E_[d>>2]|0,t);do if(F)j=0;else{if(d=E_[A+12>>2]|0,q=(d|0)==(E_[A+16>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[d>>2]|0,(q|0)!=-1){j=A;break}E_[a>>2]=0,j=0}while(0);a=(j|0)==0;do{if(!I){if(A=E_[L+12>>2]|0,W=(A|0)==(E_[L+16>>2]|0)?rv[E_[(E_[L>>2]|0)+36>>2]&127](L)|0:E_[A>>2]|0,(W|0)==-1){E_[i>>2]=0,M=3109;break}if(!(a^(L|0)==0))break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}M=3109}while(0);do if((M|0)==3109){if(a)break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,K=e|0,E_[K>>2]=j,yc(s),yc(l),O_=r}function k(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+8|0,E_[o>>2]=E_[i>>2],E_[u>>2]=E_[f>>2],c(e,0,o,u,a,t,n),O_=r}function c(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0;r=O_,O_=O_+176|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r+128|0,u=r+136|0,l=r+144|0,s=r+160|0,b=s,k=O_,O_=O_+4|0,O_=O_+7&-8,c=O_,O_=O_+160|0,d=O_,O_=O_+4|0,O_=O_+7&-8,h=O_,O_=O_+4|0,O_=O_+7&-8,_=O_,O_=O_+1|0,O_=O_+7&-8,w=O_,O_=O_+1|0,O_=O_+7&-8,v=r|0,y(l,a,v,o,u),An(b|0,0,12)|0,a=s,Oc(s,10,0),(m_[b]&1)==0?(m=a+1|0,p=m,E=m,S=s+8|0):(m=s+8|0,p=E_[m>>2]|0,E=a+1|0,S=m),E_[k>>2]=p,m=c|0,E_[d>>2]=m,E_[h>>2]=0,m_[_]=1,m_[w]=69,a=i|0,i=f|0,f=s|0,g=s+4|0,O=E_[o>>2]|0,o=E_[u>>2]|0,u=p,p=E_[a>>2]|0;e:for(;;){do if((p|0)==0)R=0;else{if(F=E_[p+12>>2]|0,M=(F|0)==(E_[p+16>>2]|0)?rv[E_[(E_[p>>2]|0)+36>>2]&127](p)|0:E_[F>>2]|0,(M|0)!=-1){R=p;break}E_[a>>2]=0,R=0}while(0);N=(R|0)==0,F=E_[i>>2]|0;do{if((F|0)!=0){if(C=E_[F+12>>2]|0,T=(C|0)==(E_[F+16>>2]|0)?rv[E_[(E_[F>>2]|0)+36>>2]&127](F)|0:E_[C>>2]|0,(T|0)==-1){E_[i>>2]=0,D=3134;break}if(C=(F|0)==0,N^C){P=F,L=C;break}I=u,x=F,B=C;break e}D=3134}while(0);if((D|0)==3134){if(D=0,N){I=u,x=0,B=1;break}P=0,L=1}if(F=S_[b]|0,C=(F&1|0)==0,((E_[k>>2]|0)-u|0)==((C?F>>>1:E_[g>>2]|0)|0)?(C?(H=F>>>1,U=F>>>1):(F=E_[g>>2]|0,H=F,U=F),Oc(s,H<<1,0),z=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,z,0),Y=(m_[b]&1)==0?E:E_[S>>2]|0,E_[k>>2]=Y+U,V=Y):V=u,F=R+12|0,C=E_[F>>2]|0,Z=R+16|0,j=(C|0)==(E_[Z>>2]|0)?rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0:E_[C>>2]|0,(A(j,_,w,V,k,O,o,l,m,d,h,v)|0)!=0){I=V,x=P,B=L;break}C=E_[F>>2]|0,(C|0)!=(E_[Z>>2]|0)?(E_[F>>2]=C+4,u=V,p=R):(Z=E_[(E_[R>>2]|0)+40>>2]|0,rv[Z&127](R)|0,u=V,p=R)}p=S_[l]|0,q=(p&1|0)==0?p>>>1:E_[l+4>>2]|0;do if((q|0)!=0){if((m_[_]&1)==0)break;if(p=E_[d>>2]|0,(p-c|0)>=160)break;V=E_[h>>2]|0,E_[d>>2]=p+4,E_[p>>2]=V}while(0);y_[n>>2]=+bt(I,E_[k>>2]|0,t),Pi(l,m,E_[d>>2]|0,t);do if(N)W=0;else{if(d=E_[R+12>>2]|0,K=(d|0)==(E_[R+16>>2]|0)?rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0:E_[d>>2]|0,(K|0)!=-1){W=R;break}E_[a>>2]=0,W=0}while(0);a=(W|0)==0;do{if(!B){if(R=E_[x+12>>2]|0,X=(R|0)==(E_[x+16>>2]|0)?rv[E_[(E_[x>>2]|0)+36>>2]&127](x)|0:E_[R>>2]|0,(X|0)==-1){E_[i>>2]=0,D=3177;break}if(!(a^(x|0)==0))break;return G=e|0,E_[G>>2]=W,yc(s),yc(l),void(O_=r)}D=3177}while(0);do if((D|0)==3177){if(a)break;return G=e|0,E_[G>>2]=W,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,G=e|0,E_[G>>2]=W,yc(s),yc(l),O_=r}function d(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+8|0,E_[o>>2]=E_[i>>2],E_[u>>2]=E_[f>>2],h(e,0,o,u,a,t,n),O_=r}function h(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=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0,C=(F&1|0)==0,((E_[k>>2]|0)-u|0)==((C?F>>>1:E_[g>>2]|0)|0)?(C?(H=F>>>1,U=F>>>1):(F=E_[g>>2]|0,H=F,U=F),Oc(s,H<<1,0),z=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,z,0),Y=(m_[b]&1)==0?E:E_[S>>2]|0,E_[k>>2]=Y+U,V=Y):V=u,F=R+12|0,C=E_[F>>2]|0,Z=R+16|0,j=(C|0)==(E_[Z>>2]|0)?rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0:E_[C>>2]|0,(A(j,_,w,V,k,O,o,l,m,d,h,v)|0)!=0){I=V,x=P,B=L;break}C=E_[F>>2]|0,(C|0)!=(E_[Z>>2]|0)?(E_[F>>2]=C+4,u=V,p=R):(Z=E_[(E_[R>>2]|0)+40>>2]|0,rv[Z&127](R)|0,u=V,p=R)}p=S_[l]|0,q=(p&1|0)==0?p>>>1:E_[l+4>>2]|0;do if((q|0)!=0){if((m_[_]&1)==0)break;if(p=E_[d>>2]|0,(p-c|0)>=160)break;V=E_[h>>2]|0,E_[d>>2]=p+4,E_[p>>2]=V}while(0);A_[n>>3]=+st(I,E_[k>>2]|0,t),Pi(l,m,E_[d>>2]|0,t);do if(N)W=0;else{if(d=E_[R+12>>2]|0,K=(d|0)==(E_[R+16>>2]|0)?rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0:E_[d>>2]|0,(K|0)!=-1){W=R;break}E_[a>>2]=0,W=0}while(0);a=(W|0)==0;do{if(!B){if(R=E_[x+12>>2]|0,X=(R|0)==(E_[x+16>>2]|0)?rv[E_[(E_[x>>2]|0)+36>>2]&127](x)|0:E_[R>>2]|0,(X|0)==-1){E_[i>>2]=0,D=3245;break}if(!(a^(x|0)==0))break;return G=e|0,E_[G>>2]=W,yc(s),yc(l),void(O_=r)}D=3245}while(0);do if((D|0)==3245){if(a)break;return G=e|0,E_[G>>2]=W,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_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[a>>2]|0;e:for(;;){do if((p|0)==0)R=0;else{if(F=E_[p+12>>2]|0,M=(F|0)==(E_[p+16>>2]|0)?rv[E_[(E_[p>>2]|0)+36>>2]&127](p)|0:E_[F>>2]|0,(M|0)!=-1){R=p;break}E_[a>>2]=0,R=0}while(0);N=(R|0)==0,F=E_[i>>2]|0;do{if((F|0)!=0){if(C=E_[F+12>>2]|0,T=(C|0)==(E_[F+16>>2]|0)?rv[E_[(E_[F>>2]|0)+36>>2]&127](F)|0:E_[C>>2]|0,(T|0)==-1){E_[i>>2]=0,D=3270;break}if(C=(F|0)==0,N^C){P=F,L=C;break}I=u,x=F,B=C;break e}D=3270}while(0);if((D|0)==3270){if(D=0,N){I=u,x=0,B=1;break}P=0,L=1}if(F=S_[b]|0,C=(F&1|0)==0,((E_[k>>2]|0)-u|0)==((C?F>>>1:E_[g>>2]|0)|0)?(C?(H=F>>>1,U=F>>>1):(F=E_[g>>2]|0,H=F,U=F),Oc(s,H<<1,0),z=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,z,0),Y=(m_[b]&1)==0?E:E_[S>>2]|0,E_[k>>2]=Y+U,V=Y):V=u,F=R+12|0,C=E_[F>>2]|0,Z=R+16|0,j=(C|0)==(E_[Z>>2]|0)?rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0:E_[C>>2]|0,(A(j,_,w,V,k,O,o,l,m,d,h,v)|0)!=0){I=V,x=P,B=L;break}C=E_[F>>2]|0,(C|0)!=(E_[Z>>2]|0)?(E_[F>>2]=C+4,u=V,p=R):(Z=E_[(E_[R>>2]|0)+40>>2]|0,rv[Z&127](R)|0,u=V,p=R)}p=S_[l]|0,q=(p&1|0)==0?p>>>1:E_[l+4>>2]|0;do if((q|0)!=0){if((m_[_]&1)==0)break;if(p=E_[d>>2]|0,(p-c|0)>=160)break;V=E_[h>>2]|0,E_[d>>2]=p+4,E_[p>>2]=V}while(0);A_[n>>3]=+lt(I,E_[k>>2]|0,t),Pi(l,m,E_[d>>2]|0,t);do if(N)W=0;else{if(d=E_[R+12>>2]|0,K=(d|0)==(E_[R+16>>2]|0)?rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0:E_[d>>2]|0,(K|0)!=-1){W=R;break}E_[a>>2]=0,W=0}while(0);a=(W|0)==0;do{if(!B){if(R=E_[x+12>>2]|0,X=(R|0)==(E_[x+16>>2]|0)?rv[E_[(E_[x>>2]|0)+36>>2]&127](x)|0:E_[R>>2]|0,(X|0)==-1){E_[i>>2]=0,D=3313;break}if(!(a^(x|0)==0))break;return G=e|0,E_[G>>2]=W,yc(s),yc(l),void(O_=r)}D=3313}while(0);do if((D|0)==3313){if(a)break;return G=e|0,E_[G>>2]=W,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,G=e|0,E_[G>>2]=W,yc(s),yc(l),O_=r}function v(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0;r=O_,O_=O_+136|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+16|0,l=r+120|0,s=l,b=O_,O_=O_+4|0,O_=O_+7&-8,k=O_,O_=O_+12|0,O_=O_+7&-8,c=O_,O_=O_+4|0,O_=O_+7&-8,d=O_,O_=O_+160|0,h=O_,O_=O_+4|0,O_=O_+7&-8,_=O_,O_=O_+4|0,O_=O_+7&-8,An(s|0,0,12)|0,s=k,Zc(b,a),a=b|0,b=E_[a>>2]|0,(E_[4026]|0)!=-1&&(E_[o>>2]=16104,E_[o+4>>2]=14,E_[o+8>>2]=0,mc(16104,o,98)),o=(E_[4027]|0)-1|0,w=E_[b+8>>2]|0;do if((E_[b+12>>2]|0)-w>>2>>>0>o>>>0){if(v=E_[w+(o<<2)>>2]|0,(v|0)==0)break;p=v,E=u|0,S=E_[(E_[v>>2]|0)+48>>2]|0,Kw[S&15](p,12576,12602,E)|0,p=E_[a>>2]|0,$k(p)|0,An(s|0,0,12)|0,p=k,Oc(k,10,0),(m_[s]&1)==0?(S=p+1|0,g=S,y=S,A=k+8|0):(S=k+8|0,g=E_[S>>2]|0,y=p+1|0,A=S),E_[c>>2]=g,S=d|0,E_[h>>2]=S,E_[_>>2]=0,p=i|0,v=f|0,O=k|0,R=k+4|0,F=g,M=E_[p>>2]|0;e:for(;;){do if((M|0)==0)N=0;else{if(D=E_[M+12>>2]|0,C=(D|0)==(E_[M+16>>2]|0)?rv[E_[(E_[M>>2]|0)+36>>2]&127](M)|0:E_[D>>2]|0,(C|0)!=-1){N=M;break}E_[p>>2]=0,N=0}while(0);D=(N|0)==0,T=E_[v>>2]|0;do{if((T|0)!=0){if(L=E_[T+12>>2]|0,I=(L|0)==(E_[T+16>>2]|0)?rv[E_[(E_[T>>2]|0)+36>>2]&127](T)|0:E_[L>>2]|0,(I|0)==-1){E_[v>>2]=0,P=3345;break}if(D^(T|0)==0)break;x=F;break e}P=3345}while(0);if((P|0)==3345&&(P=0,D)){x=F;break}if(T=S_[s]|0,L=(T&1|0)==0,((E_[c>>2]|0)-F|0)==((L?T>>>1:E_[R>>2]|0)|0)?(L?(B=T>>>1,H=T>>>1):(T=E_[R>>2]|0,B=T,H=T),Oc(k,B<<1,0),U=(m_[s]&1)==0?10:(E_[O>>2]&-2)-1|0,Oc(k,U,0),z=(m_[s]&1)==0?y:E_[A>>2]|0,E_[c>>2]=z+H,Y=z):Y=F,T=N+12|0,L=E_[T>>2]|0,V=N+16|0,Z=(L|0)==(E_[V>>2]|0)?rv[E_[(E_[N>>2]|0)+36>>2]&127](N)|0:E_[L>>2]|0,(m(Z,16,Y,c,_,0,l,S,h,E)|0)!=0){x=Y;break}L=E_[T>>2]|0,(L|0)!=(E_[V>>2]|0)?(E_[T>>2]=L+4,F=Y,M=N):(V=E_[(E_[N>>2]|0)+40>>2]|0,rv[V&127](N)|0,F=Y,M=N)}m_[x+3|0]=0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);M=Fh(x,E_[3666]|0,2616,(F=O_,O_=O_+8|0,E_[F>>2]=n,F|0))|0,O_=F,(M|0)!=1&&(E_[t>>2]=4),M=E_[p>>2]|0;do if((M|0)==0)j=0;else{if(F=E_[M+12>>2]|0,q=(F|0)==(E_[M+16>>2]|0)?rv[E_[(E_[M>>2]|0)+36>>2]&127](M)|0:E_[F>>2]|0,(q|0)!=-1){j=M;break}E_[p>>2]=0,j=0}while(0);p=(j|0)==0,M=E_[v>>2]|0;do{if((M|0)!=0){if(F=E_[M+12>>2]|0,W=(F|0)==(E_[M+16>>2]|0)?rv[E_[(E_[M>>2]|0)+36>>2]&127](M)|0:E_[F>>2]|0,(W|0)==-1){E_[v>>2]=0,P=3390;break}if(!(p^(M|0)==0))break;return K=e|0,E_[K>>2]=j,yc(k),yc(l),void(O_=r)}P=3390}while(0);do if((P|0)==3390){if(p)break;return K=e|0,E_[K>>2]=j,yc(k),yc(l),void(O_=r)}while(0);return E_[t>>2]=E_[t>>2]|2,K=e|0,E_[K>>2]=j,yc(k),yc(l),void(O_=r)}while(0);r=Yw(4)|0,Ht(r),gw(r|0,11024,132)}function m(e,r,i,f,a,t,n,o,u,l){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0,l|=0;var s=0,b=0,k=0,c=0,d=0,h=0;s=E_[f>>2]|0,b=(s|0)==(i|0);do if(b){if(k=(E_[l+96>>2]|0)==(e|0),!k&&(E_[l+100>>2]|0)!=(e|0))break;return E_[f>>2]=i+1,m_[i]=k?43:45,E_[a>>2]=0,c=0,c|0}while(0);if(k=S_[n]|0,d=(k&1|0)==0?k>>>1:E_[n+4>>2]|0,(d|0)!=0&(e|0)==(t|0))return t=E_[u>>2]|0,(t-o|0)>=160?(c=0,c|0):(o=E_[a>>2]|0,E_[u>>2]=t+4,E_[t>>2]=o,E_[a>>2]=0,c=0,c|0);for(o=l+104|0,t=l;;){if((t|0)==(o|0)){h=o;break}if((E_[t>>2]|0)==(e|0)){h=t;break}t=t+4|0}if(t=h-l|0,l=t>>2,(t|0)>92)return c=-1,c|0;do{if((r|0)==8|(r|0)==10){if((l|0)<(r|0))break;return c=-1,c|0}if((r|0)==16){if((t|0)<88)break;return b?(c=-1,c|0):(s-i|0)>=3?(c=-1,c|0):(m_[s-1|0]|0)!=48?(c=-1,c|0):(E_[a>>2]=0,h=m_[12576+l|0]|0,e=E_[f>>2]|0,E_[f>>2]=e+1,m_[e]=h,c=0,c|0)}}while(0);return i=m_[12576+l|0]|0,E_[f>>2]=s+1,m_[s]=i,E_[a>>2]=(E_[a>>2]|0)+1,c=0,c|0}function p(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;a=O_,O_=O_+40|0,t=a|0,n=a+16|0,o=a+32|0,Zc(o,r),r=o|0,o=E_[r>>2]|0,(E_[4028]|0)!=-1&&(E_[n>>2]=16112,E_[n+4>>2]=14,E_[n+8>>2]=0,mc(16112,n,98)),n=(E_[4029]|0)-1|0,u=E_[o+8>>2]|0;do if((E_[o+12>>2]|0)-u>>2>>>0>n>>>0){if(l=E_[u+(n<<2)>>2]|0,(l|0)==0)break;s=l,b=E_[(E_[l>>2]|0)+32>>2]|0,Kw[b&15](s,12576,12602,i)|0,s=E_[r>>2]|0,(E_[3932]|0)!=-1&&(E_[t>>2]=15728,E_[t+4>>2]=14,E_[t+8>>2]=0,mc(15728,t,98)),b=(E_[3933]|0)-1|0,l=E_[s+8>>2]|0;do if((E_[s+12>>2]|0)-l>>2>>>0>b>>>0){if(k=E_[l+(b<<2)>>2]|0,(k|0)==0)break;return c=k,m_[f]=rv[E_[(E_[k>>2]|0)+16>>2]&127](c)|0,Jw[E_[(E_[k>>2]|0)+20>>2]&127](e,c),c=E_[r>>2]|0,$k(c)|0,void(O_=a)}while(0);b=Yw(4)|0,Ht(b),gw(b|0,11024,132)}while(0);a=Yw(4)|0,Ht(a),gw(a|0,11024,132)}function E(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0;t=O_,O_=O_+40|0,n=t|0,o=t+16|0,u=t+32|0,Zc(u,r),r=u|0,u=E_[r>>2]|0,(E_[4028]|0)!=-1&&(E_[o>>2]=16112,E_[o+4>>2]=14,E_[o+8>>2]=0,mc(16112,o,98)),o=(E_[4029]|0)-1|0,l=E_[u+8>>2]|0;do if((E_[u+12>>2]|0)-l>>2>>>0>o>>>0){if(s=E_[l+(o<<2)>>2]|0,(s|0)==0)break;b=s,k=E_[(E_[s>>2]|0)+32>>2]|0,Kw[k&15](b,12576,12608,i)|0,b=E_[r>>2]|0,(E_[3932]|0)!=-1&&(E_[n>>2]=15728,E_[n+4>>2]=14,E_[n+8>>2]=0,mc(15728,n,98)),k=(E_[3933]|0)-1|0,s=E_[b+8>>2]|0;do if((E_[b+12>>2]|0)-s>>2>>>0>k>>>0){if(c=E_[s+(k<<2)>>2]|0,(c|0)==0)break;return d=c,h=c,m_[f]=rv[E_[(E_[h>>2]|0)+12>>2]&127](d)|0,m_[a]=rv[E_[(E_[h>>2]|0)+16>>2]&127](d)|0,Jw[E_[(E_[c>>2]|0)+20>>2]&127](e,d),d=E_[r>>2]|0,$k(d)|0,void(O_=t)}while(0);k=Yw(4)|0,Ht(k),gw(k|0,11024,132)}while(0);t=Yw(4)|0,Ht(t),gw(t|0,11024,132)}function S(e,r,i,f,a,t,n,o,u,l,s,b){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0,l|=0,s|=0,b|=0;var k=0,c=0,d=0,h=0,_=0;if(e<<24>>24==t<<24>>24)return(m_[r]&1)==0?(k=-1,k|0):(m_[r]=0,t=E_[a>>2]|0,E_[a>>2]=t+1,m_[t]=46,t=S_[o]|0,c=(t&1|0)==0?t>>>1:E_[o+4>>2]|0,(c|0)==0?(k=0,k|0):(c=E_[l>>2]|0,(c-u|0)>=160?(k=0,k|0):(t=E_[s>>2]|0,E_[l>>2]=c+4,E_[c>>2]=t,k=0,k|0)));do if(e<<24>>24==n<<24>>24){if(t=S_[o]|0,d=(t&1|0)==0?t>>>1:E_[o+4>>2]|0,(d|0)==0)break;return(m_[r]&1)==0?(k=-1,k|0):(t=E_[l>>2]|0,(t-u|0)>=160?(k=0,k|0):(c=E_[s>>2]|0,E_[l>>2]=t+4,E_[t>>2]=c,E_[s>>2]=0,k=0,k|0))}while(0);for(d=b+32|0,n=b;;){if((n|0)==(d|0)){h=d;break}if((m_[n]|0)==e<<24>>24){h=n;break}n=n+1|0}if(n=h-b|0,(n|0)>31)return k=-1,k|0;if(b=m_[12576+n|0]|0,(n|0)==25|(n|0)==24){h=E_[a>>2]|0;do if((h|0)!=(f|0)){if((m_[h-1|0]&95|0)==(m_[i]&127|0))break;return k=-1,k|0}while(0);return E_[a>>2]=h+1,m_[h]=b,k=0,k|0}if((n|0)==22|(n|0)==23)return m_[i]=80,h=E_[a>>2]|0,E_[a>>2]=h+1,m_[h]=b,k=0,k|0;h=m_[i]|0;do if((b&95|0)==(h<<24>>24|0)){if(m_[i]=h|-128,(m_[r]&1)==0)break;if(m_[r]=0,f=S_[o]|0,_=(f&1|0)==0?f>>>1:E_[o+4>>2]|0,(_|0)==0)break;if(f=E_[l>>2]|0,(f-u|0)>=160)break;e=E_[s>>2]|0,E_[l>>2]=f+4,E_[f>>2]=e}while(0);return l=E_[a>>2]|0,E_[a>>2]=l+1,m_[l]=b,(n|0)>21?(k=0,k|0):(E_[s>>2]=(E_[s>>2]|0)+1,k=0,k|0)}function g(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;a=O_,O_=O_+40|0,t=a|0,n=a+16|0,o=a+32|0,Zc(o,r),r=o|0,o=E_[r>>2]|0,(E_[4026]|0)!=-1&&(E_[n>>2]=16104,E_[n+4>>2]=14,E_[n+8>>2]=0,mc(16104,n,98)),n=(E_[4027]|0)-1|0,u=E_[o+8>>2]|0;do if((E_[o+12>>2]|0)-u>>2>>>0>n>>>0){if(l=E_[u+(n<<2)>>2]|0,(l|0)==0)break;s=l,b=E_[(E_[l>>2]|0)+48>>2]|0,Kw[b&15](s,12576,12602,i)|0,s=E_[r>>2]|0,(E_[3930]|0)!=-1&&(E_[t>>2]=15720,E_[t+4>>2]=14,E_[t+8>>2]=0,mc(15720,t,98)),b=(E_[3931]|0)-1|0,l=E_[s+8>>2]|0;do if((E_[s+12>>2]|0)-l>>2>>>0>b>>>0){if(k=E_[l+(b<<2)>>2]|0,(k|0)==0)break;return c=k,E_[f>>2]=rv[E_[(E_[k>>2]|0)+16>>2]&127](c)|0,Jw[E_[(E_[k>>2]|0)+20>>2]&127](e,c),c=E_[r>>2]|0,$k(c)|0,void(O_=a)}while(0);b=Yw(4)|0,Ht(b),gw(b|0,11024,132)}while(0);a=Yw(4)|0,Ht(a),gw(a|0,11024,132)}function y(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0;t=O_,O_=O_+40|0,n=t|0,o=t+16|0,u=t+32|0,Zc(u,r),r=u|0,u=E_[r>>2]|0,(E_[4026]|0)!=-1&&(E_[o>>2]=16104,E_[o+4>>2]=14,E_[o+8>>2]=0,mc(16104,o,98)),o=(E_[4027]|0)-1|0,l=E_[u+8>>2]|0;do if((E_[u+12>>2]|0)-l>>2>>>0>o>>>0){if(s=E_[l+(o<<2)>>2]|0,(s|0)==0)break;b=s,k=E_[(E_[s>>2]|0)+48>>2]|0,Kw[k&15](b,12576,12608,i)|0,b=E_[r>>2]|0,(E_[3930]|0)!=-1&&(E_[n>>2]=15720,E_[n+4>>2]=14,E_[n+8>>2]=0,mc(15720,n,98)),k=(E_[3931]|0)-1|0,s=E_[b+8>>2]|0;do if((E_[b+12>>2]|0)-s>>2>>>0>k>>>0){if(c=E_[s+(k<<2)>>2]|0,(c|0)==0)break;return d=c,h=c,E_[f>>2]=rv[E_[(E_[h>>2]|0)+12>>2]&127](d)|0,E_[a>>2]=rv[E_[(E_[h>>2]|0)+16>>2]&127](d)|0,Jw[E_[(E_[c>>2]|0)+20>>2]&127](e,d),d=E_[r>>2]|0,$k(d)|0,void(O_=t)}while(0);k=Yw(4)|0,Ht(k),gw(k|0,11024,132)}while(0);t=Yw(4)|0,Ht(t),gw(t|0,11024,132)}function A(e,r,i,f,a,t,n,o,u,l,s,b){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0,l|=0,s|=0,b|=0;var k=0,c=0,d=0,h=0,_=0;if((e|0)==(t|0))return(m_[r]&1)==0?(k=-1,k|0):(m_[r]=0,t=E_[a>>2]|0,E_[a>>2]=t+1,m_[t]=46,t=S_[o]|0,c=(t&1|0)==0?t>>>1:E_[o+4>>2]|0,(c|0)==0?(k=0,k|0):(c=E_[l>>2]|0,(c-u|0)>=160?(k=0,k|0):(t=E_[s>>2]|0,E_[l>>2]=c+4,E_[c>>2]=t,k=0,k|0)));do if((e|0)==(n|0)){if(t=S_[o]|0,d=(t&1|0)==0?t>>>1:E_[o+4>>2]|0,(d|0)==0)break;return(m_[r]&1)==0?(k=-1,k|0):(t=E_[l>>2]|0,(t-u|0)>=160?(k=0,k|0):(c=E_[s>>2]|0,E_[l>>2]=t+4,E_[t>>2]=c,E_[s>>2]=0,k=0,k|0))}while(0);for(d=b+128|0,n=b;;){if((n|0)==(d|0)){h=d;break}if((E_[n>>2]|0)==(e|0)){h=n;break}n=n+4|0}if(n=h-b|0,b=n>>2,(n|0)>124)return k=-1,k|0;h=m_[12576+b|0]|0;do{if((b|0)==25|(b|0)==24){e=E_[a>>2]|0;do if((e|0)!=(f|0)){if((m_[e-1|0]&95|0)==(m_[i]&127|0))break;return k=-1,k|0}while(0);return E_[a>>2]=e+1,m_[e]=h,k=0,k|0}if((b|0)==22|(b|0)==23)m_[i]=80;else{if(d=m_[i]|0,(h&95|0)!=(d<<24>>24|0))break;if(m_[i]=d|-128,(m_[r]&1)==0)break;if(m_[r]=0,d=S_[o]|0,_=(d&1|0)==0?d>>>1:E_[o+4>>2]|0,(_|0)==0)break;if(d=E_[l>>2]|0,(d-u|0)>=160)break;c=E_[s>>2]|0,E_[l>>2]=d+4,E_[d>>2]=c}}while(0);return l=E_[a>>2]|0,E_[a>>2]=l+1,m_[l]=h,(n|0)>84?(k=0,k|0):(E_[s>>2]=(E_[s>>2]|0)+1,k=0,k|0)}function O(e){e|=0,Qk(e|0),hn(e)}function R(e){e|=0,Qk(e|0)}function F(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0;if(n=O_,O_=O_+48|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=n|0,u=n+16|0,l=n+24|0,s=n+32|0,(E_[f+4>>2]&1|0)==0)return b=E_[(E_[r>>2]|0)+24>>2]|0,E_[u>>2]=E_[i>>2],uv[b&31](e,r,u,f,a,t&1),void(O_=n);Zc(l,f),f=l|0,l=E_[f>>2]|0,(E_[3932]|0)!=-1&&(E_[o>>2]=15728,E_[o+4>>2]=14,E_[o+8>>2]=0,mc(15728,o,98)),o=(E_[3933]|0)-1|0,a=E_[l+8>>2]|0;do if((E_[l+12>>2]|0)-a>>2>>>0>o>>>0){if(u=E_[a+(o<<2)>>2]|0,(u|0)==0)break;for(r=u,b=E_[f>>2]|0,$k(b)|0,b=E_[u>>2]|0,t?Jw[E_[b+24>>2]&127](s,r):Jw[E_[b+28>>2]&127](s,r),r=s,b=s,u=m_[b]|0,(u&1)==0?(k=r+1|0,c=k,d=k,h=s+8|0):(k=s+8|0,c=E_[k>>2]|0,d=r+1|0,h=k),k=i|0,r=s+4|0,_=c,w=u;;){if(v=(w&1)==0?d:E_[h>>2]|0,u=w&255,(_|0)==(v+((u&1|0)==0?u>>>1:E_[r>>2]|0)|0))break;u=m_[_]|0,m=E_[k>>2]|0;do if((m|0)!=0){if(p=m+24|0,E=E_[p>>2]|0,(E|0)!=(E_[m+28>>2]|0)){E_[p>>2]=E+1,m_[E]=u;break}if((lv[E_[(E_[m>>2]|0)+52>>2]&31](m,u&255)|0)!=-1)break;E_[k>>2]=0}while(0);_=_+1|0,w=m_[b]|0}return E_[e>>2]=E_[k>>2],yc(s),void(O_=n)}while(0);n=Yw(4)|0,Ht(n),gw(n|0,11024,132)}function M(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;r=O_,O_=O_+80|0,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=r|0,o=r+8|0,u=r+24|0,l=r+48|0,s=r+56|0,b=r+64|0,k=r+72|0,c=n|0,m_[c]=m_[5200]|0,m_[c+1|0]=m_[5201]|0,m_[c+2|0]=m_[5202]|0,m_[c+3|0]=m_[5203]|0,m_[c+4|0]=m_[5204]|0,m_[c+5|0]=m_[5205]|0,d=n+1|0,h=f+4|0,_=E_[h>>2]|0,(_&2048|0)==0?w=d:(m_[d]=43,w=n+2|0),(_&512|0)==0?v=w:(m_[w]=35,v=w+1|0),m_[v]=108,w=v+1|0,v=_&74;do{if((v|0)==8){if((_&16384|0)==0){m_[w]=120;break}m_[w]=88;break}m_[w]=(v|0)==64?111:100}while(0);w=o|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);v=N(w,12,E_[3666]|0,c,(c=O_,O_=O_+8|0,E_[c>>2]=t,c|0))|0,O_=c,c=o+v|0,t=E_[h>>2]&176;do if((t|0)==16){if(h=m_[w]|0,(h<<24>>24|0)==45|(h<<24>>24|0)==43){m=o+1|0;
break}if(!((v|0)>1&h<<24>>24==48)){p=3653;break}if(h=m_[o+1|0]|0,!((h<<24>>24|0)==120|(h<<24>>24|0)==88)){p=3653;break}m=o+2|0}else(t|0)==32?m=c:p=3653;while(0);(p|0)==3653&&(m=w),p=u|0,Zc(b,f),D(w,m,c,p,l,s,b),$k(E_[b>>2]|0)|0,E_[k>>2]=E_[i>>2],C(e,k,p,E_[l>>2]|0,E_[s>>2]|0,f,a),O_=r}function N(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0;return t=O_,O_=O_+16|0,n=t|0,o=n,E_[o>>2]=a,E_[o+4>>2]=0,o=Pw(i|0)|0,i=Lw(e|0,r|0,f|0,n|0)|0,(o|0)==0?(O_=t,i|0):(Pw(o|0)|0,O_=t,i|0)}function D(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0;o=O_,O_=O_+48|0,u=o|0,l=o+16|0,s=o+32|0,b=n|0,n=E_[b>>2]|0,(E_[4028]|0)!=-1&&(E_[l>>2]=16112,E_[l+4>>2]=14,E_[l+8>>2]=0,mc(16112,l,98)),l=(E_[4029]|0)-1|0,k=E_[n+8>>2]|0,(E_[n+12>>2]|0)-k>>2>>>0<=l>>>0&&(c=Yw(4)|0,d=c,Ht(d),gw(c|0,11024,132)),n=E_[k+(l<<2)>>2]|0,(n|0)==0&&(c=Yw(4)|0,d=c,Ht(d),gw(c|0,11024,132)),c=n,d=E_[b>>2]|0,(E_[3932]|0)!=-1&&(E_[u>>2]=15728,E_[u+4>>2]=14,E_[u+8>>2]=0,mc(15728,u,98)),u=(E_[3933]|0)-1|0,b=E_[d+8>>2]|0,(E_[d+12>>2]|0)-b>>2>>>0<=u>>>0&&(h=Yw(4)|0,_=h,Ht(_),gw(h|0,11024,132)),d=E_[b+(u<<2)>>2]|0,(d|0)==0&&(h=Yw(4)|0,_=h,Ht(_),gw(h|0,11024,132)),h=d,Jw[E_[(E_[d>>2]|0)+20>>2]&127](s,h),_=s,u=s,b=S_[u]|0,w=(b&1|0)==0?b>>>1:E_[s+4>>2]|0;do if((w|0)==0)b=E_[(E_[n>>2]|0)+32>>2]|0,Kw[b&15](c,e,i,f)|0,E_[t>>2]=f+(i-e);else{E_[t>>2]=f,b=m_[e]|0,(b<<24>>24|0)==45|(b<<24>>24|0)==43?(l=lv[E_[(E_[n>>2]|0)+28>>2]&31](c,b)|0,b=E_[t>>2]|0,E_[t>>2]=b+1,m_[b]=l,v=e+1|0):v=e;do if((i-v|0)>1){if((m_[v]|0)!=48){m=v;break}if(l=v+1|0,b=m_[l]|0,!((b<<24>>24|0)==120|(b<<24>>24|0)==88)){m=v;break}b=n,k=lv[E_[(E_[b>>2]|0)+28>>2]&31](c,48)|0,p=E_[t>>2]|0,E_[t>>2]=p+1,m_[p]=k,k=lv[E_[(E_[b>>2]|0)+28>>2]&31](c,m_[l]|0)|0,l=E_[t>>2]|0,E_[t>>2]=l+1,m_[l]=k,m=v+2|0}else m=v;while(0);do if((m|0)!=(i|0)){if(k=i-1|0,!(m>>>0<k>>>0))break;E=m,S=k;do k=m_[E]|0,m_[E]=m_[S]|0,m_[S]=k,E=E+1|0,S=S-1|0;while(E>>>0<S>>>0)}while(0);if(k=rv[E_[(E_[d>>2]|0)+16>>2]&127](h)|0,m>>>0<i>>>0)for(l=_+1|0,b=n,p=s+4|0,g=s+8|0,y=0,A=0,O=m;;){R=(m_[u]&1)==0;do if((m_[(R?l:E_[g>>2]|0)+A|0]|0)==0)F=A,M=y;else{if((y|0)!=(m_[(R?l:E_[g>>2]|0)+A|0]|0)){F=A,M=y;break}N=E_[t>>2]|0,E_[t>>2]=N+1,m_[N]=k,N=S_[u]|0,F=(A>>>0<(((N&1|0)==0?N>>>1:E_[p>>2]|0)-1|0)>>>0)+A|0,M=0}while(0);if(R=lv[E_[(E_[b>>2]|0)+28>>2]&31](c,m_[O]|0)|0,N=E_[t>>2]|0,E_[t>>2]=N+1,m_[N]=R,R=O+1|0,!(R>>>0<i>>>0))break;y=M+1|0,A=F,O=R}if(O=f+(m-e)|0,A=E_[t>>2]|0,(O|0)==(A|0))break;if(y=A-1|0,!(O>>>0<y>>>0))break;D=O,C=y;do y=m_[D]|0,m_[D]=m_[C]|0,m_[C]=y,D=D+1|0,C=C-1|0;while(D>>>0<C>>>0)}while(0);return(r|0)==(i|0)?(T=E_[t>>2]|0,E_[a>>2]=T,yc(s),void(O_=o)):(T=f+(r-e)|0,E_[a>>2]=T,yc(s),void(O_=o))}function C(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;if(o=O_,O_=O_+16|0,u=r,r=O_,O_=O_+4|0,O_=O_+7&-8,E_[r>>2]=E_[u>>2],u=o|0,l=r|0,r=E_[l>>2]|0,(r|0)==0)return E_[e>>2]=0,void(O_=o);s=a,a=i,b=s-a|0,k=t+12|0,t=E_[k>>2]|0,c=(t|0)>(b|0)?t-b|0:0,b=f,t=b-a|0;do if((t|0)>0){if((iv[E_[(E_[r>>2]|0)+48>>2]&63](r,i,t)|0)==(t|0))break;return E_[l>>2]=0,E_[e>>2]=0,void(O_=o)}while(0);do if((c|0)>0){if(gc(u,c,n),d=(m_[u]&1)==0?u+1|0:E_[u+8>>2]|0,(iv[E_[(E_[r>>2]|0)+48>>2]&63](r,d,c)|0)==(c|0)){yc(u);break}return E_[l>>2]=0,E_[e>>2]=0,yc(u),void(O_=o)}while(0);u=s-b|0;do if((u|0)>0){if((iv[E_[(E_[r>>2]|0)+48>>2]&63](r,f,u)|0)==(u|0))break;return E_[l>>2]=0,E_[e>>2]=0,void(O_=o)}while(0);E_[k>>2]=0,E_[e>>2]=r,O_=o}function T(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;r=O_,O_=O_+112|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=r|0,u=r+8|0,l=r+32|0,s=r+80|0,b=r+88|0,k=r+96|0,c=r+104|0,E_[o>>2]=37,E_[o+4>>2]=0,d=o,o=d+1|0,h=f+4|0,_=E_[h>>2]|0,(_&2048|0)==0?w=o:(m_[o]=43,w=d+2|0),(_&512|0)==0?v=w:(m_[w]=35,v=w+1|0),m_[v]=108,m_[v+1|0]=108,w=v+2|0,v=_&74;do if((v|0)==64)m_[w]=111;else{if((v|0)==8){if((_&16384|0)==0){m_[w]=120;break}m_[w]=88;break}m_[w]=100}while(0);w=u|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);_=N(w,22,E_[3666]|0,d,(d=O_,O_=O_+16|0,E_[d>>2]=t,E_[d+8>>2]=n,d|0))|0,O_=d,d=u+_|0,n=E_[h>>2]&176;do if((n|0)==32)m=d;else if((n|0)==16){if(h=m_[w]|0,(h<<24>>24|0)==45|(h<<24>>24|0)==43){m=u+1|0;break}if(!((_|0)>1&h<<24>>24==48)){p=3760;break}if(h=m_[u+1|0]|0,!((h<<24>>24|0)==120|(h<<24>>24|0)==88)){p=3760;break}m=u+2|0}else p=3760;while(0);(p|0)==3760&&(m=w),p=l|0,Zc(k,f),D(w,m,d,p,s,b,k),$k(E_[k>>2]|0)|0,E_[c>>2]=E_[i>>2],C(e,c,p,E_[s>>2]|0,E_[b>>2]|0,f,a),O_=r}function P(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;r=O_,O_=O_+80|0,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=r|0,o=r+8|0,u=r+24|0,l=r+48|0,s=r+56|0,b=r+64|0,k=r+72|0,c=n|0,m_[c]=m_[5200]|0,m_[c+1|0]=m_[5201]|0,m_[c+2|0]=m_[5202]|0,m_[c+3|0]=m_[5203]|0,m_[c+4|0]=m_[5204]|0,m_[c+5|0]=m_[5205]|0,d=n+1|0,h=f+4|0,_=E_[h>>2]|0,(_&2048|0)==0?w=d:(m_[d]=43,w=n+2|0),(_&512|0)==0?v=w:(m_[w]=35,v=w+1|0),m_[v]=108,w=v+1|0,v=_&74;do if((v|0)==64)m_[w]=111;else{if((v|0)==8){if((_&16384|0)==0){m_[w]=120;break}m_[w]=88;break}m_[w]=117}while(0);w=o|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);_=N(w,12,E_[3666]|0,c,(c=O_,O_=O_+8|0,E_[c>>2]=t,c|0))|0,O_=c,c=o+_|0,t=E_[h>>2]&176;do if((t|0)==16){if(h=m_[w]|0,(h<<24>>24|0)==45|(h<<24>>24|0)==43){m=o+1|0;break}if(!((_|0)>1&h<<24>>24==48)){p=3785;break}if(h=m_[o+1|0]|0,!((h<<24>>24|0)==120|(h<<24>>24|0)==88)){p=3785;break}m=o+2|0}else(t|0)==32?m=c:p=3785;while(0);(p|0)==3785&&(m=w),p=u|0,Zc(b,f),D(w,m,c,p,l,s,b),$k(E_[b>>2]|0)|0,E_[k>>2]=E_[i>>2],C(e,k,p,E_[l>>2]|0,E_[s>>2]|0,f,a),O_=r}function L(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;r=O_,O_=O_+112|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=r|0,u=r+8|0,l=r+32|0,s=r+80|0,b=r+88|0,k=r+96|0,c=r+104|0,E_[o>>2]=37,E_[o+4>>2]=0,d=o,o=d+1|0,h=f+4|0,_=E_[h>>2]|0,(_&2048|0)==0?w=o:(m_[o]=43,w=d+2|0),(_&512|0)==0?v=w:(m_[w]=35,v=w+1|0),m_[v]=108,m_[v+1|0]=108,w=v+2|0,v=_&74;do if((v|0)==64)m_[w]=111;else{if((v|0)==8){if((_&16384|0)==0){m_[w]=120;break}m_[w]=88;break}m_[w]=117}while(0);w=u|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);_=N(w,23,E_[3666]|0,d,(d=O_,O_=O_+16|0,E_[d>>2]=t,E_[d+8>>2]=n,d|0))|0,O_=d,d=u+_|0,n=E_[h>>2]&176;do if((n|0)==16){if(h=m_[w]|0,(h<<24>>24|0)==45|(h<<24>>24|0)==43){m=u+1|0;break}if(!((_|0)>1&h<<24>>24==48)){p=3810;break}if(h=m_[u+1|0]|0,!((h<<24>>24|0)==120|(h<<24>>24|0)==88)){p=3810;break}m=u+2|0}else(n|0)==32?m=d:p=3810;while(0);(p|0)==3810&&(m=w),p=l|0,Zc(k,f),D(w,m,d,p,s,b,k),$k(E_[k>>2]|0)|0,E_[c>>2]=E_[i>>2],C(e,c,p,E_[s>>2]|0,E_[b>>2]|0,f,a),O_=r}function I(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t=+t;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,D=0,T=0;r=O_,O_=O_+152|0,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=r|0,o=r+8|0,u=r+40|0,l=r+48|0,s=r+112|0,b=r+120|0,k=r+128|0,c=r+136|0,d=r+144|0,E_[n>>2]=37,E_[n+4>>2]=0,h=n,n=h+1|0,_=f+4|0,w=E_[_>>2]|0,(w&2048|0)==0?v=n:(m_[n]=43,v=h+2|0),(w&1024|0)==0?m=v:(m_[v]=35,m=v+1|0),v=w&260,n=w>>>14;do{if((v|0)==260){if((n&1|0)==0){m_[m]=97,p=0;break}m_[m]=65,p=0;break}if(m_[m]=46,w=m+2|0,m_[m+1|0]=42,(v|0)==256){if((n&1|0)==0){m_[w]=101,p=1;break}m_[w]=69,p=1;break}if((v|0)==4){if((n&1|0)==0){m_[w]=102,p=1;break}m_[w]=70,p=1;break}if((n&1|0)==0){m_[w]=103,p=1;break}m_[w]=71,p=1;break}while(0);n=o|0,E_[u>>2]=n;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);o=E_[3666]|0,p?(v=N(n,30,o,h,(E=O_,O_=O_+16|0,E_[E>>2]=E_[f+8>>2],A_[E+8>>3]=t,E|0))|0,O_=E,S=v):(v=N(n,30,o,h,(E=O_,O_=O_+8|0,A_[E>>3]=t,E|0))|0,O_=E,S=v);do if((S|0)>29){if(v=(m_[16672]|0)==0,p){do if(v){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);o=x(u,E_[3666]|0,h,(E=O_,O_=O_+16|0,E_[E>>2]=E_[f+8>>2],A_[E+8>>3]=t,E|0))|0,O_=E,g=o}else{do if(v){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);v=x(u,E_[3666]|0,h,(E=O_,O_=O_+16|0,E_[E>>2]=E_[f+8>>2],A_[E+8>>3]=t,E|0))|0,O_=E,g=v}if(v=E_[u>>2]|0,(v|0)!=0){y=g,A=v,O=v;break}pn(),v=E_[u>>2]|0,y=g,A=v,O=v}else y=S,A=0,O=E_[u>>2]|0;while(0);S=O+y|0,g=E_[_>>2]&176;do if((g|0)==32)R=S;else if((g|0)==16){if(_=m_[O]|0,(_<<24>>24|0)==45|(_<<24>>24|0)==43){R=O+1|0;break}if(!((y|0)>1&_<<24>>24==48)){F=3866;break}if(_=m_[O+1|0]|0,!((_<<24>>24|0)==120|(_<<24>>24|0)==88)){F=3866;break}R=O+2|0}else F=3866;while(0);(F|0)==3866&&(R=O);do if((O|0)==(n|0))M=l|0,D=0,T=n;else{if(F=on(y<<1)|0,(F|0)!=0){M=F,D=F,T=O;break}pn(),M=0,D=0,T=E_[u>>2]|0}while(0);return Zc(k,f),B(T,R,S,M,s,b,k),$k(E_[k>>2]|0)|0,k=i|0,E_[d>>2]=E_[k>>2],C(c,d,M,E_[s>>2]|0,E_[b>>2]|0,f,a),a=E_[c>>2]|0,E_[k>>2]=a,E_[e>>2]=a,(D|0)!=0&&un(D),(A|0)==0?void(O_=r):(un(A),void(O_=r))}function x(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0;return a=O_,O_=O_+16|0,t=a|0,n=t,E_[n>>2]=f,E_[n+4>>2]=0,n=Pw(r|0)|0,r=Vw(e|0,i|0,t|0)|0,(n|0)==0?(O_=a,r|0):(Pw(n|0)|0,O_=a,r|0)}function B(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0;o=O_,O_=O_+48|0,u=o|0,l=o+16|0,s=o+32|0,b=n|0,n=E_[b>>2]|0,(E_[4028]|0)!=-1&&(E_[l>>2]=16112,E_[l+4>>2]=14,E_[l+8>>2]=0,mc(16112,l,98)),l=(E_[4029]|0)-1|0,k=E_[n+8>>2]|0,(E_[n+12>>2]|0)-k>>2>>>0<=l>>>0&&(c=Yw(4)|0,d=c,Ht(d),gw(c|0,11024,132)),n=E_[k+(l<<2)>>2]|0,(n|0)==0&&(c=Yw(4)|0,d=c,Ht(d),gw(c|0,11024,132)),c=n,d=E_[b>>2]|0,(E_[3932]|0)!=-1&&(E_[u>>2]=15728,E_[u+4>>2]=14,E_[u+8>>2]=0,mc(15728,u,98)),u=(E_[3933]|0)-1|0,b=E_[d+8>>2]|0,(E_[d+12>>2]|0)-b>>2>>>0<=u>>>0&&(h=Yw(4)|0,_=h,Ht(_),gw(h|0,11024,132)),d=E_[b+(u<<2)>>2]|0,(d|0)==0&&(h=Yw(4)|0,_=h,Ht(_),gw(h|0,11024,132)),h=d,Jw[E_[(E_[d>>2]|0)+20>>2]&127](s,h),E_[t>>2]=f,_=m_[e]|0,(_<<24>>24|0)==45|(_<<24>>24|0)==43?(u=lv[E_[(E_[n>>2]|0)+28>>2]&31](c,_)|0,_=E_[t>>2]|0,E_[t>>2]=_+1,m_[_]=u,w=e+1|0):w=e,u=i;e:do if((u-w|0)>1){if((m_[w]|0)!=48){v=w,m=3932;break}if(_=w+1|0,b=m_[_]|0,!((b<<24>>24|0)==120|(b<<24>>24|0)==88)){v=w,m=3932;break}for(b=n,l=lv[E_[(E_[b>>2]|0)+28>>2]&31](c,48)|0,k=E_[t>>2]|0,E_[t>>2]=k+1,m_[k]=l,l=w+2|0,k=lv[E_[(E_[b>>2]|0)+28>>2]&31](c,m_[_]|0)|0,_=E_[t>>2]|0,E_[t>>2]=_+1,m_[_]=k,k=l;;){if(k>>>0>=i>>>0){p=k,E=l;break e}_=m_[k]|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);if((cw(_<<24>>24|0,E_[3666]|0)|0)==0){p=k,E=l;break}k=k+1|0}}else v=w,m=3932;while(0);e:do if((m|0)==3932)for(;;){if(m=0,v>>>0>=i>>>0){p=v,E=w;break e}k=m_[v]|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);if((Uw(k<<24>>24|0,E_[3666]|0)|0)==0){p=v,E=w;break}v=v+1|0,m=3932}while(0);m=s,v=s,w=S_[v]|0,S=(w&1|0)==0?w>>>1:E_[s+4>>2]|0;do if((S|0)==0)w=E_[t>>2]|0,_=E_[(E_[n>>2]|0)+32>>2]|0,Kw[_&15](c,E,p,w)|0,E_[t>>2]=(E_[t>>2]|0)+(p-E);else{do if((E|0)!=(p|0)){if(w=p-1|0,!(E>>>0<w>>>0))break;g=E,y=w;do w=m_[g]|0,m_[g]=m_[y]|0,m_[y]=w,g=g+1|0,y=y-1|0;while(g>>>0<y>>>0)}while(0);if(k=rv[E_[(E_[d>>2]|0)+16>>2]&127](h)|0,E>>>0<p>>>0)for(w=m+1|0,_=s+4|0,l=s+8|0,b=n,A=0,O=0,R=E;;){F=(m_[v]&1)==0;do if((m_[(F?w:E_[l>>2]|0)+O|0]|0)>0){if((A|0)!=(m_[(F?w:E_[l>>2]|0)+O|0]|0)){M=O,N=A;break}D=E_[t>>2]|0,E_[t>>2]=D+1,m_[D]=k,D=S_[v]|0,M=(O>>>0<(((D&1|0)==0?D>>>1:E_[_>>2]|0)-1|0)>>>0)+O|0,N=0}else M=O,N=A;while(0);if(F=lv[E_[(E_[b>>2]|0)+28>>2]&31](c,m_[R]|0)|0,D=E_[t>>2]|0,E_[t>>2]=D+1,m_[D]=F,F=R+1|0,!(F>>>0<p>>>0))break;A=N+1|0,O=M,R=F}if(R=f+(E-e)|0,O=E_[t>>2]|0,(R|0)==(O|0))break;if(A=O-1|0,!(R>>>0<A>>>0))break;C=R,T=A;do A=m_[C]|0,m_[C]=m_[T]|0,m_[T]=A,C=C+1|0,T=T-1|0;while(C>>>0<T>>>0)}while(0);e:do if(p>>>0<i>>>0){for(T=n,C=p;;){if(E=m_[C]|0,E<<24>>24==46)break;if(M=lv[E_[(E_[T>>2]|0)+28>>2]&31](c,E)|0,E=E_[t>>2]|0,E_[t>>2]=E+1,m_[E]=M,M=C+1|0,!(M>>>0<i>>>0)){P=M;break e}C=M}T=rv[E_[(E_[d>>2]|0)+12>>2]&127](h)|0,M=E_[t>>2]|0,E_[t>>2]=M+1,m_[M]=T,P=C+1|0}else P=p;while(0);return Kw[E_[(E_[n>>2]|0)+32>>2]&15](c,P,i,E_[t>>2]|0)|0,c=(E_[t>>2]|0)+(u-P)|0,E_[t>>2]=c,(r|0)==(i|0)?(L=c,E_[a>>2]=L,yc(s),void(O_=o)):(L=f+(r-e)|0,E_[a>>2]=L,yc(s),void(O_=o))}function H(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t=+t;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,D=0,T=0;r=O_,O_=O_+152|0,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=r|0,o=r+8|0,u=r+40|0,l=r+48|0,s=r+112|0,b=r+120|0,k=r+128|0,c=r+136|0,d=r+144|0,E_[n>>2]=37,E_[n+4>>2]=0,h=n,n=h+1|0,_=f+4|0,w=E_[_>>2]|0,(w&2048|0)==0?v=n:(m_[n]=43,v=h+2|0),(w&1024|0)==0?m=v:(m_[v]=35,m=v+1|0),v=w&260,n=w>>>14;do{if((v|0)==260){if(m_[m]=76,w=m+1|0,(n&1|0)==0){m_[w]=97,p=0;break}m_[w]=65,p=0;break}if(m_[m]=46,m_[m+1|0]=42,m_[m+2|0]=76,w=m+3|0,(v|0)==256){if((n&1|0)==0){m_[w]=101,p=1;break}m_[w]=69,p=1;break}if((v|0)==4){if((n&1|0)==0){m_[w]=102,p=1;break}m_[w]=70,p=1;break}if((n&1|0)==0){m_[w]=103,p=1;break}m_[w]=71,p=1;break}while(0);n=o|0,E_[u>>2]=n;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);o=E_[3666]|0,p?(v=N(n,30,o,h,(E=O_,O_=O_+16|0,E_[E>>2]=E_[f+8>>2],A_[E+8>>3]=t,E|0))|0,O_=E,S=v):(v=N(n,30,o,h,(E=O_,O_=O_+8|0,A_[E>>3]=t,E|0))|0,O_=E,S=v);do if((S|0)>29){if(v=(m_[16672]|0)==0,p){do if(v){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);o=x(u,E_[3666]|0,h,(E=O_,O_=O_+16|0,E_[E>>2]=E_[f+8>>2],A_[E+8>>3]=t,E|0))|0,O_=E,g=o}else{do if(v){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);v=x(u,E_[3666]|0,h,(E=O_,O_=O_+8|0,A_[E>>3]=t,E|0))|0,O_=E,g=v}if(v=E_[u>>2]|0,(v|0)!=0){y=g,A=v,O=v;break}pn(),v=E_[u>>2]|0,y=g,A=v,O=v}else y=S,A=0,O=E_[u>>2]|0;while(0);S=O+y|0,g=E_[_>>2]&176;do if((g|0)==16){if(_=m_[O]|0,(_<<24>>24|0)==45|(_<<24>>24|0)==43){R=O+1|0;break}if(!((y|0)>1&_<<24>>24==48)){F=4029;break}if(_=m_[O+1|0]|0,!((_<<24>>24|0)==120|(_<<24>>24|0)==88)){F=4029;break}R=O+2|0}else(g|0)==32?R=S:F=4029;while(0);(F|0)==4029&&(R=O);do if((O|0)==(n|0))M=l|0,D=0,T=n;else{if(F=on(y<<1)|0,(F|0)!=0){M=F,D=F,T=O;break}pn(),M=0,D=0,T=E_[u>>2]|0}while(0);return Zc(k,f),B(T,R,S,M,s,b,k),$k(E_[k>>2]|0)|0,k=i|0,E_[d>>2]=E_[k>>2],C(c,d,M,E_[s>>2]|0,E_[b>>2]|0,f,a),a=E_[c>>2]|0,E_[k>>2]=a,E_[e>>2]=a,(D|0)!=0&&un(D),(A|0)==0?void(O_=r):(un(A),void(O_=r))}function U(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0;r=O_,O_=O_+104|0,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=r|0,o=r+24|0,u=r+48|0,l=r+88|0,s=r+96|0,b=r+16|0,m_[b]=m_[5208]|0,m_[b+1|0]=m_[5209]|0,m_[b+2|0]=m_[5210]|0,m_[b+3|0]=m_[5211]|0,m_[b+4|0]=m_[5212]|0,m_[b+5|0]=m_[5213]|0,k=o|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);c=N(k,20,E_[3666]|0,b,(b=O_,O_=O_+8|0,E_[b>>2]=t,b|0))|0,O_=b,b=o+c|0,t=E_[f+4>>2]&176;do if((t|0)==32)d=b;else if((t|0)==16){if(h=m_[k]|0,(h<<24>>24|0)==45|(h<<24>>24|0)==43){d=o+1|0;break}if(!((c|0)>1&h<<24>>24==48)){_=4062;break}if(h=m_[o+1|0]|0,!((h<<24>>24|0)==120|(h<<24>>24|0)==88)){_=4062;break}d=o+2|0}else _=4062;while(0);(_|0)==4062&&(d=k),Zc(l,f),_=l|0,l=E_[_>>2]|0,(E_[4028]|0)!=-1&&(E_[n>>2]=16112,E_[n+4>>2]=14,E_[n+8>>2]=0,mc(16112,n,98)),n=(E_[4029]|0)-1|0,t=E_[l+8>>2]|0;do if((E_[l+12>>2]|0)-t>>2>>>0>n>>>0){if(h=E_[t+(n<<2)>>2]|0,(h|0)==0)break;return w=h,v=E_[_>>2]|0,$k(v)|0,v=u|0,m=E_[(E_[h>>2]|0)+32>>2]|0,Kw[m&15](w,k,b,v)|0,w=u+c|0,(d|0)==(b|0)?(p=w,E=i|0,S=E_[E>>2]|0,g=s|0,E_[g>>2]=S,C(e,s,v,p,w,f,a),void(O_=r)):(p=u+(d-o)|0,E=i|0,S=E_[E>>2]|0,g=s|0,E_[g>>2]=S,C(e,s,v,p,w,f,a),void(O_=r))}while(0);r=Yw(4)|0,Ht(r),gw(r|0,11024,132)}function z(e){e|=0,Qk(e|0),hn(e)}function Y(e){e|=0,Qk(e|0)}function V(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0;if(n=O_,O_=O_+48|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=n|0,u=n+16|0,l=n+24|0,s=n+32|0,(E_[f+4>>2]&1|0)==0)return b=E_[(E_[r>>2]|0)+24>>2]|0,E_[u>>2]=E_[i>>2],uv[b&31](e,r,u,f,a,t&1),void(O_=n);Zc(l,f),f=l|0,l=E_[f>>2]|0,(E_[3930]|0)!=-1&&(E_[o>>2]=15720,E_[o+4>>2]=14,E_[o+8>>2]=0,mc(15720,o,98)),o=(E_[3931]|0)-1|0,a=E_[l+8>>2]|0;do if((E_[l+12>>2]|0)-a>>2>>>0>o>>>0){if(u=E_[a+(o<<2)>>2]|0,(u|0)==0)break;for(r=u,b=E_[f>>2]|0,$k(b)|0,b=E_[u>>2]|0,t?Jw[E_[b+24>>2]&127](s,r):Jw[E_[b+28>>2]&127](s,r),r=s,b=m_[r]|0,(b&1)==0?(u=s+4|0,k=u,c=u,d=s+8|0):(u=s+8|0,k=E_[u>>2]|0,c=s+4|0,d=u),u=i|0,h=k,_=b;;){if(w=(_&1)==0?c:E_[d>>2]|0,b=_&255,v=(b&1|0)==0?b>>>1:E_[c>>2]|0,(h|0)==(w+(v<<2)|0))break;b=E_[h>>2]|0,m=E_[u>>2]|0;do if((m|0)!=0){if(p=m+24|0,E=E_[p>>2]|0,(E|0)==(E_[m+28>>2]|0)?S=lv[E_[(E_[m>>2]|0)+52>>2]&31](m,b)|0:(E_[p>>2]=E+4,E_[E>>2]=b,S=b),(S|0)!=-1)break;E_[u>>2]=0}while(0);h=h+4|0,_=m_[r]|0}return E_[e>>2]=E_[u>>2],Lc(s),void(O_=n)}while(0);n=Yw(4)|0,Ht(n),gw(n|0,11024,132)}function Z(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;r=O_,O_=O_+144|0,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=r|0,o=r+8|0,u=r+24|0,l=r+112|0,s=r+120|0,b=r+128|0,k=r+136|0,c=n|0,m_[c]=m_[5200]|0,m_[c+1|0]=m_[5201]|0,m_[c+2|0]=m_[5202]|0,m_[c+3|0]=m_[5203]|0,m_[c+4|0]=m_[5204]|0,m_[c+5|0]=m_[5205]|0,d=n+1|0,h=f+4|0,_=E_[h>>2]|0,(_&2048|0)==0?w=d:(m_[d]=43,w=n+2|0),(_&512|0)==0?v=w:(m_[w]=35,v=w+1|0),m_[v]=108,w=v+1|0,v=_&74;do{if((v|0)==8){if((_&16384|0)==0){m_[w]=120;break}m_[w]=88;break}m_[w]=(v|0)==64?111:100}while(0);w=o|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);v=N(w,12,E_[3666]|0,c,(c=O_,O_=O_+8|0,E_[c>>2]=t,c|0))|0,O_=c,c=o+v|0,t=E_[h>>2]&176;do if((t|0)==32)m=c;else if((t|0)==16){if(h=m_[w]|0,(h<<24>>24|0)==45|(h<<24>>24|0)==43){m=o+1|0;break}if(!((v|0)>1&h<<24>>24==48)){p=4133;break}if(h=m_[o+1|0]|0,!((h<<24>>24|0)==120|(h<<24>>24|0)==88)){p=4133;break}m=o+2|0}else p=4133;while(0);(p|0)==4133&&(m=w),p=u|0,Zc(b,f),j(w,m,c,p,l,s,b),$k(E_[b>>2]|0)|0,E_[k>>2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,v=e+1|0):v=e;do if((i-v|0)>1){if((m_[v]|0)!=48){m=v;break}if(l=v+1|0,b=m_[l]|0,!((b<<24>>24|0)==120|(b<<24>>24|0)==88)){m=v;break}b=n,k=lv[E_[(E_[b>>2]|0)+44>>2]&31](c,48)|0,p=E_[t>>2]|0,E_[t>>2]=p+4,E_[p>>2]=k,k=lv[E_[(E_[b>>2]|0)+44>>2]&31](c,m_[l]|0)|0,l=E_[t>>2]|0,E_[t>>2]=l+4,E_[l>>2]=k,m=v+2|0}else m=v;while(0);do if((m|0)!=(i|0)){if(k=i-1|0,!(m>>>0<k>>>0))break;E=m,S=k;do k=m_[E]|0,m_[E]=m_[S]|0,m_[S]=k,E=E+1|0,S=S-1|0;while(E>>>0<S>>>0)}while(0);if(k=rv[E_[(E_[d>>2]|0)+16>>2]&127](h)|0,m>>>0<i>>>0)for(l=_+1|0,b=n,p=s+4|0,g=s+8|0,y=0,A=0,O=m;;){R=(m_[u]&1)==0;do if((m_[(R?l:E_[g>>2]|0)+A|0]|0)==0)F=A,M=y;else{if((y|0)!=(m_[(R?l:E_[g>>2]|0)+A|0]|0)){F=A,M=y;break}N=E_[t>>2]|0,E_[t>>2]=N+4,E_[N>>2]=k,N=S_[u]|0,F=(A>>>0<(((N&1|0)==0?N>>>1:E_[p>>2]|0)-1|0)>>>0)+A|0,M=0}while(0);if(R=lv[E_[(E_[b>>2]|0)+44>>2]&31](c,m_[O]|0)|0,N=E_[t>>2]|0,E_[t>>2]=N+4,E_[N>>2]=R,R=O+1|0,!(R>>>0<i>>>0))break;y=M+1|0,A=F,O=R}if(O=f+(m-e<<2)|0,A=E_[t>>2]|0,(O|0)==(A|0))break;if(y=A-4|0,!(O>>>0<y>>>0))break;D=O,C=y;do y=E_[D>>2]|0,E_[D>>2]=E_[C>>2],E_[C>>2]=y,D=D+4|0,C=C-4|0;while(D>>>0<C>>>0)}while(0);return(r|0)==(i|0)?(T=E_[t>>2]|0,E_[a>>2]=T,yc(s),void(O_=o)):(T=f+(r-e<<2)|0,E_[a>>2]=T,yc(s),void(O_=o))}function q(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;if(o=O_,O_=O_+16|0,u=r,r=O_,O_=O_+4|0,O_=O_+7&-8,E_[r>>2]=E_[u>>2],u=o|0,l=r|0,r=E_[l>>2]|0,(r|0)==0)return E_[e>>2]=0,void(O_=o);s=a,a=i,b=s-a>>2,k=t+12|0,t=E_[k>>2]|0,c=(t|0)>(b|0)?t-b|0:0,b=f,t=b-a|0,a=t>>2;do if((t|0)>0){if((iv[E_[(E_[r>>2]|0)+48>>2]&63](r,i,a)|0)==(a|0))break;return E_[l>>2]=0,E_[e>>2]=0,void(O_=o)}while(0);do if((c|0)>0){if(Pc(u,c,n),d=(m_[u]&1)==0?u+4|0:E_[u+8>>2]|0,(iv[E_[(E_[r>>2]|0)+48>>2]&63](r,d,c)|0)==(c|0)){Lc(u);break}return E_[l>>2]=0,E_[e>>2]=0,Lc(u),void(O_=o)}while(0);u=s-b|0,b=u>>2;do if((u|0)>0){if((iv[E_[(E_[r>>2]|0)+48>>2]&63](r,f,b)|0)==(b|0))break;return E_[l>>2]=0,E_[e>>2]=0,void(O_=o)}while(0);E_[k>>2]=0,E_[e>>2]=r,O_=o}function W(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;r=O_,O_=O_+232|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=r|0,u=r+8|0,l=r+32|0,s=r+200|0,b=r+208|0,k=r+216|0,c=r+224|0,E_[o>>2]=37,E_[o+4>>2]=0,d=o,o=d+1|0,h=f+4|0,_=E_[h>>2]|0,(_&2048|0)==0?w=o:(m_[o]=43,w=d+2|0),(_&512|0)==0?v=w:(m_[w]=35,v=w+1|0),m_[v]=108,m_[v+1|0]=108,w=v+2|0,v=_&74;do if((v|0)==64)m_[w]=111;else{if((v|0)==8){if((_&16384|0)==0){m_[w]=120;break}m_[w]=88;break}m_[w]=100}while(0);w=u|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);_=N(w,22,E_[3666]|0,d,(d=O_,O_=O_+16|0,E_[d>>2]=t,E_[d+8>>2]=n,d|0))|0,O_=d,d=u+_|0,n=E_[h>>2]&176;do if((n|0)==16){if(h=m_[w]|0,(h<<24>>24|0)==45|(h<<24>>24|0)==43){m=u+1|0;break}if(!((_|0)>1&h<<24>>24==48)){p=4234;break}if(h=m_[u+1|0]|0,!((h<<24>>24|0)==120|(h<<24>>24|0)==88)){p=4234;break}m=u+2|0}else(n|0)==32?m=d:p=4234;while(0);(p|0)==4234&&(m=w),p=l|0,Zc(k,f),j(w,m,d,p,s,b,k),$k(E_[k>>2]|0)|0,E_[c>>2]=E_[i>>2],q(e,c,p,E_[s>>2]|0,E_[b>>2]|0,f,a),O_=r}function K(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;r=O_,O_=O_+144|0,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=r|0,o=r+8|0,u=r+24|0,l=r+112|0,s=r+120|0,b=r+128|0,k=r+136|0,c=n|0,m_[c]=m_[5200]|0,m_[c+1|0]=m_[5201]|0,m_[c+2|0]=m_[5202]|0,m_[c+3|0]=m_[5203]|0,m_[c+4|0]=m_[5204]|0,m_[c+5|0]=m_[5205]|0,d=n+1|0,h=f+4|0,_=E_[h>>2]|0,(_&2048|0)==0?w=d:(m_[d]=43,w=n+2|0),(_&512|0)==0?v=w:(m_[w]=35,v=w+1|0),m_[v]=108,w=v+1|0,v=_&74;do{if((v|0)==8){if((_&16384|0)==0){m_[w]=120;break}m_[w]=88;break}m_[w]=(v|0)==64?111:117}while(0);w=o|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);v=N(w,12,E_[3666]|0,c,(c=O_,O_=O_+8|0,E_[c>>2]=t,c|0))|0,O_=c,c=o+v|0,t=E_[h>>2]&176;do if((t|0)==16){if(h=m_[w]|0,(h<<24>>24|0)==45|(h<<24>>24|0)==43){m=o+1|0;break}if(!((v|0)>1&h<<24>>24==48)){p=4259;break}if(h=m_[o+1|0]|0,!((h<<24>>24|0)==120|(h<<24>>24|0)==88)){p=4259;break}m=o+2|0}else(t|0)==32?m=c:p=4259;while(0);(p|0)==4259&&(m=w),p=u|0,Zc(b,f),j(w,m,c,p,l,s,b),$k(E_[b>>2]|0)|0,E_[k>>2]=E_[i>>2],q(e,k,p,E_[l>>2]|0,E_[s>>2]|0,f,a),O_=r}function X(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;r=O_,O_=O_+240|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=r|0,u=r+8|0,l=r+32|0,s=r+208|0,b=r+216|0,k=r+224|0,c=r+232|0,E_[o>>2]=37,E_[o+4>>2]=0,d=o,o=d+1|0,h=f+4|0,_=E_[h>>2]|0,(_&2048|0)==0?w=o:(m_[o]=43,w=d+2|0),(_&512|0)==0?v=w:(m_[w]=35,v=w+1|0),m_[v]=108,m_[v+1|0]=108,w=v+2|0,v=_&74;do{if((v|0)==8){if((_&16384|0)==0){m_[w]=120;break}m_[w]=88;break}m_[w]=(v|0)==64?111:117}while(0);w=u|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);v=N(w,23,E_[3666]|0,d,(d=O_,O_=O_+16|0,E_[d>>2]=t,E_[d+8>>2]=n,d|0))|0,O_=d,d=u+v|0,n=E_[h>>2]&176;do if((n|0)==16){if(h=m_[w]|0,(h<<24>>24|0)==45|(h<<24>>24|0)==43){m=u+1|0;break}if(!((v|0)>1&h<<24>>24==48)){p=4284;break}if(h=m_[u+1|0]|0,!((h<<24>>24|0)==120|(h<<24>>24|0)==88)){p=4284;break}m=u+2|0}else(n|0)==32?m=d:p=4284;while(0);(p|0)==4284&&(m=w),p=l|0,Zc(k,f),j(w,m,d,p,s,b,k),$k(E_[k>>2]|0)|0,E_[c>>2]=E_[i>>2],q(e,c,p,E_[s>>2]|0,E_[b>>2]|0,f,a),O_=r}function G(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t=+t;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,D=0,C=0;r=O_,O_=O_+320|0,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=r|0,o=r+8|0,u=r+40|0,l=r+48|0,s=r+280|0,b=r+288|0,k=r+296|0,c=r+304|0,d=r+312|0,E_[n>>2]=37,E_[n+4>>2]=0,h=n,n=h+1|0,_=f+4|0,w=E_[_>>2]|0,(w&2048|0)==0?v=n:(m_[n]=43,v=h+2|0),(w&1024|0)==0?m=v:(m_[v]=35,m=v+1|0),v=w&260,n=w>>>14;do{if((v|0)==260){if((n&1|0)==0){m_[m]=97,p=0;break}m_[m]=65,p=0;break}if(m_[m]=46,w=m+2|0,m_[m+1|0]=42,(v|0)==256){if((n&1|0)==0){m_[w]=101,p=1;break}m_[w]=69,p=1;break}if((v|0)==4){if((n&1|0)==0){m_[w]=102,p=1;break}m_[w]=70,p=1;break}if((n&1|0)==0){m_[w]=103,p=1;break}m_[w]=71,p=1;break}while(0);n=o|0,E_[u>>2]=n;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);o=E_[3666]|0,p?(v=N(n,30,o,h,(E=O_,O_=O_+16|0,E_[E>>2]=E_[f+8>>2],A_[E+8>>3]=t,E|0))|0,O_=E,S=v):(v=N(n,30,o,h,(E=O_,O_=O_+8|0,A_[E>>3]=t,E|0))|0,O_=E,S=v);do if((S|0)>29){if(v=(m_[16672]|0)==0,p){do if(v){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);o=x(u,E_[3666]|0,h,(E=O_,O_=O_+16|0,E_[E>>2]=E_[f+8>>2],A_[E+8>>3]=t,E|0))|0,O_=E,g=o}else{do if(v){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);v=x(u,E_[3666]|0,h,(E=O_,O_=O_+16|0,E_[E>>2]=E_[f+8>>2],A_[E+8>>3]=t,E|0))|0,O_=E,g=v}if(v=E_[u>>2]|0,(v|0)!=0){y=g,A=v,O=v;break}pn(),v=E_[u>>2]|0,y=g,A=v,O=v}else y=S,A=0,O=E_[u>>2]|0;while(0);S=O+y|0,g=E_[_>>2]&176;do if((g|0)==16){if(_=m_[O]|0,(_<<24>>24|0)==45|(_<<24>>24|0)==43){R=O+1|0;break}if(!((y|0)>1&_<<24>>24==48)){F=4340;break}if(_=m_[O+1|0]|0,!((_<<24>>24|0)==120|(_<<24>>24|0)==88)){F=4340;break}R=O+2|0}else(g|0)==32?R=S:F=4340;while(0);(F|0)==4340&&(R=O);do if((O|0)==(n|0))M=l|0,D=0,C=n;else{if(F=on(y<<3)|0,g=F,(F|0)!=0){M=g,D=g,C=O;break}pn(),M=g,D=g,C=E_[u>>2]|0}while(0);return Zc(k,f),Q(C,R,S,M,s,b,k),$k(E_[k>>2]|0)|0,k=i|0,E_[d>>2]=E_[k>>2],q(c,d,M,E_[s>>2]|0,E_[b>>2]|0,f,a),a=E_[c>>2]|0,E_[k>>2]=a,E_[e>>2]=a,(D|0)!=0&&un(D),(A|0)==0?void(O_=r):(un(A),void(O_=r))}function Q(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0;o=O_,O_=O_+48|0,u=o|0,l=o+16|0,s=o+32|0,b=n|0,n=E_[b>>2]|0,(E_[4026]|0)!=-1&&(E_[l>>2]=16104,E_[l+4>>2]=14,E_[l+8>>2]=0,mc(16104,l,98)),l=(E_[4027]|0)-1|0,k=E_[n+8>>2]|0,(E_[n+12>>2]|0)-k>>2>>>0<=l>>>0&&(c=Yw(4)|0,d=c,Ht(d),gw(c|0,11024,132)),n=E_[k+(l<<2)>>2]|0,(n|0)==0&&(c=Yw(4)|0,d=c,Ht(d),gw(c|0,11024,132)),c=n,d=E_[b>>2]|0,(E_[3930]|0)!=-1&&(E_[u>>2]=15720,E_[u+4>>2]=14,E_[u+8>>2]=0,mc(15720,u,98)),u=(E_[3931]|0)-1|0,b=E_[d+8>>2]|0,(E_[d+12>>2]|0)-b>>2>>>0<=u>>>0&&(h=Yw(4)|0,_=h,Ht(_),gw(h|0,11024,132)),d=E_[b+(u<<2)>>2]|0,(d|0)==0&&(h=Yw(4)|0,_=h,Ht(_),gw(h|0,11024,132)),h=d,Jw[E_[(E_[d>>2]|0)+20>>2]&127](s,h),E_[t>>2]=f,_=m_[e]|0,(_<<24>>24|0)==45|(_<<24>>24|0)==43?(u=lv[E_[(E_[n>>2]|0)+44>>2]&31](c,_)|0,_=E_[t>>2]|0,E_[t>>2]=_+4,E_[_>>2]=u,w=e+1|0):w=e,u=i;e:do if((u-w|0)>1){if((m_[w]|0)!=48){v=w,m=4395;break}if(_=w+1|0,b=m_[_]|0,!((b<<24>>24|0)==120|(b<<24>>24|0)==88)){v=w,m=4395;break}for(b=n,l=lv[E_[(E_[b>>2]|0)+44>>2]&31](c,48)|0,k=E_[t>>2]|0,E_[t>>2]=k+4,E_[k>>2]=l,l=w+2|0,k=lv[E_[(E_[b>>2]|0)+44>>2]&31](c,m_[_]|0)|0,_=E_[t>>2]|0,E_[t>>2]=_+4,E_[_>>2]=k,k=l;;){if(k>>>0>=i>>>0){p=k,E=l;break e}_=m_[k]|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);if((cw(_<<24>>24|0,E_[3666]|0)|0)==0){p=k,E=l;break}k=k+1|0}}else v=w,m=4395;while(0);e:do if((m|0)==4395)for(;;){if(m=0,v>>>0>=i>>>0){p=v,E=w;break e}k=m_[v]|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);if((Uw(k<<24>>24|0,E_[3666]|0)|0)==0){p=v,E=w;break}v=v+1|0,m=4395}while(0);m=s,v=s,w=S_[v]|0,S=(w&1|0)==0?w>>>1:E_[s+4>>2]|0;do if((S|0)==0)w=E_[t>>2]|0,_=E_[(E_[n>>2]|0)+48>>2]|0,Kw[_&15](c,E,p,w)|0,E_[t>>2]=(E_[t>>2]|0)+(p-E<<2);else{do if((E|0)!=(p|0)){if(w=p-1|0,!(E>>>0<w>>>0))break;g=E,y=w;do w=m_[g]|0,m_[g]=m_[y]|0,m_[y]=w,g=g+1|0,y=y-1|0;while(g>>>0<y>>>0)}while(0);if(k=rv[E_[(E_[d>>2]|0)+16>>2]&127](h)|0,E>>>0<p>>>0)for(w=m+1|0,_=s+4|0,l=s+8|0,b=n,A=0,O=0,R=E;;){F=(m_[v]&1)==0;do if((m_[(F?w:E_[l>>2]|0)+O|0]|0)>0){if((A|0)!=(m_[(F?w:E_[l>>2]|0)+O|0]|0)){M=O,N=A;break}D=E_[t>>2]|0,E_[t>>2]=D+4,E_[D>>2]=k,D=S_[v]|0,M=(O>>>0<(((D&1|0)==0?D>>>1:E_[_>>2]|0)-1|0)>>>0)+O|0,N=0}else M=O,N=A;while(0);if(F=lv[E_[(E_[b>>2]|0)+44>>2]&31](c,m_[R]|0)|0,D=E_[t>>2]|0,E_[t>>2]=D+4,E_[D>>2]=F,F=R+1|0,!(F>>>0<p>>>0))break;A=N+1|0,O=M,R=F}if(R=f+(E-e<<2)|0,O=E_[t>>2]|0,(R|0)==(O|0))break;if(A=O-4|0,!(R>>>0<A>>>0))break;C=R,T=A;do A=E_[C>>2]|0,E_[C>>2]=E_[T>>2],E_[T>>2]=A,C=C+4|0,T=T-4|0;while(C>>>0<T>>>0)}while(0);e:do if(p>>>0<i>>>0){for(T=n,C=p;;){if(E=m_[C]|0,E<<24>>24==46)break;if(M=lv[E_[(E_[T>>2]|0)+44>>2]&31](c,E)|0,E=E_[t>>2]|0,E_[t>>2]=E+4,E_[E>>2]=M,M=C+1|0,!(M>>>0<i>>>0)){P=M;break e}C=M}T=rv[E_[(E_[d>>2]|0)+12>>2]&127](h)|0,M=E_[t>>2]|0,E_[t>>2]=M+4,E_[M>>2]=T,P=C+1|0}else P=p;while(0);return Kw[E_[(E_[n>>2]|0)+48>>2]&15](c,P,i,E_[t>>2]|0)|0,c=(E_[t>>2]|0)+(u-P<<2)|0,E_[t>>2]=c,(r|0)==(i|0)?(L=c,E_[a>>2]=L,yc(s),void(O_=o)):(L=f+(r-e<<2)|0,E_[a>>2]=L,yc(s),void(O_=o))}function J(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t=+t;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,D=0,C=0;r=O_,O_=O_+320|0,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=r|0,o=r+8|0,u=r+40|0,l=r+48|0,s=r+280|0,b=r+288|0,k=r+296|0,c=r+304|0,d=r+312|0,E_[n>>2]=37,E_[n+4>>2]=0,h=n,n=h+1|0,_=f+4|0,w=E_[_>>2]|0,(w&2048|0)==0?v=n:(m_[n]=43,v=h+2|0),(w&1024|0)==0?m=v:(m_[v]=35,m=v+1|0),v=w&260,n=w>>>14;do{if((v|0)==260){if(m_[m]=76,w=m+1|0,(n&1|0)==0){m_[w]=97,p=0;break}m_[w]=65,p=0;break}if(m_[m]=46,m_[m+1|0]=42,m_[m+2|0]=76,w=m+3|0,(v|0)==4){if((n&1|0)==0){m_[w]=102,p=1;break}m_[w]=70,p=1;break}if((v|0)==256){if((n&1|0)==0){m_[w]=101,p=1;break}m_[w]=69,p=1;break}if((n&1|0)==0){m_[w]=103,p=1;break}m_[w]=71,p=1;break}while(0);n=o|0,E_[u>>2]=n;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);o=E_[3666]|0,p?(v=N(n,30,o,h,(E=O_,O_=O_+16|0,E_[E>>2]=E_[f+8>>2],A_[E+8>>3]=t,E|0))|0,O_=E,S=v):(v=N(n,30,o,h,(E=O_,O_=O_+8|0,A_[E>>3]=t,E|0))|0,O_=E,S=v);do if((S|0)>29){if(v=(m_[16672]|0)==0,p){do if(v){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);o=x(u,E_[3666]|0,h,(E=O_,O_=O_+16|0,E_[E>>2]=E_[f+8>>2],A_[E+8>>3]=t,E|0))|0,O_=E,g=o}else{do if(v){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);v=x(u,E_[3666]|0,h,(E=O_,O_=O_+8|0,A_[E>>3]=t,E|0))|0,O_=E,g=v}if(v=E_[u>>2]|0,(v|0)!=0){y=g,A=v,O=v;break}pn(),v=E_[u>>2]|0,y=g,A=v,O=v}else y=S,A=0,O=E_[u>>2]|0;while(0);S=O+y|0,g=E_[_>>2]&176;do if((g|0)==16){if(_=m_[O]|0,(_<<24>>24|0)==45|(_<<24>>24|0)==43){R=O+1|0;break}if(!((y|0)>1&_<<24>>24==48)){F=4492;break}if(_=m_[O+1|0]|0,!((_<<24>>24|0)==120|(_<<24>>24|0)==88)){F=4492;break}R=O+2|0}else(g|0)==32?R=S:F=4492;while(0);(F|0)==4492&&(R=O);do if((O|0)==(n|0))M=l|0,D=0,C=n;else{if(F=on(y<<3)|0,g=F,(F|0)!=0){M=g,D=g,C=O;break}pn(),M=g,D=g,C=E_[u>>2]|0}while(0);return Zc(k,f),Q(C,R,S,M,s,b,k),$k(E_[k>>2]|0)|0,k=i|0,E_[d>>2]=E_[k>>2],q(c,d,M,E_[s>>2]|0,E_[b>>2]|0,f,a),a=E_[c>>2]|0,E_[k>>2]=a,E_[e>>2]=a,(D|0)!=0&&un(D),(A|0)==0?void(O_=r):(un(A),void(O_=r))}function $(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0;r=O_,O_=O_+216|0,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=r|0,o=r+24|0,u=r+48|0,l=r+200|0,s=r+208|0,b=r+16|0,m_[b]=m_[5208]|0,m_[b+1|0]=m_[5209]|0,m_[b+2|0]=m_[5210]|0,m_[b+3|0]=m_[5211]|0,m_[b+4|0]=m_[5212]|0,m_[b+5|0]=m_[5213]|0,k=o|0;
do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);c=N(k,20,E_[3666]|0,b,(b=O_,O_=O_+8|0,E_[b>>2]=t,b|0))|0,O_=b,b=o+c|0,t=E_[f+4>>2]&176;do if((t|0)==16){if(d=m_[k]|0,(d<<24>>24|0)==45|(d<<24>>24|0)==43){h=o+1|0;break}if(!((c|0)>1&d<<24>>24==48)){_=4525;break}if(d=m_[o+1|0]|0,!((d<<24>>24|0)==120|(d<<24>>24|0)==88)){_=4525;break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b+8>>2]|0;do if((E_[b+12>>2]|0)-_>>2>>>0>s>>>0){if(w=E_[_+(s<<2)>>2]|0,(w|0)==0)break;v=w,m=E_[h>>2]|0,$k(m)|0,E_[t>>2]=0,m=i|0;e:do if((o|0)==(u|0))p=4604;else{E=f|0,S=w,g=w,y=w+8|0,A=r,O=c|0,R=d|0,F=k|0,M=o,N=0;r:for(;;){for(D=N;;){if((D|0)!=0){p=4604;break e}C=E_[m>>2]|0;do if((C|0)==0)T=0;else{if((E_[C+12>>2]|0)!=(E_[C+16>>2]|0)){T=C;break}if((rv[E_[(E_[C>>2]|0)+36>>2]&127](C)|0)!=-1){T=C;break}E_[m>>2]=0,T=0}while(0);C=(T|0)==0,P=E_[E>>2]|0;i:do if((P|0)==0)p=4557;else{do if((E_[P+12>>2]|0)==(E_[P+16>>2]|0)){if((rv[E_[(E_[P>>2]|0)+36>>2]&127](P)|0)!=-1)break;E_[E>>2]=0,p=4557;break i}while(0);if(!C){p=4558;break r}L=P}while(0);if((p|0)==4557){if(p=0,C){p=4558;break r}L=0}if((iv[E_[(E_[S>>2]|0)+36>>2]&63](v,m_[M]|0,0)|0)<<24>>24==37){p=4561;break}if(P=m_[M]|0,P<<24>>24>=0&&(I=E_[y>>2]|0,(p_[I+(P<<24>>24<<1)>>1]&8192)!=0)){x=M,p=4572;break}if(B=T+12|0,P=E_[B>>2]|0,H=T+16|0,U=(P|0)==(E_[H>>2]|0)?(rv[E_[(E_[T>>2]|0)+36>>2]&127](T)|0)&255:m_[P]|0,P=lv[E_[(E_[g>>2]|0)+12>>2]&31](v,U)|0,P<<24>>24==(lv[E_[(E_[g>>2]|0)+12>>2]&31](v,m_[M]|0)|0)<<24>>24){p=4599;break}E_[t>>2]=4,D=4}i:do if((p|0)==4572){for(;;){if(p=0,D=x+1|0,(D|0)==(u|0)){z=u;break}if(P=m_[D]|0,P<<24>>24<0){z=D;break}if((p_[I+(P<<24>>24<<1)>>1]&8192)==0){z=D;break}x=D,p=4572}for(C=T,D=L;;){do if((C|0)==0)Y=0;else{if((E_[C+12>>2]|0)!=(E_[C+16>>2]|0)){Y=C;break}if((rv[E_[(E_[C>>2]|0)+36>>2]&127](C)|0)!=-1){Y=C;break}E_[m>>2]=0,Y=0}while(0);P=(Y|0)==0;do{if((D|0)!=0){if((E_[D+12>>2]|0)!=(E_[D+16>>2]|0)){if(P){V=D;break}Z=z;break i}if((rv[E_[(E_[D>>2]|0)+36>>2]&127](D)|0)==-1){E_[E>>2]=0,p=4585;break}if(P^(D|0)==0){V=D;break}Z=z;break i}p=4585}while(0);if((p|0)==4585){if(p=0,P){Z=z;break i}V=0}if(j=Y+12|0,q=E_[j>>2]|0,W=Y+16|0,K=(q|0)==(E_[W>>2]|0)?(rv[E_[(E_[Y>>2]|0)+36>>2]&127](Y)|0)&255:m_[q]|0,K<<24>>24<0){Z=z;break i}if((p_[(E_[y>>2]|0)+(K<<24>>24<<1)>>1]&8192)==0){Z=z;break i}q=E_[j>>2]|0,(q|0)!=(E_[W>>2]|0)?(E_[j>>2]=q+1,C=Y,D=V):(W=E_[(E_[Y>>2]|0)+40>>2]|0,rv[W&127](Y)|0,C=Y,D=V)}}else if((p|0)==4561){if(p=0,D=M+1|0,(D|0)==(u|0)){p=4562;break r}if(C=iv[E_[(E_[S>>2]|0)+36>>2]&63](v,m_[D]|0,0)|0,(C<<24>>24|0)==69|(C<<24>>24|0)==48){if(q=M+2|0,(q|0)==(u|0)){p=4565;break r}X=C,G=iv[E_[(E_[S>>2]|0)+36>>2]&63](v,m_[q]|0,0)|0,Q=q}else X=0,G=C,Q=D;D=E_[(E_[A>>2]|0)+36>>2]|0,E_[O>>2]=T,E_[R>>2]=L,ov[D&7](k,r,c,d,a,t,n,G,X),E_[m>>2]=E_[F>>2],Z=Q+1|0}else(p|0)==4599&&(p=0,D=E_[B>>2]|0,(D|0)==(E_[H>>2]|0)?(C=E_[(E_[T>>2]|0)+40>>2]|0,rv[C&127](T)|0):E_[B>>2]=D+1,Z=M+1|0);while(0);if((Z|0)==(u|0)){p=4604;break e}M=Z,N=E_[t>>2]|0}if((p|0)==4565){E_[t>>2]=4,J=T;break}if((p|0)==4562){E_[t>>2]=4,J=T;break}if((p|0)==4558){E_[t>>2]=4,J=T;break}}while(0);(p|0)==4604&&(J=E_[m>>2]|0),v=i|0;do if((J|0)!=0){if((E_[J+12>>2]|0)!=(E_[J+16>>2]|0))break;if((rv[E_[(E_[J>>2]|0)+36>>2]&127](J)|0)!=-1)break;E_[v>>2]=0}while(0);m=E_[v>>2]|0,w=(m|0)==0,N=f|0,M=E_[N>>2]|0;e:do{if((M|0)!=0){do if((E_[M+12>>2]|0)==(E_[M+16>>2]|0)){if((rv[E_[(E_[M>>2]|0)+36>>2]&127](M)|0)!=-1)break;E_[N>>2]=0,p=4614;break e}while(0);if(!w)break;return $=e|0,E_[$>>2]=m,void(O_=l)}p=4614}while(0);do if((p|0)==4614){if(w)break;return $=e|0,E_[$>>2]=m,void(O_=l)}while(0);return E_[t>>2]=E_[t>>2]|2,$=e|0,E_[$>>2]=m,void(O_=l)}while(0);l=Yw(4)|0,Ht(l),gw(l|0,11024,132)}function rr(e){e|=0,Qk(e|0),hn(e)}function ir(e){e|=0,Qk(e|0)}function fr(e){return e|=0,2}function ar(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0;o=O_,O_=O_+16|0,u=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[u>>2],u=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[u>>2],u=o|0,l=o+8|0,E_[u>>2]=E_[i>>2],E_[l>>2]=E_[f>>2],er(e,r,u,l,a,t,n,5192,5200),O_=o}function tr(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;o=O_,O_=O_+16|0,u=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2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)-s>>2>>>0>u>>>0){if(b=E_[s+(u<<2)>>2]|0,(b|0)==0)break;return k=b,b=E_[a>>2]|0,$k(b)|0,E_[o>>2]=E_[f>>2],b=cr(i,o,t,k,4)|0,(E_[t>>2]&4|0)!=0?(c=i|0,d=E_[c>>2]|0,h=e|0,E_[h>>2]=d,void(O_=r)):(_=(b|0)<69?b+2e3|0:(b-69|0)>>>0<31?b+1900|0:b,E_[n+20>>2]=_-1900,c=i|0,d=E_[c>>2]|0,h=e|0,E_[h>>2]=d,void(O_=r))}while(0);r=Yw(4)|0,Ht(r),gw(r|0,11024,132)}function lr(e,r,i,f,a,t,n,o,u){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0;var l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0,J=0,$=0,rr=0,ir=0,fr=0,ar=0,tr=0,nr=0,or=0,ur=0,lr=0;u=O_,O_=O_+328|0,l=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[l>>2],l=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[l>>2],l=u|0,s=u+8|0,b=u+16|0,k=u+24|0,c=u+32|0,d=u+40|0,h=u+48|0,_=u+56|0,w=u+64|0,v=u+72|0,m=u+80|0,p=u+88|0,E=u+96|0,S=u+112|0,g=u+120|0,y=u+128|0,A=u+136|0,O=u+144|0,R=u+152|0,F=u+160|0,M=u+168|0,N=u+176|0,D=u+184|0,C=u+192|0,T=u+200|0,P=u+208|0,L=u+216|0,I=u+224|0,x=u+232|0,B=u+240|0,H=u+248|0,U=u+256|0,z=u+264|0,Y=u+272|0,V=u+280|0,Z=u+288|0,j=u+296|0,q=u+304|0,W=u+312|0,K=u+320|0,E_[t>>2]=0,Zc(S,a),X=S|0,S=E_[X>>2]|0,(E_[4028]|0)!=-1&&(E_[E>>2]=16112,E_[E+4>>2]=14,E_[E+8>>2]=0,mc(16112,E,98)),E=(E_[4029]|0)-1|0,G=E_[S+8>>2]|0;do if((E_[S+12>>2]|0)-G>>2>>>0>E>>>0){if(Q=E_[G+(E<<2)>>2]|0,(Q|0)==0)break;J=Q,Q=E_[X>>2]|0,$k(Q)|0;e:do switch(o<<24>>24|0){case 99:Q=r+8|0,$=rv[E_[(E_[Q>>2]|0)+12>>2]&127](Q)|0,Q=i|0,E_[y>>2]=E_[Q>>2],E_[A>>2]=E_[f>>2],rr=$,ir=m_[$]|0,(ir&1)==0?(fr=rr+1|0,ar=rr+1|0):(rr=E_[$+8>>2]|0,fr=rr,ar=rr),rr=ir&255,tr=(rr&1|0)==0?rr>>>1:E_[$+4>>2]|0,er(g,r,y,A,a,t,n,ar,fr+tr|0),E_[Q>>2]=E_[g>>2];break;case 72:if(E_[w>>2]=E_[f>>2],Q=cr(i,w,t,J,2)|0,$=E_[t>>2]|0,($&4|0)==0&(Q|0)<24){E_[n+8>>2]=Q;break e}E_[t>>2]=$|4;break e;case 97:case 65:if($=E_[f>>2]|0,Q=r+8|0,rr=rv[E_[E_[Q>>2]>>2]&127](Q)|0,E_[p>>2]=$,$=(oh(i,p,rr,rr+168|0,J,t,0)|0)-rr|0,($|0)>=168)break e;E_[n+24>>2]=(($|0)/12|0|0)%7|0;break;case 106:if(E_[h>>2]=E_[f>>2],$=cr(i,h,t,J,3)|0,rr=E_[t>>2]|0,(rr&4|0)==0&($|0)<366){E_[n+28>>2]=$;break e}E_[t>>2]=rr|4;break e;case 68:rr=i|0,E_[R>>2]=E_[rr>>2],E_[F>>2]=E_[f>>2],er(O,r,R,F,a,t,n,5184,5192),E_[rr>>2]=E_[O>>2];break;case 109:if(E_[d>>2]=E_[f>>2],rr=(cr(i,d,t,J,2)|0)-1|0,$=E_[t>>2]|0,($&4|0)==0&(rr|0)<12){E_[n+16>>2]=rr;break e}E_[t>>2]=$|4;break e;case 77:if(E_[c>>2]=E_[f>>2],$=cr(i,c,t,J,2)|0,rr=E_[t>>2]|0,(rr&4|0)==0&($|0)<60){E_[n+4>>2]=$;break e}E_[t>>2]=rr|4;break e;case 110:case 116:E_[C>>2]=E_[f>>2],sr(0,i,C,t,J);break;case 112:E_[T>>2]=E_[f>>2],br(r,n+8|0,i,T,t,J);break;case 114:rr=i|0,E_[L>>2]=E_[rr>>2],E_[I>>2]=E_[f>>2],er(P,r,L,I,a,t,n,5160,5171),E_[rr>>2]=E_[P>>2];break;case 82:rr=i|0,E_[B>>2]=E_[rr>>2],E_[H>>2]=E_[f>>2],er(x,r,B,H,a,t,n,5152,5157),E_[rr>>2]=E_[x>>2];break;case 83:if(E_[k>>2]=E_[f>>2],rr=cr(i,k,t,J,2)|0,$=E_[t>>2]|0,($&4|0)==0&(rr|0)<61){E_[n>>2]=rr;break e}E_[t>>2]=$|4;break e;case 84:$=i|0,E_[z>>2]=E_[$>>2],E_[Y>>2]=E_[f>>2],er(U,r,z,Y,a,t,n,5144,5152),E_[$>>2]=E_[U>>2];break;case 119:if(E_[b>>2]=E_[f>>2],$=cr(i,b,t,J,1)|0,rr=E_[t>>2]|0,(rr&4|0)==0&($|0)<7){E_[n+24>>2]=$;break e}E_[t>>2]=rr|4;break e;case 120:return rr=E_[(E_[r>>2]|0)+20>>2]|0,E_[V>>2]=E_[i>>2],E_[Z>>2]=E_[f>>2],fv[rr&127](e,r,V,Z,a,t,n),void(O_=u);case 88:rr=r+8|0,$=rv[E_[(E_[rr>>2]|0)+24>>2]&127](rr)|0,rr=i|0,E_[q>>2]=E_[rr>>2],E_[W>>2]=E_[f>>2],Q=$,ir=m_[$]|0,(ir&1)==0?(nr=Q+1|0,or=Q+1|0):(Q=E_[$+8>>2]|0,nr=Q,or=Q),Q=ir&255,ur=(Q&1|0)==0?Q>>>1:E_[$+4>>2]|0,er(j,r,q,W,a,t,n,or,nr+ur|0),E_[rr>>2]=E_[j>>2];break;case 121:if(E_[s>>2]=E_[f>>2],rr=cr(i,s,t,J,4)|0,(E_[t>>2]&4|0)!=0)break e;lr=(rr|0)<69?rr+2e3|0:(rr-69|0)>>>0<31?rr+1900|0:rr,E_[n+20>>2]=lr-1900;break;case 89:if(E_[l>>2]=E_[f>>2],rr=cr(i,l,t,J,4)|0,(E_[t>>2]&4|0)!=0)break e;E_[n+20>>2]=rr-1900;break;case 37:E_[K>>2]=E_[f>>2],kr(0,i,K,t,J);break;case 98:case 66:case 104:if(rr=E_[f>>2]|0,$=r+8|0,Q=rv[E_[(E_[$>>2]|0)+4>>2]&127]($)|0,E_[m>>2]=rr,rr=(oh(i,m,Q,Q+288|0,J,t,0)|0)-Q|0,(rr|0)>=288)break e;E_[n+16>>2]=((rr|0)/12|0|0)%12|0;break;case 70:rr=i|0,E_[N>>2]=E_[rr>>2],E_[D>>2]=E_[f>>2],er(M,r,N,D,a,t,n,5176,5184),E_[rr>>2]=E_[M>>2];break;case 100:case 101:rr=n+12|0,E_[v>>2]=E_[f>>2],Q=cr(i,v,t,J,2)|0,$=E_[t>>2]|0;do if(($&4|0)==0){if((Q-1|0)>>>0>=31)break;E_[rr>>2]=Q;break e}while(0);E_[t>>2]=$|4;break;case 73:Q=n+8|0,E_[_>>2]=E_[f>>2],rr=cr(i,_,t,J,2)|0,ir=E_[t>>2]|0;do if((ir&4|0)==0){if((rr-1|0)>>>0>=12)break;E_[Q>>2]=rr;break e}while(0);E_[t>>2]=ir|4;break;default:E_[t>>2]=E_[t>>2]|4}while(0);return E_[e>>2]=E_[i>>2],void(O_=u)}while(0);u=Yw(4)|0,Ht(u),gw(u|0,11024,132)}function sr(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0;e=O_,t=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[t>>2],t=r|0,r=i|0,i=a+8|0;e:for(;;){a=E_[t>>2]|0;do{if((a|0)!=0){if((E_[a+12>>2]|0)!=(E_[a+16>>2]|0)){n=a;break}if((rv[E_[(E_[a>>2]|0)+36>>2]&127](a)|0)==-1){E_[t>>2]=0,n=0;break}n=E_[t>>2]|0;break}n=0}while(0);a=(n|0)==0,o=E_[r>>2]|0;r:do if((o|0)==0)u=4754;else{do if((E_[o+12>>2]|0)==(E_[o+16>>2]|0)){if((rv[E_[(E_[o>>2]|0)+36>>2]&127](o)|0)!=-1)break;E_[r>>2]=0,u=4754;break r}while(0);if(!a){b=o,k=0;break e}l=o,s=0}while(0);if((u|0)==4754){if(u=0,a){b=0,k=1;break}l=0,s=1}if(o=E_[t>>2]|0,c=E_[o+12>>2]|0,d=(c|0)==(E_[o+16>>2]|0)?(rv[E_[(E_[o>>2]|0)+36>>2]&127](o)|0)&255:m_[c]|0,d<<24>>24<0){b=l,k=s;break}if((p_[(E_[i>>2]|0)+(d<<24>>24<<1)>>1]&8192)==0){b=l,k=s;break}c=E_[t>>2]|0,o=c+12|0,h=E_[o>>2]|0,(h|0)!=(E_[c+16>>2]|0)?E_[o>>2]=h+1:(_=E_[(E_[c>>2]|0)+40>>2]|0,rv[_&127](c)|0)}s=E_[t>>2]|0;do{if((s|0)!=0){if((E_[s+12>>2]|0)!=(E_[s+16>>2]|0)){w=s;break}if((rv[E_[(E_[s>>2]|0)+36>>2]&127](s)|0)==-1){E_[t>>2]=0,w=0;break}w=E_[t>>2]|0;break}w=0}while(0);t=(w|0)==0;do{if(!k){if((E_[b+12>>2]|0)!=(E_[b+16>>2]|0)){if(!(t^(b|0)==0))break;return void(O_=e)}if((rv[E_[(E_[b>>2]|0)+36>>2]&127](b)|0)==-1){E_[r>>2]=0,u=4773;break}if(!t)break;return void(O_=e)}u=4773}while(0);do if((u|0)==4773){if(t)break;return void(O_=e)}while(0);E_[f>>2]=E_[f>>2]|2,O_=e}function br(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0;if(n=O_,O_=O_+8|0,o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=n|0,u=e+8|0,e=rv[E_[(E_[u>>2]|0)+8>>2]&127](u)|0,u=S_[e]|0,l=(u&1|0)==0?u>>>1:E_[e+4>>2]|0,u=S_[e+12|0]|0,s=(u&1|0)==0?u>>>1:E_[e+16>>2]|0,(l|0)==(-s|0))return E_[a>>2]=E_[a>>2]|4,void(O_=n);E_[o>>2]=E_[f>>2],f=oh(i,o,e,e+24|0,t,a,0)|0,a=f-e|0;do if((f|0)==(e|0)){if((E_[r>>2]|0)!=12)break;return E_[r>>2]=0,void(O_=n)}while(0);return(a|0)!=12?void(O_=n):(a=E_[r>>2]|0,(a|0)>=12?void(O_=n):(E_[r>>2]=a+12,void(O_=n)))}function kr(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0;e=O_,t=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[t>>2],t=r|0,r=E_[t>>2]|0;do{if((r|0)!=0){if((E_[r+12>>2]|0)!=(E_[r+16>>2]|0)){n=r;break}if((rv[E_[(E_[r>>2]|0)+36>>2]&127](r)|0)==-1){E_[t>>2]=0,n=0;break}n=E_[t>>2]|0;break}n=0}while(0);r=(n|0)==0,n=i|0,i=E_[n>>2]|0;e:do if((i|0)==0)o=4811;else{do if((E_[i+12>>2]|0)==(E_[i+16>>2]|0)){if((rv[E_[(E_[i>>2]|0)+36>>2]&127](i)|0)!=-1)break;E_[n>>2]=0,o=4811;break e}while(0);r?(u=i,l=0):o=4812}while(0);if((o|0)==4811&&(r?o=4812:(u=0,l=1)),(o|0)==4812)return E_[f>>2]=E_[f>>2]|6,void(O_=e);if(r=E_[t>>2]|0,i=E_[r+12>>2]|0,s=(i|0)==(E_[r+16>>2]|0)?(rv[E_[(E_[r>>2]|0)+36>>2]&127](r)|0)&255:m_[i]|0,(iv[E_[(E_[a>>2]|0)+36>>2]&63](a,s,0)|0)<<24>>24!=37)return E_[f>>2]=E_[f>>2]|4,void(O_=e);s=E_[t>>2]|0,a=s+12|0,i=E_[a>>2]|0,(i|0)==(E_[s+16>>2]|0)?(r=E_[(E_[s>>2]|0)+40>>2]|0,rv[r&127](s)|0):E_[a>>2]=i+1,i=E_[t>>2]|0;do{if((i|0)!=0){if((E_[i+12>>2]|0)!=(E_[i+16>>2]|0)){b=i;break}if((rv[E_[(E_[i>>2]|0)+36>>2]&127](i)|0)==-1){E_[t>>2]=0,b=0;break}b=E_[t>>2]|0;break}b=0}while(0);t=(b|0)==0;do{if(!l){if((E_[u+12>>2]|0)!=(E_[u+16>>2]|0)){if(!(t^(u|0)==0))break;return void(O_=e)}if((rv[E_[(E_[u>>2]|0)+36>>2]&127](u)|0)==-1){E_[n>>2]=0,o=4831;break}if(!t)break;return void(O_=e)}o=4831}while(0);do if((o|0)==4831){if(t)break;return void(O_=e)}while(0);E_[f>>2]=E_[f>>2]|2,O_=e}function cr(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0;t=O_,n=r,r=O_,O_=O_+4|0,O_=O_+7&-8,E_[r>>2]=E_[n>>2],n=e|0,e=E_[n>>2]|0;do{if((e|0)!=0){if((E_[e+12>>2]|0)!=(E_[e+16>>2]|0)){o=e;break}if((rv[E_[(E_[e>>2]|0)+36>>2]&127](e)|0)==-1){E_[n>>2]=0,o=0;break}o=E_[n>>2]|0;break}o=0}while(0);e=(o|0)==0,o=r|0,r=E_[o>>2]|0;e:do if((r|0)==0)u=4851;else{do if((E_[r+12>>2]|0)==(E_[r+16>>2]|0)){if((rv[E_[(E_[r>>2]|0)+36>>2]&127](r)|0)!=-1)break;E_[o>>2]=0,u=4851;break e}while(0);e?l=r:u=4852}while(0);if((u|0)==4851&&(e?u=4852:l=0),(u|0)==4852)return E_[i>>2]=E_[i>>2]|6,s=0,O_=t,s|0;e=E_[n>>2]|0,r=E_[e+12>>2]|0,b=(r|0)==(E_[e+16>>2]|0)?(rv[E_[(E_[e>>2]|0)+36>>2]&127](e)|0)&255:m_[r]|0;do if(b<<24>>24>=0){if(r=f+8|0,(p_[(E_[r>>2]|0)+(b<<24>>24<<1)>>1]&2048)==0)break;for(e=f,k=(iv[E_[(E_[e>>2]|0)+36>>2]&63](f,b,0)|0)<<24>>24,c=E_[n>>2]|0,d=c+12|0,h=E_[d>>2]|0,(h|0)==(E_[c+16>>2]|0)?(_=E_[(E_[c>>2]|0)+40>>2]|0,rv[_&127](c)|0,w=k,v=a,m=l):(E_[d>>2]=h+1,w=k,v=a,m=l);;){p=w-48|0,k=v-1|0,h=E_[n>>2]|0;do{if((h|0)!=0){if((E_[h+12>>2]|0)!=(E_[h+16>>2]|0)){E=h;break}if((rv[E_[(E_[h>>2]|0)+36>>2]&127](h)|0)==-1){E_[n>>2]=0,E=0;break}E=E_[n>>2]|0;break}E=0}while(0);if(h=(E|0)==0,(m|0)==0)S=E,g=0;else{do if((E_[m+12>>2]|0)==(E_[m+16>>2]|0)){if((rv[E_[(E_[m>>2]|0)+36>>2]&127](m)|0)!=-1){y=m;break}E_[o>>2]=0,y=0}else y=m;while(0);S=E_[n>>2]|0,g=y}if(A=(g|0)==0,!((h^A)&(k|0)>0)){u=4881;break}if(d=E_[S+12>>2]|0,O=(d|0)==(E_[S+16>>2]|0)?(rv[E_[(E_[S>>2]|0)+36>>2]&127](S)|0)&255:m_[d]|0,O<<24>>24<0){s=p,u=4899;break}if((p_[(E_[r>>2]|0)+(O<<24>>24<<1)>>1]&2048)==0){s=p,u=4897;break}d=((iv[E_[(E_[e>>2]|0)+36>>2]&63](f,O,0)|0)<<24>>24)+(p*10|0)|0,c=E_[n>>2]|0,_=c+12|0,R=E_[_>>2]|0,(R|0)!=(E_[c+16>>2]|0)?(E_[_>>2]=R+1,w=d,v=k,m=g):(F=E_[(E_[c>>2]|0)+40>>2]|0,rv[F&127](c)|0,w=d,v=k,m=g)}if((u|0)==4881){do{if((S|0)!=0){if((E_[S+12>>2]|0)!=(E_[S+16>>2]|0)){M=S;break}if((rv[E_[(E_[S>>2]|0)+36>>2]&127](S)|0)==-1){E_[n>>2]=0,M=0;break}M=E_[n>>2]|0;break}M=0}while(0);e=(M|0)==0;e:do{if(!A){do if((E_[g+12>>2]|0)==(E_[g+16>>2]|0)){if((rv[E_[(E_[g>>2]|0)+36>>2]&127](g)|0)!=-1)break;E_[o>>2]=0,u=4891;break e}while(0);if(!e)break;return s=p,O_=t,s|0}u=4891}while(0);do if((u|0)==4891){if(e)break;return s=p,O_=t,s|0}while(0);return E_[i>>2]=E_[i>>2]|2,s=p,O_=t,s|0}if((u|0)==4897)return O_=t,s|0;if((u|0)==4899)return O_=t,s|0}while(0);return E_[i>>2]=E_[i>>2]|4,s=0,O_=t,s|0}function dr(e,r,i,f,a,t,n,o,u){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0;var l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0,J=0,$=0,er=0,rr=0,ir=0,fr=0,ar=0;l=O_,O_=O_+48|0,s=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[s>>2],s=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[s>>2],s=l|0,b=l+16|0,k=l+24|0,c=l+32|0,d=l+40|0,Zc(b,a),h=b|0,b=E_[h>>2]|0,(E_[4026]|0)!=-1&&(E_[s>>2]=16104,E_[s+4>>2]=14,E_[s+8>>2]=0,mc(16104,s,98)),s=(E_[4027]|0)-1|0,_=E_[b+8>>2]|0;do if((E_[b+12>>2]|0)-_>>2>>>0>s>>>0){if(w=E_[_+(s<<2)>>2]|0,(w|0)==0)break;v=w,m=E_[h>>2]|0,$k(m)|0,E_[t>>2]=0,m=i|0;e:do if((o|0)==(u|0))p=4971;else{E=f|0,S=w,g=w,y=w,A=r,O=c|0,R=d|0,F=k|0,M=o,N=0;r:for(;;){for(D=N;;){if((D|0)!=0){p=4971;break e}C=E_[m>>2]|0;do if((C|0)==0)T=0;else{if(P=E_[C+12>>2]|0,L=(P|0)==(E_[C+16>>2]|0)?rv[E_[(E_[C>>2]|0)+36>>2]&127](C)|0:E_[P>>2]|0,(L|0)!=-1){T=C;break}E_[m>>2]=0,T=0}while(0);C=(T|0)==0,P=E_[E>>2]|0;do{if((P|0)!=0){if(I=E_[P+12>>2]|0,x=(I|0)==(E_[P+16>>2]|0)?rv[E_[(E_[P>>2]|0)+36>>2]&127](P)|0:E_[I>>2]|0,(x|0)==-1){E_[E>>2]=0,p=4923;break}if(C^(P|0)==0){B=P;break}p=4925;break r}p=4923}while(0);if((p|0)==4923){if(p=0,C){p=4925;break r}B=0}if((iv[E_[(E_[S>>2]|0)+52>>2]&63](v,E_[M>>2]|0,0)|0)<<24>>24==37){p=4928;break}if(iv[E_[(E_[g>>2]|0)+12>>2]&63](v,8192,E_[M>>2]|0)|0){H=M,p=4938;break}if(U=T+12|0,P=E_[U>>2]|0,z=T+16|0,Y=(P|0)==(E_[z>>2]|0)?rv[E_[(E_[T>>2]|0)+36>>2]&127](T)|0:E_[P>>2]|0,P=lv[E_[(E_[y>>2]|0)+28>>2]&31](v,Y)|0,(P|0)==(lv[E_[(E_[y>>2]|0)+28>>2]&31](v,E_[M>>2]|0)|0)){p=4966;break}E_[t>>2]=4,D=4}i:do if((p|0)==4928){if(p=0,D=M+4|0,(D|0)==(u|0)){p=4929;break r}if(P=iv[E_[(E_[S>>2]|0)+52>>2]&63](v,E_[D>>2]|0,0)|0,(P<<24>>24|0)==69|(P<<24>>24|0)==48){if(I=M+8|0,(I|0)==(u|0)){p=4932;break r}V=P,Z=iv[E_[(E_[S>>2]|0)+52>>2]&63](v,E_[I>>2]|0,0)|0,j=I}else V=0,Z=P,j=D;D=E_[(E_[A>>2]|0)+36>>2]|0,E_[O>>2]=T,E_[R>>2]=B,ov[D&7](k,r,c,d,a,t,n,Z,V),E_[m>>2]=E_[F>>2],q=j+4|0}else if((p|0)==4966)p=0,D=E_[U>>2]|0,(D|0)==(E_[z>>2]|0)?(P=E_[(E_[T>>2]|0)+40>>2]|0,rv[P&127](T)|0):E_[U>>2]=D+4,q=M+4|0;else if((p|0)==4938){for(;;){if(p=0,D=H+4|0,(D|0)==(u|0)){W=u;break}if(!(iv[E_[(E_[g>>2]|0)+12>>2]&63](v,8192,E_[D>>2]|0)|0)){W=D;break}H=D,p=4938}for(C=T,D=B;;){do if((C|0)==0)K=0;else{if(P=E_[C+12>>2]|0,X=(P|0)==(E_[C+16>>2]|0)?rv[E_[(E_[C>>2]|0)+36>>2]&127](C)|0:E_[P>>2]|0,(X|0)!=-1){K=C;break}E_[m>>2]=0,K=0}while(0);P=(K|0)==0;do{if((D|0)!=0){if(I=E_[D+12>>2]|0,G=(I|0)==(E_[D+16>>2]|0)?rv[E_[(E_[D>>2]|0)+36>>2]&127](D)|0:E_[I>>2]|0,(G|0)==-1){E_[E>>2]=0,p=4953;break}if(P^(D|0)==0){Q=D;break}q=W;break i}p=4953}while(0);if((p|0)==4953){if(p=0,P){q=W;break i}Q=0}if(I=K+12|0,J=E_[I>>2]|0,$=K+16|0,er=(J|0)==(E_[$>>2]|0)?rv[E_[(E_[K>>2]|0)+36>>2]&127](K)|0:E_[J>>2]|0,!(iv[E_[(E_[g>>2]|0)+12>>2]&63](v,8192,er)|0)){q=W;break i}J=E_[I>>2]|0,(J|0)!=(E_[$>>2]|0)?(E_[I>>2]=J+4,C=K,D=Q):($=E_[(E_[K>>2]|0)+40>>2]|0,rv[$&127](K)|0,C=K,D=Q)}}while(0);if((q|0)==(u|0)){p=4971;break e}M=q,N=E_[t>>2]|0}if((p|0)==4932){E_[t>>2]=4,rr=T;break}if((p|0)==4925){E_[t>>2]=4,rr=T;break}if((p|0)==4929){E_[t>>2]=4,rr=T;break}}while(0);(p|0)==4971&&(rr=E_[m>>2]|0),v=i|0;do if((rr|0)!=0){if(w=E_[rr+12>>2]|0,ir=(w|0)==(E_[rr+16>>2]|0)?rv[E_[(E_[rr>>2]|0)+36>>2]&127](rr)|0:E_[w>>2]|0,(ir|0)!=-1)break;E_[v>>2]=0}while(0);m=E_[v>>2]|0,w=(m|0)==0,N=f|0,M=E_[N>>2]|0;do{if((M|0)!=0){if(g=E_[M+12>>2]|0,fr=(g|0)==(E_[M+16>>2]|0)?rv[E_[(E_[M>>2]|0)+36>>2]&127](M)|0:E_[g>>2]|0,(fr|0)==-1){E_[N>>2]=0,p=4984;break}if(!(w^(M|0)==0))break;return ar=e|0,E_[ar>>2]=m,void(O_=l)}p=4984}while(0);do if((p|0)==4984){if(w)break;return ar=e|0,E_[ar>>2]=m,void(O_=l)}while(0);return E_[t>>2]=E_[t>>2]|2,ar=e|0,E_[ar>>2]=m,void(O_=l)}while(0);l=Yw(4)|0,Ht(l),gw(l|0,11024,132)}function hr(e){e|=0,Qk(e|0),hn(e)}function _r(e){e|=0,Qk(e|0)}function wr(e){return e|=0,2}function vr(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0;o=O_,O_=O_+16|0,u=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[u>>2],u=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[u>>2],u=o|0,l=o+8|0,E_[u>>2]=E_[i>>2],E_[l>>2]=E_[f>>2],dr(e,r,u,l,a,t,n,5112,5144),O_=o}function mr(e,r,i,f,a,t,n){e|=0,r|=0,i|=0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E_[4026]|0)!=-1&&(E_[u>>2]=16104,E_[u+4>>2]=14,E_[u+8>>2]=0,mc(16104,u,98)),u=(E_[4027]|0)-1|0,s=E_[l+8>>2]|0;do if((E_[l+12>>2]|0)-s>>2>>>0>u>>>0){if(b=E_[s+(u<<2)>>2]|0,(b|0)==0)break;return k=b,b=E_[a>>2]|0,$k(b)|0,E_[o>>2]=E_[f>>2],b=Rr(i,o,t,k,4)|0,(E_[t>>2]&4|0)!=0?(c=i|0,d=E_[c>>2]|0,h=e|0,E_[h>>2]=d,void(O_=r)):(_=(b|0)<69?b+2e3|0:(b-69|0)>>>0<31?b+1900|0:b,E_[n+20>>2]=_-1900,c=i|0,d=E_[c>>2]|0,h=e|0,E_[h>>2]=d,void(O_=r))}while(0);r=Yw(4)|0,Ht(r),gw(r|0,11024,132)}function gr(e,r,i,f,a,t,n,o,u){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0;var l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0,J=0,$=0,er=0,rr=0,ir=0,fr=0,ar=0,tr=0,nr=0,or=0,ur=0,lr=0;u=O_,O_=O_+328|0,l=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[l>>2],l=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[l>>2],l=u|0,s=u+8|0,b=u+16|0,k=u+24|0,c=u+32|0,d=u+40|0,h=u+48|0,_=u+56|0,w=u+64|0,v=u+72|0,m=u+80|0,p=u+88|0,E=u+96|0,S=u+112|0,g=u+120|0,y=u+128|0,A=u+136|0,O=u+144|0,R=u+152|0,F=u+160|0,M=u+168|0,N=u+176|0,D=u+184|0,C=u+192|0,T=u+200|0,P=u+208|0,L=u+216|0,I=u+224|0,x=u+232|0,B=u+240|0,H=u+248|0,U=u+256|0,z=u+264|0,Y=u+272|0,V=u+280|0,Z=u+288|0,j=u+296|0,q=u+304|0,W=u+312|0,K=u+320|0,E_[t>>2]=0,Zc(S,a),X=S|0,S=E_[X>>2]|0,(E_[4026]|0)!=-1&&(E_[E>>2]=16104,E_[E+4>>2]=14,E_[E+8>>2]=0,mc(16104,E,98)),E=(E_[4027]|0)-1|0,G=E_[S+8>>2]|0;do if((E_[S+12>>2]|0)-G>>2>>>0>E>>>0){if(Q=E_[G+(E<<2)>>2]|0,(Q|0)==0)break;J=Q,Q=E_[X>>2]|0,$k(Q)|0;e:do switch(o<<24>>24|0){case 100:case 101:Q=n+12|0,E_[v>>2]=E_[f>>2],$=Rr(i,v,t,J,2)|0,er=E_[t>>2]|0;do if((er&4|0)==0){if(($-1|0)>>>0>=31)break;E_[Q>>2]=$;break e}while(0);E_[t>>2]=er|4;break;case 73:$=n+8|0,E_[_>>2]=E_[f>>2],Q=Rr(i,_,t,J,2)|0,rr=E_[t>>2]|0;do if((rr&4|0)==0){if((Q-1|0)>>>0>=12)break;E_[$>>2]=Q;break e}while(0);E_[t>>2]=rr|4;break;case 72:if(E_[w>>2]=E_[f>>2],Q=Rr(i,w,t,J,2)|0,$=E_[t>>2]|0,($&4|0)==0&(Q|0)<24){E_[n+8>>2]=Q;break e}E_[t>>2]=$|4;break e;case 68:$=i|0,E_[R>>2]=E_[$>>2],E_[F>>2]=E_[f>>2],dr(O,r,R,F,a,t,n,5080,5112),E_[$>>2]=E_[O>>2];break;case 97:case 65:if($=E_[f>>2]|0,Q=r+8|0,er=rv[E_[E_[Q>>2]>>2]&127](Q)|0,E_[p>>2]=$,$=(Ch(i,p,er,er+168|0,J,t,0)|0)-er|0,($|0)>=168)break e;E_[n+24>>2]=(($|0)/12|0|0)%7|0;break;case 109:if(E_[d>>2]=E_[f>>2],$=(Rr(i,d,t,J,2)|0)-1|0,er=E_[t>>2]|0,(er&4|0)==0&($|0)<12){E_[n+16>>2]=$;break e}E_[t>>2]=er|4;break e;case 77:if(E_[c>>2]=E_[f>>2],er=Rr(i,c,t,J,2)|0,$=E_[t>>2]|0,($&4|0)==0&(er|0)<60){E_[n+4>>2]=er;break e}E_[t>>2]=$|4;break e;case 110:case 116:E_[C>>2]=E_[f>>2],yr(0,i,C,t,J);break;case 112:E_[T>>2]=E_[f>>2],Ar(r,n+8|0,i,T,t,J);break;case 114:$=i|0,E_[L>>2]=E_[$>>2],E_[I>>2]=E_[f>>2],dr(P,r,L,I,a,t,n,5032,5076),E_[$>>2]=E_[P>>2];break;case 82:$=i|0,E_[B>>2]=E_[$>>2],E_[H>>2]=E_[f>>2],dr(x,r,B,H,a,t,n,5008,5028),E_[$>>2]=E_[x>>2];break;case 83:if(E_[k>>2]=E_[f>>2],$=Rr(i,k,t,J,2)|0,er=E_[t>>2]|0,(er&4|0)==0&($|0)<61){E_[n>>2]=$;break e}E_[t>>2]=er|4;break e;case 84:er=i|0,E_[z>>2]=E_[er>>2],E_[Y>>2]=E_[f>>2],dr(U,r,z,Y,a,t,n,4976,5008),E_[er>>2]=E_[U>>2];break;case 119:if(E_[b>>2]=E_[f>>2],er=Rr(i,b,t,J,1)|0,$=E_[t>>2]|0,($&4|0)==0&(er|0)<7){E_[n+24>>2]=er;break e}E_[t>>2]=$|4;break e;case 120:return $=E_[(E_[r>>2]|0)+20>>2]|0,E_[V>>2]=E_[i>>2],E_[Z>>2]=E_[f>>2],fv[$&127](e,r,V,Z,a,t,n),void(O_=u);case 88:$=r+8|0,er=rv[E_[(E_[$>>2]|0)+24>>2]&127]($)|0,$=i|0,E_[q>>2]=E_[$>>2],E_[W>>2]=E_[f>>2],Q=m_[er]|0,(Q&1)==0?(ir=er+4|0,fr=er+4|0):(ar=E_[er+8>>2]|0,ir=ar,fr=ar),ar=Q&255,tr=(ar&1|0)==0?ar>>>1:E_[er+4>>2]|0,dr(j,r,q,W,a,t,n,fr,ir+(tr<<2)|0),E_[$>>2]=E_[j>>2];break;case 121:if(E_[s>>2]=E_[f>>2],$=Rr(i,s,t,J,4)|0,(E_[t>>2]&4|0)!=0)break e;nr=($|0)<69?$+2e3|0:($-69|0)>>>0<31?$+1900|0:$,E_[n+20>>2]=nr-1900;break;case 89:if(E_[l>>2]=E_[f>>2],$=Rr(i,l,t,J,4)|0,(E_[t>>2]&4|0)!=0)break e;E_[n+20>>2]=$-1900;break;case 37:E_[K>>2]=E_[f>>2],Or(0,i,K,t,J);break;case 98:case 66:case 104:if($=E_[f>>2]|0,er=r+8|0,ar=rv[E_[(E_[er>>2]|0)+4>>2]&127](er)|0,E_[m>>2]=$,$=(Ch(i,m,ar,ar+288|0,J,t,0)|0)-ar|0,($|0)>=288)break e;E_[n+16>>2]=(($|0)/12|0|0)%12|0;break;case 70:$=i|0,E_[N>>2]=E_[$>>2],E_[D>>2]=E_[f>>2],dr(M,r,N,D,a,t,n,4944,4976),E_[$>>2]=E_[M>>2];break;case 106:if(E_[h>>2]=E_[f>>2],$=Rr(i,h,t,J,3)|0,ar=E_[t>>2]|0,(ar&4|0)==0&($|0)<366){E_[n+28>>2]=$;break e}E_[t>>2]=ar|4;break e;case 99:ar=r+8|0,$=rv[E_[(E_[ar>>2]|0)+12>>2]&127](ar)|0,ar=i|0,E_[y>>2]=E_[ar>>2],E_[A>>2]=E_[f>>2],er=m_[$]|0,(er&1)==0?(or=$+4|0,ur=$+4|0):(Q=E_[$+8>>2]|0,or=Q,ur=Q),Q=er&255,lr=(Q&1|0)==0?Q>>>1:E_[$+4>>2]|0,dr(g,r,y,A,a,t,n,ur,or+(lr<<2)|0),E_[ar>>2]=E_[g>>2];break;default:E_[t>>2]=E_[t>>2]|4}while(0);return E_[e>>2]=E_[i>>2],void(O_=u)}while(0);u=Yw(4)|0,Ht(u),gw(u|0,11024,132)}function yr(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0;e=O_,t=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[t>>2],t=r|0,r=i|0,i=a;e:for(;;){n=E_[t>>2]|0;do{if((n|0)!=0){if(u=E_[n+12>>2]|0,l=(u|0)==(E_[n+16>>2]|0)?rv[E_[(E_[n>>2]|0)+36>>2]&127](n)|0:E_[u>>2]|0,(l|0)==-1){E_[t>>2]=0,o=1;break}o=(E_[t>>2]|0)==0;break}o=1}while(0);n=E_[r>>2]|0;do{if((n|0)!=0){if(u=E_[n+12>>2]|0,b=(u|0)==(E_[n+16>>2]|0)?rv[E_[(E_[n>>2]|0)+36>>2]&127](n)|0:E_[u>>2]|0,(b|0)==-1){E_[r>>2]=0,s=5128;break}if(u=(n|0)==0,o^u){k=n,c=u;break}d=n,h=u;break e}s=5128}while(0);if((s|0)==5128){if(s=0,o){d=0,h=1;break}k=0,c=1}if(n=E_[t>>2]|0,u=E_[n+12>>2]|0,_=(u|0)==(E_[n+16>>2]|0)?rv[E_[(E_[n>>2]|0)+36>>2]&127](n)|0:E_[u>>2]|0,!(iv[E_[(E_[i>>2]|0)+12>>2]&63](a,8192,_)|0)){d=k,h=c;break}u=E_[t>>2]|0,n=u+12|0,w=E_[n>>2]|0,(w|0)!=(E_[u+16>>2]|0)?E_[n>>2]=w+4:(v=E_[(E_[u>>2]|0)+40>>2]|0,rv[v&127](u)|0)}c=E_[t>>2]|0;do{if((c|0)!=0){if(k=E_[c+12>>2]|0,p=(k|0)==(E_[c+16>>2]|0)?rv[E_[(E_[c>>2]|0)+36>>2]&127](c)|0:E_[k>>2]|0,(p|0)==-1){E_[t>>2]=0,m=1;break}m=(E_[t>>2]|0)==0;break}m=1}while(0);do{if(!h){if(t=E_[d+12>>2]|0,E=(t|0)==(E_[d+16>>2]|0)?rv[E_[(E_[d>>2]|0)+36>>2]&127](d)|0:E_[t>>2]|0,(E|0)==-1){E_[r>>2]=0,s=5150;break}if(!(m^(d|0)==0))break;return void(O_=e)}s=5150}while(0);do if((s|0)==5150){if(m)break;return void(O_=e)}while(0);E_[f>>2]=E_[f>>2]|2,O_=e}function Ar(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0;if(n=O_,O_=O_+8|0,o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=n|0,u=e+8|0,e=rv[E_[(E_[u>>2]|0)+8>>2]&127](u)|0,u=S_[e]|0,l=(u&1|0)==0?u>>>1:E_[e+4>>2]|0,u=S_[e+12|0]|0,s=(u&1|0)==0?u>>>1:E_[e+16>>2]|0,(l|0)==(-s|0))return E_[a>>2]=E_[a>>2]|4,void(O_=n);E_[o>>2]=E_[f>>2],f=Ch(i,o,e,e+24|0,t,a,0)|0,a=f-e|0;do if((f|0)==(e|0)){if((E_[r>>2]|0)!=12)break;return E_[r>>2]=0,void(O_=n)}while(0);return(a|0)!=12?void(O_=n):(a=E_[r>>2]|0,(a|0)>=12?void(O_=n):(E_[r>>2]=a+12,void(O_=n)))}function Or(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0;e=O_,t=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[t>>2],t=r|0,r=E_[t>>2]|0;do{if((r|0)!=0){if(o=E_[r+12>>2]|0,u=(o|0)==(E_[r+16>>2]|0)?rv[E_[(E_[r>>2]|0)+36>>2]&127](r)|0:E_[o>>2]|0,(u|0)==-1){E_[t>>2]=0,n=1;break}n=(E_[t>>2]|0)==0;break}n=1}while(0);u=i|0,i=E_[u>>2]|0;do{if((i|0)!=0){if(r=E_[i+12>>2]|0,s=(r|0)==(E_[i+16>>2]|0)?rv[E_[(E_[i>>2]|0)+36>>2]&127](i)|0:E_[r>>2]|0,(s|0)==-1){E_[u>>2]=0,l=5190;break}if(r=(i|0)==0,n^r){b=i,k=r;break}l=5192;break}l=5190}while(0);if((l|0)==5190&&(n?l=5192:(b=0,k=1)),(l|0)==5192)return E_[f>>2]=E_[f>>2]|6,void(O_=e);if(n=E_[t>>2]|0,i=E_[n+12>>2]|0,c=(i|0)==(E_[n+16>>2]|0)?rv[E_[(E_[n>>2]|0)+36>>2]&127](n)|0:E_[i>>2]|0,(iv[E_[(E_[a>>2]|0)+52>>2]&63](a,c,0)|0)<<24>>24!=37)return E_[f>>2]=E_[f>>2]|4,void(O_=e);c=E_[t>>2]|0,a=c+12|0,i=E_[a>>2]|0,(i|0)==(E_[c+16>>2]|0)?(n=E_[(E_[c>>2]|0)+40>>2]|0,rv[n&127](c)|0):E_[a>>2]=i+4,i=E_[t>>2]|0;do{if((i|0)!=0){if(a=E_[i+12>>2]|0,h=(a|0)==(E_[i+16>>2]|0)?rv[E_[(E_[i>>2]|0)+36>>2]&127](i)|0:E_[a>>2]|0,(h|0)==-1){E_[t>>2]=0,d=1;
break}d=(E_[t>>2]|0)==0;break}d=1}while(0);do{if(!k){if(t=E_[b+12>>2]|0,_=(t|0)==(E_[b+16>>2]|0)?rv[E_[(E_[b>>2]|0)+36>>2]&127](b)|0:E_[t>>2]|0,(_|0)==-1){E_[u>>2]=0,l=5214;break}if(!(d^(b|0)==0))break;return void(O_=e)}l=5214}while(0);do if((l|0)==5214){if(d)break;return void(O_=e)}while(0);E_[f>>2]=E_[f>>2]|2,O_=e}function Rr(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0;t=O_,n=r,r=O_,O_=O_+4|0,O_=O_+7&-8,E_[r>>2]=E_[n>>2],n=e|0,e=E_[n>>2]|0;do{if((e|0)!=0){if(u=E_[e+12>>2]|0,l=(u|0)==(E_[e+16>>2]|0)?rv[E_[(E_[e>>2]|0)+36>>2]&127](e)|0:E_[u>>2]|0,(l|0)==-1){E_[n>>2]=0,o=1;break}o=(E_[n>>2]|0)==0;break}o=1}while(0);l=r|0,r=E_[l>>2]|0;do{if((r|0)!=0){if(e=E_[r+12>>2]|0,b=(e|0)==(E_[r+16>>2]|0)?rv[E_[(E_[r>>2]|0)+36>>2]&127](r)|0:E_[e>>2]|0,(b|0)==-1){E_[l>>2]=0,s=5236;break}if(o^(r|0)==0){k=r;break}s=5238;break}s=5236}while(0);if((s|0)==5236&&(o?s=5238:k=0),(s|0)==5238)return E_[i>>2]=E_[i>>2]|6,c=0,O_=t,c|0;if(o=E_[n>>2]|0,r=E_[o+12>>2]|0,d=(r|0)==(E_[o+16>>2]|0)?rv[E_[(E_[o>>2]|0)+36>>2]&127](o)|0:E_[r>>2]|0,r=f,!(iv[E_[(E_[r>>2]|0)+12>>2]&63](f,2048,d)|0))return E_[i>>2]=E_[i>>2]|4,c=0,O_=t,c|0;for(o=f,b=(iv[E_[(E_[o>>2]|0)+52>>2]&63](f,d,0)|0)<<24>>24,d=E_[n>>2]|0,e=d+12|0,u=E_[e>>2]|0,(u|0)==(E_[d+16>>2]|0)?(h=E_[(E_[d>>2]|0)+40>>2]|0,rv[h&127](d)|0,_=b,w=a,v=k):(E_[e>>2]=u+4,_=b,w=a,v=k);;){m=_-48|0,k=w-1|0,a=E_[n>>2]|0;do{if((a|0)!=0){if(b=E_[a+12>>2]|0,E=(b|0)==(E_[a+16>>2]|0)?rv[E_[(E_[a>>2]|0)+36>>2]&127](a)|0:E_[b>>2]|0,(E|0)==-1){E_[n>>2]=0,p=0;break}p=E_[n>>2]|0;break}p=0}while(0);if(a=(p|0)==0,(v|0)==0?(S=p,g=0):(b=E_[v+12>>2]|0,y=(b|0)==(E_[v+16>>2]|0)?rv[E_[(E_[v>>2]|0)+36>>2]&127](v)|0:E_[b>>2]|0,(y|0)==-1?(E_[l>>2]=0,A=0):A=v,S=E_[n>>2]|0,g=A),O=(g|0)==0,!((a^O)&(k|0)>0))break;if(a=E_[S+12>>2]|0,R=(a|0)==(E_[S+16>>2]|0)?rv[E_[(E_[S>>2]|0)+36>>2]&127](S)|0:E_[a>>2]|0,!(iv[E_[(E_[r>>2]|0)+12>>2]&63](f,2048,R)|0)){c=m,s=5290;break}a=((iv[E_[(E_[o>>2]|0)+52>>2]&63](f,R,0)|0)<<24>>24)+(m*10|0)|0,b=E_[n>>2]|0,u=b+12|0,e=E_[u>>2]|0,(e|0)!=(E_[b+16>>2]|0)?(E_[u>>2]=e+4,_=a,w=k,v=g):(d=E_[(E_[b>>2]|0)+40>>2]|0,rv[d&127](b)|0,_=a,w=k,v=g)}if((s|0)==5290)return O_=t,c|0;do{if((S|0)!=0){if(v=E_[S+12>>2]|0,M=(v|0)==(E_[S+16>>2]|0)?rv[E_[(E_[S>>2]|0)+36>>2]&127](S)|0:E_[v>>2]|0,(M|0)==-1){E_[n>>2]=0,F=1;break}F=(E_[n>>2]|0)==0;break}F=1}while(0);do{if(!O){if(n=E_[g+12>>2]|0,N=(n|0)==(E_[g+16>>2]|0)?rv[E_[(E_[g>>2]|0)+36>>2]&127](g)|0:E_[n>>2]|0,(N|0)==-1){E_[l>>2]=0,s=5282;break}if(!(F^(g|0)==0))break;return c=m,O_=t,c|0}s=5282}while(0);do if((s|0)==5282){if(F)break;return c=m,O_=t,c|0}while(0);return E_[i>>2]=E_[i>>2]|2,c=m,O_=t,c|0}function Fr(e){e|=0;var r=0,i=0,f=0,a=0;r=e,i=e+8|0,f=E_[i>>2]|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return(f|0)==(E_[3666]|0)?(a=e|0,Qk(a),void hn(r)):(_w(E_[i>>2]|0),a=e|0,Qk(a),void hn(r))}function Mr(e){e|=0;var r=0,i=0,f=0;r=e+8|0,i=E_[r>>2]|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return(i|0)==(E_[3666]|0)?(f=e|0,void Qk(f)):(_w(E_[r>>2]|0),f=e|0,void Qk(f))}function Nr(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;if(a=O_,O_=O_+112|0,f=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[f>>2],f=a|0,u=a+8|0,l=u|0,s=f|0,m_[s]=37,b=f+1|0,m_[b]=n,k=f+2|0,m_[k]=o,m_[f+3|0]=0,o<<24>>24!=0&&(m_[b]=o,m_[k]=n),n=Sw(l|0,100,s|0,t|0,E_[r+8>>2]|0)|0,r=u+n|0,u=E_[i>>2]|0,(n|0)==0)return c=u,d=e|0,E_[d>>2]=c,void(O_=a);for(h=u,_=l;;){if(l=m_[_]|0,(h|0)==0?w=0:(u=h+24|0,n=E_[u>>2]|0,(n|0)==(E_[h+28>>2]|0)?v=lv[E_[(E_[h>>2]|0)+52>>2]&31](h,l&255)|0:(E_[u>>2]=n+1,m_[n]=l,v=l&255),w=(v|0)==-1?0:h),l=_+1|0,(l|0)==(r|0)){c=w;break}h=w,_=l}d=e|0,E_[d>>2]=c,O_=a}function Dr(e){e|=0;var r=0,i=0,f=0,a=0;r=e,i=e+8|0,f=E_[i>>2]|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return(f|0)==(E_[3666]|0)?(a=e|0,Qk(a),void hn(r)):(_w(E_[i>>2]|0),a=e|0,Qk(a),void hn(r))}function Cr(e){e|=0;var r=0,i=0,f=0;r=e+8|0,i=E_[r>>2]|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return(i|0)==(E_[3666]|0)?(f=e|0,void Qk(f)):(_w(E_[r>>2]|0),f=e|0,void Qk(f))}function Tr(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0;if(a=O_,O_=O_+408|0,f=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[f>>2],f=a|0,u=a+400|0,l=f|0,E_[u>>2]=f+400,Pr(r+8|0,l,u,t,n,o),o=E_[u>>2]|0,u=E_[i>>2]|0,(l|0)==(o|0))return s=u,b=e|0,E_[b>>2]=s,void(O_=a);for(k=u,c=l;;){if(l=E_[c>>2]|0,(k|0)==0?d=0:(u=k+24|0,i=E_[u>>2]|0,(i|0)==(E_[k+28>>2]|0)?h=lv[E_[(E_[k>>2]|0)+52>>2]&31](k,l)|0:(E_[u>>2]=i+4,E_[i>>2]=l,h=l),d=(h|0)==-1?0:k),l=c+4|0,(l|0)==(o|0)){s=d;break}k=d,c=l}b=e|0,E_[b>>2]=s,O_=a}function Pr(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;return n=O_,O_=O_+120|0,o=n|0,u=n+112|0,l=O_,O_=O_+4|0,O_=O_+7&-8,s=n+8|0,b=o|0,m_[b]=37,k=o+1|0,m_[k]=a,c=o+2|0,m_[c]=t,m_[o+3|0]=0,t<<24>>24!=0&&(m_[k]=t,m_[c]=a),a=e|0,Sw(s|0,100,b|0,f|0,E_[a>>2]|0)|0,E_[u>>2]=0,E_[u+4>>2]=0,E_[l>>2]=s,s=(E_[i>>2]|0)-r>>2,f=Pw(E_[a>>2]|0)|0,a=Mt(r,l,s,u)|0,(f|0)!=0&&Pw(f|0)|0,(a|0)!=-1?(E_[i>>2]=r+(a<<2),void(O_=n)):void Ni(2032)}function Lr(e){e|=0,Qk(e|0),hn(e)}function Ir(e){e|=0,Qk(e|0)}function xr(e){return e|=0,127}function Br(e){return e|=0,127}function Hr(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function Ur(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function zr(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function Yr(e,r){e|=0,r|=0,gc(e,1,45)}function Vr(e){return e|=0,0}function Zr(e,r){e|=0,r|=0,r=e,H_=67109634,m_[r]=H_&255,H_>>=8,m_[r+1|0]=H_&255,H_>>=8,m_[r+2|0]=H_&255,H_>>=8,m_[r+3|0]=H_&255}function jr(e,r){e|=0,r|=0,r=e,H_=67109634,m_[r]=H_&255,H_>>=8,m_[r+1|0]=H_&255,H_>>=8,m_[r+2|0]=H_&255,H_>>=8,m_[r+3|0]=H_&255}function qr(e){e|=0,Qk(e|0),hn(e)}function Wr(e){e|=0,Qk(e|0)}function Kr(e){return e|=0,127}function Xr(e){return e|=0,127}function Gr(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function Qr(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function Jr(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function $r(e,r){e|=0,r|=0,gc(e,1,45)}function ei(e){return e|=0,0}function ri(e,r){e|=0,r|=0,r=e,H_=67109634,m_[r]=H_&255,H_>>=8,m_[r+1|0]=H_&255,H_>>=8,m_[r+2|0]=H_&255,H_>>=8,m_[r+3|0]=H_&255}function ii(e,r){e|=0,r|=0,r=e,H_=67109634,m_[r]=H_&255,H_>>=8,m_[r+1|0]=H_&255,H_>>=8,m_[r+2|0]=H_&255,H_>>=8,m_[r+3|0]=H_&255}function fi(e){e|=0,Qk(e|0),hn(e)}function ai(e){e|=0,Qk(e|0)}function ti(e){return e|=0,2147483647}function ni(e){return e|=0,2147483647}function oi(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function ui(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function li(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function si(e,r){e|=0,r|=0,Pc(e,1,45)}function bi(e){return e|=0,0}function ki(e,r){e|=0,r|=0,r=e,H_=67109634,m_[r]=H_&255,H_>>=8,m_[r+1|0]=H_&255,H_>>=8,m_[r+2|0]=H_&255,H_>>=8,m_[r+3|0]=H_&255}function ci(e,r){e|=0,r|=0,r=e,H_=67109634,m_[r]=H_&255,H_>>=8,m_[r+1|0]=H_&255,H_>>=8,m_[r+2|0]=H_&255,H_>>=8,m_[r+3|0]=H_&255}function di(e){e|=0,Qk(e|0),hn(e)}function hi(e){e|=0,Qk(e|0)}function _i(e){return e|=0,2147483647}function wi(e){return e|=0,2147483647}function vi(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function mi(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function pi(e,r){e|=0,r|=0,r=e,An(r|0,0,12)|0}function Ei(e,r){e|=0,r|=0,Pc(e,1,45)}function Si(e){return e|=0,0}function gi(e,r){e|=0,r|=0,r=e,H_=67109634,m_[r]=H_&255,H_>>=8,m_[r+1|0]=H_&255,H_>>=8,m_[r+2|0]=H_&255,H_>>=8,m_[r+3|0]=H_&255}function yi(e,r){e|=0,r|=0,r=e,H_=67109634,m_[r]=H_&255,H_>>=8,m_[r+1|0]=H_&255,H_>>=8,m_[r+2|0]=H_&255,H_>>=8,m_[r+3|0]=H_&255}function Ai(e){e|=0,Qk(e|0),hn(e)}function Oi(e){e|=0,Qk(e|0)}function Ri(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0;r=O_,O_=O_+280|0,u=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[u>>2],u=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[u>>2],u=r|0,l=r+16|0,s=r+120|0,b=r+128|0,k=r+136|0,c=r+144|0,d=r+152|0,h=r+160|0,_=r+176|0,w=s|0,E_[w>>2]=l,v=s+4|0,E_[v>>2]=166,m=l+100|0,Zc(k,t),l=k|0,p=E_[l>>2]|0,(E_[4028]|0)!=-1&&(E_[u>>2]=16112,E_[u+4>>2]=14,E_[u+8>>2]=0,mc(16112,u,98)),u=(E_[4029]|0)-1|0,E=E_[p+8>>2]|0;do if((E_[p+12>>2]|0)-E>>2>>>0>u>>>0){if(S=E_[E+(u<<2)>>2]|0,(S|0)==0)break;g=S,m_[c]=0,y=f|0,E_[d>>2]=E_[y>>2];do if(Mi(i,d,a,k,E_[t+4>>2]|0,n,c,g,s,b,m)|0){A=h|0,O=E_[(E_[S>>2]|0)+32>>2]|0,Kw[O&15](g,4928,4938,A)|0,O=_|0,R=E_[b>>2]|0,F=E_[w>>2]|0,M=R-F|0;do if((M|0)>98){if(N=on(M+2|0)|0,(N|0)!=0){D=N,C=N;break}pn(),D=0,C=0}else D=O,C=0;while(0);if((m_[c]&1)==0?T=D:(m_[D]=45,T=D+1|0),F>>>0<R>>>0)for(M=h+10|0,N=h,P=T,L=F;;){for(I=A;;){if((I|0)==(M|0)){x=M;break}if((m_[I]|0)==(m_[L]|0)){x=I;break}I=I+1|0}if(m_[P]=m_[4928+(x-N)|0]|0,I=L+1|0,B=P+1|0,!(I>>>0<(E_[b>>2]|0)>>>0)){H=B;break}P=B,L=I}else H=T;if(m_[H]=0,L=Iw(O|0,3704,(P=O_,O_=O_+8|0,E_[P>>2]=o,P|0))|0,O_=P,(L|0)==1){if((C|0)==0)break;un(C);break}L=Yw(8)|0,tc(L,3560),gw(L|0,11040,26)}while(0);g=i|0,S=E_[g>>2]|0;do if((S|0)==0)U=0;else{if((E_[S+12>>2]|0)!=(E_[S+16>>2]|0)){U=S;break}if((rv[E_[(E_[S>>2]|0)+36>>2]&127](S)|0)!=-1){U=S;break}E_[g>>2]=0,U=0}while(0);g=(U|0)==0,S=E_[y>>2]|0;do{if((S|0)!=0){if((E_[S+12>>2]|0)!=(E_[S+16>>2]|0)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i=0,Bi=0,Hi=0,Ui=0,zi=0,Yi=0,Vi=0;b=O_,O_=O_+440|0,k=r,r=O_,O_=O_+4|0,O_=O_+7&-8,E_[r>>2]=E_[k>>2],k=b|0,c=b+400|0,d=b+408|0,h=b+416|0,_=b+424|0,w=_,v=O_,O_=O_+12|0,O_=O_+7&-8,m=O_,O_=O_+12|0,O_=O_+7&-8,p=O_,O_=O_+12|0,O_=O_+7&-8,E=O_,O_=O_+12|0,O_=O_+7&-8,S=O_,O_=O_+4|0,O_=O_+7&-8,g=O_,O_=O_+4|0,O_=O_+7&-8,y=k|0,An(w|0,0,12)|0,A=v,O=m,R=p,F=E,An(A|0,0,12)|0,An(O|0,0,12)|0,An(R|0,0,12)|0,An(F|0,0,12)|0,Ti(i,f,c,d,h,_,v,m,p,S),f=u|0,E_[l>>2]=E_[f>>2],i=e|0,e=r|0,r=o+8|0,o=p+1|0,M=p+4|0,N=p+8|0,D=m+1|0,C=m+4|0,T=m+8|0,P=(a&512|0)!=0,a=v+1|0,L=v+4|0,I=v+8|0,x=E+1|0,B=E+4|0,H=E+8|0,U=c+3|0,z=_+4|0,Y=u+4|0,u=s,s=166,V=y,Z=y,y=k+400|0,k=0,j=0;e:for(;;){q=E_[i>>2]|0;do{if((q|0)!=0){if((E_[q+12>>2]|0)!=(E_[q+16>>2]|0)){W=q;break}if((rv[E_[(E_[q>>2]|0)+36>>2]&127](q)|0)==-1){E_[i>>2]=0,W=0;break}W=E_[i>>2]|0;break}W=0}while(0);q=(W|0)==0,K=E_[e>>2]|0;do{if((K|0)!=0){if((E_[K+12>>2]|0)!=(E_[K+16>>2]|0)){if(q){G=K;break}Q=s,J=V,$=Z,er=k,X=5752;break e}if((rv[E_[(E_[K>>2]|0)+36>>2]&127](K)|0)==-1){E_[e>>2]=0,X=5493;break}if(q){G=K;break}Q=s,J=V,$=Z,er=k,X=5752;break e}X=5493}while(0);if((X|0)==5493){if(X=0,q){Q=s,J=V,$=Z,er=k,X=5752;break}G=0}r:do switch(m_[c+j|0]|0){case 3:if(K=m_[O]|0,rr=K&255,ir=(rr&1|0)==0?rr>>>1:E_[C>>2]|0,rr=m_[R]|0,fr=rr&255,ar=(fr&1|0)==0?fr>>>1:E_[M>>2]|0,(ir|0)==(-ar|0)){tr=k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}if(fr=(ir|0)==0,ir=E_[i>>2]|0,br=E_[ir+12>>2]|0,kr=E_[ir+16>>2]|0,cr=(br|0)==(kr|0),!(fr|(ar|0)==0)){if(cr?(ar=(rv[E_[(E_[ir>>2]|0)+36>>2]&127](ir)|0)&255,dr=E_[i>>2]|0,hr=ar,_r=m_[O]|0,wr=dr,vr=E_[dr+12>>2]|0,mr=E_[dr+16>>2]|0):(hr=m_[br]|0,_r=K,wr=ir,vr=br,mr=kr),kr=wr+12|0,dr=(vr|0)==(mr|0),hr<<24>>24==(m_[(_r&1)==0?D:E_[T>>2]|0]|0)){dr?(ar=E_[(E_[wr>>2]|0)+40>>2]|0,rv[ar&127](wr)|0):E_[kr>>2]=vr+1,kr=S_[O]|0,tr=((kr&1|0)==0?kr>>>1:E_[C>>2]|0)>>>0>1?m:k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}if(pr=dr?(rv[E_[(E_[wr>>2]|0)+36>>2]&127](wr)|0)&255:m_[vr]|0,pr<<24>>24!=(m_[(m_[R]&1)==0?o:E_[N>>2]|0]|0)){X=5588;break e}dr=E_[i>>2]|0,kr=dr+12|0,ar=E_[kr>>2]|0,(ar|0)==(E_[dr+16>>2]|0)?(Er=E_[(E_[dr>>2]|0)+40>>2]|0,rv[Er&127](dr)|0):E_[kr>>2]=ar+1,m_[n]=1,ar=S_[R]|0,tr=((ar&1|0)==0?ar>>>1:E_[M>>2]|0)>>>0>1?p:k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}if(fr){if(cr?(fr=(rv[E_[(E_[ir>>2]|0)+36>>2]&127](ir)|0)&255,Sr=fr,gr=m_[R]|0):(Sr=m_[br]|0,gr=rr),Sr<<24>>24!=(m_[(gr&1)==0?o:E_[N>>2]|0]|0)){tr=k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}rr=E_[i>>2]|0,fr=rr+12|0,ar=E_[fr>>2]|0,(ar|0)==(E_[rr+16>>2]|0)?(kr=E_[(E_[rr>>2]|0)+40>>2]|0,rv[kr&127](rr)|0):E_[fr>>2]=ar+1,m_[n]=1,ar=S_[R]|0,tr=((ar&1|0)==0?ar>>>1:E_[M>>2]|0)>>>0>1?p:k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}if(cr?(cr=(rv[E_[(E_[ir>>2]|0)+36>>2]&127](ir)|0)&255,yr=cr,Ar=m_[O]|0):(yr=m_[br]|0,Ar=K),yr<<24>>24!=(m_[(Ar&1)==0?D:E_[T>>2]|0]|0)){m_[n]=1,tr=k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}K=E_[i>>2]|0,br=K+12|0,cr=E_[br>>2]|0,(cr|0)==(E_[K+16>>2]|0)?(ir=E_[(E_[K>>2]|0)+40>>2]|0,rv[ir&127](K)|0):E_[br>>2]=cr+1,cr=S_[O]|0,tr=((cr&1|0)==0?cr>>>1:E_[C>>2]|0)>>>0>1?m:k,nr=y,or=Z,ur=V,lr=s,sr=u;break;case 0:X=5521;break;case 1:if((j|0)==3){Q=s,J=V,$=Z,er=k,X=5752;break e}if(cr=E_[i>>2]|0,br=E_[cr+12>>2]|0,Or=(br|0)==(E_[cr+16>>2]|0)?(rv[E_[(E_[cr>>2]|0)+36>>2]&127](cr)|0)&255:m_[br]|0,br=Or<<24>>24,(Fw(br|0)|0)==0){X=5520;break e}if((p_[(E_[r>>2]|0)+(br<<1)>>1]&8192)==0){X=5520;break e}br=E_[i>>2]|0,cr=br+12|0,K=E_[cr>>2]|0,(K|0)==(E_[br+16>>2]|0)?Rr=(rv[E_[(E_[br>>2]|0)+40>>2]&127](br)|0)&255:(E_[cr>>2]=K+1,Rr=m_[K]|0),Mc(E,Rr),X=5521;break;case 4:K=0,cr=y,br=Z,ir=V,ar=s,fr=u;i:for(;;){rr=E_[i>>2]|0;do{if((rr|0)!=0){if((E_[rr+12>>2]|0)!=(E_[rr+16>>2]|0)){Fr=rr;break}if((rv[E_[(E_[rr>>2]|0)+36>>2]&127](rr)|0)==-1){E_[i>>2]=0,Fr=0;break}Fr=E_[i>>2]|0;break}Fr=0}while(0);rr=(Fr|0)==0,kr=E_[e>>2]|0;do{if((kr|0)!=0){if((E_[kr+12>>2]|0)!=(E_[kr+16>>2]|0)){if(rr)break;break i}if((rv[E_[(E_[kr>>2]|0)+36>>2]&127](kr)|0)==-1){E_[e>>2]=0,X=5645;break}if(rr)break;break i}X=5645}while(0);if((X|0)==5645&&(X=0,rr))break;kr=E_[i>>2]|0,dr=E_[kr+12>>2]|0,Mr=(dr|0)==(E_[kr+16>>2]|0)?(rv[E_[(E_[kr>>2]|0)+36>>2]&127](kr)|0)&255:m_[dr]|0,dr=Mr<<24>>24;do if((Fw(dr|0)|0)==0)X=5665;else{if((p_[(E_[r>>2]|0)+(dr<<1)>>1]&2048)==0){X=5665;break}if(kr=E_[l>>2]|0,(kr|0)==(fr|0)){Er=(E_[Y>>2]|0)!=166,Nr=E_[f>>2]|0,Dr=fr-Nr|0,Cr=Dr>>>0<2147483647?Dr<<1:-1,Tr=ln(Er?Nr:0,Cr)|0,(Tr|0)==0&&pn();do if(Er)E_[f>>2]=Tr,Pr=Tr;else{if(Nr=E_[f>>2]|0,E_[f>>2]=Tr,(Nr|0)==0){Pr=Tr;break}Qw[E_[Y>>2]&511](Nr),Pr=E_[f>>2]|0}while(0);E_[Y>>2]=82,Tr=Pr+Dr|0,E_[l>>2]=Tr,Lr=(E_[f>>2]|0)+Cr|0,Ir=Tr}else Lr=fr,Ir=kr;E_[l>>2]=Ir+1,m_[Ir]=Mr,xr=K+1|0,Br=cr,Hr=br,Ur=ir,zr=ar,Yr=Lr}while(0);if((X|0)==5665){if(X=0,dr=S_[w]|0,(((dr&1|0)==0?dr>>>1:E_[z>>2]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E_[(E_[K>>2]|0)+36>>2]&127](K)|0)==-1){E_[e>>2]=0,X=5698;break}if(Tr){ai=K;break}X=5705;break e}X=5698}while(0);if((X|0)==5698){if(X=0,Tr){X=5705;break e}ai=0}if(K=E_[i>>2]|0,ar=E_[K+12>>2]|0,ti=(ar|0)==(E_[K+16>>2]|0)?(rv[E_[(E_[K>>2]|0)+36>>2]&127](K)|0)&255:m_[ar]|0,ti<<24>>24!=(m_[d]|0)){X=5705;break e}for(ar=E_[i>>2]|0,K=ar+12|0,ir=E_[K>>2]|0,(ir|0)==(E_[ar+16>>2]|0)?(br=E_[(E_[ar>>2]|0)+40>>2]|0,rv[br&127](ar)|0,ni=fr,oi=ai):(E_[K>>2]=ir+1,ni=fr,oi=ai);;){ir=E_[i>>2]|0;do{if((ir|0)!=0){if((E_[ir+12>>2]|0)!=(E_[ir+16>>2]|0)){ui=ir;break}if((rv[E_[(E_[ir>>2]|0)+36>>2]&127](ir)|0)==-1){E_[i>>2]=0,ui=0;break}ui=E_[i>>2]|0;break}ui=0}while(0);ir=(ui|0)==0;do{if((oi|0)!=0){if((E_[oi+12>>2]|0)!=(E_[oi+16>>2]|0)){if(ir){li=oi;break}X=5730;break e}if((rv[E_[(E_[oi>>2]|0)+36>>2]&127](oi)|0)==-1){E_[e>>2]=0,X=5721;break}if(ir){li=oi;break}X=5730;break e}X=5721}while(0);if((X|0)==5721){if(X=0,ir){X=5730;break e}li=0}if(K=E_[i>>2]|0,ar=E_[K+12>>2]|0,si=(ar|0)==(E_[K+16>>2]|0)?(rv[E_[(E_[K>>2]|0)+36>>2]&127](K)|0)&255:m_[ar]|0,ar=si<<24>>24,(Fw(ar|0)|0)==0){X=5730;break e}if((p_[(E_[r>>2]|0)+(ar<<1)>>1]&2048)==0){X=5730;break e}if(ar=E_[l>>2]|0,(ar|0)==(ni|0)){K=(E_[Y>>2]|0)!=166,br=E_[f>>2]|0,cr=ni-br|0,rr=cr>>>0<2147483647?cr<<1:-1,dr=ln(K?br:0,rr)|0,(dr|0)==0&&pn();do if(K)E_[f>>2]=dr,bi=dr;else{if(br=E_[f>>2]|0,E_[f>>2]=dr,(br|0)==0){bi=dr;break}Qw[E_[Y>>2]&511](br),bi=E_[f>>2]|0}while(0);E_[Y>>2]=82,dr=bi+cr|0,E_[l>>2]=dr,ki=(E_[f>>2]|0)+rr|0,ci=dr}else ki=ni,ci=ar;if(dr=E_[i>>2]|0,K=E_[dr+12>>2]|0,(K|0)==(E_[dr+16>>2]|0)?(ir=(rv[E_[(E_[dr>>2]|0)+36>>2]&127](dr)|0)&255,di=ir,hi=E_[l>>2]|0):(di=m_[K]|0,hi=ci),E_[l>>2]=hi+1,m_[hi]=di,K=(E_[S>>2]|0)-1|0,E_[S>>2]=K,ir=E_[i>>2]|0,dr=ir+12|0,br=E_[dr>>2]|0,(br|0)==(E_[ir+16>>2]|0)?(Er=E_[(E_[ir>>2]|0)+40>>2]|0,rv[Er&127](ir)|0):E_[dr>>2]=br+1,!((K|0)>0)){_i=ki;break}ni=ki,oi=li}}else _i=fr;if((E_[l>>2]|0)==(E_[f>>2]|0)){X=5750;break e}tr=k,nr=Kr,or=Xr,ur=Gr,lr=Qr,sr=_i;break;case 2:if(!((k|0)!=0|j>>>0<2||(wi=(j|0)==2?(m_[U]|0)!=0:0,P|wi))){tr=0,nr=y,or=Z,ur=V,lr=s,sr=u;break r}Tr=m_[A]|0,K=E_[I>>2]|0,br=(Tr&1)==0?a:K;i:do if((j|0)==0)vi=br,mi=Tr,pi=K;else{if((S_[c+(j-1)|0]|0)>>>0>=2){vi=br,mi=Tr,pi=K;break}dr=Tr&255;f:do if((((dr&1|0)==0?dr>>>1:E_[L>>2]|0)|0)==0)Ei=br,Si=Tr,gi=K;else{for(ir=br;;){if(Er=m_[ir]|0,(Fw(Er|0)|0)==0)break;if((p_[(E_[r>>2]|0)+(Er<<1)>>1]&8192)==0)break;if(Er=ir+1|0,Nr=m_[A]|0,yi=E_[I>>2]|0,Ai=Nr&255,(Er|0)==(((Nr&1)==0?a:yi)+((Ai&1|0)==0?Ai>>>1:E_[L>>2]|0)|0)){Ei=Er,Si=Nr,gi=yi;break f}ir=Er}Ei=ir,Si=m_[A]|0,gi=E_[I>>2]|0}while(0);if(dr=(Si&1)==0?a:gi,ar=Ei-dr|0,rr=m_[F]|0,cr=rr&255,kr=(cr&1|0)==0?cr>>>1:E_[B>>2]|0,ar>>>0>kr>>>0){vi=dr,mi=Si,pi=gi;break}if(cr=(rr&1)==0?x:E_[H>>2]|0,rr=cr+kr|0,(Ei|0)==(dr|0)){vi=Ei,mi=Si,pi=gi;break}for(Cr=cr+(kr-ar)|0,ar=dr;;){if((m_[Cr]|0)!=(m_[ar]|0)){vi=dr,mi=Si,pi=gi;break i}if(kr=Cr+1|0,(kr|0)==(rr|0)){vi=Ei,mi=Si,pi=gi;break}Cr=kr,ar=ar+1|0}}while(0);br=mi&255;i:do if((vi|0)==(((mi&1)==0?a:pi)+((br&1|0)==0?br>>>1:E_[L>>2]|0)|0))Oi=vi;else for(K=G,Tr=vi;;){fr=E_[i>>2]|0;do{if((fr|0)!=0){if((E_[fr+12>>2]|0)!=(E_[fr+16>>2]|0)){Ri=fr;break}if((rv[E_[(E_[fr>>2]|0)+36>>2]&127](fr)|0)==-1){E_[i>>2]=0,Ri=0;break}Ri=E_[i>>2]|0;break}Ri=0}while(0);fr=(Ri|0)==0;do{if((K|0)!=0){if((E_[K+12>>2]|0)!=(E_[K+16>>2]|0)){if(fr){Fi=K;break}Oi=Tr;break i}if((rv[E_[(E_[K>>2]|0)+36>>2]&127](K)|0)==-1){E_[e>>2]=0,X=5619;break}if(fr){Fi=K;break}Oi=Tr;break i}X=5619}while(0);if((X|0)==5619){if(X=0,fr){Oi=Tr;break i}Fi=0}if(ir=E_[i>>2]|0,ar=E_[ir+12>>2]|0,Mi=(ar|0)==(E_[ir+16>>2]|0)?(rv[E_[(E_[ir>>2]|0)+36>>2]&127](ir)|0)&255:m_[ar]|0,Mi<<24>>24!=(m_[Tr]|0)){Oi=Tr;break i}if(ar=E_[i>>2]|0,ir=ar+12|0,Cr=E_[ir>>2]|0,(Cr|0)==(E_[ar+16>>2]|0)?(rr=E_[(E_[ar>>2]|0)+40>>2]|0,rv[rr&127](ar)|0):E_[ir>>2]=Cr+1,Cr=Tr+1|0,ir=m_[A]|0,ar=ir&255,(Cr|0)==(((ir&1)==0?a:E_[I>>2]|0)+((ar&1|0)==0?ar>>>1:E_[L>>2]|0)|0)){Oi=Cr;break}K=Fi,Tr=Cr}while(0);if(!P){tr=k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}if(br=m_[A]|0,Tr=br&255,(Oi|0)!=(((br&1)==0?a:E_[I>>2]|0)+((Tr&1|0)==0?Tr>>>1:E_[L>>2]|0)|0)){X=5632;break e}tr=k,nr=y,or=Z,ur=V,lr=s,sr=u;break;default:tr=k,nr=y,or=Z,ur=V,lr=s,sr=u}while(0);r:do if((X|0)==5521){if(X=0,(j|0)==3){Q=s,J=V,$=Z,er=k,X=5752;break e}for(Ni=G;;){q=E_[i>>2]|0;do{if((q|0)!=0){if((E_[q+12>>2]|0)!=(E_[q+16>>2]|0)){Di=q;break}if((rv[E_[(E_[q>>2]|0)+36>>2]&127](q)|0)==-1){E_[i>>2]=0,Di=0;break}Di=E_[i>>2]|0;break}Di=0}while(0);q=(Di|0)==0;do{if((Ni|0)!=0){if((E_[Ni+12>>2]|0)!=(E_[Ni+16>>2]|0)){if(q){Ci=Ni;break}tr=k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}if((rv[E_[(E_[Ni>>2]|0)+36>>2]&127](Ni)|0)==-1){E_[e>>2]=0,X=5534;break}if(q){Ci=Ni;break}tr=k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}X=5534}while(0);if((X|0)==5534){if(X=0,q){tr=k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}Ci=0}if(Tr=E_[i>>2]|0,br=E_[Tr+12>>2]|0,Li=(br|0)==(E_[Tr+16>>2]|0)?(rv[E_[(E_[Tr>>2]|0)+36>>2]&127](Tr)|0)&255:m_[br]|0,br=Li<<24>>24,(Fw(br|0)|0)==0){tr=k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}if((p_[(E_[r>>2]|0)+(br<<1)>>1]&8192)==0){tr=k,nr=y,or=Z,ur=V,lr=s,sr=u;break r}br=E_[i>>2]|0,Tr=br+12|0,K=E_[Tr>>2]|0,(K|0)==(E_[br+16>>2]|0)?Ii=(rv[E_[(E_[br>>2]|0)+40>>2]&127](br)|0)&255:(E_[Tr>>2]=K+1,Ii=m_[K]|0),Mc(E,Ii),Ni=Ci}}while(0);if(K=j+1|0,!(K>>>0<4)){Q=lr,J=ur,$=or,er=tr,X=5752;break}u=sr,s=lr,V=ur,Z=or,y=nr,k=tr,j=K}e:do if((X|0)==5730)E_[t>>2]=E_[t>>2]|4,xi=0,Bi=Gr,Hi=Qr;else if((X|0)==5750)E_[t>>2]=E_[t>>2]|4,xi=0,Bi=Gr,Hi=Qr;else if((X|0)==5752){r:do if((er|0)!=0){tr=er,or=er+1|0,ur=er+8|0,lr=er+4|0,j=1;i:for(;;){if(k=S_[tr]|0,Ui=(k&1|0)==0?k>>>1:E_[lr>>2]|0,j>>>0>=Ui>>>0)break r;k=E_[i>>2]|0;do{if((k|0)!=0){if((E_[k+12>>2]|0)!=(E_[k+16>>2]|0)){zi=k;break}if((rv[E_[(E_[k>>2]|0)+36>>2]&127](k)|0)==-1){E_[i>>2]=0,zi=0;break}zi=E_[i>>2]|0;break}zi=0}while(0);k=(zi|0)==0,q=E_[e>>2]|0;do{if((q|0)!=0){if((E_[q+12>>2]|0)!=(E_[q+16>>2]|0)){if(k)break;break i}if((rv[E_[(E_[q>>2]|0)+36>>2]&127](q)|0)==-1){E_[e>>2]=0,X=5770;break}if(k)break;break i}X=5770}while(0);if((X|0)==5770&&(X=0,k))break;if(q=E_[i>>2]|0,nr=E_[q+12>>2]|0,Yi=(nr|0)==(E_[q+16>>2]|0)?(rv[E_[(E_[q>>2]|0)+36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h>>2]=l,_=s+4|0,E_[_>>2]=166,w=l+100|0,Zc(k,t),l=k|0,v=E_[l>>2]|0,(E_[4028]|0)!=-1&&(E_[u>>2]=16112,E_[u+4>>2]=14,E_[u+8>>2]=0,mc(16112,u,98)),u=(E_[4029]|0)-1|0,m=E_[v+8>>2]|0;do if((E_[v+12>>2]|0)-m>>2>>>0>u>>>0){if(p=E_[m+(u<<2)>>2]|0,(p|0)==0)break;if(E=p,m_[c]=0,S=f|0,g=E_[S>>2]|0,E_[d>>2]=g,Mi(i,d,a,k,E_[t+4>>2]|0,n,c,E,s,b,w)|0){for(y=o,(m_[y]&1)==0?(m_[o+1|0]=0,m_[y]=0):(m_[E_[o+8>>2]|0]=0,E_[o+4>>2]=0),y=p,(m_[c]&1)!=0&&Mc(o,lv[E_[(E_[y>>2]|0)+28>>2]&31](E,45)|0),p=lv[E_[(E_[y>>2]|0)+28>>2]&31](E,48)|0,E=E_[b>>2]|0,y=E-1|0,A=E_[h>>2]|0;;){if(A>>>0>=y>>>0)break;if((m_[A]|0)!=p<<24>>24)break;A=A+1|0}Ci(o,A,E)|0}p=i|0,y=E_[p>>2]|0;do if((y|0)==0)O=0;else{if((E_[y+12>>2]|0)!=(E_[y+16>>2]|0)){O=y;break}if((rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)!=-1){O=y;break}E_[p>>2]=0,O=0}while(0);p=(O|0)==0;do{if((g|0)!=0){if((E_[g+12>>2]|0)!=(E_[g+16>>2]|0)){if(p)break;R=5830;break}if((rv[E_[(E_[g>>2]|0)+36>>2]&127](g)|0)==-1){E_[S>>2]=0,R=5828;break}if(p^(g|0)==0)break;R=5830;break}R=5828}while(0);return(R|0)==5828&&p&&(R=5830),(R|0)==5830&&(E_[n>>2]=E_[n>>2]|2),E_[e>>2]=O,g=E_[l>>2]|0,$k(g)|0,g=E_[h>>2]|0,E_[h>>2]=0,(g|0)==0?void(O_=r):(Qw[E_[_>>2]&511](g),void(O_=r))}while(0);r=Yw(4)|0,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]=0):(m_[E_[t+8>>2]|0]=0,E_[t+4>>2]=0),Fc(t,0),E_[A>>2]=E_[F>>2],E_[A+4>>2]=E_[F+4>>2],E_[A+8>>2]=E_[F+8>>2],An(F|0,0,12)|0,yc(R),Jw[E_[(E_[I>>2]|0)+24>>2]&127](M,L),I=n,(m_[I]&1)==0?(m_[n+1|0]=0,m_[I]=0):(m_[E_[n+8>>2]|0]=0,E_[n+4>>2]=0),Fc(n,0),E_[I>>2]=E_[N>>2],E_[I+4>>2]=E_[N+4>>2],E_[I+8>>2]=E_[N+8>>2],An(N|0,0,12)|0,yc(M),P=rv[E_[(E_[C>>2]|0)+36>>2]&127](L)|0,E_[l>>2]=P,void(O_=s))}function Pi(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;if(a=e,t=e,n=m_[t]|0,o=n&255,u=(o&1|0)==0?o>>>1:E_[e+4>>2]|0,(u|0)!=0){do if((r|0)==(i|0))l=n;else{if(u=i-4|0,!(u>>>0>r>>>0)){l=n;break}s=r,b=u;do u=E_[s>>2]|0,E_[s>>2]=E_[b>>2],E_[b>>2]=u,s=s+4|0,b=b-4|0;while(s>>>0<b>>>0);l=m_[t]|0}while(0);k=(l&1)==0?a+1|0:E_[e+8>>2]|0,a=l&255,c=(a&1|0)==0?a>>>1:E_[e+4>>2]|0,e=i-4|0,i=m_[k]|0,a=i<<24>>24,l=i<<24>>24<1|i<<24>>24==127;e:do{if(e>>>0>r>>>0){for(i=k+c|0,t=k,b=r,s=a,n=l;;){if(!n&&(s|0)!=(E_[b>>2]|0))break;if(u=(i-t|0)>1?t+1|0:t,o=b+4|0,d=m_[u]|0,h=d<<24>>24,_=d<<24>>24<1|d<<24>>24==127,!(o>>>0<e>>>0)){w=h,v=_;break e}t=u,b=o,s=h,n=_}return void(E_[f>>2]=4)}w=a,v=l}while(0);v||(v=E_[e>>2]|0,w>>>0<v>>>0|(v|0)==0&&(E_[f>>2]=4))}}function Li(e){e|=0,Qk(e|0),hn(e)}function Ii(e){e|=0,Qk(e|0)}function xi(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0;r=O_,O_=O_+600|0,u=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[u>>2],u=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[u>>2],u=r|0,l=r+16|0,s=r+416|0,b=r+424|0,k=r+432|0,c=r+440|0,d=r+448|0,h=r+456|0,_=r+496|0,w=s|0,E_[w>>2]=l,v=s+4|0,E_[v>>2]=166,m=l+400|0,Zc(k,t),l=k|0,p=E_[l>>2]|0,(E_[4026]|0)!=-1&&(E_[u>>2]=16104,E_[u+4>>2]=14,E_[u+8>>2]=0,mc(16104,u,98)),u=(E_[4027]|0)-1|0,E=E_[p+8>>2]|0;do if((E_[p+12>>2]|0)-E>>2>>>0>u>>>0){if(S=E_[E+(u<<2)>>2]|0,(S|0)==0)break;g=S,m_[c]=0,y=f|0,E_[d>>2]=E_[y>>2];do if(Bi(i,d,a,k,E_[t+4>>2]|0,n,c,g,s,b,m)|0){A=h|0,O=E_[(E_[S>>2]|0)+48>>2]|0,Kw[O&15](g,4912,4922,A)|0,O=_|0,R=E_[b>>2]|0,F=E_[w>>2]|0,M=R-F|0;do if((M|0)>392){if(N=on((M>>2)+2|0)|0,(N|0)!=0){D=N,C=N;break}pn(),D=0,C=0}else D=O,C=0;while(0);if((m_[c]&1)==0?T=D:(m_[D]=45,T=D+1|0),F>>>0<R>>>0)for(M=h+40|0,N=h,P=T,L=F;;){for(I=A;;){if((I|0)==(M|0)){x=M;break}if((E_[I>>2]|0)==(E_[L>>2]|0)){x=I;break}I=I+4|0}if(m_[P]=m_[4912+(x-N>>2)|0]|0,I=L+4|0,B=P+1|0,!(I>>>0<(E_[b>>2]|0)>>>0)){H=B;break}P=B,L=I}else H=T;if(m_[H]=0,L=Iw(O|0,3704,(P=O_,O_=O_+8|0,E_[P>>2]=o,P|0))|0,O_=P,(L|0)==1){if((C|0)==0)break;un(C);break}L=Yw(8)|0,tc(L,3560),gw(L|0,11040,26)}while(0);g=i|0,S=E_[g>>2]|0;do if((S|0)==0)U=0;else{if(L=E_[S+12>>2]|0,z=(L|0)==(E_[S+16>>2]|0)?rv[E_[(E_[S>>2]|0)+36>>2]&127](S)|0:E_[L>>2]|0,(z|0)!=-1){U=S;break}E_[g>>2]=0,U=0}while(0);g=(U|0)==0,S=E_[y>>2]|0;do{if((S|0)!=0){if(L=E_[S+12>>2]|0,V=(L|0)==(E_[S+16>>2]|0)?rv[E_[(E_[S>>2]|0)+36>>2]&127](S)|0:E_[L>>2]|0,(V|0)==-1){E_[y>>2]=0,Y=5997;break}if(g^(S|0)==0)break;Y=5999;break}Y=5997}while(0);return(Y|0)==5997&&g&&(Y=5999),(Y|0)==5999&&(E_[n>>2]=E_[n>>2]|2),E_[e>>2]=U,S=E_[l>>2]|0,$k(S)|0,S=E_[w>>2]|0,E_[w>>2]=0,(S|0)==0?void(O_=r):(Qw[E_[v>>2]&511](S),void(O_=r))}while(0);r=Yw(4)|0,Ht(r),gw(r|0,11024,132)}function Bi(e,r,i,f,a,t,n,o,u,l,s){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0,l|=0,s|=0;var b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0,J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166,U=s,z=s,s=c+400|0,c=0,Y=0;
e:for(;;){V=E_[i>>2]|0;do{if((V|0)!=0){if(j=E_[V+12>>2]|0,q=(j|0)==(E_[V+16>>2]|0)?rv[E_[(E_[V>>2]|0)+36>>2]&127](V)|0:E_[j>>2]|0,(q|0)==-1){E_[i>>2]=0,Z=1;break}Z=(E_[i>>2]|0)==0;break}Z=1}while(0);V=E_[e>>2]|0;do{if((V|0)!=0){if(j=E_[V+12>>2]|0,K=(j|0)==(E_[V+16>>2]|0)?rv[E_[(E_[V>>2]|0)+36>>2]&127](V)|0:E_[j>>2]|0,(K|0)==-1){E_[e>>2]=0,W=6025;break}if(Z^(V|0)==0){X=V;break}G=H,Q=U,J=z,$=c,W=6265;break e}W=6025}while(0);if((W|0)==6025){if(W=0,Z){G=H,Q=U,J=z,$=c,W=6265;break}X=0}r:do switch(m_[d+Y|0]|0){case 0:W=6050;break;case 3:if(V=m_[O]|0,j=V&255,er=(j&1|0)==0,rr=m_[R]|0,ir=rr&255,fr=(ir&1|0)==0,((er?j>>>1:E_[D>>2]|0)|0)==(-(fr?ir>>>1:E_[M>>2]|0)|0)){ar=c,tr=s,nr=z,or=U,ur=H;break r}do if(((er?j>>>1:E_[D>>2]|0)|0)!=0){if(((fr?ir>>>1:E_[M>>2]|0)|0)==0)break;if(lr=E_[i>>2]|0,sr=E_[lr+12>>2]|0,(sr|0)==(E_[lr+16>>2]|0)?(br=rv[E_[(E_[lr>>2]|0)+36>>2]&127](lr)|0,kr=br,cr=m_[O]|0):(kr=E_[sr>>2]|0,cr=V),sr=E_[i>>2]|0,br=sr+12|0,lr=E_[br>>2]|0,dr=(lr|0)==(E_[sr+16>>2]|0),(kr|0)==(E_[((cr&1)==0?D:E_[C>>2]|0)>>2]|0)){dr?(hr=E_[(E_[sr>>2]|0)+40>>2]|0,rv[hr&127](sr)|0):E_[br>>2]=lr+4,br=S_[O]|0,ar=((br&1|0)==0?br>>>1:E_[D>>2]|0)>>>0>1?p:c,tr=s,nr=z,or=U,ur=H;break r}if(_r=dr?rv[E_[(E_[sr>>2]|0)+36>>2]&127](sr)|0:E_[lr>>2]|0,(_r|0)!=(E_[((m_[R]&1)==0?M:E_[N>>2]|0)>>2]|0)){W=6115;break e}lr=E_[i>>2]|0,sr=lr+12|0,dr=E_[sr>>2]|0,(dr|0)==(E_[lr+16>>2]|0)?(br=E_[(E_[lr>>2]|0)+40>>2]|0,rv[br&127](lr)|0):E_[sr>>2]=dr+4,m_[n]=1,dr=S_[R]|0,ar=((dr&1|0)==0?dr>>>1:E_[M>>2]|0)>>>0>1?E:c,tr=s,nr=z,or=U,ur=H;break r}while(0);if(ir=E_[i>>2]|0,fr=E_[ir+12>>2]|0,dr=(fr|0)==(E_[ir+16>>2]|0),((er?j>>>1:E_[D>>2]|0)|0)==0){if(dr?(sr=rv[E_[(E_[ir>>2]|0)+36>>2]&127](ir)|0,wr=sr,vr=m_[R]|0):(wr=E_[fr>>2]|0,vr=rr),(wr|0)!=(E_[((vr&1)==0?M:E_[N>>2]|0)>>2]|0)){ar=c,tr=s,nr=z,or=U,ur=H;break r}sr=E_[i>>2]|0,lr=sr+12|0,br=E_[lr>>2]|0,(br|0)==(E_[sr+16>>2]|0)?(hr=E_[(E_[sr>>2]|0)+40>>2]|0,rv[hr&127](sr)|0):E_[lr>>2]=br+4,m_[n]=1,br=S_[R]|0,ar=((br&1|0)==0?br>>>1:E_[M>>2]|0)>>>0>1?E:c,tr=s,nr=z,or=U,ur=H;break r}if(dr?(dr=rv[E_[(E_[ir>>2]|0)+36>>2]&127](ir)|0,mr=dr,pr=m_[O]|0):(mr=E_[fr>>2]|0,pr=V),(mr|0)!=(E_[((pr&1)==0?D:E_[C>>2]|0)>>2]|0)){m_[n]=1,ar=c,tr=s,nr=z,or=U,ur=H;break r}fr=E_[i>>2]|0,dr=fr+12|0,ir=E_[dr>>2]|0,(ir|0)==(E_[fr+16>>2]|0)?(br=E_[(E_[fr>>2]|0)+40>>2]|0,rv[br&127](fr)|0):E_[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>1:E_[a>>2]|0)<<2)|0))break;ir=E_[i>>2]|0;do{if((ir|0)!=0){if(dr=E_[ir+12>>2]|0,Pr=(dr|0)==(E_[ir+16>>2]|0)?rv[E_[(E_[ir>>2]|0)+36>>2]&127](ir)|0:E_[dr>>2]|0,(Pr|0)==-1){E_[i>>2]=0,Tr=1;break}Tr=(E_[i>>2]|0)==0;break}Tr=1}while(0);do{if((yr|0)!=0){if(ir=E_[yr+12>>2]|0,Lr=(ir|0)==(E_[yr+16>>2]|0)?rv[E_[(E_[yr>>2]|0)+36>>2]&127](yr)|0:E_[ir>>2]|0,(Lr|0)==-1){E_[e>>2]=0,W=6147;break}if(Tr^(yr|0)==0){Ir=yr;break}break i}W=6147}while(0);if((W|0)==6147){if(W=0,Tr)break;Ir=0}if(ir=E_[i>>2]|0,fr=E_[ir+12>>2]|0,xr=(fr|0)==(E_[ir+16>>2]|0)?rv[E_[(E_[ir>>2]|0)+36>>2]&127](ir)|0:E_[fr>>2]|0,(xr|0)!=(E_[Sr>>2]|0))break;fr=E_[i>>2]|0,ir=fr+12|0,dr=E_[ir>>2]|0,(dr|0)==(E_[fr+16>>2]|0)?(V=E_[(E_[fr>>2]|0)+40>>2]|0,rv[V&127](fr)|0):E_[ir>>2]=dr+4,Sr=Sr+4|0,gr=m_[A]|0,yr=Ir}if(!T){ar=c,tr=s,nr=z,or=U,ur=H;break r}if(dr=m_[A]|0,ir=dr&255,(Sr|0)!=(((dr&1)==0?a:E_[P>>2]|0)+(((ir&1|0)==0?ir>>>1:E_[a>>2]|0)<<2)|0)){W=6159;break e}ar=c,tr=s,nr=z,or=U,ur=H;break;case 4:ir=0,dr=s,fr=z,V=U,rr=H;i:for(;;){j=E_[i>>2]|0;do{if((j|0)!=0){if(er=E_[j+12>>2]|0,Hr=(er|0)==(E_[j+16>>2]|0)?rv[E_[(E_[j>>2]|0)+36>>2]&127](j)|0:E_[er>>2]|0,(Hr|0)==-1){E_[i>>2]=0,Br=1;break}Br=(E_[i>>2]|0)==0;break}Br=1}while(0);j=E_[e>>2]|0;do{if((j|0)!=0){if(er=E_[j+12>>2]|0,Ur=(er|0)==(E_[j+16>>2]|0)?rv[E_[(E_[j>>2]|0)+36>>2]&127](j)|0:E_[er>>2]|0,(Ur|0)==-1){E_[e>>2]=0,W=6173;break}if(Br^(j|0)==0)break;break i}W=6173}while(0);if((W|0)==6173&&(W=0,Br))break;if(j=E_[i>>2]|0,er=E_[j+12>>2]|0,zr=(er|0)==(E_[j+16>>2]|0)?rv[E_[(E_[j>>2]|0)+36>>2]&127](j)|0:E_[er>>2]|0,iv[E_[(E_[r>>2]|0)+12>>2]&63](o,2048,zr)|0)er=E_[l>>2]|0,(er|0)==(E_[k>>2]|0)?(Yi(u,l,k),Yr=E_[l>>2]|0):Yr=er,E_[l>>2]=Yr+4,E_[Yr>>2]=zr,Vr=ir+1|0,Zr=dr,jr=fr,qr=V,Wr=rr;else{if(er=S_[v]|0,(((er&1|0)==0?er>>>1:E_[B>>2]|0)|0)==0|(ir|0)==0)break;if((zr|0)!=(E_[_>>2]|0))break;(fr|0)==(dr|0)?(er=(rr|0)!=166,j=fr-V|0,sr=j>>>0<2147483647?j<<1:-1,Kr=er?V:0,er=ln(Kr,sr)|0,hr=er,(er|0)==0&&pn(),Xr=hr+(sr>>>2<<2)|0,Gr=hr+(j>>2<<2)|0,Qr=hr,Jr=82):(Xr=dr,Gr=fr,Qr=V,Jr=rr),E_[Gr>>2]=ir,Vr=0,Zr=Xr,jr=Gr+4|0,qr=Qr,Wr=Jr}hr=E_[i>>2]|0,j=hr+12|0,sr=E_[j>>2]|0,(sr|0)!=(E_[hr+16>>2]|0)?(E_[j>>2]=sr+4,ir=Vr,dr=Zr,fr=jr,V=qr,rr=Wr):(er=E_[(E_[hr>>2]|0)+40>>2]|0,rv[er&127](hr)|0,ir=Vr,dr=Zr,fr=jr,V=qr,rr=Wr)}if((V|0)==(fr|0)|(ir|0)==0?($r=dr,ei=fr,ri=V,ii=rr):((fr|0)==(dr|0)?(sr=(rr|0)!=166,j=fr-V|0,hr=j>>>0<2147483647?j<<1:-1,fi=sr?V:0,sr=ln(fi,hr)|0,er=sr,(sr|0)==0&&pn(),ai=er+(hr>>>2<<2)|0,ti=er+(j>>2<<2)|0,ni=er,oi=82):(ai=dr,ti=fr,ni=V,oi=rr),E_[ti>>2]=ir,$r=ai,ei=ti+4|0,ri=ni,ii=oi),er=E_[g>>2]|0,(er|0)>0){j=E_[i>>2]|0;do{if((j|0)!=0){if(hr=E_[j+12>>2]|0,li=(hr|0)==(E_[j+16>>2]|0)?rv[E_[(E_[j>>2]|0)+36>>2]&127](j)|0:E_[hr>>2]|0,(li|0)==-1){E_[i>>2]=0,ui=1;break}ui=(E_[i>>2]|0)==0;break}ui=1}while(0);j=E_[e>>2]|0;do{if((j|0)!=0){if(ir=E_[j+12>>2]|0,si=(ir|0)==(E_[j+16>>2]|0)?rv[E_[(E_[j>>2]|0)+36>>2]&127](j)|0:E_[ir>>2]|0,(si|0)==-1){E_[e>>2]=0,W=6222;break}if(ui^(j|0)==0){bi=j;break}W=6228;break e}W=6222}while(0);if((W|0)==6222){if(W=0,ui){W=6228;break e}bi=0}if(j=E_[i>>2]|0,ir=E_[j+12>>2]|0,ki=(ir|0)==(E_[j+16>>2]|0)?rv[E_[(E_[j>>2]|0)+36>>2]&127](j)|0:E_[ir>>2]|0,(ki|0)!=(E_[h>>2]|0)){W=6228;break e}for(ir=E_[i>>2]|0,j=ir+12|0,rr=E_[j>>2]|0,(rr|0)==(E_[ir+16>>2]|0)?(V=E_[(E_[ir>>2]|0)+40>>2]|0,rv[V&127](ir)|0,ci=bi,di=er):(E_[j>>2]=rr+4,ci=bi,di=er);;){rr=E_[i>>2]|0;do{if((rr|0)!=0){if(j=E_[rr+12>>2]|0,_i=(j|0)==(E_[rr+16>>2]|0)?rv[E_[(E_[rr>>2]|0)+36>>2]&127](rr)|0:E_[j>>2]|0,(_i|0)==-1){E_[i>>2]=0,hi=1;break}hi=(E_[i>>2]|0)==0;break}hi=1}while(0);do{if((ci|0)!=0){if(rr=E_[ci+12>>2]|0,wi=(rr|0)==(E_[ci+16>>2]|0)?rv[E_[(E_[ci>>2]|0)+36>>2]&127](ci)|0:E_[rr>>2]|0,(wi|0)==-1){E_[e>>2]=0,W=6245;break}if(hi^(ci|0)==0){vi=ci;break}W=6252;break e}W=6245}while(0);if((W|0)==6245){if(W=0,hi){W=6252;break e}vi=0}if(rr=E_[i>>2]|0,j=E_[rr+12>>2]|0,mi=(j|0)==(E_[rr+16>>2]|0)?rv[E_[(E_[rr>>2]|0)+36>>2]&127](rr)|0:E_[j>>2]|0,!(iv[E_[(E_[r>>2]|0)+12>>2]&63](o,2048,mi)|0)){W=6252;break e}if((E_[l>>2]|0)==(E_[k>>2]|0)&&Yi(u,l,k),j=E_[i>>2]|0,rr=E_[j+12>>2]|0,pi=(rr|0)==(E_[j+16>>2]|0)?rv[E_[(E_[j>>2]|0)+36>>2]&127](j)|0:E_[rr>>2]|0,rr=E_[l>>2]|0,E_[l>>2]=rr+4,E_[rr>>2]=pi,rr=di-1|0,E_[g>>2]=rr,j=E_[i>>2]|0,ir=j+12|0,V=E_[ir>>2]|0,(V|0)==(E_[j+16>>2]|0)?(fr=E_[(E_[j>>2]|0)+40>>2]|0,rv[fr&127](j)|0):E_[ir>>2]=V+4,!((rr|0)>0))break;ci=vi,di=rr}}if((E_[l>>2]|0)==(E_[f>>2]|0)){W=6263;break e}ar=c,tr=$r,nr=ei,or=ri,ur=ii;break;case 1:if((Y|0)==3){G=H,Q=U,J=z,$=c,W=6265;break e}if(er=E_[i>>2]|0,rr=E_[er+12>>2]|0,Ei=(rr|0)==(E_[er+16>>2]|0)?rv[E_[(E_[er>>2]|0)+36>>2]&127](er)|0:E_[rr>>2]|0,!(iv[E_[(E_[r>>2]|0)+12>>2]&63](o,8192,Ei)|0)){W=6049;break e}rr=E_[i>>2]|0,er=rr+12|0,V=E_[er>>2]|0,(V|0)==(E_[rr+16>>2]|0)?Si=rv[E_[(E_[rr>>2]|0)+40>>2]&127](rr)|0:(E_[er>>2]=V+4,Si=E_[V>>2]|0),Hc(S,Si),W=6050;break;default:ar=c,tr=s,nr=z,or=U,ur=H}while(0);r:do if((W|0)==6050){if(W=0,(Y|0)==3){G=H,Q=U,J=z,$=c,W=6265;break e}for(gi=X;;){V=E_[i>>2]|0;do{if((V|0)!=0){if(er=E_[V+12>>2]|0,Ai=(er|0)==(E_[V+16>>2]|0)?rv[E_[(E_[V>>2]|0)+36>>2]&127](V)|0:E_[er>>2]|0,(Ai|0)==-1){E_[i>>2]=0,yi=1;break}yi=(E_[i>>2]|0)==0;break}yi=1}while(0);do{if((gi|0)!=0){if(V=E_[gi+12>>2]|0,Oi=(V|0)==(E_[gi+16>>2]|0)?rv[E_[(E_[gi>>2]|0)+36>>2]&127](gi)|0:E_[V>>2]|0,(Oi|0)==-1){E_[e>>2]=0,W=6064;break}if(yi^(gi|0)==0){Ri=gi;break}ar=c,tr=s,nr=z,or=U,ur=H;break r}W=6064}while(0);if((W|0)==6064){if(W=0,yi){ar=c,tr=s,nr=z,or=U,ur=H;break r}Ri=0}if(V=E_[i>>2]|0,er=E_[V+12>>2]|0,Fi=(er|0)==(E_[V+16>>2]|0)?rv[E_[(E_[V>>2]|0)+36>>2]&127](V)|0:E_[er>>2]|0,!(iv[E_[(E_[r>>2]|0)+12>>2]&63](o,8192,Fi)|0)){ar=c,tr=s,nr=z,or=U,ur=H;break r}er=E_[i>>2]|0,V=er+12|0,rr=E_[V>>2]|0,(rr|0)==(E_[er+16>>2]|0)?Mi=rv[E_[(E_[er>>2]|0)+40>>2]&127](er)|0:(E_[V>>2]=rr+4,Mi=E_[rr>>2]|0),Hc(S,Mi),gi=Ri}}while(0);if(rr=Y+1|0,!(rr>>>0<4)){G=ur,Q=or,J=nr,$=ar,W=6265;break}H=ur,U=or,z=nr,s=tr,c=ar,Y=rr}e:do if((W|0)==6049)E_[t>>2]=E_[t>>2]|4,Ni=0,Di=U,Ci=H;else if((W|0)==6115)E_[t>>2]=E_[t>>2]|4,Ni=0,Di=U,Ci=H;else if((W|0)==6159)E_[t>>2]=E_[t>>2]|4,Ni=0,Di=U,Ci=H;else if((W|0)==6228)E_[t>>2]=E_[t>>2]|4,Ni=0,Di=ri,Ci=ii;else if((W|0)==6252)E_[t>>2]=E_[t>>2]|4,Ni=0,Di=ri,Ci=ii;else if((W|0)==6263)E_[t>>2]=E_[t>>2]|4,Ni=0,Di=ri,Ci=ii;else if((W|0)==6265){r:do if(($|0)!=0){ar=$,nr=$+4|0,or=$+8|0,ur=1;i:for(;;){if(Y=S_[ar]|0,Ti=(Y&1|0)==0?Y>>>1:E_[nr>>2]|0,ur>>>0>=Ti>>>0)break r;Y=E_[i>>2]|0;do{if((Y|0)!=0){if(c=E_[Y+12>>2]|0,Ii=(c|0)==(E_[Y+16>>2]|0)?rv[E_[(E_[Y>>2]|0)+36>>2]&127](Y)|0:E_[c>>2]|0,(Ii|0)==-1){E_[i>>2]=0,Li=1;break}Li=(E_[i>>2]|0)==0;break}Li=1}while(0);Y=E_[e>>2]|0;do{if((Y|0)!=0){if(c=E_[Y+12>>2]|0,xi=(c|0)==(E_[Y+16>>2]|0)?rv[E_[(E_[Y>>2]|0)+36>>2]&127](Y)|0:E_[c>>2]|0,(xi|0)==-1){E_[e>>2]=0,W=6284;break}if(Li^(Y|0)==0)break;break i}W=6284}while(0);if((W|0)==6284&&(W=0,Li))break;if(Y=E_[i>>2]|0,c=E_[Y+12>>2]|0,Bi=(c|0)==(E_[Y+16>>2]|0)?rv[E_[(E_[Y>>2]|0)+36>>2]&127](Y)|0:E_[c>>2]|0,Hi=(m_[ar]&1)==0?nr:E_[or>>2]|0,(Bi|0)!=(E_[Hi+(ur<<2)>>2]|0))break;c=ur+1|0,Y=E_[i>>2]|0,tr=Y+12|0,s=E_[tr>>2]|0,(s|0)!=(E_[Y+16>>2]|0)?(E_[tr>>2]=s+4,ur=c):(z=E_[(E_[Y>>2]|0)+40>>2]|0,rv[z&127](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]&31](E,45)|0),p=lv[E_[(E_[y>>2]|0)+44>>2]&31](E,48)|0,E=E_[b>>2]|0,y=E-4|0,A=E_[h>>2]|0;;){if(A>>>0>=y>>>0)break;if((E_[A>>2]|0)!=(p|0))break;A=A+4|0}Ui(o,A,E)|0}p=i|0,y=E_[p>>2]|0;do if((y|0)==0)O=0;else{if(R=E_[y+12>>2]|0,F=(R|0)==(E_[y+16>>2]|0)?rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0:E_[R>>2]|0,(F|0)!=-1){O=y;break}E_[p>>2]=0,O=0}while(0);p=(O|0)==0;do{if((g|0)!=0){if(y=E_[g+12>>2]|0,N=(y|0)==(E_[g+16>>2]|0)?rv[E_[(E_[g>>2]|0)+36>>2]&127](g)|0:E_[y>>2]|0,(N|0)==-1){E_[S>>2]=0,M=6339;break}if(p^(g|0)==0)break;M=6341;break}M=6339}while(0);return(M|0)==6339&&p&&(M=6341),(M|0)==6341&&(E_[n>>2]=E_[n>>2]|2),E_[e>>2]=O,g=E_[l>>2]|0,$k(g)|0,g=E_[h>>2]|0,E_[h>>2]=0,(g|0)==0?void(O_=r):(Qw[E_[_>>2]&511](g),void(O_=r))}while(0);r=Yw(4)|0,Ht(r),gw(r|0,11024,132)}function Ui(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0;if(f=e,a=r,t=m_[f]|0,n=t&255,o=(n&1|0)==0?n>>>1:E_[e+4>>2]|0,(t&1)==0?(u=1,l=t):(t=E_[e>>2]|0,u=(t&-2)-1|0,l=t&255),t=i-a>>2,(t|0)==0)return e|0;if((u-o|0)>>>0<t>>>0?(zc(e,u,o+t-u|0,o,o,0,0),s=m_[f]|0):s=l,b=(s&1)==0?e+4|0:E_[e+8>>2]|0,s=b+(o<<2)|0,(r|0)==(i|0))k=s;else{for(l=o+((i-4+(-a|0)|0)>>>2)+1|0,a=r,r=s;;){if(E_[r>>2]=E_[a>>2],s=a+4|0,(s|0)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[E_[(E_[A>>2]|0)+36>>2]&127](L)|0,E_[l>>2]=P,void(O_=s))}function Yi(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;f=e+4|0,a=(E_[f>>2]|0)!=166,t=e|0,e=E_[t>>2]|0,n=e,o=(E_[i>>2]|0)-n|0,u=o>>>0<2147483647?o<<1:-1,o=(E_[r>>2]|0)-n>>2,l=a?e:0,e=ln(l,u)|0,l=e,(e|0)==0&&pn();do if(a)E_[t>>2]=l,s=l;else{if(e=E_[t>>2]|0,E_[t>>2]=l,(e|0)==0){s=l;break}Qw[E_[f>>2]&511](e),s=E_[t>>2]|0}while(0);E_[f>>2]=82,E_[r>>2]=s+(o<<2),E_[i>>2]=(E_[t>>2]|0)+(u>>>2<<2)}function Vi(e){e|=0,Qk(e|0),hn(e)}function Zi(e){e|=0,Qk(e|0)}function ji(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n=+n;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,T=0,P=0,L=0,I=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0;r=O_,O_=O_+280|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=r|0,u=r+120|0,l=r+232|0,s=r+240|0,b=r+248|0,k=r+256|0,c=r+264|0,d=c,h=O_,O_=O_+12|0,O_=O_+7&-8,_=h,w=O_,O_=O_+12|0,O_=O_+7&-8,v=w,m=O_,O_=O_+4|0,O_=O_+7&-8,p=O_,O_=O_+100|0,O_=O_+7&-8,E=O_,O_=O_+4|0,O_=O_+7&-8,S=O_,O_=O_+4|0,O_=O_+7&-8,g=O_,O_=O_+4|0,O_=O_+7&-8,y=r+16|0,E_[u>>2]=y,A=r+128|0,O=sw(y|0,100,3528,(y=O_,O_=O_+8|0,A_[y>>3]=n,y|0))|0,O_=y;do if(O>>>0>99){do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);if(R=x(u,E_[3666]|0,3528,(y=O_,O_=O_+8|0,A_[y>>3]=n,y|0))|0,O_=y,F=E_[u>>2]|0,(F|0)==0?(pn(),M=E_[u>>2]|0):M=F,F=on(R)|0,(F|0)!=0){N=F,D=R,T=M,P=F;break}pn(),N=0,D=R,T=M,P=0}else N=A,D=O,T=0,P=0;while(0);Zc(l,a),O=l|0,A=E_[O>>2]|0,(E_[4028]|0)!=-1&&(E_[o>>2]=16112,E_[o+4>>2]=14,E_[o+8>>2]=0,mc(16112,o,98)),o=(E_[4029]|0)-1|0,M=E_[A+8>>2]|0;do if((E_[A+12>>2]|0)-M>>2>>>0>o>>>0){if(y=E_[M+(o<<2)>>2]|0,(y|0)==0)break;R=y,F=E_[u>>2]|0,L=F+D|0,I=E_[(E_[y>>2]|0)+32>>2]|0,Kw[I&15](R,F,L,N)|0,B=(D|0)==0?0:(m_[E_[u>>2]|0]|0)==45,An(d|0,0,12)|0,An(_|0,0,12)|0,An(v|0,0,12)|0,qi(f,B,l,s,b,k,c,h,w,m),L=p|0,F=E_[m>>2]|0,(D|0)>(F|0)?(I=S_[v]|0,H=(I&1|0)==0?I>>>1:E_[w+4>>2]|0,I=S_[_]|0,U=(I&1|0)==0?I>>>1:E_[h+4>>2]|0,z=(D-F<<1|1)+H+U|0):(I=S_[v]|0,Y=(I&1|0)==0?I>>>1:E_[w+4>>2]|0,I=S_[_]|0,V=(I&1|0)==0?I>>>1:E_[h+4>>2]|0,z=Y+2+V|0),I=z+F|0;do if(I>>>0>100){if(y=on(I)|0,(y|0)!=0){Z=y,j=y;break}pn(),Z=0,j=0}else Z=L,j=0;while(0);return Wi(Z,E,S,E_[a+4>>2]|0,N,N+D|0,R,B,s,m_[b]|0,m_[k]|0,c,h,w,F),E_[g>>2]=E_[i>>2],C(e,g,Z,E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>>>1:E_[m>>2]|0,(T|0)==0){N=M;break e}P=(D&1)==0?w:E_[v>>2]|0,D=m_[P]|0,C=E_[i>>2]|0,E_[i>>2]=C+1,m_[C]=D,N=M;break;case 4:for(D=E_[i>>2]|0,C=o?M+1|0:M,L=C;;){if(L>>>0>=t>>>0)break;if(I=m_[L]|0,I<<24>>24<0)break;if((p_[(E_[k>>2]|0)+(I<<24>>24<<1)>>1]&2048)==0)break;L=L+1|0}if(I=L,y){if(L>>>0>C>>>0){for(x=C+(-I|0)|0,I=x>>>0<b>>>0?b:x,x=I+d|0,B=L,H=d,U=D;;){if(z=B-1|0,Y=m_[z]|0,E_[i>>2]=U+1,m_[U]=Y,Y=H-1|0,V=(Y|0)>0,!(z>>>0>C>>>0&V))break;B=z,H=Y,U=E_[i>>2]|0}U=L+I|0,V?(Z=x,j=U,q=6612):(W=0,K=x,X=U)}else Z=d,j=L,q=6612;if((q|0)==6612&&(q=0,W=lv[E_[(E_[h>>2]|0)+28>>2]&31](n,48)|0,K=Z,X=j),U=E_[i>>2]|0,E_[i>>2]=U+1,(K|0)>0)for(H=K,B=U;;){if(m_[B]=W,Y=H-1|0,z=E_[i>>2]|0,E_[i>>2]=z+1,!((Y|0)>0)){G=z;break}H=Y,B=z}else G=U;m_[G]=l,Q=X}else Q=L;if((Q|0)==(C|0))B=lv[E_[(E_[h>>2]|0)+28>>2]&31](n,48)|0,H=E_[i>>2]|0,E_[i>>2]=H+1,m_[H]=B;else for(B=m_[A]|0,H=B&255,J=(H&1|0)==0?H>>>1:E_[F>>2]|0,(J|0)==0?($=Q,er=0,rr=0,ir=-1):(fr=(B&1)==0?O:E_[R>>2]|0,$=Q,er=0,rr=0,ir=m_[fr]|0);;){do if((er|0)==(ir|0)){if(B=E_[i>>2]|0,E_[i>>2]=B+1,m_[B]=s,B=rr+1|0,H=m_[A]|0,x=H&255,ar=(x&1|0)==0?x>>>1:E_[F>>2]|0,B>>>0>=ar>>>0){tr=ir,nr=B,or=0;break}if(x=(H&1)==0,ur=x?O:E_[R>>2]|0,(m_[ur+B|0]|0)==127){tr=-1,nr=B,or=0;break}lr=x?O:E_[R>>2]|0,tr=m_[lr+B|0]|0,nr=B,or=0}else tr=ir,nr=rr,or=er;while(0);if(B=$-1|0,x=m_[B]|0,H=E_[i>>2]|0,E_[i>>2]=H+1,m_[H]=x,(B|0)==(C|0))break;$=B,er=or+1|0,rr=nr,ir=tr}if(L=E_[i>>2]|0,(D|0)==(L|0)){N=C;break e}if(U=L-1|0,!(D>>>0<U>>>0)){N=C;break e}for(sr=D,br=U;;){if(U=m_[sr]|0,m_[sr]=m_[br]|0,m_[br]=U,U=sr+1|0,L=br-1|0,!(U>>>0<L>>>0)){N=C;break}sr=U,br=L}break;case 1:E_[r>>2]=E_[i>>2],C=lv[E_[(E_[h>>2]|0)+28>>2]&31](n,32)|0,D=E_[i>>2]|0,E_[i>>2]=D+1,m_[D]=C,N=M;break;case 2:if(C=m_[c]|0,D=C&255,L=(D&1|0)==0,kr=L?D>>>1:E_[S>>2]|0,(kr|0)==0|p){N=M;break e}if((C&1)==0?(cr=E,dr=E):(C=E_[g>>2]|0,cr=C,dr=C),hr=L?D>>>1:E_[S>>2]|0,D=cr+hr|0,L=E_[i>>2]|0,(dr|0)==(D|0))_r=L;else for(C=dr,U=L;;){if(m_[U]=m_[C]|0,L=C+1|0,B=U+1|0,(L|0)==(D|0)){_r=B;break}C=L,U=B}E_[i>>2]=_r,N=M;break;default:N=M}while(0);if(U=a+1|0,!(U>>>0<4))break;M=N,a=U}if(a=m_[_]|0,_=a&255,N=(_&1|0)==0,wr=N?_>>>1:E_[m>>2]|0,wr>>>0>1){if((a&1)==0?(vr=w,mr=w):(w=E_[v>>2]|0,vr=w,mr=w),pr=N?_>>>1:E_[m>>2]|0,m=vr+pr|0,pr=E_[i>>2]|0,vr=mr+1|0,(vr|0)==(m|0))Er=pr;else for(mr=pr,pr=vr;;){if(m_[mr]=m_[pr]|0,vr=mr+1|0,_=pr+1|0,(_|0)==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,Y=0,V=0,Z=0,j=0;r=O_,O_=O_+576|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=r|0,u=r+120|0,l=r+528|0,s=r+536|0,b=r+544|0,k=r+552|0,c=r+560|0,d=c,h=O_,O_=O_+12|0,O_=O_+7&-8,_=h,w=O_,O_=O_+12|0,O_=O_+7&-8,v=w,m=O_,O_=O_+4|0,O_=O_+7&-8,p=O_,O_=O_+400|0,E=O_,O_=O_+4|0,O_=O_+7&-8,S=O_,O_=O_+4|0,O_=O_+7&-8,g=O_,O_=O_+4|0,O_=O_+7&-8,y=r+16|0,E_[u>>2]=y,A=r+128|0,O=sw(y|0,100,3528,(y=O_,O_=O_+8|0,A_[y>>3]=n,y|0))|0,O_=y;do if(O>>>0>99){do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);if(R=x(u,E_[3666]|0,3528,(y=O_,O_=O_+8|0,A_[y>>3]=n,y|0))|0,O_=y,F=E_[u>>2]|0,(F|0)==0?(pn(),M=E_[u>>2]|0):M=F,F=on(R<<2)|0,N=F,(F|0)!=0){D=N,C=R,T=M,P=N;break}pn(),D=N,C=R,T=M,P=N}else D=A,C=O,T=0,P=0;while(0);Zc(l,a),O=l|0,A=E_[O>>2]|0,(E_[4026]|0)!=-1&&(E_[o>>2]=16104,E_[o+4>>2]=14,E_[o+8>>2]=0,mc(16104,o,98)),o=(E_[4027]|0)-1|0,M=E_[A+8>>2]|0;do if((E_[A+12>>2]|0)-M>>2>>>0>o>>>0){if(y=E_[M+(o<<2)>>2]|0,(y|0)==0)break;N=y,R=E_[u>>2]|0,F=R+C|0,L=E_[(E_[y>>2]|0)+48>>2]|0,Kw[L&15](N,R,F,D)|0,I=(C|0)==0?0:(m_[E_[u>>2]|0]|0)==45,An(d|0,0,12)|0,An(_|0,0,12)|0,An(v|0,0,12)|0,Ji(f,I,l,s,b,k,c,h,w,m),F=p|0,R=E_[m>>2]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>>2]=I+4,E_[I>>2]=Z;else for(Z=m_[g]|0,I=Z&255,X=(I&1|0)==0?I>>>1:E_[O>>2]|0,(X|0)==0?(G=K,Q=0,J=0,$=-1):(er=(Z&1)==0?y:E_[A>>2]|0,G=K,Q=0,J=0,$=m_[er]|0);;){do if((Q|0)==($|0)){if(Z=E_[i>>2]|0,E_[i>>2]=Z+4,E_[Z>>2]=s,Z=J+1|0,I=m_[g]|0,T=I&255,rr=(T&1|0)==0?T>>>1:E_[O>>2]|0,Z>>>0>=rr>>>0){ir=$,fr=Z,ar=0;break}if(T=(I&1)==0,tr=T?y:E_[A>>2]|0,(m_[tr+Z|0]|0)==127){ir=-1,fr=Z,ar=0;break}nr=T?y:E_[A>>2]|0,ir=m_[nr+Z|0]|0,fr=Z,ar=0}else ir=$,fr=J,ar=Q;while(0);if(Z=G-4|0,T=E_[Z>>2]|0,I=E_[i>>2]|0,E_[i>>2]=I+4,E_[I>>2]=T,(Z|0)==(F|0))break;G=Z,Q=ar+1|0,J=fr,$=ir}if(C=E_[i>>2]|0,(R|0)==(C|0)){N=F;break e}if(L=C-4|0,!(R>>>0<L>>>0)){N=F;break e}for(or=R,ur=L;;){if(L=E_[or>>2]|0,E_[or>>2]=E_[ur>>2],E_[ur>>2]=L,L=or+4|0,C=ur-4|0,!(L>>>0<C>>>0)){N=F;break}or=L,ur=C}break;case 1:E_[r>>2]=E_[i>>2],F=lv[E_[(E_[h>>2]|0)+44>>2]&31](n,32)|0,R=E_[i>>2]|0,E_[i>>2]=R+4,E_[R>>2]=F,N=b;break;case 0:E_[r>>2]=E_[i>>2],N=b;break;case 2:if(F=m_[c]|0,R=F&255,C=(R&1|0)==0,lr=C?R>>>1:E_[p>>2]|0,(lr|0)==0|m){N=b;break e}if((F&1)==0?(sr=p,br=p,kr=p):(F=E_[E>>2]|0,sr=F,br=F,kr=F),cr=C?R>>>1:E_[p>>2]|0,R=sr+(cr<<2)|0,C=E_[i>>2]|0,(br|0)==(R|0))dr=C;else{for(F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_[b>>2]|0,k,d,_,I),E_[S>>2]=E_[i>>2],q(e,S,Z,E_[p>>2]|0,E_[E>>2]|0,a,t),(j|0)==0?(Lc(_),Lc(d),yc(k),Q=E_[g>>2]|0,J=Q|0,$=$k(J)|0,void(O_=r)):(un(j),Lc(_),Lc(d),yc(k),Q=E_[g>>2]|0,J=Q|0,$=$k(J)|0,void(O_=r))}while(0);r=Yw(4)|0,Ht(r),gw(r|0,11024,132)}function rf(e){e|=0,Qk(e|0),hn(e)}function ff(e){e|=0,Qk(e|0)}function af(e,r,i){e|=0,r|=0,i|=0;var f=0;return f=(m_[r]&1)==0?r+1|0:E_[r+8>>2]|0,r=Zw(f|0,1)|0,r>>>(((r|0)!=-1|0)>>>0)|0}function tf(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;r=O_,O_=O_+16|0,n=r|0,o=n,An(o|0,0,12)|0,u=e,l=t,s=m_[t]|0,(s&1)==0?(b=l+1|0,k=l+1|0):(l=E_[t+8>>2]|0,b=l,k=l),l=s&255,c=(l&1|0)==0?l>>>1:E_[t+4>>2]|0,t=b+c|0;do if(k>>>0<t>>>0){c=k;do Mc(n,m_[c]|0),c=c+1|0;while(c>>>0<t>>>0);if(c=(i|0)==-1?-1:i<<1,(m_[o]&1)==0){d=c,h=7020;break}_=E_[n+8>>2]|0,w=c}else d=(i|0)==-1?-1:i<<1,h=7020;while(0);if((h|0)==7020&&(_=n+1|0,w=d),d=ww(w|0,f|0,a|0,_|0)|0,An(u|0,0,12)|0,u=gn(d|0)|0,_=d+u|0,!((u|0)>0))return yc(n),void(O_=r);v=d;do Mc(e,m_[v]|0),v=v+1|0;while(v>>>0<_>>>0);yc(n),O_=r}function nf(e,r){e|=0,r|=0,Cw(((r|0)==-1?-1:r<<1)|0)|0}function of(e){e|=0,Qk(e|0),hn(e)}function uf(e){e|=0,Qk(e|0)}function lf(e,r,i){e|=0,r|=0,i|=0;var f=0;return f=(m_[r]&1)==0?r+1|0:E_[r+8>>2]|0,r=Zw(f|0,1)|0,r>>>(((r|0)!=-1|0)>>>0)|0}function sf(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0;r=O_,O_=O_+224|0,n=r|0,o=r+8|0,u=r+40|0,l=r+48|0,s=r+56|0,b=r+64|0,k=r+192|0,c=r+200|0,d=r+208|0,h=d,_=O_,O_=O_+8|0,w=O_,O_=O_+8|0,An(h|0,0,12)|0,v=e,m=_|0,E_[_+4>>2]=0,E_[_>>2]=6976,p=m_[t]|0,(p&1)==0?(E=t+4|0,S=t+4|0):(g=E_[t+8>>2]|0,E=g,S=g),g=p&255,y=(g&1|0)==0?g>>>1:E_[t+4>>2]|0,t=E+(y<<2)|0;e:do if(S>>>0<t>>>0){for(y=_,E=o|0,g=o+32|0,p=S,A=6976;;){if(E_[l>>2]=p,O=(nv[E_[A+12>>2]&31](m,n,p,t,l,E,g,u)|0)==2,R=E_[l>>2]|0,O|(R|0)==(p|0))break;if(E>>>0<(E_[u>>2]|0)>>>0){O=E;do Mc(d,m_[O]|0),O=O+1|0;while(O>>>0<(E_[u>>2]|0)>>>0);F=E_[l>>2]|0}else F=R;if(F>>>0>=t>>>0)break e;p=F,A=E_[y>>2]|0}y=Yw(8)|0,tc(y,2032),gw(y|0,11040,26)}while(0);if(Qk(_|0),M=(m_[h]&1)==0?d+1|0:E_[d+8>>2]|0,h=ww(((i|0)==-1?-1:i<<1)|0,f|0,a|0,M|0)|0,An(v|0,0,12)|0,v=w|0,E_[w+4>>2]=0,E_[w>>2]=6920,M=gn(h|0)|0,a=h+M|0,(M|0)<1)return N=w|0,Qk(N),yc(d),void(O_=r);for(M=w,f=a,i=b|0,_=b+128|0,b=h,h=6920;;){if(E_[c>>2]=b,F=(nv[E_[h+16>>2]&31](v,s,b,(f-b|0)>32?b+32|0:a,c,i,_,k)|0)==2,t=E_[c>>2]|0,F|(t|0)==(b|0))break;if(i>>>0<(E_[k>>2]|0)>>>0){F=i;do Hc(e,E_[F>>2]|0),F=F+4|0;while(F>>>0<(E_[k>>2]|0)>>>0);D=E_[c>>2]|0}else D=t;if(D>>>0>=a>>>0){C=7087;break}b=D,h=E_[M>>2]|0}return(C|0)==7087?(N=w|0,Qk(N),yc(d),void(O_=r)):(r=Yw(8)|0,tc(r,2032),void gw(r|0,11040,26))}function bf(e,r){e|=0,r|=0,Cw(((r|0)==-1?-1:r<<1)|0)|0}function kf(e){e|=0;var r=0,i=0,f=0;E_[e>>2]=6440,r=e+8|0,i=E_[r>>2]|0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return(i|0)==(E_[3666]|0)?(f=e|0,void Qk(f)):(_w(E_[r>>2]|0),f=e|0,void Qk(f))}function cf(e){e|=0,e=Yw(8)|0,ec(e,3424),E_[e>>2]=5376,gw(e|0,11056,38)}function df(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0;i=O_,O_=O_+448|0,f=i|0,a=i+16|0,t=i+32|0,n=i+48|0,o=i+64|0,u=i+80|0,l=i+96|0,s=i+112|0,b=i+128|0,k=i+144|0,c=i+160|0,d=i+176|0,h=i+192|0,_=i+208|0,w=i+224|0,v=i+240|0,m=i+256|0,p=i+272|0,E=i+288|0,S=i+304|0,g=i+320|0,y=i+336|0,A=i+352|0,O=i+368|0,R=i+384|0,F=i+400|0,M=i+416|0,N=i+432|0,E_[e+4>>2]=r-1,E_[e>>2]=6696,r=e+8|0,D=e+12|0,m_[e+136|0]=1,C=e+24|0,T=C,E_[D>>2]=T,E_[r>>2]=T,E_[e+16>>2]=C+112,C=28,P=T;do(P|0)==0?L=0:(E_[P>>2]=0,L=E_[D>>2]|0),P=L+4|0,E_[D>>2]=P,C=C-1|0;while((C|0)!=0);Sc(e+144|0,3384,1),C=E_[r>>2]|0,r=E_[D>>2]|0,(C|0)!=(r|0)&&(E_[D>>2]=r+(~((r-4+(-C|0)|0)>>>2)<<2)),E_[3699]=0,E_[3698]=6400,(E_[3948]|0)!=-1&&(E_[N>>2]=15792,E_[N+4>>2]=14,E_[N+8>>2]=0,mc(15792,N,98)),hf(e,14792,(E_[3949]|0)-1|0),E_[3697]=0,E_[3696]=6360,(E_[3946]|0)!=-1&&(E_[M>>2]=15784,E_[M+4>>2]=14,E_[M+8>>2]=0,mc(15784,M,98)),hf(e,14784,(E_[3947]|0)-1|0),E_[3749]=0,E_[3748]=6808,E_[3750]=0,m_[15004]=0,E_[3750]=E_[(hw()|0)>>2],(E_[4028]|0)!=-1&&(E_[F>>2]=16112,E_[F+4>>2]=14,E_[F+8>>2]=0,mc(16112,F,98)),hf(e,14992,(E_[4029]|0)-1|0),E_[3747]=0,E_[3746]=6728,(E_[4026]|0)!=-1&&(E_[R>>2]=16104,E_[R+4>>2]=14,E_[R+8>>2]=0,mc(16104,R,98)),hf(e,14984,(E_[4027]|0)-1|0),E_[3701]=0,E_[3700]=6496,(E_[3952]|0)!=-1&&(E_[O>>2]=15808,E_[O+4>>2]=14,E_[O+8>>2]=0,mc(15808,O,98)),hf(e,14800,(E_[3953]|0)-1|0),E_[1225]=0,E_[1224]=6440;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);E_[1226]=E_[3666],(E_[3950]|0)!=-1&&(E_[A>>2]=15800,E_[A+4>>2]=14,E_[A+8>>2]=0,mc(15800,A,98)),hf(e,4896,(E_[3951]|0)-1|0),E_[3703]=0,E_[3702]=6552,(E_[3954]|0)!=-1&&(E_[y>>2]=15816,E_[y+4>>2]=14,E_[y+8>>2]=0,mc(15816,y,98)),hf(e,14808,(E_[3955]|0)-1|0),E_[3705]=0,E_[3704]=6608,(E_[3956]|0)!=-1&&(E_[g>>2]=15824,E_[g+4>>2]=14,E_[g+8>>2]=0,mc(15824,g,98)),hf(e,14816,(E_[3957]|0)-1|0),E_[3679]=0,E_[3678]=5904,m_[14720]=46,m_[14721]=44,An(14724,0,12)|0,(E_[3932]|0)!=-1&&(E_[S>>2]=15728,E_[S+4>>2]=14,E_[S+8>>2]=0,mc(15728,S,98)),hf(e,14712,(E_[3933]|0)-1|0),E_[1217]=0,E_[1216]=5856,E_[1218]=46,E_[1219]=44,An(4880,0,12)|0,(E_[3930]|0)!=-1&&(E_[E>>2]=15720,E_[E+4>>2]=14,E_[E+8>>2]=0,mc(15720,E,98)),hf(e,4864,(E_[3931]|0)-1|0),E_[3695]=0,E_[3694]=6288,(E_[3944]|0)!=-1&&(E_[p>>2]=15776,E_[p+4>>2]=14,E_[p+8>>2]=0,mc(15776,p,98)),hf(e,14776,(E_[3945]|0)-1|0),E_[3693]=0,E_[3692]=6216,(E_[3942]|0)!=-1&&(E_[m>>2]=15768,E_[m+4>>2]=14,E_[m+8>>2]=0,mc(15768,m,98)),hf(e,14768,(E_[3943]|0)-1|0),E_[3691]=0,E_[3690]=6152,(E_[3940]|0)!=-1&&(E_[v>>2]=15760,E_[v+4>>2]=14,E_[v+8>>2]=0,mc(15760,v,98)),hf(e,14760,(E_[3941]|0)-1|0),E_[3689]=0,E_[3688]=6088,(E_[3938]|0)!=-1&&(E_[w>>2]=15752,E_[w+4>>2]=14,E_[w+8>>2]=0,mc(15752,w,98)),hf(e,14752,(E_[3939]|0)-1|0),E_[3759]=0,E_[3758]=7736,(E_[4148]|0)!=-1&&(E_[_>>2]=16592,E_[_+4>>2]=14,E_[_+8>>2]=0,mc(16592,_,98)),hf(e,15032,(E_[4149]|0)-1|0),E_[3757]=0,E_[3756]=7672,(E_[4146]|0)!=-1&&(E_[h>>2]=16584,E_[h+4>>2]=14,E_[h+8>>2]=0,mc(16584,h,98)),hf(e,15024,(E_[4147]|0)-1|0),E_[3755]=0,E_[3754]=7608,(E_[4144]|0)!=-1&&(E_[d>>2]=16576,E_[d+4>>2]=14,E_[d+8>>2]=0,mc(16576,d,98)),hf(e,15016,(E_[4145]|0)-1|0),E_[3753]=0,E_[3752]=7544,(E_[4142]|0)!=-1&&(E_[c>>2]=16568,E_[c+4>>2]=14,E_[c+8>>2]=0,mc(16568,c,98)),hf(e,15008,(E_[4143]|0)-1|0),E_[3677]=0,E_[3676]=5560,(E_[3920]|0)!=-1&&(E_[k>>2]=15680,E_[k+4>>2]=14,E_[k+8>>2]=0,mc(15680,k,98)),hf(e,14704,(E_[3921]|0)-1|0),E_[3675]=0,E_[3674]=5520,(E_[3918]|0)!=-1&&(E_[b>>2]=15672,E_[b+4>>2]=14,E_[b+8>>2]=0,mc(15672,b,98)),hf(e,14696,(E_[3919]|0)-1|0),E_[3673]=0,E_[3672]=5480,(E_[3916]|0)!=-1&&(E_[s>>2]=15664,E_[s+4>>2]=14,E_[s+8>>2]=0,mc(15664,s,98)),hf(e,14688,(E_[3917]|0)-1|0),E_[3671]=0,E_[3670]=5440,(E_[3914]|0)!=-1&&(E_[l>>2]=15656,E_[l+4>>2]=14,E_[l+8>>2]=0,mc(15656,l,98)),hf(e,14680,(E_[3915]|0)-1|0),E_[1213]=0,E_[1212]=5760,E_[1214]=5808,(E_[3928]|0)!=-1&&(E_[u>>2]=15712,E_[u+4>>2]=14,E_[u+8>>2]=0,mc(15712,u,98)),hf(e,4848,(E_[3929]|0)-1|0),E_[1209]=0,E_[1208]=5664,E_[1210]=5712,(E_[3926]|0)!=-1&&(E_[o>>2]=15704,E_[o+4>>2]=14,E_[o+8>>2]=0,mc(15704,o,98)),hf(e,4832,(E_[3927]|0)-1|0),E_[1205]=0,E_[1204]=6664;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);E_[1206]=E_[3666],E_[1204]=5632,(E_[3924]|0)!=-1&&(E_[n>>2]=15696,E_[n+4>>2]=14,E_[n+8>>2]=0,mc(15696,n,98)),hf(e,4816,(E_[3925]|0)-1|0),E_[1201]=0,E_[1200]=6664;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);E_[1202]=E_[3666],E_[1200]=5600,(E_[3922]|0)!=-1&&(E_[t>>2]=15688,E_[t+4>>2]=14,E_[t+8>>2]=0,mc(15688,t,98)),hf(e,4800,(E_[3923]|0)-1|0),E_[3687]=0,E_[3686]=5992,(E_[3936]|0)!=-1&&(E_[a>>2]=15744,E_[a+4>>2]=14,E_[a+8>>2]=0,mc(15744,a,98)),hf(e,14744,(E_[3937]|0)-1|0),E_[3685]=0,E_[3684]=5952,(E_[3934]|0)!=-1&&(E_[f>>2]=15736,E_[f+4>>2]=14,E_[f+8>>2]=0,mc(15736,f,98)),hf(e,14736,(E_[3935]|0)-1|0),O_=i}function hf(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0;Jk(r|0),f=e+8|0,a=e+12|0,e=E_[a>>2]|0,t=f|0,n=E_[t>>2]|0,o=e-n>>2;do if(o>>>0>i>>>0)u=n;else{if(l=i+1|0,o>>>0<l>>>0){mt(f,l-o|0),u=E_[t>>2]|0;break}if(o>>>0<=l>>>0){u=n;break}if(s=n+(l<<2)|0,(s|0)==(e|0)){u=n;break}E_[a>>2]=e+(~((e-4+(-s|0)|0)>>>2)<<2),u=n}while(0);return n=E_[u+(i<<2)>>2]|0,(n|0)==0?(b=u,k=b+(i<<2)|0,void(E_[k>>2]=r)):($k(n|0)|0,b=E_[t>>2]|0,k=b+(i<<2)|0,void(E_[k>>2]=r))}function _f(e){e|=0,wf(e),hn(e)}function wf(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(E_[e>>2]=6696,r=e+12|0,i=E_[r>>2]|0,f=e+8|0,a=E_[f>>2]|0,(i|0)!=(a|0))for(t=0,n=a,a=i;;){if(i=E_[n+(t<<2)>>2]|0,(i|0)==0?(o=a,u=n):(l=i|0,$k(l)|0,o=E_[r>>2]|0,u=E_[f>>2]|0),l=t+1|0,!(l>>>0<o-u>>2>>>0))break;t=l,n=u,a=o}return yc(e+144|0),o=E_[f>>2]|0,(o|0)==0?(s=e|0,void Qk(s)):(f=E_[r>>2]|0,(o|0)!=(f|0)&&(E_[r>>2]=f+(~((f-4+(-o|0)|0)>>>2)<<2)),(o|0)==(e+24|0)?(m_[e+136|0]=0,s=e|0,void Qk(s)):(hn(o),s=e|0,void Qk(s)))}function vf(){var e=0,r=0;if((m_[16656]|0)!=0)return e=E_[3658]|0,e|0;if((vw(16656)|0)==0)return e=E_[3658]|0,e|0;do if((m_[16664]|0)==0){if((vw(16664)|0)==0)break;df(14824,1),E_[3662]=14824,E_[3660]=14648}while(0);return r=E_[E_[3660]>>2]|0,E_[3664]=r,Jk(r|0),E_[3658]=14656,e=E_[3658]|0,e|0}function mf(e){e|=0;var r=0;r=E_[(vf()|0)>>2]|0,E_[e>>2]=r,Jk(r|0)}function pf(e,r){e|=0,r|=0;var i=0;i=E_[r>>2]|0,E_[e>>2]=i,Jk(i|0)}function Ef(e){e|=0,$k(E_[e>>2]|0)|0}function Sf(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0;return i=O_,O_=O_+16|0,f=i|0,a=E_[e>>2]|0,e=r|0,(E_[e>>2]|0)!=-1&&(E_[f>>2]=r,E_[f+4>>2]=14,E_[f+8>>2]=0,mc(e,f,98)),f=(E_[r+4>>2]|0)-1|0,r=E_[a+8>>2]|0,(E_[a+12>>2]|0)-r>>2>>>0<=f>>>0?(t=Yw(4)|0,n=t,Ht(n),gw(t|0,11024,132),0):(a=E_[r+(f<<2)>>2]|0,(a|0)==0?(t=Yw(4)|0,n=t,Ht(n),gw(t|0,11024,132),0):(O_=i,a|0))}function gf(e){e|=0,Qk(e|0),hn(e)}function yf(e){e|=0,(e|0)!=0&&Qw[E_[(E_[e>>2]|0)+4>>2]&511](e)}function Af(e){e|=0,E_[e+4>>2]=(U_=E_[3958]|0,E_[3958]=U_+1,U_+1)}function Of(e){e|=0,Qk(e|0),hn(e)}function Rf(e,r,i){e|=0,r|=0,i|=0;var f=0;return i>>>0>=128?(f=0,f|0):(f=(p_[(E_[(hw()|0)>>2]|0)+(i<<1)>>1]&r)<<16>>16!=0,f|0)}function Ff(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0;if((r|0)==(i|0))return a=r,a|0;for(t=r,n=f;;){if(f=E_[t>>2]|0,o=f>>>0<128?p_[(E_[(hw()|0)>>2]|0)+(f<<1)>>1]|0:0,p_[n>>1]=o,f=t+4|0,(f|0)==(i|0)){a=i;break}t=f,n=n+2|0}return a|0}function Mf(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0;if((i|0)==(f|0))return a=i,a|0;for(t=i;;){if(i=E_[t>>2]|0,i>>>0<128&&(p_[(E_[(hw()|0)>>2]|0)+(i<<1)>>1]&r)<<16>>16!=0){a=t,n=7309;break}if(i=t+4|0,(i|0)==(f|0)){a=f,n=7310;break}t=i}return(n|0)==7310?a|0:(n|0)==7309?a|0:0}function Nf(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0;for(e=i;;){if((e|0)==(f|0)){a=f,t=7321;break}if(i=E_[e>>2]|0,i>>>0>=128){a=e,t=7320;break}if((p_[(E_[(hw()|0)>>2]|0)+(i<<1)>>1]&r)<<16>>16==0){a=e,t=7319;break}e=e+4|0}return(t|0)==7320?a|0:(t|0)==7319?a|0:(t|0)==7321?a|0:0}function Df(e,r){e|=0,r|=0;var i=0;return r>>>0>=128?(i=r,i|0):(i=E_[(E_[(jw()|0)>>2]|0)+(r<<2)>>2]|0,i|0)}function Cf(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0;if((r|0)==(i|0))return f=r,f|0;for(a=r;;){if(r=E_[a>>2]|0,t=r>>>0<128?E_[(E_[(jw()|0)>>2]|0)+(r<<2)>>2]|0:r,E_[a>>2]=t,r=a+4|0,(r|0)==(i|0)){f=i;break}a=r}return f|0}function Tf(e,r){e|=0,r|=0;var i=0;return r>>>0>=128?(i=r,i|0):(i=E_[(E_[(qw()|0)>>2]|0)+(r<<2)>>2]|0,i|0)}function Pf(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0;if((r|0)==(i|0))return f=r,f|0;for(a=r;;){if(r=E_[a>>2]|0,t=r>>>0<128?E_[(E_[(qw()|0)>>2]|0)+(r<<2)>>2]|0:r,E_[a>>2]=t,r=a+4|0,(r|0)==(i|0)){f=i;break}a=r}return f|0}function Lf(e,r){return e|=0,r|=0,r<<24>>24|0}function If(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0;if((r|0)==(i|0))return a=r,a|0;for(t=r,n=f;;){if(E_[n>>2]=m_[t]|0,f=t+1|0,(f|0)==(i|0)){a=i;break}t=f,n=n+4|0}return a|0}function xf(e,r,i){return e|=0,r|=0,i|=0,(r>>>0<128?r&255:i)|0}function Bf(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0;if((r|0)==(i|0))return t=r,t|0;for(e=((i-4+(-r|0)|0)>>>2)+1|0,n=r,o=a;;){if(a=E_[n>>2]|0,m_[o]=a>>>0<128?a&255:f,a=n+4|0,(a|0)==(i|0))break;n=a,o=o+1|0}return t=r+(e<<2)|0,t|0}function Hf(e){e|=0;var r=0;E_[e>>2]=6808,r=E_[e+8>>2]|0;do if((r|0)!=0){if((m_[e+12|0]&1)==0)break;_n(r)}while(0);Qk(e|0),hn(e)}function Uf(e){e|=0;var r=0;E_[e>>2]=6808,r=E_[e+8>>2]|0;do if((r|0)!=0){if((m_[e+12|0]&1)==0)break;_n(r)}while(0);Qk(e|0)}function zf(e,r){e|=0,r|=0;var i=0;return r<<24>>24<0?(i=r,i|0):(i=E_[(E_[(jw()|0)>>2]|0)+((r&255)<<2)>>2]&255,i|0)}function Yf(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0;if((r|0)==(i|0))return f=r,f|0;for(a=r;;){if(r=m_[a]|0,t=r<<24>>24<0?r:E_[(E_[(jw()|0)>>2]|0)+(r<<24>>24<<2)>>2]&255,m_[a]=t,r=a+1|0,(r|0)==(i|0)){f=i;break}a=r}return f|0}function Vf(e,r){e|=0,r|=0;var i=0;return r<<24>>24<0?(i=r,i|0):(i=E_[(E_[(qw()|0)>>2]|0)+(r<<24>>24<<2)>>2]&255,i|0)}function Zf(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0;if((r|0)==(i|0))return f=r,f|0;for(a=r;;){if(r=m_[a]|0,t=r<<24>>24<0?r:E_[(E_[(qw()|0)>>2]|0)+(r<<24>>24<<2)>>2]&255,m_[a]=t,r=a+1|0,(r|0)==(i|0)){f=i;break}a=r}return f|0}function jf(e,r){return e|=0,r|=0,r|0}function qf(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0;if((r|0)==(i|0))return a=r,a|0;for(t=r,n=f;;){if(m_[n]=m_[t]|0,f=t+1|0,(f|0)==(i|0)){a=i;break}t=f,n=n+1|0}return a|0}function Wf(e,r,i){return e|=0,r|=0,i|=0,(r<<24>>24<0?i:r)|0}function Kf(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0;if((r|0)==(i|0))return t=r,t|0;for(n=r,o=a;;){if(a=m_[n]|0,m_[o]=a<<24>>24<0?f:a,a=n+1|0,(a|0)==(i|0)){t=i;break}n=a,o=o+1|0}return t|0}function Xf(e){e|=0,Qk(e|0),hn(e)}function Gf(e,r,i,f,a,t,n,o){return e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,E_[a>>2]=i,E_[o>>2]=t,3}function Qf(e,r,i,f,a,t,n,o){return e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,E_[a>>2]=i,E_[o>>2]=t,3}function Jf(e,r,i,f,a){return e|=0,r|=0,i|=0,f|=0,a|=0,E_[a>>2]=i,3}function $f(e){return e|=0,1}function ea(e){return e|=0,1}function ra(e,r,i,f,a){return e|=0,r|=0,i|=0,f|=0,a|=0,r=f-i|0,(r>>>0<a>>>0?r:a)|0}function ia(e){return e|=0,1}function fa(e){e|=0,kf(e),hn(e)}function aa(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0;for(u=O_,O_=O_+8|0,l=u|0,s=l,b=O_,O_=O_+4|0,O_=O_+7&-8,k=i;;){if((k|0)==(f|0)){c=f;break}if((E_[k>>2]|0)==0){c=k;break}k=k+4|0}E_[o>>2]=t,E_[a>>2]=i;e:do if((i|0)==(f|0)|(t|0)==(n|0))d=i;else{for(k=r,h=n,_=e+8|0,w=b|0,v=t,m=i,p=c;;){if(E=E_[k+4>>2]|0,E_[l>>2]=E_[k>>2],E_[l+4>>2]=E,E=Pw(E_[_>>2]|0)|0,S=Ct(v,a,p-m>>2,h-v|0,r)|0,(E|0)!=0&&Pw(E|0)|0,(S|0)==0){g=1,y=7480;break}if((S|0)==-1){y=7443;break}if(E=(E_[o>>2]|0)+S|0,E_[o>>2]=E,(E|0)==(n|0)){y=7476;break}if((p|0)==(f|0))A=f,O=E,R=E_[a>>2]|0;else{if(E=Pw(E_[_>>2]|0)|0,S=Dt(w,0,r)|0,(E|0)!=0&&Pw(E|0)|0,(S|0)==-1){g=2,y=7481;break}if(E=E_[o>>2]|0,S>>>0>(h-E|0)>>>0){g=1,y=7483;break}r:do if((S|0)!=0)for(F=S,M=w,N=E;;){if(D=m_[M]|0,E_[o>>2]=N+1,m_[N]=D,D=F-1|0,(D|0)==0)break r;F=D,M=M+1|0,N=E_[o>>2]|0}while(0);for(E=(E_[a>>2]|0)+4|0,E_[a>>2]=E,S=E;;){if((S|0)==(f|0)){C=f;break}if((E_[S>>2]|0)==0){C=S;break}S=S+4|0}A=C,O=E_[o>>2]|0,R=E}if((R|0)==(f|0)|(O|0)==(n|0)){d=R;break e}v=O,m=R,p=A}if((y|0)==7480)return O_=u,g|0;if((y|0)==7481)return O_=u,g|0;if((y|0)==7476){d=E_[a>>2]|0;break}if((y|0)==7443){E_[o>>2]=v;r:do if((m|0)==(E_[a>>2]|0))T=m;else for(p=m,w=v;;){if(h=E_[p>>2]|0,k=Pw(E_[_>>2]|0)|0,S=Dt(w,h,s)|0,(k|0)!=0&&Pw(k|0)|0,(S|0)==-1){T=p;break r}if(k=(E_[o>>2]|0)+S|0,E_[o>>2]=k,S=p+4|0,(S|0)==(E_[a>>2]|0)){T=S;break}p=S,w=k}while(0);return E_[a>>2]=T,g=2,O_=u,g|0}if((y|0)==7483)return O_=u,g|0}while(0);return g=(d|0)!=(f|0)|0,O_=u,g|0}function ta(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0;for(u=O_,O_=O_+8|0,l=u|0,s=l,b=i;;){if((b|0)==(f|0)){k=f;break}if((m_[b]|0)==0){k=b;break}b=b+1|0}E_[o>>2]=t,E_[a>>2]=i;e:do if((i|0)==(f|0)|(t|0)==(n|0))c=i;else{for(b=r,d=n,h=e+8|0,_=t,w=i,v=k;;){if(m=E_[b+4>>2]|0,E_[l>>2]=E_[b>>2],E_[l+4>>2]=m,p=v,m=Pw(E_[h>>2]|0)|0,E=Ft(_,a,p-w|0,d-_>>2,r)|0,(m|0)!=0&&Pw(m|0)|0,(E|0)==-1){S=7498;break}if((E|0)==0){g=2,S=7533;break}if(m=(E_[o>>2]|0)+(E<<2)|0,E_[o>>2]=m,(m|0)==(n|0)){S=7530;break}if(E=E_[a>>2]|0,(v|0)==(f|0))y=f,A=m,O=E;else{if(R=Pw(E_[h>>2]|0)|0,F=Rt(m,E,1,r)|0,(R|0)!=0&&Pw(R|0)|0,(F|0)!=0){g=2,S=7535;break}for(E_[o>>2]=(E_[o>>2]|0)+4,F=(E_[a>>2]|0)+1|0,E_[a>>2]=F,R=F;;){if((R|0)==(f|0)){M=f;break}if((m_[R]|0)==0){M=R;break}R=R+1|0}y=M,A=E_[o>>2]|0,O=F}if((O|0)==(f|0)|(A|0)==(n|0)){c=O;break e}_=A,w=O,v=y}if((S|0)==7535)return O_=u,g|0;if((S|0)==7498){E_[o>>2]=_;r:do if((w|0)==(E_[a>>2]|0))N=w;else{for(v=_,d=w;;){if(b=Pw(E_[h>>2]|0)|0,R=Rt(v,d,p-d|0,s)|0,(b|0)!=0&&Pw(b|0)|0,(R|0)==-2){S=7510;break}if((R|0)==-1){S=7509;break}if(D=(R|0)==0?d+1|0:d+R|0,R=(E_[o>>2]|0)+4|0,E_[o>>2]=R,(D|0)==(E_[a>>2]|0)){N=D;break r}v=R,d=D}if((S|0)==7510)return E_[a>>2]=d,g=1,O_=u,g|0;if((S|0)==7509)return E_[a>>2]=d,g=2,O_=u,g|0}while(0);return E_[a>>2]=N,g=(N|0)!=(f|0)|0,O_=u,g|0}if((S|0)==7530){c=E_[a>>2]|0;break}if((S|0)==7533)return O_=u,g|0}while(0);return g=(c|0)!=(f|0)|0,O_=u,g|0}function na(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0;if(t=O_,O_=O_+8|0,E_[a>>2]=i,i=t|0,n=Pw(E_[e+8>>2]|0)|0,e=Dt(i,0,r)|0,(n|0)!=0&&Pw(n|0)|0,(e|0)==-1|(e|0)==0)return o=2,O_=t,o|0;if(n=e-1|0,e=E_[a>>2]|0,n>>>0>(f-e|0)>>>0)return o=1,O_=t,o|0;if((n|0)==0)return o=0,O_=t,o|0;for(u=n,l=i,s=e;;){if(e=m_[l]|0,E_[a>>2]=s+1,m_[s]=e,e=u-1|0,(e|0)==0){o=0;break}u=e,l=l+1|0,s=E_[a>>2]|0}return O_=t,o|0}function oa(e){e|=0;var r=0,i=0,f=0;return r=e+8|0,e=Pw(E_[r>>2]|0)|0,i=Nt(0,0,4)|0,(e|0)!=0&&Pw(e|0)|0,(i|0)!=0?(f=-1,f|0):(i=E_[r>>2]|0,(i|0)==0?(f=1,f|0):(r=Pw(i|0)|0,(r|0)==0?(f=0,f|0):(Pw(r|0)|0,f=0,f|0)))}function ua(e){return e|=0,0}function la(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;if((a|0)==0|(i|0)==(f|0))return t=0,t|0;for(n=f,o=e+8|0,e=i,i=0,u=0;;){if(l=Pw(E_[o>>2]|0)|0,s=Ot(e,n-e|0,r)|0,(l|0)!=0&&Pw(l|0)|0,(s|0)==0)b=1,k=e+1|0;else{if((s|0)==-1|(s|0)==-2){t=i,c=7595;break}b=s,k=e+s|0}if(s=b+i|0,l=u+1|0,l>>>0>=a>>>0|(k|0)==(f|0)){t=s,c=7594;break}e=k,i=s,u=l}return(c|0)==7595?t|0:(c|0)==7594?t|0:0}function sa(e){e|=0;var r=0,i=0;r=E_[e+8>>2]|0;do if((r|0)==0)i=1;else{if(e=Pw(r|0)|0,(e|0)==0){i=4;break}Pw(e|0)|0,i=4}while(0);return i|0}function ba(e){e|=0,Qk(e|0),hn(e)}function ka(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0;return r=O_,O_=O_+16|0,e=r|0,u=r+8|0,E_[e>>2]=i,E_[u>>2]=t,l=ca(i,f,e,t,n,u,1114111,0)|0,E_[a>>2]=i+((E_[e>>2]|0)-i>>1<<1),E_[o>>2]=t+((E_[u>>2]|0)-t),O_=r,l|0}function ca(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0,k=0,c=0;E_[i>>2]=e,E_[t>>2]=f;do if((o&2|0)!=0){if((a-f|0)<3)return u=1,u|0;E_[t>>2]=f+1,m_[f]=-17,e=E_[t>>2]|0,E_[t>>2]=e+1,m_[e]=-69,e=E_[t>>2]|0,E_[t>>2]=e+1,m_[e]=-65;break}while(0);if(f=r,o=E_[i>>2]|0,o>>>0>=r>>>0)return u=0,u|0;e=a,a=o;e:for(;;){if(o=p_[a>>1]|0,l=o&65535,l>>>0>n>>>0){u=2,s=7640;break}do if((o&65535)>>>0<128){if(b=E_[t>>2]|0,(e-b|0)<1){u=1,s=7641;break e}E_[t>>2]=b+1,m_[b]=o&255}else{if((o&65535)>>>0<2048){if(b=E_[t>>2]|0,(e-b|0)<2){u=1,s=7643;break e}E_[t>>2]=b+1,m_[b]=(l>>>6|192)&255,b=E_[t>>2]|0,E_[t>>2]=b+1,m_[b]=(l&63|128)&255;break}if((o&65535)>>>0<55296){if(b=E_[t>>2]|0,(e-b|0)<3){u=1,s=7635;break e}E_[t>>2]=b+1,m_[b]=(l>>>12|224)&255,b=E_[t>>2]|0,E_[t>>2]=b+1,m_[b]=(l>>>6&63|128)&255,b=E_[t>>2]|0,E_[t>>2]=b+1,m_[b]=(l&63|128)&255;break}if((o&65535)>>>0>=56320){if((o&65535)>>>0<57344){u=2,s=7644;break e}if(b=E_[t>>2]|0,(e-b|0)<3){u=1,s=7636;break e}E_[t>>2]=b+1,m_[b]=(l>>>12|224)&255,b=E_[t>>2]|0,E_[t>>2]=b+1,m_[b]=(l>>>6&63|128)&255,b=E_[t>>2]|0,E_[t>>2]=b+1,m_[b]=(l&63|128)&255;break}if((f-a|0)<4){u=1,s=7639;break e}if(b=a+2|0,k=g_[b>>1]|0,(k&64512|0)!=56320){u=2,s=7633;break e}if((e-(E_[t>>2]|0)|0)<4){u=1,s=7632;break e}if(c=l&960,((c<<10)+65536|l<<10&64512|k&1023)>>>0>n>>>0){u=2,s=7642;break e}E_[i>>2]=b,b=(c>>>6)+1|0,c=E_[t>>2]|0,E_[t>>2]=c+1,m_[c]=(b>>>2|240)&255,c=E_[t>>2]|0,E_[t>>2]=c+1,m_[c]=(l>>>2&15|b<<4&48|128)&255,b=E_[t>>2]|0,E_[t>>2]=b+1,m_[b]=(l<<4&48|k>>>6&15|128)&255,b=E_[t>>2]|0,E_[t>>2]=b+1,m_[b]=(k&63|128)&255}while(0);if(l=(E_[i>>2]|0)+2|0,E_[i>>2]=l,!(l>>>0<r>>>0)){u=0,s=7638;break}a=l}return(s|0)==7642?u|0:(s|0)==7643?u|0:(s|0)==7644?u|0:(s|0)==7633?u|0:(s|0)==7635?u|0:(s|0)==7636?u|0:(s|0)==7638?u|0:(s|0)==7632?u|0:(s|0)==7639?u|0:(s|0)==7640?u|0:(s|0)==7641?u|0:0}function da(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0;return r=O_,O_=O_+16|0,e=r|0,u=r+8|0,E_[e>>2]=i,E_[u>>2]=t,l=ha(i,f,e,t,n,u,1114111,0)|0,E_[a>>2]=i+((E_[e>>2]|0)-i),E_[o>>2]=t+((E_[u>>2]|0)-t>>1<<1),O_=r,l|0}function ha(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;E_[i>>2]=e,E_[t>>2]=f,f=E_[i>>2]|0;do if((o&4|0)==0)u=f;else{if((r-f|0)<=2){u=f;break}if((m_[f]|0)!=-17){u=f;break}if((m_[f+1|0]|0)!=-69){u=f;break}if((m_[f+2|0]|0)!=-65){u=f;break}e=f+3|0,E_[i>>2]=e,u=e}while(0);e:do if(u>>>0<r>>>0){f=r,o=a,e=E_[t>>2]|0,l=u;r:for(;;){if(e>>>0>=a>>>0){s=l;break e}if(b=m_[l]|0,k=b&255,k>>>0>n>>>0){c=2,d=7693;break}do if(b<<24>>24>-1)p_[e>>1]=b&255,E_[i>>2]=(E_[i>>2]|0)+1;else{if((b&255)>>>0<194){c=2,d=7701;break r}if((b&255)>>>0<224){if((f-l|0)<2){c=1,d=7703;break r}if(h=S_[l+1|0]|0,(h&192|0)!=128){c=2,d=7705;break r}if(_=h&63|k<<6&1984,_>>>0>n>>>0){c=2,d=7698;break r}p_[e>>1]=_&65535,E_[i>>2]=(E_[i>>2]|0)+2;break}if((b&255)>>>0<240){if((f-l|0)<3){c=1,d=7694;break r}if(_=m_[l+1|0]|0,h=m_[l+2|0]|0,(k|0)==237){if((_&-32)<<24>>24!=-128){c=2,d=7702;break r}}else if((k|0)==224){if((_&-32)<<24>>24!=-96){c=2,d=7706;break r}}else if((_&-64)<<24>>24!=-128){c=2,d=7704;break r}if(w=h&255,(w&192|0)!=128){c=2,d=7697;break r}if(h=(_&255)<<6&4032|k<<12|w&63,(h&65535)>>>0>n>>>0){c=2,d=7696;break r}p_[e>>1]=h&65535,E_[i>>2]=(E_[i>>2]|0)+3;break}if((b&255)>>>0>=245){c=2,d=7699;break r}if((f-l|0)<4){c=1,d=7687;break r}if(h=m_[l+1|0]|0,w=m_[l+2|0]|0,_=m_[l+3|0]|0,(k|0)==240){if((h+112&255)>>>0>=48){c=2,d=7688;break r}}else if((k|0)==244){if((h&-16)<<24>>24!=-128){c=2,d=7689;break r}}else if((h&-64)<<24>>24!=-128){c=2,d=7690;break r}if(v=w&255,(v&192|0)!=128){c=2,d=7691;break r}if(w=_&255,(w&192|0)!=128){c=2,d=7692;break r}if((o-e|0)<4){c=1,d=7700;break r}if(_=k&7,m=h&255,h=v<<6,p=w&63,(m<<12&258048|_<<18|h&4032|p)>>>0>n>>>0){c=2,d=7707;break r}p_[e>>1]=(m<<2&60|v>>>4&3|((m>>>4&3|_<<2)<<6)+16320|55296)&65535,_=(E_[t>>2]|0)+2|0,E_[t>>2]=_,p_[_>>1]=(p|h&960|56320)&65535,E_[i>>2]=(E_[i>>2]|0)+4}while(0);if(k=(E_[t>>2]|0)+2|0,E_[t>>2]=k,b=E_[i>>2]|0,!(b>>>0<r>>>0)){s=b;break e}e=k,l=b}if((d|0)==7698)return c|0;if((d|0)==7699)return c|0;if((d|0)==7700)return c|0;if((d|0)==7701)return c|0;if((d|0)==7702)return c|0;if((d|0)==7703)return c|0;if((d|0)==7687)return c|0;if((d|0)==7688)return c|0;if((d|0)==7689)return c|0;if((d|0)==7690)return c|0;if((d|0)==7691)return c|0;if((d|0)==7692)return c|0;if((d|0)==7704)return c|0;if((d|0)==7705)return c|0;if((d|0)==7706)return c|0;if((d|0)==7707)return c|0;if((d|0)==7693)return c|0;if((d|0)==7694)return c|0;if((d|0)==7696)return c|0;if((d|0)==7697)return c|0}else s=u;while(0);return c=s>>>0<r>>>0|0,c|0}function _a(e,r,i,f,a){return e|=0,r|=0,i|=0,f|=0,a|=0,E_[a>>2]=i,3}function wa(e){return e|=0,0}function va(e){return e|=0,0}function ma(e,r,i,f,a){return e|=0,r|=0,i|=0,f|=0,a|=0,pa(i,f,a,1114111,0)|0}function pa(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;do if((a&4|0)==0)t=e;else{if((r-e|0)<=2){t=e;break}if((m_[e]|0)!=-17){t=e;break}if((m_[e+1|0]|0)!=-69){t=e;break}t=(m_[e+2|0]|0)==-65?e+3|0:e}while(0);e:do if(t>>>0<r>>>0&(i|0)!=0){a=r,n=0,o=t;r:for(;;){if(u=m_[o]|0,l=u&255,l>>>0>f>>>0){s=o;break e}do if(u<<24>>24>-1)b=o+1|0,k=n;else{if((u&255)>>>0<194){s=o;break e}if((u&255)>>>0<224){if((a-o|0)<2){s=o;break e}if(c=S_[o+1|0]|0,(c&192|0)!=128){s=o;break e}if((c&63|l<<6&1984)>>>0>f>>>0){s=o;break e}b=o+2|0,k=n;break}if((u&255)>>>0<240){if(d=o,(a-d|0)<3){s=o;break e}if(c=m_[o+1|0]|0,h=m_[o+2|0]|0,(l|0)==237){if((c&-32)<<24>>24!=-128){_=7734;break r}}else if((l|0)==224){if((c&-32)<<24>>24!=-96){_=7732;break r}}else if((c&-64)<<24>>24!=-128){_=7736;break r}if(w=h&255,(w&192|0)!=128){s=o;break e}if(((c&255)<<6&4032|l<<12&61440|w&63)>>>0>f>>>0){s=o;break e}b=o+3|0,k=n;break}if((u&255)>>>0>=245){s=o;break e}if(v=o,(a-v|0)<4){s=o;break e}if((i-n|0)>>>0<2){s=o;break e}if(w=m_[o+1|0]|0,c=m_[o+2|0]|0,h=m_[o+3|0]|0,(l|0)==240){if((w+112&255)>>>0>=48){_=7745;break r}}else if((l|0)==244){if((w&-16)<<24>>24!=-128){_=7747;break r}}else if((w&-64)<<24>>24!=-128){_=7749;break r}if(m=c&255,(m&192|0)!=128){s=o;break e}if(c=h&255,(c&192|0)!=128){s=o;break e}if(((w&255)<<12&258048|l<<18&1835008|m<<6&4032|c&63)>>>0>f>>>0){s=o;break e}b=o+4|0,k=n+1|0}while(0);if(l=k+1|0,!(b>>>0<r>>>0&l>>>0<i>>>0)){s=b;break e}n=l,o=b}if((_|0)==7732)return p=d-e|0,p|0;if((_|0)==7745)return p=v-e|0,p|0;if((_|0)==7747)return p=v-e|0,p|0;if((_|0)==7749)return p=v-e|0,p|0;if((_|0)==7736)return p=d-e|0,p|0;if((_|0)==7734)return p=d-e|0,p|0}else s=t;while(0);return p=s-e|0,p|0}function Ea(e){return e|=0,4}function Sa(e){e|=0,Qk(e|0),hn(e)}function ga(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0;return r=O_,O_=O_+16|0,e=r|0,u=r+8|0,E_[e>>2]=i,E_[u>>2]=t,l=ya(i,f,e,t,n,u,1114111,0)|0,E_[a>>2]=i+((E_[e>>2]|0)-i>>2<<2),E_[o>>2]=t+((E_[u>>2]|0)-t),O_=r,l|0}function ya(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0;E_[i>>2]=e,E_[t>>2]=f;do if((o&2|0)!=0){if((a-f|0)<3)return u=1,u|0;E_[t>>2]=f+1,m_[f]=-17,e=E_[t>>2]|0,E_[t>>2]=e+1,m_[e]=-69,e=E_[t>>2]|0,E_[t>>2]=e+1,m_[e]=-65;break}while(0);if(f=E_[i>>2]|0,f>>>0>=r>>>0)return u=0,u|0;o=a,a=f;e:for(;;){if(f=E_[a>>2]|0,(f&-2048|0)==55296|f>>>0>n>>>0){u=2,l=7789;break}do{if(!(f>>>0<128)){if(f>>>0<2048){if(e=E_[t>>2]|0,(o-e|0)<2){u=1,l=7786;break e}E_[t>>2]=e+1,m_[e]=(f>>>6|192)&255,e=E_[t>>2]|0,E_[t>>2]=e+1,m_[e]=(f&63|128)&255;break}if(e=E_[t>>2]|0,s=o-e|0,f>>>0<65536){if((s|0)<3){u=1,l=7791;break e}E_[t>>2]=e+1,m_[e]=(f>>>12|224)&255,b=E_[t>>2]|0,E_[t>>2]=b+1,m_[b]=(f>>>6&63|128)&255,b=E_[t>>2]|0,E_[t>>2]=b+1,m_[b]=(f&63|128)&255;break}if((s|0)<4){u=1,l=7793;break e}E_[t>>2]=e+1,m_[e]=(f>>>18|240)&255,e=E_[t>>2]|0,E_[t>>2]=e+1,m_[e]=(f>>>12&63|128)&255,e=E_[t>>2]|0,E_[t>>2]=e+1,m_[e]=(f>>>6&63|128)&255,e=E_[t>>2]|0,E_[t>>2]=e+1,m_[e]=(f&63|128)&255;break}if(e=E_[t>>2]|0,(o-e|0)<1){u=1,l=7792;break e}E_[t>>2]=e+1,m_[e]=f&255}while(0);if(f=(E_[i>>2]|0)+4|0,E_[i>>2]=f,!(f>>>0<r>>>0)){u=0,l=7787;break}a=f}return(l|0)==7791?u|0:(l|0)==7787?u|0:(l|0)==7786?u|0:(l|0)==7792?u|0:(l|0)==7789?u|0:(l|0)==7793?u|0:0}function Aa(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0;return r=O_,O_=O_+16|0,e=r|0,u=r+8|0,E_[e>>2]=i,E_[u>>2]=t,l=Oa(i,f,e,t,n,u,1114111,0)|0,E_[a>>2]=i+((E_[e>>2]|0)-i),E_[o>>2]=t+((E_[u>>2]|0)-t>>2<<2),O_=r,l|0}function Oa(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0;E_[i>>2]=e,E_[t>>2]=f,f=E_[i>>2]|0;do if((o&4|0)==0)u=f;else{if((r-f|0)<=2){u=f;break}if((m_[f]|0)!=-17){u=f;break}if((m_[f+1|0]|0)!=-69){u=f;break}if((m_[f+2|0]|0)!=-65){u=f;break}e=f+3|0,E_[i>>2]=e,u=e}while(0);e:do if(u>>>0<r>>>0){f=r,o=E_[t>>2]|0,e=u;
r:for(;;){if(o>>>0>=a>>>0){l=e;break e}s=m_[e]|0,b=s&255;do if(s<<24>>24>-1){if(b>>>0>n>>>0){k=2,c=7853;break r}E_[o>>2]=b,E_[i>>2]=(E_[i>>2]|0)+1}else{if((s&255)>>>0<194){k=2,c=7852;break r}if((s&255)>>>0<224){if((f-e|0)<2){k=1,c=7841;break r}if(d=S_[e+1|0]|0,(d&192|0)!=128){k=2,c=7848;break r}if(h=d&63|b<<6&1984,h>>>0>n>>>0){k=2,c=7850;break r}E_[o>>2]=h,E_[i>>2]=(E_[i>>2]|0)+2;break}if((s&255)>>>0<240){if((f-e|0)<3){k=1,c=7836;break r}if(h=m_[e+1|0]|0,d=m_[e+2|0]|0,(b|0)==224){if((h&-32)<<24>>24!=-96){k=2,c=7851;break r}}else if((b|0)==237){if((h&-32)<<24>>24!=-128){k=2,c=7854;break r}}else if((h&-64)<<24>>24!=-128){k=2,c=7844;break r}if(_=d&255,(_&192|0)!=128){k=2,c=7842;break r}if(d=(h&255)<<6&4032|b<<12&61440|_&63,d>>>0>n>>>0){k=2,c=7843;break r}E_[o>>2]=d,E_[i>>2]=(E_[i>>2]|0)+3;break}if((s&255)>>>0>=245){k=2,c=7840;break r}if((f-e|0)<4){k=1,c=7838;break r}if(d=m_[e+1|0]|0,_=m_[e+2|0]|0,h=m_[e+3|0]|0,(b|0)==244){if((d&-16)<<24>>24!=-128){k=2,c=7845;break r}}else if((b|0)==240){if((d+112&255)>>>0>=48){k=2,c=7846;break r}}else if((d&-64)<<24>>24!=-128){k=2,c=7837;break r}if(w=_&255,(w&192|0)!=128){k=2,c=7849;break r}if(_=h&255,(_&192|0)!=128){k=2,c=7847;break r}if(h=(d&255)<<12&258048|b<<18&1835008|w<<6&4032|_&63,h>>>0>n>>>0){k=2,c=7835;break r}E_[o>>2]=h,E_[i>>2]=(E_[i>>2]|0)+4}while(0);if(b=(E_[t>>2]|0)+4|0,E_[t>>2]=b,s=E_[i>>2]|0,!(s>>>0<r>>>0)){l=s;break e}o=b,e=s}if((c|0)==7853)return k|0;if((c|0)==7854)return k|0;if((c|0)==7836)return k|0;if((c|0)==7837)return k|0;if((c|0)==7838)return k|0;if((c|0)==7840)return k|0;if((c|0)==7841)return k|0;if((c|0)==7847)return k|0;if((c|0)==7848)return k|0;if((c|0)==7849)return k|0;if((c|0)==7850)return k|0;if((c|0)==7851)return k|0;if((c|0)==7852)return k|0;if((c|0)==7842)return k|0;if((c|0)==7843)return k|0;if((c|0)==7844)return k|0;if((c|0)==7845)return k|0;if((c|0)==7846)return k|0;if((c|0)==7835)return k|0}else l=u;while(0);return k=l>>>0<r>>>0|0,k|0}function Ra(e,r,i,f,a){return e|=0,r|=0,i|=0,f|=0,a|=0,E_[a>>2]=i,3}function Fa(e){return e|=0,0}function Ma(e){return e|=0,0}function Na(e,r,i,f,a){return e|=0,r|=0,i|=0,f|=0,a|=0,Da(i,f,a,1114111,0)|0}function Da(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0;do if((a&4|0)==0)t=e;else{if((r-e|0)<=2){t=e;break}if((m_[e]|0)!=-17){t=e;break}if((m_[e+1|0]|0)!=-69){t=e;break}t=(m_[e+2|0]|0)==-65?e+3|0:e}while(0);e:do if(t>>>0<r>>>0&(i|0)!=0){a=r,n=1,o=t;r:for(;;){u=m_[o]|0,l=u&255;do if(u<<24>>24>-1){if(l>>>0>f>>>0){s=o;break e}b=o+1|0}else{if((u&255)>>>0<194){s=o;break e}if((u&255)>>>0<224){if((a-o|0)<2){s=o;break e}if(k=S_[o+1|0]|0,(k&192|0)!=128){s=o;break e}if((k&63|l<<6&1984)>>>0>f>>>0){s=o;break e}b=o+2|0;break}if((u&255)>>>0<240){if(c=o,(a-c|0)<3){s=o;break e}if(k=m_[o+1|0]|0,d=m_[o+2|0]|0,(l|0)==237){if((k&-32)<<24>>24!=-128){h=7881;break r}}else if((l|0)==224){if((k&-32)<<24>>24!=-96){h=7879;break r}}else if((k&-64)<<24>>24!=-128){h=7883;break r}if(_=d&255,(_&192|0)!=128){s=o;break e}if(((k&255)<<6&4032|l<<12&61440|_&63)>>>0>f>>>0){s=o;break e}b=o+3|0;break}if((u&255)>>>0>=245){s=o;break e}if(w=o,(a-w|0)<4){s=o;break e}if(_=m_[o+1|0]|0,k=m_[o+2|0]|0,d=m_[o+3|0]|0,(l|0)==240){if((_+112&255)>>>0>=48){h=7891;break r}}else if((l|0)==244){if((_&-16)<<24>>24!=-128){h=7893;break r}}else if((_&-64)<<24>>24!=-128){h=7895;break r}if(v=k&255,(v&192|0)!=128){s=o;break e}if(k=d&255,(k&192|0)!=128){s=o;break e}if(((_&255)<<12&258048|l<<18&1835008|v<<6&4032|k&63)>>>0>f>>>0){s=o;break e}b=o+4|0}while(0);if(!(b>>>0<r>>>0&n>>>0<i>>>0)){s=b;break e}n=n+1|0,o=b}if((h|0)==7895)return m=w-e|0,m|0;if((h|0)==7893)return m=w-e|0,m|0;if((h|0)==7883)return m=c-e|0,m|0;if((h|0)==7891)return m=w-e|0,m|0;if((h|0)==7879)return m=c-e|0,m|0;if((h|0)==7881)return m=c-e|0,m|0}else s=t;while(0);return m=s-e|0,m|0}function Ca(e){return e|=0,4}function Ta(e){e|=0,Qk(e|0),hn(e)}function Pa(e){e|=0,Qk(e|0),hn(e)}function La(e){e|=0,E_[e>>2]=5904,yc(e+12|0),Qk(e|0),hn(e)}function Ia(e){e|=0,E_[e>>2]=5904,yc(e+12|0),Qk(e|0)}function xa(e){e|=0,E_[e>>2]=5856,yc(e+16|0),Qk(e|0),hn(e)}function Ba(e){e|=0,E_[e>>2]=5856,yc(e+16|0),Qk(e|0)}function Ha(e){return e|=0,m_[e+8|0]|0}function Ua(e){return e|=0,E_[e+8>>2]|0}function za(e){return e|=0,m_[e+9|0]|0}function Ya(e){return e|=0,E_[e+12>>2]|0}function Va(e,r){e|=0,r|=0,Ec(e,r+12|0)}function Za(e,r){e|=0,r|=0,Ec(e,r+16|0)}function ja(e,r){e|=0,r|=0,Sc(e,2736,4)}function qa(e,r){e|=0,r|=0,Tc(e,2680,Pt(2680)|0)}function Wa(e,r){e|=0,r|=0,Sc(e,2624,5)}function Ka(e,r){e|=0,r|=0,Tc(e,2592,Pt(2592)|0)}function Xa(e){e|=0;var r=0;if((m_[16752]|0)!=0)return r=E_[3784]|0,r|0;if((vw(16752)|0)==0)return r=E_[3784]|0,r|0;do if((m_[16640]|0)==0){if((vw(16640)|0)==0)break;An(14176,0,168)|0,kw(268,0,I_|0)|0}while(0);return Ac(14176,4040)|0,Ac(14188,3952)|0,Ac(14200,3904)|0,Ac(14212,3888)|0,Ac(14224,3872)|0,Ac(14236,3816)|0,Ac(14248,3776)|0,Ac(14260,3768)|0,Ac(14272,3760)|0,Ac(14284,3736)|0,Ac(14296,3728)|0,Ac(14308,3712)|0,Ac(14320,3680)|0,Ac(14332,3672)|0,E_[3784]=14176,r=E_[3784]|0,r|0}function Ga(e){e|=0;var r=0;if((m_[16696]|0)!=0)return r=E_[3762]|0,r|0;if((vw(16696)|0)==0)return r=E_[3762]|0,r|0;do if((m_[16616]|0)==0){if((vw(16616)|0)==0)break;An(13432,0,168)|0,kw(150,0,I_|0)|0}while(0);return Ic(13432,4672)|0,Ic(13444,4616)|0,Ic(13456,4584)|0,Ic(13468,4544)|0,Ic(13480,4448)|0,Ic(13492,4416)|0,Ic(13504,4328)|0,Ic(13516,4312)|0,Ic(13528,4256)|0,Ic(13540,4208)|0,Ic(13552,4192)|0,Ic(13564,4144)|0,Ic(13576,4128)|0,Ic(13588,4072)|0,E_[3762]=13432,r=E_[3762]|0,r|0}function Qa(e){e|=0;var r=0;if((m_[16744]|0)!=0)return r=E_[3782]|0,r|0;if((vw(16744)|0)==0)return r=E_[3782]|0,r|0;do if((m_[16632]|0)==0){if((vw(16632)|0)==0)break;An(13888,0,288)|0,kw(170,0,I_|0)|0}while(0);return Ac(13888,440)|0,Ac(13900,424)|0,Ac(13912,416)|0,Ac(13924,408)|0,Ac(13936,400)|0,Ac(13948,328)|0,Ac(13960,320)|0,Ac(13972,312)|0,Ac(13984,256)|0,Ac(13996,248)|0,Ac(14008,200)|0,Ac(14020,184)|0,Ac(14032,136)|0,Ac(14044,128)|0,Ac(14056,120)|0,Ac(14068,96)|0,Ac(14080,400)|0,Ac(14092,88)|0,Ac(14104,80)|0,Ac(14116,4736)|0,Ac(14128,4728)|0,Ac(14140,4720)|0,Ac(14152,4712)|0,Ac(14164,4704)|0,E_[3782]=13888,r=E_[3782]|0,r|0}function Ja(e){e|=0;var r=0;if((m_[16688]|0)!=0)return r=E_[3760]|0,r|0;if((vw(16688)|0)==0)return r=E_[3760]|0,r|0;do if((m_[16608]|0)==0){if((vw(16608)|0)==0)break;An(13144,0,288)|0,kw(124,0,I_|0)|0}while(0);return Ic(13144,1440)|0,Ic(13156,1400)|0,Ic(13168,1376)|0,Ic(13180,1336)|0,Ic(13192,800)|0,Ic(13204,1256)|0,Ic(13216,1176)|0,Ic(13228,1144)|0,Ic(13240,1056)|0,Ic(13252,1024)|0,Ic(13264,984)|0,Ic(13276,944)|0,Ic(13288,928)|0,Ic(13300,864)|0,Ic(13312,848)|0,Ic(13324,816)|0,Ic(13336,800)|0,Ic(13348,784)|0,Ic(13360,720)|0,Ic(13372,704)|0,Ic(13384,600)|0,Ic(13396,584)|0,Ic(13408,568)|0,Ic(13420,496)|0,E_[3760]=13144,r=E_[3760]|0,r|0}function $a(e){e|=0;var r=0;if((m_[16760]|0)!=0)return r=E_[3786]|0,r|0;if((vw(16760)|0)==0)return r=E_[3786]|0,r|0;do if((m_[16648]|0)==0){if((vw(16648)|0)==0)break;An(14344,0,288)|0,kw(122,0,I_|0)|0}while(0);return Ac(14344,1512)|0,Ac(14356,1504)|0,E_[3786]=14344,r=E_[3786]|0,r|0}function et(e){e|=0;var r=0;if((m_[16704]|0)!=0)return r=E_[3764]|0,r|0;if((vw(16704)|0)==0)return r=E_[3764]|0,r|0;do if((m_[16624]|0)==0){if((vw(16624)|0)==0)break;An(13600,0,288)|0,kw(238,0,I_|0)|0}while(0);return Ic(13600,1784)|0,Ic(13612,1632)|0,E_[3764]=13600,r=E_[3764]|0,r|0}function rt(e){return e|=0,(m_[16768]|0)!=0?15152:(vw(16768)|0)==0?15152:(Sc(15152,2536,8),kw(258,15152,I_|0)|0,15152)}function it(e){return e|=0,(m_[16712]|0)!=0?15064:(vw(16712)|0)==0?15064:(Tc(15064,2496,Pt(2496)|0),kw(196,15064,I_|0)|0,15064)}function ft(e){return e|=0,(m_[16792]|0)!=0?15200:(vw(16792)|0)==0?15200:(Sc(15200,2416,8),kw(258,15200,I_|0)|0,15200)}function at(e){return e|=0,(m_[16736]|0)!=0?15112:(vw(16736)|0)==0?15112:(Tc(15112,2376,Pt(2376)|0),kw(196,15112,I_|0)|0,15112)}function tt(e){return e|=0,(m_[16784]|0)!=0?15184:(vw(16784)|0)==0?15184:(Sc(15184,2280,20),kw(258,15184,I_|0)|0,15184)}function nt(e){return e|=0,(m_[16728]|0)!=0?15096:(vw(16728)|0)==0?15096:(Tc(15096,2192,Pt(2192)|0),kw(196,15096,I_|0)|0,15096)}function ot(e){return e|=0,(m_[16776]|0)!=0?15168:(vw(16776)|0)==0?15168:(Sc(15168,2136,11),kw(258,15168,I_|0)|0,15168)}function ut(e){return e|=0,(m_[16720]|0)!=0?15080:(vw(16720)|0)==0?15080:(Tc(15080,2088,Pt(2088)|0),kw(196,15080,I_|0)|0,15080)}function lt(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0;if(f=O_,O_=O_+8|0,a=f|0,(e|0)==(r|0))return E_[i>>2]=4,t=0,O_=f,+t;n=Nw()|0,o=E_[n>>2]|0,E_[n>>2]=0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return u=+Sn(e,a,E_[3666]|0),e=E_[n>>2]|0,(e|0)==0&&(E_[n>>2]=o),(E_[a>>2]|0)!=(r|0)?(E_[i>>2]=4,t=0,O_=f,+t):(e|0)!=34?(t=u,O_=f,+t):(E_[i>>2]=4,t=u,O_=f,+t)}function st(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0;if(f=O_,O_=O_+8|0,a=f|0,(e|0)==(r|0))return E_[i>>2]=4,t=0,O_=f,+t;n=Nw()|0,o=E_[n>>2]|0,E_[n>>2]=0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return u=+Sn(e,a,E_[3666]|0),e=E_[n>>2]|0,(e|0)==0&&(E_[n>>2]=o),(E_[a>>2]|0)!=(r|0)?(E_[i>>2]=4,t=0,O_=f,+t):(e|0)!=34?(t=u,O_=f,+t):(E_[i>>2]=4,t=u,O_=f,+t)}function bt(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0;if(f=O_,O_=O_+8|0,a=f|0,(e|0)==(r|0))return E_[i>>2]=4,t=0,O_=f,+t;n=Nw()|0,o=E_[n>>2]|0,E_[n>>2]=0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return u=+Sn(e,a,E_[3666]|0),e=E_[n>>2]|0,(e|0)==0&&(E_[n>>2]=o),(E_[a>>2]|0)!=(r|0)?(E_[i>>2]=4,t=0,O_=f,+t):((e|0)==34&&(E_[i>>2]=4),t=u,O_=f,+t)}function kt(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0;a=O_,O_=O_+8|0,t=a|0;do if((e|0)==(r|0))E_[i>>2]=4,n=0,o=0;else{if((m_[e]|0)==45){E_[i>>2]=4,n=0,o=0;break}u=Nw()|0,l=E_[u>>2]|0,E_[u>>2]=0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);if(s=rw(e|0,t|0,f|0,E_[3666]|0)|0,b=E_[u>>2]|0,(b|0)==0&&(E_[u>>2]=l),(E_[t>>2]|0)!=(r|0)){E_[i>>2]=4,n=0,o=0;break}if((b|0)!=34){n=z_,o=s;break}E_[i>>2]=4,n=-1,o=-1}while(0);return O_=a,z_=n,o|0}function ct(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0;if(a=O_,O_=O_+8|0,t=a|0,(e|0)==(r|0))return E_[i>>2]=4,n=0,O_=a,n|0;if((m_[e]|0)==45)return E_[i>>2]=4,n=0,O_=a,n|0;o=Nw()|0,u=E_[o>>2]|0,E_[o>>2]=0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return l=rw(e|0,t|0,f|0,E_[3666]|0)|0,f=z_,e=E_[o>>2]|0,(e|0)==0&&(E_[o>>2]=u),(E_[t>>2]|0)!=(r|0)?(E_[i>>2]=4,n=0,O_=a,n|0):(r=0,(e|0)==34|(f>>>0>r>>>0|f>>>0==r>>>0&l>>>0>-1>>>0)?(E_[i>>2]=4,n=-1,O_=a,n|0):(n=l,O_=a,n|0))}function dt(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0;if(a=O_,O_=O_+8|0,t=a|0,(e|0)==(r|0))return E_[i>>2]=4,n=0,O_=a,n|0;if((m_[e]|0)==45)return E_[i>>2]=4,n=0,O_=a,n|0;o=Nw()|0,u=E_[o>>2]|0,E_[o>>2]=0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return l=rw(e|0,t|0,f|0,E_[3666]|0)|0,f=z_,e=E_[o>>2]|0,(e|0)==0&&(E_[o>>2]=u),(E_[t>>2]|0)!=(r|0)?(E_[i>>2]=4,n=0,O_=a,n|0):(r=0,(e|0)==34|(f>>>0>r>>>0|f>>>0==r>>>0&l>>>0>-1>>>0)?(E_[i>>2]=4,n=-1,O_=a,n|0):(n=l,O_=a,n|0))}function ht(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0;if(a=O_,O_=O_+8|0,t=a|0,(e|0)==(r|0))return E_[i>>2]=4,n=0,O_=a,n|0;if((m_[e]|0)==45)return E_[i>>2]=4,n=0,O_=a,n|0;o=Nw()|0,u=E_[o>>2]|0,E_[o>>2]=0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return l=rw(e|0,t|0,f|0,E_[3666]|0)|0,f=z_,e=E_[o>>2]|0,(e|0)==0&&(E_[o>>2]=u),(E_[t>>2]|0)!=(r|0)?(E_[i>>2]=4,n=0,O_=a,n|0):(r=0,(e|0)==34|(f>>>0>r>>>0|f>>>0==r>>>0&l>>>0>65535)?(E_[i>>2]=4,n=-1,O_=a,n|0):(n=l&65535,O_=a,n|0))}function _t(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(a=O_,O_=O_+8|0,t=a|0,(e|0)==(r|0))return E_[i>>2]=4,n=0,o=0,O_=a,z_=n,o|0;u=Nw()|0,l=E_[u>>2]|0,E_[u>>2]=0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return s=zw(e|0,t|0,f|0,E_[3666]|0)|0,f=z_,e=E_[u>>2]|0,(e|0)==0&&(E_[u>>2]=l),(E_[t>>2]|0)!=(r|0)?(E_[i>>2]=4,n=0,o=0,O_=a,z_=n,o|0):(e|0)!=34?(n=f,o=s,O_=a,z_=n,o|0):(E_[i>>2]=4,i=0,e=(f|0)>(i|0)|(f|0)==(i|0)&s>>>0>0,n=e?2147483647:-2147483648,o=e?-1:0,O_=a,z_=n,o|0)}function wt(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0;if(a=O_,O_=O_+8|0,t=a|0,(e|0)==(r|0))return E_[i>>2]=4,n=0,O_=a,n|0;o=Nw()|0,u=E_[o>>2]|0,E_[o>>2]=0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);return l=zw(e|0,t|0,f|0,E_[3666]|0)|0,f=z_,e=E_[o>>2]|0,(e|0)==0&&(E_[o>>2]=u),(E_[t>>2]|0)!=(r|0)?(E_[i>>2]=4,n=0,O_=a,n|0):(r=-1,t=0,(e|0)==34|((f|0)<(r|0)|(f|0)==(r|0)&l>>>0<2147483648)|((f|0)>(t|0)|(f|0)==(t|0)&l>>>0>2147483647)?(E_[i>>2]=4,i=0,n=(f|0)>(i|0)|(f|0)==(i|0)&l>>>0>0?2147483647:-2147483648,O_=a,n|0):(n=l,O_=a,n|0))}function vt(e){e|=0;var r=0,i=0,f=0,a=0;return r=e+4|0,i=(E_[e>>2]|0)+(E_[r+4>>2]|0)|0,e=i,f=E_[r>>2]|0,(f&1|0)==0?(a=f,void Qw[a&511](e)):(a=E_[(E_[i>>2]|0)+(f-1)>>2]|0,void Qw[a&511](e))}function mt(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0;if(i=e+8|0,f=e+4|0,a=E_[f>>2]|0,t=E_[i>>2]|0,n=a,t-n>>2>>>0>=r>>>0){o=r,u=a;do(u|0)==0?l=0:(E_[u>>2]=0,l=E_[f>>2]|0),u=l+4|0,E_[f>>2]=u,o=o-1|0;while((o|0)!=0)}else{o=e+16|0,u=e|0,l=E_[u>>2]|0,a=n-l>>2,n=a+r|0,n>>>0>1073741823&&cf(0),s=t-l|0;do if(s>>2>>>0>536870910)b=1073741823,k=8339;else{if(l=s>>1,t=l>>>0<n>>>0?n:l,(t|0)==0){c=0,d=0;break}if(l=e+128|0,!((m_[l]&1)==0&t>>>0<29)){b=t,k=8339;break}m_[l]=1,c=o,d=t}while(0);(k|0)==8339&&(c=kn(b<<2)|0,d=b),b=r,r=c+(a<<2)|0;do(r|0)==0?h=0:(E_[r>>2]=0,h=r),r=h+4|0,b=b-1|0;while((b|0)!=0);if(b=c+(d<<2)|0,d=E_[u>>2]|0,h=(E_[f>>2]|0)-d|0,k=c+(a-(h>>2)<<2)|0,a=k,c=d,yn(a|0,c|0,h)|0,E_[u>>2]=k,E_[f>>2]=r,E_[i>>2]=b,(d|0)!=0)return(d|0)==(o|0)?void(m_[e+128|0]=0):void hn(c)}}function pt(e){e|=0,Lc(13876),Lc(13864),Lc(13852),Lc(13840),Lc(13828),Lc(13816),Lc(13804),Lc(13792),Lc(13780),Lc(13768),Lc(13756),Lc(13744),Lc(13732),Lc(13720),Lc(13708),Lc(13696),Lc(13684),Lc(13672),Lc(13660),Lc(13648),Lc(13636),Lc(13624),Lc(13612),Lc(13600)}function Et(e){e|=0,yc(14620),yc(14608),yc(14596),yc(14584),yc(14572),yc(14560),yc(14548),yc(14536),yc(14524),yc(14512),yc(14500),yc(14488),yc(14476),yc(14464),yc(14452),yc(14440),yc(14428),yc(14416),yc(14404),yc(14392),yc(14380),yc(14368),yc(14356),yc(14344)}function St(e){e|=0,Lc(13420),Lc(13408),Lc(13396),Lc(13384),Lc(13372),Lc(13360),Lc(13348),Lc(13336),Lc(13324),Lc(13312),Lc(13300),Lc(13288),Lc(13276),Lc(13264),Lc(13252),Lc(13240),Lc(13228),Lc(13216),Lc(13204),Lc(13192),Lc(13180),Lc(13168),Lc(13156),Lc(13144)}function gt(e){e|=0,yc(14164),yc(14152),yc(14140),yc(14128),yc(14116),yc(14104),yc(14092),yc(14080),yc(14068),yc(14056),yc(14044),yc(14032),yc(14020),yc(14008),yc(13996),yc(13984),yc(13972),yc(13960),yc(13948),yc(13936),yc(13924),yc(13912),yc(13900),yc(13888)}function yt(e){e|=0,Lc(13588),Lc(13576),Lc(13564),Lc(13552),Lc(13540),Lc(13528),Lc(13516),Lc(13504),Lc(13492),Lc(13480),Lc(13468),Lc(13456),Lc(13444),Lc(13432)}function At(e){e|=0,yc(14332),yc(14320),yc(14308),yc(14296),yc(14284),yc(14272),yc(14260),yc(14248),yc(14236),yc(14224),yc(14212),yc(14200),yc(14188),yc(14176)}function Ot(e,r,i){return e|=0,r|=0,i|=0,Rt(0,e,r,(i|0)!=0?i:12656)|0}function Rt(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;a=O_,O_=O_+8|0,t=a|0,E_[t>>2]=e,n=((f|0)==0?12648:f)|0,f=E_[n>>2]|0;e:do{if((r|0)==0){if((f|0)!=0)break;return o=0,O_=a,o|0}if((e|0)==0?(u=t,E_[t>>2]=u,l=u):l=e,(i|0)==0)return o=-2,O_=a,o|0;do{if((f|0)==0){if(u=m_[r]|0,s=u&255,u<<24>>24>-1)return E_[l>>2]=s,o=u<<24>>24!=0|0,O_=a,o|0;if(u=s-194|0,u>>>0>50)break e;b=r+1|0,k=E_[P_+(u<<2)>>2]|0,c=i-1|0;break}b=r,k=f,c=i}while(0);r:do{if((c|0)!=0){if(u=m_[b]|0,s=(u&255)>>>3,(s-16|s+(k>>26))>>>0>7)break e;for(h=b,_=k,w=c,v=u;;){if(h=h+1|0,_=(v&255)-128|_<<6,w=w-1|0,(_|0)>=0)break;if((w|0)==0){d=_;break r}if(v=m_[h]|0,((v&255)-128|0)>>>0>63)break e}return E_[n>>2]=0,E_[l>>2]=_,o=i-w|0,O_=a,o|0}d=k}while(0);return E_[n>>2]=d,o=-2,O_=a,o|0}while(0);return E_[n>>2]=0,E_[(Nw()|0)>>2]=84,o=-1,O_=a,o|0}function Ft(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0;t=O_,O_=O_+1032|0,n=t|0,o=t+1024|0,u=E_[r>>2]|0,E_[o>>2]=u,l=(e|0)!=0,s=l?f:256,f=l?e:n|0;e:do if((u|0)==0|(s|0)==0)b=0,k=i,c=s,d=f,h=u;else{for(e=n|0,_=s,w=i,v=0,m=f,p=u;;){if(E=w>>>2,S=E>>>0>=_>>>0,!(S|w>>>0>131)){b=v,k=w,c=_,d=m,h=p;break e}if(g=S?_:E,y=w-g|0,E=Mt(m,o,g,a)|0,(E|0)==-1)break;if((m|0)==(e|0)?(A=e,O=_):(A=m+(E<<2)|0,O=_-E|0),g=E+v|0,E=E_[o>>2]|0,(E|0)==0|(O|0)==0){b=g,k=y,c=O,d=A,h=E;break e}_=O,w=y,v=g,m=A,p=E}b=-1,k=y,c=0,d=m,h=E_[o>>2]|0}while(0);e:do{if((h|0)!=0){if((c|0)==0|(k|0)==0){R=b;break}for(F=c,M=k,N=b,D=d,C=h;;){if(T=Rt(D,C,M,a)|0,(T+2|0)>>>0<3)break;if(y=(E_[o>>2]|0)+T|0,E_[o>>2]=y,A=F-1|0,O=N+1|0,(A|0)==0|(M|0)==(T|0)){R=O;break e}F=A,M=M-T|0,N=O,D=D+4|0,C=y}if((T|0)==-1){R=-1;break}if((T|0)==0){E_[o>>2]=0,R=N;break}E_[a>>2]=0,R=N;break}R=b}while(0);return l?(E_[r>>2]=E_[o>>2],O_=t,R|0):(O_=t,R|0)}function Mt(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0,J=0,$=0,er=0,rr=0;a=E_[r>>2]|0;do if((f|0)==0)t=8409;else{if(n=f|0,o=E_[n>>2]|0,(o|0)==0){t=8409;break}if((e|0)==0){u=o,l=a,s=i,t=8420;break}E_[n>>2]=0,b=o,k=a,c=e,d=i,t=8440}while(0);(t|0)==8409&&((e|0)==0?(h=a,_=i,t=8411):(w=a,v=e,m=i,t=8410));e:for(;;)if((t|0)!=8440)if((t|0)!=8420)if((t|0)!=8410)if((t|0)!=8411);else{t=0,f=m_[h]|0;do if(((f&255)-1|0)>>>0<127){if((h&3|0)!=0){Z=h,j=_,q=f;break}if(a=E_[h>>2]|0,((a-16843009|a)&-2139062144|0)!=0){Z=h,j=_,q=a&255;break}W=_,K=h;do K=K+4|0,W=W-4|0,X=E_[K>>2]|0;while(((X-16843009|X)&-2139062144|0)==0);Z=K,j=W,q=X&255}else Z=h,j=_,q=f;while(0);if(f=q&255,(f-1|0)>>>0<127){h=Z+1|0,_=j-1|0,t=8411;continue}if(a=f-194|0,a>>>0>50){z=j,Y=e,V=Z,t=8451;break}u=E_[P_+(a<<2)>>2]|0,l=Z+1|0,s=j,t=8420}else{if(t=0,(m|0)==0){A=i,t=8461;break}for(O=m,R=v,F=w;;){f=m_[F]|0;do if(((f&255)-1|0)>>>0<127){if(!((F&3|0)==0&O>>>0>3)){C=F,T=R,P=O,L=f;break}for(M=O,N=R,D=F;;){if(I=E_[D>>2]|0,((I-16843009|I)&-2139062144|0)!=0){t=8434;break}if(E_[N>>2]=I&255,E_[N+4>>2]=S_[D+1|0]|0,E_[N+8>>2]=S_[D+2|0]|0,x=D+4|0,B=N+16|0,E_[N+12>>2]=S_[D+3|0]|0,H=M-4|0,!(H>>>0>3)){t=8435;break}M=H,N=B,D=x}if((t|0)==8434){t=0,C=D,T=N,P=M,L=I&255;break}if((t|0)==8435){t=0,C=x,T=B,P=H,L=m_[x]|0;break}}else C=F,T=R,P=O,L=f;while(0);if(U=L&255,(U-1|0)>>>0>=127)break;if(E_[T>>2]=U,f=P-1|0,(f|0)==0){A=i,t=8458;break e}O=f,R=T+4|0,F=C+1|0}if(f=U-194|0,f>>>0>50){z=P,Y=T,V=C,t=8451;break}b=E_[P_+(f<<2)>>2]|0,k=C+1|0,c=T,d=P,t=8440}else{if(t=0,f=(S_[l]|0)>>>3,(f-16|f+(u>>26))>>>0>7){t=8421;break}f=l+1|0;do if((u&33554432|0)==0)y=f;else{if(((S_[f]|0)-128|0)>>>0>63){t=8424;break e}if(a=l+2|0,(u&524288|0)==0){y=a;break}if(((S_[a]|0)-128|0)>>>0>63){t=8427;break e}y=l+3|0}while(0);h=y,_=s-1|0,t=8411}else{if(t=0,a=S_[k]|0,f=a>>>3,(f-16|f+(b>>26))>>>0>7){t=8441;break}f=k+1|0,p=a-128|b<<6;do if((p|0)<0){if(a=(S_[f]|0)-128|0,a>>>0>63){t=8444;break e}if(o=k+2|0,E=a|p<<6,(E|0)>=0){S=E,g=o;break}if(a=(S_[o]|0)-128|0,a>>>0>63){t=8447;break e}S=a|E<<6,g=k+3|0}else S=p,g=f;while(0);E_[c>>2]=S,w=g,v=c+4|0,m=d-1|0,t=8410}if((t|0)==8447)G=E,Q=k-1|0,J=c,$=d,t=8450;else if((t|0)==8444)G=p,Q=k-1|0,J=c,$=d,t=8450;else{if((t|0)==8458)return A|0;if((t|0)==8461)return A|0;(t|0)==8424?(G=u,Q=l-1|0,J=e,$=s,t=8450):(t|0)==8421?(G=u,Q=l-1|0,J=e,$=s,t=8450):(t|0)==8427?(G=u,Q=l-1|0,J=e,$=s,t=8450):(t|0)==8441&&(G=b,Q=k-1|0,J=c,$=d,t=8450)}(t|0)==8450&&((G|0)==0?(z=$,Y=J,V=Q,t=8451):(er=J,rr=Q));do if((t|0)==8451){if((m_[V]|0)!=0){er=Y,rr=V;break}return(Y|0)!=0&&(E_[Y>>2]=0,E_[r>>2]=0),A=i-z|0,A|0}while(0);return E_[(Nw()|0)>>2]=84,(er|0)==0?(A=-1,A|0):(E_[r>>2]=rr,A=-1,A|0)}function Nt(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0;if(f=O_,O_=O_+8|0,a=f|0,E_[a>>2]=e,(r|0)==0)return t=0,O_=f,t|0;do if((i|0)!=0){if((e|0)==0?(n=a,E_[a>>2]=n,o=n):o=e,n=m_[r]|0,u=n&255,n<<24>>24>-1)return E_[o>>2]=u,t=n<<24>>24!=0|0,O_=f,t|0;if(n=u-194|0,n>>>0>50)break;if(u=r+1|0,l=E_[P_+(n<<2)>>2]|0,i>>>0<4&&(l&-2147483648>>>(((i*6|0)-6|0)>>>0)|0)!=0)break;if(n=S_[u]|0,u=n>>>3,(u-16|u+(l>>26))>>>0>7)break;if(u=n-128|l<<6,(u|0)>=0)return E_[o>>2]=u,t=2,O_=f,t|0;if(l=(S_[r+2|0]|0)-128|0,l>>>0>63)break;if(n=l|u<<6,(n|0)>=0)return E_[o>>2]=n,t=3,O_=f,t|0;if(u=(S_[r+3|0]|0)-128|0,u>>>0>63)break;return E_[o>>2]=u|n<<6,t=4,O_=f,t|0}while(0);return E_[(Nw()|0)>>2]=84,t=-1,O_=f,t|0}function Dt(e,r,i){e|=0,r|=0,i|=0;var f=0;return(e|0)==0?(f=1,f|0):r>>>0<128?(m_[e]=r&255,f=1,f|0):r>>>0<2048?(m_[e]=(r>>>6|192)&255,m_[e+1|0]=(r&63|128)&255,f=2,f|0):r>>>0<55296|(r-57344|0)>>>0<8192?(m_[e]=(r>>>12|224)&255,m_[e+1|0]=(r>>>6&63|128)&255,m_[e+2|0]=(r&63|128)&255,f=3,f|0):(r-65536|0)>>>0<1048576?(m_[e]=(r>>>18|240)&255,m_[e+1|0]=(r>>>12&63|128)&255,m_[e+2|0]=(r>>>6&63|128)&255,m_[e+3|0]=(r&63|128)&255,f=4,f|0):(E_[(Nw()|0)>>2]=84,f=-1,f|0)}function Ct(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0;a=O_,O_=O_+264|0,t=a|0,n=a+256|0,o=E_[r>>2]|0,E_[n>>2]=o,u=(e|0)!=0,l=u?f:256,f=u?e:t|0;e:do if((o|0)==0|(l|0)==0)s=0,b=i,k=l,c=f,d=o;else{for(e=t|0,h=l,_=i,w=0,v=f,m=o;;){if(p=_>>>0>=h>>>0,!(p|_>>>0>32)){s=w,b=_,k=h,c=v,d=m;break e}if(E=p?h:_,S=_-E|0,p=Tt(v,n,E,0)|0,(p|0)==-1)break;if((v|0)==(e|0)?(g=e,y=h):(g=v+p|0,y=h-p|0),E=p+w|0,p=E_[n>>2]|0,(p|0)==0|(y|0)==0){s=E,b=S,k=y,c=g,d=p;break e}h=y,_=S,w=E,v=g,m=p}s=-1,b=S,k=0,c=v,d=E_[n>>2]|0}while(0);e:do if((d|0)==0)A=s;else{if((k|0)==0|(b|0)==0){A=s;break}for(O=k,R=b,F=s,M=c,N=d;;){if(D=Dt(M,E_[N>>2]|0,0)|0,(D+1|0)>>>0<2)break;if(S=(E_[n>>2]|0)+4|0,E_[n>>2]=S,g=R-1|0,y=F+1|0,(O|0)==(D|0)|(g|0)==0){A=y;break e}O=O-D|0,R=g,F=y,M=M+D|0,N=S}if((D|0)!=0){A=-1;break}E_[n>>2]=0,A=F}while(0);return u?(E_[r>>2]=E_[n>>2],O_=a,A|0):(O_=a,A|0)}function Tt(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0;if(f=O_,O_=O_+8|0,a=f|0,(e|0)==0){if(t=E_[r>>2]|0,n=a|0,o=E_[t>>2]|0,(o|0)==0)return u=0,O_=f,u|0;for(l=0,s=t,b=o;;){if(b>>>0>127){if(o=Dt(n,b,0)|0,(o|0)==-1){u=-1,k=8556;break}c=o}else c=1;if(o=c+l|0,t=s+4|0,d=E_[t>>2]|0,(d|0)==0){u=o,k=8553;break}l=o,s=t,b=d}if((k|0)==8556)return O_=f,u|0;if((k|0)==8553)return O_=f,u|0}e:do{if(i>>>0>3){for(b=i,s=e,l=E_[r>>2]|0;;){if(c=E_[l>>2]|0,(c|0)==0){h=b,_=s;break e}if(c>>>0>127){if(n=Dt(s,c,0)|0,(n|0)==-1){u=-1;break}w=s+n|0,v=b-n|0,m=l}else m_[s]=c&255,w=s+1|0,v=b-1|0,m=E_[r>>2]|0;if(c=m+4|0,E_[r>>2]=c,!(v>>>0>3)){h=v,_=w;break e}b=v,s=w,l=c}return O_=f,u|0}h=i,_=e}while(0);e:do if((h|0)==0)p=0;else{for(e=a|0,w=h,v=_,m=E_[r>>2]|0;;){if(l=E_[m>>2]|0,(l|0)==0){k=8547;break}if(l>>>0>127){if(s=Dt(e,l,0)|0,(s|0)==-1){u=-1,k=8550;break}if(s>>>0>w>>>0){k=8543;break}b=E_[m>>2]|0,Dt(v,b,0)|0,E=v+s|0,S=w-s|0,g=m}else m_[v]=l&255,E=v+1|0,S=w-1|0,g=E_[r>>2]|0;if(l=g+4|0,E_[r>>2]=l,(S|0)==0){p=0;break e}w=S,v=E,m=l}if((k|0)==8550)return O_=f,u|0;if((k|0)==8543)return u=i-w|0,O_=f,u|0;if((k|0)==8547){m_[v]=0,p=w;break}}while(0);return E_[r>>2]=0,u=i-p|0,O_=f,u|0}function Pt(e){e|=0;var r=0;for(r=e;;){if((E_[r>>2]|0)==0)break;r=r+4|0}return r-e>>2|0}function Lt(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0;if((i|0)==0)return e|0;for(f=r,a=i,t=e;;){if(i=a-1|0,E_[t>>2]=E_[f>>2],(i|0)==0)break;f=f+4|0,a=i,t=t+4|0}return e|0}function It(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0;if(f=(i|0)==0,e-r>>2>>>0<i>>>0){if(f)return e|0;a=i;do a=a-1|0,E_[e+(a<<2)>>2]=E_[r+(a<<2)>>2];while((a|0)!=0);return e|0}if(f)return e|0;for(t=r,n=i,o=e;;){if(i=n-1|0,E_[o>>2]=E_[t>>2],(i|0)==0)break;t=t+4|0,n=i,o=o+4|0}return e|0}function xt(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0;if((i|0)==0)return e|0;for(f=i,a=e;;){if(i=f-1|0,E_[a>>2]=r,(i|0)==0)break;f=i,a=a+4|0}return e|0}function Bt(e){e|=0}function Ht(e){e|=0,E_[e>>2]=5312}function Ut(e){e|=0,hn(e)}function zt(e){e|=0}function Yt(e){return e|=0,1616}function Vt(e){e|=0,Bt(e|0)}function Zt(e){e|=0}function jt(e){e|=0}function qt(e){e|=0,Bt(e|0),hn(e)}function Wt(e){e|=0,Bt(e|0),hn(e)}function Kt(e){e|=0,Bt(e|0),hn(e)}function Xt(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0;return f=O_,O_=O_+56|0,a=f|0,(e|0)==(r|0)?(t=1,O_=f,t|0):(r|0)==0?(t=0,O_=f,t|0):(n=$t(r,12552,12536,-1)|0,r=n,(n|0)==0?(t=0,O_=f,t|0):(o=a,An(o|0,0,56)|0,E_[a>>2]=r,E_[a+8>>2]=e,E_[a+12>>2]=-1,E_[a+48>>2]=1,Xw[E_[(E_[n>>2]|0)+28>>2]&31](r,a,E_[i>>2]|0,1),(E_[a+24>>2]|0)!=1?(t=0,O_=f,t|0):(E_[i>>2]=E_[a+16>>2],t=1,O_=f,t|0)))}function Gt(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0;if((E_[r+8>>2]|0)==(e|0)){if(e=r+16|0,a=E_[e>>2]|0,(a|0)==0)return E_[e>>2]=i,E_[r+24>>2]=f,void(E_[r+36>>2]=1);if((a|0)!=(i|0))return i=r+36|0,E_[i>>2]=(E_[i>>2]|0)+1,E_[r+24>>2]=2,void(m_[r+54|0]=1);i=r+24|0,(E_[i>>2]|0)==2&&(E_[i>>2]=f)}}function Qt(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0;return(e|0)!=(E_[r+8>>2]|0)?(a=E_[e+8>>2]|0,void Xw[E_[(E_[a>>2]|0)+28>>2]&31](a,r,i,f)):(a=r+16|0,e=E_[a>>2]|0,(e|0)==0?(E_[a>>2]=i,E_[r+24>>2]=f,void(E_[r+36>>2]=1)):(e|0)!=(i|0)?(i=r+36|0,E_[i>>2]=(E_[i>>2]|0)+1,E_[r+24>>2]=2,void(m_[r+54|0]=1)):(i=r+24|0,void((E_[i>>2]|0)==2&&(E_[i>>2]=f))))}function Jt(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0;if((e|0)==(E_[r+8>>2]|0)){if(a=r+16|0,t=E_[a>>2]|0,(t|0)==0)return E_[a>>2]=i,E_[r+24>>2]=f,void(E_[r+36>>2]=1);if((t|0)!=(i|0))return t=r+36|0,E_[t>>2]=(E_[t>>2]|0)+1,E_[r+24>>2]=2,void(m_[r+54|0]=1);if(t=r+24|0,(E_[t>>2]|0)!=2)return;return void(E_[t>>2]=f)}if(t=E_[e+12>>2]|0,a=e+16+(t<<3)|0,n=E_[e+20>>2]|0,o=n>>8,u=(n&1|0)==0?o:E_[(E_[i>>2]|0)+o>>2]|0,o=E_[e+16>>2]|0,Xw[E_[(E_[o>>2]|0)+28>>2]&31](o,r,i+u|0,(n&2|0)!=0?f:2),!((t|0)<=1))for(t=r+54|0,n=i,u=e+24|0;;){if(e=E_[u+4>>2]|0,o=e>>8,l=(e&1|0)==0?o:E_[(E_[n>>2]|0)+o>>2]|0,o=E_[u>>2]|0,Xw[E_[(E_[o>>2]|0)+28>>2]&31](o,r,i+l|0,(e&2|0)!=0?f:2),(m_[t]&1)!=0){s=8650;break}if(e=u+8|0,!(e>>>0<a>>>0)){s=8647;break}u=e}}function $t(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;if(a=O_,O_=O_+56|0,t=a|0,n=E_[e>>2]|0,o=e+(E_[n-8>>2]|0)|0,u=E_[n-4>>2]|0,n=u,E_[t>>2]=i,E_[t+4>>2]=e,E_[t+8>>2]=r,E_[t+12>>2]=f,f=t+16|0,r=t+20|0,e=t+24|0,l=t+28|0,s=t+32|0,b=t+40|0,k=(u|0)==(i|0),i=f,An(i|0,0,39)|0,k)return E_[t+48>>2]=1,uv[E_[(E_[u>>2]|0)+20>>2]&31](n,t,o,o,1,0),O_=a,((E_[e>>2]|0)==1?o:0)|0;if(Gw[E_[(E_[u>>2]|0)+24>>2]&15](n,t,o,1,0),o=E_[t+36>>2]|0,(o|0)==0)return(E_[b>>2]|0)!=1?(c=0,O_=a,c|0):(E_[l>>2]|0)!=1?(c=0,O_=a,c|0):(c=(E_[s>>2]|0)==1?E_[r>>2]|0:0,O_=a,c|0);if((o|0)==1){do if((E_[e>>2]|0)!=1){if((E_[b>>2]|0)!=0)return c=0,O_=a,c|0;if((E_[l>>2]|0)!=1)return c=0,O_=a,c|0;if((E_[s>>2]|0)==1)break;return c=0,O_=a,c|0}while(0);return c=E_[f>>2]|0,O_=a,c|0}return c=0,O_=a,c|0}function en(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0;if(t=e|0,(t|0)==(E_[r+8>>2]|0)){if((E_[r+4>>2]|0)!=(i|0))return;if(n=r+28|0,(E_[n>>2]|0)==1)return;return void(E_[n>>2]=f)}if((t|0)==(E_[r>>2]|0)){do if((E_[r+16>>2]|0)!=(i|0)){if(t=r+20|0,(E_[t>>2]|0)==(i|0))break;if(E_[r+32>>2]=f,n=r+44|0,(E_[n>>2]|0)==4)return;o=E_[e+12>>2]|0,u=e+16+(o<<3)|0;e:do if((o|0)>0){l=r+52|0,s=r+53|0,b=r+54|0,k=e+8|0,c=r+24|0,d=i,h=0,_=e+16|0,w=0;r:for(;;){if(m_[l]=0,m_[s]=0,v=E_[_+4>>2]|0,m=v>>8,p=(v&1|0)==0?m:E_[(E_[d>>2]|0)+m>>2]|0,m=E_[_>>2]|0,uv[E_[(E_[m>>2]|0)+20>>2]&31](m,r,i,i+p|0,2-(v>>>1&1)|0,a),(m_[b]&1)!=0){E=w,S=h;break}do if((m_[s]&1)==0)g=w,y=h;else{if((m_[l]&1)==0){if((E_[k>>2]&1|0)==0){E=1,S=h;break r}g=1,y=h;break}if((E_[c>>2]|0)==1){A=8698;break e}if((E_[k>>2]&2|0)==0){A=8698;break e}g=1,y=1}while(0);if(v=_+8|0,!(v>>>0<u>>>0)){E=g,S=y;break}h=y,_=v,w=g}S?(O=E,A=8697):(R=E,A=8694)}else R=0,A=8694;while(0);do if((A|0)==8694){if(E_[t>>2]=i,u=r+40|0,E_[u>>2]=(E_[u>>2]|0)+1,(E_[r+36>>2]|0)!=1){O=R,A=8697;break}if((E_[r+24>>2]|0)!=2){O=R,A=8697;break}m_[r+54|0]=1,A=R?8698:8699}while(0);if((A|0)==8697&&(A=O?8698:8699),(A|0)==8699)return void(E_[n>>2]=4);if((A|0)==8698)return void(E_[n>>2]=3)}while(0);if((f|0)!=1)return;return void(E_[r+32>>2]=1)}if(O=E_[e+12>>2]|0,R=e+16+(O<<3)|0,E=E_[e+20>>2]|0,S=E>>8,F=(E&1|0)==0?S:E_[(E_[i>>2]|0)+S>>2]|0,S=E_[e+16>>2]|0,Gw[E_[(E_[S>>2]|0)+24>>2]&15](S,r,i+F|0,(E&2|0)!=0?f:2,a),E=e+24|0,!((O|0)<=1)){O=E_[e+8>>2]|0;do if((O&2|0)==0){if(e=r+36|0,(E_[e>>2]|0)==1)break;if((O&1|0)==0){for(F=r+54|0,S=i,y=E;;){if((m_[F]&1)!=0){A=8727;break}if((E_[e>>2]|0)==1){A=8725;break}if(g=E_[y+4>>2]|0,p=g>>8,M=(g&1|0)==0?p:E_[(E_[S>>2]|0)+p>>2]|0,p=E_[y>>2]|0,Gw[E_[(E_[p>>2]|0)+24>>2]&15](p,r,i+M|0,(g&2|0)!=0?f:2,a),g=y+8|0,!(g>>>0<R>>>0)){A=8733;break}y=g}if((A|0)==8733)return;if((A|0)==8725)return;if((A|0)==8727)return}for(y=r+24|0,S=r+54|0,F=i,n=E;;){if((m_[S]&1)!=0){A=8728;break}if((E_[e>>2]|0)==1&&(E_[y>>2]|0)==1){A=8734;break}if(g=E_[n+4>>2]|0,p=g>>8,N=(g&1|0)==0?p:E_[(E_[F>>2]|0)+p>>2]|0,p=E_[n>>2]|0,Gw[E_[(E_[p>>2]|0)+24>>2]&15](p,r,i+N|0,(g&2|0)!=0?f:2,a),g=n+8|0,!(g>>>0<R>>>0)){A=8726;break}n=g}if((A|0)==8734)return;if((A|0)==8726)return;if((A|0)==8728)return}while(0);for(N=r+54|0,M=i,O=E;;){if((m_[N]&1)!=0){A=8731;break}if(E=E_[O+4>>2]|0,n=E>>8,D=(E&1|0)==0?n:E_[(E_[M>>2]|0)+n>>2]|0,n=E_[O>>2]|0,Gw[E_[(E_[n>>2]|0)+24>>2]&15](n,r,i+D|0,(E&2|0)!=0?f:2,a),E=O+8|0,!(E>>>0<R>>>0)){A=8735;break}O=E}}}function rn(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0;if(t=e|0,(t|0)==(E_[r+8>>2]|0)){if((E_[r+4>>2]|0)!=(i|0))return;if(n=r+28|0,(E_[n>>2]|0)==1)return;return void(E_[n>>2]=f)}if((t|0)!=(E_[r>>2]|0))return t=E_[e+8>>2]|0,void Gw[E_[(E_[t>>2]|0)+24>>2]&15](t,r,i,f,a);do if((E_[r+16>>2]|0)!=(i|0)){if(t=r+20|0,(E_[t>>2]|0)==(i|0))break;if(E_[r+32>>2]=f,n=r+44|0,(E_[n>>2]|0)==4)return;o=r+52|0,m_[o]=0,u=r+53|0,m_[u]=0,l=E_[e+8>>2]|0,uv[E_[(E_[l>>2]|0)+20>>2]&31](l,r,i,i,1,a),(m_[u]&1)==0?(s=0,b=8754):(m_[o]&1)==0&&(s=1,b=8754);e:do if((b|0)==8754){E_[t>>2]=i,o=r+40|0,E_[o>>2]=(E_[o>>2]|0)+1;do if((E_[r+36>>2]|0)==1){if((E_[r+24>>2]|0)!=2){b=8757;break}if(m_[r+54|0]=1,s)break e}else b=8757;while(0);if((b|0)==8757&&s)break;return void(E_[n>>2]=4)}while(0);return void(E_[n>>2]=3)}while(0);(f|0)==1&&(E_[r+32>>2]=1)}function fn(e,r,i,f,a){if(e|=0,r|=0,i|=0,f|=0,a|=0,(E_[r+8>>2]|0)==(e|0)){if((E_[r+4>>2]|0)!=(i|0))return;if(a=r+28|0,(E_[a>>2]|0)==1)return;return void(E_[a>>2]=f)}if((E_[r>>2]|0)==(e|0)){do if((E_[r+16>>2]|0)!=(i|0)){if(e=r+20|0,(E_[e>>2]|0)==(i|0))break;E_[r+32>>2]=f,E_[e>>2]=i,e=r+40|0,E_[e>>2]=(E_[e>>2]|0)+1;do if((E_[r+36>>2]|0)==1){if((E_[r+24>>2]|0)!=2)break;m_[r+54|0]=1}while(0);return void(E_[r+44>>2]=4)}while(0);(f|0)==1&&(E_[r+32>>2]=1)}}function an(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;if((e|0)!=(E_[r+8>>2]|0)){n=r+52|0,o=m_[n]&1,u=r+53|0,l=m_[u]&1,s=E_[e+12>>2]|0,b=e+16+(s<<3)|0,m_[n]=0,m_[u]=0,k=E_[e+20>>2]|0,c=k>>8,d=(k&1|0)==0?c:E_[(E_[f>>2]|0)+c>>2]|0,c=E_[e+16>>2]|0,uv[E_[(E_[c>>2]|0)+20>>2]&31](c,r,i,f+d|0,(k&2|0)!=0?a:2,t);e:do if((s|0)>1){k=r+24|0,d=e+8|0,c=r+54|0,h=f,_=e+24|0;do{if((m_[c]&1)!=0)break e;do if((m_[n]&1)==0){if((m_[u]&1)==0)break;if((E_[d>>2]&1|0)==0)break e}else{if((E_[k>>2]|0)==1)break e;if((E_[d>>2]&2|0)==0)break e}while(0);m_[n]=0,m_[u]=0,w=E_[_+4>>2]|0,v=w>>8,m=(w&1|0)==0?v:E_[(E_[h>>2]|0)+v>>2]|0,v=E_[_>>2]|0,uv[E_[(E_[v>>2]|0)+20>>2]&31](v,r,i,f+m|0,(w&2|0)!=0?a:2,t),_=_+8|0}while(_>>>0<b>>>0)}while(0);return m_[n]=o,void(m_[u]=l)}if(m_[r+53|0]=1,(E_[r+4>>2]|0)==(f|0)){if(m_[r+52|0]=1,f=r+16|0,l=E_[f>>2]|0,(l|0)==0){if(E_[f>>2]=i,E_[r+24>>2]=a,E_[r+36>>2]=1,!((E_[r+48>>2]|0)==1&(a|0)==1))return;return void(m_[r+54|0]=1)}if((l|0)!=(i|0))return i=r+36|0,E_[i>>2]=(E_[i>>2]|0)+1,void(m_[r+54|0]=1);i=r+24|0,l=E_[i>>2]|0,(l|0)==2?(E_[i>>2]=a,p=a):p=l,(E_[r+48>>2]|0)==1&(p|0)==1&&(m_[r+54|0]=1)}}function tn(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0;if((e|0)!=(E_[r+8>>2]|0))return n=E_[e+8>>2]|0,void uv[E_[(E_[n>>2]|0)+20>>2]&31](n,r,i,f,a,t);
if(m_[r+53|0]=1,(E_[r+4>>2]|0)==(f|0)){if(m_[r+52|0]=1,f=r+16|0,t=E_[f>>2]|0,(t|0)==0){if(E_[f>>2]=i,E_[r+24>>2]=a,E_[r+36>>2]=1,!((E_[r+48>>2]|0)==1&(a|0)==1))return;return void(m_[r+54|0]=1)}if((t|0)!=(i|0))return i=r+36|0,E_[i>>2]=(E_[i>>2]|0)+1,void(m_[r+54|0]=1);i=r+24|0,t=E_[i>>2]|0,(t|0)==2?(E_[i>>2]=a,o=a):o=t,(E_[r+48>>2]|0)==1&(o|0)==1&&(m_[r+54|0]=1)}}function nn(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0;if((E_[r+8>>2]|0)==(e|0)&&(m_[r+53|0]=1,(E_[r+4>>2]|0)==(f|0))){if(m_[r+52|0]=1,f=r+16|0,e=E_[f>>2]|0,(e|0)==0){if(E_[f>>2]=i,E_[r+24>>2]=a,E_[r+36>>2]=1,!((E_[r+48>>2]|0)==1&(a|0)==1))return;return void(m_[r+54|0]=1)}if((e|0)!=(i|0))return i=r+36|0,E_[i>>2]=(E_[i>>2]|0)+1,void(m_[r+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b|d)+(h>>>(d>>>0))|0,d=_<<1,h=12712+(d<<2)|0,b=12712+(d+2<<2)|0,d=E_[b>>2]|0,o=d+8|0,s=E_[o>>2]|0;do{if((h|0)!=(s|0)){if(s>>>0<(E_[3172]|0)>>>0)return Bw(),0;if(u=s+12|0,(E_[u>>2]|0)==(d|0)){E_[u>>2]=h,E_[b>>2]=s;break}return Bw(),0}E_[3168]=f&~(1<<_)}while(0);if(s=_<<3,b=s-r|0,E_[d+4>>2]=r|3,h=d,f=h+r|0,E_[h+(r|4)>>2]=b|1,E_[h+s>>2]=b,s=E_[3170]|0,(s|0)!=0){h=E_[3173]|0,i=s>>>3,s=i<<1,a=12712+(s<<2)|0,l=E_[3168]|0,n=1<<i;do{if((l&n|0)!=0){if(i=12712+(s+2<<2)|0,t=E_[i>>2]|0,t>>>0>=(E_[3172]|0)>>>0){w=t,v=i;break}return Bw(),0}E_[3168]=l|n,w=a,v=12712+(s+2<<2)|0}while(0);E_[v>>2]=h,E_[w+12>>2]=h,E_[h+8>>2]=w,E_[h+12>>2]=a}return E_[3170]=b,E_[3173]=f,k=o,k|0}if(s=E_[3169]|0,(s|0)==0){c=r;break}for(n=(s&-s)-1|0,s=n>>>12&16,l=n>>>(s>>>0),n=l>>>5&8,d=l>>>(n>>>0),l=d>>>2&4,_=d>>>(l>>>0),d=_>>>1&2,i=_>>>(d>>>0),_=i>>>1&1,t=E_[12976+((n|s|l|d|_)+(i>>>(_>>>0))<<2)>>2]|0,_=t,i=t,d=(E_[t+4>>2]&-8)-r|0;;){if(t=E_[_+16>>2]|0,(t|0)==0){if(l=E_[_+20>>2]|0,(l|0)==0)break;m=l}else m=t;t=(E_[m+4>>2]&-8)-r|0,l=t>>>0<d>>>0,_=m,i=l?m:i,d=l?t:d}if(_=i,o=E_[3172]|0,_>>>0<o>>>0)return Bw(),0;if(f=_+r|0,b=f,_>>>0>=f>>>0)return Bw(),0;f=E_[i+24>>2]|0,a=E_[i+12>>2]|0;do{if((a|0)==(i|0)){if(h=i+20|0,t=E_[h>>2]|0,(t|0)==0){if(l=i+16|0,s=E_[l>>2]|0,(s|0)==0){p=0;break}E=s,S=l}else E=t,S=h;for(;;)if(h=E+20|0,t=E_[h>>2]|0,(t|0)==0){if(h=E+16|0,t=E_[h>>2]|0,(t|0)==0)break;E=t,S=h}else E=t,S=h;if(S>>>0<o>>>0)return Bw(),0;E_[S>>2]=0,p=E;break}if(h=E_[i+8>>2]|0,h>>>0<o>>>0)return Bw(),0;if(t=h+12|0,(E_[t>>2]|0)!=(i|0))return Bw(),0;if(l=a+8|0,(E_[l>>2]|0)==(i|0)){E_[t>>2]=a,E_[l>>2]=h,p=a;break}return Bw(),0}while(0);e:do if((f|0)!=0){a=i+28|0,o=12976+(E_[a>>2]<<2)|0;do{if((i|0)==(E_[o>>2]|0)){if(E_[o>>2]=p,(p|0)!=0)break;E_[3169]=E_[3169]&~(1<<E_[a>>2]);break e}if(f>>>0<(E_[3172]|0)>>>0)return Bw(),0;if(h=f+16|0,(E_[h>>2]|0)==(i|0)?E_[h>>2]=p:E_[f+20>>2]=p,(p|0)==0)break e}while(0);if(p>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[p+24>>2]=f,a=E_[i+16>>2]|0;do if((a|0)!=0){if(a>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[p+16>>2]=a,E_[a+24>>2]=p;break}while(0);if(a=E_[i+20>>2]|0,(a|0)==0)break;if(a>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[p+20>>2]=a,E_[a+24>>2]=p;break}while(0);if(d>>>0<16)f=d+r|0,E_[i+4>>2]=f|3,a=_+(f+4)|0,E_[a>>2]=E_[a>>2]|1;else{if(E_[i+4>>2]=r|3,E_[_+(r|4)>>2]=d|1,E_[_+(d+r)>>2]=d,a=E_[3170]|0,(a|0)!=0){f=E_[3173]|0,o=a>>>3,a=o<<1,h=12712+(a<<2)|0,l=E_[3168]|0,t=1<<o;do{if((l&t|0)!=0){if(o=12712+(a+2<<2)|0,s=E_[o>>2]|0,s>>>0>=(E_[3172]|0)>>>0){g=s,y=o;break}return Bw(),0}E_[3168]=l|t,g=h,y=12712+(a+2<<2)|0}while(0);E_[y>>2]=f,E_[g+12>>2]=f,E_[f+8>>2]=g,E_[f+12>>2]=h}E_[3170]=d,E_[3173]=b}if(a=i+8|0,(a|0)==0){c=r;break}return k=a,k|0}if(e>>>0>4294967231){c=-1;break}if(a=e+11|0,t=a&-8,l=E_[3169]|0,(l|0)==0){c=t;break}_=-t|0,o=a>>>8;do if((o|0)==0)A=0;else{if(t>>>0>16777215){A=31;break}a=(o+1048320|0)>>>16&8,s=o<<a,n=(s+520192|0)>>>16&4,u=s<<n,s=(u+245760|0)>>>16&2,O=14-(n|a|s)+(u<<s>>>15)|0,A=t>>>((O+7|0)>>>0)&1|O<<1}while(0);o=E_[12976+(A<<2)>>2]|0;e:do if((o|0)==0)R=0,F=_,M=0;else for(N=(A|0)==31?0:25-(A>>>1)|0,i=0,b=_,d=o,h=t<<N,f=0;;){if(O=E_[d+4>>2]&-8,s=O-t|0,s>>>0<b>>>0){if((O|0)==(t|0)){R=d,F=s,M=d;break e}D=d,C=s}else D=i,C=b;if(s=E_[d+20>>2]|0,O=E_[d+16+(h>>>31<<2)>>2]|0,u=(s|0)==0|(s|0)==(O|0)?f:s,(O|0)==0){R=D,F=C,M=u;break}i=D,b=C,d=O,h<<=1,f=u}while(0);if((M|0)==0&(R|0)==0){if(o=2<<A,_=l&(o|-o),(_|0)==0){c=t;break}o=(_&-_)-1|0,_=o>>>12&16,f=o>>>(_>>>0),o=f>>>5&8,h=f>>>(o>>>0),f=h>>>2&4,d=h>>>(f>>>0),h=d>>>1&2,b=d>>>(h>>>0),d=b>>>1&1,T=E_[12976+((o|_|f|h|d)+(b>>>(d>>>0))<<2)>>2]|0}else T=M;if((T|0)==0)P=F,L=R;else for(d=T,b=F,h=R;;)if(f=(E_[d+4>>2]&-8)-t|0,_=f>>>0<b>>>0,o=_?f:b,f=_?d:h,_=E_[d+16>>2]|0,(_|0)==0){if(_=E_[d+20>>2]|0,(_|0)==0){P=o,L=f;break}d=_,b=o,h=f}else d=_,b=o,h=f;if((L|0)==0){c=t;break}if(P>>>0>=((E_[3170]|0)-t|0)>>>0){c=t;break}if(h=L,b=E_[3172]|0,h>>>0<b>>>0)return Bw(),0;if(d=h+t|0,l=d,h>>>0>=d>>>0)return Bw(),0;f=E_[L+24>>2]|0,o=E_[L+12>>2]|0;do{if((o|0)==(L|0)){if(_=L+20|0,i=E_[_>>2]|0,(i|0)==0){if(u=L+16|0,O=E_[u>>2]|0,(O|0)==0){I=0;break}x=O,B=u}else x=i,B=_;for(;;)if(_=x+20|0,i=E_[_>>2]|0,(i|0)==0){if(_=x+16|0,i=E_[_>>2]|0,(i|0)==0)break;x=i,B=_}else x=i,B=_;if(B>>>0<b>>>0)return Bw(),0;E_[B>>2]=0,I=x;break}if(_=E_[L+8>>2]|0,_>>>0<b>>>0)return Bw(),0;if(i=_+12|0,(E_[i>>2]|0)!=(L|0))return Bw(),0;if(u=o+8|0,(E_[u>>2]|0)==(L|0)){E_[i>>2]=o,E_[u>>2]=_,I=o;break}return Bw(),0}while(0);e:do if((f|0)!=0){o=L+28|0,b=12976+(E_[o>>2]<<2)|0;do{if((L|0)==(E_[b>>2]|0)){if(E_[b>>2]=I,(I|0)!=0)break;E_[3169]=E_[3169]&~(1<<E_[o>>2]);break e}if(f>>>0<(E_[3172]|0)>>>0)return Bw(),0;if(_=f+16|0,(E_[_>>2]|0)==(L|0)?E_[_>>2]=I:E_[f+20>>2]=I,(I|0)==0)break e}while(0);if(I>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[I+24>>2]=f,o=E_[L+16>>2]|0;do if((o|0)!=0){if(o>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[I+16>>2]=o,E_[o+24>>2]=I;break}while(0);if(o=E_[L+20>>2]|0,(o|0)==0)break;if(o>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[I+20>>2]=o,E_[o+24>>2]=I;break}while(0);do{if(!(P>>>0<16)){if(E_[L+4>>2]=t|3,E_[h+(t|4)>>2]=P|1,E_[h+(P+t)>>2]=P,o=P>>>3,P>>>0<256){f=o<<1,b=12712+(f<<2)|0,_=E_[3168]|0,u=1<<o;do{if((_&u|0)!=0){if(o=12712+(f+2<<2)|0,i=E_[o>>2]|0,i>>>0>=(E_[3172]|0)>>>0){H=i,U=o;break}return Bw(),0}E_[3168]=_|u,H=b,U=12712+(f+2<<2)|0}while(0);E_[U>>2]=l,E_[H+12>>2]=l,E_[h+(t+8)>>2]=H,E_[h+(t+12)>>2]=b;break}f=d,u=P>>>8;do if((u|0)==0)z=0;else{if(P>>>0>16777215){z=31;break}_=(u+1048320|0)>>>16&8,o=u<<_,i=(o+520192|0)>>>16&4,O=o<<i,o=(O+245760|0)>>>16&2,s=14-(i|_|o)+(O<<o>>>15)|0,z=P>>>((s+7|0)>>>0)&1|s<<1}while(0);if(u=12976+(z<<2)|0,E_[h+(t+28)>>2]=z,E_[h+(t+20)>>2]=0,E_[h+(t+16)>>2]=0,b=E_[3169]|0,s=1<<z,(b&s|0)==0){E_[3169]=b|s,E_[u>>2]=f,E_[h+(t+24)>>2]=u,E_[h+(t+12)>>2]=f,E_[h+(t+8)>>2]=f;break}for(Y=(z|0)==31?0:25-(z>>>1)|0,s=P<<Y,b=E_[u>>2]|0;;){if((E_[b+4>>2]&-8|0)==(P|0))break;if(V=b+16+(s>>>31<<2)|0,u=E_[V>>2]|0,(u|0)==0){Z=9014;break}s<<=1,b=u}if((Z|0)==9014){if(V>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[V>>2]=f,E_[h+(t+24)>>2]=b,E_[h+(t+12)>>2]=f,E_[h+(t+8)>>2]=f;break}if(s=b+8|0,u=E_[s>>2]|0,o=E_[3172]|0,b>>>0<o>>>0)return Bw(),0;if(u>>>0<o>>>0)return Bw(),0;E_[u+12>>2]=f,E_[s>>2]=f,E_[h+(t+8)>>2]=u,E_[h+(t+12)>>2]=b,E_[h+(t+24)>>2]=0;break}f=P+t|0,E_[L+4>>2]=f|3,o=h+(f+4)|0,E_[o>>2]=E_[o>>2]|1}while(0);if(h=L+8|0,(h|0)==0){c=t;break}return k=h,k|0}while(0);if(L=E_[3170]|0,c>>>0<=L>>>0)return V=L-c|0,P=E_[3173]|0,V>>>0>15?(Y=P,E_[3173]=Y+c,E_[3170]=V,E_[Y+(c+4)>>2]=V|1,E_[Y+L>>2]=V,E_[P+4>>2]=c|3):(E_[3170]=0,E_[3173]=0,E_[P+4>>2]=L|3,V=P+(L+4)|0,E_[V>>2]=E_[V>>2]|1),k=P+8|0,k|0;if(P=E_[3171]|0,c>>>0<P>>>0)return V=P-c|0,E_[3171]=V,P=E_[3174]|0,L=P,E_[3174]=L+c,E_[L+(c+4)>>2]=V|1,E_[P+4>>2]=c|3,k=P+8|0,k|0;do if((E_[3156]|0)==0){if(P=xw(30)|0,(P-1&P|0)==0){E_[3158]=P,E_[3157]=P,E_[3159]=-1,E_[3160]=-1,E_[3161]=0,E_[3279]=0,E_[3156]=(Ww(0)|0)&-16^1431655768;break}return Bw(),0}while(0);if(P=c+48|0,V=E_[3158]|0,L=c+47|0,Y=V+L|0,z=-V|0,V=Y&z,V>>>0<=c>>>0)return k=0,k|0;H=E_[3278]|0;do if((H|0)!=0){if(U=E_[3276]|0,I=U+V|0,!(I>>>0<=U>>>0|I>>>0>H>>>0))break;return k=0,k|0}while(0);e:do if((E_[3279]&4|0)==0){H=E_[3174]|0;r:do if((H|0)==0)Z=9044;else{for(I=H,U=13120;;){if(j=U|0,x=E_[j>>2]|0,x>>>0<=I>>>0&&(q=U+4|0,(x+(E_[q>>2]|0)|0)>>>0>I>>>0))break;if(x=E_[U+8>>2]|0,(x|0)==0){Z=9044;break r}U=x}if((U|0)==0){Z=9044;break}if(I=Y-(E_[3171]|0)&z,I>>>0>=2147483647){W=0;break}b=Mw(I|0)|0,f=(b|0)==((E_[j>>2]|0)+(E_[q>>2]|0)|0),K=f?b:-1,X=f?I:0,G=b,Q=I,Z=9053}while(0);do if((Z|0)==9044){if(H=Mw(0)|0,(H|0)==-1){W=0;break}if(t=H,I=E_[3157]|0,b=I-1|0,J=(b&t|0)==0?V:V-t+(b+t&-I)|0,I=E_[3276]|0,t=I+J|0,!(J>>>0>c>>>0&J>>>0<2147483647)){W=0;break}if(b=E_[3278]|0,(b|0)!=0&&t>>>0<=I>>>0|t>>>0>b>>>0){W=0;break}b=Mw(J|0)|0,t=(b|0)==(H|0),K=t?H:-1,X=t?J:0,G=b,Q=J,Z=9053}while(0);r:do if((Z|0)==9053){if(b=-Q|0,(K|0)!=-1){$=X,er=K,Z=9064;break e}do{if((G|0)!=-1&Q>>>0<2147483647&Q>>>0<P>>>0){if(t=E_[3158]|0,H=L-Q+t&-t,H>>>0>=2147483647){rr=Q;break}if((Mw(H|0)|0)==-1){Mw(b|0)|0,W=X;break r}rr=H+Q|0;break}rr=Q}while(0);if((G|0)!=-1){$=rr,er=G,Z=9064;break e}W=X}while(0);E_[3279]=E_[3279]|4,ir=W,Z=9061}else ir=0,Z=9061;while(0);do if((Z|0)==9061){if(V>>>0>=2147483647)break;if(W=Mw(V|0)|0,G=Mw(0)|0,!((G|0)!=-1&(W|0)!=-1&W>>>0<G>>>0))break;rr=G-W|0,G=rr>>>0>(c+40|0)>>>0,X=G?W:-1,(X|0)!=-1&&($=G?rr:ir,er=X,Z=9064)}while(0);do if((Z|0)==9064){ir=(E_[3276]|0)+$|0,E_[3276]=ir,ir>>>0>(E_[3277]|0)>>>0&&(E_[3277]=ir),ir=E_[3174]|0;e:do{if((ir|0)!=0){for(V=13120;;){if(ar=E_[V>>2]|0,tr=V+4|0,nr=E_[tr>>2]|0,(er|0)==(ar+nr|0)){Z=9076;break}if(rr=E_[V+8>>2]|0,(rr|0)==0)break;V=rr}do if((Z|0)==9076){if((E_[V+12>>2]&8|0)!=0)break;if(rr=ir,!(rr>>>0>=ar>>>0&rr>>>0<er>>>0))break;E_[tr>>2]=nr+$,rr=E_[3174]|0,X=(E_[3171]|0)+$|0,G=rr,W=rr+8|0,or=(W&7|0)==0?0:-W&7,W=X-or|0,E_[3174]=G+or,E_[3171]=W,E_[G+(or+4)>>2]=W|1,E_[G+(X+4)>>2]=40,E_[3175]=E_[3160];break e}while(0);for(er>>>0<(E_[3172]|0)>>>0&&(E_[3172]=er),V=er+$|0,X=13120;;){if(ur=X|0,(E_[ur>>2]|0)==(V|0)){Z=9086;break}if(G=E_[X+8>>2]|0,(G|0)==0)break;X=G}do if((Z|0)==9086){if((E_[X+12>>2]&8|0)!=0)break;E_[ur>>2]=er,V=X+4|0,E_[V>>2]=(E_[V>>2]|0)+$,V=er+8|0,lr=(V&7|0)==0?0:-V&7,V=er+($+8)|0,sr=(V&7|0)==0?0:-V&7,V=er+(sr+$)|0,G=V,W=lr+c|0,rr=er+W|0,Q=rr,L=V-(er+lr)-c|0,E_[er+(lr+4)>>2]=c|3;do{if((G|0)!=(E_[3174]|0)){if((G|0)==(E_[3173]|0)){P=(E_[3170]|0)+L|0,E_[3170]=P,E_[3173]=Q,E_[er+(W+4)>>2]=P|1,E_[er+(P+W)>>2]=P;break}if(P=$+4|0,K=E_[er+(P+sr)>>2]|0,(K&3|0)==1){J=K&-8,q=K>>>3;r:do{if(!(K>>>0<256)){Y=V,b=E_[er+((sr|24)+$)>>2]|0,U=E_[er+($+12+sr)>>2]|0;do{if((U|0)==(Y|0)){if(H=sr|16,t=er+(P+H)|0,I=E_[t>>2]|0,(I|0)==0){if(f=er+(H+$)|0,H=E_[f>>2]|0,(H|0)==0){kr=0;break}cr=H,dr=f}else cr=I,dr=t;for(;;)if(t=cr+20|0,I=E_[t>>2]|0,(I|0)==0){if(t=cr+16|0,I=E_[t>>2]|0,(I|0)==0)break;cr=I,dr=t}else cr=I,dr=t;if(dr>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[dr>>2]=0,kr=cr;break}if(t=E_[er+((sr|8)+$)>>2]|0,t>>>0<(E_[3172]|0)>>>0)return Bw(),0;if(I=t+12|0,(E_[I>>2]|0)!=(Y|0))return Bw(),0;if(f=U+8|0,(E_[f>>2]|0)==(Y|0)){E_[I>>2]=U,E_[f>>2]=t,kr=U;break}return Bw(),0}while(0);if((b|0)==0)break;U=er+($+28+sr)|0,j=12976+(E_[U>>2]<<2)|0;do{if((Y|0)==(E_[j>>2]|0)){if(E_[j>>2]=kr,(kr|0)!=0)break;E_[3169]=E_[3169]&~(1<<E_[U>>2]);break r}if(b>>>0<(E_[3172]|0)>>>0)return Bw(),0;if(z=b+16|0,(E_[z>>2]|0)==(Y|0)?E_[z>>2]=kr:E_[b+20>>2]=kr,(kr|0)==0)break r}while(0);if(kr>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[kr+24>>2]=b,Y=sr|16,U=E_[er+(Y+$)>>2]|0;do if((U|0)!=0){if(U>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[kr+16>>2]=U,E_[U+24>>2]=kr;break}while(0);if(U=E_[er+(P+Y)>>2]|0,(U|0)==0)break;if(U>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[kr+20>>2]=U,E_[U+24>>2]=kr;break}j=E_[er+((sr|8)+$)>>2]|0,z=E_[er+($+12+sr)>>2]|0,Y=12712+(q<<1<<2)|0;do if((j|0)!=(Y|0)){if(j>>>0<(E_[3172]|0)>>>0)return Bw(),0;if((E_[j+12>>2]|0)==(G|0))break;return Bw(),0}while(0);if((z|0)==(j|0)){E_[3168]=E_[3168]&~(1<<q);break}do{if((z|0)!=(Y|0)){if(z>>>0<(E_[3172]|0)>>>0)return Bw(),0;if(b=z+8|0,(E_[b>>2]|0)==(G|0)){br=b;break}return Bw(),0}br=z+8|0}while(0);E_[j+12>>2]=z,E_[br>>2]=j}while(0);hr=er+((J|sr)+$)|0,_r=J+L|0}else hr=G,_r=L;if(P=hr+4|0,E_[P>>2]=E_[P>>2]&-2,E_[er+(W+4)>>2]=_r|1,E_[er+(_r+W)>>2]=_r,P=_r>>>3,_r>>>0<256){q=P<<1,K=12712+(q<<2)|0,U=E_[3168]|0,b=1<<P;do{if((U&b|0)!=0){if(P=12712+(q+2<<2)|0,j=E_[P>>2]|0,j>>>0>=(E_[3172]|0)>>>0){wr=j,vr=P;break}return Bw(),0}E_[3168]=U|b,wr=K,vr=12712+(q+2<<2)|0}while(0);E_[vr>>2]=Q,E_[wr+12>>2]=Q,E_[er+(W+8)>>2]=wr,E_[er+(W+12)>>2]=K;break}q=rr,b=_r>>>8;do if((b|0)==0)mr=0;else{if(_r>>>0>16777215){mr=31;break}U=(b+1048320|0)>>>16&8,J=b<<U,P=(J+520192|0)>>>16&4,j=J<<P,J=(j+245760|0)>>>16&2,z=14-(P|U|J)+(j<<J>>>15)|0,mr=_r>>>((z+7|0)>>>0)&1|z<<1}while(0);if(b=12976+(mr<<2)|0,E_[er+(W+28)>>2]=mr,E_[er+(W+20)>>2]=0,E_[er+(W+16)>>2]=0,K=E_[3169]|0,z=1<<mr,(K&z|0)==0){E_[3169]=K|z,E_[b>>2]=q,E_[er+(W+24)>>2]=b,E_[er+(W+12)>>2]=q,E_[er+(W+8)>>2]=q;break}for(pr=(mr|0)==31?0:25-(mr>>>1)|0,z=_r<<pr,K=E_[b>>2]|0;;){if((E_[K+4>>2]&-8|0)==(_r|0))break;if(Er=K+16+(z>>>31<<2)|0,b=E_[Er>>2]|0,(b|0)==0){Z=9159;break}z<<=1,K=b}if((Z|0)==9159){if(Er>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[Er>>2]=q,E_[er+(W+24)>>2]=K,E_[er+(W+12)>>2]=q,E_[er+(W+8)>>2]=q;break}if(z=K+8|0,b=E_[z>>2]|0,J=E_[3172]|0,K>>>0<J>>>0)return Bw(),0;if(b>>>0<J>>>0)return Bw(),0;E_[b+12>>2]=q,E_[z>>2]=q,E_[er+(W+8)>>2]=b,E_[er+(W+12)>>2]=K,E_[er+(W+24)>>2]=0;break}P=(E_[3171]|0)+L|0,E_[3171]=P,E_[3174]=Q,E_[er+(W+4)>>2]=P|1}while(0);return k=er+(lr|8)|0,k|0}while(0);for(X=ir,W=13120;;){if(Sr=E_[W>>2]|0,Sr>>>0<=X>>>0&&(gr=E_[W+4>>2]|0,yr=Sr+gr|0,yr>>>0>X>>>0))break;W=E_[W+8>>2]|0}if(W=Sr+(gr-39)|0,Ar=(W&7|0)==0?0:-W&7,W=Sr+(gr-47+Ar)|0,rr=W>>>0<(ir+16|0)>>>0?X:W,W=rr+8|0,Q=er+8|0,Or=(Q&7|0)==0?0:-Q&7,Q=$-40-Or|0,E_[3174]=er+Or,E_[3171]=Q,E_[er+(Or+4)>>2]=Q|1,E_[er+($-36)>>2]=40,E_[3175]=E_[3160],E_[rr+4>>2]=27,E_[W>>2]=E_[3280],E_[W+4>>2]=E_[3281],E_[W+8>>2]=E_[3282],E_[W+12>>2]=E_[3283],E_[3280]=er,E_[3281]=$,E_[3283]=0,E_[3282]=W,W=rr+28|0,E_[W>>2]=7,(rr+32|0)>>>0<yr>>>0)for(Q=W;;){if(W=Q+4|0,E_[W>>2]=7,!((Q+8|0)>>>0<yr>>>0))break;Q=W}if((rr|0)==(X|0))break;if(Q=rr-ir|0,W=X+(Q+4)|0,E_[W>>2]=E_[W>>2]&-2,E_[ir+4>>2]=Q|1,E_[X+Q>>2]=Q,W=Q>>>3,Q>>>0<256){L=W<<1,G=12712+(L<<2)|0,V=E_[3168]|0,b=1<<W;do{if((V&b|0)!=0){if(W=12712+(L+2<<2)|0,z=E_[W>>2]|0,z>>>0>=(E_[3172]|0)>>>0){Rr=z,Fr=W;break}return Bw(),0}E_[3168]=V|b,Rr=G,Fr=12712+(L+2<<2)|0}while(0);E_[Fr>>2]=ir,E_[Rr+12>>2]=ir,E_[ir+8>>2]=Rr,E_[ir+12>>2]=G;break}L=ir,b=Q>>>8;do if((b|0)==0)Mr=0;else{if(Q>>>0>16777215){Mr=31;break}V=(b+1048320|0)>>>16&8,X=b<<V,rr=(X+520192|0)>>>16&4,W=X<<rr,X=(W+245760|0)>>>16&2,z=14-(rr|V|X)+(W<<X>>>15)|0,Mr=Q>>>((z+7|0)>>>0)&1|z<<1}while(0);if(b=12976+(Mr<<2)|0,E_[ir+28>>2]=Mr,E_[ir+20>>2]=0,E_[ir+16>>2]=0,G=E_[3169]|0,z=1<<Mr,(G&z|0)==0){E_[3169]=G|z,E_[b>>2]=L,E_[ir+24>>2]=b,E_[ir+12>>2]=ir,E_[ir+8>>2]=ir;break}for(Nr=(Mr|0)==31?0:25-(Mr>>>1)|0,z=Q<<Nr,G=E_[b>>2]|0;;){if((E_[G+4>>2]&-8|0)==(Q|0))break;if(Dr=G+16+(z>>>31<<2)|0,b=E_[Dr>>2]|0,(b|0)==0){Z=9194;break}z<<=1,G=b}if((Z|0)==9194){if(Dr>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[Dr>>2]=L,E_[ir+24>>2]=G,E_[ir+12>>2]=ir,E_[ir+8>>2]=ir;break}if(z=G+8|0,Q=E_[z>>2]|0,b=E_[3172]|0,G>>>0<b>>>0)return Bw(),0;if(Q>>>0<b>>>0)return Bw(),0;E_[Q+12>>2]=L,E_[z>>2]=L,E_[ir+8>>2]=Q,E_[ir+12>>2]=G,E_[ir+24>>2]=0;break}V=E_[3172]|0,(V|0)==0|er>>>0<V>>>0&&(E_[3172]=er),E_[3280]=er,E_[3281]=$,E_[3283]=0,E_[3177]=E_[3156],E_[3176]=-1,V=0;do X=V<<1,rr=12712+(X<<2)|0,E_[12712+(X+3<<2)>>2]=rr,E_[12712+(X+2<<2)>>2]=rr,V=V+1|0;while(V>>>0<32);V=er+8|0,fr=(V&7|0)==0?0:-V&7,V=$-40-fr|0,E_[3174]=er+fr,E_[3171]=V,E_[er+(fr+4)>>2]=V|1,E_[er+($-36)>>2]=40,E_[3175]=E_[3160]}while(0);if(ir=E_[3171]|0,ir>>>0<=c>>>0)break;return Q=ir-c|0,E_[3171]=Q,ir=E_[3174]|0,z=ir,E_[3174]=z+c,E_[z+(c+4)>>2]=Q|1,E_[ir+4>>2]=c|3,k=ir+8|0,k|0}while(0);return E_[(Nw()|0)>>2]=12,k=0,k|0}function un(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0;if((e|0)!=0){r=e-8|0,i=r,f=E_[3172]|0,r>>>0<f>>>0&&Bw(),a=E_[e-4>>2]|0,t=a&3,(t|0)==1&&Bw(),n=a&-8,o=e+(n-8)|0,u=o;e:do if((a&1|0)==0){if(l=E_[r>>2]|0,(t|0)==0)return;if(s=-8-l|0,b=e+s|0,k=b,c=l+n|0,b>>>0<f>>>0&&Bw(),(k|0)==(E_[3173]|0)){if(d=e+(n-4)|0,(E_[d>>2]&3|0)!=3){h=k,_=c;break}return E_[3170]=c,E_[d>>2]=E_[d>>2]&-2,E_[e+(s+4)>>2]=c|1,void(E_[o>>2]=c)}if(d=l>>>3,l>>>0<256){l=E_[e+(s+8)>>2]|0,w=E_[e+(s+12)>>2]|0,v=12712+(d<<1<<2)|0;do if((l|0)!=(v|0)){if(l>>>0<f>>>0&&Bw(),(E_[l+12>>2]|0)==(k|0))break;Bw()}while(0);if((w|0)==(l|0)){E_[3168]=E_[3168]&~(1<<d),h=k,_=c;break}do if((w|0)==(v|0))m=w+8|0;else{if(w>>>0<f>>>0&&Bw(),p=w+8|0,(E_[p>>2]|0)==(k|0)){m=p;break}Bw()}while(0);E_[l+12>>2]=w,E_[m>>2]=l,h=k,_=c;break}v=b,d=E_[e+(s+24)>>2]|0,p=E_[e+(s+12)>>2]|0;do if((p|0)==(v|0)){if(E=e+(s+20)|0,S=E_[E>>2]|0,(S|0)==0){if(g=e+(s+16)|0,y=E_[g>>2]|0,(y|0)==0){A=0;break}O=y,R=g}else O=S,R=E;for(;;)if(E=O+20|0,S=E_[E>>2]|0,(S|0)==0){if(E=O+16|0,S=E_[E>>2]|0,(S|0)==0)break;O=S,R=E}else O=S,R=E;if(!(R>>>0<f>>>0)){E_[R>>2]=0,A=O;break}Bw()}else{if(E=E_[e+(s+8)>>2]|0,E>>>0<f>>>0&&Bw(),S=E+12|0,(E_[S>>2]|0)!=(v|0)&&Bw(),g=p+8|0,(E_[g>>2]|0)==(v|0)){E_[S>>2]=p,E_[g>>2]=E,A=p;break}Bw()}while(0);if((d|0)==0){h=k,_=c;break}p=e+(s+28)|0,b=12976+(E_[p>>2]<<2)|0;do{if((v|0)==(E_[b>>2]|0)){if(E_[b>>2]=A,(A|0)!=0)break;E_[3169]=E_[3169]&~(1<<E_[p>>2]),h=k,_=c;break e}if(d>>>0<(E_[3172]|0)>>>0&&Bw(),l=d+16|0,(E_[l>>2]|0)==(v|0)?E_[l>>2]=A:E_[d+20>>2]=A,(A|0)==0){h=k,_=c;break e}}while(0);A>>>0<(E_[3172]|0)>>>0&&Bw(),E_[A+24>>2]=d,v=E_[e+(s+16)>>2]|0;do if((v|0)!=0){if(!(v>>>0<(E_[3172]|0)>>>0)){E_[A+16>>2]=v,E_[v+24>>2]=A;break}Bw()}while(0);if(v=E_[e+(s+20)>>2]|0,(v|0)==0){h=k,_=c;break}if(!(v>>>0<(E_[3172]|0)>>>0)){E_[A+20>>2]=v,E_[v+24>>2]=A,h=k,_=c;break}Bw()}else h=i,_=n;while(0);i=h,i>>>0>=o>>>0&&Bw(),A=e+(n-4)|0,f=E_[A>>2]|0,(f&1|0)==0&&Bw();do{if((f&2|0)==0){if((u|0)==(E_[3174]|0)){if(O=(E_[3171]|0)+_|0,E_[3171]=O,E_[3174]=h,E_[h+4>>2]=O|1,(h|0)!=(E_[3173]|0))return;return E_[3173]=0,void(E_[3170]=0)}if((u|0)==(E_[3173]|0))return O=(E_[3170]|0)+_|0,E_[3170]=O,E_[3173]=h,E_[h+4>>2]=O|1,void(E_[i+O>>2]=O);O=(f&-8)+_|0,R=f>>>3;e:do if(f>>>0<256){m=E_[e+n>>2]|0,t=E_[e+(n|4)>>2]|0,r=12712+(R<<1<<2)|0;do if((m|0)!=(r|0)){if(m>>>0<(E_[3172]|0)>>>0&&Bw(),(E_[m+12>>2]|0)==(u|0))break;Bw()}while(0);if((t|0)==(m|0)){E_[3168]=E_[3168]&~(1<<R);break}do if((t|0)==(r|0))F=t+8|0;else{if(t>>>0<(E_[3172]|0)>>>0&&Bw(),a=t+8|0,(E_[a>>2]|0)==(u|0)){F=a;break}Bw()}while(0);E_[m+12>>2]=t,E_[F>>2]=m}else{r=o,a=E_[e+(n+16)>>2]|0,v=E_[e+(n|4)>>2]|0;do if((v|0)==(r|0)){if(d=e+(n+12)|0,p=E_[d>>2]|0,(p|0)==0){if(b=e+(n+8)|0,l=E_[b>>2]|0,(l|0)==0){M=0;break}N=l,D=b}else N=p,D=d;for(;;)if(d=N+20|0,p=E_[d>>2]|0,(p|0)==0){if(d=N+16|0,p=E_[d>>2]|0,(p|0)==0)break;N=p,D=d}else N=p,D=d;if(!(D>>>0<(E_[3172]|0)>>>0)){E_[D>>2]=0,M=N;break}Bw()}else{if(d=E_[e+n>>2]|0,d>>>0<(E_[3172]|0)>>>0&&Bw(),p=d+12|0,(E_[p>>2]|0)!=(r|0)&&Bw(),b=v+8|0,(E_[b>>2]|0)==(r|0)){E_[p>>2]=v,E_[b>>2]=d,M=v;break}Bw()}while(0);if((a|0)==0)break;v=e+(n+20)|0,m=12976+(E_[v>>2]<<2)|0;do{if((r|0)==(E_[m>>2]|0)){if(E_[m>>2]=M,(M|0)!=0)break;E_[3169]=E_[3169]&~(1<<E_[v>>2]);break e}if(a>>>0<(E_[3172]|0)>>>0&&Bw(),t=a+16|0,(E_[t>>2]|0)==(r|0)?E_[t>>2]=M:E_[a+20>>2]=M,(M|0)==0)break e}while(0);M>>>0<(E_[3172]|0)>>>0&&Bw(),E_[M+24>>2]=a,r=E_[e+(n+8)>>2]|0;do if((r|0)!=0){if(!(r>>>0<(E_[3172]|0)>>>0)){E_[M+16>>2]=r,E_[r+24>>2]=M;break}Bw()}while(0);if(r=E_[e+(n+12)>>2]|0,(r|0)==0)break;if(!(r>>>0<(E_[3172]|0)>>>0)){E_[M+20>>2]=r,E_[r+24>>2]=M;break}Bw()}while(0);if(E_[h+4>>2]=O|1,E_[i+O>>2]=O,(h|0)!=(E_[3173]|0)){C=O;break}return void(E_[3170]=O)}E_[A>>2]=f&-2,E_[h+4>>2]=_|1,E_[i+_>>2]=_,C=_}while(0);if(_=C>>>3,C>>>0<256){i=_<<1,f=12712+(i<<2)|0,A=E_[3168]|0,M=1<<_;do if((A&M|0)==0)E_[3168]=A|M,T=f,P=12712+(i+2<<2)|0;else{if(_=12712+(i+2<<2)|0,n=E_[_>>2]|0,n>>>0>=(E_[3172]|0)>>>0){T=n,P=_;break}Bw()}while(0);return E_[P>>2]=h,E_[T+12>>2]=h,E_[h+8>>2]=T,void(E_[h+12>>2]=f)}f=h,T=C>>>8;do if((T|0)==0)L=0;else{if(C>>>0>16777215){L=31;break}P=(T+1048320|0)>>>16&8,i=T<<P,M=(i+520192|0)>>>16&4,A=i<<M,i=(A+245760|0)>>>16&2,_=14-(M|P|i)+(A<<i>>>15)|0,L=C>>>((_+7|0)>>>0)&1|_<<1}while(0);T=12976+(L<<2)|0,E_[h+28>>2]=L,E_[h+20>>2]=0,E_[h+16>>2]=0,_=E_[3169]|0,i=1<<L;do if((_&i|0)==0)E_[3169]=_|i,E_[T>>2]=f,E_[h+24>>2]=T,E_[h+12>>2]=h,E_[h+8>>2]=h;else{for(I=(L|0)==31?0:25-(L>>>1)|0,A=C<<I,P=E_[T>>2]|0;;){if((E_[P+4>>2]&-8|0)==(C|0))break;if(x=P+16+(A>>>31<<2)|0,M=E_[x>>2]|0,(M|0)==0){B=9371;break}A<<=1,P=M}if((B|0)==9371){if(!(x>>>0<(E_[3172]|0)>>>0)){E_[x>>2]=f,E_[h+24>>2]=P,E_[h+12>>2]=h,E_[h+8>>2]=h;break}Bw()}if(A=P+8|0,O=E_[A>>2]|0,M=E_[3172]|0,P>>>0<M>>>0&&Bw(),!(O>>>0<M>>>0)){E_[O+12>>2]=f,E_[A>>2]=f,E_[h+8>>2]=O,E_[h+12>>2]=P,E_[h+24>>2]=0;break}Bw()}while(0);if(h=(E_[3176]|0)-1|0,E_[3176]=h,(h|0)==0){for(H=13128;;){if(h=E_[H>>2]|0,(h|0)==0)break;H=h+8|0}E_[3176]=-1}}}function ln(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0;return(e|0)==0?(i=on(r)|0,i|0):r>>>0>4294967231?(E_[(Nw()|0)>>2]=12,i=0,i|0):(f=r>>>0<11?16:r+11&-8,a=sn(e-8|0,f)|0,(a|0)!=0?(i=a+8|0,i|0):(a=on(r)|0,(a|0)==0?(i=0,i|0):(f=E_[e-4>>2]|0,t=(f&-8)-((f&3|0)==0?8:4)|0,f=t>>>0<r>>>0?t:r,yn(a|0,e|0,f)|0,un(e),i=a,i|0)))}function sn(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0;if(i=e+4|0,f=E_[i>>2]|0,a=f&-8,t=e,n=t+a|0,o=n,u=E_[3172]|0,t>>>0<u>>>0)return Bw(),0;if(l=f&3,!((l|0)!=1&t>>>0<n>>>0))return Bw(),0;if(s=t+(a|4)|0,b=E_[s>>2]|0,(b&1|0)==0)return Bw(),0;if((l|0)==0){if(r>>>0<256)return k=0,k|0;do if(a>>>0>=(r+4|0)>>>0){if((a-r|0)>>>0>E_[3158]<<1>>>0)break;return k=e,k|0}while(0);return k=0,k|0}if(a>>>0>=r>>>0)return l=a-r|0,l>>>0<=15?(k=e,k|0):(E_[i>>2]=f&1|r|2,E_[t+(r+4)>>2]=l|3,E_[s>>2]=E_[s>>2]|1,bn(t+r|0,l),k=e,k|0);if((o|0)==(E_[3174]|0))return l=(E_[3171]|0)+a|0,l>>>0<=r>>>0?(k=0,k|0):(s=l-r|0,E_[i>>2]=f&1|r|2,E_[t+(r+4)>>2]=s|1,E_[3174]=t+r,E_[3171]=s,k=e,k|0);if((o|0)==(E_[3173]|0))return s=(E_[3170]|0)+a|0,s>>>0<r>>>0?(k=0,k|0):(l=s-r|0,l>>>0>15?(E_[i>>2]=f&1|r|2,E_[t+(r+4)>>2]=l|1,E_[t+s>>2]=l,c=t+(s+4)|0,E_[c>>2]=E_[c>>2]&-2,d=t+r|0,h=l):(E_[i>>2]=f&1|s|2,f=t+(s+4)|0,E_[f>>2]=E_[f>>2]|1,d=0,h=0),E_[3170]=h,E_[3173]=d,k=e,k|0);if((b&2|0)!=0)return k=0,k|0;if(d=(b&-8)+a|0,d>>>0<r>>>0)return k=0,k|0;h=d-r|0,f=b>>>3;e:do{if(!(b>>>0<256)){c=n,w=E_[t+(a+24)>>2]|0,v=E_[t+(a+12)>>2]|0;do{if((v|0)==(c|0)){if(m=t+(a+20)|0,p=E_[m>>2]|0,(p|0)==0){if(E=t+(a+16)|0,S=E_[E>>2]|0,(S|0)==0){g=0;break}y=S,A=E}else y=p,A=m;for(;;)if(m=y+20|0,p=E_[m>>2]|0,(p|0)==0){if(m=y+16|0,p=E_[m>>2]|0,(p|0)==0)break;y=p,A=m}else y=p,A=m;if(A>>>0<u>>>0)return Bw(),0;E_[A>>2]=0,g=y;break}if(m=E_[t+(a+8)>>2]|0,m>>>0<u>>>0)return Bw(),0;if(p=m+12|0,(E_[p>>2]|0)!=(c|0))return Bw(),0;if(E=v+8|0,(E_[E>>2]|0)==(c|0)){E_[p>>2]=v,E_[E>>2]=m,g=v;break}return Bw(),0}while(0);if((w|0)==0)break;v=t+(a+28)|0,s=12976+(E_[v>>2]<<2)|0;do{if((c|0)==(E_[s>>2]|0)){if(E_[s>>2]=g,(g|0)!=0)break;E_[3169]=E_[3169]&~(1<<E_[v>>2]);break e}if(w>>>0<(E_[3172]|0)>>>0)return Bw(),0;if(l=w+16|0,(E_[l>>2]|0)==(c|0)?E_[l>>2]=g:E_[w+20>>2]=g,(g|0)==0)break e}while(0);if(g>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[g+24>>2]=w,c=E_[t+(a+16)>>2]|0;do if((c|0)!=0){if(c>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[g+16>>2]=c,E_[c+24>>2]=g;break}while(0);if(c=E_[t+(a+20)>>2]|0,(c|0)==0)break;if(c>>>0<(E_[3172]|0)>>>0)return Bw(),0;E_[g+20>>2]=c,E_[c+24>>2]=g;break}s=E_[t+(a+8)>>2]|0,l=E_[t+(a+12)>>2]|0,c=12712+(f<<1<<2)|0;do if((s|0)!=(c|0)){if(s>>>0<u>>>0)return Bw(),0;if((E_[s+12>>2]|0)==(o|0))break;return Bw(),0}while(0);if((l|0)==(s|0)){E_[3168]=E_[3168]&~(1<<f);break}do{if((l|0)!=(c|0)){if(l>>>0<u>>>0)return Bw(),0;if(w=l+8|0,(E_[w>>2]|0)==(o|0)){_=w;break}return Bw(),0}_=l+8|0}while(0);E_[s+12>>2]=l,E_[_>>2]=s}while(0);return h>>>0<16?(E_[i>>2]=d|E_[i>>2]&1|2,g=t+(d|4)|0,E_[g>>2]=E_[g>>2]|1,k=e,k|0):(E_[i>>2]=E_[i>>2]&1|r|2,E_[t+(r+4)>>2]=h|3,i=t+(d|4)|0,E_[i>>2]=E_[i>>2]|1,bn(t+r|0,h),k=e,k|0)}function bn(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0;i=e,f=i+r|0,a=f,t=E_[e+4>>2]|0;e:do if((t&1|0)==0){if(n=E_[e>>2]|0,(t&3|0)==0)return;if(o=i+(-n|0)|0,u=o,l=n+r|0,s=E_[3172]|0,o>>>0<s>>>0&&Bw(),(u|0)==(E_[3173]|0)){if(b=i+(r+4)|0,(E_[b>>2]&3|0)!=3){k=u,c=l;break}return E_[3170]=l,E_[b>>2]=E_[b>>2]&-2,E_[i+(4-n)>>2]=l|1,void(E_[f>>2]=l)}if(b=n>>>3,n>>>0<256){d=E_[i+(8-n)>>2]|0,h=E_[i+(12-n)>>2]|0,_=12712+(b<<1<<2)|0;do if((d|0)!=(_|0)){if(d>>>0<s>>>0&&Bw(),(E_[d+12>>2]|0)==(u|0))break;Bw()}while(0);if((h|0)==(d|0)){E_[3168]=E_[3168]&~(1<<b),k=u,c=l;break}do if((h|0)==(_|0))w=h+8|0;else{if(h>>>0<s>>>0&&Bw(),v=h+8|0,(E_[v>>2]|0)==(u|0)){w=v;break}Bw()}while(0);E_[d+12>>2]=h,E_[w>>2]=d,k=u,c=l;break}_=o,b=E_[i+(24-n)>>2]|0,v=E_[i+(12-n)>>2]|0;do if((v|0)==(_|0)){if(m=16-n|0,p=i+(m+4)|0,E=E_[p>>2]|0,(E|0)==0){if(S=i+m|0,m=E_[S>>2]|0,(m|0)==0){g=0;break}y=m,A=S}else y=E,A=p;for(;;)if(p=y+20|0,E=E_[p>>2]|0,(E|0)==0){if(p=y+16|0,E=E_[p>>2]|0,(E|0)==0)break;y=E,A=p}else y=E,A=p;if(!(A>>>0<s>>>0)){E_[A>>2]=0,g=y;break}Bw()}else{if(p=E_[i+(8-n)>>2]|0,p>>>0<s>>>0&&Bw(),E=p+12|0,(E_[E>>2]|0)!=(_|0)&&Bw(),S=v+8|0,(E_[S>>2]|0)==(_|0)){E_[E>>2]=v,E_[S>>2]=p,g=v;break}Bw()}while(0);if((b|0)==0){k=u,c=l;break}v=i+(28-n)|0,s=12976+(E_[v>>2]<<2)|0;do{if((_|0)==(E_[s>>2]|0)){if(E_[s>>2]=g,(g|0)!=0)break;E_[3169]=E_[3169]&~(1<<E_[v>>2]),k=u,c=l;break e}if(b>>>0<(E_[3172]|0)>>>0&&Bw(),o=b+16|0,(E_[o>>2]|0)==(_|0)?E_[o>>2]=g:E_[b+20>>2]=g,(g|0)==0){k=u,c=l;break e}}while(0);g>>>0<(E_[3172]|0)>>>0&&Bw(),E_[g+24>>2]=b,_=16-n|0,v=E_[i+_>>2]|0;do if((v|0)!=0){if(!(v>>>0<(E_[3172]|0)>>>0)){E_[g+16>>2]=v,E_[v+24>>2]=g;break}Bw()}while(0);if(v=E_[i+(_+4)>>2]|0,(v|0)==0){k=u,c=l;break}if(!(v>>>0<(E_[3172]|0)>>>0)){E_[g+20>>2]=v,E_[v+24>>2]=g,k=u,c=l;break}Bw()}else k=e,c=r;while(0);e=E_[3172]|0,f>>>0<e>>>0&&Bw(),g=i+(r+4)|0,y=E_[g>>2]|0;do{if((y&2|0)==0){if((a|0)==(E_[3174]|0)){if(A=(E_[3171]|0)+c|0,E_[3171]=A,E_[3174]=k,E_[k+4>>2]=A|1,(k|0)!=(E_[3173]|0))return;return E_[3173]=0,void(E_[3170]=0)}if((a|0)==(E_[3173]|0))return A=(E_[3170]|0)+c|0,E_[3170]=A,E_[3173]=k,E_[k+4>>2]=A|1,void(E_[k+A>>2]=A);A=(y&-8)+c|0,w=y>>>3;e:do if(y>>>0<256){t=E_[i+(r+8)>>2]|0,v=E_[i+(r+12)>>2]|0,n=12712+(w<<1<<2)|0;do if((t|0)!=(n|0)){if(t>>>0<e>>>0&&Bw(),(E_[t+12>>2]|0)==(a|0))break;Bw()}while(0);if((v|0)==(t|0)){E_[3168]=E_[3168]&~(1<<w);break}do if((v|0)==(n|0))O=v+8|0;else{if(v>>>0<e>>>0&&Bw(),b=v+8|0,(E_[b>>2]|0)==(a|0)){O=b;break}Bw()}while(0);E_[t+12>>2]=v,E_[O>>2]=t}else{n=f,b=E_[i+(r+24)>>2]|0,s=E_[i+(r+12)>>2]|0;do if((s|0)==(n|0)){if(o=i+(r+20)|0,d=E_[o>>2]|0,(d|0)==0){if(h=i+(r+16)|0,p=E_[h>>2]|0,(p|0)==0){R=0;break}F=p,M=h}else F=d,M=o;for(;;)if(o=F+20|0,d=E_[o>>2]|0,(d|0)==0){if(o=F+16|0,d=E_[o>>2]|0,(d|0)==0)break;F=d,M=o}else F=d,M=o;if(!(M>>>0<e>>>0)){E_[M>>2]=0,R=F;break}Bw()}else{if(o=E_[i+(r+8)>>2]|0,o>>>0<e>>>0&&Bw(),d=o+12|0,(E_[d>>2]|0)!=(n|0)&&Bw(),h=s+8|0,(E_[h>>2]|0)==(n|0)){E_[d>>2]=s,E_[h>>2]=o,R=s;break}Bw()}while(0);if((b|0)==0)break;s=i+(r+28)|0,t=12976+(E_[s>>2]<<2)|0;do{if((n|0)==(E_[t>>2]|0)){if(E_[t>>2]=R,(R|0)!=0)break;E_[3169]=E_[3169]&~(1<<E_[s>>2]);break e}if(b>>>0<(E_[3172]|0)>>>0&&Bw(),v=b+16|0,(E_[v>>2]|0)==(n|0)?E_[v>>2]=R:E_[b+20>>2]=R,(R|0)==0)break e}while(0);R>>>0<(E_[3172]|0)>>>0&&Bw(),E_[R+24>>2]=b,n=E_[i+(r+16)>>2]|0;do if((n|0)!=0){if(!(n>>>0<(E_[3172]|0)>>>0)){E_[R+16>>2]=n,E_[n+24>>2]=R;break}Bw()}while(0);if(n=E_[i+(r+20)>>2]|0,(n|0)==0)break;if(!(n>>>0<(E_[3172]|0)>>>0)){E_[R+20>>2]=n,E_[n+24>>2]=R;break}Bw()}while(0);if(E_[k+4>>2]=A|1,E_[k+A>>2]=A,(k|0)!=(E_[3173]|0)){N=A;break}return void(E_[3170]=A)}E_[g>>2]=y&-2,E_[k+4>>2]=c|1,E_[k+c>>2]=c,N=c}while(0);if(c=N>>>3,N>>>0<256){y=c<<1,g=12712+(y<<2)|0,R=E_[3168]|0,r=1<<c;do if((R&r|0)==0)E_[3168]=R|r,D=g,C=12712+(y+2<<2)|0;else{if(c=12712+(y+2<<2)|0,i=E_[c>>2]|0,i>>>0>=(E_[3172]|0)>>>0){D=i,C=c;break}Bw()}while(0);return E_[C>>2]=k,E_[D+12>>2]=k,E_[k+8>>2]=D,void(E_[k+12>>2]=g)}g=k,D=N>>>8;do if((D|0)==0)T=0;else{if(N>>>0>16777215){T=31;break}C=(D+1048320|0)>>>16&8,y=D<<C,r=(y+520192|0)>>>16&4,R=y<<r,y=(R+245760|0)>>>16&2,c=14-(r|C|y)+(R<<y>>>15)|0,T=N>>>((c+7|0)>>>0)&1|c<<1}while(0);if(D=12976+(T<<2)|0,E_[k+28>>2]=T,E_[k+20>>2]=0,E_[k+16>>2]=0,c=E_[3169]|0,y=1<<T,(c&y|0)==0)return E_[3169]=c|y,E_[D>>2]=g,E_[k+24>>2]=D,E_[k+12>>2]=k,void(E_[k+8>>2]=k);for(P=(T|0)==31?0:25-(T>>>1)|0,T=N<<P,P=E_[D>>2]|0;;){if((E_[P+4>>2]&-8|0)==(N|0))break;if(L=P+16+(T>>>31<<2)|0,D=E_[L>>2]|0,(D|0)==0){I=9651;break}T<<=1,P=D}return(I|0)==9651?(L>>>0<(E_[3172]|0)>>>0&&Bw(),E_[L>>2]=g,E_[k+24>>2]=P,E_[k+12>>2]=k,void(E_[k+8>>2]=k)):(L=P+8|0,I=E_[L>>2]|0,T=E_[3172]|0,P>>>0<T>>>0&&Bw(),I>>>0<T>>>0&&Bw(),E_[I+12>>2]=g,E_[L>>2]=g,E_[k+8>>2]=I,E_[k+12>>2]=P,void(E_[k+24>>2]=0))}function kn(e){e|=0;var r=0,i=0,f=0;for(r=(e|0)==0?1:e;;){if(i=on(r)|0,(i|0)!=0){f=9695;break}if(U_=E_[4150]|0,E_[4150]=U_+0,e=U_,(e|0)==0)break;tv[e&1]()}return(f|0)==9695?i|0:(i=Yw(4)|0,E_[i>>2]=5280,gw(i|0,11008,36),0)}function cn(e,r){return e|=0,r|=0,kn(e)|0}function dn(e){return e|=0,kn(e)|0}function hn(e){e|=0,(e|0)!=0&&un(e)}function _n(e){e|=0,hn(e)}function wn(e){e|=0,hn(e)}function vn(e){e|=0}function mn(e){return e|=0,2176}function pn(){var e=0;e=Yw(4)|0,E_[e>>2]=5280,gw(e|0,11008,36)}function En(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0;for(i=e;;){if(f=i+1|0,(tw(m_[i]|0)|0)==0)break;i=f}for(a=m_[i]|0,(a<<24>>24|0)==43?(t=f,n=0):(a<<24>>24|0)==45?(t=f,n=1):(t=i,n=0),i=-1,f=0,a=t;;){if(o=m_[a]|0,((o<<24>>24)-48|0)>>>0<10)u=i;else{if(o<<24>>24!=46|(i|0)>-1)break;u=f}i=u,f=f+1|0,a=a+1|0}u=a+(-f|0)|0,t=(i|0)<0,l=((t^1)<<31>>31)+f|0,s=(l|0)>18,b=(s?-18:-l|0)+(t?f:i)|0,i=s?18:l;do{if((i|0)!=0){if((i|0)>9){for(l=u,s=i,f=0;;){if(t=m_[l]|0,d=l+1|0,t<<24>>24==46?(h=m_[d]|0,_=l+2|0):(h=t,_=d),w=(f*10|0)-48+(h<<24>>24)|0,d=s-1|0,!((d|0)>9))break;l=_,s=d,f=w}v=+(w|0)*1e9,m=9,p=_,E=9731}else(i|0)>0?(v=0,m=i,p=u,E=9731):(S=0,g=0);if((E|0)==9731){for(f=p,s=m,l=0;;){if(d=m_[f]|0,t=f+1|0,d<<24>>24==46?(y=m_[t]|0,A=f+2|0):(y=d,A=t),O=(l*10|0)-48+(y<<24>>24)|0,t=s-1|0,!((t|0)>0))break;f=A,s=t,l=O}S=+(O|0),g=v}R=g+S;do if((o<<24>>24|0)==69|(o<<24>>24|0)==101){if(l=a+1|0,s=m_[l]|0,(s<<24>>24|0)==45?(F=a+2|0,M=1):(s<<24>>24|0)==43?(F=a+2|0,M=0):(F=l,M=0),l=m_[F]|0,!(((l<<24>>24)-48|0)>>>0<10)){T=0,P=F,L=M;break}for(N=F,D=0,C=l;;){if(l=(D*10|0)-48+(C<<24>>24)|0,s=N+1|0,f=m_[s]|0,!(((f<<24>>24)-48|0)>>>0<10)){T=l,P=s,L=M;break}N=s,D=l,C=f}}else T=0,P=a,L=0;while(0);if(s=b+((L|0)==0?T:-T|0)|0,l=(s|0)<0?-s|0:s,(l|0)>511?(E_[(Nw()|0)>>2]=34,I=1,x=8,B=511,E=9748):(l|0)==0?H=1:(I=1,x=8,B=l,E=9748),(E|0)==9748)for(;;){if(E=0,U=(B&1|0)==0?I:I*+A_[x>>3],l=B>>1,(l|0)==0){H=U;break}I=U,x=x+8|0,B=l,E=9748}if((s|0)>-1){k=P,c=R*H;break}k=P,c=R/H;break}k=e,c=0}while(0);return(r|0)!=0&&(E_[r>>2]=k),(n|0)==0?(z=c,+z):(z=-0-c,+z)}function Sn(e,r,i){return e|=0,r|=0,i|=0,+ +En(e,r)}function gn(e){e|=0;var r=0;for(r=e;m_[r]|0;)r=r+1|0;return r-e|0}function yn(e,r,i){e|=0,r|=0,i|=0;var f=0;if(f=e|0,(e&3)==(r&3)){for(;e&3;){if((i|0)==0)return f|0;m_[e]=m_[r]|0,e=e+1|0,r=r+1|0,i=i-1|0}for(;(i|0)>=4;)E_[e>>2]=E_[r>>2],e=e+4|0,r=r+4|0,i=i-4|0}for(;(i|0)>0;)m_[e]=m_[r]|0,e=e+1|0,r=r+1|0,i=i-1|0;return f|0}function An(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0;
if(f=e+i|0,(i|0)>=20){if(r&=255,a=e&3,t=r|r<<8|r<<16|r<<24,n=f&-4,a)for(a=e+4-a|0;(e|0)<(a|0);)m_[e]=r,e=e+1|0;for(;(e|0)<(n|0);)E_[e>>2]=t,e=e+4|0}for(;(e|0)<(f|0);)m_[e]=r,e=e+1|0;return e-i|0}function On(e,r,i){e|=0,r|=0,i|=0;var f=0;if((r|0)<(e|0)&(e|0)<(r+i|0)){for(f=e,r=r+i|0,e=e+i|0;(i|0)>0;)e=e-1|0,r=r-1|0,i=i-1|0,m_[e]=m_[r]|0;e=f}else yn(e,r,i)|0;return e|0}function Rn(e){return e|=0,(e|0)<65?e|0:(e|0)>90?e|0:e-65+97|0}function Fn(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0;return a=e+i>>>0,z_=r+f+(a>>>0<e>>>0|0)>>>0,a|0|0}function Mn(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0;return a=r-f>>>0,a=r-f-(i>>>0>e>>>0|0)>>>0,z_=a,e-i>>>0|0|0}function Nn(e,r,i){return e|=0,r|=0,i|=0,(i|0)<32?(z_=r<<i|(e&(1<<i)-1<<32-i)>>>32-i,e<<i):(z_=e<<i-32,0)}function Dn(e){e|=0;var r=0;return r=m_[M_+(e>>>24)|0]|0,(r|0)<8?r|0:(r=m_[M_+(e>>16&255)|0]|0,(r|0)<8?r+8|0:(r=m_[M_+(e>>8&255)|0]|0,(r|0)<8?r+16|0:(m_[M_+(e&255)|0]|0)+24|0))}function Cn(e){e|=0;var r=0;return r=m_[F_+(e&255)|0]|0,(r|0)<8?r|0:(r=m_[F_+(e>>8&255)|0]|0,(r|0)<8?r+8|0:(r=m_[F_+(e>>16&255)|0]|0,(r|0)<8?r+16|0:(m_[F_+(e>>>24)|0]|0)+24|0))}function Tn(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0;return i=e&65535,f=r&65535,a=J_(f,i)|0,t=e>>>16,e=(a>>>16)+(J_(f,t)|0)|0,f=r>>>16,r=J_(f,i)|0,z_=(e>>>16)+(J_(f,t)|0)+(((e&65535)+r|0)>>>16)|0,e+r<<16|a&65535|0|0}function Pn(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0;return a=r>>31|((r|0)<0?-1:0)<<1,t=((r|0)<0?-1:0)>>31|((r|0)<0?-1:0)<<1,n=f>>31|((f|0)<0?-1:0)<<1,o=((f|0)<0?-1:0)>>31|((f|0)<0?-1:0)<<1,u=Mn(a^e,t^r,a,t)|0,r=z_,e=n^a,a=o^t,t=Mn((Ih(u,r,Mn(n^i,o^f,n,o)|0,z_,0)|0)^e,z_^a,e,a)|0,z_=z_,t|0}function Ln(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0;return a=O_,O_=O_+8|0,t=a|0,n=r>>31|((r|0)<0?-1:0)<<1,o=((r|0)<0?-1:0)>>31|((r|0)<0?-1:0)<<1,u=f>>31|((f|0)<0?-1:0)<<1,l=((f|0)<0?-1:0)>>31|((f|0)<0?-1:0)<<1,s=Mn(n^e,o^r,n,o)|0,r=z_,e=Mn(u^i,l^f,u,l)|0,Ih(s,r,e,z_,t)|0,e=Mn(E_[t>>2]^n,E_[t+4>>2]^o,n,o)|0,o=z_,O_=a,z_=o,e|0}function In(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0;return a=e,e=i,i=Tn(a,e)|0,t=z_,z_=(J_(r,e)|0)+(J_(f,a)|0)+t|t&0,i|0|0|0}function xn(e){e|=0;var r=0;return r=O_,O_=O_+e|0,O_=O_+7&-8,r|0}function Bn(){return O_|0}function Hn(e){e|=0,O_=e}function Un(e,r){e|=0,r|=0,(x_|0)==0&&(x_=e,B_=r)}function zn(e){e|=0,z_=e}function Yn(e){e|=0,Y_=e}function Vn(e){e|=0,V_=e}function Zn(e){e|=0,Z_=e}function jn(e){e|=0,j_=e}function qn(e){e|=0,q_=e}function Wn(e){e|=0,W_=e}function Kn(e){e|=0,K_=e}function Xn(e){e|=0,X_=e}function Gn(e){e|=0,G_=e}function Qn(){E_[2748]=D_+8,E_[2750]=D_+8,E_[2752]=C_+8,E_[2756]=C_+8,E_[2760]=C_+8,E_[2764]=C_+8,E_[2768]=C_+8,E_[2772]=D_+8,E_[2806]=C_+8,E_[2810]=C_+8,E_[2874]=C_+8,E_[2878]=C_+8,E_[2898]=D_+8,E_[2900]=C_+8,E_[2936]=C_+8,E_[2940]=C_+8,E_[2976]=C_+8,E_[2980]=C_+8,E_[3e3]=D_+8,E_[3002]=D_+8,E_[3004]=C_+8,E_[3008]=C_+8,E_[3012]=C_+8,E_[3016]=D_+8,E_[3018]=D_+8,E_[3020]=D_+8,E_[3022]=D_+8,E_[3024]=D_+8,E_[3026]=D_+8,E_[3028]=D_+8,E_[3054]=C_+8,E_[3058]=D_+8,E_[3060]=C_+8,E_[3064]=C_+8,E_[3068]=C_+8,E_[3072]=D_+8,E_[3074]=D_+8,E_[3076]=D_+8,E_[3078]=D_+8,E_[3112]=D_+8,E_[3114]=D_+8,E_[3116]=D_+8,E_[3118]=C_+8,E_[3122]=C_+8,E_[3126]=C_+8,E_[3130]=C_+8,E_[3134]=C_+8,E_[3138]=C_+8,E_[3142]=D_+8}function Jn(){return 1360}function $n(){var e=0,r=0,i=0,f=0,a=0;return E_[3154]=-1,e=cn(48,15224)|0,(e|0)==0?(r=0,r|0):(i=e,f=e+20|0,An(e|0,0,20)|0,E_[e+24>>2]=0,E_[e+28>>2]=0,m_[e+32|0]=52,m_[e+33|0]=0,a=e+36|0,An(a|0,0,12)|0,E_[f>>2]=0,r=i,r|0)}function eo(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if((e|0)==0)return r=-1,r|0;if(i=E_[e+4>>2]|0,(i|0)!=0&&(wu(i),hn(i)),i=E_[e>>2]|0,(i|0)!=0){if(f=i+16|0,a=E_[f>>2]|0,(a|0)!=0){if(t=i+20|0,n=E_[t>>2]|0,(a|0)==(n|0))o=a;else{for(u=n;;){if(n=u-12|0,E_[t>>2]=n,l=E_[n>>2]|0,(l|0)==0?s=n:(n=u-12+4|0,(l|0)!=(E_[n>>2]|0)&&(E_[n>>2]=l),hn(l),s=E_[t>>2]|0),(a|0)==(s|0))break;u=s}o=E_[f>>2]|0}hn(o)}hn(i)}return(m_[e+36|0]&1)!=0&&hn(E_[e+44>>2]|0),hn(e),r=0,r|0}function ro(e){e|=0;var r=0;return r=(e|0)==0?1:E_[e+8>>2]|0,r|0}function io(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0;if(f=O_,O_=O_+8|0,(e|0)==0)return a=-1,O_=f,a|0;do if((r|0)!=0){if(t=E_[r+4>>2]|0,(t|0)<3)break;if(n=E_[r+8>>2]|0,(n|0)<3)break;if((2147483647/(n|0)|0|0)<(t|0))break;if((E_[r+12>>2]|0)>>>0>=3)break;if(t=kn(32)|0,Ro(t,r,i),n=e+4|0,o=E_[n>>2]|0,(o|0)!=0&&(wu(o),hn(o),E_[n>>2]=0),n=e|0,o=E_[n>>2]|0,(o|0)!=0){if(u=o+16|0,l=E_[u>>2]|0,(l|0)!=0){if(s=o+20|0,b=E_[s>>2]|0,(l|0)==(b|0))k=l;else{for(c=b;;){if(b=c-12|0,E_[s>>2]=b,d=E_[b>>2]|0,(d|0)==0?h=b:(b=c-12+4|0,(d|0)!=(E_[b>>2]|0)&&(E_[b>>2]=d),hn(d),h=E_[s>>2]|0),(l|0)==(h|0))break;c=h}k=E_[u>>2]|0}hn(k)}hn(o)}return E_[n>>2]=t,a=0,O_=f,a|0}while(0);return E_[e+8>>2]=1,a=-1,O_=f,a|0}function fo(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0;if(f=O_,O_=O_+8|0,(e|0)==0)return a=-1,O_=f,a|0;do if((r|0)!=0){if((m_[r]|0)==0)break;if(t=(uw(r|0,4792)|0)==0?E_[N_>>2]|0:Aw(r|0,4784)|0,(t|0)==0)break;if(n=kn(32)|0,yo(n,t,i),o=e+4|0,u=E_[o>>2]|0,(u|0)!=0&&(wu(u),hn(u),E_[o>>2]=0),o=e|0,u=E_[o>>2]|0,(u|0)!=0){if(l=u+16|0,s=E_[l>>2]|0,(s|0)!=0){if(b=u+20|0,k=E_[b>>2]|0,(s|0)==(k|0))c=s;else{for(d=k;;){if(k=d-12|0,E_[b>>2]=k,h=E_[k>>2]|0,(h|0)==0?_=k:(k=d-12+4|0,(h|0)!=(E_[k>>2]|0)&&(E_[k>>2]=h),hn(h),_=E_[b>>2]|0),(s|0)==(_|0))break;d=_}c=E_[l>>2]|0}hn(c)}hn(u)}return E_[o>>2]=n,d=0,ew(t|0)|0,a=d,O_=f,a|0}while(0);return E_[e+8>>2]=1,a=-1,O_=f,a|0}function ao(e,r){e|=0,r|=0;var i=0;return(e|0)==0?(i=-1,i|0):(E_[e>>2]|0)==0?(E_[e+8>>2]=3,i=-1,i|0):(m_[e+33|0]=r&1,i=0,i|0)}function to(e,r){e|=0,r|=0;var i=0,f=0;return(e|0)==0?(i=-1,i|0):(f=E_[e>>2]|0,(f|0)==0?(E_[e+8>>2]=3,i=-1,i|0):(r+1|0)>>>0>256?(E_[e+8>>2]=1,i=-1,i|0):(No(f,r),i=0,i|0))}function no(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0;do if((e|0)==0)i=-1;else{if(f=E_[e>>2]|0,(f|0)==0){E_[e+8>>2]=3,i=-1;break}if(a=Lo(f,r)|0,f=(a^1)<<31>>31,a){i=f;break}t=f,E_[e+8>>2]=1,i=t}while(0);return i|0}function oo(e,r){e|=0,r|=0;var i=0,f=0;if((e|0)==0)return i=-1,i|0;if((E_[e>>2]|0)==0)return E_[e+8>>2]=3,i=-1,i|0;do if((r|0)!=0){if((m_[r]|0)==0)break;if(f=(uw(r|0,4792)|0)==0?E_[L_>>2]|0:Aw(r|0,3256)|0,(f|0)==0)break;return E_[e+24>>2]=f,i=0,i|0}while(0);return E_[e+8>>2]=1,i=-1,i|0}function uo(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0;return(e|0)==0?(i=-1,i|0):(f=E_[e>>2]|0,(f|0)==0?(E_[e+8>>2]=3,i=-1,i|0):(a=cn(40,15224)|0,(a|0)==0?(E_[e+8>>2]=2,i=-1,i|0):(t=a,a=e+12|0,_u(t,f,12664,a,r),r=e+4|0,f=E_[r>>2]|0,(f|0)!=0&&(wu(f),hn(f)),E_[r>>2]=t,(E_[e+24>>2]|0)==0?(i=0,i|0):(mu(t,a),i=0,i|0))))}function lo(e){e|=0;var r=0,i=0;if((e|0)==0)return r=-1,r|0;do if((E_[e>>2]|0)!=0){if(i=E_[e+4>>2]|0,(i|0)==0)break;return r=(E_[i+32>>2]|0)-(E_[i+28>>2]|0)>>2,r|0}while(0);return E_[e+8>>2]=3,r=-1,r|0}function so(e,r){e|=0,r|=0;var i=0,f=0,a=0;if((e|0)==0)return i=-1,i|0;do if((E_[e>>2]|0)!=0){if(f=E_[e+4>>2]|0,(f|0)==0)break;do if((r|0)>=0){if(((E_[f+32>>2]|0)-(E_[f+28>>2]|0)>>2|0)<=(r|0))break;return a=vu(f,r)|0,i=(E_[a+20>>2]|0)-(E_[a+16>>2]|0)>>2,i|0}while(0);return E_[e+8>>2]=1,i=-1,i|0}while(0);return E_[e+8>>2]=3,i=-1,i|0}function bo(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0;if((e|0)==0)return r=-1,r|0;do if((E_[e>>2]|0)!=0){if(i=e+4|0,f=E_[i>>2]|0,(f|0)==0)break;if(!(((E_[f+32>>2]|0)-(E_[f+28>>2]|0)|0)>0))return r=0,r|0;for(a=0,t=0,n=f;;){if(f=vu(n,t)|0,((E_[f+20>>2]|0)-(E_[f+16>>2]|0)|0)>0)for(f=a,o=0;;){if(u=Fl(vu(E_[i>>2]|0,t)|0,o)|0,l=((E_[u+20>>2]|0)-(E_[u+16>>2]|0)>>2)+f|0,u=o+1|0,s=vu(E_[i>>2]|0,t)|0,!((u|0)<((E_[s+20>>2]|0)-(E_[s+16>>2]|0)>>2|0))){b=l;break}f=l,o=u}else b=a;if(o=t+1|0,f=E_[i>>2]|0,!((o|0)<((E_[f+32>>2]|0)-(E_[f+28>>2]|0)>>2|0))){r=b;break}a=b,t=o,n=f}return r|0}while(0);return E_[e+8>>2]=3,r=-1,r|0}function ko(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0;if((e|0)==0)return i=-1,i|0;do if((E_[e>>2]|0)!=0){if(f=e+4|0,a=E_[f>>2]|0,(a|0)==0)break;do if((r|0)>=0){if(((E_[a+32>>2]|0)-(E_[a+28>>2]|0)>>2|0)<=(r|0))break;if(t=vu(a,r)|0,!(((E_[t+20>>2]|0)-(E_[t+16>>2]|0)|0)>0))return i=0,i|0;for(n=0,o=0;;){if(t=Fl(vu(E_[f>>2]|0,r)|0,o)|0,u=((E_[t+20>>2]|0)-(E_[t+16>>2]|0)>>2)+n|0,t=o+1|0,l=vu(E_[f>>2]|0,r)|0,!((t|0)<((E_[l+20>>2]|0)-(E_[l+16>>2]|0)>>2|0))){i=u;break}n=u,o=t}return i|0}while(0);return E_[e+8>>2]=1,i=-1,i|0}while(0);return E_[e+8>>2]=3,i=-1,i|0}function co(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0;if((e|0)==0)return f=-1,f|0;do if((E_[e>>2]|0)!=0){if(a=e+4|0,t=E_[a>>2]|0,(t|0)==0)break;do if((r|0)>=0){if(((E_[t+32>>2]|0)-(E_[t+28>>2]|0)>>2|0)<=(r|0)|(i|0)<0)break;if(n=vu(t,r)|0,((E_[n+20>>2]|0)-(E_[n+16>>2]|0)>>2|0)<=(i|0))break;return n=Fl(vu(E_[a>>2]|0,r)|0,i)|0,f=(E_[n+20>>2]|0)-(E_[n+16>>2]|0)>>2,f|0}while(0);return E_[e+8>>2]=1,f=-1,f|0}while(0);return E_[e+8>>2]=3,f=-1,f|0}function ho(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0;if((e|0)==0)return f=0,f|0;do if((E_[e>>2]|0)!=0){if(a=e+4|0,t=E_[a>>2]|0,(t|0)==0)break;do if((r|0)>=0){if(((E_[t+32>>2]|0)-(E_[t+28>>2]|0)>>2|0)<=(r|0)|(i|0)<0)break;if(n=vu(t,r)|0,((E_[n+20>>2]|0)-(E_[n+16>>2]|0)>>2|0)<=(i|0))break;n=Fl(vu(E_[a>>2]|0,r)|0,i)|0,o=e+36|0,u=o,l=o,(m_[l]&1)==0?(m_[u+1|0]=0,m_[l]=0):(m_[E_[e+44>>2]|0]=0,E_[e+40>>2]=0),s=n+20|0,b=n+16|0,k=((E_[s>>2]|0)-(E_[b>>2]|0)|0)>0;do if((m_[e+33|0]&1)==0){if(!k)break;c=u+1|0,d=e+44|0,h=e+40|0,_=o|0,w=0;do v=ps(Ds(n,w)|0)|0,m=m_[l]|0,(m&1)==0?(p=(m&255)>>>1,E=10):(p=E_[h>>2]|0,E=(E_[_>>2]&-2)-1|0),(p|0)==(E|0)?(Cc(o,E,1,E,E,0,0),S=m_[l]|0):S=m,(S&1)==0?(m_[l]=(p<<1)+2&255,g=c,y=p+1|0):(m=E_[d>>2]|0,A=p+1|0,E_[h>>2]=A,g=m,y=A),m_[g+p|0]=v,m_[g+y|0]=0,w=w+1|0;while((w|0)<((E_[s>>2]|0)-(E_[b>>2]|0)>>2|0))}else{if(!k)break;O=0;do w=Es(Ds(n,O)|0)|0,Nc(o,w,gn(w|0)|0)|0,O=O+1|0;while((O|0)<((E_[s>>2]|0)-(E_[b>>2]|0)>>2|0))}while(0);return b=m_[l]|0,(b&1)==0?(R=(b&255)>>>1,F=10):(R=E_[e+40>>2]|0,F=(E_[o>>2]&-2)-1|0),(R|0)==(F|0)?(Cc(o,F,1,F,F,0,0),M=m_[l]|0):M=b,(M&1)==0?(m_[l]=(R<<1)+2&255,N=u+1|0,D=R+1|0):(b=E_[e+44>>2]|0,s=R+1|0,E_[e+40>>2]=s,N=b,D=s),m_[N+R|0]=10,m_[N+D|0]=0,(m_[l]&1)==0?(f=u+1|0,f|0):(f=E_[e+44>>2]|0,f|0)}while(0);return E_[e+8>>2]=1,f=0,f|0}while(0);return E_[e+8>>2]=3,f=0,f|0}function _o(e){e|=0;var r=0,i=0,f=0,a=0;if((e|0)==0)return r=-1,r|0;do if((E_[e>>2]|0)!=0){if(i=e+4|0,f=E_[i>>2]|0,(f|0)==0)break;return((E_[f+32>>2]|0)-(E_[f+28>>2]|0)|0)<=0?(r=0,r|0):(a=vu(f,0)|0,((E_[a+20>>2]|0)-(E_[a+16>>2]|0)|0)<=0?(r=0,r|0):(a=Ds(Fl(vu(E_[i>>2]|0,0)|0,0)|0,0)|0,(E_[a+32>>2]|0)==(E_[a+28>>2]|0)?(r=0,r|0):(i=(m_[e+33|0]&1)==0,f=E_[(ws(a,0)|0)>>2]|0,i?(r=(es(f)|0)&255,r|0):(r=f,r|0))))}while(0);return E_[e+8>>2]=3,r=-1,r|0}function wo(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0;if(m_[e+28|0]=1,m_[e+29|0]=0,f=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,a=(E_[e+8>>2]|0)+1-(E_[e>>2]|0)|0,t=(f|0)>0,!i){if(!t)return;i=(a|0)>0,n=e+16|0,o=0;e:for(;;){if(i){u=0;do{if(l=E_[n>>2]|0,s=bw(r|0)|0,(s|0)==-1){b=344;break e}for(k=0,c=s;;){if(d=c&255,d<<24>>24==35|k&d<<24>>24!=10)h=1;else{if((tw(c&255|0)|0)==0)break;h=0}if(s=bw(r|0)|0,(s|0)==-1){b=343;break e}k=h,c=s}if((d<<24>>24|0)==49)_=0;else{if((d<<24>>24|0)!=48){b=322;break e}_=1}s=l+(o*12|0)+4|0,w=E_[s>>2]|0,v=l+(o*12|0)+8|0;do if((w|0)==(E_[v>>2]|0)){if(m=l+(o*12|0)|0,p=E_[m>>2]|0,E=w-p|0,S=E+1|0,(S|0)<0){b=328;break e}if(E>>>0>1073741822?(g=2147483647,b=331):(y=E<<1,A=y>>>0<S>>>0?S:y,(A|0)==0?(O=0,R=0):(g=A,b=331)),(b|0)==331&&(b=0,O=kn(g)|0,R=g),A=O+E|0,y=O+R|0,(A|0)!=0&&(m_[A]=_),A=O+S|0,yn(O|0,p|0,E)|0,E_[m>>2]=O,E_[s>>2]=A,E_[v>>2]=y,(p|0)==0)break;hn(p)}else(w|0)==0?F=0:(m_[w]=_,F=E_[s>>2]|0),E_[s>>2]=F+1;while(0);u=u+1|0}while((u|0)<(a|0))}if(u=o+1|0,!((u|0)<(f|0))){b=350;break}o=u}if((b|0)==322)o=Yw(4)|0,E_[o>>2]=2832,gw(o|0,12568,0);else if((b|0)==328)cf(0);else if((b|0)==343)M=Yw(4)|0,N=M,E_[N>>2]=2936,gw(M|0,12568,0);else if((b|0)==344)M=Yw(4)|0,N=M,E_[N>>2]=2936,gw(M|0,12568,0);else if((b|0)==350)return}if(t)if(t=e+16|0,(a|0)>0){D=0;e:for(;;){e=0;do{if(M=E_[t>>2]|0,N=bw(r|0)|0,(N|0)==-1){b=345;break e}for(C=0,T=N;;){if(P=T&255,P<<24>>24==35|C&P<<24>>24!=10)L=1;else{if((tw(T&255|0)|0)==0)break;L=0}if(N=bw(r|0)|0,(N|0)==-1){b=346;break e}C=L,T=N}if((P<<24>>24|0)==49)I=1;else{if((P<<24>>24|0)!=48){b=339;break e}I=0}N=M+(D*12|0)+4|0,o=E_[N>>2]|0,F=M+(D*12|0)+8|0;do if((o|0)==(E_[F>>2]|0)){if(_=M+(D*12|0)|0,O=E_[_>>2]|0,R=o-O|0,g=R+1|0,(g|0)<0){b=340;break e}if(R>>>0>1073741822?(x=2147483647,b=306):(d=R<<1,c=d>>>0<g>>>0?g:d,(c|0)==0?(B=0,H=0):(x=c,b=306)),(b|0)==306&&(b=0,B=kn(x)|0,H=x),c=B+R|0,d=B+H|0,(c|0)!=0&&(m_[c]=I),c=B+g|0,yn(B|0,O|0,R)|0,E_[_>>2]=B,E_[N>>2]=c,E_[F>>2]=d,(O|0)==0)break;hn(O)}else(o|0)==0?U=0:(m_[o]=I,U=E_[N>>2]|0),E_[N>>2]=U+1;while(0);e=e+1|0}while((e|0)<(a|0));if(e=D+1|0,!((e|0)<(f|0))){b=349;break}D=e}if((b|0)==339)D=Yw(4)|0,E_[D>>2]=2832,gw(D|0,12568,0);else if((b|0)==340)cf(0);else if((b|0)==345)z=Yw(4)|0,Y=z,E_[Y>>2]=2936,gw(z|0,12568,0);else if((b|0)==346)z=Yw(4)|0,Y=z,E_[Y>>2]=2936,gw(z|0,12568,0);else if((b|0)==349)return}else{e=0;do e=e+1|0;while((e|0)<(f|0))}}function vo(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0;if(m_[e+28|0]=1,m_[e+29|0]=0,f=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,a=(E_[e+8>>2]|0)+1-(E_[e>>2]|0)|0,t=(f|0)>0,i){if(!t)return;i=(a|0)>0,n=e+16|0,o=0;e:for(;;){if(i)for(u=0;;){if(l=bw(r|0)|0,(l|0)==-1){s=383;break e}if((u|0)<(a|0))for(b=l&255,l=u,k=128;;){c=E_[n>>2]|0,d=(b&k|0)!=0|0,h=c+(o*12|0)+4|0,_=E_[h>>2]|0,w=c+(o*12|0)+8|0;do if((_|0)==(E_[w>>2]|0)){if(v=c+(o*12|0)|0,m=E_[v>>2]|0,p=_-m|0,E=p+1|0,(E|0)<0){s=389;break e}if(p>>>0>1073741822?(S=2147483647,s=392):(g=p<<1,y=g>>>0<E>>>0?E:g,(y|0)==0?(A=0,O=0):(S=y,s=392)),(s|0)==392&&(s=0,A=kn(S)|0,O=S),y=A+p|0,g=A+O|0,(y|0)!=0&&(m_[y]=d),y=A+E|0,yn(A|0,m|0,p)|0,E_[v>>2]=A,E_[h>>2]=y,E_[w>>2]=g,(m|0)==0)break;hn(m)}else(_|0)==0?R=0:(m_[_]=d,R=E_[h>>2]|0),E_[h>>2]=R+1;while(0);if(h=k>>>1,d=l+1|0,!((h|0)!=0&(d|0)<(a|0))){F=d;break}l=d,k=h}else F=u;if(!((F|0)<(a|0)))break;u=F}if(u=o+1|0,!((u|0)<(f|0))){s=402;break}o=u}if((s|0)==383)o=Yw(4)|0,E_[o>>2]=2936,gw(o|0,12568,0);else if((s|0)==389)cf(0);else if((s|0)==402)return}else{if(!t)return;t=(a|0)>0,o=e+16|0,e=0;e:for(;;){if(t)for(F=0;;){if(R=bw(r|0)|0,(R|0)==-1){s=362;break e}if((F|0)<(a|0))for(A=R&255,R=F,O=128;;){S=E_[o>>2]|0,n=(A&O|0)==0|0,i=S+(e*12|0)+4|0,u=E_[i>>2]|0,k=S+(e*12|0)+8|0;do if((u|0)==(E_[k>>2]|0)){if(l=S+(e*12|0)|0,b=E_[l>>2]|0,d=u-b|0,h=d+1|0,(h|0)<0){s=368;break e}if(d>>>0>1073741822?(M=2147483647,s=371):(_=d<<1,w=_>>>0<h>>>0?h:_,(w|0)==0?(N=0,D=0):(M=w,s=371)),(s|0)==371&&(s=0,N=kn(M)|0,D=M),w=N+d|0,_=N+D|0,(w|0)!=0&&(m_[w]=n),w=N+h|0,yn(N|0,b|0,d)|0,E_[l>>2]=N,E_[i>>2]=w,E_[k>>2]=_,(b|0)==0)break;hn(b)}else(u|0)==0?C=0:(m_[u]=n,C=E_[i>>2]|0),E_[i>>2]=C+1;while(0);if(i=O>>>1,n=R+1|0,!((i|0)!=0&(n|0)<(a|0))){T=n;break}R=n,O=i}else T=F;if(!((T|0)<(a|0)))break;F=T}if(F=e+1|0,!((F|0)<(f|0))){s=403;break}e=F}if((s|0)==362)e=Yw(4)|0,E_[e>>2]=2936,gw(e|0,12568,0);else if((s|0)==368)cf(0);else if((s|0)==403)return}}function mo(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0;if(f=po(r)|0,(f|0)==0&&(a=Yw(4)|0,E_[a>>2]=1800,gw(a|0,12568,0)),a=(f|0)>255,t=a?-1:f&255,m_[e+28|0]=t,m_[e+29|0]=(t&255)>>>1,t=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,n=(E_[e+8>>2]|0)+1-(E_[e>>2]|0)|0,!((t|0)<=0)){o=(n|0)>0,u=e+16|0,e=0;e:for(;;){if(o){l=0;do{if(s=po(r)|0,(s|0)>(f|0)){b=410;break e}k=i?f-s|0:s,c=a?((k*255|0|0)/(f|0)|0)&255:k&255,k=E_[u>>2]|0,s=k+(e*12|0)+4|0,d=E_[s>>2]|0,h=k+(e*12|0)+8|0;do if((d|0)==(E_[h>>2]|0)){if(_=k+(e*12|0)|0,w=E_[_>>2]|0,v=d-w|0,m=v+1|0,(m|0)<0){b=418;break e}if(v>>>0>1073741822?(p=2147483647,b=421):(E=v<<1,S=E>>>0<m>>>0?m:E,(S|0)==0?(g=0,y=0):(p=S,b=421)),(b|0)==421&&(b=0,g=kn(p)|0,y=p),S=g+v|0,E=g+y|0,(S|0)!=0&&(m_[S]=c),S=g+m|0,yn(g|0,w|0,v)|0,E_[_>>2]=g,E_[s>>2]=S,E_[h>>2]=E,(w|0)==0)break;hn(w)}else(d|0)==0?A=0:(m_[d]=c,A=E_[s>>2]|0),E_[s>>2]=A+1;while(0);l=l+1|0}while((l|0)<(n|0))}if(l=e+1|0,!((l|0)<(t|0))){b=430;break}e=l}if((b|0)==410)e=Yw(4)|0,E_[e>>2]=3448,gw(e|0,12568,0);else if((b|0)==418)cf(0);else if((b|0)==430)return}}function po(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;if(r=bw(e|0)|0,(r|0)==-1)return i=Yw(4)|0,f=i,E_[f>>2]=2936,gw(i|0,12568,0),0;for(a=0,t=r;;){if(n=t&255,n<<24>>24==35|a&n<<24>>24!=10)o=1;else{if(u=t&255,(tw(u|0)|0)==0)break;o=0}if(r=bw(e|0)|0,(r|0)==-1){l=447;break}a=o,t=r}if((l|0)==447)return i=Yw(4)|0,f=i,E_[f>>2]=2936,gw(i|0,12568,0),0;if(!((u-48|0)>>>0<10))return n=Yw(4)|0,E_[n>>2]=3192,gw(n|0,12568,0),0;s=0,b=n;e:for(;;){if(n=b&255,((-2147483601-n|0)/10|0|0)<(s|0)){l=439;break}for(k=n-48+(s*10|0)|0,n=0;;){if(c=bw(e|0)|0,(c|0)==-1){l=442;break e}if(d=c&255,!(d<<24>>24==35|n&d<<24>>24!=10))break;n=1}if(!(((c&255)-48|0)>>>0<10)){l=445;break}s=k,b=d}return(l|0)==439?(d=Yw(4)|0,E_[d>>2]=2984,gw(d|0,12568,0),0):(l|0)==442?(d=Yw(4)|0,E_[d>>2]=2936,gw(d|0,12568,0),0):(l|0)==445?k|0:0}function Eo(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0;if(f=po(r)|0,(f|0)==0&&(a=Yw(4)|0,E_[a>>2]=1800,gw(a|0,12568,0)),(f|0)>255&&(a=Yw(4)|0,E_[a>>2]=2648,gw(a|0,12568,0)),a=e+28|0,m_[a]=f&255,m_[e+29|0]=f>>>1&127,f=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,t=(E_[e+8>>2]|0)+1-(E_[e>>2]|0)|0,!((f|0)<=0)){n=(t|0)>0,o=e+16|0,e=0;e:for(;;){if(n){u=0;do{if(l=bw(r|0)|0,(l|0)==-1){s=456;break e}if(b=l&255,l=m_[a]|0,(b&255)>>>0>(l&255)>>>0){s=458;break e}k=i?l-b&255:b,b=E_[o>>2]|0,l=b+(e*12|0)+4|0,c=E_[l>>2]|0,d=b+(e*12|0)+8|0;do if((c|0)==(E_[d>>2]|0)){if(h=b+(e*12|0)|0,_=E_[h>>2]|0,w=c-_|0,v=w+1|0,(v|0)<0){s=464;break e}if(w>>>0>1073741822?(m=2147483647,s=467):(p=w<<1,E=p>>>0<v>>>0?v:p,(E|0)==0?(S=0,g=0):(m=E,s=467)),(s|0)==467&&(s=0,S=kn(m)|0,g=m),E=S+w|0,p=S+g|0,(E|0)!=0&&(m_[E]=k),E=S+v|0,yn(S|0,_|0,w)|0,E_[h>>2]=S,E_[l>>2]=E,E_[d>>2]=p,(_|0)==0)break;hn(_)}else(c|0)==0?y=0:(m_[c]=k,y=E_[l>>2]|0),E_[l>>2]=y+1;while(0);u=u+1|0}while((u|0)<(t|0))}if(u=e+1|0,!((u|0)<(f|0))){s=475;break}e=u}if((s|0)==464)cf(0);else if((s|0)==456)e=Yw(4)|0,E_[e>>2]=2936,gw(e|0,12568,0);else{if((s|0)==475)return;(s|0)==458&&(s=Yw(4)|0,E_[s>>2]=3448,gw(s|0,12568,0))}}}function So(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0;if(f=po(r)|0,(f|0)==0&&(a=Yw(4)|0,E_[a>>2]=2056,gw(a|0,12568,0)),a=(f|0)>255,t=a?-1:f&255,m_[e+28|0]=t,m_[e+29|0]=(t&255)>>>1,t=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,n=(E_[e+8>>2]|0)+1-(E_[e>>2]|0)|0,!((t|0)<=0)){o=(n|0)>0,u=e+16|0,e=0;e:for(;;){if(o){l=0;do{if(s=po(r)|0,b=po(r)|0,k=po(r)|0,(s|0)>(f|0)|(b|0)>(f|0)|(k|0)>(f|0)){c=483;break e}i?(d=(b|0)<(k|0)?k:b,h=f-((s|0)<(d|0)?d:s)|0):(d=(k|0)<(b|0)?k:b,h=(d|0)<(s|0)?d:s),_=a?((h*255|0|0)/(f|0)|0)&255:h&255,s=E_[u>>2]|0,d=s+(e*12|0)+4|0,b=E_[d>>2]|0,k=s+(e*12|0)+8|0;do if((b|0)==(E_[k>>2]|0)){if(w=s+(e*12|0)|0,v=E_[w>>2]|0,m=b-v|0,p=m+1|0,(p|0)<0){c=494;break e}if(m>>>0>1073741822?(E=2147483647,c=497):(S=m<<1,g=S>>>0<p>>>0?p:S,(g|0)==0?(y=0,A=0):(E=g,c=497)),(c|0)==497&&(c=0,y=kn(E)|0,A=E),g=y+m|0,S=y+A|0,(g|0)!=0&&(m_[g]=_),g=y+p|0,yn(y|0,v|0,m)|0,E_[w>>2]=y,E_[d>>2]=g,E_[k>>2]=S,(v|0)==0)break;hn(v)}else(b|0)==0?O=0:(m_[b]=_,O=E_[d>>2]|0),E_[d>>2]=O+1;while(0);l=l+1|0}while((l|0)<(n|0))}if(l=e+1|0,!((l|0)<(t|0))){c=506;break}e=l}if((c|0)==483)e=Yw(4)|0,E_[e>>2]=1864,gw(e|0,12568,0);else if((c|0)==494)cf(0);else if((c|0)==506)return}}function go(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0;if(f=po(r)|0,(f|0)==0&&(a=Yw(4)|0,E_[a>>2]=2056,gw(a|0,12568,0)),(f|0)>255&&(a=Yw(4)|0,E_[a>>2]=1752,gw(a|0,12568,0)),a=e+28|0,m_[a]=f&255,m_[e+29|0]=f>>>1&127,f=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,t=(E_[e+8>>2]|0)+1-(E_[e>>2]|0)|0,!((f|0)<=0)){n=(t|0)>0,o=e+16|0,e=0;e:for(;;){if(n){u=0;do{if(l=bw(r|0)|0,(l|0)==-1){s=515;break e}if(b=l&255,l=bw(r|0)|0,(l|0)==-1){s=517;break e}if(k=l&255,l=bw(r|0)|0,(l|0)==-1){s=519;break e}if(c=l&255,l=m_[a]|0,(b&255)>>>0>(l&255)>>>0|(k&255)>>>0>(l&255)>>>0|(c&255)>>>0>(l&255)>>>0){s=521;break e}i?(d=(k&255)>>>0<(c&255)>>>0?c:k,h=l-((b&255)>>>0<(d&255)>>>0?d:b)&255):(d=(c&255)>>>0<(k&255)>>>0?c:k,h=(d&255)>>>0<(b&255)>>>0?d:b),b=E_[o>>2]|0,d=b+(e*12|0)+4|0,k=E_[d>>2]|0,c=b+(e*12|0)+8|0;do if((k|0)==(E_[c>>2]|0)){if(l=b+(e*12|0)|0,_=E_[l>>2]|0,w=k-_|0,v=w+1|0,(v|0)<0){s=530;break e}if(w>>>0>1073741822?(m=2147483647,s=533):(p=w<<1,E=p>>>0<v>>>0?v:p,(E|0)==0?(S=0,g=0):(m=E,s=533)),(s|0)==533&&(s=0,S=kn(m)|0,g=m),E=S+w|0,p=S+g|0,(E|0)!=0&&(m_[E]=h),E=S+v|0,yn(S|0,_|0,w)|0,E_[l>>2]=S,E_[d>>2]=E,E_[c>>2]=p,(_|0)==0)break;hn(_)}else(k|0)==0?y=0:(m_[k]=h,y=E_[d>>2]|0),E_[d>>2]=y+1;while(0);u=u+1|0}while((u|0)<(t|0))}if(u=e+1|0,!((u|0)<(f|0))){s=542;break}e=u}if((s|0)==515)e=Yw(4)|0,E_[e>>2]=2936,gw(e|0,12568,0);else if((s|0)==517)e=Yw(4)|0,E_[e>>2]=2936,gw(e|0,12568,0);else if((s|0)==519)e=Yw(4)|0,E_[e>>2]=2936,gw(e|0,12568,0);else{if((s|0)==542)return;(s|0)==521?(e=Yw(4)|0,E_[e>>2]=1864,gw(e|0,12568,0)):(s|0)==530&&cf(0)}}}function yo(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0;f=O_,a=e|0,Zo(a,0,0,0,0),t=e+16|0,n=t|0,E_[n>>2]=0,o=e+20|0,E_[o>>2]=0,E_[e+24>>2]=0,u=bw(r|0)|0,(u|0)==-1&&(l=Yw(4)|0,E_[l>>2]=2936,gw(l|0,12568,0));do if((u&255)<<24>>24==80){if(l=bw(r|0)|0,(l|0)==-1&&(s=Yw(4)|0,E_[s>>2]=2936,gw(s|0,12568,0)),s=((l&255)-49&255)>>>0<6?l&255:0,(s|0)==0)break;l=po(r)|0,(l|0)==0&&(b=Yw(4)|0,E_[b>>2]=880,gw(b|0,12568,0)),Go(a,l),l=po(r)|0,(l|0)==0&&(b=Yw(4)|0,E_[b>>2]=512,gw(b|0,12568,0)),Xo(a,l),l=e+8|0,b=e|0,k=(E_[l>>2]|0)+1-(E_[b>>2]|0)|0;do if((k|0)>=3){if(c=e+12|0,d=e+4|0,h=(E_[c>>2]|0)+1-(E_[d>>2]|0)|0,(h|0)<3)break;(2147483647/(k|0)|0|0)<(h|0)&&(_=Yw(4)|0,E_[_>>2]=4744,gw(_|0,12568,0)),_=E_[o>>2]|0,w=E_[n>>2]|0,v=(_-w|0)/12|0;do if(v>>>0<h>>>0)Oo(t,h-v|0),m=E_[o>>2]|0;else{if(v>>>0<=h>>>0){m=_;break}if(p=w+(h*12|0)|0,(p|0)==(_|0)){m=_;break}for(E=_;;){if(S=E-12|0,E_[o>>2]=S,g=E_[S>>2]|0,(g|0)==0?y=S:(S=E-12+4|0,(g|0)!=(E_[S>>2]|0)&&(E_[S>>2]=g),hn(g),y=E_[o>>2]|0),(p|0)==(y|0)){m=p;break}E=y}}while(0);if(_=E_[n>>2]|0,(m|0)!=(_|0)){h=0,w=_;do{_=E_[b>>2]|0,v=(E_[l>>2]|0)+1|0,p=v-_|0,g=w+(h*12|0)+8|0,S=w+(h*12|0)|0,A=E_[S>>2]|0,O=A;do if(((E_[g>>2]|0)-O|0)>>>0<p>>>0){if(R=w+(h*12|0)+4|0,F=(E_[R>>2]|0)-O|0,M=(v|0)==(_|0)?0:kn(p)|0,N=M+F|0,D=M+p|0,yn(M|0,A|0,F)|0,E_[S>>2]=M,E_[R>>2]=N,E_[g>>2]=D,(A|0)==0)break;hn(A)}while(0);h=h+1|0,w=E_[n>>2]|0}while(h>>>0<(((E_[o>>2]|0)-w|0)/12|0)>>>0)}switch(s|0){case 49:wo(e,r,i);break;case 52:vo(e,r,i);break;case 50:mo(e,r,i);break;case 53:Eo(e,r,i);break;case 51:So(e,r,i);break;case 54:go(e,r,i)}return(E_[3154]|0)<=0?void(O_=f):(w=E_[T_>>2]|0,Hw(w|0,4520,(h=O_,O_=O_+8|0,E_[h>>2]=s,h|0))|0,O_=h,A=(E_[l>>2]|0)+1-(E_[b>>2]|0)|0,g=(E_[c>>2]|0)+1-(E_[d>>2]|0)|0,Hw(w|0,4048,(h=O_,O_=O_+16|0,E_[h>>2]=A,E_[h+8>>2]=g,h|0))|0,O_=h,void(O_=f))}while(0);b=Yw(4)|0,E_[b>>2]=272,gw(b|0,12568,0)}while(0);f=Yw(4)|0,E_[f>>2]=1288,gw(f|0,12568,0)}function Ao(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0;if(f=O_,(i-49&255)>>>0>5)return a=0,O_=f,a|0;if(t=e+8|0,n=e|0,o=(E_[t>>2]|0)+1-(E_[n>>2]|0)|0,u=e+12|0,l=e+4|0,s=(E_[u>>2]|0)+1-(E_[l>>2]|0)|0,Hw(r|0,3744,(b=O_,O_=O_+24|0,E_[b>>2]=i<<24>>24,E_[b+8>>2]=o,E_[b+16>>2]=s,b|0))|0,O_=b,(i<<24>>24|0)==49){if(s=E_[l>>2]|0,(s|0)>(E_[u>>2]|0))return a=1,O_=f,a|0;for(o=e+16|0,k=e+29|0,c=s;;){s=E_[n>>2]|0;e:do if((s|0)<=(E_[t>>2]|0))for(d=s,h=s;;){if(fw(((S_[(E_[(E_[o>>2]|0)+((c-(E_[l>>2]|0)|0)*12|0)>>2]|0)+(d-h)|0]|0)>>>0<=(S_[k]|0)>>>0?49:48)|0,r|0)|0,_=d+1|0,(_|0)>(E_[t>>2]|0))break e;d=_,h=E_[n>>2]|0}while(0);if(fw(10,r|0)|0,s=c+1|0,(s|0)>(E_[u>>2]|0)){a=1;break}c=s}return O_=f,a|0}if((i<<24>>24|0)==52){if(c=E_[l>>2]|0,(c|0)>(E_[u>>2]|0))return a=1,O_=f,a|0;for(k=e+16|0,o=e+29|0,s=c;;){c=E_[n>>2]|0,h=E_[t>>2]|0;do if((c|0)<=(h|0)){for(d=0,_=-128,w=c,v=h,m=c;;){if(p=((S_[(E_[(E_[k>>2]|0)+((s-(E_[l>>2]|0)|0)*12|0)>>2]|0)+(w-m)|0]|0)>>>0<=(S_[o]|0)>>>0?_:0)|d,E=(_&255)>>>1,E<<24>>24==0?(S=p&255,fw(S|0,r|0)|0,g=-128,y=0,A=E_[t>>2]|0):(g=E,y=p,A=v),p=w+1|0,(p|0)>(A|0))break;d=y,_=g,w=p,v=A,m=E_[n>>2]|0}if(g<<24>>24==-128)break;fw(y&255|0,r|0)|0}while(0);if(c=s+1|0,(c|0)>(E_[u>>2]|0)){a=1;break}s=c}return O_=f,a|0}if(Hw(r|0,3592,(b=O_,O_=O_+8|0,E_[b>>2]=S_[e+28|0]|0,b|0))|0,O_=b,(i<<24>>24|0)==53){if(s=E_[l>>2]|0,y=E_[u>>2]|0,(s|0)>(y|0))return a=1,O_=f,a|0;for(g=e+16|0,A=s,s=E_[t>>2]|0,o=y;;){if(y=E_[n>>2]|0,(y|0)>(s|0))O=s,R=o;else{k=y;do fw(S_[(E_[(E_[g>>2]|0)+(A*12|0)>>2]|0)+k|0]|0|0,r|0)|0,k=k+1|0,F=E_[t>>2]|0;while((k|0)<=(F|0));O=F,R=E_[u>>2]|0}if(k=A+1|0,(k|0)>(R|0)){a=1;break}A=k,s=O,o=R}return O_=f,a|0}if((i<<24>>24|0)==54){if(R=E_[l>>2]|0,o=E_[u>>2]|0,(R|0)>(o|0))return a=1,O_=f,a|0;for(O=e+16|0,s=R,R=E_[t>>2]|0,A=o;;){if(o=E_[n>>2]|0,(o|0)>(R|0))M=R,N=A;else{F=o;do o=S_[(E_[(E_[O>>2]|0)+(s*12|0)>>2]|0)+F|0]|0,Hw(r|0,3288,(b=O_,O_=O_+24|0,E_[b>>2]=o,E_[b+8>>2]=o,E_[b+16>>2]=o,b|0))|0,O_=b,F=F+1|0,D=E_[t>>2]|0;while((F|0)<=(D|0));M=D,N=E_[u>>2]|0}if(F=s+1|0,(F|0)>(N|0)){a=1;break}s=F,R=M,A=N}return O_=f,a|0}if((i<<24>>24|0)==51){if(N=E_[l>>2]|0,(N|0)>(E_[u>>2]|0))return a=1,O_=f,a|0;for(A=e+16|0,M=N;;){if(N=E_[n>>2]|0,R=E_[t>>2]|0,s=E_[(E_[A>>2]|0)+(M*12|0)>>2]|0,(N|0)<(R|0))for(D=N,N=s;;){if(O=S_[N+D|0]|0,Hw(r|0,3408,(b=O_,O_=O_+24|0,E_[b>>2]=O,E_[b+8>>2]=O,E_[b+16>>2]=O,b|0))|0,O_=b,O=D+1|0,F=E_[t>>2]|0,o=E_[(E_[A>>2]|0)+(M*12|0)>>2]|0,!((O|0)<(F|0))){C=F,T=o;break}D=O,N=o}else C=R,T=s;if(N=S_[T+C|0]|0,Hw(r|0,3336,(b=O_,O_=O_+24|0,E_[b>>2]=N,E_[b+8>>2]=N,E_[b+16>>2]=N,b|0))|0,O_=b,N=M+1|0,(N|0)>(E_[u>>2]|0)){a=1;break}M=N}return O_=f,a|0}if((i<<24>>24|0)==50){if(i=E_[l>>2]|0,(i|0)>(E_[u>>2]|0))return a=1,O_=f,a|0;for(l=e+16|0,e=i;;){if(i=E_[n>>2]|0,M=E_[t>>2]|0,C=E_[(E_[l>>2]|0)+(e*12|0)>>2]|0,(i|0)<(M|0))for(T=i,i=C;;){if(Hw(r|0,3552,(b=O_,O_=O_+8|0,E_[b>>2]=S_[i+T|0]|0,b|0))|0,O_=b,A=T+1|0,N=E_[t>>2]|0,D=E_[(E_[l>>2]|0)+(e*12|0)>>2]|0,!((A|0)<(N|0))){P=N,L=D;break}T=A,i=D}else P=M,L=C;if(Hw(r|0,3592,(b=O_,O_=O_+8|0,E_[b>>2]=S_[L+P|0]|0,b|0))|0,O_=b,i=e+1|0,(i|0)>(E_[u>>2]|0)){a=1;break}e=i}return O_=f,a|0}return a=1,O_=f,a|0}function Oo(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0;if(i=e+8|0,f=e+4|0,a=E_[f>>2]|0,t=E_[i>>2]|0,n=a,((t-n|0)/12|0)>>>0>=r>>>0){o=r,u=a;do(u|0)==0?l=0:(E_[u>>2]=0,E_[u+4>>2]=0,E_[u+8>>2]=0,l=E_[f>>2]|0),u=l+12|0,E_[f>>2]=u,o=o-1|0;while((o|0)!=0)}else{o=e|0,e=E_[o>>2]|0,u=(n-e|0)/12|0,n=u+r|0,n>>>0>357913941&&cf(0),l=(t-e|0)/12|0,l>>>0>178956969?(s=357913941,b=676):(e=l<<1,l=e>>>0<n>>>0?n:e,(l|0)==0?(k=0,c=0):(s=l,b=676)),(b|0)==676&&(k=kn(s*12|0)|0,c=s),s=k+(u*12|0)|0,u=r,r=s;do(r|0)==0?d=0:(E_[r>>2]=0,E_[r+4>>2]=0,E_[r+8>>2]=0,d=r),r=d+12|0,u=u-1|0;while((u|0)!=0);u=k+(c*12|0)|0,c=E_[o>>2]|0,k=E_[f>>2]|0;do if((k|0)==(c|0))E_[o>>2]=s,E_[f>>2]=r,E_[i>>2]=u,h=c;else{d=k,l=s;e:for(;;){_=l-12|0,e=d-12|0;do if((_|0)!=0){if(n=_|0,E_[n>>2]=0,t=l-12+4|0,E_[t>>2]=0,a=l-12+8|0,E_[a>>2]=0,w=d-12+4|0,v=E_[w>>2]|0,m=e|0,p=E_[m>>2]|0,(v|0)==(p|0))break;if(E=v-p|0,(E|0)<0){b=686;break e}if(p=kn(E)|0,E_[t>>2]=p,E_[n>>2]=p,E_[a>>2]=p+E,E=E_[m>>2]|0,m=E_[w>>2]|0,(E|0)==(m|0))break;S=E,g=p;do(g|0)==0?y=0:(m_[g]=m_[S]|0,y=E_[t>>2]|0),g=y+1|0,E_[t>>2]=g,S=S+1|0;while((S|0)!=(m|0))}while(0);if((e|0)==(c|0))break;d=e,l=_}if((b|0)==686&&cf(0),l=E_[o>>2]|0,d=E_[f>>2]|0,E_[o>>2]=_,E_[f>>2]=r,E_[i>>2]=u,(l|0)==(d|0)){h=l;break}for(A=d;;){if(d=A-12|0,m=E_[d>>2]|0,(m|0)!=0&&(t=A-12+4|0,(m|0)!=(E_[t>>2]|0)&&(E_[t>>2]=m),hn(m)),(l|0)==(d|0)){h=l;break}A=d}}while(0);(h|0)!=0&&hn(h)}}function Ro(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0,J=0,$=0;if(Zo(e|0,0,0,(E_[r+8>>2]|0)-1|0,(E_[r+4>>2]|0)-1|0),f=e+16|0,a=f|0,E_[a>>2]=0,t=e+20|0,E_[t>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>2]=A,(E|0)==0)break;hn(E)}else(k|0)==0?M=0:(m_[k]=c,M=E_[u>>2]|0),E_[u>>2]=M+1;while(0);if(u=_+1|0,(d|0)>=(o|0)){N=u;break r}_=u,d=d+1|0}else N=s;while(0);if(d=p+1|0,!((d|0)<(b|0))){y=862;break}s=N,p=d}if((y|0)==862)return;cf(0)}if(!l)return;if(l=r|0,!((o|0)>0)){p=0;do p=p+1|0;while((p|0)<(b|0));return}D=0,C=0;e:for(;;){for(p=D,N=1;;){s=E_[a>>2]|0,M=(m_[(E_[l>>2]|0)+p|0]|0)!=0|0,R=s+(C*12|0)+4|0,F=E_[R>>2]|0,g=s+(C*12|0)+8|0;do if((F|0)==(E_[g>>2]|0)){if(t=s+(C*12|0)|0,n=E_[t>>2]|0,d=F-n|0,_=d+1|0,(_|0)<0)break e;if(d>>>0>1073741822?(T=2147483647,y=760):(u=d<<1,c=u>>>0<_>>>0?_:u,(c|0)==0?(P=0,L=0):(T=c,y=760)),(y|0)==760&&(y=0,P=kn(T)|0,L=T),c=P+d|0,u=P+L|0,(c|0)!=0&&(m_[c]=M),c=P+_|0,yn(P|0,n|0,d)|0,E_[t>>2]=P,E_[R>>2]=c,E_[g>>2]=u,(n|0)==0)break;hn(n)}else(F|0)==0?I=0:(m_[F]=M,I=E_[R>>2]|0),E_[R>>2]=I+1;while(0);if(x=p+1|0,(N|0)>=(o|0))break;p=x,N=N+1|0}if(N=C+1|0,!((N|0)<(b|0))){y=855;break}D=x,C=N}if((y|0)==855)return;cf(0)}else if((f|0)==1)if(C=e+28|0,m_[C]=-1,m_[e+29|0]=127,x=(b|0)>0,i){if(!x)return;D=(o|0)>0,I=r|0,P=0,L=0;e:for(;;){r:do if(D)for(T=P,l=1;;){N=E_[a>>2]|0,p=(m_[C]|0)-(m_[(E_[I>>2]|0)+T|0]|0)&255,R=N+(L*12|0)+4|0,M=E_[R>>2]|0,F=N+(L*12|0)+8|0;do if((M|0)==(E_[F>>2]|0)){if(g=N+(L*12|0)|0,s=E_[g>>2]|0,n=M-s|0,u=n+1|0,(u|0)<0)break e;if(n>>>0>1073741822?(B=2147483647,y=823):(c=n<<1,t=c>>>0<u>>>0?u:c,(t|0)==0?(H=0,U=0):(B=t,y=823)),(y|0)==823&&(y=0,H=kn(B)|0,U=B),t=H+n|0,c=H+U|0,(t|0)!=0&&(m_[t]=p),t=H+u|0,yn(H|0,s|0,n)|0,E_[g>>2]=H,E_[R>>2]=t,E_[F>>2]=c,(s|0)==0)break;hn(s)}else(M|0)==0?z=0:(m_[M]=p,z=E_[R>>2]|0),E_[R>>2]=z+1;while(0);if(R=T+1|0,(l|0)>=(o|0)){Y=R;break r}T=R,l=l+1|0}else Y=P;while(0);if(l=L+1|0,!((l|0)<(b|0))){y=864;break}P=Y,L=l}if((y|0)==864)return;cf(0)}else{if(!x)return;x=(o|0)>0,L=r|0,Y=0,P=0;e:for(;;){r:do if(x)for(z=Y,H=1;;){U=E_[a>>2]|0,B=(E_[L>>2]|0)+z|0,I=U+(P*12|0)+4|0,C=E_[I>>2]|0,D=U+(P*12|0)+8|0;do if((C|0)==(E_[D>>2]|0)){if(l=U+(P*12|0)|0,T=E_[l>>2]|0,R=C-T|0,p=R+1|0,(p|0)<0)break e;if(R>>>0>1073741822?(V=2147483647,y=805):(M=R<<1,F=M>>>0<p>>>0?p:M,(F|0)==0?(Z=0,j=0):(V=F,y=805)),(y|0)==805&&(y=0,Z=kn(V)|0,j=V),F=Z+R|0,M=Z+j|0,(F|0)!=0&&(m_[F]=m_[B]|0),F=Z+p|0,yn(Z|0,T|0,R)|0,E_[l>>2]=Z,E_[I>>2]=F,E_[D>>2]=M,(T|0)==0)break;hn(T)}else(C|0)==0?q=0:(m_[C]=m_[B]|0,q=E_[I>>2]|0),E_[I>>2]=q+1;while(0);if(I=z+1|0,(H|0)>=(o|0)){W=I;break r}z=I,H=H+1|0}else W=Y;while(0);if(H=P+1|0,!((H|0)<(b|0))){y=863;break}Y=W,P=H}if((y|0)==863)return;cf(0)}else{if((f|0)!=2)return;if(f=e+28|0,m_[f]=-1,m_[e+29|0]=127,(b|0)<=0)return;e=(o|0)>0,P=r|0,r=0,W=0;e:for(;;){if(e)for(Y=r,q=0;;){Z=E_[P>>2]|0,j=m_[Z+Y|0]|0,V=m_[Z+(Y+1)|0]|0,L=m_[Z+(Y+2)|0]|0,i?(Z=(V&255)>>>0<(L&255)>>>0?L:V,K=(m_[f]|0)-((j&255)>>>0<(Z&255)>>>0?Z:j)&255):(Z=(L&255)>>>0<(V&255)>>>0?L:V,K=(Z&255)>>>0<(j&255)>>>0?Z:j),j=E_[a>>2]|0,Z=j+(W*12|0)+4|0,V=E_[Z>>2]|0,L=j+(W*12|0)+8|0;do if((V|0)==(E_[L>>2]|0)){if(x=j+(W*12|0)|0,H=E_[x>>2]|0,z=V-H|0,I=z+1|0,(I|0)<0)break e;
if(z>>>0>1073741822?(X=2147483647,y=846):(B=z<<1,C=B>>>0<I>>>0?I:B,(C|0)==0?(G=0,Q=0):(X=C,y=846)),(y|0)==846&&(y=0,G=kn(X)|0,Q=X),C=G+z|0,B=G+Q|0,(C|0)!=0&&(m_[C]=K),C=G+I|0,yn(G|0,H|0,z)|0,E_[x>>2]=G,E_[Z>>2]=C,E_[L>>2]=B,(H|0)==0)break;hn(H)}else(V|0)==0?J=0:(m_[V]=K,J=E_[Z>>2]|0),E_[Z>>2]=J+1;while(0);if(Z=q+1|0,V=Y+3|0,!((Z|0)<(o|0))){$=V;break}Y=V,q=Z}else $=r;if(q=W+1|0,!((q|0)<(b|0))){y=866;break}r=$,W=q}if((y|0)==866)return;cf(0)}}function Fo(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0;f=e|0,a=e,t=r,E_[a>>2]=E_[t>>2],E_[a+4>>2]=E_[t+4>>2],E_[a+8>>2]=E_[t+8>>2],E_[a+12>>2]=E_[t+12>>2],t=e+16|0,a=t|0,E_[a>>2]=0,n=e+20|0,E_[n>>2]=0,E_[e+24>>2]=0,m_[e+28|0]=m_[r+28|0]|0,m_[e+29|0]=m_[r+29|0]|0;do if((i|0)<2)o=870;else{if(((E_[r+8>>2]|0)+1-(E_[r>>2]|0)|0)<(i|0)){o=870;break}u=E_[r+12>>2]|0,l=E_[r+4>>2]|0,(u+1-l|0)<(i|0)?o=870:(s=u,b=l)}while(0);(o|0)==870&&(Xb(2768),s=E_[r+12>>2]|0,b=E_[r+4>>2]|0),l=J_(i,i)|0,Xo(f,(s+1-b|0)/(i|0)|0),Go(f,((E_[r+8>>2]|0)+1-(E_[r>>2]|0)|0)/(i|0)|0),f=e+12|0,b=e+4|0,s=(E_[f>>2]|0)+1-(E_[b>>2]|0)|0,u=E_[n>>2]|0,k=E_[a>>2]|0,c=(u-k|0)/12|0;do if(c>>>0<s>>>0)Oo(t,s-c|0);else{if(c>>>0<=s>>>0)break;if(d=k+(s*12|0)|0,(d|0)==(u|0))break;for(h=u;;){if(_=h-12|0,E_[n>>2]=_,w=E_[_>>2]|0,(w|0)==0?v=_:(_=h-12+4|0,(w|0)!=(E_[_>>2]|0)&&(E_[_>>2]=w),hn(w),v=E_[n>>2]|0),(d|0)==(v|0))break;h=v}}while(0);if(!(((E_[f>>2]|0)+1-(E_[b>>2]|0)|0)<=0)){v=e+8|0,h=e|0,e=r+16|0,r=0,n=E_[v>>2]|0,u=E_[h>>2]|0;e:for(;;){s=J_(r,i)|0,k=s+i|0,c=E_[a>>2]|0,t=n+1|0,d=t-u|0,w=c+(r*12|0)+8|0,_=c+(r*12|0)|0,m=E_[_>>2]|0,p=m;do if(((E_[w>>2]|0)-p|0)>>>0<d>>>0){if(E=c+(r*12|0)+4|0,S=(E_[E>>2]|0)-p|0,g=(t|0)==(u|0)?0:kn(d)|0,y=g+S|0,A=g+d|0,yn(g|0,m|0,S)|0,E_[_>>2]=g,E_[E>>2]=y,E_[w>>2]=A,(m|0)==0)break;hn(m)}while(0);if(m=E_[a>>2]|0,w=E_[v>>2]|0,_=E_[h>>2]|0,(w+1-_|0)>0)for(d=(i|0)>0,t=m+(r*12|0)+4|0,p=m+(r*12|0)+8|0,c=m+(r*12|0)|0,m=0;;){if(A=J_(m,i)|0,y=A+i|0,d)for(E=E_[e>>2]|0,S=0,O=s;;){R=E_[E+(O*12|0)>>2]|0,F=S,M=A;do F=(S_[R+M|0]|0)+F|0,M=M+1|0;while((M|0)<(y|0));if(M=O+1|0,!((M|0)<(k|0))){N=F;break}S=F,O=M}else N=0;O=((N|0)/(l|0)|0)&255,S=E_[t>>2]|0;do if((S|0)==(E_[p>>2]|0)){if(y=E_[c>>2]|0,A=S-y|0,E=A+1|0,(E|0)<0)break e;if(A>>>0>1073741822?(D=2147483647,o=918):(M=A<<1,R=M>>>0<E>>>0?E:M,(R|0)==0?(C=0,T=0):(D=R,o=918)),(o|0)==918&&(o=0,C=kn(D)|0,T=D),R=C+A|0,M=C+T|0,(R|0)!=0&&(m_[R]=O),R=C+E|0,yn(C|0,y|0,A)|0,E_[c>>2]=C,E_[t>>2]=R,E_[p>>2]=M,(y|0)==0)break;hn(y)}else(S|0)==0?P=0:(m_[S]=O,P=E_[t>>2]|0),E_[t>>2]=P+1;while(0);if(O=m+1|0,S=E_[v>>2]|0,y=E_[h>>2]|0,!((O|0)<(S+1-y|0))){L=S,I=y;break}m=O}else L=w,I=_;if(m=r+1|0,!((m|0)<((E_[f>>2]|0)+1-(E_[b>>2]|0)|0))){o=927;break}r=m,n=L,u=I}(o|0)!=927&&cf(0)}}function Mo(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0;if((i|0)==1)return f=0,f|0;if(a=i+1|0,(a|0)==0)t=0;else{if(a>>>0>1073741823)return cf(0),0;for(n=kn(a<<2)|0,o=a,u=n;;){if((u|0)==0?l=0:(E_[u>>2]=0,l=u),s=o-1|0,(s|0)==0){t=n;break}o=s,u=l+4|0}}if(l=r+4|0,u=E_[l>>2]|0,o=r+12|0,n=E_[o>>2]|0,(u|0)<=(n|0)){s=e|0,e=E_[r>>2]|0,b=E_[r+8>>2]|0,k=u;do{if((e|0)<=(b|0)){u=E_[s>>2]|0,c=e;do d=t+((S_[(E_[u+(k*12|0)>>2]|0)+c|0]|0)<<2)|0,E_[d>>2]=(E_[d>>2]|0)+1,c=c+1|0;while((c|0)<=(b|0))}k=k+1|0}while((k|0)<=(n|0))}n=(a|0)!=0,n?(k=kn(a<<2)|0,b=k,(k|0)!=0&&(E_[b>>2]=E_[t>>2]),h=b,_=k,w=b+(a<<2)|0):(b=kn(4)|0,k=b,(b|0)!=0&&(E_[k>>2]=E_[t>>2]),h=k,_=b,w=b+4|0),b=_+4|0,n?(n=kn(a<<3)|0,_=n,(n|0)!=0&&(E_[_>>2]=0,E_[_+4>>2]=0),v=_,m=n,p=_+(a<<3)|0):(a=kn(8)|0,_=a,(a|0)!=0&&(E_[_>>2]=0,E_[_+4>>2]=0),v=_,m=a,p=a+8|0);do if((i|0)<1)E=0,S=v,g=h;else{a=w,_=b,n=h,k=p,e=m+8|0,s=v,c=1;e:for(;;){u=c-1|0,d=t+(c<<2)|0,y=(E_[d>>2]|0)+(E_[n+(u<<2)>>2]|0)|0;do if((_|0)==(a|0)){if(A=_-n|0,O=A>>2,R=O+1|0,R>>>0>1073741823){F=968;break e}if(O>>>0>536870910?(M=1073741823,F=972):(N=A>>1,D=N>>>0<R>>>0?R:N,(D|0)==0?(C=0,T=0):(M=D,F=972)),(F|0)==972&&(F=0,C=kn(M<<2)|0,T=M),D=C+(O<<2)|0,O=C+(T<<2)|0,(D|0)!=0&&(E_[D>>2]=y),D=C+(R<<2)|0,R=C,N=n,yn(R|0,N|0,A)|0,(n|0)==0){P=C,L=D,I=O;break}hn(N),P=C,L=D,I=O}else(_|0)!=0&&(E_[_>>2]=y),P=n,L=_+4|0,I=a;while(0);y=s+(u<<3)|0,O=J_(E_[d>>2]|0,c)|0,D=Fn(O,(O|0)<0|0?-1:0,E_[y>>2]|0,E_[y+4>>2]|0)|0,y=z_;do if((e|0)==(k|0)){if(O=e-s|0,N=O>>3,A=N+1|0,A>>>0>536870911){F=983;break e}if(N>>>0>268435454?(x=536870911,F=987):(R=O>>2,B=R>>>0<A>>>0?A:R,(B|0)==0?(H=0,U=0):(x=B,F=987)),(F|0)==987&&(F=0,H=kn(x<<3)|0,U=x),B=H+(N<<3)|0,N=H+(U<<3)|0,(B|0)!=0&&(E_[B>>2]=D,E_[B+4>>2]=y),B=H+(A<<3)|0,A=H,R=s,yn(A|0,R|0,O)|0,(s|0)==0){z=H,Y=B,V=N;break}hn(R),z=H,Y=B,V=N}else(e|0)!=0&&(E_[e>>2]=D,E_[e+4>>2]=y),z=s,Y=e+8|0,V=k;while(0);if(y=c+1|0,(y|0)>(i|0)){F=999;break}a=I,_=L,n=P,k=V,e=Y,s=z,c=y}if((F|0)==999){if(c=z+(i<<3)|0,Z=+((E_[c>>2]|0)>>>0)+ +(E_[c+4>>2]|0)*4294967296,(i|0)<=0){E=0,S=z,g=P;break}for(c=r+8|0,s=r|0,j=0,e=0,k=0;;){n=E_[P+(k<<2)>>2]|0;do if((n|0)>0){if(_=J_((E_[c>>2]|0)+1-(E_[s>>2]|0)|0,(E_[o>>2]|0)+1-(E_[l>>2]|0)|0)|0,(n|0)>=(_|0)){q=e,W=j;break}if(a=z+(k<<3)|0,K=+((E_[a>>2]|0)>>>0)+ +(E_[a+4>>2]|0)*4294967296,X=+(n|0),G=+(_-n|0),Q=K/X-(Z-K)/G,K=G*X*Q*Q,K<=j){q=e,W=j;break}q=k,W=K}else q=e,W=j;while(0);if(n=k+1|0,!((n|0)<(i|0))){E=q,S=z,g=P;break}j=W,e=q,k=n}}else{if((F|0)==968)return cf(0),0;if((F|0)==983)return cf(0),0}}while(0);return(S|0)!=0&&hn(S),(g|0)!=0&&hn(g),(t|0)==0?(f=E,f|0):(hn(t),f=E,f|0)}function No(e,r){return e|=0,r|=0,r>>>0<256?void(m_[e+29|0]=((J_(S_[e+28|0]|0,r)|0)/255|0)&255):void(m_[e+29|0]=(Mo(e+16|0,e|0,S_[e+28|0]|0)|0)&255)}function Do(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;if(a=O_,t=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[t>>2],t=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[t>>2],t=E_[r>>2]|0,n=t,o=E_[i>>2]|0,i=o,u=(i-n|0)/12|0,l=t+(u*12|0)|0,E_[e>>2]=l,e=E_[f>>2]|0,(o|0)==(e|0))return void(O_=a);if(o=((e-i|0)/12|0)+u|0,i=t+(o*12|0)|0,e=r+4|0,r=E_[e>>2]|0,(i|0)==(r|0))s=l,b=i;else{for(f=u+(((r+(~o*12|0)+(-n|0)|0)>>>0)/12|0)+1|0,n=l,l=i;;){if((n|0)!=(l|0)&&Io(n,E_[l>>2]|0,E_[l+4>>2]|0),i=l+12|0,(i|0)==(r|0))break;n=n+12|0,l=i}s=t+(f*12|0)|0,b=E_[e>>2]|0}if((s|0)==(b|0))return void(O_=a);for(k=b;;){if(b=k-12|0,E_[e>>2]=b,f=E_[b>>2]|0,(f|0)==0?c=b:(b=k-12+4|0,(f|0)!=(E_[b>>2]|0)&&(E_[b>>2]=f),hn(f),c=E_[e>>2]|0),(s|0)==(c|0))break;k=c}O_=a}function Co(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0;i=e+4|0,f=E_[i>>2]|0,a=E_[r+4>>2]|0,t=(f|0)<(a|0)?a:f,f=E_[e+12>>2]|0,n=r+12|0,o=E_[n>>2]|0,u=(o|0)<(f|0)?o:f;do if((t|0)==(a|0)){if((Db(r,a)|0)<=-1)break;if((Cb(r,a)|0)<=-1)break;if(f=Db(r,a)|0,(f|0)>(Cb(r,a)|0))break;o=e+16|0,l=e|0,s=f;do m_[(E_[(E_[o>>2]|0)+((a-(E_[i>>2]|0)|0)*12|0)>>2]|0)+(s-(E_[l>>2]|0))|0]=0,s=s+1|0;while((s|0)<=(Cb(r,a)|0))}while(0);do if((u|0)==(E_[n>>2]|0)){if((Db(r,u)|0)<=-1)break;if((Cb(r,u)|0)<=-1)break;if(a=Db(r,u)|0,(a|0)>(Cb(r,u)|0))break;s=e+16|0,l=e|0,o=a;do m_[(E_[(E_[s>>2]|0)+((u-(E_[i>>2]|0)|0)*12|0)>>2]|0)+(o-(E_[l>>2]|0))|0]=0,o=o+1|0;while((o|0)<=(Cb(r,u)|0))}while(0);if(n=Db(r,t)|0,o=Cb(r,t)|0,l=t+1|0,!((l|0)>(u|0)))for(t=e|0,s=e+8|0,a=e+16|0,e=o,o=n,n=l;;){l=Db(r,n)|0,f=Cb(r,n)|0,b=(l|0)<0?o:l,l=(f|0)<0?e:f;e:do if((b|o|0)>-1){if(f=E_[t>>2]|0,k=(b|0)<(o|0)?b:o,c=(f|0)<(k|0)?k:f,k=E_[s>>2]|0,d=(o|0)<(b|0)?b:o,h=(d|0)<(k|0)?d:k,(c|0)>(h|0))break;for(_=c,w=f;;){if(m_[(E_[(E_[a>>2]|0)+((n-(E_[i>>2]|0)|0)*12|0)>>2]|0)+(_-w)|0]=0,f=_+1|0,(f|0)>(h|0))break e;_=f,w=E_[t>>2]|0}}while(0);e:do if((l|e|0)>-1){if(h=E_[t>>2]|0,f=(l|0)<(e|0)?l:e,c=(h|0)<(f|0)?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E_[c>>2]|0)+((h-(E_[n>>2]|0)|0)*12|0)>>2]|0)+(e-(E_[i>>2]|0))|0]=0,e=e+1|0;while((e|0)<=(d|0))}}function Po(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0;if(i=e|0,f=E_[i>>2]|0,a=r+4|0,t=E_[a>>2]|0,n=r|0,o=E_[n>>2]|0,(t|0)==(o|0)?(u=E_[e+8>>2]|0,l=0,s=(f|0)<0?0:f,b=(u|0)>0?0:u):(u=E_[o>>2]|0,k=E_[e+8>>2]|0,c=E_[t-20+8>>2]|0,l=E_[o>>2]|0,s=(f|0)<(u|0)?u:f,b=(c|0)<(k|0)?c:k),(s|0)==(l|0)){if(l=Xs(r,s)|0,(l|0)<=(Ks(r,s)|0)){k=e+4|0,c=e+12|0,f=e+16|0,u=l;do{l=E_[k>>2]|0;do if((u|0)>=(l|0)){if((u|0)>(E_[c>>2]|0))break;m_[(E_[(E_[f>>2]|0)+((u-l|0)*12|0)>>2]|0)+(s-(E_[i>>2]|0))|0]=0}while(0);u=u+1|0}while((u|0)<=(Ks(r,s)|0))}d=E_[a>>2]|0,h=E_[n>>2]|0}else d=t,h=o;_=(d|0)==(h|0)?0:E_[d-20+8>>2]|0;do if((b|0)==(_|0)){if(d=Xs(r,b)|0,(d|0)>(Ks(r,b)|0))break;h=e+4|0,o=e+12|0,t=e+16|0,n=d;do{d=E_[h>>2]|0;do if((n|0)>=(d|0)){if((n|0)>(E_[o>>2]|0))break;m_[(E_[(E_[t>>2]|0)+((n-d|0)*12|0)>>2]|0)+(b-(E_[i>>2]|0))|0]=0}while(0);n=n+1|0}while((n|0)<=(Ks(r,b)|0))}while(0);if(!((s|0)>(b|0))){_=e+4|0,n=e+12|0,t=e+16|0,e=s;do{s=Xs(r,e)|0,o=E_[_>>2]|0;do if((s|0)>=(o|0)){if((s|0)>(E_[n>>2]|0))break;m_[(E_[(E_[t>>2]|0)+((s-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>>2]|0,E_[k>>2]|0),m_[e+28|0]=m_[b+28|0]|0,m_[e+29|0]=m_[b+29|0]|0,b=E_[c>>2]|0,(b|0)==0)return d=1,O_=i,d|0;if(h=E_[k>>2]|0,(b|0)==(h|0))_=b;else{for(w=h;;){if(h=w-12|0,E_[k>>2]=h,v=E_[h>>2]|0,(v|0)==0?m=h:(h=w-12+4|0,(v|0)!=(E_[h>>2]|0)&&(E_[h>>2]=v),hn(v),m=E_[k>>2]|0),(b|0)==(m|0))break;w=m}_=E_[c>>2]|0}return hn(_),d=1,O_=i,d|0}if((r|0)<=1)return d=0,O_=i,d|0;if(_=e|0,(2147483647/(r|0)|0|0)<(J_((E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,(E_[e+8>>2]|0)+1-(E_[e>>2]|0)|0)|0))return c=Yw(4)|0,E_[c>>2]=3824,gw(c|0,12568,0),0;c=e+28|0;do if((m_[c]|0)==1){if(m=(r|0)!=0,m&(r&1|0)==0){if(w=e+20|0,b=e+16|0,k=E_[b>>2]|0,v=(E_[w>>2]|0)-k|0,h=(v|0)/12|0,p=(E_[k+4>>2]|0)-(E_[k>>2]|0)|0,Ho(u,h<<1),k=u+4|0,E=E_[k>>2]|0,S=u|0,g=E_[S>>2]|0,(E|0)==(g|0))y=E;else for(A=p<<1,O=(E-g|0)/12|0,R=0;;){F=g+(R*12|0)|0,m_[l]=1,M=g+(R*12|0)+4|0,N=E_[M>>2]|0,D=E_[F>>2]|0,C=N-D|0;do if(C>>>0<A>>>0)Yo(F,A-C|0,l);else{if(C>>>0<=A>>>0)break;if(T=D+A|0,(T|0)==(N|0))break;E_[M>>2]=T}while(0);if(M=R+1|0,!(M>>>0<O>>>0)){y=g;break}R=M}if(g=E_[b>>2]|0,(v|0)>0)for(R=(p|0)>0,O=p-1|0,A=h-1|0,M=0,N=g;;){if(D=M<<1,R){C=N+(M*12|0)|0,F=(M|0)>0,T=M-1|0,P=(M|0)<(A|0),L=M+1|0,I=F^1,x=P^1,B=y+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r=L|z?0:(m_[(E_[(E_[k>>2]|0)+(x*12|0)>>2]|0)+(m-1)|0]|0)==0,cr=L|C?0:(m_[(E_[(E_[k>>2]|0)+(x*12|0)>>2]|0)+(m+1)|0]|0)==0;do if((m_[(E_[S>>2]|0)+m|0]|0)==0){if(C=br|kr,C&((nr|or|sr)^1)||(m_[(E_[T>>2]|0)+F|0]=0),z=F+1|0,m_[(E_[T>>2]|0)+z|0]=0,U=sr|cr,W=F+2|0,U&((ur|or|br)^1)||(m_[(E_[T>>2]|0)+W|0]=0),m_[(E_[I>>2]|0)+W|0]=0,m_[(E_[I>>2]|0)+z|0]=0,m_[(E_[I>>2]|0)+F|0]=0,U&((nr|lr|kr)^1)||(m_[(E_[P>>2]|0)+F|0]=0),m_[(E_[P>>2]|0)+z|0]=0,C&((ur|lr|cr)^1))break;m_[(E_[P>>2]|0)+W|0]=0}else{W=nr^1,C=or^1,z=sr^1,W|C|z|br&kr||(m_[(E_[T>>2]|0)+F|0]=0),U=br^1;do if(!(ur^1|C|U)){if(!(z|cr^1))break;m_[(E_[T>>2]|0)+(F+2)|0]=0}while(0);C=kr^1;do if(!(W|lr^1|C)){if(!(z|cr^1))break;m_[(E_[P>>2]|0)+F|0]=0}while(0);if(!(cr&(lr&ur)&(U|C)))break;m_[(E_[P>>2]|0)+(F+2)|0]=0}while(0);if(F=m+1|0,!((F|0)<(g|0))){dr=x;break}m=F}else dr=O+1|0;if(!((dr|0)<(b|0)))break;O=dr}if(O=E_[k>>2]|0,E_[k>>2]=tr,E_[M>>2]=O,b=E_[p>>2]|0,E_[p>>2]=h,E_[E>>2]=b,g=e+24|0,R=n+8|0,A=E_[g>>2]|0,E_[g>>2]=E_[R>>2],E_[R>>2]=A,(O|0)!=0){if((O|0)==(b|0))hr=O;else{for(A=b;;){if(b=A-12|0,E_[E>>2]=b,R=E_[b>>2]|0,(R|0)==0?_r=b:(g=A-12+4|0,(R|0)==(E_[g>>2]|0)?wr=b:(E_[g>>2]=R,wr=E_[E>>2]|0),hn(R),_r=wr),(O|0)==(_r|0))break;A=_r}hr=E_[M>>2]|0}hn(hr)}ar=(r|0)/3|0}else ar=r;while(0);do if((ar|0)>1){r=e+20|0,hr=e+16|0,_r=E_[hr>>2]|0,wr=(E_[r>>2]|0)-_r|0,n=(wr|0)/12|0,tr=(E_[_r+4>>2]|0)-(E_[_r>>2]|0)|0,_r=a|0,E_[_r>>2]=0,dr=a+4|0,E_[dr>>2]=0,ur=a+8|0,E_[ur>>2]=0,Uo(a,J_(n,ar)|0),lr=E_[hr>>2]|0;e:do if((wr|0)>0){cr=t|0,kr=t+4|0,br=t+8|0,sr=(tr|0)>0,or=(ar|0)>0,nr=0,o=lr;r:for(;;){E_[cr>>2]=0,E_[kr>>2]=0,E_[br>>2]=0,rr=E_[dr>>2]|0;do if((rr|0)==(E_[ur>>2]|0)){if(zo(a,t),ir=E_[cr>>2]|0,(ir|0)==0)break;(ir|0)!=(E_[kr>>2]|0)&&(E_[kr>>2]=ir),hn(ir)}else(rr|0)==0?vr=0:(E_[rr>>2]=0,E_[rr+4>>2]=0,E_[rr+8>>2]=0,vr=E_[dr>>2]|0),E_[dr>>2]=vr+12;while(0);if(sr)for(rr=o+(nr*12|0)|0,ir=0;;){er=m_[(E_[rr>>2]|0)+ir|0]|0;i:do if(or)for(fr=1;;){u=E_[dr>>2]|0,y=u-12+4|0,J=E_[y>>2]|0,$=u-12+8|0;do if((J|0)==(E_[$>>2]|0)){if(Q=u-12|0,q=E_[Q>>2]|0,j=J-q|0,G=j+1|0,(G|0)<0){mr=1294;break r}if(j>>>0>1073741822?(pr=2147483647,mr=1298):(Y=j<<1,X=Y>>>0<G>>>0?G:Y,(X|0)==0?(Er=0,Sr=0):(pr=X,mr=1298)),(mr|0)==1298&&(mr=0,Er=kn(pr)|0,Sr=pr),X=Er+j|0,Y=Er+Sr|0,(X|0)!=0&&(m_[X]=er),X=Er+G|0,yn(Er|0,q|0,j)|0,E_[Q>>2]=Er,E_[y>>2]=X,E_[$>>2]=Y,(q|0)==0)break;hn(q)}else(J|0)==0?gr=0:(m_[J]=er,gr=E_[y>>2]|0),E_[y>>2]=gr+1;while(0);if((fr|0)>=(ar|0))break i;fr=fr+1|0}while(0);if(er=ir+1|0,!((er|0)<(tr|0))){yr=2;break}ir=er}else yr=2;for(;;){if(ir=E_[dr>>2]|0,rr=ir-12|0,(ir|0)==(E_[ur>>2]|0))zo(a,rr);else{do if((ir|0)!=0){if(er=ir|0,E_[er>>2]=0,C=ir+4|0,E_[C>>2]=0,U=ir+8|0,E_[U>>2]=0,fr=ir-12+4|0,y=E_[fr>>2]|0,J=rr|0,$=E_[J>>2]|0,(y|0)==($|0))break;if(u=y-$|0,(u|0)<0){mr=1318;break r}if($=kn(u)|0,E_[C>>2]=$,E_[er>>2]=$,E_[U>>2]=$+u,u=E_[J>>2]|0,J=E_[fr>>2]|0,(u|0)==(J|0))break;Ar=u,Or=$;do(Or|0)==0?Rr=0:(m_[Or]=m_[Ar]|0,Rr=E_[C>>2]|0),Or=Rr+1|0,E_[C>>2]=Or,Ar=Ar+1|0;while((Ar|0)!=(J|0))}while(0);E_[dr>>2]=(E_[dr>>2]|0)+12}if((yr|0)>=(ar|0))break;yr=yr+1|0}if(rr=nr+1|0,ir=E_[hr>>2]|0,!((rr|0)<(n|0))){Fr=ir;break e}nr=rr,o=ir}if((mr|0)==1294)return cf(0),0;if((mr|0)==1318)return cf(0),0}else Fr=lr;while(0);if(E_[hr>>2]=E_[_r>>2],E_[_r>>2]=Fr,lr=E_[r>>2]|0,E_[r>>2]=E_[dr>>2],E_[dr>>2]=lr,n=e+24|0,tr=E_[n>>2]|0,E_[n>>2]=E_[ur>>2],E_[ur>>2]=tr,(Fr|0)!=0){if((Fr|0)==(lr|0))Mr=Fr;else{for(tr=lr;;){if(lr=tr-12|0,E_[dr>>2]=lr,wr=E_[lr>>2]|0,(wr|0)==0?Nr=lr:(lr=tr-12+4|0,(wr|0)!=(E_[lr>>2]|0)&&(E_[lr>>2]=wr),h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0,$=nr+(ir*12|0)+8|0,J=br|0,C=0;do{fr=(E_[rr>>2]|0)+C|0,U=E_[u>>2]|0;do if((U|0)==(E_[$>>2]|0)){if(er=E_[J>>2]|0,y=U-er|0,q=y+1|0,(q|0)<0){mr=1500;break r}if(y>>>0>1073741822?(Pr=2147483647,mr=1504):(Y=y<<1,X=Y>>>0<q>>>0?q:Y,(X|0)==0?(Lr=0,Ir=0):(Pr=X,mr=1504)),(mr|0)==1504&&(mr=0,Lr=kn(Pr)|0,Ir=Pr),X=Lr+y|0,Y=Lr+Ir|0,(X|0)!=0&&(m_[X]=m_[fr]|0),X=Lr+q|0,yn(Lr|0,er|0,y)|0,E_[J>>2]=Lr,E_[u>>2]=X,E_[$>>2]=Y,(er|0)==0)break;hn(er)}else(U|0)==0?xr=0:(m_[U]=m_[fr]|0,xr=E_[u>>2]|0),E_[u>>2]=xr+1;while(0);C=C+1|0}while((C|0)<(tr|0));if(kr){C=nr+(ir*12|0)+4|0,u=nr+(ir*12|0)+8|0,$=br|0,J=tr;do{if(o){for(rr=E_[hr>>2]|0,fr=0,U=sr;;){er=E_[rr+((U+ir|0)*12|0)>>2]|0,Br=fr,Y=sr;do Br=(S_[er+(Y+J)|0]|0)+Br|0,Y=Y+1|0;while((Y|0)<(tr|0));if(Y=U+1|0,!((Y|0)<(tr|0)))break;fr=Br,U=Y}Hr=Br<<1}else Hr=0;U=((Hr+ur|0)/(M|0)|0)&255,fr=E_[C>>2]|0;do if((fr|0)==(E_[u>>2]|0)){if(rr=E_[$>>2]|0,Y=fr-rr|0,er=Y+1|0,(er|0)<0){mr=1523;break r}if(Y>>>0>1073741822?(Ur=2147483647,mr=1527):(X=Y<<1,y=X>>>0<er>>>0?er:X,(y|0)==0?(zr=0,Yr=0):(Ur=y,mr=1527)),(mr|0)==1527&&(mr=0,zr=kn(Ur)|0,Yr=Ur),y=zr+Y|0,X=zr+Yr|0,(y|0)!=0&&(m_[y]=U),y=zr+er|0,yn(zr|0,rr|0,Y)|0,E_[$>>2]=zr,E_[C>>2]=y,E_[u>>2]=X,(rr|0)==0)break;hn(rr)}else(fr|0)==0?Vr=0:(m_[fr]=U,Vr=E_[C>>2]|0),E_[C>>2]=Vr+1;while(0);J=J+1|0}while((J|0)<(lr|0))}J=cr|0,C=nr+(ir*12|0)+4|0,u=nr+(ir*12|0)+8|0,$=br|0,U=lr;do{fr=(E_[J>>2]|0)+U|0,rr=E_[C>>2]|0;do if((rr|0)==(E_[u>>2]|0)){if(X=E_[$>>2]|0,y=rr-X|0,Y=y+1|0,(Y|0)<0){mr=1539;break r}if(y>>>0>1073741822?(Zr=2147483647,mr=1543):(er=y<<1,q=er>>>0<Y>>>0?Y:er,(q|0)==0?(jr=0,qr=0):(Zr=q,mr=1543)),(mr|0)==1543&&(mr=0,jr=kn(Zr)|0,qr=Zr),q=jr+y|0,er=jr+qr|0,(q|0)!=0&&(m_[q]=m_[fr]|0),q=jr+Y|0,yn(jr|0,X|0,y)|0,E_[$>>2]=jr,E_[C>>2]=q,E_[u>>2]=er,(X|0)==0)break;hn(X)}else(rr|0)==0?Wr=0:(m_[rr]=m_[fr]|0,Wr=E_[C>>2]|0),E_[C>>2]=Wr+1;while(0);U=U+1|0}while((U|0)<(wr|0));if(ir=ir+1|0,(ir|0)>=(or|0))break e}if((mr|0)==1500)return cf(0),0;if((mr|0)==1523)return cf(0),0;if((mr|0)==1539)return cf(0),0}while(0);if(or=E_[hr>>2]|0,E_[hr>>2]=nr,E_[dr>>2]=or,wr=s+4|0,ur=E_[r>>2]|0,E_[r>>2]=E_[wr>>2],E_[wr>>2]=ur,tr=s+8|0,_r=E_[n>>2]|0,E_[n>>2]=E_[tr>>2],E_[tr>>2]=_r,(or|0)==0){Dr=r;break}if((or|0)==(ur|0))Kr=or;else{for(_r=ur;;){if(ur=_r-12|0,E_[wr>>2]=ur,tr=E_[ur>>2]|0,(tr|0)==0?Xr=ur:(ir=_r-12+4|0,(tr|0)==(E_[ir>>2]|0)?Gr=ur:(E_[ir>>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mr=1395):(X=fr<<1,er=X>>>0<rr>>>0?rr:X,(er|0)==0?($r=0,ei=0):(Jr=er,mr=1395)),(mr|0)==1395&&(mr=0,$r=kn(Jr)|0,ei=Jr),er=$r+fr|0,X=$r+ei|0,(er|0)!=0&&(m_[er]=m_[nr]|0),er=$r+rr|0,yn($r|0,cr|0,fr)|0,E_[br>>2]=$r,E_[U>>2]=er,E_[J>>2]=X,(cr|0)==0)break;hn(cr)}else($|0)==0?ri=0:(m_[$]=m_[nr]|0,ri=E_[U>>2]|0),E_[U>>2]=ri+1;while(0);do if(tr){if(!dr)break;for(nr=M|0,$=u|0,cr=C|0,X=1;;){er=X-1|0,br=E_[nr>>2]|0,fr=X+1|0,rr=E_[kr>>2]|0,q=E_[$>>2]|0,y=(((S_[br+er|0]|0)+5+(S_[br+X|0]|0)+(S_[br+fr|0]|0)+(S_[rr+er|0]|0)+(S_[rr+X|0]<<1)+(S_[rr+fr|0]|0)+(S_[q+er|0]|0)+(S_[q+X|0]|0)+(S_[q+fr|0]|0)|0)/10|0)&255,q=E_[U>>2]|0;do if((q|0)==(E_[J>>2]|0)){if(er=E_[cr>>2]|0,rr=q-er|0,br=rr+1|0,(br|0)<0){mr=1411;break r}if(rr>>>0>1073741822?(ii=2147483647,mr=1415):(Y=rr<<1,Q=Y>>>0<br>>>0?br:Y,(Q|0)==0?(fi=0,ai=0):(ii=Q,mr=1415)),(mr|0)==1415&&(mr=0,fi=kn(ii)|0,ai=ii),Q=fi+rr|0,Y=fi+ai|0,(Q|0)!=0&&(m_[Q]=y),Q=fi+br|0,yn(fi|0,er|0,rr)|0,E_[cr>>2]=fi,E_[U>>2]=Q,E_[J>>2]=Y,(er|0)==0)break;hn(er)}else(q|0)==0?ti=0:(m_[q]=y,ti=E_[U>>2]|0),E_[U>>2]=ti+1;while(0);if(!((fr|0)<(lr|0)))break;X=fr}}else{if(!dr)break;for(X=M|0,cr=u|0,$=C|0,nr=1;;){y=nr-1|0,q=E_[X>>2]|0,er=nr+1|0,Y=E_[kr>>2]|0,Q=E_[cr>>2]|0,rr=((((S_[q+nr|0]|0)+(S_[q+y|0]|0)+(S_[q+er|0]|0)+(S_[Y+y|0]|0)+(S_[Y+nr|0]|0)+(S_[Y+er|0]|0)+(S_[Q+y|0]|0)+(S_[Q+nr|0]|0)+(S_[Q+er|0]|0)<<1)+9|0)/18|0)&255,Q=E_[U>>2]|0;do if((Q|0)==(E_[J>>2]|0)){if(y=E_[$>>2]|0,Y=Q-y|0,q=Y+1|0,(q|0)<0){mr=1426;break r}if(Y>>>0>1073741822?(ni=2147483647,mr=1430):(br=Y<<1,j=br>>>0<q>>>0?q:br,(j|0)==0?(oi=0,ui=0):(ni=j,mr=1430)),(mr|0)==1430&&(mr=0,oi=kn(ni)|0,ui=ni),j=oi+Y|0,br=oi+ui|0,(j|0)!=0&&(m_[j]=rr),j=oi+q|0,yn(oi|0,y|0,Y)|0,E_[$>>2]=oi,E_[U>>2]=j,E_[J>>2]=br,(y|0)==0)break;hn(y)}else(Q|0)==0?li=0:(m_[Q]=rr,li=E_[U>>2]|0),E_[U>>2]=li+1;while(0);if(!((er|0)<(lr|0)))break;nr=er}}while(0);u=(E_[kr>>2]|0)+lr|0,M=E_[U>>2]|0;do if((M|0)==(E_[J>>2]|0)){if(nr=C|0,$=E_[nr>>2]|0,cr=M-$|0,X=cr+1|0,(X|0)<0){mr=1441;break r}if(cr>>>0>1073741822?(si=2147483647,mr=1445):(rr=cr<<1,Q=rr>>>0<X>>>0?X:rr,(Q|0)==0?(bi=0,ki=0):(si=Q,mr=1445)),(mr|0)==1445&&(mr=0,bi=kn(si)|0,ki=si),Q=bi+cr|0,rr=bi+ki|0,(Q|0)!=0&&(m_[Q]=m_[u]|0),Q=bi+X|0,yn(bi|0,$|0,cr)|0,E_[nr>>2]=bi,E_[U>>2]=Q,E_[J>>2]=rr,($|0)==0)break;hn($)}else(M|0)==0?ci=0:(m_[M]=m_[u]|0,ci=E_[U>>2]|0),E_[U>>2]=ci+1;while(0);if(!((o|0)<(ur|0)))break e;sr=o}if((mr|0)==1391)return cf(0),0;if((mr|0)==1411)return cf(0),0;if((mr|0)==1426)return cf(0),0;if((mr|0)==1441)return cf(0),0}while(0);if(ur=E_[hr>>2]|0,E_[hr>>2]=ir,E_[or>>2]=ur,_r=f+4|0,wr=E_[r>>2]|0,E_[r>>2]=E_[_r>>2],E_[_r>>2]=wr,sr=f+8|0,lr=E_[n>>2]|0,E_[n>>2]=E_[sr>>2],E_[sr>>2]=lr,(ur|0)==0){Dr=r;break}if((ur|0)==(wr|0))di=ur;else{for(lr=wr;;){if(wr=lr-12|0,E_[_r>>2]=wr,sr=E_[wr>>2]|0,(sr|0)==0?hi=wr:(dr=lr-12+4|0,(sr|0)==(E_[dr>>2]|0)?_i=wr:(E_[dr>>2]=sr,_i=E_[_r>>2]|0),hn(sr),hi=_i),(ur|0)==(hi|0))break;lr=hi}di=E_[or>>2]|0}hn(di),Dr=r}else Dr=e+20|0;while(0);return di=e+16|0,Xo(_,((E_[Dr>>2]|0)-(E_[di>>2]|0)|0)/12|0),Dr=E_[di>>2]|0,Go(_,(E_[Dr+4>>2]|0)-(E_[Dr>>2]|0)|0),d=1,O_=i,d|0}function Io(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;if(f=i-r|0,a=e+8|0,t=E_[a>>2]|0,n=e|0,o=E_[n>>2]|0,u=o,f>>>0<=(t-u|0)>>>0){if(l=e+4|0,s=(E_[l>>2]|0)-u|0,f>>>0<=s>>>0){if(On(o|0,r|0,f|0)|0,u=o+f|0,b=E_[l>>2]|0,(u|0)==(b|0))return;k=b;do k=k-1|0;while((u|0)!=(k|0));return void(E_[l>>2]=u)}if(u=r+s|0,On(o|0,r|0,s|0)|0,(u|0)==(i|0))return;s=u,u=E_[l>>2]|0;do(u|0)==0?c=0:(m_[u]=m_[s]|0,c=E_[l>>2]|0),u=c+1|0,E_[l>>2]=u,s=s+1|0;while((s|0)!=(i|0))}else{(o|0)==0?d=t:(t=e+4|0,(o|0)!=(E_[t>>2]|0)&&(E_[t>>2]=o),hn(o),E_[a>>2]=0,E_[t>>2]=0,E_[n>>2]=0,d=0),(f|0)<0&&cf(0);do if(d>>>0>1073741822)h=2147483647;else{if(t=d<<1,o=t>>>0<f>>>0?f:t,(o|0)>=0){h=o;break}cf(0)}while(0);if(f=kn(h)|0,d=e+4|0,E_[d>>2]=f,E_[n>>2]=f,E_[a>>2]=f+h,(r|0)!=(i|0)){_=r,w=f;do(w|0)==0?v=0:(m_[w]=m_[_]|0,v=E_[d>>2]|0),w=v+1|0,E_[d>>2]=w,_=_+1|0;while((_|0)!=(i|0))}}}function xo(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;if(i=e+8|0,f=e+4|0,a=E_[f>>2]|0,t=E_[i>>2]|0,n=a,(t-n|0)>>>0>=r>>>0){o=r,u=a;do(u|0)==0?l=0:(m_[u]=0,l=E_[f>>2]|0),u=l+1|0,E_[f>>2]=u,o=o-1|0;while((o|0)!=0)}else{o=e|0,e=E_[o>>2]|0,u=n-e|0,n=u+r|0,(n|0)<0&&cf(0),l=t-e|0,l>>>0>1073741822?(s=2147483647,b=1605):(e=l<<1,l=e>>>0<n>>>0?n:e,(l|0)==0?(k=0,c=0):(s=l,b=1605)),(b|0)==1605&&(k=kn(s)|0,c=s),s=r,r=k+u|0;do(r|0)==0?d=0:(m_[r]=0,d=r),r=d+1|0,s=s-1|0;while((s|0)!=0);s=k+c|0,c=E_[o>>2]|0,d=(E_[f>>2]|0)-c|0,b=k+(u-d)|0,yn(b|0,c|0,d)|0,E_[o>>2]=b,E_[f>>2]=r,E_[i>>2]=s,(c|0)!=0&&hn(c)}}function Bo(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0;i=e|0,f=E_[i>>2]|0,a=e+4|0,t=E_[a>>2]|0,n=r+4|0,o=E_[n>>2]|0;do if((t|0)==(f|0))u=f,l=o;else{s=t,b=o;e:for(;;){k=b-12|0,c=s-12|0;do if((k|0)!=0){if(d=k|0,E_[d>>2]=0,h=b-12+4|0,E_[h>>2]=0,_=b-12+8|0,E_[_>>2]=0,w=s-12+4|0,v=E_[w>>2]|0,m=c|0,p=E_[m>>2]|0,(v|0)==(p|0))break;if(E=v-p|0,(E|0)<0)break e;if(p=kn(E)|0,E_[h>>2]=p,E_[d>>2]=p,E_[_>>2]=p+E,E=E_[m>>2]|0,m=E_[w>>2]|0,(E|0)==(m|0))break;S=E,g=p;do(g|0)==0?y=0:(m_[g]=m_[S]|0,y=E_[h>>2]|0),g=y+1|0,E_[h>>2]=g,S=S+1|0;while((S|0)!=(m|0))}while(0);if(A=(E_[n>>2]|0)-12|0,E_[n>>2]=A,(c|0)==(f|0)){O=1635;break}s=c,b=A}if((O|0)==1635){u=E_[i>>2]|0,l=A;break}cf(0)}while(0);E_[i>>2]=l,E_[n>>2]=u,u=r+8|0,l=E_[a>>2]|0,E_[a>>2]=E_[u>>2],E_[u>>2]=l,l=e+8|0,e=r+12|0,u=E_[l>>2]|0,E_[l>>2]=E_[e>>2],E_[e>>2]=u,E_[r>>2]=E_[n>>2]}function Ho(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0;if(i=e|0,E_[i>>2]=0,f=e+4|0,E_[f>>2]=0,a=e+8|0,E_[a>>2]=0,(r|0)!=0){r>>>0>357913941&&cf(0),e=kn(r*12|0)|0,E_[f>>2]=e,E_[i>>2]=e,E_[a>>2]=e+(r*12|0),a=r,r=e;do(r|0)==0?t=0:(E_[r>>2]=0,E_[r+4>>2]=0,E_[r+8>>2]=0,t=E_[f>>2]|0),r=t+12|0,E_[f>>2]=r,a=a-1|0;while((a|0)!=0)}}function Uo(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0;if(i=O_,O_=O_+24|0,f=i|0,a=e+8|0,t=E_[e>>2]|0,(((E_[a>>2]|0)-t|0)/12|0)>>>0>=r>>>0)return void(O_=i);if(n=((E_[e+4>>2]|0)-t|0)/12|0,t=f+12|0,E_[t>>2]=0,E_[f+16>>2]=a,o=(r|0)==0?0:kn(r*12|0)|0,a=f|0,E_[a>>2]=o,u=o+(n*12|0)|0,n=f+8|0,E_[n>>2]=u,l=f+4|0,E_[l>>2]=u,E_[t>>2]=o+(r*12|0),Bo(e,f),f=E_[l>>2]|0,l=E_[n>>2]|0,(f|0)!=(l|0))for(e=l;;){if(l=e-12|0,E_[n>>2]=l,r=E_[l>>2]|0,(r|0)==0?s=l:(o=e-12+4|0,(r|0)==(E_[o>>2]|0)?b=l:(E_[o>>2]=r,b=E_[n>>2]|0),hn(r),s=b),(f|0)==(s|0))break;e=s}return s=E_[a>>2]|0,(s|0)==0?void(O_=i):(hn(s),void(O_=i))}function zo(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0;i=O_,O_=O_+24|0,f=i|0,a=e+8|0,t=a,n=E_[e>>2]|0,o=((E_[e+4>>2]|0)-n|0)/12|0,u=o+1|0,u>>>0>357913941&&cf(0),l=((E_[a>>2]|0)-n|0)/12|0,l>>>0>178956969?(n=f+12|0,E_[n>>2]=0,E_[f+16>>2]=t,s=357913941,b=n,k=1689):(n=l<<1,l=n>>>0<u>>>0?u:n,n=f+12|0,E_[n>>2]=0,E_[f+16>>2]=t,(l|0)==0?(c=0,d=0,h=n):(s=l,b=n,k=1689)),(k|0)==1689&&(c=kn(s*12|0)|0,d=s,h=b),b=f|0,E_[b>>2]=c,s=c+(o*12|0)|0,k=f+8|0,E_[k>>2]=s,n=f+4|0,E_[n>>2]=s,E_[h>>2]=c+(d*12|0);do if((s|0)!=0){if(d=s|0,E_[d>>2]=0,h=c+(o*12|0)+4|0,E_[h>>2]=0,l=c+(o*12|0)+8|0,E_[l>>2]=0,t=E_[r+4>>2]|0,u=E_[r>>2]|0,(t|0)==(u|0))break;a=t-u|0,(a|0)<0&&cf(0),_=kn(a)|0,E_[h>>2]=_,E_[d>>2]=_,E_[l>>2]=_+a,a=u,u=_;do(u|0)==0?w=0:(m_[u]=m_[a]|0,w=E_[h>>2]|0),u=w+1|0,E_[h>>2]=u,a=a+1|0;while((a|0)!=(t|0))}while(0);if(E_[k>>2]=c+((o+1|0)*12|0),Bo(e,f),f=E_[n>>2]|0,n=E_[k>>2]|0,(f|0)!=(n|0))for(e=n;;){if(n=e-12|0,E_[k>>2]=n,o=E_[n>>2]|0,(o|0)==0?v=n:(c=e-12+4|0,(o|0)==(E_[c>>2]|0)?m=n:(E_[c>>2]=o,m=E_[k>>2]|0),hn(o),v=m),(f|0)==(v|0))break;e=v}return v=E_[b>>2]|0,(v|0)==0?void(O_=i):(hn(v),void(O_=i))}function Yo(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0;if(f=e+8|0,a=e+4|0,t=E_[a>>2]|0,n=E_[f>>2]|0,o=t,(n-o|0)>>>0>=r>>>0){u=r,l=t;do(l|0)==0?s=0:(m_[l]=m_[i]|0,s=E_[a>>2]|0),l=s+1|0,E_[a>>2]=l,u=u-1|0;while((u|0)!=0)}else{u=e|0,e=E_[u>>2]|0,l=o-e|0,o=l+r|0,(o|0)<0&&cf(0),s=n-e|0,s>>>0>1073741822?(b=2147483647,k=1733):(e=s<<1,s=e>>>0<o>>>0?o:e,(s|0)==0?(c=0,d=0):(b=s,k=1733)),(k|0)==1733&&(c=kn(b)|0,d=b),b=r,r=c+l|0;do(r|0)==0?h=0:(m_[r]=m_[i]|0,h=r),r=h+1|0,b=b-1|0;while((b|0)!=0);b=c+d|0,d=E_[u>>2]|0,h=(E_[a>>2]|0)-d|0,i=c+(l-h)|0,yn(i|0,d|0,h)|0,E_[u>>2]=i,E_[a>>2]=r,E_[f>>2]=b,(d|0)!=0&&hn(d)}}function Vo(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0;if(f=r,a=(i-f|0)/12|0,t=e+8|0,n=E_[t>>2]|0,o=e|0,u=E_[o>>2]|0,l=u,a>>>0>((n-l|0)/12|0)>>>0){if((u|0)==0)s=n;else{if(n=e+4|0,b=E_[n>>2]|0,(u|0)==(b|0))k=u;else{for(c=b;;){if(b=c-12|0,E_[n>>2]=b,d=E_[b>>2]|0,(d|0)==0?h=b:(b=c-12+4|0,(d|0)!=(E_[b>>2]|0)&&(E_[b>>2]=d),hn(d),h=E_[n>>2]|0),(u|0)==(h|0))break;c=h}k=E_[o>>2]|0}hn(k),E_[t>>2]=0,E_[n>>2]=0,E_[o>>2]=0,s=0}a>>>0>357913941&&cf(0),n=(s|0)/12|0;do if(n>>>0>178956969)_=357913941;else{if(s=n<<1,k=s>>>0<a>>>0?a:s,k>>>0<=357913941){_=k;break}cf(0)}while(0);if(n=kn(_*12|0)|0,k=e+4|0,E_[k>>2]=n,E_[o>>2]=n,E_[t>>2]=n+(_*12|0),(r|0)==(i|0))return;w=r,v=n;e:for(;;){if((v|0)==0)m=0;else{n=v|0,E_[n>>2]=0,_=v+4|0,E_[_>>2]=0,t=v+8|0,E_[t>>2]=0,o=w+4|0,s=E_[o>>2]|0,h=w|0,c=E_[h>>2]|0;do if((s|0)!=(c|0)){if(d=s-c|0,(d|0)<0)break e;if(b=kn(d)|0,E_[_>>2]=b,E_[n>>2]=b,E_[t>>2]=b+d,d=E_[h>>2]|0,p=E_[o>>2]|0,(d|0)==(p|0))break;E=d,S=b;do(S|0)==0?g=0:(m_[S]=m_[E]|0,g=E_[_>>2]|0),S=g+1|0,E_[_>>2]=S,E=E+1|0;while((E|0)!=(p|0))}while(0);m=E_[k>>2]|0}if(_=m+12|0,E_[k>>2]=_,o=w+12|0,(o|0)==(i|0)){y=1820;break}w=o,v=_}if((y|0)==1820)return;cf(0)}if(v=e+4|0,e=((E_[v>>2]|0)-l|0)/12|0,a>>>0>e>>>0?(A=1,O=r+(e*12|0)|0):(A=0,O=i),(O|0)==(r|0))R=u;else{for(e=(((O-12+(-f|0)|0)>>>0)/12|0)+1|0,f=u,a=r;;){if((f|0)!=(a|0)&&Io(f,E_[a>>2]|0,E_[a+4>>2]|0),r=a+12|0,(r|0)==(O|0))break;f=f+12|0,a=r}R=u+(e*12|0)|0
}if(A){if((O|0)!=(i|0)){M=O,O=E_[v>>2]|0;e:for(;;){if((O|0)==0)N=0;else{F=O|0,E_[F>>2]=0,R=O+4|0,E_[R>>2]=0,e=O+8|0,E_[e>>2]=0,A=M+4|0,u=E_[A>>2]|0,a=M|0,f=E_[a>>2]|0;do if((u|0)!=(f|0)){if(r=u-f|0,(r|0)<0)break e;if(l=kn(r)|0,E_[R>>2]=l,E_[F>>2]=l,E_[e>>2]=l+r,r=E_[a>>2]|0,w=E_[A>>2]|0,(r|0)==(w|0))break;D=r,C=l;do(C|0)==0?T=0:(m_[C]=m_[D]|0,T=E_[R>>2]|0),C=T+1|0,E_[R>>2]=C,D=D+1|0;while((D|0)!=(w|0))}while(0);N=E_[v>>2]|0}if(R=N+12|0,E_[v>>2]=R,A=M+12|0,(A|0)==(i|0)){y=1818;break}M=A,O=R}(y|0)!=1818&&cf(0)}}else{if(A=E_[v>>2]|0,(R|0)==(A|0))return;for(F=A;;){if(A=F-12|0,E_[v>>2]=A,e=E_[A>>2]|0,(e|0)==0?M=A:(A=F-12+4|0,(e|0)!=(E_[A>>2]|0)&&(E_[A>>2]=e),hn(e),M=E_[v>>2]|0),(R|0)==(M|0))break;F=M}}}function Zo(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0;t=O_,(f|0)<(r|0)|(a|0)<(i|0)&&((E_[3154]|0)>-1&&(n=E_[T_>>2]|0,Hw(n|0,2304,(n=O_,O_=O_+32|0,E_[n>>2]=r,E_[n+8>>2]=i,E_[n+16>>2]=f,E_[n+24>>2]=a,n|0))|0,O_=n),Xb(3632)),E_[e>>2]=r,E_[e+4>>2]=i,E_[e+8>>2]=f,E_[e+12>>2]=a,O_=t}function jo(e,r){e|=0,r|=0,(E_[e+8>>2]|0)<(r|0)&&Xb(2872),E_[e>>2]=r}function qo(e,r){e|=0,r|=0,(E_[e+12>>2]|0)<(r|0)&&Xb(2336),E_[e+4>>2]=r}function Wo(e,r){e|=0,r|=0,(E_[e>>2]|0)>(r|0)&&Xb(1928),E_[e+8>>2]=r}function Ko(e,r){e|=0,r|=0,(E_[e+4>>2]|0)>(r|0)&&Xb(1520),E_[e+12>>2]=r}function Xo(e,r){e|=0,r|=0,(r|0)<1&&Xb(1096),E_[e+12>>2]=r-1+(E_[e+4>>2]|0)}function Go(e,r){e|=0,r|=0,(r|0)<1&&Xb(736),E_[e+8>>2]=r-1+(E_[e>>2]|0)}function Qo(e,r){e|=0,r|=0;var i=0,f=0;i=E_[r>>2]|0,f=e|0,(i|0)<(E_[f>>2]|0)&&(E_[f>>2]=i),i=E_[r+4>>2]|0,f=e+4|0,(i|0)<(E_[f>>2]|0)&&(E_[f>>2]=i),i=E_[r+8>>2]|0,f=e+8|0,(i|0)>(E_[f>>2]|0)&&(E_[f>>2]=i),i=E_[r+12>>2]|0,r=e+12|0,(i|0)<=(E_[r>>2]|0)||(E_[r>>2]=i)}function Jo(e,r){e|=0,r|=0;var i=0;return(E_[e>>2]|0)>(E_[r>>2]|0)?(i=0,i|0):(E_[e+4>>2]|0)>(E_[r+4>>2]|0)?(i=0,i|0):(E_[e+8>>2]|0)<(E_[r+8>>2]|0)?(i=0,i|0):(i=(E_[e+12>>2]|0)>=(E_[r+12>>2]|0),i|0)}function $o(e,r,i){e|=0,r|=0,i|=0;var f=0;return(E_[e>>2]|0)>(i|0)?(f=0,f|0):(E_[e+8>>2]|0)<(i|0)?(f=0,f|0):(E_[e+4>>2]|0)>(r|0)?(f=0,f|0):(f=(E_[e+12>>2]|0)>=(r|0),f|0)}function eu(e,r){e|=0,r|=0;var i=0;return(E_[e>>2]|0)>=(E_[r>>2]|0)?(i=0,i|0):(E_[e+4>>2]|0)>=(E_[r+4>>2]|0)?(i=0,i|0):(E_[e+8>>2]|0)<=(E_[r+8>>2]|0)?(i=0,i|0):(i=(E_[e+12>>2]|0)>(E_[r+12>>2]|0),i|0)}function ru(e,r){e|=0,r|=0;var i=0,f=0;return i=((E_[r+8>>2]|0)+(E_[r>>2]|0)|0)/2|0,(E_[e>>2]|0)>(i|0)?(f=0,f|0):(f=(E_[e+8>>2]|0)>=(i|0),f|0)}function iu(e,r){e|=0,r|=0;var i=0,f=0;return i=((E_[r+12>>2]|0)+(E_[r+4>>2]|0)|0)/2|0,(E_[e+4>>2]|0)>(i|0)?(f=0,f|0):(f=(E_[e+12>>2]|0)>=(i|0),f|0)}function fu(e,r){e|=0,r|=0;var i=0;return(E_[e>>2]|0)>(E_[r>>2]|0)?(i=0,i|0):(i=(E_[e+8>>2]|0)>=(E_[r+8>>2]|0),i|0)}function au(e,r){e|=0,r|=0;var i=0;return(E_[e>>2]|0)>(r|0)?(i=0,i|0):(i=(E_[e+8>>2]|0)>=(r|0),i|0)}function tu(e,r){e|=0,r|=0;var i=0;return(E_[e+4>>2]|0)>(r|0)?(i=0,i|0):(i=(E_[e+12>>2]|0)>=(r|0),i|0)}function nu(e,r){e|=0,r|=0;var i=0;return(E_[e>>2]|0)>(E_[r+8>>2]|0)?(i=0,i|0):(i=(E_[e+8>>2]|0)>=(E_[r>>2]|0),i|0)}function ou(e,r){e|=0,r|=0;var i=0;return(E_[e+4>>2]|0)>(E_[r+12>>2]|0)?(i=0,i|0):(i=(E_[e+12>>2]|0)>=(E_[r+4>>2]|0),i|0)}function uu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0;return i=E_[r+12>>2]|0,f=E_[e+12>>2]|0,a=E_[e+4>>2]|0,e=E_[r+4>>2]|0,r=((i|0)<(f|0)?i:f)-((a|0)<(e|0)?e:a)+1|0,(r|0)<=0?(t=0,t|0):(n=f+1-a|0,a=i+1-e|0,e=(r*100|0|0)/(((a|0)<(n|0)?a:n)|0)|0,t=(e|0)>1?e:1,t|0)}function lu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0;if(i=E_[r>>2]|0,f=E_[r+8>>2]|0,a=(f+i|0)/2|0,t=E_[e>>2]|0,n=E_[e+8>>2]|0,!((t|0)>(a|0)|(n|0)<(a|0)))return o=1,o|0;e=(E_[r+12>>2]|0)+1-(E_[r+4>>2]|0)|0,r=f+1-i|0,i=(((r|0)<(e|0)?r:e)|0)/2|0;do if((n+1-t|0)<(i|0)){if(e=(i+1|0)/2|0,r=(t+n|0)/2|0,(r-e|0)>(a|0)|(r+e|0)<(a|0))break;return o=1,o|0}while(0);return o=0,o|0}function su(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0;if(i=E_[r+4>>2]|0,f=E_[r+12>>2]|0,a=(f+i|0)/2|0,t=E_[e+4>>2]|0,n=E_[e+12>>2]|0,!((t|0)>(a|0)|(n|0)<(a|0)))return o=1,o|0;e=f+1-i|0,i=(E_[r+8>>2]|0)+1-(E_[r>>2]|0)|0,r=(((i|0)<(e|0)?i:e)|0)/2|0;do if((n+1-t|0)<(r|0)){if(e=(r+1|0)/2|0,i=(t+n|0)/2|0,(i-e|0)>(a|0)|(i+e|0)<(a|0))break;return o=1,o|0}while(0);return o=0,o|0}function bu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0;if(i=E_[r>>2]|0,(E_[e+8>>2]|0)<(i|0))return f=1,f|0;a=E_[e>>2]|0;do if((a|0)<=(E_[r+8>>2]|0)){if(t=E_[e+4>>2]|0,n=E_[r+4>>2]|0,(t|0)<(n|0))return f=1,f|0;if(!((t|0)==(n|0)&(a|0)<(i|0)))break;return f=1,f|0}while(0);return f=0,f|0}function ku(e,r){return e|=0,r|=0,(((E_[e+8>>2]|0)+(E_[e>>2]|0)|0)/2|0|0)<(((E_[r+8>>2]|0)+(E_[r>>2]|0)|0)/2|0|0)|0}function cu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0;if(i=e,f=(e|0)<0|0?-1:0,a=In(i,f,i,f)|0,f=z_,i=r,t=(r|0)<0|0?-1:0,n=In(i,t,i,t)|0,t=Fn(n,z_,a,f)|0,f=z_,a=(e|0)>-1?e:-e|0,e=(r|0)>-1?r:-r|0,r=(a|0)<(e|0)?e:a,n=e+a|0,(n-r|0)>1)for(a=r,e=n;;){if(i=(e+a|0)/2|0,o=i,u=(i|0)<0|0?-1:0,l=In(o,u,o,u)|0,u=z_,o=(u|0)<(f|0)|(u|0)==(f|0)&l>>>0<t>>>0,l=o?i:a,u=o?e:i,!((u-l|0)>1)){s=l,b=u;break}a=l,e=u}else s=r,b=n;return n=s,r=(s|0)<0|0?-1:0,e=In(n,r,n,r)|0,r=Mn(t<<1|0,f<<1|t>>>31,e,z_)|0,e=z_,t=b,f=(b|0)<0|0?-1:0,n=In(t,f,t,f)|0,f=z_,((e|0)<(f|0)|(e|0)==(f|0)&r>>>0<n>>>0?s:b)|0}function du(e,r){e|=0,r|=0;var i=0,f=0,a=0;return i=E_[r+12>>2]|0,f=E_[e+4>>2]|0,(i|0)<=(f|0)?(a=f-i|0,a|0):(i=E_[r+4>>2]|0,r=E_[e+12>>2]|0,(i|0)<(r|0)?(a=0,a|0):(a=i-r|0,a|0))}function hu(e,r){e|=0,r|=0;var i=0,f=0;return i=E_[e+4>>2]|0,(i|0)<(r|0)?(f=E_[e+12>>2]|0,((f|0)>(r|0)?0:r-f|0)|0):i-r|0}function _u(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=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=t+104|0,_=t+144|0,w=t+152|0,v=t+192|0,m=t+200|0,p=t+216|0,E=t+256|0,S=t+272|0,g=t+280|0,y=r|0,A=e,O=r,E_[A>>2]=E_[O>>2],E_[A+4>>2]=E_[O+4>>2],E_[A+8>>2]=E_[O+8>>2],E_[A+12>>2]=E_[O+12>>2],A=e+16|0,R=gn(i|0)|0,R>>>0>4294967279&&pc(0),R>>>0<11?(m_[A]=R<<1&255,F=A+1|0):(M=R+16&-16,N=kn(M)|0,E_[e+24>>2]=N,E_[A>>2]=M|1,E_[e+20>>2]=R,F=N),yn(F|0,i|0,R)|0,m_[F+R|0]=0,R=e+28|0,E_[R>>2]=0,F=e+32|0,E_[F>>2]=0,i=e+36|0,E_[i>>2]=0,N=E_[f+16>>2]|0,N>>>0>100)return void(O_=t);if(M=E|0,E_[M>>2]=0,A=E+4|0,E_[A>>2]=0,D=E+8|0,E_[D>>2]=0,C=p,T=r+29|0,P=m_[T]|0,L=m|0,E_[L>>2]=0,I=m+4|0,E_[I>>2]=0,x=m+8|0,E_[x>>2]=0,B=r+8|0,H=E_[B>>2]|0,U=r|0,z=E_[U>>2]|0,Y=H+1|0,V=Y-z|0,(Y|0)==(z|0))Z=0,j=0,q=H,W=z;else{V>>>0>1073741823&&cf(0),z=kn(V<<2)|0,H=V,V=z;do(V|0)==0?K=0:(E_[V>>2]=0,K=V),V=K+4|0,H=H-1|0;while((H|0)!=0);Z=z,j=V,q=E_[B>>2]|0,W=E_[U>>2]|0}if(V=q+1|0,q=V-W|0,(V|0)==(W|0))X=0,G=0;else for(q>>>0>1073741823&&cf(0),W=kn(q<<2)|0,V=q,q=W;;){if((q|0)==0?Q=0:(E_[q>>2]=0,Q=q),z=Q+4|0,H=V-1|0,(H|0)==0){X=W,G=z;break}V=H,q=z}q=r+4|0,V=E_[q>>2]|0,W=r+12|0,Q=E_[W>>2]|0;e:do if((V|0)>(Q|0))J=Z,$=X;else{z=r+16|0,H=j,K=Z,Y=G,er=X,rr=V,ir=E_[B>>2]|0,fr=Q;r:for(;;){if(ar=E_[U>>2]|0,(ar|0)>(ir|0))tr=ir,nr=fr;else{for(or=ar,ur=ir,lr=ar;;){ar=or-lr|0;i:do if((S_[(E_[(E_[z>>2]|0)+((rr-(E_[q>>2]|0)|0)*12|0)>>2]|0)+ar|0]|0)>>>0>(P&255)>>>0)E_[K+(ar<<2)>>2]=0;else{(ar|0)>0?(sr=ar-1|0,br=E_[er+(sr<<2)>>2]|0,kr=E_[K+(sr<<2)>>2]|0):(br=0,kr=0),sr=er+(ar<<2)|0,cr=E_[sr>>2]|0,dr=(or|0)<(ur|0)?E_[er+(ar+1<<2)>>2]|0:0;do if((kr|0)==0){if((br|0)!=0){Vu(br|0,rr,or),hr=br;break}if((cr|0)!=0){Vu(cr|0,rr,or),hr=cr;break}if((dr|0)!=0){Vu(dr|0,rr,or),E_[K+(ar<<2)>>2]=dr;break i}if(_r=kn(40)|0,wr=_r,Tu(_r,or,rr,or,rr),E_[_r+28>>2]=0,E_[_r+32>>2]=0,E_[_r+36>>2]=0,m_[(E_[(E_[_r+16>>2]|0)+((rr-(E_[_r+4>>2]|0)|0)*12|0)>>2]|0)+(or-(E_[_r>>2]|0))|0]=1,_r=E_[I>>2]|0,(_r|0)!=(E_[x>>2]|0)){(_r|0)!=0&&(E_[_r>>2]=wr),E_[I>>2]=_r+4,hr=wr;break}if(vr=E_[L>>2]|0,mr=_r-vr|0,_r=mr>>2,pr=_r+1|0,pr>>>0>1073741823)break r;if(_r>>>0>536870910?(Er=1073741823,Sr=2031):(gr=mr>>1,yr=gr>>>0<pr>>>0?pr:gr,(yr|0)==0?(Ar=0,Or=0):(Er=yr,Sr=2031)),(Sr|0)==2031&&(Sr=0,Ar=kn(Er<<2)|0,Or=Er),yr=Ar+(_r<<2)|0,_r=Ar+(Or<<2)|0,(yr|0)!=0&&(E_[yr>>2]=wr),yr=Ar+(pr<<2)|0,pr=Ar,gr=vr,yn(pr|0,gr|0,mr)|0,E_[L>>2]=Ar,E_[I>>2]=yr,E_[x>>2]=_r,(vr|0)==0){hr=wr;break}hn(gr),hr=wr}else Vu(kr|0,rr,or),hr=kr;while(0);if(E_[K+(ar<<2)>>2]=hr,(dr|0)==0|(hr|0)==(dr|0))break;do if((E_[hr+4>>2]|0)>(E_[dr+4>>2]|0)){if(cr=ar+1|0,wr=K+(cr<<2)|0,(cr|0)==0){Rr=dr,Fr=hr;break}for(Mr=K;;){if((E_[Mr>>2]|0)==(hr|0)&&(E_[Mr>>2]=dr),cr=Mr+4|0,(cr|0)==(wr|0)){Rr=dr,Fr=hr;break}Mr=cr}}else{if((sr|0)==(Y|0)){Rr=hr,Fr=dr;break}for(Nr=sr;;){if((E_[Nr>>2]|0)==(dr|0)&&(E_[Nr>>2]=hr),wr=Nr+4|0,(wr|0)==(Y|0)){Rr=hr,Fr=dr;break}Nr=wr}}while(0);for(sr=E_[I>>2]|0,wr=E_[L>>2]|0,cr=sr,gr=cr-wr>>2,vr=gr,_r=gr+1073741823|0;;){if(Dr=vr-1|0,(vr|0)<=0)break;if((E_[wr+(Dr<<2)>>2]|0)==(Fr|0))break;vr=Dr,_r=_r+1073741823&1073741823}if((Dr|0)<0&&Xb(3792),vr=Dr<<2>>2,gr=wr+(vr+1<<2)|0,yr=cr-gr|0,mr=yr>>2,pr=wr+(vr<<2)|0,Cr=gr,On(pr|0,Cr|0,yr|0)|0,(wr+(mr+vr<<2)|0)!=(sr|0)&&(E_[I>>2]=sr+(~((sr-4+(-(wr+(mr+(_r<<2>>2)<<2)|0)|0)|0)>>>2)<<2)),zu(Rr|0,Fr|0),(Fr|0)==0)break;ul(Fr),hn(Fr)}while(0);if(ar=or+1|0,Tr=E_[B>>2]|0,(ar|0)>(Tr|0))break;or=ar,ur=Tr,lr=E_[U>>2]|0}tr=Tr,nr=E_[W>>2]|0}if(lr=rr+1|0,(lr|0)>(nr|0)){J=er,$=K;break e}ur=K,or=H,H=Y,K=er,rr=lr,ir=tr,fr=nr,er=ur,Y=or}cf(0)}while(0);n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r+(E_[Fr>>2]|0),Fr=tr+1|0,!(Fr>>>0<zr>>>0)){rf=Wr;break}tr=Fr}}while(0);if(Wr=jr+1|0,!(Wr>>>0<zr>>>0))break e;qr=rf,jr=Wr}(Sr|0)==2356?cf(0):(Sr|0)==2370&&cf(0)}while(0);if((ji|0)==0)break;hn(ji)}while(0);if(!nr)break;if(Jr=E_[A>>2]|0,ii=E_[M>>2]|0,((Jr-ii|0)/40|0)>>>0<2|(Jr|0)==(ii|0))break;lf=0,sf=ii;do gu(sf+(lf*40|0)|0,sf+(lf*40|0)+28|0),lf=lf+1|0,sf=E_[M>>2]|0;while(lf>>>0<(((E_[A>>2]|0)-sf|0)/40|0)>>>0)}else ni=E_[U>>2]|0,oi=E_[B>>2]|0,Sr=2451;while(0);if((Sr|0)==2451){if(E_[C>>2]=E_[O>>2],E_[C+4>>2]=E_[O+4>>2],E_[C+8>>2]=E_[O+8>>2],E_[C+12>>2]=E_[O+12>>2],Sr=E_[p+4>>2]|0,B=(E_[p+12>>2]|0)+1|0,U=B-Sr|0,sf=p+16|0,E_[sf>>2]=0,lf=p+20|0,E_[lf>>2]=0,nr=p+24|0,E_[nr>>2]=0,(B|0)==(Sr|0))bf=0;else{U>>>0>536870911&&cf(0),Sr=kn(U<<3)|0,E_[lf>>2]=Sr,E_[sf>>2]=Sr,E_[nr>>2]=Sr+(U<<3),nr=ni|0,ni=oi|0,oi=U,U=Sr;do(U|0)==0?kf=0:(Sr=U,E_[Sr>>2]=nr,E_[Sr+4>>2]=ni,kf=U),U=kf+8|0,oi=oi-1|0;while((oi|0)!=0);E_[lf>>2]=U,bf=U}U=p+28|0,E_[U>>2]=0,oi=p+32|0,E_[oi>>2]=0,E_[p+36>>2]=0,kf=E_[A>>2]|0;do if((kf|0)==(E_[D>>2]|0)){if(yu(E,p),ni=E_[U>>2]|0,(ni|0)==0)break;nr=E_[oi>>2]|0,(ni|0)!=(nr|0)&&(E_[oi>>2]=nr+(~((nr-4+(-ni|0)|0)>>>2)<<2)),hn(ni)}else{if((kf|0)==0)df=0;else{ni=kf,E_[ni>>2]=E_[C>>2],E_[ni+4>>2]=E_[C+4>>2],E_[ni+8>>2]=E_[C+8>>2],E_[ni+12>>2]=E_[C+12>>2],ni=kf+16|0,E_[ni>>2]=0,nr=kf+20|0,E_[nr>>2]=0,Sr=kf+24|0,E_[Sr>>2]=0,B=E_[sf>>2]|0,ji=bf-B|0,rf=ji>>3;do if((rf|0)!=0){if(rf>>>0>536870911&&cf(0),uf=kn(ji)|0,E_[nr>>2]=uf,E_[ni>>2]=uf,E_[Sr>>2]=uf+(rf<<3),(B|0)==(bf|0))break;hf=B,_f=uf;do(_f|0)==0?wf=0:(uf=hf,nf=_f,of=E_[uf+4>>2]|0,E_[nf>>2]=E_[uf>>2],E_[nf+4>>2]=of,wf=E_[nr>>2]|0),_f=wf+8|0,E_[nr>>2]=_f,hf=hf+8|0;while((hf|0)!=(bf|0))}while(0);E_[kf+28>>2]=0,E_[kf+32>>2]=0,E_[kf+36>>2]=0,df=E_[A>>2]|0}E_[A>>2]=df+40}while(0);df=E_[sf>>2]|0,sf=df,(df|0)!=0&&(kf=E_[lf>>2]|0,(df|0)!=(kf|0)&&(E_[lf>>2]=kf+(~((kf-8+(-sf|0)|0)>>>3)<<3)),hn(df)),df=E_[A>>2]|0,sf=df-40+28|0,kf=E_[sf>>2]|0,E_[sf>>2]=E_[L>>2],E_[L>>2]=kf,kf=df-40+32|0,sf=E_[kf>>2]|0,E_[kf>>2]=E_[I>>2],E_[I>>2]=sf,sf=df-40+36|0,df=E_[sf>>2]|0,E_[sf>>2]=E_[x>>2],E_[x>>2]=df}if(df=E_[A>>2]|0,x=E_[M>>2]|0,(df|0)!=(x|0))for(sf=0,kf=x,x=df;;){if(df=kf+(sf*40|0)+32|0,lf=kf+(sf*40|0)+28|0,bf=E_[lf>>2]|0,(E_[df>>2]|0)==(bf|0))vf=x,mf=kf;else{hf=0,_f=bf;do pl(E_[_f+(hf<<2)>>2]|0),hf=hf+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[pf+8>>2]=vf,pf|0))|0,O_=pf,vf=E_[M>>2]|0,Hw(L|0,4160,(pf=O_,O_=O_+8|0,E_[pf>>2]=(E_[vf+(I*40|0)+32>>2]|0)-(E_[vf+(I*40|0)+28>>2]|0)>>2,pf|0))|0,O_=pf,vf=$+(I*40|0)+32|0,mf=$+(I*40|0)+28|0,kf=E_[mf>>2]|0,(E_[vf>>2]|0)!=(kf|0)){sf=0,_f=kf;do vl(E_[_f+(sf<<2)>>2]|0,L),sf=sf+1|0,_f=E_[mf>>2]|0;while(sf>>>0<(E_[vf>>2]|0)-_f>>2>>>0)}if(_f=E_[M>>2]|0,vf=((E_[A>>2]|0)-_f|0)/40|0,!(J>>>0<vf>>>0))break;I=J,$=_f,x=vf}}else{if((N|0)>95|(N-90|0)>>>0<4)break;if(x=E_[M>>2]|0,(E_[A>>2]|0)!=(x|0)){$=(N|0)<90,I=f|0,L=f+4|0,vf=0,_f=x;do{x=kn(28)|0,sf=x,yl(sf,y,_f+(vf*40|0)|0,_f+(vf*40|0)+28|0),E_[S>>2]=sf,mf=E_[x+20>>2]|0,kf=E_[x+16>>2]|0,(mf|0)!=(kf|0)&$?(Rl(sf,I,L),Sf=E_[x+20>>2]|0,gf=E_[x+16>>2]|0):(Sf=mf,gf=kf);do if((Sf|0)==(gf|0)){if((x|0)==0)break;Ol(sf),hn(x)}else{if(kf=E_[F>>2]|0,(kf|0)==(E_[i>>2]|0)){pu(R,S);break}(kf|0)==0?yf=0:(E_[kf>>2]=sf,yf=E_[F>>2]|0),E_[F>>2]=yf+4}while(0);vf=vf+1|0,_f=E_[M>>2]|0}while(vf>>>0<(((E_[A>>2]|0)-_f|0)/40|0)>>>0)}if((N|0)==0)break;if(_f=f+8|0,(E_[_f>>2]|0)==0)break;if((N|0)>85){if(vf=(N|0)>87,L=(N&1|0)!=0,I=e+28|0,$=E_[I>>2]|0,!(((E_[F>>2]|0)-$|0)>0))break;for(Af=0,Of=$;;)if(Ml(E_[Of+(Af<<2)>>2]|0,f,vf,L),Af=Af+1|0,Of=E_[I>>2]|0,(Af|0)>=((E_[F>>2]|0)-Of>>2|0))break e}if(I=N-70|0,I>>>0>=8)break;L=g,E_[L>>2]=E_[O>>2],E_[L+4>>2]=E_[O+4>>2],E_[L+8>>2]=E_[O+8>>2],E_[L+12>>2]=E_[O+12>>2],Su(g+16|0,r+16|0),m_[g+28|0]=m_[r+28|0]|0,m_[g+29|0]=m_[T]|0;do if((I&1|0)!=0){if(L=E_[M>>2]|0,(E_[A>>2]|0)==(L|0))break;if((N|0)==71){vf=0,$=L;do Co(g,$+(vf*40|0)|0),vf=vf+1|0,$=E_[M>>2]|0;while(vf>>>0<(((E_[A>>2]|0)-$|0)/40|0)>>>0)}else{$=0,vf=L;do To(g,vf+($*40|0)|0),$=$+1|0,vf=E_[M>>2]|0;while($>>>0<(((E_[A>>2]|0)-vf|0)/40|0)>>>0)}}while(0);do if((I&2|0)!=0){if(vf=e+28|0,$=E_[vf>>2]|0,!(((E_[F>>2]|0)-$|0)>0))break;Rf=0,Ff=$;do Cl(E_[Ff+(Rf<<2)>>2]|0,g),Rf=Rf+1|0,Ff=E_[vf>>2]|0;while((Rf|0)<((E_[F>>2]|0)-Ff>>2|0))}while(0);do if((I&4|0)!=0){if(vf=e+28|0,$=E_[vf>>2]|0,!(((E_[F>>2]|0)-$|0)>0))break;Mf=0,Nf=$;do Dl(E_[Nf+(Mf<<2)>>2]|0,g),Mf=Mf+1|0,Nf=E_[vf>>2]|0;while((Mf|0)<((E_[F>>2]|0)-Nf>>2|0))}while(0);if(Ao(g,E_[_f>>2]|0,m_[f+20|0]|0)|0,I=g+16|0,vf=E_[I>>2]|0,(vf|0)==0)break;if($=g+20|0,L=E_[$>>2]|0,(vf|0)==(L|0))Df=vf;else{for(sf=L;;){if(L=sf-12|0,E_[$>>2]=L,x=E_[L>>2]|0,(x|0)==0?Cf=L:(L=sf-12+4|0,(x|0)!=(E_[L>>2]|0)&&(E_[L>>2]=x),hn(x),Cf=E_[$>>2]|0),(vf|0)==(Cf|0))break;sf=Cf}Df=E_[I>>2]|0}hn(Df)}while(0);Eu(E|0),O_=t}function wu(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0;if(r=e+32|0,i=e+28|0,f=E_[i>>2]|0,a=(E_[r>>2]|0)-f|0,(a|0)>0)for(t=a>>2,a=f;;){if(n=t-1|0,o=E_[a+(n<<2)>>2]|0,(o|0)==0?u=a:(Ol(o),hn(o),u=E_[i>>2]|0),!((n|0)>0)){l=u;break}t=n,a=u}else l=f;f=l,(l|0)!=0&&(u=E_[r>>2]|0,(l|0)!=(u|0)&&(E_[r>>2]=u+(~((u-4+(-f|0)|0)>>>2)<<2)),hn(l)),(m_[e+16|0]&1)!=0&&hn(E_[e+24>>2]|0)}function vu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0;do{if(!((r|0)<0)){if(f=e+28|0,a=E_[f>>2]|0,!(((E_[e+32>>2]|0)-a>>2|0)>(r|0))){i=f;break}return t=a,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}i=e+28|0}while(0);return Xb(3480),t=E_[i>>2]|0,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}function mu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0;if(i=O_,f=r+12|0,a=E_[f>>2]|0,(a|0)==0)return void(O_=i);if(t=e+16|0,n=(m_[t]&1)==0?t+1|0:E_[e+24>>2]|0,Hw(a|0,2720,(a=O_,O_=O_+8|0,E_[a>>2]=n,a|0))|0,O_=a,n=e+32|0,t=e+28|0,Hw(E_[f>>2]|0,2152,(a=O_,O_=O_+8|0,E_[a>>2]=(E_[n>>2]|0)-(E_[t>>2]|0)>>2,a|0))|0,O_=a,e=E_[t>>2]|0,!(((E_[n>>2]|0)-e|0)>0))return void(O_=i);o=0,u=e;do e=E_[u+(o<<2)>>2]|0,o=o+1|0,l=E_[e>>2]|0,s=E_[e+4>>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;E=y,A=A+1073741823&1073741823,g=E_[a>>2]|0}while(0);if((w|0)==0)break;ul(w),hn(w)}while(0);if(v=E_[i>>2]|0,p=E_[a>>2]|0,m=v,!(e>>>0<m-p>>2>>>0)){L=2781;break e}d=p,h=m,_=v}if(h=e+1|0,f=_,!(h>>>0<f-d>>2>>>0)){L=2780;break}e=h,l=d,r=f,s=s+1&1073741823,b=_}if((L|0)==2751){b=E_[i>>2]|0,s=E_[a>>2]|0;do if((b|0)!=(s|0)){for(r=0,l=s,e=b;;){if(u=E_[l+(r<<2)>>2]|0,(u|0)==0?(Q=e,J=l):(ul(u),hn(u),Q=E_[i>>2]|0,J=E_[a>>2]|0),u=r+1|0,!(u>>>0<Q-J>>2>>>0))break;r=u,l=J,e=Q}if((J|0)==(Q|0))break;E_[i>>2]=Q+(~((Q-4+(-J|0)|0)>>>2)<<2)}while(0);if((w|0)==0)return;return ul(w),void hn(w)}}}function yu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;i=e+4|0,f=E_[i>>2]|0,a=e|0,t=E_[a>>2]|0,n=t,o=(f-n|0)/40|0,u=o+1|0,u>>>0>107374182&&cf(0),l=e+8|0,e=((E_[l>>2]|0)-n|0)/40|0,e>>>0>53687090?(s=107374182,b=2789):(n=e<<1,e=n>>>0<u>>>0?u:n,(e|0)==0?(k=0,c=0):(s=e,b=2789)),(b|0)==2789&&(k=kn(s*40|0)|0,c=s),s=k+(o*40|0)|0,b=k+(c*40|0)|0,(s|0)==0?(d=t,h=f):(f=s,t=r,E_[f>>2]=E_[t>>2],E_[f+4>>2]=E_[t+4>>2],E_[f+8>>2]=E_[t+8>>2],E_[f+12>>2]=E_[t+12>>2],Ou(k+(o*40|0)+16|0,r+16|0),Au(k+(o*40|0)+28|0,r+28|0),d=E_[a>>2]|0,h=E_[i>>2]|0),r=k+(u*40|0)|0;do if((h|0)==(d|0))E_[a>>2]=s,E_[i>>2]=r,E_[l>>2]=b,_=h;else{for(u=h,k=s;;){if(w=k-40|0,o=u-40|0,(w|0)!=0&&(t=w,f=o,E_[t>>2]=E_[f>>2],E_[t+4>>2]=E_[f+4>>2],E_[t+8>>2]=E_[f+8>>2],E_[t+12>>2]=E_[f+12>>2],Ou(k-40+16|0,u-40+16|0),Au(k-40+28|0,u-40+28|0)),(o|0)==(d|0))break;u=o,k=w}if(k=E_[a>>2]|0,u=E_[i>>2]|0,E_[a>>2]=w,E_[i>>2]=r,E_[l>>2]=b,(k|0)==(u|0)){_=k;break}for(v=u;;){if(u=v-40|0,o=E_[v-40+28>>2]|0,f=o,(o|0)!=0&&(t=v-40+32|0,c=E_[t>>2]|0,(o|0)!=(c|0)&&(E_[t>>2]=c+(~((c-4+(-f|0)|0)>>>2)<<2)),hn(o)),o=E_[v-40+16>>2]|0,f=o,(o|0)!=0&&(c=v-40+20|0,t=E_[c>>2]|0,(o|0)!=(t|0)&&(E_[c>>2]=t+(~((t-8+(-f|0)|0)>>>3)<<3)),hn(o)),(k|0)==(u|0)){_=k;break}v=u}}while(0);(_|0)!=0&&hn(_)}function Au(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(i=e|0,E_[i>>2]=0,f=e+4|0,E_[f>>2]=0,a=e+8|0,E_[a>>2]=0,e=r+4|0,t=r|0,r=(E_[e>>2]|0)-(E_[t>>2]|0)|0,n=r>>2,(n|0)!=0&&(n>>>0>1073741823&&cf(0),o=kn(r)|0,E_[f>>2]=o,E_[i>>2]=o,E_[a>>2]=o+(n<<2),n=E_[t>>2]|0,t=E_[e>>2]|0,(n|0)!=(t|0))){u=n,l=o;do(l|0)==0?s=0:(E_[l>>2]=E_[u>>2],s=E_[f>>2]|0),l=s+4|0,E_[f>>2]=l,u=u+4|0;while((u|0)!=(t|0))}}function Ou(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(i=e|0,E_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]|0,p=E_[o>>2]|0}else v=s,m=k,p=b;if(c=l+1|0,!(c>>>0<m-p>>2>>>0))break;l=c,s=v,b=p,k=m}k=E_[a>>2]|0,b=E_[f>>2]|0;do if((k|0)==(b|0)){if((m|0)==(p|0)){E=0,S=b,g=b;break}for(y=0,A=v,O=p,R=b,F=b;;){s=E_[O+(y<<2)>>2]|0,l=(E_[s+12>>2]|0)+1-(E_[s+4>>2]|0)|0,s=R-F>>2;do if(l>>>0<s>>>0)M=F;else{if(h=l+1|0,s>>>0<h>>>0){Du(i,h-s|0),M=E_[f>>2]|0;break}if(s>>>0<=h>>>0){M=F;break}if(c=F+(h<<2)|0,(c|0)==(R|0)){M=F;break}E_[a>>2]=R+(~((R-4+(-c|0)|0)>>>2)<<2),M=F}while(0);if(s=M+(l<<2)|0,E_[s>>2]=(E_[s>>2]|0)+1,s=A+1|0,c=y+1|0,h=E_[o>>2]|0,n=E_[a>>2]|0,d=E_[f>>2]|0,!(c>>>0<(E_[t>>2]|0)-h>>2>>>0)){N=s,D=n,C=d,T=2901;break}y=c,A=s,O=h,R=n,F=d}}else N=v,D=k,C=b,T=2901;while(0);do if((T|0)==2901){if((D|0)==(C|0)){E=0,S=C,g=C;break}for(b=D-C>>2,k=N*9|0,v=0,F=0,R=0,O=0;;){if(A=E_[C+(F<<2)>>2]|0,y=A+R|0,(y*10|0)>>>0>=N>>>0&(R*10|0)>>>0<k>>>0?(P=(J_(A,F)|0)+O|0,L=A+v|0):(P=O,L=v),A=F+1|0,!(A>>>0<b>>>0))break;v=L,F=A,R=y,O=P}if((L|0)==0){E=P,S=C,g=D;break}E=(P|0)/(L|0)|0,S=C,g=D}while(0);return(S|0)==0?(u=E,O_=r,u|0):((S|0)!=(g|0)&&(E_[a>>2]=g+(~((g-4+(-S|0)|0)>>>2)<<2)),hn(S),u=E,O_=r,u|0)}function Fu(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0;if(f=r,a=i-f>>2,t=e+8|0,n=E_[t>>2]|0,o=e|0,u=E_[o>>2]|0,l=u,a>>>0<=n-l>>2>>>0){if(s=e+4|0,b=(E_[s>>2]|0)-l|0,k=b>>2,a>>>0<=k>>>0){if(c=i-f|0,f=c>>2,d=u,h=r,On(d|0,h|0,c|0)|0,c=u+(f<<2)|0,f=E_[s>>2]|0,(c|0)==(f|0))return;return void(E_[s>>2]=f+(~((f-4+(-c|0)|0)>>>2)<<2))}if(c=r+(k<<2)|0,k=u,f=r,On(k|0,f|0,b|0)|0,(c|0)==(i|0))return;b=c,c=E_[s>>2]|0;do(c|0)==0?_=0:(E_[c>>2]=E_[b>>2],_=E_[s>>2]|0),c=_+4|0,E_[s>>2]=c,b=b+4|0;while((b|0)!=(i|0))}else{(u|0)==0?w=n:(n=e+4|0,b=E_[n>>2]|0,(u|0)!=(b|0)&&(E_[n>>2]=b+(~((b-4+(-l|0)|0)>>>2)<<2)),hn(u),E_[t>>2]=0,E_[n>>2]=0,E_[o>>2]=0,w=0),a>>>0>1073741823&&cf(0),n=w;do if(n>>2>>>0>536870910)v=1073741823;else{if(w=n>>1,u=w>>>0<a>>>0?a:w,u>>>0<=1073741823){v=u;break}cf(0)}while(0);if(a=kn(v<<2)|0,n=e+4|0,E_[n>>2]=a,E_[o>>2]=a,E_[t>>2]=a+(v<<2),(r|0)!=(i|0)){m=r,p=a;do(p|0)==0?E=0:(E_[p>>2]=E_[m>>2],E=E_[n>>2]|0),p=E+4|0,E_[n>>2]=p,m=m+4|0;while((m|0)!=(i|0))}}}function Mu(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0;if(f=r,a=i-f>>3,t=e+8|0,n=E_[t>>2]|0,o=e|0,u=E_[o>>2]|0,l=u,a>>>0<=n-l>>3>>>0){if(s=e+4|0,b=(E_[s>>2]|0)-l|0,k=b>>3,a>>>0<=k>>>0){if(c=i-f|0,f=c>>3,d=u,h=r,On(d|0,h|0,c|0)|0,c=u+(f<<3)|0,f=E_[s>>2]|0,(c|0)==(f|0))return;return void(E_[s>>2]=f+(~((f-8+(-c|0)|0)>>>3)<<3))}if(c=r+(k<<3)|0,k=u,f=r,On(k|0,f|0,b|0)|0,(c|0)==(i|0))return;b=c,c=E_[s>>2]|0;do(c|0)==0?_=0:(f=b,k=c,h=E_[f+4>>2]|0,E_[k>>2]=E_[f>>2],E_[k+4>>2]=h,_=E_[s>>2]|0),c=_+8|0,E_[s>>2]=c,b=b+8|0;while((b|0)!=(i|0))}else{(u|0)==0?w=n:(n=e+4|0,b=E_[n>>2]|0,(u|0)!=(b|0)&&(E_[n>>2]=b+(~((b-8+(-l|0)|0)>>>3)<<3)),hn(u),E_[t>>2]=0,E_[n>>2]=0,E_[o>>2]=0,w=0),a>>>0>536870911&&cf(0),n=w;do if(n>>3>>>0>268435454)v=536870911;else{if(w=n>>2,u=w>>>0<a>>>0?a:w,u>>>0<=536870911){v=u;break}cf(0)}while(0);if(a=kn(v<<3)|0,n=e+4|0,E_[n>>2]=a,E_[o>>2]=a,E_[t>>2]=a+(v<<3),(r|0)!=(i|0)){m=r,p=a;do(p|0)==0?E=0:(a=m,r=p,v=E_[a+4>>2]|0,E_[r>>2]=E_[a>>2],E_[r+4>>2]=v,E=E_[n>>2]|0),p=E+8|0,E_[n>>2]=p,m=m+8|0;while((m|0)!=(i|0))}}}function Nu(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0;if(t=O_,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[n>>2],n=a,a=O_,O_=O_+4|0,O_=O_+7&-8,E_[a>>2]=E_[n>>2],n=r|0,o=E_[n>>2]|0,u=o,l=(E_[i>>2]|0)-u|0,i=l>>2,s=o+(i<<2)|0,b=f|0,f=E_[b>>2]|0,k=E_[a>>2]|0,a=k-f|0,c=a>>2,(a|0)<=0)return d=s,h=e|0,E_[h>>2]=d,void(O_=t);if(a=r+8|0,_=r+4|0,r=E_[_>>2]|0,w=E_[a>>2]|0,v=r,(c|0)<=(w-v>>2|0)){m=v-s>>2;do if((c|0)>(m|0)){if(p=f+(m<<2)|0,(p|0)==(k|0)){E=m,S=k,g=r;break}for(y=p,A=r;;){if((A|0)==0?O=0:(E_[A>>2]=E_[y>>2],O=E_[_>>2]|0),R=O+4|0,E_[_>>2]=R,F=y+4|0,(F|0)==(k|0)){E=m,S=p,g=R;break}y=F,A=R}}else E=c,S=k,g=r;while(0);if((E|0)<=0)return d=s,h=e|0,E_[h>>2]=d,void(O_=t);if(E=g-(o+(c+i<<2))|0,A=E>>2,y=o+(A+i<<2)|0,y>>>0<r>>>0){i=y,y=g;do(y|0)==0?M=0:(E_[y>>2]=E_[i>>2],M=E_[_>>2]|0),i=i+4|0,y=M+4|0,E_[_>>2]=y;while(i>>>0<r>>>0);N=E_[b>>2]|0}else N=f;return b=g+(-A<<2)|0,A=s,On(b|0,A|0,E|0)|0,E=S-N|0,S=N,On(A|0,S|0,E|0)|0,d=s,h=e|0,E_[h>>2]=d,void(O_=t)}if(E=(v-u>>2)+c|0,E>>>0>1073741823&&cf(0),c=w-u|0,c>>2>>>0>536870910?(D=1073741823,C=s,T=l>>2,P=2994):(u=c>>1,c=u>>>0<E>>>0?E:u,u=s,E=l>>2,(c|0)==0?(L=0,I=0,x=u,B=E):(D=c,C=u,T=E,P=2994)),(P|0)==2994&&(L=kn(D<<2)|0,I=D,x=C,B=T),T=L+(B<<2)|0,C=L+(I<<2)|0,(f|0)==(k|0))H=T,U=o,z=r;else{r=f,f=T;do(f|0)==0?Y=0:(E_[f>>2]=E_[r>>2],Y=f),f=Y+4|0,r=r+4|0;while((r|0)!=(k|0));H=f,U=E_[n>>2]|0,z=E_[_>>2]|0}return f=x-U|0,k=L+(B-(f>>2)<<2)|0,B=k,L=U,yn(B|0,L|0,f)|0,f=z-x|0,x=f>>2,z=H,L=s,yn(z|0,L|0,f)|0,f=E_[n>>2]|0,E_[n>>2]=k,E_[_>>2]=H+(x<<2),E_[a>>2]=C,(f|0)==0?(d=T,h=e|0,E_[h>>2]=d,void(O_=t)):(hn(f),d=T,h=e|0,E_[h>>2]=d,void(O_=t))}function Du(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;if(i=e+8|0,f=e+4|0,a=E_[f>>2]|0,t=E_[i>>2]|0,n=a,t-n>>2>>>0>=r>>>0){o=r,u=a;do(u|0)==0?l=0:(E_[u>>2]=0,l=E_[f>>2]|0),u=l+4|0,E_[f>>2]=u,o=o-1|0;while((o|0)!=0)}else{o=e|0,e=E_[o>>2]|0,u=n-e>>2,n=u+r|0,n>>>0>1073741823&&cf(0),l=t-e|0,l>>2>>>0>536870910?(s=1073741823,b=3016):(e=l>>1,l=e>>>0<n>>>0?n:e,(l|0)==0?(k=0,c=0):(s=l,b=3016)),(b|0)==3016&&(k=kn(s<<2)|0,c=s),s=r,r=k+(u<<2)|0;do(r|0)==0?d=0:(E_[r>>2]=0,d=r),r=d+4|0,s=s-1|0;while((s|0)!=0);s=k+(c<<2)|0,c=E_[o>>2]|0,d=(E_[f>>2]|0)-c|0,b=k+(u-(d>>2)<<2)|0,u=b,k=c,yn(u|0,k|0,d)|0,E_[o>>2]=b,E_[f>>2]=r,E_[i>>2]=s,(c|0)!=0&&hn(k)}}function Cu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;i=e+4|0,f=e|0,a=E_[f>>2]|0,t=a,n=(E_[i>>2]|0)-t|0,o=n>>2,u=o+1|0,u>>>0>1073741823&&cf(0),l=e+8|0,e=(E_[l>>2]|0)-t|0,e>>2>>>0>536870910?(s=1073741823,b=3031):(t=e>>1,e=t>>>0<u>>>0?u:t,(e|0)==0?(k=0,c=0):(s=e,b=3031)),(b|0)==3031&&(k=kn(s<<2)|0,c=s),s=k+(o<<2)|0,o=k+(c<<2)|0,(s|0)!=0&&(E_[s>>2]=E_[r>>2]),r=k+(u<<2)|0,u=k,s=a,yn(u|0,s|0,n)|0,E_[f>>2]=k,E_[i>>2]=r,E_[l>>2]=o,(a|0)!=0&&hn(s)}function Tu(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;if(t=O_,O_=O_+8|0,n=t|0,Zo(e|0,r,i,f,a),a=e+16|0,f=e+12|0,i=e+4|0,Ho(a,(E_[f>>2]|0)+1-(E_[i>>2]|0)|0),((E_[f>>2]|0)+1-(E_[i>>2]|0)|0)<=0)return void(O_=t);r=a|0,a=e+8|0,o=e|0,e=0;do{u=E_[r>>2]|0,l=u+(e*12|0)|0,s=(E_[a>>2]|0)+1-(E_[o>>2]|0)|0,m_[n]=0,b=u+(e*12|0)+4|0,u=E_[b>>2]|0,k=E_[l>>2]|0,c=u-k|0;do if(c>>>0<s>>>0)Yo(l,s-c|0,n);else{if(c>>>0<=s>>>0)break;if(d=k+s|0,(d|0)==(u|0))break;E_[b>>2]=d}while(0);e=e+1|0}while((e|0)<((E_[f>>2]|0)+1-(E_[i>>2]|0)|0));O_=t}function Pu(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;if(f=e,a=i,E_[f>>2]=E_[a>>2],E_[f+4>>2]=E_[a+4>>2],E_[f+8>>2]=E_[a+8>>2],E_[f+12>>2]=E_[a+12>>2],a=e+16|0,Ho(a,(E_[i+12>>2]|0)+1-(E_[i+4>>2]|0)|0),Jo(r|0,i)|0||Xb(616),i=e|0,f=E_[i>>2]|0,t=f-(E_[r>>2]|0)|0,n=e+4|0,o=E_[n>>2]|0,u=o-(E_[r+4>>2]|0)|0,l=e+12|0,!(((E_[l>>2]|0)+1-o|0)<=0))for(o=a|0,a=e+8|0,e=r+16|0,r=0,s=E_[a>>2]|0,b=f;;){f=E_[o>>2]|0,k=f+(r*12|0)|0,c=s+1-b|0,d=f+(r*12|0)+4|0,f=E_[d>>2]|0,h=E_[k>>2]|0,_=f-h|0;do if(_>>>0<c>>>0)xo(k,c-_|0);else{if(_>>>0<=c>>>0)break;if(w=h+c|0,(w|0)==(f|0))break;E_[d>>2]=w}while(0);if(d=E_[a>>2]|0,f=E_[i>>2]|0,(d+1-f|0)>0)for(c=(E_[e>>2]|0)+((u+r|0)*12|0)|0,h=(E_[o>>2]|0)+(r*12|0)|0,_=0;;){if(m_[(E_[h>>2]|0)+_|0]=m_[(E_[c>>2]|0)+(t+_)|0]|0,k=_+1|0,w=E_[a>>2]|0,v=E_[i>>2]|0,!((k|0)<(w+1-v|0))){m=w,p=v;break}_=k}else m=d,p=f;if(_=r+1|0,!((_|0)<((E_[l>>2]|0)+1-(E_[n>>2]|0)|0)))break;r=_,s=m,b=p}}function Lu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;if(i=O_,O_=O_+24|0,f=i|0,a=i+8|0,t=i+16|0,n=e|0,o=e|0,u=E_[o>>2]|0,(u|0)==(r|0))return void(O_=i);l=(E_[e+12>>2]|0)-(E_[e+4>>2]|0)|0,s=(l|0)>-1;e:do if((u|0)>(r|0)){if(!s)break;for(b=e+16|0,k=f|0,c=l,d=u;;){if(h=(E_[b>>2]|0)+(c*12|0)|0,E_[k>>2]=E_[h>>2],m_[a]=0,Iu(t,h,f,d-r|0,a),(c|0)<=0)break e;c=c-1|0,d=E_[o>>2]|0}}else{if(!s)break;for(d=e+16|0,c=l,k=u;;){b=E_[d>>2]|0,h=E_[b+(c*12|0)>>2]|0;do if((k|0)!=(r|0)){if(_=h+(r-k)|0,w=b+(c*12|0)+4|0,v=(E_[w>>2]|0)-_|0,On(h|0,_|0,v|0)|0,_=h+v|0,(_|0)==(E_[w>>2]|0))break;E_[w>>2]=_}while(0);if((c|0)<=0)break e;c=c-1|0,k=E_[o>>2]|0}}while(0);jo(n,r),O_=i}function Iu(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0;if(t=O_,n=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[n>>2],n=r|0,o=E_[n>>2]|0,u=o,l=(E_[i>>2]|0)-u|0,i=o+l|0,(f|0)==0)return s=i,b=e|0,E_[b>>2]=s,void(O_=t);if(k=r+8|0,c=r+4|0,r=E_[c>>2]|0,d=E_[k>>2]|0,h=r,(d-h|0)>>>0<f>>>0){_=h-u+f|0,(_|0)<0&&cf(0),w=d-u|0,w>>>0>1073741822?(v=2147483647,m=i,p=3127):(u=w<<1,w=u>>>0<_>>>0?_:u,u=i,(w|0)==0?(E=0,S=0,g=u):(v=w,m=u,p=3127)),(p|0)==3127&&(E=kn(v)|0,S=v,g=m),m=E+l|0,v=f,p=m;do(p|0)==0?y=0:(m_[p]=m_[a]|0,y=p),p=y+1|0,v=v-1|0;while((v|0)!=0);return v=E+S|0,S=E_[n>>2]|0,u=g-S|0,w=E+(l-u)|0,yn(w|0,S|0,u)|0,u=(E_[c>>2]|0)-g|0,yn(p|0,i|0,u)|0,p=E_[n>>2]|0,E_[n>>2]=w,E_[c>>2]=y+(u+1),E_[k>>2]=v,(p|0)==0?(s=m,b=e|0,E_[b>>2]=s,void(O_=t)):(hn(p),s=m,b=e|0,E_[b>>2]=s,void(O_=t))}if(m=h-i|0,m>>>0<f>>>0)for(h=f-m|0,p=r;;){if((p|0)==0?A=0:(m_[p]=m_[a]|0,A=E_[c>>2]|0),v=A+1|0,E_[c>>2]=v,k=h-1|0,(k|0)==0){O=m,R=v;break}h=k,p=v}else O=f,R=r;if((O|0)==0)return s=i,b=e|0,E_[b>>2]=s,void(O_=t);if(p=R-(o+(l+f))|0,h=o+(p+l)|0,h>>>0<r>>>0){l=h,h=R;do(h|0)==0?F=0:(m_[h]=m_[l]|0,F=E_[c>>2]|0),l=l+1|0,h=F+1|0,E_[c>>2]=h;while(l>>>0<r>>>0)}r=R+(-p|0)|0,On(r|0,i|0,p|0)|0;do if(i>>>0>a>>>0)M=a;else{if((E_[c>>2]|0)>>>0<=a>>>0){M=a;break}M=a+f|0}while(0);f=m_[M]|0,An(i|0,f|0,O|0)|0,s=i,b=e|0,E_[b>>2]=s,O_=t}function xu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;if(i=O_,O_=O_+56|0,f=i|0,a=i+8|0,t=i+24|0,n=i+32|0,o=i+40|0,u=i+48|0,l=e|0,s=E_[e+4>>2]|0,(s|0)==(r|0))return void(O_=i);b=e+16|0,k=E_[b>>2]|0;do if((s|0)>(r|0)){if(E_[f>>2]=k,c=s-r|0,d=E_[e>>2]|0,h=(E_[e+8>>2]|0)+1|0,_=h-d|0,w=a|0,E_[w>>2]=0,v=a+4|0,E_[v>>2]=0,m=a+8|0,E_[m>>2]=0,(h|0)!=(d|0)){(_|0)<0&&cf(0),d=kn(_)|0,E_[v>>2]=d,E_[w>>2]=d,E_[m>>2]=d+_,m=_,_=d;do(_|0)==0?p=0:(m_[_]=0,p=E_[v>>2]|0),_=p+1|0,E_[v>>2]=_,m=m-1|0;while((m|0)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]|0)+12|0,E_[d>>2]=y,g=p-1|0,(g|0)==0){D=w,C=y;break e}p=g,E=y}cf(0)}else D=f,C=r;while(0);if((D|0)==0)return b=s,k=e|0,E_[k>>2]=b,void(O_=t);w=o+((i+f|0)*12|0)|0,F=o+((((C-w|0)/12|0)+i|0)*12|0)|0;e:do if(F>>>0<r>>>0){i=F,o=C;r:for(;;){if((o|0)==0)T=0;else{M=o|0,E_[M>>2]=0,N=o+4|0,E_[N>>2]=0,E=o+8|0,E_[E>>2]=0,p=i+4|0,v=E_[p>>2]|0,m=i|0,y=E_[m>>2]|0;do if((v|0)!=(y|0)){if(g=v-y|0,(g|0)<0)break r;if(O=kn(g)|0,E_[N>>2]=O,E_[M>>2]=O,E_[E>>2]=O+g,g=E_[m>>2]|0,R=E_[p>>2]|0,(g|0)==(R|0))break;P=g,L=O;do(L|0)==0?I=0:(m_[L]=m_[P]|0,I=E_[N>>2]|0),L=I+1|0,E_[N>>2]=L,P=P+1|0;while((P|0)!=(R|0))}while(0);T=E_[d>>2]|0}if(i=i+12|0,o=T+12|0,E_[d>>2]=o,i>>>0>=r>>>0)break e}cf(0)}while(0);if((C|0)!=(w|0))for(w=C,C=F;;){if(F=w-12|0,r=C-12|0,(w|0)!=(C|0)&&Io(F,E_[r>>2]|0,E_[C-12+4>>2]|0),(r|0)==(s|0))break;w=F,C=r}do if(s>>>0>a>>>0)x=a;else{if((E_[d>>2]|0)>>>0<=a>>>0){x=a;break}x=a+(f*12|0)|0}while(0);for(C=x|0,w=x+4|0,r=D,D=s;;){if((D|0)!=(x|0)&&Io(D,E_[C>>2]|0,E_[w>>2]|0),F=r-1|0,(F|0)==0){b=s;break}r=F,D=D+12|0}return k=e|0,E_[k>>2]=b,void(O_=t)}D=((_-u|0)/12|0)+f|0,D>>>0>357913941&&cf(0),_=(h-u|0)/12|0,_>>>0>178956969?(B=357913941,H=(l|0)/12|0,U=3230):(u=_<<1,_=u>>>0<D>>>0?D:u,u=(l|0)/12|0,(_|0)==0?(z=0,Y=0,V=u):(B=_,H=u,U=3230)),(U|0)==3230&&(z=kn(B*12|0)|0,Y=B,V=H),H=z+(V*12|0)|0,V=z+(Y*12|0)|0,Y=a+4|0,z=a|0,a=f,f=H;e:do{do if((f|0)==0)Z=0;else{if(B=f|0,E_[B>>2]=0,u=f+4|0,E_[u>>2]=0,_=f+8|0,E_[_>>2]=0,l=E_[Y>>2]|0,D=E_[z>>2]|0,(l|0)==(D|0)){Z=f;break}if(h=l-D|0,(h|0)<0){U=3235;break e}if(D=kn(h)|0,E_[u>>2]=D,E_[B>>2]=D,E_[_>>2]=D+h,h=E_[z>>2]|0,_=E_[Y>>2]|0,(h|0)==(_|0)){Z=f;break}for(j=h,q=D;;){if((q|0)==0?W=0:(m_[q]=m_[j]|0,W=E_[u>>2]|0),D=W+1|0,E_[u>>2]=D,h=j+1|0,(h|0)==(_|0)){Z=f;break}j=h,q=D}}while(0);f=Z+12|0,a=a-1|0}while((a|0)!=0);(U|0)==3235&&cf(0),a=E_[n>>2]|0;e:do if((a|0)==(s|0))K=H;else{Z=s,q=H;r:for(;;){j=q-12|0,W=Z-12|0;do if((j|0)!=0){if(Y=j|0,E_[Y>>2]=0,z=q-12+4|0,E_[z>>2]=0,_=q-12+8|0,E_[_>>2]=0,u=Z-12+4|0,D=E_[u>>2]|0,h=W|0,B=E_[h>>2]|0,(D|0)==(B|0))break;if(l=D-B|0,(l|0)<0)break r;if(B=kn(l)|0,E_[z>>2]=B,E_[Y>>2]=B,E_[_>>2]=B+l,l=E_[h>>2]|0,h=E_[u>>2]|0,(l|0)==(h|0))break;X=l,G=B;do(G|0)==0?Q=0:(m_[G]=m_[X]|0,Q=E_[z>>2]|0),G=Q+1|0,E_[z>>2]=G,X=X+1|0;while((X|0)!=(h|0))}while(0);if((W|0)==(a|0)){K=j;break e}Z=W,q=j}cf(0)}while(0);a=E_[d>>2]|0;do if((a|0)==(s|0))J=f,$=s;else{X=s,G=f;e:for(;;){do if((G|0)==0)er=0;else{if(Q=G|0,E_[Q>>2]=0,q=G+4|0,E_[q>>2]=0,Z=G+8|0,E_[Z>>2]=0,h=X+4|0,z=E_[h>>2]|0,B=X|0,l=E_[B>>2]|0,(z|0)==(l|0)){er=G;break}if(u=z-l|0,(u|0)<0)break e;if(l=kn(u)|0,E_[q>>2]=l,E_[Q>>2]=l,E_[Z>>2]=l+u,u=E_[B>>2]|0,B=E_[h>>2]|0,(u|0)==(B|0)){er=G;break}for(rr=u,ir=l;;){if((ir|0)==0?fr=0:(m_[ir]=m_[rr]|0,fr=E_[q>>2]|0),l=fr+1|0,E_[q>>2]=l,u=rr+1|0,(u|0)==(B|0)){er=G;break}rr=u,ir=l}}while(0);if(j=X+12|0,ar=er+12|0,(j|0)==(a|0)){U=3285;break}X=j,G=ar}if((U|0)==3285){J=ar,$=E_[d>>2]|0;break}cf(0)}while(0);if(ar=E_[n>>2]|0,E_[n>>2]=K,E_[d>>2]=J,E_[c>>2]=V,(ar|0)!=($|0))for(V=$;;){if($=V-12|0,c=E_[$>>2]|0,(c|0)!=0&&(J=V-12+4|0,(c|0)!=(E_[J>>2]|0)&&(E_[J>>2]=c),hn(c)),(ar|0)==($|0))break;V=$}return(ar|0)==0?(b=H,k=e|0,E_[k>>2]=b,void(O_=t)):(hn(ar),b=H,k=e|0,E_[k>>2]=b,void(O_=t))}function Hu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0;if(i=O_,O_=O_+8|0,f=i|0,a=e+8|0,(E_[a>>2]|0)==(r|0))return void(O_=i);if(Wo(e|0,r),r=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,(r|0)<=0)return void(O_=i);t=e+16|0,n=e|0,e=r;do{e=e-1|0,r=E_[t>>2]|0,o=r+(e*12|0)|0,u=(E_[a>>2]|0)+1-(E_[n>>2]|0)|0,m_[f]=0,l=r+(e*12|0)+4|0,r=E_[l>>2]|0,s=E_[o>>2]|0,b=r-s|0;do if(b>>>0<u>>>0)Yo(o,u-b|0,f);else{if(b>>>0<=u>>>0)break;if(k=s+u|0,(k|0)==(r|0))break;E_[l>>2]=k}while(0)}while((e|0)>0);O_=i}function Uu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0;if(i=O_,O_=O_+8|0,f=i|0,a=e+12|0,t=E_[a>>2]|0,(t|0)==(r|0))return void(O_=i);n=e+4|0,o=t+1-(E_[n>>2]|0)|0,Ko(e|0,r),r=e+16|0,t=(E_[a>>2]|0)+1-(E_[n>>2]|0)|0,u=e+20|0,l=E_[u>>2]|0,s=r|0,b=E_[s>>2]|0,k=(l-b|0)/12|0;do if(k>>>0<t>>>0)Oo(r,t-k|0);else{if(k>>>0<=t>>>0)break;if(c=b+(t*12|0)|0,(c|0)==(l|0))break;for(d=l;;){if(h=d-12|0,E_[u>>2]=h,_=E_[h>>2]|0,(_|0)==0?w=h:(h=d-12+4|0,(_|0)!=(E_[h>>2]|0)&&(E_[h>>2]=_),hn(_),w=E_[u>>2]|0),(c|0)==(w|0))break;d=w}}while(0);if((o|0)>=((E_[a>>2]|0)+1-(E_[n>>2]|0)|0))return void(O_=i);w=e+8|0,d=e|0,e=o;do{o=E_[s>>2]|0,u=o+(e*12|0)|0,l=(E_[w>>2]|0)+1-(E_[d>>2]|0)|0,m_[f]=0,t=o+(e*12|0)+4|0,o=E_[t>>2]|0,b=E_[u>>2]|0,k=o-b|0;do if(k>>>0<l>>>0)Yo(u,l-k|0,f);else{if(k>>>0<=l>>>0)break;if(r=b+l|0,(r|0)==(o|0))break;E_[t>>2]=r}while(0);e=e+1|0}while((e|0)<((E_[a>>2]|0)+1-(E_[n>>2]|0)|0));O_=i}function zu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0;if(Yu(e,r|0),i=r+4|0,f=E_[i>>2]|0,a=r+12|0,t=E_[a>>2]|0,!((f|0)>(t|0)))for(n=r|0,o=r+8|0,u=r+16|0,r=e+4|0,l=e+16|0,s=e|0,e=f,f=E_[o>>2]|0,b=t;;){if(t=E_[n>>2]|0,(t|0)>(f|0))k=f,c=b;else{for(d=t,h=f,_=t;;){if((m_[(E_[(E_[u>>2]|0)+((e-(E_[i>>2]|0)|0)*12|0)>>2]|0)+(d-_)|0]|0)==0?w=h:(m_[(E_[(E_[l>>2]|0)+((e-(E_[r>>2]|0)|0)*12|0)>>2]|0)+(d-(E_[s>>2]|0))|0]=1,w=E_[o>>2]|0),t=d+1|0,(t|0)>(w|0))break;d=t,h=w,_=E_[n>>2]|0}k=w,c=E_[a>>2]|0}if(_=e+1|0,(_|0)>(c|0))break;e=_,f=k,b=c}}function Yu(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;i=O_,O_=O_+8|0,f=i|0,a=E_[r>>2]|0,t=e|0,n=e|0,(a|0)<(E_[n>>2]|0)&&Lu(e,a),a=E_[r+4>>2]|0,o=e+4|0,(a|0)<(E_[o>>2]|0)&&xu(e,a),a=E_[r+8>>2]|0,u=e+8|0,l=E_[u>>2]|0;do if((a|0)>(l|0)){if((l|0)==(a|0))break;if(Wo(t,a),s=(E_[e+12>>2]|0)+1-(E_[o>>2]|0)|0,(s|0)<=0)break;b=e+16|0,k=s;do{k=k-1|0,s=E_[b>>2]|0,c=s+(k*12|0)|0,d=(E_[u>>2]|0)+1-(E_[n>>2]|0)|0,m_[f]=0,h=s+(k*12|0)+4|0,s=E_[h>>2]|0,_=E_[c>>2]|0,w=s-_|0;do if(w>>>0<d>>>0)Yo(c,d-w|0,f);else{if(w>>>0<=d>>>0)break;if(v=_+d|0,(v|0)==(s|0))break;E_[h>>2]=v}while(0)}while((k|0)>0)}while(0);return f=E_[r+12>>2]|0,(f|0)<=(E_[e+12>>2]|0)?void(O_=i):(Uu(e,f),void(O_=i))}function Vu(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;f=O_,O_=O_+8|0,a=f|0,t=e|0,n=e+8|0,o=E_[n>>2]|0;do if((o|0)<(i|0)){if((o|0)==(i|0))break;if(Wo(t,i),u=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,(u|0)<=0)break;l=e+16|0,s=e|0,b=u;do{b=b-1|0,u=E_[l>>2]|0,k=u+(b*12|0)|0,c=(E_[n>>2]|0)+1-(E_[s>>2]|0)|0,m_[a]=0,d=u+(b*12|0)+4|0,u=E_[d>>2]|0,h=E_[k>>2]|0,_=u-h|0;do if(_>>>0<c>>>0)Yo(k,c-_|0,a);else{if(_>>>0<=c>>>0)break;if(w=h+c|0,(w|0)==(u|0))break;E_[d>>2]=w}while(0)}while((b|0)>0)}else{if((E_[e>>2]|0)<=(i|0))break;Lu(e,i)}while(0);do if((E_[e+12>>2]|0)<(r|0))Uu(e,r),v=e+4|0;else{if(a=e+4|0,(E_[a>>2]|0)<=(r|0)){v=a;break}xu(e,r),v=a}while(0);m_[(E_[(E_[e+16>>2]|0)+((r-(E_[v>>2]|0)|0)*12|0)>>2]|0)+(i-(E_[e>>2]|0))|0]=1,O_=f}function Zu(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0;r=E_[e+4>>2]|0,i=e+12|0,f=E_[i>>2]|0;e:do if((r|0)>(f|0))a=r;else for(t=E_[e>>2]|0,n=E_[e+8>>2]|0,o=e+16|0,u=r;;){for(l=t;;){if((l|0)>(n|0))break;if((m_[(E_[(E_[o>>2]|0)+((u-r|0)*12|0)>>2]|0)+(l-t)|0]|0)!=0){a=u;break e}l=l+1|0}if(l=u+1|0,(l|0)>(f|0)){a=l;break}u=l}while(0);if((f|0)<(a|0))return s=0,s|0;u=E_[e>>2]|0,t=E_[e+8>>2]|0,o=e+16|0,n=f;e:for(;;){for(l=u;;){if((l|0)>(t|0))break;if((m_[(E_[(E_[o>>2]|0)+((n-r|0)*12|0)>>2]|0)+(l-u)|0]|0)!=0)break e;l=l+1|0}if(l=n-1|0,(l|0)<(a|0)){s=0,b=3411;break}n=l}return(b|0)==3411?s|0:((a|0)>(r|0)?(xu(e,a),k=E_[i>>2]|0):k=f,(n|0)>=(k|0)?(s=1,s|0):(Uu(e,n),s=1,s|0))}function ju(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0;r=O_,O_=O_+8|0,i=r|0,f=e|0,a=e|0,t=E_[a>>2]|0,n=e+8|0,o=E_[n>>2]|0;e:do if((t|0)>(o|0))u=t;else for(l=E_[e+4>>2]|0,s=E_[e+12>>2]|0,b=e+16|0,k=t;;){for(c=l;;){if((c|0)>(s|0))break;if((m_[(E_[(E_[b>>2]|0)+((c-l|0)*12|0)>>2]|0)+(k-t)|0]|0)!=0){u=k;break e}c=c+1|0}if(c=k+1|0,(c|0)>(o|0)){u=c;break}k=c}while(0);e:do if((o|0)<(u|0))d=o;else for(k=E_[e+4>>2]|0,l=E_[e+12>>2]|0,b=e+16|0,s=o;;){for(c=k;;){if((c|0)>(l|0))break;if((m_[(E_[(E_[b>>2]|0)+((c-k|0)*12|0)>>2]|0)+(s-t)|0]|0)!=0){d=s;break e}c=c+1|0}if(c=s-1|0,(c|0)<(u|0)){d=c;break}s=c}while(0);if((u|0)>=(d|0))return h=0,O_=r,h|0;if((u|0)>(t|0)?(Lu(e,u),_=E_[n>>2]|0):_=o,(d|0)>=(_|0))return h=1,O_=r,h|0;if((_|0)==(d|0))return h=1,O_=r,h|0;if(Wo(f,d),d=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,(d|0)<=0)return h=1,O_=r,h|0;for(f=e+16|0,e=d;;){d=e-1|0,_=E_[f>>2]|0,o=_+(d*12|0)|0,u=(E_[n>>2]|0)+1-(E_[a>>2]|0)|0,m_[i]=0,t=_+(d*12|0)+4|0,_=E_[t>>2]|0,s=E_[o>>2]|0,k=_-s|0;do if(k>>>0<u>>>0)Yo(o,u-k|0,i);else{if(k>>>0<=u>>>0)break;if(b=s+u|0,(b|0)==(_|0))break;E_[t>>2]=b}while(0);if(!((d|0)>0)){h=1;break}e=d}return O_=r,h|0}function qu(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(r=E_[e+4>>2]|0,i=E_[e+12>>2]|0,(r|0)>(i|0))return f=0,f|0;if(a=E_[e>>2]|0,t=E_[e+8>>2]|0,n=e+16|0,(a|0)>(t|0)){for(e=r;;){if(o=e+1|0,(o|0)>(i|0)){f=0;break}e=o}return f|0}for(u=0,l=r;;){e=E_[(E_[n>>2]|0)+((l-r|0)*12|0)>>2]|0,o=u,s=a;do o=((m_[e+(s-a)|0]|0)!=0)+o|0,s=s+1|0;while((s|0)<=(t|0));if(s=l+1|0,(s|0)>(i|0)){f=o;break}u=o,l=s}return f|0}function Wu(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0;if(r=E_[e+12>>2]|0,i=E_[e+4>>2]|0,f=r+1-i|0,a=E_[e+8>>2]|0,t=E_[e>>2]|0,n=a+1-t|0,o=((n|0)<(f|0)?n:f)*29|0,f=(o|0)/100|0,n=f+t|0,u=a-f|0,l=(o|0)>99)for(o=e+16|0,s=0,b=0;;){if(k=n-s|0,c=s+u|0,(k|0)>(c|0))d=b;else for(h=E_[(E_[o>>2]|0)+(s*12|0)>>2]|0,_=k,k=b;;){if(w=((m_[h+(_-t)|0]|0)!=0)+k|0,v=_+1|0,(v|0)>(c|0)){d=w;break}_=v,k=w}if(k=s+1|0,!((k|0)<(f|0))){m=d;break}s=k,b=d}else m=0;d=i+f|0,b=r-f|0;e:do if((d|0)>(b|0))p=m;else{if(s=e+16|0,(t|0)>(a|0))for(o=d;;){if(k=o+1|0,(k|0)>(b|0)){p=m;break e}o=k}else E=d,S=m;for(;;){o=E_[(E_[s>>2]|0)+((E-i|0)*12|0)>>2]|0,k=t,_=S;do _=((m_[o+(k-t)|0]|0)!=0)+_|0,k=k+1|0;while((k|0)<=(a|0));if(k=E+1|0,(k|0)>(b|0)){p=_;break}E=k,S=_}}while(0);if(!l)return g=p,g|0;for(l=e+16|0,e=p,p=f;;){if(f=p-1|0,S=n-f|0,E=f+u|0,(S|0)>(E|0))y=e;else for(b=E_[(E_[l>>2]|0)+((r+(1-p)-i|0)*12|0)>>2]|0,a=e,m=S;;){if(S=((m_[b+(m-t)|0]|0)!=0)+a|0,d=m+1|0,(d|0)>(E|0)){y=S;break}a=S,m=d}if(!((f|0)>0)){g=y;break}e=y,p=f}return g|0}function Ku(e){e|=0;var r=0,i=0;return r=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,i=(E_[e+8>>2]|0)+1-(E_[e>>2]|0)|0,e=(((i|0)<(r|0)?i:r)*29|0|0)/100|0,(J_(i,r)|0)-(J_(e<<1,e+1|0)|0)|0}function Xu(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0;for(a=E_[e>>2]|0,t=e+4|0,n=e+16|0,e=i;;){if((e|0)<=(a|0)){o=3481;break}if(i=e-1|0,!((m_[(E_[(E_[n>>2]|0)+((r-(E_[t>>2]|0)|0)*12|0)>>2]|0)+(i-a)|0]|0)!=0^f)){o=3480;break}e=i}return(o|0)==3481?e|0:(o|0)==3480?e|0:0}function Gu(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0;for(a=E_[e+4>>2]|0,t=e+16|0,n=e|0,e=r;;){if((e|0)<=(a|0)){o=3487;break}if(r=e-1|0,!((m_[(E_[(E_[t>>2]|0)+((r-a|0)*12|0)>>2]|0)+(i-(E_[n>>2]|0))|0]|0)!=0^f)){o=3486;break}e=r}return(o|0)==3487?e|0:(o|0)==3486?e|0:0}function Qu(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0;for(a=E_[e+8>>2]|0,t=e+4|0,n=e+16|0,o=e|0,e=i;;){if((e|0)>=(a|0)){u=3493;break}if(i=e+1|0,!((m_[(E_[(E_[n>>2]|0)+((r-(E_[t>>2]|0)|0)*12|0)>>2]|0)+(i-(E_[o>>2]|0))|0]|0)!=0^f)){u=3492;break}e=i}return(u|0)==3493?e|0:(u|0)==3492?e|0:0}function Ju(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0;for(a=E_[e+12>>2]|0,t=e+4|0,n=e+16|0,o=e|0,e=r;;){if((e|0)>=(a|0)){u=3499;break}if(r=e+1|0,!((m_[(E_[(E_[n>>2]|0)+((r-(E_[t>>2]|0)|0)*12|0)>>2]|0)+(i-(E_[o>>2]|0))|0]|0)!=0^f)){u=3498;break}e=r}return(u|0)==3499?e|0:(u|0)==3498?e|0:0}function $u(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0;if(f=E_[e+4>>2]|0,a=E_[e+16>>2]|0,t=E_[e>>2]|0,n=i-t|0,(m_[(E_[a+((r-f|0)*12|0)>>2]|0)+n|0]|0)!=0)return o=0,o|0;for(u=f+1|0,l=r;;){if((l|0)<=(u|0))break;if(s=l-1|0,(m_[(E_[a+((s-f|0)*12|0)>>2]|0)+n|0]|0)!=0)break;l=s}for(u=(E_[e+12>>2]|0)-1|0,e=r;;){if((e|0)>=(u|0))break;if(r=e+1|0,(m_[(E_[a+((r-f|0)*12|0)>>2]|0)+n|0]|0)!=0)break;e=r}e:do if((l|0)>(e|0))b=i;else{n=i,r=l,s=e;r:for(;;){if(k=n-1|0,(k|0)<(t|0)){b=k;break e}for(c=(r|0)>(f+1|0)?(((m_[(E_[a+((r-f|0)*12|0)>>2]|0)+(k-t)|0]|0)==0)<<31>>31)+r|0:r,d=(s|0)<(u|0)?((m_[(E_[a+((s-f|0)*12|0)>>2]|0)+(k-t)|0]|0)==0)+s|0:s,h=c;;){if((h|0)>(d|0)){_=d;break}if((m_[(E_[a+((h-f|0)*12|0)>>2]|0)+(k-t)|0]|0)==0){_=d;break}h=h+1|0}for(;;){if((h|0)>(_|0)){b=k;break e}if((m_[(E_[a+((_-f|0)*12|0)>>2]|0)+(k-t)|0]|0)==0){n=k,r=h,s=_;continue r}_=_-1|0}}}while(0);return o=(b|0)<(t|0),o|0}function el(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0;if(f=E_[e+4>>2]|0,a=E_[e+16>>2]|0,t=E_[e>>2]|0,n=E_[a+((r-f|0)*12|0)>>2]|0,(m_[n+(i-t)|0]|0)!=0)return o=0,o|0;for(u=t+1|0,l=i;;){if((l|0)<=(u|0))break;if(s=l-1|0,(m_[n+(s-t)|0]|0)!=0)break;l=s}for(u=(E_[e+8>>2]|0)-1|0,e=i;;){if((e|0)>=(u|0))break;if(i=e+1|0,(m_[n+(i-t)|0]|0)!=0)break;e=i}e:do if((l|0)>(e|0))b=r;else{n=r,i=l,s=e;r:for(;;){if(k=n-1|0,(k|0)<(f|0)){b=k;break e}for(c=(i|0)>(t+1|0)?(((m_[(E_[a+((k-f|0)*12|0)>>2]|0)+(i-t)|0]|0)==0)<<31>>31)+i|0:i,d=(s|0)<(u|0)?((m_[(E_[a+((k-f|0)*12|0)>>2]|0)+(s-t)|0]|0)==0)+s|0:s,h=c;;){if((h|0)>(d|0)){_=d;break}if((m_[(E_[a+((k-f|0)*12|0)>>2]|0)+(h-t)|0]|0)==0){_=d;break}h=h+1|0}for(;;){if((h|0)>(_|0)){b=k;break e}if((m_[(E_[a+((k-f|0)*12|0)>>2]|0)+(_-t)|0]|0)==0){n=k,i=h,s=_;continue r}_=_-1|0}}}while(0);return o=(b|0)<(f|0),o|0}function rl(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0;if(f=E_[e+4>>2]|0,a=E_[e+16>>2]|0,t=E_[e>>2]|0,n=i-t|0,(m_[(E_[a+((r-f|0)*12|0)>>2]|0)+n|0]|0)!=0)return o=0,o|0;for(u=f+1|0,l=r;;){if((l|0)<=(u|0))break;if(s=l-1|0,(m_[(E_[a+((s-f|0)*12|0)>>2]|0)+n|0]|0)!=0)break;
l=s}for(u=(E_[e+12>>2]|0)-1|0,s=r;;){if((s|0)>=(u|0))break;if(r=s+1|0,(m_[(E_[a+((r-f|0)*12|0)>>2]|0)+n|0]|0)!=0)break;s=r}n=E_[e+8>>2]|0;e:do if((l|0)>(s|0))b=i;else{e=i,r=l,k=s;r:for(;;){if(c=e+1|0,(c|0)>(n|0)){b=c;break e}for(d=(r|0)>(f+1|0)?(((m_[(E_[a+((r-f|0)*12|0)>>2]|0)+(c-t)|0]|0)==0)<<31>>31)+r|0:r,h=(k|0)<(u|0)?((m_[(E_[a+((k-f|0)*12|0)>>2]|0)+(c-t)|0]|0)==0)+k|0:k,_=d;;){if((_|0)>(h|0)){w=h;break}if((m_[(E_[a+((_-f|0)*12|0)>>2]|0)+(c-t)|0]|0)==0){w=h;break}_=_+1|0}for(;;){if((_|0)>(w|0)){b=c;break e}if((m_[(E_[a+((w-f|0)*12|0)>>2]|0)+(c-t)|0]|0)==0){e=c,r=_,k=w;continue r}w=w-1|0}}}while(0);return o=(b|0)>(n|0),o|0}function il(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0;if(f=E_[e+4>>2]|0,a=E_[e+16>>2]|0,t=E_[e>>2]|0,n=E_[a+((r-f|0)*12|0)>>2]|0,(m_[n+(i-t)|0]|0)!=0)return o=0,o|0;for(u=t+1|0,l=i;;){if((l|0)<=(u|0))break;if(s=l-1|0,(m_[n+(s-t)|0]|0)!=0)break;l=s}for(u=(E_[e+8>>2]|0)-1|0,s=i;;){if((s|0)>=(u|0))break;if(i=s+1|0,(m_[n+(i-t)|0]|0)!=0)break;s=i}n=E_[e+12>>2]|0;e:do if((l|0)>(s|0))b=r;else{e=r,i=l,k=s;r:for(;;){if(c=e+1|0,(c|0)>(n|0)){b=c;break e}for(d=(i|0)>(t+1|0)?(((m_[(E_[a+((c-f|0)*12|0)>>2]|0)+(i-t)|0]|0)==0)<<31>>31)+i|0:i,h=(k|0)<(u|0)?((m_[(E_[a+((c-f|0)*12|0)>>2]|0)+(k-t)|0]|0)==0)+k|0:k,_=d;;){if((_|0)>(h|0)){w=h;break}if((m_[(E_[a+((c-f|0)*12|0)>>2]|0)+(_-t)|0]|0)==0){w=h;break}_=_+1|0}for(;;){if((_|0)>(w|0)){b=c;break e}if((m_[(E_[a+((c-f|0)*12|0)>>2]|0)+(w-t)|0]|0)==0){e=c,i=_,k=w;continue r}w=w-1|0}}}while(0);return o=(b|0)>(n|0),o|0}function fl(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0;if(f=O_,O_=O_+40|0,a=f|0,t=f+16|0,n=f+24|0,o=f+32|0,u=e+4|0,l=e+16|0,s=e|0,b=E_[s>>2]|0,(m_[(E_[(E_[l>>2]|0)+((r-(E_[u>>2]|0)|0)*12|0)>>2]|0)+(i-b)|0]|0)==0)return k=r,O_=f,k|0;for(c=a|0,E_[c>>2]=0,d=a+4|0,E_[d>>2]=0,h=a+8|0,E_[h>>2]=0,_=e+8|0,e=(E_[_>>2]|0)+1|0,w=e-b|0,(e|0)==(b|0)?v=i:(m=(e|0)==(b|0)?0:kn(w)|0,E_[c>>2]=m,E_[d>>2]=m,E_[h>>2]=m+w,v=i);;){if((v|0)<=(b|0))break;if(w=v-1|0,(m_[(E_[(E_[l>>2]|0)+((r-(E_[u>>2]|0)|0)*12|0)>>2]|0)+(w-b)|0]|0)==0){p=3599;break}v=w}do if((p|0)==3599){if(w=v-b|0,m_[t]=0,m=E_[d>>2]|0,h=E_[c>>2]|0,e=m-h|0,e>>>0<w>>>0){Yo(a,w-e|0,t);break}if(e>>>0<=w>>>0)break;if(e=h+w|0,(e|0)==(m|0))break;E_[d>>2]=e}while(0);for(t=E_[_>>2]|0,b=i;;){if((b|0)>=(t|0)){p=3606;break}if(i=b+1|0,v=E_[s>>2]|0,(m_[(E_[(E_[l>>2]|0)+((r-(E_[u>>2]|0)|0)*12|0)>>2]|0)+(i-v)|0]|0)==0){E=v;break}b=i}(p|0)==3606&&(E=E_[s>>2]|0),p=b-E+1|0,m_[n]=1,E=E_[d>>2]|0,i=E_[c>>2]|0,v=E-i|0;do if(v>>>0<p>>>0)Yo(a,p-v|0,n),S=E_[_>>2]|0;else{if(v>>>0<=p>>>0){S=t;break}if(e=i+p|0,(e|0)==(E|0)){S=t;break}E_[d>>2]=e,S=t}while(0);do if((b|0)<(S|0)){if(t=S+1-(E_[s>>2]|0)|0,m_[o]=0,E=E_[d>>2]|0,p=E_[c>>2]|0,i=E-p|0,i>>>0<t>>>0){Yo(a,t-i|0,o);break}if(i>>>0<=t>>>0)break;if(i=p+t|0,(i|0)==(E|0))break;E_[d>>2]=i}while(0);o=r-1|0;e:do if((o|0)<(E_[u>>2]|0))g=r;else for(a=r,S=o;;){if(b=E_[_>>2]|0,i=E_[s>>2]|0,!((b+1-i|0)>0)){g=a;break e}for(y=0,A=0,O=i,R=b;;){b=(E_[c>>2]|0)+A|0;do if((m_[b]|0)==0)F=y,M=R,N=O;else{if((m_[(E_[(E_[l>>2]|0)+((S-(E_[u>>2]|0)|0)*12|0)>>2]|0)+A|0]|0)!=0){F=1,M=R,N=O;break}m_[b]=0,F=y,M=E_[_>>2]|0,N=E_[s>>2]|0}while(0);if(b=A+1|0,!((b|0)<(M+1-N|0)))break;y=F,A=b,O=N,R=M}if(!F){g=a;break e}if(b=M+1-N|0,(b|0)>1)for(i=1,E=N,t=M;;){p=E_[c>>2]|0;do if((m_[p+(i-1)|0]|0)==0)D=t,C=E;else{if(v=p+i|0,(m_[v]|0)!=0){D=t,C=E;break}if((m_[(E_[(E_[l>>2]|0)+((S-(E_[u>>2]|0)|0)*12|0)>>2]|0)+i|0]|0)==0){D=t,C=E;break}m_[v]=1,D=E_[_>>2]|0,C=E_[s>>2]|0}while(0);if(p=i+1|0,v=D+1-C|0,!((p|0)<(v|0))){T=v;break}i=p,E=C,t=D}else T=b;t=T-2|0;r:do if((t|0)>-1)for(E=t;;){i=E_[c>>2]|0;do if((m_[i+(E+1)|0]|0)!=0){if(v=i+E|0,(m_[v]|0)!=0)break;if((m_[(E_[(E_[l>>2]|0)+((S-(E_[u>>2]|0)|0)*12|0)>>2]|0)+E|0]|0)==0)break;m_[v]=1}while(0);if((E|0)<=0)break r;E=E-1|0}while(0);if(t=S-1|0,(t|0)<(E_[u>>2]|0)){g=S;break}a=S,S=t}while(0);return u=E_[c>>2]|0,(u|0)==0?(k=g,O_=f,k|0):((u|0)!=(E_[d>>2]|0)&&(E_[d>>2]=u),hn(u),k=g,O_=f,k|0)}function al(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0;if(f=O_,O_=O_+40|0,a=f|0,t=f+16|0,n=f+24|0,o=f+32|0,u=e+4|0,l=e+16|0,s=e|0,b=E_[s>>2]|0,(m_[(E_[(E_[l>>2]|0)+((r-(E_[u>>2]|0)|0)*12|0)>>2]|0)+(i-b)|0]|0)==0)return k=r,O_=f,k|0;for(c=a|0,E_[c>>2]=0,d=a+4|0,E_[d>>2]=0,h=a+8|0,E_[h>>2]=0,_=e+8|0,w=(E_[_>>2]|0)+1|0,v=w-b|0,(w|0)==(b|0)?m=i:(p=(w|0)==(b|0)?0:kn(v)|0,E_[c>>2]=p,E_[d>>2]=p,E_[h>>2]=p+v,m=i);;){if((m|0)<=(b|0))break;if(v=m-1|0,(m_[(E_[(E_[l>>2]|0)+((r-(E_[u>>2]|0)|0)*12|0)>>2]|0)+(v-b)|0]|0)==0){E=3661;break}m=v}do if((E|0)==3661){if(v=m-b|0,m_[t]=0,p=E_[d>>2]|0,h=E_[c>>2]|0,w=p-h|0,w>>>0<v>>>0){Yo(a,v-w|0,t);break}if(w>>>0<=v>>>0)break;if(w=h+v|0,(w|0)==(p|0))break;E_[d>>2]=w}while(0);for(t=E_[_>>2]|0,b=i;;){if((b|0)>=(t|0)){E=3668;break}if(i=b+1|0,m=E_[s>>2]|0,(m_[(E_[(E_[l>>2]|0)+((r-(E_[u>>2]|0)|0)*12|0)>>2]|0)+(i-m)|0]|0)==0){S=m;break}b=i}(E|0)==3668&&(S=E_[s>>2]|0),E=b-S+1|0,m_[n]=1,S=E_[d>>2]|0,i=E_[c>>2]|0,m=S-i|0;do if(m>>>0<E>>>0)Yo(a,E-m|0,n),g=E_[_>>2]|0;else{if(m>>>0<=E>>>0){g=t;break}if(w=i+E|0,(w|0)==(S|0)){g=t;break}E_[d>>2]=w,g=t}while(0);do if((b|0)<(g|0)){if(t=g+1-(E_[s>>2]|0)|0,m_[o]=0,S=E_[d>>2]|0,E=E_[c>>2]|0,i=S-E|0,i>>>0<t>>>0){Yo(a,t-i|0,o);break}if(i>>>0<=t>>>0)break;if(i=E+t|0,(i|0)==(S|0))break;E_[d>>2]=i}while(0);o=r+1|0,a=e+12|0;e:do if((o|0)>(E_[a>>2]|0))y=r;else for(e=r,g=o;;){if(b=E_[_>>2]|0,i=E_[s>>2]|0,!((b+1-i|0)>0)){y=e;break e}for(A=0,O=0,R=i,F=b;;){b=(E_[c>>2]|0)+O|0;do if((m_[b]|0)==0)M=A,N=F,D=R;else{if((m_[(E_[(E_[l>>2]|0)+((g-(E_[u>>2]|0)|0)*12|0)>>2]|0)+O|0]|0)!=0){M=1,N=F,D=R;break}m_[b]=0,M=A,N=E_[_>>2]|0,D=E_[s>>2]|0}while(0);if(b=O+1|0,!((b|0)<(N+1-D|0)))break;A=M,O=b,R=D,F=N}if(!M){y=e;break e}if(b=N+1-D|0,(b|0)>1)for(i=1,S=D,t=N;;){E=E_[c>>2]|0;do if((m_[E+(i-1)|0]|0)==0)C=t,T=S;else{if(m=E+i|0,(m_[m]|0)!=0){C=t,T=S;break}if((m_[(E_[(E_[l>>2]|0)+((g-(E_[u>>2]|0)|0)*12|0)>>2]|0)+i|0]|0)==0){C=t,T=S;break}m_[m]=1,C=E_[_>>2]|0,T=E_[s>>2]|0}while(0);if(E=i+1|0,m=C+1-T|0,!((E|0)<(m|0))){P=m;break}i=E,S=T,t=C}else P=b;t=P-2|0;r:do if((t|0)>-1)for(S=t;;){i=E_[c>>2]|0;do if((m_[i+(S+1)|0]|0)!=0){if(m=i+S|0,(m_[m]|0)!=0)break;if((m_[(E_[(E_[l>>2]|0)+((g-(E_[u>>2]|0)|0)*12|0)>>2]|0)+S|0]|0)==0)break;m_[m]=1}while(0);if((S|0)<=0)break r;S=S-1|0}while(0);if(t=g+1|0,(t|0)>(E_[a>>2]|0)){y=g;break}e=g,g=t}while(0);return a=E_[c>>2]|0,(a|0)==0?(k=y,O_=f,k|0):((a|0)!=(E_[d>>2]|0)&&(E_[d>>2]=a),hn(a),k=y,O_=f,k|0)}function tl(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0;for(i=E_[e+4>>2]|0,f=((E_[e+12>>2]|0)+i|0)/2|0,a=e|0,t=e+8|0,n=e+16|0,o=i,u=0,l=0,s=0;;){if(b=o+1|0,(b|0)>=(f|0)){k=0,c=3736;break}if(d=E_[a>>2]|0,h=E_[t>>2]|0,(d|0)>(h|0))_=s,w=0,v=-1,m=-2,p=u;else for(E=E_[(E_[n>>2]|0)+((b-i|0)*12|0)>>2]|0,S=s,g=0,y=-1,A=-2,O=0,R=d,F=u;;){if(M=(m_[E+(R-d)|0]|0)!=0,M?(O?(N=g,D=S):(C=g+1|0,N=C,D=(C|0)==2?R:S),T=F,P=R,L=(y|0)<0?R:y,I=N,x=D):(T=O&(g|0)==1?R-1|0:F,P=A,L=y,I=g,x=S),C=R+1|0,(C|0)>(h|0)){_=x,w=I,v=L,m=P,p=T;break}S=x,g=I,y=L,A=P,O=M,R=C,F=T}if(F=m-v+1|0,(F*10|0|0)<=(l*9|0|0)){k=0,c=3735;break}if((w|0)>1){c=3724;break}o=b,u=p,l=(F|0)>(l|0)?F:l,s=_}return(c|0)==3736?k|0:(c|0)==3724?(w|0)!=2?(k=0,k|0):el(e,b,p+1|0)|0?(k=0,k|0):(w=al(e,b,p)|0,p=al(e,b,_)|0,(w|0)>(b|0)&(p|0)>(b|0)?(r|0)==0?(k=1,k|0):(E_[r>>2]=w-p,k=1,k|0):(k=0,k|0)):(c|0)==3735?k|0:0}function nl(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0;i=E_[e+12>>2]|0,f=E_[e+4>>2]|0;e:do if((i|0)>((((i-f|0)*80|0|0)/100|0)+f|0))for(a=E_[e>>2]|0,t=E_[e+8>>2]|0,n=e+16|0,o=0,u=i;;){for(l=a;;){if((l|0)>(t|0)){s=t;break}if((m_[(E_[(E_[n>>2]|0)+((u-f|0)*12|0)>>2]|0)+(l-a)|0]|0)!=0){s=t;break}l=l+1|0}for(;;){if((s|0)<=(l|0))break;if((m_[(E_[(E_[n>>2]|0)+((u-f|0)*12|0)>>2]|0)+(s-a)|0]|0)!=0)break;s=s-1|0}if(b=s-l+1|0,k=(b|0)>(o|0)?b:o,(b<<2|0)>=(t+1-a|0)){b=l;do if(b=b+1|0,(b|0)>=(s|0)){c=k,d=u;break e}while((m_[(E_[(E_[n>>2]|0)+((u-f|0)*12|0)>>2]|0)+(b-a)|0]|0)!=0)}if(b=u-1|0,!((b|0)>((((i-f|0)*80|0|0)/100|0)+f|0))){c=k,d=b;break}o=k,u=b}else c=0,d=i;while(0);if((d|0)<=((((i-f|0)*80|0|0)/100|0)+f|0))return h=0,h|0;if(s=d-1|0,d=(i+f|0)/2|0,(s|0)<=(d|0))return h=0,h|0;if(i=E_[e>>2]|0,u=E_[e+8>>2]|0,o=e+16|0,(i|0)>(u|0)){for(a=c,n=s;;){if((a&268435456|0)==0){h=0,_=3774;break}if(t=n-1|0,!((t|0)>(d|0))){h=0,_=3773;break}a=(a|0)<0?0:a,n=t}if((_|0)==3774)return h|0;if((_|0)==3773)return h|0}else w=0,v=c,m=0,p=s;for(;;){for(s=E_[(E_[o>>2]|0)+((p-f|0)*12|0)>>2]|0,c=w,n=0,a=m,t=-1,b=-2,l=0,E=i;;){if(S=(m_[s+(E-i)|0]|0)!=0,S?(l?(g=n,y=c):(A=n+1|0,g=A,y=(A|0)==2?E:c),O=E,R=(t|0)<0?E:t,F=a,M=g,N=y):(O=b,R=t,F=l&(n|0)==1?E-1|0:a,M=n,N=c),A=E+1|0,(A|0)>(u|0))break;c=N,n=M,a=F,t=R,b=O,l=S,E=A}if(E=O-R+1|0,(M|0)>2){h=0,_=3775;break}if((E*10|0|0)<=(v<<3|0)){h=0,_=3776;break}if(l=(E|0)>(v|0)?E:v,(M|0)==2&&(N-F|0)>1){_=3765;break}if(E=p-1|0,!((E|0)>(d|0))){h=0,_=3777;break}w=N,v=l,m=F,p=E}return(_|0)==3775?h|0:(_|0)==3776?h|0:(_|0)==3777?h|0:(_|0)==3765?il(e,p,F+1|0)|0?(h=0,h|0):(r|0)==0?(h=1,h|0):(_=fl(e,p,F)|0,E_[r>>2]=_-(fl(e,p,N)|0),h=1,h|0):0}function ol(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0;if(i=e,f=r,E_[i>>2]=E_[f>>2],E_[i+4>>2]=E_[f+4>>2],E_[i+8>>2]=E_[f+8>>2],E_[i+12>>2]=E_[f+12>>2],Su(e+16|0,r+16|0),f=e+28|0,i=r+28|0,gl(f,i),r=e+32|0,e=f|0,f=E_[e>>2]|0,(E_[r>>2]|0)!=(f|0)){a=i|0,i=0,t=f;do f=kn(28)|0,n=E_[(E_[a>>2]|0)+(i<<2)>>2]|0,o=n,E_[f>>2]=E_[o>>2],E_[f+4>>2]=E_[o+4>>2],E_[f+8>>2]=E_[o+8>>2],E_[f+12>>2]=E_[o+12>>2],Su(f+16|0,n+16|0),E_[(E_[e>>2]|0)+(i<<2)>>2]=f,i=i+1|0,t=E_[e>>2]|0;while(i>>>0<(E_[r>>2]|0)-t>>2>>>0)}}function ul(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0;if(r=e+32|0,i=E_[r>>2]|0,f=e+28|0,a=E_[f>>2]|0,(i|0)==(a|0))t=i,n=a,o=i;else for(u=0,l=a,a=i;;){if(i=E_[l+(u<<2)>>2]|0,(i|0)==0)s=a,b=l;else{if(k=i+16|0,c=E_[k>>2]|0,(c|0)!=0){if(d=i+20|0,h=E_[d>>2]|0,(c|0)==(h|0))_=c;else{for(w=h;;){if(h=w-12|0,E_[d>>2]=h,v=E_[h>>2]|0,(v|0)==0?m=h:(h=w-12+4|0,(v|0)!=(E_[h>>2]|0)&&(E_[h>>2]=v),hn(v),m=E_[d>>2]|0),(c|0)==(m|0))break;w=m}_=E_[k>>2]|0}hn(_)}hn(i),s=E_[r>>2]|0,b=E_[f>>2]|0}if(w=u+1|0,c=b,!(w>>>0<s-c>>2>>>0)){t=b,n=c,o=s;break}u=w,l=b,a=s}if((t|0)!=0&&((t|0)!=(o|0)&&(E_[r>>2]=o+(~((o-4+(-n|0)|0)>>>2)<<2)),hn(t)),t=e+16|0,n=E_[t>>2]|0,(n|0)!=0){if(o=e+20|0,e=E_[o>>2]|0,(n|0)==(e|0))p=n;else{for(r=e;;){if(e=r-12|0,E_[o>>2]=e,s=E_[e>>2]|0,(s|0)==0?E=e:(e=r-12+4|0,(s|0)!=(E_[e>>2]|0)&&(E_[e>>2]=s),hn(s),E=E_[o>>2]|0),(n|0)==(E|0))break;r=E}p=E_[t>>2]|0}hn(p)}}function ll(e,r){e|=0,r|=0;var i=0;i=E_[e>>2]|0,(i|0)!=(r|0)&&(Lu(e|0,r),(r-i|0)<=0||sl(e|0,e+28|0))}function sl(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0;if(i=r+4|0,f=r|0,r=E_[f>>2]|0,a=((E_[i>>2]|0)-r>>2)-1|0,!((a|0)<=-1))for(t=a,n=a,a=r;;){r=n<<2>>2,o=E_[a+(t<<2)>>2]|0;do if(!(eu(e,o|0)|0)){if((o|0)!=0){if(u=o+16|0,l=E_[u>>2]|0,(l|0)!=0){if(s=o+20|0,b=E_[s>>2]|0,(l|0)==(b|0))k=l;else{for(c=b;;){if(b=c-12|0,E_[s>>2]=b,d=E_[b>>2]|0,(d|0)==0?h=b:(b=c-12+4|0,(d|0)!=(E_[b>>2]|0)&&(E_[b>>2]=d),hn(d),h=E_[s>>2]|0),(l|0)==(h|0))break;c=h}k=E_[u>>2]|0}hn(k)}hn(o)}if(c=E_[f>>2]|0,l=t<<2>>2,s=c+(l+1<<2)|0,d=(E_[i>>2]|0)-s|0,b=d>>2,_=c+(l<<2)|0,w=s,On(_|0,w|0,d|0)|0,d=E_[i>>2]|0,(c+(b+l<<2)|0)==(d|0))break;E_[i>>2]=d+(~((d-4+(-(c+(b+r<<2)|0)|0)|0)>>>2)<<2)}while(0);if(r=t-1|0,(r|0)<=-1)break;t=r,n=n+1073741823&1073741823,a=E_[f>>2]|0}}function bl(e,r){e|=0,r|=0;var i=0;i=E_[e+4>>2]|0,(i|0)!=(r|0)&&(xu(e|0,r),(r-i|0)<=0||sl(e|0,e+28|0))}function kl(e,r){e|=0,r|=0;var i=0;i=E_[e+8>>2]|0,(i|0)!=(r|0)&&(Hu(e|0,r),(r-i|0)>=0||sl(e|0,e+28|0))}function cl(e,r){e|=0,r|=0;var i=0;i=E_[e+12>>2]|0,(i|0)!=(r|0)&&(Uu(e|0,r),(r-i|0)>=0||sl(e|0,e+28|0))}function dl(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0;do{if(!((r|0)<0)){if(f=e+28|0,a=E_[f>>2]|0,!(((E_[e+32>>2]|0)-a>>2|0)>(r|0))){i=f;break}return t=a,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}i=e+28|0}while(0);return Xb(336),t=E_[i>>2]|0,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}function hl(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0;if(!($o(e|0,r,i)|0))return f=0,f|0;if((m_[(E_[(E_[e+16>>2]|0)+((r-(E_[e+4>>2]|0)|0)*12|0)>>2]|0)+(i-(E_[e>>2]|0))|0]|0)!=0)return f=1,f|0;if(a=e+32|0,t=e+28|0,e=E_[t>>2]|0,!(((E_[a>>2]|0)-e|0)>0))return f=0,f|0;for(n=0,o=e;;){if(e=$o(E_[o+(n<<2)>>2]|0,r,i)|0,u=E_[t>>2]|0,e&&(e=E_[u+(n<<2)>>2]|0,(m_[(E_[(E_[e+16>>2]|0)+((r-(E_[e+4>>2]|0)|0)*12|0)>>2]|0)+(i-(E_[e>>2]|0))|0]|0)!=0))break;if(e=n+1|0,!((e|0)<((E_[a>>2]|0)-u>>2|0))){f=0,l=3901;break}n=e,o=u}return(l|0)==3901?f|0:(f=~n,f|0)}function _l(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;for(r=e+12|0,i=e+4|0,f=(E_[r>>2]|0)+1-(E_[i>>2]|0)|0,a=e+8|0,t=e|0,n=(E_[a>>2]|0)+1-(E_[t>>2]|0)|0,o=(((n|0)<(f|0)?n:f)|0)/2|0,f=0;;){if((f|0)>=(o|0)){u=o;break}if((hl(e,(E_[r>>2]|0)-f|0,(E_[t>>2]|0)+f|0)|0)==1){u=f;break}if(n=f+1|0,(hl(e,(E_[r>>2]|0)-f|0,n+(E_[t>>2]|0)|0)|0)==1){u=f;break}f=n}for(f=0;;){if((f|0)>=(o|0)){l=o;break}if((hl(e,(E_[i>>2]|0)+f|0,(E_[a>>2]|0)-f|0)|0)==1){l=f;break}f=f+1|0}return(l|0)<=1?(s=0,s|0):(s=(u*3|0|0)<=(l|0),s|0)}function wl(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0;r=e+12|0,i=e+4|0,f=(E_[r>>2]|0)+1-(E_[i>>2]|0)|0,a=e+8|0,t=e|0,n=E_[t>>2]|0,o=(E_[a>>2]|0)+1-n|0,u=(o|0)<(f|0)?o:f,f=(u|0)/2|0;e:do if((o|0)>3){if((u|0)>1)l=0,s=0,b=f,k=f,c=0,d=n;else for(h=0;;){if(_=h+1|0,!((_|0)<((o|0)/4|0|0))){w=0,v=0,m=f,p=f;break e}h=_}for(;;){for(h=b,_=k,E=0,S=0,g=0,y=d;;){if(A=g+c|0,(hl(e,(E_[i>>2]|0)+g|0,A+y|0)|0)==1?(O=E+1|0,R=(h|0)>(g|0)?g:h):(O=E,R=h),(hl(e,(E_[r>>2]|0)-g|0,(E_[a>>2]|0)-A|0)|0)==1?(F=S+1|0,M=(_|0)>(g|0)?g:_):(F=S,M=_),A=g+1|0,(A|0)>=(f|0))break;h=R,_=M,E=O,S=F,g=A,y=E_[t>>2]|0}if(y=E_[t>>2]|0,g=(l|0)<(O|0)?O:l,S=(s|0)<(F|0)?F:s,E=c+1|0,!((E|0)<(((E_[a>>2]|0)+1-y|0)/4|0|0))){w=g,v=S,m=R,p=M;break}l=g,s=S,b=R,k=M,c=E,d=y}}else w=0,v=0,m=f,p=f;while(0);return(m|0)>(p|0)|(p|0)==0?(p=w<<1,(p|0)<(v|0)?(N=1,N|0):(p|0)==(v|0)&(v|0)>3|0):(N=0,N|0)}function vl(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0;if(i=e+4|0,f=E_[i>>2]|0,a=e+12|0,(f|0)>(E_[a>>2]|0))return void(t=fw(10,r|0)|0);n=e|0,o=e+8|0,u=e+16|0,e=f;do{f=E_[n>>2]|0;e:do if((f|0)<=(E_[o>>2]|0))for(l=f,s=f;;){if((m_[(E_[(E_[u>>2]|0)+((e-(E_[i>>2]|0)|0)*12|0)>>2]|0)+(l-s)|0]|0)==0?aw(2584,2,1,r|0)|0:aw(3304,2,1,r|0)|0,b=l+1|0,(b|0)>(E_[o>>2]|0))break e;l=b,s=E_[n>>2]|0}while(0);fw(10,r|0)|0,e=e+1|0}while((e|0)<=(E_[a>>2]|0));t=fw(10,r|0)|0}function ml(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0;if((r|0)<0?(i=e+28|0,f=3947):(a=e+28|0,t=E_[a>>2]|0,((E_[e+32>>2]|0)-t>>2|0)>(r|0)?n=t:(i=a,f=3947)),(f|0)==3947&&(Xb(1832),n=E_[i>>2]|0),i=e+28|0,zu(e|0,E_[n+(r<<2)>>2]|0),n=E_[i>>2]|0,f=E_[n+(r<<2)>>2]|0,(f|0)==0)o=n;else{if(n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),S=E_[w>>2]|0),(_|0)==(S|0))break;p=S}m=E_[h>>2]|0}hn(m)}hn(k),c=E_[t>>2]|0,d=E_[o>>2]|0}if(p=l+1|0,!(p>>>0<c-d>>2>>>0))break;l=p,s=d,b=c}if((d|0)==(c|0))break;E_[t>>2]=c+(~((c-4+(-d|0)|0)>>>2)<<2)}while(0);if(d=e|0,c=e+12|0,m=e+4|0,((E_[c>>2]|0)+1-(E_[m>>2]|0)|0)<3)return void(O_=r);if(S=e+8|0,n=e|0,u=(E_[S>>2]|0)+1-(E_[n>>2]|0)|0,(u|0)<3)return void(O_=r);u>>>0>1073741823&&cf(0),b=kn(u<<2)|0,s=u,l=b;do(l|0)==0?g=0:(E_[l>>2]=0,g=l),l=g+4|0,s=s-1|0;while((s|0)!=0);if(s=b+(u<<2)|0,u=E_[n>>2]|0,g=(E_[S>>2]|0)+1|0,p=g-u|0,_=i|0,E_[_>>2]=0,w=i+4|0,E_[w>>2]=0,E=i+8|0,E_[E>>2]=0,(g|0)==(u|0))y=0;else{p>>>0>1073741823&&cf(0),u=kn(p<<2)|0,E_[w>>2]=u,E_[_>>2]=u,E_[E>>2]=u+(p<<2),g=p,p=u;do(p|0)==0?A=0:(E_[p>>2]=0,A=p),p=A+4|0,g=g-1|0;while((g|0)!=0);E_[w>>2]=p,y=p}p=E_[m>>2]|0;e:do if((p|0)>(E_[c>>2]|0))O=b;else for(g=e|0,A=e+16|0,u=e+36|0,v=s,R=l,F=b,M=p,N=y,D=p;;){if(C=E_[_>>2]|0,E_[_>>2]=F,E_[w>>2]=R,T=E_[E>>2]|0,E_[E>>2]=v,E_[F>>2]=(m_[E_[(E_[A>>2]|0)+((M-D|0)*12|0)>>2]|0]|0)!=0?e:0,P=E_[n>>2]|0,L=P+1|0,I=E_[S>>2]|0,(L|0)<(I|0))for(x=L,L=P;;){B=x-L|0;do if((m_[(E_[(E_[A>>2]|0)+((M-(E_[m>>2]|0)|0)*12|0)>>2]|0)+B|0]|0)==0){H=E_[(E_[_>>2]|0)+(B-1<<2)>>2]|0,U=C+(B<<2)|0,z=E_[U>>2]|0,Y=(H|0)==0,V=(z|0)==0;do if(Y|V){if(E_[f>>2]=0,!(Y|(H|0)==(g|0))){El(a,C,N,i,H,B),Z=0;break}if(V|(z|0)==(g|0)){Z=0;break}El(a,C,N,i,z,B),Z=0}else{if((H|0)!=(g|0)){E_[f>>2]=H,Vu(H,M,x),Z=H;break}if((z|0)!=(g|0)){E_[f>>2]=z,Vu(z,M,x),Z=z;break}if(j=kn(28)|0,q=j,Tu(q,x,M,x,M),E_[f>>2]=q,m_[(E_[(E_[j+16>>2]|0)+((M-(E_[j+4>>2]|0)|0)*12|0)>>2]|0)+(x-(E_[j>>2]|0))|0]=1,j=E_[t>>2]|0,(j|0)==(E_[u>>2]|0)){Sl(a,f),Z=E_[f>>2]|0;break}(j|0)==0?W=0:(E_[j>>2]=q,W=E_[t>>2]|0),E_[t>>2]=W+4,Z=q}while(0);if(V=E_[_>>2]|0,E_[V+(B<<2)>>2]=Z,(Z|0)==0|(H|0)==(z|0)|(H|0)==(g|0)|(z|0)==(g|0))break;do if((E_[H+4>>2]|0)>(E_[z+4>>2]|0)){if(Y=B+1|0,q=V+(Y<<2)|0,(Y|0)==0){K=z,X=H;break}for(G=V;;){if((E_[G>>2]|0)==(H|0)&&(E_[G>>2]=z),Y=G+4|0,(Y|0)==(q|0)){K=z,X=H;break}G=Y}}else{if((U|0)==(N|0)){K=H,X=z;break}for(Q=U;;){if((E_[Q>>2]|0)==(z|0)&&(E_[Q>>2]=H),q=Q+4|0,(q|0)==(N|0)){K=H,X=z;break}Q=q}}while(0);for(z=E_[t>>2]|0,H=E_[o>>2]|0,U=z-H>>2,V=U,q=U+1073741823|0;;){if(J=V-1|0,(V|0)<=0)break;if((E_[H+(J<<2)>>2]|0)==(X|0))break;V=J,q=q+1073741823&1073741823}if((J|0)<0?(Xb(904),$=E_[o>>2]|0,er=E_[t>>2]|0):($=H,er=z),V=J<<2>>2,U=$+(V+1<<2)|0,Y=er-U|0,j=Y>>2,rr=$+(V<<2)|0,ir=U,On(rr|0,ir|0,Y|0)|0,Y=E_[t>>2]|0,($+(j+V<<2)|0)!=(Y|0)&&(E_[t>>2]=Y+(~((Y-4+(-($+(j+(q<<2>>2)<<2)|0)|0)|0)>>>2)<<2)),zu(K,X),(X|0)==0)break;if(j=X+16|0,Y=E_[j>>2]|0,(Y|0)!=0){if(V=X+20|0,ir=E_[V>>2]|0,(Y|0)==(ir|0))fr=Y;else{for(rr=ir;;){if(ir=rr-12|0,E_[V>>2]=ir,U=E_[ir>>2]|0,(U|0)==0?ar=ir:(ir=rr-12+4|0,(U|0)!=(E_[ir>>2]|0)&&(E_[ir>>2]=U),hn(U),ar=E_[V>>2]|0),(Y|0)==(ar|0))break;rr=ar}fr=E_[j>>2]|0}hn(fr)}hn(X)}else E_[(E_[_>>2]|0)+(B<<2)>>2]=g;while(0);if(B=x+1|0,rr=E_[S>>2]|0,Y=E_[n>>2]|0,!((B|0)<(rr|0))){tr=rr,nr=Y;break}x=B,L=Y}else tr=I,nr=P;do if((m_[(E_[(E_[A>>2]|0)+((M-(E_[m>>2]|0)|0)*12|0)>>2]|0)+(tr-nr)|0]|0)==0){if(L=tr+1-nr|0,x=E_[(E_[_>>2]|0)+(L-2<<2)>>2]|0,(x|0)==0|(x|0)==(g|0))break;El(a,C,N,i,x,L-1|0)}while(0);if(P=M+1|0,(P|0)>(E_[c>>2]|0)){O=C;break e}v=T,R=N,F=C,M=P,N=E_[w>>2]|0,D=E_[m>>2]|0}while(0);m=E_[o>>2]|0,c=((E_[t>>2]|0)-m>>2)-1|0;e:do if((c|0)>-1)for(i=c,a=c,nr=m;;){tr=a<<2>>2,n=E_[nr+(i<<2)>>2]|0;do if(eu(d,n|0)|0){if(S=(E_[n+12>>2]|0)+1-(E_[n+4>>2]|0)|0,(S|0)>4)break;if(X=(E_[n+8>>2]|0)+1-(E_[n>>2]|0)|0,(X|0)>4)break;if(!((S|0)>2|(X|0)>2)){or=4072;break}(qu(n)|0)<=3&&(or=4072)}else or=4072;while(0);do if((or|0)==4072){if(or=0,(n|0)!=0){if(C=n+16|0,T=E_[C>>2]|0,(T|0)!=0){if(X=n+20|0,S=E_[X>>2]|0,(T|0)==(S|0))ur=T;else{for(fr=S;;){if(S=fr-12|0,E_[X>>2]=S,ar=E_[S>>2]|0,(ar|0)==0?lr=S:(S=fr-12+4|0,(ar|0)!=(E_[S>>2]|0)&&(E_[S>>2]=ar),hn(ar),lr=E_[X>>2]|0),(T|0)==(lr|0))break;fr=lr}ur=E_[C>>2]|0}hn(ur)}hn(n)}if(fr=E_[o>>2]|0,T=i<<2>>2,X=fr+(T+1<<2)|0,ar=(E_[t>>2]|0)-X|0,S=ar>>2,K=fr+(T<<2)|0,$=X,On(K|0,$|0,ar|0)|0,ar=E_[t>>2]|0,(fr+(S+T<<2)|0)==(ar|0))break;E_[t>>2]=ar+(~((ar-4+(-(fr+(S+tr<<2)|0)|0)|0)>>>2)<<2)}while(0);if(tr=i-1|0,(tr|0)<=-1)break e;i=tr,a=a+1073741823&1073741823,nr=E_[o>>2]|0}while(0);return o=E_[_>>2]|0,_=o,(o|0)!=0&&(t=E_[w>>2]|0,(o|0)!=(t|0)&&(E_[w>>2]=t+(~((t-4+(-_|0)|0)>>>2)<<2)),hn(o)),(O|0)==0?void(O_=r):(hn(O),void(O_=r))}function El(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0;var n=0,o=0,u=0,l=0,s=0,b=0,k=0;if(n=r+(t<<2)|0,(n|0)!=(i|0)){r=n;do(E_[r>>2]|0)==(a|0)&&(E_[r>>2]=0),r=r+4|0;while((r|0)!=(i|0))}if(i=E_[f>>2]|0,f=i+(t<<2)|0,(t|0)!=0){t=i;do(E_[t>>2]|0)==(a|0)&&(E_[t>>2]=0),t=t+4|0;while((t|0)!=(f|0))}for(f=e+4|0,t=E_[f>>2]|0,i=e|0,e=E_[i>>2]|0,r=t-e>>2,n=r,o=r+1073741823|0;;){if(u=n-1|0,(n|0)<=0)break;if((E_[e+(u<<2)>>2]|0)==(a|0))break;n=u,o=o+1073741823&1073741823}if((u|0)<0?(Xb(544),l=E_[i>>2]|0,s=E_[f>>2]|0):(l=e,s=t),t=u<<2>>2,u=l+(t+1<<2)|0,e=s-u|0,s=e>>2,i=l+(t<<2)|0,n=u,On(i|0,n|0,e|0)|0,e=E_[f>>2]|0,(l+(s+t<<2)|0)!=(e|0)&&(E_[f>>2]=e+(~((e-4+(-(l+(s+(o<<2>>2)<<2)|0)|0)|0)>>>2)<<2)),(a|0)!=0){if(o=a+16|0,s=E_[o>>2]|0,(s|0)!=0){if(l=a+20|0,e=E_[l>>2]|0,(s|0)==(e|0))b=s;else{for(f=e;;){if(e=f-12|0,E_[l>>2]=e,t=E_[e>>2]|0,(t|0)==0?k=e:(e=f-12+4|0,(t|0)!=(E_[e>>2]|0)&&(E_[e>>2]=t),hn(t),k=E_[l>>2]|0),(s|0)==(k|0))break;f=k}b=E_[o>>2]|0}hn(b)}hn(a)}}function Sl(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;i=e+4|0,f=e|0,a=E_[f>>2]|0,t=a,n=(E_[i>>2]|0)-t|0,o=n>>2,u=o+1|0,u>>>0>1073741823&&cf(0),l=e+8|0,e=(E_[l>>2]|0)-t|0,e>>2>>>0>536870910?(s=1073741823,b=4136):(t=e>>1,e=t>>>0<u>>>0?u:t,(e|0)==0?(k=0,c=0):(s=e,b=4136)),(b|0)==4136&&(k=kn(s<<2)|0,c=s),s=k+(o<<2)|0,o=k+(c<<2)|0,(s|0)!=0&&(E_[s>>2]=E_[r>>2]),r=k+(u<<2)|0,u=k,s=a,yn(u|0,s|0,n)|0,E_[f>>2]=k,E_[i>>2]=r,E_[l>>2]=o,(a|0)!=0&&hn(s)}function gl(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(i=e|0,E_[i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du(u,Y-U|0),z=E_[w>>2]|0;break}if(U>>>0<=Y>>>0){z=H;break}if(V=H+(Y<<2)|0,(V|0)==(B|0)){z=H;break}E_[v>>2]=B+(~((B-4+(-V|0)|0)>>>2)<<2),z=H}while(0);H=z+(I<<2)|0,E_[H>>2]=(E_[H>>2]|0)+1,x=T+1|0}while(0);if(I=D+1|0,I>>>0>=L>>>0)break;D=I,T=x,C=E_[_>>2]|0}C=E_[v>>2]|0,T=E_[w>>2]|0;do if((C|0)==(T|0)){if(!h){K=p,X=E,G=S,Q=g,J=y,$=A,er=O,rr=R,ir=F,fr=T;break}for(Z=M,j=x,q=T,W=T;;){D=E_[(E_[_>>2]|0)+(Z<<2)>>2]|0,I=(E_[D+12>>2]|0)+1-(E_[D+4>>2]|0)|0,D=q-W>>2;do if(I>>>0<D>>>0)ar=W;else{if(P=I+1|0,D>>>0<P>>>0){Du(u,P-D|0),ar=E_[w>>2]|0;break}if(D>>>0<=P>>>0){ar=W;break}if(H=W+(P<<2)|0,(H|0)==(q|0)){ar=W;break}E_[v>>2]=q+(~((q-4+(-H|0)|0)>>>2)<<2),ar=W}while(0);if(D=ar+(I<<2)|0,E_[D>>2]=(E_[D>>2]|0)+1,D=j+1|0,H=Z+1|0,P=E_[v>>2]|0,B=E_[w>>2]|0,!(H>>>0<L>>>0)){tr=D,nr=P,or=B,ur=4221;break}Z=H,j=D,q=P,W=B}}else tr=x,nr=C,or=T,ur=4221;while(0);do if((ur|0)==4221){ur=0;do if((nr|0)==(or|0))lr=0;else{for(T=nr-or>>2,C=tr*9|0,B=0,P=0,D=0,H=0;;){if(U=E_[or+(P<<2)>>2]|0,V=U+B|0,(V*10|0)>>>0>=tr>>>0&(B*10|0)>>>0<C>>>0?(sr=(J_(U,P)|0)+H|0,br=U+D|0):(sr=H,br=D),U=P+1|0,!(U>>>0<T>>>0))break;B=V,P=U,D=br,H=sr}if((br|0)==0){lr=sr;break}lr=(sr|0)/(br|0)|0}while(0);if(!h){K=p,X=E,G=S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,zr=R,E_[N>>2]=E_[zr>>2],E_[N+4>>2]=E_[zr+4>>2],E_[N+8>>2]=E_[zr+8>>2],E_[N+12>>2]=E_[zr+12>>2],zr=N+20|0,O=kn(4)|0,A=O,E_[zr>>2]=A,E_[N+16>>2]=A,E_[N+24>>2]=O+4,(O|0)==0?fi=0:(E_[A>>2]=R,fi=A),E_[zr>>2]=fi+4,E_[N+28>>2]=0,E_[N+32>>2]=0,E_[N+36>>2]=0,Ls(F,N,0)|0,N=qr-jr>>2,N>>>0>1)for(F=t|0,zr=1,A=M;;){R=E_[jr+(zr<<2)>>2]|0,O=A-2|0,y=R|0,Zr=R+12|0,g=(M|0)<(O|0)?O:M,O=E_[b>>2]|0;e:for(;;){S=E_[O+(g<<2)>>2]|0,E=0,Wr=(E_[S+20>>2]|0)-(E_[S+16>>2]|0)>>2;r:for(;;){if(!((Wr|0)>0)){ti=0,ni=0;break}for(ai=Wr;;){if(oi=ai-1|0,ui=Ds(E_[(E_[b>>2]|0)+(g<<2)>>2]|0,oi)|0,li=ui|0,!(ru(y,li)|0||ru(li,y)|0))break;if(!((oi|0)>0)){ti=0,ni=0;break r}ai=oi}if(!(ku(y,li)|0)){ur=4324;break}E=ui,Wr=oi}do if((ur|0)==4324){if(ur=0,(ui|0)==0){ti=0,ni=0;break}if(iu(li,y)|0){ur=4334;break e}if(iu(y,li)|0){ur=4334;break e}ti=ui,ni=1}while(0);if(Wr=(E|0)!=0){if(S=E|0,iu(S,y)|0){ur=4334;break}if(iu(y,S)|0){ur=4334;break}}if(ni&&(E_[ti+4>>2]|0)>(E_[Zr>>2]|0)){ur=4344;break}if(Wr&&(E_[E+4>>2]|0)>(E_[Zr>>2]|0)){ur=4344;break}if(ni&&(uu(ti|0,y)|0)>5){ur=4358;break}if(Wr&&(uu(E|0,y)|0)>5){ur=4358;break}if(Wr=g+1|0,si=E_[i>>2]|0,S=E_[L>>2]|0,!((Wr|0)<(si-S>>2|0))){ur=4365;break}g=Wr,O=S}if((ur|0)==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E+20>>2]|0)-(E_[E+16>>2]|0)|0)!=4)break;if(F=E_[E>>2]|0,M=E_[J+8>>2]|0,R=E_[J>>2]|0,X=J_((E_[E+12>>2]|0)+1-(E_[E+4>>2]|0)<<2,(E_[E+8>>2]|0)+1-F|0)|0,(X|0)>=(J_(M+1-R|0,(E_[J+12>>2]|0)+1-(E_[J+4>>2]|0)|0)|0))break;if(J=E_[p>>2]|0,E=(E_[p+4>>2]|0)==(J|0),bf=E?0:E_[J+16>>2]<<1,(F-M|0)<=(bf|0))break;if(M=E_[y+8>>2]|0,(X|0)>=(J_(M+1-(E_[y>>2]|0)|0,(E_[y+12>>2]|0)+1-(E_[y+4>>2]|0)|0)|0))break;if(kf=E?0:E_[J+16>>2]|0,(R-M|0)>=(kf|0))break;Ps(p,((E_[N>>2]|0)-(E_[uf>>2]|0)>>2)-1|0)}while(0);if(N=zr+1|0,p=E_[i>>2]|0,g=E_[L>>2]|0,!((N|0)<(p-g>>2|0))){df=p,hf=g;break}zr=N,A=g}else df=Gi,hf=Qi;if(!((df-hf|0)>0))break;_f=0,wf=hf;do Bs(E_[wf+(_f<<2)>>2]|0),_f=_f+1|0,wf=E_[L>>2]|0;while((_f|0)<((E_[i>>2]|0)-wf>>2|0))}while(0);return(Hr|0)!=0&&hn(Hr),(Yr|0)!=0&&hn(Yr),(jr|0)==0?void(O_=a):(hn(jr),void(O_=a))}(ur|0)==4239?cf(0):(ur|0)==4270&&cf(0)}}function Al(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0;if(r=e+4|0,i=e|0,e=E_[i>>2]|0,(E_[r>>2]|0)!=(e|0)){f=0,a=e;do{e=E_[a+(f<<2)>>2]|0,t=e+20|0,n=e+16|0;e:do if((((E_[t>>2]|0)-(E_[n>>2]|0)>>2)-1|0)>0)for(o=0;;){u=o+1|0;r:for(;;){if(l=Ds(e,o)|0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}if((E|0)==(_|0)){ms(_,l),g=o;break}ms(l,_),g=h;break}g=o}while(0);if(Ps(e,g),(o|0)>=(((E_[t>>2]|0)-(E_[n>>2]|0)>>2)-1|0))break e}if(!((u|0)<((k-c>>2)-1|0)))break;o=u}while(0);f=f+1|0,a=E_[i>>2]|0}while(f>>>0<(E_[r>>2]|0)-a>>2>>>0)}}function Ol(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0;if(r=e+20|0,i=e+16|0,e=E_[i>>2]|0,f=(E_[r>>2]|0)-e|0,(f|0)>0)for(a=f>>2,f=e;;){if(t=a-1|0,n=E_[f+(t<<2)>>2]|0,(n|0)==0?o=f:(Rs(n),hn(n),o=E_[i>>2]|0),!((t|0)>0)){u=o;break}a=t,f=o}else u=e;(u|0)!=0&&(e=E_[r>>2]|0,(u|0)!=(e|0)&&(E_[r>>2]=e+(~((e-4+(-u|0)|0)>>>2)<<2)),hn(u))}function Rl(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0;if(f=O_,O_=O_+24|0,a=f|0,t=f+8|0,n=f+16|0,o=e+20|0,u=E_[o>>2]|0,l=e+16|0,s=E_[l>>2]|0,(u-s|0)>0)for(b=0,k=s;;){if(Zs(E_[k+(b<<2)>>2]|0,r),mk(E_[(E_[l>>2]|0)+(b<<2)>>2]|0,r),c=b+1|0,d=E_[o>>2]|0,h=E_[l>>2]|0,!((c|0)<(d-h>>2|0))){_=d,w=h;break}b=c,k=h}else _=u,w=s;do if((E_[i>>2]|0)==0)v=_,m=w;else{if(!((_-w|0)>0)){v=_,m=w;break}for(p=0,E=w;;){if(js(E_[E+(p<<2)>>2]|0,i),s=p+1|0,u=E_[o>>2]|0,k=E_[l>>2]|0,!((s|0)<(u-k>>2|0))){v=u,m=k;break}p=s,E=k}}while(0);if(E=v-m|0,(E|0)>0){for(p=E>>2,E=m;;){for(i=p-1|0,w=E_[E+(i<<2)>>2]|0,_=w+20|0,k=w+16|0,u=0;;){if((u|0)>=((E_[_>>2]|0)-(E_[k>>2]|0)>>2|0)){S=4669;break}if(s=Ds(w,u)|0,(E_[s+32>>2]|0)!=(E_[s+28>>2]|0))break;u=u+1|0}do if((S|0)==4669){if(S=0,u=E_[l>>2]|0,w=E_[u+(i<<2)>>2]|0,(w|0)==0?g=u:(Rs(w),hn(w),g=E_[l>>2]|0),w=i<<2>>2,u=g+(w+1<<2)|0,k=(E_[o>>2]|0)-u|0,_=k>>2,s=g+(w<<2)|0,b=u,On(s|0,b|0,k|0)|0,k=g+(_+w<<2)|0,w=E_[o>>2]|0,(k|0)==(w|0))break;E_[o>>2]=w+(~((w-4+(-k|0)|0)>>>2)<<2)}while(0);if((i|0)<=0)break;p=i,E=E_[l>>2]|0}y=E_[o>>2]|0,A=E_[l>>2]|0}else y=v,A=m;if((y-A|0)<=8)return void(O_=f);A=e+16|0,e=Us(E_[y-4>>2]|0)|0,y=A|0,m=e-(Us(E_[E_[y>>2]>>2]|0)|0)|0,e=E_[o>>2]|0,v=E_[l>>2]|0,E=e-v|0,p=(m|0)/((E>>2)-1|0)|0;e:do if((E|0)>4)for(m=0,g=p,S=1,k=v;;){w=m,_=S,b=k;r:for(;;){s=E_[b+(w<<2)>>2]|0,u=E_[b+(_<<2)>>2]|0,r=s+20|0,h=s+16|0,d=u+20|0,c=u+16|0;do if(Gb((E_[r>>2]|0)-(E_[h>>2]|0)>>2,(E_[d>>2]|0)-(E_[c>>2]|0)>>2,50,1)|0){if(O=E_[r>>2]|0,R=E_[h>>2]|0,F=(O|0)==(R|0)?0:(E_[(E_[O-4>>2]|0)+8>>2]|0)-(E_[E_[R>>2]>>2]|0)|0,R=E_[d>>2]|0,O=E_[c>>2]|0,M=(R|0)==(O|0)?0:(E_[(E_[R-4>>2]|0)+8>>2]|0)-(E_[E_[O>>2]>>2]|0)|0,!(Gb(F,M,30,1)|0))break;if(O=Us(u)|0,N=O-(Us(s)|0)|0,(N|0)>=(g|0))break;if(D=Ns(s)|0,C=Ns(u)|0,(D|0)<10|(C|0)<10)break;if(Gb(D,C,20,1)|0)break r}while(0);if(u=_+1|0,s=E_[o>>2]|0,c=E_[l>>2]|0,!((u|0)<(s-c>>2|0))){T=g,P=s,L=c;break e}w=_,_=u,b=c}if(b=(N<<1|0)>(C+D|0)?N:g,w=_+1|0,c=E_[o>>2]|0,s=E_[l>>2]|0,!((w|0)<(c-s>>2|0))){T=b,P=c,L=s;break}m=_,g=b,S=w,k=s}else T=p,P=e,L=v;while(0);if((T|0)<=0)return void(O_=f);if((P-L|0)<=4)return void(O_=f);for(P=a|0,v=0,e=1,p=L;;){if(L=E_[p+(v<<2)>>2]|0,N=Us(E_[p+(e<<2)>>2]|0)|0,D=N-(Us(L)|0)-T|0,L=v+1|0,(D<<1|0)>(T|0))for(N=D,D=L;;){if(E_[P>>2]=(E_[y>>2]|0)+(D<<2),C=kn(28)|0,M=C,An(C|0,0,28)|0,E_[t>>2]=M,Pl(n,A,a,t),M=N-T|0,C=D+1|0,!((M<<1|0)>(T|0))){I=C;break}N=M,D=C}else I=L;if(D=I+1|0,N=E_[l>>2]|0,!((D|0)<((E_[o>>2]|0)-N>>2|0)))break;v=I,e=D,p=N}O_=f}function Fl(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0;do{if(!((r|0)<0)){if(f=e+16|0,a=E_[f>>2]|0,!(((E_[e+20>>2]|0)-a>>2|0)>(r|0))){i=f;break}return t=a,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}i=e+16|0}while(0);return Xb(4488),t=E_[i>>2]|0,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}function Ml(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0;if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0)-e|0)>0){a=0,t=e;do Vs(E_[t+(a<<2)>>2]|0,r),a=a+1|0,t=E_[f>>2]|0;while((a|0)<((E_[i>>2]|0)-t>>2|0))}}function Cl(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0;if(i=e+20|0,f=e+16|0,e=E_[f>>2]|0,((E_[i>>2]|0)-e|0)>0){a=0,t=e;do Po(r,E_[t+(a<<2)>>2]|0),a=a+1|0,t=E_[f>>2]|0;while((a|0)<((E_[i>>2]|0)-t>>2|0))}}function Tl(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;i=e+4|0,f=e|0,a=E_[f>>2]|0,t=a,n=(E_[i>>2]|0)-t|0,o=n>>2,u=o+1|0,u>>>0>1073741823&&cf(0),l=e+8|0,e=(E_[l>>2]|0)-t|0,e>>2>>>0>536870910?(s=1073741823,b=4734):(t=e>>1,e=t>>>0<u>>>0?u:t,(e|0)==0?(k=0,c=0):(s=e,b=4734)),(b|0)==4734&&(k=kn(s<<2)|0,c=s),s=k+(o<<2)|0,o=k+(c<<2)|0,(s|0)!=0&&(E_[s>>2]=E_[r>>2]),r=k+(u<<2)|0,u=k,s=a,yn(u|0,s|0,n)|0,E_[f>>2]=k,E_[i>>2]=r,E_[l>>2]=o,(a|0)!=0&&hn(s)}function Pl(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0;if(a=O_,t=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[t>>2],t=r|0,n=E_[t>>2]|0,o=n,u=(E_[i>>2]|0)-o|0,i=u>>2,l=n+(i<<2)|0,s=r+4|0,b=E_[s>>2]|0,k=r+8|0,r=E_[k>>2]|0,b>>>0<r>>>0){if((l|0)==(b|0))return(l|0)==0?c=0:(E_[l>>2]=E_[f>>2],c=E_[s>>2]|0),E_[s>>2]=c+4,d=l,h=e|0,E_[h>>2]=d,void(O_=a);if(c=b-(n+(i+1<<2))|0,_=c>>2,w=n+(_+i<<2)|0,w>>>0<b>>>0){i=w,w=b;do(w|0)==0?v=0:(E_[w>>2]=E_[i>>2],v=E_[s>>2]|0),i=i+4|0,w=v+4|0,E_[s>>2]=w;while(i>>>0<b>>>0)}return i=b+(-_<<2)|0,_=l,On(i|0,_|0,c|0)|0,m=l>>>0>f>>>0?f:(E_[s>>2]|0)>>>0>f>>>0?f+4|0:f,E_[l>>2]=E_[m>>2],d=l,h=e|0,E_[h>>2]=d,void(O_=a)}m=(b-o>>2)+1|0,m>>>0>1073741823&&cf(0),b=r-o|0,b>>2>>>0>536870910?(p=1073741823,E=l,S=u>>2,g=4759):(o=b>>1,b=o>>>0<m>>>0?m:o,o=l,m=u>>2,(b|0)==0?(y=0,A=0,O=o,R=m):(p=b,E=o,S=m,g=4759)),(g|0)==4759&&(y=kn(p<<2)|0,A=p,O=E,R=S),S=y+(R<<2)|0,E=y+(A<<2)|0;do if((R|0)==(A|0)){if((R|0)>0){F=y+(((R+1|0)/-2|0)+R<<2)|0,M=E;break}if(p=R<<1,g=(p|0)==0?1:p,p=kn(g<<2)|0,m=p+(g>>>2<<2)|0,o=p+(g<<2)|0,(y|0)==0){F=m,M=o;break}hn(y),F=m,M=o}else F=S,M=E;while(0);return(F|0)!=0&&(E_[F>>2]=E_[f>>2]),f=F+4|0,E=E_[t>>2]|0,S=O-E|0,y=F+(-(S>>2)<<2)|0,R=y,A=E,yn(R|0,A|0,S)|0,S=(E_[s>>2]|0)-O|0,O=S>>2,R=f,f=l,yn(R|0,f|0,S)|0,E_[t>>2]=y,E_[s>>2]=F+(O+1<<2),E_[k>>2]=M,(E|0)==0?(d=F,h=e|0,E_[h>>2]=d,void(O_=a)):(hn(A),d=F,h=e|0,E_[h>>2]=d,void(O_=a))}function Ll(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0;return f=(E_[e+20>>2]|0)-(E_[e+16>>2]|0)>>2,(f|0)==2?void _k(e,r,i):(f|0)==1?(a=ls(e,0)|0,t=(E_[a+32>>2]|0)-(E_[a+28>>2]|0)>>2,(t|0)==2?void Bl(e,i):(t|0)==0?void Il(e,r,i):(t|0)==1?void xl(e,r,i):void 0):(f|0)==3?void wk(e,r,i):void 0}function Il(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0,J=0,$=0,er=0,rr=0,ir=0,fr=0,ar=0,tr=0,nr=0,or=0,ur=0,lr=0,sr=0,br=0,kr=0,cr=0,dr=0,hr=0,_r=0,wr=0,vr=0,mr=0,pr=0,Er=0;f=O_,O_=O_+496|0,a=f|0,t=f+8|0,n=f+16|0,o=f+24|0,u=f+32|0,l=f+40|0,s=f+48|0,b=f+56|0,k=f+64|0,c=f+72|0,d=f+80|0,h=f+88|0,_=f+96|0,w=f+104|0,v=f+112|0,m=f+120|0,p=f+128|0,E=f+136|0,S=f+488|0,g=ls(e,0)|0,Hb(E,g),y=uk(E,i)|0;do{if((y|0)==46){if(((E_[g+8>>2]|0)+1-(E_[g>>2]|0)|0)<=((E_[g+12>>2]|0)+1-(E_[g+4>>2]|0)|0))break;if(!(tu(g|0,((E_[i+12>>2]|0)+(E_[i+4>>2]|0)|0)/2|0)|0))break;return A=v,E_[v>>2]=46,E_[A+4>>2]=1,O=e+32|0,R=E_[O>>2]|0,F=e+36|0,(R|0)==(E_[F>>2]|0)?(Ul(e+28|0,A),M=E_[O>>2]|0):((R|0)==0?N=0:(A=R,R=E_[v+4>>2]|0,E_[A>>2]=E_[v>>2],E_[A+4>>2]=R,N=E_[O>>2]|0),R=N+8|0,E_[O>>2]=R,M=R),R=w,E_[w>>2]=45,E_[R+4>>2]=0,(M|0)==(E_[F>>2]|0)?(Ul(e+28|0,R),Hl(E),void(O_=f)):((M|0)==0?D=0:(R=M,F=E_[w+4>>2]|0,E_[R>>2]=E_[w>>2],E_[R+4>>2]=F,D=E_[O>>2]|0),E_[O>>2]=D+8,Hl(E),void(O_=f))}if((y|0)==0){if(O=g+12|0,F=g+4|0,R=(E_[O>>2]|0)+1-(E_[F>>2]|0)|0,(R|0)<5)return Hl(E),void(O_=f);A=E_[g+8>>2]|0,C=E_[g>>2]|0;do if((R|0)<8){if((A+1-C|0)>=6)break;return Hl(E),void(O_=f)}while(0);if(T=g+8|0,P=g|0,L=A+1-C|0,(R|0)>(L*10|0|0)|(R*5|0|0)<(L|0))return Hl(E),void(O_=f);if(L=ek(E,r)|0,(L|0)!=0)return I=b,E_[b>>2]=L,E_[I+4>>2]=0,L=e+32|0,x=E_[L>>2]|0,(x|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,I),Hl(E),void(O_=f)):((x|0)==0?B=0:(I=x,x=E_[b+4>>2]|0,E_[I>>2]=E_[b>>2],E_[I+4>>2]=x,B=E_[L>>2]|0),E_[L>>2]=B+8,Hl(E),void(O_=f));if(L=ik(E,i)|0,(L|0)!=0)return x=s,E_[s>>2]=L,E_[x+4>>2]=0,L=e+32|0,I=E_[L>>2]|0,(I|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,x),Hl(E),void(O_=f)):((I|0)==0?H=0:(x=I,I=E_[s+4>>2]|0,E_[x>>2]=E_[s>>2],E_[x+4>>2]=I,H=E_[L>>2]|0),E_[L>>2]=H+8,Hl(E),void(O_=f));if(L=fk(E)|0,(L|0)!=0)return I=l,E_[l>>2]=L,E_[I+4>>2]=0,L=e+32|0,x=E_[L>>2]|0,(x|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,I),Hl(E),void(O_=f)):((x|0)==0?U=0:(I=x,x=E_[l+4>>2]|0,E_[I>>2]=E_[l>>2],E_[I+4>>2]=x,U=E_[L>>2]|0),E_[L>>2]=U+8,Hl(E),void(O_=f));if(L=rk(E)|0,(L|0)!=0)return x=u,E_[u>>2]=L,E_[x+4>>2]=0,L=e+32|0,I=E_[L>>2]|0,(I|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,x),Hl(E),void(O_=f)):((I|0)==0?z=0:(x=I,I=E_[u+4>>2]|0,E_[x>>2]=E_[u>>2],E_[x+4>>2]=I,z=E_[L>>2]|0),E_[L>>2]=z+8,Hl(E),void(O_=f));do if(Qb(r,2)|0){if(L=nk(E)|0,(L|0)==0)break;return I=o,E_[o>>2]=L,E_[I+4>>2]=0,L=e+32|0,x=E_[L>>2]|0,(x|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,I),Hl(E),void(O_=f)):((x|0)==0?Y=0:(I=x,x=E_[o+4>>2]|0,E_[I>>2]=E_[o>>2],E_[I+4>>2]=x,Y=E_[L>>2]|0),E_[L>>2]=Y+8,Hl(E),void(O_=f))}while(0);if(R=$b(E,r)|0,(R|0)!=0)return C=n,E_[n>>2]=R,E_[C+4>>2]=0,R=e+32|0,A=E_[R>>2]|0,(A|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,C),Hl(E),void(O_=f)):((A|0)==0?V=0:(C=A,A=E_[n+4>>2]|0,E_[C>>2]=E_[n>>2],E_[C+4>>2]=A,V=E_[R>>2]|0),E_[R>>2]=V+8,Hl(E),void(O_=f));R=ak(E,i)|0;do{if((R|0)==117){if(!(Eb(E+60|0)|0)){Z=4905;break}if(A=g|0,C=Xu(A,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0,E_[T>>2]|0,1)|0,L=E_[P>>2]|0,(C|0)>=(((((E_[T>>2]|0)-L|0)*90|0|0)/100|0)+L|0)){Z=4905;break}if(el(A,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0,C)|0){Z=4905;break}L=(Xu(A,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0,C-1|0,0)|0)-1|0,C=E_[P>>2]|0,x=E_[T>>2]|0;e:do if((L|0)>((((x-C|0)*40|0|0)/100|0)+C|0)){for(I=E+252|0,j=L,q=E_[F>>2]|0;;){if(W=Gu(A,((E_[O>>2]|0)+q|0)/2|0,j,1)|0,K=E_[F>>2]|0,(W|0)>(K|0))X=K;else{if(K=bb(I,j-(E_[P>>2]|0)|0)|0,W=E_[F>>2]|0,!((K|0)>(((E_[O>>2]|0)+1-W|0)/10|0|0)))break;X=W}if(W=j-1|0,K=E_[P>>2]|0,G=E_[T>>2]|0,!((W|0)>((((G-K|0)*40|0|0)/100|0)+K|0))){Q=W,J=K,$=G;break e}j=W,q=X}Q=j,J=E_[P>>2]|0,$=E_[T>>2]|0}else Q=L,J=C,$=x;while(0);if(!((Q|0)>(((($-J|0)*40|0|0)/100|0)+J|0)&(Q|0)<($|0))){Z=4905;break}if(!(hs(e,116,Q,114,0)|0)){Z=4905;break}return Hl(E),void(O_=f)}if((R|0)==78){if(x=E_[F>>2]|0,((E_[T>>2]|0)+1-(E_[P>>2]|0)|0)<=((E_[O>>2]|0)+1-x|0)){Z=4905;break}do if((x|0)>=(E_[i+4>>2]|0)){if(C=E+108|0,(E_[E+116>>2]|0)<0&&tb(C),L=(bb(C,((((E_[E+148>>2]|0)-(E_[E+144>>2]|0)>>2)*50|0)-50|0)/100|0)|0)<<2,(L|0)>=((E_[O>>2]|0)+1-(E_[F>>2]|0)|0))break;if(L=E+252|0,C=Fb(L,0,-1)|0,A=E+260|0,(E_[A>>2]|0)<0&&tb(L),q=E+292|0,I=E_[q>>2]|0,G=E+288|0,K=E_[G>>2]|0,(C|0)<((((I-K>>2)*40|0)-40|0)/100|0|0))break;if((E_[A>>2]|0)<0?(tb(L),er=E_[q>>2]|0,rr=E_[G>>2]|0):(er=I,rr=K),(C|0)>=((((er-rr>>2)*50|0)-50|0)/100|0|0))break;if(!(hs(e,114,(E_[P>>2]|0)+C|0,118,0)|0))break;return Hl(E),void(O_=f)}while(0);(R|0)!=0&&(Z=4905)}else(R|0)!=0&&(Z=4905)}while(0);if((Z|0)==4905)return x=a,E_[a>>2]=R,E_[x+4>>2]=0,C=e+32|0,K=E_[C>>2]|0,(K|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,x),Hl(E),void(O_=f)):((K|0)==0?ir=0:(x=K,K=E_[a+4>>2]|0,E_[x>>2]=E_[a>>2],E_[x+4>>2]=K,ir=E_[C>>2]|0),E_[C>>2]=ir+8,Hl(E),void(O_=f));C=(E_[O>>2]|0)+1-(E_[F>>2]|0)|0,K=(E_[T>>2]|0)+1-(E_[P>>2]|0)|0,x=E+204|0;e:do if((Mb(x,-1)|0)<3){if((Mb(x,(((E_[O>>2]|0)+1-(E_[F>>2]|0)|0)/8|0)+(((((K|0)<(C|0)?K:C)|0)/30|0)+1)|0)|0)!=2){if(I=(E_[O>>2]|0)+1-(E_[F>>2]|0)|0,(I|0)<=15)break;if((Mb(x,(I|0)/8|0)|0)!=2)break}I=tk(E,i)|0;r:do{if((I|0)==107){if(G=E+60|0,(E_[E+68>>2]|0)<0&&tb(G),q=(bb(G,((((E_[E+100>>2]|0)-(E_[E+96>>2]|0)>>2)*10|0)-10|0)/100|0)|0)<<1,(q|0)<=((E_[T>>2]|0)+1-(E_[P>>2]|0)|0)){Z=5011;break}if(q=E+156|0,(E_[E+164>>2]|0)<0&&tb(q),kb(q,((((E_[E+196>>2]|0)-(E_[E+192>>2]|0)>>2)*75|0)-75|0)/100|0,2)|0){Z=5011;break}if(!(hs(e,114,((E_[T>>2]|0)+(E_[P>>2]|0)|0)/2|0,116,0)|0)){Z=5011;break}return Hl(E),void(O_=f)}if((I|0)==0)break e;if((I|0)==110){if(q=E_[O>>2]|0,(q|0)<=(((E_[i+12>>2]|0)+(E_[i+4>>2]|0)|0)/2|0|0))return G=t,E_[t>>2]=34,E_[G+4>>2]=0,L=e+32|0,A=E_[L>>2]|0,(A|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,G),Hl(E),void(O_=f)):((A|0)==0?fr=0:(G=A,A=E_[t+4>>2]|0,E_[G>>2]=E_[t>>2],E_[G+4>>2]=A,fr=E_[L>>2]|0),E_[L>>2]=fr+8,Hl(E),void(O_=f));L=E+60|0,A=E+68|0;do if(((E_[T>>2]|0)+1-(E_[P>>2]|0)|0)>(q+1-(E_[F>>2]|0)|0)){if((E_[A>>2]|0)<0&&tb(L),G=(bb(L,((((E_[E+100>>2]|0)-(E_[E+96>>2]|0)>>2)*10|0)-10|0)/100|0)|0)*10|0,(G|0)>=((E_[T>>2]|0)+1-(E_[P>>2]|0)|0))break;if(G=E+156|0,W=E+164|0,(E_[W>>2]|0)<0&&tb(G),ar=E+196|0,tr=E+192|0,kb(G,((((E_[ar>>2]|0)-(E_[tr>>2]|0)>>2)*75|0)-75|0)/100|0,2)|0)break;if((E_[W>>2]|0)<0&&tb(G),W=(bb(G,((((E_[ar>>2]|0)-(E_[tr>>2]|0)>>2)*50|0)-50|0)/100|0)|0)*10|0,tr=E_[T>>2]|0,(W|0)<=(tr+1-(E_[P>>2]|0)|0))break;if(el(g|0,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0,tr)|0)break;return Hl(E),void(O_=f)}while(0);(E_[A>>2]|0)<0&&tb(L),q=(bb(L,((((E_[E+100>>2]|0)-(E_[E+96>>2]|0)>>2)*10|0)-10|0)/100|0)|0)<<1,j=E+156|0;do if((q|0)>((E_[T>>2]|0)+1-(E_[P>>2]|0)|0)){if((E_[E+164>>2]|0)<0&&tb(j),kb(j,((((E_[E+196>>2]|0)-(E_[E+192>>2]|0)>>2)*75|0)-75|0)/100|0,2)|0)break;if(tr=g|0,W=Xu(tr,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0,E_[T>>2]|0,1)|0,ar=E_[P>>2]|0,(W|0)>(((((E_[T>>2]|0)-ar|0)*95|0|0)/100|0)+ar|0))break;if(el(tr,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0,W)|0)break;if(!(hs(e,114,((E_[T>>2]|0)+(E_[P>>2]|0)|0)/2|0,116,0)|0))break;return Hl(E),void(O_=f)}while(0);if((Mb(j,-1)|0)!=1){Z=5011;break}if((E_[E+164>>2]|0)<0&&tb(j),kb(j,((((E_[E+196>>2]|0)-(E_[E+192>>2]|0)>>2)*75|0)-75|0)/100|0,2)|0){Z=5011;break}if(q=E_[F>>2]|0,L=(E_[O>>2]|0)-q|0,A=((L*60|0|0)/100|0)+q|0,(A|0)<=(((L*25|0|0)/100|0)+q|0)){Z=5011;break}q=g|0,L=0,W=A,A=0;i:for(;;){tr=((E_[T>>2]|0)+(E_[P>>2]|0)|0)/2|0,ar=tr-(Xu(q,W,tr,1)|0)|0,(ar|0)>(A|0)?L?(nr=ar,Z=4966):(or=0,ur=ar):(ar<<1|0)<(A|0)&(A|0)>2|L?(nr=A,Z=4966):(or=0,ur=A);do if((Z|0)==4966){if(Z=0,!(Gb(ar,nr,25,1)|0)){or=1,ur=nr;break}for(tr=Qu(q,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0,((E_[T>>2]|0)+(E_[P>>2]|0)|0)/2|0,1)|0,G=((E_[T>>2]|0)+(E_[P>>2]|0)|0)/2|0;;){if((G|0)>(tr|0))break;if(lr=Ju(q,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0,G,1)|0,(lr|0)<(E_[O>>2]|0))break;G=G+1|0}if((G|0)<=(E_[P>>2]|0)){or=1,ur=nr;break}if((G|0)>=(E_[T>>2]|0)){or=1,ur=nr;break}if(hs(e,102,G-1|0,108,0)|0)break i;or=1,ur=nr}while(0);if(ar=W-1|0,tr=E_[F>>2]|0,!((ar|0)>(((((E_[O>>2]|0)-tr|0)*25|0|0)/100|0)+tr|0))){Z=5011;break r}L=or,W=ar,A=ur}return Hl(E),void(O_=f)}if((I|0)==104){if(A=E+60|0,(E_[E+68>>2]|0)<0&&tb(A),W=(bb(A,((((E_[E+100>>2]|0)-(E_[E+96>>2]|0)>>2)*10|0)-10|0)/100|0)|0)<<1,A=E+156|0,(W|0)<=((E_[T>>2]|0)+1-(E_[P>>2]|0)|0)){if(!(Ob(A,30)|0)){Z=5011;break}return W=((E_[T>>2]|0)+(E_[P>>2]|0)|0)/2|0,hs(e,102,W,105,0)|0,Hl(E),void(O_=f)}if((E_[E+164>>2]|0)<0&&tb(A),(bb(A,((((E_[E+196>>2]|0)-(E_[E+192>>2]|0)>>2)*70|0)-70|0)/100|0)|0)<=1)return Hl(E),void(O_=f);if(A=E_[F>>2]|0,W=Gu(g|0,((((E_[O>>2]|0)-A|0)*70|0|0)/100|0)+A|0,E_[T>>2]|0,1)|0,(W|0)<=(E_[F>>2]|0))return Hl(E),void(O_=f);if(W=E+252|0,A=ob(W)|0,L=lb(W)|0,q=E_[P>>2]|0,j=E_[T>>2]|0,ar=j-q|0,tr=((ar*40|0|0)/100|0)+q|0,(tr|0)>(((ar*60|0|0)/100|0)+q|0))sr=0,br=q,kr=j;else for(j=0,ar=A+1-L|0,L=tr,tr=q;;){if((bb(W,L-tr|0)|0)<(ar|0)?(cr=bb(W,L-(E_[P>>2]|0)|0)|0,dr=L):(cr=ar,dr=j),q=L+1|0,A=E_[P>>2]|0,lr=E_[T>>2]|0,(q|0)>((((lr-A|0)*60|0|0)/100|0)+A|0)){sr=dr,br=A,kr=lr;break}j=dr,ar=cr,L=q,tr=A}return(sr|0)>(br|0)&(sr|0)<(kr|0)?(hs(e,114,sr-1|0,102,0)|0,Hl(E),void(O_=f)):(Hl(E),void(O_=f))}}while(0);if((Z|0)==5011&&(I|0)==0)break;return tr=k,E_[k>>2]=I,E_[tr+4>>2]=0,L=e+32|0,ar=E_[L>>2]|0,(ar|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,tr),Hl(E),void(O_=f)):((ar|0)==0?hr=0:(tr=ar,ar=E_[k+4>>2]|0,E_[tr>>2]=E_[k>>2],E_[tr+4>>2]=ar,hr=E_[L>>2]|0),E_[L>>2]=hr+8,Hl(E),void(O_=f))}while(0);if((Mb(x,-1)|0)==3){do if((Mb(x,((E_[O>>2]|0)+1-(E_[F>>2]|0)|0)/2|0)|0)==1){if((Mb(E+108|0,-1)|0)!=3)break;if((Mb(E+60|0,-1)|0)!=2)break;if((Mb(E+156|0,-1)|0)!=2)break;return C=c,E_[c>>2]=42,E_[C+4>>2]=0,K=e+32|0,R=E_[K>>2]|0,(R|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,C),Hl(E),void(O_=f)):((R|0)==0?_r=0:(C=R,R=E_[c+4>>2]|0,E_[C>>2]=E_[c>>2],E_[C+4>>2]=R,_r=E_[K>>2]|0),E_[K>>2]=_r+8,Hl(E),void(O_=f))}while(0);do if((hl(g,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0,((E_[T>>2]|0)+(E_[P>>2]|0)|0)/2|0)|0)==0){if((hl(g,(((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0)-1|0,((E_[T>>2]|0)+(E_[P>>2]|0)|0)/2|0)|0)!=0)break;if((hl(g,(((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0)+1|0,((E_[T>>2]|0)+(E_[P>>2]|0)|0)/2|0)|0)!=0)break;if(K=g|0,R=Xu(K,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0,((E_[T>>2]|0)+(E_[P>>2]|0)|0)/2|0,1)|0,C=E_[P>>2]|0,(R|0)>(((((E_[T>>2]|0)-C|0)*25|0|0)/100|0)+C|0))break;if(R=E_[F>>2]|0,L=((((E_[O>>2]|0)-R|0)*95|0|0)/100|0)+R|0,R=Qu(K,L,(Qu(K,L,(Qu(K,L,C,1)|0)+1|0,0)|0)+1|0,1)|0,(R|0)<=(E_[P>>2]|0))break;if((R|0)>=(E_[T>>2]|0))break;if(!(hs(e,114,R,110,0)|0))break;return Hl(E),void(O_=f)}while(0);return(Mb(E+108|0,((E_[O>>2]|0)+1-(E_[F>>2]|0)|0)/3|0)|0)!=1?(Hl(E),void(O_=f)):(R=d,E_[d>>2]=109,E_[R+4>>2]=0,C=e+32|0,L=E_[C>>2]|0,(L|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,R),Hl(E),void(O_=f)):((L|0)==0?wr=0:(R=L,L=E_[d+4>>2]|0,E_[R>>2]=E_[d>>2],E_[R+4>>2]=L,wr=E_[C>>2]|0),E_[C>>2]=wr+8,Hl(E),void(O_=f)))}C=E+108|0;do if((Mb(x,-1)|0)==4){if((Mb(C,((E_[O>>2]|0)+1-(E_[F>>2]|0)|0)/3|0)|0)!=1)break;if(L=E_[F>>2]|0,R=((((E_[O>>2]|0)-L|0)*95|0|0)/100|0)+L|0,L=g|0,K=Qu(L,R,(Qu(L,R,(Qu(L,R,E_[P>>2]|0,1)|0)+1|0,0)|0)+1|0,1)|0,(K|0)<=(E_[P>>2]|0))break;if((K|0)>=(E_[T>>2]|0))break;if(!(hs(e,114,K,109,0)|0))break;return Hl(E),void(O_=f)}while(0);if((Mb(C,((E_[O>>2]|0)+1-(E_[F>>2]|0)|0)/4|0)|0)==3){if(x=g|0,nl(x,S)|0)return Hl(E),void(O_=f);do if((Yb(E,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0)|0)>=4){if(!(el(x,((E_[O>>2]|0)+(E_[F>>2]|0)|0)/2|0,((E_[T>>2]|0)+(E_[P>>2]|0)|0)/2|0)|0))break;return Hl(E),void(O_=f)}while(0);return P=h,E_[h>>2]=119,E_[P+4>>2]=0,T=e+32|0,F=E_[T>>2]|0,(F|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,P),Hl(E),void(O_=f)):((F|0)==0?vr=0:(P=F,F=E_[h+4>>2]|0,E_[P>>2]=E_[h>>2],E_[P+4>>2]=F,vr=E_[T>>2]|0),E_[T>>2]=vr+8,Hl(E),void(O_=f))}return T=sk(E,i)|0,(T|0)!=0?(F=m,E_[m>>2]=T,E_[F+4>>2]=0,T=e+32|0,P=E_[T>>2]|0,(P|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,F),Hl(E),void(O_=f)):((P|0)==0?mr=0:(F=P,P=E_[m+4>>2]|0,E_[F>>2]=E_[m>>2],E_[F+4>>2]=P,mr=E_[T>>2]|0),E_[T>>2]=mr+8,Hl(E),void(O_=f))):(T=jb(E,i)|0,(T|0)==0?(Hl(E),void(O_=f)):(P=p,E_[p>>2]=T,E_[P+4>>2]=0,T=e+32|0,F=E_[T>>2]|0,(F|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,P),Hl(E),void(O_=f)):((F|0)==0?pr=0:(P=F,F=E_[p+4>>2]|0,E_[P>>2]=E_[p>>2],E_[P+4>>2]=F,pr=E_[T>>2]|0),E_[T>>2]=pr+8,Hl(E),void(O_=f))))}}while(0);return pr=_,E_[_>>2]=y,E_[pr+4>>2]=0,y=e+32|0,p=E_[y>>2]|0,(p|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,pr),Hl(E),void(O_=f)):((p|0)==0?Er=0:(pr=p,p=E_[_+4>>2]|0,E_[pr>>2]=E_[_>>2],E_[pr+4>>2]=p,Er=E_[y>>2]|0),E_[y>>2]=Er+8,Hl(E),void(O_=f))}function xl(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0;if(f=O_,O_=O_+432|0,a=f|0,t=f+8|0,n=f+16|0,o=f+24|0,u=f+32|0,l=f+384|0,s=f+424|0,b=ls(e,0)|0,k=dl(b,0)|0,!(lu(k|0,b|0)|0))return void(O_=f);Hb(u,b),c=k+4|0,d=b+4|0,h=(E_[c>>2]|0)-(E_[d>>2]|0)|0,_=b+12|0,w=k+12|0,k=(E_[_>>2]|0)-(E_[w>>2]|0)|0,v=Q_(h-k|0)|0,m=((E_[w>>2]|0)+1-(E_[c>>2]|0)|0)/4|0;do if((v|0)>(((m|0)>2?m:2)|0)){if(Gb(h,k,40,2)|0){p=5152;break}if((h|0)<(k|0)){if(E=bk(u,i)|0,(E|0)==0)break;if(S=n,E_[n>>2]=E,E_[S+4>>2]=0,E=e+32|0,g=E_[E>>2]|0,(g|0)==(E_[e+36>>2]|0)){Ul(e+28|0,S);break}(g|0)==0?y=0:(S=g,g=E_[n+4>>2]|0,E_[S>>2]=E_[n>>2],E_[S+4>>2]=g,y=E_[E>>2]|0),E_[E>>2]=y+8;break}if((h|0)<=(k|0))break;if(E=ck(u,r)|0,(E|0)==0)break;if(g=o,E_[o>>2]=E,E_[g+4>>2]=0,S=e+32|0,A=E_[S>>2]|0,(A|0)==(E_[e+36>>2]|0)?Ul(e+28|0,g):((A|0)==0?O=0:(g=A,A=E_[o+4>>2]|0,E_[g>>2]=E_[o>>2],E_[g+4>>2]=A,O=E_[S>>2]|0),E_[S>>2]=O+8),(E|0)!=243)break;if(E=E_[c>>2]|0,S=(E_[w>>2]|0)-(E_[_>>2]|0)+E|0,A=S-1|0,!((A|0)>(E_[d>>2]|0)&(S|0)<(E|0)))break;ol(l,b),cl(b,A),bl(l,S),S=kn(40)|0,ol(S,l),E_[s>>2]=S,A=e+20|0,E=E_[A>>2]|0,(E|0)==(E_[e+24>>2]|0)?Cu(e+16|0,s):((E|0)==0?R=0:(E_[E>>2]=S,R=E_[A>>2]|0),E_[A>>2]=R+4),ul(l)}else p=5152;while(0);e:do if((p|0)==5152){l=kk(u,r,i)|0;do if((l|0)==81){if(!(Gb(h,k,40,2)|0))break;if(R=t,E_[t>>2]=97,E_[R+4>>2]=1,s=e+32|0,b=E_[s>>2]|0,(b|0)==(E_[e+36>>2]|0)){Ul(e+28|0,R);break}(b|0)==0?F=0:(R=b,b=E_[t+4>>2]|0,E_[R>>2]=E_[t>>2],E_[R+4>>2]=b,F=E_[s>>2]|0),E_[s>>2]=F+8}else if((l|0)==0)break e;while(0);if(s=a,E_[a>>2]=l,E_[s+4>>2]=0,b=e+32|0,R=E_[b>>2]|0,(R|0)==(E_[e+36>>2]|0)){Ul(e+28|0,s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|0)*10|0,K=x|0,X=x+12|0,G=x+4|0;e:do if((W|0)>((E_[X>>2]|0)+1-(E_[G>>2]|0)|0))Q=5247;else{if(!(su(Z,K)|0)){Q=5247;break}if(!(su(z,K)|0)){Q=5247;break}J=E_[X>>2]|0,$=E_[q>>2]|0,er=E_[G>>2]|0;do{if(!((J-$|0)>((E_[j>>2]|0)-er|0))){if((J-(E_[V>>2]|0)|0)>((E_[Y>>2]|0)-er|0)){rr=$,ir=er,fr=J;break}if(!(wb(L)|0)){rr=E_[q>>2]|0,ir=E_[G>>2]|0,fr=E_[X>>2]|0;break}if(ar=R,E_[R>>2]=109,E_[ar+4>>2]=0,tr=e+32|0,nr=E_[tr>>2]|0,(nr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,ar);
break e}(nr|0)==0?or=0:(ar=nr,nr=E_[R+4>>2]|0,E_[ar>>2]=E_[R>>2],E_[ar+4>>2]=nr,or=E_[tr>>2]|0),E_[tr>>2]=or+8;break e}rr=$,ir=er,fr=J}while(0);if(J=(Q_(rr-((fr+ir|0)/2|0)|0)|0)*5|0,er=E_[X>>2]|0,$=E_[G>>2]|0,(J|0)>(er+1-$|0))break;if(J=(Q_((E_[V>>2]|0)-(($+er|0)/2|0)|0)|0)*5|0,(J|0)>((E_[X>>2]|0)+1-(E_[G>>2]|0)|0))break;if(!(wb(T)|0))break;if((Mb(L,-1)|0)!=2)break;if(J=p,E_[p>>2]=119,E_[J+4>>2]=0,er=e+32|0,$=E_[er>>2]|0,($|0)==(E_[e+36>>2]|0)){Ul(e+28|0,J);break}($|0)==0?ur=0:(J=$,$=E_[p+4>>2]|0,E_[J>>2]=E_[p>>2],E_[J+4>>2]=$,ur=E_[er>>2]|0),E_[er>>2]=ur+8}while(0);e:do if((Q|0)==5247){if(!(lu(Z,K)|0))break;if(!(lu(z,K)|0))break;if(ur=B|0,p=x|0,ir=E_[p>>2]|0,fr=x+8|0,rr=E_[fr>>2]|0,or=(rr+ir|0)/2|0,(E_[ur>>2]|0)>(or|0)&&(E_[H>>2]|0)>(or|0))break;if(or=B+8|0,R=(((rr-ir|0)*40|0|0)/100|0)+ir|0,(E_[or>>2]|0)<(R|0)&&(E_[H+8>>2]|0)<(R|0))break;if(R=((E_[X>>2]|0)+(E_[G>>2]|0)|0)/2|0,(E_[j>>2]|0)>(R|0))break;if((E_[V>>2]|0)<(R|0))break;for(R=qu(B)|0,ir=qu(H)|0,rr=E_[fr>>2]|0,W=((E_[p>>2]|0)+rr|0)/2|0,er=((E_[or>>2]|0)+(E_[ur>>2]|0)|0)/2|0,$=H|0,J=H+8|0,tr=((E_[J>>2]|0)+(E_[$>>2]|0)|0)/2|0,nr=(tr|0)<(er|0)?tr:er,er=rr-((nr|0)<(W|0)?nr:W)|0,W=E_[G>>2]|0,nr=(E_[q>>2]|0)-W|0,rr=W;;){if(W=nr+1|0,(W|0)>=((E_[Y>>2]|0)-rr|0))break;if((bb(P,W)|0)>(er|0)){Q=5264;break}nr=W,rr=E_[G>>2]|0}if((Q|0)==5264){if(rr=f,E_[f>>2]=103,E_[rr+4>>2]=2,nr=e+32|0,er=E_[nr>>2]|0,(er|0)==(E_[e+36>>2]|0)){Ul(e+28|0,rr);break}(er|0)==0?lr=0:(rr=er,er=E_[f+4>>2]|0,E_[rr>>2]=E_[f>>2],E_[rr+4>>2]=er,lr=E_[nr>>2]|0),E_[nr>>2]=lr+8;break}do if(Gb(R,ir,50,1)|0){nr=((E_[X>>2]|0)+(E_[G>>2]|0)|0)/2|0;do if((E_[q>>2]|0)>(nr|0)){if((E_[Y>>2]|0)>=(nr|0))break;if(!(nu(Z,z)|0))break;if(fu(Z,z)|0)break;if(er=a,E_[a>>2]=48,E_[er+4>>2]=0,rr=e+32|0,W=E_[rr>>2]|0,(W|0)==(E_[e+36>>2]|0)){Ul(e+28|0,er);break e}(W|0)==0?sr=0:(er=W,W=E_[a+4>>2]|0,E_[er>>2]=E_[a>>2],E_[er+4>>2]=W,sr=E_[rr>>2]|0),E_[rr>>2]=sr+8;break e}while(0);if((E_[q>>2]|0)>(E_[Y>>2]|0))break;do if(nl(U,I)|0){if((E_[I>>2]|0)<=(((E_[X>>2]|0)+1-(E_[G>>2]|0)|0)/2|0|0))break;if(!(tl(U,I)|0))break;if((E_[I>>2]|0)<=(((E_[X>>2]|0)+1-(E_[G>>2]|0)|0)/2|0|0))break;if(nr=t,E_[t>>2]=115,E_[nr+4>>2]=0,rr=e+32|0,W=E_[rr>>2]|0,(W|0)==(E_[e+36>>2]|0)){Ul(e+28|0,nr);break e}(W|0)==0?br=0:(nr=W,W=E_[t+4>>2]|0,E_[nr>>2]=E_[t>>2],E_[nr+4>>2]=W,br=E_[rr>>2]|0),E_[rr>>2]=br+8;break e}while(0);do if(wb(C)|0){if(!(Ab(C)|0)){if(!(_b(C)|0))break;if(!(_l(x)|0))break}if(rr=n,E_[n>>2]=66,E_[rr+4>>2]=0,W=e+32|0,nr=E_[W>>2]|0,(nr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,rr);break e}(nr|0)==0?kr=0:(rr=nr,nr=E_[n+4>>2]|0,E_[rr>>2]=E_[n>>2],E_[rr+4>>2]=nr,kr=E_[W>>2]|0),E_[W>>2]=kr+8;break e}while(0);W=Xu(B,E_[q>>2]|0,(E_[or>>2]|0)+1|0,1)|0;do if((W-1|0)<=((Qu(H,E_[Y>>2]|0,(E_[$>>2]|0)-1|0,1)|0)+1|0)){do if(hb(C)|0)Q=5314;else{if(vb(C)|0){Q=5314;break}if(Ob(P,50)|0)break;if((Mb(T,-1)|0)!=1)break;if(nr=u,E_[u>>2]=97,E_[nr+4>>2]=1,rr=e+32|0,er=E_[rr>>2]|0,(er|0)==(E_[e+36>>2]|0)){Ul(e+28|0,nr);break}(er|0)==0?cr=0:(nr=er,er=E_[u+4>>2]|0,E_[nr>>2]=E_[u>>2],E_[nr+4>>2]=er,cr=E_[rr>>2]|0),E_[rr>>2]=cr+8}while(0);do if((Q|0)==5314){if(rr=o,E_[o>>2]=101,E_[rr+4>>2]=1,er=e+32|0,nr=E_[er>>2]|0,(nr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,rr);break}(nr|0)==0?dr=0:(rr=nr,nr=E_[o+4>>2]|0,E_[rr>>2]=E_[o>>2],E_[rr+4>>2]=nr,dr=E_[er>>2]|0),E_[er>>2]=dr+8}while(0);if(!(Eb(L)|0))break;if(er=l,E_[l>>2]=36,E_[er+4>>2]=0,nr=e+32|0,rr=E_[nr>>2]|0,(rr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,er);break e}(rr|0)==0?hr=0:(er=rr,rr=E_[l+4>>2]|0,E_[er>>2]=E_[l>>2],E_[er+4>>2]=rr,hr=E_[nr>>2]|0),E_[nr>>2]=hr+8;break e}while(0);W=E_[p>>2]|0,nr=((E_[fr>>2]|0)+W|0)/2|0,rr=E_[or>>2]|0;do if((nr|0)>((rr+(E_[ur>>2]|0)|0)/2|0|0)){if(er=E_[J>>2]|0,(nr|0)<=((er+(E_[$>>2]|0)|0)/2|0|0))break;if((nr|0)<(rr|0)&(nr|0)<(er|0))break;if(er=s,E_[s>>2]=38,E_[er+4>>2]=0,tr=e+32|0,ar=E_[tr>>2]|0,(ar|0)==(E_[e+36>>2]|0)){Ul(e+28|0,er);break e}(ar|0)==0?_r=0:(er=ar,ar=E_[s+4>>2]|0,E_[er>>2]=E_[s>>2],E_[er+4>>2]=ar,_r=E_[tr>>2]|0),E_[tr>>2]=_r+8;break e}while(0);for(nr=E_[Y>>2]|0,rr=e|0,tr=e+8|0,ar=x+16|0,er=E_[q>>2]|0;;){if(wr=er+1|0,(wr|0)>=(nr|0))break;if((m_[(E_[(E_[ar>>2]|0)+((wr-(E_[G>>2]|0)|0)*12|0)>>2]|0)+((((E_[tr>>2]|0)+(E_[rr>>2]|0)|0)/2|0)-W)|0]|0)==0){Q=5346;break}er=wr}if((Q|0)==5346){if(er=b,E_[b>>2]=103,E_[er+4>>2]=0,W=e+32|0,rr=E_[W>>2]|0,(rr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,er);break e}(rr|0)==0?vr=0:(er=rr,rr=E_[b+4>>2]|0,E_[er>>2]=E_[b>>2],E_[er+4>>2]=rr,vr=E_[W>>2]|0),E_[W>>2]=vr+8;break e}W=r+12|0;do if((E_[W>>2]|0)>(((E_[V>>2]|0)+nr|0)/2|0|0)){if(!(hb(L)|0)){if(!(vb(L)|0))break;if(!(vb(T)|0))break}rr=E_[G>>2]|0,er=E_[r+4>>2]|0;r:do if((rr|0)>=(er|0)){if((1-rr+(E_[X>>2]|0)|0)>(1-er+(E_[W>>2]|0)|0))break;vb(C)|0?Q=5364:hb(C)|0&&(Q=5364);do if((Q|0)==5364){if(vb(P)|0&&(E_[J>>2]|0)<=(E_[or>>2]|0))break;if(tr=k,E_[k>>2]=101,E_[tr+4>>2]=1,ar=e+32|0,wr=E_[ar>>2]|0,(wr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,tr);break r}(wr|0)==0?mr=0:(tr=wr,wr=E_[k+4>>2]|0,E_[tr>>2]=E_[k>>2],E_[tr+4>>2]=wr,mr=E_[ar>>2]|0),E_[ar>>2]=mr+8;break r}while(0);if(ar=E_[fr>>2]|0,(E_[P+8>>2]|0)<0&&tb(P),wr=ar-(bb(P,((((E_[P+40>>2]|0)-(E_[P+36>>2]|0)>>2)*50|0)-50|0)/100|0)|0)|0,(wr|0)<=(E_[or>>2]|0))break;if(Ob(P,50)|0)break;if(wr=c,E_[c>>2]=97,E_[wr+4>>2]=1,ar=e+32|0,tr=E_[ar>>2]|0,(tr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,wr);break}(tr|0)==0?pr=0:(wr=tr,tr=E_[c+4>>2]|0,E_[wr>>2]=E_[c>>2],E_[wr+4>>2]=tr,pr=E_[ar>>2]|0),E_[ar>>2]=pr+8}while(0);er=E_[G>>2]|0,rr=E_[X>>2]|0;do if((E_[q>>2]|0)>((rr+er|0)/2|0|0)){if((E_[j>>2]|0)<=((((rr-er|0)*30|0|0)/100|0)+er|0))break;if(ar=d,E_[d>>2]=233,E_[ar+4>>2]=0,tr=e+32|0,wr=E_[tr>>2]|0,(wr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,ar);break e}(wr|0)==0?Er=0:(ar=wr,wr=E_[d+4>>2]|0,E_[ar>>2]=E_[d>>2],E_[ar+4>>2]=wr,Er=E_[tr>>2]|0),E_[tr>>2]=Er+8;break e}while(0);if(er=h,E_[h>>2]=56,E_[er+4>>2]=0,rr=e+32|0,tr=E_[rr>>2]|0,(tr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,er);break e}(tr|0)==0?Sr=0:(er=tr,tr=E_[h+4>>2]|0,E_[er>>2]=E_[h>>2],E_[er+4>>2]=tr,Sr=E_[rr>>2]|0),E_[rr>>2]=Sr+8;break e}while(0);do if((Mb(C,-1)|0)==2){if((Mb(P,-1)|0)!=1)break;nr=E_[W>>2]|0;do if(((nr+(E_[r+4>>2]|0)|0)/2|0|0)<(E_[q>>2]|0)){if((nr|0)>=(E_[V>>2]|0))break;if(rr=_,E_[_>>2]=103,E_[rr+4>>2]=0,tr=e+32|0,er=E_[tr>>2]|0,(er|0)==(E_[e+36>>2]|0)){Ul(e+28|0,rr);break e}(er|0)==0?gr=0:(rr=er,er=E_[_+4>>2]|0,E_[rr>>2]=E_[_>>2],E_[rr+4>>2]=er,gr=E_[tr>>2]|0),E_[tr>>2]=gr+8;break e}while(0);if(nr=w,E_[w>>2]=97,E_[nr+4>>2]=0,tr=e+32|0,er=E_[tr>>2]|0,(er|0)==(E_[e+36>>2]|0)){Ul(e+28|0,nr);break e}(er|0)==0?yr=0:(nr=er,er=E_[w+4>>2]|0,E_[nr>>2]=E_[w>>2],E_[nr+4>>2]=er,yr=E_[tr>>2]|0),E_[tr>>2]=yr+8;break e}while(0);tr=E_[W>>2]|0,er=(tr+(E_[r+4>>2]|0)|0)/2|0;do if((er|0)>(E_[j>>2]|0)){if((er|0)>=(E_[q>>2]|0)&&(tr|0)>=(((E_[V>>2]|0)+(E_[Y>>2]|0)|0)/2|0|0))break;if(nr=v,E_[v>>2]=103,E_[nr+4>>2]=2,rr=e+32|0,wr=E_[rr>>2]|0,(wr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,nr);break}(wr|0)==0?Ar=0:(nr=wr,wr=E_[v+4>>2]|0,E_[nr>>2]=E_[v>>2],E_[nr+4>>2]=wr,Ar=E_[rr>>2]|0),E_[rr>>2]=Ar+8}while(0);if(tr=m,E_[m>>2]=66,E_[tr+4>>2]=1,er=e+32|0,W=E_[er>>2]|0,rr=e+36|0,(W|0)==(E_[rr>>2]|0)?(Ul(e+28|0,tr),Or=E_[er>>2]|0):((W|0)==0?Rr=0:(tr=W,W=E_[m+4>>2]|0,E_[tr>>2]=E_[m>>2],E_[tr+4>>2]=W,Rr=E_[er>>2]|0),W=Rr+8|0,E_[er>>2]=W,Or=W),W=E,E_[E>>2]=97,E_[W+4>>2]=0,(Or|0)==(E_[rr>>2]|0)){Ul(e+28|0,W);break e}(Or|0)==0?Fr=0:(W=Or,rr=E_[E+4>>2]|0,E_[W>>2]=E_[E>>2],E_[W+4>>2]=rr,Fr=E_[er>>2]|0),E_[er>>2]=Fr+8;break e}while(0);do if((R|0)>(ir|0)){if(!(nu(Z,z)|0))break;if(ou(Z,z)|0){if(!(fu(Z,z)|0))break e;if(er=y,E_[y>>2]=81,E_[er+4>>2]=0,rr=e+32|0,W=E_[rr>>2]|0,(W|0)==(E_[e+36>>2]|0)){Ul(e+28|0,er);break e}(W|0)==0?Mr=0:(er=W,W=E_[y+4>>2]|0,E_[er>>2]=E_[y>>2],E_[er+4>>2]=W,Mr=E_[rr>>2]|0),E_[rr>>2]=Mr+8;break e}do if((E_[$>>2]|0)>(((E_[fr>>2]|0)+(E_[p>>2]|0)|0)/2|0|0)){if((E_[V>>2]|0)>=((E_[X>>2]|0)-1-(E_[q>>2]|0)+(E_[j>>2]|0)|0))break;if(rr=S,E_[S>>2]=57,E_[rr+4>>2]=0,W=e+32|0,er=E_[W>>2]|0,(er|0)==(E_[e+36>>2]|0)){Ul(e+28|0,rr);break e}(er|0)==0?Nr=0:(rr=er,er=E_[S+4>>2]|0,E_[rr>>2]=E_[S>>2],E_[rr+4>>2]=er,Nr=E_[W>>2]|0),E_[W>>2]=Nr+8;break e}while(0);if(W=g,E_[g>>2]=103,E_[W+4>>2]=0,er=e+32|0,rr=E_[er>>2]|0,(rr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,W);break e}(rr|0)==0?Dr=0:(W=rr,rr=E_[g+4>>2]|0,E_[W>>2]=E_[g>>2],E_[W+4>>2]=rr,Dr=E_[er>>2]|0),E_[er>>2]=Dr+8;break e}while(0);if((R|0)>=(ir|0))break;if((Mb(T,-1)|0)!=1)break;do if(nu(Z,z)|0){if((Mb(P,-1)|0)!=1){if(ou(Z,z)|0)break;if((E_[or>>2]|0)>=(((E_[fr>>2]|0)+(E_[p>>2]|0)|0)/2|0|0))break;if(er=E_[j>>2]|0,(er|0)<=(1-er+(E_[G>>2]|0)+(E_[q>>2]|0)|0))break;if(er=N,E_[N>>2]=54,E_[er+4>>2]=0,rr=e+32|0,W=E_[rr>>2]|0,(W|0)==(E_[e+36>>2]|0)){Ul(e+28|0,er);break e}(W|0)==0?Cr=0:(er=W,W=E_[N+4>>2]|0,E_[er>>2]=E_[N>>2],E_[er+4>>2]=W,Cr=E_[rr>>2]|0),E_[rr>>2]=Cr+8;break e}do if(((E_[q>>2]|0)+1-(E_[j>>2]|0)<<1|0)>((E_[V>>2]|0)+1-(E_[Y>>2]|0)|0)){if(rr=(E_[J>>2]|0)+1-(E_[$>>2]|0)|0,((E_[or>>2]|0)+1-(E_[ur>>2]|0)<<1|0)<=(rr|0))break;if((rr*3|0|0)<((E_[fr>>2]|0)+1-(E_[p>>2]|0)|0))break;if(Ob(C,50)|0)break;do if(vb(C)|0){if(!(hb(C)|0))break;if(rr=A,E_[A>>2]=54,E_[rr+4>>2]=0,W=e+32|0,er=E_[W>>2]|0,(er|0)==(E_[e+36>>2]|0)){Ul(e+28|0,rr);break e}(er|0)==0?Tr=0:(rr=er,er=E_[A+4>>2]|0,E_[rr>>2]=E_[A>>2],E_[rr+4>>2]=er,Tr=E_[W>>2]|0),E_[W>>2]=Tr+8;break e}while(0);if(W=O,E_[O>>2]=66,E_[W+4>>2]=0,er=e+32|0,rr=E_[er>>2]|0,(rr|0)==(E_[e+36>>2]|0)){Ul(e+28|0,W);break e}(rr|0)==0?Pr=0:(W=rr,rr=E_[O+4>>2]|0,E_[W>>2]=E_[O>>2],E_[W+4>>2]=rr,Pr=E_[er>>2]|0),E_[er>>2]=Pr+8;break e}while(0);if((E_[J>>2]|0)<(((E_[fr>>2]|0)+(E_[p>>2]|0)|0)/2|0|0)){if(er=F,E_[F>>2]=38,E_[er+4>>2]=0,rr=e+32|0,W=E_[rr>>2]|0,(W|0)==(E_[e+36>>2]|0)){Ul(e+28|0,er);break e}(W|0)==0?Lr=0:(er=W,W=E_[F+4>>2]|0,E_[er>>2]=E_[F>>2],E_[er+4>>2]=W,Lr=E_[rr>>2]|0),E_[rr>>2]=Lr+8;break e}if(rr=M,E_[M>>2]=97,E_[rr+4>>2]=0,W=e+32|0,er=E_[W>>2]|0,(er|0)==(E_[e+36>>2]|0)){Ul(e+28|0,rr);break e}(er|0)==0?Ir=0:(rr=er,er=E_[M+4>>2]|0,E_[rr>>2]=E_[M>>2],E_[rr+4>>2]=er,Ir=E_[W>>2]|0),E_[W>>2]=Ir+8;break e}while(0);if((E_[q>>2]|0)>=(E_[Y>>2]|0))break;if(p=D,E_[D>>2]=38,E_[p+4>>2]=0,fr=e+32|0,J=E_[fr>>2]|0,(J|0)==(E_[e+36>>2]|0)){Ul(e+28|0,p);break}(J|0)==0?xr=0:(p=J,J=E_[D+4>>2]|0,E_[p>>2]=E_[D>>2],E_[p+4>>2]=J,xr=E_[fr>>2]|0),E_[fr>>2]=xr+8}while(0);return xr=E_[L+36>>2]|0,D=xr,(xr|0)!=0&&(e=L+40|0,L=E_[e>>2]|0,(xr|0)!=(L|0)&&(E_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!=0&&(a=e+100|0,f=E_[a>>2]|0,(r|0)!=(f|0)&&(E_[a>>2]=f+(~((f-4+(-i|0)|0)>>>2)<<2)),hn(r)),r=e+48|0,i=E_[r>>2]|0,(i|0)!=0){if(f=e+52|0,a=E_[f>>2]|0,(i|0)==(a|0))t=i;else{for(n=a;;){if(a=n-12|0,E_[f>>2]=a,o=E_[a>>2]|0,u=o,(o|0)==0?l=a:(a=n-12+4|0,s=E_[a>>2]|0,(o|0)!=(s|0)&&(E_[a>>2]=s+(~((s-8+(-u|0)|0)>>>3)<<3)),hn(o),l=E_[f>>2]|0),(i|0)==(l|0))break;n=l}t=E_[r>>2]|0}hn(t)}if(t=e+36|0,r=E_[t>>2]|0,(r|0)!=0){if(l=e+40|0,n=E_[l>>2]|0,(r|0)==(n|0))b=r;else{for(i=n;;){if(n=i-12|0,E_[l>>2]=n,f=E_[n>>2]|0,o=f,(f|0)==0?k=n:(n=i-12+4|0,u=E_[n>>2]|0,(f|0)!=(u|0)&&(E_[n>>2]=u+(~((u-8+(-o|0)|0)>>>3)<<3)),hn(f),k=E_[l>>2]|0),(r|0)==(k|0))break;i=k}b=E_[t>>2]|0}hn(b)}b=E_[e+24>>2]|0,t=b,(b|0)!=0&&(k=e+28|0,i=E_[k>>2]|0,(b|0)!=(i|0)&&(E_[k>>2]=i+(~((i-16+(-t|0)|0)>>>4)<<4)),hn(b)),b=E_[e+12>>2]|0,(b|0)!=0&&(t=e+16|0,e=E_[t>>2]|0,(b|0)!=(e|0)&&(E_[t>>2]=e+(~((e-16+(-b|0)|0)>>>4)<<4)),hn(b))}function Ul(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;i=e+4|0,f=e|0,a=E_[f>>2]|0,t=a,n=(E_[i>>2]|0)-t|0,o=n>>3,u=o+1|0,u>>>0>536870911&&cf(0),l=e+8|0,e=(E_[l>>2]|0)-t|0,e>>3>>>0>268435454?(s=536870911,b=5595):(t=e>>2,e=t>>>0<u>>>0?u:t,(e|0)==0?(k=0,c=0):(s=e,b=5595)),(b|0)==5595&&(k=kn(s<<3)|0,c=s),s=k+(o<<3)|0,o=k+(c<<3)|0,(s|0)!=0&&(c=r,r=s,s=E_[c+4>>2]|0,E_[r>>2]=E_[c>>2],E_[r+4>>2]=s),s=k+(u<<3)|0,u=k,r=a,yn(u|0,r|0,n)|0,E_[f>>2]=k,E_[i>>2]=s,E_[l>>2]=o,(a|0)!=0&&hn(r)}function zl(e){e|=0;var r=0;switch(e|0){case 209:r=78;break;case 350:r=83;break;case 287:r=103;break;case 231:r=99;break;case 217:case 218:case 219:case 220:r=85;break;case 221:r=89;break;case 253:case 255:r=121;break;case 199:r=67;break;case 249:case 250:case 251:case 252:r=117;break;case 286:r=71;break;case 236:case 237:case 238:case 239:case 305:r=105;break;case 204:case 205:case 206:case 207:case 304:r=73;break;case 351:r=115;break;case 210:case 211:case 212:case 213:case 214:r=79;break;case 200:case 201:case 202:case 203:r=69;break;case 241:r=110;break;case 242:case 243:case 244:case 245:case 246:r=111;break;case 224:case 225:case 226:case 227:case 228:case 229:r=97;break;case 192:case 193:case 194:case 195:case 196:case 197:r=65;break;case 232:case 233:case 234:case 235:r=101;break;default:r=0}return r|0}function Yl(e,r){e|=0,r|=0;var i=0,f=0;e:do switch(e|0){case 78:(r|0)==58?i=5675:f=209;break;case 91:case 73:if((r|0)==58){f=207;break e}if((r|0)==94){f=206;break e}if((r|0)==96){f=204;break e}if((r|0)==39){f=205;break e}i=5675;break e;case 65:if((r|0)==96){f=192;break e}if((r|0)==94){f=194;break e}if((r|0)==58){f=196;break e}if((r|0)==39){f=193;break e}i=5675;break e;case 85:case 86:if((r|0)==96){f=217;break e}if((r|0)==58){f=220;break e}if((r|0)==39){f=218;break e}if((r|0)==94){f=219;break e}i=5675;break e;case 79:if((r|0)==96){f=210;break e}if((r|0)==58){f=214;break e}if((r|0)==94){f=212;break e}if((r|0)==39){f=211;break e}i=5675;break e;case 83:f=352;break;case 90:f=381;break;case 69:if((r|0)==94){f=202;break e}if((r|0)==96){f=200;break e}if((r|0)==39){f=201;break e}if((r|0)==58){f=203;break e}i=5675;break e;case 97:if((r|0)==96){f=224;break e}if((r|0)==94){f=226;break e}if((r|0)==58){f=228;break e}if((r|0)==39){f=225;break e}i=5675;break e;case 101:if((r|0)==96){f=232;break e}if((r|0)==94){f=234;break e}if((r|0)==58){f=235;break e}if((r|0)==39){f=233;break e}i=5675;break e;case 57:case 103:f=287;break;case 124:case 93:case 105:case 108:if((r|0)==96){f=236;break e}if((r|0)==94){f=238;break e}if((r|0)==58){f=239;break e}if((r|0)==39){f=237;break e}i=5675;break e;case 110:(r|0)==58?i=5675:f=241;break;case 111:if((r|0)==96){f=242;break e}if((r|0)==94){f=244;break e}if((r|0)==58){f=246;break e}if((r|0)==39){f=243;break e}i=5675;break e;case 115:f=353;break;case 117:case 118:if((r|0)==96){f=249;break e}if((r|0)==94){f=251;break e}if((r|0)==58){f=252;break e}if((r|0)==39){f=250;break e}i=5675;break e;case 121:if((r|0)==39){f=253;break e}if((r|0)!=58){i=5675;break e}f=255;break;case 122:f=382;break;case 71:f=286;break;default:i=5675}while(0);return(i|0)==5675&&(f=0),f|0}function Vl(e){e|=0;var r=0,i=0;(e|0)<128?(Ow(e|0)|0)==0?r=5679:i=1:r=5679;e:do if((r|0)==5679){switch(e|0){case 192:case 193:case 194:case 195:case 196:case 197:case 199:case 200:case 201:case 202:case 203:case 286:case 204:case 205:case 206:case 207:case 304:case 209:case 210:case 211:case 212:case 213:case 214:case 350:case 217:case 218:case 219:case 220:case 221:case 224:case 225:case 226:case 227:case 228:case 229:case 231:case 232:case 233:case 234:case 235:case 287:case 236:case 237:case 238:case 239:case 305:case 241:case 242:case 243:case 244:case 245:case 246:case 351:case 249:case 250:case 251:case 252:case 253:case 255:i=1;break e}i=(e-48|0)>>>0<10}while(0);return i|0}function Zl(e){e|=0;var r=0,i=0;(e|0)<128?(Ow(e|0)|0)==0?r=5684:i=1:r=5684;e:do if((r|0)==5684){switch(e|0){case 192:case 193:case 194:case 195:case 196:case 197:case 199:case 200:case 201:case 202:case 203:case 286:case 204:case 205:case 206:case 207:case 304:case 209:case 210:case 211:case 212:case 213:case 214:case 350:case 217:case 218:case 219:case 220:case 221:case 224:case 225:case 226:case 227:case 228:case 229:case 231:case 232:case 233:case 234:case 235:case 287:case 236:case 237:case 238:case 239:case 305:case 241:case 242:case 243:case 244:case 245:case 246:case 351:case 249:case 250:case 251:case 252:case 253:case 255:i=1;break e}i=0}while(0);return i|0}function jl(e){return e|=0,(e-48|0)>>>0<10|0}function ql(e){e|=0;var r=0,i=0,f=0;(e|0)<128?(Ew(e|0)|0)==0?r=5690:i=1:r=5690;e:do if((r|0)==5690){switch(e|0){case 200:case 201:case 202:case 203:f=69,r=5710;break;case 209:f=78,r=5710;break;case 286:f=71,r=5710;break;case 231:f=99,r=5710;break;case 221:f=89,r=5710;break;case 210:case 211:case 212:case 213:case 214:f=79,r=5710;break;case 350:f=83,r=5710;break;case 351:f=115,r=5710;break;case 242:case 243:case 244:case 245:case 246:f=111,r=5710;break;case 249:case 250:case 251:case 252:f=117,r=5710;break;case 199:f=67,r=5710;break;case 232:case 233:case 234:case 235:f=101,r=5710;break;case 241:f=110,r=5710;break;case 204:case 205:case 206:case 207:case 304:f=73,r=5710;break;case 253:case 255:f=121,r=5710;break;case 287:f=103,r=5710;break;case 236:case 237:case 238:case 239:case 305:f=105,r=5710;break;case 192:case 193:case 194:case 195:case 196:case 197:f=65,r=5710;break;case 217:case 218:case 219:case 220:f=85,r=5710;break;case 224:case 225:case 226:case 227:case 228:case 229:f=97,r=5710}if((r|0)==5710&&(Ew(f|0)|0)!=0){i=1;break}if((e-48|0)>>>0<10){i=1;break}switch(e|0){case 98:case 100:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 112:case 113:case 116:case 121:case 124:i=1;break e}i=0}while(0);return i|0}function Wl(e){e|=0;var r=0,i=0,f=0;(e|0)<128?(Ew(e|0)|0)==0?r=5717:i=1:r=5717;e:do if((r|0)==5717){switch(e|0){case 236:case 237:case 238:case 239:case 305:f=105;break;case 231:f=99;break;case 287:f=103;break;case 209:f=78;break;case 350:f=83;break;case 224:case 225:case 226:case 227:case 228:case 229:f=97;break;case 221:f=89;break;case 249:case 250:case 251:case 252:f=117;break;case 241:f=110;break;case 204:case 205:case 206:case 207:case 304:f=73;break;case 242:case 243:case 244:case 245:case 246:f=111;break;case 199:f=67;break;case 232:case 233:case 234:case 235:f=101;break;case 351:f=115;break;case 286:f=71;break;case 200:case 201:case 202:case 203:f=69;break;case 192:case 193:case 194:case 195:case 196:case 197:f=65;break;case 217:case 218:case 219:case 220:f=85;break;case 253:case 255:f=121;break;case 210:case 211:case 212:case 213:case 214:f=79;break;default:i=0;break e}i=(Ew(f|0)|0)!=0}while(0);return i|0}function Kl(e){e|=0;var r=0,i=0,f=0;(e|0)<128?(pw(e|0)|0)==0?r=5741:i=1:r=5741;e:do if((r|0)==5741){switch(e|0){case 200:case 201:case 202:case 203:f=69;break;case 209:f=78;break;case 286:f=71;break;case 231:f=99;break;case 221:f=89;break;case 210:case 211:case 212:case 213:case 214:f=79;break;case 350:f=83;break;case 351:f=115;break;case 242:case 243:case 244:case 245:case 246:f=111;break;case 249:case 250:case 251:case 252:f=117;break;case 199:f=67;break;case 232:case 233:case 234:case 235:f=101;break;case 241:f=110;break;case 204:case 205:case 206:case 207:case 304:f=73;break;case 253:case 255:f=121;break;case 287:f=103;break;case 236:case 237:case 238:case 239:case 305:f=105;break;case 192:case 193:case 194:case 195:case 196:case 197:f=65;break;case 217:case 218:case 219:case 220:f=85;break;case 224:case 225:case 226:case 227:case 228:case 229:f=97;break;default:i=0;break e}i=(pw(f|0)|0)!=0}while(0);return i|0}function Xl(e){e|=0;var r=0,i=0;do if((e|0)>127)r=5766;else{if((pw(e|0)|0)==0){r=5766;break}switch(e|0){case 99:case 111:case 115:case 117:case 118:case 119:case 120:case 122:case 107:case 112:case 231:case 236:case 237:case 238:case 239:case 242:case 243:case 244:case 245:case 246:case 249:case 250:case 251:case 252:case 351:case 353:case 382:i=1;break;default:r=5767}}while(0);if((r|0)==5766)switch(e|0){case 107:case 112:case 231:case 236:case 237:case 238:case 239:case 242:case 243:case 244:case 245:case 246:case 249:case 250:case 251:case 252:case 351:case 353:case 382:i=1;break;default:r=5767}return(r|0)==5767&&(i=0),i|0}function Gl(e){e|=0;var r=0;e:do if((e|0)>127)r=0;else{if((pw(e|0)|0)==0){r=0;break}switch(e|0){case 99:case 111:case 115:case 117:case 118:case 119:case 120:case 122:r=1;break e}r=0}while(0);return r|0}function Ql(e){e|=0;var r=0;e:do if((e|0)>127)r=0;else{if((pw(e|0)|0)==0){r=0;break}switch(e|0){case 97:case 99:case 101:case 109:case 110:case 111:case 114:case 115:case 117:case 118:case 119:case 120:case 122:r=1;break e}r=0}while(0);return r|0}function Jl(e){e|=0;var r=0;return r=(e|0)<128?(tw(e|0)|0)!=0:0,r|0}function $l(e){e|=0;var r=0,i=0,f=0;e:do if((e|0)>127)switch(e|0){case 241:r=110,i=5804;break e;case 232:case 233:case 234:case 235:r=101,i=5804;break e;case 236:case 237:case 238:case 239:case 305:r=105,i=5804;break e;case 210:case 211:case 212:case 213:case 214:r=79,i=5804;break e;case 217:case 218:case 219:case 220:r=85,i=5804;break e;case 231:r=99,i=5804;break e;case 224:case 225:case 226:case 227:case 228:case 229:r=97,i=5804;break e;case 286:r=71,i=5804;break e;case 253:case 255:r=121,i=5804;break e;case 200:case 201:case 202:case 203:r=69,i=5804;break e;case 204:case 205:case 206:case 207:case 304:r=73,i=5804;break e;case 242:case 243:case 244:case 245:case 246:r=111,i=5804;break e;case 209:r=78,i=5804;break e;case 351:r=115,i=5804;break e;case 287:r=103,i=5804;break e;case 249:case 250:case 251:case 252:r=117,i=5804;break e;case 199:r=67,i=5804;break e;case 192:case 193:case 194:case 195:case 196:case 197:r=65,i=5804;break e;case 221:r=89,i=5804;break e;case 350:r=83,i=5804;break e;default:f=0;break e}else(e|0)==0?f=0:(r=e,i=5804);while(0);e:do if((i|0)==5804){if((Ow(r|0)|0)==0){f=0;break}switch(Rn(r|0)|0){case 111:case 105:case 101:case 97:case 117:f=1;break e}f=0}while(0);return f|0}function es(e){e|=0;var r=0;e:do if((e|0)<0)r=0;else{if((e|0)<256){r=e&255;break}switch(e|0){case 287:r=-16;break e;case 350:r=-34;break e;case 304:r=-35;break e;case 8364:r=-92;break e;case 381:r=-76;break e;case 351:r=-2;break e;case 352:r=-90;break e;case 286:r=-48;break e;case 305:r=-3;break e;case 353:r=-88;break e;case 382:r=-72;break e;default:r=0;break e}}while(0);return r|0}function rs(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if((e|0)<0)return m_[15216]=0,15216;if((e|0)<128)return m_[15216]=e&255,m_[15217]=0,15216;do if((e|0)<2048)r=192,i=2,f=5831;else{if((e|0)<65536){r=224,i=3,f=5831;break}if((e|0)<2097152){r=240,i=4,f=5831;break}a=(e|0)<67108864,t=a?5:6,n=a?248:252,m_[15216+t|0]=0,a=t-1|0,(a|0)>0?(o=n,u=a,f=5833):(l=e,s=n)}while(0);if((f|0)==5831&&(m_[15216+i|0]=0,o=r,u=i-1|0,f=5833),(f|0)==5833)for(f=0,i=u,u=e;;){if(m_[15216+i|0]=(u&63|128)&255,r=f+6|0,n=i-1|0,a=e>>r,!((n|0)>0)){l=a,s=o;break}f=r,i=n,u=a}return m_[15216]=(l|s)&255,15216}function is(e){e|=0;var r=0;switch(e|0){case 74:case 84:r=55;break;case 103:r=57;break;case 79:case 81:case 111:r=48;break;case 90:case 122:r=50;break;case 71:case 98:case 243:r=54;break;case 83:case 115:r=53;break;case 38:case 66:r=56;break;case 65:case 113:r=52;break;case 124:case 73:case 76:case 108:case 305:r=49;break;default:r=e}return r|0}function fs(e){e|=0;var r=0;switch(e|0){case 48:r=79;break;case 57:r=103;break;case 53:r=83;break;case 52:r=113;break;case 49:r=108;break;case 56:r=66;break;case 55:r=73;break;case 50:r=90;break;case 54:r=243;break;default:r=e}return r|0}function as(e){e|=0;var r=0;e:do if((e|0)<128)r=yw(e|0)|0;else switch(e|0){case 224:r=192;break e;case 252:r=220;break e;case 239:r=207;break e;case 229:r=197;break e;case 228:r=196;break e;case 243:r=211;break e;case 238:r=206;break e;case 231:r=199;break e;case 235:r=203;break e;case 227:r=195;break e;case 287:r=286;break e;case 237:r=205;break e;case 225:r=193;break e;case 232:r=200;break e;case 226:r=194;break e;case 233:r=201;break e;case 242:r=210;break e;case 253:r=221;break e;case 244:r=212;break e;case 241:r=209;break e;case 245:r=213;break e;case 236:r=204;break e;case 249:r=217;break e;case 246:r=214;break e;case 251:r=219;break e;case 234:r=202;break e;case 351:r=350;break e;case 250:r=218;break e;default:r=e;break e}while(0);return r|0}function ts(e,r){e|=0,r|=0;var i=0,f=0,a=0;if(i=e,f=r,E_[i>>2]=E_[f>>2],E_[i+4>>2]=E_[f+4>>2],E_[i+8>>2]=E_[f+8>>2],E_[i+12>>2]=E_[f+12>>2],f=e+16|0,i=r+16|0,Au(f,i),Os(e+28|0,r+28|0),r=e+20|0,e=f|0,(E_[r>>2]|0)!=(E_[e>>2]|0)){f=i|0,i=0;do a=kn(40)|0,ol(a,E_[(E_[f>>2]|0)+(i<<2)>>2]|0),E_[(E_[e>>2]|0)+(i<<2)>>2]=a,i=i+1|0;while(i>>>0<(E_[r>>2]|0)-(E_[e>>2]|0)>>2>>>0)}}function ns(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if((e|0)==(r|0))return e|0;if(i=e,f=r,E_[i>>2]=E_[f>>2],E_[i+4>>2]=E_[f+4>>2],E_[i+8>>2]=E_[f+8>>2],E_[i+12>>2]=E_[f+12>>2],f=e+16|0,i=e+20|0,a=E_[i>>2]|0,t=f|0,n=E_[t>>2]|0,(a|0)!=(n|0))for(o=0,u=n,n=a;;){if(a=E_[u+(o<<2)>>2]|0,(a|0)==0?(l=n,s=u):(ul(a),hn(a),l=E_[i>>2]|0,s=E_[t>>2]|0),a=o+1|0,!(a>>>0<l-s>>2>>>0))break;o=a,u=s,n=l}if(l=r+16|0,Fu(f,E_[l>>2]|0,E_[r+20>>2]|0),(E_[i>>2]|0)!=(E_[t>>2]|0)){f=l|0,l=0;do n=kn(40)|0,ol(n,E_[(E_[f>>2]|0)+(l<<2)>>2]|0),E_[(E_[t>>2]|0)+(l<<2)>>2]=n,l=l+1|0;while(l>>>0<(E_[i>>2]|0)-(E_[t>>2]|0)>>2>>>0)}return As(e+28|0,E_[r+28>>2]|0,E_[r+32>>2]|0),e|0}function os(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(r=e+20|0,i=E_[r>>2]|0,f=e+16|0,a=E_[f>>2]|0,(i|0)==(a|0))t=i;else for(n=0,o=a,a=i;;){if(i=E_[o+(n<<2)>>2]|0,(i|0)==0?(u=a,l=o):(ul(i),hn(i),u=E_[r>>2]|0,l=E_[f>>2]|0),i=n+1|0,!(i>>>0<u-l>>2>>>0)){t=l;break}n=i,o=l,a=u}l=E_[e+28>>2]|0,u=l,(l|0)==0?s=t:(t=e+32|0,e=E_[t>>2]|0,(l|0)!=(e|0)&&(E_[t>>2]=e+(~((e-8+(-u|0)|0)>>>3)<<3)),hn(l),s=E_[f>>2]|0),(s|0)!=0&&(f=E_[r>>2]|0,(s|0)!=(f|0)&&(E_[r>>2]=f+(~((f-4+(-s|0)|0)>>>2)<<2)),hn(s))}function us(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0;do{if(!((r|0)<0)){if(f=e+16|0,a=E_[f>>2]|0,!(((E_[e+20>>2]|0)-a>>2|0)>(r|0))){i=f;break}return t=a,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}i=e+16|0}while(0);return Xb(3600),t=E_[i>>2]|0,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}function ls(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0;do{if(!((r|0)<0)){if(f=e+16|0,a=E_[f>>2]|0,!(((E_[e+20>>2]|0)-a>>2|0)>(r|0))){i=f;break}return t=a,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}i=e+16|0}while(0);return Xb(4224),t=E_[i>>2]|0,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}function ss(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0;if(r=E_[e+16>>2]|0,i=(E_[e+20>>2]|0)-r|0,(i|0)<=4)return f=0,a=r+(f<<2)|0,t=E_[a>>2]|0,t|0;for(e=i>>2,i=0,n=1;;){if(o=E_[r+(n<<2)>>2]|0,u=J_((E_[o+8>>2]|0)+1-(E_[o>>2]|0)|0,(E_[o+12>>2]|0)+1-(E_[o+4>>2]|0)|0)|0,o=E_[r+(i<<2)>>2]|0,l=(u|0)>(J_((E_[o+8>>2]|0)+1-(E_[o>>2]|0)|0,(E_[o+12>>2]|0)+1-(E_[o+4>>2]|0)|0)|0),o=l?n:i,l=n+1|0,!((l|0)<(e|0))){f=o;break}i=o,n=l}return a=r+(f<<2)|0,t=E_[a>>2]|0,t|0}function bs(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0;i=O_,O_=O_+24|0,f=i|0,a=i+8|0,t=i+16|0,E_[f>>2]=r,Qo(e|0,r|0),n=E_[e+16>>2]|0,o=(E_[e+20>>2]|0)-n|0,u=o>>2;e:do if((o|0)>0)for(l=((E_[r+12>>2]|0)+(E_[r+4>>2]|0)|0)/2|0,s=r|0,b=r+8|0,k=u;;){if(c=k-1|0,d=E_[n+(c<<2)>>2]|0,h=((E_[d+12>>2]|0)+(E_[d+4>>2]|0)|0)/2|0,(l|0)>(h|0)){_=k;break e}if((l|0)==(h|0)&&(((E_[b>>2]|0)+(E_[s>>2]|0)|0)/2|0|0)>=(((E_[d+8>>2]|0)+(E_[d>>2]|0)|0)/2|0|0)){_=k;break e}if(!((c|0)>0)){_=c;break}k=c}else _=u;while(0);E_[a>>2]=n+(_<<2),ks(t,e+16|0,a,f),O_=i}function ks(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0;if(a=O_,t=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[t>>2],t=r|0,n=E_[t>>2]|0,o=n,u=(E_[i>>2]|0)-o|0,i=u>>2,l=n+(i<<2)|0,s=r+4|0,b=E_[s>>2]|0,k=r+8|0,r=E_[k>>2]|0,b>>>0<r>>>0){if((l|0)==(b|0))return(l|0)==0?c=0:(E_[l>>2]=E_[f>>2],c=E_[s>>2]|0),E_[s>>2]=c+4,d=l,h=e|0,E_[h>>2]=d,void(O_=a);if(c=b-(n+(i+1<<2))|0,_=c>>2,w=n+(_+i<<2)|0,w>>>0<b>>>0){i=w,w=b;do(w|0)==0?v=0:(E_[w>>2]=E_[i>>2],v=E_[s>>2]|0),i=i+4|0,w=v+4|0,E_[s>>2]=w;while(i>>>0<b>>>0)}return i=b+(-_<<2)|0,_=l,On(i|0,_|0,c|0)|0,m=l>>>0>f>>>0?f:(E_[s>>2]|0)>>>0>f>>>0?f+4|0:f,E_[l>>2]=E_[m>>2],d=l,h=e|0,E_[h>>2]=d,void(O_=a)}m=(b-o>>2)+1|0,m>>>0>1073741823&&cf(0),b=r-o|0,b>>2>>>0>536870910?(p=1073741823,E=l,S=u>>2,g=6001):(o=b>>1,b=o>>>0<m>>>0?m:o,o=l,m=u>>2,(b|0)==0?(y=0,A=0,O=o,R=m):(p=b,E=o,S=m,g=6001)),(g|0)==6001&&(y=kn(p<<2)|0,A=p,O=E,R=S),S=y+(R<<2)|0,E=y+(A<<2)|0;do if((R|0)==(A|0)){if((R|0)>0){F=y+(((R+1|0)/-2|0)+R<<2)|0,M=E;break}if(p=R<<1,g=(p|0)==0?1:p,p=kn(g<<2)|0,m=p+(g>>>2<<2)|0,o=p+(g<<2)|0,(y|0)==0){F=m,M=o;break}hn(y),F=m,M=o}else F=S,M=E;while(0);return(F|0)!=0&&(E_[F>>2]=E_[f>>2]),f=F+4|0,E=E_[t>>2]|0,S=O-E|0,y=F+(-(S>>2)<<2)|0,R=y,A=E,yn(R|0,A|0,S)|0,S=(E_[s>>2]|0)-O|0,O=S>>2,R=f,f=l,yn(R|0,f|0,S)|0,E_[t>>2]=y,E_[s>>2]=F+(O+1<<2),E_[k>>2]=M,(E|0)==0?(d=F,h=e|0,E_[h>>2]=d,void(O_=a)):(hn(A),d=F,h=e|0,E_[h>>2]=d,void(O_=a))}function cs(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0;a=O_,O_=O_+24|0,t=a|0,n=a+8|0,o=a+16|0;do if((r|0)<0)u=6023;else{if(l=E_[e+28>>2]|0,((E_[e+32>>2]|0)-l>>3|0)<(r|0)){u=6023;break}s=l,b=e+28|0}while(0);(u|0)==6023&&(Xb(3104),u=e+28|0,s=E_[u>>2]|0,b=u),E_[t>>2]=s+(r<<3),E_[n>>2]=i,E_[n+4>>2]=f,ds(o,b,t,n),O_=a}function ds(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0;if(a=O_,t=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[t>>2],t=r|0,n=E_[t>>2]|0,o=n,u=(E_[i>>2]|0)-o|0,i=u>>3,l=n+(i<<3)|0,s=r+4|0,b=E_[s>>2]|0,k=r+8|0,r=E_[k>>2]|0,b>>>0<r>>>0){if((l|0)==(b|0))return(l|0)==0?c=0:(d=f,h=l,_=E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E_[e+4>>2]=p,S=E_[d>>2]|0),E_[d>>2]=S+8,l=1,O_=t,l|0))))}function _s(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0;(r|0)<0?(f=e+28|0,a=6092):(t=e+28|0,n=E_[t>>2]|0,o=(E_[e+32>>2]|0)-n>>3,(i|0)>-1&(o|0)>(r|0)&(o|0)>(i|0)?u=n:(f=t,a=6092)),(a|0)==6092&&(Xb(1976),u=E_[f>>2]|0),f=u+(r<<3)|0,r=E_[f>>2]|0,E_[f>>2]=E_[u+(i<<3)>>2],E_[(E_[e+28>>2]|0)+(i<<3)>>2]=r
}function ws(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0;do{if(!((r|0)<0)){if(f=e+28|0,a=E_[f>>2]|0,!(((E_[e+32>>2]|0)-a>>3|0)>(r|0))){i=f;break}return t=a,n=t+(r<<3)|0,n|0}i=e+28|0}while(0);return Xb(1688),t=E_[i>>2]|0,n=t+(r<<3)|0,n|0}function vs(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0;for(i=E_[e+28>>2]|0,f=(E_[e+32>>2]|0)-i>>3,e=0;;){if((e|0)>=(f|0)){a=0,t=6105;break}if((E_[i+(e<<3)>>2]|0)==(r|0)){a=1,t=6106;break}e=e+1|0}return(t|0)==6106?a|0:(t|0)==6105?a|0:0}function ms(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0;if(i=r+20|0,f=E_[i>>2]|0,a=r+16|0,r=E_[a>>2]|0,(f-r|0)>0)for(t=0,n=r;;){if(bs(e,E_[n+(t<<2)>>2]|0),o=t+1|0,u=E_[i>>2]|0,l=E_[a>>2]|0,!((o|0)<(u-l>>2|0))){s=l,b=u;break}t=o,n=l}else s=r,b=f;(s|0)!=(b|0)&&(E_[i>>2]=b+(~((b-4+(-s|0)|0)>>>2)<<2))}function ps(e){e|=0;var r=0,i=0,f=0;r=E_[e+28>>2]|0;do if((E_[e+32>>2]|0)!=(r|0)){if(i=es(E_[r>>2]|0)|0,i<<24>>24==0)break;return f=i,f|0}while(0);return f=95,f|0}function Es(e){e|=0;var r=0,i=0,f=0;r=E_[e+28>>2]|0;do if((E_[e+32>>2]|0)!=(r|0)){if(i=rs(E_[r>>2]|0)|0,(m_[i]|0)==0)break;return f=i,f|0}while(0);return f=1280,f|0}function Ss(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0;t=O_;e:do if(f|a)for(n=r+8|0,o=E_[n>>2]|0,u=e+32|0,l=e+28|0,s=(E_[u>>2]|0)-(E_[l>>2]|0)>>3,Hw(o|0,832,(b=O_,O_=O_+8|0,E_[b>>2]=s,b|0))|0,O_=b,s=r+21|0,o=0;;){if(k=E_[l>>2]|0,(o|0)>=((E_[u>>2]|0)-k>>3|0)){c=n;break e}do if((m_[s]&1)==0){if(d=es(E_[k+(o<<3)>>2]|0)|0,d<<24>>24==0)break;h=E_[n>>2]|0,_=d&255,d=E_[(E_[l>>2]|0)+(o<<3)+4>>2]|0,Hw(h|0,448,(b=O_,O_=O_+16|0,E_[b>>2]=_,E_[b+8>>2]=d,b|0))|0,O_=b}else d=E_[n>>2]|0,_=rs(E_[k+(o<<3)>>2]|0)|0,h=E_[(E_[l>>2]|0)+(o<<3)+4>>2]|0,Hw(d|0,216,(b=O_,O_=O_+16|0,E_[b>>2]=_,E_[b+8>>2]=h,b|0))|0,O_=b;while(0);o=o+1|0}else{if(o=e+28|0,l=r+8|0,n=E_[o>>2]|0,((E_[e+32>>2]|0)-n|0)<=0){c=l;break}if((m_[r+21|0]&1)!=0){s=E_[l>>2]|0,u=rs(E_[n>>2]|0)|0,k=E_[(E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))for(y=_,R=a,O=u,g=d,n=i;;){h=(y|0)==(R|0),s=(y|0)==((O+R|0)/2|0|0),p=(y|0)==(O|0),S=(y|0)==(g|0),E=(y|0)==((n+g|0)/2|0|0),e=(y|0)==(n|0),F=E_[m>>2]|0;do if(((E_[v>>2]|0)-F|0)==4){if(M=E_[F>>2]|0,N=M+32|0,D=M+28|0,(E_[N>>2]|0)==(E_[D>>2]|0)){C=0,T=0,P=0,L=0;break}if(I=(y|0)==(E_[(dl(M,0)|0)+4>>2]|0),x=(y|0)==(E_[(dl(M,0)|0)+12>>2]|0),((E_[N>>2]|0)-(E_[D>>2]|0)|0)<=4){C=0,T=0,P=x,L=I;break}D=(y|0)==(E_[(dl(M,1)|0)+4>>2]|0),C=(y|0)==(E_[(dl(M,1)|0)+12>>2]|0),T=D,P=x,L=I}else C=0,T=0,P=0,L=0;while(0);F=E_[f>>2]|0,I=E_[l>>2]|0;r:do if((F|0)<=(I|0)){if(s)B=F,H=I;else for(x=F;;){for(D=0;;){if(M=E_[m>>2]|0,(D|0)>=((E_[v>>2]|0)-M>>2|0)){U=46;break}if(z=hl(E_[M+(D<<2)>>2]|0,y,x)|0,(z|0)!=0){Y=6162;break}D=D+1|0}if((Y|0)==6162&&(Y=0,U=(z|0)>0?79:45),Hw(E_[c>>2]|0,3720,(b=O_,O_=O_+8|0,E_[b>>2]=U,b|0))|0,O_=b,x=x+1|0,(x|0)>(E_[l>>2]|0))break r}do{for(x=(B|0)==(((E_[f>>2]|0)+H|0)/2|0|0),D=x?43:46,M=0;;){if(N=E_[m>>2]|0,(M|0)>=((E_[v>>2]|0)-N>>2|0)){V=D;break}if(Z=hl(E_[N+(M<<2)>>2]|0,y,B)|0,(Z|0)!=0){Y=6154;break}M=M+1|0}do if((Y|0)==6154){if(Y=0,(Z|0)>0){V=x?67:79;break}V=x?61:45;break}while(0);Hw(E_[c>>2]|0,3720,(b=O_,O_=O_+8|0,E_[b>>2]=V&255,b|0))|0,O_=b,B=B+1|0,H=E_[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>3,Hw(E_[f>>2]|0,2744,(s=O_,O_=O_+40|0,E_[s>>2]=a,E_[s+8>>2]=t,E_[s+16>>2]=n,E_[s+24>>2]=o,E_[s+32>>2]=e,s|0))|0,O_=s,e=E_[l>>2]|0,((E_[u>>2]|0)-e|0)<=0)return b=E_[f>>2]|0,k=fw(10,b|0)|0,void(O_=i);o=r+21|0,r=0,n=e;do(m_[o]&1)==0?(e=es(E_[n+(r<<3)>>2]|0)|0,t=E_[f>>2]|0,a=e<<24>>24==0?95:e&255,e=E_[(E_[l>>2]|0)+(r<<3)+4>>2]|0,Hw(t|0,2704,(s=O_,O_=O_+16|0,E_[s>>2]=a,E_[s+8>>2]=e,s|0))|0,O_=s):(e=E_[f>>2]|0,a=rs(E_[n+(r<<3)>>2]|0)|0,t=E_[(E_[l>>2]|0)+(r<<3)+4>>2]|0,Hw(e|0,2632,(s=O_,O_=O_+16|0,E_[s>>2]=a,E_[s+8>>2]=t,s|0))|0,O_=s),r=r+1|0,n=E_[l>>2]|0;while((r|0)<((E_[u>>2]|0)-n>>3|0));b=E_[f>>2]|0,k=fw(10,b|0)|0,O_=i}function ys(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0;if(i=O_,O_=O_+16|0,f=i|0,a=i+8|0,t=E_[r>>2]|0,(t|0)==0)return void(O_=i);if(r=e+32|0,n=e+28|0,o=E_[n>>2]|0,u=(E_[r>>2]|0)==(o|0)?0:E_[o>>2]|0,(t|0)==3)l=0,s=6226;else if((t|0)==2)b=1,s=6204;else if((t|0)==1)b=0,s=6204;else{if((t|0)!=4)return void(O_=i);l=1,s=6226}if((s|0)==6226){if(jl(u)|0)return void(O_=i);if(Jl(u)|0)return void(O_=i);for(k=1;;){if(t=E_[r>>2]|0,o=E_[n>>2]|0,(k|0)>=(t-o>>3|0)){c=t,d=o;break}if(jl(E_[o+(k<<3)>>2]|0)|0){s=6230;break}k=k+1|0}(s|0)==6230&&(o=E_[n>>2]|0,t=(E_[r>>2]|0)-o|0,(k|0)>-1&(t|0)>0&(t>>3|0)>(k|0)?h=o:(Xb(1976),h=E_[n>>2]|0),o=h|0,t=E_[o>>2]|0,E_[o>>2]=E_[h+(k<<3)>>2],E_[(E_[n>>2]|0)+(k<<3)>>2]=t,c=E_[r>>2]|0,d=E_[n>>2]|0);do if((c|0)!=(d|0)){if(jl(E_[d>>2]|0)|0)break;t=is(E_[E_[n>>2]>>2]|0)|0,E_[E_[n>>2]>>2]=t}while(0);if(!l)return void(O_=i);l=E_[r>>2]|0,d=E_[n>>2]|0;do if((l|0)==(d|0))_=l,w=e+28|0,v=a;else{if(jl(E_[d>>2]|0)|0)return void(O_=i);if(c=e+28|0,t=E_[c>>2]|0,k=E_[r>>2]|0,h=a,(t|0)==(k|0)){_=k,w=c,v=h;break}o=k+(~((k-8+(-t|0)|0)>>>3)<<3)|0,E_[r>>2]=o,_=o,w=c,v=h}while(0);return E_[a>>2]=0,E_[v+4>>2]=0,(_|0)==(E_[e+36>>2]|0)?(Ul(w,v),void(O_=i)):((_|0)==0?m=0:(v=_,_=E_[a+4>>2]|0,E_[v>>2]=E_[a>>2],E_[v+4>>2]=_,m=E_[r>>2]|0),E_[r>>2]=m+8,void(O_=i))}if((s|0)==6204){if(Zl(u)|0)return void(O_=i);if(Jl(u)|0)return void(O_=i);for(p=1;;){if(u=E_[r>>2]|0,m=E_[n>>2]|0,(p|0)>=(u-m>>3|0)){E=u,S=m;break}if(Zl(E_[m+(p<<3)>>2]|0)|0){s=6208;break}p=p+1|0}(s|0)==6208&&(s=E_[n>>2]|0,m=(E_[r>>2]|0)-s|0,(p|0)>-1&(m|0)>0&(m>>3|0)>(p|0)?g=s:(Xb(1976),g=E_[n>>2]|0),s=g|0,m=E_[s>>2]|0,E_[s>>2]=E_[g+(p<<3)>>2],E_[(E_[n>>2]|0)+(p<<3)>>2]=m,E=E_[r>>2]|0,S=E_[n>>2]|0);do if((E|0)!=(S|0)){if(Zl(E_[S>>2]|0)|0)break;m=fs(E_[E_[n>>2]>>2]|0)|0,E_[E_[n>>2]>>2]=m}while(0);if(!b)return void(O_=i);b=E_[r>>2]|0,S=E_[n>>2]|0;do if((b|0)==(S|0))y=b,A=e+28|0,O=f;else{if(Zl(E_[S>>2]|0)|0)return void(O_=i);if(n=e+28|0,E=E_[n>>2]|0,m=E_[r>>2]|0,p=f,(E|0)==(m|0)){y=m,A=n,O=p;break}g=m+(~((m-8+(-E|0)|0)>>>3)<<3)|0,E_[r>>2]=g,y=g,A=n,O=p}while(0);return E_[f>>2]=0,E_[O+4>>2]=0,(y|0)==(E_[e+36>>2]|0)?(Ul(A,O),void(O_=i)):((y|0)==0?R=0:(O=y,y=E_[f+4>>2]|0,E_[O>>2]=E_[f>>2],E_[O+4>>2]=y,R=E_[r>>2]|0),E_[r>>2]=R+8,void(O_=i))}}function As(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0;if(f=r,a=i-f>>3,t=e+8|0,n=E_[t>>2]|0,o=e|0,u=E_[o>>2]|0,l=u,a>>>0<=n-l>>3>>>0){if(s=e+4|0,b=(E_[s>>2]|0)-l|0,k=b>>3,a>>>0<=k>>>0){if(c=i-f|0,f=c>>3,d=u,h=r,On(d|0,h|0,c|0)|0,c=u+(f<<3)|0,f=E_[s>>2]|0,(c|0)==(f|0))return;return void(E_[s>>2]=f+(~((f-8+(-c|0)|0)>>>3)<<3))}if(c=r+(k<<3)|0,k=u,f=r,On(k|0,f|0,b|0)|0,(c|0)==(i|0))return;b=c,c=E_[s>>2]|0;do(c|0)==0?_=0:(f=b,k=c,h=E_[f+4>>2]|0,E_[k>>2]=E_[f>>2],E_[k+4>>2]=h,_=E_[s>>2]|0),c=_+8|0,E_[s>>2]=c,b=b+8|0;while((b|0)!=(i|0))}else{(u|0)==0?w=n:(n=e+4|0,b=E_[n>>2]|0,(u|0)!=(b|0)&&(E_[n>>2]=b+(~((b-8+(-l|0)|0)>>>3)<<3)),hn(u),E_[t>>2]=0,E_[n>>2]=0,E_[o>>2]=0,w=0),a>>>0>536870911&&cf(0),n=w;do if(n>>3>>>0>268435454)v=536870911;else{if(w=n>>2,u=w>>>0<a>>>0?a:w,u>>>0<=536870911){v=u;break}cf(0)}while(0);if(a=kn(v<<3)|0,n=e+4|0,E_[n>>2]=a,E_[o>>2]=a,E_[t>>2]=a+(v<<3),(r|0)!=(i|0)){m=r,p=a;do(p|0)==0?E=0:(a=m,r=p,v=E_[a+4>>2]|0,E_[r>>2]=E_[a>>2],E_[r+4>>2]=v,E=E_[n>>2]|0),p=E+8|0,E_[n>>2]=p,m=m+8|0;while((m|0)!=(i|0))}}}function Os(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(i=e|0,E_[i>>2]=0,f=e+4|0,E_[f>>2]=0,a=e+8|0,E_[a>>2]=0,e=r+4|0,t=r|0,r=(E_[e>>2]|0)-(E_[t>>2]|0)|0,n=r>>3,(n|0)!=0&&(n>>>0>536870911&&cf(0),o=kn(r)|0,E_[f>>2]=o,E_[i>>2]=o,E_[a>>2]=o+(n<<3),n=E_[t>>2]|0,t=E_[e>>2]|0,(n|0)!=(t|0))){u=n,l=o;do(l|0)==0?s=0:(o=u,n=l,e=E_[o+4>>2]|0,E_[n>>2]=E_[o>>2],E_[n+4>>2]=e,s=E_[f>>2]|0),l=s+8|0,E_[f>>2]=l,u=u+8|0;while((u|0)!=(t|0))}}function Rs(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0;if(r=e+20|0,i=E_[r>>2]|0,f=e+16|0,a=E_[f>>2]|0,(i|0)==(a|0))t=i,n=a,o=i;else for(u=0,l=a,a=i;;){if(i=E_[l+(u<<2)>>2]|0,(i|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_[p+8>>2],E_[m+12>>2]=E_[p+12>>2]),p=E+(_<<4)|0,_=E,m=h,yn(_|0,m|0,d)|0,E_[f>>2]=E,E_[a>>2]=p,E_[t>>2]=c,(h|0)==0)break;hn(m)}while(0);if(s=s+1|0,b=E_[u>>2]|0,s>>>0>=(E_[o>>2]|0)-b>>2>>>0)break e}cf(0)}while(0);return qs(e|0,i),i=E_[f>>2]|0,(i|0)==0?void(O_=r):(f=E_[a>>2]|0,(i|0)!=(f|0)&&(E_[a>>2]=f+(~((f-16+(-i|0)|0)>>>4)<<4)),hn(i),void(O_=r))}function Ms(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;if(r=e+12|0,i=E_[r>>2]|0,!((i|0)<=0))for(f=e+16|0,a=e+20|0,e=i,i=E_[f>>2]|0,t=E_[a>>2]|0;;){n=E_[i+(e-1<<2)>>2]|0,o=(E_[n+12>>2]|0)+1-(E_[n+4>>2]|0)|0;do if((e|0)<(t-i>>2|0)){for(n=0,u=0,l=e,s=i;;){if(vs(E_[s+(l<<2)>>2]|0,32)|0?(b=u,k=n,c=E_[f>>2]|0):(d=E_[f>>2]|0,h=E_[d+(l<<2)>>2]|0,b=u+1+(E_[h+12>>2]|0)-(E_[h+4>>2]|0)|0,k=n+1|0,c=d),d=l+1|0,_=E_[a>>2]|0,!((d|0)<(_-c>>2|0)))break;n=k,u=b,l=d,s=c}if((k|0)==0){w=b,v=c,m=_;break}w=(b|0)/(k|0)|0,v=c,m=_}else w=0,v=i,m=t;while(0);if((o|0)>(w<<1|0)){p=6382;break}if(s=(E_[r>>2]|0)-1|0,E_[r>>2]=s,!((s|0)>0)){p=6380;break}e=s,i=v,t=m}}function Ns(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0;if(r=E_[e+12>>2]|0,i=e+20|0,f=e+16|0,e=E_[f>>2]|0,!((r|0)<((E_[i>>2]|0)-e>>2|0)))return u=0,u|0;for(a=0,t=0,n=r,o=e;;){if(vs(E_[o+(n<<2)>>2]|0,32)|0?(l=t,s=a,b=E_[f>>2]|0):(e=E_[f>>2]|0,r=E_[e+(n<<2)>>2]|0,l=t+1+(E_[r+12>>2]|0)-(E_[r+4>>2]|0)|0,s=a+1|0,b=e),e=n+1|0,!((e|0)<((E_[i>>2]|0)-b>>2|0)))break;a=s,t=l,n=e,o=b}return(s|0)==0?(u=l,u|0):(u=(l|0)/(s|0)|0,u|0)}function Ds(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0;do{if(!((r|0)<0)){if(f=e+16|0,a=E_[f>>2]|0,!(((E_[e+20>>2]|0)-a>>2|0)>(r|0))){i=f;break}return t=a,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}i=e+16|0}while(0);return Xb(3352),t=E_[i>>2]|0,n=t+(r<<2)|0,o=E_[n>>2]|0,o|0}function Cs(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0;for(i=e+20|0,f=e+16|0,e=0;;){if(a=E_[f>>2]|0,(e|0)>=((E_[i>>2]|0)-a>>2|0)){t=0,n=6407;break}if(au(E_[a+(e<<2)>>2]|0,r)|0)break;e=e+1|0}return(n|0)==6407?t|0:(t=E_[(E_[f>>2]|0)+(e<<2)>>2]|0,t|0)}function Ts(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0;f=i|0,a=E_[f>>2]|0,t=r|0,r=i+8|0,i=Xs(t,((E_[r>>2]|0)+a|0)/2|0)|0,n=E_[r>>2]|0,Zo(e,a,i,n,Ks(t,((E_[f>>2]|0)+n|0)/2|0)|0)}function Ps(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0;(r|0)<0?i=6411:((E_[e+20>>2]|0)-(E_[e+16>>2]|0)>>2|0)<=(r|0)&&(i=6411),(i|0)==6411&&Xb(4088),i=e+12|0,f=E_[i>>2]|0,(f|0)>(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h=e|0,E_[h>>2]=d,void(O_=a);if(c=b-(n+(i+1<<2))|0,_=c>>2,w=n+(_+i<<2)|0,w>>>0<b>>>0){i=w,w=b;do(w|0)==0?v=0:(E_[w>>2]=E_[i>>2],v=E_[s>>2]|0),i=i+4|0,w=v+4|0,E_[s>>2]=w;while(i>>>0<b>>>0)}return i=b+(-_<<2)|0,_=l,On(i|0,_|0,c|0)|0,m=l>>>0>f>>>0?f:(E_[s>>2]|0)>>>0>f>>>0?f+4|0:f,E_[l>>2]=E_[m>>2],d=l,h=e|0,E_[h>>2]=d,void(O_=a)}m=(b-o>>2)+1|0,m>>>0>1073741823&&cf(0),b=r-o|0,b>>2>>>0>536870910?(p=1073741823,E=l,S=u>>2,g=6451):(o=b>>1,b=o>>>0<m>>>0?m:o,o=l,m=u>>2,(b|0)==0?(y=0,A=0,O=o,R=m):(p=b,E=o,S=m,g=6451)),(g|0)==6451&&(y=kn(p<<2)|0,A=p,O=E,R=S),S=y+(R<<2)|0,E=y+(A<<2)|0;do if((R|0)==(A|0)){if((R|0)>0){F=y+(((R+1|0)/-2|0)+R<<2)|0,M=E;break}if(p=R<<1,g=(p|0)==0?1:p,p=kn(g<<2)|0,m=p+(g>>>2<<2)|0,o=p+(g<<2)|0,(y|0)==0){F=m,M=o;break}hn(y),F=m,M=o}else F=S,M=E;while(0);return(F|0)!=0&&(E_[F>>2]=E_[f>>2]),f=F+4|0,E=E_[t>>2]|0,S=O-E|0,y=F+(-(S>>2)<<2)|0,R=y,A=E,yn(R|0,A|0,S)|0,S=(E_[s>>2]|0)-O|0,O=S>>2,R=f,f=l,yn(R|0,f|0,S)|0,E_[t>>2]=y,E_[s>>2]=F+(O+1<<2),E_[k>>2]=M,(E|0)==0?(d=F,h=e|0,E_[h>>2]=d,void(O_=a)):(hn(A),d=F,h=e|0,E_[h>>2]=d,void(O_=a))}function xs(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d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break;v=m}E_[d>>2]=(E_[c>>2]|0)+(v<<2),Is(t,k,a,f),m=E_[h>>2]|0;do if((v|0)<(m|0))E_[h>>2]=m+1;else{if(!w)break;E_[h>>2]=v+1}while(0);if(v=e+1|0,w=E_[n>>2]|0,m=E_[u>>2]|0,!((v|0)<(w-m>>2|0))){p=m,E=w;break}e=v,_=m}else p=l,E=o;return E_[s>>2]=0,(p|0)==(E|0)?void(O_=i):(E_[n>>2]=E+(~((E-4+(-p|0)|0)>>>2)<<2),void(O_=i))}function Us(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0;if(r=E_[e+12>>2]|0,i=E_[e+16>>2]|0,f=(E_[e+20>>2]|0)-i>>2,(r|0)>=(f|0))return a=0,a|0;e=r+1|0,t=(f|0)>(e|0)?f:e,e=0,n=r;do o=E_[i+(n<<2)>>2]|0,e=(((E_[o+12>>2]|0)+(E_[o+4>>2]|0)|0)/2|0)+e|0,n=n+1|0;while((n|0)<(f|0));return(t|0)==(r|0)?(a=e,a|0):(a=(e|0)/(t-r|0)|0,a|0)}function zs(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0;if(a=O_,O_=O_+16|0,t=a|0,i|f){n=E_[r+8>>2]|0,o=E_[e+12>>2]|0,u=e+20|0,l=e+16|0,s=E_[l>>2]|0;do if((o|0)<((E_[u>>2]|0)-s>>2|0)){for(b=0,k=0,c=o,d=s;;){if(vs(E_[d+(c<<2)>>2]|0,32)|0?(h=k,_=b,w=E_[l>>2]|0):(v=E_[l>>2]|0,m=E_[v+(c<<2)>>2]|0,h=k+1+(E_[m+12>>2]|0)-(E_[m+4>>2]|0)|0,_=b+1|0,w=v),v=c+1|0,!((v|0)<((E_[u>>2]|0)-w>>2|0)))break;b=_,k=h,c=v,d=w}if((_|0)==0){p=h;break}p=(h|0)/(_|0)|0}else p=0;while(0);_=((E_[e+4>>2]|0)-(E_[e>>2]|0)|0)/20|0,Hw(n|0,1648,(n=O_,O_=O_+16|0,E_[n>>2]=p,E_[n+8>>2]=_,n|0))|0,O_=n,E=u,S=l}else E=e+20|0,S=e+16|0;if(l=E_[S>>2]|0,((E_[E>>2]|0)-l|0)<=0)return g=r+8|0,y=E_[g>>2]|0,A=fw(10,y|0)|0,void(O_=a);u=e+12|0,n=e|0,e=0,_=l;do l=E_[_+(e<<2)>>2]|0,(e|0)<(E_[u>>2]|0)?Ss(l,r,l|0,i,f):(p=l|0,h=E_[p>>2]|0,w=l+8|0,s=Xs(n,((E_[w>>2]|0)+h|0)/2|0)|0,o=E_[w>>2]|0,Zo(t,h,s,o,Ks(n,((E_[p>>2]|0)+o|0)/2|0)|0),Ss(l,r,t,i,f)),e=e+1|0,_=E_[S>>2]|0;while((e|0)<((E_[E>>2]|0)-_>>2|0));g=r+8|0,y=E_[g>>2]|0,A=fw(10,y|0)|0,O_=a}function Ys(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0;if(i=e+20|0,f=e+16|0,e=E_[f>>2]|0,((E_[i>>2]|0)-e|0)>0){a=0,t=e;do gs(E_[t+(a<<2)>>2]|0,r),a=a+1|0,t=E_[f>>2]|0;while((a|0)<((E_[i>>2]|0)-t>>2|0))}}function Vs(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0;if(i=e+20|0,f=e+16|0,e=E_[f>>2]|0,((E_[i>>2]|0)-e|0)>0){a=0,t=e;do To(r,E_[t+(a<<2)>>2]|0),a=a+1|0,t=E_[f>>2]|0;while((a|0)<((E_[i>>2]|0)-t>>2|0))}}function Zs(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0;if(i=O_,O_=O_+24|0,f=i|0,a=i+8|0,t=e+20|0,n=e+16|0,o=E_[n>>2]|0,((E_[t>>2]|0)-o|0)<=0)return void(O_=i);u=e+12|0,l=f,s=f,b=l+4|0,k=e|0,e=0,c=o;do{o=E_[c+(e<<2)>>2]|0;do if((e|0)<(E_[u>>2]|0)){if(Ll(o,r,o|0),d=o+32|0,(E_[d>>2]|0)==(E_[o+28>>2]|0))break;if(h=E_[(ws(o,0)|0)>>2]|0,!(Xl(h)|0))break;if(_=as(h)|0,h=o+28|0,w=E_[h>>2]|0,v=E_[d>>2]|0,(w|0)==(v|0)?m=w:(p=v+(~((v-8+(-w|0)|0)>>>3)<<3)|0,E_[d>>2]=p,m=p),E_[s>>2]=_,E_[b>>2]=0,(m|0)==(E_[o+36>>2]|0)){Ul(h,l);break}(m|0)==0?E=0:(h=m,_=E_[f+4>>2]|0,E_[h>>2]=E_[f>>2],E_[h+4>>2]=_,E=E_[d>>2]|0),E_[d>>2]=E+8}else d=o|0,_=E_[d>>2]|0,h=o+8|0,p=Xs(k,((E_[h>>2]|0)+_|0)/2|0)|0,w=E_[h>>2]|0,Zo(a,_,p,w,Ks(k,((E_[d>>2]|0)+w|0)/2|0)|0),Ll(o,r,a);while(0);e=e+1|0,c=E_[n>>2]|0}while((e|0)<((E_[t>>2]|0)-c>>2|0));O_=i}function js(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0;if(i=e+20|0,f=e+16|0,a=E_[f>>2]|0,((E_[i>>2]|0)-a|0)>0){t=0,n=0,o=a;e:for(;;){for(u=n,a=o;;){if(l=E_[a+(t<<2)>>2]|0,s=l+32|0,b=E_[s>>2]|0,k=l+28|0,c=E_[k>>2]|0,ys(l,r),(b|0)==(c|0))break;if((E_[s>>2]|0)!=(E_[k>>2]|0))break;if(Ps(e,t),k=E_[f>>2]|0,s=(E_[i>>2]|0)-k>>2,!((t|0)<(s|0))){d=s;break e}u=1,a=k}if(a=t+1|0,s=E_[f>>2]|0,h=(E_[i>>2]|0)-s>>2,!((a|0)<(h|0))){_=6654;break}t=a,n=u,o=s}do if((_|0)==6654){if(u){d=h;break}return}while(0);if((d|0)>0){w=d;e:for(;;){d=w-1|0,(d|0)<0?_=6658:(h=E_[f>>2]|0,((E_[i>>2]|0)-h>>2|0)>(d|0)?v=h:_=6658),(_|0)==6658&&(_=0,Xb(3352),v=E_[f>>2]|0);do if(vs(E_[v+(d<<2)>>2]|0,32)|0){if(h=E_[f>>2]|0,u=(E_[i>>2]|0)-h>>2,(d|0)<(u-1|0)){if((d|0)<=0){_=6671;break e}if(o=w-2|0,(o|0)>-1&(u|0)>(o|0)?m=h:(Xb(3352),m=E_[f>>2]|0),!(vs(E_[m+(o<<2)>>2]|0,32)|0))break}Ps(e,d)}while(0);if(!((d|0)>0)){_=6670;break}w=d}}}}function qs(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0,J=0,$=0,er=0,rr=0,ir=0,fr=0,ar=0,tr=0,nr=0,or=0,ur=0,lr=0,sr=0,br=0,kr=0,cr=0,dr=0,hr=0,_r=0,wr=0,vr=0,mr=0,pr=0,Er=0,Sr=0,gr=0,yr=0;if(i=O_,O_=O_+80|0,f=i|0,a=i+8|0,t=i+16|0,n=i+40|0,o=i+64|0,u=i+72|0,l=e|0,s=e+4|0,b=E_[s>>2]|0,k=e|0,c=E_[k>>2]|0,(b|0)!=(c|0)&&(E_[s>>2]=b+(~(((b-20+(-c|0)|0)>>>0)/20|0)*20|0)),c=r+4|0,b=E_[c>>2]|0,d=r|0,r=E_[d>>2]|0,(b|0)==(r|0))return void(O_=i);if(h=E_[r+8>>2]|0,_=h+1-(E_[r>>2]|0)|0,w=b-r>>4,w>>>0>1)for(b=_,v=0,m=1,p=h;;){if(h=E_[r+(m<<4)+8>>2]|0,E=E_[r+(m<<4)>>2]|0,S=b+1+h-E|0,g=E+v-p|0,E=m+1|0,!(E>>>0<w>>>0)){y=S,A=g;break}b=S,v=g,m=E,p=h}else y=_,A=0;_=((((y|0)<(A|0)?A:y)*5|0)>>>0)/(w>>>0)|0,w=E_[T_>>2]|0,y=t|0,A=t+4|0,p=t+8|0,m=t+12|0,v=t+16|0,b=e+8|0,e=t,g=0,S=0,h=0,E=0,O=r;e:for(;;){r=O+(E<<4)|0;do if((S|0)==(g|0)){if(R=S-h|0,F=R>>4,M=F+1|0,M>>>0>268435455){N=6693;break e}if(F>>>0>134217726?(D=268435455,N=6697):(C=R>>3,T=C>>>0<M>>>0?M:C,(T|0)==0?(P=0,L=0):(D=T,N=6697)),(N|0)==6697&&(N=0,P=kn(D<<4)|0,L=D),T=P+(F<<4)|0,F=P+(L<<4)|0,(T|0)!=0&&(C=T,T=r,E_[C>>2]=E_[T>>2],E_[C+4>>2]=E_[T+4>>2],E_[C+8>>2]=E_[T+8>>2],E_[C+12>>2]=E_[T+12>>2]),T=P+(M<<4)|0,M=P,C=h,yn(M|0,C|0,R)|0,(h|0)==0){I=P,x=T,B=F;break}hn(C),I=P,x=T,B=F}else(S|0)!=0&&(F=S,T=r,E_[F>>2]=E_[T>>2],E_[F+4>>2]=E_[T+4>>2],E_[F+8>>2]=E_[T+8>>2],E_[F+12>>2]=E_[T+12>>2]),I=h,x=S+16|0,B=g;while(0);if(r=I,T=x,F=E+1|0,C=E_[c>>2]|0,R=E_[d>>2]|0,F>>>0<C-R>>4>>>0&&((E_[R+(F<<4)>>2]|0)-(E_[O+(E<<4)+8>>2]|0)|0)<(_|0)?(H=x,U=C,z=R):N=6706,(N|0)==6706){if(N=0,R=x-r|0,C=R>>4,(R|0)>0)for(M=0,Y=0,V=0,Z=0;;){if(j=E_[I+(Y<<4)+4>>2]|0,q=E_[I+(Y<<4)+12>>2]|0,W=((q+j|0)/2|0)+Z|0,K=V+1-j+q|0,q=M+1+(E_[I+(Y<<4)+8>>2]|0)-(E_[I+(Y<<4)>>2]|0)|0,j=Y+1|0,!((j|0)<(C|0))){X=q,G=K,Q=W;break}M=q,Y=j,V=K,Z=W}else X=0,G=0,Q=0;(C|0)==0?(J=Q,$=G,er=X):(J=(Q|0)/(C|0)|0,$=(G|0)/(C|0)|0,er=(X|0)/(C|0)|0);do if((R|0)<128){if(Z=E_[I>>2]|0,V=E_[x-16+8>>2]|0,!((V|0)<(Z|0)|($|0)<1)){rr=J,ir=V,fr=J,ar=Z;break}(E_[3154]|0)>-1&&(Hw(w|0,3016,(tr=O_,O_=O_+40|0,E_[tr>>2]=Z,E_[tr+8>>2]=J,E_[tr+16>>2]=V,E_[tr+24>>2]=J,E_[tr+32>>2]=$,tr|0))|0,O_=tr),Xb(3912),rr=J,ir=V,fr=J,ar=Z}else{for(Z=(C|0)/4|0,E_[f>>2]=3,V=-1,Y=0;;){M=Y+1|0,W=Y+2|0;r:do if((M|0)>(Z|0))nr=V;else for(K=I+(Y<<4)|0,q=M,j=V;;){if(or=Js(K,I+(q<<4)|0,f,$,er)|0,(or|0)>-1){if(ur=(or|0)==0?Y:q,(E_[f>>2]|0)==0){nr=ur;break r}lr=ur}else lr=j;if(ur=q+1|0,(ur|0)>(Z|0)|(ur|0)>(W|0)){nr=lr;break}q=ur,j=lr}while(0);if((M|0)>=(Z|0))break;if(!((E_[f>>2]|0)>0))break;V=nr,Y=M}Y=C-1|0,V=Y-Z|0,E_[a>>2]=3;r:do if((R|0)>48)for(W=-1,j=Y;;){q=j-2|0,K=I+(j<<4)|0,ur=W,or=j;i:for(;;){sr=or;do{if(sr=sr-1|0,(sr|0)<(V|0)|(sr|0)<(q|0)){br=ur;break i}kr=Js(K,I+(sr<<4)|0,a,$,er)|0}while((kr|0)<=-1);if(cr=(kr|0)==0?j:sr,(E_[a>>2]|0)==0){br=cr;break}ur=cr,or=sr}if(or=j-1|0,(or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]=E_[t>>2],t=r|0,n=E_[t>>2]|0,o=n,u=(E_[i>>2]|0)-o|0,i=(u|0)/20|0,l=n+(i*20|0)|0,s=r+4|0,b=E_[s>>2]|0,k=r+8|0,r=E_[k>>2]|0,b>>>0<r>>>0){if((l|0)==(b|0))return(l|0)==0?c=0:(d=l,h=f,E_[d>>2]=E_[h>>2],E_[d+4>>2]=E_[h+4>>2],E_[d+8>>2]=E_[h+8>>2],E_[d+12>>2]=E_[h+12>>2],E_[d+16>>2]=E_[h+16>>2],c=E_[s>>2]|0),E_[s>>2]=c+20,_=l,w=e|0,E_[w>>2]=_,void(O_=a);if(c=b-(n+((i+1|0)*20|0))|0,h=n+((((c|0)/20|0)+i|0)*20|0)|0,h>>>0<b>>>0){i=h,h=b;do(h|0)==0?v=0:(n=h,d=i,E_[n>>2]=E_[d>>2],E_[n+4>>2]=E_[d+4>>2],E_[n+8>>2]=E_[d+8>>2],E_[n+12>>2]=E_[d+12>>2],E_[n+16>>2]=E_[d+16>>2],v=E_[s>>2]|0),i=i+20|0,h=v+20|0,E_[s>>2]=h;while(i>>>0<b>>>0)}return i=b+(((c|0)/-20|0)*20|0)|0,h=l,On(i|0,h|0,c|0)|0,m=l>>>0>f>>>0?f:(E_[s>>2]|0)>>>0>f>>>0?f+20|0:f,c=m,E_[h>>2]=E_[c>>2],E_[h+4>>2]=E_[c+4>>2],E_[h+8>>2]=E_[c+8>>2],E_[h+12>>2]=E_[c+12>>2],E_[h+16>>2]=E_[c+16>>2],_=l,w=e|0,E_[w>>2]=_,void(O_=a)}c=((b-o|0)/20|0)+1|0,c>>>0>214748364&&cf(0),b=(r-o|0)/20|0,b>>>0>107374181?(p=214748364,E=l,S=(u|0)/20|0,g=6790):(o=b<<1,b=o>>>0<c>>>0?c:o,o=l,c=(u|0)/20|0,(b|0)==0?(y=0,A=0,O=o,R=c):(p=b,E=o,S=c,g=6790)),(g|0)==6790&&(y=kn(p*20|0)|0,A=p,O=E,R=S),S=y+(R*20|0)|0,E=y+(A*20|0)|0;do if((R|0)==(A|0)){if(p=(u|0)/20|0,(R|0)>0){F=y+((((p+1|0)/-2|0)+R|0)*20|0)|0,M=E;break}if(g=p<<1,p=(g|0)==0?1:g,g=kn(p*20|0)|0,c=g+((p>>>2)*20|0)|0,o=g+(p*20|0)|0,(y|0)==0){F=c,M=o;break}hn(y),F=c,M=o}else F=S,M=E;while(0);return(F|0)!=0&&(E=F,S=f,E_[E>>2]=E_[S>>2],E_[E+4>>2]=E_[S+4>>2],E_[E+8>>2]=E_[S+8>>2],E_[E+12>>2]=E_[S+12>>2],E_[E+16>>2]=E_[S+16>>2]),S=F+20|0,E=E_[t>>2]|0,f=O-E|0,y=F+(((f|0)/-20|0)*20|0)|0,R=y,u=E,yn(R|0,u|0,f)|0,f=(E_[s>>2]|0)-O|0,O=(f|0)/20|0,R=S,S=l,yn(R|0,S|0,f)|0,E_[t>>2]=y,E_[s>>2]=F+((O+1|0)*20|0),E_[k>>2]=M,(E|0)==0?(_=F,w=e|0,E_[w>>2]=_,void(O_=a)):(hn(u),_=F,w=e|0,E_[w>>2]=_,void(O_=a))}function Ks(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0;for(i=E_[e>>2]|0,f=((E_[e+4>>2]|0)-i|0)/20|0,e=f-1|0,a=0;;){if(a>>>0>=f>>>0){t=0,n=6818;break}if(o=E_[i+(a*20|0)+8>>2]|0,(o|0)>=(r|0))break;if(!(a>>>0<e>>>0))break;a=a+1|0}return(n|0)==6818?t|0:(n=E_[i+(a*20|0)>>2]|0,e=E_[i+(a*20|0)+12>>2]|0,f=E_[i+(a*20|0)+4>>2]|0,u=(o|0)==(n|0)|(e|0)==(f|0)?f:((J_(e-f|0,r-n|0)|0)/(o-n|0)|0)+f|0,t=((E_[i+(a*20|0)+16>>2]|0)/2|0)+u|0,t|0)}function Xs(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0;for(i=E_[e>>2]|0,f=((E_[e+4>>2]|0)-i|0)/20|0,e=f-1|0,a=0;;){if(a>>>0>=f>>>0){t=0,n=6827;break}if(o=E_[i+(a*20|0)+8>>2]|0,(o|0)>=(r|0))break;if(!(a>>>0<e>>>0))break;a=a+1|0}return(n|0)==6827?t|0:(n=E_[i+(a*20|0)>>2]|0,e=E_[i+(a*20|0)+12>>2]|0,f=E_[i+(a*20|0)+4>>2]|0,u=(o|0)==(n|0)|(e|0)==(f|0)?f:((J_(e-f|0,r-n|0)|0)/(o-n|0)|0)+f|0,f=E_[i+(a*20|0)+16>>2]|0,t=u+1-f+((f|0)/2|0)|0,t|0)}function Gs(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0;for(i=E_[e>>2]|0,f=((E_[e+4>>2]|0)-i|0)/20|0,e=f-1|0,a=0;;){if(a>>>0>=f>>>0){t=0,n=6837;break}if(o=E_[i+(a*20|0)+8>>2]|0,(o|0)>=(r|0))break;if(!(a>>>0<e>>>0))break;a=a+1|0}return(n|0)==6837?t|0:(n=E_[i+(a*20|0)>>2]|0,e=E_[i+(a*20|0)+12>>2]|0,f=E_[i+(a*20|0)+4>>2]|0,(o|0)==(n|0)|(e|0)==(f|0)?(t=f,t|0):(t=((J_(e-f|0,r-n|0)|0)/(o-n|0)|0)+f|0,t|0))}function Qs(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;i=e+4|0,f=e|0,a=E_[f>>2]|0,t=a,n=(E_[i>>2]|0)-t|0,o=(n|0)/20|0,u=o+1|0,u>>>0>214748364&&cf(0),l=e+8|0,e=((E_[l>>2]|0)-t|0)/20|0,e>>>0>107374181?(s=214748364,b=6843):(t=e<<1,e=t>>>0<u>>>0?u:t,(e|0)==0?(k=0,c=0):(s=e,b=6843)),(b|0)==6843&&(k=kn(s*20|0)|0,c=s),s=k+(o*20|0)|0,b=k+(c*20|0)|0,(s|0)!=0&&(c=s,s=r,E_[c>>2]=E_[s>>2],E_[c+4>>2]=E_[s+4>>2],E_[c+8>>2]=E_[s+8>>2],E_[c+12>>2]=E_[s+12>>2],E_[c+16>>2]=E_[s+16>>2]),s=k+(u*20|0)|0,u=k+((((n|0)/-20|0)+o|0)*20|0)|0,o=u,k=a,yn(o|0,k|0,n)|0,E_[f>>2]=u,E_[i>>2]=s,E_[l>>2]=b,(a|0)!=0&&hn(k)}function Js(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;if(t=e+12|0,n=E_[t>>2]|0,o=e+4|0,u=E_[o>>2]|0,l=n+1-u|0,s=l<<2,b=f*3|0,(s|0)<(b|0))return k=-1,k|0;if(c=r+12|0,d=E_[c>>2]|0,h=r+4|0,_=E_[h>>2]|0,w=d+1-_|0,v=w<<2,(v|0)<(b|0))return k=-1,k|0;do if(((E_[e+8>>2]|0)+1-(E_[e>>2]|0)|0)<(a|0)){if(!(((E_[r+8>>2]|0)+1-(E_[r>>2]|0)|0)<(a|0)))break;return k=-1,k|0}while(0);if(a=E_[i>>2]|0,(a|0)<=0)return k=-1,k|0;r=f*5|0;do if(!((s|0)>(r|0)|(v|0)>(r|0))){e=f*10|0;do if((l*9|0|0)<=(e|0)){if((w*9|0|0)>(e|0))break;if(b=n-d|0,(((b|0)>-1?b:-b|0)*10|0|0)>(f|0))break;return E_[i>>2]=0,k=((E_[t>>2]|0)+1-(E_[o>>2]|0)|0)>((E_[c>>2]|0)+1-(E_[h>>2]|0)|0)|0,k|0}while(0);if((a|0)<=1)return k=-1,k|0;if(e=((n+u|0)/2|0)-((d+_|0)/2|0)|0,(((e|0)>-1?e:-e|0)*10|0|0)>(f|0))break;return E_[i>>2]=1,k=(E_[t>>2]|0)>(E_[c>>2]|0)|0,k|0}while(0);return(a|0)<=2?(k=-1,k|0):(a=((n+u|0)/2|0)-((d+_|0)/2|0)|0,(((a|0)>-1?a:-a|0)*10|0|0)>(f|0)?(k=-1,k|0):(E_[i>>2]=2,k=(E_[t>>2]|0)>(E_[c>>2]|0)|0,k|0))}function $s(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0;if((f|0)==0&(a|0)==0)return t=0,(i|0)>(t|0)|(i|0)==(t|0)&r>>>0>0?n=2147483647:(t=0,n=(i|0)<(t|0)|(i|0)==(t|0)&r>>>0<0?-2147483647:0),E_[e>>2]=n,void(E_[e+4>>2]=0);if((r|0)==0&(i|0)==0)return E_[e>>2]=0,void(E_[e+4>>2]=1);if((f|0)==1&(a|0)==0)o=i,u=r,l=0,s=1;else{n=0,t=(i|0)<(n|0)|(i|0)==(n|0)&r>>>0<0,n=Mn(0,0,r,i)|0,b=t?n:r,n=t?z_:i,t=0,k=(a|0)<(t|0)|(a|0)==(t|0)&f>>>0<0,t=Mn(0,0,f,a)|0,c=k?t:f,t=k?z_:a;e:do if((c|0)==0&(t|0)==0)d=n,h=b;else for(k=n,_=b,w=t,v=c;;){if(m=Ln(_,k,v,w)|0,p=z_,(m|0)==0&(p|0)==0){d=w,h=v;break e}if(E=Ln(v,w,m,p)|0,S=z_,(E|0)==0&(S|0)==0){d=p,h=m;break}k=p,_=m,w=S,v=E}while(0);c=Pn(r,i,h,d)|0,i=z_,r=Pn(f,a,h,d)|0,o=i,u=c,l=z_,s=r}r=Fn(u,o,2147483647,0)|0,c=z_,i=0;do if(c>>>0<i>>>0|c>>>0==i>>>0&r>>>0<-1>>>0){if(d=Fn(s,l,2147483647,0)|0,h=z_,a=0,!(h>>>0<a>>>0|h>>>0==a>>>0&d>>>0<-1>>>0))break;return d=-1,(l|0)>(d|0)|(l|0)==(d|0)&s>>>0>-1>>>0?(E_[e>>2]=u,void(E_[e+4>>2]=s)):(d=Mn(0,0,u,o)|0,E_[e>>2]=d,d=Mn(0,0,s,l)|0,void(E_[e+4>>2]=d))}while(0);r=-1,i=(l|0)>(r|0)|(l|0)==(r|0)&s>>>0>-1>>>0,s=Mn(0,0,u,o)|0,r=i?u:s,s=i?o:z_,o=0,(s|0)>(o|0)|(s|0)==(o|0)&r>>>0>0?g=2147483647:(o=0,g=(s|0)<(o|0)|(s|0)==(o|0)&r>>>0<0?-2147483647:0),E_[e>>2]=g,E_[e+4>>2]=0}function eb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(r=e+4|0,i=E_[r>>2]|0,(i|0)!=0){if(f=e|0,e=E_[f>>2]|0,(e|0)==0)return void(E_[r>>2]=1);if((e|0)==-2147483648){do if((i|0)==-2147483648)E_[r>>2]=-2147483647,a=2147483647;else{if((i|0)<0){a=2147483647;break}a=-i>>31&-2147483647}while(0);return E_[f>>2]=a,void(E_[r>>2]=0)}do{if((i|0)<0){if(a=-e|0,(i|0)!=-2147483648){E_[f>>2]=a,t=-i|0,E_[r>>2]=t,n=t,o=a;break}return u=(e|0)<0?2147483647:a>>31&-2147483647,E_[f>>2]=u,void(E_[r>>2]=0)}n=i,o=e}while(0);if((n|0)!=1){e=(o|0)<0?-o|0:o,i=(n|0)<0?-n|0:n;e:do if((i|0)==0)l=e;else for(u=e,a=i;;){if(t=(u|0)%(a|0)|0,(t|0)==0){l=a;break e}if(s=(a|0)%(t|0)|0,(s|0)==0){l=t;break}u=t,a=s}while(0);return E_[f>>2]=(o|0)/(l|0)|0,void(E_[r>>2]=(n|0)/(l|0)|0)}}}function rb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0;if(i=E_[r+4>>2]|0,(i|0)<1)return f=r,a=e,t=E_[f+4>>2]|0,E_[a>>2]=E_[f>>2],void(E_[a+4>>2]=t);t=E_[r>>2]|0;do if((t|0)>0)n=i,o=t;else{if((t|0)<0){n=-i|0,o=-t|0;break}if((i|0)>0){n=2147483647,o=0;break}n=i>>31&-2147483647,o=0}while(0);i=e,E_[i>>2]=n,E_[i+4>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du(r,a-l|0),s=E_[i>>2]|0;else{if(l>>>0<=a>>>0){s=f;break}if(b=u+(a<<2)|0,(b|0)==(n|0)){s=f;break}E_[t>>2]=n+(~((n-4+(-b|0)|0)>>>2)<<2),s=f}while(0);if(E_[e+8>>2]=(E_[s+12>>2]|0)+1-(E_[s+4>>2]|0),f=E_[s>>2]|0,(f|0)>(E_[s+8>>2]|0))return;k=f,c=s;do{for(s=E_[c+4>>2]|0,f=E_[c+12>>2]|0,n=c+16|0,t=c|0,a=s;;){if((a|0)>(f|0)){d=6977;break}if(u=a-s|0,l=E_[t>>2]|0,(m_[(E_[(E_[n>>2]|0)+(u*12|0)>>2]|0)+(k-l)|0]|0)!=0){h=l,_=u;break}a=a+1|0}(d|0)==6977&&(d=0,h=E_[t>>2]|0,_=a-s|0),E_[(E_[o>>2]|0)+(k-h<<2)>>2]=_,k=k+1|0,c=E_[i>>2]|0}while((k|0)<=(E_[c+8>>2]|0));return;case 4:c=e+36|0,k=e|0,i=E_[k>>2]|0,_=(E_[i+8>>2]|0)+1-(E_[i>>2]|0)|0,h=e+40|0,o=E_[h>>2]|0,n=c|0,f=E_[n>>2]|0,u=o-f>>2;do if(u>>>0<_>>>0)Du(c,_-u|0),w=E_[k>>2]|0;else{if(u>>>0<=_>>>0){w=i;break}if(l=f+(_<<2)|0,(l|0)==(o|0)){w=i;break}E_[h>>2]=o+(~((o-4+(-l|0)|0)>>>2)<<2),w=i}while(0);if(E_[e+8>>2]=(E_[w+12>>2]|0)+1-(E_[w+4>>2]|0),i=E_[w>>2]|0,(i|0)>(E_[w+8>>2]|0))return;v=i,m=w;do{for(w=E_[m+4>>2]|0,i=E_[m+12>>2]|0,o=w;;){if((o|0)>(i|0)){p=i;break}if((m_[(E_[(E_[m+16>>2]|0)+((o-w|0)*12|0)>>2]|0)+(v-(E_[m>>2]|0))|0]|0)!=0){p=i;break}o=o+1|0}for(;;){if((o|0)>(p|0)){d=7011;break}if(i=E_[m>>2]|0,(m_[(E_[(E_[m+16>>2]|0)+((p-w|0)*12|0)>>2]|0)+(v-i)|0]|0)!=0){E=i;break}p=p-1|0}(d|0)==7011&&(d=0,E=E_[m>>2]|0),E_[(E_[n>>2]|0)+(v-E<<2)>>2]=1-o+p,v=v+1|0,m=E_[k>>2]|0}while((v|0)<=(E_[m+8>>2]|0));return;case 0:m=e+36|0,v=e|0,k=E_[v>>2]|0,p=(E_[k+12>>2]|0)+1-(E_[k+4>>2]|0)|0,E=e+40|0,n=E_[E>>2]|0,w=m|0,i=E_[w>>2]|0,s=n-i>>2;do if(s>>>0<p>>>0)Du(m,p-s|0),S=E_[v>>2]|0;else{if(s>>>0<=p>>>0){S=k;break}if(a=i+(p<<2)|0,(a|0)==(n|0)){S=k;break}E_[E>>2]=n+(~((n-4+(-a|0)|0)>>>2)<<2),S=k}while(0);if(E_[e+8>>2]=(E_[S+8>>2]|0)+1-(E_[S>>2]|0),k=E_[S+4>>2]|0,(k|0)>(E_[S+12>>2]|0))return;g=k,y=S;do{for(S=E_[y>>2]|0,k=E_[y+8>>2]|0,n=y+4|0,E=y+16|0,p=S;;){if(A=E_[n>>2]|0,(p|0)>(k|0)){d=6966;break}if(i=p-S|0,(m_[(E_[(E_[E>>2]|0)+((g-A|0)*12|0)>>2]|0)+i|0]|0)!=0){O=i;break}p=p+1|0}(d|0)==6966&&(d=0,O=p-S|0),E_[(E_[w>>2]|0)+(g-A<<2)>>2]=O,g=g+1|0,y=E_[v>>2]|0}while((g|0)<=(E_[y+12>>2]|0));return;case 5:y=e+36|0,g=e|0,v=E_[g>>2]|0,O=(E_[v+12>>2]|0)+1-(E_[v+4>>2]|0)|0,A=e+40|0,w=E_[A>>2]|0,E=y|0,k=E_[E>>2]|0,n=w-k>>2;do if(n>>>0<O>>>0)Du(y,O-n|0),R=E_[g>>2]|0;else{if(n>>>0<=O>>>0){R=v;break}if(o=k+(O<<2)|0,(o|0)==(w|0)){R=v;break}E_[A>>2]=w+(~((w-4+(-o|0)|0)>>>2)<<2),R=v}while(0);if(E_[e+8>>2]=(E_[R+8>>2]|0)+1-(E_[R>>2]|0),v=E_[R+4>>2]|0,(v|0)>(E_[R+12>>2]|0))return;F=v,M=R;do{for(R=E_[M>>2]|0,v=E_[M+8>>2]|0,w=R;;){if((w|0)>(v|0)){N=v;break}if((m_[(E_[(E_[M+16>>2]|0)+((F-(E_[M+4>>2]|0)|0)*12|0)>>2]|0)+(w-R)|0]|0)!=0){N=v;break}w=w+1|0}for(;;){if(D=E_[M+4>>2]|0,(w|0)>(N|0))break;if((m_[(E_[(E_[M+16>>2]|0)+((F-D|0)*12|0)>>2]|0)+(N-R)|0]|0)!=0)break;N=N-1|0}E_[(E_[E>>2]|0)+(F-D<<2)>>2]=1-w+N,F=F+1|0,M=E_[g>>2]|0}while((F|0)<=(E_[M+12>>2]|0));return;case 2:M=e+36|0,F=e|0,g=E_[F>>2]|0,N=(E_[g+12>>2]|0)+1-(E_[g+4>>2]|0)|0,D=e+40|0,E=E_[D>>2]|0,R=M|0,v=E_[R>>2]|0,S=E-v>>2;do if(S>>>0<N>>>0)Du(M,N-S|0),C=E_[F>>2]|0;else{if(S>>>0<=N>>>0){C=g;break}if(p=v+(N<<2)|0,(p|0)==(E|0)){C=g;break}E_[D>>2]=E+(~((E-4+(-p|0)|0)>>>2)<<2),C=g}while(0);if(E_[e+8>>2]=(E_[C+8>>2]|0)+1-(E_[C>>2]|0),g=E_[C+4>>2]|0,(g|0)>(E_[C+12>>2]|0))return;T=g,P=C;do{for(C=E_[P+8>>2]|0,g=E_[P>>2]|0,E=P+4|0,D=P+16|0,N=C;;){if(L=E_[E>>2]|0,(N|0)<(g|0))break;if((m_[(E_[(E_[D>>2]|0)+((T-L|0)*12|0)>>2]|0)+(N-g)|0]|0)!=0)break;N=N-1|0}E_[(E_[R>>2]|0)+(T-L<<2)>>2]=C-N,T=T+1|0,P=E_[F>>2]|0}while((T|0)<=(E_[P+12>>2]|0));return;case 3:P=e+36|0,T=e|0,F=E_[T>>2]|0,L=(E_[F+8>>2]|0)+1-(E_[F>>2]|0)|0,R=e+40|0,g=E_[R>>2]|0,D=P|0,E=E_[D>>2]|0,w=g-E>>2;do if(w>>>0<L>>>0)Du(P,L-w|0),I=E_[T>>2]|0;else{if(w>>>0<=L>>>0){I=F;break}if(v=E+(L<<2)|0,(v|0)==(g|0)){I=F;break}E_[R>>2]=g+(~((g-4+(-v|0)|0)>>>2)<<2),I=F}while(0);if(E_[e+8>>2]=(E_[I+12>>2]|0)+1-(E_[I+4>>2]|0),e=E_[I>>2]|0,(e|0)>(E_[I+8>>2]|0))return;x=e,B=I;do{for(I=E_[B+12>>2]|0,e=E_[B+4>>2]|0,F=B+16|0,g=B|0,R=I;;){if((R|0)<(e|0)){d=6998;break}if(L=E_[g>>2]|0,(m_[(E_[(E_[F>>2]|0)+((R-e|0)*12|0)>>2]|0)+(x-L)|0]|0)!=0){H=L;break}R=R-1|0}(d|0)==6998&&(d=0,H=E_[g>>2]|0),E_[(E_[D>>2]|0)+(x-H<<2)>>2]=I-R,x=x+1|0,B=E_[T>>2]|0}while((x|0)<=(E_[B+8>>2]|0));return;default:return}}function nb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0;if(r=e+20|0,i=E_[r>>2]|0,(i|0)>=0)return f=i,f|0;for(i=e+8|0,(E_[i>>2]|0)<0&&tb(e),E_[r>>2]=0,a=e+40|0,t=e+36|0,n=0;;){if((E_[i>>2]|0)<0&&tb(e),o=E_[a>>2]|0,u=E_[t>>2]|0,(n|0)>=(o-u>>2|0))break;E_[r>>2]=(E_[r>>2]|0)+(E_[u+(n<<2)>>2]|0),n=n+1|0}return(E_[i>>2]|0)<0?(tb(e),l=E_[a>>2]|0,s=E_[t>>2]|0):(l=o,s=u),(l-s|0)<=4?(f=E_[r>>2]|0,f|0):((E_[i>>2]|0)<0?(tb(e),b=E_[a>>2]|0,k=E_[t>>2]|0):(b=l,k=s),s=(E_[r>>2]|0)/(b-k>>2|0)|0,E_[r>>2]=s,f=s,f|0)}function ob(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0;if(r=e+12|0,i=E_[r>>2]|0,(i|0)>=0)return f=i,f|0;for(i=e+8|0,(E_[i>>2]|0)<0&&tb(e),a=e+36|0,t=E_[a>>2]|0,E_[r>>2]=E_[t>>2],n=e+40|0,o=1,u=t;;){if((E_[i>>2]|0)<0?(tb(e),l=E_[a>>2]|0):l=u,(o|0)>=((E_[n>>2]|0)-l>>2|0))break;t=E_[l+(o<<2)>>2]|0,(t|0)>(E_[r>>2]|0)&&(E_[r>>2]=t),o=o+1|0,u=l}return f=E_[r>>2]|0,f|0}function ub(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0;if(f=e+8|0,(E_[f>>2]|0)<0&&tb(e),(i|0)<0?((E_[f>>2]|0)<0&&tb(e),a=((E_[e+40>>2]|0)-(E_[e+36>>2]|0)>>2)-1|0):a=i,(a|0)<(r|0))return t=0,t|0;for(i=E_[e+36>>2]|0,e=0,f=r;;){if(r=E_[i+(f<<2)>>2]|0,n=(r|0)>(e|0)?r:e,r=f+1|0,(r|0)>(a|0)){t=n;break}e=n,f=r}return t|0}function lb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0;if(r=e+16|0,i=E_[r>>2]|0,(i|0)>=0)return f=i,f|0;for(i=e+8|0,(E_[i>>2]|0)<0&&tb(e),a=e+36|0,t=E_[a>>2]|0,E_[r>>2]=E_[t>>2],n=e+40|0,o=1,u=t;;){if((E_[i>>2]|0)<0?(tb(e),l=E_[a>>2]|0):l=u,(o|0)>=((E_[n>>2]|0)-l>>2|0))break;t=E_[l+(o<<2)>>2]|0,(t|0)<(E_[r>>2]|0)&&(E_[r>>2]=t),o=o+1|0,u=l}return f=E_[r>>2]|0,f|0}function sb(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0;if(f=e+8|0,(E_[f>>2]|0)<0&&tb(e),(i|0)<0?((E_[f>>2]|0)<0&&tb(e),a=((E_[e+40>>2]|0)-(E_[e+36>>2]|0)>>2)-1|0):a=i,i=E_[f>>2]|0,(a|0)<(r|0))return t=i,t|0;for(f=E_[e+36>>2]|0,e=i,i=r;;){if(r=E_[f+(i<<2)>>2]|0,n=(r|0)<(e|0)?r:e,r=i+1|0,(r|0)>(a|0)){t=n;break}e=n,i=r}return t|0}function bb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;i=e+8|0,(E_[i>>2]|0)<0&&tb(e);do if((r|0)<0)f=0,a=E_[e+36>>2]|0;else{if((E_[i>>2]|0)<0&&tb(e),t=e+40|0,n=E_[t>>2]|0,o=e+36|0,u=E_[o>>2]|0,(n-u>>2|0)>(r|0)){f=r,a=u;break}(E_[i>>2]|0)<0?(tb(e),l=E_[t>>2]|0,s=E_[o>>2]|0):(l=n,s=u),f=(l-s>>2)-1|0,a=s}while(0);return E_[a+(f<<2)>>2]|0}function kb(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0;if(f=e+8|0,(E_[f>>2]|0)<0&&tb(e),(r|0)<0)return a=0,a|0;if((E_[f>>2]|0)<0&&tb(e),t=e+40|0,n=E_[t>>2]|0,o=e+36|0,u=E_[o>>2]|0,((n-u>>2)-2|0)<(r|0))return a=0,a|0;if((E_[f>>2]|0)<0?(tb(e),l=E_[t>>2]|0,s=E_[o>>2]|0):(l=n,s=u),((E_[s+((l-s>>2)-1<<2)>>2]|0)-(E_[s+(r<<2)>>2]|0)|0)<(i|0))return a=0,a|0;for(b=r,k=l,c=s;;){if(s=b+1|0,(E_[f>>2]|0)<0?(tb(e),d=E_[t>>2]|0,h=E_[o>>2]|0):(d=k,h=c),(s|0)>=(d-h>>2|0)){a=1,_=7140;break}if((E_[h+(s<<2)>>2]|0)<(E_[h+(b<<2)>>2]|0)){a=0,_=7138;break}b=s,k=d,c=h}return(_|0)==7138?a|0:(_|0)==7140?a|0:0}function cb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0;i=e+8|0,f=E_[i>>2]|0;do if((f|0)<0){if(tb(e),a=E_[i>>2]|0,(a|0)>=0){t=a;break}tb(e),t=E_[i>>2]|0}else t=f;while(0);if(f=e+40|0,a=E_[f>>2]|0,n=e+36|0,o=E_[n>>2]|0,u=a-o>>2,l=(((t|0)<(u|0)?t:u)|0)/20|0,u=l+1|0,(r|0)<0)return s=0,s|0;if((t|0)<0?(tb(e),b=E_[f>>2]|0,k=E_[n>>2]|0):(b=a,k=o),((b-k>>2)-r|0)<=(u<<1|0))return s=0,s|0;if(o=E_[k+(r<<2)>>2]|0,(E_[i>>2]|0)<0?(tb(e),c=E_[f>>2]|0,d=E_[n>>2]|0):(c=b,d=k),(o-(E_[d+((c-d>>2)-u<<2)>>2]|0)|0)<(l+2|0))return s=0,s|0;for(h=r,_=c,w=d;;){if(d=h+1|0,(E_[i>>2]|0)<0?(tb(e),v=E_[f>>2]|0,m=E_[n>>2]|0):(v=_,m=w),(d|0)>=((v-m>>2)-u|0)){s=1,p=7160;break}if((E_[m+(d<<2)>>2]|0)>(E_[m+(h<<2)>>2]|0)){s=0,p=7158;break}h=d,_=v,w=m}return(p|0)==7158?s|0:(p|0)==7160?s|0:0}function db(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0;if(r=e+24|0,(m_[r]|0)>=0)return i=m_[r]|0,f=i<<24>>24!=0,f|0;m_[r]=0,a=e+8|0;do if((E_[a>>2]|0)<0){if(tb(e),(E_[a>>2]|0)>=0)break;tb(e)}while(0);if(t=e+40|0,n=E_[t>>2]|0,o=e+36|0,u=E_[o>>2]|0,(n-u|0)<20)return i=m_[r]|0,f=i<<24>>24!=0,f|0;for((E_[a>>2]|0)<0?(tb(e),l=E_[t>>2]|0,s=E_[o>>2]|0):(l=n,s=u),u=(((l-s>>2)*10|0)-10|0)/100|0,n=0,b=0,k=-1,c=l,l=s;;){if((E_[a>>2]|0)<0?(tb(e),d=E_[t>>2]|0,h=E_[o>>2]|0):(d=c,h=l),(u|0)>((((d-h>>2)*90|0)-90|0)/100|0|0))break;s=E_[h+(u<<2)>>2]|0,(s|0)>(k|0)?(_=u,w=u,v=s):(_=(s|0)==(k|0)?u:n,w=b,v=k),u=u+1|0,n=_,b=w,k=v,c=d,l=h}if((b|0)>(n|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((E_[a>>2]|0)<0?(tb(e),m=E_[t>>2]|0,p=E_[o>>2]|0):(m=d,p=h),(b|0)<((((m-p>>2)*25|0)-25|0)/100|0|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((E_[a>>2]|0)<0?(tb(e),E=E_[t>>2]|0,S=E_[o>>2]|0):(E=m,S=p),(n|0)>((((E-S>>2)*75|0)-75|0)/100|0|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((E_[a>>2]|0)<0?(tb(e),g=E_[t>>2]|0,y=E_[o>>2]|0):(g=E,y=S),(E_[y+(((((g-y>>2)*10|0)-10|0)/100|0)<<2)>>2]|0)>=(k|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((E_[a>>2]|0)<0?(tb(e),A=E_[t>>2]|0,O=E_[o>>2]|0):(A=g,O=y),(E_[O+(((((A-O>>2)*90|0)-90|0)/100|0)<<2)>>2]|0)>=(k|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;for(k=(n+b|0)/2|0,(E_[a>>2]|0)<0?(tb(e),R=E_[t>>2]|0,F=E_[o>>2]|0):(R=A,F=O),O=(((R-F>>2)*10|0)-10|0)/100|0;;){if((O|0)>=(k|0))break;if(A=O+1|0,(E_[F+(O<<2)>>2]|0)>(E_[F+(A<<2)>>2]|0)){M=7205;break}O=A}if((M|0)==7205)return i=m_[r]|0,f=i<<24>>24!=0,f|0;for((E_[a>>2]|0)<0?(tb(e),N=E_[t>>2]|0,D=E_[o>>2]|0):(N=R,D=F),F=(((N-D>>2)*90|0)-90|0)/100|0;;){if((F|0)<=(k|0))break;if(N=F-1|0,(E_[D+(F<<2)>>2]|0)>(E_[D+(N<<2)>>2]|0)){M=7208;break}F=N}return(M|0)==7208?(i=m_[r]|0,f=i<<24>>24!=0,f|0):(m_[r]=1,i=m_[r]|0,f=i<<24>>24!=0,f|0)}function hb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0,J=0,$=0,er=0,rr=0;if(r=e+25|0,(m_[r]|0)>=0)return i=m_[r]|0,f=i<<24>>24!=0,f|0;m_[r]=0,a=e+8|0;do if((E_[a>>2]|0)<0){if(tb(e),(E_[a>>2]|0)>=0)break;tb(e)}while(0);if(t=e+40|0,n=E_[t>>2]|0,o=e+36|0,u=E_[o>>2]|0,(n-u|0)<36)return i=m_[r]|0,f=i<<24>>24!=0,f|0;if(l=E_[a>>2]|0,(l|0)<5)return i=m_[r]|0,f=i<<24>>24!=0,f|0;for(s=l,b=0,k=0,c=1,d=0,h=0,_=-l|0,w=l,v=l,l=n,n=u;;){if((v|0)<0?(tb(e),m=E_[t>>2]|0,p=E_[o>>2]|0):(m=l,p=n),(c|0)>=(m-p>>2|0))break;u=E_[p+(c<<2)>>2]|0,E=c-1|0,S=u-(E_[p+(E<<2)>>2]|0)|0,g=(S|0)<(w|0),y=(S|0)<(_|0),A=y?d:c,(u|0)>(s|0)?(O=s,R=b,F=k):(M=(u|0)<(s|0),O=M?u:s,R=M?c:b,F=c),s=O,b=R,k=F,c=c+1|0,d=A,h=g?E:h,_=y?_:S,w=g?S:w,v=E_[a>>2]|0,l=m,n=p}if((h|0)>=(d|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((E_[a>>2]|0)<0?(tb(e),N=E_[t>>2]|0,D=E_[o>>2]|0):(N=m,D=p),(h|0)>=((((N-D>>2)*25|0)-25|0)/100|0|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((E_[a>>2]|0)<0?(tb(e),C=E_[t>>2]|0,T=E_[o>>2]|0):(C=N,T=D),(d|0)<=((((C-T>>2)*75|0)-75|0)/100|0|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((w|0)>-1|(_|0)<1)return i=m_[r]|0,f=i<<24>>24!=0,f|0;if(_=E_[T+(h<<2)>>2]|0,(_|0)<2)return i=m_[r]|0,f=i<<24>>24!=0,f|0;if(w=E_[T+(d<<2)>>2]|0,(w|0)<2)return i=m_[r]|0,f=i<<24>>24!=0,f|0;if(D=E_[a>>2]|0,(D|0)<0?(tb(e),P=E_[a>>2]|0,L=E_[t>>2]|0,I=E_[o>>2]|0):(P=D,L=C,I=T),T=L-I>>2,((w+_|0)*3|0|0)<=(((T|0)<(P|0)?T:P)|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if(T=k-b+1|0,(P|0)<0?(tb(e),x=E_[t>>2]|0,B=E_[o>>2]|0):(x=L,B=I),(T*3|0|0)>(x-B>>1|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((h<<1|0)>=(b|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((E_[a>>2]|0)<0?(tb(e),H=E_[t>>2]|0,U=E_[o>>2]|0):(H=x,U=B),(d<<1|0)<=(k-1+(H-U>>2)|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((E_[a>>2]|0)<0?(tb(e),z=E_[t>>2]|0,Y=E_[o>>2]|0):(z=H,Y=U),(b|0)<((((z-Y>>2)*10|0)-10|0)/100|0|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((E_[a>>2]|0)<0?(tb(e),V=E_[t>>2]|0,Z=E_[o>>2]|0):(V=z,Z=Y),(k|0)>((((V-Z>>2)*90|0)-90|0)/100|0|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;Y=E_[a>>2]|0,(Y|0)<0?(tb(e),j=E_[t>>2]|0,q=E_[o>>2]|0,W=E_[a>>2]|0):(j=V,q=Z,W=Y),Y=j-q>>2,Z=((((W|0)<(Y|0)?W:Y)|0)/30|0)+1|0,Y=h+1|0;e:do if((Y|0)<=(d|0)){V=-W|0,z=h,U=Y;r:for(;;){H=V-Z|0,B=z,x=U;i:for(;;){I=E_[q+(x<<2)>>2]|0;do if((x|0)<(b|0)|(x|0)>(k|0)){if(L=E_[q+(B<<2)>>2]|0,K=I-L|0,(I|0)==(L|0))break;if((K|0)>(V|0))break i;if((K|0)<(H|0)){X=7290;break r}}else if((I|0)>(Z|0)){X=7303;break r}while(0);if(I=x+1|0,(I|0)>(d|0))break e;B=x,x=I}if(B=x+1|0,(B|0)>(d|0))break e;V=(((K|0)>-1?K:-K|0)|0)>(Z|0)?K:V+1|0,z=x,U=B}if((X|0)==7303)return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((X|0)==7290)return i=m_[r]|0,f=i<<24>>24!=0,f|0}while(0);(W|0)<0?(tb(e),G=E_[t>>2]|0,Q=E_[o>>2]|0):(G=j,Q=q);do if((T<<1|0)<(G-Q>>2|0)){if(q=(J_(E_[Q+(h<<2)>>2]|0,1-h+b|0)|0)/2|0,j=((J_(E_[Q+(d<<2)>>2]|0,d+1-k|0)|0)/2|0)+q|0,q=b-1|0,(E_[a>>2]|0)<0&&tb(e),(q|0)<0?((E_[a>>2]|0)<0&&tb(e),J=((E_[t>>2]|0)-(E_[o>>2]|0)>>2)-1|0):J=q,(J|0)<(h|0))$=0;else for(q=E_[o>>2]|0,W=0,X=h;;){if(K=(E_[q+(X<<2)>>2]|0)+W|0,Z=X+1|0,(Z|0)>(J|0)){$=K;break}W=K,X=Z}if(X=k+1|0,(E_[a>>2]|0)<0&&tb(e),(d|0)<0?((E_[a>>2]|0)<0&&tb(e),er=((E_[t>>2]|0)-(E_[o>>2]|0)>>2)-1|0):er=d,(er|0)<(X|0))rr=0;else for(W=E_[o>>2]|0,q=0,Z=X;;){if(X=(E_[W+(Z<<2)>>2]|0)+q|0,K=Z+1|0,(K|0)>(er|0)){rr=X;break}q=X,Z=K}if((rr+$|0)<(j|0))break;return i=m_[r]|0,f=i<<24>>24!=0,f|0}while(0);return m_[r]=1,i=m_[r]|0,f=i<<24>>24!=0,f|0}function _b(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;if(r=e+26|0,i=m_[r]|0,i<<24>>24>=0)return f=i,a=f<<24>>24!=0,a|0;m_[r]=0,i=e+8|0;do if((E_[i>>2]|0)<0){if(tb(e),(E_[i>>2]|0)>=0)break;tb(e)}while(0);if(t=e+40|0,n=E_[t>>2]|0,o=e+36|0,u=E_[o>>2]|0,(n-u|0)<40)return f=m_[r]|0,a=f<<24>>24!=0,a|0;for((E_[i>>2]|0)<0?(tb(e),l=E_[t>>2]|0,s=E_[o>>2]|0):(l=n,s=u),u=E_[s+(((l-s>>2|0)/2|0)<<2)>>2]|0,n=1,b=u,k=u,u=l,l=s;;){if((E_[i>>2]|0)<0?(tb(e),c=E_[t>>2]|0,d=E_[o>>2]|0):(c=u,d=l),(n|0)>=((c-d>>2)-1|0))break;s=E_[d+(n<<2)>>2]|0,(s|0)<(k|0)?(h=b,_=s):(h=(s|0)>(b|0)?s:b,_=k),n=n+1|0,b=h,k=_,u=c,l=d}return(E_[i>>2]|0)<0?(tb(e),w=E_[t>>2]|0,v=E_[o>>2]|0):(w=c,v=d),d=(b-k|0)<=(((w-v>>2|0)/30|0)+1|0)|0,m_[r]=d,f=d,a=f<<24>>24!=0,a|0}function wb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0;if(r=e+27|0,(m_[r]|0)>=0)return i=m_[r]|0,f=i<<24>>24!=0,f|0;m_[r]=0,a=e+8|0;do if((E_[a>>2]|0)<0){if(tb(e),(E_[a>>2]|0)>=0)break;tb(e)}while(0);if(t=e+40|0,n=E_[t>>2]|0,o=e+36|0,u=E_[o>>2]|0,(n-u|0)<48)return i=m_[r]|0,f=i<<24>>24!=0,f|0;for(l=E_[a>>2]|0,(l|0)<0?(tb(e),s=E_[t>>2]|0,b=E_[o>>2]|0,k=E_[a>>2]|0):(s=n,b=u,k=l),l=(((s-b>>2)*15|0)-15|0)/100|0,u=(l|0)<3?3:l,(k|0)<0?(tb(e),c=E_[t>>2]|0,d=E_[o>>2]|0,h=E_[a>>2]|0):(c=s,d=b,h=k),k=(((c-d>>2)*85|0)-85|0)/100|0,(h|0)<0?(tb(e),_=E_[t>>2]|0,w=E_[o>>2]|0):(_=c,w=d),d=(_-w>>2)-4|0,c=(d|0)<(k|0)?d:k,k=u+2|0;;){if((k|0)>=(c|0)){v=7358;break}if(m=E_[w+(k-1<<2)>>2]|0,(m|0)==(E_[w+(k<<2)>>2]|0))break;k=k+1|0}if((v|0)==7358)return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((m|0)<0)return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((u|0)<1)p=m;else for(v=m,k=1;;){if(d=E_[w+(k<<2)>>2]|0,h=(d|0)>(v|0)?d:v,d=k+1|0,(d|0)>(u|0)){p=h;break}v=h,k=d}k=u+1|0;e:do if((k|0)<(c|0))for(u=m,v=p,d=k;;){for(h=v,b=d;;){if(E=E_[w+(b<<2)>>2]|0,(E|0)<(u|0))break;if(s=(E|0)>(h|0)?E:h,l=b+1|0,!((l|0)<(c|0))){S=s,g=u;break e}h=s,b=l}if(s=b+1|0,!((s|0)<(c|0))){S=h,g=E;break}u=E,v=h,d=s}else S=p,g=m;while(0);for(m=c,c=S,S=_,_=w;;){if((E_[a>>2]|0)<0?(tb(e),y=E_[t>>2]|0,A=E_[o>>2]|0):(y=S,A=_),(m|0)>=((y-A>>2)-1|0))break;w=E_[A+(m<<2)>>2]|0,m=m+1|0,c=(w|0)>(c|0)?w:c,S=y,_=A}return(E_[a>>2]|0)<0?(tb(e),O=E_[t>>2]|0,R=E_[o>>2]|0):(O=y,R=A),m_[r]=(c-g|0)<=(((O-R>>2|0)/30|0)+1|0)|0,i=m_[r]|0,f=i<<24>>24!=0,f|0}function vb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0;r=e+28|0;e:do if((m_[r]|0)<0){m_[r]=0,i=e+8|0;do if((E_[i>>2]|0)<0){if(tb(e),(E_[i>>2]|0)>=0)break;tb(e)}while(0);if(f=e+40|0,a=E_[f>>2]|0,t=e+36|0,n=E_[t>>2]|0,(a-n|0)<20)break;for(o=E_[i>>2]|0,(o|0)<0?(tb(e),u=E_[f>>2]|0,l=E_[t>>2]|0,s=E_[i>>2]|0):(u=a,l=n,s=o),o=u-l>>2,n=((((s|0)<(o|0)?s:o)|0)/25|0)+1|0,o=0,a=l,b=u;;){if((o|0)>=(n|0))break;if(k=n-o|0,(E_[a+(o<<2)>>2]|0)<=(k|0))break e;if((E_[i>>2]|0)<0?(tb(e),c=E_[f>>2]|0,d=E_[t>>2]|0):(c=b,d=a),!((E_[d+((c-d>>2)+~o<<2)>>2]|0)>(k|0)))break e;o=o+1|0,a=d,b=c}if(o=e+16|0,k=E_[o>>2]|0,(k|0)<0){for((E_[i>>2]|0)<0?(tb(e),h=E_[t>>2]|0):h=a,E_[o>>2]=E_[h>>2],_=1,w=h;;){if((E_[i>>2]|0)<0?(tb(e),v=E_[t>>2]|0):v=w,m=E_[f>>2]|0,(_|0)>=(m-v>>2|0))break;p=E_[v+(_<<2)>>2]|0,(p|0)<(E_[o>>2]|0)&&(E_[o>>2]=p),_=_+1|0,w=v}E=E_[o>>2]|0,S=m,g=v}else E=k,S=b,g=a;for(w=E_[i>>2]|0,_=(w|0)/2|0,p=_,y=0,A=w,w=S,O=g;;){if((A|0)<0?(tb(e),R=E_[f>>2]|0,F=E_[t>>2]|0):(R=w,F=O),(y|0)>=(R-F>>2|0))break e;if(M=E_[F+(y<<2)>>2]|0,(M|0)==(E|0))break;if((M|0)<(p|0))N=M;else{if((M|0)>(p+n|0)&(p|0)<(_|0))break e;N=p}p=N,y=y+1|0,A=E_[i>>2]|0,w=R,O=F}if((y|0)<2)break;if((E_[i>>2]|0)<0?(tb(e),D=E_[f>>2]|0,C=E_[t>>2]|0):(D=R,C=F),(y|0)>((D-C>>2)-3|0))break;(E_[i>>2]|0)<0?(tb(e),T=E_[f>>2]|0,P=E_[t>>2]|0):(T=D,P=C),O=_,w=T-P>>2;r:for(;;){if(A=O+n|0,(O|0)<(_|0))L=w;else for(p=w;;){if(a=p-1|0,(a|0)<(y|0)){I=0;break r}if(b=E_[P+(a<<2)>>2]|0,(b|0)==(E|0)){I=a;break r}if((b|0)<(O|0)){O=b,w=a;continue r}p=a}for(;;){if(L=L-1|0,(L|0)<(y|0)){I=0;break r}if(p=E_[P+(L<<2)>>2]|0,(p|0)==(E|0)){I=L;break r}if((p|0)<(O|0)){O=p,w=L;continue r}if((p|0)>(A|0))break e}}if((I|0)<(y|0))break;if((E_[i>>2]|0)<0?(tb(e),x=E_[f>>2]|0,B=E_[t>>2]|0):(x=T,B=P),(I|0)>((x-B>>2)-3|0))break;for(w=E+n|0,O=y;;){if(O=O+1|0,(O|0)>=(I|0))break;if((E_[B+(O<<2)>>2]|0)>(w|0))break e}m_[r]=1}while(0);return(m_[r]|0)!=0|0}function mb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0;i=e+8|0;do if((E_[i>>2]|0)<0){if(tb(e),(E_[i>>2]|0)>=0)break;tb(e)}while(0);if(f=e+40|0,a=E_[f>>2]|0,t=e+36|0,n=E_[t>>2]|0,(a-n|0)<20)return o=0,o|0;if((r-25|0)>>>0>50)return o=0,o|0;u=E_[i>>2]|0,(u|0)<0?(tb(e),l=E_[f>>2]|0,s=E_[t>>2]|0,b=E_[i>>2]|0):(l=a,s=n,b=u),u=(J_((l-s>>2)-1|0,r)|0)/100|0;do if((b|0)<0){if(tb(e),r=E_[f>>2]|0,n=E_[t>>2]|0,a=(r-n>>2|0)/4|0,(E_[i>>2]|0)>=0){k=r,c=n,d=a;break}tb(e),k=E_[f>>2]|0,c=E_[t>>2]|0,d=a}else k=l,c=s,d=(l-s>>2|0)/4|0;while(0);for(s=(k-c>>2)-u|0,c=(s|0)<(u|0)?s:u,s=(c|0)<(d|0)?c:d,h=(nb(e)|0)<2?2:nb(e)|0,d=0;;){if((d|0)>=(s|0)){o=0,_=7446;break}if(c=d+u|0,w=E_[t>>2]|0,(E_[w+(c<<2)>>2]|0)<(h|0)){v=c;break}if(c=u-d-1|0,(E_[w+(c<<2)>>2]|0)<(h|0)){v=c;break}d=d+1|0}if((_|0)==7446)return o|0;if((v|0)<0)return o=0,o|0;for(m=v,p=w;;){if(w=m+1|0,(E_[i>>2]|0)<0?(tb(e),E=E_[t>>2]|0):E=p,(w|0)>=((E_[f>>2]|0)-E>>2|0)){o=0,_=7445;break}if((E_[E+(w<<2)>>2]|0)>(h|0)){S=v;break}m=w,p=E}if((_|0)==7445)return o|0;for(;;){if(p=S-1|0,(S|0)<=0){o=0,_=7449;break}if((E_[E+(p<<2)>>2]|0)>(h|0)){o=1,_=7448;break}S=p}return(_|0)==7449?o|0:(_|0)==7448?o|0:0}function pb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0;r=e+8|0;do if((E_[r>>2]|0)<0){if(tb(e),(E_[r>>2]|0)>=0)break;tb(e)}while(0);if(i=e+40|0,f=E_[i>>2]|0,a=e+36|0,t=E_[a>>2]|0,(f-t|0)<20)return 0;if((E_[r>>2]|0)<0?(tb(e),n=E_[i>>2]|0,o=E_[a>>2]|0):(n=f,o=t),t=E_[o>>2]|0,(t|0)<(((n-o>>2|0)/30|0)+2|0))return 0;if(f=e+16|0,u=E_[f>>2]|0,(u|0)<0){for((E_[r>>2]|0)<0?(tb(e),l=E_[a>>2]|0,s=l,b=E_[l>>2]|0):(s=o,b=t),E_[f>>2]=b,b=1,t=s;;){if((E_[r>>2]|0)<0?(tb(e),k=E_[a>>2]|0):k=t,c=E_[i>>2]|0,(b|0)>=(c-k>>2|0))break;s=E_[k+(b<<2)>>2]|0,(s|0)<(E_[f>>2]|0)&&(E_[f>>2]=s),b=b+1|0,t=k}d=E_[f>>2]|0,h=c,_=k}else d=u,h=n,_=o;for(o=E_[r>>2]|0,n=0,u=o,k=o,o=h,h=_;;){if((k|0)<0?(tb(e),w=E_[i>>2]|0,v=E_[a>>2]|0):(w=o,v=h),(n|0)>=(w-v>>2|0)){m=7485;break}if(_=E_[v+(n<<2)>>2]|0,(_|0)==(d|0)){m=7476;break}if((_|0)<(u|0))p=_;else{if((_|0)>(u+1|0)){m=7482;break}p=u}n=n+1|0,u=p,k=E_[r>>2]|0,o=w,h=v}return(m|0)==7485?0:(m|0)==7476?(n|0)<2?0:(h=n<<1,(E_[r>>2]|0)>=0?(E=w,S=v,g=E,y=S,A=g-y|0,O=A>>2,R=(h|0)<(O|0),R|0):(tb(e),E=E_[i>>2]|0,S=E_[a>>2]|0,g=E,y=S,A=g-y|0,O=A>>2,R=(h|0)<(O|0),R|0)):(m|0)==7482?0:0}function Eb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0;r=e+29|0,i=m_[r]|0;e:do{if(i<<24>>24<0){f=e+8|0,a=E_[f>>2]|0,(a|0)<0?(tb(e),t=E_[f>>2]|0):t=a;do if((t|0)>=5){if(a=e+40|0,n=e+36|0,((E_[a>>2]|0)-(E_[n>>2]|0)|0)<20)break;if(!(vb(e)|0))break;for(o=E_[f>>2]|0,(o|0)<0?(tb(e),u=E_[f>>2]|0):u=o,o=E_[a>>2]|0,l=E_[n>>2]|0,s=o-l>>2,b=((((s|0)<(u|0)?s:u)|0)/30|0)+1|0,s=0,k=0,c=-1,d=u,h=o,o=l;;){if((d|0)<0?(tb(e),_=E_[a>>2]|0,w=E_[n>>2]|0):(_=h,w=o),(s|0)>=(_-w>>2|0))break;(E_[w+(s<<2)>>2]|0)>(b|0)?(v=k,m=c):(v=s,m=(c|0)<0?s:c),s=s+1|0,k=v,c=m,d=E_[f>>2]|0,h=_,o=w}(c|0)>0?((E_[f>>2]|0)<0?(tb(e),p=E_[a>>2]|0,E=E_[n>>2]|0):(p=_,E=w),S=((k-c<<2)+4|0)<(p-E>>2|0)|0):S=0,m_[r]=S,g=S;break e}while(0);return m_[r]=0,y=0,y|0}g=i}while(0);return y=g<<24>>24!=0,y|0}function Sb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0;if(r=e+30|0,(m_[r]|0)>=0)return i=m_[r]|0,f=i<<24>>24!=0,f|0;m_[r]=0,a=e+8|0;do if((E_[a>>2]|0)<0){if(tb(e),(E_[a>>2]|0)>=0)break;tb(e)}while(0);if(t=e+40|0,n=e+36|0,((E_[t>>2]|0)-(E_[n>>2]|0)|0)<20)return i=m_[r]|0,f=i<<24>>24!=0,f|0;(nb(e)|0)<2&&(gb(e)|0)>2?o=2:u=7520,(u|0)==7520&&(o=nb(e)|0),l=0,s=0,b=0,k=0,c=0,d=0;e:for(;;){if((E_[a>>2]|0)<0&&tb(e),h=E_[t>>2]|0,_=E_[n>>2]|0,(l|0)>=(h-_>>2|0)){u=7548;break}w=E_[_+(l<<2)>>2]|0;do if((d|0)==1){if((w|0)<=(o|0)){if((w|0)>=(o|0)){v=s,m=b,p=k,E=c,S=1;break}v=w+s|0,m=b,p=k+1|0,E=c,S=1;break}if((E_[a>>2]|0)<0?(tb(e),g=E_[t>>2]|0,y=E_[n>>2]|0):(g=h,y=_),(l|0)<((((g-y>>2)*30|0)-30|0)/100|0|0)){u=7561;break e}if((E_[a>>2]|0)<0?(tb(e),A=E_[t>>2]|0,O=E_[n>>2]|0):(A=g,O=y),(l|0)>((((A-O>>2)*75|0)-75|0)/100|0|0)){u=7562;break e}v=s,m=b,p=k,E=c,S=2}else if((d|0)==2){if((w|0)<(o|0)){u=7557;break e}if((w|0)<=(o|0)){v=s,m=b,p=k,E=c,S=2;break}v=s,m=w+b|0,p=k,E=c+1|0,S=2}else if((d|0)==0){if((w|0)>=(o|0)){if((w|0)<=(o|0)){v=s,m=b,p=k,E=c,S=0;break}v=s,m=w+b|0,p=k,E=c+1|0,S=0;break}if((E_[a>>2]|0)<0?(tb(e),R=E_[t>>2]|0,F=E_[n>>2]|0):(R=h,F=_),(l|0)<((((R-F>>2)*25|0)-25|0)/100|0|0)){u=7560;break e}if((E_[a>>2]|0)<0?(tb(e),M=E_[t>>2]|0,N=E_[n>>2]|0):(M=R,N=F),(l|0)>((((M-N>>2)*70|0)-70|0)/100|0|0)){u=7556;break e}v=s,m=b,p=k,E=c,S=1}else v=s,m=b,p=k,E=c,S=d;while(0);l=l+1|0,s=v,b=m,k=p,c=E,d=S}return(u|0)==7556?(i=m_[r]|0,f=i<<24>>24!=0,f|0):(u|0)==7560?(i=m_[r]|0,f=i<<24>>24!=0,f|0):(u|0)==7561?(i=m_[r]|0,f=i<<24>>24!=0,f|0):(u|0)==7557?(i=m_[r]|0,f=i<<24>>24!=0,f|0):(u|0)==7548?(D=(c|0)>1?(b|0)/(c|0)|0:b,C=(k|0)>1?(s|0)/(k|0)|0:s,T=(d|0)==2?(D-C|0)>((gb(e)|0)/2|0|0)|0:0,m_[r]=T,i=m_[r]|0,f=i<<24>>24!=0,f|0):(u|0)==7562?(i=m_[r]|0,f=i<<24>>24!=0,f|0):0
}function gb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;if(r=e+12|0,i=E_[r>>2]|0,(i|0)<0){for(f=e+8|0,(E_[f>>2]|0)<0&&tb(e),a=e+36|0,t=E_[a>>2]|0,E_[r>>2]=E_[t>>2],n=e+40|0,o=1,u=t;;){if((E_[f>>2]|0)<0?(tb(e),l=E_[a>>2]|0):l=u,(o|0)>=((E_[n>>2]|0)-l>>2|0))break;t=E_[l+(o<<2)>>2]|0,(t|0)>(E_[r>>2]|0)&&(E_[r>>2]=t),o=o+1|0,u=l}s=E_[r>>2]|0}else s=i;if(i=e+16|0,r=E_[i>>2]|0,(r|0)>=0)return b=r,k=s-b|0,k|0;for(r=e+8|0,(E_[r>>2]|0)<0&&tb(e),l=e+36|0,u=E_[l>>2]|0,E_[i>>2]=E_[u>>2],o=e+40|0,n=1,a=u;;){if((E_[r>>2]|0)<0?(tb(e),c=E_[l>>2]|0):c=a,(n|0)>=((E_[o>>2]|0)-c>>2|0))break;u=E_[c+(n<<2)>>2]|0,(u|0)<(E_[i>>2]|0)&&(E_[i>>2]=u),n=n+1|0,a=c}return b=E_[i>>2]|0,k=s-b|0,k|0}function yb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0;r=e+31|0,i=m_[r]|0;e:do{if(i<<24>>24<0){f=e+8|0,a=E_[f>>2]|0,(a|0)<0?(tb(e),t=E_[f>>2]|0):t=a;do if((t|0)>=5){if(a=e+40|0,n=e+36|0,((E_[a>>2]|0)-(E_[n>>2]|0)|0)<20)break;if(!(vb(e)|0))break;for(o=E_[f>>2]|0,u=(o|0)/20|0,l=((o|0)/10|0)+2|0,s=-1,b=0,k=-1,c=-1,d=-1,h=o;;){if((h|0)<0&&tb(e),_=E_[a>>2]|0,w=E_[n>>2]|0,(b|0)>=(_-w>>2|0))break;o=E_[w+(b<<2)>>2]|0;do if((o|0)>(l|0))v=s,m=k,p=c,E=d;else{if(S=(s|0)<0?b:s,(o|0)>(u|0)){v=S,m=k,p=b,E=d;break}v=S,m=b,p=b,E=(d|0)<0?b:d}while(0);s=v,b=b+1|0,k=m,c=p,d=E,h=E_[f>>2]|0}h=c-s+1|0;do if((d|0)>0){if((E_[f>>2]|0)<0?(tb(e),g=E_[a>>2]|0,y=E_[n>>2]|0):(g=_,y=w),(h<<1|0)>((g-y>>2)+1|0)){A=0;break}A=(d-1-k+h|0)<=(l-u<<1|0)|0}else A=0;while(0);m_[r]=A,O=A;break e}while(0);return m_[r]=0,R=0,R|0}O=i}while(0);return R=O<<24>>24!=0,R|0}function Ab(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0;if(r=e+32|0,(m_[r]|0)>=0)return i=m_[r]|0,f=i<<24>>24!=0,f|0;m_[r]=0,a=e+8|0;do if((E_[a>>2]|0)<0){if(tb(e),(E_[a>>2]|0)>=0)break;t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|0)>=((gb(e)|0)<<1|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((B*3|0|0)>=((gb(e)|0)<<1|0))return i=m_[r]|0,f=i<<24>>24!=0,f|0;for(e=(x|0)<(B|0)?B:x,x=e+1|0,B=H,H=0;;)if((H|0)!=3)if((H|0)!=2)if((H|0)!=1){if((H|0)!=0){V=B,u=7648;break}if(l=B+1|0,(l|0)>=(U|0)){Y=0;break}B=l,H=(E_[(E_[n>>2]|0)+(l<<2)>>2]|0)>(x|0)?1:H}else{if(l=B+1|0,(l|0)>=(U|0)){Y=1;break}B=l,H=(E_[(E_[n>>2]|0)+(l<<2)>>2]|0)>(x|0)?2:0}else{if(l=B+1|0,(l|0)>=(U|0)){Y=2;break}B=l,H=(E_[(E_[n>>2]|0)+(l<<2)>>2]|0)>(e|0)?H:3}else{if(l=B+1|0,(l|0)>=(U|0)){Y=3;break}if((E_[(E_[n>>2]|0)+(l<<2)>>2]|0)>(x|0)){u=7657;break}B=l,H=3}if((u|0)==7657)return i=m_[r]|0,f=i<<24>>24!=0,f|0;if((u|0)==7648)for(;;){if(u=0,B=V+1|0,!((B|0)<(U|0))){Y=H;break}V=B,u=7648}return m_[r]=(Y|0)>1|0,i=m_[r]|0,f=i<<24>>24!=0,f|0}function Ob(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0;i=e+8|0;do if((E_[i>>2]|0)<0){if(tb(e),(E_[i>>2]|0)>=0)break;tb(e)}while(0);if(f=e+40|0,a=E_[f>>2]|0,t=e+36|0,n=E_[t>>2]|0,(a-n|0)<20)return o=0,o|0;if((r-25|0)>>>0>50)return o=0,o|0;u=E_[i>>2]|0,(u|0)<0?(tb(e),l=E_[f>>2]|0,s=E_[t>>2]|0,b=E_[i>>2]|0):(l=a,s=n,b=u),u=(J_((l-s>>2)-1|0,r)|0)/100|0;do if((b|0)<0){if(tb(e),r=E_[f>>2]|0,n=E_[t>>2]|0,a=(r-n>>2|0)/4|0,(E_[i>>2]|0)>=0){k=r,c=n,d=a;break}tb(e),k=E_[f>>2]|0,c=E_[t>>2]|0,d=a}else k=l,c=s,d=(l-s>>2|0)/4|0;while(0);for(s=(k-c>>2)-u|0,c=(s|0)<(u|0)?s:u,s=(c|0)<(d|0)?c:d,d=nb(e)|0,c=(E_[i>>2]|0)/3|0,k=(c|0)<(d|0)?c:d,d=(k|0)>2?k:2,k=0;;){if((k|0)>=(s|0)){h=-1,_=7678;break}if(c=k+u|0,w=E_[t>>2]|0,(E_[w+(c<<2)>>2]|0)>(d|0)){v=c,_=7677;break}if(c=u-k-1|0,(E_[w+(c<<2)>>2]|0)>(d|0)){v=c,_=7677;break}k=k+1|0}(_|0)==7677&&((v|0)<0?(h=v,_=7678):(m=d,p=v,E=w));do if((_|0)==7678){e:do if((nb(e)|0)==0)for(w=d-1|0,v=0;;){if((v|0)>=(s|0)){S=h,g=w;break e}if(k=v+u|0,c=E_[t>>2]|0,(E_[c+(k<<2)>>2]|0)>(w|0)){S=k,g=w;break e}if(k=u-v-1|0,(E_[c+(k<<2)>>2]|0)>(w|0)){S=k,g=w;break}v=v+1|0}else S=h,g=d;while(0);if((S|0)<0)return o=0,o|0;m=g,p=S,E=E_[t>>2]|0;break}while(0);for(S=(E_[E+(p<<2)>>2]|0)/2|0,g=(m|0)<(S|0)?S:m,m=p,S=E;;){if(E=m+1|0,(E_[i>>2]|0)<0?(tb(e),y=E_[t>>2]|0):y=S,(E|0)>=((E_[f>>2]|0)-y>>2|0)){o=0,_=7694;break}if((E_[y+(E<<2)>>2]|0)<(g|0)){A=p;break}m=E,S=y}if((_|0)==7694)return o|0;for(;;){if(S=A-1|0,(A|0)<=0){o=0,_=7695;break}if((E_[y+(S<<2)>>2]|0)<(g|0)){o=1,_=7696;break}A=S}return(_|0)==7695?o|0:(_|0)==7696?o|0:0}function Rb(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0;r=e+8|0;do if((E_[r>>2]|0)<0){if(tb(e),(E_[r>>2]|0)>=0)break;tb(e)}while(0);for(i=e+40|0,f=E_[i>>2]|0,a=e+36|0,t=E_[a>>2]|0,n=((f-t>>2|0)/30|0)+1|0,o=n,u=0,l=0,s=f,f=t;;){if((E_[r>>2]|0)<0?(tb(e),b=E_[i>>2]|0,k=E_[a>>2]|0):(b=s,k=f),(o|0)>=((b-k>>2)-n|0)){c=l,d=b,h=k;break}t=E_[k+(o<<2)>>2]|0,_=(t|0)>(u|0),w=_?o:l,o=o+1|0,u=_?t:u,l=w,s=b,f=k}for(;;){if(k=c+1|0,(E_[r>>2]|0)<0?(tb(e),v=E_[i>>2]|0,m=E_[a>>2]|0):(v=d,m=h),(k|0)>=(v-m>>2|0)){p=7712;break}if((E_[m+(k<<2)>>2]|0)<(u|0)){p=7713;break}c=k,d=v,h=m}return(p|0)==7712?(E=c+l|0,S=(E|0)/2|0,S|0):(p|0)==7713?(E=c+l|0,S=(E|0)/2|0,S|0):0}function Fb(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0;f=e+8|0,a=E_[f>>2]|0;do if((a|0)<0){if(tb(e),t=E_[f>>2]|0,(t|0)>=0){n=t;break}tb(e),n=E_[f>>2]|0}else n=a;while(0);if(a=e+40|0,t=E_[a>>2]|0,o=e+36|0,u=E_[o>>2]|0,l=((t-u>>2|0)/30|0)+1|0,(n|0)<0?(tb(e),s=E_[a>>2]|0,b=E_[o>>2]|0):(s=t,b=u),(s-b>>2|0)<(l<<1|0))return k=0,k|0;do if((i|0)<2){if((nb(e)|0)<2){c=2;break}c=nb(e)|0}else c=i;while(0);i=E_[f>>2]|0,b=i+1|0,s=r+1|0,r=l,u=0,t=0,n=0,d=i;e:for(;;){if((d|0)<0&&tb(e),h=E_[a>>2]|0,_=E_[o>>2]|0,(r|0)>=((h-_>>2)-l|0)){w=r,v=n;break}i=E_[_+(r<<2)>>2]|0;do if((t|0)==0)m=(i|0)<(c|0),p=m?r:u,E=m&1,S=(m&1)+n|0;else{if((i|0)<=(c|0)){p=u,E=t,S=n;break}if((n|0)==(s|0)){g=7731;break e}p=u,E=0,S=n}while(0);r=r+1|0,u=p,t=E,n=S,d=E_[f>>2]|0}if((g|0)==7731&&(w=r-1|0,v=s),(E_[f>>2]|0)<0?(tb(e),y=E_[a>>2]|0,A=E_[o>>2]|0):(y=h,A=_),_=(((w|0)>=(y-A>>2|0))<<31>>31)+w|0,(v|0)!=(s|0))return k=0,k|0;if((u|0)>(_|0))O=u,R=b;else for(s=u,v=b,b=u;;){if(u=E_[A+(b<<2)>>2]|0,w=(u|0)<(v|0),y=w?b:s,h=w?u:v,u=b+1|0,(u|0)>(_|0)){O=y,R=h;break}s=y,v=h,b=u}for(b=_;;){if((b|0)<(O|0))break;if((E_[A+(b<<2)>>2]|0)==(R|0))break;b=b-1|0}return k=(b+O|0)/2|0,k|0}function Mb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0;i=e+8|0;do if((E_[i>>2]|0)<0){if(tb(e),(E_[i>>2]|0)>=0)break;tb(e)}while(0);if(f=e+40|0,a=e+36|0,(E_[f>>2]|0)==(E_[a>>2]|0))return t=0,t|0;do if((r|0)<1){if((nb(e)|0)<2){n=2;break}n=nb(e)|0}else n=r;while(0);if(r=E_[i>>2]|0,o=n-((((r|0)/40|0)+1|0)/2|0)|0,u=((r|0)/80|0)+n|0,(o|0)<1)return t=1,t|0;for(n=E_[a>>2]|0,l=(E_[n>>2]|0)<(o|0)|0,s=1,b=l,k=l,l=r,r=n;;){if((l|0)<0?(tb(e),c=E_[a>>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d-n|0,u)|0)+h|0,c=J_(E_[p+(d<<2)>>2]|0,b)|0,k=c-v|0,S=(k|0)>-1?k:-k|0;do if((S|0)<(s|0))g=a;else{if((c|0)>=(v|0)&&(d|0)<(n|0)|(d|0)>(l|0)){g=a;break}if((S|0)>(s|0)){o=0,E=7797;break e}if((S|0)!=(s|0)){g=a;break}if(k=a-1|0,(k|0)<0){o=0,E=7795;break e}g=k}while(0);a=g,d=d+1|0,_=m,w=p}return(E|0)==7790?(r|0)==0?(o=1,o|0):(E_[r>>2]=u,o=1,o|0):(E|0)==7795?o|0:(E|0)==7797?o|0:0}function Db(e,r){e|=0,r|=0;var i=0,f=0;return i=E_[e+4>>2]|0,(i|0)>(r|0)?-1:(E_[e+12>>2]|0)<(r|0)?-1:(f=r-i|0,i=E_[e+16>>2]|0,e=E_[i+(f<<3)>>2]|0,((e|0)>(E_[i+(f<<3)+4>>2]|0)?-1:e)|0)}function Cb(e,r){e|=0,r|=0;var i=0,f=0;return i=E_[e+4>>2]|0,(i|0)>(r|0)?-1:(E_[e+12>>2]|0)<(r|0)?-1:(f=r-i|0,i=E_[e+16>>2]|0,e=E_[i+(f<<3)+4>>2]|0,((E_[i+(f<<3)>>2]|0)>(e|0)?-1:e)|0)}function Tb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;if(i=O_,O_=O_+24|0,f=i|0,a=i+8|0,t=e|0,n=E_[e+4>>2]|0,(n|0)==(r|0))return void(O_=i);o=e+16|0,u=E_[o>>2]|0;do if((n|0)>(r|0))E_[f>>2]=u,E_[a>>2]=1,E_[a+4>>2]=0,Pb(i+16|0,o,f,n-r|0,a);else{if(l=u+(r-n<<3>>3<<3)|0,s=e+20|0,b=(E_[s>>2]|0)-l|0,k=b>>3,c=u,d=l,On(c|0,d|0,b|0)|0,b=u+(k<<3)|0,k=E_[s>>2]|0,(b|0)==(k|0))break;E_[s>>2]=k+(~((k-8+(-b|0)|0)>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=E_[_+4>>2]|0,E_[c>>2]=E_[_>>2],E_[c+4>>2]=A,F=E_[d>>2]|0),A=F+8|0,E_[d>>2]=A,c=p-1|0,(c|0)==0){M=E,N=A;break}p=c,m=A}else M=f,N=r;if((M|0)==0)return b=s,k=e|0,E_[k>>2]=b,void(O_=t);if(m=N-(o+(i+f<<3))|0,p=m>>3,E=o+(p+i<<3)|0,E>>>0<r>>>0){i=E,E=N;do(E|0)==0?D=0:(o=i,F=E,_=E_[o+4>>2]|0,E_[F>>2]=E_[o>>2],E_[F+4>>2]=_,D=E_[d>>2]|0),i=i+8|0,E=D+8|0,E_[d>>2]=E;while(i>>>0<r>>>0)}r=N+(-p<<3)|0,p=s,On(r|0,p|0,m|0)|0;do if(s>>>0>a>>>0)C=a;else{if((E_[d>>2]|0)>>>0<=a>>>0){C=a;break}C=a+(f<<3)|0}while(0);for(f=C,C=M,M=s;;){if(a=M,d=E_[f+4>>2]|0,E_[a>>2]=E_[f>>2],E_[a+4>>2]=d,d=C-1|0,(d|0)==0){b=s;break}C=d,M=M+8|0}k=e|0,E_[k>>2]=b,O_=t}function Lb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;i=r+4|0,f=E_[i>>2]|0,a=e|0,t=e+4|0,(f|0)<(E_[t>>2]|0)&&Tb(e,f),f=r+12|0,n=E_[f>>2]|0,o=e+12|0;do if((E_[o>>2]|0)<(n|0)){if(Ko(a,n),u=e+16|0,l=(E_[o>>2]|0)+1-(E_[t>>2]|0)|0,s=e+20|0,b=E_[s>>2]|0,k=E_[u>>2]|0,c=b-k>>3,c>>>0<l>>>0){Bb(u,l-c|0);break}if(c>>>0<=l>>>0)break;if(c=k+(l<<3)|0,(c|0)==(b|0))break;E_[s>>2]=b+(~((b-8+(-c|0)|0)>>>3)<<3)}while(0);if(o=E_[i>>2]|0,!((o|0)>(E_[f>>2]|0)))for(n=e+16|0,c=r+16|0,r=e|0,b=e+8|0,e=o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|0,E_[f>>2]=E_[r>>2],E_[f+4>>2]=a,a=E_[e+12>>2]|0,t=r+4|0,n=e+4|0,(a|0)<(E_[n>>2]|0))return o=2147483647,O_=i,o|0;u=e+16|0,e=a,a=2147483647;e:for(;;){l=hu(r,e)|0;do if((l|0)<(a|0)){if(s=hk((E_[u>>2]|0)+(e-(E_[n>>2]|0)<<3)|0,f)|0,(s|0)>=(a|0)){b=a;break}k=cu(s,l)|0,b=(k|0)<(a|0)?k:a}else{if((e|0)<(E_[t>>2]|0)){o=a,c=7900;break e}b=a}while(0);if(l=e-1|0,(l|0)<(E_[n>>2]|0)){o=b,c=7902;break}e=l,a=b}return(c|0)==7900?(O_=i,o|0):(c|0)==7902?(O_=i,o|0):0}function Bb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;if(i=e+8|0,f=e+4|0,a=E_[f>>2]|0,t=E_[i>>2]|0,n=a,t-n>>3>>>0>=r>>>0){o=r,u=a;do(u|0)==0?l=0:(E_[u>>2]=1,E_[u+4>>2]=0,l=E_[f>>2]|0),u=l+8|0,E_[f>>2]=u,o=o-1|0;while((o|0)!=0)}else{o=e|0,e=E_[o>>2]|0,u=n-e>>3,n=u+r|0,n>>>0>536870911&&cf(0),l=t-e|0,l>>3>>>0>268435454?(s=536870911,b=7911):(e=l>>2,l=e>>>0<n>>>0?n:e,(l|0)==0?(k=0,c=0):(s=l,b=7911)),(b|0)==7911&&(k=kn(s<<3)|0,c=s),s=r,r=k+(u<<3)|0;do(r|0)==0?d=0:(E_[r>>2]=1,E_[r+4>>2]=0,d=r),r=d+8|0,s=s-1|0;while((s|0)!=0);s=k+(c<<3)|0,c=E_[o>>2]|0,d=(E_[f>>2]|0)-c|0,b=k+(u-(d>>3)<<3)|0,u=b,k=c,yn(u|0,k|0,d)|0,E_[o>>2]=b,E_[f>>2]=r,E_[i>>2]=s,(c|0)!=0&&hn(k)}}function Hb(e,r){e|=0,r|=0;var i=0,f=0,a=0;i=e|0,E_[i>>2]=r,E_[e+4>>2]=-1,E_[e+8>>2]=-1,f=e+60|0,a=r|0,r=e+12|0,An(r|0,0,48)|0,ab(f,a,0),ab(e+108|0,E_[i>>2]|0,1),ab(e+156|0,E_[i>>2]|0,2),ab(e+204|0,E_[i>>2]|0,3),ab(e+252|0,E_[i>>2]|0,4),ab(e+300|0,E_[i>>2]|0,5)}function Ub(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0,J=0,$=0,er=0,rr=0,ir=0,fr=0,ar=0,tr=0,nr=0,or=0,ur=0,lr=0,sr=0,br=0,kr=0,cr=0;if(r=O_,O_=O_+16|0,i=r|0,f=e+4|0,a=E_[f>>2]|0,(a|0)>=0)return t=a,O_=r,t|0;if(a=(ob(e+300|0)|0)/2|0,n=e|0,o=E_[n>>2]|0,u=E_[o+4>>2]|0,l=(E_[o+12>>2]|0)+1|0,s=l-u|0,(l|0)==(u|0))b=0,k=o;else{if(s>>>0>1073741823)return cf(0),0;for(o=kn(s<<2)|0,u=s,s=o;;){if((s|0)==0?c=0:(E_[s>>2]=0,c=s),l=u-1|0,(l|0)==0)break;u=l,s=c+4|0}b=o,k=E_[n>>2]|0}E_[f>>2]=0,o=E_[k+4>>2]|0;e:do if((o|0)>(E_[k+12>>2]|0))d=0;else for(c=e+12|0,s=e+16|0,u=e+20|0,l=i,h=o,_=0,w=0,v=0,m=0,p=k,E=k,S=k,g=0,y=o;;){A=b+(h-y<<2)|0,O=E_[p>>2]|0,R=E_[p+8>>2]|0;r:do if((O|0)>(R|0))F=0,M=0,N=p,D=E;else for(C=O,T=0,P=0,L=0,I=0,x=p,B=R,H=y,U=O;;){(m_[(E_[(E_[x+16>>2]|0)+((h-H|0)*12|0)>>2]|0)+(C-U)|0]|0)==0?(z=I,Y=T,V=7997):(Z=T+1|0,(C|0)<(B|0)?(j=C,q=L,W=P,K=Z):(z=C,Y=Z,V=7997));do if((V|0)==7997){if(V=0,(Y|0)<=(E_[A>>2]|0)){j=z,q=L,W=P,K=0;break}E_[A>>2]=Y,j=z,q=z,W=1-Y+z|0,K=0}while(0);if(Z=C+1|0,X=E_[S+8>>2]|0,(Z|0)>(X|0)){F=W,M=q,N=S,D=S;break r}C=Z,T=K,P=W,L=q,I=j,x=S,B=X,H=E_[S+4>>2]|0,U=E_[S>>2]|0}while(0);(m|0)==1?(G=v,Q=w,J=_,$=E_[A>>2]|0,V=8004):(m|0)==0?(O=E_[A>>2]|0,(O|0)>(a|0)?(G=h,Q=F,J=M,$=O,V=8004):(er=0,rr=v,ir=w,fr=_,ar=N,tr=D,nr=S,or=g)):(er=m,rr=v,ir=w,fr=_,ar=N,tr=D,nr=S,or=g);do if((V|0)==8004){if(V=0,($|0)>(a|0)){if(O=(F|0)<(Q|0)?F:Q,R=(M|0)>(J|0)?M:J,(h|0)<(E_[N+12>>2]|0)){er=1,rr=G,ir=O,fr=R,ar=N,tr=D,nr=S,or=g;break}ur=O,lr=R}else ur=Q,lr=J;for(R=((($|0)<=(a|0))<<31>>31)+h|0,O=lr-ur+1|0,U=O<<1,H=G;;){if((H|0)>(R|0)){sr=R,br=N;break}if(!(((E_[b+(H-(E_[N+4>>2]|0)<<2)>>2]|0)*3|0|0)<(U|0))){sr=R,br=N;break}H=H+1|0}for(;;){if((H|0)>(sr|0)){kr=br;break}if(!(((E_[b+(sr-(E_[D+4>>2]|0)<<2)>>2]|0)*3|0|0)<(U|0))){kr=D;break}sr=sr-1|0,br=D}if(U=sr-H|0,(U|0)<0){er=0,rr=H,ir=ur,fr=lr,ar=kr,tr=D,nr=S,or=g;break}if(((U<<1)+2|0)>(O*3|0|0)){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+1|0,O=o,R=0,F=0;e:for(;;){M=O,N=F,D=0;r:for(;;){for(C=M,T=D;;){if(P=C+1|0,(P|0)>=(p|0))break e;if(L=E_[S>>2]|0,I=E_[(E_[E>>2]|0)+((P-o|0)*12|0)>>2]|0,(m_[I+(_-L)|0]|0)==0)break;if(x=T+1|0,!((P|0)<(g|0))){B=N,H=x;break r}C=P,T=x}if((_|0)>(L|0)?(m_[I+(y-L)|0]|0)==0&&(U=8042):U=8042,(U|0)==8042){if(U=0,(_|0)>=(m|0)){B=N,H=T;break}if((m_[I+(A-L)|0]|0)==0){B=N,H=T;break}}if(C=T+1|0,x=N+1|0,!((P|0)<(g|0))){B=x,H=C;break}M=P,N=x,D=C}O=P,R=(H|0)>(R|0)?H:R,F=B}F=((R-N|0)*3|0|0)<(s|0)?0:R;do if((u|0)==0){if((F|0)>=(l|0)){z=3,Y=_,V=w,Z=n,j=v,q=m;break}if((F<<2|0)>=(b|0)){z=2,Y=_,V=w,Z=n,j=v,q=m;break}O=(F*3|0|0)<(s|0),z=O&1^1,Y=O?h:_,V=w,Z=n,j=v,q=m}else if((u|0)==3){if(O=(F*3|0|0)<(s|0),!(O|(_|0)==(n|0))){z=3,Y=h,V=w,Z=n,j=v,q=m;break}Zo(i,h,o,(O<<31>>31)+_|0,p),O=E_[k>>2]|0,(O|0)==(E_[c>>2]|0)?Kb(d,i):((O|0)==0?W=0:(g=O,E_[g>>2]=E_[e>>2],E_[g+4>>2]=E_[e+4>>2],E_[g+8>>2]=E_[e+8>>2],E_[g+12>>2]=E_[e+12>>2],W=E_[k>>2]|0),E_[k>>2]=W+16),g=(E_[f>>2]|0)+1|0,E_[f>>2]=g,O=E_[a>>2]|0,y=E_[O+8>>2]|0,z=0,Y=h,V=O,Z=y,j=g,q=y}else if((u|0)==1){if((F|0)>=(l|0)){z=3,Y=h,V=w,Z=n,j=v,q=m;break}if((F<<2|0)>=(b|0)){z=2,Y=h,V=w,Z=n,j=v,q=m;break}y=(F*3|0|0)<(s|0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>>2]|0,(e|0)>(E_[o+8>>2]|0))g=o;else for(t=f,l=a+4|0,y=e,e=-1,A=o;;){o=E_[A+4>>2]|0,O=E_[A+12>>2]|0;e:do if((o|0)>(O|0))R=e,F=A;else for(M=o,N=e,D=A,C=O,T=o;;){P=y-(E_[D>>2]|0)|0,L=(m_[(E_[(E_[D+16>>2]|0)+((M-T|0)*12|0)>>2]|0)+P|0]|0)!=0,(N|0)<0?(I=L?M:N,(I|0)>-1?(x=I,B=8097):H=I):(x=N,B=8097);do if((B|0)==8097){if(B=0,!((M|0)==(C|0)|L^1)){H=x;break}if(I=E_[n>>2]|0,E_[t>>2]=x,E_[l>>2]=M-(L&1^1),U=I+(P*12|0)+4|0,z=E_[U>>2]|0,(z|0)==(E_[I+(P*12|0)+8>>2]|0)){qb(I+(P*12|0)|0,a),H=-1;break}(z|0)==0?Y=0:(I=z,z=E_[f+4>>2]|0,E_[I>>2]=E_[f>>2],E_[I+4>>2]=z,Y=E_[U>>2]|0),E_[U>>2]=Y+8,H=-1}while(0);if(P=M+1|0,L=E_[u>>2]|0,U=E_[L+12>>2]|0,(P|0)>(U|0)){R=H,F=L;break e}M=P,N=H,D=L,C=U,T=E_[L+4>>2]|0}while(0);if(o=y+1|0,(o|0)>(E_[F+8>>2]|0)){g=F;break}y=o,e=R,A=F}return s=E_[n>>2]|0,b=g,k=b|0,c=E_[k>>2]|0,d=r-c|0,h=s+(d*12|0)+4|0,_=E_[h>>2]|0,w=s+(d*12|0)|0,v=E_[w>>2]|0,m=_,p=v,E=m-p|0,S=E>>3,O_=i,S|0}function Zb(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0,l=0;a=Vb(r,f)|0;e:do if((a|0)>0){for(t=E_[(E_[r+48>>2]|0)+((f-(E_[E_[r>>2]>>2]|0)|0)*12|0)>>2]|0,n=0;;){if((E_[t+(n<<3)>>2]|0)<=(i|0)&&(E_[t+(n<<3)+4>>2]|0)>=(i|0))break;if(o=n+1|0,!((o|0)<(a|0)))break e;n=o}return o=t+(n<<3)|0,u=e,l=E_[o+4>>2]|0,E_[u>>2]=E_[o>>2],void(E_[u+4>>2]=l)}while(0);E_[e>>2]=1,E_[e+4>>2]=0}function jb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0;i=e+204|0;do{if((Mb(i,-1)|0)==1){do{if((Ub(e)|0)==1){if(f=e+12|0,a=E_[f>>2]|0,t=E_[a+4>>2]|0,n=e|0,o=E_[n>>2]|0,u=E_[o+4>>2]|0,l=1-u+(E_[o+12>>2]|0)|0,(t|0)>(((l|0)/10|0)+u|0)){s=n;break}if(b=E_[a+12>>2]|0,(1-t+b<<2|0)>(l|0)){s=n;break}if((((E_[a+8>>2]|0)+1-(E_[a>>2]|0)|0)*5|0|0)<((E_[o+8>>2]|0)+1-(E_[o>>2]|0)<<2|0)){s=n;break}if(o=e+156|0,a=bb(o,2-u+b|0)|0,b=a-(bb(o,(E_[(E_[f>>2]|0)+12>>2]|0)-(E_[(E_[n>>2]|0)+4>>2]|0)|0)|0)|0,a=E_[n>>2]|0,(b|0)>=(((E_[a+8>>2]|0)+1-(E_[a>>2]|0)|0)/4|0|0)){s=n;break}if(b=E_[f>>2]|0,!(kb(o,(((E_[b+12>>2]|0)+(E_[b+4>>2]|0)|0)/2|0)+1-(E_[a+4>>2]|0)|0,2)|0)){s=n;break}return k=55,k|0}s=e|0}while(0);if(n=E_[s>>2]|0,((E_[n+12>>2]|0)+1-(E_[n+4>>2]|0)|0)<=((E_[n+8>>2]|0)+1-(E_[n>>2]|0)|0)){c=s;break}if(!(kb(e+156|0,1,2)|0)){c=s;break}if(cb(e+108|0,1)|0){c=s;break}if(n=E_[s>>2]|0,a=Xu(n|0,((E_[n+12>>2]|0)+(E_[n+4>>2]|0)|0)/2|0,((E_[n+8>>2]|0)+(E_[n>>2]|0)|0)/2|0,1)|0,(a|0)>(E_[E_[s>>2]>>2]|0)){c=s;break}return k=55,k|0}c=e|0}while(0);s=e+108|0,a=E_[c>>2]|0;do if((Mb(s,((E_[a+12>>2]|0)+1-(E_[a+4>>2]|0)|0)/4|0)|0)==1){if(n=E_[c>>2]|0,(Mb(i,((E_[n+12>>2]|0)+1-(E_[n+4>>2]|0)|0)/4|0)|0)!=1)break;n=E_[c>>2]|0;do if(((E_[n+12>>2]|0)+1-(E_[n+4>>2]|0)|0)>((E_[n+8>>2]|0)+1-(E_[n>>2]|0)<<1|0)){if(!(kb(e+156|0,1,2)|0))break;if(!(cb(s,1)|0))break;if(!(mb(e+60|0,25)|0))break;return k=49,k|0}while(0);do if((Ub(e)|0)==1)n=E_[c>>2]|0,d=E_[e+12>>2]|0,h=n,_=E_[n+12>>2]|0,w=8145;else{if((Ub(e)|0)!=2){v=E_[c>>2]|0;break}if(n=E_[e+12>>2]|0,b=E_[c>>2]|0,o=E_[b+12>>2]|0,(E_[n+28>>2]|0)<(o-1|0)){v=b;break}(((E_[n+8>>2]|0)+1-(E_[n>>2]|0)|0)*3|0|0)>((E_[n+24>>2]|0)+1-(E_[n+16>>2]|0)<<2|0)?(d=n,h=b,_=o,w=8145):v=b}while(0);do if((w|0)==8145){if(b=E_[d+4>>2]|0,o=E_[h+4>>2]|0,(((E_[d+12>>2]|0)+1-b|0)*3|0|0)>=(_+1-o|0)|(b|0)>(o+1|0)){v=h;break}if(o=e+60|0,(E_[e+68>>2]|0)<0&&tb(o),b=((((E_[e+100>>2]|0)-(E_[e+96>>2]|0)>>2)*40|0)-40|0)/100|0,n=(bb(e+300|0,b)|0)*3|0,f=E_[c>>2]|0,(n|0)>=((E_[f+8>>2]|0)+1-(E_[f>>2]|0)|0)){v=f;break}if(f=(bb(o,b)|0)*5|0,o=E_[c>>2]|0,(f|0)<=((E_[o+8>>2]|0)+1-(E_[o>>2]|0)|0)){v=o;break}if(o=(bb(e+156|0,b)|0)*5|0,b=E_[c>>2]|0,!((o|0)>((E_[b+8>>2]|0)+1-(E_[b>>2]|0)|0))){v=b;break}return k=84,k|0}while(0);do if((((E_[v+12>>2]|0)+1-(E_[v+4>>2]|0)|0)*3|0|0)>((E_[v+8>>2]|0)+1-(E_[v>>2]|0)<<2|0)){if((zb(e)|0)!=1)break;if(b=E_[e+24>>2]|0,o=E_[b+8>>2]|0,f=E_[b>>2]|0,(o+1-f|0)<=1)break;if(b=E_[c>>2]|0,n=E_[b>>2]|0,u=f-n|0,f=E_[b+8>>2]|0,b=f-o|0,o=1-n+f|0,(u<<1|0)>=(o|0))break;if((b<<1|0)>=(o|0))break;if(!(Gb(u,b,40,1)|0))break;if((E_[e+212>>2]|0)<0&&tb(i),b=(bb(i,((((E_[e+244>>2]|0)-(E_[e+240>>2]|0)>>2)*25|0)-25|0)/100|0)|0)<<2,u=E_[c>>2]|0,(b|0)<=(((E_[u+12>>2]|0)+1-(E_[u+4>>2]|0)|0)*3|0|0))break;if((E_[e+116>>2]|0)<0&&tb(s),u=(bb(s,((((E_[e+148>>2]|0)-(E_[e+144>>2]|0)>>2)*75|0)-75|0)/100|0)|0)<<2,b=E_[c>>2]|0,!((u|0)>(((E_[b+12>>2]|0)+1-(E_[b+4>>2]|0)|0)*3|0|0)))break;return k=108,k|0}while(0);b=E_[c>>2]|0,u=(E_[b+12>>2]|0)+1-(E_[b+4>>2]|0)|0,b=r+12|0,o=r+4|0;do if((u*5|0|0)>=((E_[b>>2]|0)+1-(E_[o>>2]|0)<<2|0)){if(f=e+300|0,(u|0)<=(ob(f)|0))break;if((E_[e+308>>2]|0)<0&&tb(f),n=(bb(f,((((E_[e+340>>2]|0)-(E_[e+336>>2]|0)>>2)*50|0)-50|0)/100|0)|0)*3|0,l=E_[c>>2]|0,(n|0)>=((E_[l+8>>2]|0)+1-(E_[l>>2]|0)|0))break;do if((Ub(e)|0)==1){if(l=E_[e+12>>2]|0,n=E_[c>>2]|0,t=E_[n+12>>2]|0,(E_[l+12>>2]|0)<(t-1|0))break;if(m=E_[n+4>>2]|0,(E_[l+4>>2]|0)<=((((t-m|0)*75|0|0)/100|0)+m|0))break;if(m=e+60|0,(E_[e+68>>2]|0)<0&&tb(m),t=bb(m,((((E_[e+100>>2]|0)-(E_[e+96>>2]|0)>>2)*50|0)-50|0)/100|0)|0,m=e+156|0,(E_[e+164>>2]|0)<0&&tb(m),!(Gb(t,bb(m,((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*50|0)-50|0)/100|0)|0,20,2)|0))break;return k=108,k|0}while(0);if((Ub(e)|0)!=2)break;if(m=E_[e+12>>2]|0,t=E_[c>>2]|0,l=E_[t+4>>2]|0,n=E_[t+12>>2]|0,t=n-l|0,(E_[m+12>>2]|0)>=(((t*25|0|0)/100|0)+l|0))break;if((E_[m+20>>2]|0)<=(((t*75|0|0)/100|0)+l|0))break;if((E_[m+28>>2]|0)<(n-1|0))break;return t=E_[m+8>>2]|0,p=E_[m+16>>2]|0,E=E_[m+24>>2]|0,(t|0)<=((E+p|0)/2|0|0)?(k=0,k|0):((t+1-(E_[m>>2]|0)|0)*3|0|0)>(1-p+E<<1|0)?(E=(1-l+n|0)<((ob(f)|0)*3|0|0),(E?73:108)|0):(k=108,k|0)}while(0);(Ub(e)|0)==2?w=8185:(Ub(e)|0)==3&&(w=8185);do if((w|0)==8185){if(u=e+12|0,E=E_[u>>2]|0,n=E_[c>>2]|0,(E_[E+4>>2]|0)>((E_[n+4>>2]|0)+1|0))break;if(!(iu(E+16|0,n|0)|0))break;if(n=E_[u>>2]|0,(((E_[n+8>>2]|0)+1-(E_[n>>2]|0)|0)*3|0|0)<=((E_[n+24>>2]|0)+1-(E_[n+16>>2]|0)<<2|0))break;if((Ub(e)|0)==2)return k=70,k|0;if(n=E_[u>>2]|0,(E_[n+44>>2]|0)<((E_[(E_[c>>2]|0)+12>>2]|0)-1|0))break;if(!((((E_[n+8>>2]|0)+1-(E_[n>>2]|0)|0)*3|0|0)>((E_[n+40>>2]|0)+1-(E_[n+32>>2]|0)<<2|0)))break;return k=70,k|0}while(0);n=E_[c>>2]|0,u=(E_[n+12>>2]|0)+1-(E_[n+4>>2]|0)|0,n=e+300|0;do if((u|0)>((ob(n)|0)*3|0|0)){E=e+156|0,l=e+60|0;do if(Ab(E)|0){if(!(vb(l)|0))break;return p=Eb(l)|0,k=p?123:40,k|0}while(0);do if(Ab(l)|0){if(!(vb(E)|0))break;return f=Eb(E)|0,k=f?125:41,k|0}while(0);if(l=E_[c>>2]|0,f=(E_[l+8>>2]|0)+1-(E_[l>>2]|0)|0,(f|0)<=((ob(n)|0)<<1|0))break;if(!(hb(E)|0))break;return k=41,k|0}while(0);if(n=E_[c>>2]|0,u=(E_[n+12>>2]|0)+1-(E_[n+4>>2]|0)|0,(u|0)<=((E_[n+8>>2]|0)+1-(E_[n>>2]|0)<<1|0))break;if((u*5|0|0)<((E_[b>>2]|0)+1-(E_[o>>2]|0)<<2|0))break;if(u=ob(e+60|0)|0,n=(ob(e+156|0)|0)+u|0,u=E_[c>>2]|0,!((n|0)<((E_[u+8>>2]|0)+1-(E_[u>>2]|0)|0)))break;return k=124,k|0}while(0);return k=0,k|0}function qb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;i=e+4|0,f=e|0,a=E_[f>>2]|0,t=a,n=(E_[i>>2]|0)-t|0,o=n>>3,u=o+1|0,u>>>0>536870911&&cf(0),l=e+8|0,e=(E_[l>>2]|0)-t|0,e>>3>>>0>268435454?(s=536870911,b=8224):(t=e>>2,e=t>>>0<u>>>0?u:t,(e|0)==0?(k=0,c=0):(s=e,b=8224)),(b|0)==8224&&(k=kn(s<<3)|0,c=s),s=k+(o<<3)|0,o=k+(c<<3)|0,(s|0)!=0&&(c=r,r=s,s=E_[c+4>>2]|0,E_[r>>2]=E_[c>>2],E_[r+4>>2]=s),s=k+(u<<3)|0,u=k,r=a,yn(u|0,r|0,n)|0,E_[f>>2]=k,E_[i>>2]=s,E_[l>>2]=o,(a|0)!=0&&hn(r)}function Wb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0;if(i=e+8|0,f=e+4|0,a=E_[f>>2]|0,t=E_[i>>2]|0,n=a,((t-n|0)/12|0)>>>0>=r>>>0){o=r,u=a;do(u|0)==0?l=0:(E_[u>>2]=0,E_[u+4>>2]=0,E_[u+8>>2]=0,l=E_[f>>2]|0),u=l+12|0,E_[f>>2]=u,o=o-1|0;while((o|0)!=0)}else{o=e|0,e=E_[o>>2]|0,u=(n-e|0)/12|0,n=u+r|0,n>>>0>357913941&&cf(0),l=(t-e|0)/12|0,l>>>0>178956969?(s=357913941,b=8240):(e=l<<1,l=e>>>0<n>>>0?n:e,(l|0)==0?(k=0,c=0):(s=l,b=8240)),(b|0)==8240&&(k=kn(s*12|0)|0,c=s),s=k+(u*12|0)|0,u=r,r=s;do(r|0)==0?d=0:(E_[r>>2]=0,E_[r+4>>2]=0,E_[r+8>>2]=0,d=r),r=d+12|0,u=u-1|0;while((u|0)!=0);u=k+(c*12|0)|0,c=E_[o>>2]|0,k=E_[f>>2]|0;do if((k|0)==(c|0))E_[o>>2]=s,E_[f>>2]=r,E_[i>>2]=u,h=c;else{d=k,b=s;do b=b-12|0,d=d-12|0,(b|0)!=0&&Ou(b,d);while((d|0)!=(c|0));if(d=E_[o>>2]|0,l=E_[f>>2]|0,E_[o>>2]=b,E_[f>>2]=r,E_[i>>2]=u,(d|0)==(l|0)){h=d;break}for(_=l;;){if(l=_-12|0,e=E_[l>>2]|0,n=e,(e|0)!=0&&(t=_-12+4|0,a=E_[t>>2]|0,(e|0)!=(a|0)&&(E_[t>>2]=a+(~((a-8+(-n|0)|0)>>>3)<<3)),hn(e)),(d|0)==(l|0)){h=d;break}_=l}}while(0);(h|0)!=0&&hn(h)}}function Kb(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;i=e+4|0,f=e|0,a=E_[f>>2]|0,t=a,n=(E_[i>>2]|0)-t|0,o=n>>4,u=o+1|0,u>>>0>268435455&&cf(0),l=e+8|0,e=(E_[l>>2]|0)-t|0,e>>4>>>0>134217726?(s=268435455,b=8275):(t=e>>3,e=t>>>0<u>>>0?u:t,(e|0)==0?(k=0,c=0):(s=e,b=8275)),(b|0)==8275&&(k=kn(s<<4)|0,c=s),s=k+(o<<4)|0,o=k+(c<<4)|0,(s|0)!=0&&(c=s,s=r,E_[c>>2]=E_[s>>2],E_[c+4>>2]=E_[s+4>>2],E_[c+8>>2]=E_[s+8>>2],E_[c+12>>2]=E_[s+12>>2]),s=k+(u<<4)|0,u=k,c=a,yn(u|0,c|0,n)|0,E_[f>>2]=k,E_[i>>2]=s,E_[l>>2]=o,(a|0)!=0&&hn(c)}function Xb(e){e|=0;var r=0;Hw(E_[T_>>2]|0,2552,(r=O_,O_=O_+8|0,E_[r>>2]=e,r|0))|0,O_=r,dw(3)}function Gb(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0;return a=e-r|0,t=(a|0)>-1?a:-a|0,(i|0)<1|(t|0)>(f|0)?(f=(e|0)>-1?e:-e|0,e=(r|0)>-1?r:-r|0,n=(t*100|0|0)<=(J_((f|0)<(e|0)?e:f,i)|0),n|0):(n=1,n|0)}function Qb(e,r){e|=0,r|=0;var i=0,f=0;return i=E_[e>>2]|0,(i|0)==0?(f=(r|0)==4,f|0):(f=(i&r|0)!=0,f|0)}function Jb(e,r){e|=0,r|=0;var i=0;return i=E_[e>>2]|0,((i|0)==0?(r|0)==4:(i|0)==(r|0))|0}function $b(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0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if(z){W=F,K=S,X=q,G=j,Q=t,J=t,$=Z,er=Y;break e}rr=E_[g>>2]|0,ir=(J_(E_[5232+(V+U<<2)>>2]|0,k)|0)+(((E_[g+8>>2]|0)+rr|0)/2|0)|0;
i:do if((t|0)==(ir|0))fr=H,ar=8312;else for(tr=(t|0)>(ir|0)?1:-1,nr=ir;;){if((nr|0)==(t|0)){fr=H,ar=8312;break i}if((m_[(E_[(E_[g+16>>2]|0)+((H-(E_[g+4>>2]|0)|0)*12|0)>>2]|0)+(nr-rr)|0]|0)==0){or=q,ur=j,lr=Z,sr=Y,br=0;break}nr=nr+tr|0}while(0);i:do if((ar|0)==8312){for(;;){if(ar=0,kr=fr+1|0,(kr|0)>=(y|0)){or=q,ur=j,lr=Z,sr=Y,br=0;break i}if((m_[(E_[(E_[O>>2]|0)+((kr-M|0)*12|0)>>2]|0)+(ir-(E_[R>>2]|0))|0]|0)==0){cr=kr;break}fr=kr,ar=8312}for(;;){if(dr=cr+1|0,(dr|0)>(y|0)){or=kr,ur=j,lr=ir,sr=Y,br=0;break i}if((m_[(E_[(E_[O>>2]|0)+((dr-M|0)*12|0)>>2]|0)+(ir-(E_[R>>2]|0))|0]|0)!=0)break;cr=dr}rr=(dr|0)>(((A*70|0|0)/100|0)+M|0),or=kr,ur=rr?cr:j,lr=ir,sr=rr?ir:Y,br=rr}while(0);if(ir=V+1|0,!((ir|0)<3)){N=F,D=S,C=or,T=ur,P=t,L=t,I=lr,x=sr,B=br;break}z=br,Y=sr,V=ir,Z=lr,j=ur,q=or}}while(0);if(t=u+1|0,(t|0)>2|B){ar=8320;break}u=t,c=x,d=I,h=L,_=P,w=T,v=C,m=D,p=N,E=E_[g>>2]|0,b=E_[g+8>>2]|0,s=E_[g+4>>2]|0}do if((ar|0)==8320){if(B){W=N,K=D,X=C,G=T,Q=P,J=L,$=I,er=x;break}return o=0,O_=i,o|0}while(0);x=il(g|0,G,er)|0,g=el(E_[a>>2]|0,W,Q)|0,I=x&g,L=E_[a>>2]|0,P=E_[L+4>>2]|0,T=E_[L>>2]|0,C=(m_[(E_[(E_[L+16>>2]|0)+(((((E_[L+12>>2]|0)+P|0)/2|0)-P|0)*12|0)>>2]|0)+((((E_[L+8>>2]|0)+T|0)/2|0)-T)|0]|0)!=0?42:0,T=$u(L|0,X,$)|0,L=E_[a>>2]|0;do{if(T){if($u(L,K,J)|0){if(I)return o=C,O_=i,o|0;if(x|g)break;if(P=E_[a>>2]|0,((E_[P+12>>2]|0)+1-(E_[P+4>>2]|0)|0)>(((E_[P+8>>2]|0)+1-(E_[P>>2]|0)|0)*3|0|0))break;if(P=Mb(e+60|0,-1)|0,D=e+156|0,N=Mb(D,-1)|0,(P-2|0)>>>0>=2)break;if((N|0)==2)return o=51,O_=i,o|0;if((N|0)!=1)break;if(N=Fb(D,0,-1)|0,(E_[e+164>>2]|0)<0&&tb(D),!((N|0)<(((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*80|0)-80|0)/100|0|0)))break;return o=51,O_=i,o|0}if(!(rl(E_[a>>2]|0,K,J)|0))break;if(I)return o=C,O_=i,o|0;N=bb(e+156|0,W+1-(E_[(E_[a>>2]|0)+4>>2]|0)|0)|0,D=E_[a>>2]|0;do if((N|0)>=(Q-(E_[D>>2]|0)|0)){if(P=e+60|0,B=bb(P,X+1-(E_[D+4>>2]|0)|0)|0,s=E_[a>>2]|0,(B|0)<($-(E_[s>>2]|0)|0))hr=s;else{if(B=bb(P,G-1-(E_[s+4>>2]|0)|0)|0,s=E_[a>>2]|0,!((B|0)<(er-(E_[s>>2]|0)|0)))break;hr=s}tl(hr|0,f)|0?(s=E_[a>>2]|0,B=E_[s+4>>2]|0,((E_[f>>2]|0)*5|0|0)<((E_[s+12>>2]|0)+1-B<<2|0)?(_r=0,wr=B):(vr=B,ar=8339)):(vr=E_[(E_[a>>2]|0)+4>>2]|0,ar=8339),(ar|0)==8339&&(_r=1,wr=vr),B=(bb(P,X-wr|0)|0)<<1,P=((B|0)<($-(E_[E_[a>>2]>>2]|0)|0))+_r|0;do if(hb(l)|0){if(vb(l)|0){mr=P;break}vb(n)|0?ar=8343:mr=P}else ar=8343;while(0);if((ar|0)==8343&&(mr=P+1|0),!((mr|0)>1))break;return o=53,O_=i,o|0}while(0);do if(!(Qb(r,4)|0)){if(Qb(r,2)|0)break;return o=115,O_=i,o|0}while(0);return D=E_[a>>2]|0,N=E_[D+4>>2]|0,(K|0)<=(((((E_[D+12>>2]|0)-N|0)*55|0|0)/100|0)+N|0)?(o=115,O_=i,o|0):(N=Qu(D|0,K-1|0,J,1)|0,D=E_[a>>2]|0,(N|0)>=(E_[D+8>>2]|0)?(o=115,O_=i,o|0):(N=E_[D+4>>2]|0,o=(K|0)>(((((E_[D+12>>2]|0)-N|0)*63|0|0)/100|0)+N|0)?199:231,O_=i,o|0))}if(!(rl(L,X,$)|0))break;if(!(rl(E_[a>>2]|0,K,J)|0)){if(!($u(E_[a>>2]|0,K,J)|0))break;do if(!I){if(N=e+60|0,(E_[e+68>>2]|0)<0&&tb(N),D=((bb(N,((((E_[e+100>>2]|0)-(E_[e+96>>2]|0)>>2)*50|0)-50|0)/100|0)|0)<<1)+2|0,N=E_[a>>2]|0,(D|0)<((E_[N+8>>2]|0)+1-(E_[N>>2]|0)|0))break;if(hb(l)|0)return o=50,O_=i,o|0;if(!(vb(l)|0))break;if(vb(n)|0)break;return o=50,O_=i,o|0}while(0);if(N=E_[a>>2]|0,D=(E_[N+12>>2]|0)+1-(E_[N+4>>2]|0)|0,(D|0)>((ob(e+300|0)|0)<<1|0))break;if((E_[e+212>>2]|0)<0&&tb(n),D=bb(n,((((E_[e+244>>2]|0)-(E_[e+240>>2]|0)>>2)*75|0)-75|0)/100|0)|0,N=E_[a>>2]|0,(D|0)>(((E_[N+12>>2]|0)+1-(E_[N+4>>2]|0)|0)/10|0|0))break;return o=122,O_=i,o|0}if(I)return o=C,O_=i,o|0;if(N=E_[a>>2]|0,(Mb(n,((E_[N+12>>2]|0)+1-(E_[N+4>>2]|0)|0)/5|0)|0)!=1)break;N=e+60|0,D=(X+G|0)/2|0,B=(bb(N,D-(E_[(E_[a>>2]|0)+4>>2]|0)|0)|0)<<3,s=E_[a>>2]|0,b=E_[s>>2]|0;do if((B|0)>=((E_[s+8>>2]|0)+1-b|0)){if(!(el(s|0,(W+K|0)/2|0,b)|0))break;if(E=E_[a>>2]|0,el(E|0,D,E_[E>>2]|0)|0)break;return o=102,O_=i,o|0}while(0);D=e+156|0,b=E_[a>>2]|0;do if((Mb(D,((E_[b+8>>2]|0)+1-(E_[b>>2]|0)|0)/8|0)|0)<3){if(!(il(E_[a>>2]|0,G,er)|0))break;do if(!(Qb(r,4)|0)){if(Qb(r,2)|0)break;return o=70,O_=i,o|0}while(0);return(E_[e+68>>2]|0)<0&&tb(N),P=(bb(N,((((E_[e+100>>2]|0)-(E_[e+96>>2]|0)>>2)*95|0)-95|0)/100|0)|0)<<1,(E_[e+164>>2]|0)<0&&tb(D),(P|0)<=(bb(D,((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*95|0)-95|0)/100|0)|0)?(o=70,O_=i,o|0):(P=E_[a>>2]|0,s=E_[P+4>>2]|0,o=(K|0)>(((((E_[P+12>>2]|0)-s|0)*63|0|0)/100|0)+s|0)?199:231,O_=i,o|0)}while(0);if(!((W|0)<(K|0)&(X|0)<(G|0)))break;return o=69,O_=i,o|0}while(0);return o=0,O_=i,o|0}function ek(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0;if(i=O_,O_=O_+8|0,f=i|0,a=e+108|0,t=e|0,n=E_[t>>2]|0,(Mb(a,((E_[n+12>>2]|0)+1-(E_[n+4>>2]|0)|0)/4|0)|0)!=1)return o=0,O_=i,o|0;if(n=e+204|0,u=E_[t>>2]|0,(Mb(n,((E_[u+12>>2]|0)+1-(E_[u+4>>2]|0)|0)/4|0)|0)!=1)return o=0,O_=i,o|0;u=E_[t>>2]|0,l=(E_[u+12>>2]|0)+1-(E_[u+4>>2]|0)|0,s=(E_[u+8>>2]|0)+1-(E_[u>>2]|0)|0,u=((((s|0)<(l|0)?s:l)|0)/30|0)+1|0,l=e+60|0,s=e+68|0,(E_[s>>2]|0)<0&&tb(l),b=e+100|0,k=e+96|0,c=(bb(l,((((E_[b>>2]|0)-(E_[k>>2]|0)>>2)*50|0)-50|0)/100|0)|0)+u<<1,d=E_[t>>2]|0,h=E_[d+8>>2]|0,_=E_[d>>2]|0,w=h-_|0,v=(c|0)<(h+1-_|0)?w*75|0:w*25|0,w=((v|0)/100|0)+_|0,_=Gu(d|0,((E_[d+12>>2]|0)+(E_[d+4>>2]|0)|0)/2|0,w,1)|0,d=E_[t>>2]|0,v=E_[d+4>>2]|0;do if((_|0)>(v|0)){if((_|0)>=(((((E_[d+12>>2]|0)-v|0)*25|0|0)/100|0)+v|0))break;if(!(el(d|0,_,w)|0))break;m=E_[t>>2]|0,p=8416}else m=d,p=8416;while(0);do if((p|0)==8416){if(!(nl(m|0,f)|0))break;d=E_[t>>2]|0;do if((E_[f>>2]|0)>(((E_[d+12>>2]|0)+1-(E_[d+4>>2]|0)|0)/2|0|0)){if(_=e+156|0,(E_[e+164>>2]|0)<0&&tb(_),!(kb(_,((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*80|0)-80|0)/100|0,1)|0))break;if(cb(_,1)|0)break;return o=74,O_=i,o|0}while(0);if(d=E_[t>>2]|0,(((E_[d+12>>2]|0)+1-(E_[d+4>>2]|0)|0)/2|0|0)>=(-(E_[f>>2]|0)|0))break;if((E_[s>>2]|0)<0&&tb(l),d=(bb(l,((((E_[b>>2]|0)-(E_[k>>2]|0)>>2)*80|0)-80|0)/100|0)|0)*5|0,_=E_[t>>2]|0,v=E_[_+8>>2]|0,h=E_[_>>2]|0,(d|0)>=(v+1-h<<1|0))return o=118,O_=i,o|0;if(!((w|0)>((h+v|0)/2|0|0)))break;return o=76,O_=i,o|0}while(0);w=E_[t>>2]|0,f=E_[w+12>>2]|0,m=E_[w+4>>2]|0,w=((f+1-m|0)/30|0)+1|0,v=w+m|0,m=f-w|0;do if((zb(e)|0)==1){if(f=E_[e+24>>2]|0,h=E_[f+8>>2]|0,d=E_[f>>2]|0,f=h+1-d|0,(f|0)<=1)break;if(_=E_[t>>2]|0,c=E_[_+8>>2]|0,E=E_[_>>2]|0,(f<<1|0)>=(c+1-E|0))break;if(f=((d+h|0)/2|0)-((E+c|0)/2|0)|0,(((f|0)>-1?f:-f|0)|0)>(u|0))break;if(f=h-c+(d-E)|0,(((f|0)>-1?f:-f|0)|0)>(u<<1|0))break;do if((Ub(e)|0)==1){if(f=E_[e+12>>2]|0,E=E_[f+12>>2]|0,d=E_[f+4>>2]|0,f=E_[t>>2]|0,c=E_[f+12>>2]|0,h=E_[f+4>>2]|0,_=c+1-h|0,(E+1-d<<2|0)>(_|0))break;if((d|0)<=(v|0))return o=84,O_=i,o|0;if((E|0)<((((c-h|0)*15|0|0)/100|0)+h|0))return o=84,O_=i,o|0;if(S=((d+E|0)/2|0)-((h+c|0)/2|0)|0,(((S|0)>-1?S:-S|0)|0)>=2)break;if(!(Gb(_,(E_[f+8>>2]|0)+1-(E_[f>>2]|0)|0,50,1)|0))break;return o=43,O_=i,o|0}while(0);if((Ub(e)|0)!=2)break;if(f=E_[e+12>>2]|0,_=E_[f+4>>2]|0,(_|0)>(v|0))break;if(S=E_[t>>2]|0,c=(E_[S+12>>2]|0)+1-(E_[S+4>>2]|0)|0,(1-_+(E_[f+12>>2]|0)<<2|0)>(c|0))break;if(_=E_[f+28>>2]|0,(_|0)<(m|0))break;if((_+1-(E_[f+20>>2]|0)<<2|0)>(c|0))break;if(!((((E_[f+8>>2]|0)+1-(E_[f>>2]|0)|0)*3|0|0)>((E_[f+24>>2]|0)+1-(E_[f+16>>2]|0)<<2|0)))break;return o=84,O_=i,o|0}while(0);do if((zb(e)|0)==1){if(f=e+24|0,c=E_[f>>2]|0,_=E_[c+8>>2]|0,S=_+1-(E_[c>>2]|0)|0,(S|0)<=1)break;if(c=E_[t>>2]|0,h=E_[c+8>>2]|0,E=E_[c>>2]|0,(S<<1|0)>(h+1-E|0))break;do if((_|0)<=((E+h|0)/2|0|0)){(Ub(e)|0)==2?p=8450:(Ub(e)|0)==3&&(p=8450);do if((p|0)==8450){if(S=e+12|0,c=E_[S>>2]|0,(E_[c+4>>2]|0)>(v|0))break;if(d=c+16|0,g=(E_[c+24>>2]|0)+1-(E_[d>>2]|0)|0,((E_[c+8>>2]|0)+2-(E_[c>>2]|0)|0)<(g|0))break;if(c=E_[f>>2]|0,(g<<1|0)<(((E_[c+8>>2]|0)+1-(E_[c>>2]|0)|0)*3|0|0))break;if(!(nu(c,d)|0))break;do if((Ub(e)|0)==3){if(d=E_[S>>2]|0,!(Gb((E_[d+8>>2]|0)+1-(E_[d>>2]|0)|0,(E_[d+40>>2]|0)+1-(E_[d+32>>2]|0)|0,10,2)|0))break;if(d=E_[S>>2]|0,c=E_[d+16>>2]|0,(((E_[d+40>>2]|0)+1-(E_[d+32>>2]|0)|0)*10|0|0)<(((E_[d+24>>2]|0)+1-c|0)*9|0|0))break;if((E_[d>>2]|0)>(c+1|0))break;return o=69,O_=i,o|0}while(0);if(c=(Ub(e)|0)==2,d=E_[S>>2]|0,!c&&((E_[d+8>>2]|0)+1-(E_[d>>2]|0)|0)<=((E_[d+40>>2]|0)+1-(E_[d+32>>2]|0)|0))break;if(iu(d+16|0,E_[t>>2]|0)|0)return o=70,O_=i,o|0;if(d=E_[S>>2]|0,(((E_[d+24>>2]|0)+1-(E_[d+16>>2]|0)|0)*3|0|0)<=((E_[d+8>>2]|0)+1-(E_[d>>2]|0)<<1|0))break;if(d=(bb(l,w)|0)*10|0,c=E_[t>>2]|0,(d|0)>=((E_[c+8>>2]|0)+1-(E_[c>>2]|0)|0))break;if(d=E_[S>>2]|0,g=E_[c+4>>2]|0,y=(E_[c+12>>2]|0)-g|0,(E_[d+20>>2]|0)<=(((y*30|0|0)/100|0)+g|0))break;if(!((E_[d+28>>2]|0)<(((y*60|0|0)/100|0)+g|0)))break;return o=70,O_=i,o|0}while(0);do if((Ub(e)|0)==2){if(g=E_[e+12>>2]|0,(E_[g+28>>2]|0)<(m|0))break;if(y=E_[t>>2]|0,((E_[y+12>>2]|0)+1-(E_[y+4>>2]|0)|0)<=((E_[y+8>>2]|0)+1-(E_[y>>2]|0)|0))break;if(y=E_[g+8>>2]|0,d=E_[g>>2]|0,((E_[g+24>>2]|0)+1-(E_[g+16>>2]|0)|0)<=(y+1-d|0))break;if(g=E_[f>>2]|0,c=(((E_[g+8>>2]|0)+(E_[g>>2]|0)|0)/2|0)-((d+y|0)/2|0)|0,(((c|0)>-1?c:-c|0)|0)>=2)break;if(c=e+156|0,y=Fb(c,0,-1)|0,(E_[e+164>>2]|0)<0&&tb(c),!((y|0)>(((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*70|0)-70|0)/100|0|0)))break;return o=76,O_=i,o|0}while(0);if((Ub(e)|0)!=1)break;if(y=e+12|0,c=E_[y>>2]|0,d=E_[t>>2]|0,!(Gb((E_[c+8>>2]|0)+1-(E_[c>>2]|0)|0,(E_[d+8>>2]|0)+1-(E_[d>>2]|0)|0,10,1)|0))break;if(d=E_[t>>2]|0,c=E_[d>>2]|0,g=(E_[d+8>>2]|0)-c|0,(E_[E_[f>>2]>>2]|0)>(((g*30|0|0)/100|0)+c|0))break;A=E_[y>>2]|0;do{if(!((E_[A+12>>2]|0)<(m|0))){if(el(d|0,((E_[d+12>>2]|0)+(E_[d+4>>2]|0)|0)/2|0,((g*75|0|0)/100|0)+c|0)|0)return o=76,O_=i,o|0;O=E_[y>>2]|0;break}O=A}while(0);if((E_[O+4>>2]|0)>(v|0))break;if(y=e+300|0,c=e+308|0,(E_[c>>2]|0)<0&&tb(y),g=e+340|0,d=e+336|0,A=(bb(y,((((E_[g>>2]|0)-(E_[d>>2]|0)>>2)*50|0)-50|0)/100|0)|0)<<1,R=E_[t>>2]|0,(A|0)<((E_[R+8>>2]|0)+1-(E_[R>>2]|0)|0))break;if((E_[c>>2]|0)<0&&tb(y),c=(bb(y,((((E_[g>>2]|0)-(E_[d>>2]|0)>>2)*75|0)-75|0)/100|0)|0)<<2,d=E_[t>>2]|0,g=E_[d+8>>2]|0,y=E_[d>>2]|0,(c|0)>=(g+1-y|0))break;if(c=E_[d+4>>2]|0,!(rl(d|0,((((E_[d+12>>2]|0)-c|0)*25|0|0)/100|0)+c|0,(y+g|0)/2|0)|0))break;return o=70,O_=i,o|0}while(0);if(h=E_[t>>2]|0,(E_[E_[f>>2]>>2]|0)<=(((E_[h+8>>2]|0)+(E_[h>>2]|0)|0)/2|0|0))break;if((Ub(e)|0)!=1)break;if(h=E_[e+12>>2]|0,(E_[h+4>>2]|0)>(v|0))break;if(E=E_[t>>2]|0,((E_[h+8>>2]|0)+2-(E_[h>>2]|0)|0)<((E_[E+8>>2]|0)+1-(E_[E>>2]|0)|0))break;Qb(r,4)|0?p=8493:Qb(r,2)|0&&(p=8493);do if((p|0)==8493){if(E=E_[t>>2]|0,!(((E_[E+8>>2]|0)+1-(E_[E>>2]|0)|0)>((E_[E+12>>2]|0)+1-(E_[E+4>>2]|0)|0)))break;return o=172,O_=i,o|0}while(0);return o=0,O_=i,o|0}while(0);do if((zb(e)|0)==1){if(p=e+24|0,r=E_[p>>2]|0,((E_[r+8>>2]|0)+1-(E_[r>>2]|0)|0)<=1)break;if((Mb(a,-1)|0)!=1)break;if((Mb(n,-1)|0)!=1)break;r=E_[t>>2]|0,v=E_[r+8>>2]|0,O=E_[r>>2]|0;e:do if((((E_[r+12>>2]|0)+1-(E_[r+4>>2]|0)|0)*3|0|0)>(v+1-O<<2|0)){if(m=E_[p>>2]|0,!(Gb((E_[m>>2]|0)-O|0,v-(E_[m+8>>2]|0)|0,30,u<<1)|0))break;m=E_[t>>2]|0,w=(E_[m+12>>2]|0)+1-(E_[m+4>>2]|0)|0,m=e+300|0,f=e+156|0;do if((w|0)<=((ob(m)|0)*3|0|0)){if(!(Ab(f)|0))break;if(!(Ab(l)|0))break;E=E_[t>>2]|0;do if(((E_[E+12>>2]|0)+1-(E_[E+4>>2]|0)|0)<=(((E_[E+8>>2]|0)+1-(E_[E>>2]|0)|0)*3|0|0)){if((E_[s>>2]|0)<0&&tb(l),h=bb(l,((((E_[b>>2]|0)-(E_[k>>2]|0)>>2)*40|0)-40|0)/100|0)|0,(E_[s>>2]|0)<0&&tb(l),(h|0)<=((bb(l,((((E_[b>>2]|0)-(E_[k>>2]|0)>>2)*60|0)-60|0)/100|0)|0)+u|0))break;if(h=e+164|0,(E_[h>>2]|0)<0&&tb(f),_=e+196|0,g=e+192|0,y=bb(f,((((E_[_>>2]|0)-(E_[g>>2]|0)>>2)*60|0)-60|0)/100|0)|0,(E_[h>>2]|0)<0&&tb(f),!((y|0)>((bb(f,((((E_[_>>2]|0)-(E_[g>>2]|0)>>2)*40|0)-40|0)/100|0)|0)+u|0)))break;return o=122,O_=i,o|0}while(0);return o=73,O_=i,o|0}while(0);do if(wb(f)|0){if(Ab(l)|0)return o=108,O_=i,o|0;if(wb(l)|0)return o=108,O_=i,o|0;if(!(Ob(l,50)|0))break;if((Mb(l,-1)|0)!=2)break;if(w=Fb(l,0,-1)|0,(E_[s>>2]|0)<0&&tb(l),(w|0)>=(((((E_[b>>2]|0)-(E_[k>>2]|0)>>2)*30|0)-30|0)/100|0|0))break;if(w=Fb(l,1,-1)|0,(E_[s>>2]|0)<0&&tb(l),!((w|0)>(((((E_[b>>2]|0)-(E_[k>>2]|0)>>2)*80|0)-80|0)/100|0|0)))break;return o=108,O_=i,o|0}while(0);w=E_[t>>2]|0,E=(E_[w+12>>2]|0)+1-(E_[w+4>>2]|0)|0;do if((E|0)>((ob(m)|0)*3|0|0)){do if(Ab(f)|0){if(!(vb(l)|0))break;if(w=Fb(l,0,-1)|0,(E_[s>>2]|0)<0&&tb(l),!(Gb(w,((((E_[b>>2]|0)-(E_[k>>2]|0)>>2)*50|0)-50|0)/100|0,10,1)|0))break;return w=Eb(l)|0,o=w?123:40,O_=i,o|0}while(0);do if(Ab(l)|0){if(!(vb(f)|0))break;if(w=Fb(f,0,-1)|0,(E_[e+164>>2]|0)<0&&tb(f),!(Gb(w,((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*50|0)-50|0)/100|0,10,1)|0))break;return w=Eb(f)|0,o=w?125:41,O_=i,o|0}while(0);if(!(wb(f)|0))break;if(w=E_[p>>2]|0,S=J_((E_[w+12>>2]|0)+1-(E_[w+4>>2]|0)<<1,(E_[w+8>>2]|0)+1-(E_[w>>2]|0)|0)|0,(S|0)<(qu(E_[t>>2]|0)|0))break;return o=108,O_=i,o|0}while(0);if(m=E_[t>>2]|0,((E_[m+12>>2]|0)+1-(E_[m+4>>2]|0)<<1|0)<=(((E_[m+8>>2]|0)+1-(E_[m>>2]|0)|0)*3|0|0))break;if((Mb(l,-1)|0)>=3)break;if(!(wb(f)|0)&&(Mb(f,-1)|0)!=1)break;if(m=E_[p>>2]|0,E=E_[m+8>>2]|0,S=E_[t>>2]|0,w=E_[S>>2]|0,g=E_[S+8>>2]|0,(E|0)<((((g-w|0)*70|0|0)/100|0)+w|0)){if(_=E_[S+4>>2]|0,y=E+1|0,!(el(S|0,((((E_[S+12>>2]|0)-_|0)*75|0|0)/100|0)+_|0,(y|0)<(g|0)?y:g)|0))break;g=E_[t>>2]|0,F=E_[p>>2]|0,M=g,N=E_[g>>2]|0}else F=m,M=S,N=w;if(w=(E_[F>>2]|0)-1|0,!((w|0)>(N|0)))break;for(D=w,C=M;;){if(w=E_[C+4>>2]|0,S=Ju(C|0,((((E_[C+12>>2]|0)-w|0)*75|0|0)/100|0)+w|0,D,1)|0,w=E_[t>>2]|0,(S|0)<(E_[w+12>>2]|0)){if((bb(n,D-(E_[w>>2]|0)|0)|0)<=(u|0)){o=108;break}T=E_[t>>2]|0}else T=w;if(w=D-1|0,!((w|0)>(E_[T>>2]|0)))break e;D=w,C=T}return O_=i,o|0}while(0);v=E_[p>>2]|0,O=E_[t>>2]|0,r=E_[O>>2]|0;do{if(!((E_[v>>2]|0)>(r+1|0))){if(((E_[O+12>>2]|0)+1-(E_[O+4>>2]|0)|0)<=(1-r+(E_[O+8>>2]|0)<<1|0)){P=v,L=O;break}if(f=e+156|0,!(Ab(f)|0)){P=E_[p>>2]|0,L=E_[t>>2]|0;break}(E_[e+164>>2]|0)<0&&tb(f),w=(bb(f,((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*50|0)-50|0)/100|0)|0)<<1,f=E_[t>>2]|0,S=E_[f+8>>2]|0,m=E_[f>>2]|0;do if((w|0)>(S+1-m|0)){if(g=Gu(f|0,((E_[f+12>>2]|0)+(E_[f+4>>2]|0)|0)/2|0,(m+S|0)/2|0,1)|0,y=E_[t>>2]|0,_=Qu(y|0,g,((E_[y+8>>2]|0)+(E_[y>>2]|0)|0)/2|0,1)|0,y=E_[t>>2]|0,g=E_[y+8>>2]|0,(_|0)>=(g|0))break;if(_=Ju(y|0,((E_[y+12>>2]|0)+(E_[y+4>>2]|0)|0)/2|0,((E_[y>>2]|0)+g|0)/2|0,1)|0,g=E_[t>>2]|0,y=Qu(g|0,_,((E_[g+8>>2]|0)+(E_[g>>2]|0)|0)/2|0,1)|0,!((y|0)<(E_[(E_[t>>2]|0)+8>>2]|0)))break;return o=67,O_=i,o|0}while(0);return o=91,O_=i,o|0}P=v,L=O}while(0);if((E_[P+8>>2]|0)<((E_[L+8>>2]|0)-1|0))break;O=Ab(l)|0,v=E_[t>>2]|0,r=E_[v+12>>2]|0,S=E_[v+4>>2]|0;do{if(O){if(m=E_[v+8>>2]|0,f=E_[v>>2]|0,(r+1-S|0)<=(m+1-f<<1|0)){I=r,x=S,B=m,H=f;break}f=E_[p>>2]|0,m=(E_[f+8>>2]|0)+1-(E_[f>>2]|0)<<1;do{if(!((m|0)>(ob(e+300|0)|0))){if((E_[s>>2]|0)<0&&tb(l),f=bb(l,((((E_[b>>2]|0)-(E_[k>>2]|0)>>2)*50|0)-50|0)/100|0)|0,w=E_[t>>2]|0,y=E_[w+8>>2]|0,g=E_[w>>2]|0,(f|0)<((y+1-g|0)/2|0|0)){U=w,z=y,Y=g;break}return o=93,O_=i,o|0}f=E_[t>>2]|0,U=f,z=E_[f+8>>2]|0,Y=E_[f>>2]|0}while(0);if(m=E_[U+12>>2]|0,g=E_[U+4>>2]|0,(m+1-g|0)<((z+1-Y|0)*3|0|0)){I=m,x=g,B=z,H=Y;break}return o=108,O_=i,o|0}I=r,x=S,B=E_[v+8>>2]|0,H=E_[v>>2]|0}while(0);if((I+1-x<<1|0)<((B+1-H|0)*3|0|0))break;if(v=E_[p>>2]|0,((E_[v+12>>2]|0)+1-(E_[v+4>>2]|0)|0)<(((E_[v+8>>2]|0)+1-(E_[v>>2]|0)|0)*3|0|0))break;if(!(Eb(l)|0))break;if((Mb(l,-1)|0)!=1)break;if(v=Fb(l,0,-1)|0,(E_[s>>2]|0)<0&&tb(l),S=E_[b>>2]|0,r=E_[k>>2]|0,(v|0)<=((((S-r>>2)*10|0)-10|0)/100|0|0))break;if((E_[s>>2]|0)<0?(tb(l),V=E_[b>>2]|0,Z=E_[k>>2]|0):(V=S,Z=r),!((v|0)<((((V-Z>>2)*40|0)-40|0)/100|0|0)))break;return o=49,O_=i,o|0}while(0);do if((Ub(e)|0)==1){if(Z=E_[e+12>>2]|0,V=E_[t>>2]|0,k=E_[V+4>>2]|0,b=E_[V+12>>2]|0,l=(((E_[Z+12>>2]|0)+(E_[Z+4>>2]|0)|0)/2|0)-((b+k|0)/2|0)|0,(((l|0)>-1?l:-l|0)|0)>=2)break;if(!(Gb(b+1-k|0,(E_[V+8>>2]|0)+1-(E_[V>>2]|0)|0,50,1)|0))break;if(!(Sb(a)|0))break;if(!(Sb(n)|0))break;return o=43,O_=i,o|0}while(0);return o=0,O_=i,o|0}function rk(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0;r=e+60|0;do if(hb(r)|0)i=8627;else{if(vb(r)|0){i=8627;break}f=e|0}while(0);e:do if((i|0)==8627){a=e|0,t=E_[a>>2]|0,n=Gu(t|0,((E_[t+12>>2]|0)+(E_[t+4>>2]|0)|0)/2|0,((E_[t+8>>2]|0)+(E_[t>>2]|0)|0)/2|0,1)|0,t=E_[a>>2]|0,o=Ju(t|0,((E_[t+12>>2]|0)+(E_[t+4>>2]|0)|0)/2|0,((E_[t+8>>2]|0)+(E_[t>>2]|0)|0)/2|0,1)|0,t=E_[a>>2]|0;do{if(((E_[t+12>>2]|0)+1-(E_[t+4>>2]|0)|0)>((E_[t+8>>2]|0)+1-(E_[t>>2]|0)<<1|0)){if(u=(ob(e+300|0)|0)*3|0,l=E_[a>>2]|0,(u|0)>((E_[l+8>>2]|0)+1-(E_[l>>2]|0)<<1|0)){if(u=e+156|0,s=(bb(u,n-(E_[l+4>>2]|0)|0)|0)<<1,l=E_[a>>2]|0,(s|0)<((E_[l+8>>2]|0)+1-(E_[l>>2]|0)|0)){b=l;break}if(s=(bb(u,o-(E_[l+4>>2]|0)|0)|0)<<1,l=E_[a>>2]|0,(s|0)<((E_[l+8>>2]|0)+1-(E_[l>>2]|0)|0)){b=l;break}}return l=hb(r)|0,k=l?40:0,k|0}b=t}while(0);if((n|0)<=(E_[b+4>>2]|0)){f=a;break}if((o|0)>=(E_[b+12>>2]|0)){f=a;break}if(!(Ob(e+156|0,50)|0)){f=a;break}t=e+204|0;do if(!(vb(t)|0)){if(l=e+108|0,vb(l)|0)break;if(!(pb(t)|0)){f=a;break e}if(!(pb(l)|0)){f=a;break e}}while(0);if(t=E_[a>>2]|0,!(rl(t|0,((E_[t+12>>2]|0)+(E_[t+4>>2]|0)|0)/2|0,((E_[t+8>>2]|0)+(E_[t>>2]|0)|0)/2|0)|0)){f=a;break}return k=99,k|0}while(0);b=E_[f>>2]|0;do if(((E_[b+12>>2]|0)+1-(E_[b+4>>2]|0)|0)>((E_[b+8>>2]|0)+1-(E_[b>>2]|0)<<1|0)){if(!(hb(e+156|0)|0))break;if(i=E_[f>>2]|0,t=Gu(i|0,((E_[i+12>>2]|0)+(E_[i+4>>2]|0)|0)/2|0,((E_[i+8>>2]|0)+(E_[i>>2]|0)|0)/2|0,1)|0,i=E_[f>>2]|0,o=Ju(i|0,((E_[i+12>>2]|0)+(E_[i+4>>2]|0)|0)/2|0,((E_[i+8>>2]|0)+(E_[i>>2]|0)|0)/2|0,1)|0,i=(ob(e+300|0)|0)*3|0,n=E_[f>>2]|0,(i|0)<=((E_[n+8>>2]|0)+1-(E_[n>>2]|0)<<1|0))return k=41,k|0;if(i=(bb(r,t-(E_[n+4>>2]|0)|0)|0)<<1,n=E_[f>>2]|0,(i|0)<((E_[n+8>>2]|0)+1-(E_[n>>2]|0)|0))break;if(i=(bb(r,o-(E_[n+4>>2]|0)|0)|0)<<1,n=E_[f>>2]|0,(i|0)<((E_[n+8>>2]|0)+1-(E_[n>>2]|0)|0))break;return k=41,k|0}while(0);return k=0,k|0}function ik(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0;if(i=O_,O_=O_+16|0,f=i|0,a=i+8|0,t=e+204|0,n=e|0,o=E_[n>>2]|0,(Mb(t,((E_[o+12>>2]|0)+1-(E_[o+4>>2]|0)|0)/4|0)|0)!=1)return u=0,O_=i,u|0;if(o=e+108|0,l=E_[n>>2]|0,(Mb(o,((E_[l+12>>2]|0)+1-(E_[l+4>>2]|0)|0)/2|0)|0)!=1)return u=0,O_=i,u|0;if(l=E_[n>>2]|0,(Mb(t,((E_[l+12>>2]|0)+1-(E_[l+4>>2]|0)|0)/2|0)|0)!=1)return u=0,O_=i,u|0;l=E_[n>>2]|0,s=(E_[l+12>>2]|0)+1-(E_[l+4>>2]|0)|0,b=(E_[l+8>>2]|0)+1-(E_[l>>2]|0)|0,l=((((b|0)<(s|0)?b:s)|0)/30|0)+1|0,b=(Mb(o,(s|0)/4|0)|0)!=1;do{if(!b){E_[f>>2]=0,E_[a>>2]=0;do if(nl(E_[n>>2]|0,f)|0){if(s=E_[n>>2]|0,c=(E_[s+12>>2]|0)+1-(E_[s+4>>2]|0)|0,((E_[f>>2]|0)*-2|0|0)<=(c|0))break;s=e+300|0;do if((c|0)>=((ob(s)|0)*3|0|0)){if((Ub(e)|0)==0)return u=108,O_=i,u|0;if(d=E_[n>>2]|0,h=E_[d+4>>2]|0,!((E_[(E_[e+12>>2]|0)+12>>2]|0)<(((((E_[d+12>>2]|0)-h|0)*20|0|0)/100|0)+h|0)))break;return u=108,O_=i,u|0}while(0);if((E_[e+308>>2]|0)<0&&tb(s),c=(bb(s,((((E_[e+340>>2]|0)-(E_[e+336>>2]|0)>>2)*6|0)-6|0)/100|0)|0)<<1,h=E_[n>>2]|0,(c|0)>=((E_[h+8>>2]|0)+1-(E_[h>>2]|0)|0))break;if((Ub(e)|0)<=0)break;if((Ub(e)|0)>=3)break;if(h=E_[e+12>>2]|0,c=E_[n>>2]|0,d=E_[c+4>>2]|0,_=E_[c+12>>2]|0,(E_[h+4>>2]|0)<((((_-d|0)*15|0|0)/100|0)+d|0))break;if((E_[h+12>>2]|0)>=((_+d|0)/2|0|0))break;if(d=(E_[h+8>>2]|0)+1-(E_[h>>2]|0)|0,!(Gb(d,ob(s)|0,10,1)|0))break;return u=116,O_=i,u|0}while(0);if(!(tl(E_[n>>2]|0,a)|0)){k=1;break}d=E_[n>>2]|0,h=(E_[d+12>>2]|0)+1-(E_[d+4>>2]|0)|0;do if(((E_[a>>2]|0)*3|0|0)>(h<<1|0)){if((h|0)<=((ob(e+300|0)|0)<<1|0))break;if(d=Fb(o,0,-1)|0,(E_[e+116>>2]|0)<0&&tb(o),(d|0)<=(((((E_[e+148>>2]|0)-(E_[e+144>>2]|0)>>2)*50|0)-50|0)/100|0|0))break;if(d=Fb(t,0,-1)|0,(E_[e+212>>2]|0)<0&&tb(t),(d|0)>(((((E_[e+244>>2]|0)-(E_[e+240>>2]|0)>>2)*50|0)-50|0)/100|0|0))break;if((E_[f>>2]|0)==0)return u=102,O_=i,u|0;if(d=e+156|0,(E_[e+164>>2]|0)<0&&tb(d),!(kb(d,((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*50|0)-50|0)/100|0,2)|0))break;return u=102,O_=i,u|0}while(0);if(h=E_[n>>2]|0,d=(E_[h+12>>2]|0)+1-(E_[h+4>>2]|0)|0,(E_[f>>2]<<1|0)<=(d|0)){k=0;break}if(!((E_[a>>2]<<1|0)>(d|0))){k=0;break}return u=0,O_=i,u|0}k=1}while(0);a=e+156|0,f=e+164|0,(E_[f>>2]|0)<0&&tb(a),d=e+196|0,h=e+192|0,_=(bb(a,((((E_[d>>2]|0)-(E_[h>>2]|0)>>2)*50|0)-50|0)/100|0)|0)<<1,c=E_[n>>2]|0;do{if((_|0)>((E_[c+8>>2]|0)+1-(E_[c>>2]|0)|0)){if((E_[e+212>>2]|0)<0&&tb(t),w=(bb(t,((((E_[e+244>>2]|0)-(E_[e+240>>2]|0)>>2)*50|0)-50|0)/100|0)|0)<<1,v=E_[n>>2]|0,(w|0)<=((E_[v+12>>2]|0)+1-(E_[v+4>>2]|0)|0)){m=8691;break}if(v=Ob(o,50)|0,!(v|b))break;return u=v?114:0,O_=i,u|0}m=8691}while(0);do if((m|0)==8691){if(!b)break;return u=0,O_=i,u|0}while(0);if((zb(e)|0)!=1)return u=0,O_=i,u|0;if(b=e+24|0,c=E_[b>>2]|0,_=E_[c+8>>2]|0,v=E_[c>>2]|0,(_+1-v|0)<2)return u=0,O_=i,u|0;c=E_[n>>2]|0,w=E_[c+8>>2]|0;do if(((v+_|0)/2|0|0)<=((w+(E_[c>>2]|0)|0)/2|0|0)){(E_[f>>2]|0)<0&&tb(a),p=w-(bb(a,((((E_[d>>2]|0)-(E_[h>>2]|0)>>2)*50|0)-50|0)/100|0)|0)+2|0,E=E_[n>>2]|0;do if((p|0)<(E_[E+8>>2]|0)){S=Ju(E|0,((E_[E+12>>2]|0)+(E_[E+4>>2]|0)|0)/2|0,p,1)|0,g=E_[n>>2]|0,(S|0)<(E_[g+12>>2]|0)?il(g|0,S-1|0,p)|0&&(m=8700):m=8700;do if((m|0)==8700){if(g=(Mb(a,-1)|0)==3,y=E_[n>>2]|0,g)return g=(Mb(a,((E_[y+8>>2]|0)+1-(E_[y>>2]|0)|0)/8|0)|0)<3,u=g?102:0,O_=i,u|0;if(!(Gb((E_[y+12>>2]|0)+1-(E_[y+4>>2]|0)|0,(E_[y+8>>2]|0)+1-(E_[y>>2]|0)|0,40,1)|0))break;y=E_[n>>2]|0;do if((Mb(o,((E_[y+12>>2]|0)+1-(E_[y+4>>2]|0)|0)/8|0)|0)==2){if(g=E_[n>>2]|0,(Mb(t,((E_[g+12>>2]|0)+1-(E_[g+4>>2]|0)|0)/8|0)|0)!=2)break;return u=120,O_=i,u|0}while(0);if(y=E_[n>>2]|0,g=E_[y+4>>2]|0,A=((((E_[y+12>>2]|0)-g|0)*75|0|0)/100|0)+g|0,g=(Qu(y|0,A,((E_[y+8>>2]|0)+(E_[y>>2]|0)|0)/2|0,0)|0)+1|0,y=Qu(E_[n>>2]|0,A,g,1)|0,(y|0)<(E_[(E_[n>>2]|0)+8>>2]|0))break;y=e+60|0;do if(hb(y)|0){if(g=E_[n>>2]|0,A=E_[g>>2]|0,(p|0)>(((((E_[g+8>>2]|0)-A|0)*60|0|0)/100|0)+A|0))return u=0,O_=i,u|0;if(!((S|0)<(E_[g+12>>2]|0)))break;return u=0,O_=i,u|0}while(0);do if((Ub(e)|0)==1)O=E_[e+12>>2]|0,R=E_[n>>2]|0,m=8714;else{if((Ub(e)|0)!=2)break;if(g=E_[e+12>>2]|0,A=E_[n>>2]|0,(E_[g+28>>2]|0)<((E_[A+12>>2]|0)-1|0))break;((E_[g+8>>2]|0)+1-(E_[g>>2]|0)<<1|0)>(((E_[g+24>>2]|0)+1-(E_[g+16>>2]|0)|0)*3|0|0)&&(O=g,R=A,m=8714)}while(0);do if((m|0)==8714){if(A=E_[O+4>>2]|0,g=E_[R+4>>2]|0,(A|0)>(g+1|0))break;if((1-A+(E_[O+12>>2]|0)<<2|0)>(1-g+(E_[R+12>>2]|0)|0))break;if((E_[e+68>>2]|0)<0&&tb(y),g=(bb(y,((((E_[e+100>>2]|0)-(E_[e+96>>2]|0)>>2)*50|0)-50|0)/100|0)|0)<<2,A=E_[n>>2]|0,(g|0)<((E_[A+8>>2]|0)+1-(E_[A>>2]|0)|0))break;return u=84,O_=i,u|0}while(0);return u=114,O_=i,u|0}while(0);if(s=E_[n>>2]|0,!(Gb((E_[s+12>>2]|0)+1-(E_[s+4>>2]|0)|0,(E_[s+8>>2]|0)+1-(E_[s>>2]|0)|0,40,1)|0))break;if(s=E_[n>>2]|0,y=E_[s+4>>2]|0,(Yb(e,((((E_[s+12>>2]|0)-y|0)*15|0|0)/100|0)+y|0)|0)!=3)break;if(y=E_[n>>2]|0,s=E_[y+4>>2]|0,(Yb(e,((((E_[y+12>>2]|0)-s|0)*85|0|0)/100|0)+s|0)|0)!=3)break;if(s=Qu(E_[n>>2]|0,S-1|0,p,1)|0,(s|0)>=(E_[(E_[n>>2]|0)+8>>2]|0))break;if(!(Ob(e+60|0,50)|0))break;return u=120,O_=i,u|0}while(0);p=E_[n>>2]|0,E=E_[p+8>>2]|0,s=E_[p>>2]|0;e:do{if((((E_[p+12>>2]|0)+1-(E_[p+4>>2]|0)|0)*3|0|0)>(E+1-s<<2|0)){if((E_[E_[b>>2]>>2]|0)<=(s|0)){F=p,M=s,N=E;break}if(y=(Mb(a,-1)|0)<3,A=E_[n>>2]|0,!y){F=A,M=E_[A>>2]|0,N=E_[A+8>>2]|0;break}if(y=E_[A+8>>2]|0,(E_[f>>2]|0)<0&&tb(a),A=(bb(a,((((E_[d>>2]|0)-(E_[h>>2]|0)>>2)*50|0)-50|0)/100|0)|0)-1|0,g=E_[n>>2]|0,D=e+300|0,!(il(g|0,((E_[g+12>>2]|0)+(E_[g+4>>2]|0)|0)/2|0,y-((A|0)>0?A:0)|0)|0)){(E_[e+308>>2]|0)<0&&tb(D),A=(bb(D,((((E_[e+340>>2]|0)-(E_[e+336>>2]|0)>>2)*6|0)-6|0)/100|0)|0)*3|0,y=E_[n>>2]|0;do if((A|0)<((E_[y+8>>2]|0)+1-(E_[y>>2]|0)<<1|0)){if(!(vb(o)|0))break;if(g=e+60|0,C=Fb(g,0,-1)|0,(E_[e+68>>2]|0)<0&&tb(g),!((C|0)<(((((E_[e+100>>2]|0)-(E_[e+96>>2]|0)>>2)*40|0)-40|0)/100|0|0)))break;return u=116,O_=i,u|0}while(0);return u=0,O_=i,u|0}if(y=(ob(D)|0)<<1,A=E_[n>>2]|0,S=E_[A+8>>2]|0,C=E_[A>>2]|0,(y|0)<=(S+1-C|0)){F=A,M=C,N=S;break}if(S=Fb(a,0,-1)|0,(E_[f>>2]|0)<0&&tb(a),C=E_[d>>2]|0,A=E_[h>>2]|0,(S|0)>=((((C-A>>2)*20|0)-20|0)/100|0|0)){do if(k){if(hb(a)|0)break;if(S=E_[n>>2]|0,(Mb(t,((E_[S+12>>2]|0)+1-(E_[S+4>>2]|0)|0)/3|0)|0)!=1)break;return u=116,O_=i,u|0}while(0);return u=0,O_=i,u|0}(E_[f>>2]|0)<0?(tb(a),T=E_[d>>2]|0,P=E_[h>>2]|0):(T=C,P=A);do if(!(kb(a,(((T-P>>2)*20|0)-20|0)/100|0,2)|0)){if(kb(t,1,2)|0)break;if((Mb(o,l)|0)==2)break;if((Mb(a,-1)|0)==1){if(S=E_[n>>2]|0,((E_[S+12>>2]|0)+1-(E_[S+4>>2]|0)|0)<((E_[r+12>>2]|0)+1-(E_[r+4>>2]|0)|0))break;if(S=Fb(o,0,-1)|0,(E_[e+116>>2]|0)<0&&tb(o),(S|0)>(((((E_[e+148>>2]|0)-(E_[e+144>>2]|0)>>2)*50|0)-50|0)/100|0|0))break}if(S=E_[n>>2]|0,y=E_[S+8>>2]|0,g=E_[S>>2]|0,(((E_[S+12>>2]|0)+1-(E_[S+4>>2]|0)|0)*3|0|0)<((y+1-g|0)*5|0|0)){F=S,M=g,N=y;break e}return u=102,O_=i,u|0}while(0);return A=E_[n>>2]|0,C=(E_[A+12>>2]|0)+1-(E_[A+4>>2]|0)|0,A=(C|0)>((ob(D)|0)*3|0|0),u=A?0:114,O_=i,u|0}F=p,M=s,N=E}while(0);if(E=Ju(F|0,((E_[F+12>>2]|0)+(E_[F+4>>2]|0)|0)/2|0,M+1+(((N-M|0)*60|0|0)/100|0)|0,1)|0,s=E_[n>>2]|0,(E|0)>=(E_[s+12>>2]|0))return E=(Mb(a,-1)|0)==2,u=E?102:114,O_=i,u|0;if((E_[(E_[b>>2]|0)+8>>2]|0)>(((E_[s+8>>2]|0)+(E_[s>>2]|0)|0)/2|0|0))break;if((Ub(e)|0)!=1)break;if((E_[(E_[e+12>>2]|0)+12>>2]|0)<((E_[(E_[n>>2]|0)+12>>2]|0)-1|0))break;if(!(Ab(e+60|0)|0))break;if(!(Ab(a)|0))break;if(s=E_[n>>2]|0,E=E_[s>>2]|0,el(s|0,((E_[s+12>>2]|0)+(E_[s+4>>2]|0)|0)/2|0,((((E_[s+8>>2]|0)-E|0)*75|0|0)/100|0)+E|0)|0)break;return u=114,O_=i,u|0}while(0);return u=0,O_=i,u|0}function fk(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0;r=e+60|0,hb(r)|0?i=8801:vb(r)|0&&(i=8801);do if((i|0)==8801){for(r=e+156|0,f=e+164|0,(E_[f>>2]|0)<0&&tb(r),a=e+196|0,t=e+192|0,n=0,o=0,u=((((E_[a>>2]|0)-(E_[t>>2]|0)>>2)*30|0)-30|0)/100|0;;){if((E_[f>>2]|0)<0&&tb(r),(u|0)>(((((E_[a>>2]|0)-(E_[t>>2]|0)>>2)*60|0)-60|0)/100|0|0))break;(bb(r,u)|0)>(n|0)?(l=bb(r,u)|0,s=u):(l=n,s=o),n=l,o=s,u=u+1|0}if((n|0)==0)return b=0,b|0;if(u=e|0,r=E_[u>>2]|0,t=E_[r+8>>2]|0,a=t-n+1|0,f=E_[r>>2]|0,(a|0)<=(f|0))return b=0,b|0;if(k=(f+t|0)/2|0,(a|0)>=(k|0))return b=0,b|0;if(t=(k+a|0)/2|0,a=Ju(r|0,(E_[r+4>>2]|0)+o|0,t,1)|0,r=E_[u>>2]|0,(a|0)>=(E_[r+12>>2]|0))break;if(!(rl(r|0,a,t)|0))break;if(t=E_[u>>2]|0,il(t|0,a,((E_[t+8>>2]|0)+(E_[t>>2]|0)|0)/2|0)|0)break;for(t=E_[u>>2]|0,r=E_[t+4>>2]|0,k=((E_[t+12>>2]|0)+1-r|0)/20|0,f=(k|0)>2?k:2,k=a,c=t,t=r;;){if(d=k-1|0,(d|0)<=(t|0)){h=c;break}if(r=Qu(c|0,d,((E_[c+8>>2]|0)+(E_[c>>2]|0)|0)/2|0,1)|0,_=E_[u>>2]|0,(r|0)>=(E_[_+8>>2]|0)){h=_;break}k=d,c=_,t=E_[_+4>>2]|0}for(t=k-2|0,c=h;;){if((t|0)<=(E_[c+4>>2]|0)){w=c;break}if(o=Qu(c|0,t,((E_[c+8>>2]|0)+(E_[c>>2]|0)|0)/2|0,1)|0,n=E_[u>>2]|0,(o|0)<(E_[n+8>>2]|0)){w=n;break}t=t-1|0,c=n}if(c=d+f|0,k=t-f|0,(c|0)>=(a|0))break;if((k|0)<=(E_[w+4>>2]|0))break;if(n=Xu(w|0,k,E_[w+8>>2]|0,1)|0,o=E_[u>>2]|0,_=Qu(o|0,k,((E_[o+8>>2]|0)+(E_[o>>2]|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E_[k+8>>2]|0,m=E_[k>>2]|0;e:do{if((w<<1|0)>=(v+1-m|0)&(w|0)>9){do{if((d|0)==2){if(k=Fb(c,0,-1)|0,(E_[e+212>>2]|0)<0&&tb(c),Gb(k,((((E_[e+244>>2]|0)-(E_[e+240>>2]|0)>>2)*50|0)-50|0)/100|0,10,1)|0)break;k=E_[l>>2]|0,p=E_[k+12>>2]|0,E=E_[k+4>>2]|0,S=E_[k+8>>2]|0,g=E_[k>>2]|0;break e}if((d|0)!=1){p=h,E=_,S=v,g=m;break e}}while(0);k=e+60|0,y=e+68|0,(E_[y>>2]|0)<0&&tb(k),A=e+100|0,O=e+96|0,R=sb(k,((((E_[A>>2]|0)-(E_[O>>2]|0)>>2)*90|0)-90|0)/100|0,-1)|0,F=(R|0)>1;do if(F){if(!(yb(c)|0))break;if(M=E_[l>>2]|0,(Mb(u,((E_[M+12>>2]|0)+1-(E_[M+4>>2]|0)|0)/2|0)|0)!=2)break;if((E_[y>>2]|0)<0&&tb(k),(bb(k,((((E_[A>>2]|0)-(E_[O>>2]|0)>>2)*75|0)-75|0)/100|0)|0)>(R|0))break;return N=118,O_=i,N|0}while(0);do if(nl(E_[l>>2]|0,f)|0){M=E_[f>>2]|0,D=E_[l>>2]|0,C=E_[D+12>>2]|0,T=E_[D+4>>2]|0;do{if(!((((M|0)>-1?M:-M|0)|0)>((C+1-T|0)/8|0|0))){if((Yb(e,(((C-T|0)*30|0|0)/100|0)+T|0)|0)>2)return N=118,O_=i,N|0;if(!(hb(c)|0)){D=E_[l>>2]|0,P=E_[f>>2]|0,L=E_[D+12>>2]|0,I=E_[D+4>>2]|0;break}D=e+300|0,x=e+308|0,(E_[x>>2]|0)<0&&tb(D),B=e+340|0,H=e+336|0,U=(bb(D,((((E_[B>>2]|0)-(E_[H>>2]|0)>>2)*30|0)-30|0)/100|0)|0)*9|0,(E_[x>>2]|0)<0&&tb(D);do if((U|0)>((bb(D,((((E_[B>>2]|0)-(E_[H>>2]|0)>>2)*50|0)-50|0)/100|0)|0)*10|0|0)){if((E_[x>>2]|0)<0&&tb(D),z=(bb(D,((((E_[B>>2]|0)-(E_[H>>2]|0)>>2)*50|0)-50|0)/100|0)|0)*9|0,(E_[x>>2]|0)<0&&tb(D),!((z|0)>((bb(D,((((E_[B>>2]|0)-(E_[H>>2]|0)>>2)*70|0)-70|0)/100|0)|0)*10|0|0)))break;return N=118,O_=i,N|0}while(0);return N=117,O_=i,N|0}P=M,L=C,I=T}while(0);if(T=(L+1-I|0)/2|0,(P|0)<=(T|0))break;return C=(Mb(c,T)|0)==1,N=C?121:0,O_=i,N|0}while(0);C=e+156|0,T=e+164|0,(E_[T>>2]|0)<0&&tb(C),M=e+196|0,H=e+192|0,B=sb(C,((((E_[M>>2]|0)-(E_[H>>2]|0)>>2)*90|0)-90|0)/100|0,-1)|0,D=E_[y>>2]|0,(D|0)<0?(tb(k),Y=E_[y>>2]|0):Y=D,D=E_[A>>2]|0,x=E_[O>>2]|0,(Y|0)<0?(tb(k),V=E_[A>>2]|0,Z=E_[O>>2]|0):(V=D,Z=x),U=ub(k,(((D-x>>2)*70|0)-70|0)/100|0,(((V-Z>>2)*90|0)-90|0)/100|0)|0,x=E_[T>>2]|0,(x|0)<0?(tb(C),j=E_[T>>2]|0):j=x,x=E_[M>>2]|0,T=E_[H>>2]|0,(j|0)<0?(tb(C),q=E_[M>>2]|0,W=E_[H>>2]|0):(q=x,W=T),H=ub(C,(((x-T>>2)*70|0)-70|0)/100|0,(((q-W>>2)*90|0)-90|0)/100|0)|0,T=E_[y>>2]|0;do if((T|0)<0){if(tb(k),x=E_[y>>2]|0,M=((x-B<<1)+R|0)/3|0,(x|0)>=0){K=x,X=M;break}tb(k),K=E_[y>>2]|0,X=M}else K=T,X=((T-B<<1)+R|0)/3|0;while(0);T=(U-H+K|0)/2|0;do if(vb(c)|0){if(M=ob(u)|0,x=(M-(lb(u)|0)|0)*7|0,M=E_[l>>2]|0,D=E_[M+12>>2]|0,z=E_[M+4>>2]|0,!((x|0)<(D+1-z<<2|0)))break;for(G=z,Q=D;;){if((G|0)>=(Q|0)){J=8888;break}if(D=G+1|0,(Yb(e,G)|0)==2){$=D;break}G=D,Q=E_[(E_[l>>2]|0)+12>>2]|0}for((J|0)==8888&&($=G+1|0);;){if(D=E_[l>>2]|0,z=E_[D+12>>2]|0,($|0)>=(z|0)){er=D,rr=z;break}if((Yb(e,$)|0)==1){J=8894;break}$=$+1|0}if((J|0)==8894&&(z=E_[l>>2]|0,er=z,rr=E_[z+12>>2]|0),($|0)<(rr|0)?(z=((bb(e+300|0,$-(E_[er+4>>2]|0)|0)|0)/4|0)+$|0,D=E_[l>>2]|0,ir=z,fr=D,ar=E_[D+12>>2]|0):(ir=$,fr=er,ar=rr),(ir|0)>=(ar|0))break;if(D=e+300|0,z=bb(D,ir-(E_[fr+4>>2]|0)|0)|0,x=E_[l>>2]|0,(z|0)>=((E_[x+8>>2]|0)+1-(E_[x>>2]|0)|0))break;if(z=bb(D,ir-(E_[x+4>>2]|0)|0)|0,x=J_(z,ir-G|0)|0,M=E_[l>>2]|0,(((x|0)/(1-z+(E_[M+8>>2]|0)-(E_[M>>2]|0)|0)|0)+ir|0)>=(E_[M+12>>2]|0))break;if((E_[e+308>>2]|0)<0&&tb(D),M=(bb(D,((((E_[e+340>>2]|0)-(E_[e+336>>2]|0)>>2)*70|0)-70|0)/100|0)|0)<<1,D=E_[l>>2]|0,(M|0)>=((E_[D+8>>2]|0)+1-(E_[D>>2]|0)|0))break;if(Gb(R,B,20,1)|0)return N=89,O_=i,N|0;if((X|0)<(T|0)|F&(R|0)<(B|0)^1)break;if(kb(C,1,2)|0)break;return N=89,O_=i,N|0}while(0);T=E_[l>>2]|0,H=E_[T+4>>2]|0;do if(el(T|0,((((E_[T+12>>2]|0)-H|0)*60|0|0)/100|0)+H|0,((E_[T+8>>2]|0)+(E_[T>>2]|0)|0)/2|0)|0){if(Ab(k)|0)break;return N=117,O_=i,N|0}while(0);do if((R|0)<(B+1|0)){if((E_[y>>2]|0)<0&&tb(k),kb(k,((((E_[A>>2]|0)-(E_[O>>2]|0)>>2)*50|0)-50|0)/100|0,2)|0)break;if(T=E_[l>>2]|0,(R<<1|0)<(B|0))tr=E_[T+12>>2]|0,nr=E_[T+4>>2]|0;else{if(H=E_[T+4>>2]|0,U=E_[T+12>>2]|0,((((U-H|0)*90|0|0)/100|0)+H|0)<(E_[r+12>>2]|0))break;tr=U,nr=H}if((Mb(u,(tr+1-nr|0)/2|0)|0)==1)return N=121,O_=i,N|0;if(H=Rb(k)|0,U=E_[l>>2]|0,!((H|0)>(((E_[U+12>>2]|0)+1-(E_[U+4>>2]|0)|0)/2|0|0)))break;return N=121,O_=i,N|0}while(0);if(F){do if(vb(c)|0){if(k=E_[l>>2]|0,(Mb(u,((E_[k+12>>2]|0)+1-(E_[k+4>>2]|0)|0)/3|0)|0)!=2)break;return N=118,O_=i,N|0}while(0);(R|0)<2&&(J=8921)}else J=8921;do if((J|0)==8921){if(F=E_[l>>2]|0,k=(E_[F+8>>2]|0)+1-(E_[F>>2]|0)|0,(k-(B+R)<<1|0)>=(k|0))break;if(!(kb(C,1,2)|0))break;if(k=E_[l>>2]|0,(Mb(u,((E_[k+12>>2]|0)+1-(E_[k+4>>2]|0)|0)/2|0)|0)!=2)break;return N=118,O_=i,N|0}while(0);return N=0,O_=i,N|0}p=h,E=_,S=v,g=m}while(0);m=p+1-E|0;do if((m<<1|0)>=(S+1-g|0)&(m|0)>8){if((Mb(c,-1)|0)!=2)break;if(!(Ob(c,50)|0))break;if(v=E_[l>>2]|0,_=((E_[v+12>>2]|0)+1-(E_[v+4>>2]|0)|0)/4|0,(E_[e+212>>2]|0)<0&&tb(c),v=b+(bb(c,((((E_[e+244>>2]|0)-(E_[e+240>>2]|0)>>2)*50|0)-50|0)/100|0)|0)|0,(Mb(c,(_|0)<(v|0)?v:_)|0)==3)return N=77,O_=i,N|0;_=e+60|0,(E_[e+68>>2]|0)<0&&tb(_),v=bb(_,((((E_[e+100>>2]|0)-(E_[e+96>>2]|0)>>2)*50|0)-50|0)/100|0)|0,h=e+156|0,d=e+164|0,(E_[d>>2]|0)<0&&tb(h),w=e+196|0,C=e+192|0,R=bb(h,((((E_[w>>2]|0)-(E_[C>>2]|0)>>2)*50|0)-50|0)/100|0)|0;do if(Gb(v,R,80,2)|0){if(B=E_[l>>2]|0,k=(E_[B+8>>2]|0)+1-(E_[B>>2]|0)|0,(v<<2|0)>=(k|0))break;
if((R<<2|0)>=(k|0))break;do if((v|0)>1&(R|0)>1){if(!(kb(_,1,2)|0))break;if(!(kb(h,1,2)|0))break;if((E_[e+116>>2]|0)<0&&tb(u),k=(bb(u,((((E_[e+148>>2]|0)-(E_[e+144>>2]|0)>>2)*50|0)-50|0)/100|0)|0)*5|0,B=E_[l>>2]|0,!((k|0)>((E_[B+12>>2]|0)+1-(E_[B+4>>2]|0)|0)))break;return N=119,O_=i,N|0}while(0);do if((Ub(e)|0)==1){if(B=e+12|0,k=E_[B>>2]|0,F=E_[k+12>>2]|0,O=E_[k+4>>2]|0,A=E_[l>>2]|0,y=E_[A+12>>2]|0,U=E_[A+4>>2]|0,(((F+1-O|0)*5|0)-5|0)>=(y+1-U|0))break;if(A=y-U|0,(O|0)<(((A*30|0|0)/100|0)+U|0))break;if((F|0)>(((A*60|0|0)/100|0)+U|0))break;if(A=((E_[k+8>>2]|0)+1-(E_[k>>2]|0)|0)*10|0,k=e+300|0,(A|0)<=((bb(k,((O+F|0)/2|0)-U|0)|0)*9|0|0))break;if(U=E_[B>>2]|0,Zb(a,e,((E_[U+12>>2]|0)+(E_[U+4>>2]|0)|0)/2|0,((E_[U+8>>2]|0)+(E_[U>>2]|0)|0)/2|0),U=E_[a>>2]|0,F=E_[a+4>>2]|0,or=(U|0)>(F|0)?0:1-U+F|0,F=E_[B>>2]|0,!(Gb(or,(E_[F+12>>2]|0)+1-(E_[F+4>>2]|0)|0,30,2)|0))break;return F=E_[B>>2]|0,B=((E_[F+8>>2]|0)+1-(E_[F>>2]|0)|0)*9|0,(E_[e+308>>2]|0)<0&&tb(k),F=(B|0)<((bb(k,((((E_[e+340>>2]|0)-(E_[e+336>>2]|0)>>2)*50|0)-50|0)/100|0)|0)*10|0|0),N=F?72:0,O_=i,N|0}while(0);F=E_[l>>2]|0,k=E_[F+4>>2]|0;do if((Yb(e,((((E_[F+12>>2]|0)-k|0)*60|0|0)/100|0)+k|0)|0)!=4){if(B=E_[l>>2]|0,U=E_[B+4>>2]|0,(Yb(e,((((E_[B+12>>2]|0)-U|0)*70|0|0)/100|0)+U|0)|0)==4)break;do if((zb(e)|0)<3)U=E_[l>>2]|0,ur=E_[U+12>>2]|0,lr=E_[U+4>>2]|0,J=8964;else{if((zb(e)|0)!=3)break;U=E_[l>>2]|0,B=E_[U+12>>2]|0,O=E_[U+4>>2]|0,(B+1-O|0)>=((E_[U+8>>2]|0)+1-(E_[U>>2]|0)|0)&&(ur=B,lr=O,J=8964)}while(0);do if((J|0)==8964){if((Mb(u,(ur+1-lr|0)/2|0)|0)>=3)break;if(O=E_[l>>2]|0,(Mb(u,((E_[O+12>>2]|0)+1-(E_[O+4>>2]|0)<<1|0)/5|0)|0)>=3)break;if(Eb(_)|0)break;if((E_[d>>2]|0)<0&&tb(h),O=bb(h,((((E_[w>>2]|0)-(E_[C>>2]|0)>>2)*20|0)-20|0)/100|0)|0,(E_[d>>2]|0)<0&&tb(h),B=O-(bb(h,((((E_[w>>2]|0)-(E_[C>>2]|0)>>2)*80|0)-80|0)/100|0)|0)|0,O=E_[l>>2]|0,(((B|0)>-1?B:-B|0)<<2|0)>((E_[O+8>>2]|0)+1-(E_[O>>2]|0)|0))break;B=E_[O+4>>2]|0,(E_[e+116>>2]|0)<0&&tb(u),O=(bb(u,((((E_[e+148>>2]|0)-(E_[e+144>>2]|0)>>2)*50|0)-50|0)/100|0)|0)+B|0,B=E_[l>>2]|0,U=E_[B+4>>2]|0,A=E_[B+12>>2]|0;do if((O|0)>((A+U|0)/2|0|0)){y=E_[B>>2]|0,Zo(t,y,U,((E_[B+8>>2]|0)+y|0)/2|0,A),Pu(n,E_[l>>2]|0,t);do if(nl(n,o)|0){if(((E_[o>>2]|0)*-2|0|0)<=((E_[n+12>>2]|0)+1-(E_[n+4>>2]|0)|0))break;if(y=n+16|0,H=E_[y>>2]|0,(H|0)==0)return N=117,O_=i,N|0;if(T=n+20|0,D=E_[T>>2]|0,(H|0)==(D|0))sr=H;else{for(M=D;;){if(D=M-12|0,E_[T>>2]=D,z=E_[D>>2]|0,(z|0)==0?br=D:(D=M-12+4|0,(z|0)!=(E_[D>>2]|0)&&(E_[D>>2]=z),hn(z),br=E_[T>>2]|0),(H|0)==(br|0))break;M=br}sr=E_[y>>2]|0}return hn(sr),N=117,O_=i,N|0}while(0);if(M=n+16|0,H=E_[M>>2]|0,(H|0)==0)break;if(T=n+20|0,z=E_[T>>2]|0,(H|0)==(z|0))kr=H;else{for(D=z;;){if(z=D-12|0,E_[T>>2]=z,x=E_[z>>2]|0,(x|0)==0?cr=z:(z=D-12+4|0,(x|0)!=(E_[z>>2]|0)&&(E_[z>>2]=x),hn(x),cr=E_[T>>2]|0),(H|0)==(cr|0))break;D=cr}kr=E_[M>>2]|0}hn(kr)}while(0);if(A=E_[l>>2]|0,B=E_[A+4>>2]|0,(O|0)>(((((E_[A+12>>2]|0)-B|0)*10|0|0)/100|0)+B|0))return N=78,O_=i,N|0;if(!((zb(e)|0)>1))break;return N=78,O_=i,N|0}while(0);return N=0,O_=i,N|0}while(0);return(E_[e+116>>2]|0)<0&&tb(u),k=(bb(u,((((E_[e+148>>2]|0)-(E_[e+144>>2]|0)>>2)*50|0)-50|0)/100|0)|0)<<1,F=E_[l>>2]|0,N=(k|0)>((E_[F+12>>2]|0)+1-(E_[F+4>>2]|0)|0)?77:119,O_=i,N|0}while(0);do if((v*3|0|0)<(R<<1|0)){if(C=E_[l>>2]|0,w=((E_[C+8>>2]|0)+1-(E_[C>>2]|0)|0)/4|0,!((v|0)<(w|0)&(R|0)>(w|0)))break;if(!(Ob(h,50)|0))break;if(w=E_[l>>2]|0,(Mb(u,((E_[w+12>>2]|0)+1-(E_[w+4>>2]|0)|0)/8|0)|0)!=2)break;return N=75,O_=i,N|0}while(0);return N=0,O_=i,N|0}while(0);do if((Mb(c,-1)|0)<3){if(b=E_[l>>2]|0,!(((E_[b+8>>2]|0)+1-(E_[b>>2]|0)<<1|0)>(((E_[b+12>>2]|0)+1-(E_[b+4>>2]|0)|0)*5|0|0)))break;return N=126,O_=i,N|0}while(0);if((Mb(c,-1)|0)!=3)break;if((Ub(e)|0)==0)return N=77,O_=i,N|0;if((Ub(e)|0)!=1)break;if(b=E_[l>>2]|0,m=E_[b+4>>2]|0,(E_[(E_[e+12>>2]|0)+4>>2]|0)<(((((E_[b+12>>2]|0)-m|0)*20|0|0)/100|0)+m|0))break;return N=77,O_=i,N|0}while(0);return N=0,O_=i,N|0}function tk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0;i=e+108|0,f=e|0,a=E_[f>>2]|0,t=Mb(i,((E_[a+12>>2]|0)+1-(E_[a+4>>2]|0)|0)/8|0)|0;do if((t|0)==2){if(a=E_[f>>2]|0,(Mb(e+204|0,((E_[a+12>>2]|0)+1-(E_[a+4>>2]|0)|0)/2|0)|0)!=1)break;a=e+60|0;do if(Ab(a)|0){if(!(Ab(e+156|0)|0))break;return n=120,n|0}while(0);if(!(db(a)|0))break;if(!(db(e+156|0)|0))break;return n=120,n|0}while(0);o=E_[f>>2]|0;do if(((E_[o+8>>2]|0)+1-(E_[o>>2]|0)|0)>=((E_[o+12>>2]|0)+1-(E_[o+4>>2]|0)|0)){if(!(vb(i)|0))break;if((E_[(E_[f>>2]|0)+12>>2]|0)<(((E_[r+12>>2]|0)+(E_[r+4>>2]|0)|0)/2|0|0))return n=94,n|0;if(!(cb(e+60|0,1)|0))break;if(!(cb(e+156|0,1)|0))break;return n=94,n|0}while(0);for(r=e+204|0,o=e+212|0,(E_[o>>2]|0)<0&&tb(r),u=e+244|0,l=e+240|0,s=0,b=0,k=((((E_[u>>2]|0)-(E_[l>>2]|0)>>2)*40|0)-40|0)/100|0;;){if((E_[o>>2]|0)<0&&tb(r),(k|0)>(((((E_[u>>2]|0)-(E_[l>>2]|0)>>2)*60|0)-60|0)/100|0|0))break;(bb(r,k)|0)>(b|0)?(c=k,d=bb(r,k)|0):(c=s,d=b),s=c,b=d,k=k+1|0}if(k=E_[f>>2]|0,d=E_[k+12>>2]|0,c=d-b+1|0,b=(E_[k>>2]|0)+s|0,s=E_[k+4>>2]|0,!((c|0)<=((((d-s|0)*90|0|0)/100|0)+s|0)&(c|0)>(s|0)))return n=0,n|0;s=Qu(k|0,c,b,1)|0,k=(((s|0)>(b|0))<<31>>31)+s|0,s=Gu(E_[f>>2]|0,c,k,1)|0,c=Gu(E_[f>>2]|0,s-1|0,k,0)|0,k=E_[f>>2]|0,b=E_[k+4>>2]|0,d=E_[k+12>>2]|0;do{if(!((c|0)>((((d-b|0)*20|0|0)/100|0)+b|0))){if(k=e+116|0,(E_[k>>2]|0)<0&&tb(i),l=e+148|0,u=e+144|0,o=(bb(i,((((E_[l>>2]|0)-(E_[u>>2]|0)>>2)*60|0)-60|0)/100|0)|0)*3|0,w=E_[f>>2]|0,v=E_[w+12>>2]|0,m=E_[w+4>>2]|0,p=v+1-m|0,(o|0)>(p|0)){h=v,_=m;break}do if(Gb(p,(E_[w+8>>2]|0)+1-(E_[w>>2]|0)|0,40,1)|0){if(m=E_[f>>2]|0,v=E_[m+4>>2]|0,o=E_[m+12>>2]|0,m=(o+v|0)/2|0,!((s|0)>(m|0)&(c|0)<(m|0)))break;if((Mb(i,(1-v+o|0)/5|0)|0)!=2)break;if((Mb(r,c+1|0)|0)!=3)break;return n=119,n|0}while(0);w=E_[f>>2]|0,p=E_[w+4>>2]|0,a=E_[w+12>>2]|0;do if((c|0)<=((((a-p|0)*20|0|0)/100|0)+p|0)){if((Mb(i,(1-p+a|0)/4|0)|0)!=1)break;if(w=E_[f>>2]|0,!(Gb((E_[w+12>>2]|0)+1-(E_[w+4>>2]|0)|0,(E_[w+8>>2]|0)+1-(E_[w>>2]|0)|0,40,1)|0))break;if(w=e+156|0,(E_[e+164>>2]|0)<0&&tb(w),o=((bb(w,((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*50|0)-50|0)/100|0)|0)<<3)-8|0,w=E_[f>>2]|0,(o|0)<=((E_[w+8>>2]|0)+1-(E_[w>>2]|0)|0))return n=110,n|0;if((E_[k>>2]|0)<0&&tb(i),w=bb(i,((E_[l>>2]|0)-(E_[u>>2]|0)>>2)-1|0)|0,o=E_[f>>2]|0,!((w|0)>(((E_[o+12>>2]|0)+1-(E_[o+4>>2]|0)|0)/2|0|0)))break;return n=110,n|0}while(0);return n=0,n|0}h=d,_=b}while(0);c=Mb(i,(h+1-_|0)/5|0)|0;do if((c-2|0)>>>0<2){if((Mb(i,-1)|0)<=1)return n=0,n|0;if(_=e+156|0,(E_[e+164>>2]|0)<0&&tb(_),h=bb(_,((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*25|0)-25|0)/100|0)|0,r=E_[f>>2]|0,(h|0)>(((E_[r+8>>2]|0)+1-(E_[r>>2]|0)|0)/4|0|0))break;if(!(Eb(e+60|0)|0))return n=119,n|0;if((Mb(_,-1)|0)!=1)break;return n=119,n|0}while(0);return(c|0)==1&(t|0)==1?(t=e+116|0,c=E_[t>>2]|0,(c|0)<0?(tb(i),E=E_[t>>2]|0):E=c,c=e+148|0,t=E_[c>>2]|0,_=e+144|0,r=E_[_>>2]|0,(E|0)<0?(tb(i),S=E_[c>>2]|0,g=E_[_>>2]|0):(S=t,g=r),_=(ub(i,(((t-r>>2)*40|0)-40|0)/100|0,(((S-g>>2)*60|0)-60|0)/100|0)|0)<<2,g=E_[f>>2]|0,(_|0)>=(((E_[g+12>>2]|0)+1-(E_[g+4>>2]|0)|0)*3|0|0)?(n=0,n|0):(g=Ob(e+156|0,66)|0,n=g?107:104,n|0)):(n=0,n|0)}function nk(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0;r=e|0,e=E_[r>>2]|0,i=E_[e>>2]|0,f=((E_[e+8>>2]|0)+i|0)/2|0,a=f+1|0,t=E_[e+12>>2]|0,n=E_[e+4>>2]|0,o=0,u=0,l=0,s=f-1|0;e:for(;;){do if((n|0)>(t|0))b=l,k=u,c=o;else{for(f=E_[e+16>>2]|0,d=o,h=u,_=l,w=0,v=0,m=n;;){p=(m_[(E_[f+((m-n|0)*12|0)>>2]|0)+(s-i)|0]|0)!=0;do{if(p){if(v){E=w,S=_,g=h,y=d;break}if(A=w+1|0,(w|0)==1){E=2,S=_,g=h,y=m-1|0;break}if((w|0)==2){E=3,S=_,g=m-1|0,y=d;break}if((w|0)==3){E=4,S=m-1|0,g=h,y=d;break}E=A,S=_,g=h,y=d;break}E=w,S=_,g=h,y=d}while(0);if(A=m+1|0,(A|0)>(t|0))break;d=y,h=g,_=S,w=E,v=p,m=A}if((E|0)!=4){b=S,k=g,c=y;break}if(m=t-n|0,(y|0)>=(((m*50|0|0)/100|0)+n|0)){b=S,k=g,c=y;break}if(!((S|0)<(((m*70|0|0)/100|0)+n|0))){O=9133;break e}b=S,k=g,c=y}while(0);if(m=s+1|0,(m|0)>(a|0))break;o=c,u=k,l=b,s=m}do if((O|0)==9133){if(!(rl(e|0,y,s)|0))break;if(!($u(E_[r>>2]|0,g,s)|0))break;if(!($u(E_[r>>2]|0,S,s)|0))break;return R=351,R|0}while(0);return R=0,R|0}function ok(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0;if(r=E_[e>>2]|0,(E_[r+32>>2]|0)!=(E_[r+28>>2]|0))return i=0,i|0;if(e=E_[r+12>>2]|0,f=E_[r+4>>2]|0,a=e+1-f|0,t=E_[r+8>>2]|0,n=E_[r>>2]|0,o=t+1-n|0,(a|0)<=(o|0)|(a|0)>(o*3|0|0))return i=0,i|0;do if((o|0)>2&(a|0)>2){if(u=o+f|0,(o|0)>0)for(l=0,s=f;;){if((n|0)>(t|0))b=l;else for(k=E_[r+16>>2]|0,c=l,d=n;;){if(h=((m_[(E_[k+((s-f|0)*12|0)>>2]|0)+(d-n)|0]|0)!=0)+c|0,_=d+1|0,(_|0)>(t|0)){b=h;break}c=h,d=_}if(d=s+1|0,!((d|0)<(u|0))){w=b;break}l=b,s=d}else w=0;if(s=o-2|0,(w|0)<(J_(s,s)|0)|(n|0)>(t|0))return i=0,i|0;s=E_[r+16>>2]|0,l=E_[s+12>>2]|0,u=0,d=0,c=n;do k=c-n|0,u=((m_[l+k|0]|0)!=0)+u|0,d=((m_[(E_[s+((e+~f|0)*12|0)>>2]|0)+k|0]|0)!=0)+d|0,c=c+1|0;while((c|0)<=(t|0));if((u|0)>(d|0))break;return i=0,i|0}while(0);return i=1,i|0}function uk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0;if(i=lk(e,r)|0,(i|0)!=0)return f=i,f|0;i=e|0,a=E_[i>>2]|0,t=E_[a+4>>2]|0,n=r+4|0,o=r+12|0,r=((E_[o>>2]|0)+(E_[n>>2]|0)|0)/2|0;do if((t|0)>=(r|0)){if(!(ok(e)|0))break;return f=44,f|0}while(0);u=E_[a+12>>2]|0;do{if(!((u|0)>(r|0))){if((u+1-t|0)<=((E_[a+8>>2]|0)+1-(E_[a>>2]|0)|0)){l=u,s=t;break}if(b=e+204|0,(Mb(b,-1)|0)!=1){k=E_[i>>2]|0,l=E_[k+12>>2]|0,s=E_[k+4>>2]|0;break}k=e+108|0,c=Fb(k,0,-1)|0,(E_[e+116>>2]|0)<0&&tb(k);do if((c|0)<(((((E_[e+148>>2]|0)-(E_[e+144>>2]|0)>>2)*50|0)-50|0)/100|0|0)){if(k=Fb(b,0,-1)|0,(E_[e+212>>2]|0)<0&&tb(b),!((k|0)>(((((E_[e+244>>2]|0)-(E_[e+240>>2]|0)>>2)*50|0)-50|0)/100|0|0)))break;return f=96,f|0}while(0);return f=39,f|0}l=u,s=t}while(0);do if((l+1-s<<1|0)>((ob(e+300|0)|0)*3|0|0)){if((E_[(E_[i>>2]|0)+4>>2]|0)<(((E_[o>>2]|0)+(E_[n>>2]|0)|0)/2|0|0))break;if((Mb(e+204|0,-1)|0)!=1)break;return f=44,f|0}while(0);return f=0,f|0}function lk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0;if(i=e|0,f=E_[i>>2]|0,(E_[f+32>>2]|0)!=(E_[f+28>>2]|0))return a=0,a|0;t=E_[f+12>>2]|0,n=E_[f+4>>2]|0,o=t+1-n|0;do{if((o|0)>4){if(u=E_[f+8>>2]|0,l=E_[f>>2]|0,s=u+1-l|0,(s|0)<=4){b=f;break}do{if((o<<1|0)>(s|0)){if((Mb(e+108|0,-1)|0)!=1)return a=0,a|0;if((Mb(e+204|0,-1)|0)==1){k=E_[i>>2]|0,c=k,d=E_[k+12>>2]|0,h=E_[k+4>>2]|0,_=E_[k+8>>2]|0,w=E_[k>>2]|0;break}return a=0,a|0}c=f,d=t,h=n,_=u,w=l}while(0);if((d+1-h|0)>=(_+1-w<<1|0)){b=c;break}if((Mb(e+60|0,-1)|0)!=1)return a=0,a|0;if((Mb(e+156|0,-1)|0)==1){b=E_[i>>2]|0;break}return a=0,a|0}b=f}while(0);f=E_[b+8>>2]|0,c=E_[b>>2]|0,w=f+1-c|0;do{if((w|0)>2){if(_=E_[b+12>>2]|0,h=E_[b+4>>2]|0,d=_+1-h|0,(d|0)<=2){v=9207;break}n=d-2|0,d=h,t=0,o=0;e:for(;;){for(l=d,m=o;;){if(p=l+1|0,(p|0)>=(_|0))break e;if(u=c+1|0,(u|0)<(f|0)){s=E_[b+16>>2]|0,k=m,E=0,S=u;do u=(m_[(E_[s+((p-h|0)*12|0)>>2]|0)+(S-c)|0]|0)!=0|0,k=u+k|0,E=(u^1)+E|0,S=S+1|0;while((S|0)<(f|0));g=k,y=E*5|0}else g=m,y=0;if(!((y|0)<(w|0)))break;l=p,m=g}d=p,t=((y|0)/(w|0)|0)+t|0,o=g}if(o=J_(n,w-2|0)|0,!((m*100|0|0)<(o*70|0|0))){A=t,O=o,R=m,F=_,M=h;break}return a=0,a|0}v=9207}while(0);if((v|0)==9207&&(v=qu(b|0)|0,b=E_[i>>2]|0,A=0,O=0,R=v,F=E_[b+12>>2]|0,M=E_[b+4>>2]|0),Gb(F+1-M|0,ob(e+300|0)|0,20,2)|0){e=E_[i>>2]|0,M=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0,F=E_[e+8>>2]|0,b=E_[e>>2]|0,v=F+1-b|0,m=(v|0)<(M|0)?v:M;do if((m|0)>5){w=E_[e+16>>2]|0,g=0,y=0;do p=E_[w+(y*12|0)>>2]|0,g=((m_[p+y|0]|0)!=0)+g+(((m_[p+(F-(b+y))|0]|0)!=0)<<31>>31)|0,y=y+1|0;while((y|0)<(m|0));if((((g|0)>-1?g:-g|0)<<1|0)<(m-1|0))break;return a=0,a|0}while(0);do if((A|0)==0){if((R*100|0|0)<(O*75|0|0))break;return a=46,a|0}while(0);do if((v|0)>6&(M|0)>6){if(m=(Wu(e|0)|0)*100|0,(m|0)>=((Ku(E_[i>>2]|0)|0)*95|0|0))return a=46,a|0;if(m=(Wu(E_[i>>2]|0)|0)*100|0,(m|0)<((qu(E_[i>>2]|0)|0)*95|0|0))break;return a=46,a|0}while(0);return a=0,a|0}if((A|0)>1)return a=0,a|0;if(e=R*100|0,(e|0)<(O*85|0|0))return a=0,a|0;do if((A|0)!=0){if(!((e|0)<(O*95|0|0)))break;return a=0,a|0}while(0);if(O=E_[i>>2]|0,i=(E_[O+8>>2]|0)+1-(E_[O>>2]|0)|0,e=E_[O+12>>2]|0,A=E_[O+4>>2]|0,O=e+1-A|0,(i|0)<=(O|0))return(O|0)<=(i|0)?(a=0,a|0):(R=((E_[r+12>>2]|0)+(E_[r+4>>2]|0)|0)/2|0,(A|0)>(R|0)?(a=44,a|0):(a=(e|0)>(R|0)?124:39,a|0));if(R=E_[r+4>>2]|0,M=E_[r+12>>2]|0,(A|0)>((((M-R|0)*90|0|0)/100|0)+R|0))return a=95,a|0;do if((M-e|0)<(A-((M+R|0)/2|0)|0)){if((i|0)<(O*5|0|0))break;return a=95,a|0}while(0);return a=45,a|0}function sk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;if(i=O_,O_=O_+16|0,f=i|0,a=i+8|0,t=e+108|0,(Mb(t,-1)|0)!=1)return n=0,O_=i,n|0;o=e+60|0;do if((Mb(o,-1)|0)==1){if(u=e+156|0,(Mb(u,-1)|0)!=1)break;if(l=e|0,s=E_[l>>2]|0,((E_[s+12>>2]|0)+1-(E_[s+4>>2]|0)<<1|0)<((E_[s+8>>2]|0)+1-(E_[s>>2]|0)|0))break;if(!(Nb(o,f)|0))break;if(!(Nb(u,a)|0))break;do if((E_[f>>2]|0)<0){if((E_[a>>2]|0)>=0)break;if((Mb(e+204|0,-1)|0)!=2)break;return n=94,O_=i,n|0}while(0);return(Mb(e+204|0,-1)|0)!=1?(n=0,O_=i,n|0):(u=E_[f>>2]|0,(u|0)<0?(E_[a>>2]|0)<=0?(n=0,O_=i,n|0):(s=r+4|0,b=r+12|0,k=tu(E_[l>>2]|0,((E_[b>>2]|0)+(E_[s>>2]|0)|0)/2|0)|0,c=E_[l>>2]|0,k?(s=(qu(c|0)|0)*10|0,c=E_[l>>2]|0,b=(E_[c+12>>2]|0)+1-(E_[c+4>>2]|0)|0,k=(E_[c+8>>2]|0)+1-(E_[c>>2]|0)|0,(s|0)<(J_(b*3|0,k)|0)?(n=47,O_=i,n|0):(n=(b|0)>(k<<1|0)?108:0,O_=i,n|0)):(n=(E_[c+4>>2]|0)<(((E_[b>>2]|0)+(E_[s>>2]|0)|0)/2|0|0)?39:44,O_=i,n|0)):(u|0)<=0?(n=0,O_=i,n|0):(E_[a>>2]|0)>=0?(n=0,O_=i,n|0):(u=E_[l>>2]|0,k=E_[u+12>>2]|0,b=E_[r+4>>2]|0,s=E_[r+12>>2]|0,(k|0)<=((s+b|0)/2|0|0)?(n=96,O_=i,n|0):(c=(E_[u+8>>2]|0)+1-(E_[u>>2]|0)|0,d=k+1-(E_[u+4>>2]|0)|0,(c*3|0|0)<=(d|0)?(h=c<<1,_=(h|0)<(d|0),w=_?0:92,O_=i,w|0):(d|0)>(1-b+s|0)?(n=92,O_=i,n|0):(h=c<<1,_=(h|0)<(d|0),w=_?0:92,O_=i,w|0))))}while(0);w=e+204|0;e:do if((Mb(w,-1)|0)==1){if(_=e|0,h=E_[_>>2]|0,((E_[h+8>>2]|0)+1-(E_[h>>2]|0)<<1|0)<((E_[h+12>>2]|0)+1-(E_[h+4>>2]|0)|0))break;if(!(Nb(t,f)|0))break;if(!(Nb(w,a)|0))break;do if((Mb(o,-1)|0)==1){if((Mb(e+156|0,-1)|0)!=1)break;if(h=E_[f>>2]|0,(h|0)>=0){if((h|0)<=0)break e;if((E_[a>>2]|0)>=0)break e;return n=(E_[(E_[_>>2]|0)+12>>2]|0)>(((E_[r+12>>2]|0)+(E_[r+4>>2]|0)|0)/2|0|0)?92:96,O_=i,n|0}if((E_[a>>2]|0)<=0)break e;return h=r+4|0,d=r+12|0,tu(E_[_>>2]|0,((E_[d>>2]|0)+(E_[h>>2]|0)|0)/2|0)|0?(n=47,O_=i,n|0):(n=(E_[(E_[_>>2]|0)+4>>2]|0)<(((E_[d>>2]|0)+(E_[h>>2]|0)|0)/2|0|0)?39:44,O_=i,n|0)}while(0);if(l=E_[_>>2]|0,((E_[l+8>>2]|0)+1-(E_[l>>2]|0)<<1|0)<((E_[l+12>>2]|0)+1-(E_[l+4>>2]|0)|0))break;if(l=E_[f>>2]|0,(l|0)<0){do if((E_[a>>2]|0)<0){if((Mb(o,-1)|0)!=1)break;if((Mb(e+156|0,-1)|0)!=2)break;return n=60,O_=i,n|0}while(0);v=E_[f>>2]|0}else v=l;if((v|0)<=0)break;if((E_[a>>2]|0)<=0)break;if((Mb(o,-1)|0)!=2)break;if((Mb(e+156|0,-1)|0)!=1)break;return n=62,O_=i,n|0}while(0);return n=0,O_=i,n|0}function bk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0;i=O_,O_=O_+152|0,f=i|0,a=i+48|0,t=i+96|0,n=i+144|0,o=e|0,u=dl(E_[o>>2]|0,0)|0,l=e+204|0,s=E_[o>>2]|0;do if((Mb(l,(((E_[s+12>>2]|0)+1-(E_[s+4>>2]|0)|0)/10|0)+1|0)|0)==2){if(!(Ob(l,50)|0))break;if(b=e+108|0,(Mb(b,-1)|0)!=1)break;return yb(b)|0?(k=65,O_=i,k|0):(b=cb(e+156|0,1)|0,O_=i,(b?65:82)|0)}while(0);if(s=u|0,b=u+8|0,c=((E_[b>>2]|0)+(E_[s>>2]|0)|0)/2|0,d=u+12|0,h=(Ju(E_[o>>2]|0,E_[d>>2]|0,c,0)|0)+1|0,_=E_[o>>2]|0,w=E_[_+4>>2]|0,v=E_[_+12>>2]|0,(h|0)<((((v-w|0)*90|0|0)/100|0)+w|0)?(m=c,p=h,E=_,S=v):(v=E_[s>>2]|0,h=(Ju(_|0,E_[d>>2]|0,v,0)|0)+1|0,_=E_[o>>2]|0,m=v,p=h,E=_,S=E_[_+12>>2]|0),(p|0)>=(S|0))return k=0,O_=i,k|0;if(rl(E|0,p,m)|0){E=e+60|0;do if(vb(E)|0){if(S=Ju(E_[o>>2]|0,p,E_[b>>2]|0,1)|0,!((S|0)<(E_[(E_[o>>2]|0)+12>>2]|0)))break;return k=101,O_=i,k|0}while(0);do if(hb(E)|0){if(S=Ju(E_[o>>2]|0,p,((E_[b>>2]|0)+(E_[s>>2]|0)|0)/2|0,1)|0,!((S|0)<(E_[(E_[o>>2]|0)+12>>2]|0)))break;return k=101,O_=i,k|0}while(0);do if(vb(l)|0){if(s=Ju(E_[o>>2]|0,p,E_[b>>2]|0,1)|0,E=E_[o>>2]|0,S=E_[E+4>>2]|0,_=E_[E+12>>2]|0,(s|0)<((((_-S|0)*75|0|0)/100|0)+S|0))return k=103,O_=i,k|0;if(!((s|0)<(_|0)))break;return k=101,O_=i,k|0}while(0);return k=112,O_=i,k|0}do if($u(E_[o>>2]|0,p,m)|0){ab(f,u,0),ab(a,u,1),ab(t,u,5);do if((zb(e)|0)==1){if(_=E_[e+24>>2]|0,s=E_[o>>2]|0,(((E_[_+8>>2]|0)+(E_[_>>2]|0)|0)/2|0|0)<=(((E_[s+8>>2]|0)+(E_[s>>2]|0)|0)/2|0|0)){g=9358;break}if(!(cb(f,1)|0)){g=9358;break}if(!(cb(a,1)|0)){g=9358;break}s=t+8|0,(E_[s>>2]|0)<0&&tb(t),_=t+40|0,S=t+36|0,E=bb(t,((((E_[_>>2]|0)-(E_[S>>2]|0)>>2)*30|0)-30|0)/100|0)|0,(E_[s>>2]|0)<0&&tb(t),(E|0)<(bb(t,((((E_[_>>2]|0)-(E_[S>>2]|0)>>2)*70|0)-70|0)/100|0)|0)?(y=52,A=1):g=9358}else g=9358;while(0);e:do if((g|0)==9358){S=e+156|0;do if(hb(S)|0){if(!(vb(S)|0))break;if((Mb(S,-1)|0)!=1)break;if(!(vb(e+108|0)|0))break;if(_=E_[o>>2]|0,E=E_[_+4>>2]|0,(E_[r+12>>2]|0)>(((((E_[_+12>>2]|0)-E|0)*80|0|0)/100|0)+E|0)){y=57,A=1;break e}}while(0);if(E=nl(E_[o>>2]|0,n)|0,E&(E_[n>>2]|0)>0){E=E_[d>>2]|0,_=E_[o>>2]|0,s=E_[_+4>>2]|0;do if((E|0)<(((E_[_+12>>2]|0)+s|0)/2|0|0)){if(h=E_[b>>2]|0,v=h+2|0,(v|0)>(E_[_+8>>2]|0))break;if(c=E_[_>>2]|0,w=E_[(E_[_+16>>2]|0)+((E+1-s|0)*12|0)>>2]|0,(m_[w+(h+1-c)|0]|0)==0){y=115,A=1;break e}if((m_[w+(v-c)|0]|0)==0){y=115,A=1;break e}if(Ob(S,50)|0){y=115,A=1;break e}}while(0);y=103,A=1;break}if(s=E_[o>>2]|0,E=E_[s+4>>2]|0,(p|0)>(((((E_[s+12>>2]|0)-E|0)*85|0|0)/100|0)+E|0)){if(vb(e+108|0)|0){y=81,A=1;break}O=E_[o>>2]|0}else O=s;if(s=Ju(O|0,p,m,1)|0,E=E_[o>>2]|0,(s|0)<(E_[E+12>>2]|0)&&kb(S,((s+p|0)/2|0)-(E_[E+4>>2]|0)|0,2)|0){y=103,A=1;break}if((Mb(l,-1)|0)!=1){y=0,A=0;break}if(E=E_[d>>2]|0,(E+1-(E_[u+4>>2]|0)|0)>=((E_[r+12>>2]|0)+1-(E_[r+4>>2]|0)|0)){y=81,A=1;break}if(s=E_[o>>2]|0,(E_[b>>2]|0)<(((E_[s+8>>2]|0)+(E_[s>>2]|0)|0)/2|0|0)&&(E|0)<(((E_[s+12>>2]|0)+(E_[s+4>>2]|0)|0)/2|0|0)){y=50,A=1;break}y=113,A=1}while(0);if(s=E_[t+36>>2]|0,E=s,(s|0)!=0&&(_=t+40|0,c=E_[_>>2]|0,(s|0)!=(c|0)&&(E_[_>>2]=c+(~((c-4+(-E|0)|0)>>>2)<<2)),hn(s)),s=E_[a+36>>2]|0,E=s,(s|0)!=0&&(c=a+40|0,_=E_[c>>2]|0,(s|0)!=(_|0)&&(E_[c>>2]=_+(~((_-4+(-E|0)|0)>>>2)<<2)),hn(s)),s=E_[f+36>>2]|0,E=s,(s|0)!=0&&(_=f+40|0,c=E_[_>>2]|0,(s|0)!=(c|0)&&(E_[_>>2]=c+(~((c-4+(-E|0)|0)>>>2)<<2)),hn(s)),(A|0)!=1)break;return k=y,O_=i,k|0}while(0);return k=0,O_=i,k|0}function kk(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0;f=e|0,a=dl(E_[f>>2]|0,0)|0,t=a|0,n=E_[f>>2]|0,o=(E_[t>>2]|0)-(E_[n>>2]|0)|0,u=a+8|0,l=(E_[n+8>>2]|0)-(E_[u>>2]|0)|0,n=e+60|0;do if(!(vb(n)|0)){if(!(wb(n)|0))break;if(!(vb(e+156|0)|0))break;return s=68,s|0}while(0);b=e+156|0;do if(!(hb(b)|0)){k=e+108|0;do if(Gb(o,l,40,1)|0){if((Mb(k,-1)|0)!=2)break;if((Mb(e+204|0,-1)|0)!=2)break;return s=35,s|0}while(0);do if((Mb(k,-1)|0)==1){if(c=e+204|0,(Mb(c,-1)|0)!=1)break;d=a+12|0,h=Ju(E_[f>>2]|0,E_[d>>2]|0,((E_[u>>2]|0)+(E_[t>>2]|0)|0)/2|0,0)|0,Qb(r,4)|0?_=9434:Qb(r,2)|0&&(_=9434);do if((_|0)==9434){if(hb(n)|0)break;if(!(hb(c)|0))break;if(w=Ju(E_[f>>2]|0,h,((E_[u>>2]|0)+(E_[t>>2]|0)|0)/2|0,1)|0,!((w|0)<(E_[(E_[f>>2]|0)+12>>2]|0)))break;return s=233,s|0}while(0);if(c=((Ju(E_[f>>2]|0,h,((E_[u>>2]|0)+(E_[t>>2]|0)|0)/2|0,1)|0)+h|0)/2|0,(c|0)>=((E_[(E_[f>>2]|0)+12>>2]|0)-1|0))break;if(wb(n)|0)break;if(w=Xu(E_[f>>2]|0,c,((E_[u>>2]|0)+(E_[t>>2]|0)|0)/2|0,1)|0,c=E_[f>>2]|0,(w|0)>(E_[c>>2]|0))break;return w=e+300|0,v=bb(w,(E_[a+4>>2]|0)-(E_[c+4>>2]|0)|0)|0,c=(v|0)<(bb(w,(E_[d>>2]|0)-(E_[(E_[f>>2]|0)+4>>2]|0)|0)|0),s=c?52:81,s|0}while(0);c=E_[f>>2]|0;do if(((E_[c+8>>2]|0)+1-(E_[c>>2]|0)<<1|0)>(((E_[u>>2]|0)+1-(E_[t>>2]|0)|0)*5|0|0)){if(w=a+4|0,v=a+12|0,m=Yb(e,((E_[v>>2]|0)+(E_[w>>2]|0)|0)/2|0)|0,p=Mb(e+204|0,-1)|0,(m|0)==3){E=E_[w>>2]|0,w=E_[f>>2]|0,S=E_[w+4>>2]|0,g=E_[w+12>>2]|0,w=(g+S|0)/2|0;do if((E|0)<(w|0)){if(y=E_[v>>2]|0,(y|0)<=(w|0))break;if(((1-E+y|0)*3|0|0)<(1-S+g|0))break;if((p-2|0)>>>0>=2)break;if(vb(n)|0)break;return s=109,s|0}while(0);do if((o|0)>(l|0)){if(!(vb(n)|0))break;if((Vb(e,((E_[u>>2]|0)+(E_[t>>2]|0)|0)/2|0)|0)!=4)break;return s=64,s|0}while(0);if((m|0)!=4)break}else if((m|0)!=4)break;if(!(Gb(o,l,40,1)|0))break;if(!(vb(n)|0))break;return s=64,s|0}while(0);if((Mb(k,-1)|0)!=1)break;if(!(Ab(e+204|0)|0))break;if(hb(n)|0)break;if(Ob(b,66)|0)break;return s=65,s|0}while(0);if(!(Gb(o,l,50,1)|0)){do if((o|0)>(l|0)){if(!(vb(b)|0))break;if((Mb(e+108|0,-1)|0)!=1)break;if((Mb(e+204|0,-1)|0)!=1)break;return s=68,s|0}while(0);do if(Gb(o,l,50,1)|0){if((Mb(e+204|0,-1)|0)>1)return s=97,s|0;if(!((Mb(b,-1)|0)>1))break;return s=97,s|0}while(0);return s=0,s|0}l=e+204|0;do if((Mb(l,-1)|0)==1){if(!(hb(b)|0))break;if(!(_l(E_[f>>2]|0)|0))break;return s=68,s|0}while(0);do if((Mb(l,-1)|0)<=1){if((Mb(b,-1)|0)>1)break;if(wl(E_[f>>2]|0)|0)break;(E_[e+212>>2]|0)<0&&tb(l),o=(bb(l,((E_[e+244>>2]|0)-(E_[e+240>>2]|0)>>2)-1|0)|0)*3|0,_=E_[f>>2]|0;do if((o|0)<((E_[_+12>>2]|0)+1-(E_[_+4>>2]|0)|0)){if((E_[e+164>>2]|0)<0&&tb(b),r=(bb(b,((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*55|0)-55|0)/100|0)|0)*5|0,c=E_[f>>2]|0,(r|0)<((E_[c+8>>2]|0)+1-(E_[c>>2]|0)|0))break;return s=97,s|0}while(0);return Ab(n)|0?(s=110,s|0):(_=E_[f>>2]|0,o=E_[_+4>>2]|0,s=(((((E_[_+12>>2]|0)-o|0)*80|0|0)/100|0)+o|0)<(((E_[i+12>>2]|0)+(E_[i+4>>2]|0)|0)/2|0|0)?176:111,s|0)}while(0);return i=J_((E_[a+12>>2]|0)+1-(E_[a+4>>2]|0)<<2,(E_[u>>2]|0)+1-(E_[t>>2]|0)|0)|0,t=E_[f>>2]|0,(i|0)>=(J_((E_[t+8>>2]|0)+1-(E_[t>>2]|0)|0,(E_[t+12>>2]|0)+1-(E_[t+4>>2]|0)|0)|0)?(s=81,s|0):vb(e+108|0)|0?(s=81,s|0):(s=vb(n)|0,(s?81:0)|0)}function ck(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0;i=O_,O_=O_+8|0,f=i|0,a=e|0,t=dl(E_[a>>2]|0,0)|0,n=t+8|0,o=E_[n>>2]|0,u=t|0,l=E_[u>>2]|0,s=E_[a>>2]|0;do{if(((o+1-l|0)*3|0|0)<((E_[s+8>>2]|0)+1-(E_[s>>2]|0)|0)){if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0);do if(E&p){if(!(Qb(r,4)|0||Qb(r,2)|0))break;if(c=E_[(E_[a>>2]|0)+8>>2]|0,s=e+156|0,(E_[e+164>>2]|0)<0&&tb(s),t=c-(bb(s,((((E_[e+196>>2]|0)-(E_[e+192>>2]|0)>>2)*5|0)-5|0)/100|0)|0)|0,(t|0)>=(E_[n>>2]|0))return b=243,O_=i,b|0;if(t=E_[a>>2]|0,s=E_[t>>2]|0,c=(bb(m,(E_[_>>2]|0)-(E_[t+4>>2]|0)|0)|0)+s|0,s=E_[a>>2]|0,t=E_[s>>2]|0,(c|0)>(((((E_[s+8>>2]|0)-t|0)*5|0|0)/100|0)+t|0))break;return b=243,O_=i,b|0}while(0);p||(g=9523)}else g=9523;do if((g|0)==9523){if(!(vb(m)|0))break;if(!(vb(e+204|0)|0))break;if(p=(Gu(E_[a>>2]|0,E_[_>>2]|0,(E_[n>>2]|0)+1|0,0)|0)-1|0,t=Gu(E_[a>>2]|0,p,(E_[n>>2]|0)+1|0,1)|0,!((t|0)>(E_[(E_[a>>2]|0)+4>>2]|0)))break;return b=54,O_=i,b|0}while(0);return m=(Gu(E_[a>>2]|0,E_[_>>2]|0,h,0)|0)-1|0,t=Gu(E_[a>>2]|0,m,h,1)|0,h=E_[a>>2]|0,m=E_[h+4>>2]|0,(t|0)<=(m|0)?(b=98,O_=i,b|0):(t=Mb(e+108|0,(1-m+(E_[h+12>>2]|0)|0)/2|0)|0,(t|0)==1?(b=115,O_=i,b|0):(t|0)==2?(b=107,O_=i,b|0):(b=0,O_=i,b|0))}if(!($u(S|0,v,w)|0)){S=E_[a>>2]|0;do if(((E_[S+8>>2]|0)+1-(E_[S>>2]|0)|0)>(((E_[n>>2]|0)+1-(E_[u>>2]|0)|0)*3|0|0)){if(t=((E_[S+12>>2]|0)+(E_[S+4>>2]|0)|0)/2|0,(E_[_>>2]|0)>=(t|0))break;if((Yb(e,t)|0)!=3)break;if(hb(e+60|0)|0)break;return b=109,O_=i,b|0}while(0);return e=tl(E_[a>>2]|0,f)|0,b=e&(E_[f>>2]|0)>0?115:0,O_=i,b|0}if(f=E_[u>>2]|0,u=((((E_[n>>2]|0)-f|0)*10|0|0)/100|0)+f|0,n=(f|0)<(u|0)?u:f,f=(Gu(E_[a>>2]|0,E_[_>>2]|0,n,0)|0)-1|0,_=Gu(E_[a>>2]|0,f,n,1)|0,n=(_|0)>(E_[(E_[a>>2]|0)+4>>2]|0),_=Qb(r,4)|0,!n){do{if(_){if(!E)break;return b=243,O_=i,b|0}if(!((Qb(r,2)|0)&E))break;return b=243,O_=i,b|0}while(0);return b=100,O_=i,b|0}_?g=9534:Qb(r,2)|0&&(g=9534);do if((g|0)==9534){if(r=Gu(E_[a>>2]|0,v,w,1)|0,_=E_[a>>2]|0,n=E_[_+4>>2]|0,f=E_[_+12>>2]|0,(v|0)>((f+n|0)/2|0|0)){if(_=(r|0)>((((f-n|0)*20|0|0)/100|0)+n|0),!(_|E))break;return b=_?225:242,O_=i,b|0}if(!E)break;return b=242,O_=i,b|0}while(0);return b=97,O_=i,b|0}function dk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(i=E_[r>>2]|0,f=r+4|0,a=E_[f>>2]|0,!((i|0)>(a|0))){if(t=e|0,n=E_[t>>2]|0,o=e+4|0,u=E_[o>>2]|0,(n|0)>(u|0))return l=r,r=e,e=E_[l+4>>2]|0,E_[r>>2]=E_[l>>2],void(E_[r+4>>2]=e);(i|0)<(n|0)?(E_[t>>2]=i,s=E_[f>>2]|0):s=a,(s|0)<=(u|0)||(E_[o>>2]=s)}}function hk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0;return i=E_[e>>2]|0,f=E_[e+4>>2]|0,(i|0)>(f|0)?(a=2147483647,a|0):(e=E_[r>>2]|0,t=E_[r+4>>2]|0,(e|0)>(t|0)?(a=2147483647,a|0):(t|0)>=(i|0)?((e|0)>(f|0)?e-f|0:0)|0:(a=i-t|0,a|0))}function _k(e,r,i){e|=0,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]|0)|0)|0))break;q=(E_[e+8>>2]|0)+1-(E_[e>>2]|0)|0,W=(E_[e+12>>2]|0)+1-(E_[e+4>>2]|0)|0;do if((q|0)<=(W|0)){if(Gb(q,W,40,1)|0)break;if(!(Gb((E_[U>>2]|0)+1-(E_[z>>2]|0)|0,(E_[B>>2]|0)+1-(E_[H>>2]|0)|0,20,2)|0))break e;if(!(Gb((E_[Z>>2]|0)+1-(E_[j>>2]|0)|0,(E_[Y>>2]|0)+1-(E_[V>>2]|0)|0,20,2)|0))break e;if(K=v,E_[v>>2]=58,E_[K+4>>2]=0,X=e+32|0,G=E_[X>>2]|0,(G|0)==(E_[e+36>>2]|0)){Ul(e+28|0,K);break e}(G|0)==0?Q=0:(K=G,G=E_[v+4>>2]|0,E_[K>>2]=E_[v>>2],E_[K+4>>2]=G,Q=E_[X>>2]|0),E_[X>>2]=Q+8;break e}while(0);if(V=S,E_[S>>2]=61,E_[V+4>>2]=0,Y=e+32|0,j=E_[Y>>2]|0,(j|0)==(E_[e+36>>2]|0)){Ul(e+28|0,V);break}(j|0)==0?J=0:(V=j,j=E_[S+4>>2]|0,E_[V>>2]=E_[S>>2],E_[V+4>>2]=j,J=E_[Y>>2]|0),E_[Y>>2]=J+8}else{do if(Gb(L,x,60,1)|0){do if((lk(R,i)|0)==46){if((lk(F,i)|0)==46){if(Y=w,E_[w>>2]=58,E_[Y+4>>2]=0,j=e+32|0,V=E_[j>>2]|0,(V|0)==(E_[e+36>>2]|0)){Ul(e+28|0,Y);break e}(V|0)==0?$=0:(Y=V,V=E_[w+4>>2]|0,E_[Y>>2]=E_[w>>2],E_[Y+4>>2]=V,$=E_[j>>2]|0),E_[j>>2]=$+8;break e}if(j=E_[P+4>>2]|0,((E_[P+12>>2]|0)+1-j|0)<=((E_[T+12>>2]|0)+1-(E_[T+4>>2]|0)|0))break;if((j|0)<=(((E_[i+12>>2]|0)+(E_[i+4>>2]|0)|0)/2|0|0))break;if(j=c,E_[c>>2]=59,E_[j+4>>2]=0,V=e+32|0,Y=E_[V>>2]|0,(Y|0)==(E_[e+36>>2]|0)){Ul(e+28|0,j);break e}(Y|0)==0?er=0:(j=Y,Y=E_[c+4>>2]|0,E_[j>>2]=E_[c>>2],E_[j+4>>2]=Y,er=E_[V>>2]|0),E_[V>>2]=er+8;break e}while(0);Qb(r,4)|0?rr=9635:Qb(r,2)|0&&(rr=9635);do if((rr|0)==9635){if(V=lk(F,i)|0,!((V|0)==95|(V|0)==45))break;if(V=k,E_[k>>2]=177,E_[V+4>>2]=0,Y=e+32|0,j=E_[Y>>2]|0,(j|0)==(E_[e+36>>2]|0)){Ul(e+28|0,V);break e}(j|0)==0?ir=0:(V=j,j=E_[k+4>>2]|0,E_[V>>2]=E_[k>>2],E_[V+4>>2]=j,ir=E_[Y>>2]|0),E_[Y>>2]=ir+8;break e}while(0);Y=T|0,j=P|0;do if(ru(Y,j)|0){if(!(ru(j,Y)|0))break;if((E_[T+32>>2]|0)==(E_[T+28>>2]|0))break;if((E_[P+32>>2]|0)==(E_[P+28>>2]|0))break;if(V=l,E_[l>>2]=103,E_[V+4>>2]=0,Z=e+32|0,H=E_[Z>>2]|0,(H|0)==(E_[e+36>>2]|0)){Ul(e+28|0,V);break e}(H|0)==0?fr=0:(V=H,H=E_[l+4>>2]|0,E_[V>>2]=E_[l>>2],E_[V+4>>2]=H,fr=E_[Z>>2]|0),E_[Z>>2]=fr+8;break e}while(0);if(Z=((E_[T+8>>2]|0)+(E_[T>>2]|0)|0)/2|0,H=P|0,V=E_[H>>2]|0,B=E_[P+8>>2]|0,(Z|0)>=((B+V|0)/2|0|0))break;if(z=P+12|0,U=P+4|0,!(((E_[z>>2]|0)+1-(E_[U>>2]|0)|0)>(1-V+B|0)&(Z|0)<(V|0)))break;if(!(ru(Y,j)|0))break;if(V=E_[T+12>>2]|0,Z=E_[T+4>>2]|0,B=E_[z>>2]|0,(V+1-Z<<2|0)<=((B+1-(E_[U>>2]|0)|0)*5|0|0))break;if(!(Gb(V-Z|0,B-Z|0,10,1)|0))break;if(Z=kn(40)|0,B=Z,ol(B,P),V=M,E_[V>>2]=E_[Z>>2],E_[V+4>>2]=E_[Z+4>>2],E_[V+8>>2]=E_[Z+8>>2],E_[V+12>>2]=E_[Z+12>>2],Z=M+20|0,V=kn(4)|0,U=V,E_[Z>>2]=U,E_[M+16>>2]=U,E_[M+24>>2]=V+4,(V|0)==0?ar=0:(E_[U>>2]=B,ar=U),E_[Z>>2]=ar+4,E_[M+28>>2]=0,E_[M+32>>2]=0,E_[M+36>>2]=0,Ll(M,r,i),rr=vs(M,108)|0?9670:vs(M,124)|0?9670:9674,(rr|0)==9670&&(hs(e,102,(E_[H>>2]|0)-1|0,105,0)|0?tr=1:rr=9674),(rr|0)==9674&&(tr=0),os(M),(tr|0)!=0)break e}while(0);do if((L|0)>(x|0)){if(H=E_[P>>2]|0,Z=E_[P+8>>2]|0,(((E_[T+8>>2]|0)+(E_[T>>2]|0)|0)/2|0|0)>=((Z+H|0)/2|0|0))break;if(U=(E_[P+12>>2]|0)+1-(E_[P+4>>2]|0)|0,((E_[T+12>>2]|0)+1-(E_[T+4>>2]|0)<<1|0)<=(U*3|0|0))break;if(((E_[T+32>>2]|0)-(E_[T+28>>2]|0)|0)!=4)break;if(((E_[P+32>>2]|0)-(E_[P+28>>2]|0)|0)!=4)break;if(!(Gb(1-H+Z|0,U,50,1)|0))break;if(U=a,E_[a>>2]=37,E_[U+4>>2]=0,Z=e+32|0,H=E_[Z>>2]|0,(H|0)==(E_[e+36>>2]|0)){Ul(e+28|0,U);break e}(H|0)==0?nr=0:(U=H,H=E_[a+4>>2]|0,E_[U>>2]=E_[a>>2],E_[U+4>>2]=H,nr=E_[Z>>2]|0),E_[Z>>2]=nr+8;break e}while(0);if((L|0)>=(x|0)){if(Z=T+12|0,H=P+4|0,(E_[Z>>2]|0)>(E_[H>>2]|0))break;U=lk(F,i)|0,B=T+32|0,V=T+28|0;do if((E_[B>>2]|0)==(E_[V>>2]|0)){if((U|0)==46)or=P+8|0,ur=P|0;else{if((U|0)==0)break e;if(z=P+8|0,W=P|0,!(Gb((E_[P+12>>2]|0)+1-(E_[H>>2]|0)|0,(E_[z>>2]|0)+1-(E_[W>>2]|0)|0,50,1)|0))break;or=z,ur=W}do if(Gb((E_[T+8>>2]|0)+1-(E_[T>>2]|0)|0,(E_[or>>2]|0)+1-(E_[ur>>2]|0)|0,50,1)|0){if(Ob(R+60|0,50)|0)break;if(W=g,E_[g>>2]=33,E_[W+4>>2]=0,z=e+32|0,q=E_[z>>2]|0,(q|0)==(E_[e+36>>2]|0)){Ul(e+28|0,W);break e}(q|0)==0?lr=0:(W=q,q=E_[g+4>>2]|0,E_[W>>2]=E_[g>>2],E_[W+4>>2]=q,lr=E_[z>>2]|0),E_[z>>2]=lr+8;break e}while(0);if((Mb(R+204|0,-1)|0)!=1)break e;if(j=y,E_[y>>2]=63,E_[j+4>>2]=0,Y=e+32|0,z=E_[Y>>2]|0,(z|0)==(E_[e+36>>2]|0)){Ul(e+28|0,j);break e}(z|0)==0?sr=0:(j=z,z=E_[y+4>>2]|0,E_[j>>2]=E_[y>>2],E_[j+4>>2]=z,sr=E_[Y>>2]|0),E_[Y>>2]=sr+8;break e}while(0);if(!((U|0)==95|(U|0)==45))break;if(!(Qb(r,4)|0||Qb(r,2)|0))break;if(((E_[B>>2]|0)-(E_[V>>2]|0)|0)!=4)break;if(Y=dl(T,0)|0,z=E_[Y+8>>2]|0,j=E_[Y>>2]|0,((E_[P+8>>2]|0)+1-(E_[P>>2]|0)|0)<(z+1-j|0))break;if(((E_[H>>2]|0)-(E_[Z>>2]|0)|0)>=((E_[Y+12>>2]|0)+1-(E_[Y+4>>2]|0)|0))break;if(Gb(j-(E_[T>>2]|0)|0,(E_[T+8>>2]|0)-z|0,40,1)|0){if(z=A,E_[A>>2]=186,E_[z+4>>2]=0,j=e+32|0,Y=E_[j>>2]|0,(Y|0)==(E_[e+36>>2]|0)){Ul(e+28|0,z);break}(Y|0)==0?br=0:(z=Y,Y=E_[A+4>>2]|0,E_[z>>2]=E_[A>>2],E_[z+4>>2]=Y,br=E_[j>>2]|0),E_[j>>2]=br+8;break}if(j=O,E_[O>>2]=170,E_[j+4>>2]=0,Y=e+32|0,z=E_[Y>>2]|0,(z|0)==(E_[e+36>>2]|0)){Ul(e+28|0,j);break}(z|0)==0?kr=0:(j=z,z=E_[O+4>>2]|0,E_[j>>2]=E_[O>>2],E_[j+4>>2]=z,kr=E_[Y>>2]|0),E_[Y>>2]=kr+8;break}Y=lk(R,i)|0;do if((Y|0)==124|(Y|0)==39)cr=46;else if((Y|0)==45)cr=((E_[T+12>>2]|0)+1-(E_[T+4>>2]|0)<<1|0)>((E_[T+8>>2]|0)+1-(E_[T>>2]|0)|0)?46:45;else{if((Y|0)!=0){cr=Y;break}if((E_[T+32>>2]|0)!=(E_[T+28>>2]|0)){cr=0;break}if(z=(E_[T+12>>2]|0)+1-(E_[T+4>>2]|0)|0,(z<<1|0)>=((E_[P+12>>2]|0)+1-(E_[P+4>>2]|0)|0)){cr=0;break}if(j=(E_[T+8>>2]|0)+1-(E_[T>>2]|0)|0,(j|0)>((E_[P+8>>2]|0)+1-(E_[P>>2]|0)|0)){cr=0;break}q=(L*10|0|0)<(J_(z*7|0,j)|0),cr=q?39:46}while(0);do if((E_[P+32>>2]|0)==(E_[P+28>>2]|0)){if(Y=(cr|0)==46,!((cr|0)==46|(cr|0)==39))break;Z=F+204|0,H=P+12|0,V=P+4|0;do if((Mb(Z,((E_[H>>2]|0)+1-(E_[V>>2]|0)|0)/4|0)|0)==2){if((E_[V>>2]|0)<=(E_[T+12>>2]|0))break;if(B=P|0,U=P+8|0,q=T|0,(((E_[U>>2]|0)+(E_[B>>2]|0)|0)/2|0|0)>=(E_[q>>2]|0))break;j=kn(40)|0,z=j,ol(z,P),W=N,E_[W>>2]=E_[j>>2],E_[W+4>>2]=E_[j+4>>2],E_[W+8>>2]=E_[j+8>>2],E_[W+12>>2]=E_[j+12>>2],j=N+20|0,W=kn(4)|0,X=W,E_[j>>2]=X,E_[N+16>>2]=X,E_[N+24>>2]=W+4,(W|0)==0?dr=0:(E_[X>>2]=z,dr=X),E_[j>>2]=dr+4,E_[N+28>>2]=0,E_[N+32>>2]=0,E_[N+36>>2]=0,Ll(N,r,i);r:do if(vs(N,110)|0){do{if(Y){if(j=E_[B>>2]|0,X=E_[U>>2]|0,(E_[q>>2]|0)>=((X+j|0)/2|0|0)&&(E_[T+8>>2]|0)<=(X|0)){hr=j,_r=X;break}if(X=t,E_[t>>2]=110,E_[X+4>>2]=0,j=e+32|0,z=E_[j>>2]|0,(z|0)==(E_[e+36>>2]|0)){Ul(e+28|0,X),wr=1;
break r}(z|0)==0?vr=0:(X=z,z=E_[t+4>>2]|0,E_[X>>2]=E_[t>>2],E_[X+4>>2]=z,vr=E_[j>>2]|0),E_[j>>2]=vr+8,wr=1;break r}hr=E_[B>>2]|0,_r=E_[U>>2]|0}while(0);for(j=Qu(I,((E_[H>>2]|0)+(E_[V>>2]|0)|0)/2|0,(_r+hr|0)/2|0,1)|0,z=((E_[U>>2]|0)+(E_[B>>2]|0)|0)/2|0;;){if((z|0)>(j|0))break;if(X=Ju(I,((E_[H>>2]|0)+(E_[V>>2]|0)|0)/2|0,z,1)|0,(X|0)<(E_[H>>2]|0))break;z=z+1|0}if((E_[B>>2]|0)>=(z|0)){wr=0;break}if((z|0)>=(E_[U>>2]|0)){wr=0;break}do if(Qb(r,2)|0){if(!(Ab(F+156|0)|0))break;j=z-1|0,hs(e,84,j,304,1)|0,wr=1;break r}while(0);hs(e,114,z-1|0,Y?105:237,1)|0,wr=1}else wr=0;while(0);if(os(N),(wr|0)!=0)break e}while(0);if(!Y)break;if((Mb(Z,((E_[H>>2]|0)+1-(E_[V>>2]|0)|0)/4|0)|0)!=1)break;if((E_[T+12>>2]|0)>(E_[V>>2]|0))break;if(U=F+156|0,B=P+8|0,q=P|0,(Mb(U,((E_[B>>2]|0)+1-(E_[q>>2]|0)|0)/2|0)|0)>=3)break;do if(nl(I,D)|0){if(j=Q_(E_[D>>2]|0)|0,(j|0)<(((E_[H>>2]|0)+1-(E_[V>>2]|0)|0)/2|0|0))break;j=E_[D>>2]|0;do{if((j|0)>0){if((E_[F+164>>2]|0)<0&&tb(U),!(kb(U,((((E_[F+196>>2]|0)-(E_[F+192>>2]|0)>>2)*80|0)-80|0)/100|0,2)|0)){mr=E_[D>>2]|0;break}if(X=n,E_[n>>2]=106,E_[X+4>>2]=0,W=e+32|0,G=E_[W>>2]|0,(G|0)==(E_[e+36>>2]|0)){Ul(e+28|0,X);break e}(G|0)==0?pr=0:(X=G,G=E_[n+4>>2]|0,E_[X>>2]=E_[n>>2],E_[X+4>>2]=G,pr=E_[W>>2]|0),E_[W>>2]=pr+8;break e}mr=j}while(0);if((mr|0)>=0)break;Qb(r,4)|0?rr=9766:Qb(r,2)|0&&(rr=9766);do if((rr|0)==9766){if(((E_[D>>2]|0)*-4|0|0)>(((E_[H>>2]|0)+1-(E_[V>>2]|0)|0)*3|0|0))break;if(j=ob(F+300|0)|0,(j|0)<=((ob(R+300|0)|0)<<1|0))break;if((Mb(F+60|0,-1)|0)!=1)break;if(j=(bb(Z,0)|0)<<1,(j|0)>=((E_[H>>2]|0)+1-(E_[V>>2]|0)|0))break;if(j=o,E_[o>>2]=191,E_[j+4>>2]=0,W=e+32|0,G=E_[W>>2]|0,(G|0)==(E_[e+36>>2]|0)){Ul(e+28|0,j);break e}(G|0)==0?Er=0:(j=G,G=E_[o+4>>2]|0,E_[j>>2]=E_[o>>2],E_[j+4>>2]=G,Er=E_[W>>2]|0),E_[W>>2]=Er+8;break e}while(0);if(W=u,E_[u>>2]=105,E_[W+4>>2]=0,G=e+32|0,j=E_[G>>2]|0,(j|0)==(E_[e+36>>2]|0)){Ul(e+28|0,W);break e}(j|0)==0?Sr=0:(W=j,j=E_[u+4>>2]|0,E_[W>>2]=E_[u>>2],E_[W+4>>2]=j,Sr=E_[G>>2]|0),E_[G>>2]=Sr+8;break e}while(0);if((Mb(F+108|0,-1)|0)!=1)break;if(Z=E_[H>>2]|0,Y=E_[V>>2]|0,G=i+12|0,j=E_[G>>2]|0,gr=(Z+1-Y|0)>(j+1-(E_[i+4>>2]|0)|0)?((((Z-Y|0)*80|0|0)/100|0)+Y|0)>(j|0):0,j=R+300|0,Y=ob(j)|0,Z=F+300|0,Gb(Y,ob(Z)|0,20,1)|0){Qb(r,4)|0?rr=9796:Qb(r,2)|0&&(rr=9796);do if((rr|0)==9796){if(Ob(F+60|0,50)|0)break;if(Y=ob(Z)|0,(Y|0)<(ob(j)|0))break;if((E_[F+308>>2]|0)<0&&tb(Z),Y=bb(Z,((((E_[F+340>>2]|0)-(E_[F+336>>2]|0)>>2)*10|0)-10|0)/100|0)|0,(Y*3|0|0)>=((ob(j)|0)<<1|0)){if((E_[T>>2]|0)>(E_[q>>2]|0))break;if(Y=E_[V>>2]|0,(((((E_[H>>2]|0)-Y|0)*80|0|0)/100|0)+Y|0)<=(E_[G>>2]|0))break}if(Y=s,E_[s>>2]=161,E_[Y+4>>2]=0,W=e+32|0,X=E_[W>>2]|0,(X|0)==(E_[e+36>>2]|0)){Ul(e+28|0,Y);break e}(X|0)==0?yr=0:(Y=X,X=E_[s+4>>2]|0,E_[Y>>2]=E_[s>>2],E_[Y+4>>2]=X,yr=E_[W>>2]|0),E_[W>>2]=yr+8;break e}while(0);if(gr){if(G=b,E_[b>>2]=106,E_[G+4>>2]=0,W=e+32|0,X=E_[W>>2]|0,(X|0)==(E_[e+36>>2]|0)){Ul(e+28|0,G);break e}(X|0)==0?Ar=0:(G=X,X=E_[b+4>>2]|0,E_[G>>2]=E_[b>>2],E_[G+4>>2]=X,Ar=E_[W>>2]|0),E_[W>>2]=Ar+8;break e}if(W=d,E_[d>>2]=105,E_[W+4>>2]=0,X=e+32|0,G=E_[X>>2]|0,(G|0)==(E_[e+36>>2]|0)){Ul(e+28|0,W);break e}(G|0)==0?Or=0:(W=G,G=E_[d+4>>2]|0,E_[W>>2]=E_[d>>2],E_[W+4>>2]=G,Or=E_[X>>2]|0),E_[X>>2]=Or+8;break e}X=ob(Z)|0;do if((X*3|0|0)>((ob(j)|0)<<2|0)){if(G=E_[q>>2]|0,W=Ju(I,((E_[H>>2]|0)+(E_[V>>2]|0)|0)/2|0,((((E_[B>>2]|0)-G|0)*10|0|0)/100|0)+G|0,1)|0,(W|0)>=(E_[H>>2]|0))break;if((E_[F+164>>2]|0)<0&&tb(U),!(kb(U,((((E_[F+196>>2]|0)-(E_[F+192>>2]|0)>>2)*75|0)-75|0)/100|0,2)|0))break;if(W=E_[q>>2]|0,G=E_[B>>2]|0,(E_[T>>2]|0)<((G+W|0)/2|0|0)&&(Y=Gu(I,((E_[H>>2]|0)+(E_[V>>2]|0)|0)/2|0,(((G-W|0)*10|0|0)/100|0)+W|0,1)|0,(Y|0)>(E_[V>>2]|0)))break;if(Y=h,E_[h>>2]=106,E_[Y+4>>2]=0,W=e+32|0,G=E_[W>>2]|0,(G|0)==(E_[e+36>>2]|0)){Ul(e+28|0,Y);break e}(G|0)==0?Rr=0:(Y=G,G=E_[h+4>>2]|0,E_[Y>>2]=E_[h>>2],E_[Y+4>>2]=G,Rr=E_[W>>2]|0),E_[W>>2]=Rr+8;break e}while(0);do if(Qb(r,2)|0){if(!(Ab(U)|0))break;if(V=_,E_[_>>2]=304,E_[V+4>>2]=0,H=e+32|0,B=E_[H>>2]|0,(B|0)==(E_[e+36>>2]|0)){Ul(e+28|0,V);break e}(B|0)==0?Fr=0:(V=B,B=E_[_+4>>2]|0,E_[V>>2]=E_[_>>2],E_[V+4>>2]=B,Fr=E_[H>>2]|0),E_[H>>2]=Fr+8;break e}while(0);if(gr){if(U=m,E_[m>>2]=106,E_[U+4>>2]=0,H=e+32|0,B=E_[H>>2]|0,(B|0)==(E_[e+36>>2]|0)){Ul(e+28|0,U);break e}(B|0)==0?Mr=0:(U=B,B=E_[m+4>>2]|0,E_[U>>2]=E_[m>>2],E_[U+4>>2]=B,Mr=E_[H>>2]|0),E_[H>>2]=Mr+8;break e}if(H=p,E_[p>>2]=105,E_[H+4>>2]=0,B=e+32|0,U=E_[B>>2]|0,(U|0)==(E_[e+36>>2]|0)){Ul(e+28|0,H);break e}(U|0)==0?Nr=0:(H=U,U=E_[p+4>>2]|0,E_[H>>2]=E_[p>>2],E_[H+4>>2]=U,Nr=E_[B>>2]|0),E_[B>>2]=Nr+8;break e}while(0);B=T+32|0,U=E_[B>>2]|0,H=T+28|0,V=E_[H>>2]|0;do if((U|0)==(V|0)){if((E_[T+12>>2]|0)<(((E_[P+12>>2]|0)+(E_[P+4>>2]|0)|0)/2|0|0))break;(L<<1|0)>=(x|0)&&(rr=9864)}else rr=9864;while(0);if((rr|0)==9864){if((U-V|0)!=4)break;if(q=E_[T+12>>2]|0,j=E_[P+4>>2]|0,(q|0)>=(j|0))break;if((j-q|0)>=(q+1-(E_[T+4>>2]|0)|0))break}q=kn(40)|0,j=q,ol(j,P),X=C,E_[X>>2]=E_[q>>2],E_[X+4>>2]=E_[q+4>>2],E_[X+8>>2]=E_[q+8>>2],E_[X+12>>2]=E_[q+12>>2],q=C+20|0,X=kn(4)|0,Z=X,E_[q>>2]=Z,E_[C+16>>2]=Z,E_[C+24>>2]=X+4,(X|0)==0?Dr=0:(E_[Z>>2]=j,Dr=Z),E_[q>>2]=Dr+4,q=C+28|0,E_[q>>2]=0,Z=C+32|0,E_[Z>>2]=0,E_[C+36>>2]=0,Ll(C,r,i);r:do if((E_[Z>>2]|0)!=(E_[q>>2]|0)){j=E_[(ws(C,0)|0)>>2]|0;do{if(((E_[B>>2]|0)-(E_[H>>2]|0)|0)==4){if((j|0)==97){Cr=229;break}if((j|0)==65){Cr=197;break}Cr=0;break}do if((j|0)==117){if(X=(E_[P+8>>2]|0)+1-(E_[P>>2]|0)|0,(((E_[T+8>>2]|0)+1-(E_[T>>2]|0)|0)*5|0|0)>(X|0))break;if((((E_[T+12>>2]|0)+1-(E_[T+4>>2]|0)|0)*5|0|0)<=(X|0))break r}while(0);if(X=T+12|0,(E_[X>>2]|0)>=(((E_[P+12>>2]|0)+(E_[P+4>>2]|0)|0)/2|0|0)){Cr=j;break}do if($l(j)|0){if(((E_[T+8>>2]|0)+1-(E_[T>>2]|0)<<1|0)<=(((E_[X>>2]|0)+1-(E_[T+4>>2]|0)|0)*3|0|0)){rr=9892;break}if(mb(R+108|0,50)|0){rr=9892;break}mb(R+252|0,50)|0?Tr=58:rr=9892}else rr=9892;while(0);do if((rr|0)==9892){if(W=R+204|0,(Mb(W,-1)|0)==2){Tr=94;break}if(Ab(W)|0){Tr=94;break}if(G=(E_[X>>2]|0)+1-(E_[T+4>>2]|0)|0,Y=(E_[T+8>>2]|0)+1-(E_[T>>2]|0)|0,(((Y|0)<(G|0)?Y:G)|0)<=4){Tr=39;break}if(!(cb(R+156|0,1)|0||kb(R+108|0,1,2)|0)){Tr=39;break}if(!(cb(W,1)|0||kb(R+60|0,1,2)|0)){Tr=39;break}Tr=96}while(0);Cr=Yl(j,Tr)|0}while(0);do if((Cr|0)==(E_[(ws(C,0)|0)>>2]|0))Pr=Cr,rr=9915;else{if(!(Jb(r,1)|0)){Pr=Cr,rr=9915;break}if((zl(Cr)|0)==105){Lr=105;break}Pr=E_[(ws(C,0)|0)>>2]|0,rr=9915}while(0);if((rr|0)==9915){if((Pr|0)==0)break;Lr=Pr}if(j=E,E_[E>>2]=Lr,E_[j+4>>2]=0,X=e+32|0,W=E_[X>>2]|0,(W|0)==(E_[e+36>>2]|0)){Ul(e+28|0,j);break}(W|0)==0?Ir=0:(j=W,W=E_[E+4>>2]|0,E_[j>>2]=E_[E>>2],E_[j+4>>2]=W,Ir=E_[X>>2]|0),E_[X>>2]=Ir+8}while(0);os(C)}while(0);Hl(F),Hl(R),O_=f}function wk(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0;f=O_,O_=O_+48|0,a=f|0,t=f+8|0,n=ls(e,0)|0,o=ls(e,1)|0,u=ls(e,2)|0,l=kn(40)|0,s=l,ol(s,u),b=t,E_[b>>2]=E_[l>>2],E_[b+4>>2]=E_[l+4>>2],E_[b+8>>2]=E_[l+8>>2],E_[b+12>>2]=E_[l+12>>2],l=t+20|0,b=kn(4)|0,k=b,E_[l>>2]=k,E_[t+16>>2]=k,E_[t+24>>2]=b+4,(b|0)==0?c=0:(E_[k>>2]=s,c=k),E_[l>>2]=c+4,c=t+28|0,E_[c>>2]=0,l=t+32|0,E_[l>>2]=0,E_[t+36>>2]=0,Ll(t,r,i);e:do if((E_[l>>2]|0)==(E_[c>>2]|0))d=0;else{r:do if(!(vs(t,46)|0)){do if(((E_[t+12>>2]|0)+1-(E_[t+4>>2]|0)|0)<((E_[t+8>>2]|0)+1-(E_[t>>2]|0)<<1|0)){if(!(vs(t,44)|0))break;if(i=qu(u|0)|0,(i<<1|0)>=(J_((E_[u+8>>2]|0)+1-(E_[u>>2]|0)|0,(E_[u+12>>2]|0)+1-(E_[u+4>>2]|0)|0)|0))break r}while(0);i=n+8|0,k=n|0,s=(E_[i>>2]|0)+1-(E_[k>>2]|0)|0,b=o+8|0,h=o|0,_=(E_[b>>2]|0)+1-(E_[h>>2]|0)|0;do if((((s|0)<(_|0)?_:s)|0)<((E_[u+8>>2]|0)+1-(E_[u>>2]|0)|0)){if(w=n+12|0,v=n+4|0,m=o+12|0,p=o+4|0,!(Gb((E_[w>>2]|0)+1-(E_[v>>2]|0)|0,(E_[m>>2]|0)+1-(E_[p>>2]|0)|0,20,2)|0))break;if(E=(E_[w>>2]|0)+1-(E_[v>>2]|0)|0,v=(E_[m>>2]|0)+1-(E_[p>>2]|0)|0,(((E|0)<(v|0)?v:E)<<1|0)>=((E_[u+12>>2]|0)+1-(E_[u+4>>2]|0)|0))break;d=Yl(E_[(ws(t,0)|0)>>2]|0,58)|0;break e}while(0);if(!(vs(t,111)|0)){d=0;break e}s=((E_[i>>2]|0)+(E_[k>>2]|0)|0)/2|0,_=((E_[b>>2]|0)+(E_[h>>2]|0)|0)/2|0;do if((s|0)<(_|0)){if(((E_[n+32>>2]|0)-(E_[n+28>>2]|0)|0)!=4){S=10003;break}(E_[o+32>>2]|0)!=(E_[o+28>>2]|0)&&(S=10003)}else S=10003;while(0);if((S|0)==10003){if((_|0)>=(s|0)){d=0;break e}if(((E_[o+32>>2]|0)-(E_[o+28>>2]|0)|0)!=4){d=0;break e}if((E_[n+32>>2]|0)!=(E_[n+28>>2]|0)){d=0;break e}}d=37;break e}while(0);h=E_[o+4>>2]|0;do{if(!((E_[n+12>>2]|0)>(h|0))){if(b=E_[o+12>>2]|0,k=E_[u+4>>2]|0,(b|0)>(k|0)){g=k;break}d=((E_[o+8>>2]|0)+1-(E_[o>>2]|0)|0)<(1-h+b<<1|0)?0:247;break e}g=E_[u+4>>2]|0}while(0);if((E_[n+4>>2]|0)>=(g|0)){d=0;break}d=(h|0)<(g|0)?37:0}while(0);do if(Jb(r,1)|0){if((d|0)==247){y=37;break}A=zl(d)|0,S=10011}else A=d,S=10011;while(0);do if((S|0)==10011){if((A|0)!=0){y=A;break}return os(t),void(O_=f)}while(0);return A=a,E_[a>>2]=y,E_[A+4>>2]=0,y=e+32|0,S=E_[y>>2]|0,(S|0)==(E_[e+36>>2]|0)?(Ul(e+28|0,A),os(t),void(O_=f)):((S|0)==0?O=0:(A=S,S=E_[a+4>>2]|0,E_[A>>2]=E_[a>>2],E_[A+4>>2]=S,O=E_[y>>2]|0),E_[y>>2]=O+8,os(t),void(O_=f))}function vk(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0;if(r=e+12|0,i=E_[r>>2]|0,f=e+20|0,a=e+16|0,(i|0)<((E_[f>>2]|0)-(E_[a>>2]|0)>>2|0))for(t=i,n=0,o=i;;){i=Ds(e,t)|0;e:do if(vs(i,32)|0){u=t+2|0;do if((u|0)<((E_[f>>2]|0)-(E_[a>>2]|0)>>2|0)){if(!(vs(Ds(e,u)|0,32)|0))break;l=E_[r>>2]|0,s=1;break e}while(0);l=t+1|0,s=0}else{if(((E_[i+32>>2]|0)-(E_[i+28>>2]|0)|0)!=8){l=o,s=n;break}if(u=E_[(ws(i,0)|0)>>2]|0,!(Gl(u)|0)){l=o,s=n;break}if(b=i+12|0,k=i+4|0,c=((E_[b>>2]|0)+1-(E_[k>>2]|0)|0)*5|0,(c|0)<((Ns(e)|0)<<2|0)){l=o,s=n;break}c=(E_[b>>2]|0)+1-(E_[k>>2]|0)<<2,d=(c|0)>((Ns(e)|0)*5|0|0);r:do if((o|0)<((E_[f>>2]|0)-(E_[a>>2]|0)>>2|0))for(c=d,h=0,_=o;;){do if((_|0)==(t|0))w=h,v=c;else{if(m=Ds(e,_)|0,(E_[m+32>>2]|0)==(E_[m+28>>2]|0)){w=h,v=c;break}if(vs(m,32)|0){if(n){w=h,v=c;break}p=c,E=h;break r}if(S=E_[(ws(m,0)|0)>>2]|0,(S|0)>127){w=h,v=c;break}if((Ow(S|0)|0)==0){w=h,v=c;break}do if(c)g=1;else{if(y=m+12|0,A=m+4|0,((E_[b>>2]|0)+1-(E_[k>>2]|0)<<2|0)>(((E_[y>>2]|0)+1-(E_[A>>2]|0)|0)*5|0|0)){g=1;break}if((Ew(S|0)|0)!=0&(S|0)!=66&(S|0)!=81){if(O=(E_[b>>2]|0)+1-(E_[k>>2]|0)|0,R=(E_[y>>2]|0)+1-(E_[A>>2]|0)|0,(O|0)>=(R|0)){g=1;break}if(Gb(O,R,10,1)|0){g=1;break}}if((S|0)!=116){g=0;break}g=((E_[b>>2]|0)+1-(E_[k>>2]|0)|0)>=((E_[y>>2]|0)+1-(E_[A>>2]|0)|0)}while(0);if(h){w=1,v=g;break}if(!((pw(S|0)|0)!=0&(S|0)!=108&(S|0)!=106)){w=0,v=g;break}if(A=m+12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H=i+856|0,U=i+896|0,z=i+936|0,Y=e+12|0,V=E_[Y>>2]|0,Z=e+20|0,j=e+16|0,(V|0)>=((E_[Z>>2]|0)-(E_[j>>2]|0)>>2|0))return void(O_=i);q=s,W=s+16|0,K=s+20|0,X=s+24|0,G=s+28|0,Q=s+32|0,J=s+36|0,$=k,er=k+16|0,rr=k+20|0,ir=k+24|0,fr=k+28|0,ar=k+32|0,tr=k+36|0,nr=c,or=c+20|0,ur=c+24|0,lr=c+16|0,sr=c+28|0,br=c+32|0,kr=c+36|0,cr=V;do{V=Ds(e,cr)|0;e:do if((E_[V+32>>2]|0)==(E_[V+28>>2]|0)){if(((E_[V+20>>2]|0)-(E_[V+16>>2]|0)|0)!=12){dr=cr;break}if(hr=ls(V,0)|0,_r=ls(V,1)|0,wr=ls(V,2)|0,vr=_r|0,mr=_r+12|0,pr=_r+4|0,Er=wr|0,Sr=wr+12|0,gr=wr+4|0,!(Gb((E_[mr>>2]|0)+1-(E_[pr>>2]|0)|0,(E_[Sr>>2]|0)+1-(E_[gr>>2]|0)|0,20,1)|0)){dr=cr;break}if(nu(vr,Er)|0){dr=cr;break}if(!(tu(vr,((E_[Sr>>2]|0)+(E_[gr>>2]|0)|0)/2|0)|0)){dr=cr;break}if(!(tu(Er,((E_[mr>>2]|0)+(E_[pr>>2]|0)|0)/2|0)|0)){dr=cr;break}if(yr=E_[hr+12>>2]|0,Ar=E_[pr>>2]|0,(yr|0)>=(Ar|0)){dr=cr;break}if(pr=E_[gr>>2]|0,(yr|0)>=(pr|0)){dr=cr;break}gr=yr+1-(E_[hr+4>>2]|0)|0;do if((gr|0)>(1-Ar+(E_[mr>>2]|0)|0)){if((gr|0)<=(1-pr+(E_[Sr>>2]|0)|0))break;yr=kn(40)|0,Or=yr,ol(Or,hr),E_[q>>2]=E_[yr>>2],E_[q+4>>2]=E_[yr+4>>2],E_[q+8>>2]=E_[yr+8>>2],E_[q+12>>2]=E_[yr+12>>2],yr=kn(4)|0,Rr=yr,E_[K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2]=fr,vi=kr),E_[Br>>2]=vi+4,E_[cr>>2]=0,E_[Cr>>2]=0,E_[Tr>>2]=0,((E_[br>>2]|0)-(E_[Nr>>2]|0)|0)>0){kr=0;do{do if((kr|0)!=(fi|0)){if(fr=ls(tr,kr)|0,ar=fr|0,ru(p,ar)|0){Dr=kn(40)|0,ol(Dr,fr),bs(N,Dr);break}if(!(ru(v,ar)|0))break;ar=kn(40)|0,ol(ar,fr),bs(D,ar)}while(0);kr=kr+1|0}while((kr|0)<((E_[br>>2]|0)-(E_[Nr>>2]|0)>>2|0))}Ts(C,e,N),Ll(N,r,C),Ts(T,e,D),Ll(D,r,T),Nr=(E_[Cr>>2]|0)==(E_[cr>>2]|0),(E_[g>>2]|0)==(E_[Vr>>2]|0)?Nr?mi=nr:xr=219:xr=Nr?219:220,(xr|0)==219&&(xr=0,((E_[Mr>>2]|0)+1-(E_[lr>>2]|0)|0)>((E_[or>>2]|0)+1-(E_[sr>>2]|0)|0)?xr=220:mi=nr);do if((xr|0)==220){if(xr=0,ns(tr,N)|0,Nr=kn(40)|0,ts(Nr,D),Ls(e,Nr,0)|0,(E_[g>>2]|0)==(E_[Vr>>2]|0)){mi=nr-1|0;break}mi=((E_[Cr>>2]|0)!=(E_[cr>>2]|0))+nr|0;break}while(0);os(D),os(N),_i=mi}ul(M),hi=_i}ul(F),ii=hi}else ii=nr;while(0);nr=ii+1|0,pi=E_[Z>>2]|0,Ei=E_[j>>2]|0}while((nr|0)<(pi-Ei>>2|0));Si=E_[Y>>2]|0,gi=pi,yi=Ei}else Si=$r,gi=ei,yi=ri;if((Si|0)<(gi-yi>>2|0)){ri=P+32|0,ei=P+28|0,$r=Si;do{Ei=Ds(e,$r)|0;do if((E_[Ei+32>>2]|0)==(E_[Ei+28>>2]|0)){if(((E_[Ei+20>>2]|0)-(E_[Ei+16>>2]|0)|0)!=4)break;if(pi=ls(Ei,0)|0,(E_[pi+32>>2]|0)==(E_[pi+28>>2]|0))break;if(ts(P,Ei),pi=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ni;break}if(H=Ci+12|0,x=Ci+4|0,I=(E_[H>>2]|0)+1-(E_[x>>2]|0)<<2,(I|0)>((Ns(e)|0)*5|0|0)){zi=Ni;break}if(!((Ni|0)<((E_[Z>>2]|0)-(E_[j>>2]|0)>>2|0))){zi=Ni;break}Yi=Ni;r:for(;;){do if((Yi|0)!=(Ti|0)){if(I=Ds(e,Yi)|0,vs(I,32)|0){zi=Ni;break e}if(((E_[I+32>>2]|0)-(E_[I+28>>2]|0)|0)<=0)break;if(U=E_[(ws(I,0)|0)>>2]|0,(U|0)>127)break;if((Ew(U|0)|0)!=0&(U|0)!=66&(U|0)!=81&&(((E_[H>>2]|0)+1-(E_[x>>2]|0)|0)*5|0|0)<((E_[I+12>>2]|0)+1-(E_[I+4>>2]|0)<<2|0))break r;if(!((Ql(U)|0)&(U|0)!=114))break;if(Gl(U)|0)break;if(U=(E_[H>>2]|0)+1-(E_[x>>2]|0)|0,Bi=(E_[I+12>>2]|0)+1-(E_[I+4>>2]|0)|0,(U|0)<=(Bi|0))break r;if(Gb(U,Bi,10,1)|0)break r}while(0);if(Bi=Yi+1|0,!((Bi|0)<((E_[Z>>2]|0)-(E_[j>>2]|0)>>2|0))){zi=Ni;break e}Yi=Bi}_s(Ci,0,1),zi=Ni}while(0);if(Ci=Ti+1|0,Vi=E_[Z>>2]|0,Zi=E_[j>>2]|0,!((Ci|0)<(Vi-Zi>>2|0)))break;Ni=zi,Ti=Ci}ji=E_[Y>>2]|0,qi=Vi,Wi=Zi}else ji=Di,qi=Hi,Wi=Ui;if((ji|0)<(qi-Wi>>2|0))for(Wi=ji,qi=ji;;){ji=Ds(e,qi)|0;e:do if(vs(ji,32)|0)Ki=qi+1|0;else{if(((E_[ji+32>>2]|0)-(E_[ji+28>>2]|0)|0)!=16){Ki=Wi;break}if((E_[(ws(ji,1)|0)>>2]|0)!=56){Ki=Wi;break}if(Ui=E_[(ws(ji,0)|0)>>2]|0,!((Ui|0)==101|(Ui|0)==97)){Ki=Wi;break}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,1)|0)break r;if((Ow(Zi|0)|0)!=0&&((E_[Gi>>2]|0)+1-(E_[Xi>>2]|0)<<2|0)>(((E_[Vi+12>>2]|0)+1-(E_[Vi+4>>2]|0)|0)*5|0|0))break r;if((Ew(Zi|0)|0)==0)break;if(Gb((E_[Gi>>2]|0)+1-(E_[Xi>>2]|0)|0,(E_[Vi+12>>2]|0)+1-(E_[Vi+4>>2]|0)|0,10,1)|0)break r}while(0);if(Vi=ji+1|0,!((Vi|0)<((E_[Z>>2]|0)-(E_[j>>2]|0)>>2|0))){ff=qi,af=Ki;break e}ji=Vi}while(0);cs(Ji,0,as(Qi)|0,1),ff=qi,af=Ki}else ff=qi,af=Ki;while(0);if(Ji=Wi+1|0,tf=E_[Z>>2]|0,nf=E_[j>>2]|0,!((Ji|0)<(tf-nf>>2|0)))break;Wi=Ji,Ki=af,qi=ff}of=E_[Y>>2]|0,uf=tf,lf=nf}else of=$i,uf=ef,lf=rf;if(rf=uf-lf>>2,(of|0)<(rf|0)){for(ef=of,$i=of;;){nf=Ds(e,$i)|0;e:do if(vs(nf,32)|0)sf=$i+1|0;else{if(((E_[nf+32>>2]|0)-(E_[nf+28>>2]|0)|0)<=0){sf=ef;break}if(tf=E_[(ws(nf,0)|0)>>2]|0,!((tf|0)==111|(tf|0)==108|(tf|0)==79)){sf=ef;break}if(!((ef|0)<((E_[Z>>2]|0)-(E_[j>>2]|0)>>2|0))){sf=ef;break}bf=ef;r:for(;;){do if((bf|0)!=($i|0)){if(kf=Ds(e,bf)|0,vs(kf,32)|0){sf=ef;break e}if(((E_[kf+32>>2]|0)-(E_[kf+28>>2]|0)|0)<=0)break;if(ff=E_[(ws(kf,0)|0)>>2]|0,jl(ff)|0)break r;if(!(Zl(ff)|0))break;if(!((ff|0)==111|(ff|0)==108|(ff|0)==79)){sf=ef;break e}}while(0);if(ff=bf+1|0,!((ff|0)<((E_[Z>>2]|0)-(E_[j>>2]|0)>>2|0))){sf=ef;break e}bf=ff}if(!(Gb((E_[nf+12>>2]|0)+1-(E_[nf+4>>2]|0)|0,(E_[kf+12>>2]|0)+1-(E_[kf+4>>2]|0)|0,10,1)|0)){sf=ef;break}cs(nf,0,(tf|0)==108?49:48,(E_[(ws(nf,0)|0)+4>>2]|0)+1|0),sf=ef}while(0);if(nf=$i+1|0,df=E_[Z>>2]|0,hf=E_[j>>2]|0,_f=df-hf>>2,!((nf|0)<(_f|0)))break;ef=sf,$i=nf}wf=_f,vf=E_[Y>>2]|0,mf=df,pf=hf}else wf=rf,vf=of,mf=uf,pf=lf;if(lf=wf-1|0,(lf|0)<(vf|0))Ef=mf,Sf=pf,gf=vf;else{for(vf=z+12|0,pf=f,mf=f,uf=pf+4|0,of=wf,wf=lf;;){lf=Ds(e,wf)|0,rf=lf+32|0;e:do if(((E_[rf>>2]|0)-(E_[lf+28>>2]|0)|0)==8){if((E_[(ws(lf,0)|0)>>2]|0)!=112)break;hf=lf+12|0,df=lf+4|0,_f=((E_[hf>>2]|0)+1-(E_[df>>2]|0)|0)/20|0,$i=(_f|0)>2?_f:2;r:do if((wf|0)<(((E_[Z>>2]|0)-(E_[j>>2]|0)>>2)-1|0)){if(_f=Ds(e,of)|0,(E_[_f+32>>2]|0)==(E_[_f+28>>2]|0)){xr=472;break}_f=Ds(e,of)|0,sf=E_[(ws(_f,0)|0)>>2]|0;i:do if(Vl(sf)|0)switch(sf|0){case 81:if(ef=(E_[df>>2]|0)-(E_[_f+4>>2]|0)|0,(((ef|0)>-1?ef:-ef|0)|0)>($i|0))break e;break r;case 103:case 106:case 112:case 113:case 121:if(((E_[hf>>2]|0)+$i|0)>(E_[_f+12>>2]|0))break e;
break r;default:break i}else if(!((sf|0)==46|(sf|0)==124)){xr=472;break r}while(0);if(sf=(E_[hf>>2]|0)-(E_[_f+12>>2]|0)|0,(((sf|0)>-1?sf:-sf|0)|0)>($i|0))break e}else xr=472;while(0);if((xr|0)==472){if(xr=0,(wf|0)<=(E_[Y>>2]|0))break;if(vs(Ds(e,of-2|0)|0,32)|0)break;if(df=E_[hf>>2]|0,Ts(z,e,lf),tf=df-(E_[vf>>2]|0)|0,(((tf|0)>-1?tf:-tf|0)|0)>($i|0))break}if(tf=lf+28|0,df=E_[tf>>2]|0,sf=E_[rf>>2]|0,(df|0)==(sf|0)?yf=df:(ef=sf+(~((sf-8+(-df|0)|0)>>>3)<<3)|0,E_[rf>>2]=ef,yf=ef),E_[mf>>2]=80,E_[uf>>2]=0,(yf|0)==(E_[lf+36>>2]|0)){Ul(tf,pf);break}(yf|0)==0?Af=0:(tf=yf,ef=E_[f+4>>2]|0,E_[tf>>2]=E_[f>>2],E_[tf+4>>2]=ef,Af=E_[rf>>2]|0),E_[rf>>2]=Af+8}while(0);if(rf=wf-1|0,Of=E_[Y>>2]|0,(rf|0)<(Of|0))break;of=wf,wf=rf}Ef=E_[Z>>2]|0,Sf=E_[j>>2]|0,gf=Of}if(Of=Ef-Sf>>2,Sf=Of-1|0,(Sf|0)>(gf|0))for(gf=a,Ef=a,wf=gf+4|0,of=Of,Of=Sf;;){Sf=Ds(e,of-2|0)|0,Af=Sf+32|0;e:do if(((E_[Af>>2]|0)-(E_[Sf+28>>2]|0)|0)==8){if((E_[(ws(Sf,0)|0)>>2]|0)!=89)break;if(f=Ds(e,Of)|0,(E_[f+32>>2]|0)==(E_[f+28>>2]|0))break;yf=E_[(ws(f,0)|0)>>2]|0;r:do if(Vl(yf)|0)switch(yf|0){case 103:case 106:case 112:case 113:case 121:if((E_[Sf+12>>2]|0)<((E_[f+12>>2]|0)-2|0))break e;break r;case 81:if((E_[Sf+4>>2]|0)<((E_[f+4>>2]|0)+2|0))break e;break r;default:xr=494;break r}else{if(!((yf|0)==46|(yf|0)==124))break e;xr=494}while(0);if((xr|0)==494&&(xr=0,(E_[Sf+12>>2]|0)<((E_[f+12>>2]|0)+2|0)))break;if(yf=Sf+28|0,$i=E_[yf>>2]|0,hf=E_[Af>>2]|0,($i|0)==(hf|0)?Rf=$i:(pf=hf+(~((hf-8+(-$i|0)|0)>>>3)<<3)|0,E_[Af>>2]=pf,Rf=pf),E_[Ef>>2]=121,E_[wf>>2]=0,(Rf|0)==(E_[Sf+36>>2]|0)){Ul(yf,gf);break}(Rf|0)==0?Ff=0:(yf=Rf,pf=E_[a+4>>2]|0,E_[yf>>2]=E_[a>>2],E_[yf+4>>2]=pf,Ff=E_[Af>>2]|0),E_[Af>>2]=Ff+8}while(0);if(Af=Of-1|0,!((Af|0)>(E_[Y>>2]|0)))break;of=Of,Of=Af}do if(Qb(r,2)|0){if(Of=E_[Y>>2]|0,of=E_[Z>>2]|0,Ff=E_[j>>2]|0,!((Of|0)<(of-Ff>>2|0))){Nf=of,Df=Ff;break}for(Mf=Of;;){Ff=Ds(e,Mf)|0;e:do if(((E_[Ff+32>>2]|0)-(E_[Ff+28>>2]|0)|0)==8){if((E_[(ws(Ff,0)|0)>>2]|0)!=351)break;do if((Mf|0)>(E_[Y>>2]|0)){if(of=Mf-1|0,Of=Ds(e,of)|0,(E_[Of+32>>2]|0)==(E_[Of+28>>2]|0))break;if(Of=Ds(e,of)|0,of=E_[(ws(Of,0)|0)>>2]|0,Kl(of)|0?(E_[Ff+4>>2]|0)>=((E_[Of+4>>2]|0)-2|0)&&(xr=511):xr=511,(xr|0)==511){if(xr=0,!((zl(of)|0)!=0&(of|0)!=305))break;if(!(Gb(E_[Ff+4>>2]|0,E_[Of+4>>2]|0,10,1)|0))break}cs(Ff,0,350,1);break e}while(0);if((Mf|0)>=(((E_[Z>>2]|0)-(E_[j>>2]|0)>>2)-1|0))break;if(_f=Mf+1|0,Of=Ds(e,_f)|0,(E_[Of+32>>2]|0)==(E_[Of+28>>2]|0))break;if(Of=Ds(e,_f)|0,_f=E_[(ws(Of,0)|0)>>2]|0,Kl(_f)|0?(E_[Ff+4>>2]|0)>=((E_[Of+4>>2]|0)-2|0)&&(xr=518):xr=518,(xr|0)==518){if(xr=0,!((zl(_f)|0)!=0&(_f|0)!=305))break;if(!(Gb(E_[Ff+4>>2]|0,E_[Of+4>>2]|0,10,1)|0))break}cs(Ff,0,350,1)}while(0);if(Ff=Mf+1|0,f=E_[Z>>2]|0,Of=E_[j>>2]|0,!((Ff|0)<(f-Of>>2|0))){Nf=f,Df=Of;break}Mf=Ff}}else Nf=E_[Z>>2]|0,Df=E_[j>>2]|0;while(0);if(Mf=E_[Y>>2]|0,(Mf|0)<(Nf-Df>>2|0)){Of=Mf,f=Nf,Ff=Df;do{for(_f=Of,of=f,a=Ff;;){if(_f>>>0>=of-a>>2>>>0)break;if(vs(E_[a+(_f<<2)>>2]|0,32)|0)break;if(vs(E_[(E_[j>>2]|0)+(_f<<2)>>2]|0,45)|0)break;_f=_f+1|0,of=E_[Z>>2]|0,a=E_[j>>2]|0}do if((_f-Of|0)>=2){if(a=Ds(e,Of)|0,(E_[a+32>>2]|0)==(E_[a+28>>2]|0))break;if(of=(E_[a+12>>2]|0)+1-(E_[a+4>>2]|0)|0,Rf=E_[(ws(a,0)|0)>>2]|0,!(jl(Rf)|0||(Rf|0)==111|(Rf|0)==108|(Rf|0)==79))break;if(Rf=Of+1|0,!((Rf|0)<(_f|0)))break;Cf=1,Tf=Rf;e:for(;;){if(Rf=Ds(e,Tf)|0,(E_[Rf+32>>2]|0)==(E_[Rf+28>>2]|0)){Pf=Cf,Lf=Tf;break}switch(a=E_[(ws(Rf,0)|0)>>2]|0,jl(a)|0?xr=536:(a|0)==111|(a|0)==108|(a|0)==79?xr=536:(If=0,xf=Cf),(xr|0)==536&&(xr=0,gf=Gb((E_[Rf+12>>2]|0)+1-(E_[Rf+4>>2]|0)|0,of,10,1)|0,If=gf,xf=(gf&1)+Cf|0),a|0){case 58:case 46:case 45:case 44:case 43:break;default:if(!If){Pf=xf,Lf=Tf;break e}}if(a=Tf+1|0,!((a|0)<(_f|0))){Pf=xf,Lf=a;break}Cf=xf,Tf=a}if(!((Lf|0)>=(_f|0)&(Pf|0)>1&(Of|0)<(_f|0)))break;Bf=Of;do of=Ds(e,Bf)|0,a=E_[(ws(of,0)|0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=Ds(e,Zf)|0,(E_[Wf+32>>2]|0)==(E_[Wf+28>>2]|0)){Jf=0;break}Jf=E_[(ws(Ds(e,Zf)|0,0)|0)>>2]|0}else Jf=0;while(0);do if((qf|0)<(((E_[Z>>2]|0)-(E_[j>>2]|0)>>2)-1|0)){if(Mf=qf+1|0,Uf=Ds(e,Mf)|0,(E_[Uf+32>>2]|0)==(E_[Uf+28>>2]|0)){$f=0;break}$f=E_[(ws(Ds(e,Mf)|0,0)|0)>>2]|0}else $f=0;while(0);Wl($f)|0?xr=593:jl($f)|0&&(xr=593);r:do if((xr|0)==593){xr=0;do if((Jf|0)!=0){if(Wl(Jf)|0)break;if(Vl(Jf)|0)break r}while(0);cs(jf,0,73,1);break e}while(0);if(Kf)break;do if(!(Zl(Jf)|0)){if(Zl($f)|0)break;if(($f|0)!=124)break e;if((Jf|0)!=0&&Vl(Jf)|0)break e;do if((qf|0)<(((E_[Z>>2]|0)-(E_[j>>2]|0)>>2)-2|0)){if(Mf=qf+2|0,Uf=Ds(e,Mf)|0,(E_[Uf+32>>2]|0)==(E_[Uf+28>>2]|0))break;if(!(Zl(E_[(ws(Ds(e,Mf)|0,0)|0)>>2]|0)|0))break;cs(jf,0,108,1);break e}while(0);if((qf|0)<=1)break e;if(Mf=qf-2|0,Uf=Ds(e,Mf)|0,(E_[Uf+32>>2]|0)==(E_[Uf+28>>2]|0))break e;if(!(Zl(E_[(ws(Ds(e,Mf)|0,0)|0)>>2]|0)|0))break e;cs(jf,0,108,1);break e}while(0);cs(jf,0,108,1)}while(0);qf=qf+1|0,ea=E_[Z>>2]|0,ra=E_[j>>2]|0}while((qf|0)<(ea-ra>>2|0));ia=E_[Y>>2]|0,fa=ea,aa=ra}else ia=Xf,fa=Gf,aa=Qf;if((ia|0)<(fa-aa>>2|0)){Qf=ia,ia=fa,fa=aa;do{for(aa=Qf,Gf=ia,Xf=fa;;){if(aa>>>0>=Gf-Xf>>2>>>0)break;if(vs(E_[Xf+(aa<<2)>>2]|0,32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?ua=jf:(Mf=Kf+(~((Kf-8+(-jf|0)|0)>>>3)<<3)|0,E_[qf>>2]=Mf,ua=Mf),E_[ia>>2]=305,E_[ea>>2]=0,(ua|0)==(E_[fa+36>>2]|0)){Ul(xr,Qf),oa=Xf;break}(ua|0)==0?la=0:(xr=ua,Mf=E_[t+4>>2]|0,E_[xr>>2]=E_[t>>2],E_[xr+4>>2]=Mf,la=E_[qf>>2]|0),E_[qf>>2]=la+8,oa=Xf;break}if(!((Xf|0)<((E_[Z>>2]|0)-(E_[j>>2]|0)>>2|0))){oa=Xf;break}sa=0,ba=0,ka=Xf;e:for(;;){do if((ka|0)==(ra|0))ca=ba,da=sa;else{if(qf=Ds(e,ka)|0,vs(qf,32)|0){ha=sa,_a=ba;break e}if((E_[qf+32>>2]|0)==(E_[qf+28>>2]|0)){ca=ba,da=sa;break}if(Mf=E_[(ws(qf,0)|0)>>2]|0,(Mf|0)>127){ca=ba,da=sa;break}if((Ow(Mf|0)|0)==0){ca=ba,da=sa;break}do if(sa)wa=1;else{if(xr=qf+12|0,jf=qf+4|0,((E_[Jf>>2]|0)+1-(E_[$f>>2]|0)<<2|0)>(((E_[xr>>2]|0)+1-(E_[jf>>2]|0)|0)*5|0|0)){wa=1;break}if(!((Ew(Mf|0)|0)!=0&(Mf|0)!=66&(Mf|0)!=81)){wa=0;break}if(Kf=(E_[Jf>>2]|0)+1-(E_[$f>>2]|0)|0,Uf=(E_[xr>>2]|0)+1-(E_[jf>>2]|0)|0,(Kf|0)<(Uf|0)&&!(Gb(Kf,Uf,10,1)|0)){wa=0;break}wa=1}while(0);if(ba){ca=1,da=wa;break}if(!((pw(Mf|0)|0)!=0&(Mf|0)!=108)){ca=0,da=wa;break}if(Uf=qf+12|0,Kf=qf+4|0,(((E_[Jf>>2]|0)+1-(E_[$f>>2]|0)|0)*5|0|0)<((E_[Uf>>2]|0)+1-(E_[Kf>>2]|0)<<2|0)){ca=1,da=wa;break}if(!(Ql(Mf)|0)){ca=0,da=wa;break}if((ka|0)>=(ra|0)&&Gl(Mf)|0){ca=0,da=wa;break}ca=Gb((E_[Jf>>2]|0)+1-(E_[$f>>2]|0)|0,(E_[Uf>>2]|0)+1-(E_[Kf>>2]|0)|0,10,1)|0,da=wa}while(0);if(Kf=ka+1|0,!((Kf|0)<((E_[Z>>2]|0)-(E_[j>>2]|0)>>2|0))){ha=da,_a=ca;break}sa=da,ba=ca,ka=Kf}if(ha|_a^1){oa=Xf;break}cs(fa,0,305,1),oa=Xf}while(0);if(fa=ra+1|0,Gf=E_[Z>>2]|0,$f=E_[j>>2]|0,!((fa|0)<(Gf-$f>>2|0))){ta=Gf,na=$f;break}ra=fa,Xf=oa}}else ta=E_[Z>>2]|0,na=E_[j>>2]|0;while(0);if(oa=E_[Y>>2]|0,(oa|0)<((ta-na>>2)-1|0)){_a=n,ha=n,ca=_a+4|0,da=oa;do{ka=Ds(e,da)|0,da=da+1|0,ba=Ds(e,da)|0,sa=ka+32|0;do if(((E_[sa>>2]|0)-(E_[ka+28>>2]|0)|0)==8){if(((E_[ba+32>>2]|0)-(E_[ba+28>>2]|0)|0)!=8)break;if(wa=E_[(ws(ka,0)|0)>>2]|0,la=ws(ba,0)|0,!((wa|0)==96|(wa|0)==39))break;if((wa|0)!=(E_[la>>2]|0))break;if(la=E_[ka+8>>2]|0,((E_[ba>>2]|0)-la<<1|0)>=((la+1-(E_[ka>>2]|0)|0)*3|0|0))break;ms(ka,ba),la=ka+28|0,wa=E_[la>>2]|0,t=E_[sa>>2]|0,(wa|0)==(t|0)?va=wa:(ua=t+(~((t-8+(-wa|0)|0)>>>3)<<3)|0,E_[sa>>2]=ua,va=ua),E_[ha>>2]=34,E_[ca>>2]=0,(va|0)==(E_[ka+36>>2]|0)?Ul(la,_a):((va|0)==0?ma=0:(la=va,ua=E_[n+4>>2]|0,E_[la>>2]=E_[n>>2],E_[la+4>>2]=ua,ma=E_[sa>>2]|0),E_[sa>>2]=ma+8),Ps(e,da)}while(0);pa=E_[Z>>2]|0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La=l,Pa=l,Ra=La+4|0,Fa=Ta,Ta=ya;;){ya=Ds(e,Fa)|0,Ca=ya+32|0;do if(((E_[Ca>>2]|0)-(E_[ya+28>>2]|0)|0)==8){if((E_[(ws(ya,0)|0)>>2]|0)!=176)break;if(Da=Fa+1|0,!(vs(Ds(e,Da)|0,47)|0))break;if(!(vs(Ds(e,Ta)|0,111)|0))break;if(Y=Fa+3|0,(Y|0)<((E_[Z>>2]|0)-(E_[j>>2]|0)>>2|0)&&!(vs(Ds(e,Y)|0,32)|0))break;if(ms(ya,Ds(e,Da)|0),ms(ya,Ds(e,Ta)|0),Ps(e,Ta),Ps(e,Da),Da=ya+28|0,Y=E_[Da>>2]|0,o=E_[Ca>>2]|0,(Y|0)==(o|0)?Ia=Y:(Na=o+(~((o-8+(-Y|0)|0)>>>3)<<3)|0,E_[Ca>>2]=Na,Ia=Na),E_[Pa>>2]=37,E_[Ra>>2]=0,(Ia|0)==(E_[ya+36>>2]|0)){Ul(Da,La);break}(Ia|0)==0?xa=0:(Da=Ia,Na=E_[l+4>>2]|0,E_[Da>>2]=E_[l>>2],E_[Da+4>>2]=Na,xa=E_[Ca>>2]|0),E_[Ca>>2]=xa+8}while(0);if(Ca=Fa+3|0,!((Ca|0)<((E_[Z>>2]|0)-(E_[j>>2]|0)>>2|0)))break;Fa=Fa+1|0,Ta=Ca}O_=i}function pk(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0;e=O_,O_=O_+32|0,r=e|0,i=e+8|0,f=e+16|0,a=e+24|0,t=E_[N_>>2]|0,Yk(15480,t,15608),E_[4118]=7324,E_[4120]=7344,E_[4119]=0,jc(16480,15480),E_[4138]=0,E_[4139]=-1,n=E_[L_>>2]|0,E_[3846]=7104,mf(15388),An(15392,0,24)|0,E_[3846]=7472,E_[3854]=n,pf(a,15388),o=Sf(a,15808)|0,u=o,Ef(a),E_[3855]=u,E_[3856]=15616,m_[15428]=(rv[E_[(E_[o>>2]|0)+28>>2]&127](u)|0)&1,E_[4052]=7228,E_[4053]=7248,jc(16212,15384),E_[4071]=0,E_[4072]=-1,u=E_[T_>>2]|0,E_[3858]=7104,mf(15436),An(15440,0,24)|0,E_[3858]=7472,E_[3866]=u,pf(f,15436),o=Sf(f,15808)|0,a=o,Ef(f),E_[3867]=a,E_[3868]=15624,m_[15476]=(rv[E_[(E_[o>>2]|0)+28>>2]&127](a)|0)&1,E_[4096]=7228,E_[4097]=7248,jc(16388,15432),E_[4115]=0,E_[4116]=-1,a=E_[(E_[(E_[4096]|0)-12>>2]|0)+16408>>2]|0,E_[4074]=7228,E_[4075]=7248,jc(16300,a),E_[4093]=0,E_[4094]=-1,E_[(E_[(E_[4118]|0)-12>>2]|0)+16544>>2]=16208,a=(E_[(E_[4096]|0)-12>>2]|0)+16388|0,E_[a>>2]=E_[a>>2]|8192,E_[(E_[(E_[4096]|0)-12>>2]|0)+16456>>2]=16208,Fk(15328,t,15632),E_[4030]=7276,E_[4032]=7296,E_[4031]=0,jc(16128,15328),E_[4050]=0,E_[4051]=-1,E_[3808]=7032,mf(15236),An(15240,0,24)|0,E_[3808]=7400,E_[3816]=n,pf(i,15236),n=Sf(i,15800)|0,t=n,Ef(i),E_[3817]=t,E_[3818]=15640,m_[15276]=(rv[E_[(E_[n>>2]|0)+28>>2]&127](t)|0)&1,E_[3960]=7180,E_[3961]=7200,jc(15844,15232),E_[3979]=0,E_[3980]=-1,E_[3820]=7032,mf(15284),An(15288,0,24)|0,E_[3820]=7400,E_[3828]=u,pf(r,15284),u=Sf(r,15800)|0,t=u,Ef(r),E_[3829]=t,E_[3830]=15648,m_[15324]=(rv[E_[(E_[u>>2]|0)+28>>2]&127](t)|0)&1,E_[4004]=7180,E_[4005]=7200,jc(16020,15280),E_[4023]=0,E_[4024]=-1,t=E_[(E_[(E_[4004]|0)-12>>2]|0)+16040>>2]|0,E_[3982]=7180,E_[3983]=7200,jc(15932,t),E_[4001]=0,E_[4002]=-1,E_[(E_[(E_[4030]|0)-12>>2]|0)+16192>>2]=15840,t=(E_[(E_[4004]|0)-12>>2]|0)+16020|0,E_[t>>2]=E_[t>>2]|8192,E_[(E_[(E_[4004]|0)-12>>2]|0)+16088>>2]=15840,O_=e}function Ek(e){e|=0,yd(16208)|0,yd(16296)|0,Md(15840)|0,Md(15928)|0}function Sk(e){e|=0,E_[e>>2]=7032,Ef(e+4|0)}function gk(e){e|=0,E_[e>>2]=7032,Ef(e+4|0),hn(e)}function yk(e,r){e|=0,r|=0;var i=0;rv[E_[(E_[e>>2]|0)+24>>2]&127](e)|0,i=Sf(r,15800)|0,r=i,E_[e+36>>2]=r,m_[e+44|0]=(rv[E_[(E_[i>>2]|0)+28>>2]&127](r)|0)&1}function Ak(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0;for(r=O_,O_=O_+16|0,i=r|0,f=r+8|0,a=e+36|0,t=e+40|0,n=i|0,o=i+8|0,u=i,i=e+32|0;;){if(e=E_[a>>2]|0,l=$w[E_[(E_[e>>2]|0)+20>>2]&31](e,E_[t>>2]|0,n,o,f)|0,e=(E_[f>>2]|0)-u|0,(aw(n|0,1,e|0,E_[i>>2]|0)|0)!=(e|0)){s=-1,b=791;break}if((l|0)==2){s=-1,b=792;break}if((l|0)!=1){b=789;break}}return(b|0)==789?(s=((iw(E_[i>>2]|0)|0)!=0)<<31>>31,O_=r,s|0):(b|0)==791?(O_=r,s|0):(b|0)==792?(O_=r,s|0):0}function Ok(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0;if((m_[e+44|0]&1)!=0)return f=aw(r|0,4,i|0,E_[e+32>>2]|0)|0,f|0;if(a=e,!((i|0)>0))return f=0,f|0;for(t=r,n=0;;){if((lv[E_[(E_[a>>2]|0)+52>>2]&31](e,E_[t>>2]|0)|0)==-1){f=n,o=802;break}if(r=n+1|0,!((r|0)<(i|0))){f=r,o=803;break}t=t+4|0,n=r}return(o|0)==802?f|0:(o|0)==803?f|0:0}function Rk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0;i=O_,O_=O_+32|0,f=i|0,a=i+8|0,t=i+16|0,n=i+24|0,o=(r|0)==-1;e:do if(!o){if(E_[a>>2]=r,(m_[e+44|0]&1)!=0){if((aw(a|0,4,1,E_[e+32>>2]|0)|0)==1)break;return u=-1,O_=i,u|0}for(l=f|0,E_[t>>2]=l,s=a+4|0,b=e+36|0,k=e+40|0,c=f+8|0,d=f,h=e+32|0,_=a;;){if(w=E_[b>>2]|0,v=nv[E_[(E_[w>>2]|0)+12>>2]&31](w,E_[k>>2]|0,_,s,n,l,c,t)|0,(E_[n>>2]|0)==(_|0)){u=-1,m=818;break}if((v|0)==3){m=810;break}if(w=(v|0)==1,v>>>0>=2){u=-1,m=821;break}if(v=(E_[t>>2]|0)-d|0,(aw(l|0,1,v|0,E_[h>>2]|0)|0)!=(v|0)){u=-1,m=819;break}if(!w)break e;_=w?E_[n>>2]|0:_}if((m|0)==818)return O_=i,u|0;if((m|0)==819)return O_=i,u|0;if((m|0)==821)return O_=i,u|0;if((m|0)==810){if((aw(_|0,1,1,E_[h>>2]|0)|0)==1)break;return u=-1,O_=i,u|0}}while(0);return u=o?0:r,O_=i,u|0}function Fk(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0;return f=O_,O_=O_+8|0,a=f|0,t=e|0,E_[t>>2]=7032,n=e+4|0,mf(n),o=e+8|0,An(o|0,0,24)|0,E_[t>>2]=7800,E_[e+32>>2]=r,E_[e+40>>2]=i,E_[e+48>>2]=-1,m_[e+52|0]=0,pf(a,n),n=Sf(a,15800)|0,i=n,r=e+36|0,E_[r>>2]=i,t=e+44|0,E_[t>>2]=rv[E_[(E_[n>>2]|0)+24>>2]&127](i)|0,i=E_[r>>2]|0,m_[e+53|0]=(rv[E_[(E_[i>>2]|0)+28>>2]&127](i)|0)&1,(E_[t>>2]|0)<=8?(Ef(a),void(O_=f)):(Ni(144),Ef(a),void(O_=f))}function Mk(e){e|=0,E_[e>>2]=7032,Ef(e+4|0)}function Nk(e){e|=0,E_[e>>2]=7032,Ef(e+4|0),hn(e)}function Dk(e,r){e|=0,r|=0;var i=0,f=0,a=0;i=Sf(r,15800)|0,r=i,f=e+36|0,E_[f>>2]=r,a=e+44|0,E_[a>>2]=rv[E_[(E_[i>>2]|0)+24>>2]&127](r)|0,r=E_[f>>2]|0,m_[e+53|0]=(rv[E_[(E_[r>>2]|0)+28>>2]&127](r)|0)&1,(E_[a>>2]|0)<=8||Ni(144)}function Ck(e){return e|=0,Lk(e,0)|0}function Tk(e){return e|=0,Lk(e,1)|0}function Pk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;if(i=O_,O_=O_+32|0,f=i|0,a=i+8|0,t=i+16|0,n=i+24|0,o=e+52|0,u=(m_[o]&1)!=0,(r|0)==-1)return u?(l=-1,O_=i,l|0):(s=E_[e+48>>2]|0,m_[o]=(s|0)!=-1|0,l=s,O_=i,l|0);s=e+48|0;e:do if(u){if(E_[t>>2]=E_[s>>2],b=E_[e+36>>2]|0,k=f|0,c=nv[E_[(E_[b>>2]|0)+12>>2]&31](b,E_[e+40>>2]|0,t,t+4|0,n,k,f+8|0,a)|0,(c|0)==3)m_[k]=E_[s>>2]&255,E_[a>>2]=f+1;else if((c|0)==2|(c|0)==1)return l=-1,O_=i,l|0;for(c=e+32|0;;){if(b=E_[a>>2]|0,b>>>0<=k>>>0)break e;if(d=b-1|0,E_[a>>2]=d,(Tw(m_[d]|0,E_[c>>2]|0)|0)==-1){l=-1;break}}return O_=i,l|0}while(0);return E_[s>>2]=r,m_[o]=1,l=r,O_=i,l|0}function Lk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0;if(i=O_,O_=O_+32|0,f=i|0,a=i+8|0,t=i+16|0,n=i+24|0,o=e+52|0,(m_[o]&1)!=0)return u=e+48|0,l=E_[u>>2]|0,r?(E_[u>>2]=-1,m_[o]=0,s=l,O_=i,s|0):(s=l,O_=i,s|0);l=E_[e+44>>2]|0,o=(l|0)>1?l:1;e:do if((o|0)>0){for(l=e+32|0,u=0;;){if(b=bw(E_[l>>2]|0)|0,(b|0)==-1){s=-1;break}if(m_[f+u|0]=b&255,u=u+1|0,(u|0)>=(o|0))break e}return O_=i,s|0}while(0);e:do if((m_[e+53|0]&1)==0){for(u=e+40|0,l=e+36|0,b=f|0,k=a+4|0,c=e+32|0,d=o;;){if(h=E_[u>>2]|0,_=h,w=E_[_>>2]|0,v=E_[_+4>>2]|0,_=E_[l>>2]|0,m=f+d|0,p=nv[E_[(E_[_>>2]|0)+16>>2]&31](_,h,b,m,t,a,k,n)|0,(p|0)==2){s=-1,E=882;break}if((p|0)==3){E=867;break}if((p|0)!=1){S=d;break e}if(p=E_[u>>2]|0,E_[p>>2]=w,E_[p+4>>2]=v,(d|0)==8){s=-1,E=883;break}if(v=bw(E_[c>>2]|0)|0,(v|0)==-1){s=-1,E=884;break}m_[m]=v&255,d=d+1|0}if((E|0)==882)return O_=i,s|0;if((E|0)==883)return O_=i,s|0;if((E|0)==867){E_[a>>2]=m_[b]|0,S=d;break}if((E|0)==884)return O_=i,s|0}else E_[a>>2]=m_[f|0]|0,S=o;while(0);if(r)return r=E_[a>>2]|0,E_[e+48>>2]=r,s=r,O_=i,s|0;for(r=e+32|0,e=S;;){if((e|0)<=0)break;if(S=e-1|0,(Tw(m_[f+S|0]|0,E_[r>>2]|0)|0)==-1){s=-1,E=876;break}e=S}return(E|0)==876?(O_=i,s|0):(s=E_[a>>2]|0,O_=i,s|0)}function Ik(e){e|=0,E_[e>>2]=7104,Ef(e+4|0)}function xk(e){e|=0,E_[e>>2]=7104,Ef(e+4|0),hn(e)}function Bk(e,r){e|=0,r|=0;var i=0;rv[E_[(E_[e>>2]|0)+24>>2]&127](e)|0,i=Sf(r,15808)|0,r=i,E_[e+36>>2]=r,m_[e+44|0]=(rv[E_[(E_[i>>2]|0)+28>>2]&127](r)|0)&1}function Hk(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0;for(r=O_,O_=O_+16|0,i=r|0,f=r+8|0,a=e+36|0,t=e+40|0,n=i|0,o=i+8|0,u=i,i=e+32|0;;){if(e=E_[a>>2]|0,l=$w[E_[(E_[e>>2]|0)+20>>2]&31](e,E_[t>>2]|0,n,o,f)|0,e=(E_[f>>2]|0)-u|0,(aw(n|0,1,e|0,E_[i>>2]|0)|0)!=(e|0)){s=-1,b=893;break}if((l|0)==2){s=-1,b=894;break}if((l|0)!=1){b=891;break}}return(b|0)==891?(s=((iw(E_[i>>2]|0)|0)!=0)<<31>>31,O_=r,s|0):(b|0)==893?(O_=r,s|0):(b|0)==894?(O_=r,s|0):0}function Uk(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0;if((m_[e+44|0]&1)!=0)return f=aw(r|0,1,i|0,E_[e+32>>2]|0)|0,f|0;if(a=e,!((i|0)>0))return f=0,f|0;for(t=r,n=0;;){if((lv[E_[(E_[a>>2]|0)+52>>2]&31](e,S_[t]|0)|0)==-1){f=n,o=904;break}if(r=n+1|0,!((r|0)<(i|0))){f=r,o=905;break}t=t+1|0,n=r}return(o|0)==904?f|0:(o|0)==905?f|0:0}function zk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0;i=O_,O_=O_+32|0,f=i|0,a=i+8|0,t=i+16|0,n=i+24|0,o=(r|0)==-1;e:do if(!o){if(m_[a]=r&255,(m_[e+44|0]&1)!=0){if((aw(a|0,1,1,E_[e+32>>2]|0)|0)==1)break;return u=-1,O_=i,u|0}for(l=f|0,E_[t>>2]=l,s=a+1|0,b=e+36|0,k=e+40|0,c=f+8|0,d=f,h=e+32|0,_=a;;){if(w=E_[b>>2]|0,v=nv[E_[(E_[w>>2]|0)+12>>2]&31](w,E_[k>>2]|0,_,s,n,l,c,t)|0,(E_[n>>2]|0)==(_|0)){u=-1,m=918;break}if((v|0)==3){m=912;break}if(w=(v|0)==1,v>>>0>=2){u=-1,m=923;break}if(v=(E_[t>>2]|0)-d|0,(aw(l|0,1,v|0,E_[h>>2]|0)|0)!=(v|0)){u=-1,m=920;break}if(!w)break e;_=w?E_[n>>2]|0:_}if((m|0)==923)return O_=i,u|0;if((m|0)==920)return O_=i,u|0;if((m|0)==912){if((aw(_|0,1,1,E_[h>>2]|0)|0)==1)break;return u=-1,O_=i,u|0}if((m|0)==918)return O_=i,u|0}while(0);return u=o?0:r,O_=i,u|0}function Yk(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0;return f=O_,O_=O_+8|0,a=f|0,t=e|0,E_[t>>2]=7104,n=e+4|0,mf(n),o=e+8|0,An(o|0,0,24)|0,E_[t>>2]=7872,E_[e+32>>2]=r,E_[e+40>>2]=i,E_[e+48>>2]=-1,m_[e+52|0]=0,pf(a,n),n=Sf(a,15808)|0,i=n,r=e+36|0,E_[r>>2]=i,t=e+44|0,E_[t>>2]=rv[E_[(E_[n>>2]|0)+24>>2]&127](i)|0,i=E_[r>>2]|0,m_[e+53|0]=(rv[E_[(E_[i>>2]|0)+28>>2]&127](i)|0)&1,(E_[t>>2]|0)<=8?(Ef(a),void(O_=f)):(Ni(144),Ef(a),void(O_=f))}function Vk(e){e|=0,E_[e>>2]=7104,Ef(e+4|0)}function Zk(e){e|=0,E_[e>>2]=7104,Ef(e+4|0),hn(e)}function jk(e,r){e|=0,r|=0;var i=0,f=0,a=0;i=Sf(r,15808)|0,r=i,f=e+36|0,E_[f>>2]=r,a=e+44|0,E_[a>>2]=rv[E_[(E_[i>>2]|0)+24>>2]&127](r)|0,r=E_[f>>2]|0,m_[e+53|0]=(rv[E_[(E_[r>>2]|0)+28>>2]&127](r)|0)&1,(E_[a>>2]|0)<=8||Ni(144)}function qk(e){return e|=0,Xk(e,0)|0}function Wk(e){return e|=0,Xk(e,1)|0}function Kk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;if(i=O_,O_=O_+32|0,f=i|0,a=i+8|0,t=i+16|0,n=i+24|0,o=e+52|0,u=(m_[o]&1)!=0,(r|0)==-1)return u?(l=-1,O_=i,l|0):(s=E_[e+48>>2]|0,m_[o]=(s|0)!=-1|0,l=s,O_=i,l|0);s=e+48|0;e:do if(u){if(m_[t]=E_[s>>2]&255,b=E_[e+36>>2]|0,k=f|0,c=nv[E_[(E_[b>>2]|0)+12>>2]&31](b,E_[e+40>>2]|0,t,t+1|0,n,k,f+8|0,a)|0,(c|0)==2|(c|0)==1)return l=-1,O_=i,l|0;for((c|0)==3&&(m_[k]=E_[s>>2]&255,E_[a>>2]=f+1),c=e+32|0;;){if(b=E_[a>>2]|0,b>>>0<=k>>>0)break e;if(d=b-1|0,E_[a>>2]=d,(Tw(m_[d]|0,E_[c>>2]|0)|0)==-1){l=-1;break}}return O_=i,l|0}while(0);return E_[s>>2]=r,m_[o]=1,l=r,O_=i,l|0}function Xk(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0;if(i=O_,O_=O_+32|0,f=i|0,a=i+8|0,t=i+16|0,n=i+24|0,o=e+52|0,(m_[o]&1)!=0)return u=e+48|0,l=E_[u>>2]|0,r?(E_[u>>2]=-1,m_[o]=0,s=l,O_=i,s|0):(s=l,O_=i,s|0);l=E_[e+44>>2]|0,o=(l|0)>1?l:1;e:do if((o|0)>0){for(l=e+32|0,u=0;;){if(b=bw(E_[l>>2]|0)|0,(b|0)==-1){s=-1;break}if(m_[f+u|0]=b&255,u=u+1|0,(u|0)>=(o|0))break e}return O_=i,s|0}while(0);e:do if((m_[e+53|0]&1)==0){for(u=e+40|0,l=e+36|0,b=f|0,k=a+1|0,c=e+32|0,d=o;;){if(h=E_[u>>2]|0,_=h,w=E_[_>>2]|0,v=E_[_+4>>2]|0,_=E_[l>>2]|0,m=f+d|0,p=nv[E_[(E_[_>>2]|0)+16>>2]&31](_,h,b,m,t,a,k,n)|0,(p|0)==3){E=969;break}if((p|0)==2){s=-1,E=980;break}if((p|0)!=1){S=d;break e}if(p=E_[u>>2]|0,E_[p>>2]=w,E_[p+4>>2]=v,(d|0)==8){s=-1,E=981;break}if(v=bw(E_[c>>2]|0)|0,(v|0)==-1){s=-1,E=982;break}m_[m]=v&255,d=d+1|0}if((E|0)==982)return O_=i,s|0;if((E|0)==969){m_[a]=m_[b]|0,S=d;break}if((E|0)==980)return O_=i,s|0;if((E|0)==981)return O_=i,s|0}else m_[a]=m_[f|0]|0,S=o;while(0);do if(r)o=m_[a]|0,E_[e+48>>2]=o&255,g=o;else{for(o=e+32|0,n=S;;){if((n|0)<=0){E=976;break}if(t=n-1|0,(Tw(S_[f+t|0]|0|0,E_[o>>2]|0)|0)==-1){s=-1,E=983;break}n=t}if((E|0)==983)return O_=i,s|0;if((E|0)==976){g=m_[a]|0;break}}while(0);return s=g&255,O_=i,s|0}function Gk(){pk(0),kw(140,16560,I_|0)|0}function Qk(e){e|=0}function Jk(e){e|=0;var r=0;r=e+4|0,U_=E_[r>>2]|0,E_[r>>2]=U_+1,U_}function $k(e){e|=0;var r=0,i=0;return r=e+4|0,U_=E_[r>>2]|0,E_[r>>2]=U_+-1,(U_|0)!=0?(i=0,i|0):(Qw[E_[(E_[e>>2]|0)+8>>2]&511](e),i=1,i|0)}function ec(e,r){e|=0,r|=0;var i=0,f=0,a=0;E_[e>>2]=5408,i=e+4|0,(i|0)!=0&&(e=gn(r|0)|0,f=e+1|0,a=dn(e+13|0)|0,E_[a+4>>2]=e,E_[a>>2]=e,e=a+12|0,E_[i>>2]=e,E_[a+8>>2]=0,yn(e|0,r|0,f)|0)}function rc(e){e|=0;var r=0,i=0,f=0;return E_[e>>2]=5408,r=e+4|0,i=(E_[r>>2]|0)-4|0,U_=E_[i>>2]|0,E_[i>>2]=U_+-1,(U_-1|0)>=0?(f=e,void hn(f)):(i=(E_[r>>2]|0)-12|0,(i|0)==0?(f=e,void hn(f)):(_n(i),f=e,void hn(f)))}function ic(e){e|=0;var r=0;E_[e>>2]=5408,r=e+4|0,e=(E_[r>>2]|0)-4|0,U_=E_[e>>2]|0,E_[e>>2]=U_+-1,(U_-1|0)>=0||(e=(E_[r>>2]|0)-12|0,(e|0)!=0&&_n(e))}function fc(e){return e|=0,E_[e+4>>2]|0}function ac(e,r){e|=0,r|=0;var i=0,f=0,a=0;E_[e>>2]=5344,i=e+4|0,(i|0)!=0&&(f=(m_[r]&1)==0?r+1|0:E_[r+8>>2]|0,r=gn(f|0)|0,e=r+1|0,a=dn(r+13|0)|0,E_[a+4>>2]=r,E_[a>>2]=r,r=a+12|0,E_[i>>2]=r,E_[a+8>>2]=0,yn(r|0,f|0,e)|0)}function tc(e,r){e|=0,r|=0;var i=0,f=0,a=0;E_[e>>2]=5344,i=e+4|0,(i|0)!=0&&(e=gn(r|0)|0,f=e+1|0,a=dn(e+13|0)|0,E_[a+4>>2]=e,E_[a>>2]=e,e=a+12|0,E_[i>>2]=e,E_[a+8>>2]=0,yn(e|0,r|0,f)|0)}function nc(e){e|=0;var r=0,i=0,f=0;return E_[e>>2]=5344,r=e+4|0,i=(E_[r>>2]|0)-4|0,U_=E_[i>>2]|0,E_[i>>2]=U_+-1,(U_-1|0)>=0?(f=e,void hn(f)):(i=(E_[r>>2]|0)-12|0,(i|0)==0?(f=e,void hn(f)):(_n(i),f=e,void hn(f)))}function oc(e){e|=0;var r=0;E_[e>>2]=5344,r=e+4|0,e=(E_[r>>2]|0)-4|0,U_=E_[e>>2]|0,E_[e>>2]=U_+-1,(U_-1|0)>=0||(e=(E_[r>>2]|0)-12|0,(e|0)!=0&&_n(e))}function uc(e){return e|=0,E_[e+4>>2]|0}function lc(e){e|=0;var r=0,i=0,f=0;return E_[e>>2]=5408,r=e+4|0,i=(E_[r>>2]|0)-4|0,U_=E_[i>>2]|0,E_[i>>2]=U_+-1,(U_-1|0)>=0?(f=e,void hn(f)):(i=(E_[r>>2]|0)-12|0,(i|0)==0?(f=e,void hn(f)):(_n(i),f=e,void hn(f)))}function sc(e){e|=0}function bc(e,r,i){e|=0,r|=0,i|=0,E_[e>>2]=i,E_[e+4>>2]=r}function kc(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0;return f=O_,O_=O_+8|0,a=f|0,bv[E_[(E_[e>>2]|0)+12>>2]&15](a,e,r),(E_[a+4>>2]|0)!=(E_[i+4>>2]|0)?(t=0,O_=f,t|0):(t=(E_[a>>2]|0)==(E_[i>>2]|0),O_=f,t|0)}function cc(e,r,i){e|=0,r|=0,i|=0;var f=0;return(E_[r+4>>2]|0)!=(e|0)?(f=0,f|0):(f=(E_[r>>2]|0)==(i|0),f|0)}function dc(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0;return r=Dw(i|0)|0,i=gn(r|0)|0,i>>>0>4294967279&&pc(0),i>>>0<11?(m_[e]=i<<1&255,f=e+1|0,yn(f|0,r|0,i)|0,a=f+i|0,void(m_[a]=0)):(t=i+16&-16,n=kn(t)|0,E_[e+8>>2]=n,E_[e>>2]=t|1,E_[e+4>>2]=i,f=n,yn(f|0,r|0,i)|0,a=f+i|0,void(m_[a]=0))}function hc(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;f=O_,a=i,t=O_,O_=O_+12|0,O_=O_+7&-8,n=r|0,o=E_[n>>2]|0;do if((o|0)!=0){if(u=S_[a]|0,l=(u&1|0)==0?u>>>1:E_[i+4>>2]|0,(l|0)==0?s=o:(Nc(i,2824,2)|0,s=E_[n>>2]|0),u=E_[r+4>>2]|0,bv[E_[(E_[u>>2]|0)+24>>2]&15](t,u,s),u=t,b=m_[u]|0,k=(b&1)==0?t+1|0:E_[t+8>>2]|0,c=b&255,d=(c&1|0)==0?c>>>1:E_[t+4>>2]|0,Nc(i,k,d)|0,(m_[u]&1)==0)break;hn(E_[t+8>>2]|0)}while(0);t=e,E_[t>>2]=E_[a>>2],E_[t+4>>2]=E_[a+4>>2],E_[t+8>>2]=E_[a+8>>2],An(a|0,0,12)|0,O_=f}function _c(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0;f=O_,O_=O_+32|0,a=r,r=O_,O_=O_+8|0,E_[r>>2]=E_[a>>2],E_[r+4>>2]=E_[a+4>>2],a=f|0,t=f+16|0,n=gn(i|0)|0,n>>>0>4294967279&&pc(0),n>>>0<11?(m_[t]=n<<1&255,o=t+1|0):(u=n+16&-16,l=kn(u)|0,E_[t+8>>2]=l,E_[t>>2]=u|1,E_[t+4>>2]=n,o=l),yn(o|0,i|0,n)|0,m_[o+n|0]=0,hc(a,r,t),ac(e|0,a),(m_[a]&1)!=0&&hn(E_[a+8>>2]|0),(m_[t]&1)!=0&&hn(E_[t+8>>2]|0),E_[e>>2]=7368,t=r,r=e+8|0,e=E_[t+4>>2]|0,E_[r>>2]=E_[t>>2],E_[r+4>>2]=e,O_=f}function wc(e){e|=0,oc(e|0),hn(e)}function vc(e){e|=0,oc(e|0)}function mc(e,r,i){e|=0,r|=0,i|=0;if((E_[e>>2]|0)==1)do ow(15560,15536)|0;while((E_[e>>2]|0)==1);(E_[e>>2]|0)==0&&(E_[e>>2]=1,Qw[i&511](r),E_[e>>2]=-1,Rw(15560)|0)}function pc(e){e|=0,e=Yw(8)|0,ec(e,480),E_[e>>2]=5376,gw(e|0,11056,38)}function Ec(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0;return i=r,(m_[i]&1)==0?(f=e,E_[f>>2]=E_[i>>2],E_[f+4>>2]=E_[i+4>>2],void(E_[f+8>>2]=E_[i+8>>2])):(i=E_[r+8>>2]|0,f=E_[r+4>>2]|0,f>>>0>4294967279&&pc(0),f>>>0<11?(m_[e]=f<<1&255,a=e+1|0):(r=f+16&-16,t=kn(r)|0,E_[e+8>>2]=t,E_[e>>2]=r|1,E_[e+4>>2]=f,a=t),yn(a|0,i|0,f)|0,void(m_[a+f|0]=0))}function Sc(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0;return i>>>0>4294967279&&pc(0),i>>>0<11?(m_[e]=i<<1&255,f=e+1|0,yn(f|0,r|0,i)|0,a=f+i|0,void(m_[a]=0)):(t=i+16&-16,n=kn(t)|0,E_[e+8>>2]=n,E_[e>>2]=t|1,E_[e+4>>2]=i,f=n,yn(f|0,r|0,i)|0,a=f+i|0,void(m_[a]=0))}function gc(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0;r>>>0>4294967279&&pc(0),r>>>0<11?(m_[e]=r<<1&255,f=e+1|0):(a=r+16&-16,t=kn(a)|0,E_[e+8>>2]=t,E_[e>>2]=a|1,E_[e+4>>2]=r,f=t),An(f|0,i|0,r|0)|0,m_[f+r|0]=0}function yc(e){e|=0,(m_[e]&1)!=0&&hn(E_[e+8>>2]|0)}function Ac(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0;return i=gn(r|0)|0,f=e,a=e,t=m_[a]|0,(t&1)==0?(n=10,o=t):(t=E_[e>>2]|0,n=(t&-2)-1|0,o=t&255),n>>>0<i>>>0?(t=o&255,u=(t&1|0)==0?t>>>1:E_[e+4>>2]|0,Dc(e,n,i-n|0,u,0,u,i,r),e|0):(l=(o&1)==0?f+1|0:E_[e+8>>2]|0,On(l|0,r|0,i|0)|0,m_[l+i|0]=0,(m_[a]&1)==0?(m_[a]=i<<1&255,e|0):(E_[e+4>>2]=i,e|0))}function Oc(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0;return f=e,a=m_[f]|0,t=a&255,n=(t&1|0)==0?t>>>1:E_[e+4>>2]|0,n>>>0<r>>>0?(t=r-n|0,void(Rc(e,t,i)|0)):(a&1)==0?(m_[e+1+r|0]=0,void(m_[f]=r<<1&255)):(m_[(E_[e+8>>2]|0)+r|0]=0,void(E_[e+4>>2]=r))}function Rc(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0;return(r|0)==0?e|0:(f=e,a=m_[f]|0,(a&1)==0?(t=10,n=a):(a=E_[e>>2]|0,t=(a&-2)-1|0,n=a&255),a=n&255,o=(a&1|0)==0?a>>>1:E_[e+4>>2]|0,(t-o|0)>>>0<r>>>0?(Cc(e,t,r-t+o|0,o,o,0,0),u=m_[f]|0):u=n,l=(u&1)==0?e+1|0:E_[e+8>>2]|0,u=l+o|0,An(u|0,i|0,r|0)|0,i=o+r|0,(m_[f]&1)==0?m_[f]=i<<1&255:E_[e+4>>2]=i,m_[l+i|0]=0,e|0)}function Fc(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0;return r>>>0>4294967279&&pc(0),i=e,f=e,a=m_[f]|0,(a&1)==0?(t=10,n=a):(a=E_[e>>2]|0,t=(a&-2)-1|0,n=a&255),a=n&255,o=(a&1|0)==0?a>>>1:E_[e+4>>2]|0,a=o>>>0>r>>>0?o:r,u=a>>>0<11?11:a+16&-16,a=u-1|0,(a|0)!=(t|0)?((a|0)==10?(l=i+1|0,s=E_[e+8>>2]|0,b=1,k=0):(c=a>>>0>t>>>0?kn(u)|0:kn(u)|0,t=n&1,d=t<<24>>24==0?i+1|0:E_[e+8>>2]|0,l=c,s=d,b=t<<24>>24!=0,k=1),t=n&255,h=(t&1|0)==0?t>>>1:E_[e+4>>2]|0,t=h+1|0,yn(l|0,s|0,t)|0,b&&hn(s),k?(E_[e>>2]=u|1,E_[e+4>>2]=o,void(E_[e+8>>2]=l)):void(m_[f]=o<<1&255)):void 0}function Mc(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;return i=e,f=m_[i]|0,(f&1)==0?(a=(f&255)>>>1,t=10):(a=E_[e+4>>2]|0,t=(E_[e>>2]&-2)-1|0),(a|0)==(t|0)?(Cc(e,t,1,t,t,0,0),n=m_[i]|0):n=f,(n&1)==0?(m_[i]=(a<<1)+2&255,o=e+1|0,u=a+1|0,l=o+a|0,m_[l]=r,s=o+u|0,void(m_[s]=0)):(i=E_[e+8>>2]|0,n=a+1|0,E_[e+4>>2]=n,o=i,u=n,l=o+a|0,m_[l]=r,s=o+u|0,void(m_[s]=0))}function Nc(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0;return f=e,a=m_[f]|0,(a&1)==0?(t=10,n=a):(a=E_[e>>2]|0,t=(a&-2)-1|0,n=a&255),a=n&255,o=(a&1|0)==0?a>>>1:E_[e+4>>2]|0,(t-o|0)>>>0<i>>>0?(Dc(e,t,i-t+o|0,o,o,0,i,r),e|0):(i|0)==0?e|0:(u=(n&1)==0?e+1|0:E_[e+8>>2]|0,n=u+o|0,yn(n|0,r|0,i)|0,r=o+i|0,(m_[f]&1)==0?m_[f]=r<<1&255:E_[e+4>>2]=r,m_[u+r|0]=0,e|0)}function Dc(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;(-18-r|0)>>>0<i>>>0&&pc(0),u=(m_[e]&1)==0?e+1|0:E_[e+8>>2]|0;do if(r>>>0<2147483623){if(l=i+r|0,s=r<<1,b=l>>>0<s>>>0?s:l,b>>>0<11){k=11;break}k=b+16&-16}else k=-17;while(0);return i=kn(k)|0,(a|0)!=0&&yn(i|0,u|0,a)|0,(n|0)!=0&&(b=i+a|0,yn(b|0,o|0,n)|0),o=f-t|0,(o|0)!=(a|0)&&(f=o-a|0,b=i+(n+a)|0,l=u+(t+a)|0,yn(b|0,l|0,f)|0),(r|0)==10?(c=e+8|0,E_[c>>2]=i,d=k|1,h=e|0,E_[h>>2]=d,_=o+n|0,w=e+4|0,E_[w>>2]=_,v=i+_|0,void(m_[v]=0)):(hn(u),c=e+8|0,E_[c>>2]=i,d=k|1,h=e|0,E_[h>>2]=d,_=o+n|0,w=e+4|0,E_[w>>2]=_,v=i+_|0,void(m_[v]=0))
}function Cc(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;(-17-r|0)>>>0<i>>>0&&pc(0),o=(m_[e]&1)==0?e+1|0:E_[e+8>>2]|0;do if(r>>>0<2147483623){if(u=i+r|0,l=r<<1,s=u>>>0<l>>>0?l:u,s>>>0<11){b=11;break}b=s+16&-16}else b=-17;while(0);return i=kn(b)|0,(a|0)!=0&&yn(i|0,o|0,a)|0,s=f-t|0,(s|0)!=(a|0)&&(f=s-a|0,s=i+(n+a)|0,n=o+(t+a)|0,yn(s|0,n|0,f)|0),(r|0)==10?(k=e+8|0,E_[k>>2]=i,c=b|1,d=e|0,void(E_[d>>2]=c)):(hn(o),k=e+8|0,E_[k>>2]=i,c=b|1,d=e|0,void(E_[d>>2]=c))}function Tc(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0;return i>>>0>1073741807&&pc(0),i>>>0<2?(m_[e]=i<<1&255,f=e+4|0,a=Lt(f,r,i)|0,t=f+(i<<2)|0,void(E_[t>>2]=0)):(n=i+4&-4,o=kn(n<<2)|0,E_[e+8>>2]=o,E_[e>>2]=n|1,E_[e+4>>2]=i,f=o,a=Lt(f,r,i)|0,t=f+(i<<2)|0,void(E_[t>>2]=0))}function Pc(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0;return r>>>0>1073741807&&pc(0),r>>>0<2?(m_[e]=r<<1&255,f=e+4|0,a=xt(f,i,r)|0,t=f+(r<<2)|0,void(E_[t>>2]=0)):(n=r+4&-4,o=kn(n<<2)|0,E_[e+8>>2]=o,E_[e>>2]=n|1,E_[e+4>>2]=r,f=o,a=xt(f,i,r)|0,t=f+(r<<2)|0,void(E_[t>>2]=0))}function Lc(e){e|=0,(m_[e]&1)!=0&&hn(E_[e+8>>2]|0)}function Ic(e,r){return e|=0,r|=0,xc(e,r,Pt(r)|0)|0}function xc(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0;return f=e,a=m_[f]|0,(a&1)==0?(t=1,n=a):(a=E_[e>>2]|0,t=(a&-2)-1|0,n=a&255),t>>>0<i>>>0?(a=n&255,o=(a&1|0)==0?a>>>1:E_[e+4>>2]|0,Uc(e,t,i-t|0,o,0,o,i,r),e|0):(u=(n&1)==0?e+4|0:E_[e+8>>2]|0,It(u,r,i)|0,E_[u+(i<<2)>>2]=0,(m_[f]&1)==0?(m_[f]=i<<1&255,e|0):(E_[e+4>>2]=i,e|0))}function Bc(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;return r>>>0>1073741807&&pc(0),i=e,f=m_[i]|0,(f&1)==0?(a=1,t=f):(f=E_[e>>2]|0,a=(f&-2)-1|0,t=f&255),f=t&255,n=(f&1|0)==0?f>>>1:E_[e+4>>2]|0,f=n>>>0>r>>>0?n:r,o=f>>>0<2?2:f+4&-4,f=o-1|0,(f|0)!=(a|0)?((f|0)==1?(u=e+4|0,l=E_[e+8>>2]|0,s=1,b=0):(r=o<<2,k=f>>>0>a>>>0?kn(r)|0:kn(r)|0,r=t&1,c=r<<24>>24==0?e+4|0:E_[e+8>>2]|0,u=k,l=c,s=r<<24>>24!=0,b=1),r=u,u=t&255,d=(u&1|0)==0?u>>>1:E_[e+4>>2]|0,Lt(r,l,d+1|0)|0,s&&hn(l),b?(E_[e>>2]=o|1,E_[e+4>>2]=n,void(E_[e+8>>2]=r)):void(m_[i]=n<<1&255)):void 0}function Hc(e,r){e|=0,r|=0;var i=0,f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;return i=e,f=m_[i]|0,(f&1)==0?(a=(f&255)>>>1,t=1):(a=E_[e+4>>2]|0,t=(E_[e>>2]&-2)-1|0),(a|0)==(t|0)?(zc(e,t,1,t,t,0,0),n=m_[i]|0):n=f,(n&1)==0?(m_[i]=(a<<1)+2&255,o=e+4|0,u=a+1|0,l=o+(a<<2)|0,E_[l>>2]=r,s=o+(u<<2)|0,void(E_[s>>2]=0)):(i=E_[e+8>>2]|0,n=a+1|0,E_[e+4>>2]=n,o=i,u=n,l=o+(a<<2)|0,E_[l>>2]=r,s=o+(u<<2)|0,void(E_[s>>2]=0))}function Uc(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0;(1073741806-r|0)>>>0<i>>>0&&pc(0),u=(m_[e]&1)==0?e+4|0:E_[e+8>>2]|0;do if(r>>>0<536870887){if(l=i+r|0,s=r<<1,b=l>>>0<s>>>0?s:l,b>>>0<2){k=2;break}k=b+4&-4}else k=1073741807;while(0);return i=kn(k<<2)|0,(a|0)!=0&&Lt(i,u,a)|0,(n|0)!=0&&(b=i+(a<<2)|0,Lt(b,o,n)|0),o=f-t|0,(o|0)!=(a|0)&&(f=o-a|0,b=i+(n+a<<2)|0,l=u+(t+a<<2)|0,Lt(b,l,f)|0),(r|0)==1?(c=e+8|0,E_[c>>2]=i,d=k|1,h=e|0,E_[h>>2]=d,_=o+n|0,w=e+4|0,E_[w>>2]=_,v=i+(_<<2)|0,void(E_[v>>2]=0)):(hn(u),c=e+8|0,E_[c>>2]=i,d=k|1,h=e|0,E_[h>>2]=d,_=o+n|0,w=e+4|0,E_[w>>2]=_,v=i+(_<<2)|0,void(E_[v>>2]=0))}function zc(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0;(1073741807-r|0)>>>0<i>>>0&&pc(0),o=(m_[e]&1)==0?e+4|0:E_[e+8>>2]|0;do if(r>>>0<536870887){if(u=i+r|0,l=r<<1,s=u>>>0<l>>>0?l:u,s>>>0<2){b=2;break}b=s+4&-4}else b=1073741807;while(0);return i=kn(b<<2)|0,(a|0)!=0&&Lt(i,o,a)|0,s=f-t|0,(s|0)!=(a|0)&&(f=s-a|0,s=i+(n+a<<2)|0,n=o+(t+a<<2)|0,Lt(s,n,f)|0),(r|0)==1?(k=e+8|0,E_[k>>2]=i,c=b|1,d=e|0,void(E_[d>>2]=c)):(hn(o),k=e+8|0,E_[k>>2]=i,c=b|1,d=e|0,void(E_[d>>2]=c))}function Yc(e,r){e|=0,r|=0;var i=0,f=0,a=0;if(i=O_,O_=O_+8|0,f=i|0,a=(E_[e+24>>2]|0)==0,E_[e+16>>2]=a?r|1:r,((a&1|r)&E_[e+20>>2]|0)==0)return void(O_=i);i=Yw(16)|0;do if((m_[16680]|0)==0){if((vw(16680)|0)==0)break;E_[3668]=6872,kw(70,14672,I_|0)|0}while(0);e=Nn(14672,0,32)|0,E_[f>>2]=e&0|1,E_[f+4>>2]=z_|0,_c(i,f,3144),E_[i>>2]=6056,gw(i|0,11600,34)}function Vc(e){e|=0;var r=0,i=0,f=0,a=0;if(E_[e>>2]=6032,r=E_[e+40>>2]|0,i=e+32|0,f=e+36|0,(r|0)!=0){a=r;do a=a-1|0,bv[E_[(E_[i>>2]|0)+(a<<2)>>2]&15](0,e,E_[(E_[f>>2]|0)+(a<<2)>>2]|0);while((a|0)!=0)}Ef(e+28|0),un(E_[i>>2]|0),un(E_[f>>2]|0),un(E_[e+48>>2]|0),un(E_[e+60>>2]|0)}function Zc(e,r){e|=0,r|=0,pf(e,r+28|0)}function jc(e,r){e|=0,r|=0;var i=0,f=0;E_[e+24>>2]=r,E_[e+16>>2]=(r|0)==0,E_[e+20>>2]=0,E_[e+4>>2]=4098,E_[e+12>>2]=0,E_[e+8>>2]=6,r=e+28|0,i=(r|0)==0,f=e+32|0,An(f|0,0,40)|0,i||mf(r)}function qc(e){e|=0,E_[e>>2]=7104,Ef(e+4|0),hn(e)}function Wc(e){e|=0,E_[e>>2]=7104,Ef(e+4|0)}function Kc(e,r){e|=0,r|=0}function Xc(e,r,i){return e|=0,r|=0,i|=0,e|0}function Gc(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,t=e,E_[t>>2]=0,E_[t+4>>2]=0,t=e+8|0,E_[t>>2]=-1,E_[t+4>>2]=-1}function Qc(e,r,i,f){e|=0,r|=0,i|=0,f|=0,f=O_,r=i,i=O_,O_=O_+16|0,E_[i>>2]=E_[r>>2],E_[i+4>>2]=E_[r+4>>2],E_[i+8>>2]=E_[r+8>>2],E_[i+12>>2]=E_[r+12>>2],r=e,E_[r>>2]=0,E_[r+4>>2]=0,r=e+8|0,E_[r>>2]=-1,E_[r+4>>2]=-1,O_=f}function Jc(e){return e|=0,0}function $c(e){return e|=0,0}function ed(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(f=e,(i|0)<=0)return a=0,a|0;for(t=e+12|0,n=e+16|0,o=r,r=0;;){if(u=E_[t>>2]|0,u>>>0<(E_[n>>2]|0)>>>0)E_[t>>2]=u+1,l=m_[u]|0;else{if(u=rv[E_[(E_[f>>2]|0)+40>>2]&127](e)|0,(u|0)==-1){a=r,s=1465;break}l=u&255}if(m_[o]=l,u=r+1|0,!((u|0)<(i|0))){a=u,s=1464;break}o=o+1|0,r=u}return(s|0)==1465?a|0:(s|0)==1464?a|0:0}function rd(e){return e|=0,-1}function id(e){e|=0;var r=0,i=0;return(rv[E_[(E_[e>>2]|0)+36>>2]&127](e)|0)==-1?(r=-1,r|0):(i=e+12|0,e=E_[i>>2]|0,E_[i>>2]=e+1,r=S_[e]|0,r|0)}function fd(e,r){return e|=0,r|=0,-1}function ad(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(f=e,(i|0)<=0)return a=0,a|0;for(t=e+24|0,n=e+28|0,o=0,u=r;;){if(r=E_[t>>2]|0,r>>>0<(E_[n>>2]|0)>>>0)l=m_[u]|0,E_[t>>2]=r+1,m_[r]=l;else if((lv[E_[(E_[f>>2]|0)+52>>2]&31](e,S_[u]|0)|0)==-1){a=o,s=1482;break}if(l=o+1|0,!((l|0)<(i|0))){a=l,s=1481;break}o=l,u=u+1|0}return(s|0)==1482?a|0:(s|0)==1481?a|0:0}function td(e,r){return e|=0,r|=0,-1}function nd(e){e|=0,E_[e>>2]=7032,Ef(e+4|0),hn(e)}function od(e){e|=0,E_[e>>2]=7032,Ef(e+4|0)}function ud(e,r){e|=0,r|=0}function ld(e,r,i){return e|=0,r|=0,i|=0,e|0}function sd(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,t=e,E_[t>>2]=0,E_[t+4>>2]=0,t=e+8|0,E_[t>>2]=-1,E_[t+4>>2]=-1}function bd(e,r,i,f){e|=0,r|=0,i|=0,f|=0,f=O_,r=i,i=O_,O_=O_+16|0,E_[i>>2]=E_[r>>2],E_[i+4>>2]=E_[r+4>>2],E_[i+8>>2]=E_[r+8>>2],E_[i+12>>2]=E_[r+12>>2],r=e,E_[r>>2]=0,E_[r+4>>2]=0,r=e+8|0,E_[r>>2]=-1,E_[r+4>>2]=-1,O_=f}function kd(e){return e|=0,0}function cd(e){return e|=0,0}function dd(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(f=e,(i|0)<=0)return a=0,a|0;for(t=e+12|0,n=e+16|0,o=r,r=0;;){if(u=E_[t>>2]|0,u>>>0<(E_[n>>2]|0)>>>0)E_[t>>2]=u+4,l=E_[u>>2]|0;else{if(u=rv[E_[(E_[f>>2]|0)+40>>2]&127](e)|0,(u|0)==-1){a=r,s=1500;break}l=u}if(E_[o>>2]=l,u=r+1|0,!((u|0)<(i|0))){a=u,s=1499;break}o=o+4|0,r=u}return(s|0)==1500?a|0:(s|0)==1499?a|0:0}function hd(e){return e|=0,-1}function _d(e){e|=0;var r=0,i=0;return(rv[E_[(E_[e>>2]|0)+36>>2]&127](e)|0)==-1?(r=-1,r|0):(i=e+12|0,e=E_[i>>2]|0,E_[i>>2]=e+4,r=E_[e>>2]|0,r|0)}function wd(e,r){return e|=0,r|=0,-1}function vd(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0,o=0,u=0,l=0,s=0;if(f=e,(i|0)<=0)return a=0,a|0;for(t=e+24|0,n=e+28|0,o=0,u=r;;){if(r=E_[t>>2]|0,r>>>0<(E_[n>>2]|0)>>>0)l=E_[u>>2]|0,E_[t>>2]=r+4,E_[r>>2]=l;else if((lv[E_[(E_[f>>2]|0)+52>>2]&31](e,E_[u>>2]|0)|0)==-1){a=o,s=1516;break}if(l=o+1|0,!((l|0)<(i|0))){a=l,s=1517;break}o=l,u=u+4|0}return(s|0)==1517?a|0:(s|0)==1516?a|0:0}function md(e,r){return e|=0,r|=0,-1}function pd(e){e|=0,Vc(e+8|0),hn(e)}function Ed(e){e|=0,Vc(e+8|0)}function Sd(e){e|=0;var r=0,i=0;r=e,i=E_[(E_[e>>2]|0)-12>>2]|0,Vc(r+(i+8)|0),hn(r+i|0)}function gd(e){e|=0,Vc(e+((E_[(E_[e>>2]|0)-12>>2]|0)+8)|0)}function yd(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0;if(r=O_,O_=O_+8|0,i=r|0,f=e,a=E_[(E_[f>>2]|0)-12>>2]|0,t=e,(E_[t+(a+24)>>2]|0)==0)return O_=r,e|0;n=i|0,m_[n]=0,E_[i+4>>2]=e;do if((E_[t+(a+16)>>2]|0)==0){if(o=E_[t+(a+72)>>2]|0,(o|0)!=0&&yd(o)|0,m_[n]=1,o=E_[t+((E_[(E_[f>>2]|0)-12>>2]|0)+24)>>2]|0,(rv[E_[(E_[o>>2]|0)+24>>2]&127](o)|0)!=-1)break;o=E_[(E_[f>>2]|0)-12>>2]|0,Yc(t+o|0,E_[t+(o+16)>>2]|1)}while(0);return Pd(i),O_=r,e|0}function Ad(e){e|=0,Vc(e+8|0),hn(e)}function Od(e){e|=0,Vc(e+8|0)}function Rd(e){e|=0;var r=0,i=0;r=e,i=E_[(E_[e>>2]|0)-12>>2]|0,Vc(r+(i+8)|0),hn(r+i|0)}function Fd(e){e|=0,Vc(e+((E_[(E_[e>>2]|0)-12>>2]|0)+8)|0)}function Md(e){e|=0;var r=0,i=0,f=0,a=0,t=0,n=0,o=0;if(r=O_,O_=O_+8|0,i=r|0,f=e,a=E_[(E_[f>>2]|0)-12>>2]|0,t=e,(E_[t+(a+24)>>2]|0)==0)return O_=r,e|0;n=i|0,m_[n]=0,E_[i+4>>2]=e;do if((E_[t+(a+16)>>2]|0)==0){if(o=E_[t+(a+72)>>2]|0,(o|0)!=0&&Md(o)|0,m_[n]=1,o=E_[t+((E_[(E_[f>>2]|0)-12>>2]|0)+24)>>2]|0,(rv[E_[(E_[o>>2]|0)+24>>2]&127](o)|0)!=-1)break;o=E_[(E_[f>>2]|0)-12>>2]|0,Yc(t+o|0,E_[t+(o+16)>>2]|1)}while(0);return Hd(i),O_=r,e|0}function Nd(e){e|=0,Vc(e+4|0),hn(e)}function Dd(e){e|=0,Vc(e+4|0)}function Cd(e){e|=0;var r=0,i=0;r=e,i=E_[(E_[e>>2]|0)-12>>2]|0,Vc(r+(i+4)|0),hn(r+i|0)}function Td(e){e|=0,Vc(e+((E_[(E_[e>>2]|0)-12>>2]|0)+4)|0)}function Pd(e){e|=0;var r=0,i=0,f=0;r=e+4|0,e=E_[r>>2]|0,i=E_[(E_[e>>2]|0)-12>>2]|0,f=e,(E_[f+(i+24)>>2]|0)!=0&&(E_[f+(i+16)>>2]|0)==0&&(E_[f+(i+4)>>2]&8192|0)!=0&&(mw()|0||(i=E_[r>>2]|0,f=E_[i+((E_[(E_[i>>2]|0)-12>>2]|0)+24)>>2]|0,(rv[E_[(E_[f>>2]|0)+24>>2]&127](f)|0)==-1&&(f=E_[r>>2]|0,r=E_[(E_[f>>2]|0)-12>>2]|0,i=f,Yc(i+r|0,E_[i+(r+16)>>2]|1))))}function Ld(e){e|=0,Vc(e+4|0),hn(e)}function Id(e){e|=0,Vc(e+4|0)}function xd(e){e|=0;var r=0,i=0;r=e,i=E_[(E_[e>>2]|0)-12>>2]|0,Vc(r+(i+4)|0),hn(r+i|0)}function Bd(e){e|=0,Vc(e+((E_[(E_[e>>2]|0)-12>>2]|0)+4)|0)}function Hd(e){e|=0;var r=0,i=0,f=0;r=e+4|0,e=E_[r>>2]|0,i=E_[(E_[e>>2]|0)-12>>2]|0,f=e,(E_[f+(i+24)>>2]|0)!=0&&(E_[f+(i+16)>>2]|0)==0&&(E_[f+(i+4)>>2]&8192|0)!=0&&(mw()|0||(i=E_[r>>2]|0,f=E_[i+((E_[(E_[i>>2]|0)-12>>2]|0)+24)>>2]|0,(rv[E_[(E_[f>>2]|0)+24>>2]&127](f)|0)==-1&&(f=E_[r>>2]|0,r=E_[(E_[f>>2]|0)-12>>2]|0,i=f,Yc(i+r|0,E_[i+(r+16)>>2]|1))))}function Ud(e){return e|=0,3688}function zd(e,r,i){return e|=0,r|=0,i|=0,(i|0)==1?void Sc(e,4272,35):void dc(e,r|0,i)}function Yd(e){e|=0,sc(e|0)}function Vd(e){e|=0,vc(e|0),hn(e)}function Zd(e){e|=0,vc(e|0)}function jd(e){e|=0,Vc(e),hn(e)}function qd(e){e|=0,sc(e|0),hn(e)}function Wd(e){e|=0,Qk(e|0),hn(e)}function Kd(e){e|=0,Qk(e|0)}function Xd(e){e|=0,Qk(e|0)}function Gd(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0;e:do if((f|0)==(a|0))t=r;else{for(e=r,n=f;;){if((e|0)==(i|0)){o=-1,u=1632;break}if(l=m_[e]|0,s=m_[n]|0,l<<24>>24<s<<24>>24){o=-1,u=1631;break}if(s<<24>>24<l<<24>>24){o=1,u=1633;break}if(l=e+1|0,s=n+1|0,(s|0)==(a|0)){t=l;break e}e=l,n=s}if((u|0)==1632)return o|0;if((u|0)==1633)return o|0;if((u|0)==1631)return o|0}while(0);return o=(t|0)!=(i|0)|0,o|0}function Qd(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0;if(r=i,a=f-r|0,a>>>0>4294967279&&pc(e),a>>>0<11?(m_[e]=a<<1&255,t=e+1|0):(n=a+16&-16,o=kn(n)|0,E_[e+8>>2]=o,E_[e>>2]=n|1,E_[e+4>>2]=a,t=o),(i|0)==(f|0))return u=t,void(m_[u]=0);for(o=f+(-r|0)|0,r=t,a=i;;){if(m_[r]=m_[a]|0,i=a+1|0,(i|0)==(f|0))break;r=r+1|0,a=i}u=t+o|0,m_[u]=0}function Jd(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0;if((r|0)==(i|0))return f=0,f|0;for(a=r,t=0;;){if(r=(m_[a]|0)+(t<<4)|0,e=r&-268435456,n=(e>>>24|e)^r,r=a+1|0,(r|0)==(i|0)){f=n;break}a=r,t=n}return f|0}function $d(e){e|=0,Qk(e|0),hn(e)}function eh(e){e|=0,Qk(e|0)}function rh(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0;e:do if((f|0)==(a|0))t=r;else{for(e=r,n=f;;){if((e|0)==(i|0)){o=-1,u=1662;break}if(l=E_[e>>2]|0,s=E_[n>>2]|0,(l|0)<(s|0)){o=-1,u=1661;break}if((s|0)<(l|0)){o=1,u=1660;break}if(l=e+4|0,s=n+4|0,(s|0)==(a|0)){t=l;break e}e=l,n=s}if((u|0)==1662)return o|0;if((u|0)==1661)return o|0;if((u|0)==1660)return o|0}while(0);return o=(t|0)!=(i|0)|0,o|0}function ih(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0,o=0,u=0;if(r=i,a=f-r|0,t=a>>2,t>>>0>1073741807&&pc(e),t>>>0<2?(m_[e]=a>>>1&255,n=e+4|0):(a=t+4&-4,o=kn(a<<2)|0,E_[e+8>>2]=o,E_[e>>2]=a|1,E_[e+4>>2]=t,n=o),(i|0)==(f|0))return u=n,void(E_[u>>2]=0);for(o=(f-4+(-r|0)|0)>>>2,r=n,t=i;;){if(E_[r>>2]=E_[t>>2],i=t+4|0,(i|0)==(f|0))break;r=r+4|0,t=i}u=n+(o+1<<2)|0,E_[u>>2]=0}function fh(e,r,i){e|=0,r|=0,i|=0;var f=0,a=0,t=0,n=0;if((r|0)==(i|0))return f=0,f|0;for(a=r,t=0;;){if(r=(E_[a>>2]|0)+(t<<4)|0,e=r&-268435456,n=(e>>>24|e)^r,r=a+4|0,(r|0)==(i|0)){f=n;break}a=r,t=n}return f|0}function ah(e){e|=0,Qk(e|0),hn(e)}function th(e){e|=0,Qk(e|0)}function nh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0;if(o=O_,O_=O_+112|0,u=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[u>>2],u=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[u>>2],u=o|0,l=o+16|0,s=o+32|0,b=o+40|0,k=o+48|0,c=o+56|0,d=o+64|0,h=o+72|0,_=o+80|0,w=o+104|0,(E_[a+4>>2]&1|0)==0)return E_[s>>2]=-1,v=E_[(E_[r>>2]|0)+16>>2]|0,m=i|0,E_[k>>2]=E_[m>>2],E_[c>>2]=E_[f>>2],fv[v&127](b,r,k,c,a,t,s),c=E_[b>>2]|0,E_[m>>2]=c,m=E_[s>>2]|0,(m|0)==1?m_[n]=1:(m|0)==0?m_[n]=0:(m_[n]=1,E_[t>>2]=4),E_[e>>2]=c,void(O_=o);Zc(d,a),c=d|0,d=E_[c>>2]|0,(E_[4028]|0)!=-1&&(E_[l>>2]=16112,E_[l+4>>2]=14,E_[l+8>>2]=0,mc(16112,l,98)),l=(E_[4029]|0)-1|0,m=E_[d+8>>2]|0;do if((E_[d+12>>2]|0)-m>>2>>>0>l>>>0){if(s=E_[m+(l<<2)>>2]|0,(s|0)==0)break;b=s,s=E_[c>>2]|0,$k(s)|0,Zc(h,a),s=h|0,k=E_[s>>2]|0,(E_[3932]|0)!=-1&&(E_[u>>2]=15728,E_[u+4>>2]=14,E_[u+8>>2]=0,mc(15728,u,98)),r=(E_[3933]|0)-1|0,v=E_[k+8>>2]|0;do if((E_[k+12>>2]|0)-v>>2>>>0>r>>>0){if(p=E_[v+(r<<2)>>2]|0,(p|0)==0)break;return E=p,S=E_[s>>2]|0,$k(S)|0,S=_|0,g=p,Jw[E_[(E_[g>>2]|0)+24>>2]&127](S,E),Jw[E_[(E_[g>>2]|0)+28>>2]&127](_+12|0,E),E_[w>>2]=E_[f>>2],m_[n]=(oh(i,w,S,_+24|0,b,t,1)|0)==(S|0)|0,E_[e>>2]=E_[i>>2],yc(_+12|0),yc(_|0),void(O_=o)}while(0);b=Yw(4)|0,Ht(b),gw(b|0,11024,132)}while(0);o=Yw(4)|0,Ht(o),gw(o|0,11024,132)}function oh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0;o=O_,O_=O_+104|0,u=r,r=O_,O_=O_+4|0,O_=O_+7&-8,E_[r>>2]=E_[u>>2],u=(f-i|0)/12|0,l=o|0;do if(u>>>0>100){if(s=on(u)|0,(s|0)!=0){b=s,k=s;break}pn(),b=0,k=0}else b=l,k=0;while(0);if(l=(i|0)==(f|0))c=u,d=0;else for(s=u,u=0,h=b,_=i;;){if(w=S_[_]|0,v=(w&1|0)==0?w>>>1:E_[_+4>>2]|0,(v|0)==0?(m_[h]=2,m=u+1|0,p=s-1|0):(m_[h]=1,m=u,p=s),w=_+12|0,(w|0)==(f|0)){c=p,d=m;break}s=p,u=m,h=h+1|0,_=w}for(_=e|0,e=r|0,r=a,h=0,m=d,d=c;;){c=E_[_>>2]|0;do{if((c|0)!=0){if((E_[c+12>>2]|0)!=(E_[c+16>>2]|0)){E=c;break}if((rv[E_[(E_[c>>2]|0)+36>>2]&127](c)|0)==-1){E_[_>>2]=0,E=0;break}E=E_[_>>2]|0;break}E=0}while(0);if(c=(E|0)==0,u=E_[e>>2]|0,(u|0)==0)S=E,g=0;else{do if((E_[u+12>>2]|0)==(E_[u+16>>2]|0)){if((rv[E_[(E_[u>>2]|0)+36>>2]&127](u)|0)!=-1){y=u;break}E_[e>>2]=0,y=0}else y=u;while(0);S=E_[_>>2]|0,g=y}if(A=(g|0)==0,!((c^A)&(d|0)!=0))break;u=E_[S+12>>2]|0,O=(u|0)==(E_[S+16>>2]|0)?(rv[E_[(E_[S>>2]|0)+36>>2]&127](S)|0)&255:m_[u]|0,R=n?O:lv[E_[(E_[r>>2]|0)+12>>2]&31](a,O)|0;do if(l)F=m,M=d;else{u=h+1|0;e:do if(n)for(p=d,s=m,v=b,w=0,N=i;;){do if((m_[v]|0)==1){if(D=N,C=(m_[D]&1)==0?N+1|0:E_[N+8>>2]|0,R<<24>>24!=(m_[C+h|0]|0)){m_[v]=0,T=w,P=s,L=p-1|0;break}if(I=S_[D]|0,x=(I&1|0)==0?I>>>1:E_[N+4>>2]|0,(x|0)!=(u|0)){T=1,P=s,L=p;break}m_[v]=2,T=1,P=s+1|0,L=p-1|0}else T=w,P=s,L=p;while(0);if(I=N+12|0,(I|0)==(f|0)){B=L,H=P,U=T;break e}p=L,s=P,v=v+1|0,w=T,N=I}else for(N=d,w=m,v=b,s=0,p=i;;){do if((m_[v]|0)==1){if(I=p,z=(m_[I]&1)==0?p+1|0:E_[p+8>>2]|0,R<<24>>24!=(lv[E_[(E_[r>>2]|0)+12>>2]&31](a,m_[z+h|0]|0)|0)<<24>>24){m_[v]=0,Y=s,V=w,Z=N-1|0;break}if(D=S_[I]|0,j=(D&1|0)==0?D>>>1:E_[p+4>>2]|0,(j|0)!=(u|0)){Y=1,V=w,Z=N;break}m_[v]=2,Y=1,V=w+1|0,Z=N-1|0}else Y=s,V=w,Z=N;while(0);if(D=p+12|0,(D|0)==(f|0)){B=Z,H=V,U=Y;break e}N=Z,w=V,v=v+1|0,s=Y,p=D}while(0);if(!U){F=H,M=B;break}if(u=E_[_>>2]|0,p=u+12|0,s=E_[p>>2]|0,(s|0)==(E_[u+16>>2]|0)?(v=E_[(E_[u>>2]|0)+40>>2]|0,rv[v&127](u)|0):E_[p>>2]=s+1,(H+B|0)>>>0<2|l){F=H,M=B;break}for(s=h+1|0,p=H,u=b,v=i;;){do if((m_[u]|0)==2){if(w=S_[v]|0,q=(w&1|0)==0?w>>>1:E_[v+4>>2]|0,(q|0)==(s|0)){W=p;break}m_[u]=0,W=p-1|0}else W=p;while(0);if(w=v+12|0,(w|0)==(f|0)){F=W,M=B;break}p=W,u=u+1|0,v=w}}while(0);h=h+1|0,m=F,d=M}do{if((S|0)!=0){if((E_[S+12>>2]|0)!=(E_[S+16>>2]|0)){K=S;break}if((rv[E_[(E_[S>>2]|0)+36>>2]&127](S)|0)==-1){E_[_>>2]=0,K=0;break}K=E_[_>>2]|0;break}K=0}while(0);_=(K|0)==0;do{if(!A){if((E_[g+12>>2]|0)!=(E_[g+16>>2]|0)){if(_)break;X=1808;break}if((rv[E_[(E_[g>>2]|0)+36>>2]&127](g)|0)==-1){E_[e>>2]=0,X=1806;break}if(_^(g|0)==0)break;X=1808;break}X=1806}while(0);(X|0)==1806&&_&&(X=1808),(X|0)==1808&&(E_[t>>2]=E_[t>>2]|2);e:do if(l)X=1813;else for(_=i,g=b;;){if((m_[g]|0)==2){G=_;break e}if(e=_+12|0,(e|0)==(f|0)){X=1813;break e}_=e,g=g+1|0}while(0);return(X|0)==1813&&(E_[t>>2]=E_[t>>2]|4,G=f),(k|0)==0?(O_=o,G|0):(un(k),O_=o,G|0)}function uh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+8|0,E_[o>>2]=E_[i>>2],E_[u>>2]=E_[f>>2],lh(e,0,o,u,a,t,n),O_=r}function lh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0;r=O_,O_=O_+72|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+32|0,l=r+40|0,s=r+56|0,b=s,k=O_,O_=O_+4|0,O_=O_+7&-8,c=O_,O_=O_+160|0,d=O_,O_=O_+4|0,O_=O_+7&-8,h=O_,O_=O_+4|0,O_=O_+7&-8,_=E_[a+4>>2]&74,w=(_|0)==64?8:(_|0)==0?0:(_|0)==8?16:10,_=o|0,p(l,a,_,u),An(b|0,0,12)|0,a=s,Oc(s,10,0),(m_[b]&1)==0?(o=a+1|0,v=o,m=o,E=s+8|0):(o=s+8|0,v=E_[o>>2]|0,m=a+1|0,E=o),E_[k>>2]=v,o=c|0,E_[d>>2]=o,E_[h>>2]=0,a=i|0,i=f|0,f=s|0,S=s+4|0,g=m_[u]|0,u=v,v=E_[a>>2]|0;e:for(;;){do if((v|0)==0)y=0;else{if((E_[v+12>>2]|0)!=(E_[v+16>>2]|0)){y=v;break}if((rv[E_[(E_[v>>2]|0)+36>>2]&127](v)|0)!=-1){y=v;break}E_[a>>2]=0,y=0}while(0);A=(y|0)==0,O=E_[i>>2]|0;do{if((O|0)!=0){if((E_[O+12>>2]|0)!=(E_[O+16>>2]|0)){if(A){F=O,M=0;break}N=u,D=O,C=0;break e}if((rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0)==-1){E_[i>>2]=0,R=1841;break}if(T=(O|0)==0,A^T){F=O,M=T;break}N=u,D=O,C=T;break e}R=1841}while(0);if((R|0)==1841){if(R=0,A){N=u,D=0,C=1;break}F=0,M=1}if(O=S_[b]|0,T=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((T?O>>>1:E_[S>>2]|0)|0)?(T?(P=O>>>1,L=O>>>1):(O=E_[S>>2]|0,P=O,L=O),Oc(s,P<<1,0),I=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,I,0),x=(m_[b]&1)==0?m:E_[E>>2]|0,E_[k>>2]=x+L,B=x):B=u,O=y+12|0,T=E_[O>>2]|0,H=y+16|0,U=(T|0)==(E_[H>>2]|0)?(rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)&255:m_[T]|0,(Rh(U,w,B,k,h,g,l,o,d,_)|0)!=0){N=B,D=F,C=M;break}T=E_[O>>2]|0,(T|0)!=(E_[H>>2]|0)?(E_[O>>2]=T+1,u=B,v=y):(H=E_[(E_[y>>2]|0)+40>>2]|0,rv[H&127](y)|0,u=B,v=y)}v=S_[l]|0,z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;B=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=B}while(0);E_[n>>2]=wt(N,E_[k>>2]|0,t,w)|0,Pi(l,o,E_[d>>2]|0,t);do if(A)Y=0;else{if((E_[y+12>>2]|0)!=(E_[y+16>>2]|0)){Y=y;break}if((rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)!=-1){Y=y;break}E_[a>>2]=0,Y=0}while(0);a=(Y|0)==0;e:do{if(!C){do if((E_[D+12>>2]|0)==(E_[D+16>>2]|0)){if((rv[E_[(E_[D>>2]|0)+36>>2]&127](D)|0)!=-1)break;E_[i>>2]=0,R=1882;break e}while(0);if(!(a^(D|0)==0))break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}R=1882}while(0);do if((R|0)==1882){if(a)break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,V=e|0,E_[V>>2]=Y,yc(s),yc(l),O_=r}function sh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+8|0,E_[o>>2]=E_[i>>2],E_[u>>2]=E_[f>>2],bh(e,0,o,u,a,t,n),O_=r}function bh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0;r=O_,O_=O_+72|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+32|0,l=r+40|0,s=r+56|0,b=s,k=O_,O_=O_+4|0,O_=O_+7&-8,c=O_,O_=O_+160|0,d=O_,O_=O_+4|0,O_=O_+7&-8,h=O_,O_=O_+4|0,O_=O_+7&-8,_=E_[a+4>>2]&74,w=(_|0)==64?8:(_|0)==8?16:(_|0)==0?0:10,_=o|0,p(l,a,_,u),An(b|0,0,12)|0,a=s,Oc(s,10,0),(m_[b]&1)==0?(o=a+1|0,v=o,m=o,E=s+8|0):(o=s+8|0,v=E_[o>>2]|0,m=a+1|0,E=o),E_[k>>2]=v,o=c|0,E_[d>>2]=o,E_[h>>2]=0,a=i|0,i=f|0,f=s|0,S=s+4|0,g=m_[u]|0,u=v,v=E_[a>>2]|0;e:for(;;){do if((v|0)==0)y=0;else{if((E_[v+12>>2]|0)!=(E_[v+16>>2]|0)){y=v;break}if((rv[E_[(E_[v>>2]|0)+36>>2]&127](v)|0)!=-1){y=v;break}E_[a>>2]=0,y=0}while(0);A=(y|0)==0,O=E_[i>>2]|0;do{if((O|0)!=0){if((E_[O+12>>2]|0)!=(E_[O+16>>2]|0)){if(A){F=O,M=0;break}N=u,D=O,C=0;break e}if((rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0)==-1){E_[i>>2]=0,R=1910;break}if(T=(O|0)==0,A^T){F=O,M=T;break}N=u,D=O,C=T;break e}R=1910}while(0);if((R|0)==1910){if(R=0,A){N=u,D=0,C=1;break}F=0,M=1}if(O=S_[b]|0,T=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((T?O>>>1:E_[S>>2]|0)|0)?(T?(P=O>>>1,L=O>>>1):(O=E_[S>>2]|0,P=O,L=O),Oc(s,P<<1,0),I=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,I,0),x=(m_[b]&1)==0?m:E_[E>>2]|0,E_[k>>2]=x+L,B=x):B=u,O=y+12|0,T=E_[O>>2]|0,H=y+16|0,U=(T|0)==(E_[H>>2]|0)?(rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)&255:m_[T]|0,(Rh(U,w,B,k,h,g,l,o,d,_)|0)!=0){N=B,D=F,C=M;break}T=E_[O>>2]|0,(T|0)!=(E_[H>>2]|0)?(E_[O>>2]=T+1,u=B,v=y):(H=E_[(E_[y>>2]|0)+40>>2]|0,rv[H&127](y)|0,u=B,v=y)}v=S_[l]|0,z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;B=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=B}while(0);h=_t(N,E_[k>>2]|0,t,w)|0,E_[n>>2]=h,E_[n+4>>2]=z_,Pi(l,o,E_[d>>2]|0,t);do if(A)Y=0;else{if((E_[y+12>>2]|0)!=(E_[y+16>>2]|0)){Y=y;break}if((rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)!=-1){Y=y;break}E_[a>>2]=0,Y=0}while(0);a=(Y|0)==0;e:do{if(!C){do if((E_[D+12>>2]|0)==(E_[D+16>>2]|0)){if((rv[E_[(E_[D>>2]|0)+36>>2]&127](D)|0)!=-1)break;E_[i>>2]=0,R=1951;break e}while(0);if(!(a^(D|0)==0))break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}R=1951}while(0);do if((R|0)==1951){if(a)break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,V=e|0,E_[V>>2]=Y,yc(s),yc(l),O_=r}function kh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+8|0,E_[o>>2]=E_[i>>2],E_[u>>2]=E_[f>>2],ch(e,0,o,u,a,t,n),O_=r}function ch(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0;r=O_,O_=O_+72|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+32|0,l=r+40|0,s=r+56|0,b=s,k=O_,O_=O_+4|0,O_=O_+7&-8,c=O_,O_=O_+160|0,d=O_,O_=O_+4|0,O_=O_+7&-8,h=O_,O_=O_+4|0,O_=O_+7&-8,_=E_[a+4>>2]&74,w=(_|0)==64?8:(_|0)==0?0:(_|0)==8?16:10,_=o|0,p(l,a,_,u),An(b|0,0,12)|0,a=s,Oc(s,10,0),(m_[b]&1)==0?(o=a+1|0,v=o,m=o,E=s+8|0):(o=s+8|0,v=E_[o>>2]|0,m=a+1|0,E=o),E_[k>>2]=v,o=c|0,E_[d>>2]=o,E_[h>>2]=0,a=i|0,i=f|0,f=s|0,S=s+4|0,g=m_[u]|0,u=v,v=E_[a>>2]|0;e:for(;;){do if((v|0)==0)y=0;else{if((E_[v+12>>2]|0)!=(E_[v+16>>2]|0)){y=v;break}if((rv[E_[(E_[v>>2]|0)+36>>2]&127](v)|0)!=-1){y=v;break}E_[a>>2]=0,y=0}while(0);A=(y|0)==0,O=E_[i>>2]|0;do{if((O|0)!=0){if((E_[O+12>>2]|0)!=(E_[O+16>>2]|0)){if(A){F=O,M=0;break}N=u,D=O,C=0;break e}if((rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0)==-1){E_[i>>2]=0,R=1979;break}if(T=(O|0)==0,A^T){F=O,M=T;break}N=u,D=O,C=T;break e}R=1979}while(0);if((R|0)==1979){if(R=0,A){N=u,D=0,C=1;break}F=0,M=1}if(O=S_[b]|0,T=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((T?O>>>1:E_[S>>2]|0)|0)?(T?(P=O>>>1,L=O>>>1):(O=E_[S>>2]|0,P=O,L=O),Oc(s,P<<1,0),I=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,I,0),x=(m_[b]&1)==0?m:E_[E>>2]|0,E_[k>>2]=x+L,B=x):B=u,O=y+12|0,T=E_[O>>2]|0,H=y+16|0,U=(T|0)==(E_[H>>2]|0)?(rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)&255:m_[T]|0,(Rh(U,w,B,k,h,g,l,o,d,_)|0)!=0){N=B,D=F,C=M;break}T=E_[O>>2]|0,(T|0)!=(E_[H>>2]|0)?(E_[O>>2]=T+1,u=B,v=y):(H=E_[(E_[y>>2]|0)+40>>2]|0,rv[H&127](y)|0,u=B,v=y)}v=S_[l]|0,z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;B=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=B}while(0);p_[n>>1]=ht(N,E_[k>>2]|0,t,w)|0,Pi(l,o,E_[d>>2]|0,t);do if(A)Y=0;else{if((E_[y+12>>2]|0)!=(E_[y+16>>2]|0)){Y=y;break}if((rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)!=-1){Y=y;break}E_[a>>2]=0,Y=0}while(0);a=(Y|0)==0;e:do{if(!C){do if((E_[D+12>>2]|0)==(E_[D+16>>2]|0)){if((rv[E_[(E_[D>>2]|0)+36>>2]&127](D)|0)!=-1)break;E_[i>>2]=0,R=2020;break e}while(0);if(!(a^(D|0)==0))break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}R=2020}while(0);do if((R|0)==2020){if(a)break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t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)){y=v;break}if((rv[E_[(E_[v>>2]|0)+36>>2]&127](v)|0)!=-1){y=v;break}E_[a>>2]=0,y=0}while(0);A=(y|0)==0,O=E_[i>>2]|0;do{if((O|0)!=0){if((E_[O+12>>2]|0)!=(E_[O+16>>2]|0)){if(A){F=O,M=0;break}N=u,D=O,C=0;break e}if((rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0)==-1){E_[i>>2]=0,R=2048;break}if(T=(O|0)==0,A^T){F=O,M=T;break}N=u,D=O,C=T;break e}R=2048}while(0);if((R|0)==2048){if(R=0,A){N=u,D=0,C=1;break}F=0,M=1}if(O=S_[b]|0,T=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((T?O>>>1:E_[S>>2]|0)|0)?(T?(P=O>>>1,L=O>>>1):(O=E_[S>>2]|0,P=O,L=O),Oc(s,P<<1,0),I=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,I,0),x=(m_[b]&1)==0?m:E_[E>>2]|0,E_[k>>2]=x+L,B=x):B=u,O=y+12|0,T=E_[O>>2]|0,H=y+16|0,U=(T|0)==(E_[H>>2]|0)?(rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)&255:m_[T]|0,(Rh(U,w,B,k,h,g,l,o,d,_)|0)!=0){N=B,D=F,C=M;break}T=E_[O>>2]|0,(T|0)!=(E_[H>>2]|0)?(E_[O>>2]=T+1,u=B,v=y):(H=E_[(E_[y>>2]|0)+40>>2]|0,rv[H&127](y)|0,u=B,v=y)}v=S_[l]|0,z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;B=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=B}while(0);E_[n>>2]=dt(N,E_[k>>2]|0,t,w)|0,Pi(l,o,E_[d>>2]|0,t);do if(A)Y=0;else{if((E_[y+12>>2]|0)!=(E_[y+16>>2]|0)){Y=y;break}if((rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)!=-1){Y=y;break}E_[a>>2]=0,Y=0}while(0);a=(Y|0)==0;e:do{if(!C){do if((E_[D+12>>2]|0)==(E_[D+16>>2]|0)){if((rv[E_[(E_[D>>2]|0)+36>>2]&127](D)|0)!=-1)break;E_[i>>2]=0,R=2089;break e}while(0);if(!(a^(D|0)==0))break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}R=2089}while(0);do if((R|0)==2089){if(a)break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,V=e|0,E_[V>>2]=Y,yc(s),yc(l),O_=r}function _h(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+8|0,E_[o>>2]=E_[i>>2],E_[u>>2]=E_[f>>2],wh(e,0,o,u,a,t,n),O_=r}function wh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0;r=O_,O_=O_+72|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+32|0,l=r+40|0,s=r+56|0,b=s,k=O_,O_=O_+4|0,O_=O_+7&-8,c=O_,O_=O_+160|0,d=O_,O_=O_+4|0,O_=O_+7&-8,h=O_,O_=O_+4|0,O_=O_+7&-8,_=E_[a+4>>2]&74,w=(_|0)==64?8:(_|0)==0?0:(_|0)==8?16:10,_=o|0,p(l,a,_,u),An(b|0,0,12)|0,a=s,Oc(s,10,0),(m_[b]&1)==0?(o=a+1|0,v=o,m=o,E=s+8|0):(o=s+8|0,v=E_[o>>2]|0,m=a+1|0,E=o),E_[k>>2]=v,o=c|0,E_[d>>2]=o,E_[h>>2]=0,a=i|0,i=f|0,f=s|0,S=s+4|0,g=m_[u]|0,u=v,v=E_[a>>2]|0;e:for(;;){do if((v|0)==0)y=0;else{if((E_[v+12>>2]|0)!=(E_[v+16>>2]|0)){y=v;break}if((rv[E_[(E_[v>>2]|0)+36>>2]&127](v)|0)!=-1){y=v;break}E_[a>>2]=0,y=0}while(0);A=(y|0)==0,O=E_[i>>2]|0;do{if((O|0)!=0){if((E_[O+12>>2]|0)!=(E_[O+16>>2]|0)){if(A){F=O,M=0;break}N=u,D=O,C=0;break e}if((rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0)==-1){E_[i>>2]=0,R=2117;break}if(T=(O|0)==0,A^T){F=O,M=T;break}N=u,D=O,C=T;break e}R=2117}while(0);if((R|0)==2117){if(R=0,A){N=u,D=0,C=1;break}F=0,M=1}if(O=S_[b]|0,T=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((T?O>>>1:E_[S>>2]|0)|0)?(T?(P=O>>>1,L=O>>>1):(O=E_[S>>2]|0,P=O,L=O),Oc(s,P<<1,0),I=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,I,0),x=(m_[b]&1)==0?m:E_[E>>2]|0,E_[k>>2]=x+L,B=x):B=u,O=y+12|0,T=E_[O>>2]|0,H=y+16|0,U=(T|0)==(E_[H>>2]|0)?(rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)&255:m_[T]|0,(Rh(U,w,B,k,h,g,l,o,d,_)|0)!=0){N=B,D=F,C=M;break}T=E_[O>>2]|0,(T|0)!=(E_[H>>2]|0)?(E_[O>>2]=T+1,u=B,v=y):(H=E_[(E_[y>>2]|0)+40>>2]|0,rv[H&127](y)|0,u=B,v=y)}v=S_[l]|0,z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;B=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=B}while(0);E_[n>>2]=ct(N,E_[k>>2]|0,t,w)|0,Pi(l,o,E_[d>>2]|0,t);do if(A)Y=0;else{if((E_[y+12>>2]|0)!=(E_[y+16>>2]|0)){Y=y;break}if((rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)!=-1){Y=y;break}E_[a>>2]=0,Y=0}while(0);a=(Y|0)==0;e:do{if(!C){do if((E_[D+12>>2]|0)==(E_[D+16>>2]|0)){if((rv[E_[(E_[D>>2]|0)+36>>2]&127](D)|0)!=-1)break;E_[i>>2]=0,R=2158;break e}while(0);if(!(a^(D|0)==0))break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}R=2158}while(0);do if((R|0)==2158){if(a)break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,V=e|0,E_[V>>2]=Y,yc(s),yc(l),O_=r}function vh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+8|0,E_[o>>2]=E_[i>>2],E_[u>>2]=E_[f>>2],mh(e,0,o,u,a,t,n),O_=r}function mh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0;r=O_,O_=O_+72|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+32|0,l=r+40|0,s=r+56|0,b=s,k=O_,O_=O_+4|0,O_=O_+7&-8,c=O_,O_=O_+160|0,d=O_,O_=O_+4|0,O_=O_+7&-8,h=O_,O_=O_+4|0,O_=O_+7&-8,_=E_[a+4>>2]&74,w=(_|0)==64?8:(_|0)==8?16:(_|0)==0?0:10,_=o|0,p(l,a,_,u),An(b|0,0,12)|0,a=s,Oc(s,10,0),(m_[b]&1)==0?(o=a+1|0,v=o,m=o,E=s+8|0):(o=s+8|0,v=E_[o>>2]|0,m=a+1|0,E=o),E_[k>>2]=v,o=c|0,E_[d>>2]=o,E_[h>>2]=0,a=i|0,i=f|0,f=s|0,S=s+4|0,g=m_[u]|0,u=v,v=E_[a>>2]|0;e:for(;;){do if((v|0)==0)y=0;else{if((E_[v+12>>2]|0)!=(E_[v+16>>2]|0)){y=v;break}if((rv[E_[(E_[v>>2]|0)+36>>2]&127](v)|0)!=-1){y=v;break}E_[a>>2]=0,y=0}while(0);A=(y|0)==0,O=E_[i>>2]|0;do{if((O|0)!=0){if((E_[O+12>>2]|0)!=(E_[O+16>>2]|0)){if(A){F=O,M=0;break}N=u,D=O,C=0;break e}if((rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0)==-1){E_[i>>2]=0,R=2186;break}if(T=(O|0)==0,A^T){F=O,M=T;break}N=u,D=O,C=T;break e}R=2186}while(0);if((R|0)==2186){if(R=0,A){N=u,D=0,C=1;break}F=0,M=1}if(O=S_[b]|0,T=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((T?O>>>1:E_[S>>2]|0)|0)?(T?(P=O>>>1,L=O>>>1):(O=E_[S>>2]|0,P=O,L=O),Oc(s,P<<1,0),I=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,I,0),x=(m_[b]&1)==0?m:E_[E>>2]|0,E_[k>>2]=x+L,B=x):B=u,O=y+12|0,T=E_[O>>2]|0,H=y+16|0,U=(T|0)==(E_[H>>2]|0)?(rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)&255:m_[T]|0,(Rh(U,w,B,k,h,g,l,o,d,_)|0)!=0){N=B,D=F,C=M;break}T=E_[O>>2]|0,(T|0)!=(E_[H>>2]|0)?(E_[O>>2]=T+1,u=B,v=y):(H=E_[(E_[y>>2]|0)+40>>2]|0,rv[H&127](y)|0,u=B,v=y)
}v=S_[l]|0,z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;B=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=B}while(0);h=kt(N,E_[k>>2]|0,t,w)|0,E_[n>>2]=h,E_[n+4>>2]=z_,Pi(l,o,E_[d>>2]|0,t);do if(A)Y=0;else{if((E_[y+12>>2]|0)!=(E_[y+16>>2]|0)){Y=y;break}if((rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0)!=-1){Y=y;break}E_[a>>2]=0,Y=0}while(0);a=(Y|0)==0;e:do{if(!C){do if((E_[D+12>>2]|0)==(E_[D+16>>2]|0)){if((rv[E_[(E_[D>>2]|0)+36>>2]&127](D)|0)!=-1)break;E_[i>>2]=0,R=2227;break e}while(0);if(!(a^(D|0)==0))break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}R=2227}while(0);do if((R|0)==2227){if(a)break;return V=e|0,E_[V>>2]=Y,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,V=e|0,E_[V>>2]=Y,yc(s),yc(l),O_=r}function ph(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,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!=0){if((E_[M+12>>2]|0)!=(E_[M+16>>2]|0)){if(F){D=M,C=0;break}T=u,P=M,L=0;break e}if((rv[E_[(E_[M>>2]|0)+36>>2]&127](M)|0)==-1){E_[i>>2]=0,N=2251;break}if(I=(M|0)==0,F^I){D=M,C=I;break}T=u,P=M,L=I;break e}N=2251}while(0);if((N|0)==2251){if(N=0,F){T=u,P=0,L=1;break}D=0,C=1}if(M=S_[b]|0,I=(M&1|0)==0,((E_[k>>2]|0)-u|0)==((I?M>>>1:E_[A>>2]|0)|0)?(I?(x=M>>>1,B=M>>>1):(M=E_[A>>2]|0,x=M,B=M),Oc(s,x<<1,0),H=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,H,0),U=(m_[b]&1)==0?g:E_[y>>2]|0,E_[k>>2]=U+B,z=U):z=u,M=R+12|0,I=E_[M>>2]|0,Y=R+16|0,V=(I|0)==(E_[Y>>2]|0)?(rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0)&255:m_[I]|0,(S(V,_,w,z,k,O,o,l,m,d,h,v)|0)!=0){T=z,P=D,L=C;break}I=E_[M>>2]|0,(I|0)!=(E_[Y>>2]|0)?(E_[M>>2]=I+1,u=z,p=R):(Y=E_[(E_[R>>2]|0)+40>>2]|0,rv[Y&127](R)|0,u=z,p=R)}p=S_[l]|0,Z=(p&1|0)==0?p>>>1:E_[l+4>>2]|0;do if((Z|0)!=0){if((m_[_]&1)==0)break;if(p=E_[d>>2]|0,(p-c|0)>=160)break;z=E_[h>>2]|0,E_[d>>2]=p+4,E_[p>>2]=z}while(0);y_[n>>2]=+bt(T,E_[k>>2]|0,t),Pi(l,m,E_[d>>2]|0,t);do if(F)j=0;else{if((E_[R+12>>2]|0)!=(E_[R+16>>2]|0)){j=R;break}if((rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0)!=-1){j=R;break}E_[a>>2]=0,j=0}while(0);a=(j|0)==0;e:do{if(!L){do if((E_[P+12>>2]|0)==(E_[P+16>>2]|0)){if((rv[E_[(E_[P>>2]|0)+36>>2]&127](P)|0)!=-1)break;E_[i>>2]=0,N=2293;break e}while(0);if(!(a^(P|0)==0))break;return q=e|0,E_[q>>2]=j,yc(s),yc(l),void(O_=r)}N=2293}while(0);do if((N|0)==2293){if(a)break;return q=e|0,E_[q>>2]=j,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,q=e|0,E_[q>>2]=j,yc(s),yc(l),O_=r}function Sh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+8|0,E_[o>>2]=E_[i>>2],E_[u>>2]=E_[f>>2],gh(e,0,o,u,a,t,n),O_=r}function gh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0;r=O_,O_=O_+80|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r+32|0,u=r+40|0,l=r+48|0,s=r+64|0,b=s,k=O_,O_=O_+4|0,O_=O_+7&-8,c=O_,O_=O_+160|0,d=O_,O_=O_+4|0,O_=O_+7&-8,h=O_,O_=O_+4|0,O_=O_+7&-8,_=O_,O_=O_+1|0,O_=O_+7&-8,w=O_,O_=O_+1|0,O_=O_+7&-8,v=r|0,E(l,a,v,o,u),An(b|0,0,12)|0,a=s,Oc(s,10,0),(m_[b]&1)==0?(m=a+1|0,p=m,g=m,y=s+8|0):(m=s+8|0,p=E_[m>>2]|0,g=a+1|0,y=m),E_[k>>2]=p,m=c|0,E_[d>>2]=m,E_[h>>2]=0,m_[_]=1,m_[w]=69,a=i|0,i=f|0,f=s|0,A=s+4|0,O=m_[o]|0,o=m_[u]|0,u=p,p=E_[a>>2]|0;e:for(;;){do if((p|0)==0)R=0;else{if((E_[p+12>>2]|0)!=(E_[p+16>>2]|0)){R=p;break}if((rv[E_[(E_[p>>2]|0)+36>>2]&127](p)|0)!=-1){R=p;break}E_[a>>2]=0,R=0}while(0);F=(R|0)==0,M=E_[i>>2]|0;do{if((M|0)!=0){if((E_[M+12>>2]|0)!=(E_[M+16>>2]|0)){if(F){D=M,C=0;break}T=u,P=M,L=0;break e}if((rv[E_[(E_[M>>2]|0)+36>>2]&127](M)|0)==-1){E_[i>>2]=0,N=2317;break}if(I=(M|0)==0,F^I){D=M,C=I;break}T=u,P=M,L=I;break e}N=2317}while(0);if((N|0)==2317){if(N=0,F){T=u,P=0,L=1;break}D=0,C=1}if(M=S_[b]|0,I=(M&1|0)==0,((E_[k>>2]|0)-u|0)==((I?M>>>1:E_[A>>2]|0)|0)?(I?(x=M>>>1,B=M>>>1):(M=E_[A>>2]|0,x=M,B=M),Oc(s,x<<1,0),H=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,H,0),U=(m_[b]&1)==0?g:E_[y>>2]|0,E_[k>>2]=U+B,z=U):z=u,M=R+12|0,I=E_[M>>2]|0,Y=R+16|0,V=(I|0)==(E_[Y>>2]|0)?(rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0)&255:m_[I]|0,(S(V,_,w,z,k,O,o,l,m,d,h,v)|0)!=0){T=z,P=D,L=C;break}I=E_[M>>2]|0,(I|0)!=(E_[Y>>2]|0)?(E_[M>>2]=I+1,u=z,p=R):(Y=E_[(E_[R>>2]|0)+40>>2]|0,rv[Y&127](R)|0,u=z,p=R)}p=S_[l]|0,Z=(p&1|0)==0?p>>>1:E_[l+4>>2]|0;do if((Z|0)!=0){if((m_[_]&1)==0)break;if(p=E_[d>>2]|0,(p-c|0)>=160)break;z=E_[h>>2]|0,E_[d>>2]=p+4,E_[p>>2]=z}while(0);A_[n>>3]=+st(T,E_[k>>2]|0,t),Pi(l,m,E_[d>>2]|0,t);do if(F)j=0;else{if((E_[R+12>>2]|0)!=(E_[R+16>>2]|0)){j=R;break}if((rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0)!=-1){j=R;break}E_[a>>2]=0,j=0}while(0);a=(j|0)==0;e:do{if(!L){do if((E_[P+12>>2]|0)==(E_[P+16>>2]|0)){if((rv[E_[(E_[P>>2]|0)+36>>2]&127](P)|0)!=-1)break;E_[i>>2]=0,N=2359;break e}while(0);if(!(a^(P|0)==0))break;return q=e|0,E_[q>>2]=j,yc(s),yc(l),void(O_=r)}N=2359}while(0);do if((N|0)==2359){if(a)break;return q=e|0,E_[q>>2]=j,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,q=e|0,E_[q>>2]=j,yc(s),yc(l),O_=r}function yh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r|0,u=r+8|0,E_[o>>2]=E_[i>>2],E_[u>>2]=E_[f>>2],Ah(e,0,o,u,a,t,n),O_=r}function Ah(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0;r=O_,O_=O_+80|0,o=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[o>>2],o=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[o>>2],o=r+32|0,u=r+40|0,l=r+48|0,s=r+64|0,b=s,k=O_,O_=O_+4|0,O_=O_+7&-8,c=O_,O_=O_+160|0,d=O_,O_=O_+4|0,O_=O_+7&-8,h=O_,O_=O_+4|0,O_=O_+7&-8,_=O_,O_=O_+1|0,O_=O_+7&-8,w=O_,O_=O_+1|0,O_=O_+7&-8,v=r|0,E(l,a,v,o,u),An(b|0,0,12)|0,a=s,Oc(s,10,0),(m_[b]&1)==0?(m=a+1|0,p=m,g=m,y=s+8|0):(m=s+8|0,p=E_[m>>2]|0,g=a+1|0,y=m),E_[k>>2]=p,m=c|0,E_[d>>2]=m,E_[h>>2]=0,m_[_]=1,m_[w]=69,a=i|0,i=f|0,f=s|0,A=s+4|0,O=m_[o]|0,o=m_[u]|0,u=p,p=E_[a>>2]|0;e:for(;;){do if((p|0)==0)R=0;else{if((E_[p+12>>2]|0)!=(E_[p+16>>2]|0)){R=p;break}if((rv[E_[(E_[p>>2]|0)+36>>2]&127](p)|0)!=-1){R=p;break}E_[a>>2]=0,R=0}while(0);F=(R|0)==0,M=E_[i>>2]|0;do{if((M|0)!=0){if((E_[M+12>>2]|0)!=(E_[M+16>>2]|0)){if(F){D=M,C=0;break}T=u,P=M,L=0;break e}if((rv[E_[(E_[M>>2]|0)+36>>2]&127](M)|0)==-1){E_[i>>2]=0,N=2383;break}if(I=(M|0)==0,F^I){D=M,C=I;break}T=u,P=M,L=I;break e}N=2383}while(0);if((N|0)==2383){if(N=0,F){T=u,P=0,L=1;break}D=0,C=1}if(M=S_[b]|0,I=(M&1|0)==0,((E_[k>>2]|0)-u|0)==((I?M>>>1:E_[A>>2]|0)|0)?(I?(x=M>>>1,B=M>>>1):(M=E_[A>>2]|0,x=M,B=M),Oc(s,x<<1,0),H=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,H,0),U=(m_[b]&1)==0?g:E_[y>>2]|0,E_[k>>2]=U+B,z=U):z=u,M=R+12|0,I=E_[M>>2]|0,Y=R+16|0,V=(I|0)==(E_[Y>>2]|0)?(rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0)&255:m_[I]|0,(S(V,_,w,z,k,O,o,l,m,d,h,v)|0)!=0){T=z,P=D,L=C;break}I=E_[M>>2]|0,(I|0)!=(E_[Y>>2]|0)?(E_[M>>2]=I+1,u=z,p=R):(Y=E_[(E_[R>>2]|0)+40>>2]|0,rv[Y&127](R)|0,u=z,p=R)}p=S_[l]|0,Z=(p&1|0)==0?p>>>1:E_[l+4>>2]|0;do if((Z|0)!=0){if((m_[_]&1)==0)break;if(p=E_[d>>2]|0,(p-c|0)>=160)break;z=E_[h>>2]|0,E_[d>>2]=p+4,E_[p>>2]=z}while(0);A_[n>>3]=+lt(T,E_[k>>2]|0,t),Pi(l,m,E_[d>>2]|0,t);do if(F)j=0;else{if((E_[R+12>>2]|0)!=(E_[R+16>>2]|0)){j=R;break}if((rv[E_[(E_[R>>2]|0)+36>>2]&127](R)|0)!=-1){j=R;break}E_[a>>2]=0,j=0}while(0);a=(j|0)==0;e:do{if(!L){do if((E_[P+12>>2]|0)==(E_[P+16>>2]|0)){if((rv[E_[(E_[P>>2]|0)+36>>2]&127](P)|0)!=-1)break;E_[i>>2]=0,N=2425;break e}while(0);if(!(a^(P|0)==0))break;return q=e|0,E_[q>>2]=j,yc(s),yc(l),void(O_=r)}N=2425}while(0);do if((N|0)==2425){if(a)break;return q=e|0,E_[q>>2]=j,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,q=e|0,E_[q>>2]=j,yc(s),yc(l),O_=r}function Oh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,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16>>2]|0)){if(N)break;T=R;break e}if((rv[E_[(E_[D>>2]|0)+36>>2]&127](D)|0)==-1){E_[v>>2]=0,C=2456;break}if(N^(D|0)==0)break;T=R;break e}C=2456}while(0);if((C|0)==2456&&(C=0,N)){T=R;break}if(D=S_[s]|0,P=(D&1|0)==0,((E_[c>>2]|0)-R|0)==((P?D>>>1:E_[O>>2]|0)|0)?(P?(L=D>>>1,I=D>>>1):(D=E_[O>>2]|0,L=D,I=D),Oc(k,L<<1,0),x=(m_[s]&1)==0?10:(E_[A>>2]&-2)-1|0,Oc(k,x,0),B=(m_[s]&1)==0?g:E_[y>>2]|0,E_[c>>2]=B+I,H=B):H=R,D=M+12|0,P=E_[D>>2]|0,U=M+16|0,z=(P|0)==(E_[U>>2]|0)?(rv[E_[(E_[M>>2]|0)+36>>2]&127](M)|0)&255:m_[P]|0,(Rh(z,16,H,c,_,0,l,E,h,p)|0)!=0){T=H;break}P=E_[D>>2]|0,(P|0)!=(E_[U>>2]|0)?(E_[D>>2]=P+1,R=H,F=M):(U=E_[(E_[M>>2]|0)+40>>2]|0,rv[U&127](M)|0,R=H,F=M)}m_[T+3|0]=0;do if((m_[16672]|0)==0){if((vw(16672)|0)==0)break;E_[3666]=nw(2147483647,3384,0)|0}while(0);F=Fh(T,E_[3666]|0,2616,(R=O_,O_=O_+8|0,E_[R>>2]=n,R|0))|0,O_=R,(F|0)!=1&&(E_[t>>2]=4),F=E_[m>>2]|0;do if((F|0)==0)Y=0;else{if((E_[F+12>>2]|0)!=(E_[F+16>>2]|0)){Y=F;break}if((rv[E_[(E_[F>>2]|0)+36>>2]&127](F)|0)!=-1){Y=F;break}E_[m>>2]=0,Y=0}while(0);m=(Y|0)==0,F=E_[v>>2]|0;do{if((F|0)!=0){if((E_[F+12>>2]|0)!=(E_[F+16>>2]|0)){if(!m)break;return V=e|0,E_[V>>2]=Y,yc(k),yc(l),void(O_=r)}if((rv[E_[(E_[F>>2]|0)+36>>2]&127](F)|0)==-1){E_[v>>2]=0,C=2501;break}if(!(m^(F|0)==0))break;return V=e|0,E_[V>>2]=Y,yc(k),yc(l),void(O_=r)}C=2501}while(0);do if((C|0)==2501){if(m)break;return V=e|0,E_[V>>2]=Y,yc(k),yc(l),void(O_=r)}while(0);return E_[t>>2]=E_[t>>2]|2,V=e|0,E_[V>>2]=Y,yc(k),yc(l),void(O_=r)}while(0);r=Yw(4)|0,Ht(r),gw(r|0,11024,132)}function Rh(e,r,i,f,a,t,n,o,u,l){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0,l|=0;var s=0,b=0,k=0,c=0,d=0,h=0;s=E_[f>>2]|0,b=(s|0)==(i|0);do if(b){if(k=(m_[l+24|0]|0)==e<<24>>24,!k&&(m_[l+25|0]|0)!=e<<24>>24)break;return E_[f>>2]=i+1,m_[i]=k?43:45,E_[a>>2]=0,c=0,c|0}while(0);if(k=S_[n]|0,d=(k&1|0)==0?k>>>1:E_[n+4>>2]|0,(d|0)!=0&e<<24>>24==t<<24>>24)return t=E_[u>>2]|0,(t-o|0)>=160?(c=0,c|0):(o=E_[a>>2]|0,E_[u>>2]=t+4,E_[t>>2]=o,E_[a>>2]=0,c=0,c|0);for(o=l+26|0,t=l;;){if((t|0)==(o|0)){h=o;break}if((m_[t]|0)==e<<24>>24){h=t;break}t=t+1|0}if(t=h-l|0,(t|0)>23)return c=-1,c|0;do{if((r|0)==8|(r|0)==10){if((t|0)<(r|0))break;return c=-1,c|0}if((r|0)==16){if((t|0)<22)break;return b?(c=-1,c|0):(s-i|0)>=3?(c=-1,c|0):(m_[s-1|0]|0)!=48?(c=-1,c|0):(E_[a>>2]=0,l=m_[12576+t|0]|0,h=E_[f>>2]|0,E_[f>>2]=h+1,m_[h]=l,c=0,c|0)}}while(0);return i=m_[12576+t|0]|0,E_[f>>2]=s+1,m_[s]=i,E_[a>>2]=(E_[a>>2]|0)+1,c=0,c|0}function Fh(e,r,i,f){e|=0,r|=0,i|=0,f|=0;var a=0,t=0,n=0;return a=O_,O_=O_+16|0,t=a|0,n=t,E_[n>>2]=f,E_[n+4>>2]=0,n=Pw(r|0)|0,r=lw(e|0,i|0,t|0)|0,(n|0)==0?(O_=a,r|0):(Pw(n|0)|0,O_=a,r|0)}function Mh(e){e|=0,Qk(e|0),hn(e)}function Nh(e){e|=0,Qk(e|0)}function Dh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0;if(o=O_,O_=O_+112|0,u=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[u>>2],u=f,f=O_,O_=O_+4|0,O_=O_+7&-8,E_[f>>2]=E_[u>>2],u=o|0,l=o+16|0,s=o+32|0,b=o+40|0,k=o+48|0,c=o+56|0,d=o+64|0,h=o+72|0,_=o+80|0,w=o+104|0,(E_[a+4>>2]&1|0)==0)return E_[s>>2]=-1,v=E_[(E_[r>>2]|0)+16>>2]|0,m=i|0,E_[k>>2]=E_[m>>2],E_[c>>2]=E_[f>>2],fv[v&127](b,r,k,c,a,t,s),c=E_[b>>2]|0,E_[m>>2]=c,m=E_[s>>2]|0,(m|0)==0?m_[n]=0:(m|0)==1?m_[n]=1:(m_[n]=1,E_[t>>2]=4),E_[e>>2]=c,void(O_=o);Zc(d,a),c=d|0,d=E_[c>>2]|0,(E_[4026]|0)!=-1&&(E_[l>>2]=16104,E_[l+4>>2]=14,E_[l+8>>2]=0,mc(16104,l,98)),l=(E_[4027]|0)-1|0,m=E_[d+8>>2]|0;do if((E_[d+12>>2]|0)-m>>2>>>0>l>>>0){if(s=E_[m+(l<<2)>>2]|0,(s|0)==0)break;b=s,s=E_[c>>2]|0,$k(s)|0,Zc(h,a),s=h|0,k=E_[s>>2]|0,(E_[3930]|0)!=-1&&(E_[u>>2]=15720,E_[u+4>>2]=14,E_[u+8>>2]=0,mc(15720,u,98)),r=(E_[3931]|0)-1|0,v=E_[k+8>>2]|0;do if((E_[k+12>>2]|0)-v>>2>>>0>r>>>0){if(p=E_[v+(r<<2)>>2]|0,(p|0)==0)break;return E=p,S=E_[s>>2]|0,$k(S)|0,S=_|0,g=p,Jw[E_[(E_[g>>2]|0)+24>>2]&127](S,E),Jw[E_[(E_[g>>2]|0)+28>>2]&127](_+12|0,E),E_[w>>2]=E_[f>>2],m_[n]=(Ch(i,w,S,_+24|0,b,t,1)|0)==(S|0)|0,E_[e>>2]=E_[i>>2],Lc(_+12|0),Lc(_|0),void(O_=o)}while(0);b=Yw(4)|0,Ht(b),gw(b|0,11024,132)}while(0);o=Yw(4)|0,Ht(o),gw(o|0,11024,132)}function Ch(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0,x=0,B=0,H=0,U=0,z=0,Y=0,V=0,Z=0,j=0,q=0,W=0,K=0,X=0,G=0,Q=0,J=0,$=0;o=O_,O_=O_+104|0,u=r,r=O_,O_=O_+4|0,O_=O_+7&-8,E_[r>>2]=E_[u>>2],u=(f-i|0)/12|0,l=o|0;do if(u>>>0>100){if(s=on(u)|0,(s|0)!=0){b=s,k=s;break}pn(),b=0,k=0}else b=l,k=0;while(0);if(l=(i|0)==(f|0))c=u,d=0;else for(s=u,u=0,h=b,_=i;;){if(w=S_[_]|0,v=(w&1|0)==0?w>>>1:E_[_+4>>2]|0,(v|0)==0?(m_[h]=2,m=u+1|0,p=s-1|0):(m_[h]=1,m=u,p=s),w=_+12|0,(w|0)==(f|0)){c=p,d=m;break}s=p,u=m,h=h+1|0,_=w}for(_=e|0,e=r|0,r=a,h=0,m=d,d=c;;){c=E_[_>>2]|0;do{if((c|0)!=0){if(u=E_[c+12>>2]|0,S=(u|0)==(E_[c+16>>2]|0)?rv[E_[(E_[c>>2]|0)+36>>2]&127](c)|0:E_[u>>2]|0,(S|0)==-1){E_[_>>2]=0,E=0;break}E=E_[_>>2]|0;break}E=0}while(0);if(c=(E|0)==0,u=E_[e>>2]|0,(u|0)==0?(g=E,y=0):(p=E_[u+12>>2]|0,A=(p|0)==(E_[u+16>>2]|0)?rv[E_[(E_[u>>2]|0)+36>>2]&127](u)|0:E_[p>>2]|0,(A|0)==-1?(E_[e>>2]=0,O=0):O=u,g=E_[_>>2]|0,y=O),R=(y|0)==0,!((c^R)&(d|0)!=0))break;c=E_[g+12>>2]|0,F=(c|0)==(E_[g+16>>2]|0)?rv[E_[(E_[g>>2]|0)+36>>2]&127](g)|0:E_[c>>2]|0,M=n?F:lv[E_[(E_[r>>2]|0)+28>>2]&31](a,F)|0;do if(l)N=m,D=d;else{c=h+1|0;e:do if(n)for(u=d,p=m,s=b,v=0,w=i;;){do if((m_[s]|0)==1){if(C=w,T=(m_[C]&1)==0?w+4|0:E_[w+8>>2]|0,(M|0)!=(E_[T+(h<<2)>>2]|0)){m_[s]=0,P=v,L=p,I=u-1|0;break}if(x=S_[C]|0,B=(x&1|0)==0?x>>>1:E_[w+4>>2]|0,(B|0)!=(c|0)){P=1,L=p,I=u;break}m_[s]=2,P=1,L=p+1|0,I=u-1|0}else P=v,L=p,I=u;while(0);if(x=w+12|0,(x|0)==(f|0)){H=I,U=L,z=P;break e}u=I,p=L,s=s+1|0,v=P,w=x}else for(w=d,v=m,s=b,p=0,u=i;;){do if((m_[s]|0)==1){if(x=u,Y=(m_[x]&1)==0?u+4|0:E_[u+8>>2]|0,(M|0)!=(lv[E_[(E_[r>>2]|0)+28>>2]&31](a,E_[Y+(h<<2)>>2]|0)|0)){m_[s]=0,V=p,Z=v,j=w-1|0;break}if(C=S_[x]|0,q=(C&1|0)==0?C>>>1:E_[u+4>>2]|0,(q|0)!=(c|0)){V=1,Z=v,j=w;break}m_[s]=2,V=1,Z=v+1|0,j=w-1|0}else V=p,Z=v,j=w;while(0);if(C=u+12|0,(C|0)==(f|0)){H=j,U=Z,z=V;break e}w=j,v=Z,s=s+1|0,p=V,u=C}while(0);if(!z){N=U,D=H;break}if(c=E_[_>>2]|0,u=c+12|0,p=E_[u>>2]|0,(p|0)==(E_[c+16>>2]|0)?(s=E_[(E_[c>>2]|0)+40>>2]|0,rv[s&127](c)|0):E_[u>>2]=p+4,(U+H|0)>>>0<2|l){N=U,D=H;break}for(p=h+1|0,u=U,c=b,s=i;;){do if((m_[c]|0)==2){if(v=S_[s]|0,W=(v&1|0)==0?v>>>1:E_[s+4>>2]|0,(W|0)==(p|0)){K=u;break}m_[c]=0,K=u-1|0}else K=u;while(0);if(v=s+12|0,(v|0)==(f|0)){N=K,D=H;break}u=K,c=c+1|0,s=v}}while(0);h=h+1|0,m=N,d=D}do{if((g|0)!=0){if(D=E_[g+12>>2]|0,G=(D|0)==(E_[g+16>>2]|0)?rv[E_[(E_[g>>2]|0)+36>>2]&127](g)|0:E_[D>>2]|0,(G|0)==-1){E_[_>>2]=0,X=1;break}X=(E_[_>>2]|0)==0;break}X=1}while(0);do{if(!R){if(_=E_[y+12>>2]|0,J=(_|0)==(E_[y+16>>2]|0)?rv[E_[(E_[y>>2]|0)+36>>2]&127](y)|0:E_[_>>2]|0,(J|0)==-1){E_[e>>2]=0,Q=2676;break}if(X^(y|0)==0)break;Q=2678;break}Q=2676}while(0);(Q|0)==2676&&X&&(Q=2678),(Q|0)==2678&&(E_[t>>2]=E_[t>>2]|2);e:do if(l)Q=2683;else for(X=i,y=b;;){if((m_[y]|0)==2){$=X;break e}if(e=X+12|0,(e|0)==(f|0)){Q=2683;break e}X=e,y=y+1|0}while(0);return(Q|0)==2683&&(E_[t>>2]=E_[t>>2]|4,$=f),(k|0)==0?(O_=o,$|0):(un(k),O_=o,$|0)}function Th(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0;var o=0,u=0;r=O_,O_=O_+16|0,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==0,O=E_[i>>2]|0;do{if((O|0)!=0){if(N=E_[O+12>>2]|0,D=(N|0)==(E_[O+16>>2]|0)?rv[E_[(E_[O>>2]|0)+36>>2]&127](O)|0:E_[N>>2]|0,(D|0)==-1){E_[i>>2]=0,M=2712;break}if(N=(O|0)==0,F^N){C=O,T=N;break}P=u,L=O,I=N;break e}M=2712}while(0);if((M|0)==2712){if(M=0,F){P=u,L=0,I=1;break}C=0,T=1}if(O=S_[b]|0,N=(O&1|0)==0,((E_[k>>2]|0)-u|0)==((N?O>>>1:E_[S>>2]|0)|0)?(N?(x=O>>>1,B=O>>>1):(O=E_[S>>2]|0,x=O,B=O),Oc(s,x<<1,0),H=(m_[b]&1)==0?10:(E_[f>>2]&-2)-1|0,Oc(s,H,0),U=(m_[b]&1)==0?p:E_[E>>2]|0,E_[k>>2]=U+B,z=U):z=u,O=A+12|0,N=E_[O>>2]|0,Y=A+16|0,V=(N|0)==(E_[Y>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[N>>2]|0,(m(V,w,z,k,h,y,l,o,d,_)|0)!=0){P=z,L=C,I=T;break}N=E_[O>>2]|0,(N|0)!=(E_[Y>>2]|0)?(E_[O>>2]=N+4,u=z,v=A):(Y=E_[(E_[A>>2]|0)+40>>2]|0,rv[Y&127](A)|0,u=z,v=A)}v=S_[l]|0,Z=(v&1|0)==0?v>>>1:E_[l+4>>2]|0;do if((Z|0)!=0){if(v=E_[d>>2]|0,(v-c|0)>=160)break;z=E_[h>>2]|0,E_[d>>2]=v+4,E_[v>>2]=z}while(0);E_[n>>2]=wt(P,E_[k>>2]|0,t,w)|0,Pi(l,o,E_[d>>2]|0,t);do if(F)j=0;else{if(d=E_[A+12>>2]|0,q=(d|0)==(E_[A+16>>2]|0)?rv[E_[(E_[A>>2]|0)+36>>2]&127](A)|0:E_[d>>2]|0,(q|0)!=-1){j=A;break}E_[a>>2]=0,j=0}while(0);a=(j|0)==0;do{if(!I){if(A=E_[L+12>>2]|0,W=(A|0)==(E_[L+16>>2]|0)?rv[E_[(E_[L>>2]|0)+36>>2]&127](L)|0:E_[A>>2]|0,(W|0)==-1){E_[i>>2]=0,M=2754;break}if(!(a^(L|0)==0))break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}M=2754}while(0);do if((M|0)==2754){if(a)break;return K=e|0,E_[K>>2]=j,yc(s),yc(l),void(O_=r)}while(0);E_[t>>2]=E_[t>>2]|2,K=e|0,E_[K>>2]=j,yc(s),yc(l),O_=r}function Lh(e,r,i,a,t,n,o){e|=0,r|=0,i|=0,a|=0,t|=0,n|=0,o|=0;var u=0,l=0;r=O_,O_=O_+16|0,u=i,i=O_,O_=O_+4|0,O_=O_+7&-8,E_[i>>2]=E_[u>>2],u=a,a=O_,O_=O_+4|0,O_=O_+7&-8,E_[a>>2]=E_[u>>2],u=r|0,l=r+8|0,E_[u>>2]=E_[i>>2],E_[l>>2]=E_[a>>2],f(e,0,u,l,t,n,o),O_=r}function Ih(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0;var t=0,n=0,o=0,u=0,l=0,s=0,b=0,k=0,c=0,d=0,h=0,_=0,w=0,v=0,m=0,p=0,E=0,S=0,g=0,y=0,A=0,O=0,R=0,F=0,M=0,N=0,D=0,C=0,T=0,P=0,L=0,I=0;if(t=e,n=r,o=n,u=i,l=f,s=l,(o|0)==0)return b=(a|0)!=0,(s|0)==0?(b&&(E_[a>>2]=(t>>>0)%(u>>>0),E_[a+4>>2]=0),k=0,c=(t>>>0)/(u>>>0)>>>0,z_=k,c|0):b?(E_[a>>2]=e|0,E_[a+4>>2]=r&0,k=0,c=0,z_=k,c|0):(k=0,c=0,z_=k,c|0);b=(s|0)==0;do{if((u|0)==0){if(b)return(a|0)!=0&&(E_[a>>2]=(o>>>0)%(u>>>0),E_[a+4>>2]=0),k=0,c=(o>>>0)/(u>>>0)>>>0,z_=k,c|0;if((t|0)==0)return(a|0)!=0&&(E_[a>>2]=0,E_[a+4>>2]=(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Mn(f,l,u,e)|0,r=z_,n=r>>31|((r|0)<0?-1:0)<<1,P=n&1,L=Mn(u,e,n&t,(((r|0)<0?-1:0)>>31|((r|0)<0?-1:0)<<1)&i)|0,I=z_,r=v-1|0,(r|0)==0)break;o=C,E=T,p=I,m=L,v=r,w=P}O=C,R=T,F=I,M=L,N=0,D=P}return P=R,R=0,(a|0)!=0&&(E_[a>>2]=M,E_[a+4>>2]=F),k=(P|0)>>>31|(O|R)<<1|(R<<1|P>>>31)&0|N,c=(P<<1|0)&-2|D,z_=k,c|0}function xh(e,r,i,f,a){return e|=0,r|=0,i|=0,f|=0,a|=0,Kw[e&15](r|0,i|0,f|0,a|0)|0}function Bh(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0,Xw[e&31](r|0,i|0,f|0,a|0)}function Hh(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,Gw[e&15](r|0,i|0,f|0,a|0,t|0)}function Uh(e,r){e|=0,r|=0,Qw[e&511](r|0)}function zh(e,r,i){e|=0,r|=0,i|=0,Jw[e&127](r|0,i|0)}function Yh(e,r,i,f,a,t){return e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,$w[e&31](r|0,i|0,f|0,a|0,t|0)|0}function Vh(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o=+o,ev[e&7](r|0,i|0,f|0,a|0,t|0,n|0,+o)}function Zh(e,r){return e|=0,r|=0,rv[e&127](r|0)|0}function jh(e,r,i,f){return e|=0,r|=0,i|=0,f|=0,iv[e&63](r|0,i|0,f|0)|0}function qh(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,fv[e&127](r|0,i|0,f|0,a|0,t|0,n|0,o|0)}function Wh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n=+n,av[e&15](r|0,i|0,f|0,a|0,t|0,+n)}function Kh(e){e|=0,tv[e&1]()}function Xh(e,r,i,f,a,t,n,o,u){return e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0,nv[e&31](r|0,i|0,f|0,a|0,t|0,n|0,o|0,u|0)|0}function Gh(e,r,i,f,a,t,n,o,u,l){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0,l|=0,ov[e&7](r|0,i|0,f|0,a|0,t|0,n|0,o|0,u|0,l|0)}function Qh(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,uv[e&31](r|0,i|0,f|0,a|0,t|0,n|0)}function Jh(e,r,i){return e|=0,r|=0,i|=0,lv[e&31](r|0,i|0)|0}function $h(e,r,i,f,a,t,n,o,u){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0,sv[e&15](r|0,i|0,f|0,a|0,t|0,n|0,o|0,u|0)}function e_(e,r,i,f){e|=0,r|=0,i|=0,f|=0,bv[e&15](r|0,i|0,f|0)}function r_(e,r,i,f){return e|=0,r|=0,i|=0,f|=0,$_(0),0}function i_(e,r,i,f){e|=0,r|=0,i|=0,f|=0,$_(1)}function f_(e,r,i,f,a){e|=0,r|=0,i|=0,f|=0,a|=0,$_(2)}function a_(e){e|=0,$_(3)}function t_(e,r){e|=0,r|=0,$_(4)}function n_(e,r,i,f,a){return e|=0,r|=0,i|=0,f|=0,a|=0,$_(5),0}function o_(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n=+n,$_(6)}function u_(e){return e|=0,$_(7),0}function l_(e,r,i){return e|=0,r|=0,i|=0,$_(8),0}function s_(e,r,i,f,a,t,n){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,$_(9)}function b_(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t=+t,$_(10)}function k_(){$_(11)}function c_(e,r,i,f,a,t,n,o){return e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,$_(12),0}function d_(e,r,i,f,a,t,n,o,u){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,u|=0,$_(13)}function h_(e,r,i,f,a,t){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,$_(14)}function __(e,r){return e|=0,r|=0,$_(15),0}function w_(e,r,i,f,a,t,n,o){e|=0,r|=0,i|=0,f|=0,a|=0,t|=0,n|=0,o|=0,$_(16)}function v_(e,r,i){e|=0,r|=0,i|=0,$_(17)}var m_=new e.Int8Array(i),p_=new e.Int16Array(i),E_=new e.Int32Array(i),S_=new e.Uint8Array(i),g_=new e.Uint16Array(i),y_=(new e.Uint32Array(i),new e.Float32Array(i)),A_=new e.Float64Array(i),O_=r.STACKTOP|0,R_=(r.STACK_MAX|0,r.tempDoublePtr|0),F_=(r.ABORT|0,r.cttz_i8|0),M_=r.ctlz_i8|0,N_=r._stdin|0,D_=r.__ZTVN10__cxxabiv117__class_type_infoE|0,C_=r.__ZTVN10__cxxabiv120__si_class_type_infoE|0,T_=r._stderr|0,P_=r.___fsmu8|0,L_=r._stdout|0,I_=r.___dso_handle|0,x_=(+r.NaN,+r.Infinity,0),B_=0,H_=0,U_=0,z_=0,Y_=0,V_=0,Z_=0,j_=0,q_=0,W_=0,K_=0,X_=0,G_=0,Q_=(e.Math.floor,e.Math.abs),J_=(e.Math.sqrt,e.Math.pow,e.Math.cos,e.Math.sin,e.Math.tan,e.Math.acos,e.Math.asin,e.Math.atan,e.Math.atan2,e.Math.exp,e.Math.log,e.Math.ceil,e.Math.imul),$_=r.abort,ew=(r.assert,r.asmPrintInt,r.asmPrintFloat,r.min,r.invoke_iiiii,r.invoke_viiii,r.invoke_viiiii,r.invoke_vi,r.invoke_vii,r.invoke_iiiiii,r.invoke_viiiiiid,r.invoke_ii,r.invoke_iiii,r.invoke_viiiiiii,r.invoke_viiiiid,r.invoke_v,r.invoke_iiiiiiiii,r.invoke_viiiiiiiii,r.invoke_viiiiii,r.invoke_iii,r.invoke_viiiiiiii,r.invoke_viii,r._llvm_lifetime_end,r.__scanString,r._fclose),rw=(r._pthread_mutex_lock,r.___cxa_end_catch,r._strtoull),iw=r._fflush,fw=r._fputc,aw=r._fwrite,tw=(r._send,r._isspace),nw=(r._read,r._fsync,r.___cxa_guard_abort,r._newlocale),ow=(r.___gxx_personality_v0,r._pthread_cond_wait),uw=(r.___cxa_rethrow,r.___resumeException,r._strcmp),lw=(r._strncmp,r._vsscanf),sw=r._snprintf,bw=r._fgetc,kw=(r.__getFloat,r._atexit),cw=(r.___cxa_free_exception,r._close,r.___setErrNo,r._isxdigit),dw=(r._abs,r._exit),hw=(r._sprintf,r.___ctype_b_loc),_w=r._freelocale,ww=r._catgets,vw=(r.__isLeapYear,r._asprintf,r.___cxa_is_number_type,r.___cxa_does_inherit,r.___cxa_guard_acquire),mw=(r.___cxa_begin_catch,r._recv,r.__parseInt64,r.__ZSt18uncaught_exceptionv),pw=(r.___cxa_call_unexpected,r.___cxa_get_exception_ptr,r._islower),Ew=(r.__exit,r._isupper),Sw=r._strftime,gw=(r._llvm_va_end,r.___cxa_throw),yw=(r._llvm_eh_exception,r._toupper),Aw=(r._pread,r._fopen),Ow=(r._open,r.__arraySum,r._isalpha),Rw=(r.___cxa_find_matching_catch,r.__formatString,r._pthread_cond_broadcast),Fw=(r.__ZSt9terminatev,r._isascii),Mw=(r._pthread_mutex_unlock,r._sbrk),Nw=r.___errno_location,Dw=r._strerror,Cw=r._catclose,Tw=(r._llvm_lifetime_start,r.___cxa_guard_release,r._ungetc),Pw=r._uselocale,Lw=r._vsnprintf,Iw=r._sscanf,xw=r._sysconf,Bw=(r._fread,r._abort),Hw=r._fprintf,Uw=r._isdigit,zw=r._strtoll,Yw=(r.__addDays,r.__reallyNegative,r._write,r.___cxa_allocate_exception),Vw=r._vasprintf,Zw=r._catopen,jw=r.___ctype_toupper_loc,qw=r.___ctype_tolower_loc,Ww=(r._llvm_eh_typeid_for,r._pwrite,r._strerror_r,r._time),Kw=[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th,s_,Dh,s_,_,s_,d,s_,k,s_,Sr,s_,dh,s_,tr,s_,vh,s_,sh,s_,kh,s_,_h,s_,uh,s_,yh,s_,Sh,s_,ph,s_,nh,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_,s_],av=[b_,b_,J,b_,G,b_,H,b_,I,b_,b_,b_,b_,b_,b_,b_],tv=[k_,k_],nv=[c_,c_,aa,c_,da,c_,ka,c_,Aa,c_,ta,c_,ga,c_,Gf,c_,Qf,c_,c_,c_,c_,c_,c_,c_,c_,c_,c_,c_,c_,c_,c_,c_],ov=[d_,d_,gr,d_,lr,d_,d_,d_],uv=[h_,h_,an,h_,K,h_,Z,h_,V,h_,tn,h_,$,h_,tf,h_,sd,h_,nn,h_,U,h_,F,h_,P,h_,M,h_,Gc,h_,sf,h_],lv=[__,__,Kk,__,Lf,__,wd,__,jf,__,zf,__,Pk,__,zk,__,Df,__,Vf,__,td,__,md,__,Tf,__,fd,__,Rk,__,__,__],sv=[w_,w_,Tr,w_,Nr,w_,Ri,w_,xi,w_,Di,w_,Hi,w_,w_,w_],bv=[v_,v_,ab,v_,Ro,v_,bc,v_,zd,v_,Pu,v_,yo,v_,v_,v_];return{_OCRAD_result_line:ho,_strlen:gn,_tolower:Rn,_OCRAD_result_first_character:_o,_OCRAD_scale:no,_OCRAD_set_image_from_file:fo,_OCRAD_result_lines:so,_OCRAD_result_blocks:lo,_OCRAD_version:Jn,_OCRAD_close:eo,_OCRAD_set_utf8_format:ao,_OCRAD_set_exportfile:oo,_memset:An,_OCRAD_set_threshold:to,_memcpy:yn,_OCRAD_recognize:uo,_OCRAD_open:$n,_OCRAD_result_chars_line:co,_OCRAD_result_chars_total:bo,_realloc:ln,_OCRAD_set_image:io,_OCRAD_result_chars_block:ko,_OCRAD_get_errno:ro,_free:un,_memmove:On,__GLOBAL__I_a:Gk,_malloc:on,runPostSets:Qn,stackAlloc:xn,stackSave:Bn,stackRestore:Hn,setThrew:Un,setTempRet0:zn,setTempRet1:Yn,setTempRet2:Vn,setTempRet3:Zn,setTempRet4:jn,setTempRet5:qn,setTempRet6:Wn,setTempRet7:Kn,setTempRet8:Xn,setTempRet9:Gn,dynCall_iiiii:xh,dynCall_viiii:Bh,dynCall_viiiii:Hh,dynCall_vi:Uh,dynCall_vii:zh,dynCall_iiiiii:Yh,dynCall_viiiiiid:Vh,dynCall_ii:Zh,dynCall_iiii:jh,dynCall_viiiiiii:qh,dynCall_viiiiid:Wh,dynCall_v:Kh,dynCall_iiiiiiiii:Xh,dynCall_viiiiiiiii:Gh,dynCall_viiiiii:Qh,dynCall_iii:Jh,dynCall_viiiiiiii:$h,dynCall_viii:e_}}({Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array},{abort:abort,assert:assert,asmPrintInt:asmPrintInt,asmPrintFloat:asmPrintFloat,min:Math_min,invoke_iiiii:invoke_iiiii,invoke_viiii:invoke_viiii,invoke_viiiii:invoke_viiiii,invoke_vi:invoke_vi,invoke_vii:invoke_vii,invoke_iiiiii:invoke_iiiiii,invoke_viiiiiid:invoke_viiiiiid,invoke_ii:invoke_ii,invoke_iiii:invoke_iiii,invoke_viiiiiii:invoke_viiiiiii,invoke_viiiiid:invoke_viiiiid,invoke_v:invoke_v,invoke_iiiiiiiii:invoke_iiiiiiiii,invoke_viiiiiiiii:invoke_viiiiiiiii,invoke_viiiiii:invoke_viiiiii,invoke_iii:invoke_iii,invoke_viiiiiiii:invoke_viiiiiiii,invoke_viii:invoke_viii,_llvm_lifetime_end:_llvm_lifetime_end,__scanString:__scanString,_fclose:_fclose,_pthread_mutex_lock:_pthread_mutex_lock,___cxa_end_catch:___cxa_end_catch,_strtoull:_strtoull,_fflush:_fflush,_fputc:_fputc,_fwrite:_fwrite,_send:_send,_isspace:_isspace,_read:_read,_fsync:_fsync,___cxa_guard_abort:___cxa_guard_abort,_newlocale:_newlocale,___gxx_personality_v0:___gxx_personality_v0,_pthread_cond_wait:_pthread_cond_wait,___cxa_rethrow:___cxa_rethrow,___resumeException:___resumeException,_strcmp:_strcmp,_strncmp:_strncmp,_vsscanf:_vsscanf,_snprintf:_snprintf,_fgetc:_fgetc,__getFloat:__getFloat,_atexit:_atexit,___cxa_free_exception:___cxa_free_exception,_close:_close,___setErrNo:___setErrNo,_isxdigit:_isxdigit,_abs:_abs,_exit:_exit,_sprintf:_sprintf,___ctype_b_loc:___ctype_b_loc,_freelocale:_freelocale,_catgets:_catgets,__isLeapYear:__isLeapYear,_asprintf:_asprintf,___cxa_is_number_type:___cxa_is_number_type,___cxa_does_inherit:___cxa_does_inherit,___cxa_guard_acquire:___cxa_guard_acquire,___cxa_begin_catch:___cxa_begin_catch,_recv:_recv,__parseInt64:__parseInt64,__ZSt18uncaught_exceptionv:__ZSt18uncaught_exceptionv,___cxa_call_unexpected:___cxa_call_unexpected,___cxa_get_exception_ptr:___cxa_get_exception_ptr,_islower:_islower,__exit:__exit,_isupper:_isupper,_strftime:_strftime,_llvm_va_end:_llvm_va_end,___cxa_throw:___cxa_throw,_llvm_eh_exception:_llvm_eh_exception,_toupper:_toupper,_pread:_pread,_fopen:_fopen,_open:_open,__arraySum:__arraySum,_isalpha:_isalpha,___cxa_find_matching_catch:___cxa_find_matching_catch,__formatString:__formatString,_pthread_cond_broadcast:_pthread_cond_broadcast,__ZSt9terminatev:__ZSt9terminatev,_isascii:_isascii,_pthread_mutex_unlock:_pthread_mutex_unlock,_sbrk:_sbrk,___errno_location:___errno_location,_strerror:_strerror,_catclose:_catclose,_llvm_lifetime_start:_llvm_lifetime_start,___cxa_guard_release:___cxa_guard_release,_ungetc:_ungetc,_uselocale:_uselocale,_vsnprintf:_vsnprintf,_sscanf:_sscanf,_sysconf:_sysconf,_fread:_fread,_abort:_abort,_fprintf:_fprintf,_isdigit:_isdigit,_strtoll:_strtoll,__addDays:__addDays,__reallyNegative:__reallyNegative,_write:_write,___cxa_allocate_exception:___cxa_allocate_exception,_vasprintf:_vasprintf,_catopen:_catopen,___ctype_toupper_loc:___ctype_toupper_loc,___ctype_tolower_loc:___ctype_tolower_loc,_llvm_eh_typeid_for:_llvm_eh_typeid_for,_pwrite:_pwrite,_strerror_r:_strerror_r,_time:_time,STACKTOP:STACKTOP,STACK_MAX:STACK_MAX,tempDoublePtr:tempDoublePtr,ABORT:ABORT,cttz_i8:cttz_i8,ctlz_i8:ctlz_i8,NaN:0/0,Infinity:1/0,_stdin:_stdin,__ZTVN10__cxxabiv117__class_type_infoE:__ZTVN10__cxxabiv117__class_type_infoE,__ZTVN10__cxxabiv120__si_class_type_infoE:__ZTVN10__cxxabiv120__si_class_type_infoE,_stderr:_stderr,___fsmu8:___fsmu8,_stdout:_stdout,___dso_handle:___dso_handle},buffer),_OCRAD_result_line=Module._OCRAD_result_line=asm._OCRAD_result_line,_strlen=Module._strlen=asm._strlen,_tolower=Module._tolower=asm._tolower,_OCRAD_result_first_character=Module._OCRAD_result_first_character=asm._OCRAD_result_first_character,_OCRAD_scale=Module._OCRAD_scale=asm._OCRAD_scale,_OCRAD_set_image_from_file=Module._OCRAD_set_image_from_file=asm._OCRAD_set_image_from_file,_OCRAD_result_lines=Module._OCRAD_result_lines=asm._OCRAD_result_lines,_OCRAD_result_blocks=Module._OCRAD_result_blocks=asm._OCRAD_result_blocks,_OCRAD_version=Module._OCRAD_version=asm._OCRAD_version,_OCRAD_close=Module._OCRAD_close=asm._OCRAD_close,_OCRAD_set_utf8_format=Module._OCRAD_set_utf8_format=asm._OCRAD_set_utf8_format,_OCRAD_set_exportfile=Module._OCRAD_set_exportfile=asm._OCRAD_set_exportfile,_memset=Module._memset=asm._memset,_OCRAD_set_threshold=Module._OCRAD_set_threshold=asm._OCRAD_set_threshold,_memcpy=Module._memcpy=asm._memcpy,_OCRAD_recognize=Module._OCRAD_recognize=asm._OCRAD_recognize,_OCRAD_open=Module._OCRAD_open=asm._OCRAD_open,_OCRAD_result_chars_line=Module._OCRAD_result_chars_line=asm._OCRAD_result_chars_line,_OCRAD_result_chars_total=Module._OCRAD_result_chars_total=asm._OCRAD_result_chars_total,_realloc=Module._realloc=asm._realloc,_OCRAD_set_image=Module._OCRAD_set_image=asm._OCRAD_set_image,_OCRAD_result_chars_block=Module._OCRAD_result_chars_block=asm._OCRAD_result_chars_block,_OCRAD_get_errno=Module._OCRAD_get_errno=asm._OCRAD_get_errno,_free=Module._free=asm._free,_memmove=Module._memmove=asm._memmove,__GLOBAL__I_a=Module.__GLOBAL__I_a=asm.__GLOBAL__I_a,_malloc=Module._malloc=asm._malloc,runPostSets=Module.runPostSets=asm.runPostSets,dynCall_iiiii=Module.dynCall_iiiii=asm.dynCall_iiiii,dynCall_viiii=Module.dynCall_viiii=asm.dynCall_viiii,dynCall_viiiii=Module.dynCall_viiiii=asm.dynCall_viiiii,dynCall_vi=Module.dynCall_vi=asm.dynCall_vi,dynCall_vii=Module.dynCall_vii=asm.dynCall_vii,dynCall_iiiiii=Module.dynCall_iiiiii=asm.dynCall_iiiiii,dynCall_viiiiiid=Module.dynCall_viiiiiid=asm.dynCall_viiiiiid,dynCall_ii=Module.dynCall_ii=asm.dynCall_ii,dynCall_iiii=Module.dynCall_iiii=asm.dynCall_iiii,dynCall_viiiiiii=Module.dynCall_viiiiiii=asm.dynCall_viiiiiii,dynCall_viiiiid=Module.dynCall_viiiiid=asm.dynCall_viiiiid,dynCall_v=Module.dynCall_v=asm.dynCall_v,dynCall_iiiiiiiii=Module.dynCall_iiiiiiiii=asm.dynCall_iiiiiiiii,dynCall_viiiiiiiii=Module.dynCall_viiiiiiiii=asm.dynCall_viiiiiiiii,dynCall_viiiiii=Module.dynCall_viiiiii=asm.dynCall_viiiiii,dynCall_iii=Module.dynCall_iii=asm.dynCall_iii,dynCall_viiiiiiii=Module.dynCall_viiiiiiii=asm.dynCall_viiiiiiii,dynCall_viii=Module.dynCall_viii=asm.dynCall_viii;
Runtime.stackAlloc=function(e){return asm.stackAlloc(e)},Runtime.stackSave=function(){return asm.stackSave()},Runtime.stackRestore=function(e){asm.stackRestore(e)};var i64Math=function(){function e(e,r,i){null!=e&&("number"==typeof e?this.fromNumber(e,r,i):null==r&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,r))}function r(){return new e(null)}function i(e,r,i,f,a,t){for(;--t>=0;){var n=r*this[e++]+i[f]+a;a=Math.floor(n/67108864),i[f++]=67108863&n}return a}function f(e,r,i,f,a,t){for(var n=32767&r,o=r>>15;--t>=0;){var u=32767&this[e],l=this[e++]>>15,s=o*u+l*n;u=n*u+((32767&s)<<15)+i[f]+(1073741823&a),a=(u>>>30)+(s>>>15)+o*l+(a>>>30),i[f++]=1073741823&u}return a}function a(e,r,i,f,a,t){for(var n=16383&r,o=r>>14;--t>=0;){var u=16383&this[e],l=this[e++]>>14,s=o*u+l*n;u=n*u+((16383&s)<<14)+i[f]+a,a=(u>>28)+(s>>14)+o*l,i[f++]=268435455&u}return a}function t(e){return tr.charAt(e)}function n(e,r){var i=nr[e.charCodeAt(r)];return null==i?-1:i}function o(e){for(var r=this.t-1;r>=0;--r)e[r]=this[r];e.t=this.t,e.s=this.s}function u(e){this.t=1,this.s=0>e?-1:0,e>0?this[0]=e:-1>e?this[0]=e+DV:this.t=0}function l(e){var i=r();return i.fromInt(e),i}function s(r,i){var f;if(16==i)f=4;else if(8==i)f=3;else if(256==i)f=8;else if(2==i)f=1;else if(32==i)f=5;else{if(4!=i)return void this.fromRadix(r,i);f=2}this.t=0,this.s=0;for(var a=r.length,t=!1,o=0;--a>=0;){var u=8==f?255&r[a]:n(r,a);0>u?"-"==r.charAt(a)&&(t=!0):(t=!1,0==o?this[this.t++]=u:o+f>this.DB?(this[this.t-1]|=(u&(1<<this.DB-o)-1)<<o,this[this.t++]=u>>this.DB-o):this[this.t-1]|=u<<o,o+=f,o>=this.DB&&(o-=this.DB))}8==f&&0!=(128&r[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),t&&e.ZERO.subTo(this,this)}function b(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t}function k(e){if(this.s<0)return"-"+this.negate().toString(e);var r;if(16==e)r=4;else if(8==e)r=3;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return this.toRadix(e);r=2}var i,f=(1<<r)-1,a=!1,n="",o=this.t,u=this.DB-o*this.DB%r;if(o-->0)for(u<this.DB&&(i=this[o]>>u)>0&&(a=!0,n=t(i));o>=0;)r>u?(i=(this[o]&(1<<u)-1)<<r-u,i|=this[--o]>>(u+=this.DB-r)):(i=this[o]>>(u-=r)&f,0>=u&&(u+=this.DB,--o)),i>0&&(a=!0),a&&(n+=t(i));return a?n:"0"}function c(){var i=r();return e.ZERO.subTo(this,i),i}function d(){return this.s<0?this.negate():this}function h(e){var r=this.s-e.s;if(0!=r)return r;var i=this.t;if(r=i-e.t,0!=r)return this.s<0?-r:r;for(;--i>=0;)if(0!=(r=this[i]-e[i]))return r;return 0}function _(e){var r,i=1;return 0!=(r=e>>>16)&&(e=r,i+=16),0!=(r=e>>8)&&(e=r,i+=8),0!=(r=e>>4)&&(e=r,i+=4),0!=(r=e>>2)&&(e=r,i+=2),0!=(r=e>>1)&&(e=r,i+=1),i}function w(){return this.t<=0?0:this.DB*(this.t-1)+_(this[this.t-1]^this.s&this.DM)}function v(e,r){var i;for(i=this.t-1;i>=0;--i)r[i+e]=this[i];for(i=e-1;i>=0;--i)r[i]=0;r.t=this.t+e,r.s=this.s}function m(e,r){for(var i=e;i<this.t;++i)r[i-e]=this[i];r.t=Math.max(this.t-e,0),r.s=this.s}function p(e,r){var i,f=e%this.DB,a=this.DB-f,t=(1<<a)-1,n=Math.floor(e/this.DB),o=this.s<<f&this.DM;for(i=this.t-1;i>=0;--i)r[i+n+1]=this[i]>>a|o,o=(this[i]&t)<<f;for(i=n-1;i>=0;--i)r[i]=0;r[n]=o,r.t=this.t+n+1,r.s=this.s,r.clamp()}function E(e,r){r.s=this.s;var i=Math.floor(e/this.DB);if(i>=this.t)return void(r.t=0);var f=e%this.DB,a=this.DB-f,t=(1<<f)-1;r[0]=this[i]>>f;for(var n=i+1;n<this.t;++n)r[n-i-1]|=(this[n]&t)<<a,r[n-i]=this[n]>>f;f>0&&(r[this.t-i-1]|=(this.s&t)<<a),r.t=this.t-i,r.clamp()}function S(e,r){for(var i=0,f=0,a=Math.min(e.t,this.t);a>i;)f+=this[i]-e[i],r[i++]=f&this.DM,f>>=this.DB;if(e.t<this.t){for(f-=e.s;i<this.t;)f+=this[i],r[i++]=f&this.DM,f>>=this.DB;f+=this.s}else{for(f+=this.s;i<e.t;)f-=e[i],r[i++]=f&this.DM,f>>=this.DB;f-=e.s}r.s=0>f?-1:0,-1>f?r[i++]=this.DV+f:f>0&&(r[i++]=f),r.t=i,r.clamp()}function g(r,i){var f=this.abs(),a=r.abs(),t=f.t;for(i.t=t+a.t;--t>=0;)i[t]=0;for(t=0;t<a.t;++t)i[t+f.t]=f.am(0,a[t],i,t,0,f.t);i.s=0,i.clamp(),this.s!=r.s&&e.ZERO.subTo(i,i)}function y(e){for(var r=this.abs(),i=e.t=2*r.t;--i>=0;)e[i]=0;for(i=0;i<r.t-1;++i){var f=r.am(i,r[i],e,2*i,0,1);(e[i+r.t]+=r.am(i+1,2*r[i],e,2*i+1,f,r.t-i-1))>=r.DV&&(e[i+r.t]-=r.DV,e[i+r.t+1]=1)}e.t>0&&(e[e.t-1]+=r.am(i,r[i],e,2*i,0,1)),e.s=0,e.clamp()}function A(i,f,a){var t=i.abs();if(!(t.t<=0)){var n=this.abs();if(n.t<t.t)return null!=f&&f.fromInt(0),void(null!=a&&this.copyTo(a));null==a&&(a=r());var o=r(),u=this.s,l=i.s,s=this.DB-_(t[t.t-1]);s>0?(t.lShiftTo(s,o),n.lShiftTo(s,a)):(t.copyTo(o),n.copyTo(a));var b=o.t,k=o[b-1];if(0!=k){var c=k*(1<<this.F1)+(b>1?o[b-2]>>this.F2:0),d=this.FV/c,h=(1<<this.F1)/c,w=1<<this.F2,v=a.t,m=v-b,p=null==f?r():f;for(o.dlShiftTo(m,p),a.compareTo(p)>=0&&(a[a.t++]=1,a.subTo(p,a)),e.ONE.dlShiftTo(b,p),p.subTo(o,o);o.t<b;)o[o.t++]=0;for(;--m>=0;){var E=a[--v]==k?this.DM:Math.floor(a[v]*d+(a[v-1]+w)*h);if((a[v]+=o.am(0,E,a,m,0,b))<E)for(o.dlShiftTo(m,p),a.subTo(p,a);a[v]<--E;)a.subTo(p,a)}null!=f&&(a.drShiftTo(b,f),u!=l&&e.ZERO.subTo(f,f)),a.t=b,a.clamp(),s>0&&a.rShiftTo(s,a),0>u&&e.ZERO.subTo(a,a)}}}function O(i){var f=r();return this.abs().divRemTo(i,null,f),this.s<0&&f.compareTo(e.ZERO)>0&&i.subTo(f,f),f}function R(e){this.m=e}function F(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function M(e){return e}function N(e){e.divRemTo(this.m,null,e)}function D(e,r,i){e.multiplyTo(r,i),this.reduce(i)}function C(e,r){e.squareTo(r),this.reduce(r)}function T(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var r=3&e;return r=r*(2-(15&e)*r)&15,r=r*(2-(255&e)*r)&255,r=r*(2-((65535&e)*r&65535))&65535,r=r*(2-e*r%this.DV)%this.DV,r>0?this.DV-r:-r}function P(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function L(i){var f=r();return i.abs().dlShiftTo(this.m.t,f),f.divRemTo(this.m,null,f),i.s<0&&f.compareTo(e.ZERO)>0&&this.m.subTo(f,f),f}function I(e){var i=r();return e.copyTo(i),this.reduce(i),i}function x(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var r=0;r<this.m.t;++r){var i=32767&e[r],f=i*this.mpl+((i*this.mph+(e[r]>>15)*this.mpl&this.um)<<15)&e.DM;for(i=r+this.m.t,e[i]+=this.m.am(0,f,e,r,0,this.m.t);e[i]>=e.DV;)e[i]-=e.DV,e[++i]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function B(e,r){e.squareTo(r),this.reduce(r)}function H(e,r,i){e.multiplyTo(r,i),this.reduce(i)}function U(){return 0==(this.t>0?1&this[0]:this.s)}function z(i,f){if(i>4294967295||1>i)return e.ONE;var a=r(),t=r(),n=f.convert(this),o=_(i)-1;for(n.copyTo(a);--o>=0;)if(f.sqrTo(a,t),(i&1<<o)>0)f.mulTo(t,n,a);else{var u=a;a=t,t=u}return f.revert(a)}function Y(e,r){var i;return i=256>e||r.isEven()?new R(r):new P(r),this.exp(e,i)}function V(r,i){this.fromInt(0),null==i&&(i=10);for(var f=this.chunkSize(i),a=Math.pow(i,f),t=!1,o=0,u=0,l=0;l<r.length;++l){var s=n(r,l);0>s?"-"==r.charAt(l)&&0==this.signum()&&(t=!0):(u=i*u+s,++o>=f&&(this.dMultiply(a),this.dAddOffset(u,0),o=0,u=0))}o>0&&(this.dMultiply(Math.pow(i,o)),this.dAddOffset(u,0)),t&&e.ZERO.subTo(this,this)}function Z(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function j(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function q(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function W(e,r){if(0!=e){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=e;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}}function K(e){if(null==e&&(e=10),0==this.signum()||2>e||e>36)return"0";var i=this.chunkSize(e),f=Math.pow(e,i),a=l(f),t=r(),n=r(),o="";for(this.divRemTo(a,t,n);t.signum()>0;)o=(f+n.intValue()).toString(e).substr(1)+o,t.divRemTo(a,t,n);return n.intValue().toString(e)+o}function X(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function G(e,r){for(var i=0,f=0,a=Math.min(e.t,this.t);a>i;)f+=this[i]+e[i],r[i++]=f&this.DM,f>>=this.DB;if(e.t<this.t){for(f+=e.s;i<this.t;)f+=this[i],r[i++]=f&this.DM,f>>=this.DB;f+=this.s}else{for(f+=this.s;i<e.t;)f+=e[i],r[i++]=f&this.DM,f>>=this.DB;f+=e.s}r.s=0>f?-1:0,f>0?r[i++]=f:-1>f&&(r[i++]=this.DV+f),r.t=i,r.clamp()}var Q={math:{}};Q.math.Long=function(e,r){this.low_=0|e,this.high_=0|r},Q.math.Long.IntCache_={},Q.math.Long.fromInt=function(e){if(e>=-128&&128>e){var r=Q.math.Long.IntCache_[e];if(r)return r}var i=new Q.math.Long(0|e,0>e?-1:0);return e>=-128&&128>e&&(Q.math.Long.IntCache_[e]=i),i},Q.math.Long.fromNumber=function(e){return isNaN(e)||!isFinite(e)?Q.math.Long.ZERO:e<=-Q.math.Long.TWO_PWR_63_DBL_?Q.math.Long.MIN_VALUE:e+1>=Q.math.Long.TWO_PWR_63_DBL_?Q.math.Long.MAX_VALUE:0>e?Q.math.Long.fromNumber(-e).negate():new Q.math.Long(e%Q.math.Long.TWO_PWR_32_DBL_|0,e/Q.math.Long.TWO_PWR_32_DBL_|0)},Q.math.Long.fromBits=function(e,r){return new Q.math.Long(e,r)},Q.math.Long.fromString=function(e,r){if(0==e.length)throw Error("number format error: empty string");var i=r||10;if(2>i||i>36)throw Error("radix out of range: "+i);if("-"==e.charAt(0))return Q.math.Long.fromString(e.substring(1),i).negate();if(e.indexOf("-")>=0)throw Error('number format error: interior "-" character: '+e);for(var f=Q.math.Long.fromNumber(Math.pow(i,8)),a=Q.math.Long.ZERO,t=0;t<e.length;t+=8){var n=Math.min(8,e.length-t),o=parseInt(e.substring(t,t+n),i);if(8>n){var u=Q.math.Long.fromNumber(Math.pow(i,n));a=a.multiply(u).add(Q.math.Long.fromNumber(o))}else a=a.multiply(f),a=a.add(Q.math.Long.fromNumber(o))}return a},Q.math.Long.TWO_PWR_16_DBL_=65536,Q.math.Long.TWO_PWR_24_DBL_=1<<24,Q.math.Long.TWO_PWR_32_DBL_=Q.math.Long.TWO_PWR_16_DBL_*Q.math.Long.TWO_PWR_16_DBL_,Q.math.Long.TWO_PWR_31_DBL_=Q.math.Long.TWO_PWR_32_DBL_/2,Q.math.Long.TWO_PWR_48_DBL_=Q.math.Long.TWO_PWR_32_DBL_*Q.math.Long.TWO_PWR_16_DBL_,Q.math.Long.TWO_PWR_64_DBL_=Q.math.Long.TWO_PWR_32_DBL_*Q.math.Long.TWO_PWR_32_DBL_,Q.math.Long.TWO_PWR_63_DBL_=Q.math.Long.TWO_PWR_64_DBL_/2,Q.math.Long.ZERO=Q.math.Long.fromInt(0),Q.math.Long.ONE=Q.math.Long.fromInt(1),Q.math.Long.NEG_ONE=Q.math.Long.fromInt(-1),Q.math.Long.MAX_VALUE=Q.math.Long.fromBits(-1,2147483647),Q.math.Long.MIN_VALUE=Q.math.Long.fromBits(0,-2147483648),Q.math.Long.TWO_PWR_24_=Q.math.Long.fromInt(1<<24),Q.math.Long.prototype.toInt=function(){return this.low_},Q.math.Long.prototype.toNumber=function(){return this.high_*Q.math.Long.TWO_PWR_32_DBL_+this.getLowBitsUnsigned()},Q.math.Long.prototype.toString=function(e){var r=e||10;if(2>r||r>36)throw Error("radix out of range: "+r);if(this.isZero())return"0";if(this.isNegative()){if(this.equals(Q.math.Long.MIN_VALUE)){var i=Q.math.Long.fromNumber(r),f=this.div(i),a=f.multiply(i).subtract(this);return f.toString(r)+a.toInt().toString(r)}return"-"+this.negate().toString(r)}for(var t=Q.math.Long.fromNumber(Math.pow(r,6)),a=this,n="";;){var o=a.div(t),u=a.subtract(o.multiply(t)).toInt(),l=u.toString(r);if(a=o,a.isZero())return l+n;for(;l.length<6;)l="0"+l;n=""+l+n}},Q.math.Long.prototype.getHighBits=function(){return this.high_},Q.math.Long.prototype.getLowBits=function(){return this.low_},Q.math.Long.prototype.getLowBitsUnsigned=function(){return this.low_>=0?this.low_:Q.math.Long.TWO_PWR_32_DBL_+this.low_},Q.math.Long.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(Q.math.Long.MIN_VALUE)?64:this.negate().getNumBitsAbs();for(var e=0!=this.high_?this.high_:this.low_,r=31;r>0&&0==(e&1<<r);r--);return 0!=this.high_?r+33:r+1},Q.math.Long.prototype.isZero=function(){return 0==this.high_&&0==this.low_},Q.math.Long.prototype.isNegative=function(){return this.high_<0},Q.math.Long.prototype.isOdd=function(){return 1==(1&this.low_)},Q.math.Long.prototype.equals=function(e){return this.high_==e.high_&&this.low_==e.low_},Q.math.Long.prototype.notEquals=function(e){return this.high_!=e.high_||this.low_!=e.low_},Q.math.Long.prototype.lessThan=function(e){return this.compare(e)<0},Q.math.Long.prototype.lessThanOrEqual=function(e){return this.compare(e)<=0},Q.math.Long.prototype.greaterThan=function(e){return this.compare(e)>0},Q.math.Long.prototype.greaterThanOrEqual=function(e){return this.compare(e)>=0},Q.math.Long.prototype.compare=function(e){if(this.equals(e))return 0;var r=this.isNegative(),i=e.isNegative();return r&&!i?-1:!r&&i?1:this.subtract(e).isNegative()?-1:1},Q.math.Long.prototype.negate=function(){return this.equals(Q.math.Long.MIN_VALUE)?Q.math.Long.MIN_VALUE:this.not().add(Q.math.Long.ONE)},Q.math.Long.prototype.add=function(e){var r=this.high_>>>16,i=65535&this.high_,f=this.low_>>>16,a=65535&this.low_,t=e.high_>>>16,n=65535&e.high_,o=e.low_>>>16,u=65535&e.low_,l=0,s=0,b=0,k=0;return k+=a+u,b+=k>>>16,k&=65535,b+=f+o,s+=b>>>16,b&=65535,s+=i+n,l+=s>>>16,s&=65535,l+=r+t,l&=65535,Q.math.Long.fromBits(b<<16|k,l<<16|s)},Q.math.Long.prototype.subtract=function(e){return this.add(e.negate())},Q.math.Long.prototype.multiply=function(e){if(this.isZero())return Q.math.Long.ZERO;if(e.isZero())return Q.math.Long.ZERO;if(this.equals(Q.math.Long.MIN_VALUE))return e.isOdd()?Q.math.Long.MIN_VALUE:Q.math.Long.ZERO;if(e.equals(Q.math.Long.MIN_VALUE))return this.isOdd()?Q.math.Long.MIN_VALUE:Q.math.Long.ZERO;if(this.isNegative())return e.isNegative()?this.negate().multiply(e.negate()):this.negate().multiply(e).negate();if(e.isNegative())return this.multiply(e.negate()).negate();if(this.lessThan(Q.math.Long.TWO_PWR_24_)&&e.lessThan(Q.math.Long.TWO_PWR_24_))return Q.math.Long.fromNumber(this.toNumber()*e.toNumber());var r=this.high_>>>16,i=65535&this.high_,f=this.low_>>>16,a=65535&this.low_,t=e.high_>>>16,n=65535&e.high_,o=e.low_>>>16,u=65535&e.low_,l=0,s=0,b=0,k=0;return k+=a*u,b+=k>>>16,k&=65535,b+=f*u,s+=b>>>16,b&=65535,b+=a*o,s+=b>>>16,b&=65535,s+=i*u,l+=s>>>16,s&=65535,s+=f*o,l+=s>>>16,s&=65535,s+=a*n,l+=s>>>16,s&=65535,l+=r*u+i*o+f*n+a*t,l&=65535,Q.math.Long.fromBits(b<<16|k,l<<16|s)},Q.math.Long.prototype.div=function(e){if(e.isZero())throw Error("division by zero");if(this.isZero())return Q.math.Long.ZERO;if(this.equals(Q.math.Long.MIN_VALUE)){if(e.equals(Q.math.Long.ONE)||e.equals(Q.math.Long.NEG_ONE))return Q.math.Long.MIN_VALUE;if(e.equals(Q.math.Long.MIN_VALUE))return Q.math.Long.ONE;var r=this.shiftRight(1),i=r.div(e).shiftLeft(1);if(i.equals(Q.math.Long.ZERO))return e.isNegative()?Q.math.Long.ONE:Q.math.Long.NEG_ONE;var f=this.subtract(e.multiply(i)),a=i.add(f.div(e));return a}if(e.equals(Q.math.Long.MIN_VALUE))return Q.math.Long.ZERO;if(this.isNegative())return e.isNegative()?this.negate().div(e.negate()):this.negate().div(e).negate();if(e.isNegative())return this.div(e.negate()).negate();for(var t=Q.math.Long.ZERO,f=this;f.greaterThanOrEqual(e);){for(var i=Math.max(1,Math.floor(f.toNumber()/e.toNumber())),n=Math.ceil(Math.log(i)/Math.LN2),o=48>=n?1:Math.pow(2,n-48),u=Q.math.Long.fromNumber(i),l=u.multiply(e);l.isNegative()||l.greaterThan(f);)i-=o,u=Q.math.Long.fromNumber(i),l=u.multiply(e);u.isZero()&&(u=Q.math.Long.ONE),t=t.add(u),f=f.subtract(l)}return t},Q.math.Long.prototype.modulo=function(e){return this.subtract(this.div(e).multiply(e))},Q.math.Long.prototype.not=function(){return Q.math.Long.fromBits(~this.low_,~this.high_)},Q.math.Long.prototype.and=function(e){return Q.math.Long.fromBits(this.low_&e.low_,this.high_&e.high_)},Q.math.Long.prototype.or=function(e){return Q.math.Long.fromBits(this.low_|e.low_,this.high_|e.high_)},Q.math.Long.prototype.xor=function(e){return Q.math.Long.fromBits(this.low_^e.low_,this.high_^e.high_)},Q.math.Long.prototype.shiftLeft=function(e){if(e&=63,0==e)return this;var r=this.low_;if(32>e){var i=this.high_;return Q.math.Long.fromBits(r<<e,i<<e|r>>>32-e)}return Q.math.Long.fromBits(0,r<<e-32)},Q.math.Long.prototype.shiftRight=function(e){if(e&=63,0==e)return this;var r=this.high_;if(32>e){var i=this.low_;return Q.math.Long.fromBits(i>>>e|r<<32-e,r>>e)}return Q.math.Long.fromBits(r>>e-32,r>=0?0:-1)},Q.math.Long.prototype.shiftRightUnsigned=function(e){if(e&=63,0==e)return this;var r=this.high_;if(32>e){var i=this.low_;return Q.math.Long.fromBits(i>>>e|r<<32-e,r>>>e)}return 32==e?Q.math.Long.fromBits(r,0):Q.math.Long.fromBits(r>>>e-32,0)};var J,$={appName:"Modern Browser"},er=0xdeadbeefcafe,rr=15715070==(16777215&er);rr&&"Microsoft Internet Explorer"==$.appName?(e.prototype.am=f,J=30):rr&&"Netscape"!=$.appName?(e.prototype.am=i,J=26):(e.prototype.am=a,J=28),e.prototype.DB=J,e.prototype.DM=(1<<J)-1,e.prototype.DV=1<<J;var ir=52;e.prototype.FV=Math.pow(2,ir),e.prototype.F1=ir-J,e.prototype.F2=2*J-ir;var fr,ar,tr="0123456789abcdefghijklmnopqrstuvwxyz",nr=new Array;for(fr="0".charCodeAt(0),ar=0;9>=ar;++ar)nr[fr++]=ar;for(fr="a".charCodeAt(0),ar=10;36>ar;++ar)nr[fr++]=ar;for(fr="A".charCodeAt(0),ar=10;36>ar;++ar)nr[fr++]=ar;R.prototype.convert=F,R.prototype.revert=M,R.prototype.reduce=N,R.prototype.mulTo=D,R.prototype.sqrTo=C,P.prototype.convert=L,P.prototype.revert=I,P.prototype.reduce=x,P.prototype.mulTo=H,P.prototype.sqrTo=B,e.prototype.copyTo=o,e.prototype.fromInt=u,e.prototype.fromString=s,e.prototype.clamp=b,e.prototype.dlShiftTo=v,e.prototype.drShiftTo=m,e.prototype.lShiftTo=p,e.prototype.rShiftTo=E,e.prototype.subTo=S,e.prototype.multiplyTo=g,e.prototype.squareTo=y,e.prototype.divRemTo=A,e.prototype.invDigit=T,e.prototype.isEven=U,e.prototype.exp=z,e.prototype.toString=k,e.prototype.negate=c,e.prototype.abs=d,e.prototype.compareTo=h,e.prototype.bitLength=w,e.prototype.mod=O,e.prototype.modPowInt=Y,e.ZERO=l(0),e.ONE=l(1),e.prototype.fromRadix=V,e.prototype.chunkSize=Z,e.prototype.signum=j,e.prototype.dMultiply=q,e.prototype.dAddOffset=W,e.prototype.toRadix=K,e.prototype.intValue=X,e.prototype.addTo=G;var or={abs:function(e,r){var i,f=new Q.math.Long(e,r);i=f.isNegative()?f.negate():f,HEAP32[tempDoublePtr>>2]=i.low_,HEAP32[tempDoublePtr+4>>2]=i.high_},ensureTemps:function(){or.ensuredTemps||(or.ensuredTemps=!0,or.two32=new e,or.two32.fromString("4294967296",10),or.two64=new e,or.two64.fromString("18446744073709551616",10),or.temp1=new e,or.temp2=new e)},lh2bignum:function(r,i){var f=new e;f.fromString(i.toString(),10);var a=new e;f.multiplyTo(or.two32,a);var t=new e;t.fromString(r.toString(),10);var n=new e;return t.addTo(a,n),n},stringify:function(r,i,f){var a=new Q.math.Long(r,i).toString();if(f&&"-"==a[0]){or.ensureTemps();var t=new e;t.fromString(a,10),a=new e,or.two64.addTo(t,a),a=a.toString(10)}return a},fromString:function(r,i,f,a,t){or.ensureTemps();var n=new e;n.fromString(r,i);var o=new e;o.fromString(f,10);var u=new e;if(u.fromString(a,10),t&&n.compareTo(e.ZERO)<0){var l=new e;n.addTo(or.two64,l),n=l}var s=!1;n.compareTo(o)<0?(n=o,s=!0):n.compareTo(u)>0&&(n=u,s=!0);var b=Q.math.Long.fromString(n.toString());if(HEAP32[tempDoublePtr>>2]=b.low_,HEAP32[tempDoublePtr+4>>2]=b.high_,s)throw"range error"}};return or}();memoryInitializer&&(ENVIRONMENT_IS_NODE||ENVIRONMENT_IS_SHELL?applyData(Module.readBinary(memoryInitializer)):(addRunDependency("memory initializer"),Browser.asyncLoad(memoryInitializer,function(e){applyData(e),removeRunDependency("memory initializer")},function(){throw"could not load memory initializer "+memoryInitializer}))),ExitStatus.prototype=new Error,ExitStatus.prototype.constructor=ExitStatus;var initialStackTop,preloadStartTime=null,calledMain=!1;if(dependenciesFulfilled=function e(){!Module.calledRun&&shouldRunNow&&run(),Module.calledRun||(dependenciesFulfilled=e)},Module.callMain=Module.callMain=function(e){function r(){for(var e=0;3>e;e++)f.push(0)}assert(0==runDependencies,"cannot call main when async dependencies remain! (listen on __ATMAIN__)"),assert(0==__ATPRERUN__.length,"cannot call main when preRun functions remain to be called"),e=e||[],ENVIRONMENT_IS_WEB&&null!==preloadStartTime&&Module.printErr("preload time: "+(Date.now()-preloadStartTime)+" ms"),ensureInitRuntime();var i=e.length+1,f=[allocate(intArrayFromString("/bin/this.program"),"i8",ALLOC_NORMAL)];r();for(var a=0;i-1>a;a+=1)f.push(allocate(intArrayFromString(e[a]),"i8",ALLOC_NORMAL)),r();f.push(0),f=allocate(f,"i32",ALLOC_NORMAL),initialStackTop=STACKTOP;try{var t=Module._main(i,f,0);Module.noExitRuntime||exit(t)}catch(n){if(n instanceof ExitStatus)return;if("SimulateInfiniteLoop"==n)return void(Module.noExitRuntime=!0);throw n&&"object"==typeof n&&n.stack&&Module.printErr("exception thrown: "+[n,n.stack]),n}finally{calledMain=!0}},Module.run=Module.run=run,Module.exit=Module.exit=exit,Module.abort=Module.abort=abort,Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();var OCRAD=function(e,r,i){if(e.getContext&&(e=e.getContext("2d")),e.getImageData&&(e=e.getImageData(0,0,e.canvas.width,e.canvas.height)),e.data){for(var f=e.width,a=e.height,t="P5\n"+f+" "+a+"\n255\n",n=new Uint8Array(t.length+f*a),o=e.data,u=0|o.length,l=u-16|0,s=t.length,b=0;s>b;b++)n[b]=t.charCodeAt(b);for(var k=4899,c=9617,d=1868,b=0;l>=b;b+=16,s+=4)n[s]=o[b]*k+o[b+1]*c+o[b+2]*d+8192>>14,n[s+1]=o[b+4]*k+o[b+5]*c+o[b+6]*d+8192>>14,n[s+2]=o[b+8]*k+o[b+9]*c+o[b+10]*d+8192>>14,n[s+3]=o[b+12]*k+o[b+13]*c+o[b+14]*d+8192>>14;for(;u>b;b+=4,++s)n[s]=o[b]*k+o[b+1]*c+o[b+2]*d+8192>>14;e=n}e instanceof ArrayBuffer&&(e=new Uint8Array(e)),OCRAD.write_file("/in.pnm",e);var h=OCRAD.open();OCRAD.set_image_from_file(h,"in.pnm",r?1:0),i&&(OCRAD.set_exportfile(h,"-"),Module.print=i),OCRAD.set_utf8_format(h,1),OCRAD.recognize(h,0);for(var _="",w=OCRAD.result_blocks(h),b=0;w>b;b++)for(var v=OCRAD.result_lines(h,b),s=0;v>s;s++){var m=OCRAD.result_line(h,b,s);_+=m}return OCRAD.close(h),_};return OCRAD.write_file=function(e,r){FS.writeFile(e,r,{encoding:"binary"})},OCRAD.version=Module.cwrap("OCRAD_version","string"),OCRAD.open=Module.cwrap("OCRAD_open","number"),OCRAD.close=Module.cwrap("OCRAD_close","number",["number"]),OCRAD.get_errno=Module.cwrap("OCRAD_get_errno","number",["number"]),OCRAD.set_image=Module.cwrap("OCRAD_set_image","number",["number","number","number"]),OCRAD.set_image_from_file=Module.cwrap("OCRAD_set_image_from_file","number",["number","string","number"]),OCRAD.set_exportfile=Module.cwrap("OCRAD_set_exportfile","number",["number","string"]),OCRAD.set_utf8_format=Module.cwrap("OCRAD_set_utf8_format","number",["number","number"]),OCRAD.set_threshold=Module.cwrap("OCRAD_set_threshold","number",["number","number"]),OCRAD.scale=Module.cwrap("OCRAD_scale","number",["number","number"]),OCRAD.recognize=Module.cwrap("OCRAD_recognize","number",["number","number"]),OCRAD.result_blocks=Module.cwrap("OCRAD_result_blocks","number",["number"]),OCRAD.result_lines=Module.cwrap("OCRAD_result_lines","number",["number","number"]),OCRAD.result_chars_total=Module.cwrap("OCRAD_result_chars_total","number",["number"]),OCRAD.result_chars_block=Module.cwrap("OCRAD_result_chars_block","number",["number","number"]),OCRAD.result_chars_line=Module.cwrap("OCRAD_result_chars_line","number",["number","number","number"]),OCRAD.result_line=Module.cwrap("OCRAD_result_line","string",["number","number","number"]),OCRAD.result_first_character=Module.cwrap("OCRAD_result_first_character","number",["number"]),OCRAD}();"undefined"!=typeof module&&module.exports&&(module.exports=OCRAD);