forked from tbfleming/web-cam-cpp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
web-cam-cpp.js
20 lines (13 loc) · 601 KB
/
web-cam-cpp.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);if(!ret&&filename!=nodePath["resolve"](filename)){filename=path.join(__dirname,"..","src",filename);ret=nodeFS["readFileSync"](filename)}if(ret&&!binary)ret=ret.toString();return ret};Module["readBinary"]=function readBinary(filename){var ret=Module["read"](filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};Module["load"]=function load(f){globalEval(read(f))};if(!Module["thisProgram"]){if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}}Module["arguments"]=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));Module["inspect"]=(function(){return"[Emscripten Module object]"})}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function read(){throw"no read() available (jsc?)"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function printErr(x){console.log(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){eval.call(null,x)}if(!Module["load"]&&Module["read"]){Module["load"]=function load(f){globalEval(Module["read"](f))}}if(!Module["print"]){Module["print"]=(function(){})}if(!Module["printErr"]){Module["printErr"]=Module["print"]}if(!Module["arguments"]){Module["arguments"]=[]}if(!Module["thisProgram"]){Module["thisProgram"]="./this.program"}Module.print=Module["print"];Module.printErr=Module["printErr"];Module["preRun"]=[];Module["postRun"]=[];for(var key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}var Runtime={setTempRet0:(function(value){tempRet0=value}),getTempRet0:(function(){return tempRet0}),stackSave:(function(){return STACKTOP}),stackRestore:(function(stackTop){STACKTOP=stackTop}),getNativeTypeSize:(function(type){switch(type){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(type[type.length-1]==="*"){return Runtime.QUANTUM_SIZE}else if(type[0]==="i"){var bits=parseInt(type.substr(1));assert(bits%8===0);return bits/8}else{return 0}}}}),getNativeFieldSize:(function(type){return Math.max(Runtime.getNativeTypeSize(type),Runtime.QUANTUM_SIZE)}),STACK_ALIGN:16,prepVararg:(function(ptr,type){if(type==="double"||type==="i64"){if(ptr&7){assert((ptr&7)===4);ptr+=4}}else{assert((ptr&3)===0)}return ptr}),getAlignSize:(function(type,size,vararg){if(!vararg&&(type=="i64"||type=="double"))return 8;if(!type)return Math.min(size,8);return Math.min(size||(type?Runtime.getNativeFieldSize(type):0),Runtime.QUANTUM_SIZE)}),dynCall:(function(sig,ptr,args){if(args&&args.length){if(!args.splice)args=Array.prototype.slice.call(args);args.splice(0,0,ptr);return Module["dynCall_"+sig].apply(null,args)}else{return Module["dynCall_"+sig].call(null,ptr)}}),functionPointers:[],addFunction:(function(func){for(var i=0;i<Runtime.functionPointers.length;i++){if(!Runtime.functionPointers[i]){Runtime.functionPointers[i]=func;return 2*(1+i)}}throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."}),removeFunction:(function(index){Runtime.functionPointers[(index-2)/2]=null}),warnOnce:(function(text){if(!Runtime.warnOnce.shown)Runtime.warnOnce.shown={};if(!Runtime.warnOnce.shown[text]){Runtime.warnOnce.shown[text]=1;Module.printErr(text)}}),funcWrappers:{},getFuncWrapper:(function(func,sig){assert(sig);if(!Runtime.funcWrappers[sig]){Runtime.funcWrappers[sig]={}}var sigCache=Runtime.funcWrappers[sig];if(!sigCache[func]){sigCache[func]=function dynCall_wrapper(){return Runtime.dynCall(sig,func,arguments)}}return sigCache[func]}),getCompilerSetting:(function(name){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"}),stackAlloc:(function(size){var ret=STACKTOP;STACKTOP=STACKTOP+size|0;STACKTOP=STACKTOP+15&-16;return ret}),staticAlloc:(function(size){var ret=STATICTOP;STATICTOP=STATICTOP+size|0;STATICTOP=STATICTOP+15&-16;return ret}),dynamicAlloc:(function(size){var ret=DYNAMICTOP;DYNAMICTOP=DYNAMICTOP+size|0;DYNAMICTOP=DYNAMICTOP+15&-16;if(DYNAMICTOP>=TOTAL_MEMORY){var success=enlargeMemory();if(!success){DYNAMICTOP=ret;return 0}}return ret}),alignMemory:(function(size,quantum){var ret=size=Math.ceil(size/(quantum?quantum:16))*(quantum?quantum:16);return ret}),makeBigInt:(function(low,high,unsigned){var ret=unsigned?+(low>>>0)+ +(high>>>0)*+4294967296:+(low>>>0)+ +(high|0)*+4294967296;return ret}),GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};Module["Runtime"]=Runtime;var __THREW__=0;var ABORT=false;var EXITSTATUS=0;var undef=0;var tempValue,tempInt,tempBigInt,tempInt2,tempBigInt2,tempPair,tempBigIntI,tempBigIntR,tempBigIntS,tempBigIntP,tempBigIntD,tempDouble,tempFloat;var tempI64,tempI64b;var tempRet0,tempRet1,tempRet2,tempRet3,tempRet4,tempRet5,tempRet6,tempRet7,tempRet8,tempRet9;function assert(condition,text){if(!condition){abort("Assertion failed: "+text)}}var globalScope=this;function getCFunc(ident){var func=Module["_"+ident];if(!func){try{func=eval("_"+ident)}catch(e){}}assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)");return func}var cwrap,ccall;((function(){var JSfuncs={"stackSave":(function(){Runtime.stackSave()}),"stackRestore":(function(){Runtime.stackRestore()}),"arrayToC":(function(arr){var ret=Runtime.stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}),"stringToC":(function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){ret=Runtime.stackAlloc((str.length<<2)+1);writeStringToMemory(str,ret)}return ret})};var toC={"string":JSfuncs["stringToC"],"array":JSfuncs["arrayToC"]};ccall=function ccallFunc(ident,returnType,argTypes,args,opts){var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=Runtime.stackSave();cArgs[i]=converter(args[i])}else{cArgs[i]=args[i]}}}var ret=func.apply(null,cArgs);if(returnType==="string")ret=Pointer_stringify(ret);if(stack!==0){if(opts&&opts.async){EmterpreterAsync.asyncFinalizers.push((function(){Runtime.stackRestore(stack)}));return}Runtime.stackRestore(stack)}return ret};var sourceRegex=/^function\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;function parseJSFunc(jsfunc){var parsed=jsfunc.toString().match(sourceRegex).slice(1);return{arguments:parsed[0],body:parsed[1],returnValue:parsed[2]}}var JSsource={};for(var fun in JSfuncs){if(JSfuncs.hasOwnProperty(fun)){JSsource[fun]=parseJSFunc(JSfuncs[fun])}}cwrap=function cwrap(ident,returnType,argTypes){argTypes=argTypes||[];var cfunc=getCFunc(ident);var numericArgs=argTypes.every((function(type){return type==="number"}));var numericRet=returnType!=="string";if(numericRet&&numericArgs){return cfunc}var argNames=argTypes.map((function(x,i){return"$"+i}));var funcstr="(function("+argNames.join(",")+") {";var nargs=argTypes.length;if(!numericArgs){funcstr+="var stack = "+JSsource["stackSave"].body+";";for(var i=0;i<nargs;i++){var arg=argNames[i],type=argTypes[i];if(type==="number")continue;var convertCode=JSsource[type+"ToC"];funcstr+="var "+convertCode.arguments+" = "+arg+";";funcstr+=convertCode.body+";";funcstr+=arg+"="+convertCode.returnValue+";"}}var cfuncname=parseJSFunc((function(){return cfunc})).returnValue;funcstr+="var ret = "+cfuncname+"("+argNames.join(",")+");";if(!numericRet){var strgfy=parseJSFunc((function(){return Pointer_stringify})).returnValue;funcstr+="ret = "+strgfy+"(ret);"}if(!numericArgs){funcstr+=JSsource["stackRestore"].body.replace("()","(stack)")+";"}funcstr+="return ret})";return eval(funcstr)}}))();Module["ccall"]=ccall;Module["cwrap"]=cwrap;function setValue(ptr,value,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":HEAP8[ptr>>0]=value;break;case"i8":HEAP8[ptr>>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=+1?tempDouble>+0?(Math_min(+Math_floor(tempDouble/+4294967296),+4294967295)|0)>>>0:~~+Math_ceil((tempDouble- +(~~tempDouble>>>0))/+4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}}Module["setValue"]=setValue;function getValue(ptr,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":return HEAP8[ptr>>0];case"i8":return HEAP8[ptr>>0];case"i16":return HEAP16[ptr>>1];case"i32":return HEAP32[ptr>>2];case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return HEAPF64[ptr>>3];default:abort("invalid type for setValue: "+type)}return null}Module["getValue"]=getValue;var ALLOC_NORMAL=0;var ALLOC_STACK=1;var ALLOC_STATIC=2;var ALLOC_DYNAMIC=3;var 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;function allocate(slab,types,allocator,ptr){var zeroinit,size;if(typeof slab==="number"){zeroinit=true;size=slab}else{zeroinit=false;size=slab.length}var singleType=typeof types==="string"?types:null;var ret;if(allocator==ALLOC_NONE){ret=ptr}else{ret=[_malloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][allocator===undefined?ALLOC_STATIC:allocator](Math.max(size,singleType?1:types.length))}if(zeroinit){var ptr=ret,stop;assert((ret&3)==0);stop=ret+(size&~3);for(;ptr<stop;ptr+=4){HEAP32[ptr>>2]=0}stop=ret+size;while(ptr<stop){HEAP8[ptr++>>0]=0}return ret}if(singleType==="i8"){if(slab.subarray||slab.slice){HEAPU8.set(slab,ret)}else{HEAPU8.set(new Uint8Array(slab),ret)}return ret}var i=0,type,typeSize,previousType;while(i<size){var curr=slab[i];if(typeof curr==="function"){curr=Runtime.getFunctionIndex(curr)}type=singleType||types[i];if(type===0){i++;continue}if(type=="i64")type="i32";setValue(ret+i,curr,type);if(previousType!==type){typeSize=Runtime.getNativeTypeSize(type);previousType=type}i+=typeSize}return ret}Module["allocate"]=allocate;function getMemory(size){if(!staticSealed)return Runtime.staticAlloc(size);if(typeof _sbrk!=="undefined"&&!_sbrk.called||!runtimeInitialized)return Runtime.dynamicAlloc(size);return _malloc(size)}Module["getMemory"]=getMemory;function Pointer_stringify(ptr,length){if(length===0||!ptr)return"";var hasUtf=0;var t;var i=0;while(1){t=HEAPU8[ptr+i>>0];hasUtf|=t;if(t==0&&!length)break;i++;if(length&&i==length)break}if(!length)length=i;var ret="";if(hasUtf<128){var MAX_CHUNK=1024;var curr;while(length>0){curr=String.fromCharCode.apply(String,HEAPU8.subarray(ptr,ptr+Math.min(length,MAX_CHUNK)));ret=ret?ret+curr:curr;ptr+=MAX_CHUNK;length-=MAX_CHUNK}return ret}return Module["UTF8ToString"](ptr)}Module["Pointer_stringify"]=Pointer_stringify;function AsciiToString(ptr){var str="";while(1){var ch=HEAP8[ptr++>>0];if(!ch)return str;str+=String.fromCharCode(ch)}}Module["AsciiToString"]=AsciiToString;function stringToAscii(str,outPtr){return writeAsciiToMemory(str,outPtr,false)}Module["stringToAscii"]=stringToAscii;function UTF8ArrayToString(u8Array,idx){var u0,u1,u2,u3,u4,u5;var str="";while(1){u0=u8Array[idx++];if(!u0)return str;if(!(u0&128)){str+=String.fromCharCode(u0);continue}u1=u8Array[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}u2=u8Array[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u3=u8Array[idx++]&63;if((u0&248)==240){u0=(u0&7)<<18|u1<<12|u2<<6|u3}else{u4=u8Array[idx++]&63;if((u0&252)==248){u0=(u0&3)<<24|u1<<18|u2<<12|u3<<6|u4}else{u5=u8Array[idx++]&63;u0=(u0&1)<<30|u1<<24|u2<<18|u3<<12|u4<<6|u5}}}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}}Module["UTF8ArrayToString"]=UTF8ArrayToString;function UTF8ToString(ptr){return UTF8ArrayToString(HEAPU8,ptr)}Module["UTF8ToString"]=UTF8ToString;function stringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6;outU8Array[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=2097151){if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=67108863){if(outIdx+4>=endIdx)break;outU8Array[outIdx++]=248|u>>24;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else{if(outIdx+5>=endIdx)break;outU8Array[outIdx++]=252|u>>30;outU8Array[outIdx++]=128|u>>24&63;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}}outU8Array[outIdx]=0;return outIdx-startIdx}Module["stringToUTF8Array"]=stringToUTF8Array;function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}Module["stringToUTF8"]=stringToUTF8;function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){++len}else if(u<=2047){len+=2}else if(u<=65535){len+=3}else if(u<=2097151){len+=4}else if(u<=67108863){len+=5}else{len+=6}}return len}Module["lengthBytesUTF8"]=lengthBytesUTF8;function UTF16ToString(ptr){var i=0;var str="";while(1){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)return str;++i;str+=String.fromCharCode(codeUnit)}}Module["UTF16ToString"]=UTF16ToString;function stringToUTF16(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647}if(maxBytesToWrite<2)return 0;maxBytesToWrite-=2;var startPtr=outPtr;var numCharsToWrite=maxBytesToWrite<str.length*2?maxBytesToWrite/2:str.length;for(var i=0;i<numCharsToWrite;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr>>1]=codeUnit;outPtr+=2}HEAP16[outPtr>>1]=0;return outPtr-startPtr}Module["stringToUTF16"]=stringToUTF16;function lengthBytesUTF16(str){return str.length*2}Module["lengthBytesUTF16"]=lengthBytesUTF16;function UTF32ToString(ptr){var i=0;var str="";while(1){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)return str;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}else{str+=String.fromCharCode(utf32)}}}Module["UTF32ToString"]=UTF32ToString;function stringToUTF32(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647}if(maxBytesToWrite<4)return 0;var startPtr=outPtr;var endPtr=startPtr+maxBytesToWrite-4;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++i);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023}HEAP32[outPtr>>2]=codeUnit;outPtr+=4;if(outPtr+4>endPtr)break}HEAP32[outPtr>>2]=0;return outPtr-startPtr}Module["stringToUTF32"]=stringToUTF32;function lengthBytesUTF32(str){var len=0;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343)++i;len+=4}return len}Module["lengthBytesUTF32"]=lengthBytesUTF32;function demangle(func){var hasLibcxxabi=!!Module["___cxa_demangle"];if(hasLibcxxabi){try{var buf=_malloc(func.length);writeStringToMemory(func.substr(1),buf);var status=_malloc(4);var ret=Module["___cxa_demangle"](buf,0,0,status);if(getValue(status,"i32")===0&&ret){return Pointer_stringify(ret)}}catch(e){}finally{if(buf)_free(buf);if(status)_free(status);if(ret)_free(ret)}}var i=3;var basicTypes={"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":"..."};var subs=[];var first=true;function dump(x){if(x)Module.print(x);Module.print(func);var pre="";for(var a=0;a<i;a++)pre+=" ";Module.print(pre+"^")}function parseNested(){i++;if(func[i]==="K")i++;var parts=[];while(func[i]!=="E"){if(func[i]==="S"){i++;var next=func.indexOf("_",i);var num=func.substring(i,next)||0;parts.push(subs[num]||"?");i=next+1;continue}if(func[i]==="C"){parts.push(parts[parts.length-1]);i+=2;continue}var size=parseInt(func.substr(i));var pre=size.toString().length;if(!size||!pre){i--;break}var curr=func.substr(i+pre,size);parts.push(curr);subs.push(curr);i+=pre+size}i++;return parts}function parse(rawList,limit,allowVoid){limit=limit||Infinity;var ret="",list=[];function flushList(){return"("+list.join(", ")+")"}var name;if(func[i]==="N"){name=parseNested().join("::");limit--;if(limit===0)return rawList?[name]:name}else{if(func[i]==="K"||first&&func[i]==="L")i++;var size=parseInt(func.substr(i));if(size){var pre=size.toString().length;name=func.substr(i+pre,size);i+=pre+size}}first=false;if(func[i]==="I"){i++;var iList=parse(true);var iRet=parse(true,1,true);ret+=iRet[0]+" "+name+"<"+iList.join(", ")+">"}else{ret=name}paramLoop:while(i<func.length&&limit-->0){var c=func[i++];if(c in basicTypes){list.push(basicTypes[c])}else{switch(c){case"P":list.push(parse(true,1,true)[0]+"*");break;case"R":list.push(parse(true,1,true)[0]+"&");break;case"L":{i++;var end=func.indexOf("E",i);var size=end-i;list.push(func.substr(i,size));i+=size+2;break};case"A":{var size=parseInt(func.substr(i));i+=size.toString().length;if(func[i]!=="_")throw"?";i++;list.push(parse(true,1,true)[0]+" ["+size+"]");break};case"E":break paramLoop;default:ret+="?"+c;break paramLoop}}}if(!allowVoid&&list.length===1&&list[0]==="void")list=[];if(rawList){if(ret){list.push(ret+"?")}return list}else{return ret+flushList()}}var parsed=func;try{if(func=="Object._main"||func=="_main"){return"main()"}if(typeof func==="number")func=Pointer_stringify(func);if(func[0]!=="_")return func;if(func[1]!=="_")return func;if(func[2]!=="Z")return func;switch(func[3]){case"n":return"operator new()";case"d":return"operator delete()"}parsed=parse()}catch(e){parsed+="?"}if(parsed.indexOf("?")>=0&&!hasLibcxxabi){Runtime.warnOnce("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling")}return parsed}function demangleAll(text){return text.replace(/__Z[\w\d_]+/g,(function(x){var y=demangle(x);return x===y?x:x+" ["+y+"]"}))}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error(0)}catch(e){err=e}if(!err.stack){return"(no stack trace available)"}}return err.stack.toString()}function stackTrace(){return demangleAll(jsStackTrace())}Module["stackTrace"]=stackTrace;var PAGE_SIZE=4096;function alignMemoryPage(x){if(x%4096>0){x+=4096-x%4096}return x}var HEAP;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;var STATIC_BASE=0,STATICTOP=0,staticSealed=false;var STACK_BASE=0,STACKTOP=0,STACK_MAX=0;var DYNAMIC_BASE=0,DYNAMICTOP=0;function enlargeMemory(){var OLD_TOTAL_MEMORY=TOTAL_MEMORY;var LIMIT=Math.pow(2,31);if(DYNAMICTOP>=LIMIT)return false;while(TOTAL_MEMORY<=DYNAMICTOP){if(TOTAL_MEMORY<LIMIT/2){TOTAL_MEMORY=alignMemoryPage(2*TOTAL_MEMORY)}else{var last=TOTAL_MEMORY;TOTAL_MEMORY=alignMemoryPage((3*TOTAL_MEMORY+LIMIT)/4);if(TOTAL_MEMORY<=last)return false}}TOTAL_MEMORY=Math.max(TOTAL_MEMORY,16*1024*1024);if(TOTAL_MEMORY>=LIMIT)return false;try{if(ArrayBuffer.transfer){buffer=ArrayBuffer.transfer(buffer,TOTAL_MEMORY)}else{var oldHEAP8=HEAP8;buffer=new ArrayBuffer(TOTAL_MEMORY)}}catch(e){return false}var success=_emscripten_replace_memory(buffer);if(!success)return false;Module["buffer"]=buffer;Module["HEAP8"]=HEAP8=new Int8Array(buffer);Module["HEAP16"]=HEAP16=new Int16Array(buffer);Module["HEAP32"]=HEAP32=new Int32Array(buffer);Module["HEAPU8"]=HEAPU8=new Uint8Array(buffer);Module["HEAPU16"]=HEAPU16=new Uint16Array(buffer);Module["HEAPU32"]=HEAPU32=new Uint32Array(buffer);Module["HEAPF32"]=HEAPF32=new Float32Array(buffer);Module["HEAPF64"]=HEAPF64=new Float64Array(buffer);if(!ArrayBuffer.transfer){HEAP8.set(oldHEAP8)}return true}var byteLength;try{byteLength=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get);byteLength(new ArrayBuffer(4))}catch(e){byteLength=(function(buffer){return buffer.byteLength})}var TOTAL_STACK=Module["TOTAL_STACK"]||5242880;var TOTAL_MEMORY=Module["TOTAL_MEMORY"]||16777216;var totalMemory=64*1024;while(totalMemory<TOTAL_MEMORY||totalMemory<2*TOTAL_STACK){if(totalMemory<16*1024*1024){totalMemory*=2}else{totalMemory+=16*1024*1024}}totalMemory=Math.max(totalMemory,16*1024*1024);if(totalMemory!==TOTAL_MEMORY){TOTAL_MEMORY=totalMemory}assert(typeof Int32Array!=="undefined"&&typeof Float64Array!=="undefined"&&!!(new Int32Array(1))["subarray"]&&!!(new Int32Array(1))["set"],"JS engine does not provide full typed array support");var buffer;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(HEAPU8[0]===255&&HEAPU8[3]===0,"Typed arrays 2 must be run on a little-endian system");Module["HEAP"]=HEAP;Module["buffer"]=buffer;Module["HEAP8"]=HEAP8;Module["HEAP16"]=HEAP16;Module["HEAP32"]=HEAP32;Module["HEAPU8"]=HEAPU8;Module["HEAPU16"]=HEAPU16;Module["HEAPU32"]=HEAPU32;Module["HEAPF32"]=HEAPF32;Module["HEAPF64"]=HEAPF64;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback();continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){Runtime.dynCall("v",func)}else{Runtime.dynCall("vi",func,[callback.arg])}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATEXIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){if(runtimeInitialized)return;runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){callRuntimeCallbacks(__ATEXIT__);runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}Module["addOnPreRun"]=addOnPreRun;function addOnInit(cb){__ATINIT__.unshift(cb)}Module["addOnInit"]=addOnInit;function addOnPreMain(cb){__ATMAIN__.unshift(cb)}Module["addOnPreMain"]=addOnPreMain;function addOnExit(cb){__ATEXIT__.unshift(cb)}Module["addOnExit"]=addOnExit;function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}Module["addOnPostRun"]=addOnPostRun;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}Module["intArrayFromString"]=intArrayFromString;function intArrayToString(array){var ret=[];for(var i=0;i<array.length;i++){var chr=array[i];if(chr>255){chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}Module["intArrayToString"]=intArrayToString;function writeStringToMemory(string,buffer,dontAddNull){var array=intArrayFromString(string,dontAddNull);var i=0;while(i<array.length){var chr=array[i];HEAP8[buffer+i>>0]=chr;i=i+1}}Module["writeStringToMemory"]=writeStringToMemory;function writeArrayToMemory(array,buffer){for(var i=0;i<array.length;i++){HEAP8[buffer++>>0]=array[i]}}Module["writeArrayToMemory"]=writeArrayToMemory;function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i<str.length;++i){HEAP8[buffer++>>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}Module["writeAsciiToMemory"]=writeAsciiToMemory;function unSign(value,bits,ignore){if(value>=0){return value}return bits<=32?2*Math.abs(1<<bits-1)+value:Math.pow(2,bits)+value}function reSign(value,bits,ignore){if(value<=0){return value}var half=bits<=32?Math.abs(1<<bits-1):Math.pow(2,bits-1);if(value>=half&&(bits<=32||value>half)){value=-2*half+value}return value}if(!Math["imul"]||Math["imul"](4294967295,5)!==-5)Math["imul"]=function imul(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};Math.imul=Math["imul"];if(!Math["clz32"])Math["clz32"]=(function(x){x=x>>>0;for(var i=0;i<32;i++){if(x&1<<31-i)return i}return 32});Math.clz32=Math["clz32"];var Math_abs=Math.abs;var Math_cos=Math.cos;var Math_sin=Math.sin;var Math_tan=Math.tan;var Math_acos=Math.acos;var Math_asin=Math.asin;var Math_atan=Math.atan;var Math_atan2=Math.atan2;var Math_exp=Math.exp;var Math_log=Math.log;var Math_sqrt=Math.sqrt;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_pow=Math.pow;var Math_imul=Math.imul;var Math_fround=Math.fround;var Math_min=Math.min;var Math_clz32=Math.clz32;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}Module["addRunDependency"]=addRunDependency;function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["removeRunDependency"]=removeRunDependency;Module["preloadedImages"]={};Module["preloadedAudios"]={};var memoryInitializer=null;var ASM_CONSTS=[];STATIC_BASE=8;STATICTOP=STATIC_BASE+4928;__ATINIT__.push();allocate([192,0,0,0,103,4,0,0,24,0,0,0,0,0,0,0,152,0,0,0,116,4,0,0,152,0,0,0,129,4,0,0,192,0,0,0,142,4,0,0,32,0,0,0,0,0,0,0,192,0,0,0,175,4,0,0,40,0,0,0,0,0,0,0,192,0,0,0,245,4,0,0,40,0,0,0,0,0,0,0,192,0,0,0,209,4,0,0,72,0,0,0,0,0,0,0,192,0,0,0,23,5,0,0,56,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,56,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,104,0,0,0,3,0,0,0,7,0,0,0,5,0,0,0,6,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,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,5,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,3,0,0,0,46,13,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,97,58,32,37,100,45,62,37,100,10,0,109,98,58,32,37,100,45,62,37,100,10,0,109,32,100,111,110,101,0,97,32,99,117,116,116,101,114,65,110,103,108,101,61,37,102,32,112,97,115,115,68,101,112,116,104,61,37,102,32,109,97,120,68,101,112,116,104,61,37,102,10,0,105,0,106,58,32,101,100,103,101,73,110,100,101,120,101,115,58,32,37,100,10,0,107,0,110,117,109,80,114,111,99,101,115,115,101,100,58,32,37,100,47,37,100,10,0,100,105,118,101,0,114,101,116,114,97,99,116,0,122,32,45,32,100,111,110,101,0,98,0,99,0,100,0,101,0,102,58,32,37,100,32,118,111,114,111,110,111,105,32,101,100,103,101,115,10,0,103,49,58,32,37,100,32,102,105,108,116,101,114,69,100,103,101,115,10,0,103,50,58,32,37,100,32,102,105,108,116,101,114,69,100,103,101,115,10,0,103,51,58,32,37,100,32,102,105,108,116,101,114,69,100,103,101,115,10,0,103,52,0,103,53,58,32,37,100,32,101,100,103,101,115,10,0,83,116,57,98,97,100,95,97,108,108,111,99,0,83,116,57,101,120,99,101,112,116,105,111,110,0,83,116,57,116,121,112,101,95,105,110,102,111,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,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,78,49,48,95,95,99,120,120,97,98,105,118,49,49,57,95,95,112,111,105,110,116,101,114,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,112,98,97,115,101,95,116,121,112,101,95,105,110,102,111,69,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,33,34,118,101,99,116,111,114,32,108,101,110,103,116,104,95,101,114,114,111,114,34,0,67,58,92,80,114,111,103,114,97,109,32,70,105,108,101,115,92,69,109,115,99,114,105,112,116,101,110,92,101,109,115,99,114,105,112,116,101,110,92,49,46,51,53,46,48,92,115,121,115,116,101,109,92,105,110,99,108,117,100,101,92,108,105,98,99,120,120,92,118,101,99,116,111,114,0,95,95,116,104,114,111,119,95,108,101,110,103,116,104,95,101,114,114,111,114,0,115,116,100,58,58,98,97,100,95,97,108,108,111,99,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,110,97,110,0,78,65,78,0,46,0],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE);var tempDoublePtr=Runtime.alignMemory(allocate(12,"i8",ALLOC_STATIC),8);assert(tempDoublePtr%8==0);function copyTempFloat(ptr){HEAP8[tempDoublePtr]=HEAP8[ptr];HEAP8[tempDoublePtr+1]=HEAP8[ptr+1];HEAP8[tempDoublePtr+2]=HEAP8[ptr+2];HEAP8[tempDoublePtr+3]=HEAP8[ptr+3]}function copyTempDouble(ptr){HEAP8[tempDoublePtr]=HEAP8[ptr];HEAP8[tempDoublePtr+1]=HEAP8[ptr+1];HEAP8[tempDoublePtr+2]=HEAP8[ptr+2];HEAP8[tempDoublePtr+3]=HEAP8[ptr+3];HEAP8[tempDoublePtr+4]=HEAP8[ptr+4];HEAP8[tempDoublePtr+5]=HEAP8[ptr+5];HEAP8[tempDoublePtr+6]=HEAP8[ptr+6];HEAP8[tempDoublePtr+7]=HEAP8[ptr+7]}var _BDtoIHigh=true;Module["_i64Subtract"]=_i64Subtract;function ___setErrNo(value){if(Module["___errno_location"])HEAP32[Module["___errno_location"]()>>2]=value;return value}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};function _sysconf(name){switch(name){case 30:return PAGE_SIZE;case 85:return totalMemory/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 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 79:return 0;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:{if(typeof navigator==="object")return navigator["hardwareConcurrency"]||1;return 1}}___setErrNo(ERRNO_CODES.EINVAL);return-1}var _SItoD=true;function _pthread_cleanup_push(routine,arg){__ATEXIT__.push((function(){Runtime.dynCall("vi",routine,[arg])}));_pthread_cleanup_push.level=__ATEXIT__.length}function __ZSt18uncaught_exceptionv(){return!!__ZSt18uncaught_exceptionv.uncaught_exception}var EXCEPTIONS={last:0,caught:[],infos:{},deAdjust:(function(adjusted){if(!adjusted||EXCEPTIONS.infos[adjusted])return adjusted;for(var ptr in EXCEPTIONS.infos){var info=EXCEPTIONS.infos[ptr];if(info.adjusted===adjusted){return ptr}}return adjusted}),addRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];info.refcount++}),decRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];assert(info.refcount>0);info.refcount--;if(info.refcount===0){if(info.destructor){Runtime.dynCall("vi",info.destructor,[ptr])}delete EXCEPTIONS.infos[ptr];___cxa_free_exception(ptr)}}),clearRef:(function(ptr){if(!ptr)return;var info=EXCEPTIONS.infos[ptr];info.refcount=0})};function ___resumeException(ptr){if(!EXCEPTIONS.last){EXCEPTIONS.last=ptr}EXCEPTIONS.clearRef(EXCEPTIONS.deAdjust(ptr));throw ptr+" - 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(){var thrown=EXCEPTIONS.last;if(!thrown){return(asm["setTempRet0"](0),0)|0}var info=EXCEPTIONS.infos[thrown];var throwntype=info.type;if(!throwntype){return(asm["setTempRet0"](0),thrown)|0}var typeArray=Array.prototype.slice.call(arguments);var pointer=Module["___cxa_is_pointer_type"](throwntype);if(!___cxa_find_matching_catch.buffer)___cxa_find_matching_catch.buffer=_malloc(4);HEAP32[___cxa_find_matching_catch.buffer>>2]=thrown;thrown=___cxa_find_matching_catch.buffer;for(var i=0;i<typeArray.length;i++){if(typeArray[i]&&Module["___cxa_can_catch"](typeArray[i],throwntype,thrown)){thrown=HEAP32[thrown>>2];info.adjusted=thrown;return(asm["setTempRet0"](typeArray[i]),thrown)|0}}thrown=HEAP32[thrown>>2];return(asm["setTempRet0"](throwntype),thrown)|0}function ___cxa_throw(ptr,type,destructor){EXCEPTIONS.infos[ptr]={ptr:ptr,adjusted:ptr,type:type,destructor:destructor,refcount:0};EXCEPTIONS.last=ptr;if(!("uncaught_exception"in __ZSt18uncaught_exceptionv)){__ZSt18uncaught_exceptionv.uncaught_exception=1}else{__ZSt18uncaught_exceptionv.uncaught_exception++}throw ptr+" - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch."}Module["_memset"]=_memset;var _BDtoILow=true;Module["_bitshift64Lshr"]=_bitshift64Lshr;Module["_bitshift64Shl"]=_bitshift64Shl;function _pthread_cleanup_pop(){assert(_pthread_cleanup_push.level==__ATEXIT__.length,"cannot pop if something else added meanwhile!");__ATEXIT__.pop();_pthread_cleanup_push.level=__ATEXIT__.length}function _abort(){Module["abort"]()}function ___assert_fail(condition,filename,line,func){ABORT=true;throw"Assertion failed: "+Pointer_stringify(condition)+", at: "+[filename?Pointer_stringify(filename):"unknown filename",line,func?Pointer_stringify(func):"unknown function"]+" at "+stackTrace()}var _tan=Math_tan;function _emscripten_memcpy_big(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest);return dest}Module["_memcpy"]=_memcpy;var SYSCALLS={varargs:0,get:(function(varargs){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret}),getStr:(function(){var ret=Pointer_stringify(SYSCALLS.get());return ret}),get64:(function(){var low=SYSCALLS.get(),high=SYSCALLS.get();if(low>=0)assert(high===0);else assert(high===-1);return low}),getZero:(function(){assert(SYSCALLS.get()===0)})};function ___syscall6(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD();FS.close(stream);return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["_i64Add"]=_i64Add;function _sbrk(bytes){var self=_sbrk;if(!self.called){DYNAMICTOP=alignMemoryPage(DYNAMICTOP);self.called=true;assert(Runtime.dynamicAlloc);self.alloc=Runtime.dynamicAlloc;Runtime.dynamicAlloc=(function(){abort("cannot dynamically allocate, sbrk now has control")})}var ret=DYNAMICTOP;if(bytes!=0){var success=self.alloc(bytes);if(!success)return-1>>>0}return ret}Module["_memmove"]=_memmove;function ___syscall146(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.get(),iov=SYSCALLS.get(),iovcnt=SYSCALLS.get();var ret=0;if(!___syscall146.buffer)___syscall146.buffer=[];var buffer=___syscall146.buffer;for(var i=0;i<iovcnt;i++){var ptr=HEAP32[iov+i*8>>2];var len=HEAP32[iov+(i*8+4)>>2];for(var j=0;j<len;j++){var curr=HEAPU8[ptr+j];if(curr===0||curr===10){Module["print"](UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}}ret+=len}return ret}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}var _BItoD=true;var _sqrt=Math_sqrt;function ___syscall140(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),offset_high=SYSCALLS.get(),offset_low=SYSCALLS.get(),result=SYSCALLS.get(),whence=SYSCALLS.get();var offset=offset_low;assert(offset_high===0);FS.llseek(stream,offset,whence);HEAP32[result>>2]=stream.position;if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}var PATH=undefined;function _emscripten_set_main_loop_timing(mode,value){Browser.mainLoop.timingMode=mode;Browser.mainLoop.timingValue=value;if(!Browser.mainLoop.func){return 1}if(mode==0){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler_setTimeout(){setTimeout(Browser.mainLoop.runner,value)};Browser.mainLoop.method="timeout"}else if(mode==1){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler_rAF(){Browser.requestAnimationFrame(Browser.mainLoop.runner)};Browser.mainLoop.method="rAF"}else if(mode==2){if(!window["setImmediate"]){var setImmediates=[];var emscriptenMainLoopMessageId="__emcc";function Browser_setImmediate_messageHandler(event){if(event.source===window&&event.data===emscriptenMainLoopMessageId){event.stopPropagation();setImmediates.shift()()}}window.addEventListener("message",Browser_setImmediate_messageHandler,true);window["setImmediate"]=function Browser_emulated_setImmediate(func){setImmediates.push(func);window.postMessage(emscriptenMainLoopMessageId,"*")}}Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler_setImmediate(){window["setImmediate"](Browser.mainLoop.runner)};Browser.mainLoop.method="immediate"}return 0}function _emscripten_set_main_loop(func,fps,simulateInfiniteLoop,arg,noSetTiming){Module["noExitRuntime"]=true;assert(!Browser.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.");Browser.mainLoop.func=func;Browser.mainLoop.arg=arg;var thisMainLoopId=Browser.mainLoop.currentlyRunningMainloop;Browser.mainLoop.runner=function Browser_mainLoop_runner(){if(ABORT)return;if(Browser.mainLoop.queue.length>0){var start=Date.now();var blocker=Browser.mainLoop.queue.shift();blocker.func(blocker.arg);if(Browser.mainLoop.remainingBlockers){var remaining=Browser.mainLoop.remainingBlockers;var next=remaining%1==0?remaining-1:Math.floor(remaining);if(blocker.counted){Browser.mainLoop.remainingBlockers=next}else{next=next+.5;Browser.mainLoop.remainingBlockers=(8*remaining+next)/9}}console.log('main loop blocker "'+blocker.name+'" took '+(Date.now()-start)+" ms");Browser.mainLoop.updateStatus();setTimeout(Browser.mainLoop.runner,0);return}if(thisMainLoopId<Browser.mainLoop.currentlyRunningMainloop)return;Browser.mainLoop.currentFrameNumber=Browser.mainLoop.currentFrameNumber+1|0;if(Browser.mainLoop.timingMode==1&&Browser.mainLoop.timingValue>1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0){Browser.mainLoop.scheduler();return}if(Browser.mainLoop.method==="timeout"&&Module.ctx){Module.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!");Browser.mainLoop.method=""}Browser.mainLoop.runIter((function(){if(typeof arg!=="undefined"){Runtime.dynCall("vi",func,[arg])}else{Runtime.dynCall("v",func)}}));if(thisMainLoopId<Browser.mainLoop.currentlyRunningMainloop)return;if(typeof SDL==="object"&&SDL.audio&&SDL.audio.queueNewAudioData)SDL.audio.queueNewAudioData();Browser.mainLoop.scheduler()};if(!noSetTiming){if(fps&&fps>0)_emscripten_set_main_loop_timing(0,1e3/fps);else _emscripten_set_main_loop_timing(1,1);Browser.mainLoop.scheduler()}if(simulateInfiniteLoop){throw"SimulateInfiniteLoop"}}var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:(function(){Browser.mainLoop.scheduler=null;Browser.mainLoop.currentlyRunningMainloop++}),resume:(function(){Browser.mainLoop.currentlyRunningMainloop++;var timingMode=Browser.mainLoop.timingMode;var timingValue=Browser.mainLoop.timingValue;var func=Browser.mainLoop.func;Browser.mainLoop.func=null;_emscripten_set_main_loop(func,0,false,Browser.mainLoop.arg,true);_emscripten_set_main_loop_timing(timingMode,timingValue);Browser.mainLoop.scheduler()}),updateStatus:(function(){if(Module["setStatus"]){var message=Module["statusMessage"]||"Please wait...";var remaining=Browser.mainLoop.remainingBlockers;var expected=Browser.mainLoop.expectedBlockers;if(remaining){if(remaining<expected){Module["setStatus"](message+" ("+(expected-remaining)+"/"+expected+")")}else{Module["setStatus"](message)}}else{Module["setStatus"]("")}}}),runIter:(function(func){if(ABORT)return;if(Module["preMainLoop"]){var preRet=Module["preMainLoop"]();if(preRet===false){return}}try{func()}catch(e){if(e instanceof ExitStatus){return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}if(Module["postMainLoop"])Module["postMainLoop"]()})},isFullScreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:(function(){if(!Module["preloadPlugins"])Module["preloadPlugins"]=[];if(Browser.initted)return;Browser.initted=true;try{new Blob;Browser.hasBlobConstructor=true}catch(e){Browser.hasBlobConstructor=false;console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Browser.BlobBuilder=typeof MozBlobBuilder!="undefined"?MozBlobBuilder:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:!Browser.hasBlobConstructor?console.log("warning: no BlobBuilder"):null;Browser.URLObject=typeof window!="undefined"?window.URL?window.URL:window.webkitURL:undefined;if(!Module.noImageDecoding&&typeof Browser.URLObject==="undefined"){console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");Module.noImageDecoding=true}var imagePlugin={};imagePlugin["canHandle"]=function imagePlugin_canHandle(name){return!Module.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(name)};imagePlugin["handle"]=function imagePlugin_handle(byteArray,name,onload,onerror){var b=null;if(Browser.hasBlobConstructor){try{b=new Blob([byteArray],{type:Browser.getMimetype(name)});if(b.size!==byteArray.length){b=new Blob([(new Uint8Array(byteArray)).buffer],{type:Browser.getMimetype(name)})}}catch(e){Runtime.warnOnce("Blob constructor present but fails: "+e+"; falling back to blob builder")}}if(!b){var bb=new Browser.BlobBuilder;bb.append((new Uint8Array(byteArray)).buffer);b=bb.getBlob()}var url=Browser.URLObject.createObjectURL(b);var img=new Image;img.onload=function img_onload(){assert(img.complete,"Image "+name+" could not be decoded");var canvas=document.createElement("canvas");canvas.width=img.width;canvas.height=img.height;var ctx=canvas.getContext("2d");ctx.drawImage(img,0,0);Module["preloadedImages"][name]=canvas;Browser.URLObject.revokeObjectURL(url);if(onload)onload(byteArray)};img.onerror=function img_onerror(event){console.log("Image "+url+" could not be decoded");if(onerror)onerror()};img.src=url};Module["preloadPlugins"].push(imagePlugin);var audioPlugin={};audioPlugin["canHandle"]=function audioPlugin_canHandle(name){return!Module.noAudioDecoding&&name.substr(-4)in{".ogg":1,".wav":1,".mp3":1}};audioPlugin["handle"]=function audioPlugin_handle(byteArray,name,onload,onerror){var done=false;function finish(audio){if(done)return;done=true;Module["preloadedAudios"][name]=audio;if(onload)onload(byteArray)}function fail(){if(done)return;done=true;Module["preloadedAudios"][name]=new Audio;if(onerror)onerror()}if(Browser.hasBlobConstructor){try{var b=new Blob([byteArray],{type:Browser.getMimetype(name)})}catch(e){return fail()}var url=Browser.URLObject.createObjectURL(b);var audio=new Audio;audio.addEventListener("canplaythrough",(function(){finish(audio)}),false);audio.onerror=function audio_onerror(event){if(done)return;console.log("warning: browser could not fully decode audio "+name+", trying slower base64 approach");function encode64(data){var BASE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var PAD="=";var ret="";var leftchar=0;var leftbits=0;for(var i=0;i<data.length;i++){leftchar=leftchar<<8|data[i];leftbits+=8;while(leftbits>=6){var curr=leftchar>>leftbits-6&63;leftbits-=6;ret+=BASE[curr]}}if(leftbits==2){ret+=BASE[(leftchar&3)<<4];ret+=PAD+PAD}else if(leftbits==4){ret+=BASE[(leftchar&15)<<2];ret+=PAD}return ret}audio.src="data:audio/x-"+name.substr(-3)+";base64,"+encode64(byteArray);finish(audio)};audio.src=url;Browser.safeSetTimeout((function(){finish(audio)}),1e4)}else{return fail()}};Module["preloadPlugins"].push(audioPlugin);var canvas=Module["canvas"];function pointerLockChange(){Browser.pointerLock=document["pointerLockElement"]===canvas||document["mozPointerLockElement"]===canvas||document["webkitPointerLockElement"]===canvas||document["msPointerLockElement"]===canvas}if(canvas){canvas.requestPointerLock=canvas["requestPointerLock"]||canvas["mozRequestPointerLock"]||canvas["webkitRequestPointerLock"]||canvas["msRequestPointerLock"]||(function(){});canvas.exitPointerLock=document["exitPointerLock"]||document["mozExitPointerLock"]||document["webkitExitPointerLock"]||document["msExitPointerLock"]||(function(){});canvas.exitPointerLock=canvas.exitPointerLock.bind(document);document.addEventListener("pointerlockchange",pointerLockChange,false);document.addEventListener("mozpointerlockchange",pointerLockChange,false);document.addEventListener("webkitpointerlockchange",pointerLockChange,false);document.addEventListener("mspointerlockchange",pointerLockChange,false);if(Module["elementPointerLock"]){canvas.addEventListener("click",(function(ev){if(!Browser.pointerLock&&canvas.requestPointerLock){canvas.requestPointerLock();ev.preventDefault()}}),false)}}}),createContext:(function(canvas,useWebGL,setInModule,webGLContextAttributes){if(useWebGL&&Module.ctx&&canvas==Module.canvas)return Module.ctx;var ctx;var contextHandle;if(useWebGL){var contextAttributes={antialias:false,alpha:false};if(webGLContextAttributes){for(var attribute in webGLContextAttributes){contextAttributes[attribute]=webGLContextAttributes[attribute]}}contextHandle=GL.createContext(canvas,contextAttributes);if(contextHandle){ctx=GL.getContext(contextHandle).GLctx}canvas.style.backgroundColor="black"}else{ctx=canvas.getContext("2d")}if(!ctx)return null;if(setInModule){if(!useWebGL)assert(typeof GLctx==="undefined","cannot set in module if GLctx is used, but we are a non-GL context that would replace it");Module.ctx=ctx;if(useWebGL)GL.makeContextCurrent(contextHandle);Module.useWebGL=useWebGL;Browser.moduleContextCreatedCallbacks.forEach((function(callback){callback()}));Browser.init()}return ctx}),destroyContext:(function(canvas,useWebGL,setInModule){}),fullScreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullScreen:(function(lockPointer,resizeCanvas,vrDevice){Browser.lockPointer=lockPointer;Browser.resizeCanvas=resizeCanvas;Browser.vrDevice=vrDevice;if(typeof Browser.lockPointer==="undefined")Browser.lockPointer=true;if(typeof Browser.resizeCanvas==="undefined")Browser.resizeCanvas=false;if(typeof Browser.vrDevice==="undefined")Browser.vrDevice=null;var canvas=Module["canvas"];function fullScreenChange(){Browser.isFullScreen=false;var canvasContainer=canvas.parentNode;if((document["webkitFullScreenElement"]||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["mozFullscreenElement"]||document["fullScreenElement"]||document["fullscreenElement"]||document["msFullScreenElement"]||document["msFullscreenElement"]||document["webkitCurrentFullScreenElement"])===canvasContainer){canvas.cancelFullScreen=document["cancelFullScreen"]||document["mozCancelFullScreen"]||document["webkitCancelFullScreen"]||document["msExitFullscreen"]||document["exitFullscreen"]||(function(){});canvas.cancelFullScreen=canvas.cancelFullScreen.bind(document);if(Browser.lockPointer)canvas.requestPointerLock();Browser.isFullScreen=true;if(Browser.resizeCanvas)Browser.setFullScreenCanvasSize()}else{canvasContainer.parentNode.insertBefore(canvas,canvasContainer);canvasContainer.parentNode.removeChild(canvasContainer);if(Browser.resizeCanvas)Browser.setWindowedCanvasSize()}if(Module["onFullScreen"])Module["onFullScreen"](Browser.isFullScreen);Browser.updateCanvasDimensions(canvas)}if(!Browser.fullScreenHandlersInstalled){Browser.fullScreenHandlersInstalled=true;document.addEventListener("fullscreenchange",fullScreenChange,false);document.addEventListener("mozfullscreenchange",fullScreenChange,false);document.addEventListener("webkitfullscreenchange",fullScreenChange,false);document.addEventListener("MSFullscreenChange",fullScreenChange,false)}var canvasContainer=document.createElement("div");canvas.parentNode.insertBefore(canvasContainer,canvas);canvasContainer.appendChild(canvas);canvasContainer.requestFullScreen=canvasContainer["requestFullScreen"]||canvasContainer["mozRequestFullScreen"]||canvasContainer["msRequestFullscreen"]||(canvasContainer["webkitRequestFullScreen"]?(function(){canvasContainer["webkitRequestFullScreen"](Element["ALLOW_KEYBOARD_INPUT"])}):null);if(vrDevice){canvasContainer.requestFullScreen({vrDisplay:vrDevice})}else{canvasContainer.requestFullScreen()}}),nextRAF:0,fakeRequestAnimationFrame:(function(func){var now=Date.now();if(Browser.nextRAF===0){Browser.nextRAF=now+1e3/60}else{while(now+2>=Browser.nextRAF){Browser.nextRAF+=1e3/60}}var delay=Math.max(Browser.nextRAF-now,0);setTimeout(func,delay)}),requestAnimationFrame:function requestAnimationFrame(func){if(typeof window==="undefined"){Browser.fakeRequestAnimationFrame(func)}else{if(!window.requestAnimationFrame){window.requestAnimationFrame=window["requestAnimationFrame"]||window["mozRequestAnimationFrame"]||window["webkitRequestAnimationFrame"]||window["msRequestAnimationFrame"]||window["oRequestAnimationFrame"]||Browser.fakeRequestAnimationFrame}window.requestAnimationFrame(func)}},safeCallback:(function(func){return(function(){if(!ABORT)return func.apply(null,arguments)})}),allowAsyncCallbacks:true,queuedAsyncCallbacks:[],pauseAsyncCallbacks:(function(){Browser.allowAsyncCallbacks=false}),resumeAsyncCallbacks:(function(){Browser.allowAsyncCallbacks=true;if(Browser.queuedAsyncCallbacks.length>0){var callbacks=Browser.queuedAsyncCallbacks;Browser.queuedAsyncCallbacks=[];callbacks.forEach((function(func){func()}))}}),safeRequestAnimationFrame:(function(func){return Browser.requestAnimationFrame((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}else{Browser.queuedAsyncCallbacks.push(func)}}))}),safeSetTimeout:(function(func,timeout){Module["noExitRuntime"]=true;return setTimeout((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}else{Browser.queuedAsyncCallbacks.push(func)}}),timeout)}),safeSetInterval:(function(func,timeout){Module["noExitRuntime"]=true;return setInterval((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}}),timeout)}),getMimetype:(function(name){return{"jpg":"image/jpeg","jpeg":"image/jpeg","png":"image/png","bmp":"image/bmp","ogg":"audio/ogg","wav":"audio/wav","mp3":"audio/mpeg"}[name.substr(name.lastIndexOf(".")+1)]}),getUserMedia:(function(func){if(!window.getUserMedia){window.getUserMedia=navigator["getUserMedia"]||navigator["mozGetUserMedia"]}window.getUserMedia(func)}),getMovementX:(function(event){return event["movementX"]||event["mozMovementX"]||event["webkitMovementX"]||0}),getMovementY:(function(event){return event["movementY"]||event["mozMovementY"]||event["webkitMovementY"]||0}),getMouseWheelDelta:(function(event){var delta=0;switch(event.type){case"DOMMouseScroll":delta=event.detail;break;case"mousewheel":delta=event.wheelDelta;break;case"wheel":delta=event["deltaY"];break;default:throw"unrecognized mouse wheel event: "+event.type}return delta}),mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:(function(event){if(Browser.pointerLock){if(event.type!="mousemove"&&"mozMovementX"in event){Browser.mouseMovementX=Browser.mouseMovementY=0}else{Browser.mouseMovementX=Browser.getMovementX(event);Browser.mouseMovementY=Browser.getMovementY(event)}if(typeof SDL!="undefined"){Browser.mouseX=SDL.mouseX+Browser.mouseMovementX;Browser.mouseY=SDL.mouseY+Browser.mouseMovementY}else{Browser.mouseX+=Browser.mouseMovementX;Browser.mouseY+=Browser.mouseMovementY}}else{var rect=Module["canvas"].getBoundingClientRect();var cw=Module["canvas"].width;var ch=Module["canvas"].height;var scrollX=typeof window.scrollX!=="undefined"?window.scrollX:window.pageXOffset;var scrollY=typeof window.scrollY!=="undefined"?window.scrollY:window.pageYOffset;if(event.type==="touchstart"||event.type==="touchend"||event.type==="touchmove"){var touch=event.touch;if(touch===undefined){return}var adjustedX=touch.pageX-(scrollX+rect.left);var adjustedY=touch.pageY-(scrollY+rect.top);adjustedX=adjustedX*(cw/rect.width);adjustedY=adjustedY*(ch/rect.height);var coords={x:adjustedX,y:adjustedY};if(event.type==="touchstart"){Browser.lastTouches[touch.identifier]=coords;Browser.touches[touch.identifier]=coords}else if(event.type==="touchend"||event.type==="touchmove"){var last=Browser.touches[touch.identifier];if(!last)last=coords;Browser.lastTouches[touch.identifier]=last;Browser.touches[touch.identifier]=coords}return}var x=event.pageX-(scrollX+rect.left);var y=event.pageY-(scrollY+rect.top);x=x*(cw/rect.width);y=y*(ch/rect.height);Browser.mouseMovementX=x-Browser.mouseX;Browser.mouseMovementY=y-Browser.mouseY;Browser.mouseX=x;Browser.mouseY=y}}),xhrLoad:(function(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)}),asyncLoad:(function(url,onload,onerror,noRunDep){Browser.xhrLoad(url,(function(arrayBuffer){assert(arrayBuffer,'Loading data file "'+url+'" failed (no arrayBuffer).');onload(new Uint8Array(arrayBuffer));if(!noRunDep)removeRunDependency("al "+url)}),(function(event){if(onerror){onerror()}else{throw'Loading data file "'+url+'" failed.'}}));if(!noRunDep)addRunDependency("al "+url)}),resizeListeners:[],updateResizeListeners:(function(){var canvas=Module["canvas"];Browser.resizeListeners.forEach((function(listener){listener(canvas.width,canvas.height)}))}),setCanvasSize:(function(width,height,noUpdates){var canvas=Module["canvas"];Browser.updateCanvasDimensions(canvas,width,height);if(!noUpdates)Browser.updateResizeListeners()}),windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:(function(){if(typeof SDL!="undefined"){var flags=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];flags=flags|8388608;HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=flags}Browser.updateResizeListeners()}),setWindowedCanvasSize:(function(){if(typeof SDL!="undefined"){var flags=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];flags=flags&~8388608;HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=flags}Browser.updateResizeListeners()}),updateCanvasDimensions:(function(canvas,wNative,hNative){if(wNative&&hNative){canvas.widthNative=wNative;canvas.heightNative=hNative}else{wNative=canvas.widthNative;hNative=canvas.heightNative}var w=wNative;var h=hNative;if(Module["forcedAspectRatio"]&&Module["forcedAspectRatio"]>0){if(w/h<Module["forcedAspectRatio"]){w=Math.round(h*Module["forcedAspectRatio"])}else{h=Math.round(w/Module["forcedAspectRatio"])}}if((document["webkitFullScreenElement"]||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["mozFullscreenElement"]||document["fullScreenElement"]||document["fullscreenElement"]||document["msFullScreenElement"]||document["msFullscreenElement"]||document["webkitCurrentFullScreenElement"])===canvas.parentNode&&typeof screen!="undefined"){var factor=Math.min(screen.width/w,screen.height/h);w=Math.round(w*factor);h=Math.round(h*factor)}if(Browser.resizeCanvas){if(canvas.width!=w)canvas.width=w;if(canvas.height!=h)canvas.height=h;if(typeof canvas.style!="undefined"){canvas.style.removeProperty("width");canvas.style.removeProperty("height")}}else{if(canvas.width!=wNative)canvas.width=wNative;if(canvas.height!=hNative)canvas.height=hNative;if(typeof canvas.style!="undefined"){if(w!=wNative||h!=hNative){canvas.style.setProperty("width",w+"px","important");canvas.style.setProperty("height",h+"px","important")}else{canvas.style.removeProperty("width");canvas.style.removeProperty("height")}}}}),wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:(function(){var handle=Browser.nextWgetRequestHandle;Browser.nextWgetRequestHandle++;return handle})};function _time(ptr){var ret=Date.now()/1e3|0;if(ptr){HEAP32[ptr>>2]=ret}return ret}function _pthread_self(){return 0}var _UItoD=true;function _malloc(bytes){var ptr=Runtime.dynamicAlloc(bytes+8);return ptr+8&4294967288}Module["_malloc"]=_malloc;function ___cxa_allocate_exception(size){return _malloc(size)}function ___syscall54(which,varargs){SYSCALLS.varargs=varargs;try{return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["requestFullScreen"]=function Module_requestFullScreen(lockPointer,resizeCanvas,vrDevice){Browser.requestFullScreen(lockPointer,resizeCanvas,vrDevice)};Module["requestAnimationFrame"]=function Module_requestAnimationFrame(func){Browser.requestAnimationFrame(func)};Module["setCanvasSize"]=function Module_setCanvasSize(width,height,noUpdates){Browser.setCanvasSize(width,height,noUpdates)};Module["pauseMainLoop"]=function Module_pauseMainLoop(){Browser.mainLoop.pause()};Module["resumeMainLoop"]=function Module_resumeMainLoop(){Browser.mainLoop.resume()};Module["getUserMedia"]=function Module_getUserMedia(){Browser.getUserMedia()};Module["createContext"]=function Module_createContext(canvas,useWebGL,setInModule,webGLContextAttributes){return Browser.createContext(canvas,useWebGL,setInModule,webGLContextAttributes)};STACK_BASE=STACKTOP=Runtime.alignMemory(STATICTOP);staticSealed=true;STACK_MAX=STACK_BASE+TOTAL_STACK;DYNAMIC_BASE=DYNAMICTOP=Runtime.alignMemory(STACK_MAX);assert(DYNAMIC_BASE<TOTAL_MEMORY,"TOTAL_MEMORY not big enough for stack");var cttz_i8=allocate([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",ALLOC_DYNAMIC);function invoke_iiii(index,a1,a2,a3){try{return Module["dynCall_iiii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viiiii(index,a1,a2,a3,a4,a5){try{Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_vi(index,a1){try{Module["dynCall_vi"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_ii(index,a1){try{return Module["dynCall_ii"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_v(index){try{Module["dynCall_v"](index)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){try{Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iii(index,a1,a2){try{return Module["dynCall_iii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viiii(index,a1,a2,a3,a4){try{Module["dynCall_viiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}Module.asmGlobalArg={"Math":Math,"Int8Array":Int8Array,"Int16Array":Int16Array,"Int32Array":Int32Array,"Uint8Array":Uint8Array,"Uint16Array":Uint16Array,"Uint32Array":Uint32Array,"Float32Array":Float32Array,"Float64Array":Float64Array,"NaN":NaN,"Infinity":Infinity,"byteLength":byteLength};Module.asmLibraryArg={"abort":abort,"assert":assert,"invoke_iiii":invoke_iiii,"invoke_viiiii":invoke_viiiii,"invoke_vi":invoke_vi,"invoke_ii":invoke_ii,"invoke_v":invoke_v,"invoke_viiiiii":invoke_viiiiii,"invoke_iii":invoke_iii,"invoke_viiii":invoke_viiii,"_pthread_cleanup_pop":_pthread_cleanup_pop,"___syscall6":___syscall6,"___setErrNo":___setErrNo,"___assert_fail":___assert_fail,"___cxa_allocate_exception":___cxa_allocate_exception,"___cxa_find_matching_catch":___cxa_find_matching_catch,"_emscripten_set_main_loop_timing":_emscripten_set_main_loop_timing,"_sbrk":_sbrk,"_emscripten_memcpy_big":_emscripten_memcpy_big,"___resumeException":___resumeException,"__ZSt18uncaught_exceptionv":__ZSt18uncaught_exceptionv,"_sysconf":_sysconf,"_pthread_self":_pthread_self,"___syscall140":___syscall140,"___syscall54":___syscall54,"_emscripten_set_main_loop":_emscripten_set_main_loop,"_tan":_tan,"___cxa_throw":___cxa_throw,"_abort":_abort,"_pthread_cleanup_push":_pthread_cleanup_push,"_time":_time,"_sqrt":_sqrt,"___syscall146":___syscall146,"STACKTOP":STACKTOP,"STACK_MAX":STACK_MAX,"tempDoublePtr":tempDoublePtr,"ABORT":ABORT,"cttz_i8":cttz_i8};// EMSCRIPTEN_START_ASM
var asm=(function(global,env,buffer) {
"use asm";var a=global.Int8Array;var b=global.Int16Array;var c=global.Int32Array;var d=global.Uint8Array;var e=global.Uint16Array;var f=global.Uint32Array;var g=global.Float32Array;var h=global.Float64Array;var i=new a(buffer);var j=new b(buffer);var k=new c(buffer);var l=new d(buffer);var m=new e(buffer);var n=new f(buffer);var o=new g(buffer);var p=new h(buffer);var q=global.byteLength;var r=env.STACKTOP|0;var s=env.STACK_MAX|0;var t=env.tempDoublePtr|0;var u=env.ABORT|0;var v=env.cttz_i8|0;var w=0;var x=0;var y=0;var z=0;var A=global.NaN,B=global.Infinity;var C=0,D=0,E=0,F=0,G=0.0,H=0,I=0,J=0,K=0.0;var L=0;var M=0;var N=0;var O=0;var P=0;var Q=0;var R=0;var S=0;var T=0;var U=0;var V=global.Math.floor;var W=global.Math.abs;var X=global.Math.sqrt;var Y=global.Math.pow;var Z=global.Math.cos;var _=global.Math.sin;var $=global.Math.tan;var aa=global.Math.acos;var ba=global.Math.asin;var ca=global.Math.atan;var da=global.Math.atan2;var ea=global.Math.exp;var fa=global.Math.log;var ga=global.Math.ceil;var ha=global.Math.imul;var ia=global.Math.min;var ja=global.Math.clz32;var ka=env.abort;var la=env.assert;var ma=env.invoke_iiii;var na=env.invoke_viiiii;var oa=env.invoke_vi;var pa=env.invoke_ii;var qa=env.invoke_v;var ra=env.invoke_viiiiii;var sa=env.invoke_iii;var ta=env.invoke_viiii;var ua=env._pthread_cleanup_pop;var va=env.___syscall6;var wa=env.___setErrNo;var xa=env.___assert_fail;var ya=env.___cxa_allocate_exception;var za=env.___cxa_find_matching_catch;var Aa=env._emscripten_set_main_loop_timing;var Ba=env._sbrk;var Ca=env._emscripten_memcpy_big;var Da=env.___resumeException;var Ea=env.__ZSt18uncaught_exceptionv;var Fa=env._sysconf;var Ga=env._pthread_self;var Ha=env.___syscall140;var Ia=env.___syscall54;var Ja=env._emscripten_set_main_loop;var Ka=env._tan;var La=env.___cxa_throw;var Ma=env._abort;var Na=env._pthread_cleanup_push;var Oa=env._time;var Pa=env._sqrt;var Qa=env.___syscall146;var Ra=0.0;function Sa(newBuffer){if(q(newBuffer)&16777215||q(newBuffer)<=16777215||q(newBuffer)>2147483648)return false;i=new a(newBuffer);j=new b(newBuffer);k=new c(newBuffer);l=new d(newBuffer);m=new e(newBuffer);n=new f(newBuffer);o=new g(newBuffer);p=new h(newBuffer);buffer=newBuffer;return true}
// EMSCRIPTEN_START_FUNCS
function mc(a,b,c){a=a|0;b=b|0;c=+c;var d=0,e=0,f=0,g=0,h=0.0,l=0.0,m=0.0,n=0,o=0,q=0,s=0.0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0.0,N=0.0,O=0.0,P=0.0,Q=0,R=0.0,S=0,T=0,U=0,V=0,W=0,Y=0,Z=0,_=0,aa=0.0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,za=0,Aa=0;Aa=r;r=r+2992|0;oa=Aa+192|0;ua=Aa+184|0;ma=Aa+168|0;la=Aa+160|0;ea=Aa+136|0;ja=Aa+120|0;fa=Aa+64|0;_=Aa+32|0;Q=Aa;wa=Aa+2964|0;va=Aa+2920|0;ra=Aa+220|0;ha=Aa+2960|0;sa=Aa+2976|0;k[wa>>2]=0;za=wa+4|0;k[za>>2]=0;k[wa+8>>2]=0;d=k[b>>2]|0;ba=b+4|0;w=k[ba>>2]|0;if((d|0)!=(w|0)){x=wa+8|0;do{v=d+4|0;f=k[d>>2]|0;e=(k[v>>2]|0)-f>>3;if(e){q=0;do{u=q;q=q+1|0;o=f+(u<<3)|0;do if(q>>>0<e>>>0){e=f+(q<<3)|0;n=k[za>>2]|0;if(n>>>0<(k[x>>2]|0)>>>0){k[n>>2]=0;k[n+4>>2]=0;k[n+8>>2]=0;k[n+12>>2]=0;k[n>>2]=k[o>>2];k[n+4>>2]=k[f+(u<<3)+4>>2];k[n+8>>2]=k[e>>2];k[n+12>>2]=k[f+(q<<3)+4>>2];k[za>>2]=n+16;break}else{yc(wa,o,e);break}}else{e=k[za>>2]|0;if(e>>>0<(k[x>>2]|0)>>>0){k[e>>2]=0;k[e+4>>2]=0;k[e+8>>2]=0;k[e+12>>2]=0;k[e>>2]=k[o>>2];k[e+4>>2]=k[f+(u<<3)+4>>2];k[e+8>>2]=k[f>>2];k[e+12>>2]=k[f+4>>2];k[za>>2]=e+16;break}else{yc(wa,o,f);break}}while(0);f=k[d>>2]|0;e=(k[v>>2]|0)-f>>3}while(q>>>0<e>>>0)}d=d+12|0}while((d|0)!=(w|0))}n=(k[87]|0)>-1;a:do if(!1){d=1021;na=16}else{e=1021;d=1021;while(1){if(!(i[e>>0]|0))break a;e=e+1|0;d=e;if(!(d&3)){d=e;na=16;break}}}while(0);if((na|0)==16){while(1){e=k[d>>2]|0;if(!((e&-2139062144^-2139062144)&e+-16843009))d=d+4|0;else break}if((e&255)<<24>>24)do d=d+1|0;while((i[d>>0]|0)!=0)}f=d-1021|0;d=k[72]|0;e=(d|0)==0;b:do if(n){do if(e){d=i[346]|0;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;d=e+(k[80]|0)|0;k[72]=d;break}else{k[68]=d|32;d=0;na=38;break b}}else e=k[73]|0;while(0);if((d-e|0)>>>0<f>>>0){d=Ta[k[308>>2]&7](272,1021,f)|0;na=38;break}else{fe(e|0,1021,f|0)|0;k[73]=(k[73]|0)+f;na=40;break}}else{do if(e){d=i[346]|0;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;d=e+(k[80]|0)|0;k[72]=d;break}else{k[68]=d|32;d=0;na=38;break b}}else e=k[73]|0;while(0);if((d-e|0)>>>0<f>>>0){d=Ta[k[308>>2]&7](272,1021,f)|0;na=38;break}else{fe(e|0,1021,f|0)|0;k[73]=(k[73]|0)+f;na=40;break}}while(0);if((na|0)==38)if(!((d|0)!=(f|0)?((d>>>0)/(f>>>0)|0|0)<1:0))na=40;do if((na|0)==40){f=i[347]|0;if(f<<24>>24!=10){d=k[73]|0;e=k[72]|0;if(d>>>0<e>>>0){k[73]=d+1;i[d>>0]=10;break}}else e=k[72]|0;i[oa>>0]=10;do if(!e){f=j[173]|0;d=(f&65535)<<24>>24;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;n=k[79]|0;k[75]=n;k[73]=n;e=n+(k[80]|0)|0;k[72]=e;d=(f&65535)>>>8&255;na=49;break}else{k[68]=d|32;break}}else{n=k[73]|0;d=f;na=49}while(0);do if((na|0)==49)if(n>>>0>=e>>>0|d<<24>>24==10){Ta[k[308>>2]&7](272,oa,1)|0;break}else{k[73]=n+1;i[n>>0]=10;break}while(0)}while(0);o=va;q=o+36|0;do{k[o>>2]=0;o=o+4|0}while((o|0)<(q|0));S=ra+4|0;k[S>>2]=0;U=ra+8|0;k[U>>2]=0;k[ra+12>>2]=0;V=ra+20|0;k[V>>2]=0;k[V+4>>2]=0;k[V+8>>2]=0;i[V+12>>0]=0;V=ra+36|0;k[V>>2]=0;k[V+4>>2]=0;k[V+8>>2]=0;j[V+12>>1]=0;V=ra+52|0;k[V>>2]=V;k[ra+56>>2]=V;V=ra+60|0;k[V>>2]=0;W=ra+64|0;i[oa>>0]=0;i[oa+1>>0]=0;i[oa+2>>0]=0;T=ra+68|0;k[T>>2]=0;Y=ra+72|0;k[Y>>2]=0;Z=ra+76|0;i[Z>>0]=i[oa>>0]|0;i[Z+1>>0]=i[oa+1>>0]|0;i[Z+2>>0]=i[oa+2>>0]|0;Z=ra+68|0;k[W>>2]=Z;v=ra+2696|0;k[v>>2]=0;d=k[wa>>2]|0;w=k[za>>2]|0;c:do if((d|0)!=(w|0)){x=ra+4|0;y=oa+8|0;z=oa+16|0;A=oa+24|0;B=ra+12|0;C=fa+8|0;D=fa+16|0;E=fa+24|0;F=_+8|0;G=_+16|0;H=_+24|0;I=Q+8|0;J=Q+16|0;K=Q+24|0;e=0;f=0;while(1){n=k[d>>2]|0;o=k[d+4>>2]|0;q=k[d+8>>2]|0;u=k[d+12>>2]|0;na=oa;k[na>>2]=n;k[na+4>>2]=o;na=y;k[na>>2]=n;k[na+4>>2]=o;k[z>>2]=0;k[A>>2]=0;if(e>>>0<f>>>0){k[e>>2]=k[oa>>2];k[e+4>>2]=k[oa+4>>2];k[e+8>>2]=k[oa+8>>2];k[e+12>>2]=k[oa+12>>2];k[e+16>>2]=k[oa+16>>2];k[e+20>>2]=k[oa+20>>2];k[e+24>>2]=k[oa+24>>2];e=(k[U>>2]|0)+28|0;k[U>>2]=e}else{pd(x,oa);e=k[U>>2]|0}k[e+-8>>2]=k[v>>2];na=e+-4|0;k[na>>2]=k[na>>2]|1;na=fa;k[na>>2]=q;k[na+4>>2]=u;na=C;k[na>>2]=q;k[na+4>>2]=u;k[D>>2]=0;k[E>>2]=0;if(e>>>0<(k[B>>2]|0)>>>0){k[e>>2]=k[fa>>2];k[e+4>>2]=k[fa+4>>2];k[e+8>>2]=k[fa+8>>2];k[e+12>>2]=k[fa+12>>2];k[e+16>>2]=k[fa+16>>2];k[e+20>>2]=k[fa+20>>2];k[e+24>>2]=k[fa+24>>2];e=(k[U>>2]|0)+28|0;k[U>>2]=e}else{pd(x,fa);e=k[U>>2]|0}k[e+-8>>2]=k[v>>2];na=e+-4|0;k[na>>2]=k[na>>2]|2;if((n|0)==(q|0))if((o|0)<(u|0))na=64;else na=68;else if((n|0)<(q|0))na=64;else na=68;if((na|0)==64){na=0;f=_;k[f>>2]=n;k[f+4>>2]=o;o=F;k[o>>2]=q;k[o+4>>2]=u;k[G>>2]=0;k[H>>2]=0;if(e>>>0<(k[B>>2]|0)>>>0){k[e>>2]=k[_>>2];k[e+4>>2]=k[_+4>>2];k[e+8>>2]=k[_+8>>2];k[e+12>>2]=k[_+12>>2];k[e+16>>2]=k[_+16>>2];k[e+20>>2]=k[_+20>>2];k[e+24>>2]=k[_+24>>2];e=(k[U>>2]|0)+28|0;k[U>>2]=e}else{pd(x,_);e=k[U>>2]|0}u=e+-4|0;k[u>>2]=k[u>>2]|8}else if((na|0)==68){na=0;f=Q;k[f>>2]=q;k[f+4>>2]=u;u=I;k[u>>2]=n;k[u+4>>2]=o;k[J>>2]=0;k[K>>2]=0;if(e>>>0<(k[B>>2]|0)>>>0){k[e>>2]=k[Q>>2];k[e+4>>2]=k[Q+4>>2];k[e+8>>2]=k[Q+8>>2];k[e+12>>2]=k[Q+12>>2];k[e+16>>2]=k[Q+16>>2];k[e+20>>2]=k[Q+20>>2];k[e+24>>2]=k[Q+24>>2];e=(k[U>>2]|0)+28|0;k[U>>2]=e}else{pd(x,Q);e=k[U>>2]|0}u=e+-4|0;k[u>>2]=k[u>>2]|9}u=k[v>>2]|0;k[e+-8>>2]=u;k[v>>2]=u+1;d=d+16|0;if((d|0)==(w|0))break c;f=k[B>>2]|0}}while(0);n=(k[87]|0)>-1;d:do if(!3){d=1023;na=77}else{e=1023;d=1023;while(1){if(!(i[e>>0]|0))break d;e=e+1|0;d=e;if(!(d&3)){d=e;na=77;break}}}while(0);if((na|0)==77){while(1){e=k[d>>2]|0;if(!((e&-2139062144^-2139062144)&e+-16843009))d=d+4|0;else break}if((e&255)<<24>>24)do d=d+1|0;while((i[d>>0]|0)!=0)}f=d-1023|0;d=k[72]|0;e=(d|0)==0;e:do if(n){do if(e){d=i[346]|0;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;d=e+(k[80]|0)|0;k[72]=d;break}else{k[68]=d|32;d=0;na=99;break e}}else e=k[73]|0;while(0);if((d-e|0)>>>0<f>>>0){d=Ta[k[308>>2]&7](272,1023,f)|0;na=99;break}else{fe(e|0,1023,f|0)|0;k[73]=(k[73]|0)+f;na=101;break}}else{do if(e){d=i[346]|0;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;d=e+(k[80]|0)|0;k[72]=d;break}else{k[68]=d|32;d=0;na=99;break e}}else e=k[73]|0;while(0);if((d-e|0)>>>0<f>>>0){d=Ta[k[308>>2]&7](272,1023,f)|0;na=99;break}else{fe(e|0,1023,f|0)|0;k[73]=(k[73]|0)+f;na=101;break}}while(0);if((na|0)==99)if(!((d|0)!=(f|0)?((d>>>0)/(f>>>0)|0|0)<1:0))na=101;do if((na|0)==101){f=i[347]|0;if(f<<24>>24!=10){d=k[73]|0;e=k[72]|0;if(d>>>0<e>>>0){k[73]=d+1;i[d>>0]=10;break}}else e=k[72]|0;i[oa>>0]=10;do if(!e){f=j[173]|0;d=(f&65535)<<24>>24;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;n=k[79]|0;k[75]=n;k[73]=n;e=n+(k[80]|0)|0;k[72]=e;d=(f&65535)>>>8&255;na=110;break}else{k[68]=d|32;break}}else{n=k[73]|0;d=f;na=110}while(0);do if((na|0)==110)if(n>>>0>=e>>>0|d<<24>>24==10){Ta[k[308>>2]&7](272,oa,1)|0;break}else{k[73]=n+1;i[n>>0]=10;break}while(0)}while(0);x=k[U>>2]|0;y=k[S>>2]|0;z=(x-y|0)/28|0;A=va+8|0;o=k[va>>2]|0;d=o;if((((k[A>>2]|0)-d|0)/12|0)>>>0<z>>>0){q=va+4|0;f=(k[q>>2]|0)-d|0;n=(f|0)/12|0;if((x|0)==(y|0))d=0;else{e=z*12|0;d=_d(e)|0;f:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break f}Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}while(0)}Q=d+((((f|0)/-12|0)+n|0)*12|0)|0;fe(Q|0,o|0,f|0)|0;k[va>>2]=Q;k[q>>2]=d+(n*12|0);k[A>>2]=d+(z*12|0);if(o)$d(o)}o=va+12|0;q=z<<1;u=va+20|0;v=k[o>>2]|0;d=v;if((((k[u>>2]|0)-d|0)/24|0)>>>0<q>>>0){w=va+16|0;f=(k[w>>2]|0)-d|0;n=(f|0)/24|0;if((x|0)==(y|0))d=0;else{e=z*48|0;e=(e|0)==0?1:e;d=_d(e)|0;g:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break g}Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}while(0)}Q=d+((((f|0)/-24|0)+n|0)*24|0)|0;fe(Q|0,v|0,f|0)|0;k[o>>2]=Q;k[w>>2]=d+(n*24|0);k[u>>2]=d+(q*24|0);if(v)$d(v)}o=va+24|0;q=z*6|0;u=va+32|0;v=k[o>>2]|0;d=v;if((((k[u>>2]|0)-d|0)/24|0)>>>0<q>>>0){w=va+28|0;f=(k[w>>2]|0)-d|0;n=(f|0)/24|0;if((x|0)==(y|0))d=0;else{e=z*144|0;e=(e|0)==0?1:e;d=_d(e)|0;h:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break h}Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}while(0)}Q=d+((((f|0)/-24|0)+n|0)*24|0)|0;fe(Q|0,v|0,f|0)|0;k[o>>2]=Q;k[w>>2]=d+(n*24|0);k[u>>2]=d+(q*24|0);if(v)$d(v)}kd(k[S>>2]|0,k[U>>2]|0);n=k[S>>2]|0;d=k[U>>2]|0;i:do if((n|0)!=(d|0)){e=n+28|0;if((e|0)!=(d|0)){f=n;while(1){if((((k[f>>2]|0)==(k[f+28>>2]|0)?(k[f+4>>2]|0)==(k[f+32>>2]|0):0)?(k[f+8>>2]|0)==(k[f+36>>2]|0):0)?(k[f+12>>2]|0)==(k[f+40>>2]|0):0){na=148;break i}f=e+28|0;if((f|0)==(d|0))break;else{Q=e;e=f;f=Q}}}}else{f=n;na=148}while(0);if((na|0)==148)if((f|0)!=(d|0)){e=f+56|0;if((e|0)==(d|0))e=n;else{n=f;f=f+28|0;while(1){if((((k[n>>2]|0)==(k[e>>2]|0)?(k[n+4>>2]|0)==(k[f+32>>2]|0):0)?(k[n+8>>2]|0)==(k[f+36>>2]|0):0)?(k[n+12>>2]|0)==(k[f+40>>2]|0):0)f=n;else{f=n+28|0;k[f>>2]=k[e>>2];k[f+4>>2]=k[e+4>>2];k[f+8>>2]=k[e+8>>2];k[f+12>>2]=k[e+12>>2];k[f+16>>2]=k[e+16>>2];k[f+20>>2]=k[e+20>>2];k[f+24>>2]=k[e+24>>2]}n=e+28|0;if((n|0)==(d|0))break;else{Q=e;e=n;n=f;f=Q}}d=k[U>>2]|0;e=k[S>>2]|0}n=f+28|0;o=n;if((n|0)!=(d|0)){e=e+((((d-o|0)/28|0)+((o-e|0)/28|0)|0)*28|0)|0;d=d-e|0;he(n|0,e|0,d|0)|0;d=f+((((d|0)/28|0)+1|0)*28|0)|0;e=k[U>>2]|0;if((e|0)!=(d|0)){d=e+(~(((e+-28-d|0)>>>0)/28|0)*28|0)|0;k[U>>2]=d}}}o=k[S>>2]|0;e=o;if((d|0)!=(o|0)){f=(d-e|0)/28|0;n=0;do{k[o+(n*28|0)+16>>2]=n;n=n+1|0}while(n>>>0<f>>>0)}k[ra+16>>2]=e;do if((o|0)==(d|0)){u=ra+16|0;d=o}else{if((d-e|0)==28){d=k[o+24>>2]&31;k[oa>>2]=k[o+20>>2];k[oa+4>>2]=0;k[oa+8>>2]=d;d=va+4|0;e=k[d>>2]|0;if(e>>>0<(k[A>>2]|0)>>>0){k[e>>2]=k[oa>>2];k[e+4>>2]=k[oa+4>>2];k[e+8>>2]=k[oa+8>>2];k[d>>2]=(k[d>>2]|0)+12}else gd(va,oa);u=ra+16|0;d=(k[u>>2]|0)+28|0;k[u>>2]=d;break}x=ra+16|0;if((o|0)!=(d|0)){f=k[o>>2]|0;n=o;e=0;do{if((k[n>>2]|0)!=(f|0)){d=n;break}if((f|0)!=(k[n+8>>2]|0)){d=n;break}n=n+28|0;k[x>>2]=n;e=e+1|0}while((n|0)!=(d|0));if((e|0)==1){k[fa>>2]=Z;k[oa>>2]=k[fa>>2];dd(ra,o,o,o+28|0,oa,va)|0;d=(k[x>>2]|0)+28|0;k[x>>2]=d;u=x;break}else e=d}else e=d;d=o+28|0;j:do if((d|0)==(e|0))d=e;else{w=fa+28|0;v=o;k:while(1){k[fa>>2]=k[v>>2];k[fa+4>>2]=k[v+4>>2];k[fa+8>>2]=k[v+8>>2];k[fa+12>>2]=k[v+12>>2];k[fa+16>>2]=k[v+16>>2];k[fa+20>>2]=k[v+20>>2];k[fa+24>>2]=k[v+24>>2];k[w>>2]=k[d>>2];k[w+4>>2]=k[d+4>>2];k[w+8>>2]=k[d+8>>2];k[w+12>>2]=k[d+12>>2];k[w+16>>2]=k[d+16>>2];k[w+20>>2]=k[d+20>>2];k[w+24>>2]=k[d+24>>2];ed(_,va,v,d);u=k[_>>2]|0;e=_d(80)|0;if(!e)do{e=k[35]|0;k[35]=e+0;if(!e)break k;Xa[e&0]();e=_d(80)|0}while((e|0)==0);f=e+16|0;o=f;n=fa;q=o+56|0;do{k[o>>2]=k[n>>2];o=o+4|0;n=n+4|0}while((o|0)<(q|0));n=e+72|0;k[n>>2]=0;k[n+4>>2]=u;n=fd(W,Z,oa,f)|0;f=k[n>>2]|0;do if(!f){f=k[oa>>2]|0;k[e>>2]=0;k[e+4>>2]=0;k[e+8>>2]=f;k[n>>2]=e;f=k[k[W>>2]>>2]|0;if(f){k[W>>2]=f;e=k[n>>2]|0}Nb(k[T>>2]|0,e);k[Y>>2]=(k[Y>>2]|0)+1}else{if((f|0)==(e|0))break;$d(e)}while(0);d=d+28|0;if((d|0)==(k[x>>2]|0))break j;else v=v+28|0}Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}while(0);u=x}while(0);o=ra+36|0;q=ra+40|0;n=k[o>>2]|0;e=k[q>>2]|0;l:while(1){f=(d|0)==(k[U>>2]|0);do if((n|0)!=(e|0)){if(f){Kc(ra,va);break}I=(k[n>>2]|0)+24|0;K=k[I>>2]|0;I=k[I+4>>2]|0;p[t>>3]=+(k[d>>2]|0);J=k[t>>2]|0;H=k[t+4>>2]|0;S=(H|0)>-1|(H|0)==-1&J>>>0>4294967295;Q=be(0,-2147483648,J|0,H|0)|0;J=S?Q:J;H=S?L:H;S=(I|0)>-1|(I|0)==-1&K>>>0>4294967295;Q=be(0,-2147483648,K|0,I|0)|0;K=S?Q:K;I=S?L:I;S=be(J|0,H|0,K|0,I|0)|0;Q=L;_=be(K|0,I|0,J|0,H|0)|0;T=L;if(((H>>>0>I>>>0|(H|0)==(I|0)&J>>>0>K>>>0?(Q>>>0>0|(Q|0)==0&S>>>0>64)<<31>>31:(T>>>0>0|(T|0)==0&_>>>0>64)&1)|0)==-1){Jc(ra,va);break}else{Kc(ra,va);break}}else{if(f)break l;Jc(ra,va)}while(0);d=k[o>>2]|0;e=k[q>>2]|0;m:do if((d|0)==(e|0))e=d;else while(1){n=k[d>>2]|0;if(i[n+32>>0]|0)break m;f=e-d|0;if((f|0)>4){_=e+-4|0;k[d>>2]=k[_>>2];k[_>>2]=n;Lc(d,(f>>2)+-1|0,d);d=k[q>>2]|0}else d=e;k[q>>2]=d+-4;d=n+4|0;e=k[n>>2]|0;k[e+4>>2]=k[d>>2];k[k[d>>2]>>2]=e;k[V>>2]=(k[V>>2]|0)+-1;$d(n);d=k[o>>2]|0;e=k[q>>2]|0;if((d|0)==(e|0)){e=d;break}}while(0);n=d;d=k[u>>2]|0}Cc(k[Z>>2]|0);k[Y>>2]=0;k[W>>2]=Z;k[Z>>2]=0;Y=va+24|0;e=k[Y>>2]|0;f=e;Z=va+28|0;d=k[Z>>2]|0;if((e|0)==(d|0)){n=f;d=e;f=e}else{n=f;v=f;while(1){f=k[e+4>>2]|0;u=k[e+8>>2]|0;o=k[u+4>>2]|0;q=f;if(((f|0)!=0&(o|0)!=0?(K=f,S=k[K>>2]|0,K=k[K+4>>2]|0,Q=o,T=k[Q>>2]|0,Q=k[Q+4>>2]|0,V=(K|0)>-1|(K|0)==-1&S>>>0>4294967295,U=be(0,-2147483648,S|0,K|0)|0,S=V?U:S,K=V?L:K,V=(Q|0)>-1|(Q|0)==-1&T>>>0>4294967295,U=be(0,-2147483648,T|0,Q|0)|0,T=V?U:T,Q=V?L:Q,V=be(S|0,K|0,T|0,Q|0)|0,U=L,_=be(T|0,Q|0,S|0,K|0)|0,W=L,((K>>>0>Q>>>0|(K|0)==(Q|0)&S>>>0>T>>>0?(U>>>0>0|(U|0)==0&V>>>0>128)<<31>>31:(W>>>0>0|(W|0)==0&_>>>0>128)&1)|0)==0):0)?(K=f+8|0,S=k[K>>2]|0,K=k[K+4>>2]|0,Q=o+8|0,T=k[Q>>2]|0,Q=k[Q+4>>2]|0,V=(K|0)>-1|(K|0)==-1&S>>>0>4294967295,U=be(0,-2147483648,S|0,K|0)|0,S=V?U:S,K=V?L:K,V=(Q|0)>-1|(Q|0)==-1&T>>>0>4294967295,U=be(0,-2147483648,T|0,Q|0)|0,T=V?U:T,Q=V?L:Q,V=be(S|0,K|0,T|0,Q|0)|0,U=L,_=be(T|0,Q|0,S|0,K|0)|0,W=L,((K>>>0>Q>>>0|(K|0)==(Q|0)&S>>>0>T>>>0?(U>>>0>0|(U|0)==0&V>>>0>128)<<31>>31:(W>>>0>0|(W|0)==0&_>>>0>128)&1)|0)==0):0){f=k[(k[u+16>>2]|0)+8>>2]|0;if((f|0)==(u|0))f=u;else{o=f;do{k[o+4>>2]=q;o=k[(k[o+16>>2]|0)+8>>2]|0}while((o|0)!=(u|0))}W=k[u+12>>2]|0;_=k[(k[u+8>>2]|0)+12>>2]|0;V=k[(k[(k[e+16>>2]|0)+8>>2]|0)+8>>2]|0;k[V+12>>2]=_;k[_+16>>2]=V;_=k[f+8>>2]|0;k[W+16>>2]=_;k[_+12>>2]=W}else{o=n;do if((e|0)!=(o|0)){f=n;d=v;k[f>>2]=k[d>>2];k[f+4>>2]=k[d+4>>2];k[f+8>>2]=k[d+8>>2];k[f+12>>2]=k[d+12>>2];k[f+16>>2]=k[d+16>>2];k[f+20>>2]=k[d+20>>2];f=o+24|0;d=e+24|0;k[f>>2]=k[d>>2];k[f+4>>2]=k[d+4>>2];k[f+8>>2]=k[d+8>>2];k[f+12>>2]=k[d+12>>2];k[f+16>>2]=k[d+16>>2];k[f+20>>2]=k[d+20>>2];k[o+8>>2]=f;k[o+32>>2]=o;d=k[o+16>>2]|0;if(d){k[d+12>>2]=o;k[(k[o+36>>2]|0)+16>>2]=f}d=o+40|0;if(!(k[d>>2]|0))break;k[(k[o+12>>2]|0)+16>>2]=o;k[(k[d>>2]|0)+12>>2]=f}while(0);n=o+48|0;d=k[Z>>2]|0}f=v+48|0;if((f|0)==(d|0))break;else{e=f;v=f}}f=k[Y>>2]|0}e=n;if((e|0)!=(d|0)){_=f+((((d-n|0)/24|0)+((n-f|0)/24|0)|0)*24|0)|0;d=d-_|0;he(n|0,_|0,d|0)|0;d=e+(((d|0)/24|0)*24|0)|0;e=k[Z>>2]|0;if((e|0)!=(d|0)){d=e+(~(((e+-24-d|0)>>>0)/24|0)*24|0)|0;k[Z>>2]=d}}e=k[Y>>2]|0;if((e|0)!=(d|0))do{k[(k[e>>2]|0)+4>>2]=e;f=k[e+4>>2]|0;if(f)k[f+16>>2]=e;e=e+24|0}while((e|0)!=(d|0));V=va+12|0;f=k[V>>2]|0;e=f;W=va+16|0;d=k[W>>2]|0;if((f|0)==(d|0)){d=f;n=f}else{n=f;do{if(k[n+16>>2]|0){f=e;if((n|0)!=(f|0)){d=e;k[d>>2]=k[n>>2];k[d+4>>2]=k[n+4>>2];k[d+8>>2]=k[n+8>>2];k[d+12>>2]=k[n+12>>2];k[d+16>>2]=k[n+16>>2];k[d+20>>2]=k[n+20>>2];d=k[f+16>>2]|0;e=d;do{k[e+4>>2]=f;e=k[(k[e+16>>2]|0)+8>>2]|0}while((e|0)!=(d|0))}e=f+24|0;d=k[W>>2]|0}n=n+24|0}while((n|0)!=(d|0));n=k[V>>2]|0}f=e;if((f|0)!=(d|0)){_=n+((((d-e|0)/24|0)+((e-n|0)/24|0)|0)*24|0)|0;d=d-_|0;he(e|0,_|0,d|0)|0;d=f+(((d|0)/24|0)*24|0)|0;e=k[W>>2]|0;if((e|0)!=(d|0)){d=e+(~(((e+-24-d|0)>>>0)/24|0)*24|0)|0;k[W>>2]=d}}if((k[V>>2]|0)==(d|0)){w=k[Y>>2]|0;e=w;q=k[Z>>2]|0;if((w|0)!=(q|0)){k[w+12>>2]=w;k[w+16>>2]=w;d=w+24|0;n=w+48|0;f=w+36|0;if((n|0)==(q|0))e=w;else{u=(((q+-96-e|0)>>>0)/48|0)<<1;v=u+3|0;o=w+(v*24|0)+12|0;e=w;while(1){k[f>>2]=n;k[e+40>>2]=n;k[e+60>>2]=d;k[e+64>>2]=d;d=n+48|0;if((d|0)==(q|0))break;else{_=n;n=d;f=e+84|0;d=e+72|0;e=_}}f=o;e=w+((u+2|0)*24|0)|0;d=w+(v*24|0)|0}k[f>>2]=d;k[e+40>>2]=d}}else{d=k[va>>2]|0;q=k[va+4>>2]|0;if((d|0)!=(q|0))do{n=k[d+4>>2]|0;do if(n){e=n;while(1){f=e;e=k[e+16>>2]|0;if(!e)break;if((e|0)==(n|0)){na=251;break}}if((na|0)==251){na=0;if(!(k[n+16>>2]|0))f=n;else break}while(1){e=n+12|0;o=k[e>>2]|0;if(!o)break;else n=o}k[f+16>>2]=n;k[e>>2]=f}while(0);d=d+12|0}while((d|0)!=(q|0))}k[ha>>2]=0;n=(k[87]|0)>-1;n:do if(!1){d=1025;na=259}else{e=1025;d=1025;while(1){if(!(i[e>>0]|0))break n;e=e+1|0;d=e;if(!(d&3)){d=e;na=259;break}}}while(0);if((na|0)==259){while(1){e=k[d>>2]|0;if(!((e&-2139062144^-2139062144)&e+-16843009))d=d+4|0;else break}if((e&255)<<24>>24)do d=d+1|0;while((i[d>>0]|0)!=0)}f=d-1025|0;d=k[72]|0;e=(d|0)==0;o:do if(n){do if(e){d=i[346]|0;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;d=e+(k[80]|0)|0;k[72]=d;break}else{k[68]=d|32;d=0;na=281;break o}}else e=k[73]|0;while(0);if((d-e|0)>>>0<f>>>0){d=Ta[k[308>>2]&7](272,1025,f)|0;na=281;break}else{fe(e|0,1025,f|0)|0;k[73]=(k[73]|0)+f;na=283;break}}else{do if(e){d=i[346]|0;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;d=e+(k[80]|0)|0;k[72]=d;break}else{k[68]=d|32;d=0;na=281;break o}}else e=k[73]|0;while(0);if((d-e|0)>>>0<f>>>0){d=Ta[k[308>>2]&7](272,1025,f)|0;na=281;break}else{fe(e|0,1025,f|0)|0;k[73]=(k[73]|0)+f;na=283;break}}while(0);do if((na|0)==281){if((d|0)==(f|0)){na=283;break}if(((d>>>0)/(f>>>0)|0|0)>=1)na=283}while(0);p:do if((na|0)==283){f=i[347]|0;do if(f<<24>>24==10)e=k[72]|0;else{d=k[73]|0;e=k[72]|0;if(d>>>0>=e>>>0)break;k[73]=d+1;i[d>>0]=10;break p}while(0);i[oa>>0]=10;do if(!e){f=j[173]|0;d=(f&65535)<<24>>24;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;n=k[79]|0;k[75]=n;k[73]=n;e=n+(k[80]|0)|0;k[72]=e;d=(f&65535)>>>8&255;na=292;break}else{k[68]=d|32;break}}else{n=k[73]|0;d=f;na=292}while(0);do if((na|0)==292)if(n>>>0>=e>>>0|d<<24>>24==10){Ta[k[308>>2]&7](272,oa,1)|0;break}else{k[73]=n+1;i[n>>0]=10;break}while(0)}while(0);d=k[b>>2]|0;G=k[ba>>2]|0;q:do if(d>>>0<G>>>0){f=0;e=0;r:while(1){F=k[d>>2]|0;E=F;F=(k[d+4>>2]|0)-F>>3;if(F){D=0;do{q=D;D=D+1|0;C=D>>>0<F>>>0;v=C?E+(D<<3)|0:E;o=k[E+(q<<3)>>2]|0;q=k[E+(q<<3)+4>>2]|0;n=k[v>>2]|0;v=k[v+4>>2]|0;do if((o|0)!=(n|0)|(q|0)!=(v|0)){do if((o|0)<=(n|0)){if((o|0)!=(n|0)){u=o;w=q;o=v;v=1;na=302;break}if((q|0)<=(v|0)){u=o;n=o;o=v;v=1;na=303}else{u=n;w=v;n=o;o=q;v=-1;na=302}}else{u=n;w=v;n=o;o=q;v=-1;na=302}while(0);if((na|0)==302){na=0;if((u|0)==(n|0)){q=w;na=303}else{q=w;B=o}}if((na|0)==303){na=0;B=o;v=0-v|0}o=e;w=k[ha>>2]|0;if(o>>>0<w>>>0){i[o>>0]=0;i[o+1>>0]=0;i[o+2>>0]=0;k[o+4>>2]=0;k[o+8>>2]=0;k[o+12>>2]=0;k[o+16>>2]=u;k[o+20>>2]=q;k[o+24>>2]=0;k[o+28>>2]=n;k[o+32>>2]=B;k[o+36>>2]=0;k[o+40>>2]=v;e=o+44|0;break}A=f;z=e-f|0;y=(z|0)/44|0;x=y+1|0;if(x>>>0>97612893){na=308;break r}e=(w-f|0)/44|0;if(e>>>0<48806446){e=e<<1;e=e>>>0<x>>>0?x:e;if(!e){w=0;o=0}else na=311}else{e=97612893;na=311}if((na|0)==311){na=0;w=e*44|0;w=(w|0)==0?1:w;o=_d(w)|0;if(!o)do{o=k[35]|0;k[35]=o+0;if(!o){na=314;break r}Xa[o&0]();o=_d(w)|0}while((o|0)==0);w=e}e=o+(y*44|0)|0;i[e>>0]=0;i[e+1>>0]=0;i[e+2>>0]=0;k[e+4>>2]=0;k[e+8>>2]=0;k[e+12>>2]=0;k[e+16>>2]=u;k[e+20>>2]=q;k[e+24>>2]=0;k[e+28>>2]=n;k[e+32>>2]=B;k[e+36>>2]=0;k[e+40>>2]=v;e=o+(x*44|0)|0;ba=o+((((z|0)/-44|0)+y|0)*44|0)|0;n=ba;fe(ba|0,A|0,z|0)|0;k[ha>>2]=o+(w*44|0);if(!f){f=n;break}$d(A);f=n}while(0)}while(C)}d=d+12|0;if(d>>>0>=G>>>0){g=f;ca=e;break q}}if((na|0)==308)xa(1340,1363,303,1438);else if((na|0)==314){Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}}else{g=0;ca=0}while(0);n=(k[87]|0)>-1;s:do if(!3){d=1027;na=322}else{e=1027;d=1027;while(1){if(!(i[e>>0]|0))break s;e=e+1|0;d=e;if(!(d&3)){d=e;na=322;break}}}while(0);if((na|0)==322){while(1){e=k[d>>2]|0;if(!((e&-2139062144^-2139062144)&e+-16843009))d=d+4|0;else break}if((e&255)<<24>>24)do d=d+1|0;while((i[d>>0]|0)!=0)}f=d-1027|0;d=k[72]|0;e=(d|0)==0;t:do if(n){do if(e){d=i[346]|0;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;d=e+(k[80]|0)|0;k[72]=d;break}else{k[68]=d|32;d=0;na=344;break t}}else e=k[73]|0;while(0);if((d-e|0)>>>0<f>>>0){d=Ta[k[308>>2]&7](272,1027,f)|0;na=344;break}else{fe(e|0,1027,f|0)|0;k[73]=(k[73]|0)+f;na=346;break}}else{do if(e){d=i[346]|0;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;d=e+(k[80]|0)|0;k[72]=d;break}else{k[68]=d|32;d=0;na=344;break t}}else e=k[73]|0;while(0);if((d-e|0)>>>0<f>>>0){d=Ta[k[308>>2]&7](272,1027,f)|0;na=344;break}else{fe(e|0,1027,f|0)|0;k[73]=(k[73]|0)+f;na=346;break}}while(0);do if((na|0)==344){if((d|0)==(f|0)){na=346;break}if(((d>>>0)/(f>>>0)|0|0)>=1)na=346}while(0);u:do if((na|0)==346){f=i[347]|0;do if(f<<24>>24==10)e=k[72]|0;else{d=k[73]|0;e=k[72]|0;if(d>>>0>=e>>>0)break;k[73]=d+1;i[d>>0]=10;break u}while(0);i[oa>>0]=10;do if(!e){f=j[173]|0;d=(f&65535)<<24>>24;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;n=k[79]|0;k[75]=n;k[73]=n;e=n+(k[80]|0)|0;k[72]=e;d=(f&65535)>>>8&255;na=355;break}else{k[68]=d|32;break}}else{n=k[73]|0;d=f;na=355}while(0);do if((na|0)==355)if(n>>>0>=e>>>0|d<<24>>24==10){Ta[k[308>>2]&7](272,oa,1)|0;break}else{k[73]=n+1;i[n>>0]=10;break}while(0)}while(0);d=g;if((ca|0)!=(d|0)){e=(ca-g|0)/44|0;f=0;do{i[d+(f*44|0)>>0]=1;f=f+1|0}while(f>>>0<e>>>0)}d=k[Y>>2]|0;e=k[Z>>2]|0;if((d|0)!=(e|0)){f=d;do{ba=f+20|0;k[ba>>2]=k[ba>>2]&31;f=f+24|0}while((f|0)!=(e|0))}k[ja>>2]=(e-d|0)/24|0;Nd(1029,ja);e=k[Z>>2]|0;d=k[Y>>2]|0;v:do if((e|0)!=(d|0)){f=ca;D=0;w:while(1){n=d+(D*24|0)+20|0;o=k[n>>2]|0;do if(o&2){u=k[d+(D*24|0)+4>>2]|0;if(!u)break;q=k[d+(D*24|0)+8>>2]|0;v=k[q+4>>2]|0;if(!((v|0)!=0&(o&32|0)==0))break;k[n>>2]=o&31|32;d=q+20|0;k[d>>2]=k[d>>2]&31|32;h=+p[u>>3];p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);C=~~h;h=+p[u+8>>3];p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);B=~~h;h=+p[v>>3];p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);e=~~h;h=+p[v+8>>3];p[t>>3]=h;d=k[t+4>>2]|0;n=de(k[t>>2]|0,d|0,52)|0;n=n&2047;do if(n>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(n>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);y=~~h;u=f;d=k[ha>>2]|0;do if(u>>>0<d>>>0){i[u>>0]=0;i[u+1>>0]=0;i[u+2>>0]=0;k[u+4>>2]=0;k[u+8>>2]=0;k[u+12>>2]=0;d=u+16|0;f=u+16|0;k[f>>2]=C;k[u+20>>2]=B;k[u+24>>2]=0;n=u+28|0;o=u+28|0;k[o>>2]=e;k[u+32>>2]=y;k[u+36>>2]=0;q=u+40|0;k[q>>2]=1;do if((C|0)<=(e|0)){if((C|0)!=(e|0)){f=C;d=1;na=406;break}if((B|0)<=(y|0)){d=1;na=407}else na=405}else na=405;while(0);if((na|0)==405){k[oa>>2]=k[d>>2];k[oa+4>>2]=k[d+4>>2];k[oa+8>>2]=k[d+8>>2];k[d>>2]=k[n>>2];k[d+4>>2]=k[n+4>>2];k[d+8>>2]=k[n+8>>2];k[n>>2]=k[oa>>2];k[n+4>>2]=k[oa+4>>2];k[n+8>>2]=k[oa+8>>2];k[q>>2]=-1;f=k[f>>2]|0;e=k[o>>2]|0;d=-1;na=406}if((na|0)==406?(na=0,(f|0)==(e|0)):0)na=407;if((na|0)==407){na=0;k[q>>2]=0-d}f=u+44|0}else{A=g;z=f-g|0;x=(z|0)/44|0;w=x+1|0;if(w>>>0>97612893){na=410;break w}d=(d-g|0)/44|0;if(d>>>0<48806446){n=d<<1;n=n>>>0<w>>>0?w:n}else n=97612893;f=n*44|0;f=(f|0)==0?1:f;d=_d(f)|0;if(!d)while(1){d=k[35]|0;k[35]=d+0;if(!d){na=416;break w}Xa[d&0]();d=_d(f)|0;if(d){u=d;break}}else u=d;v=u+(n*44|0)|0;i[u+(x*44|0)>>0]=0;i[u+(x*44|0)+1>>0]=0;i[u+(x*44|0)+2>>0]=0;k[u+(x*44|0)+4>>2]=0;k[u+(x*44|0)+8>>2]=0;k[u+(x*44|0)+12>>2]=0;d=u+(x*44|0)+16|0;f=u+(x*44|0)+16|0;k[f>>2]=C;k[u+(x*44|0)+20>>2]=B;k[u+(x*44|0)+24>>2]=0;n=u+(x*44|0)+28|0;o=u+(x*44|0)+28|0;k[o>>2]=e;k[u+(x*44|0)+32>>2]=y;k[u+(x*44|0)+36>>2]=0;q=u+(x*44|0)+40|0;k[q>>2]=1;do if((C|0)<=(e|0)){if((C|0)!=(e|0)){f=C;d=1;na=421;break}if((B|0)<=(y|0)){d=1;na=422}else na=420}else na=420;while(0);if((na|0)==420){k[oa>>2]=k[d>>2];k[oa+4>>2]=k[d+4>>2];k[oa+8>>2]=k[d+8>>2];k[d>>2]=k[n>>2];k[d+4>>2]=k[n+4>>2];k[d+8>>2]=k[n+8>>2];k[n>>2]=k[oa>>2];k[n+4>>2]=k[oa+4>>2];k[n+8>>2]=k[oa+8>>2];k[q>>2]=-1;f=k[f>>2]|0;e=k[o>>2]|0;d=-1;na=421}if((na|0)==421?(na=0,(f|0)==(e|0)):0)na=422;if((na|0)==422){na=0;k[q>>2]=0-d}f=u+(w*44|0)|0;ca=u+((((z|0)/-44|0)+x|0)*44|0)|0;d=ca;fe(ca|0,A|0,z|0)|0;k[ha>>2]=v;if(!g){g=d;break}$d(A);g=d}while(0);k[f+-32>>2]=D;e=k[Z>>2]|0;d=k[Y>>2]|0}while(0);D=D+1|0;if(D>>>0>=((e-d|0)/24|0)>>>0){ga=g;da=f;break v}}if((na|0)==410)xa(1340,1363,303,1438);else if((na|0)==416){Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}}else{ga=g;da=ca}while(0);f=da;F=ga;z=(da-ga|0)/44|0;k[ea>>2]=z;Nd(1050,ea);k[oa>>2]=0;G=oa+4|0;k[G>>2]=0;k[oa+8>>2]=0;x=oa+8|0;y=(f|0)!=(F|0);if(y){e=z*24|0;d=_d(e)|0;x:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break x}Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}while(0);da=d;g=d+(z*24|0)|0;k[oa>>2]=da;k[G>>2]=da;k[x>>2]=g}else{g=0;d=0}y:do if((f|0)!=(F|0)){n=ea+4|0;o=ea+8|0;q=ea+12|0;u=ea+16|0;v=ea+16|0;w=ea+20|0;e=0;while(1){f=k[F+(e*44|0)+16>>2]|0;b=k[F+(e*44|0)+20>>2]|0;ba=k[F+(e*44|0)+28>>2]|0;da=k[F+(e*44|0)+32>>2]|0;ca=k[F+(e*44|0)+40>>2]|0;k[ea>>2]=f;k[n>>2]=b;k[o>>2]=ba;k[q>>2]=da;da=u;k[da>>2]=e;k[da+4>>2]=ca;if(d>>>0<g>>>0){k[d>>2]=f;k[d+4>>2]=k[n>>2];k[d+8>>2]=k[o>>2];k[d+12>>2]=k[q>>2];k[d+16>>2]=k[v>>2];k[d+20>>2]=k[w>>2];k[G>>2]=d+24}else Db(oa,ea);e=e+1|0;if(e>>>0>=z>>>0)break y;d=k[G>>2]|0;g=k[x>>2]|0}}while(0);k[ja>>2]=0;E=ja+4|0;k[E>>2]=0;k[ja+8>>2]=0;f=ja+8|0;if(y){e=z*24|0;d=_d(e)|0;z:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break z}Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}while(0);ea=d;k[ja>>2]=ea;k[E>>2]=ea;k[f>>2]=d+(z*24|0)}Eb(ja,k[oa>>2]|0,k[G>>2]|0);D=k[E>>2]|0;o=k[ja>>2]|0;f=(D-o|0)/24|0;n=(D|0)==(o|0);A:do if(!n){e=f*44|0;e=(e|0)==0?1:e;d=_d(e)|0;do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d){na=451;break}Xa[d&0]();d=_d(e)|0;if(d){na=452;break}}if((na|0)==451){Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}else if((na|0)==452){g=d;f=d+(f*44|0)|0;e=f;if(n){ta=g;ia=e;ka=g;break A}else break}}else{f=d+(f*44|0)|0;e=f;g=d}while(0);n=g;B:while(1){w=F+((k[o+16>>2]|0)*44|0)|0;k[fa>>2]=k[w>>2];k[fa+4>>2]=k[w+4>>2];k[fa+8>>2]=k[w+8>>2];k[fa+12>>2]=k[w+12>>2];v=k[w+24>>2]|0;w=k[w+36>>2]|0;x=k[o>>2]|0;y=k[o+4>>2]|0;z=k[o+8>>2]|0;A=k[o+12>>2]|0;B=k[o+20>>2]|0;do if((d|0)==(f|0)){C=n;u=g-n|0;q=(u|0)/44|0;g=q+1|0;if(g>>>0>97612893){na=457;break B}d=(e-n|0)/44|0;if(d>>>0<48806446){d=d<<1;d=d>>>0<g>>>0?g:d;if(!d){d=0;f=0}else na=460}else{d=97612893;na=460}if((na|0)==460){na=0;f=d*44|0;f=(f|0)==0?1:f;e=_d(f)|0;if(!e)do{e=k[35]|0;k[35]=e+0;if(!e){na=463;break B}Xa[e&0]();e=_d(f)|0}while((e|0)==0);f=e}e=f+(d*44|0)|0;ea=f+(q*44|0)|0;k[ea>>2]=k[fa>>2];k[ea+4>>2]=k[fa+4>>2];k[ea+8>>2]=k[fa+8>>2];k[ea+12>>2]=k[fa+12>>2];k[ea+16>>2]=x;k[ea+20>>2]=y;k[ea+24>>2]=v;k[ea+28>>2]=z;k[ea+32>>2]=A;k[ea+36>>2]=w;k[ea+40>>2]=B;g=f+(g*44|0)|0;ea=f+((((u|0)/-44|0)+q|0)*44|0)|0;d=ea;fe(ea|0,C|0,u|0)|0;if(!n){n=d;break}$d(C);n=d}else{k[d>>2]=k[fa>>2];k[d+4>>2]=k[fa+4>>2];k[d+8>>2]=k[fa+8>>2];k[d+12>>2]=k[fa+12>>2];k[d+16>>2]=x;k[d+20>>2]=y;k[d+24>>2]=v;k[d+28>>2]=z;k[d+32>>2]=A;k[d+36>>2]=w;k[d+40>>2]=B;g=d+44|0}while(0);d=o+24|0;if((d|0)==(D|0)){ta=n;ia=e;ka=g;break A}o=d;d=g;f=e}if((na|0)==457)xa(1340,1363,303,1438);else if((na|0)==463){Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}}else{ta=0;ia=0;ka=0}while(0);if(ga){$d(F);k[ha>>2]=0}k[ha>>2]=ia;d=k[ja>>2]|0;e=d;if(d){f=k[E>>2]|0;if((f|0)!=(d|0))k[E>>2]=f+(~(((f+-24-e|0)>>>0)/24|0)*24|0);$d(d)}d=k[oa>>2]|0;e=d;if(d){f=k[G>>2]|0;if((f|0)!=(d|0))k[G>>2]=f+(~(((f+-24-e|0)>>>0)/24|0)*24|0);$d(d)}T=ka;U=ta;J=(ka-ta|0)/44|0;k[la>>2]=J;Nd(1070,la);k[oa>>2]=3;Ac(U,T,oa);k[ma>>2]=J;Nd(1090,ma);J=(U|0)==(T|0);do if(!J){I=ma+4|0;d=ta;z=0;y=0;g=U;q=0;o=0;e=k[U+16>>2]|0;f=0;n=0;u=0;C:while(1){D:do if((g|0)==(T|0))if((q|0)==(o|0)){na=575;break C}else H=u;else{w=g;v=f;g=u;while(1){if((k[w+16>>2]|0)!=(e|0)){f=v;H=g;break D};k[I>>2]=0;k[I+4>>2]=0;i[I+8>>0]=0;i[la>>0]=0;d=n;do if((d|0)==(g|0)){u=n-v|0;n=u>>5;o=n+1|0;if(o>>>0>134217727){na=487;break C}if(n>>>0<67108863){g=u>>4;g=g>>>0<o>>>0?o:g}else g=134217727;f=g<<5;f=(f|0)==0?1:f;d=_d(f)|0;if(!d)do{d=k[35]|0;k[35]=d+0;if(!d){na=493;break C}Xa[d&0]();d=_d(f)|0}while((d|0)==0);q=d+(g<<5)|0;k[d+(n<<5)>>2]=0;k[d+(n<<5)+4>>2]=0;k[d+(n<<5)+8>>2]=w;f=d+(n<<5)+12|0;k[f>>2]=k[ma>>2];k[f+4>>2]=k[ma+4>>2];k[f+8>>2]=k[ma+8>>2];i[f+12>>0]=i[ma+12>>0]|0;i[d+(n<<5)+25>>0]=1;n=d+(n<<5)+26|0;j[n>>1]=j[la>>1]|0;j[n+2>>1]=j[la+2>>1]|0;j[n+4>>1]=j[la+4>>1]|0;n=d+(o<<5)|0;f=d;g=v;fe(d|0,g|0,u|0)|0;if(!v){g=q;break}$d(g);g=q}else{k[d>>2]=0;k[d+4>>2]=0;k[d+8>>2]=w;f=d+12|0;k[f>>2]=k[ma>>2];k[f+4>>2]=k[ma+4>>2];k[f+8>>2]=k[ma+8>>2];i[f+12>>0]=i[ma+12>>0]|0;i[d+25>>0]=1;f=d+26|0;j[f>>1]=j[la>>1]|0;j[f+2>>1]=j[la+2>>1]|0;j[f+4>>1]=j[la+4>>1]|0;f=v;n=d+32|0}while(0);w=w+44|0;d=w;if((w|0)==(T|0)){H=g;break}else v=f}}while(0);G=f;F=n;w=(G|0)==(F|0);E:do if(w){k[oa>>2]=4;Ec(G,F,oa);u=z;q=y;o=G}else{s=+(e|0);x=G;do{g=k[x+8>>2]|0;o=k[g+20>>2]|0;v=g+28|0;q=k[v>>2]|0;u=k[g+32>>2]|0;do if((o|0)==(u|0)){h=+(o|0);g=g+16|0}else{g=g+16|0;m=+(k[g>>2]|0);h=+(o|0);l=s-m;if(l==0.0)break;h=h+(+(u|0)-h)*l/(+(q|0)-m)}while(0);p[x+16>>3]=h;if((e|0)==(k[g>>2]|0))g=1;else g=(e|0)==(k[v>>2]|0);i[x+24>>0]=g&1;x=x+32|0}while((x|0)!=(F|0));k[oa>>2]=4;Ec(G,F,oa);if(w){u=z;q=y;o=G;break}else{x=z;E=G;g=f}while(1){q=E+32|0;o=q;F:do if(!((i[E+24>>0]|0)==0|(q|0)==(F|0))){v=E+16|0;u=E;while(1){if(!(i[u+56>>0]|0))break F;if(!(+p[u+48>>3]==+p[v>>3]))break F;u=q+32|0;o=u;if((u|0)==(F|0))break;else{ka=q;q=u;u=ka}}}while(0);q=g;D=q>>>0<o>>>0;if(D){u=q;do{w=k[u+8>>2]|0;v=k[w+16>>2]|0;w=w+28|0;if((v|0)!=(k[w>>2]|0)){i[u+25>>0]=(e|0)==(v|0)&1;i[u+26>>0]=(e|0)==(k[w>>2]|0)&1}u=u+32|0}while(u>>>0<o>>>0)}G:do if((q|0)==(o|0))w=x;else{C=o+25|0;u=q;w=x;v=y;while(1){x=u;H:do if((u|0)==(o|0)){u=x;na=521}else while(1){y=k[u+8>>2]|0;z=i[u+25>>0]|0;if((k[y+16>>2]|0)==(k[y+28>>2]|0))break H;x=z<<24>>24==0;if(!x)k[u>>2]=w;do if(i[y>>0]|0){if(x)v=v+(k[y+40>>2]|0)|0;if(i[u+26>>0]|0)break;w=w+(k[y+40>>2]|0)|0}while(0);if(!x)k[u+4>>2]=w;u=u+32|0;x=u;if((u|0)==(o|0)){u=x;na=521;break}}while(0);if((na|0)==521){na=0;x=u;z=i[C>>0]|0;u=o}B=(x|0)==(o|0);I:do if(!B){A=x;do{y=k[A+8>>2]|0;if((k[y+16>>2]|0)!=(k[y+28>>2]|0))break;if((i[A+25>>0]|0)!=z<<24>>24)break;k[A>>2]=v;if(i[y>>0]|0)v=v+(k[y+40>>2]|0)|0;k[A+4>>2]=v;A=A+32|0}while((A|0)!=(o|0));if(B)break;else y=x;do{x=k[y+8>>2]|0;if((k[x+16>>2]|0)!=(k[x+28>>2]|0))break I;if((i[y+25>>0]|0)!=z<<24>>24)break I;if(i[x>>0]|0)v=v-(k[x+40>>2]|0)|0;y=y+32|0}while((y|0)!=(o|0))}while(0);if((u|0)==(o|0)){y=v;break G}while(1){ka=k[u+8>>2]|0;if((k[ka+16>>2]|0)!=(k[ka+28>>2]|0))break;if((i[u+25>>0]|0)!=z<<24>>24)break;u=u+32|0;if((u|0)==(o|0)){y=v;break G}}if((u|0)==(o|0)){y=v;break}}}while(0);if((E|0)!=(o|0)){u=E;do{if(!(k[u>>2]|0))v=0;else v=(k[u+4>>2]|0)!=0;i[(k[u+8>>2]|0)+1>>0]=v&1;u=u+32|0}while((u|0)!=(o|0))}J:do if(D)while(1){ka=k[q+8>>2]|0;if((k[ka+16>>2]|0)==(k[ka+28>>2]|0)?(i[q+26>>0]|0)==0:0){u=g;break J}q=q+32|0;g=q;if(q>>>0>=o>>>0){u=g;break}}else u=g;while(0);E=u;if(E>>>0<o>>>0){g=E;do{p[g+16>>3]=+(k[(k[g+8>>2]|0)+32>>2]|0);i[g+25>>0]=0;i[g+26>>0]=1;g=g+32|0}while(g>>>0<o>>>0)}if((E|0)==(F|0)){e=G;break}else{x=w;g=u}}while(1){if(i[e+26>>0]|0)break;e=e+32|0;if((e|0)==(F|0)){u=w;q=y;o=F;break E}}if((e|0)==(F|0)){u=w;q=y;o=F;break}g=e+32|0;if((g|0)!=(F|0)){o=e;q=e;while(1){if(!(i[o+58>>0]|0)){k[q>>2]=k[g>>2];k[q+4>>2]=k[g+4>>2];k[q+8>>2]=k[g+8>>2];k[q+12>>2]=k[g+12>>2];k[q+16>>2]=k[g+16>>2];k[q+20>>2]=k[g+20>>2];j[q+24>>1]=j[g+24>>1]|0;i[q+26>>0]=i[g+26>>0]|0;q=e+32|0;e=q}o=g+32|0;if((o|0)==(F|0))break;else{ka=g;g=o;o=ka}}}g=e;if((e|0)==(F|0)){u=w;q=y;o=F;break}ja=G+((g-f>>5)+(u-g>>5)<<5)|0;ka=u-ja|0;he(e|0,ja|0,ka|0)|0;e=e+(ka>>5<<5)|0;if((F|0)==(e|0)){u=w;q=y;o=F;break}n=F+(~((F+-32-e|0)>>>5)<<5)|0;u=w;q=y;o=n}while(0);if((G|0)==(o|0))e=2147483647;else{g=G;e=2147483647;do{ka=k[(k[g+8>>2]|0)+28>>2]|0;e=(ka|0)<(e|0)?ka:e;g=g+32|0}while((g|0)!=(o|0))}g=d;if((g|0)==(T|0)){z=u;y=q;q=G;u=H;continue}ka=k[g+16>>2]|0;z=u;y=q;q=G;e=(ka|0)<(e|0)?ka:e;u=H}if((na|0)==487)xa(1340,1363,303,1438);else if((na|0)==493){Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}else if((na|0)==575){if(!o)break;$d(o);break}}while(0);g=(k[87]|0)>-1;K:do if(!2){d=1110;na=580}else{e=1110;d=1110;while(1){if(!(i[e>>0]|0))break K;e=e+1|0;d=e;if(!(d&3)){d=e;na=580;break}}}while(0);if((na|0)==580){while(1){e=k[d>>2]|0;if(!((e&-2139062144^-2139062144)&e+-16843009))d=d+4|0;else break}if((e&255)<<24>>24)do d=d+1|0;while((i[d>>0]|0)!=0)}f=d-1110|0;d=k[72]|0;e=(d|0)==0;L:do if(g){do if(e){d=i[346]|0;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;d=e+(k[80]|0)|0;k[72]=d;break}else{k[68]=d|32;d=0;na=602;break L}}else e=k[73]|0;while(0);if((d-e|0)>>>0<f>>>0){d=Ta[k[308>>2]&7](272,1110,f)|0;na=602;break}else{fe(e|0,1110,f|0)|0;k[73]=(k[73]|0)+f;na=604;break}}else{do if(e){d=i[346]|0;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;d=e+(k[80]|0)|0;k[72]=d;break}else{k[68]=d|32;d=0;na=602;break L}}else e=k[73]|0;while(0);if((d-e|0)>>>0<f>>>0){d=Ta[k[308>>2]&7](272,1110,f)|0;na=602;break}else{fe(e|0,1110,f|0)|0;k[73]=(k[73]|0)+f;na=604;break}}while(0);do if((na|0)==602){if((d|0)==(f|0)){na=604;break}if(((d>>>0)/(f>>>0)|0|0)>=1)na=604}while(0);M:do if((na|0)==604){f=i[347]|0;do if(f<<24>>24==10)e=k[72]|0;else{d=k[73]|0;e=k[72]|0;if(d>>>0>=e>>>0)break;k[73]=d+1;i[d>>0]=10;break M}while(0);i[oa>>0]=10;do if(!e){f=j[173]|0;d=(f&65535)<<24>>24;i[346]=d+255|d;d=k[68]|0;if(!(d&8)){k[70]=0;k[69]=0;g=k[79]|0;k[75]=g;k[73]=g;e=g+(k[80]|0)|0;k[72]=e;d=(f&65535)>>>8&255;na=613;break}else{k[68]=d|32;break}}else{g=k[73]|0;d=f;na=613}while(0);do if((na|0)==613)if(g>>>0>=e>>>0|d<<24>>24==10){Ta[k[308>>2]&7](272,oa,1)|0;break}else{k[73]=g+1;i[g>>0]=10;break}while(0)}while(0);k[a>>2]=0;S=a+4|0;k[S>>2]=0;k[a+8>>2]=0;do if(!J){aa=c*.5;K=a+8|0;Q=U;N:while(1){O:do if(!(i[Q>>0]|0)){if(!(i[Q+1>>0]|0))break;n=k[Q+12>>2]|0;o=k[Y>>2]|0;A=k[o+(n*24|0)>>2]|0;g=k[o+(n*24|0)+8>>2]|0;z=k[g>>2]|0;f=k[o+(n*24|0)+4>>2]|0;h=+p[f>>3];p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);C=~~h;h=+p[f+8>>3];p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);B=~~h;f=k[g+4>>2]|0;h=+p[f>>3];p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);J=~~h;h=+p[f+8>>3];p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);I=~~h;if(!(k[o+(n*24|0)+20>>2]&1)){d=k[A+8>>2]|0;f=k[A>>2]|0;if(!(d&24)){ma=(d&31|0)==1;d=k[wa>>2]|0;g=k[z>>2]|0;o=d+(g<<4)+12|0;q=d+(g<<4)+8|0;n=d+(g<<4)+4|0;g=d+(g<<4)|0;e=ma?d+(f<<4)+4|0:d+(f<<4)+12|0;d=ma?d+(f<<4)|0:d+(f<<4)+8|0}else{la=(k[z+8>>2]&31|0)==1;d=k[z>>2]|0;ma=k[wa>>2]|0;o=ma+(f<<4)+12|0;q=ma+(f<<4)+8|0;n=ma+(f<<4)+4|0;g=ma+(f<<4)|0;e=la?ma+(d<<4)+4|0:ma+(d<<4)+12|0;d=la?ma+(d<<4)|0:ma+(d<<4)+8|0}H=k[d>>2]|0;G=k[e>>2]|0;F=k[g>>2]|0;E=k[n>>2]|0;n=(k[q>>2]|0)-F|0;e=(k[o>>2]|0)-E|0;ma=C-F|0;ka=B-E|0;D=((n|0)<0)<<31>>31;ma=ne(ma|0,((ma|0)<0)<<31>>31|0,n|0,D|0)|0;la=L;d=((e|0)<0)<<31>>31;ka=ne(ka|0,((ka|0)<0)<<31>>31|0,e|0,d|0)|0;la=ge(ka|0,L|0,ma|0,la|0)|0;M=+(n|0);N=+(e|0);P=M*M+N*N;O=(+(la>>>0)+4294967296.0*+(L|0))/P;la=J-F|0;ma=I-E|0;D=ne(la|0,((la|0)<0)<<31>>31|0,n|0,D|0)|0;n=L;d=ne(ma|0,((ma|0)<0)<<31>>31|0,e|0,d|0)|0;n=ge(d|0,L|0,D|0,n|0)|0;P=(+(n>>>0)+4294967296.0*+(L|0))/P-O;R=+$(+aa);n=C;D=B;d=0;e=0;while(1){u=e;while(1){s=O+P*+(d>>>0)/20.0;h=M*s;p[t>>3]=h;e=k[t+4>>2]|0;f=de(k[t>>2]|0,e|0,52)|0;f=f&2047;do if(f>>>0<=1074){e=(e|0)<0;m=e?-h:h;if(f>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=e?-h:h}while(0);g=~~h+F|0;h=N*s;p[t>>3]=h;e=k[t+4>>2]|0;f=de(k[t>>2]|0,e|0,52)|0;f=f&2047;do if(f>>>0<=1074){e=(e|0)<0;m=e?-h:h;if(f>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=e?-h:h}while(0);o=~~h+E|0;h=+(H-g|0);c=+(G-o|0);s=h*h+c*c;c=(N*h-M*c)*2.0;h=N*s/c;p[t>>3]=h;e=k[t+4>>2]|0;f=de(k[t>>2]|0,e|0,52)|0;f=f&2047;do if(f>>>0<=1074){e=(e|0)<0;m=e?-h:h;if(f>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=e?-h:h}while(0);g=~~h+g|0;h=M*s/c;p[t>>3]=h;e=k[t+4>>2]|0;f=de(k[t>>2]|0,e|0,52)|0;f=f&2047;do if(f>>>0<=1074){e=(e|0)<0;m=e?-h:h;if(f>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=e?-h:h}while(0);B=(d|0)==20;C=B?J:g;B=B?I:o-~~h|0;c=+(C-H|0);h=+(B-G|0);h=+X(+(c*c+h*h))/R;p[t>>3]=h;e=k[t+4>>2]|0;f=de(k[t>>2]|0,e|0,52)|0;f=f&2047;do if(f>>>0<=1074){e=(e|0)<0;m=e?-h:h;if(f>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=e?-h:h}while(0);e=0-~~h|0;if(!d){d=1;u=e}else break}v=k[S>>2]|0;f=k[K>>2]|0;do if(v>>>0<f>>>0){i[v>>0]=0;i[v+1>>0]=0;i[v+2>>0]=0;k[v+4>>2]=0;k[v+8>>2]=0;k[v+12>>2]=0;g=v+16|0;o=v+16|0;k[o>>2]=n;k[v+20>>2]=D;k[v+24>>2]=u;f=v+28|0;q=v+28|0;k[q>>2]=C;k[v+32>>2]=B;k[v+36>>2]=e;u=v+40|0;k[u>>2]=1;do if((n|0)<=(C|0)){if((n|0)!=(C|0)){g=C;f=1;na=805;break}if((D|0)<=(B|0)){f=1;na=806}else na=804}else na=804;while(0);if((na|0)==804){k[oa>>2]=k[g>>2];k[oa+4>>2]=k[g+4>>2];k[oa+8>>2]=k[g+8>>2];k[g>>2]=k[f>>2];k[g+4>>2]=k[f+4>>2];k[g+8>>2]=k[f+8>>2];k[f>>2]=k[oa>>2];k[f+4>>2]=k[oa+4>>2];k[f+8>>2]=k[oa+8>>2];k[u>>2]=-1;n=k[o>>2]|0;g=k[q>>2]|0;f=-1;na=805}if((na|0)==805?(na=0,(n|0)==(g|0)):0)na=806;if((na|0)==806){na=0;k[u>>2]=0-f}k[S>>2]=v+44}else{A=k[a>>2]|0;g=A;x=v-g|0;y=(x|0)/44|0;z=y+1|0;if(z>>>0>97612893){na=809;break N}f=(f-g|0)/44|0;if(f>>>0<48806446){f=f<<1;f=f>>>0<z>>>0?z:f;if(!f){f=0;g=0}else na=812}else{f=97612893;na=812}if((na|0)==812){o=f*44|0;o=(o|0)==0?1:o;g=_d(o)|0;if(!g)do{g=k[35]|0;k[35]=g+0;if(!g){na=815;break N}Xa[g&0]();g=_d(o)|0}while((g|0)==0)}w=g+(f*44|0)|0;i[g+(y*44|0)>>0]=0;i[g+(y*44|0)+1>>0]=0;i[g+(y*44|0)+2>>0]=0;k[g+(y*44|0)+4>>2]=0;k[g+(y*44|0)+8>>2]=0;k[g+(y*44|0)+12>>2]=0;q=g+(y*44|0)+16|0;k[q>>2]=n;k[g+(y*44|0)+20>>2]=D;k[g+(y*44|0)+24>>2]=u;f=g+(y*44|0)+28|0;k[f>>2]=C;k[g+(y*44|0)+32>>2]=B;k[g+(y*44|0)+36>>2]=e;v=g+(y*44|0)+40|0;k[v>>2]=1;o=g+(y*44|0)+16|0;u=g+(y*44|0)+28|0;do if((n|0)<=(C|0)){if((n|0)!=(C|0)){o=C;f=1;na=821;break}if((D|0)<=(B|0)){f=1;na=822}else na=820}else na=820;while(0);if((na|0)==820){k[oa>>2]=k[q>>2];k[oa+4>>2]=k[q+4>>2];k[oa+8>>2]=k[q+8>>2];k[q>>2]=k[f>>2];k[q+4>>2]=k[f+4>>2];k[q+8>>2]=k[f+8>>2];k[f>>2]=k[oa>>2];k[f+4>>2]=k[oa+4>>2];k[f+8>>2]=k[oa+8>>2];k[v>>2]=-1;n=k[o>>2]|0;o=k[u>>2]|0;f=-1;na=821}if((na|0)==821?(na=0,(n|0)==(o|0)):0)na=822;if((na|0)==822){na=0;k[v>>2]=0-f}ma=g+((((x|0)/-44|0)+y|0)*44|0)|0;fe(ma|0,A|0,x|0)|0;k[a>>2]=ma;k[S>>2]=g+(z*44|0);k[K>>2]=w;if(!A)break;$d(A)}while(0);d=d+1|0;if((d|0)==21)break O;else{n=C;D=B}}}y=k[A>>2]|0;ma=k[wa>>2]|0;n=ma+(y<<4)|0;o=k[n>>2]|0;x=ma+(y<<4)+4|0;q=k[x>>2]|0;u=ma+(y<<4)+8|0;v=k[u>>2]|0;y=ma+(y<<4)+12|0;w=k[y>>2]|0;g=k[z>>2]|0;d=k[ma+(g<<4)>>2]|0;e=k[ma+(g<<4)+4>>2]|0;f=k[ma+(g<<4)+8>>2]|0;g=k[ma+(g<<4)+12>>2]|0;i[sa>>0]=1;do if((d|0)==(o|0)&(e|0)==(q|0)){ia=v-o|0;fa=w-q|0;ma=f-o|0;ja=g-q|0;ha=((ia|0)<0)<<31>>31;la=((ma|0)<0)<<31>>31;da=ne(ma|0,la|0,ia|0,ha|0)|0;ea=L;ga=((fa|0)<0)<<31>>31;ka=((ja|0)<0)<<31>>31;ca=ne(ja|0,ka|0,fa|0,ga|0)|0;ea=ge(ca|0,L|0,da|0,ea|0)|0;R=+(ea>>>0)+4294967296.0*+(L|0);ea=(ia|0)<0;da=be(0,0,ia|0,ha|0)|0;ia=ea?da:ia;ha=ea?L:ha;ea=(fa|0)<0;da=be(0,0,fa|0,ga|0)|0;fa=ea?da:fa;ga=ea?L:ga;ha=ne(ia|0,ha|0,ia|0,ha|0)|0;ia=L;ga=ne(fa|0,ga|0,fa|0,ga|0)|0;ia=ge(ga|0,L|0,ha|0,ia|0)|0;R=R/+X(+(+(ia>>>0)+4294967296.0*+(L|0)));ia=(ma|0)<0;ha=be(0,0,ma|0,la|0)|0;ma=ia?ha:ma;la=ia?L:la;ia=(ja|0)<0;ha=be(0,0,ja|0,ka|0)|0;ja=ia?ha:ja;ka=ia?L:ka;la=ne(ma|0,la|0,ma|0,la|0)|0;ma=L;ka=ne(ja|0,ka|0,ja|0,ka|0)|0;ma=ge(ka|0,L|0,la|0,ma|0)|0;if(!(R/+X(+(+(ma>>>0)+4294967296.0*+(L|0)))<=-.733459594406401))break;i[sa>>0]=0;break O}else{if((f|0)==(o|0)&(g|0)==(q|0)){ia=v-o|0;fa=w-q|0;ma=d-o|0;ja=e-q|0;ha=((ia|0)<0)<<31>>31;la=((ma|0)<0)<<31>>31;da=ne(ma|0,la|0,ia|0,ha|0)|0;ea=L;ga=((fa|0)<0)<<31>>31;ka=((ja|0)<0)<<31>>31;ca=ne(ja|0,ka|0,fa|0,ga|0)|0;ea=ge(ca|0,L|0,da|0,ea|0)|0;R=+(ea>>>0)+4294967296.0*+(L|0);ea=(ia|0)<0;da=be(0,0,ia|0,ha|0)|0;ia=ea?da:ia;ha=ea?L:ha;ea=(fa|0)<0;da=be(0,0,fa|0,ga|0)|0;fa=ea?da:fa;ga=ea?L:ga;ha=ne(ia|0,ha|0,ia|0,ha|0)|0;ia=L;ga=ne(fa|0,ga|0,fa|0,ga|0)|0;ia=ge(ga|0,L|0,ha|0,ia|0)|0;R=R/+X(+(+(ia>>>0)+4294967296.0*+(L|0)));ia=(ma|0)<0;ha=be(0,0,ma|0,la|0)|0;ma=ia?ha:ma;la=ia?L:la;ia=(ja|0)<0;ha=be(0,0,ja|0,ka|0)|0;ja=ia?ha:ja;ka=ia?L:ka;la=ne(ma|0,la|0,ma|0,la|0)|0;ma=L;ka=ne(ja|0,ka|0,ja|0,ka|0)|0;ma=ge(ka|0,L|0,la|0,ma|0)|0;if(!(R/+X(+(+(ma>>>0)+4294967296.0*+(L|0)))<=-.733459594406401))break;i[sa>>0]=0;break O}if((d|0)==(v|0)&(e|0)==(w|0)){ia=o-v|0;fa=q-w|0;ma=f-v|0;ja=g-w|0;ha=((ia|0)<0)<<31>>31;la=((ma|0)<0)<<31>>31;da=ne(ma|0,la|0,ia|0,ha|0)|0;ea=L;ga=((fa|0)<0)<<31>>31;ka=((ja|0)<0)<<31>>31;ca=ne(ja|0,ka|0,fa|0,ga|0)|0;ea=ge(ca|0,L|0,da|0,ea|0)|0;R=+(ea>>>0)+4294967296.0*+(L|0);ea=(ia|0)<0;da=be(0,0,ia|0,ha|0)|0;ia=ea?da:ia;ha=ea?L:ha;ea=(fa|0)<0;da=be(0,0,fa|0,ga|0)|0;fa=ea?da:fa;ga=ea?L:ga;ha=ne(ia|0,ha|0,ia|0,ha|0)|0;ia=L;ga=ne(fa|0,ga|0,fa|0,ga|0)|0;ia=ge(ga|0,L|0,ha|0,ia|0)|0;R=R/+X(+(+(ia>>>0)+4294967296.0*+(L|0)));ia=(ma|0)<0;ha=be(0,0,ma|0,la|0)|0;ma=ia?ha:ma;la=ia?L:la;ia=(ja|0)<0;ha=be(0,0,ja|0,ka|0)|0;ja=ia?ha:ja;ka=ia?L:ka;la=ne(ma|0,la|0,ma|0,la|0)|0;ma=L;ka=ne(ja|0,ka|0,ja|0,ka|0)|0;ma=ge(ka|0,L|0,la|0,ma|0)|0;if(!(R/+X(+(+(ma>>>0)+4294967296.0*+(L|0)))<=-.733459594406401))break;i[sa>>0]=0;break O}if(!((f|0)==(v|0)&(g|0)==(w|0)))break;ia=o-v|0;fa=q-w|0;ma=d-v|0;ja=e-w|0;ha=((ia|0)<0)<<31>>31;la=((ma|0)<0)<<31>>31;da=ne(ma|0,la|0,ia|0,ha|0)|0;ea=L;ga=((fa|0)<0)<<31>>31;ka=((ja|0)<0)<<31>>31;ca=ne(ja|0,ka|0,fa|0,ga|0)|0;ea=ge(ca|0,L|0,da|0,ea|0)|0;R=+(ea>>>0)+4294967296.0*+(L|0);ea=(ia|0)<0;da=be(0,0,ia|0,ha|0)|0;ia=ea?da:ia;ha=ea?L:ha;ea=(fa|0)<0;da=be(0,0,fa|0,ga|0)|0;fa=ea?da:fa;ga=ea?L:ga;ha=ne(ia|0,ha|0,ia|0,ha|0)|0;ia=L;ga=ne(fa|0,ga|0,fa|0,ga|0)|0;ia=ge(ga|0,L|0,ha|0,ia|0)|0;R=R/+X(+(+(ia>>>0)+4294967296.0*+(L|0)));ia=(ma|0)<0;ha=be(0,0,ma|0,la|0)|0;ma=ia?ha:ma;la=ia?L:la;ia=(ja|0)<0;ha=be(0,0,ja|0,ka|0)|0;ja=ia?ha:ja;ka=ia?L:ka;la=ne(ma|0,la|0,ma|0,la|0)|0;ma=L;ka=ne(ja|0,ka|0,ja|0,ka|0)|0;ma=ge(ka|0,L|0,la|0,ma|0)|0;if(!(R/+X(+(+(ma>>>0)+4294967296.0*+(L|0)))<=-.733459594406401))break;i[sa>>0]=0;break O}while(0);if(!(i[sa>>0]|0))break;d=k[A+8>>2]&31;if((d+-1|0)>>>0>=2){c=+(v-o|0);R=+(w-q|0);P=+X(+(c*c+R*R));c=c/P;P=R/P;R=+(o-C|0);N=+(q-B|0);h=R*c+N*P;R=R-c*h;h=N-P*h;N=+(o-J|0);O=+(q-I|0);s=N*c+O*P;c=N-c*s;s=O-P*s;s=+X(+(c*c+s*s));c=+$(+aa);h=+X(+(R*R+h*h))/c;p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);g=0-~~h|0;h=s/c;p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);f=0-~~h|0;do if((J|0)>=(C|0)){if((J|0)!=(C|0)){e=J;n=I;u=f;d=1;q=C;o=B;na=739;break}if((I|0)>=(B|0)){e=C;n=I;q=C;o=B;d=1;na=740}else{e=C;n=B;u=g;d=-1;q=J;o=I;g=f;na=739}}else{e=C;n=B;u=g;d=-1;q=J;o=I;g=f;na=739}while(0);if((na|0)==739){na=0;if((q|0)==(e|0)){f=u;na=740}else{A=e;z=n;f=u;x=g}}if((na|0)==740){na=0;A=e;z=n;d=0-d|0;x=g}e=k[S>>2]|0;g=k[K>>2]|0;if(e>>>0<g>>>0){i[e>>0]=0;i[e+1>>0]=0;i[e+2>>0]=0;k[e+4>>2]=0;k[e+8>>2]=0;k[e+12>>2]=0;k[e+16>>2]=q;k[e+20>>2]=o;k[e+24>>2]=x;k[e+28>>2]=A;k[e+32>>2]=z;k[e+36>>2]=f;k[e+40>>2]=d;k[S>>2]=e+44;break}y=k[a>>2]|0;n=y;u=e-n|0;v=(u|0)/44|0;w=v+1|0;if(w>>>0>97612893){na=744;break N}e=(g-n|0)/44|0;if(e>>>0<48806446){e=e<<1;e=e>>>0<w>>>0?w:e;if(!e){e=0;g=0}else na=747}else{e=97612893;na=747}if((na|0)==747){na=0;n=e*44|0;n=(n|0)==0?1:n;g=_d(n)|0;if(!g)do{g=k[35]|0;k[35]=g+0;if(!g){na=750;break N}Xa[g&0]();g=_d(n)|0}while((g|0)==0)}ma=g+(v*44|0)|0;i[ma>>0]=0;i[ma+1>>0]=0;i[ma+2>>0]=0;k[ma+4>>2]=0;k[ma+8>>2]=0;k[ma+12>>2]=0;k[ma+16>>2]=q;k[ma+20>>2]=o;k[ma+24>>2]=x;k[ma+28>>2]=A;k[ma+32>>2]=z;k[ma+36>>2]=f;k[ma+40>>2]=d;ma=g+((((u|0)/-44|0)+v|0)*44|0)|0;fe(ma|0,y|0,u|0)|0;k[a>>2]=ma;k[S>>2]=g+(w*44|0);k[K>>2]=g+(e*44|0);if(!y)break;$d(y);break}E=(d|0)==1;F=k[(E?n:u)>>2]|0;E=k[(E?x:y)>>2]|0;P=+(C|0);N=+(J-C|0);O=+(B|0);c=+(I-B|0);M=+$(+aa);A=0;B=0;C=0;D=0;while(1){s=+(C|0);h=P+N*s/20.0;p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);f=A;A=~~h;h=O+c*s/20.0;p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);z=B;B=~~h;R=+(A-F|0);h=+(B-E|0);h=+X(+(R*R+h*h))/M;p[t>>3]=h;d=k[t+4>>2]|0;e=de(k[t>>2]|0,d|0,52)|0;e=e&2047;do if(e>>>0<=1074){d=(d|0)<0;m=d?-h:h;if(e>>>0<1022){h=h*0.0;break}l=m+4503599627370496.0+-4503599627370496.0-m;do if(l>.5)h=m+l+-1.0;else{h=m+l;if(!(l<=-.5))break;h=h+1.0}while(0);h=d?-h:h}while(0);o=D;D=0-~~h|0;if(!C){C=1;continue}q=k[S>>2]|0;d=k[K>>2]|0;do if(q>>>0<d>>>0){i[q>>0]=0;i[q+1>>0]=0;i[q+2>>0]=0;k[q+4>>2]=0;k[q+8>>2]=0;k[q+12>>2]=0;e=q+16|0;g=q+16|0;k[g>>2]=f;k[q+20>>2]=z;k[q+24>>2]=o;d=q+28|0;n=q+28|0;k[n>>2]=A;k[q+32>>2]=B;k[q+36>>2]=D;o=q+40|0;k[o>>2]=1;do if((f|0)<=(A|0)){if((f|0)!=(A|0)){e=A;d=1;na=699;break}if((z|0)<=(B|0)){d=1;na=700}else na=698}else na=698;while(0);if((na|0)==698){k[oa>>2]=k[e>>2];k[oa+4>>2]=k[e+4>>2];k[oa+8>>2]=k[e+8>>2];k[e>>2]=k[d>>2];k[e+4>>2]=k[d+4>>2];k[e+8>>2]=k[d+8>>2];k[d>>2]=k[oa>>2];k[d+4>>2]=k[oa+4>>2];k[d+8>>2]=k[oa+8>>2];k[o>>2]=-1;f=k[g>>2]|0;e=k[n>>2]|0;d=-1;na=699}if((na|0)==699?(na=0,(f|0)==(e|0)):0)na=700;if((na|0)==700){na=0;k[o>>2]=0-d}k[S>>2]=q+44}else{y=k[a>>2]|0;e=y;v=q-e|0;w=(v|0)/44|0;x=w+1|0;if(x>>>0>97612893){na=703;break N}d=(d-e|0)/44|0;if(d>>>0<48806446){d=d<<1;d=d>>>0<x>>>0?x:d;if(!d){d=0;e=0}else na=706}else{d=97612893;na=706}if((na|0)==706){g=d*44|0;g=(g|0)==0?1:g;e=_d(g)|0;if(!e)do{e=k[35]|0;k[35]=e+0;if(!e){na=709;break N}Xa[e&0]();e=_d(g)|0}while((e|0)==0)}u=e+(d*44|0)|0;i[e+(w*44|0)>>0]=0;i[e+(w*44|0)+1>>0]=0;i[e+(w*44|0)+2>>0]=0;k[e+(w*44|0)+4>>2]=0;k[e+(w*44|0)+8>>2]=0;k[e+(w*44|0)+12>>2]=0;n=e+(w*44|0)+16|0;k[n>>2]=f;k[e+(w*44|0)+20>>2]=z;k[e+(w*44|0)+24>>2]=o;d=e+(w*44|0)+28|0;k[d>>2]=A;k[e+(w*44|0)+32>>2]=B;k[e+(w*44|0)+36>>2]=D;q=e+(w*44|0)+40|0;k[q>>2]=1;g=e+(w*44|0)+16|0;o=e+(w*44|0)+28|0;do if((f|0)<=(A|0)){if((f|0)!=(A|0)){g=A;d=1;na=715;break}if((z|0)<=(B|0)){d=1;na=716}else na=714}else na=714;while(0);if((na|0)==714){k[oa>>2]=k[n>>2];k[oa+4>>2]=k[n+4>>2];k[oa+8>>2]=k[n+8>>2];k[n>>2]=k[d>>2];k[n+4>>2]=k[d+4>>2];k[n+8>>2]=k[d+8>>2];k[d>>2]=k[oa>>2];k[d+4>>2]=k[oa+4>>2];k[d+8>>2]=k[oa+8>>2];k[q>>2]=-1;f=k[g>>2]|0;g=k[o>>2]|0;d=-1;na=715}if((na|0)==715?(na=0,(f|0)==(g|0)):0)na=716;if((na|0)==716){na=0;k[q>>2]=0-d}ma=e+((((v|0)/-44|0)+w|0)*44|0)|0;fe(ma|0,y|0,v|0)|0;k[a>>2]=ma;k[S>>2]=e+(x*44|0);k[K>>2]=u;if(!y)break;$d(y)}while(0);C=C+1|0;if((C|0)>=21)break}}while(0);Q=Q+44|0;if((Q|0)==(T|0)){na=827;break}}if((na|0)==703)xa(1340,1363,303,1438);else if((na|0)==709){Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}else if((na|0)==744)xa(1340,1363,303,1438);else if((na|0)==750){Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}else if((na|0)==809)xa(1340,1363,303,1438);else if((na|0)==815){Aa=ya(4)|0;k[Aa>>2]=128;La(Aa|0,8,1)}else if((na|0)==827){pa=k[S>>2]|0;qa=k[a>>2]|0;break}}else{pa=0;qa=0}while(0);k[ua>>2]=(pa-qa|0)/44|0;Nd(1113,ua);if(ta)$d(U);Bc(ra);d=k[Y>>2]|0;e=d;if(d){f=k[Z>>2]|0;if((f|0)!=(d|0))k[Z>>2]=f+(~(((f+-24-e|0)>>>0)/24|0)*24|0);$d(d)}d=k[V>>2]|0;e=d;if(d){f=k[W>>2]|0;if((f|0)!=(d|0))k[W>>2]=f+(~(((f+-24-e|0)>>>0)/24|0)*24|0);$d(d)}f=k[va>>2]|0;g=f;if(f){d=va+4|0;e=k[d>>2]|0;if((e|0)!=(f|0))k[d>>2]=e+(~(((e+-12-g|0)>>>0)/12|0)*12|0);$d(f)}d=k[wa>>2]|0;if(!d){r=Aa;return}e=k[za>>2]|0;if((e|0)!=(d|0))k[za>>2]=e+(~((e+-16-d|0)>>>4)<<4);$d(d);r=Aa;return}function nc(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0;t=r;r=r+32|0;j=t+12|0;l=t;n=a+4|0;o=k[a>>2]|0;f=o;p=(k[n>>2]|0)-f|0;q=p>>5;s=q+1|0;if(s>>>0>134217727)xa(1340,1363,303,1438);m=a+8|0;f=(k[m>>2]|0)-f|0;if(f>>5>>>0<67108863){f=f>>4;f=f>>>0<s>>>0?s:f;if(!f){f=0;g=0}else h=5}else{f=134217727;h=5}if((h|0)==5){h=f<<5;h=(h|0)==0?1:h;g=_d(h)|0;a:do if(!g){while(1){g=k[35]|0;k[35]=g+0;if(!g)break;Xa[g&0]();g=_d(h)|0;if(g)break a}t=ya(4)|0;k[t>>2]=128;La(t|0,8,1)}while(0)}h=g+(q<<5)|0;k[j>>2]=k[b>>2];k[j+4>>2]=k[b+4>>2];k[j+8>>2]=k[b+8>>2];k[l>>2]=k[c>>2];k[l+4>>2]=k[c+4>>2];k[l+8>>2]=k[c+8>>2];d=i[d>>0]|0;e=k[e>>2]|0;k[h>>2]=k[j>>2];k[h+4>>2]=k[j+4>>2];k[h+8>>2]=k[j+8>>2];c=g+(q<<5)+12|0;k[c>>2]=k[l>>2];k[c+4>>2]=k[l+4>>2];k[c+8>>2]=k[l+8>>2];k[g+(q<<5)+24>>2]=e;i[g+(q<<5)+28>>0]=d;i[g+(q<<5)+29>>0]=0;fe(g|0,o|0,p|0)|0;k[a>>2]=g;k[n>>2]=g+(s<<5);k[m>>2]=g+(f<<5);if(!o){r=t;return}$d(o);r=t;return}function oc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0;w=r;r=r+64|0;v=w+24|0;u=w;a:while(1){n=b;p=b+-32|0;o=b+-64|0;q=b+-28|0;s=a;b:while(1){m=s;a=n-m|0;c=a>>5;switch(c|0){case 2:{h=4;break a}case 3:{h=8;break a}case 4:{h=26;break a}case 5:{h=27;break a}case 1:case 0:{h=136;break a}default:{}}if((a|0)<992){h=29;break a}e=(c|0)/2|0;f=s+(e<<5)|0;do if((a|0)>31968){a=(c|0)/4|0;c=f;l=s;a=wc(s,s+(a<<5)|0,f,s+(a+e<<5)|0,p)|0}else{c=k[f>>2]|0;a=k[s>>2]|0;if((c|0)>=(a|0))if((c|0)==(a|0))d=(k[s+(e<<5)+4>>2]|0)<(k[s+4>>2]|0);else d=0;else d=1;a=k[p>>2]|0;if((a|0)>=(c|0))if((a|0)==(c|0))a=(k[q>>2]|0)<(k[s+(e<<5)+4>>2]|0);else a=0;else a=1;if(!d){if(!a){c=f;l=s;a=0;break};k[v>>2]=k[f>>2];k[v+4>>2]=k[f+4>>2];k[v+8>>2]=k[f+8>>2];k[v+12>>2]=k[f+12>>2];k[v+16>>2]=k[f+16>>2];k[v+20>>2]=k[f+20>>2];k[v+24>>2]=k[f+24>>2];k[v+28>>2]=k[f+28>>2];k[f>>2]=k[p>>2];k[f+4>>2]=k[p+4>>2];k[f+8>>2]=k[p+8>>2];k[f+12>>2]=k[p+12>>2];k[f+16>>2]=k[p+16>>2];k[f+20>>2]=k[p+20>>2];k[f+24>>2]=k[p+24>>2];j[f+28>>1]=j[p+28>>1]|0;k[p>>2]=k[v>>2];k[p+4>>2]=k[v+4>>2];k[p+8>>2]=k[v+8>>2];k[p+12>>2]=k[v+12>>2];k[p+16>>2]=k[v+16>>2];k[p+20>>2]=k[v+20>>2];k[p+24>>2]=k[v+24>>2];j[p+28>>1]=j[v+28>>1]|0;a=k[f>>2]|0;c=k[s>>2]|0;if((a|0)>=(c|0)){if((a|0)!=(c|0)){c=f;l=s;a=1;break}if((k[s+(e<<5)+4>>2]|0)>=(k[s+4>>2]|0)){c=f;l=s;a=1;break}};k[v>>2]=k[s>>2];k[v+4>>2]=k[s+4>>2];k[v+8>>2]=k[s+8>>2];k[v+12>>2]=k[s+12>>2];k[v+16>>2]=k[s+16>>2];k[v+20>>2]=k[s+20>>2];k[v+24>>2]=k[s+24>>2];k[v+28>>2]=k[s+28>>2];k[s>>2]=k[f>>2];k[s+4>>2]=k[f+4>>2];k[s+8>>2]=k[f+8>>2];k[s+12>>2]=k[f+12>>2];k[s+16>>2]=k[f+16>>2];k[s+20>>2]=k[f+20>>2];k[s+24>>2]=k[f+24>>2];j[s+28>>1]=j[f+28>>1]|0;k[f>>2]=k[v>>2];k[f+4>>2]=k[v+4>>2];k[f+8>>2]=k[v+8>>2];k[f+12>>2]=k[v+12>>2];k[f+16>>2]=k[v+16>>2];k[f+20>>2]=k[v+20>>2];k[f+24>>2]=k[v+24>>2];j[f+28>>1]=j[v+28>>1]|0;c=f;l=s;a=2;break};k[v>>2]=k[s>>2];k[v+4>>2]=k[s+4>>2];k[v+8>>2]=k[s+8>>2];k[v+12>>2]=k[s+12>>2];k[v+16>>2]=k[s+16>>2];k[v+20>>2]=k[s+20>>2];k[v+24>>2]=k[s+24>>2];k[v+28>>2]=k[s+28>>2];if(a){k[s>>2]=k[p>>2];k[s+4>>2]=k[p+4>>2];k[s+8>>2]=k[p+8>>2];k[s+12>>2]=k[p+12>>2];k[s+16>>2]=k[p+16>>2];k[s+20>>2]=k[p+20>>2];k[s+24>>2]=k[p+24>>2];j[s+28>>1]=j[p+28>>1]|0;k[p>>2]=k[v>>2];k[p+4>>2]=k[v+4>>2];k[p+8>>2]=k[v+8>>2];k[p+12>>2]=k[v+12>>2];k[p+16>>2]=k[v+16>>2];k[p+20>>2]=k[v+20>>2];k[p+24>>2]=k[v+24>>2];j[p+28>>1]=j[v+28>>1]|0;c=f;l=s;a=1;break};k[s>>2]=k[f>>2];k[s+4>>2]=k[f+4>>2];k[s+8>>2]=k[f+8>>2];k[s+12>>2]=k[f+12>>2];k[s+16>>2]=k[f+16>>2];k[s+20>>2]=k[f+20>>2];k[s+24>>2]=k[f+24>>2];j[s+28>>1]=j[f+28>>1]|0;k[f>>2]=k[v>>2];k[f+4>>2]=k[v+4>>2];k[f+8>>2]=k[v+8>>2];k[f+12>>2]=k[v+12>>2];k[f+16>>2]=k[v+16>>2];k[f+20>>2]=k[v+20>>2];k[f+24>>2]=k[v+24>>2];j[f+28>>1]=j[v+28>>1]|0;a=k[p>>2]|0;c=k[f>>2]|0;if((a|0)>=(c|0)){if((a|0)!=(c|0)){c=f;l=s;a=1;break}if((k[q>>2]|0)>=(k[s+(e<<5)+4>>2]|0)){c=f;l=s;a=1;break}};k[v>>2]=k[f>>2];k[v+4>>2]=k[f+4>>2];k[v+8>>2]=k[f+8>>2];k[v+12>>2]=k[f+12>>2];k[v+16>>2]=k[f+16>>2];k[v+20>>2]=k[f+20>>2];k[v+24>>2]=k[f+24>>2];k[v+28>>2]=k[f+28>>2];k[f>>2]=k[p>>2];k[f+4>>2]=k[p+4>>2];k[f+8>>2]=k[p+8>>2];k[f+12>>2]=k[p+12>>2];k[f+16>>2]=k[p+16>>2];k[f+20>>2]=k[p+20>>2];k[f+24>>2]=k[p+24>>2];j[f+28>>1]=j[p+28>>1]|0;k[p>>2]=k[v>>2];k[p+4>>2]=k[v+4>>2];k[p+8>>2]=k[v+8>>2];k[p+12>>2]=k[v+12>>2];k[p+16>>2]=k[v+16>>2];k[p+20>>2]=k[v+20>>2];k[p+24>>2]=k[v+24>>2];j[p+28>>1]=j[v+28>>1]|0;c=f;l=s;a=2}while(0);i=k[l>>2]|0;h=k[c>>2]|0;c:do if((i|0)<(h|0))d=p;else{if((i|0)==(h|0)?(k[s+4>>2]|0)<(k[s+(e<<5)+4>>2]|0):0){d=p;break}d:do if((s|0)!=(o|0)){g=s+(e<<5)+4|0;d=o;e=p;while(1){c=k[d>>2]|0;if((c|0)<(h|0))break;if((c|0)==(h|0)?(k[e+-28>>2]|0)<(k[g>>2]|0):0)break;c=d+-32|0;if((s|0)==(c|0))break d;else{e=d;d=c}}k[v>>2]=k[s>>2];k[v+4>>2]=k[s+4>>2];k[v+8>>2]=k[s+8>>2];k[v+12>>2]=k[s+12>>2];k[v+16>>2]=k[s+16>>2];k[v+20>>2]=k[s+20>>2];k[v+24>>2]=k[s+24>>2];k[v+28>>2]=k[s+28>>2];k[s>>2]=k[d>>2];k[s+4>>2]=k[d+4>>2];k[s+8>>2]=k[d+8>>2];k[s+12>>2]=k[d+12>>2];k[s+16>>2]=k[d+16>>2];k[s+20>>2]=k[d+20>>2];k[s+24>>2]=k[d+24>>2];j[s+28>>1]=j[d+28>>1]|0;k[d>>2]=k[v>>2];k[d+4>>2]=k[v+4>>2];k[d+8>>2]=k[v+8>>2];k[d+12>>2]=k[v+12>>2];k[d+16>>2]=k[v+16>>2];k[d+20>>2]=k[v+20>>2];k[d+24>>2]=k[v+24>>2];j[d+28>>1]=j[v+28>>1]|0;a=a+1|0;break c}while(0);a=s+32|0;c=k[p>>2]|0;do if((i|0)>=(c|0)){if((i|0)==(c|0)?(k[s+4>>2]|0)<(k[q>>2]|0):0)break;if((a|0)==(p|0)){h=136;break a}e=s+4|0;d=s;while(1){c=k[d+32>>2]|0;if((i|0)<(c|0))break;if((i|0)==(c|0)?(k[e>>2]|0)<(k[d+36>>2]|0):0)break;c=a+32|0;if((c|0)==(p|0)){h=136;break a}else{d=a;a=c}}k[v>>2]=k[a>>2];k[v+4>>2]=k[a+4>>2];k[v+8>>2]=k[a+8>>2];k[v+12>>2]=k[a+12>>2];k[v+16>>2]=k[a+16>>2];k[v+20>>2]=k[a+20>>2];k[v+24>>2]=k[a+24>>2];k[v+28>>2]=k[a+28>>2];k[a>>2]=k[p>>2];k[a+4>>2]=k[p+4>>2];k[a+8>>2]=k[p+8>>2];k[a+12>>2]=k[p+12>>2];k[a+16>>2]=k[p+16>>2];k[a+20>>2]=k[p+20>>2];k[a+24>>2]=k[p+24>>2];j[a+28>>1]=j[p+28>>1]|0;k[p>>2]=k[v>>2];k[p+4>>2]=k[v+4>>2];k[p+8>>2]=k[v+8>>2];k[p+12>>2]=k[v+12>>2];k[p+16>>2]=k[v+16>>2];k[p+20>>2]=k[v+20>>2];k[p+24>>2]=k[v+24>>2];j[p+28>>1]=j[v+28>>1]|0;a=d+64|0}while(0);if((a|0)==(p|0)){h=136;break a}g=s+4|0;e=p;while(1){f=k[l>>2]|0;c=k[a>>2]|0;e:do if((f|0)>=(c|0))do{if((f|0)==(c|0)?(k[g>>2]|0)<(k[a+4>>2]|0):0)break e;a=a+32|0;c=k[a>>2]|0}while((f|0)>=(c|0));while(0);while(1){d=e;e=e+-32|0;c=k[e>>2]|0;if((f|0)<(c|0))continue;if((f|0)!=(c|0))break;if((k[g>>2]|0)>=(k[d+-28>>2]|0))break}if(a>>>0>=e>>>0){s=a;continue b};k[v>>2]=k[a>>2];k[v+4>>2]=k[a+4>>2];k[v+8>>2]=k[a+8>>2];k[v+12>>2]=k[a+12>>2];k[v+16>>2]=k[a+16>>2];k[v+20>>2]=k[a+20>>2];k[v+24>>2]=k[a+24>>2];k[v+28>>2]=k[a+28>>2];k[a>>2]=k[e>>2];k[a+4>>2]=k[e+4>>2];k[a+8>>2]=k[e+8>>2];k[a+12>>2]=k[e+12>>2];k[a+16>>2]=k[e+16>>2];k[a+20>>2]=k[e+20>>2];k[a+24>>2]=k[e+24>>2];j[a+28>>1]=j[e+28>>1]|0;k[e>>2]=k[v>>2];k[e+4>>2]=k[v+4>>2];k[e+8>>2]=k[v+8>>2];k[e+12>>2]=k[v+12>>2];k[e+16>>2]=k[v+16>>2];k[e+20>>2]=k[v+20>>2];k[e+24>>2]=k[v+24>>2];j[e+28>>1]=j[v+28>>1]|0;a=a+32|0}}while(0);c=s+32|0;f:do if(c>>>0<d>>>0){e=d;while(1){g=k[f>>2]|0;h=f+4|0;i=c;while(1){c=k[i>>2]|0;if((c|0)>=(g|0)){if((c|0)!=(g|0))break;if((k[i+4>>2]|0)>=(k[h>>2]|0))break}i=i+32|0}d=e+-32|0;c=k[d>>2]|0;g:do if((c|0)>=(g|0))while(1){if((c|0)==(g|0)?(k[e+-28>>2]|0)<(k[h>>2]|0):0)break g;e=d+-32|0;c=k[e>>2]|0;if((c|0)<(g|0)){d=e;break}else{l=d;d=e;e=l}}while(0);if(i>>>0>d>>>0){c=i;break f};k[v>>2]=k[i>>2];k[v+4>>2]=k[i+4>>2];k[v+8>>2]=k[i+8>>2];k[v+12>>2]=k[i+12>>2];k[v+16>>2]=k[i+16>>2];k[v+20>>2]=k[i+20>>2];k[v+24>>2]=k[i+24>>2];k[v+28>>2]=k[i+28>>2];k[i>>2]=k[d>>2];k[i+4>>2]=k[d+4>>2];k[i+8>>2]=k[d+8>>2];k[i+12>>2]=k[d+12>>2];k[i+16>>2]=k[d+16>>2];k[i+20>>2]=k[d+20>>2];k[i+24>>2]=k[d+24>>2];j[i+28>>1]=j[d+28>>1]|0;k[d>>2]=k[v>>2];k[d+4>>2]=k[v+4>>2];k[d+8>>2]=k[v+8>>2];k[d+12>>2]=k[v+12>>2];k[d+16>>2]=k[v+16>>2];k[d+20>>2]=k[v+20>>2];k[d+24>>2]=k[v+24>>2];j[d+28>>1]=j[v+28>>1]|0;c=i+32|0;e=d;f=(f|0)==(i|0)?d:f;a=a+1|0}}while(0);do if((c|0)!=(f|0)){d=k[f>>2]|0;e=k[c>>2]|0;if((d|0)>=(e|0)){if((d|0)!=(e|0))break;if((k[f+4>>2]|0)>=(k[c+4>>2]|0))break};k[v>>2]=k[c>>2];k[v+4>>2]=k[c+4>>2];k[v+8>>2]=k[c+8>>2];k[v+12>>2]=k[c+12>>2];k[v+16>>2]=k[c+16>>2];k[v+20>>2]=k[c+20>>2];k[v+24>>2]=k[c+24>>2];k[v+28>>2]=k[c+28>>2];k[c>>2]=k[f>>2];k[c+4>>2]=k[f+4>>2];k[c+8>>2]=k[f+8>>2];k[c+12>>2]=k[f+12>>2];k[c+16>>2]=k[f+16>>2];k[c+20>>2]=k[f+20>>2];k[c+24>>2]=k[f+24>>2];j[c+28>>1]=j[f+28>>1]|0;k[f>>2]=k[v>>2];k[f+4>>2]=k[v+4>>2];k[f+8>>2]=k[v+8>>2];k[f+12>>2]=k[v+12>>2];k[f+16>>2]=k[v+16>>2];k[f+20>>2]=k[v+20>>2];k[f+24>>2]=k[v+24>>2];j[f+28>>1]=j[v+28>>1]|0;a=a+1|0}while(0);if(!a){d=xc(s,c)|0;a=c+32|0;if(xc(a,b)|0){h=131;break}if(d){s=a;continue}}l=c;if((l-m|0)>=(n-l|0)){h=135;break}oc(s,c);s=c+32|0}if((h|0)==131)if(d){h=136;break}else{a=s;b=c;continue}else if((h|0)==135){oc(c+32|0,b);a=s;b=c;continue}}if((h|0)==4){a=k[p>>2]|0;b=k[s>>2]|0;if((a|0)>=(b|0)){if((a|0)!=(b|0)){r=w;return}if((k[q>>2]|0)>=(k[s+4>>2]|0)){r=w;return}};k[v>>2]=k[s>>2];k[v+4>>2]=k[s+4>>2];k[v+8>>2]=k[s+8>>2];k[v+12>>2]=k[s+12>>2];k[v+16>>2]=k[s+16>>2];k[v+20>>2]=k[s+20>>2];k[v+24>>2]=k[s+24>>2];k[v+28>>2]=k[s+28>>2];k[s>>2]=k[p>>2];k[s+4>>2]=k[p+4>>2];k[s+8>>2]=k[p+8>>2];k[s+12>>2]=k[p+12>>2];k[s+16>>2]=k[p+16>>2];k[s+20>>2]=k[p+20>>2];k[s+24>>2]=k[p+24>>2];j[s+28>>1]=j[p+28>>1]|0;k[p>>2]=k[v>>2];k[p+4>>2]=k[v+4>>2];k[p+8>>2]=k[v+8>>2];k[p+12>>2]=k[v+12>>2];k[p+16>>2]=k[v+16>>2];k[p+20>>2]=k[v+20>>2];k[p+24>>2]=k[v+24>>2];j[p+28>>1]=j[v+28>>1]|0;r=w;return}else if((h|0)==8){d=s+32|0;b=k[d>>2]|0;a=k[s>>2]|0;if((b|0)>=(a|0))if((b|0)==(a|0))c=(k[s+36>>2]|0)<(k[s+4>>2]|0);else c=0;else c=1;a=k[p>>2]|0;if((a|0)>=(b|0))if((a|0)==(b|0))a=(k[q>>2]|0)<(k[s+36>>2]|0);else a=0;else a=1;if(!c){if(!a){r=w;return};k[v>>2]=k[d>>2];k[v+4>>2]=k[d+4>>2];k[v+8>>2]=k[d+8>>2];k[v+12>>2]=k[d+12>>2];k[v+16>>2]=k[d+16>>2];k[v+20>>2]=k[d+20>>2];k[v+24>>2]=k[d+24>>2];k[v+28>>2]=k[d+28>>2];k[d>>2]=k[p>>2];k[d+4>>2]=k[p+4>>2];k[d+8>>2]=k[p+8>>2];k[d+12>>2]=k[p+12>>2];k[d+16>>2]=k[p+16>>2];k[d+20>>2]=k[p+20>>2];k[d+24>>2]=k[p+24>>2];j[d+28>>1]=j[p+28>>1]|0;k[p>>2]=k[v>>2];k[p+4>>2]=k[v+4>>2];k[p+8>>2]=k[v+8>>2];k[p+12>>2]=k[v+12>>2];k[p+16>>2]=k[v+16>>2];k[p+20>>2]=k[v+20>>2];k[p+24>>2]=k[v+24>>2];j[p+28>>1]=j[v+28>>1]|0;a=k[d>>2]|0;b=k[s>>2]|0;if((a|0)>=(b|0)){if((a|0)!=(b|0)){r=w;return}if((k[s+36>>2]|0)>=(k[s+4>>2]|0)){r=w;return}};k[v>>2]=k[s>>2];k[v+4>>2]=k[s+4>>2];k[v+8>>2]=k[s+8>>2];k[v+12>>2]=k[s+12>>2];k[v+16>>2]=k[s+16>>2];k[v+20>>2]=k[s+20>>2];k[v+24>>2]=k[s+24>>2];k[v+28>>2]=k[s+28>>2];k[s>>2]=k[d>>2];k[s+4>>2]=k[d+4>>2];k[s+8>>2]=k[d+8>>2];k[s+12>>2]=k[d+12>>2];k[s+16>>2]=k[d+16>>2];k[s+20>>2]=k[d+20>>2];k[s+24>>2]=k[d+24>>2];j[s+28>>1]=j[d+28>>1]|0;k[d>>2]=k[v>>2];k[d+4>>2]=k[v+4>>2];k[d+8>>2]=k[v+8>>2];k[d+12>>2]=k[v+12>>2];k[d+16>>2]=k[v+16>>2];k[d+20>>2]=k[v+20>>2];k[d+24>>2]=k[v+24>>2];j[d+28>>1]=j[v+28>>1]|0;r=w;return};k[v>>2]=k[s>>2];k[v+4>>2]=k[s+4>>2];k[v+8>>2]=k[s+8>>2];k[v+12>>2]=k[s+12>>2];k[v+16>>2]=k[s+16>>2];k[v+20>>2]=k[s+20>>2];k[v+24>>2]=k[s+24>>2];k[v+28>>2]=k[s+28>>2];if(a){k[s>>2]=k[p>>2];k[s+4>>2]=k[p+4>>2];k[s+8>>2]=k[p+8>>2];k[s+12>>2]=k[p+12>>2];k[s+16>>2]=k[p+16>>2];k[s+20>>2]=k[p+20>>2];k[s+24>>2]=k[p+24>>2];j[s+28>>1]=j[p+28>>1]|0;k[p>>2]=k[v>>2];k[p+4>>2]=k[v+4>>2];k[p+8>>2]=k[v+8>>2];k[p+12>>2]=k[v+12>>2];k[p+16>>2]=k[v+16>>2];k[p+20>>2]=k[v+20>>2];k[p+24>>2]=k[v+24>>2];j[p+28>>1]=j[v+28>>1]|0;r=w;return};k[s>>2]=k[d>>2];k[s+4>>2]=k[d+4>>2];k[s+8>>2]=k[d+8>>2];k[s+12>>2]=k[d+12>>2];k[s+16>>2]=k[d+16>>2];k[s+20>>2]=k[d+20>>2];k[s+24>>2]=k[d+24>>2];j[s+28>>1]=j[d+28>>1]|0;k[d>>2]=k[v>>2];k[d+4>>2]=k[v+4>>2];k[d+8>>2]=k[v+8>>2];k[d+12>>2]=k[v+12>>2];k[d+16>>2]=k[v+16>>2];k[d+20>>2]=k[v+20>>2];k[d+24>>2]=k[v+24>>2];j[d+28>>1]=j[v+28>>1]|0;a=k[p>>2]|0;b=k[d>>2]|0;if((a|0)>=(b|0)){if((a|0)!=(b|0)){r=w;return}if((k[q>>2]|0)>=(k[s+36>>2]|0)){r=w;return}};k[v>>2]=k[d>>2];k[v+4>>2]=k[d+4>>2];k[v+8>>2]=k[d+8>>2];k[v+12>>2]=k[d+12>>2];k[v+16>>2]=k[d+16>>2];k[v+20>>2]=k[d+20>>2];k[v+24>>2]=k[d+24>>2];k[v+28>>2]=k[d+28>>2];k[d>>2]=k[p>>2];k[d+4>>2]=k[p+4>>2];k[d+8>>2]=k[p+8>>2];k[d+12>>2]=k[p+12>>2];k[d+16>>2]=k[p+16>>2];k[d+20>>2]=k[p+20>>2];k[d+24>>2]=k[p+24>>2];j[d+28>>1]=j[p+28>>1]|0;k[p>>2]=k[v>>2];k[p+4>>2]=k[v+4>>2];k[p+8>>2]=k[v+8>>2];k[p+12>>2]=k[v+12>>2];k[p+16>>2]=k[v+16>>2];k[p+20>>2]=k[v+20>>2];k[p+24>>2]=k[v+24>>2];j[p+28>>1]=j[v+28>>1]|0;r=w;return}else if((h|0)==26){vc(s,s+32|0,s+64|0,p)|0;r=w;return}else if((h|0)==27){wc(s,s+32|0,s+64|0,s+96|0,p)|0;r=w;return}else if((h|0)==29){c=s+64|0;g=s+32|0;a=k[g>>2]|0;e=k[s>>2]|0;if((a|0)>=(e|0))if((a|0)==(e|0))d=(k[s+36>>2]|0)<(k[s+4>>2]|0);else d=0;else d=1;f=k[c>>2]|0;if((f|0)>=(a|0))if((f|0)==(a|0))a=(k[s+68>>2]|0)<(k[s+36>>2]|0);else a=0;else a=1;do if(!d){if(a){k[v>>2]=k[g>>2];k[v+4>>2]=k[g+4>>2];k[v+8>>2]=k[g+8>>2];k[v+12>>2]=k[g+12>>2];k[v+16>>2]=k[g+16>>2];k[v+20>>2]=k[g+20>>2];k[v+24>>2]=k[g+24>>2];k[v+28>>2]=k[g+28>>2];k[g>>2]=k[c>>2];k[g+4>>2]=k[c+4>>2];k[g+8>>2]=k[c+8>>2];k[g+12>>2]=k[c+12>>2];k[g+16>>2]=k[c+16>>2];k[g+20>>2]=k[c+20>>2];k[g+24>>2]=k[c+24>>2];j[g+28>>1]=j[c+28>>1]|0;k[c>>2]=k[v>>2];k[c+4>>2]=k[v+4>>2];k[c+8>>2]=k[v+8>>2];k[c+12>>2]=k[v+12>>2];k[c+16>>2]=k[v+16>>2];k[c+20>>2]=k[v+20>>2];k[c+24>>2]=k[v+24>>2];j[c+28>>1]=j[v+28>>1]|0;a=k[g>>2]|0;if((a|0)>=(e|0)){if((a|0)!=(e|0))break;if((k[s+36>>2]|0)>=(k[s+4>>2]|0))break};k[v>>2]=k[s>>2];k[v+4>>2]=k[s+4>>2];k[v+8>>2]=k[s+8>>2];k[v+12>>2]=k[s+12>>2];k[v+16>>2]=k[s+16>>2];k[v+20>>2]=k[s+20>>2];k[v+24>>2]=k[s+24>>2];k[v+28>>2]=k[s+28>>2];k[s>>2]=k[g>>2];k[s+4>>2]=k[g+4>>2];k[s+8>>2]=k[g+8>>2];k[s+12>>2]=k[g+12>>2];k[s+16>>2]=k[g+16>>2];k[s+20>>2]=k[g+20>>2];k[s+24>>2]=k[g+24>>2];j[s+28>>1]=j[g+28>>1]|0;k[g>>2]=k[v>>2];k[g+4>>2]=k[v+4>>2];k[g+8>>2]=k[v+8>>2];k[g+12>>2]=k[v+12>>2];k[g+16>>2]=k[v+16>>2];k[g+20>>2]=k[v+20>>2];k[g+24>>2]=k[v+24>>2];j[g+28>>1]=j[v+28>>1]|0}}else{k[v>>2]=k[s>>2];k[v+4>>2]=k[s+4>>2];k[v+8>>2]=k[s+8>>2];k[v+12>>2]=k[s+12>>2];k[v+16>>2]=k[s+16>>2];k[v+20>>2]=k[s+20>>2];k[v+24>>2]=k[s+24>>2];k[v+28>>2]=k[s+28>>2];if(a){k[s>>2]=k[c>>2];k[s+4>>2]=k[c+4>>2];k[s+8>>2]=k[c+8>>2];k[s+12>>2]=k[c+12>>2];k[s+16>>2]=k[c+16>>2];k[s+20>>2]=k[c+20>>2];k[s+24>>2]=k[c+24>>2];j[s+28>>1]=j[c+28>>1]|0;k[c>>2]=k[v>>2];k[c+4>>2]=k[v+4>>2];k[c+8>>2]=k[v+8>>2];k[c+12>>2]=k[v+12>>2];k[c+16>>2]=k[v+16>>2];k[c+20>>2]=k[v+20>>2];k[c+24>>2]=k[v+24>>2];j[c+28>>1]=j[v+28>>1]|0;break};k[s>>2]=k[g>>2];k[s+4>>2]=k[g+4>>2];k[s+8>>2]=k[g+8>>2];k[s+12>>2]=k[g+12>>2];k[s+16>>2]=k[g+16>>2];k[s+20>>2]=k[g+20>>2];k[s+24>>2]=k[g+24>>2];j[s+28>>1]=j[g+28>>1]|0;k[g>>2]=k[v>>2];k[g+4>>2]=k[v+4>>2];k[g+8>>2]=k[v+8>>2];k[g+12>>2]=k[v+12>>2];k[g+16>>2]=k[v+16>>2];k[g+20>>2]=k[v+20>>2];k[g+24>>2]=k[v+24>>2];j[g+28>>1]=j[v+28>>1]|0;a=k[g>>2]|0;if((f|0)>=(a|0)){if((f|0)!=(a|0))break;if((k[s+68>>2]|0)>=(k[s+36>>2]|0))break};k[v>>2]=k[g>>2];k[v+4>>2]=k[g+4>>2];k[v+8>>2]=k[g+8>>2];k[v+12>>2]=k[g+12>>2];k[v+16>>2]=k[g+16>>2];k[v+20>>2]=k[g+20>>2];k[v+24>>2]=k[g+24>>2];k[v+28>>2]=k[g+28>>2];k[g>>2]=k[c>>2];k[g+4>>2]=k[c+4>>2];k[g+8>>2]=k[c+8>>2];k[g+12>>2]=k[c+12>>2];k[g+16>>2]=k[c+16>>2];k[g+20>>2]=k[c+20>>2];k[g+24>>2]=k[c+24>>2];j[g+28>>1]=j[c+28>>1]|0;k[c>>2]=k[v>>2];k[c+4>>2]=k[v+4>>2];k[c+8>>2]=k[v+8>>2];k[c+12>>2]=k[v+12>>2];k[c+16>>2]=k[v+16>>2];k[c+20>>2]=k[v+20>>2];k[c+24>>2]=k[v+24>>2];j[c+28>>1]=j[v+28>>1]|0}while(0);a=s+96|0;if((a|0)!=(b|0)){g=a;while(1){f=k[g>>2]|0;a=k[c>>2]|0;if((f|0)>=(a|0)){if((f|0)==(a|0)?(t=k[g+4>>2]|0,(t|0)<(k[c+4>>2]|0)):0){e=t;h=52}}else{e=k[g+4>>2]|0;h=52}if((h|0)==52){h=0;v=g+8|0;k[u>>2]=k[v>>2];k[u+4>>2]=k[v+4>>2];k[u+8>>2]=k[v+8>>2];k[u+12>>2]=k[v+12>>2];k[u+16>>2]=k[v+16>>2];k[u+20>>2]=k[v+20>>2];k[g>>2]=k[c>>2];k[g+4>>2]=k[c+4>>2];k[g+8>>2]=k[c+8>>2];k[g+12>>2]=k[c+12>>2];k[g+16>>2]=k[c+16>>2];k[g+20>>2]=k[c+20>>2];k[g+24>>2]=k[c+24>>2];j[g+28>>1]=j[c+28>>1]|0;h:do if((c|0)==(s|0))a=s;else while(1){a=c;c=c+-32|0;d=k[c>>2]|0;if((f|0)>=(d|0)){if((f|0)!=(d|0))break h;if((e|0)>=(k[a+-28>>2]|0))break h};k[a>>2]=k[c>>2];k[a+4>>2]=k[c+4>>2];k[a+8>>2]=k[c+8>>2];k[a+12>>2]=k[c+12>>2];k[a+16>>2]=k[c+16>>2];k[a+20>>2]=k[c+20>>2];k[a+24>>2]=k[c+24>>2];j[a+28>>1]=j[c+28>>1]|0;if((c|0)==(s|0)){a=s;break}}while(0);k[a>>2]=f;k[a+4>>2]=e;v=a+8|0;k[v>>2]=k[u>>2];k[v+4>>2]=k[u+4>>2];k[v+8>>2]=k[u+8>>2];k[v+12>>2]=k[u+12>>2];k[v+16>>2]=k[u+16>>2];j[v+20>>1]=j[u+20>>1]|0}a=g+32|0;if((a|0)==(b|0))break;else{c=g;g=a}}}r=w;return}else if((h|0)==136){r=w;return}}function pc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;s=b+16|0;e=k[s>>2]|0;f=k[e>>2]|0;g=k[e+4>>2]|0;do if((f|0)!=(g|0)){if((k[c+16>>2]|0)==(k[g+-16>>2]|0)?(k[c+20>>2]|0)==(k[g+-12>>2]|0):0){f=g;break}rc(+p[b>>3],k[b+20>>2]|0,e);e=k[s>>2]|0;f=k[e>>2]|0;g=e+4|0;h=k[g>>2]|0;if((h|0)!=(f|0)){k[g>>2]=h+(~(((h+-44-f|0)>>>0)/44|0)*44|0);f=k[s>>2]|0;e=f;f=k[f+4>>2]|0}}while(0);o=e+4|0;q=e+8|0;g=k[q>>2]|0;if(f>>>0>=g>>>0){r=k[e>>2]|0;h=r;l=f-h|0;m=(l|0)/44|0;n=m+1|0;if(n>>>0>97612893)xa(1340,1363,303,1438);f=(g-h|0)/44|0;if(f>>>0<48806446){f=f<<1;f=f>>>0<n>>>0?n:f;if(!f){f=0;g=0}else w=12}else{f=97612893;w=12}if((w|0)==12){h=f*44|0;h=(h|0)==0?1:h;g=_d(h)|0;a:do if(!g){while(1){g=k[35]|0;k[35]=g+0;if(!g)break;Xa[g&0]();g=_d(h)|0;if(g)break a}b=ya(4)|0;k[b>>2]=128;La(b|0,8,1)}while(0)}h=g+(f*44|0)|0;f=g+(m*44|0)|0;i=c;j=f+44|0;do{k[f>>2]=k[i>>2];f=f+4|0;i=i+4|0}while((f|0)<(j|0));m=g+((((l|0)/-44|0)+m|0)*44|0)|0;fe(m|0,r|0,l|0)|0;k[e>>2]=m;k[o>>2]=g+(n*44|0);k[q>>2]=h;if(r)$d(r)}else{i=c;j=f+44|0;do{k[f>>2]=k[i>>2];f=f+4|0;i=i+4|0}while((f|0)<(j|0));k[o>>2]=(k[o>>2]|0)+44}if(!(!d?(k[c+36>>2]|0)!=0:0))w=21;if((w|0)==21?(rc(+p[b>>3],k[b+20>>2]|0,k[s>>2]|0),u=k[s>>2]|0,t=k[u>>2]|0,u=u+4|0,v=k[u>>2]|0,(v|0)!=(t|0)):0)k[u>>2]=v+(~(((v+-44-t|0)>>>0)/44|0)*44|0);w=k[s>>2]|0;e=k[w+4>>2]|0;if((k[w>>2]|0)==(e|0)){b=(k[(k[(k[b+20>>2]|0)+4>>2]|0)+-8>>2]|0)+-12|0;k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];return}else{b=e+-16|0;k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];return}}function qc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0.0,h=0,j=0,l=0,m=0,n=0,o=0.0,q=0;n=b;if(i[b+29>>0]|0){a=1;return a|0}c=k[k[a>>2]>>2]|0;h=k[b+8>>2]|0;e=(h|0)==0;d=(k[c+8>>2]|0)==0;m=k[b>>2]|0;if((!(e^d)?(m|0)==(k[c>>2]|0):0)?(f=k[b+4>>2]|0,(f|0)==(k[c+4>>2]|0)):0){c=k[b+20>>2]|0;l=d^(c|0)==0?2:3}else{l=e&1;c=k[b+20>>2]|0;f=k[b+4>>2]|0}e=k[a+4>>2]|0;d=k[e+8>>2]|0;j=d-h|0;j=(j|0)>-1?j:0-j|0;c=d-c|0;c=(c|0)>-1?c:0-c|0;d=k[e>>2]|0;e=k[e+4>>2]|0;o=+(d-m|0);g=+(e-f|0);g=o*o+g*g;b=a+8|0;h=k[k[b>>2]>>2]|0;if((h|0)>0?(q=m-d|0,+(((q|0)>-1?q:0-q|0)|0)>+p[k[a+12>>2]>>3]):0){q=0;return q|0}do if((l|0)<=(h|0)){if((l|0)!=(h|0)){q=1;return q|0}if((m|0)==(d|0)&(e|0)==(f|0)){if((j|0)<(k[k[a+16>>2]>>2]|0))break;if((j|0)!=(k[k[a+16>>2]>>2]|0)){q=1;return q|0}if((c|0)<(k[k[a+20>>2]>>2]|0))break;if((c|0)!=(k[k[a+20>>2]>>2]|0)){q=1;return q|0}}if(!(g<+p[k[a+12>>2]>>3])){q=1;return q|0}}while(0);k[k[a+24>>2]>>2]=n;k[k[a+16>>2]>>2]=j;k[k[a+20>>2]>>2]=c;p[k[a+12>>2]>>3]=g;k[k[b>>2]>>2]=l;q=1;return q|0}function rc(a,b,c){a=+a;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0.0,m=0,n=0,o=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0;V=r;r=r+160|0;U=V+144|0;g=V+24|0;h=V+16|0;L=V+100|0;M=V+56|0;N=V+8|0;O=V;Q=V+44|0;R=V+32|0;d=k[c>>2]|0;P=c+4|0;f=k[P>>2]|0;if((d|0)==(f|0))l=0.0;else{e=0;do{K=k[d+36>>2]|0;T=k[d+24>>2]|0;T=(K|0)<(T|0)?K:T;e=(T|0)<(e|0)?T:e;d=d+44|0}while((d|0)!=(f|0));l=+(e|0)}k[U>>2]=0;T=U+4|0;k[T>>2]=0;k[U+8>>2]=0;p[g>>3]=0.0;l=-a-l;p[h>>3]=l;j=L+1|0;m=L+2|0;n=L+4|0;o=L+8|0;q=L+12|0;s=L+16|0;t=L+20|0;u=L+24|0;v=L+28|0;w=L+32|0;x=L+36|0;y=L+40|0;z=M+1|0;A=M+2|0;B=M+4|0;C=M+8|0;D=M+12|0;E=M+16|0;F=M+20|0;G=M+24|0;H=M+28|0;I=M+32|0;J=M+36|0;K=M+40|0;d=l>0.0?h:g;g=0;while(1){f=~~+p[d>>3];a:do if(!g){d=k[c>>2]|0;e=k[P>>2]|0;if((d|0)!=(e|0))do{_=k[d+16>>2]|0;Z=k[d+20>>2]|0;Y=(k[d+24>>2]|0)+f|0;X=k[d+28>>2]|0;W=k[d+32>>2]|0;h=(k[d+36>>2]|0)+f|0;i[M>>0]=0;i[z>>0]=0;i[A>>0]=0;k[B>>2]=0;k[C>>2]=0;k[D>>2]=0;k[E>>2]=_;k[F>>2]=Z;k[G>>2]=Y;k[H>>2]=X;k[I>>2]=W;k[J>>2]=h;k[K>>2]=1;sc(U,M);d=d+44|0}while((d|0)!=(e|0))}else{d=k[P>>2]|0;while(1){if((d|0)==(k[c>>2]|0))break a;h=k[d+-16>>2]|0;W=k[d+-12>>2]|0;X=(k[d+-8>>2]|0)+f|0;Y=k[d+-28>>2]|0;Z=k[d+-24>>2]|0;_=(k[d+-20>>2]|0)+f|0;i[L>>0]=0;i[j>>0]=0;i[m>>0]=0;k[n>>2]=0;k[o>>2]=0;k[q>>2]=0;k[s>>2]=h;k[t>>2]=W;k[u>>2]=X;k[v>>2]=Y;k[w>>2]=Z;k[x>>2]=_;k[y>>2]=1;sc(U,L);d=d+-44|0}}while(0);if(!f)break;p[N>>3]=0.0;l=+(f|0)-a;p[O>>3]=l;d=l>0.0?O:N;g=g^1}d=k[U>>2]|0;if(k[d+8>>2]|0){_=k[d+4>>2]|0;k[Q>>2]=k[d>>2];k[Q+4>>2]=_;k[Q+8>>2]=0;tc(U,d,Q)}d=k[T>>2]|0;if(k[d+-4>>2]|0){_=k[d+-8>>2]|0;k[R>>2]=k[d+-12>>2];k[R+4>>2]=_;k[R+8>>2]=0;tc(U,d,R)}o=b+4|0;d=k[o>>2]|0;q=b+8|0;e=k[q>>2]|0;if(d>>>0<e>>>0){k[d>>2]=k[U>>2];k[d+4>>2]=k[T>>2];_=U+8|0;k[d+8>>2]=k[_>>2];k[_>>2]=0;k[T>>2]=0;k[U>>2]=0;k[o>>2]=(k[o>>2]|0)+12;r=V;return}f=k[b>>2]|0;g=(d-f|0)/12|0;j=g+1|0;if(j>>>0>357913941)xa(1340,1363,303,1438);d=(e-f|0)/12|0;if(d>>>0<178956970){d=d<<1;d=d>>>0<j>>>0?j:d;if(!d){d=0;e=0}else S=23}else{d=357913941;S=23}if((S|0)==23){f=d*12|0;f=(f|0)==0?1:f;e=_d(f)|0;b:do if(!e){while(1){e=k[35]|0;k[35]=e+0;if(!e)break;Xa[e&0]();e=_d(f)|0;if(e)break b}_=ya(4)|0;k[_>>2]=128;La(_|0,8,1)}while(0)}h=e+(g*12|0)|0;f=h;n=e+(d*12|0)|0;k[e+(g*12|0)+8>>2]=0;k[h>>2]=k[U>>2];k[e+(g*12|0)+4>>2]=k[T>>2];d=U+8|0;k[e+(g*12|0)+8>>2]=k[d>>2];k[d>>2]=0;k[T>>2]=0;k[U>>2]=0;j=e+(j*12|0)|0;g=k[b>>2]|0;d=k[o>>2]|0;if((d|0)==(g|0)){d=g;g=b;h=o;e=f;m=d}else{e=h;do{_=e+-12|0;Z=d;d=d+-12|0;k[_>>2]=0;Y=e+-8|0;k[Y>>2]=0;k[e+-4>>2]=0;k[_>>2]=k[d>>2];_=Z+-8|0;k[Y>>2]=k[_>>2];Z=Z+-4|0;k[e+-4>>2]=k[Z>>2];k[Z>>2]=0;k[_>>2]=0;k[d>>2]=0;e=f+-12|0;f=e}while((d|0)!=(g|0));g=b;h=o;e=f;m=k[b>>2]|0;d=k[o>>2]|0}k[g>>2]=e;k[h>>2]=j;k[q>>2]=n;j=m;if((d|0)!=(j|0))do{e=d;d=d+-12|0;g=k[d>>2]|0;h=g;if(g){e=e+-8|0;f=k[e>>2]|0;if((f|0)!=(g|0))k[e>>2]=f+(~(((f+-12-h|0)>>>0)/12|0)*12|0);$d(g)}}while((d|0)!=(j|0));if(m)$d(m);d=k[U>>2]|0;if(!d){r=V;return}e=k[T>>2]|0;if((e|0)!=(d|0))k[T>>2]=e+(~(((e+-12-d|0)>>>0)/12|0)*12|0);$d(d);r=V;return}function sc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=a+4|0;d=k[e>>2]|0;if(!((((k[a>>2]|0)!=(d|0)?(k[d+-12>>2]|0)==(k[b+16>>2]|0):0)?(k[d+-8>>2]|0)==(k[b+20>>2]|0):0)?(k[d+-4>>2]|0)==(k[b+24>>2]|0):0))c=5;do if((c|0)==5){c=b+16|0;if((d|0)==(k[a+8>>2]|0)){uc(a,c);d=k[e>>2]|0;break}else{k[d>>2]=k[c>>2];k[d+4>>2]=k[c+4>>2];k[d+8>>2]=k[c+8>>2];d=(k[e>>2]|0)+12|0;k[e>>2]=d;break}}while(0);if((((k[a>>2]|0)!=(d|0)?(k[d+-12>>2]|0)==(k[b+28>>2]|0):0)?(k[d+-8>>2]|0)==(k[b+32>>2]|0):0)?(k[d+-4>>2]|0)==(k[b+36>>2]|0):0)return;c=b+28|0;if((d|0)==(k[a+8>>2]|0)){uc(a,c);return}else{k[d>>2]=k[c>>2];k[d+4>>2]=k[c+4>>2];k[d+8>>2]=k[c+8>>2];k[e>>2]=(k[e>>2]|0)+12;return}}function tc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0;m=k[a>>2]|0;n=b;d=m;j=n-d|0;l=(j|0)/12|0;p=a+4|0;g=k[p>>2]|0;o=a+8|0;f=k[o>>2]|0;if(g>>>0<f>>>0){if((g|0)==(b|0)){k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[p>>2]=(k[p>>2]|0)+12;return}f=g-(m+((l+1|0)*12|0))|0;d=b+(((f|0)/12|0)*12|0)|0;if(d>>>0<g>>>0){e=g;do{k[e>>2]=k[d>>2];k[e+4>>2]=k[d+4>>2];k[e+8>>2]=k[d+8>>2];d=d+12|0;e=(k[p>>2]|0)+12|0;k[p>>2]=e}while(d>>>0<g>>>0)}he(g+(((f|0)/-12|0)*12|0)|0,b|0,f|0)|0;k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];return}e=((g-d|0)/12|0)+1|0;if(e>>>0>357913941)xa(1340,1363,303,1438);d=(f-d|0)/12|0;if(d>>>0<178956970){d=d<<1;d=d>>>0<e>>>0?e:d;if(!d){d=0;i=0}else h=11}else{d=357913941;h=11}if((h|0)==11){f=d*12|0;f=(f|0)==0?1:f;e=_d(f)|0;a:do if(!e){while(1){e=k[35]|0;k[35]=e+0;if(!e)break;Xa[e&0]();e=_d(f)|0;if(e)break a}p=ya(4)|0;k[p>>2]=128;La(p|0,8,1)}while(0);i=e}f=i+(l*12|0)|0;g=f;e=i+(d*12|0)|0;do if((l|0)==(d|0)){if((j|0)>0){g=i+((((l+1|0)/-2|0)+l|0)*12|0)|0;f=g;d=m;break}h=(m|0)==(b|0)?1:l<<1;f=h>>>2;if(!h)d=0;else{e=h*12|0;e=(e|0)==0?1:e;d=_d(e)|0;b:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break b}p=ya(4)|0;k[p>>2]=128;La(p|0,8,1)}while(0)}f=d+(f*12|0)|0;g=f;e=d+(h*12|0)|0;if(!i)d=m;else{$d(i);d=k[a>>2]|0}}else d=m;while(0);k[f>>2]=k[c>>2];k[f+4>>2]=k[c+4>>2];k[f+8>>2]=k[c+8>>2];m=g;c=n-d|0;l=m+(((c|0)/-12|0)*12|0)|0;fe(l|0,d|0,c|0)|0;c=(k[p>>2]|0)-n|0;fe(m+12|0,b|0,c|0)|0;d=k[a>>2]|0;k[a>>2]=l;k[p>>2]=m+((((c|0)/12|0)+1|0)*12|0);k[o>>2]=e;if(!d)return;$d(d);return}function uc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0;f=a+4|0;g=k[a>>2]|0;c=g;h=(k[f>>2]|0)-c|0;i=(h|0)/12|0;j=i+1|0;if(j>>>0>357913941)xa(1340,1363,303,1438);l=a+8|0;c=((k[l>>2]|0)-c|0)/12|0;if(c>>>0<178956970){c=c<<1;c=c>>>0<j>>>0?j:c;if(!c){c=0;d=0}else e=5}else{c=357913941;e=5}if((e|0)==5){e=c*12|0;e=(e|0)==0?1:e;d=_d(e)|0;a:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break a}a=ya(4)|0;k[a>>2]=128;La(a|0,8,1)}while(0)}e=d+(i*12|0)|0;k[e>>2]=k[b>>2];k[e+4>>2]=k[b+4>>2];k[e+8>>2]=k[b+8>>2];b=d+((((h|0)/-12|0)+i|0)*12|0)|0;fe(b|0,g|0,h|0)|0;k[a>>2]=b;k[f>>2]=d+(j*12|0);k[l>>2]=d+(c*12|0);if(!g)return;$d(g);return}function vc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,l=0;l=r;r=r+32|0;i=l;f=k[b>>2]|0;e=k[a>>2]|0;if((f|0)>=(e|0))if((f|0)==(e|0))g=(k[b+4>>2]|0)<(k[a+4>>2]|0);else g=0;else g=1;e=k[c>>2]|0;if((e|0)>=(f|0))if((e|0)==(f|0))e=(k[c+4>>2]|0)<(k[b+4>>2]|0);else e=0;else e=1;do if(!g)if(e){k[i>>2]=k[b>>2];k[i+4>>2]=k[b+4>>2];k[i+8>>2]=k[b+8>>2];k[i+12>>2]=k[b+12>>2];k[i+16>>2]=k[b+16>>2];k[i+20>>2]=k[b+20>>2];k[i+24>>2]=k[b+24>>2];k[i+28>>2]=k[b+28>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];k[b+24>>2]=k[c+24>>2];j[b+28>>1]=j[c+28>>1]|0;k[c>>2]=k[i>>2];k[c+4>>2]=k[i+4>>2];k[c+8>>2]=k[i+8>>2];k[c+12>>2]=k[i+12>>2];k[c+16>>2]=k[i+16>>2];k[c+20>>2]=k[i+20>>2];k[c+24>>2]=k[i+24>>2];j[c+28>>1]=j[i+28>>1]|0;e=k[b>>2]|0;f=k[a>>2]|0;if((e|0)>=(f|0)){if((e|0)!=(f|0)){h=1;break}if((k[b+4>>2]|0)>=(k[a+4>>2]|0)){h=1;break}};k[i>>2]=k[a>>2];k[i+4>>2]=k[a+4>>2];k[i+8>>2]=k[a+8>>2];k[i+12>>2]=k[a+12>>2];k[i+16>>2]=k[a+16>>2];k[i+20>>2]=k[a+20>>2];k[i+24>>2]=k[a+24>>2];k[i+28>>2]=k[a+28>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];k[a+24>>2]=k[b+24>>2];j[a+28>>1]=j[b+28>>1]|0;k[b>>2]=k[i>>2];k[b+4>>2]=k[i+4>>2];k[b+8>>2]=k[i+8>>2];k[b+12>>2]=k[i+12>>2];k[b+16>>2]=k[i+16>>2];k[b+20>>2]=k[i+20>>2];k[b+24>>2]=k[i+24>>2];j[b+28>>1]=j[i+28>>1]|0;h=2}else h=0;else{k[i>>2]=k[a>>2];k[i+4>>2]=k[a+4>>2];k[i+8>>2]=k[a+8>>2];k[i+12>>2]=k[a+12>>2];k[i+16>>2]=k[a+16>>2];k[i+20>>2]=k[a+20>>2];k[i+24>>2]=k[a+24>>2];k[i+28>>2]=k[a+28>>2];if(e){k[a>>2]=k[c>>2];k[a+4>>2]=k[c+4>>2];k[a+8>>2]=k[c+8>>2];k[a+12>>2]=k[c+12>>2];k[a+16>>2]=k[c+16>>2];k[a+20>>2]=k[c+20>>2];k[a+24>>2]=k[c+24>>2];j[a+28>>1]=j[c+28>>1]|0;k[c>>2]=k[i>>2];k[c+4>>2]=k[i+4>>2];k[c+8>>2]=k[i+8>>2];k[c+12>>2]=k[i+12>>2];k[c+16>>2]=k[i+16>>2];k[c+20>>2]=k[i+20>>2];k[c+24>>2]=k[i+24>>2];j[c+28>>1]=j[i+28>>1]|0;h=1;break};k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];k[a+24>>2]=k[b+24>>2];j[a+28>>1]=j[b+28>>1]|0;k[b>>2]=k[i>>2];k[b+4>>2]=k[i+4>>2];k[b+8>>2]=k[i+8>>2];k[b+12>>2]=k[i+12>>2];k[b+16>>2]=k[i+16>>2];k[b+20>>2]=k[i+20>>2];k[b+24>>2]=k[i+24>>2];j[b+28>>1]=j[i+28>>1]|0;e=k[c>>2]|0;f=k[b>>2]|0;if((e|0)>=(f|0)){if((e|0)!=(f|0)){h=1;break}if((k[c+4>>2]|0)>=(k[b+4>>2]|0)){h=1;break}};k[i>>2]=k[b>>2];k[i+4>>2]=k[b+4>>2];k[i+8>>2]=k[b+8>>2];k[i+12>>2]=k[b+12>>2];k[i+16>>2]=k[b+16>>2];k[i+20>>2]=k[b+20>>2];k[i+24>>2]=k[b+24>>2];k[i+28>>2]=k[b+28>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];k[b+24>>2]=k[c+24>>2];j[b+28>>1]=j[c+28>>1]|0;k[c>>2]=k[i>>2];k[c+4>>2]=k[i+4>>2];k[c+8>>2]=k[i+8>>2];k[c+12>>2]=k[i+12>>2];k[c+16>>2]=k[i+16>>2];k[c+20>>2]=k[i+20>>2];k[c+24>>2]=k[i+24>>2];j[c+28>>1]=j[i+28>>1]|0;h=2}while(0);e=k[d>>2]|0;f=k[c>>2]|0;if((e|0)>=(f|0)){if((e|0)!=(f|0)){b=h;r=l;return b|0}if((k[d+4>>2]|0)>=(k[c+4>>2]|0)){b=h;r=l;return b|0}};k[i>>2]=k[c>>2];k[i+4>>2]=k[c+4>>2];k[i+8>>2]=k[c+8>>2];k[i+12>>2]=k[c+12>>2];k[i+16>>2]=k[c+16>>2];k[i+20>>2]=k[c+20>>2];k[i+24>>2]=k[c+24>>2];k[i+28>>2]=k[c+28>>2];k[c>>2]=k[d>>2];k[c+4>>2]=k[d+4>>2];k[c+8>>2]=k[d+8>>2];k[c+12>>2]=k[d+12>>2];k[c+16>>2]=k[d+16>>2];k[c+20>>2]=k[d+20>>2];k[c+24>>2]=k[d+24>>2];j[c+28>>1]=j[d+28>>1]|0;k[d>>2]=k[i>>2];k[d+4>>2]=k[i+4>>2];k[d+8>>2]=k[i+8>>2];k[d+12>>2]=k[i+12>>2];k[d+16>>2]=k[i+16>>2];k[d+20>>2]=k[i+20>>2];k[d+24>>2]=k[i+24>>2];j[d+28>>1]=j[i+28>>1]|0;e=h+1|0;f=k[c>>2]|0;g=k[b>>2]|0;if((f|0)>=(g|0)){if((f|0)!=(g|0)){b=e;r=l;return b|0}if((k[c+4>>2]|0)>=(k[b+4>>2]|0)){b=e;r=l;return b|0}};k[i>>2]=k[b>>2];k[i+4>>2]=k[b+4>>2];k[i+8>>2]=k[b+8>>2];k[i+12>>2]=k[b+12>>2];k[i+16>>2]=k[b+16>>2];k[i+20>>2]=k[b+20>>2];k[i+24>>2]=k[b+24>>2];k[i+28>>2]=k[b+28>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];k[b+24>>2]=k[c+24>>2];j[b+28>>1]=j[c+28>>1]|0;k[c>>2]=k[i>>2];k[c+4>>2]=k[i+4>>2];k[c+8>>2]=k[i+8>>2];k[c+12>>2]=k[i+12>>2];k[c+16>>2]=k[i+16>>2];k[c+20>>2]=k[i+20>>2];k[c+24>>2]=k[i+24>>2];j[c+28>>1]=j[i+28>>1]|0;e=h+2|0;f=k[b>>2]|0;g=k[a>>2]|0;if((f|0)>=(g|0)){if((f|0)!=(g|0)){b=e;r=l;return b|0}if((k[b+4>>2]|0)>=(k[a+4>>2]|0)){b=e;r=l;return b|0}};k[i>>2]=k[a>>2];k[i+4>>2]=k[a+4>>2];k[i+8>>2]=k[a+8>>2];k[i+12>>2]=k[a+12>>2];k[i+16>>2]=k[a+16>>2];k[i+20>>2]=k[a+20>>2];k[i+24>>2]=k[a+24>>2];k[i+28>>2]=k[a+28>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];k[a+24>>2]=k[b+24>>2];j[a+28>>1]=j[b+28>>1]|0;k[b>>2]=k[i>>2];k[b+4>>2]=k[i+4>>2];k[b+8>>2]=k[i+8>>2];k[b+12>>2]=k[i+12>>2];k[b+16>>2]=k[i+16>>2];k[b+20>>2]=k[i+20>>2];k[b+24>>2]=k[i+24>>2];j[b+28>>1]=j[i+28>>1]|0;b=h+3|0;r=l;return b|0}function wc(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,l=0;l=r;r=r+32|0;i=l;h=vc(a,b,c,d)|0;f=k[e>>2]|0;g=k[d>>2]|0;if((f|0)>=(g|0)){if((f|0)!=(g|0)){b=h;r=l;return b|0}if((k[e+4>>2]|0)>=(k[d+4>>2]|0)){b=h;r=l;return b|0}};k[i>>2]=k[d>>2];k[i+4>>2]=k[d+4>>2];k[i+8>>2]=k[d+8>>2];k[i+12>>2]=k[d+12>>2];k[i+16>>2]=k[d+16>>2];k[i+20>>2]=k[d+20>>2];k[i+24>>2]=k[d+24>>2];k[i+28>>2]=k[d+28>>2];k[d>>2]=k[e>>2];k[d+4>>2]=k[e+4>>2];k[d+8>>2]=k[e+8>>2];k[d+12>>2]=k[e+12>>2];k[d+16>>2]=k[e+16>>2];k[d+20>>2]=k[e+20>>2];k[d+24>>2]=k[e+24>>2];j[d+28>>1]=j[e+28>>1]|0;k[e>>2]=k[i>>2];k[e+4>>2]=k[i+4>>2];k[e+8>>2]=k[i+8>>2];k[e+12>>2]=k[i+12>>2];k[e+16>>2]=k[i+16>>2];k[e+20>>2]=k[i+20>>2];k[e+24>>2]=k[i+24>>2];j[e+28>>1]=j[i+28>>1]|0;f=h+1|0;g=k[d>>2]|0;e=k[c>>2]|0;if((g|0)>=(e|0)){if((g|0)!=(e|0)){b=f;r=l;return b|0}if((k[d+4>>2]|0)>=(k[c+4>>2]|0)){b=f;r=l;return b|0}};k[i>>2]=k[c>>2];k[i+4>>2]=k[c+4>>2];k[i+8>>2]=k[c+8>>2];k[i+12>>2]=k[c+12>>2];k[i+16>>2]=k[c+16>>2];k[i+20>>2]=k[c+20>>2];k[i+24>>2]=k[c+24>>2];k[i+28>>2]=k[c+28>>2];k[c>>2]=k[d>>2];k[c+4>>2]=k[d+4>>2];k[c+8>>2]=k[d+8>>2];k[c+12>>2]=k[d+12>>2];k[c+16>>2]=k[d+16>>2];k[c+20>>2]=k[d+20>>2];k[c+24>>2]=k[d+24>>2];j[c+28>>1]=j[d+28>>1]|0;k[d>>2]=k[i>>2];k[d+4>>2]=k[i+4>>2];k[d+8>>2]=k[i+8>>2];k[d+12>>2]=k[i+12>>2];k[d+16>>2]=k[i+16>>2];k[d+20>>2]=k[i+20>>2];k[d+24>>2]=k[i+24>>2];j[d+28>>1]=j[i+28>>1]|0;f=h+2|0;g=k[c>>2]|0;e=k[b>>2]|0;if((g|0)>=(e|0)){if((g|0)!=(e|0)){b=f;r=l;return b|0}if((k[c+4>>2]|0)>=(k[b+4>>2]|0)){b=f;r=l;return b|0}};k[i>>2]=k[b>>2];k[i+4>>2]=k[b+4>>2];k[i+8>>2]=k[b+8>>2];k[i+12>>2]=k[b+12>>2];k[i+16>>2]=k[b+16>>2];k[i+20>>2]=k[b+20>>2];k[i+24>>2]=k[b+24>>2];k[i+28>>2]=k[b+28>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];k[b+24>>2]=k[c+24>>2];j[b+28>>1]=j[c+28>>1]|0;k[c>>2]=k[i>>2];k[c+4>>2]=k[i+4>>2];k[c+8>>2]=k[i+8>>2];k[c+12>>2]=k[i+12>>2];k[c+16>>2]=k[i+16>>2];k[c+20>>2]=k[i+20>>2];k[c+24>>2]=k[i+24>>2];j[c+28>>1]=j[i+28>>1]|0;f=h+3|0;g=k[b>>2]|0;e=k[a>>2]|0;if((g|0)>=(e|0)){if((g|0)!=(e|0)){b=f;r=l;return b|0}if((k[b+4>>2]|0)>=(k[a+4>>2]|0)){b=f;r=l;return b|0}};k[i>>2]=k[a>>2];k[i+4>>2]=k[a+4>>2];k[i+8>>2]=k[a+8>>2];k[i+12>>2]=k[a+12>>2];k[i+16>>2]=k[a+16>>2];k[i+20>>2]=k[a+20>>2];k[i+24>>2]=k[a+24>>2];k[i+28>>2]=k[a+28>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];k[a+24>>2]=k[b+24>>2];j[a+28>>1]=j[b+28>>1]|0;k[b>>2]=k[i>>2];k[b+4>>2]=k[i+4>>2];k[b+8>>2]=k[i+8>>2];k[b+12>>2]=k[i+12>>2];k[b+16>>2]=k[i+16>>2];k[b+20>>2]=k[i+20>>2];k[b+24>>2]=k[i+24>>2];j[b+28>>1]=j[i+28>>1]|0;b=h+4|0;r=l;return b|0}function xc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0,o=0;o=r;r=r+64|0;i=o+24|0;m=o;switch(b-a>>5|0){case 2:{c=b+-32|0;d=k[c>>2]|0;e=k[a>>2]|0;if((d|0)>=(e|0)){if((d|0)!=(e|0)){a=1;r=o;return a|0}if((k[b+-28>>2]|0)>=(k[a+4>>2]|0)){a=1;r=o;return a|0}};k[i>>2]=k[a>>2];k[i+4>>2]=k[a+4>>2];k[i+8>>2]=k[a+8>>2];k[i+12>>2]=k[a+12>>2];k[i+16>>2]=k[a+16>>2];k[i+20>>2]=k[a+20>>2];k[i+24>>2]=k[a+24>>2];k[i+28>>2]=k[a+28>>2];k[a>>2]=k[c>>2];k[a+4>>2]=k[c+4>>2];k[a+8>>2]=k[c+8>>2];k[a+12>>2]=k[c+12>>2];k[a+16>>2]=k[c+16>>2];k[a+20>>2]=k[c+20>>2];k[a+24>>2]=k[c+24>>2];j[a+28>>1]=j[c+28>>1]|0;k[c>>2]=k[i>>2];k[c+4>>2]=k[i+4>>2];k[c+8>>2]=k[i+8>>2];k[c+12>>2]=k[i+12>>2];k[c+16>>2]=k[i+16>>2];k[c+20>>2]=k[i+20>>2];k[c+24>>2]=k[i+24>>2];j[c+28>>1]=j[i+28>>1]|0;a=1;r=o;return a|0}case 3:{g=a+32|0;f=b+-32|0;e=k[g>>2]|0;c=k[a>>2]|0;if((e|0)>=(c|0))if((e|0)==(c|0))d=(k[a+36>>2]|0)<(k[a+4>>2]|0);else d=0;else d=1;c=k[f>>2]|0;if((c|0)>=(e|0))if((c|0)==(e|0))c=(k[b+-28>>2]|0)<(k[a+36>>2]|0);else c=0;else c=1;if(!d){if(!c){a=1;r=o;return a|0};k[i>>2]=k[g>>2];k[i+4>>2]=k[g+4>>2];k[i+8>>2]=k[g+8>>2];k[i+12>>2]=k[g+12>>2];k[i+16>>2]=k[g+16>>2];k[i+20>>2]=k[g+20>>2];k[i+24>>2]=k[g+24>>2];k[i+28>>2]=k[g+28>>2];k[g>>2]=k[f>>2];k[g+4>>2]=k[f+4>>2];k[g+8>>2]=k[f+8>>2];k[g+12>>2]=k[f+12>>2];k[g+16>>2]=k[f+16>>2];k[g+20>>2]=k[f+20>>2];k[g+24>>2]=k[f+24>>2];j[g+28>>1]=j[f+28>>1]|0;k[f>>2]=k[i>>2];k[f+4>>2]=k[i+4>>2];k[f+8>>2]=k[i+8>>2];k[f+12>>2]=k[i+12>>2];k[f+16>>2]=k[i+16>>2];k[f+20>>2]=k[i+20>>2];k[f+24>>2]=k[i+24>>2];j[f+28>>1]=j[i+28>>1]|0;c=k[g>>2]|0;d=k[a>>2]|0;if((c|0)>=(d|0)){if((c|0)!=(d|0)){a=1;r=o;return a|0}if((k[a+36>>2]|0)>=(k[a+4>>2]|0)){a=1;r=o;return a|0}};k[i>>2]=k[a>>2];k[i+4>>2]=k[a+4>>2];k[i+8>>2]=k[a+8>>2];k[i+12>>2]=k[a+12>>2];k[i+16>>2]=k[a+16>>2];k[i+20>>2]=k[a+20>>2];k[i+24>>2]=k[a+24>>2];k[i+28>>2]=k[a+28>>2];k[a>>2]=k[g>>2];k[a+4>>2]=k[g+4>>2];k[a+8>>2]=k[g+8>>2];k[a+12>>2]=k[g+12>>2];k[a+16>>2]=k[g+16>>2];k[a+20>>2]=k[g+20>>2];k[a+24>>2]=k[g+24>>2];j[a+28>>1]=j[g+28>>1]|0;k[g>>2]=k[i>>2];k[g+4>>2]=k[i+4>>2];k[g+8>>2]=k[i+8>>2];k[g+12>>2]=k[i+12>>2];k[g+16>>2]=k[i+16>>2];k[g+20>>2]=k[i+20>>2];k[g+24>>2]=k[i+24>>2];j[g+28>>1]=j[i+28>>1]|0;a=1;r=o;return a|0};k[i>>2]=k[a>>2];k[i+4>>2]=k[a+4>>2];k[i+8>>2]=k[a+8>>2];k[i+12>>2]=k[a+12>>2];k[i+16>>2]=k[a+16>>2];k[i+20>>2]=k[a+20>>2];k[i+24>>2]=k[a+24>>2];k[i+28>>2]=k[a+28>>2];if(c){k[a>>2]=k[f>>2];k[a+4>>2]=k[f+4>>2];k[a+8>>2]=k[f+8>>2];k[a+12>>2]=k[f+12>>2];k[a+16>>2]=k[f+16>>2];k[a+20>>2]=k[f+20>>2];k[a+24>>2]=k[f+24>>2];j[a+28>>1]=j[f+28>>1]|0;k[f>>2]=k[i>>2];k[f+4>>2]=k[i+4>>2];k[f+8>>2]=k[i+8>>2];k[f+12>>2]=k[i+12>>2];k[f+16>>2]=k[i+16>>2];k[f+20>>2]=k[i+20>>2];k[f+24>>2]=k[i+24>>2];j[f+28>>1]=j[i+28>>1]|0;a=1;r=o;return a|0};k[a>>2]=k[g>>2];k[a+4>>2]=k[g+4>>2];k[a+8>>2]=k[g+8>>2];k[a+12>>2]=k[g+12>>2];k[a+16>>2]=k[g+16>>2];k[a+20>>2]=k[g+20>>2];k[a+24>>2]=k[g+24>>2];j[a+28>>1]=j[g+28>>1]|0;k[g>>2]=k[i>>2];k[g+4>>2]=k[i+4>>2];k[g+8>>2]=k[i+8>>2];k[g+12>>2]=k[i+12>>2];k[g+16>>2]=k[i+16>>2];k[g+20>>2]=k[i+20>>2];k[g+24>>2]=k[i+24>>2];j[g+28>>1]=j[i+28>>1]|0;c=k[f>>2]|0;d=k[g>>2]|0;if((c|0)>=(d|0)){if((c|0)!=(d|0)){a=1;r=o;return a|0}if((k[b+-28>>2]|0)>=(k[a+36>>2]|0)){a=1;r=o;return a|0}};k[i>>2]=k[g>>2];k[i+4>>2]=k[g+4>>2];k[i+8>>2]=k[g+8>>2];k[i+12>>2]=k[g+12>>2];k[i+16>>2]=k[g+16>>2];k[i+20>>2]=k[g+20>>2];k[i+24>>2]=k[g+24>>2];k[i+28>>2]=k[g+28>>2];k[g>>2]=k[f>>2];k[g+4>>2]=k[f+4>>2];k[g+8>>2]=k[f+8>>2];k[g+12>>2]=k[f+12>>2];k[g+16>>2]=k[f+16>>2];k[g+20>>2]=k[f+20>>2];k[g+24>>2]=k[f+24>>2];j[g+28>>1]=j[f+28>>1]|0;k[f>>2]=k[i>>2];k[f+4>>2]=k[i+4>>2];k[f+8>>2]=k[i+8>>2];k[f+12>>2]=k[i+12>>2];k[f+16>>2]=k[i+16>>2];k[f+20>>2]=k[i+20>>2];k[f+24>>2]=k[i+24>>2];j[f+28>>1]=j[i+28>>1]|0;a=1;r=o;return a|0}case 4:{vc(a,a+32|0,a+64|0,b+-32|0)|0;a=1;r=o;return a|0}case 5:{wc(a,a+32|0,a+64|0,a+96|0,b+-32|0)|0;a=1;r=o;return a|0}case 1:case 0:{a=1;r=o;return a|0}default:{f=a+64|0;h=a+32|0;c=k[h>>2]|0;e=k[a>>2]|0;if((c|0)>=(e|0))if((c|0)==(e|0))d=(k[a+36>>2]|0)<(k[a+4>>2]|0);else d=0;else d=1;g=k[f>>2]|0;if((g|0)>=(c|0))if((g|0)==(c|0))c=(k[a+68>>2]|0)<(k[a+36>>2]|0);else c=0;else c=1;do if(!d){if(c){k[i>>2]=k[h>>2];k[i+4>>2]=k[h+4>>2];k[i+8>>2]=k[h+8>>2];k[i+12>>2]=k[h+12>>2];k[i+16>>2]=k[h+16>>2];k[i+20>>2]=k[h+20>>2];k[i+24>>2]=k[h+24>>2];k[i+28>>2]=k[h+28>>2];k[h>>2]=k[f>>2];k[h+4>>2]=k[f+4>>2];k[h+8>>2]=k[f+8>>2];k[h+12>>2]=k[f+12>>2];k[h+16>>2]=k[f+16>>2];k[h+20>>2]=k[f+20>>2];k[h+24>>2]=k[f+24>>2];j[h+28>>1]=j[f+28>>1]|0;k[f>>2]=k[i>>2];k[f+4>>2]=k[i+4>>2];k[f+8>>2]=k[i+8>>2];k[f+12>>2]=k[i+12>>2];k[f+16>>2]=k[i+16>>2];k[f+20>>2]=k[i+20>>2];k[f+24>>2]=k[i+24>>2];j[f+28>>1]=j[i+28>>1]|0;c=k[h>>2]|0;if((c|0)>=(e|0)){if((c|0)!=(e|0))break;if((k[a+36>>2]|0)>=(k[a+4>>2]|0))break};k[i>>2]=k[a>>2];k[i+4>>2]=k[a+4>>2];k[i+8>>2]=k[a+8>>2];k[i+12>>2]=k[a+12>>2];k[i+16>>2]=k[a+16>>2];k[i+20>>2]=k[a+20>>2];k[i+24>>2]=k[a+24>>2];k[i+28>>2]=k[a+28>>2];k[a>>2]=k[h>>2];k[a+4>>2]=k[h+4>>2];k[a+8>>2]=k[h+8>>2];k[a+12>>2]=k[h+12>>2];k[a+16>>2]=k[h+16>>2];k[a+20>>2]=k[h+20>>2];k[a+24>>2]=k[h+24>>2];j[a+28>>1]=j[h+28>>1]|0;k[h>>2]=k[i>>2];k[h+4>>2]=k[i+4>>2];k[h+8>>2]=k[i+8>>2];k[h+12>>2]=k[i+12>>2];k[h+16>>2]=k[i+16>>2];k[h+20>>2]=k[i+20>>2];k[h+24>>2]=k[i+24>>2];j[h+28>>1]=j[i+28>>1]|0}}else{k[i>>2]=k[a>>2];k[i+4>>2]=k[a+4>>2];k[i+8>>2]=k[a+8>>2];k[i+12>>2]=k[a+12>>2];k[i+16>>2]=k[a+16>>2];k[i+20>>2]=k[a+20>>2];k[i+24>>2]=k[a+24>>2];k[i+28>>2]=k[a+28>>2];if(c){k[a>>2]=k[f>>2];k[a+4>>2]=k[f+4>>2];k[a+8>>2]=k[f+8>>2];k[a+12>>2]=k[f+12>>2];k[a+16>>2]=k[f+16>>2];k[a+20>>2]=k[f+20>>2];k[a+24>>2]=k[f+24>>2];j[a+28>>1]=j[f+28>>1]|0;k[f>>2]=k[i>>2];k[f+4>>2]=k[i+4>>2];k[f+8>>2]=k[i+8>>2];k[f+12>>2]=k[i+12>>2];k[f+16>>2]=k[i+16>>2];k[f+20>>2]=k[i+20>>2];k[f+24>>2]=k[i+24>>2];j[f+28>>1]=j[i+28>>1]|0;break};k[a>>2]=k[h>>2];k[a+4>>2]=k[h+4>>2];k[a+8>>2]=k[h+8>>2];k[a+12>>2]=k[h+12>>2];k[a+16>>2]=k[h+16>>2];k[a+20>>2]=k[h+20>>2];k[a+24>>2]=k[h+24>>2];j[a+28>>1]=j[h+28>>1]|0;k[h>>2]=k[i>>2];k[h+4>>2]=k[i+4>>2];k[h+8>>2]=k[i+8>>2];k[h+12>>2]=k[i+12>>2];k[h+16>>2]=k[i+16>>2];k[h+20>>2]=k[i+20>>2];k[h+24>>2]=k[i+24>>2];j[h+28>>1]=j[i+28>>1]|0;c=k[h>>2]|0;if((g|0)>=(c|0)){if((g|0)!=(c|0))break;if((k[a+68>>2]|0)>=(k[a+36>>2]|0))break};k[i>>2]=k[h>>2];k[i+4>>2]=k[h+4>>2];k[i+8>>2]=k[h+8>>2];k[i+12>>2]=k[h+12>>2];k[i+16>>2]=k[h+16>>2];k[i+20>>2]=k[h+20>>2];k[i+24>>2]=k[h+24>>2];k[i+28>>2]=k[h+28>>2];k[h>>2]=k[f>>2];k[h+4>>2]=k[f+4>>2];k[h+8>>2]=k[f+8>>2];k[h+12>>2]=k[f+12>>2];k[h+16>>2]=k[f+16>>2];k[h+20>>2]=k[f+20>>2];k[h+24>>2]=k[f+24>>2];j[h+28>>1]=j[f+28>>1]|0;k[f>>2]=k[i>>2];k[f+4>>2]=k[i+4>>2];k[f+8>>2]=k[i+8>>2];k[f+12>>2]=k[i+12>>2];k[f+16>>2]=k[i+16>>2];k[f+20>>2]=k[i+20>>2];k[f+24>>2]=k[i+24>>2];j[f+28>>1]=j[i+28>>1]|0}while(0);d=a+96|0;if((d|0)==(b|0)){a=1;r=o;return a|0}c=0;while(1){i=k[d>>2]|0;e=k[f>>2]|0;if((i|0)>=(e|0)){if((i|0)==(e|0)?(l=k[d+4>>2]|0,(l|0)<(k[f+4>>2]|0)):0){h=l;n=50}}else{h=k[d+4>>2]|0;n=50}if((n|0)==50){n=0;g=d+8|0;k[m>>2]=k[g>>2];k[m+4>>2]=k[g+4>>2];k[m+8>>2]=k[g+8>>2];k[m+12>>2]=k[g+12>>2];k[m+16>>2]=k[g+16>>2];k[m+20>>2]=k[g+20>>2];k[d>>2]=k[f>>2];k[d+4>>2]=k[f+4>>2];k[d+8>>2]=k[f+8>>2];k[d+12>>2]=k[f+12>>2];k[d+16>>2]=k[f+16>>2];k[d+20>>2]=k[f+20>>2];k[d+24>>2]=k[f+24>>2];j[d+28>>1]=j[f+28>>1]|0;a:do if((f|0)==(a|0))e=a;else while(1){e=f;f=f+-32|0;g=k[f>>2]|0;if((i|0)>=(g|0)){if((i|0)!=(g|0))break a;if((h|0)>=(k[e+-28>>2]|0))break a};k[e>>2]=k[f>>2];k[e+4>>2]=k[f+4>>2];k[e+8>>2]=k[f+8>>2];k[e+12>>2]=k[f+12>>2];k[e+16>>2]=k[f+16>>2];k[e+20>>2]=k[f+20>>2];k[e+24>>2]=k[f+24>>2];j[e+28>>1]=j[f+28>>1]|0;if((f|0)==(a|0)){e=a;break}}while(0);k[e>>2]=i;k[e+4>>2]=h;i=e+8|0;k[i>>2]=k[m>>2];k[i+4>>2]=k[m+4>>2];k[i+8>>2]=k[m+8>>2];k[i+12>>2]=k[m+12>>2];k[i+16>>2]=k[m+16>>2];j[i+20>>1]=j[m+20>>1]|0;c=c+1|0;if((c|0)==8)break}e=d+32|0;if((e|0)==(b|0)){c=1;n=58;break}else{f=d;d=e}}if((n|0)==58){r=o;return c|0}a=(d+32|0)==(b|0);r=o;return a|0}}return 0}function yc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;n=a+4|0;f=k[n>>2]|0;m=k[a>>2]|0;d=m;j=f-d>>4;l=j+1|0;if(l>>>0>268435455)xa(1340,1363,303,1438);o=a+8|0;e=(k[o>>2]|0)-d|0;if(e>>4>>>0<134217727){e=e>>3;e=e>>>0<l>>>0?l:e;if(!e){h=0;g=0}else i=5}else{e=268435455;i=5}if((i|0)==5){h=e<<4;h=(h|0)==0?1:h;g=_d(h)|0;a:do if(!g){while(1){g=k[35]|0;k[35]=g+0;if(!g)break;Xa[g&0]();g=_d(h)|0;if(g)break a}o=ya(4)|0;k[o>>2]=128;La(o|0,8,1)}while(0);h=e}i=g+(j<<4)|0;e=i;h=g+(h<<4)|0;k[i>>2]=0;k[i+4>>2]=0;k[i+8>>2]=0;k[i+12>>2]=0;k[i>>2]=k[b>>2];k[g+(j<<4)+4>>2]=k[b+4>>2];k[g+(j<<4)+8>>2]=k[c>>2];k[g+(j<<4)+12>>2]=k[c+4>>2];g=g+(l<<4)|0;if((f|0)==(m|0))f=a;else{d=i;do{b=d+-16|0;c=f;f=f+-16|0;k[b>>2]=0;k[b+4>>2]=0;k[b+8>>2]=0;k[b+12>>2]=0;k[b>>2]=k[f>>2];k[d+-12>>2]=k[c+-12>>2];k[d+-8>>2]=k[c+-8>>2];k[d+-4>>2]=k[c+-4>>2];d=e+-16|0;e=d}while((f|0)!=(m|0));f=a;d=k[a>>2]|0}k[f>>2]=e;k[n>>2]=g;k[o>>2]=h;if(!d)return;$d(d);return}function zc(a,b){a=a|0;b=b|0;return (k[a+16>>2]|0)<(k[b+16>>2]|0)|0}function Ac(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0;t=r;r=r+48|0;s=t;q=b;a:while(1){n=q;p=q+-44|0;b:while(1){j=a;b=n-j|0;switch((b|0)/44|0|0){case 2:{o=4;break a}case 3:{o=6;break a}case 4:{o=14;break a}case 5:{o=15;break a}case 1:case 0:{o=82;break a}default:{}}if((b|0)<1364){o=21;break a}d=(b|0)/88|0;i=a+(d*44|0)|0;do if((b|0)>43956){e=(b|0)/176|0;f=a+(e*44|0)|0;e=a+((e+d|0)*44|0)|0;b=Hc(a,f,i,e,c)|0;if(Za[k[c>>2]&7](p,e)|0){d=s;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=p;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=p;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=b+1|0;if(Za[k[c>>2]&7](e,i)|0){d=s;l=i;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=i;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=b+2|0;if(Za[k[c>>2]&7](i,f)|0){d=s;l=f;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=f;l=i;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=i;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=b+3|0;if(Za[k[c>>2]&7](f,a)|0){d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=f;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=f;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));b=b+4|0}else b=d}else b=d}else b=d}}else{m=Za[k[c>>2]&7](i,a)|0;b=Za[k[c>>2]&7](p,i)|0;if(!m){if(!b){b=0;break}d=s;l=i;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=i;l=p;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=p;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));if(!(Za[k[c>>2]&7](i,a)|0)){b=1;break}d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=i;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=i;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));b=2;break}if(b){d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=p;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=p;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));b=1;break}d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=i;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=i;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));if(Za[k[c>>2]&7](p,i)|0){d=s;l=i;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=i;l=p;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=p;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));b=2}else b=1}while(0);do if(Za[k[c>>2]&7](a,i)|0)e=p;else{e=p;while(1){e=e+-44|0;if((a|0)==(e|0))break;if(Za[k[c>>2]&7](e,i)|0){o=65;break}}if((o|0)==65){o=0;d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));b=b+1|0;break}b=a+44|0;if(!(Za[k[c>>2]&7](a,p)|0)){if((b|0)==(p|0)){o=82;break a}else e=a;while(1){d=b+44|0;if(Za[k[c>>2]&7](a,b)|0)break;if((d|0)==(p|0)){o=82;break a}else{e=b;b=d}}b=e+44|0;d=s;l=b;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=b;l=p;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=p;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));b=e+88|0}if((b|0)==(p|0)){o=82;break a}else d=p;while(1){e=b;while(1){b=e+44|0;if(Za[k[c>>2]&7](a,e)|0){f=d;break}else e=b}do f=f+-44|0;while(Za[k[c>>2]&7](a,f)|0);if(e>>>0>=f>>>0){a=e;continue b}d=s;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=f;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=f;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=f}}while(0);d=a+44|0;c:do if(d>>>0<e>>>0)while(1){g=d;while(1){f=g+44|0;if(Za[k[c>>2]&7](g,i)|0)g=f;else{h=e;break}}do h=h+-44|0;while(!(Za[k[c>>2]&7](h,i)|0));if(g>>>0>h>>>0){e=i;break c}d=s;l=g;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=g;l=h;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=h;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=f;e=h;i=(i|0)==(g|0)?h:i;b=b+1|0}else{g=d;e=i}while(0);if((g|0)!=(e|0)?Za[k[c>>2]&7](e,g)|0:0){d=s;l=g;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=g;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));b=b+1|0}if(!b){b=Ic(a,g,c)|0;d=g+44|0;if(Ic(d,q,c)|0){o=77;break}if(b){a=d;continue}}m=g;if((m-j|0)>=(n-m|0)){o=81;break}Ac(a,g,c);a=g+44|0}if((o|0)==77){o=0;if(b){o=82;break}else{q=g;continue}}else if((o|0)==81){o=0;Ac(g+44|0,q,c);q=g;continue}}if((o|0)==4){if(!(Za[k[c>>2]&7](p,a)|0)){r=t;return}d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=p;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=p;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));r=t;return}else if((o|0)==6){e=a+44|0;q=Za[k[c>>2]&7](e,a)|0;b=Za[k[c>>2]&7](p,e)|0;if(!q){if(!b){r=t;return}d=s;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=p;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=p;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));if(!(Za[k[c>>2]&7](e,a)|0)){r=t;return}d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));r=t;return}if(b){d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=p;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=p;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));r=t;return}d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));if(!(Za[k[c>>2]&7](p,e)|0)){r=t;return}d=s;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=p;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=p;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));r=t;return}else if((o|0)==14){Hc(a,a+44|0,a+88|0,p,c)|0;r=t;return}else if((o|0)==15){b=a+44|0;e=a+88|0;f=a+132|0;Hc(a,b,e,f,c)|0;if(!(Za[k[c>>2]&7](p,f)|0)){r=t;return}d=s;l=f;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=f;l=p;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=p;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));if(!(Za[k[c>>2]&7](f,e)|0)){r=t;return}d=s;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=f;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=f;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));if(!(Za[k[c>>2]&7](e,b)|0)){r=t;return}d=s;l=b;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=b;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));if(!(Za[k[c>>2]&7](b,a)|0)){r=t;return}d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=b;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=b;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));r=t;return}else if((o|0)==21){f=a+88|0;e=a+44|0;p=Za[k[c>>2]&7](e,a)|0;b=Za[k[c>>2]&7](f,e)|0;do if(p){if(b){d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=f;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=f;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));break}d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));if(Za[k[c>>2]&7](f,e)|0){d=s;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=f;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=f;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0))}}else if(b){d=s;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=f;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=f;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));if(Za[k[c>>2]&7](e,a)|0){d=s;l=a;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=a;l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=e;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0))}}while(0);b=a+132|0;if((b|0)==(q|0)){r=t;return}e=f;while(1){if(Za[k[c>>2]&7](b,e)|0){d=s;l=b;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));d=b;while(1){l=e;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0));if((e|0)==(a|0))break;d=e+-44|0;if(Za[k[c>>2]&7](s,d)|0){p=e;e=d;d=p}else break}d=e;l=s;m=d+44|0;do{k[d>>2]=k[l>>2];d=d+4|0;l=l+4|0}while((d|0)<(m|0))}d=b+44|0;if((d|0)==(q|0))break;else{e=b;b=d}}r=t;return}else if((o|0)==82){r=t;return}}function Bc(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;Cc(k[a+68>>2]|0);d=a+52|0;c=a+60|0;if((k[c>>2]|0)!=0?(b=k[a+56>>2]|0,e=(k[d>>2]|0)+4|0,f=k[b>>2]|0,k[f+4>>2]=k[e>>2],k[k[e>>2]>>2]=f,k[c>>2]=0,(b|0)!=(d|0)):0)do{f=b;b=k[b+4>>2]|0;$d(f)}while((b|0)!=(d|0));b=k[a+36>>2]|0;c=b;if(b){d=a+40|0;e=k[d>>2]|0;if((e|0)!=(b|0))k[d>>2]=e+(~((e+-4-c|0)>>>2)<<2);$d(b)}b=k[a+20>>2]|0;c=b;if(b){d=a+24|0;e=k[d>>2]|0;if((e|0)!=(b|0))k[d>>2]=e+(~(((e+-12-c|0)>>>0)/12|0)*12|0);$d(b)}d=k[a+4>>2]|0;if(!d)return;b=a+8|0;c=k[b>>2]|0;if((c|0)!=(d|0))k[b>>2]=c+(~(((c+-28-d|0)>>>0)/28|0)*28|0);$d(d);return}function Cc(a){a=a|0;if(!a)return;else{Cc(k[a>>2]|0);Cc(k[a+4>>2]|0);$d(a);return}}function Dc(a,b){a=a|0;b=b|0;var c=0.0,d=0.0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;c=+p[a+16>>3];d=+p[b+16>>3];if(c<d){m=1;return m|0}if(d<c){m=0;return m|0}e=i[a+24>>0]|0;f=i[b+24>>0]|0;if((e&255)<(f&255)){m=1;return m|0}if((f&255)<(e&255)){m=0;return m|0}g=k[a+8>>2]|0;b=k[b+8>>2]|0;e=k[g+28>>2]|0;f=k[g+16>>2]|0;a=e-f|0;g=(k[g+32>>2]|0)-(k[g+20>>2]|0)|0;h=k[b+28>>2]|0;j=k[b+16>>2]|0;l=h-j|0;b=(k[b+32>>2]|0)-(k[b+20>>2]|0)|0;if((a|0)>=0){if((e|0)==(f|0)){m=0;return m|0}}else{a=0-a|0;g=0-g|0}if((l|0)>=0)if((h|0)==(j|0)){m=(a|0)!=0;return m|0}else e=l;else{e=0-l|0;b=0-b|0}j=(e|0)<0?0-e|0:e;h=(g|0)<0?0-g|0:g;h=ne(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;l=(a|0)<0?0-a|0:a;m=(b|0)<0?0-b|0:b;l=ne(m|0,((m|0)<0)<<31>>31|0,l|0,((l|0)<0)<<31>>31|0)|0;m=L;f=ha(e>>31|1,g>>31|1)|0;e=ha(b>>31|1,a>>31|1)|0;if((f|0)<(e|0)){m=1;return m|0}if((e|0)<(f|0)){m=0;return m|0}if((f|0)==-1){m=m>>>0<j>>>0|(m|0)==(j|0)&l>>>0<h>>>0;return m|0}else{m=j>>>0<m>>>0|(j|0)==(m|0)&h>>>0<l>>>0;return m|0}return 0}function Ec(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0;t=r;r=r+64|0;q=t+32|0;p=t;o=b;a:while(1){l=o;n=o+-32|0;s=a;b:while(1){h=s;a=l-h|0;b=a>>5;switch(b|0){case 2:{m=4;break a}case 3:{m=6;break a}case 4:{m=14;break a}case 5:{m=15;break a}case 1:case 0:{m=82;break a}default:{}}if((a|0)<992){m=21;break a}d=(b|0)/2|0;g=s+(d<<5)|0;do if((a|0)>31968){b=(b|0)/4|0;e=s+(b<<5)|0;b=s+(b+d<<5)|0;a=Fc(s,e,g,b,c)|0;if(Za[k[c>>2]&7](n,b)|0){k[p>>2]=k[b>>2];k[p+4>>2]=k[b+4>>2];k[p+8>>2]=k[b+8>>2];k[p+12>>2]=k[b+12>>2];k[p+16>>2]=k[b+16>>2];k[p+20>>2]=k[b+20>>2];k[p+24>>2]=k[b+24>>2];k[p+28>>2]=k[b+28>>2];k[b>>2]=k[n>>2];k[b+4>>2]=k[n+4>>2];k[b+8>>2]=k[n+8>>2];k[b+12>>2]=k[n+12>>2];k[b+16>>2]=k[n+16>>2];k[b+20>>2]=k[n+20>>2];j[b+24>>1]=j[n+24>>1]|0;i[b+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;d=a+1|0;if(Za[k[c>>2]&7](b,g)|0){k[p>>2]=k[g>>2];k[p+4>>2]=k[g+4>>2];k[p+8>>2]=k[g+8>>2];k[p+12>>2]=k[g+12>>2];k[p+16>>2]=k[g+16>>2];k[p+20>>2]=k[g+20>>2];k[p+24>>2]=k[g+24>>2];k[p+28>>2]=k[g+28>>2];k[g>>2]=k[b>>2];k[g+4>>2]=k[b+4>>2];k[g+8>>2]=k[b+8>>2];k[g+12>>2]=k[b+12>>2];k[g+16>>2]=k[b+16>>2];k[g+20>>2]=k[b+20>>2];j[g+24>>1]=j[b+24>>1]|0;i[g+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;b=a+2|0;if(Za[k[c>>2]&7](g,e)|0){k[p>>2]=k[e>>2];k[p+4>>2]=k[e+4>>2];k[p+8>>2]=k[e+8>>2];k[p+12>>2]=k[e+12>>2];k[p+16>>2]=k[e+16>>2];k[p+20>>2]=k[e+20>>2];k[p+24>>2]=k[e+24>>2];k[p+28>>2]=k[e+28>>2];k[e>>2]=k[g>>2];k[e+4>>2]=k[g+4>>2];k[e+8>>2]=k[g+8>>2];k[e+12>>2]=k[g+12>>2];k[e+16>>2]=k[g+16>>2];k[e+20>>2]=k[g+20>>2];j[e+24>>1]=j[g+24>>1]|0;i[e+26>>0]=i[g+26>>0]|0;k[g>>2]=k[p>>2];k[g+4>>2]=k[p+4>>2];k[g+8>>2]=k[p+8>>2];k[g+12>>2]=k[p+12>>2];k[g+16>>2]=k[p+16>>2];k[g+20>>2]=k[p+20>>2];j[g+24>>1]=j[p+24>>1]|0;i[g+26>>0]=i[p+26>>0]|0;if(Za[k[c>>2]&7](e,s)|0){k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[e>>2];k[s+4>>2]=k[e+4>>2];k[s+8>>2]=k[e+8>>2];k[s+12>>2]=k[e+12>>2];k[s+16>>2]=k[e+16>>2];k[s+20>>2]=k[e+20>>2];j[s+24>>1]=j[e+24>>1]|0;i[s+26>>0]=i[e+26>>0]|0;k[e>>2]=k[p>>2];k[e+4>>2]=k[p+4>>2];k[e+8>>2]=k[p+8>>2];k[e+12>>2]=k[p+12>>2];k[e+16>>2]=k[p+16>>2];k[e+20>>2]=k[p+20>>2];j[e+24>>1]=j[p+24>>1]|0;i[e+26>>0]=i[p+26>>0]|0;a=a+4|0}else a=a+3|0}else a=b}else a=d}}else{f=Za[k[c>>2]&7](g,s)|0;a=Za[k[c>>2]&7](n,g)|0;if(!f){if(!a){a=0;break};k[p>>2]=k[g>>2];k[p+4>>2]=k[g+4>>2];k[p+8>>2]=k[g+8>>2];k[p+12>>2]=k[g+12>>2];k[p+16>>2]=k[g+16>>2];k[p+20>>2]=k[g+20>>2];k[p+24>>2]=k[g+24>>2];k[p+28>>2]=k[g+28>>2];k[g>>2]=k[n>>2];k[g+4>>2]=k[n+4>>2];k[g+8>>2]=k[n+8>>2];k[g+12>>2]=k[n+12>>2];k[g+16>>2]=k[n+16>>2];k[g+20>>2]=k[n+20>>2];j[g+24>>1]=j[n+24>>1]|0;i[g+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](g,s)|0)){a=1;break};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[g>>2];k[s+4>>2]=k[g+4>>2];k[s+8>>2]=k[g+8>>2];k[s+12>>2]=k[g+12>>2];k[s+16>>2]=k[g+16>>2];k[s+20>>2]=k[g+20>>2];j[s+24>>1]=j[g+24>>1]|0;i[s+26>>0]=i[g+26>>0]|0;k[g>>2]=k[p>>2];k[g+4>>2]=k[p+4>>2];k[g+8>>2]=k[p+8>>2];k[g+12>>2]=k[p+12>>2];k[g+16>>2]=k[p+16>>2];k[g+20>>2]=k[p+20>>2];j[g+24>>1]=j[p+24>>1]|0;i[g+26>>0]=i[p+26>>0]|0;a=2;break};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];if(a){k[s>>2]=k[n>>2];k[s+4>>2]=k[n+4>>2];k[s+8>>2]=k[n+8>>2];k[s+12>>2]=k[n+12>>2];k[s+16>>2]=k[n+16>>2];k[s+20>>2]=k[n+20>>2];j[s+24>>1]=j[n+24>>1]|0;i[s+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;a=1;break};k[s>>2]=k[g>>2];k[s+4>>2]=k[g+4>>2];k[s+8>>2]=k[g+8>>2];k[s+12>>2]=k[g+12>>2];k[s+16>>2]=k[g+16>>2];k[s+20>>2]=k[g+20>>2];j[s+24>>1]=j[g+24>>1]|0;i[s+26>>0]=i[g+26>>0]|0;k[g>>2]=k[p>>2];k[g+4>>2]=k[p+4>>2];k[g+8>>2]=k[p+8>>2];k[g+12>>2]=k[p+12>>2];k[g+16>>2]=k[p+16>>2];k[g+20>>2]=k[p+20>>2];j[g+24>>1]=j[p+24>>1]|0;i[g+26>>0]=i[p+26>>0]|0;if(Za[k[c>>2]&7](n,g)|0){k[p>>2]=k[g>>2];k[p+4>>2]=k[g+4>>2];k[p+8>>2]=k[g+8>>2];k[p+12>>2]=k[g+12>>2];k[p+16>>2]=k[g+16>>2];k[p+20>>2]=k[g+20>>2];k[p+24>>2]=k[g+24>>2];k[p+28>>2]=k[g+28>>2];k[g>>2]=k[n>>2];k[g+4>>2]=k[n+4>>2];k[g+8>>2]=k[n+8>>2];k[g+12>>2]=k[n+12>>2];k[g+16>>2]=k[n+16>>2];k[g+20>>2]=k[n+20>>2];j[g+24>>1]=j[n+24>>1]|0;i[g+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;a=2}else a=1}while(0);do if(Za[k[c>>2]&7](s,g)|0)b=n;else{b=n;while(1){b=b+-32|0;if((s|0)==(b|0))break;if(Za[k[c>>2]&7](b,g)|0){m=65;break}}if((m|0)==65){m=0;k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[b>>2];k[s+4>>2]=k[b+4>>2];k[s+8>>2]=k[b+8>>2];k[s+12>>2]=k[b+12>>2];k[s+16>>2]=k[b+16>>2];k[s+20>>2]=k[b+20>>2];j[s+24>>1]=j[b+24>>1]|0;i[s+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;a=a+1|0;break}a=s+32|0;if(!(Za[k[c>>2]&7](s,n)|0)){if((a|0)==(n|0)){m=82;break a}else b=s;while(1){if(Za[k[c>>2]&7](s,a)|0)break;b=a+32|0;if((b|0)==(n|0)){m=82;break a}else{h=a;a=b;b=h}}k[p>>2]=k[a>>2];k[p+4>>2]=k[a+4>>2];k[p+8>>2]=k[a+8>>2];k[p+12>>2]=k[a+12>>2];k[p+16>>2]=k[a+16>>2];k[p+20>>2]=k[a+20>>2];k[p+24>>2]=k[a+24>>2];k[p+28>>2]=k[a+28>>2];k[a>>2]=k[n>>2];k[a+4>>2]=k[n+4>>2];k[a+8>>2]=k[n+8>>2];k[a+12>>2]=k[n+12>>2];k[a+16>>2]=k[n+16>>2];k[a+20>>2]=k[n+20>>2];j[a+24>>1]=j[n+24>>1]|0;i[a+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;a=b+64|0}if((a|0)==(n|0)){m=82;break a}else d=n;while(1){b=a;while(1){a=b+32|0;if(Za[k[c>>2]&7](s,b)|0)break;else b=a}do d=d+-32|0;while(Za[k[c>>2]&7](s,d)|0);if(b>>>0>=d>>>0){s=b;continue b};k[p>>2]=k[b>>2];k[p+4>>2]=k[b+4>>2];k[p+8>>2]=k[b+8>>2];k[p+12>>2]=k[b+12>>2];k[p+16>>2]=k[b+16>>2];k[p+20>>2]=k[b+20>>2];k[p+24>>2]=k[b+24>>2];k[p+28>>2]=k[b+28>>2];k[b>>2]=k[d>>2];k[b+4>>2]=k[d+4>>2];k[b+8>>2]=k[d+8>>2];k[b+12>>2]=k[d+12>>2];k[b+16>>2]=k[d+16>>2];k[b+20>>2]=k[d+20>>2];j[b+24>>1]=j[d+24>>1]|0;i[b+26>>0]=i[d+26>>0]|0;k[d>>2]=k[p>>2];k[d+4>>2]=k[p+4>>2];k[d+8>>2]=k[p+8>>2];k[d+12>>2]=k[p+12>>2];k[d+16>>2]=k[p+16>>2];k[d+20>>2]=k[p+20>>2];j[d+24>>1]=j[p+24>>1]|0;i[d+26>>0]=i[p+26>>0]|0}}while(0);d=s+32|0;c:do if(d>>>0<b>>>0)while(1){e=d;while(1){d=e+32|0;if(Za[k[c>>2]&7](e,g)|0)e=d;else{f=b;break}}do f=f+-32|0;while(!(Za[k[c>>2]&7](f,g)|0));if(e>>>0>f>>>0){d=e;b=g;break c};k[p>>2]=k[e>>2];k[p+4>>2]=k[e+4>>2];k[p+8>>2]=k[e+8>>2];k[p+12>>2]=k[e+12>>2];k[p+16>>2]=k[e+16>>2];k[p+20>>2]=k[e+20>>2];k[p+24>>2]=k[e+24>>2];k[p+28>>2]=k[e+28>>2];k[e>>2]=k[f>>2];k[e+4>>2]=k[f+4>>2];k[e+8>>2]=k[f+8>>2];k[e+12>>2]=k[f+12>>2];k[e+16>>2]=k[f+16>>2];k[e+20>>2]=k[f+20>>2];j[e+24>>1]=j[f+24>>1]|0;i[e+26>>0]=i[f+26>>0]|0;k[f>>2]=k[p>>2];k[f+4>>2]=k[p+4>>2];k[f+8>>2]=k[p+8>>2];k[f+12>>2]=k[p+12>>2];k[f+16>>2]=k[p+16>>2];k[f+20>>2]=k[p+20>>2];j[f+24>>1]=j[p+24>>1]|0;i[f+26>>0]=i[p+26>>0]|0;b=f;g=(g|0)==(e|0)?f:g;a=a+1|0}else b=g;while(0);if((d|0)!=(b|0)?Za[k[c>>2]&7](b,d)|0:0){k[p>>2]=k[d>>2];k[p+4>>2]=k[d+4>>2];k[p+8>>2]=k[d+8>>2];k[p+12>>2]=k[d+12>>2];k[p+16>>2]=k[d+16>>2];k[p+20>>2]=k[d+20>>2];k[p+24>>2]=k[d+24>>2];k[p+28>>2]=k[d+28>>2];k[d>>2]=k[b>>2];k[d+4>>2]=k[b+4>>2];k[d+8>>2]=k[b+8>>2];k[d+12>>2]=k[b+12>>2];k[d+16>>2]=k[b+16>>2];k[d+20>>2]=k[b+20>>2];j[d+24>>1]=j[b+24>>1]|0;i[d+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;a=a+1|0}if(!a){a=Gc(s,d,c)|0;b=d+32|0;if(Gc(b,o,c)|0){m=77;break}if(a){s=b;continue}}g=d;if((g-h|0)>=(l-g|0)){m=81;break}Ec(s,d,c);s=d+32|0}if((m|0)==77){m=0;if(a){m=82;break}else{a=s;o=d;continue}}else if((m|0)==81){m=0;Ec(d+32|0,o,c);a=s;o=d;continue}}if((m|0)==4){if(!(Za[k[c>>2]&7](n,s)|0)){r=t;return};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[n>>2];k[s+4>>2]=k[n+4>>2];k[s+8>>2]=k[n+8>>2];k[s+12>>2]=k[n+12>>2];k[s+16>>2]=k[n+16>>2];k[s+20>>2]=k[n+20>>2];j[s+24>>1]=j[n+24>>1]|0;i[s+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;r=t;return}else if((m|0)==6){b=s+32|0;q=Za[k[c>>2]&7](b,s)|0;a=Za[k[c>>2]&7](n,b)|0;if(!q){if(!a){r=t;return};k[p>>2]=k[b>>2];k[p+4>>2]=k[b+4>>2];k[p+8>>2]=k[b+8>>2];k[p+12>>2]=k[b+12>>2];k[p+16>>2]=k[b+16>>2];k[p+20>>2]=k[b+20>>2];k[p+24>>2]=k[b+24>>2];k[p+28>>2]=k[b+28>>2];k[b>>2]=k[n>>2];k[b+4>>2]=k[n+4>>2];k[b+8>>2]=k[n+8>>2];k[b+12>>2]=k[n+12>>2];k[b+16>>2]=k[n+16>>2];k[b+20>>2]=k[n+20>>2];j[b+24>>1]=j[n+24>>1]|0;i[b+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](b,s)|0)){r=t;return};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[b>>2];k[s+4>>2]=k[b+4>>2];k[s+8>>2]=k[b+8>>2];k[s+12>>2]=k[b+12>>2];k[s+16>>2]=k[b+16>>2];k[s+20>>2]=k[b+20>>2];j[s+24>>1]=j[b+24>>1]|0;i[s+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;r=t;return};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];if(a){k[s>>2]=k[n>>2];k[s+4>>2]=k[n+4>>2];k[s+8>>2]=k[n+8>>2];k[s+12>>2]=k[n+12>>2];k[s+16>>2]=k[n+16>>2];k[s+20>>2]=k[n+20>>2];j[s+24>>1]=j[n+24>>1]|0;i[s+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;r=t;return};k[s>>2]=k[b>>2];k[s+4>>2]=k[b+4>>2];k[s+8>>2]=k[b+8>>2];k[s+12>>2]=k[b+12>>2];k[s+16>>2]=k[b+16>>2];k[s+20>>2]=k[b+20>>2];j[s+24>>1]=j[b+24>>1]|0;i[s+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](n,b)|0)){r=t;return};k[p>>2]=k[b>>2];k[p+4>>2]=k[b+4>>2];k[p+8>>2]=k[b+8>>2];k[p+12>>2]=k[b+12>>2];k[p+16>>2]=k[b+16>>2];k[p+20>>2]=k[b+20>>2];k[p+24>>2]=k[b+24>>2];k[p+28>>2]=k[b+28>>2];k[b>>2]=k[n>>2];k[b+4>>2]=k[n+4>>2];k[b+8>>2]=k[n+8>>2];k[b+12>>2]=k[n+12>>2];k[b+16>>2]=k[n+16>>2];k[b+20>>2]=k[n+20>>2];j[b+24>>1]=j[n+24>>1]|0;i[b+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;r=t;return}else if((m|0)==14){Fc(s,s+32|0,s+64|0,n,c)|0;r=t;return}else if((m|0)==15){a=s+32|0;b=s+64|0;d=s+96|0;Fc(s,a,b,d,c)|0;if(!(Za[k[c>>2]&7](n,d)|0)){r=t;return};k[p>>2]=k[d>>2];k[p+4>>2]=k[d+4>>2];k[p+8>>2]=k[d+8>>2];k[p+12>>2]=k[d+12>>2];k[p+16>>2]=k[d+16>>2];k[p+20>>2]=k[d+20>>2];k[p+24>>2]=k[d+24>>2];k[p+28>>2]=k[d+28>>2];k[d>>2]=k[n>>2];k[d+4>>2]=k[n+4>>2];k[d+8>>2]=k[n+8>>2];k[d+12>>2]=k[n+12>>2];k[d+16>>2]=k[n+16>>2];k[d+20>>2]=k[n+20>>2];j[d+24>>1]=j[n+24>>1]|0;i[d+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](d,b)|0)){r=t;return};k[p>>2]=k[b>>2];k[p+4>>2]=k[b+4>>2];k[p+8>>2]=k[b+8>>2];k[p+12>>2]=k[b+12>>2];k[p+16>>2]=k[b+16>>2];k[p+20>>2]=k[b+20>>2];k[p+24>>2]=k[b+24>>2];k[p+28>>2]=k[b+28>>2];k[b>>2]=k[d>>2];k[b+4>>2]=k[d+4>>2];k[b+8>>2]=k[d+8>>2];k[b+12>>2]=k[d+12>>2];k[b+16>>2]=k[d+16>>2];k[b+20>>2]=k[d+20>>2];j[b+24>>1]=j[d+24>>1]|0;i[b+26>>0]=i[d+26>>0]|0;k[d>>2]=k[p>>2];k[d+4>>2]=k[p+4>>2];k[d+8>>2]=k[p+8>>2];k[d+12>>2]=k[p+12>>2];k[d+16>>2]=k[p+16>>2];k[d+20>>2]=k[p+20>>2];j[d+24>>1]=j[p+24>>1]|0;i[d+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](b,a)|0)){r=t;return};k[p>>2]=k[a>>2];k[p+4>>2]=k[a+4>>2];k[p+8>>2]=k[a+8>>2];k[p+12>>2]=k[a+12>>2];k[p+16>>2]=k[a+16>>2];k[p+20>>2]=k[a+20>>2];k[p+24>>2]=k[a+24>>2];k[p+28>>2]=k[a+28>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];j[a+24>>1]=j[b+24>>1]|0;i[a+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](a,s)|0)){r=t;return};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[a>>2];k[s+4>>2]=k[a+4>>2];k[s+8>>2]=k[a+8>>2];k[s+12>>2]=k[a+12>>2];k[s+16>>2]=k[a+16>>2];k[s+20>>2]=k[a+20>>2];j[s+24>>1]=j[a+24>>1]|0;i[s+26>>0]=i[a+26>>0]|0;k[a>>2]=k[p>>2];k[a+4>>2]=k[p+4>>2];k[a+8>>2]=k[p+8>>2];k[a+12>>2]=k[p+12>>2];k[a+16>>2]=k[p+16>>2];k[a+20>>2]=k[p+20>>2];j[a+24>>1]=j[p+24>>1]|0;i[a+26>>0]=i[p+26>>0]|0;r=t;return}else if((m|0)==21){b=s+64|0;a=s+32|0;n=Za[k[c>>2]&7](a,s)|0;d=Za[k[c>>2]&7](b,a)|0;do if(n){k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];if(d){k[s>>2]=k[b>>2];k[s+4>>2]=k[b+4>>2];k[s+8>>2]=k[b+8>>2];k[s+12>>2]=k[b+12>>2];k[s+16>>2]=k[b+16>>2];k[s+20>>2]=k[b+20>>2];j[s+24>>1]=j[b+24>>1]|0;i[s+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;break};k[s>>2]=k[a>>2];k[s+4>>2]=k[a+4>>2];k[s+8>>2]=k[a+8>>2];k[s+12>>2]=k[a+12>>2];k[s+16>>2]=k[a+16>>2];k[s+20>>2]=k[a+20>>2];j[s+24>>1]=j[a+24>>1]|0;i[s+26>>0]=i[a+26>>0]|0;k[a>>2]=k[p>>2];k[a+4>>2]=k[p+4>>2];k[a+8>>2]=k[p+8>>2];k[a+12>>2]=k[p+12>>2];k[a+16>>2]=k[p+16>>2];k[a+20>>2]=k[p+20>>2];j[a+24>>1]=j[p+24>>1]|0;i[a+26>>0]=i[p+26>>0]|0;if(Za[k[c>>2]&7](b,a)|0){k[p>>2]=k[a>>2];k[p+4>>2]=k[a+4>>2];k[p+8>>2]=k[a+8>>2];k[p+12>>2]=k[a+12>>2];k[p+16>>2]=k[a+16>>2];k[p+20>>2]=k[a+20>>2];k[p+24>>2]=k[a+24>>2];k[p+28>>2]=k[a+28>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];j[a+24>>1]=j[b+24>>1]|0;i[a+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0}}else if(d?(k[p>>2]=k[a>>2],k[p+4>>2]=k[a+4>>2],k[p+8>>2]=k[a+8>>2],k[p+12>>2]=k[a+12>>2],k[p+16>>2]=k[a+16>>2],k[p+20>>2]=k[a+20>>2],k[p+24>>2]=k[a+24>>2],k[p+28>>2]=k[a+28>>2],k[a>>2]=k[b>>2],k[a+4>>2]=k[b+4>>2],k[a+8>>2]=k[b+8>>2],k[a+12>>2]=k[b+12>>2],k[a+16>>2]=k[b+16>>2],k[a+20>>2]=k[b+20>>2],j[a+24>>1]=j[b+24>>1]|0,i[a+26>>0]=i[b+26>>0]|0,k[b>>2]=k[p>>2],k[b+4>>2]=k[p+4>>2],k[b+8>>2]=k[p+8>>2],k[b+12>>2]=k[p+12>>2],k[b+16>>2]=k[p+16>>2],k[b+20>>2]=k[p+20>>2],j[b+24>>1]=j[p+24>>1]|0,i[b+26>>0]=i[p+26>>0]|0,Za[k[c>>2]&7](a,s)|0):0){k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[a>>2];k[s+4>>2]=k[a+4>>2];k[s+8>>2]=k[a+8>>2];k[s+12>>2]=k[a+12>>2];k[s+16>>2]=k[a+16>>2];k[s+20>>2]=k[a+20>>2];j[s+24>>1]=j[a+24>>1]|0;i[s+26>>0]=i[a+26>>0]|0;k[a>>2]=k[p>>2];k[a+4>>2]=k[p+4>>2];k[a+8>>2]=k[p+8>>2];k[a+12>>2]=k[p+12>>2];k[a+16>>2]=k[p+16>>2];k[a+20>>2]=k[p+20>>2];j[a+24>>1]=j[p+24>>1]|0;i[a+26>>0]=i[p+26>>0]|0}while(0);a=s+96|0;if((a|0)!=(o|0))while(1){if(Za[k[c>>2]&7](a,b)|0){k[q>>2]=k[a>>2];k[q+4>>2]=k[a+4>>2];k[q+8>>2]=k[a+8>>2];k[q+12>>2]=k[a+12>>2];k[q+16>>2]=k[a+16>>2];k[q+20>>2]=k[a+20>>2];k[q+24>>2]=k[a+24>>2];k[q+28>>2]=k[a+28>>2];d=a;e=b;while(1){k[d>>2]=k[e>>2];k[d+4>>2]=k[e+4>>2];k[d+8>>2]=k[e+8>>2];k[d+12>>2]=k[e+12>>2];k[d+16>>2]=k[e+16>>2];k[d+20>>2]=k[e+20>>2];j[d+24>>1]=j[e+24>>1]|0;i[d+26>>0]=i[e+26>>0]|0;if((e|0)==(s|0))break;b=e+-32|0;if(Za[k[c>>2]&7](q,b)|0){d=e;e=b}else break}k[e>>2]=k[q>>2];k[e+4>>2]=k[q+4>>2];k[e+8>>2]=k[q+8>>2];k[e+12>>2]=k[q+12>>2];k[e+16>>2]=k[q+16>>2];k[e+20>>2]=k[q+20>>2];j[e+24>>1]=j[q+24>>1]|0;i[e+26>>0]=i[q+26>>0]|0}b=a+32|0;if((b|0)==(o|0))break;else{p=a;a=b;b=p}}r=t;return}else if((m|0)==82){r=t;return}}function Fc(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0;h=r;r=r+32|0;g=h;l=Za[k[e>>2]&7](b,a)|0;f=Za[k[e>>2]&7](c,b)|0;do if(l){k[g>>2]=k[a>>2];k[g+4>>2]=k[a+4>>2];k[g+8>>2]=k[a+8>>2];k[g+12>>2]=k[a+12>>2];k[g+16>>2]=k[a+16>>2];k[g+20>>2]=k[a+20>>2];k[g+24>>2]=k[a+24>>2];k[g+28>>2]=k[a+28>>2];if(f){k[a>>2]=k[c>>2];k[a+4>>2]=k[c+4>>2];k[a+8>>2]=k[c+8>>2];k[a+12>>2]=k[c+12>>2];k[a+16>>2]=k[c+16>>2];k[a+20>>2]=k[c+20>>2];j[a+24>>1]=j[c+24>>1]|0;i[a+26>>0]=i[c+26>>0]|0;k[c>>2]=k[g>>2];k[c+4>>2]=k[g+4>>2];k[c+8>>2]=k[g+8>>2];k[c+12>>2]=k[g+12>>2];k[c+16>>2]=k[g+16>>2];k[c+20>>2]=k[g+20>>2];j[c+24>>1]=j[g+24>>1]|0;i[c+26>>0]=i[g+26>>0]|0;f=1;break};k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];j[a+24>>1]=j[b+24>>1]|0;i[a+26>>0]=i[b+26>>0]|0;k[b>>2]=k[g>>2];k[b+4>>2]=k[g+4>>2];k[b+8>>2]=k[g+8>>2];k[b+12>>2]=k[g+12>>2];k[b+16>>2]=k[g+16>>2];k[b+20>>2]=k[g+20>>2];j[b+24>>1]=j[g+24>>1]|0;i[b+26>>0]=i[g+26>>0]|0;if(Za[k[e>>2]&7](c,b)|0){k[g>>2]=k[b>>2];k[g+4>>2]=k[b+4>>2];k[g+8>>2]=k[b+8>>2];k[g+12>>2]=k[b+12>>2];k[g+16>>2]=k[b+16>>2];k[g+20>>2]=k[b+20>>2];k[g+24>>2]=k[b+24>>2];k[g+28>>2]=k[b+28>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];j[b+24>>1]=j[c+24>>1]|0;i[b+26>>0]=i[c+26>>0]|0;k[c>>2]=k[g>>2];k[c+4>>2]=k[g+4>>2];k[c+8>>2]=k[g+8>>2];k[c+12>>2]=k[g+12>>2];k[c+16>>2]=k[g+16>>2];k[c+20>>2]=k[g+20>>2];j[c+24>>1]=j[g+24>>1]|0;i[c+26>>0]=i[g+26>>0]|0;f=2}else f=1}else if(f){k[g>>2]=k[b>>2];k[g+4>>2]=k[b+4>>2];k[g+8>>2]=k[b+8>>2];k[g+12>>2]=k[b+12>>2];k[g+16>>2]=k[b+16>>2];k[g+20>>2]=k[b+20>>2];k[g+24>>2]=k[b+24>>2];k[g+28>>2]=k[b+28>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];j[b+24>>1]=j[c+24>>1]|0;i[b+26>>0]=i[c+26>>0]|0;k[c>>2]=k[g>>2];k[c+4>>2]=k[g+4>>2];k[c+8>>2]=k[g+8>>2];k[c+12>>2]=k[g+12>>2];k[c+16>>2]=k[g+16>>2];k[c+20>>2]=k[g+20>>2];j[c+24>>1]=j[g+24>>1]|0;i[c+26>>0]=i[g+26>>0]|0;if(Za[k[e>>2]&7](b,a)|0){k[g>>2]=k[a>>2];k[g+4>>2]=k[a+4>>2];k[g+8>>2]=k[a+8>>2];k[g+12>>2]=k[a+12>>2];k[g+16>>2]=k[a+16>>2];k[g+20>>2]=k[a+20>>2];k[g+24>>2]=k[a+24>>2];k[g+28>>2]=k[a+28>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];j[a+24>>1]=j[b+24>>1]|0;i[a+26>>0]=i[b+26>>0]|0;k[b>>2]=k[g>>2];k[b+4>>2]=k[g+4>>2];k[b+8>>2]=k[g+8>>2];k[b+12>>2]=k[g+12>>2];k[b+16>>2]=k[g+16>>2];k[b+20>>2]=k[g+20>>2];j[b+24>>1]=j[g+24>>1]|0;i[b+26>>0]=i[g+26>>0]|0;f=2}else f=1}else f=0;while(0);if(!(Za[k[e>>2]&7](d,c)|0)){l=f;r=h;return l|0};k[g>>2]=k[c>>2];k[g+4>>2]=k[c+4>>2];k[g+8>>2]=k[c+8>>2];k[g+12>>2]=k[c+12>>2];k[g+16>>2]=k[c+16>>2];k[g+20>>2]=k[c+20>>2];k[g+24>>2]=k[c+24>>2];k[g+28>>2]=k[c+28>>2];k[c>>2]=k[d>>2];k[c+4>>2]=k[d+4>>2];k[c+8>>2]=k[d+8>>2];k[c+12>>2]=k[d+12>>2];k[c+16>>2]=k[d+16>>2];k[c+20>>2]=k[d+20>>2];j[c+24>>1]=j[d+24>>1]|0;i[c+26>>0]=i[d+26>>0]|0;k[d>>2]=k[g>>2];k[d+4>>2]=k[g+4>>2];k[d+8>>2]=k[g+8>>2];k[d+12>>2]=k[g+12>>2];k[d+16>>2]=k[g+16>>2];k[d+20>>2]=k[g+20>>2];j[d+24>>1]=j[g+24>>1]|0;i[d+26>>0]=i[g+26>>0]|0;if(!(Za[k[e>>2]&7](c,b)|0)){l=f+1|0;r=h;return l|0};k[g>>2]=k[b>>2];k[g+4>>2]=k[b+4>>2];k[g+8>>2]=k[b+8>>2];k[g+12>>2]=k[b+12>>2];k[g+16>>2]=k[b+16>>2];k[g+20>>2]=k[b+20>>2];k[g+24>>2]=k[b+24>>2];k[g+28>>2]=k[b+28>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];j[b+24>>1]=j[c+24>>1]|0;i[b+26>>0]=i[c+26>>0]|0;k[c>>2]=k[g>>2];k[c+4>>2]=k[g+4>>2];k[c+8>>2]=k[g+8>>2];k[c+12>>2]=k[g+12>>2];k[c+16>>2]=k[g+16>>2];k[c+20>>2]=k[g+20>>2];j[c+24>>1]=j[g+24>>1]|0;i[c+26>>0]=i[g+26>>0]|0;if(!(Za[k[e>>2]&7](b,a)|0)){l=f+2|0;r=h;return l|0};k[g>>2]=k[a>>2];k[g+4>>2]=k[a+4>>2];k[g+8>>2]=k[a+8>>2];k[g+12>>2]=k[a+12>>2];k[g+16>>2]=k[a+16>>2];k[g+20>>2]=k[a+20>>2];k[g+24>>2]=k[a+24>>2];k[g+28>>2]=k[a+28>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];j[a+24>>1]=j[b+24>>1]|0;i[a+26>>0]=i[b+26>>0]|0;k[b>>2]=k[g>>2];k[b+4>>2]=k[g+4>>2];k[b+8>>2]=k[g+8>>2];k[b+12>>2]=k[g+12>>2];k[b+16>>2]=k[g+16>>2];k[b+20>>2]=k[g+20>>2];j[b+24>>1]=j[g+24>>1]|0;i[b+26>>0]=i[g+26>>0]|0;l=f+3|0;r=h;return l|0}function Gc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0;n=r;r=r+64|0;h=n+32|0;l=n;switch(b-a>>5|0){case 2:{d=b+-32|0;if(!(Za[k[c>>2]&7](d,a)|0)){a=1;r=n;return a|0};k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];k[a>>2]=k[d>>2];k[a+4>>2]=k[d+4>>2];k[a+8>>2]=k[d+8>>2];k[a+12>>2]=k[d+12>>2];k[a+16>>2]=k[d+16>>2];k[a+20>>2]=k[d+20>>2];j[a+24>>1]=j[d+24>>1]|0;i[a+26>>0]=i[d+26>>0]|0;k[d>>2]=k[h>>2];k[d+4>>2]=k[h+4>>2];k[d+8>>2]=k[h+8>>2];k[d+12>>2]=k[h+12>>2];k[d+16>>2]=k[h+16>>2];k[d+20>>2]=k[h+20>>2];j[d+24>>1]=j[h+24>>1]|0;i[d+26>>0]=i[h+26>>0]|0;a=1;r=n;return a|0}case 3:{f=a+32|0;e=b+-32|0;b=Za[k[c>>2]&7](f,a)|0;d=Za[k[c>>2]&7](e,f)|0;if(!b){if(!d){a=1;r=n;return a|0};k[h>>2]=k[f>>2];k[h+4>>2]=k[f+4>>2];k[h+8>>2]=k[f+8>>2];k[h+12>>2]=k[f+12>>2];k[h+16>>2]=k[f+16>>2];k[h+20>>2]=k[f+20>>2];k[h+24>>2]=k[f+24>>2];k[h+28>>2]=k[f+28>>2];k[f>>2]=k[e>>2];k[f+4>>2]=k[e+4>>2];k[f+8>>2]=k[e+8>>2];k[f+12>>2]=k[e+12>>2];k[f+16>>2]=k[e+16>>2];k[f+20>>2]=k[e+20>>2];j[f+24>>1]=j[e+24>>1]|0;i[f+26>>0]=i[e+26>>0]|0;k[e>>2]=k[h>>2];k[e+4>>2]=k[h+4>>2];k[e+8>>2]=k[h+8>>2];k[e+12>>2]=k[h+12>>2];k[e+16>>2]=k[h+16>>2];k[e+20>>2]=k[h+20>>2];j[e+24>>1]=j[h+24>>1]|0;i[e+26>>0]=i[h+26>>0]|0;if(!(Za[k[c>>2]&7](f,a)|0)){a=1;r=n;return a|0};k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];k[a>>2]=k[f>>2];k[a+4>>2]=k[f+4>>2];k[a+8>>2]=k[f+8>>2];k[a+12>>2]=k[f+12>>2];k[a+16>>2]=k[f+16>>2];k[a+20>>2]=k[f+20>>2];j[a+24>>1]=j[f+24>>1]|0;i[a+26>>0]=i[f+26>>0]|0;k[f>>2]=k[h>>2];k[f+4>>2]=k[h+4>>2];k[f+8>>2]=k[h+8>>2];k[f+12>>2]=k[h+12>>2];k[f+16>>2]=k[h+16>>2];k[f+20>>2]=k[h+20>>2];j[f+24>>1]=j[h+24>>1]|0;i[f+26>>0]=i[h+26>>0]|0;a=1;r=n;return a|0};k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];if(d){k[a>>2]=k[e>>2];k[a+4>>2]=k[e+4>>2];k[a+8>>2]=k[e+8>>2];k[a+12>>2]=k[e+12>>2];k[a+16>>2]=k[e+16>>2];k[a+20>>2]=k[e+20>>2];j[a+24>>1]=j[e+24>>1]|0;i[a+26>>0]=i[e+26>>0]|0;k[e>>2]=k[h>>2];k[e+4>>2]=k[h+4>>2];k[e+8>>2]=k[h+8>>2];k[e+12>>2]=k[h+12>>2];k[e+16>>2]=k[h+16>>2];k[e+20>>2]=k[h+20>>2];j[e+24>>1]=j[h+24>>1]|0;i[e+26>>0]=i[h+26>>0]|0;a=1;r=n;return a|0};k[a>>2]=k[f>>2];k[a+4>>2]=k[f+4>>2];k[a+8>>2]=k[f+8>>2];k[a+12>>2]=k[f+12>>2];k[a+16>>2]=k[f+16>>2];k[a+20>>2]=k[f+20>>2];j[a+24>>1]=j[f+24>>1]|0;i[a+26>>0]=i[f+26>>0]|0;k[f>>2]=k[h>>2];k[f+4>>2]=k[h+4>>2];k[f+8>>2]=k[h+8>>2];k[f+12>>2]=k[h+12>>2];k[f+16>>2]=k[h+16>>2];k[f+20>>2]=k[h+20>>2];j[f+24>>1]=j[h+24>>1]|0;i[f+26>>0]=i[h+26>>0]|0;if(!(Za[k[c>>2]&7](e,f)|0)){a=1;r=n;return a|0};k[h>>2]=k[f>>2];k[h+4>>2]=k[f+4>>2];k[h+8>>2]=k[f+8>>2];k[h+12>>2]=k[f+12>>2];k[h+16>>2]=k[f+16>>2];k[h+20>>2]=k[f+20>>2];k[h+24>>2]=k[f+24>>2];k[h+28>>2]=k[f+28>>2];k[f>>2]=k[e>>2];k[f+4>>2]=k[e+4>>2];k[f+8>>2]=k[e+8>>2];k[f+12>>2]=k[e+12>>2];k[f+16>>2]=k[e+16>>2];k[f+20>>2]=k[e+20>>2];j[f+24>>1]=j[e+24>>1]|0;i[f+26>>0]=i[e+26>>0]|0;k[e>>2]=k[h>>2];k[e+4>>2]=k[h+4>>2];k[e+8>>2]=k[h+8>>2];k[e+12>>2]=k[h+12>>2];k[e+16>>2]=k[h+16>>2];k[e+20>>2]=k[h+20>>2];j[e+24>>1]=j[h+24>>1]|0;i[e+26>>0]=i[h+26>>0]|0;a=1;r=n;return a|0}case 4:{Fc(a,a+32|0,a+64|0,b+-32|0,c)|0;a=1;r=n;return a|0}case 5:{e=a+32|0;f=a+64|0;g=a+96|0;d=b+-32|0;Fc(a,e,f,g,c)|0;if(!(Za[k[c>>2]&7](d,g)|0)){a=1;r=n;return a|0};k[h>>2]=k[g>>2];k[h+4>>2]=k[g+4>>2];k[h+8>>2]=k[g+8>>2];k[h+12>>2]=k[g+12>>2];k[h+16>>2]=k[g+16>>2];k[h+20>>2]=k[g+20>>2];k[h+24>>2]=k[g+24>>2];k[h+28>>2]=k[g+28>>2];k[g>>2]=k[d>>2];k[g+4>>2]=k[d+4>>2];k[g+8>>2]=k[d+8>>2];k[g+12>>2]=k[d+12>>2];k[g+16>>2]=k[d+16>>2];k[g+20>>2]=k[d+20>>2];j[g+24>>1]=j[d+24>>1]|0;i[g+26>>0]=i[d+26>>0]|0;k[d>>2]=k[h>>2];k[d+4>>2]=k[h+4>>2];k[d+8>>2]=k[h+8>>2];k[d+12>>2]=k[h+12>>2];k[d+16>>2]=k[h+16>>2];k[d+20>>2]=k[h+20>>2];j[d+24>>1]=j[h+24>>1]|0;i[d+26>>0]=i[h+26>>0]|0;if(!(Za[k[c>>2]&7](g,f)|0)){a=1;r=n;return a|0};k[h>>2]=k[f>>2];k[h+4>>2]=k[f+4>>2];k[h+8>>2]=k[f+8>>2];k[h+12>>2]=k[f+12>>2];k[h+16>>2]=k[f+16>>2];k[h+20>>2]=k[f+20>>2];k[h+24>>2]=k[f+24>>2];k[h+28>>2]=k[f+28>>2];k[f>>2]=k[g>>2];k[f+4>>2]=k[g+4>>2];k[f+8>>2]=k[g+8>>2];k[f+12>>2]=k[g+12>>2];k[f+16>>2]=k[g+16>>2];k[f+20>>2]=k[g+20>>2];j[f+24>>1]=j[g+24>>1]|0;i[f+26>>0]=i[g+26>>0]|0;k[g>>2]=k[h>>2];k[g+4>>2]=k[h+4>>2];k[g+8>>2]=k[h+8>>2];k[g+12>>2]=k[h+12>>2];k[g+16>>2]=k[h+16>>2];k[g+20>>2]=k[h+20>>2];j[g+24>>1]=j[h+24>>1]|0;i[g+26>>0]=i[h+26>>0]|0;if(!(Za[k[c>>2]&7](f,e)|0)){a=1;r=n;return a|0};k[h>>2]=k[e>>2];k[h+4>>2]=k[e+4>>2];k[h+8>>2]=k[e+8>>2];k[h+12>>2]=k[e+12>>2];k[h+16>>2]=k[e+16>>2];k[h+20>>2]=k[e+20>>2];k[h+24>>2]=k[e+24>>2];k[h+28>>2]=k[e+28>>2];k[e>>2]=k[f>>2];k[e+4>>2]=k[f+4>>2];k[e+8>>2]=k[f+8>>2];k[e+12>>2]=k[f+12>>2];k[e+16>>2]=k[f+16>>2];k[e+20>>2]=k[f+20>>2];j[e+24>>1]=j[f+24>>1]|0;i[e+26>>0]=i[f+26>>0]|0;k[f>>2]=k[h>>2];k[f+4>>2]=k[h+4>>2];k[f+8>>2]=k[h+8>>2];k[f+12>>2]=k[h+12>>2];k[f+16>>2]=k[h+16>>2];k[f+20>>2]=k[h+20>>2];j[f+24>>1]=j[h+24>>1]|0;i[f+26>>0]=i[h+26>>0]|0;if(!(Za[k[c>>2]&7](e,a)|0)){a=1;r=n;return a|0};k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];k[a>>2]=k[e>>2];k[a+4>>2]=k[e+4>>2];k[a+8>>2]=k[e+8>>2];k[a+12>>2]=k[e+12>>2];k[a+16>>2]=k[e+16>>2];k[a+20>>2]=k[e+20>>2];j[a+24>>1]=j[e+24>>1]|0;i[a+26>>0]=i[e+26>>0]|0;k[e>>2]=k[h>>2];k[e+4>>2]=k[h+4>>2];k[e+8>>2]=k[h+8>>2];k[e+12>>2]=k[h+12>>2];k[e+16>>2]=k[h+16>>2];k[e+20>>2]=k[h+20>>2];j[e+24>>1]=j[h+24>>1]|0;i[e+26>>0]=i[h+26>>0]|0;a=1;r=n;return a|0}case 1:case 0:{a=1;r=n;return a|0}default:{f=a+64|0;d=a+32|0;g=Za[k[c>>2]&7](d,a)|0;e=Za[k[c>>2]&7](f,d)|0;do if(g){k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];if(e){k[a>>2]=k[f>>2];k[a+4>>2]=k[f+4>>2];k[a+8>>2]=k[f+8>>2];k[a+12>>2]=k[f+12>>2];k[a+16>>2]=k[f+16>>2];k[a+20>>2]=k[f+20>>2];j[a+24>>1]=j[f+24>>1]|0;i[a+26>>0]=i[f+26>>0]|0;k[f>>2]=k[h>>2];k[f+4>>2]=k[h+4>>2];k[f+8>>2]=k[h+8>>2];k[f+12>>2]=k[h+12>>2];k[f+16>>2]=k[h+16>>2];k[f+20>>2]=k[h+20>>2];j[f+24>>1]=j[h+24>>1]|0;i[f+26>>0]=i[h+26>>0]|0;break};k[a>>2]=k[d>>2];k[a+4>>2]=k[d+4>>2];k[a+8>>2]=k[d+8>>2];k[a+12>>2]=k[d+12>>2];k[a+16>>2]=k[d+16>>2];k[a+20>>2]=k[d+20>>2];j[a+24>>1]=j[d+24>>1]|0;i[a+26>>0]=i[d+26>>0]|0;k[d>>2]=k[h>>2];k[d+4>>2]=k[h+4>>2];k[d+8>>2]=k[h+8>>2];k[d+12>>2]=k[h+12>>2];k[d+16>>2]=k[h+16>>2];k[d+20>>2]=k[h+20>>2];j[d+24>>1]=j[h+24>>1]|0;i[d+26>>0]=i[h+26>>0]|0;if(Za[k[c>>2]&7](f,d)|0){k[h>>2]=k[d>>2];k[h+4>>2]=k[d+4>>2];k[h+8>>2]=k[d+8>>2];k[h+12>>2]=k[d+12>>2];k[h+16>>2]=k[d+16>>2];k[h+20>>2]=k[d+20>>2];k[h+24>>2]=k[d+24>>2];k[h+28>>2]=k[d+28>>2];k[d>>2]=k[f>>2];k[d+4>>2]=k[f+4>>2];k[d+8>>2]=k[f+8>>2];k[d+12>>2]=k[f+12>>2];k[d+16>>2]=k[f+16>>2];k[d+20>>2]=k[f+20>>2];j[d+24>>1]=j[f+24>>1]|0;i[d+26>>0]=i[f+26>>0]|0;k[f>>2]=k[h>>2];k[f+4>>2]=k[h+4>>2];k[f+8>>2]=k[h+8>>2];k[f+12>>2]=k[h+12>>2];k[f+16>>2]=k[h+16>>2];k[f+20>>2]=k[h+20>>2];j[f+24>>1]=j[h+24>>1]|0;i[f+26>>0]=i[h+26>>0]|0}}else if(e?(k[h>>2]=k[d>>2],k[h+4>>2]=k[d+4>>2],k[h+8>>2]=k[d+8>>2],k[h+12>>2]=k[d+12>>2],k[h+16>>2]=k[d+16>>2],k[h+20>>2]=k[d+20>>2],k[h+24>>2]=k[d+24>>2],k[h+28>>2]=k[d+28>>2],k[d>>2]=k[f>>2],k[d+4>>2]=k[f+4>>2],k[d+8>>2]=k[f+8>>2],k[d+12>>2]=k[f+12>>2],k[d+16>>2]=k[f+16>>2],k[d+20>>2]=k[f+20>>2],j[d+24>>1]=j[f+24>>1]|0,i[d+26>>0]=i[f+26>>0]|0,k[f>>2]=k[h>>2],k[f+4>>2]=k[h+4>>2],k[f+8>>2]=k[h+8>>2],k[f+12>>2]=k[h+12>>2],k[f+16>>2]=k[h+16>>2],k[f+20>>2]=k[h+20>>2],j[f+24>>1]=j[h+24>>1]|0,i[f+26>>0]=i[h+26>>0]|0,Za[k[c>>2]&7](d,a)|0):0){k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];k[a>>2]=k[d>>2];k[a+4>>2]=k[d+4>>2];k[a+8>>2]=k[d+8>>2];k[a+12>>2]=k[d+12>>2];k[a+16>>2]=k[d+16>>2];k[a+20>>2]=k[d+20>>2];j[a+24>>1]=j[d+24>>1]|0;i[a+26>>0]=i[d+26>>0]|0;k[d>>2]=k[h>>2];k[d+4>>2]=k[h+4>>2];k[d+8>>2]=k[h+8>>2];k[d+12>>2]=k[h+12>>2];k[d+16>>2]=k[h+16>>2];k[d+20>>2]=k[h+20>>2];j[d+24>>1]=j[h+24>>1]|0;i[d+26>>0]=i[h+26>>0]|0}while(0);e=a+96|0;if((e|0)==(b|0)){a=1;r=n;return a|0}d=0;while(1){if(Za[k[c>>2]&7](e,f)|0){k[l>>2]=k[e>>2];k[l+4>>2]=k[e+4>>2];k[l+8>>2]=k[e+8>>2];k[l+12>>2]=k[e+12>>2];k[l+16>>2]=k[e+16>>2];k[l+20>>2]=k[e+20>>2];k[l+24>>2]=k[e+24>>2];k[l+28>>2]=k[e+28>>2];g=e;h=f;while(1){k[g>>2]=k[h>>2];k[g+4>>2]=k[h+4>>2];k[g+8>>2]=k[h+8>>2];k[g+12>>2]=k[h+12>>2];k[g+16>>2]=k[h+16>>2];k[g+20>>2]=k[h+20>>2];j[g+24>>1]=j[h+24>>1]|0;i[g+26>>0]=i[h+26>>0]|0;if((h|0)==(a|0))break;f=h+-32|0;if(Za[k[c>>2]&7](l,f)|0){g=h;h=f}else break}k[h>>2]=k[l>>2];k[h+4>>2]=k[l+4>>2];k[h+8>>2]=k[l+8>>2];k[h+12>>2]=k[l+12>>2];k[h+16>>2]=k[l+16>>2];k[h+20>>2]=k[l+20>>2];j[h+24>>1]=j[l+24>>1]|0;i[h+26>>0]=i[l+26>>0]|0;d=d+1|0;if((d|0)==8)break}f=e+32|0;if((f|0)==(b|0)){d=1;m=35;break}else{h=e;e=f;f=h}}if((m|0)==35){r=n;return d|0}a=(e+32|0)==(b|0);r=n;return a|0}}return 0}function Hc(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0;l=r;r=r+48|0;j=l;i=Za[k[e>>2]&7](b,a)|0;f=Za[k[e>>2]&7](c,b)|0;do if(i){if(f){g=j;h=a;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=a;h=c;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=c;h=j;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));f=1;break}g=j;h=a;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=a;h=b;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=b;h=j;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));if(Za[k[e>>2]&7](c,b)|0){g=j;h=b;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=b;h=c;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=c;h=j;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));f=2}else f=1}else if(f){g=j;h=b;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=b;h=c;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=c;h=j;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));if(Za[k[e>>2]&7](b,a)|0){g=j;h=a;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=a;h=b;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=b;h=j;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));f=2}else f=1}else f=0;while(0);if(!(Za[k[e>>2]&7](d,c)|0)){d=f;r=l;return d|0}g=j;h=c;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=c;h=d;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=d;h=j;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));if(!(Za[k[e>>2]&7](c,b)|0)){d=f+1|0;r=l;return d|0}g=j;h=b;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=b;h=c;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=c;h=j;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));if(!(Za[k[e>>2]&7](b,a)|0)){d=f+2|0;r=l;return d|0}g=j;h=a;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=a;h=b;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));g=b;h=j;i=g+44|0;do{k[g>>2]=k[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));d=f+3|0;r=l;return d|0}function Ic(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0;n=r;r=r+48|0;m=n;switch((b-a|0)/44|0|0){case 2:{d=b+-44|0;if(!(Za[k[c>>2]&7](d,a)|0)){m=1;r=n;return m|0}g=m;j=a;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=a;j=d;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=d;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));m=1;r=n;return m|0}case 3:{f=a+44|0;e=b+-44|0;b=Za[k[c>>2]&7](f,a)|0;d=Za[k[c>>2]&7](e,f)|0;if(!b){if(!d){m=1;r=n;return m|0}g=m;j=f;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=f;j=e;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=e;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));if(!(Za[k[c>>2]&7](f,a)|0)){m=1;r=n;return m|0}g=m;j=a;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=a;j=f;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=f;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));m=1;r=n;return m|0}if(d){g=m;j=a;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=a;j=e;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=e;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));m=1;r=n;return m|0}g=m;j=a;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=a;j=f;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=f;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));if(!(Za[k[c>>2]&7](e,f)|0)){m=1;r=n;return m|0}g=m;j=f;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=f;j=e;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=e;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));m=1;r=n;return m|0}case 4:{Hc(a,a+44|0,a+88|0,b+-44|0,c)|0;m=1;r=n;return m|0}case 5:{e=a+44|0;f=a+88|0;h=a+132|0;d=b+-44|0;Hc(a,e,f,h,c)|0;if(!(Za[k[c>>2]&7](d,h)|0)){m=1;r=n;return m|0}g=m;j=h;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=h;j=d;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=d;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));if(!(Za[k[c>>2]&7](h,f)|0)){m=1;r=n;return m|0}g=m;j=f;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=f;j=h;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=h;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));if(!(Za[k[c>>2]&7](f,e)|0)){m=1;r=n;return m|0}g=m;j=e;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=e;j=f;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=f;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));if(!(Za[k[c>>2]&7](e,a)|0)){m=1;r=n;return m|0}g=m;j=a;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=a;j=e;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=e;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));m=1;r=n;return m|0}case 1:case 0:{m=1;r=n;return m|0}default:{f=a+88|0;e=a+44|0;l=Za[k[c>>2]&7](e,a)|0;d=Za[k[c>>2]&7](f,e)|0;do if(l){if(d){g=m;j=a;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=a;j=f;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=f;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));break}g=m;j=a;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=a;j=e;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=e;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));if(Za[k[c>>2]&7](f,e)|0){g=m;j=e;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=e;j=f;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=f;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0))}}else if(d){g=m;j=e;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=e;j=f;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=f;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));if(Za[k[c>>2]&7](e,a)|0){g=m;j=a;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=a;j=e;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=e;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0))}}while(0);e=a+132|0;if((e|0)==(b|0)){m=1;r=n;return m|0}d=0;i=0;while(1){if(Za[k[c>>2]&7](e,f)|0){g=m;j=e;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));g=e;h=f;while(1){j=h;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));if((h|0)==(a|0))break;f=h+-44|0;if(Za[k[c>>2]&7](m,f)|0){g=h;h=f}else break}g=h;j=m;l=g+44|0;do{k[g>>2]=k[j>>2];g=g+4|0;j=j+4|0}while((g|0)<(l|0));f=i+1|0;h=(f|0)==8;i=e+44|0;d=h?(i|0)==(b|0):d;if(h){e=34;break}else{g=f;f=h?i:e}}else{g=i;f=e}e=f+44|0;if((e|0)==(b|0)){d=1;e=34;break}else i=g}if((e|0)==34){r=n;return d|0}}}return 0}
function $a(a){a=a|0;var b=0;b=r;r=r+a|0;r=r+15&-16;return b|0}function ab(){return r|0}function bb(a){a=a|0;r=a}function cb(a,b){a=a|0;b=b|0;r=a;s=b}function db(a,b){a=a|0;b=b|0;if(!w){w=a;x=b}}function eb(a){a=a|0;i[t>>0]=i[a>>0];i[t+1>>0]=i[a+1>>0];i[t+2>>0]=i[a+2>>0];i[t+3>>0]=i[a+3>>0]}function fb(a){a=a|0;i[t>>0]=i[a>>0];i[t+1>>0]=i[a+1>>0];i[t+2>>0]=i[a+2>>0];i[t+3>>0]=i[a+3>>0];i[t+4>>0]=i[a+4>>0];i[t+5>>0]=i[a+5>>0];i[t+6>>0]=i[a+6>>0];i[t+7>>0]=i[a+7>>0]}function gb(a){a=a|0;L=a}function hb(){return L|0}function ib(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=d+4|0;e=_d((((k[i>>2]|0)-(k[d>>2]|0)|0)/12|0)<<2)|0;k[a>>2]=e;e=((k[i>>2]|0)-(k[d>>2]|0)|0)/12|0;k[b>>2]=e;e=_d(e<<2)|0;k[c>>2]=e;b=k[d>>2]|0;if((k[i>>2]|0)==(b|0))return;f=0;while(1){j=b+(f*12|0)+4|0;h=b+(f*12|0)|0;g=(k[j>>2]|0)-(k[h>>2]|0)|0;k[e+(f<<2)>>2]=g>>3;g=_d(g<<1|4)|0;k[(k[a>>2]|0)+(f<<2)>>2]=g;g=(g&4|0)==0?g:g+4|0;b=k[j>>2]|0;h=k[h>>2]|0;if((b|0)!=(h|0)){b=b-h>>3;e=0;do{j=e<<1;p[g+(j<<3)>>3]=+(k[h+(e<<3)>>2]|0);p[g+((j|1)<<3)>>3]=+(k[h+(e<<3)+4>>2]|0);e=e+1|0}while(e>>>0<b>>>0)}f=f+1|0;b=k[d>>2]|0;if(f>>>0>=(((k[i>>2]|0)-b|0)/12|0)>>>0)break;e=k[c>>2]|0}return}function jb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,q=0,s=0;q=r;r=r+16|0;n=q+8|0;e=q;l=d+4|0;h=((k[l>>2]|0)-(k[d>>2]|0)|0)/12|0;k[e>>2]=h;k[e+4>>2]=h<<2;Nd(880,e);e=_d((((k[l>>2]|0)-(k[d>>2]|0)|0)/12|0)<<2)|0;k[a>>2]=e;e=((k[l>>2]|0)-(k[d>>2]|0)|0)/12|0;k[b>>2]=e;k[n>>2]=e;k[n+4>>2]=e<<2;Nd(892,n);e=_d((((k[l>>2]|0)-(k[d>>2]|0)|0)/12|0)<<2)|0;k[c>>2]=e;b=k[d>>2]|0;a:do if((k[l>>2]|0)!=(b|0)){f=0;while(1){s=b+(f*12|0)+4|0;h=b+(f*12|0)|0;g=((k[s>>2]|0)-(k[h>>2]|0)|0)/12|0;k[e+(f<<2)>>2]=g;g=_d(g*24|4)|0;k[(k[a>>2]|0)+(f<<2)>>2]=g;g=(g&4|0)==0?g:g+4|0;b=k[s>>2]|0;h=k[h>>2]|0;if((b|0)!=(h|0)){b=(b-h|0)/12|0;e=0;do{s=e*3|0;p[g+(s<<3)>>3]=+(k[h+(e*12|0)>>2]|0);p[g+(s+1<<3)>>3]=+(k[h+(e*12|0)+4>>2]|0);p[g+(s+2<<3)>>3]=+(k[h+(e*12|0)+8>>2]|0);e=e+1|0}while(e>>>0<b>>>0)}f=f+1|0;b=k[d>>2]|0;if(f>>>0>=(((k[l>>2]|0)-b|0)/12|0)>>>0)break a;e=k[c>>2]|0}}while(0);g=(k[87]|0)>-1;b:do if(!0){b=904;o=11}else{b=904;e=904;while(1){if(!(i[b>>0]|0)){b=e;break b}b=b+1|0;e=b;if(!(e&3)){o=11;break}}}while(0);if((o|0)==11){while(1){e=k[b>>2]|0;if(!((e&-2139062144^-2139062144)&e+-16843009))b=b+4|0;else break}if((e&255)<<24>>24)do b=b+1|0;while((i[b>>0]|0)!=0)}f=b-904|0;b=k[72]|0;e=(b|0)==0;c:do if(g){do if(e){b=i[346]|0;i[346]=b+255|b;b=k[68]|0;if(!(b&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;b=e+(k[80]|0)|0;k[72]=b;break}else{k[68]=b|32;m=0;o=33;break c}}else e=k[73]|0;while(0);if((b-e|0)>>>0<f>>>0){m=Ta[k[308>>2]&7](272,904,f)|0;o=33;break}else{fe(e|0,904,f|0)|0;k[73]=(k[73]|0)+f;break}}else{do if(e){b=i[346]|0;i[346]=b+255|b;b=k[68]|0;if(!(b&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;b=e+(k[80]|0)|0;k[72]=b;break}else{k[68]=b|32;m=0;o=33;break c}}else e=k[73]|0;while(0);if((b-e|0)>>>0<f>>>0){m=Ta[k[308>>2]&7](272,904,f)|0;o=33;break}else{fe(e|0,904,f|0)|0;k[73]=(k[73]|0)+f;break}}while(0);if(((o|0)==33?(m|0)!=(f|0):0)?(((m>>>0)/(f>>>0)|0)+-1|0)<0:0){r=q;return}f=i[347]|0;if(f<<24>>24!=10){b=k[73]|0;e=k[72]|0;if(b>>>0<e>>>0){k[73]=b+1;i[b>>0]=10;r=q;return}}else e=k[72]|0;i[n>>0]=10;do if(!e){f=j[173]|0;b=(f&65535)<<24>>24;i[346]=b+255|b;b=k[68]|0;if(!(b&8)){k[70]=0;k[69]=0;g=k[79]|0;k[75]=g;k[73]=g;e=g+(k[80]|0)|0;k[72]=e;b=(f&65535)>>>8&255;o=44;break}else{k[68]=b|32;break}}else{g=k[73]|0;b=f;o=44}while(0);do if((o|0)==44)if(g>>>0>=e>>>0|b<<24>>24==10){Ta[k[308>>2]&7](272,n,1)|0;break}else{k[73]=g+1;i[g>>0]=10;break}while(0);r=q;return}function kb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0.0,i=0,j=0,l=0,m=0,n=0.0,o=0,q=0.0,r=0,s=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;k[a>>2]=0;C=a+4|0;k[C>>2]=0;k[a+8>>2]=0;if((c|0)<=0)return;D=a+8|0;i=0;g=0;e=0;a:while(1){if(i>>>0>=g>>>0){l=k[a>>2]|0;f=l;m=(i-f|0)/12|0;o=m+1|0;if(o>>>0>357913941){E=6;break}f=(g-f|0)/12|0;if(f>>>0<178956970){f=f<<1;f=f>>>0<o>>>0?o:f;if(!f){f=0;g=0;j=l}else E=9}else{f=357913941;E=9}if((E|0)==9){E=0;j=f*12|0;j=(j|0)==0?1:j;g=_d(j)|0;if(!g){do{g=k[35]|0;k[35]=g+0;if(!g){E=12;break a}Xa[g&0]();g=_d(j)|0}while((g|0)==0);j=k[a>>2]|0;i=k[C>>2]|0}else j=l}l=g+(m*12|0)|0;m=l;r=g+(f*12|0)|0;s=g+(o*12|0)|0;o=s;k[l>>2]=0;k[l+4>>2]=0;k[l+8>>2]=0;if((i|0)==(j|0)){f=i;g=m;i=f}else{f=l;g=m;do{B=f+-12|0;A=i;i=i+-12|0;k[B>>2]=0;z=f+-8|0;k[z>>2]=0;k[f+-4>>2]=0;k[B>>2]=k[i>>2];B=A+-8|0;k[z>>2]=k[B>>2];A=A+-4|0;k[f+-4>>2]=k[A>>2];k[A>>2]=0;k[B>>2]=0;k[i>>2]=0;f=g+-12|0;g=f}while((i|0)!=(j|0));i=k[a>>2]|0;f=k[C>>2]|0}k[a>>2]=g;k[C>>2]=o;k[D>>2]=r;o=i;if((f|0)!=(o|0))do{g=f;f=f+-12|0;l=k[f>>2]|0;m=l;if(l){g=g+-8|0;j=k[g>>2]|0;if((j|0)!=(l|0))k[g>>2]=j+(~((j+-8-m|0)>>>3)<<3);$d(l)}}while((f|0)!=(o|0));if(!i)f=s;else{$d(i);f=s}}else{k[i>>2]=0;k[i+4>>2]=0;k[i+8>>2]=0;f=i+12|0;k[C>>2]=f}y=f+-12|0;z=k[b+(e<<2)>>2]|0;A=k[d+(e<<2)>>2]|0;if((A|0)>0){B=f+-8|0;w=f+-4|0;x=0;do{i=x<<1;h=+p[z+(i<<3)>>3];p[t>>3]=h;f=k[t+4>>2]|0;g=de(k[t>>2]|0,f|0,52)|0;g=g&2047;do if(g>>>0<=1074){f=(f|0)<0;q=f?-h:h;if(g>>>0<1022){h=h*0.0;break}n=q+4503599627370496.0+-4503599627370496.0-q;if(!(n>.5)){h=q+n;if(n<=-.5)h=h+1.0}else h=q+n+-1.0;h=f?-h:h}while(0);v=~~h;h=+p[z+((i|1)<<3)>>3];p[t>>3]=h;f=k[t+4>>2]|0;g=de(k[t>>2]|0,f|0,52)|0;g=g&2047;do if(g>>>0<=1074){f=(f|0)<0;q=f?-h:h;if(g>>>0<1022){h=h*0.0;break}n=q+4503599627370496.0+-4503599627370496.0-q;if(!(n>.5)){h=q+n;if(n<=-.5)h=h+1.0}else h=q+n+-1.0;h=f?-h:h}while(0);l=~~h;g=k[B>>2]|0;f=k[w>>2]|0;if(g>>>0>=f>>>0){u=k[y>>2]|0;r=u;s=g-r>>3;o=s+1|0;if(o>>>0>536870911){E=48;break a}f=f-r|0;if(f>>3>>>0<268435455){f=f>>2;f=f>>>0<o>>>0?o:f;if(!f){j=0;i=0}else E=51}else{f=536870911;E=51}if((E|0)==51){E=0;j=f<<3;j=(j|0)==0?1:j;i=_d(j)|0;if(!i)do{i=k[35]|0;k[35]=i+0;if(!i){E=54;break a}Xa[i&0]();i=_d(j)|0}while((i|0)==0);j=f}f=i+(s<<3)|0;m=i+(j<<3)|0;k[f>>2]=v;k[i+(s<<3)+4>>2]=l;l=i+(o<<3)|0;if((g|0)!=(u|0)){j=g+-8|0;while(1){v=g;g=g+-8|0;k[f+-8>>2]=k[g>>2];k[f+-4>>2]=k[v+-4>>2];if((g|0)==(u|0))break;else f=f+-8|0}f=i+(s+~((j-r|0)>>>3)<<3)|0}k[y>>2]=f;k[B>>2]=l;k[w>>2]=m;if(u)$d(u)}else{k[g>>2]=v;k[g+4>>2]=l;k[B>>2]=g+8}x=x+1|0}while((x|0)<(A|0))}e=e+1|0;if((e|0)>=(c|0)){E=65;break}i=k[C>>2]|0;g=k[D>>2]|0}if((E|0)==6)xa(1340,1363,303,1438);else if((E|0)==12){E=ya(4)|0;k[E>>2]=128;La(E|0,8,1)}else if((E|0)==48)xa(1340,1363,303,1438);else if((E|0)==54){E=ya(4)|0;k[E>>2]=128;La(E|0,8,1)}else if((E|0)==65)return}function lb(a,b,c,d,e,f,g,h,m,n){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;m=m|0;n=n|0;var o=0,q=0,s=0,t=0,u=0.0,v=0.0,w=0,x=0.0,y=0,z=0.0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=r;r=r+112|0;P=Y+96|0;N=Y+72|0;O=Y+56|0;W=Y+44|0;V=Y+32|0;T=Y+20|0;R=Y+8|0;Q=Y;kb(W,a,b,c);kb(V,d,e,f);k[g>>2]=0;b=k[W>>2]|0;X=W+4|0;e=k[X>>2]|0;if((b|0)!=(e|0)?(o=k[V>>2]|0,q=k[V+4>>2]|0,(o|0)!=(q|0)):0){k[T>>2]=0;S=T+4|0;k[S>>2]=0;k[T+8>>2]=0;if(b>>>0<e>>>0){do{mb(T,k[b>>2]|0,k[b+4>>2]|0,0);b=b+12|0}while(b>>>0<e>>>0);e=k[T>>2]|0;a=k[S>>2]|0;c=a;if((e|0)==(a|0)){f=e;b=e;e=c}else{b=e;do{i[b+4>>0]=1;b=b+32|0}while((b|0)!=(a|0));f=e;b=a;e=c}}else{f=0;b=0;e=0}if(o>>>0<q>>>0){do{mb(T,k[o>>2]|0,k[o+4>>2]|0,1);o=o+12|0}while(o>>>0<q>>>0);c=k[S>>2]|0;b=c;o=k[T>>2]|0}else{o=f;c=e}if((b|0)!=(o|0)){a=o;b=b-a>>5;e=0;do{k[o+(e<<5)+4+4>>2]=e;e=e+1|0}while(e>>>0<b>>>0);o=a}k[P>>2]=0;J=P+4|0;k[J>>2]=0;k[P+8>>2]=0;I=o;C=c-o>>5;A=P+8|0;B=(C|0)!=0;a:do if(B){b=C*24|0;o=_d(b)|0;b:do if(!o){while(1){o=k[35]|0;k[35]=o+0;if(!o)break;Xa[o&0]();o=_d(b)|0;if(o)break b}Y=ya(4)|0;k[Y>>2]=128;La(Y|0,8,1)}while(0);s=o;q=o+(C*24|0)|0;k[P>>2]=s;k[J>>2]=s;k[A>>2]=q;s=N+4|0;t=N+8|0;w=N+12|0;y=N+16|0;b=0;while(1){e=k[I+(b<<5)+12>>2]|0;a=k[I+(b<<5)+16>>2]|0;c=k[I+(b<<5)+20>>2]|0;f=k[I+(b<<5)+24>>2]|0;d=k[I+(b<<5)+28>>2]|0;k[N>>2]=e;k[s>>2]=a;k[t>>2]=c;k[w>>2]=f;H=y;k[H>>2]=b;k[H+4>>2]=d;if(o>>>0<q>>>0){k[o>>2]=e;k[o+4>>2]=a;k[o+8>>2]=c;k[o+12>>2]=f;k[o+16>>2]=b;k[o+20>>2]=d;k[J>>2]=o+24}else Db(P,N);b=b+1|0;if(b>>>0>=C>>>0){o=0;break a}o=k[J>>2]|0;q=k[A>>2]|0}}else o=1;while(0);k[O>>2]=0;H=O+4|0;k[H>>2]=0;k[O+8>>2]=0;e=O+8|0;if(B){if(o)o=0;else{b=C*24|0;o=_d(b)|0;c:do if(!o){while(1){o=k[35]|0;k[35]=o+0;if(!o)break;Xa[o&0]();o=_d(b)|0;if(o)break c}Y=ya(4)|0;k[Y>>2]=128;La(Y|0,8,1)}while(0)}G=o;k[O>>2]=G;k[H>>2]=G;k[e>>2]=o+(C*24|0)}Eb(O,k[P>>2]|0,k[J>>2]|0);G=k[H>>2]|0;a=k[O>>2]|0;e=(G-a|0)/24|0;c=(G|0)==(a|0);d:do if(!c){b=e<<5;b=(b|0)==0?1:b;o=_d(b)|0;do if(!o){while(1){o=k[35]|0;k[35]=o+0;if(!o){U=39;break}Xa[o&0]();o=_d(b)|0;if(o){U=40;break}}if((U|0)==39){Y=ya(4)|0;k[Y>>2]=128;La(Y|0,8,1)}else if((U|0)==40){f=o;b=o+(e<<5)|0;e=b;if(c){M=f;K=f;L=e;break d}else{F=a;E=f;a=f;break}}}else{D=o;e=o+(e<<5)|0;F=a;b=e;E=D;a=D}while(0);e:while(1){t=k[F+16>>2]|0;q=k[I+(t<<5)>>2]|0;t=I+(t<<5)+4|0;s=k[t>>2]|0;t=k[t+4>>2]|0;w=k[F>>2]|0;y=k[F+4>>2]|0;A=k[F+8>>2]|0;B=k[F+12>>2]|0;C=k[F+20>>2]|0;if((o|0)==(b|0)){c=a;D=E;f=a-E>>5;d=f+1|0;if(d>>>0>134217727){U=44;break}o=e-E|0;if(o>>5>>>0<67108863){o=o>>4;o=o>>>0<d>>>0?d:o;if(!o){e=0;a=0}else U=47}else{o=134217727;U=47}if((U|0)==47){U=0;e=o<<5;e=(e|0)==0?1:e;b=_d(e)|0;if(!b)do{b=k[35]|0;k[35]=b+0;if(!b){U=50;break e}Xa[b&0]();b=_d(e)|0}while((b|0)==0);e=o;a=b}b=a+(f<<5)|0;o=b;e=a+(e<<5)|0;k[b>>2]=q;q=a+(f<<5)+4|0;k[q>>2]=s;k[q+4>>2]=t;k[a+(f<<5)+12>>2]=w;k[a+(f<<5)+16>>2]=y;k[a+(f<<5)+20>>2]=A;k[a+(f<<5)+24>>2]=B;k[a+(f<<5)+28>>2]=C;a=a+(d<<5)|0;if((c|0)!=(D|0))do{C=c;c=c+-32|0;k[b+-32>>2]=k[c>>2];y=C+-28|0;A=k[y+4>>2]|0;B=b+-28|0;k[B>>2]=k[y>>2];k[B+4>>2]=A;k[b+-20>>2]=k[C+-20>>2];k[b+-16>>2]=k[C+-16>>2];k[b+-12>>2]=k[C+-12>>2];k[b+-8>>2]=k[C+-8>>2];k[b+-4>>2]=k[C+-4>>2];b=o+-32|0;o=b}while((c|0)!=(D|0));if(!E)c=o;else{$d(E);c=o}}else{k[o>>2]=q;c=o+4|0;k[c>>2]=s;k[c+4>>2]=t;k[o+12>>2]=w;k[o+16>>2]=y;k[o+20>>2]=A;k[o+24>>2]=B;k[o+28>>2]=C;c=E;a=a+32|0}o=F+24|0;if((o|0)==(G|0)){M=c;K=a;L=e;break d}F=o;o=a;b=e;E=c}if((U|0)==44)xa(1340,1363,303,1438);else if((U|0)==50){Y=ya(4)|0;k[Y>>2]=128;La(Y|0,8,1)}}else{M=0;K=0;L=0}while(0);o=k[T>>2]|0;b=o;if(!o)o=T+8|0;else{e=k[S>>2]|0;if((e|0)!=(o|0))k[S>>2]=e+(~((e+-32-b|0)>>>5)<<5);$d(o);o=T+8|0;k[o>>2]=0;k[S>>2]=0;k[T>>2]=0}k[T>>2]=M;k[S>>2]=K;k[o>>2]=L;b=k[O>>2]|0;e=b;a=M;if(b){o=k[H>>2]|0;if((o|0)!=(b|0))k[H>>2]=o+(~(((o+-24-e|0)>>>0)/24|0)*24|0);$d(b)}o=k[P>>2]|0;b=o;if(o){e=k[J>>2]|0;if((e|0)!=(o|0))k[J>>2]=e+(~(((e+-24-b|0)>>>0)/24|0)*24|0);$d(o)}J=k[S>>2]|0;k[P>>2]=1;ob(a,J,P);do if((a|0)!=(J|0)){K=N+4|0;I=k[a+12>>2]|0;f=0;E=0;d=0;w=0;s=0;o=a;b=0;c=0;e=0;f:while(1){if(d){F=0;t=E;H=J;G=b}else{t=o;q=b;while(1){if((k[t+12>>2]|0)!=(I|0)){o=1;a=t;b=q;break};k[K>>2]=0;k[K+4>>2]=0;i[K+8>>0]=0;i[O>>0]=0;o=e;do if((o|0)==(c|0)){d=e-q|0;a=d>>5;f=a+1|0;if(f>>>0>134217727){U=78;break f}if(a>>>0<67108863){e=d>>4;e=e>>>0<f>>>0?f:e}else e=134217727;b=e<<5;b=(b|0)==0?1:b;o=_d(b)|0;if(!o)do{o=k[35]|0;k[35]=o+0;if(!o){U=84;break f}Xa[o&0]();o=_d(b)|0}while((o|0)==0);c=o+(e<<5)|0;k[o+(a<<5)>>2]=0;k[o+(a<<5)+4>>2]=0;k[o+(a<<5)+8>>2]=t;b=o+(a<<5)+12|0;k[b>>2]=k[N>>2];k[b+4>>2]=k[N+4>>2];k[b+8>>2]=k[N+8>>2];i[b+12>>0]=i[N+12>>0]|0;i[o+(a<<5)+25>>0]=1;a=o+(a<<5)+26|0;j[a>>1]=j[O>>1]|0;j[a+2>>1]=j[O+2>>1]|0;j[a+4>>1]=j[O+4>>1]|0;a=o+(f<<5)|0;b=o;e=q;fe(o|0,e|0,d|0)|0;if(!q){e=a;break}$d(e);e=a}else{k[o>>2]=0;k[o+4>>2]=0;k[o+8>>2]=t;b=o+12|0;k[b>>2]=k[N>>2];k[b+4>>2]=k[N+4>>2];k[b+8>>2]=k[N+8>>2];i[b+12>>0]=i[N+12>>0]|0;i[o+25>>0]=1;b=o+26|0;j[b>>1]=j[O>>1]|0;j[b+2>>1]=j[O+2>>1]|0;j[b+4>>1]=j[O+4>>1]|0;b=q;e=o+32|0}while(0);t=t+32|0;if((t|0)==(J|0)){o=0;a=J;break}else q=b}F=o;t=b;f=e;H=a;G=b}if((t|0)!=(f|0)){z=+(I|0);d=t;do{o=k[d+8>>2]|0;b=k[o+16>>2]|0;q=k[o+20>>2]|0;a=k[o+24>>2]|0;do if((b|0)==(a|0)){u=+(b|0);o=k[o+12>>2]|0}else{o=k[o+12>>2]|0;x=+(o|0);u=+(b|0);v=z-x;if(v==0.0)break;u=u+(+(a|0)-u)*v/(+(q|0)-x)}while(0);p[d+16>>3]=u;i[d+24>>0]=((I|0)==(q|0)|(I|0)==(o|0))&1;d=d+32|0}while((d|0)!=(f|0))}k[P>>2]=2;qb(t,f,P);E=G;D=e;if((E|0)==(D|0)){o=E;q=w}else{C=E;o=G;t=w;while(1){a=C+32|0;b=a;g:do if(!((a|0)==(D|0)|(i[C+24>>0]|0)==0)){d=C+16|0;f=C;while(1){if(!(i[f+56>>0]|0))break g;if(!(+p[f+48>>3]==+p[d>>3]))break g;f=a+32|0;b=f;if((f|0)==(D|0))break;else{M=a;a=f;f=M}}}while(0);a=o;B=a>>>0<b>>>0;if(B){f=a;do{q=k[f+8>>2]|0;d=k[q+12>>2]|0;q=k[q+20>>2]|0;if((d|0)!=(q|0)){i[f+25>>0]=(I|0)==(d|0)&1;i[f+26>>0]=(I|0)==(q|0)&1}f=f+32|0}while(f>>>0<b>>>0)}if((C|0)==(b|0))q=t;else{A=b+25|0;d=o;q=t;while(1){f=d;h:do if((f|0)==(b|0)){f=d;d=q;U=111}else{w=q;while(1){t=k[f+8>>2]|0;q=i[f+25>>0]|0;if((k[t+12>>2]|0)==(k[t+20>>2]|0)){f=d;y=s;d=w;break h}q=q<<24>>24==0;if(!q)k[f>>2]=s;do if(!(i[t+4>>0]|0)){if(q)d=(k[t+28>>2]|0)+w|0;else d=w;if(i[f+26>>0]|0){t=d;break}s=(k[t+28>>2]|0)+s|0;t=d}else t=w;while(0);if(!q)k[f+4>>2]=s;f=f+32|0;d=f;if((f|0)==(b|0)){f=d;d=t;U=111;break}else w=t}}while(0);if((U|0)==111){U=0;q=i[A>>0]|0;y=s}w=f;i:do if((w|0)==(b|0))q=d;else{t=w;while(1){s=k[t+8>>2]|0;if((k[s+12>>2]|0)!=(k[s+20>>2]|0)){t=w;break}if((i[t+25>>0]|0)!=q<<24>>24){t=w;break}k[t>>2]=d;if(!(i[s+4>>0]|0))d=(k[s+28>>2]|0)+d|0;k[t+4>>2]=d;t=t+32|0;if((t|0)==(b|0)){t=w;break}}do{s=k[t+8>>2]|0;if((k[s+12>>2]|0)!=(k[s+20>>2]|0))break;if((i[t+25>>0]|0)!=q<<24>>24)break;if(!(i[s+4>>0]|0))d=d-(k[s+28>>2]|0)|0;t=t+32|0}while((t|0)!=(b|0));s=w;while(1){M=k[s+8>>2]|0;if((k[M+12>>2]|0)!=(k[M+20>>2]|0)){q=d;break i}if((i[s+25>>0]|0)!=q<<24>>24){q=d;break i}s=s+32|0;f=s;if((s|0)==(b|0)){q=d;break}}}while(0);if((f|0)==(b|0)){f=C;break}else{d=f;s=y}}do{if(!(k[f>>2]|0))d=0;else d=(k[f+4>>2]|0)!=0;i[(k[f+8>>2]|0)+5>>0]=d&1;f=f+32|0}while((f|0)!=(b|0));s=y}j:do if(B)do{M=k[a+8>>2]|0;if((k[M+12>>2]|0)==(k[M+20>>2]|0)?(i[a+26>>0]|0)==0:0)break j;a=a+32|0;o=a}while(a>>>0<b>>>0);while(0);C=o;if(C>>>0<b>>>0){a=C;do{p[a+16>>3]=+(k[(k[a+8>>2]|0)+24>>2]|0);i[a+25>>0]=0;i[a+26>>0]=1;a=a+32|0}while(a>>>0<b>>>0)}if((C|0)==(D|0)){o=D;break}else t=q}}k:do if((E|0)==(o|0)){b=E;U=151}else{b=E;do{if(i[b+26>>0]|0){U=151;break k}b=b+32|0}while((b|0)!=(o|0))}while(0);l:do if((U|0)==151){U=0;a=b;if((b|0)==(o|0)){o=a;break}else{d=a;b=a}while(1){do{a=b;f=a+32|0;b=f;if((f|0)==(o|0)){o=d;break l}}while((i[a+58>>0]|0)!=0);M=d;k[M>>2]=k[f>>2];k[M+4>>2]=k[f+4>>2];k[M+8>>2]=k[f+8>>2];k[M+12>>2]=k[f+12>>2];k[M+16>>2]=k[f+16>>2];k[M+20>>2]=k[f+20>>2];j[M+24>>1]=j[f+24>>1]|0;i[M+26>>0]=i[f+26>>0]|0;d=d+32|0}}while(0);b=o;do if((b|0)==(D|0))f=D;else{L=E+((o-G>>5)+(e-o>>5)<<5)|0;M=e-L|0;he(o|0,L|0,M|0)|0;o=b+(M>>5<<5)|0;if((D|0)==(o|0)){f=D;break}e=D+(~((D+-32-o|0)>>>5)<<5)|0;f=e}while(0);a=(E|0)==(f|0);if(a)o=2147483647;else{b=E;o=2147483647;do{M=k[(k[b+8>>2]|0)+20>>2]|0;o=(M|0)<(o|0)?M:o;b=b+32|0}while((b|0)!=(f|0))}if(F){M=k[H+12>>2]|0;o=(M|0)<(o|0)?M:o}d=(H|0)==(J|0);if(a&d){U=164;break}else{I=o;w=q;o=H;b=G}}if((U|0)==78)xa(1340,1363,303,1438);else if((U|0)==84){Y=ya(4)|0;k[Y>>2]=128;La(Y|0,8,1)}else if((U|0)==164){if(!G)break;$d(G);break}}while(0);o=k[T>>2]|0;f=k[S>>2]|0;rb(o,f);if((o|0)!=(f|0))do{P=k[o+28>>2]|0;b=o+12|0;e=k[b>>2]|0;a=o+20|0;c=k[a>>2]|0;if((((e|0)==(c|0)?0-P|0:P)|0)<0){N=o+16|0;O=k[N>>2]|0;k[b>>2]=c;P=o+24|0;k[N>>2]=k[P>>2];k[a>>2]=e;k[P>>2]=O}o=o+32|0}while((o|0)!=(f|0));k[R>>2]=0;K=R+4|0;k[K>>2]=0;k[R+8>>2]=0;o=_d(12)|0;m:do if(!o){while(1){o=k[35]|0;k[35]=o+0;if(!o)break;Xa[o&0]();o=_d(12)|0;if(o)break m}Y=ya(4)|0;k[Y>>2]=128;La(Y|0,8,1)}while(0);k[K>>2]=o;k[R>>2]=o;J=R+8|0;k[J>>2]=o+12;k[o>>2]=0;k[o+4>>2]=0;k[o+8>>2]=0;c=o+12|0;k[K>>2]=c;e=k[k[W>>2]>>2]|0;a=k[e>>2]|0;e=k[e+4>>2]|0;o=k[T>>2]|0;b=k[S>>2]|0;k[Q>>2]=a;I=Q+4|0;k[I>>2]=e;n:do if((o|0)!=(b|0)){f=o;H=o;s=c;t=0;o:while(1){o=f+4|0;if(!(i[o>>0]|0)){U=222;break n}G=H;p:do if((G|0)==(b|0))F=H;else{d=o+4|0;q=G;o=H;while(1){f=q+4|0;if(!(i[f>>0]|0)){F=o;b=q;break p}if((k[f+4>>2]|0)!=(k[d>>2]|0)){F=o;b=q;break p}q=q+32|0;o=q;if((q|0)==(b|0)){F=o;break}}}while(0);if((G|0)==(b|0)){U=218;break}else o=G;q:while(1){f=o+4|0;E=f+2|0;do if(!(i[E>>0]|0)){if((k[o+12>>2]|0)!=(a|0))break;if((k[o+16>>2]|0)==(e|0))break q}while(0);o=o+32|0;if((o|0)==(b|0)){U=218;break o}}D=f+1|0;if((l[D>>0]|0)==(t&1|0))q=t;else{c=s+-12|0;f=s+-8|0;d=k[f>>2]|0;do if((k[c>>2]|0)!=(d|0))if(d>>>0<(k[s+-4>>2]|0)>>>0){k[d>>2]=a;k[d+4>>2]=e;k[f>>2]=d+8;q=s;break}else{sb(c,Q);q=k[K>>2]|0;break}else q=s;while(0);c=k[J>>2]|0;do if(q>>>0<c>>>0){k[q>>2]=0;k[q+4>>2]=0;k[q+8>>2]=0;c=q+12|0;k[K>>2]=c}else{C=k[R>>2]|0;f=q;y=C;A=(f-y|0)/12|0;B=A+1|0;if(B>>>0>357913941){U=194;break o}c=(c-y|0)/12|0;if(c>>>0<178956970){c=c<<1;c=c>>>0<B>>>0?B:c;if(!c){c=0;s=0}else U=197}else{c=357913941;U=197}if((U|0)==197){U=0;s=c*12|0;s=(s|0)==0?1:s;d=_d(s)|0;if(!d)do{d=k[35]|0;k[35]=d+0;if(!d){U=200;break o}Xa[d&0]();d=_d(s)|0}while((d|0)==0);s=d}d=s+(A*12|0)|0;t=d;w=s+(c*12|0)|0;k[d>>2]=0;k[s+(A*12|0)+4>>2]=0;k[s+(A*12|0)+8>>2]=0;c=s+(B*12|0)|0;s=c;if((q|0)==(C|0))d=t;else{f=t;do{P=d+-12|0;O=q;q=q+-12|0;k[P>>2]=0;N=d+-8|0;k[N>>2]=0;k[d+-4>>2]=0;k[P>>2]=k[q>>2];P=O+-8|0;k[N>>2]=k[P>>2];O=O+-4|0;k[d+-4>>2]=k[O>>2];k[O>>2]=0;k[P>>2]=0;k[q>>2]=0;d=f+-12|0;f=d}while((q|0)!=(C|0));d=f;y=k[R>>2]|0;f=k[K>>2]|0}k[R>>2]=d;k[K>>2]=s;k[J>>2]=w;w=y;if((f|0)!=(w|0))do{d=f;f=f+-12|0;s=k[f>>2]|0;t=s;if(s){d=d+-8|0;q=k[d>>2]|0;if((q|0)!=(s|0))k[d>>2]=q+(~((q+-8-t|0)>>>3)<<3);$d(s)}}while((f|0)!=(w|0));if(!y)break;$d(y)}while(0);s=c;q=(i[D>>0]|0)!=0}f=s+-8|0;d=k[f>>2]|0;if(d>>>0<(k[s+-4>>2]|0)>>>0){k[d>>2]=a;k[d+4>>2]=e;k[f>>2]=d+8}else sb(s+-12|0,Q);a=k[o+20>>2]|0;k[Q>>2]=a;e=k[o+24>>2]|0;k[I>>2]=e;i[E>>0]=1;o=G;f=1;do{f=f&(i[o+4+2>>0]|0)!=0;o=o+32|0}while((o|0)!=(b|0));H=f?F:H;b=k[S>>2]|0;f=H;if((f|0)==(b|0)){U=222;break n}else t=q}if((U|0)==194)xa(1340,1363,303,1438);else if((U|0)==200){Y=ya(4)|0;k[Y>>2]=128;La(Y|0,8,1)}else if((U|0)==218){k[g>>2]=1;ib(h,m,n,W);break}}else U=222;while(0);if((U|0)==222){o=c+-8|0;b=k[o>>2]|0;if(b>>>0<(k[c+-4>>2]|0)>>>0){k[b>>2]=a;k[b+4>>2]=e;k[o>>2]=b+8}else sb(c+-12|0,Q);ib(h,m,n,R)}f=k[R>>2]|0;if(f){o=k[K>>2]|0;if((o|0)!=(f|0)){do{b=o;o=o+-12|0;a=k[o>>2]|0;c=a;if(a){b=b+-8|0;e=k[b>>2]|0;if((e|0)!=(a|0))k[b>>2]=e+(~((e+-8-c|0)>>>3)<<3);$d(a)}}while((o|0)!=(f|0));k[K>>2]=f}$d(f)}o=k[T>>2]|0;b=o;if(!o)o=V;else{e=k[S>>2]|0;if((e|0)!=(o|0))k[S>>2]=e+(~((e+-32-b|0)>>>5)<<5);$d(o);o=V}}else{o=V;U=3}if((U|0)==3)ib(h,m,n,W);d=k[o>>2]|0;if(d){f=V+4|0;o=k[f>>2]|0;if((o|0)!=(d|0)){do{b=o;o=o+-12|0;a=k[o>>2]|0;c=a;if(a){b=b+-8|0;e=k[b>>2]|0;if((e|0)!=(a|0))k[b>>2]=e+(~((e+-8-c|0)>>>3)<<3);$d(a)}}while((o|0)!=(d|0));k[f>>2]=d}$d(d)}f=k[W>>2]|0;if(!f){r=Y;return}o=k[X>>2]|0;if((o|0)!=(f|0)){do{b=o;o=o+-12|0;a=k[o>>2]|0;c=a;if(a){b=b+-8|0;e=k[b>>2]|0;if((e|0)!=(a|0))k[b>>2]=e+(~((e+-8-c|0)>>>3)<<3);$d(a)}}while((o|0)!=(f|0));k[X>>2]=f}$d(f);r=Y;return}function mb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;B=r;r=r+32|0;A=B;v=c-b>>3;if(!v){r=B;return}w=A+4|0;x=w+1|0;y=w+2|0;z=w+4|0;n=A+12|0;o=A+16|0;p=A+20|0;q=A+24|0;s=A+28|0;t=a+4|0;u=a+8|0;if(d){l=0;do{d=l;l=l+1|0;g=l>>>0<v>>>0?b+(l<<3)|0:b;f=k[b+(d<<3)>>2]|0;d=k[b+(d<<3)+4>>2]|0;c=k[g>>2]|0;g=k[g+4>>2]|0;do if((f|0)!=(c|0)|(d|0)!=(g|0)){k[A>>2]=0;i[w>>0]=0;i[x>>0]=0;i[y>>0]=0;k[z>>2]=0;k[n>>2]=f;k[o>>2]=d;k[p>>2]=c;k[q>>2]=g;k[s>>2]=1;if((f|0)<=(c|0))if((f|0)==(c|0))if((d|0)>(g|0))m=8;else{e=1;c=f;m=10}else{h=f;f=g;e=1;m=9}else m=8;if((m|0)==8){k[n>>2]=c;k[o>>2]=g;k[p>>2]=f;k[q>>2]=d;k[s>>2]=-1;h=c;c=f;f=d;d=g;e=-1;m=9}if((m|0)==9){m=0;if((h|0)==(c|0)){g=f;m=10}else j=d}if((m|0)==10){e=0-e|0;k[s>>2]=e;h=c;j=d;f=g}d=k[t>>2]|0;if(d>>>0<(k[u>>2]|0)>>>0){k[d>>2]=0;C=w;g=k[C+4>>2]|0;m=d+4|0;k[m>>2]=k[C>>2];k[m+4>>2]=g;k[d+12>>2]=h;k[d+16>>2]=j;k[d+20>>2]=c;k[d+24>>2]=f;k[d+28>>2]=e;k[t>>2]=(k[t>>2]|0)+32;break}else{kc(a,A);break}}while(0)}while((l|0)!=(v|0));r=B;return}if(v>>>0>1){j=1;c=0}else{r=B;return}while(1){h=k[b+(c<<3)>>2]|0;d=k[b+(c<<3)+4>>2]|0;g=k[b+(j<<3)>>2]|0;c=k[b+(j<<3)+4>>2]|0;do if((h|0)!=(g|0)|(d|0)!=(c|0)){k[A>>2]=0;i[w>>0]=0;i[x>>0]=0;i[y>>0]=0;k[z>>2]=0;k[n>>2]=h;k[o>>2]=d;k[p>>2]=g;k[q>>2]=c;k[s>>2]=1;if((h|0)<=(g|0))if((h|0)==(g|0))if((d|0)>(c|0))m=19;else{f=c;g=h;c=1;m=21}else{f=c;c=1;e=h;m=20}else m=19;if((m|0)==19){k[n>>2]=g;k[o>>2]=c;k[p>>2]=h;k[q>>2]=d;k[s>>2]=-1;f=d;d=c;c=-1;e=g;g=h;m=20}if((m|0)==20){m=0;if((e|0)==(g|0))m=21;else h=d}if((m|0)==21){c=0-c|0;k[s>>2]=c;e=g;h=d}d=k[t>>2]|0;if(d>>>0<(k[u>>2]|0)>>>0){k[d>>2]=0;l=w;m=k[l+4>>2]|0;C=d+4|0;k[C>>2]=k[l>>2];k[C+4>>2]=m;k[d+12>>2]=e;k[d+16>>2]=h;k[d+20>>2]=g;k[d+24>>2]=f;k[d+28>>2]=c;k[t>>2]=(k[t>>2]|0)+32;break}else{kc(a,A);break}}while(0);c=j+1|0;if(c>>>0<v>>>0){C=j;j=c;c=C}else break}r=B;return}function nb(a,b){a=a|0;b=b|0;return (k[a+12>>2]|0)<(k[b+12>>2]|0)|0}function ob(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;w=r;r=r+32|0;v=w;a:while(1){l=b;m=b+-32|0;n=b+-28|0;o=b+-20|0;p=b+-16|0;q=b+-12|0;s=b+-8|0;t=b+-4|0;b:while(1){j=a;f=l-j|0;d=f>>5;switch(d|0){case 2:{u=4;break a}case 3:{u=6;break a}case 4:{u=7;break a}case 5:{u=8;break a}case 1:case 0:{u=53;break a}default:{}}if((f|0)<224){u=10;break a}e=(d|0)/2|0;i=a+(e<<5)|0;if((f|0)>31968){d=(d|0)/4|0;d=Bb(a,a+(d<<5)|0,i,a+(d+e<<5)|0,m,c)|0}else d=zb(a,i,m,c)|0;do if(Za[k[c>>2]&7](a,i)|0)f=m;else{f=b;g=m;while(1){e=g+-32|0;if((a|0)==(e|0))break;if(Za[k[c>>2]&7](e,i)|0){u=36;break}else{f=g;g=e}}if((u|0)==36){u=0;H=k[a>>2]|0;C=a+4|0;F=C;G=k[F>>2]|0;F=k[F+4>>2]|0;A=a+12|0;D=k[A>>2]|0;y=a+16|0;B=k[y>>2]|0;g=a+20|0;z=k[g>>2]|0;J=a+24|0;x=k[J>>2]|0;I=a+28|0;h=k[I>>2]|0;k[a>>2]=k[e>>2];E=f+-60|0;L=E;K=k[L+4>>2]|0;k[C>>2]=k[L>>2];k[C+4>>2]=K;C=f+-52|0;k[A>>2]=k[C>>2];A=f+-48|0;k[y>>2]=k[A>>2];y=f+-44|0;k[g>>2]=k[y>>2];g=f+-40|0;k[J>>2]=k[g>>2];f=f+-36|0;k[I>>2]=k[f>>2];k[e>>2]=H;k[E>>2]=G;k[E+4>>2]=F;k[C>>2]=D;k[A>>2]=B;k[y>>2]=z;k[g>>2]=x;k[f>>2]=h;f=e;d=d+1|0;break}d=a+32|0;if(!(Za[k[c>>2]&7](a,m)|0)){if((d|0)==(m|0)){u=53;break a}else e=a;while(1){if(Za[k[c>>2]&7](a,d)|0)break;e=d+32|0;if((e|0)==(m|0)){u=53;break a}else{L=d;d=e;e=L}}E=k[d>>2]|0;j=e+36|0;G=j;F=k[G>>2]|0;G=k[G+4>>2]|0;z=e+44|0;H=k[z>>2]|0;A=e+48|0;I=k[A>>2]|0;B=e+52|0;J=k[B>>2]|0;C=e+56|0;K=k[C>>2]|0;D=e+60|0;L=k[D>>2]|0;k[d>>2]=k[m>>2];x=n;y=k[x+4>>2]|0;d=j;k[d>>2]=k[x>>2];k[d+4>>2]=y;k[z>>2]=k[o>>2];k[A>>2]=k[p>>2];k[B>>2]=k[q>>2];k[C>>2]=k[s>>2];k[D>>2]=k[t>>2];k[m>>2]=E;d=n;k[d>>2]=F;k[d+4>>2]=G;k[o>>2]=H;k[p>>2]=I;k[q>>2]=J;k[s>>2]=K;k[t>>2]=L;d=e+64|0}if((d|0)==(m|0)){u=53;break a}else e=m;while(1){g=d;while(1){d=g+32|0;if(Za[k[c>>2]&7](a,g)|0){f=e;break}else g=d}while(1){e=f+-32|0;if(Za[k[c>>2]&7](a,e)|0)f=e;else break}if(g>>>0>=e>>>0){a=g;continue b}y=k[g>>2]|0;D=g+4|0;A=D;z=k[A>>2]|0;A=k[A+4>>2]|0;F=g+12|0;C=k[F>>2]|0;H=g+16|0;E=k[H>>2]|0;J=g+20|0;G=k[J>>2]|0;L=g+24|0;I=k[L>>2]|0;x=g+28|0;K=k[x>>2]|0;k[g>>2]=k[e>>2];B=f+-28|0;i=B;j=k[i+4>>2]|0;k[D>>2]=k[i>>2];k[D+4>>2]=j;D=f+-20|0;k[F>>2]=k[D>>2];F=f+-16|0;k[H>>2]=k[F>>2];H=f+-12|0;k[J>>2]=k[H>>2];J=f+-8|0;k[L>>2]=k[J>>2];L=f+-4|0;k[x>>2]=k[L>>2];k[e>>2]=y;k[B>>2]=z;k[B+4>>2]=A;k[D>>2]=C;k[F>>2]=E;k[H>>2]=G;k[J>>2]=I;k[L>>2]=K}}while(0);e=a+32|0;c:do if(e>>>0<f>>>0)while(1){h=e;while(1){e=h+32|0;if(Za[k[c>>2]&7](h,i)|0)h=e;else break}while(1){g=f+-32|0;if(Za[k[c>>2]&7](g,i)|0)break;else f=g}if(h>>>0>g>>>0){e=i;break c}z=k[h>>2]|0;E=h+4|0;B=E;A=k[B>>2]|0;B=k[B+4>>2]|0;G=h+12|0;D=k[G>>2]|0;I=h+16|0;F=k[I>>2]|0;K=h+20|0;H=k[K>>2]|0;x=h+24|0;J=k[x>>2]|0;y=h+28|0;L=k[y>>2]|0;k[h>>2]=k[g>>2];C=f+-28|0;N=C;M=k[N+4>>2]|0;k[E>>2]=k[N>>2];k[E+4>>2]=M;E=f+-20|0;k[G>>2]=k[E>>2];G=f+-16|0;k[I>>2]=k[G>>2];I=f+-12|0;k[K>>2]=k[I>>2];K=f+-8|0;k[x>>2]=k[K>>2];f=f+-4|0;k[y>>2]=k[f>>2];k[g>>2]=z;k[C>>2]=A;k[C+4>>2]=B;k[E>>2]=D;k[G>>2]=F;k[I>>2]=H;k[K>>2]=J;k[f>>2]=L;f=g;i=(i|0)==(h|0)?g:i;d=d+1|0}else{h=e;e=i}while(0);if((h|0)!=(e|0)?Za[k[c>>2]&7](e,h)|0:0){A=k[h>>2]|0;F=h+4|0;C=F;B=k[C>>2]|0;C=k[C+4>>2]|0;H=h+12|0;E=k[H>>2]|0;J=h+16|0;G=k[J>>2]|0;L=h+20|0;I=k[L>>2]|0;N=h+24|0;K=k[N>>2]|0;z=h+28|0;M=k[z>>2]|0;k[h>>2]=k[e>>2];D=e+4|0;x=D;y=k[x+4>>2]|0;k[F>>2]=k[x>>2];k[F+4>>2]=y;F=e+12|0;k[H>>2]=k[F>>2];H=e+16|0;k[J>>2]=k[H>>2];J=e+20|0;k[L>>2]=k[J>>2];L=e+24|0;k[N>>2]=k[L>>2];N=e+28|0;k[z>>2]=k[N>>2];k[e>>2]=A;k[D>>2]=B;k[D+4>>2]=C;k[F>>2]=E;k[H>>2]=G;k[J>>2]=I;k[L>>2]=K;k[N>>2]=M;d=d+1|0}if(!d){d=Cb(a,h,c)|0;e=h+32|0;if(Cb(e,b,c)|0){u=48;break}if(d){a=e;continue}}N=h;if((N-j|0)>=(l-N|0)){u=52;break}ob(a,h,c);a=h+32|0}if((u|0)==48){u=0;if(d){u=53;break}else{b=h;continue}}else if((u|0)==52){u=0;ob(h+32|0,b,c);b=h;continue}}if((u|0)==4){if(!(Za[k[c>>2]&7](m,a)|0)){r=w;return}I=k[a>>2]|0;A=a+4|0;H=A;G=k[H>>2]|0;H=k[H+4>>2]|0;B=a+12|0;J=k[B>>2]|0;C=a+16|0;K=k[C>>2]|0;D=a+20|0;L=k[D>>2]|0;E=a+24|0;M=k[E>>2]|0;F=a+28|0;N=k[F>>2]|0;k[a>>2]=k[m>>2];y=n;z=k[y+4>>2]|0;k[A>>2]=k[y>>2];k[A+4>>2]=z;k[B>>2]=k[o>>2];k[C>>2]=k[p>>2];k[D>>2]=k[q>>2];k[E>>2]=k[s>>2];k[F>>2]=k[t>>2];k[m>>2]=I;I=n;k[I>>2]=G;k[I+4>>2]=H;k[o>>2]=J;k[p>>2]=K;k[q>>2]=L;k[s>>2]=M;k[t>>2]=N;r=w;return}else if((u|0)==6){zb(a,a+32|0,m,c)|0;r=w;return}else if((u|0)==7){Ab(a,a+32|0,a+64|0,m,c)|0;r=w;return}else if((u|0)==8){Bb(a,a+32|0,a+64|0,a+96|0,m,c)|0;r=w;return}else if((u|0)==10){e=a+64|0;zb(a,a+32|0,e,c)|0;d=a+96|0;if((d|0)!=(b|0)){n=v+4|0;o=v+12|0;p=v+16|0;q=v+20|0;s=v+24|0;t=v+28|0;m=d;while(1){if(Za[k[c>>2]&7](m,e)|0){k[v>>2]=k[m>>2];M=m+4|0;N=k[M+4>>2]|0;d=n;k[d>>2]=k[M>>2];k[d+4>>2]=N;k[o>>2]=k[m+12>>2];k[p>>2]=k[m+16>>2];k[q>>2]=k[m+20>>2];k[s>>2]=k[m+24>>2];k[t>>2]=k[m+28>>2];d=m;while(1){k[d>>2]=k[e>>2];l=e+4|0;h=l;g=k[h+4>>2]|0;f=d+4|0;k[f>>2]=k[h>>2];k[f+4>>2]=g;f=e+12|0;k[d+12>>2]=k[f>>2];g=e+16|0;k[d+16>>2]=k[g>>2];h=e+20|0;k[d+20>>2]=k[h>>2];i=e+24|0;k[d+24>>2]=k[i>>2];j=e+28|0;k[d+28>>2]=k[j>>2];if((e|0)==(a|0))break;d=e+-32|0;if(Za[k[c>>2]&7](v,d)|0){N=e;e=d;d=N}else break}k[e>>2]=k[v>>2];L=n;M=k[L+4>>2]|0;N=l;k[N>>2]=k[L>>2];k[N+4>>2]=M;k[f>>2]=k[o>>2];k[g>>2]=k[p>>2];k[h>>2]=k[q>>2];k[i>>2]=k[s>>2];k[j>>2]=k[t>>2]}d=m+32|0;if((d|0)==(b|0))break;else{e=m;m=d}}}r=w;return}else if((u|0)==53){r=w;return}}function pb(a,b){a=a|0;b=b|0;var c=0.0,d=0.0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;c=+p[a+16>>3];d=+p[b+16>>3];if(c<d){m=1;return m|0}if(d<c){m=0;return m|0}e=i[a+24>>0]|0;f=i[b+24>>0]|0;if((e&255)<(f&255)){m=1;return m|0}if((f&255)<(e&255)){m=0;return m|0}g=k[a+8>>2]|0;b=k[b+8>>2]|0;e=k[g+20>>2]|0;f=k[g+12>>2]|0;a=e-f|0;g=(k[g+24>>2]|0)-(k[g+16>>2]|0)|0;h=k[b+20>>2]|0;j=k[b+12>>2]|0;l=h-j|0;b=(k[b+24>>2]|0)-(k[b+16>>2]|0)|0;if((a|0)>=0){if((e|0)==(f|0)){m=0;return m|0}}else{a=0-a|0;g=0-g|0}if((l|0)>=0)if((h|0)==(j|0)){m=(a|0)!=0;return m|0}else e=l;else{e=0-l|0;b=0-b|0}j=(e|0)<0?0-e|0:e;h=(g|0)<0?0-g|0:g;h=ne(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;l=(a|0)<0?0-a|0:a;m=(b|0)<0?0-b|0:b;l=ne(m|0,((m|0)<0)<<31>>31|0,l|0,((l|0)<0)<<31>>31|0)|0;m=L;f=ha(e>>31|1,g>>31|1)|0;e=ha(b>>31|1,a>>31|1)|0;if((f|0)<(e|0)){m=1;return m|0}if((e|0)<(f|0)){m=0;return m|0}if((f|0)==-1){m=m>>>0<j>>>0|(m|0)==(j|0)&l>>>0<h>>>0;return m|0}else{m=j>>>0<m>>>0|(j|0)==(m|0)&h>>>0<l>>>0;return m|0}return 0}function qb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0;t=r;r=r+64|0;q=t+32|0;p=t;o=b;a:while(1){l=o;n=o+-32|0;s=a;b:while(1){h=s;a=l-h|0;b=a>>5;switch(b|0){case 2:{m=4;break a}case 3:{m=6;break a}case 4:{m=14;break a}case 5:{m=15;break a}case 1:case 0:{m=82;break a}default:{}}if((a|0)<992){m=21;break a}d=(b|0)/2|0;g=s+(d<<5)|0;do if((a|0)>31968){b=(b|0)/4|0;e=s+(b<<5)|0;b=s+(b+d<<5)|0;a=xb(s,e,g,b,c)|0;if(Za[k[c>>2]&7](n,b)|0){k[p>>2]=k[b>>2];k[p+4>>2]=k[b+4>>2];k[p+8>>2]=k[b+8>>2];k[p+12>>2]=k[b+12>>2];k[p+16>>2]=k[b+16>>2];k[p+20>>2]=k[b+20>>2];k[p+24>>2]=k[b+24>>2];k[p+28>>2]=k[b+28>>2];k[b>>2]=k[n>>2];k[b+4>>2]=k[n+4>>2];k[b+8>>2]=k[n+8>>2];k[b+12>>2]=k[n+12>>2];k[b+16>>2]=k[n+16>>2];k[b+20>>2]=k[n+20>>2];j[b+24>>1]=j[n+24>>1]|0;i[b+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;d=a+1|0;if(Za[k[c>>2]&7](b,g)|0){k[p>>2]=k[g>>2];k[p+4>>2]=k[g+4>>2];k[p+8>>2]=k[g+8>>2];k[p+12>>2]=k[g+12>>2];k[p+16>>2]=k[g+16>>2];k[p+20>>2]=k[g+20>>2];k[p+24>>2]=k[g+24>>2];k[p+28>>2]=k[g+28>>2];k[g>>2]=k[b>>2];k[g+4>>2]=k[b+4>>2];k[g+8>>2]=k[b+8>>2];k[g+12>>2]=k[b+12>>2];k[g+16>>2]=k[b+16>>2];k[g+20>>2]=k[b+20>>2];j[g+24>>1]=j[b+24>>1]|0;i[g+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;b=a+2|0;if(Za[k[c>>2]&7](g,e)|0){k[p>>2]=k[e>>2];k[p+4>>2]=k[e+4>>2];k[p+8>>2]=k[e+8>>2];k[p+12>>2]=k[e+12>>2];k[p+16>>2]=k[e+16>>2];k[p+20>>2]=k[e+20>>2];k[p+24>>2]=k[e+24>>2];k[p+28>>2]=k[e+28>>2];k[e>>2]=k[g>>2];k[e+4>>2]=k[g+4>>2];k[e+8>>2]=k[g+8>>2];k[e+12>>2]=k[g+12>>2];k[e+16>>2]=k[g+16>>2];k[e+20>>2]=k[g+20>>2];j[e+24>>1]=j[g+24>>1]|0;i[e+26>>0]=i[g+26>>0]|0;k[g>>2]=k[p>>2];k[g+4>>2]=k[p+4>>2];k[g+8>>2]=k[p+8>>2];k[g+12>>2]=k[p+12>>2];k[g+16>>2]=k[p+16>>2];k[g+20>>2]=k[p+20>>2];j[g+24>>1]=j[p+24>>1]|0;i[g+26>>0]=i[p+26>>0]|0;if(Za[k[c>>2]&7](e,s)|0){k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[e>>2];k[s+4>>2]=k[e+4>>2];k[s+8>>2]=k[e+8>>2];k[s+12>>2]=k[e+12>>2];k[s+16>>2]=k[e+16>>2];k[s+20>>2]=k[e+20>>2];j[s+24>>1]=j[e+24>>1]|0;i[s+26>>0]=i[e+26>>0]|0;k[e>>2]=k[p>>2];k[e+4>>2]=k[p+4>>2];k[e+8>>2]=k[p+8>>2];k[e+12>>2]=k[p+12>>2];k[e+16>>2]=k[p+16>>2];k[e+20>>2]=k[p+20>>2];j[e+24>>1]=j[p+24>>1]|0;i[e+26>>0]=i[p+26>>0]|0;a=a+4|0}else a=a+3|0}else a=b}else a=d}}else{f=Za[k[c>>2]&7](g,s)|0;a=Za[k[c>>2]&7](n,g)|0;if(!f){if(!a){a=0;break};k[p>>2]=k[g>>2];k[p+4>>2]=k[g+4>>2];k[p+8>>2]=k[g+8>>2];k[p+12>>2]=k[g+12>>2];k[p+16>>2]=k[g+16>>2];k[p+20>>2]=k[g+20>>2];k[p+24>>2]=k[g+24>>2];k[p+28>>2]=k[g+28>>2];k[g>>2]=k[n>>2];k[g+4>>2]=k[n+4>>2];k[g+8>>2]=k[n+8>>2];k[g+12>>2]=k[n+12>>2];k[g+16>>2]=k[n+16>>2];k[g+20>>2]=k[n+20>>2];j[g+24>>1]=j[n+24>>1]|0;i[g+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](g,s)|0)){a=1;break};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[g>>2];k[s+4>>2]=k[g+4>>2];k[s+8>>2]=k[g+8>>2];k[s+12>>2]=k[g+12>>2];k[s+16>>2]=k[g+16>>2];k[s+20>>2]=k[g+20>>2];j[s+24>>1]=j[g+24>>1]|0;i[s+26>>0]=i[g+26>>0]|0;k[g>>2]=k[p>>2];k[g+4>>2]=k[p+4>>2];k[g+8>>2]=k[p+8>>2];k[g+12>>2]=k[p+12>>2];k[g+16>>2]=k[p+16>>2];k[g+20>>2]=k[p+20>>2];j[g+24>>1]=j[p+24>>1]|0;i[g+26>>0]=i[p+26>>0]|0;a=2;break};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];if(a){k[s>>2]=k[n>>2];k[s+4>>2]=k[n+4>>2];k[s+8>>2]=k[n+8>>2];k[s+12>>2]=k[n+12>>2];k[s+16>>2]=k[n+16>>2];k[s+20>>2]=k[n+20>>2];j[s+24>>1]=j[n+24>>1]|0;i[s+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;a=1;break};k[s>>2]=k[g>>2];k[s+4>>2]=k[g+4>>2];k[s+8>>2]=k[g+8>>2];k[s+12>>2]=k[g+12>>2];k[s+16>>2]=k[g+16>>2];k[s+20>>2]=k[g+20>>2];j[s+24>>1]=j[g+24>>1]|0;i[s+26>>0]=i[g+26>>0]|0;k[g>>2]=k[p>>2];k[g+4>>2]=k[p+4>>2];k[g+8>>2]=k[p+8>>2];k[g+12>>2]=k[p+12>>2];k[g+16>>2]=k[p+16>>2];k[g+20>>2]=k[p+20>>2];j[g+24>>1]=j[p+24>>1]|0;i[g+26>>0]=i[p+26>>0]|0;if(Za[k[c>>2]&7](n,g)|0){k[p>>2]=k[g>>2];k[p+4>>2]=k[g+4>>2];k[p+8>>2]=k[g+8>>2];k[p+12>>2]=k[g+12>>2];k[p+16>>2]=k[g+16>>2];k[p+20>>2]=k[g+20>>2];k[p+24>>2]=k[g+24>>2];k[p+28>>2]=k[g+28>>2];k[g>>2]=k[n>>2];k[g+4>>2]=k[n+4>>2];k[g+8>>2]=k[n+8>>2];k[g+12>>2]=k[n+12>>2];k[g+16>>2]=k[n+16>>2];k[g+20>>2]=k[n+20>>2];j[g+24>>1]=j[n+24>>1]|0;i[g+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;a=2}else a=1}while(0);do if(Za[k[c>>2]&7](s,g)|0)b=n;else{b=n;while(1){b=b+-32|0;if((s|0)==(b|0))break;if(Za[k[c>>2]&7](b,g)|0){m=65;break}}if((m|0)==65){m=0;k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[b>>2];k[s+4>>2]=k[b+4>>2];k[s+8>>2]=k[b+8>>2];k[s+12>>2]=k[b+12>>2];k[s+16>>2]=k[b+16>>2];k[s+20>>2]=k[b+20>>2];j[s+24>>1]=j[b+24>>1]|0;i[s+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;a=a+1|0;break}a=s+32|0;if(!(Za[k[c>>2]&7](s,n)|0)){if((a|0)==(n|0)){m=82;break a}else b=s;while(1){if(Za[k[c>>2]&7](s,a)|0)break;b=a+32|0;if((b|0)==(n|0)){m=82;break a}else{h=a;a=b;b=h}}k[p>>2]=k[a>>2];k[p+4>>2]=k[a+4>>2];k[p+8>>2]=k[a+8>>2];k[p+12>>2]=k[a+12>>2];k[p+16>>2]=k[a+16>>2];k[p+20>>2]=k[a+20>>2];k[p+24>>2]=k[a+24>>2];k[p+28>>2]=k[a+28>>2];k[a>>2]=k[n>>2];k[a+4>>2]=k[n+4>>2];k[a+8>>2]=k[n+8>>2];k[a+12>>2]=k[n+12>>2];k[a+16>>2]=k[n+16>>2];k[a+20>>2]=k[n+20>>2];j[a+24>>1]=j[n+24>>1]|0;i[a+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;a=b+64|0}if((a|0)==(n|0)){m=82;break a}else d=n;while(1){b=a;while(1){a=b+32|0;if(Za[k[c>>2]&7](s,b)|0)break;else b=a}do d=d+-32|0;while(Za[k[c>>2]&7](s,d)|0);if(b>>>0>=d>>>0){s=b;continue b};k[p>>2]=k[b>>2];k[p+4>>2]=k[b+4>>2];k[p+8>>2]=k[b+8>>2];k[p+12>>2]=k[b+12>>2];k[p+16>>2]=k[b+16>>2];k[p+20>>2]=k[b+20>>2];k[p+24>>2]=k[b+24>>2];k[p+28>>2]=k[b+28>>2];k[b>>2]=k[d>>2];k[b+4>>2]=k[d+4>>2];k[b+8>>2]=k[d+8>>2];k[b+12>>2]=k[d+12>>2];k[b+16>>2]=k[d+16>>2];k[b+20>>2]=k[d+20>>2];j[b+24>>1]=j[d+24>>1]|0;i[b+26>>0]=i[d+26>>0]|0;k[d>>2]=k[p>>2];k[d+4>>2]=k[p+4>>2];k[d+8>>2]=k[p+8>>2];k[d+12>>2]=k[p+12>>2];k[d+16>>2]=k[p+16>>2];k[d+20>>2]=k[p+20>>2];j[d+24>>1]=j[p+24>>1]|0;i[d+26>>0]=i[p+26>>0]|0}}while(0);d=s+32|0;c:do if(d>>>0<b>>>0)while(1){e=d;while(1){d=e+32|0;if(Za[k[c>>2]&7](e,g)|0)e=d;else{f=b;break}}do f=f+-32|0;while(!(Za[k[c>>2]&7](f,g)|0));if(e>>>0>f>>>0){d=e;b=g;break c};k[p>>2]=k[e>>2];k[p+4>>2]=k[e+4>>2];k[p+8>>2]=k[e+8>>2];k[p+12>>2]=k[e+12>>2];k[p+16>>2]=k[e+16>>2];k[p+20>>2]=k[e+20>>2];k[p+24>>2]=k[e+24>>2];k[p+28>>2]=k[e+28>>2];k[e>>2]=k[f>>2];k[e+4>>2]=k[f+4>>2];k[e+8>>2]=k[f+8>>2];k[e+12>>2]=k[f+12>>2];k[e+16>>2]=k[f+16>>2];k[e+20>>2]=k[f+20>>2];j[e+24>>1]=j[f+24>>1]|0;i[e+26>>0]=i[f+26>>0]|0;k[f>>2]=k[p>>2];k[f+4>>2]=k[p+4>>2];k[f+8>>2]=k[p+8>>2];k[f+12>>2]=k[p+12>>2];k[f+16>>2]=k[p+16>>2];k[f+20>>2]=k[p+20>>2];j[f+24>>1]=j[p+24>>1]|0;i[f+26>>0]=i[p+26>>0]|0;b=f;g=(g|0)==(e|0)?f:g;a=a+1|0}else b=g;while(0);if((d|0)!=(b|0)?Za[k[c>>2]&7](b,d)|0:0){k[p>>2]=k[d>>2];k[p+4>>2]=k[d+4>>2];k[p+8>>2]=k[d+8>>2];k[p+12>>2]=k[d+12>>2];k[p+16>>2]=k[d+16>>2];k[p+20>>2]=k[d+20>>2];k[p+24>>2]=k[d+24>>2];k[p+28>>2]=k[d+28>>2];k[d>>2]=k[b>>2];k[d+4>>2]=k[b+4>>2];k[d+8>>2]=k[b+8>>2];k[d+12>>2]=k[b+12>>2];k[d+16>>2]=k[b+16>>2];k[d+20>>2]=k[b+20>>2];j[d+24>>1]=j[b+24>>1]|0;i[d+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;a=a+1|0}if(!a){a=yb(s,d,c)|0;b=d+32|0;if(yb(b,o,c)|0){m=77;break}if(a){s=b;continue}}g=d;if((g-h|0)>=(l-g|0)){m=81;break}qb(s,d,c);s=d+32|0}if((m|0)==77){m=0;if(a){m=82;break}else{a=s;o=d;continue}}else if((m|0)==81){m=0;qb(d+32|0,o,c);a=s;o=d;continue}}if((m|0)==4){if(!(Za[k[c>>2]&7](n,s)|0)){r=t;return};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[n>>2];k[s+4>>2]=k[n+4>>2];k[s+8>>2]=k[n+8>>2];k[s+12>>2]=k[n+12>>2];k[s+16>>2]=k[n+16>>2];k[s+20>>2]=k[n+20>>2];j[s+24>>1]=j[n+24>>1]|0;i[s+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;r=t;return}else if((m|0)==6){b=s+32|0;q=Za[k[c>>2]&7](b,s)|0;a=Za[k[c>>2]&7](n,b)|0;if(!q){if(!a){r=t;return};k[p>>2]=k[b>>2];k[p+4>>2]=k[b+4>>2];k[p+8>>2]=k[b+8>>2];k[p+12>>2]=k[b+12>>2];k[p+16>>2]=k[b+16>>2];k[p+20>>2]=k[b+20>>2];k[p+24>>2]=k[b+24>>2];k[p+28>>2]=k[b+28>>2];k[b>>2]=k[n>>2];k[b+4>>2]=k[n+4>>2];k[b+8>>2]=k[n+8>>2];k[b+12>>2]=k[n+12>>2];k[b+16>>2]=k[n+16>>2];k[b+20>>2]=k[n+20>>2];j[b+24>>1]=j[n+24>>1]|0;i[b+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](b,s)|0)){r=t;return};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[b>>2];k[s+4>>2]=k[b+4>>2];k[s+8>>2]=k[b+8>>2];k[s+12>>2]=k[b+12>>2];k[s+16>>2]=k[b+16>>2];k[s+20>>2]=k[b+20>>2];j[s+24>>1]=j[b+24>>1]|0;i[s+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;r=t;return};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];if(a){k[s>>2]=k[n>>2];k[s+4>>2]=k[n+4>>2];k[s+8>>2]=k[n+8>>2];k[s+12>>2]=k[n+12>>2];k[s+16>>2]=k[n+16>>2];k[s+20>>2]=k[n+20>>2];j[s+24>>1]=j[n+24>>1]|0;i[s+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;r=t;return};k[s>>2]=k[b>>2];k[s+4>>2]=k[b+4>>2];k[s+8>>2]=k[b+8>>2];k[s+12>>2]=k[b+12>>2];k[s+16>>2]=k[b+16>>2];k[s+20>>2]=k[b+20>>2];j[s+24>>1]=j[b+24>>1]|0;i[s+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](n,b)|0)){r=t;return};k[p>>2]=k[b>>2];k[p+4>>2]=k[b+4>>2];k[p+8>>2]=k[b+8>>2];k[p+12>>2]=k[b+12>>2];k[p+16>>2]=k[b+16>>2];k[p+20>>2]=k[b+20>>2];k[p+24>>2]=k[b+24>>2];k[p+28>>2]=k[b+28>>2];k[b>>2]=k[n>>2];k[b+4>>2]=k[n+4>>2];k[b+8>>2]=k[n+8>>2];k[b+12>>2]=k[n+12>>2];k[b+16>>2]=k[n+16>>2];k[b+20>>2]=k[n+20>>2];j[b+24>>1]=j[n+24>>1]|0;i[b+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;r=t;return}else if((m|0)==14){xb(s,s+32|0,s+64|0,n,c)|0;r=t;return}else if((m|0)==15){a=s+32|0;b=s+64|0;d=s+96|0;xb(s,a,b,d,c)|0;if(!(Za[k[c>>2]&7](n,d)|0)){r=t;return};k[p>>2]=k[d>>2];k[p+4>>2]=k[d+4>>2];k[p+8>>2]=k[d+8>>2];k[p+12>>2]=k[d+12>>2];k[p+16>>2]=k[d+16>>2];k[p+20>>2]=k[d+20>>2];k[p+24>>2]=k[d+24>>2];k[p+28>>2]=k[d+28>>2];k[d>>2]=k[n>>2];k[d+4>>2]=k[n+4>>2];k[d+8>>2]=k[n+8>>2];k[d+12>>2]=k[n+12>>2];k[d+16>>2]=k[n+16>>2];k[d+20>>2]=k[n+20>>2];j[d+24>>1]=j[n+24>>1]|0;i[d+26>>0]=i[n+26>>0]|0;k[n>>2]=k[p>>2];k[n+4>>2]=k[p+4>>2];k[n+8>>2]=k[p+8>>2];k[n+12>>2]=k[p+12>>2];k[n+16>>2]=k[p+16>>2];k[n+20>>2]=k[p+20>>2];j[n+24>>1]=j[p+24>>1]|0;i[n+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](d,b)|0)){r=t;return};k[p>>2]=k[b>>2];k[p+4>>2]=k[b+4>>2];k[p+8>>2]=k[b+8>>2];k[p+12>>2]=k[b+12>>2];k[p+16>>2]=k[b+16>>2];k[p+20>>2]=k[b+20>>2];k[p+24>>2]=k[b+24>>2];k[p+28>>2]=k[b+28>>2];k[b>>2]=k[d>>2];k[b+4>>2]=k[d+4>>2];k[b+8>>2]=k[d+8>>2];k[b+12>>2]=k[d+12>>2];k[b+16>>2]=k[d+16>>2];k[b+20>>2]=k[d+20>>2];j[b+24>>1]=j[d+24>>1]|0;i[b+26>>0]=i[d+26>>0]|0;k[d>>2]=k[p>>2];k[d+4>>2]=k[p+4>>2];k[d+8>>2]=k[p+8>>2];k[d+12>>2]=k[p+12>>2];k[d+16>>2]=k[p+16>>2];k[d+20>>2]=k[p+20>>2];j[d+24>>1]=j[p+24>>1]|0;i[d+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](b,a)|0)){r=t;return};k[p>>2]=k[a>>2];k[p+4>>2]=k[a+4>>2];k[p+8>>2]=k[a+8>>2];k[p+12>>2]=k[a+12>>2];k[p+16>>2]=k[a+16>>2];k[p+20>>2]=k[a+20>>2];k[p+24>>2]=k[a+24>>2];k[p+28>>2]=k[a+28>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];j[a+24>>1]=j[b+24>>1]|0;i[a+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;if(!(Za[k[c>>2]&7](a,s)|0)){r=t;return};k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[a>>2];k[s+4>>2]=k[a+4>>2];k[s+8>>2]=k[a+8>>2];k[s+12>>2]=k[a+12>>2];k[s+16>>2]=k[a+16>>2];k[s+20>>2]=k[a+20>>2];j[s+24>>1]=j[a+24>>1]|0;i[s+26>>0]=i[a+26>>0]|0;k[a>>2]=k[p>>2];k[a+4>>2]=k[p+4>>2];k[a+8>>2]=k[p+8>>2];k[a+12>>2]=k[p+12>>2];k[a+16>>2]=k[p+16>>2];k[a+20>>2]=k[p+20>>2];j[a+24>>1]=j[p+24>>1]|0;i[a+26>>0]=i[p+26>>0]|0;r=t;return}else if((m|0)==21){b=s+64|0;a=s+32|0;n=Za[k[c>>2]&7](a,s)|0;d=Za[k[c>>2]&7](b,a)|0;do if(n){k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];if(d){k[s>>2]=k[b>>2];k[s+4>>2]=k[b+4>>2];k[s+8>>2]=k[b+8>>2];k[s+12>>2]=k[b+12>>2];k[s+16>>2]=k[b+16>>2];k[s+20>>2]=k[b+20>>2];j[s+24>>1]=j[b+24>>1]|0;i[s+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0;break};k[s>>2]=k[a>>2];k[s+4>>2]=k[a+4>>2];k[s+8>>2]=k[a+8>>2];k[s+12>>2]=k[a+12>>2];k[s+16>>2]=k[a+16>>2];k[s+20>>2]=k[a+20>>2];j[s+24>>1]=j[a+24>>1]|0;i[s+26>>0]=i[a+26>>0]|0;k[a>>2]=k[p>>2];k[a+4>>2]=k[p+4>>2];k[a+8>>2]=k[p+8>>2];k[a+12>>2]=k[p+12>>2];k[a+16>>2]=k[p+16>>2];k[a+20>>2]=k[p+20>>2];j[a+24>>1]=j[p+24>>1]|0;i[a+26>>0]=i[p+26>>0]|0;if(Za[k[c>>2]&7](b,a)|0){k[p>>2]=k[a>>2];k[p+4>>2]=k[a+4>>2];k[p+8>>2]=k[a+8>>2];k[p+12>>2]=k[a+12>>2];k[p+16>>2]=k[a+16>>2];k[p+20>>2]=k[a+20>>2];k[p+24>>2]=k[a+24>>2];k[p+28>>2]=k[a+28>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];j[a+24>>1]=j[b+24>>1]|0;i[a+26>>0]=i[b+26>>0]|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];j[b+24>>1]=j[p+24>>1]|0;i[b+26>>0]=i[p+26>>0]|0}}else if(d?(k[p>>2]=k[a>>2],k[p+4>>2]=k[a+4>>2],k[p+8>>2]=k[a+8>>2],k[p+12>>2]=k[a+12>>2],k[p+16>>2]=k[a+16>>2],k[p+20>>2]=k[a+20>>2],k[p+24>>2]=k[a+24>>2],k[p+28>>2]=k[a+28>>2],k[a>>2]=k[b>>2],k[a+4>>2]=k[b+4>>2],k[a+8>>2]=k[b+8>>2],k[a+12>>2]=k[b+12>>2],k[a+16>>2]=k[b+16>>2],k[a+20>>2]=k[b+20>>2],j[a+24>>1]=j[b+24>>1]|0,i[a+26>>0]=i[b+26>>0]|0,k[b>>2]=k[p>>2],k[b+4>>2]=k[p+4>>2],k[b+8>>2]=k[p+8>>2],k[b+12>>2]=k[p+12>>2],k[b+16>>2]=k[p+16>>2],k[b+20>>2]=k[p+20>>2],j[b+24>>1]=j[p+24>>1]|0,i[b+26>>0]=i[p+26>>0]|0,Za[k[c>>2]&7](a,s)|0):0){k[p>>2]=k[s>>2];k[p+4>>2]=k[s+4>>2];k[p+8>>2]=k[s+8>>2];k[p+12>>2]=k[s+12>>2];k[p+16>>2]=k[s+16>>2];k[p+20>>2]=k[s+20>>2];k[p+24>>2]=k[s+24>>2];k[p+28>>2]=k[s+28>>2];k[s>>2]=k[a>>2];k[s+4>>2]=k[a+4>>2];k[s+8>>2]=k[a+8>>2];k[s+12>>2]=k[a+12>>2];k[s+16>>2]=k[a+16>>2];k[s+20>>2]=k[a+20>>2];j[s+24>>1]=j[a+24>>1]|0;i[s+26>>0]=i[a+26>>0]|0;k[a>>2]=k[p>>2];k[a+4>>2]=k[p+4>>2];k[a+8>>2]=k[p+8>>2];k[a+12>>2]=k[p+12>>2];k[a+16>>2]=k[p+16>>2];k[a+20>>2]=k[p+20>>2];j[a+24>>1]=j[p+24>>1]|0;i[a+26>>0]=i[p+26>>0]|0}while(0);a=s+96|0;if((a|0)!=(o|0))while(1){if(Za[k[c>>2]&7](a,b)|0){k[q>>2]=k[a>>2];k[q+4>>2]=k[a+4>>2];k[q+8>>2]=k[a+8>>2];k[q+12>>2]=k[a+12>>2];k[q+16>>2]=k[a+16>>2];k[q+20>>2]=k[a+20>>2];k[q+24>>2]=k[a+24>>2];k[q+28>>2]=k[a+28>>2];d=a;e=b;while(1){k[d>>2]=k[e>>2];k[d+4>>2]=k[e+4>>2];k[d+8>>2]=k[e+8>>2];k[d+12>>2]=k[e+12>>2];k[d+16>>2]=k[e+16>>2];k[d+20>>2]=k[e+20>>2];j[d+24>>1]=j[e+24>>1]|0;i[d+26>>0]=i[e+26>>0]|0;if((e|0)==(s|0))break;b=e+-32|0;if(Za[k[c>>2]&7](q,b)|0){d=e;e=b}else break}k[e>>2]=k[q>>2];k[e+4>>2]=k[q+4>>2];k[e+8>>2]=k[q+8>>2];k[e+12>>2]=k[q+12>>2];k[e+16>>2]=k[q+16>>2];k[e+20>>2]=k[q+20>>2];j[e+24>>1]=j[q+24>>1]|0;i[e+26>>0]=i[q+26>>0]|0}b=a+32|0;if((b|0)==(o|0))break;else{p=a;a=b;b=p}}r=t;return}else if((m|0)==82){r=t;return}}function rb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;a:while(1){p=b;r=b+-32|0;q=b+-64|0;z=b+-28|0;s=z+4|0;t=b+-20|0;u=b+-16|0;v=b+-12|0;w=b+-8|0;x=b+-4|0;b:while(1){o=a;c=p-o|0;d=c>>5;switch(d|0){case 2:{y=4;break a}case 3:{y=8;break a}case 4:{y=9;break a}case 5:{y=10;break a}case 1:case 0:{y=83;break a}default:{}}if((c|0)<224){y=12;break a}e=(d|0)/2|0;j=a+(e<<5)|0;if((c|0)>31968){c=(d|0)/4|0;c=vb(a,a+(c<<5)|0,j,a+(c+e<<5)|0,r)|0}else c=tb(a,j,r)|0;n=a+4|0;d=a+(e<<5)+4|0;m=i[n>>0]^1;l=i[d>>0]^1;c:do if((m&255)<(l&255))e=r;else{if((l&255)>=(m&255)?(k[n+4>>2]|0)>>>0<(k[d+4>>2]|0)>>>0:0){e=r;break}d:do if((a|0)!=(q|0)){h=d+4|0;e=q;f=r;while(1){g=f+-28|0;d=i[g>>0]^1;if((d&255)<(l&255))break;if((l&255)>=(d&255)?(k[g+4>>2]|0)>>>0<(k[h>>2]|0)>>>0:0)break;d=e+-32|0;if((a|0)==(d|0))break d;else{f=e;e=d}}G=k[a>>2]|0;E=n;F=k[E>>2]|0;E=k[E+4>>2]|0;A=a+12|0;D=k[A>>2]|0;h=a+16|0;B=k[h>>2]|0;I=a+20|0;d=k[I>>2]|0;y=a+24|0;l=k[y>>2]|0;H=a+28|0;m=k[H>>2]|0;k[a>>2]=k[e>>2];K=g;J=k[K+4>>2]|0;C=n;k[C>>2]=k[K>>2];k[C+4>>2]=J;C=f+-20|0;k[A>>2]=k[C>>2];A=f+-16|0;k[h>>2]=k[A>>2];h=f+-12|0;k[I>>2]=k[h>>2];n=f+-8|0;k[y>>2]=k[n>>2];y=f+-4|0;k[H>>2]=k[y>>2];k[e>>2]=G;k[g>>2]=F;k[g+4>>2]=E;k[C>>2]=D;k[A>>2]=B;k[h>>2]=d;k[n>>2]=l;k[y>>2]=m;c=c+1|0;break c}while(0);d=a+32|0;c=i[z>>0]^1;do if((m&255)<(c&255))a=d;else{if((c&255)>=(m&255)?(k[n+4>>2]|0)>>>0<(k[s>>2]|0)>>>0:0){a=d;break}if((d|0)==(r|0)){y=83;break a}f=n+4|0;while(1){e=a+36|0;c=i[e>>0]^1;if((m&255)<(c&255))break;if((c&255)>=(m&255)?(k[f>>2]|0)>>>0<(k[e+4>>2]|0)>>>0:0)break;a=d+32|0;if((a|0)==(r|0)){y=83;break a}else{K=d;d=a;a=K}}F=k[d>>2]|0;E=e;D=k[E>>2]|0;E=k[E+4>>2]|0;o=a+44|0;G=k[o>>2]|0;y=a+48|0;H=k[y>>2]|0;A=a+52|0;I=k[A>>2]|0;B=a+56|0;J=k[B>>2]|0;C=a+60|0;K=k[C>>2]|0;k[d>>2]=k[r>>2];j=z;l=k[j+4>>2]|0;m=e;k[m>>2]=k[j>>2];k[m+4>>2]=l;k[o>>2]=k[t>>2];k[y>>2]=k[u>>2];k[A>>2]=k[v>>2];k[B>>2]=k[w>>2];k[C>>2]=k[x>>2];k[r>>2]=F;F=z;k[F>>2]=D;k[F+4>>2]=E;k[t>>2]=G;k[u>>2]=H;k[v>>2]=I;k[w>>2]=J;k[x>>2]=K;a=a+64|0}while(0);if((a|0)==(r|0)){y=83;break a}h=n+4|0;f=r;while(1){g=i[n>>0]^1;c=i[a+4>>0]^1;e:do if((g&255)>=(c&255)){d=a;while(1){if((c&255)>=(g&255)?(k[h>>2]|0)>>>0<(k[d+4+4>>2]|0)>>>0:0){a=d;break e}a=d+32|0;c=i[d+36>>0]^1;if((g&255)<(c&255))break;else d=a}}while(0);d=f;while(1){f=d+-32|0;e=d+-28|0;c=i[e>>0]^1;if((g&255)<(c&255)){d=f;continue}if((c&255)<(g&255))break;if((k[h>>2]|0)>>>0<(k[e+4>>2]|0)>>>0)d=f;else break}if(a>>>0>=f>>>0)continue b;A=k[a>>2]|0;C=a+4|0;y=C;o=k[y>>2]|0;y=k[y+4>>2]|0;E=a+12|0;B=k[E>>2]|0;G=a+16|0;D=k[G>>2]|0;I=a+20|0;F=k[I>>2]|0;K=a+24|0;H=k[K>>2]|0;m=a+28|0;J=k[m>>2]|0;k[a>>2]=k[f>>2];j=e;l=k[j+4>>2]|0;k[C>>2]=k[j>>2];k[C+4>>2]=l;C=d+-20|0;k[E>>2]=k[C>>2];E=d+-16|0;k[G>>2]=k[E>>2];G=d+-12|0;k[I>>2]=k[G>>2];I=d+-8|0;k[K>>2]=k[I>>2];K=d+-4|0;k[m>>2]=k[K>>2];k[f>>2]=A;A=e;k[A>>2]=o;k[A+4>>2]=y;k[C>>2]=B;k[E>>2]=D;k[G>>2]=F;k[I>>2]=H;k[K>>2]=J;a=a+32|0}}while(0);d=a+32|0;f:do if(d>>>0<e>>>0)while(1){l=j+4|0;h=i[l>>0]^1;l=l+4|0;n=d;while(1){m=n+4|0;d=i[m>>0]^1;if((d&255)>=(h&255)){if((h&255)<(d&255))break;if((k[m+4>>2]|0)>>>0>=(k[l>>2]|0)>>>0)break}n=n+32|0}f=e+-32|0;d=i[e+-28>>0]^1;g:do if((d&255)>=(h&255)){g=f;while(1){if((h&255)>=(d&255)?(k[e+-28+4>>2]|0)>>>0<(k[l>>2]|0)>>>0:0){f=g;break g}f=g+-32|0;d=i[e+-60>>0]^1;if((d&255)<(h&255)){e=g;break}else{e=g;g=f}}}while(0);if(n>>>0>f>>>0){d=n;break f}l=k[n>>2]|0;B=m;A=k[B>>2]|0;B=k[B+4>>2]|0;F=n+12|0;C=k[F>>2]|0;H=n+16|0;E=k[H>>2]|0;J=n+20|0;G=k[J>>2]|0;d=n+24|0;I=k[d>>2]|0;h=n+28|0;K=k[h>>2]|0;k[n>>2]=k[f>>2];y=e+-28|0;L=y;g=k[L+4>>2]|0;D=m;k[D>>2]=k[L>>2];k[D+4>>2]=g;D=e+-20|0;k[F>>2]=k[D>>2];F=e+-16|0;k[H>>2]=k[F>>2];H=e+-12|0;k[J>>2]=k[H>>2];J=e+-8|0;k[d>>2]=k[J>>2];d=e+-4|0;k[h>>2]=k[d>>2];k[f>>2]=l;e=y;k[e>>2]=A;k[e+4>>2]=B;k[D>>2]=C;k[F>>2]=E;k[H>>2]=G;k[J>>2]=I;k[d>>2]=K;d=n+32|0;e=f;j=(j|0)==(n|0)?f:j;c=c+1|0}while(0);do if((d|0)!=(j|0)){g=j+4|0;h=d+4|0;e=i[g>>0]^1;f=i[h>>0]^1;if((e&255)>=(f&255)){if((f&255)<(e&255))break;if((k[g+4>>2]|0)>>>0>=(k[h+4>>2]|0)>>>0)break}B=k[d>>2]|0;A=h;y=k[A>>2]|0;A=k[A+4>>2]|0;F=d+12|0;C=k[F>>2]|0;H=d+16|0;E=k[H>>2]|0;J=d+20|0;G=k[J>>2]|0;L=d+24|0;I=k[L>>2]|0;n=d+28|0;K=k[n>>2]|0;k[d>>2]=k[j>>2];l=g;m=k[l+4>>2]|0;D=h;k[D>>2]=k[l>>2];k[D+4>>2]=m;D=j+12|0;k[F>>2]=k[D>>2];F=j+16|0;k[H>>2]=k[F>>2];H=j+20|0;k[J>>2]=k[H>>2];J=j+24|0;k[L>>2]=k[J>>2];L=j+28|0;k[n>>2]=k[L>>2];k[j>>2]=B;B=g;k[B>>2]=y;k[B+4>>2]=A;k[D>>2]=C;k[F>>2]=E;k[H>>2]=G;k[J>>2]=I;k[L>>2]=K;c=c+1|0}while(0);if(!c){e=wb(a,d)|0;c=d+32|0;if(wb(c,b)|0){y=78;break}if(e){a=c;continue}}L=d;if((L-o|0)>=(p-L|0)){y=82;break}rb(a,d);a=d+32|0}if((y|0)==78)if(e){y=83;break}else{b=d;continue}else if((y|0)==82){rb(d+32|0,b);b=d;continue}}if((y|0)==4){d=a+4|0;b=i[z>>0]^1;c=i[d>>0]^1;if((b&255)>=(c&255)){if((c&255)<(b&255))return;if((k[s>>2]|0)>>>0>=(k[d+4>>2]|0)>>>0)return}G=k[a>>2]|0;F=d;E=k[F>>2]|0;F=k[F+4>>2]|0;y=a+12|0;H=k[y>>2]|0;A=a+16|0;I=k[A>>2]|0;B=a+20|0;J=k[B>>2]|0;C=a+24|0;K=k[C>>2]|0;D=a+28|0;L=k[D>>2]|0;k[a>>2]=k[r>>2];p=z;q=k[p+4>>2]|0;s=d;k[s>>2]=k[p>>2];k[s+4>>2]=q;k[y>>2]=k[t>>2];k[A>>2]=k[u>>2];k[B>>2]=k[v>>2];k[C>>2]=k[w>>2];k[D>>2]=k[x>>2];k[r>>2]=G;G=z;k[G>>2]=E;k[G+4>>2]=F;k[t>>2]=H;k[u>>2]=I;k[v>>2]=J;k[w>>2]=K;k[x>>2]=L;return}else if((y|0)==8){tb(a,a+32|0,r)|0;return}else if((y|0)==9){ub(a,a+32|0,a+64|0,r)|0;return}else if((y|0)==10){vb(a,a+32|0,a+64|0,a+96|0,r)|0;return}else if((y|0)==12){d=a+64|0;tb(a,a+32|0,d)|0;c=a+96|0;if((c|0)==(b|0))return;else x=c;while(1){f=x+4|0;l=d+4|0;c=i[f>>0]^1;e=i[l>>0]^1;if((c&255)>=(e&255)){if((e&255)>=(c&255)?(k[f+4>>2]|0)>>>0<(k[l+4>>2]|0)>>>0:0)y=16}else y=16;if((y|0)==16){y=0;p=k[x>>2]|0;r=f;q=k[r>>2]|0;r=k[r+4>>2]|0;e=x+12|0;s=k[e>>2]|0;g=x+16|0;t=k[g>>2]|0;h=x+20|0;u=k[h>>2]|0;K=x+24|0;v=k[K>>2]|0;L=x+28|0;w=k[L>>2]|0;k[x>>2]=k[d>>2];I=l;J=k[I+4>>2]|0;c=f;k[c>>2]=k[I>>2];k[c+4>>2]=J;c=d+12|0;k[e>>2]=k[c>>2];e=d+16|0;k[g>>2]=k[e>>2];g=d+20|0;k[h>>2]=k[g>>2];h=d+24|0;k[K>>2]=k[h>>2];f=d+28|0;k[L>>2]=k[f>>2];h:do if((d|0)==(a|0)){j=e;e=l}else{n=q&255^1;m=d;o=f;j=e;e=l;while(1){d=m+-32|0;l=m+-28|0;f=i[l>>0]^1;if((n&255)>=(f&255)){if((f&255)<(n&255)){d=m;f=o;break h}if(r>>>0>=(k[m+-24>>2]|0)>>>0){d=m;f=o;break h}}k[m>>2]=k[d>>2];g=l;e=k[g+4>>2]|0;c=m+4|0;k[c>>2]=k[g>>2];k[c+4>>2]=e;c=m+-20|0;k[m+12>>2]=k[c>>2];e=m+-16|0;k[m+16>>2]=k[e>>2];g=m+-12|0;k[m+20>>2]=k[g>>2];h=m+-8|0;k[m+24>>2]=k[h>>2];f=m+-4|0;k[m+28>>2]=k[f>>2];if((d|0)==(a|0)){j=e;e=l;break}else{m=d;o=f;j=e;e=l}}}while(0);k[d>>2]=p;L=e;k[L>>2]=q;k[L+4>>2]=r;k[c>>2]=s;k[j>>2]=t;k[g>>2]=u;k[h>>2]=v;k[f>>2]=w}c=x+32|0;if((c|0)==(b|0))break;else{d=x;x=c}}return}else if((y|0)==83)return}function sb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;m=a+4|0;e=k[m>>2]|0;n=k[a>>2]|0;j=n;l=e-j>>3;i=l+1|0;if(i>>>0>536870911)xa(1340,1363,303,1438);o=a+8|0;c=(k[o>>2]|0)-j|0;if(c>>3>>>0<268435455){c=c>>2;c=c>>>0<i>>>0?i:c;if(!c){f=0;d=0}else g=5}else{c=536870911;g=5}if((g|0)==5){f=c<<3;f=(f|0)==0?1:f;d=_d(f)|0;a:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(f)|0;if(d)break a}a=ya(4)|0;k[a>>2]=128;La(a|0,8,1)}while(0);f=c}c=d+(l<<3)|0;h=d+(f<<3)|0;k[c>>2]=k[b>>2];k[d+(l<<3)+4>>2]=k[b+4>>2];g=d+(i<<3)|0;if((e|0)!=(n|0)){f=e+-8|0;while(1){b=e;e=e+-8|0;k[c+-8>>2]=k[e>>2];k[c+-4>>2]=k[b+-4>>2];if((e|0)==(n|0))break;else c=c+-8|0}c=d+(l+~((f-j|0)>>>3)<<3)|0}k[a>>2]=c;k[m>>2]=g;k[o>>2]=h;if(!n)return;$d(n);return}function tb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;x=b+4|0;v=a+4|0;e=i[x>>0]^1;d=i[v>>0]^1;if((e&255)>=(d&255))if((d&255)<(e&255))f=0;else f=(k[x+4>>2]|0)>>>0<(k[v+4>>2]|0)>>>0;else f=1;w=c+4|0;d=i[w>>0]^1;if((d&255)>=(e&255))if((e&255)<(d&255))e=0;else e=(k[w+4>>2]|0)>>>0<(k[x+4>>2]|0)>>>0;else e=1;if(!f){if(!e){x=0;return x|0}z=k[b>>2]|0;m=x;y=k[m>>2]|0;m=k[m+4>>2]|0;f=b+12|0;n=k[f>>2]|0;g=b+16|0;p=k[g>>2]|0;h=b+20|0;r=k[h>>2]|0;j=b+24|0;t=k[j>>2]|0;l=b+28|0;e=k[l>>2]|0;k[b>>2]=k[c>>2];s=w;q=k[s+4>>2]|0;o=x;k[o>>2]=k[s>>2];k[o+4>>2]=q;o=c+12|0;k[f>>2]=k[o>>2];q=c+16|0;k[g>>2]=k[q>>2];s=c+20|0;k[h>>2]=k[s>>2];u=c+24|0;k[j>>2]=k[u>>2];d=c+28|0;k[l>>2]=k[d>>2];k[c>>2]=z;c=w;k[c>>2]=y;k[c+4>>2]=m;k[o>>2]=n;k[q>>2]=p;k[s>>2]=r;k[u>>2]=t;k[d>>2]=e;d=i[x>>0]^1;e=i[v>>0]^1;if((d&255)>=(e&255)){if((e&255)<(d&255)){z=1;return z|0}if((k[x+4>>2]|0)>>>0>=(k[v+4>>2]|0)>>>0){z=1;return z|0}}r=k[a>>2]|0;t=v;s=k[t>>2]|0;t=k[t+4>>2]|0;m=a+12|0;u=k[m>>2]|0;n=a+16|0;w=k[n>>2]|0;o=a+20|0;c=k[o>>2]|0;p=a+24|0;y=k[p>>2]|0;q=a+28|0;z=k[q>>2]|0;k[a>>2]=k[b>>2];e=x;a=k[e+4>>2]|0;k[v>>2]=k[e>>2];k[v+4>>2]=a;k[m>>2]=k[f>>2];k[n>>2]=k[g>>2];k[o>>2]=k[h>>2];k[p>>2]=k[j>>2];k[q>>2]=k[l>>2];k[b>>2]=r;k[x>>2]=s;k[x+4>>2]=t;k[f>>2]=u;k[g>>2]=w;k[h>>2]=c;k[j>>2]=y;k[l>>2]=z;z=2;return z|0}n=k[a>>2]|0;p=v;o=k[p>>2]|0;p=k[p+4>>2]|0;d=a+12|0;q=k[d>>2]|0;f=a+16|0;r=k[f>>2]|0;g=a+20|0;s=k[g>>2]|0;l=a+24|0;t=k[l>>2]|0;m=a+28|0;u=k[m>>2]|0;if(e){k[a>>2]=k[c>>2];x=w;b=k[x+4>>2]|0;k[v>>2]=k[x>>2];k[v+4>>2]=b;v=c+12|0;k[d>>2]=k[v>>2];b=c+16|0;k[f>>2]=k[b>>2];x=c+20|0;k[g>>2]=k[x>>2];y=c+24|0;k[l>>2]=k[y>>2];z=c+28|0;k[m>>2]=k[z>>2];k[c>>2]=n;c=w;k[c>>2]=o;k[c+4>>2]=p;k[v>>2]=q;k[b>>2]=r;k[x>>2]=s;k[y>>2]=t;k[z>>2]=u;z=1;return z|0}k[a>>2]=k[b>>2];h=x;j=k[h+4>>2]|0;a=v;k[a>>2]=k[h>>2];k[a+4>>2]=j;a=b+12|0;k[d>>2]=k[a>>2];j=b+16|0;k[f>>2]=k[j>>2];h=b+20|0;k[g>>2]=k[h>>2];g=b+24|0;k[l>>2]=k[g>>2];f=b+28|0;k[m>>2]=k[f>>2];k[b>>2]=n;d=x;k[d>>2]=o;k[d+4>>2]=p;k[a>>2]=q;k[j>>2]=r;k[h>>2]=s;k[g>>2]=t;k[f>>2]=u;d=i[w>>0]^1;e=o&255^1;if((d&255)>=(e&255)){if((e&255)<(d&255)){z=1;return z|0}if((k[w+4>>2]|0)>>>0>=p>>>0){z=1;return z|0}}k[b>>2]=k[c>>2];y=w;b=k[y+4>>2]|0;v=x;k[v>>2]=k[y>>2];k[v+4>>2]=b;v=c+12|0;k[a>>2]=k[v>>2];b=c+16|0;k[j>>2]=k[b>>2];x=c+20|0;k[h>>2]=k[x>>2];y=c+24|0;k[g>>2]=k[y>>2];z=c+28|0;k[f>>2]=k[z>>2];k[c>>2]=n;c=w;k[c>>2]=o;k[c+4>>2]=p;k[v>>2]=q;k[b>>2]=r;k[x>>2]=s;k[y>>2]=t;k[z>>2]=u;z=2;return z|0}function ub(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;v=tb(a,b,c)|0;g=d+4|0;t=c+4|0;e=i[g>>0]^1;f=i[t>>0]^1;if((e&255)>=(f&255)){if((f&255)<(e&255)){b=v;return b|0}if((k[g+4>>2]|0)>>>0>=(k[t+4>>2]|0)>>>0){b=v;return b|0}}A=k[c>>2]|0;y=t;z=k[y>>2]|0;y=k[y+4>>2]|0;o=c+12|0;x=k[o>>2]|0;p=c+16|0;h=k[p>>2]|0;q=c+20|0;l=k[q>>2]|0;r=c+24|0;n=k[r>>2]|0;s=c+28|0;u=k[s>>2]|0;k[c>>2]=k[d>>2];m=g;j=k[m+4>>2]|0;w=t;k[w>>2]=k[m>>2];k[w+4>>2]=j;w=d+12|0;k[o>>2]=k[w>>2];j=d+16|0;k[p>>2]=k[j>>2];m=d+20|0;k[q>>2]=k[m>>2];f=d+24|0;k[r>>2]=k[f>>2];e=d+28|0;k[s>>2]=k[e>>2];k[d>>2]=A;d=g;k[d>>2]=z;k[d+4>>2]=y;k[w>>2]=x;k[j>>2]=h;k[m>>2]=l;k[f>>2]=n;k[e>>2]=u;e=v+1|0;u=b+4|0;f=i[t>>0]^1;d=i[u>>0]^1;if((f&255)>=(d&255)){if((d&255)<(f&255)){A=e;return A|0}if((k[t+4>>2]|0)>>>0>=(k[u+4>>2]|0)>>>0){A=e;return A|0}}z=k[b>>2]|0;y=u;x=k[y>>2]|0;y=k[y+4>>2]|0;h=b+12|0;A=k[h>>2]|0;j=b+16|0;f=k[j>>2]|0;l=b+20|0;e=k[l>>2]|0;m=b+24|0;g=k[m>>2]|0;n=b+28|0;d=k[n>>2]|0;k[b>>2]=k[c>>2];C=t;B=k[C+4>>2]|0;w=u;k[w>>2]=k[C>>2];k[w+4>>2]=B;k[h>>2]=k[o>>2];k[j>>2]=k[p>>2];k[l>>2]=k[q>>2];k[m>>2]=k[r>>2];k[n>>2]=k[s>>2];k[c>>2]=z;z=t;k[z>>2]=x;k[z+4>>2]=y;k[o>>2]=A;k[p>>2]=f;k[q>>2]=e;k[r>>2]=g;k[s>>2]=d;d=v+2|0;g=a+4|0;e=i[u>>0]^1;f=i[g>>0]^1;if((e&255)>=(f&255)){if((f&255)<(e&255)){C=d;return C|0}if((k[u+4>>2]|0)>>>0>=(k[g+4>>2]|0)>>>0){C=d;return C|0}}x=k[a>>2]|0;w=g;t=k[w>>2]|0;w=k[w+4>>2]|0;p=a+12|0;y=k[p>>2]|0;q=a+16|0;z=k[q>>2]|0;r=a+20|0;A=k[r>>2]|0;s=a+24|0;B=k[s>>2]|0;c=a+28|0;C=k[c>>2]|0;k[a>>2]=k[b>>2];d=u;o=k[d+4>>2]|0;a=g;k[a>>2]=k[d>>2];k[a+4>>2]=o;k[p>>2]=k[h>>2];k[q>>2]=k[j>>2];k[r>>2]=k[l>>2];k[s>>2]=k[m>>2];k[c>>2]=k[n>>2];k[b>>2]=x;x=u;k[x>>2]=t;k[x+4>>2]=w;k[h>>2]=y;k[j>>2]=z;k[l>>2]=A;k[m>>2]=B;k[n>>2]=C;C=v+3|0;return C|0}function vb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;v=ub(a,b,c,d)|0;h=e+4|0;p=d+4|0;f=i[h>>0]^1;g=i[p>>0]^1;if((f&255)>=(g&255)){if((g&255)<(f&255)){b=v;return b|0}if((k[h+4>>2]|0)>>>0>=(k[p+4>>2]|0)>>>0){b=v;return b|0}}B=k[d>>2]|0;z=p;A=k[z>>2]|0;z=k[z+4>>2]|0;j=d+12|0;y=k[j>>2]|0;l=d+16|0;w=k[l>>2]|0;m=d+20|0;r=k[m>>2]|0;n=d+24|0;t=k[n>>2]|0;o=d+28|0;u=k[o>>2]|0;k[d>>2]=k[e>>2];s=h;q=k[s+4>>2]|0;x=p;k[x>>2]=k[s>>2];k[x+4>>2]=q;x=e+12|0;k[j>>2]=k[x>>2];q=e+16|0;k[l>>2]=k[q>>2];s=e+20|0;k[m>>2]=k[s>>2];g=e+24|0;k[n>>2]=k[g>>2];f=e+28|0;k[o>>2]=k[f>>2];k[e>>2]=B;e=h;k[e>>2]=A;k[e+4>>2]=z;k[x>>2]=y;k[q>>2]=w;k[s>>2]=r;k[g>>2]=t;k[f>>2]=u;f=v+1|0;u=c+4|0;g=i[p>>0]^1;e=i[u>>0]^1;if((g&255)>=(e&255)){if((e&255)<(g&255)){B=f;return B|0}if((k[p+4>>2]|0)>>>0>=(k[u+4>>2]|0)>>>0){B=f;return B|0}}x=k[c>>2]|0;z=u;y=k[z>>2]|0;z=k[z+4>>2]|0;h=c+12|0;A=k[h>>2]|0;q=c+16|0;B=k[q>>2]|0;r=c+20|0;g=k[r>>2]|0;s=c+24|0;f=k[s>>2]|0;t=c+28|0;e=k[t>>2]|0;k[c>>2]=k[d>>2];D=p;C=k[D+4>>2]|0;w=u;k[w>>2]=k[D>>2];k[w+4>>2]=C;k[h>>2]=k[j>>2];k[q>>2]=k[l>>2];k[r>>2]=k[m>>2];k[s>>2]=k[n>>2];k[t>>2]=k[o>>2];k[d>>2]=x;d=p;k[d>>2]=y;k[d+4>>2]=z;k[j>>2]=A;k[l>>2]=B;k[m>>2]=g;k[n>>2]=f;k[o>>2]=e;e=v+2|0;d=b+4|0;f=i[u>>0]^1;g=i[d>>0]^1;if((f&255)>=(g&255)){if((g&255)<(f&255)){D=e;return D|0}if((k[u+4>>2]|0)>>>0>=(k[d+4>>2]|0)>>>0){D=e;return D|0}}B=k[b>>2]|0;A=d;z=k[A>>2]|0;A=k[A+4>>2]|0;j=b+12|0;C=k[j>>2]|0;l=b+16|0;D=k[l>>2]|0;m=b+20|0;e=k[m>>2]|0;n=b+24|0;g=k[n>>2]|0;o=b+28|0;f=k[o>>2]|0;k[b>>2]=k[c>>2];w=u;x=k[w+4>>2]|0;y=d;k[y>>2]=k[w>>2];k[y+4>>2]=x;k[j>>2]=k[h>>2];k[l>>2]=k[q>>2];k[m>>2]=k[r>>2];k[n>>2]=k[s>>2];k[o>>2]=k[t>>2];k[c>>2]=B;B=u;k[B>>2]=z;k[B+4>>2]=A;k[h>>2]=C;k[q>>2]=D;k[r>>2]=e;k[s>>2]=g;k[t>>2]=f;f=v+3|0;h=a+4|0;g=i[d>>0]^1;e=i[h>>0]^1;if((g&255)>=(e&255)){if((e&255)<(g&255)){D=f;return D|0}if((k[d+4>>2]|0)>>>0>=(k[h+4>>2]|0)>>>0){D=f;return D|0}}y=k[a>>2]|0;x=h;w=k[x>>2]|0;x=k[x+4>>2]|0;r=a+12|0;z=k[r>>2]|0;s=a+16|0;A=k[s>>2]|0;t=a+20|0;B=k[t>>2]|0;u=a+24|0;C=k[u>>2]|0;c=a+28|0;D=k[c>>2]|0;k[a>>2]=k[b>>2];p=d;q=k[p+4>>2]|0;a=h;k[a>>2]=k[p>>2];k[a+4>>2]=q;k[r>>2]=k[j>>2];k[s>>2]=k[l>>2];k[t>>2]=k[m>>2];k[u>>2]=k[n>>2];k[c>>2]=k[o>>2];k[b>>2]=y;y=d;k[y>>2]=w;k[y+4>>2]=x;k[j>>2]=z;k[l>>2]=A;k[m>>2]=B;k[n>>2]=C;k[o>>2]=D;D=v+4|0;return D|0}function wb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;switch(b-a>>5|0){case 2:{c=b+-32|0;f=b+-28|0;g=a+4|0;d=i[f>>0]^1;e=i[g>>0]^1;if((d&255)>=(e&255)){if((e&255)<(d&255)){b=1;return b|0}if((k[f+4>>2]|0)>>>0>=(k[g+4>>2]|0)>>>0){b=1;return b|0}}r=k[a>>2]|0;q=g;p=k[q>>2]|0;q=k[q+4>>2]|0;v=a+12|0;s=k[v>>2]|0;x=a+16|0;u=k[x>>2]|0;m=a+20|0;w=k[m>>2]|0;n=a+24|0;y=k[n>>2]|0;o=a+28|0;z=k[o>>2]|0;k[a>>2]=k[c>>2];l=f;a=k[l+4>>2]|0;t=g;k[t>>2]=k[l>>2];k[t+4>>2]=a;t=b+-20|0;k[v>>2]=k[t>>2];v=b+-16|0;k[x>>2]=k[v>>2];x=b+-12|0;k[m>>2]=k[x>>2];a=b+-8|0;k[n>>2]=k[a>>2];b=b+-4|0;k[o>>2]=k[b>>2];k[c>>2]=r;r=f;k[r>>2]=p;k[r+4>>2]=q;k[t>>2]=s;k[v>>2]=u;k[x>>2]=w;k[a>>2]=y;k[b>>2]=z;b=1;return b|0}case 3:{tb(a,a+32|0,b+-32|0)|0;b=1;return b|0}case 4:{ub(a,a+32|0,a+64|0,b+-32|0)|0;b=1;return b|0}case 5:{vb(a,a+32|0,a+64|0,a+96|0,b+-32|0)|0;b=1;return b|0}case 1:case 0:{b=1;return b|0}default:{e=a+64|0;tb(a,a+32|0,e)|0;d=a+96|0;if((d|0)==(b|0)){b=1;return b|0}else c=0;while(1){h=d+4|0;j=e+4|0;f=i[h>>0]^1;g=i[j>>0]^1;if((f&255)>=(g&255)){if((g&255)>=(f&255)?(k[h+4>>2]|0)>>>0<(k[j+4>>2]|0)>>>0:0)z=13}else z=13;if((z|0)==13){z=0;r=k[d>>2]|0;t=h;s=k[t>>2]|0;t=k[t+4>>2]|0;m=d+12|0;u=k[m>>2]|0;p=d+16|0;v=k[p>>2]|0;g=d+20|0;w=k[g>>2]|0;f=d+24|0;x=k[f>>2]|0;q=d+28|0;y=k[q>>2]|0;k[d>>2]=k[e>>2];n=j;o=k[n+4>>2]|0;l=h;k[l>>2]=k[n>>2];k[l+4>>2]=o;l=e+12|0;k[m>>2]=k[l>>2];m=e+16|0;k[p>>2]=k[m>>2];h=e+20|0;k[g>>2]=k[h>>2];g=e+24|0;k[f>>2]=k[g>>2];f=e+28|0;k[q>>2]=k[f>>2];a:do if((e|0)!=(a|0)){q=s&255^1;p=e;o=h;while(1){e=p+-32|0;n=p+-28|0;h=i[n>>0]^1;if((q&255)>=(h&255)){if((h&255)<(q&255)){e=p;h=o;break a}if(t>>>0>=(k[p+-24>>2]|0)>>>0){e=p;h=o;break a}}k[p>>2]=k[e>>2];h=n;m=k[h+4>>2]|0;l=p+4|0;k[l>>2]=k[h>>2];k[l+4>>2]=m;l=p+-20|0;k[p+12>>2]=k[l>>2];m=p+-16|0;k[p+16>>2]=k[m>>2];h=p+-12|0;k[p+20>>2]=k[h>>2];g=p+-8|0;k[p+24>>2]=k[g>>2];f=p+-4|0;k[p+28>>2]=k[f>>2];if((e|0)==(a|0)){j=n;break}else{p=e;o=h;j=n}}}while(0);k[e>>2]=r;r=j;k[r>>2]=s;k[r+4>>2]=t;k[l>>2]=u;k[m>>2]=v;k[h>>2]=w;k[g>>2]=x;k[f>>2]=y;c=c+1|0;if((c|0)==8)break}e=d+32|0;if((e|0)==(b|0)){c=1;z=22;break}else{y=d;d=e;e=y}}if((z|0)==22)return c|0;b=(d+32|0)==(b|0);return b|0}}return 0}function xb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0;h=r;r=r+32|0;g=h;l=Za[k[e>>2]&7](b,a)|0;f=Za[k[e>>2]&7](c,b)|0;do if(l){k[g>>2]=k[a>>2];k[g+4>>2]=k[a+4>>2];k[g+8>>2]=k[a+8>>2];k[g+12>>2]=k[a+12>>2];k[g+16>>2]=k[a+16>>2];k[g+20>>2]=k[a+20>>2];k[g+24>>2]=k[a+24>>2];k[g+28>>2]=k[a+28>>2];if(f){k[a>>2]=k[c>>2];k[a+4>>2]=k[c+4>>2];k[a+8>>2]=k[c+8>>2];k[a+12>>2]=k[c+12>>2];k[a+16>>2]=k[c+16>>2];k[a+20>>2]=k[c+20>>2];j[a+24>>1]=j[c+24>>1]|0;i[a+26>>0]=i[c+26>>0]|0;k[c>>2]=k[g>>2];k[c+4>>2]=k[g+4>>2];k[c+8>>2]=k[g+8>>2];k[c+12>>2]=k[g+12>>2];k[c+16>>2]=k[g+16>>2];k[c+20>>2]=k[g+20>>2];j[c+24>>1]=j[g+24>>1]|0;i[c+26>>0]=i[g+26>>0]|0;f=1;break};k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];j[a+24>>1]=j[b+24>>1]|0;i[a+26>>0]=i[b+26>>0]|0;k[b>>2]=k[g>>2];k[b+4>>2]=k[g+4>>2];k[b+8>>2]=k[g+8>>2];k[b+12>>2]=k[g+12>>2];k[b+16>>2]=k[g+16>>2];k[b+20>>2]=k[g+20>>2];j[b+24>>1]=j[g+24>>1]|0;i[b+26>>0]=i[g+26>>0]|0;if(Za[k[e>>2]&7](c,b)|0){k[g>>2]=k[b>>2];k[g+4>>2]=k[b+4>>2];k[g+8>>2]=k[b+8>>2];k[g+12>>2]=k[b+12>>2];k[g+16>>2]=k[b+16>>2];k[g+20>>2]=k[b+20>>2];k[g+24>>2]=k[b+24>>2];k[g+28>>2]=k[b+28>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];j[b+24>>1]=j[c+24>>1]|0;i[b+26>>0]=i[c+26>>0]|0;k[c>>2]=k[g>>2];k[c+4>>2]=k[g+4>>2];k[c+8>>2]=k[g+8>>2];k[c+12>>2]=k[g+12>>2];k[c+16>>2]=k[g+16>>2];k[c+20>>2]=k[g+20>>2];j[c+24>>1]=j[g+24>>1]|0;i[c+26>>0]=i[g+26>>0]|0;f=2}else f=1}else if(f){k[g>>2]=k[b>>2];k[g+4>>2]=k[b+4>>2];k[g+8>>2]=k[b+8>>2];k[g+12>>2]=k[b+12>>2];k[g+16>>2]=k[b+16>>2];k[g+20>>2]=k[b+20>>2];k[g+24>>2]=k[b+24>>2];k[g+28>>2]=k[b+28>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];j[b+24>>1]=j[c+24>>1]|0;i[b+26>>0]=i[c+26>>0]|0;k[c>>2]=k[g>>2];k[c+4>>2]=k[g+4>>2];k[c+8>>2]=k[g+8>>2];k[c+12>>2]=k[g+12>>2];k[c+16>>2]=k[g+16>>2];k[c+20>>2]=k[g+20>>2];j[c+24>>1]=j[g+24>>1]|0;i[c+26>>0]=i[g+26>>0]|0;if(Za[k[e>>2]&7](b,a)|0){k[g>>2]=k[a>>2];k[g+4>>2]=k[a+4>>2];k[g+8>>2]=k[a+8>>2];k[g+12>>2]=k[a+12>>2];k[g+16>>2]=k[a+16>>2];k[g+20>>2]=k[a+20>>2];k[g+24>>2]=k[a+24>>2];k[g+28>>2]=k[a+28>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];j[a+24>>1]=j[b+24>>1]|0;i[a+26>>0]=i[b+26>>0]|0;k[b>>2]=k[g>>2];k[b+4>>2]=k[g+4>>2];k[b+8>>2]=k[g+8>>2];k[b+12>>2]=k[g+12>>2];k[b+16>>2]=k[g+16>>2];k[b+20>>2]=k[g+20>>2];j[b+24>>1]=j[g+24>>1]|0;i[b+26>>0]=i[g+26>>0]|0;f=2}else f=1}else f=0;while(0);if(!(Za[k[e>>2]&7](d,c)|0)){l=f;r=h;return l|0};k[g>>2]=k[c>>2];k[g+4>>2]=k[c+4>>2];k[g+8>>2]=k[c+8>>2];k[g+12>>2]=k[c+12>>2];k[g+16>>2]=k[c+16>>2];k[g+20>>2]=k[c+20>>2];k[g+24>>2]=k[c+24>>2];k[g+28>>2]=k[c+28>>2];k[c>>2]=k[d>>2];k[c+4>>2]=k[d+4>>2];k[c+8>>2]=k[d+8>>2];k[c+12>>2]=k[d+12>>2];k[c+16>>2]=k[d+16>>2];k[c+20>>2]=k[d+20>>2];j[c+24>>1]=j[d+24>>1]|0;i[c+26>>0]=i[d+26>>0]|0;k[d>>2]=k[g>>2];k[d+4>>2]=k[g+4>>2];k[d+8>>2]=k[g+8>>2];k[d+12>>2]=k[g+12>>2];k[d+16>>2]=k[g+16>>2];k[d+20>>2]=k[g+20>>2];j[d+24>>1]=j[g+24>>1]|0;i[d+26>>0]=i[g+26>>0]|0;if(!(Za[k[e>>2]&7](c,b)|0)){l=f+1|0;r=h;return l|0};k[g>>2]=k[b>>2];k[g+4>>2]=k[b+4>>2];k[g+8>>2]=k[b+8>>2];k[g+12>>2]=k[b+12>>2];k[g+16>>2]=k[b+16>>2];k[g+20>>2]=k[b+20>>2];k[g+24>>2]=k[b+24>>2];k[g+28>>2]=k[b+28>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];j[b+24>>1]=j[c+24>>1]|0;i[b+26>>0]=i[c+26>>0]|0;k[c>>2]=k[g>>2];k[c+4>>2]=k[g+4>>2];k[c+8>>2]=k[g+8>>2];k[c+12>>2]=k[g+12>>2];k[c+16>>2]=k[g+16>>2];k[c+20>>2]=k[g+20>>2];j[c+24>>1]=j[g+24>>1]|0;i[c+26>>0]=i[g+26>>0]|0;if(!(Za[k[e>>2]&7](b,a)|0)){l=f+2|0;r=h;return l|0};k[g>>2]=k[a>>2];k[g+4>>2]=k[a+4>>2];k[g+8>>2]=k[a+8>>2];k[g+12>>2]=k[a+12>>2];k[g+16>>2]=k[a+16>>2];k[g+20>>2]=k[a+20>>2];k[g+24>>2]=k[a+24>>2];k[g+28>>2]=k[a+28>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];j[a+24>>1]=j[b+24>>1]|0;i[a+26>>0]=i[b+26>>0]|0;k[b>>2]=k[g>>2];k[b+4>>2]=k[g+4>>2];k[b+8>>2]=k[g+8>>2];k[b+12>>2]=k[g+12>>2];k[b+16>>2]=k[g+16>>2];k[b+20>>2]=k[g+20>>2];j[b+24>>1]=j[g+24>>1]|0;i[b+26>>0]=i[g+26>>0]|0;l=f+3|0;r=h;return l|0}function yb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0;n=r;r=r+64|0;h=n+32|0;l=n;switch(b-a>>5|0){case 2:{d=b+-32|0;if(!(Za[k[c>>2]&7](d,a)|0)){a=1;r=n;return a|0};k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];k[a>>2]=k[d>>2];k[a+4>>2]=k[d+4>>2];k[a+8>>2]=k[d+8>>2];k[a+12>>2]=k[d+12>>2];k[a+16>>2]=k[d+16>>2];k[a+20>>2]=k[d+20>>2];j[a+24>>1]=j[d+24>>1]|0;i[a+26>>0]=i[d+26>>0]|0;k[d>>2]=k[h>>2];k[d+4>>2]=k[h+4>>2];k[d+8>>2]=k[h+8>>2];k[d+12>>2]=k[h+12>>2];k[d+16>>2]=k[h+16>>2];k[d+20>>2]=k[h+20>>2];j[d+24>>1]=j[h+24>>1]|0;i[d+26>>0]=i[h+26>>0]|0;a=1;r=n;return a|0}case 3:{f=a+32|0;e=b+-32|0;b=Za[k[c>>2]&7](f,a)|0;d=Za[k[c>>2]&7](e,f)|0;if(!b){if(!d){a=1;r=n;return a|0};k[h>>2]=k[f>>2];k[h+4>>2]=k[f+4>>2];k[h+8>>2]=k[f+8>>2];k[h+12>>2]=k[f+12>>2];k[h+16>>2]=k[f+16>>2];k[h+20>>2]=k[f+20>>2];k[h+24>>2]=k[f+24>>2];k[h+28>>2]=k[f+28>>2];k[f>>2]=k[e>>2];k[f+4>>2]=k[e+4>>2];k[f+8>>2]=k[e+8>>2];k[f+12>>2]=k[e+12>>2];k[f+16>>2]=k[e+16>>2];k[f+20>>2]=k[e+20>>2];j[f+24>>1]=j[e+24>>1]|0;i[f+26>>0]=i[e+26>>0]|0;k[e>>2]=k[h>>2];k[e+4>>2]=k[h+4>>2];k[e+8>>2]=k[h+8>>2];k[e+12>>2]=k[h+12>>2];k[e+16>>2]=k[h+16>>2];k[e+20>>2]=k[h+20>>2];j[e+24>>1]=j[h+24>>1]|0;i[e+26>>0]=i[h+26>>0]|0;if(!(Za[k[c>>2]&7](f,a)|0)){a=1;r=n;return a|0};k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];k[a>>2]=k[f>>2];k[a+4>>2]=k[f+4>>2];k[a+8>>2]=k[f+8>>2];k[a+12>>2]=k[f+12>>2];k[a+16>>2]=k[f+16>>2];k[a+20>>2]=k[f+20>>2];j[a+24>>1]=j[f+24>>1]|0;i[a+26>>0]=i[f+26>>0]|0;k[f>>2]=k[h>>2];k[f+4>>2]=k[h+4>>2];k[f+8>>2]=k[h+8>>2];k[f+12>>2]=k[h+12>>2];k[f+16>>2]=k[h+16>>2];k[f+20>>2]=k[h+20>>2];j[f+24>>1]=j[h+24>>1]|0;i[f+26>>0]=i[h+26>>0]|0;a=1;r=n;return a|0};k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];if(d){k[a>>2]=k[e>>2];k[a+4>>2]=k[e+4>>2];k[a+8>>2]=k[e+8>>2];k[a+12>>2]=k[e+12>>2];k[a+16>>2]=k[e+16>>2];k[a+20>>2]=k[e+20>>2];j[a+24>>1]=j[e+24>>1]|0;i[a+26>>0]=i[e+26>>0]|0;k[e>>2]=k[h>>2];k[e+4>>2]=k[h+4>>2];k[e+8>>2]=k[h+8>>2];k[e+12>>2]=k[h+12>>2];k[e+16>>2]=k[h+16>>2];k[e+20>>2]=k[h+20>>2];j[e+24>>1]=j[h+24>>1]|0;i[e+26>>0]=i[h+26>>0]|0;a=1;r=n;return a|0};k[a>>2]=k[f>>2];k[a+4>>2]=k[f+4>>2];k[a+8>>2]=k[f+8>>2];k[a+12>>2]=k[f+12>>2];k[a+16>>2]=k[f+16>>2];k[a+20>>2]=k[f+20>>2];j[a+24>>1]=j[f+24>>1]|0;i[a+26>>0]=i[f+26>>0]|0;k[f>>2]=k[h>>2];k[f+4>>2]=k[h+4>>2];k[f+8>>2]=k[h+8>>2];k[f+12>>2]=k[h+12>>2];k[f+16>>2]=k[h+16>>2];k[f+20>>2]=k[h+20>>2];j[f+24>>1]=j[h+24>>1]|0;i[f+26>>0]=i[h+26>>0]|0;if(!(Za[k[c>>2]&7](e,f)|0)){a=1;r=n;return a|0};k[h>>2]=k[f>>2];k[h+4>>2]=k[f+4>>2];k[h+8>>2]=k[f+8>>2];k[h+12>>2]=k[f+12>>2];k[h+16>>2]=k[f+16>>2];k[h+20>>2]=k[f+20>>2];k[h+24>>2]=k[f+24>>2];k[h+28>>2]=k[f+28>>2];k[f>>2]=k[e>>2];k[f+4>>2]=k[e+4>>2];k[f+8>>2]=k[e+8>>2];k[f+12>>2]=k[e+12>>2];k[f+16>>2]=k[e+16>>2];k[f+20>>2]=k[e+20>>2];j[f+24>>1]=j[e+24>>1]|0;i[f+26>>0]=i[e+26>>0]|0;k[e>>2]=k[h>>2];k[e+4>>2]=k[h+4>>2];k[e+8>>2]=k[h+8>>2];k[e+12>>2]=k[h+12>>2];k[e+16>>2]=k[h+16>>2];k[e+20>>2]=k[h+20>>2];j[e+24>>1]=j[h+24>>1]|0;i[e+26>>0]=i[h+26>>0]|0;a=1;r=n;return a|0}case 4:{xb(a,a+32|0,a+64|0,b+-32|0,c)|0;a=1;r=n;return a|0}case 5:{e=a+32|0;f=a+64|0;g=a+96|0;d=b+-32|0;xb(a,e,f,g,c)|0;if(!(Za[k[c>>2]&7](d,g)|0)){a=1;r=n;return a|0};k[h>>2]=k[g>>2];k[h+4>>2]=k[g+4>>2];k[h+8>>2]=k[g+8>>2];k[h+12>>2]=k[g+12>>2];k[h+16>>2]=k[g+16>>2];k[h+20>>2]=k[g+20>>2];k[h+24>>2]=k[g+24>>2];k[h+28>>2]=k[g+28>>2];k[g>>2]=k[d>>2];k[g+4>>2]=k[d+4>>2];k[g+8>>2]=k[d+8>>2];k[g+12>>2]=k[d+12>>2];k[g+16>>2]=k[d+16>>2];k[g+20>>2]=k[d+20>>2];j[g+24>>1]=j[d+24>>1]|0;i[g+26>>0]=i[d+26>>0]|0;k[d>>2]=k[h>>2];k[d+4>>2]=k[h+4>>2];k[d+8>>2]=k[h+8>>2];k[d+12>>2]=k[h+12>>2];k[d+16>>2]=k[h+16>>2];k[d+20>>2]=k[h+20>>2];j[d+24>>1]=j[h+24>>1]|0;i[d+26>>0]=i[h+26>>0]|0;if(!(Za[k[c>>2]&7](g,f)|0)){a=1;r=n;return a|0};k[h>>2]=k[f>>2];k[h+4>>2]=k[f+4>>2];k[h+8>>2]=k[f+8>>2];k[h+12>>2]=k[f+12>>2];k[h+16>>2]=k[f+16>>2];k[h+20>>2]=k[f+20>>2];k[h+24>>2]=k[f+24>>2];k[h+28>>2]=k[f+28>>2];k[f>>2]=k[g>>2];k[f+4>>2]=k[g+4>>2];k[f+8>>2]=k[g+8>>2];k[f+12>>2]=k[g+12>>2];k[f+16>>2]=k[g+16>>2];k[f+20>>2]=k[g+20>>2];j[f+24>>1]=j[g+24>>1]|0;i[f+26>>0]=i[g+26>>0]|0;k[g>>2]=k[h>>2];k[g+4>>2]=k[h+4>>2];k[g+8>>2]=k[h+8>>2];k[g+12>>2]=k[h+12>>2];k[g+16>>2]=k[h+16>>2];k[g+20>>2]=k[h+20>>2];j[g+24>>1]=j[h+24>>1]|0;i[g+26>>0]=i[h+26>>0]|0;if(!(Za[k[c>>2]&7](f,e)|0)){a=1;r=n;return a|0};k[h>>2]=k[e>>2];k[h+4>>2]=k[e+4>>2];k[h+8>>2]=k[e+8>>2];k[h+12>>2]=k[e+12>>2];k[h+16>>2]=k[e+16>>2];k[h+20>>2]=k[e+20>>2];k[h+24>>2]=k[e+24>>2];k[h+28>>2]=k[e+28>>2];k[e>>2]=k[f>>2];k[e+4>>2]=k[f+4>>2];k[e+8>>2]=k[f+8>>2];k[e+12>>2]=k[f+12>>2];k[e+16>>2]=k[f+16>>2];k[e+20>>2]=k[f+20>>2];j[e+24>>1]=j[f+24>>1]|0;i[e+26>>0]=i[f+26>>0]|0;k[f>>2]=k[h>>2];k[f+4>>2]=k[h+4>>2];k[f+8>>2]=k[h+8>>2];k[f+12>>2]=k[h+12>>2];k[f+16>>2]=k[h+16>>2];k[f+20>>2]=k[h+20>>2];j[f+24>>1]=j[h+24>>1]|0;i[f+26>>0]=i[h+26>>0]|0;if(!(Za[k[c>>2]&7](e,a)|0)){a=1;r=n;return a|0};k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];k[a>>2]=k[e>>2];k[a+4>>2]=k[e+4>>2];k[a+8>>2]=k[e+8>>2];k[a+12>>2]=k[e+12>>2];k[a+16>>2]=k[e+16>>2];k[a+20>>2]=k[e+20>>2];j[a+24>>1]=j[e+24>>1]|0;i[a+26>>0]=i[e+26>>0]|0;k[e>>2]=k[h>>2];k[e+4>>2]=k[h+4>>2];k[e+8>>2]=k[h+8>>2];k[e+12>>2]=k[h+12>>2];k[e+16>>2]=k[h+16>>2];k[e+20>>2]=k[h+20>>2];j[e+24>>1]=j[h+24>>1]|0;i[e+26>>0]=i[h+26>>0]|0;a=1;r=n;return a|0}case 1:case 0:{a=1;r=n;return a|0}default:{f=a+64|0;d=a+32|0;g=Za[k[c>>2]&7](d,a)|0;e=Za[k[c>>2]&7](f,d)|0;do if(g){k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];if(e){k[a>>2]=k[f>>2];k[a+4>>2]=k[f+4>>2];k[a+8>>2]=k[f+8>>2];k[a+12>>2]=k[f+12>>2];k[a+16>>2]=k[f+16>>2];k[a+20>>2]=k[f+20>>2];j[a+24>>1]=j[f+24>>1]|0;i[a+26>>0]=i[f+26>>0]|0;k[f>>2]=k[h>>2];k[f+4>>2]=k[h+4>>2];k[f+8>>2]=k[h+8>>2];k[f+12>>2]=k[h+12>>2];k[f+16>>2]=k[h+16>>2];k[f+20>>2]=k[h+20>>2];j[f+24>>1]=j[h+24>>1]|0;i[f+26>>0]=i[h+26>>0]|0;break};k[a>>2]=k[d>>2];k[a+4>>2]=k[d+4>>2];k[a+8>>2]=k[d+8>>2];k[a+12>>2]=k[d+12>>2];k[a+16>>2]=k[d+16>>2];k[a+20>>2]=k[d+20>>2];j[a+24>>1]=j[d+24>>1]|0;i[a+26>>0]=i[d+26>>0]|0;k[d>>2]=k[h>>2];k[d+4>>2]=k[h+4>>2];k[d+8>>2]=k[h+8>>2];k[d+12>>2]=k[h+12>>2];k[d+16>>2]=k[h+16>>2];k[d+20>>2]=k[h+20>>2];j[d+24>>1]=j[h+24>>1]|0;i[d+26>>0]=i[h+26>>0]|0;if(Za[k[c>>2]&7](f,d)|0){k[h>>2]=k[d>>2];k[h+4>>2]=k[d+4>>2];k[h+8>>2]=k[d+8>>2];k[h+12>>2]=k[d+12>>2];k[h+16>>2]=k[d+16>>2];k[h+20>>2]=k[d+20>>2];k[h+24>>2]=k[d+24>>2];k[h+28>>2]=k[d+28>>2];k[d>>2]=k[f>>2];k[d+4>>2]=k[f+4>>2];k[d+8>>2]=k[f+8>>2];k[d+12>>2]=k[f+12>>2];k[d+16>>2]=k[f+16>>2];k[d+20>>2]=k[f+20>>2];j[d+24>>1]=j[f+24>>1]|0;i[d+26>>0]=i[f+26>>0]|0;k[f>>2]=k[h>>2];k[f+4>>2]=k[h+4>>2];k[f+8>>2]=k[h+8>>2];k[f+12>>2]=k[h+12>>2];k[f+16>>2]=k[h+16>>2];k[f+20>>2]=k[h+20>>2];j[f+24>>1]=j[h+24>>1]|0;i[f+26>>0]=i[h+26>>0]|0}}else if(e?(k[h>>2]=k[d>>2],k[h+4>>2]=k[d+4>>2],k[h+8>>2]=k[d+8>>2],k[h+12>>2]=k[d+12>>2],k[h+16>>2]=k[d+16>>2],k[h+20>>2]=k[d+20>>2],k[h+24>>2]=k[d+24>>2],k[h+28>>2]=k[d+28>>2],k[d>>2]=k[f>>2],k[d+4>>2]=k[f+4>>2],k[d+8>>2]=k[f+8>>2],k[d+12>>2]=k[f+12>>2],k[d+16>>2]=k[f+16>>2],k[d+20>>2]=k[f+20>>2],j[d+24>>1]=j[f+24>>1]|0,i[d+26>>0]=i[f+26>>0]|0,k[f>>2]=k[h>>2],k[f+4>>2]=k[h+4>>2],k[f+8>>2]=k[h+8>>2],k[f+12>>2]=k[h+12>>2],k[f+16>>2]=k[h+16>>2],k[f+20>>2]=k[h+20>>2],j[f+24>>1]=j[h+24>>1]|0,i[f+26>>0]=i[h+26>>0]|0,Za[k[c>>2]&7](d,a)|0):0){k[h>>2]=k[a>>2];k[h+4>>2]=k[a+4>>2];k[h+8>>2]=k[a+8>>2];k[h+12>>2]=k[a+12>>2];k[h+16>>2]=k[a+16>>2];k[h+20>>2]=k[a+20>>2];k[h+24>>2]=k[a+24>>2];k[h+28>>2]=k[a+28>>2];k[a>>2]=k[d>>2];k[a+4>>2]=k[d+4>>2];k[a+8>>2]=k[d+8>>2];k[a+12>>2]=k[d+12>>2];k[a+16>>2]=k[d+16>>2];k[a+20>>2]=k[d+20>>2];j[a+24>>1]=j[d+24>>1]|0;i[a+26>>0]=i[d+26>>0]|0;k[d>>2]=k[h>>2];k[d+4>>2]=k[h+4>>2];k[d+8>>2]=k[h+8>>2];k[d+12>>2]=k[h+12>>2];k[d+16>>2]=k[h+16>>2];k[d+20>>2]=k[h+20>>2];j[d+24>>1]=j[h+24>>1]|0;i[d+26>>0]=i[h+26>>0]|0}while(0);e=a+96|0;if((e|0)==(b|0)){a=1;r=n;return a|0}d=0;while(1){if(Za[k[c>>2]&7](e,f)|0){k[l>>2]=k[e>>2];k[l+4>>2]=k[e+4>>2];k[l+8>>2]=k[e+8>>2];k[l+12>>2]=k[e+12>>2];k[l+16>>2]=k[e+16>>2];k[l+20>>2]=k[e+20>>2];k[l+24>>2]=k[e+24>>2];k[l+28>>2]=k[e+28>>2];g=e;h=f;while(1){k[g>>2]=k[h>>2];k[g+4>>2]=k[h+4>>2];k[g+8>>2]=k[h+8>>2];k[g+12>>2]=k[h+12>>2];k[g+16>>2]=k[h+16>>2];k[g+20>>2]=k[h+20>>2];j[g+24>>1]=j[h+24>>1]|0;i[g+26>>0]=i[h+26>>0]|0;if((h|0)==(a|0))break;f=h+-32|0;if(Za[k[c>>2]&7](l,f)|0){g=h;h=f}else break}k[h>>2]=k[l>>2];k[h+4>>2]=k[l+4>>2];k[h+8>>2]=k[l+8>>2];k[h+12>>2]=k[l+12>>2];k[h+16>>2]=k[l+16>>2];k[h+20>>2]=k[l+20>>2];j[h+24>>1]=j[l+24>>1]|0;i[h+26>>0]=i[l+26>>0]|0;d=d+1|0;if((d|0)==8)break}f=e+32|0;if((f|0)==(b|0)){d=1;m=35;break}else{h=e;e=f;f=h}}if((m|0)==35){r=n;return d|0}a=(e+32|0)==(b|0);r=n;return a|0}}return 0}function zb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;v=Za[k[d>>2]&7](b,a)|0;e=Za[k[d>>2]&7](c,b)|0;if(!v){if(!e){c=0;return c|0}y=k[b>>2]|0;j=b+4|0;l=j;w=k[l>>2]|0;l=k[l+4>>2]|0;e=b+12|0;m=k[e>>2]|0;f=b+16|0;o=k[f>>2]|0;g=b+20|0;q=k[g>>2]|0;h=b+24|0;s=k[h>>2]|0;i=b+28|0;u=k[i>>2]|0;k[b>>2]=k[c>>2];x=c+4|0;r=x;p=k[r+4>>2]|0;n=j;k[n>>2]=k[r>>2];k[n+4>>2]=p;n=c+12|0;k[e>>2]=k[n>>2];p=c+16|0;k[f>>2]=k[p>>2];r=c+20|0;k[g>>2]=k[r>>2];t=c+24|0;k[h>>2]=k[t>>2];v=c+28|0;k[i>>2]=k[v>>2];k[c>>2]=y;c=x;k[c>>2]=w;k[c+4>>2]=l;k[n>>2]=m;k[p>>2]=o;k[r>>2]=q;k[t>>2]=s;k[v>>2]=u;if(!(Za[k[d>>2]&7](b,a)|0)){y=1;return y|0}t=k[a>>2]|0;n=a+4|0;v=n;u=k[v>>2]|0;v=k[v+4>>2]|0;o=a+12|0;d=k[o>>2]|0;p=a+16|0;c=k[p>>2]|0;q=a+20|0;w=k[q>>2]|0;r=a+24|0;x=k[r>>2]|0;s=a+28|0;y=k[s>>2]|0;k[a>>2]=k[b>>2];a=j;m=k[a+4>>2]|0;k[n>>2]=k[a>>2];k[n+4>>2]=m;k[o>>2]=k[e>>2];k[p>>2]=k[f>>2];k[q>>2]=k[g>>2];k[r>>2]=k[h>>2];k[s>>2]=k[i>>2];k[b>>2]=t;b=j;k[b>>2]=u;k[b+4>>2]=v;k[e>>2]=d;k[f>>2]=c;k[g>>2]=w;k[h>>2]=x;k[i>>2]=y;y=2;return y|0}r=k[a>>2]|0;f=a+4|0;t=f;s=k[t>>2]|0;t=k[t+4>>2]|0;g=a+12|0;u=k[g>>2]|0;j=a+16|0;v=k[j>>2]|0;l=a+20|0;n=k[l>>2]|0;m=a+24|0;o=k[m>>2]|0;p=a+28|0;q=k[p>>2]|0;if(e){k[a>>2]=k[c>>2];a=c+4|0;w=a;b=k[w+4>>2]|0;d=f;k[d>>2]=k[w>>2];k[d+4>>2]=b;d=c+12|0;k[g>>2]=k[d>>2];b=c+16|0;k[j>>2]=k[b>>2];w=c+20|0;k[l>>2]=k[w>>2];x=c+24|0;k[m>>2]=k[x>>2];y=c+28|0;k[p>>2]=k[y>>2];k[c>>2]=r;c=a;k[c>>2]=s;k[c+4>>2]=t;k[d>>2]=u;k[b>>2]=v;k[w>>2]=n;k[x>>2]=o;k[y>>2]=q;y=1;return y|0}k[a>>2]=k[b>>2];a=b+4|0;e=a;h=k[e+4>>2]|0;i=f;k[i>>2]=k[e>>2];k[i+4>>2]=h;i=b+12|0;k[g>>2]=k[i>>2];h=b+16|0;k[j>>2]=k[h>>2];g=b+20|0;k[l>>2]=k[g>>2];f=b+24|0;k[m>>2]=k[f>>2];e=b+28|0;k[p>>2]=k[e>>2];k[b>>2]=r;y=a;k[y>>2]=s;k[y+4>>2]=t;k[i>>2]=u;k[h>>2]=v;k[g>>2]=n;k[f>>2]=o;k[e>>2]=q;if(!(Za[k[d>>2]&7](c,b)|0)){y=1;return y|0}n=k[b>>2]|0;q=a;p=k[q>>2]|0;q=k[q+4>>2]|0;r=k[i>>2]|0;t=k[h>>2]|0;v=k[g>>2]|0;d=k[f>>2]|0;x=k[e>>2]|0;k[b>>2]=k[c>>2];o=c+4|0;b=o;u=k[b+4>>2]|0;s=a;k[s>>2]=k[b>>2];k[s+4>>2]=u;s=c+12|0;k[i>>2]=k[s>>2];u=c+16|0;k[h>>2]=k[u>>2];b=c+20|0;k[g>>2]=k[b>>2];w=c+24|0;k[f>>2]=k[w>>2];y=c+28|0;k[e>>2]=k[y>>2];k[c>>2]=n;c=o;k[c>>2]=p;k[c+4>>2]=q;k[s>>2]=r;k[u>>2]=t;k[b>>2]=v;k[w>>2]=d;k[y>>2]=x;y=2;return y|0}function Ab(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;l=zb(a,b,c,e)|0;if(!(Za[k[e>>2]&7](d,c)|0)){c=l;return c|0}A=k[c>>2]|0;r=c+4|0;x=r;y=k[x>>2]|0;x=k[x+4>>2]|0;m=c+12|0;w=k[m>>2]|0;n=c+16|0;u=k[n>>2]|0;o=c+20|0;s=k[o>>2]|0;p=c+24|0;g=k[p>>2]|0;q=c+28|0;i=k[q>>2]|0;k[c>>2]=k[d>>2];z=d+4|0;f=z;t=k[f+4>>2]|0;v=r;k[v>>2]=k[f>>2];k[v+4>>2]=t;v=d+12|0;k[m>>2]=k[v>>2];t=d+16|0;k[n>>2]=k[t>>2];f=d+20|0;k[o>>2]=k[f>>2];h=d+24|0;k[p>>2]=k[h>>2];j=d+28|0;k[q>>2]=k[j>>2];k[d>>2]=A;d=z;k[d>>2]=y;k[d+4>>2]=x;k[v>>2]=w;k[t>>2]=u;k[f>>2]=s;k[h>>2]=g;k[j>>2]=i;if(!(Za[k[e>>2]&7](c,b)|0)){A=l+1|0;return A|0}v=k[b>>2]|0;d=b+4|0;u=d;t=k[u>>2]|0;u=k[u+4>>2]|0;f=b+12|0;w=k[f>>2]|0;g=b+16|0;x=k[g>>2]|0;h=b+20|0;y=k[h>>2]|0;i=b+24|0;z=k[i>>2]|0;j=b+28|0;A=k[j>>2]|0;k[b>>2]=k[c>>2];C=r;B=k[C+4>>2]|0;s=d;k[s>>2]=k[C>>2];k[s+4>>2]=B;k[f>>2]=k[m>>2];k[g>>2]=k[n>>2];k[h>>2]=k[o>>2];k[i>>2]=k[p>>2];k[j>>2]=k[q>>2];k[c>>2]=v;v=r;k[v>>2]=t;k[v+4>>2]=u;k[m>>2]=w;k[n>>2]=x;k[o>>2]=y;k[p>>2]=z;k[q>>2]=A;if(!(Za[k[e>>2]&7](b,a)|0)){C=l+2|0;return C|0}x=k[a>>2]|0;p=a+4|0;w=p;v=k[w>>2]|0;w=k[w+4>>2]|0;e=a+12|0;y=k[e>>2]|0;c=a+16|0;z=k[c>>2]|0;s=a+20|0;A=k[s>>2]|0;t=a+24|0;B=k[t>>2]|0;u=a+28|0;C=k[u>>2]|0;k[a>>2]=k[b>>2];q=d;r=k[q+4>>2]|0;a=p;k[a>>2]=k[q>>2];k[a+4>>2]=r;k[e>>2]=k[f>>2];k[c>>2]=k[g>>2];k[s>>2]=k[h>>2];k[t>>2]=k[i>>2];k[u>>2]=k[j>>2];k[b>>2]=x;x=d;k[x>>2]=v;k[x+4>>2]=w;k[f>>2]=y;k[g>>2]=z;k[h>>2]=A;k[i>>2]=B;k[j>>2]=C;C=l+3|0;return C|0}function Bb(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;t=Ab(a,b,c,d,f)|0;if(!(Za[k[f>>2]&7](e,d)|0)){c=t;return c|0}B=k[d>>2]|0;m=d+4|0;y=m;z=k[y>>2]|0;y=k[y+4>>2]|0;g=d+12|0;x=k[g>>2]|0;h=d+16|0;v=k[h>>2]|0;i=d+20|0;n=k[i>>2]|0;j=d+24|0;p=k[j>>2]|0;l=d+28|0;r=k[l>>2]|0;k[d>>2]=k[e>>2];A=e+4|0;o=A;u=k[o+4>>2]|0;w=m;k[w>>2]=k[o>>2];k[w+4>>2]=u;w=e+12|0;k[g>>2]=k[w>>2];u=e+16|0;k[h>>2]=k[u>>2];o=e+20|0;k[i>>2]=k[o>>2];q=e+24|0;k[j>>2]=k[q>>2];s=e+28|0;k[l>>2]=k[s>>2];k[e>>2]=B;e=A;k[e>>2]=z;k[e+4>>2]=y;k[w>>2]=x;k[u>>2]=v;k[o>>2]=n;k[q>>2]=p;k[s>>2]=r;if(!(Za[k[f>>2]&7](d,c)|0)){B=t+1|0;return B|0}w=k[c>>2]|0;n=c+4|0;v=n;u=k[v>>2]|0;v=k[v+4>>2]|0;o=c+12|0;x=k[o>>2]|0;p=c+16|0;y=k[p>>2]|0;q=c+20|0;z=k[q>>2]|0;r=c+24|0;A=k[r>>2]|0;s=c+28|0;B=k[s>>2]|0;k[c>>2]=k[d>>2];D=m;C=k[D+4>>2]|0;e=n;k[e>>2]=k[D>>2];k[e+4>>2]=C;k[o>>2]=k[g>>2];k[p>>2]=k[h>>2];k[q>>2]=k[i>>2];k[r>>2]=k[j>>2];k[s>>2]=k[l>>2];k[d>>2]=w;w=m;k[w>>2]=u;k[w+4>>2]=v;k[g>>2]=x;k[h>>2]=y;k[i>>2]=z;k[j>>2]=A;k[l>>2]=B;if(!(Za[k[f>>2]&7](c,b)|0)){D=t+2|0;return D|0}y=k[b>>2]|0;j=b+4|0;x=j;w=k[x>>2]|0;x=k[x+4>>2]|0;l=b+12|0;z=k[l>>2]|0;e=b+16|0;A=k[e>>2]|0;g=b+20|0;B=k[g>>2]|0;h=b+24|0;C=k[h>>2]|0;i=b+28|0;D=k[i>>2]|0;k[b>>2]=k[c>>2];d=n;u=k[d+4>>2]|0;v=j;k[v>>2]=k[d>>2];k[v+4>>2]=u;k[l>>2]=k[o>>2];k[e>>2]=k[p>>2];k[g>>2]=k[q>>2];k[h>>2]=k[r>>2];k[i>>2]=k[s>>2];k[c>>2]=y;y=n;k[y>>2]=w;k[y+4>>2]=x;k[o>>2]=z;k[p>>2]=A;k[q>>2]=B;k[r>>2]=C;k[s>>2]=D;if(!(Za[k[f>>2]&7](b,a)|0)){D=t+3|0;return D|0}y=k[a>>2]|0;p=a+4|0;x=p;w=k[x>>2]|0;x=k[x+4>>2]|0;s=a+12|0;z=k[s>>2]|0;f=a+16|0;A=k[f>>2]|0;c=a+20|0;B=k[c>>2]|0;u=a+24|0;C=k[u>>2]|0;v=a+28|0;D=k[v>>2]|0;k[a>>2]=k[b>>2];q=j;r=k[q+4>>2]|0;a=p;k[a>>2]=k[q>>2];k[a+4>>2]=r;k[s>>2]=k[l>>2];k[f>>2]=k[e>>2];k[c>>2]=k[g>>2];k[u>>2]=k[h>>2];k[v>>2]=k[i>>2];k[b>>2]=y;y=j;k[y>>2]=w;k[y+4>>2]=x;k[l>>2]=z;k[e>>2]=A;k[g>>2]=B;k[h>>2]=C;k[i>>2]=D;D=t+4|0;return D|0}function Cb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0;x=r;r=r+32|0;v=x;switch(b-a>>5|0){case 2:{d=b+-32|0;if(!(Za[k[c>>2]&7](d,a)|0)){w=1;r=x;return w|0}j=k[a>>2]|0;p=a+4|0;n=p;m=k[n>>2]|0;n=k[n+4>>2]|0;s=a+12|0;o=k[s>>2]|0;u=a+16|0;q=k[u>>2]|0;h=a+20|0;t=k[h>>2]|0;w=a+24|0;v=k[w>>2]|0;i=a+28|0;c=k[i>>2]|0;k[a>>2]=k[d>>2];l=b+-28|0;g=l;a=k[g+4>>2]|0;k[p>>2]=k[g>>2];k[p+4>>2]=a;p=b+-20|0;k[s>>2]=k[p>>2];s=b+-16|0;k[u>>2]=k[s>>2];u=b+-12|0;k[h>>2]=k[u>>2];a=b+-8|0;k[w>>2]=k[a>>2];w=b+-4|0;k[i>>2]=k[w>>2];k[d>>2]=j;b=l;k[b>>2]=m;k[b+4>>2]=n;k[p>>2]=o;k[s>>2]=q;k[u>>2]=t;k[a>>2]=v;k[w>>2]=c;w=1;r=x;return w|0}case 3:{zb(a,a+32|0,b+-32|0,c)|0;w=1;r=x;return w|0}case 4:{Ab(a,a+32|0,a+64|0,b+-32|0,c)|0;w=1;r=x;return w|0}case 5:{Bb(a,a+32|0,a+64|0,a+96|0,b+-32|0,c)|0;w=1;r=x;return w|0}case 1:case 0:{w=1;r=x;return w|0}default:{f=a+64|0;zb(a,a+32|0,f,c)|0;e=a+96|0;if((e|0)==(b|0)){w=1;r=x;return w|0}o=v+4|0;p=v+12|0;q=v+16|0;s=v+20|0;t=v+24|0;u=v+28|0;d=0;while(1){if(Za[k[c>>2]&7](e,f)|0){k[v>>2]=k[e>>2];m=e+4|0;n=k[m+4>>2]|0;g=o;k[g>>2]=k[m>>2];k[g+4>>2]=n;k[p>>2]=k[e+12>>2];k[q>>2]=k[e+16>>2];k[s>>2]=k[e+20>>2];k[t>>2]=k[e+24>>2];k[u>>2]=k[e+28>>2];g=e;while(1){k[g>>2]=k[f>>2];n=f+4|0;j=n;i=k[j+4>>2]|0;h=g+4|0;k[h>>2]=k[j>>2];k[h+4>>2]=i;h=f+12|0;k[g+12>>2]=k[h>>2];i=f+16|0;k[g+16>>2]=k[i>>2];j=f+20|0;k[g+20>>2]=k[j>>2];l=f+24|0;k[g+24>>2]=k[l>>2];m=f+28|0;k[g+28>>2]=k[m>>2];if((f|0)==(a|0))break;g=f+-32|0;if(Za[k[c>>2]&7](v,g)|0){n=f;f=g;g=n}else break}k[f>>2]=k[v>>2];f=o;g=k[f+4>>2]|0;k[n>>2]=k[f>>2];k[n+4>>2]=g;k[h>>2]=k[p>>2];k[i>>2]=k[q>>2];k[j>>2]=k[s>>2];k[l>>2]=k[t>>2];k[m>>2]=k[u>>2];d=d+1|0;if((d|0)==8)break}f=e+32|0;if((f|0)==(b|0)){d=1;w=16;break}else{n=e;e=f;f=n}}if((w|0)==16){r=x;return d|0}w=(e+32|0)==(b|0);r=x;return w|0}}return 0}function Db(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0;m=a+4|0;e=k[m>>2]|0;l=k[a>>2]|0;c=l;i=(e-c|0)/24|0;j=i+1|0;if(j>>>0>178956970)xa(1340,1363,303,1438);n=a+8|0;d=((k[n>>2]|0)-c|0)/24|0;if(d>>>0<89478485){d=d<<1;d=d>>>0<j>>>0?j:d;if(!d){g=0;f=0}else h=5}else{d=178956970;h=5}if((h|0)==5){g=d*24|0;g=(g|0)==0?1:g;f=_d(g)|0;a:do if(!f){while(1){f=k[35]|0;k[35]=f+0;if(!f)break;Xa[f&0]();f=_d(g)|0;if(f)break a}n=ya(4)|0;k[n>>2]=128;La(n|0,8,1)}while(0);g=d}h=f+(i*24|0)|0;d=h;g=f+(g*24|0)|0;k[h>>2]=k[b>>2];k[f+(i*24|0)+4>>2]=k[b+4>>2];k[f+(i*24|0)+8>>2]=k[b+8>>2];k[f+(i*24|0)+12>>2]=k[b+12>>2];k[f+(i*24|0)+16>>2]=k[b+16>>2];k[f+(i*24|0)+20>>2]=k[b+20>>2];f=f+(j*24|0)|0;if((e|0)==(l|0))e=a;else{c=h;do{i=e;e=e+-24|0;k[c+-24>>2]=k[e>>2];k[c+-20>>2]=k[i+-20>>2];k[c+-16>>2]=k[i+-16>>2];k[c+-12>>2]=k[i+-12>>2];i=i+-8|0;j=k[i+4>>2]|0;b=c+-8|0;k[b>>2]=k[i>>2];k[b+4>>2]=j;c=d+-24|0;d=c}while((e|0)!=(l|0));e=a;c=k[a>>2]|0}k[e>>2]=d;k[m>>2]=f;k[n>>2]=g;if(!c)return;$d(c);return}function Eb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;V=r;r=r+160|0;K=V+132|0;y=V+8|0;z=V;A=V+120|0;B=V+108|0;I=V+52|0;H=V+40|0;G=V+28|0;M=V+16|0;S=V+96|0;O=V+84|0;v=V+64|0;k[S>>2]=0;T=S+4|0;k[T>>2]=0;k[S+8>>2]=0;k[O>>2]=0;R=O+4|0;k[R>>2]=0;k[O+8>>2]=0;do if((b|0)!=(c|0)){p=v+4|0;q=v+8|0;s=v+12|0;t=v+16|0;u=S+8|0;f=0;g=0;o=0;n=0;h=0;e=0;a:while(1){l=b+16|0;if((f|0)==(g|0)){m=e-n|0;i=m>>3;j=i+1|0;if(j>>>0>536870911){N=6;break}d=h-n|0;if(d>>3>>>0<268435455){d=d>>2;d=d>>>0<j>>>0?j:d;if(!d){d=0;g=0}else N=9}else{d=536870911;N=9}if((N|0)==9){N=0;f=d<<3;f=(f|0)==0?1:f;e=_d(f)|0;if(!e)do{e=k[35]|0;k[35]=e+0;if(!e){N=12;break a}Xa[e&0]();e=_d(f)|0}while((e|0)==0);g=e}h=g+(d<<3)|0;e=l;d=k[e+4>>2]|0;f=g+(i<<3)|0;k[f>>2]=k[e>>2];k[f+4>>2]=d;f=g+(j<<3)|0;d=g;e=n;fe(g|0,e|0,m|0)|0;if(!n){l=h;j=f}else{$d(e);l=h;j=f}}else{j=l;l=k[j+4>>2]|0;d=f;k[d>>2]=k[j>>2];k[d+4>>2]=l;d=n;l=h;j=e+8|0}e=k[b>>2]|0;k[v>>2]=e;f=k[b+4>>2]|0;k[p>>2]=f;g=k[b+8>>2]|0;k[q>>2]=g;h=k[b+12>>2]|0;k[s>>2]=h;k[t>>2]=o;i=k[T>>2]|0;if(i>>>0<(k[u>>2]|0)>>>0){k[i>>2]=e;k[i+4>>2]=f;k[i+8>>2]=g;k[i+12>>2]=h;k[i+16>>2]=o;k[T>>2]=i+20}else Fb(S,v);b=b+24|0;if((b|0)==(c|0)){N=21;break}f=j;g=l;o=o+1|0;n=d;h=l;e=j}if((N|0)==6)xa(1340,1363,303,1438);else if((N|0)==12){V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}else if((N|0)==21){x=k[T>>2]|0;w=k[S>>2]|0;U=d;break}}else{x=0;w=0;U=0}while(0);n=(x-w|0)/20|0;k[M>>2]=0;J=M+4|0;k[J>>2]=0;k[M+8>>2]=0;g=(x|0)==(w|0);if(!g){if(n>>>0>357913941)xa(1340,1363,303,1438);d=n*12|0;b=_d(d)|0;b:do if(!b){while(1){b=k[35]|0;k[35]=b+0;if(!b)break;Xa[b&0]();b=_d(d)|0;if(b)break b}V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}while(0);k[J>>2]=b;k[M>>2]=b;k[M+8>>2]=b+(n*12|0);e=n;f=b;while(1){k[f+4>>2]=0;k[f+8>>2]=0;k[f>>2]=f+4;d=b+12|0;k[J>>2]=d;b=e+-1|0;if(!b)break;else{e=b;f=d;b=d}}}k[I>>2]=0;E=I+4|0;k[E>>2]=0;k[I+8>>2]=0;k[K>>2]=0;m=K+4|0;k[m>>2]=0;k[K+8>>2]=0;e=n<<1;j=K+8|0;if(g){f=0;g=0;d=0}else{d=n<<4;b=_d(d)|0;c:do if(!b){while(1){b=k[35]|0;k[35]=b+0;if(!b)break;Xa[b&0]();b=_d(d)|0;if(b)break c}V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}while(0);f=b;d=b+(e<<3)|0;k[K>>2]=f;k[m>>2]=f;k[j>>2]=d;f=b;g=b}F=w;D=(F|0)==(x|0);if(D){e=g;b=g;d=f;j=f}else{h=y+4|0;i=z+4|0;b=F;while(1){C=k[b+4>>2]|0;e=b+12|0;f=(C|0)<(k[e>>2]|0)?1:-1;k[y>>2]=C;k[h>>2]=f;if(g>>>0<d>>>0){w=y;C=k[w+4>>2]|0;d=g;k[d>>2]=k[w>>2];k[d+4>>2]=C;d=(k[m>>2]|0)+8|0;k[m>>2]=d}else{dc(K,y);d=k[m>>2]|0}k[z>>2]=k[e>>2];k[i>>2]=0-f;if(d>>>0<(k[j>>2]|0)>>>0){c=z;w=k[c+4>>2]|0;C=d;k[C>>2]=k[c>>2];k[C+4>>2]=w;k[m>>2]=d+8}else dc(K,z);b=b+20|0;if((b|0)==(x|0))break;g=k[m>>2]|0;d=k[j>>2]|0}j=k[K>>2]|0;d=k[m>>2]|0;e=j;b=d}ec(e,b);h=d-j>>3;l=I+8|0;b=k[l>>2]|0;i=k[I>>2]|0;e=i;d=k[E>>2]|0;if(((b-e|0)/12|0)>>>0<h>>>0){f=d-e|0;g=(f|0)/12|0;if(!h)e=0;else{d=h*12|0;d=(d|0)==0?1:d;b=_d(d)|0;d:do if(!b){while(1){b=k[35]|0;k[35]=b+0;if(!b)break;Xa[b&0]();b=_d(d)|0;if(b)break d}V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}while(0);e=b}d=e+(g*12|0)|0;b=e+(h*12|0)|0;C=e+((((f|0)/-12|0)+g|0)*12|0)|0;fe(C|0,i|0,f|0)|0;k[I>>2]=C;k[E>>2]=d;k[l>>2]=b;if(!i)e=j;else{$d(i);e=k[K>>2]|0}}else e=j;k[A>>2]=k[e>>2];k[A+4>>2]=0;k[A+8>>2]=0;if(d>>>0<b>>>0){k[d>>2]=k[A>>2];k[d+4>>2]=k[A+4>>2];k[d+8>>2]=k[A+8>>2];k[E>>2]=(k[E>>2]|0)+12}else fc(I,A);i=k[K>>2]|0;d=k[m>>2]|0;if((i|0)==(d|0))d=i;else{f=B+4|0;g=B+8|0;h=i;e=k[E>>2]|0;do{b=k[h>>2]|0;do if((b|0)!=(k[e+-12>>2]|0)){k[B>>2]=b;k[f>>2]=k[e+-8>>2];k[g>>2]=k[e+-4>>2];if(e>>>0<(k[l>>2]|0)>>>0){k[e>>2]=k[B>>2];k[e+4>>2]=k[B+4>>2];k[e+8>>2]=k[B+8>>2];e=e+12|0;k[E>>2]=e;break}else{fc(I,B);e=k[E>>2]|0;break}}while(0);b=k[h+4>>2]|0;if((b|0)<0){C=e+-4|0;k[C>>2]=(k[C>>2]|0)-b}C=e+-8|0;k[C>>2]=(k[C>>2]|0)+b;h=h+8|0}while((h|0)!=(d|0))}b=i;if(i){if((d|0)!=(i|0))k[m>>2]=d+(~((d+-8-b|0)>>>3)<<3);$d(i)}k[H>>2]=0;C=H+4|0;k[C>>2]=0;k[H+8>>2]=0;d=k[I>>2]|0;Mb(H,d,k[E>>2]|0,n);z=G+4|0;k[z>>2]=0;A=G+8|0;k[A>>2]=0;B=G+4|0;k[G>>2]=B;b=_d(32)|0;e:do if(!b){while(1){b=k[35]|0;k[35]=b+0;if(!b)break;Xa[b&0]();b=_d(32)|0;if(b)break e}V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}while(0);y=B;k[b+16>>2]=k[d>>2];g=b+20|0;k[g>>2]=0;h=b+24|0;k[h>>2]=0;f=b+28|0;k[f>>2]=0;k[b>>2]=0;k[b+4>>2]=0;k[b+8>>2]=y;k[B>>2]=b;d=k[k[G>>2]>>2]|0;if(!d)d=b;else{k[G>>2]=d;d=b}Nb(b,d);k[A>>2]=(k[A>>2]|0)+1;b=k[g>>2]|0;d=b;if(!b)b=f;else{e=k[h>>2]|0;if((e|0)!=(b|0))k[h>>2]=e+(~(((e+-20-d|0)>>>0)/20|0)*20|0);$d(b);k[f>>2]=0;k[h>>2]=0;k[g>>2]=0;b=f}k[g>>2]=0;k[h>>2]=0;k[b>>2]=0;b=k[H>>2]|0;f:do if((b|0)!=(k[C>>2]|0)){g:while(1){d=k[B>>2]|0;do if(d){g=k[b>>2]|0;while(1){e=k[d+16>>2]|0;if((g|0)<(e|0)){e=k[d>>2]|0;if(!e){N=90;break}else d=e}else{if((e|0)>=(g|0)){N=96;break}f=d+4|0;e=k[f>>2]|0;if(!e){N=94;break}else d=e}}if((N|0)==90){k[K>>2]=d;f=d;N=97;break}else if((N|0)==94){k[K>>2]=d;N=97;break}else if((N|0)==96){N=0;k[K>>2]=d;if(!d){f=K;N=97;break}else break}}else{k[K>>2]=B;f=B;d=y;N=97}while(0);if((N|0)==97){N=0;e=_d(32)|0;if(!e)do{e=k[35]|0;k[35]=e+0;if(!e)break g;Xa[e&0]();e=_d(32)|0}while((e|0)==0);k[e+16>>2]=k[b>>2];k[e+20>>2]=0;k[e+24>>2]=0;k[e+28>>2]=0;k[e>>2]=0;k[e+4>>2]=0;k[e+8>>2]=d;k[f>>2]=e;d=k[k[G>>2]>>2]|0;if(!d)d=e;else{k[G>>2]=d;d=k[f>>2]|0}Nb(k[z>>2]|0,d);k[A>>2]=(k[A>>2]|0)+1;d=e}i=d+20|0;e=k[i>>2]|0;f=e;h=d+24|0;if(!e)d=d+28|0;else{g=k[h>>2]|0;if((g|0)!=(e|0))k[h>>2]=g+(~(((g+-20-f|0)>>>0)/20|0)*20|0);$d(e);d=d+28|0;k[d>>2]=0;k[h>>2]=0;k[i>>2]=0}k[i>>2]=0;k[h>>2]=0;k[d>>2]=0;b=b+4|0;if((b|0)==(k[C>>2]|0))break f}V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}while(0);h:do if(!D){c=F;i:while(1){v=c+4|0;h=k[v>>2]|0;w=c+12|0;i=k[w>>2]|0;e=k[B>>2]|0;j=(e|0)==0;j:do if(j)d=B;else{g=(i|0)<(h|0)?i:h;d=B;f=e;while(1){b=f;while(1){if((k[b+16>>2]|0)>=(g|0))break;b=k[b+4>>2]|0;if(!b)break j}f=k[b>>2]|0;if(!f){d=b;break}else d=b}}while(0);if((d|0)!=(k[G>>2]|0)){b=k[d>>2]|0;if(!b)while(1){b=k[d+8>>2]|0;if((k[b>>2]|0)==(d|0))d=b;else{d=b;break}}else{d=b;while(1){b=k[d+4>>2]|0;if(!b)break;else d=b}}}k:do if(j)f=B;else{g=(h|0)<(i|0)?i:h;f=B;while(1){b=e;while(1){if((g|0)<(k[b+16>>2]|0))break;b=k[b+4>>2]|0;if(!b)break k}e=k[b>>2]|0;if(!e){f=b;break}else f=b}}while(0);if((d|0)!=(f|0)){t=c+8|0;u=c+16|0;while(1){o=d+24|0;l=k[o>>2]|0;p=d+28|0;do if((l|0)==(k[p>>2]|0)){q=d+20|0;s=k[q>>2]|0;m=s;n=(l-m|0)/20|0;h=n+1|0;if(h>>>0>214748364){N=135;break i}if(n>>>0<107374182){b=n<<1;b=b>>>0<h>>>0?h:b;if(!b){g=0;e=0}else N=138}else{b=214748364;N=138}if((N|0)==138){N=0;g=b*20|0;g=(g|0)==0?1:g;e=_d(g)|0;if(!e)do{e=k[35]|0;k[35]=e+0;if(!e){N=141;break i}Xa[e&0]();e=_d(g)|0}while((e|0)==0);g=b}b=e+(n*20|0)|0;j=e+(g*20|0)|0;k[b>>2]=k[c>>2];k[e+(n*20|0)+4>>2]=k[v>>2];k[e+(n*20|0)+8>>2]=k[t>>2];k[e+(n*20|0)+12>>2]=k[w>>2];k[e+(n*20|0)+16>>2]=k[u>>2];i=e+(h*20|0)|0;if((l|0)!=(s|0)){h=l+-20|0;g=l;while(1){l=g;g=g+-20|0;k[b+-20>>2]=k[g>>2];k[b+-16>>2]=k[l+-16>>2];k[b+-12>>2]=k[l+-12>>2];k[b+-8>>2]=k[l+-8>>2];k[b+-4>>2]=k[l+-4>>2];if((g|0)==(s|0))break;else b=b+-20|0}b=e+((n+~(((h-m|0)>>>0)/20|0)|0)*20|0)|0}k[q>>2]=b;k[o>>2]=i;k[p>>2]=j;if(!s)break;$d(s)}else{k[l>>2]=k[c>>2];k[l+4>>2]=k[v>>2];k[l+8>>2]=k[t>>2];k[l+12>>2]=k[w>>2];k[l+16>>2]=k[u>>2];k[o>>2]=l+20}while(0);b=k[d+4>>2]|0;if(!b)while(1){b=k[d+8>>2]|0;if((k[b>>2]|0)==(d|0))break;else d=b}else while(1){d=k[b>>2]|0;if(!d)break;else b=d}if((b|0)==(f|0))break;else d=b}}c=c+20|0;if((c|0)==(x|0))break h}if((N|0)==135)xa(1340,1363,303,1438);else if((N|0)==141){V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}}while(0);h=k[I>>2]|0;b=k[B>>2]|0;do if(b){g=k[h>>2]|0;f=b;while(1){d=k[f+16>>2]|0;if((g|0)<(d|0)){d=k[f>>2]|0;if(!d){N=159;break}}else{if((d|0)>=(g|0)){N=165;break}e=f+4|0;d=k[e>>2]|0;if(!d){N=163;break}}f=d}if((N|0)==159){k[K>>2]=f;e=f;N=166;break}else if((N|0)==163){k[K>>2]=f;N=166;break}else if((N|0)==165){k[K>>2]=f;if(!f){e=K;N=166;break}else{d=f;break}}}else{k[K>>2]=B;e=B;f=y;N=166}while(0);if((N|0)==166){b=_d(32)|0;l:do if(!b){while(1){b=k[35]|0;k[35]=b+0;if(!b)break;Xa[b&0]();b=_d(32)|0;if(b){d=b;break l}}V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}else d=b;while(0);k[d+16>>2]=k[h>>2];k[d+20>>2]=0;k[d+24>>2]=0;k[d+28>>2]=0;k[d>>2]=0;k[d+4>>2]=0;k[d+8>>2]=f;k[e>>2]=d;b=k[k[G>>2]>>2]|0;if(!b)b=d;else{k[G>>2]=b;b=k[e>>2]|0}Nb(k[z>>2]|0,b);k[A>>2]=(k[A>>2]|0)+1;b=k[B>>2]|0;h=k[I>>2]|0}g=k[d+20>>2]|0;do if(b){f=k[h>>2]|0;while(1){d=k[b+16>>2]|0;if((f|0)<(d|0)){d=k[b>>2]|0;if(!d){N=177;break}else b=d}else{if((d|0)>=(f|0)){N=183;break}e=b+4|0;d=k[e>>2]|0;if(!d){N=181;break}else b=d}}if((N|0)==177){k[K>>2]=b;e=b;d=b;N=184;break}else if((N|0)==181){k[K>>2]=b;d=b;N=184;break}else if((N|0)==183){k[K>>2]=b;if(!b){e=K;d=b;N=184;break}else break}}else{k[K>>2]=B;e=B;d=y;N=184}while(0);if((N|0)==184){b=_d(32)|0;m:do if(!b){while(1){b=k[35]|0;k[35]=b+0;if(!b)break;Xa[b&0]();b=_d(32)|0;if(b)break m}V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}while(0);k[b+16>>2]=k[h>>2];k[b+20>>2]=0;k[b+24>>2]=0;k[b+28>>2]=0;k[b>>2]=0;k[b+4>>2]=0;k[b+8>>2]=d;k[e>>2]=b;d=k[k[G>>2]>>2]|0;if(!d)d=b;else{k[G>>2]=d;d=k[e>>2]|0}Nb(k[z>>2]|0,d);k[A>>2]=(k[A>>2]|0)+1}Pb(M,g,k[b+24>>2]|0,-2147483648);b=k[H>>2]|0;n:do if((b|0)!=(k[C>>2]|0)){o:while(1){g=k[B>>2]|0;do if(g){h=k[b>>2]|0;f=g;while(1){d=k[f+16>>2]|0;if((h|0)<(d|0)){d=k[f>>2]|0;if(!d){N=197;break}}else{if((d|0)>=(h|0)){N=203;break}e=f+4|0;d=k[e>>2]|0;if(!d){N=201;break}}f=d}if((N|0)==197){k[K>>2]=f;g=f;N=204;break}else if((N|0)==201){k[K>>2]=f;g=e;N=204;break}else if((N|0)==203){N=0;k[K>>2]=f;if(!f){g=K;N=204;break}else{d=f;break}}}else{k[K>>2]=B;g=B;f=y;N=204}while(0);if((N|0)==204){d=_d(32)|0;if(!d)while(1){d=k[35]|0;k[35]=d+0;if(!d){N=207;break o}Xa[d&0]();d=_d(32)|0;if(d){e=d;break}}else e=d;k[e+16>>2]=k[b>>2];k[e+20>>2]=0;k[e+24>>2]=0;k[e+28>>2]=0;k[e>>2]=0;k[e+4>>2]=0;k[e+8>>2]=f;k[g>>2]=e;d=k[k[G>>2]>>2]|0;if(!d)d=e;else{k[G>>2]=d;d=k[g>>2]|0}Nb(k[z>>2]|0,d);k[A>>2]=(k[A>>2]|0)+1;g=k[B>>2]|0;d=e}h=k[d+20>>2]|0;do if(g){f=k[b>>2]|0;while(1){d=k[g+16>>2]|0;if((f|0)<(d|0)){d=k[g>>2]|0;if(!d){N=215;break}}else{if((d|0)>=(f|0)){N=221;break}e=g+4|0;d=k[e>>2]|0;if(!d){N=219;break}}g=d}if((N|0)==215){k[K>>2]=g;f=g;N=222;break}else if((N|0)==219){k[K>>2]=g;f=e;N=222;break}else if((N|0)==221){N=0;k[K>>2]=g;if(!g){f=K;N=222;break}else{d=g;break}}}else{k[K>>2]=B;f=B;g=y;N=222}while(0);if((N|0)==222){N=0;d=_d(32)|0;if(!d)do{d=k[35]|0;k[35]=d+0;if(!d){N=225;break o}Xa[d&0]();d=_d(32)|0}while((d|0)==0);k[d+16>>2]=k[b>>2];k[d+20>>2]=0;k[d+24>>2]=0;k[d+28>>2]=0;k[d>>2]=0;k[d+4>>2]=0;k[d+8>>2]=g;k[f>>2]=d;e=k[k[G>>2]>>2]|0;if(!e)e=d;else{k[G>>2]=e;e=k[f>>2]|0}Nb(k[z>>2]|0,e);k[A>>2]=(k[A>>2]|0)+1}Pb(M,h,k[d+24>>2]|0,k[b>>2]|0);b=b+4|0;if((b|0)==(k[C>>2]|0))break n}if((N|0)==207){V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}else if((N|0)==225){V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}}while(0);Ob(k[B>>2]|0);b=k[H>>2]|0;d=b;if(b){e=k[C>>2]|0;if((e|0)!=(b|0))k[C>>2]=e+(~((e+-4-d|0)>>>2)<<2);$d(b)}b=k[I>>2]|0;d=b;if(b){e=k[E>>2]|0;if((e|0)!=(b|0))k[E>>2]=e+(~(((e+-12-d|0)>>>0)/12|0)*12|0);$d(b)}p:do if(!D){c=K+4|0;w=K+8|0;y=K+12|0;z=K+16|0;A=O+8|0;B=K+4|0;C=K+8|0;D=K+12|0;E=K+16|0;u=F;q:while(1){v=k[u+16>>2]|0;n=k[M>>2]|0;m=n+(v*12|0)|0;b=k[u>>2]|0;d=k[u+8>>2]|0;do if((b|0)==(d|0))N=320;else{H=k[u+4>>2]|0;l=b+1|0;h=k[u+12>>2]|0;H=be(h|0,((h|0)<0)<<31>>31|0,H|0,((H|0)<0)<<31>>31|0)|0;h=L;e=((b|0)<0)<<31>>31;l=be(l|0,((l|0)<0)<<31>>31|0,b|0,e|0)|0;g=L;e=be(d|0,((d|0)<0)<<31>>31|0,b|0,e|0)|0;i=L;I=(i|0)<0;b=be(0,0,H|0,h|0)|0;d=L;f=be(0,0,e|0,i|0)|0;j=L;b=I?b:H;d=I?d:h;e=(g|0)<0;f=be(0,0,l|0,g|0)|0;g=e?L:g;h=(d|0)<0;i=((I?j:i)|0)<0?-1:1;j=ha(h?-1:1,(g|0)<0?-1:1)|0;if((j|0)>=(i|0)?(I=be(0,0,b|0,d|0)|0,I=ne((h?I:b)|0,(h?L:d)|0,(e?f:l)|0,g|0)|0,!(((I|0)!=0|(L|0)!=0)&((i|0)>=(j|0)&(j|0)==-1))):0){N=320;break}e=k[n+(v*12|0)+8>>2]|0;if(!e){s=0;t=0;i=0}else{d=e<<3;d=(d|0)==0?1:d;b=_d(d)|0;if(!b)do{b=k[35]|0;k[35]=b+0;if(!b){N=247;break q}Xa[b&0]();b=_d(d)|0}while((b|0)==0);s=b;t=b;i=b+(e<<3)|0}q=s;h=k[m>>2]|0;m=n+(v*12|0)+4|0;l=m;n=t;o=q-t>>3;f=h;do if((f|0)==(m|0)){j=t;b=t}else{e=h;d=e;g=0;while(1){j=g+1|0;b=k[d+4>>2]|0;if(!b)while(1){b=k[d+8>>2]|0;if((k[b>>2]|0)==(d|0))break;else d=b}else while(1){d=k[b>>2]|0;if(!d)break;else b=d}if((b|0)==(m|0))break;else{d=b;g=j}}if((g|0)<=-1){j=t;b=t;break}p=t;if((g|0)>=(i-t>>3|0)){d=(t-t>>3)+j|0;if(d>>>0>536870911){N=290;break q}b=i-t|0;if(b>>3>>>0<268435455){b=b>>2;b=b>>>0<d>>>0?d:b;if(!b)g=0;else N=293}else{b=536870911;N=293}if((N|0)==293){N=0;d=b<<3;d=(d|0)==0?1:d;b=_d(d)|0;if(!b)do{b=k[35]|0;k[35]=b+0;if(!b){N=296;break q}Xa[b&0]();b=_d(d)|0}while((b|0)==0);g=b}d=g+(o<<3)|0;h=d;while(1){k[h>>2]=k[f+16>>2];k[h+4>>2]=k[f+20>>2];b=h+8|0;f=k[e+4>>2]|0;if(!f)while(1){f=k[e+8>>2]|0;if((k[f>>2]|0)==(e|0)){e=f;break}else e=f}else{e=f;while(1){f=k[e>>2]|0;if(!f)break;else e=f}}if((e|0)==(m|0))break;else{f=e;h=b}}if((n|0)!=(s|0)){f=s+-8|0;e=s;while(1){I=e;e=e+-8|0;k[d+-8>>2]=k[e>>2];k[d+-4>>2]=k[I+-4>>2];if((e|0)==(n|0))break;else d=d+-8|0}d=g+(o+~((f-t|0)>>>3)<<3)|0}if((p|0)!=(s|0)){g=p+-8|0;e=s;f=h;while(1){k[f+8>>2]=k[e>>2];k[f+12>>2]=k[e+4>>2];e=e+8|0;if((e|0)==(p|0))break;else{f=b;b=b+8|0}}b=h+(((g-q|0)>>>3)+2<<3)|0}if(!t){j=d;break}$d(t);j=d;break}i=t-q|0;b=i>>3;if((g|0)>=(b|0)){do if((i|0)>-8){if((i|0)>0){d=e;g=b}else{l=h;break}while(1){b=k[d+4>>2]|0;if(!b)while(1){b=k[d+8>>2]|0;if((k[b>>2]|0)==(d|0))break;else d=b}else while(1){d=k[b>>2]|0;if(!d)break;else b=d}if((g|0)>1){d=b;g=g+-1|0}else break}l=b}else{d=e;g=b;while(1){b=k[d>>2]|0;if(!b)while(1){b=k[d+8>>2]|0;if((k[b>>2]|0)==(d|0))d=b;else break}else while(1){d=k[b+4>>2]|0;if(!d)break;else b=d}if((g|0)<-1){d=b;g=g+1|0}else break}l=b}while(0);b=l;if((b|0)==(m|0)){d=p;b=t}else{g=p;d=l;while(1){k[g>>2]=k[b+16>>2];k[g+4>>2]=k[b+20>>2];g=g+8|0;b=k[d+4>>2]|0;if(!b){b=d;while(1){d=k[b+8>>2]|0;if((k[d>>2]|0)==(b|0))break;else b=d}}else while(1){d=k[b>>2]|0;if(!d){d=b;break}else b=d}if((d|0)==(m|0))break;else b=d}d=g;b=g}if((i|0)<=0){j=t;break}}else{d=p;b=t}j=d-(n+(j+o<<3))>>3;g=s+(j<<3)|0;if(g>>>0<p>>>0){i=p+(0-j<<3)+~q|0;b=d;h=g;while(1){k[b>>2]=k[h>>2];k[b+4>>2]=k[h+4>>2];h=h+8|0;if(h>>>0>=p>>>0)break;else b=b+8|0}b=d+((i>>>3)+1<<3)|0}if(j)do{I=d;d=d+-8|0;H=g;g=g+-8|0;k[d>>2]=k[g>>2];k[I+-4>>2]=k[H+-4>>2]}while((g|0)!=(s|0));h=l;if((f|0)==(h|0)){j=t;break}else g=s;while(1){k[g>>2]=k[f+16>>2];k[g+4>>2]=k[f+20>>2];d=k[e+4>>2]|0;if(!d)while(1){d=k[e+8>>2]|0;if((k[d>>2]|0)==(e|0))break;else e=d}else while(1){e=k[d>>2]|0;if(!e)break;else d=e}if((d|0)==(h|0)){j=t;break}else{g=g+8|0;f=d;e=d}}}while(0);e=j;Hb(e,b);d=e+8|0;if((d|0)!=(b|0)){i=d;while(1){g=k[e>>2]|0;h=k[e+4>>2]|0;f=k[e+8>>2]|0;d=k[e+12>>2]|0;k[K>>2]=g;k[B>>2]=h;k[C>>2]=f;k[D>>2]=d;k[E>>2]=v;e=k[R>>2]|0;if(e>>>0<(k[A>>2]|0)>>>0){k[e>>2]=g;k[e+4>>2]=h;k[e+8>>2]=f;k[e+12>>2]=d;k[e+16>>2]=v;k[R>>2]=e+20}else Fb(O,K);d=i+8|0;if((d|0)==(b|0))break;else{e=i;i=d}}}if(!j)break;$d(j)}while(0);if((N|0)==320){N=0;d=k[m>>2]|0;j=n+(v*12|0)+4|0;e=d;b=k[d+4>>2]|0;if(!b)while(1){b=k[d+8>>2]|0;if((k[b>>2]|0)==(d|0))break;else d=b}else while(1){d=k[b>>2]|0;if(!d)break;else b=d}if((b|0)!=(j|0)){d=b;i=e;while(1){e=i;i=d;b=k[e+16>>2]|0;e=k[e+20>>2]|0;f=k[d+16>>2]|0;g=k[d+20>>2]|0;k[K>>2]=b;k[c>>2]=e;k[w>>2]=f;k[y>>2]=g;k[z>>2]=v;h=k[R>>2]|0;if(h>>>0<(k[A>>2]|0)>>>0){k[h>>2]=b;k[h+4>>2]=e;k[h+8>>2]=f;k[h+12>>2]=g;k[h+16>>2]=v;k[R>>2]=h+20}else Fb(O,K);b=k[d+4>>2]|0;if(!b)while(1){b=k[d+8>>2]|0;if((k[b>>2]|0)==(d|0))break;else d=b}else while(1){d=k[b>>2]|0;if(!d)break;else b=d}if((b|0)==(j|0))break;else d=b}}}u=u+20|0;if((u|0)==(x|0))break p}if((N|0)==247){V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}else if((N|0)==290)xa(1340,1363,303,1438);else if((N|0)==296){V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}}while(0);d=k[M>>2]|0;if(d){b=k[J>>2]|0;if((b|0)!=(d|0)){do{Gb(k[b+-8>>2]|0);b=b+-12|0}while((b|0)!=(d|0));k[J>>2]=d}$d(d)}b=k[R>>2]|0;d=k[O>>2]|0;r:do if((b|0)!=(d|0)){v=a+4|0;c=a+8|0;w=U;e=k[v>>2]|0;u=0;s:while(1){m=k[d+(u*20|0)+16>>2]|0;p=k[d+(u*20|0)>>2]|0;q=k[d+(u*20|0)+4>>2]|0;s=k[d+(u*20|0)+8>>2]|0;j=k[d+(u*20|0)+12>>2]|0;l=k[w+(m<<3)>>2]|0;m=k[w+(m<<3)+4>>2]|0;d=k[c>>2]|0;do if(e>>>0<d>>>0){k[e>>2]=p;k[e+4>>2]=q;k[e+8>>2]=s;k[e+12>>2]=j;e=e+16|0;k[e>>2]=l;k[e+4>>2]=m;e=(k[v>>2]|0)+24|0;k[v>>2]=e}else{t=k[a>>2]|0;b=t;n=(e-b|0)/24|0;o=n+1|0;if(o>>>0>178956970){N=344;break s}d=(d-b|0)/24|0;if(d>>>0<89478485){d=d<<1;d=d>>>0<o>>>0?o:d;if(!d){g=0;f=0}else N=347}else{d=178956970;N=347}if((N|0)==347){N=0;g=d*24|0;g=(g|0)==0?1:g;f=_d(g)|0;if(!f)do{f=k[35]|0;k[35]=f+0;if(!f){N=350;break s}Xa[f&0]();f=_d(g)|0}while((f|0)==0);g=d}h=f+(n*24|0)|0;d=h;i=f+(g*24|0)|0;k[h>>2]=p;k[f+(n*24|0)+4>>2]=q;k[f+(n*24|0)+8>>2]=s;k[f+(n*24|0)+12>>2]=j;g=f+(n*24|0)+16|0;k[g>>2]=l;k[g+4>>2]=m;f=f+(o*24|0)|0;g=f;if((e|0)!=(t|0)){b=h;do{J=e;e=e+-24|0;k[b+-24>>2]=k[e>>2];k[b+-20>>2]=k[J+-20>>2];k[b+-16>>2]=k[J+-16>>2];k[b+-12>>2]=k[J+-12>>2];J=J+-8|0;K=k[J+4>>2]|0;M=b+-8|0;k[M>>2]=k[J>>2];k[M+4>>2]=K;b=d+-24|0;d=b}while((e|0)!=(t|0));b=k[a>>2]|0}k[a>>2]=d;k[v>>2]=g;k[c>>2]=i;if(!b){e=f;break}$d(b);e=k[v>>2]|0}while(0);m=e+-24|0;n=k[m>>2]|0;o=e+-16|0;p=k[o>>2]|0;do if((n|0)<(p|0))f=1;else{if((n|0)==(p|0)?(k[e+-20>>2]|0)<(k[e+-12>>2]|0):0){f=1;break}f=0}while(0);d=k[O>>2]|0;h=k[d+(u*20|0)+16>>2]|0;i=k[S>>2]|0;j=i+(h*20|0)|0;g=k[j>>2]|0;l=i+(h*20|0)+8|0;b=k[l>>2]|0;do if((g|0)>=(b|0)){if((g|0)==(b|0)?(k[i+(h*20|0)+4>>2]|0)<(k[i+(h*20|0)+12>>2]|0):0){N=364;break}if(f)N=366}else N=364;while(0);if((N|0)==364){N=0;if(!f)N=366}if((N|0)==366){N=0;g=e+-4|0;k[g>>2]=0-(k[g>>2]|0);g=k[j>>2]|0;b=k[l>>2]|0}f=(n|0)==(p|0);if((g|0)!=(b|0)&f){M=e+-4|0;k[M>>2]=0-(k[M>>2]|0)}do if((p|0)>=(n|0)){if(!f)break;b=e+-12|0;h=k[b>>2]|0;g=e+-20|0;f=k[g>>2]|0;if((h|0)<(f|0))N=373}else{f=e+-20|0;h=e+-12|0;b=h;g=f;h=k[h>>2]|0;f=k[f>>2]|0;N=373}while(0);if((N|0)==373){N=0;k[m>>2]=p;k[g>>2]=h;k[o>>2]=n;k[b>>2]=f}u=u+1|0;b=k[R>>2]|0;if(u>>>0>=((b-d|0)/20|0)>>>0){P=d;Q=b;break r}}if((N|0)==344)xa(1340,1363,303,1438);else if((N|0)==350){V=ya(4)|0;k[V>>2]=128;La(V|0,8,1)}}else{P=b;Q=b}while(0);b=P;if(P){if((Q|0)!=(P|0))k[R>>2]=Q+(~(((Q+-20-b|0)>>>0)/20|0)*20|0);$d(P)}b=k[S>>2]|0;d=b;if(b){e=k[T>>2]|0;if((e|0)!=(b|0))k[T>>2]=e+(~(((e+-20-d|0)>>>0)/20|0)*20|0);$d(b)}if(!U){r=V;return}$d(U);r=V;return}function Fb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;m=a+4|0;e=k[m>>2]|0;n=k[a>>2]|0;j=n;l=(e-j|0)/20|0;i=l+1|0;if(i>>>0>214748364)xa(1340,1363,303,1438);o=a+8|0;c=((k[o>>2]|0)-j|0)/20|0;if(c>>>0<107374182){c=c<<1;c=c>>>0<i>>>0?i:c;if(!c){f=0;d=0}else g=5}else{c=214748364;g=5}if((g|0)==5){f=c*20|0;f=(f|0)==0?1:f;d=_d(f)|0;a:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(f)|0;if(d)break a}a=ya(4)|0;k[a>>2]=128;La(a|0,8,1)}while(0);f=c}c=d+(l*20|0)|0;h=d+(f*20|0)|0;k[c>>2]=k[b>>2];k[d+(l*20|0)+4>>2]=k[b+4>>2];k[d+(l*20|0)+8>>2]=k[b+8>>2];k[d+(l*20|0)+12>>2]=k[b+12>>2];k[d+(l*20|0)+16>>2]=k[b+16>>2];g=d+(i*20|0)|0;if((e|0)!=(n|0)){f=e+-20|0;while(1){b=e;e=e+-20|0;k[c+-20>>2]=k[e>>2];k[c+-16>>2]=k[b+-16>>2];k[c+-12>>2]=k[b+-12>>2];k[c+-8>>2]=k[b+-8>>2];k[c+-4>>2]=k[b+-4>>2];if((e|0)==(n|0))break;else c=c+-20|0}c=d+((l+~(((f-j|0)>>>0)/20|0)|0)*20|0)|0}k[a>>2]=c;k[m>>2]=g;k[o>>2]=h;if(!n)return;$d(n);return}function Gb(a){a=a|0;if(!a)return;else{Gb(k[a>>2]|0);Gb(k[a+4>>2]|0);$d(a);return}}function Hb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;t=b;a:while(1){m=t;n=t+-8|0;o=t+-16|0;s=t+-4|0;y=a;b:while(1){l=y;a=m-l|0;b=a>>3;switch(b|0){case 2:{x=4;break a}case 3:{x=9;break a}case 4:{x=10;break a}case 5:{x=11;break a}case 1:case 0:{x=88;break a}default:{}}if((a|0)<56){x=13;break a}c=(b|0)/2|0;g=y+(c<<3)|0;if((a|0)>7992){a=(b|0)/4|0;a=Kb(y,y+(a<<3)|0,g,y+(a+c<<3)|0,n)|0}else a=Ib(y,g,n)|0;h=k[y>>2]|0;f=k[g>>2]|0;c:do if((h|0)<(f|0))c=n;else{if((h|0)==(f|0)?(k[y+4>>2]|0)>(k[y+(c<<3)+4>>2]|0):0){c=n;break}d:do if((y|0)!=(o|0)){e=y+(c<<3)+4|0;c=o;d=n;while(1){b=k[c>>2]|0;if((b|0)<(f|0)){x=58;break}if((b|0)==(f|0)?(p=d+-4|0,(k[p>>2]|0)>(k[e>>2]|0)):0){d=p;b=f;break}b=c+-8|0;if((y|0)==(b|0))break d;else{d=c;c=b}}if((x|0)==58){x=0;d=d+-4|0}i=y+4|0;j=k[i>>2]|0;k[y>>2]=b;k[i>>2]=k[d>>2];k[c>>2]=h;k[d>>2]=j;a=a+1|0;break c}while(0);a=y+8|0;f=k[n>>2]|0;do if((h|0)>=(f|0)){if((h|0)==(f|0)?(k[y+4>>2]|0)>(k[s>>2]|0):0)break;if((a|0)==(n|0)){x=88;break a}c=y+4|0;e=y;while(1){d=e+8|0;b=k[d>>2]|0;if((h|0)<(b|0)){x=40;break}if((h|0)==(b|0)?(q=e+12|0,r=k[q>>2]|0,(k[c>>2]|0)>(r|0)):0){c=q;a=h;b=r;break}b=a+8|0;if((b|0)==(n|0)){x=88;break a}else{e=a;a=b}}if((x|0)==40){x=0;l=e+12|0;c=l;a=b;b=k[l>>2]|0}k[d>>2]=f;k[c>>2]=k[s>>2];k[n>>2]=a;k[s>>2]=b;a=e+16|0}while(0);if((a|0)==(n|0)){x=88;break a}h=y+4|0;c=n;while(1){g=k[y>>2]|0;b=k[a>>2]|0;e:do if((g|0)<(b|0)){f=a;e=a}else while(1){if((g|0)==(b|0)?(k[h>>2]|0)>(k[a+4>>2]|0):0){f=a;b=g;e=a;break e}a=a+8|0;b=k[a>>2]|0;if((g|0)<(b|0)){f=a;e=a;break}}while(0);while(1){d=c+-8|0;a=k[d>>2]|0;if((g|0)<(a|0)){c=d;continue}if((g|0)!=(a|0))break;if((k[h>>2]|0)>(k[c+-4>>2]|0))c=d;else{a=g;break}}if(e>>>0>=d>>>0){y=e;continue b}j=e+4|0;l=k[j>>2]|0;k[f>>2]=a;a=c+-4|0;k[j>>2]=k[a>>2];k[d>>2]=b;k[a>>2]=l;a=e+8|0;c=d}}while(0);b=y+8|0;f:do if(b>>>0<c>>>0)while(1){i=k[g>>2]|0;f=g+4|0;j=b;while(1){b=k[j>>2]|0;if((b|0)>=(i|0)){if((b|0)!=(i|0))break;if((k[j+4>>2]|0)<=(k[f>>2]|0)){b=i;break}}j=j+8|0}d=c+-8|0;e=k[d>>2]|0;g:do if((e|0)<(i|0)){h=d;f=d}else while(1){if((e|0)==(i|0)?(k[c+-4>>2]|0)>(k[f>>2]|0):0){h=d;f=d;e=i;break g}c=d+-8|0;e=k[c>>2]|0;if((e|0)<(i|0)){h=c;f=c;c=d;break}else{h=d;d=c;c=h}}while(0);if(j>>>0>h>>>0){h=j;break f}d=j+4|0;i=k[d>>2]|0;k[j>>2]=e;c=c+-4|0;k[d>>2]=k[c>>2];k[f>>2]=b;k[c>>2]=i;b=j+8|0;c=h;g=(g|0)==(j|0)?h:g;a=a+1|0}else h=b;while(0);do if((h|0)!=(g|0)){e=k[g>>2]|0;f=k[h>>2]|0;if((e|0)>=(f|0)){if((e|0)!=(f|0))break;b=g+4|0;d=h+4|0;c=k[d>>2]|0;if((k[b>>2]|0)<=(c|0))break}else{c=h+4|0;b=g+4|0;d=c;c=k[c>>2]|0}k[h>>2]=e;k[d>>2]=k[b>>2];k[g>>2]=f;k[b>>2]=c;a=a+1|0}while(0);if(!a){a=Lb(y,h)|0;b=h+8|0;if(Lb(b,t)|0){x=83;break}if(a){y=b;continue}}j=h;if((j-l|0)>=(m-j|0)){x=87;break}Hb(y,h);y=h+8|0}if((x|0)==83){x=0;if(a){x=88;break}else{a=y;t=h;continue}}else if((x|0)==87){x=0;Hb(h+8|0,t);a=y;t=h;continue}}if((x|0)==4){c=t+-8|0;d=k[c>>2]|0;e=k[y>>2]|0;if((d|0)>=(e|0)){if((d|0)!=(e|0))return;a=y+4|0;b=k[a>>2]|0;if((k[s>>2]|0)<=(b|0))return}else{b=y+4|0;a=b;b=k[b>>2]|0}k[y>>2]=d;k[a>>2]=k[s>>2];k[c>>2]=e;k[s>>2]=b;return}else if((x|0)==9){Ib(y,y+8|0,n)|0;return}else if((x|0)==10){Jb(y,y+8|0,y+16|0,n)|0;return}else if((x|0)==11){Kb(y,y+8|0,y+16|0,y+24|0,n)|0;return}else if((x|0)==13){b=y+16|0;Ib(y,y+8|0,b)|0;a=y+24|0;if((a|0)==(t|0))return;while(1){h=k[a>>2]|0;e=k[b>>2]|0;if((h|0)>=(e|0)){if((h|0)==(e|0)?(u=a+4|0,v=k[u>>2]|0,w=b+4|0,(v|0)>(k[w>>2]|0)):0){d=u;c=w;i=v;x=18}}else{i=a+4|0;d=i;c=b+4|0;i=k[i>>2]|0;x=18}if((x|0)==18){x=0;k[a>>2]=e;k[d>>2]=k[c>>2];h:do if((b|0)!=(y|0)){f=b;while(1){b=f+-8|0;g=k[b>>2]|0;if((h|0)>=(g|0)){if((h|0)!=(g|0)){b=f;break h}e=f+-4|0;d=k[e>>2]|0;if((i|0)>(d|0))c=e;else{b=f;break h}}else{d=f+-4|0;c=d;d=k[d>>2]|0}k[f>>2]=g;k[f+4>>2]=d;if((b|0)==(y|0))break;else f=b}}while(0);k[b>>2]=h;k[c>>2]=i}b=a+8|0;if((b|0)==(t|0))break;else{s=a;a=b;b=s}}return}else if((x|0)==88)return}function Ib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;f=k[b>>2]|0;i=k[a>>2]|0;do if((f|0)<(i|0))d=1;else{if((f|0)==(i|0)?(k[b+4>>2]|0)>(k[a+4>>2]|0):0){d=1;break}d=0}while(0);g=k[c>>2]|0;do if((g|0)<(f|0))e=1;else{if((g|0)==(f|0)?(k[c+4>>2]|0)>(k[b+4>>2]|0):0){e=1;break}e=0}while(0);if(!d){if(!e){b=0;return b|0}h=b+4|0;i=k[h>>2]|0;k[b>>2]=g;g=c+4|0;k[h>>2]=k[g>>2];k[c>>2]=f;k[g>>2]=i;f=k[b>>2]|0;g=k[a>>2]|0;if((f|0)>=(g|0)){if((f|0)!=(g|0)){b=1;return b|0}d=a+4|0;e=k[d>>2]|0;if((k[h>>2]|0)<=(e|0)){b=1;return b|0}}else{e=a+4|0;d=e;e=k[e>>2]|0}k[a>>2]=f;k[d>>2]=k[h>>2];k[b>>2]=g;k[h>>2]=e;b=2;return b|0}d=a+4|0;h=k[d>>2]|0;if(e){k[a>>2]=g;b=c+4|0;k[d>>2]=k[b>>2];k[c>>2]=i;k[b>>2]=h;b=1;return b|0}k[a>>2]=f;f=b+4|0;k[d>>2]=k[f>>2];k[b>>2]=i;k[f>>2]=h;e=k[c>>2]|0;if((e|0)>=(i|0)){if((e|0)!=(i|0)){b=1;return b|0}d=c+4|0;if((k[d>>2]|0)<=(h|0)){b=1;return b|0}}else d=c+4|0;k[b>>2]=e;k[f>>2]=k[d>>2];k[c>>2]=i;k[d>>2]=h;b=2;return b|0}function Jb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,l=0;l=Ib(a,b,c)|0;h=k[d>>2]|0;i=k[c>>2]|0;if((h|0)>=(i|0)){if((h|0)!=(i|0)){b=l;return b|0}f=d+4|0;g=c+4|0;e=k[g>>2]|0;if((k[f>>2]|0)>(e|0))j=g;else{b=l;return b|0}}else{e=c+4|0;f=d+4|0;j=e;e=k[e>>2]|0}k[c>>2]=h;k[j>>2]=k[f>>2];k[d>>2]=i;k[f>>2]=e;f=l+1|0;h=k[c>>2]|0;i=k[b>>2]|0;if((h|0)>=(i|0)){if((h|0)!=(i|0)){b=f;return b|0}g=b+4|0;e=k[g>>2]|0;if((k[j>>2]|0)>(e|0))d=g;else{b=f;return b|0}}else{e=b+4|0;d=e;e=k[e>>2]|0}k[b>>2]=h;k[d>>2]=k[j>>2];k[c>>2]=i;k[j>>2]=e;g=l+2|0;h=k[b>>2]|0;i=k[a>>2]|0;if((h|0)>=(i|0)){if((h|0)!=(i|0)){b=g;return b|0}f=a+4|0;e=k[f>>2]|0;if((k[d>>2]|0)<=(e|0)){b=g;return b|0}}else{e=a+4|0;f=e;e=k[e>>2]|0}k[a>>2]=h;k[f>>2]=k[d>>2];k[b>>2]=i;k[d>>2]=e;b=l+3|0;return b|0}function Kb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0;n=Jb(a,b,c,d)|0;i=k[e>>2]|0;j=k[d>>2]|0;if((i|0)>=(j|0)){if((i|0)!=(j|0)){b=n;return b|0}g=e+4|0;h=d+4|0;f=k[h>>2]|0;if((k[g>>2]|0)>(f|0))m=h;else{b=n;return b|0}}else{f=d+4|0;g=e+4|0;m=f;f=k[f>>2]|0}k[d>>2]=i;k[m>>2]=k[g>>2];k[e>>2]=j;k[g>>2]=f;g=n+1|0;i=k[d>>2]|0;j=k[c>>2]|0;if((i|0)>=(j|0)){if((i|0)!=(j|0)){b=g;return b|0}h=c+4|0;f=k[h>>2]|0;if((k[m>>2]|0)>(f|0))l=h;else{b=g;return b|0}}else{f=c+4|0;l=f;f=k[f>>2]|0}k[c>>2]=i;k[l>>2]=k[m>>2];k[d>>2]=j;k[m>>2]=f;g=n+2|0;i=k[c>>2]|0;j=k[b>>2]|0;if((i|0)>=(j|0)){if((i|0)!=(j|0)){b=g;return b|0}h=b+4|0;f=k[h>>2]|0;if((k[l>>2]|0)>(f|0))e=h;else{b=g;return b|0}}else{f=b+4|0;e=f;f=k[f>>2]|0}k[b>>2]=i;k[e>>2]=k[l>>2];k[c>>2]=j;k[l>>2]=f;h=n+3|0;i=k[b>>2]|0;j=k[a>>2]|0;if((i|0)>=(j|0)){if((i|0)!=(j|0)){b=h;return b|0}g=a+4|0;f=k[g>>2]|0;if((k[e>>2]|0)<=(f|0)){b=h;return b|0}}else{f=a+4|0;g=f;f=k[f>>2]|0}k[a>>2]=i;k[g>>2]=k[e>>2];k[b>>2]=j;k[e>>2]=f;b=n+4|0;return b|0}function Lb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0;switch(b-a>>3|0){case 2:{f=b+-8|0;g=k[f>>2]|0;h=k[a>>2]|0;if((g|0)>=(h|0)){if((g|0)!=(h|0)){a=1;return a|0}e=b+-4|0;c=a+4|0;d=k[c>>2]|0;if((k[e>>2]|0)<=(d|0)){a=1;return a|0}}else{d=a+4|0;c=d;e=b+-4|0;d=k[d>>2]|0}k[a>>2]=g;k[c>>2]=k[e>>2];k[f>>2]=h;k[e>>2]=d;a=1;return a|0}case 3:{Ib(a,a+8|0,b+-8|0)|0;a=1;return a|0}case 4:{Jb(a,a+8|0,a+16|0,b+-8|0)|0;a=1;return a|0}case 5:{Kb(a,a+8|0,a+16|0,a+24|0,b+-8|0)|0;a=1;return a|0}case 1:case 0:{a=1;return a|0}default:{e=a+16|0;Ib(a,a+8|0,e)|0;d=a+24|0;if((d|0)==(b|0)){a=1;return a|0}else c=0;while(1){l=k[d>>2]|0;h=k[e>>2]|0;if((l|0)>=(h|0)){if((l|0)==(h|0)?(n=d+4|0,o=k[n>>2]|0,p=e+4|0,(o|0)>(k[p>>2]|0)):0){f=p;g=n;m=o;q=15}}else{m=d+4|0;f=e+4|0;g=m;m=k[m>>2]|0;q=15}if((q|0)==15){q=0;k[d>>2]=h;k[g>>2]=k[f>>2];a:do if((e|0)!=(a|0)){j=e;while(1){e=j+-8|0;i=k[e>>2]|0;if((l|0)>=(i|0)){if((l|0)!=(i|0)){e=j;break a}h=j+-4|0;g=k[h>>2]|0;if((m|0)>(g|0))f=h;else{e=j;break a}}else{g=j+-4|0;f=g;g=k[g>>2]|0}k[j>>2]=i;k[j+4>>2]=g;if((e|0)==(a|0))break;else j=e}}while(0);k[e>>2]=l;k[f>>2]=m;c=c+1|0;if((c|0)==8)break}e=d+8|0;if((e|0)==(b|0)){c=1;q=24;break}else{m=d;d=e;e=m}}if((q|0)==24)return c|0;a=(d+8|0)==(b|0);return a|0}}return 0}function Mb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0;e=b;if(d>>>0<30|(b|0)==(c|0))return;l=(c-e|0)/12|0;m=(l>>>0)/3|0;j=b;f=e;g=e;e=0;h=d;i=0;while(1){if(i>>>0>=m>>>0){if((l-i|0)>>>0<m>>>0)break;o=k[j+4>>2]|0;n=o>>>0<h>>>0;f=n?g:f;e=n?i:e;h=n?o:h}g=j+12|0;if((g|0)==(c|0))break;else{j=g;i=i+1|0}}if(!e)return;e=k[f+4>>2]|0;if(e>>>0>((d>>>0)/9|0)>>>0)return;o=f+8|0;Mb(a,b,f,(k[o>>2]|0)+e|0);m=a+4|0;e=k[m>>2]|0;b=a+8|0;if((e|0)==(k[b>>2]|0)){n=k[a>>2]|0;i=e-n|0;j=i>>2;l=j+1|0;if(l>>>0>1073741823)xa(1340,1363,303,1438);if(j>>>0<536870911){e=i>>1;e=e>>>0<l>>>0?l:e;if(!e){e=0;g=0}else p=15}else{e=1073741823;p=15}if((p|0)==15){h=e<<2;h=(h|0)==0?1:h;g=_d(h)|0;a:do if(!g){while(1){g=k[35]|0;k[35]=g+0;if(!g)break;Xa[g&0]();g=_d(h)|0;if(g)break a}a=ya(4)|0;k[a>>2]=128;La(a|0,8,1)}while(0)}k[g+(j<<2)>>2]=k[f>>2];fe(g|0,n|0,i|0)|0;k[a>>2]=g;k[m>>2]=g+(l<<2);k[b>>2]=g+(e<<2);if(n)$d(n)}else{k[e>>2]=k[f>>2];k[m>>2]=e+4}Mb(a,f,c,d-(k[o>>2]|0)|0);return}function Nb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;h=(b|0)==(a|0);i[b+12>>0]=h&1;if(h)return;while(1){f=b+8|0;g=k[f>>2]|0;d=g+12|0;if(i[d>>0]|0){c=37;break}h=g+8|0;e=k[h>>2]|0;c=k[e>>2]|0;if((c|0)==(g|0)){c=k[e+4>>2]|0;if(!c){c=7;break}c=c+12|0;if(i[c>>0]|0){c=7;break}i[d>>0]=1;i[e+12>>0]=(e|0)==(a|0)&1;i[c>>0]=1}else{if(!c){c=24;break}c=c+12|0;if(i[c>>0]|0){c=24;break}i[d>>0]=1;i[e+12>>0]=(e|0)==(a|0)&1;i[c>>0]=1}if((e|0)==(a|0)){c=37;break}else b=e}if((c|0)==7){if((k[g>>2]|0)==(b|0)){b=g;a=e}else{f=g+4|0;b=k[f>>2]|0;c=k[b>>2]|0;k[f>>2]=c;if(!c)c=e;else{k[c+8>>2]=g;c=k[h>>2]|0}d=b+8|0;k[d>>2]=c;c=k[h>>2]|0;if((k[c>>2]|0)==(g|0))k[c>>2]=b;else k[c+4>>2]=b;k[b>>2]=g;k[h>>2]=b;a=k[d>>2]|0}i[b+12>>0]=1;i[a+12>>0]=0;d=k[a>>2]|0;e=d+4|0;b=k[e>>2]|0;k[a>>2]=b;if(b)k[b+8>>2]=a;b=a+8|0;k[d+8>>2]=k[b>>2];c=k[b>>2]|0;if((k[c>>2]|0)==(a|0))k[c>>2]=d;else k[c+4>>2]=d;k[e>>2]=a;k[b>>2]=d;return}else if((c|0)==24){if((k[g>>2]|0)==(b|0)){d=b+4|0;c=k[d>>2]|0;k[g>>2]=c;if(!c)c=e;else{k[c+8>>2]=g;c=k[h>>2]|0}k[f>>2]=c;c=k[h>>2]|0;if((k[c>>2]|0)==(g|0))k[c>>2]=b;else k[c+4>>2]=b;k[d>>2]=g;k[h>>2]=b;e=k[f>>2]|0}else b=g;i[b+12>>0]=1;i[e+12>>0]=0;h=e+4|0;d=k[h>>2]|0;b=k[d>>2]|0;k[h>>2]=b;if(b)k[b+8>>2]=e;b=e+8|0;k[d+8>>2]=k[b>>2];c=k[b>>2]|0;if((k[c>>2]|0)==(e|0))k[c>>2]=d;else k[c+4>>2]=d;k[d>>2]=e;k[b>>2]=d;return}else if((c|0)==37)return}function Ob(a){a=a|0;var b=0,c=0,d=0,e=0;if(!a)return;Ob(k[a>>2]|0);Ob(k[a+4>>2]|0);b=k[a+20>>2]|0;c=b;if(b){d=a+24|0;e=k[d>>2]|0;if((e|0)!=(b|0))k[d>>2]=e+(~(((e+-20-c|0)>>>0)/20|0)*20|0);$d(b)}$d(a);return}function Pb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0.0,q=0,s=0.0,t=0.0,u=0,v=0,w=0,x=0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0.0;ca=r;r=r+48|0;g=b;$=ca+40|0;X=ca+32|0;Z=ca+16|0;Y=ca;aa=ca+8|0;k[Z>>2]=0;ba=Z+4|0;k[ba>>2]=0;k[Z+8>>2]=0;f=c-g|0;do if((c|0)!=(b|0)){if(((f|0)/20|0)>>>0>214748364)xa(1340,1363,303,1438);e=_d(f)|0;a:do if(!e){while(1){e=k[35]|0;k[35]=e+0;if(!e)break;Xa[e&0]();e=_d(f)|0;if(e)break a}ca=ya(4)|0;k[ca>>2]=128;La(ca|0,8,1)}while(0);if((b|0)!=(c|0)){g=c+-20-g|0;f=e;while(1){k[f>>2]=k[b>>2];k[f+4>>2]=k[b+4>>2];k[f+8>>2]=k[b+8>>2];k[f+12>>2]=k[b+12>>2];k[f+16>>2]=k[b+16>>2];b=b+20|0;if((b|0)==(c|0))break;else f=f+20|0}q=e+((((g>>>0)/20|0)+1|0)*20|0)|0;g=(q|0)==(e|0);if(g){Qb(e,q);h=g;break}c=(q-e|0)/20|0;o=0;do{h=e+(o*20|0)+8|0;i=k[h>>2]|0;j=e+(o*20|0)|0;l=k[j>>2]|0;if((i|0)>=(l|0)){if((i|0)==(l|0)?(u=e+(o*20|0)+12|0,v=k[u>>2]|0,w=e+(o*20|0)+4|0,x=k[w>>2]|0,(v|0)<(x|0)):0){b=u;f=w;m=v;n=x;_=19}}else{n=e+(o*20|0)+4|0;m=e+(o*20|0)+12|0;b=m;f=n;m=k[m>>2]|0;n=k[n>>2]|0;_=19}if((_|0)==19){_=0;k[j>>2]=i;k[f>>2]=m;k[h>>2]=l;k[b>>2]=n}o=o+1|0}while(o>>>0<c>>>0);W=g;Qb(e,q);if(W)h=W;else{S=Z+8|0;T=Y+4|0;U=$+4|0;V=X+4|0;R=e;while(1){b=k[ba>>2]|0;f=k[S>>2]|0;if((b|0)==(f|0)){Rb(Z,R);b=k[ba>>2]|0;f=k[S>>2]|0}else{k[b>>2]=k[R>>2];k[b+4>>2]=k[R+4>>2];b=b+8|0;k[ba>>2]=b}Q=R+8|0;if((b|0)==(f|0))Rb(Z,Q);else{k[b>>2]=k[Q>>2];k[b+4>>2]=k[R+12>>2];k[ba>>2]=b+8}P=R+16|0;h=k[P>>2]|0;O=k[a>>2]|0;b=k[O+(h*12|0)>>2]|0;h=O+(h*12|0)+4|0;if((b|0)!=(h|0)){f=b;while(1){b=f+16|0;g=f+20|0;do if((k[g>>2]|0)>=(d|0)){c=k[ba>>2]|0;if((c|0)==(k[S>>2]|0)){Rb(Z,b);break}else{k[c>>2]=k[b>>2];k[c+4>>2]=k[g>>2];k[ba>>2]=c+8;break}}while(0);b=k[f+4>>2]|0;if(!b)while(1){b=k[f+8>>2]|0;if((k[b>>2]|0)==(f|0))break;else f=b}else while(1){f=k[b>>2]|0;if(!f)break;else b=f}if((b|0)==(h|0))break;else f=b}}L=R+4|0;if((k[L>>2]|0)<(d|0))O=0;else O=(k[R+12>>2]|0)>=(d|0);M=R+8|0;N=R+12|0;K=R;b:do{if(!O){if((k[K+4>>2]|0)>=(d|0)?(k[K+12>>2]|0)>=(d|0):0)_=46}else _=46;c:do if((_|0)==46){_=0;b=k[R>>2]|0;f=k[K>>2]|0;g=(b|0)==(f|0);if(((g?(k[L>>2]|0)==(k[K+4>>2]|0):0)?(k[M>>2]|0)==(k[K+8>>2]|0):0)?(k[N>>2]|0)==(k[K+12>>2]|0):0)break;J=K+8|0;c=k[J>>2]|0;h=k[Q>>2]|0;if((((c|0)<(f|0)?c:f)|0)>=(((h|0)<(b|0)?b:h)|0))break b;if(g?(k[L>>2]|0)==(k[K+4>>2]|0):0)break;if((h|0)==(c|0)?(k[N>>2]|0)==(k[K+12>>2]|0):0)break;I=Y;k[I>>2]=0;k[I+4>>2]=0;if(!(Sb(R,K)|0))break;b=k[R>>2]|0;h=k[M>>2]|0;g=k[L>>2]|0;n=k[N>>2]|0;m=(h|0)<(b|0);j=m?h:b;m=m?b:h;G=(n|0)<(g|0);x=G?n:g;G=G?g:n;o=k[K>>2]|0;c=k[J>>2]|0;H=K+4|0;u=k[H>>2]|0;I=K+12|0;v=k[I>>2]|0;l=(c|0)<(o|0);i=l?c:o;l=l?o:c;F=(v|0)<(u|0);w=F?v:u;F=F?u:v;d:do if((m|0)>=(i|0)&(j|0)<=(l|0)){if(!((x|0)<=(F|0)&(G|0)>=(w|0))){_=79;break}f=(c|0)==(o|0);do if((h|0)==(b|0)){if(f){_=79;break d}do if((v|0)==(u|0))g=u;else{p=+(o|0);s=+(u|0);t=+(b|0)-p;if(t==0.0){g=u;break}g=~~(s+(+(v|0)-s)*t/(+(c|0)-p))}while(0);if(!((x|0)<=(g|0)&(G|0)>=(g|0))){_=79;break d}k[Y>>2]=b;k[T>>2]=g}else{if(!f){z=+(v-u|0);A=+(n-g|0);y=+(c-o|0);p=+(h-b|0);s=z*p;t=A*y;if(s==t){_=79;break d}da=+(o|0);C=+(u|0);E=A*+(b|0);B=+(g|0)*p;D=(y*E-z*da*p+y*(C*p)-y*B)/(t-s);E=(z*(A*da)+(z*B-A*(C*y))-z*E)/(s-t);b=~~D;o=~~E;b=((D<+(b|0))<<31>>31)+b|0;g=(v|0)==(u|0)?u:(n|0)==(g|0)?g:((E<+(o|0))<<31>>31)+o|0;if(!((x|0)<=(g|0)&(((j|0)>(b|0)|(m|0)<(b|0)|(G|0)<(g|0))^1))){_=79;break d}if(!((w|0)<=(g|0)&(((i|0)>(b|0)|(l|0)<(b|0)|(F|0)<(g|0))^1))){_=79;break d}k[Y>>2]=b;k[T>>2]=g;break}do if((n|0)!=(g|0)){p=+(b|0);s=+(g|0);t=+(o|0)-p;if(t==0.0)break;g=~~(s+(+(n|0)-s)*t/(+(h|0)-p))}while(0);if(!((w|0)<=(g|0)&(F|0)>=(g|0))){_=79;break d}k[Y>>2]=o;k[T>>2]=g;b=o}while(0);k[$>>2]=b;k[U>>2]=g;if(!(Tb($,R)|0)){_=79;break}k[X>>2]=b;k[V>>2]=g;if(!(Tb(X,K)|0)){_=79;break}}else _=79;while(0);e:do if((_|0)==79){_=0;f:do if(Sb(R,K)|0){b=k[R>>2]|0;i=k[M>>2]|0;n=k[L>>2]|0;v=k[N>>2]|0;u=(b|0)>(i|0);o=u?i:b;u=u?b:i;G=(n|0)>(v|0);F=G?v:n;G=G?n:v;j=k[K>>2]|0;g=k[J>>2]|0;l=k[H>>2]|0;m=k[I>>2]|0;h=(j|0)>(g|0);c=h?g:j;h=h?j:g;x=(l|0)>(m|0);w=x?m:l;x=x?l:m;if(!((u|0)>=(c|0)&(o|0)<=(h|0)))break;if(!((F|0)<=(x|0)&(G|0)>=(w|0)))break;f=(j|0)==(g|0);do if((b|0)==(i|0)){if(f)break f;do if((l|0)==(m|0))p=+(l|0);else{t=+(j|0);p=+(l|0);s=+(b|0)-t;if(s==0.0)break;p=p+(+(m|0)-p)*s/(+(g|0)-t)}while(0);g=~~p;g=((p<+(g|0))<<31>>31)+g|0;if(!((G|0)>=(g|0)&(F|0)<=(g|0)))break f;k[Y>>2]=b;k[T>>2]=g}else{if(!f){B=+(l|0);C=+(m|0)-B;D=+(n|0);E=+(v|0)-D;A=+(j|0);z=+(g|0)-A;y=+(b|0);p=+(i|0)-y;s=C*p;t=z*E;if(s==t)break f;da=y*E;y=p*D;D=(da*z-A*C*p+z*(B*p)-z*y)/(t-s);da=(y*C-B*z*E+C*(E*A)-C*da)/(s-t);b=~~D;g=~~da;b=((D<+(b|0))<<31>>31)+b|0;g=(l|0)==(m|0)?l:(n|0)==(v|0)?n:((da<+(g|0))<<31>>31)+g|0;if(!((F|0)<=(g|0)&(((o|0)>(b|0)|(u|0)<(b|0)|(G|0)<(g|0))^1)))break f;if(!((w|0)<=(g|0)&(((c|0)>(b|0)|(h|0)<(b|0)|(x|0)<(g|0))^1)))break f;k[Y>>2]=b;k[T>>2]=g;break}do if((n|0)==(v|0))p=+(n|0);else{t=+(b|0);p=+(n|0);s=+(j|0)-t;if(s==0.0)break;p=p+(+(v|0)-p)*s/(+(i|0)-t)}while(0);g=~~p;g=((p<+(g|0))<<31>>31)+g|0;if(!((x|0)>=(g|0)&(w|0)<=(g|0)))break f;k[Y>>2]=j;k[T>>2]=g;b=j}while(0);break e}while(0);break c}while(0);f=k[ba>>2]|0;if((f|0)==(k[S>>2]|0))Rb(Z,Y);else{k[f>>2]=b;k[f+4>>2]=g;k[ba>>2]=f+8}Ub($,(k[a>>2]|0)+((k[K+16>>2]|0)*12|0)|0,Y);Ub($,(k[a>>2]|0)+((k[P>>2]|0)*12|0)|0,Y)}while(0);K=K+20|0}while((K|0)!=(q|0));R=R+20|0;if((R|0)==(q|0)){h=W;break}}}}else{b=e;_=11}}else{b=0;_=11}while(0);if((_|0)==11){Qb(b,b);h=(b|0)==(b|0);e=b;q=b}n=k[Z>>2]|0;o=k[ba>>2]|0;Vb(n,o);u=(n|0)==(o|0);g:do if(!u){b=n+8|0;if((b|0)==(o|0))m=o;else{f=b;b=n;while(1){if((k[b>>2]|0)==(k[b+8>>2]|0)?(k[b+4>>2]|0)==(k[b+12>>2]|0):0){_=114;break g}b=f+8|0;if((b|0)==(o|0)){m=o;break}else{Z=f;f=b;b=Z}}}}else{b=n;_=114}while(0);if((_|0)==114)if((b|0)==(o|0))m=o;else{f=b+16|0;if((f|0)!=(o|0)){c=b;b=b+8|0;while(1){g=k[f>>2]|0;if((k[c>>2]|0)==(g|0)){b=b+12|0;if((k[c+4>>2]|0)==(k[b>>2]|0))b=c;else _=120}else{b=b+12|0;_=120}if((_|0)==120){_=0;Z=c+8|0;k[Z>>2]=g;k[c+12>>2]=k[b>>2];b=Z}g=f+8|0;if((g|0)==(o|0))break;else{Z=f;f=g;c=b;b=Z}}}m=b+8|0}if(!h){i=aa+4|0;j=e;f=n;do{l=k[j+16>>2]|0;b=j+8|0;c=k[b>>2]|0;h=k[j>>2]|0;if((c|0)>=(h|0))if((c|0)==(h|0))g=(k[j+12>>2]|0)<(k[j+4>>2]|0)?b:j;else g=j;else g=b;g=k[g>>2]|0;if((h|0)>=(c|0))if((h|0)==(c|0))b=(k[j+4>>2]|0)<(k[j+12>>2]|0)?b:j;else b=j;c=k[b>>2]|0;b=f;h:do if((b|0)!=(m|0))do{if((k[b>>2]|0)>=(g|0))break h;b=b+8|0;f=b}while((b|0)!=(m|0));while(0);b=f;i:do if((b|0)!=(m|0))do{g=k[b>>2]|0;if((g|0)>(c|0))break i;k[aa>>2]=g;k[i>>2]=k[b+4>>2];if(Tb(aa,j)|0)Ub($,(k[a>>2]|0)+(l*12|0)|0,b);b=b+8|0}while((b|0)!=(m|0));while(0);j=j+20|0}while((j|0)!=(q|0))}if(e)$d(e);if(!n){r=ca;return}if(!u)k[ba>>2]=o+(~((o+-8-n|0)>>>3)<<3);$d(n);r=ca;return}
function Jc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;L=r;r=r+176|0;D=L+72|0;E=L;K=L+40|0;B=L+104|0;F=L+168|0;G=L+164|0;H=L+160|0;I=a+16|0;c=k[I>>2]|0;k[K>>2]=k[c>>2];k[K+4>>2]=k[c+4>>2];k[K+8>>2]=k[c+8>>2];k[K+12>>2]=k[c+12>>2];k[K+16>>2]=k[c+16>>2];k[K+20>>2]=k[c+20>>2];k[K+24>>2]=k[c+24>>2];h=c+28|0;l=k[K>>2]|0;J=K+8|0;if((l|0)==(k[J>>2]|0)?(t=K+4|0,e=k[t>>2]|0,(e|0)==(k[K+12>>2]|0)):0){u=a+20|0;d=k[u>>2]|0;v=a+24|0;f=k[v>>2]|0;if((d|0)!=(f|0)?(w=a+64|0,x=a+72|0,y=a+68|0,(k[d>>2]|0)==(l|0)):0){c=f;while(1){l=d+4|0;if((k[l>>2]|0)!=(e|0))break;s=k[d+8>>2]|0;e=c-d|0;if((e|0)>12){f=(e|0)/12|0;m=c+-12|0;q=d;C=k[q>>2]|0;q=k[q+4>>2]|0;n=m;o=k[n+4>>2]|0;p=d;k[p>>2]=k[n>>2];k[p+4>>2]=o;k[m>>2]=C;k[m+4>>2]=q;m=d+8|0;q=c+-4|0;C=k[m>>2]|0;k[m>>2]=k[q>>2];k[q>>2]=C;q=f+-1|0;do if((e|0)>=36?(C=f+-3|0,z=(C|0)/2|0,(C|0)>=-1):0){c=d+12|0;e=c;do if((q|0)>2){f=d+24|0;g=k[f>>2]|0;c=k[c>>2]|0;if((g|0)==(c|0)){if((k[d+28>>2]|0)>=(k[d+16>>2]|0)){j=1;break}}else if((g|0)>=(c|0)){j=1;break}e=f;j=2}else j=1;while(0);c=e;f=k[d>>2]|0;g=k[c>>2]|0;if((f|0)==(g|0)){if((k[l>>2]|0)<(k[c+4>>2]|0))break}else if((f|0)<(g|0))break;o=d;n=k[o>>2]|0;o=k[o+4>>2]|0;p=k[m>>2]|0;g=e;l=k[g+4>>2]|0;C=d;k[C>>2]=k[g>>2];k[C+4>>2]=l;k[m>>2]=k[c+8>>2];a:do if((z|0)>=(j|0)){m=c;c=j;while(1){f=c<<1|1;c=d+(f*12|0)|0;g=c;l=f+1|0;do if((l|0)<(q|0)){e=d+(l*12|0)|0;j=k[e>>2]|0;c=k[c>>2]|0;if((j|0)==(c|0)){if((k[d+(l*12|0)+4>>2]|0)>=(k[d+(f*12|0)+4>>2]|0))break}else if((j|0)>=(c|0))break;g=e;f=l}while(0);c=g;e=k[c>>2]|0;if((n|0)==(e|0)){if((o|0)<(k[c+4>>2]|0)){c=m;break a}}else if((n|0)<(e|0)){c=m;break a}j=g;l=k[j+4>>2]|0;C=m;k[C>>2]=k[j>>2];k[C+4>>2]=l;k[m+8>>2]=k[c+8>>2];if((z|0)<(f|0))break;else{m=c;c=f}}}while(0);C=c;k[C>>2]=n;k[C+4>>2]=o;k[c+8>>2]=p}while(0);c=k[v>>2]|0}k[v>>2]=c+-12;e=s;c=k[e+4>>2]|0;if(!c){d=s;while(1){c=k[d+8>>2]|0;if((k[c>>2]|0)==(d|0))break;else d=c}}else while(1){d=k[c>>2]|0;if(!d)break;else c=d}if((k[w>>2]|0)==(e|0))k[w>>2]=c;k[x>>2]=(k[x>>2]|0)+-1;Mc(k[y>>2]|0,s);$d(s);d=k[u>>2]|0;c=k[v>>2]|0;if((d|0)==(c|0))break;if((k[d>>2]|0)!=(k[K>>2]|0))break;e=k[t>>2]|0}c=k[I>>2]|0}d=c;f=c}else A=3;b:do if((A|0)==3){j=k[a+8>>2]|0;if((h|0)==(j|0)){d=c;f=c}else{g=k[K+4>>2]|0;f=c;while(1){e=k[f+28>>2]|0;if((e|0)==(k[f+36>>2]|0)){d=k[f+32>>2]|0;if(!((e|0)==(l|0)?(d|0)!=(k[f+40>>2]|0):0)){d=c;f=c;break b}}else{if((e|0)!=(l|0)){d=c;f=c;break b}d=k[f+32>>2]|0}if((d|0)!=(g|0)){d=c;f=c;break b}d=h+28|0;if((d|0)==(j|0)){d=c;f=c;h=j;break}else{f=h;h=d}}}}while(0);k[B>>2]=k[d>>2];k[B+4>>2]=k[d+4>>2];k[B+8>>2]=k[d+8>>2];k[B+12>>2]=k[d+12>>2];k[B+16>>2]=k[d+16>>2];k[B+20>>2]=k[d+20>>2];k[B+24>>2]=k[d+24>>2];C=B+28|0;k[C>>2]=k[d>>2];k[C+4>>2]=k[d+4>>2];k[C+8>>2]=k[d+8>>2];k[C+12>>2]=k[d+12>>2];k[C+16>>2]=k[d+16>>2];k[C+20>>2]=k[d+20>>2];k[C+24>>2]=k[d+24>>2];C=a+68|0;c=k[C>>2]|0;c:do if(!c)d=C;else{e=C;while(1){d=c;while(1){if(!(cd(d+16|0,B)|0))break;c=k[d+4>>2]|0;if(!c){d=e;break c}else d=c}c=k[d>>2]|0;if(!c)break;else e=d}}while(0);if((f|0)==(h|0)){r=L;return}m=D+24|0;n=a+80|0;o=a+36|0;p=E+32|0;q=a+64|0;s=K+4|0;t=K+12|0;u=D+24|0;v=E+32|0;w=K+8|0;x=K+24|0;y=D+24|0;z=E+32|0;A=D+24|0;B=E+32|0;c=f;do{k[K>>2]=k[c>>2];k[K+4>>2]=k[c+4>>2];k[K+8>>2]=k[c+8>>2];k[K+12>>2]=k[c+12>>2];k[K+16>>2]=k[c+16>>2];k[K+20>>2]=k[c+20>>2];k[K+24>>2]=k[c+24>>2];e=d;do if((e|0)==(C|0)){e=d;c=k[e>>2]|0;if(!c)while(1){c=k[e+8>>2]|0;if((k[c>>2]|0)==(e|0))e=c;else break}else while(1){e=k[c+4>>2]|0;if(!e)break;else c=e}l=c+44|0;k[F>>2]=d;k[D>>2]=k[F>>2];e=dd(a,l,l,K,D,b)|0;d=e;i[m>>0]=1;if(Nc(n,c+16|0,l,K,D)|0){k[E>>2]=k[D>>2];k[E+4>>2]=k[D+4>>2];k[E+8>>2]=k[D+8>>2];k[E+12>>2]=k[D+12>>2];k[E+16>>2]=k[D+16>>2];k[E+20>>2]=k[D+20>>2];k[E+24>>2]=k[D+24>>2];k[E+28>>2]=k[D+28>>2];k[p>>2]=d;l=Oc(o,E)|0;k[e+72>>2]=l}}else{l=e+16|0;if((e|0)==(k[q>>2]|0)){k[G>>2]=d;k[D>>2]=k[G>>2];c=dd(a,l,l,K,D,b)|0;if(!((k[K>>2]|0)==(k[J>>2]|0)?(k[s>>2]|0)==(k[t>>2]|0):0)){g=K;f=k[g>>2]|0;g=k[g+4>>2]|0;N=w;M=k[N+4>>2]|0;j=K;k[j>>2]=k[N>>2];k[j+4>>2]=M;j=w;k[j>>2]=f;k[j+4>>2]=g;k[x>>2]=k[x>>2]^32}i[u>>0]=1;if(Nc(n,K,l,e+44|0,D)|0){k[E>>2]=k[D>>2];k[E+4>>2]=k[D+4>>2];k[E+8>>2]=k[D+8>>2];k[E+12>>2]=k[D+12>>2];k[E+16>>2]=k[D+16>>2];k[E+20>>2]=k[D+20>>2];k[E+24>>2]=k[D+24>>2];k[E+28>>2]=k[D+28>>2];k[v>>2]=d;N=Oc(o,E)|0;k[e+72>>2]=N}d=c;break}j=e+44|0;g=e+72|0;c=k[g>>2]|0;if(c){i[c+24>>0]=0;k[g>>2]=0}c=d;e=k[c>>2]|0;if(!e)while(1){e=k[c+8>>2]|0;if((k[e>>2]|0)==(c|0))c=e;else{c=e;break}}else{c=e;while(1){e=k[c+4>>2]|0;if(!e)break;else c=e}}N=c+44|0;k[H>>2]=d;k[D>>2]=k[H>>2];e=dd(a,N,l,K,D,b)|0;f=e;i[y>>0]=1;if(Nc(n,c+16|0,N,K,D)|0){k[E>>2]=k[D>>2];k[E+4>>2]=k[D+4>>2];k[E+8>>2]=k[D+8>>2];k[E+12>>2]=k[D+12>>2];k[E+16>>2]=k[D+16>>2];k[E+20>>2]=k[D+20>>2];k[E+24>>2]=k[D+24>>2];k[E+28>>2]=k[D+28>>2];k[z>>2]=f;N=Oc(o,E)|0;k[e+72>>2]=N}if(!((k[K>>2]|0)==(k[J>>2]|0)?(k[s>>2]|0)==(k[t>>2]|0):0)){M=K;e=k[M>>2]|0;M=k[M+4>>2]|0;O=w;c=k[O+4>>2]|0;N=K;k[N>>2]=k[O>>2];k[N+4>>2]=c;N=w;k[N>>2]=e;k[N+4>>2]=M;k[x>>2]=k[x>>2]^32}i[A>>0]=1;if(Nc(n,K,l,j,D)|0){k[E>>2]=k[D>>2];k[E+4>>2]=k[D+4>>2];k[E+8>>2]=k[D+8>>2];k[E+12>>2]=k[D+12>>2];k[E+16>>2]=k[D+16>>2];k[E+20>>2]=k[D+20>>2];k[E+24>>2]=k[D+24>>2];k[E+28>>2]=k[D+28>>2];k[B>>2]=d;O=Oc(o,E)|0;k[g>>2]=O}d=f}while(0);c=(k[I>>2]|0)+28|0;k[I>>2]=c}while((c|0)!=(h|0));r=L;return}function Kc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,q=0.0,s=0.0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;J=r;r=r+144|0;E=J+72|0;F=J+32|0;I=J;H=J+104|0;G=a+36|0;h=k[k[G>>2]>>2]|0;A=k[h+40>>2]|0;B=A;y=B+44|0;k[I>>2]=k[y>>2];k[I+4>>2]=k[y+4>>2];k[I+8>>2]=k[y+8>>2];k[I+12>>2]=k[y+12>>2];k[I+16>>2]=k[y+16>>2];k[I+20>>2]=k[y+20>>2];k[I+24>>2]=k[y+24>>2];y=k[B+76>>2]|0;z=A;c=k[z>>2]|0;if(!c){d=z;while(1){c=k[d+8>>2]|0;if((k[c>>2]|0)==(d|0))d=c;else break}}else while(1){d=k[c+4>>2]|0;if(!d)break;else c=d}C=c;d=c+16|0;D=c+72|0;w=D+4|0;x=k[w>>2]|0;k[H>>2]=k[d>>2];k[H+4>>2]=k[d+4>>2];k[H+8>>2]=k[d+8>>2];k[H+12>>2]=k[d+12>>2];k[H+16>>2]=k[d+16>>2];k[H+20>>2]=k[d+20>>2];k[H+24>>2]=k[d+24>>2];d=k[H>>2]|0;u=H+8|0;do if((d|0)==(k[u>>2]|0)?(g=k[H+4>>2]|0,(g|0)==(k[H+12>>2]|0)):0){e=k[I+8>>2]|0;if((k[I>>2]|0)==(e|0)?(k[I+4>>2]|0)==(k[I+12>>2]|0):0)break;f=I+8|0;if((e|0)==(d|0)?(k[I+12>>2]|0)==(g|0):0){o=I;n=k[o>>2]|0;o=k[o+4>>2]|0;l=f;m=k[l+4>>2]|0;t=I;k[t>>2]=k[l>>2];k[t+4>>2]=m;t=f;k[t>>2]=n;k[t+4>>2]=o;t=I+24|0;k[t>>2]=k[t>>2]^32}}while(0);m=c+44|0;k[m>>2]=k[I>>2];k[m+4>>2]=k[I+4>>2];k[m+8>>2]=k[I+8>>2];k[m+12>>2]=k[I+12>>2];k[m+16>>2]=k[I+16>>2];k[m+20>>2]=k[I+20>>2];k[m+24>>2]=k[I+24>>2];s=+p[h+8>>3];q=+p[h+16>>3];m=b+16|0;d=k[m>>2]|0;n=b+20|0;e=k[n>>2]|0;if(d>>>0>=e>>>0){o=b+12|0;t=k[o>>2]|0;f=t;j=d-f|0;l=(j|0)/24|0;h=l+1|0;if(h>>>0>178956970)xa(1340,1363,303,1438);d=(e-f|0)/24|0;if(d>>>0<89478485){g=d<<1;g=g>>>0<h>>>0?h:g}else g=178956970;f=g*24|0;f=(f|0)==0?1:f;e=_d(f)|0;a:do if(!e){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();e=_d(f)|0;if(e)break a}J=ya(4)|0;k[J>>2]=128;La(J|0,8,1)}while(0);p[e+(l*24|0)>>3]=s;p[e+(l*24|0)+8>>3]=q;k[e+(l*24|0)+16>>2]=0;k[e+(l*24|0)+20>>2]=0;d=e+(h*24|0)|0;l=e+((((j|0)/-24|0)+l|0)*24|0)|0;fe(l|0,t|0,j|0)|0;k[o>>2]=l;k[m>>2]=d;k[n>>2]=e+(g*24|0);if(t){$d(t);d=k[m>>2]|0}}else{p[d>>3]=s;p[d+8>>3]=q;k[d+16>>2]=0;k[d+20>>2]=0;d=(k[m>>2]|0)+24|0;k[m>>2]=d}t=d+-24|0;k[x+4>>2]=t;k[y+4>>2]=t;o=k[H>>2]|0;l=k[u>>2]|0;h=(o|0)==(l|0);if(h)f=(k[H+4>>2]|0)!=(k[H+12>>2]|0);else f=1;m=k[I>>2]|0;n=k[I+8>>2]|0;j=(m|0)==(n|0);do if(j){e=k[I+4>>2]|0;d=(e|0)!=(k[I+12>>2]|0);if(!(d|f^1)){if((o|0)==(m|0)?(k[H+4>>2]|0)==(e|0):0){g=1;break}if((l|0)==(m|0)?(k[H+12>>2]|0)==(e|0):0)g=1;else v=36}else v=31}else{d=1;v=31}while(0);do if((v|0)==31)if(!(f|d^1)){if((m|0)==(o|0)?(k[I+4>>2]|0)==(k[H+4>>2]|0):0){g=1;break}if((n|0)==(o|0)?(k[I+12>>2]|0)==(k[H+4>>2]|0):0)g=1;else v=36}else v=36;while(0);if((v|0)==36){if(h)d=(k[H+4>>2]|0)!=(k[H+12>>2]|0);else d=1;if(j)e=(k[I+4>>2]|0)!=(k[I+12>>2]|0);else e=1;g=d^e^1}if(h)f=(k[H+4>>2]|0)!=(k[H+12>>2]|0);else f=1;do if(j){e=k[I+4>>2]|0;d=(e|0)!=(k[I+12>>2]|0);if(!(d|f^1)){if((o|0)==(m|0)?(k[H+4>>2]|0)==(e|0):0){d=0;break}if((l|0)==(m|0))d=(k[H+12>>2]|0)!=(e|0);else d=1}else v=49}else{d=1;v=49}while(0);do if((v|0)==49)if(!(f|d^1)){if((m|0)==(o|0)?(k[I+4>>2]|0)==(k[H+4>>2]|0):0){d=0;break}if((n|0)==(o|0))d=(k[I+12>>2]|0)!=(k[H+4>>2]|0);else d=1}else d=1;while(0);l=b+24|0;e=g&1;e=d?e|2:e;k[E>>2]=0;k[E+4>>2]=0;k[E+8>>2]=0;k[E+12>>2]=0;k[E+16>>2]=0;k[E+20>>2]=e;f=b+28|0;d=k[f>>2]|0;g=b+32|0;if(d>>>0<(k[g>>2]|0)>>>0){k[d>>2]=k[E>>2];k[d+4>>2]=k[E+4>>2];k[d+8>>2]=k[E+8>>2];k[d+12>>2]=k[E+12>>2];k[d+16>>2]=k[E+16>>2];k[d+20>>2]=k[E+20>>2];j=(k[f>>2]|0)+24|0;k[f>>2]=j}else{bd(l,E);j=k[f>>2]|0}h=j+-24|0;k[h>>2]=(k[b>>2]|0)+((k[H+16>>2]|0)*12|0);k[F>>2]=0;k[F+4>>2]=0;k[F+8>>2]=0;k[F+12>>2]=0;k[F+16>>2]=0;k[F+20>>2]=e;if(j>>>0<(k[g>>2]|0)>>>0){k[j>>2]=k[F>>2];k[j+4>>2]=k[F+4>>2];k[j+8>>2]=k[F+8>>2];k[j+12>>2]=k[F+12>>2];k[j+16>>2]=k[F+16>>2];k[j+20>>2]=k[F+20>>2];d=(k[f>>2]|0)+24|0;k[f>>2]=d}else{bd(l,F);d=k[f>>2]|0}v=d+-24|0;k[v>>2]=(k[b>>2]|0)+((k[I+16>>2]|0)*12|0);k[j+-16>>2]=v;k[d+-16>>2]=h;k[d+-20>>2]=t;k[x+16>>2]=h;k[j+-12>>2]=x;j=k[x+8>>2]|0;k[j+12>>2]=y;k[y+16>>2]=j;j=k[y+8>>2]|0;k[j+12>>2]=v;k[d+-8>>2]=j;k[w>>2]=h;j=a+64|0;d=k[B+4>>2]|0;if(!d){e=z;while(1){d=k[e+8>>2]|0;if((k[d>>2]|0)==(e|0))break;else e=d}}else while(1){e=k[d>>2]|0;if(!e)break;else d=e}if((k[j>>2]|0)==(B|0))k[j>>2]=d;e=a+72|0;k[e>>2]=(k[e>>2]|0)+-1;Mc(k[a+68>>2]|0,z);$d(A);e=k[G>>2]|0;g=k[e>>2]|0;h=a+40|0;d=k[h>>2]|0;f=d-e|0;if((f|0)>4){d=d+-4|0;k[e>>2]=k[d>>2];k[d>>2]=g;Lc(e,(f>>2)+-1|0,e);d=k[h>>2]|0}k[h>>2]=d+-4;B=g+4|0;A=k[g>>2]|0;k[A+4>>2]=k[B>>2];k[k[B>>2]>>2]=A;B=a+60|0;k[B>>2]=(k[B>>2]|0)+-1;$d(g);if((c|0)!=(k[j>>2]|0)){d=k[D>>2]|0;if(d){i[d+24>>0]=0;k[D>>2]=0}d=k[c>>2]|0;if(!d){e=c;while(1){d=k[e+8>>2]|0;if((k[d>>2]|0)==(e|0))e=d;else break}}else while(1){e=k[d+4>>2]|0;if(!e)break;else d=e}i[E+24>>0]=1;if(Nc(a+80|0,d+16|0,H,I,E)|0){k[F>>2]=k[E>>2];k[F+4>>2]=k[E+4>>2];k[F+8>>2]=k[E+8>>2];k[F+12>>2]=k[E+12>>2];k[F+16>>2]=k[E+16>>2];k[F+20>>2]=k[E+20>>2];k[F+24>>2]=k[E+24>>2];k[F+28>>2]=k[E+28>>2];k[F+32>>2]=C;C=Oc(G,F)|0;k[D>>2]=C}}d=k[c+4>>2]|0;if(!d)while(1){d=k[c+8>>2]|0;if((k[d>>2]|0)==(c|0)){c=d;break}else c=d}else{c=d;while(1){d=k[c>>2]|0;if(!d)break;else c=d}}if((c|0)==(a+68|0)){r=J;return}d=c+72|0;e=k[d>>2]|0;if(e){i[e+24>>0]=0;k[d>>2]=0}i[E+24>>0]=1;if(Nc(a+80|0,H,I,c+44|0,E)|0){k[F>>2]=k[E>>2];k[F+4>>2]=k[E+4>>2];k[F+8>>2]=k[E+8>>2];k[F+12>>2]=k[E+12>>2];k[F+16>>2]=k[E+16>>2];k[F+20>>2]=k[E+20>>2];k[F+24>>2]=k[E+24>>2];k[F+28>>2]=k[E+28>>2];k[F+32>>2]=c;a=Oc(G,F)|0;k[d>>2]=a}r=J;return}function Lc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0.0,h=0.0,i=0,j=0,l=0,m=0.0,n=0,o=0,q=0;d=c-a|0;if((b|0)<2)return;q=(b+-2|0)/2|0;if((q|0)<(d>>2|0))return;l=d>>1|1;f=a+(l<<2)|0;d=f;e=l+1|0;do if((e|0)<(b|0)){j=a+(e<<2)|0;f=k[f>>2]|0;i=k[j>>2]|0;g=+p[i+24>>3];h=+p[f+24>>3];if(g!=h){if(!(g<h)){e=l;break}}else if(!(+p[i+16>>3]<+p[f+16>>3])){e=l;break}d=j}else e=l;while(0);f=k[d>>2]|0;i=k[c>>2]|0;g=+p[i+24>>3];h=+p[f+24>>3];o=i;if(g!=h){if(g<h)return}else if(+p[i+16>>3]<+p[f+16>>3])return;n=i+16|0;k[c>>2]=k[d>>2];a:do if((q|0)>=(e|0)){m=+p[i+24>>3];while(1){e=e<<1|1;i=a+(e<<2)|0;f=i;c=e+1|0;do if((c|0)<(b|0)){l=a+(c<<2)|0;i=k[i>>2]|0;j=k[l>>2]|0;g=+p[j+24>>3];h=+p[i+24>>3];if(g!=h){if(!(g<h))break}else if(!(+p[j+16>>3]<+p[i+16>>3]))break;f=l;e=c}while(0);i=k[f>>2]|0;g=+p[i+24>>3];if(m!=g){if(m<g)break a}else if(+p[n>>3]<+p[i+16>>3])break a;k[d>>2]=k[f>>2];if((q|0)<(e|0)){d=f;break}else d=f}}while(0);k[d>>2]=o;return}function Mc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0;d=k[b>>2]|0;if(d){c=k[b+4>>2]|0;if(!c){e=b;c=b;h=6}else while(1){d=k[c>>2]|0;if(!d){h=4;break}else c=d}}else{c=b;h=4}if((h|0)==4){d=k[c+4>>2]|0;if(!d){l=c+8|0;e=c;d=0;m=0;j=c}else{e=c;h=6}}if((h|0)==6){l=e+8|0;k[d+8>>2]=k[l>>2];m=1;j=c}c=k[l>>2]|0;f=k[c>>2]|0;if((f|0)==(e|0)){k[c>>2]=d;if((e|0)==(a|0)){a=d;f=0}else f=k[c+4>>2]|0}else k[c+4>>2]=d;g=e+12|0;h=(i[g>>0]|0)!=0;if((e|0)!=(b|0)){o=b+8|0;c=k[o>>2]|0;k[l>>2]=c;if((k[k[o>>2]>>2]|0)==(b|0))k[c>>2]=e;else k[c+4>>2]=e;c=k[b>>2]|0;k[j>>2]=c;k[c+8>>2]=e;c=k[b+4>>2]|0;k[e+4>>2]=c;if(c)k[c+8>>2]=e;i[g>>0]=i[b+12>>0]|0;a=(a|0)==(b|0)?e:a}if(!(h&(a|0)!=0))return;if(m){i[d+12>>0]=1;return}else g=f;while(1){f=g+8|0;h=k[f>>2]|0;c=g+12|0;d=(i[c>>0]|0)!=0;if((k[h>>2]|0)==(g|0)){if(!d){i[c>>0]=1;i[h+12>>0]=0;e=g+4|0;c=k[e>>2]|0;k[h>>2]=c;if(c)k[c+8>>2]=h;d=h+8|0;k[f>>2]=k[d>>2];c=k[d>>2]|0;if((k[c>>2]|0)==(h|0))k[c>>2]=g;else k[c+4>>2]=g;k[e>>2]=h;k[d>>2]=g;a=(a|0)==(h|0)?g:a;g=k[h>>2]|0}e=k[g>>2]|0;f=(e|0)==0;if(!f?(i[e+12>>0]|0)==0:0){c=e;a=g;h=76;break}c=g+4|0;d=k[c>>2]|0;if((d|0)!=0?(i[d+12>>0]|0)==0:0){h=67;break}i[g+12>>0]=0;c=k[g+8>>2]|0;d=c+12|0;if((c|0)==(a|0)|(i[d>>0]|0)==0){h=64;break}o=k[c+8>>2]|0;c=(k[o>>2]|0)==(c|0)?o+4|0:o}else{if(d)f=g;else{i[c>>0]=1;i[h+12>>0]=0;o=h+4|0;e=k[o>>2]|0;c=k[e>>2]|0;k[o>>2]=c;if(c)k[c+8>>2]=h;c=h+8|0;k[e+8>>2]=k[c>>2];d=k[c>>2]|0;if((k[d>>2]|0)==(h|0))k[d>>2]=e;else k[d+4>>2]=e;k[e>>2]=h;k[c>>2]=e;f=k[g>>2]|0;a=(a|0)==(f|0)?g:a;f=k[f+4>>2]|0}c=k[f>>2]|0;if((c|0)!=0?(n=c+12|0,(i[n>>0]|0)==0):0){h=37;break}c=k[f+4>>2]|0;if((c|0)!=0?(i[c+12>>0]|0)==0:0){a=c;c=f;h=46;break}i[f+12>>0]=0;c=k[f+8>>2]|0;if((c|0)==(a|0)){h=35;break}if(!(i[c+12>>0]|0)){a=c;h=35;break}o=k[c+8>>2]|0;c=(k[o>>2]|0)==(c|0)?o+4|0:o}g=k[c>>2]|0}do if((h|0)==35){i[a+12>>0]=1;return}else if((h|0)==37){a=k[f+4>>2]|0;if(!a)a=n;else{if(!(i[a+12>>0]|0)){c=f;h=46;break}a=c+12|0}i[a>>0]=1;i[f+12>>0]=0;e=c+4|0;a=k[e>>2]|0;k[f>>2]=a;if(a)k[a+8>>2]=f;a=f+8|0;k[c+8>>2]=k[a>>2];d=k[a>>2]|0;if((k[d>>2]|0)==(f|0))k[d>>2]=c;else k[d+4>>2]=c;k[e>>2]=f;k[a>>2]=c;a=f;h=46}else if((h|0)==64){i[d>>0]=1;return}else if((h|0)==67){if(!f){if(!(i[e+12>>0]|0)){c=e;a=g;h=76;break}d=g+4|0;c=d;d=k[d>>2]|0}i[d+12>>0]=1;i[g+12>>0]=0;a=k[d>>2]|0;k[c>>2]=a;if(a)k[a+8>>2]=g;a=g+8|0;k[d+8>>2]=k[a>>2];c=k[a>>2]|0;if((k[c>>2]|0)==(g|0))k[c>>2]=d;else k[c+4>>2]=d;k[d>>2]=g;k[a>>2]=d;c=g;a=d;h=76}while(0);if((h|0)==46){e=k[c+8>>2]|0;o=e+12|0;i[c+12>>0]=i[o>>0]|0;i[o>>0]=1;i[a+12>>0]=1;o=e+4|0;d=k[o>>2]|0;a=k[d>>2]|0;k[o>>2]=a;if(a)k[a+8>>2]=e;a=e+8|0;k[d+8>>2]=k[a>>2];c=k[a>>2]|0;if((k[c>>2]|0)==(e|0))k[c>>2]=d;else k[c+4>>2]=d;k[d>>2]=e;k[a>>2]=d;return}else if((h|0)==76){f=k[a+8>>2]|0;d=f+12|0;i[a+12>>0]=i[d>>0]|0;i[d>>0]=1;i[c+12>>0]=1;d=k[f>>2]|0;e=d+4|0;a=k[e>>2]|0;k[f>>2]=a;if(a)k[a+8>>2]=f;a=f+8|0;k[d+8>>2]=k[a>>2];c=k[a>>2]|0;if((k[c>>2]|0)==(f|0))k[c>>2]=d;else k[c+4>>2]=d;k[e>>2]=f;k[a>>2]=d;return}}function Nc(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0.0,n=0.0,o=0.0,q=0.0,s=0.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0.0,O=0.0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0.0,ia=0,ja=0.0,ka=0.0,la=0,ma=0.0,na=0.0,oa=0.0,pa=0.0,qa=0.0,ra=0.0,sa=0.0,ta=0.0,ua=0.0,va=0.0,wa=0.0,xa=0.0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0;gb=r;r=r+11200|0;Na=gb+10416|0;Oa=gb+9376|0;Ma=gb+8336|0;Ea=gb+8072|0;Fa=gb+7812|0;Xa=gb+7552|0;Ga=gb+7292|0;Ha=gb+7032|0;Ya=gb+6772|0;Ia=gb+792|0;Ja=gb+6512|0;Za=gb+6252|0;Ka=gb+5992|0;La=gb+528|0;Wa=gb+5732|0;Pa=gb+5472|0;Qa=gb+5212|0;Ra=gb+4952|0;Sa=gb+4692|0;Ua=gb+264|0;Va=gb;_a=gb+3912|0;Ta=gb+3132|0;Z=gb+2872|0;_=gb+2612|0;$=gb+2352|0;aa=gb+2092|0;ca=gb+1832|0;ba=gb+1572|0;fa=gb+1312|0;ga=gb+1052|0;U=k[b>>2]|0;$a=b+8|0;T=k[$a>>2]|0;if((U|0)==(T|0))f=(k[b+4>>2]|0)!=(k[b+12>>2]|0);else f=1;V=k[c>>2]|0;cb=c+8|0;S=k[cb>>2]|0;if((V|0)==(S|0))g=(k[c+4>>2]|0)!=(k[c+12>>2]|0);else g=1;ea=k[d>>2]|0;fb=d+8|0;da=k[fb>>2]|0;if((ea|0)==(da|0))h=(k[d+4>>2]|0)!=(k[d+12>>2]|0);else h=1;do if(!f){if(g){if(h)if((k[c+16>>2]|0)==(k[d+16>>2]|0)){e=0;r=gb;return e|0}else{Rc(a+4|0,b,c,d,1,e);break}if(((V|0)==(U|0)?((S|0)==(ea|0)?(k[c+4>>2]|0)==(k[b+4>>2]|0):0):0)?(k[c+12>>2]|0)==(k[d+4>>2]|0):0){e=0;r=gb;return e|0}Qc(a+4|0,b,d,c,2,e);break}D=b+4|0;f=k[D>>2]|0;G=c+4|0;j=k[G>>2]|0;P=d+4|0;l=k[P>>2]|0;g=Pc(U,f,V,j,ea,l)|0;if(h){f=Pc(U,f,V,j,da,k[d+12>>2]|0)|0;if((V|0)<(U|0)){if((g|0)!=-1&(f|0)!=-1){e=0;r=gb;return e|0}}else if((f|0)!=-1){e=0;r=gb;return e|0}Qc(a+4|0,b,c,d,3,e);break}if((g|0)!=-1){e=0;r=gb;return e|0}v=+(U|0);w=+(V|0);O=v-w;q=+(ea|0);ha=w-q;s=+(f|0);n=+(j|0);ja=s-n;u=+(l|0);ka=n-u;Ba=((V|0)<0)<<31>>31;g=be(U|0,((U|0)<0)<<31>>31|0,V|0,Ba|0)|0;Ca=L;Ba=be(V|0,Ba|0,ea|0,((ea|0)<0)<<31>>31|0)|0;h=L;da=((j|0)<0)<<31>>31;za=be(f|0,((f|0)<0)<<31>>31|0,j|0,da|0)|0;Aa=L;da=be(j|0,da|0,l|0,((l|0)<0)<<31>>31|0)|0;ea=L;Da=(Ca|0)<0;la=be(0,0,g|0,Ca|0)|0;f=Da?L:Ca;Ca=(h|0)<0;j=be(0,0,Ba|0,h|0)|0;h=Ca?L:h;l=(Aa|0)<0;ya=be(0,0,za|0,Aa|0)|0;Aa=l?L:Aa;a=(ea|0)<0;Y=be(0,0,da|0,ea|0)|0;f=ne((a?Y:da)|0,(a?L:ea)|0,(Da?la:g)|0,f|0)|0;g=L;h=ne((l?ya:za)|0,Aa|0,(Ca?j:Ba)|0,h|0)|0;j=L;l=Ca^l;do if(Da^a){if(!l){a=ge(f|0,g|0,h|0,j|0)|0;m=-(+(a>>>0)+4294967296.0*+(L>>>0));break}if(g>>>0>j>>>0|(g|0)==(j|0)&f>>>0>h>>>0){a=be(f|0,g|0,h|0,j|0)|0;m=-(+(a>>>0)+4294967296.0*+(L>>>0));break}else{a=be(h|0,j|0,f|0,g|0)|0;m=+(a>>>0)+4294967296.0*+(L>>>0);break}}else{if(l){a=ge(f|0,g|0,h|0,j|0)|0;m=+(a>>>0)+4294967296.0*+(L>>>0);break}if(g>>>0<j>>>0|(g|0)==(j|0)&f>>>0<h>>>0){a=be(h|0,j|0,f|0,g|0)|0;m=-(+(a>>>0)+4294967296.0*+(L>>>0));break}else{a=be(f|0,g|0,h|0,j|0)|0;m=+(a>>>0)+4294967296.0*+(L>>>0);break}}while(0);ma=.5/m;x=w+q;o=s+n;y=n+u;C=v-q;B=s-u;z=O*(v+w);m=ka*z;if(m<0.0){n=0.0-m;if(m>0.0){m=(m*2.0+0.0)/n;m=m<0.0?-m:m}else m=2.0;u=0.0;v=0.0;q=m+1.0}else{u=m+0.0;v=3.0;n=0.0;q=0.0}A=ja*o;m=ka*A;do if(m<0.0){o=n-m;if(m>0.0|n<0.0){m=(m*2.0+n*q)/o;m=m<0.0?-m:m}else m=q<2.0?2.0:q;n=o;q=m+1.0}else{o=m+u;if(u<0.0?m>0.0|u>0.0:0){v=(u*v-m*2.0)/o;u=o;v=(v<0.0?-v:v)+1.0;break}u=o;v=v<2.0?3.0:v+1.0}while(0);w=ha*x;o=ja*w;do if(o<0.0){s=u-o;if(o>0.0|u<0.0){m=(o*2.0+u*v)/s;m=m<0.0?-m:m}else m=v<2.0?2.0:v;v=m+1.0}else{m=o+n;if(n<0.0?o>0.0|n>0.0:0){q=(n*q-o*2.0)/m;n=m;q=(q<0.0?-q:q)+1.0;s=u;break}n=m;q=q<2.0?3.0:q+1.0;s=u}while(0);y=ka*y;o=ja*y;do if(o<0.0){u=s-o;if(o>0.0|s<0.0){m=(o*2.0+s*v)/u;m=m<0.0?-m:m}else m=v<2.0?2.0:v;N=n;s=u;v=m+1.0}else{m=o+n;if(n<0.0?o>0.0|n>0.0:0){q=(n*q-o*2.0)/m;N=m;q=(q<0.0?-q:q)+1.0;break}N=m;q=q<2.0?3.0:q+1.0}while(0);m=O*w;if(m<0.0){n=0.0-m;if(m>0.0){m=(m*2.0+0.0)/n;m=m<0.0?-m:m}else m=2.0;x=0.0;w=0.0;u=m+1.0}else{x=m+0.0;w=3.0;n=0.0;u=0.0}m=O*y;do if(m<0.0){o=n-m;if(m>0.0|n<0.0){m=(m*2.0+n*u)/o;m=m<0.0?-m:m}else m=u<2.0?2.0:u;n=o;y=m+1.0}else{o=m+x;if(x<0.0?m>0.0|x>0.0:0){w=(x*w-m*2.0)/o;y=u;x=o;w=(w<0.0?-w:w)+1.0;break}y=u;x=o;w=w<2.0?3.0:w+1.0}while(0);o=ha*z;do if(o<0.0){u=x-o;if(o>0.0|x<0.0){m=(o*2.0+x*w)/u;m=m<0.0?-m:m}else m=w<2.0?2.0:w;z=n;w=m+1.0}else{m=o+n;if(n<0.0?o>0.0|n>0.0:0){y=(n*y-o*2.0)/m;z=m;y=(y<0.0?-y:y)+1.0;u=x;break}z=m;y=y<2.0?3.0:y+1.0;u=x}while(0);n=ha*A;a:do if(n<0.0){o=u-n;if(n>0.0|u<0.0){m=(n*2.0+u*w)/o;m=m<0.0?-m:m}else m=w<2.0?2.0:w;w=m+1.0}else{m=n+z;do if(z<0.0){if(!(n>0.0|z>0.0))break;y=(z*y-n*2.0)/m;z=m;o=u;y=(y<0.0?-y:y)+1.0;break a}while(0);z=m;o=u;y=y<2.0?3.0:y+1.0}while(0);n=+X(+((O*O+ja*ja)*(ha*ha+ka*ka)*(C*C+B*B)));b:do if(n<0.0){m=s-n;if(s<0.0|n>0.0){n=(s*v+n*5.0)/m;n=n<0.0?-n:n}else n=v<5.0?5.0:v;C=N;A=m;B=q;x=n+1.0}else{m=N+n;do if(N<0.0){if(!(N>0.0|n>0.0))break;B=(N*q-n*5.0)/m;C=m;A=s;B=(B<0.0?-B:B)+1.0;x=v;break b}while(0);C=m;A=s;B=q<5.0?6.0:q+1.0;x=v}while(0);m=s-N;n=o-z;f=o<0.0|z>0.0;u=A-C;g=C>0.0|A<0.0;p[e>>3]=ma*m;Y=e+8|0;p[Y>>3]=ma*n;W=e+16|0;p[W>>3]=ma*u;i[e+24>>0]=1;do if(s<0.0|N>0.0){if(!(s>0.0|N<0.0)){ia=97;break}m=(s*v+N*q)/m;if(!(m<0.0))break;m=-m}else ia=97;while(0);if((ia|0)==97)m=v<q?q:v;T=m+1.0>64.0;do if(f){if(!(o>0.0|z<0.0)){ia=102;break}m=(o*w+z*y)/n;if(!(m<0.0))break;m=-m}else ia=102;while(0);if((ia|0)==102)m=w<y?y:w;V=m+1.0>64.0;do if(g){if(!(C<0.0|A>0.0)){ia=107;break}m=(B*C+x*A)/u;if(!(m<0.0))break;m=-m}else ia=107;while(0);if((ia|0)==107)m=x<B?B:x;S=m+1.0>64.0;if(!(T|V|S))break;E=k[b>>2]|0;F=((E|0)<0)<<31>>31;K=k[c>>2]|0;M=((K|0)<0)<<31>>31;f=be(E|0,F|0,K|0,M|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;a=L;k[_a>>2]=Da;k[_a+4>>2]=a;k[_a+256>>2]=(a|0)!=0?-2:-1;break}else{k[_a+256>>2]=0;break}else{k[_a>>2]=f;k[_a+4>>2]=g;k[_a+256>>2]=(g|0)!=0?2:1}while(0);U=_a+260|0;I=k[d>>2]|0;J=((I|0)<0)<<31>>31;f=be(K|0,M|0,I|0,J|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;a=L;k[U>>2]=Da;k[_a+264>>2]=a;k[_a+516>>2]=(a|0)!=0?-2:-1;break}else{k[_a+516>>2]=0;break}else{k[U>>2]=f;k[_a+264>>2]=g;k[_a+516>>2]=(g|0)!=0?2:1}while(0);R=_a+520|0;f=be(E|0,F|0,I|0,J|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;a=L;k[R>>2]=Da;k[_a+524>>2]=a;k[_a+776>>2]=(a|0)!=0?-2:-1;break}else{k[_a+776>>2]=0;break}else{k[R>>2]=f;k[_a+524>>2]=g;k[_a+776>>2]=(g|0)!=0?2:1}while(0);j=k[D>>2]|0;D=((j|0)<0)<<31>>31;G=k[G>>2]|0;H=((G|0)<0)<<31>>31;f=be(j|0,D|0,G|0,H|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;a=L;k[Ta>>2]=Da;k[Ta+4>>2]=a;k[Ta+256>>2]=(a|0)!=0?-2:-1;break}else{k[Ta+256>>2]=0;break}else{k[Ta>>2]=f;k[Ta+4>>2]=g;k[Ta+256>>2]=(g|0)!=0?2:1}while(0);Q=Ta+260|0;h=k[P>>2]|0;l=((h|0)<0)<<31>>31;f=be(G|0,H|0,h|0,l|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;a=L;k[Q>>2]=Da;k[Ta+264>>2]=a;k[Ta+516>>2]=(a|0)!=0?-2:-1;break}else{k[Ta+516>>2]=0;break}else{k[Q>>2]=f;k[Ta+264>>2]=g;k[Ta+516>>2]=(g|0)!=0?2:1}while(0);P=Ta+520|0;f=be(j|0,D|0,h|0,l|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;a=L;k[P>>2]=Da;k[Ta+524>>2]=a;k[Ta+776>>2]=(a|0)!=0?-2:-1;break}else{k[Ta+776>>2]=0;break}else{k[P>>2]=f;k[Ta+524>>2]=g;k[Ta+776>>2]=(g|0)!=0?2:1}while(0);f=ge(K|0,M|0,E|0,F|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;a=L;k[Na>>2]=Da;k[Na+4>>2]=a;k[Na+256>>2]=(a|0)!=0?-2:-1;break}else{k[Na+256>>2]=0;break}else{k[Na>>2]=f;k[Na+4>>2]=g;k[Na+256>>2]=(g|0)!=0?2:1}while(0);E=Na+260|0;f=ge(I|0,J|0,K|0,M|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;a=L;k[E>>2]=Da;k[Na+264>>2]=a;k[Na+516>>2]=(a|0)!=0?-2:-1;break}else{k[Na+516>>2]=0;break}else{k[E>>2]=f;k[Na+264>>2]=g;k[Na+516>>2]=(g|0)!=0?2:1}while(0);f=ge(G|0,H|0,j|0,D|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;a=L;k[Oa>>2]=Da;k[Oa+4>>2]=a;k[Oa+256>>2]=(a|0)!=0?-2:-1;break}else{k[Oa+256>>2]=0;break}else{k[Oa>>2]=f;k[Oa+4>>2]=g;k[Oa+256>>2]=(g|0)!=0?2:1}while(0);j=Oa+260|0;f=ge(h|0,l|0,G|0,H|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;a=L;k[j>>2]=Da;k[Oa+264>>2]=a;k[Oa+516>>2]=(a|0)!=0?-2:-1;break}else{k[Oa+516>>2]=0;break}else{k[j>>2]=f;k[Oa+264>>2]=g;k[Oa+516>>2]=(g|0)!=0?2:1}while(0);Sc(Ea,_a,Q);Sc(Fa,U,Ta);Uc(Ma,Ea,Fa);g=k[Ma+256>>2]|0;f=(g|0)>-1?g:0-g|0;c:do switch(f|0){case 0:{f=0;m=0.0;break}case 1:{m=+((k[Ma>>2]|0)>>>0);ia=164;break}case 2:{m=+((k[Ma+4>>2]|0)>>>0)*4294967296.0+ +((k[Ma>>2]|0)>>>0);ia=164;break}default:{m=+((k[Ma+(f+-3<<2)>>2]|0)>>>0)+(+((k[Ma+(f+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Ma+(f+-2<<2)>>2]|0)>>>0))*4294967296.0;h=f<<5;f=h+-96|0;m=(g|0)<0?-m:m;if((f|0)>1023){m=m*89884656743115795.0e291;f=h+-1119|0;if((f|0)<=1023)break c;f=h+-2142|0;f=(f|0)>1023?1023:f;m=m*89884656743115795.0e291;break c}if((f|0)>=-1022)break c;m=m*2.2250738585072014e-308;f=h+926|0;if((f|0)>=-1022)break c;f=h+1948|0;f=(f|0)<-1022?-1022:f;m=m*2.2250738585072014e-308}}while(0);if((ia|0)==164){f=0;m=(g|0)<0?-m:m}Fa=ee(f+1023|0,0,52)|0;Ma=L;k[t>>2]=Fa;k[t+4>>2]=Ma;q=.5/(m*+p[t>>3]);Sc(Ga,_a,Na);Sc(Ha,Ta,Oa);Tc(Xa,Ga,Ha);Sc(Ia,U,E);Sc(Ja,Q,j);Tc(Ya,Ia,Ja);if(T|S){Sc(Ka,Xa,Q);Sc(La,Ya,Ta);Uc(Za,Ka,La);j=Za+256|0;g=k[j>>2]|0;f=(g|0)>-1?g:0-g|0;d:do switch(f|0){case 0:{f=0;m=0.0;break}case 1:{m=+((k[Za>>2]|0)>>>0);ia=175;break}case 2:{m=+((k[Za+4>>2]|0)>>>0)*4294967296.0+ +((k[Za>>2]|0)>>>0);ia=175;break}default:{m=+((k[Za+(f+-3<<2)>>2]|0)>>>0)+(+((k[Za+(f+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Za+(f+-2<<2)>>2]|0)>>>0))*4294967296.0;h=f<<5;f=h+-96|0;m=(g|0)<0?-m:m;if((f|0)>1023){m=m*89884656743115795.0e291;f=h+-1119|0;if((f|0)<=1023)break d;f=h+-2142|0;f=(f|0)>1023?1023:f;m=m*89884656743115795.0e291;break d}if((f|0)>=-1022)break d;m=m*2.2250738585072014e-308;f=h+926|0;if((f|0)>=-1022)break d;f=h+1948|0;f=(f|0)<-1022?-1022:f;m=m*2.2250738585072014e-308}}while(0);if((ia|0)==175){f=0;m=(g|0)<0?-m:m}Na=ee(f+1023|0,0,52)|0;Oa=L;k[t>>2]=Na;k[t+4>>2]=Oa;p[e>>3]=q*(m*+p[t>>3]);if(S){Sc(Pa,_a,_a);Sc(Qa,Ta,Ta);Tc(Ra,Pa,Qa);Sc(Ua,U,U);Sc(Va,Q,Q);Tc(Sa,Ua,Va);Sc(Z,Ra,Sa);Sc($,R,R);Sc(aa,P,P);Tc(_,$,aa);Sc(Wa,Z,_);g=k[Wa+256>>2]|0;f=(g|0)>-1?g:0-g|0;e:do switch(f|0){case 0:{f=0;m=0.0;break}case 1:{m=+((k[Wa>>2]|0)>>>0);ia=186;break}case 2:{m=+((k[Wa+4>>2]|0)>>>0)*4294967296.0+ +((k[Wa>>2]|0)>>>0);ia=186;break}default:{m=+((k[Wa+(f+-3<<2)>>2]|0)>>>0)+(+((k[Wa+(f+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Wa+(f+-2<<2)>>2]|0)>>>0))*4294967296.0;h=f<<5;f=h+-96|0;m=(g|0)<0?-m:m;if((f|0)>1023){m=m*89884656743115795.0e291;f=h+-1119|0;if((f|0)<=1023)break e;f=h+-2142|0;f=(f|0)>1023?1023:f;m=m*89884656743115795.0e291;break e}if((f|0)>=-1022)break e;m=m*2.2250738585072014e-308;f=h+926|0;if((f|0)>=-1022)break e;f=h+1948|0;f=(f|0)<-1022?-1022:f;m=m*2.2250738585072014e-308}}while(0);if((ia|0)==186){f=0;m=(g|0)<0?-m:m}Ua=ee(f+1023|0,0,52)|0;Va=L;k[t>>2]=Ua;k[t+4>>2]=Va;o=+X(+(m*+p[t>>3]));n=+p[e>>3];do if(!(n<0.0)){m=q*o;if(q<0.0){p[W>>3]=n-m;break}else{p[W>>3]=n+m;break}}else{Sc(ba,Za,Za);Uc(ca,ba,Wa);g=k[ca+256>>2]|0;f=(g|0)>-1?g:0-g|0;f:do switch(f|0){case 0:{f=0;m=0.0;break}case 1:{m=+((k[ca>>2]|0)>>>0);ia=200;break}case 2:{m=+((k[ca+4>>2]|0)>>>0)*4294967296.0+ +((k[ca>>2]|0)>>>0);ia=200;break}default:{m=+((k[ca+(f+-3<<2)>>2]|0)>>>0)+(+((k[ca+(f+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[ca+(f+-2<<2)>>2]|0)>>>0))*4294967296.0;h=f<<5;f=h+-96|0;m=(g|0)<0?-m:m;if((f|0)>1023){m=m*89884656743115795.0e291;f=h+-1119|0;if((f|0)<=1023)break f;f=h+-2142|0;f=(f|0)>1023?1023:f;m=m*89884656743115795.0e291;break f}if((f|0)>=-1022)break f;m=m*2.2250738585072014e-308;f=h+926|0;if((f|0)>=-1022)break f;f=h+1948|0;f=(f|0)<-1022?-1022:f;m=m*2.2250738585072014e-308}}while(0);if((ia|0)==200){f=0;m=(g|0)<0?-m:m}f=ee(f+1023|0,0,52)|0;g=L;k[t>>2]=f;k[t+4>>2]=g;n=q*(m*+p[t>>3]);g=k[j>>2]|0;f=(g|0)>-1?g:0-g|0;g:do switch(f|0){case 0:{f=0;m=0.0;break}case 1:{m=+((k[Za>>2]|0)>>>0);ia=210;break}case 2:{m=+((k[Za+4>>2]|0)>>>0)*4294967296.0+ +((k[Za>>2]|0)>>>0);ia=210;break}default:{m=+((k[Za+(f+-3<<2)>>2]|0)>>>0)+(+((k[Za+(f+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Za+(f+-2<<2)>>2]|0)>>>0))*4294967296.0;h=f<<5;f=h+-96|0;m=(g|0)<0?-m:m;if((f|0)>1023){m=m*89884656743115795.0e291;f=h+-1119|0;if((f|0)<=1023)break g;f=h+-2142|0;f=(f|0)>1023?1023:f;m=m*89884656743115795.0e291;break g}if((f|0)>=-1022)break g;m=m*2.2250738585072014e-308;f=h+926|0;if((f|0)>=-1022)break g;f=h+1948|0;f=(f|0)<-1022?-1022:f;m=m*2.2250738585072014e-308}}while(0);if((ia|0)==210){f=0;m=(g|0)<0?-m:m}Va=ee(f+1023|0,0,52)|0;Wa=L;k[t>>2]=Va;k[t+4>>2]=Wa;p[W>>3]=n/(o+m*+p[t>>3])}while(0)}}if(V){Sc(fa,Ya,_a);Sc(ga,Xa,U);Uc(Za,fa,ga);g=k[Za+256>>2]|0;f=(g|0)>-1?g:0-g|0;h:do switch(f|0){case 0:{f=0;m=0.0;break}case 1:{m=+((k[Za>>2]|0)>>>0);ia=224;break}case 2:{m=+((k[Za+4>>2]|0)>>>0)*4294967296.0+ +((k[Za>>2]|0)>>>0);ia=224;break}default:{m=+((k[Za+(f+-3<<2)>>2]|0)>>>0)+(+((k[Za+(f+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Za+(f+-2<<2)>>2]|0)>>>0))*4294967296.0;h=f<<5;f=h+-96|0;m=(g|0)<0?-m:m;if((f|0)>1023){m=m*89884656743115795.0e291;f=h+-1119|0;if((f|0)<=1023)break h;f=h+-2142|0;f=(f|0)>1023?1023:f;m=m*89884656743115795.0e291;break h}if((f|0)>=-1022)break h;m=m*2.2250738585072014e-308;f=h+926|0;if((f|0)>=-1022)break h;f=h+1948|0;f=(f|0)<-1022?-1022:f;m=m*2.2250738585072014e-308}}while(0);if((ia|0)==224){f=0;m=(g|0)<0?-m:m}Za=ee(f+1023|0,0,52)|0;_a=L;k[t>>2]=Za;k[t+4>>2]=_a;p[Y>>3]=q*(m*+p[t>>3])}}else{if(!g){if(!h){g=k[c+4>>2]|0;h=k[d+4>>2]|0;f=Pc(V,g,ea,h,U,k[b+4>>2]|0)|0;if((V|0)<(ea|0)){if((f|0)!=-1&(Pc(V,g,ea,h,T,k[b+12>>2]|0)|0)!=-1){e=0;r=gb;return e|0}}else if((f|0)!=-1){e=0;r=gb;return e|0}Qc(a+4|0,c,d,b,1,e);break}if((k[b+16>>2]|0)==(k[d+16>>2]|0)){e=0;r=gb;return e|0}f=(k[d+24>>2]&32|0)==0;if(!(k[b+24>>2]&32))if(f)ia=254;else{e=0;r=gb;return e|0}else if(!f)ia=254;if((ia|0)==254?(Pc(U,k[b+4>>2]|0,V,k[c+4>>2]|0,da,k[d+12>>2]|0)|0)!=-1:0){e=0;r=gb;return e|0}Rc(a+4|0,c,b,d,2,e);break}f=k[b+16>>2]|0;g=k[c+16>>2]|0;if(!h)if((f|0)==(g|0)){e=0;r=gb;return e|0}else{Rc(a+4|0,d,b,c,3,e);break}if(!((f|0)!=(g|0)?(g|0)!=(k[d+16>>2]|0):0)){e=0;r=gb;return e|0}O=+(T|0)-+(U|0);ya=b+12|0;J=k[ya>>2]|0;za=b+4|0;K=k[za>>2]|0;xa=+(J|0)-+(K|0);M=((U|0)<0)<<31>>31;P=((K|0)<0)<<31>>31;Q=((T|0)<0)<<31>>31;R=((J|0)<0)<<31>>31;Ca=(U|0)<0;g=be(0,0,U|0,M|0)|0;f=Ca?L:M;l=(K|0)<0;la=be(0,0,K|0,P|0)|0;Aa=l?L:P;Ba=(T|0)<0;j=be(0,0,T|0,Q|0)|0;h=Ba?L:Q;Da=(J|0)<0;ga=be(0,0,J|0,R|0)|0;f=ne((Da?ga:J)|0,(Da?L:R)|0,(Ca?g:U)|0,f|0)|0;g=L;h=ne((l?la:K)|0,Aa|0,(Ba?j:T)|0,h|0)|0;j=L;l=Ba^l;do if(Ca^Da){if(!l){Da=ge(h|0,j|0,f|0,g|0)|0;wa=-(+(Da>>>0)+4294967296.0*+(L>>>0));break}if(g>>>0>j>>>0|(g|0)==(j|0)&f>>>0>h>>>0){Da=be(f|0,g|0,h|0,j|0)|0;wa=-(+(Da>>>0)+4294967296.0*+(L>>>0));break}else{Da=be(h|0,j|0,f|0,g|0)|0;wa=+(Da>>>0)+4294967296.0*+(L>>>0);break}}else{if(l){Da=ge(h|0,j|0,f|0,g|0)|0;wa=+(Da>>>0)+4294967296.0*+(L>>>0);break}if(g>>>0<j>>>0|(g|0)==(j|0)&f>>>0<h>>>0){Da=be(h|0,j|0,f|0,g|0)|0;wa=-(+(Da>>>0)+4294967296.0*+(L>>>0));break}else{Da=be(f|0,g|0,h|0,j|0)|0;wa=+(Da>>>0)+4294967296.0*+(L>>>0);break}}while(0);B=+(S|0)-+(V|0);Aa=c+12|0;D=k[Aa>>2]|0;Ba=c+4|0;E=k[Ba>>2]|0;ra=+(D|0)-+(E|0);F=((V|0)<0)<<31>>31;G=((E|0)<0)<<31>>31;H=((S|0)<0)<<31>>31;I=((D|0)<0)<<31>>31;Ca=(V|0)<0;g=be(0,0,V|0,F|0)|0;f=Ca?L:F;l=(E|0)<0;fa=be(0,0,E|0,G|0)|0;ga=l?L:G;la=(S|0)<0;j=be(0,0,S|0,H|0)|0;h=la?L:H;Da=(D|0)<0;ca=be(0,0,D|0,I|0)|0;f=ne((Da?ca:D)|0,(Da?L:I)|0,(Ca?g:V)|0,f|0)|0;g=L;h=ne((l?fa:E)|0,ga|0,(la?j:S)|0,h|0)|0;j=L;l=la^l;do if(Ca^Da){if(!l){Da=ge(h|0,j|0,f|0,g|0)|0;sa=-(+(Da>>>0)+4294967296.0*+(L>>>0));break}if(g>>>0>j>>>0|(g|0)==(j|0)&f>>>0>h>>>0){Da=be(f|0,g|0,h|0,j|0)|0;sa=-(+(Da>>>0)+4294967296.0*+(L>>>0));break}else{Da=be(h|0,j|0,f|0,g|0)|0;sa=+(Da>>>0)+4294967296.0*+(L>>>0);break}}else{if(l){Da=ge(h|0,j|0,f|0,g|0)|0;sa=+(Da>>>0)+4294967296.0*+(L>>>0);break}if(g>>>0<j>>>0|(g|0)==(j|0)&f>>>0<h>>>0){Da=be(h|0,j|0,f|0,g|0)|0;sa=-(+(Da>>>0)+4294967296.0*+(L>>>0));break}else{Da=be(f|0,g|0,h|0,j|0)|0;sa=+(Da>>>0)+4294967296.0*+(L>>>0);break}}while(0);C=+(da|0)-+(ea|0);Ca=d+12|0;Z=k[Ca>>2]|0;Da=d+4|0;_=k[Da>>2]|0;ta=+(Z|0)-+(_|0);$=((ea|0)<0)<<31>>31;aa=((_|0)<0)<<31>>31;ba=((da|0)<0)<<31>>31;ca=((Z|0)<0)<<31>>31;ga=(ea|0)<0;g=be(0,0,ea|0,$|0)|0;f=ga?L:$;l=(_|0)<0;W=be(0,0,_|0,aa|0)|0;Y=l?L:aa;fa=(da|0)<0;j=be(0,0,da|0,ba|0)|0;h=fa?L:ba;la=(Z|0)<0;hb=be(0,0,Z|0,ca|0)|0;f=ne((la?hb:Z)|0,(la?L:ca)|0,(ga?g:ea)|0,f|0)|0;g=L;h=ne((l?W:_)|0,Y|0,(fa?j:da)|0,h|0)|0;j=L;l=fa^l;do if(ga^la){if(!l){hb=ge(h|0,j|0,f|0,g|0)|0;ua=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}if(g>>>0>j>>>0|(g|0)==(j|0)&f>>>0>h>>>0){hb=be(f|0,g|0,h|0,j|0)|0;ua=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}else{hb=be(h|0,j|0,f|0,g|0)|0;ua=+(hb>>>0)+4294967296.0*+(L>>>0);break}}else{if(l){hb=ge(h|0,j|0,f|0,g|0)|0;ua=+(hb>>>0)+4294967296.0*+(L>>>0);break}if(g>>>0<j>>>0|(g|0)==(j|0)&f>>>0<h>>>0){hb=be(h|0,j|0,f|0,g|0)|0;ua=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}else{hb=be(f|0,g|0,h|0,j|0)|0;ua=+(hb>>>0)+4294967296.0*+(L>>>0);break}}while(0);qa=+X(+(O*O+xa*xa));va=+X(+(B*B+ra*ra));pa=+X(+(C*C+ta*ta));U=be(T|0,Q|0,U|0,M|0)|0;Y=L;R=be(J|0,R|0,K|0,P|0)|0;T=L;J=be(S|0,H|0,V|0,F|0)|0;K=L;M=be(D|0,I|0,E|0,G|0)|0;P=L;W=(Y|0)<0;V=be(0,0,U|0,Y|0)|0;U=W?V:U;V=W?L:Y;Y=(T|0)<0;S=be(0,0,R|0,T|0)|0;S=Y?S:R;T=Y?L:T;R=(K|0)<0;Q=be(0,0,J|0,K|0)|0;J=R?Q:J;K=R?L:K;Q=(P|0)<0;f=be(0,0,M|0,P|0)|0;M=Q?f:M;P=Q?L:P;f=ne(M|0,P|0,U|0,V|0)|0;g=L;h=ne(J|0,K|0,S|0,T|0)|0;j=L;l=Y^R;do if(W^Q){if(!l){hb=ge(f|0,g|0,h|0,j|0)|0;w=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}if(g>>>0>j>>>0|(g|0)==(j|0)&f>>>0>h>>>0){hb=be(f|0,g|0,h|0,j|0)|0;w=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}else{hb=be(h|0,j|0,f|0,g|0)|0;w=+(hb>>>0)+4294967296.0*+(L>>>0);break}}else{if(l){hb=ge(f|0,g|0,h|0,j|0)|0;w=+(hb>>>0)+4294967296.0*+(L>>>0);break}if(g>>>0<j>>>0|(g|0)==(j|0)&f>>>0<h>>>0){hb=be(h|0,j|0,f|0,g|0)|0;w=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}else{hb=be(f|0,g|0,h|0,j|0)|0;w=+(hb>>>0)+4294967296.0*+(L>>>0);break}}while(0);D=be(da|0,ba|0,ea|0,$|0)|0;E=L;F=be(Z|0,ca|0,_|0,aa|0)|0;G=L;I=(E|0)<0;H=be(0,0,D|0,E|0)|0;D=I?H:D;E=I?L:E;H=(G|0)<0;j=be(0,0,F|0,G|0)|0;F=H?j:F;G=H?L:G;j=ne(F|0,G|0,J|0,K|0)|0;l=L;g=ne(D|0,E|0,M|0,P|0)|0;h=L;f=Q^I;do if(R^H){if(!f){hb=ge(j|0,l|0,g|0,h|0)|0;z=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}if(l>>>0>h>>>0|(l|0)==(h|0)&j>>>0>g>>>0){hb=be(j|0,l|0,g|0,h|0)|0;z=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}else{hb=be(g|0,h|0,j|0,l|0)|0;z=+(hb>>>0)+4294967296.0*+(L>>>0);break}}else{if(f){hb=ge(j|0,l|0,g|0,h|0)|0;z=+(hb>>>0)+4294967296.0*+(L>>>0);break}if(l>>>0<h>>>0|(l|0)==(h|0)&j>>>0<g>>>0){hb=be(g|0,h|0,j|0,l|0)|0;z=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}else{hb=be(j|0,l|0,g|0,h|0)|0;z=+(hb>>>0)+4294967296.0*+(L>>>0);break}}while(0);j=ne(S|0,T|0,D|0,E|0)|0;l=L;g=ne(U|0,V|0,F|0,G|0)|0;h=L;f=H^W;do if(I^Y){if(!f){hb=ge(j|0,l|0,g|0,h|0)|0;y=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}if(l>>>0>h>>>0|(l|0)==(h|0)&j>>>0>g>>>0){hb=be(j|0,l|0,g|0,h|0)|0;y=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}else{hb=be(g|0,h|0,j|0,l|0)|0;y=+(hb>>>0)+4294967296.0*+(L>>>0);break}}else{if(f){hb=ge(j|0,l|0,g|0,h|0)|0;y=+(hb>>>0)+4294967296.0*+(L>>>0);break}if(l>>>0<h>>>0|(l|0)==(h|0)&j>>>0<g>>>0){hb=be(g|0,h|0,j|0,l|0)|0;y=-(+(hb>>>0)+4294967296.0*+(L>>>0));break}else{hb=be(j|0,l|0,g|0,h|0)|0;y=+(hb>>>0)+4294967296.0*+(L>>>0);break}}while(0);m=pa*w;if(m<0.0){n=0.0-m;if(m>0.0){m=(m*4.0+0.0)/n;m=m<0.0?-m:m}else m=4.0;u=0.0;v=0.0;s=m+1.0}else{u=m+0.0;v=5.0;n=0.0;s=0.0}o=qa*z;do if(o<0.0){q=n-o;if(o>0.0|n<0.0){o=(o*4.0+n*s)/q;o=o<0.0?-o:o}else o=s<4.0?4.0:s;m=u;n=q;s=o+1.0}else{m=o+u;if(u<0.0?o>0.0|u>0.0:0){v=(u*v-o*4.0)/m;v=(v<0.0?-v:v)+1.0;break}v=v<4.0?5.0:v+1.0}while(0);o=va*y;i:do if(o<0.0){q=n-o;if(o>0.0|n<0.0){n=(o*4.0+n*s)/q;n=n<0.0?-n:n}else n=s<4.0?4.0:s;oa=q;q=m;s=n+1.0;na=v}else{q=o+m;do if(m<0.0){if(!(o>0.0|m>0.0))break;na=(m*v-o*4.0)/q;oa=n;na=(na<0.0?-na:na)+1.0;break i}while(0);oa=n;na=v<4.0?5.0:v+1.0}while(0);m=ua*w;if(m<0.0){n=0.0-m;if(m>0.0){m=(m*3.0+0.0)/n;m=m<0.0?-m:m}else m=3.0;w=0.0;x=0.0;u=m+1.0}else{w=m+0.0;x=4.0;n=0.0;u=0.0}o=wa*z;j:do if(o<0.0){v=n-o;if(o>0.0|n<0.0){m=(o*3.0+n*u)/v;m=m<0.0?-m:m}else m=u<3.0?3.0:u;n=v;u=m+1.0}else{m=o+w;do if(w<0.0){if(!(o>0.0|w>0.0))break;x=(w*x-o*3.0)/m;w=m;x=(x<0.0?-x:x)+1.0;break j}while(0);w=m;x=x<3.0?4.0:x+1.0}while(0);m=sa*y;k:do if(m<0.0){o=n-m;if(m>0.0|n<0.0){m=(m*3.0+n*u)/o;m=m<0.0?-m:m}else m=u<3.0?3.0:u;A=o;z=m+1.0;ma=w;N=x}else{o=m+w;do if(w<0.0){if(!(m>0.0|w>0.0))break;N=(w*x-m*3.0)/o;A=n;z=u;ma=o;N=(N<0.0?-N:N)+1.0;break k}while(0);A=n;z=u;ma=o;N=x<3.0?4.0:x+1.0}while(0);n=O*sa*pa;if(n<0.0){m=0.0-n;if(n>0.0){n=(n*5.0+0.0)/m;n=n<0.0?-n:n}else n=5.0;w=n+1.0;u=0.0;v=0.0}else{m=0.0;w=0.0;u=n+0.0;v=6.0}n=wa*B*pa;l:do if(n<0.0){o=u-n;if(n>0.0|u<0.0){n=(n*5.0+u*v)/o;n=n<0.0?-n:n}else n=v<5.0?5.0:v;u=o;v=n+1.0}else{o=n+m;do if(m<0.0){if(!(n>0.0|m>0.0))break;w=(m*w-n*5.0)/o;m=o;w=(w<0.0?-w:w)+1.0;break l}while(0);m=o;w=w<5.0?6.0:w+1.0}while(0);n=B*ua*qa;m:do if(n<0.0){o=m-n;if(n>0.0|m<0.0){n=(n*5.0+m*w)/o;n=n<0.0?-n:n}else n=w<5.0?5.0:w;m=o;w=n+1.0}else{o=n+u;do if(u<0.0){if(!(n>0.0|u>0.0))break;v=(u*v-n*5.0)/o;u=o;v=(v<0.0?-v:v)+1.0;break m}while(0);u=o;v=v<5.0?6.0:v+1.0}while(0);n=sa*C*qa;n:do if(n<0.0){o=u-n;if(n>0.0|u<0.0){n=(n*5.0+u*v)/o;n=n<0.0?-n:n}else n=v<5.0?5.0:v;x=o;v=n+1.0}else{o=n+m;do if(m<0.0){if(!(n>0.0|m>0.0))break;w=(m*w-n*5.0)/o;x=u;m=o;w=(w<0.0?-w:w)+1.0;break n}while(0);x=u;m=o;w=w<5.0?6.0:w+1.0}while(0);n=wa*C*va;o:do if(n<0.0){o=m-n;if(n>0.0|m<0.0){m=(n*5.0+m*w)/o;m=m<0.0?-m:m}else m=w<5.0?5.0:w;w=m+1.0;u=x}else{u=n+x;do if(x<0.0){if(!(n>0.0|x>0.0))break;v=(x*v-n*5.0)/u;o=m;v=(v<0.0?-v:v)+1.0;break o}while(0);o=m;v=v<5.0?6.0:v+1.0}while(0);m=O*ua*va;p:do if(m<0.0){n=u-m;if(m>0.0|u<0.0){m=(m*5.0+u*v)/n;m=m<0.0?-m:m}else m=v<5.0?5.0:v;ka=n;ja=m+1.0;ha=o}else{n=m+o;do if(o<0.0){if(!(m>0.0|o>0.0))break;w=(o*w-m*5.0)/n;ka=u;ja=v;ha=n;w=(w<0.0?-w:w)+1.0;break p}while(0);ka=u;ja=v;ha=n;w=w<5.0?6.0:w+1.0}while(0);n=xa*sa*pa;if(n<0.0){m=0.0-n;if(n>0.0){n=(n*5.0+0.0)/m;n=n<0.0?-n:n}else n=5.0;x=n+1.0;u=0.0;v=0.0}else{m=0.0;x=0.0;u=n+0.0;v=6.0}n=wa*ra*pa;q:do if(n<0.0){o=u-n;if(n>0.0|u<0.0){n=(n*5.0+u*v)/o;n=n<0.0?-n:n}else n=v<5.0?5.0:v;y=o;v=n+1.0}else{o=n+m;do if(m<0.0){if(!(n>0.0|m>0.0))break;x=(m*x-n*5.0)/o;y=u;m=o;x=(x<0.0?-x:x)+1.0;break q}while(0);y=u;m=o;x=x<5.0?6.0:x+1.0}while(0);n=ra*ua*qa;r:do if(n<0.0){o=m-n;if(n>0.0|m<0.0){n=(n*5.0+m*x)/o;n=n<0.0?-n:n}else n=x<5.0?5.0:x;m=o;x=n+1.0;u=y}else{u=n+y;do if(y<0.0){if(!(n>0.0|y>0.0))break;v=(y*v-n*5.0)/u;v=(v<0.0?-v:v)+1.0;break r}while(0);v=v<5.0?6.0:v+1.0}while(0);n=sa*ta*qa;s:do if(n<0.0){o=u-n;if(n>0.0|u<0.0){n=(n*5.0+u*v)/o;n=n<0.0?-n:n}else n=v<5.0?5.0:v;u=o;o=m;v=n+1.0}else{o=n+m;do if(m<0.0){if(!(n>0.0|m>0.0))break;x=(m*x-n*5.0)/o;x=(x<0.0?-x:x)+1.0;break s}while(0);x=x<5.0?6.0:x+1.0}while(0);m=wa*ta*va;t:do if(m<0.0){n=o-m;if(m>0.0|o<0.0){m=(m*5.0+o*x)/n;m=m<0.0?-m:m}else m=x<5.0?5.0:x;y=n;x=m+1.0}else{n=m+u;do if(u<0.0){if(!(m>0.0|u>0.0))break;v=(u*v-m*5.0)/n;y=o;u=n;v=(v<0.0?-v:v)+1.0;break t}while(0);y=o;u=n;v=v<5.0?6.0:v+1.0}while(0);n=xa*ua*va;u:do if(n<0.0){o=u-n;if(n>0.0|u<0.0){m=(n*5.0+u*v)/o;m=m<0.0?-m:m}else m=v<5.0?5.0:v;v=m+1.0}else{m=n+y;do if(y<0.0){if(!(n>0.0|y>0.0))break;x=(y*x-n*5.0)/m;y=m;o=u;x=(x<0.0?-x:x)+1.0;break u}while(0);y=m;o=u;x=x<5.0?6.0:x+1.0}while(0);O=A+ka;g=ka<0.0;do if(A<0.0|g){if(!(A>0.0|ka>0.0)){ia=474;break}m=(ka*ja-A*z)/O;if(!(m<0.0))break;m=-m}else ia=474;while(0);if((ia|0)==474)m=ja<z?z:ja;C=m+1.0;B=ma+ha;f=ha<0.0;do if(ma<0.0|f){if(!(ma>0.0|ha>0.0)){ia=479;break}m=(ha*w-ma*N)/B;if(!(m<0.0))break;m=-m}else ia=479;while(0);if((ia|0)==479)m=w<N?N:w;A=m+1.0;N=q-oa;do if(q<0.0|oa>0.0){if(!(q>0.0|oa<0.0)){ia=484;break}m=(q*na+oa*s)/N;if(!(m<0.0))break;m=-m}else ia=484;while(0);if((ia|0)==484)m=na<s?s:na;z=m+1.0;n=ka-ha;do if((g|ha>0.0)&(ka>0.0|f)){m=(ka*ja+ha*w)/n;if(!(m<0.0))break;m=-m}else m=ja<w?w:ja;while(0);u=n/N;s=z+(m+1.0)+1.0;n=o-y;do if(o<0.0|y>0.0){if(!(o>0.0|y<0.0)){ia=493;break}m=(o*v+y*x)/n;if(!(m<0.0))break;m=-m}else ia=493;while(0);if((ia|0)==493)m=v<x?x:v;o=n/N;n=z+(m+1.0)+1.0;q=O-B;do if(O<0.0|B>0.0){if(!(O>0.0|B<0.0)){ia=498;break}m=(O*C+B*A)/q;if(!(m<0.0))break;m=-m}else ia=498;while(0);if((ia|0)==498)m=C<A?A:C;ga=s>64.0;da=n>64.0;ia=z+(m+1.0)+1.0>64.0;p[e>>3]=u;fa=e+8|0;p[fa>>3]=o;la=e+16|0;p[la>>3]=q/N;i[e+24>>0]=1;if(!(ga|da|ia))break;P=k[$a>>2]|0;Q=((P|0)<0)<<31>>31;R=k[b>>2]|0;S=((R|0)<0)<<31>>31;f=be(P|0,Q|0,R|0,S|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){ea=be(0,0,f|0,g|0)|0;hb=L;k[_a>>2]=ea;k[_a+4>>2]=hb;k[_a+256>>2]=(hb|0)!=0?-2:-1;break}else{k[_a+256>>2]=0;break}else{k[_a>>2]=f;k[_a+4>>2]=g;k[_a+256>>2]=(g|0)!=0?2:1}while(0);ea=_a+260|0;T=k[cb>>2]|0;U=((T|0)<0)<<31>>31;V=k[c>>2]|0;W=((V|0)<0)<<31>>31;f=be(T|0,U|0,V|0,W|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){ca=be(0,0,f|0,g|0)|0;hb=L;k[ea>>2]=ca;k[_a+264>>2]=hb;k[_a+516>>2]=(hb|0)!=0?-2:-1;break}else{k[_a+516>>2]=0;break}else{k[ea>>2]=f;k[_a+264>>2]=g;k[_a+516>>2]=(g|0)!=0?2:1}while(0);ca=_a+520|0;Y=k[fb>>2]|0;Z=((Y|0)<0)<<31>>31;_=k[d>>2]|0;$=((_|0)<0)<<31>>31;f=be(Y|0,Z|0,_|0,$|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){ba=be(0,0,f|0,g|0)|0;hb=L;k[ca>>2]=ba;k[_a+524>>2]=hb;k[_a+776>>2]=(hb|0)!=0?-2:-1;break}else{k[_a+776>>2]=0;break}else{k[ca>>2]=f;k[_a+524>>2]=g;k[_a+776>>2]=(g|0)!=0?2:1}while(0);K=k[ya>>2]|0;M=((K|0)<0)<<31>>31;G=k[za>>2]|0;H=((G|0)<0)<<31>>31;f=be(K|0,M|0,G|0,H|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){za=be(0,0,f|0,g|0)|0;hb=L;k[Ta>>2]=za;k[Ta+4>>2]=hb;k[Ta+256>>2]=(hb|0)!=0?-2:-1;break}else{k[Ta+256>>2]=0;break}else{k[Ta>>2]=f;k[Ta+4>>2]=g;k[Ta+256>>2]=(g|0)!=0?2:1}while(0);ba=Ta+260|0;I=k[Aa>>2]|0;J=((I|0)<0)<<31>>31;l=k[Ba>>2]|0;D=((l|0)<0)<<31>>31;f=be(I|0,J|0,l|0,D|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Ba=be(0,0,f|0,g|0)|0;hb=L;k[ba>>2]=Ba;k[Ta+264>>2]=hb;k[Ta+516>>2]=(hb|0)!=0?-2:-1;break}else{k[Ta+516>>2]=0;break}else{k[ba>>2]=f;k[Ta+264>>2]=g;k[Ta+516>>2]=(g|0)!=0?2:1}while(0);aa=Ta+520|0;E=k[Ca>>2]|0;F=((E|0)<0)<<31>>31;h=k[Da>>2]|0;j=((h|0)<0)<<31>>31;f=be(E|0,F|0,h|0,j|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;hb=L;k[aa>>2]=Da;k[Ta+524>>2]=hb;k[Ta+776>>2]=(hb|0)!=0?-2:-1;break}else{k[Ta+776>>2]=0;break}else{k[aa>>2]=f;k[Ta+524>>2]=g;k[Ta+776>>2]=(g|0)!=0?2:1}while(0);hb=ne(K|0,M|0,R|0,S|0)|0;g=L;f=ne(P|0,Q|0,G|0,H|0)|0;f=be(hb|0,g|0,f|0,L|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;hb=L;k[Na>>2]=Da;k[Na+4>>2]=hb;k[Na+256>>2]=(hb|0)!=0?-2:-1;break}else{k[Na+256>>2]=0;break}else{k[Na>>2]=f;k[Na+4>>2]=g;k[Na+256>>2]=(g|0)!=0?2:1}while(0);G=Na+260|0;hb=ne(I|0,J|0,V|0,W|0)|0;g=L;f=ne(T|0,U|0,l|0,D|0)|0;f=be(hb|0,g|0,f|0,L|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;hb=L;k[G>>2]=Da;k[Na+264>>2]=hb;k[Na+516>>2]=(hb|0)!=0?-2:-1;break}else{k[Na+516>>2]=0;break}else{k[G>>2]=f;k[Na+264>>2]=g;k[Na+516>>2]=(g|0)!=0?2:1}while(0);D=Na+520|0;hb=ne(E|0,F|0,_|0,$|0)|0;g=L;f=ne(Y|0,Z|0,h|0,j|0)|0;f=be(hb|0,g|0,f|0,L|0)|0;g=L;do if(!((g|0)>0|(g|0)==0&f>>>0>0))if((g|0)<0){Da=be(0,0,f|0,g|0)|0;hb=L;k[D>>2]=Da;k[Na+524>>2]=hb;k[Na+776>>2]=(hb|0)!=0?-2:-1;break}else{k[Na+776>>2]=0;break}else{k[D>>2]=f;k[Na+524>>2]=g;k[Na+776>>2]=(g|0)!=0?2:1}while(0);Sc(Fa,_a,_a);Sc(Xa,Ta,Ta);Tc(Ea,Fa,Xa);fe(Ma|0,Ea|0,260)|0;Sc(Fa,ea,ea);Sc(Xa,ba,ba);Tc(Ea,Fa,Xa);fe(Ma+260|0,Ea|0,260)|0;Sc(Fa,ca,ca);Sc(Xa,aa,aa);Tc(Ea,Fa,Xa);fe(Ma+520|0,Ea|0,260)|0;Sc(Ha,ea,aa);Sc(Ya,ca,ba);Uc(Ga,Ha,Ya);fe(Oa|0,Ga|0,260)|0;h=Oa+260|0;Sc(Ha,ca,Ta);Sc(Ya,_a,aa);Uc(Ga,Ha,Ya);fe(h|0,Ga|0,260)|0;j=Oa+520|0;Sc(Ha,_a,ba);Sc(Ya,ea,Ta);Uc(Ga,Ha,Ya);fe(j|0,Ga|0,260)|0;l=a+4|0;Vc(Ia,l,Oa,Ma);m=+p[Ia>>3];g=k[Ia+8>>2]|0;do if((g|0)>1023){m=m*89884656743115795.0e291;f=g+-1023|0;if((f|0)<=1023)break;f=g+-2046|0;f=(f|0)>1023?1023:f;m=m*89884656743115795.0e291}else{if((g|0)>=-1022){f=g;break}m=m*2.2250738585072014e-308;f=g+1022|0;if((f|0)>=-1022)break;f=g+2044|0;f=(f|0)<-1022?-1022:f;m=m*2.2250738585072014e-308}while(0);Ya=ee(f+1023|0,0,52)|0;hb=L;k[t>>2]=Ya;k[t+4>>2]=hb;n=m*+p[t>>3];if(da){Sc(Za,ba,D);Sc(Ka,aa,G);Uc(Ja,Za,Ka);fe(Oa|0,Ja|0,260)|0;Sc(Za,aa,Na);Sc(Ka,Ta,D);Uc(Ja,Za,Ka);fe(h|0,Ja|0,260)|0;Sc(Za,Ta,G);Sc(Ka,ba,Na);Uc(Ja,Za,Ka);fe(j|0,Ja|0,260)|0;Vc(La,l,Oa,Ma);m=+p[La>>3];g=k[La+8>>2]|0;do if((g|0)>1023){m=m*89884656743115795.0e291;f=g+-1023|0;if((f|0)<=1023)break;f=g+-2046|0;f=(f|0)>1023?1023:f;m=m*89884656743115795.0e291}else{if((g|0)>=-1022){f=g;break}m=m*2.2250738585072014e-308;f=g+1022|0;if((f|0)>=-1022)break;f=g+2044|0;f=(f|0)<-1022?-1022:f;m=m*2.2250738585072014e-308}while(0);Za=ee(f+1023|0,0,52)|0;hb=L;k[t>>2]=Za;k[t+4>>2]=hb;p[fa>>3]=m*+p[t>>3]/n}do if(ga|ia){f=Oa+780|0;k[Oa+1036>>2]=0;Sc(Pa,ea,D);Sc(Qa,ca,G);Uc(Wa,Pa,Qa);fe(Oa|0,Wa|0,260)|0;if(ia){Sc(Sa,Oa,Ta);Tc(Ra,f,Sa);fe(f|0,Ra|0,260)|0;Sc(Pa,ca,Na);Sc(Qa,_a,D);Uc(Wa,Pa,Qa);fe(h|0,Wa|0,260)|0;Sc(Sa,h,ba);Tc(Ra,f,Sa);fe(f|0,Ra|0,260)|0;Sc(Pa,_a,G);Sc(Qa,ea,Na);Uc(Wa,Pa,Qa);fe(j|0,Wa|0,260)|0;Sc(Sa,j,aa);Tc(Ra,f,Sa);fe(f|0,Ra|0,260)|0}else{Sc(Pa,ca,Na);Sc(Qa,_a,D);Uc(Wa,Pa,Qa);fe(h|0,Wa|0,260)|0;Sc(Pa,_a,G);Sc(Qa,ea,Na);Uc(Wa,Pa,Qa);fe(j|0,Wa|0,260)|0}if(ga){Vc(Ua,l,Oa,Ma);m=+p[Ua>>3];g=k[Ua+8>>2]|0;do if((g|0)>1023){m=m*89884656743115795.0e291;f=g+-1023|0;if((f|0)<=1023)break;f=g+-2046|0;f=(f|0)>1023?1023:f;m=m*89884656743115795.0e291}else{if((g|0)>=-1022){f=g;break}m=m*2.2250738585072014e-308;f=g+1022|0;if((f|0)>=-1022)break;f=g+2044|0;f=(f|0)<-1022?-1022:f;m=m*2.2250738585072014e-308}while(0);_a=ee(f+1023|0,0,52)|0;hb=L;k[t>>2]=_a;k[t+4>>2]=hb;p[e>>3]=m*+p[t>>3]/n}if(!ia)break;k[Ma+780>>2]=1;k[Ma+1036>>2]=1;Wc(Va,l,Oa,Ma);m=+p[Va>>3];g=k[Va+8>>2]|0;do if((g|0)>1023){m=m*89884656743115795.0e291;f=g+-1023|0;if((f|0)<=1023)break;f=g+-2046|0;f=(f|0)>1023?1023:f;m=m*89884656743115795.0e291}else{if((g|0)>=-1022){f=g;break}m=m*2.2250738585072014e-308;f=g+1022|0;if((f|0)>=-1022)break;f=g+2044|0;f=(f|0)<-1022?-1022:f;m=m*2.2250738585072014e-308}while(0);_a=ee(f+1023|0,0,52)|0;hb=L;k[t>>2]=_a;k[t+4>>2]=hb;p[la>>3]=m*+p[t>>3]/n}while(0)}while(0);if((k[b>>2]|0)==(k[$a>>2]|0)?(ab=k[b+4>>2]|0,bb=k[b+12>>2]|0,(ab|0)!=(bb|0)):0){f=(k[b+24>>2]&32|0)!=0;h=e+8|0;g=k[h>>2]|0;h=k[h+4>>2]|0;p[t>>3]=+((f?bb:ab)|0);$a=k[t>>2]|0;_a=k[t+4>>2]|0;hb=(h|0)>-1|(h|0)==-1&g>>>0>4294967295;b=be(0,-2147483648,g|0,h|0)|0;g=hb?b:g;h=hb?L:h;hb=(_a|0)>-1|(_a|0)==-1&$a>>>0>4294967295;b=be(0,-2147483648,$a|0,_a|0)|0;$a=hb?b:$a;_a=hb?L:_a;hb=be(g|0,h|0,$a|0,_a|0)|0;b=L;if((h>>>0>_a>>>0|(h|0)==(_a|0)&g>>>0>$a>>>0)&(b>>>0>0|(b|0)==0&hb>>>0>64)){hb=0;r=gb;return hb|0}p[t>>3]=+((f?ab:bb)|0);$a=k[t>>2]|0;_a=k[t+4>>2]|0;ab=(_a|0)>-1|(_a|0)==-1&$a>>>0>4294967295;b=be(0,-2147483648,$a|0,_a|0)|0;$a=ab?b:$a;_a=ab?L:_a;ab=be(g|0,h|0,$a|0,_a|0)|0;b=L;hb=be($a|0,_a|0,g|0,h|0)|0;bb=L;if(((h>>>0>_a>>>0|(h|0)==(_a|0)&g>>>0>$a>>>0?(b>>>0>0|(b|0)==0&ab>>>0>64)<<31>>31:(bb>>>0>0|(bb|0)==0&hb>>>0>64)&1)|0)==1){hb=0;r=gb;return hb|0}}if((k[c>>2]|0)==(k[cb>>2]|0)?(db=k[c+4>>2]|0,eb=k[c+12>>2]|0,(db|0)!=(eb|0)):0){f=(k[c+24>>2]&32|0)!=0;h=e+8|0;g=k[h>>2]|0;h=k[h+4>>2]|0;p[t>>3]=+((f?eb:db)|0);cb=k[t>>2]|0;bb=k[t+4>>2]|0;hb=(h|0)>-1|(h|0)==-1&g>>>0>4294967295;c=be(0,-2147483648,g|0,h|0)|0;g=hb?c:g;h=hb?L:h;hb=(bb|0)>-1|(bb|0)==-1&cb>>>0>4294967295;c=be(0,-2147483648,cb|0,bb|0)|0;cb=hb?c:cb;bb=hb?L:bb;hb=be(g|0,h|0,cb|0,bb|0)|0;c=L;if((h>>>0>bb>>>0|(h|0)==(bb|0)&g>>>0>cb>>>0)&(c>>>0>0|(c|0)==0&hb>>>0>64)){hb=0;r=gb;return hb|0}p[t>>3]=+((f?db:eb)|0);cb=k[t>>2]|0;bb=k[t+4>>2]|0;db=(bb|0)>-1|(bb|0)==-1&cb>>>0>4294967295;c=be(0,-2147483648,cb|0,bb|0)|0;cb=db?c:cb;bb=db?L:bb;db=be(g|0,h|0,cb|0,bb|0)|0;c=L;hb=be(cb|0,bb|0,g|0,h|0)|0;eb=L;if(((h>>>0>bb>>>0|(h|0)==(bb|0)&g>>>0>cb>>>0?(c>>>0>0|(c|0)==0&db>>>0>64)<<31>>31:(eb>>>0>0|(eb|0)==0&hb>>>0>64)&1)|0)==1){hb=0;r=gb;return hb|0}}if((k[d>>2]|0)!=(k[fb>>2]|0)){hb=1;r=gb;return hb|0}j=k[d+4>>2]|0;l=k[d+12>>2]|0;if((j|0)==(l|0)){hb=1;r=gb;return hb|0}h=(k[d+24>>2]&32|0)!=0;g=e+8|0;f=k[g>>2]|0;g=k[g+4>>2]|0;p[t>>3]=+((h?l:j)|0);d=k[t>>2]|0;fb=k[t+4>>2]|0;hb=(g|0)>-1|(g|0)==-1&f>>>0>4294967295;e=be(0,-2147483648,f|0,g|0)|0;f=hb?e:f;g=hb?L:g;hb=(fb|0)>-1|(fb|0)==-1&d>>>0>4294967295;e=be(0,-2147483648,d|0,fb|0)|0;d=hb?e:d;fb=hb?L:fb;hb=be(f|0,g|0,d|0,fb|0)|0;e=L;if((g>>>0>fb>>>0|(g|0)==(fb|0)&f>>>0>d>>>0)&(e>>>0>0|(e|0)==0&hb>>>0>64)){hb=0;r=gb;return hb|0}p[t>>3]=+((h?j:l)|0);eb=k[t>>2]|0;db=k[t+4>>2]|0;d=(db|0)>-1|(db|0)==-1&eb>>>0>4294967295;fb=be(0,-2147483648,eb|0,db|0)|0;eb=d?fb:eb;db=d?L:db;d=be(f|0,g|0,eb|0,db|0)|0;fb=L;hb=be(eb|0,db|0,f|0,g|0)|0;e=L;hb=((g>>>0>db>>>0|(g|0)==(db|0)&f>>>0>eb>>>0?(fb>>>0>0|(fb|0)==0&d>>>0>64)<<31>>31:(e>>>0>0|(e|0)==0&hb>>>0>64)&1)|0)!=1;r=gb;return hb|0}function Oc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0.0,h=0,i=0.0,j=0,l=0,m=0,n=0,o=0,q=0;f=a+16|0;c=_d(48)|0;a:do if(!c){while(1){c=k[35]|0;k[35]=c+0;if(!c)break;Xa[c&0]();c=_d(48)|0;if(c)break a}q=ya(4)|0;k[q>>2]=128;La(q|0,8,1)}while(0);e=c+8|0;d=e+40|0;do{k[e>>2]=k[b>>2];e=e+4|0;b=b+4|0}while((e|0)<(d|0));k[c>>2]=f;q=a+20|0;n=k[q>>2]|0;k[c+4>>2]=n;k[n>>2]=c;k[q>>2]=c;n=a+24|0;k[n>>2]=(k[n>>2]|0)+1;n=a+4|0;b=k[n>>2]|0;l=a+8|0;d=k[l>>2]|0;if(b>>>0>=d>>>0){m=k[a>>2]|0;e=m;j=b-e|0;f=j>>2;h=f+1|0;if(h>>>0>1073741823)xa(1340,1363,303,1438);b=d-e|0;if(b>>2>>>0<536870911){b=b>>1;b=b>>>0<h>>>0?h:b;if(!b){b=0;d=0}else o=11}else{b=1073741823;o=11}if((o|0)==11){e=b<<2;e=(e|0)==0?1:e;d=_d(e)|0;b:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break b}q=ya(4)|0;k[q>>2]=128;La(q|0,8,1)}while(0)}k[d+(f<<2)>>2]=c;c=d+(h<<2)|0;fe(d|0,m|0,j|0)|0;k[a>>2]=d;k[n>>2]=c;k[l>>2]=d+(b<<2);if(m){$d(m);c=k[n>>2]|0}}else{k[b>>2]=c;c=(k[n>>2]|0)+4|0;k[n>>2]=c}j=k[a>>2]|0;o=c-j|0;f=o>>2;if((o|0)<=4){q=k[q>>2]|0;q=q+8|0;return q|0}h=(f+-2|0)/2|0;a=j+(h<<2)|0;d=c+-4|0;b=k[a>>2]|0;c=k[d>>2]|0;i=+p[c+24>>3];g=+p[b+24>>3];e=b;l=c;do if(i!=g)if(i<g){c=c+16|0;break}else{q=k[q>>2]|0;q=q+8|0;return q|0}else{c=c+16|0;if(!(+p[c>>3]<+p[b+16>>3])){q=k[q>>2]|0;q=q+8|0;return q|0}}while(0);k[d>>2]=e;c:do if((f+-1|0)>>>0>=3)while(1){b=h;h=(h+-1|0)/2|0;d=j+(h<<2)|0;e=k[d>>2]|0;g=+p[e+24>>3];f=e;if(i!=g){if(!(i<g))break c}else if(!(+p[c>>3]<+p[e+16>>3]))break c;k[a>>2]=f;if(b>>>0<3){a=d;break}else a=d}while(0);k[a>>2]=l;q=k[q>>2]|0;q=q+8|0;return q|0}function Pc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0.0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=((c|0)<0)<<31>>31;n=be(a|0,((a|0)<0)<<31>>31|0,c|0,j|0)|0;a=L;j=be(c|0,j|0,e|0,((e|0)<0)<<31>>31|0)|0;c=L;p=((d|0)<0)<<31>>31;l=be(b|0,((b|0)<0)<<31>>31|0,d|0,p|0)|0;k=L;p=be(d|0,p|0,f|0,((f|0)<0)<<31>>31|0)|0;o=L;h=(a|0)<0;b=be(0,0,n|0,a|0)|0;a=h?L:a;e=(k|0)<0;m=be(0,0,l|0,k|0)|0;k=e?L:k;i=(c|0)<0;d=be(0,0,j|0,c|0)|0;c=i?L:c;f=(o|0)<0;q=be(0,0,p|0,o|0)|0;a=ne((f?q:p)|0,(f?L:o)|0,(h?b:n)|0,a|0)|0;b=L;c=ne((e?m:l)|0,k|0,(i?d:j)|0,c|0)|0;d=L;e=i^e;do if(h^f){if(!e){q=ge(a|0,b|0,c|0,d|0)|0;g=-(+(q>>>0)+4294967296.0*+(L>>>0));break}if(b>>>0>d>>>0|(b|0)==(d|0)&a>>>0>c>>>0){q=be(a|0,b|0,c|0,d|0)|0;g=-(+(q>>>0)+4294967296.0*+(L>>>0));break}else{q=be(c|0,d|0,a|0,b|0)|0;g=+(q>>>0)+4294967296.0*+(L>>>0);break}}else{if(e){q=ge(a|0,b|0,c|0,d|0)|0;g=+(q>>>0)+4294967296.0*+(L>>>0);break}if(b>>>0<d>>>0|(b|0)==(d|0)&a>>>0<c>>>0){q=be(c|0,d|0,a|0,b|0)|0;g=-(+(q>>>0)+4294967296.0*+(L>>>0));break}else{q=be(a|0,b|0,c|0,d|0)|0;g=+(q>>>0)+4294967296.0*+(L>>>0);break}}while(0);return (g==0.0?0:g<0.0?-1:1)|0}function Qc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0.0,h=0,j=0,l=0,m=0.0,n=0,o=0,q=0,s=0,u=0,v=0,w=0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0,D=0.0,E=0.0,F=0.0,G=0,H=0.0,I=0,J=0,K=0.0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,Y=0,Z=0,_=0,$=0,aa=0.0,ba=0.0,ca=0.0,da=0.0,ea=0.0,fa=0.0,ga=0.0,ha=0.0,ia=0.0,ja=0.0,ka=0.0,la=0.0,ma=0.0,na=0.0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0;Ib=r;r=r+18272|0;bb=Ib+18008|0;Eb=Ib+16968|0;Fb=Ib+15928|0;Fa=Ib+15664|0;Ga=Ib+15404|0;Gb=Ib+15144|0;pa=Ib+14884|0;qa=Ib+14624|0;ib=Ib+14364|0;rb=Ib+14104|0;hb=Ib+13844|0;pb=Ib+13584|0;zb=Ib+13324|0;ra=Ib+13064|0;sa=Ib+12804|0;Cb=Ib+12544|0;ta=Ib+12284|0;ua=Ib+12024|0;Da=Ib+11764|0;Ea=Ib+11504|0;Xa=Ib+11244|0;xa=Ib+10984|0;za=Ib+10724|0;Ya=Ib+10464|0;Ba=Ib+10204|0;Ca=Ib+9944|0;yb=Ib+9684|0;Bb=Ib+9424|0;Ha=Ib+9164|0;Ia=Ib+8904|0;Ja=Ib+8644|0;Ka=Ib+8384|0;La=Ib+8124|0;Ma=Ib+7864|0;Na=Ib+7604|0;Oa=Ib+7344|0;Pa=Ib+7084|0;Qa=Ib+6824|0;Ra=Ib+6564|0;Za=Ib+6304|0;_a=Ib+6044|0;$a=Ib+5784|0;ab=Ib+5524|0;Db=Ib+48|0;Sa=Ib+5264|0;Ta=Ib+5004|0;Ua=Ib+4744|0;Va=Ib+4484|0;Wa=Ib+4224|0;cb=Ib+3964|0;db=Ib+3704|0;eb=Ib+3444|0;fb=Ib+3184|0;gb=Ib+2924|0;jb=Ib+32|0;kb=Ib+2664|0;lb=Ib+2404|0;mb=Ib+2144|0;nb=Ib+1884|0;ob=Ib+1624|0;qb=Ib+16|0;sb=Ib+1364|0;tb=Ib+1104|0;ub=Ib+844|0;vb=Ib+584|0;wb=Ib+324|0;xb=Ib+64|0;Ab=Ib;wa=d+12|0;v=k[wa>>2]|0;oa=d+4|0;q=k[oa>>2]|0;la=+(q|0);ma=+(v|0)-la;M=k[d>>2]|0;ja=+(M|0);Aa=d+8|0;N=k[Aa>>2]|0;na=ja-+(N|0);ya=c+4|0;O=k[ya>>2]|0;ga=+(O|0);va=b+4|0;P=k[va>>2]|0;ha=+(P|0);ba=ga-ha;Q=k[b>>2]|0;F=+(Q|0);R=k[c>>2]|0;aa=+(R|0);ia=F-aa;w=((v|0)<0)<<31>>31;s=((q|0)<0)<<31>>31;Z=be(v|0,w|0,q|0,s|0)|0;_=L;S=((M|0)<0)<<31>>31;T=((N|0)<0)<<31>>31;G=be(M|0,S|0,N|0,T|0)|0;I=L;U=((R|0)<0)<<31>>31;V=((Q|0)<0)<<31>>31;n=be(R|0,U|0,Q|0,V|0)|0;l=L;W=((O|0)<0)<<31>>31;Y=((P|0)<0)<<31>>31;j=be(O|0,W|0,P|0,Y|0)|0;h=L;$=(_|0)<0;J=be(0,0,Z|0,_|0)|0;Z=$?J:Z;_=$?L:_;J=(I|0)<0;o=be(0,0,G|0,I|0)|0;G=J?o:G;I=J?L:I;o=(l|0)<0;Jb=be(0,0,n|0,l|0)|0;l=o?L:l;u=(h|0)<0;Kb=be(0,0,j|0,h|0)|0;h=ne((u?Kb:j)|0,(u?L:h)|0,Z|0,_|0)|0;j=L;l=ne((o?Jb:n)|0,l|0,G|0,I|0)|0;n=L;o=J^o;do if($^u){if(!o){Kb=ge(l|0,n|0,h|0,j|0)|0;E=-(+(Kb>>>0)+4294967296.0*+(L>>>0));break}if(j>>>0>n>>>0|(j|0)==(n|0)&h>>>0>l>>>0){Kb=be(h|0,j|0,l|0,n|0)|0;E=-(+(Kb>>>0)+4294967296.0*+(L>>>0));break}else{Kb=be(l|0,n|0,h|0,j|0)|0;E=+(Kb>>>0)+4294967296.0*+(L>>>0);break}}else{if(o){Kb=ge(l|0,n|0,h|0,j|0)|0;E=+(Kb>>>0)+4294967296.0*+(L>>>0);break}if(j>>>0<n>>>0|(j|0)==(n|0)&h>>>0<l>>>0){Kb=be(l|0,n|0,h|0,j|0)|0;E=-(+(Kb>>>0)+4294967296.0*+(L>>>0));break}else{Kb=be(h|0,j|0,l|0,n|0)|0;E=+(Kb>>>0)+4294967296.0*+(L>>>0);break}}while(0);q=be(q|0,s|0,v|0,w|0)|0;s=L;n=be(v|0,w|0,P|0,Y|0)|0;l=L;j=be(N|0,T|0,Q|0,V|0)|0;h=L;u=(s|0)<0;o=be(0,0,q|0,s|0)|0;q=u?o:q;s=u?L:s;o=(l|0)<0;Jb=be(0,0,n|0,l|0)|0;l=o?L:l;Kb=(h|0)<0;Lb=be(0,0,j|0,h|0)|0;h=ne((Kb?Lb:j)|0,(Kb?L:h)|0,q|0,s|0)|0;j=L;l=ne((o?Jb:n)|0,l|0,G|0,I|0)|0;n=L;o=J^o;do if(u^Kb){if(!o){Lb=ge(h|0,j|0,l|0,n|0)|0;D=-(+(Lb>>>0)+4294967296.0*+(L>>>0));break}if(j>>>0>n>>>0|(j|0)==(n|0)&h>>>0>l>>>0){Lb=be(h|0,j|0,l|0,n|0)|0;D=-(+(Lb>>>0)+4294967296.0*+(L>>>0));break}else{Lb=be(l|0,n|0,h|0,j|0)|0;D=+(Lb>>>0)+4294967296.0*+(L>>>0);break}}else{if(o){Lb=ge(h|0,j|0,l|0,n|0)|0;D=+(Lb>>>0)+4294967296.0*+(L>>>0);break}if(j>>>0<n>>>0|(j|0)==(n|0)&h>>>0<l>>>0){Lb=be(l|0,n|0,h|0,j|0)|0;D=-(+(Lb>>>0)+4294967296.0*+(L>>>0));break}else{Lb=be(h|0,j|0,l|0,n|0)|0;D=+(Lb>>>0)+4294967296.0*+(L>>>0);break}}while(0);l=be(v|0,w|0,O|0,W|0)|0;j=L;o=be(N|0,T|0,R|0,U|0)|0;n=L;h=(j|0)<0;Kb=be(0,0,l|0,j|0)|0;j=h?L:j;Lb=(n|0)<0;Jb=be(0,0,o|0,n|0)|0;n=ne((Lb?Jb:o)|0,(Lb?L:n)|0,q|0,s|0)|0;o=L;j=ne((h?Kb:l)|0,j|0,G|0,I|0)|0;l=L;h=J^h;do if(u^Lb){if(!h){Lb=ge(n|0,o|0,j|0,l|0)|0;z=-(+(Lb>>>0)+4294967296.0*+(L>>>0));break}if(o>>>0>l>>>0|(o|0)==(l|0)&n>>>0>j>>>0){Lb=be(n|0,o|0,j|0,l|0)|0;z=-(+(Lb>>>0)+4294967296.0*+(L>>>0));break}else{Lb=be(j|0,l|0,n|0,o|0)|0;z=+(Lb>>>0)+4294967296.0*+(L>>>0);break}}else{if(h){Lb=ge(n|0,o|0,j|0,l|0)|0;z=+(Lb>>>0)+4294967296.0*+(L>>>0);break}if(o>>>0<l>>>0|(o|0)==(l|0)&n>>>0<j>>>0){Lb=be(j|0,l|0,n|0,o|0)|0;z=-(+(Lb>>>0)+4294967296.0*+(L>>>0));break}else{Lb=be(n|0,o|0,j|0,l|0)|0;z=+(Lb>>>0)+4294967296.0*+(L>>>0);break}}while(0);o=be(P|0,Y|0,O|0,W|0)|0;n=L;l=be(Q|0,V|0,R|0,U|0)|0;j=L;V=be(N|0,T|0,M|0,S|0)|0;W=L;Kb=(n|0)<0;Y=be(0,0,o|0,n|0)|0;n=Kb?L:n;h=(j|0)<0;Jb=be(0,0,l|0,j|0)|0;j=h?L:j;Lb=(W|0)<0;U=be(0,0,V|0,W|0)|0;n=ne((Lb?U:V)|0,(Lb?L:W)|0,(Kb?Y:o)|0,n|0)|0;o=L;j=ne(Z|0,_|0,(h?Jb:l)|0,j|0)|0;l=L;h=h^$;do if(Kb^Lb){if(!h){Lb=ge(n|0,o|0,j|0,l|0)|0;y=-(+(Lb>>>0)+4294967296.0*+(L>>>0));break}if(o>>>0>l>>>0|(o|0)==(l|0)&n>>>0>j>>>0){Lb=be(n|0,o|0,j|0,l|0)|0;y=-(+(Lb>>>0)+4294967296.0*+(L>>>0));break}else{Lb=be(j|0,l|0,n|0,o|0)|0;y=+(Lb>>>0)+4294967296.0*+(L>>>0);break}}else{if(h){Lb=ge(n|0,o|0,j|0,l|0)|0;y=+(Lb>>>0)+4294967296.0*+(L>>>0);break}if(o>>>0<l>>>0|(o|0)==(l|0)&n>>>0<j>>>0){Lb=be(j|0,l|0,n|0,o|0)|0;y=-(+(Lb>>>0)+4294967296.0*+(L>>>0));break}else{Lb=be(n|0,o|0,j|0,l|0)|0;y=+(Lb>>>0)+4294967296.0*+(L>>>0);break}}while(0);ka=1.0/+X(+(ma*ma+na*na));do if(y==0.0){m=E/(D*8.0);if(m<0.0){g=0.0-m;if(m>0.0){m=(m*4.0+0.0)/g;m=m<0.0?-m:m}else m=4.0;A=g;z=m+1.0;y=0.0;x=0.0}else{A=0.0;z=0.0;y=m+0.0;x=5.0}g=D/(E*2.0);if(g<0.0){m=y-g;if(y<0.0|g>0.0){g=(y*x+g*4.0)/m;g=g<0.0?-g:g}else g=x<4.0?4.0:x;x=g+1.0;K=z;y=m;H=A;break}else{m=A+g;if(A<0.0?A>0.0|g>0.0:0){K=(A*z-g*4.0)/m;K=(K<0.0?-K:K)+1.0;H=m;break}K=z<4.0?5.0:z+1.0;H=m;break}}else{m=y*y;m=+X(+(z*(D*(E*E+m))))/m;h=m<0.0;do if((e|0)==2){if(!h){C=0.0;x=0.0;B=m+0.0;A=10.0;break}g=0.0-m;if(m>0.0){m=(m*9.0+0.0)/g;m=m<0.0?-m:m}else m=9.0;C=g;x=m+1.0;B=0.0;A=0.0}else{if(!h){C=m+0.0;x=10.0;B=0.0;A=0.0;break}g=0.0-m;if(m>0.0){m=(m*9.0+0.0)/g;m=m<0.0?-m:m}else m=9.0;C=0.0;x=0.0;B=g;A=m+1.0}while(0);m=D+z;if(D<0.0|z<0.0?D>0.0|z>0.0:0){g=(D-z)/m;if(g<0.0)g=-g}else g=1.0;m=E*m/(y*(y*2.0));g=g+1.0+1.0+1.0+4.0+1.0;if(m<0.0){z=B-m;if(B<0.0|m>0.0){g=(B*A+m*g)/z;g=g<0.0?-g:g}else g=A<g?g:A;K=g+1.0;y=C;H=z;break}else{y=C+m;if(C<0.0?C>0.0|m>0.0:0){x=(C*x-m*g)/y;x=(x<0.0?-x:x)+1.0;K=A;H=B;break}x=(x<g?g:x)+1.0;K=A;H=B;break}}while(0);g=(F+aa)*.5;if(g<0.0){m=0.0-g;if(g>0.0){g=(g*0.0+0.0)/m;g=g<0.0?-g:g}else g=0.0;C=0.0;D=0.0;F=g+1.0}else{C=g+0.0;D=1.0;m=0.0;F=0.0}if(ba<0.0){A=-ba;g=x;E=y*A;z=K;A=H*A}else{g=K;E=ba*H;z=x;A=ba*y}B=g+0.0+1.0;g=z+0.0+1.0;fa=C+A;if(C<0.0|A<0.0?C>0.0|A>0.0:0){g=(C*D-A*g)/fa;g=g<0.0?-g:g}else g=D<g?g:D;da=g+1.0;ea=m+E;if(m<0.0|E<0.0?m>0.0|E>0.0:0){g=(m*F-E*B)/ea;g=g<0.0?-g:g}else g=F<B?B:F;ca=g+1.0;g=(ha+ga)*.5;if(g<0.0){m=0.0-g;if(g>0.0){g=(g*0.0+0.0)/m;g=g<0.0?-g:g}else g=0.0;A=0.0;B=0.0;D=g+1.0}else{A=g+0.0;B=1.0;m=0.0;D=0.0}if(ia<0.0){ia=-ia;z=x;C=y*ia;g=K;x=H*ia}else{z=K;C=ia*H;g=x;x=ia*y}y=z+0.0+1.0;g=g+0.0+1.0;ba=A+x;if(A<0.0|x<0.0?A>0.0|x>0.0:0){g=(A*B-x*g)/ba;g=g<0.0?-g:g}else g=B<g?g:B;K=g+1.0;aa=m+C;if(m<0.0|C<0.0?m>0.0|C>0.0:0){g=(m*D-C*y)/aa;g=g<0.0?-g:g}else g=D<y?y:D;H=g+1.0;g=ma*ja;if(g<0.0){m=0.0-g;if(g>0.0){g=(g+0.0)/m;g=g<0.0?-g:g}else g=1.0;z=0.0;A=0.0;y=g+1.0}else{z=g+0.0;A=2.0;m=0.0;y=0.0}g=na*la;do if(g<0.0){x=m-g;if(m<0.0|g>0.0){g=(m*y+g)/x;g=g<0.0?-g:g}else g=y<1.0?1.0:y;m=x;C=g+1.0;x=z;D=A}else{x=z+g;if(z<0.0?z>0.0|g>0.0:0){D=(z*A-g)/x;C=y;D=(D<0.0?-D:D)+1.0;break}C=y;D=A<1.0?2.0:A+1.0}while(0);if(ma<0.0){z=-ma;g=da;B=fa*z;y=ca;z=ea*z}else{g=ca;B=ma*ea;y=da;z=ma*fa}A=g+0.0+1.0;g=y+0.0+1.0;F=m+z;if(m<0.0|z<0.0?m>0.0|z>0.0:0){g=(m*C-z*g)/F;g=g<0.0?-g:g}else g=C<g?g:C;C=g+1.0;E=x+B;if(x<0.0|B<0.0?x>0.0|B>0.0:0){g=(x*D-B*A)/E;g=g<0.0?-g:g}else g=D<A?A:D;B=g+1.0;if(na<0.0){x=-na;g=K;z=ba*x;m=H;x=aa*x}else{g=H;z=na*aa;m=K;x=na*ba}y=g+0.0+1.0;g=m+0.0+1.0;m=F+x;do if(F<0.0|x<0.0){if(!(F>0.0|x>0.0)){Hb=146;break}g=(F*C-x*g)/m;g=g<0.0?-g:g}else Hb=146;while(0);if((Hb|0)==146)g=C<g?g:C;x=g+1.0;A=E+z;do if(E<0.0|z<0.0){if(!(E>0.0|z>0.0)){Hb=150;break}g=(E*B-z*y)/A;g=g<0.0?-g:g}else Hb=150;while(0);if((Hb|0)==150)g=B<y?y:B;g=g+1.0;if(m<A){y=g;g=x;z=A}else{y=x;z=m;m=A}if(ka<0.0){x=g;g=y;A=-(ka*z);m=-(ka*m)}else{x=y;A=ka*m;m=ka*z}y=g+3.0+1.0;g=x+3.0+1.0;C=fa+m;l=fa<0.0;do if(l|m<0.0){if(!(fa>0.0|m>0.0)){Hb=159;break}g=(fa*da-m*g)/C;g=g<0.0?-g:g}else Hb=159;while(0);if((Hb|0)==159)g=da<g?g:da;z=g+1.0;B=ea+A;h=ea<0.0;do if(h|A<0.0){if(!(ea>0.0|A>0.0)){Hb=163;break}g=(ea*ca-A*y)/B;g=g<0.0?-g:g}else Hb=163;while(0);if((Hb|0)==163)g=ca<y?y:ca;x=g+1.0;g=fa-ea;m=ba-aa;j=ba<0.0|aa>0.0;y=C-B;n=C<0.0|B>0.0;p[f>>3]=g;O=f+8|0;p[O>>3]=m;P=f+16|0;p[P>>3]=y;i[f+24>>0]=1;do if((l|ea>0.0)&(fa>0.0|h)){g=(fa*da+ea*ca)/g;if(!(g<0.0))break;g=-g}else g=da<ca?ca:da;while(0);J=g+1.0>64.0;do if(j){if(!(ba>0.0|aa<0.0)){Hb=171;break}g=(ba*K+aa*H)/m;if(!(g<0.0))break;g=-g}else Hb=171;while(0);if((Hb|0)==171)g=K<H?H:K;M=g+1.0>64.0;do if(n){if(!(C>0.0|B<0.0)){Hb=176;break}g=(C*z+B*x)/y;if(!(g<0.0))break;g=-g}else Hb=176;while(0);if((Hb|0)==176)g=z<x?x:z;N=g+1.0>64.0;if(!(J|M|N)){r=Ib;return}j=k[wa>>2]|0;h=k[oa>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Kb=be(0,0,h|0,j|0)|0;Lb=L;k[Fa>>2]=Kb;k[Fa+4>>2]=Lb;k[Fa+256>>2]=(Lb|0)!=0?-2:-1;break}else{k[Fa+256>>2]=0;break}else{k[Fa>>2]=h;k[Fa+4>>2]=j;k[Fa+256>>2]=(j|0)!=0?2:1}while(0);j=k[d>>2]|0;h=k[Aa>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Kb=be(0,0,h|0,j|0)|0;Lb=L;k[Ga>>2]=Kb;k[Ga+4>>2]=Lb;k[Ga+256>>2]=(Lb|0)!=0?-2:-1;break}else{k[Ga+256>>2]=0;break}else{k[Ga>>2]=h;k[Ga+4>>2]=j;k[Ga+256>>2]=(j|0)!=0?2:1}while(0);Sc(pa,Fa,Fa);Sc(qa,Ga,Ga);Tc(Gb,pa,qa);s=k[ya>>2]|0;u=((s|0)<0)<<31>>31;v=k[va>>2]|0;w=((v|0)<0)<<31>>31;h=be(s|0,u|0,v|0,w|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Lb=be(0,0,h|0,j|0)|0;G=L;k[ib>>2]=Lb;k[ib+4>>2]=G;G=(G|0)!=0?-2:-1;k[ib+256>>2]=G;break}else{k[ib+256>>2]=0;G=0;break}else{k[ib>>2]=h;k[ib+4>>2]=j;G=(j|0)!=0?2:1;k[ib+256>>2]=G}while(0);l=k[b>>2]|0;n=((l|0)<0)<<31>>31;o=k[c>>2]|0;q=((o|0)<0)<<31>>31;h=be(l|0,n|0,o|0,q|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Lb=be(0,0,h|0,j|0)|0;I=L;k[rb>>2]=Lb;k[rb+4>>2]=I;I=(I|0)!=0?-2:-1;k[rb+256>>2]=I;break}else{k[rb+256>>2]=0;I=0;break}else{k[rb>>2]=h;k[rb+4>>2]=j;I=(j|0)!=0?2:1;k[rb+256>>2]=I}while(0);h=ge(o|0,q|0,l|0,n|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Kb=be(0,0,h|0,j|0)|0;Lb=L;k[hb>>2]=Kb;k[hb+4>>2]=Lb;k[hb+256>>2]=(Lb|0)!=0?-2:-1;break}else{k[hb+256>>2]=0;break}else{k[hb>>2]=h;k[hb+4>>2]=j;k[hb+256>>2]=(j|0)!=0?2:1}while(0);h=ge(s|0,u|0,v|0,w|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Kb=be(0,0,h|0,j|0)|0;Lb=L;k[pb>>2]=Kb;k[pb+4>>2]=Lb;k[pb+256>>2]=(Lb|0)!=0?-2:-1;break}else{k[pb+256>>2]=0;break}else{k[pb>>2]=h;k[pb+4>>2]=j;k[pb+256>>2]=(j|0)!=0?2:1}while(0);Sc(ra,Fa,ib);Sc(sa,Ga,rb);Tc(zb,ra,sa);Sc(ta,ib,Ga);Sc(ua,rb,Fa);Uc(Cb,ta,ua);j=k[wa>>2]|0;h=k[va>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Kb=be(0,0,h|0,j|0)|0;Lb=L;k[Da>>2]=Kb;k[Da+4>>2]=Lb;k[Da+256>>2]=(Lb|0)!=0?-2:-1;break}else{k[Da+256>>2]=0;break}else{k[Da>>2]=h;k[Da+4>>2]=j;k[Da+256>>2]=(j|0)!=0?2:1}while(0);j=k[b>>2]|0;h=k[Aa>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Kb=be(0,0,h|0,j|0)|0;Lb=L;k[Ea>>2]=Kb;k[Ea+4>>2]=Lb;k[Ea+256>>2]=(Lb|0)!=0?-2:-1;break}else{k[Ea+256>>2]=0;break}else{k[Ea>>2]=h;k[Ea+4>>2]=j;k[Ea+256>>2]=(j|0)!=0?2:1}while(0);Sc(xa,Fa,Ea);Sc(za,Ga,Da);Uc(Xa,xa,za);j=k[wa>>2]|0;h=k[ya>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Kb=be(0,0,h|0,j|0)|0;Lb=L;k[Da>>2]=Kb;k[Da+4>>2]=Lb;k[Da+256>>2]=(Lb|0)!=0?-2:-1;break}else{k[Da+256>>2]=0;break}else{k[Da>>2]=h;k[Da+4>>2]=j;k[Da+256>>2]=(j|0)!=0?2:1}while(0);j=k[c>>2]|0;h=k[Aa>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Kb=be(0,0,h|0,j|0)|0;Lb=L;k[Ea>>2]=Kb;k[Ea+4>>2]=Lb;k[Ea+256>>2]=(Lb|0)!=0?-2:-1;break}else{k[Ea+256>>2]=0;break}else{k[Ea>>2]=h;k[Ea+4>>2]=j;k[Ea+256>>2]=(j|0)!=0?2:1}while(0);Sc(Ba,Fa,Ea);Sc(Ca,Ga,Da);Uc(Ya,Ba,Ca);Tc(yb,Xa,Ya);h=Cb+256|0;if(!(k[h>>2]|0)){Sc(Ha,zb,zb);Sc(Ia,yb,yb);Uc(Bb,Ha,Ia);Sc(Ja,zb,yb);fe(Cb|0,Ja|0,260)|0;Sc(La,Cb,hb);k[bb>>2]=2;k[bb+256>>2]=1;Sc(Ma,La,bb);Sc(Na,Bb,ib);Tc(Ka,Ma,Na);fe(Eb|0,Ka|0,260)|0;fe(Fb|0,Gb|0,260)|0;Sc(Pa,Cb,yb);k[bb>>2]=2;k[bb+256>>2]=1;Sc(Qa,Pa,bb);Sc(Ra,Bb,zb);Tc(Oa,Qa,Ra);fe(Eb+260|0,Oa|0,260)|0;k[Fb+260>>2]=1;k[Fb+516>>2]=1;n=Eb+520|0;Sc(_a,Cb,pb);k[bb>>2]=2;k[bb+256>>2]=1;Sc($a,_a,bb);Sc(ab,Bb,rb);Tc(Za,$a,ab);fe(n|0,Za|0,260)|0;j=k[h>>2]|0;h=(j|0)>-1?j:0-j|0;a:do switch(h|0){case 0:{h=0;g=0.0;break}case 1:{g=+((k[Cb>>2]|0)>>>0);Hb=234;break}case 2:{g=+((k[Cb+4>>2]|0)>>>0)*4294967296.0+ +((k[Cb>>2]|0)>>>0);Hb=234;break}default:{g=+((k[Cb+(h+-3<<2)>>2]|0)>>>0)+(+((k[Cb+(h+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Cb+(h+-2<<2)>>2]|0)>>>0))*4294967296.0;l=h<<5;h=l+-96|0;g=(j|0)<0?-g:g;if((h|0)>1023){g=g*89884656743115795.0e291;h=l+-1119|0;if((h|0)<=1023)break a;h=l+-2142|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291;break a}if((h|0)>=-1022)break a;g=g*2.2250738585072014e-308;h=l+926|0;if((h|0)>=-1022)break a;h=l+1948|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}}while(0);if((Hb|0)==234){h=0;g=(j|0)<0?-g:g}Kb=ee(h+1023|0,0,52)|0;Lb=L;k[t>>2]=Kb;k[t+4>>2]=Lb;m=1.0/(g*+p[t>>3]);if(J){j=k[Eb+256>>2]|0;h=(j|0)>-1?j:0-j|0;b:do switch(h|0){case 0:{h=0;g=0.0;break}case 1:{g=+((k[Eb>>2]|0)>>>0);Hb=245;break}case 2:{g=+((k[Eb+4>>2]|0)>>>0)*4294967296.0+ +((k[Eb>>2]|0)>>>0);Hb=245;break}default:{g=+((k[Eb+(h+-3<<2)>>2]|0)>>>0)+(+((k[Eb+(h+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Eb+(h+-2<<2)>>2]|0)>>>0))*4294967296.0;l=h<<5;h=l+-96|0;g=(j|0)<0?-g:g;if((h|0)>1023){g=g*89884656743115795.0e291;h=l+-1119|0;if((h|0)<=1023)break b;h=l+-2142|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291;break b}if((h|0)>=-1022)break b;g=g*2.2250738585072014e-308;h=l+926|0;if((h|0)>=-1022)break b;h=l+1948|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}}while(0);if((Hb|0)==245){h=0;g=(j|0)<0?-g:g}Kb=ee(h+1023|0,0,52)|0;Lb=L;k[t>>2]=Kb;k[t+4>>2]=Lb;p[f>>3]=m*(g*+p[t>>3]*.25)}if(M){j=k[Eb+776>>2]|0;h=(j|0)>-1?j:0-j|0;c:do switch(h|0){case 0:{h=0;g=0.0;break}case 1:{g=+((k[n>>2]|0)>>>0);Hb=257;break}case 2:{g=+((k[Eb+524>>2]|0)>>>0)*4294967296.0+ +((k[n>>2]|0)>>>0);Hb=257;break}default:{g=+((k[Eb+520+(h+-3<<2)>>2]|0)>>>0)+(+((k[Eb+520+(h+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Eb+520+(h+-2<<2)>>2]|0)>>>0))*4294967296.0;l=h<<5;h=l+-96|0;g=(j|0)<0?-g:g;if((h|0)>1023){g=g*89884656743115795.0e291;h=l+-1119|0;if((h|0)<=1023)break c;h=l+-2142|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291;break c}if((h|0)>=-1022)break c;g=g*2.2250738585072014e-308;h=l+926|0;if((h|0)>=-1022)break c;h=l+1948|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}}while(0);if((Hb|0)==257){h=0;g=(j|0)<0?-g:g}Kb=ee(h+1023|0,0,52)|0;Lb=L;k[t>>2]=Kb;k[t+4>>2]=Lb;p[O>>3]=m*(g*+p[t>>3]*.25)}if(N){Xc(Db,Eb,Fb);g=+p[Db>>3];j=k[Db+8>>2]|0;do if((j|0)>1023){g=g*89884656743115795.0e291;h=j+-1023|0;if((h|0)<=1023)break;h=j+-2046|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291}else{if((j|0)>=-1022){h=j;break}g=g*2.2250738585072014e-308;h=j+1022|0;if((h|0)>=-1022)break;h=j+2044|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}while(0);h=ee(h+1023|0,0,52)|0;j=L;k[t>>2]=h;k[t+4>>2]=j;m=m*(g*+p[t>>3]*.25);j=k[Gb+256>>2]|0;h=(j|0)>-1?j:0-j|0;d:do switch(h|0){case 0:{h=0;g=0.0;break}case 1:{g=+((k[Gb>>2]|0)>>>0);Hb=275;break}case 2:{g=+((k[Gb+4>>2]|0)>>>0)*4294967296.0+ +((k[Gb>>2]|0)>>>0);Hb=275;break}default:{g=+((k[Gb+(h+-3<<2)>>2]|0)>>>0)+(+((k[Gb+(h+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Gb+(h+-2<<2)>>2]|0)>>>0))*4294967296.0;l=h<<5;h=l+-96|0;g=(j|0)<0?-g:g;if((h|0)>1023){g=g*89884656743115795.0e291;h=l+-1119|0;if((h|0)<=1023)break d;h=l+-2142|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291;break d}if((h|0)>=-1022)break d;g=g*2.2250738585072014e-308;h=l+926|0;if((h|0)>=-1022)break d;h=l+1948|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}}while(0);if((Hb|0)==275){h=0;g=(j|0)<0?-g:g}Kb=ee(h+1023|0,0,52)|0;Lb=L;k[t>>2]=Kb;k[t+4>>2]=Lb;na=m/+X(+(g*+p[t>>3]));p[P>>3]=na}}else{Sc(Sa,zb,zb);Sc(Ta,Cb,Cb);Tc(Ua,Sa,Ta);Sc(Va,Ua,Xa);Sc(Wa,Va,Ya);k[bb>>2]=4;k[bb+256>>2]=1;Sc(Bb,Wa,bb);j=k[h>>2]|0;h=(j|0)>-1?j:0-j|0;e:do switch(h|0){case 0:{h=0;g=0.0;break}case 1:{g=+((k[Cb>>2]|0)>>>0);Hb=287;break}case 2:{g=+((k[Cb+4>>2]|0)>>>0)*4294967296.0+ +((k[Cb>>2]|0)>>>0);Hb=287;break}default:{g=+((k[Cb+(h+-3<<2)>>2]|0)>>>0)+(+((k[Cb+(h+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Cb+(h+-2<<2)>>2]|0)>>>0))*4294967296.0;l=h<<5;h=l+-96|0;g=(j|0)<0?-g:g;if((h|0)>1023){g=g*89884656743115795.0e291;h=l+-1119|0;if((h|0)<=1023)break e;h=l+-2142|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291;break e}if((h|0)>=-1022)break e;g=g*2.2250738585072014e-308;h=l+926|0;if((h|0)>=-1022)break e;h=l+1948|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}}while(0);if((Hb|0)==287){h=0;g=(j|0)<0?-g:g}Kb=ee(h+1023|0,0,52)|0;Lb=L;k[t>>2]=Kb;k[t+4>>2]=Lb;m=1.0/(g*+p[t>>3]);m=m*m;do if(J|N){Sc(db,hb,Cb);Sc(eb,db,Cb);Sc(gb,zb,yb);Sc(fb,gb,ib);Tc(cb,eb,fb);fe(Eb|0,cb|0,260)|0;k[Fb>>2]=1;k[Fb+256>>2]=1;fe(Eb+260|0,ib|0,256)|0;k[Eb+516>>2]=(e|0)==2?0-G|0:G;fe(Fb+260|0,Bb|0,260)|0;if(!J)break;Xc(jb,Eb,Fb);g=+p[jb>>3];j=k[jb+8>>2]|0;do if((j|0)>1023){g=g*89884656743115795.0e291;h=j+-1023|0;if((h|0)<=1023)break;h=j+-2046|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291}else{if((j|0)>=-1022){h=j;break}g=g*2.2250738585072014e-308;h=j+1022|0;if((h|0)>=-1022)break;h=j+2044|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}while(0);Kb=ee(h+1023|0,0,52)|0;Lb=L;k[t>>2]=Kb;k[t+4>>2]=Lb;p[f>>3]=m*(g*+p[t>>3]*.5)}while(0);do if(M|N){j=Eb+520|0;Sc(lb,pb,Cb);Sc(mb,lb,Cb);Sc(ob,zb,yb);Sc(nb,ob,rb);Tc(kb,mb,nb);fe(j|0,kb|0,260)|0;h=Fb+520|0;k[h>>2]=1;k[Fb+776>>2]=1;fe(Eb+780|0,rb|0,256)|0;k[Eb+1036>>2]=(e|0)==2?0-I|0:I;fe(Fb+780|0,Bb|0,260)|0;if(!M)break;Xc(qb,j,h);g=+p[qb>>3];j=k[qb+8>>2]|0;do if((j|0)>1023){g=g*89884656743115795.0e291;h=j+-1023|0;if((h|0)<=1023)break;h=j+-2046|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291}else{if((j|0)>=-1022){h=j;break}g=g*2.2250738585072014e-308;h=j+1022|0;if((h|0)>=-1022)break;h=j+2044|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}while(0);Kb=ee(h+1023|0,0,52)|0;Lb=L;k[t>>2]=Kb;k[t+4>>2]=Lb;p[O>>3]=m*(g*+p[t>>3]*.5)}while(0);if(N){Sc(sb,Fb,Gb);fe(Fb|0,sb|0,260)|0;j=Fb+260|0;Sc(tb,j,Gb);fe(j|0,tb|0,260)|0;Sc(wb,Cb,Cb);Sc(xb,zb,zb);Tc(vb,wb,xb);Sc(ub,yb,vb);fe(Eb+520|0,ub|0,260)|0;k[Fb+520>>2]=1;k[Fb+776>>2]=1;j=k[zb+256>>2]|0;fe(Eb+780|0,zb|0,256)|0;k[Eb+1036>>2]=(e|0)==2?0-j|0:j;fe(Fb+780|0,Bb|0,260)|0;Wc(Ab,a,Eb,Fb);g=+p[Ab>>3];j=k[Ab+8>>2]|0;do if((j|0)>1023){g=g*89884656743115795.0e291;h=j+-1023|0;if((h|0)<=1023)break;h=j+-2046|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291}else{if((j|0)>=-1022){h=j;break}g=g*2.2250738585072014e-308;h=j+1022|0;if((h|0)>=-1022)break;h=j+2044|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}while(0);h=ee(h+1023|0,0,52)|0;j=L;k[t>>2]=h;k[t+4>>2]=j;m=m*(g*+p[t>>3]*.5);j=k[Gb+256>>2]|0;h=(j|0)>-1?j:0-j|0;f:do switch(h|0){case 0:{h=0;g=0.0;break}case 1:{g=+((k[Gb>>2]|0)>>>0);Hb=322;break}case 2:{g=+((k[Gb+4>>2]|0)>>>0)*4294967296.0+ +((k[Gb>>2]|0)>>>0);Hb=322;break}default:{g=+((k[Gb+(h+-3<<2)>>2]|0)>>>0)+(+((k[Gb+(h+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Gb+(h+-2<<2)>>2]|0)>>>0))*4294967296.0;l=h<<5;h=l+-96|0;g=(j|0)<0?-g:g;if((h|0)>1023){g=g*89884656743115795.0e291;h=l+-1119|0;if((h|0)<=1023)break f;h=l+-2142|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291;break f}if((h|0)>=-1022)break f;g=g*2.2250738585072014e-308;h=l+926|0;if((h|0)>=-1022)break f;h=l+1948|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}}while(0);if((Hb|0)==322){h=0;g=(j|0)<0?-g:g}Kb=ee(h+1023|0,0,52)|0;Lb=L;k[t>>2]=Kb;k[t+4>>2]=Lb;na=m/+X(+(g*+p[t>>3]));p[P>>3]=na}}r=Ib;return}function Rc(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0.0,h=0,j=0,l=0,m=0.0,n=0,o=0.0,q=0,s=0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0,z=0.0,A=0.0,B=0.0,C=0,D=0.0,E=0.0,F=0,G=0.0,H=0,I=0.0,J=0.0,K=0.0,M=0,N=0,O=0.0,P=0,Q=0,R=0,S=0,T=0.0,U=0.0,V=0,W=0,Y=0,Z=0,_=0,$=0,aa=0.0,ba=0,ca=0.0,da=0,ea=0.0,fa=0.0,ga=0.0,ia=0.0,ja=0.0,ka=0,la=0,ma=0.0,na=0,oa=0,pa=0,qa=0.0,ra=0,sa=0.0,ta=0.0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0.0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Hb=0,Ib=0,Jb=0,Kb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0,Sb=0,Tb=0,Ub=0,Vb=0,Wb=0,Xb=0,Yb=0,Zb=0,_b=0,$b=0,ac=0,bc=0,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,jc=0,kc=0,lc=0,mc=0,nc=0,oc=0,pc=0,qc=0,rc=0,sc=0,tc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Wc=0,Yc=0,Zc=0,_c=0,$c=0,bd=0,cd=0,dd=0,ed=0,fd=0,gd=0,hd=0,id=0,jd=0,kd=0,ld=0;ld=r;r=r+34960|0;id=ld+34696|0;gd=ld+34176|0;hd=ld+33656|0;cd=ld+33136|0;jd=ld+32096|0;kd=ld+31056|0;Oc=ld+30792|0;Ca=ld+30532|0;Da=ld+30272|0;Ha=ld+30012|0;Ea=ld+29752|0;Fa=ld+29492|0;wb=ld+29232|0;xb=ld+28972|0;yb=ld+28712|0;dd=ld+28452|0;zb=ld+28192|0;Ab=ld+27932|0;fd=ld+27672|0;Bb=ld+27412|0;Cb=ld+27152|0;$b=ld+26892|0;Db=ld+26632|0;Eb=ld+26372|0;Fb=ld+26112|0;Gb=ld+25852|0;ac=ld+25592|0;bc=ld+25332|0;cc=ld+25072|0;dc=ld+96|0;Pc=ld+24812|0;Cc=ld+24552|0;Dc=ld+24292|0;Ec=ld+24032|0;Fc=ld+23772|0;Qc=ld+23512|0;Rc=ld+23252|0;Wc=ld+22992|0;Yc=ld+80|0;Zc=ld+22732|0;_c=ld+22472|0;$c=ld+22212|0;bd=ld+64|0;Ia=ld+21952|0;Ja=ld+21692|0;Ka=ld+21432|0;Na=ld+21172|0;Oa=ld+20912|0;Pa=ld+20652|0;Qa=ld+20392|0;Ra=ld+20132|0;Sa=ld+19872|0;Ta=ld+19612|0;Lc=ld+19352|0;Ua=ld+19092|0;Mc=ld+18832|0;Va=ld+18572|0;xc=ld+18312|0;Wa=ld+18052|0;Xa=ld+17792|0;Ya=ld+17532|0;Za=ld+17272|0;_a=ld+17012|0;$a=ld+16752|0;ab=ld+16492|0;bb=ld+16232|0;cb=ld+15972|0;db=ld+15712|0;eb=ld+15452|0;fb=ld+15192|0;gb=ld+14932|0;hb=ld+14672|0;ib=ld+14412|0;jb=ld+14152|0;kb=ld+13892|0;lb=ld+13632|0;mb=ld+13372|0;nb=ld+13112|0;ob=ld+12852|0;pb=ld+12592|0;qb=ld+12332|0;rb=ld+12072|0;sb=ld+11812|0;tb=ld+11552|0;ub=ld+11292|0;vb=ld+48|0;Hb=ld+11032|0;Ib=ld+10772|0;Jb=ld+10512|0;Kb=ld+10252|0;Lb=ld+9992|0;Mb=ld+9732|0;Nb=ld+9472|0;Ob=ld+9212|0;Pb=ld+8952|0;Qb=ld+8692|0;Rb=ld+8432|0;Sb=ld+8172|0;Tb=ld+7912|0;Ub=ld+7652|0;Vb=ld+7392|0;Wb=ld+7132|0;Xb=ld+6872|0;Yb=ld+6612|0;Zb=ld+6352|0;_b=ld+32|0;rc=ld+6092|0;sc=ld+5832|0;tc=ld+5572|0;uc=ld+5312|0;vc=ld+5052|0;wc=ld+4792|0;ec=ld+4532|0;fc=ld+4272|0;gc=ld+4012|0;hc=ld+3752|0;ic=ld+3492|0;jc=ld+3232|0;kc=ld+2972|0;lc=ld+2712|0;mc=ld+2452|0;nc=ld+2192|0;oc=ld+1932|0;pc=ld+1672|0;qc=ld+1412|0;yc=ld+16|0;Gc=ld+1152|0;Hc=ld+892|0;Ic=ld+632|0;Jc=ld+372|0;Kc=ld+112|0;Nc=ld;C=k[c>>2]|0;zc=c+8|0;s=k[zc>>2]|0;o=+(s|0);aa=+(C|0)-o;Ga=c+4|0;W=k[Ga>>2]|0;Ac=c+12|0;M=k[Ac>>2]|0;x=+(M|0);ca=+(W|0)-x;Ma=d+8|0;$=k[Ma>>2]|0;P=k[d>>2]|0;u=+(P|0);B=+($|0)-u;La=d+12|0;Y=k[La>>2]|0;Bc=d+4|0;R=k[Bc>>2]|0;y=+(R|0);I=+(Y|0)-y;F=((W|0)<0)<<31>>31;N=((M|0)<0)<<31>>31;ua=be(W|0,F|0,M|0,N|0)|0;va=L;V=((C|0)<0)<<31>>31;H=((s|0)<0)<<31>>31;wa=be(C|0,V|0,s|0,H|0)|0;xa=L;Z=((Y|0)<0)<<31>>31;S=((R|0)<0)<<31>>31;na=be(Y|0,Z|0,R|0,S|0)|0;oa=L;_=(($|0)<0)<<31>>31;Q=((P|0)<0)<<31>>31;ka=be($|0,_|0,P|0,Q|0)|0;la=L;ya=(va|0)<0;za=be(0,0,ua|0,va|0)|0;ua=ya?za:ua;va=ya?L:va;za=(xa|0)<0;pa=be(0,0,wa|0,xa|0)|0;wa=za?pa:wa;xa=za?L:xa;pa=(oa|0)<0;ra=be(0,0,na|0,oa|0)|0;na=pa?ra:na;oa=pa?L:oa;ra=(la|0)<0;h=be(0,0,ka|0,la|0)|0;ka=ra?h:ka;la=ra?L:la;h=ne(ka|0,la|0,ua|0,va|0)|0;j=L;l=ne(na|0,oa|0,wa|0,xa|0)|0;n=L;q=za^pa;do if(ya^ra){if(!q){Aa=ge(l|0,n|0,h|0,j|0)|0;Ba=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}if(j>>>0>n>>>0|(j|0)==(n|0)&h>>>0>l>>>0){Aa=be(h|0,j|0,l|0,n|0)|0;Ba=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}else{Aa=be(l|0,n|0,h|0,j|0)|0;Ba=+(Aa>>>0)+4294967296.0*+(L>>>0);break}}else{if(q){Aa=ge(l|0,n|0,h|0,j|0)|0;Ba=+(Aa>>>0)+4294967296.0*+(L>>>0);break}if(j>>>0<n>>>0|(j|0)==(n|0)&h>>>0<l>>>0){Aa=be(l|0,n|0,h|0,j|0)|0;Ba=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}else{Aa=be(h|0,j|0,l|0,n|0)|0;Ba=+(Aa>>>0)+4294967296.0*+(L>>>0);break}}while(0);Aa=Ba<0.0;U=aa*aa+ca*ca;if(Ba==0.0){n=be(R|0,S|0,M|0,N|0)|0;l=L;j=be(P|0,Q|0,s|0,H|0)|0;h=L;q=(l|0)<0;ra=be(0,0,n|0,l|0)|0;l=q?L:l;Aa=(h|0)<0;pa=be(0,0,j|0,h|0)|0;h=ne((Aa?pa:j)|0,(Aa?L:h)|0,ua|0,va|0)|0;j=L;l=ne((q?ra:n)|0,l|0,wa|0,xa|0)|0;n=L;q=za^q;do if(ya^Aa){if(!q){Aa=ge(h|0,j|0,l|0,n|0)|0;T=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}if(j>>>0>n>>>0|(j|0)==(n|0)&h>>>0>l>>>0){Aa=be(h|0,j|0,l|0,n|0)|0;T=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}else{Aa=be(l|0,n|0,h|0,j|0)|0;T=+(Aa>>>0)+4294967296.0*+(L>>>0);break}}else{if(q){Aa=ge(h|0,j|0,l|0,n|0)|0;T=+(Aa>>>0)+4294967296.0*+(L>>>0);break}if(j>>>0<n>>>0|(j|0)==(n|0)&h>>>0<l>>>0){Aa=be(l|0,n|0,h|0,j|0)|0;T=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}else{Aa=be(h|0,j|0,l|0,n|0)|0;T=+(Aa>>>0)+4294967296.0*+(L>>>0);break}}while(0);F=k[b>>2]|0;C=((F|0)<0)<<31>>31;n=be(F|0,C|0,s|0,H|0)|0;l=L;H=k[b+4>>2]|0;s=((H|0)<0)<<31>>31;j=be(H|0,s|0,M|0,N|0)|0;h=L;q=(l|0)<0;ra=be(0,0,n|0,l|0)|0;l=q?L:l;Aa=(h|0)<0;pa=be(0,0,j|0,h|0)|0;h=ne((Aa?pa:j)|0,(Aa?L:h)|0,wa|0,xa|0)|0;j=L;l=ne((q?ra:n)|0,l|0,ua|0,va|0)|0;n=L;q=ya^q;do if(za^Aa){if(!q){Aa=ge(h|0,j|0,l|0,n|0)|0;m=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}if(j>>>0>n>>>0|(j|0)==(n|0)&h>>>0>l>>>0){Aa=be(h|0,j|0,l|0,n|0)|0;m=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}else{Aa=be(l|0,n|0,h|0,j|0)|0;m=+(Aa>>>0)+4294967296.0*+(L>>>0);break}}else{if(q){Aa=ge(h|0,j|0,l|0,n|0)|0;m=+(Aa>>>0)+4294967296.0*+(L>>>0);break}if(j>>>0<n>>>0|(j|0)==(n|0)&h>>>0<l>>>0){Aa=be(l|0,n|0,h|0,j|0)|0;m=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}else{Aa=be(h|0,j|0,l|0,n|0)|0;m=+(Aa>>>0)+4294967296.0*+(L>>>0);break}}while(0);l=be(H|0,s|0,R|0,S|0)|0;j=L;q=be(F|0,C|0,P|0,Q|0)|0;n=L;h=(j|0)<0;ra=be(0,0,l|0,j|0)|0;j=h?L:j;Aa=(n|0)<0;pa=be(0,0,q|0,n|0)|0;n=ne((Aa?pa:q)|0,(Aa?L:n)|0,ua|0,va|0)|0;q=L;j=ne((h?ra:l)|0,j|0,wa|0,xa|0)|0;l=L;h=za^h;do if(ya^Aa){if(!h){Aa=ge(n|0,q|0,j|0,l|0)|0;g=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}if(q>>>0>l>>>0|(q|0)==(l|0)&n>>>0>j>>>0){Aa=be(n|0,q|0,j|0,l|0)|0;g=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}else{Aa=be(j|0,l|0,n|0,q|0)|0;g=+(Aa>>>0)+4294967296.0*+(L>>>0);break}}else{if(h){Aa=ge(n|0,q|0,j|0,l|0)|0;g=+(Aa>>>0)+4294967296.0*+(L>>>0);break}if(q>>>0<l>>>0|(q|0)==(l|0)&n>>>0<j>>>0){Aa=be(j|0,l|0,n|0,q|0)|0;g=-(+(Aa>>>0)+4294967296.0*+(L>>>0));break}else{Aa=be(n|0,q|0,j|0,l|0)|0;g=+(Aa>>>0)+4294967296.0*+(L>>>0);break}}while(0);z=m*g;G=(o+u)*.5;g=aa*(G-+(F|0));if(g<0.0){m=0.0-g;if(g>0.0){g=(g+0.0)/m;g=g<0.0?-g:g}else g=1.0;v=0.0;w=0.0;u=g+1.0}else{v=g+0.0;w=2.0;m=0.0;u=0.0}O=(x+y)*.5;g=ca*(O-+(H|0));do if(g<0.0){o=m-g;if(m<0.0|g>0.0){g=(m*u+g)/o;g=g<0.0?-g:g}else g=u<1.0?1.0:u;m=o;x=g+1.0;y=v}else{o=v+g;if(v<0.0?v>0.0|g>0.0:0){w=(v*w-g)/o;x=u;y=o;w=(w<0.0?-w:w)+1.0;break}x=u;y=o;w=w<1.0?2.0:w+1.0}while(0);u=+X(+z);h=u<0.0;do if((e|0)==2)if(h){v=y-u;if(y<0.0|u>0.0){g=(y*w+u*2.5)/v;g=g<0.0?-g:g}else g=w<2.5?2.5:w;u=x;o=g+1.0;g=v;break}else{g=m+u;if(m<0.0?m>0.0|u>0.0:0){u=(m*x-u*2.5)/g;u=(u<0.0?-u:u)+1.0;m=g;o=w;g=y;break}u=x<2.5?3.5:x+1.0;m=g;o=w;g=y;break}else if(h){o=m-u;if(m<0.0|u>0.0){g=(m*x+u*2.5)/o;g=g<0.0?-g:g}else g=x<2.5?2.5:x;u=g+1.0;m=o;o=w;g=y;break}else{g=y+u;if(y<0.0?y>0.0|u>0.0:0){o=(y*w-u*2.5)/g;u=x;o=(o<0.0?-o:o)+1.0;break}u=x;o=w<2.5?3.5:w+1.0;break}while(0);D=u+3.0;E=m/U;A=o+3.0;B=g/U;if(G<0.0){g=0.0-G;if(G>0.0){m=(G*0.0+0.0)/g;m=m<0.0?-m:m}else m=0.0;v=0.0;w=0.0;z=g;y=m+1.0}else{v=G+0.0;w=1.0;z=0.0;y=0.0}if(aa<0.0){o=-aa;g=D;x=E*o;m=A;o=B*o}else{g=A;x=aa*B;m=D;o=aa*E}u=g+0.0+1.0;g=m+0.0+1.0;K=v+o;if(v<0.0|o<0.0?v>0.0|o>0.0:0){g=(v*w-o*g)/K;g=g<0.0?-g:g}else g=w<g?g:w;I=g+1.0;J=z+x;if(z<0.0|x<0.0?z>0.0|x>0.0:0){g=(z*y-x*u)/J;g=g<0.0?-g:g}else g=y<u?u:y;G=g+1.0;if(O<0.0){g=0.0-O;if(O>0.0){m=(O*0.0+0.0)/g;m=m<0.0?-m:m}else m=0.0;u=0.0;v=0.0;y=g;x=m+1.0}else{u=O+0.0;v=1.0;y=0.0;x=0.0}if(ca<0.0){m=-ca;o=D;w=E*m;g=A;m=B*m}else{o=A;w=ca*B;g=D;m=ca*E}o=o+0.0+1.0;g=g+0.0+1.0;D=u+m;if(u<0.0|m<0.0?u>0.0|m>0.0:0){g=(u*v-m*g)/D;g=g<0.0?-g:g}else g=v<g?g:v;A=g+1.0;B=y+w;if(y<0.0|w<0.0?y>0.0|w>0.0:0){g=(y*x-w*o)/B;g=g<0.0?-g:g}else g=x<o?o:x;u=g+1.0;o=T*.5/+X(+U);h=o<0.0;a:do if(T<0.0)if(h){m=K-o;if(K<0.0|o>0.0){o=(K*I+o*5.0)/m;o=o<0.0?-o:o}else o=I<5.0?5.0:I;g=J;z=m;x=G;w=o+1.0;break}else{g=J+o;do if(J<0.0){if(!(J>0.0|o>0.0))break;x=(J*G-o*5.0)/g;z=K;x=(x<0.0?-x:x)+1.0;w=I;break a}while(0);z=K;x=G<5.0?6.0:G+1.0;w=I;break}else if(h){g=J-o;if(J<0.0|o>0.0){m=(J*G+o*5.0)/g;m=m<0.0?-m:m}else m=G<5.0?5.0:G;z=K;x=m+1.0;w=I;break}else{m=K+o;do if(K<0.0){if(!(K>0.0|o>0.0))break;w=(K*I-o*5.0)/m;g=J;z=m;x=G;w=(w<0.0?-w:w)+1.0;break a}while(0);g=J;z=m;x=G;w=I<5.0?6.0:I+1.0;break}while(0);y=K-J;do if(K<0.0|J>0.0){if(!(K>0.0|J<0.0)){ed=132;break}o=(K*I+J*G)/y;if(!(o<0.0))break;o=-o}else ed=132;while(0);if((ed|0)==132)o=I<G?G:I;v=D-B;do if(D<0.0|B>0.0){if(!(D>0.0|B<0.0)){ed=137;break}m=(D*A+B*u)/v;if(!(m<0.0))break;m=-m}else ed=137;while(0);if((ed|0)==137)m=A<u?u:A;u=z-g;do if(g>0.0|z<0.0){if(!(g<0.0|z>0.0)){ed=142;break}g=(x*g+w*z)/u;if(!(g<0.0))break;g=-g}else ed=142;while(0);if((ed|0)==142)g=w<x?x:w;p[f>>3]=y;p[f+8>>3]=v;p[f+16>>3]=u;i[f+24>>0]=1}else{J=+X(+U);qa=+X(+(B*B+I*I));n=be(R|0,S|0,Y|0,Z|0)|0;l=L;q=(l|0)<0;da=be(0,0,n|0,l|0)|0;l=q?L:l;h=ne(ka|0,la|0,wa|0,xa|0)|0;j=L;l=ne((q?da:n)|0,l|0,ua|0,va|0)|0;n=L;q=ya^q;do if(za^ra){if(!q){da=ge(h|0,j|0,l|0,n|0)|0;o=-(+(da>>>0)+4294967296.0*+(L>>>0));break}if(j>>>0>n>>>0|(j|0)==(n|0)&h>>>0>l>>>0){da=be(h|0,j|0,l|0,n|0)|0;o=-(+(da>>>0)+4294967296.0*+(L>>>0));break}else{da=be(l|0,n|0,h|0,j|0)|0;o=+(da>>>0)+4294967296.0*+(L>>>0);break}}else{if(q){da=ge(h|0,j|0,l|0,n|0)|0;o=+(da>>>0)+4294967296.0*+(L>>>0);break}if(j>>>0<n>>>0|(j|0)==(n|0)&h>>>0<l>>>0){da=be(l|0,n|0,h|0,j|0)|0;o=-(+(da>>>0)+4294967296.0*+(L>>>0));break}else{da=be(h|0,j|0,l|0,n|0)|0;o=+(da>>>0)+4294967296.0*+(L>>>0);break}}while(0);if(!(o<0.0)){g=J*qa;m=g+o;if(g<0.0?g>0.0|o>0.0:0){sa=(o-g*5.0)/m;ta=m;sa=(sa<0.0?-sa:sa)+1.0}else{ta=m;sa=6.0}}else{m=Ba*Ba;g=J*qa;u=g-o;if(g<0.0|o>0.0){g=(g*5.0+o)/u;if(g<0.0)g=-g}else g=5.0;ta=m/u;sa=g+1.0+3.0+1.0}H=k[b+4>>2]|0;s=((H|0)<0)<<31>>31;n=be(W|0,F|0,H|0,s|0)|0;l=L;ba=k[b>>2]|0;da=((ba|0)<0)<<31>>31;j=be(C|0,V|0,ba|0,da|0)|0;h=L;q=(l|0)<0;R=be(0,0,n|0,l|0)|0;l=q?L:l;S=(h|0)<0;Q=be(0,0,j|0,h|0)|0;h=ne((S?Q:j)|0,(S?L:h)|0,ua|0,va|0)|0;j=L;l=ne((q?R:n)|0,l|0,wa|0,xa|0)|0;n=L;q=za^q;do if(ya^S){if(!q){S=ge(h|0,j|0,l|0,n|0)|0;m=-(+(S>>>0)+4294967296.0*+(L>>>0));break}if(j>>>0>n>>>0|(j|0)==(n|0)&h>>>0>l>>>0){S=be(h|0,j|0,l|0,n|0)|0;m=-(+(S>>>0)+4294967296.0*+(L>>>0));break}else{S=be(l|0,n|0,h|0,j|0)|0;m=+(S>>>0)+4294967296.0*+(L>>>0);break}}else{if(q){S=ge(h|0,j|0,l|0,n|0)|0;m=+(S>>>0)+4294967296.0*+(L>>>0);break}if(j>>>0<n>>>0|(j|0)==(n|0)&h>>>0<l>>>0){S=be(l|0,n|0,h|0,j|0)|0;m=-(+(S>>>0)+4294967296.0*+(L>>>0));break}else{S=be(h|0,j|0,l|0,n|0)|0;m=+(S>>>0)+4294967296.0*+(L>>>0);break}}while(0);n=be($|0,_|0,ba|0,da|0)|0;l=L;j=be(Y|0,Z|0,H|0,s|0)|0;h=L;q=(l|0)<0;R=be(0,0,n|0,l|0)|0;l=q?L:l;S=(h|0)<0;Q=be(0,0,j|0,h|0)|0;h=ne((S?Q:j)|0,(S?L:h)|0,ka|0,la|0)|0;j=L;l=ne((q?R:n)|0,l|0,na|0,oa|0)|0;n=L;q=pa^q;do if(ra^S){if(!q){S=ge(h|0,j|0,l|0,n|0)|0;g=-(+(S>>>0)+4294967296.0*+(L>>>0));break}if(j>>>0>n>>>0|(j|0)==(n|0)&h>>>0>l>>>0){S=be(h|0,j|0,l|0,n|0)|0;g=-(+(S>>>0)+4294967296.0*+(L>>>0));break}else{S=be(l|0,n|0,h|0,j|0)|0;g=+(S>>>0)+4294967296.0*+(L>>>0);break}}else{if(q){S=ge(h|0,j|0,l|0,n|0)|0;g=+(S>>>0)+4294967296.0*+(L>>>0);break}if(j>>>0<n>>>0|(j|0)==(n|0)&h>>>0<l>>>0){S=be(l|0,n|0,h|0,j|0)|0;g=-(+(S>>>0)+4294967296.0*+(L>>>0));break}else{S=be(h|0,j|0,l|0,n|0)|0;g=+(S>>>0)+4294967296.0*+(L>>>0);break}}while(0);T=ta*2.0*m*g;fa=sa+0.0+1.0+1.0+1.0+1.0+1.0;l=(W|0)<0;j=be(0,0,W|0,F|0)|0;h=l?L:F;S=(C|0)<0;n=be(0,0,C|0,V|0)|0;n=ne(ua|0,va|0,(S?n:C)|0,(S?L:V)|0)|0;q=L;h=ne(wa|0,xa|0,(l?j:W)|0,h|0)|0;j=L;l=l^za;do if(S^ya){if(!l){W=ge(h|0,j|0,n|0,q|0)|0;A=-(+(W>>>0)+4294967296.0*+(L>>>0));break}if(q>>>0>j>>>0|(q|0)==(j|0)&n>>>0>h>>>0){W=be(n|0,q|0,h|0,j|0)|0;A=-(+(W>>>0)+4294967296.0*+(L>>>0));break}else{W=be(h|0,j|0,n|0,q|0)|0;A=+(W>>>0)+4294967296.0*+(L>>>0);break}}else{if(l){W=ge(h|0,j|0,n|0,q|0)|0;A=+(W>>>0)+4294967296.0*+(L>>>0);break}if(q>>>0<j>>>0|(q|0)==(j|0)&n>>>0<h>>>0){W=be(h|0,j|0,n|0,q|0)|0;A=-(+(W>>>0)+4294967296.0*+(L>>>0));break}else{W=be(n|0,q|0,h|0,j|0)|0;A=+(W>>>0)+4294967296.0*+(L>>>0);break}}while(0);l=($|0)<0;j=be(0,0,$|0,_|0)|0;h=l?L:_;_=(Y|0)<0;n=be(0,0,Y|0,Z|0)|0;n=ne(ka|0,la|0,(_?n:Y)|0,(_?L:Z)|0)|0;q=L;h=ne(na|0,oa|0,(l?j:$)|0,h|0)|0;j=L;l=l^pa;do if(_^ra){if(!l){$=ge(h|0,j|0,n|0,q|0)|0;y=-(+($>>>0)+4294967296.0*+(L>>>0));break}if(q>>>0>j>>>0|(q|0)==(j|0)&n>>>0>h>>>0){$=be(n|0,q|0,h|0,j|0)|0;y=-(+($>>>0)+4294967296.0*+(L>>>0));break}else{$=be(h|0,j|0,n|0,q|0)|0;y=+($>>>0)+4294967296.0*+(L>>>0);break}}else{if(l){$=ge(h|0,j|0,n|0,q|0)|0;y=+($>>>0)+4294967296.0*+(L>>>0);break}if(q>>>0<j>>>0|(q|0)==(j|0)&n>>>0<h>>>0){$=be(h|0,j|0,n|0,q|0)|0;y=-(+($>>>0)+4294967296.0*+(L>>>0));break}else{$=be(n|0,q|0,h|0,j|0)|0;y=+($>>>0)+4294967296.0*+(L>>>0);break}}while(0);z=1.0/Ba;g=B*A*z;if(g<0.0){m=0.0-g;if(g>0.0){g=(g*5.0+0.0)/m;g=g<0.0?-g:g}else g=5.0;v=0.0;x=0.0;w=g+1.0}else{v=g+0.0;x=6.0;m=0.0;w=0.0}o=aa*y*z;do if(o<0.0){u=m-o;if(o>0.0|m<0.0){g=(o*5.0+m*w)/u;g=g<0.0?-g:g}else g=w<5.0?5.0:w;U=v;ea=u;K=x;O=g+1.0}else{g=o+v;if(v<0.0?o>0.0|v>0.0:0){K=(v*x-o*5.0)/g;U=g;ea=m;K=(K<0.0?-K:K)+1.0;O=w;break}U=g;ea=m;K=x<5.0?6.0:x+1.0;O=w}while(0);g=ca*y*z;if(g<0.0){m=0.0-g;if(g>0.0){g=(g*5.0+0.0)/m;g=g<0.0?-g:g}else g=5.0;v=0.0;x=0.0;w=g+1.0}else{v=g+0.0;x=6.0;m=0.0;w=0.0}o=I*A*z;do if(o<0.0){u=m-o;if(o>0.0|m<0.0){g=(o*5.0+m*w)/u;g=g<0.0?-g:g}else g=w<5.0?5.0:w;ja=v;ma=u;ga=x;ia=g+1.0}else{g=o+v;if(v<0.0?o>0.0|v>0.0:0){ga=(v*x-o*5.0)/g;ja=g;ma=m;ga=(ga<0.0?-ga:ga)+1.0;ia=w;break}ja=g;ma=m;ga=x<5.0?6.0:x+1.0;ia=w}while(0);E=aa*qa;P=E<0.0;if(P){m=O;g=K;v=-(E*U);o=-(E*ea)}else{m=K;g=O;v=E*ea;o=E*U}u=g+3.0+1.0;g=m+3.0+1.0;y=o+0.0;if(o<0.0&o>0.0){g=(0.0-o*g)/y;g=g<0.0?-g:g}else g=g>0.0?g:0.0;w=g+1.0;z=v+0.0;if(v<0.0&v>0.0){g=(0.0-v*u)/z;g=g<0.0?-g:g}else g=u>0.0?u:0.0;x=g+1.0;G=B*J;S=G<0.0;if(S){m=O;g=K;v=-(G*U);o=-(G*ea)}else{m=K;g=O;v=G*ea;o=G*U}u=g+3.0+1.0;g=m+3.0+1.0;B=y+o;if(y<0.0|o<0.0?y>0.0|o>0.0:0){g=(y*w-o*g)/B;g=g<0.0?-g:g}else g=w<g?g:w;y=g+1.0;A=z+v;do if(z<0.0|v<0.0){if(!(z>0.0|v>0.0)){ed=255;break}g=(z*x-v*u)/A;g=g<0.0?-g:g}else ed=255;while(0);if((ed|0)==255)g=x<u?u:x;w=g+1.0;ca=ca*qa;R=ca<0.0;if(R){m=ia;g=ga;v=-(ca*ja);o=-(ca*ma)}else{m=ga;g=ia;v=ca*ma;o=ca*ja}u=g+3.0+1.0;g=m+3.0+1.0;D=B+o;do if(B<0.0|o<0.0){if(!(B>0.0|o>0.0)){ed=262;break}g=(B*y-o*g)/D;g=g<0.0?-g:g}else ed=262;while(0);if((ed|0)==262)g=y<g?g:y;z=g+1.0;B=A+v;do if(A<0.0|v<0.0){if(!(A>0.0|v>0.0)){ed=266;break}g=(A*w-v*u)/B;g=g<0.0?-g:g}else ed=266;while(0);if((ed|0)==266)g=w<u?u:w;y=g+1.0;aa=I*J;Q=aa<0.0;if(Q){m=ia;g=ga;x=-(aa*ja);o=-(aa*ma)}else{m=ga;g=ia;x=aa*ma;o=aa*ja}u=g+3.0+1.0;g=m+3.0+1.0;w=D+o;do if(D<0.0|o<0.0){if(!(D>0.0|o>0.0)){ed=273;break}g=(D*z-o*g)/w;g=g<0.0?-g:g}else ed=273;while(0);if((ed|0)==273)g=z<g?g:z;v=g+1.0;z=B+x;do if(B<0.0|x<0.0){if(!(B>0.0|x>0.0)){ed=277;break}g=(B*y-x*u)/z;g=g<0.0?-g:g}else ed=277;while(0);if((ed|0)==277)g=y<u?u:y;u=g+1.0;F=0-H|0;N=((F|0)<0)<<31>>31;M=(H|0)>0;H=be(0,0,F|0,N|0)|0;F=M?H:F;H=M?L:N;N=(ba|0)<0;C=be(0,0,ba|0,da|0)|0;C=N?C:ba;s=N?L:da;n=ne(C|0,s|0,ka|0,la|0)|0;q=L;j=ne(na|0,oa|0,F|0,H|0)|0;l=L;h=M^pa;do if(ra^N){if(!h){ra=ge(n|0,q|0,j|0,l|0)|0;g=-(+(ra>>>0)+4294967296.0*+(L>>>0));break}if(q>>>0>l>>>0|(q|0)==(l|0)&n>>>0>j>>>0){ra=be(n|0,q|0,j|0,l|0)|0;g=-(+(ra>>>0)+4294967296.0*+(L>>>0));break}else{ra=be(j|0,l|0,n|0,q|0)|0;g=+(ra>>>0)+4294967296.0*+(L>>>0);break}}else{if(h){ra=ge(n|0,q|0,j|0,l|0)|0;g=+(ra>>>0)+4294967296.0*+(L>>>0);break}if(q>>>0<l>>>0|(q|0)==(l|0)&n>>>0<j>>>0){ra=be(j|0,l|0,n|0,q|0)|0;g=-(+(ra>>>0)+4294967296.0*+(L>>>0));break}else{ra=be(n|0,q|0,j|0,l|0)|0;g=+(ra>>>0)+4294967296.0*+(L>>>0);break}}while(0);m=J*g;b:do if(m<0.0){o=w-m;if(w<0.0|m>0.0){g=(w*v+m*4.0)/o;g=g<0.0?-g:g}else g=v<4.0?4.0:v;x=z;w=o;v=g+1.0}else{g=z+m;do if(z<0.0){if(!(z>0.0|m>0.0))break;u=(z*u-m*4.0)/g;x=g;u=(u<0.0?-u:u)+1.0;break b}while(0);x=g;u=u<4.0?5.0:u+1.0}while(0);n=ne(C|0,s|0,wa|0,xa|0)|0;q=L;j=ne(ua|0,va|0,F|0,H|0)|0;l=L;h=M^ya;do if(za^N){if(!h){za=ge(n|0,q|0,j|0,l|0)|0;g=-(+(za>>>0)+4294967296.0*+(L>>>0));break}if(q>>>0>l>>>0|(q|0)==(l|0)&n>>>0>j>>>0){za=be(n|0,q|0,j|0,l|0)|0;g=-(+(za>>>0)+4294967296.0*+(L>>>0));break}else{za=be(j|0,l|0,n|0,q|0)|0;g=+(za>>>0)+4294967296.0*+(L>>>0);break}}else{if(h){za=ge(n|0,q|0,j|0,l|0)|0;g=+(za>>>0)+4294967296.0*+(L>>>0);break}if(q>>>0<l>>>0|(q|0)==(l|0)&n>>>0<j>>>0){za=be(j|0,l|0,n|0,q|0)|0;g=-(+(za>>>0)+4294967296.0*+(L>>>0));break}else{za=be(n|0,q|0,j|0,l|0)|0;g=+(za>>>0)+4294967296.0*+(L>>>0);break}}while(0);m=qa*g;c:do if(m<0.0){o=w-m;if(w<0.0|m>0.0){m=(w*v+m*4.0)/o;m=m<0.0?-m:m}else m=v<4.0?4.0:v;g=x;m=m+1.0}else{g=x+m;do if(x<0.0){if(!(x>0.0|m>0.0))break;u=(x*u-m*4.0)/g;u=(u<0.0?-u:u)+1.0;o=w;m=v;break c}while(0);u=u<4.0?5.0:u+1.0;o=w;m=v}while(0);z=g+0.0;if(g<0.0&g>0.0){g=(0.0-g*u)/z;g=g<0.0?-g:g}else g=u>0.0?u:0.0;x=g+1.0;y=o+0.0;if(o<0.0&o>0.0){g=(0.0-o*m)/y;g=g<0.0?-g:g}else g=m>0.0?m:0.0;o=g+1.0;v=+X(+T);w=fa*.5+1.0;h=v<0.0;d:do if((e|0)==2)if(h){u=y-v;if(y<0.0|v>0.0){g=(y*o+w*v)/u;g=g<0.0?-g:g}else g=o<w?w:o;v=x;m=z;o=g+1.0;g=u;break}else{g=z+v;do if(z<0.0){if(!(z>0.0|v>0.0))break;v=(z*x-w*v)/g;v=(v<0.0?-v:v)+1.0;m=g;g=y;break d}while(0);v=(x<w?w:x)+1.0;m=g;g=y;break}else if(h){m=z-v;if(z<0.0|v>0.0){g=(z*x+w*v)/m;g=g<0.0?-g:g}else g=x<w?w:x;v=g+1.0;g=y;break}else{g=y+v;do if(y<0.0){if(!(y>0.0|v>0.0))break;o=(y*o-w*v)/g;v=x;m=z;o=(o<0.0?-o:o)+1.0;break d}while(0);v=x;m=z;o=(o<w?w:o)+1.0;break}while(0);I=ta*ta;T=sa+sa+1.0+1.0;v=T+v;J=m/I;T=T+o;I=g/I;if(P){m=T;g=v;w=-(E*J);o=-(E*I)}else{m=v;g=T;w=E*I;o=E*J}u=g+3.0+1.0;g=m+3.0+1.0;A=U+o;do if(U<0.0|o<0.0){if(!(U>0.0|o>0.0)){ed=349;break}g=(U*K-o*g)/A;g=g<0.0?-g:g}else ed=349;while(0);if((ed|0)==349)g=K<g?g:K;y=g+1.0;z=ea+w;do if(ea<0.0|w<0.0){if(!(ea>0.0|w>0.0)){ed=353;break}g=(ea*O-w*u)/z;g=g<0.0?-g:g}else ed=353;while(0);if((ed|0)==353)g=O<u?u:O;x=g+1.0;if(S){m=T;g=v;w=-(G*J);o=-(G*I)}else{m=v;g=T;w=G*I;o=G*J}u=g+3.0+1.0;g=m+3.0+1.0;U=A+o;do if(A<0.0|o<0.0){if(!(A>0.0|o>0.0)){ed=360;break}g=(A*y-o*g)/U;g=g<0.0?-g:g}else ed=360;while(0);if((ed|0)==360)g=y<g?g:y;K=g+1.0;O=z+w;do if(z<0.0|w<0.0){if(!(z>0.0|w>0.0)){ed=364;break}g=(z*x-w*u)/O;g=g<0.0?-g:g}else ed=364;while(0);if((ed|0)==364)g=x<u?u:x;G=g+1.0;if(R){m=T;g=v;w=-(ca*J);o=-(ca*I)}else{m=v;g=T;w=ca*I;o=ca*J}u=g+3.0+1.0;g=m+3.0+1.0;A=ja+o;do if(ja<0.0|o<0.0){if(!(ja>0.0|o>0.0)){ed=371;break}g=(ja*ga-o*g)/A;g=g<0.0?-g:g}else ed=371;while(0);if((ed|0)==371)g=ga<g?g:ga;y=g+1.0;z=ma+w;do if(ma<0.0|w<0.0){if(!(ma>0.0|w>0.0)){ed=375;break}g=(ma*ia-w*u)/z;g=g<0.0?-g:g}else ed=375;while(0);if((ed|0)==375)g=ia<u?u:ia;x=g+1.0;if(Q){m=T;g=v;w=-(aa*J);o=-(aa*I)}else{m=v;g=T;w=aa*I;o=aa*J}u=g+3.0+1.0;g=m+3.0+1.0;E=A+o;do if(A<0.0|o<0.0){if(!(A>0.0|o>0.0)){ed=382;break}g=(A*y-o*g)/E;g=g<0.0?-g:g}else ed=382;while(0);if((ed|0)==382)g=y<g?g:y;B=g+1.0;D=z+w;do if(z<0.0|w<0.0){if(!(z>0.0|w>0.0)){ed=386;break}g=(z*x-w*u)/D;g=g<0.0?-g:g}else ed=386;while(0);if((ed|0)==386)g=x<u?u:x;A=g+1.0;if(J<I){o=J;g=I;x=T}else{o=I;g=J;x=v;v=T}e:do if(Aa){w=Ba*o;m=Ba*g;g=x+1.0+1.0;o=v+1.0+1.0;u=U-m;do if(U<0.0|m>-0.0){if(!(U>0.0|m<-0.0)){ed=393;break}g=(U*K+m*g)/u;g=g<0.0?-g:g}else ed=393;while(0);if((ed|0)==393)g=K<g?g:K;m=g+1.0;g=O-w;do if(O<0.0|w>-0.0){if(!(O>0.0|w<-0.0))break;o=(O*G+w*o)/g;o=o<0.0?-o:o;z=u;x=m;break e}while(0);o=G<o?o:G;z=u;x=m}else{m=Ba*g;u=Ba*o;o=v+1.0+1.0;g=x+1.0+1.0;v=U+m;do if(U<0.0|m<0.0){if(!(U>0.0|m>0.0)){ed=401;break}g=(U*K-m*g)/v;g=g<0.0?-g:g}else ed=401;while(0);if((ed|0)==401)g=K<g?g:K;m=g+1.0;g=O+u;do if(O<0.0|u<0.0){if(!(O>0.0|u>0.0))break;o=(O*G-u*o)/g;o=o<0.0?-o:o;z=v;x=m;break e}while(0);o=G<o?o:G;z=v;x=m}while(0);w=o+1.0;y=U-O;do if(U<0.0|O>0.0){if(!(U>0.0|O<0.0)){ed=409;break}o=(U*K+O*G)/y;if(!(o<0.0))break;o=-o}else ed=409;while(0);if((ed|0)==409)o=K<G?G:K;v=E-D;do if(E<0.0|D>0.0){if(!(E>0.0|D<0.0)){ed=414;break}m=(E*B+D*A)/v;if(!(m<0.0))break;m=-m}else ed=414;while(0);if((ed|0)==414)m=B<A?A:B;u=z-g;do if(g>0.0|z<0.0){if(!(g<0.0|z>0.0)){ed=419;break}g=(g*w+x*z)/u;if(!(g<0.0))break;g=-g}else ed=419;while(0);if((ed|0)==419)g=x<w?w:x;p[f>>3]=y;p[f+8>>3]=v;p[f+16>>3]=u;i[f+24>>0]=1}N=g+1.0>64.0;H=m+1.0>64.0;M=o+1.0>64.0;if(!(M|H|N)){r=ld;return}j=k[c>>2]|0;h=k[zc>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){za=be(0,0,h|0,j|0)|0;Aa=L;k[gd>>2]=za;k[gd+4>>2]=Aa;k[gd+256>>2]=(Aa|0)!=0?-2:-1;break}else{k[gd+256>>2]=0;break}else{k[gd>>2]=h;k[gd+4>>2]=j;k[gd+256>>2]=(j|0)!=0?2:1}while(0);j=k[Ga>>2]|0;h=k[Ac>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){za=be(0,0,h|0,j|0)|0;Aa=L;k[hd>>2]=za;k[hd+4>>2]=Aa;k[hd+256>>2]=(Aa|0)!=0?-2:-1;break}else{k[hd+256>>2]=0;break}else{k[hd>>2]=h;k[hd+4>>2]=j;k[hd+256>>2]=(j|0)!=0?2:1}while(0);F=gd+260|0;j=k[Ma>>2]|0;h=k[d>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){za=be(0,0,h|0,j|0)|0;Aa=L;k[F>>2]=za;k[gd+264>>2]=Aa;k[gd+516>>2]=(Aa|0)!=0?-2:-1;break}else{k[gd+516>>2]=0;break}else{k[F>>2]=h;k[gd+264>>2]=j;k[gd+516>>2]=(j|0)!=0?2:1}while(0);C=hd+260|0;j=k[La>>2]|0;h=k[Bc>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){za=be(0,0,h|0,j|0)|0;Aa=L;k[C>>2]=za;k[hd+264>>2]=Aa;k[hd+516>>2]=(Aa|0)!=0?-2:-1;break}else{k[hd+516>>2]=0;break}else{k[C>>2]=h;k[hd+264>>2]=j;k[hd+516>>2]=(j|0)!=0?2:1}while(0);Sc(Ca,F,hd);Sc(Da,gd,C);Uc(Oc,Ca,Da);l=Oc+256|0;if(k[l>>2]|0){h=k[c>>2]|0;do if((h|0)<=0)if((h|0)<0){k[id>>2]=0-h;k[id+256>>2]=-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+256>>2]=1}while(0);Sc(Ja,hd,id);h=k[Ga>>2]|0;do if((h|0)<=0)if((h|0)<0){k[id>>2]=0-h;k[id+256>>2]=-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+256>>2]=1}while(0);Sc(Ka,gd,id);Uc(Ia,Ja,Ka);fe(cd|0,Ia|0,260)|0;j=cd+260|0;h=k[La>>2]|0;do if((h|0)<=0)if((h|0)<0){k[id>>2]=0-h;k[id+256>>2]=-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+256>>2]=1}while(0);Sc(Oa,F,id);h=k[Ma>>2]|0;do if((h|0)<=0)if((h|0)<0){k[id>>2]=0-h;k[id+256>>2]=-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+256>>2]=1}while(0);Sc(Pa,C,id);Uc(Na,Oa,Pa);fe(j|0,Na|0,260)|0;Sc(Qa,gd,j);Sc(Ra,F,cd);Tc(dd,Qa,Ra);Sc(Sa,hd,j);Sc(Ta,C,cd);Tc(fd,Sa,Ta);h=k[b>>2]|0;do if((h|0)<=0)if((h|0)<0){k[id>>2]=0-h;k[id+256>>2]=-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+256>>2]=1}while(0);Sc(Ua,Oc,id);Uc(Lc,dd,Ua);h=k[b+4>>2]|0;do if((h|0)<=0)if((h|0)<0){k[id>>2]=0-h;k[id+256>>2]=-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+256>>2]=1}while(0);Sc(Va,Oc,id);Uc(Mc,fd,Va);if((k[Lc+256>>2]|0)==0?(k[Mc+256>>2]|0)==0:0){j=k[l>>2]|0;h=(j|0)>-1?j:0-j|0;f:do switch(h|0){case 0:{h=0;g=0.0;break}case 1:{g=+((k[Oc>>2]|0)>>>0);ed=576;break}case 2:{g=+((k[Oc+4>>2]|0)>>>0)*4294967296.0+ +((k[Oc>>2]|0)>>>0);ed=576;break}default:{g=+((k[Oc+(h+-3<<2)>>2]|0)>>>0)+(+((k[Oc+(h+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Oc+(h+-2<<2)>>2]|0)>>>0))*4294967296.0;l=h<<5;h=l+-96|0;g=(j|0)<0?-g:g;if((h|0)>1023){g=g*89884656743115795.0e291;h=l+-1119|0;if((h|0)<=1023)break f;h=l+-2142|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291;break f}if((h|0)>=-1022)break f;g=g*2.2250738585072014e-308;h=l+926|0;if((h|0)>=-1022)break f;h=l+1948|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}}while(0);if((ed|0)==576){h=0;g=(j|0)<0?-g:g}h=ee(h+1023|0,0,52)|0;j=L;k[t>>2]=h;k[t+4>>2]=j;o=g*+p[t>>3];j=k[dd+256>>2]|0;h=(j|0)>-1?j:0-j|0;g:do switch(h|0){case 0:{h=0;g=0.0;break}case 1:{g=+((k[dd>>2]|0)>>>0);ed=586;break}case 2:{g=+((k[dd+4>>2]|0)>>>0)*4294967296.0+ +((k[dd>>2]|0)>>>0);ed=586;break}default:{g=+((k[dd+(h+-3<<2)>>2]|0)>>>0)+(+((k[dd+(h+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[dd+(h+-2<<2)>>2]|0)>>>0))*4294967296.0;l=h<<5;h=l+-96|0;g=(j|0)<0?-g:g;if((h|0)>1023){g=g*89884656743115795.0e291;h=l+-1119|0;if((h|0)<=1023)break g;h=l+-2142|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291;break g}if((h|0)>=-1022)break g;g=g*2.2250738585072014e-308;h=l+926|0;if((h|0)>=-1022)break g;h=l+1948|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}}while(0);if((ed|0)==586){h=0;g=(j|0)<0?-g:g}h=ee(h+1023|0,0,52)|0;j=L;k[t>>2]=h;k[t+4>>2]=j;m=g*+p[t>>3]/o;j=k[fd+256>>2]|0;h=(j|0)>-1?j:0-j|0;h:do switch(h|0){case 0:{h=0;g=0.0;break}case 1:{g=+((k[fd>>2]|0)>>>0);ed=596;break}case 2:{g=+((k[fd+4>>2]|0)>>>0)*4294967296.0+ +((k[fd>>2]|0)>>>0);ed=596;break}default:{g=+((k[fd+(h+-3<<2)>>2]|0)>>>0)+(+((k[fd+(h+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[fd+(h+-2<<2)>>2]|0)>>>0))*4294967296.0;l=h<<5;h=l+-96|0;g=(j|0)<0?-g:g;if((h|0)>1023){g=g*89884656743115795.0e291;h=l+-1119|0;if((h|0)<=1023)break h;h=l+-2142|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291;break h}if((h|0)>=-1022)break h;g=g*2.2250738585072014e-308;h=l+926|0;if((h|0)>=-1022)break h;h=l+1948|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}}while(0);if((ed|0)==596){h=0;g=(j|0)<0?-g:g}kd=ee(h+1023|0,0,52)|0;a=L;k[t>>2]=kd;k[t+4>>2]=a;Ba=g*+p[t>>3]/o;p[f>>3]=m;p[f+8>>3]=Ba;p[f+16>>3]=m;i[f+24>>0]=1}else{h=ha((k[l>>2]>>31&2)+-1|0,(e|0)==2?1:-1)|0;do if((h|0)<=0)if((h|0)<0){k[xc>>2]=0-h;k[xc+256>>2]=-1;break}else{k[xc+256>>2]=0;break}else{k[xc>>2]=h;k[xc+256>>2]=1}while(0);fe(Xa|0,Lc|0,260)|0;q=Xa+256|0;k[q>>2]=0-(k[q>>2]|0);Sc(Ya,F,Xa);fe(_a|0,Mc|0,260)|0;q=_a+256|0;k[q>>2]=0-(k[q>>2]|0);Sc(Za,C,_a);Tc(Wa,Ya,Za);fe(jd|0,Wa|0,260)|0;q=jd+260|0;fe(ab|0,Lc|0,260)|0;n=ab+256|0;k[n>>2]=0-(k[n>>2]|0);Sc(bb,gd,ab);fe(db|0,Mc|0,260)|0;n=db+256|0;k[n>>2]=0-(k[n>>2]|0);Sc(cb,hd,db);Tc($a,bb,cb);fe(q|0,$a|0,260)|0;n=jd+520|0;fe(n|0,xc|0,260)|0;s=jd+780|0;k[jd+1036>>2]=0;Sc(fb,gd,gd);Sc(gb,hd,hd);Tc(eb,fb,gb);fe(kd|0,eb|0,260)|0;Sc(ib,F,F);Sc(jb,C,C);Tc(hb,ib,jb);fe(kd+260|0,hb|0,260)|0;Sc(lb,gd,F);Sc(mb,hd,C);Tc(kb,lb,mb);fe(kd+520|0,kb|0,260)|0;Sc(ob,gd,Mc);Sc(pb,hd,Lc);Uc(qb,ob,pb);Sc(sb,F,Mc);Sc(tb,C,Lc);Uc(rb,sb,tb);Sc(ub,qb,rb);k[id>>2]=2;k[id+256>>2]=-1;Sc(nb,ub,id);fe(kd+780|0,nb|0,260)|0;ad(vb,a,jd,kd);g=+p[vb>>3];j=k[vb+8>>2]|0;do if((j|0)>1023){g=g*89884656743115795.0e291;h=j+-1023|0;if((h|0)<=1023)break;h=j+-2046|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291}else{if((j|0)>=-1022){h=j;break}g=g*2.2250738585072014e-308;h=j+1022|0;if((h|0)>=-1022)break;h=j+2044|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}while(0);h=ee(h+1023|0,0,52)|0;j=L;k[t>>2]=h;k[t+4>>2]=j;o=g*+p[t>>3];j=k[l>>2]|0;h=(j|0)>-1?j:0-j|0;i:do switch(h|0){case 0:{h=0;g=0.0;break}case 1:{g=+((k[Oc>>2]|0)>>>0);ed=618;break}case 2:{g=+((k[Oc+4>>2]|0)>>>0)*4294967296.0+ +((k[Oc>>2]|0)>>>0);ed=618;break}default:{g=+((k[Oc+(h+-3<<2)>>2]|0)>>>0)+(+((k[Oc+(h+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Oc+(h+-2<<2)>>2]|0)>>>0))*4294967296.0;l=h<<5;h=l+-96|0;g=(j|0)<0?-g:g;if((h|0)>1023){g=g*89884656743115795.0e291;h=l+-1119|0;if((h|0)<=1023)break i;h=l+-2142|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291;break i}if((h|0)>=-1022)break i;g=g*2.2250738585072014e-308;h=l+926|0;if((h|0)>=-1022)break i;h=l+1948|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}}while(0);if((ed|0)==618){h=0;g=(j|0)<0?-g:g}cd=ee(h+1023|0,0,52)|0;ed=L;k[t>>2]=cd;k[t+4>>2]=ed;m=o*(g*+p[t>>3]);if(H){Sc(Jb,Lc,Lc);Sc(Kb,Mc,Mc);Tc(Ib,Jb,Kb);Sc(Lb,C,Ib);Sc(Ob,Lc,F);Sc(Pb,Mc,C);Tc(Nb,Ob,Pb);Sc(Mb,fd,Nb);Uc(Hb,Lb,Mb);fe(jd|0,Hb|0,260)|0;Sc(Sb,Lc,Lc);Sc(Tb,Mc,Mc);Tc(Rb,Sb,Tb);Sc(Ub,hd,Rb);Sc(Xb,Lc,gd);Sc(Yb,Mc,hd);Tc(Wb,Xb,Yb);Sc(Vb,fd,Wb);Uc(Qb,Ub,Vb);fe(q|0,Qb|0,260)|0;Sc(Zb,fd,xc);fe(n|0,Zb|0,260)|0;ad(_b,a,jd,kd);g=+p[_b>>3];j=k[_b+8>>2]|0;do if((j|0)>1023){g=g*89884656743115795.0e291;h=j+-1023|0;if((h|0)<=1023)break;h=j+-2046|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291}else{if((j|0)>=-1022){h=j;break}g=g*2.2250738585072014e-308;h=j+1022|0;if((h|0)>=-1022)break;h=j+2044|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}while(0);ed=ee(h+1023|0,0,52)|0;fd=L;k[t>>2]=ed;k[t+4>>2]=fd;p[f+8>>3]=g*+p[t>>3]/m}do if(M|N){Sc(tc,Lc,Lc);Sc(uc,Mc,Mc);Tc(sc,tc,uc);Sc(vc,F,sc);Sc(fc,Lc,F);Sc(gc,Mc,C);Tc(ec,fc,gc);Sc(wc,dd,ec);Uc(rc,vc,wc);fe(jd|0,rc|0,260)|0;Sc(jc,Lc,Lc);Sc(kc,Mc,Mc);Tc(ic,jc,kc);Sc(lc,gd,ic);Sc(oc,Lc,gd);Sc(pc,Mc,hd);Tc(nc,oc,pc);Sc(mc,dd,nc);Uc(hc,lc,mc);fe(q|0,hc|0,260)|0;Sc(qc,dd,xc);fe(n|0,qc|0,260)|0;if(M){ad(yc,a,jd,kd);g=+p[yc>>3];j=k[yc+8>>2]|0;do if((j|0)>1023){g=g*89884656743115795.0e291;h=j+-1023|0;if((h|0)<=1023)break;h=j+-2046|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291}else{if((j|0)>=-1022){h=j;break}g=g*2.2250738585072014e-308;h=j+1022|0;if((h|0)>=-1022)break;h=j+2044|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}while(0);gd=ee(h+1023|0,0,52)|0;hd=L;k[t>>2]=gd;k[t+4>>2]=hd;p[f>>3]=g*+p[t>>3]/m}if(!N)break;Sc(Ic,Lc,Lc);Sc(Jc,Mc,Mc);Tc(Hc,Ic,Jc);Sc(Kc,Oc,Hc);k[id>>2]=1;k[id+256>>2]=o<0.0?-1:1;Sc(Gc,Kc,id);fe(s|0,Gc|0,260)|0;ad(Nc,a,jd,kd);g=+p[Nc>>3];j=k[Nc+8>>2]|0;do if((j|0)>1023){g=g*89884656743115795.0e291;h=j+-1023|0;if((h|0)<=1023)break;h=j+-2046|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291}else{if((j|0)>=-1022){h=j;break}g=g*2.2250738585072014e-308;h=j+1022|0;if((h|0)>=-1022)break;h=j+2044|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}while(0);kd=ee(h+1023|0,0,52)|0;a=L;k[t>>2]=kd;k[t+4>>2]=a;p[f+16>>3]=g*+p[t>>3]/m}while(0)}}else{Sc(Ea,gd,gd);Sc(Fa,hd,hd);Tc(Ha,Ea,Fa);j=k[Ha+256>>2]|0;h=(j|0)>-1?j:0-j|0;j:do switch(h|0){case 0:{h=0;g=0.0;break}case 1:{g=+((k[Ha>>2]|0)>>>0);ed=448;break}case 2:{g=+((k[Ha+4>>2]|0)>>>0)*4294967296.0+ +((k[Ha>>2]|0)>>>0);ed=448;break}default:{g=+((k[Ha+(h+-3<<2)>>2]|0)>>>0)+(+((k[Ha+(h+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[Ha+(h+-2<<2)>>2]|0)>>>0))*4294967296.0;l=h<<5;h=l+-96|0;g=(j|0)<0?-g:g;if((h|0)>1023){g=g*89884656743115795.0e291;h=l+-1119|0;if((h|0)<=1023)break j;h=l+-2142|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291;break j}if((h|0)<-1022){g=g*2.2250738585072014e-308;h=l+926|0;if((h|0)<-1022){h=l+1948|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}}}}while(0);if((ed|0)==448){h=0;g=(j|0)<0?-g:g}h=ee(h+1023|0,0,52)|0;j=L;k[t>>2]=h;k[t+4>>2]=j;m=g*+p[t>>3]*2.0;j=k[d>>2]|0;h=k[zc>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Oc=be(0,0,h|0,j|0)|0;ed=L;k[id>>2]=Oc;k[id+4>>2]=ed;k[id+256>>2]=(ed|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+4>>2]=j;k[id+256>>2]=(j|0)!=0?2:1}while(0);Sc(xb,hd,id);j=k[Bc>>2]|0;h=k[Ac>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Oc=be(0,0,h|0,j|0)|0;ed=L;k[id>>2]=Oc;k[id+4>>2]=ed;k[id+256>>2]=(ed|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+4>>2]=j;k[id+256>>2]=(j|0)!=0?2:1}while(0);Sc(yb,gd,id);Uc(wb,xb,yb);fe(cd|0,wb|0,260)|0;s=b+4|0;j=k[s>>2]|0;h=k[Ac>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Oc=be(0,0,h|0,j|0)|0;ed=L;k[id>>2]=Oc;k[id+4>>2]=ed;k[id+256>>2]=(ed|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+4>>2]=j;k[id+256>>2]=(j|0)!=0?2:1}while(0);Sc(zb,gd,id);j=k[b>>2]|0;h=k[zc>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Oc=be(0,0,h|0,j|0)|0;ed=L;k[id>>2]=Oc;k[id+4>>2]=ed;k[id+256>>2]=(ed|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+4>>2]=j;k[id+256>>2]=(j|0)!=0?2:1}while(0);Sc(Ab,hd,id);Uc(dd,zb,Ab);j=k[b>>2]|0;h=k[d>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Oc=be(0,0,h|0,j|0)|0;ed=L;k[id>>2]=Oc;k[id+4>>2]=ed;k[id+256>>2]=(ed|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+4>>2]=j;k[id+256>>2]=(j|0)!=0?2:1}while(0);Sc(Bb,hd,id);j=k[s>>2]|0;h=k[Bc>>2]|0;h=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){Oc=be(0,0,h|0,j|0)|0;ed=L;k[id>>2]=Oc;k[id+4>>2]=ed;k[id+256>>2]=(ed|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+4>>2]=j;k[id+256>>2]=(j|0)!=0?2:1}while(0);Sc(Cb,gd,id);Uc(fd,Bb,Cb);Sc(kd,dd,fd);k[kd+260>>2]=1;k[kd+516>>2]=1;if(H){k[id>>2]=2;k[id+256>>2]=(e|0)==2?1:-1;Sc(jd,hd,id);q=jd+260|0;Sc(Db,gd,gd);h=k[Ac>>2]|0;j=k[Bc>>2]|0;h=ge(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){ed=be(0,0,h|0,j|0)|0;fd=L;k[id>>2]=ed;k[id+4>>2]=fd;k[id+256>>2]=(fd|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+4>>2]=j;k[id+256>>2]=(j|0)!=0?2:1}while(0);Sc(Eb,Db,id);Sc(Gb,gd,hd);fd=k[zc>>2]|0;j=k[d>>2]|0;fd=ge(j|0,((j|0)<0)<<31>>31|0,fd|0,((fd|0)<0)<<31>>31|0)|0;j=L;h=k[b>>2]|0;h=ee(h|0,((h|0)<0)<<31>>31|0,1)|0;h=be(fd|0,j|0,h|0,L|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){ed=be(0,0,h|0,j|0)|0;fd=L;k[id>>2]=ed;k[id+4>>2]=fd;k[id+256>>2]=(fd|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+4>>2]=j;k[id+256>>2]=(j|0)!=0?2:1}while(0);Sc(Fb,Gb,id);Uc(ac,Eb,Fb);Sc(cc,hd,hd);h=k[s>>2]|0;j=((h|0)<0)<<31>>31;l=ee(h|0,j|0,1)|0;n=L;do if((h|0)<=0)if((h|0)<0){ed=be(0,0,l|0,n|0)|0;fd=L;k[id>>2]=ed;k[id+4>>2]=fd;k[id+256>>2]=(fd|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=l;fd=de(h|0,j|0,31)|0;k[id+4>>2]=fd;k[id+256>>2]=(fd|0)!=0?2:1}while(0);Sc(bc,cc,id);Tc($b,ac,bc);fe(q|0,$b|0,260)|0;Xc(dc,jd,kd);g=+p[dc>>3];j=k[dc+8>>2]|0;do if((j|0)>1023){g=g*89884656743115795.0e291;h=j+-1023|0;if((h|0)<=1023)break;h=j+-2046|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291}else{if((j|0)>=-1022){h=j;break}g=g*2.2250738585072014e-308;h=j+1022|0;if((h|0)>=-1022)break;h=j+2044|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}while(0);ed=ee(h+1023|0,0,52)|0;fd=L;k[t>>2]=ed;k[t+4>>2]=fd;p[f+8>>3]=g*+p[t>>3]/m}do if(M|N){k[id>>2]=2;k[id+256>>2]=(e|0)==2?1:-1;Sc(jd,gd,id);q=jd+260|0;Sc(Cc,hd,hd);h=k[zc>>2]|0;j=k[d>>2]|0;h=ge(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){ed=be(0,0,h|0,j|0)|0;fd=L;k[id>>2]=ed;k[id+4>>2]=fd;k[id+256>>2]=(fd|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+4>>2]=j;k[id+256>>2]=(j|0)!=0?2:1}while(0);Sc(Dc,Cc,id);Sc(Fc,gd,hd);fd=k[Ac>>2]|0;j=k[Bc>>2]|0;fd=ge(j|0,((j|0)<0)<<31>>31|0,fd|0,((fd|0)<0)<<31>>31|0)|0;j=L;h=k[s>>2]|0;h=ee(h|0,((h|0)<0)<<31>>31|0,1)|0;h=be(fd|0,j|0,h|0,L|0)|0;j=L;do if(!((j|0)>0|(j|0)==0&h>>>0>0))if((j|0)<0){ed=be(0,0,h|0,j|0)|0;fd=L;k[id>>2]=ed;k[id+4>>2]=fd;k[id+256>>2]=(fd|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=h;k[id+4>>2]=j;k[id+256>>2]=(j|0)!=0?2:1}while(0);Sc(Ec,Fc,id);Uc(Qc,Dc,Ec);Sc(Wc,gd,gd);h=k[b>>2]|0;j=((h|0)<0)<<31>>31;l=ee(h|0,j|0,1)|0;n=L;do if((h|0)<=0)if((h|0)<0){ed=be(0,0,l|0,n|0)|0;fd=L;k[id>>2]=ed;k[id+4>>2]=fd;k[id+256>>2]=(fd|0)!=0?-2:-1;break}else{k[id+256>>2]=0;break}else{k[id>>2]=l;fd=de(h|0,j|0,31)|0;k[id+4>>2]=fd;k[id+256>>2]=(fd|0)!=0?2:1}while(0);Sc(Rc,Wc,id);Tc(Pc,Qc,Rc);fe(q|0,Pc|0,260)|0;if(M){Xc(Yc,jd,kd);g=+p[Yc>>3];j=k[Yc+8>>2]|0;do if((j|0)>1023){g=g*89884656743115795.0e291;h=j+-1023|0;if((h|0)<=1023)break;h=j+-2046|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291}else{if((j|0)>=-1022){h=j;break}g=g*2.2250738585072014e-308;h=j+1022|0;if((h|0)>=-1022)break;h=j+2044|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}while(0);fd=ee(h+1023|0,0,52)|0;id=L;k[t>>2]=fd;k[t+4>>2]=id;p[f>>3]=g*+p[t>>3]/m}if(!N)break;j=k[cd+256>>2]|0;fe(jd+520|0,cd|0,256)|0;k[jd+776>>2]=(j|0)<0?0-j|0:j;Sc(_c,gd,gd);Sc($c,hd,hd);Tc(Zc,_c,$c);fe(kd+520|0,Zc|0,260)|0;Vc(bd,a,jd,kd);g=+p[bd>>3];j=k[bd+8>>2]|0;do if((j|0)>1023){g=g*89884656743115795.0e291;h=j+-1023|0;if((h|0)<=1023)break;h=j+-2046|0;h=(h|0)>1023?1023:h;g=g*89884656743115795.0e291}else{if((j|0)>=-1022){h=j;break}g=g*2.2250738585072014e-308;h=j+1022|0;if((h|0)>=-1022)break;h=j+2044|0;h=(h|0)<-1022?-1022:h;g=g*2.2250738585072014e-308}while(0);kd=ee(h+1023|0,0,52)|0;a=L;k[t>>2]=kd;k[t+4>>2]=a;p[f+16>>3]=g*+p[t>>3]/m}while(0)}r=ld;return}function Sc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;r=b+256|0;d=k[r>>2]|0;if((d|0)!=0?(s=c+256|0,e=k[s>>2]|0,(e|0)!=0):0){d=(d|0)>-1?d:0-d|0;p=(e|0)>-1?e:0-e|0;o=d+-1+p|0;o=o>>>0<64?o:64;q=a+256|0;k[q>>2]=o;if(o){o=(d|0)==0;l=0-d|0;e=0;g=0;m=-1;n=0;while(1){j=0-(m>>>0>l>>>0?m:l)|0;if(o){f=0;d=0}else{f=0;d=0;i=0;do{h=n-i|0;if(h>>>0<p>>>0){t=ne(k[c+(h<<2)>>2]|0,0,k[b+(i<<2)>>2]|0,0)|0;h=L;e=ge(t|0,0,e|0,g|0)|0;g=L;f=ge(h|0,0,f|0,d|0)|0;d=L}i=i+1|0}while((i|0)!=(j|0))}k[a+(n<<2)>>2]=e;e=ge(g|0,0,f|0,d|0)|0;g=L;n=n+1|0;d=k[q>>2]|0;if(n>>>0>=d>>>0)break;else m=m+-1|0}if(!((e|0)==0&(g|0)==0|(d|0)==64)){k[a+(d<<2)>>2]=e;d=(k[q>>2]|0)+1|0;k[q>>2]=d}}else d=0;if(!((k[r>>2]|0)>0^(k[s>>2]|0)>0))return;k[q>>2]=0-d;return}k[a+256>>2]=0;return}
function Tc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0;j=b+256|0;d=k[j>>2]|0;if(!d){fe(a|0,c|0,260)|0;return}e=k[c+256>>2]|0;if(!e){fe(a|0,b|0,260)|0;return}f=(d|0)>-1?d:0-d|0;g=(e|0)>-1?e:0-e|0;if(!((d|0)>0^(e|0)>0)){while(1)if(f>>>0<g>>>0){h=g;i=c;g=f;f=h;c=b;b=i}else break;i=a+256|0;k[i>>2]=f;if(!g){e=0;d=0;c=0}else{e=0;d=0;h=0;while(1){m=k[c+(h<<2)>>2]|0;d=ge(k[b+(h<<2)>>2]|0,0,e|0,d|0)|0;d=ge(d|0,L|0,m|0,0)|0;e=L;k[a+(h<<2)>>2]=d;h=h+1|0;if((h|0)==(g|0)){d=0;c=g;break}else d=0}}if(c>>>0<f>>>0)while(1){m=ge(k[b+(c<<2)>>2]|0,0,e|0,d|0)|0;e=L;k[a+(c<<2)>>2]=m;c=c+1|0;if((c|0)==(f|0)){d=0;break}else d=0}if(!((e|0)==0&(d|0)==0)?(l=k[i>>2]|0,(l|0)!=64):0){k[a+(l<<2)>>2]=e;k[i>>2]=(k[i>>2]|0)+1}}else $c(a,b,f,c,g,0);if((k[j>>2]|0)>=0)return;m=a+256|0;k[m>>2]=0-(k[m>>2]|0);return}function Uc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0;j=b+256|0;d=k[j>>2]|0;if(!d){fe(a|0,c|0,260)|0;a=a+256|0;k[a>>2]=0-(k[a>>2]|0);return}e=k[c+256>>2]|0;if(!e){fe(a|0,b|0,260)|0;return}f=(d|0)>-1?d:0-d|0;g=(e|0)>-1?e:0-e|0;if((d|0)>0^(e|0)>0){while(1)if(f>>>0<g>>>0){h=g;i=c;g=f;f=h;c=b;b=i}else break;i=a+256|0;k[i>>2]=f;if(!g){e=0;d=0;c=0}else{e=0;d=0;h=0;while(1){m=k[c+(h<<2)>>2]|0;d=ge(k[b+(h<<2)>>2]|0,0,e|0,d|0)|0;d=ge(d|0,L|0,m|0,0)|0;e=L;k[a+(h<<2)>>2]=d;h=h+1|0;if((h|0)==(g|0)){d=0;c=g;break}else d=0}}if(c>>>0<f>>>0)while(1){m=ge(k[b+(c<<2)>>2]|0,0,e|0,d|0)|0;e=L;k[a+(c<<2)>>2]=m;c=c+1|0;if((c|0)==(f|0)){d=0;break}else d=0}if(!((e|0)==0&(d|0)==0)?(l=k[i>>2]|0,(l|0)!=64):0){k[a+(l<<2)>>2]=e;k[i>>2]=(k[i>>2]|0)+1}}else $c(a,b,f,c,g,0);if((k[j>>2]|0)>=0)return;m=a+256|0;k[m>>2]=0-(k[m>>2]|0);return}function Vc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0.0,n=0,o=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0.0,A=0,B=0,C=0,D=0,E=0;C=r;r=r+3184|0;A=C+2924|0;x=C+48|0;y=C+32|0;e=C+2664|0;f=C+2404|0;n=C+2144|0;o=C+1884|0;q=C+1624|0;s=C+1364|0;t=C+1104|0;u=C+844|0;v=C+584|0;w=C+324|0;g=C+64|0;h=C+16|0;i=C;Xc(x,c,d);j=c+520|0;l=d+520|0;_c(y,j,l);m=+p[x>>3];if(!(!(m<0.0)?!(+p[y>>3]<0.0):0))B=3;if((B|0)==3?(z=+p[y>>3],m>0.0|z>0.0):0){D=b+780|0;Sc(f,c,c);Sc(n,f,d);E=c+260|0;Sc(q,E,E);f=d+260|0;Sc(o,q,f);Tc(s,n,o);Sc(u,j,j);Sc(t,u,l);Uc(e,s,t);fe(D|0,e|0,260)|0;B=b+2080|0;k[B>>2]=1;k[b+2336>>2]=1;Sc(w,c,E);k[A>>2]=2;k[A+256>>2]=1;Sc(v,w,A);fe(b+1040|0,v|0,260)|0;Sc(g,d,f);fe(b+2340|0,g|0,260)|0;Xc(h,D,B);Zc(i,x,z,k[y+8>>2]|0);b=(k[h+8>>2]|0)-(k[i+8>>2]|0)|0;B=a+8|0;z=+Kd(+p[h>>3]/+p[i>>3],B);p[a>>3]=z;k[B>>2]=b+(k[B>>2]|0);r=C;return}Yc(a,x,y);r=C;return}function Wc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,q=0,s=0,t=0,u=0,v=0.0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0.0,G=0,H=0,I=0,J=0;I=r;r=r+4752|0;G=I+4484|0;D=I+48|0;E=I+32|0;e=I+4224|0;f=I+3964|0;t=I+3704|0;w=I+3444|0;x=I+3184|0;y=I+2924|0;z=I+2664|0;A=I+2404|0;B=I+2144|0;C=I+1884|0;g=I+1624|0;h=I+1364|0;i=I+1104|0;j=I+844|0;l=I+584|0;m=I+324|0;n=I+64|0;o=I+16|0;q=I;Xc(D,c,d);s=c+520|0;u=d+520|0;Xc(E,s,u);v=+p[D>>3];if(!(!(v<0.0)?!(+p[E>>3]<0.0):0))H=3;if((H|0)==3?(F=+p[E>>3],v>0.0|F>0.0):0){Sc(f,c,c);Sc(t,f,d);J=c+260|0;Sc(x,J,J);f=d+260|0;Sc(w,x,f);Tc(y,t,w);Sc(A,s,s);Sc(z,A,u);Uc(B,y,z);z=c+780|0;Sc(g,z,z);A=d+780|0;Sc(C,g,A);Uc(e,B,C);fe(b|0,e|0,260)|0;H=b+1300|0;k[H>>2]=1;k[b+1556>>2]=1;Sc(i,c,J);k[G>>2]=2;k[G+256>>2]=1;Sc(h,i,G);fe(b+260|0,h|0,260)|0;Sc(j,d,f);fe(b+1560|0,j|0,260)|0;Sc(m,s,z);k[G>>2]=2;k[G+256>>2]=-1;Sc(l,m,G);fe(b+520|0,l|0,260)|0;Sc(n,u,A);fe(b+1820|0,n|0,260)|0;Vc(o,b,b,H);Zc(q,D,F,k[E+8>>2]|0);b=(k[o+8>>2]|0)-(k[q+8>>2]|0)|0;H=a+8|0;F=+Kd(+p[o>>3]/+p[q>>3],H);p[a>>3]=F;k[H>>2]=b+(k[H>>2]|0);r=I;return}Yc(a,D,E);r=I;return}function Xc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0.0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,q=0,s=0,t=0;t=r;r=r+1376|0;o=t+48|0;q=t+32|0;l=t+1104|0;d=t+844|0;f=t+584|0;g=t+324|0;h=t+64|0;m=t+16|0;n=t;_c(o,b,c);i=b+260|0;j=c+260|0;_c(q,i,j);e=+p[o>>3];if(!(!(e<0.0)?!(+p[q>>3]<0.0):0))s=3;do if((s|0)==3){if(!(e>0.0)?!(+p[q>>3]>0.0):0)break;Sc(d,b,b);Sc(f,d,c);Sc(h,i,i);Sc(g,h,j);Uc(l,f,g);f=k[l+256>>2]|0;d=(f|0)>-1?f:0-f|0;switch(d|0){case 0:{e=0.0;d=0;break}case 1:{e=+((k[l>>2]|0)>>>0);d=0;s=10;break}case 2:{e=+((k[l+4>>2]|0)>>>0)*4294967296.0+ +((k[l>>2]|0)>>>0);d=0;s=10;break}default:{e=+((k[l+(d+-3<<2)>>2]|0)>>>0)+(+((k[l+(d+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[l+(d+-2<<2)>>2]|0)>>>0))*4294967296.0;d=(d<<5)+-96|0;s=10}}if((s|0)==10)e=(f|0)<0?-e:e;l=m+8|0;e=+Kd(e,l);p[m>>3]=e;s=(k[l>>2]|0)+d|0;k[l>>2]=s;Zc(n,o,+p[q>>3],k[q+8>>2]|0);q=s-(k[n+8>>2]|0)|0;s=a+8|0;e=+Kd(e/+p[n>>3],s);p[a>>3]=e;k[s>>2]=q+(k[s>>2]|0);r=t;return}while(0);Yc(a,o,q);r=t;return}function Yc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0.0,e=0.0,f=0,g=0;d=+p[b>>3];if(!(d==0.0)?(f=k[c+8>>2]|0,g=k[b+8>>2]|0,(f|0)<=(g+54|0)):0){e=+p[c>>3];if((g|0)>(f+54|0)|e==0.0){k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];return}if((g|0)<(f|0)){b=f-g|0;if((b|0)>1023){e=e*89884656743115795.0e291;c=b+-1023|0;if((c|0)>1023){c=b+-2046|0;c=(c|0)>1023?1023:c;e=e*89884656743115795.0e291}}else if((b|0)<-1022){e=e*2.2250738585072014e-308;c=b+1022|0;if((c|0)<-1022){c=b+2044|0;c=(c|0)<-1022?-1022:c;e=e*2.2250738585072014e-308}}else c=b;b=ee(c+1023|0,0,52)|0;f=L;k[t>>2]=b;k[t+4>>2]=f;f=a+8|0;e=+Kd(d+e*+p[t>>3],f);p[a>>3]=e;k[f>>2]=(k[f>>2]|0)+g;return}else{b=g-f|0;if((b|0)>1023){d=d*89884656743115795.0e291;c=b+-1023|0;if((c|0)>1023){c=b+-2046|0;c=(c|0)>1023?1023:c;d=d*89884656743115795.0e291}}else if((b|0)<-1022){d=d*2.2250738585072014e-308;c=b+1022|0;if((c|0)<-1022){c=b+2044|0;c=(c|0)<-1022?-1022:c;d=d*2.2250738585072014e-308}}else c=b;b=ee(c+1023|0,0,52)|0;g=L;k[t>>2]=b;k[t+4>>2]=g;g=a+8|0;e=+Kd(e+d*+p[t>>3],g);p[a>>3]=e;k[g>>2]=(k[g>>2]|0)+f;return}};k[a>>2]=k[c>>2];k[a+4>>2]=k[c+4>>2];k[a+8>>2]=k[c+8>>2];k[a+12>>2]=k[c+12>>2];return}function Zc(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;var e=0.0,f=0.0,g=0,h=0;e=+p[b>>3];if(!(e==0.0)?(h=k[b+8>>2]|0,(h+54|0)>=(d|0)):0){if((h|0)>(d+54|0)|c==0.0){k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];return}if((h|0)<(d|0)){g=d-h|0;if((g|0)>1023){f=c*-89884656743115795.0e291;b=g+-1023|0;if((b|0)>1023){b=g+-2046|0;b=(b|0)>1023?1023:b;f=f*89884656743115795.0e291}}else{f=-c;if((g|0)<-1022){f=c*-2.2250738585072014e-308;b=g+1022|0;if((b|0)<-1022){b=g+2044|0;b=(b|0)<-1022?-1022:b;f=f*2.2250738585072014e-308}}else b=g}g=ee(b+1023|0,0,52)|0;d=L;k[t>>2]=g;k[t+4>>2]=d;d=a+8|0;c=+Kd(e+f*+p[t>>3],d);p[a>>3]=c;k[d>>2]=(k[d>>2]|0)+h;return}else{g=h-d|0;if((g|0)>1023){e=e*89884656743115795.0e291;b=g+-1023|0;if((b|0)>1023){b=g+-2046|0;b=(b|0)>1023?1023:b;e=e*89884656743115795.0e291}}else if((g|0)<-1022){e=e*2.2250738585072014e-308;b=g+1022|0;if((b|0)<-1022){b=g+2044|0;b=(b|0)<-1022?-1022:b;e=e*2.2250738585072014e-308}}else b=g;g=ee(b+1023|0,0,52)|0;h=L;k[t>>2]=g;k[t+4>>2]=h;h=a+8|0;c=+Kd(e*+p[t>>3]-c,h);p[a>>3]=c;k[h>>2]=(k[h>>2]|0)+d;return}}h=a+8|0;c=+Kd(-c,h);p[a>>3]=c;k[h>>2]=(k[h>>2]|0)+d;return}function _c(a,b,c){a=a|0;b=b|0;c=c|0;var d=0.0,e=0,f=0,g=0,h=0.0,i=0,j=0,l=0,m=0;m=r;r=r+48|0;g=m+32|0;j=m+16|0;i=m;f=k[b+256>>2]|0;e=(f|0)>-1?f:0-f|0;switch(e|0){case 0:{d=0.0;b=0;break}case 1:{d=+((k[b>>2]|0)>>>0);b=0;l=5;break}case 2:{d=+((k[b+4>>2]|0)>>>0)*4294967296.0+ +((k[b>>2]|0)>>>0);b=0;l=5;break}default:{d=+((k[b+(e+-3<<2)>>2]|0)>>>0)+(+((k[b+(e+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[b+(e+-2<<2)>>2]|0)>>>0))*4294967296.0;b=(e<<5)+-96|0;l=5}}if((l|0)==5)d=(f|0)<0?-d:d;e=g+8|0;h=+Kd(d,e);p[g>>3]=h;f=(k[e>>2]|0)+b|0;k[e>>2]=f;e=k[c+256>>2]|0;b=(e|0)>-1?e:0-e|0;switch(b|0){case 0:{d=0.0;b=0;break}case 1:{d=+((k[c>>2]|0)>>>0);b=0;l=10;break}case 2:{d=+((k[c+4>>2]|0)>>>0)*4294967296.0+ +((k[c>>2]|0)>>>0);b=0;l=10;break}default:{d=+((k[c+(b+-3<<2)>>2]|0)>>>0)+(+((k[c+(b+-1<<2)>>2]|0)>>>0)*4294967296.0+ +((k[c+(b+-2<<2)>>2]|0)>>>0))*4294967296.0;b=(b<<5)+-96|0;l=10}}if((l|0)==10)d=(e|0)<0?-d:d;l=j+8|0;d=+Kd(d,l);p[j>>3]=d;l=(k[l>>2]|0)+b|0;c=(l&1|0)==0;j=i+8|0;d=+Kd(+X(+(c?d:d*2.0)),j);p[i>>3]=d;j=(((c^1)<<31>>31)+l>>1)+(k[j>>2]|0)+f|0;l=a+8|0;h=+Kd(h*d,l);p[a>>3]=h;k[l>>2]=j+(k[l>>2]|0);r=m;return}function $c(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;if(c>>>0<e>>>0){$c(a,d,e,b,c,1);a=a+256|0;k[a>>2]=0-(k[a>>2]|0);return}do if((c|0)!=(e|0)|f){f=a+256|0;k[f>>2]=c+-1;if(!e){e=0;h=f;f=0}else{j=f;i=12}}else{while(1){f=c+-1|0;e=k[b+(f<<2)>>2]|0;g=k[d+(f<<2)>>2]|0;if(e>>>0<g>>>0){i=5;break}if(e>>>0>g>>>0){i=8;break}if(!f)break;else c=f}if((i|0)==5){$c(a,d,c,b,c,1);a=a+256|0;k[a>>2]=0-(k[a>>2]|0);return}if((i|0)==8?(c|0)!=0:0){j=a+256|0;k[j>>2]=f;e=c;i=12;break}k[a+256>>2]=0;return}while(0);if((i|0)==12){f=0;i=0;do{g=b+(i<<2)|0;h=d+(i<<2)|0;k[a+(i<<2)>>2]=(k[g>>2]|0)+(f<<31>>31)-(k[h>>2]|0);g=k[g>>2]|0;h=k[h>>2]|0;if(g>>>0<h>>>0)f=1;else f=f&(g|0)==(h|0);i=i+1|0}while((i|0)!=(e|0));h=j}if(e>>>0<c>>>0){g=f;while(1){f=b+(e<<2)|0;k[a+(e<<2)>>2]=(k[f>>2]|0)-(g&1);e=e+1|0;if((e|0)==(c|0))break;else g=g&(k[f>>2]|0)==0}}f=k[h>>2]|0;if(!(k[a+(f<<2)>>2]|0))return;k[h>>2]=f+1;return}function ad(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0.0,g=0,h=0,i=0,j=0,l=0,m=0,n=0.0,o=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0;Ka=r;r=r+16688|0;Ja=Ka+16416|0;xa=Ka+15896|0;ya=Ka+15376|0;za=Ka+272|0;Ba=Ka+256|0;ha=Ka+15112|0;ia=Ka+14852|0;pa=Ka+14592|0;qa=Ka+14332|0;ra=Ka+14072|0;sa=Ka+13812|0;ta=Ka+13552|0;ua=Ka+13292|0;va=Ka+13032|0;wa=Ka+12772|0;ja=Ka+12512|0;ka=Ka+12252|0;la=Ka+11992|0;ma=Ka+11732|0;na=Ka+11472|0;Aa=Ka+240|0;oa=Ka+224|0;Ha=Ka+10432|0;Ia=Ka+9392|0;K=Ka+208|0;M=Ka+192|0;e=Ka+176|0;o=Ka+160|0;q=Ka+144|0;u=Ka+9128|0;v=Ka+8868|0;w=Ka+8608|0;x=Ka+8348|0;y=Ka+8088|0;z=Ka+7828|0;A=Ka+7568|0;B=Ka+7308|0;C=Ka+7048|0;D=Ka+6788|0;E=Ka+6528|0;F=Ka+6268|0;G=Ka+6008|0;H=Ka+5748|0;I=Ka+5488|0;L=Ka+128|0;J=Ka+112|0;Fa=Ka+96|0;t=Ka+80|0;j=Ka+64|0;s=Ka+48|0;Ea=Ka+32|0;N=Ka+5228|0;O=Ka+4968|0;P=Ka+4708|0;Q=Ka+4448|0;R=Ka+4188|0;S=Ka+3928|0;T=Ka+3668|0;U=Ka+3408|0;V=Ka+3148|0;W=Ka+2888|0;Y=Ka+2628|0;Z=Ka+2368|0;_=Ka+2108|0;$=Ka+1848|0;ba=Ka+1588|0;ca=Ka+1328|0;da=Ka+1068|0;ea=Ka+808|0;fa=Ka+548|0;ga=Ka+288|0;Ca=Ka+16|0;Da=Ka;aa=c+780|0;if(!(k[c+1036>>2]|0)){Xc(K,c,d);k[Ha>>2]=1;k[Ha+256>>2]=1;g=d+260|0;Sc(Ia,d,g);h=Ha+260|0;i=d+520|0;fe(h|0,i|0,260)|0;j=Ia+260|0;k[j>>2]=1;k[Ia+516>>2]=1;l=c+520|0;m=d+780|0;_c(e,l,m);Xc(q,Ha,Ia);f=+p[q>>3];Fa=k[q+8>>2]|0;Ea=(Fa&1|0)==0;Ga=o+8|0;f=+Kd(+X(+(Ea?f:f*2.0)),Ga);p[o>>3]=f;Fa=(((Ea^1)<<31>>31)+Fa>>1)+(k[Ga>>2]|0)|0;k[Ga>>2]=Fa;Fa=Fa+(k[e+8>>2]|0)|0;Ga=M+8|0;f=+Kd(+p[e>>3]*f,Ga);p[M>>3]=f;e=Fa+(k[Ga>>2]|0)|0;k[Ga>>2]=e;n=+p[K>>3];if(n<0.0|f<0.0?n>0.0|f>0.0:0){Sc(v,c,c);Sc(w,v,d);Ga=c+260|0;Sc(y,Ga,Ga);Sc(x,y,g);Tc(z,w,x);Sc(B,l,l);Sc(C,B,m);Sc(A,C,i);Uc(u,z,A);fe(Ha|0,u|0,260)|0;k[Ia>>2]=1;k[Ia+256>>2]=1;Sc(E,c,Ga);k[Ja>>2]=2;k[Ja+256>>2]=1;Sc(F,E,Ja);Sc(H,l,l);Sc(G,H,m);Uc(D,F,G);fe(h|0,D|0,260)|0;Sc(I,d,g);fe(j|0,I|0,260)|0;Xc(L,Ha,Ia);Zc(J,K,f,e);Ia=(k[L+8>>2]|0)-(k[J+8>>2]|0)|0;Ja=a+8|0;n=+Kd(+p[L>>3]/+p[J>>3],Ja);p[a>>3]=n;k[Ja>>2]=Ia+(k[Ja>>2]|0);r=Ka;return}Yc(a,K,M);r=Ka;return}k[Ha>>2]=1;k[Ha+256>>2]=1;l=d+260|0;Sc(Ia,d,l);m=Ha+260|0;g=d+520|0;fe(m|0,g|0,260)|0;o=Ia+260|0;k[o>>2]=1;k[Ia+516>>2]=1;h=c+520|0;i=d+780|0;_c(t,h,i);Xc(s,Ha,Ia);n=+p[s>>3];e=k[s+8>>2]|0;M=(e&1|0)==0;q=j+8|0;n=+Kd(+X(+(M?n:n*2.0)),q);p[j>>3]=n;e=(((M^1)<<31>>31)+e>>1)+(k[q>>2]|0)|0;k[q>>2]=e;e=e+(k[t+8>>2]|0)|0;q=Fa+8|0;n=+Kd(+p[t>>3]*n,q);p[Fa>>3]=n;k[q>>2]=e+(k[q>>2]|0);fe(Ha|0,c|0,260)|0;fe(Ia|0,d|0,260)|0;e=c+260|0;fe(m|0,e|0,260)|0;fe(o|0,l|0,260)|0;j=Ha+520|0;fe(j|0,aa|0,260)|0;k[Ia+520>>2]=1;k[Ia+776>>2]=1;Vc(Ea,b,Ha,Ia);f=+p[Ea>>3];if(f<0.0|n<0.0?f>0.0|n>0.0:0){Sc(N,aa,c);k[Ja>>2]=2;k[Ja+256>>2]=1;Sc(Ha,N,Ja);Sc(P,aa,e);k[Ja>>2]=2;k[Ja+256>>2]=1;Sc(O,P,Ja);fe(m|0,O|0,260)|0;Sc(R,c,c);Sc(S,R,d);Sc(U,e,e);Sc(T,U,l);Tc(V,S,T);Sc(W,aa,aa);Tc(Y,V,W);Sc(_,h,h);Sc($,_,g);Sc(Z,$,i);Uc(Q,Y,Z);fe(j|0,Q|0,260)|0;g=Ha+780|0;Sc(ca,c,e);k[Ja>>2]=2;k[Ja+256>>2]=1;Sc(da,ca,Ja);Sc(fa,h,h);Sc(ea,fa,i);Uc(ba,da,ea);fe(g|0,ba|0,260)|0;e=Ia+780|0;Sc(ga,d,l);fe(e|0,ga|0,260)|0;Xc(za,Ha,Ia);Xc(Ba,j,Ia+520|0);f=+p[za>>3];if(!(f<0.0)?!(+p[Ba>>3]<0.0):0)Ga=12;else{n=+p[Ba>>3];if(f>0.0|n>0.0){Sc(ia,Ha,Ha);Sc(pa,ia,Ia);Sc(ra,m,m);Sc(qa,ra,o);Tc(sa,pa,qa);Sc(ta,j,j);Uc(ua,sa,ta);Sc(wa,g,g);Sc(ja,wa,Ia);Sc(va,ja,o);Uc(ha,ua,va);fe(xa|0,ha|0,260)|0;k[ya>>2]=1;k[ya+256>>2]=1;Sc(la,Ha,m);Sc(ma,j,g);Uc(na,la,ma);k[Ja>>2]=2;k[Ja+256>>2]=1;Sc(ka,na,Ja);fe(xa+260|0,ka|0,260)|0;fe(ya+260|0,e|0,260)|0;Xc(Aa,xa,ya);Zc(oa,za,n,k[Ba+8>>2]|0);e=(k[Aa+8>>2]|0)-(k[oa+8>>2]|0)|0;Ja=Ca+8|0;f=+Kd(+p[Aa>>3]/+p[oa>>3],Ja);p[Ca>>3]=f;e=e+(k[Ja>>2]|0)|0;k[Ja>>2]=e}else Ga=12}if((Ga|0)==12){Yc(Ca,za,Ba);f=+p[Ca>>3];e=k[Ca+8>>2]|0}Zc(Da,Ea,+p[Fa>>3],k[q>>2]|0);Ia=e-(k[Da+8>>2]|0)|0;Ja=a+8|0;n=+Kd(f/+p[Da>>3],Ja);p[a>>3]=n;k[Ja>>2]=Ia+(k[Ja>>2]|0);r=Ka;return}Yc(a,Ea,Fa);r=Ka;return}function bd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0;f=a+4|0;g=k[a>>2]|0;c=g;h=(k[f>>2]|0)-c|0;i=(h|0)/24|0;j=i+1|0;if(j>>>0>178956970)xa(1340,1363,303,1438);l=a+8|0;c=((k[l>>2]|0)-c|0)/24|0;if(c>>>0<89478485){c=c<<1;c=c>>>0<j>>>0?j:c;if(!c){c=0;d=0}else e=5}else{c=178956970;e=5}if((e|0)==5){e=c*24|0;e=(e|0)==0?1:e;d=_d(e)|0;a:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break a}a=ya(4)|0;k[a>>2]=128;La(a|0,8,1)}while(0)}e=d+(i*24|0)|0;k[e>>2]=k[b>>2];k[e+4>>2]=k[b+4>>2];k[e+8>>2]=k[b+8>>2];k[e+12>>2]=k[b+12>>2];k[e+16>>2]=k[b+16>>2];k[e+20>>2]=k[b+20>>2];b=d+((((h|0)/-24|0)+i|0)*24|0)|0;fe(b|0,g|0,h|0)|0;k[a>>2]=b;k[f>>2]=d+(j*24|0);k[l>>2]=d+(c*24|0);if(!g)return;$d(g);return}function cd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;j=k[a+16>>2]|0;h=a+28|0;l=k[a+44>>2]|0;m=j>>>0>l>>>0;o=m?a:h;t=k[b+16>>2]|0;i=b+28|0;r=k[b+44>>2]|0;s=t>>>0>r>>>0;p=s?b:i;c=o+8|0;d=k[o>>2]|0;e=k[c>>2]|0;q=(d|0)==(e|0);if(q)if((k[o+4>>2]|0)<(k[o+12>>2]|0))c=o;else g=4;else if((d|0)<(e|0))c=o;else g=4;d=p+8|0;e=k[p>>2]|0;f=k[d>>2]|0;n=(e|0)==(f|0);if(n)if((k[p+4>>2]|0)<(k[p+12>>2]|0))f=p;else g=8;else if((e|0)<(f|0))f=p;else g=8;if((g|0)==8)f=d;d=k[c>>2]|0;e=k[f>>2]|0;if((d|0)<(e|0)){b=hd(a,h,f)|0;return b|0}if((d|0)>(e|0)){b=(hd(b,i,c)|0)^1;return b|0}d=k[o+16>>2]|0;e=k[p+16>>2]|0;if((d|0)==(e|0)){do if((j|0)!=(l|0))if(m){c=a+12|0;f=1;break}else{c=a+32|0;f=-1;break}else{c=a+4|0;f=0}while(0);e=k[c>>2]|0;do if((t|0)!=(r|0))if(s){c=b+12|0;d=1;break}else{c=b+32|0;d=-1;break}else{c=b+4|0;d=0}while(0);c=k[c>>2]|0;if((e|0)<(c|0)){b=1;return b|0}else return (f|0)<(d|0)&(c|0)>=(e|0)|0}c=(j|0)==(l|0);if(d>>>0<e>>>0){do if(!c){if(!m){c=a+32|0;e=-1;break}if((k[a>>2]|0)==(k[a+8>>2]|0)){c=a+4|0;e=1;break}else{c=a+12|0;e=1;break}}else{c=a+4|0;e=0}while(0);d=k[c>>2]|0;do if((t|0)!=(r|0))if(s){c=b+12|0;break}else{c=b+32|0;break}else c=b+4|0;while(0);c=k[c>>2]|0;if((d|0)!=(c|0)){b=(d|0)<(c|0);return b|0}if(q)c=(k[o+4>>2]|0)==(k[o+12>>2]|0);else c=0;b=(e|0)<0&c;return b|0}else{do if(!c)if(m){c=a+12|0;break}else{c=a+32|0;break}else c=a+4|0;while(0);e=k[c>>2]|0;do if((t|0)!=(r|0)){if(!s){c=b+32|0;d=-1;break}if((k[b>>2]|0)==(k[b+8>>2]|0)){c=b+4|0;d=1;break}else{c=b+12|0;d=1;break}}else{c=b+4|0;d=0}while(0);c=k[c>>2]|0;if((e|0)!=(c|0)){b=(e|0)<(c|0);return b|0}if(n)c=(k[p+4>>2]|0)!=(k[p+12>>2]|0);else c=1;b=(d|0)>0|c;return b|0}return 0}function dd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;B=r;r=r+144|0;A=B+128|0;z=B+72|0;p=B;x=B+64|0;u=B+32|0;k[z>>2]=k[b>>2];k[z+4>>2]=k[b+4>>2];k[z+8>>2]=k[b+8>>2];k[z+12>>2]=k[b+12>>2];k[z+16>>2]=k[b+16>>2];k[z+20>>2]=k[b+20>>2];k[z+24>>2]=k[b+24>>2];i=z+28|0;k[i>>2]=k[d>>2];k[i+4>>2]=k[d+4>>2];k[i+8>>2]=k[d+8>>2];k[i+12>>2]=k[d+12>>2];k[i+16>>2]=k[d+16>>2];k[i+20>>2]=k[d+20>>2];k[i+24>>2]=k[d+24>>2];i=d;g=k[i>>2]|0;i=k[i+4>>2]|0;v=d+8|0;h=v;b=k[h>>2]|0;h=k[h+4>>2]|0;s=d+16|0;m=s;l=k[m>>2]|0;m=k[m+4>>2]|0;t=d+24|0;j=k[t>>2]|0;k[p>>2]=k[c>>2];k[p+4>>2]=k[c+4>>2];k[p+8>>2]=k[c+8>>2];k[p+12>>2]=k[c+12>>2];k[p+16>>2]=k[c+16>>2];k[p+20>>2]=k[c+20>>2];k[p+24>>2]=k[c+24>>2];q=d+8|0;if((g|0)==(b|0)?(k[d+4>>2]|0)==(k[d+12>>2]|0):0){n=g;o=i}else{n=b;o=h;b=g;h=i;j=j^32}ed(x,f,c,d);y=a+64|0;i=k[e>>2]|0;f=k[x+4>>2]|0;c=_d(80)|0;a:do if(!c){while(1){g=k[35]|0;k[35]=g+0;if(!g)break;Xa[g&0]();c=_d(80)|0;if(c)break a}B=ya(4)|0;k[B>>2]=128;La(B|0,8,1)}while(0);g=c+16|0;C=g;k[C>>2]=n;k[C+4>>2]=o;o=c+24|0;k[o>>2]=b;k[o+4>>2]=h;b=c+32|0;k[b>>2]=l;k[b+4>>2]=m;k[c+40>>2]=j;b=c+44|0;k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];k[b+24>>2]=k[p+24>>2];k[c+72>>2]=0;k[c+76>>2]=f;g=fd(y,i,A,g)|0;b=k[g>>2]|0;if(b)if((b|0)==(c|0))c=b;else{$d(c);c=b}else{b=k[A>>2]|0;k[c>>2]=0;k[c+4>>2]=0;k[c+8>>2]=b;k[g>>2]=c;b=k[k[y>>2]>>2]|0;if(!b)b=c;else{k[y>>2]=b;b=k[g>>2]|0}Nb(k[a+68>>2]|0,b);C=a+72|0;k[C>>2]=(k[C>>2]|0)+1}k[e>>2]=c;if(!((k[d>>2]|0)==(k[q>>2]|0)?(k[d+4>>2]|0)==(k[d+12>>2]|0):0))w=16;do if((w|0)==16){k[u>>2]=k[d>>2];k[u+4>>2]=k[d+4>>2];k[u+8>>2]=k[d+8>>2];k[u+12>>2]=k[d+12>>2];k[u+16>>2]=k[d+16>>2];k[u+20>>2]=k[d+20>>2];k[u+24>>2]=k[d+24>>2];n=d;m=k[n>>2]|0;n=k[n+4>>2]|0;l=v;f=k[l>>2]|0;l=k[l+4>>2]|0;j=s;i=k[j>>2]|0;j=k[j+4>>2]|0;g=k[t>>2]^32;b=_d(80)|0;b:do if(!b){while(1){b=k[35]|0;k[35]=b+0;if(!b)break;Xa[b&0]();b=_d(80)|0;if(b){h=b;break b}}C=ya(4)|0;k[C>>2]=128;La(C|0,8,1)}else h=b;while(0);b=h+16|0;k[b>>2]=k[u>>2];k[b+4>>2]=k[u+4>>2];k[b+8>>2]=k[u+8>>2];k[b+12>>2]=k[u+12>>2];k[b+16>>2]=k[u+16>>2];k[b+20>>2]=k[u+20>>2];k[b+24>>2]=k[u+24>>2];C=h+44|0;k[C>>2]=f;k[C+4>>2]=l;C=h+52|0;k[C>>2]=m;k[C+4>>2]=n;C=h+60|0;k[C>>2]=i;k[C+4>>2]=j;k[h+68>>2]=g;k[h+72>>2]=0;k[h+76>>2]=0;g=fd(y,c,A,b)|0;b=k[g>>2]|0;if(b)if((b|0)==(h|0))g=b;else{$d(h);g=b}else{b=k[A>>2]|0;k[h>>2]=0;k[h+4>>2]=0;k[h+8>>2]=b;k[g>>2]=h;b=k[k[y>>2]>>2]|0;if(!b)b=h;else{k[y>>2]=b;b=k[g>>2]|0}Nb(k[a+68>>2]|0,b);g=a+72|0;k[g>>2]=(k[g>>2]|0)+1;g=h}k[e>>2]=g;b=a+20|0;n=v;m=k[n>>2]|0;n=k[n+4>>2]|0;q=a+24|0;h=k[q>>2]|0;o=a+28|0;i=k[o>>2]|0;if(h>>>0>=i>>>0){p=k[b>>2]|0;j=p;c=h-j|0;l=(c|0)/12|0;f=l+1|0;if(f>>>0>357913941)xa(1340,1363,303,1438);h=(i-j|0)/12|0;if(h>>>0<178956970){h=h<<1;h=h>>>0<f>>>0?f:h;if(!h){j=0;i=0}else w=32}else{h=357913941;w=32}if((w|0)==32){j=h*12|0;j=(j|0)==0?1:j;i=_d(j)|0;c:do if(!i){while(1){i=k[35]|0;k[35]=i+0;if(!i)break;Xa[i&0]();i=_d(j)|0;if(i)break c}C=ya(4)|0;k[C>>2]=128;La(C|0,8,1)}while(0);j=h}h=i+(l*12|0)|0;k[h>>2]=m;k[h+4>>2]=n;k[i+(l*12|0)+8>>2]=g;h=i+(f*12|0)|0;C=i+((((c|0)/-12|0)+l|0)*12|0)|0;fe(C|0,p|0,c|0)|0;k[b>>2]=C;k[q>>2]=h;k[o>>2]=i+(j*12|0);if(!p)f=h;else{$d(p);f=k[q>>2]|0}}else{f=h;k[f>>2]=m;k[f+4>>2]=n;k[h+8>>2]=g;f=(k[q>>2]|0)+12|0;k[q>>2]=f}o=k[b>>2]|0;C=f-o|0;c=(C|0)/12|0;if((C|0)>12){j=(c+-2|0)/2|0;b=o+(j*12|0)|0;l=f+-12|0;h=k[l>>2]|0;i=k[b>>2]|0;if((h|0)==(i|0)){if((k[f+-8>>2]|0)>=(k[o+(j*12|0)+4>>2]|0)){c=g;break}}else if((h|0)>=(i|0)){c=g;break}n=l;m=k[n>>2]|0;n=k[n+4>>2]|0;C=f+-4|0;f=k[C>>2]|0;u=b;v=k[u+4>>2]|0;w=l;k[w>>2]=k[u>>2];k[w+4>>2]=v;k[C>>2]=k[o+(j*12|0)+8>>2];d:do if((c+-1|0)>>>0>=3)while(1){g=j;j=(j+-1|0)/2|0;h=o+(j*12|0)|0;i=k[h>>2]|0;if((m|0)==(i|0)){if((n|0)>=(k[o+(j*12|0)+4>>2]|0))break d}else if((m|0)>=(i|0))break d;v=h;w=k[v+4>>2]|0;C=b;k[C>>2]=k[v>>2];k[C+4>>2]=w;k[o+(g*12|0)+8>>2]=k[o+(j*12|0)+8>>2];if(g>>>0<3){b=h;break}else b=h}while(0);c=b;k[c>>2]=m;k[c+4>>2]=n;k[b+8>>2]=f;c=k[e>>2]|0}else c=g}while(0);j=k[x>>2]|0;b=_d(80)|0;e:do if(!b){while(1){b=k[35]|0;k[35]=b+0;if(!b)break;Xa[b&0]();b=_d(80)|0;if(b){f=b;break e}}C=ya(4)|0;k[C>>2]=128;La(C|0,8,1)}else f=b;while(0);h=f+16|0;i=h;b=z;g=i+56|0;do{k[i>>2]=k[b>>2];i=i+4|0;b=b+4|0}while((i|0)<(g|0));k[f+72>>2]=0;k[f+76>>2]=j;g=fd(y,c,A,h)|0;b=k[g>>2]|0;if(!b){b=k[A>>2]|0;k[f>>2]=0;k[f+4>>2]=0;k[f+8>>2]=b;k[g>>2]=f;b=k[k[y>>2]>>2]|0;if(!b)b=f;else{k[y>>2]=b;b=k[g>>2]|0}Nb(k[a+68>>2]|0,b);C=a+72|0;k[C>>2]=(k[C>>2]|0)+1;C=f;r=B;return C|0}else{if((b|0)==(f|0)){C=b;r=B;return C|0}$d(f);C=b;r=B;return C|0}return 0}function ed(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0;x=r;r=r+80|0;q=x+48|0;s=x+24|0;t=x+12|0;u=x;v=k[c+16>>2]|0;w=k[d+16>>2]|0;o=k[c>>2]|0;l=k[c+8>>2]|0;i=(o|0)==(l|0);if(i)g=(k[c+4>>2]|0)!=(k[c+12>>2]|0);else g=1;m=k[d>>2]|0;n=k[d+8>>2]|0;j=(m|0)==(n|0);do if(j){f=k[d+4>>2]|0;e=(f|0)!=(k[d+12>>2]|0);if(!(e|g^1)){if((o|0)==(m|0)?(k[c+4>>2]|0)==(f|0):0){h=1;break}if((l|0)==(m|0)?(k[c+12>>2]|0)==(f|0):0)h=1;else p=14}else p=9}else{e=1;p=9}while(0);do if((p|0)==9)if(!(g|e^1)){if((m|0)==(o|0)?(k[d+4>>2]|0)==(k[c+4>>2]|0):0){h=1;break}if((n|0)==(o|0)?(k[d+12>>2]|0)==(k[c+4>>2]|0):0)h=1;else p=14}else p=14;while(0);if((p|0)==14){if(i)e=(k[c+4>>2]|0)!=(k[c+12>>2]|0);else e=1;if(j)f=(k[d+4>>2]|0)!=(k[d+12>>2]|0);else f=1;h=e^f^1}if(i)g=(k[c+4>>2]|0)!=(k[c+12>>2]|0);else g=1;do if(j){f=k[d+4>>2]|0;e=(f|0)!=(k[d+12>>2]|0);if(!(e|g^1)){if((o|0)==(m|0)?(k[c+4>>2]|0)==(f|0):0){e=0;break}if((l|0)==(m|0))e=(k[c+12>>2]|0)!=(f|0);else e=1}else p=27}else{e=1;p=27}while(0);do if((p|0)==27)if(!(g|e^1)){if((m|0)==(o|0)?(k[d+4>>2]|0)==(k[c+4>>2]|0):0){e=0;break}if((n|0)==(o|0))e=(k[d+12>>2]|0)!=(k[c+4>>2]|0);else e=1}else e=1;while(0);i=b+24|0;f=h&1;f=e?f|2:f;k[q>>2]=0;k[q+4>>2]=0;k[q+8>>2]=0;k[q+12>>2]=0;k[q+16>>2]=0;k[q+20>>2]=f;g=b+28|0;e=k[g>>2]|0;h=b+32|0;if(e>>>0<(k[h>>2]|0)>>>0){k[e>>2]=k[q>>2];k[e+4>>2]=k[q+4>>2];k[e+8>>2]=k[q+8>>2];k[e+12>>2]=k[q+12>>2];k[e+16>>2]=k[q+16>>2];k[e+20>>2]=k[q+20>>2];m=(k[g>>2]|0)+24|0;k[g>>2]=m}else{bd(i,q);m=k[g>>2]|0}l=m+-24|0;k[s>>2]=0;k[s+4>>2]=0;k[s+8>>2]=0;k[s+12>>2]=0;k[s+16>>2]=0;k[s+20>>2]=f;if(m>>>0<(k[h>>2]|0)>>>0){k[m>>2]=k[s>>2];k[m+4>>2]=k[s+4>>2];k[m+8>>2]=k[s+8>>2];k[m+12>>2]=k[s+12>>2];k[m+16>>2]=k[s+16>>2];k[m+20>>2]=k[s+20>>2];i=(k[g>>2]|0)+24|0;k[g>>2]=i}else{bd(i,s);i=k[g>>2]|0}h=i+-24|0;g=k[b>>2]|0;j=b+4|0;e=k[j>>2]|0;do if((g|0)==(e|0)){f=k[c+24>>2]&31;k[t>>2]=k[c+20>>2];k[t+4>>2]=0;k[t+8>>2]=f;f=b+8|0;if(g>>>0<(k[f>>2]|0)>>>0){k[g>>2]=k[t>>2];k[g+4>>2]=k[t+4>>2];k[g+8>>2]=k[t+8>>2];e=(k[j>>2]|0)+12|0;k[j>>2]=e;break}else{gd(b,t);e=k[j>>2]|0;break}}else f=b+8|0;while(0);t=k[d+24>>2]&31;k[u>>2]=k[d+20>>2];k[u+4>>2]=0;k[u+8>>2]=t;if(e>>>0<(k[f>>2]|0)>>>0){k[e>>2]=k[u>>2];k[e+4>>2]=k[u+4>>2];k[e+8>>2]=k[u+8>>2];k[j>>2]=(k[j>>2]|0)+12;b=k[b>>2]|0;d=b+(v*12|0)|0;k[l>>2]=d;b=b+(w*12|0)|0;k[h>>2]=b;b=m+-16|0;k[b>>2]=h;b=i+-16|0;k[b>>2]=l;b=l;d=h;k[a>>2]=b;b=a+4|0;k[b>>2]=d;r=x;return}else{gd(b,u);b=k[b>>2]|0;d=b+(v*12|0)|0;k[l>>2]=d;b=b+(w*12|0)|0;k[h>>2]=b;b=m+-16|0;k[b>>2]=h;b=i+-16|0;k[b>>2]=l;b=l;d=h;k[a>>2]=b;b=a+4|0;k[b>>2]=d;r=x;return}}function fd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;h=a+4|0;e=b;if((h|0)!=(b|0)?(f=b+16|0,!(cd(d,f)|0)):0){if(!(cd(f,d)|0)){k[c>>2]=e;return c|0}a=b+4|0;e=k[a>>2]|0;g=(e|0)==0;if(g){f=b;while(1){e=k[f+8>>2]|0;if((k[e>>2]|0)==(f|0))break;else f=e}}else while(1){f=k[e>>2]|0;if(!f)break;else e=f}if((e|0)!=(h|0)?!(cd(d,e+16|0)|0):0){e=k[h>>2]|0;if(!e){k[c>>2]=h;c=h;return c|0}else a=e;while(1){e=a+16|0;if(cd(d,e)|0){e=k[a>>2]|0;if(!e){h=33;break}}else{if(!(cd(e,d)|0)){h=38;break}f=a+4|0;e=k[f>>2]|0;if(!e){h=37;break}}a=e}if((h|0)==33){k[c>>2]=a;c=a;return c|0}else if((h|0)==37){k[c>>2]=a;c=f;return c|0}else if((h|0)==38){k[c>>2]=a;return c|0}}if(g){k[c>>2]=b;c=a;return c|0}else{k[c>>2]=e;c=e;return c|0}}g=k[b>>2]|0;if((k[a>>2]|0)!=(b|0)){if(!g){f=b;while(1){e=k[f+8>>2]|0;if((k[e>>2]|0)==(f|0))f=e;else break}}else{e=g;while(1){f=k[e+4>>2]|0;if(!f)break;else e=f}}if(!(cd(e+16|0,d)|0)){e=k[h>>2]|0;if(!e){k[c>>2]=h;c=h;return c|0}else a=e;while(1){e=a+16|0;if(cd(d,e)|0){e=k[a>>2]|0;if(!e){h=14;break}}else{if(!(cd(e,d)|0)){h=19;break}f=a+4|0;e=k[f>>2]|0;if(!e){h=18;break}}a=e}if((h|0)==14){k[c>>2]=a;c=a;return c|0}else if((h|0)==18){k[c>>2]=a;c=f;return c|0}else if((h|0)==19){k[c>>2]=a;return c|0}}else{a=b;f=g}}else{a=b;f=g}if(!f){k[c>>2]=b;c=a;return c|0}else{d=e;k[c>>2]=d;c=d+4|0;return c|0}return 0}function gd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0;f=a+4|0;g=k[a>>2]|0;c=g;h=(k[f>>2]|0)-c|0;i=(h|0)/12|0;j=i+1|0;if(j>>>0>357913941)xa(1340,1363,303,1438);l=a+8|0;c=((k[l>>2]|0)-c|0)/12|0;if(c>>>0<178956970){c=c<<1;c=c>>>0<j>>>0?j:c;if(!c){c=0;d=0}else e=5}else{c=357913941;e=5}if((e|0)==5){e=c*12|0;e=(e|0)==0?1:e;d=_d(e)|0;a:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break a}a=ya(4)|0;k[a>>2]=128;La(a|0,8,1)}while(0)}e=d+(i*12|0)|0;k[e>>2]=k[b>>2];k[e+4>>2]=k[b+4>>2];k[e+8>>2]=k[b+8>>2];b=d+((((h|0)/-12|0)+i|0)*12|0)|0;fe(b|0,g|0,h|0)|0;k[a>>2]=b;k[f>>2]=d+(j*12|0);k[l>>2]=d+(c*12|0);if(!g)return;$d(g);return}function hd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0.0,l=0.0,m=0.0,n=0.0;i=k[a>>2]|0;f=k[a+8>>2]|0;if((i|0)==(f|0))d=(k[a+4>>2]|0)!=(k[a+12>>2]|0);else d=1;h=k[b>>2]|0;if((h|0)==(k[b+8>>2]|0))e=(k[b+4>>2]|0)!=(k[b+12>>2]|0);else e=1;if(d)if(e){e=k[c>>2]|0;d=k[c+4>>2]|0;if((k[a+16>>2]|0)==(k[b+16>>2]|0)){i=(Pc(i,k[a+4>>2]|0,f,k[a+12>>2]|0,e,d)|0)==1;return i|0}else{j=+jd(a,e,d);i=j<+jd(b,e,d);return i|0}}else{g=k[b+4>>2]|0;f=k[c>>2]|0;e=k[c+4>>2]|0;d=id(h,g,a,f,e,1)|0;if(!d){j=+(h|0)-+(f|0);l=+(g|0)-+(e|0);i=!((j*j+l*l)/(j*2.0)<+jd(a,f,e));return i|0}else{i=(d|0)==-1;return i|0}}if(e){f=k[a+4>>2]|0;g=k[c>>2]|0;e=k[c+4>>2]|0;d=id(i,f,b,g,e,0)|0;if(!d){l=+(i|0)-+(g|0);j=+(f|0)-+(e|0);i=(l*l+j*j)/(l*2.0)<+jd(b,g,e);return i|0}else{i=(d|0)==-1;return i|0}}do if((i|0)>(h|0)){e=k[c+4>>2]|0;d=k[a+4>>2]|0;if((e|0)>(d|0)){f=e;e=k[b+4>>2]|0;break}else{i=0;return i|0}}else{if((i|0)>=(h|0)){h=k[a+4>>2]|0;b=k[b+4>>2]|0;b=ge(b|0,((b|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;h=L;i=k[c+4>>2]|0;i=ee(i|0,((i|0)<0)<<31>>31|0,1)|0;c=L;i=(h|0)<(c|0)|(h|0)==(c|0)&b>>>0<i>>>0;return i|0}f=k[c+4>>2]|0;e=k[b+4>>2]|0;if((f|0)<(e|0)){d=k[a+4>>2]|0;break}else{i=1;return i|0}}while(0);l=+(k[c>>2]|0);m=+(i|0)-l;j=+(f|0);n=+(d|0)-j;l=+(h|0)-l;j=+(e|0)-j;i=(n*n+m*m)/(m*2.0)<(j*j+l*l)/(l*2.0);return i|0}function id(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0.0,h=0,i=0,j=0,l=0,m=0.0,n=0.0,o=0.0,q=0.0,r=0,s=0,u=0,v=0,w=0,x=0,y=0,z=0;h=k[c>>2]|0;i=k[c+4>>2]|0;j=k[c+8>>2]|0;l=k[c+12>>2]|0;if((Pc(h,i,j,l,d,e)|0)!=-1){c=((k[c+24>>2]|0)>>>4&2)+-1|0;return c|0}q=+(d|0)-+(a|0);m=+(e|0)-+(b|0);n=+(j|0)-+(h|0);o=+(l|0)-+(i|0);if((h|0)==(j|0))if((e|0)>=(b|0)|f)return ((e|0)>(b|0)&f)<<31>>31|0;else{c=1;return c|0}y=be(j|0,((j|0)<0)<<31>>31|0,h|0,((h|0)<0)<<31>>31|0)|0;x=L;u=be(l|0,((l|0)<0)<<31>>31|0,i|0,((i|0)<0)<<31>>31|0)|0;s=L;l=be(d|0,((d|0)<0)<<31>>31|0,a|0,((a|0)<0)<<31>>31|0)|0;j=L;i=be(e|0,((e|0)<0)<<31>>31|0,b|0,((b|0)<0)<<31>>31|0)|0;h=L;e=(x|0)<0;z=be(0,0,y|0,x|0)|0;x=e?L:x;a=(s|0)<0;v=be(0,0,u|0,s|0)|0;s=a?L:s;b=(j|0)<0;r=be(0,0,l|0,j|0)|0;j=b?L:j;d=(h|0)<0;w=be(0,0,i|0,h|0)|0;h=ne((e?z:y)|0,x|0,(d?w:i)|0,(d?L:h)|0)|0;i=L;j=ne((a?v:u)|0,s|0,(b?r:l)|0,j|0)|0;l=L;a=b^a;do if(d^e){if(!a){z=ge(j|0,l|0,h|0,i|0)|0;g=-(+(z>>>0)+4294967296.0*+(L>>>0));break}if(i>>>0>l>>>0|(i|0)==(l|0)&h>>>0>j>>>0){z=be(h|0,i|0,j|0,l|0)|0;g=-(+(z>>>0)+4294967296.0*+(L>>>0));break}else{z=be(j|0,l|0,h|0,i|0)|0;g=+(z>>>0)+4294967296.0*+(L>>>0);break}}else{if(a){z=ge(j|0,l|0,h|0,i|0)|0;g=+(z>>>0)+4294967296.0*+(L>>>0);break}if(i>>>0<l>>>0|(i|0)==(l|0)&h>>>0<j>>>0){z=be(j|0,l|0,h|0,i|0)|0;g=-(+(z>>>0)+4294967296.0*+(L>>>0));break}else{z=be(h|0,i|0,j|0,l|0)|0;g=+(z>>>0)+4294967296.0*+(L>>>0);break}}while(0);if(!(g!=0.0&!(g<0.0))){p[t>>3]=(m-q)*((q+m)*n);u=k[t>>2]|0;r=k[t+4>>2]|0;p[t>>3]=m*(q*(o*2.0));v=k[t>>2]|0;s=k[t+4>>2]|0;x=(r|0)>-1|(r|0)==-1&u>>>0>4294967295;w=be(0,-2147483648,u|0,r|0)|0;u=x?w:u;r=x?L:r;x=(s|0)>-1|(s|0)==-1&v>>>0>4294967295;w=be(0,-2147483648,v|0,s|0)|0;v=x?w:v;s=x?L:s;x=be(u|0,r|0,v|0,s|0)|0;w=L;z=be(v|0,s|0,u|0,r|0)|0;y=L;z=r>>>0>s>>>0|(r|0)==(s|0)&u>>>0>v>>>0?(w>>>0>0|(w|0)==0&x>>>0>4)<<31>>31:(y>>>0>0|(y|0)==0&z>>>0>4)&1;return ((z|0)!=0&((z|0)==1^f)?(f?-1:1):0)|0}if(!(k[c+24>>2]&32)){z=f<<31>>31;return z|0}else{z=f&1^1;return z|0}return 0}function jd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0.0,e=0,f=0,g=0.0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0.0;e=k[a>>2]|0;f=k[a+8>>2]|0;if((e|0)==(f|0)){g=(+(e|0)-+(b|0))*.5;return +g}t=+(f|0)-+(e|0);l=k[a+12>>2]|0;q=k[a+4>>2]|0;g=+(l|0)-+(q|0);t=t*t;d=+X(+(t+g*g));g=g<0.0?(d-g)/t:1.0/(d+g);n=((e|0)<0)<<31>>31;p=be(f|0,((f|0)<0)<<31>>31|0,e|0,n|0)|0;a=L;r=((q|0)<0)<<31>>31;l=be(l|0,((l|0)<0)<<31>>31|0,q|0,r|0)|0;f=L;n=be(b|0,((b|0)<0)<<31>>31|0,e|0,n|0)|0;m=L;r=be(c|0,((c|0)<0)<<31>>31|0,q|0,r|0)|0;q=L;i=(a|0)<0;e=be(0,0,p|0,a|0)|0;a=i?L:a;j=(f|0)<0;b=be(0,0,l|0,f|0)|0;f=j?L:f;c=(m|0)<0;o=be(0,0,n|0,m|0)|0;m=c?L:m;h=(q|0)<0;s=be(0,0,r|0,q|0)|0;a=ne((h?s:r)|0,(h?L:q)|0,(i?e:p)|0,a|0)|0;e=L;f=ne((c?o:n)|0,m|0,(j?b:l)|0,f|0)|0;b=L;c=j^c;do if(i^h){if(!c){s=ge(a|0,e|0,f|0,b|0)|0;d=-(+(s>>>0)+4294967296.0*+(L>>>0));break}if(e>>>0>b>>>0|(e|0)==(b|0)&a>>>0>f>>>0){s=be(a|0,e|0,f|0,b|0)|0;d=-(+(s>>>0)+4294967296.0*+(L>>>0));break}else{s=be(f|0,b|0,a|0,e|0)|0;d=+(s>>>0)+4294967296.0*+(L>>>0);break}}else{if(c){s=ge(a|0,e|0,f|0,b|0)|0;d=+(s>>>0)+4294967296.0*+(L>>>0);break}if(e>>>0<b>>>0|(e|0)==(b|0)&a>>>0<f>>>0){s=be(f|0,b|0,a|0,e|0)|0;d=-(+(s>>>0)+4294967296.0*+(L>>>0));break}else{s=be(a|0,e|0,f|0,b|0)|0;d=+(s>>>0)+4294967296.0*+(L>>>0);break}}while(0);t=g*d;return +t}function kd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0.0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0;N=r;r=r+32|0;M=N;H=b;a:while(1){q=H;G=H+-28|0;s=H+-56|0;v=H+-20|0;D=H+-24|0;F=H+-16|0;K=a;b:while(1){p=K;a=q-p|0;switch((a|0)/28|0|0){case 2:{J=4;break a}case 3:{J=20;break a}case 4:{J=21;break a}case 5:{J=22;break a}case 1:case 0:{J=240;break a}default:{}}if((a|0)<868){J=24;break a}g=(a|0)/56|0;h=K+(g*28|0)|0;if((a|0)>27972){a=(a|0)/112|0;a=nd(K,K+(a*28|0)|0,h,K+((a+g|0)*28|0)|0,G)|0}else a=ld(K,h,G)|0;o=k[K>>2]|0;n=k[h>>2]|0;do if((o|0)==(n|0)){d=k[K+8>>2]|0;b=(o|0)==(d|0);if(b?(t=k[K+4>>2]|0,(t|0)==(k[K+12>>2]|0)):0){if((o|0)!=(k[K+(g*28|0)+8>>2]|0)){c=G;break}b=k[K+(g*28|0)+4>>2]|0;if((b|0)==(k[K+(g*28|0)+12>>2]|0))if((t|0)<(b|0)){c=G;break}else{J=92;break}else if((t|0)>(b|0)){J=92;break}else{c=G;break}}e=k[K+(g*28|0)+8>>2]|0;if((o|0)==(e|0)){if(!b){J=92;break}if((k[K+4>>2]|0)<(k[K+(g*28|0)+4>>2]|0)){c=G;break}else{J=92;break}}if(!b){b=k[K+4>>2]|0;c=k[K+(g*28|0)+4>>2]|0;if((b|0)==(c|0))if((Pc(d,k[K+12>>2]|0,o,b,e,k[K+(g*28|0)+12>>2]|0)|0)==1){c=G;break}else{J=92;break}else if((b|0)<(c|0)){c=G;break}else{J=92;break}}else c=G}else if((o|0)<(n|0))c=G;else J=92;while(0);c:do if((J|0)==92){J=0;d:do if((K|0)!=(s|0)){l=K+(g*28|0)+8|0;m=K+(g*28|0)+4|0;j=K+(g*28|0)+12|0;c=s;i=G;e:while(1){b=k[c>>2]|0;do if((b|0)==(n|0)){e=k[i+-20>>2]|0;b=(n|0)==(e|0);if(b?(z=k[i+-24>>2]|0,(z|0)==(k[i+-16>>2]|0)):0){if((n|0)!=(k[l>>2]|0))break e;b=k[m>>2]|0;if((b|0)==(k[j>>2]|0))if((z|0)<(b|0))break e;else break;else if((z|0)>(b|0))break;else break e}g=k[l>>2]|0;if((n|0)==(g|0)){if(!b)break;if((k[i+-24>>2]|0)<(k[m>>2]|0))break e;else break}if(b)break e;b=k[i+-24>>2]|0;d=k[m>>2]|0;if((b|0)==(d|0))if((Pc(e,k[i+-16>>2]|0,n,k[c+4>>2]|0,g,k[j>>2]|0)|0)==1)break e;else break;else if((b|0)<(d|0))break e;else break}else if((b|0)<(n|0))break e;while(0);b=c+-28|0;if((K|0)==(b|0))break d;else{i=c;c=b}}k[M>>2]=k[K>>2];k[M+4>>2]=k[K+4>>2];k[M+8>>2]=k[K+8>>2];k[M+12>>2]=k[K+12>>2];k[M+16>>2]=k[K+16>>2];k[M+20>>2]=k[K+20>>2];k[M+24>>2]=k[K+24>>2];k[K>>2]=k[c>>2];k[K+4>>2]=k[c+4>>2];k[K+8>>2]=k[c+8>>2];k[K+12>>2]=k[c+12>>2];k[K+16>>2]=k[c+16>>2];k[K+20>>2]=k[c+20>>2];k[K+24>>2]=k[c+24>>2];k[c>>2]=k[M>>2];k[c+4>>2]=k[M+4>>2];k[c+8>>2]=k[M+8>>2];k[c+12>>2]=k[M+12>>2];k[c+16>>2]=k[M+16>>2];k[c+20>>2]=k[M+20>>2];k[c+24>>2]=k[M+24>>2];a=a+1|0;break c}while(0);e=K+28|0;a=k[G>>2]|0;do if((o|0)==(a|0)){c=k[K+8>>2]|0;a=(o|0)==(c|0);if(a?(u=k[K+4>>2]|0,(u|0)==(k[K+12>>2]|0)):0){if((o|0)!=(k[v>>2]|0)){a=e;break}a=k[D>>2]|0;if((a|0)==(k[F>>2]|0))if((u|0)<(a|0)){a=e;break}else{J=109;break}else if((u|0)>(a|0)){J=109;break}else{a=e;break}}d=k[v>>2]|0;if((o|0)==(d|0)){if(!a){J=109;break}if((k[K+4>>2]|0)<(k[D>>2]|0)){a=e;break}else{J=109;break}}if(!a){a=k[K+4>>2]|0;b=k[D>>2]|0;if((a|0)==(b|0))if((Pc(c,k[K+12>>2]|0,o,a,d,k[F>>2]|0)|0)==1){a=e;break}else{J=109;break}else if((a|0)<(b|0)){a=e;break}else{J=109;break}}else a=e}else if((o|0)<(a|0))a=e;else J=109;while(0);if((J|0)==109){J=0;if((e|0)==(G|0)){J=240;break a}h=K+8|0;i=K+4|0;j=K+12|0;g=K;f:while(1){a=k[g+28>>2]|0;do if((o|0)==(a|0)){c=k[h>>2]|0;a=(o|0)==(c|0);if(a?(w=k[i>>2]|0,(w|0)==(k[j>>2]|0)):0){if((o|0)!=(k[g+36>>2]|0))break f;a=k[g+32>>2]|0;if((a|0)==(k[g+40>>2]|0))if((w|0)<(a|0))break f;else break;else if((w|0)>(a|0))break;else break f}d=k[g+36>>2]|0;if((o|0)==(d|0)){if(!a)break;if((k[i>>2]|0)<(k[g+32>>2]|0))break f;else break}if(a)break f;a=k[i>>2]|0;b=k[g+32>>2]|0;if((a|0)==(b|0))if((Pc(c,k[j>>2]|0,o,a,d,k[g+40>>2]|0)|0)==1)break f;else break;else if((a|0)<(b|0))break f;else break}else if((o|0)<(a|0))break f;while(0);a=e+28|0;if((a|0)==(G|0)){J=240;break a}else{g=e;e=a}}k[M>>2]=k[e>>2];k[M+4>>2]=k[e+4>>2];k[M+8>>2]=k[e+8>>2];k[M+12>>2]=k[e+12>>2];k[M+16>>2]=k[e+16>>2];k[M+20>>2]=k[e+20>>2];k[M+24>>2]=k[e+24>>2];k[e>>2]=k[G>>2];k[e+4>>2]=k[G+4>>2];k[e+8>>2]=k[G+8>>2];k[e+12>>2]=k[G+12>>2];k[e+16>>2]=k[G+16>>2];k[e+20>>2]=k[G+20>>2];k[e+24>>2]=k[G+24>>2];k[G>>2]=k[M>>2];k[G+4>>2]=k[M+4>>2];k[G+8>>2]=k[M+8>>2];k[G+12>>2]=k[M+12>>2];k[G+16>>2]=k[M+16>>2];k[G+20>>2]=k[M+20>>2];k[G+24>>2]=k[M+24>>2];a=g+56|0}if((a|0)==(G|0)){J=240;break a}j=K+4|0;l=K+8|0;m=K+12|0;g=G;while(1){i=k[K>>2]|0;g:while(1){b=k[a>>2]|0;do if((i|0)==(b|0)){d=k[l>>2]|0;b=(i|0)==(d|0);if(b?(x=k[j>>2]|0,(x|0)==(k[m>>2]|0)):0){if((i|0)!=(k[a+8>>2]|0)){h=g;break g}b=k[a+4>>2]|0;if((b|0)==(k[a+12>>2]|0))if((x|0)<(b|0)){h=g;break g}else break;else if((x|0)>(b|0))break;else{h=g;break g}}e=k[a+8>>2]|0;if((i|0)==(e|0)){if(!b)break;if((k[j>>2]|0)<(k[a+4>>2]|0)){h=g;break g}else break}if(b){h=g;break g}b=k[j>>2]|0;c=k[a+4>>2]|0;if((b|0)==(c|0))if((Pc(d,k[m>>2]|0,i,b,e,k[a+12>>2]|0)|0)==1){h=g;break g}else break;else if((b|0)<(c|0)){h=g;break g}else break}else if((i|0)<(b|0)){h=g;break g}while(0);a=a+28|0}while(1){g=h+-28|0;b=k[g>>2]|0;if((i|0)!=(b|0))if((i|0)<(b|0)){h=g;continue}else break;d=k[l>>2]|0;b=(i|0)==(d|0);if(b?(y=k[j>>2]|0,(y|0)==(k[m>>2]|0)):0){if((i|0)!=(k[h+-20>>2]|0)){h=g;continue}b=k[h+-24>>2]|0;if((b|0)==(k[h+-16>>2]|0))if((y|0)<(b|0)){h=g;continue}else break;else if((y|0)>(b|0))break;else{h=g;continue}}e=k[h+-20>>2]|0;if((i|0)==(e|0)){if(!b)break;if((k[j>>2]|0)<(k[h+-24>>2]|0)){h=g;continue}else break}if(b){h=g;continue}b=k[j>>2]|0;c=k[h+-24>>2]|0;if((b|0)==(c|0))if((Pc(d,k[m>>2]|0,i,b,e,k[h+-16>>2]|0)|0)==1){h=g;continue}else break;else if((b|0)<(c|0)){h=g;continue}else break}if(a>>>0>=g>>>0){K=a;continue b};k[M>>2]=k[a>>2];k[M+4>>2]=k[a+4>>2];k[M+8>>2]=k[a+8>>2];k[M+12>>2]=k[a+12>>2];k[M+16>>2]=k[a+16>>2];k[M+20>>2]=k[a+20>>2];k[M+24>>2]=k[a+24>>2];k[a>>2]=k[g>>2];k[a+4>>2]=k[g+4>>2];k[a+8>>2]=k[g+8>>2];k[a+12>>2]=k[g+12>>2];k[a+16>>2]=k[g+16>>2];k[a+20>>2]=k[g+20>>2];k[a+24>>2]=k[g+24>>2];k[g>>2]=k[M>>2];k[g+4>>2]=k[M+4>>2];k[g+8>>2]=k[M+8>>2];k[g+12>>2]=k[M+12>>2];k[g+16>>2]=k[M+16>>2];k[g+20>>2]=k[M+20>>2];k[g+24>>2]=k[M+24>>2];a=a+28|0}}while(0);b=K+28|0;h:do if(b>>>0<c>>>0)while(1){j=k[h>>2]|0;l=h+8|0;m=h+4|0;n=h+12|0;o=b;i:while(1){b=k[o>>2]|0;do if((b|0)==(j|0)){e=k[o+8>>2]|0;b=(j|0)==(e|0);if(b?(A=k[o+4>>2]|0,(A|0)==(k[o+12>>2]|0)):0){if((j|0)!=(k[l>>2]|0))break;b=k[m>>2]|0;if((b|0)==(k[n>>2]|0))if((A|0)<(b|0))break;else break i;else if((A|0)>(b|0))break i;else break}g=k[l>>2]|0;if((j|0)==(g|0)){if(!b)break i;if((k[o+4>>2]|0)<(k[m>>2]|0))break;else break i}if(!b){b=k[o+4>>2]|0;d=k[m>>2]|0;if((b|0)==(d|0))if((Pc(e,k[o+12>>2]|0,j,b,g,k[n>>2]|0)|0)==1)break;else break i;else if((b|0)<(d|0))break;else break i}}else if((b|0)>=(j|0))break i;while(0);o=o+28|0}while(1){i=c+-28|0;b=k[i>>2]|0;if((b|0)!=(j|0))if((b|0)<(j|0))break;else{c=i;continue}e=k[c+-20>>2]|0;b=(j|0)==(e|0);if(b?(B=k[c+-24>>2]|0,(B|0)==(k[c+-16>>2]|0)):0){if((j|0)!=(k[l>>2]|0))break;b=k[m>>2]|0;if((b|0)==(k[n>>2]|0))if((B|0)<(b|0))break;else{c=i;continue}else if((B|0)>(b|0)){c=i;continue}else break}g=k[l>>2]|0;if((j|0)==(g|0)){if(!b){c=i;continue}if((k[c+-24>>2]|0)<(k[m>>2]|0))break;else{c=i;continue}}if(b)break;b=k[c+-24>>2]|0;d=k[m>>2]|0;if((b|0)==(d|0))if((Pc(e,k[c+-16>>2]|0,j,b,g,k[n>>2]|0)|0)==1)break;else{c=i;continue}else if((b|0)<(d|0))break;else{c=i;continue}}if(o>>>0>i>>>0){i=o;break h};k[M>>2]=k[o>>2];k[M+4>>2]=k[o+4>>2];k[M+8>>2]=k[o+8>>2];k[M+12>>2]=k[o+12>>2];k[M+16>>2]=k[o+16>>2];k[M+20>>2]=k[o+20>>2];k[M+24>>2]=k[o+24>>2];k[o>>2]=k[i>>2];k[o+4>>2]=k[i+4>>2];k[o+8>>2]=k[i+8>>2];k[o+12>>2]=k[i+12>>2];k[o+16>>2]=k[i+16>>2];k[o+20>>2]=k[i+20>>2];k[o+24>>2]=k[i+24>>2];k[i>>2]=k[M>>2];k[i+4>>2]=k[M+4>>2];k[i+8>>2]=k[M+8>>2];k[i+12>>2]=k[M+12>>2];k[i+16>>2]=k[M+16>>2];k[i+20>>2]=k[M+20>>2];k[i+24>>2]=k[M+24>>2];b=o+28|0;c=i;h=(h|0)==(o|0)?i:h;a=a+1|0}else i=b;while(0);j:do if((i|0)!=(h|0)){g=k[h>>2]|0;b=k[i>>2]|0;do if((g|0)==(b|0)){d=k[h+8>>2]|0;b=(g|0)==(d|0);if(b?(C=k[h+4>>2]|0,(C|0)==(k[h+12>>2]|0)):0){if((g|0)!=(k[i+8>>2]|0))break;b=k[i+4>>2]|0;if((b|0)==(k[i+12>>2]|0))if((C|0)<(b|0))break;else break j;else if((C|0)>(b|0))break j;else break}e=k[i+8>>2]|0;if((g|0)==(e|0)){if(!b)break j;if((k[h+4>>2]|0)<(k[i+4>>2]|0))break;else break j}if(!b){b=k[h+4>>2]|0;c=k[i+4>>2]|0;if((b|0)==(c|0))if((Pc(d,k[h+12>>2]|0,g,b,e,k[i+12>>2]|0)|0)==1)break;else break j;else if((b|0)<(c|0))break;else break j}}else if((g|0)>=(b|0))break j;while(0);k[M>>2]=k[i>>2];k[M+4>>2]=k[i+4>>2];k[M+8>>2]=k[i+8>>2];k[M+12>>2]=k[i+12>>2];k[M+16>>2]=k[i+16>>2];k[M+20>>2]=k[i+20>>2];k[M+24>>2]=k[i+24>>2];k[i>>2]=k[h>>2];k[i+4>>2]=k[h+4>>2];k[i+8>>2]=k[h+8>>2];k[i+12>>2]=k[h+12>>2];k[i+16>>2]=k[h+16>>2];k[i+20>>2]=k[h+20>>2];k[i+24>>2]=k[h+24>>2];k[h>>2]=k[M>>2];k[h+4>>2]=k[M+4>>2];k[h+8>>2]=k[M+8>>2];k[h+12>>2]=k[M+12>>2];k[h+16>>2]=k[M+16>>2];k[h+20>>2]=k[M+20>>2];k[h+24>>2]=k[M+24>>2];a=a+1|0}while(0);if(!a){a=od(K,i)|0;b=i+28|0;if(od(b,H)|0){J=235;break}if(a){K=b;continue}}o=i;if((o-p|0)>=(q-o|0)){J=239;break}kd(K,i);K=i+28|0}if((J|0)==235){J=0;if(a){J=240;break}else{a=K;H=i;continue}}else if((J|0)==239){J=0;kd(i+28|0,H);a=K;H=i;continue}}if((J|0)==4){e=k[G>>2]|0;a=k[K>>2]|0;do if((e|0)==(a|0)){d=k[v>>2]|0;a=(e|0)==(d|0);if(a?(E=k[D>>2]|0,(E|0)==(k[F>>2]|0)):0){if((e|0)!=(k[K+8>>2]|0))break;a=k[K+4>>2]|0;if((a|0)==(k[K+12>>2]|0)){if((E|0)<(a|0))break;r=N;return}else{if((E|0)<=(a|0))break;r=N;return}}c=k[K+8>>2]|0;if((e|0)==(c|0)){if(!a){r=N;return}if((k[D>>2]|0)<(k[K+4>>2]|0))break;r=N;return}if(!a){a=k[D>>2]|0;b=k[K+4>>2]|0;if((a|0)==(b|0)){if((Pc(d,k[F>>2]|0,e,a,c,k[K+12>>2]|0)|0)==1)break;r=N;return}else{if((a|0)<(b|0))break;r=N;return}}}else if((e|0)>=(a|0)){r=N;return}while(0);k[M>>2]=k[K>>2];k[M+4>>2]=k[K+4>>2];k[M+8>>2]=k[K+8>>2];k[M+12>>2]=k[K+12>>2];k[M+16>>2]=k[K+16>>2];k[M+20>>2]=k[K+20>>2];k[M+24>>2]=k[K+24>>2];k[K>>2]=k[G>>2];k[K+4>>2]=k[G+4>>2];k[K+8>>2]=k[G+8>>2];k[K+12>>2]=k[G+12>>2];k[K+16>>2]=k[G+16>>2];k[K+20>>2]=k[G+20>>2];k[K+24>>2]=k[G+24>>2];k[G>>2]=k[M>>2];k[G+4>>2]=k[M+4>>2];k[G+8>>2]=k[M+8>>2];k[G+12>>2]=k[M+12>>2];k[G+16>>2]=k[M+16>>2];k[G+20>>2]=k[M+20>>2];k[G+24>>2]=k[M+24>>2];r=N;return}else if((J|0)==20){ld(K,K+28|0,G)|0;r=N;return}else if((J|0)==21){md(K,K+28|0,K+56|0,G)|0;r=N;return}else if((J|0)==22){nd(K,K+28|0,K+56|0,K+84|0,G)|0;r=N;return}else if((J|0)==24){b=K+56|0;ld(K,K+28|0,b)|0;a=K+84|0;if((a|0)!=(H|0)){x=a;while(1){w=k[x>>2]|0;a=k[b>>2]|0;do if((w|0)==(a|0)){d=k[x+8>>2]|0;a=(w|0)==(d|0);if(a?(I=k[x+4>>2]|0,(I|0)==(k[x+12>>2]|0)):0){if((w|0)!=(k[b+8>>2]|0)){d=w;J=41;break}a=k[b+4>>2]|0;if((a|0)==(k[b+12>>2]|0))if((I|0)<(a|0)){d=w;J=41;break}else break;else if((I|0)>(a|0))break;else{d=w;J=41;break}}e=k[b+8>>2]|0;if((w|0)==(e|0)){if(!a)break;if((k[x+4>>2]|0)<(k[b+4>>2]|0)){d=w;J=41;break}else break}if(!a){a=k[x+4>>2]|0;c=k[b+4>>2]|0;if((a|0)==(c|0))if((Pc(d,k[x+12>>2]|0,w,a,e,k[b+12>>2]|0)|0)==1){J=41;break}else break;else if((a|0)<(c|0)){J=41;break}else break}else{d=w;J=41}}else if((w|0)<(a|0)){d=k[x+8>>2]|0;J=41}while(0);if((J|0)==41){J=0;u=k[x+4>>2]|0;v=k[x+12>>2]|0;G=x+16|0;k[M>>2]=k[G>>2];k[M+4>>2]=k[G+4>>2];k[M+8>>2]=k[G+8>>2];k[x>>2]=k[b>>2];k[x+4>>2]=k[b+4>>2];k[x+8>>2]=k[b+8>>2];k[x+12>>2]=k[b+12>>2];k[x+16>>2]=k[b+16>>2];k[x+20>>2]=k[b+20>>2];k[x+24>>2]=k[b+24>>2];k:do if((b|0)==(K|0))a=K;else{t=(w|0)==(d|0);j=((w|0)<0)<<31>>31;n=be(d|0,((d|0)<0)<<31>>31|0,w|0,j|0)|0;o=L;l=((u|0)<0)<<31>>31;q=be(v|0,((v|0)<0)<<31>>31|0,u|0,l|0)|0;s=L;m=(o|0)<0;p=be(0,0,n|0,o|0)|0;n=m?p:n;o=m?L:o;p=(s|0)<0;G=be(0,0,q|0,s|0)|0;q=p?G:q;s=p?L:s;if(t&(u|0)==(v|0))while(1){a=b;b=b+-28|0;c=k[b>>2]|0;do if((w|0)==(c|0)){if((w|0)==(k[a+-20>>2]|0)){c=k[a+-24>>2]|0;if((c|0)==(k[a+-16>>2]|0))if((u|0)<(c|0))break;else break k;else if((u|0)>(c|0))break k;else break}}else if((w|0)>=(c|0))break k;while(0);k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];k[a+24>>2]=k[b+24>>2];if((b|0)==(K|0)){a=K;break k}}while(1){a=b;b=b+-28|0;c=k[b>>2]|0;do if((w|0)==(c|0)){c=k[a+-20>>2]|0;if((w|0)==(c|0)){if(!t)break k;if((u|0)<(k[a+-24>>2]|0))break;else break k}if(!t){e=k[a+-24>>2]|0;if((u|0)!=(e|0))if((u|0)<(e|0))break;else break k;h=be(w|0,j|0,c|0,((c|0)<0)<<31>>31|0)|0;g=L;e=k[a+-16>>2]|0;e=be(u|0,l|0,e|0,((e|0)<0)<<31>>31|0)|0;c=L;i=(g|0)<0;F=be(0,0,h|0,g|0)|0;g=i?L:g;G=(c|0)<0;E=be(0,0,e|0,c|0)|0;c=ne((G?E:e)|0,(G?L:c)|0,n|0,o|0)|0;e=L;g=ne((i?F:h)|0,g|0,q|0,s|0)|0;h=L;i=p^i;do if(m^G){if(!i){G=ge(c|0,e|0,g|0,h|0)|0;f=-(+(G>>>0)+4294967296.0*+(L>>>0));break}if(e>>>0>h>>>0|(e|0)==(h|0)&c>>>0>g>>>0){G=be(c|0,e|0,g|0,h|0)|0;f=-(+(G>>>0)+4294967296.0*+(L>>>0));break}else{G=be(g|0,h|0,c|0,e|0)|0;f=+(G>>>0)+4294967296.0*+(L>>>0);break}}else{if(i){G=ge(c|0,e|0,g|0,h|0)|0;f=+(G>>>0)+4294967296.0*+(L>>>0);break}if(e>>>0<h>>>0|(e|0)==(h|0)&c>>>0<g>>>0){G=be(g|0,h|0,c|0,e|0)|0;f=-(+(G>>>0)+4294967296.0*+(L>>>0));break}else{G=be(c|0,e|0,g|0,h|0)|0;f=+(G>>>0)+4294967296.0*+(L>>>0);break}}while(0);if(!(f!=0.0&!(f<0.0)))break k}}else if((w|0)>=(c|0))break k;while(0);k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];k[a+24>>2]=k[b+24>>2];if((b|0)==(K|0)){a=K;break}}}while(0);k[a>>2]=w;k[a+4>>2]=u;k[a+8>>2]=d;k[a+12>>2]=v;G=a+16|0;k[G>>2]=k[M>>2];k[G+4>>2]=k[M+4>>2];k[G+8>>2]=k[M+8>>2]}a=x+28|0;if((a|0)==(H|0))break;else{b=x;x=a}}}r=N;return}else if((J|0)==240){r=N;return}}function ld(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+32|0;n=o;j=k[b>>2]|0;d=k[a>>2]|0;do if((j|0)==(d|0)){g=k[b+8>>2]|0;d=(j|0)==(g|0);if(d?(e=k[b+4>>2]|0,(e|0)==(k[b+12>>2]|0)):0){if((j|0)!=(k[a+8>>2]|0)){h=1;break}d=k[a+4>>2]|0;if((d|0)==(k[a+12>>2]|0)){h=(e|0)<(d|0);break}else{h=(e|0)<=(d|0);break}}f=k[a+8>>2]|0;if((j|0)==(f|0)){if(!d){h=0;break}h=(k[b+4>>2]|0)<(k[a+4>>2]|0);break}if(!d){d=k[b+4>>2]|0;e=k[a+4>>2]|0;if((d|0)==(e|0)){h=(Pc(g,k[b+12>>2]|0,j,d,f,k[a+12>>2]|0)|0)==1;break}else{h=(d|0)<(e|0);break}}else h=1}else h=(j|0)<(d|0);while(0);d=k[c>>2]|0;do if((d|0)==(j|0)){g=k[c+8>>2]|0;d=(j|0)==(g|0);if(d?(i=k[c+4>>2]|0,(i|0)==(k[c+12>>2]|0)):0){if((j|0)!=(k[b+8>>2]|0)){d=1;break}d=k[b+4>>2]|0;if((d|0)==(k[b+12>>2]|0)){d=(i|0)<(d|0);break}else{d=(i|0)<=(d|0);break}}f=k[b+8>>2]|0;if((j|0)==(f|0)){if(!d){d=0;break}d=(k[c+4>>2]|0)<(k[b+4>>2]|0);break}if(!d){d=k[c+4>>2]|0;e=k[b+4>>2]|0;if((d|0)==(e|0)){d=(Pc(g,k[c+12>>2]|0,j,d,f,k[b+12>>2]|0)|0)==1;break}else{d=(d|0)<(e|0);break}}else d=1}else d=(d|0)<(j|0);while(0);if(!h){if(!d){b=0;r=o;return b|0};k[n>>2]=k[b>>2];k[n+4>>2]=k[b+4>>2];k[n+8>>2]=k[b+8>>2];k[n+12>>2]=k[b+12>>2];k[n+16>>2]=k[b+16>>2];k[n+20>>2]=k[b+20>>2];k[n+24>>2]=k[b+24>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];k[b+24>>2]=k[c+24>>2];k[c>>2]=k[n>>2];k[c+4>>2]=k[n+4>>2];k[c+8>>2]=k[n+8>>2];k[c+12>>2]=k[n+12>>2];k[c+16>>2]=k[n+16>>2];k[c+20>>2]=k[n+20>>2];k[c+24>>2]=k[n+24>>2];h=k[b>>2]|0;d=k[a>>2]|0;do if((h|0)==(d|0)){g=k[b+8>>2]|0;d=(h|0)==(g|0);if(d?(m=k[b+4>>2]|0,(m|0)==(k[b+12>>2]|0)):0){if((h|0)!=(k[a+8>>2]|0))break;d=k[a+4>>2]|0;if((d|0)==(k[a+12>>2]|0)){if((m|0)<(d|0))break;else d=1;r=o;return d|0}else{if((m|0)>(d|0))d=1;else break;r=o;return d|0}}f=k[a+8>>2]|0;if((h|0)==(f|0)){if(!d){b=1;r=o;return b|0}if((k[b+4>>2]|0)<(k[a+4>>2]|0))break;else d=1;r=o;return d|0}if(!d){d=k[b+4>>2]|0;e=k[a+4>>2]|0;if((d|0)==(e|0)){if((Pc(g,k[b+12>>2]|0,h,d,f,k[a+12>>2]|0)|0)==1)break;else d=1;r=o;return d|0}else{if((d|0)<(e|0))break;else d=1;r=o;return d|0}}}else if((h|0)>=(d|0)){b=1;r=o;return b|0}while(0);k[n>>2]=k[a>>2];k[n+4>>2]=k[a+4>>2];k[n+8>>2]=k[a+8>>2];k[n+12>>2]=k[a+12>>2];k[n+16>>2]=k[a+16>>2];k[n+20>>2]=k[a+20>>2];k[n+24>>2]=k[a+24>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];k[a+24>>2]=k[b+24>>2];k[b>>2]=k[n>>2];k[b+4>>2]=k[n+4>>2];k[b+8>>2]=k[n+8>>2];k[b+12>>2]=k[n+12>>2];k[b+16>>2]=k[n+16>>2];k[b+20>>2]=k[n+20>>2];k[b+24>>2]=k[n+24>>2];b=2;r=o;return b|0}if(d){k[n>>2]=k[a>>2];k[n+4>>2]=k[a+4>>2];k[n+8>>2]=k[a+8>>2];k[n+12>>2]=k[a+12>>2];k[n+16>>2]=k[a+16>>2];k[n+20>>2]=k[a+20>>2];k[n+24>>2]=k[a+24>>2];k[a>>2]=k[c>>2];k[a+4>>2]=k[c+4>>2];k[a+8>>2]=k[c+8>>2];k[a+12>>2]=k[c+12>>2];k[a+16>>2]=k[c+16>>2];k[a+20>>2]=k[c+20>>2];k[a+24>>2]=k[c+24>>2];k[c>>2]=k[n>>2];k[c+4>>2]=k[n+4>>2];k[c+8>>2]=k[n+8>>2];k[c+12>>2]=k[n+12>>2];k[c+16>>2]=k[n+16>>2];k[c+20>>2]=k[n+20>>2];k[c+24>>2]=k[n+24>>2];b=1;r=o;return b|0};k[n>>2]=k[a>>2];k[n+4>>2]=k[a+4>>2];k[n+8>>2]=k[a+8>>2];k[n+12>>2]=k[a+12>>2];k[n+16>>2]=k[a+16>>2];k[n+20>>2]=k[a+20>>2];k[n+24>>2]=k[a+24>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];k[a+24>>2]=k[b+24>>2];k[b>>2]=k[n>>2];k[b+4>>2]=k[n+4>>2];k[b+8>>2]=k[n+8>>2];k[b+12>>2]=k[n+12>>2];k[b+16>>2]=k[n+16>>2];k[b+20>>2]=k[n+20>>2];k[b+24>>2]=k[n+24>>2];h=k[c>>2]|0;d=k[b>>2]|0;do if((h|0)==(d|0)){g=k[c+8>>2]|0;d=(h|0)==(g|0);if(d?(l=k[c+4>>2]|0,(l|0)==(k[c+12>>2]|0)):0){if((h|0)!=(k[b+8>>2]|0))break;d=k[b+4>>2]|0;if((d|0)==(k[b+12>>2]|0)){if((l|0)<(d|0))break;else d=1;r=o;return d|0}else{if((l|0)>(d|0))d=1;else break;r=o;return d|0}}f=k[b+8>>2]|0;if((h|0)==(f|0)){if(!d){b=1;r=o;return b|0}if((k[c+4>>2]|0)<(k[b+4>>2]|0))break;else d=1;r=o;return d|0}if(!d){d=k[c+4>>2]|0;e=k[b+4>>2]|0;if((d|0)==(e|0)){if((Pc(g,k[c+12>>2]|0,h,d,f,k[b+12>>2]|0)|0)==1)break;else d=1;r=o;return d|0}else{if((d|0)<(e|0))break;else d=1;r=o;return d|0}}}else if((h|0)>=(d|0)){b=1;r=o;return b|0}while(0);k[n>>2]=k[b>>2];k[n+4>>2]=k[b+4>>2];k[n+8>>2]=k[b+8>>2];k[n+12>>2]=k[b+12>>2];k[n+16>>2]=k[b+16>>2];k[n+20>>2]=k[b+20>>2];k[n+24>>2]=k[b+24>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];k[b+24>>2]=k[c+24>>2];k[c>>2]=k[n>>2];k[c+4>>2]=k[n+4>>2];k[c+8>>2]=k[n+8>>2];k[c+12>>2]=k[n+12>>2];k[c+16>>2]=k[n+16>>2];k[c+20>>2]=k[n+20>>2];k[c+24>>2]=k[n+24>>2];b=2;r=o;return b|0}function md(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;o=r;r=r+32|0;n=o;e=ld(a,b,c)|0;j=k[d>>2]|0;f=k[c>>2]|0;do if((j|0)==(f|0)){i=k[d+8>>2]|0;f=(j|0)==(i|0);if(f?(g=k[d+4>>2]|0,(g|0)==(k[d+12>>2]|0)):0){if((j|0)!=(k[c+8>>2]|0))break;f=k[c+4>>2]|0;if((f|0)==(k[c+12>>2]|0)){if((g|0)<(f|0))break;r=o;return e|0}else{if((g|0)<=(f|0))break;r=o;return e|0}}h=k[c+8>>2]|0;if((j|0)==(h|0)){if(!f){b=e;r=o;return b|0}if((k[d+4>>2]|0)<(k[c+4>>2]|0))break;r=o;return e|0}if(!f){f=k[d+4>>2]|0;g=k[c+4>>2]|0;if((f|0)==(g|0)){if((Pc(i,k[d+12>>2]|0,j,f,h,k[c+12>>2]|0)|0)==1)break;r=o;return e|0}else{if((f|0)<(g|0))break;r=o;return e|0}}}else if((j|0)>=(f|0)){b=e;r=o;return b|0}while(0);k[n>>2]=k[c>>2];k[n+4>>2]=k[c+4>>2];k[n+8>>2]=k[c+8>>2];k[n+12>>2]=k[c+12>>2];k[n+16>>2]=k[c+16>>2];k[n+20>>2]=k[c+20>>2];k[n+24>>2]=k[c+24>>2];k[c>>2]=k[d>>2];k[c+4>>2]=k[d+4>>2];k[c+8>>2]=k[d+8>>2];k[c+12>>2]=k[d+12>>2];k[c+16>>2]=k[d+16>>2];k[c+20>>2]=k[d+20>>2];k[c+24>>2]=k[d+24>>2];k[d>>2]=k[n>>2];k[d+4>>2]=k[n+4>>2];k[d+8>>2]=k[n+8>>2];k[d+12>>2]=k[n+12>>2];k[d+16>>2]=k[n+16>>2];k[d+20>>2]=k[n+20>>2];k[d+24>>2]=k[n+24>>2];d=e+1|0;j=k[c>>2]|0;f=k[b>>2]|0;do if((j|0)==(f|0)){i=k[c+8>>2]|0;f=(j|0)==(i|0);if(f?(l=k[c+4>>2]|0,(l|0)==(k[c+12>>2]|0)):0){if((j|0)!=(k[b+8>>2]|0))break;f=k[b+4>>2]|0;if((f|0)==(k[b+12>>2]|0)){if((l|0)<(f|0))break;else e=d;r=o;return e|0}else{if((l|0)>(f|0))e=d;else break;r=o;return e|0}}h=k[b+8>>2]|0;if((j|0)==(h|0)){if(!f){b=d;r=o;return b|0}if((k[c+4>>2]|0)<(k[b+4>>2]|0))break;else e=d;r=o;return e|0}if(!f){f=k[c+4>>2]|0;g=k[b+4>>2]|0;if((f|0)==(g|0)){if((Pc(i,k[c+12>>2]|0,j,f,h,k[b+12>>2]|0)|0)==1)break;else e=d;r=o;return e|0}else{if((f|0)<(g|0))break;else e=d;r=o;return e|0}}}else if((j|0)>=(f|0)){b=d;r=o;return b|0}while(0);k[n>>2]=k[b>>2];k[n+4>>2]=k[b+4>>2];k[n+8>>2]=k[b+8>>2];k[n+12>>2]=k[b+12>>2];k[n+16>>2]=k[b+16>>2];k[n+20>>2]=k[b+20>>2];k[n+24>>2]=k[b+24>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];k[b+24>>2]=k[c+24>>2];k[c>>2]=k[n>>2];k[c+4>>2]=k[n+4>>2];k[c+8>>2]=k[n+8>>2];k[c+12>>2]=k[n+12>>2];k[c+16>>2]=k[n+16>>2];k[c+20>>2]=k[n+20>>2];k[c+24>>2]=k[n+24>>2];d=e+2|0;j=k[b>>2]|0;f=k[a>>2]|0;do if((j|0)==(f|0)){i=k[b+8>>2]|0;f=(j|0)==(i|0);if(f?(m=k[b+4>>2]|0,(m|0)==(k[b+12>>2]|0)):0){if((j|0)!=(k[a+8>>2]|0))break;f=k[a+4>>2]|0;if((f|0)==(k[a+12>>2]|0)){if((m|0)<(f|0))break;else e=d;r=o;return e|0}else{if((m|0)>(f|0))e=d;else break;r=o;return e|0}}h=k[a+8>>2]|0;if((j|0)==(h|0)){if(!f){b=d;r=o;return b|0}if((k[b+4>>2]|0)<(k[a+4>>2]|0))break;else e=d;r=o;return e|0}if(!f){f=k[b+4>>2]|0;g=k[a+4>>2]|0;if((f|0)==(g|0)){if((Pc(i,k[b+12>>2]|0,j,f,h,k[a+12>>2]|0)|0)==1)break;else e=d;r=o;return e|0}else{if((f|0)<(g|0))break;else e=d;r=o;return e|0}}}else if((j|0)>=(f|0)){b=d;r=o;return b|0}while(0);k[n>>2]=k[a>>2];k[n+4>>2]=k[a+4>>2];k[n+8>>2]=k[a+8>>2];k[n+12>>2]=k[a+12>>2];k[n+16>>2]=k[a+16>>2];k[n+20>>2]=k[a+20>>2];k[n+24>>2]=k[a+24>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];k[a+24>>2]=k[b+24>>2];k[b>>2]=k[n>>2];k[b+4>>2]=k[n+4>>2];k[b+8>>2]=k[n+8>>2];k[b+12>>2]=k[n+12>>2];k[b+16>>2]=k[n+16>>2];k[b+20>>2]=k[n+20>>2];k[b+24>>2]=k[n+24>>2];b=e+3|0;r=o;return b|0}function nd(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0;q=r;r=r+32|0;p=q;f=md(a,b,c,d)|0;l=k[e>>2]|0;g=k[d>>2]|0;do if((l|0)==(g|0)){j=k[e+8>>2]|0;g=(l|0)==(j|0);if(g?(h=k[e+4>>2]|0,(h|0)==(k[e+12>>2]|0)):0){if((l|0)!=(k[d+8>>2]|0))break;g=k[d+4>>2]|0;if((g|0)==(k[d+12>>2]|0)){if((h|0)<(g|0))break;r=q;return f|0}else{if((h|0)<=(g|0))break;r=q;return f|0}}i=k[d+8>>2]|0;if((l|0)==(i|0)){if(!g){b=f;r=q;return b|0}if((k[e+4>>2]|0)<(k[d+4>>2]|0))break;r=q;return f|0}if(!g){g=k[e+4>>2]|0;h=k[d+4>>2]|0;if((g|0)==(h|0)){if((Pc(j,k[e+12>>2]|0,l,g,i,k[d+12>>2]|0)|0)==1)break;r=q;return f|0}else{if((g|0)<(h|0))break;r=q;return f|0}}}else if((l|0)>=(g|0)){b=f;r=q;return b|0}while(0);k[p>>2]=k[d>>2];k[p+4>>2]=k[d+4>>2];k[p+8>>2]=k[d+8>>2];k[p+12>>2]=k[d+12>>2];k[p+16>>2]=k[d+16>>2];k[p+20>>2]=k[d+20>>2];k[p+24>>2]=k[d+24>>2];k[d>>2]=k[e>>2];k[d+4>>2]=k[e+4>>2];k[d+8>>2]=k[e+8>>2];k[d+12>>2]=k[e+12>>2];k[d+16>>2]=k[e+16>>2];k[d+20>>2]=k[e+20>>2];k[d+24>>2]=k[e+24>>2];k[e>>2]=k[p>>2];k[e+4>>2]=k[p+4>>2];k[e+8>>2]=k[p+8>>2];k[e+12>>2]=k[p+12>>2];k[e+16>>2]=k[p+16>>2];k[e+20>>2]=k[p+20>>2];k[e+24>>2]=k[p+24>>2];e=f+1|0;l=k[d>>2]|0;g=k[c>>2]|0;do if((l|0)==(g|0)){j=k[d+8>>2]|0;g=(l|0)==(j|0);if(g?(m=k[d+4>>2]|0,(m|0)==(k[d+12>>2]|0)):0){if((l|0)!=(k[c+8>>2]|0))break;g=k[c+4>>2]|0;if((g|0)==(k[c+12>>2]|0)){if((m|0)<(g|0))break;else f=e;r=q;return f|0}else{if((m|0)>(g|0))f=e;else break;r=q;return f|0}}i=k[c+8>>2]|0;if((l|0)==(i|0)){if(!g){b=e;r=q;return b|0}if((k[d+4>>2]|0)<(k[c+4>>2]|0))break;else f=e;r=q;return f|0}if(!g){g=k[d+4>>2]|0;h=k[c+4>>2]|0;if((g|0)==(h|0)){if((Pc(j,k[d+12>>2]|0,l,g,i,k[c+12>>2]|0)|0)==1)break;else f=e;r=q;return f|0}else{if((g|0)<(h|0))break;else f=e;r=q;return f|0}}}else if((l|0)>=(g|0)){b=e;r=q;return b|0}while(0);k[p>>2]=k[c>>2];k[p+4>>2]=k[c+4>>2];k[p+8>>2]=k[c+8>>2];k[p+12>>2]=k[c+12>>2];k[p+16>>2]=k[c+16>>2];k[p+20>>2]=k[c+20>>2];k[p+24>>2]=k[c+24>>2];k[c>>2]=k[d>>2];k[c+4>>2]=k[d+4>>2];k[c+8>>2]=k[d+8>>2];k[c+12>>2]=k[d+12>>2];k[c+16>>2]=k[d+16>>2];k[c+20>>2]=k[d+20>>2];k[c+24>>2]=k[d+24>>2];k[d>>2]=k[p>>2];k[d+4>>2]=k[p+4>>2];k[d+8>>2]=k[p+8>>2];k[d+12>>2]=k[p+12>>2];k[d+16>>2]=k[p+16>>2];k[d+20>>2]=k[p+20>>2];k[d+24>>2]=k[p+24>>2];e=f+2|0;l=k[c>>2]|0;g=k[b>>2]|0;do if((l|0)==(g|0)){j=k[c+8>>2]|0;g=(l|0)==(j|0);if(g?(n=k[c+4>>2]|0,(n|0)==(k[c+12>>2]|0)):0){if((l|0)!=(k[b+8>>2]|0))break;g=k[b+4>>2]|0;if((g|0)==(k[b+12>>2]|0)){if((n|0)<(g|0))break;else f=e;r=q;return f|0}else{if((n|0)>(g|0))f=e;else break;r=q;return f|0}}i=k[b+8>>2]|0;if((l|0)==(i|0)){if(!g){b=e;r=q;return b|0}if((k[c+4>>2]|0)<(k[b+4>>2]|0))break;else f=e;r=q;return f|0}if(!g){g=k[c+4>>2]|0;h=k[b+4>>2]|0;if((g|0)==(h|0)){if((Pc(j,k[c+12>>2]|0,l,g,i,k[b+12>>2]|0)|0)==1)break;else f=e;r=q;return f|0}else{if((g|0)<(h|0))break;else f=e;r=q;return f|0}}}else if((l|0)>=(g|0)){b=e;r=q;return b|0}while(0);k[p>>2]=k[b>>2];k[p+4>>2]=k[b+4>>2];k[p+8>>2]=k[b+8>>2];k[p+12>>2]=k[b+12>>2];k[p+16>>2]=k[b+16>>2];k[p+20>>2]=k[b+20>>2];k[p+24>>2]=k[b+24>>2];k[b>>2]=k[c>>2];k[b+4>>2]=k[c+4>>2];k[b+8>>2]=k[c+8>>2];k[b+12>>2]=k[c+12>>2];k[b+16>>2]=k[c+16>>2];k[b+20>>2]=k[c+20>>2];k[b+24>>2]=k[c+24>>2];k[c>>2]=k[p>>2];k[c+4>>2]=k[p+4>>2];k[c+8>>2]=k[p+8>>2];k[c+12>>2]=k[p+12>>2];k[c+16>>2]=k[p+16>>2];k[c+20>>2]=k[p+20>>2];k[c+24>>2]=k[p+24>>2];e=f+3|0;l=k[b>>2]|0;g=k[a>>2]|0;do if((l|0)==(g|0)){j=k[b+8>>2]|0;g=(l|0)==(j|0);if(g?(o=k[b+4>>2]|0,(o|0)==(k[b+12>>2]|0)):0){if((l|0)!=(k[a+8>>2]|0))break;g=k[a+4>>2]|0;if((g|0)==(k[a+12>>2]|0)){if((o|0)<(g|0))break;else f=e;r=q;return f|0}else{if((o|0)>(g|0))f=e;else break;r=q;return f|0}}i=k[a+8>>2]|0;if((l|0)==(i|0)){if(!g){b=e;r=q;return b|0}if((k[b+4>>2]|0)<(k[a+4>>2]|0))break;else f=e;r=q;return f|0}if(!g){g=k[b+4>>2]|0;h=k[a+4>>2]|0;if((g|0)==(h|0)){if((Pc(j,k[b+12>>2]|0,l,g,i,k[a+12>>2]|0)|0)==1)break;else f=e;r=q;return f|0}else{if((g|0)<(h|0))break;else f=e;r=q;return f|0}}}else if((l|0)>=(g|0)){b=e;r=q;return b|0}while(0);k[p>>2]=k[a>>2];k[p+4>>2]=k[a+4>>2];k[p+8>>2]=k[a+8>>2];k[p+12>>2]=k[a+12>>2];k[p+16>>2]=k[a+16>>2];k[p+20>>2]=k[a+20>>2];k[p+24>>2]=k[a+24>>2];k[a>>2]=k[b>>2];k[a+4>>2]=k[b+4>>2];k[a+8>>2]=k[b+8>>2];k[a+12>>2]=k[b+12>>2];k[a+16>>2]=k[b+16>>2];k[a+20>>2]=k[b+20>>2];k[a+24>>2]=k[b+24>>2];k[b>>2]=k[p>>2];k[b+4>>2]=k[p+4>>2];k[b+8>>2]=k[p+8>>2];k[b+12>>2]=k[p+12>>2];k[b+16>>2]=k[p+16>>2];k[b+20>>2]=k[p+20>>2];k[b+24>>2]=k[p+24>>2];b=f+4|0;r=q;return b|0}function od(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0.0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;F=r;r=r+48|0;i=F+12|0;D=F;switch((b-a|0)/28|0|0){case 2:{h=b+-28|0;g=k[h>>2]|0;c=k[a>>2]|0;do if((g|0)==(c|0)){f=k[b+-20>>2]|0;c=(g|0)==(f|0);if(c?(d=k[b+-24>>2]|0,(d|0)==(k[b+-16>>2]|0)):0){if((g|0)!=(k[a+8>>2]|0))break;c=k[a+4>>2]|0;if((c|0)==(k[a+12>>2]|0)){if((d|0)<(c|0))break;else c=1;r=F;return c|0}else{if((d|0)>(c|0))c=1;else break;r=F;return c|0}}e=k[a+8>>2]|0;if((g|0)==(e|0)){if(!c){a=1;r=F;return a|0}if((k[b+-24>>2]|0)<(k[a+4>>2]|0))break;else c=1;r=F;return c|0}if(!c){c=k[b+-24>>2]|0;d=k[a+4>>2]|0;if((c|0)==(d|0)){if((Pc(f,k[b+-16>>2]|0,g,c,e,k[a+12>>2]|0)|0)==1)break;else c=1;r=F;return c|0}else{if((c|0)<(d|0))break;else c=1;r=F;return c|0}}}else if((g|0)>=(c|0)){a=1;r=F;return a|0}while(0);k[i>>2]=k[a>>2];k[i+4>>2]=k[a+4>>2];k[i+8>>2]=k[a+8>>2];k[i+12>>2]=k[a+12>>2];k[i+16>>2]=k[a+16>>2];k[i+20>>2]=k[a+20>>2];k[i+24>>2]=k[a+24>>2];k[a>>2]=k[h>>2];k[a+4>>2]=k[h+4>>2];k[a+8>>2]=k[h+8>>2];k[a+12>>2]=k[h+12>>2];k[a+16>>2]=k[h+16>>2];k[a+20>>2]=k[h+20>>2];k[a+24>>2]=k[h+24>>2];k[h>>2]=k[i>>2];k[h+4>>2]=k[i+4>>2];k[h+8>>2]=k[i+8>>2];k[h+12>>2]=k[i+12>>2];k[h+16>>2]=k[i+16>>2];k[h+20>>2]=k[i+20>>2];k[h+24>>2]=k[i+24>>2];a=1;r=F;return a|0}case 3:{ld(a,a+28|0,b+-28|0)|0;a=1;r=F;return a|0}case 4:{md(a,a+28|0,a+56|0,b+-28|0)|0;a=1;r=F;return a|0}case 5:{nd(a,a+28|0,a+56|0,a+84|0,b+-28|0)|0;a=1;r=F;return a|0}case 1:case 0:{a=1;r=F;return a|0}default:{e=a+56|0;ld(a,a+28|0,e)|0;d=a+84|0;if((d|0)==(b|0)){a=1;r=F;return a|0}c=0;while(1){B=k[d>>2]|0;f=k[e>>2]|0;do if((B|0)==(f|0)){h=k[d+8>>2]|0;f=(B|0)==(h|0);if(f?(C=k[d+4>>2]|0,(C|0)==(k[d+12>>2]|0)):0){if((B|0)!=(k[e+8>>2]|0)){h=B;E=39;break}f=k[e+4>>2]|0;if((f|0)==(k[e+12>>2]|0))if((C|0)<(f|0)){h=B;E=39;break}else break;else if((C|0)>(f|0))break;else{h=B;E=39;break}}i=k[e+8>>2]|0;if((B|0)==(i|0)){if(!f)break;if((k[d+4>>2]|0)<(k[e+4>>2]|0)){h=B;E=39;break}else break}if(!f){f=k[d+4>>2]|0;g=k[e+4>>2]|0;if((f|0)==(g|0))if((Pc(h,k[d+12>>2]|0,B,f,i,k[e+12>>2]|0)|0)==1){E=39;break}else break;else if((f|0)<(g|0)){E=39;break}else break}else{h=B;E=39}}else if((B|0)<(f|0)){h=k[d+8>>2]|0;E=39}while(0);if((E|0)==39){E=0;z=k[d+4>>2]|0;A=k[d+12>>2]|0;y=d+16|0;k[D>>2]=k[y>>2];k[D+4>>2]=k[y+4>>2];k[D+8>>2]=k[y+8>>2];k[d>>2]=k[e>>2];k[d+4>>2]=k[e+4>>2];k[d+8>>2]=k[e+8>>2];k[d+12>>2]=k[e+12>>2];k[d+16>>2]=k[e+16>>2];k[d+20>>2]=k[e+20>>2];k[d+24>>2]=k[e+24>>2];a:do if((e|0)==(a|0))e=a;else{o=(B|0)==(h|0);y=o&(z|0)==(A|0);p=((B|0)<0)<<31>>31;t=be(h|0,((h|0)<0)<<31>>31|0,B|0,p|0)|0;u=L;q=((z|0)<0)<<31>>31;w=be(A|0,((A|0)<0)<<31>>31|0,z|0,q|0)|0;x=L;s=(u|0)<0;v=be(0,0,t|0,u|0)|0;t=s?v:t;u=s?L:u;v=(x|0)<0;n=be(0,0,w|0,x|0)|0;w=v?n:w;x=v?L:x;while(1){n=e;e=e+-28|0;f=k[e>>2]|0;do if((B|0)==(f|0)){g=k[n+-20>>2]|0;f=(B|0)==(g|0);if(y){if(!f)break;f=k[n+-24>>2]|0;if((f|0)==(k[n+-16>>2]|0))if((z|0)<(f|0))break;else{e=n;break a}else if((z|0)>(f|0)){e=n;break a}else break}if(f){if(!o){e=n;break a}if((z|0)<(k[n+-24>>2]|0))break;else{e=n;break a}}if(!o){f=k[n+-24>>2]|0;if((z|0)!=(f|0))if((z|0)<(f|0))break;else{e=n;break a}l=be(B|0,p|0,g|0,((g|0)<0)<<31>>31|0)|0;i=L;g=k[n+-16>>2]|0;g=be(z|0,q|0,g|0,((g|0)<0)<<31>>31|0)|0;f=L;m=(i|0)<0;H=be(0,0,l|0,i|0)|0;i=m?L:i;G=(f|0)<0;I=be(0,0,g|0,f|0)|0;f=ne((G?I:g)|0,(G?L:f)|0,t|0,u|0)|0;g=L;i=ne((m?H:l)|0,i|0,w|0,x|0)|0;l=L;m=v^m;do if(s^G){if(!m){I=ge(f|0,g|0,i|0,l|0)|0;j=-(+(I>>>0)+4294967296.0*+(L>>>0));break}if(g>>>0>l>>>0|(g|0)==(l|0)&f>>>0>i>>>0){I=be(f|0,g|0,i|0,l|0)|0;j=-(+(I>>>0)+4294967296.0*+(L>>>0));break}else{I=be(i|0,l|0,f|0,g|0)|0;j=+(I>>>0)+4294967296.0*+(L>>>0);break}}else{if(m){I=ge(f|0,g|0,i|0,l|0)|0;j=+(I>>>0)+4294967296.0*+(L>>>0);break}if(g>>>0<l>>>0|(g|0)==(l|0)&f>>>0<i>>>0){I=be(i|0,l|0,f|0,g|0)|0;j=-(+(I>>>0)+4294967296.0*+(L>>>0));break}else{I=be(f|0,g|0,i|0,l|0)|0;j=+(I>>>0)+4294967296.0*+(L>>>0);break}}while(0);if(!(j!=0.0&!(j<0.0))){e=n;break a}}}else if((B|0)>=(f|0)){e=n;break a}while(0);k[n>>2]=k[e>>2];k[n+4>>2]=k[e+4>>2];k[n+8>>2]=k[e+8>>2];k[n+12>>2]=k[e+12>>2];k[n+16>>2]=k[e+16>>2];k[n+20>>2]=k[e+20>>2];k[n+24>>2]=k[e+24>>2];if((e|0)==(a|0)){e=a;break}}}while(0);k[e>>2]=B;k[e+4>>2]=z;k[e+8>>2]=h;k[e+12>>2]=A;I=e+16|0;k[I>>2]=k[D>>2];k[I+4>>2]=k[D+4>>2];k[I+8>>2]=k[D+8>>2];c=c+1|0;if((c|0)==8)break}e=d+28|0;if((e|0)==(b|0)){c=1;E=70;break}else{I=d;d=e;e=I}}if((E|0)==70){r=F;return c|0}I=(d+28|0)==(b|0);r=F;return I|0}}return 0}function pd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0;f=a+4|0;g=k[a>>2]|0;c=g;h=(k[f>>2]|0)-c|0;i=(h|0)/28|0;j=i+1|0;if(j>>>0>153391689)xa(1340,1363,303,1438);l=a+8|0;c=((k[l>>2]|0)-c|0)/28|0;if(c>>>0<76695844){c=c<<1;c=c>>>0<j>>>0?j:c;if(!c){c=0;d=0}else e=5}else{c=153391689;e=5}if((e|0)==5){e=c*28|0;e=(e|0)==0?1:e;d=_d(e)|0;a:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break a}a=ya(4)|0;k[a>>2]=128;La(a|0,8,1)}while(0)}e=d+(i*28|0)|0;k[e>>2]=k[b>>2];k[e+4>>2]=k[b+4>>2];k[e+8>>2]=k[b+8>>2];k[e+12>>2]=k[b+12>>2];k[e+16>>2]=k[b+16>>2];k[e+20>>2]=k[b+20>>2];k[e+24>>2]=k[b+24>>2];b=d+((((h|0)/-28|0)+i|0)*28|0)|0;fe(b|0,g|0,h|0)|0;k[a>>2]=b;k[f>>2]=d+(j*28|0);k[l>>2]=d+(c*28|0);if(!g)return;$d(g);return}function qd(a){a=a|0;return}function rd(a){a=a|0;$d(a);return}function sd(a){a=a|0;return 1459}function td(a){a=a|0;return}function ud(a){a=a|0;return}function vd(a){a=a|0;return}function wd(a){a=a|0;$d(a);return}function xd(a){a=a|0;$d(a);return}function yd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=r;r=r+64|0;f=g;if((a|0)!=(b|0))if((b|0)!=0?(e=Bd(b,56)|0,(e|0)!=0):0){b=f;d=b+56|0;do{k[b>>2]=0;b=b+4|0}while((b|0)<(d|0));k[f>>2]=e;k[f+8>>2]=a;k[f+12>>2]=-1;k[f+48>>2]=1;_a[k[(k[e>>2]|0)+28>>2]&3](e,f,k[c>>2]|0,1);if((k[f+24>>2]|0)==1){k[c>>2]=k[f+16>>2];b=1}else b=0}else b=0;else b=1;r=g;return b|0}function zd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;do if((a|0)==(k[b+8>>2]|0)){a=b+16|0;e=k[a>>2]|0;if(!e){k[a>>2]=c;k[b+24>>2]=d;k[b+36>>2]=1;break}if((e|0)!=(c|0)){d=b+36|0;k[d>>2]=(k[d>>2]|0)+1;k[b+24>>2]=2;i[b+54>>0]=1;break}a=b+24|0;if((k[a>>2]|0)==2)k[a>>2]=d}while(0);return}function Ad(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;do if((a|0)==(k[b+8>>2]|0)){a=b+16|0;e=k[a>>2]|0;if(!e){k[a>>2]=c;k[b+24>>2]=d;k[b+36>>2]=1;break}if((e|0)!=(c|0)){d=b+36|0;k[d>>2]=(k[d>>2]|0)+1;k[b+24>>2]=2;i[b+54>>0]=1;break}a=b+24|0;if((k[a>>2]|0)==2)k[a>>2]=d}else{e=k[a+8>>2]|0;_a[k[(k[e>>2]|0)+28>>2]&3](e,b,c,d)}while(0);return}function Bd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0;s=r;r=r+64|0;q=s;p=k[a>>2]|0;o=a+(k[p+-8>>2]|0)|0;p=k[p+-4>>2]|0;k[q>>2]=b;k[q+4>>2]=a;k[q+8>>2]=40;l=q+12|0;a=q+16|0;c=q+20|0;d=q+24|0;e=q+28|0;f=q+32|0;g=q+40|0;h=(p|0)==(b|0);m=l;n=m+40|0;do{k[m>>2]=0;m=m+4|0}while((m|0)<(n|0));j[l+40>>1]=0;i[l+42>>0]=0;a:do if(h){k[q+48>>2]=1;Ya[k[(k[b>>2]|0)+20>>2]&3](b,q,o,o,1,0);a=(k[d>>2]|0)==1?o:0}else{Ua[k[(k[p>>2]|0)+24>>2]&3](p,q,o,1,0);switch(k[q+36>>2]|0){case 0:{a=(k[g>>2]|0)==1&(k[e>>2]|0)==1&(k[f>>2]|0)==1?k[c>>2]|0:0;break a}case 1:break;default:{a=0;break a}}if((k[d>>2]|0)!=1?!((k[g>>2]|0)==0&(k[e>>2]|0)==1&(k[f>>2]|0)==1):0){a=0;break}a=k[a>>2]|0}while(0);r=s;return a|0}function Cd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;i[a+53>>0]=1;do if((k[a+4>>2]|0)==(c|0)){i[a+52>>0]=1;c=a+16|0;e=k[c>>2]|0;if(!e){k[c>>2]=b;k[a+24>>2]=d;k[a+36>>2]=1;if(!((d|0)==1?(k[a+48>>2]|0)==1:0))break;i[a+54>>0]=1;break}if((e|0)!=(b|0)){d=a+36|0;k[d>>2]=(k[d>>2]|0)+1;i[a+54>>0]=1;break}e=a+24|0;c=k[e>>2]|0;if((c|0)==2){k[e>>2]=d;c=d}if((c|0)==1?(k[a+48>>2]|0)==1:0)i[a+54>>0]=1}while(0);return}function Dd(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0;a:do if((a|0)==(k[b+8>>2]|0)){if((k[b+4>>2]|0)==(c|0)?(f=b+28|0,(k[f>>2]|0)!=1):0)k[f>>2]=d}else{if((a|0)!=(k[b>>2]|0)){h=k[a+8>>2]|0;Ua[k[(k[h>>2]|0)+24>>2]&3](h,b,c,d,e);break}if((k[b+16>>2]|0)!=(c|0)?(g=b+20|0,(k[g>>2]|0)!=(c|0)):0){k[b+32>>2]=d;d=b+44|0;if((k[d>>2]|0)==4)break;f=b+52|0;i[f>>0]=0;j=b+53|0;i[j>>0]=0;a=k[a+8>>2]|0;Ya[k[(k[a>>2]|0)+20>>2]&3](a,b,c,c,1,e);if(i[j>>0]|0){if(!(i[f>>0]|0)){f=1;h=13}}else{f=0;h=13}do if((h|0)==13){k[g>>2]=c;j=b+40|0;k[j>>2]=(k[j>>2]|0)+1;if((k[b+36>>2]|0)==1?(k[b+24>>2]|0)==2:0){i[b+54>>0]=1;if(f)break}else h=16;if((h|0)==16?f:0)break;k[d>>2]=4;break a}while(0);k[d>>2]=3;break}if((d|0)==1)k[b+32>>2]=1}while(0);return}function Ed(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;do if((a|0)==(k[b+8>>2]|0)){if((k[b+4>>2]|0)==(c|0)?(g=b+28|0,(k[g>>2]|0)!=1):0)k[g>>2]=d}else if((a|0)==(k[b>>2]|0)){if((k[b+16>>2]|0)!=(c|0)?(f=b+20|0,(k[f>>2]|0)!=(c|0)):0){k[b+32>>2]=d;k[f>>2]=c;e=b+40|0;k[e>>2]=(k[e>>2]|0)+1;if((k[b+36>>2]|0)==1?(k[b+24>>2]|0)==2:0)i[b+54>>0]=1;k[b+44>>2]=4;break}if((d|0)==1)k[b+32>>2]=1}while(0);return}function Fd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if((a|0)==(k[b+8>>2]|0))Cd(b,c,d,e);else{a=k[a+8>>2]|0;Ya[k[(k[a>>2]|0)+20>>2]&3](a,b,c,d,e,f)}return}function Gd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if((a|0)==(k[b+8>>2]|0))Cd(b,c,d,e);return}function Hd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=r;r=r+16|0;d=e;k[d>>2]=k[c>>2];a=Ta[k[(k[a>>2]|0)+16>>2]&7](a,b,d)|0;if(a)k[c>>2]=k[d>>2];r=e;return a&1|0}function Id(a){a=a|0;if(!a)a=0;else a=(Bd(a,88)|0)!=0;return a&1|0}function Jd(a){a=a|0;var b=0,c=0;b=0;while(1){if((l[1474+b>>0]|0)==(a|0)){c=2;break}b=b+1|0;if((b|0)==87){b=87;a=1562;c=5;break}}if((c|0)==2)if(!b)b=1562;else{a=1562;c=5}if((c|0)==5)while(1){do{c=a;a=a+1|0}while((i[c>>0]|0)!=0);b=b+-1|0;if(!b){b=a;break}else c=5}return b|0}function Kd(a,b){a=+a;b=b|0;var c=0,d=0,e=0;p[t>>3]=a;c=k[t>>2]|0;d=k[t+4>>2]|0;e=de(c|0,d|0,52)|0;e=e&2047;switch(e|0){case 0:{if(a!=0.0){a=+Kd(a*18446744073709552.0e3,b);c=(k[b>>2]|0)+-64|0}else c=0;k[b>>2]=c;break}case 2047:break;default:{k[b>>2]=e+-1022;k[t>>2]=c;k[t+4>>2]=d&-2146435073|1071644672;a=+p[t>>3]}}return +a}function Ld(a,b){a=a|0;b=b|0;do if(!a)a=1;else{if(b>>>0<128){i[a>>0]=b;a=1;break}if(b>>>0<2048){i[a>>0]=b>>>6|192;i[a+1>>0]=b&63|128;a=2;break}if(b>>>0<55296|(b&-8192|0)==57344){i[a>>0]=b>>>12|224;i[a+1>>0]=b>>>6&63|128;i[a+2>>0]=b&63|128;a=3;break}if((b+-65536|0)>>>0<1048576){i[a>>0]=b>>>18|240;i[a+1>>0]=b>>>12&63|128;i[a+2>>0]=b>>>6&63|128;i[a+3>>0]=b&63|128;a=4;break}if(!(k[56]|0))a=268;else{a=(Ga()|0)+60|0;a=k[a>>2]|0}k[a>>2]=84;a=-1}while(0);return a|0}function Md(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=c+16|0;e=k[d>>2]|0;if(!e)if(!(Td(c)|0)){e=k[d>>2]|0;f=4}else d=0;else f=4;a:do if((f|0)==4){g=c+20|0;f=k[g>>2]|0;if((e-f|0)>>>0<b>>>0){d=Ta[k[c+36>>2]&7](c,a,b)|0;break}b:do if((i[c+75>>0]|0)>-1){d=b;while(1){if(!d){e=f;d=0;break b}e=d+-1|0;if((i[a+e>>0]|0)==10)break;else d=e}if((Ta[k[c+36>>2]&7](c,a,d)|0)>>>0<d>>>0)break a;b=b-d|0;a=a+d|0;e=k[g>>2]|0}else{e=f;d=0}while(0);fe(e|0,a|0,b|0)|0;k[g>>2]=(k[g>>2]|0)+b;d=d+b|0}while(0);return d|0}function Nd(a,b){a=a|0;b=b|0;var c=0,d=0;c=r;r=r+16|0;d=c;k[d>>2]=b;Od(272,a,d)|0;r=c;return}function Od(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0;q=r;r=r+224|0;m=q+120|0;p=q+80|0;o=q;n=q+136|0;d=p;e=d+40|0;do{k[d>>2]=0;d=d+4|0}while((d|0)<(e|0));k[m>>2]=k[c>>2];if((Vd(0,b,m,o,p)|0)<0)c=-1;else{c=k[a>>2]|0;l=c&32;if((i[a+74>>0]|0)<1)k[a>>2]=c&-33;j=a+48|0;if(!(k[j>>2]|0)){d=a+44|0;e=k[d>>2]|0;k[d>>2]=n;f=a+28|0;k[f>>2]=n;g=a+20|0;k[g>>2]=n;k[j>>2]=80;h=a+16|0;k[h>>2]=n+80;c=Vd(a,b,m,o,p)|0;if(e){Ta[k[a+36>>2]&7](a,0,0)|0;c=(k[g>>2]|0)==0?-1:c;k[d>>2]=e;k[j>>2]=0;k[h>>2]=0;k[f>>2]=0;k[g>>2]=0}}else c=Vd(a,b,m,o,p)|0;p=k[a>>2]|0;k[a>>2]=p|l;c=(p&32|0)==0?c:-1}r=q;return c|0}function Pd(a){a=a|0;var b=0,c=0;c=r;r=r+16|0;b=c;k[b>>2]=k[a+60>>2];a=va(6,b|0)|0;if(a>>>0>4294963200){if(!(k[56]|0))b=268;else{b=(Ga()|0)+60|0;b=k[b>>2]|0}k[b>>2]=0-a;a=-1}r=c;return a|0}function Qd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=r;r=r+32|0;g=f;d=f+20|0;k[g>>2]=k[a+60>>2];k[g+4>>2]=0;k[g+8>>2]=b;k[g+12>>2]=d;k[g+16>>2]=c;b=Ha(140,g|0)|0;if(b>>>0<=4294963200)if((b|0)<0)e=7;else a=k[d>>2]|0;else{if(!(k[56]|0))a=268;else{a=(Ga()|0)+60|0;a=k[a>>2]|0}k[a>>2]=0-b;e=7}if((e|0)==7){k[d>>2]=-1;a=-1}r=f;return a|0}function Rd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0;p=r;r=r+48|0;m=p+16|0;l=p;i=p+32|0;n=a+28|0;f=k[n>>2]|0;k[i>>2]=f;o=a+20|0;f=(k[o>>2]|0)-f|0;k[i+4>>2]=f;k[i+8>>2]=b;k[i+12>>2]=c;h=a+60|0;j=a+44|0;e=2;f=f+c|0;while(1){if(!(k[56]|0)){k[m>>2]=k[h>>2];k[m+4>>2]=i;k[m+8>>2]=e;b=Qa(146,m|0)|0;if(b>>>0>4294963200){if(!(k[56]|0))d=268;else{d=(Ga()|0)+60|0;d=k[d>>2]|0}k[d>>2]=0-b;b=-1}}else{Na(8,a|0);k[l>>2]=k[h>>2];k[l+4>>2]=i;k[l+8>>2]=e;b=Qa(146,l|0)|0;if(b>>>0>4294963200){if(!(k[56]|0))d=268;else{d=(Ga()|0)+60|0;d=k[d>>2]|0}k[d>>2]=0-b;b=-1}ua(0)}if((f|0)==(b|0)){b=13;break}if((b|0)<0){b=15;break}f=f-b|0;d=k[i+4>>2]|0;if(b>>>0<=d>>>0)if((e|0)==2){k[n>>2]=(k[n>>2]|0)+b;g=d;d=i;e=2}else{g=d;d=i}else{g=k[j>>2]|0;k[n>>2]=g;k[o>>2]=g;g=k[i+12>>2]|0;b=b-d|0;d=i+8|0;e=e+-1|0}k[d>>2]=(k[d>>2]|0)+b;k[d+4>>2]=g-b;i=d}if((b|0)==13){m=k[j>>2]|0;k[a+16>>2]=m+(k[a+48>>2]|0);a=m;k[n>>2]=a;k[o>>2]=a}else if((b|0)==15){k[a+16>>2]=0;k[n>>2]=0;k[o>>2]=0;k[a>>2]=k[a>>2]|32;if((e|0)==2)c=0;else c=c-(k[i+4>>2]|0)|0}r=p;return c|0}function Sd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=r;r=r+80|0;d=e;k[a+36>>2]=4;if((k[a>>2]&64|0)==0?(k[d>>2]=k[a+60>>2],k[d+4>>2]=21505,k[d+8>>2]=e+12,(Ia(54,d|0)|0)!=0):0)i[a+75>>0]=-1;d=Rd(a,b,c)|0;r=e;return d|0}function Td(a){a=a|0;var b=0,c=0;b=a+74|0;c=i[b>>0]|0;i[b>>0]=c+255|c;b=k[a>>2]|0;if(!(b&8)){k[a+8>>2]=0;k[a+4>>2]=0;b=k[a+44>>2]|0;k[a+28>>2]=b;k[a+20>>2]=b;k[a+16>>2]=b+(k[a+48>>2]|0);b=0}else{k[a>>2]=b|32;b=-1}return b|0}function Ud(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;f=b&255;d=(c|0)!=0;a:do if(d&(a&3|0)!=0){e=b&255;while(1){if((i[a>>0]|0)==e<<24>>24)break a;a=a+1|0;c=c+-1|0;d=(c|0)!=0;if(!(d&(a&3|0)!=0)){g=5;break}}}else g=5;while(0);b:do if((g|0)==5)if(d){e=b&255;if((i[a>>0]|0)!=e<<24>>24){d=ha(f,16843009)|0;c:do if(c>>>0>3)while(1){f=k[a>>2]^d;if((f&-2139062144^-2139062144)&f+-16843009)break;a=a+4|0;c=c+-4|0;if(c>>>0<=3){g=11;break c}}else g=11;while(0);if((g|0)==11)if(!c){c=0;break}while(1){if((i[a>>0]|0)==e<<24>>24)break b;a=a+1|0;c=c+-1|0;if(!c){c=0;break}}}}else c=0;while(0);return ((c|0)!=0?a:0)|0}function Vd(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0.0,n=0,o=0,q=0,s=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0;ga=r;r=r+624|0;ba=ga+24|0;da=ga+16|0;ca=ga+588|0;Y=ga+576|0;aa=ga;V=ga+536|0;fa=ga+8|0;ea=ga+528|0;M=(a|0)!=0;N=V+40|0;U=N;V=V+39|0;W=fa+4|0;X=Y+12|0;Y=Y+11|0;Z=ca;_=X;$=_-Z|0;O=-2-Z|0;P=_+2|0;Q=ba+288|0;R=ca+9|0;S=R;T=ca+8|0;f=0;g=0;q=0;a:while(1){do if((f|0)>-1){if((g|0)<=(2147483647-f|0)){f=g+f|0;break}if(!(k[56]|0))f=268;else{f=(Ga()|0)+60|0;f=k[f>>2]|0}k[f>>2]=75;f=-1}while(0);g=i[b>>0]|0;if(!(g<<24>>24)){K=249;break}else h=b;b:while(1){switch(g<<24>>24){case 37:{g=h;K=11;break b}case 0:{g=h;break b}default:{}}J=h+1|0;g=i[J>>0]|0;h=J}c:do if((K|0)==11)while(1){K=0;if((i[g+1>>0]|0)!=37)break c;h=h+1|0;g=g+2|0;if((i[g>>0]|0)==37)K=11;else break}while(0);y=h-b|0;if(M?(k[a>>2]&32|0)==0:0)Md(b,y,a)|0;if((h|0)!=(b|0)){b=g;g=y;continue}o=g+1|0;h=i[o>>0]|0;n=(h<<24>>24)+-48|0;if(n>>>0<10){J=(i[g+2>>0]|0)==36;o=J?g+3|0:o;h=i[o>>0]|0;u=J?n:-1;q=J?1:q}else u=-1;g=h<<24>>24;d:do if((g&-32|0)==32){n=0;while(1){if(!(1<<g+-32&75913)){s=n;break d}n=1<<(h<<24>>24)+-32|n;o=o+1|0;h=i[o>>0]|0;g=h<<24>>24;if((g&-32|0)!=32){s=n;break}}}else s=0;while(0);do if(h<<24>>24==42){h=o+1|0;g=(i[h>>0]|0)+-48|0;if(g>>>0<10?(i[o+2>>0]|0)==36:0){k[e+(g<<2)>>2]=10;q=1;g=o+3|0;n=k[d+((i[h>>0]|0)+-48<<3)>>2]|0}else{if(q){f=-1;break a}if(!M){w=s;q=0;J=0;break}q=(k[c>>2]|0)+(4-1)&~(4-1);n=k[q>>2]|0;k[c>>2]=q+4;q=0;g=h}if((n|0)<0){w=s|8192;h=g;J=0-n|0}else{w=s;h=g;J=n}}else{g=(h<<24>>24)+-48|0;if(g>>>0<10){h=o;n=0;do{n=(n*10|0)+g|0;h=h+1|0;g=(i[h>>0]|0)+-48|0}while(g>>>0<10);if((n|0)<0){f=-1;break a}else{w=s;J=n}}else{w=s;h=o;J=0}}while(0);e:do if((i[h>>0]|0)==46){n=h+1|0;g=i[n>>0]|0;if(g<<24>>24!=42){o=(g<<24>>24)+-48|0;if(o>>>0<10){g=n;h=0}else{g=n;o=0;break}while(1){h=(h*10|0)+o|0;g=g+1|0;o=(i[g>>0]|0)+-48|0;if(o>>>0>=10){o=h;break e}}}n=h+2|0;g=(i[n>>0]|0)+-48|0;if(g>>>0<10?(i[h+3>>0]|0)==36:0){k[e+(g<<2)>>2]=10;g=h+4|0;o=k[d+((i[n>>0]|0)+-48<<3)>>2]|0;break}if(q){f=-1;break a}if(M){g=(k[c>>2]|0)+(4-1)&~(4-1);o=k[g>>2]|0;k[c>>2]=g+4;g=n}else{g=n;o=0}}else{g=h;o=-1}while(0);v=0;while(1){h=(i[g>>0]|0)+-65|0;if(h>>>0>57){f=-1;break a}I=g+1|0;h=i[4398+(v*58|0)+h>>0]|0;n=h&255;if((n+-1|0)>>>0<8){g=I;v=n}else break}if(!(h<<24>>24)){f=-1;break}s=(u|0)>-1;do if(h<<24>>24==19)if(s){f=-1;break a}else K=54;else{if(s){k[e+(u<<2)>>2]=n;G=d+(u<<3)|0;H=k[G+4>>2]|0;K=aa;k[K>>2]=k[G>>2];k[K+4>>2]=H;K=54;break}if(!M){f=0;break a}Xd(aa,n,c)}while(0);if((K|0)==54?(K=0,!M):0){b=I;g=y;continue}u=i[g>>0]|0;u=(v|0)!=0&(u&15|0)==3?u&-33:u;h=w&-65537;H=(w&8192|0)==0?w:h;f:do switch(u|0){case 110:switch(v|0){case 0:{k[k[aa>>2]>>2]=f;b=I;g=y;continue a}case 1:{k[k[aa>>2]>>2]=f;b=I;g=y;continue a}case 2:{b=k[aa>>2]|0;k[b>>2]=f;k[b+4>>2]=((f|0)<0)<<31>>31;b=I;g=y;continue a}case 3:{j[k[aa>>2]>>1]=f;b=I;g=y;continue a}case 4:{i[k[aa>>2]>>0]=f;b=I;g=y;continue a}case 6:{k[k[aa>>2]>>2]=f;b=I;g=y;continue a}case 7:{b=k[aa>>2]|0;k[b>>2]=f;k[b+4>>2]=((f|0)<0)<<31>>31;b=I;g=y;continue a}default:{b=I;g=y;continue a}}case 112:{s=H|8;o=o>>>0>8?o:8;u=120;K=66;break}case 88:case 120:{s=H;K=66;break}case 111:{h=aa;g=k[h>>2]|0;h=k[h+4>>2]|0;if((g|0)==0&(h|0)==0)b=N;else{b=N;do{b=b+-1|0;i[b>>0]=g&7|48;g=de(g|0,h|0,3)|0;h=L}while(!((g|0)==0&(h|0)==0))}if(!(H&8)){g=H;s=0;n=4878;K=79}else{s=U-b+1|0;g=H;o=(o|0)<(s|0)?s:o;s=0;n=4878;K=79}break}case 105:case 100:{g=aa;b=k[g>>2]|0;g=k[g+4>>2]|0;if((g|0)<0){b=be(0,0,b|0,g|0)|0;g=L;h=aa;k[h>>2]=b;k[h+4>>2]=g;h=1;n=4878;K=78;break f}if(!(H&2048)){n=H&1;h=n;n=(n|0)==0?4878:4880;K=78}else{h=1;n=4879;K=78}break}case 117:{g=aa;b=k[g>>2]|0;g=k[g+4>>2]|0;h=0;n=4878;K=78;break}case 99:{i[V>>0]=k[aa>>2];b=V;u=1;w=0;v=4878;g=N;break}case 109:{if(!(k[56]|0))b=268;else{b=(Ga()|0)+60|0;b=k[b>>2]|0}g=Jd(k[b>>2]|0)|0;K=86;break}case 115:{g=k[aa>>2]|0;g=(g|0)!=0?g:4888;K=86;break}case 67:{k[fa>>2]=k[aa>>2];k[W>>2]=0;k[aa>>2]=fa;h=fa;o=-1;K=91;break}case 83:if(!o){Zd(a,32,J,0,H);g=0;K=102;break f}else{h=k[aa>>2]|0;K=91;break f}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{m=+p[aa>>3];k[da>>2]=0;p[t>>3]=m;if((k[t+4>>2]|0)>=0)if(!(H&2048)){G=H&1;F=G;G=(G|0)==0?4896:4901}else{F=1;G=4898}else{m=-m;F=1;G=4895}p[t>>3]=m;E=k[t+4>>2]&2146435072;do if(E>>>0<2146435072|(E|0)==2146435072&0<0){x=+Kd(m,da)*2.0;g=x!=0.0;if(g)k[da>>2]=(k[da>>2]|0)+-1;C=u|32;if((C|0)==97){v=u&32;y=(v|0)==0?G:G+9|0;w=F|2;b=12-o|0;do if(!(o>>>0>11|(b|0)==0)){m=8.0;do{b=b+-1|0;m=m*16.0}while((b|0)!=0);if((i[y>>0]|0)==45){m=-(m+(-x-m));break}else{m=x+m-m;break}}else m=x;while(0);g=k[da>>2]|0;b=(g|0)<0?0-g|0:g;b=Yd(b,((b|0)<0)<<31>>31,X)|0;if((b|0)==(X|0)){i[Y>>0]=48;b=Y}i[b+-1>>0]=(g>>31&2)+43;s=b+-2|0;i[s>>0]=u+15;n=(o|0)<1;h=(H&8|0)==0;g=ca;while(1){G=~~m;b=g+1|0;i[g>>0]=l[4862+G>>0]|v;m=(m-+(G|0))*16.0;do if((b-Z|0)==1){if(h&(n&m==0.0))break;i[b>>0]=46;b=g+2|0}while(0);if(!(m!=0.0))break;else g=b}h=s;o=(o|0)!=0&(O+b|0)<(o|0)?P+o-h|0:$-h+b|0;n=o+w|0;Zd(a,32,J,n,H);if(!(k[a>>2]&32))Md(y,w,a)|0;Zd(a,48,J,n,H^65536);g=b-Z|0;if(!(k[a>>2]&32))Md(ca,g,a)|0;b=_-h|0;Zd(a,48,o-(g+b)|0,0,0);if(!(k[a>>2]&32))Md(s,b,a)|0;Zd(a,32,J,n,H^8192);g=(n|0)<(J|0)?J:n;break}b=(o|0)<0?6:o;if(g){g=(k[da>>2]|0)+-28|0;k[da>>2]=g;m=x*268435456.0}else{m=x;g=k[da>>2]|0}E=(g|0)<0?ba:Q;D=E;h=E;do{B=~~m>>>0;k[h>>2]=B;h=h+4|0;m=(m-+(B>>>0))*1.0e9}while(m!=0.0);g=k[da>>2]|0;if((g|0)>0){n=E;o=h;while(1){s=(g|0)>29?29:g;g=o+-4|0;do if(g>>>0>=n>>>0){h=0;do{A=ee(k[g>>2]|0,0,s|0)|0;A=ge(A|0,L|0,h|0,0)|0;B=L;z=pe(A|0,B|0,1e9,0)|0;k[g>>2]=z;h=oe(A|0,B|0,1e9,0)|0;g=g+-4|0}while(g>>>0>=n>>>0);if(!h)break;n=n+-4|0;k[n>>2]=h}while(0);h=o;while(1){if(h>>>0<=n>>>0)break;g=h+-4|0;if(!(k[g>>2]|0))h=g;else break}g=(k[da>>2]|0)-s|0;k[da>>2]=g;if((g|0)>0)o=h;else break}}else n=E;if((g|0)<0){y=((b+25|0)/9|0)+1|0;z=(C|0)==102;do{w=0-g|0;w=(w|0)>9?9:w;do if(n>>>0<h>>>0){g=(1<<w)+-1|0;o=1e9>>>w;v=0;s=n;do{B=k[s>>2]|0;k[s>>2]=(B>>>w)+v;v=ha(B&g,o)|0;s=s+4|0}while(s>>>0<h>>>0);g=(k[n>>2]|0)==0?n+4|0:n;if(!v){n=g;g=h;break}k[h>>2]=v;n=g;g=h+4|0}else{n=(k[n>>2]|0)==0?n+4|0:n;g=h}while(0);h=z?E:n;h=(g-h>>2|0)>(y|0)?h+(y<<2)|0:g;g=(k[da>>2]|0)+w|0;k[da>>2]=g}while((g|0)<0);s=n;B=h}else{s=n;B=h}do if(s>>>0<B>>>0){g=(D-s>>2)*9|0;n=k[s>>2]|0;if(n>>>0<10)break;else h=10;do{h=h*10|0;g=g+1|0}while(n>>>0>=h>>>0)}else g=0;while(0);z=(C|0)==103;A=(b|0)!=0;h=b-((C|0)!=102?g:0)+((A&z)<<31>>31)|0;if((h|0)<(((B-D>>2)*9|0)+-9|0)){o=h+9216|0;y=(o|0)/9|0;h=E+(y+-1023<<2)|0;o=((o|0)%9|0)+1|0;if((o|0)<9){n=10;do{n=n*10|0;o=o+1|0}while((o|0)!=9)}else n=10;v=k[h>>2]|0;w=(v>>>0)%(n>>>0)|0;if((w|0)==0?(E+(y+-1022<<2)|0)==(B|0):0)n=s;else K=167;do if((K|0)==167){K=0;x=(((v>>>0)/(n>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;o=(n|0)/2|0;do if(w>>>0<o>>>0)m=.5;else{if((w|0)==(o|0)?(E+(y+-1022<<2)|0)==(B|0):0){m=1.0;break}m=1.5}while(0);do if(F){if((i[G>>0]|0)!=45)break;x=-x;m=-m}while(0);o=v-w|0;k[h>>2]=o;if(!(x+m!=x)){n=s;break}C=o+n|0;k[h>>2]=C;if(C>>>0>999999999){g=s;while(1){n=h+-4|0;k[h>>2]=0;if(n>>>0<g>>>0){g=g+-4|0;k[g>>2]=0}C=(k[n>>2]|0)+1|0;k[n>>2]=C;if(C>>>0>999999999)h=n;else{s=g;h=n;break}}}g=(D-s>>2)*9|0;o=k[s>>2]|0;if(o>>>0<10){n=s;break}else n=10;do{n=n*10|0;g=g+1|0}while(o>>>0>=n>>>0);n=s}while(0);h=h+4|0;C=n;h=B>>>0>h>>>0?h:B}else{C=s;h=B}w=0-g|0;B=h;while(1){if(B>>>0<=C>>>0){y=0;break}h=B+-4|0;if(!(k[h>>2]|0))B=h;else{y=1;break}}do if(z){b=(A&1^1)+b|0;if((b|0)>(g|0)&(g|0)>-5){u=u+-1|0;b=b+-1-g|0}else{u=u+-2|0;b=b+-1|0}h=H&8;if(h)break;do if(y){h=k[B+-4>>2]|0;if(!h){n=9;break}if(!((h>>>0)%10|0)){o=10;n=0}else{n=0;break}do{o=o*10|0;n=n+1|0}while(((h>>>0)%(o>>>0)|0|0)==0)}else n=9;while(0);h=((B-D>>2)*9|0)+-9|0;if((u|32|0)==102){h=h-n|0;h=(h|0)<0?0:h;b=(b|0)<(h|0)?b:h;h=0;break}else{h=h+g-n|0;h=(h|0)<0?0:h;b=(b|0)<(h|0)?b:h;h=0;break}}else h=H&8;while(0);v=b|h;o=(v|0)!=0&1;s=(u|32|0)==102;if(s){g=(g|0)>0?g:0;u=0}else{n=(g|0)<0?w:g;n=Yd(n,((n|0)<0)<<31>>31,X)|0;if((_-n|0)<2)do{n=n+-1|0;i[n>>0]=48}while((_-n|0)<2);i[n+-1>>0]=(g>>31&2)+43;D=n+-2|0;i[D>>0]=u;g=_-D|0;u=D}w=F+1+b+o+g|0;Zd(a,32,J,w,H);if(!(k[a>>2]&32))Md(G,F,a)|0;Zd(a,48,J,w,H^65536);do if(s){n=C>>>0>E>>>0?E:C;h=n;do{g=Yd(k[h>>2]|0,0,R)|0;do if((h|0)==(n|0)){if((g|0)!=(R|0))break;i[T>>0]=48;g=T}else{if(g>>>0<=ca>>>0)break;do{g=g+-1|0;i[g>>0]=48}while(g>>>0>ca>>>0)}while(0);if(!(k[a>>2]&32))Md(g,S-g|0,a)|0;h=h+4|0}while(h>>>0<=E>>>0);do if(v){if(k[a>>2]&32)break;Md(4930,1,a)|0}while(0);if((b|0)>0&h>>>0<B>>>0)while(1){g=Yd(k[h>>2]|0,0,R)|0;if(g>>>0>ca>>>0)do{g=g+-1|0;i[g>>0]=48}while(g>>>0>ca>>>0);if(!(k[a>>2]&32))Md(g,(b|0)>9?9:b,a)|0;h=h+4|0;g=b+-9|0;if(!((b|0)>9&h>>>0<B>>>0)){b=g;break}else b=g}Zd(a,48,b+9|0,9,0)}else{s=y?B:C+4|0;if((b|0)>-1){o=(h|0)==0;n=C;do{g=Yd(k[n>>2]|0,0,R)|0;if((g|0)==(R|0)){i[T>>0]=48;g=T}do if((n|0)==(C|0)){h=g+1|0;if(!(k[a>>2]&32))Md(g,1,a)|0;if(o&(b|0)<1){g=h;break}if(k[a>>2]&32){g=h;break}Md(4930,1,a)|0;g=h}else{if(g>>>0<=ca>>>0)break;do{g=g+-1|0;i[g>>0]=48}while(g>>>0>ca>>>0)}while(0);h=S-g|0;if(!(k[a>>2]&32))Md(g,(b|0)>(h|0)?h:b,a)|0;b=b-h|0;n=n+4|0}while(n>>>0<s>>>0&(b|0)>-1)}Zd(a,48,b+18|0,18,0);if(k[a>>2]&32)break;Md(u,_-u|0,a)|0}while(0);Zd(a,32,J,w,H^8192);g=(w|0)<(J|0)?J:w}else{s=(u&32|0)!=0;o=m!=m|0.0!=0.0;g=o?0:F;n=g+3|0;Zd(a,32,J,n,h);b=k[a>>2]|0;if(!(b&32)){Md(G,g,a)|0;b=k[a>>2]|0}if(!(b&32))Md(o?(s?4922:4926):s?4914:4918,3,a)|0;Zd(a,32,J,n,H^8192);g=(n|0)<(J|0)?J:n}while(0);b=I;continue a}default:{h=H;u=o;w=0;v=4878;g=N}}while(0);g:do if((K|0)==66){h=aa;g=k[h>>2]|0;h=k[h+4>>2]|0;n=u&32;if(!((g|0)==0&(h|0)==0)){b=N;do{b=b+-1|0;i[b>>0]=l[4862+(g&15)>>0]|n;g=de(g|0,h|0,4)|0;h=L}while(!((g|0)==0&(h|0)==0));K=aa;if((s&8|0)==0|(k[K>>2]|0)==0&(k[K+4>>2]|0)==0){g=s;s=0;n=4878;K=79}else{g=s;s=2;n=4878+(u>>4)|0;K=79}}else{b=N;g=s;s=0;n=4878;K=79}}else if((K|0)==78){b=Yd(b,g,N)|0;g=H;s=h;K=79}else if((K|0)==86){K=0;H=Ud(g,0,o)|0;G=(H|0)==0;b=g;u=G?o:H-g|0;w=0;v=4878;g=G?g+o|0:H}else if((K|0)==91){K=0;g=0;b=0;s=h;while(1){n=k[s>>2]|0;if(!n)break;b=Ld(ea,n)|0;if((b|0)<0|b>>>0>(o-g|0)>>>0)break;g=b+g|0;if(o>>>0>g>>>0)s=s+4|0;else break}if((b|0)<0){f=-1;break a}Zd(a,32,J,g,H);if(!g){g=0;K=102}else{n=0;while(1){b=k[h>>2]|0;if(!b){K=102;break g}b=Ld(ea,b)|0;n=b+n|0;if((n|0)>(g|0)){K=102;break g}if(!(k[a>>2]&32))Md(ea,b,a)|0;if(n>>>0>=g>>>0){K=102;break}else h=h+4|0}}}while(0);if((K|0)==102){K=0;Zd(a,32,J,g,H^8192);b=I;g=(J|0)>(g|0)?J:g;continue}if((K|0)==79){K=0;h=(o|0)>-1?g&-65537:g;g=aa;g=(k[g>>2]|0)!=0|(k[g+4>>2]|0)!=0;if((o|0)!=0|g){u=(g&1^1)+(U-b)|0;u=(o|0)>(u|0)?o:u;w=s;v=n;g=N}else{b=N;u=0;w=s;v=n;g=N}}s=g-b|0;n=(u|0)<(s|0)?s:u;o=w+n|0;g=(J|0)<(o|0)?o:J;Zd(a,32,g,o,h);if(!(k[a>>2]&32))Md(v,w,a)|0;Zd(a,48,g,o,h^65536);Zd(a,48,n,s,0);if(!(k[a>>2]&32))Md(b,s,a)|0;Zd(a,32,g,o,h^8192);b=I}h:do if((K|0)==249)if(!a)if(!q)f=0;else{f=1;while(1){b=k[e+(f<<2)>>2]|0;if(!b){b=0;break}Xd(d+(f<<3)|0,b,c);f=f+1|0;if((f|0)>=10){f=1;break h}}while(1){f=f+1|0;if(b){f=-1;break h}if((f|0)>=10){f=1;break h}b=k[e+(f<<2)>>2]|0}}while(0);r=ga;return f|0}function Wd(a){a=a|0;return}function Xd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0.0;a:do if(b>>>0<=20)do switch(b|0){case 9:{d=(k[c>>2]|0)+(4-1)&~(4-1);b=k[d>>2]|0;k[c>>2]=d+4;k[a>>2]=b;break a}case 10:{d=(k[c>>2]|0)+(4-1)&~(4-1);b=k[d>>2]|0;k[c>>2]=d+4;d=a;k[d>>2]=b;k[d+4>>2]=((b|0)<0)<<31>>31;break a}case 11:{d=(k[c>>2]|0)+(4-1)&~(4-1);b=k[d>>2]|0;k[c>>2]=d+4;d=a;k[d>>2]=b;k[d+4>>2]=0;break a}case 12:{d=(k[c>>2]|0)+(8-1)&~(8-1);b=d;e=k[b>>2]|0;b=k[b+4>>2]|0;k[c>>2]=d+8;d=a;k[d>>2]=e;k[d+4>>2]=b;break a}case 13:{e=(k[c>>2]|0)+(4-1)&~(4-1);d=k[e>>2]|0;k[c>>2]=e+4;d=(d&65535)<<16>>16;e=a;k[e>>2]=d;k[e+4>>2]=((d|0)<0)<<31>>31;break a}case 14:{e=(k[c>>2]|0)+(4-1)&~(4-1);d=k[e>>2]|0;k[c>>2]=e+4;e=a;k[e>>2]=d&65535;k[e+4>>2]=0;break a}case 15:{e=(k[c>>2]|0)+(4-1)&~(4-1);d=k[e>>2]|0;k[c>>2]=e+4;d=(d&255)<<24>>24;e=a;k[e>>2]=d;k[e+4>>2]=((d|0)<0)<<31>>31;break a}case 16:{e=(k[c>>2]|0)+(4-1)&~(4-1);d=k[e>>2]|0;k[c>>2]=e+4;e=a;k[e>>2]=d&255;k[e+4>>2]=0;break a}case 17:{e=(k[c>>2]|0)+(8-1)&~(8-1);f=+p[e>>3];k[c>>2]=e+8;p[a>>3]=f;break a}case 18:{e=(k[c>>2]|0)+(8-1)&~(8-1);f=+p[e>>3];k[c>>2]=e+8;p[a>>3]=f;break a}default:break a}while(0);while(0);return}function Yd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(b>>>0>0|(b|0)==0&a>>>0>4294967295)while(1){d=pe(a|0,b|0,10,0)|0;c=c+-1|0;i[c>>0]=d|48;d=a;a=oe(a|0,b|0,10,0)|0;if(!(b>>>0>9|(b|0)==9&d>>>0>4294967295))break;else b=L}if(a)while(1){c=c+-1|0;i[c>>0]=(a>>>0)%10|0|48;if(a>>>0<10)break;else a=(a>>>0)/10|0}return c|0}function Zd(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=r;r=r+256|0;f=g;do if((c|0)>(d|0)&(e&73728|0)==0){e=c-d|0;ce(f|0,b|0,(e>>>0>256?256:e)|0)|0;d=k[a>>2]|0;c=(d&32|0)==0;if(e>>>0>255){b=e;do{if(c){Md(f,256,a)|0;d=k[a>>2]|0}b=b+-256|0;c=(d&32|0)==0}while(b>>>0>255);if(c)e=e&255;else break}else if(!c)break;Md(f,e,a)|0}while(0);r=g;return}function _d(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;do if(a>>>0<245){o=a>>>0<11?16:a+11&-8;a=o>>>3;h=k[96]|0;b=h>>>a;if(b&3){b=(b&1^1)+a|0;d=b<<1;c=424+(d<<2)|0;d=424+(d+2<<2)|0;e=k[d>>2]|0;f=e+8|0;g=k[f>>2]|0;do if((c|0)!=(g|0)){if(g>>>0<(k[100]|0)>>>0)Ma();a=g+12|0;if((k[a>>2]|0)==(e|0)){k[a>>2]=c;k[d>>2]=g;break}else Ma()}else k[96]=h&~(1<<b);while(0);L=b<<3;k[e+4>>2]=L|3;L=e+(L|4)|0;k[L>>2]=k[L>>2]|1;L=f;return L|0}g=k[98]|0;if(o>>>0>g>>>0){if(b){d=2<<a;d=b<<a&(d|0-d);d=(d&0-d)+-1|0;i=d>>>12&16;d=d>>>i;e=d>>>5&8;d=d>>>e;f=d>>>2&4;d=d>>>f;c=d>>>1&2;d=d>>>c;b=d>>>1&1;b=(e|i|f|c|b)+(d>>>b)|0;d=b<<1;c=424+(d<<2)|0;d=424+(d+2<<2)|0;f=k[d>>2]|0;i=f+8|0;e=k[i>>2]|0;do if((c|0)!=(e|0)){if(e>>>0<(k[100]|0)>>>0)Ma();a=e+12|0;if((k[a>>2]|0)==(f|0)){k[a>>2]=c;k[d>>2]=e;j=k[98]|0;break}else Ma()}else{k[96]=h&~(1<<b);j=g}while(0);L=b<<3;g=L-o|0;k[f+4>>2]=o|3;h=f+o|0;k[f+(o|4)>>2]=g|1;k[f+L>>2]=g;if(j){e=k[101]|0;c=j>>>3;a=c<<1;d=424+(a<<2)|0;b=k[96]|0;c=1<<c;if(b&c){b=424+(a+2<<2)|0;a=k[b>>2]|0;if(a>>>0<(k[100]|0)>>>0)Ma();else{l=b;m=a}}else{k[96]=b|c;l=424+(a+2<<2)|0;m=d}k[l>>2]=e;k[m+12>>2]=e;k[e+8>>2]=m;k[e+12>>2]=d}k[98]=g;k[101]=h;L=i;return L|0}a=k[97]|0;if(a){h=(a&0-a)+-1|0;K=h>>>12&16;h=h>>>K;J=h>>>5&8;h=h>>>J;L=h>>>2&4;h=h>>>L;b=h>>>1&2;h=h>>>b;i=h>>>1&1;i=k[688+((J|K|L|b|i)+(h>>>i)<<2)>>2]|0;h=(k[i+4>>2]&-8)-o|0;b=i;while(1){a=k[b+16>>2]|0;if(!a){a=k[b+20>>2]|0;if(!a)break}b=(k[a+4>>2]&-8)-o|0;L=b>>>0<h>>>0;h=L?b:h;b=a;i=L?a:i}e=k[100]|0;if(i>>>0<e>>>0)Ma();g=i+o|0;if(i>>>0>=g>>>0)Ma();f=k[i+24>>2]|0;c=k[i+12>>2]|0;do if((c|0)==(i|0)){b=i+20|0;a=k[b>>2]|0;if(!a){b=i+16|0;a=k[b>>2]|0;if(!a){n=0;break}}while(1){c=a+20|0;d=k[c>>2]|0;if(d){a=d;b=c;continue}c=a+16|0;d=k[c>>2]|0;if(!d)break;else{a=d;b=c}}if(b>>>0<e>>>0)Ma();else{k[b>>2]=0;n=a;break}}else{d=k[i+8>>2]|0;if(d>>>0<e>>>0)Ma();a=d+12|0;if((k[a>>2]|0)!=(i|0))Ma();b=c+8|0;if((k[b>>2]|0)==(i|0)){k[a>>2]=c;k[b>>2]=d;n=c;break}else Ma()}while(0);do if(f){a=k[i+28>>2]|0;b=688+(a<<2)|0;if((i|0)==(k[b>>2]|0)){k[b>>2]=n;if(!n){k[97]=k[97]&~(1<<a);break}}else{if(f>>>0<(k[100]|0)>>>0)Ma();a=f+16|0;if((k[a>>2]|0)==(i|0))k[a>>2]=n;else k[f+20>>2]=n;if(!n)break}b=k[100]|0;if(n>>>0<b>>>0)Ma();k[n+24>>2]=f;a=k[i+16>>2]|0;do if(a)if(a>>>0<b>>>0)Ma();else{k[n+16>>2]=a;k[a+24>>2]=n;break}while(0);a=k[i+20>>2]|0;if(a)if(a>>>0<(k[100]|0)>>>0)Ma();else{k[n+20>>2]=a;k[a+24>>2]=n;break}}while(0);if(h>>>0<16){L=h+o|0;k[i+4>>2]=L|3;L=i+(L+4)|0;k[L>>2]=k[L>>2]|1}else{k[i+4>>2]=o|3;k[i+(o|4)>>2]=h|1;k[i+(h+o)>>2]=h;a=k[98]|0;if(a){e=k[101]|0;c=a>>>3;a=c<<1;d=424+(a<<2)|0;b=k[96]|0;c=1<<c;if(b&c){a=424+(a+2<<2)|0;b=k[a>>2]|0;if(b>>>0<(k[100]|0)>>>0)Ma();else{p=a;q=b}}else{k[96]=b|c;p=424+(a+2<<2)|0;q=d}k[p>>2]=e;k[q+12>>2]=e;k[e+8>>2]=q;k[e+12>>2]=d}k[98]=h;k[101]=g}L=i+8|0;return L|0}}}else if(a>>>0<=4294967231){a=a+11|0;o=a&-8;i=k[97]|0;if(i){b=0-o|0;a=a>>>8;if(a)if(o>>>0>16777215)h=31;else{q=(a+1048320|0)>>>16&8;x=a<<q;p=(x+520192|0)>>>16&4;x=x<<p;h=(x+245760|0)>>>16&2;h=14-(p|q|h)+(x<<h>>>15)|0;h=o>>>(h+7|0)&1|h<<1}else h=0;a=k[688+(h<<2)>>2]|0;a:do if(!a){c=0;a=0;x=86}else{e=b;c=0;f=o<<((h|0)==31?0:25-(h>>>1)|0);g=a;a=0;while(1){d=k[g+4>>2]&-8;b=d-o|0;if(b>>>0<e>>>0)if((d|0)==(o|0)){d=g;a=g;x=90;break a}else a=g;else b=e;x=k[g+20>>2]|0;g=k[g+16+(f>>>31<<2)>>2]|0;c=(x|0)==0|(x|0)==(g|0)?c:x;if(!g){x=86;break}else{e=b;f=f<<1}}}while(0);if((x|0)==86){if((c|0)==0&(a|0)==0){a=2<<h;a=i&(a|0-a);if(!a)break;a=(a&0-a)+-1|0;n=a>>>12&16;a=a>>>n;m=a>>>5&8;a=a>>>m;p=a>>>2&4;a=a>>>p;q=a>>>1&2;a=a>>>q;c=a>>>1&1;c=k[688+((m|n|p|q|c)+(a>>>c)<<2)>>2]|0;a=0}if(!c){h=b;i=a}else{d=c;x=90}}if((x|0)==90)while(1){x=0;q=(k[d+4>>2]&-8)-o|0;c=q>>>0<b>>>0;b=c?q:b;a=c?d:a;c=k[d+16>>2]|0;if(c){d=c;x=90;continue}d=k[d+20>>2]|0;if(!d){h=b;i=a;break}else x=90}if((i|0)!=0?h>>>0<((k[98]|0)-o|0)>>>0:0){e=k[100]|0;if(i>>>0<e>>>0)Ma();g=i+o|0;if(i>>>0>=g>>>0)Ma();f=k[i+24>>2]|0;c=k[i+12>>2]|0;do if((c|0)==(i|0)){b=i+20|0;a=k[b>>2]|0;if(!a){b=i+16|0;a=k[b>>2]|0;if(!a){s=0;break}}while(1){c=a+20|0;d=k[c>>2]|0;if(d){a=d;b=c;continue}c=a+16|0;d=k[c>>2]|0;if(!d)break;else{a=d;b=c}}if(b>>>0<e>>>0)Ma();else{k[b>>2]=0;s=a;break}}else{d=k[i+8>>2]|0;if(d>>>0<e>>>0)Ma();a=d+12|0;if((k[a>>2]|0)!=(i|0))Ma();b=c+8|0;if((k[b>>2]|0)==(i|0)){k[a>>2]=c;k[b>>2]=d;s=c;break}else Ma()}while(0);do if(f){a=k[i+28>>2]|0;b=688+(a<<2)|0;if((i|0)==(k[b>>2]|0)){k[b>>2]=s;if(!s){k[97]=k[97]&~(1<<a);break}}else{if(f>>>0<(k[100]|0)>>>0)Ma();a=f+16|0;if((k[a>>2]|0)==(i|0))k[a>>2]=s;else k[f+20>>2]=s;if(!s)break}b=k[100]|0;if(s>>>0<b>>>0)Ma();k[s+24>>2]=f;a=k[i+16>>2]|0;do if(a)if(a>>>0<b>>>0)Ma();else{k[s+16>>2]=a;k[a+24>>2]=s;break}while(0);a=k[i+20>>2]|0;if(a)if(a>>>0<(k[100]|0)>>>0)Ma();else{k[s+20>>2]=a;k[a+24>>2]=s;break}}while(0);b:do if(h>>>0>=16){k[i+4>>2]=o|3;k[i+(o|4)>>2]=h|1;k[i+(h+o)>>2]=h;a=h>>>3;if(h>>>0<256){b=a<<1;d=424+(b<<2)|0;c=k[96]|0;a=1<<a;if(c&a){a=424+(b+2<<2)|0;b=k[a>>2]|0;if(b>>>0<(k[100]|0)>>>0)Ma();else{t=a;u=b}}else{k[96]=c|a;t=424+(b+2<<2)|0;u=d}k[t>>2]=g;k[u+12>>2]=g;k[i+(o+8)>>2]=u;k[i+(o+12)>>2]=d;break}a=h>>>8;if(a)if(h>>>0>16777215)d=31;else{K=(a+1048320|0)>>>16&8;L=a<<K;J=(L+520192|0)>>>16&4;L=L<<J;d=(L+245760|0)>>>16&2;d=14-(J|K|d)+(L<<d>>>15)|0;d=h>>>(d+7|0)&1|d<<1}else d=0;a=688+(d<<2)|0;k[i+(o+28)>>2]=d;k[i+(o+20)>>2]=0;k[i+(o+16)>>2]=0;b=k[97]|0;c=1<<d;if(!(b&c)){k[97]=b|c;k[a>>2]=g;k[i+(o+24)>>2]=a;k[i+(o+12)>>2]=g;k[i+(o+8)>>2]=g;break}a=k[a>>2]|0;c:do if((k[a+4>>2]&-8|0)!=(h|0)){d=h<<((d|0)==31?0:25-(d>>>1)|0);while(1){c=a+16+(d>>>31<<2)|0;b=k[c>>2]|0;if(!b)break;if((k[b+4>>2]&-8|0)==(h|0)){w=b;break c}else{d=d<<1;a=b}}if(c>>>0<(k[100]|0)>>>0)Ma();else{k[c>>2]=g;k[i+(o+24)>>2]=a;k[i+(o+12)>>2]=g;k[i+(o+8)>>2]=g;break b}}else w=a;while(0);a=w+8|0;b=k[a>>2]|0;L=k[100]|0;if(b>>>0>=L>>>0&w>>>0>=L>>>0){k[b+12>>2]=g;k[a>>2]=g;k[i+(o+8)>>2]=b;k[i+(o+12)>>2]=w;k[i+(o+24)>>2]=0;break}else Ma()}else{L=h+o|0;k[i+4>>2]=L|3;L=i+(L+4)|0;k[L>>2]=k[L>>2]|1}while(0);L=i+8|0;return L|0}}}else o=-1;while(0);c=k[98]|0;if(c>>>0>=o>>>0){a=c-o|0;b=k[101]|0;if(a>>>0>15){k[101]=b+o;k[98]=a;k[b+(o+4)>>2]=a|1;k[b+c>>2]=a;k[b+4>>2]=o|3}else{k[98]=0;k[101]=0;k[b+4>>2]=c|3;L=b+(c+4)|0;k[L>>2]=k[L>>2]|1}L=b+8|0;return L|0}a=k[99]|0;if(a>>>0>o>>>0){K=a-o|0;k[99]=K;L=k[102]|0;k[102]=L+o;k[L+(o+4)>>2]=K|1;k[L+4>>2]=o|3;L=L+8|0;return L|0}do if(!(k[214]|0)){a=Fa(30)|0;if(!(a+-1&a)){k[216]=a;k[215]=a;k[217]=-1;k[218]=-1;k[219]=0;k[207]=0;w=(Oa(0)|0)&-16^1431655768;k[214]=w;break}else Ma()}while(0);f=o+48|0;e=k[216]|0;g=o+47|0;d=e+g|0;e=0-e|0;h=d&e;if(h>>>0<=o>>>0){L=0;return L|0}a=k[206]|0;if((a|0)!=0?(u=k[204]|0,w=u+h|0,w>>>0<=u>>>0|w>>>0>a>>>0):0){L=0;return L|0}d:do if(!(k[207]&4)){c=k[102]|0;e:do if(c){a=832;while(1){b=k[a>>2]|0;if(b>>>0<=c>>>0?(r=a+4|0,(b+(k[r>>2]|0)|0)>>>0>c>>>0):0)break;a=k[a+8>>2]|0;if(!a){x=174;break e}}b=d-(k[99]|0)&e;if(b>>>0<2147483647){c=Ba(b|0)|0;w=(c|0)==((k[a>>2]|0)+(k[r>>2]|0)|0);a=w?b:0;if(w){if((c|0)!=(-1|0)){r=c;q=a;x=194;break d}}else x=184}else a=0}else x=174;while(0);do if((x|0)==174){d=Ba(0)|0;if((d|0)!=(-1|0)){a=d;b=k[215]|0;c=b+-1|0;if(!(c&a))b=h;else b=h-a+(c+a&0-b)|0;a=k[204]|0;c=a+b|0;if(b>>>0>o>>>0&b>>>0<2147483647){w=k[206]|0;if((w|0)!=0?c>>>0<=a>>>0|c>>>0>w>>>0:0){a=0;break}c=Ba(b|0)|0;x=(c|0)==(d|0);a=x?b:0;if(x){r=d;q=a;x=194;break d}else x=184}else a=0}else a=0}while(0);f:do if((x|0)==184){d=0-b|0;do if(f>>>0>b>>>0&(b>>>0<2147483647&(c|0)!=(-1|0))?(v=k[216]|0,v=g-b+v&0-v,v>>>0<2147483647):0)if((Ba(v|0)|0)==(-1|0)){Ba(d|0)|0;break f}else{b=v+b|0;break}while(0);if((c|0)!=(-1|0)){r=c;q=b;x=194;break d}}while(0);k[207]=k[207]|4;x=191}else{a=0;x=191}while(0);if((((x|0)==191?h>>>0<2147483647:0)?(y=Ba(h|0)|0,z=Ba(0)|0,y>>>0<z>>>0&((y|0)!=(-1|0)&(z|0)!=(-1|0))):0)?(A=z-y|0,B=A>>>0>(o+40|0)>>>0,B):0){r=y;q=B?A:a;x=194}if((x|0)==194){a=(k[204]|0)+q|0;k[204]=a;if(a>>>0>(k[205]|0)>>>0)k[205]=a;g=k[102]|0;g:do if(g){e=832;while(1){a=k[e>>2]|0;b=e+4|0;c=k[b>>2]|0;if((r|0)==(a+c|0)){x=204;break}d=k[e+8>>2]|0;if(!d)break;else e=d}if(((x|0)==204?(k[e+12>>2]&8|0)==0:0)?g>>>0<r>>>0&g>>>0>=a>>>0:0){k[b>>2]=c+q;L=(k[99]|0)+q|0;K=g+8|0;K=(K&7|0)==0?0:0-K&7;J=L-K|0;k[102]=g+K;k[99]=J;k[g+(K+4)>>2]=J|1;k[g+(L+4)>>2]=40;k[103]=k[218];break}a=k[100]|0;if(r>>>0<a>>>0){k[100]=r;i=r}else i=a;b=r+q|0;a=832;while(1){if((k[a>>2]|0)==(b|0)){x=212;break}a=k[a+8>>2]|0;if(!a){b=832;break}}if((x|0)==212)if(!(k[a+12>>2]&8)){k[a>>2]=r;n=a+4|0;k[n>>2]=(k[n>>2]|0)+q;n=r+8|0;n=(n&7|0)==0?0:0-n&7;j=r+(q+8)|0;j=(j&7|0)==0?0:0-j&7;a=r+(j+q)|0;m=n+o|0;p=r+m|0;l=a-(r+n)-o|0;k[r+(n+4)>>2]=o|3;h:do if((a|0)!=(g|0)){if((a|0)==(k[101]|0)){L=(k[98]|0)+l|0;k[98]=L;k[101]=p;k[r+(m+4)>>2]=L|1;k[r+(L+m)>>2]=L;break}g=q+4|0;b=k[r+(g+j)>>2]|0;if((b&3|0)==1){h=b&-8;e=b>>>3;i:do if(b>>>0>=256){f=k[r+((j|24)+q)>>2]|0;d=k[r+(q+12+j)>>2]|0;do if((d|0)==(a|0)){c=j|16;d=r+(g+c)|0;b=k[d>>2]|0;if(!b){c=r+(c+q)|0;b=k[c>>2]|0;if(!b){I=0;break}}else c=d;while(1){d=b+20|0;e=k[d>>2]|0;if(e){b=e;c=d;continue}d=b+16|0;e=k[d>>2]|0;if(!e)break;else{b=e;c=d}}if(c>>>0<i>>>0)Ma();else{k[c>>2]=0;I=b;break}}else{e=k[r+((j|8)+q)>>2]|0;if(e>>>0<i>>>0)Ma();b=e+12|0;if((k[b>>2]|0)!=(a|0))Ma();c=d+8|0;if((k[c>>2]|0)==(a|0)){k[b>>2]=d;k[c>>2]=e;I=d;break}else Ma()}while(0);if(!f)break;b=k[r+(q+28+j)>>2]|0;c=688+(b<<2)|0;do if((a|0)!=(k[c>>2]|0)){if(f>>>0<(k[100]|0)>>>0)Ma();b=f+16|0;if((k[b>>2]|0)==(a|0))k[b>>2]=I;else k[f+20>>2]=I;if(!I)break i}else{k[c>>2]=I;if(I)break;k[97]=k[97]&~(1<<b);break i}while(0);c=k[100]|0;if(I>>>0<c>>>0)Ma();k[I+24>>2]=f;a=j|16;b=k[r+(a+q)>>2]|0;do if(b)if(b>>>0<c>>>0)Ma();else{k[I+16>>2]=b;k[b+24>>2]=I;break}while(0);a=k[r+(g+a)>>2]|0;if(!a)break;if(a>>>0<(k[100]|0)>>>0)Ma();else{k[I+20>>2]=a;k[a+24>>2]=I;break}}else{c=k[r+((j|8)+q)>>2]|0;d=k[r+(q+12+j)>>2]|0;b=424+(e<<1<<2)|0;do if((c|0)!=(b|0)){if(c>>>0<i>>>0)Ma();if((k[c+12>>2]|0)==(a|0))break;Ma()}while(0);if((d|0)==(c|0)){k[96]=k[96]&~(1<<e);break}do if((d|0)==(b|0))E=d+8|0;else{if(d>>>0<i>>>0)Ma();b=d+8|0;if((k[b>>2]|0)==(a|0)){E=b;break}Ma()}while(0);k[c+12>>2]=d;k[E>>2]=c}while(0);a=r+((h|j)+q)|0;e=h+l|0}else e=l;a=a+4|0;k[a>>2]=k[a>>2]&-2;k[r+(m+4)>>2]=e|1;k[r+(e+m)>>2]=e;a=e>>>3;if(e>>>0<256){b=a<<1;d=424+(b<<2)|0;c=k[96]|0;a=1<<a;do if(!(c&a)){k[96]=c|a;J=424+(b+2<<2)|0;K=d}else{a=424+(b+2<<2)|0;b=k[a>>2]|0;if(b>>>0>=(k[100]|0)>>>0){J=a;K=b;break}Ma()}while(0);k[J>>2]=p;k[K+12>>2]=p;k[r+(m+8)>>2]=K;k[r+(m+12)>>2]=d;break}a=e>>>8;do if(!a)d=0;else{if(e>>>0>16777215){d=31;break}J=(a+1048320|0)>>>16&8;K=a<<J;I=(K+520192|0)>>>16&4;K=K<<I;d=(K+245760|0)>>>16&2;d=14-(I|J|d)+(K<<d>>>15)|0;d=e>>>(d+7|0)&1|d<<1}while(0);a=688+(d<<2)|0;k[r+(m+28)>>2]=d;k[r+(m+20)>>2]=0;k[r+(m+16)>>2]=0;b=k[97]|0;c=1<<d;if(!(b&c)){k[97]=b|c;k[a>>2]=p;k[r+(m+24)>>2]=a;k[r+(m+12)>>2]=p;k[r+(m+8)>>2]=p;break}a=k[a>>2]|0;j:do if((k[a+4>>2]&-8|0)!=(e|0)){d=e<<((d|0)==31?0:25-(d>>>1)|0);while(1){c=a+16+(d>>>31<<2)|0;b=k[c>>2]|0;if(!b)break;if((k[b+4>>2]&-8|0)==(e|0)){L=b;break j}else{d=d<<1;a=b}}if(c>>>0<(k[100]|0)>>>0)Ma();else{k[c>>2]=p;k[r+(m+24)>>2]=a;k[r+(m+12)>>2]=p;k[r+(m+8)>>2]=p;break h}}else L=a;while(0);a=L+8|0;b=k[a>>2]|0;K=k[100]|0;if(b>>>0>=K>>>0&L>>>0>=K>>>0){k[b+12>>2]=p;k[a>>2]=p;k[r+(m+8)>>2]=b;k[r+(m+12)>>2]=L;k[r+(m+24)>>2]=0;break}else Ma()}else{L=(k[99]|0)+l|0;k[99]=L;k[102]=p;k[r+(m+4)>>2]=L|1}while(0);L=r+(n|8)|0;return L|0}else b=832;while(1){a=k[b>>2]|0;if(a>>>0<=g>>>0?(C=k[b+4>>2]|0,D=a+C|0,D>>>0>g>>>0):0)break;b=k[b+8>>2]|0}b=a+(C+-39)|0;b=a+(C+-47+((b&7|0)==0?0:0-b&7))|0;e=g+16|0;b=b>>>0<e>>>0?g:b;a=b+8|0;c=r+8|0;c=(c&7|0)==0?0:0-c&7;L=q+-40-c|0;k[102]=r+c;k[99]=L;k[r+(c+4)>>2]=L|1;k[r+(q+-36)>>2]=40;k[103]=k[218];c=b+4|0;k[c>>2]=27;k[a>>2]=k[208];k[a+4>>2]=k[209];k[a+8>>2]=k[210];k[a+12>>2]=k[211];k[208]=r;k[209]=q;k[211]=0;k[210]=a;a=b+28|0;k[a>>2]=7;if((b+32|0)>>>0<D>>>0)do{L=a;a=a+4|0;k[a>>2]=7}while((L+8|0)>>>0<D>>>0);if((b|0)!=(g|0)){f=b-g|0;k[c>>2]=k[c>>2]&-2;k[g+4>>2]=f|1;k[b>>2]=f;a=f>>>3;if(f>>>0<256){b=a<<1;d=424+(b<<2)|0;c=k[96]|0;a=1<<a;if(c&a){a=424+(b+2<<2)|0;b=k[a>>2]|0;if(b>>>0<(k[100]|0)>>>0)Ma();else{F=a;G=b}}else{k[96]=c|a;F=424+(b+2<<2)|0;G=d}k[F>>2]=g;k[G+12>>2]=g;k[g+8>>2]=G;k[g+12>>2]=d;break}a=f>>>8;if(a)if(f>>>0>16777215)d=31;else{K=(a+1048320|0)>>>16&8;L=a<<K;J=(L+520192|0)>>>16&4;L=L<<J;d=(L+245760|0)>>>16&2;d=14-(J|K|d)+(L<<d>>>15)|0;d=f>>>(d+7|0)&1|d<<1}else d=0;c=688+(d<<2)|0;k[g+28>>2]=d;k[g+20>>2]=0;k[e>>2]=0;a=k[97]|0;b=1<<d;if(!(a&b)){k[97]=a|b;k[c>>2]=g;k[g+24>>2]=c;k[g+12>>2]=g;k[g+8>>2]=g;break}a=k[c>>2]|0;k:do if((k[a+4>>2]&-8|0)!=(f|0)){d=f<<((d|0)==31?0:25-(d>>>1)|0);while(1){c=a+16+(d>>>31<<2)|0;b=k[c>>2]|0;if(!b)break;if((k[b+4>>2]&-8|0)==(f|0)){H=b;break k}else{d=d<<1;a=b}}if(c>>>0<(k[100]|0)>>>0)Ma();else{k[c>>2]=g;k[g+24>>2]=a;k[g+12>>2]=g;k[g+8>>2]=g;break g}}else H=a;while(0);a=H+8|0;b=k[a>>2]|0;L=k[100]|0;if(b>>>0>=L>>>0&H>>>0>=L>>>0){k[b+12>>2]=g;k[a>>2]=g;k[g+8>>2]=b;k[g+12>>2]=H;k[g+24>>2]=0;break}else Ma()}}else{L=k[100]|0;if((L|0)==0|r>>>0<L>>>0)k[100]=r;k[208]=r;k[209]=q;k[211]=0;k[105]=k[214];k[104]=-1;a=0;do{L=a<<1;K=424+(L<<2)|0;k[424+(L+3<<2)>>2]=K;k[424+(L+2<<2)>>2]=K;a=a+1|0}while((a|0)!=32);L=r+8|0;L=(L&7|0)==0?0:0-L&7;K=q+-40-L|0;k[102]=r+L;k[99]=K;k[r+(L+4)>>2]=K|1;k[r+(q+-36)>>2]=40;k[103]=k[218]}while(0);a=k[99]|0;if(a>>>0>o>>>0){K=a-o|0;k[99]=K;L=k[102]|0;k[102]=L+o;k[L+(o+4)>>2]=K|1;k[L+4>>2]=o|3;L=L+8|0;return L|0}}if(!(k[56]|0))a=268;else{a=(Ga()|0)+60|0;a=k[a>>2]|0}k[a>>2]=12;L=0;return L|0}function $d(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;if(!a)return;b=a+-8|0;h=k[100]|0;if(b>>>0<h>>>0)Ma();c=k[a+-4>>2]|0;d=c&3;if((d|0)==1)Ma();o=c&-8;q=a+(o+-8)|0;do if(!(c&1)){b=k[b>>2]|0;if(!d)return;i=-8-b|0;l=a+i|0;m=b+o|0;if(l>>>0<h>>>0)Ma();if((l|0)==(k[101]|0)){b=a+(o+-4)|0;c=k[b>>2]|0;if((c&3|0)!=3){u=l;f=m;break}k[98]=m;k[b>>2]=c&-2;k[a+(i+4)>>2]=m|1;k[q>>2]=m;return}e=b>>>3;if(b>>>0<256){d=k[a+(i+8)>>2]|0;c=k[a+(i+12)>>2]|0;b=424+(e<<1<<2)|0;if((d|0)!=(b|0)){if(d>>>0<h>>>0)Ma();if((k[d+12>>2]|0)!=(l|0))Ma()}if((c|0)==(d|0)){k[96]=k[96]&~(1<<e);u=l;f=m;break}if((c|0)!=(b|0)){if(c>>>0<h>>>0)Ma();b=c+8|0;if((k[b>>2]|0)==(l|0))g=b;else Ma()}else g=c+8|0;k[d+12>>2]=c;k[g>>2]=d;u=l;f=m;break}g=k[a+(i+24)>>2]|0;d=k[a+(i+12)>>2]|0;do if((d|0)==(l|0)){c=a+(i+20)|0;b=k[c>>2]|0;if(!b){c=a+(i+16)|0;b=k[c>>2]|0;if(!b){j=0;break}}while(1){d=b+20|0;e=k[d>>2]|0;if(e){b=e;c=d;continue}d=b+16|0;e=k[d>>2]|0;if(!e)break;else{b=e;c=d}}if(c>>>0<h>>>0)Ma();else{k[c>>2]=0;j=b;break}}else{e=k[a+(i+8)>>2]|0;if(e>>>0<h>>>0)Ma();b=e+12|0;if((k[b>>2]|0)!=(l|0))Ma();c=d+8|0;if((k[c>>2]|0)==(l|0)){k[b>>2]=d;k[c>>2]=e;j=d;break}else Ma()}while(0);if(g){b=k[a+(i+28)>>2]|0;c=688+(b<<2)|0;if((l|0)==(k[c>>2]|0)){k[c>>2]=j;if(!j){k[97]=k[97]&~(1<<b);u=l;f=m;break}}else{if(g>>>0<(k[100]|0)>>>0)Ma();b=g+16|0;if((k[b>>2]|0)==(l|0))k[b>>2]=j;else k[g+20>>2]=j;if(!j){u=l;f=m;break}}c=k[100]|0;if(j>>>0<c>>>0)Ma();k[j+24>>2]=g;b=k[a+(i+16)>>2]|0;do if(b)if(b>>>0<c>>>0)Ma();else{k[j+16>>2]=b;k[b+24>>2]=j;break}while(0);b=k[a+(i+20)>>2]|0;if(b)if(b>>>0<(k[100]|0)>>>0)Ma();else{k[j+20>>2]=b;k[b+24>>2]=j;u=l;f=m;break}else{u=l;f=m}}else{u=l;f=m}}else{u=b;f=o}while(0);if(u>>>0>=q>>>0)Ma();b=a+(o+-4)|0;c=k[b>>2]|0;if(!(c&1))Ma();if(!(c&2)){if((q|0)==(k[102]|0)){t=(k[99]|0)+f|0;k[99]=t;k[102]=u;k[u+4>>2]=t|1;if((u|0)!=(k[101]|0))return;k[101]=0;k[98]=0;return}if((q|0)==(k[101]|0)){t=(k[98]|0)+f|0;k[98]=t;k[101]=u;k[u+4>>2]=t|1;k[u+t>>2]=t;return}f=(c&-8)+f|0;e=c>>>3;do if(c>>>0>=256){g=k[a+(o+16)>>2]|0;b=k[a+(o|4)>>2]|0;do if((b|0)==(q|0)){c=a+(o+12)|0;b=k[c>>2]|0;if(!b){c=a+(o+8)|0;b=k[c>>2]|0;if(!b){p=0;break}}while(1){d=b+20|0;e=k[d>>2]|0;if(e){b=e;c=d;continue}d=b+16|0;e=k[d>>2]|0;if(!e)break;else{b=e;c=d}}if(c>>>0<(k[100]|0)>>>0)Ma();else{k[c>>2]=0;p=b;break}}else{c=k[a+o>>2]|0;if(c>>>0<(k[100]|0)>>>0)Ma();d=c+12|0;if((k[d>>2]|0)!=(q|0))Ma();e=b+8|0;if((k[e>>2]|0)==(q|0)){k[d>>2]=b;k[e>>2]=c;p=b;break}else Ma()}while(0);if(g){b=k[a+(o+20)>>2]|0;c=688+(b<<2)|0;if((q|0)==(k[c>>2]|0)){k[c>>2]=p;if(!p){k[97]=k[97]&~(1<<b);break}}else{if(g>>>0<(k[100]|0)>>>0)Ma();b=g+16|0;if((k[b>>2]|0)==(q|0))k[b>>2]=p;else k[g+20>>2]=p;if(!p)break}c=k[100]|0;if(p>>>0<c>>>0)Ma();k[p+24>>2]=g;b=k[a+(o+8)>>2]|0;do if(b)if(b>>>0<c>>>0)Ma();else{k[p+16>>2]=b;k[b+24>>2]=p;break}while(0);b=k[a+(o+12)>>2]|0;if(b)if(b>>>0<(k[100]|0)>>>0)Ma();else{k[p+20>>2]=b;k[b+24>>2]=p;break}}}else{d=k[a+o>>2]|0;c=k[a+(o|4)>>2]|0;b=424+(e<<1<<2)|0;if((d|0)!=(b|0)){if(d>>>0<(k[100]|0)>>>0)Ma();if((k[d+12>>2]|0)!=(q|0))Ma()}if((c|0)==(d|0)){k[96]=k[96]&~(1<<e);break}if((c|0)!=(b|0)){if(c>>>0<(k[100]|0)>>>0)Ma();b=c+8|0;if((k[b>>2]|0)==(q|0))n=b;else Ma()}else n=c+8|0;k[d+12>>2]=c;k[n>>2]=d}while(0);k[u+4>>2]=f|1;k[u+f>>2]=f;if((u|0)==(k[101]|0)){k[98]=f;return}}else{k[b>>2]=c&-2;k[u+4>>2]=f|1;k[u+f>>2]=f}b=f>>>3;if(f>>>0<256){c=b<<1;e=424+(c<<2)|0;d=k[96]|0;b=1<<b;if(d&b){b=424+(c+2<<2)|0;c=k[b>>2]|0;if(c>>>0<(k[100]|0)>>>0)Ma();else{r=b;s=c}}else{k[96]=d|b;r=424+(c+2<<2)|0;s=e}k[r>>2]=u;k[s+12>>2]=u;k[u+8>>2]=s;k[u+12>>2]=e;return}b=f>>>8;if(b)if(f>>>0>16777215)e=31;else{r=(b+1048320|0)>>>16&8;s=b<<r;q=(s+520192|0)>>>16&4;s=s<<q;e=(s+245760|0)>>>16&2;e=14-(q|r|e)+(s<<e>>>15)|0;e=f>>>(e+7|0)&1|e<<1}else e=0;b=688+(e<<2)|0;k[u+28>>2]=e;k[u+20>>2]=0;k[u+16>>2]=0;c=k[97]|0;d=1<<e;a:do if(c&d){b=k[b>>2]|0;b:do if((k[b+4>>2]&-8|0)!=(f|0)){e=f<<((e|0)==31?0:25-(e>>>1)|0);while(1){d=b+16+(e>>>31<<2)|0;c=k[d>>2]|0;if(!c)break;if((k[c+4>>2]&-8|0)==(f|0)){t=c;break b}else{e=e<<1;b=c}}if(d>>>0<(k[100]|0)>>>0)Ma();else{k[d>>2]=u;k[u+24>>2]=b;k[u+12>>2]=u;k[u+8>>2]=u;break a}}else t=b;while(0);b=t+8|0;c=k[b>>2]|0;s=k[100]|0;if(c>>>0>=s>>>0&t>>>0>=s>>>0){k[c+12>>2]=u;k[b>>2]=u;k[u+8>>2]=c;k[u+12>>2]=t;k[u+24>>2]=0;break}else Ma()}else{k[97]=c|d;k[b>>2]=u;k[u+24>>2]=b;k[u+12>>2]=u;k[u+8>>2]=u}while(0);u=(k[104]|0)+-1|0;k[104]=u;if(!u)b=840;else return;while(1){b=k[b>>2]|0;if(!b)break;else b=b+8|0}k[104]=-1;return}function ae(){}function be(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;d=b-d-(c>>>0>a>>>0|0)>>>0;return (L=d,a-c>>>0|0)|0}function ce(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=a+c|0;if((c|0)>=20){b=b&255;f=a&3;g=b|b<<8|b<<16|b<<24;e=d&~3;if(f){f=a+4-f|0;while((a|0)<(f|0)){i[a>>0]=b;a=a+1|0}}while((a|0)<(e|0)){k[a>>2]=g;a=a+4|0}}while((a|0)<(d|0)){i[a>>0]=b;a=a+1|0}return a-c|0}function de(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){L=b>>>c;return a>>>c|(b&(1<<c)-1)<<32-c}L=0;return b>>>c-32|0}function ee(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){L=b<<c|(a&(1<<c)-1<<32-c)>>>32-c;return a<<c}L=a<<c-32;return 0}function fe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if((c|0)>=4096)return Ca(a|0,b|0,c|0)|0;d=a|0;if((a&3)==(b&3)){while(a&3){if(!c)return d|0;i[a>>0]=i[b>>0]|0;a=a+1|0;b=b+1|0;c=c-1|0}while((c|0)>=4){k[a>>2]=k[b>>2];a=a+4|0;b=b+4|0;c=c-4|0}}while((c|0)>0){i[a>>0]=i[b>>0]|0;a=a+1|0;b=b+1|0;c=c-1|0}return d|0}function ge(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=a+c>>>0;return (L=b+d+(c>>>0<a>>>0|0)>>>0,c|0)|0}function he(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if((b|0)<(a|0)&(a|0)<(b+c|0)){d=a;b=b+c|0;a=a+c|0;while((c|0)>0){a=a-1|0;b=b-1|0;c=c-1|0;i[a>>0]=i[b>>0]|0}a=d}else fe(a,b,c)|0;return a|0}function ie(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){L=b>>c;return a>>>c|(b&(1<<c)-1)<<32-c}L=(b|0)<0?-1:0;return b>>c-32|0}function je(a){a=a|0;var b=0;b=i[v+(a&255)>>0]|0;if((b|0)<8)return b|0;b=i[v+(a>>8&255)>>0]|0;if((b|0)<8)return b+8|0;b=i[v+(a>>16&255)>>0]|0;if((b|0)<8)return b+16|0;return (i[v+(a>>>24)>>0]|0)+24|0}function ke(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=a&65535;e=b&65535;c=ha(e,f)|0;d=a>>>16;a=(c>>>16)+(ha(e,d)|0)|0;e=b>>>16;b=ha(e,f)|0;return (L=(a>>>16)+(ha(e,d)|0)+(((a&65535)+b|0)>>>16)|0,a+b<<16|c&65535|0)|0}function le(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=b>>31|((b|0)<0?-1:0)<<1;i=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;f=d>>31|((d|0)<0?-1:0)<<1;e=((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1;h=be(j^a,i^b,j,i)|0;g=L;a=f^j;b=e^i;return be((qe(h,g,be(f^c,e^d,f,e)|0,L,0)|0)^a,L^b,a,b)|0}function me(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;e=r;r=r+16|0;h=e|0;g=b>>31|((b|0)<0?-1:0)<<1;f=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;j=d>>31|((d|0)<0?-1:0)<<1;i=((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1;a=be(g^a,f^b,g,f)|0;b=L;qe(a,b,be(j^c,i^d,j,i)|0,L,h)|0;d=be(k[h>>2]^g,k[h+4>>2]^f,g,f)|0;c=L;r=e;return (L=c,d)|0}function ne(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;f=c;c=ke(e,f)|0;a=L;return (L=(ha(b,f)|0)+(ha(d,e)|0)+a|a&0,c|0|0)|0}function oe(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qe(a,b,c,d,0)|0}function pe(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=r;r=r+16|0;e=f|0;qe(a,b,c,d,e)|0;r=f;return (L=k[e+4>>2]|0,k[e>>2]|0)|0}function qe(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0;l=a;i=b;j=i;g=c;n=d;h=n;if(!j){f=(e|0)!=0;if(!h){if(f){k[e>>2]=(l>>>0)%(g>>>0);k[e+4>>2]=0}n=0;e=(l>>>0)/(g>>>0)>>>0;return (L=n,e)|0}else{if(!f){n=0;e=0;return (L=n,e)|0}k[e>>2]=a|0;k[e+4>>2]=b&0;n=0;e=0;return (L=n,e)|0}}f=(h|0)==0;do if(g){if(!f){f=(ja(h|0)|0)-(ja(j|0)|0)|0;if(f>>>0<=31){m=f+1|0;h=31-f|0;b=f-31>>31;g=m;a=l>>>(m>>>0)&b|j<<h;b=j>>>(m>>>0)&b;f=0;h=l<<h;break}if(!e){n=0;e=0;return (L=n,e)|0}k[e>>2]=a|0;k[e+4>>2]=i|b&0;n=0;e=0;return (L=n,e)|0}f=g-1|0;if(f&g){h=(ja(g|0)|0)+33-(ja(j|0)|0)|0;p=64-h|0;m=32-h|0;i=m>>31;o=h-32|0;b=o>>31;g=h;a=m-1>>31&j>>>(o>>>0)|(j<<m|l>>>(h>>>0))&b;b=b&j>>>(h>>>0);f=l<<p&i;h=(j<<p|l>>>(o>>>0))&i|l<<m&h-33>>31;break}if(e){k[e>>2]=f&l;k[e+4>>2]=0}if((g|0)==1){o=i|b&0;p=a|0|0;return (L=o,p)|0}else{p=je(g|0)|0;o=j>>>(p>>>0)|0;p=j<<32-p|l>>>(p>>>0)|0;return (L=o,p)|0}}else{if(f){if(e){k[e>>2]=(j>>>0)%(g>>>0);k[e+4>>2]=0}o=0;p=(j>>>0)/(g>>>0)>>>0;return (L=o,p)|0}if(!l){if(e){k[e>>2]=0;k[e+4>>2]=(j>>>0)%(h>>>0)}o=0;p=(j>>>0)/(h>>>0)>>>0;return (L=o,p)|0}f=h-1|0;if(!(f&h)){if(e){k[e>>2]=a|0;k[e+4>>2]=f&j|b&0}o=0;p=j>>>((je(h|0)|0)>>>0);return (L=o,p)|0}f=(ja(h|0)|0)-(ja(j|0)|0)|0;if(f>>>0<=30){b=f+1|0;h=31-f|0;g=b;a=j<<h|l>>>(b>>>0);b=j>>>(b>>>0);f=0;h=l<<h;break}if(!e){o=0;p=0;return (L=o,p)|0}k[e>>2]=a|0;k[e+4>>2]=i|b&0;o=0;p=0;return (L=o,p)|0}while(0);if(!g){j=h;i=0;h=0}else{m=c|0|0;l=n|d&0;j=ge(m|0,l|0,-1,-1)|0;c=L;i=h;h=0;do{d=i;i=f>>>31|i<<1;f=h|f<<1;d=a<<1|d>>>31|0;n=a>>>31|b<<1|0;be(j,c,d,n)|0;p=L;o=p>>31|((p|0)<0?-1:0)<<1;h=o&1;a=be(d,n,o&m,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&l)|0;b=L;g=g-1|0}while((g|0)!=0);j=i;i=0}g=0;if(e){k[e>>2]=a;k[e+4>>2]=b}o=(f|0)>>>31|(j|g)<<1|(g<<1|f>>>31)&0|i;p=(f<<1|0>>>31)&-2|h;return (L=o,p)|0}function re(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ta[a&7](b|0,c|0,d|0)|0}function se(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;Ua[a&3](b|0,c|0,d|0,e|0,f|0)}function te(a,b){a=a|0;b=b|0;Va[a&15](b|0)}function ue(a,b){a=a|0;b=b|0;return Wa[a&3](b|0)|0}function ve(a){a=a|0;Xa[a&0]()}function we(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Ya[a&3](b|0,c|0,d|0,e|0,f|0,g|0)}function xe(a,b,c){a=a|0;b=b|0;c=c|0;return Za[a&7](b|0,c|0)|0}function ye(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;_a[a&3](b|0,c|0,d|0,e|0)}function ze(a,b,c){a=a|0;b=b|0;c=c|0;ka(0);return 0}function Ae(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ka(1)}function Be(a){a=a|0;ka(2)}function Ce(a){a=a|0;ka(3);return 0}function De(){ka(4)}function Ee(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ka(5)}function Fe(a,b){a=a|0;b=b|0;ka(6);return 0}function Ge(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ka(7)}
function Qb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;T=b;a:while(1){u=T;v=T+-20|0;w=T+-40|0;Q=T+-16|0;P=T+-12|0;R=T+-4|0;S=T+-8|0;X=a;b:while(1){s=X;a=u-s|0;switch((a|0)/20|0|0){case 2:{t=4;break a}case 3:{t=23;break a}case 4:{t=24;break a}case 5:{t=25;break a}case 1:case 0:{t=262;break a}default:{}}if((a|0)<140){t=27;break a}h=(a|0)/40|0;j=X+(h*20|0)|0;if((a|0)>19980){a=(a|0)/80|0;a=bc(X,X+(a*20|0)|0,j,X+((a+h|0)*20|0)|0,v)|0}else a=$b(X,j,v)|0;q=k[X>>2]|0;b=k[j>>2]|0;c:do if((q|0)<(b|0))e=v;else{e=(q|0)==(b|0);if(e?(k[X+4>>2]|0)<(k[X+(h*20|0)+4>>2]|0):0){e=v;break}do if((b|0)>=(q|0)){if(e?(x=k[X+(h*20|0)+4>>2]|0,y=k[X+4>>2]|0,(x|0)<(y|0)):0){e=x;f=y;t=82}else{g=k[X+8>>2]|0;f=k[X+(h*20|0)+8>>2]|0;if((g|0)<(f|0)){e=v;break c}if((g|0)==(f|0)?(k[X+12>>2]|0)<(k[X+(h*20|0)+12>>2]|0):0){e=v;break c}if(e){e=k[X+(h*20|0)+4>>2]|0;f=k[X+4>>2]|0;t=82}else{e=g;t=85}}if((t|0)==82){t=0;if((e|0)<(f|0))break;if((f|0)>=(e|0)){f=k[X+(h*20|0)+8>>2]|0;e=k[X+8>>2]|0;t=85}}if((t|0)==85){if((f|0)<(e|0))break;if((f|0)==(e|0)?(k[X+(h*20|0)+12>>2]|0)<(k[X+12>>2]|0):0)break}if((k[X+16>>2]|0)<(k[X+(h*20|0)+16>>2]|0)){e=v;break c}}while(0);d:do if((X|0)!=(w|0)){o=X+(h*20|0)+4|0;n=X+(h*20|0)+8|0;p=X+(h*20|0)+16|0;l=X+(h*20|0)+12|0;e=w;m=v;e:while(1){i=k[e>>2]|0;if((i|0)<(b|0)){b=i;break}f=(i|0)==(b|0);if(f?(k[m+-16>>2]|0)<(k[o>>2]|0):0)break;do if((b|0)>=(i|0)){if(f?(H=k[o>>2]|0,I=k[m+-16>>2]|0,(H|0)<(I|0)):0){f=H;g=I;t=184}else{h=k[m+-12>>2]|0;g=k[n>>2]|0;if((h|0)<(g|0)){b=i;break e}if((h|0)==(g|0)?(k[m+-8>>2]|0)<(k[l>>2]|0):0){b=i;break e}if(f){f=k[o>>2]|0;g=k[m+-16>>2]|0;t=184}else{f=h;t=187}}if((t|0)==184){t=0;if((f|0)<(g|0))break;if((g|0)>=(f|0)){g=k[n>>2]|0;f=k[m+-12>>2]|0;t=187}}if((t|0)==187){if((g|0)<(f|0))break;if((g|0)==(f|0)?(k[l>>2]|0)<(k[m+-8>>2]|0):0)break}if((k[m+-4>>2]|0)<(k[p>>2]|0)){b=i;break e}}while(0);f=e+-20|0;if((X|0)==(f|0))break d;else{m=e;e=f}}t=X+4|0;o=k[t>>2]|0;k[X>>2]=b;p=m+-16|0;k[t>>2]=k[p>>2];k[e>>2]=q;k[p>>2]=o;q=X+8|0;p=k[q>>2]|0;o=X+12|0;t=k[o>>2]|0;r=m+-12|0;k[q>>2]=k[r>>2];q=m+-8|0;k[o>>2]=k[q>>2];k[r>>2]=p;k[q>>2]=t;q=X+16|0;t=m+-4|0;r=k[q>>2]|0;k[q>>2]=k[t>>2];k[t>>2]=r;a=a+1|0;break c}while(0);a=X+20|0;o=k[v>>2]|0;f:do if((q|0)>=(o|0)){b=(q|0)==(o|0);if(b?(k[X+4>>2]|0)<(k[Q>>2]|0):0)break;do if((o|0)>=(q|0)){if(b?(z=k[Q>>2]|0,A=k[X+4>>2]|0,(z|0)<(A|0)):0){b=z;e=A;t=102}else{f=k[X+8>>2]|0;e=k[P>>2]|0;if((f|0)<(e|0))break f;if((f|0)==(e|0)?(k[X+12>>2]|0)<(k[S>>2]|0):0)break f;if(b){b=k[Q>>2]|0;e=k[X+4>>2]|0;t=102}else{b=f;t=105}}if((t|0)==102){t=0;if((b|0)<(e|0))break;if((e|0)>=(b|0)){e=k[P>>2]|0;b=k[X+8>>2]|0;t=105}}if((t|0)==105){if((e|0)<(b|0))break;if((e|0)==(b|0)?(k[S>>2]|0)<(k[X+12>>2]|0):0)break}if((k[X+16>>2]|0)<(k[R>>2]|0))break f}while(0);if((a|0)==(v|0)){t=262;break a}j=X+4|0;i=X+8|0;l=X+16|0;m=X+12|0;n=X;h=a;g:while(1){g=n+20|0;a=k[g>>2]|0;if((q|0)<(a|0))break;f=(q|0)==(a|0);if(f?(k[j>>2]|0)<(k[n+24>>2]|0):0){a=q;break}h:do if((a|0)>=(q|0)){if(f?(B=k[n+24>>2]|0,C=k[j>>2]|0,(B|0)<(C|0)):0){b=B;e=C;t=122}else t=117;do if((t|0)==117){e=k[i>>2]|0;b=k[n+28>>2]|0;if((e|0)<(b|0))break g;if((e|0)==(b|0)?(k[m>>2]|0)<(k[n+32>>2]|0):0)break g;if(!f){t=125;break}b=k[n+24>>2]|0;e=k[j>>2]|0;t=122}while(0);do if((t|0)==122){t=0;if((b|0)<(e|0))break h;if((e|0)<(b|0))break;b=k[n+28>>2]|0;e=k[i>>2]|0;t=125}while(0);do if((t|0)==125){if((b|0)<(e|0))break h;if((b|0)!=(e|0))break;if((k[n+32>>2]|0)<(k[m>>2]|0))break h}while(0);if((k[l>>2]|0)<(k[n+36>>2]|0))break g}while(0);a=h+20|0;if((a|0)==(v|0)){t=262;break a}else{n=h;h=a}}s=n+24|0;r=k[s>>2]|0;k[g>>2]=o;k[s>>2]=k[Q>>2];k[v>>2]=a;k[Q>>2]=r;r=n+28|0;a=k[r>>2]|0;s=n+32|0;t=k[s>>2]|0;k[r>>2]=k[P>>2];k[s>>2]=k[S>>2];k[P>>2]=a;k[S>>2]=t;t=n+36|0;a=k[t>>2]|0;k[t>>2]=k[R>>2];k[R>>2]=a;a=n+40|0}while(0);if((a|0)==(v|0)){t=262;break a}o=X+4|0;p=X+12|0;n=X+8|0;q=X+16|0;h=v;while(1){m=k[X>>2]|0;b=k[a>>2]|0;i:do if((m|0)<(b|0)){l=a;j=a}else while(1){g=(m|0)==(b|0);if(g?(k[o>>2]|0)<(k[a+4>>2]|0):0){l=a;b=m;j=a;break i}j:do if((b|0)>=(m|0)){if(g?(D=k[a+4>>2]|0,E=k[o>>2]|0,(D|0)<(E|0)):0){e=D;f=E;t=145}else t=140;do if((t|0)==140){f=k[n>>2]|0;e=k[a+8>>2]|0;if((f|0)<(e|0)){l=a;j=a;break i}if((f|0)==(e|0)?(k[p>>2]|0)<(k[a+12>>2]|0):0){l=a;j=a;break i}if(!g){t=148;break}e=k[a+4>>2]|0;f=k[o>>2]|0;t=145}while(0);do if((t|0)==145){t=0;if((e|0)<(f|0))break j;if((f|0)<(e|0))break;e=k[a+8>>2]|0;f=k[n>>2]|0;t=148}while(0);do if((t|0)==148){if((e|0)<(f|0))break j;if((e|0)!=(f|0))break;if((k[a+12>>2]|0)<(k[p>>2]|0))break j}while(0);if((k[q>>2]|0)<(k[a+16>>2]|0)){l=a;j=a;break i}}while(0);a=a+20|0;b=k[a>>2]|0;if((m|0)<(b|0)){l=a;j=a;break}}while(0);k:while(1){i=h+-20|0;g=k[i>>2]|0;if((m|0)<(g|0)){h=i;continue}f=(m|0)==(g|0);if(f?(k[o>>2]|0)<(k[h+-16>>2]|0):0){h=i;continue}if((g|0)<(m|0))break;if(f?(F=k[h+-16>>2]|0,G=k[o>>2]|0,(F|0)<(G|0)):0){a=F;e=G;t=164}else t=159;do if((t|0)==159){e=k[n>>2]|0;a=k[h+-12>>2]|0;if((e|0)<(a|0)){h=i;continue k}if((e|0)==(a|0)?(k[p>>2]|0)<(k[h+-8>>2]|0):0){h=i;continue k}if(!f){t=167;break}a=k[h+-16>>2]|0;e=k[o>>2]|0;t=164}while(0);do if((t|0)==164){t=0;if((a|0)<(e|0))break k;if((e|0)<(a|0))break;a=k[h+-12>>2]|0;e=k[n>>2]|0;t=167}while(0);do if((t|0)==167){if((a|0)<(e|0))break k;if((a|0)!=(e|0))break;if((k[h+-8>>2]|0)<(k[p>>2]|0))break k}while(0);if((k[q>>2]|0)<(k[h+-4>>2]|0))h=i;else break}if(j>>>0>=i>>>0){X=j;continue b}m=j+4|0;r=k[m>>2]|0;k[l>>2]=g;t=h+-16|0;k[m>>2]=k[t>>2];k[i>>2]=b;k[t>>2]=r;t=j+8|0;r=k[t>>2]|0;m=j+12|0;a=k[m>>2]|0;s=h+-12|0;k[t>>2]=k[s>>2];t=h+-8|0;k[m>>2]=k[t>>2];k[s>>2]=r;k[t>>2]=a;t=j+16|0;a=h+-4|0;h=k[t>>2]|0;k[t>>2]=k[a>>2];k[a>>2]=h;a=j+20|0;h=i}}while(0);b=X+20|0;l:do if(b>>>0<e>>>0)while(1){m=j+12|0;p=k[j>>2]|0;n=j+4|0;l=j+8|0;o=j+16|0;r=b;m:while(1){q=k[r>>2]|0;do if((q|0)>=(p|0)){b=(q|0)==(p|0);if(b?(k[r+4>>2]|0)<(k[n>>2]|0):0)break;if((p|0)<(q|0))break m;if(b?(J=k[n>>2]|0,K=k[r+4>>2]|0,(J|0)<(K|0)):0){b=J;f=K;t=207}else{g=k[r+8>>2]|0;f=k[l>>2]|0;if((g|0)<(f|0))break;if((g|0)==(f|0)?(k[r+12>>2]|0)<(k[m>>2]|0):0)break;if(b){b=k[n>>2]|0;f=k[r+4>>2]|0;t=207}else{b=g;t=210}}if((t|0)==207){t=0;if((b|0)<(f|0))break m;if((f|0)>=(b|0)){f=k[l>>2]|0;b=k[r+8>>2]|0;t=210}}if((t|0)==210){if((f|0)<(b|0))break m;if((f|0)==(b|0)?(k[m>>2]|0)<(k[r+12>>2]|0):0)break m}if((k[r+16>>2]|0)>=(k[o>>2]|0))break m}while(0);r=r+20|0}f=e+-20|0;b=k[f>>2]|0;n:do if((b|0)<(p|0)){h=f;g=f}else while(1){g=(b|0)==(p|0);if(g?(k[e+-16>>2]|0)<(k[n>>2]|0):0){h=f;g=f;b=p;break n}do if((p|0)>=(b|0)){if(g?(L=k[n>>2]|0,M=k[e+-16>>2]|0,(L|0)<(M|0)):0){g=L;h=M;t=225}else{i=k[e+-12>>2]|0;h=k[l>>2]|0;if((i|0)<(h|0)){h=f;g=f;break n}if((i|0)==(h|0)?(k[e+-8>>2]|0)<(k[m>>2]|0):0){h=f;g=f;break n}if(g){g=k[n>>2]|0;h=k[e+-16>>2]|0;t=225}else{g=i;t=228}}if((t|0)==225){t=0;if((g|0)<(h|0))break;if((h|0)>=(g|0)){h=k[l>>2]|0;g=k[e+-12>>2]|0;t=228}}if((t|0)==228){if((h|0)<(g|0))break;if((h|0)==(g|0)?(k[m>>2]|0)<(k[e+-8>>2]|0):0)break}if((k[e+-4>>2]|0)<(k[o>>2]|0)){h=f;g=f;break n}}while(0);e=f+-20|0;b=k[e>>2]|0;if((b|0)<(p|0)){h=e;g=e;e=f;break}else{t=f;f=e;e=t}}while(0);if(r>>>0>h>>>0){b=r;break l}o=r+4|0;p=k[o>>2]|0;k[r>>2]=b;t=e+-16|0;k[o>>2]=k[t>>2];k[g>>2]=q;k[t>>2]=p;t=r+8|0;p=k[t>>2]|0;o=r+12|0;b=k[o>>2]|0;q=e+-12|0;k[t>>2]=k[q>>2];t=e+-8|0;k[o>>2]=k[t>>2];k[q>>2]=p;k[t>>2]=b;t=r+16|0;b=e+-4|0;e=k[t>>2]|0;k[t>>2]=k[b>>2];k[b>>2]=e;b=r+20|0;e=h;j=(j|0)==(r|0)?h:j;a=a+1|0}while(0);o:do if((b|0)!=(j|0)){h=k[j>>2]|0;i=k[b>>2]|0;do if((h|0)>=(i|0)){e=(h|0)==(i|0);if(e?(k[j+4>>2]|0)<(k[b+4>>2]|0):0)break;if((i|0)<(h|0))break o;if(e?(N=k[b+4>>2]|0,O=k[j+4>>2]|0,(N|0)<(O|0)):0){e=N;f=O;t=247}else{g=k[j+8>>2]|0;f=k[b+8>>2]|0;if((g|0)<(f|0))break;if((g|0)==(f|0)?(k[j+12>>2]|0)<(k[b+12>>2]|0):0)break;if(e){e=k[b+4>>2]|0;f=k[j+4>>2]|0;t=247}else{e=g;t=250}}if((t|0)==247){t=0;if((e|0)<(f|0))break o;if((f|0)>=(e|0)){f=k[b+8>>2]|0;e=k[j+8>>2]|0;t=250}}if((t|0)==250){if((f|0)<(e|0))break o;if((f|0)==(e|0)?(k[b+12>>2]|0)<(k[j+12>>2]|0):0)break o}if((k[j+16>>2]|0)>=(k[b+16>>2]|0))break o}while(0);o=b+4|0;p=k[o>>2]|0;k[b>>2]=h;q=j+4|0;k[o>>2]=k[q>>2];k[j>>2]=i;k[q>>2]=p;q=b+8|0;p=k[q>>2]|0;o=b+12|0;t=k[o>>2]|0;r=j+8|0;k[q>>2]=k[r>>2];q=j+12|0;k[o>>2]=k[q>>2];k[r>>2]=p;k[q>>2]=t;q=b+16|0;t=j+16|0;r=k[q>>2]|0;k[q>>2]=k[t>>2];k[t>>2]=r;a=a+1|0}while(0);if(!a){e=cc(X,b)|0;a=b+20|0;if(cc(a,T)|0){t=257;break}if(e){X=a;continue}}t=b;if((t-s|0)>=(u-t|0)){t=261;break}Qb(X,b);X=b+20|0}if((t|0)==257)if(e){t=262;break}else{a=X;T=b;continue}else if((t|0)==261){Qb(b+20|0,T);a=X;T=b;continue}}if((t|0)==4){f=T+-20|0;b=k[f>>2]|0;e=k[X>>2]|0;do if((b|0)>=(e|0)){a=(b|0)==(e|0);if(a?(k[Q>>2]|0)<(k[X+4>>2]|0):0)break;if((e|0)<(b|0))return;if(a?(d=k[X+4>>2]|0,c=k[Q>>2]|0,(d|0)<(c|0)):0)t=15;else{d=k[P>>2]|0;c=k[X+8>>2]|0;if((d|0)<(c|0))break;if((d|0)==(c|0)?(k[S>>2]|0)<(k[X+12>>2]|0):0)break;if(a){d=k[X+4>>2]|0;c=k[Q>>2]|0;t=15}else t=18}if((t|0)==15){if((d|0)<(c|0))return;if((c|0)>=(d|0)){c=k[X+8>>2]|0;d=k[P>>2]|0;t=18}}if((t|0)==18){if((c|0)<(d|0))return;if((c|0)==(d|0)?(k[X+12>>2]|0)<(k[S>>2]|0):0)return}if((k[R>>2]|0)>=(k[X+16>>2]|0))return}while(0);V=X+4|0;T=k[V>>2]|0;k[X>>2]=b;k[V>>2]=k[Q>>2];k[f>>2]=e;k[Q>>2]=T;T=X+8|0;V=k[T>>2]|0;U=X+12|0;W=k[U>>2]|0;k[T>>2]=k[P>>2];k[U>>2]=k[S>>2];k[P>>2]=V;k[S>>2]=W;W=X+16|0;X=k[W>>2]|0;k[W>>2]=k[R>>2];k[R>>2]=X;return}else if((t|0)==23){$b(X,X+20|0,v)|0;return}else if((t|0)==24){ac(X,X+20|0,X+40|0,v)|0;return}else if((t|0)==25){bc(X,X+20|0,X+40|0,X+60|0,v)|0;return}else if((t|0)==27){d=X+40|0;$b(X,X+20|0,d)|0;c=X+60|0;if((c|0)==(T|0))return;else p=c;while(1){o=k[p>>2]|0;e=k[d>>2]|0;do if((o|0)>=(e|0)){b=(o|0)==(e|0);if(b?(k[p+4>>2]|0)<(k[d+4>>2]|0):0){t=46;break}if((e|0)>=(o|0)){if(b?(V=k[d+4>>2]|0,W=k[p+4>>2]|0,(V|0)<(W|0)):0){c=V;a=W;t=39}else{c=k[p+8>>2]|0;a=k[d+8>>2]|0;if((c|0)<(a|0)){t=46;break}if((c|0)==(a|0)?(k[p+12>>2]|0)<(k[d+12>>2]|0):0){t=46;break}if(b){c=k[d+4>>2]|0;a=k[p+4>>2]|0;t=39}else t=42}if((t|0)==39){t=0;if((c|0)<(a|0))break;if((a|0)>=(c|0)){a=k[d+8>>2]|0;c=k[p+8>>2]|0;t=42}}if((t|0)==42){t=0;if((a|0)<(c|0))break;if((a|0)==(c|0)?(k[d+12>>2]|0)<(k[p+12>>2]|0):0)break}if((k[p+16>>2]|0)<(k[d+16>>2]|0))t=46}}else t=46;while(0);if((t|0)==46){t=0;R=p+4|0;j=k[R>>2]|0;a=p+8|0;l=k[a>>2]|0;c=p+12|0;m=k[c>>2]|0;S=p+16|0;n=k[S>>2]|0;k[p>>2]=e;b=d+4|0;k[R>>2]=k[b>>2];e=d+8|0;k[a>>2]=k[e>>2];a=d+12|0;k[c>>2]=k[a>>2];c=d+16|0;k[S>>2]=k[c>>2];p:do if((d|0)!=(X|0)){i=d;h=e;g=b;while(1){d=i+-20|0;f=k[d>>2]|0;do if((o|0)>=(f|0)){e=(o|0)==(f|0);if(e?(j|0)<(k[i+-16>>2]|0):0)break;if((f|0)<(o|0)){d=i;b=g;e=h;break p}if(e?(U=k[i+-16>>2]|0,(U|0)<(j|0)):0){b=U;t=58}else{b=k[i+-12>>2]|0;if((l|0)<(b|0))break;if((l|0)==(b|0)?(m|0)<(k[i+-8>>2]|0):0)break;if(e){b=k[i+-16>>2]|0;t=58}else t=61}if((t|0)==58){t=0;if((b|0)<(j|0)){d=i;b=g;e=h;break p}if((j|0)>=(b|0)){b=k[i+-12>>2]|0;t=61}}if((t|0)==61){t=0;if((b|0)<(l|0)){d=i;b=g;e=h;break p}if((b|0)==(l|0)?(k[i+-8>>2]|0)<(m|0):0){d=i;b=g;e=h;break p}}if((n|0)>=(k[i+-4>>2]|0)){d=i;b=g;e=h;break p}}while(0);k[i>>2]=f;b=i+-16|0;k[i+4>>2]=k[b>>2];e=i+-12|0;k[i+8>>2]=k[e>>2];a=i+-8|0;k[i+12>>2]=k[a>>2];c=i+-4|0;k[i+16>>2]=k[c>>2];if((d|0)==(X|0))break;else{i=d;h=e;g=b}}}while(0);k[d>>2]=o;k[b>>2]=j;k[e>>2]=l;k[a>>2]=m;k[c>>2]=n}c=p+20|0;if((c|0)==(T|0))break;else{d=p;p=c}}return}else if((t|0)==262)return}function Rb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0;m=a+4|0;e=k[m>>2]|0;n=k[a>>2]|0;j=n;l=e-j>>3;i=l+1|0;if(i>>>0>536870911)xa(1340,1363,303,1438);o=a+8|0;c=(k[o>>2]|0)-j|0;if(c>>3>>>0<268435455){c=c>>2;c=c>>>0<i>>>0?i:c;if(!c){f=0;d=0}else g=5}else{c=536870911;g=5}if((g|0)==5){f=c<<3;f=(f|0)==0?1:f;d=_d(f)|0;a:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(f)|0;if(d)break a}a=ya(4)|0;k[a>>2]=128;La(a|0,8,1)}while(0);f=c}c=d+(l<<3)|0;h=d+(f<<3)|0;k[c>>2]=k[b>>2];k[d+(l<<3)+4>>2]=k[b+4>>2];g=d+(i<<3)|0;if((e|0)!=(n|0)){f=e+-8|0;while(1){b=e;e=e+-8|0;k[c+-8>>2]=k[e>>2];k[c+-4>>2]=k[b+-4>>2];if((e|0)==(n|0))break;else c=c+-8|0}c=d+(l+~((f-j|0)>>>3)<<3)|0}k[a>>2]=c;k[m>>2]=g;k[o>>2]=h;if(!n)return;$d(n);return}function Sb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;A=k[a>>2]|0;D=k[a+8>>2]|0;E=k[a+4>>2]|0;F=k[a+12>>2]|0;i=(A|0)>(D|0);e=i?D:A;i=i?A:D;g=(E|0)>(F|0);c=g?F:E;g=g?E:F;z=k[b>>2]|0;B=k[b+8>>2]|0;y=k[b+4>>2]|0;C=k[b+12>>2]|0;j=(z|0)>(B|0);f=j?B:z;j=j?z:B;h=(y|0)>(C|0);d=h?C:y;h=h?y:C;l=(i|0)>(f|0)&(e|0)<(j|0);if(l?(c|0)<(h|0)&(g|0)>(d|0):0){h=(A|0)==(z|0);if(h&(E|0)==(y|0)){if((!((D|0)==(B|0)&(F|0)==(C|0))?(p=((E|0)<0)<<31>>31,a=be(C|0,((C|0)<0)<<31>>31|0,E|0,p|0)|0,C=L,p=be(F|0,((F|0)<0)<<31>>31|0,E|0,p|0)|0,o=L,E=((A|0)<0)<<31>>31,r=be(B|0,((B|0)<0)<<31>>31|0,A|0,E|0)|0,B=L,D=be(D|0,((D|0)<0)<<31>>31|0,A|0,E|0)|0,E=L,m=(B|0)<0,F=be(0,0,r|0,B|0)|0,B=m?L:B,n=(o|0)<0,q=be(0,0,p|0,o|0)|0,o=ne((m?F:r)|0,B|0,(n?q:p)|0,(n?L:o)|0)|0,p=L,q=(E|0)<0,B=be(0,0,D|0,E|0)|0,E=q?L:E,r=(C|0)<0,F=be(0,0,a|0,C|0)|0,F=ne((q?B:D)|0,E|0,(r?F:a)|0,(r?L:C)|0)|0,(o|0)==(F|0)&(p|0)==(L|0)):0)?(F=ha(q?-1:1,r?-1:1)|0,(o|0)==0&(p|0)==0|(ha(m?-1:1,n?-1:1)|0)==(F|0)):0){F=1;return F|0}F=0;return F|0}g=(A|0)==(B|0);f=(D|0)==(z|0);c=f&(F|0)==(y|0);if(g&(E|0)==(C|0)){if((!c?(v=((E|0)<0)<<31>>31,B=be(y|0,((y|0)<0)<<31>>31|0,E|0,v|0)|0,C=L,v=be(F|0,((F|0)<0)<<31>>31|0,E|0,v|0)|0,u=L,E=((A|0)<0)<<31>>31,x=be(z|0,((z|0)<0)<<31>>31|0,A|0,E|0)|0,t=L,D=be(D|0,((D|0)<0)<<31>>31|0,A|0,E|0)|0,E=L,s=(t|0)<0,F=be(0,0,x|0,t|0)|0,A=s?L:t,t=(u|0)<0,w=be(0,0,v|0,u|0)|0,u=ne((s?F:x)|0,A|0,(t?w:v)|0,(t?L:u)|0)|0,v=L,w=(E|0)<0,A=be(0,0,D|0,E|0)|0,E=w?L:E,x=(C|0)<0,F=be(0,0,B|0,C|0)|0,F=ne((w?A:D)|0,E|0,(x?F:B)|0,(x?L:C)|0)|0,(u|0)==(F|0)&(v|0)==(L|0)):0)?(F=ha(w?-1:1,x?-1:1)|0,(u|0)==0&(v|0)==0|(ha(s?-1:1,t?-1:1)|0)==(F|0)):0){F=1;return F|0}F=0;return F|0}if(c){f=((F|0)<0)<<31>>31;a=be(C|0,((C|0)<0)<<31>>31|0,F|0,f|0)|0;C=L;f=be(E|0,((E|0)<0)<<31>>31|0,F|0,f|0)|0;e=L;E=((D|0)<0)<<31>>31;h=be(B|0,((B|0)<0)<<31>>31|0,D|0,E|0)|0;B=L;D=be(A|0,((A|0)<0)<<31>>31|0,D|0,E|0)|0;E=L;c=(B|0)<0;F=be(0,0,h|0,B|0)|0;B=c?L:B;d=(e|0)<0;g=be(0,0,f|0,e|0)|0;e=ne((c?F:h)|0,B|0,(d?g:f)|0,(d?L:e)|0)|0;f=L;g=(E|0)<0;B=be(0,0,D|0,E|0)|0;E=g?L:E;h=(C|0)<0;F=be(0,0,a|0,C|0)|0;F=ne((g?B:D)|0,E|0,(h?F:a)|0,(h?L:C)|0)|0;if((e|0)==(F|0)&(f|0)==(L|0)?(F=ha(g?-1:1,h?-1:1)|0,(e|0)==0&(f|0)==0|(ha(c?-1:1,d?-1:1)|0)==(F|0)):0){F=1;return F|0}F=0;return F|0}e=(D|0)==(B|0);if(e&(F|0)==(C|0)){f=((F|0)<0)<<31>>31;B=be(y|0,((y|0)<0)<<31>>31|0,F|0,f|0)|0;C=L;f=be(E|0,((E|0)<0)<<31>>31|0,F|0,f|0)|0;e=L;E=((D|0)<0)<<31>>31;h=be(z|0,((z|0)<0)<<31>>31|0,D|0,E|0)|0;d=L;D=be(A|0,((A|0)<0)<<31>>31|0,D|0,E|0)|0;E=L;c=(d|0)<0;F=be(0,0,h|0,d|0)|0;A=c?L:d;d=(e|0)<0;g=be(0,0,f|0,e|0)|0;e=ne((c?F:h)|0,A|0,(d?g:f)|0,(d?L:e)|0)|0;f=L;g=(E|0)<0;A=be(0,0,D|0,E|0)|0;E=g?L:E;h=(C|0)<0;F=be(0,0,B|0,C|0)|0;F=ne((g?A:D)|0,E|0,(h?F:B)|0,(h?L:C)|0)|0;if((e|0)==(F|0)&(f|0)==(L|0)?(F=ha(g?-1:1,h?-1:1)|0,(e|0)==0&(f|0)==0|(ha(c?-1:1,d?-1:1)|0)==(F|0)):0){F=1;return F|0}F=0;return F|0}d=_b(A,E,b)|0;do if(!d){if((z|0)>=(B|0)?!((z|0)==(B|0)&(y|0)<(C|0)):0){if(!((A|0)<(z|0)|h&(E|0)<(y|0)))break;if((B|0)<(A|0)|g&(C|0)<(E|0))c=1;else break;return c|0}if((A|0)<(B|0)|g&(E|0)<(C|0)?(z|0)<(A|0)|h&(y|0)<(E|0):0){F=1;return F|0}}while(0);c=_b(D,F,b)|0;do if(!c){if((z|0)>=(B|0)?!((z|0)==(B|0)&(y|0)<(C|0)):0){if(!((D|0)<(z|0)|f&(F|0)<(y|0)))break;if((B|0)<(D|0)|e&(C|0)<(F|0))c=1;else break;return c|0}if((D|0)<(B|0)|e&(F|0)<(C|0)?(z|0)<(D|0)|f&(y|0)<(F|0):0){F=1;return F|0}}while(0);if((d|0)!=0&(d|0)==(c|0)){F=0;return F|0}d=_b(z,y,a)|0;do if(!d){if((A|0)>=(D|0)?!((A|0)==(D|0)&(E|0)<(F|0)):0){if(!((z|0)<(A|0)|h&(y|0)<(E|0)))break;if((D|0)<(z|0)|f&(F|0)<(y|0))c=1;else break;return c|0}if((z|0)<(D|0)|f&(y|0)<(F|0)?(A|0)<(z|0)|h&(E|0)<(y|0):0){F=1;return F|0}}while(0);c=_b(B,C,a)|0;do if(!c){if((A|0)>=(D|0)?!((A|0)==(D|0)&(E|0)<(F|0)):0){if(!((B|0)<(A|0)|g&(C|0)<(E|0)))break;if((D|0)<(B|0)|e&(F|0)<(C|0))c=1;else break;return c|0}if((B|0)<(D|0)|e&(C|0)<(F|0)?(A|0)<(B|0)|g&(E|0)<(C|0):0){F=1;return F|0}}while(0);F=(d|0)!=(c|0);return F|0}if((A|0)==(D|0)&(z|0)==(B|0)&(A|0)==(z|0))if((g|0)>(d|0)&(c|0)<(h|0))return (g|0)!=(h|0)|(c|0)!=(d|0)|0;else{F=0;return F|0}if(!((E|0)==(F|0)&(y|0)==(C|0)&(E|0)==(y|0)&l)){F=0;return F|0}F=(i|0)!=(j|0)|(e|0)!=(f|0);return F|0}function Tb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;t=r;r=r+32|0;q=t+16|0;s=t;p=k[a>>2]|0;m=k[b+8>>2]|0;n=(p|0)==(m|0);if(n?(k[a+4>>2]|0)==(k[b+12>>2]|0):0){s=1;r=t;return s|0}o=k[b>>2]|0;l=(p|0)==(o|0);if(l){a=k[a+4>>2]|0;c=k[b+4>>2]|0;if((a|0)==(c|0)){s=1;r=t;return s|0}else j=a}else{c=k[b+4>>2]|0;j=k[a+4>>2]|0}a=k[b+12>>2]|0;h=(o|0)>(m|0);i=(c|0)>(a|0);if(!(((i?a:c)|0)<=(j|0)&((((h?m:o)|0)>(p|0)|((h?o:m)|0)<(p|0)|((i?c:a)|0)<(j|0))^1))){s=0;r=t;return s|0}if((o|0)==(m|0)|(c|0)==(a|0)){s=1;r=t;return s|0}g=((j|0)<0)<<31>>31;v=be(a|0,((a|0)<0)<<31>>31|0,j|0,g|0)|0;u=L;g=be(c|0,((c|0)<0)<<31>>31|0,j|0,g|0)|0;f=L;y=((p|0)<0)<<31>>31;i=be(m|0,((m|0)<0)<<31>>31|0,p|0,y|0)|0;z=L;y=be(o|0,((o|0)<0)<<31>>31|0,p|0,y|0)|0;x=L;d=(z|0)<0;w=be(0,0,i|0,z|0)|0;z=d?L:z;e=(f|0)<0;h=be(0,0,g|0,f|0)|0;f=ne((d?w:i)|0,z|0,(e?h:g)|0,(e?L:f)|0)|0;g=L;h=(x|0)<0;z=be(0,0,y|0,x|0)|0;x=h?L:x;i=(u|0)<0;w=be(0,0,v|0,u|0)|0;u=ne((h?z:y)|0,x|0,(i?w:v)|0,(i?L:u)|0)|0;do if((f|0)==(u|0)&(g|0)==(L|0)?(z=ha(h?-1:1,i?-1:1)|0,(f|0)==0&(g|0)==0|(ha(d?-1:1,e?-1:1)|0)==(z|0)):0)if((o|0)<(m|0)){if(!((p|0)<(m|0)|n&(j|0)<(a|0)))break;if((o|0)<(p|0)|l&(c|0)<(j|0))c=1;else break;r=t;return c|0}else{if(!((p|0)<(o|0)|l&(j|0)<(c|0)))break;if((m|0)<(p|0)|n&(a|0)<(j|0))c=1;else break;r=t;return c|0}while(0);c=j+1|0;a=p+1|0;k[q>>2]=p;k[q+4>>2]=j;k[q+8>>2]=a;k[q+12>>2]=c;if(Sb(q,b)|0?(_b(a,c,b)|0)!=0:0){z=1;r=t;return z|0}k[s>>2]=p;k[s+4>>2]=c;k[s+8>>2]=a;k[s+12>>2]=j;if((Sb(s,b)|0?(_b(p,c,b)|0)!=0:0)?(_b(a,j,b)|0)!=0:0){z=1;r=t;return z|0}z=0;r=t;return z|0}function Ub(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;m=r;r=r+16|0;j=m;d=b+4|0;e=k[d>>2]|0;do if(e){g=k[c>>2]|0;h=k[c+4>>2]|0;a:while(1){d=k[e+16>>2]|0;do if((g|0)>=(d|0)){f=(g|0)==(d|0);if(f?(h|0)<(k[e+20>>2]|0):0){l=6;break}if((d|0)>=(g|0)){if(!f){l=14;break a}if((k[e+20>>2]|0)>=(h|0)){l=14;break a}}f=e+4|0;d=k[f>>2]|0;if(!d){l=13;break a}}else l=6;while(0);if((l|0)==6){l=0;d=k[e>>2]|0;if(!d){l=7;break}}e=d}if((l|0)==7){k[j>>2]=e;f=e;g=e;break}else if((l|0)==13){k[j>>2]=e;g=e;break}else if((l|0)==14){k[j>>2]=e;f=j;g=e;break}}else{k[j>>2]=d;f=d;g=d}while(0);d=k[f>>2]|0;if(d){c=0;b=d;k[a>>2]=b;b=a+4|0;i[b>>0]=c;r=m;return}d=_d(24)|0;b:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(24)|0;if(d){e=d;break b}}m=ya(4)|0;k[m>>2]=128;La(m|0,8,1)}else e=d;while(0);k[e+16>>2]=k[c>>2];k[e+20>>2]=k[c+4>>2];k[e>>2]=0;k[e+4>>2]=0;k[e+8>>2]=g;k[f>>2]=e;d=k[k[b>>2]>>2]|0;if(!d)d=e;else{k[b>>2]=d;d=k[f>>2]|0}Nb(k[b+4>>2]|0,d);c=b+8|0;k[c>>2]=(k[c>>2]|0)+1;c=1;b=e;k[a>>2]=b;b=a+4|0;i[b>>0]=c;r=m;return}function Vb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;t=b;a:while(1){m=t;n=t+-8|0;o=t+-16|0;s=t+-4|0;y=a;b:while(1){l=y;a=m-l|0;b=a>>3;switch(b|0){case 2:{x=4;break a}case 3:{x=9;break a}case 4:{x=10;break a}case 5:{x=11;break a}case 1:case 0:{x=88;break a}default:{}}if((a|0)<56){x=13;break a}c=(b|0)/2|0;g=y+(c<<3)|0;if((a|0)>7992){a=(b|0)/4|0;a=Yb(y,y+(a<<3)|0,g,y+(a+c<<3)|0,n)|0}else a=Wb(y,g,n)|0;h=k[y>>2]|0;f=k[g>>2]|0;c:do if((h|0)<(f|0))c=n;else{if((h|0)==(f|0)?(k[y+4>>2]|0)<(k[y+(c<<3)+4>>2]|0):0){c=n;break}d:do if((y|0)!=(o|0)){e=y+(c<<3)+4|0;c=o;d=n;while(1){b=k[c>>2]|0;if((b|0)<(f|0)){x=58;break}if((b|0)==(f|0)?(p=d+-4|0,(k[p>>2]|0)<(k[e>>2]|0)):0){d=p;b=f;break}b=c+-8|0;if((y|0)==(b|0))break d;else{d=c;c=b}}if((x|0)==58){x=0;d=d+-4|0}i=y+4|0;j=k[i>>2]|0;k[y>>2]=b;k[i>>2]=k[d>>2];k[c>>2]=h;k[d>>2]=j;a=a+1|0;break c}while(0);a=y+8|0;f=k[n>>2]|0;do if((h|0)>=(f|0)){if((h|0)==(f|0)?(k[y+4>>2]|0)<(k[s>>2]|0):0)break;if((a|0)==(n|0)){x=88;break a}c=y+4|0;e=y;while(1){d=e+8|0;b=k[d>>2]|0;if((h|0)<(b|0)){x=40;break}if((h|0)==(b|0)?(q=e+12|0,r=k[q>>2]|0,(k[c>>2]|0)<(r|0)):0){c=q;a=h;b=r;break}b=a+8|0;if((b|0)==(n|0)){x=88;break a}else{e=a;a=b}}if((x|0)==40){x=0;l=e+12|0;c=l;a=b;b=k[l>>2]|0}k[d>>2]=f;k[c>>2]=k[s>>2];k[n>>2]=a;k[s>>2]=b;a=e+16|0}while(0);if((a|0)==(n|0)){x=88;break a}h=y+4|0;c=n;while(1){g=k[y>>2]|0;b=k[a>>2]|0;e:do if((g|0)<(b|0)){f=a;e=a}else while(1){if((g|0)==(b|0)?(k[h>>2]|0)<(k[a+4>>2]|0):0){f=a;b=g;e=a;break e}a=a+8|0;b=k[a>>2]|0;if((g|0)<(b|0)){f=a;e=a;break}}while(0);while(1){d=c+-8|0;a=k[d>>2]|0;if((g|0)<(a|0)){c=d;continue}if((g|0)!=(a|0))break;if((k[h>>2]|0)<(k[c+-4>>2]|0))c=d;else{a=g;break}}if(e>>>0>=d>>>0){y=e;continue b}j=e+4|0;l=k[j>>2]|0;k[f>>2]=a;a=c+-4|0;k[j>>2]=k[a>>2];k[d>>2]=b;k[a>>2]=l;a=e+8|0;c=d}}while(0);b=y+8|0;f:do if(b>>>0<c>>>0)while(1){i=k[g>>2]|0;f=g+4|0;j=b;while(1){b=k[j>>2]|0;if((b|0)>=(i|0)){if((b|0)!=(i|0))break;if((k[j+4>>2]|0)>=(k[f>>2]|0)){b=i;break}}j=j+8|0}d=c+-8|0;e=k[d>>2]|0;g:do if((e|0)<(i|0)){h=d;f=d}else while(1){if((e|0)==(i|0)?(k[c+-4>>2]|0)<(k[f>>2]|0):0){h=d;f=d;e=i;break g}c=d+-8|0;e=k[c>>2]|0;if((e|0)<(i|0)){h=c;f=c;c=d;break}else{h=d;d=c;c=h}}while(0);if(j>>>0>h>>>0){h=j;break f}d=j+4|0;i=k[d>>2]|0;k[j>>2]=e;c=c+-4|0;k[d>>2]=k[c>>2];k[f>>2]=b;k[c>>2]=i;b=j+8|0;c=h;g=(g|0)==(j|0)?h:g;a=a+1|0}else h=b;while(0);do if((h|0)!=(g|0)){e=k[g>>2]|0;f=k[h>>2]|0;if((e|0)>=(f|0)){if((e|0)!=(f|0))break;b=g+4|0;d=h+4|0;c=k[d>>2]|0;if((k[b>>2]|0)>=(c|0))break}else{c=h+4|0;b=g+4|0;d=c;c=k[c>>2]|0}k[h>>2]=e;k[d>>2]=k[b>>2];k[g>>2]=f;k[b>>2]=c;a=a+1|0}while(0);if(!a){a=Zb(y,h)|0;b=h+8|0;if(Zb(b,t)|0){x=83;break}if(a){y=b;continue}}j=h;if((j-l|0)>=(m-j|0)){x=87;break}Vb(y,h);y=h+8|0}if((x|0)==83){x=0;if(a){x=88;break}else{a=y;t=h;continue}}else if((x|0)==87){x=0;Vb(h+8|0,t);a=y;t=h;continue}}if((x|0)==4){c=t+-8|0;d=k[c>>2]|0;e=k[y>>2]|0;if((d|0)>=(e|0)){if((d|0)!=(e|0))return;a=y+4|0;b=k[a>>2]|0;if((k[s>>2]|0)>=(b|0))return}else{b=y+4|0;a=b;b=k[b>>2]|0}k[y>>2]=d;k[a>>2]=k[s>>2];k[c>>2]=e;k[s>>2]=b;return}else if((x|0)==9){Wb(y,y+8|0,n)|0;return}else if((x|0)==10){Xb(y,y+8|0,y+16|0,n)|0;return}else if((x|0)==11){Yb(y,y+8|0,y+16|0,y+24|0,n)|0;return}else if((x|0)==13){b=y+16|0;Wb(y,y+8|0,b)|0;a=y+24|0;if((a|0)==(t|0))return;while(1){h=k[a>>2]|0;e=k[b>>2]|0;if((h|0)>=(e|0)){if((h|0)==(e|0)?(u=a+4|0,v=k[u>>2]|0,w=b+4|0,(v|0)<(k[w>>2]|0)):0){d=u;c=w;i=v;x=18}}else{i=a+4|0;d=i;c=b+4|0;i=k[i>>2]|0;x=18}if((x|0)==18){x=0;k[a>>2]=e;k[d>>2]=k[c>>2];h:do if((b|0)!=(y|0)){f=b;while(1){b=f+-8|0;g=k[b>>2]|0;if((h|0)>=(g|0)){if((h|0)!=(g|0)){b=f;break h}e=f+-4|0;d=k[e>>2]|0;if((i|0)<(d|0))c=e;else{b=f;break h}}else{d=f+-4|0;c=d;d=k[d>>2]|0}k[f>>2]=g;k[f+4>>2]=d;if((b|0)==(y|0))break;else f=b}}while(0);k[b>>2]=h;k[c>>2]=i}b=a+8|0;if((b|0)==(t|0))break;else{s=a;a=b;b=s}}return}else if((x|0)==88)return}function Wb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;f=k[b>>2]|0;i=k[a>>2]|0;if((f|0)>=(i|0))if((f|0)==(i|0))d=(k[b+4>>2]|0)<(k[a+4>>2]|0);else d=0;else d=1;g=k[c>>2]|0;if((g|0)>=(f|0))if((g|0)==(f|0))e=(k[c+4>>2]|0)<(k[b+4>>2]|0);else e=0;else e=1;if(!d){if(!e){b=0;return b|0}h=b+4|0;i=k[h>>2]|0;k[b>>2]=g;g=c+4|0;k[h>>2]=k[g>>2];k[c>>2]=f;k[g>>2]=i;f=k[b>>2]|0;g=k[a>>2]|0;if((f|0)>=(g|0)){if((f|0)!=(g|0)){b=1;return b|0}d=a+4|0;e=k[d>>2]|0;if((k[h>>2]|0)>=(e|0)){b=1;return b|0}}else{e=a+4|0;d=e;e=k[e>>2]|0}k[a>>2]=f;k[d>>2]=k[h>>2];k[b>>2]=g;k[h>>2]=e;b=2;return b|0}d=a+4|0;h=k[d>>2]|0;if(e){k[a>>2]=g;b=c+4|0;k[d>>2]=k[b>>2];k[c>>2]=i;k[b>>2]=h;b=1;return b|0}k[a>>2]=f;f=b+4|0;k[d>>2]=k[f>>2];k[b>>2]=i;k[f>>2]=h;e=k[c>>2]|0;if((e|0)>=(i|0)){if((e|0)!=(i|0)){b=1;return b|0}d=c+4|0;if((k[d>>2]|0)>=(h|0)){b=1;return b|0}}else d=c+4|0;k[b>>2]=e;k[f>>2]=k[d>>2];k[c>>2]=i;k[d>>2]=h;b=2;return b|0}function Xb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,l=0;l=Wb(a,b,c)|0;h=k[d>>2]|0;i=k[c>>2]|0;if((h|0)>=(i|0)){if((h|0)!=(i|0)){b=l;return b|0}f=d+4|0;g=c+4|0;e=k[g>>2]|0;if((k[f>>2]|0)<(e|0))j=g;else{b=l;return b|0}}else{e=c+4|0;f=d+4|0;j=e;e=k[e>>2]|0}k[c>>2]=h;k[j>>2]=k[f>>2];k[d>>2]=i;k[f>>2]=e;f=l+1|0;h=k[c>>2]|0;i=k[b>>2]|0;if((h|0)>=(i|0)){if((h|0)!=(i|0)){b=f;return b|0}g=b+4|0;e=k[g>>2]|0;if((k[j>>2]|0)<(e|0))d=g;else{b=f;return b|0}}else{e=b+4|0;d=e;e=k[e>>2]|0}k[b>>2]=h;k[d>>2]=k[j>>2];k[c>>2]=i;k[j>>2]=e;g=l+2|0;h=k[b>>2]|0;i=k[a>>2]|0;if((h|0)>=(i|0)){if((h|0)!=(i|0)){b=g;return b|0}f=a+4|0;e=k[f>>2]|0;if((k[d>>2]|0)>=(e|0)){b=g;return b|0}}else{e=a+4|0;f=e;e=k[e>>2]|0}k[a>>2]=h;k[f>>2]=k[d>>2];k[b>>2]=i;k[d>>2]=e;b=l+3|0;return b|0}function Yb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0;n=Xb(a,b,c,d)|0;i=k[e>>2]|0;j=k[d>>2]|0;if((i|0)>=(j|0)){if((i|0)!=(j|0)){b=n;return b|0}g=e+4|0;h=d+4|0;f=k[h>>2]|0;if((k[g>>2]|0)<(f|0))m=h;else{b=n;return b|0}}else{f=d+4|0;g=e+4|0;m=f;f=k[f>>2]|0}k[d>>2]=i;k[m>>2]=k[g>>2];k[e>>2]=j;k[g>>2]=f;g=n+1|0;i=k[d>>2]|0;j=k[c>>2]|0;if((i|0)>=(j|0)){if((i|0)!=(j|0)){b=g;return b|0}h=c+4|0;f=k[h>>2]|0;if((k[m>>2]|0)<(f|0))l=h;else{b=g;return b|0}}else{f=c+4|0;l=f;f=k[f>>2]|0}k[c>>2]=i;k[l>>2]=k[m>>2];k[d>>2]=j;k[m>>2]=f;g=n+2|0;i=k[c>>2]|0;j=k[b>>2]|0;if((i|0)>=(j|0)){if((i|0)!=(j|0)){b=g;return b|0}h=b+4|0;f=k[h>>2]|0;if((k[l>>2]|0)<(f|0))e=h;else{b=g;return b|0}}else{f=b+4|0;e=f;f=k[f>>2]|0}k[b>>2]=i;k[e>>2]=k[l>>2];k[c>>2]=j;k[l>>2]=f;h=n+3|0;i=k[b>>2]|0;j=k[a>>2]|0;if((i|0)>=(j|0)){if((i|0)!=(j|0)){b=h;return b|0}g=a+4|0;f=k[g>>2]|0;if((k[e>>2]|0)>=(f|0)){b=h;return b|0}}else{f=a+4|0;g=f;f=k[f>>2]|0}k[a>>2]=i;k[g>>2]=k[e>>2];k[b>>2]=j;k[e>>2]=f;b=n+4|0;return b|0}function Zb(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0;switch(b-a>>3|0){case 2:{f=b+-8|0;g=k[f>>2]|0;h=k[a>>2]|0;if((g|0)>=(h|0)){if((g|0)!=(h|0)){a=1;return a|0}e=b+-4|0;c=a+4|0;d=k[c>>2]|0;if((k[e>>2]|0)>=(d|0)){a=1;return a|0}}else{d=a+4|0;c=d;e=b+-4|0;d=k[d>>2]|0}k[a>>2]=g;k[c>>2]=k[e>>2];k[f>>2]=h;k[e>>2]=d;a=1;return a|0}case 3:{Wb(a,a+8|0,b+-8|0)|0;a=1;return a|0}case 4:{Xb(a,a+8|0,a+16|0,b+-8|0)|0;a=1;return a|0}case 5:{Yb(a,a+8|0,a+16|0,a+24|0,b+-8|0)|0;a=1;return a|0}case 1:case 0:{a=1;return a|0}default:{e=a+16|0;Wb(a,a+8|0,e)|0;d=a+24|0;if((d|0)==(b|0)){a=1;return a|0}else c=0;while(1){l=k[d>>2]|0;h=k[e>>2]|0;if((l|0)>=(h|0)){if((l|0)==(h|0)?(n=d+4|0,o=k[n>>2]|0,p=e+4|0,(o|0)<(k[p>>2]|0)):0){f=p;g=n;m=o;q=15}}else{m=d+4|0;f=e+4|0;g=m;m=k[m>>2]|0;q=15}if((q|0)==15){q=0;k[d>>2]=h;k[g>>2]=k[f>>2];a:do if((e|0)!=(a|0)){j=e;while(1){e=j+-8|0;i=k[e>>2]|0;if((l|0)>=(i|0)){if((l|0)!=(i|0)){e=j;break a}h=j+-4|0;g=k[h>>2]|0;if((m|0)<(g|0))f=h;else{e=j;break a}}else{g=j+-4|0;f=g;g=k[g>>2]|0}k[j>>2]=i;k[j+4>>2]=g;if((e|0)==(a|0))break;else j=e}}while(0);k[e>>2]=l;k[f>>2]=m;c=c+1|0;if((c|0)==8)break}e=d+8|0;if((e|0)==(b|0)){c=1;q=24;break}else{m=d;d=e;e=m}}if((q|0)==24)return c|0;a=(d+8|0)==(b|0);return a|0}}return 0}function _b(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;y=k[c>>2]|0;z=(y|0)==(a|0);if(z?(k[c+4>>2]|0)==(b|0):0){b=0;return b|0}A=k[c+8>>2]|0;B=(A|0)==(a|0);C=k[c+12>>2]|0;if(B&(C|0)==(b|0)){b=0;return b|0}i=((b|0)<0)<<31>>31;n=be(C|0,((C|0)<0)<<31>>31|0,b|0,i|0)|0;p=L;x=k[c+4>>2]|0;c=be(x|0,((x|0)<0)<<31>>31|0,b|0,i|0)|0;i=L;v=((a|0)<0)<<31>>31;q=be(A|0,((A|0)<0)<<31>>31|0,a|0,v|0)|0;s=L;v=be(y|0,((y|0)<0)<<31>>31|0,a|0,v|0)|0;w=L;u=(s|0)<0;r=be(0,0,q|0,s|0)|0;t=L;d=(i|0)<0;e=be(0,0,c|0,i|0)|0;j=L;f=ne((u?r:q)|0,(u?t:s)|0,(d?e:c)|0,(d?j:i)|0)|0;g=L;l=(w|0)<0;h=be(0,0,v|0,w|0)|0;v=l?h:v;w=l?L:w;h=(p|0)<0;m=be(0,0,n|0,p|0)|0;o=L;D=ne(v|0,w|0,(h?m:n)|0,(h?o:p)|0)|0;if((f|0)==(D|0)&(g|0)==(L|0)?(D=ha(l?-1:1,h?-1:1)|0,(f|0)==0&(g|0)==0|(ha(u?-1:1,d?-1:1)|0)==(D|0)):0){D=0;return D|0}h=l?e:c;g=l?j:i;do if(l|z^1){f=u?m:n;e=u?o:p;d=u?r:q;c=u?t:s;if(!(u|B^1)){c=(y|0)!=(a|0);break}u=(c|0)<0;s=be(0,0,d|0,c|0)|0;t=u?L:c;D=(g|0)<0;c=be(0,0,h|0,g|0)|0;g=ne((u?s:d)|0,t|0,(D?c:h)|0,(D?L:g)|0)|0;h=L;c=(e|0)<0;d=be(0,0,f|0,e|0)|0;e=ne((c?d:f)|0,(c?L:e)|0,v|0,w|0)|0;f=L;d=ha(u?-1:1,D?-1:1)|0;c=ha(c?-1:1,(w|0)<0?-1:1)|0;if((d|0)>=(c|0))if((c|0)>=(d|0))if((d|0)==-1){c=f>>>0<h>>>0|(f|0)==(h|0)&e>>>0<g>>>0;break}else{c=h>>>0<f>>>0|(h|0)==(f|0)&g>>>0<e>>>0;break}else c=0;else c=1}else c=0;while(0);d=c?-1:1;if((A|0)<(y|0))c=1;else c=(A|0)==(y|0)&(C|0)<(x|0);d=c?0-d|0:d;if((y|0)>=(A|0)?!((y|0)==(A|0)&(x|0)<(C|0)):0)if((y|0)>(a|0)|z&(x|0)>(b|0))if((A|0)<(a|0))c=1;else c=B&(C|0)<(b|0);else c=0;else if((A|0)>(a|0)|B&(C|0)>(b|0))if((y|0)<(a|0))c=1;else c=z&(x|0)<(b|0);else c=0;D=c?d:0-d|0;return D|0}function $b(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;n=k[b>>2]|0;o=k[a>>2]|0;do if((n|0)>=(o|0)){h=(n|0)==(o|0);if(h?(k[b+4>>2]|0)<(k[a+4>>2]|0):0){i=1;break}if((o|0)<(n|0))i=0;else{if(h?(f=k[a+4>>2]|0,g=k[b+4>>2]|0,(f|0)<(g|0)):0)r=12;else{g=k[b+8>>2]|0;f=k[a+8>>2]|0;if((g|0)<(f|0)){i=1;break}if((g|0)==(f|0)?(k[b+12>>2]|0)<(k[a+12>>2]|0):0){i=1;break}if(h){f=k[a+4>>2]|0;g=k[b+4>>2]|0;r=12}else r=15}if((r|0)==12){if((f|0)<(g|0)){i=0;break}if((g|0)>=(f|0)){f=k[a+8>>2]|0;g=k[b+8>>2]|0;r=15}}if((r|0)==15){if((f|0)<(g|0)){i=0;break}if((f|0)==(g|0)?(k[a+12>>2]|0)<(k[b+12>>2]|0):0){i=0;break}}i=(k[b+16>>2]|0)<(k[a+16>>2]|0)}}else i=1;while(0);l=k[c>>2]|0;do if((l|0)>=(n|0)){h=(l|0)==(n|0);if(h?(k[c+4>>2]|0)<(k[b+4>>2]|0):0){f=1;break}if((n|0)<(l|0))f=0;else{if(h?(j=k[b+4>>2]|0,m=k[c+4>>2]|0,(j|0)<(m|0)):0){g=j;f=m;r=30}else{g=k[c+8>>2]|0;f=k[b+8>>2]|0;if((g|0)<(f|0)){f=1;break}if((g|0)==(f|0)?(k[c+12>>2]|0)<(k[b+12>>2]|0):0){f=1;break}if(h){g=k[b+4>>2]|0;f=k[c+4>>2]|0;r=30}else r=33}if((r|0)==30){if((g|0)<(f|0)){f=0;break}if((f|0)>=(g|0)){f=k[b+8>>2]|0;g=k[c+8>>2]|0;r=33}}if((r|0)==33){if((f|0)<(g|0)){f=0;break}if((f|0)==(g|0)?(k[b+12>>2]|0)<(k[c+12>>2]|0):0){f=0;break}}f=(k[c+16>>2]|0)<(k[b+16>>2]|0)}}else f=1;while(0);if(!i){if(!f){b=0;return b|0}m=b+4|0;r=k[m>>2]|0;k[b>>2]=l;i=c+4|0;k[m>>2]=k[i>>2];k[c>>2]=n;k[i>>2]=r;i=b+8|0;r=k[i>>2]|0;j=b+12|0;g=k[j>>2]|0;h=c+8|0;k[i>>2]=k[h>>2];l=c+12|0;k[j>>2]=k[l>>2];k[h>>2]=r;k[l>>2]=g;l=b+16|0;g=c+16|0;h=k[l>>2]|0;k[l>>2]=k[g>>2];k[g>>2]=h;g=k[b>>2]|0;h=k[a>>2]|0;do if((g|0)>=(h|0)){f=(g|0)==(h|0);if(f?(k[m>>2]|0)<(k[a+4>>2]|0):0)break;if((h|0)<(g|0)){b=1;return b|0}if(f?(e=k[a+4>>2]|0,d=k[m>>2]|0,(e|0)<(d|0)):0)r=50;else{e=k[i>>2]|0;d=k[a+8>>2]|0;if((e|0)<(d|0))break;if((e|0)==(d|0)?(k[j>>2]|0)<(k[a+12>>2]|0):0)break;if(f){e=k[a+4>>2]|0;d=k[m>>2]|0;r=50}else r=53}if((r|0)==50){if((e|0)<(d|0)){b=1;return b|0}if((d|0)>=(e|0)){d=k[a+8>>2]|0;e=k[i>>2]|0;r=53}}if((r|0)==53){if((d|0)<(e|0)){b=1;return b|0}if((d|0)==(e|0)?(k[a+12>>2]|0)<(k[j>>2]|0):0){b=1;return b|0}}if((k[l>>2]|0)>=(k[a+16>>2]|0)){b=1;return b|0}}while(0);r=a+4|0;q=k[r>>2]|0;k[a>>2]=g;k[r>>2]=k[m>>2];k[b>>2]=h;k[m>>2]=q;q=a+8|0;b=k[q>>2]|0;r=a+12|0;c=k[r>>2]|0;k[q>>2]=k[i>>2];k[r>>2]=k[j>>2];k[i>>2]=b;k[j>>2]=c;c=a+16|0;b=k[c>>2]|0;k[c>>2]=k[l>>2];k[l>>2]=b;b=2;return b|0}d=a+4|0;e=k[d>>2]|0;if(f){k[a>>2]=l;b=c+4|0;k[d>>2]=k[b>>2];k[c>>2]=o;k[b>>2]=e;b=a+8|0;p=k[b>>2]|0;o=a+12|0;r=k[o>>2]|0;q=c+8|0;k[b>>2]=k[q>>2];b=c+12|0;k[o>>2]=k[b>>2];k[q>>2]=p;k[b>>2]=r;a=a+16|0;b=c+16|0;c=k[a>>2]|0;k[a>>2]=k[b>>2];k[b>>2]=c;b=1;return b|0}k[a>>2]=n;n=b+4|0;k[d>>2]=k[n>>2];k[b>>2]=o;k[n>>2]=e;m=a+8|0;g=k[m>>2]|0;h=a+12|0;i=k[h>>2]|0;l=b+8|0;k[m>>2]=k[l>>2];m=b+12|0;k[h>>2]=k[m>>2];k[l>>2]=g;k[m>>2]=i;i=a+16|0;g=b+16|0;h=k[i>>2]|0;k[i>>2]=k[g>>2];k[g>>2]=h;i=k[c>>2]|0;j=k[b>>2]|0;do if((i|0)>=(j|0)){f=(i|0)==(j|0);if(f?(k[c+4>>2]|0)<(k[n>>2]|0):0)break;if((j|0)<(i|0)){b=1;return b|0}if(f?(p=k[n>>2]|0,q=k[c+4>>2]|0,(p|0)<(q|0)):0){e=p;d=q;r=71}else{e=k[c+8>>2]|0;d=k[l>>2]|0;if((e|0)<(d|0))break;if((e|0)==(d|0)?(k[c+12>>2]|0)<(k[m>>2]|0):0)break;if(f){e=k[n>>2]|0;d=k[c+4>>2]|0;r=71}else r=74}if((r|0)==71){if((e|0)<(d|0)){b=1;return b|0}if((d|0)>=(e|0)){d=k[l>>2]|0;e=k[c+8>>2]|0;r=74}}if((r|0)==74){if((d|0)<(e|0)){b=1;return b|0}if((d|0)==(e|0)?(k[m>>2]|0)<(k[c+12>>2]|0):0){b=1;return b|0}}if((k[c+16>>2]|0)>=(h|0)){b=1;return b|0}}while(0);a=k[n>>2]|0;k[b>>2]=i;q=c+4|0;k[n>>2]=k[q>>2];k[c>>2]=j;k[q>>2]=a;q=k[l>>2]|0;a=k[m>>2]|0;r=c+8|0;k[l>>2]=k[r>>2];b=c+12|0;k[m>>2]=k[b>>2];k[r>>2]=q;k[b>>2]=a;b=c+16|0;c=k[g>>2]|0;k[g>>2]=k[b>>2];k[b>>2]=c;b=2;return b|0}function ac(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=$b(a,b,c)|0;i=k[d>>2]|0;j=k[c>>2]|0;do if((i|0)>=(j|0)){h=(i|0)==(j|0);if(h?(k[d+4>>2]|0)<(k[c+4>>2]|0):0)break;if((j|0)<(i|0)){b=t;return b|0}if(h?(f=k[c+4>>2]|0,g=k[d+4>>2]|0,(f|0)<(g|0)):0)r=12;else{g=k[d+8>>2]|0;f=k[c+8>>2]|0;if((g|0)<(f|0))break;if((g|0)==(f|0)?(k[d+12>>2]|0)<(k[c+12>>2]|0):0)break;if(h){f=k[c+4>>2]|0;g=k[d+4>>2]|0;r=12}else r=15}if((r|0)==12){if((f|0)<(g|0)){b=t;return b|0}if((g|0)>=(f|0)){f=k[c+8>>2]|0;g=k[d+8>>2]|0;r=15}}if((r|0)==15){if((f|0)<(g|0)){b=t;return b|0}if((f|0)==(g|0)?(k[c+12>>2]|0)<(k[d+12>>2]|0):0){b=t;return b|0}}if((k[d+16>>2]|0)>=(k[c+16>>2]|0)){b=t;return b|0}}while(0);l=c+4|0;r=k[l>>2]|0;k[c>>2]=i;o=d+4|0;k[l>>2]=k[o>>2];k[d>>2]=j;k[o>>2]=r;o=c+8|0;r=k[o>>2]|0;p=c+12|0;i=k[p>>2]|0;j=d+8|0;k[o>>2]=k[j>>2];q=d+12|0;k[p>>2]=k[q>>2];k[j>>2]=r;k[q>>2]=i;q=c+16|0;i=d+16|0;j=k[q>>2]|0;k[q>>2]=k[i>>2];k[i>>2]=j;i=t+1|0;j=k[c>>2]|0;d=k[b>>2]|0;do if((j|0)>=(d|0)){h=(j|0)==(d|0);if(h?(k[l>>2]|0)<(k[b+4>>2]|0):0)break;if((d|0)<(j|0)){b=i;return b|0}if(h?(m=k[b+4>>2]|0,n=k[l>>2]|0,(m|0)<(n|0)):0){g=m;f=n;r=30}else{g=k[o>>2]|0;f=k[b+8>>2]|0;if((g|0)<(f|0))break;if((g|0)==(f|0)?(k[p>>2]|0)<(k[b+12>>2]|0):0)break;if(h){g=k[b+4>>2]|0;f=k[l>>2]|0;r=30}else r=33}if((r|0)==30){if((g|0)<(f|0)){b=i;return b|0}if((f|0)>=(g|0)){f=k[b+8>>2]|0;g=k[o>>2]|0;r=33}}if((r|0)==33){if((f|0)<(g|0)){b=i;return b|0}if((f|0)==(g|0)?(k[b+12>>2]|0)<(k[p>>2]|0):0){b=i;return b|0}}if((k[q>>2]|0)>=(k[b+16>>2]|0)){b=i;return b|0}}while(0);n=b+4|0;h=k[n>>2]|0;k[b>>2]=j;k[n>>2]=k[l>>2];k[c>>2]=d;k[l>>2]=h;l=b+8|0;h=k[l>>2]|0;m=b+12|0;d=k[m>>2]|0;k[l>>2]=k[o>>2];k[m>>2]=k[p>>2];k[o>>2]=h;k[p>>2]=d;d=b+16|0;h=k[d>>2]|0;k[d>>2]=k[q>>2];k[q>>2]=h;h=t+2|0;i=k[b>>2]|0;j=k[a>>2]|0;do if((i|0)>=(j|0)){g=(i|0)==(j|0);if(g?(k[n>>2]|0)<(k[a+4>>2]|0):0)break;if((j|0)<(i|0)){b=h;return b|0}if(g?(s=k[a+4>>2]|0,e=k[n>>2]|0,(s|0)<(e|0)):0){f=s;r=48}else{f=k[l>>2]|0;e=k[a+8>>2]|0;if((f|0)<(e|0))break;if((f|0)==(e|0)?(k[m>>2]|0)<(k[a+12>>2]|0):0)break;if(g){f=k[a+4>>2]|0;e=k[n>>2]|0;r=48}else r=51}if((r|0)==48){if((f|0)<(e|0)){b=h;return b|0}if((e|0)>=(f|0)){e=k[a+8>>2]|0;f=k[l>>2]|0;r=51}}if((r|0)==51){if((e|0)<(f|0)){b=h;return b|0}if((e|0)==(f|0)?(k[a+12>>2]|0)<(k[m>>2]|0):0){b=h;return b|0}}if((k[d>>2]|0)>=(k[a+16>>2]|0)){b=h;return b|0}}while(0);s=a+4|0;c=k[s>>2]|0;k[a>>2]=i;k[s>>2]=k[n>>2];k[b>>2]=j;k[n>>2]=c;c=a+8|0;s=k[c>>2]|0;r=a+12|0;b=k[r>>2]|0;k[c>>2]=k[l>>2];k[r>>2]=k[m>>2];k[l>>2]=s;k[m>>2]=b;a=a+16|0;b=k[a>>2]|0;k[a>>2]=k[d>>2];k[d>>2]=b;b=t+3|0;return b|0}function bc(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=ac(a,b,c,d)|0;m=k[e>>2]|0;n=k[d>>2]|0;do if((m|0)>=(n|0)){l=(m|0)==(n|0);if(l?(k[e+4>>2]|0)<(k[d+4>>2]|0):0)break;if((n|0)<(m|0)){b=x;return b|0}if(l?(i=k[d+4>>2]|0,j=k[e+4>>2]|0,(i|0)<(j|0)):0)w=12;else{j=k[e+8>>2]|0;i=k[d+8>>2]|0;if((j|0)<(i|0))break;if((j|0)==(i|0)?(k[e+12>>2]|0)<(k[d+12>>2]|0):0)break;if(l){i=k[d+4>>2]|0;j=k[e+4>>2]|0;w=12}else w=15}if((w|0)==12){if((i|0)<(j|0)){b=x;return b|0}if((j|0)>=(i|0)){i=k[d+8>>2]|0;j=k[e+8>>2]|0;w=15}}if((w|0)==15){if((i|0)<(j|0)){b=x;return b|0}if((i|0)==(j|0)?(k[d+12>>2]|0)<(k[e+12>>2]|0):0){b=x;return b|0}}if((k[e+16>>2]|0)>=(k[d+16>>2]|0)){b=x;return b|0}}while(0);o=d+4|0;w=k[o>>2]|0;k[d>>2]=m;p=e+4|0;k[o>>2]=k[p>>2];k[e>>2]=n;k[p>>2]=w;p=d+8|0;w=k[p>>2]|0;s=d+12|0;m=k[s>>2]|0;n=e+8|0;k[p>>2]=k[n>>2];u=e+12|0;k[s>>2]=k[u>>2];k[n>>2]=w;k[u>>2]=m;u=d+16|0;m=e+16|0;n=k[u>>2]|0;k[u>>2]=k[m>>2];k[m>>2]=n;m=x+1|0;n=k[d>>2]|0;e=k[c>>2]|0;do if((n|0)>=(e|0)){l=(n|0)==(e|0);if(l?(k[o>>2]|0)<(k[c+4>>2]|0):0)break;if((e|0)<(n|0)){b=m;return b|0}if(l?(q=k[c+4>>2]|0,r=k[o>>2]|0,(q|0)<(r|0)):0){j=q;i=r;w=30}else{j=k[p>>2]|0;i=k[c+8>>2]|0;if((j|0)<(i|0))break;if((j|0)==(i|0)?(k[s>>2]|0)<(k[c+12>>2]|0):0)break;if(l){j=k[c+4>>2]|0;i=k[o>>2]|0;w=30}else w=33}if((w|0)==30){if((j|0)<(i|0)){b=m;return b|0}if((i|0)>=(j|0)){i=k[c+8>>2]|0;j=k[p>>2]|0;w=33}}if((w|0)==33){if((i|0)<(j|0)){b=m;return b|0}if((i|0)==(j|0)?(k[c+12>>2]|0)<(k[s>>2]|0):0){b=m;return b|0}}if((k[u>>2]|0)>=(k[c+16>>2]|0)){b=m;return b|0}}while(0);t=c+4|0;q=k[t>>2]|0;k[c>>2]=n;k[t>>2]=k[o>>2];k[d>>2]=e;k[o>>2]=q;q=c+8|0;m=k[q>>2]|0;r=c+12|0;l=k[r>>2]|0;k[q>>2]=k[p>>2];k[r>>2]=k[s>>2];k[p>>2]=m;k[s>>2]=l;p=c+16|0;l=k[p>>2]|0;k[p>>2]=k[u>>2];k[u>>2]=l;l=x+2|0;m=k[c>>2]|0;n=k[b>>2]|0;do if((m|0)>=(n|0)){j=(m|0)==(n|0);if(j?(k[t>>2]|0)<(k[b+4>>2]|0):0)break;if((n|0)<(m|0)){b=l;return b|0}if(j?(v=k[b+4>>2]|0,h=k[t>>2]|0,(v|0)<(h|0)):0){i=v;w=48}else{i=k[q>>2]|0;h=k[b+8>>2]|0;if((i|0)<(h|0))break;if((i|0)==(h|0)?(k[r>>2]|0)<(k[b+12>>2]|0):0)break;if(j){i=k[b+4>>2]|0;h=k[t>>2]|0;w=48}else w=51}if((w|0)==48){if((i|0)<(h|0)){b=l;return b|0}if((h|0)>=(i|0)){h=k[b+8>>2]|0;i=k[q>>2]|0;w=51}}if((w|0)==51){if((h|0)<(i|0)){b=l;return b|0}if((h|0)==(i|0)?(k[b+12>>2]|0)<(k[r>>2]|0):0){b=l;return b|0}}if((k[p>>2]|0)>=(k[b+16>>2]|0)){b=l;return b|0}}while(0);o=b+4|0;i=k[o>>2]|0;k[b>>2]=m;k[o>>2]=k[t>>2];k[c>>2]=n;k[t>>2]=i;n=b+8|0;i=k[n>>2]|0;e=b+12|0;m=k[e>>2]|0;k[n>>2]=k[q>>2];k[e>>2]=k[r>>2];k[q>>2]=i;k[r>>2]=m;m=b+16|0;i=k[m>>2]|0;k[m>>2]=k[p>>2];k[p>>2]=i;i=x+3|0;j=k[b>>2]|0;l=k[a>>2]|0;do if((j|0)>=(l|0)){h=(j|0)==(l|0);if(h?(k[o>>2]|0)<(k[a+4>>2]|0):0)break;if((l|0)<(j|0)){b=i;return b|0}if(h?(g=k[a+4>>2]|0,f=k[o>>2]|0,(g|0)<(f|0)):0)w=66;else{g=k[n>>2]|0;f=k[a+8>>2]|0;if((g|0)<(f|0))break;if((g|0)==(f|0)?(k[e>>2]|0)<(k[a+12>>2]|0):0)break;if(h){g=k[a+4>>2]|0;f=k[o>>2]|0;w=66}else w=69}if((w|0)==66){if((g|0)<(f|0)){b=i;return b|0}if((f|0)>=(g|0)){f=k[a+8>>2]|0;g=k[n>>2]|0;w=69}}if((w|0)==69){if((f|0)<(g|0)){b=i;return b|0}if((f|0)==(g|0)?(k[a+12>>2]|0)<(k[e>>2]|0):0){b=i;return b|0}}if((k[m>>2]|0)>=(k[a+16>>2]|0)){b=i;return b|0}}while(0);c=a+4|0;v=k[c>>2]|0;k[a>>2]=j;k[c>>2]=k[o>>2];k[b>>2]=l;k[o>>2]=v;v=a+8|0;c=k[v>>2]|0;w=a+12|0;b=k[w>>2]|0;k[v>>2]=k[n>>2];k[w>>2]=k[e>>2];k[n>>2]=c;k[e>>2]=b;a=a+16|0;b=k[a>>2]|0;k[a>>2]=k[m>>2];k[m>>2]=b;b=x+4|0;return b|0}function cc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;switch((b-a|0)/20|0|0){case 2:{f=b+-20|0;g=k[f>>2]|0;h=k[a>>2]|0;do if((g|0)>=(h|0)){e=(g|0)==(h|0);if(e?(k[b+-16>>2]|0)<(k[a+4>>2]|0):0)break;if((h|0)<(g|0)){b=1;return b|0}if(e?(d=k[a+4>>2]|0,c=k[b+-16>>2]|0,(d|0)<(c|0)):0)w=13;else{d=k[b+-12>>2]|0;c=k[a+8>>2]|0;if((d|0)<(c|0))break;if((d|0)==(c|0)?(k[b+-8>>2]|0)<(k[a+12>>2]|0):0)break;if(e){d=k[a+4>>2]|0;c=k[b+-16>>2]|0;w=13}else w=16}if((w|0)==13){if((d|0)<(c|0)){b=1;return b|0}if((c|0)>=(d|0)){c=k[a+8>>2]|0;d=k[b+-12>>2]|0;w=16}}if((w|0)==16){if((c|0)<(d|0)){b=1;return b|0}if((c|0)==(d|0)?(k[a+12>>2]|0)<(k[b+-8>>2]|0):0){b=1;return b|0}}if((k[b+-4>>2]|0)>=(k[a+16>>2]|0)){b=1;return b|0}}while(0);s=a+4|0;t=k[s>>2]|0;k[a>>2]=g;w=b+-16|0;k[s>>2]=k[w>>2];k[f>>2]=h;k[w>>2]=t;w=a+8|0;t=k[w>>2]|0;s=a+12|0;v=k[s>>2]|0;u=b+-12|0;k[w>>2]=k[u>>2];w=b+-8|0;k[s>>2]=k[w>>2];k[u>>2]=t;k[w>>2]=v;w=a+16|0;b=b+-4|0;a=k[w>>2]|0;k[w>>2]=k[b>>2];k[b>>2]=a;b=1;return b|0}case 3:{$b(a,a+20|0,b+-20|0)|0;b=1;return b|0}case 4:{ac(a,a+20|0,a+40|0,b+-20|0)|0;b=1;return b|0}case 5:{bc(a,a+20|0,a+40|0,a+60|0,b+-20|0)|0;b=1;return b|0}case 1:case 0:{b=1;return b|0}default:{e=a+40|0;$b(a,a+20|0,e)|0;d=a+60|0;if((d|0)==(b|0)){b=1;return b|0}else c=0;while(1){s=k[d>>2]|0;i=k[e>>2]|0;do if((s|0)>=(i|0)){h=(s|0)==(i|0);if(h?(k[d+4>>2]|0)<(k[e+4>>2]|0):0){w=43;break}if((i|0)>=(s|0)){if(h?(u=k[e+4>>2]|0,v=k[d+4>>2]|0,(u|0)<(v|0)):0){f=u;g=v;w=36}else{f=k[d+8>>2]|0;g=k[e+8>>2]|0;if((f|0)<(g|0)){w=43;break}if((f|0)==(g|0)?(k[d+12>>2]|0)<(k[e+12>>2]|0):0){w=43;break}if(h){f=k[e+4>>2]|0;g=k[d+4>>2]|0;w=36}else w=39}if((w|0)==36){w=0;if((f|0)<(g|0))break;if((g|0)>=(f|0)){g=k[e+8>>2]|0;f=k[d+8>>2]|0;w=39}}if((w|0)==39){w=0;if((g|0)<(f|0))break;if((g|0)==(f|0)?(k[e+12>>2]|0)<(k[d+12>>2]|0):0)break}if((k[d+16>>2]|0)<(k[e+16>>2]|0))w=43}}else w=43;while(0);if((w|0)==43){w=0;m=d+4|0;o=k[m>>2]|0;g=d+8|0;p=k[g>>2]|0;f=d+12|0;q=k[f>>2]|0;n=d+16|0;r=k[n>>2]|0;k[d>>2]=i;h=e+4|0;k[m>>2]=k[h>>2];i=e+8|0;k[g>>2]=k[i>>2];g=e+12|0;k[f>>2]=k[g>>2];f=e+16|0;k[n>>2]=k[f>>2];a:do if((e|0)!=(a|0)){n=e;m=i;l=h;while(1){e=n+-20|0;j=k[e>>2]|0;do if((s|0)>=(j|0)){i=(s|0)==(j|0);if(i?(o|0)<(k[n+-16>>2]|0):0)break;if((j|0)<(s|0)){e=n;h=l;i=m;break a}if(i?(t=k[n+-16>>2]|0,(t|0)<(o|0)):0){h=t;w=55}else{h=k[n+-12>>2]|0;if((p|0)<(h|0))break;if((p|0)==(h|0)?(q|0)<(k[n+-8>>2]|0):0)break;if(i){h=k[n+-16>>2]|0;w=55}else w=58}if((w|0)==55){w=0;if((h|0)<(o|0)){e=n;h=l;i=m;break a}if((o|0)>=(h|0)){h=k[n+-12>>2]|0;w=58}}if((w|0)==58){w=0;if((h|0)<(p|0)){e=n;h=l;i=m;break a}if((h|0)==(p|0)?(k[n+-8>>2]|0)<(q|0):0){e=n;h=l;i=m;break a}}if((r|0)>=(k[n+-4>>2]|0)){e=n;h=l;i=m;break a}}while(0);k[n>>2]=j;h=n+-16|0;k[n+4>>2]=k[h>>2];i=n+-12|0;k[n+8>>2]=k[i>>2];g=n+-8|0;k[n+12>>2]=k[g>>2];f=n+-4|0;k[n+16>>2]=k[f>>2];if((e|0)==(a|0))break;else{n=e;m=i;l=h}}}while(0);k[e>>2]=s;k[h>>2]=o;k[i>>2]=p;k[g>>2]=q;k[f>>2]=r;c=c+1|0;if((c|0)==8)break}e=d+20|0;if((e|0)==(b|0)){c=1;w=66;break}else{s=d;d=e;e=s}}if((w|0)==66)return c|0;b=(d+20|0)==(b|0);return b|0}}return 0}function dc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0;f=a+4|0;g=k[a>>2]|0;c=g;h=(k[f>>2]|0)-c|0;i=h>>3;j=i+1|0;if(j>>>0>536870911)xa(1340,1363,303,1438);l=a+8|0;c=(k[l>>2]|0)-c|0;if(c>>3>>>0<268435455){c=c>>2;c=c>>>0<j>>>0?j:c;if(!c){c=0;d=0}else e=5}else{c=536870911;e=5}if((e|0)==5){e=c<<3;e=(e|0)==0?1:e;d=_d(e)|0;a:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break a}a=ya(4)|0;k[a>>2]=128;La(a|0,8,1)}while(0)}m=b;e=k[m+4>>2]|0;b=d+(i<<3)|0;k[b>>2]=k[m>>2];k[b+4>>2]=e;fe(d|0,g|0,h|0)|0;k[a>>2]=d;k[f>>2]=d+(j<<3);k[l>>2]=d+(c<<3);if(!g)return;$d(g);return}function ec(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;s=b;a:while(1){m=s;n=s+-8|0;o=s+-16|0;r=s+-4|0;w=a;b:while(1){l=w;a=m-l|0;b=a>>3;switch(b|0){case 2:{v=4;break a}case 3:{v=9;break a}case 4:{v=10;break a}case 5:{v=11;break a}case 1:case 0:{v=88;break a}default:{}}if((a|0)<56){v=13;break a}c=(b|0)/2|0;h=w+(c<<3)|0;if((a|0)>7992){a=(b|0)/4|0;a=ic(w,w+(a<<3)|0,h,w+(a+c<<3)|0,n)|0}else a=gc(w,h,n)|0;g=k[w>>2]|0;f=k[h>>2]|0;c:do if((g|0)<(f|0))c=n;else{if((f|0)>=(g|0)?(k[w+4>>2]|0)<(k[w+(c<<3)+4>>2]|0):0){c=n;break}d:do if((w|0)!=(o|0)){e=w+(c<<3)+4|0;c=o;b=n;while(1){d=k[c>>2]|0;if((d|0)<(f|0)){v=58;break}if((f|0)>=(d|0)?(p=b+-4|0,(k[p>>2]|0)<(k[e>>2]|0)):0){b=p;break}b=c+-8|0;if((w|0)==(b|0))break d;else{j=c;c=b;b=j}}if((v|0)==58){v=0;b=b+-4|0}k[w>>2]=d;k[c>>2]=g;i=w+4|0;j=k[i>>2]|0;k[i>>2]=k[b>>2];k[b>>2]=j;a=a+1|0;break c}while(0);a=w+8|0;f=k[n>>2]|0;do if((g|0)>=(f|0)){if((f|0)>=(g|0)?(k[w+4>>2]|0)<(k[r>>2]|0):0)break;if((a|0)==(n|0)){v=88;break a}d=w+4|0;e=w;while(1){b=e+8|0;c=k[b>>2]|0;if((g|0)<(c|0)){v=40;break}if((c|0)>=(g|0)?(q=e+12|0,(k[d>>2]|0)<(k[q>>2]|0)):0){a=q;break}b=a+8|0;if((b|0)==(n|0)){v=88;break a}else{e=a;a=b}}if((v|0)==40){v=0;a=e+12|0}k[b>>2]=f;k[n>>2]=c;l=k[a>>2]|0;k[a>>2]=k[r>>2];k[r>>2]=l;a=e+16|0}while(0);if((a|0)==(n|0)){v=88;break a}h=w+4|0;c=n;while(1){g=k[w>>2]|0;b=k[a>>2]|0;e:do if((g|0)<(b|0)){f=a;e=a}else while(1){if((b|0)>=(g|0)?(k[h>>2]|0)<(k[a+4>>2]|0):0){f=a;e=a;break e}a=a+8|0;b=k[a>>2]|0;if((g|0)<(b|0)){f=a;e=a;break}}while(0);while(1){d=c+-8|0;a=k[d>>2]|0;if((g|0)<(a|0)){c=d;continue}if((a|0)<(g|0))break;if((k[h>>2]|0)<(k[c+-4>>2]|0))c=d;else break}if(e>>>0>=d>>>0){w=e;continue b}k[f>>2]=a;k[d>>2]=b;l=e+4|0;a=c+-4|0;c=k[l>>2]|0;k[l>>2]=k[a>>2];k[a>>2]=c;a=e+8|0;c=d}}while(0);b=w+8|0;f:do if(b>>>0<c>>>0){f=h;while(1){g=k[f>>2]|0;h=f+4|0;j=b;while(1){i=k[j>>2]|0;if((i|0)>=(g|0)){if((g|0)<(i|0))break;if((k[j+4>>2]|0)>=(k[h>>2]|0))break}j=j+8|0}d=c+-8|0;b=k[d>>2]|0;g:do if((b|0)<(g|0))g=d;else{e=c;while(1){e=e+-8|0;if((g|0)>=(b|0)?(k[c+-4>>2]|0)<(k[h>>2]|0):0){g=e;d=e;break g}c=d+-8|0;b=k[c>>2]|0;if((b|0)<(g|0)){g=c;d=c;c=e;break}else{x=d;d=c;c=e;e=x}}}while(0);if(j>>>0>g>>>0){g=j;break f}k[j>>2]=b;k[d>>2]=i;x=j+4|0;b=c+-4|0;c=k[x>>2]|0;k[x>>2]=k[b>>2];k[b>>2]=c;b=j+8|0;c=g;f=(f|0)==(j|0)?g:f;a=a+1|0}}else{g=b;f=h}while(0);do if((g|0)!=(f|0)){d=k[f>>2]|0;e=k[g>>2]|0;if((d|0)>=(e|0)){if((e|0)<(d|0))break;b=f+4|0;c=g+4|0;if((k[b>>2]|0)>=(k[c>>2]|0))break}else{c=g+4|0;b=f+4|0}k[g>>2]=d;k[f>>2]=e;x=k[c>>2]|0;k[c>>2]=k[b>>2];k[b>>2]=x;a=a+1|0}while(0);if(!a){a=jc(w,g)|0;b=g+8|0;if(jc(b,s)|0){v=83;break}if(a){w=b;continue}}x=g;if((x-l|0)>=(m-x|0)){v=87;break}ec(w,g);w=g+8|0}if((v|0)==83){v=0;if(a){v=88;break}else{a=w;s=g;continue}}else if((v|0)==87){v=0;ec(g+8|0,s);a=w;s=g;continue}}if((v|0)==4){b=s+-8|0;c=k[b>>2]|0;d=k[w>>2]|0;if((c|0)>=(d|0)){if((d|0)<(c|0))return;a=w+4|0;if((k[r>>2]|0)>=(k[a>>2]|0))return}else a=w+4|0;k[w>>2]=c;k[b>>2]=d;x=k[a>>2]|0;k[a>>2]=k[r>>2];k[r>>2]=x;return}else if((v|0)==9){gc(w,w+8|0,n)|0;return}else if((v|0)==10){hc(w,w+8|0,w+16|0,n)|0;return}else if((v|0)==11){ic(w,w+8|0,w+16|0,w+24|0,n)|0;return}else if((v|0)==13){b=w+16|0;gc(w,w+8|0,b)|0;a=w+24|0;if((a|0)==(s|0))return;while(1){c=k[a>>2]|0;e=k[b>>2]|0;if((c|0)>=(e|0)){if((e|0)>=(c|0)?(t=a+4|0,u=b+4|0,(k[t>>2]|0)<(k[u>>2]|0)):0){c=u;d=t;v=18}}else{c=b+4|0;d=a+4|0;v=18}if((v|0)==18){v=0;i=a;h=k[i>>2]|0;i=k[i+4>>2]|0;k[a>>2]=e;k[d>>2]=k[c>>2];h:do if((b|0)!=(w|0)){f=b;while(1){b=f+-8|0;g=k[b>>2]|0;if((h|0)>=(g|0)){if((g|0)<(h|0)){b=f;break h}e=f+-4|0;d=k[e>>2]|0;if((i|0)<(d|0))c=e;else{b=f;break h}}else{d=f+-4|0;c=d;d=k[d>>2]|0}k[f>>2]=g;k[f+4>>2]=d;if((b|0)==(w|0))break;else f=b}}while(0);k[b>>2]=h;k[c>>2]=i}b=a+8|0;if((b|0)==(s|0))break;else{x=a;a=b;b=x}}return}else if((v|0)==88)return}function fc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0;f=a+4|0;g=k[a>>2]|0;c=g;h=(k[f>>2]|0)-c|0;i=(h|0)/12|0;j=i+1|0;if(j>>>0>357913941)xa(1340,1363,303,1438);l=a+8|0;c=((k[l>>2]|0)-c|0)/12|0;if(c>>>0<178956970){c=c<<1;c=c>>>0<j>>>0?j:c;if(!c){c=0;d=0}else e=5}else{c=357913941;e=5}if((e|0)==5){e=c*12|0;e=(e|0)==0?1:e;d=_d(e)|0;a:do if(!d){while(1){d=k[35]|0;k[35]=d+0;if(!d)break;Xa[d&0]();d=_d(e)|0;if(d)break a}a=ya(4)|0;k[a>>2]=128;La(a|0,8,1)}while(0)}e=d+(i*12|0)|0;k[e>>2]=k[b>>2];k[e+4>>2]=k[b+4>>2];k[e+8>>2]=k[b+8>>2];b=d+((((h|0)/-12|0)+i|0)*12|0)|0;fe(b|0,g|0,h|0)|0;k[a>>2]=b;k[f>>2]=d+(j*12|0);k[l>>2]=d+(c*12|0);if(!g)return;$d(g);return}function gc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=k[b>>2]|0;e=k[a>>2]|0;if((d|0)>=(e|0))if((e|0)<(d|0))f=0;else f=(k[b+4>>2]|0)<(k[a+4>>2]|0);else f=1;h=k[c>>2]|0;if((h|0)>=(d|0))if((d|0)<(h|0))g=0;else g=(k[c+4>>2]|0)<(k[b+4>>2]|0);else g=1;if(!f){if(!g){b=0;return b|0}k[b>>2]=h;k[c>>2]=d;g=b+4|0;e=c+4|0;f=k[g>>2]|0;k[g>>2]=k[e>>2];k[e>>2]=f;e=k[b>>2]|0;f=k[a>>2]|0;if((e|0)>=(f|0)){if((f|0)<(e|0)){b=1;return b|0}d=a+4|0;if((k[g>>2]|0)>=(k[d>>2]|0)){b=1;return b|0}}else d=a+4|0;k[a>>2]=e;k[b>>2]=f;b=k[d>>2]|0;k[d>>2]=k[g>>2];k[g>>2]=b;b=2;return b|0}if(g){k[a>>2]=h;k[c>>2]=e;a=a+4|0;b=c+4|0;c=k[a>>2]|0;k[a>>2]=k[b>>2];k[b>>2]=c;b=1;return b|0}k[a>>2]=d;k[b>>2]=e;g=a+4|0;f=b+4|0;e=k[g>>2]|0;k[g>>2]=k[f>>2];k[f>>2]=e;g=k[c>>2]|0;h=k[b>>2]|0;if((g|0)>=(h|0)){if((h|0)<(g|0)){b=1;return b|0}d=c+4|0;if((k[d>>2]|0)>=(e|0)){b=1;return b|0}}else d=c+4|0;k[b>>2]=g;k[c>>2]=h;b=k[f>>2]|0;k[f>>2]=k[d>>2];k[d>>2]=b;b=2;return b|0}function hc(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=gc(a,b,c)|0;g=k[d>>2]|0;h=k[c>>2]|0;if((g|0)>=(h|0)){if((h|0)<(g|0)){b=j;return b|0}e=d+4|0;f=c+4|0;if((k[e>>2]|0)<(k[f>>2]|0))i=f;else{b=j;return b|0}}else{e=d+4|0;i=c+4|0}k[c>>2]=g;k[d>>2]=h;g=k[i>>2]|0;k[i>>2]=k[e>>2];k[e>>2]=g;e=j+1|0;g=k[c>>2]|0;h=k[b>>2]|0;if((g|0)>=(h|0)){if((h|0)<(g|0)){b=e;return b|0}f=b+4|0;if((k[i>>2]|0)<(k[f>>2]|0))d=f;else{b=e;return b|0}}else d=b+4|0;k[b>>2]=g;k[c>>2]=h;f=k[d>>2]|0;k[d>>2]=k[i>>2];k[i>>2]=f;f=j+2|0;g=k[b>>2]|0;h=k[a>>2]|0;if((g|0)>=(h|0)){if((h|0)<(g|0)){b=f;return b|0}e=a+4|0;if((k[d>>2]|0)>=(k[e>>2]|0)){b=f;return b|0}}else e=a+4|0;k[a>>2]=g;k[b>>2]=h;b=k[e>>2]|0;k[e>>2]=k[d>>2];k[d>>2]=b;b=j+3|0;return b|0}function ic(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,l=0,m=0;m=hc(a,b,c,d)|0;h=k[e>>2]|0;i=k[d>>2]|0;if((h|0)>=(i|0)){if((i|0)<(h|0)){b=m;return b|0}f=e+4|0;g=d+4|0;if((k[f>>2]|0)<(k[g>>2]|0))l=g;else{b=m;return b|0}}else{f=e+4|0;l=d+4|0}k[d>>2]=h;k[e>>2]=i;h=k[l>>2]|0;k[l>>2]=k[f>>2];k[f>>2]=h;f=m+1|0;h=k[d>>2]|0;i=k[c>>2]|0;if((h|0)>=(i|0)){if((i|0)<(h|0)){b=f;return b|0}g=c+4|0;if((k[l>>2]|0)<(k[g>>2]|0))j=g;else{b=f;return b|0}}else j=c+4|0;k[c>>2]=h;k[d>>2]=i;f=k[j>>2]|0;k[j>>2]=k[l>>2];k[l>>2]=f;f=m+2|0;h=k[c>>2]|0;i=k[b>>2]|0;if((h|0)>=(i|0)){if((i|0)<(h|0)){b=f;return b|0}g=b+4|0;if((k[j>>2]|0)<(k[g>>2]|0))e=g;else{b=f;return b|0}}else e=b+4|0;k[b>>2]=h;k[c>>2]=i;g=k[e>>2]|0;k[e>>2]=k[j>>2];k[j>>2]=g;g=m+3|0;h=k[b>>2]|0;i=k[a>>2]|0;if((h|0)>=(i|0)){if((i|0)<(h|0)){b=g;return b|0}f=a+4|0;if((k[e>>2]|0)>=(k[f>>2]|0)){b=g;return b|0}}else f=a+4|0;k[a>>2]=h;k[b>>2]=i;b=k[f>>2]|0;k[f>>2]=k[e>>2];k[e>>2]=b;b=m+4|0;return b|0}function jc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0;switch(b-a>>3|0){case 2:{e=b+-8|0;f=k[e>>2]|0;g=k[a>>2]|0;if((f|0)>=(g|0)){if((g|0)<(f|0)){a=1;return a|0}c=b+-4|0;d=a+4|0;if((k[c>>2]|0)>=(k[d>>2]|0)){a=1;return a|0}}else{d=a+4|0;c=b+-4|0}k[a>>2]=f;k[e>>2]=g;a=k[d>>2]|0;k[d>>2]=k[c>>2];k[c>>2]=a;a=1;return a|0}case 3:{gc(a,a+8|0,b+-8|0)|0;a=1;return a|0}case 4:{hc(a,a+8|0,a+16|0,b+-8|0)|0;a=1;return a|0}case 5:{ic(a,a+8|0,a+16|0,a+24|0,b+-8|0)|0;a=1;return a|0}case 1:case 0:{a=1;return a|0}default:{e=a+16|0;gc(a,a+8|0,e)|0;d=a+24|0;if((d|0)==(b|0)){a=1;return a|0}else c=0;while(1){f=k[d>>2]|0;h=k[e>>2]|0;if((f|0)>=(h|0)){if((h|0)>=(f|0)?(n=d+4|0,o=e+4|0,(k[n>>2]|0)<(k[o>>2]|0)):0){f=o;g=n;p=15}}else{f=e+4|0;g=d+4|0;p=15}if((p|0)==15){p=0;m=d;l=k[m>>2]|0;m=k[m+4>>2]|0;k[d>>2]=h;k[g>>2]=k[f>>2];a:do if((e|0)!=(a|0)){j=e;while(1){e=j+-8|0;i=k[e>>2]|0;if((l|0)>=(i|0)){if((i|0)<(l|0)){e=j;break a}h=j+-4|0;g=k[h>>2]|0;if((m|0)<(g|0))f=h;else{e=j;break a}}else{g=j+-4|0;f=g;g=k[g>>2]|0}k[j>>2]=i;k[j+4>>2]=g;if((e|0)==(a|0))break;else j=e}}while(0);k[e>>2]=l;k[f>>2]=m;c=c+1|0;if((c|0)==8)break}e=d+8|0;if((e|0)==(b|0)){c=1;p=24;break}else{m=d;d=e;e=m}}if((p|0)==24)return c|0;a=(d+8|0)==(b|0);return a|0}}return 0}function kc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0;m=a+4|0;e=k[m>>2]|0;l=k[a>>2]|0;c=l;i=e-c>>5;j=i+1|0;if(j>>>0>134217727)xa(1340,1363,303,1438);n=a+8|0;d=(k[n>>2]|0)-c|0;if(d>>5>>>0<67108863){d=d>>4;d=d>>>0<j>>>0?j:d;if(!d){g=0;f=0}else h=5}else{d=134217727;h=5}if((h|0)==5){g=d<<5;g=(g|0)==0?1:g;f=_d(g)|0;a:do if(!f){while(1){f=k[35]|0;k[35]=f+0;if(!f)break;Xa[f&0]();f=_d(g)|0;if(f)break a}n=ya(4)|0;k[n>>2]=128;La(n|0,8,1)}while(0);g=d}h=f+(i<<5)|0;d=h;g=f+(g<<5)|0;k[h>>2]=k[b>>2];q=b+4|0;p=k[q+4>>2]|0;o=f+(i<<5)+4|0;k[o>>2]=k[q>>2];k[o+4>>2]=p;k[f+(i<<5)+12>>2]=k[b+12>>2];k[f+(i<<5)+16>>2]=k[b+16>>2];k[f+(i<<5)+20>>2]=k[b+20>>2];k[f+(i<<5)+24>>2]=k[b+24>>2];k[f+(i<<5)+28>>2]=k[b+28>>2];f=f+(j<<5)|0;if((e|0)==(l|0))e=a;else{c=h;do{q=e;e=e+-32|0;k[c+-32>>2]=k[e>>2];b=q+-28|0;o=k[b+4>>2]|0;p=c+-28|0;k[p>>2]=k[b>>2];k[p+4>>2]=o;k[c+-20>>2]=k[q+-20>>2];k[c+-16>>2]=k[q+-16>>2];k[c+-12>>2]=k[q+-12>>2];k[c+-8>>2]=k[q+-8>>2];k[c+-4>>2]=k[q+-4>>2];c=d+-32|0;d=c}while((e|0)!=(l|0));e=a;c=k[a>>2]|0}k[e>>2]=d;k[m>>2]=f;k[n>>2]=g;if(!c)return;$d(c);return}function lc(a,b,c,d,e,f,g,h,l,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;g=+g;h=h|0;l=l|0;m=m|0;var n=0,o=0,q=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0;_=r;r=r+256|0;R=_+72|0;S=_+56|0;y=_+32|0;t=_+232|0;E=_+220|0;u=_+245|0;v=_+216|0;w=_+244|0;x=_+212|0;O=_+200|0;P=_+184|0;J=_+168|0;M=_+152|0;N=_+124|0;L=_+120|0;K=_+24|0;Q=_+92|0;H=_+80|0;I=_;Z=_+188|0;Y=_+172|0;a=_+156|0;X=_+140|0;V=_+128|0;p[y>>3]=f;p[y+8>>3]=g;p[y+16>>3]=0.0;Nd(911,y);kb(Z,c,d,e);mc(Y,Z,f*3.141592653589793/180.0);W=Y+4|0;if((k[Y>>2]|0)!=(k[W>>2]|0)){k[X>>2]=0;U=X+4|0;k[U>>2]=0;k[X+8>>2]=0;k[V>>2]=0;T=V+4|0;k[T>>2]=0;k[V+8>>2]=0;p[I>>3]=g;p[I+8>>3]=0.0;k[I+16>>2]=X;k[I+20>>2]=V;e=(k[87]|0)>-1;a:do if(!2){a=954;G=6}else{b=954;a=954;while(1){if(!(i[b>>0]|0))break a;b=b+1|0;a=b;if(!(a&3)){a=b;G=6;break}}}while(0);if((G|0)==6){while(1){b=k[a>>2]|0;if(!((b&-2139062144^-2139062144)&b+-16843009))a=a+4|0;else break}if((b&255)<<24>>24)do a=a+1|0;while((i[a>>0]|0)!=0)}d=a-954|0;a=k[72]|0;b=(a|0)==0;b:do if(e){do if(b){a=i[346]|0;i[346]=a+255|a;a=k[68]|0;if(!(a&8)){k[70]=0;k[69]=0;b=k[79]|0;k[75]=b;k[73]=b;a=b+(k[80]|0)|0;k[72]=a;break}else{k[68]=a|32;a=0;G=28;break b}}else b=k[73]|0;while(0);if((a-b|0)>>>0<d>>>0){a=Ta[k[308>>2]&7](272,954,d)|0;G=28;break}else{fe(b|0,954,d|0)|0;k[73]=(k[73]|0)+d;G=30;break}}else{do if(b){a=i[346]|0;i[346]=a+255|a;a=k[68]|0;if(!(a&8)){k[70]=0;k[69]=0;b=k[79]|0;k[75]=b;k[73]=b;a=b+(k[80]|0)|0;k[72]=a;break}else{k[68]=a|32;a=0;G=28;break b}}else b=k[73]|0;while(0);if((a-b|0)>>>0<d>>>0){a=Ta[k[308>>2]&7](272,954,d)|0;G=28;break}else{fe(b|0,954,d|0)|0;k[73]=(k[73]|0)+d;G=30;break}}while(0);if((G|0)==28)if(!((a|0)!=(d|0)?((a>>>0)/(d>>>0)|0|0)<1:0))G=30;do if((G|0)==30){b=i[347]|0;if(b<<24>>24!=10){d=k[73]|0;a=k[72]|0;if(d>>>0<a>>>0){k[73]=d+1;i[d>>0]=10;break}}else a=k[72]|0;i[y>>0]=10;do if(!a){b=j[173]|0;a=(b&65535)<<24>>24;i[346]=a+255|a;a=k[68]|0;if(!(a&8)){k[70]=0;k[69]=0;d=k[79]|0;k[75]=d;k[73]=d;a=d+(k[80]|0)|0;k[72]=a;b=(b&65535)>>>8&255;G=39;break}else{k[68]=a|32;break}}else{d=k[73]|0;G=39}while(0);do if((G|0)==39)if(d>>>0>=a>>>0|b<<24>>24==10){Ta[k[308>>2]&7](272,y,1)|0;break}else{k[73]=d+1;i[d>>0]=10;break}while(0)}while(0);k[E>>2]=0;F=E+4|0;k[F>>2]=0;k[E+8>>2]=0;q=k[W>>2]|0;a=k[Y>>2]|0;b=(q-a|0)/44|0;e=b<<1;s=E+8|0;if((q|0)!=(a|0)){d=b<<6;d=(d|0)==0?1:d;b=_d(d)|0;c:do if(!b){while(1){b=k[35]|0;k[35]=b+0;if(!b)break;Xa[b&0]();b=_d(d)|0;if(b)break c}_=ya(4)|0;k[_>>2]=128;La(_|0,8,1)}while(0);d=b;n=b+(e<<5)|0;k[E>>2]=d;k[F>>2]=d;k[s>>2]=n;d=b;while(1){e=a+16|0;c=a+28|0;i[u>>0]=0;k[v>>2]=a;o=a;if(d>>>0<n>>>0){k[y>>2]=k[e>>2];k[y+4>>2]=k[e+4>>2];k[y+8>>2]=k[e+8>>2];k[t>>2]=k[c>>2];k[t+4>>2]=k[c+4>>2];k[t+8>>2]=k[c+8>>2];k[d>>2]=k[y>>2];k[d+4>>2]=k[y+4>>2];k[d+8>>2]=k[y+8>>2];D=d+12|0;k[D>>2]=k[t>>2];k[D+4>>2]=k[t+4>>2];k[D+8>>2]=k[t+8>>2];k[d+24>>2]=o;i[d+28>>0]=0;i[d+29>>0]=0;d=b+32|0;k[F>>2]=d;b=n}else{nc(E,e,c,u,v);d=k[F>>2]|0;b=k[s>>2]|0}i[w>>0]=1;k[x>>2]=a;if(d>>>0<b>>>0){k[y>>2]=k[c>>2];k[y+4>>2]=k[c+4>>2];k[y+8>>2]=k[c+8>>2];k[t>>2]=k[e>>2];k[t+4>>2]=k[e+4>>2];k[t+8>>2]=k[e+8>>2];k[d>>2]=k[y>>2];k[d+4>>2]=k[y+4>>2];k[d+8>>2]=k[y+8>>2];D=d+12|0;k[D>>2]=k[t>>2];k[D+4>>2]=k[t+4>>2];k[D+8>>2]=k[t+8>>2];k[d+24>>2]=o;i[d+28>>0]=1;i[d+29>>0]=0;k[F>>2]=(k[F>>2]|0)+32}else nc(E,c,e,w,x);a=a+44|0;if((a|0)==(q|0))break;b=k[F>>2]|0;d=b;n=k[s>>2]|0}c=k[E>>2]|0;b=k[F>>2]|0;oc(c,b);a=(c|0)==(b|0);if(!a){d=c;do{e=k[d+24>>2]|0;if(!(i[d+28>>0]|0))k[e+4>>2]=d;else k[e+8>>2]=d;d=d+32|0}while((d|0)!=(b|0))}}else{oc(0,0);b=0;c=0;a=1}k[S>>2]=b-c>>5;Nd(956,S);d:do if(a){d=b;a=b}else{a=c;while(1){if(!(k[a+8>>2]|0)){d=b;break d}a=a+32|0;if((a|0)==(b|0)){d=b;a=b;break}}}while(0);D=(a|0)==(d|0)?c:a;b=D+24|0;a=k[b>>2]|0;i[a+2>>0]=1;i[(k[a+4>>2]|0)+29>>0]=1;i[(k[a+8>>2]|0)+29>>0]=1;if(i[D+28>>0]|0){D=a+28|0;a=a+16|0;k[S>>2]=k[a>>2];k[S+4>>2]=k[a+4>>2];k[S+8>>2]=k[a+8>>2];k[a>>2]=k[D>>2];k[a+4>>2]=k[D+4>>2];k[a+8>>2]=k[D+8>>2];k[D>>2]=k[S>>2];k[D+4>>2]=k[S+4>>2];k[D+8>>2]=k[S+8>>2];a=k[b>>2]|0}pc(O,I,a,((k[W>>2]|0)-(k[Y>>2]|0)|0)==44);k[P>>2]=O;e=(k[87]|0)>-1;e:do if(!0){a=976;G=71}else{b=976;a=976;while(1){if(!(i[b>>0]|0))break e;b=b+1|0;a=b;if(!(a&3)){a=b;G=71;break}}}while(0);if((G|0)==71){while(1){b=k[a>>2]|0;if(!((b&-2139062144^-2139062144)&b+-16843009))a=a+4|0;else break}if((b&255)<<24>>24)do a=a+1|0;while((i[a>>0]|0)!=0)}d=a-976|0;a=k[72]|0;b=(a|0)==0;f:do if(e){do if(b){a=i[346]|0;i[346]=a+255|a;a=k[68]|0;if(!(a&8)){k[70]=0;k[69]=0;b=k[79]|0;k[75]=b;k[73]=b;a=b+(k[80]|0)|0;k[72]=a;break}else{k[68]=a|32;a=0;G=93;break f}}else b=k[73]|0;while(0);if((a-b|0)>>>0<d>>>0){a=Ta[k[308>>2]&7](272,976,d)|0;G=93;break}else{fe(b|0,976,d|0)|0;k[73]=(k[73]|0)+d;G=95;break}}else{do if(b){a=i[346]|0;i[346]=a+255|a;a=k[68]|0;if(!(a&8)){k[70]=0;k[69]=0;b=k[79]|0;k[75]=b;k[73]=b;a=b+(k[80]|0)|0;k[72]=a;break}else{k[68]=a|32;a=0;G=93;break f}}else b=k[73]|0;while(0);if((a-b|0)>>>0<d>>>0){a=Ta[k[308>>2]&7](272,976,d)|0;G=93;break}else{fe(b|0,976,d|0)|0;k[73]=(k[73]|0)+d;G=95;break}}while(0);if((G|0)==93)if(!((a|0)!=(d|0)?((a>>>0)/(d>>>0)|0|0)<1:0))G=95;do if((G|0)==95){d=i[347]|0;if(d<<24>>24!=10){a=k[73]|0;b=k[72]|0;if(a>>>0<b>>>0){k[73]=a+1;i[a>>0]=10;break}}else b=k[72]|0;i[S>>0]=10;do if(!b){d=j[173]|0;a=(d&65535)<<24>>24;i[346]=a+255|a;a=k[68]|0;if(!(a&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;b=e+(k[80]|0)|0;k[72]=b;a=(d&65535)>>>8&255;G=104;break}else{k[68]=a|32;break}}else{e=k[73]|0;a=d;G=104}while(0);do if((G|0)==104)if(e>>>0>=b>>>0|a<<24>>24==10){Ta[k[308>>2]&7](272,S,1)|0;break}else{k[73]=e+1;i[e>>0]=10;break}while(0)}while(0);b=((k[W>>2]|0)-(k[Y>>2]|0)|0)/44|0;if(b>>>0>1){w=O+4|0;x=O+8|0;y=Q+4|0;z=Q+8|0;A=Q+12|0;B=Q+16|0;C=Q+20|0;D=Q+24|0;a=k[E>>2]|0;v=k[F>>2]|0;u=1;do{k[R>>2]=u;k[R+4>>2]=b;Nd(978,R);t=a;q=k[O>>2]|0;s=k[w>>2]|0;d=v-t>>5;if(!d)b=a;else{e=t;b=a;do{o=(d|0)/2|0;c=e;n=k[c+(o<<5)>>2]|0;if((n|0)>=(q|0))if((n|0)==(q|0)?(k[c+(o<<5)+4>>2]|0)<(s|0):0)G=115;else d=o;else G=115;if((G|0)==115){G=0;e=c+(o+1<<5)|0;b=e;d=d+-1-o|0}}while((d|0)!=0)}k[J>>2]=t;k[M>>2]=0;k[N>>2]=2147483647;k[L>>2]=2147483647;p[K>>3]=17976931348623157.0e292;k[Q>>2]=P;k[y>>2]=O;k[z>>2]=M;k[A>>2]=K;k[B>>2]=N;k[C>>2]=L;k[D>>2]=J;g:do if((b|0)!=(v|0)){d=b;do{if(!(qc(Q,d)|0))break g;d=d+32|0}while((d|0)!=(v|0))}while(0);if((b|0)!=(a|0))do b=b+-32|0;while(!((b|0)==(a|0)|(qc(Q,b)|0)^1));if(!(k[x>>2]|0)){if(k[(k[J>>2]|0)+8>>2]|0){c=(k[87]|0)>-1;h:do if(!3){b=999;G=127}else{d=999;b=999;while(1){if(!(i[d>>0]|0))break h;d=d+1|0;b=d;if(!(b&3)){b=d;G=127;break}}}while(0);if((G|0)==127){while(1){d=k[b>>2]|0;if(!((d&-2139062144^-2139062144)&d+-16843009))b=b+4|0;else break}if((d&255)<<24>>24)do b=b+1|0;while((i[b>>0]|0)!=0)}e=b-999|0;b=k[72]|0;d=(b|0)==0;i:do if(c){do if(d){b=i[346]|0;i[346]=b+255|b;b=k[68]|0;if(!(b&8)){k[70]=0;k[69]=0;d=k[79]|0;k[75]=d;k[73]=d;b=d+(k[80]|0)|0;k[72]=b;break}else{k[68]=b|32;b=0;G=149;break i}}else d=k[73]|0;while(0);if((b-d|0)>>>0<e>>>0){b=Ta[k[308>>2]&7](272,999,e)|0;G=149;break}else{fe(d|0,999,e|0)|0;k[73]=(k[73]|0)+e;G=151;break}}else{do if(d){b=i[346]|0;i[346]=b+255|b;b=k[68]|0;if(!(b&8)){k[70]=0;k[69]=0;d=k[79]|0;k[75]=d;k[73]=d;b=d+(k[80]|0)|0;k[72]=b;break}else{k[68]=b|32;b=0;G=149;break i}}else d=k[73]|0;while(0);if((b-d|0)>>>0<e>>>0){b=Ta[k[308>>2]&7](272,999,e)|0;G=149;break}else{fe(d|0,999,e|0)|0;k[73]=(k[73]|0)+e;G=151;break}}while(0);do if((G|0)==149){G=0;if((b|0)==(e|0)){G=151;break}if(((b>>>0)/(e>>>0)|0|0)>=1)G=151}while(0);j:do if((G|0)==151){G=0;e=i[347]|0;do if(e<<24>>24==10)d=k[72]|0;else{b=k[73]|0;d=k[72]|0;if(b>>>0>=d>>>0)break;k[73]=b+1;i[b>>0]=10;break j}while(0);i[S>>0]=10;do if(!d){e=j[173]|0;b=(e&65535)<<24>>24;i[346]=b+255|b;b=k[68]|0;if(!(b&8)){k[70]=0;k[69]=0;c=k[79]|0;k[75]=c;k[73]=c;d=c+(k[80]|0)|0;k[72]=d;b=(e&65535)>>>8&255;G=160;break}else{k[68]=b|32;break}}else{c=k[73]|0;b=e;G=160}while(0);do if((G|0)==160){G=0;if(c>>>0>=d>>>0|b<<24>>24==10){Ta[k[308>>2]&7](272,S,1)|0;break}else{k[73]=c+1;i[c>>0]=10;break}}while(0)}while(0);if(k[x>>2]|0)G=165}}else G=165;k:do if((G|0)==165?(G=0,(k[(k[J>>2]|0)+8>>2]|0)==0):0){c=(k[87]|0)>-1;l:do if(!0){b=1004;G=169}else{b=1004;d=1004;while(1){if(!(i[b>>0]|0)){b=d;break l}b=b+1|0;d=b;if(!(d&3)){G=169;break}}}while(0);if((G|0)==169){G=0;while(1){d=k[b>>2]|0;if(!((d&-2139062144^-2139062144)&d+-16843009))b=b+4|0;else break}if((d&255)<<24>>24)do b=b+1|0;while((i[b>>0]|0)!=0)}e=b-1004|0;b=k[72]|0;d=(b|0)==0;m:do if(c){do if(d){b=i[346]|0;i[346]=b+255|b;b=k[68]|0;if(!(b&8)){k[70]=0;k[69]=0;d=k[79]|0;k[75]=d;k[73]=d;b=d+(k[80]|0)|0;k[72]=b;break}else{k[68]=b|32;b=0;G=191;break m}}else d=k[73]|0;while(0);if((b-d|0)>>>0<e>>>0){b=Ta[k[308>>2]&7](272,1004,e)|0;G=191;break}else{fe(d|0,1004,e|0)|0;k[73]=(k[73]|0)+e;break}}else{do if(d){b=i[346]|0;i[346]=b+255|b;b=k[68]|0;if(!(b&8)){k[70]=0;k[69]=0;d=k[79]|0;k[75]=d;k[73]=d;b=d+(k[80]|0)|0;k[72]=b;break}else{k[68]=b|32;b=0;G=191;break m}}else d=k[73]|0;while(0);if((b-d|0)>>>0<e>>>0){b=Ta[k[308>>2]&7](272,1004,e)|0;G=191;break}else{fe(d|0,1004,e|0)|0;k[73]=(k[73]|0)+e;break}}while(0);do if((G|0)==191){G=0;if((b|0)==(e|0))break;if(((b>>>0)/(e>>>0)|0|0)<1)break k}while(0);e=i[347]|0;do if(e<<24>>24==10)d=k[72]|0;else{b=k[73]|0;d=k[72]|0;if(b>>>0>=d>>>0)break;k[73]=b+1;i[b>>0]=10;break k}while(0);i[S>>0]=10;do if(!d){e=j[173]|0;b=(e&65535)<<24>>24;i[346]=b+255|b;b=k[68]|0;if(!(b&8)){k[70]=0;k[69]=0;c=k[79]|0;k[75]=c;k[73]=c;d=c+(k[80]|0)|0;k[72]=d;b=(e&65535)>>>8&255;G=202;break}else{k[68]=b|32;break}}else{c=k[73]|0;b=e;G=202}while(0);do if((G|0)==202){G=0;if(c>>>0>=d>>>0|b<<24>>24==10){Ta[k[308>>2]&7](272,S,1)|0;break}else{k[73]=c+1;i[c>>0]=10;break}}while(0)}while(0);E=k[J>>2]|0;b=E+24|0;d=k[b>>2]|0;i[d+2>>0]=1;i[(k[d+4>>2]|0)+29>>0]=1;i[(k[d+8>>2]|0)+29>>0]=1;if(i[E+28>>0]|0){E=d+28|0;d=d+16|0;k[S>>2]=k[d>>2];k[S+4>>2]=k[d+4>>2];k[S+8>>2]=k[d+8>>2];k[d>>2]=k[E>>2];k[d+4>>2]=k[E+4>>2];k[d+8>>2]=k[E+8>>2];k[E>>2]=k[S>>2];k[E+4>>2]=k[S+4>>2];k[E+8>>2]=k[S+8>>2];d=k[b>>2]|0}b=((k[W>>2]|0)-(k[Y>>2]|0)|0)/44|0;u=u+1|0;pc(H,I,d,(b|0)==(u|0));k[O>>2]=k[H>>2];k[O+4>>2]=k[H+4>>2];k[O+8>>2]=k[H+8>>2]}while(u>>>0<b>>>0)}else a=k[E>>2]|0;b=a;if(a){d=k[F>>2]|0;if((d|0)!=(a|0))k[F>>2]=d+(~((d+-32-b|0)>>>5)<<5);$d(a)}e=(k[87]|0)>-1;n:do if(!0){a=1012;G=216}else{b=1012;a=1012;while(1){if(!(i[b>>0]|0))break n;b=b+1|0;a=b;if(!(a&3)){a=b;G=216;break}}}while(0);if((G|0)==216){while(1){b=k[a>>2]|0;if(!((b&-2139062144^-2139062144)&b+-16843009))a=a+4|0;else break}if((b&255)<<24>>24)do a=a+1|0;while((i[a>>0]|0)!=0)}d=a-1012|0;a=k[72]|0;b=(a|0)==0;o:do if(e){do if(b){a=i[346]|0;i[346]=a+255|a;a=k[68]|0;if(!(a&8)){k[70]=0;k[69]=0;b=k[79]|0;k[75]=b;k[73]=b;a=b+(k[80]|0)|0;k[72]=a;break}else{k[68]=a|32;a=0;G=238;break o}}else b=k[73]|0;while(0);if((a-b|0)>>>0<d>>>0){a=Ta[k[308>>2]&7](272,1012,d)|0;G=238;break}else{fe(b|0,1012,d|0)|0;k[73]=(k[73]|0)+d;G=240;break}}else{do if(b){a=i[346]|0;i[346]=a+255|a;a=k[68]|0;if(!(a&8)){k[70]=0;k[69]=0;b=k[79]|0;k[75]=b;k[73]=b;a=b+(k[80]|0)|0;k[72]=a;break}else{k[68]=a|32;a=0;G=238;break o}}else b=k[73]|0;while(0);if((a-b|0)>>>0<d>>>0){a=Ta[k[308>>2]&7](272,1012,d)|0;G=238;break}else{fe(b|0,1012,d|0)|0;k[73]=(k[73]|0)+d;G=240;break}}while(0);if((G|0)==238)if(!((a|0)!=(d|0)?((a>>>0)/(d>>>0)|0|0)<1:0))G=240;do if((G|0)==240){d=i[347]|0;if(d<<24>>24!=10){a=k[73]|0;b=k[72]|0;if(a>>>0<b>>>0){k[73]=a+1;i[a>>0]=10;break}}else b=k[72]|0;i[S>>0]=10;do if(!b){d=j[173]|0;a=(d&65535)<<24>>24;i[346]=a+255|a;a=k[68]|0;if(!(a&8)){k[70]=0;k[69]=0;e=k[79]|0;k[75]=e;k[73]=e;b=e+(k[80]|0)|0;k[72]=b;a=(d&65535)>>>8&255;G=249;break}else{k[68]=a|32;break}}else{e=k[73]|0;a=d;G=249}while(0);do if((G|0)==249)if(e>>>0>=b>>>0|a<<24>>24==10){Ta[k[308>>2]&7](272,S,1)|0;break}else{k[73]=e+1;i[e>>0]=10;break}while(0)}while(0);jb(h,l,m,V);a=k[V>>2]|0;if(a){b=k[T>>2]|0;if((b|0)!=(a|0)){do{d=b+-12|0;k[T>>2]=d;e=k[d>>2]|0;c=e;if(!e)b=d;else{b=b+-8|0;d=k[b>>2]|0;if((d|0)!=(e|0))k[b>>2]=d+(~(((d+-12-c|0)>>>0)/12|0)*12|0);$d(e);b=k[T>>2]|0}}while((b|0)!=(a|0));a=k[V>>2]|0}$d(a)}a=k[X>>2]|0;if(a){b=k[U>>2]|0;if((b|0)!=(a|0))k[U>>2]=b+(~(((b+-44-a|0)>>>0)/44|0)*44|0);$d(a)}}else{k[a>>2]=0;k[a+4>>2]=0;k[a+8>>2]=0;jb(h,l,m,a)}a=k[Y>>2]|0;if(a){b=k[W>>2]|0;if((b|0)!=(a|0))k[W>>2]=b+(~(((b+-44-a|0)>>>0)/44|0)*44|0);$d(a)}o=k[Z>>2]|0;if(!o){r=_;return}n=Z+4|0;a=k[n>>2]|0;if((a|0)!=(o|0)){do{b=a;a=a+-12|0;e=k[a>>2]|0;c=e;if(e){b=b+-8|0;d=k[b>>2]|0;if((d|0)!=(e|0))k[b>>2]=d+(~((d+-8-c|0)>>>3)<<3);$d(e)}}while((a|0)!=(o|0));k[n>>2]=o}$d(o);r=_;return}
// EMSCRIPTEN_END_FUNCS
var Ta=[ze,yd,Sd,Qd,Rd,ze,ze,ze];var Ua=[Ae,Ed,Dd,Ae];var Va=[Be,qd,rd,td,wd,ud,vd,xd,Wd,Be,Be,Be,Be,Be,Be,Be];var Wa=[Ce,sd,Pd,Ce];var Xa=[De];var Ya=[Ee,Gd,Fd,Ee];var Za=[Fe,nb,pb,zc,Dc,Fe,Fe,Fe];var _a=[Ge,zd,Ad,Ge];return{___cxa_can_catch:Hd,_free:$d,___cxa_is_pointer_type:Id,_i64Add:ge,_memmove:he,_vCarve:lc,_i64Subtract:be,_memset:ce,_malloc:_d,_separateTabs:lb,_memcpy:fe,_bitshift64Lshr:de,_bitshift64Shl:ee,runPostSets:ae,_emscripten_replace_memory:Sa,stackAlloc:$a,stackSave:ab,stackRestore:bb,establishStackSpace:cb,setThrew:db,setTempRet0:gb,getTempRet0:hb,dynCall_iiii:re,dynCall_viiiii:se,dynCall_vi:te,dynCall_ii:ue,dynCall_v:ve,dynCall_viiiiii:we,dynCall_iii:xe,dynCall_viiii:ye}})
// EMSCRIPTEN_END_ASM
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var ___cxa_can_catch=Module["___cxa_can_catch"]=asm["___cxa_can_catch"];var _free=Module["_free"]=asm["_free"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var ___cxa_is_pointer_type=Module["___cxa_is_pointer_type"]=asm["___cxa_is_pointer_type"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _memmove=Module["_memmove"]=asm["_memmove"];var _vCarve=Module["_vCarve"]=asm["_vCarve"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var _memset=Module["_memset"]=asm["_memset"];var _malloc=Module["_malloc"]=asm["_malloc"];var _separateTabs=Module["_separateTabs"]=asm["_separateTabs"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _emscripten_replace_memory=Module["_emscripten_replace_memory"]=asm["_emscripten_replace_memory"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_viiiii=Module["dynCall_viiiii"]=asm["dynCall_viiiii"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];var dynCall_viiiiii=Module["dynCall_viiiiii"]=asm["dynCall_viiiiii"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];var dynCall_viiii=Module["dynCall_viiii"]=asm["dynCall_viiii"];Runtime.stackAlloc=asm["stackAlloc"];Runtime.stackSave=asm["stackSave"];Runtime.stackRestore=asm["stackRestore"];Runtime.establishStackSpace=asm["establishStackSpace"];Runtime.setTempRet0=asm["setTempRet0"];Runtime.getTempRet0=asm["getTempRet0"];function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initialStackTop;var preloadStartTime=null;var calledMain=false;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};Module["callMain"]=Module.callMain=function callMain(args){assert(runDependencies==0,"cannot call main when async dependencies remain! (listen on __ATMAIN__)");assert(__ATPRERUN__.length==0,"cannot call main when preRun functions remain to be called");args=args||[];ensureInitRuntime();var argc=args.length+1;function pad(){for(var i=0;i<4-1;i++){argv.push(0)}}var argv=[allocate(intArrayFromString(Module["thisProgram"]),"i8",ALLOC_NORMAL)];pad();for(var i=0;i<argc-1;i=i+1){argv.push(allocate(intArrayFromString(args[i]),"i8",ALLOC_NORMAL));pad()}argv.push(0);argv=allocate(argv,"i32",ALLOC_NORMAL);try{var ret=Module["_main"](argc,argv,0);exit(ret,true)}catch(e){if(e instanceof ExitStatus){return}else if(e=="SimulateInfiniteLoop"){Module["noExitRuntime"]=true;return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}finally{calledMain=true}};function run(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;ensureInitRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();if(Module["_main"]&&shouldRunNow)Module["callMain"](args);postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout((function(){setTimeout((function(){Module["setStatus"]("")}),1);doRun()}),1)}else{doRun()}}Module["run"]=Module.run=run;function exit(status,implicit){if(implicit&&Module["noExitRuntime"]){return}if(Module["noExitRuntime"]){}else{ABORT=true;EXITSTATUS=status;STACKTOP=initialStackTop;exitRuntime();if(Module["onExit"])Module["onExit"](status)}if(ENVIRONMENT_IS_NODE){process["stdout"]["once"]("drain",(function(){process["exit"](status)}));console.log(" ");setTimeout((function(){process["exit"](status)}),500)}else if(ENVIRONMENT_IS_SHELL&&typeof quit==="function"){quit(status)}throw new ExitStatus(status)}Module["exit"]=Module.exit=exit;var abortDecorators=[];function abort(what){if(what!==undefined){Module.print(what);Module.printErr(what);what=JSON.stringify(what)}else{what=""}ABORT=true;EXITSTATUS=1;var extra="\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";var output="abort("+what+") at "+stackTrace()+extra;if(abortDecorators){abortDecorators.forEach((function(decorator){output=decorator(output,what)}))}throw output}Module["abort"]=Module.abort=abort;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}var shouldRunNow=true;if(Module["noInitialRun"]){shouldRunNow=false}Module["noExitRuntime"]=true;run()