123456789101112131415161718192021222324252627282930313233343536 |
- var DracoDecoderModule = (() => {
- var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
- if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
- return (
- function(DracoDecoderModule) {
- DracoDecoderModule = DracoDecoderModule || {};
- var Module=typeof DracoDecoderModule!="undefined"?DracoDecoderModule:{};var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(function(resolve,reject){readyPromiseResolve=resolve;readyPromiseReject=reject});var isRuntimeInitialized=false;var isModuleParsed=false;Module["onRuntimeInitialized"]=function(){isRuntimeInitialized=true;if(isModuleParsed){if(typeof Module["onModuleLoaded"]==="function"){Module["onModuleLoaded"](Module)}}};Module["onModuleParsed"]=function(){isModuleParsed=true;if(isRuntimeInitialized){if(typeof Module["onModuleLoaded"]==="function"){Module["onModuleLoaded"](Module)}}};function isVersionSupported(versionString){if(typeof versionString!=="string")return false;const version=versionString.split(".");if(version.length<2||version.length>3)return false;if(version[0]==1&&version[1]>=0&&version[1]<=5)return true;if(version[0]!=0||version[1]>10)return false;return true}Module["isVersionSupported"]=isVersionSupported;var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var ENVIRONMENT_IS_WEB=typeof window=="object";var ENVIRONMENT_IS_WORKER=typeof importScripts=="function";var ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;function logExceptionOnExit(e){if(e instanceof ExitStatus)return;let toLog=e;err("exiting due to exception: "+toLog)}var fs;var nodePath;var requireNodeFS;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}requireNodeFS=()=>{if(!nodePath){fs=require("fs");nodePath=require("path")}};read_=function shell_read(filename,binary){var ret=tryParseAsDataURI(filename);if(ret){return binary?ret:ret.toString()}requireNodeFS();filename=nodePath["normalize"](filename);return fs.readFileSync(filename,binary?undefined:"utf8")};readBinary=filename=>{var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}return ret};readAsync=(filename,onload,onerror)=>{var ret=tryParseAsDataURI(filename);if(ret){onload(ret)}requireNodeFS();filename=nodePath["normalize"](filename);fs.readFile(filename,function(err,data){if(err)onerror(err);else onload(data.buffer)})};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);quit_=(status,toThrow)=>{if(keepRuntimeAlive()){process["exitCode"]=status;throw toThrow}logExceptionOnExit(toThrow);process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=url=>{try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText}catch(err){var data=tryParseAsDataURI(url);if(data){return intArrayToString(data)}throw err}};if(ENVIRONMENT_IS_WORKER){readBinary=url=>{try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}catch(err){var data=tryParseAsDataURI(url);if(data){return data}throw err}}}readAsync=(url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=()=>{if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=title=>document.title=title}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];var noExitRuntime=Module["noExitRuntime"]||true;var WebAssembly={Memory:function(opts){this.buffer=new ArrayBuffer(opts["initial"]*65536)},Module:function(binary){},Instance:function(module,info){this.exports=(
- // EMSCRIPTEN_START_ASM
- function instantiate(la){function c(d){d.set=function(a,b){this[a]=b};d.get=function(a){return this[a]};return d}var e;var f=new Uint8Array(123);for(var a=25;a>=0;--a){f[48+a]=52+a;f[65+a]=a;f[97+a]=26+a}f[43]=62;f[47]=63;function l(m,n,o){var g,h,a=0,i=n,j=o.length,k=n+(j*3>>2)-(o[j-2]=="=")-(o[j-1]=="=");for(;a<j;a+=4){g=f[o.charCodeAt(a+1)];h=f[o.charCodeAt(a+2)];m[i++]=f[o.charCodeAt(a)]<<2|g>>4;if(i<k)m[i++]=g<<4|h>>2;if(i<k)m[i++]=h<<6|f[o.charCodeAt(a+3)]}}function p(q){l(e,1028,"YAQAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAE41ZHJhY28yOEF0dHJpYnV0ZU9jdGFoZWRyb25UcmFuc2Zvcm1FAADYKwAAOAQAAOAGAABfX25leHRfcHJpbWUgb3ZlcmZsb3cAdmVjdG9yAHN0ZDo6ZXhjZXB0aW9uAHNraXBfYXR0cmlidXRlX3RyYW5zZm9ybQBiYWRfYXJyYXlfbmV3X2xlbmd0aABiYXNpY19zdHJpbmcAc3RkOjpiYWRfYWxsb2MARFJBQ08AVXNpbmcgaW5jb21wYXRpYmxlIGRlY29kZXIgZm9yIHRoZSBpbnB1dCBnZW9tZXRyeS4ARmFpbGVkIHRvIGRlY29kZSBwb2ludCBhdHRyaWJ1dGVzLgBGYWlsZWQgdG8gaW5pdGlhbGl6ZSB0aGUgZGVjb2Rlci4AVW5zdXBwb3J0ZWQgbWlub3IgdmVyc2lvbi4AVW5zdXBwb3J0ZWQgbWFqb3IgdmVyc2lvbi4ASW5wdXQgaXMgbm90IGEgbWVzaC4AVW5zdXBwb3J0ZWQgZ2VvbWV0cnkgdHlwZS4ATm90IGEgRHJhY28gZmlsZS4AVW5zdXBwb3J0ZWQgZW5jb2RpbmcgbWV0aG9kLgBGYWlsZWQgdG8gZGVjb2RlIG1ldGFkYXRhLgBGYWlsZWQgdG8gZGVjb2RlIGdlb21ldHJ5IGRhdGEuAFB1cmUgdmlydHVhbCBmdW5jdGlvbiBjYWxsZWQhAAAAAAAAALQGAAAPAAAAEAAAABEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcAAAALAAAAGAAAABkAAABONWRyYWNvMzBBdHRyaWJ1dGVRdWFudGl6YXRpb25UcmFuc2Zvcm1FAAAAANgrAACIBgAA4AYAAE41ZHJhY28xOEF0dHJpYnV0ZVRyYW5zZm9ybUUAAAAAsCsAAMAGAAAAAAAAbAcAABoAAAAbAAAAHAAAAB0AAAAeAAAAHwAAACAAAAAhAAAAIgAAACMAAAAkAAAAJQAAAE41ZHJhY28xN0F0dHJpYnV0ZXNEZWNvZGVyRQBONWRyYWNvMjZBdHRyaWJ1dGVzRGVjb2RlckludGVyZmFjZUUAAAAAsCsAADwHAADYKwAAIAcAAGQHAAAAAAAAzAcAACYAAAAnAAAAKAAAACkAAAAqAAAAKwAAACwAAAAtAAAALgAAAE41ZHJhY28yNlNlcXVlbnRpYWxBdHRyaWJ1dGVEZWNvZGVyRQAAAACwKwAApAcAAP////8AAAAARAgAAC8AAAAwAAAAHAAAADEAAAAyAAAAHwAAACAAAAAhAAAAMwAAADQAAAA1AAAANgAAADcAAABONWRyYWNvMzdTZXF1ZW50aWFsQXR0cmlidXRlRGVjb2RlcnNDb250cm9sbGVyRQDYKwAAFAgAAGwHAAAAAAAAuAgAADgAAAA5AAAAOgAAACkAAAAqAAAAKwAAADsAAAAtAAAAPAAAAD0AAAA+AAAAPwAAAEAAAABONWRyYWNvMzNTZXF1ZW50aWFsSW50ZWdlckF0dHJpYnV0ZURlY29kZXJFANgrAACMCAAAzAcAAAAAAABECwAAQQAAAEIAAABDAAAARAAAAEUAAABGAAAARwAAAEgAAABJAAAASgAAAEsAAABMAAAATjVkcmFjbzQwTWVzaFByZWRpY3Rpb25TY2hlbWVQYXJhbGxlbG9ncmFtRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY28yN01lc2hQcmVkaWN0aW9uU2NoZW1lRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY28yM1ByZWRpY3Rpb25TY2hlbWVEZWNvZGVySWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRUVFAE41ZHJhY28zN1ByZWRpY3Rpb25TY2hlbWVUeXBlZERlY29kZXJJbnRlcmZhY2VJaWlFRQBONWRyYWNvMzJQcmVkaWN0aW9uU2NoZW1lRGVjb2RlckludGVyZmFjZUUATjVkcmFjbzI1UHJlZGljdGlvblNjaGVtZUludGVyZmFjZUUAsCsAAOgKAADYKwAAvQoAAAwLAADYKwAAiQoAABQLAADYKwAANQoAACALAADYKwAAnwkAACwLAADYKwAA/AgAADgLAAAAAAAAOAsAAEEAAABNAAAAIwAAAEQAAAAjAAAARgAAAEcAAABIAAAASQAAAEoAAABLAAAAIwAAAAAAAAAsCwAAQQAAAE4AAAAjAAAARAAAACMAAABGAAAARwAAAEgAAABJAAAASgAAAEsAAAAjAAAAAAAAAKwMAABPAAAAUAAAAFEAAABEAAAAUgAAAEYAAABHAAAASAAAAEkAAABKAAAAUwAAAFQAAABONWRyYWNvNTZNZXNoUHJlZGljdGlvblNjaGVtZUNvbnN0cmFpbmVkTXVsdGlQYXJhbGxlbG9ncmFtRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAADYKwAA+AsAADgLAAAAAAAAmA0AAFUAAABWAAAAVwAAAEQAAABYAAAAWQAAAFoAAABbAAAASQAAAEoAAABcAAAAXQAAAE41ZHJhY280NE1lc2hQcmVkaWN0aW9uU2NoZW1lVGV4Q29vcmRzUG9ydGFibGVEZWNvZGVySWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRUVFRUUAANgrAADwDAAAOAsAAAAAAACEDgAAXgAAAF8AAABgAAAARAAAAGEAAABiAAAAYwAAAGQAAABJAAAASgAAAGUAAABmAAAATjVkcmFjbzQyTWVzaFByZWRpY3Rpb25TY2hlbWVHZW9tZXRyaWNOb3JtYWxEZWNvZGVySWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRUVFRUUAAAAA2CsAANwNAAA4CwAAAAAAAAwQAABnAAAAaAAAAGkAAABqAAAAawAAAE41ZHJhY280OE1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsUHJlZGljdG9yQXJlYUlpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY280OE1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsUHJlZGljdG9yQmFzZUlpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAAAAsCsAAFcPAADYKwAArA4AAAQQAAAAAAAABBAAAGcAAABsAAAAIwAAAGoAAAAjAAAAAAAAAJgRAABBAAAAbQAAAG4AAABEAAAAbwAAAEYAAABHAAAASAAAAEkAAABKAAAASwAAAHAAAABONWRyYWNvNDBNZXNoUHJlZGljdGlvblNjaGVtZVBhcmFsbGVsb2dyYW1EZWNvZGVySWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzExQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvMjdNZXNoUHJlZGljdGlvblNjaGVtZURlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAADYKwAAAhEAACwLAADYKwAAbBAAAIwRAAAAAAAAjBEAAEEAAABxAAAAIwAAAEQAAAAjAAAARgAAAEcAAABIAAAASQAAAEoAAABLAAAAIwAAAAAAAAC8EgAAcgAAAHMAAAB0AAAARAAAAHUAAABGAAAARwAAAEgAAABJAAAASgAAAHYAAAB3AAAATjVkcmFjbzU2TWVzaFByZWRpY3Rpb25TY2hlbWVDb25zdHJhaW5lZE11bHRpUGFyYWxsZWxvZ3JhbURlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAAAA2CsAABQSAACMEQAAAAAAAJwTAAB4AAAAeQAAAHoAAABEAAAAewAAAHwAAAB9AAAAfgAAAEkAAABKAAAAfwAAAIAAAABONWRyYWNvNDRNZXNoUHJlZGljdGlvblNjaGVtZVRleENvb3Jkc1BvcnRhYmxlRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUAAADYKwAAABMAAIwRAAAAAAAAeBQAAIEAAACCAAAAgwAAAEQAAACEAAAAhQAAAIYAAACHAAAASQAAAEoAAACIAAAAiQAAAE41ZHJhY280Mk1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUA2CsAAOATAACMEQAAAAAAAOQVAACKAAAAiwAAAIwAAACNAAAAjgAAAE41ZHJhY280OE1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsUHJlZGljdG9yQXJlYUlpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUATjVkcmFjbzQ4TWVzaFByZWRpY3Rpb25TY2hlbWVHZW9tZXRyaWNOb3JtYWxQcmVkaWN0b3JCYXNlSWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzExQ29ybmVyVGFibGVFRUVFRQCwKwAAPhUAANgrAACgFAAA3BUAAAAAAADcFQAAigAAAI8AAAAjAAAAjQAAACMAAAAAAAAAoBYAAEEAAACQAAAAkQAAAEQAAACSAAAARgAAAEcAAABIAAAASQAAAEoAAABLAAAAkwAAAE41ZHJhY28yOFByZWRpY3Rpb25TY2hlbWVEZWx0YURlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFRUUAAAAA2CsAAEQWAAAsCwAAAAAAABQXAACUAAAAlQAAAJYAAAApAAAAKgAAAJcAAAA7AAAALQAAADwAAACYAAAAmQAAAJoAAACbAAAATjVkcmFjbzMyU2VxdWVudGlhbE5vcm1hbEF0dHJpYnV0ZURlY29kZXJFAADYKwAA6BYAALgIAAAAAAAASBkAAJwAAACdAAAAngAAAJ8AAACgAAAAoQAAAKIAAACjAAAApAAAAKUAAACmAAAApwAAAE41ZHJhY280Mk1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsRGVjb2RlcklpTlNfNjJQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkNhbm9uaWNhbGl6ZWREZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY28yN01lc2hQcmVkaWN0aW9uU2NoZW1lRGVjb2RlcklpTlNfNjJQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkNhbm9uaWNhbGl6ZWREZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY28yM1ByZWRpY3Rpb25TY2hlbWVEZWNvZGVySWlOU182MlByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uQ2Fub25pY2FsaXplZERlY29kaW5nVHJhbnNmb3JtSWlFRUVFAADYKwAAwxgAACALAADYKwAAFRgAADAZAADYKwAAWBcAADwZAAAAAAAAABsAAKgAAACpAAAAqgAAAKsAAACsAAAATjVkcmFjbzQ4TWVzaFByZWRpY3Rpb25TY2hlbWVHZW9tZXRyaWNOb3JtYWxQcmVkaWN0b3JBcmVhSWlOU182MlByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uQ2Fub25pY2FsaXplZERlY29kaW5nVHJhbnNmb3JtSWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRUVFRUUATjVkcmFjbzQ4TWVzaFByZWRpY3Rpb25TY2hlbWVHZW9tZXRyaWNOb3JtYWxQcmVkaWN0b3JCYXNlSWlOU182MlByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uQ2Fub25pY2FsaXplZERlY29kaW5nVHJhbnNmb3JtSWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRUVFRUUAAACwKwAAMxoAANgrAABwGQAA+BoAAAAAAACkHAAArQAAAK4AAACvAAAAnwAAALAAAACxAAAAsgAAALMAAACkAAAApQAAALQAAAC1AAAATjVkcmFjbzQyTWVzaFByZWRpY3Rpb25TY2hlbWVHZW9tZXRyaWNOb3JtYWxEZWNvZGVySWlOU182MlByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uQ2Fub25pY2FsaXplZERlY29kaW5nVHJhbnNmb3JtSWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzExQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvMjdNZXNoUHJlZGljdGlvblNjaGVtZURlY29kZXJJaU5TXzYyUHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25DYW5vbmljYWxpemVkRGVjb2RpbmdUcmFuc2Zvcm1JaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAAAAANgrAAD0GwAAMBkAANgrAABEGwAAmBwAAAAAAABAHgAAtgAAALcAAAC4AAAAuQAAALoAAABONWRyYWNvNDhNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbFByZWRpY3RvckFyZWFJaU5TXzYyUHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25DYW5vbmljYWxpemVkRGVjb2RpbmdUcmFuc2Zvcm1JaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY280OE1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsUHJlZGljdG9yQmFzZUlpTlNfNjJQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkNhbm9uaWNhbGl6ZWREZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUAsCsAAIIdAADYKwAAzBwAADgeAAAAAAAA+B4AALsAAAC8AAAAvQAAAJ8AAAC+AAAAvwAAAMAAAADBAAAApAAAAKUAAADCAAAAwwAAAE41ZHJhY28yOFByZWRpY3Rpb25TY2hlbWVEZWx0YURlY29kZXJJaU5TXzYyUHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25DYW5vbmljYWxpemVkRGVjb2RpbmdUcmFuc2Zvcm1JaUVFRUUAAAAA2CsAAIQeAAAwGQAAAAAAAHwfAADEAAAAxQAAAMYAAAApAAAAKgAAAMcAAAA7AAAALQAAADwAAADIAAAAPgAAAD8AAADJAAAAygAAAMsAAABONWRyYWNvMzhTZXF1ZW50aWFsUXVhbnRpemF0aW9uQXR0cmlidXRlRGVjb2RlckUAAAAA2CsAAEgfAAC4CAAAAAAAANwfAADMAAAAzQAAAM4AAADPAAAAIwAAANAAAADRAAAA0gAAANMAAADUAAAA1QAAANYAAAAjAAAATjVkcmFjbzExTWVzaERlY29kZXJFAAAA2CsAAMQfAACcJwAAAAAAAEggAADXAAAA2AAAAM4AAADZAAAA2gAAANAAAADRAAAA0gAAANsAAADcAAAA3QAAAN4AAADfAAAATjVkcmFjbzIyTWVzaEVkZ2VicmVha2VyRGVjb2RlckUAAAAA2CsAACQgAADcHwAAAAAAADwhAADgAAAA4QAAAOIAAADjAAAA5AAAAOUAAADmAAAA5wAAAOgAAADpAAAA/////wAAAACcIQAA6gAAAOsAAADsAAAA7QAAAO4AAADvAAAA8AAAAPEAAADyAAAA8wAAAE41ZHJhY28yNk1lc2hFZGdlYnJlYWtlckRlY29kZXJJbXBsSU5TXzMxTWVzaEVkZ2VicmVha2VyVHJhdmVyc2FsRGVjb2RlckVFRQBONWRyYWNvMzVNZXNoRWRnZWJyZWFrZXJEZWNvZGVySW1wbEludGVyZmFjZUUAAACwKwAABCEAANgrAAC4IAAANCEAAE41ZHJhY28yNk1lc2hFZGdlYnJlYWtlckRlY29kZXJJbXBsSU5TXzM4TWVzaEVkZ2VicmVha2VyVHJhdmVyc2FsVmFsZW5jZURlY29kZXJFRUUAANgrAABIIQAANCEAAAAAAACYIgAA9AAAAPUAAAD2AAAATjVkcmFjbzE5RGVwdGhGaXJzdFRyYXZlcnNlcklOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVOU18zNk1lc2hBdHRyaWJ1dGVJbmRpY2VzRW5jb2RpbmdPYnNlcnZlcklTMV9FRUVFAE41ZHJhY28xM1RyYXZlcnNlckJhc2VJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzFfRUVFRQCwKwAAKSIAANgrAAC8IQAAkCIAAAAAAACQIgAA9wAAAPgAAAD2");l(e,8900,"AQAAAAMAAAAFAAAABwAAAAAAAACYIwAA+QAAAPoAAAD7AAAA/AAAAE41ZHJhY28yMk1lc2hUcmF2ZXJzYWxTZXF1ZW5jZXJJTlNfMjhNYXhQcmVkaWN0aW9uRGVncmVlVHJhdmVyc2VySU5TXzExQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzJfRUVFRUVFAE41ZHJhY28xNVBvaW50c1NlcXVlbmNlckUAAAAAsCsAAHMjAADYKwAA7CIAAJAjAAD/////AAAAAIgkAAD9AAAA/gAAAP8AAABONWRyYWNvMjhNYXhQcmVkaWN0aW9uRGVncmVlVHJhdmVyc2VySU5TXzExQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzFfRUVFRQBONWRyYWNvMTNUcmF2ZXJzZXJCYXNlSU5TXzExQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzFfRUVFRQAAsCsAACUkAADYKwAAvCMAAIAkAAAAAAAAgCQAAAABAAABAQAA/wAAAAAAAABAJQAAAgEAAAMBAAAEAQAABQEAAE41ZHJhY28yMk1lc2hUcmF2ZXJzYWxTZXF1ZW5jZXJJTlNfMTlEZXB0aEZpcnN0VHJhdmVyc2VySU5TXzExQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzJfRUVFRUVFAAAA2CsAAMAkAACQIwAAAAAAAMAlAAAGAQAABwEAAP8AAABONWRyYWNvMTlEZXB0aEZpcnN0VHJhdmVyc2VySU5TXzExQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzFfRUVFRQDYKwAAYCUAAIAkAAAAAAAAcCYAAAgBAAAJAQAACgEAAAsBAABONWRyYWNvMjJNZXNoVHJhdmVyc2FsU2VxdWVuY2VySU5TXzE5RGVwdGhGaXJzdFRyYXZlcnNlcklOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVOU18zNk1lc2hBdHRyaWJ1dGVJbmRpY2VzRW5jb2RpbmdPYnNlcnZlcklTMl9FRUVFRUUAANgrAADkJQAAkCM=");l(e,9860,"3CYAAMwAAAAMAQAAzgAAAM8AAAANAQAA0AAAANEAAADSAAAA0wAAANQAAADVAAAA1gAAAA4BAABONWRyYWNvMjFNZXNoU2VxdWVudGlhbERlY29kZXJFANgrAAC8JgAA3B8AAAAAAAAcJwAADwEAABABAAARAQAAEgEAAE41ZHJhY28xNUxpbmVhclNlcXVlbmNlckUAAADYKwAAACcAAJAjAAAAAAAAnCcAAMwAAAATAQAAFAEAAM8AAAAjAAAAFQEAANEAAADSAAAA0w==");l(e,10080,"RmFpbGVkIHRvIHBhcnNlIERyYWNvIGhlYWRlci4ATjVkcmFjbzE3UG9pbnRDbG91ZERlY29kZXJFAAAAsCsAAH4nAAABAAAAAQAAAAIAAAACAAAABAAAAAQAAAAIAAAACAAAAAQAAAAIAAAAAQ==");l(e,10211,"wAAAAMAAAADAAAAAwP//////////AAAAACAoAAAWAQAAFwEAABgBAAAZAQAATjVkcmFjbzRNZXNoRQAAANgrAAAQKAAAZCgAAP////8AAAAAAAAAAGQoAAAaAQAAGwEAABwBAAAdAQAATjVkcmFjbzEwUG9pbnRDbG91ZEUAAAAAsCsAAEwo");l(e,10356,"AgAAAAMAAAAFAAAABwAAAAsAAAANAAAAEQAAABMAAAAXAAAAHQAAAB8AAAAlAAAAKQAAACsAAAAvAAAANQAAADsAAAA9AAAAQwAAAEcAAABJAAAATwAAAFMAAABZAAAAYQAAAGUAAABnAAAAawAAAG0AAABxAAAAfwAAAIMAAACJAAAAiwAAAJUAAACXAAAAnQAAAKMAAACnAAAArQAAALMAAAC1AAAAvwAAAMEAAADFAAAAxwAAANMAAAABAAAACwAAAA0AAAARAAAAEwAAABcAAAAdAAAAHwAAACUAAAApAAAAKwAAAC8AAAA1AAAAOwAAAD0AAABDAAAARwAAAEkAAABPAAAAUwAAAFkAAABhAAAAZQAAAGcAAABrAAAAbQAAAHEAAAB5AAAAfwAAAIMAAACJAAAAiwAAAI8AAACVAAAAlwAAAJ0AAACjAAAApwAAAKkAAACtAAAAswAAALUAAAC7AAAAvwAAAMEAAADFAAAAxwAAANEAAAAwMDAxMDIwMzA0MDUwNjA3MDgwOTEwMTExMjEzMTQxNTE2MTcxODE5MjAyMTIyMjMyNDI1MjYyNzI4MjkzMDMxMzIzMzM0MzUzNjM3MzgzOTQwNDE0MjQzNDQ0NTQ2NDc0ODQ5NTA1MTUyNTM1NDU1NTY1NzU4NTk2MDYxNjI2MzY0NjU2NjY3Njg2OTcwNzE3MjczNzQ3NTc2Nzc3ODc5ODA4MTgyODM4NDg1ODY4Nzg4ODk5MDkxOTI5Mzk0OTU5Njk3OTg5OQ==");l(e,10948,"CgAAAGQAAADoAwAAECcAAKCGAQBAQg8AgJaYAADh9QUAypo7TjEwX19jeHhhYml2MTE2X19zaGltX3R5cGVfaW5mb0UAAAAA2CsAAOgqAABsLQAATjEwX19jeHhhYml2MTE3X19jbGFzc190eXBlX2luZm9FAAAA2CsAABgrAAAMKwAATjEwX19jeHhhYml2MTE3X19wYmFzZV90eXBlX2luZm9FAAAA2CsAAEgrAAAMKwAATjEwX19jeHhhYml2MTE5X19wb2ludGVyX3R5cGVfaW5mb0UA2CsAAHgrAABsKwAAAAAAADwrAAAeAQAAHwEAACABAAAhAQAAIgEAACMBAAAkAQAAJQEAAAAAAAAgLAAAHgEAACYBAAAgAQAAIQEAACIBAAAnAQAAKAEAACkBAABOMTBfX2N4eGFiaXYxMjBfX3NpX2NsYXNzX3R5cGVfaW5mb0UAAAAA2CsAAPgrAAA8KwAAAAAAAJAsAAAOAAAAKgEAACsBAAAAAAAAuCwAAA4AAAAsAQAALQEAAAAAAAB4LAAADgAAAC4BAAAvAQAAU3Q5ZXhjZXB0aW9uAAAAALArAABoLAAAU3Q5YmFkX2FsbG9jAAAAANgrAACALAAAeCwAAFN0MjBiYWRfYXJyYXlfbmV3X2xlbmd0aAAAAADYKwAAnCwAAJAsAAAAAAAA6CwAAAEAAAAwAQAAMQEAAFN0MTFsb2dpY19lcnJvcgDYKwAA2CwAAHgsAAAAAAAAHC0AAAEAAAAyAQAAMQEAAFN0MTJsZW5ndGhfZXJyb3IAAAAA2CsAAAgtAADoLAAAAAAAAFAtAAABAAAAMwEAADEBAABTdDEyb3V0X29mX3JhbmdlAAAAANgrAAA8LQAA6CwAAFN0OXR5cGVfaW5mbwAAAACwKwAAXC0=");l(e,11636,"4C9Q")}var r=new ArrayBuffer(16);var s=new Int32Array(r);var t=new Float32Array(r);var u=new Float64Array(r);function v(w){t[2]=w}function x(y){return s[y]}function ja(ka){var z=ka.a;var A=z.buffer;z.grow=ha;var B=new Int8Array(A);var C=new Int16Array(A);var D=new Int32Array(A);var E=new Uint8Array(A);var F=new Uint16Array(A);var G=new Uint32Array(A);var H=new Float32Array(A);var I=new Float64Array(A);var J=Math.imul;var K=Math.fround;var L=Math.abs;var M=Math.clz32;var N=Math.min;var O=Math.max;var P=Math.floor;var Q=Math.ceil;var R=Math.trunc;var S=Math.sqrt;var T=ka.abort;var U=NaN;var V=Infinity;var W=ka.b;var X=ka.c;var Y=ka.d;var Z=ka.e;var _=ka.f;var $=5255136;var aa=0;
- // EMSCRIPTEN_START_FUNCS
- function jc(a,b,c,d){var 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;if(!a){return 1}e=D[c+20>>2];h=D[c+12>>2];f=D[c+16>>2];a:{if((e|0)>=(h|0)&f>>>0>=G[c+8>>2]|(e|0)>(h|0)){break a}h=E[f+D[c>>2]|0];f=f+1|0;e=f?e:e+1|0;D[c+16>>2]=f;D[c+20>>2]=e;b:{switch(h|0){case 0:m=a;e=b;h=d;a=0;d=0;j=$+-64|0;$=j;D[j+56>>2]=0;D[j+48>>2]=0;D[j+52>>2]=0;D[j+40>>2]=0;D[j+44>>2]=0;D[j+32>>2]=0;D[j+36>>2]=0;D[j+24>>2]=0;D[j+28>>2]=0;D[j+16>>2]=0;D[j+20>>2]=0;D[j+8>>2]=0;D[j+12>>2]=0;c:{if(!Kd(j+8|0,c)){break c}if(!Jd(j+8|0,c)|(D[j+20>>2]?0:m)){break c}ec(c,0,0);if(m){n=e<<2;r=D[j+36>>2];s=D[j+48>>2];t=D[j+24>>2];while(1){l=D[j+56>>2];d:{if(l>>>0>16383){break d}a=D[j+52>>2];while(1){if((a|0)<=0){break d}a=a-1|0;D[j+52>>2]=a;l=E[a+s|0]|l<<8;D[j+56>>2]=l;if(l>>>0<16384){continue}break}}a=l&4095;i=D[(a<<2)+t>>2];b=(i<<3)+r|0;D[j+56>>2]=(J(D[b>>2],l>>>12|0)+a|0)-D[b+4>>2];e:{if((e|0)<=0){break e}a=0;if(!E[c+36|0]|i>>>0>32){break c}if(!i){qa(h+(d<<2)|0,0,n);d=d+e|0;break e}u=i&-2;x=i&1;q=d+e|0;b=D[c+32>>2];g=D[c+28>>2];k=D[c+24>>2];while(1){l=0;a=b;f=0;p=0;if((i|0)!=1){while(1){o=k+(a>>>3|0)|0;f:{if(o>>>0>=g>>>0){o=0;break f}o=E[o|0];b=a+1|0;D[c+32>>2]=b;o=o>>>(a&7)&1;a=b}o=o<<l|f;f=0;v=k+(a>>>3|0)|0;if(v>>>0<g>>>0){f=E[v|0];b=a+1|0;D[c+32>>2]=b;f=f>>>(a&7)&1;a=b}v=l|1;l=l+2|0;f=o|f<<v;p=p+2|0;if((u|0)!=(p|0)){continue}break}}p=h+(d<<2)|0;if(x){o=k+(a>>>3|0)|0;if(o>>>0<g>>>0){o=E[o|0];b=a+1|0;D[c+32>>2]=b;a=o>>>(a&7)&1}else{a=0}f=a<<l|f}D[p>>2]=f;d=d+1|0;if((q|0)!=(d|0)){continue}break}d=q}w=e+w|0;if(m>>>0>w>>>0){continue}break}}B[c+36|0]=0;l=D[c+20>>2];a=0;b=D[c+32>>2]+7|0;a=b>>>0<7?1:a;e=a<<29|b>>>3;b=e+D[c+16>>2]|0;a=(a>>>3|0)+l|0;D[c+16>>2]=b;D[c+20>>2]=b>>>0<e>>>0?a+1|0:a;a=1}b=D[j+36>>2];if(b){D[j+40>>2]=b;ma(b)}b=D[j+24>>2];if(b){D[j+28>>2]=b;ma(b)}b=D[j+8>>2];if(b){D[j+12>>2]=b;ma(b)}$=j- -64|0;return a;case 1:break b;default:break a}}b=0;e=D[c+20>>2];h=D[c+12>>2];f=D[c+16>>2];g:{if((e|0)>=(h|0)&f>>>0>=G[c+8>>2]|(e|0)>(h|0)){break g}h=E[f+D[c>>2]|0];f=f+1|0;e=f?e:e+1|0;D[c+16>>2]=f;D[c+20>>2]=e;h:{switch(h-1|0){case 8:h=a;q=d;e=$+-64|0;$=e;D[e+56>>2]=0;D[e+48>>2]=0;D[e+52>>2]=0;D[e+40>>2]=0;D[e+44>>2]=0;D[e+32>>2]=0;D[e+36>>2]=0;D[e+24>>2]=0;D[e+28>>2]=0;D[e+16>>2]=0;D[e+20>>2]=0;D[e+8>>2]=0;D[e+12>>2]=0;j=e+8|0;i:{j:{if(!F[c+38>>1]){break j}if(!Wa(1,j+12|0,c)){break j}a=D[c+8>>2];b=D[c+16>>2];d=a-b|0;i=D[j+12>>2];a=D[c+12>>2]-(D[c+20>>2]+(a>>>0<b>>>0)|0)|0;if(d>>>0<i>>>6>>>0&(a|0)<=0|(a|0)<0){break j}b=D[j>>2];a=D[j+4>>2]-b>>2;k:{if(a>>>0<i>>>0){ra(j,i-a|0);i=D[j+12>>2];break k}if(a>>>0<=i>>>0){break k}D[j+4>>2]=b+(i<<2)}f=1;if(!i){break i}g=D[c+16>>2];d=D[c+20>>2];n=D[j>>2];r=D[c+8>>2];k=D[c+12>>2];b=0;while(1){f=0;if((d|0)>=(k|0)&g>>>0>=r>>>0|(d|0)>(k|0)){break i}s=D[c>>2];o=E[s+g|0];a=d;d=g+1|0;a=d?a:a+1|0;g=d;D[c+16>>2]=d;d=a;D[c+20>>2]=a;a=o>>>2|0;f=0;l:{m:{n:{o:{t=o&3;switch(t|0){case 0:break m;case 3:break o;default:break n}}a=a+b|0;f=0;if(a>>>0>=i>>>0){break i}qa(n+(b<<2)|0,0,(o&252)+4|0);b=a;break l}while(1){if((d|0)>=(k|0)&g>>>0>=r>>>0|(d|0)>(k|0)){break j}i=E[g+s|0];g=g+1|0;d=g?d:d+1|0;D[c+16>>2]=g;D[c+20>>2]=d;a=i<<(f<<3|6)|a;f=f+1|0;if((t|0)!=(f|0)){continue}break}}D[n+(b<<2)>>2]=a}b=b+1|0;i=D[j+12>>2];if(b>>>0<i>>>0){continue}break}a=j+16|0;o=D[j>>2];d=D[j+16>>2];b=D[j+20>>2]-d|0;p:{if(b>>>0<=32767){ra(a,8192-(b>>>2|0)|0);break p}if((b|0)==32768){break p}D[j+20>>2]=d+32768}d=j+28|0;b=D[d>>2];f=D[j+32>>2]-b>>3;q:{if(f>>>0<i>>>0){db(d,i-f|0);b=D[d>>2];break q}if(f>>>0>i>>>0){D[j+32>>2]=(i<<3)+b}if(!i){break j}}j=D[a>>2];g=0;d=0;while(1){f=o+(g<<2)|0;k=D[f>>2];n=(g<<3)+b|0;a=d;D[n+4>>2]=a;D[n>>2]=k;k=D[f>>2];d=k+a|0;if(d>>>0>8192){break j}r:{if(a>>>0>=d>>>0){break r}f=0;n=k&7;if(n){while(1){D[j+(a<<2)>>2]=g;a=a+1|0;f=f+1|0;if((n|0)!=(f|0)){continue}break}}if(k-1>>>0<=6){break r}while(1){f=j+(a<<2)|0;D[f>>2]=g;D[f+28>>2]=g;D[f+24>>2]=g;D[f+20>>2]=g;D[f+16>>2]=g;D[f+12>>2]=g;D[f+8>>2]=g;D[f+4>>2]=g;a=a+8|0;if((d|0)!=(a|0)){continue}break}}g=g+1|0;if((i|0)!=(g|0)){continue}break}m=(d|0)==8192}f=m}s:{if(!f|(D[e+20>>2]?0:h)){break s}d=0;f=$-16|0;$=f;t:{if(!Va(1,f+8|0,c)){break t}a=D[c+8>>2];b=D[c+16>>2];j=a-b|0;i=D[f+12>>2];g=D[c+20>>2];a=D[c+12>>2]-(g+(a>>>0<b>>>0)|0)|0;m=D[f+8>>2];if((i|0)==(a|0)&j>>>0<m>>>0|a>>>0<i>>>0){break t}a=g+i|0;j=b+m|0;a=j>>>0<b>>>0?a+1|0:a;D[c+16>>2]=j;D[c+20>>2]=a;a=m;if((a|0)<=0){break t}b=b+D[c>>2]|0;D[e+48>>2]=b;c=a-1|0;m=c+b|0;j=E[m|0];u:{if(j>>>0<=63){D[e+52>>2]=c;a=E[m|0]&63;break u}v:{switch((j>>>6|0)-1|0){case 0:if(a>>>0<2){break t}D[e+52>>2]=a-2;a=(a+b|0)-2|0;a=E[a+1|0]<<8&16128|E[a|0];break u;case 1:if(a>>>0<3){break t}D[e+52>>2]=a-3;a=(a+b|0)-3|0;a=E[a+1|0]<<8|E[a+2|0]<<16&4128768|E[a|0];break u;default:break v}}D[e+52>>2]=a-4;a=(a+b|0)-4|0;a=E[a+2|0]<<16|E[a+3|0]<<24&1056964608|E[a+1|0]<<8|E[a|0]}D[e+56>>2]=a+32768;d=a>>>0<8355840}$=f+16|0;if(!d){break s}if(!h){l=1;break s}a=D[e+56>>2];b=D[e+36>>2];c=D[e+48>>2];d=D[e+24>>2];while(1){w:{if(a>>>0>32767){break w}l=D[e+52>>2];while(1){if((l|0)<=0){break w}l=l-1|0;D[e+52>>2]=l;a=E[c+l|0]|a<<8;D[e+56>>2]=a;if(a>>>0<32768){continue}break}}l=a&8191;m=D[d+(l<<2)>>2];f=b+(m<<3)|0;a=(J(D[f>>2],a>>>13|0)+l|0)-D[f+4>>2]|0;D[e+56>>2]=a;D[q+(p<<2)>>2]=m;l=1;p=p+1|0;if((h|0)!=(p|0)){continue}break}}a=D[e+36>>2];if(a){D[e+40>>2]=a;ma(a)}a=D[e+24>>2];if(a){D[e+28>>2]=a;ma(a)}a=D[e+8>>2];if(a){D[e+12>>2]=a;ma(a)}$=e- -64|0;b=l;break g;case 9:q=a;j=d;h=$+-64|0;$=h;D[h+56>>2]=0;D[h+48>>2]=0;D[h+52>>2]=0;D[h+40>>2]=0;D[h+44>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;D[h+24>>2]=0;D[h+28>>2]=0;D[h+16>>2]=0;D[h+20>>2]=0;D[h+8>>2]=0;D[h+12>>2]=0;k=h+8|0;x:{y:{if(!F[c+38>>1]){break y}if(!Wa(1,k+12|0,c)){break y}a=D[c+8>>2];b=D[c+16>>2];d=a-b|0;i=D[k+12>>2];a=D[c+12>>2]-(D[c+20>>2]+(a>>>0<b>>>0)|0)|0;if(d>>>0<i>>>6>>>0&(a|0)<=0|(a|0)<0){break y}b=D[k>>2];a=D[k+4>>2]-b>>2;z:{if(a>>>0<i>>>0){ra(k,i-a|0);i=D[k+12>>2];break z}if(a>>>0<=i>>>0){break z}D[k+4>>2]=b+(i<<2)}e=1;if(!i){break x}g=D[c+16>>2];d=D[c+20>>2];r=D[k>>2];s=D[c+8>>2];o=D[c+12>>2];b=0;while(1){e=0;if((d|0)>=(o|0)&g>>>0>=s>>>0|(d|0)>(o|0)){break x}t=D[c>>2];n=E[t+g|0];e=d;a=g+1|0;e=a?e:e+1|0;g=a;D[c+16>>2]=a;d=e;D[c+20>>2]=e;a=n>>>2|0;f=0;A:{B:{C:{D:{e=n&3;switch(e|0){case 0:break B;case 3:break D;default:break C}}a=a+b|0;e=0;if(a>>>0>=i>>>0){break x}qa(r+(b<<2)|0,0,(n&252)+4|0);b=a;break A}while(1){if((d|0)>=(o|0)&g>>>0>=s>>>0|(d|0)>(o|0)){break y}i=E[g+t|0];g=g+1|0;d=g?d:d+1|0;D[c+16>>2]=g;D[c+20>>2]=d;a=i<<(f<<3|6)|a;f=f+1|0;if((e|0)!=(f|0)){continue}break}}D[r+(b<<2)>>2]=a}b=b+1|0;i=D[k+12>>2];if(b>>>0<i>>>0){continue}break}a=k+16|0;o=D[k>>2];d=D[k+16>>2];b=D[k+20>>2]-d|0;E:{if(b>>>0<=131071){ra(a,32768-(b>>>2|0)|0);break E}if((b|0)==131072){break E}D[k+20>>2]=d+131072}d=k+28|0;b=D[d>>2];e=D[k+32>>2]-b>>3;F:{if(e>>>0<i>>>0){db(d,i-e|0);b=D[d>>2];break F}if(e>>>0>i>>>0){D[k+32>>2]=(i<<3)+b}if(!i){break y}}k=D[a>>2];g=0;d=0;while(1){e=o+(g<<2)|0;f=D[e>>2];n=(g<<3)+b|0;a=d;D[n+4>>2]=a;D[n>>2]=f;e=D[e>>2];d=e+a|0;if(d>>>0>32768){break y}G:{if(a>>>0>=d>>>0){break G}f=0;n=e&7;if(n){while(1){D[k+(a<<2)>>2]=g;a=a+1|0;f=f+1|0;if((n|0)!=(f|0)){continue}break}}if(e-1>>>0<=6){break G}while(1){e=k+(a<<2)|0;D[e>>2]=g;D[e+28>>2]=g;D[e+24>>2]=g;D[e+20>>2]=g;D[e+16>>2]=g;D[e+12>>2]=g;D[e+8>>2]=g;D[e+4>>2]=g;a=a+8|0;if((d|0)!=(a|0)){continue}break}}g=g+1|0;if((i|0)!=(g|0)){continue}break}m=(d|0)==32768}e=m}H:{if(!e|(D[h+20>>2]?0:q)){break H}d=0;m=$-16|0;$=m;I:{if(!Va(1,m+8|0,c)){break I}a=D[c+8>>2];b=D[c+16>>2];e=a-b|0;i=D[m+12>>2];f=i;g=D[c+20>>2];k=D[c+12>>2]-(g+(a>>>0<b>>>0)|0)|0;a=D[m+8>>2];if((f|0)==(k|0)&e>>>0<a>>>0|f>>>0>k>>>0){break I}e=g+i|0;f=a+b|0;e=f>>>0<b>>>0?e+1|0:e;D[c+16>>2]=f;D[c+20>>2]=e;if((a|0)<=0){break I}b=b+D[c>>2]|0;D[h+48>>2]=b;c=a-1|0;e=c+b|0;f=E[e|0];J:{if(f>>>0<=63){D[h+52>>2]=c;a=E[e|0]&63;break J}K:{switch((f>>>6|0)-1|0){case 0:if(a>>>0<2){break I}D[h+52>>2]=a-2;a=(a+b|0)-2|0;a=E[a+1|0]<<8&16128|E[a|0];break J;case 1:if(a>>>0<3){break I}D[h+52>>2]=a-3;a=(a+b|0)-3|0;a=E[a+1|0]<<8|E[a+2|0]<<16&4128768|E[a|0];break J;default:break K}}D[h+52>>2]=a-4;a=(a+b|0)-4|0;a=E[a+2|0]<<16|E[a+3|0]<<24&1056964608|E[a+1|0]<<8|E[a|0]}D[h+56>>2]=a+131072;d=a>>>0<33423360}$=m+16|0;if(!d){break H}if(!q){l=1;break H}a=D[h+56>>2];b=D[h+36>>2];c=D[h+48>>2];d=D[h+24>>2];while(1){L:{if(a>>>0>131071){break L}l=D[h+52>>2];while(1){if((l|0)<=0){break L}l=l-1|0;D[h+52>>2]=l;a=E[c+l|0]|a<<8;D[h+56>>2]=a;if(a>>>0<131072){continue}break}}l=a&32767;e=D[d+(l<<2)>>2];m=b+(e<<3)|0;a=(J(D[m>>2],a>>>15|0)+l|0)-D[m+4>>2]|0;D[h+56>>2]=a;D[j+(p<<2)>>2]=e;l=1;p=p+1|0;if((q|0)!=(p|0)){continue}break}}a=D[h+36>>2];if(a){D[h+40>>2]=a;ma(a)}a=D[h+24>>2];if(a){D[h+28>>2]=a;ma(a)}a=D[h+8>>2];if(a){D[h+12>>2]=a;ma(a)}$=h- -64|0;b=l;break g;case 10:q=a;j=d;h=$+-64|0;$=h;D[h+56>>2]=0;D[h+48>>2]=0;D[h+52>>2]=0;D[h+40>>2]=0;D[h+44>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;D[h+24>>2]=0;D[h+28>>2]=0;D[h+16>>2]=0;D[h+20>>2]=0;D[h+8>>2]=0;D[h+12>>2]=0;k=h+8|0;M:{N:{if(!F[c+38>>1]){break N}if(!Wa(1,k+12|0,c)){break N}a=D[c+8>>2];b=D[c+16>>2];d=a-b|0;i=D[k+12>>2];a=D[c+12>>2]-(D[c+20>>2]+(a>>>0<b>>>0)|0)|0;if(d>>>0<i>>>6>>>0&(a|0)<=0|(a|0)<0){break N}b=D[k>>2];a=D[k+4>>2]-b>>2;O:{if(a>>>0<i>>>0){ra(k,i-a|0);i=D[k+12>>2];break O}if(a>>>0<=i>>>0){break O}D[k+4>>2]=b+(i<<2)}e=1;if(!i){break M}g=D[c+16>>2];d=D[c+20>>2];r=D[k>>2];s=D[c+8>>2];o=D[c+12>>2];b=0;while(1){e=0;if((d|0)>=(o|0)&g>>>0>=s>>>0|(d|0)>(o|0)){break M}t=D[c>>2];n=E[t+g|0];a=d;d=g+1|0;a=d?a:a+1|0;g=d;D[c+16>>2]=d;d=a;D[c+20>>2]=a;a=n>>>2|0;f=0;P:{Q:{R:{S:{u=n&3;switch(u|0){case 0:break Q;case 3:break S;default:break R}}a=a+b|0;e=0;if(a>>>0>=i>>>0){break M}qa(r+(b<<2)|0,0,(n&252)+4|0);b=a;break P}while(1){if((d|0)>=(o|0)&g>>>0>=s>>>0|(d|0)>(o|0)){break N}i=E[g+t|0];e=d;d=g+1|0;e=d?e:e+1|0;g=d;D[c+16>>2]=d;d=e;D[c+20>>2]=e;a=i<<(f<<3|6)|a;f=f+1|0;if((u|0)!=(f|0)){continue}break}}D[r+(b<<2)>>2]=a}b=b+1|0;i=D[k+12>>2];if(b>>>0<i>>>0){continue}break}a=k+16|0;o=D[k>>2];d=D[k+16>>2];b=D[k+20>>2]-d|0;T:{if(b>>>0<=262143){ra(a,65536-(b>>>2|0)|0);break T}if((b|0)==262144){break T}D[k+20>>2]=d+262144}d=k+28|0;b=D[d>>2];e=D[k+32>>2]-b>>3;U:{if(e>>>0<i>>>0){db(d,i-e|0);b=D[d>>2];break U}if(e>>>0>i>>>0){D[k+32>>2]=(i<<3)+b}if(!i){break N}}k=D[a>>2];g=0;d=0;while(1){e=o+(g<<2)|0;f=D[e>>2];n=(g<<3)+b|0;a=d;D[n+4>>2]=a;D[n>>2]=f;e=D[e>>2];d=e+a|0;if(d>>>0>65536){break N}V:{if(a>>>0>=d>>>0){break V}f=0;n=e&7;if(n){while(1){D[k+(a<<2)>>2]=g;a=a+1|0;f=f+1|0;if((n|0)!=(f|0)){continue}break}}if(e-1>>>0<=6){break V}while(1){e=k+(a<<2)|0;D[e>>2]=g;D[e+28>>2]=g;D[e+24>>2]=g;D[e+20>>2]=g;D[e+16>>2]=g;D[e+12>>2]=g;D[e+8>>2]=g;D[e+4>>2]=g;a=a+8|0;if((d|0)!=(a|0)){continue}break}}g=g+1|0;if((i|0)!=(g|0)){continue}break}m=(d|0)==65536}e=m}W:{if(!e|(D[h+20>>2]?0:q)){break W}d=0;m=$-16|0;$=m;X:{if(!Va(1,m+8|0,c)){break X}a=D[c+8>>2];b=D[c+16>>2];f=a-b|0;i=D[m+12>>2];g=D[c+20>>2];a=D[c+12>>2]-(g+(a>>>0<b>>>0)|0)|0;e=D[m+8>>2];if((i|0)==(a|0)&f>>>0<e>>>0|a>>>0<i>>>0){break X}a=g+i|0;f=b+e|0;a=f>>>0<b>>>0?a+1|0:a;D[c+16>>2]=f;D[c+20>>2]=a;a=e;if((a|0)<=0){break X}b=b+D[c>>2]|0;D[h+48>>2]=b;c=a-1|0;e=c+b|0;f=E[e|0];Y:{if(f>>>0<=63){D[h+52>>2]=c;a=E[e|0]&63;break Y}Z:{switch((f>>>6|0)-1|0){case 0:if(a>>>0<2){break X}D[h+52>>2]=a-2;a=(a+b|0)-2|0;a=E[a+1|0]<<8&16128|E[a|0];break Y;case 1:if(a>>>0<3){break X}D[h+52>>2]=a-3;a=(a+b|0)-3|0;a=E[a+1|0]<<8|E[a+2|0]<<16&4128768|E[a|0];break Y;default:break Z}}D[h+52>>2]=a-4;a=(a+b|0)-4|0;a=E[a+2|0]<<16|E[a+3|0]<<24&1056964608|E[a+1|0]<<8|E[a|0]}D[h+56>>2]=a+262144;d=a>>>0<66846720}$=m+16|0;if(!d){break W}if(!q){l=1;break W}a=D[h+56>>2];b=D[h+36>>2];c=D[h+48>>2];d=D[h+24>>2];while(1){_:{if(a>>>0>262143){break _}l=D[h+52>>2];while(1){if((l|0)<=0){break _}l=l-1|0;D[h+52>>2]=l;a=E[c+l|0]|a<<8;D[h+56>>2]=a;if(a>>>0<262144){continue}break}}l=a&65535;e=D[d+(l<<2)>>2];m=b+(e<<3)|0;a=(J(D[m>>2],a>>>16|0)+l|0)-D[m+4>>2]|0;D[h+56>>2]=a;D[j+(p<<2)>>2]=e;l=1;p=p+1|0;if((q|0)!=(p|0)){continue}break}}a=D[h+36>>2];if(a){D[h+40>>2]=a;ma(a)}a=D[h+24>>2];if(a){D[h+28>>2]=a;ma(a)}a=D[h+8>>2];if(a){D[h+12>>2]=a;ma(a)}$=h- -64|0;b=l;break g;case 11:q=a;j=d;h=$+-64|0;$=h;D[h+56>>2]=0;D[h+48>>2]=0;D[h+52>>2]=0;D[h+40>>2]=0;D[h+44>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;D[h+24>>2]=0;D[h+28>>2]=0;D[h+16>>2]=0;D[h+20>>2]=0;D[h+8>>2]=0;D[h+12>>2]=0;k=h+8|0;$:{aa:{if(!F[c+38>>1]){break aa}if(!Wa(1,k+12|0,c)){break aa}a=D[c+8>>2];b=D[c+16>>2];d=a-b|0;i=D[k+12>>2];a=D[c+12>>2]-(D[c+20>>2]+(a>>>0<b>>>0)|0)|0;if(d>>>0<i>>>6>>>0&(a|0)<=0|(a|0)<0){break aa}b=D[k>>2];a=D[k+4>>2]-b>>2;ba:{if(a>>>0<i>>>0){ra(k,i-a|0);i=D[k+12>>2];break ba}if(a>>>0<=i>>>0){break ba}D[k+4>>2]=b+(i<<2)}e=1;if(!i){break $}g=D[c+16>>2];d=D[c+20>>2];r=D[k>>2];s=D[c+8>>2];o=D[c+12>>2];b=0;while(1){e=0;if((d|0)>=(o|0)&g>>>0>=s>>>0|(d|0)>(o|0)){break $}t=D[c>>2];n=E[t+g|0];e=d;a=g+1|0;e=a?e:e+1|0;g=a;D[c+16>>2]=a;d=e;D[c+20>>2]=e;a=n>>>2|0;f=0;ca:{da:{ea:{fa:{e=n&3;switch(e|0){case 0:break da;case 3:break fa;default:break ea}}a=a+b|0;e=0;if(a>>>0>=i>>>0){break $}qa(r+(b<<2)|0,0,(n&252)+4|0);b=a;break ca}while(1){if((d|0)>=(o|0)&g>>>0>=s>>>0|(d|0)>(o|0)){break aa}i=E[g+t|0];g=g+1|0;d=g?d:d+1|0;D[c+16>>2]=g;D[c+20>>2]=d;a=i<<(f<<3|6)|a;f=f+1|0;if((e|0)!=(f|0)){continue}break}}D[r+(b<<2)>>2]=a}b=b+1|0;i=D[k+12>>2];if(b>>>0<i>>>0){continue}break}a=k+16|0;o=D[k>>2];d=D[k+16>>2];b=D[k+20>>2]-d|0;ga:{if(b>>>0<=1048575){ra(a,262144-(b>>>2|0)|0);break ga}if((b|0)==1048576){break ga}D[k+20>>2]=d- -1048576}d=k+28|0;b=D[d>>2];e=D[k+32>>2]-b>>3;ha:{if(e>>>0<i>>>0){db(d,i-e|0);b=D[d>>2];break ha}if(e>>>0>i>>>0){D[k+32>>2]=(i<<3)+b}if(!i){break aa}}k=D[a>>2];g=0;d=0;while(1){e=o+(g<<2)|0;f=D[e>>2];n=(g<<3)+b|0;a=d;D[n+4>>2]=a;D[n>>2]=f;e=D[e>>2];d=e+a|0;if(d>>>0>262144){break aa}ia:{if(a>>>0>=d>>>0){break ia}f=0;n=e&7;if(n){while(1){D[k+(a<<2)>>2]=g;a=a+1|0;f=f+1|0;if((n|0)!=(f|0)){continue}break}}if(e-1>>>0<=6){break ia}while(1){e=k+(a<<2)|0;D[e>>2]=g;D[e+28>>2]=g;D[e+24>>2]=g;D[e+20>>2]=g;D[e+16>>2]=g;D[e+12>>2]=g;D[e+8>>2]=g;D[e+4>>2]=g;a=a+8|0;if((d|0)!=(a|0)){continue}break}}g=g+1|0;if((i|0)!=(g|0)){continue}break}m=(d|0)==262144}e=m}ja:{if(!e|(D[h+20>>2]?0:q)){break ja}d=0;m=$-16|0;$=m;ka:{if(!Va(1,m+8|0,c)){break ka}a=D[c+8>>2];b=D[c+16>>2];e=a-b|0;i=D[m+12>>2];f=i;g=D[c+20>>2];k=D[c+12>>2]-(g+(a>>>0<b>>>0)|0)|0;a=D[m+8>>2];if((f|0)==(k|0)&e>>>0<a>>>0|f>>>0>k>>>0){break ka}e=g+i|0;f=a+b|0;e=f>>>0<b>>>0?e+1|0:e;D[c+16>>2]=f;D[c+20>>2]=e;if((a|0)<=0){break ka}b=b+D[c>>2]|0;D[h+48>>2]=b;c=a-1|0;e=c+b|0;f=E[e|0];la:{if(f>>>0<=63){D[h+52>>2]=c;a=E[e|0]&63;break la}ma:{switch((f>>>6|0)-1|0){case 0:if(a>>>0<2){break ka}D[h+52>>2]=a-2;a=(a+b|0)-2|0;a=E[a+1|0]<<8&16128|E[a|0];break la;case 1:if(a>>>0<3){break ka}D[h+52>>2]=a-3;a=(a+b|0)-3|0;a=E[a+1|0]<<8|E[a+2|0]<<16&4128768|E[a|0];break la;default:break ma}}D[h+52>>2]=a-4;a=(a+b|0)-4|0;a=E[a+2|0]<<16|E[a+3|0]<<24&1056964608|E[a+1|0]<<8|E[a|0]}D[h+56>>2]=a- -1048576;d=a>>>0<267386880}$=m+16|0;if(!d){break ja}if(!q){l=1;break ja}a=D[h+56>>2];b=D[h+36>>2];c=D[h+48>>2];d=D[h+24>>2];while(1){na:{if(a>>>0>1048575){break na}l=D[h+52>>2];while(1){if((l|0)<=0){break na}l=l-1|0;D[h+52>>2]=l;a=E[c+l|0]|a<<8;D[h+56>>2]=a;if(a>>>0<1048576){continue}break}}l=a&262143;e=D[d+(l<<2)>>2];m=b+(e<<3)|0;a=(J(D[m>>2],a>>>18|0)+l|0)-D[m+4>>2]|0;D[h+56>>2]=a;D[j+(p<<2)>>2]=e;l=1;p=p+1|0;if((q|0)!=(p|0)){continue}break}}a=D[h+36>>2];if(a){D[h+40>>2]=a;ma(a)}a=D[h+24>>2];if(a){D[h+28>>2]=a;ma(a)}a=D[h+8>>2];if(a){D[h+12>>2]=a;ma(a)}$=h- -64|0;b=l;break g;case 12:h=a;q=d;e=$+-64|0;$=e;D[e+56>>2]=0;D[e+48>>2]=0;D[e+52>>2]=0;D[e+40>>2]=0;D[e+44>>2]=0;D[e+32>>2]=0;D[e+36>>2]=0;D[e+24>>2]=0;D[e+28>>2]=0;D[e+16>>2]=0;D[e+20>>2]=0;D[e+8>>2]=0;D[e+12>>2]=0;j=e+8|0;oa:{pa:{if(!F[c+38>>1]){break pa}if(!Wa(1,j+12|0,c)){break pa}a=D[c+8>>2];b=D[c+16>>2];d=a-b|0;i=D[j+12>>2];a=D[c+12>>2]-(D[c+20>>2]+(a>>>0<b>>>0)|0)|0;if(d>>>0<i>>>6>>>0&(a|0)<=0|(a|0)<0){break pa}b=D[j>>2];a=D[j+4>>2]-b>>2;qa:{if(a>>>0<i>>>0){ra(j,i-a|0);i=D[j+12>>2];break qa}if(a>>>0<=i>>>0){break qa}D[j+4>>2]=b+(i<<2)}f=1;if(!i){break oa}g=D[c+16>>2];d=D[c+20>>2];n=D[j>>2];r=D[c+8>>2];k=D[c+12>>2];b=0;while(1){f=0;if((d|0)>=(k|0)&g>>>0>=r>>>0|(d|0)>(k|0)){break oa}s=D[c>>2];o=E[s+g|0];a=d;d=g+1|0;a=d?a:a+1|0;g=d;D[c+16>>2]=d;d=a;D[c+20>>2]=a;a=o>>>2|0;f=0;ra:{sa:{ta:{ua:{t=o&3;switch(t|0){case 0:break sa;case 3:break ua;default:break ta}}a=a+b|0;f=0;if(a>>>0>=i>>>0){break oa}qa(n+(b<<2)|0,0,(o&252)+4|0);b=a;break ra}while(1){if((d|0)>=(k|0)&g>>>0>=r>>>0|(d|0)>(k|0)){break pa}i=E[g+s|0];g=g+1|0;d=g?d:d+1|0;D[c+16>>2]=g;D[c+20>>2]=d;a=i<<(f<<3|6)|a;f=f+1|0;if((t|0)!=(f|0)){continue}break}}D[n+(b<<2)>>2]=a}b=b+1|0;i=D[j+12>>2];if(b>>>0<i>>>0){continue}break}a=j+16|0;o=D[j>>2];d=D[j+16>>2];b=D[j+20>>2]-d|0;va:{if(b>>>0<=2097151){ra(a,524288-(b>>>2|0)|0);break va}if((b|0)==2097152){break va}D[j+20>>2]=d+2097152}d=j+28|0;b=D[d>>2];f=D[j+32>>2]-b>>3;wa:{if(f>>>0<i>>>0){db(d,i-f|0);b=D[d>>2];break wa}if(f>>>0>i>>>0){D[j+32>>2]=(i<<3)+b}if(!i){break pa}}j=D[a>>2];g=0;d=0;while(1){f=o+(g<<2)|0;k=D[f>>2];n=(g<<3)+b|0;a=d;D[n+4>>2]=a;D[n>>2]=k;k=D[f>>2];d=k+a|0;if(d>>>0>524288){break pa}xa:{if(a>>>0>=d>>>0){break xa}f=0;n=k&7;if(n){while(1){D[j+(a<<2)>>2]=g;a=a+1|0;f=f+1|0;if((n|0)!=(f|0)){continue}break}}if(k-1>>>0<=6){break xa}while(1){f=j+(a<<2)|0;D[f>>2]=g;D[f+28>>2]=g;D[f+24>>2]=g;D[f+20>>2]=g;D[f+16>>2]=g;D[f+12>>2]=g;D[f+8>>2]=g;D[f+4>>2]=g;a=a+8|0;if((d|0)!=(a|0)){continue}break}}g=g+1|0;if((i|0)!=(g|0)){continue}break}m=(d|0)==524288}f=m}ya:{if(!f|(D[e+20>>2]?0:h)){break ya}d=0;f=$-16|0;$=f;za:{if(!Va(1,f+8|0,c)){break za}a=D[c+8>>2];b=D[c+16>>2];j=a-b|0;i=D[f+12>>2];g=D[c+20>>2];a=D[c+12>>2]-(g+(a>>>0<b>>>0)|0)|0;m=D[f+8>>2];if((i|0)==(a|0)&j>>>0<m>>>0|a>>>0<i>>>0){break za}a=g+i|0;j=b+m|0;a=j>>>0<b>>>0?a+1|0:a;D[c+16>>2]=j;D[c+20>>2]=a;a=m;if((a|0)<=0){break za}b=b+D[c>>2]|0;D[e+48>>2]=b;c=a-1|0;m=c+b|0;j=E[m|0];Aa:{if(j>>>0<=63){D[e+52>>2]=c;a=E[m|0]&63;break Aa}Ba:{switch((j>>>6|0)-1|0){case 0:if(a>>>0<2){break za}D[e+52>>2]=a-2;a=(a+b|0)-2|0;a=E[a+1|0]<<8&16128|E[a|0];break Aa;case 1:if(a>>>0<3){break za}D[e+52>>2]=a-3;a=(a+b|0)-3|0;a=E[a+1|0]<<8|E[a+2|0]<<16&4128768|E[a|0];break Aa;default:break Ba}}D[e+52>>2]=a-4;a=(a+b|0)-4|0;a=E[a+2|0]<<16|E[a+3|0]<<24&1056964608|E[a+1|0]<<8|E[a|0]}D[e+56>>2]=a+2097152;d=a>>>0<534773760}$=f+16|0;if(!d){break ya}if(!h){l=1;break ya}a=D[e+56>>2];b=D[e+36>>2];c=D[e+48>>2];d=D[e+24>>2];while(1){Ca:{if(a>>>0>2097151){break Ca}l=D[e+52>>2];while(1){if((l|0)<=0){break Ca}l=l-1|0;D[e+52>>2]=l;a=E[c+l|0]|a<<8;D[e+56>>2]=a;if(a>>>0<2097152){continue}break}}l=a&524287;m=D[d+(l<<2)>>2];f=b+(m<<3)|0;a=(J(D[f>>2],a>>>19|0)+l|0)-D[f+4>>2]|0;D[e+56>>2]=a;D[q+(p<<2)>>2]=m;l=1;p=p+1|0;if((h|0)!=(p|0)){continue}break}}a=D[e+36>>2];if(a){D[e+40>>2]=a;ma(a)}a=D[e+24>>2];if(a){D[e+28>>2]=a;ma(a)}a=D[e+8>>2];if(a){D[e+12>>2]=a;ma(a)}$=e- -64|0;b=l;break g;case 17:b=Id(a,c,d);break g;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e=$+-64|0;$=e;D[e+56>>2]=0;D[e+48>>2]=0;D[e+52>>2]=0;D[e+40>>2]=0;D[e+44>>2]=0;D[e+32>>2]=0;D[e+36>>2]=0;D[e+24>>2]=0;D[e+28>>2]=0;D[e+16>>2]=0;D[e+20>>2]=0;D[e+8>>2]=0;D[e+12>>2]=0;Da:{if(!Kd(e+8|0,c)|(D[e+20>>2]?0:a)){break Da}if(!Jd(e+8|0,c)){break Da}if(!a){b=1;break Da}c=D[e+56>>2];m=D[e+36>>2];f=D[e+48>>2];h=D[e+24>>2];while(1){Ea:{if(c>>>0>16383){break Ea}b=D[e+52>>2];while(1){if((b|0)<=0){break Ea}b=b-1|0;D[e+52>>2]=b;c=E[b+f|0]|c<<8;D[e+56>>2]=c;if(c>>>0<16384){continue}break}}b=c&4095;q=D[h+(b<<2)>>2];j=m+(q<<3)|0;c=(J(D[j>>2],c>>>12|0)+b|0)-D[j+4>>2]|0;D[e+56>>2]=c;D[(l<<2)+d>>2]=q;b=1;l=l+1|0;if((l|0)!=(a|0)){continue}break}}a=D[e+36>>2];if(a){D[e+40>>2]=a;ma(a)}a=D[e+24>>2];if(a){D[e+28>>2]=a;ma(a)}a=D[e+8>>2];if(a){D[e+12>>2]=a;ma(a)}$=e- -64|0;break g;case 13:case 14:case 15:case 16:break h;default:break g}}b=Id(a,c,d)}l=b}return l}function eh(a){a=a|0;var 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,A=0,H=0,I=0,K=0,L=0,M=0,N=0;v=$+-64|0;$=v;D[a+132>>2]=0;if(D[a+148>>2]){d=D[a+144>>2];if(d){while(1){g=D[d>>2];ma(d);d=g;if(d){continue}break}}d=0;D[a+144>>2]=0;g=D[a+140>>2];a:{if(!g){break a}if(g-1>>>0>=3){k=g&-4;while(1){b=d<<2;D[b+D[a+136>>2]>>2]=0;D[D[a+136>>2]+(b|4)>>2]=0;D[D[a+136>>2]+(b|8)>>2]=0;D[D[a+136>>2]+(b|12)>>2]=0;d=d+4|0;f=f+4|0;if((k|0)!=(f|0)){continue}break}}g=g&3;if(!g){break a}f=0;while(1){D[D[a+136>>2]+(d<<2)>>2]=0;d=d+1|0;f=f+1|0;if((g|0)!=(f|0)){continue}break}}D[a+148>>2]=0}b:{c:{if(!Ga(1,v+60|0,D[D[a+4>>2]+32>>2])){break c}D[a+156>>2]=D[v+60>>2];if(!Ga(1,v+56|0,D[D[a+4>>2]+32>>2])){break c}b=D[v+56>>2];if(b>>>0>1431655765|G[a+156>>2]>J(b,3)>>>0){break c}d=D[D[a+4>>2]+32>>2];f=D[d+8>>2];k=D[d+12>>2];g=D[d+20>>2];c=f;f=D[d+16>>2];if((k|0)<=(g|0)&c>>>0<=f>>>0|(g|0)>(k|0)){break c}i=E[f+D[d>>2]|0];f=f+1|0;g=f?g:g+1|0;D[d+16>>2]=f;D[d+20>>2]=g;if(!Ga(1,v+52|0,d)){break c}n=D[v+52>>2];if(n>>>0>b>>>0|b>>>0>n+((n>>>0)/3|0)>>>0){break c}if(!Ga(1,v+48|0,D[D[a+4>>2]+32>>2])){break c}f=D[v+48>>2];if(f>>>0>n>>>0){break c}D[a+28>>2]=D[a+24>>2];g=Wb(na(88));d=D[a+8>>2];D[a+8>>2]=g;if(d){cb(d);if(!D[a+8>>2]){break c}}D[a+164>>2]=D[a+160>>2];Ib(a+160|0,b);D[a+176>>2]=D[a+172>>2];Ib(a+172|0,b);D[a- -64>>2]=0;D[a+92>>2]=-1;D[a+84>>2]=-1;D[a+88>>2]=-1;D[a+40>>2]=D[a+36>>2];D[a+52>>2]=D[a+48>>2];D[a+76>>2]=D[a+72>>2];z=a+216|0;Ad(z);zd(z,i);if(!Yc(D[a+8>>2],b,f+D[a+156>>2]|0)){break c}d=D[a+156>>2];B[v+8|0]=1;Ha(a+120|0,d+f|0,v+8|0);if((yd(a,D[D[a+4>>2]+32>>2])|0)==-1){break c}k=a+232|0;g=k;D[g+144>>2]=a;d=D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2];b=D[d>>2]+D[d+16>>2]|0;e=D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2];d=D[e+8>>2];e=D[e+16>>2];d=d-e|0;M=g,N=F[D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2]+38>>1],C[M+38>>1]=N;D[g>>2]=b;D[g+16>>2]=0;D[g+20>>2]=0;D[g+8>>2]=d;D[g+12>>2]=0;M=g,N=ba[D[D[a>>2]+36>>2]](a)|0,D[M+148>>2]=N;D[a+372>>2]=i;D[a+384>>2]=f+D[a+156>>2];K=La(v+8|0);i=K;b=0;e=$-16|0;$=e;d:{if(!Da(g+80|0,g)){break d}if(!vd(k)){break d}d=D[k+4>>2];D[i>>2]=D[k>>2];D[i+4>>2]=d;d=D[k+36>>2];D[i+32>>2]=D[k+32>>2];D[i+36>>2]=d;d=D[k+28>>2];D[i+24>>2]=D[k+24>>2];D[i+28>>2]=d;d=D[k+20>>2];D[i+16>>2]=D[k+16>>2];D[i+20>>2]=d;d=D[k+12>>2];D[i+8>>2]=D[k+8>>2];D[i+12>>2]=d;D[k+176>>2]=2;D[k+180>>2]=7;d=D[k+152>>2];if((d|0)<0){break d}D[e+12>>2]=0;b=2;c=D[k+156>>2];g=D[k+160>>2]-c>>2;e:{if(g>>>0<d>>>0){xa(k+156|0,d-g|0,e+12|0);b=D[k+176>>2];f=D[k+180>>2];break e}f=7;if(d>>>0>=g>>>0){break e}D[k+160>>2]=c+(d<<2)}g=k+184|0;f=(f-b|0)+1|0;d=D[k+188>>2];b=D[k+184>>2];c=(d-b|0)/12|0;f:{if(f>>>0>c>>>0){d=f-c|0;o=D[g+8>>2];b=D[g+4>>2];g:{if(d>>>0<=(o-b|0)/12>>>0){if(d){d=J(d,12)-12|0;d=(d-((d>>>0)%12|0)|0)+12|0;b=qa(b,0,d)+d|0}D[g+4>>2]=b;break g}h:{i:{j:{c=D[g>>2];q=(b-c|0)/12|0;f=q+d|0;if(f>>>0<357913942){o=(o-c|0)/12|0;m=o<<1;o=o>>>0<178956970?f>>>0<m>>>0?m:f:357913941;if(o){if(o>>>0>=357913942){break j}h=na(J(o,12))}f=J(q,12)+h|0;d=J(d,12)-12|0;q=(d-((d>>>0)%12|0)|0)+12|0;d=qa(f,0,q);q=d+q|0;o=J(o,12)+h|0;if((b|0)==(c|0)){break i}while(1){f=f-12|0;b=b-12|0;D[f>>2]=D[b>>2];D[f+4>>2]=D[b+4>>2];D[f+8>>2]=D[b+8>>2];D[b+8>>2]=0;D[b>>2]=0;D[b+4>>2]=0;if((b|0)!=(c|0)){continue}break}D[g+8>>2]=o;d=D[g+4>>2];D[g+4>>2]=q;b=D[g>>2];D[g>>2]=f;if((b|0)==(d|0)){break h}while(1){f=d-12|0;c=D[f>>2];if(c){D[d-8>>2]=c;ma(c)}d=f;if((d|0)!=(b|0)){continue}break}break h}break b}sa();T()}D[g+8>>2]=o;D[g+4>>2]=q;D[g>>2]=d}if(b){ma(b)}}f=D[k+188>>2];break f}if(f>>>0>=c>>>0){f=d;break f}f=b+J(f,12)|0;if((f|0)!=(d|0)){while(1){b=d-12|0;c=D[b>>2];if(c){D[d-8>>2]=c;ma(c)}d=b;if((b|0)!=(f|0)){continue}break}}D[k+188>>2]=f}o=k+196|0;b=D[k+184>>2];d=(f-b|0)/12|0;q=D[k+196>>2];c=D[k+200>>2]-q>>2;k:{if(d>>>0>c>>>0){ra(o,d-c|0);b=D[k+184>>2];f=D[k+188>>2];break k}if(d>>>0>=c>>>0){break k}D[k+200>>2]=q+(d<<2)}if((b|0)==(f|0)){b=1;break d}d=0;while(1){l:{if(!Ga(1,e+8|0,i)){break l}b=D[k+148>>2];c=(D[b+4>>2]-D[b>>2]>>2>>>0)/3|0;b=D[e+8>>2];if(c>>>0<b>>>0){break l}if(b){h=J(d,12);c=h+D[g>>2]|0;f=D[c>>2];q=D[c+4>>2]-f>>2;m:{if(q>>>0<b>>>0){ra(c,b-q|0);f=D[h+D[g>>2]>>2];break m}if(b>>>0>=q>>>0){break m}D[c+4>>2]=(b<<2)+f}jc(b,1,i,f);D[D[o>>2]+(d<<2)>>2]=b}b=1;d=d+1|0;if(d>>>0<(D[k+188>>2]-D[k+184>>2]|0)/12>>>0){continue}break d}break}b=0}$=e+16|0;n:{if(!b){break n}b=0;g=0;f=0;d=0;q=0;k=0;o=0;m=$-96|0;$=m;D[m+72>>2]=0;D[m+64>>2]=0;D[m+68>>2]=0;D[m+48>>2]=0;D[m+52>>2]=0;D[m+40>>2]=0;D[m+44>>2]=0;D[m+56>>2]=1065353216;D[m+32>>2]=0;D[m+24>>2]=0;D[m+28>>2]=0;i=a;A=D[a+124>>2];o:{p:{q:{r:{if((n|0)<=0){break r}x=i+232|0;L=D[i+216>>2]!=D[i+220>>2];s=1;s:{while(1){c=o;o=c+1|0;t:{u:{v:{a=D[i+404>>2];if((a|0)==-1){D[i+400>>2]=7;break v}e=-1;h=D[i+428>>2]+(a<<2)|0;j=D[h>>2];a=j-1|0;D[h>>2]=a;if((j|0)<=0){break q}a=D[D[D[i+416>>2]+J(D[i+404>>2],12)>>2]+(a<<2)>>2];if(a>>>0>4){break q}h=D[(a<<2)+8896>>2];D[i+400>>2]=h;if(!a){if((b|0)==(d|0)){break q}a=-1;j=D[i+8>>2];s=D[j+24>>2];r=b-4|0;e=D[r>>2];h=-1;w:{if((e|0)==-1){break w}l=e+1|0;l=(l>>>0)%3|0?l:e-2|0;h=-1;if((l|0)==-1){break w}h=D[D[j>>2]+(l<<2)>>2]}g=D[s+(h<<2)>>2];if((g|0)!=-1){a=g+1|0;a=(a>>>0)%3|0?a:g-2|0}g=D[j+12>>2];l=J(c,3);c=l+1|0;D[g+(e<<2)>>2]=c;w=c<<2;D[w+g>>2]=e;p=l+2|0;D[g+(a<<2)>>2]=p;t=p<<2;D[t+g>>2]=a;g=-1;c=-1;x:{if((e|0)==-1){break x}y:{if((e>>>0)%3|0){e=e-1|0;break y}e=e+2|0;c=-1;if((e|0)==-1){break x}}c=D[D[j>>2]+(e<<2)>>2]}z:{if((a|0)==-1){break z}e=a+1|0;a=(e>>>0)%3|0?e:a-2|0;if((a|0)==-1){break z}g=D[D[j>>2]+(a<<2)>>2]}e=-1;if((c|0)==(h|0)|(g|0)==(h|0)){break q}a=D[j>>2];D[a+(l<<2)>>2]=h;D[a+w>>2]=g;D[a+t>>2]=c;if((c|0)!=-1){D[s+(c<<2)>>2]=p}a=D[i+120>>2]+(h>>>3&536870908)|0;g=D[a>>2];M=a,N=ji(h)&g,D[M>>2]=N;D[r>>2]=l;g=d;hc(x,l);break t}A:{switch(h-1|0){case 2:case 4:if((b|0)==(d|0)){break q}j=D[i+8>>2];e=D[j+12>>2];h=J(c,3);a=(a|0)==3;p=h+(a?2:1)|0;r=p<<2;w=b-4|0;g=D[w>>2];D[e+r>>2]=g;D[e+(g<<2)>>2]=p;Ua(j+24|0);e=-1;b=D[i+8>>2];l=D[b+24>>2];if((A|0)<D[b+28>>2]-l>>2){break q}b=D[b>>2];t=b+r|0;e=D[j+28>>2];j=D[j+24>>2];r=(e-j>>2)-1|0;D[t>>2]=r;if((e|0)!=(j|0)){D[l+(r<<2)>>2]=p}e=a?h:h+2|0;t=b+(a+h<<2)|0;B:{if((g|0)==-1){D[b+(e<<2)>>2]=-1;a=-1;break B}C:{D:{E:{if((g>>>0)%3|0){a=g-1|0;break E}a=g+2|0;if((a|0)==-1){break D}}a=D[b+(a<<2)>>2];D[b+(e<<2)>>2]=a;if((a|0)==-1){break C}D[l+(a<<2)>>2]=e;break C}D[b+(e<<2)>>2]=-1}e=g+1|0;g=(e>>>0)%3|0?e:g-2|0;a=-1;if((g|0)==-1){break B}a=D[b+(g<<2)>>2]}D[t>>2]=a;D[w>>2]=h;g=d;break u;case 6:break v;case 0:break A;default:break q}}if((b|0)==(g|0)){break q}f=b-4|0;j=D[f>>2];D[m+68>>2]=f;l=D[m+44>>2];F:{if(!l){break F}e=D[m+40>>2];p=ii(l)>>>0>1;a=c&l+2147483647;G:{if(!p){break G}a=c;if(a>>>0<l>>>0){break G}a=(c>>>0)%(l>>>0)|0}h=a;a=D[e+(h<<2)>>2];if(!a){break F}e=D[a>>2];if(!e){break F}H:{if(!p){a=l-1|0;while(1){l=D[e+4>>2];I:{if((l|0)!=(c|0)){if((h|0)==(a&l)){break I}break F}if((c|0)==D[e+8>>2]){break H}}e=D[e>>2];if(e){continue}break}break F}while(1){a=D[e+4>>2];J:{if((a|0)!=(c|0)){if(a>>>0>=l>>>0){a=(a>>>0)%(l>>>0)|0}if((a|0)==(h|0)){break J}break F}if((c|0)==D[e+8>>2]){break H}}e=D[e>>2];if(e){continue}break}break F}if((f|0)!=(u|0)){D[f>>2]=D[e+12>>2];D[m+68>>2]=b;f=b;break F}a=u-g|0;f=a>>2;d=f+1|0;if(d>>>0>=1073741824){break b}b=a>>1;b=a>>>0<2147483644?b>>>0>d>>>0?b:d:1073741823;if(b){if(b>>>0>=1073741824){break p}d=na(b<<2)}else{d=0}f=d+(f<<2)|0;D[f>>2]=D[e+12>>2];u=(b<<2)+d|0;f=f+4|0;if((a|0)>0){oa(d,g,a)}D[m+72>>2]=u;D[m+68>>2]=f;D[m+64>>2]=d;if(g){ma(g)}g=d}if((g|0)==(f|0)){break s}w=f-4|0;e=D[w>>2];a=(e|0)==-1;l=D[i+8>>2];if(!a&D[D[l+12>>2]+(e<<2)>>2]!=-1){break s}p=D[l+12>>2];if((j|0)!=-1&D[p+(j<<2)>>2]!=-1){break s}s=J(c,3);r=s+2|0;D[p+(e<<2)>>2]=r;c=r<<2;D[c+p>>2]=e;b=s+1|0;D[p+(j<<2)>>2]=b;t=b<<2;D[t+p>>2]=j;K:{L:{M:{if(!a){if((e>>>0)%3|0){h=e-1|0;break M}h=e+2|0;if((h|0)!=-1){break M}b=D[l>>2];a=-1;break L}a=-1;b=D[l>>2];D[b+(s<<2)>>2]=-1;h=-1;break K}b=D[l>>2];a=D[b+(h<<2)>>2]}D[(s<<2)+b>>2]=a;H=e+1|0;e=(H>>>0)%3|0?H:e-2|0;h=-1;if((e|0)==-1){break K}h=D[(e<<2)+b>>2]}D[b+t>>2]=h;N:{if((j|0)==-1){D[b+c>>2]=-1;h=-1;e=-1;break N}O:{P:{Q:{if((j>>>0)%3|0){e=j-1|0;break Q}e=j+2|0;if((e|0)==-1){break P}}e=D[(e<<2)+b>>2];D[b+c>>2]=e;if((e|0)==-1){break O}D[D[l+24>>2]+(e<<2)>>2]=r;break O}D[b+c>>2]=-1}h=-1;c=j+1|0;c=(c>>>0)%3|0?c:j-2|0;e=-1;if((c|0)==-1){break N}h=D[(c<<2)+b>>2];e=c}c=D[i+388>>2];j=a<<2;r=c+j|0;t=c;c=h<<2;D[r>>2]=D[r>>2]+D[t+c>>2];l=D[l+24>>2];c=l+c|0;if((a|0)!=-1){D[j+l>>2]=D[c>>2]}R:{if((e|0)==-1){break R}while(1){D[(e<<2)+b>>2]=a;j=e+1|0;e=(j>>>0)%3|0?j:e-2|0;if((e|0)==-1){break R}e=D[p+(e<<2)>>2];if((e|0)==-1){break R}j=e+1|0;e=(j>>>0)%3|0?j:e-2|0;if((e|0)!=-1){continue}break}}D[c>>2]=-1;S:{if(L){break S}if((q|0)!=(y|0)){D[q>>2]=h;q=q+4|0;D[m+28>>2]=q;break S}b=y-k|0;c=b>>2;a=c+1|0;if(a>>>0<1073741824){e=b>>1;e=b>>>0<2147483644?a>>>0<e>>>0?e:a:1073741823;if(e){if(e>>>0>=1073741824){break p}a=na(e<<2)}else{a=0}c=a+(c<<2)|0;D[c>>2]=h;y=a+(e<<2)|0;q=c+4|0;if((b|0)>0){oa(a,k,b)}D[m+32>>2]=y;D[m+28>>2]=q;D[m+24>>2]=a;if(k){ma(k)}k=a;break S}break b}D[w>>2]=s;b=f;hc(x,s);break t}h=D[i+8>>2];Ua(h+24|0);e=-1;f=D[i+8>>2];a=J(c,3);j=D[h+28>>2];l=D[h+24>>2];p=j-l|0;h=p>>2;r=h-1|0;D[D[f>>2]+(a<<2)>>2]=r;Ua(f+24|0);w=a+1|0;D[D[f>>2]+(w<<2)>>2]=(D[f+28>>2]-D[f+24>>2]>>2)-1;f=D[i+8>>2];Ua(f+24|0);t=a+2|0;D[D[f>>2]+(t<<2)>>2]=(D[f+28>>2]-D[f+24>>2]>>2)-1;H=D[i+8>>2];f=D[H+24>>2];if((A|0)<D[H+28>>2]-f>>2){break q}T:{U:{if((j|0)!=(l|0)){D[f+(r<<2)>>2]=a;e=0;if((p|0)==-4){break U}}D[f+(h<<2)>>2]=w;e=h+1|0;if((e|0)==-1){break T}}D[f+(e<<2)>>2]=t}if((b|0)!=(u|0)){D[b>>2]=a;f=b+4|0;D[m+68>>2]=f;break u}b=u-d|0;e=b>>2;g=e+1|0;if(g>>>0>=1073741824){break b}f=b>>1;f=b>>>0<2147483644?g>>>0<f>>>0?f:g:1073741823;if(f){if(f>>>0>=1073741824){break p}g=na(f<<2)}else{g=0}e=g+(e<<2)|0;D[e>>2]=a;u=(f<<2)+g|0;f=e+4|0;if((b|0)>0){oa(g,d,b)}D[m+72>>2]=u;D[m+68>>2]=f;D[m+64>>2]=g;if(d){ma(d)}d=g}hc(x,D[f-4>>2]);e=D[i+40>>2];V:{if((e|0)==D[i+36>>2]){break V}c=n+(c^-1)|0;h=f-4|0;while(1){a=e-12|0;b=D[a+4>>2];if(b>>>0>c>>>0){break s}if((b|0)!=(c|0)){break V}e=E[e-4|0];b=D[a>>2];D[i+40>>2]=a;if((b|0)<0){break s}a=D[h>>2];D[m+20>>2]=n+(b^-1);b=m+20|0;D[m+88>>2]=b;ud(m,m+40|0,b,m+88|0);t=D[m>>2];W:{if(e&1){b=-1;if((a|0)==-1){break W}b=a+1|0;b=(b>>>0)%3|0?b:a-2|0;break W}b=-1;if((a|0)==-1){break W}b=a-1|0;if((a>>>0)%3|0){break W}b=a+2|0}D[t+12>>2]=b;e=D[i+40>>2];if((e|0)!=D[i+36>>2]){continue}break}}b=f}s=(n|0)>(o|0);if((n|0)!=(o|0)){continue}break}o=n;break r}e=-1;if(s&1){break q}}e=-1;b=D[i+8>>2];if((A|0)<D[b+28>>2]-D[b+24>>2]>>2){break q}X:{if((d|0)!=(f|0)){g=i+60|0;A=i+312|0;while(1){f=f-4|0;j=D[f>>2];D[m+68>>2]=f;Y:{if(za(A)){p=D[i+8>>2];l=D[p>>2];if(((D[p+4>>2]-l>>2>>>0)/3|0)<=(o|0)){break X}a=-1;b=-1;n=D[p+24>>2];c=-1;Z:{if((j|0)==-1){break Z}h=j+1|0;h=(h>>>0)%3|0?h:j-2|0;c=-1;if((h|0)==-1){break Z}c=D[l+(h<<2)>>2]}h=c;c=D[n+(h<<2)>>2];_:{if((c|0)==-1){break _}u=c+1|0;c=(u>>>0)%3|0?u:c-2|0;if((c|0)==-1){break _}a=c+1|0;a=(a>>>0)%3|0?a:c-2|0;if((a|0)!=-1){b=D[l+(a<<2)>>2]}a=c}u=-1;s=-1;n=D[n+(b<<2)>>2];c=-1;$:{if((n|0)==-1){break $}x=n+1|0;n=(x>>>0)%3|0?x:n-2|0;c=-1;if((n|0)==-1){break $}c=n+1|0;c=(c>>>0)%3|0?c:n-2|0;if((c|0)!=-1){s=D[l+(c<<2)>>2]}c=n}n=D[p+12>>2];p=J(o,3);x=p<<2;D[n+x>>2]=j;D[n+(j<<2)>>2]=p;j=p+1|0;y=j<<2;D[y+n>>2]=a;D[n+(a<<2)>>2]=j;a=p+2|0;r=a<<2;D[r+n>>2]=c;D[n+(c<<2)>>2]=a;D[l+x>>2]=b;c=l+y|0;D[c>>2]=s;n=l+r|0;D[n>>2]=h;h=j?b:-1;b=D[i+120>>2];l=(h>>>3&536870908)+b|0;s=D[l>>2];M=l,N=ji(h)&s,D[M>>2]=N;u=(j|0)!=-1?D[c>>2]:u;c=b+(u>>>3&536870908)|0;h=D[c>>2];M=c,N=ji(u)&h,D[M>>2]=N;h=-1;h=(a|0)!=-1?D[n>>2]:h;a=b+(h>>>3&536870908)|0;b=D[a>>2];M=a,N=ji(h)&b,D[M>>2]=N;h=D[i+64>>2];a=D[i+68>>2];if((h|0)==a<<5){if((h+1|0)<0){break b}if(h>>>0<=1073741822){a=a<<6;b=h+32&-32;a=a>>>0>b>>>0?a:b}else{a=2147483647}Xa(g,a);h=D[i+64>>2]}o=o+1|0;D[i+64>>2]=h+1;a=D[i+60>>2]+(h>>>3&536870908)|0;D[a>>2]=D[a>>2]|1<<h;a=D[i+76>>2];if((a|0)!=D[i+80>>2]){D[a>>2]=p;D[i+76>>2]=a+4;break Y}c=D[i+72>>2];b=a-c|0;h=b>>2;a=h+1|0;if(a>>>0>=1073741824){break b}n=b>>1;n=b>>>0<2147483644?a>>>0<n>>>0?n:a:1073741823;if(n){if(n>>>0>=1073741824){break p}a=na(n<<2)}else{a=0}h=a+(h<<2)|0;D[h>>2]=p;if((b|0)>0){oa(a,c,b)}D[i+80>>2]=a+(n<<2);D[i+76>>2]=h+4;D[i+72>>2]=a;if(!c){break Y}ma(c);break Y}b=D[i+64>>2];a=D[i+68>>2];if((b|0)==a<<5){if((b+1|0)<0){break b}if(b>>>0<=1073741822){a=a<<6;b=b+32&-32;a=a>>>0>b>>>0?a:b}else{a=2147483647}Xa(g,a);b=D[i+64>>2]}D[i+64>>2]=b+1;a=D[i+60>>2]+(b>>>3&536870908)|0;c=D[a>>2];M=a,N=ji(b)&c,D[M>>2]=N;a=D[i+76>>2];if((a|0)!=D[i+80>>2]){D[a>>2]=j;D[i+76>>2]=a+4;break Y}c=D[i+72>>2];b=a-c|0;h=b>>2;a=h+1|0;if(a>>>0>=1073741824){break b}n=b>>1;n=b>>>0<2147483644?a>>>0<n>>>0?n:a:1073741823;if(n){if(n>>>0>=1073741824){break p}a=na(n<<2)}else{a=0}h=a+(h<<2)|0;D[h>>2]=j;if((b|0)>0){oa(a,c,b)}D[i+80>>2]=a+(n<<2);D[i+76>>2]=h+4;D[i+72>>2]=a;if(!c){break Y}ma(c)}if((d|0)!=(f|0)){continue}break}b=D[i+8>>2]}if(((D[b+4>>2]-D[b>>2]>>2>>>0)/3|0)!=(o|0)){break q}e=D[b+28>>2]-D[b+24>>2]>>2;if((k|0)==(q|0)){k=q;break q}a=k;while(1){g=D[a>>2];c=D[b+24>>2];f=e-1|0;h=c+(f<<2)|0;if(D[h>>2]==-1){while(1){f=e-2|0;e=e-1|0;h=c+(f<<2)|0;if(D[h>>2]==-1){continue}break}}if(g>>>0<=f>>>0){D[m>>2]=b;h=D[h>>2];B[m+12|0]=1;D[m+8>>2]=h;D[m+4>>2]=h;if((h|0)!=-1){while(1){b=D[D[i+8>>2]>>2]+(h<<2)|0;if(D[b>>2]!=(f|0)){break X}D[b>>2]=g;kc(m);h=D[m+8>>2];if((h|0)!=-1){continue}break}b=D[i+8>>2]}o=D[b+24>>2];c=o+(f<<2)|0;if((g|0)!=-1){D[o+(g<<2)>>2]=D[c>>2]}D[c>>2]=-1;c=1<<g;o=D[i+120>>2];g=o+(g>>>3&536870908)|0;o=o+(f>>>3&536870908)|0;f=1<<f;if(D[o>>2]&f){c=c|D[g>>2]}else{c=D[g>>2]&(c^-1)}D[g>>2]=c;D[o>>2]=D[o>>2]&(f^-1);e=e-1|0}a=a+4|0;if((q|0)!=(a|0)){continue}break}break q}e=-1}if(k){ma(k)}a=D[m+48>>2];if(a){while(1){g=D[a>>2];ma(a);a=g;if(a){continue}break}}a=D[m+40>>2];D[m+40>>2]=0;if(a){ma(a)}if(d){D[m+68>>2]=d;ma(d)}$=m+96|0;break o}sa();T()}if((e|0)==-1){break n}a=D[K+16>>2];d=a+D[K>>2]|0;g=D[K+8>>2];g=g-a|0;a=D[D[i+4>>2]+32>>2];C[a+38>>1]=F[a+38>>1];D[a>>2]=d;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=g;D[a+12>>2]=0;aa:{if(D[i+216>>2]==D[i+220>>2]){break aa}a=D[i+8>>2];if(D[a+4>>2]==D[a>>2]){break aa}d=0;while(1){if(xd(i,d)){d=d+3|0;a=D[i+8>>2];if(d>>>0<D[a+4>>2]-D[a>>2]>>2>>>0){continue}break aa}break}break n}if(E[i+308|0]){B[i+308|0]=0;g=D[i+292>>2];a=0;d=D[i+304>>2]+7|0;a=d>>>0<7?1:a;f=a<<29|d>>>3;d=f+D[i+288>>2]|0;a=(a>>>3|0)+g|0;D[i+288>>2]=d;D[i+292>>2]=d>>>0<f>>>0?a+1|0:a}d=D[i+216>>2];if((d|0)!=D[i+220>>2]){while(1){g=J(I,144);Xc((g+d|0)+4|0,D[i+8>>2]);a=D[z>>2];b=a+g|0;d=D[b+132>>2];b=D[b+136>>2];if((d|0)!=(b|0)){while(1){Vc((g+D[z>>2]|0)+4|0,D[d>>2]);d=d+4|0;if((b|0)!=(d|0)){continue}break}a=D[z>>2]}Wc((a+g|0)+4|0);I=I+1|0;d=D[i+216>>2];if(I>>>0<(D[i+220>>2]-d|0)/144>>>0){continue}break}}a=D[i+8>>2];Hb(i+184|0,D[a+28>>2]-D[a+24>>2]>>2);f=D[i+216>>2];if((f|0)!=D[i+220>>2]){d=0;while(1){a=J(d,144)+f|0;g=D[a+60>>2]-D[a+56>>2]>>2;c=a+104|0;a=D[i+8>>2];a=D[a+28>>2]-D[a+24>>2]>>2;Hb(c,(a|0)<(g|0)?g:a);d=d+1|0;f=D[i+216>>2];if(d>>>0<(D[i+220>>2]-f|0)/144>>>0){continue}break}}I=wd(i,e)}}$=v- -64|0;return I|0}pa();T()}function hh(a){a=a|0;var 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,A=0,H=0,I=0,K=0,L=0,M=0,N=0;t=$+-64|0;$=t;D[a+132>>2]=0;if(D[a+148>>2]){d=D[a+144>>2];if(d){while(1){c=D[d>>2];ma(d);d=c;if(d){continue}break}}d=0;D[a+144>>2]=0;c=D[a+140>>2];a:{if(!c){break a}if(c-1>>>0>=3){f=c&-4;while(1){j=d<<2;D[j+D[a+136>>2]>>2]=0;D[D[a+136>>2]+(j|4)>>2]=0;D[D[a+136>>2]+(j|8)>>2]=0;D[D[a+136>>2]+(j|12)>>2]=0;d=d+4|0;k=k+4|0;if((f|0)!=(k|0)){continue}break}}c=c&3;if(!c){break a}k=0;while(1){D[D[a+136>>2]+(d<<2)>>2]=0;d=d+1|0;k=k+1|0;if((c|0)!=(k|0)){continue}break}}D[a+148>>2]=0}b:{if(!Ga(1,t+60|0,D[D[a+4>>2]+32>>2])){break b}D[a+156>>2]=D[t+60>>2];if(!Ga(1,t+56|0,D[D[a+4>>2]+32>>2])){break b}j=D[t+56>>2];if(j>>>0>1431655765|G[a+156>>2]>J(j,3)>>>0){break b}d=D[D[a+4>>2]+32>>2];k=D[d+8>>2];f=D[d+12>>2];c=D[d+20>>2];b=k;k=D[d+16>>2];if((f|0)<=(c|0)&b>>>0<=k>>>0|(c|0)>(f|0)){break b}f=E[k+D[d>>2]|0];k=k+1|0;c=k?c:c+1|0;D[d+16>>2]=k;D[d+20>>2]=c;if(!Ga(1,t+52|0,d)){break b}n=D[t+52>>2];if(n>>>0>j>>>0|j>>>0>n+((n>>>0)/3|0)>>>0){break b}if(!Ga(1,t+48|0,D[D[a+4>>2]+32>>2])){break b}d=D[t+48>>2];if(d>>>0>n>>>0){break b}D[a+28>>2]=D[a+24>>2];k=Wb(na(88));c=D[a+8>>2];D[a+8>>2]=k;if(c){cb(c);if(!D[a+8>>2]){break b}}D[a+164>>2]=D[a+160>>2];Ib(a+160|0,j);D[a+176>>2]=D[a+172>>2];Ib(a+172|0,j);D[a- -64>>2]=0;D[a+92>>2]=-1;D[a+84>>2]=-1;D[a+88>>2]=-1;D[a+40>>2]=D[a+36>>2];D[a+52>>2]=D[a+48>>2];D[a+76>>2]=D[a+72>>2];y=a+216|0;Ad(y);zd(y,f);if(!Yc(D[a+8>>2],j,d+D[a+156>>2]|0)){break b}c=D[a+156>>2];B[t+8|0]=1;Ha(a+120|0,d+c|0,t+8|0);if((yd(a,D[D[a+4>>2]+32>>2])|0)==-1){break b}d=a+232|0;D[d+144>>2]=a;c=D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2];j=D[c>>2]+D[c+16>>2]|0;k=D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2];c=D[k+8>>2];k=D[k+16>>2];c=c-k|0;M=d,N=F[D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2]+38>>1],C[M+38>>1]=N;D[d>>2]=j;D[d+16>>2]=0;D[d+20>>2]=0;D[d+8>>2]=c;D[d+12>>2]=0;D[a+372>>2]=f;H=La(t+8|0);f=H;j=0;g=$-16|0;$=g;c=D[d+4>>2];D[d+40>>2]=D[d>>2];D[d+44>>2]=c;c=D[d+36>>2];D[d+72>>2]=D[d+32>>2];D[d+76>>2]=c;k=D[d+28>>2];c=d- -64|0;D[c>>2]=D[d+24>>2];D[c+4>>2]=k;c=D[d+20>>2];D[d+56>>2]=D[d+16>>2];D[d+60>>2]=c;c=D[d+12>>2];D[d+48>>2]=D[d+8>>2];D[d+52>>2]=c;c:{d:{if(ec(d+40|0,1,g+8|0)){c=D[d+44>>2];D[d>>2]=D[d+40>>2];D[d+4>>2]=c;c=D[d+76>>2];D[d+32>>2]=D[d+72>>2];D[d+36>>2]=c;c=D[d+68>>2];D[d+24>>2]=D[d+64>>2];D[d+28>>2]=c;k=D[d+60>>2];b=k;c=D[d+56>>2];D[d+16>>2]=c;D[d+20>>2]=b;e=D[d+52>>2];k=D[d+48>>2];D[d+8>>2]=k;D[d+12>>2]=e;h=k-c|0;m=D[g+12>>2];e=e-((c>>>0>k>>>0)+b|0)|0;k=D[g+8>>2];if((m|0)==(e|0)&h>>>0>=k>>>0|e>>>0>m>>>0){break d}}break c}b=b+m|0;c=c+k|0;b=c>>>0<k>>>0?b+1|0:b;D[d+16>>2]=c;D[d+20>>2]=b;if(!Da(d+80|0,d)){break c}if(!vd(d)){break c}c=D[d+4>>2];D[f>>2]=D[d>>2];D[f+4>>2]=c;c=D[d+36>>2];D[f+32>>2]=D[d+32>>2];D[f+36>>2]=c;c=D[d+28>>2];D[f+24>>2]=D[d+24>>2];D[f+28>>2]=c;c=D[d+20>>2];D[f+16>>2]=D[d+16>>2];D[f+20>>2]=c;c=D[d+12>>2];D[f+8>>2]=D[d+8>>2];D[f+12>>2]=c;j=1}$=g+16|0;e:{if(!j){break e}e=0;c=0;d=0;j=0;k=0;m=$-96|0;$=m;D[m+72>>2]=0;D[m+64>>2]=0;D[m+68>>2]=0;D[m+48>>2]=0;D[m+52>>2]=0;D[m+40>>2]=0;D[m+44>>2]=0;D[m+56>>2]=1065353216;D[m+32>>2]=0;D[m+24>>2]=0;D[m+28>>2]=0;f=a;z=D[a+124>>2];f:{g:{h:{i:{j:{k:{l:{if((n|0)<=0){break l}I=D[f+216>>2]!=D[f+220>>2];p=1;while(1){g=v;v=g+1|0;m:{n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{if(!E[f+308|0]){break x}y:{z:{h=D[f+296>>2];b=D[f+304>>2];a=h+(b>>>3|0)|0;i=D[f+300>>2];if(a>>>0>=i>>>0){break z}l=E[a|0];a=b+1|0;D[f+304>>2]=a;if(!(l>>>(b&7)&1)){break z}o=a>>>3|0;l=h+o|0;A:{if(l>>>0>=i>>>0){b=a;a=0;break A}l=E[l|0];b=b+2|0;D[f+304>>2]=b;o=b>>>3|0;a=l>>>(a&7)&1}h=h+o|0;if(h>>>0<i>>>0){h=E[h|0];D[f+304>>2]=b+1;b=h>>>(b&7)<<1&2}else{b=0}b=(a|b)<<1;switch(b-1|0){case 0:case 2:case 4:break t;case 5:break w;case 1:case 3:break y;default:break x}}if((d|0)==(c|0)){break k}i=-1;l=D[f+8>>2];o=D[l+24>>2];r=d-4|0;h=D[r>>2];a=-1;B:{if((h|0)==-1){break B}e=h+1|0;e=(e>>>0)%3|0?e:h-2|0;a=-1;if((e|0)==-1){break B}a=D[D[l>>2]+(e<<2)>>2]}b=D[o+(a<<2)>>2];if((b|0)!=-1){e=b+1|0;i=(e>>>0)%3|0?e:b-2|0}b=D[l+12>>2];g=J(g,3);e=g+1|0;D[b+(h<<2)>>2]=e;s=e<<2;D[s+b>>2]=h;p=g+2|0;D[b+(i<<2)>>2]=p;u=p<<2;D[u+b>>2]=i;e=-1;b=-1;C:{if((h|0)==-1){break C}D:{if((h>>>0)%3|0){h=h-1|0;break D}h=h+2|0;b=-1;if((h|0)==-1){break C}}b=D[D[l>>2]+(h<<2)>>2]}E:{if((i|0)==-1){break E}h=i+1|0;h=(h>>>0)%3|0?h:i-2|0;if((h|0)==-1){break E}e=D[D[l>>2]+(h<<2)>>2]}h=-1;if((a|0)==(b|0)|(a|0)==(e|0)){break j}h=D[l>>2];D[h+(g<<2)>>2]=a;D[h+s>>2]=e;D[h+u>>2]=b;if((b|0)!=-1){D[o+(b<<2)>>2]=p}b=D[f+120>>2]+(a>>>3&536870908)|0;e=D[b>>2];M=b,N=ji(a)&e,D[M>>2]=N;D[r>>2]=g;e=c;break m}if((d|0)==(c|0)){break k}a=D[f+8>>2];e=D[a+12>>2];i=J(g,3);o=(b|1)==5;r=i+(o?2:1)|0;s=r<<2;u=d-4|0;b=D[u>>2];D[e+s>>2]=b;D[e+(b<<2)>>2]=r;Ua(a+24|0);h=-1;e=D[f+8>>2];l=D[e+24>>2];if((z|0)<D[e+28>>2]-l>>2){break j}e=D[e>>2];K=e+s|0;h=D[a+28>>2];a=D[a+24>>2];s=(h-a>>2)-1|0;D[K>>2]=s;if((a|0)!=(h|0)){D[l+(s<<2)>>2]=r}h=o?i:i+2|0;o=e+(i+o<<2)|0;F:{if((b|0)==-1){D[e+(h<<2)>>2]=-1;a=-1;break F}G:{H:{I:{if((b>>>0)%3|0){a=b-1|0;break I}a=b+2|0;if((a|0)==-1){break H}}a=D[e+(a<<2)>>2];D[e+(h<<2)>>2]=a;if((a|0)==-1){break G}D[l+(a<<2)>>2]=h;break G}D[e+(h<<2)>>2]=-1}h=b+1|0;b=(h>>>0)%3|0?h:b-2|0;a=-1;if((b|0)==-1){break F}a=D[e+(b<<2)>>2]}D[o>>2]=a;D[u>>2]=i;e=c;break v}if((d|0)==(c|0)){break k}a=d-4|0;i=D[a>>2];D[m+68>>2]=a;l=D[m+44>>2];J:{if(!l){d=a;break J}e=D[m+40>>2];o=ii(l)>>>0>1;b=g&l+2147483647;K:{if(!o){break K}b=g;if(b>>>0<l>>>0){break K}b=(g>>>0)%(l>>>0)|0}h=b;b=D[e+(h<<2)>>2];if(!b){d=a;break J}b=D[b>>2];if(!b){d=a;break J}L:{if(!o){e=l-1|0;while(1){l=D[b+4>>2];M:{if((l|0)!=(g|0)){if((h|0)==(e&l)){break M}d=a;break J}if((g|0)==D[b+8>>2]){break L}}b=D[b>>2];if(b){continue}break}d=a;break J}while(1){e=D[b+4>>2];N:{if((e|0)!=(g|0)){if(e>>>0>=l>>>0){e=(e>>>0)%(l>>>0)|0}if((e|0)==(h|0)){break N}d=a;break J}if((g|0)==D[b+8>>2]){break L}}b=D[b>>2];if(b){continue}break}d=a;break J}if((a|0)!=(q|0)){D[a>>2]=D[b+12>>2];D[m+68>>2]=d;break J}a=q-c|0;e=a>>2;d=e+1|0;if(d>>>0>=1073741824){break s}j=a>>1;d=a>>>0<2147483644?d>>>0<j>>>0?j:d:1073741823;if(d){if(d>>>0>=1073741824){break i}j=na(d<<2)}else{j=0}e=j+(e<<2)|0;D[e>>2]=D[b+12>>2];q=(d<<2)+j|0;d=e+4|0;if((a|0)>0){oa(j,c,a)}D[m+72>>2]=q;D[m+68>>2]=d;D[m+64>>2]=j;if(!c){break J}ma(c)}if((d|0)==(j|0)){break u}r=d-4|0;b=D[r>>2];a=(b|0)==-1;e=D[f+8>>2];if(!a&D[D[e+12>>2]+(b<<2)>>2]!=-1){break u}h=D[e+12>>2];if((i|0)!=-1&D[h+(i<<2)>>2]!=-1){break u}p=J(g,3);o=p+2|0;D[h+(b<<2)>>2]=o;g=o<<2;D[g+h>>2]=b;c=p+1|0;D[h+(i<<2)>>2]=c;s=c<<2;D[s+h>>2]=i;if(a){break r}if((b>>>0)%3|0){a=b-1|0;break p}a=b+2|0;if((a|0)!=-1){break p}c=D[e>>2];a=-1;break o}i=D[f+8>>2];Ua(i+24|0);h=-1;b=D[f+8>>2];a=J(g,3);l=D[i+28>>2];o=D[i+24>>2];r=l-o|0;i=r>>2;s=i-1|0;D[D[b>>2]+(a<<2)>>2]=s;Ua(b+24|0);u=a+1|0;D[D[b>>2]+(u<<2)>>2]=(D[b+28>>2]-D[b+24>>2]>>2)-1;b=D[f+8>>2];Ua(b+24|0);K=a+2|0;D[D[b>>2]+(K<<2)>>2]=(D[b+28>>2]-D[b+24>>2]>>2)-1;L=D[f+8>>2];b=D[L+24>>2];if((z|0)<D[L+28>>2]-b>>2){break j}O:{P:{if((l|0)!=(o|0)){D[b+(s<<2)>>2]=a;h=0;if((r|0)==-4){break P}}D[b+(i<<2)>>2]=u;h=i+1|0;if((h|0)==-1){break O}}D[b+(h<<2)>>2]=K}if((d|0)!=(q|0)){D[d>>2]=a;d=d+4|0;D[m+68>>2]=d;break v}c=d-e|0;b=c>>2;d=b+1|0;if(d>>>0>=1073741824){break q}j=c>>1;d=c>>>0<2147483644?d>>>0<j>>>0?j:d:1073741823;if(d){if(d>>>0>=1073741824){break i}j=na(d<<2)}else{j=0}b=j+(b<<2)|0;D[b>>2]=a;q=(d<<2)+j|0;d=b+4|0;if((c|0)>0){oa(j,e,c)}D[m+72>>2]=q;D[m+68>>2]=d;D[m+64>>2]=j;if(e){ma(e)}c=j;e=c}b=D[f+40>>2];if((b|0)==D[f+36>>2]){break m}g=n+(g^-1)|0;h=d-4|0;while(1){a=b-12|0;i=D[a+4>>2];if(i>>>0>g>>>0){break u}if((g|0)!=(i|0)){break m}i=E[b-4|0];b=D[a>>2];D[f+40>>2]=a;if((b|0)<0){break u}a=D[h>>2];D[m+20>>2]=n+(b^-1);b=m+20|0;D[m+88>>2]=b;ud(m,m+40|0,b,m+88|0);l=D[m>>2];Q:{if(i&1){b=-1;if((a|0)==-1){break Q}b=a+1|0;b=(b>>>0)%3|0?b:a-2|0;break Q}b=-1;if((a|0)==-1){break Q}b=a-1|0;if((a>>>0)%3|0){break Q}b=a+2|0}D[l+12>>2]=b;b=D[f+40>>2];if((b|0)!=D[f+36>>2]){continue}break}break m}h=-1;if(p&1){break j}break l}T()}pa();T()}a=-1;c=D[e>>2];D[c+(p<<2)>>2]=-1;l=-1;break n}pa();T()}c=D[e>>2];a=D[c+(a<<2)>>2]}D[(p<<2)+c>>2]=a;u=b+1|0;b=(u>>>0)%3|0?u:b-2|0;l=-1;if((b|0)==-1){break n}l=D[(b<<2)+c>>2]}D[c+s>>2]=l;R:{if((i|0)==-1){D[c+g>>2]=-1;l=-1;b=-1;break R}S:{T:{U:{if((i>>>0)%3|0){b=i-1|0;break U}b=i+2|0;if((b|0)==-1){break T}}b=D[(b<<2)+c>>2];D[c+g>>2]=b;if((b|0)==-1){break S}D[D[e+24>>2]+(b<<2)>>2]=o;break S}D[c+g>>2]=-1}l=-1;g=i+1|0;g=(g>>>0)%3|0?g:i-2|0;b=-1;if((g|0)==-1){break R}l=D[(g<<2)+c>>2];b=g}e=D[e+24>>2];g=e+(l<<2)|0;if((a|0)!=-1){D[e+(a<<2)>>2]=D[g>>2]}V:{if((b|0)==-1){break V}while(1){D[(b<<2)+c>>2]=a;e=b+1|0;b=(e>>>0)%3|0?e:b-2|0;if((b|0)==-1){break V}b=D[h+(b<<2)>>2];if((b|0)==-1){break V}e=b+1|0;b=(e>>>0)%3|0?e:b-2|0;if((b|0)!=-1){continue}break}}D[g>>2]=-1;W:{if(I){break W}if((w|0)!=(x|0)){D[w>>2]=l;w=w+4|0;D[m+28>>2]=w;break W}c=x-k|0;g=c>>2;a=g+1|0;if(a>>>0<1073741824){b=c>>1;b=c>>>0<2147483644?a>>>0<b>>>0?b:a:1073741823;if(b){if(b>>>0>=1073741824){break i}a=na(b<<2)}else{a=0}g=a+(g<<2)|0;D[g>>2]=l;x=a+(b<<2)|0;w=g+4|0;if((c|0)>0){oa(a,k,c)}D[m+32>>2]=x;D[m+28>>2]=w;D[m+24>>2]=a;if(k){ma(k)}k=a;break W}pa();T()}D[r>>2]=p;c=j;e=c}p=(n|0)>(v|0);if((n|0)!=(v|0)){continue}break}v=n}h=-1;i=D[f+8>>2];if((z|0)<D[i+28>>2]-D[i+24>>2]>>2){break j}if((d|0)!=(j|0)){a=f+60|0;z=f+312|0;while(1){d=d-4|0;n=D[d>>2];D[m+68>>2]=d;X:{if(za(z)){q=D[f+8>>2];l=D[q>>2];if(((D[q+4>>2]-l>>2>>>0)/3|0)<=(v|0)){break k}c=-1;i=-1;g=D[q+24>>2];b=-1;Y:{if((n|0)==-1){break Y}e=n+1|0;e=(e>>>0)%3|0?e:n-2|0;b=-1;if((e|0)==-1){break Y}b=D[l+(e<<2)>>2]}e=b;b=D[g+(e<<2)>>2];Z:{if((b|0)==-1){break Z}p=b+1|0;b=(p>>>0)%3|0?p:b-2|0;if((b|0)==-1){break Z}c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)!=-1){i=D[l+(c<<2)>>2]}c=b}p=-1;o=-1;g=D[g+(i<<2)>>2];b=-1;_:{if((g|0)==-1){break _}x=g+1|0;g=(x>>>0)%3|0?x:g-2|0;b=-1;if((g|0)==-1){break _}b=g+1|0;b=(b>>>0)%3|0?b:g-2|0;if((b|0)!=-1){o=D[l+(b<<2)>>2]}b=g}g=D[q+12>>2];q=J(v,3);x=q<<2;D[g+x>>2]=n;D[g+(n<<2)>>2]=q;n=q+1|0;r=n<<2;D[r+g>>2]=c;D[g+(c<<2)>>2]=n;c=q+2|0;I=c<<2;D[I+g>>2]=b;D[g+(b<<2)>>2]=c;D[l+x>>2]=i;b=l+r|0;D[b>>2]=o;l=l+I|0;D[l>>2]=e;g=D[f+120>>2];e=n?i:-1;i=g+(e>>>3&536870908)|0;o=D[i>>2];M=i,N=ji(e)&o,D[M>>2]=N;p=(n|0)!=-1?D[b>>2]:p;b=g+(p>>>3&536870908)|0;e=D[b>>2];M=b,N=ji(p)&e,D[M>>2]=N;b=-1;b=(c|0)!=-1?D[l>>2]:b;c=g+(b>>>3&536870908)|0;g=D[c>>2];M=c,N=ji(b)&g,D[M>>2]=N;b=D[f+64>>2];c=D[f+68>>2];if((b|0)==c<<5){if((b+1|0)<0){break h}if(b>>>0<=1073741822){c=c<<6;b=b+32&-32;c=b>>>0<c>>>0?c:b}else{c=2147483647}Xa(a,c);b=D[f+64>>2]}v=v+1|0;D[f+64>>2]=b+1;c=D[f+60>>2]+(b>>>3&536870908)|0;D[c>>2]=D[c>>2]|1<<b;c=D[f+76>>2];if((c|0)!=D[f+80>>2]){D[c>>2]=q;D[f+76>>2]=c+4;break X}g=D[f+72>>2];b=c-g|0;n=b>>2;c=n+1|0;if(c>>>0>=1073741824){break g}e=b>>1;e=b>>>0<2147483644?c>>>0<e>>>0?e:c:1073741823;if(e){if(e>>>0>=1073741824){break i}c=na(e<<2)}else{c=0}n=c+(n<<2)|0;D[n>>2]=q;if((b|0)>0){oa(c,g,b)}D[f+80>>2]=c+(e<<2);D[f+76>>2]=n+4;D[f+72>>2]=c;if(!g){break X}ma(g);break X}c=D[f+64>>2];b=D[f+68>>2];if((c|0)==b<<5){if((c+1|0)<0){break h}if(c>>>0<=1073741822){b=b<<6;c=c+32&-32;c=b>>>0>c>>>0?b:c}else{c=2147483647}Xa(a,c);c=D[f+64>>2]}D[f+64>>2]=c+1;b=D[f+60>>2]+(c>>>3&536870908)|0;g=D[b>>2];M=b,N=ji(c)&g,D[M>>2]=N;c=D[f+76>>2];if((c|0)!=D[f+80>>2]){D[c>>2]=n;D[f+76>>2]=c+4;break X}g=D[f+72>>2];b=c-g|0;i=b>>2;c=i+1|0;if(c>>>0>=1073741824){break g}e=b>>1;e=b>>>0<2147483644?c>>>0<e>>>0?e:c:1073741823;if(e){if(e>>>0>=1073741824){break i}c=na(e<<2)}else{c=0}i=c+(i<<2)|0;D[i>>2]=n;if((b|0)>0){oa(c,g,b)}D[f+80>>2]=c+(e<<2);D[f+76>>2]=i+4;D[f+72>>2]=c;if(!g){break X}ma(g)}if((d|0)!=(j|0)){continue}break}i=D[f+8>>2]}if(((D[i+4>>2]-D[i>>2]>>2>>>0)/3|0)!=(v|0)){break j}h=D[i+28>>2]-D[i+24>>2]>>2;if((k|0)==(w|0)){k=w;break j}a=k;while(1){c=D[a>>2];g=D[i+24>>2];b=h-1|0;d=g+(b<<2)|0;if(D[d>>2]==-1){while(1){b=h-2|0;h=h-1|0;d=g+(b<<2)|0;if(D[d>>2]==-1){continue}break}}if(b>>>0>=c>>>0){D[m>>2]=i;d=D[d>>2];B[m+12|0]=1;D[m+8>>2]=d;D[m+4>>2]=d;if((d|0)!=-1){while(1){d=D[D[f+8>>2]>>2]+(d<<2)|0;if(D[d>>2]!=(b|0)){break k}D[d>>2]=c;kc(m);d=D[m+8>>2];if((d|0)!=-1){continue}break}i=D[f+8>>2]}g=D[i+24>>2];d=g+(b<<2)|0;if((c|0)!=-1){D[g+(c<<2)>>2]=D[d>>2]}D[d>>2]=-1;d=1<<c;g=D[f+120>>2];c=g+(c>>>3&536870908)|0;g=g+(b>>>3&536870908)|0;b=1<<b;if(D[g>>2]&b){d=d|D[c>>2]}else{d=D[c>>2]&(d^-1)}D[c>>2]=d;D[g>>2]=D[g>>2]&(b^-1);h=h-1|0}a=a+4|0;if((w|0)!=(a|0)){continue}break}break j}h=-1}if(k){ma(k)}a=D[m+48>>2];if(a){while(1){d=D[a>>2];ma(a);a=d;if(a){continue}break}}a=D[m+40>>2];D[m+40>>2]=0;if(a){ma(a)}if(j){D[m+68>>2]=j;ma(j)}$=m+96|0;a=h;break f}sa();T()}pa();T()}pa();T()}c=a;if((a|0)==-1){break e}a=D[H+16>>2];d=a+D[H>>2]|0;j=D[H+8>>2];j=j-a|0;a=D[D[f+4>>2]+32>>2];C[a+38>>1]=F[a+38>>1];D[a>>2]=d;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=j;D[a+12>>2]=0;$:{if(D[f+216>>2]==D[f+220>>2]){break $}a=D[f+8>>2];if(D[a+4>>2]==D[a>>2]){break $}d=0;while(1){if(xd(f,d)){d=d+3|0;a=D[f+8>>2];if(d>>>0<D[a+4>>2]-D[a>>2]>>2>>>0){continue}break $}break}break e}if(E[f+308|0]){B[f+308|0]=0;d=D[f+292>>2];a=0;j=D[f+304>>2]+7|0;a=j>>>0<7?1:a;k=a>>>3|0;j=a<<29|j>>>3;a=j+D[f+288>>2]|0;b=d+k|0;D[f+288>>2]=a;D[f+292>>2]=a>>>0<j>>>0?b+1|0:b}d=D[f+216>>2];if((d|0)!=D[f+220>>2]){while(1){j=J(A,144);Xc((j+d|0)+4|0,D[f+8>>2]);a=D[y>>2];k=a+j|0;d=D[k+132>>2];k=D[k+136>>2];if((d|0)!=(k|0)){while(1){Vc((j+D[y>>2]|0)+4|0,D[d>>2]);d=d+4|0;if((k|0)!=(d|0)){continue}break}a=D[y>>2]}Wc((a+j|0)+4|0);A=A+1|0;d=D[f+216>>2];if(A>>>0<(D[f+220>>2]-d|0)/144>>>0){continue}break}}a=D[f+8>>2];Hb(f+184|0,D[a+28>>2]-D[a+24>>2]>>2);k=D[f+216>>2];if((k|0)!=D[f+220>>2]){d=0;while(1){a=J(d,144)+k|0;j=D[a+60>>2]-D[a+56>>2]>>2;b=a+104|0;a=D[f+8>>2];a=D[a+28>>2]-D[a+24>>2]>>2;Hb(b,(a|0)<(j|0)?j:a);d=d+1|0;k=D[f+216>>2];if(d>>>0<(D[f+220>>2]-k|0)/144>>>0){continue}break}}A=wd(f,c)}}$=t- -64|0;return A|0}function of(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,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;a:{b:{c:{d:{switch(d-1|0){case 0:a=0;m=$-16|0;$=m;j=D[b+80>>2];d=B[c+24|0];e:{if((J(j,d)|0)!=(e|0)){break e}a=D[c+28>>2]!=1;k=E[c+84|0];if(!(a|!k)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break e}D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(d){if((d|0)<0){break c}h=na(d);D[m>>2]=h;qa(h,0,d)}f:{g:{if(!j){break g}if(!a){if(d){n=d&-4;l=d&3;b=0;o=d-1>>>0<3;d=0;while(1){e=D[D[c>>2]>>2];t=D[c+40>>2];a=D[c+48>>2]+fi(t,D[c+44>>2],E[c+84|0]?d:D[D[c+68>>2]+(d<<2)>>2],0)|0;e=oa(h,e+a|0,t);k=0;a=0;g=0;if(!o){while(1){i=b+f|0;B[i|0]=E[a+e|0];B[i+1|0]=E[e+(a|1)|0];B[i+2|0]=E[e+(a|2)|0];B[i+3|0]=E[e+(a|3)|0];a=a+4|0;b=b+4|0;g=g+4|0;if((n|0)!=(g|0)){continue}break}}if(l){while(1){B[b+f|0]=E[a+e|0];a=a+1|0;b=b+1|0;k=k+1|0;if((l|0)!=(k|0)){continue}break}}a=1;d=d+1|0;if((j|0)!=(d|0)){continue}break}break f}l=D[c>>2];b=D[c+48>>2];o=D[c+68>>2];d=D[c+44>>2];c=D[c+40>>2];t=c;a=0;if((j|0)!=1){q=j&-2;while(1){e=a|1;p=D[l>>2];f=fi(c,d,k?a:D[o+(a<<2)>>2],0)+b|0;f=oa(h,p+f|0,t);p=D[l>>2];if(!k){e=D[o+(e<<2)>>2]}e=fi(c,d,e,0)+b|0;oa(f,e+p|0,t);a=a+2|0;g=g+2|0;if((q|0)!=(g|0)){continue}break}}if(!(j&1)){break g}e=D[l>>2];if(!k){a=D[o+(a<<2)>>2]}a=fi(c,d,a,0)+b|0;oa(h,a+e|0,t);break g}if(!d){a=0;i=1;while(1){if(!Db(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],h)){break g}a=a+1|0;i=j>>>0>a>>>0;if((a|0)!=(j|0)){continue}break}break g}l=d&-4;g=d&3;b=0;n=d-1>>>0<3;i=1;d=0;while(1){if(!Db(c,E[c+84|0]?d:D[D[c+68>>2]+(d<<2)>>2],B[c+24|0],h)){break g}i=0;a=0;k=0;if(!n){while(1){e=b+f|0;B[e|0]=E[a+h|0];B[e+1|0]=E[(a|1)+h|0];B[e+2|0]=E[(a|2)+h|0];B[e+3|0]=E[(a|3)+h|0];a=a+4|0;b=b+4|0;k=k+4|0;if((l|0)!=(k|0)){continue}break}}if(g){while(1){B[b+f|0]=E[a+h|0];a=a+1|0;b=b+1|0;i=i+1|0;if((g|0)!=(i|0)){continue}break}}d=d+1|0;i=j>>>0>d>>>0;if((d|0)!=(j|0)){continue}break}a=d>>>0>=j>>>0;break f}a=i^1;if(!h){break e}}ma(h)}break b;case 2:a=0;m=$-16|0;$=m;g=B[c+24|0];d=g<<1;l=D[b+80>>2];h:{if((J(d,l)|0)!=(e|0)){break h}b=D[c+28>>2]!=3;n=E[c+84|0];if(!(b|!n)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break h}D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(g){if((g|0)<0){break c}h=na(d);D[m>>2]=h;qa(h,0,d)}i:{j:{if(!l){break j}if(!b){o=D[c>>2];e=D[c+48>>2];q=D[c+68>>2];j=D[c+44>>2];k=D[c+40>>2];p=k;if(g){v=g&-4;u=g&3;d=0;w=g-1>>>0<3;b=0;while(1){c=D[o>>2];a=fi(k,j,n?b:D[q+(b<<2)>>2],0)+e|0;g=oa(h,c+a|0,p);i=0;a=0;c=0;if(!w){while(1){r=(d<<1)+f|0;s=a<<1;C[r>>1]=F[s+g>>1];C[r+2>>1]=F[g+(s|2)>>1];C[r+4>>1]=F[g+(s|4)>>1];C[r+6>>1]=F[g+(s|6)>>1];a=a+4|0;d=d+4|0;c=c+4|0;if((v|0)!=(c|0)){continue}break}}if(u){while(1){C[(d<<1)+f>>1]=F[g+(a<<1)>>1];a=a+1|0;d=d+1|0;i=i+1|0;if((u|0)!=(i|0)){continue}break}}a=1;b=b+1|0;if((l|0)!=(b|0)){continue}break}break i}if((l|0)!=1){d=l&-2;g=0;while(1){b=a|1;f=D[o>>2];c=fi(k,j,n?a:D[q+(a<<2)>>2],0)+e|0;c=oa(h,f+c|0,p);f=D[o>>2];if(!n){b=D[q+(b<<2)>>2]}b=fi(k,j,b,0)+e|0;oa(c,b+f|0,p);a=a+2|0;g=g+2|0;if((d|0)!=(g|0)){continue}break}}if(!(l&1)){break j}b=D[o>>2];if(!n){a=D[q+(a<<2)>>2]}a=fi(k,j,a,0)+e|0;oa(h,a+b|0,p);break j}if(!g){i=1;while(1){if(!Bb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],h)){break j}a=a+1|0;i=l>>>0>a>>>0;if((a|0)!=(l|0)){continue}break}break j}n=g&-4;k=g&3;d=0;o=g-1>>>0<3;i=1;b=0;while(1){if(!Bb(c,E[c+84|0]?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],h)){break j}g=0;a=0;i=0;if(!o){while(1){e=(d<<1)+f|0;j=a<<1;C[e>>1]=F[j+h>>1];C[e+2>>1]=F[(j|2)+h>>1];C[e+4>>1]=F[(j|4)+h>>1];C[e+6>>1]=F[(j|6)+h>>1];a=a+4|0;d=d+4|0;i=i+4|0;if((n|0)!=(i|0)){continue}break}}if(k){while(1){C[(d<<1)+f>>1]=F[(a<<1)+h>>1];a=a+1|0;d=d+1|0;g=g+1|0;if((k|0)!=(g|0)){continue}break}}b=b+1|0;i=l>>>0>b>>>0;if((b|0)!=(l|0)){continue}break}a=b>>>0>=l>>>0;break i}a=!i;if(!h){break h}}ma(h)}break b;case 4:a=0;m=$-16|0;$=m;g=B[c+24|0];d=g<<2;l=D[b+80>>2];k:{if((J(d,l)|0)!=(e|0)){break k}b=D[c+28>>2]!=5;n=E[c+84|0];if(!(b|!n)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break k}D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(g){if((g|0)<0){break c}h=na(d);D[m>>2]=h;qa(h,0,d)}l:{m:{if(!l){break m}if(!b){o=D[c>>2];e=D[c+48>>2];q=D[c+68>>2];j=D[c+44>>2];k=D[c+40>>2];p=k;if(g){v=g&-4;u=g&3;d=0;w=g-1>>>0<3;b=0;while(1){c=D[o>>2];a=fi(k,j,n?b:D[q+(b<<2)>>2],0)+e|0;g=oa(h,c+a|0,p);i=0;a=0;c=0;if(!w){while(1){r=(d<<2)+f|0;s=a<<2;D[r>>2]=D[s+g>>2];D[r+4>>2]=D[g+(s|4)>>2];D[r+8>>2]=D[g+(s|8)>>2];D[r+12>>2]=D[g+(s|12)>>2];a=a+4|0;d=d+4|0;c=c+4|0;if((v|0)!=(c|0)){continue}break}}if(u){while(1){D[(d<<2)+f>>2]=D[g+(a<<2)>>2];a=a+1|0;d=d+1|0;i=i+1|0;if((u|0)!=(i|0)){continue}break}}a=1;b=b+1|0;if((l|0)!=(b|0)){continue}break}break l}if((l|0)!=1){d=l&-2;g=0;while(1){b=a|1;f=D[o>>2];c=fi(k,j,n?a:D[q+(a<<2)>>2],0)+e|0;c=oa(h,f+c|0,p);f=D[o>>2];if(!n){b=D[q+(b<<2)>>2]}b=fi(k,j,b,0)+e|0;oa(c,b+f|0,p);a=a+2|0;g=g+2|0;if((d|0)!=(g|0)){continue}break}}if(!(l&1)){break m}b=D[o>>2];if(!n){a=D[q+(a<<2)>>2]}a=fi(k,j,a,0)+e|0;oa(h,a+b|0,p);break m}if(!g){i=1;while(1){if(!zb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],h)){break m}a=a+1|0;i=l>>>0>a>>>0;if((a|0)!=(l|0)){continue}break}break m}n=g&-4;k=g&3;d=0;o=g-1>>>0<3;i=1;b=0;while(1){if(!zb(c,E[c+84|0]?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],h)){break m}g=0;a=0;i=0;if(!o){while(1){e=(d<<2)+f|0;j=a<<2;D[e>>2]=D[j+h>>2];D[e+4>>2]=D[(j|4)+h>>2];D[e+8>>2]=D[(j|8)+h>>2];D[e+12>>2]=D[(j|12)+h>>2];a=a+4|0;d=d+4|0;i=i+4|0;if((n|0)!=(i|0)){continue}break}}if(k){while(1){D[(d<<2)+f>>2]=D[(a<<2)+h>>2];a=a+1|0;d=d+1|0;g=g+1|0;if((k|0)!=(g|0)){continue}break}}b=b+1|0;i=l>>>0>b>>>0;if((b|0)!=(l|0)){continue}break}a=b>>>0>=l>>>0;break l}a=!i;if(!h){break k}}ma(h)}break b;case 1:a=0;m=$-16|0;$=m;j=D[b+80>>2];d=B[c+24|0];n:{if((J(j,d)|0)!=(e|0)){break n}a=D[c+28>>2]!=2;k=E[c+84|0];if(!(a|!k)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break n}D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(d){if((d|0)<0){break c}h=na(d);D[m>>2]=h;qa(h,0,d)}o:{p:{if(!j){break p}if(!a){if(d){n=d&-4;l=d&3;b=0;o=d-1>>>0<3;d=0;while(1){e=D[D[c>>2]>>2];t=D[c+40>>2];a=D[c+48>>2]+fi(t,D[c+44>>2],E[c+84|0]?d:D[D[c+68>>2]+(d<<2)>>2],0)|0;e=oa(h,e+a|0,t);k=0;a=0;g=0;if(!o){while(1){i=b+f|0;B[i|0]=E[a+e|0];B[i+1|0]=E[e+(a|1)|0];B[i+2|0]=E[e+(a|2)|0];B[i+3|0]=E[e+(a|3)|0];a=a+4|0;b=b+4|0;g=g+4|0;if((n|0)!=(g|0)){continue}break}}if(l){while(1){B[b+f|0]=E[a+e|0];a=a+1|0;b=b+1|0;k=k+1|0;if((l|0)!=(k|0)){continue}break}}a=1;d=d+1|0;if((j|0)!=(d|0)){continue}break}break o}l=D[c>>2];b=D[c+48>>2];o=D[c+68>>2];d=D[c+44>>2];c=D[c+40>>2];t=c;a=0;if((j|0)!=1){q=j&-2;while(1){e=a|1;p=D[l>>2];f=fi(c,d,k?a:D[o+(a<<2)>>2],0)+b|0;f=oa(h,p+f|0,t);p=D[l>>2];if(!k){e=D[o+(e<<2)>>2]}e=fi(c,d,e,0)+b|0;oa(f,e+p|0,t);a=a+2|0;g=g+2|0;if((q|0)!=(g|0)){continue}break}}if(!(j&1)){break p}e=D[l>>2];if(!k){a=D[o+(a<<2)>>2]}a=fi(c,d,a,0)+b|0;oa(h,a+e|0,t);break p}if(!d){a=0;i=1;while(1){if(!Cb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],h)){break p}a=a+1|0;i=j>>>0>a>>>0;if((a|0)!=(j|0)){continue}break}break p}l=d&-4;g=d&3;b=0;n=d-1>>>0<3;i=1;d=0;while(1){if(!Cb(c,E[c+84|0]?d:D[D[c+68>>2]+(d<<2)>>2],B[c+24|0],h)){break p}i=0;a=0;k=0;if(!n){while(1){e=b+f|0;B[e|0]=E[a+h|0];B[e+1|0]=E[(a|1)+h|0];B[e+2|0]=E[(a|2)+h|0];B[e+3|0]=E[(a|3)+h|0];a=a+4|0;b=b+4|0;k=k+4|0;if((l|0)!=(k|0)){continue}break}}if(g){while(1){B[b+f|0]=E[a+h|0];a=a+1|0;b=b+1|0;i=i+1|0;if((g|0)!=(i|0)){continue}break}}d=d+1|0;i=j>>>0>d>>>0;if((d|0)!=(j|0)){continue}break}a=d>>>0>=j>>>0;break o}a=i^1;if(!h){break n}}ma(h)}break b;case 3:a=0;m=$-16|0;$=m;g=B[c+24|0];d=g<<1;l=D[b+80>>2];q:{if((J(d,l)|0)!=(e|0)){break q}b=D[c+28>>2]!=4;n=E[c+84|0];if(!(b|!n)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break q}D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(g){if((g|0)<0){break c}h=na(d);D[m>>2]=h;qa(h,0,d)}r:{s:{if(!l){break s}if(!b){o=D[c>>2];e=D[c+48>>2];q=D[c+68>>2];j=D[c+44>>2];k=D[c+40>>2];p=k;if(g){v=g&-4;u=g&3;d=0;w=g-1>>>0<3;b=0;while(1){c=D[o>>2];a=fi(k,j,n?b:D[q+(b<<2)>>2],0)+e|0;g=oa(h,c+a|0,p);i=0;a=0;c=0;if(!w){while(1){r=(d<<1)+f|0;s=a<<1;C[r>>1]=F[s+g>>1];C[r+2>>1]=F[g+(s|2)>>1];C[r+4>>1]=F[g+(s|4)>>1];C[r+6>>1]=F[g+(s|6)>>1];a=a+4|0;d=d+4|0;c=c+4|0;if((v|0)!=(c|0)){continue}break}}if(u){while(1){C[(d<<1)+f>>1]=F[g+(a<<1)>>1];a=a+1|0;d=d+1|0;i=i+1|0;if((u|0)!=(i|0)){continue}break}}a=1;b=b+1|0;if((l|0)!=(b|0)){continue}break}break r}if((l|0)!=1){d=l&-2;g=0;while(1){b=a|1;f=D[o>>2];c=fi(k,j,n?a:D[q+(a<<2)>>2],0)+e|0;c=oa(h,f+c|0,p);f=D[o>>2];if(!n){b=D[q+(b<<2)>>2]}b=fi(k,j,b,0)+e|0;oa(c,b+f|0,p);a=a+2|0;g=g+2|0;if((d|0)!=(g|0)){continue}break}}if(!(l&1)){break s}b=D[o>>2];if(!n){a=D[q+(a<<2)>>2]}a=fi(k,j,a,0)+e|0;oa(h,a+b|0,p);break s}if(!g){i=1;while(1){if(!Ab(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],h)){break s}a=a+1|0;i=l>>>0>a>>>0;if((a|0)!=(l|0)){continue}break}break s}n=g&-4;k=g&3;d=0;o=g-1>>>0<3;i=1;b=0;while(1){if(!Ab(c,E[c+84|0]?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],h)){break s}g=0;a=0;i=0;if(!o){while(1){e=(d<<1)+f|0;j=a<<1;C[e>>1]=F[j+h>>1];C[e+2>>1]=F[(j|2)+h>>1];C[e+4>>1]=F[(j|4)+h>>1];C[e+6>>1]=F[(j|6)+h>>1];a=a+4|0;d=d+4|0;i=i+4|0;if((n|0)!=(i|0)){continue}break}}if(k){while(1){C[(d<<1)+f>>1]=F[(a<<1)+h>>1];a=a+1|0;d=d+1|0;g=g+1|0;if((k|0)!=(g|0)){continue}break}}b=b+1|0;i=l>>>0>b>>>0;if((b|0)!=(l|0)){continue}break}a=b>>>0>=l>>>0;break r}a=!i;if(!h){break q}}ma(h)}break b;case 5:a=0;m=$-16|0;$=m;g=B[c+24|0];d=g<<2;l=D[b+80>>2];t:{if((J(d,l)|0)!=(e|0)){break t}b=D[c+28>>2]!=6;n=E[c+84|0];if(!(b|!n)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break t}D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(g){if((g|0)<0){break c}h=na(d);D[m>>2]=h;qa(h,0,d)}u:{v:{if(!l){break v}if(!b){o=D[c>>2];e=D[c+48>>2];q=D[c+68>>2];j=D[c+44>>2];k=D[c+40>>2];p=k;if(g){v=g&-4;u=g&3;d=0;w=g-1>>>0<3;b=0;while(1){c=D[o>>2];a=fi(k,j,n?b:D[q+(b<<2)>>2],0)+e|0;g=oa(h,c+a|0,p);i=0;a=0;c=0;if(!w){while(1){r=(d<<2)+f|0;s=a<<2;D[r>>2]=D[s+g>>2];D[r+4>>2]=D[g+(s|4)>>2];D[r+8>>2]=D[g+(s|8)>>2];D[r+12>>2]=D[g+(s|12)>>2];a=a+4|0;d=d+4|0;c=c+4|0;if((v|0)!=(c|0)){continue}break}}if(u){while(1){D[(d<<2)+f>>2]=D[g+(a<<2)>>2];a=a+1|0;d=d+1|0;i=i+1|0;if((u|0)!=(i|0)){continue}break}}a=1;b=b+1|0;if((l|0)!=(b|0)){continue}break}break u}if((l|0)!=1){d=l&-2;g=0;while(1){b=a|1;f=D[o>>2];c=fi(k,j,n?a:D[q+(a<<2)>>2],0)+e|0;c=oa(h,f+c|0,p);f=D[o>>2];if(!n){b=D[q+(b<<2)>>2]}b=fi(k,j,b,0)+e|0;oa(c,b+f|0,p);a=a+2|0;g=g+2|0;if((d|0)!=(g|0)){continue}break}}if(!(l&1)){break v}b=D[o>>2];if(!n){a=D[q+(a<<2)>>2]}a=fi(k,j,a,0)+e|0;oa(h,a+b|0,p);break v}if(!g){i=1;while(1){if(!yb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],h)){break v}a=a+1|0;i=l>>>0>a>>>0;if((a|0)!=(l|0)){continue}break}break v}n=g&-4;k=g&3;d=0;o=g-1>>>0<3;i=1;b=0;while(1){if(!yb(c,E[c+84|0]?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],h)){break v}g=0;a=0;i=0;if(!o){while(1){e=(d<<2)+f|0;j=a<<2;D[e>>2]=D[j+h>>2];D[e+4>>2]=D[(j|4)+h>>2];D[e+8>>2]=D[(j|8)+h>>2];D[e+12>>2]=D[(j|12)+h>>2];a=a+4|0;d=d+4|0;i=i+4|0;if((n|0)!=(i|0)){continue}break}}if(k){while(1){D[(d<<2)+f>>2]=D[(a<<2)+h>>2];a=a+1|0;d=d+1|0;g=g+1|0;if((k|0)!=(g|0)){continue}break}}b=b+1|0;i=l>>>0>b>>>0;if((b|0)!=(l|0)){continue}break}a=b>>>0>=l>>>0;break u}a=!i;if(!h){break t}}ma(h)}break b;case 8:break d;default:break a}}a=0;l=$-16|0;$=l;i=B[c+24|0];d=i<<2;g=D[b+80>>2];w:{if((J(d,g)|0)!=(e|0)){break w}e=D[c+28>>2];D[l+8>>2]=0;D[l>>2]=0;D[l+4>>2]=0;b=0;x:{y:{z:{A:{if(!i){break A}if((i|0)<0){break z}b=na(d);D[l>>2]=b;j=(i<<2)+b|0;D[l+8>>2]=j;a=b;d=d-4|0;m=(d>>>2|0)+1&7;if(m){while(1){D[a>>2]=-1073741824;a=a+4|0;h=h+1|0;if((m|0)!=(h|0)){continue}break}}if(d>>>0<28){break A}while(1){D[a+24>>2]=-1073741824;D[a+28>>2]=-1073741824;D[a+16>>2]=-1073741824;D[a+20>>2]=-1073741824;D[a+8>>2]=-1073741824;D[a+12>>2]=-1073741824;D[a>>2]=-1073741824;D[a+4>>2]=-1073741824;a=a+32|0;if((j|0)!=(a|0)){continue}break}}if(!g){break y}if((e|0)==9){a=0;n=D[c>>2];d=D[c+48>>2];t=D[c+68>>2];q=E[c+84|0];e=D[c+44>>2];j=D[c+40>>2];p=j;if((i|0)<=0){if((g|0)!=1){i=g&-2;c=0;while(1){f=a|1;m=D[n>>2];h=fi(j,e,q?a:D[t+(a<<2)>>2],0)+d|0;h=oa(b,m+h|0,p);m=D[n>>2];if(!q){f=D[t+(f<<2)>>2]}f=fi(j,e,f,0)+d|0;oa(h,f+m|0,p);a=a+2|0;c=c+2|0;if((i|0)!=(c|0)){continue}break}}if(!(g&1)){break y}c=D[n>>2];if(!q){a=D[t+(a<<2)>>2]}a=fi(j,e,a,0)+d|0;oa(b,a+c|0,p);break y}v=i&-4;s=i&3;h=0;w=i-1>>>0<3;i=0;while(1){c=D[n>>2];a=fi(j,e,q?i:D[t+(i<<2)>>2],0)+d|0;c=oa(b,c+a|0,p);m=0;a=0;u=0;if(!w){while(1){k=(h<<2)+f|0;r=a<<2;H[k>>2]=H[r+c>>2];H[k+4>>2]=H[c+(r|4)>>2];H[k+8>>2]=H[c+(r|8)>>2];H[k+12>>2]=H[c+(r|12)>>2];a=a+4|0;h=h+4|0;u=u+4|0;if((v|0)!=(u|0)){continue}break}}if(s){while(1){H[(h<<2)+f>>2]=H[c+(a<<2)>>2];a=a+1|0;h=h+1|0;m=m+1|0;if((s|0)!=(m|0)){continue}break}}a=1;i=i+1|0;if((g|0)!=(i|0)){continue}break}break x}k=1;if((i|0)<=0){a=0;while(1){if(!nb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],b)){break y}a=a+1|0;k=g>>>0>a>>>0;if((a|0)!=(g|0)){continue}break}break y}n=i&-4;j=i&3;h=0;o=i-1>>>0<3;i=0;while(1){if(!nb(c,E[c+84|0]?i:D[D[c+68>>2]+(i<<2)>>2],B[c+24|0],b)){break y}k=0;a=0;m=0;if(!o){while(1){d=(h<<2)+f|0;e=a<<2;H[d>>2]=H[e+b>>2];H[d+4>>2]=H[(e|4)+b>>2];H[d+8>>2]=H[(e|8)+b>>2];H[d+12>>2]=H[(e|12)+b>>2];a=a+4|0;h=h+4|0;m=m+4|0;if((n|0)!=(m|0)){continue}break}}if(j){while(1){H[(h<<2)+f>>2]=H[(a<<2)+b>>2];a=a+1|0;h=h+1|0;k=k+1|0;if((j|0)!=(k|0)){continue}break}}i=i+1|0;k=g>>>0>i>>>0;if((g|0)!=(i|0)){continue}break}a=g>>>0<=i>>>0;break x}pa();T()}a=k^1;if(!b){break w}}ma(b)}$=l+16|0;h=a&1;break a}pa();T()}$=m+16|0;h=a&1}return h|0}function yf(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0;z=c;c=0;n=$-96|0;$=n;k=n+16|0;qa(k,0,76);D[n+92>>2]=-1;D[n+8>>2]=0;D[n>>2]=0;D[n+4>>2]=0;q=$-16|0;$=q;D[k+68>>2]=0;D[k+72>>2]=0;D[k>>2]=b;s=$-16|0;$=s;v=b;a=D[b+20>>2];a:{if((D[b+24>>2]-a|0)<=0){break a}a=D[a>>2];if((a|0)==-1){break a}c=D[D[v+8>>2]+(a<<2)>>2]}b:{c:{d:{if(!c){a=0;break d}a=D[v+100>>2];d=D[v+96>>2];D[s+8>>2]=0;D[s>>2]=0;D[s+4>>2]=0;e=a-d|0;b=(e|0)/12|0;e:{if((a|0)==(d|0)){break e}if(b>>>0>=357913942){break c}f=na(e);D[s>>2]=f;D[s+8>>2]=f+J(b,12);a=0;g=f;e=e-12|0;f=(e-((e>>>0)%12|0)|0)+12|0;e=qa(g,0,f);D[s+4>>2]=e+f;if(E[c+84|0]){c=b>>>0>1?b:1;g=c&1;if(b>>>0>=2){i=c&-2;c=0;while(1){f=J(a,12);b=f+d|0;h=D[b+4>>2];o=D[b>>2];f=e+f|0;D[f+8>>2]=D[b+8>>2];D[f>>2]=o;D[f+4>>2]=h;f=J(a|1,12);b=f+d|0;h=D[b+4>>2];o=D[b>>2];f=e+f|0;D[f+8>>2]=D[b+8>>2];D[f>>2]=o;D[f+4>>2]=h;a=a+2|0;c=c+2|0;if((i|0)!=(c|0)){continue}break}}if(!g){break e}b=J(a,12);a=b+d|0;c=D[a+4>>2];d=D[a>>2];b=b+e|0;D[b+8>>2]=D[a+8>>2];D[b>>2]=d;D[b+4>>2]=c;break e}g=b>>>0>1?b:1;a=D[c+68>>2];c=0;while(1){f=J(c,12);b=f+d|0;i=D[a+(D[b>>2]<<2)>>2];h=D[a+(D[b+4>>2]<<2)>>2];f=e+f|0;D[f+8>>2]=D[a+(D[b+8>>2]<<2)>>2];D[f+4>>2]=h;D[f>>2]=i;c=c+1|0;if((g|0)!=(c|0)){continue}break}}c=0;F=$-16|0;$=F;h=na(88);Wb(h);A=$-16|0;$=A;D[h+80>>2]=0;D[h+84>>2]=0;a=D[h+76>>2];D[h+76>>2]=0;if(a){ma(a)}D[h+68>>2]=0;D[h+72>>2]=0;b=h- -64|0;a=D[b>>2];D[b>>2]=0;if(a){ma(a)}d=D[s+4>>2];g=D[s>>2];b=(d-g|0)/12|0;a=J(b,3);f=D[h>>2];e=D[h+4>>2]-f>>2;f:{if(a>>>0>e>>>0){ra(h,a-e|0);d=D[s+4>>2];g=D[s>>2];b=(d-g|0)/12|0;break f}if(a>>>0>=e>>>0){break f}D[h+4>>2]=f+(a<<2)}g:{if((d|0)==(g|0)){break g}d=b>>>0>1?b:1;f=d&1;a=D[h>>2];if(b>>>0>=2){i=d&-2;b=0;while(1){d=J(c,12);o=d+a|0;e=d+g|0;D[o>>2]=D[e>>2];D[a+(d|4)>>2]=D[e+4>>2];D[o+8>>2]=D[e+8>>2];e=J(c|1,12);d=e+a|0;e=e+g|0;D[d>>2]=D[e>>2];D[d+4>>2]=D[e+4>>2];D[d+8>>2]=D[e+8>>2];c=c+2|0;b=b+2|0;if((i|0)!=(b|0)){continue}break}}if(!f){break g}b=J(c,12);a=b+a|0;b=b+g|0;D[a>>2]=D[b>>2];D[a+4>>2]=D[b+4>>2];D[a+8>>2]=D[b+8>>2]}D[A+12>>2]=-1;a=0;e=0;d=0;i=$-32|0;$=i;h:{i:{w=A+12|0;j:{if(!w){break j}b=D[h+4>>2];o=D[h>>2];c=b-o|0;j=c>>2;g=D[h+12>>2];f=D[h+16>>2]-g>>2;k:{if(j>>>0>f>>>0){xa(h+12|0,j-f|0,10228);b=D[h+4>>2];o=D[h>>2];c=b-o|0;j=c>>2;break k}if(f>>>0<=j>>>0){break k}D[h+16>>2]=g+(j<<2)}D[i+24>>2]=0;D[i+16>>2]=0;D[i+20>>2]=0;f=(b|0)==(o|0);if(!f){if((c|0)<0){break i}e=na(c);D[i+20>>2]=e;D[i+16>>2]=e;D[i+24>>2]=(j<<2)+e}l:{m:{n:{o:{p:{if(c){while(1){g=D[(a<<2)+o>>2];c=D[i+20>>2]-e>>2;q:{if(g>>>0<c>>>0){break q}D[i>>2]=0;f=g+1|0;if(f>>>0>c>>>0){xa(i+16|0,f-c|0,i);o=D[h>>2];b=D[h+4>>2];e=D[i+16>>2];break q}if(c>>>0<=f>>>0){break q}D[i+20>>2]=(f<<2)+e}c=(g<<2)+e|0;D[c>>2]=D[c>>2]+1;a=a+1|0;c=b-o|0;j=c>>2;if(a>>>0<j>>>0){continue}break}break p}c=0;if(!f){break o}break n}if((b|0)==(o|0)){c=0;break n}if(c>>>0>=2147483645){break m}}c=na(c<<1);qa(c,255,j<<3)}D[i+8>>2]=0;D[i>>2]=0;D[i+4>>2]=0;b=D[i+20>>2];a=b-e|0;t=a>>2;r:{s:{if((b|0)==(e|0)){break s}if((a|0)<0){break r}m=na(a);D[i>>2]=m;D[i+8>>2]=(t<<2)+m;b=qa(m,0,a);D[i+4>>2]=b+a;f=t>>>0>1?t:1;g=f&3;a=0;if(f-1>>>0>=3){r=f&-4;while(1){f=d<<2;D[f+b>>2]=a;x=f|4;a=D[e+f>>2]+a|0;D[x+b>>2]=a;u=f|8;a=a+D[e+x>>2]|0;D[u+b>>2]=a;f=f|12;a=a+D[e+u>>2]|0;D[f+b>>2]=a;a=a+D[e+f>>2]|0;d=d+4|0;p=p+4|0;if((r|0)!=(p|0)){continue}break}}if(!g){break s}while(1){f=d<<2;D[f+b>>2]=a;d=d+1|0;a=D[e+f>>2]+a|0;l=l+1|0;if((g|0)!=(l|0)){continue}break}}if(!j){break l}x=D[h+12>>2];f=0;while(1){G=f<<2;a=G+o|0;l=-1;g=f+1|0;b=(g>>>0)%3|0?g:f-2|0;if((b|0)!=-1){l=D[(b<<2)+o>>2]}b=D[a>>2];t:{u:{if(!((f>>>0)%3|0)){p=-1;a=f+2|0;if((a|0)!=-1){p=D[(a<<2)+o>>2]}if(!((b|0)==(l|0)|(b|0)==(p|0))&(l|0)!=(p|0)){break u}D[h+40>>2]=D[h+40>>2]+1;f=f+3|0;break t}p=D[a-4>>2]}a=p<<2;u=D[a+e>>2];v:{w:{if((u|0)<=0){break w}a=D[a+m>>2];d=0;while(1){r=(a<<3)+c|0;y=D[r>>2];if((y|0)==-1){break w}x:{if((l|0)!=(y|0)){break x}r=D[r+4>>2];if((r|0)!=-1){y=D[(r<<2)+o>>2]}else{y=-1}if((y|0)==(b|0)){break x}while(1){y:{b=a;d=d+1|0;if((u|0)<=(d|0)){break y}a=b+1|0;H=(a<<3)+c|0;y=D[H>>2];I=(b<<3)+c|0;D[I+4>>2]=D[H+4>>2];D[I>>2]=y;if((y|0)!=-1){continue}}break}D[(b<<3)+c>>2]=-1;if((r|0)==-1){break w}D[x+G>>2]=r;D[x+(r<<2)>>2]=f;break v}a=a+1|0;d=d+1|0;if((u|0)!=(d|0)){continue}break}}a=l<<2;l=D[a+e>>2];if((l|0)<=0){break v}a=D[a+m>>2];d=0;while(1){b=(a<<3)+c|0;if(D[b>>2]==-1){D[b>>2]=p;D[b+4>>2]=f;break v}a=a+1|0;d=d+1|0;if((l|0)!=(d|0)){continue}break}}f=g}if(j>>>0>f>>>0){continue}break}break l}break i}pa();T()}D[w>>2]=t;if(m){ma(m)}if(c){ma(c)}a=D[i+16>>2];if(!a){break j}D[i+20>>2]=a;ma(a)}$=i+32|0;x=(w|0)!=0;if(x){l=$-32|0;$=l;m=D[h>>2];a=D[h+4>>2];D[l+24>>2]=0;D[l+16>>2]=0;D[l+20>>2]=0;z:{if((a|0)==(m|0)){break z}d=a-m|0;if((d|0)<0){break i}b=d>>2;e=b-1>>>5|0;f=e+1|0;c=na(f<<2);D[l+24>>2]=f;D[l+16>>2]=c;D[l+20>>2]=b;D[c+((d>>>0<132?0:e)<<2)>>2]=0;d=c;c=b>>>5<<2;d=qa(d,0,c);if((b|0)==(b&-32)){break z}c=c+d|0;D[c>>2]=D[c>>2]&(-1>>>32-(b&31)^-1)}D[l+8>>2]=0;D[l>>2]=0;while(1){A:{r=0;o=0;if((a|0)==(m|0)){break A}while(1){b=D[l+16>>2];B:{if(D[b+(o>>>3&536870908)>>2]>>>o&1){break B}e=D[l>>2];D[l+4>>2]=e;c=D[h+12>>2];a=o;while(1){C:{d=a+1|0;i=a;a=(d>>>0)%3|0?d:a-2|0;if((a|0)==-1){break C}a=D[c+(a<<2)>>2];if((a|0)==-1){break C}d=a+1|0;a=(d>>>0)%3|0?d:a-2|0;if((o|0)==(a|0)|(a|0)==-1){break C}if(!(D[b+(a>>>3&536870908)>>2]>>>a&1)){continue}}break}d=i;D:{E:{F:{while(1){a=D[l+16>>2]+(d>>>3&536870908)|0;D[a>>2]=D[a>>2]|1<<d;a=d+1|0;g=(a>>>0)%3|0?a:d-2|0;m=D[h>>2];u=(d>>>0)%3|0;b=(u?-1:2)+d|0;j=D[l>>2];G:{if((j|0)==(e|0)){break G}w=D[(g<<2)+m>>2];p=D[h+12>>2];a=j;if((b|0)!=-1){c=p+(b<<2)|0;while(1){H:{if((w|0)!=D[a>>2]){break H}f=D[a+4>>2];t=D[c>>2];if((f|0)==(t|0)){break H}e=-1;c=b;a=-1;if((f|0)==-1){break D}break E}a=a+8|0;if((e|0)!=(a|0)){continue}break}break G}while(1){if((w|0)==D[a>>2]){t=-1;c=-1;f=D[a+4>>2];if((f|0)!=-1){break E}}a=a+8|0;if((e|0)!=(a|0)){continue}break}}f=D[(b<<2)+m>>2];I:{if(D[l+8>>2]!=(e|0)){D[e>>2]=f;D[e+4>>2]=g;e=e+8|0;D[l+4>>2]=e;break I}b=e-j|0;e=b>>3;a=e+1|0;if(a>>>0>=536870912){break i}c=b>>2;c=b>>>0<2147483640?a>>>0<c>>>0?c:a:536870911;if(c){if(c>>>0>=536870912){break F}a=na(c<<3)}else{a=0}e=a+(e<<3)|0;D[e>>2]=f;D[e+4>>2]=g;e=e+8|0;if((b|0)>0){oa(a,j,b)}D[l+8>>2]=a+(c<<3);D[l+4>>2]=e;D[l>>2]=a;if(!j){break I}ma(j)}J:{K:{if(u){a=d-1|0;break K}a=d+2|0;if((a|0)==-1){break J}}a=D[D[h+12>>2]+(a<<2)>>2];if((a|0)==-1){break J}d=a+((a>>>0)%3|0?-1:2)|0;if((i|0)==(d|0)){break J}if((d|0)!=-1){continue}}break}m=D[h>>2];break B}sa();T()}b=c;e=f;a=D[p+(e<<2)>>2]}if((t|0)!=-1){D[p+(t<<2)>>2]=-1}if((a|0)!=-1){D[D[h+12>>2]+(a<<2)>>2]=-1}a=D[h+12>>2];D[a+(b<<2)>>2]=-1;D[a+(e<<2)>>2]=-1;r=1}o=o+1|0;a=D[h+4>>2];if(o>>>0<a-m>>2>>>0){continue}break}if(r){continue}}break}a=D[l>>2];if(a){ma(a)}a=D[l+16>>2];if(a){ma(a)}$=l+32|0;c=0;f=0;l=0;i=$-32|0;$=i;a=D[A+12>>2];D[h+36>>2]=a;o=h+24|0;d=D[h+24>>2];b=D[h+28>>2]-d>>2;L:{M:{if(b>>>0<a>>>0){xa(o,a-b|0,10228);D[i+24>>2]=0;D[i+16>>2]=0;D[i+20>>2]=0;break M}if(a>>>0<b>>>0){D[h+28>>2]=d+(a<<2)}D[i+24>>2]=0;D[i+16>>2]=0;D[i+20>>2]=0;if(!a){break L}}if((a|0)<0){break i}b=a-1>>>5|0;d=b+1|0;c=na(d<<2);D[i+24>>2]=d;D[i+16>>2]=c;D[i+20>>2]=a;D[((a>>>0<33?0:b)<<2)+c>>2]=0;b=a>>>5<<2;d=qa(c,0,b);if((a&-32)==(a|0)){break L}b=b+d|0;D[b>>2]=D[b>>2]&(-1>>>32-(a&31)^-1)}j=D[h>>2];e=D[h+4>>2];D[i+8>>2]=0;D[i>>2]=0;D[i+4>>2]=0;d=e-j|0;N:{if((e|0)==(j|0)){break N}if((d|0)<0){break i}b=d>>2;g=b-1>>>5|0;m=g+1|0;f=na(m<<2);D[i+8>>2]=m;D[i>>2]=f;D[i+4>>2]=b;D[((d>>>0<132?0:g)<<2)+f>>2]=0;g=b>>>5<<2;m=qa(f,0,g);if((b|0)==(b&-32)){break N}g=g+m|0;D[g>>2]=D[g>>2]&(-1>>>32-(b&31)^-1)}if(d>>>0>=12){O:{P:{while(1){p=J(l,3);d=(p<<2)+j|0;b=D[d>>2];g=-1;m=p+1|0;if((m|0)!=-1){g=D[(m<<2)+j>>2]}Q:{if((b|0)==(g|0)){break Q}m=b;b=D[d+8>>2];if((m|0)==(b|0)){break Q}m=0;if((b|0)==(g|0)){break Q}while(1){b=m+p|0;if(!(D[(b>>>3&536870908)+f>>2]>>>b&1)){d=D[(b<<2)+j>>2];g=1<<d;j=d>>>5|0;t=g&D[(j<<2)+c>>2];if(t){c=D[h+28>>2];R:{if((c|0)!=D[h+32>>2]){D[c>>2]=-1;D[h+28>>2]=c+4;break R}f=D[o>>2];e=c-f|0;j=e>>2;c=j+1|0;if(c>>>0>=1073741824){break i}g=e>>1;g=e>>>0<2147483644?c>>>0<g>>>0?g:c:1073741823;if(g){if(g>>>0>=1073741824){break P}c=na(g<<2)}else{c=0}j=c+(j<<2)|0;D[j>>2]=-1;if((e|0)>0){oa(c,f,e)}D[h+32>>2]=c+(g<<2);D[h+28>>2]=j+4;D[h+24>>2]=c;if(!f){break R}ma(f)}c=D[h+52>>2];S:{if((c|0)!=D[h+56>>2]){D[c>>2]=d;D[h+52>>2]=c+4;break S}f=D[h+48>>2];e=c-f|0;j=e>>2;c=j+1|0;if(c>>>0>=1073741824){break i}g=e>>1;g=e>>>0<2147483644?c>>>0<g>>>0?g:c:1073741823;if(g){if(g>>>0>=1073741824){break P}c=na(g<<2)}else{c=0}j=c+(j<<2)|0;D[j>>2]=d;if((e|0)>0){oa(c,f,e)}D[h+56>>2]=c+(g<<2);D[h+52>>2]=j+4;D[h+48>>2]=c;if(!f){break S}ma(f)}g=D[i+20>>2];c=D[i+24>>2];if((g|0)==c<<5){if((g+1|0)<0){break i}d=i+16|0;if(g>>>0<=1073741822){c=c<<6;e=g+32&-32;c=c>>>0>e>>>0?c:e}else{c=2147483647}Xa(d,c);g=D[i+20>>2]}D[i+20>>2]=g+1;c=D[i+16>>2]+(g>>>3&536870908)|0;d=D[c>>2];L=c,M=ji(g)&d,D[L>>2]=M;g=1<<a;j=a>>>5|0;d=a;a=a+1|0}e=a;c=D[i+16>>2];a=c+(j<<2)|0;D[a>>2]=D[a>>2]|g;w=D[h+24>>2]+(d<<2)|0;r=D[h+12>>2];j=D[h>>2];f=D[i>>2];a=b;T:{U:{V:{while(1){if((a|0)==-1){break V}g=(a>>>3&536870908)+f|0;D[g>>2]=D[g>>2]|1<<a;D[w>>2]=a;if(t){D[(a<<2)+j>>2]=d}u=a+1|0;a=(u>>>0)%3|0?u:a-2|0;g=-1;W:{if((a|0)==-1){break W}a=D[r+(a<<2)>>2];g=-1;if((a|0)==-1){break W}g=a+1|0;g=(g>>>0)%3|0?g:a-2|0}a=g;if((b|0)!=(a|0)){continue}break}if((b|0)!=-1){break T}a=1;break U}if((b>>>0)%3|0){a=b-1|0;break U}a=b+2|0;if((a|0)==-1){break T}}a=D[r+(a<<2)>>2];if((a|0)==-1){break T}X:{if((a>>>0)%3|0){a=a-1|0;break X}a=a+2|0;if((a|0)==-1){break T}}b=D[h+12>>2];j=D[h>>2];f=D[i>>2];while(1){g=(a>>>3&536870908)+f|0;D[g>>2]=D[g>>2]|1<<a;if(t){D[(a<<2)+j>>2]=d}Y:{if((a>>>0)%3|0){a=a-1|0;break Y}a=a+2|0;if((a|0)==-1){break T}}a=D[b+(a<<2)>>2];if((a|0)==-1){break T}a=a+((a>>>0)%3|0?-1:2)|0;if((a|0)!=-1){continue}break}}a=e}m=m+1|0;if((m|0)!=3){continue}break}j=D[h>>2];e=D[h+4>>2]}l=l+1|0;if(l>>>0<(e-j>>2>>>0)/3>>>0){continue}break}break O}sa();T()}c=D[i+16>>2]}a=0;D[h+44>>2]=0;b=D[i+20>>2];if(b){d=b&31;b=(b>>>3&536870908)+c|0;g=c;f=0;while(1){if(!(D[g>>2]>>>a&1)){f=f+1|0;D[h+44>>2]=f}e=(a|0)==31;a=e?0:a+1|0;g=(e<<2)+g|0;if((b|0)!=(g|0)|(a|0)!=(d|0)){continue}break}}a=D[i>>2];if(a){ma(a);c=D[i+16>>2]}if(c){ma(c)}$=i+32|0}$=A+16|0;if(!x){D[F+8>>2]=0;cb(h);h=0}$=F+16|0;a=h;break h}pa();T()}b=D[s>>2];if(!b){break d}D[s+4>>2]=b;ma(b)}$=s+16|0;break b}pa();T()}c=D[k+4>>2];b=a;D[k+4>>2]=a;if(c){cb(c);b=D[k+4>>2]}Z:{if(!b){break Z}a=D[v+100>>2];c=D[v+96>>2];B[q+12|0]=0;Ha(k+56|0,(a-c|0)/12|0,q+12|0);a=D[v+100>>2];c=D[v+96>>2];if((a|0)==(c|0)){break Z}while(1){if(!(D[D[k+56>>2]+(C>>>3&536870908)>>2]>>>C&1)){a=J(C,3);Tb(k,0,a);c=D[k+8>>2];d=D[k+12>>2];Tb(k,1,a+1|0);e=D[k+20>>2];f=D[k+24>>2];Tb(k,2,a+2|0);g=(c|0)==(d|0)?-1:0;a=f-e>>2;c=d-c>>2;d=a>>>0>c>>>0;c=D[k+36>>2]-D[k+32>>2]>>2>>>0>(d?a:c)>>>0?2:d?1:g;_:{if(D[k+68>>2]<=0){break _}D[q+12>>2]=D[k+76>>2];D[q+8>>2]=n;Ta(q+8|0,q+12|0);a=D[((c<<2)+k|0)+44>>2];if((a|0)<0){a=-1}else{d=(a>>>0)/3|0;a=D[(D[D[k>>2]+96>>2]+J(d,12)|0)+(a-J(d,3)<<2)>>2]}D[q+12>>2]=a;D[q+8>>2]=n;Ta(q+8|0,q+12|0);d=D[k+72>>2];D[k+72>>2]=d+2;if(!(d&1)){break _}D[q+12>>2]=a;D[q+8>>2]=n;Ta(q+8|0,q+12|0);D[k+72>>2]=D[k+72>>2]+1}f=0;d=$-16|0;$=d;D[k+68>>2]=D[k+68>>2]+1;a=J(c,12)+k|0;a=D[a+12>>2]-D[a+8>>2]|0;if((a|0)>0){a=a>>>2|0;g=a>>>0>1?a:1;c=D[((c<<2)+k|0)+44>>2];while(1){a=c;e=(a>>>0)/3|0;i=(a|0)==-1;c=i?-1:e;h=D[k+56>>2]+(c>>>3&536870908)|0;D[h>>2]=D[h>>2]|1<<c;D[k+72>>2]=D[k+72>>2]+1;$:{aa:{ba:{ca:{da:{if(!f){D[d+12>>2]=(a|0)<0?-1:D[(D[D[k>>2]+96>>2]+J(e,12)|0)+((a>>>0)%3<<2)>>2];D[d+8>>2]=n;Ta(d+8|0,d+12|0);if(i){break da}c=-1;e=a+1|0;e=(e>>>0)%3|0?e:a-2|0;if((e|0)>=0){i=(e>>>0)/3|0;e=D[(D[D[k>>2]+96>>2]+J(i,12)|0)+(e-J(i,3)<<2)>>2]}else{e=-1}D[d+12>>2]=e;D[d+8>>2]=n;Ta(d+8|0,d+12|0);e=((a>>>0)%3|0?-1:2)+a|0;if((e|0)<0){break ca}c=(e>>>0)/3|0;c=D[(D[D[k>>2]+96>>2]+J(c,12)|0)+(e-J(c,3)<<2)>>2];break ca}c=(a|0)<0?-1:D[(D[D[k>>2]+96>>2]+J(e,12)|0)+((a>>>0)%3<<2)>>2];D[k+76>>2]=c;D[d+12>>2]=c;D[d+8>>2]=n;Ta(d+8|0,d+12|0);if(f&1){c=-1;if((a|0)==-1){break $}if((J(e,3)|0)!=(a|0)){a=a-1|0;break aa}a=a+2|0;break ba}c=-1;if((a|0)==-1){break $}c=a+1|0;a=(c>>>0)%3|0?c:a-2|0;break ba}c=-1;D[d+12>>2]=-1;D[d+8>>2]=n;Ta(d+8|0,d+12|0)}D[k+76>>2]=c;D[d+12>>2]=c;D[d+8>>2]=n;Ta(d+8|0,d+12|0)}c=-1;if((a|0)==-1){break $}}c=D[D[D[k+4>>2]+12>>2]+(a<<2)>>2]}f=f+1|0;if((g|0)!=(f|0)){continue}break}}$=d+16|0;c=D[v+96>>2];a=D[v+100>>2]}C=C+1|0;if(C>>>0<(a-c|0)/12>>>0){continue}break}}$=q+16|0;ea:{if(b){a=D[z>>2];if(a){D[z+4>>2]=a;ma(a)}D[z>>2]=D[n>>2];D[z+4>>2]=D[n+4>>2];D[z+8>>2]=D[n+8>>2];K=D[n+84>>2];break ea}a=D[n>>2];if(!a){break ea}D[n+4>>2]=a;ma(a)}a=D[n+72>>2];if(a){ma(a)}a=D[n+48>>2];if(a){D[n+52>>2]=a;ma(a)}a=D[n+36>>2];if(a){D[n+40>>2]=a;ma(a)}a=D[n+24>>2];if(a){D[n+28>>2]=a;ma(a)}a=D[n+20>>2];D[n+20>>2]=0;if(a){cb(a)}$=n+96|0;return K|0}function Ic(a){a=a|0;var 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;l=$-16|0;$=l;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(a>>>0<=244){e=D[2936];h=a>>>0<11?16:a+11&-8;c=h>>>3|0;b=e>>>c|0;if(b&3){c=c+((b^-1)&1)|0;a=c<<3;b=a+11784|0;d=D[a+11792>>2];a=D[d+8>>2];l:{if((b|0)==(a|0)){m=11744,n=ji(c)&e,D[m>>2]=n;break l}D[a+12>>2]=b;D[b+8>>2]=a}a=d+8|0;b=c<<3;D[d+4>>2]=b|3;b=b+d|0;D[b+4>>2]=D[b+4>>2]|1;break a}k=D[2938];if(k>>>0>=h>>>0){break k}if(b){a=2<<c;a=(0-a|a)&b<<c;b=(0-a&a)-1|0;a=b>>>12&16;c=a;b=b>>>a|0;a=b>>>5&8;c=c|a;b=b>>>a|0;a=b>>>2&4;c=c|a;b=b>>>a|0;a=b>>>1&2;c=c|a;b=b>>>a|0;a=b>>>1&1;d=(c|a)+(b>>>a|0)|0;a=d<<3;b=a+11784|0;g=D[a+11792>>2];a=D[g+8>>2];m:{if((b|0)==(a|0)){e=ji(d)&e;D[2936]=e;break m}D[a+12>>2]=b;D[b+8>>2]=a}D[g+4>>2]=h|3;c=g+h|0;a=d<<3;d=a-h|0;D[c+4>>2]=d|1;D[a+g>>2]=d;if(k){b=(k&-8)+11784|0;f=D[2941];a=1<<(k>>>3);n:{if(!(a&e)){D[2936]=a|e;a=b;break n}a=D[b+8>>2]}D[b+8>>2]=f;D[a+12>>2]=f;D[f+12>>2]=b;D[f+8>>2]=a}a=g+8|0;D[2941]=c;D[2938]=d;break a}j=D[2937];if(!j){break k}b=(0-j&j)-1|0;a=b>>>12&16;c=a;b=b>>>a|0;a=b>>>5&8;c=c|a;b=b>>>a|0;a=b>>>2&4;c=c|a;b=b>>>a|0;a=b>>>1&2;c=c|a;b=b>>>a|0;a=b>>>1&1;c=D[((c|a)+(b>>>a|0)<<2)+12048>>2];f=(D[c+4>>2]&-8)-h|0;b=c;while(1){o:{a=D[b+16>>2];if(!a){a=D[b+20>>2];if(!a){break o}}b=(D[a+4>>2]&-8)-h|0;d=b>>>0<f>>>0;f=d?b:f;c=d?a:c;b=a;continue}break}i=D[c+24>>2];d=D[c+12>>2];if((d|0)!=(c|0)){a=D[c+8>>2];D[a+12>>2]=d;D[d+8>>2]=a;break b}b=c+20|0;a=D[b>>2];if(!a){a=D[c+16>>2];if(!a){break j}b=c+16|0}while(1){g=b;d=a;b=a+20|0;a=D[b>>2];if(a){continue}b=d+16|0;a=D[d+16>>2];if(a){continue}break}D[g>>2]=0;break b}h=-1;if(a>>>0>4294967231){break k}a=a+11|0;h=a&-8;j=D[2937];if(!j){break k}f=0-h|0;e=0;p:{if(h>>>0<256){break p}e=31;if(h>>>0>16777215){break p}a=a>>>8|0;g=a+1048320>>>16&8;a=a<<g;c=a+520192>>>16&4;a=a<<c;b=a+245760>>>16&2;a=(a<<b>>>15|0)-(b|(c|g))|0;e=(a<<1|h>>>a+21&1)+28|0}b=D[(e<<2)+12048>>2];q:{r:{s:{if(!b){a=0;break s}a=0;c=h<<((e|0)==31?0:25-(e>>>1|0)|0);while(1){t:{g=(D[b+4>>2]&-8)-h|0;if(g>>>0>=f>>>0){break t}d=b;f=g;if(f){break t}f=0;a=b;break r}g=D[b+20>>2];b=D[((c>>>29&4)+b|0)+16>>2];a=g?(g|0)==(b|0)?a:g:a;c=c<<1;if(b){continue}break}}if(!(a|d)){d=0;a=2<<e;a=(0-a|a)&j;if(!a){break k}b=(a&0-a)-1|0;a=b>>>12&16;c=a;b=b>>>a|0;a=b>>>5&8;c=c|a;b=b>>>a|0;a=b>>>2&4;c=c|a;b=b>>>a|0;a=b>>>1&2;c=c|a;b=b>>>a|0;a=b>>>1&1;a=D[((c|a)+(b>>>a|0)<<2)+12048>>2]}if(!a){break q}}while(1){b=(D[a+4>>2]&-8)-h|0;c=b>>>0<f>>>0;f=c?b:f;d=c?a:d;b=D[a+16>>2];if(b){a=b}else{a=D[a+20>>2]}if(a){continue}break}}if(!d|D[2938]-h>>>0<=f>>>0){break k}e=D[d+24>>2];c=D[d+12>>2];if((d|0)!=(c|0)){a=D[d+8>>2];D[a+12>>2]=c;D[c+8>>2]=a;break c}b=d+20|0;a=D[b>>2];if(!a){a=D[d+16>>2];if(!a){break i}b=d+16|0}while(1){g=b;c=a;b=a+20|0;a=D[b>>2];if(a){continue}b=c+16|0;a=D[c+16>>2];if(a){continue}break}D[g>>2]=0;break c}c=D[2938];if(c>>>0>=h>>>0){d=D[2941];b=c-h|0;u:{if(b>>>0>=16){D[2938]=b;a=d+h|0;D[2941]=a;D[a+4>>2]=b|1;D[c+d>>2]=b;D[d+4>>2]=h|3;break u}D[2941]=0;D[2938]=0;D[d+4>>2]=c|3;a=c+d|0;D[a+4>>2]=D[a+4>>2]|1}a=d+8|0;break a}i=D[2939];if(i>>>0>h>>>0){b=i-h|0;D[2939]=b;c=D[2942];a=c+h|0;D[2942]=a;D[a+4>>2]=b|1;D[c+4>>2]=h|3;a=c+8|0;break a}a=0;j=h+47|0;if(D[3054]){c=D[3056]}else{D[3057]=-1;D[3058]=-1;D[3055]=4096;D[3056]=4096;D[3054]=l+12&-16^1431655768;D[3059]=0;D[3047]=0;c=4096}g=j+c|0;f=0-c|0;b=g&f;if(b>>>0<=h>>>0){break a}d=D[3046];if(d){c=D[3044];e=c+b|0;if(d>>>0<e>>>0|c>>>0>=e>>>0){break a}}if(E[12188]&4){break f}v:{w:{d=D[2942];if(d){a=12192;while(1){c=D[a>>2];if(c>>>0<=d>>>0&d>>>0<c+D[a+4>>2]>>>0){break w}a=D[a+8>>2];if(a){continue}break}}c=_a(0);if((c|0)==-1){break g}e=b;d=D[3055];a=d-1|0;if(a&c){e=(b-c|0)+(a+c&0-d)|0}if(e>>>0<=h>>>0|e>>>0>2147483646){break g}d=D[3046];if(d){a=D[3044];f=a+e|0;if(d>>>0<f>>>0|a>>>0>=f>>>0){break g}}a=_a(e);if((c|0)!=(a|0)){break v}break e}e=f&g-i;if(e>>>0>2147483646){break g}c=_a(e);if((c|0)==(D[a>>2]+D[a+4>>2]|0)){break h}a=c}if(!((a|0)==-1|h+48>>>0<=e>>>0)){c=D[3056];c=c+(j-e|0)&0-c;if(c>>>0>2147483646){c=a;break e}if((_a(c)|0)!=-1){e=c+e|0;c=a;break e}_a(0-e|0);break g}c=a;if((a|0)!=-1){break e}break g}d=0;break b}c=0;break c}if((c|0)!=-1){break e}}D[3047]=D[3047]|4}if(b>>>0>2147483646){break d}c=_a(b);a=_a(0);if((c|0)==-1|(a|0)==-1|a>>>0<=c>>>0){break d}e=a-c|0;if(e>>>0<=h+40>>>0){break d}}a=D[3044]+e|0;D[3044]=a;if(a>>>0>G[3045]){D[3045]=a}x:{y:{z:{g=D[2942];if(g){a=12192;while(1){d=D[a>>2];b=D[a+4>>2];if((d+b|0)==(c|0)){break z}a=D[a+8>>2];if(a){continue}break}break y}a=D[2940];if(!(a>>>0<=c>>>0?a:0)){D[2940]=c}a=0;D[3049]=e;D[3048]=c;D[2944]=-1;D[2945]=D[3054];D[3051]=0;while(1){d=a<<3;b=d+11784|0;D[d+11792>>2]=b;D[d+11796>>2]=b;a=a+1|0;if((a|0)!=32){continue}break}d=e-40|0;a=c+8&7?-8-c&7:0;b=d-a|0;D[2939]=b;a=a+c|0;D[2942]=a;D[a+4>>2]=b|1;D[(c+d|0)+4>>2]=40;D[2943]=D[3058];break x}if(E[a+12|0]&8|d>>>0>g>>>0|c>>>0<=g>>>0){break y}D[a+4>>2]=b+e;a=g+8&7?-8-g&7:0;c=a+g|0;D[2942]=c;b=D[2939]+e|0;a=b-a|0;D[2939]=a;D[c+4>>2]=a|1;D[(b+g|0)+4>>2]=40;D[2943]=D[3058];break x}if(G[2940]>c>>>0){D[2940]=c}b=c+e|0;a=12192;A:{B:{C:{D:{E:{F:{while(1){if((b|0)!=D[a>>2]){a=D[a+8>>2];if(a){continue}break F}break}if(!(E[a+12|0]&8)){break E}}a=12192;while(1){b=D[a>>2];if(b>>>0<=g>>>0){f=b+D[a+4>>2]|0;if(f>>>0>g>>>0){break D}}a=D[a+8>>2];continue}}D[a>>2]=c;D[a+4>>2]=D[a+4>>2]+e;j=(c+8&7?-8-c&7:0)+c|0;D[j+4>>2]=h|3;e=b+(b+8&7?-8-b&7:0)|0;i=h+j|0;a=e-i|0;if((e|0)==(g|0)){D[2942]=i;a=D[2939]+a|0;D[2939]=a;D[i+4>>2]=a|1;break B}if(D[2941]==(e|0)){D[2941]=i;a=D[2938]+a|0;D[2938]=a;D[i+4>>2]=a|1;D[a+i>>2]=a;break B}f=D[e+4>>2];if((f&3)==1){g=f&-8;G:{if(f>>>0<=255){d=D[e+8>>2];b=f>>>3|0;c=D[e+12>>2];if((c|0)==(d|0)){m=11744,n=D[2936]&ji(b),D[m>>2]=n;break G}D[d+12>>2]=c;D[c+8>>2]=d;break G}h=D[e+24>>2];c=D[e+12>>2];H:{if((e|0)!=(c|0)){b=D[e+8>>2];D[b+12>>2]=c;D[c+8>>2]=b;break H}I:{f=e+20|0;b=D[f>>2];if(b){break I}f=e+16|0;b=D[f>>2];if(b){break I}c=0;break H}while(1){d=f;c=b;f=b+20|0;b=D[f>>2];if(b){continue}f=c+16|0;b=D[c+16>>2];if(b){continue}break}D[d>>2]=0}if(!h){break G}d=D[e+28>>2];b=(d<<2)+12048|0;J:{if(D[b>>2]==(e|0)){D[b>>2]=c;if(c){break J}m=11748,n=D[2937]&ji(d),D[m>>2]=n;break G}D[h+(D[h+16>>2]==(e|0)?16:20)>>2]=c;if(!c){break G}}D[c+24>>2]=h;b=D[e+16>>2];if(b){D[c+16>>2]=b;D[b+24>>2]=c}b=D[e+20>>2];if(!b){break G}D[c+20>>2]=b;D[b+24>>2]=c}e=e+g|0;f=D[e+4>>2];a=a+g|0}D[e+4>>2]=f&-2;D[i+4>>2]=a|1;D[a+i>>2]=a;if(a>>>0<=255){b=(a&-8)+11784|0;c=D[2936];a=1<<(a>>>3);K:{if(!(c&a)){D[2936]=a|c;a=b;break K}a=D[b+8>>2]}D[b+8>>2]=i;D[a+12>>2]=i;D[i+12>>2]=b;D[i+8>>2]=a;break B}f=31;if(a>>>0<=16777215){b=a>>>8|0;f=b+1048320>>>16&8;b=b<<f;d=b+520192>>>16&4;b=b<<d;c=b+245760>>>16&2;b=(b<<c>>>15|0)-(c|(d|f))|0;f=(b<<1|a>>>b+21&1)+28|0}D[i+28>>2]=f;D[i+16>>2]=0;D[i+20>>2]=0;b=(f<<2)+12048|0;d=D[2937];c=1<<f;L:{if(!(d&c)){D[2937]=c|d;D[b>>2]=i;break L}f=a<<((f|0)==31?0:25-(f>>>1|0)|0);c=D[b>>2];while(1){b=c;if((D[b+4>>2]&-8)==(a|0)){break C}c=f>>>29|0;f=f<<1;d=(c&4)+b|0;c=D[d+16>>2];if(c){continue}break}D[d+16>>2]=i}D[i+24>>2]=b;D[i+12>>2]=i;D[i+8>>2]=i;break B}d=e-40|0;a=c+8&7?-8-c&7:0;b=d-a|0;D[2939]=b;a=a+c|0;D[2942]=a;D[a+4>>2]=b|1;D[(c+d|0)+4>>2]=40;D[2943]=D[3058];a=(f+(f-39&7?39-f&7:0)|0)-47|0;d=a>>>0<g+16>>>0?g:a;D[d+4>>2]=27;a=D[3051];D[d+16>>2]=D[3050];D[d+20>>2]=a;a=D[3049];D[d+8>>2]=D[3048];D[d+12>>2]=a;D[3050]=d+8;D[3049]=e;D[3048]=c;D[3051]=0;a=d+24|0;while(1){D[a+4>>2]=7;b=a+8|0;a=a+4|0;if(b>>>0<f>>>0){continue}break}if((d|0)==(g|0)){break x}D[d+4>>2]=D[d+4>>2]&-2;f=d-g|0;D[g+4>>2]=f|1;D[d>>2]=f;if(f>>>0<=255){b=(f&-8)+11784|0;c=D[2936];a=1<<(f>>>3);M:{if(!(c&a)){D[2936]=a|c;a=b;break M}a=D[b+8>>2]}D[b+8>>2]=g;D[a+12>>2]=g;D[g+12>>2]=b;D[g+8>>2]=a;break x}a=31;if(f>>>0<=16777215){a=f>>>8|0;d=a+1048320>>>16&8;a=a<<d;c=a+520192>>>16&4;a=a<<c;b=a+245760>>>16&2;a=(a<<b>>>15|0)-(b|(c|d))|0;a=(a<<1|f>>>a+21&1)+28|0}D[g+28>>2]=a;D[g+16>>2]=0;D[g+20>>2]=0;b=(a<<2)+12048|0;d=D[2937];c=1<<a;N:{if(!(d&c)){D[2937]=c|d;D[b>>2]=g;break N}a=f<<((a|0)==31?0:25-(a>>>1|0)|0);d=D[b>>2];while(1){b=d;if((f|0)==(D[b+4>>2]&-8)){break A}c=a>>>29|0;a=a<<1;c=(c&4)+b|0;d=D[c+16>>2];if(d){continue}break}D[c+16>>2]=g}D[g+24>>2]=b;D[g+12>>2]=g;D[g+8>>2]=g;break x}a=D[b+8>>2];D[a+12>>2]=i;D[b+8>>2]=i;D[i+24>>2]=0;D[i+12>>2]=b;D[i+8>>2]=a}a=j+8|0;break a}a=D[b+8>>2];D[a+12>>2]=g;D[b+8>>2]=g;D[g+24>>2]=0;D[g+12>>2]=b;D[g+8>>2]=a}a=D[2939];if(a>>>0<=h>>>0){break d}b=a-h|0;D[2939]=b;c=D[2942];a=c+h|0;D[2942]=a;D[a+4>>2]=b|1;D[c+4>>2]=h|3;a=c+8|0;break a}D[2935]=48;a=0;break a}O:{if(!e){break O}b=D[d+28>>2];a=(b<<2)+12048|0;P:{if(D[a>>2]==(d|0)){D[a>>2]=c;if(c){break P}j=ji(b)&j;D[2937]=j;break O}D[e+(D[e+16>>2]==(d|0)?16:20)>>2]=c;if(!c){break O}}D[c+24>>2]=e;a=D[d+16>>2];if(a){D[c+16>>2]=a;D[a+24>>2]=c}a=D[d+20>>2];if(!a){break O}D[c+20>>2]=a;D[a+24>>2]=c}Q:{if(f>>>0<=15){a=f+h|0;D[d+4>>2]=a|3;a=a+d|0;D[a+4>>2]=D[a+4>>2]|1;break Q}D[d+4>>2]=h|3;e=d+h|0;D[e+4>>2]=f|1;D[e+f>>2]=f;if(f>>>0<=255){b=(f&-8)+11784|0;c=D[2936];a=1<<(f>>>3);R:{if(!(c&a)){D[2936]=a|c;a=b;break R}a=D[b+8>>2]}D[b+8>>2]=e;D[a+12>>2]=e;D[e+12>>2]=b;D[e+8>>2]=a;break Q}a=31;if(f>>>0<=16777215){a=f>>>8|0;g=a+1048320>>>16&8;a=a<<g;c=a+520192>>>16&4;a=a<<c;b=a+245760>>>16&2;a=(a<<b>>>15|0)-(b|(c|g))|0;a=(a<<1|f>>>a+21&1)+28|0}D[e+28>>2]=a;D[e+16>>2]=0;D[e+20>>2]=0;b=(a<<2)+12048|0;S:{c=1<<a;T:{if(!(c&j)){D[2937]=c|j;D[b>>2]=e;break T}a=f<<((a|0)==31?0:25-(a>>>1|0)|0);h=D[b>>2];while(1){b=h;if((D[b+4>>2]&-8)==(f|0)){break S}c=a>>>29|0;a=a<<1;c=(c&4)+b|0;h=D[c+16>>2];if(h){continue}break}D[c+16>>2]=e}D[e+24>>2]=b;D[e+12>>2]=e;D[e+8>>2]=e;break Q}a=D[b+8>>2];D[a+12>>2]=e;D[b+8>>2]=e;D[e+24>>2]=0;D[e+12>>2]=b;D[e+8>>2]=a}a=d+8|0;break a}U:{if(!i){break U}b=D[c+28>>2];a=(b<<2)+12048|0;V:{if(D[a>>2]==(c|0)){D[a>>2]=d;if(d){break V}m=11748,n=ji(b)&j,D[m>>2]=n;break U}D[i+(D[i+16>>2]==(c|0)?16:20)>>2]=d;if(!d){break U}}D[d+24>>2]=i;a=D[c+16>>2];if(a){D[d+16>>2]=a;D[a+24>>2]=d}a=D[c+20>>2];if(!a){break U}D[d+20>>2]=a;D[a+24>>2]=d}W:{if(f>>>0<=15){a=f+h|0;D[c+4>>2]=a|3;a=a+c|0;D[a+4>>2]=D[a+4>>2]|1;break W}D[c+4>>2]=h|3;d=c+h|0;D[d+4>>2]=f|1;D[d+f>>2]=f;if(k){b=(k&-8)+11784|0;g=D[2941];a=1<<(k>>>3);X:{if(!(a&e)){D[2936]=a|e;a=b;break X}a=D[b+8>>2]}D[b+8>>2]=g;D[a+12>>2]=g;D[g+12>>2]=b;D[g+8>>2]=a}D[2941]=d;D[2938]=f}a=c+8|0}$=l+16|0;return a|0}function Md(a,b,c,d){var 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;h=$-80|0;$=h;e=D[c+36>>2];D[h+72>>2]=D[c+32>>2];D[h+76>>2]=e;f=D[c+28>>2];e=h- -64|0;D[e>>2]=D[c+24>>2];D[e+4>>2]=f;e=D[c+20>>2];D[h+56>>2]=D[c+16>>2];D[h+60>>2]=e;e=D[c+12>>2];D[h+48>>2]=D[c+8>>2];D[h+52>>2]=e;e=D[c+4>>2];D[h+40>>2]=D[c>>2];D[h+44>>2]=e;gc(a,h+40|0,h+24|0);a:{if(D[a>>2]){break a}l=a+4|0;if(B[a+15|0]<0){ma(D[l>>2])}if(E[h+31|0]!=1){b=na(32);c=E[1446]|E[1447]<<8|(E[1448]<<16|E[1449]<<24);B[b+16|0]=c;B[b+17|0]=c>>>8;B[b+18|0]=c>>>16;B[b+19|0]=c>>>24;c=E[1442]|E[1443]<<8|(E[1444]<<16|E[1445]<<24);d=E[1438]|E[1439]<<8|(E[1440]<<16|E[1441]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1434]|E[1435]<<8|(E[1436]<<16|E[1437]<<24);d=E[1430]|E[1431]<<8|(E[1432]<<16|E[1433]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+20|0]=0;D[a>>2]=-1;ta(l,b,20);ma(b);break a}i=$-16|0;$=i;b:{c:{switch(E[h+32|0]){case 0:e=Hd(na(48));D[e>>2]=9864;D[h+8>>2]=0;D[h+12>>2]=0;D[h>>2]=0;D[h+4>>2]=0;D[h+16>>2]=e;break b;case 1:e=Hd(na(52));D[e+48>>2]=0;D[e>>2]=8176;D[h+8>>2]=0;D[h+12>>2]=0;D[h>>2]=0;D[h+4>>2]=0;D[h+16>>2]=e;break b;default:break c}}f=na(32);e=E[1520]|E[1521]<<8|(E[1522]<<16|E[1523]<<24);B[f+24|0]=e;B[f+25|0]=e>>>8;B[f+26|0]=e>>>16;B[f+27|0]=e>>>24;e=E[1516]|E[1517]<<8|(E[1518]<<16|E[1519]<<24);g=E[1512]|E[1513]<<8|(E[1514]<<16|E[1515]<<24);B[f+16|0]=g;B[f+17|0]=g>>>8;B[f+18|0]=g>>>16;B[f+19|0]=g>>>24;B[f+20|0]=e;B[f+21|0]=e>>>8;B[f+22|0]=e>>>16;B[f+23|0]=e>>>24;e=E[1508]|E[1509]<<8|(E[1510]<<16|E[1511]<<24);g=E[1504]|E[1505]<<8|(E[1506]<<16|E[1507]<<24);B[f+8|0]=g;B[f+9|0]=g>>>8;B[f+10|0]=g>>>16;B[f+11|0]=g>>>24;B[f+12|0]=e;B[f+13|0]=e>>>8;B[f+14|0]=e>>>16;B[f+15|0]=e>>>24;e=E[1500]|E[1501]<<8|(E[1502]<<16|E[1503]<<24);g=E[1496]|E[1497]<<8|(E[1498]<<16|E[1499]<<24);B[f|0]=g;B[f+1|0]=g>>>8;B[f+2|0]=g>>>16;B[f+3|0]=g>>>24;B[f+4|0]=e;B[f+5|0]=e>>>8;B[f+6|0]=e>>>16;B[f+7|0]=e>>>24;B[f+28|0]=0;D[i>>2]=-1;e=i|4;ta(e,f,28);k=B[i+15|0];D[h>>2]=D[i>>2];g=h+4|0;d:{if((k|0)>=0){k=D[e+4>>2];D[g>>2]=D[e>>2];D[g+4>>2]=k;D[g+8>>2]=D[e+8>>2];D[h+16>>2]=0;break d}ta(g,D[i+4>>2],D[i+8>>2]);e=B[i+15|0];D[h+16>>2]=0;if((e|0)>=0){break d}ma(D[i+4>>2])}ma(f)}$=i+16|0;e=D[h>>2];e:{if(e){D[a>>2]=e;if(B[h+15|0]>=0){a=h|4;b=D[a+4>>2];D[l>>2]=D[a>>2];D[l+4>>2]=b;D[l+8>>2]=D[a+8>>2];break e}ta(l,D[h+4>>2],D[h+8>>2]);break e}e=D[h+16>>2];D[h+16>>2]=0;D[e+44>>2]=d;i=$-32|0;$=i;D[e+32>>2]=c;D[e+40>>2]=b;D[e+4>>2]=d;gc(a,c,i+16|0);f:{if(D[a>>2]){break f}f=a+4|0;if(B[a+15|0]<0){ma(D[f>>2])}b=E[i+23|0];if((ba[D[D[e>>2]+8>>2]](e)|0)!=(b|0)){b=na(64);c=E[1304]|E[1305]<<8;B[b+48|0]=c;B[b+49|0]=c>>>8;c=E[1300]|E[1301]<<8|(E[1302]<<16|E[1303]<<24);d=E[1296]|E[1297]<<8|(E[1298]<<16|E[1299]<<24);B[b+40|0]=d;B[b+41|0]=d>>>8;B[b+42|0]=d>>>16;B[b+43|0]=d>>>24;B[b+44|0]=c;B[b+45|0]=c>>>8;B[b+46|0]=c>>>16;B[b+47|0]=c>>>24;c=E[1292]|E[1293]<<8|(E[1294]<<16|E[1295]<<24);d=E[1288]|E[1289]<<8|(E[1290]<<16|E[1291]<<24);B[b+32|0]=d;B[b+33|0]=d>>>8;B[b+34|0]=d>>>16;B[b+35|0]=d>>>24;B[b+36|0]=c;B[b+37|0]=c>>>8;B[b+38|0]=c>>>16;B[b+39|0]=c>>>24;c=E[1284]|E[1285]<<8|(E[1286]<<16|E[1287]<<24);d=E[1280]|E[1281]<<8|(E[1282]<<16|E[1283]<<24);B[b+24|0]=d;B[b+25|0]=d>>>8;B[b+26|0]=d>>>16;B[b+27|0]=d>>>24;B[b+28|0]=c;B[b+29|0]=c>>>8;B[b+30|0]=c>>>16;B[b+31|0]=c>>>24;c=E[1276]|E[1277]<<8|(E[1278]<<16|E[1279]<<24);d=E[1272]|E[1273]<<8|(E[1274]<<16|E[1275]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1268]|E[1269]<<8|(E[1270]<<16|E[1271]<<24);d=E[1264]|E[1265]<<8|(E[1266]<<16|E[1267]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1260]|E[1261]<<8|(E[1262]<<16|E[1263]<<24);d=E[1256]|E[1257]<<8|(E[1258]<<16|E[1259]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+50|0]=0;D[a>>2]=-1;ta(f,b,50);ma(b);break f}c=E[i+21|0];B[e+36|0]=c;d=E[i+22|0];B[e+37|0]=d;if((c|0)!=2){b=na(32);c=E[1427]|E[1428]<<8;B[b+24|0]=c;B[b+25|0]=c>>>8;c=E[1423]|E[1424]<<8|(E[1425]<<16|E[1426]<<24);d=E[1419]|E[1420]<<8|(E[1421]<<16|E[1422]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1415]|E[1416]<<8|(E[1417]<<16|E[1418]<<24);d=E[1411]|E[1412]<<8|(E[1413]<<16|E[1414]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1407]|E[1408]<<8|(E[1409]<<16|E[1410]<<24);d=E[1403]|E[1404]<<8|(E[1405]<<16|E[1406]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+26|0]=0;D[a>>2]=-5;ta(f,b,26);ma(b);break f}b=b?2:3;if((b|0)!=(d|0)){b=na(32);c=E[1400]|E[1401]<<8;B[b+24|0]=c;B[b+25|0]=c>>>8;c=E[1396]|E[1397]<<8|(E[1398]<<16|E[1399]<<24);d=E[1392]|E[1393]<<8|(E[1394]<<16|E[1395]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1388]|E[1389]<<8|(E[1390]<<16|E[1391]<<24);d=E[1384]|E[1385]<<8|(E[1386]<<16|E[1387]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1380]|E[1381]<<8|(E[1382]<<16|E[1383]<<24);d=E[1376]|E[1377]<<8|(E[1378]<<16|E[1379]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+26|0]=0;D[a>>2]=-5;ta(f,b,26);ma(b);break f}C[D[e+32>>2]+38>>1]=b|512;g:{if(C[i+26>>1]>=0){break g}k=$-16|0;$=k;d=na(36);b=d;D[b+4>>2]=0;D[b+8>>2]=0;D[b+24>>2]=0;D[b+28>>2]=0;b=b+16|0;D[b>>2]=0;D[b+4>>2]=0;D[d>>2]=d+4;D[d+32>>2]=0;D[d+12>>2]=b;D[k>>2]=0;c=D[e+32>>2];m=$-16|0;$=m;b=0;h:{if(!d){break h}D[k>>2]=c;D[m+12>>2]=0;b=0;if(!hb(1,m+12|0,c)){break h}p=D[m+12>>2];if(p){while(1){i:{if(hb(1,m+8|0,D[k>>2])){b=na(28);D[b+4>>2]=0;D[b+8>>2]=0;c=b+16|0;D[c>>2]=0;D[c+4>>2]=0;D[b>>2]=b+4;D[b+12>>2]=c;D[b+24>>2]=D[m+8>>2];if(Tc(k,b)){break i}Fa(b+12|0,D[b+16>>2]);Ea(b,D[b+4>>2]);ma(b)}b=0;break h}g=$-16|0;$=g;D[g+8>>2]=b;j:{if(!b){D[g+8>>2]=0;break j}c=D[d+28>>2];k:{if(c>>>0<G[d+32>>2]){D[g+8>>2]=0;D[c>>2]=b;D[d+28>>2]=c+4;break k}c=0;l:{m:{n:{j=D[d+24>>2];o=D[d+28>>2]-j>>2;b=o+1|0;if(b>>>0<1073741824){j=D[d+32>>2]-j|0;n=j>>1;b=j>>>0<2147483644?b>>>0<n>>>0?n:b:1073741823;if(b){if(b>>>0>=1073741824){break n}c=na(b<<2)}n=D[g+8>>2];D[g+8>>2]=0;j=(o<<2)+c|0;D[j>>2]=n;o=(b<<2)+c|0;n=j+4|0;c=D[d+28>>2];b=D[d+24>>2];if((c|0)==(b|0)){break m}while(1){c=c-4|0;r=D[c>>2];D[c>>2]=0;j=j-4|0;D[j>>2]=r;if((b|0)!=(c|0)){continue}break}D[d+32>>2]=o;c=D[d+28>>2];D[d+28>>2]=n;b=D[d+24>>2];D[d+24>>2]=j;if((b|0)==(c|0)){break l}while(1){c=c-4|0;j=D[c>>2];D[c>>2]=0;if(j){Fa(j+12|0,D[j+16>>2]);Ea(j,D[j+4>>2]);ma(j)}if((b|0)!=(c|0)){continue}break}break l}pa();T()}sa();T()}D[d+32>>2]=o;D[d+28>>2]=n;D[d+24>>2]=j}if(b){ma(b)}}b=D[g+8>>2];D[g+8>>2]=0;if(!b){break j}Fa(b+12|0,D[b+16>>2]);Ea(b,D[b+4>>2]);ma(b)}$=g+16|0;q=q+1|0;if((q|0)!=(p|0)){continue}break}}b=Tc(k,d)}$=m+16|0;o:{if(b){c=D[e+4>>2];b=D[c+4>>2];D[c+4>>2]=d;if(b){fc(b)}D[a>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0;break o}b=na(32);c=E[1549]|E[1550]<<8;B[b+24|0]=c;B[b+25|0]=c>>>8;c=E[1545]|E[1546]<<8|(E[1547]<<16|E[1548]<<24);g=E[1541]|E[1542]<<8|(E[1543]<<16|E[1544]<<24);B[b+16|0]=g;B[b+17|0]=g>>>8;B[b+18|0]=g>>>16;B[b+19|0]=g>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1537]|E[1538]<<8|(E[1539]<<16|E[1540]<<24);g=E[1533]|E[1534]<<8|(E[1535]<<16|E[1536]<<24);B[b+8|0]=g;B[b+9|0]=g>>>8;B[b+10|0]=g>>>16;B[b+11|0]=g>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1529]|E[1530]<<8|(E[1531]<<16|E[1532]<<24);g=E[1525]|E[1526]<<8|(E[1527]<<16|E[1528]<<24);B[b|0]=g;B[b+1|0]=g>>>8;B[b+2|0]=g>>>16;B[b+3|0]=g>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+26|0]=0;D[a>>2]=-1;ta(a+4|0,b,26);ma(b);D[k+8>>2]=0;fc(d)}$=k+16|0;if(D[a>>2]){break f}if(B[f+11|0]>=0){break g}ma(D[f>>2])}if(!(ba[D[D[e>>2]+12>>2]](e)|0)){b=na(48);B[b+32|0]=E[1374];c=E[1370]|E[1371]<<8|(E[1372]<<16|E[1373]<<24);d=E[1366]|E[1367]<<8|(E[1368]<<16|E[1369]<<24);B[b+24|0]=d;B[b+25|0]=d>>>8;B[b+26|0]=d>>>16;B[b+27|0]=d>>>24;B[b+28|0]=c;B[b+29|0]=c>>>8;B[b+30|0]=c>>>16;B[b+31|0]=c>>>24;c=E[1362]|E[1363]<<8|(E[1364]<<16|E[1365]<<24);d=E[1358]|E[1359]<<8|(E[1360]<<16|E[1361]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1354]|E[1355]<<8|(E[1356]<<16|E[1357]<<24);d=E[1350]|E[1351]<<8|(E[1352]<<16|E[1353]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1346]|E[1347]<<8|(E[1348]<<16|E[1349]<<24);d=E[1342]|E[1343]<<8|(E[1344]<<16|E[1345]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+33|0]=0;D[a>>2]=-1;ta(f,b,33);ma(b);break f}if(!(ba[D[D[e>>2]+20>>2]](e)|0)){b=Fb(i,1552);D[a>>2]=-1;if(B[b+11|0]>=0){c=D[b+4>>2];D[f>>2]=D[b>>2];D[f+4>>2]=c;D[f+8>>2]=D[b+8>>2];break f}ta(f,D[b>>2],D[b+4>>2]);if(B[b+11|0]>=0){break f}ma(D[b>>2]);break f}if(!(ba[D[D[e>>2]+24>>2]](e)|0)){b=Fb(i,1307);D[a>>2]=-1;if(B[b+11|0]>=0){c=D[b+4>>2];D[f>>2]=D[b>>2];D[f+4>>2]=c;D[f+8>>2]=D[b+8>>2];break f}ta(f,D[b>>2],D[b+4>>2]);if(B[b+11|0]>=0){break f}ma(D[b>>2]);break f}D[a>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0}$=i+32|0;if(!D[a>>2]){if(B[l+11|0]<0){ma(D[l>>2])}D[a>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0}ba[D[D[e>>2]+4>>2]](e)}a=D[h+16>>2];D[h+16>>2]=0;if(a){ba[D[D[a>>2]+4>>2]](a)}if(B[h+15|0]>=0){break a}ma(D[h+4>>2])}$=h+80|0}function Tc(a,b){var 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;m=$-32|0;$=m;o=na(12);D[o+8>>2]=0;D[o+4>>2]=b;D[o>>2]=0;t=o+12|0;b=t;a:{b:{c:{d:{while(1){b=b-12|0;w=D[b+8>>2];j=D[b+4>>2];u=D[b>>2];if(u){q=0;if((w|0)>1e3){break a}D[m+24>>2]=0;D[m+16>>2]=0;D[m+20>>2]=0;f=1;c=D[a>>2];d=D[c+8>>2];h=D[c+12>>2];e=D[c+20>>2];g=d;d=D[c+16>>2];e:{if((h|0)<=(e|0)&g>>>0<=d>>>0|(e|0)>(h|0)){break e}h=E[d+D[c>>2]|0];d=d+1|0;e=d?e:e+1|0;D[c+16>>2]=d;D[c+20>>2]=e;Rb(m+16|0,h);if(h){d=D[a>>2];l=Sb(m+16|0);e=D[d+20>>2];i=D[d+16>>2];c=h;n=i+c|0;g=D[d+12>>2];e=c>>>0>n>>>0?e+1|0:e;if(n>>>0>G[d+8>>2]&(g|0)<=(e|0)|(e|0)>(g|0)){break e}oa(l,i+D[d>>2]|0,h);e=D[d+20>>2];f=c+D[d+16>>2]|0;e=f>>>0<c>>>0?e+1|0:e;D[d+16>>2]=f;D[d+20>>2]=e}j=na(24);c=j;D[c+4>>2]=0;D[c+8>>2]=0;c=c+16|0;D[c>>2]=0;D[c+4>>2]=0;D[j>>2]=j+4;D[j+12>>2]=c;e=$-32|0;$=e;h=u+12|0;c=m+16|0;p=bb(h,c);k=u+16|0;f:{if((p|0)==(k|0)){D[e+16>>2]=c;g:{h:{d=D[h+4>>2];i:{if(!d){f=h+4|0;c=f;break i}f=E[c+11|0];g=f<<24>>24<0;n=g?D[c>>2]:c;g=g?D[c+4>>2]:f;while(1){c=d;d=E[c+27|0];f=d<<24>>24<0;d=f?D[c+20>>2]:d;l=d>>>0<g>>>0;j:{k:{l:{m:{i=l?d:g;n:{if(i){r=c+16|0;f=f?D[r>>2]:r;r=ua(n,f,i);if(!r){if(d>>>0>g>>>0){break n}break m}if((r|0)>=0){break m}break n}if(d>>>0<=g>>>0){break l}}f=c;d=D[c>>2];if(d){continue}break i}d=ua(f,n,i);if(d){break k}}if(l){break j}break h}if((d|0)>=0){break h}}d=D[c+4>>2];if(d){continue}break}f=c+4|0}d=na(32);n=d+16|0;g=D[e+16>>2];o:{if(B[g+11|0]>=0){l=D[g+4>>2];D[n>>2]=D[g>>2];D[n+4>>2]=l;D[n+8>>2]=D[g+8>>2];break o}ta(n,D[g>>2],D[g+4>>2])}D[d+8>>2]=c;D[d>>2]=0;D[d+4>>2]=0;D[d+28>>2]=0;D[f>>2]=d;c=d;g=D[D[h>>2]>>2];if(g){D[h>>2]=g;c=D[f>>2]}pb(D[h+4>>2],c);D[h+8>>2]=D[h+8>>2]+1;c=1;break g}d=c;c=0}B[e+28|0]=c;D[e+24>>2]=d;d=D[e+24>>2];c=D[d+28>>2];D[d+28>>2]=j;if(!c){break f}Fa(c+12|0,D[c+16>>2]);Ea(c,D[c+4>>2]);ma(c);break f}if(!j){break f}Fa(j+12|0,D[j+16>>2]);Ea(j,D[j+4>>2]);ma(j)}$=e+32|0;f=(k|0)!=(p|0)}if(B[m+27|0]<0){ma(D[m+16>>2])}if(f){break a}}q=0;if(!j){break a}D[m+16>>2]=0;if(!hb(1,m+16|0,D[a>>2])){break a}p=0;x=D[m+16>>2];if(x){while(1){c=0;i=$-32|0;$=i;D[i+24>>2]=0;D[i+16>>2]=0;D[i+20>>2]=0;d=D[a>>2];f=D[d+8>>2];p:{q:{h=D[d+12>>2];e=D[d+20>>2];g=D[d+16>>2];r:{if((h|0)<=(e|0)&g>>>0>=f>>>0|(e|0)>(h|0)){break r}h=E[g+D[d>>2]|0];f=d;d=e;e=g+1|0;d=e?d:d+1|0;D[f+16>>2]=e;D[f+20>>2]=d;Rb(i+16|0,h);if(h){f=D[a>>2];l=Sb(i+16|0);e=D[f+20>>2];k=D[f+16>>2];d=h;n=k+d|0;g=D[f+12>>2];e=d>>>0>n>>>0?e+1|0:e;if(n>>>0>G[f+8>>2]&(g|0)<=(e|0)|(e|0)>(g|0)){break r}oa(l,k+D[f>>2]|0,h);e=D[f+20>>2];h=d+D[f+16>>2]|0;e=h>>>0<d>>>0?e+1|0:e;D[f+16>>2]=h;D[f+20>>2]=e}D[i+12>>2]=0;if(!hb(1,i+12|0,D[a>>2])){break r}d=D[i+12>>2];if(!d){break r}D[i+8>>2]=0;D[i>>2]=0;D[i+4>>2]=0;if((d|0)<0){break q}c=na(d);D[i>>2]=c;e=c+d|0;D[i+8>>2]=e;l=qa(c,0,d);D[i+4>>2]=e;e=D[a>>2];r=D[e+8>>2];h=D[e+12>>2];y=h;f=D[e+20>>2];k=D[e+16>>2];g=d+k|0;f=g>>>0<d>>>0?f+1|0:f;s:{z=g;n=f;if(g>>>0>r>>>0&(f|0)>=(h|0)|(f|0)>(h|0)){break s}oa(l,k+D[e>>2]|0,d);c=d;f=c+D[e+16>>2]|0;d=D[e+20>>2];D[e+16>>2]=f;D[e+20>>2]=c>>>0>f>>>0?d+1|0:d;h=$-48|0;$=h;e=bb(j,i+16|0);if((e|0)!=(j+4|0)){c=D[e+4>>2];t:{if(!c){c=e;while(1){d=D[c+8>>2];f=D[d>>2]!=(c|0);c=d;if(f){continue}break}break t}while(1){d=c;c=D[c>>2];if(c){continue}break}}if((e|0)==D[j>>2]){D[j>>2]=d}D[j+8>>2]=D[j+8>>2]-1;f=D[j+4>>2];u:{v:{g=e;d=e;e=D[d>>2];if(e){c=D[g+4>>2];if(!c){break v}while(1){d=c;c=D[c>>2];if(c){continue}break}}e=D[d+4>>2];if(e){break v}e=0;l=1;break u}D[e+8>>2]=D[d+8>>2];l=0}k=D[d+8>>2];c=D[k>>2];w:{if((d|0)==(c|0)){D[k>>2]=e;if((d|0)==(f|0)){c=0;f=e;break w}c=D[k+4>>2];break w}D[k+4>>2]=e}s=!E[d+12|0];if((d|0)!=(g|0)){k=D[g+8>>2];D[d+8>>2]=k;D[k+(((g|0)!=D[D[g+8>>2]>>2])<<2)>>2]=d;k=D[g>>2];D[d>>2]=k;D[k+8>>2]=d;k=D[g+4>>2];D[d+4>>2]=k;if(k){D[k+8>>2]=d}B[d+12|0]=E[g+12|0];f=(f|0)==(g|0)?d:f}x:{if(s|!f){break x}if(l){while(1){e=E[c+12|0];y:{d=D[c+8>>2];if(D[d>>2]!=(c|0)){if(!e){B[c+12|0]=1;B[d+12|0]=0;e=D[d+4>>2];l=D[e>>2];D[d+4>>2]=l;if(l){D[l+8>>2]=d}D[e+8>>2]=D[d+8>>2];l=D[d+8>>2];D[(((d|0)!=D[l>>2])<<2)+l>>2]=e;D[e>>2]=d;D[d+8>>2]=e;d=c;c=D[c>>2];f=(c|0)==(f|0)?d:f;c=D[c+4>>2]}z:{A:{d=D[c>>2];B:{if(!(E[d+12|0]?0:d)){e=D[c+4>>2];if(E[e+12|0]?0:e){break B}B[c+12|0]=0;c=D[c+8>>2];C:{if((f|0)==(c|0)){c=f;break C}if(E[c+12|0]){break y}}B[c+12|0]=1;break x}e=D[c+4>>2];if(!e){break A}}if(E[e+12|0]){break A}d=c;break z}B[d+12|0]=1;B[c+12|0]=0;e=D[d+4>>2];D[c>>2]=e;if(e){D[e+8>>2]=c}D[d+8>>2]=D[c+8>>2];e=D[c+8>>2];D[((D[e>>2]!=(c|0))<<2)+e>>2]=d;D[d+4>>2]=c;D[c+8>>2]=d;e=c}c=D[d+8>>2];B[d+12|0]=E[c+12|0];B[c+12|0]=1;B[e+12|0]=1;d=D[c+4>>2];e=D[d>>2];D[c+4>>2]=e;if(e){D[e+8>>2]=c}D[d+8>>2]=D[c+8>>2];e=D[c+8>>2];D[(((c|0)!=D[e>>2])<<2)+e>>2]=d;D[d>>2]=c;D[c+8>>2]=d;break x}if(!e){B[c+12|0]=1;B[d+12|0]=0;e=D[c+4>>2];D[d>>2]=e;if(e){D[e+8>>2]=d}D[c+8>>2]=D[d+8>>2];e=D[d+8>>2];D[(((d|0)!=D[e>>2])<<2)+e>>2]=c;D[c+4>>2]=d;D[d+8>>2]=c;f=(d|0)==(f|0)?c:f;c=D[d>>2]}e=D[c>>2];D:{if(!(!e|E[e+12|0])){d=c;break D}d=D[c+4>>2];if(!(E[d+12|0]?0:d)){B[c+12|0]=0;c=D[c+8>>2];if((c|0)!=(f|0)?E[c+12|0]:0){break y}B[c+12|0]=1;break x}if(e){if(!E[e+12|0]){d=c;break D}d=D[c+4>>2]}B[d+12|0]=1;B[c+12|0]=0;e=D[d>>2];D[c+4>>2]=e;if(e){D[e+8>>2]=c}D[d+8>>2]=D[c+8>>2];e=D[c+8>>2];D[((D[e>>2]!=(c|0))<<2)+e>>2]=d;D[d>>2]=c;D[c+8>>2]=d;e=c}c=D[d+8>>2];B[d+12|0]=E[c+12|0];B[c+12|0]=1;B[e+12|0]=1;d=D[c>>2];e=D[d+4>>2];D[c>>2]=e;if(e){D[e+8>>2]=c}D[d+8>>2]=D[c+8>>2];e=D[c+8>>2];D[(((c|0)!=D[e>>2])<<2)+e>>2]=d;D[d+4>>2]=c;D[c+8>>2]=d;break x}d=c;c=D[c+8>>2];c=D[(((d|0)==D[c>>2])<<2)+c>>2];continue}}B[e+12|0]=1}c=D[g+28>>2];if(c){D[g+32>>2]=c;ma(c)}if(B[g+27|0]<0){ma(D[g+16>>2])}ma(g)}D[h+8>>2]=0;D[h>>2]=0;D[h+4>>2]=0;c=D[i+4>>2];d=D[i>>2];f=c-d|0;e=0;E:{F:{if((c|0)!=(d|0)){if((f|0)<0){break F}e=na(f);c=qa(e,0,f);g=c+f|0;D[h+8>>2]=g;D[h+4>>2]=g;D[h>>2]=c;c=d}oa(e,c,f);G:{if(B[i+27|0]>=0){D[h+24>>2]=D[i+24>>2];c=D[i+20>>2];D[h+16>>2]=D[i+16>>2];D[h+20>>2]=c;break G}ta(h+16|0,D[i+16>>2],D[i+20>>2])}Rc(h+28|0,h);f=h+16|0;c=f;H:{I:{d=D[j+4>>2];J:{if(!d){e=j+4|0;c=e;break J}e=E[c+11|0];g=e<<24>>24<0;l=g?D[c>>2]:c;g=g?D[c+4>>2]:e;while(1){c=d;d=E[c+27|0];e=d<<24>>24<0;d=e?D[c+20>>2]:d;k=d>>>0<g>>>0;K:{L:{M:{N:{v=k?d:g;O:{if(v){s=c+16|0;e=e?D[s>>2]:s;s=ua(l,e,v);if(!s){if(d>>>0>g>>>0){break O}break N}if((s|0)>=0){break N}break O}if(d>>>0<=g>>>0){break M}}e=c;d=D[c>>2];if(d){continue}break J}d=ua(e,l,v);if(d){break L}}if(k){break K}break I}if((d|0)>=0){break I}}d=D[c+4>>2];if(d){continue}break}e=c+4|0}d=na(40);D[d+24>>2]=D[f+8>>2];g=D[f+4>>2];D[d+16>>2]=D[f>>2];D[d+20>>2]=g;D[f>>2]=0;D[f+4>>2]=0;D[f+8>>2]=0;Rc(d+28|0,f+12|0);D[d+8>>2]=c;D[d>>2]=0;D[d+4>>2]=0;D[e>>2]=d;c=d;f=D[D[j>>2]>>2];if(f){D[j>>2]=f;c=D[e>>2]}pb(D[j+4>>2],c);D[j+8>>2]=D[j+8>>2]+1;c=1;break H}d=c;c=0}B[h+44|0]=c;D[h+40>>2]=d;c=D[h+28>>2];if(c){D[h+32>>2]=c;ma(c)}if(B[h+27|0]<0){ma(D[h+16>>2])}c=D[h>>2];if(c){D[h+4>>2]=c;ma(c)}$=h+48|0;break E}pa();T()}c=D[i>>2];if(c){break s}c=1;break r}D[i+4>>2]=c;ma(c);c=(n|0)<=(y|0)&r>>>0>=z>>>0|(n|0)<(y|0)}if(B[i+27|0]<0){ma(D[i+16>>2])}$=i+32|0;break p}pa();T()}if(!c){break a}p=p+1|0;if((x|0)!=(p|0)){continue}break}}D[m+12>>2]=0;if(!hb(1,m+12|0,D[a>>2])){break b}c=D[a>>2];d=D[c+8>>2];e=D[c+16>>2];f=d-e|0;q=D[m+12>>2];c=D[c+12>>2]-(D[c+20>>2]+(d>>>0<e>>>0)|0)|0;if(f>>>0<q>>>0&(c|0)<=0|(c|0)<0){break b}if(q){p=0;h=((u|0)!=0)+w|0;while(1){P:{if(b>>>0<t>>>0){D[b+8>>2]=h;D[b+4>>2]=0;D[b>>2]=j;b=b+12|0;q=D[m+12>>2];break P}e=b-o|0;c=(e|0)/12|0;b=c+1|0;if(b>>>0>=357913942){break d}d=(t-o|0)/12|0;f=d<<1;f=d>>>0<178956970?b>>>0<f>>>0?f:b:357913941;if(f){if(f>>>0>=357913942){break c}b=na(J(f,12))}else{b=0}d=b+J(c,12)|0;D[d+8>>2]=h;D[d+4>>2]=0;D[d>>2]=j;c=d+J((e|0)/-12|0,12)|0;if((e|0)>0){oa(c,o,e)}t=b+J(f,12)|0;b=d+12|0;if(o){ma(o)}o=c}p=p+1|0;if(p>>>0<q>>>0){continue}break}}if((b|0)!=(o|0)){continue}break}q=1;break a}pa();T()}sa();T()}q=0}if(o){ma(o)}$=m+32|0;return q}function ie(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,k=0,l=0,m=0;h=$-48|0;$=h;a:{if((c|0)!=1){break a}e=D[a+4>>2];i=D[a+12>>2];D[h+40>>2]=0;a=h;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0;c=a+8|0;b:{if((b|0)==-2){break b}k=D[D[D[e+4>>2]+8>>2]+(i<<2)>>2];if((ba[D[D[e>>2]+8>>2]](e)|0)==1){g=$-32|0;$=g;f=D[D[D[e+4>>2]+8>>2]+(i<<2)>>2];c:{d:{e:{if((ba[D[D[e>>2]+8>>2]](e)|0)!=1|b-1>>>0>5){break e}j=ba[D[D[e>>2]+36>>2]](e)|0;a=ba[D[D[e>>2]+44>>2]](e,i)|0;if(!j|!a){break e}d=ba[D[D[e>>2]+40>>2]](e,i)|0;if(d){e=D[e+44>>2];D[g+12>>2]=d;D[g+8>>2]=e;D[g+20>>2]=a;D[g+16>>2]=a+12;d=g+8|0;a=0;f:{g:{switch(b-1|0){case 0:a=na(60);D[a+4>>2]=f;D[a>>2]=2960;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+20>>2];D[a+24>>2]=D[c+16>>2];D[a+28>>2]=b;D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;b=D[c+28>>2];e=D[c+24>>2];if((b|0)!=(e|0)){b=b-e|0;if((b|0)<0){break d}f=na(b);D[a+32>>2]=f;D[a+40>>2]=f+(b>>2<<2);l=a,m=oa(f,e,b)+b|0,D[l+36>>2]=m}b=D[d+4>>2];D[a+44>>2]=D[d>>2];D[a+48>>2]=b;b=D[d+12>>2];D[a+52>>2]=D[d+8>>2];D[a+56>>2]=b;D[a>>2]=2252;break f;case 3:a=na(112);D[a+4>>2]=f;D[a>>2]=2960;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+20>>2];D[a+24>>2]=D[c+16>>2];D[a+28>>2]=b;D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;b=D[c+28>>2];e=D[c+24>>2];if((b|0)!=(e|0)){b=b-e|0;if((b|0)<0){break d}f=na(b);D[a+32>>2]=f;D[a+40>>2]=f+(b>>2<<2);l=a,m=oa(f,e,b)+b|0,D[l+36>>2]=m}b=D[d+4>>2];D[a+44>>2]=D[d>>2];D[a+48>>2]=b;b=D[d+12>>2];D[a+52>>2]=D[d+8>>2];D[a+56>>2]=b;D[a+60>>2]=0;D[a+64>>2]=0;D[a>>2]=3016;D[a+68>>2]=0;D[a+72>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+84>>2]=0;D[a+88>>2]=0;D[a+92>>2]=0;D[a+96>>2]=0;D[a+100>>2]=0;D[a+104>>2]=0;D[a+108>>2]=0;break f;case 4:a=na(104);D[a+4>>2]=f;D[a>>2]=2960;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+20>>2];D[a+24>>2]=D[c+16>>2];D[a+28>>2]=b;D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;b=D[c+28>>2];e=D[c+24>>2];if((b|0)!=(e|0)){b=b-e|0;if((b|0)<0){break d}f=na(b);D[a+32>>2]=f;D[a+40>>2]=f+(b>>2<<2);l=a,m=oa(f,e,b)+b|0,D[l+36>>2]=m}b=D[d+4>>2];D[a+44>>2]=D[d>>2];D[a+48>>2]=b;b=D[d+12>>2];D[a+52>>2]=D[d+8>>2];D[a+56>>2]=b;D[a+84>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+60>>2]=0;D[a+64>>2]=0;D[a>>2]=3264;b=D[d+4>>2];D[a+88>>2]=D[d>>2];D[a+92>>2]=b;b=D[d+12>>2];D[a+96>>2]=D[d+8>>2];D[a+100>>2]=b;break f;case 5:break g;default:break f}}a=na(128);D[a+4>>2]=f;D[a>>2]=2960;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+20>>2];D[a+24>>2]=D[c+16>>2];D[a+28>>2]=b;D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;h:{i:{b=D[c+28>>2];e=D[c+24>>2];if((b|0)!=(e|0)){e=b-e|0;if((e|0)<0){break i}b=na(e);D[a+32>>2]=b;D[a+36>>2]=b;D[a+40>>2]=b+(e>>2<<2);f=D[c+24>>2];e=D[c+28>>2]-f|0;if((e|0)>0){b=oa(b,f,e)+e|0}D[a+36>>2]=b}D[a>>2]=2904;b=D[d+4>>2];D[a+44>>2]=D[d>>2];D[a+48>>2]=b;b=D[d+12>>2];D[a+52>>2]=D[d+8>>2];D[a+56>>2]=b;b=a- -64|0;D[b>>2]=0;D[b+4>>2]=0;D[a+60>>2]=4128;D[a>>2]=3500;b=D[d+4>>2];D[a+72>>2]=D[d>>2];D[a+76>>2]=b;b=D[d+12>>2];D[a+80>>2]=D[d+8>>2];D[a+84>>2]=b;D[a+104>>2]=1065353216;D[a+108>>2]=-1;D[a+96>>2]=-1;D[a+100>>2]=-1;D[a+88>>2]=1;D[a+92>>2]=-1;D[a+60>>2]=3736;D[a+112>>2]=0;D[a+116>>2]=0;B[a+117|0]=0;B[a+118|0]=0;B[a+119|0]=0;B[a+120|0]=0;B[a+121|0]=0;B[a+122|0]=0;B[a+123|0]=0;B[a+124|0]=0;break h}pa();T()}break f}d=a;break e}d=D[e+44>>2];D[g+12>>2]=j;D[g+8>>2]=d;D[g+20>>2]=a;D[g+16>>2]=a+12;d=g+8|0;a=0;j:{k:{switch(b-1|0){case 0:a=na(60);D[a+4>>2]=f;D[a>>2]=2960;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+20>>2];D[a+24>>2]=D[c+16>>2];D[a+28>>2]=b;D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;b=D[c+28>>2];e=D[c+24>>2];if((b|0)!=(e|0)){b=b-e|0;if((b|0)<0){break d}f=na(b);D[a+32>>2]=f;D[a+40>>2]=f+(b>>2<<2);l=a,m=oa(f,e,b)+b|0,D[l+36>>2]=m}b=D[d+4>>2];D[a+44>>2]=D[d>>2];D[a+48>>2]=b;b=D[d+12>>2];D[a+52>>2]=D[d+8>>2];D[a+56>>2]=b;D[a>>2]=4156;break j;case 3:a=na(112);D[a+4>>2]=f;D[a>>2]=2960;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+20>>2];D[a+24>>2]=D[c+16>>2];D[a+28>>2]=b;D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;b=D[c+28>>2];e=D[c+24>>2];if((b|0)!=(e|0)){b=b-e|0;if((b|0)<0){break d}f=na(b);D[a+32>>2]=f;D[a+40>>2]=f+(b>>2<<2);l=a,m=oa(f,e,b)+b|0,D[l+36>>2]=m}b=D[d+4>>2];D[a+44>>2]=D[d>>2];D[a+48>>2]=b;b=D[d+12>>2];D[a+52>>2]=D[d+8>>2];D[a+56>>2]=b;D[a+60>>2]=0;D[a+64>>2]=0;D[a>>2]=4580;D[a+68>>2]=0;D[a+72>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+84>>2]=0;D[a+88>>2]=0;D[a+92>>2]=0;D[a+96>>2]=0;D[a+100>>2]=0;D[a+104>>2]=0;D[a+108>>2]=0;break j;case 4:a=na(104);D[a+4>>2]=f;D[a>>2]=2960;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+20>>2];D[a+24>>2]=D[c+16>>2];D[a+28>>2]=b;D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;b=D[c+28>>2];e=D[c+24>>2];if((b|0)!=(e|0)){b=b-e|0;if((b|0)<0){break d}f=na(b);D[a+32>>2]=f;D[a+40>>2]=f+(b>>2<<2);l=a,m=oa(f,e,b)+b|0,D[l+36>>2]=m}b=D[d+4>>2];D[a+44>>2]=D[d>>2];D[a+48>>2]=b;b=D[d+12>>2];D[a+52>>2]=D[d+8>>2];D[a+56>>2]=b;D[a+84>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+60>>2]=0;D[a+64>>2]=0;D[a>>2]=4816;b=D[d+4>>2];D[a+88>>2]=D[d>>2];D[a+92>>2]=b;b=D[d+12>>2];D[a+96>>2]=D[d+8>>2];D[a+100>>2]=b;break j;case 5:break k;default:break j}}a=na(128);D[a+4>>2]=f;D[a>>2]=2960;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+20>>2];D[a+24>>2]=D[c+16>>2];D[a+28>>2]=b;D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;l:{m:{b=D[c+28>>2];e=D[c+24>>2];if((b|0)!=(e|0)){e=b-e|0;if((e|0)<0){break m}b=na(e);D[a+32>>2]=b;D[a+36>>2]=b;D[a+40>>2]=b+(e>>2<<2);f=D[c+24>>2];e=D[c+28>>2]-f|0;if((e|0)>0){b=oa(b,f,e)+e|0}D[a+36>>2]=b}D[a>>2]=4524;b=D[d+4>>2];D[a+44>>2]=D[d>>2];D[a+48>>2]=b;b=D[d+12>>2];D[a+52>>2]=D[d+8>>2];D[a+56>>2]=b;b=a- -64|0;D[b>>2]=0;D[b+4>>2]=0;D[a+60>>2]=5624;D[a>>2]=5040;b=D[d+4>>2];D[a+72>>2]=D[d>>2];D[a+76>>2]=b;b=D[d+12>>2];D[a+80>>2]=D[d+8>>2];D[a+84>>2]=b;D[a+104>>2]=1065353216;D[a+108>>2]=-1;D[a+96>>2]=-1;D[a+100>>2]=-1;D[a+88>>2]=1;D[a+92>>2]=-1;D[a+60>>2]=5260;D[a+112>>2]=0;D[a+116>>2]=0;B[a+117|0]=0;B[a+118|0]=0;B[a+119|0]=0;B[a+120|0]=0;B[a+121|0]=0;B[a+122|0]=0;B[a+123|0]=0;B[a+124|0]=0;break l}pa();T()}break j}d=a}$=g+32|0;break c}pa();T()}if(d){break b}}d=na(44);D[d+4>>2]=k;D[d>>2]=2960;a=D[c+4>>2];D[d+8>>2]=D[c>>2];D[d+12>>2]=a;a=D[c+12>>2];D[d+16>>2]=D[c+8>>2];D[d+20>>2]=a;a=D[c+20>>2];D[d+24>>2]=D[c+16>>2];D[d+28>>2]=a;D[d+40>>2]=0;D[d+32>>2]=0;D[d+36>>2]=0;n:{a=D[c+28>>2];b=D[c+24>>2];if((a|0)!=(b|0)){a=a-b|0;if((a|0)<0){break n}c=na(a);D[d+32>>2]=c;D[d+40>>2]=c+(a>>2<<2);l=d,m=oa(c,b,a)+a|0,D[l+36>>2]=m}D[d>>2]=5652;break b}pa();T()}a=D[h+32>>2];if(!a){break a}D[h+36>>2]=a;ma(a)}$=h+48|0;return d|0}function nf(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;o=$-16|0;$=o;D[o+12>>2]=b;b=na(32);D[o>>2]=b;D[o+4>>2]=24;D[o+8>>2]=-2147483616;B[b+24|0]=0;d=E[1196]|E[1197]<<8|(E[1198]<<16|E[1199]<<24);c=E[1192]|E[1193]<<8|(E[1194]<<16|E[1195]<<24);B[b+16|0]=c;B[b+17|0]=c>>>8;B[b+18|0]=c>>>16;B[b+19|0]=c>>>24;B[b+20|0]=d;B[b+21|0]=d>>>8;B[b+22|0]=d>>>16;B[b+23|0]=d>>>24;d=E[1188]|E[1189]<<8|(E[1190]<<16|E[1191]<<24);c=E[1184]|E[1185]<<8|(E[1186]<<16|E[1187]<<24);B[b+8|0]=c;B[b+9|0]=c>>>8;B[b+10|0]=c>>>16;B[b+11|0]=c>>>24;B[b+12|0]=d;B[b+13|0]=d>>>8;B[b+14|0]=d>>>16;B[b+15|0]=d>>>24;d=E[1180]|E[1181]<<8|(E[1182]<<16|E[1183]<<24);c=E[1176]|E[1177]<<8|(E[1178]<<16|E[1179]<<24);B[b|0]=c;B[b+1|0]=c>>>8;B[b+2|0]=c>>>16;B[b+3|0]=c>>>24;B[b+4|0]=d;B[b+5|0]=d>>>8;B[b+6|0]=d>>>16;B[b+7|0]=d>>>24;k=$-48|0;$=k;m=a;f=a+16|0;d=D[f>>2];a:{b:{if(!d){break b}b=D[o+12>>2];a=f;while(1){c=(b|0)>D[d+16>>2];a=c?a:d;d=D[(c?d+4|0:d)>>2];if(d){continue}break}if((a|0)==(f|0)){break b}if((b|0)>=D[a+16>>2]){break a}}u=k+24|0;a=u;D[a+4>>2]=0;D[a+8>>2]=0;v=a+4|0;D[a>>2]=v;b=D[o+12>>2];p=k+16|0;a=p;D[a>>2]=0;D[a+4>>2]=0;D[k+8>>2]=b;D[k+12>>2]=a;s=k+8|4;d=D[u>>2];if((v|0)!=(d|0)){while(1){g=d+16|0;q=$-16|0;$=q;b=q+8|0;c:{d:{e:{f:{g:{h:{i:{c=p;e=s+4|0;j:{if((c|0)==(e|0)){break j}a=E[c+27|0];h=a<<24>>24<0;j=E[g+11|0];n=j<<24>>24;i=(n|0)<0;a=h?D[c+20>>2]:a;j=i?D[g+4>>2]:j;l=a>>>0<j>>>0;r=l?a:j;if(r){i=i?D[g>>2]:g;t=c+16|0;h=h?D[t>>2]:t;t=ua(i,h,r);if(!t){if(a>>>0>j>>>0){break j}break i}if((t|0)>=0){break i}break j}if(a>>>0<=j>>>0){break h}}h=D[c>>2];k:{b=c;l:{if((b|0)==D[s>>2]){break l}m:{if(!h){a=c;while(1){b=D[a+8>>2];j=D[b>>2]==(a|0);a=b;if(j){continue}break}break m}a=h;while(1){b=a;a=D[a+4>>2];if(a){continue}break}}j=E[g+11|0];l=j<<24>>24;a=(l|0)<0;i=E[b+27|0];n=i<<24>>24<0;n:{j=a?D[g+4>>2]:j;i=n?D[b+20>>2]:i;r=j>>>0<i>>>0?j:i;if(r){t=b+16|0;a=ua(n?D[t>>2]:t,a?D[g>>2]:g,r);if(a){break n}}if(j>>>0>i>>>0){break l}break k}if((a|0)>=0){break k}}if(!h){D[q+12>>2]=c;b=c;break c}D[q+12>>2]=b;b=b+4|0;break c}a=D[e>>2];if(!a){D[q+12>>2]=e;b=e;break c}h=(l|0)<0?D[g>>2]:g;c=e;while(1){b=a;n=E[a+27|0];e=n<<24>>24<0;a=e?D[a+20>>2]:n;n=a>>>0<j>>>0;o:{p:{q:{r:{i=n?a:j;s:{if(i){l=b+16|0;e=e?D[l>>2]:l;l=ua(h,e,i);if(!l){if(a>>>0>j>>>0){break s}break r}if((l|0)>=0){break r}break s}if(a>>>0<=j>>>0){break q}}c=b;a=D[b>>2];if(a){continue}break e}a=ua(e,h,i);if(a){break p}}if(n){break o}break e}if((a|0)>=0){break e}}c=b+4|0;a=D[b+4>>2];if(a){continue}break}break e}a=ua(h,i,r);if(a){break g}}if(l){break f}break d}if((a|0)>=0){break d}}h=D[c+4>>2];t:{if(!h){a=c;while(1){b=D[a+8>>2];i=D[b>>2]!=(a|0);a=b;if(i){continue}break}break t}a=h;while(1){b=a;a=D[a>>2];if(a){continue}break}}u:{v:{if((b|0)==(e|0)){break v}i=E[b+27|0];a=i<<24>>24<0;w:{i=a?D[b+20>>2]:i;l=j>>>0>i>>>0?i:j;if(l){r=b+16|0;a=ua((n|0)<0?D[g>>2]:g,a?D[r>>2]:r,l);if(a){break w}}if(j>>>0<i>>>0){break v}break u}if((a|0)>=0){break u}}if(!h){D[q+12>>2]=c;b=c+4|0;break c}D[q+12>>2]=b;break c}a=D[e>>2];if(!a){D[q+12>>2]=e;b=e;break c}h=(n|0)<0?D[g>>2]:g;c=e;while(1){b=a;n=E[a+27|0];e=n<<24>>24<0;a=e?D[a+20>>2]:n;n=a>>>0<j>>>0;x:{y:{z:{A:{i=n?a:j;B:{if(i){l=b+16|0;e=e?D[l>>2]:l;l=ua(h,e,i);if(!l){if(a>>>0>j>>>0){break B}break A}if((l|0)>=0){break A}break B}if(a>>>0<=j>>>0){break z}}c=b;a=D[b>>2];if(a){continue}break e}a=ua(e,h,i);if(a){break y}}if(n){break x}break e}if((a|0)>=0){break e}}c=b+4|0;a=D[b+4>>2];if(a){continue}break}}D[q+12>>2]=b;b=c;break c}D[q+12>>2]=c;D[b>>2]=c}c=D[b>>2];if(c){a=0}else{c=na(40);a=c+16|0;C:{if(B[g+11|0]>=0){e=D[g+4>>2];D[a>>2]=D[g>>2];D[a+4>>2]=e;D[a+8>>2]=D[g+8>>2];break C}ta(a,D[g>>2],D[g+4>>2])}a=c+28|0;D:{if(B[g+23|0]>=0){e=D[g+16>>2];D[a>>2]=D[g+12>>2];D[a+4>>2]=e;D[a+8>>2]=D[g+20>>2];break D}ta(a,D[g+12>>2],D[g+16>>2])}D[c+8>>2]=D[q+12>>2];D[c>>2]=0;D[c+4>>2]=0;D[b>>2]=c;a=c;e=D[D[s>>2]>>2];if(e){D[s>>2]=e;a=D[b>>2]}pb(D[s+4>>2],a);D[s+8>>2]=D[s+8>>2]+1;a=1}B[k+44|0]=a;D[k+40>>2]=c;$=q+16|0;a=D[d+4>>2];E:{if(a){while(1){d=a;a=D[a>>2];if(a){continue}break E}}while(1){a=d;d=D[d+8>>2];if((a|0)!=D[d>>2]){continue}break}}if((d|0)!=(v|0)){continue}break}b=D[k+8>>2]}d=f;a=D[d>>2];F:{G:{if(!a){break G}while(1){d=a;a=D[a+16>>2];if((a|0)>(b|0)){f=d;a=D[d>>2];if(a){continue}break G}if((a|0)>=(b|0)){a=d;break F}a=D[d+4>>2];if(a){continue}break}f=d+4|0}a=na(32);D[a+16>>2]=b;D[a+20>>2]=D[k+12>>2];b=a+24|0;c=D[k+16>>2];D[b>>2]=c;e=D[k+20>>2];D[a+28>>2]=e;H:{if(!e){D[a+20>>2]=b;break H}D[c+8>>2]=b;D[k+16>>2]=0;D[k+20>>2]=0;D[k+12>>2]=p}D[a+8>>2]=d;D[a>>2]=0;D[a+4>>2]=0;D[f>>2]=a;d=a;b=D[D[m+12>>2]>>2];if(b){D[m+12>>2]=b;d=D[f>>2]}pb(D[m+16>>2],d);D[m+20>>2]=D[m+20>>2]+1}kb(s,D[k+16>>2]);kb(u,D[u+4>>2])}$=k+48|0;e=$-48|0;$=e;f=$-32|0;$=f;d=f+21|0;h=f+32|0;c=h;I:{if((d|0)==(c|0)){break I}}b=c-d|0;J:{if((b|0)<=9){p=61;if((b|0)<(G[2736]<=1|0)){break J}}B[d|0]=49;c=d+1|0;p=0}D[f+12>>2]=p;D[f+8>>2]=c;p=$-16|0;$=p;b=e+8|0;m=$-16|0;$=m;K:{g=D[f+8>>2];f=g-d|0;if(f>>>0<=4294967279){L:{if(f>>>0<11){B[b+11|0]=f;c=b;break L}if(f>>>0>=11){k=f+16&-16;c=k-1|0;c=(c|0)==11?k:c}else{c=10}k=c+1|0;c=na(k);D[b>>2]=c;D[b+8>>2]=k|-2147483648;D[b+4>>2]=f}while(1){if((d|0)!=(g|0)){B[c|0]=E[d|0];c=c+1|0;d=d+1|0;continue}break}B[m+15|0]=0;B[c|0]=E[m+15|0];$=m+16|0;break K}Ca();T()}$=p+16|0;$=h;D[e+32>>2]=o;M:{N:{c=a+20|0;a=D[c+4>>2];O:{if(!a){b=c+4|0;d=b;break O}b=E[o+11|0];d=b<<24>>24<0;m=d?D[o>>2]:o;f=d?D[o+4>>2]:b;while(1){d=a;h=E[a+27|0];b=h<<24>>24<0;a=b?D[a+20>>2]:h;h=a>>>0<f>>>0;P:{Q:{R:{S:{p=h?a:f;T:{if(p){g=d+16|0;b=b?D[g>>2]:g;g=ua(m,b,p);if(!g){if(a>>>0>f>>>0){break T}break S}if((g|0)>=0){break S}break T}if(a>>>0<=f>>>0){break R}}b=d;a=D[b>>2];if(a){continue}break O}a=ua(b,m,p);if(a){break Q}}if(h){break P}break N}if((a|0)>=0){break N}}a=D[d+4>>2];if(a){continue}break}b=d+4|0}a=na(40);m=a+16|0;f=D[e+32>>2];U:{if(B[f+11|0]>=0){h=D[f+4>>2];D[m>>2]=D[f>>2];D[m+4>>2]=h;D[m+8>>2]=D[f+8>>2];break U}ta(m,D[f>>2],D[f+4>>2])}D[a+8>>2]=d;D[a>>2]=0;D[a+4>>2]=0;D[a+36>>2]=0;D[a+28>>2]=0;D[a+32>>2]=0;D[b>>2]=a;d=a;f=D[D[c>>2]>>2];if(f){D[c>>2]=f;d=D[b>>2]}pb(D[c+4>>2],d);D[c+8>>2]=D[c+8>>2]+1;b=1;break M}a=d;b=0}B[e+44|0]=b;D[e+40>>2]=a;a=D[e+40>>2];if(B[a+39|0]<0){ma(D[a+28>>2])}b=D[e+12>>2];D[a+28>>2]=D[e+8>>2];D[a+32>>2]=b;D[a+36>>2]=D[e+16>>2];$=e+48|0;if(B[o+11|0]<0){ma(D[o>>2])}$=o+16|0}function nb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;a:{b:{if(!d){break b}c:{d:{switch(D[a+28>>2]-1|0){case 0:i=1;e:{e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)<=0){break e}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+f|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=B[b|0];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break e}b=b+1|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(B[b|0])/K(127);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break e}b=b+1|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 1:i=1;f:{e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)<=0){break f}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+f|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=E[b|0];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break f}b=b+1|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(E[b|0])/K(255);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break f}b=b+1|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 2:i=1;g:{e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)<=0){break g}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+f|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=C[b>>1];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break g}b=b+2|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(C[b>>1])/K(32767);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break g}b=b+2|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 3:i=1;h:{e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)<=0){break h}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+f|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=F[b>>1];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break h}b=b+2|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(F[b>>1])/K(65535);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break h}b=b+2|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 4:i=1;i:{e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)<=0){break i}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+f|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=D[b>>2];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break i}b=b+4|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(D[b>>2])*K(4.656612873077393e-10);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break i}b=b+4|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 5:i=1;j:{e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)<=0){break j}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+f|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=G[b>>2];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break j}b=b+4|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(G[b>>2])*K(2.3283064365386963e-10);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break j}b=b+4|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 6:i=1;k:{e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)<=0){break k}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+f|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=+G[b>>2]+ +D[b+4>>2]*4294967296;f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break k}b=b+8|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(+G[b>>2]+ +D[b+4>>2]*4294967296)*K(10842021724855044e-35);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break k}b=b+8|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 7:i=1;l:{e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)<=0){break l}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+f|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=+G[b>>2]+ +G[b+4>>2]*4294967296;f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break l}b=b+8|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(+G[b>>2]+ +G[b+4>>2]*4294967296)*K(5.421010862427522e-20);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)>(e|0)?e:c)|0)){break l}b=b+8|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 8:i=1;f=B[a+24|0];if((((c|0)>(f|0)?f:c)|0)>0){g=D[a>>2];f=D[g>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;g=D[g+4>>2];while(1){if(b>>>0>=g>>>0){break a}H[(e<<2)+d>>2]=H[b>>2];b=b+4|0;e=e+1|0;f=B[a+24|0];if((e|0)<(((c|0)>(f|0)?f:c)|0)){continue}break}}if((c|0)<=(f|0)){break b}c=c-f|0;a=(f<<2)+d|0;break c;case 9:i=1;f=B[a+24|0];if((((c|0)>(f|0)?f:c)|0)>0){g=D[a>>2];f=D[g>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;g=D[g+4>>2];while(1){if(b>>>0>=g>>>0){break a}H[(e<<2)+d>>2]=I[b>>3];b=b+8|0;e=e+1|0;f=B[a+24|0];if((e|0)<(((c|0)>(f|0)?f:c)|0)){continue}break}}if((c|0)<=(f|0)){break b}c=c-f|0;a=(f<<2)+d|0;break c;case 10:break d;default:break b}}i=1;f=B[a+24|0];if((((c|0)>(f|0)?f:c)|0)>0){g=D[a>>2];f=D[g>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;while(1){if(G[g+4>>2]<=b>>>0){break a}H[(e<<2)+d>>2]=E[b|0]?K(1):K(0);b=b+1|0;e=e+1|0;f=B[a+24|0];if((e|0)<(((c|0)>(f|0)?f:c)|0)){continue}break}}if((c|0)<=(f|0)){break b}c=c-f|0;a=(f<<2)+d|0}qa(a,0,c<<2)}return i}return 0}function $d(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0,N=0;g=$+-64|0;$=g;D[a+8>>2]=e;x=a+32|0;f=D[x>>2];d=D[a+36>>2]-f>>2;a:{b:{if(d>>>0<e>>>0){ra(x,e-d|0);D[g+56>>2]=0;D[g+60>>2]=0;D[g+48>>2]=0;D[g+52>>2]=0;D[g+40>>2]=0;D[g+44>>2]=0;D[g+32>>2]=0;D[g+36>>2]=0;D[g+24>>2]=0;D[g+28>>2]=0;D[g+16>>2]=0;D[g+20>>2]=0;D[g>>2]=0;break b}if(d>>>0>e>>>0){D[a+36>>2]=f+(e<<2)}D[g+56>>2]=0;D[g+60>>2]=0;D[g+48>>2]=0;D[g+52>>2]=0;D[g+40>>2]=0;D[g+44>>2]=0;D[g+32>>2]=0;D[g+36>>2]=0;D[g+24>>2]=0;D[g+28>>2]=0;D[g+16>>2]=0;D[g+20>>2]=0;D[g>>2]=0;d=0;if(!e){break a}}xa(g+16|0,e,g);h=D[g+28>>2];d=D[g+32>>2]}D[g>>2]=0;d=d-h>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}D[g+32>>2]=(e<<2)+h;break c}xa(g+16|12,e-d|0,g)}D[g>>2]=0;f=D[g+40>>2];d=D[g+44>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}D[g+44>>2]=f+(e<<2);break d}xa(g+40|0,e-d|0,g)}D[g>>2]=0;f=D[g+52>>2];d=D[g+56>>2]-f>>2;e:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break e}D[g+56>>2]=f+(e<<2);break e}xa(g+52|0,e-d|0,g)}f:{if(D[a+8>>2]<=0){break f}i=D[g+16>>2];j=D[a+32>>2];h=0;while(1){d=h<<2;f=D[d+i>>2];n=D[a+16>>2];g:{if((f|0)>(n|0)){D[d+j>>2]=n;break g}d=d+j|0;n=D[a+12>>2];if((n|0)>(f|0)){D[d>>2]=n;break g}D[d>>2]=f}h=h+1|0;d=D[a+8>>2];if((h|0)<(d|0)){continue}break}if((d|0)<=0){break f}d=0;while(1){i=d<<2;f=i+c|0;i=D[b+i>>2]+D[j+i>>2]|0;D[f>>2]=i;h:{if((i|0)>D[a+16>>2]){i=i-D[a+20>>2]|0}else{if((i|0)>=D[a+12>>2]){break h}i=i+D[a+20>>2]|0}D[f>>2]=i}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}G=D[a+52>>2];q=D[a+48>>2];y=na(16);d=y;D[d>>2]=0;D[d+4>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;i:{if(e){if(e>>>0>=1073741824){break i}d=e<<2;s=na(d);D[g>>2]=s;D[g+8>>2]=d+s;qa(s,0,d)}d=D[a+56>>2];A=D[d>>2];d=D[d+4>>2]-A|0;j:{if((d|0)<5){break j}u=d>>2;H=(u|0)>2?u:2;I=u>>>0>1?u:1;B=e&-2;C=e&1;K=e&-4;E=e&3;z=e-1|0;L=e<<2;F=1;n=1;while(1){k:{l:{m:{n:{if((n|0)!=(I|0)){o:{p:{f=D[(n<<2)+A>>2];if((f|0)==-1){break p}k=1;d=f+2|0;j=(f>>>0)%3|0;v=j?f-1|0:d;o=1<<v;t=v>>>5|0;i=0;M=(j|0)!=0|(d|0)!=-1;N=D[q>>2];d=f;q:{while(1){r:{if(D[(d>>>3&536870908)+N>>2]>>>d&1){break r}j=D[D[D[q+64>>2]+12>>2]+(d<<2)>>2];if((j|0)==-1){break r}m=D[G>>2];h=D[q+28>>2];r=D[m+(D[h+(j<<2)>>2]<<2)>>2];if((r|0)>=(n|0)){break r}l=j+1|0;l=D[m+(D[h+(((l>>>0)%3|0?l:j-2|0)<<2)>>2]<<2)>>2];if((l|0)>=(n|0)){break r}h=D[m+(D[h+(j+((j>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((h|0)>=(n|0)){break r}s:{if(!e){break s}j=D[(g+16|0)+J(i,12)>>2];m=J(e,h);l=J(e,l);r=J(e,r);h=0;w=0;if(z){while(1){D[j+(h<<2)>>2]=(D[(h+m<<2)+c>>2]+D[(h+l<<2)+c>>2]|0)-D[(h+r<<2)+c>>2];p=h|1;D[j+(p<<2)>>2]=(D[(m+p<<2)+c>>2]+D[(l+p<<2)+c>>2]|0)-D[(r+p<<2)+c>>2];h=h+2|0;w=w+2|0;if((B|0)!=(w|0)){continue}break}}if(!C){break s}D[j+(h<<2)>>2]=(D[(h+m<<2)+c>>2]+D[(h+l<<2)+c>>2]|0)-D[(h+r<<2)+c>>2]}j=4;i=i+1|0;if((i|0)==4){break q}}t:{if(k&1){h=d-2|0;j=d+1|0;d=-1;j=(j>>>0)%3|0?j:h;if((j|0)==-1|D[D[q>>2]+(j>>>3&536870908)>>2]>>>j&1){break t}j=D[D[D[q+64>>2]+12>>2]+(j<<2)>>2];if((j|0)==-1){break t}d=j+1|0;d=(d>>>0)%3|0?d:j-2|0;break t}u:{if((d>>>0)%3|0){h=d-1|0;break u}h=d+2|0;d=-1;if((h|0)==-1){break t}}d=-1;if(D[D[q>>2]+(h>>>3&536870908)>>2]>>>h&1){break t}j=D[D[D[q+64>>2]+12>>2]+(h<<2)>>2];if((j|0)==-1){break t}if((j>>>0)%3|0){d=j-1|0;break t}d=j+2|0}v:{if((d|0)==(f|0)){break v}if(!((k^1)&1|(d|0)!=-1)){if(!M|o&D[D[q>>2]+(t<<2)>>2]){break v}d=D[D[D[q+64>>2]+12>>2]+(v<<2)>>2];if((d|0)==-1){break v}k=0;d=(d>>>0)%3|0?d-1|0:d+2|0}if((d|0)!=-1){continue}}break}j=i;if((j|0)<=0){break p}}if(e){qa(s,0,L)}d=j-1|0;r=(d<<2)+y|0;d=J(d,12)+a|0;v=d;w=D[d- -64>>2];k=0;d=D[g>>2];f=0;while(1){i=D[r>>2];D[r>>2]=i+1;if(i>>>0>=w>>>0){break j}w:{if(D[D[v+60>>2]+(i>>>3&536870908)>>2]>>>i&1){break w}f=f+1|0;if(!e){break w}m=D[(g+16|0)+J(k,12)>>2];i=0;h=0;p=0;if(z>>>0>=3){while(1){l=h<<2;o=l+d|0;D[o>>2]=D[o>>2]+D[m+l>>2];o=l|4;t=o+d|0;D[t>>2]=D[t>>2]+D[m+o>>2];o=l|8;t=o+d|0;D[t>>2]=D[t>>2]+D[m+o>>2];l=l|12;o=l+d|0;D[o>>2]=D[o>>2]+D[m+l>>2];h=h+4|0;p=p+4|0;if((K|0)!=(p|0)){continue}break}}if(!E){break w}while(1){l=h<<2;p=l+d|0;D[p>>2]=D[p>>2]+D[m+l>>2];h=h+1|0;i=i+1|0;if((E|0)!=(i|0)){continue}break}}k=k+1|0;if((k|0)!=(j|0)){continue}break}i=J(e,n);if(!f){break o}if(!e){break l}h=0;d=0;if(z){break n}break m}i=J(e,n)}if(D[a+8>>2]<=0){break k}k=(J(n-1|0,e)<<2)+c|0;j=D[x>>2];h=0;while(1){d=h<<2;f=D[d+k>>2];m=D[a+16>>2];x:{if((f|0)>(m|0)){D[d+j>>2]=m;break x}d=d+j|0;m=D[a+12>>2];if((m|0)>(f|0)){D[d>>2]=m;break x}D[d>>2]=f}h=h+1|0;f=D[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<=0){break k}f=i<<2;h=f+c|0;k=b+f|0;while(1){i=d<<2;f=i+h|0;i=D[i+k>>2]+D[j+i>>2]|0;D[f>>2]=i;y:{if((i|0)>D[a+16>>2]){i=i-D[a+20>>2]|0}else{if((i|0)>=D[a+12>>2]){break y}i=i+D[a+20>>2]|0}D[f>>2]=i}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}break k}va();T()}while(1){j=h<<2;k=j+s|0;D[k>>2]=D[k>>2]/(f|0);j=(j|4)+s|0;D[j>>2]=D[j>>2]/(f|0);h=h+2|0;d=d+2|0;if((B|0)!=(d|0)){continue}break}}if(!C){break l}d=(h<<2)+s|0;D[d>>2]=D[d>>2]/(f|0)}if(D[a+8>>2]<=0){break k}j=D[x>>2];h=0;while(1){d=h<<2;f=D[d+s>>2];k=D[a+16>>2];z:{if((f|0)>(k|0)){D[d+j>>2]=k;break z}d=d+j|0;k=D[a+12>>2];if((k|0)>(f|0)){D[d>>2]=k;break z}D[d>>2]=f}h=h+1|0;f=D[a+8>>2];if((h|0)<(f|0)){continue}break}d=0;if((f|0)<=0){break k}f=i<<2;h=f+c|0;k=b+f|0;while(1){i=d<<2;f=i+h|0;i=D[i+k>>2]+D[j+i>>2]|0;D[f>>2]=i;A:{if((i|0)>D[a+16>>2]){i=i-D[a+20>>2]|0}else{if((i|0)>=D[a+12>>2]){break A}i=i+D[a+20>>2]|0}D[f>>2]=i}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}n=n+1|0;F=(u|0)>(n|0);if((n|0)!=(H|0)){continue}break}}a=D[g>>2];if(a){ma(a)}ma(y);a=D[g+52>>2];if(a){D[g+56>>2]=a;ma(a)}a=D[g+40>>2];if(a){D[g+44>>2]=a;ma(a)}a=D[g+28>>2];if(a){D[g+32>>2]=a;ma(a)}a=D[g+16>>2];if(a){D[g+20>>2]=a;ma(a)}$=g- -64|0;return(F^-1)&1}pa();T()}function wd(a,b){var 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;f=$-32|0;$=f;k=D[D[a+4>>2]+44>>2];d=D[a+8>>2];h=D[d>>2];d=D[d+4>>2];D[f+24>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;e=(d-h>>2>>>0)/3|0;d=D[k+96>>2];g=(D[k+100>>2]-d|0)/12|0;a:{if(e>>>0>g>>>0){j=e-g|0;c=D[k+104>>2];h=D[k+100>>2];if(j>>>0<=(c-h|0)/12>>>0){b:{if(!j){break b}d=J(j,12);j=d;e=d-12|0;g=((e>>>0)/12|0)+1&3;c:{if(!g){d=h;break c}d=h;while(1){c=D[f+20>>2];D[d>>2]=D[f+16>>2];D[d+4>>2]=c;D[d+8>>2]=D[f+24>>2];d=d+12|0;i=i+1|0;if((g|0)!=(i|0)){continue}break}}h=h+j|0;if(e>>>0<36){break b}while(1){c=D[f+20>>2];D[d>>2]=D[f+16>>2];D[d+4>>2]=c;D[d+8>>2]=D[f+24>>2];D[d+20>>2]=D[f+24>>2];c=D[f+20>>2];D[d+12>>2]=D[f+16>>2];D[d+16>>2]=c;D[d+32>>2]=D[f+24>>2];c=D[f+20>>2];D[d+24>>2]=D[f+16>>2];D[d+28>>2]=c;c=D[f+20>>2];D[d+36>>2]=D[f+16>>2];D[d+40>>2]=c;D[d+44>>2]=D[f+24>>2];d=d+48|0;if((h|0)!=(d|0)){continue}break}}D[k+100>>2]=h;break a}d:{d=D[k+96>>2];g=(h-d|0)/12|0;e=g+j|0;if(e>>>0<357913942){c=(c-d|0)/12|0;d=c<<1;l=c>>>0<178956970?d>>>0>e>>>0?d:e:357913941;if(l){if(l>>>0>=357913942){break d}o=na(J(l,12))}c=J(g,12)+o|0;d=c;m=J(j,12);j=m-12|0;e=((j>>>0)/12|0)+1&3;if(e){d=c;while(1){g=D[f+20>>2];D[d>>2]=D[f+16>>2];D[d+4>>2]=g;D[d+8>>2]=D[f+24>>2];d=d+12|0;i=i+1|0;if((e|0)!=(i|0)){continue}break}}e=c+m|0;if(j>>>0>=36){while(1){g=D[f+20>>2];D[d>>2]=D[f+16>>2];D[d+4>>2]=g;D[d+8>>2]=D[f+24>>2];D[d+20>>2]=D[f+24>>2];g=D[f+20>>2];D[d+12>>2]=D[f+16>>2];D[d+16>>2]=g;D[d+32>>2]=D[f+24>>2];g=D[f+20>>2];D[d+24>>2]=D[f+16>>2];D[d+28>>2]=g;g=D[f+20>>2];D[d+36>>2]=D[f+16>>2];D[d+40>>2]=g;D[d+44>>2]=D[f+24>>2];d=d+48|0;if((e|0)!=(d|0)){continue}break}}g=D[k+96>>2];h=h-g|0;d=c+J((h|0)/-12|0,12)|0;if((h|0)>0){oa(d,g,h)}D[k+104>>2]=J(l,12)+o;D[k+100>>2]=e;D[k+96>>2]=d;if(g){ma(g)}break a}pa();T()}sa();T()}if(e>>>0>=g>>>0){break a}D[k+100>>2]=d+J(e,12)}e:{if(D[a+216>>2]==D[a+220>>2]){e=D[a+4>>2];h=D[e+44>>2];d=D[h+100>>2];m=D[h+96>>2];if((d|0)!=(m|0)){d=(d-m|0)/12|0;g=d>>>0>1?d:1;c=0;while(1){k=D[a+8>>2];h=m+J(c,12)|0;l=J(c,3);f:{g:{if((l|0)==-1){i=D[(D[k>>2]+(l<<2)|0)+4>>2];n=-1;d=1;break g}i=-1;n=D[D[k>>2]+(l<<2)>>2];d=l+1|0;if((d|0)==-1){d=0;break g}i=D[D[k>>2]+(d<<2)>>2];d=l+2|0;j=-1;if((d|0)==-1){break f}}j=D[D[k>>2]+(d<<2)>>2]}D[h+8>>2]=j;D[h+4>>2]=i;D[h>>2]=n;c=c+1|0;if((g|0)!=(c|0)){continue}break}}D[D[e+4>>2]+80>>2]=b;c=1;break e}h=0;D[f+24>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;o=D[a+8>>2];c=D[o>>2];d=D[o+4>>2];D[f+8>>2]=0;D[f>>2]=0;D[f+4>>2]=0;b=0;h:{i:{j:{k:{l:{m:{if((d|0)!=(c|0)){d=d-c|0;if((d|0)<0){break m}b=na(d);D[f>>2]=b;D[f+8>>2]=(d>>2<<2)+b;u=f,v=qa(b,0,d)+d|0,D[u+4>>2]=v}c=D[o+24>>2];if((D[o+28>>2]-c|0)<=0){break i}d=0;while(1){g=D[(q<<2)+c>>2];n:{if((g|0)==-1){break n}o:{if(D[D[a+120>>2]+(q>>>3&536870908)>>2]>>>q&1){break o}s=D[a+216>>2];c=D[a+220>>2];if((s|0)==(c|0)){break o}i=g+2|0;e=(g>>>0)%3|0;t=e?g-1|0:i;c=(c-s|0)/144|0;k=c>>>0>1?c:1;r=0;l=(e|0)!=0|(i|0)!=-1;while(1){e=g<<2;i=J(r,144)+s|0;c=D[e+D[D[i+68>>2]>>2]>>2];p:{if(!(D[D[i+16>>2]+(c>>>3&536870908)>>2]>>>c&1)){break p}c=-1;q:{if(!l){break q}j=D[D[o+12>>2]+(t<<2)>>2];c=-1;if((j|0)==-1){break q}c=j-1|0;if((j>>>0)%3|0){break q}c=j+2|0}if((g|0)==(c|0)){break p}m=D[i+32>>2];j=D[m+e>>2];while(1){i=0;if((c|0)==-1){break h}if((j|0)!=D[m+(c<<2)>>2]){g=c;break o}r:{s:{if((c>>>0)%3|0){i=c-1|0;break s}i=c+2|0;e=-1;if((i|0)==-1){break r}}c=D[D[o+12>>2]+(i<<2)>>2];e=-1;if((c|0)==-1){break r}e=c-1|0;if((c>>>0)%3|0){break r}e=c+2|0}c=e;if((g|0)!=(c|0)){continue}break}}r=r+1|0;if((k|0)!=(r|0)){continue}break}}j=n-d|0;i=j>>2;D[(g<<2)+b>>2]=i;t:{if(n>>>0<p>>>0){D[n>>2]=g;n=n+4|0;D[f+20>>2]=n;break t}e=i+1|0;if(e>>>0>=1073741824){break l}c=p-d|0;h=c>>1;e=c>>>0<2147483644?e>>>0<h>>>0?h:e:1073741823;if(e){if(e>>>0>=1073741824){break k}h=na(e<<2)}else{h=0}c=h+(i<<2)|0;D[c>>2]=g;p=(e<<2)+h|0;n=c+4|0;if((j|0)>0){oa(h,d,j)}D[f+24>>2]=p;D[f+20>>2]=n;D[f+16>>2]=h;if(d){ma(d);o=D[a+8>>2]}d=h}if((g|0)==-1){break n}u:{if((g>>>0)%3|0){c=g-1|0;break u}c=g+2|0;if((c|0)==-1){break n}}c=D[D[o+12>>2]+(c<<2)>>2];if((c|0)==-1){break n}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break n}i=g;if((g|0)==(c|0)){break n}while(1){e=c;v:{w:{c=D[a+220>>2];k=D[a+216>>2];if((c|0)==(k|0)){break w}c=(c-k|0)/144|0;l=c>>>0>1?c:1;c=0;while(1){m=D[(k+J(c,144)|0)+32>>2];j=e<<2;if(D[m+j>>2]==D[m+(i<<2)>>2]){c=c+1|0;if((l|0)!=(c|0)){continue}break w}break}d=b+j|0;m=n-h|0;j=m>>2;D[d>>2]=j;if(n>>>0<p>>>0){D[n>>2]=e;n=n+4|0;D[f+20>>2]=n;d=h;break v}i=j+1|0;if(i>>>0>=1073741824){break j}c=p-h|0;d=c>>1;i=c>>>0<2147483644?d>>>0>i>>>0?d:i:1073741823;if(i){if(i>>>0>=1073741824){break k}d=na(i<<2)}else{d=0}c=d+(j<<2)|0;D[c>>2]=e;p=(i<<2)+d|0;n=c+4|0;if((m|0)>0){oa(d,h,m)}D[f+24>>2]=p;D[f+20>>2]=n;D[f+16>>2]=d;if(!h){h=d;break v}ma(h);o=D[a+8>>2];h=d;break v}D[(e<<2)+b>>2]=D[(i<<2)+b>>2]}if((e|0)==-1){break n}x:{if((e>>>0)%3|0){c=e-1|0;break x}c=e+2|0;if((c|0)==-1){break n}}c=D[D[o+12>>2]+(c<<2)>>2];if((c|0)==-1){break n}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break n}i=e;if((c|0)!=(g|0)){continue}break}}q=q+1|0;c=D[o+24>>2];if((q|0)<D[o+28>>2]-c>>2){continue}break}break i}pa();T()}pa();T()}sa();T()}pa();T()}m=D[a+4>>2];d=D[m+44>>2];a=D[d+100>>2];k=D[d+96>>2];y:{if((a|0)==(k|0)){break y}d=(a-k|0)/12|0;a=d>>>0>1?d:1;j=a&1;c=0;if(d>>>0>=2){i=a&-2;d=0;while(1){e=J(c,12);l=e+b|0;g=D[l+4>>2];a=D[l>>2];e=e+k|0;D[e+8>>2]=D[l+8>>2];D[e>>2]=a;D[e+4>>2]=g;e=J(c|1,12);l=e+b|0;g=D[l+4>>2];a=D[l>>2];e=e+k|0;D[e+8>>2]=D[l+8>>2];D[e>>2]=a;D[e+4>>2]=g;c=c+2|0;d=d+2|0;if((i|0)!=(d|0)){continue}break}}if(!j){break y}c=J(c,12);g=c+b|0;d=D[g+4>>2];a=D[g>>2];c=c+k|0;D[c+8>>2]=D[g+8>>2];D[c>>2]=a;D[c+4>>2]=d}D[D[m+4>>2]+80>>2]=n-h>>2;i=1}c=i;if(b){ma(b)}if(!h){break e}D[f+20>>2]=h;ma(h)}$=f+32|0;return c}
- function Xh(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,K=0,L=0;h=$+-64|0;$=h;D[a+8>>2]=e;w=a+32|0;f=D[w>>2];d=D[a+36>>2]-f>>2;a:{b:{if(d>>>0<e>>>0){ra(w,e-d|0);D[h+56>>2]=0;D[h+60>>2]=0;D[h+48>>2]=0;D[h+52>>2]=0;D[h+40>>2]=0;D[h+44>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;D[h+24>>2]=0;D[h+28>>2]=0;D[h+16>>2]=0;D[h+20>>2]=0;D[h>>2]=0;break b}if(d>>>0>e>>>0){D[a+36>>2]=f+(e<<2)}D[h+56>>2]=0;D[h+60>>2]=0;D[h+48>>2]=0;D[h+52>>2]=0;D[h+40>>2]=0;D[h+44>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;D[h+24>>2]=0;D[h+28>>2]=0;D[h+16>>2]=0;D[h+20>>2]=0;D[h>>2]=0;d=0;if(!e){break a}}xa(h+16|0,e,h);i=D[h+28>>2];d=D[h+32>>2]}D[h>>2]=0;d=d-i>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}D[h+32>>2]=(e<<2)+i;break c}xa(h+16|12,e-d|0,h)}D[h>>2]=0;f=D[h+40>>2];d=D[h+44>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}D[h+44>>2]=f+(e<<2);break d}xa(h+40|0,e-d|0,h)}D[h>>2]=0;f=D[h+52>>2];d=D[h+56>>2]-f>>2;e:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break e}D[h+56>>2]=f+(e<<2);break e}xa(h+52|0,e-d|0,h)}f:{if(D[a+8>>2]<=0){break f}g=D[h+16>>2];j=D[a+32>>2];i=0;while(1){d=i<<2;f=D[d+g>>2];m=D[a+16>>2];g:{if((f|0)>(m|0)){D[d+j>>2]=m;break g}d=d+j|0;m=D[a+12>>2];if((m|0)>(f|0)){D[d>>2]=m;break g}D[d>>2]=f}i=i+1|0;d=D[a+8>>2];if((i|0)<(d|0)){continue}break}if((d|0)<=0){break f}d=0;while(1){g=d<<2;f=g+c|0;g=D[b+g>>2]+D[g+j>>2]|0;D[f>>2]=g;h:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break h}g=g+D[a+20>>2]|0}D[f>>2]=g}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}G=D[a+52>>2];z=D[a+48>>2];x=na(16);d=x;D[d>>2]=0;D[d+4>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;D[h+8>>2]=0;D[h>>2]=0;D[h+4>>2]=0;i:{if(e){if(e>>>0>=1073741824){break i}d=e<<2;t=na(d);D[h>>2]=t;D[h+8>>2]=d+t;qa(t,0,d)}d=D[a+56>>2];A=D[d>>2];d=D[d+4>>2]-A|0;j:{if((d|0)<5){break j}v=d>>2;H=(v|0)>2?v:2;I=v>>>0>1?v:1;B=e&-2;C=e&1;K=e&-4;E=e&3;y=e-1|0;L=e<<2;F=1;m=1;while(1){k:{l:{m:{n:{if((m|0)!=(I|0)){o:{p:{f=D[(m<<2)+A>>2];if((f|0)==-1){break p}n=D[z+12>>2];d=f+2|0;g=(f>>>0)%3|0;q=n+((g?f-1|0:d)<<2)|0;j=0;u=(g|0)!=0|(d|0)!=-1;k=1;d=f;q:{while(1){g=D[n+(d<<2)>>2];r:{if((g|0)==-1){break r}l=-1;p=D[G>>2];r=D[z>>2];i=p+(D[r+(g<<2)>>2]<<2)|0;o=g+1|0;o=(o>>>0)%3|0?o:g-2|0;if((o|0)!=-1){l=D[r+(o<<2)>>2]}o=D[i>>2];s:{t:{if((g>>>0)%3|0){i=g-1|0;break t}i=g+2|0;s=-1;if((i|0)==-1){break s}}s=D[r+(i<<2)>>2]}if((m|0)<=(o|0)){break r}i=D[p+(l<<2)>>2];if((i|0)>=(m|0)){break r}l=D[p+(s<<2)>>2];if((l|0)>=(m|0)){break r}g=D[(h+16|0)+J(j,12)>>2];u:{if(!e){break u}l=J(e,l);r=J(e,i);p=J(e,o);i=0;s=0;if(y){while(1){D[g+(i<<2)>>2]=(D[(i+l<<2)+c>>2]+D[(i+r<<2)+c>>2]|0)-D[(i+p<<2)+c>>2];o=i|1;D[g+(o<<2)>>2]=(D[(l+o<<2)+c>>2]+D[(o+r<<2)+c>>2]|0)-D[(o+p<<2)+c>>2];i=i+2|0;s=s+2|0;if((B|0)!=(s|0)){continue}break}}if(!C){break u}D[g+(i<<2)>>2]=(D[(i+l<<2)+c>>2]+D[(i+r<<2)+c>>2]|0)-D[(i+p<<2)+c>>2]}g=4;j=j+1|0;if((j|0)==4){break q}}v:{if(k&1){i=d+1|0;d=(i>>>0)%3|0?i:d-2|0;g=-1;if((d|0)==-1){break v}d=D[n+(d<<2)>>2];g=-1;if((d|0)==-1){break v}g=d+1|0;g=(g>>>0)%3|0?g:d-2|0;break v}w:{if((d>>>0)%3|0){i=d-1|0;break w}i=d+2|0;g=-1;if((i|0)==-1){break v}}d=D[n+(i<<2)>>2];g=-1;if((d|0)==-1){break v}g=d-1|0;if((d>>>0)%3|0){break v}g=d+2|0}d=g;x:{if((f|0)==(d|0)){break x}if(!((k^1)&1|(d|0)!=-1)){if(!u){break x}d=D[q>>2];if((d|0)==-1){break x}k=0;d=(d>>>0)%3|0?d-1|0:d+2|0}if((d|0)!=-1){continue}}break}g=j;if((g|0)<=0){break p}}if(e){qa(t,0,L)}d=g-1|0;r=(d<<2)+x|0;d=J(d,12)+a|0;o=d;s=D[d- -64>>2];k=0;d=D[h>>2];f=0;while(1){j=D[r>>2];D[r>>2]=j+1;if(j>>>0>=s>>>0){break j}y:{if(D[D[o+60>>2]+(j>>>3&536870908)>>2]>>>j&1){break y}f=f+1|0;if(!e){break y}j=D[(h+16|0)+J(k,12)>>2];l=0;i=0;p=0;if(y>>>0>=3){while(1){n=i<<2;q=n+d|0;D[q>>2]=D[q>>2]+D[j+n>>2];q=n|4;u=q+d|0;D[u>>2]=D[u>>2]+D[j+q>>2];q=n|8;u=q+d|0;D[u>>2]=D[u>>2]+D[j+q>>2];n=n|12;q=n+d|0;D[q>>2]=D[q>>2]+D[j+n>>2];i=i+4|0;p=p+4|0;if((K|0)!=(p|0)){continue}break}}if(!E){break y}while(1){n=i<<2;p=n+d|0;D[p>>2]=D[p>>2]+D[j+n>>2];i=i+1|0;l=l+1|0;if((E|0)!=(l|0)){continue}break}}k=k+1|0;if((k|0)!=(g|0)){continue}break}g=J(e,m);if(!f){break o}if(!e){break l}i=0;d=0;if(y){break n}break m}g=J(e,m)}if(D[a+8>>2]<=0){break k}k=(J(m-1|0,e)<<2)+c|0;j=D[w>>2];i=0;while(1){d=i<<2;f=D[d+k>>2];l=D[a+16>>2];z:{if((f|0)>(l|0)){D[d+j>>2]=l;break z}d=d+j|0;l=D[a+12>>2];if((l|0)>(f|0)){D[d>>2]=l;break z}D[d>>2]=f}i=i+1|0;f=D[a+8>>2];if((i|0)<(f|0)){continue}break}d=0;if((f|0)<=0){break k}f=g<<2;i=f+c|0;k=b+f|0;while(1){g=d<<2;f=g+i|0;g=D[g+k>>2]+D[g+j>>2]|0;D[f>>2]=g;A:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break A}g=g+D[a+20>>2]|0}D[f>>2]=g}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}break k}va();T()}while(1){j=i<<2;k=j+t|0;D[k>>2]=D[k>>2]/(f|0);j=(j|4)+t|0;D[j>>2]=D[j>>2]/(f|0);i=i+2|0;d=d+2|0;if((B|0)!=(d|0)){continue}break}}if(!C){break l}d=(i<<2)+t|0;D[d>>2]=D[d>>2]/(f|0)}if(D[a+8>>2]<=0){break k}j=D[w>>2];i=0;while(1){d=i<<2;f=D[d+t>>2];k=D[a+16>>2];B:{if((f|0)>(k|0)){D[d+j>>2]=k;break B}d=d+j|0;k=D[a+12>>2];if((k|0)>(f|0)){D[d>>2]=k;break B}D[d>>2]=f}i=i+1|0;f=D[a+8>>2];if((i|0)<(f|0)){continue}break}d=0;if((f|0)<=0){break k}f=g<<2;i=f+c|0;k=b+f|0;while(1){g=d<<2;f=g+i|0;g=D[g+k>>2]+D[g+j>>2]|0;D[f>>2]=g;C:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break C}g=g+D[a+20>>2]|0}D[f>>2]=g}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}m=m+1|0;F=(v|0)>(m|0);if((m|0)!=(H|0)){continue}break}}a=D[h>>2];if(a){ma(a)}ma(x);a=D[h+52>>2];if(a){D[h+56>>2]=a;ma(a)}a=D[h+40>>2];if(a){D[h+44>>2]=a;ma(a)}a=D[h+28>>2];if(a){D[h+32>>2]=a;ma(a)}a=D[h+16>>2];if(a){D[h+20>>2]=a;ma(a)}$=h- -64|0;return(F^-1)&1}pa();T()}function Dd(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0;i=$-96|0;$=i;g=D[a+4>>2];d=D[g+32>>2];j=D[d+8>>2];f=j;n=D[d+12>>2];e=n;c=D[d+20>>2];o=D[d+16>>2];a:{if((e|0)<=(c|0)&o>>>0>=f>>>0|(c|0)>(e|0)){break a}m=D[d>>2];p=E[m+o|0];f=o+1|0;e=f?c:c+1|0;D[d+16>>2]=f;D[d+20>>2]=e;if((e|0)>=(n|0)&f>>>0>=j>>>0|(e|0)>(n|0)){break a}l=E[f+m|0];f=o+2|0;e=f>>>0<2?c+1|0:c;h=f;D[d+16>>2]=f;D[d+20>>2]=e;q=p<<24>>24;b:{if((q|0)>=0){f=D[a+216>>2];if(p>>>0>=(D[a+220>>2]-f|0)/144>>>0){break a}f=f+J(p,144)|0;if(D[f>>2]<0){break b}break a}if(D[a+212>>2]>=0){break a}f=a+212|0}D[f>>2]=b;c:{d:{e:{f:{g:{h:{f=F[g+36>>1];i:{if(((f<<8|f>>>8)&65535)>>>0>=258){if((e|0)>=(n|0)&h>>>0>=j>>>0|(e|0)>(n|0)){break a}f=E[h+m|0];e=o+3|0;c=e>>>0<3?c+1|0:c;D[d+16>>2]=e;D[d+20>>2]=c;c=f>>>0>1;if(c){break a}c=c?0:f;if(!l){break i}if(!c){break h}break a}if(l){break g}c=0}if((q|0)<0){e=a+184|0}else{d=D[a+216>>2]+J(p,144)|0;B[d+100|0]=0;e=d+104|0}d=e;if((c|0)!=1){break e}e=$-112|0;$=e;m=D[D[a+4>>2]+44>>2];c=na(120);D[c>>2]=8924;D[c+4>>2]=0;D[c+116>>2]=0;D[c+112>>2]=d;D[c+108>>2]=m;D[c+12>>2]=0;D[c+16>>2]=0;D[c+20>>2]=0;D[c+24>>2]=0;D[c+28>>2]=0;D[c+32>>2]=0;D[c+36>>2]=0;D[c+40>>2]=0;D[c+44>>2]=0;D[c+48>>2]=0;D[c+52>>2]=0;D[c+56>>2]=0;D[c+60>>2]=0;D[c+8>>2]=9136;f=c- -64|0;D[f>>2]=0;D[f+4>>2]=0;D[c+72>>2]=0;D[c+76>>2]=0;D[c+80>>2]=0;D[c+84>>2]=0;D[c+88>>2]=0;D[c+104>>2]=0;D[c+96>>2]=0;D[c+100>>2]=0;j=D[a+8>>2];D[e+48>>2]=0;D[e+52>>2]=0;D[e+40>>2]=0;D[e+44>>2]=0;l=e+32|0;f=l;D[f>>2]=0;D[f+4>>2]=0;D[e+24>>2]=0;D[e+28>>2]=0;f=e- -64|0;D[f>>2]=0;D[f+4>>2]=0;D[e+72>>2]=0;D[e+76>>2]=0;D[e+80>>2]=0;D[e+84>>2]=0;D[e+88>>2]=0;D[e+104>>2]=0;D[e+16>>2]=0;D[e+20>>2]=0;D[e+56>>2]=0;D[e+60>>2]=0;D[e+8>>2]=9136;D[e+96>>2]=0;D[e+100>>2]=0;D[e+12>>2]=j;h=D[j>>2];f=D[j+4>>2];B[e+111|0]=0;n=l;l=e+111|0;Ha(n,(f-h>>2>>>0)/3|0,l);f=D[e+12>>2];h=D[f+28>>2];f=D[f+24>>2];B[e+111|0]=0;Ha(e+44|0,h-f>>2,l);D[e+28>>2]=c;D[e+24>>2]=m;D[e+20>>2]=d;D[e+16>>2]=j;d=c+8|0;h=e+8|0;ic(d,h);j:{if((d|0)==(h|0)){D[c+92>>2]=D[h+84>>2];break j}ib(c+56|0,D[h+48>>2],D[h+52>>2]);ib(c+68|0,D[h+60>>2],D[h- -64>>2]);ib(c+80|0,D[h+72>>2],D[h+76>>2]);D[c+92>>2]=D[h+84>>2];k:{l=D[h+92>>2];j=D[h+88>>2];h=l-j|0;m=h>>2;f=D[c+104>>2];g=D[c+96>>2];if(m>>>0<=f-g>>2>>>0){d=D[c+100>>2]-g|0;f=d>>2;h=f>>>0<m>>>0?d+j|0:l;d=h-j|0;if((h|0)!=(j|0)){Ra(g,j,d)}if(f>>>0<m>>>0){d=D[c+100>>2];f=l-h|0;if((f|0)>0){d=oa(d,h,f)+f|0}D[c+100>>2]=d;break k}D[c+100>>2]=d+g;break k}if(g){D[c+100>>2]=g;ma(g);D[c+104>>2]=0;D[c+96>>2]=0;D[c+100>>2]=0;f=0}l:{if((h|0)<0){break l}d=f>>1;d=f>>>0<2147483644?d>>>0>m>>>0?d:m:1073741823;if(d>>>0>=1073741824){break l}f=d<<2;d=na(f);D[c+96>>2]=d;D[c+100>>2]=d;D[c+104>>2]=d+f;if((j|0)!=(l|0)){d=oa(d,j,h)+h|0}D[c+100>>2]=d;break k}pa();T()}}D[e+8>>2]=9136;d=D[e+96>>2];if(d){D[e+100>>2]=d;ma(d)}d=D[e+80>>2];if(d){D[e+84>>2]=d;ma(d)}d=D[e+68>>2];if(d){D[e+72>>2]=d;ma(d)}d=D[e+56>>2];if(d){D[e+60>>2]=d;ma(d)}D[e+8>>2]=9372;d=D[e+44>>2];if(d){ma(d)}d=D[e+32>>2];if(d){ma(d)}$=e+112|0;break d}if((q|0)>=0){break f}break a}if((q|0)<0){break a}}d=D[a+216>>2];f=D[g+44>>2];c=na(80);D[c>>2]=9684;D[c+4>>2]=0;D[c+76>>2]=0;D[c+68>>2]=f;D[c+8>>2]=8624;D[c+12>>2]=0;D[c+16>>2]=0;D[c+20>>2]=0;D[c+24>>2]=0;D[c+28>>2]=0;D[c+32>>2]=0;D[c+36>>2]=0;D[c+40>>2]=0;D[c+44>>2]=0;D[c+48>>2]=0;D[c+52>>2]=0;k=d+J(p,144)|0;e=k+104|0;D[c+72>>2]=e;D[c- -64>>2]=0;D[c+56>>2]=0;D[c+60>>2]=0;D[i+24>>2]=f;D[i+68>>2]=0;D[i+72>>2]=0;D[i+60>>2]=0;D[i+64>>2]=0;D[i+52>>2]=0;D[i+56>>2]=0;D[i+44>>2]=0;D[i+48>>2]=0;D[i+84>>2]=0;D[i+88>>2]=0;D[i+76>>2]=0;D[i+80>>2]=0;D[i+28>>2]=c;d=D[i+28>>2];D[i+8>>2]=D[i+24>>2];D[i+12>>2]=d;D[i+20>>2]=e;e=k+4|0;D[i+16>>2]=e;D[i+36>>2]=0;D[i+40>>2]=0;D[i+32>>2]=8624;d=D[i+20>>2];D[i>>2]=D[i+16>>2];D[i+4>>2]=d;k=i+32|0;Cd(k,e,i);d=c+8|0;ic(d,k);if((d|0)!=(k|0)){ib(c+56|0,D[k+48>>2],D[k+52>>2])}Bd(k);break c}g=$+-64|0;$=g;m=D[D[a+4>>2]+44>>2];c=na(80);D[c>>2]=9392;D[c+4>>2]=0;D[c+76>>2]=0;D[c+72>>2]=d;D[c+68>>2]=m;D[c+8>>2]=9556;D[c+12>>2]=0;D[c+16>>2]=0;D[c+20>>2]=0;D[c+24>>2]=0;D[c+28>>2]=0;D[c+32>>2]=0;D[c+36>>2]=0;D[c+40>>2]=0;D[c+44>>2]=0;D[c+48>>2]=0;D[c+52>>2]=0;D[c- -64>>2]=0;l=c+56|0;e=l;D[e>>2]=0;D[e+4>>2]=0;j=D[a+8>>2];D[g+40>>2]=0;D[g+44>>2]=0;D[g+32>>2]=0;D[g+36>>2]=0;h=g+24|0;e=h;D[e>>2]=0;D[e+4>>2]=0;D[g+16>>2]=0;D[g+20>>2]=0;D[g+56>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;D[g+48>>2]=0;D[g+52>>2]=0;D[g>>2]=9556;D[g+4>>2]=j;f=D[j>>2];e=D[j+4>>2];B[g+63|0]=0;n=h;h=g+63|0;Ha(n,(e-f>>2>>>0)/3|0,h);e=D[g+4>>2];f=D[e+28>>2];e=D[e+24>>2];B[g+63|0]=0;Ha(g+36|0,f-e>>2,h);D[g+20>>2]=c;D[g+16>>2]=m;D[g+12>>2]=d;D[g+8>>2]=j;ic(c+8|0,g);ib(l,D[g+48>>2],D[g+52>>2]);D[g>>2]=9556;d=D[g+48>>2];if(d){D[g+52>>2]=d;ma(d)}D[g>>2]=9372;d=D[g+36>>2];if(d){ma(d)}d=D[g+24>>2];if(d){ma(d)}$=g- -64|0}if(!c){break a}}c=wc(na(64),c);h=D[a+4>>2];a=c;c=b;m:{n:{if((c|0)>=0){e=h+8|0;b=D[h+12>>2];d=D[h+8>>2];f=b-d>>2;o:{if((f|0)>(c|0)){break o}k=c+1|0;if(c>>>0>=f>>>0){Pb(e,k-f|0);break o}if(f>>>0<=k>>>0){break o}d=d+(k<<2)|0;if((d|0)!=(b|0)){while(1){b=b-4|0;k=D[b>>2];D[b>>2]=0;if(k){ba[D[D[k>>2]+4>>2]](k)}if((b|0)!=(d|0)){continue}break}}D[h+12>>2]=d}d=D[e>>2]+(c<<2)|0;b=D[d>>2];D[d>>2]=a;if(b){break n}break m}b=a;if(!a){break m}}ba[D[D[b>>2]+4>>2]](b)}k=(c^-1)>>>31|0}$=i+96|0;return k|0}function he(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,k=0,l=0,m=0,n=0,o=0;j=a;a:{b:{c:{d:{e:{f:{g:{h:{a=D[a+8>>2];switch(D[a+28>>2]-1|0){case 4:break c;case 5:break d;case 2:break e;case 3:break f;case 0:break g;case 1:break h;default:break a}}e=B[a+24|0];c=na((e|0)>=0?e:-1);a=D[j+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}a=0;if((e|0)<=0){if((b|0)!=1){h=b&-2;while(1){oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,e);a=a+e|0;oa(a+D[D[D[j+8>>2]+64>>2]>>2]|0,c,e);a=a+e|0;d=d+2|0;if((h|0)!=(d|0)){continue}break}}if(!(b&1)){break b}oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,e);break b}o=e&-4;l=e&3;g=e-1>>>0<3;while(1){a=0;f=0;if(!g){while(1){k=h+(d<<2)|0;B[a+c|0]=D[k>>2];B[(a|1)+c|0]=D[k+4>>2];B[(a|2)+c|0]=D[k+8>>2];B[(a|3)+c|0]=D[k+12>>2];a=a+4|0;d=d+4|0;f=f+4|0;if((o|0)!=(f|0)){continue}break}}f=0;if(l){while(1){B[a+c|0]=D[h+(d<<2)>>2];a=a+1|0;d=d+1|0;f=f+1|0;if((l|0)!=(f|0)){continue}break}}oa(D[D[D[j+8>>2]+64>>2]>>2]+m|0,c,e);m=e+m|0;n=n+1|0;if((n|0)!=(b|0)){continue}break}break b}e=B[a+24|0];c=na((e|0)>=0?e:-1);a=D[j+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}a=0;if((e|0)<=0){if((b|0)!=1){h=b&-2;while(1){oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,e);a=a+e|0;oa(a+D[D[D[j+8>>2]+64>>2]>>2]|0,c,e);a=a+e|0;d=d+2|0;if((h|0)!=(d|0)){continue}break}}if(!(b&1)){break b}oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,e);break b}o=e&-4;l=e&3;g=e-1>>>0<3;while(1){a=0;f=0;if(!g){while(1){k=h+(d<<2)|0;B[a+c|0]=D[k>>2];B[(a|1)+c|0]=D[k+4>>2];B[(a|2)+c|0]=D[k+8>>2];B[(a|3)+c|0]=D[k+12>>2];a=a+4|0;d=d+4|0;f=f+4|0;if((o|0)!=(f|0)){continue}break}}f=0;if(l){while(1){B[a+c|0]=D[h+(d<<2)>>2];a=a+1|0;d=d+1|0;f=f+1|0;if((l|0)!=(f|0)){continue}break}}oa(D[D[D[j+8>>2]+64>>2]>>2]+m|0,c,e);m=e+m|0;n=n+1|0;if((n|0)!=(b|0)){continue}break}break b}g=B[a+24|0];a=g+g|0;c=na(a>>>0<g>>>0?-1:a);a=D[j+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}i=g<<1;a=0;if((g|0)<=0){if((b|0)!=1){h=b&-2;while(1){oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,i);a=a+i|0;oa(a+D[D[D[j+8>>2]+64>>2]>>2]|0,c,i);a=a+i|0;d=d+2|0;if((h|0)!=(d|0)){continue}break}}if(!(b&1)){break b}oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,i);break b}o=g&-4;l=g&3;g=g-1>>>0<3;while(1){a=0;f=0;if(!g){while(1){e=a<<1;k=h+(d<<2)|0;C[e+c>>1]=D[k>>2];C[(e|2)+c>>1]=D[k+4>>2];C[(e|4)+c>>1]=D[k+8>>2];C[(e|6)+c>>1]=D[k+12>>2];a=a+4|0;d=d+4|0;f=f+4|0;if((o|0)!=(f|0)){continue}break}}f=0;if(l){while(1){C[(a<<1)+c>>1]=D[h+(d<<2)>>2];a=a+1|0;d=d+1|0;f=f+1|0;if((l|0)!=(f|0)){continue}break}}oa(D[D[D[j+8>>2]+64>>2]>>2]+n|0,c,i);n=i+n|0;m=m+1|0;if((m|0)!=(b|0)){continue}break}break b}g=B[a+24|0];a=g+g|0;c=na(a>>>0<g>>>0?-1:a);a=D[j+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}i=g<<1;a=0;if((g|0)<=0){if((b|0)!=1){h=b&-2;while(1){oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,i);a=a+i|0;oa(a+D[D[D[j+8>>2]+64>>2]>>2]|0,c,i);a=a+i|0;d=d+2|0;if((h|0)!=(d|0)){continue}break}}if(!(b&1)){break b}oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,i);break b}o=g&-4;l=g&3;g=g-1>>>0<3;while(1){a=0;f=0;if(!g){while(1){e=a<<1;k=h+(d<<2)|0;C[e+c>>1]=D[k>>2];C[(e|2)+c>>1]=D[k+4>>2];C[(e|4)+c>>1]=D[k+8>>2];C[(e|6)+c>>1]=D[k+12>>2];a=a+4|0;d=d+4|0;f=f+4|0;if((o|0)!=(f|0)){continue}break}}f=0;if(l){while(1){C[(a<<1)+c>>1]=D[h+(d<<2)>>2];a=a+1|0;d=d+1|0;f=f+1|0;if((l|0)!=(f|0)){continue}break}}oa(D[D[D[j+8>>2]+64>>2]>>2]+n|0,c,i);n=i+n|0;m=m+1|0;if((m|0)!=(b|0)){continue}break}break b}g=B[a+24|0];i=g<<2;c=na((g|0)!=(g&1073741823)?-1:i);a=D[j+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}a=0;if((g|0)<=0){if((b|0)!=1){h=b&-2;while(1){oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,i);a=a+i|0;oa(a+D[D[D[j+8>>2]+64>>2]>>2]|0,c,i);a=a+i|0;d=d+2|0;if((h|0)!=(d|0)){continue}break}}if(!(b&1)){break b}oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,i);break b}o=g&-4;l=g&3;g=g-1>>>0<3;while(1){a=0;f=0;if(!g){while(1){e=a<<2;k=h+(d<<2)|0;D[e+c>>2]=D[k>>2];D[(e|4)+c>>2]=D[k+4>>2];D[(e|8)+c>>2]=D[k+8>>2];D[(e|12)+c>>2]=D[k+12>>2];a=a+4|0;d=d+4|0;f=f+4|0;if((o|0)!=(f|0)){continue}break}}f=0;if(l){while(1){D[(a<<2)+c>>2]=D[h+(d<<2)>>2];a=a+1|0;d=d+1|0;f=f+1|0;if((l|0)!=(f|0)){continue}break}}oa(D[D[D[j+8>>2]+64>>2]>>2]+n|0,c,i);n=i+n|0;m=m+1|0;if((m|0)!=(b|0)){continue}break}break b}g=B[a+24|0];i=g<<2;c=na((g|0)!=(g&1073741823)?-1:i);a=D[j+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}a=0;if((g|0)<=0){if((b|0)!=1){h=b&-2;while(1){oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,i);a=a+i|0;oa(a+D[D[D[j+8>>2]+64>>2]>>2]|0,c,i);a=a+i|0;d=d+2|0;if((h|0)!=(d|0)){continue}break}}if(!(b&1)){break b}oa(D[D[D[j+8>>2]+64>>2]>>2]+a|0,c,i);break b}o=g&-4;l=g&3;g=g-1>>>0<3;while(1){a=0;f=0;if(!g){while(1){e=a<<2;k=h+(d<<2)|0;D[e+c>>2]=D[k>>2];D[(e|4)+c>>2]=D[k+4>>2];D[(e|8)+c>>2]=D[k+8>>2];D[(e|12)+c>>2]=D[k+12>>2];a=a+4|0;d=d+4|0;f=f+4|0;if((o|0)!=(f|0)){continue}break}}f=0;if(l){while(1){D[(a<<2)+c>>2]=D[h+(d<<2)>>2];a=a+1|0;d=d+1|0;f=f+1|0;if((l|0)!=(f|0)){continue}break}}oa(D[D[D[j+8>>2]+64>>2]>>2]+n|0,c,i);n=i+n|0;m=m+1|0;if((m|0)!=(b|0)){continue}break}}ma(c);c=1}return c|0}function Uh(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=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,U=0,V=0,W=0;a:{if((e|0)==2){D[a+8>>2]=2;D[a- -64>>2]=f;H=a+32|0;e=D[H>>2];d=D[a+36>>2]-e|0;b:{if(d>>>0<=7){ra(H,2-(d>>>2|0)|0);break b}if((d|0)==8){break b}D[a+36>>2]=e+8}d=D[a+56>>2];d=D[d+4>>2]-D[d>>2]|0;c:{if((d|0)<=0){f=0;break c}n=a+60|0;I=d>>2;S=(I|0)>1?I:1;U=a+68|0;f=1;while(1){e=D[a+56>>2];d=D[e>>2];if(D[e+4>>2]-d>>2>>>0<=r>>>0){break a}k=$-80|0;$=k;e=-1;d:{e:{i=D[d+(r<<2)>>2];if((i|0)==-1){break e}h=D[n+32>>2];d=i+1|0;d=(d>>>0)%3|0?d:i-2|0;if((d|0)!=-1){e=D[D[h>>2]+(d<<2)>>2]}d=-1;i=i+((i>>>0)%3|0?-1:2)|0;if((i|0)!=-1){d=D[D[h>>2]+(i<<2)>>2]}h=D[n+36>>2];i=D[h>>2];h=D[h+4>>2]-i>>2;if(h>>>0<=e>>>0|d>>>0>=h>>>0){break e}h=D[i+(e<<2)>>2];f:{g:{h:{i:{j:{k:{i=D[i+(d<<2)>>2];if((i|0)>=(r|0)|(h|0)>=(r|0)){break k}d=(i<<3)+c|0;v=D[d+4>>2];e=(h<<3)+c|0;w=D[e+4>>2];x=D[d>>2];C=D[e>>2];if(!((x|0)!=(C|0)|(v|0)!=(w|0))){D[n+8>>2]=C;D[n+12>>2]=w;break j}d=D[D[n+4>>2]+(r<<2)>>2];D[k+72>>2]=0;D[k+76>>2]=0;e=k- -64|0;D[e>>2]=0;D[e+4>>2]=0;D[k+56>>2]=0;D[k+60>>2]=0;e=D[n>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}Ia(e,d,B[e+24|0],k+56|0);d=D[D[n+4>>2]+(h<<2)>>2];D[k+48>>2]=0;D[k+52>>2]=0;D[k+40>>2]=0;D[k+44>>2]=0;D[k+32>>2]=0;D[k+36>>2]=0;e=D[n>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}Ia(e,d,B[e+24|0],k+32|0);e=D[D[n+4>>2]+(i<<2)>>2];D[k+24>>2]=0;D[k+28>>2]=0;D[k+16>>2]=0;D[k+20>>2]=0;D[k+8>>2]=0;D[k+12>>2]=0;d=D[n>>2];if(!E[d+84|0]){e=D[D[d+68>>2]+(e<<2)>>2]}Ia(d,e,B[d+24|0],k+8|0);J=D[k+44>>2];d=D[k+16>>2];s=D[k+40>>2];e=s;i=D[k+20>>2]-(J+(d>>>0<e>>>0)|0)|0;l=d-e|0;d=fi(l,i,l,i);g=aa;m=d;K=D[k+36>>2];d=D[k+8>>2];F=D[k+32>>2];e=F;j=D[k+12>>2]-(K+(d>>>0<e>>>0)|0)|0;e=d-e|0;o=fi(e,j,e,j);m=m+o|0;d=aa+g|0;d=m>>>0<o>>>0?d+1|0:d;q=m;L=D[k+52>>2];g=D[k+24>>2];G=D[k+48>>2];o=G;m=D[k+28>>2]-(L+(g>>>0<o>>>0)|0)|0;u=g-o|0;p=fi(u,m,u,m);o=q+p|0;g=aa+d|0;t=o;o=o>>>0<p>>>0?g+1|0:g;if(!(t|o)){break k}M=D[k+64>>2];d=M;N=D[k+68>>2];d=fi(d-s|0,N-((d>>>0<s>>>0)+J|0)|0,l,i);h=aa;g=d;O=D[k+56>>2];d=O;P=D[k+60>>2];p=fi(d-F|0,P-((d>>>0<F>>>0)+K|0)|0,e,j);d=g+p|0;g=aa+h|0;g=d>>>0<p>>>0?g+1|0:g;h=d;Q=D[k+72>>2];d=Q;R=D[k+76>>2];p=fi(d-G|0,R-((d>>>0<G>>>0)+L|0)|0,u,m);h=h+p|0;d=aa+g|0;y=h;p=h>>>0<p>>>0?d+1|0:d;d=j>>31;h=d;g=e^d;d=(j^d)-((d>>>0>g>>>0)+d|0)|0;g=g-h|0;q=g;h=i>>31;z=h^l;A=z-h|0;h=(i^h)-((h>>>0>z>>>0)+h|0)|0;g=(d|0)==(h|0)&g>>>0>A>>>0|d>>>0>h>>>0;z=g?q:A;d=g?d:h;h=d;d=m>>31;g=d;A=d^u;d=A-d|0;g=(m^g)-((g>>>0>A>>>0)+g|0)|0;q=(h|0)==(g|0)&d>>>0<z>>>0|h>>>0>g>>>0;g=hi(-1,2147483647,q?z:d,q?h:g)>>>0<y>>>0;h=aa;d=0;if(g&(h|0)<=(p|0)|(h|0)<(p|0)){break f}h=1;d=0;g=M;q=s;s=gi(fi(l,i,y,p),aa,t,o);i=q+s|0;l=aa+J|0;l=i>>>0<s>>>0?l+1|0:l;l=N-((i>>>0>g>>>0)+l|0)|0;i=g-i|0;i=fi(i,l,i,l);l=aa;g=O;q=i;j=gi(fi(e,j,y,p),aa,t,o);e=j+F|0;i=aa+K|0;i=e>>>0<j>>>0?i+1|0:i;i=P-((e>>>0>g>>>0)+i|0)|0;e=g-e|0;j=fi(e,i,e,i);i=q+j|0;e=aa+l|0;e=i>>>0<j>>>0?e+1|0:e;j=i;i=e;e=Q;g=j;m=gi(fi(u,m,y,p),aa,t,o);j=m+G|0;l=aa+L|0;l=j>>>0<m>>>0?l+1|0:l;m=R-((e>>>0<j>>>0)+l|0)|0;e=e-j|0;j=fi(e,m,e,m);e=g+j|0;i=aa+i|0;j=fi(e,e>>>0<j>>>0?i+1|0:i,t,o);e=aa;m=e;if(!e&j>>>0<=1){break i}g=j;e=m;while(1){i=d<<1|h>>>31;h=h<<1;d=i;l=!e&g>>>0>7|(e|0)!=0;g=(e&3)<<30|g>>>2;e=e>>>2|0;if(l){continue}break}break h}if((h|0)<(r|0)){d=h<<1}else{if((r|0)<=0){D[n+8>>2]=0;D[n+12>>2]=0;break j}d=(r<<1)-2|0}d=(d<<2)+c|0;D[n+8>>2]=D[d>>2];D[n+12>>2]=D[d+4>>2]}d=1;break f}d=m;h=j;if(h-1|0){break g}}while(1){e=hi(j,m,h,d)+h|0;g=d+aa|0;g=e>>>0<h>>>0?g+1|0:g;h=(g&1)<<31|e>>>1;d=g>>>1|0;e=fi(h,d,h,d);i=aa;if((m|0)==(i|0)&e>>>0>j>>>0|i>>>0>m>>>0){continue}break}}i=D[n+20>>2];if(i){e=i-1|0;m=D[D[n+16>>2]+(e>>>3&536870908)>>2];D[n+20>>2]=e;j=w;u=v-j|0;g=j>>31;v=(v>>31)-(g+(j>>>0>v>>>0)|0)|0;j=fi(y,p,u,v);l=aa;g=fi(w,g,t,o);j=g+j|0;l=aa+l|0;l=j>>>0<g>>>0?l+1|0:l;q=j;j=C;w=x-j|0;s=j>>31;x=(x>>31)-(s+(j>>>0>x>>>0)|0)|0;j=fi(h,d,w,x);g=j;e=m>>>e&1;m=e?0-j|0:j;j=q+m|0;q=l;l=aa;g=q+(e?0-(l+((g|0)!=0)|0)|0:l)|0;V=n,W=gi(j,j>>>0<m>>>0?g+1|0:g,t,o),D[V+12>>2]=W;j=fi(w,x,y,p);m=aa;g=fi(t,o,C,s);j=g+j|0;l=aa+m|0;l=j>>>0<g>>>0?l+1|0:l;g=j;d=fi(h,d,u,v);j=e?d:0-d|0;h=g+j|0;m=aa;e=(e?m:0-(((d|0)!=0)+m|0)|0)+l|0;V=n,W=gi(h,h>>>0<j>>>0?e+1|0:e,t,o),D[V+8>>2]=W}d=(i|0)!=0}$=k+80|0;break d}va();T()}if(!d){break c}l:{if(D[a+8>>2]<=0){break l}i=D[H>>2];d=0;while(1){e=d<<2;f=D[e+U>>2];h=D[a+16>>2];m:{if((f|0)>(h|0)){D[e+i>>2]=h;break m}e=e+i|0;h=D[a+12>>2];if((h|0)>(f|0)){D[e>>2]=h;break m}D[e>>2]=f}d=d+1|0;f=D[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<=0){break l}d=r<<3;h=d+c|0;j=b+d|0;while(1){f=e<<2;d=f+h|0;f=D[f+j>>2]+D[f+i>>2]|0;D[d>>2]=f;n:{if((f|0)>D[a+16>>2]){f=f-D[a+20>>2]|0}else{if((f|0)>=D[a+12>>2]){break n}f=f+D[a+20>>2]|0}D[d>>2]=f}e=e+1|0;if((e|0)<D[a+8>>2]){continue}break}}r=r+1|0;f=(I|0)>(r|0);if((r|0)!=(S|0)){continue}break}}a=f^1}else{a=0}return a&1}va();T()}function di(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=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,U=0,V=0,W=0;a:{if((e|0)==2){D[a+8>>2]=2;D[a- -64>>2]=f;I=a+32|0;e=D[I>>2];d=D[a+36>>2]-e|0;b:{if(d>>>0<=7){ra(I,2-(d>>>2|0)|0);break b}if((d|0)==8){break b}D[a+36>>2]=e+8}d=D[a+56>>2];d=D[d+4>>2]-D[d>>2]|0;c:{if((d|0)<=0){f=0;break c}n=a+60|0;J=d>>2;S=(J|0)>1?J:1;U=a+68|0;f=1;while(1){d=D[a+56>>2];i=D[d>>2];if(D[d+4>>2]-i>>2>>>0<=q>>>0){break a}k=$-80|0;$=k;e=-1;i=D[i+(q<<2)>>2];d=-1;d:{if((i|0)==-1){break d}d=i+1|0;e=(d>>>0)%3|0?d:i-2|0;d=i-1|0;if((i>>>0)%3|0){break d}d=i+2|0}g=D[n+36>>2];i=D[g>>2];e:{f:{g:{h:{i:{g=D[g+4>>2]-i>>2;j=e<<2;e=D[D[n+32>>2]+28>>2];j=D[j+e>>2];if(g>>>0<=j>>>0){break i}d=D[e+(d<<2)>>2];if(d>>>0>=g>>>0){break i}g=D[i+(j<<2)>>2];j:{k:{i=D[i+(d<<2)>>2];if((i|0)>=(q|0)|(g|0)>=(q|0)){break k}d=(i<<3)+c|0;w=D[d+4>>2];e=(g<<3)+c|0;x=D[e+4>>2];y=D[d>>2];F=D[e>>2];if(!((y|0)!=(F|0)|(w|0)!=(x|0))){D[n+8>>2]=F;D[n+12>>2]=x;break j}d=D[D[n+4>>2]+(q<<2)>>2];D[k+72>>2]=0;D[k+76>>2]=0;e=k- -64|0;D[e>>2]=0;D[e+4>>2]=0;D[k+56>>2]=0;D[k+60>>2]=0;e=D[n>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}Ia(e,d,B[e+24|0],k+56|0);d=D[D[n+4>>2]+(g<<2)>>2];D[k+48>>2]=0;D[k+52>>2]=0;D[k+40>>2]=0;D[k+44>>2]=0;D[k+32>>2]=0;D[k+36>>2]=0;e=D[n>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}Ia(e,d,B[e+24|0],k+32|0);d=D[D[n+4>>2]+(i<<2)>>2];D[k+24>>2]=0;D[k+28>>2]=0;D[k+16>>2]=0;D[k+20>>2]=0;D[k+8>>2]=0;D[k+12>>2]=0;e=D[n>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}Ia(e,d,B[e+24|0],k+8|0);K=D[k+44>>2];d=D[k+16>>2];r=D[k+40>>2];e=r;i=D[k+20>>2]-(K+(d>>>0<e>>>0)|0)|0;l=d-e|0;d=fi(l,i,l,i);h=aa;m=d;L=D[k+36>>2];d=D[k+8>>2];G=D[k+32>>2];e=G;j=D[k+12>>2]-(L+(d>>>0<e>>>0)|0)|0;e=d-e|0;o=fi(e,j,e,j);m=m+o|0;d=aa+h|0;d=m>>>0<o>>>0?d+1|0:d;s=m;M=D[k+52>>2];h=D[k+24>>2];H=D[k+48>>2];o=H;m=D[k+28>>2]-(M+(h>>>0<o>>>0)|0)|0;v=h-o|0;p=fi(v,m,v,m);o=s+p|0;h=aa+d|0;u=o;o=o>>>0<p>>>0?h+1|0:h;if(!(u|o)){break k}s=D[k+64>>2];d=s;N=D[k+68>>2];d=fi(d-r|0,N-((d>>>0<r>>>0)+K|0)|0,l,i);g=aa;h=d;O=D[k+56>>2];d=O;P=D[k+60>>2];p=fi(d-G|0,P-((d>>>0<G>>>0)+L|0)|0,e,j);d=h+p|0;h=aa+g|0;h=d>>>0<p>>>0?h+1|0:h;g=d;Q=D[k+72>>2];d=Q;R=D[k+76>>2];p=fi(d-H|0,R-((d>>>0<H>>>0)+M|0)|0,v,m);g=g+p|0;d=aa+h|0;z=g;p=g>>>0<p>>>0?d+1|0:d;d=j>>31;g=d;h=e^d;d=(d^j)-(d+(d>>>0>h>>>0)|0)|0;t=h-g|0;h=i>>31;g=h;A=g^l;C=A-g|0;g=(i^g)-((g>>>0>A>>>0)+g|0)|0;h=(d|0)==(g|0)&t>>>0>C>>>0|d>>>0>g>>>0;A=h?t:C;d=h?d:g;h=m>>31;g=h;C=g^v;t=C-g|0;g=(g^m)-((g>>>0>C>>>0)+g|0)|0;h=(d|0)==(g|0)&t>>>0<A>>>0|d>>>0>g>>>0;h=hi(-1,2147483647,h?A:t,h?d:g)>>>0<z>>>0;d=aa;t=0;if(h&(d|0)<=(p|0)|(d|0)<(p|0)){break e}g=1;d=0;h=s;s=r;r=gi(fi(l,i,z,p),aa,u,o);i=s+r|0;l=aa+K|0;l=i>>>0<r>>>0?l+1|0:l;l=N-((i>>>0>h>>>0)+l|0)|0;i=h-i|0;i=fi(i,l,i,l);l=aa;h=O;r=i;j=gi(fi(e,j,z,p),aa,u,o);e=j+G|0;i=aa+L|0;i=e>>>0<j>>>0?i+1|0:i;i=P-((e>>>0>h>>>0)+i|0)|0;e=h-e|0;j=fi(e,i,e,i);i=r+j|0;e=aa+l|0;e=i>>>0<j>>>0?e+1|0:e;j=i;i=e;e=Q;h=j;m=gi(fi(v,m,z,p),aa,u,o);j=m+H|0;l=aa+M|0;l=j>>>0<m>>>0?l+1|0:l;m=R-((e>>>0<j>>>0)+l|0)|0;e=e-j|0;j=fi(e,m,e,m);e=h+j|0;i=aa+i|0;j=fi(e,e>>>0<j>>>0?i+1|0:i,u,o);e=aa;m=e;if(!e&j>>>0<=1){break h}h=j;e=m;while(1){i=d<<1|g>>>31;g=g<<1;d=i;l=!e&h>>>0>7|(e|0)!=0;h=(e&3)<<30|h>>>2;e=e>>>2|0;if(l){continue}break}break g}if((g|0)<(q|0)){d=g<<1}else{if((q|0)<=0){D[n+8>>2]=0;D[n+12>>2]=0;break j}d=(q<<1)-2|0}d=(d<<2)+c|0;D[n+8>>2]=D[d>>2];D[n+12>>2]=D[d+4>>2]}t=1;break e}va();T()}d=m;g=j;if(g-1|0){break f}}while(1){e=hi(j,m,g,d)+g|0;h=d+aa|0;h=e>>>0<g>>>0?h+1|0:h;g=(h&1)<<31|e>>>1;d=h>>>1|0;e=fi(g,d,g,d);i=aa;if((m|0)==(i|0)&e>>>0>j>>>0|i>>>0>m>>>0){continue}break}}i=D[n+20>>2];if(i){e=i-1|0;m=D[D[n+16>>2]+(e>>>3&536870908)>>2];D[n+20>>2]=e;j=x;v=w-j|0;h=j>>31;w=(w>>31)-(h+(j>>>0>w>>>0)|0)|0;j=fi(z,p,v,w);l=aa;h=fi(x,h,u,o);j=h+j|0;l=aa+l|0;l=h>>>0>j>>>0?l+1|0:l;s=j;j=F;x=y-j|0;r=j>>31;y=(y>>31)-(r+(j>>>0>y>>>0)|0)|0;j=fi(g,d,x,y);h=j;e=m>>>e&1;m=e?0-j|0:j;j=s+m|0;s=l;l=aa;h=s+(e?0-(l+((h|0)!=0)|0)|0:l)|0;V=n,W=gi(j,j>>>0<m>>>0?h+1|0:h,u,o),D[V+12>>2]=W;j=fi(x,y,z,p);m=aa;h=fi(u,o,F,r);j=h+j|0;l=aa+m|0;l=h>>>0>j>>>0?l+1|0:l;h=j;d=fi(g,d,v,w);j=e?d:0-d|0;g=h+j|0;m=aa;e=(e?m:0-(((d|0)!=0)+m|0)|0)+l|0;V=n,W=gi(g,j>>>0>g>>>0?e+1|0:e,u,o),D[V+8>>2]=W}t=(i|0)!=0}$=k+80|0;if(!t){break c}l:{if(D[a+8>>2]<=0){break l}i=D[I>>2];d=0;while(1){e=d<<2;f=D[e+U>>2];g=D[a+16>>2];m:{if((f|0)>(g|0)){D[e+i>>2]=g;break m}e=e+i|0;g=D[a+12>>2];if((g|0)>(f|0)){D[e>>2]=g;break m}D[e>>2]=f}d=d+1|0;f=D[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<=0){break l}d=q<<3;g=d+c|0;j=b+d|0;while(1){f=e<<2;d=f+g|0;f=D[f+j>>2]+D[f+i>>2]|0;D[d>>2]=f;n:{if((f|0)>D[a+16>>2]){f=f-D[a+20>>2]|0}else{if((f|0)>=D[a+12>>2]){break n}f=f+D[a+20>>2]|0}D[d>>2]=f}e=e+1|0;if((e|0)<D[a+8>>2]){continue}break}}q=q+1|0;f=(J|0)>(q|0);if((q|0)!=(S|0)){continue}break}}a=f^1}else{a=0}return a&1}va();T()}function Kc(a){var b=0,c=0,d=0,e=0,f=0,g=0;e=$-16|0;$=e;D[e+12>>2]=a;a:{if(a>>>0<=211){d=D[Jc(10352,10544,e+12|0)>>2];break a}if(a>>>0>=4294967292){W();T()}f=(a>>>0)/210|0;d=J(f,210);D[e+8>>2]=a-d;g=Jc(10544,10736,e+8|0)-10544>>2;while(1){d=D[(g<<2)+10544>>2]+d|0;a=5;b:{while(1){c:{if((a|0)==47){a=211;while(1){b=(d>>>0)/(a>>>0)|0;if(b>>>0<a>>>0){break b}if((J(a,b)|0)==(d|0)){break c}b=a+10|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+12|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+16|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+18|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+22|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+28|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+30|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+36|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+40|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+42|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+46|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+52|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+58|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+60|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+66|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+70|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+72|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+78|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+82|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+88|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+96|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+100|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+102|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+106|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+108|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+112|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+120|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+126|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+130|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+136|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+138|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+142|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+148|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+150|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+156|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+162|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+166|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+168|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+172|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+178|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+180|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+186|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+190|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+192|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+196|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+198|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+208|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}a=a+210|0;if((J(b,c)|0)!=(d|0)){continue}break}break c}b=D[(a<<2)+10352>>2];c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}a=a+1|0;if((J(b,c)|0)!=(d|0)){continue}}break}d=g+1|0;a=(d|0)==48;g=a?0:d;f=a+f|0;d=J(f,210);continue}break}D[e+12>>2]=d}$=e+16|0;return d}function Ia(a,b,c,d){var e=0,f=0,g=0,h=0,i=K(0),j=0,k=0,l=K(0),m=0;a:{if(!d){break a}b:{c:{switch(D[a+28>>2]-1|0){case 0:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;g=B[b|0];D[e>>2]=g;D[e+4>>2]=g>>31;b=b+1|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break a}c=c-e|0;a=(e<<3)+d|0;break b;case 1:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;D[e>>2]=E[b|0];D[e+4>>2]=0;b=b+1|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break a}c=c-e|0;a=(e<<3)+d|0;break b;case 2:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;g=C[b>>1];D[e>>2]=g;D[e+4>>2]=g>>31;b=b+2|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break a}c=c-e|0;a=(e<<3)+d|0;break b;case 3:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;D[e>>2]=F[b>>1];D[e+4>>2]=0;b=b+2|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break a}c=c-e|0;a=(e<<3)+d|0;break b;case 4:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;g=D[b>>2];D[e>>2]=g;D[e+4>>2]=g>>31;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break a}c=c-e|0;a=(e<<3)+d|0;break b;case 5:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;D[e>>2]=D[b>>2];D[e+4>>2]=0;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break a}c=c-e|0;a=(e<<3)+d|0;break b;case 6:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}g=D[b+4>>2];e=(f<<3)+d|0;D[e>>2]=D[b>>2];D[e+4>>2]=g;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break a}c=c-e|0;a=(e<<3)+d|0;break b;case 7:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=D[b>>2];g=D[b+4>>2];if((g|0)<0){break a}k=(f<<3)+d|0;D[k>>2]=e;D[k+4>>2]=g;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break a}c=c-e|0;a=(e<<3)+d|0;break b;case 8:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;k=D[e+4>>2];while(1){if(b>>>0>=k>>>0){break a}i=H[b>>2];if(i>K(0x8000000000000000)|i<K(-0x8000000000000000)|i!=i){break a}l=K(L(i));if(l==K(V)){break a}e=(f<<3)+d|0;d:{if(l<K(0x8000000000000000)){g=K(L(i))>=K(1)?~~(i>K(0)?K(N(K(P(K(i*K(2.3283064365386963e-10)))),K(4294967296))):K(Q(K(K(i-K(~~i>>>0>>>0))*K(2.3283064365386963e-10)))))>>>0:0;h=~~i>>>0;break d}g=-2147483648;h=0}D[e>>2]=h;D[e+4>>2]=g;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break a}c=c-e|0;a=(e<<3)+d|0;break b;case 9:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;k=D[e+4>>2];while(1){if(b>>>0>=k>>>0){break a}j=I[b>>3];if(j>0x8000000000000000|j<-0x8000000000000000|j!=j){break a}m=L(j);if(m==V){break a}e=(f<<3)+d|0;e:{if(m<0x8000000000000000){g=L(j)>=1?~~(j>0?N(P(j*2.3283064365386963e-10),4294967295):Q((j-+(~~j>>>0>>>0))*2.3283064365386963e-10))>>>0:0;h=~~j>>>0;break e}g=-2147483648;h=0}D[e>>2]=h;D[e+4>>2]=g;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break a}c=c-e|0;a=(e<<3)+d|0;break b;case 10:break c;default:break a}}e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;D[e>>2]=E[b|0];D[e+4>>2]=0;b=b+1|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break a}c=c-e|0;a=(e<<3)+d|0}qa(a,0,c<<3)}}function od(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{c:{d:{e:{if(D[a+92>>2]==D[a+88>>2]){break e}c=D[a+52>>2];f:{if((c|0)!=D[a+56>>2]){D[c>>2]=b;D[a+52>>2]=c+4;break f}d=D[a+48>>2];h=c-d|0;f=h>>2;e=f+1|0;if(e>>>0>=1073741824){break a}c=h>>1;e=h>>>0<2147483644?c>>>0>e>>>0?c:e:1073741823;if(e){if(e>>>0>=1073741824){break d}c=na(e<<2)}else{c=0}f=c+(f<<2)|0;D[f>>2]=b;if((h|0)>0){oa(c,d,h)}D[a+56>>2]=c+(e<<2);D[a+52>>2]=f+4;D[a+48>>2]=c;if(!d){break f}ma(d)}D[a+84>>2]=0;f=-1;c=-1;g:{if((b|0)==-1){break g}e=D[a+4>>2];c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)!=-1){f=D[D[e>>2]+(c<<2)>>2]}h:{if((b>>>0)%3|0){d=b-1|0;break h}d=b+2|0;c=-1;if((d|0)==-1){break g}}c=D[D[e>>2]+(d<<2)>>2]}i=c>>>3&536870908;e=D[a+36>>2];g=e+(f>>>3&536870908)|0;h=D[g>>2];d=1<<f;if(!(h&d)){D[g>>2]=d|h;g=a+8|0;if((b|0)!=-1){e=b+1|0;d=(e>>>0)%3|0?e:b-2|0}else{d=-1}Ma(g,f,d);e=D[a+36>>2]}d=e+i|0;e=D[d>>2];f=1<<c;if(!(e&f)){D[d>>2]=e|f;d=a+8|0;f=-1;i:{if((b|0)==-1){break i}f=b-1|0;if((b>>>0)%3|0){break i}f=b+2|0}Ma(d,c,f)}f=-1;f=(b|0)!=-1?D[D[D[a+4>>2]>>2]+(b<<2)>>2]:f;d=D[a+36>>2]+(f>>>3&536870908)|0;e=D[d>>2];c=1<<f;if(!(e&c)){D[d>>2]=c|e;Ma(a+8|0,f,b)}d=D[a+84>>2];if((d|0)>2){break e}while(1){f=J(d,12)+a|0;b=D[f+52>>2];if((b|0)==D[f+48>>2]){d=d+1|0;if((d|0)!=3){continue}break e}c=b-4|0;b=D[c>>2];D[f+52>>2]=c;D[a+84>>2]=d;if((b|0)==-1){break e}f=D[a+24>>2];c=(b>>>0)/3|0;j:{if(D[f+(c>>>3&268435452)>>2]>>>c&1){break j}k:{while(1){i=(b>>>0)/3|0;c=(i>>>3&268435452)+f|0;D[c>>2]=D[c>>2]|1<<i;f=-1;l:{m:{n:{o:{p:{q:{r:{s:{f=(b|0)!=-1?D[D[D[a+4>>2]>>2]+(b<<2)>>2]:f;d=D[a+36>>2]+(f>>>3&536870908)|0;e=D[d>>2];c=1<<f;if(!(e&c)){D[d>>2]=c|e;h=D[(D[D[a+16>>2]+96>>2]+J(i,12)|0)+((b>>>0)%3<<2)>>2];k=D[D[a+20>>2]+4>>2];c=D[k+4>>2];t:{if((c|0)!=D[k+8>>2]){D[c>>2]=h;D[k+4>>2]=c+4;break t}g=D[k>>2];j=c-g|0;e=j>>2;d=e+1|0;if(d>>>0>=1073741824){break s}c=j>>1;d=j>>>0<2147483644?c>>>0>d>>>0?c:d:1073741823;if(d){if(d>>>0>=1073741824){break d}c=na(d<<2)}else{c=0}e=c+(e<<2)|0;D[e>>2]=h;if((j|0)>0){oa(c,g,j)}D[k+8>>2]=c+(d<<2);D[k+4>>2]=e+4;D[k>>2]=c;if(!g){break t}ma(g)}j=D[a+12>>2];c=D[j+4>>2];u:{if((c|0)!=D[j+8>>2]){D[c>>2]=b;D[j+4>>2]=c+4;break u}h=D[j>>2];g=c-h|0;e=g>>2;d=e+1|0;if(d>>>0>=1073741824){break r}c=g>>1;d=g>>>0<2147483644?c>>>0>d>>>0?c:d:1073741823;if(d){if(d>>>0>=1073741824){break d}c=na(d<<2)}else{c=0}e=c+(e<<2)|0;D[e>>2]=b;if((g|0)>0){oa(c,h,g)}D[j+8>>2]=c+(d<<2);D[j+4>>2]=e+4;D[j>>2]=c;if(!h){break u}ma(h)}c=D[a+12>>2];D[D[c+12>>2]+(f<<2)>>2]=D[c+24>>2];D[c+24>>2]=D[c+24>>2]+1}if((b|0)==-1){break k}g=D[a+4>>2];f=-1;c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)!=-1){f=D[D[g+12>>2]+(c<<2)>>2]}v:{w:{if((J(i,3)|0)!=(b|0)){e=b-1|0;break w}e=b+2|0;b=-1;if((e|0)==-1){break v}}b=D[D[g+12>>2]+(e<<2)>>2]}h=(b|0)==-1;e=(b>>>0)/3|0;if((f|0)!=-1){c=(f>>>0)/3|0;c=D[D[a+24>>2]+(c>>>3&268435452)>>2]&1<<c;if(h){break q}d=(c|0)!=0;break p}d=1;if(!h){break p}break k}pa();T()}pa();T()}if(!c){break o}break k}c=h?-1:e;x:{if(D[D[a+24>>2]+(c>>>3&536870908)>>2]>>>c&1){break x}e=0;c=D[D[g>>2]+(b<<2)>>2];if(!(D[D[a+36>>2]+(c>>>3&536870908)>>2]>>>c&1)){c=D[a+88>>2]+(c<<2)|0;e=D[c>>2];D[c>>2]=e+1;e=(e|0)<=0?2:1}if(D[a+84>>2]>=(e|0)?d:0){break m}k=J(e,12)+a|0;c=D[k+52>>2];y:{if((c|0)!=D[k+56>>2]){D[c>>2]=b;D[k+52>>2]=c+4;break y}i=D[k+48>>2];j=c-i|0;h=j>>2;g=h+1|0;if(g>>>0>=1073741824){break c}c=j>>1;g=j>>>0<2147483644?c>>>0>g>>>0?c:g:1073741823;if(g){if(g>>>0>=1073741824){break d}c=na(g<<2)}else{c=0}h=c+(h<<2)|0;D[h>>2]=b;if((j|0)>0){oa(c,i,j)}D[k+48>>2]=c;D[k+52>>2]=h+4;D[k+56>>2]=c+(g<<2);if(!i){break y}ma(i)}if(D[a+84>>2]<=(e|0)){break x}D[a+84>>2]=e}if(d){break k}b=-1;if((f|0)==-1){break n}}b=D[D[D[a+4>>2]>>2]+(f<<2)>>2]}e=0;if(!(D[D[a+36>>2]+(b>>>3&536870908)>>2]>>>b&1)){b=D[a+88>>2]+(b<<2)|0;c=D[b>>2];D[b>>2]=c+1;e=(c|0)<=0?2:1}if(D[a+84>>2]<(e|0)){break l}b=f}f=D[a+24>>2];continue}break}i=J(e,12)+a|0;b=D[i+52>>2];z:{if((b|0)!=D[i+56>>2]){D[b>>2]=f;D[i+52>>2]=b+4;break z}h=D[i+48>>2];g=b-h|0;c=g>>2;d=c+1|0;if(d>>>0>=1073741824){break b}b=g>>1;d=g>>>0<2147483644?b>>>0>d>>>0?b:d:1073741823;if(d){if(d>>>0>=1073741824){break d}b=na(d<<2)}else{b=0}c=b+(c<<2)|0;D[c>>2]=f;if((g|0)>0){oa(b,h,g)}D[i+48>>2]=b;D[i+52>>2]=c+4;D[i+56>>2]=b+(d<<2);if(!h){break z}ma(h)}d=D[a+84>>2];if((d|0)<=(e|0)){break j}D[a+84>>2]=e;d=e;break j}d=D[a+84>>2]}if((d|0)<3){continue}break}}return 1}sa();T()}pa();T()}pa();T()}pa();T()}function Bb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=K(0),k=0,l=K(0),m=0;a:{b:{if(!d){break b}c:{d:{switch(D[a+28>>2]-1|0){case 0:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=B[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 1:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 2:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=F[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 3:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=C[b>>1];if((e|0)<0){break b}C[(g<<1)+d>>1]=e;b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}h=1;if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 4:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(e-32768>>>0<4294901760){break a}C[(g<<1)+d>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 5:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(e>>>0>32767){break a}C[(g<<1)+d>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 6:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}i=D[b>>2];e=D[b+4>>2]-(i>>>0<32768)|0;if((e|0)==-1&i-32768>>>0<4294901760|(e|0)!=-1){break a}C[(g<<1)+d>>1]=i;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 7:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b+4>>2];i=D[b>>2];if(!e&i>>>0>32767|e){break a}C[(g<<1)+d>>1]=i;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 8:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}j=H[b>>2];if(j>K(32767)|j<K(-32768)|j!=j){break a}l=K(L(j));if(l==K(V)){break a}i=(g<<1)+d|0;if(l<K(2147483648)){e=~~j}else{e=-2147483648}C[i>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 9:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}k=I[b>>3];if(k>32767|k<-32768|k!=k){break a}m=L(k);if(m==V){break a}i=(g<<1)+d|0;if(m<2147483648){e=~~k}else{e=-2147483648}C[i>>1]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 10:break d;default:break b}}h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0}qa(a,0,c<<1)}return h}return 0}function Ab(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=K(0),k=0;a:{b:{if(!d){break b}c:{d:{switch(D[a+28>>2]-1|0){case 0:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=B[b|0];if((e|0)<0){break b}C[(g<<1)+d>>1]=e&255;b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}h=1;if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 1:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 2:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=C[b>>1];if((e|0)<0){break b}C[(g<<1)+d>>1]=e;b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}h=1;if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 3:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=F[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 4:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(e>>>0>65535){break a}C[(g<<1)+d>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 5:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(e>>>0>65535){break a}C[(g<<1)+d>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 6:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b+4>>2];i=D[b>>2];if(!e&i>>>0>65535|e){break a}C[(g<<1)+d>>1]=i;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 7:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b+4>>2];i=D[b>>2];if(!e&i>>>0>65535|e){break a}C[(g<<1)+d>>1]=i;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 8:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}j=H[b>>2];if(j>K(65535)|j<K(0)|(K(L(j))==K(V)|j!=j)){break a}i=(g<<1)+d|0;if(j<K(4294967296)&j>=K(0)){e=~~j>>>0}else{e=0}C[i>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 9:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}k=I[b>>3];if(k>65535|k<0|(L(k)==V|k!=k)){break a}i=(g<<1)+d|0;if(k<4294967296&k>=0){e=~~k>>>0}else{e=0}C[i>>1]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0;break c;case 10:break d;default:break b}}h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<1)+d|0}qa(a,0,c<<1)}return h}return 0}function zb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=K(0),k=0,l=K(0),m=0;a:{b:{if(!d){break b}c:{d:{switch(D[a+28>>2]-1|0){case 0:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=B[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 1:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 2:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=C[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 3:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=F[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 4:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=D[b>>2];b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 5:e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if((e|0)<0){break b}D[(g<<2)+d>>2]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}h=1;if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 6:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if((D[b+4>>2]-(e>>>0<2147483648)|0)!=-1){break a}D[(g<<2)+d>>2]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 7:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b+4>>2];i=D[b>>2];if(!e&i>>>0>2147483647|e){break a}D[(g<<2)+d>>2]=i;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 8:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}j=H[b>>2];if(j>K(2147483648)|j<K(-2147483648)|j!=j){break a}l=K(L(j));if(l==K(V)){break a}i=(g<<2)+d|0;if(l<K(2147483648)){e=~~j}else{e=-2147483648}D[i>>2]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 9:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}k=I[b>>3];if(k>2147483647|k<-2147483648|k!=k){break a}m=L(k);if(m==V){break a}i=(g<<2)+d|0;if(m<2147483648){e=~~k}else{e=-2147483648}D[i>>2]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 10:break d;default:break b}}h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0}qa(a,0,c<<2)}return h}return 0}function yb(a,b,c,d){var e=0,f=0,g=0,h=0,i=K(0),j=0,k=0;a:{b:{if(!d){break b}c:{d:{switch(D[a+28>>2]-1|0){case 0:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=B[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 1:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 2:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=C[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 3:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=F[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 4:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=D[b>>2];b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 5:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=D[b>>2];b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 6:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(D[b+4>>2]){break a}D[(g<<2)+d>>2]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 7:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(D[b+4>>2]){break a}D[(g<<2)+d>>2]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 8:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}i=H[b>>2];if(i>K(4294967296)|i<K(0)|(K(L(i))==K(V)|i!=i)){break a}k=(g<<2)+d|0;if(i<K(4294967296)&i>=K(0)){e=~~i>>>0}else{e=0}D[k>>2]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 9:h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}j=I[b>>3];if(j>4294967295|j<0|(L(j)==V|j!=j)){break a}k=(g<<2)+d|0;if(j<4294967296&j>=0){e=~~j>>>0}else{e=0}D[k>>2]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0;break c;case 10:break d;default:break b}}h=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break b}c=c-e|0;a=(e<<2)+d|0}qa(a,0,c<<2)}return h}return 0}function Mb(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,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;f=$-96|0;$=f;e=D[a+16>>2];B[f+92|0]=1;D[f+88>>2]=b;D[f+84>>2]=b;D[f+80>>2]=e;k=D[a+20>>2];d=D[k>>2];a:{b:{e=D[D[e+28>>2]+(b<<2)>>2];if(e>>>0<D[k+4>>2]-d>>2>>>0){d=D[D[a+8>>2]+(D[d+(e<<2)>>2]<<2)>>2];e=D[a+4>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}D[f+72>>2]=0;D[f+76>>2]=0;k=f- -64|0;D[k>>2]=0;D[k+4>>2]=0;D[f+56>>2]=0;D[f+60>>2]=0;Ia(e,d,B[e+24|0],f+56|0);if((b|0)!=-1){e=b+1|0;k=(e>>>0)%3|0?e:b-2|0;i=((b>>>0)%3|0?-1:2)+b|0;while(1){d=k;e=i;c:{if(!D[a+28>>2]){break c}e=b+1|0;d=(e>>>0)%3|0?e:b-2|0;e=b-1|0;if((b>>>0)%3|0){break c}e=b+2|0}h=D[a+20>>2];b=D[h>>2];d=D[D[D[a+16>>2]+28>>2]+(d<<2)>>2];if(d>>>0>=D[h+4>>2]-b>>2>>>0){break b}d=D[D[a+8>>2]+(D[b+(d<<2)>>2]<<2)>>2];b=D[a+4>>2];if(!E[b+84|0]){d=D[D[b+68>>2]+(d<<2)>>2]}D[f+48>>2]=0;D[f+52>>2]=0;D[f+40>>2]=0;D[f+44>>2]=0;D[f+32>>2]=0;D[f+36>>2]=0;Ia(b,d,B[b+24|0],f+32|0);d=D[a+20>>2];b=D[d>>2];e=D[D[D[a+16>>2]+28>>2]+(e<<2)>>2];if(e>>>0>=D[d+4>>2]-b>>2>>>0){break a}d=D[D[a+8>>2]+(D[b+(e<<2)>>2]<<2)>>2];b=D[a+4>>2];if(!E[b+84|0]){d=D[D[b+68>>2]+(d<<2)>>2]}D[f+24>>2]=0;D[f+28>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;D[f+8>>2]=0;D[f+12>>2]=0;Ia(b,d,B[b+24|0],f+8|0);e=D[f+8>>2];b=D[f+56>>2];d=e-b|0;h=D[f+60>>2];j=D[f+12>>2]-(h+(b>>>0>e>>>0)|0)|0;p=D[f+40>>2];e=D[f+64>>2];s=p-e|0;t=D[f+68>>2];p=D[f+44>>2]-(t+(e>>>0>p>>>0)|0)|0;u=fi(d,j,s,p);v=n-u|0;n=g-(aa+(n>>>0<u>>>0)|0)|0;o=v;g=D[f+16>>2];u=g-e|0;t=D[f+20>>2]-((e>>>0>g>>>0)+t|0)|0;g=D[f+32>>2];v=g-b|0;h=D[f+36>>2]-((b>>>0>g>>>0)+h|0)|0;e=fi(u,t,v,h);b=o+e|0;g=aa+n|0;g=b>>>0<e>>>0?g+1|0:g;n=b;e=l;o=d;x=j;b=D[f+48>>2];l=D[f+72>>2];d=b-l|0;j=D[f+76>>2];w=D[f+52>>2]-(j+(b>>>0<l>>>0)|0)|0;o=fi(o,x,d,w);e=e+o|0;b=aa+m|0;b=e>>>0<o>>>0?b+1|0:b;m=D[f+24>>2];o=m-l|0;j=D[f+28>>2]-((l>>>0>m>>>0)+j|0)|0;m=fi(o,j,v,h);l=e-m|0;m=b-(aa+(e>>>0<m>>>0)|0)|0;b=fi(u,t,d,w);e=q-b|0;b=r-(aa+(b>>>0>q>>>0)|0)|0;r=fi(o,j,s,p);q=r+e|0;b=aa+b|0;b=q>>>0<r>>>0?b+1|0:b;r=b;b=D[f+88>>2];e=D[f+80>>2];d:{if(E[f+92|0]){e:{f:{g:{h:{if((b|0)==-1){break h}d=b+1|0;b=(d>>>0)%3|0?d:b-2|0;if((b|0)==-1|D[D[e>>2]+(b>>>3&536870908)>>2]>>>b&1){break h}b=D[D[D[e+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break g}}D[f+88>>2]=-1;break f}d=b+1|0;b=(d>>>0)%3|0?d:b-2|0;D[f+88>>2]=b;if((b|0)!=-1){break e}}b=D[f+84>>2];d=-1;i:{if((b|0)==-1){break i}j:{if((b>>>0)%3|0){b=b-1|0;break j}b=b+2|0;d=-1;if((b|0)==-1){break i}}d=-1;if(D[D[e>>2]+(b>>>3&536870908)>>2]>>>b&1){break i}b=D[D[D[e+64>>2]+12>>2]+(b<<2)>>2];d=-1;if((b|0)==-1){break i}d=b-1|0;if((b>>>0)%3|0){break i}d=b+2|0}B[f+92|0]=0;D[f+88>>2]=d;break d}if((b|0)!=D[f+84>>2]){break d}D[f+88>>2]=-1;break d}d=-1;k:{if((b|0)==-1){break k}l:{if((b>>>0)%3|0){b=b-1|0;break l}b=b+2|0;d=-1;if((b|0)==-1){break k}}d=-1;if(D[D[e>>2]+(b>>>3&536870908)>>2]>>>b&1){break k}b=D[D[D[e+64>>2]+12>>2]+(b<<2)>>2];d=-1;if((b|0)==-1){break k}d=b-1|0;if((b>>>0)%3|0){break k}d=b+2|0}D[f+88>>2]=d}b=D[f+88>>2];if((b|0)!=-1){continue}break}}b=r>>31;e=b^q;j=e-b|0;h=(b^r)-((b>>>0>e>>>0)+b|0)|0;p=-1;e=2147483647;b=m>>31;k=b^l;d=(b^m)-((b>>>0>k>>>0)+b|0)|0;b=k-b|0;s=b^-1;i=d^2147483647;k=g;m:{n:{if(!D[a+28>>2]){if((i|0)==(h|0)&j>>>0>s>>>0|i>>>0<h>>>0){break m}i=g;a=b;e=b+j|0;b=d+h|0;b=a>>>0>e>>>0?b+1|0:b;a=g>>31;d=a;h=d^n;j=h-d|0;g=e+j|0;d=(d^i)-((d>>>0>h>>>0)+d|0)|0;a=g;g=d^2147483647;g=(g|0)==(b|0)&(j^-1)>>>0<e>>>0|b>>>0>g>>>0;a=g?-1:a;if(!(g&0)&(a|0)<=536870912|(a|0)<536870912){break m}b=0;a=a>>>29|0;break n}o:{if((i|0)==(h|0)&j>>>0>s>>>0|i>>>0<h>>>0){break o}a=b;i=b+j|0;b=d+h|0;b=a>>>0>i>>>0?b+1|0:b;a=i;h=g;d=g>>31;g=d;i=d^n;d=(d^h)-(d+(d>>>0>i>>>0)|0)|0;g=i-g|0;i=d^2147483647;if((i|0)==(b|0)&(g^-1)>>>0<a>>>0|b>>>0>i>>>0){break o}b=b+d|0;a=a+g|0;b=a>>>0<g>>>0?b+1|0:b;p=a;e=b;if(!b&a>>>0<536870913){break m}}b=e>>>29|0;a=(e&536870911)<<3|p>>>29}n=gi(n,k,a,b);l=gi(l,m,a,b);q=gi(q,r,a,b)}D[c+8>>2]=n;D[c+4>>2]=l;D[c>>2]=q;$=f+96|0;return}va();T()}va();T()}va();T()}function Db(a,b,c,d){var e=0,f=0,g=0,h=0,i=K(0),j=0,k=K(0),l=0;a:{b:{c:{if(!d){break c}d:{switch(D[a+28>>2]-1|0){case 0:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}B[d+f|0]=E[b|0];b=b+1|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 1:g=B[a+24|0];if((((c|0)>(g|0)?g:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}g=0;e=B[b|0];if((e|0)<0){break c}B[d+f|0]=e;b=b+1|0;f=f+1|0;g=B[a+24|0];if((f|0)<(((c|0)>(g|0)?g:c)|0)){continue}break}}if((c|0)<=(g|0)){return 1}qa(d+g|0,0,c-g|0);return 1;case 2:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}e=F[b>>1];if((e-128&65535)>>>0<65280){break b}B[d+f|0]=e;b=b+2|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 3:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}e=F[b>>1];if(e>>>0>127){break b}B[d+f|0]=e;b=b+2|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 4:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}e=D[b>>2];if(e-128>>>0<4294967040){break b}B[d+f|0]=e;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 5:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}e=D[b>>2];if(e>>>0>127){break b}B[d+f|0]=e;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 6:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}h=D[b>>2];e=D[b+4>>2]-(h>>>0<128)|0;if((e|0)==-1&h-128>>>0<4294967040|(e|0)!=-1){break b}B[d+f|0]=h;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 7:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}e=D[b+4>>2];h=D[b>>2];if(!e&h>>>0>127|e){break b}B[d+f|0]=h;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 8:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}i=H[b>>2];if(i>K(127)|i<K(-128)|i!=i){break b}k=K(L(i));if(k==K(V)){break b}h=d+f|0;if(k<K(2147483648)){e=~~i}else{e=-2147483648}B[h|0]=e;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 9:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}j=I[b>>3];if(j>127|j<-128|j!=j){break b}l=L(j);if(l==V){break b}h=d+f|0;if(l<2147483648){e=~~j}else{e=-2147483648}B[h|0]=e;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 10:break d;default:break c}}g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}B[d+f|0]=E[b|0];b=b+1|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}qa(d+e|0,0,c-e|0)}return g}return 0}qa(d+e|0,0,c-e|0);return 1}function Cb(a,b,c,d){var e=0,f=0,g=0,h=0,i=K(0),j=0;a:{b:{c:{if(!d){break c}d:{switch(D[a+28>>2]-1|0){case 0:g=B[a+24|0];if((((c|0)>(g|0)?g:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}g=0;e=B[b|0];if((e|0)<0){break c}B[d+f|0]=e;b=b+1|0;f=f+1|0;g=B[a+24|0];if((f|0)<(((c|0)>(g|0)?g:c)|0)){continue}break}}if((c|0)<=(g|0)){return 1}qa(d+g|0,0,c-g|0);return 1;case 1:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}B[d+f|0]=E[b|0];b=b+1|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 2:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}e=F[b>>1];if(e>>>0>255){break b}B[d+f|0]=e;b=b+2|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 3:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}e=F[b>>1];if(e>>>0>255){break b}B[d+f|0]=e;b=b+2|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 4:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}e=D[b>>2];if(e>>>0>255){break b}B[d+f|0]=e;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 5:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}e=D[b>>2];if(e>>>0>255){break b}B[d+f|0]=e;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 6:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}e=D[b+4>>2];h=D[b>>2];if(!e&h>>>0>255|e){break b}B[d+f|0]=h;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 7:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}e=D[b+4>>2];h=D[b>>2];if(!e&h>>>0>255|e){break b}B[d+f|0]=h;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 8:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}i=H[b>>2];if(i>K(255)|i<K(0)|(K(L(i))==K(V)|i!=i)){break b}h=d+f|0;if(i<K(4294967296)&i>=K(0)){e=~~i>>>0}else{e=0}B[h|0]=e;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 9:g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}j=I[b>>3];if(j>255|j<0|(L(j)==V|j!=j)){break b}h=d+f|0;if(j<4294967296&j>=0){e=~~j>>>0}else{e=0}B[h|0]=e;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}break a;case 10:break d;default:break c}}g=1;e=B[a+24|0];if((((c|0)>(e|0)?e:c)|0)>0){e=D[D[a>>2]>>2];b=D[a+48>>2]+fi(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[D[a>>2]+4>>2]<=b>>>0){break b}B[d+f|0]=E[b|0];b=b+1|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)>(e|0)?e:c)|0)){continue}break}}if((c|0)<=(e|0)){break c}qa(d+e|0,0,c-e|0)}return g}return 0}qa(d+e|0,0,c-e|0);return 1}function gc(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=$-48|0;$=e;d=F[5053]|F[5054]<<16;f=F[5051]|F[5052]<<16;C[e+38>>1]=f;C[e+40>>1]=f>>>16;C[e+42>>1]=d;C[e+44>>1]=d>>>16;d=D[2525];D[e+32>>2]=D[2524];D[e+36>>2]=d;d=D[2523];D[e+24>>2]=D[2522];D[e+28>>2]=d;d=D[2521];D[e+16>>2]=D[2520];D[e+20>>2]=d;f=D[b+12>>2];d=D[b+20>>2];g=D[b+16>>2];h=g+5|0;d=h>>>0<5?d+1|0:d;a:{b:{if(h>>>0>G[b+8>>2]&(d|0)>=(f|0)|(d|0)>(f|0)){b=Ba(e+16|0);if(b>>>0>=4294967280){break a}c:{d:{if(b>>>0>=11){d=b+16&-16;c=na(d);D[e+8>>2]=d|-2147483648;D[e>>2]=c;D[e+4>>2]=b;break d}B[e+11|0]=b;c=e;if(!b){break c}}oa(c,e+16|0,b)}B[b+c|0]=0;D[a>>2]=-2;a=a+4|0;if(B[e+11|0]>=0){b=D[e+4>>2];D[a>>2]=D[e>>2];D[a+4>>2]=b;D[a+8>>2]=D[e+8>>2];break b}b=a;a=D[e>>2];ta(b,a,D[e+4>>2]);ma(a);break b}d=g+D[b>>2]|0;f=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);B[c|0]=f;B[c+1|0]=f>>>8;B[c+2|0]=f>>>16;B[c+3|0]=f>>>24;B[c+4|0]=E[d+4|0];d=D[b+20>>2];f=D[b+16>>2]+5|0;d=f>>>0<5?d+1|0:d;D[b+16>>2]=f;D[b+20>>2]=d;if(ua(c,1250,5)){b=na(32);B[b+16|0]=E[1494];c=E[1490]|E[1491]<<8|(E[1492]<<16|E[1493]<<24);d=E[1486]|E[1487]<<8|(E[1488]<<16|E[1489]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1482]|E[1483]<<8|(E[1484]<<16|E[1485]<<24);d=E[1478]|E[1479]<<8|(E[1480]<<16|E[1481]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+17|0]=0;D[a>>2]=-1;ta(a+4|0,b,17);ma(b);break b}g=D[b+12>>2];if((g|0)<=(d|0)&G[b+8>>2]<=f>>>0|(d|0)>(g|0)){b=Ba(e+16|0);if(b>>>0>=4294967280){break a}e:{f:{if(b>>>0>=11){d=b+16&-16;c=na(d);D[e+8>>2]=d|-2147483648;D[e>>2]=c;D[e+4>>2]=b;break f}B[e+11|0]=b;c=e;if(!b){break e}}oa(c,e+16|0,b)}B[b+c|0]=0;D[a>>2]=-2;a=a+4|0;if(B[e+11|0]>=0){b=D[e+4>>2];D[a>>2]=D[e>>2];D[a+4>>2]=b;D[a+8>>2]=D[e+8>>2];break b}b=a;a=D[e>>2];ta(b,a,D[e+4>>2]);ma(a);break b}B[c+5|0]=E[f+D[b>>2]|0];d=D[b+20>>2];f=D[b+16>>2]+1|0;d=f?d:d+1|0;D[b+16>>2]=f;D[b+20>>2]=d;g=D[b+12>>2];if((g|0)<=(d|0)&G[b+8>>2]<=f>>>0|(d|0)>(g|0)){b=Ba(e+16|0);if(b>>>0>=4294967280){break a}g:{h:{if(b>>>0>=11){d=b+16&-16;c=na(d);D[e+8>>2]=d|-2147483648;D[e>>2]=c;D[e+4>>2]=b;break h}B[e+11|0]=b;c=e;if(!b){break g}}oa(c,e+16|0,b)}B[b+c|0]=0;D[a>>2]=-2;a=a+4|0;if(B[e+11|0]>=0){b=D[e+4>>2];D[a>>2]=D[e>>2];D[a+4>>2]=b;D[a+8>>2]=D[e+8>>2];break b}b=a;a=D[e>>2];ta(b,a,D[e+4>>2]);ma(a);break b}B[c+6|0]=E[f+D[b>>2]|0];d=D[b+20>>2];f=D[b+16>>2]+1|0;d=f?d:d+1|0;D[b+16>>2]=f;D[b+20>>2]=d;g=D[b+12>>2];if((g|0)<=(d|0)&G[b+8>>2]<=f>>>0|(d|0)>(g|0)){b=Ba(e+16|0);if(b>>>0>=4294967280){break a}i:{j:{if(b>>>0>=11){d=b+16&-16;c=na(d);D[e+8>>2]=d|-2147483648;D[e>>2]=c;D[e+4>>2]=b;break j}B[e+11|0]=b;c=e;if(!b){break i}}oa(c,e+16|0,b)}B[b+c|0]=0;D[a>>2]=-2;a=a+4|0;if(B[e+11|0]>=0){b=D[e+4>>2];D[a>>2]=D[e>>2];D[a+4>>2]=b;D[a+8>>2]=D[e+8>>2];break b}b=a;a=D[e>>2];ta(b,a,D[e+4>>2]);ma(a);break b}B[c+7|0]=E[f+D[b>>2]|0];d=D[b+20>>2];f=D[b+16>>2]+1|0;d=f?d:d+1|0;D[b+16>>2]=f;D[b+20>>2]=d;g=D[b+12>>2];if((g|0)<=(d|0)&G[b+8>>2]<=f>>>0|(d|0)>(g|0)){b=Fb(e,e+16|0);D[a>>2]=-2;a=a+4|0;if(B[b+11|0]>=0){c=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=c;D[a+8>>2]=D[b+8>>2];break b}ta(a,D[b>>2],D[b+4>>2]);if(B[b+11|0]>=0){break b}ma(D[b>>2]);break b}B[c+8|0]=E[f+D[b>>2]|0];d=D[b+20>>2];f=d;i=D[b+16>>2];g=i+1|0;d=g?d:d+1|0;D[b+16>>2]=g;D[b+20>>2]=d;h=D[b+12>>2];d=f;f=i+3|0;d=f>>>0<3?d+1|0:d;if(f>>>0>G[b+8>>2]&(d|0)>=(h|0)|(d|0)>(h|0)){b=Fb(e,e+16|0);D[a>>2]=-2;a=a+4|0;if(B[b+11|0]>=0){c=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=c;D[a+8>>2]=D[b+8>>2];break b}ta(a,D[b>>2],D[b+4>>2]);if(B[b+11|0]>=0){break b}ma(D[b>>2]);break b}f=c;c=g+D[b>>2]|0;C[f+10>>1]=E[c|0]|E[c+1|0]<<8;d=D[b+20>>2];c=D[b+16>>2]+2|0;d=c>>>0<2?d+1|0:d;D[b+16>>2]=c;D[b+20>>2]=d;D[a+8>>2]=0;D[a+12>>2]=0;D[a>>2]=0;D[a+4>>2]=0}$=e+48|0;return}Ca();T()}function Fg(a){a=a|0;var 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;g=$-32|0;$=g;a:{if(!jb(1,g+28|0,D[a+32>>2])){break a}if(!jb(1,g+24|0,D[a+32>>2])){break a}m=D[g+28>>2];if(m>>>0>1431655765){break a}b=D[a+32>>2];j=D[b+8>>2];f=j;c=D[b+16>>2];h=f-c|0;e=D[b+12>>2];o=c>>>0>f>>>0;f=D[b+20>>2];n=gi(h,e-(o+f|0)|0,3,0);if(!aa&m>>>0>n>>>0){break a}n=D[g+24>>2];h=fi(m,0,3,0);if(!aa&h>>>0<n>>>0|((e|0)<=(f|0)&c>>>0>=j>>>0|(e|0)<(f|0))){break a}e=E[c+D[b>>2]|0];c=c+1|0;f=c?f:f+1|0;D[b+16>>2]=c;D[b+20>>2]=f;b:{c:{if(!e){f=0;c=$-32|0;$=c;D[c+24>>2]=0;D[c+16>>2]=0;D[c+20>>2]=0;d:{e:{b=J(m,3);if(b){if(b>>>0>=1073741824){break e}e=J(m,12);f=na(e);D[c+16>>2]=f;qa(f,0,e)}b=jc(b,1,D[a+32>>2],f);f:{g:{if(!(!b|!m)){j=0;e=0;while(1){o=d;h=(e<<2)+f|0;d=D[h>>2];i=d>>>1|0;d=o+(d&1?0-i|0:i)|0;D[c>>2]=d;i=D[h+4>>2];k=i>>>1|0;d=d+(i&1?0-k|0:k)|0;D[c+4>>2]=d;h=D[h+8>>2];i=h>>>1|0;d=d+(h&1?0-i|0:i)|0;D[c+8>>2]=d;ob(D[a+44>>2]+96|0,c);e=e+3|0;j=j+1|0;if((j|0)!=(m|0)){continue}break}break g}if(!f){break f}}ma(f)}$=c+32|0;break d}pa();T()}if(b){break c}break a}if(n>>>0<=255){if(!m){break c}while(1){h:{D[g+16>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;c=D[a+32>>2];b=c;h=D[b+8>>2];e=D[b+12>>2];f=D[b+20>>2];j=D[b+16>>2];if((e|0)<=(f|0)&h>>>0<=j>>>0|(e|0)<(f|0)){break h}d=D[c>>2];k=E[d+j|0];b=f;i=j+1|0;b=i?b:b+1|0;D[c+16>>2]=i;D[c+20>>2]=b;D[g+8>>2]=k;if((b|0)>=(e|0)&i>>>0>=h>>>0|(b|0)>(e|0)){break h}k=E[d+i|0];b=f;i=j+2|0;b=i>>>0<2?b+1|0:b;D[c+16>>2]=i;D[c+20>>2]=b;D[g+12>>2]=k;if((b|0)>=(e|0)&i>>>0>=h>>>0|(b|0)>(e|0)){break h}b=E[d+i|0];e=j+3|0;f=e>>>0<3?f+1|0:f;D[c+16>>2]=e;D[c+20>>2]=f;D[g+16>>2]=b;ob(D[a+44>>2]+96|0,g+8|0);l=l+1|0;if((m|0)!=(l|0)){continue}break c}break}l=0;break a}if(n>>>0<=65535){if(!m){break c}while(1){i:{D[g+16>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;e=D[a+32>>2];c=D[e+12>>2];j=D[e+8>>2];b=D[e+20>>2];f=b;h=D[e+16>>2];d=h+2|0;b=d>>>0<2?b+1|0:b;if(d>>>0>j>>>0&(b|0)>=(c|0)|(b|0)>(c|0)){break i}i=D[e>>2];k=i+h|0;k=E[k|0]|E[k+1|0]<<8;D[e+16>>2]=d;D[e+20>>2]=b;D[g+8>>2]=k;b=f;k=h+4|0;b=k>>>0<4?b+1|0:b;if(k>>>0>j>>>0&(b|0)>=(c|0)|(b|0)>(c|0)){break i}d=d+i|0;d=E[d|0]|E[d+1|0]<<8;D[e+16>>2]=k;D[e+20>>2]=b;D[g+12>>2]=d;b=f;f=h+6|0;b=f>>>0<6?b+1|0:b;if(f>>>0>j>>>0&(b|0)>=(c|0)|(b|0)>(c|0)){break i}c=i+k|0;c=E[c|0]|E[c+1|0]<<8;D[e+16>>2]=f;D[e+20>>2]=b;D[g+16>>2]=c;ob(D[a+44>>2]+96|0,g+8|0);l=l+1|0;if((m|0)!=(l|0)){continue}break c}break}l=0;break a}j:{if(n>>>0>2097151){break j}b=F[a+36>>1];if(((b<<8|b>>>8)&65535)>>>0<514){break j}if(!m){break c}while(1){k:{D[g+16>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;if(!jb(1,g+4|0,D[a+32>>2])){break k}D[g+8>>2]=D[g+4>>2];if(!jb(1,g+4|0,D[a+32>>2])){break k}D[g+12>>2]=D[g+4>>2];if(!jb(1,g+4|0,D[a+32>>2])){break k}D[g+16>>2]=D[g+4>>2];ob(D[a+44>>2]+96|0,g+8|0);l=l+1|0;if((m|0)!=(l|0)){continue}break c}break}l=0;break a}if(!m){break c}while(1){D[g+16>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;e=D[a+32>>2];c=D[e+12>>2];j=D[e+8>>2];b=D[e+20>>2];f=b;h=D[e+16>>2];d=h+4|0;b=d>>>0<4?b+1|0:b;i=d;if(d>>>0>j>>>0&(b|0)>=(c|0)|(b|0)>(c|0)){break b}k=D[e>>2];d=k+h|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[e+16>>2]=i;D[e+20>>2]=b;D[g+8>>2]=d;b=f;d=h+8|0;b=d>>>0<8?b+1|0:b;o=d;if(d>>>0>j>>>0&(b|0)>=(c|0)|(b|0)>(c|0)){break b}d=i+k|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[e+16>>2]=o;D[e+20>>2]=b;D[g+12>>2]=d;b=f;f=h+12|0;b=f>>>0<12?b+1|0:b;if(f>>>0>j>>>0&(b|0)>=(c|0)|(b|0)>(c|0)){break b}c=k+o|0;c=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[e+16>>2]=f;D[e+20>>2]=b;D[g+16>>2]=c;ob(D[a+44>>2]+96|0,g+8|0);l=l+1|0;if((m|0)!=(l|0)){continue}break}}D[D[a+4>>2]+80>>2]=n;l=1;break a}l=0}$=g+32|0;return l|0}function Id(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;g=$+-64|0;$=g;D[g+56>>2]=0;D[g+48>>2]=0;D[g+52>>2]=0;D[g+40>>2]=0;D[g+44>>2]=0;D[g+32>>2]=0;D[g+36>>2]=0;D[g+24>>2]=0;D[g+28>>2]=0;D[g+16>>2]=0;D[g+20>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;f=g+8|0;a:{b:{if(!F[b+38>>1]){break b}if(!Wa(1,f+12|0,b)){break b}d=D[b+8>>2];e=D[b+16>>2];i=d-e|0;j=D[f+12>>2];d=D[b+12>>2]-(D[b+20>>2]+(d>>>0<e>>>0)|0)|0;if(i>>>0<j>>>6>>>0&(d|0)<=0|(d|0)<0){break b}e=D[f>>2];d=D[f+4>>2]-e>>2;c:{if(d>>>0<j>>>0){ra(f,j-d|0);j=D[f+12>>2];break c}if(d>>>0<=j>>>0){break c}D[f+4>>2]=e+(j<<2)}h=1;if(!j){break a}k=D[b+16>>2];d=D[b+20>>2];r=D[f>>2];s=D[b+8>>2];p=D[b+12>>2];i=0;while(1){h=0;if((d|0)>=(p|0)&k>>>0>=s>>>0|(d|0)>(p|0)){break a}h=D[b>>2];n=E[h+k|0];e=k+1|0;d=e?d:d+1|0;k=e;D[b+16>>2]=e;D[b+20>>2]=d;e=n>>>2|0;l=0;d:{e:{f:{g:{t=n&3;switch(t|0){case 3:break g;case 0:break e;default:break f}}e=e+i|0;h=0;if(e>>>0>=j>>>0){break a}qa(r+(i<<2)|0,0,(n&252)+4|0);i=e;break d}while(1){if((d|0)>=(p|0)&k>>>0>=s>>>0|(d|0)>(p|0)){break b}j=E[k+h|0];k=k+1|0;d=k?d:d+1|0;D[b+16>>2]=k;D[b+20>>2]=d;e=j<<(l<<3|6)|e;l=l+1|0;if((t|0)!=(l|0)){continue}break}}D[r+(i<<2)>>2]=e}i=i+1|0;j=D[f+12>>2];if(i>>>0<j>>>0){continue}break}d=f+16|0;p=D[f>>2];i=D[f+16>>2];e=D[f+20>>2]-i|0;h:{if(e>>>0<=4194303){ra(d,1048576-(e>>>2|0)|0);break h}if((e|0)==4194304){break h}D[f+20>>2]=i+4194304}e=f+28|0;i=D[e>>2];h=D[f+32>>2]-i>>3;i:{if(h>>>0<j>>>0){db(e,j-h|0);i=D[e>>2];break i}if(j>>>0<h>>>0){D[f+32>>2]=(j<<3)+i}if(!j){break b}}k=D[d>>2];d=0;h=0;while(1){f=p+(d<<2)|0;l=D[f>>2];n=(d<<3)+i|0;e=h;D[n+4>>2]=e;D[n>>2]=l;f=D[f>>2];h=f+e|0;if(h>>>0>1048576){break b}j:{if(e>>>0>=h>>>0){break j}l=0;n=f&7;if(n){while(1){D[k+(e<<2)>>2]=d;e=e+1|0;l=l+1|0;if((n|0)!=(l|0)){continue}break}}if(f-1>>>0<=6){break j}while(1){f=k+(e<<2)|0;D[f>>2]=d;D[f+28>>2]=d;D[f+24>>2]=d;D[f+20>>2]=d;D[f+16>>2]=d;D[f+12>>2]=d;D[f+8>>2]=d;D[f+4>>2]=d;e=e+8|0;if((h|0)!=(e|0)){continue}break}}d=d+1|0;if((j|0)!=(d|0)){continue}break}m=(h|0)==1048576}h=m}k:{if(!h|(D[g+20>>2]?0:a)){break k}h=0;m=$-16|0;$=m;l:{if(!Va(1,m+8|0,b)){break l}d=D[b+8>>2];e=D[b+16>>2];f=d-e|0;j=D[m+12>>2];k=D[b+20>>2];d=D[b+12>>2]-(k+(d>>>0<e>>>0)|0)|0;i=D[m+8>>2];if((j|0)==(d|0)&f>>>0<i>>>0|d>>>0<j>>>0){break l}d=j+k|0;f=e+i|0;d=f>>>0<e>>>0?d+1|0:d;D[b+16>>2]=f;D[b+20>>2]=d;d=i;if((d|0)<=0){break l}b=e+D[b>>2]|0;D[g+48>>2]=b;e=d-1|0;i=e+b|0;f=E[i|0];m:{if(f>>>0<=63){D[g+52>>2]=e;b=E[i|0]&63;break m}n:{switch((f>>>6|0)-1|0){case 0:if(d>>>0<2){break l}D[g+52>>2]=d-2;b=(b+d|0)-2|0;b=E[b+1|0]<<8&16128|E[b|0];break m;case 1:if(d>>>0<3){break l}D[g+52>>2]=d-3;b=(b+d|0)-3|0;b=E[b+1|0]<<8|E[b+2|0]<<16&4128768|E[b|0];break m;default:break n}}D[g+52>>2]=d-4;b=(b+d|0)-4|0;b=E[b+2|0]<<16|E[b+3|0]<<24&1056964608|E[b+1|0]<<8|E[b|0]}D[g+56>>2]=b+4194304;h=b>>>0<1069547520}$=m+16|0;if(!h){break k}if(!a){o=1;break k}b=D[g+56>>2];d=D[g+36>>2];e=D[g+48>>2];i=D[g+24>>2];while(1){o:{if(b>>>0>4194303){break o}o=D[g+52>>2];while(1){if((o|0)<=0){break o}o=o-1|0;D[g+52>>2]=o;b=E[e+o|0]|b<<8;D[g+56>>2]=b;if(b>>>0<4194304){continue}break}}h=b&1048575;m=D[i+(h<<2)>>2];f=d+(m<<3)|0;b=(J(D[f>>2],b>>>20|0)+h|0)-D[f+4>>2]|0;D[g+56>>2]=b;D[(q<<2)+c>>2]=m;o=1;q=q+1|0;if((q|0)!=(a|0)){continue}break}}a=D[g+36>>2];if(a){D[g+40>>2]=a;ma(a)}a=D[g+24>>2];if(a){D[g+28>>2]=a;ma(a)}a=D[g+8>>2];if(a){D[g+12>>2]=a;ma(a)}$=g- -64|0;return o}function pe(a){a=a|0;var 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;f=$-16|0;$=f;n=ba[D[D[a>>2]+24>>2]](a)|0;a:{if((n|0)<=0){break a}r=a+48|0;g=1;while(1){b:{c:{if(!D[(ba[D[D[a>>2]+28>>2]](a)|0)+40>>2]){break c}p=h<<2;b=D[p+D[a+36>>2]>>2];d=D[b+8>>2];e=eb(b);if(!e){break c}i=D[(ba[D[D[a>>2]+28>>2]](a)|0)+40>>2];D[f+12>>2]=D[d+56>>2];b=na(32);D[f>>2]=b;D[f+4>>2]=24;D[f+8>>2]=-2147483616;B[b+24|0]=0;d=E[1196]|E[1197]<<8|(E[1198]<<16|E[1199]<<24);c=E[1192]|E[1193]<<8|(E[1194]<<16|E[1195]<<24);B[b+16|0]=c;B[b+17|0]=c>>>8;B[b+18|0]=c>>>16;B[b+19|0]=c>>>24;B[b+20|0]=d;B[b+21|0]=d>>>8;B[b+22|0]=d>>>16;B[b+23|0]=d>>>24;d=E[1188]|E[1189]<<8|(E[1190]<<16|E[1191]<<24);c=E[1184]|E[1185]<<8|(E[1186]<<16|E[1187]<<24);B[b+8|0]=c;B[b+9|0]=c>>>8;B[b+10|0]=c>>>16;B[b+11|0]=c>>>24;B[b+12|0]=d;B[b+13|0]=d>>>8;B[b+14|0]=d>>>16;B[b+15|0]=d>>>24;d=E[1180]|E[1181]<<8|(E[1182]<<16|E[1183]<<24);c=E[1176]|E[1177]<<8|(E[1178]<<16|E[1179]<<24);B[b|0]=c;B[b+1|0]=c>>>8;B[b+2|0]=c>>>16;B[b+3|0]=c>>>24;B[b+4|0]=d;B[b+5|0]=d>>>8;B[b+6|0]=d>>>16;B[b+7|0]=d>>>24;d=i+16|0;c=D[d>>2];d:{e:{if(!c){break e}j=D[f+12>>2];b=d;while(1){k=(j|0)>D[c+16>>2];b=k?b:c;c=D[(k?c+4|0:c)>>2];if(c){continue}break}if((b|0)==(d|0)|(j|0)<D[b+16>>2]){break e}c=D[b+24>>2];if(!c){break e}j=b+20|0;b=E[f+11|0];d=b<<24>>24<0;k=d?D[f>>2]:f;b=d?D[f+4>>2]:b;while(1){d=E[c+27|0];l=d<<24>>24<0;d=l?D[c+20>>2]:d;q=d>>>0<b>>>0;f:{g:{h:{i:{j:{k:{o=q?d:b;if(o){m=c+16|0;l=l?D[m>>2]:m;m=ua(k,l,o);if(m){break k}if(b>>>0>=d>>>0){break j}break f}if(b>>>0>=d>>>0){break i}break f}if((m|0)<0){break f}}d=ua(l,k,o);if(d){break h}}if(q){break g}b=dc(j,f);break d}if((d|0)<0){break g}b=dc(j,f);break d}c=c+4|0}c=D[c>>2];if(c){continue}break}}b=dc(i,f)}if(B[f+11|0]<0){ma(D[f>>2])}if(!b){break c}c=D[D[p+D[a+36>>2]>>2]+8>>2];if(!D[c+64>>2]){b=na(32);D[b+16>>2]=0;D[b+20>>2]=0;D[b+8>>2]=0;D[b>>2]=0;D[b+4>>2]=0;D[b+24>>2]=0;D[b+28>>2]=0;d=D[c+64>>2];D[c+64>>2]=b;if(d){b=D[d>>2];if(b){D[d+4>>2]=b;ma(b)}ma(d);b=D[c+64>>2]}D[c>>2]=b;d=D[b+20>>2];D[c+8>>2]=D[b+16>>2];D[c+12>>2]=d;d=D[b+24>>2];b=D[b+28>>2];D[c+48>>2]=0;D[c+52>>2]=0;D[c+40>>2]=0;D[c+44>>2]=0;D[c+16>>2]=d;D[c+20>>2]=b}l:{B[c+24|0]=E[e+24|0];D[c+28>>2]=D[e+28>>2];B[c+32|0]=E[e+32|0];b=D[e+44>>2];D[c+40>>2]=D[e+40>>2];D[c+44>>2]=b;b=D[e+52>>2];D[c+48>>2]=D[e+48>>2];D[c+52>>2]=b;D[c+56>>2]=D[e+56>>2];b=D[e+12>>2];D[c+8>>2]=D[e+8>>2];D[c+12>>2]=b;b=D[e+20>>2];D[c+16>>2]=D[e+16>>2];D[c+20>>2]=b;D[c+60>>2]=D[e+60>>2];d=D[e>>2];m:{if(!d){D[c>>2]=0;b=1;break m}g=D[c>>2];b=0;if(!g){break m}b=D[d>>2];kd(g,b,D[d+4>>2]-b|0,0);b=1}if(!b){break l}B[c+84|0]=E[e+84|0];D[c+80>>2]=D[e+80>>2];if((c|0)!=(e|0)){ib(c+68|0,D[e+68>>2],D[e+72>>2])}n:{e=D[e+88>>2];o:{if(e){d=na(40);b=D[e>>2];D[d+16>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;D[d>>2]=b;b=D[e+12>>2];g=D[e+8>>2];if((b|0)!=(g|0)){g=b-g|0;if((g|0)<0){break n}b=na(g);D[d+8>>2]=b;D[d+12>>2]=b;D[d+16>>2]=b+g;i=D[e+8>>2];g=D[e+12>>2]-i|0;if((g|0)>0){b=oa(b,i,g)+g|0}D[d+12>>2]=b}b=D[e+36>>2];D[d+32>>2]=D[e+32>>2];D[d+36>>2]=b;b=D[e+28>>2];D[d+24>>2]=D[e+24>>2];D[d+28>>2]=b;b=D[c+88>>2];D[c+88>>2]=d;if(b){break o}break l}b=D[c+88>>2];D[c+88>>2]=0;if(!b){break l}}d=D[b+8>>2];if(d){D[b+12>>2]=d;ma(d)}ma(b);break l}pa();T()}break b}b=D[D[a+36>>2]+(h<<2)>>2];if(!(ba[D[D[b>>2]+24>>2]](b,r)|0)){break a}}h=h+1|0;g=(n|0)>(h|0);if((h|0)!=(n|0)){continue}break}}$=f+16|0;return(g^-1)&1}function gh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=K(0),f=0,g=0,h=0,i=0,j=0,k=0,l=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;if(D[c>>2]==D[c+4>>2]){h=D[d+80>>2];u=$-16|0;$=u;q=D[a+4>>2];j=D[d+48>>2];d=D[D[d>>2]>>2];i=B[b+24|0];c=u+8|0;D[c>>2]=1065353216;H[c>>2]=K(-1<<q^-1)/H[a+20>>2];s=na((i|0)!=(i&1073741823)?-1:i<<2);a:{if(!h|(i|0)<=0){break a}t=d+j|0;l=H[c>>2];k=D[a+8>>2];w=D[b>>2];c=D[b+48>>2];m=D[b+44>>2];v=D[b+40>>2];if(!E[b+84|0]){r=D[b+68>>2];q=i&-2;j=i&1;a=0;while(1){d=D[w>>2];b=fi(v,m,D[r+(o<<2)>>2],0)+c|0;p=oa(s,d+b|0,v);b=0;n=0;if((i|0)!=1){while(1){d=t+(a<<2)|0;g=b<<2;e=K(P(K(K(l*K(H[g+p>>2]-H[k+g>>2]))+K(.5))));b:{if(K(L(e))<K(2147483648)){f=~~e;break b}f=-2147483648}D[d>>2]=f;f=g|4;e=K(P(K(K(l*K(H[f+p>>2]-H[f+k>>2]))+K(.5))));c:{if(K(L(e))<K(2147483648)){f=~~e;break c}f=-2147483648}D[d+4>>2]=f;b=b+2|0;a=a+2|0;n=n+2|0;if((q|0)!=(n|0)){continue}break}}if(j){d=t+(a<<2)|0;b=b<<2;e=K(P(K(K(l*K(H[b+p>>2]-H[b+k>>2]))+K(.5))));d:{if(K(L(e))<K(2147483648)){b=~~e;break d}b=-2147483648}D[d>>2]=b;a=a+1|0}o=o+1|0;if((h|0)!=(o|0)){continue}break}break a}r=i&-2;q=i&1;a=0;while(1){d=D[w>>2];b=fi(v,m,p,f)+c|0;o=oa(s,d+b|0,v);b=0;n=0;if((i|0)!=1){while(1){d=t+(a<<2)|0;g=b<<2;e=K(P(K(K(l*K(H[g+o>>2]-H[k+g>>2]))+K(.5))));e:{if(K(L(e))<K(2147483648)){j=~~e;break e}j=-2147483648}D[d>>2]=j;j=g|4;e=K(P(K(K(l*K(H[j+o>>2]-H[k+j>>2]))+K(.5))));f:{if(K(L(e))<K(2147483648)){g=~~e;break f}g=-2147483648}D[d+4>>2]=g;b=b+2|0;a=a+2|0;n=n+2|0;if((r|0)!=(n|0)){continue}break}}if(q){d=t+(a<<2)|0;b=b<<2;e=K(P(K(K(l*K(H[b+o>>2]-H[b+k>>2]))+K(.5))));g:{if(K(L(e))<K(2147483648)){b=~~e;break g}b=-2147483648}D[d>>2]=b;a=a+1|0}b=p+1|0;f=b?f:f+1|0;p=b;if((h|0)!=(b|0)|f){continue}break}}ma(s);$=u+16|0;return 1}u=$-16|0;$=u;f=D[a+4>>2];j=D[d+48>>2];h=D[D[d>>2]>>2];m=B[b+24|0];d=u+8|0;D[d>>2]=1065353216;H[d>>2]=K(-1<<f^-1)/H[a+20>>2];t=na((m|0)!=(m&1073741823)?-1:m<<2);f=D[c+4>>2];s=D[c>>2];h:{if((f|0)==(s|0)|(m|0)<=0){break h}n=j+h|0;c=f-s>>2;w=c>>>0>1?c:1;l=H[d>>2];i=D[a+8>>2];x=D[b>>2];d=D[b+48>>2];v=D[b+44>>2];p=D[b+40>>2];if(E[b+84|0]){q=m&-2;j=m&1;a=0;c=0;while(1){f=D[x>>2];b=fi(p,v,D[s+(c<<2)>>2],0)+d|0;g=oa(t,f+b|0,p);b=0;k=0;if((m|0)!=1){while(1){f=n+(a<<2)|0;r=b<<2;e=K(P(K(K(l*K(H[r+g>>2]-H[i+r>>2]))+K(.5))));i:{if(K(L(e))<K(2147483648)){h=~~e;break i}h=-2147483648}D[f>>2]=h;h=r|4;e=K(P(K(K(l*K(H[h+g>>2]-H[i+h>>2]))+K(.5))));j:{if(K(L(e))<K(2147483648)){h=~~e;break j}h=-2147483648}D[f+4>>2]=h;b=b+2|0;a=a+2|0;k=k+2|0;if((q|0)!=(k|0)){continue}break}}if(j){f=n+(a<<2)|0;b=b<<2;e=K(P(K(K(l*K(H[b+g>>2]-H[b+i>>2]))+K(.5))));k:{if(K(L(e))<K(2147483648)){b=~~e;break k}b=-2147483648}D[f>>2]=b;a=a+1|0}c=c+1|0;if((w|0)!=(c|0)){continue}break}break h}r=D[b+68>>2];q=m&-2;j=m&1;a=0;c=0;while(1){f=D[x>>2];b=fi(p,v,D[r+(D[s+(c<<2)>>2]<<2)>>2],0)+d|0;o=oa(t,f+b|0,p);b=0;k=0;if((m|0)!=1){while(1){f=n+(a<<2)|0;g=b<<2;e=K(P(K(K(l*K(H[g+o>>2]-H[i+g>>2]))+K(.5))));l:{if(K(L(e))<K(2147483648)){h=~~e;break l}h=-2147483648}D[f>>2]=h;h=g|4;e=K(P(K(K(l*K(H[h+o>>2]-H[i+h>>2]))+K(.5))));m:{if(K(L(e))<K(2147483648)){g=~~e;break m}g=-2147483648}D[f+4>>2]=g;b=b+2|0;a=a+2|0;k=k+2|0;if((q|0)!=(k|0)){continue}break}}if(j){f=n+(a<<2)|0;b=b<<2;e=K(P(K(K(l*K(H[b+o>>2]-H[b+i>>2]))+K(.5))));n:{if(K(L(e))<K(2147483648)){b=~~e;break n}b=-2147483648}D[f>>2]=b;a=a+1|0}c=c+1|0;if((w|0)!=(c|0)){continue}break}}ma(t);$=u+16|0;return 1}
- function zd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=D[a+4>>2];c=D[a>>2];e=(d-c|0)/144|0;if(e>>>0<b>>>0){c=a;e=b-e|0;f=D[a+8>>2];d=D[a+4>>2];a:{if(e>>>0<=(f-d|0)/144>>>0){b:{if(!e){break b}a=d;f=e&7;if(f){b=0;while(1){ya(a);a=a+144|0;b=b+1|0;if((f|0)!=(b|0)){continue}break}}d=J(e,144)+d|0;if((e-1&268435455)>>>0<7){break b}while(1){ya(a);ya(a+144|0);ya(a+288|0);ya(a+432|0);ya(a+576|0);ya(a+720|0);ya(a+864|0);ya(a+1008|0);a=a+1152|0;if((d|0)!=(a|0)){continue}break}}D[c+4>>2]=d;break a}c:{d:{e:{b=D[c>>2];g=(d-b|0)/144|0;a=g+e|0;if(a>>>0<29826162){d=0;b=(f-b|0)/144|0;f=b<<1;f=b>>>0<14913080?a>>>0<f>>>0?f:a:29826161;if(f){if(f>>>0>=29826162){break e}h=na(J(f,144))}b=J(g,144)+h|0;a=b;g=e&7;if(g){a=b;while(1){ya(a);a=a+144|0;d=d+1|0;if((g|0)!=(d|0)){continue}break}}g=J(e,144)+b|0;if((e-1&268435455)>>>0>=7){while(1){ya(a);ya(a+144|0);ya(a+288|0);ya(a+432|0);ya(a+576|0);ya(a+720|0);ya(a+864|0);ya(a+1008|0);a=a+1152|0;if((g|0)!=(a|0)){continue}break}}e=J(f,144)+h|0;a=D[c+4>>2];d=D[c>>2];if((a|0)==(d|0)){break d}while(1){b=b-144|0;a=a-144|0;D[b>>2]=D[a>>2];D[b+4>>2]=D[a+4>>2];D[b+8>>2]=D[a+8>>2];D[b+12>>2]=D[a+12>>2];D[a+12>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[b+16>>2]=D[a+16>>2];D[b+20>>2]=D[a+20>>2];D[b+24>>2]=D[a+24>>2];D[a+24>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;f=E[a+28|0];D[b+40>>2]=0;D[b+32>>2]=0;D[b+36>>2]=0;B[b+28|0]=f;D[b+32>>2]=D[a+32>>2];D[b+36>>2]=D[a+36>>2];D[b+40>>2]=D[a+40>>2];D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[b+52>>2]=0;D[b+44>>2]=0;D[b+48>>2]=0;D[b+44>>2]=D[a+44>>2];D[b+48>>2]=D[a+48>>2];D[b+52>>2]=D[a+52>>2];D[a+52>>2]=0;D[a+44>>2]=0;D[a+48>>2]=0;f=b- -64|0;D[f>>2]=0;D[b+56>>2]=0;D[b+60>>2]=0;D[b+56>>2]=D[a+56>>2];D[b+60>>2]=D[a+60>>2];h=f;f=a- -64|0;D[h>>2]=D[f>>2];D[f>>2]=0;D[a+56>>2]=0;D[a+60>>2]=0;D[b+68>>2]=D[a+68>>2];f=D[a+72>>2];D[b+84>>2]=0;D[b+76>>2]=0;D[b+80>>2]=0;D[b+72>>2]=f;D[b+76>>2]=D[a+76>>2];D[b+80>>2]=D[a+80>>2];D[b+84>>2]=D[a+84>>2];D[a+84>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[b+96>>2]=0;D[b+88>>2]=0;D[b+92>>2]=0;D[b+88>>2]=D[a+88>>2];D[b+92>>2]=D[a+92>>2];D[b+96>>2]=D[a+96>>2];D[a+96>>2]=0;D[a+88>>2]=0;D[a+92>>2]=0;f=E[a+100|0];D[b+112>>2]=0;D[b+104>>2]=0;D[b+108>>2]=0;B[b+100|0]=f;D[b+104>>2]=D[a+104>>2];D[b+108>>2]=D[a+108>>2];D[b+112>>2]=D[a+112>>2];D[a+112>>2]=0;D[a+104>>2]=0;D[a+108>>2]=0;D[b+124>>2]=0;D[b+116>>2]=0;D[b+120>>2]=0;D[b+116>>2]=D[a+116>>2];D[b+120>>2]=D[a+120>>2];D[b+124>>2]=D[a+124>>2];D[a+124>>2]=0;D[a+116>>2]=0;D[a+120>>2]=0;f=D[a+128>>2];D[b+140>>2]=0;D[b+132>>2]=0;D[b+136>>2]=0;D[b+128>>2]=f;D[b+132>>2]=D[a+132>>2];D[b+136>>2]=D[a+136>>2];D[b+140>>2]=D[a+140>>2];D[a+140>>2]=0;D[a+132>>2]=0;D[a+136>>2]=0;if((a|0)!=(d|0)){continue}break}D[c+8>>2]=e;a=D[c+4>>2];D[c+4>>2]=g;d=D[c>>2];D[c>>2]=b;if((a|0)==(d|0)){break c}while(1){b=a-144|0;c=D[b+132>>2];if(c){D[a-8>>2]=c;ma(c)}c=D[a-28>>2];if(c){D[a-24>>2]=c;ma(c)}c=D[a-40>>2];if(c){D[a-36>>2]=c;ma(c)}Gb(a-140|0);a=b;if((d|0)!=(a|0)){continue}break}break c}pa();T()}sa();T()}D[c+8>>2]=e;D[c+4>>2]=g;D[c>>2]=b}if(d){ma(d)}}return}if(b>>>0<e>>>0){c=c+J(b,144)|0;if((c|0)!=(d|0)){while(1){b=d-144|0;e=D[b+132>>2];if(e){D[d-8>>2]=e;ma(e)}e=D[d-28>>2];if(e){D[d-24>>2]=e;ma(e)}e=D[d-40>>2];if(e){D[d-36>>2]=e;ma(e)}Gb(d-140|0);d=b;if((b|0)!=(c|0)){continue}break}}D[a+4>>2]=c}}function Kb(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,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;f=$-96|0;$=f;d=D[a+16>>2];B[f+92|0]=1;D[f+88>>2]=b;D[f+84>>2]=b;D[f+80>>2]=d;a:{if((b|0)==-1){break a}l=D[a+20>>2];e=D[l>>2];d=D[D[d>>2]+(b<<2)>>2];if(d>>>0>=D[l+4>>2]-e>>2>>>0){break a}d=D[D[a+8>>2]+(D[e+(d<<2)>>2]<<2)>>2];e=D[a+4>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}D[f+72>>2]=0;D[f+76>>2]=0;l=f- -64|0;D[l>>2]=0;D[l+4>>2]=0;D[f+56>>2]=0;D[f+60>>2]=0;Ia(e,d,B[e+24|0],f+56|0);d=b+1|0;l=(d>>>0)%3|0?d:b-2|0;i=((b>>>0)%3|0?-1:2)+b|0;b:{c:{while(1){e=l;d=i;d:{if(!D[a+28>>2]){break d}d=b+1|0;e=(d>>>0)%3|0?d:b-2|0;d=b-1|0;if((b>>>0)%3|0){break d}d=b+2|0}if((e|0)==-1){break b}h=D[a+20>>2];b=D[h>>2];e=D[D[D[a+16>>2]>>2]+(e<<2)>>2];if(e>>>0>=D[h+4>>2]-b>>2>>>0){break b}e=D[D[a+8>>2]+(D[(e<<2)+b>>2]<<2)>>2];b=D[a+4>>2];if(!E[b+84|0]){e=D[D[b+68>>2]+(e<<2)>>2]}D[f+48>>2]=0;D[f+52>>2]=0;D[f+40>>2]=0;D[f+44>>2]=0;D[f+32>>2]=0;D[f+36>>2]=0;Ia(b,e,B[b+24|0],f+32|0);if((d|0)==-1){break c}e=D[a+20>>2];b=D[e>>2];d=D[D[D[a+16>>2]>>2]+(d<<2)>>2];if(d>>>0>=D[e+4>>2]-b>>2>>>0){break c}e=D[D[a+8>>2]+(D[b+(d<<2)>>2]<<2)>>2];b=D[a+4>>2];if(!E[b+84|0]){e=D[D[b+68>>2]+(e<<2)>>2]}D[f+24>>2]=0;D[f+28>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;D[f+8>>2]=0;D[f+12>>2]=0;Ia(b,e,B[b+24|0],f+8|0);d=D[f+8>>2];b=D[f+56>>2];e=d-b|0;h=D[f+60>>2];j=D[f+12>>2]-(h+(b>>>0>d>>>0)|0)|0;p=D[f+40>>2];d=D[f+64>>2];s=p-d|0;t=D[f+68>>2];p=D[f+44>>2]-(t+(d>>>0>p>>>0)|0)|0;u=fi(e,j,s,p);v=o-u|0;o=g-(aa+(o>>>0<u>>>0)|0)|0;k=v;g=D[f+16>>2];u=g-d|0;t=D[f+20>>2]-((d>>>0>g>>>0)+t|0)|0;g=D[f+32>>2];v=g-b|0;h=D[f+36>>2]-((b>>>0>g>>>0)+h|0)|0;d=fi(u,t,v,h);b=k+d|0;g=aa+o|0;g=b>>>0<d>>>0?g+1|0:g;o=b;x=m;k=e;d=j;b=D[f+48>>2];m=D[f+72>>2];e=b-m|0;j=D[f+76>>2];w=D[f+52>>2]-(j+(b>>>0<m>>>0)|0)|0;k=fi(k,d,e,w);d=x+k|0;b=aa+n|0;b=d>>>0<k>>>0?b+1|0:b;n=D[f+24>>2];k=n-m|0;j=D[f+28>>2]-((m>>>0>n>>>0)+j|0)|0;n=fi(k,j,v,h);m=d-n|0;n=b-(aa+(d>>>0<n>>>0)|0)|0;b=fi(u,t,e,w);d=q-b|0;b=r-(aa+(b>>>0>q>>>0)|0)|0;r=fi(k,j,s,p);q=r+d|0;b=aa+b|0;b=q>>>0<r>>>0?b+1|0:b;r=b;kc(f+80|0);b=D[f+88>>2];if((b|0)!=-1){continue}break}b=r>>31;d=b^q;j=d-b|0;h=(b^r)-((b>>>0>d>>>0)+b|0)|0;p=-1;d=2147483647;b=n>>31;l=b^m;e=(b^n)-((b>>>0>l>>>0)+b|0)|0;b=l-b|0;s=b^-1;i=e^2147483647;k=g;e:{f:{if(!D[a+28>>2]){if((i|0)==(h|0)&j>>>0>s>>>0|i>>>0<h>>>0){break e}i=g;a=b;d=b+j|0;b=e+h|0;b=a>>>0>d>>>0?b+1|0:b;a=g>>31;h=a^o;j=h-a|0;g=d+j|0;e=(a^i)-((a>>>0>h>>>0)+a|0)|0;a=g;g=e^2147483647;g=(g|0)==(b|0)&(j^-1)>>>0<d>>>0|b>>>0>g>>>0;a=g?-1:a;if(!(g&0)&(a|0)<=536870912|(a|0)<536870912){break e}b=0;a=a>>>29|0;break f}g:{if((i|0)==(h|0)&j>>>0>s>>>0|i>>>0<h>>>0){break g}a=b;i=b+j|0;b=e+h|0;b=a>>>0>i>>>0?b+1|0:b;a=i;h=g;e=g>>31;g=e;i=e^o;e=(e^h)-(e+(e>>>0>i>>>0)|0)|0;g=i-g|0;i=e^2147483647;if((i|0)==(b|0)&(g^-1)>>>0<a>>>0|b>>>0>i>>>0){break g}b=b+e|0;a=a+g|0;b=a>>>0<g>>>0?b+1|0:b;p=a;d=b;if(!b&a>>>0<536870913){break e}}b=d>>>29|0;a=(d&536870911)<<3|p>>>29}o=gi(o,k,a,b);m=gi(m,n,a,b);q=gi(q,r,a,b)}D[c+8>>2]=o;D[c+4>>2]=m;D[c>>2]=q;$=f+96|0;return}va();T()}va();T()}va();T()}function Lc(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;a:{if((b|0)<0){break a}c=D[a+12>>2];d=D[a+8>>2];if(c-d>>2>>>0<=b>>>0){break a}e=d+(b<<2)|0;d=D[e>>2];i=D[d+60>>2];g=D[d+56>>2];d=e+4|0;b:{if((d|0)!=(c|0)){while(1){h=D[d>>2];D[d>>2]=0;f=D[e>>2];D[e>>2]=h;if(f){Aa(f)}e=e+4|0;d=d+4|0;if((d|0)!=(c|0)){continue}break}c=D[a+12>>2];if((e|0)==(c|0)){break b}}while(1){c=c-4|0;d=D[c>>2];D[c>>2]=0;if(d){Aa(d)}if((c|0)!=(e|0)){continue}break}}D[a+12>>2]=e;f=D[a+4>>2];c:{if(!f|(i|0)<0){break c}c=D[f+24>>2];d=D[f+28>>2];if((c|0)==(d|0)){break c}while(1){if((i|0)==D[D[c>>2]+24>>2]){e=c+4|0;i=D[f+28>>2];d:{if((e|0)!=(i|0)){while(1){h=D[e>>2];D[e>>2]=0;d=D[c>>2];D[c>>2]=h;if(d){Fa(d+12|0,D[d+16>>2]);Ea(d,D[d+4>>2]);ma(d)}c=c+4|0;e=e+4|0;if((i|0)!=(e|0)){continue}break}e=D[f+28>>2];if((e|0)==(c|0)){break d}}while(1){e=e-4|0;d=D[e>>2];D[e>>2]=0;if(d){Fa(d+12|0,D[d+16>>2]);Ea(d,D[d+4>>2]);ma(d)}if((c|0)!=(e|0)){continue}break}}D[f+28>>2]=c;break c}c=c+4|0;if((d|0)!=(c|0)){continue}break}}e:{if((g|0)>4){break e}f:{e=J(g,12)+a|0;c=D[e+20>>2];d=D[e+24>>2];if((c|0)==(d|0)){break f}while(1){if(D[c>>2]==(b|0)){break f}c=c+4|0;if((d|0)!=(c|0)){continue}break}break e}if((c|0)==(d|0)){break e}f=c+4|0;i=d-f|0;if((d|0)!=(f|0)){Ra(c,f,i)}D[e+24>>2]=c+i}c=D[a+24>>2];e=D[a+20>>2];g:{if((c|0)==(e|0)){break g}d=c-e|0;c=d>>2;f=c>>>0>1?c:1;i=f&1;c=0;if(d>>>0>=8){f=f&-2;d=0;while(1){g=c<<2;h=g+e|0;j=D[h>>2];if((j|0)>(b|0)){D[h>>2]=j-1}g=e+(g|4)|0;h=D[g>>2];if((h|0)>(b|0)){D[g>>2]=h-1}c=c+2|0;d=d+2|0;if((f|0)!=(d|0)){continue}break}}if(!i){break g}c=e+(c<<2)|0;d=D[c>>2];if((d|0)<=(b|0)){break g}D[c>>2]=d-1}c=D[a+36>>2];e=D[a+32>>2];h:{if((c|0)==(e|0)){break h}d=c-e|0;c=d>>2;f=c>>>0>1?c:1;i=f&1;c=0;if(d>>>0>=8){f=f&-2;d=0;while(1){g=c<<2;h=g+e|0;j=D[h>>2];if((j|0)>(b|0)){D[h>>2]=j-1}g=e+(g|4)|0;h=D[g>>2];if((h|0)>(b|0)){D[g>>2]=h-1}c=c+2|0;d=d+2|0;if((f|0)!=(d|0)){continue}break}}if(!i){break h}c=e+(c<<2)|0;d=D[c>>2];if((d|0)<=(b|0)){break h}D[c>>2]=d-1}c=D[a+48>>2];e=D[a+44>>2];i:{if((c|0)==(e|0)){break i}d=c-e|0;c=d>>2;f=c>>>0>1?c:1;i=f&1;c=0;if(d>>>0>=8){f=f&-2;d=0;while(1){g=c<<2;h=g+e|0;j=D[h>>2];if((j|0)>(b|0)){D[h>>2]=j-1}g=e+(g|4)|0;h=D[g>>2];if((h|0)>(b|0)){D[g>>2]=h-1}c=c+2|0;d=d+2|0;if((f|0)!=(d|0)){continue}break}}if(!i){break i}c=e+(c<<2)|0;d=D[c>>2];if((d|0)<=(b|0)){break i}D[c>>2]=d-1}c=D[a+60>>2];e=D[a+56>>2];j:{if((c|0)==(e|0)){break j}d=c-e|0;c=d>>2;f=c>>>0>1?c:1;i=f&1;c=0;if(d>>>0>=8){f=f&-2;d=0;while(1){g=c<<2;h=g+e|0;j=D[h>>2];if((j|0)>(b|0)){D[h>>2]=j-1}g=e+(g|4)|0;h=D[g>>2];if((h|0)>(b|0)){D[g>>2]=h-1}c=c+2|0;d=d+2|0;if((f|0)!=(d|0)){continue}break}}if(!i){break j}c=e+(c<<2)|0;d=D[c>>2];if((d|0)<=(b|0)){break j}D[c>>2]=d-1}c=D[a+72>>2];a=D[a+68>>2];if((c|0)==(a|0)){break a}d=c-a|0;c=d>>2;e=c>>>0>1?c:1;f=e&1;c=0;if(d>>>0>=8){e=e&-2;d=0;while(1){i=c<<2;g=i+a|0;h=D[g>>2];if((h|0)>(b|0)){D[g>>2]=h-1}i=a+(i|4)|0;g=D[i>>2];if((g|0)>(b|0)){D[i>>2]=g-1}c=c+2|0;d=d+2|0;if((e|0)!=(d|0)){continue}break}}if(!f){break a}d=b;a=a+(c<<2)|0;b=D[a>>2];if((d|0)>=(b|0)){break a}D[a>>2]=b-1}}function ma(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(!a){break a}d=a-8|0;b=D[a-4>>2];a=b&-8;f=d+a|0;b:{if(b&1){break b}if(!(b&3)){break a}b=D[d>>2];d=d-b|0;if(d>>>0<G[2940]){break a}a=a+b|0;if(D[2941]!=(d|0)){if(b>>>0<=255){e=D[d+8>>2];b=b>>>3|0;c=D[d+12>>2];if((c|0)==(e|0)){i=11744,j=D[2936]&ji(b),D[i>>2]=j;break b}D[e+12>>2]=c;D[c+8>>2]=e;break b}h=D[d+24>>2];b=D[d+12>>2];c:{if((d|0)!=(b|0)){c=D[d+8>>2];D[c+12>>2]=b;D[b+8>>2]=c;break c}d:{e=d+20|0;c=D[e>>2];if(c){break d}e=d+16|0;c=D[e>>2];if(c){break d}b=0;break c}while(1){g=e;b=c;e=b+20|0;c=D[e>>2];if(c){continue}e=b+16|0;c=D[b+16>>2];if(c){continue}break}D[g>>2]=0}if(!h){break b}e=D[d+28>>2];c=(e<<2)+12048|0;e:{if(D[c>>2]==(d|0)){D[c>>2]=b;if(b){break e}i=11748,j=D[2937]&ji(e),D[i>>2]=j;break b}D[h+(D[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break b}}D[b+24>>2]=h;c=D[d+16>>2];if(c){D[b+16>>2]=c;D[c+24>>2]=b}c=D[d+20>>2];if(!c){break b}D[b+20>>2]=c;D[c+24>>2]=b;break b}b=D[f+4>>2];if((b&3)!=3){break b}D[2938]=a;D[f+4>>2]=b&-2;D[d+4>>2]=a|1;D[a+d>>2]=a;return}if(d>>>0>=f>>>0){break a}b=D[f+4>>2];if(!(b&1)){break a}f:{if(!(b&2)){if(D[2942]==(f|0)){D[2942]=d;a=D[2939]+a|0;D[2939]=a;D[d+4>>2]=a|1;if(D[2941]!=(d|0)){break a}D[2938]=0;D[2941]=0;return}if(D[2941]==(f|0)){D[2941]=d;a=D[2938]+a|0;D[2938]=a;D[d+4>>2]=a|1;D[a+d>>2]=a;return}a=(b&-8)+a|0;g:{if(b>>>0<=255){e=D[f+8>>2];b=b>>>3|0;c=D[f+12>>2];if((c|0)==(e|0)){i=11744,j=D[2936]&ji(b),D[i>>2]=j;break g}D[e+12>>2]=c;D[c+8>>2]=e;break g}h=D[f+24>>2];b=D[f+12>>2];h:{if((f|0)!=(b|0)){c=D[f+8>>2];D[c+12>>2]=b;D[b+8>>2]=c;break h}i:{e=f+20|0;c=D[e>>2];if(c){break i}e=f+16|0;c=D[e>>2];if(c){break i}b=0;break h}while(1){g=e;b=c;e=b+20|0;c=D[e>>2];if(c){continue}e=b+16|0;c=D[b+16>>2];if(c){continue}break}D[g>>2]=0}if(!h){break g}e=D[f+28>>2];c=(e<<2)+12048|0;j:{if(D[c>>2]==(f|0)){D[c>>2]=b;if(b){break j}i=11748,j=D[2937]&ji(e),D[i>>2]=j;break g}D[h+(D[h+16>>2]==(f|0)?16:20)>>2]=b;if(!b){break g}}D[b+24>>2]=h;c=D[f+16>>2];if(c){D[b+16>>2]=c;D[c+24>>2]=b}c=D[f+20>>2];if(!c){break g}D[b+20>>2]=c;D[c+24>>2]=b}D[d+4>>2]=a|1;D[a+d>>2]=a;if(D[2941]!=(d|0)){break f}D[2938]=a;return}D[f+4>>2]=b&-2;D[d+4>>2]=a|1;D[a+d>>2]=a}if(a>>>0<=255){b=(a&-8)+11784|0;c=D[2936];a=1<<(a>>>3);k:{if(!(c&a)){D[2936]=a|c;a=b;break k}a=D[b+8>>2]}D[b+8>>2]=d;D[a+12>>2]=d;D[d+12>>2]=b;D[d+8>>2]=a;return}e=31;if(a>>>0<=16777215){b=a>>>8|0;g=b+1048320>>>16&8;b=b<<g;e=b+520192>>>16&4;b=b<<e;c=b+245760>>>16&2;b=(b<<c>>>15|0)-(c|(e|g))|0;e=(b<<1|a>>>b+21&1)+28|0}D[d+28>>2]=e;D[d+16>>2]=0;D[d+20>>2]=0;g=(e<<2)+12048|0;l:{m:{c=D[2937];b=1<<e;n:{if(!(c&b)){D[2937]=b|c;D[g>>2]=d;D[d+24>>2]=g;break n}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=D[g>>2];while(1){c=b;if((D[b+4>>2]&-8)==(a|0)){break m}b=e>>>29|0;e=e<<1;g=c+(b&4)|0;b=D[g+16>>2];if(b){continue}break}D[g+16>>2]=d;D[d+24>>2]=c}D[d+12>>2]=d;D[d+8>>2]=d;break l}a=D[c+8>>2];D[a+12>>2]=d;D[c+8>>2]=d;D[d+24>>2]=0;D[d+12>>2]=c;D[d+8>>2]=a}a=D[2944]-1|0;D[2944]=a?a:-1}}function $h(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;D[a+8>>2]=e;n=a+32|0;h=D[n>>2];f=D[a+36>>2]-h>>2;a:{if(f>>>0<e>>>0){ra(n,e-f|0);d=D[a+8>>2];break a}d=e;if(d>>>0>=f>>>0){break a}D[a+36>>2]=h+(e<<2);d=e}s=D[a+52>>2];p=D[a+48>>2];f=0;h=(e&1073741823)!=(e|0)?-1:e<<2;m=qa(na(h),0,h);b:{if((d|0)<=0){break b}g=D[a+32>>2];while(1){d=f<<2;h=D[d+m>>2];j=D[a+16>>2];c:{if((h|0)>(j|0)){D[d+g>>2]=j;break c}d=d+g|0;j=D[a+12>>2];if((j|0)>(h|0)){D[d>>2]=j;break c}D[d>>2]=h}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}if((d|0)<=0){break b}f=0;while(1){h=f<<2;d=h+c|0;h=D[b+h>>2]+D[g+h>>2]|0;D[d>>2]=h;d:{if((h|0)>D[a+16>>2]){i=h-D[a+20>>2]|0}else{if((h|0)>=D[a+12>>2]){break d}i=h+D[a+20>>2]|0}D[d>>2]=i}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}}f=D[a+56>>2];q=D[f>>2];f=D[f+4>>2]-q|0;if((f|0)>=5){o=f>>>2|0;t=o>>>0>2?o:2;u=e&-2;v=e&1;h=1;while(1){e:{f:{if((h|0)!=(o|0)){r=J(e,h);f=D[(h<<2)+q>>2];if((f|0)==-1){break f}f=D[D[p+12>>2]+(f<<2)>>2];if((f|0)==-1){break f}j=D[s>>2];g=D[p>>2];k=D[j+(D[g+(f<<2)>>2]<<2)>>2];i=f+1|0;i=(i>>>0)%3|0?i:f-2|0;if((i|0)!=-1){i=D[g+(i<<2)>>2]}else{i=-1}g:{h:{if((f>>>0)%3|0){f=f-1|0;break h}f=f+2|0;l=-1;if((f|0)==-1){break g}}l=D[g+(f<<2)>>2]}if((h|0)<=(k|0)){break f}f=D[(i<<2)+j>>2];if((f|0)>=(h|0)){break f}g=D[j+(l<<2)>>2];if((g|0)>=(h|0)){break f}i:{if((e|0)<=0){break i}g=J(e,g);j=J(e,f);k=J(e,k);f=0;l=0;if((e|0)!=1){while(1){D[(f<<2)+m>>2]=(D[(f+g<<2)+c>>2]+D[(f+j<<2)+c>>2]|0)-D[(f+k<<2)+c>>2];i=f|1;D[(i<<2)+m>>2]=(D[(g+i<<2)+c>>2]+D[(j+i<<2)+c>>2]|0)-D[(i+k<<2)+c>>2];f=f+2|0;l=l+2|0;if((u|0)!=(l|0)){continue}break}}if(!v){break i}D[(f<<2)+m>>2]=(D[(f+g<<2)+c>>2]+D[(f+j<<2)+c>>2]|0)-D[(f+k<<2)+c>>2]}if((d|0)<=0){break e}j=D[n>>2];f=0;while(1){d=f<<2;g=D[d+m>>2];k=D[a+16>>2];j:{if((g|0)>(k|0)){D[d+j>>2]=k;break j}d=d+j|0;k=D[a+12>>2];if((k|0)>(g|0)){D[d>>2]=k;break j}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}f=0;if((d|0)<=0){break e}d=r<<2;k=d+c|0;i=b+d|0;while(1){g=f<<2;d=g+k|0;g=D[g+i>>2]+D[g+j>>2]|0;D[d>>2]=g;k:{if((g|0)>D[a+16>>2]){l=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break k}l=g+D[a+20>>2]|0}D[d>>2]=l}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}break e}va();T()}if((d|0)<=0){break e}k=(J(h-1|0,e)<<2)+c|0;j=D[n>>2];f=0;while(1){d=f<<2;g=D[d+k>>2];i=D[a+16>>2];l:{if((g|0)>(i|0)){D[d+j>>2]=i;break l}d=d+j|0;i=D[a+12>>2];if((i|0)>(g|0)){D[d>>2]=i;break l}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}f=0;if((d|0)<=0){break e}d=r<<2;k=d+c|0;i=b+d|0;while(1){g=f<<2;d=g+k|0;g=D[g+i>>2]+D[g+j>>2]|0;D[d>>2]=g;m:{if((g|0)>D[a+16>>2]){l=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break m}l=g+D[a+20>>2]|0}D[d>>2]=l}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}}h=h+1|0;if((t|0)!=(h|0)){continue}break}}ma(m);return 1}function ud(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=K(0),l=0,m=0,n=K(0);j=D[c>>2];a:{b:{f=D[b+4>>2];if(!f){break b}c=f-1|0;if(c&f){e=j;if(e>>>0>=f>>>0){e=(j>>>0)%(f>>>0)|0}c=D[D[b>>2]+(e<<2)>>2];if(!c){break b}while(1){c=D[c>>2];if(!c){break b}g=D[c+4>>2];if((g|0)!=(j|0)){if(f>>>0<=g>>>0){g=(g>>>0)%(f>>>0)|0}if((e|0)!=(g|0)){break b}}if(D[c+8>>2]!=(j|0)){continue}break}b=0;break a}e=c&j;c=D[D[b>>2]+(e<<2)>>2];if(!c){break b}g=f-1|0;while(1){c=D[c>>2];if(!c){break b}h=D[c+4>>2];if((h|0)!=(j|0)&(g&h)!=(e|0)){break b}if(D[c+8>>2]!=(j|0)){continue}break}b=0;break a}c=na(16);d=D[D[d>>2]>>2];D[c+12>>2]=0;D[c+8>>2]=d;D[c+4>>2]=j;D[c>>2]=0;n=K(D[b+12>>2]+1>>>0);k=H[b+16>>2];c:{if(n>K(k*K(f>>>0))?0:f){break c}d=2;g=(f-1&f)!=0|f>>>0<3|f<<1;k=K(Q(K(n/k)));d:{if(k<K(4294967296)&k>=K(0)){e=~~k>>>0;break d}e=0}e=e>>>0<g>>>0?g:e;e:{if((e|0)==1){break e}if(!(e&e-1)){d=e;break e}d=Kc(e);f=D[b+4>>2]}f:{if(d>>>0<=f>>>0){if(d>>>0>=f>>>0){break f}g=f>>>0<3;k=K(Q(K(K(G[b+12>>2])/H[b+16>>2])));g:{if(k<K(4294967296)&k>=K(0)){e=~~k>>>0;break g}e=0}h:{i:{if(g){break i}if(ii(f)>>>0>1){break i}e=e>>>0<2?e:1<<32-M(e-1|0);break h}e=Kc(e)}d=d>>>0>e>>>0?d:e;if(f>>>0<=d>>>0){break f}}e=0;h=d;j:{k:{l:{if(d){if(h>>>0>=1073741824){break l}f=na(h<<2);d=D[b>>2];D[b>>2]=f;if(d){ma(d)}D[b+4>>2]=h;if(h-1>>>0>=3){g=h&-4;d=0;while(1){f=e<<2;D[f+D[b>>2]>>2]=0;D[D[b>>2]+(f|4)>>2]=0;D[D[b>>2]+(f|8)>>2]=0;D[D[b>>2]+(f|12)>>2]=0;e=e+4|0;d=d+4|0;if((g|0)!=(d|0)){continue}break}}d=h&3;if(d){while(1){D[D[b>>2]+(e<<2)>>2]=0;e=e+1|0;i=i+1|0;if((d|0)!=(i|0)){continue}break}}d=D[b+8>>2];if(!d){break j}e=b+8|0;g=D[d+4>>2];f=h-1|0;if(!(f&h)){break k}g=g>>>0>=h>>>0?(g>>>0)%(h>>>0)|0:g;D[D[b>>2]+(g<<2)>>2]=e;while(1){f=D[d>>2];if(!f){break j}i=D[f+4>>2];if(h>>>0<=i>>>0){i=(i>>>0)%(h>>>0)|0}if((g|0)==(i|0)){d=f;continue}e=f;l=i<<2;m=l+D[b>>2]|0;if(D[m>>2]){while(1){i=e;e=D[e>>2];if(D[f+8>>2]==D[e+8>>2]?e:0){continue}break}D[d>>2]=e;D[i>>2]=D[D[l+D[b>>2]>>2]>>2];D[D[l+D[b>>2]>>2]>>2]=f}else{D[m>>2]=d;d=f;g=i}continue}}d=D[b>>2];D[b>>2]=0;if(d){ma(d)}D[b+4>>2]=0;break j}sa();T()}g=f&g;D[D[b>>2]+(g<<2)>>2]=e;f=D[d>>2];if(!f){break j}l=h-1|0;while(1){h=l&D[f+4>>2];m:{if((h|0)==(g|0)){d=f;break m}e=f;i=h<<2;m=i+D[b>>2]|0;if(D[m>>2]){while(1){h=e;e=D[e>>2];if(D[f+8>>2]==D[e+8>>2]?e:0){continue}break}D[d>>2]=e;D[h>>2]=D[D[i+D[b>>2]>>2]>>2];D[D[i+D[b>>2]>>2]>>2]=f;break m}D[m>>2]=d;d=f;g=h}f=D[d>>2];if(f){continue}break}}}f=D[b+4>>2];d=f-1|0;if(!(d&f)){e=d&j;break c}if(f>>>0>j>>>0){e=j;break c}e=(j>>>0)%(f>>>0)|0}e=D[b>>2]+(e<<2)|0;d=D[e>>2];n:{o:{if(!d){d=b+8|0;D[c>>2]=D[d>>2];D[b+8>>2]=c;D[e>>2]=d;d=D[c>>2];if(!d){break n}d=D[d+4>>2];e=f-1|0;p:{if(!(e&f)){d=d&e;break p}if(d>>>0<f>>>0){break p}d=(d>>>0)%(f>>>0)|0}d=D[b>>2]+(d<<2)|0;break o}D[c>>2]=D[d>>2]}D[d>>2]=c}D[b+12>>2]=D[b+12>>2]+1;b=1}B[a+4|0]=b;D[a>>2]=c}function Wc(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;D[a+56>>2]=D[a+52>>2];D[a+44>>2]=D[a+40>>2];a:{b:{c:{e=D[a+64>>2];c=D[e+24>>2];if((c|0)!=D[e+28>>2]){while(1){d=b;i=D[(j<<2)+c>>2];d:{if((i|0)==-1){break d}b=D[a+56>>2];e:{if((b|0)!=D[a+60>>2]){D[b>>2]=d;D[a+56>>2]=b+4;break e}e=D[a+52>>2];c=b-e|0;g=c>>2;b=g+1|0;if(b>>>0>=1073741824){break c}f=c>>1;f=c>>>0<2147483644?b>>>0<f>>>0?f:b:1073741823;if(f){if(f>>>0>=1073741824){break b}b=na(f<<2)}else{b=0}g=b+(g<<2)|0;D[g>>2]=d;if((c|0)>0){oa(b,e,c)}D[a+60>>2]=b+(f<<2);D[a+56>>2]=g+4;D[a+52>>2]=b;if(!e){break e}ma(e)}f:{if(!(D[D[a+12>>2]+(j>>>3&536870908)>>2]>>>j&1)){break f}b=i+1|0;b=(b>>>0)%3|0?b:i-2|0;if((b|0)==-1|D[D[a>>2]+(b>>>3&536870908)>>2]>>>b&1){break f}b=D[D[D[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break f}c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)==-1){break f}e=D[a+64>>2];f=D[a>>2];while(1){i=c;b=c+1|0;b=(b>>>0)%3|0?b:c-2|0;if((b|0)==-1|D[f+(b>>>3&536870908)>>2]>>>b&1){break f}b=D[D[e+12>>2]+(b<<2)>>2];if((b|0)==-1){break f}c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)!=-1){continue}break}}D[D[a+28>>2]+(i<<2)>>2]=d;b=D[a+44>>2];g:{if((b|0)!=D[a+48>>2]){D[b>>2]=i;D[a+44>>2]=b+4;break g}e=D[a+40>>2];c=b-e|0;g=c>>2;b=g+1|0;if(b>>>0>=1073741824){break a}f=c>>1;f=c>>>0<2147483644?b>>>0<f>>>0?f:b:1073741823;if(f){if(f>>>0>=1073741824){break b}b=na(f<<2)}else{b=0}g=b+(g<<2)|0;D[g>>2]=i;if((c|0)>0){oa(b,e,c)}D[a+48>>2]=b+(f<<2);D[a+44>>2]=g+4;D[a+40>>2]=b;if(!e){break g}ma(e)}b=d+1|0;e=D[a+64>>2];h:{if((i>>>0)%3|0){c=i-1|0;break h}c=i+2|0;if((c|0)==-1){break d}}c=D[D[e+12>>2]+(c<<2)>>2];if((c|0)==-1){break d}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1|(c|0)==(i|0)){break d}while(1){e=c+1|0;e=(e>>>0)%3|0?e:c-2|0;if(D[D[a>>2]+(e>>>3&536870908)>>2]>>>e&1){d=D[a+56>>2];i:{if((d|0)!=D[a+60>>2]){D[d>>2]=b;D[a+56>>2]=d+4;break i}f=D[a+52>>2];e=d-f|0;h=e>>2;d=h+1|0;if(d>>>0>=1073741824){break c}g=e>>1;g=e>>>0<2147483644?d>>>0<g>>>0?g:d:1073741823;if(g){if(g>>>0>=1073741824){break b}d=na(g<<2)}else{d=0}h=d+(h<<2)|0;D[h>>2]=b;if((e|0)>0){oa(d,f,e)}D[a+60>>2]=d+(g<<2);D[a+56>>2]=h+4;D[a+52>>2]=d;if(!f){break i}ma(f)}e=b+1|0;d=D[a+44>>2];j:{if((d|0)!=D[a+48>>2]){D[d>>2]=c;D[a+44>>2]=d+4;break j}g=D[a+40>>2];f=d-g|0;k=f>>2;d=k+1|0;if(d>>>0>=1073741824){break a}h=f>>1;h=f>>>0<2147483644?d>>>0<h>>>0?h:d:1073741823;if(h){if(h>>>0>=1073741824){break b}d=na(h<<2)}else{d=0}k=d+(k<<2)|0;D[k>>2]=c;if((f|0)>0){oa(d,g,f)}D[a+48>>2]=d+(h<<2);D[a+44>>2]=k+4;D[a+40>>2]=d;if(!g){break j}ma(g)}d=b;b=e}D[D[a+28>>2]+(c<<2)>>2]=d;e=D[a+64>>2];k:{if((c>>>0)%3|0){c=c-1|0;break k}c=c+2|0;if((c|0)==-1){break d}}c=D[D[e+12>>2]+(c<<2)>>2];if((c|0)==-1){break d}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break d}if((c|0)!=(i|0)){continue}break}}j=j+1|0;c=D[e+24>>2];if(j>>>0<D[e+28>>2]-c>>2>>>0){continue}break}}return}pa();T()}sa();T()}pa();T()}function de(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;D[a+8>>2]=e;m=a+32|0;h=D[m>>2];f=D[a+36>>2]-h>>2;a:{if(f>>>0<e>>>0){ra(m,e-f|0);d=D[a+8>>2];break a}d=e;if(d>>>0>=f>>>0){break a}D[a+36>>2]=h+(e<<2);d=e}s=D[a+52>>2];n=D[a+48>>2];f=0;h=(e&1073741823)!=(e|0)?-1:e<<2;l=qa(na(h),0,h);b:{if((d|0)<=0){break b}g=D[a+32>>2];while(1){d=f<<2;h=D[d+l>>2];i=D[a+16>>2];c:{if((h|0)>(i|0)){D[d+g>>2]=i;break c}d=d+g|0;i=D[a+12>>2];if((i|0)>(h|0)){D[d>>2]=i;break c}D[d>>2]=h}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}if((d|0)<=0){break b}f=0;while(1){h=f<<2;d=h+c|0;h=D[b+h>>2]+D[g+h>>2]|0;D[d>>2]=h;d:{if((h|0)>D[a+16>>2]){h=h-D[a+20>>2]|0}else{if((h|0)>=D[a+12>>2]){break d}h=h+D[a+20>>2]|0}D[d>>2]=h}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}}f=D[a+56>>2];q=D[f>>2];f=D[f+4>>2]-q|0;if((f|0)>=5){o=f>>>2|0;t=o>>>0>2?o:2;u=e&-2;v=e&1;h=1;while(1){e:{f:{if((h|0)!=(o|0)){r=J(e,h);f=D[(h<<2)+q>>2];if((f|0)==-1|D[D[n>>2]+(f>>>3&536870908)>>2]>>>f&1){break f}f=D[D[D[n+64>>2]+12>>2]+(f<<2)>>2];if((f|0)==-1){break f}i=D[s>>2];g=D[n+28>>2];k=D[i+(D[g+(f<<2)>>2]<<2)>>2];if((k|0)>=(h|0)){break f}j=f+1|0;j=D[i+(D[g+(((j>>>0)%3|0?j:f-2|0)<<2)>>2]<<2)>>2];if((j|0)>=(h|0)){break f}f=D[i+(D[g+(f+((f>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((f|0)>=(h|0)){break f}g:{if((e|0)<=0){break g}g=J(e,f);i=J(e,j);k=J(e,k);f=0;p=0;if((e|0)!=1){while(1){D[(f<<2)+l>>2]=(D[(f+g<<2)+c>>2]+D[(f+i<<2)+c>>2]|0)-D[(f+k<<2)+c>>2];j=f|1;D[(j<<2)+l>>2]=(D[(g+j<<2)+c>>2]+D[(i+j<<2)+c>>2]|0)-D[(k+j<<2)+c>>2];f=f+2|0;p=p+2|0;if((u|0)!=(p|0)){continue}break}}if(!v){break g}D[(f<<2)+l>>2]=(D[(f+g<<2)+c>>2]+D[(f+i<<2)+c>>2]|0)-D[(f+k<<2)+c>>2]}if((d|0)<=0){break e}i=D[m>>2];f=0;while(1){d=f<<2;g=D[d+l>>2];k=D[a+16>>2];h:{if((g|0)>(k|0)){D[d+i>>2]=k;break h}d=d+i|0;k=D[a+12>>2];if((k|0)>(g|0)){D[d>>2]=k;break h}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}f=0;if((d|0)<=0){break e}d=r<<2;k=d+c|0;j=b+d|0;while(1){g=f<<2;d=g+k|0;g=D[g+j>>2]+D[g+i>>2]|0;D[d>>2]=g;i:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break i}g=g+D[a+20>>2]|0}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}break e}va();T()}if((d|0)<=0){break e}k=(J(h-1|0,e)<<2)+c|0;i=D[m>>2];f=0;while(1){d=f<<2;g=D[d+k>>2];j=D[a+16>>2];j:{if((g|0)>(j|0)){D[d+i>>2]=j;break j}d=d+i|0;j=D[a+12>>2];if((j|0)>(g|0)){D[d>>2]=j;break j}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}f=0;if((d|0)<=0){break e}d=r<<2;k=d+c|0;j=b+d|0;while(1){g=f<<2;d=g+k|0;g=D[g+j>>2]+D[g+i>>2]|0;D[d>>2]=g;k:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break k}g=g+D[a+20>>2]|0}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}}h=h+1|0;if((t|0)!=(h|0)){continue}break}}ma(l);return 1}function ld(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if((b|0)==-1){return 1}c=(b>>>0)/3|0;if(!(D[D[a+24>>2]+(c>>>3&268435452)>>2]>>>c&1)){d=D[a+48>>2];D[a+52>>2]=d;a:{if((d|0)!=D[a+56>>2]){D[d>>2]=b;D[a+52>>2]=d+4;break a}e=na(4);D[e>>2]=b;f=e+4|0;D[a+56>>2]=f;D[a+52>>2]=f;D[a+48>>2]=e;if(!d){break a}ma(d)}f=D[D[a+4>>2]+28>>2];d=b+1|0;e=(d>>>0)%3|0?d:b-2|0;d=D[f+(e<<2)>>2];if((d|0)==-1){return 0}g=(b-J(c,3)|0?-1:2)+b|0;c=D[f+(g<<2)>>2];if((c|0)==-1){return 0}b=D[a+36>>2];f=b+(d>>>3&536870908)|0;h=D[f>>2];i=1<<d;if(!(h&i)){D[f>>2]=h|i;Ma(a+8|0,d,e);b=D[a+36>>2]}b=(c>>>3&536870908)+b|0;d=D[b>>2];e=1<<c;if(!(d&e)){D[b>>2]=d|e;Ma(a+8|0,c,g)}c=D[a+52>>2];if((c|0)==D[a+48>>2]){return 1}k=a+8|0;while(1){b:{c:{c=c-4|0;b=D[c>>2];if((b|0)==-1){break c}d=(b>>>0)/3|0;e=D[a+24>>2]+(d>>>3&268435452)|0;f=D[e>>2];d=1<<d;if(f&d){break c}D[e>>2]=d|f;e=D[a+4>>2];d=D[D[e+28>>2]+(b<<2)>>2];if((d|0)==-1){return 0}while(1){c=b;d:{e:{f=D[a+36>>2]+(d>>>3&536870908)|0;g=D[f>>2];h=1<<d;if(g&h){break e}f:{b=D[D[e+40>>2]+(d<<2)>>2];g:{if((b|0)==-1){break g}i=b+1|0;b=(i>>>0)%3|0?i:b-2|0;if((b|0)==-1|D[D[e>>2]+(b>>>3&536870908)>>2]>>>b&1){break g}b=D[D[D[e+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break f}}D[f>>2]=g|h;Ma(k,d,c);break e}D[f>>2]=g|h;Ma(k,d,c);d=b+1|0;if((((d>>>0)%3|0?d:b-2|0)|0)==-1){break e}b=-1;e=D[a+4>>2];h:{if((c|0)==-1){break h}d=c+1|0;d=(d>>>0)%3|0?d:c-2|0;if((d|0)==-1|D[D[e>>2]+(d>>>3&536870908)>>2]>>>d&1){break h}b=D[D[D[e+64>>2]+12>>2]+(d<<2)>>2]}d=(b>>>0)/3|0;h=1<<d;c=D[a+24>>2];i=d>>>5|0;f=D[c+(i<<2)>>2];break d}i:{j:{if((c|0)==-1){break j}d=-1;b=c+1|0;b=(b>>>0)%3|0?b:c-2|0;e=D[a+4>>2];if(!((b|0)==-1|D[D[e>>2]+(b>>>3&536870908)>>2]>>>b&1)){d=D[D[D[e+64>>2]+12>>2]+(b<<2)>>2]}k:{l:{if((c>>>0)%3|0){c=c-1|0;break l}c=c+2|0;b=-1;if((c|0)==-1){break k}}b=-1;if(D[D[e>>2]+(c>>>3&536870908)>>2]>>>c&1){break k}b=D[D[D[e+64>>2]+12>>2]+(c<<2)>>2]}j=(b|0)==-1;g=j?-1:(b>>>0)/3|0;if((d|0)!=-1){c=D[a+24>>2];h=(d>>>0)/3|0;i=h>>>5|0;f=D[c+(i<<2)>>2];h=1<<h;if(!(f&h)){break i}}if(j){break j}h=1<<g;c=D[a+24>>2];i=g>>>5|0;f=D[c+(i<<2)>>2];if(!(h&f)){break d}}c=D[a+52>>2]-4|0;D[a+52>>2]=c;break b}if(j){b=d;break d}if(D[(g>>>3&536870908)+c>>2]>>>g&1){b=d;break d}c=D[a+52>>2];D[c-4>>2]=b;if((c|0)!=D[a+56>>2]){D[c>>2]=d;c=c+4|0;break c}m:{f=D[a+48>>2];e=c-f|0;c=e>>2;b=c+1|0;if(b>>>0<1073741824){g=e>>1;g=e>>>0<2147483644?b>>>0<g>>>0?g:b:1073741823;if(g){if(g>>>0>=1073741824){break m}b=na(g<<2)}else{b=0}c=b+(c<<2)|0;D[c>>2]=d;c=c+4|0;if((e|0)>0){oa(b,f,e)}D[a+56>>2]=b+(g<<2);D[a+52>>2]=c;D[a+48>>2]=b;if(!f){break b}ma(f);c=D[a+52>>2];break b}pa();T()}sa();T()}D[(i<<2)+c>>2]=f|h;d=D[D[e+28>>2]+(b<<2)>>2];if((d|0)!=-1){continue}break}return 0}D[a+52>>2]=c}if(D[a+48>>2]!=(c|0)){continue}break}}return 1}function Tb(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;i=J(b,12)+a|0;D[i+12>>2]=D[i+8>>2];j=(c|0)==-1?-1:(c>>>0)/3|0;l=1;k=c;a:{b:{c:{while(1){d:{n=e&1;if(n){if((k|0)==-1){break d}if((Uc(a,((k>>>0)%3|0?-1:2)+k|0)|0)==-1){break a}c=k+1|0;c=(c>>>0)%3|0?c:k-2|0;if((c|0)==-1){break a}e=c+1|0;c=(e>>>0)%3|0?e:c-2|0;if((c|0)==-1){break a}c=D[D[D[a+4>>2]+12>>2]+(c<<2)>>2];if((c|0)==-1){break a}e=c+1|0;c=(e>>>0)%3|0?e:c-2|0;if((c|0)==-1){break a}j=(c>>>0)/3|0}d=D[a+56>>2]+(j>>>3&536870908)|0;g=D[d>>2];f=1<<j;e:{if(g&f){break e}e=0;while(1){D[d>>2]=g|f;d=D[i+12>>2];f:{if((d|0)!=D[i+16>>2]){D[d>>2]=j;D[i+12>>2]=d+4;break f}g=D[i+8>>2];h=d-g|0;m=h>>2;d=m+1|0;if(d>>>0>=1073741824){break c}f=h>>1;f=h>>>0<2147483644?d>>>0<f>>>0?f:d:1073741823;if(f){if(f>>>0>=1073741824){break b}d=na(f<<2)}else{d=0}m=d+(m<<2)|0;D[m>>2]=j;if((h|0)>0){oa(d,g,h)}D[i+8>>2]=d;D[i+12>>2]=m+4;D[i+16>>2]=d+(f<<2);if(!g){break f}ma(g)}h=e+1|0;g:{h:{i:{if(!e){break i}if(h&1){if((c|0)==-1){c=-1;break g}e=c+1|0;c=(e>>>0)%3|0?e:c-2|0;break i}k=n?c:k;if((c|0)==-1){c=-1;break g}if((c>>>0)%3|0){e=c-1|0;break h}c=c+2|0}d=c;c=-1;e=d;if((d|0)==-1){break g}}c=D[D[D[a+4>>2]+12>>2]+(e<<2)>>2];d=-1;g=-1;f=e+1|0;f=(f>>>0)%3|0?f:e-2|0;if((f|0)>=0){g=(f>>>0)/3|0;g=D[(D[D[a>>2]+96>>2]+J(g,12)|0)+(f-J(g,3)<<2)>>2]}j:{if((c|0)==-1){break j}f=((c>>>0)%3|0?-1:2)+c|0;if((f|0)<0){break j}d=(f>>>0)/3|0;d=D[(D[D[a>>2]+96>>2]+J(d,12)|0)+(f-J(d,3)<<2)>>2]}if((d|0)!=(g|0)){c=-1;break g}k:{l:{e=((e>>>0)%3|0?-1:2)+e|0;if((e|0)>=0){d=(e>>>0)/3|0;if((c|0)!=-1){break l}c=-1;break g}e=-1;if((c|0)!=-1){break k}c=-1;break g}e=D[(D[D[a>>2]+96>>2]+J(d,12)|0)+(e-J(d,3)<<2)>>2]}d=c+1|0;d=(d>>>0)%3|0?d:c-2|0;if((d|0)>=0){g=(d>>>0)/3|0;d=D[(D[D[a>>2]+96>>2]+J(g,12)|0)+(d-J(g,3)<<2)>>2]}else{d=-1}if((d|0)!=(e|0)){c=-1;break g}e=h;j=(c>>>0)/3|0;d=D[a+56>>2]+(j>>>3&268435452)|0;g=D[d>>2];f=1<<j;if(!(g&f)){continue}}break}if(!n|!(h&1)){break e}e=D[i+12>>2]-4|0;d=D[e>>2];h=D[a+56>>2]+(d>>>3&536870908)|0;g=D[h>>2];o=h,p=ji(d)&g,D[o>>2]=p;D[i+12>>2]=e}e=1;d=l;l=0;if(d){continue}break a}break}k=-1;Uc(a,-1);break a}pa();T()}sa();T()}D[((b<<2)+a|0)+44>>2]=k;c=D[i+12>>2];b=D[i+8>>2];m:{if((c|0)==(b|0)){break m}e=c-b|0;c=e>>2;d=c>>>0>1?c:1;k=d&1;a=D[a+56>>2];c=0;if(e>>>0>=8){e=d&-2;j=0;while(1){d=c<<2;h=D[d+b>>2];l=a+(h>>>3&536870908)|0;i=D[l>>2];o=l,p=ji(h)&i,D[o>>2]=p;d=D[b+(d|4)>>2];h=a+(d>>>3&536870908)|0;l=D[h>>2];o=h,p=ji(d)&l,D[o>>2]=p;c=c+2|0;j=j+2|0;if((e|0)!=(j|0)){continue}break}}if(!k){break m}b=D[b+(c<<2)>>2];a=a+(b>>>3&536870908)|0;c=D[a>>2];o=a,p=ji(b)&c,D[o>>2]=p}}function md(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(D[D[a+24>>2]+(d>>>3&268435452)>>2]>>>d&1)){c=D[a+48>>2];D[a+52>>2]=c;a:{if((c|0)!=D[a+56>>2]){D[c>>2]=b;D[a+52>>2]=c+4;break a}e=na(4);D[e>>2]=b;f=e+4|0;D[a+56>>2]=f;D[a+52>>2]=f;D[a+48>>2]=e;if(!c){break a}ma(c)}e=-1;f=D[a+4>>2];c=b+1|0;g=(c>>>0)%3|0?c:b-2|0;if((g|0)!=-1){e=D[D[f>>2]+(g<<2)>>2]}b:{h=b-J(d,3)|0;if(h){c=b-1|0;break b}c=b+2|0;if((c|0)!=-1){break b}return 0}if((e|0)==-1){return 0}d=D[D[f>>2]+(c<<2)>>2];if((d|0)==-1){return 0}c=D[a+36>>2];f=c+(e>>>3&536870908)|0;i=D[f>>2];j=1<<e;if(!(i&j)){D[f>>2]=i|j;Ma(a+8|0,e,g);c=D[a+36>>2]}c=(d>>>3&536870908)+c|0;e=D[c>>2];f=1<<d;if(!(e&f)){D[c>>2]=e|f;Ma(a+8|0,d,(h?-1:2)+b|0)}c=D[a+52>>2];if((c|0)==D[a+48>>2]){return 1}j=a+8|0;while(1){c:{d:{c=c-4|0;b=D[c>>2];if((b|0)==-1){break d}d=(b>>>0)/3|0;e=D[a+24>>2]+(d>>>3&268435452)|0;f=D[e>>2];d=1<<d;if(f&d){break d}D[e>>2]=d|f;while(1){d=D[a+4>>2];c=D[D[d>>2]+(b<<2)>>2];if((c|0)==-1){return 0}e:{f:{e=D[a+36>>2]+(c>>>3&536870908)|0;f=D[e>>2];g=1<<c;if(f&g){break f}g:{h=D[D[d+24>>2]+(c<<2)>>2];h:{if((h|0)==-1){break h}i=h+1|0;h=(i>>>0)%3|0?i:h-2|0;if((h|0)==-1){break h}d=D[D[d+12>>2]+(h<<2)>>2];if((d|0)!=-1){break g}}D[e>>2]=f|g;Ma(j,c,b);break f}D[e>>2]=f|g;Ma(j,c,b);c=d+1|0;if((((c>>>0)%3|0?c:d-2|0)|0)==-1){break f}d=b-2|0;c=b+1|0;b=-1;c=(c>>>0)%3|0?c:d;if((c|0)!=-1){b=D[D[D[a+4>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<<c;e=D[a+24>>2];h=c>>>5|0;d=D[e+(h<<2)>>2];break e}c=-1;f=D[a+4>>2];d=b+1|0;d=(d>>>0)%3|0?d:b-2|0;if((d|0)!=-1){c=D[D[f+12>>2]+(d<<2)>>2]}i:{j:{if((b>>>0)%3|0){e=b-1|0;break j}e=b+2|0;b=-1;if((e|0)==-1){break i}}b=D[D[f+12>>2]+(e<<2)>>2]}i=(b|0)==-1;f=i?-1:(b>>>0)/3|0;k:{if((c|0)!=-1){e=D[a+24>>2];g=(c>>>0)/3|0;h=g>>>5|0;d=D[e+(h<<2)>>2];g=1<<g;if(!(d&g)){break k}}if(!i){g=1<<f;e=D[a+24>>2];h=f>>>5|0;d=D[e+(h<<2)>>2];if(!(g&d)){break e}}c=D[a+52>>2]-4|0;D[a+52>>2]=c;break c}if(i){b=c;break e}if(D[(f>>>3&536870908)+e>>2]>>>f&1){b=c;break e}d=D[a+52>>2];D[d-4>>2]=b;if((d|0)!=D[a+56>>2]){D[d>>2]=c;c=d+4|0;break d}l:{e=D[a+48>>2];d=d-e|0;g=d>>2;b=g+1|0;if(b>>>0<1073741824){f=d>>1;f=d>>>0<2147483644?b>>>0<f>>>0?f:b:1073741823;if(f){if(f>>>0>=1073741824){break l}b=na(f<<2)}else{b=0}g=b+(g<<2)|0;D[g>>2]=c;c=g+4|0;if((d|0)>0){oa(b,e,d)}D[a+56>>2]=b+(f<<2);D[a+52>>2]=c;D[a+48>>2]=b;if(!e){break c}ma(e);c=D[a+52>>2];break c}pa();T()}sa();T()}D[(h<<2)+e>>2]=d|g;if((b|0)!=-1){continue}break}return 0}D[a+52>>2]=c}if(D[a+48>>2]!=(c|0)){continue}break}}return 1}function ae(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,k=0,l=0;h=$-32|0;$=h;a:{b:{if(!Pa(1,h+28|0,b)){break b}d=D[h+28>>2];c=D[D[a+48>>2]+64>>2];if(d>>>0>D[c+4>>2]-D[c>>2]>>2>>>0){break b}c:{if(d){Oa(a+60|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Da(c,b)){break c}while(1){f=1<<e;i=za(c);g=D[a+60>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(!Pa(1,h+28|0,b)){break b}d=D[h+28>>2];c=D[D[a+48>>2]+64>>2];if(d>>>0>D[c+4>>2]-D[c>>2]>>2>>>0){break b}if(d){e=0;Oa(a+72|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Da(c,b)){break c}while(1){f=1<<e;i=za(c);g=D[a+72>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(!Pa(1,h+28|0,b)){break b}d=D[h+28>>2];c=D[D[a+48>>2]+64>>2];if(d>>>0>D[c+4>>2]-D[c>>2]>>2>>>0){break b}if(d){e=0;Oa(a+84|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Da(c,b)){break c}while(1){f=1<<e;i=za(c);g=D[a+84>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(!Pa(1,h+28|0,b)){break b}d=D[h+28>>2];c=D[D[a+48>>2]+64>>2];if(d>>>0>D[c+4>>2]-D[c>>2]>>2>>>0){break b}if(d){e=0;Oa(a+96|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Da(c,b)){break c}while(1){f=1<<e;i=za(c);g=D[a+96>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}e=0;d=D[b+12>>2];f=d;c=D[b+20>>2];g=c;i=D[b+16>>2];j=i+4|0;c=j>>>0<4?c+1|0:c;k=D[b+8>>2];if(k>>>0<j>>>0&(c|0)>=(d|0)|(c|0)>(d|0)){break a}l=D[b>>2];d=l+i|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=j;D[b+20>>2]=c;c=g;g=i+8|0;c=g>>>0<8?c+1|0:c;i=g;g=c;if(i>>>0>k>>>0&(c|0)>=(f|0)|(c|0)>(f|0)){break a}c=j+l|0;c=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[b+16>>2]=i;D[b+20>>2]=g;if((c|0)<(d|0)){break a}D[a+16>>2]=c;D[a+12>>2]=d;b=(c>>31)-((d>>31)+(c>>>0<d>>>0)|0)|0;c=c-d|0;if(!b&c>>>0>2147483646|b){break a}e=1;b=c+1|0;D[a+20>>2]=b;c=b>>>1|0;D[a+24>>2]=c;D[a+28>>2]=0-c;if(b&1){break a}D[a+24>>2]=c-1;break a}}e=0}$=h+32|0;return e|0}function Yh(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,k=0,l=0;h=$-32|0;$=h;a:{b:{if(!Pa(1,h+28|0,b)){break b}d=D[h+28>>2];c=D[a+48>>2];if(d>>>0>D[c+4>>2]-D[c>>2]>>2>>>0){break b}c:{if(d){Oa(a+60|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Da(c,b)){break c}while(1){f=1<<e;i=za(c);g=D[a+60>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(!Pa(1,h+28|0,b)){break b}d=D[h+28>>2];c=D[a+48>>2];if(d>>>0>D[c+4>>2]-D[c>>2]>>2>>>0){break b}if(d){e=0;Oa(a+72|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Da(c,b)){break c}while(1){f=1<<e;i=za(c);g=D[a+72>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(!Pa(1,h+28|0,b)){break b}d=D[h+28>>2];c=D[a+48>>2];if(d>>>0>D[c+4>>2]-D[c>>2]>>2>>>0){break b}if(d){e=0;Oa(a+84|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Da(c,b)){break c}while(1){f=1<<e;i=za(c);g=D[a+84>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(!Pa(1,h+28|0,b)){break b}d=D[h+28>>2];c=D[a+48>>2];if(d>>>0>D[c+4>>2]-D[c>>2]>>2>>>0){break b}if(d){e=0;Oa(a+96|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Da(c,b)){break c}while(1){f=1<<e;i=za(c);g=D[a+96>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}e=0;d=D[b+12>>2];f=d;c=D[b+20>>2];g=c;i=D[b+16>>2];j=i+4|0;c=j>>>0<4?c+1|0:c;k=D[b+8>>2];if(k>>>0<j>>>0&(c|0)>=(d|0)|(c|0)>(d|0)){break a}l=D[b>>2];d=l+i|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=j;D[b+20>>2]=c;c=g;g=i+8|0;c=g>>>0<8?c+1|0:c;i=g;g=c;if(i>>>0>k>>>0&(c|0)>=(f|0)|(c|0)>(f|0)){break a}c=j+l|0;c=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[b+16>>2]=i;D[b+20>>2]=g;if((c|0)<(d|0)){break a}D[a+16>>2]=c;D[a+12>>2]=d;b=(c>>31)-((d>>31)+(c>>>0<d>>>0)|0)|0;c=c-d|0;if(!b&c>>>0>2147483646|b){break a}e=1;b=c+1|0;D[a+20>>2]=b;c=b>>>1|0;D[a+24>>2]=c;D[a+28>>2]=0-c;if(b&1){break a}D[a+24>>2]=c-1;break a}}e=0}$=h+32|0;return e|0}function qh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;b=D[a+32>>2];e=D[b+16>>2];d=D[b+12>>2];c=D[b+20>>2];if(G[b+8>>2]>e>>>0&(d|0)>=(c|0)|(c|0)<(d|0)){f=E[e+D[b>>2]|0];d=e+1|0;c=d?c:c+1|0;D[b+16>>2]=d;D[b+20>>2]=c;b=D[a+48>>2];D[a+48>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}a:{b:{c:{d:{switch(f|0){case 0:b=na(384);D[b>>2]=8284;qa(b+4|0,0,80);D[b+96>>2]=0;D[b+100>>2]=0;D[b+92>>2]=-1;D[b+84>>2]=-1;D[b+88>>2]=-1;D[b+104>>2]=0;D[b+108>>2]=0;D[b+112>>2]=0;D[b+116>>2]=0;D[b+120>>2]=0;D[b+124>>2]=0;D[b+128>>2]=0;D[b+132>>2]=0;D[b+136>>2]=0;D[b+140>>2]=0;D[b+144>>2]=0;D[b+148>>2]=0;D[b+156>>2]=0;D[b+160>>2]=0;D[b+152>>2]=1065353216;D[b+164>>2]=0;D[b+168>>2]=0;D[b+172>>2]=0;D[b+176>>2]=0;D[b+180>>2]=0;D[b+184>>2]=0;D[b+188>>2]=0;D[b+192>>2]=0;D[b+196>>2]=0;D[b+200>>2]=0;D[b+204>>2]=0;D[b+208>>2]=0;D[b+212>>2]=-1;D[b+216>>2]=0;D[b+220>>2]=0;D[b+224>>2]=0;La(b+232|0);La(b+272|0);c=b+312|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;La(b+328|0);D[b+376>>2]=0;D[b+368>>2]=0;D[b+372>>2]=0;break c;case 2:break d;default:break b}}b=na(440);D[b>>2]=8336;qa(b+4|0,0,80);D[b+96>>2]=0;D[b+100>>2]=0;D[b+92>>2]=-1;D[b+84>>2]=-1;D[b+88>>2]=-1;D[b+104>>2]=0;D[b+108>>2]=0;D[b+112>>2]=0;D[b+116>>2]=0;D[b+120>>2]=0;D[b+124>>2]=0;D[b+128>>2]=0;D[b+132>>2]=0;D[b+136>>2]=0;D[b+140>>2]=0;D[b+144>>2]=0;D[b+148>>2]=0;D[b+156>>2]=0;D[b+160>>2]=0;D[b+152>>2]=1065353216;D[b+164>>2]=0;D[b+168>>2]=0;D[b+172>>2]=0;D[b+176>>2]=0;D[b+180>>2]=0;D[b+184>>2]=0;D[b+188>>2]=0;D[b+192>>2]=0;D[b+196>>2]=0;D[b+200>>2]=0;D[b+204>>2]=0;D[b+208>>2]=0;D[b+212>>2]=-1;D[b+216>>2]=0;D[b+220>>2]=0;D[b+224>>2]=0;La(b+232|0);La(b+272|0);c=b+312|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;La(b+328|0);D[b+392>>2]=0;D[b+396>>2]=0;D[b+384>>2]=0;D[b+388>>2]=0;D[b+376>>2]=0;D[b+380>>2]=0;D[b+368>>2]=0;D[b+372>>2]=0;D[b+416>>2]=0;D[b+420>>2]=0;D[b+408>>2]=2;D[b+412>>2]=7;D[b+400>>2]=-1;D[b+404>>2]=-1;D[b+424>>2]=0;D[b+428>>2]=0;D[b+432>>2]=0;D[b+436>>2]=0}c=D[a+48>>2];D[a+48>>2]=b;if(!c){break a}ba[D[D[c>>2]+4>>2]](c)}b=D[a+48>>2];if(b){break a}return 0}a=ba[D[D[b>>2]+8>>2]](b,a)|0}else{a=0}return a|0}function ai(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,k=0,l=0,m=0,n=0,o=0;g=$-32|0;$=g;D[a+68>>2]=f;d=D[a+56>>2];e=D[d>>2];d=D[d+4>>2];D[g+24>>2]=0;D[g+16>>2]=0;D[g+20>>2]=0;a:{d=d-e|0;if((d|0)>0){m=a+60|0;d=d>>>2|0;n=d>>>0>1?d:1;o=a+112|0;while(1){e=D[a+56>>2];d=D[e>>2];if(D[e+4>>2]-d>>2>>>0<=k>>>0){break a}Mb(m,D[d+(k<<2)>>2],g+16|0);e=D[g+20>>2];d=e>>31;f=D[g+16>>2];h=f>>31;j=D[g+24>>2];i=j>>31;i=(i^j)-i|0;h=i+((d^e)-d+((f^h)-h)|0)|0;d=0;d=h>>>0<i>>>0?1:d;b:{if(!(d|h)){D[g+16>>2]=D[a+108>>2];break b}i=D[a+108>>2];l=i>>31;f=gi(fi(i,l,f,f>>31),aa,h,d);D[g+16>>2]=f;d=gi(fi(i,l,e,e>>31),aa,h,d);D[g+20>>2]=d;e=d;d=d>>31;e=(e^d)-d|0;d=f>>31;d=e+((d^f)-d|0)|0;if((j|0)>=0){D[g+24>>2]=i-d;break b}D[g+24>>2]=d-i}d=za(o);f=D[g+16>>2];c:{if(d){D[g+24>>2]=0-D[g+24>>2];e=0-D[g+20>>2]|0;D[g+20>>2]=e;f=0-f|0;D[g+16>>2]=f;break c}e=D[g+20>>2]}d:{if((f|0)>=0){f=D[a+108>>2];d=f+D[g+24>>2]|0;f=e+f|0;break d}e:{if((e|0)<0){d=D[g+24>>2];f=d>>31;f=(d^f)-f|0;break e}d=D[g+24>>2];f=d>>31;f=D[a+100>>2]+(f-(d^f)|0)|0}if((d|0)<0){d=e>>31;d=(d^e)-d|0;break d}d=e>>31;d=D[a+100>>2]+(d-(d^e)|0)|0}e=D[a+100>>2];f:{if(!(d|f)){d=e;f=d;break f}if(!((d|0)!=(e|0)|f)){f=d;break f}if(!((e|0)!=(f|0)|d)){d=f;break f}g:{if(f){break g}h=D[a+108>>2];if((h|0)>=(d|0)){break g}d=(h<<1)-d|0;f=0;break f}h:{if((e|0)!=(f|0)){break h}h=D[a+108>>2];if((h|0)<=(d|0)){break h}d=(h<<1)-d|0;break f}i:{if((d|0)!=(e|0)){break i}e=D[a+108>>2];if((e|0)<=(f|0)){break i}f=(e<<1)-f|0;break f}if(d){break f}d=0;e=D[a+108>>2];if((e|0)>=(f|0)){break f}f=(e<<1)-f|0}D[g+12>>2]=d;D[g+8>>2]=f;j:{if(D[a+8>>2]<=0){break j}h=D[a+32>>2];f=0;while(1){d=f<<2;e=D[d+(g+8|0)>>2];j=D[a+16>>2];k:{if((e|0)>(j|0)){D[d+h>>2]=j;break k}d=d+h|0;j=D[a+12>>2];if((j|0)>(e|0)){D[d>>2]=j;break k}D[d>>2]=e}f=f+1|0;e=D[a+8>>2];if((f|0)<(e|0)){continue}break}d=0;if((e|0)<=0){break j}e=k<<3;j=e+c|0;i=b+e|0;while(1){f=d<<2;e=f+j|0;f=D[f+i>>2]+D[f+h>>2]|0;D[e>>2]=f;l:{if((f|0)>D[a+16>>2]){f=f-D[a+20>>2]|0}else{if((f|0)>=D[a+12>>2]){break l}f=f+D[a+20>>2]|0}D[e>>2]=f}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}k=k+1|0;if((n|0)!=(k|0)){continue}break}}$=g+32|0;return 1}va();T()}function Rh(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,k=0,l=0,m=0,n=0,o=0;g=$-32|0;$=g;D[a+68>>2]=f;d=D[a+56>>2];e=D[d>>2];d=D[d+4>>2];D[g+24>>2]=0;D[g+16>>2]=0;D[g+20>>2]=0;a:{d=d-e|0;if((d|0)>0){m=a+60|0;d=d>>>2|0;n=d>>>0>1?d:1;o=a+112|0;while(1){e=D[a+56>>2];d=D[e>>2];if(D[e+4>>2]-d>>2>>>0<=k>>>0){break a}Kb(m,D[d+(k<<2)>>2],g+16|0);e=D[g+20>>2];d=e>>31;f=D[g+16>>2];h=f>>31;j=D[g+24>>2];i=j>>31;i=(i^j)-i|0;h=i+((d^e)-d+((f^h)-h)|0)|0;d=0;d=h>>>0<i>>>0?1:d;b:{if(!(d|h)){D[g+16>>2]=D[a+108>>2];break b}i=D[a+108>>2];l=i>>31;f=gi(fi(i,l,f,f>>31),aa,h,d);D[g+16>>2]=f;d=gi(fi(i,l,e,e>>31),aa,h,d);D[g+20>>2]=d;e=d;d=d>>31;e=(e^d)-d|0;d=f>>31;d=e+((d^f)-d|0)|0;if((j|0)>=0){D[g+24>>2]=i-d;break b}D[g+24>>2]=d-i}d=za(o);f=D[g+16>>2];c:{if(d){D[g+24>>2]=0-D[g+24>>2];e=0-D[g+20>>2]|0;D[g+20>>2]=e;f=0-f|0;D[g+16>>2]=f;break c}e=D[g+20>>2]}d:{if((f|0)>=0){f=D[a+108>>2];d=f+D[g+24>>2]|0;f=e+f|0;break d}e:{if((e|0)<0){d=D[g+24>>2];f=d>>31;f=(d^f)-f|0;break e}d=D[g+24>>2];f=d>>31;f=D[a+100>>2]+(f-(d^f)|0)|0}if((d|0)<0){d=e>>31;d=(d^e)-d|0;break d}d=e>>31;d=D[a+100>>2]+(d-(d^e)|0)|0}e=D[a+100>>2];f:{if(!(d|f)){d=e;f=d;break f}if(!((d|0)!=(e|0)|f)){f=d;break f}if(!((e|0)!=(f|0)|d)){d=f;break f}g:{if(f){break g}h=D[a+108>>2];if((h|0)>=(d|0)){break g}d=(h<<1)-d|0;f=0;break f}h:{if((e|0)!=(f|0)){break h}h=D[a+108>>2];if((h|0)<=(d|0)){break h}d=(h<<1)-d|0;break f}i:{if((d|0)!=(e|0)){break i}e=D[a+108>>2];if((e|0)<=(f|0)){break i}f=(e<<1)-f|0;break f}if(d){break f}d=0;e=D[a+108>>2];if((e|0)>=(f|0)){break f}f=(e<<1)-f|0}D[g+12>>2]=d;D[g+8>>2]=f;j:{if(D[a+8>>2]<=0){break j}h=D[a+32>>2];f=0;while(1){d=f<<2;e=D[d+(g+8|0)>>2];j=D[a+16>>2];k:{if((e|0)>(j|0)){D[d+h>>2]=j;break k}d=d+h|0;j=D[a+12>>2];if((j|0)>(e|0)){D[d>>2]=j;break k}D[d>>2]=e}f=f+1|0;e=D[a+8>>2];if((f|0)<(e|0)){continue}break}d=0;if((e|0)<=0){break j}e=k<<3;j=e+c|0;i=b+e|0;while(1){f=d<<2;e=f+j|0;f=D[f+i>>2]+D[f+h>>2]|0;D[e>>2]=f;l:{if((f|0)>D[a+16>>2]){f=f-D[a+20>>2]|0}else{if((f|0)>=D[a+12>>2]){break l}f=f+D[a+20>>2]|0}D[e>>2]=f}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}k=k+1|0;if((n|0)!=(k|0)){continue}break}}$=g+32|0;return 1}va();T()}function vc(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,k=0,l=0,m=0,n=0,o=0;l=ba[D[D[a>>2]+44>>2]](a)|0;a:{if((l|0)<=0){break a}h=D[b+4>>2]-D[b>>2]>>2;e=$+-64|0;$=e;d=mb(e);f=J(D[2541],l);$b(d,D[D[a+8>>2]+56>>2],l<<24>>24,5,0,f,f>>31);d=_b(na(96),d);B[d+84|0]=1;D[d+72>>2]=D[d+68>>2];Zb(d,h);D[d+60>>2]=D[D[a+8>>2]+60>>2];f=D[a+16>>2];D[a+16>>2]=d;if(f){Aa(f)}$=e- -64|0;d=D[a+16>>2];if(!D[d+80>>2]){break a}j=D[D[d>>2]>>2];if(!j){break a}i=D[c+12>>2];g=i;e=D[c+20>>2];k=D[c+8>>2];f=D[c+16>>2];if((g|0)<=(e|0)&k>>>0<=f>>>0|(e|0)>(g|0)){break a}h=J(h,l);j=j+D[d+48>>2]|0;m=D[c>>2];n=E[m+f|0];d=e;g=f+1|0;d=g?d:d+1|0;D[c+16>>2]=g;D[c+20>>2]=d;b:{c:{if(n){if(jc(h,l,c,j)){break c}break a}if((d|0)>=(i|0)&g>>>0>=k>>>0|(d|0)>(i|0)){break a}d=E[g+m|0];f=f+2|0;e=f>>>0<2?e+1|0:e;D[c+16>>2]=f;D[c+20>>2]=e;e=D[D[a+16>>2]+64>>2];e=D[e+4>>2]-D[e>>2]|0;if((d|0)==D[2541]){d=h<<2;if(d>>>0>e>>>0){break a}f=D[c+12>>2];e=D[c+20>>2];i=D[c+16>>2];g=d+i|0;e=g>>>0<d>>>0?e+1|0:e;if(g>>>0>G[c+8>>2]&(e|0)>=(f|0)|(e|0)>(f|0)){break a}oa(j,i+D[c>>2]|0,d);e=d;f=d+D[c+16>>2]|0;d=D[c+20>>2];D[c+16>>2]=f;D[c+20>>2]=e>>>0>f>>>0?d+1|0:d;break c}if(e>>>0<J(d,h)>>>0){break a}e=D[c+8>>2];i=D[c+16>>2];f=i;g=e-f|0;f=e>>>0<f>>>0;e=D[c+20>>2];f=D[c+12>>2]-(f+e|0)|0;k=fi(d,0,h,0)>>>0>g>>>0;g=aa;if(k&(g|0)>=(f|0)|(f|0)<(g|0)){break a}f=1;if(!h){break b}g=0;while(1){m=d+i|0;k=D[c+12>>2];e=d>>>0>m>>>0?e+1|0:e;if(m>>>0>G[c+8>>2]&(k|0)<=(e|0)|(e|0)>(k|0)){return 0}oa(j+(g<<2)|0,i+D[c>>2]|0,d);e=D[c+20>>2];i=d+D[c+16>>2]|0;e=i>>>0<d>>>0?e+1|0:e;D[c+16>>2]=i;D[c+20>>2]=e;g=g+1|0;if((h|0)!=(g|0)){continue}break}}f=1;if(!h){break b}d=D[a+20>>2];if(d){f=0;if(ba[D[D[d>>2]+32>>2]](d)|0){break b}}d=0;g=0;d:{if((h|0)<=0){break d}if((h|0)!=1){i=h&-2;while(1){e=d<<2;f=D[e+j>>2];D[e+j>>2]=0-(f&1)^f>>>1;f=e|4;e=D[f+j>>2];D[f+j>>2]=0-(e&1)^e>>>1;d=d+2|0;g=g+2|0;if((i|0)!=(g|0)){continue}break}}if(!(h&1)){break d}e=d<<2;d=D[e+j>>2];D[e+j>>2]=0-(d&1)^d>>>1}f=0}d=D[a+20>>2];e:{if(!d){break e}if(!(ba[D[D[d>>2]+40>>2]](d,c)|0)){break a}if(f){break e}a=D[a+20>>2];if(!(ba[D[D[a>>2]+44>>2]](a,j,j,h,l,D[b>>2])|0)){break a}}o=1}return o|0}function Xa(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=$-32|0;$=g;a:{b:{if(D[a+8>>2]<<5>>>0>=b>>>0){break b}if((b|0)<0){break a}b=(b-1>>>5|0)+1|0;c=na(b<<2);D[g+24>>2]=b;D[g+20>>2]=0;D[g+16>>2]=c;b=D[a>>2];D[g+12>>2]=0;D[g+8>>2]=b;c=D[a+4>>2];D[g+4>>2]=c&31;D[g>>2]=b+(c>>>3&536870908);f=$-32|0;$=f;i=D[g+4>>2];e=D[g+12>>2];j=D[g>>2];h=D[g+8>>2];b=(i-e|0)+(j-h<<3)|0;d=D[g+20>>2];c=b+d|0;D[g+20>>2]=c;if(!((c-1^d-1)>>>0<32?d:0)){D[D[g+16>>2]+((c>>>0<33?0:c-1>>>5|0)<<2)>>2]=0}c=D[g+16>>2]+(d>>>3&536870908)|0;d=d&31;c:{if((d|0)==(e|0)){if((b|0)<=0){break c}if(e){i=32-e|0;d=(b|0)<(i|0)?b:i;i=-1<<e&-1>>>i-d;D[c>>2]=D[c>>2]&(i^-1)|i&D[h>>2];b=b-d|0;h=h+4|0;c=c+(d+e>>>3&536870908)|0}j=c;e=(b|0)/32|0;c=e<<2;d=Ra(j,h,c);b=b-(e<<5)|0;if((b|0)<=0){break c}e=c+d|0;b=-1>>>32-b|0;D[e>>2]=D[e>>2]&(b^-1)|b&D[c+h>>2];break c}D[f+28>>2]=e;D[f+24>>2]=h;D[f+20>>2]=i;D[f+16>>2]=j;D[f+12>>2]=d;D[f+8>>2]=c;b=D[f+28>>2];c=D[f+24>>2];h=(D[f+20>>2]-b|0)+(D[f+16>>2]-c<<3)|0;d:{if((h|0)<=0){b=D[f+12>>2];break d}e:{if(!b){b=D[f+12>>2];break e}e=D[f+12>>2];j=32-e|0;k=32-b|0;d=(h|0)<(k|0)?h:k;i=d>>>0>j>>>0?j:d;l=D[f+8>>2];m=D[l>>2]&(-1<<e&-1>>>j-i^-1);j=D[c>>2]&(-1<<b&-1>>>k-d);D[l>>2]=m|(b>>>0<e>>>0?j<<e-b:j>>>b-e|0);c=e+i|0;b=c&31;D[f+12>>2]=b;e=l+(c>>>3&536870908)|0;D[f+8>>2]=e;c=d-i|0;if((c|0)>0){D[e>>2]=D[e>>2]&(-1>>>32-c^-1)|j>>>i+D[f+28>>2];D[f+12>>2]=c;b=c}h=h-d|0;c=D[f+24>>2]+4|0;D[f+24>>2]=c}i=-1<<b;e=32-b|0;if((h|0)>=32){j=i^-1;while(1){d=D[f+8>>2];c=D[c>>2];D[d>>2]=j&D[d>>2]|c<<b;D[f+8>>2]=d+4;D[d+4>>2]=i&D[d+4>>2]|c>>>e;c=D[f+24>>2]+4|0;D[f+24>>2]=c;d=h>>>0>63;h=h-32|0;if(d){continue}break}}if((h|0)<=0){break d}d=D[f+8>>2];j=e;e=(e|0)<(h|0)?e:h;j=D[d>>2]&(i&-1>>>j-e^-1);i=D[c>>2]&-1>>>32-h;D[d>>2]=j|i<<b;c=b+e|0;b=c&31;D[f+12>>2]=b;d=d+(c>>>3&536870908)|0;D[f+8>>2]=d;c=h-e|0;if((c|0)<=0){break d}D[d>>2]=D[d>>2]&(-1>>>32-c^-1)|i>>>e;D[f+12>>2]=c;b=c}c=D[f+8>>2];D[f+4>>2]=b;D[f>>2]=c}$=f+32|0;b=D[a>>2];D[a>>2]=D[g+16>>2];D[g+16>>2]=b;c=D[a+4>>2];D[a+4>>2]=D[g+20>>2];D[g+20>>2]=c;c=D[a+8>>2];D[a+8>>2]=D[g+24>>2];D[g+24>>2]=c;if(!b){break b}ma(b)}$=g+32|0;return}pa();T()}function Hh(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,k=0,l=0,m=0,n=0,o=0,p=0;g=$-48|0;$=g;d=D[a+8>>2];if(d-31>>>0>=4294967267){D[a+76>>2]=d;e=-1<<d;d=-2-e|0;D[a+84>>2]=d;D[a+80>>2]=e^-1;D[a+92>>2]=(d|0)/2;H[a+88>>2]=K(2)/K(d|0)}D[a+52>>2]=f;d=D[a+40>>2];e=D[d>>2];d=D[d+4>>2];D[g+16>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;a:{d=d-e|0;if((d|0)>0){m=a+8|0;n=a+44|0;d=d>>>2|0;o=d>>>0>1?d:1;p=a+96|0;while(1){e=D[a+40>>2];d=D[e>>2];if(D[e+4>>2]-d>>2>>>0<=j>>>0){break a}Mb(n,D[d+(j<<2)>>2],g+8|0);e=D[g+12>>2];d=e>>31;f=D[g+8>>2];h=f>>31;k=D[g+16>>2];i=k>>31;i=(i^k)-i|0;h=i+((d^e)-d+((f^h)-h)|0)|0;d=0;d=h>>>0<i>>>0?1:d;b:{if(!(d|h)){D[g+8>>2]=D[a+92>>2];break b}i=D[a+92>>2];l=i>>31;f=gi(fi(i,l,f,f>>31),aa,h,d);D[g+8>>2]=f;d=gi(fi(i,l,e,e>>31),aa,h,d);D[g+12>>2]=d;e=d>>31;e=(d^e)-e|0;d=f>>31;d=e+((d^f)-d|0)|0;if((k|0)>=0){D[g+16>>2]=i-d;break b}D[g+16>>2]=d-i}d=za(p);f=D[g+8>>2];c:{if(d){D[g+16>>2]=0-D[g+16>>2];e=0-D[g+12>>2]|0;D[g+12>>2]=e;f=0-f|0;D[g+8>>2]=f;break c}e=D[g+12>>2]}d:{if((f|0)>=0){f=D[a+92>>2];d=f+D[g+16>>2]|0;f=e+f|0;break d}e:{if((e|0)<0){d=D[g+16>>2];f=d>>31;f=(d^f)-f|0;break e}d=D[g+16>>2];f=d>>31;f=D[a+84>>2]+(f-(d^f)|0)|0}if((d|0)<0){d=e>>31;d=(d^e)-d|0;break d}d=e>>31;d=D[a+84>>2]+(d-(d^e)|0)|0}e=D[a+84>>2];f:{if(!(d|f)){d=e;f=d;break f}if(!((d|0)!=(e|0)|f)){f=d;break f}if(!((e|0)!=(f|0)|d)){d=f;break f}g:{if(f){break g}h=D[a+92>>2];if((h|0)>=(d|0)){break g}d=(h<<1)-d|0;f=0;break f}h:{if((e|0)!=(f|0)){break h}h=D[a+92>>2];if((h|0)<=(d|0)){break h}d=(h<<1)-d|0;break f}i:{if((d|0)!=(e|0)){break i}e=D[a+92>>2];if((e|0)<=(f|0)){break i}f=(e<<1)-f|0;break f}if(d){break f}d=0;e=D[a+92>>2];if((e|0)>=(f|0)){break f}f=(e<<1)-f|0}e=j<<3;h=e+b|0;k=D[h+4>>2];h=D[h>>2];D[g+36>>2]=d;D[g+32>>2]=f;D[g+24>>2]=h;D[g+28>>2]=k;Jb(g+40|0,m,g+32|0,g+24|0);d=c+e|0;D[d>>2]=D[g+40>>2];D[d+4>>2]=D[g+44>>2];j=j+1|0;if((o|0)!=(j|0)){continue}break}}$=g+48|0;return 1}va();T()}function Dh(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,k=0,l=0,m=0,n=0,o=0,p=0;g=$-48|0;$=g;d=D[a+8>>2];if(d-31>>>0>=4294967267){D[a+76>>2]=d;e=-1<<d;d=-2-e|0;D[a+84>>2]=d;D[a+80>>2]=e^-1;D[a+92>>2]=(d|0)/2;H[a+88>>2]=K(2)/K(d|0)}D[a+52>>2]=f;d=D[a+40>>2];e=D[d>>2];d=D[d+4>>2];D[g+16>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;a:{d=d-e|0;if((d|0)>0){m=a+8|0;n=a+44|0;d=d>>>2|0;o=d>>>0>1?d:1;p=a+96|0;while(1){e=D[a+40>>2];d=D[e>>2];if(D[e+4>>2]-d>>2>>>0<=j>>>0){break a}Kb(n,D[d+(j<<2)>>2],g+8|0);e=D[g+12>>2];d=e>>31;f=D[g+8>>2];h=f>>31;k=D[g+16>>2];i=k>>31;i=(i^k)-i|0;h=i+((d^e)-d+((f^h)-h)|0)|0;d=0;d=h>>>0<i>>>0?1:d;b:{if(!(d|h)){D[g+8>>2]=D[a+92>>2];break b}i=D[a+92>>2];l=i>>31;f=gi(fi(i,l,f,f>>31),aa,h,d);D[g+8>>2]=f;d=gi(fi(i,l,e,e>>31),aa,h,d);D[g+12>>2]=d;e=d>>31;e=(d^e)-e|0;d=f>>31;d=e+((d^f)-d|0)|0;if((k|0)>=0){D[g+16>>2]=i-d;break b}D[g+16>>2]=d-i}d=za(p);f=D[g+8>>2];c:{if(d){D[g+16>>2]=0-D[g+16>>2];e=0-D[g+12>>2]|0;D[g+12>>2]=e;f=0-f|0;D[g+8>>2]=f;break c}e=D[g+12>>2]}d:{if((f|0)>=0){f=D[a+92>>2];d=f+D[g+16>>2]|0;f=e+f|0;break d}e:{if((e|0)<0){d=D[g+16>>2];f=d>>31;f=(d^f)-f|0;break e}d=D[g+16>>2];f=d>>31;f=D[a+84>>2]+(f-(d^f)|0)|0}if((d|0)<0){d=e>>31;d=(d^e)-d|0;break d}d=e>>31;d=D[a+84>>2]+(d-(d^e)|0)|0}e=D[a+84>>2];f:{if(!(d|f)){d=e;f=d;break f}if(!((d|0)!=(e|0)|f)){f=d;break f}if(!((e|0)!=(f|0)|d)){d=f;break f}g:{if(f){break g}h=D[a+92>>2];if((h|0)>=(d|0)){break g}d=(h<<1)-d|0;f=0;break f}h:{if((e|0)!=(f|0)){break h}h=D[a+92>>2];if((h|0)<=(d|0)){break h}d=(h<<1)-d|0;break f}i:{if((d|0)!=(e|0)){break i}e=D[a+92>>2];if((e|0)<=(f|0)){break i}f=(e<<1)-f|0;break f}if(d){break f}d=0;e=D[a+92>>2];if((e|0)>=(f|0)){break f}f=(e<<1)-f|0}e=j<<3;h=e+b|0;k=D[h+4>>2];h=D[h>>2];D[g+36>>2]=d;D[g+32>>2]=f;D[g+24>>2]=h;D[g+28>>2]=k;Jb(g+40|0,m,g+32|0,g+24|0);d=c+e|0;D[d>>2]=D[g+40>>2];D[d+4>>2]=D[g+44>>2];j=j+1|0;if((o|0)!=(j|0)){continue}break}}$=g+48|0;return 1}va();T()}function Kd(a,b){var 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;a:{if(!F[b+38>>1]){break a}if(!Wa(1,a+12|0,b)){break a}c=D[b+8>>2];d=D[b+16>>2];f=c-d|0;e=D[a+12>>2];c=D[b+12>>2]-(D[b+20>>2]+(c>>>0<d>>>0)|0)|0;if(f>>>0<e>>>6>>>0&(c|0)<=0|(c|0)<0){break a}d=D[a>>2];c=D[a+4>>2]-d>>2;b:{if(c>>>0<e>>>0){ra(a,e-c|0);e=D[a+12>>2];break b}if(c>>>0<=e>>>0){break b}D[a+4>>2]=d+(e<<2)}if(!e){return 1}g=D[b+16>>2];c=D[b+20>>2];k=D[a>>2];l=D[b+8>>2];j=D[b+12>>2];f=0;while(1){if((c|0)>=(j|0)&g>>>0>=l>>>0|(c|0)>(j|0)){return 0}m=D[b>>2];i=E[m+g|0];d=g+1|0;c=d?c:c+1|0;g=d;D[b+16>>2]=d;D[b+20>>2]=c;d=i>>>2|0;h=0;c:{d:{e:{f:{n=i&3;switch(n|0){case 3:break f;case 0:break d;default:break e}}d=d+f|0;if(d>>>0>=e>>>0){return 0}qa(k+(f<<2)|0,0,(i&252)+4|0);f=d;break c}while(1){if((c|0)>=(j|0)&g>>>0>=l>>>0|(c|0)>(j|0)){break a}e=E[g+m|0];g=g+1|0;c=g?c:c+1|0;D[b+16>>2]=g;D[b+20>>2]=c;d=e<<(h<<3|6)|d;h=h+1|0;if((n|0)!=(h|0)){continue}break}}D[k+(f<<2)>>2]=d}e=D[a+12>>2];f=f+1|0;if(e>>>0>f>>>0){continue}break}b=a+16|0;j=D[a>>2];d=D[a+16>>2];c=D[a+20>>2]-d|0;g:{if(c>>>0<=16383){ra(b,4096-(c>>>2|0)|0);break g}if((c|0)==16384){break g}D[a+20>>2]=d+16384}c=a+28|0;f=D[c>>2];d=D[a+32>>2]-f>>3;h:{if(d>>>0<e>>>0){db(c,e-d|0);f=D[c>>2];break h}if(d>>>0>e>>>0){D[a+32>>2]=(e<<3)+f}if(!e){break a}}g=D[b>>2];b=0;a=0;while(1){c=j+(b<<2)|0;h=D[c>>2];d=a;i=(b<<3)+f|0;D[i+4>>2]=a;D[i>>2]=h;c=D[c>>2];a=c+a|0;if(a>>>0>4096){break a}i:{if(a>>>0<=d>>>0){break i}h=0;i=c&7;if(i){while(1){D[g+(d<<2)>>2]=b;d=d+1|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}}if(c-1>>>0<=6){break i}while(1){c=g+(d<<2)|0;D[c>>2]=b;D[c+28>>2]=b;D[c+24>>2]=b;D[c+20>>2]=b;D[c+16>>2]=b;D[c+12>>2]=b;D[c+8>>2]=b;D[c+4>>2]=b;d=d+8|0;if((d|0)!=(a|0)){continue}break}}b=b+1|0;if((e|0)!=(b|0)){continue}break}o=(a|0)==4096}return o}function mf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=$-32|0;$=f;e=f+8|0;c=$-80|0;$=c;a=D[b+36>>2];D[c+72>>2]=D[b+32>>2];D[c+76>>2]=a;d=D[b+28>>2];a=c- -64|0;D[a>>2]=D[b+24>>2];D[a+4>>2]=d;a=D[b+20>>2];D[c+56>>2]=D[b+16>>2];D[c+60>>2]=a;a=D[b+12>>2];D[c+48>>2]=D[b+8>>2];D[c+52>>2]=a;a=D[b+4>>2];D[c+40>>2]=D[b>>2];D[c+44>>2]=a;gc(c+8|0,c+40|0,c+24|0);a=D[c+8>>2];a:{if(a){D[e>>2]=a;a=e+4|0;if(B[c+23|0]>=0){b=c+8|4;e=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=e;D[a+8>>2]=D[b+8>>2];break a}ta(a,D[c+12>>2],D[c+16>>2]);if(B[c+23|0]>=0){break a}ma(D[c+12>>2]);break a}if(B[c+23|0]<0){ma(D[c+12>>2])}a=E[c+31|0];if(a>>>0>=2){b=na(32);a=E[1475]|E[1476]<<8;B[b+24|0]=a;B[b+25|0]=a>>>8;a=E[1471]|E[1472]<<8|(E[1473]<<16|E[1474]<<24);d=E[1467]|E[1468]<<8|(E[1469]<<16|E[1470]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=a;B[b+21|0]=a>>>8;B[b+22|0]=a>>>16;B[b+23|0]=a>>>24;a=E[1463]|E[1464]<<8|(E[1465]<<16|E[1466]<<24);d=E[1459]|E[1460]<<8|(E[1461]<<16|E[1462]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=a;B[b+13|0]=a>>>8;B[b+14|0]=a>>>16;B[b+15|0]=a>>>24;a=E[1455]|E[1456]<<8|(E[1457]<<16|E[1458]<<24);d=E[1451]|E[1452]<<8|(E[1453]<<16|E[1454]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=a;B[b+5|0]=a>>>8;B[b+6|0]=a>>>16;B[b+7|0]=a>>>24;B[b+26|0]=0;D[c+8>>2]=-1;a=c+8|4;ta(a,b,26);d=B[c+23|0];D[e>>2]=D[c+8>>2];e=e+4|0;if((d|0)>=0){d=D[a+4>>2];D[e>>2]=D[a>>2];D[e+4>>2]=d;D[e+8>>2]=D[a+8>>2];ma(b);break a}ta(e,D[c+12>>2],D[c+16>>2]);if(B[c+23|0]<0){ma(D[c+12>>2])}ma(b);break a}D[e>>2]=0;D[e+4>>2]=0;D[e+16>>2]=a;D[e+8>>2]=0;D[e+12>>2]=0}$=c+80|0;a=D[f+24>>2];if(B[f+23|0]<0){ma(D[f+12>>2])}$=f+32|0;return a|0}function Mh(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;e=$-32|0;$=e;a:{if((c|0)!=3){break a}c=D[a+4>>2];f=D[a+12>>2];D[e+24>>2]=-1;D[e+16>>2]=-1;D[e+20>>2]=1065353216;D[e+8>>2]=-1;D[e+12>>2]=-1;if((b|0)==-2){break a}i=D[D[D[c+4>>2]+8>>2]+(f<<2)>>2];if((ba[D[D[c>>2]+8>>2]](c)|0)==1){h=D[D[D[c+4>>2]+8>>2]+(f<<2)>>2];b:{if((ba[D[D[c>>2]+8>>2]](c)|0)!=1|b-1>>>0>5){break b}g=ba[D[D[c>>2]+36>>2]](c)|0;a=ba[D[D[c>>2]+44>>2]](c,f)|0;if(!g|!a){break b}f=ba[D[D[c>>2]+40>>2]](c,f)|0;c:{if(f){if((b|0)!=6){break b}b=D[c+44>>2];d=na(112);D[d+4>>2]=h;c=D[e+12>>2];D[d+8>>2]=D[e+8>>2];D[d+12>>2]=c;c=D[e+20>>2];D[d+16>>2]=D[e+16>>2];D[d+20>>2]=c;D[d+24>>2]=D[e+24>>2];D[d+40>>2]=a;c=a+12|0;D[d+36>>2]=c;D[d+32>>2]=f;D[d+28>>2]=b;D[d+68>>2]=a;D[d- -64>>2]=c;D[d+60>>2]=f;D[d+56>>2]=b;D[d+48>>2]=0;D[d+52>>2]=0;D[d>>2]=5928;D[d+88>>2]=1065353216;D[d+92>>2]=-1;D[d+80>>2]=-1;D[d+84>>2]=-1;D[d+72>>2]=1;D[d+76>>2]=-1;D[d+44>>2]=6492;a=d+96|0;break c}if((b|0)!=6){break b}b=D[c+44>>2];d=na(112);D[d+4>>2]=h;c=D[e+12>>2];D[d+8>>2]=D[e+8>>2];D[d+12>>2]=c;c=D[e+20>>2];D[d+16>>2]=D[e+16>>2];D[d+20>>2]=c;D[d+24>>2]=D[e+24>>2];D[d+40>>2]=a;c=a+12|0;D[d+36>>2]=c;D[d+32>>2]=g;D[d+28>>2]=b;D[d+68>>2]=a;D[d- -64>>2]=c;D[d+60>>2]=g;D[d+56>>2]=b;D[d+48>>2]=0;D[d+52>>2]=0;D[d>>2]=6932;D[d+88>>2]=1065353216;D[d+92>>2]=-1;D[d+80>>2]=-1;D[d+84>>2]=-1;D[d+72>>2]=1;D[d+76>>2]=-1;D[d+44>>2]=7352;a=d+96|0}D[a>>2]=0;D[a+4>>2]=0;B[a+5|0]=0;B[a+6|0]=0;B[a+7|0]=0;B[a+8|0]=0;B[a+9|0]=0;B[a+10|0]=0;B[a+11|0]=0;B[a+12|0]=0}if(d){break a}}d=na(28);D[d+4>>2]=i;a=D[e+12>>2];D[d+8>>2]=D[e+8>>2];D[d+12>>2]=a;a=D[e+20>>2];D[d+16>>2]=D[e+16>>2];D[d+20>>2]=a;D[d+24>>2]=D[e+24>>2];D[d>>2]=7764}$=e+32|0;return d|0}function Zc(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=$-80|0;$=g;a:{if(!Ub(1,g+76|0,b)){break a}h=D[g+76>>2];if(!h){break a}d=D[b+8>>2];c=D[b+16>>2];d=fi(d-c|0,D[b+12>>2]-(D[b+20>>2]+(c>>>0>d>>>0)|0)|0,5,0);c=aa;if(d>>>0<h>>>0&(c|0)<=0|(c|0)<0){break a}c=D[a+4>>2];d=D[a+8>>2]-c>>2;b:{if(d>>>0<h>>>0){ra(a+4|0,h-d|0);break b}if(d>>>0<=h>>>0){break b}D[a+8>>2]=c+(h<<2)}r=a+16|0;j=D[a+32>>2];k=1;while(1){c:{e=D[b+12>>2];c=e;d=D[b+20>>2];p=D[b+8>>2];m=D[b+16>>2];if((c|0)<=(d|0)&p>>>0<=m>>>0|(c|0)<(d|0)){break c}q=D[b>>2];o=E[q+m|0];c=d;f=m+1|0;c=f?c:c+1|0;D[b+16>>2]=f;D[b+20>>2]=c;if((c|0)>=(e|0)&f>>>0>=p>>>0|(c|0)>(e|0)){break c}f=E[f+q|0];c=d;i=m+2|0;c=i>>>0<2?c+1|0:c;D[b+16>>2]=i;D[b+20>>2]=c;if((c|0)>=(e|0)&i>>>0>=p>>>0|(c|0)>(e|0)){break c}i=E[i+q|0];c=d;n=m+3|0;c=n>>>0<3?c+1|0:c;D[b+16>>2]=n;D[b+20>>2]=c;if((c|0)>=(e|0)&n>>>0>=p>>>0|(c|0)>(e|0)){break c}e=E[n+q|0];c=d;d=m+4|0;c=d>>>0<4?c+1|0:c;D[b+16>>2]=d;D[b+20>>2]=c;if(!i|((f-12&255)>>>0<245|o>>>0>4)){break c}c=mb(g+8|0);n=i<<24>>24;e=(e|0)!=0;d=f-1|0;if(d>>>0<=10){d=D[(d<<2)+10148>>2]}else{d=-1}d=J(d,i);$b(c,o,n,f,e,d,d>>31);if(!Ub(1,g+4|0,b)){break c}f=D[g+4>>2];D[g+68>>2]=f;d=_b(na(96),c);ba[D[D[j>>2]+8>>2]](j,D[j+12>>2]-D[j+8>>2]>>2,d);d=(D[j+12>>2]-D[j+8>>2]>>2)-1|0;o=d<<2;D[D[o+D[j+8>>2]>>2]+60>>2]=f;D[D[a+4>>2]+(l<<2)>>2]=d;k=D[a+16>>2];c=D[a+20>>2]-k>>2;d:{if((c|0)>(d|0)){break d}D[g>>2]=-1;d=d+1|0;if(d>>>0>c>>>0){xa(r,d-c|0,g);k=D[r>>2];break d}if(c>>>0<=d>>>0){break d}D[a+20>>2]=(d<<2)+k}D[k+o>>2]=l;l=l+1|0;k=l>>>0<h>>>0;if((h|0)!=(l|0)){continue}}break}l=!k}$=g+80|0;return l&1}function Mc(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,k=0,l=0;k=$-16|0;$=k;D[k+8>>2]=c;e=D[a+12>>2];d=D[a+8>>2];f=e-d>>2;a:{if((f|0)>(b|0)){break a}h=b+1|0;if(h>>>0>f>>>0){f=h-f|0;g=D[a+16>>2];d=D[a+12>>2];if(f>>>0<=g-d>>2>>>0){if(f){e=d;d=f<<2;d=qa(e,0,d)+d|0}D[a+12>>2]=d;break a}b:{c:{d:{h=D[a+8>>2];i=d-h>>2;e=i+f|0;if(e>>>0<1073741824){g=g-h|0;l=g>>1;g=g>>>0<2147483644?e>>>0<l>>>0?l:e:1073741823;if(g){if(g>>>0>=1073741824){break d}j=na(g<<2)}e=(i<<2)+j|0;i=f<<2;f=qa(e,0,i);i=f+i|0;g=(g<<2)+j|0;if((d|0)==(h|0)){break c}while(1){d=d-4|0;f=D[d>>2];D[d>>2]=0;e=e-4|0;D[e>>2]=f;if((d|0)!=(h|0)){continue}break}D[a+16>>2]=g;f=D[a+12>>2];D[a+12>>2]=i;d=D[a+8>>2];D[a+8>>2]=e;if((d|0)==(f|0)){break b}while(1){f=f-4|0;e=D[f>>2];D[f>>2]=0;if(e){Aa(e)}if((d|0)!=(f|0)){continue}break}break b}pa();T()}sa();T()}D[a+16>>2]=g;D[a+12>>2]=i;D[a+8>>2]=f}if(d){ma(d)}break a}if(f>>>0<=h>>>0){break a}d=d+(h<<2)|0;if((d|0)!=(e|0)){while(1){e=e-4|0;c=D[e>>2];D[e>>2]=0;if(c){Aa(c)}if((d|0)!=(e|0)){continue}break}c=D[k+8>>2]}D[a+12>>2]=d}e:{f:{d=D[c+56>>2];g:{if((d|0)>4){break g}e=J(d,12)+a|0;d=D[e+24>>2];if((d|0)!=D[e+28>>2]){D[d>>2]=b;D[e+24>>2]=d+4;break g}h=D[e+20>>2];f=d-h|0;j=f>>2;d=j+1|0;if(d>>>0>=1073741824){break f}g=f>>1;g=f>>>0<2147483644?d>>>0<g>>>0?g:d:1073741823;if(g){if(g>>>0>=1073741824){break e}d=na(g<<2)}else{d=0}j=d+(j<<2)|0;D[j>>2]=b;if((f|0)>0){oa(d,h,f)}D[e+20>>2]=d;D[e+24>>2]=j+4;D[e+28>>2]=d+(g<<2);if(!h){break g}ma(h)}D[c+60>>2]=b;a=D[a+8>>2];D[k+8>>2]=0;b=a+(b<<2)|0;a=D[b>>2];D[b>>2]=c;if(a){Aa(a)}a=D[k+8>>2];D[k+8>>2]=0;if(a){Aa(a)}$=k+16|0;return}pa();T()}sa();T()}function xd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;i=$-16|0;$=i;D[i>>2]=b;g=-1;a:{if((b|0)==-1){D[i+4>>2]=-1;break a}c=b+1|0;D[i+4>>2]=(c>>>0)%3|0?c:b-2|0;if((b>>>0)%3|0){g=b-1|0;break a}g=b+2|0}D[i+8>>2]=g;n=(b>>>0)/3|0;b:{c:{d:{while(1){e:{f:{k=D[(l<<2)+i>>2];if((k|0)!=-1){c=D[D[D[a+8>>2]+12>>2]+(k<<2)>>2];if((c|0)!=-1){break f}}g=0;c=D[a+216>>2];if((c|0)==D[a+220>>2]){break e}while(1){f=J(g,144)+c|0;c=D[f+136>>2];d=D[f+140>>2];g:{if(c>>>0<d>>>0){D[c>>2]=k;D[f+136>>2]=c+4;break g}h=D[f+132>>2];j=c-h|0;e=j>>2;c=e+1|0;if(c>>>0>=1073741824){break d}m=e<<2;d=d-h|0;e=d>>1;d=d>>>0<2147483644?c>>>0<e>>>0?e:c:1073741823;if(d){if(d>>>0>=1073741824){break c}c=na(d<<2)}else{c=0}e=m+c|0;D[e>>2]=k;if((j|0)>0){oa(c,h,j)}D[f+132>>2]=c;D[f+136>>2]=e+4;D[f+140>>2]=c+(d<<2);if(!h){break g}ma(h)}g=g+1|0;c=D[a+216>>2];if(g>>>0<(D[a+220>>2]-c|0)/144>>>0){continue}break}break e}if((b|0)==-1|(c>>>0)/3>>>0<n>>>0){break e}g=0;if(D[a+220>>2]==D[a+216>>2]){break e}while(1){h:{if(!za(D[a+368>>2]+(g<<4)|0)){break h}f=D[a+216>>2]+J(g,144)|0;c=D[f+136>>2];d=D[f+140>>2];if(c>>>0<d>>>0){D[c>>2]=k;D[f+136>>2]=c+4;break h}h=D[f+132>>2];j=c-h|0;e=j>>2;c=e+1|0;if(c>>>0>=1073741824){break b}m=e<<2;d=d-h|0;e=d>>1;d=d>>>0<2147483644?c>>>0<e>>>0?e:c:1073741823;if(d){if(d>>>0>=1073741824){break c}c=na(d<<2)}else{c=0}e=m+c|0;D[e>>2]=k;if((j|0)>0){oa(c,h,j)}D[f+132>>2]=c;D[f+136>>2]=e+4;D[f+140>>2]=c+(d<<2);if(!h){break h}ma(h)}g=g+1|0;if(g>>>0<(D[a+220>>2]-D[a+216>>2]|0)/144>>>0){continue}break}}l=l+1|0;if((l|0)!=3){continue}break}$=i+16|0;return 1}pa();T()}sa();T()}pa();T()}function Lf(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,k=0;e=a;a:{if(D[a+12>>2]==(b|0)){break a}d=D[e+4>>2];a=D[e>>2];if((d|0)!=(a|0)){while(1){d=d-12|0;if(B[d+11|0]<0){ma(D[d>>2])}if((a|0)!=(d|0)){continue}break}}D[e+12>>2]=b;D[e+4>>2]=a;d=D[b>>2];j=b+4|0;if((d|0)==(j|0)){break a}while(1){a=D[e+4>>2];b:{if((a|0)!=D[e+8>>2]){c:{if(B[d+27|0]>=0){b=D[d+20>>2];D[a>>2]=D[d+16>>2];D[a+4>>2]=b;D[a+8>>2]=D[d+24>>2];break c}ta(a,D[d+16>>2],D[d+20>>2])}D[e+4>>2]=a+12;break b}h=0;d:{e:{f:{b=D[e+4>>2];a=D[e>>2];g=(b-a|0)/12|0;f=g+1|0;if(f>>>0<357913942){i=(D[e+8>>2]-a|0)/12|0;k=i<<1;f=i>>>0<178956970?f>>>0<k>>>0?k:f:357913941;if(f){if(f>>>0>=357913942){break f}h=na(J(f,12))}i=J(f,12);f=J(g,12)+h|0;g:{if(B[d+27|0]>=0){g=D[d+20>>2];D[f>>2]=D[d+16>>2];D[f+4>>2]=g;D[f+8>>2]=D[d+24>>2];break g}ta(f,D[d+16>>2],D[d+20>>2]);b=D[e+4>>2];a=D[e>>2]}h=h+i|0;g=f+12|0;if((a|0)==(b|0)){break e}while(1){b=b-12|0;i=D[b+4>>2];f=f-12|0;D[f>>2]=D[b>>2];D[f+4>>2]=i;D[f+8>>2]=D[b+8>>2];D[b>>2]=0;D[b+4>>2]=0;D[b+8>>2]=0;if((a|0)!=(b|0)){continue}break}D[e+8>>2]=h;a=D[e+4>>2];D[e+4>>2]=g;b=D[e>>2];D[e>>2]=f;if((a|0)==(b|0)){break d}while(1){a=a-12|0;if(B[a+11|0]<0){ma(D[a>>2])}if((a|0)!=(b|0)){continue}break}break d}pa();T()}sa();T()}D[e+8>>2]=h;D[e+4>>2]=g;D[e>>2]=f}if(b){ma(b)}}a=D[d+4>>2];h:{if(a){while(1){d=a;a=D[a>>2];if(a){continue}break h}}while(1){a=d;d=D[d+8>>2];if((a|0)!=D[d>>2]){continue}break}}if((d|0)!=(j|0)){continue}break}}d=0;i:{if((c|0)<0){break i}a=D[e>>2];if((D[e+4>>2]-a|0)/12>>>0<=c>>>0){break i}a=a+J(c,12)|0;d=B[a+11|0]<0?D[a>>2]:a}return d|0}function yd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;h=$-16|0;$=h;m=-1;a:{b:{c:{if(!Ga(1,h+12|0,b)){break c}k=D[h+12>>2];if(k){c=D[a+8>>2];if((D[c+4>>2]-D[c>>2]>>2>>>0)/3>>>0<k>>>0){break c}while(1){if(!Ga(1,h+8|0,b)){break c}c=D[h+8>>2];if(!Ga(1,h+8|0,b)){break c}e=c+e|0;c=D[h+8>>2];if(e>>>0<c>>>0){break c}f=e-c|0;c=D[a+40>>2];d:{if((c|0)!=D[a+44>>2]){D[c+4>>2]=e;D[c>>2]=f;D[a+40>>2]=c+12;k=D[h+12>>2];break d}d=D[a+36>>2];i=c-d|0;g=(i|0)/12|0;c=g+1|0;if(c>>>0>=357913942){break b}j=g<<1;j=g>>>0<178956970?c>>>0<j>>>0?j:c:357913941;if(j){if(j>>>0>=357913942){break a}c=na(J(j,12))}else{c=0}g=c+J(g,12)|0;D[g+4>>2]=e;D[g>>2]=f;f=g+J((i|0)/-12|0,12)|0;if((i|0)>0){oa(f,d,i)}D[a+44>>2]=c+J(j,12);D[a+40>>2]=g+12;D[a+36>>2]=f;if(!d){break d}ma(d)}l=l+1|0;if(l>>>0<k>>>0){continue}break}e=0;ec(b,0,0);if(k){while(1){c=E[b+36|0];d=F[D[a+4>>2]+36>>1];e:{f:{if(((d<<8|d>>>8)&65535)>>>0<=513){if(!c){break e}f=0;d=D[b+32>>2];l=d>>>3|0;i=D[b+24>>2];c=l+i|0;g=D[b+28>>2];g:{if(c>>>0>=g>>>0){c=d;break g}f=E[c|0];c=d+1|0;D[b+32>>2]=c;l=c>>>3|0;f=f>>>(d&7)&1}if(g>>>0>i+l>>>0){break f}break e}if(!c){break e}f=0;c=D[b+32>>2];d=D[b+24>>2]+(c>>>3|0)|0;if(d>>>0>=G[b+28>>2]){break e}f=E[d|0]>>>(c&7)&1}D[b+32>>2]=c+1}c=D[a+36>>2]+J(e,12)|0;B[c+8|0]=E[c+8|0]&254|f&1;e=e+1|0;if((k|0)!=(e|0)){continue}break}}B[b+36|0]=0;d=D[b+20>>2];a=0;c=D[b+32>>2]+7|0;a=c>>>0<7?1:a;e=a<<29|c>>>3;c=e+D[b+16>>2]|0;a=(a>>>3|0)+d|0;D[b+16>>2]=c;D[b+20>>2]=c>>>0<e>>>0?a+1|0:a}m=D[b+16>>2]}$=h+16|0;return m}pa();T()}sa();T()}function tf(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,k=0,l=0,m=0,n=0;a=0;g=$-16|0;$=g;i=B[c+24|0];k=D[b+80>>2];b=J(i,k);a:{b:{c:{e=D[c+28>>2];d:{if(!(!E[c+84|0]|(e|0)!=1&(e|0)!=2)){a=D[c+48>>2];c=D[D[c>>2]>>2];D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;e=0;if(b){if((b|0)<0){break b}e=na(b);f=oa(e,a+c|0,b)+b|0}a=D[d>>2];if(a){D[d+4>>2]=a;ma(a)}D[d+8>>2]=f;D[d+4>>2]=f;D[d>>2]=e;a=1;break d}D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(i){if((i|0)<0){break b}a=na(i);D[g>>2]=a;f=a+i|0;D[g+8>>2]=f;qa(a,0,i);D[g+4>>2]=f}h=D[d+4>>2];f=D[d>>2];e=h-f|0;e:{if(e>>>0<b>>>0){l=b-e|0;j=D[d+8>>2];if(l>>>0<=j-h>>>0){m=d,n=qa(h,0,l)+l|0,D[m+4>>2]=n;break e}if((b|0)<0){break c}h=j-f|0;j=h<<1;j=h>>>0<1073741823?b>>>0<j>>>0?j:b:2147483647;h=na(j);qa(h+e|0,0,l);if((e|0)>0){oa(h,f,e)}D[d+8>>2]=h+j;D[d+4>>2]=b+h;D[d>>2]=h;if(!f){break e}ma(f);break e}if(b>>>0>=e>>>0){break e}D[d+4>>2]=b+f}f:{if(!k){e=0;break f}if(!i){b=0;e=1;while(1){if(!Db(c,E[c+84|0]?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],a)){break f}b=b+1|0;e=k>>>0>b>>>0;if((b|0)!=(k|0)){continue}break}break f}h=i&-2;l=i&1;b=0;e=1;a=0;while(1){if(Db(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],D[g>>2])){f=0;e=0;if((i|0)!=1){while(1){B[D[d>>2]+b|0]=E[D[g>>2]+f|0];B[(D[d>>2]+b|0)+1|0]=E[D[g>>2]+(f|1)|0];f=f+2|0;b=b+2|0;e=e+2|0;if((h|0)!=(e|0)){continue}break}}if(l){B[D[d>>2]+b|0]=E[D[g>>2]+f|0];b=b+1|0}a=a+1|0;e=k>>>0>a>>>0;if((a|0)!=(k|0)){continue}}break}a=D[g>>2]}if(a){ma(a)}a=e^1}$=g+16|0;a=a&1;break a}pa();T()}pa();T()}return a|0}function sf(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,k=0,l=0,m=0,n=0;a=0;g=$-16|0;$=g;i=B[c+24|0];k=D[b+80>>2];b=J(i,k);a:{b:{c:{e=D[c+28>>2];d:{if(!(!E[c+84|0]|(e|0)!=1&(e|0)!=2)){a=D[c+48>>2];c=D[D[c>>2]>>2];D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;e=0;if(b){if((b|0)<0){break b}e=na(b);f=oa(e,a+c|0,b)+b|0}a=D[d>>2];if(a){D[d+4>>2]=a;ma(a)}D[d+8>>2]=f;D[d+4>>2]=f;D[d>>2]=e;a=1;break d}D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(i){if((i|0)<0){break b}a=na(i);D[g>>2]=a;f=a+i|0;D[g+8>>2]=f;qa(a,0,i);D[g+4>>2]=f}h=D[d+4>>2];f=D[d>>2];e=h-f|0;e:{if(e>>>0<b>>>0){l=b-e|0;j=D[d+8>>2];if(l>>>0<=j-h>>>0){m=d,n=qa(h,0,l)+l|0,D[m+4>>2]=n;break e}if((b|0)<0){break c}h=j-f|0;j=h<<1;j=h>>>0<1073741823?b>>>0<j>>>0?j:b:2147483647;h=na(j);qa(h+e|0,0,l);if((e|0)>0){oa(h,f,e)}D[d+8>>2]=h+j;D[d+4>>2]=b+h;D[d>>2]=h;if(!f){break e}ma(f);break e}if(b>>>0>=e>>>0){break e}D[d+4>>2]=b+f}f:{if(!k){e=0;break f}if(!i){b=0;e=1;while(1){if(!Cb(c,E[c+84|0]?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],a)){break f}b=b+1|0;e=k>>>0>b>>>0;if((b|0)!=(k|0)){continue}break}break f}h=i&-2;l=i&1;b=0;e=1;a=0;while(1){if(Cb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],D[g>>2])){f=0;e=0;if((i|0)!=1){while(1){B[D[d>>2]+b|0]=E[D[g>>2]+f|0];B[(D[d>>2]+b|0)+1|0]=E[D[g>>2]+(f|1)|0];f=f+2|0;b=b+2|0;e=e+2|0;if((h|0)!=(e|0)){continue}break}}if(l){B[D[d>>2]+b|0]=E[D[g>>2]+f|0];b=b+1|0}a=a+1|0;e=k>>>0>a>>>0;if((a|0)!=(k|0)){continue}}break}a=D[g>>2]}if(a){ma(a)}a=e^1}$=g+16|0;a=a&1;break a}pa();T()}pa();T()}return a|0}function Jb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=D[b+16>>2];g=D[c+4>>2]-k|0;e=g;f=D[c>>2]-k|0;D[c>>2]=f;D[c+4>>2]=e;j=D[b+16>>2];e=e>>31;h=(e^g)-e|0;e=f>>31;l=(j|0)>=(h+((e^f)-e|0)|0);a:{if(l){e=g;break a}b:{c:{if((f|0)>=0){i=1;h=1;if((g|0)>=0){break b}e=1;i=-1;h=-1;if(f){break c}break b}e=-1;i=-1;h=-1;if((g|0)<=0){break b}}i=(g|0)<=0?-1:1;h=e}e=f<<1;f=J(h,j);e=e-f|0;h=(J(i,h)|0)>=0;i=J(i,j);e=((h?0-e|0:e)+i|0)/2|0;D[c+4>>2]=e;j=f;f=(g<<1)-i|0;f=(j+(h?0-f|0:f)|0)/2|0;D[c>>2]=f}d:{e:{f:{g:{h:{i:{j:{if(f){if((f|0)<0){break j}if((e|0)>=0){break i}break f}if(e){break h}i=1;g=0;e=0;h=0;break d}i=1;if((e|0)>0){break g}h=(e|0)>0?253:0;g=e;e=f;break d}g=0-e|0;e=0-f|0;h=254;break e}if((e|0)<=0){break f}}e=0-e|0;g=f;h=253;break e}g=0-f|0;h=255}D[c>>2]=e;D[c+4>>2]=g;i=0}c=D[d+4>>2]+g|0;f=D[d>>2]+e|0;g=D[b+16>>2];k:{if((f|0)>(g|0)){f=f-D[b+4>>2]|0;break k}if((0-g|0)<=(f|0)){break k}f=D[b+4>>2]+f|0}l:{if((c|0)>(g|0)){c=c-D[b+4>>2]|0;break l}if((0-g|0)<=(c|0)){break l}c=D[b+4>>2]+c|0}m:{if(i){b=c;break m}b=c;n:{switch((h&3)-1|0){case 0:b=0-f|0;f=c;break m;case 1:b=0-c|0;f=0-f|0;break m;case 2:break n;default:break m}}b=f;f=0-c|0}o:{if(l){c=b;break o}p:{q:{if((f|0)>=0){c=1;e=1;if((b|0)>=0){break p}d=1;c=-1;e=-1;if(f){break q}break p}d=-1;c=-1;e=-1;if((b|0)<=0){break p}}c=(b|0)<=0?-1:1;e=d}d=f<<1;f=J(e,g);d=d-f|0;D[a>>2]=d;j=0-d|0;h=d;d=(J(c,e)|0)>=0;e=J(c,g);c=((d?j:h)+e|0)/2|0;b=(b<<1)-e|0;f=(f+(d?0-b|0:b)|0)/2|0}D[a>>2]=f+k;D[a+4>>2]=c+k}function uf(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,k=0,l=0,m=0,n=0,o=0,p=0;a=0;h=$-16|0;$=h;j=D[b+80>>2];b=E[c+24|0];D[h+8>>2]=0;D[h>>2]=0;D[h+4>>2]=0;e=b<<24>>24;a:{b:{c:{d:{if(b){if((e|0)<0){break d}b=e<<2;a=na(b);D[h>>2]=a;g=a+b|0;D[h+8>>2]=g;b=a;k=e&7;if(k){while(1){D[b>>2]=-1073741824;b=b+4|0;f=f+1|0;if((k|0)!=(f|0)){continue}break}}if((e-1&1073741823)>>>0>=7){while(1){D[b+24>>2]=-1073741824;D[b+28>>2]=-1073741824;D[b+16>>2]=-1073741824;D[b+20>>2]=-1073741824;D[b+8>>2]=-1073741824;D[b+12>>2]=-1073741824;D[b>>2]=-1073741824;D[b+4>>2]=-1073741824;b=b+32|0;if((g|0)!=(b|0)){continue}break}}D[h+4>>2]=g}b=J(e,j);g=D[d>>2];f=D[d+4>>2]-g>>2;e:{if(b>>>0>f>>>0){ra(d,b-f|0);break e}if(b>>>0>=f>>>0){break e}D[d+4>>2]=g+(b<<2)}if(!j){break c}i=1;if((e|0)<=0){b=0;while(1){if(!nb(c,E[c+84|0]?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],a)){break c}b=b+1|0;i=j>>>0>b>>>0;if((b|0)!=(j|0)){continue}break}break c}o=e&-4;k=e&3;f=0;p=e-1>>>0<3;while(1){if(!nb(c,E[c+84|0]?l:D[D[c+68>>2]+(l<<2)>>2],B[c+24|0],a)){break c}n=D[d>>2];m=0;b=0;i=0;if(!p){while(1){e=(f<<2)+n|0;g=b<<2;H[e>>2]=H[g+a>>2];H[e+4>>2]=H[(g|4)+a>>2];H[e+8>>2]=H[(g|8)+a>>2];H[e+12>>2]=H[(g|12)+a>>2];b=b+4|0;f=f+4|0;i=i+4|0;if((o|0)!=(i|0)){continue}break}}if(k){while(1){H[(f<<2)+n>>2]=H[(b<<2)+a>>2];b=b+1|0;f=f+1|0;m=m+1|0;if((k|0)!=(m|0)){continue}break}}l=l+1|0;i=l>>>0<j>>>0;if((j|0)!=(l|0)){continue}break}break b}pa();T()}if(!a){break a}}ma(a)}$=h+16|0;return(i^-1)&1}function rb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=d-c|0;if((i|0)<=0){return}a:{g=D[a+8>>2];h=D[a+4>>2];if((g-h|0)>=(i|0)){j=h-b|0;if((j|0)>=(i|0)){f=h;g=d;break a}f=h;g=c+j|0;if((g|0)!=(d|0)){e=g;while(1){B[f|0]=E[e|0];f=f+1|0;e=e+1|0;if((e|0)!=(d|0)){continue}break}}D[a+4>>2]=f;if((j|0)>0){break a}return}f=D[a>>2];e=(h-f|0)+i|0;if((e|0)>=0){j=b-f|0;g=g-f|0;k=g<<1;k=g>>>0<1073741823?e>>>0<k>>>0?k:e:2147483647;if(k){g=na(k)}else{g=0}e=j+g|0;if((c|0)!=(d|0)){e=oa(e,c,i)+i|0}if((j|0)>0){oa(g,f,j)}if((b|0)!=(h|0)){d=(b^-1)+h|0;f=h-b&7;if(f){c=0;while(1){B[e|0]=E[b|0];e=e+1|0;b=b+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}if(d>>>0>=7){while(1){B[e|0]=E[b|0];B[e+1|0]=E[b+1|0];B[e+2|0]=E[b+2|0];B[e+3|0]=E[b+3|0];B[e+4|0]=E[b+4|0];B[e+5|0]=E[b+5|0];B[e+6|0]=E[b+6|0];B[e+7|0]=E[b+7|0];e=e+8|0;b=b+8|0;if((h|0)!=(b|0)){continue}break}}f=D[a>>2]}D[a+8>>2]=g+k;D[a+4>>2]=e;D[a>>2]=g;if(f){ma(f)}return}pa();T()}e=f;d=e-i|0;if(h>>>0>d>>>0){while(1){B[e|0]=E[d|0];e=e+1|0;d=d+1|0;if(h>>>0>d>>>0){continue}break}}D[a+4>>2]=e;a=b+i|0;if((a|0)!=(f|0)){a=f-a|0;Ra(f-a|0,b,a)}if((c|0)==(g|0)){return}a=(c^-1)+g|0;f=g-c&7;b:{if(!f){e=b;break b}d=0;e=b;while(1){B[e|0]=E[c|0];e=e+1|0;c=c+1|0;d=d+1|0;if((f|0)!=(d|0)){continue}break}}if(a>>>0<7){return}while(1){B[e|0]=E[c|0];B[e+1|0]=E[c+1|0];B[e+2|0]=E[c+2|0];B[e+3|0]=E[c+3|0];B[e+4|0]=E[c+4|0];B[e+5|0]=E[c+5|0];B[e+6|0]=E[c+6|0];B[e+7|0]=E[c+7|0];e=e+8|0;c=c+8|0;if((g|0)!=(c|0)){continue}break}}function Qh(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0;D[a+8>>2]=e;m=a+32|0;h=D[m>>2];g=D[a+36>>2]-h>>2;a:{if(g>>>0<e>>>0){ra(m,e-g|0);f=D[a+8>>2];break a}f=e;if(f>>>0>=g>>>0){break a}D[a+36>>2]=h+(e<<2);f=e}g=(e&1073741823)!=(e|0)?-1:e<<2;n=qa(na(g),0,g);b:{if((f|0)<=0){break b}h=D[a+32>>2];while(1){f=i<<2;g=D[f+n>>2];j=D[a+16>>2];c:{if((g|0)>(j|0)){D[f+h>>2]=j;break c}f=f+h|0;j=D[a+12>>2];if((j|0)>(g|0)){D[f>>2]=j;break c}D[f>>2]=g}f=D[a+8>>2];i=i+1|0;if((f|0)>(i|0)){continue}break}if((f|0)<=0){break b}i=0;while(1){g=i<<2;f=g+c|0;g=D[b+g>>2]+D[g+h>>2]|0;D[f>>2]=g;d:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break d}g=g+D[a+20>>2]|0}D[f>>2]=g}f=D[a+8>>2];i=i+1|0;if((f|0)>(i|0)){continue}break}}if(!((d|0)<=(e|0)|(f|0)<=0)){p=0-e<<2;g=e;while(1){e:{if((f|0)<=0){break e}l=g<<2;o=l+c|0;q=o+p|0;j=D[m>>2];i=0;while(1){f=i<<2;h=D[f+q>>2];k=D[a+16>>2];f:{if((h|0)>(k|0)){D[f+j>>2]=k;break f}f=f+j|0;k=D[a+12>>2];if((k|0)>(h|0)){D[f>>2]=k;break f}D[f>>2]=h}f=D[a+8>>2];i=i+1|0;if((f|0)>(i|0)){continue}break}i=0;if((f|0)<=0){break e}l=b+l|0;while(1){h=i<<2;f=h+o|0;h=D[h+l>>2]+D[h+j>>2]|0;D[f>>2]=h;g:{if((h|0)>D[a+16>>2]){h=h-D[a+20>>2]|0}else{if((h|0)>=D[a+12>>2]){break g}h=h+D[a+20>>2]|0}D[f>>2]=h}f=D[a+8>>2];i=i+1|0;if((f|0)>(i|0)){continue}break}}g=e+g|0;if((g|0)<(d|0)){continue}break}}ma(n);return 1}function pf(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,k=0,l=0,m=0,n=0,o=0,p=0;g=$-16|0;$=g;j=D[b+80>>2];a=B[c+24|0];b=J(j,a);a:{b:{c:{d:{e=D[c+28>>2];if(!(!E[c+84|0]|(e|0)!=5&(e|0)!=6)){e=D[c+48>>2];c=D[D[c>>2]>>2];D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(b){if((b|0)<0){break d}a=b<<2;f=na(a);i=oa(f,c+e|0,a)+a|0}a=D[d>>2];if(a){D[d+4>>2]=a;ma(a)}D[d+8>>2]=i;D[d+4>>2]=i;D[d>>2]=f;a=1;break a}D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(a){if((a|0)<0){break d}e=a<<2;f=na(e);D[g>>2]=f;h=e+f|0;D[g+8>>2]=h;qa(f,0,e);D[g+4>>2]=h}h=D[d>>2];e=D[d+4>>2]-h>>2;e:{if(e>>>0<b>>>0){ra(d,b-e|0);break e}if(b>>>0>=e>>>0){break e}D[d+4>>2]=h+(b<<2)}if(!j){b=0;break c}if(!a){a=0;b=1;while(1){if(!yb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],f)){break c}a=a+1|0;b=j>>>0>a>>>0;if((a|0)!=(j|0)){continue}break}break c}o=a&-4;m=a&3;p=a-1>>>0<3;b=1;e=0;while(1){if(!yb(c,E[c+84|0]?e:D[D[c+68>>2]+(e<<2)>>2],B[c+24|0],f)){break c}n=D[d>>2];l=0;a=0;b=0;if(!p){while(1){h=(i<<2)+n|0;k=a<<2;D[h>>2]=D[k+f>>2];D[h+4>>2]=D[(k|4)+f>>2];D[h+8>>2]=D[(k|8)+f>>2];D[h+12>>2]=D[(k|12)+f>>2];a=a+4|0;i=i+4|0;b=b+4|0;if((o|0)!=(b|0)){continue}break}}if(m){while(1){D[(i<<2)+n>>2]=D[(a<<2)+f>>2];a=a+1|0;i=i+1|0;l=l+1|0;if((l|0)!=(m|0)){continue}break}}e=e+1|0;b=j>>>0>e>>>0;if((e|0)!=(j|0)){continue}break}a=e>>>0>=j>>>0;break b}pa();T()}a=!b;if(!f){break a}}ma(f)}$=g+16|0;return a&1}function ad(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,k=0,l=0,m=0,n=0,o=0,p=0;g=$-16|0;$=g;j=D[b+80>>2];a=B[c+24|0];b=J(j,a);a:{b:{c:{d:{e=D[c+28>>2];if(!(!E[c+84|0]|(e|0)!=5&(e|0)!=6)){e=D[c+48>>2];c=D[D[c>>2]>>2];D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(b){if((b|0)<0){break d}a=b<<2;f=na(a);i=oa(f,c+e|0,a)+a|0}a=D[d>>2];if(a){D[d+4>>2]=a;ma(a)}D[d+8>>2]=i;D[d+4>>2]=i;D[d>>2]=f;a=1;break a}D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(a){if((a|0)<0){break d}e=a<<2;f=na(e);D[g>>2]=f;h=e+f|0;D[g+8>>2]=h;qa(f,0,e);D[g+4>>2]=h}h=D[d>>2];e=D[d+4>>2]-h>>2;e:{if(e>>>0<b>>>0){ra(d,b-e|0);break e}if(b>>>0>=e>>>0){break e}D[d+4>>2]=h+(b<<2)}if(!j){b=0;break c}if(!a){a=0;b=1;while(1){if(!zb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],f)){break c}a=a+1|0;b=j>>>0>a>>>0;if((a|0)!=(j|0)){continue}break}break c}o=a&-4;m=a&3;p=a-1>>>0<3;b=1;e=0;while(1){if(!zb(c,E[c+84|0]?e:D[D[c+68>>2]+(e<<2)>>2],B[c+24|0],f)){break c}n=D[d>>2];l=0;a=0;b=0;if(!p){while(1){h=(i<<2)+n|0;k=a<<2;D[h>>2]=D[k+f>>2];D[h+4>>2]=D[(k|4)+f>>2];D[h+8>>2]=D[(k|8)+f>>2];D[h+12>>2]=D[(k|12)+f>>2];a=a+4|0;i=i+4|0;b=b+4|0;if((o|0)!=(b|0)){continue}break}}if(m){while(1){D[(i<<2)+n>>2]=D[(a<<2)+f>>2];a=a+1|0;i=i+1|0;l=l+1|0;if((l|0)!=(m|0)){continue}break}}e=e+1|0;b=j>>>0>e>>>0;if((e|0)!=(j|0)){continue}break}a=e>>>0>=j>>>0;break b}pa();T()}a=!b;if(!f){break a}}ma(f)}$=g+16|0;return a&1}function rf(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,k=0,l=0,m=0,n=0,o=0,p=0;g=$-16|0;$=g;j=D[b+80>>2];a=B[c+24|0];b=J(j,a);a:{b:{c:{d:{e=D[c+28>>2];if(!(!E[c+84|0]|(e|0)!=3&(e|0)!=4)){e=D[c+48>>2];c=D[D[c>>2]>>2];D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(b){if((b|0)<0){break d}a=b<<1;f=na(a);i=oa(f,c+e|0,a)+a|0}a=D[d>>2];if(a){D[d+4>>2]=a;ma(a)}D[d+8>>2]=i;D[d+4>>2]=i;D[d>>2]=f;a=1;break a}D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(a){if((a|0)<0){break d}e=a<<1;f=na(e);D[g>>2]=f;h=e+f|0;D[g+8>>2]=h;qa(f,0,e);D[g+4>>2]=h}h=D[d>>2];e=D[d+4>>2]-h>>1;e:{if(e>>>0<b>>>0){id(d,b-e|0);break e}if(b>>>0>=e>>>0){break e}D[d+4>>2]=h+(b<<1)}if(!j){b=0;break c}if(!a){a=0;b=1;while(1){if(!Bb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],f)){break c}a=a+1|0;b=j>>>0>a>>>0;if((a|0)!=(j|0)){continue}break}break c}o=a&-4;m=a&3;p=a-1>>>0<3;b=1;e=0;while(1){if(!Bb(c,E[c+84|0]?e:D[D[c+68>>2]+(e<<2)>>2],B[c+24|0],f)){break c}n=D[d>>2];l=0;a=0;b=0;if(!p){while(1){h=(i<<1)+n|0;k=a<<1;C[h>>1]=F[k+f>>1];C[h+2>>1]=F[(k|2)+f>>1];C[h+4>>1]=F[(k|4)+f>>1];C[h+6>>1]=F[(k|6)+f>>1];a=a+4|0;i=i+4|0;b=b+4|0;if((o|0)!=(b|0)){continue}break}}if(m){while(1){C[(i<<1)+n>>1]=F[(a<<1)+f>>1];a=a+1|0;i=i+1|0;l=l+1|0;if((l|0)!=(m|0)){continue}break}}e=e+1|0;b=j>>>0>e>>>0;if((e|0)!=(j|0)){continue}break}a=e>>>0>=j>>>0;break b}pa();T()}a=!b;if(!f){break a}}ma(f)}$=g+16|0;return a&1}function qf(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,k=0,l=0,m=0,n=0,o=0,p=0;g=$-16|0;$=g;j=D[b+80>>2];a=B[c+24|0];b=J(j,a);a:{b:{c:{d:{e=D[c+28>>2];if(!(!E[c+84|0]|(e|0)!=3&(e|0)!=4)){e=D[c+48>>2];c=D[D[c>>2]>>2];D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(b){if((b|0)<0){break d}a=b<<1;f=na(a);i=oa(f,c+e|0,a)+a|0}a=D[d>>2];if(a){D[d+4>>2]=a;ma(a)}D[d+8>>2]=i;D[d+4>>2]=i;D[d>>2]=f;a=1;break a}D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(a){if((a|0)<0){break d}e=a<<1;f=na(e);D[g>>2]=f;h=e+f|0;D[g+8>>2]=h;qa(f,0,e);D[g+4>>2]=h}h=D[d>>2];e=D[d+4>>2]-h>>1;e:{if(e>>>0<b>>>0){id(d,b-e|0);break e}if(b>>>0>=e>>>0){break e}D[d+4>>2]=h+(b<<1)}if(!j){b=0;break c}if(!a){a=0;b=1;while(1){if(!Ab(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],f)){break c}a=a+1|0;b=j>>>0>a>>>0;if((a|0)!=(j|0)){continue}break}break c}o=a&-4;m=a&3;p=a-1>>>0<3;b=1;e=0;while(1){if(!Ab(c,E[c+84|0]?e:D[D[c+68>>2]+(e<<2)>>2],B[c+24|0],f)){break c}n=D[d>>2];l=0;a=0;b=0;if(!p){while(1){h=(i<<1)+n|0;k=a<<1;C[h>>1]=F[k+f>>1];C[h+2>>1]=F[(k|2)+f>>1];C[h+4>>1]=F[(k|4)+f>>1];C[h+6>>1]=F[(k|6)+f>>1];a=a+4|0;i=i+4|0;b=b+4|0;if((o|0)!=(b|0)){continue}break}}if(m){while(1){C[(i<<1)+n>>1]=F[(a<<1)+f>>1];a=a+1|0;i=i+1|0;l=l+1|0;if((l|0)!=(m|0)){continue}break}}e=e+1|0;b=j>>>0>e>>>0;if((e|0)!=(j|0)){continue}break}a=e>>>0>=j>>>0;break b}pa();T()}a=!b;if(!f){break a}}ma(f)}$=g+16|0;return a&1}function lc(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,k=0,l=0;j=$-16|0;$=j;c=D[b+20>>2];d=D[b+16>>2];g=d+4|0;c=g>>>0<4?c+1|0:c;e=D[b+12>>2];a:{if((e|0)<=(c|0)&g>>>0>G[b+8>>2]|(c|0)>(e|0)){break a}d=d+D[b>>2]|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=g;D[b+20>>2]=c;if((d|0)<0){break a}Oa(a+76|0,d);c=j;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;b:{if(!Da(c,b)){break b}if(d){e=1;while(1){f=1<<h;i=za(c);g=D[a+76>>2]+(h>>>3&536870908)|0;e=e^i;if(e&1){f=D[g>>2]&(f^-1)}else{f=f|D[g>>2]}e=e^1;D[g>>2]=f;h=h+1|0;if((d|0)!=(h|0)){continue}break}}h=0;d=D[b+12>>2];g=d;c=D[b+20>>2];e=c;f=D[b+16>>2];i=f+4|0;c=i>>>0<4?c+1|0:c;k=D[b+8>>2];if(k>>>0<i>>>0&(c|0)>=(d|0)|(c|0)>(d|0)){break b}l=D[b>>2];d=l+f|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=i;D[b+20>>2]=c;c=e;e=f+8|0;c=e>>>0<8?c+1|0:c;f=e;e=c;if(f>>>0>k>>>0&(c|0)>=(g|0)|(c|0)>(g|0)){break b}c=i+l|0;c=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[b+16>>2]=f;D[b+20>>2]=e;if((c|0)<(d|0)){break b}D[a+16>>2]=c;D[a+12>>2]=d;b=(c>>31)-((d>>31)+(c>>>0<d>>>0)|0)|0;c=c-d|0;if(!b&c>>>0>2147483646|b){break b}h=1;b=c+1|0;D[a+20>>2]=b;c=b>>>1|0;D[a+24>>2]=c;D[a+28>>2]=0-c;if(b&1){break b}D[a+24>>2]=c-1}}$=j+16|0;return h|0}function hc(a,b){var c=0,d=0,e=0,f=0,g=0;f=-1;d=-1;a:{if((b|0)==-1){break a}d=b+1|0;f=(d>>>0)%3|0?d:b-2|0;d=b-1|0;if((b>>>0)%3|0){break a}d=b+2|0}b:{c:{d:{switch(D[a+168>>2]){case 0:case 1:e=D[a+148>>2];c=1;b=D[a+156>>2];g=b+(((f|0)!=-1?D[D[e>>2]+(f<<2)>>2]:-1)<<2)|0;D[g>>2]=D[g>>2]+1;b=(((d|0)!=-1?D[D[e>>2]+(d<<2)>>2]:-1)<<2)+b|0;break c;case 5:e=D[a+148>>2];c=-1;c=((b|0)!=-1?D[D[e>>2]+(b<<2)>>2]:c)<<2;b=D[a+156>>2];c=c+b|0;D[c>>2]=D[c>>2]+1;c=(((f|0)!=-1?D[D[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;D[c>>2]=D[c>>2]+1;c=2;b=(((d|0)!=-1?D[D[e>>2]+(d<<2)>>2]:-1)<<2)+b|0;break c;case 3:e=D[a+148>>2];c=-1;c=((b|0)!=-1?D[D[e>>2]+(b<<2)>>2]:c)<<2;b=D[a+156>>2];c=c+b|0;D[c>>2]=D[c>>2]+1;c=(((f|0)!=-1?D[D[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;D[c>>2]=D[c>>2]+2;c=1;b=(((d|0)!=-1?D[D[e>>2]+(d<<2)>>2]:-1)<<2)+b|0;break c;case 7:break d;default:break b}}e=D[a+148>>2];c=-1;c=((b|0)!=-1?D[D[e>>2]+(b<<2)>>2]:c)<<2;b=D[a+156>>2];c=c+b|0;D[c>>2]=D[c>>2]+2;c=(((f|0)!=-1?D[D[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;D[c>>2]=D[c>>2]+2;c=2;b=(((d|0)!=-1?D[D[e>>2]+(d<<2)>>2]:-1)<<2)+b|0}D[b>>2]=D[b>>2]+c}c=a;b=D[D[a+156>>2]+(((f|0)!=-1?D[D[D[a+148>>2]>>2]+(f<<2)>>2]:-1)<<2)>>2];d=D[a+180>>2];a=D[a+176>>2];D[c+172>>2]=(a|0)>(b|0)?0:((b|0)<(d|0)?b:d)-a|0}function zg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{c=D[a+32>>2];e=D[c+8>>2];f=D[c+12>>2];d=D[c+20>>2];g=e;e=D[c+16>>2];b=0;b:{if((f|0)<=(d|0)&g>>>0<=e>>>0|(d|0)>(f|0)){break b}g=E[e+D[c>>2]|0];f=e+1|0;d=f?d:d+1|0;D[c+16>>2]=f;D[c+20>>2]=d;c:{if(!g){break c}while(1){if(ba[D[D[a>>2]+16>>2]](a,b)|0){b=b+1|0;if((g|0)!=(b|0)){continue}break c}break}return 0}b=D[a+8>>2];d=D[a+12>>2];if((b|0)!=(d|0)){while(1){c=D[b>>2];if(!(ba[D[D[c>>2]+8>>2]](c,a,D[a+4>>2])|0)){break a}b=b+4|0;if((d|0)!=(b|0)){continue}break}}d:{if(!g){break d}b=0;while(1){c=D[D[a+8>>2]+(b<<2)>>2];if(!(ba[D[D[c>>2]+12>>2]](c,D[a+32>>2])|0)){break a}b=b+1|0;if((g|0)!=(b|0)){continue}break}if(!g){break d}e=a+20|0;while(1){b=0;f=h<<2;c=D[f+D[a+8>>2]>>2];d=ba[D[D[c>>2]+24>>2]](c)|0;if((d|0)>0){while(1){c=D[D[a+8>>2]+f>>2];k=ba[D[D[c>>2]+20>>2]](c,b)|0;i=D[a+20>>2];j=D[a+24>>2]-i>>2;e:{if(k>>>0<j>>>0){break e}c=k+1|0;if(c>>>0>j>>>0){ra(e,c-j|0);i=D[e>>2];break e}if(c>>>0>=j>>>0){break e}D[a+24>>2]=(c<<2)+i}D[(k<<2)+i>>2]=h;b=b+1|0;if((d|0)!=(b|0)){continue}break}}h=h+1|0;if((g|0)!=(h|0)){continue}break}}b=0;if(!(ba[D[D[a>>2]+28>>2]](a)|0)){break b}b=ba[D[D[a>>2]+32>>2]](a)|0}return b|0}return 0}function Vb(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=D[a+8>>2];e=D[a>>2];if(d-e>>2>>>0>=b>>>0){g=D[a+4>>2];h=g-e>>2;f=b>>>0>h>>>0?h:b;a:{if(!f){break a}k=f-1|0;i=f&7;b:{if(!i){d=e;break b}d=e;while(1){D[d>>2]=D[c>>2];f=f-1|0;d=d+4|0;j=j+1|0;if((j|0)!=(i|0)){continue}break}}if(k>>>0<7){break a}while(1){D[d>>2]=D[c>>2];D[d+4>>2]=D[c>>2];D[d+8>>2]=D[c>>2];D[d+12>>2]=D[c>>2];D[d+16>>2]=D[c>>2];D[d+20>>2]=D[c>>2];D[d+24>>2]=D[c>>2];D[d+28>>2]=D[c>>2];d=d+32|0;f=f-8|0;if(f){continue}break}}if(b>>>0>h>>>0){b=(b-h<<2)+g|0;while(1){D[g>>2]=D[c>>2];g=g+4|0;if((b|0)!=(g|0)){continue}break}D[a+4>>2]=b;return}D[a+4>>2]=e+(b<<2);return}if(e){D[a+4>>2]=e;ma(e);D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;d=0}c:{if(b>>>0>=1073741824){break c}e=d>>1;d=d>>>0<2147483644?b>>>0<e>>>0?e:b:1073741823;if(d>>>0>=1073741824){break c}d=d<<2;e=na(d);D[a>>2]=e;D[a+8>>2]=d+e;c=D[c>>2];d=e;f=b&7;if(f){while(1){D[d>>2]=c;d=d+4|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}}e=e+(b<<2)|0;if((b-1&1073741823)>>>0>=7){while(1){D[d+28>>2]=c;D[d+24>>2]=c;D[d+20>>2]=c;D[d+16>>2]=c;D[d+12>>2]=c;D[d+8>>2]=c;D[d+4>>2]=c;D[d>>2]=c;d=d+32|0;if((e|0)!=(d|0)){continue}break}}D[a+4>>2]=e;return}pa();T()}function Ue(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;Mc(a,b,c);c=D[a+84>>2];d=D[a+88>>2]-c>>2;a:{if((d|0)>(b|0)){break a}b=b+1|0;if(b>>>0>d>>>0){b:{d=b-d|0;e=D[a+92>>2];c=D[a+88>>2];if(d>>>0<=e-c>>2>>>0){c:{if(!d){break c}b=c;f=d&7;if(f){while(1){D[b>>2]=1;b=b+4|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}}c=(d<<2)+c|0;if((d-1&1073741823)>>>0<7){break c}while(1){D[b+24>>2]=1;D[b+28>>2]=1;D[b+16>>2]=1;D[b+20>>2]=1;D[b+8>>2]=1;D[b+12>>2]=1;D[b>>2]=1;D[b+4>>2]=1;b=b+32|0;if((c|0)!=(b|0)){continue}break}}D[a+88>>2]=c;break b}d:{f=D[a+84>>2];j=c-f|0;c=j>>2;b=c+d|0;if(b>>>0<1073741824){e=e-f|0;h=e>>1;e=e>>>0<2147483644?b>>>0<h>>>0?h:b:1073741823;if(e){if(e>>>0>=1073741824){break d}i=na(e<<2)}c=(c<<2)+i|0;b=c;h=d&7;if(h){b=c;while(1){D[b>>2]=1;b=b+4|0;g=g+1|0;if((h|0)!=(g|0)){continue}break}}c=c+(d<<2)|0;if((d-1&1073741823)>>>0>=7){while(1){D[b+24>>2]=1;D[b+28>>2]=1;D[b+16>>2]=1;D[b+20>>2]=1;D[b+8>>2]=1;D[b+12>>2]=1;D[b>>2]=1;D[b+4>>2]=1;b=b+32|0;if((c|0)!=(b|0)){continue}break}}if((j|0)>0){oa(i,f,j)}D[a+92>>2]=(e<<2)+i;D[a+88>>2]=c;D[a+84>>2]=i;if(f){ma(f)}break b}pa();T()}sa();T()}return}if(b>>>0>=d>>>0){break a}D[a+88>>2]=c+(b<<2)}}function oa(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){_(a|0,b|0,c|0);return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if(!(a&3)){c=a;break b}if(!c){c=a;break b}c=a;while(1){B[c|0]=E[b|0];b=b+1|0;c=c+1|0;if(!(c&3)){break b}if(c>>>0<e>>>0){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+-64|0;if(f>>>0<c>>>0){break c}while(1){D[c>>2]=D[b>>2];D[c+4>>2]=D[b+4>>2];D[c+8>>2]=D[b+8>>2];D[c+12>>2]=D[b+12>>2];D[c+16>>2]=D[b+16>>2];D[c+20>>2]=D[b+20>>2];D[c+24>>2]=D[b+24>>2];D[c+28>>2]=D[b+28>>2];D[c+32>>2]=D[b+32>>2];D[c+36>>2]=D[b+36>>2];D[c+40>>2]=D[b+40>>2];D[c+44>>2]=D[b+44>>2];D[c+48>>2]=D[b+48>>2];D[c+52>>2]=D[b+52>>2];D[c+56>>2]=D[b+56>>2];D[c+60>>2]=D[b+60>>2];b=b- -64|0;c=c- -64|0;if(f>>>0>=c>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){D[c>>2]=D[b>>2];b=b+4|0;c=c+4|0;if(d>>>0>c>>>0){continue}break}break a}if(e>>>0<4){c=a;break a}d=e-4|0;if(d>>>0<a>>>0){c=a;break a}c=a;while(1){B[c|0]=E[b|0];B[c+1|0]=E[b+1|0];B[c+2|0]=E[b+2|0];B[c+3|0]=E[b+3|0];b=b+4|0;c=c+4|0;if(d>>>0>=c>>>0){continue}break}}if(c>>>0<e>>>0){while(1){B[c|0]=E[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a}function xa(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=D[a+8>>2];e=D[a+4>>2];if(f-e>>2>>>0>=b>>>0){a:{if(!b){break a}d=e;g=b&7;if(g){while(1){D[d>>2]=D[c>>2];d=d+4|0;h=h+1|0;if((g|0)!=(h|0)){continue}break}}e=(b<<2)+e|0;if((b-1&1073741823)>>>0<7){break a}while(1){D[d>>2]=D[c>>2];D[d+4>>2]=D[c>>2];D[d+8>>2]=D[c>>2];D[d+12>>2]=D[c>>2];D[d+16>>2]=D[c>>2];D[d+20>>2]=D[c>>2];D[d+24>>2]=D[c>>2];D[d+28>>2]=D[c>>2];d=d+32|0;if((e|0)!=(d|0)){continue}break}}D[a+4>>2]=e;return}b:{g=D[a>>2];k=e-g|0;e=k>>2;d=e+b|0;if(d>>>0<1073741824){f=f-g|0;i=f>>1;f=f>>>0<2147483644?d>>>0<i>>>0?i:d:1073741823;if(f){if(f>>>0>=1073741824){break b}j=na(f<<2)}e=(e<<2)+j|0;d=e;i=b&7;if(i){d=e;while(1){D[d>>2]=D[c>>2];d=d+4|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}}e=e+(b<<2)|0;if((b-1&1073741823)>>>0>=7){while(1){D[d>>2]=D[c>>2];D[d+4>>2]=D[c>>2];D[d+8>>2]=D[c>>2];D[d+12>>2]=D[c>>2];D[d+16>>2]=D[c>>2];D[d+20>>2]=D[c>>2];D[d+24>>2]=D[c>>2];D[d+28>>2]=D[c>>2];d=d+32|0;if((e|0)!=(d|0)){continue}break}}if((k|0)>0){oa(j,g,k)}D[a+8>>2]=(f<<2)+j;D[a+4>>2]=e;D[a>>2]=j;if(g){ma(g)}return}pa();T()}sa();T()}function pd(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;D[a>>2]=8336;d=a+232|0;b=D[d+196>>2];if(b){D[d+200>>2]=b;ma(b)}c=D[d+184>>2];if(c){b=c;e=D[d+188>>2];if((b|0)!=(e|0)){while(1){b=e-12|0;f=D[b>>2];if(f){D[e-8>>2]=f;ma(f)}e=b;if((b|0)!=(c|0)){continue}break}b=D[d+184>>2]}D[d+188>>2]=c;ma(b)}b=D[d+156>>2];if(b){D[d+160>>2]=b;ma(b)}c=D[d+136>>2];D[d+136>>2]=0;if(c){e=c-4|0;b=D[e>>2];if(b){b=c+(b<<4)|0;while(1){b=b-16|0;if((c|0)!=(b|0)){continue}break}}ma(e)}qd(a+216|0);b=D[a+196>>2];if(b){D[a+200>>2]=b;ma(b)}b=D[a+184>>2];if(b){D[a+188>>2]=b;ma(b)}b=D[a+172>>2];if(b){D[a+176>>2]=b;ma(b)}b=D[a+160>>2];if(b){D[a+164>>2]=b;ma(b)}b=D[a+144>>2];if(b){while(1){c=D[b>>2];ma(b);b=c;if(b){continue}break}}b=D[a+136>>2];D[a+136>>2]=0;if(b){ma(b)}b=D[a+120>>2];if(b){ma(b)}b=D[a+108>>2];if(b){ma(b)}b=D[a+96>>2];if(b){ma(b)}b=D[a+72>>2];if(b){D[a+76>>2]=b;ma(b)}b=D[a+60>>2];if(b){ma(b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}b=D[a+36>>2];if(b){D[a+40>>2]=b;ma(b)}b=D[a+24>>2];if(b){D[a+28>>2]=b;ma(b)}b=D[a+12>>2];if(b){D[a+16>>2]=b;ma(b)}b=D[a+8>>2];D[a+8>>2]=0;if(b){cb(b)}return a|0}function hi(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(b){if(!g){break k}if(!d){break j}c=M(d)-M(b)|0;if(c>>>0<=31){break i}break c}if((d|0)==1|d>>>0>1){break c}a=(a>>>0)/(g>>>0)|0;aa=0;break a}if(!a){break h}if(!d){break g}if(d-1&d){break g}a=b>>>ki(d)|0;aa=0;break a}if(!(g-1&g)){break f}h=(M(g)+33|0)-M(b)|0;e=0-h|0;break d}h=c+1|0;e=63-c|0;break d}a=(b>>>0)/(d>>>0)|0;aa=0;break a}c=M(d)-M(b)|0;if(c>>>0<31){break e}break c}if((g|0)==1){break b}c=ki(g);d=c&31;if((c&63)>>>0>=32){c=0;a=b>>>d|0}else{c=b>>>d|0;a=((1<<d)-1&b)<<32-d|a>>>d}aa=c;break a}h=c+1|0;e=63-c|0}c=h&63;f=c&31;if(c>>>0>=32){c=0;i=b>>>f|0}else{c=b>>>f|0;i=((1<<f)-1&b)<<32-f|a>>>f}f=c;c=e&63;e=c&31;if(c>>>0>=32){c=a<<e;a=0}else{c=(1<<e)-1&a>>>32-e|b<<e;a=a<<e}b=c;if(h){c=d-1|0;e=g-1|0;m=(e|0)!=-1?c+1|0:c;while(1){c=i<<1|b>>>31;f=f<<1|i>>>31;j=m-(f+(c>>>0>e>>>0)|0)>>31;k=g&j;i=c-k|0;f=f-((d&j)+(c>>>0<k>>>0)|0)|0;b=b<<1|a>>>31;a=l|a<<1;l=j&1;h=h-1|0;if(h){continue}break}}aa=b<<1|a>>>31;a=l|a<<1;break a}a=0;b=0}aa=b}return a}function pb(a,b){var c=0,d=0,e=0;c=(a|0)==(b|0);B[b+12|0]=c;a:{if(c){break a}while(1){d=D[b+8>>2];if(E[d+12|0]){break a}b:{c=D[d+8>>2];e=D[c>>2];if((e|0)==(d|0)){e=D[c+4>>2];if(!(!e|E[e+12|0])){break b}c:{if(D[d>>2]==(b|0)){b=d;break c}b=D[d+4>>2];a=D[b>>2];D[d+4>>2]=a;if(a){D[a+8>>2]=d;c=D[d+8>>2]}D[b+8>>2]=c;a=D[d+8>>2];D[((D[a>>2]!=(d|0))<<2)+a>>2]=b;D[b>>2]=d;D[d+8>>2]=b;c=D[b+8>>2];d=D[c>>2]}B[b+12|0]=1;B[c+12|0]=0;a=D[d+4>>2];D[c>>2]=a;if(a){D[a+8>>2]=c}D[d+8>>2]=D[c+8>>2];a=D[c+8>>2];D[((D[a>>2]!=(c|0))<<2)+a>>2]=d;D[d+4>>2]=c;D[c+8>>2]=d;return}if(!(E[e+12|0]|!e)){break b}d:{if(D[d>>2]!=(b|0)){b=d;break d}a=D[b+4>>2];D[d>>2]=a;if(a){D[a+8>>2]=d;c=D[d+8>>2]}D[b+8>>2]=c;a=D[d+8>>2];D[((D[a>>2]!=(d|0))<<2)+a>>2]=b;D[b+4>>2]=d;D[d+8>>2]=b;c=D[b+8>>2]}B[b+12|0]=1;B[c+12|0]=0;a=D[c+4>>2];b=D[a>>2];D[c+4>>2]=b;if(b){D[b+8>>2]=c}D[a+8>>2]=D[c+8>>2];b=D[c+8>>2];D[((D[b>>2]!=(c|0))<<2)+b>>2]=a;D[a>>2]=c;D[c+8>>2]=a;break a}B[d+12|0]=1;B[c+12|0]=(a|0)==(c|0);B[e+12|0]=1;b=c;if((c|0)!=(a|0)){continue}break}}}function kd(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;a:{b:{c:{if(!b){if((d|0)<0){break a}e=D[a+4>>2];b=D[a>>2];d=e-b|0;if(c>>>0>d>>>0){g=c-d|0;f=D[a+8>>2];if(g>>>0<=f-e>>>0){i=a,j=qa(e,0,g)+g|0,D[i+4>>2]=j;break c}if((c|0)<0){break b}e=f-b|0;f=e<<1;f=e>>>0<1073741823?c>>>0<f>>>0?f:c:2147483647;e=na(f);qa(e+d|0,0,g);if((d|0)>0){oa(e,b,d)}D[a+8>>2]=e+f;D[a+4>>2]=c+e;D[a>>2]=e;if(!b){break c}ma(b);break c}if(c>>>0>=d>>>0){break c}D[a+4>>2]=b+c;break c}if((d|0)<0){break a}h=D[a+4>>2];g=D[a>>2];e=h-g|0;d:{if((d|0)<=0&c>>>0<=e>>>0|(d|0)<0){break d}if(c>>>0>e>>>0){f=c-e|0;d=D[a+8>>2];if(f>>>0<=d-h>>>0){i=a,j=qa(h,0,f)+f|0,D[i+4>>2]=j;break d}if((c|0)<0){break b}d=d-g|0;h=d<<1;h=d>>>0<1073741823?c>>>0<h>>>0?h:c:2147483647;d=na(h);qa(d+e|0,0,f);if((e|0)>0){oa(d,g,e)}D[a+8>>2]=d+h;D[a+4>>2]=c+d;D[a>>2]=d;if(!g){break d}ma(g);break d}if(c>>>0>=e>>>0){break d}D[a+4>>2]=c+g}if(!c){break c}Ra(D[a>>2],b,c)}b=D[a+28>>2];c=D[a+24>>2]+1|0;b=c?b:b+1|0;D[a+24>>2]=c;D[a+28>>2]=b;e=1;break a}pa();T()}return e}function uh(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,k=0,l=0;c=D[b+88>>2];if(!(!c|D[c>>2]!=1)){d=D[c+8>>2];D[a+4>>2]=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);e=a+8|0;d=B[b+24|0];f=D[a+8>>2];g=D[a+12>>2]-f>>2;a:{if(d>>>0>g>>>0){ra(e,d-g|0);d=B[b+24|0];break a}if(d>>>0>=g>>>0){break a}D[a+12>>2]=f+(d<<2)}k=1;g=D[c+8>>2];b:{if((d|0)<=0){b=4;break b}h=d&3;e=D[e>>2];c:{if(d-1>>>0<3){b=4;d=0;break c}l=d&-4;d=0;b=4;while(1){f=d<<2;c=b+g|0;D[f+e>>2]=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[e+(f|4)>>2]=E[c+4|0]|E[c+5|0]<<8|(E[c+6|0]<<16|E[c+7|0]<<24);D[e+(f|8)>>2]=E[c+8|0]|E[c+9|0]<<8|(E[c+10|0]<<16|E[c+11|0]<<24);D[e+(f|12)>>2]=E[c+12|0]|E[c+13|0]<<8|(E[c+14|0]<<16|E[c+15|0]<<24);d=d+4|0;b=b+16|0;i=i+4|0;if((l|0)!=(i|0)){continue}break}}if(!h){break b}while(1){c=b+g|0;D[e+(d<<2)>>2]=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);d=d+1|0;b=b+4|0;j=j+1|0;if((j|0)!=(h|0)){continue}break}}c=a;a=b+g|0;D[c+20>>2]=E[a|0]|E[a+1|0]<<8|(E[a+2|0]<<16|E[a+3|0]<<24)}return k|0}function ue(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,k=0,l=0,m=0,n=0;if(Zc(a,b)){i=a+36|0;g=ba[D[D[a>>2]+24>>2]](a)|0;d=D[a+40>>2];e=D[a+36>>2];c=d-e>>2;a:{if(g>>>0>c>>>0){Pb(i,g-c|0);break a}if(c>>>0<=g>>>0){break a}e=e+(g<<2)|0;if((e|0)!=(d|0)){while(1){d=d-4|0;c=D[d>>2];D[d>>2]=0;if(c){ba[D[D[c>>2]+4>>2]](c)}if((d|0)!=(e|0)){continue}break}}D[a+40>>2]=e}b:{if((g|0)<=0){e=0;break b}e=1;c=D[b+20>>2];d=D[b+12>>2];f=D[b+16>>2];if((c|0)>=(d|0)&f>>>0>=G[b+8>>2]|(c|0)>(d|0)){break b}d=0;while(1){h=E[f+D[b>>2]|0];f=f+1|0;c=f?c:c+1|0;D[b+16>>2]=f;D[b+20>>2]=c;f=ba[D[D[a>>2]+48>>2]](a,h)|0;h=d<<2;j=h+D[a+36>>2]|0;c=D[j>>2];D[j>>2]=f;if(c){ba[D[D[c>>2]+4>>2]](c)}c=D[D[i>>2]+h>>2];if(!c){break b}if(!(l=c,m=ba[D[D[a>>2]+28>>2]](a)|0,n=ba[D[D[a>>2]+20>>2]](a,d)|0,k=D[D[c>>2]+8>>2],ba[k](l|0,m|0,n|0)|0)){break b}d=d+1|0;e=(g|0)>(d|0);if((d|0)==(g|0)){break b}f=D[b+16>>2];c=D[b+20>>2];h=D[b+12>>2];if(f>>>0<G[b+8>>2]&(c|0)<=(h|0)|(c|0)<(h|0)){continue}break}}a=!e}else{a=0}return a|0}function sd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=K(0),j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;k=$-16|0;$=k;if(D[c+28>>2]==9){d=D[a+4>>2];g=B[c+24|0];e=g<<2;f=na((g&1073741823)!=(g|0)?-1:e);l=k+8|0;D[l>>2]=1065353216;i=H[a+20>>2];d=-1<<d^-1;if((d|0)>0){H[l>>2]=i/K(d|0)}o=(d|0)>0;a:{if(!o){break a}j=D[c+80>>2];if(!j){break a}d=0;if((g|0)<=0){if((j|0)!=1){a=j&-2;b=0;while(1){oa(D[D[c+64>>2]>>2]+d|0,f,e);d=d+e|0;oa(d+D[D[c+64>>2]>>2]|0,f,e);d=d+e|0;b=b+2|0;if((a|0)!=(b|0)){continue}break}}if(!(j&1)){break a}oa(D[D[c+64>>2]>>2]+d|0,f,e);break a}p=D[D[b>>2]>>2]+D[b+48>>2]|0;t=g&-2;u=g&1;while(1){m=D[a+8>>2];i=H[l>>2];b=0;n=0;if((g|0)!=1){while(1){h=b<<2;q=(d<<2)+p|0;H[h+f>>2]=K(i*K(D[q>>2]))+H[h+m>>2];h=h|4;H[h+f>>2]=K(i*K(D[q+4>>2]))+H[h+m>>2];b=b+2|0;d=d+2|0;n=n+2|0;if((t|0)!=(n|0)){continue}break}}if(u){b=b<<2;H[b+f>>2]=K(i*K(D[(d<<2)+p>>2]))+H[b+m>>2];d=d+1|0}oa(D[D[c+64>>2]>>2]+r|0,f,e);r=e+r|0;s=s+1|0;if((s|0)!=(j|0)){continue}break}}ma(f)}$=k+16|0;return o|0}function Hg(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,k=0,l=0,m=0,n=0,o=0;k=D[a+12>>2];c=D[a+68>>2];d=D[c+80>>2];B[b+84|0]=0;m=b+68|0;i=D[b+68>>2];e=D[b+72>>2]-i>>2;a:{if(e>>>0<d>>>0){xa(m,d-e|0,9124);c=D[a+68>>2];d=D[c+80>>2];break a}if(d>>>0>=e>>>0){break a}D[b+72>>2]=i+(d<<2)}b=D[c+100>>2];e=D[c+96>>2];i=(b-e|0)/12|0;b:{if((b|0)==(e|0)){break b}n=1;k=D[k+28>>2];f=D[k>>2];if((f|0)==-1){break b}o=i>>>0>1?i:1;c=e;b=0;while(1){g=D[c>>2];if(g>>>0>=d>>>0){break b}j=D[D[a+72>>2]+12>>2];h=D[j+(f<<2)>>2];if(h>>>0>=d>>>0){break b}f=D[m>>2];D[f+(g<<2)>>2]=h;g=k+(l<<2)|0;h=D[g+4>>2];if((h|0)==-1){break b}l=D[c+4>>2];if(l>>>0>=d>>>0){break b}h=D[(h<<2)+j>>2];if(h>>>0>=d>>>0){break b}D[f+(l<<2)>>2]=h;g=D[g+8>>2];if((g|0)==-1){break b}c=D[c+8>>2];if(c>>>0>=d>>>0){break b}j=D[(g<<2)+j>>2];if(j>>>0>=d>>>0){break b}D[f+(c<<2)>>2]=j;b=b+1|0;n=i>>>0>b>>>0;if((b|0)==(o|0)){break b}c=e+J(b,12)|0;l=J(b,3);f=D[k+(l<<2)>>2];if((f|0)!=-1){continue}break}}return(n^-1)&1}function Xf(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,k=0,l=0,m=0;h=D[d+80>>2];e=$-48|0;$=e;a=D[a+4>>2];k=a-31|0;a:{if(k>>>0<4294967267){break a}i=D[D[d>>2]>>2]+D[d+48>>2]|0;D[e+16>>2]=a;a=-1<<a;D[e+20>>2]=a^-1;a=-2-a|0;D[e+24>>2]=a;D[e+32>>2]=(a|0)/2;H[e+28>>2]=K(2)/K(a|0);f=D[c>>2];if((f|0)!=D[c+4>>2]){a=0;d=0;while(1){g=D[(d<<2)+f>>2];h=e+36|0;j=D[D[b>>2]>>2];m=D[b+48>>2];f=D[b+44>>2];l=D[b+40>>2];if(!E[b+84|0]){g=D[D[b+68>>2]+(g<<2)>>2]}g=fi(l,f,g,0)+m|0;oa(h,g+j|0,l);Gc(e+16|0,h,e+12|0,e+8|0);f=a<<2;D[f+i>>2]=D[e+12>>2];D[(f|4)+i>>2]=D[e+8>>2];a=a+2|0;d=d+1|0;f=D[c>>2];if(d>>>0<D[c+4>>2]-f>>2>>>0){continue}break}break a}if(!h){break a}d=0;a=0;while(1){j=e+36|0;c=D[D[b>>2]>>2];g=D[b+40>>2];f=D[b+48>>2]+fi(g,D[b+44>>2],E[b+84|0]?a:D[D[b+68>>2]+(a<<2)>>2],0)|0;oa(j,c+f|0,g);Gc(e+16|0,j,e+12|0,e+8|0);c=d<<2;D[c+i>>2]=D[e+12>>2];D[(c|4)+i>>2]=D[e+8>>2];d=d+2|0;a=a+1|0;if((h|0)!=(a|0)){continue}break}}$=e+48|0;return k>>>0>4294967266|0}function Vg(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,k=0,l=0,m=0,n=0,o=0;j=D[a+12>>2];c=D[a+108>>2];d=D[c+80>>2];B[b+84|0]=0;m=b+68|0;h=D[b+68>>2];f=D[b+72>>2]-h>>2;a:{if(f>>>0<d>>>0){xa(m,d-f|0,9124);c=D[a+108>>2];d=D[c+80>>2];break a}if(d>>>0>=f>>>0){break a}D[b+72>>2]=h+(d<<2)}b=D[c+100>>2];f=D[c+96>>2];h=(b-f|0)/12|0;b:{if((b|0)==(f|0)){j=0;break b}n=h>>>0>1?h:1;o=D[j>>2];c=f;b=0;j=1;while(1){e=(e<<2)+o|0;i=D[e>>2];if((i|0)==-1){break b}g=D[c>>2];if(g>>>0>=d>>>0){break b}l=D[D[a+112>>2]+12>>2];k=D[l+(i<<2)>>2];if(k>>>0>=d>>>0){break b}i=D[m>>2];D[i+(g<<2)>>2]=k;g=D[e+4>>2];if((g|0)==-1){break b}k=D[c+4>>2];if(k>>>0>=d>>>0){break b}g=D[(g<<2)+l>>2];if(g>>>0>=d>>>0){break b}D[i+(k<<2)>>2]=g;e=D[e+8>>2];if((e|0)==-1){break b}c=D[c+8>>2];if(c>>>0>=d>>>0){break b}e=D[(e<<2)+l>>2];if(e>>>0>=d>>>0){break b}D[i+(c<<2)>>2]=e;b=b+1|0;j=h>>>0>b>>>0;if((b|0)==(n|0)){break b}e=J(b,3);c=f+J(b,12)|0;if((b|0)!=1431655765){continue}break}}return(j^-1)&1}function Ng(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,k=0,l=0,m=0,n=0,o=0;j=D[a+12>>2];c=D[a+68>>2];d=D[c+80>>2];B[b+84|0]=0;m=b+68|0;h=D[b+68>>2];f=D[b+72>>2]-h>>2;a:{if(f>>>0<d>>>0){xa(m,d-f|0,9124);c=D[a+68>>2];d=D[c+80>>2];break a}if(d>>>0>=f>>>0){break a}D[b+72>>2]=h+(d<<2)}b=D[c+100>>2];f=D[c+96>>2];h=(b-f|0)/12|0;b:{if((b|0)==(f|0)){j=0;break b}n=h>>>0>1?h:1;o=D[j>>2];c=f;b=0;j=1;while(1){e=(e<<2)+o|0;i=D[e>>2];if((i|0)==-1){break b}g=D[c>>2];if(g>>>0>=d>>>0){break b}l=D[D[a+72>>2]+12>>2];k=D[l+(i<<2)>>2];if(k>>>0>=d>>>0){break b}i=D[m>>2];D[i+(g<<2)>>2]=k;g=D[e+4>>2];if((g|0)==-1){break b}k=D[c+4>>2];if(k>>>0>=d>>>0){break b}g=D[(g<<2)+l>>2];if(g>>>0>=d>>>0){break b}D[i+(k<<2)>>2]=g;e=D[e+8>>2];if((e|0)==-1){break b}c=D[c+8>>2];if(c>>>0>=d>>>0){break b}e=D[(e<<2)+l>>2];if(e>>>0>=d>>>0){break b}D[i+(c<<2)>>2]=e;b=b+1|0;j=h>>>0>b>>>0;if((b|0)==(n|0)){break b}e=J(b,3);c=f+J(b,12)|0;if((b|0)!=1431655765){continue}break}}return(j^-1)&1}function Ma(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=(c>>>0)/3|0;i=D[(D[D[a+8>>2]+96>>2]+J(d,12)|0)+(c-J(d,3)<<2)>>2];e=D[D[a+12>>2]+4>>2];d=D[e+4>>2];a:{if((d|0)!=D[e+8>>2]){D[d>>2]=i;D[e+4>>2]=d+4;break a}b:{h=D[e>>2];g=d-h|0;j=g>>2;d=j+1|0;if(d>>>0<1073741824){f=g>>1;f=g>>>0<2147483644?d>>>0<f>>>0?f:d:1073741823;if(f){if(f>>>0>=1073741824){break b}d=na(f<<2)}else{d=0}j=d+(j<<2)|0;D[j>>2]=i;if((g|0)>0){oa(d,h,g)}D[e+8>>2]=d+(f<<2);D[e+4>>2]=j+4;D[e>>2]=d;if(h){ma(h)}break a}pa();T()}sa();T()}e=D[a+4>>2];d=D[e+4>>2];c:{d:{e:{if((d|0)!=D[e+8>>2]){D[d>>2]=c;D[e+4>>2]=d+4;break e}h=D[e>>2];g=d-h|0;i=g>>2;d=i+1|0;if(d>>>0>=1073741824){break d}f=g>>1;f=g>>>0<2147483644?d>>>0<f>>>0?f:d:1073741823;if(f){if(f>>>0>=1073741824){break c}d=na(f<<2)}else{d=0}i=d+(i<<2)|0;D[i>>2]=c;if((g|0)>0){oa(d,h,g)}D[e+8>>2]=d+(f<<2);D[e+4>>2]=i+4;D[e>>2]=d;if(!h){break e}ma(h)}a=D[a+4>>2];D[D[a+12>>2]+(b<<2)>>2]=D[a+24>>2];D[a+24>>2]=D[a+24>>2]+1;return}pa();T()}sa();T()}function Vc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;h=D[a>>2];c=h+(b>>>3&536870908)|0;D[c>>2]=D[c>>2]|1<<b;f=D[a+64>>2];e=(b|0)==-1;c=-1;a:{if(e){break a}d=b+1|0;d=(d>>>0)%3|0?d:b-2|0;c=-1;if((d|0)==-1){break a}c=D[D[f>>2]+(d<<2)>>2]}d=D[a+12>>2];g=(c>>>3&536870908)+d|0;D[g>>2]=D[g>>2]|1<<c;b:{c:{if(!e){d:{e:{f:{if((b>>>0)%3|0){c=b-1|0;break f}c=b+2|0;if((c|0)==-1){break e}}e=D[D[f>>2]+(c<<2)>>2];c=1<<e;e=d+(e>>>3&536870908)|0;g=D[e>>2];break d}e=d+536870908|0;c=D[d+536870908>>2];g=-2147483648}D[e>>2]=c|g;c=-1;b=D[D[f+12>>2]+(b<<2)>>2];if((b|0)==-1){break b}B[a+24|0]=0;a=(b>>>3&536870908)+h|0;D[a>>2]=D[a>>2]|1<<b;a=b+1|0;a=(a>>>0)%3|0?a:b-2|0;if((a|0)!=-1){c=D[D[f>>2]+(a<<2)>>2]}a=d+(c>>>3&536870908)|0;D[a>>2]=D[a>>2]|1<<c;g:{h:{if((b>>>0)%3|0){b=b-1|0;break h}b=b+2|0;a=-1;if((b|0)==-1){break g}}a=D[D[f>>2]+(b<<2)>>2]}b=1<<a;a=d+(a>>>3&536870908)|0;c=D[a>>2];break c}a=d+536870908|0;b=D[d+536870908>>2];c=-2147483648}D[a>>2]=b|c}}function Da(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=$-16|0;$=g;e=D[b+20>>2];c=D[b+12>>2];d=D[b+16>>2];a:{if((e|0)>=(c|0)&d>>>0>=G[b+8>>2]|(c|0)<(e|0)){break a}B[a+12|0]=E[d+D[b>>2]|0];e=D[b+20>>2];c=D[b+16>>2]+1|0;e=c?e:e+1|0;D[b+16>>2]=c;D[b+20>>2]=e;if(!Nd(1,g+12|0,b)){break a}e=D[b+8>>2];h=D[b+16>>2];c=h;d=e-c|0;c=c>>>0>e>>>0;e=D[b+20>>2];f=D[b+12>>2]-(c+e|0)|0;c=D[g+12>>2];if((f|0)<=0&d>>>0<c>>>0|(f|0)<0|(c|0)<=0){break a}d=h+D[b>>2]|0;D[a>>2]=d;b:{c:{f=c-1|0;i=f+d|0;j=E[i|0];d:{if(j>>>0<=63){D[a+4>>2]=f;f=E[i|0]&63;break d}e:{switch((j>>>6|0)-1|0){case 1:break c;case 0:break e;default:break a}}if(c>>>0<2){break a}D[a+4>>2]=c-2;d=(c+d|0)-2|0;f=E[d+1|0]<<8&16128|E[d|0]}D[a+8>>2]=f+4096;break b}if(c>>>0<3){break a}D[a+4>>2]=c-3;f=a;a=(c+d|0)-3|0;a=E[a+1|0]<<8|E[a+2|0]<<16&4128768|E[a|0];D[f+8>>2]=a+4096;if(a>>>0>1044479){break a}}a=e;d=c+h|0;a=d>>>0<c>>>0?a+1|0:a;D[b+16>>2]=d;D[b+20>>2]=a;k=1}$=g+16|0;return k}function Ug(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=$-16|0;$=g;b=D[a+4>>2];d=D[b>>2];a:{c=D[a+12>>2];c=D[c+28>>2]-D[c+24>>2]|0;e=c>>2;b:{if(e>>>0<=D[b+8>>2]-d>>2>>>0){break b}if((c|0)<0){break a}f=D[b+4>>2];c=na(c);h=c+(e<<2)|0;e=f-d|0;f=e+c|0;if((e|0)>0){oa(c,d,e)}D[b+8>>2]=h;D[b+4>>2]=f;D[b>>2]=c;if(!d){break b}ma(d)}b=D[a+12>>2];d=D[b+28>>2];b=D[b+24>>2];D[g+12>>2]=0;b=d-b>>2;c=a+96|0;e=D[c>>2];d=D[a+100>>2]-e>>2;c:{if(b>>>0>d>>>0){xa(c,b-d|0,g+12|0);break c}if(b>>>0>=d>>>0){break c}D[a+100>>2]=e+(b<<2)}e=a+8|0;b=D[a+116>>2];d:{if(b){c=D[b>>2];if((c|0)==D[b+4>>2]){d=1;break d}b=0;while(1){d=od(e,D[(b<<2)+c>>2]);if(!d){break d}f=D[a+116>>2];c=D[f>>2];b=b+1|0;if(b>>>0<D[f+4>>2]-c>>2>>>0){continue}break}break d}d=1;a=D[a+12>>2];a=D[a+4>>2]-D[a>>2]|0;if(a>>>0<12){break d}a=(a>>2>>>0)/3|0;b=0;while(1){d=od(e,J(b,3));if(!d){break d}b=b+1|0;if((a|0)!=(b|0)){continue}break}}$=g+16|0;return d|0}pa();T()}function Oa(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=$-16|0;$=d;a:{e=D[a+4>>2];b:{if(e>>>0<b>>>0){f=b-e|0;c=D[a+8>>2];g=c<<5;c:{if(!(f>>>0>g>>>0|e>>>0>g-f>>>0)){D[a+4>>2]=b;h=e&31;b=D[a>>2]+(e>>>3&536870908)|0;break c}D[d+8>>2]=0;D[d>>2]=0;D[d+4>>2]=0;if((b|0)<0){break a}if(g>>>0<=1073741822){c=c<<6;b=b+31&-32;b=b>>>0<c>>>0?c:b}else{b=2147483647}Xa(d,b);c=D[a+4>>2];D[d+4>>2]=c+f;e=D[a>>2];b=D[d>>2];d:{if((c|0)<=0){break d}g=c>>>5<<2;b=Ra(b,e,g)+g|0;h=c&31;e:{if(!h){h=0;break e}c=-1>>>32-h|0;D[b>>2]=D[b>>2]&(c^-1)|D[e+g>>2]&c}e=D[a>>2]}D[a>>2]=D[d>>2];D[d>>2]=e;c=D[a+4>>2];D[a+4>>2]=D[d+4>>2];D[d+4>>2]=c;c=D[a+8>>2];D[a+8>>2]=D[d+8>>2];D[d+8>>2]=c;if(!e){break c}ma(e)}if(!f){break b}if(h){c=32-h|0;a=c>>>0<f>>>0?c:f;D[b>>2]=D[b>>2]&(-1<<h&-1>>>c-a^-1);f=f-a|0;b=b+4|0}a=b;b=f>>>5<<2;a=qa(a,0,b);if((f&-32)==(f|0)){break b}a=a+b|0;D[a>>2]=D[a>>2]&(-1>>>32-(f&31)^-1);break b}D[a+4>>2]=b}$=d+16|0;return}pa();T()}function nd(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;f=D[a+12>>2];h=D[a+8>>2];d=f-h>>2;b=B[b+24|0];a:{if(d>>>0<b>>>0){ra(a+8|0,b-d|0);h=D[a+8>>2];f=D[a+12>>2];break a}if(b>>>0>=d>>>0){break a}f=(b<<2)+h|0;D[a+12>>2]=f}b=0;i=D[c+20>>2];e=D[c+16>>2];d=f-h|0;f=d;g=e+d|0;j=D[c+12>>2];i=d>>>0>g>>>0?i+1|0:i;b:{if(g>>>0>G[c+8>>2]&(j|0)<=(i|0)|(i|0)>(j|0)){break b}oa(h,e+D[c>>2]|0,d);d=D[c+20>>2];e=f+D[c+16>>2]|0;d=e>>>0<f>>>0?d+1|0:d;g=e;D[c+16>>2]=e;D[c+20>>2]=d;e=D[c+12>>2];f=g+4|0;d=f>>>0<4?d+1|0:d;if(f>>>0>G[c+8>>2]&(d|0)>=(e|0)|(d|0)>(e|0)){break b}d=g+D[c>>2]|0;D[a+20>>2]=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);d=D[c+20>>2];g=D[c+16>>2];e=g+4|0;f=e>>>0<4?d+1|0:d;j=e;D[c+16>>2]=e;D[c+20>>2]=f;e=D[c+12>>2];if((f|0)>=(e|0)&j>>>0>=G[c+8>>2]|(f|0)>(e|0)){break b}e=E[j+D[c>>2]|0];f=g+5|0;d=f>>>0<5?d+1|0:d;D[c+16>>2]=f;D[c+20>>2]=d;if(e-1>>>0>29){break b}D[a+4>>2]=e;b=1}return b|0}function Rb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=E[a+11|0]>>>7|0?D[a+4>>2]:E[a+11|0];if(d>>>0<b>>>0){h=$-16|0;$=h;f=b-d|0;if(f){b=E[a+11|0]>>>7|0;g=b?D[a+4>>2]:E[a+11|0];i=g+f|0;b=b?(D[a+8>>2]&2147483647)-1|0:10;if(b-g>>>0<f>>>0){a:{d=$-16|0;$=d;c=i-b|0;if(c>>>0<=-17-b>>>0){j=E[a+11|0]>>>7|0?D[a>>2]:a;b:{if(b>>>0<2147483623){D[d+8>>2]=b<<1;D[d+12>>2]=b+c;c=$-16|0;$=c;$=c+16|0;c=d+8|0;e=d+12|0;c=D[(G[e>>2]<G[c>>2]?c:e)>>2];if(c>>>0>=11){e=c+16&-16;c=e-1|0;c=(c|0)==11?e:c}else{c=10}break b}c=-18}e=c+1|0;c=na(e);if(g){gb(c,j,g)}if((b|0)!=10){ma(j)}D[a>>2]=c;D[a+8>>2]=e|-2147483648;$=d+16|0;break a}Ca();T()}}b=E[a+11|0]>>>7|0?D[a>>2]:a;d=g+b|0;if(f){qa(d,0,f)}c:{if(E[a+11|0]>>>7|0){D[a+4>>2]=i;break c}B[a+11|0]=i}B[h+15|0]=0;B[b+i|0]=E[h+15|0]}$=h+16|0;return}c=E[a+11|0]>>>7|0;f=c?D[a>>2]:a;d=$-16|0;$=d;d:{if(c){D[a+4>>2]=b;break d}B[a+11|0]=b}B[d+15|0]=0;B[b+f|0]=E[d+15|0];$=d+16|0}function Gc(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=+H[b>>2];k=+H[b+4>>2];l=+H[b+8>>2];g=L(j)+L(k)+L(l);a:{if(!(g>1e-6)){j=1;k=0;e=0;break a}g=1/g;k=g*k;j=g*j;e=g*l<0}h=D[a+16>>2];l=+(h|0);g=P(j*l+.5);b:{if(L(g)<2147483648){m=~~g;break b}m=-2147483648}f=m>>31;i=(f^m)-f|0;g=P(k*l+.5);c:{if(L(g)<2147483648){f=~~g;break c}f=-2147483648}b=f>>31;b=h-(i+((f^b)-b|0)|0)|0;i=(b|0)>0?b:0;e=e?0-i|0:i;f=f+(b>>31&((f|0)>0?b:0-b|0))|0;d:{if((m|0)>=0){b=e+h|0;a=D[a+8>>2];e=h+f|0;break d}b=f>>31;b=(b^f)-b|0;a=D[a+8>>2];b=(e|0)<0?b:a-b|0;e=(f|0)<0?i:a-i|0}e:{if(!(b|e)){b=a;break e}if(!((a|0)!=(b|0)|e)){b=a;break e}if(!((a|0)!=(e|0)|b)){b=a;break e}if(!((b|0)<=(h|0)|e)){b=(h<<1)-b|0;a=0;break e}if(!((a|0)!=(e|0)|(b|0)>=(h|0))){b=(h<<1)-b|0;break e}if(!((a|0)!=(b|0)|(e|0)>=(h|0))){b=a;a=(h<<1)-e|0;break e}if(b){a=e;break e}b=0;if((e|0)<=(h|0)){a=e;break e}a=(h<<1)-e|0}D[c>>2]=a;D[d>>2]=b}function Xc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;g=$-16|0;$=g;a:{b:{if(b){D[a+88>>2]=0;D[a+92>>2]=0;c=D[a+84>>2];D[a+84>>2]=0;if(c){ma(c)}D[a+76>>2]=0;D[a+80>>2]=0;c=D[a+72>>2];D[a+72>>2]=0;if(c){ma(c)}c=D[b>>2];d=D[b+4>>2];B[g+15|0]=0;Ha(a,d-c>>2,g+15|0);c=D[b+28>>2];d=D[b+24>>2];B[g+14|0]=0;Ha(a+12|0,c-d>>2,g+14|0);Vb(a+28|0,D[b+4>>2]-D[b>>2]>>2,10284);d=D[b+28>>2]-D[b+24>>2]|0;e=d>>2;c=D[a+52>>2];c:{if(e>>>0<=D[a+60>>2]-c>>2>>>0){break c}if((d|0)<0){break b}f=D[a+56>>2];d=na(d);h=d+(e<<2)|0;e=f-c|0;f=e+d|0;if((e|0)>0){oa(d,c,e)}D[a+60>>2]=h;D[a+56>>2]=f;D[a+52>>2]=d;if(!c){break c}ma(c)}d=D[b+28>>2]-D[b+24>>2]|0;e=d>>2;c=D[a+40>>2];d:{if(e>>>0<=D[a+48>>2]-c>>2>>>0){break d}if((d|0)<0){break a}f=D[a+44>>2];d=na(d);h=d+(e<<2)|0;e=f-c|0;f=e+d|0;if((e|0)>0){oa(d,c,e)}D[a+48>>2]=h;D[a+44>>2]=f;D[a+40>>2]=d;if(!c){break d}ma(c)}B[a+24|0]=1;D[a+64>>2]=b}$=g+16|0;return}pa();T()}pa();T()}function xc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=K(0),f=K(0),g=K(0),h=K(0),i=K(0),j=0,k=K(0),l=K(0),m=K(0),n=K(0),o=0;a:{if(D[c+28>>2]!=9|E[c+24|0]!=3){break a}a=D[a+4>>2];if(a-31>>>0<4294967267){break a}o=1;j=D[c+80>>2];if(!j){break a}k=K(K(2)/K((1<<a)-2|0));c=D[D[c>>2]>>2]+D[c+48>>2]|0;a=D[D[b>>2]>>2]+D[b+48>>2]|0;b=0;while(1){g=K(0);l=K(0);m=K(0);e=K(K(K(D[a>>2])*k)+K(-1));f=K(K(K(D[a+4>>2])*k)+K(-1));i=K(K(K(1)-K(L(e)))-K(L(f)));h=K(O(K(-i),K(0)));n=K(-h);f=K(f+(f<K(0)?h:n));e=K(e+(e<K(0)?h:n));h=K(K(f*f)+K(K(i*i)+K(e*e)));if(!(+h<1e-6)){g=K(K(1)/K(S(h)));m=K(f*g);l=K(e*g);g=K(i*g)}a=a+8|0;d=(v(m),x(2));B[c+8|0]=d;B[c+9|0]=d>>>8;B[c+10|0]=d>>>16;B[c+11|0]=d>>>24;d=(v(l),x(2));B[c+4|0]=d;B[c+5|0]=d>>>8;B[c+6|0]=d>>>16;B[c+7|0]=d>>>24;d=(v(g),x(2));B[c|0]=d;B[c+1|0]=d>>>8;B[c+2|0]=d>>>16;B[c+3|0]=d>>>24;c=c+12|0;b=b+1|0;if((j|0)!=(b|0)){continue}break}}return o|0}function Jd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=$-16|0;$=g;a:{if(!Va(1,g+8|0,b)){break a}c=D[b+8>>2];e=D[b+16>>2];h=D[g+12>>2];d=D[b+20>>2];f=D[b+12>>2]-(d+(c>>>0<e>>>0)|0)|0;i=c-e|0;c=D[g+8>>2];if((h|0)==(f|0)&i>>>0<c>>>0|f>>>0<h>>>0){break a}d=d+h|0;f=c+e|0;d=f>>>0<e>>>0?d+1|0:d;D[b+16>>2]=f;D[b+20>>2]=d;if((c|0)<=0){break a}d=e+D[b>>2]|0;D[a+40>>2]=d;f=c-1|0;e=d+f|0;b=E[e|0];b:{if(b>>>0<=63){D[a+44>>2]=f;b=E[e|0]&63;break b}c:{switch((b>>>6|0)-1|0){case 0:if(c>>>0<2){break a}D[a+44>>2]=c-2;b=(c+d|0)-2|0;b=E[b+1|0]<<8&16128|E[b|0];break b;case 1:if(c>>>0<3){break a}D[a+44>>2]=c-3;b=(c+d|0)-3|0;b=E[b+1|0]<<8|E[b+2|0]<<16&4128768|E[b|0];break b;default:break c}}D[a+44>>2]=c-4;b=(c+d|0)-4|0;b=E[b+2|0]<<16|E[b+3|0]<<24&1056964608|E[b+1|0]<<8|E[b|0]}D[a+48>>2]=b+16384;j=b>>>0<4177920}$=g+16|0;return j}function rd(a){a=a|0;var b=0,c=0,d=0,e=0;D[a>>2]=8284;d=D[a+368>>2];D[a+368>>2]=0;if(d){e=d-4|0;b=D[e>>2];if(b){c=(b<<4)+d|0;while(1){c=c-16|0;if((d|0)!=(c|0)){continue}break}}ma(e)}qd(a+216|0);b=D[a+196>>2];if(b){D[a+200>>2]=b;ma(b)}b=D[a+184>>2];if(b){D[a+188>>2]=b;ma(b)}b=D[a+172>>2];if(b){D[a+176>>2]=b;ma(b)}b=D[a+160>>2];if(b){D[a+164>>2]=b;ma(b)}c=D[a+144>>2];if(c){while(1){b=D[c>>2];ma(c);c=b;if(b){continue}break}}b=D[a+136>>2];D[a+136>>2]=0;if(b){ma(b)}b=D[a+120>>2];if(b){ma(b)}b=D[a+108>>2];if(b){ma(b)}b=D[a+96>>2];if(b){ma(b)}b=D[a+72>>2];if(b){D[a+76>>2]=b;ma(b)}b=D[a+60>>2];if(b){ma(b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}b=D[a+36>>2];if(b){D[a+40>>2]=b;ma(b)}b=D[a+24>>2];if(b){D[a+28>>2]=b;ma(b)}b=D[a+12>>2];if(b){D[a+16>>2]=b;ma(b)}b=D[a+8>>2];D[a+8>>2]=0;if(b){cb(b)}return a|0}function ic(a,b){var c=0,d=0;c=D[b+8>>2];D[a+4>>2]=D[b+4>>2];D[a+8>>2]=c;D[a+20>>2]=D[b+20>>2];c=D[b+16>>2];D[a+12>>2]=D[b+12>>2];D[a+16>>2]=c;a:{b:{if((a|0)!=(b|0)){c=D[b+28>>2];if(c){d=D[a+24>>2];if(D[a+32>>2]<<5>>>0<c>>>0){if(d){ma(d);D[a+32>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;c=D[b+28>>2]}if((c|0)<0){break b}c=(c-1>>>5|0)+1|0;d=na(c<<2);D[a+32>>2]=c;D[a+28>>2]=0;D[a+24>>2]=d;c=D[b+28>>2]}Ra(d,D[b+24>>2],(c-1>>>3&536870908)+4|0);c=D[b+28>>2]}else{c=0}D[a+28>>2]=c;c=D[b+40>>2];if(c){d=D[a+36>>2];if(D[a+44>>2]<<5>>>0<c>>>0){if(d){ma(d);D[a+44>>2]=0;D[a+36>>2]=0;D[a+40>>2]=0;c=D[b+40>>2]}if((c|0)<0){break a}c=(c-1>>>5|0)+1|0;d=na(c<<2);D[a+44>>2]=c;D[a+40>>2]=0;D[a+36>>2]=d;c=D[b+40>>2]}Ra(d,D[b+36>>2],(c-1>>>3&536870908)+4|0);b=D[b+40>>2]}else{b=0}D[a+40>>2]=b}return}pa();T()}pa();T()}function Pf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{a=$-32|0;$=a;e=Ba(c);if(e>>>0<4294967280){b:{c:{if(e>>>0>=11){g=e+16&-16;f=na(g);D[a+24>>2]=g|-2147483648;D[a+16>>2]=f;D[a+20>>2]=e;break c}B[a+27|0]=e;f=a+16|0;if(!e){break b}}oa(f,c,e)}B[e+f|0]=0;D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;d:{c=bb(b,a+16|0);if((c|0)==(b+4|0)){break d}b=D[c+28>>2];f=D[c+32>>2];if((b|0)==(f|0)){break d}b=f-b|0;if(b&3){break d}e=b>>>2|0;f=D[a+4>>2];b=D[a>>2];g=f-b>>2;e:{if(e>>>0>g>>>0){ra(a,e-g|0);b=D[a>>2];f=D[a+4>>2];break e}if(e>>>0>=g>>>0){break e}f=(e<<2)+b|0;D[a+4>>2]=f}if((b|0)!=(f|0)){e=b;b=D[c+28>>2];oa(e,b,D[c+32>>2]-b|0);break d}va();T()}b=D[d>>2];if(b){D[d+4>>2]=b;ma(b)}D[d>>2]=D[a>>2];D[d+4>>2]=D[a+4>>2];D[d+8>>2]=D[a+8>>2];if(B[a+27|0]<0){ma(D[a+16>>2])}$=a+32|0;break a}Ca();T()}}function Rf(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;d=$-16|0;$=d;a:{e=Ba(c);if(e>>>0<4294967280){b:{c:{if(e>>>0>=11){f=e+16&-16;a=na(f);D[d+8>>2]=f|-2147483648;D[d>>2]=a;D[d+4>>2]=e;break c}B[d+11|0]=e;a=d;if(!e){break b}}oa(a,c,e)}B[a+e|0]=0;c=E[d+11|0];e=c<<24>>24;b=D[b+4>>2];a=0;d:{if(!b){break d}a=c;c=(e|0)<0;a=c?D[d+4>>2]:a;f=c?D[d>>2]:d;while(1){c=E[b+27|0];g=c<<24>>24<0;c=g?D[b+20>>2]:c;j=c>>>0<a>>>0;e:{f:{g:{h:{i:{j:{i=j?c:a;if(i){h=b+16|0;g=g?D[h>>2]:h;h=ua(f,g,i);if(h){break j}if(a>>>0>=c>>>0){break i}break e}if(a>>>0>=c>>>0){break h}break e}if((h|0)<0){break e}}c=ua(g,f,i);if(c){break g}}if(j){break f}a=1;break d}if((c|0)<0){break f}a=1;break d}b=b+4|0}b=D[b>>2];if(b){continue}break}a=0}if((e|0)<0){ma(D[d>>2])}$=d+16|0;break a}Ca();T()}return a|0}function kc(a){var b=0,c=0,d=0;b=D[a+8>>2];d=D[a>>2];a:{if(E[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b-2|0;if((b|0)==-1){break e}b=D[D[d+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}D[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b-2|0;D[a+8>>2]=b;if((b|0)!=-1){break b}}c=D[a+4>>2];b=-1;f:{if((c|0)==-1){break f}g:{if((c>>>0)%3|0){c=c-1|0;break g}c=c+2|0;b=-1;if((c|0)==-1){break f}}c=D[D[d+12>>2]+(c<<2)>>2];b=-1;if((c|0)==-1){break f}b=c-1|0;if((c>>>0)%3|0){break f}b=c+2|0}B[a+12|0]=0;D[a+8>>2]=b;return}if((b|0)!=D[a+4>>2]){break a}D[a+8>>2]=-1;return}c=-1;h:{if((b|0)==-1){break h}i:{if((b>>>0)%3|0){b=b-1|0;break i}b=b+2|0;c=-1;if((b|0)==-1){break h}}b=D[D[d+12>>2]+(b<<2)>>2];c=-1;if((b|0)==-1){break h}c=b-1|0;if((b>>>0)%3|0){break h}c=b+2|0}D[a+8>>2]=c}}function Ld(a){var b=0,c=0,d=0;b=na(32);c=E[1475]|E[1476]<<8;B[b+24|0]=c;B[b+25|0]=c>>>8;c=E[1471]|E[1472]<<8|(E[1473]<<16|E[1474]<<24);d=E[1467]|E[1468]<<8|(E[1469]<<16|E[1470]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1463]|E[1464]<<8|(E[1465]<<16|E[1466]<<24);d=E[1459]|E[1460]<<8|(E[1461]<<16|E[1462]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1455]|E[1456]<<8|(E[1457]<<16|E[1458]<<24);d=E[1451]|E[1452]<<8|(E[1453]<<16|E[1454]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+26|0]=0;D[a>>2]=-1;ta(a+4|0,b,26);ma(b)}function Ra(a,b,c){var d=0,e=0;a:{if((a|0)==(b|0)){break a}e=a+c|0;if(b-e>>>0<=0-(c<<1)>>>0){return oa(a,b,c)}d=(a^b)&3;b:{c:{if(a>>>0<b>>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c){break a}B[d|0]=E[b|0];b=b+1|0;c=c-1|0;d=d+1|0;if(d&3){continue}break}break c}d:{if(d){break d}if(e&3){while(1){if(!c){break a}c=c-1|0;d=c+a|0;B[d|0]=E[b+c|0];if(d&3){continue}break}}if(c>>>0<=3){break d}while(1){c=c-4|0;D[c+a>>2]=D[b+c>>2];if(c>>>0>3){continue}break}}if(!c){break a}while(1){c=c-1|0;B[c+a|0]=E[b+c|0];if(c){continue}break}break a}if(c>>>0<=3){break b}while(1){D[d>>2]=D[b>>2];b=b+4|0;d=d+4|0;c=c-4|0;if(c>>>0>3){continue}break}}if(!c){break a}while(1){B[d|0]=E[b|0];d=d+1|0;b=b+1|0;c=c-1|0;if(c){continue}break}}return a}function Pb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=D[a+8>>2];c=D[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=qa(c,0,b)+b|0}D[a+4>>2]=c;return}a:{b:{c:{g=D[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>>0<2147483644?e>>>0<h>>>0?h:e:1073741823;if(e){if(e>>>0>=1073741824){break c}i=na(e<<2)}d=(f<<2)+i|0;f=b<<2;b=qa(d,0,f);f=b+f|0;e=(e<<2)+i|0;if((c|0)==(g|0)){break b}while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;d=d-4|0;D[d>>2]=b;if((c|0)!=(g|0)){continue}break}D[a+8>>2]=e;b=D[a+4>>2];D[a+4>>2]=f;c=D[a>>2];D[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b-4|0;a=D[b>>2];D[b>>2]=0;if(a){ba[D[D[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}break a}pa();T()}sa();T()}D[a+8>>2]=e;D[a+4>>2]=f;D[a>>2]=b}if(c){ma(c)}}function Dc(a,b){var c=0,d=0,e=0;c=$+-64|0;$=c;d=D[a>>2];e=D[d-4>>2];d=D[d-8>>2];D[c+32>>2]=0;D[c+36>>2]=0;D[c+40>>2]=0;D[c+44>>2]=0;D[c+48>>2]=0;D[c+52>>2]=0;B[c+55|0]=0;B[c+56|0]=0;B[c+57|0]=0;B[c+58|0]=0;B[c+59|0]=0;B[c+60|0]=0;B[c+61|0]=0;B[c+62|0]=0;D[c+24>>2]=0;D[c+28>>2]=0;D[c+20>>2]=0;D[c+16>>2]=11020;D[c+12>>2]=a;D[c+8>>2]=b;a=a+d|0;d=0;a:{if(Na(e,b,0)){D[c+56>>2]=1;ba[D[D[e>>2]+20>>2]](e,c+8|0,a,a,1,0);d=D[c+32>>2]==1?a:0;break a}ba[D[D[e>>2]+24>>2]](e,c+8|0,a,1,0);b:{switch(D[c+44>>2]){case 0:d=D[c+48>>2]==1?D[c+36>>2]==1?D[c+40>>2]==1?D[c+28>>2]:0:0:0;break a;case 1:break b;default:break a}}if(D[c+32>>2]!=1){if(D[c+48>>2]|D[c+36>>2]!=1|D[c+40>>2]!=1){break a}}d=D[c+24>>2]}$=c- -64|0;return d}function Vd(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,k=0;d=D[b+12>>2];g=d;c=D[b+20>>2];e=c;f=D[b+16>>2];h=f+4|0;c=h>>>0<4?c+1|0:c;i=D[b+8>>2];a:{if(i>>>0<h>>>0&(c|0)>=(d|0)|(c|0)>(d|0)){break a}j=D[b>>2];d=j+f|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=h;D[b+20>>2]=c;c=e;e=f+8|0;c=e>>>0<8?c+1|0:c;f=e;e=c;if(f>>>0>i>>>0&(c|0)>=(g|0)|(c|0)>(g|0)){break a}c=h+j|0;c=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[b+16>>2]=f;D[b+20>>2]=e;if((c|0)<(d|0)){break a}D[a+16>>2]=c;D[a+12>>2]=d;g=(c>>31)-((d>>31)+(c>>>0<d>>>0)|0)|0;c=c-d|0;if(!g&c>>>0>2147483646|g){break a}c=c+1|0;D[a+20>>2]=c;d=c>>>1|0;D[a+24>>2]=d;D[a+28>>2]=0-d;if(!(c&1)){D[a+24>>2]=d-1}k=Da(a+112|0,b)}return k|0}function Uc(a,b){var c=0,d=0,e=0,f=0;d=-1;e=-1;f=-1;a:{b:{if((b|0)==-1){break b}e=D[D[D[a+4>>2]+12>>2]+(b<<2)>>2];c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)>=0){f=(c>>>0)/3|0;f=D[(D[D[a>>2]+96>>2]+J(f,12)|0)+(c-J(f,3)<<2)>>2]}c:{if((e|0)==-1){break c}c=((e>>>0)%3|0?-1:2)+e|0;if((c|0)<0){break c}d=(c>>>0)/3|0;d=D[(D[D[a>>2]+96>>2]+J(d,12)|0)+(c-J(d,3)<<2)>>2]}c=-1;if((d|0)!=(f|0)){break a}f=-1;d:{b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)>=0){d=(b>>>0)/3|0;d=D[(D[D[a>>2]+96>>2]+J(d,12)|0)+(b-J(d,3)<<2)>>2];if((e|0)==-1){break b}break d}d=-1;if((e|0)!=-1){break d}break b}b=e+1|0;b=(b>>>0)%3|0?b:e-2|0;if((b|0)<0){break b}c=D[D[a>>2]+96>>2];a=(b>>>0)/3|0;f=D[(c+J(a,12)|0)+(b-J(a,3)<<2)>>2]}c=(d|0)==(f|0)?e:-1}return c}function qa(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}B[a|0]=b;e=a+c|0;B[e-1|0]=b;if(c>>>0<3){break a}B[a+2|0]=b;B[a+1|0]=b;B[e-3|0]=b;B[e-2|0]=b;if(c>>>0<7){break a}B[a+3|0]=b;B[e-4|0]=b;if(c>>>0<9){break a}e=0-a&3;f=e+a|0;d=J(b&255,16843009);D[f>>2]=d;b=c-e&-4;c=b+f|0;D[c-4>>2]=d;if(b>>>0<9){break a}D[f+8>>2]=d;D[f+4>>2]=d;D[c-8>>2]=d;D[c-12>>2]=d;if(b>>>0<25){break a}D[f+24>>2]=d;D[f+20>>2]=d;D[f+16>>2]=d;D[f+12>>2]=d;D[c-16>>2]=d;D[c-20>>2]=d;D[c-24>>2]=d;D[c-28>>2]=d;c=b;b=f&4|24;c=c-b|0;if(c>>>0<32){break a}d=fi(d,0,1,1);e=aa;b=b+f|0;while(1){D[b+24>>2]=d;D[b+28>>2]=e;D[b+16>>2]=d;D[b+20>>2]=e;D[b+8>>2]=d;D[b+12>>2]=e;D[b>>2]=d;D[b+4>>2]=e;b=b+32|0;c=c-32|0;if(c>>>0>31){continue}break}}return a}function ee(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,k=0;d=D[b+12>>2];h=d;c=D[b+20>>2];e=c;f=D[b+16>>2];g=f+4|0;c=g>>>0<4?c+1|0:c;i=D[b+8>>2];a:{if(i>>>0<g>>>0&(c|0)>=(d|0)|(c|0)>(d|0)){break a}j=D[b>>2];d=j+f|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=g;D[b+20>>2]=c;c=e;e=f+8|0;c=e>>>0<8?c+1|0:c;f=e;e=c;if(f>>>0>i>>>0&(c|0)>=(h|0)|(c|0)>(h|0)){break a}c=g+j|0;c=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[b+16>>2]=f;D[b+20>>2]=e;if((c|0)<(d|0)){break a}D[a+16>>2]=c;D[a+12>>2]=d;b=(c>>31)-((d>>31)+(c>>>0<d>>>0)|0)|0;c=c-d|0;if(!b&c>>>0>2147483646|b){break a}k=1;b=c+1|0;D[a+20>>2]=b;c=b>>>1|0;D[a+24>>2]=c;D[a+28>>2]=0-c;if(b&1){break a}D[a+24>>2]=c-1}return k|0}function Gg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=D[a+4>>2];d=D[b>>2];a:{c=D[a+12>>2];c=D[c+56>>2]-D[c+52>>2]|0;e=c>>2;b:{if(e>>>0<=D[b+8>>2]-d>>2>>>0){break b}if((c|0)<0){break a}f=D[b+4>>2];c=na(c);g=c+(e<<2)|0;e=f-d|0;f=e+c|0;if((e|0)>0){oa(c,d,e)}D[b+8>>2]=g;D[b+4>>2]=f;D[b>>2]=c;if(!d){break b}ma(d)}e=a+8|0;b=D[a+76>>2];c:{if(b){d=D[b>>2];if((d|0)==D[b+4>>2]){return 1}b=0;while(1){c=ld(e,D[(b<<2)+d>>2]);if(!c){break c}f=D[a+76>>2];d=D[f>>2];b=b+1|0;if(b>>>0<D[f+4>>2]-d>>2>>>0){continue}break}break c}c=1;a=D[D[a+12>>2]+64>>2];a=D[a+4>>2]-D[a>>2]|0;if(a>>>0<12){break c}a=(a>>2>>>0)/3|0;b=0;while(1){c=ld(e,J(b,3));if(!c){break c}b=b+1|0;if((a|0)!=(b|0)){continue}break}}return c|0}pa();T()}function Mg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=D[a+4>>2];d=D[b>>2];a:{c=D[a+12>>2];c=D[c+28>>2]-D[c+24>>2]|0;e=c>>2;b:{if(e>>>0<=D[b+8>>2]-d>>2>>>0){break b}if((c|0)<0){break a}f=D[b+4>>2];c=na(c);g=c+(e<<2)|0;e=f-d|0;f=e+c|0;if((e|0)>0){oa(c,d,e)}D[b+8>>2]=g;D[b+4>>2]=f;D[b>>2]=c;if(!d){break b}ma(d)}e=a+8|0;b=D[a+76>>2];c:{if(b){d=D[b>>2];if((d|0)==D[b+4>>2]){return 1}b=0;while(1){c=md(e,D[(b<<2)+d>>2]);if(!c){break c}f=D[a+76>>2];d=D[f>>2];b=b+1|0;if(b>>>0<D[f+4>>2]-d>>2>>>0){continue}break}break c}c=1;a=D[a+12>>2];a=D[a+4>>2]-D[a>>2]|0;if(a>>>0<12){break c}a=(a>>2>>>0)/3|0;b=0;while(1){c=md(e,J(b,3));if(!c){break c}b=b+1|0;if((a|0)!=(b|0)){continue}break}}return c|0}pa();T()}function Sc(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=$-16|0;$=d;f=D[a+24>>2];k=D[a+28>>2];a:{if((f|0)!=(k|0)){while(1){D[d+8>>2]=0;D[d>>2]=0;D[d+4>>2]=0;a=Qc(D[f>>2],b,d);g=E[d+11|0];h=g<<24>>24;i=3;b:{c:{d:{if(!a){break d}i=0;a=E[c+11|0];e=a<<24>>24;j=(h|0)<0?D[d+4>>2]:g;if((j|0)!=(((e|0)<0?D[c+4>>2]:a)|0)){break d}a=(e|0)<0?D[c>>2]:c;e=(h|0)<0;e:{if(!e){e=d;if(!h){break e}while(1){if(E[e|0]!=E[a|0]){break d}a=a+1|0;e=e+1|0;g=g-1|0;if(g){continue}break}break e}if(!j){break e}if(ua(e?D[d>>2]:d,a,j)){break c}}l=D[f>>2];i=1}if((h|0)>=0){break b}}ma(D[d>>2])}f:{switch(i|0){case 0:case 3:break f;default:break a}}f=f+4|0;if((k|0)!=(f|0)){continue}break}}l=0}$=d+16|0;return l}function Ha(a,b,c){var d=0,e=0,f=0;f=$-16|0;$=f;D[a+4>>2]=0;a:{b:{if(!b){break b}d=D[a+8>>2];e=d<<5;c:{if(e>>>0>=b>>>0){D[a+4>>2]=b;break c}D[f+8>>2]=0;D[f>>2]=0;D[f+4>>2]=0;if((b|0)<0){break a}if(e>>>0<=1073741822){d=d<<6;e=b+31&-32;d=d>>>0>e>>>0?d:e}else{d=2147483647}Xa(f,d);d=D[a>>2];D[a>>2]=D[f>>2];D[f>>2]=d;e=D[a+4>>2];D[a+4>>2]=b;D[f+4>>2]=e;e=D[a+8>>2];D[a+8>>2]=D[f+8>>2];D[f+8>>2]=e;if(!d){break c}ma(d)}d=b>>>5|0;e=d<<2;a=D[a>>2];if(E[c|0]){a=qa(a,255,e);if((b&-32)==(b|0)){break b}a=a+(d<<2)|0;D[a>>2]=D[a>>2]|-1>>>32-(b&31);break b}a=qa(a,0,e);if((b&-32)==(b|0)){break b}a=a+(d<<2)|0;D[a>>2]=D[a>>2]&(-1>>>32-(b&31)^-1)}$=f+16|0;return}pa();T()}function xe(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,k=0,l=0,m=0,n=0;d=D[b>>2];b=D[b+4>>2];f=D[D[a+8>>2]+40>>2];m=na((f|0)>=0?f:-1);g=1;h=b-d|0;a:{if((h|0)<=0){break a}b=0;g=0;d=0+D[c+20>>2]|0;i=D[c+16>>2];e=f+i|0;d=e>>>0<f>>>0?d+1|0:d;j=e;e=D[c+12>>2];if(j>>>0>G[c+8>>2]&(e|0)<=(d|0)|(d|0)>(e|0)){break a}k=h>>2;g=(k|0)>1?k:1;while(1){b:{e=oa(m,i+D[c>>2]|0,f);D[c+16>>2]=j;D[c+20>>2]=d;oa(D[D[D[a+8>>2]+64>>2]>>2]+b|0,e,f);l=l+1|0;if((g|0)==(l|0)){break b}b=b+f|0;d=n+D[c+20>>2]|0;i=D[c+16>>2];e=f+i|0;d=e>>>0<f>>>0?d+1|0:d;j=e;h=e;e=D[c+12>>2];if((e|0)>=(d|0)&G[c+8>>2]>=h>>>0|(d|0)<(e|0)){continue}}break}g=(l|0)>=(k|0)}ma(m);return g|0}function oe(a,b){a=a|0;b=b|0;a=0;a:{switch(b|0){case 0:a=na(20);D[a+12>>2]=-1;D[a+16>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=1920;return a|0;case 1:a=na(24);D[a+12>>2]=-1;D[a+16>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=1920;D[a+20>>2]=0;D[a>>2]=2136;return a|0;case 2:a=na(48);D[a+12>>2]=-1;D[a+16>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=1920;D[a+20>>2]=0;D[a>>2]=2136;D[a+24>>2]=1624;D[a>>2]=7948;D[a+32>>2]=0;D[a+36>>2]=0;D[a+28>>2]=-1;D[a+40>>2]=0;D[a+44>>2]=0;return a|0;case 3:a=na(32);D[a+12>>2]=-1;D[a+16>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=1920;D[a+20>>2]=0;D[a>>2]=2136;D[a+24>>2]=1032;D[a>>2]=5812;D[a+28>>2]=-1;break;default:break a}}return a|0}function ih(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;D[b>>2]=1;f=b+8|0;c=D[b+8>>2];d=D[b+12>>2]-c|0;if(d>>>0<=4294967291){Eb(f,d+4|0);c=D[f>>2]}c=c+d|0;d=D[a+4>>2];B[c|0]=d;B[c+1|0]=d>>>8;B[c+2|0]=d>>>16;B[c+3|0]=d>>>24;c=D[a+8>>2];if((c|0)!=D[a+12>>2]){d=0;while(1){g=(d<<2)+c|0;c=D[b+8>>2];e=D[b+12>>2]-c|0;if(e>>>0<=4294967291){Eb(f,e+4|0);c=D[f>>2]}c=c+e|0;e=D[g>>2];B[c|0]=e;B[c+1|0]=e>>>8;B[c+2|0]=e>>>16;B[c+3|0]=e>>>24;d=d+1|0;c=D[a+8>>2];if(d>>>0<D[a+12>>2]-c>>2>>>0){continue}break}}c=D[b+12>>2];b=D[b+8>>2];c=c-b|0;if(c>>>0<=4294967291){Eb(f,c+4|0);b=D[f>>2]}b=b+c|0;a=D[a+20>>2];B[b|0]=a;B[b+1|0]=a>>>8;B[b+2|0]=a>>>16;B[b+3|0]=a>>>24}function Ef(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=$-32|0;$=e;a:{b:{f=Ba(c);if(f>>>0<4294967280){c:{d:{if(f>>>0>=11){g=f+16&-16;a=na(g);D[e+24>>2]=g|-2147483648;D[e+16>>2]=a;D[e+20>>2]=f;break d}B[e+27|0]=f;a=e+16|0;if(!f){break c}}oa(a,c,f)}B[a+f|0]=0;c=Ba(d);if(c>>>0>=4294967280){break b}e:{f:{if(c>>>0>=11){f=c+16&-16;a=na(f);D[e+8>>2]=f|-2147483648;D[e>>2]=a;D[e+4>>2]=c;break f}B[e+11|0]=c;a=e;if(!c){break e}}oa(a,d,c)}B[a+c|0]=0;c=D[b+4>>2];a=-1;g:{if(!c){break g}c=Sc(c,e+16|0,e);a=-1;if(!c){break g}a=Nc(b,D[c+24>>2])}if(B[e+11|0]<0){ma(D[e>>2])}if(B[e+27|0]<0){ma(D[e+16>>2])}$=e+32|0;break a}Ca();T()}Ca();T()}return a|0}function je(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,k=0,l=0;h=D[c+12>>2];d=h;e=D[c+20>>2];i=D[c+8>>2];f=D[c+16>>2];a:{if((d|0)<=(e|0)&i>>>0<=f>>>0|(d|0)<(e|0)){break a}j=D[c>>2];k=B[j+f|0];d=e;g=f+1|0;d=g?d:d+1|0;D[c+16>>2]=g;D[c+20>>2]=d;b:{if((k|0)==-2){break b}if((d|0)>=(h|0)&g>>>0>=i>>>0|(d|0)>(h|0)){break a}d=B[g+j|0];f=f+2|0;e=f>>>0<2?e+1|0:e;D[c+16>>2]=f;D[c+20>>2]=e;if((d-4&255)>>>0<251){break a}e=ba[D[D[a>>2]+40>>2]](a,k,d)|0;d=D[a+20>>2];D[a+20>>2]=e;if(!d){break b}ba[D[D[d>>2]+4>>2]](d)}d=D[a+20>>2];if(d){if(!(ba[D[D[a>>2]+28>>2]](a,d)|0)){break a}}l=ba[D[D[a>>2]+36>>2]](a,b,c)|0}return l|0}function Ch(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,k=0,l=0,m=0,n=0;f=$-32|0;$=f;h=(e&1073741823)!=(e|0)?-1:e<<2;h=qa(na(h),0,h);g=D[b>>2];i=D[b+4>>2];k=D[h+4>>2];D[f+16>>2]=D[h>>2];D[f+20>>2]=k;D[f+8>>2]=g;D[f+12>>2]=i;i=a+8|0;Jb(f+24|0,i,f+16|0,f+8|0);D[c>>2]=D[f+24>>2];D[c+4>>2]=D[f+28>>2];if((d|0)>(e|0)){k=0-e<<2;a=e;while(1){g=a<<2;j=g+b|0;m=D[j>>2];j=D[j+4>>2];g=c+g|0;l=g+k|0;n=D[l+4>>2];D[f+16>>2]=D[l>>2];D[f+20>>2]=n;D[f+8>>2]=m;D[f+12>>2]=j;Jb(f+24|0,i,f+16|0,f+8|0);D[g>>2]=D[f+24>>2];D[g+4>>2]=D[f+28>>2];a=a+e|0;if((d|0)>(a|0)){continue}break}}ma(h);$=f+32|0;return 1}function ib(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=D[a+8>>2];e=D[a>>2];if(g>>>0<=d-e>>2>>>0){d=D[a+4>>2];f=d-e|0;h=f>>2;f=g>>>0>h>>>0?b+f|0:c;if((f|0)!=(b|0)){while(1){D[e>>2]=D[b>>2];e=e+4|0;b=b+4|0;if((f|0)!=(b|0)){continue}break}}if(g>>>0>h>>>0){b=c-f|0;if((b|0)>0){d=oa(d,f,b)+b|0}D[a+4>>2]=d;return}D[a+4>>2]=e;return}if(e){D[a+4>>2]=e;ma(e);D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;d=0}a:{if((f|0)<0){break a}e=d>>1;d=d>>>0<2147483644?e>>>0>g>>>0?e:g:1073741823;if(d>>>0>=1073741824){break a}e=d<<2;d=na(e);D[a>>2]=d;D[a+4>>2]=d;D[a+8>>2]=d+e;if((b|0)!=(c|0)){d=oa(d,b,f)+f|0}D[a+4>>2]=d;return}pa();T()}function xf(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;a:{if(G[b+80>>2]>65535){break a}a=D[b+100>>2];b=D[b+96>>2];e=(a-b|0)/12|0;f=J(e,6);g=(f|0)==(c|0);if((a|0)==(b|0)|(c|0)!=(f|0)){break a}g=1;c=e>>>0>1?e:1;i=c&1;a=0;if(e>>>0>=2){j=c&-2;c=0;while(1){f=J(a,6);h=f+d|0;e=b+J(a,12)|0;C[h>>1]=D[e>>2];C[(f|2)+d>>1]=D[e+4>>2];C[h+4>>1]=D[e+8>>2];f=a|1;e=J(f,6)+d|0;f=b+J(f,12)|0;C[e>>1]=D[f>>2];C[e+2>>1]=D[f+4>>2];C[e+4>>1]=D[f+8>>2];a=a+2|0;c=c+2|0;if((j|0)!=(c|0)){continue}break}}if(!i){break a}c=J(a,6)+d|0;a=b+J(a,12)|0;C[c>>1]=D[a>>2];C[c+2>>1]=D[a+4>>2];C[c+4>>1]=D[a+8>>2]}return g|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;e=D[b+12>>2];c=D[b+20>>2];f=c;g=D[b+16>>2];d=g+4|0;c=d>>>0<4?c+1|0:c;h=D[b+8>>2];i=d;a:{if(h>>>0<d>>>0&(c|0)>=(e|0)|(c|0)>(e|0)){break a}d=g+D[b>>2]|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=i;D[b+20>>2]=c;c=f;f=g+8|0;c=f>>>0<8?c+1|0:c;if(f>>>0>h>>>0&(c|0)>=(e|0)|(c|0)>(e|0)){break a}D[b+16>>2]=f;D[b+20>>2]=c;if(!(d&1)){break a}c=M(d)^31;if(c-30>>>0<4294967267){break a}D[a+8>>2]=c+1;e=-2<<c;c=-2-e|0;D[a+16>>2]=c;D[a+12>>2]=e^-1;D[a+24>>2]=(c|0)/2;H[a+20>>2]=K(2)/K(c|0);j=Da(a+96|0,b)}return j|0}function vd(a){var b=0,c=0,d=0,e=0,f=0;f=1;c=D[a+140>>2];a:{if((c|0)<=0){break a}b=c<<4;d=na((c|0)!=(c&268435455)?-1:b|4);D[d>>2]=c;d=d+4|0;c=d+b|0;b=d;while(1){D[b>>2]=0;D[b+4>>2]=0;B[b+5|0]=0;B[b+6|0]=0;B[b+7|0]=0;B[b+8|0]=0;B[b+9|0]=0;B[b+10|0]=0;B[b+11|0]=0;B[b+12|0]=0;b=b+16|0;if((c|0)!=(b|0)){continue}break}e=D[a+136>>2];D[a+136>>2]=d;if(e){c=e-4|0;d=D[c>>2];if(d){b=(d<<4)+e|0;while(1){b=b-16|0;if((e|0)!=(b|0)){continue}break}}ma(c)}b=0;if(D[a+140>>2]<=0){break a}while(1){f=Da(D[a+136>>2]+(b<<4)|0,a);if(!f){break a}b=b+1|0;if((b|0)<D[a+140>>2]){continue}break}}return f}function Of(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a=$-32|0;$=a;D[a+24>>2]=0;D[a+28>>2]=0;a:{d=Ba(c);if(d>>>0<4294967280){b:{c:{if(d>>>0>=11){f=d+16&-16;e=na(f);D[a+16>>2]=f|-2147483648;D[a+8>>2]=e;D[a+12>>2]=d;break c}B[a+19|0]=d;e=a+8|0;if(!d){break b}}oa(e,c,d)}B[d+e|0]=0;c=b+4|0;b=bb(b,a+8|0);d:{if((c|0)==(b|0)){break d}c=D[b+32>>2];b=D[b+28>>2];if((c-b|0)!=8){break d}c=E[b+4|0]|E[b+5|0]<<8|(E[b+6|0]<<16|E[b+7|0]<<24);D[a+24>>2]=E[b|0]|E[b+1|0]<<8|(E[b+2|0]<<16|E[b+3|0]<<24);D[a+28>>2]=c}g=I[a+24>>3];if(B[a+19|0]<0){ma(D[a+8>>2])}$=a+32|0;break a}Ca();T()}return+g}function Zb(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(D[a+64>>2]){break a}c=na(32);D[c+16>>2]=0;D[c+20>>2]=0;D[c+8>>2]=0;D[c>>2]=0;D[c+4>>2]=0;D[c+24>>2]=0;D[c+28>>2]=0;d=D[a+64>>2];D[a+64>>2]=c;if(!d){break a}c=D[d>>2];if(c){D[d+4>>2]=c;ma(c)}ma(d)}e=D[a+64>>2];c=D[a+28>>2]-1|0;if(c>>>0<=10){d=D[(c<<2)+10148>>2]}else{d=-1}c=J(d,B[a+24|0]);d=c;g=c>>31;e=kd(e,0,fi(c,g,b,0),aa);if(e){c=D[a+64>>2];D[a>>2]=c;f=D[c+20>>2];D[a+8>>2]=D[c+16>>2];D[a+12>>2]=f;f=D[c+24>>2];c=D[c+28>>2];D[a+48>>2]=0;D[a+52>>2]=0;D[a+40>>2]=d;D[a+44>>2]=g;D[a+16>>2]=f;D[a+20>>2]=c;D[a+80>>2]=b}return e}function Gh(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;f=D[b+12>>2];c=D[b+20>>2];e=c;g=D[b+16>>2];d=g+4|0;c=d>>>0<4?c+1|0:c;h=D[b+8>>2];i=d;a:{if(h>>>0<d>>>0&(c|0)>=(f|0)|(c|0)>(f|0)){break a}d=g+D[b>>2]|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=i;D[b+20>>2]=c;c=e;e=g+8|0;c=e>>>0<8?c+1|0:c;if(e>>>0>h>>>0&(c|0)>=(f|0)|(c|0)>(f|0)){break a}D[b+16>>2]=e;D[b+20>>2]=c;if(!(d&1)){break a}b=M(d)^31;if(b-30>>>0<4294967267){break a}j=1;D[a+8>>2]=b+1;c=-2<<b;b=-2-c|0;D[a+16>>2]=b;D[a+12>>2]=c^-1;D[a+24>>2]=(b|0)/2;H[a+20>>2]=K(2)/K(b|0)}return j|0}function bb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;h=a+4|0;a=D[a+4>>2];a:{b:{if(!a){break b}d=E[b+11|0];c=d<<24>>24<0;f=c?D[b>>2]:b;d=c?D[b+4>>2]:d;b=h;while(1){e=E[a+27|0];c=e<<24>>24<0;e=c?D[a+20>>2]:e;g=e>>>0>d>>>0;i=g?d:e;c:{if(i){j=a+16|0;c=ua(c?D[j>>2]:j,f,i);if(c){break c}}c=d>>>0>e>>>0?-1:g}c=(c|0)<0;b=c?b:a;a=D[(c?a+4|0:a)>>2];if(a){continue}break}if((b|0)==(h|0)){break b}c=E[b+27|0];a=c<<24>>24<0;d:{c=a?D[b+20>>2]:c;e=c>>>0<d>>>0?c:d;if(e){g=f;f=b+16|0;a=ua(g,a?D[f>>2]:f,e);if(a){break d}}if(c>>>0>d>>>0){break b}break a}if((a|0)>=0){break a}}b=h}return b}function _b(a,b){var c=0;c=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=c;c=D[b+60>>2];D[a+56>>2]=D[b+56>>2];D[a+60>>2]=c;c=D[b+52>>2];D[a+48>>2]=D[b+48>>2];D[a+52>>2]=c;c=D[b+44>>2];D[a+40>>2]=D[b+40>>2];D[a+44>>2]=c;c=D[b+36>>2];D[a+32>>2]=D[b+32>>2];D[a+36>>2]=c;c=D[b+28>>2];D[a+24>>2]=D[b+24>>2];D[a+28>>2]=c;c=D[b+20>>2];D[a+16>>2]=D[b+16>>2];D[a+20>>2]=c;c=D[b+12>>2];D[a+8>>2]=D[b+8>>2];D[a+12>>2]=c;D[a+88>>2]=0;D[a+64>>2]=0;D[a+68>>2]=0;D[a+72>>2]=0;D[a+76>>2]=0;B[a+77|0]=0;B[a+78|0]=0;B[a+79|0]=0;B[a+80|0]=0;B[a+81|0]=0;B[a+82|0]=0;B[a+83|0]=0;B[a+84|0]=0;return a}function wf(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,k=0;a=D[b+100>>2];b=D[b+96>>2];h=a-b|0;a:{if((h|0)!=(c|0)|(a|0)==(b|0)){break a}g=(c|0)/12|0;e=g>>>0>1?g:1;j=e&1;a=0;if(g>>>0>=2){k=e&-2;g=0;while(1){e=J(a,12);i=e+d|0;f=b+e|0;D[i>>2]=D[f>>2];D[(e|4)+d>>2]=D[f+4>>2];D[i+8>>2]=D[f+8>>2];f=J(a|1,12);e=f+d|0;f=b+f|0;D[e>>2]=D[f>>2];D[e+4>>2]=D[f+4>>2];D[e+8>>2]=D[f+8>>2];a=a+2|0;g=g+2|0;if((k|0)!=(g|0)){continue}break}}if(!j){break a}e=d;d=J(a,12);a=e+d|0;b=b+d|0;D[a>>2]=D[b>>2];D[a+4>>2]=D[b+4>>2];D[a+8>>2]=D[b+8>>2]}return(c|0)==(h|0)|0}function Le(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Na(a,D[b+8>>2],e)){if(!(D[b+28>>2]==1|D[b+4>>2]!=(c|0))){D[b+28>>2]=d}return}a:{if(Na(a,D[b>>2],e)){if(!(D[b+16>>2]!=(c|0)&D[b+20>>2]!=(c|0))){if((d|0)!=1){break a}D[b+32>>2]=1;return}D[b+32>>2]=d;b:{if(D[b+44>>2]==4){break b}C[b+52>>1]=0;a=D[a+8>>2];ba[D[D[a>>2]+20>>2]](a,b,c,c,1,e);if(E[b+53|0]){D[b+44>>2]=3;if(!E[b+52|0]){break b}break a}D[b+44>>2]=4}D[b+20>>2]=c;D[b+40>>2]=D[b+40>>2]+1;if(D[b+36>>2]!=1|D[b+24>>2]!=2){break a}B[b+54|0]=1;return}a=D[a+8>>2];ba[D[D[a>>2]+24>>2]](a,b,c,d,e)}}function Eg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=na(64);c=na(12);D[c+8>>2]=D[D[a+4>>2]+80>>2];D[c>>2]=9968;D[c+4>>2]=0;f=wc(f,c);a:{b:{if((b|0)<0){c=f;break b}h=a+8|0;c=D[a+12>>2];e=D[a+8>>2];g=c-e>>2;c:{if((g|0)>(b|0)){break c}d=b+1|0;if(b>>>0>=g>>>0){Pb(h,d-g|0);break c}if(d>>>0>=g>>>0){break c}e=e+(d<<2)|0;if((e|0)!=(c|0)){while(1){c=c-4|0;d=D[c>>2];D[c>>2]=0;if(d){ba[D[D[d>>2]+4>>2]](d)}if((c|0)!=(e|0)){continue}break}}D[a+12>>2]=e}a=D[h>>2]+(b<<2)|0;c=D[a>>2];D[a>>2]=f;if(!c){break a}}ba[D[D[c>>2]+4>>2]](c)}return(b^-1)>>>31|0}function Yc(a,b,c){var d=0,e=0,f=0,g=0;a:{if((b|c)>=0){b:{if(b>>>0>1431655765){break b}d=J(b,3);Vb(a,d,10224);Vb(a+12|0,d,10228);d=D[a+24>>2];c:{if(D[a+32>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break a}e=D[a+28>>2];f=c<<2;c=na(f);f=c+f|0;e=e-d|0;g=e+c|0;if((e|0)>0){oa(c,d,e)}D[a+32>>2]=f;D[a+28>>2]=g;D[a+24>>2]=c;if(!d){break c}ma(d)}D[a+80>>2]=0;D[a+84>>2]=0;c=D[a+76>>2];D[a+76>>2]=0;if(c){ma(c)}D[a+68>>2]=0;D[a+72>>2]=0;c=a- -64|0;a=D[c>>2];D[c>>2]=0;if(!a){break b}ma(a)}a=b>>>0<1431655766}else{a=0}return a}pa();T()}function se(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=D[a+60>>2];a:{if(!c){break a}D[c+4>>2]=a+48;if(!(ba[D[D[c>>2]+12>>2]](c)|0)){break a}b:{c=ba[D[D[a>>2]+24>>2]](a)|0;if((c|0)<=0){break b}while(1){c:{f=D[(ba[D[D[a>>2]+28>>2]](a)|0)+4>>2];g=ba[D[D[a>>2]+20>>2]](a,d)|0;e=D[a+60>>2];if(!(ba[D[D[e>>2]+8>>2]](e,D[D[f+8>>2]+(g<<2)>>2])|0)){break c}d=d+1|0;if((c|0)!=(d|0)){continue}break b}break}return 0}d=0;if(!(ba[D[D[a>>2]+36>>2]](a,b)|0)){break a}if(!(ba[D[D[a>>2]+40>>2]](a,b)|0)){break a}d=ba[D[D[a>>2]+44>>2]](a)|0}return d|0}function ob(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=D[a+4>>2];if((c|0)!=D[a+8>>2]){d=D[b+4>>2];D[c>>2]=D[b>>2];D[c+4>>2]=d;D[c+8>>2]=D[b+8>>2];D[a+4>>2]=c+12;return}a:{f=D[a>>2];g=c-f|0;d=(g|0)/12|0;c=d+1|0;if(c>>>0<357913942){e=d<<1;e=d>>>0<178956970?c>>>0<e>>>0?e:c:357913941;if(e){if(e>>>0>=357913942){break a}c=na(J(e,12))}else{c=0}d=c+J(d,12)|0;h=D[b+4>>2];D[d>>2]=D[b>>2];D[d+4>>2]=h;D[d+8>>2]=D[b+8>>2];b=d+J((g|0)/-12|0,12)|0;if((g|0)>0){oa(b,f,g)}D[a+8>>2]=c+J(e,12);D[a+4>>2]=d+12;D[a>>2]=b;if(f){ma(f)}return}pa();T()}sa();T()}function Ec(a,b,c,d,e,f,g){var h=0,i=0,j=0;h=$-16|0;$=h;if((b^-1)-17>>>0>=c>>>0){if(E[a+11|0]>>>7|0){j=D[a>>2]}else{j=a}a:{if(b>>>0<2147483623){D[h+8>>2]=b<<1;D[h+12>>2]=b+c;c=$-16|0;$=c;$=c+16|0;c=h+8|0;i=h+12|0;c=D[(G[i>>2]<G[c>>2]?c:i)>>2];if(c>>>0>=11){i=c+16&-16;c=i-1|0;c=(c|0)==11?i:c}else{c=10}break a}c=-18}i=c+1|0;c=na(i);if(f){gb(c,g,f)}g=d-e|0;if((d|0)!=(e|0)){gb(c+f|0,e+j|0,g)}if((b|0)!=10){ma(j)}D[a>>2]=c;D[a+8>>2]=i|-2147483648;b=a;a=f+g|0;D[b+4>>2]=a;B[h+7|0]=0;B[a+c|0]=E[h+7|0];$=h+16|0;return}Ca();T()}function Fd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=D[a+216>>2];if((c|0)!=D[a+220>>2]){while(1){a:{c=D[J(e,144)+c>>2];if((c|0)<0){break a}d=D[a+4>>2];f=D[d+8>>2];if((c|0)>=D[d+12>>2]-f>>2){break a}d=0;c=D[(c<<2)+f>>2];if((ba[D[D[c>>2]+24>>2]](c)|0)<=0){break a}while(1){if((ba[D[D[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((ba[D[D[c>>2]+24>>2]](c)|0)>(d|0)){continue}break a}break}a=D[a+216>>2]+J(e,144)|0;return(E[a+100|0]?a+4|0:0)|0}e=e+1|0;c=D[a+216>>2];if(e>>>0<(D[a+220>>2]-c|0)/144>>>0){continue}break}}return 0}function eb(a){var b=0,c=0,d=0,e=0,f=0;d=D[a+8>>2];a:{if(E[d+84|0]){break a}b=D[a+16>>2];if(!b|!E[b+84|0]){break a}c=D[d+72>>2];e=D[d+68>>2];B[b+84|0]=0;c=c-e>>2;f=D[b+68>>2];e=D[b+72>>2]-f>>2;b:{if(c>>>0>e>>>0){xa(b+68|0,c-e|0,2004);d=D[a+8>>2];break b}if(c>>>0>=e>>>0){break b}D[b+72>>2]=f+(c<<2)}if(E[d+84|0]){break a}c=D[d+68>>2];if((c|0)==D[d+72>>2]){break a}e=D[D[a+16>>2]+68>>2];b=0;while(1){f=b<<2;D[f+e>>2]=D[c+f>>2];b=b+1|0;c=D[d+68>>2];if(b>>>0<D[d+72>>2]-c>>2>>>0){continue}break}}return D[a+16>>2]}function Hf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=$+-64|0;$=e;f=La(e+8|0);D[f+16>>2]=0;D[f+20>>2]=0;D[f>>2]=b;D[f+8>>2]=c;D[f+12>>2]=0;b=e+48|0;Md(b,a,f,d);D[a+24>>2]=D[e+48>>2];d=a+24|0;a:{if((d|0)==(b|0)){break a}b=e+48|4;f=E[e+63|0];c=f<<24>>24;a=a+28|0;if(B[a+11|0]>=0){if((c|0)>=0){c=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=c;D[a+8>>2]=D[b+8>>2];break a}sb(a,D[e+52>>2],D[e+56>>2]);break a}g=a;a=(c|0)<0;tb(g,a?D[e+52>>2]:b,a?D[e+56>>2]:f)}if(B[e+63|0]<0){ma(D[e+52>>2])}$=e- -64|0;return d|0}function Ed(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=D[a+216>>2];if((c|0)!=D[a+220>>2]){while(1){a:{c=D[J(e,144)+c>>2];if((c|0)<0){break a}d=D[a+4>>2];f=D[d+8>>2];if((c|0)>=D[d+12>>2]-f>>2){break a}d=0;c=D[(c<<2)+f>>2];if((ba[D[D[c>>2]+24>>2]](c)|0)<=0){break a}while(1){if((ba[D[D[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((ba[D[D[c>>2]+24>>2]](c)|0)>(d|0)){continue}break a}break}return(D[a+216>>2]+J(e,144)|0)+104|0}e=e+1|0;c=D[a+216>>2];if(e>>>0<(D[a+220>>2]-c|0)/144>>>0){continue}break}}return a+184|0}function Eb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{c=D[a+4>>2];d=D[a>>2];f=c-d|0;b:{if(f>>>0<b>>>0){g=b-f|0;e=D[a+8>>2];if(g>>>0<=e-c>>>0){h=a,i=qa(c,0,g)+g|0,D[h+4>>2]=i;break b}if((b|0)<0){break a}c=e-d|0;e=c<<1;e=c>>>0<1073741823?b>>>0<e>>>0?e:b:2147483647;c=na(e);qa(c+f|0,0,g);if((f|0)>0){oa(c,d,f)}D[a+8>>2]=c+e;D[a+4>>2]=b+c;D[a>>2]=c;if(!d){break b}ma(d);break b}if(b>>>0>=f>>>0){break b}D[a+4>>2]=b+d}b=D[a+28>>2];c=b;d=b+1|0;b=D[a+24>>2]+1|0;d=b?c:d;D[a+24>>2]=b;D[a+28>>2]=d;return}pa();T()}function If(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;d=$+-64|0;$=d;e=La(d+8|0);D[e+16>>2]=0;D[e+20>>2]=0;D[e>>2]=b;D[e+8>>2]=c;D[e+12>>2]=0;b=d+48|0;Ld(b);D[a+24>>2]=D[d+48>>2];e=a+24|0;a:{if((e|0)==(b|0)){break a}b=d+48|4;f=E[d+63|0];c=f<<24>>24;a=a+28|0;if(B[a+11|0]>=0){if((c|0)>=0){c=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=c;D[a+8>>2]=D[b+8>>2];break a}sb(a,D[d+52>>2],D[d+56>>2]);break a}g=a;a=(c|0)<0;tb(g,a?D[d+52>>2]:b,a?D[d+56>>2]:f)}if(B[d+63|0]<0){ma(D[d+52>>2])}$=d- -64|0;return e|0}function ye(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;if((ba[D[D[b>>2]+20>>2]](b)|0)<=0){return 1}while(1){a:{g=0;d=Oc(D[D[a+4>>2]+4>>2],ba[D[D[b>>2]+24>>2]](b,e)|0);if((d|0)==-1){break a}f=D[a+4>>2];c=0;b:{if((d|0)<0){break b}h=D[f+4>>2];if((d|0)>=D[h+12>>2]-D[h+8>>2]>>2){break b}c=D[D[f+8>>2]+(D[D[f+20>>2]+(d<<2)>>2]<<2)>>2];c=ba[D[D[c>>2]+32>>2]](c,d)|0}if(!c){break a}if(!(ba[D[D[b>>2]+28>>2]](b,c)|0)){break a}g=1;e=e+1|0;if((ba[D[D[b>>2]+20>>2]](b)|0)>(e|0)){continue}}break}return g|0}function ya(a){D[a>>2]=-1;D[a+4>>2]=0;D[a+8>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;B[a+28|0]=1;D[a+20>>2]=0;D[a+24>>2]=0;D[a+12>>2]=0;D[a+16>>2]=0;D[a+40>>2]=0;D[a+44>>2]=0;D[a+48>>2]=0;D[a+52>>2]=0;D[a+56>>2]=0;D[a+60>>2]=0;D[a+64>>2]=0;D[a+68>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+84>>2]=0;D[a+88>>2]=0;D[a+92>>2]=0;D[a+96>>2]=0;D[a+72>>2]=a+4;D[a+104>>2]=0;D[a+108>>2]=0;B[a+100|0]=1;D[a+112>>2]=0;D[a+116>>2]=0;D[a+120>>2]=0;D[a+124>>2]=0;D[a+128>>2]=0;D[a+132>>2]=0;D[a+136>>2]=0;D[a+140>>2]=0}function Ff(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a=$-32|0;$=a;a:{d=Ba(c);if(d>>>0<4294967280){b:{c:{if(d>>>0>=11){f=d+16&-16;e=na(f);D[a+24>>2]=f|-2147483648;D[a+16>>2]=e;D[a+20>>2]=d;break c}B[a+27|0]=d;e=a+16|0;if(!d){break b}}oa(e,c,d)}B[d+e|0]=0;B[a+4|0]=0;D[a>>2]=1701667182;B[a+11|0]=4;d=D[b+4>>2];c=-1;d:{if(!d){break d}d=Sc(d,a,a+16|0);c=-1;if(!d){break d}c=Nc(b,D[d+24>>2])}b=c;if(B[a+11|0]<0){ma(D[a>>2])}if(B[a+27|0]<0){ma(D[a+16>>2])}$=a+32|0;break a}Ca();T()}return b|0}function Qf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=$-16|0;$=d;D[d+12>>2]=0;a:{e=Ba(c);if(e>>>0<4294967280){b:{c:{if(e>>>0>=11){f=e+16&-16;a=na(f);D[d+8>>2]=f|-2147483648;D[d>>2]=a;D[d+4>>2]=e;break c}B[d+11|0]=e;a=d;if(!e){break b}}oa(a,c,e)}B[a+e|0]=0;a=bb(b,d);d:{if((a|0)==(b+4|0)){break d}b=D[a+32>>2];a=D[a+28>>2];if((b-a|0)!=4){break d}D[d+12>>2]=E[a|0]|E[a+1|0]<<8|(E[a+2|0]<<16|E[a+3|0]<<24)}a=D[d+12>>2];if(B[d+11|0]<0){ma(D[d>>2])}$=d+16|0;break a}Ca();T()}return a|0}function ub(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=10300;b=D[a+68>>2];if(b){D[a+72>>2]=b;ma(b)}b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}b=D[a+44>>2];if(b){D[a+48>>2]=b;ma(b)}b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}b=D[a+20>>2];if(b){D[a+24>>2]=b;ma(b)}b=D[a+8>>2];if(b){d=b;c=D[a+12>>2];if((b|0)!=(c|0)){while(1){c=c-4|0;d=D[c>>2];D[c>>2]=0;if(d){Aa(d)}if((b|0)!=(c|0)){continue}break}d=D[a+8>>2]}D[a+12>>2]=b;ma(d)}b=D[a+4>>2];D[a+4>>2]=0;if(b){fc(b)}return a|0}function ra(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=D[a+8>>2];c=D[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=qa(c,0,b)+b|0}D[a+4>>2]=c;return}a:{f=D[a>>2];g=c-f|0;h=g>>2;d=h+b|0;if(d>>>0<1073741824){c=0;e=e-f|0;i=e>>1;d=e>>>0<2147483644?d>>>0<i>>>0?i:d:1073741823;if(d){if(d>>>0>=1073741824){break a}c=na(d<<2)}b=b<<2;b=qa((h<<2)+c|0,0,b)+b|0;if((g|0)>0){oa(c,f,g)}D[a+8>>2]=(d<<2)+c;D[a+4>>2]=b;D[a>>2]=c;if(f){ma(f)}return}pa();T()}sa();T()}function db(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=D[a+8>>2];c=D[a+4>>2];if(e-c>>3>>>0>=b>>>0){if(b){b=b<<3;c=qa(c,0,b)+b|0}D[a+4>>2]=c;return}a:{f=D[a>>2];g=c-f|0;h=g>>3;d=h+b|0;if(d>>>0<536870912){c=0;e=e-f|0;i=e>>2;d=e>>>0<2147483640?d>>>0<i>>>0?i:d:536870911;if(d){if(d>>>0>=536870912){break a}c=na(d<<3)}b=b<<3;b=qa((h<<3)+c|0,0,b)+b|0;if((g|0)>0){oa(c,f,g)}D[a+8>>2]=(d<<3)+c;D[a+4>>2]=b;D[a>>2]=c;if(f){ma(f)}return}pa();T()}sa();T()}function Ta(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=D[a>>2];a=D[e+4>>2];c=D[e+8>>2];if(a>>>0<c>>>0){D[a>>2]=D[b>>2];D[e+4>>2]=a+4;return}a:{f=D[e>>2];g=a-f|0;d=g>>2;a=d+1|0;if(a>>>0<1073741824){h=d<<2;c=c-f|0;d=c>>1;c=c>>>0<2147483644?a>>>0<d>>>0?d:a:1073741823;if(c){if(c>>>0>=1073741824){break a}a=na(c<<2)}else{a=0}d=h+a|0;D[d>>2]=D[b>>2];if((g|0)>0){oa(a,f,g)}D[e+8>>2]=a+(c<<2);D[e+4>>2]=d+4;D[e>>2]=a;if(f){ma(f)}return}pa();T()}sa();T()}function dc(a,b){var c=0,d=0,e=0,f=0;c=a+4|0;a=bb(a,b);a:{if((c|0)==(a|0)){break a}b=a+28|0;b=B[a+39|0]<0?D[b>>2]:b;while(1){a=b;b=a+1|0;c=B[a|0];if((c|0)==32|c-9>>>0<5){continue}break}b:{c:{d:{c=B[a|0];switch(c-43|0){case 0:break c;case 2:break d;default:break b}}e=1}c=B[b|0];a=b}if(c-48>>>0<10){while(1){d=(J(d,10)-B[a|0]|0)+48|0;b=B[a+1|0];a=a+1|0;if(b-48>>>0<10){continue}break}}a=e?d:0-d|0;if((a|0)==-1){break a}f=(a|0)!=0}return f}function ne(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=2016;b=D[a+60>>2];D[a+60>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}d=D[a+36>>2];if(d){c=D[a+40>>2];b=d;if((c|0)!=(b|0)){while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}b=D[a+36>>2]}D[a+40>>2]=d;ma(b)}D[a>>2]=1776;b=D[a+16>>2];if(b){D[a+20>>2]=b;ma(b)}b=D[a+4>>2];if(b){D[a+8>>2]=b;ma(b)}return a|0}function me(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=2016;b=D[a+60>>2];D[a+60>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}d=D[a+36>>2];if(d){c=D[a+40>>2];b=d;if((c|0)!=(b|0)){while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}b=D[a+36>>2]}D[a+40>>2]=d;ma(b)}D[a>>2]=1776;b=D[a+16>>2];if(b){D[a+20>>2]=b;ma(b)}b=D[a+4>>2];if(b){D[a+8>>2]=b;ma(b)}ma(a)}function id(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=D[a+8>>2];c=D[a+4>>2];if(e-c>>1>>>0>=b>>>0){if(b){b=b<<1;c=qa(c,0,b)+b|0}D[a+4>>2]=c;return}a:{f=D[a>>2];g=c-f|0;h=g>>1;d=h+b|0;if((d|0)>=0){c=0;e=e-f|0;d=e>>>0<2147483646?d>>>0<e>>>0?e:d:2147483647;if(d){if((d|0)<0){break a}c=na(d<<1)}b=b<<1;b=qa((h<<1)+c|0,0,b)+b|0;if((g|0)>0){oa(c,f,g)}D[a+8>>2]=(d<<1)+c;D[a+4>>2]=b;D[a>>2]=c;if(f){ma(f)}return}pa();T()}sa();T()}function Ag(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{b=D[a+8>>2];b:{if((b|0)<0){break b}c=D[a+4>>2];e=D[c>>2];d=D[c+4>>2]-e>>2;c:{if(d>>>0<b>>>0){ra(c,b-d|0);f=D[a+8>>2];break c}f=b;if(b>>>0>=d>>>0){break c}D[c+4>>2]=e+(b<<2);f=b}d=f;if((d|0)<=0){break b}a=D[a+4>>2];c=D[a>>2];e=D[a+4>>2]-c>>2;a=0;while(1){if((a|0)==(e|0)){break a}D[c+(a<<2)>>2]=a;a=a+1|0;if((d|0)!=(a|0)){continue}break}}return(b^-1)>>>31|0}va();T()}function $g(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=$-16|0;$=d;e=D[a+4>>2];a:{if((e|0)==-1){break a}c=D[b+20>>2];if(!!D[b+16>>2]&(c|0)>=0|(c|0)>0){break a}rb(b,D[b+4>>2],D[a+8>>2],D[a+12>>2]);c=D[b+20>>2];if(!!D[b+16>>2]&(c|0)>=0|(c|0)>0){break a}rb(b,D[b+4>>2],a+20|0,a+24|0);c=D[b+20>>2];f=D[b+16>>2];B[d+15|0]=D[a+4>>2];if(!!f&(c|0)>=0|(c|0)>0){break a}rb(b,D[b+4>>2],d+15|0,d+16|0)}$=d+16|0;return(e|0)!=-1|0}function kf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=$-16|0;$=d;Md(d,a,b,c);D[a+24>>2]=D[d>>2];e=a+24|0;a:{if((e|0)==(d|0)){break a}b=d|4;f=E[d+15|0];c=f<<24>>24;a=a+28|0;if(B[a+11|0]>=0){if((c|0)>=0){c=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=c;D[a+8>>2]=D[b+8>>2];break a}sb(a,D[d+4>>2],D[d+8>>2]);break a}g=a;a=(c|0)<0;tb(g,a?D[d+4>>2]:b,a?D[d+8>>2]:f)}if(B[d+15|0]<0){ma(D[d+4>>2])}$=d+16|0;return e|0}function vf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a=$-32|0;$=a;e=B[b+24|0];f=D[2555];D[a+24>>2]=D[2554];D[a+28>>2]=f;f=D[2553];D[a+16>>2]=D[2552];D[a+20>>2]=f;a:{b:{c=nb(b,c,e,a+16|0);if(c){D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;b=0;if(e){if((e|0)<0){break b}e=e<<2;b=na(e);g=oa(b,a+16|0,e)+e|0}e=D[d>>2];if(e){D[d+4>>2]=e;ma(e)}D[d+8>>2]=g;D[d+4>>2]=g;D[d>>2]=b}$=a+32|0;break a}pa();T()}return c|0}function Ua(a){var b=0,c=0,d=0,e=0,f=0;b=D[a+4>>2];if((b|0)!=D[a+8>>2]){D[b>>2]=D[2081];D[a+4>>2]=b+4;return}a:{f=D[a>>2];d=b-f|0;e=d>>2;b=e+1|0;if(b>>>0<1073741824){c=d>>1;c=d>>>0<2147483644?b>>>0<c>>>0?c:b:1073741823;if(c){if(c>>>0>=1073741824){break a}b=na(c<<2)}else{b=0}e=b+(e<<2)|0;D[e>>2]=D[2081];if((d|0)>0){oa(b,f,d)}D[a+8>>2]=b+(c<<2);D[a+4>>2]=e+4;D[a>>2]=b;if(f){ma(f)}return}pa();T()}sa();T()}function lf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;b=$-16|0;$=b;Ld(b);D[a+24>>2]=D[b>>2];e=a+24|0;a:{if((e|0)==(b|0)){break a}c=b|4;f=E[b+15|0];d=f<<24>>24;a=a+28|0;if(B[a+11|0]>=0){if((d|0)>=0){d=D[c+4>>2];D[a>>2]=D[c>>2];D[a+4>>2]=d;D[a+8>>2]=D[c+8>>2];break a}sb(a,D[b+4>>2],D[b+8>>2]);break a}g=a;a=(d|0)<0;tb(g,a?D[b+4>>2]:c,a?D[b+8>>2]:f)}if(B[b+15|0]<0){ma(D[b+4>>2])}$=b+16|0;return e|0}function Hb(a,b){var c=0,d=0,e=0,f=0;d=D[a+12>>2];c=D[a+16>>2]-d>>2;a:{if(c>>>0<b>>>0){ra(a+12|0,b-c|0);break a}if(b>>>0>=c>>>0){break a}D[a+16>>2]=d+(b<<2)}b:{c=D[a>>2];c:{if(D[a+8>>2]-c>>2>>>0>=b>>>0){break c}if(b>>>0>=1073741824){break b}d=D[a+4>>2];e=b<<2;b=na(e);e=b+e|0;d=d-c|0;f=d+b|0;if((d|0)>0){oa(b,c,d)}D[a+8>>2]=e;D[a+4>>2]=f;D[a>>2]=b;if(!c){break c}ma(c)}return}pa();T()}function Nf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=$-16|0;$=d;a:{e=Ba(c);if(e>>>0<4294967280){b:{c:{if(e>>>0>=11){g=e+16&-16;f=na(g);D[d+8>>2]=g|-2147483648;D[d>>2]=f;D[d+4>>2]=e;break c}B[d+11|0]=e;f=d;if(!e){break b}}oa(f,c,e)}B[e+f|0]=0;f=a+16|0;c=Qc(b,d,f);b=B[a+27|0];a=D[a+16>>2];if(B[d+11|0]<0){ma(D[d>>2])}$=d+16|0;a=c?(b|0)<0?a:f:0;break a}Ca();T()}return a|0}function jd(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>10){break a}d=D[c+20>>2];e=D[c+12>>2];f=D[c+16>>2];if((d|0)>=(e|0)&f>>>0>=G[c+8>>2]|(d|0)>(e|0)){break a}e=B[f+D[c>>2]|0];f=f+1|0;d=f?d:d+1|0;D[c+16>>2]=f;D[c+20>>2]=d;b:{if((e|0)<0){if(!jd(a+1|0,b,c)){break a}c=D[b>>2];a=D[b+4>>2]<<7|c>>>25;c=e&127|c<<7;break b}a=0;c=e&255}D[b>>2]=c;D[b+4>>2]=a;g=1}return g}function dg(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;d=$+-64|0;$=d;e=ba[D[D[a>>2]+44>>2]](a,b)|0;a=ba[D[D[a>>2]+40>>2]](a,b)|0;f=mb(d);g=D[b+56>>2];h=e<<24>>24;i=a;a=a-1|0;if(a>>>0<=10){a=D[(a<<2)+10148>>2]}else{a=-1}a=J(a,e);$b(f,g,h,i,0,a,a>>31);a=_b(na(96),f);Zb(a,c);B[a+84|0]=1;D[a+72>>2]=D[a+68>>2];D[a+60>>2]=D[b+60>>2];$=d- -64|0;return a|0}function Va(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>10){break a}d=D[c+20>>2];e=D[c+12>>2];f=D[c+16>>2];if((d|0)>=(e|0)&f>>>0>=G[c+8>>2]|(d|0)>(e|0)){break a}e=B[f+D[c>>2]|0];f=f+1|0;d=f?d:d+1|0;D[c+16>>2]=f;D[c+20>>2]=d;b:{if((e|0)<0){if(!Va(a+1|0,b,c)){break a}c=D[b>>2];a=D[b+4>>2]<<7|c>>>25;c=e&127|c<<7;break b}a=0;c=e&255}D[b>>2]=c;D[b+4>>2]=a;g=1}return g}function Ke(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(Na(a,D[b+8>>2],e)){if(!(D[b+28>>2]==1|D[b+4>>2]!=(c|0))){D[b+28>>2]=d}return}a:{if(!Na(a,D[b>>2],e)){break a}if(!(D[b+16>>2]!=(c|0)&D[b+20>>2]!=(c|0))){if((d|0)!=1){break a}D[b+32>>2]=1;return}D[b+20>>2]=c;D[b+32>>2]=d;D[b+40>>2]=D[b+40>>2]+1;if(!(D[b+36>>2]!=1|D[b+24>>2]!=2)){B[b+54|0]=1}D[b+44>>2]=4}}function nh(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=8176;b=D[a+48>>2];D[a+48>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=10032;b=D[a+20>>2];if(b){D[a+24>>2]=b;ma(b)}d=D[a+8>>2];if(d){c=D[a+12>>2];b=d;if((c|0)!=(b|0)){while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}b=D[a+8>>2]}D[a+12>>2]=d;ma(b)}return a|0}function Bc(a,b,c,d){B[a+53|0]=1;a:{if(D[a+4>>2]!=(c|0)){break a}B[a+52|0]=1;c=D[a+16>>2];b:{if(!c){D[a+36>>2]=1;D[a+24>>2]=d;D[a+16>>2]=b;if((d|0)!=1){break a}if(D[a+48>>2]==1){break b}break a}if((b|0)==(c|0)){c=D[a+24>>2];if((c|0)==2){D[a+24>>2]=d;c=d}if(D[a+48>>2]!=1){break a}if((c|0)==1){break b}break a}D[a+36>>2]=D[a+36>>2]+1}B[a+54|0]=1}}function mh(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=8176;b=D[a+48>>2];D[a+48>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=10032;b=D[a+20>>2];if(b){D[a+24>>2]=b;ma(b)}d=D[a+8>>2];if(d){c=D[a+12>>2];b=d;if((c|0)!=(b|0)){while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}b=D[a+8>>2]}D[a+12>>2]=d;ma(b)}ma(a)}function Oe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=$+-64|0;$=e;d=1;a:{if(Na(a,b,0)){break a}d=0;if(!b){break a}b=Dc(b,11068);d=0;if(!b){break a}d=e+8|0;qa(d|4,0,52);D[e+56>>2]=1;D[e+20>>2]=-1;D[e+16>>2]=a;D[e+8>>2]=b;ba[D[D[b>>2]+28>>2]](b,d,D[c>>2],1);a=D[e+32>>2];if((a|0)==1){D[c>>2]=D[e+24>>2]}d=(a|0)==1}$=e- -64|0;return d|0}function Cd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=$-16|0;$=d;D[a+4>>2]=b;b=D[b+64>>2];e=D[b>>2];b=D[b+4>>2];B[d+15|0]=0;Ha(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=D[a+4>>2];e=D[b+56>>2];b=D[b+52>>2];B[d+14|0]=0;Ha(a+36|0,e-b>>2,d+14|0);b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;$=d+16|0}function re(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=ba[D[D[a>>2]+24>>2]](a)|0;c=1;a:{if((f|0)<=0){break a}d=D[D[a+36>>2]>>2];g=a+48|0;c=0;if(!(ba[D[D[d>>2]+16>>2]](d,g,b)|0)){break a}while(1){e=e+1|0;if((f|0)!=(e|0)){d=D[D[a+36>>2]+(e<<2)>>2];if(ba[D[D[d>>2]+16>>2]](d,g,b)|0){continue}}break}c=(e|0)>=(f|0)}return c|0}function qe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=ba[D[D[a>>2]+24>>2]](a)|0;c=1;a:{if((f|0)<=0){break a}d=D[D[a+36>>2]>>2];g=a+48|0;c=0;if(!(ba[D[D[d>>2]+20>>2]](d,g,b)|0)){break a}while(1){e=e+1|0;if((f|0)!=(e|0)){d=D[D[a+36>>2]+(e<<2)>>2];if(ba[D[D[d>>2]+20>>2]](d,g,b)|0){continue}}break}c=(e|0)>=(f|0)}return c|0}function Wb(a){var b=0;D[a>>2]=0;D[a+4>>2]=0;D[a+56>>2]=0;D[a+48>>2]=0;D[a+52>>2]=0;D[a+40>>2]=0;D[a+44>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0;b=a- -64|0;D[b>>2]=0;D[b+4>>2]=0;D[a+72>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+84>>2]=0;D[a+60>>2]=a;return a}function Zg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=$-16|0;$=d;D[a+4>>2]=b;e=D[b>>2];b=D[b+4>>2];B[d+15|0]=0;Ha(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=D[a+4>>2];e=D[b+28>>2];b=D[b+24>>2];B[d+14|0]=0;Ha(a+36|0,e-b>>2,d+14|0);b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;$=d+16|0}function jb(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!jb(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function hb(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!hb(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function Wa(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!Wa(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function Ub(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!Ub(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function Pa(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!Pa(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function Nd(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!Nd(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function Ga(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!Ga(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function ua(a,b,c){var d=0,e=0;a:{b:{if(c>>>0>=4){if((a|b)&3){break b}while(1){if(D[a>>2]!=D[b>>2]){break b}b=b+4|0;a=a+4|0;c=c-4|0;if(c>>>0>3){continue}break}}if(!c){break a}}while(1){d=E[a|0];e=E[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c-1|0;if(c){continue}break a}break}return d-e|0}return 0}function qd(a){var b=0,c=0,d=0,e=0;d=D[a>>2];if(d){e=d;c=D[a+4>>2];if((d|0)!=(c|0)){while(1){e=c-144|0;b=D[e+132>>2];if(b){D[c-8>>2]=b;ma(b)}b=D[c-28>>2];if(b){D[c-24>>2]=b;ma(b)}b=D[c-40>>2];if(b){D[c-36>>2]=b;ma(b)}Gb(c-140|0);c=e;if((d|0)!=(c|0)){continue}break}e=D[a>>2]}D[a+4>>2]=d;ma(e)}}function Af(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=D[b+4>>2];a:{if(!d){break a}b=D[D[D[b+8>>2]+(c<<2)>>2]+60>>2];if((b|0)<0){break a}a=D[d+24>>2];c=D[d+28>>2];if((a|0)==(c|0)){break a}b:{while(1){e=D[a>>2];if((b|0)==D[e+24>>2]){break b}a=a+4|0;if((c|0)!=(a|0)){continue}break}e=0}}return e|0}function fc(a){var b=0,c=0,d=0;if(a){d=D[a+24>>2];if(d){b=d;c=D[a+28>>2];if((b|0)!=(c|0)){while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){Fa(b+12|0,D[b+16>>2]);Ea(b,D[b+4>>2]);ma(b)}if((c|0)!=(d|0)){continue}break}b=D[a+24>>2]}D[a+28>>2]=d;ma(b)}Fa(a+12|0,D[a+16>>2]);Ea(a,D[a+4>>2]);ma(a)}}function Xg(a){a=a|0;var b=0;D[a+8>>2]=9136;D[a>>2]=8924;b=D[a+96>>2];if(b){D[a+100>>2]=b;ma(b)}b=D[a+80>>2];if(b){D[a+84>>2]=b;ma(b)}b=D[a+68>>2];if(b){D[a+72>>2]=b;ma(b)}b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=9372;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}return a|0}function sh(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=10032;b=D[a+20>>2];if(b){D[a+24>>2]=b;ma(b)}d=D[a+8>>2];if(d){c=D[a+12>>2];b=d;if((c|0)!=(b|0)){while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}b=D[a+8>>2]}D[a+12>>2]=d;ma(b)}return a|0}function Wg(a){a=a|0;var b=0;D[a+8>>2]=9136;D[a>>2]=8924;b=D[a+96>>2];if(b){D[a+100>>2]=b;ma(b)}b=D[a+80>>2];if(b){D[a+84>>2]=b;ma(b)}b=D[a+68>>2];if(b){D[a+72>>2]=b;ma(b)}b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=9372;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}ma(a)}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;h=D[c+8>>2];e=D[c+16>>2];g=D[c+12>>2];f=g;d=D[c+20>>2];if(h>>>0>e>>>0&(f|0)>=(d|0)|(d|0)<(f|0)){b=E[e+D[c>>2]|0];i=e+1|0;f=i?d:d+1|0;D[c+16>>2]=i;D[c+20>>2]=f;D[a+4>>2]=b}return e>>>0<h>>>0&(d|0)<=(g|0)|(d|0)<(g|0)}function Dg(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=10032;b=D[a+20>>2];if(b){D[a+24>>2]=b;ma(b)}d=D[a+8>>2];if(d){c=D[a+12>>2];b=d;if((c|0)!=(b|0)){while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((c|0)!=(d|0)){continue}break}b=D[a+8>>2]}D[a+12>>2]=d;ma(b)}ma(a)}function Na(a,b,c){var d=0;if(!c){return D[a+4>>2]==D[b+4>>2]}if((a|0)==(b|0)){return 1}d=D[a+4>>2];a=E[d|0];c=D[b+4>>2];b=E[c|0];a:{if(!a|(b|0)!=(a|0)){break a}while(1){b=E[c+1|0];a=E[d+1|0];if(!a){break a}c=c+1|0;d=d+1|0;if((a|0)==(b|0)){continue}break}}return(a|0)==(b|0)}function Cf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=D[b+12>>2];b=D[b+8>>2];a=0;a:{if((d|0)==(b|0)){break a}a=d-b>>2;d=a>>>0>1?a:1;a=0;b:{while(1){e=D[b+(a<<2)>>2];if(D[e+60>>2]==(c|0)){break b}a=a+1|0;if((d|0)!=(a|0)){continue}break}a=0;break a}a=(a|0)==-1?0:e}return a|0}function Yg(a){a=a|0;var b=0;D[a>>2]=9136;b=D[a+88>>2];if(b){D[a+92>>2]=b;ma(b)}b=D[a+72>>2];if(b){D[a+76>>2]=b;ma(b)}b=D[a+60>>2];if(b){D[a- -64>>2]=b;ma(b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=9372;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}return a|0}function Rc(a,b){var c=0,d=0,e=0;D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;a:{c=D[b+4>>2];d=D[b>>2];b:{if((c|0)==(d|0)){a=c;break b}c=c-d|0;if((c|0)<0){break a}d=c;e=na(c);c=qa(e,0,c);d=d+c|0;D[a+8>>2]=d;D[a+4>>2]=d;D[a>>2]=c;c=D[b>>2];a=D[b+4>>2]}oa(e,c,a-c|0);return}pa();T()}function Ad(a){var b=0,c=0,d=0,e=0;c=D[a+4>>2];d=D[a>>2];if((c|0)!=(d|0)){while(1){e=c-144|0;b=D[e+132>>2];if(b){D[c-8>>2]=b;ma(b)}b=D[c-28>>2];if(b){D[c-24>>2]=b;ma(b)}b=D[c-40>>2];if(b){D[c-36>>2]=b;ma(b)}Gb(c-140|0);c=e;if((d|0)!=(c|0)){continue}break}}D[a+4>>2]=d}function Tg(a){a=a|0;var b=0;D[a>>2]=9136;b=D[a+88>>2];if(b){D[a+92>>2]=b;ma(b)}b=D[a+72>>2];if(b){D[a+76>>2]=b;ma(b)}b=D[a+60>>2];if(b){D[a- -64>>2]=b;ma(b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=9372;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}ma(a)}function Ib(a,b){var c=0,d=0,e=0,f=0;a:{c=D[a>>2];b:{if(D[a+8>>2]-c>>2>>>0>=b>>>0){break b}if(b>>>0>=1073741824){break a}d=D[a+4>>2];e=b<<2;b=na(e);e=b+e|0;d=d-c|0;f=d+b|0;if((d|0)>0){oa(b,c,d)}D[a+8>>2]=e;D[a+4>>2]=f;D[a>>2]=b;if(!c){break b}ma(c)}return}pa();T()}function cb(a){var b=0;if(a){b=D[a+76>>2];if(b){D[a+80>>2]=b;ma(b)}b=D[a- -64>>2];if(b){D[a+68>>2]=b;ma(b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}b=D[a+24>>2];if(b){D[a+28>>2]=b;ma(b)}b=D[a+12>>2];if(b){D[a+16>>2]=b;ma(b)}b=D[a>>2];if(b){D[a+4>>2]=b;ma(b)}ma(a)}}function Gb(a){var b=0;b=D[a+84>>2];if(b){D[a+88>>2]=b;ma(b)}b=D[a+72>>2];if(b){D[a+76>>2]=b;ma(b)}b=D[a+52>>2];if(b){D[a+56>>2]=b;ma(b)}b=D[a+40>>2];if(b){D[a+44>>2]=b;ma(b)}b=D[a+28>>2];if(b){D[a+32>>2]=b;ma(b)}b=D[a+12>>2];if(b){ma(b)}a=D[a>>2];if(a){ma(a)}}function Jc(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=$-16|0;$=f;d=$-16|0;$=d;b=b-a>>2;while(1){if(b){D[d+12>>2]=a;e=b>>>1|0;D[d+12>>2]=D[d+12>>2]+(e<<2);h=(e^-1)+b|0;b=e;e=D[d+12>>2];g=G[e>>2]<G[c>>2];b=g?h:b;a=g?e+4|0:a;continue}break}$=d+16|0;$=f+16|0;return a}function ta(a,b,c){var d=0,e=0;a:{b:{if(c>>>0<11){d=a;B[d+11|0]=c;break b}if(c>>>0>4294967279){break a}if(c>>>0>=11){e=c+16&-16;d=e-1|0;d=(d|0)==11?e:d}else{d=10}e=d+1|0;d=na(e);D[a>>2]=d;D[a+8>>2]=e|-2147483648;D[a+4>>2]=c}gb(d,b,c+1|0);return}Ca();T()}function gd(a,b){var c=0,d=0;d=na(40);D[d>>2]=-1;c=d+8|0;D[c+16>>2]=0;D[c+20>>2]=0;D[c+8>>2]=0;D[c>>2]=0;D[c+4>>2]=0;D[c+24>>2]=0;D[c+28>>2]=0;ba[D[D[a>>2]+16>>2]](a,d);a=D[b+88>>2];D[b+88>>2]=d;if(a){b=D[a+8>>2];if(b){D[a+12>>2]=b;ma(b)}ma(a)}return 1}function Ba(a){var b=0,c=0,d=0;b=a;a:{if(b&3){while(1){if(!E[b|0]){break a}b=b+1|0;if(b&3){continue}break}}while(1){c=b;b=b+4|0;d=D[c>>2];if(!((d^-1)&d-16843009&-2139062144)){continue}break}while(1){b=c;c=b+1|0;if(E[b|0]){continue}break}}return b-a|0}function za(a){var b=0,c=0,d=0,e=0,f=0;d=E[a+12|0];c=D[a+8>>2];a:{if(c>>>0>4095){break a}b=D[a+4>>2];if((b|0)<=0){break a}b=b-1|0;D[a+4>>2]=b;c=E[b+D[a>>2]|0]|c<<8}d=0-d&255;b=J(d,c>>>8|0);e=c&255;f=e>>>0<d>>>0;D[a+8>>2]=f?b+e|0:c-(b+d|0)|0;return f}function wc(a,b){D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=1776;D[a+12>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+40>>2]=0;D[a>>2]=2016;D[a+60>>2]=b;D[a+44>>2]=0;D[a+48>>2]=0;D[a+52>>2]=0;D[a+56>>2]=0;return a}function Kf(a){a=a|0;var b=0,c=0,d=0;if(a){if(B[a+27|0]<0){ma(D[a+16>>2])}c=D[a>>2];if(c){d=c;b=D[a+4>>2];if((b|0)!=(c|0)){while(1){b=b-12|0;if(B[b+11|0]<0){ma(D[b>>2])}if((c|0)!=(b|0)){continue}break}d=D[a>>2]}D[a+4>>2]=c;ma(d)}ma(a)}}function Aa(a){a=a|0;var b=0,c=0;if(a){b=D[a+88>>2];D[a+88>>2]=0;if(b){c=D[b+8>>2];if(c){D[b+12>>2]=c;ma(c)}ma(b)}b=D[a+68>>2];if(b){D[a+72>>2]=b;ma(b)}b=D[a+64>>2];D[a+64>>2]=0;if(b){c=D[b>>2];if(c){D[b+4>>2]=c;ma(c)}ma(b)}ma(a)}}function zf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=D[b+96>>2];a=na(12);b=b+J(c,12)|0;c=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=c;D[a+8>>2]=D[b+8>>2];b=D[d>>2];if(b){D[d+4>>2]=b;ma(b)}D[d>>2]=a;a=a+12|0;D[d+8>>2]=a;D[d+4>>2]=a;return 1}function wh(a){a=a|0;var b=0;D[a+24>>2]=1624;D[a>>2]=7948;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}D[a>>2]=2136;b=D[a+20>>2];D[a+20>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=1920;b=D[a+16>>2];D[a+16>>2]=0;if(b){Aa(b)}return a|0}function Fb(a,b){var c=0,d=0,e=0;c=Ba(b);if(c>>>0<4294967280){a:{b:{if(c>>>0>=11){e=c+16&-16;d=na(e);D[a+8>>2]=e|-2147483648;D[a>>2]=d;D[a+4>>2]=c;break b}B[a+11|0]=c;d=a;if(!c){break a}}oa(d,b,c)}B[c+d|0]=0;return a}Ca();T()}function gi(a,b,c,d){var e=0,f=0,g=0,h=0;f=b^d;g=f>>31;e=b>>31;a=a^e;h=a-e|0;e=(b^e)-((a>>>0<e>>>0)+e|0)|0;a=d>>31;b=c^a;f=f>>31;a=hi(h,e,b-a|0,(a^d)-((a>>>0>b>>>0)+a|0)|0)^f;b=a-f|0;aa=(g^aa)-((a>>>0<f>>>0)+g|0)|0;return b}function vh(a){a=a|0;var b=0;D[a+24>>2]=1624;D[a>>2]=7948;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}D[a>>2]=2136;b=D[a+20>>2];D[a+20>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=1920;b=D[a+16>>2];D[a+16>>2]=0;if(b){Aa(b)}ma(a)}function tb(a,b,c){var d=0,e=0,f=0;e=$-16|0;$=e;d=D[a+8>>2]&2147483647;a:{if(d>>>0>c>>>0){d=D[a>>2];D[a+4>>2]=c;gb(d,b,c);B[e+15|0]=0;B[c+d|0]=E[e+15|0];break a}f=a;a=D[a+4>>2];Ec(f,d-1|0,(c-d|0)+1|0,a,a,c,b)}$=e+16|0}function fi(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=c>>>16|0;f=a>>>16|0;j=J(e,f);g=c&65535;h=a&65535;i=J(g,h);f=(i>>>16|0)+J(f,g)|0;e=(f&65535)+J(e,h)|0;aa=(J(b,c)+j|0)+J(a,d)+(f>>>16)+(e>>>16)|0;return i&65535|e<<16}function te(a,b){a=a|0;b=b|0;var c=0,d=0;c=$-16|0;$=c;a=D[a+4>>2];a:{if((a|0)==-1){break a}B[c+15|0]=a;d=D[b+20>>2];if(!!D[b+16>>2]&(d|0)>=0|(d|0)>0){break a}rb(b,D[b+4>>2],c+15|0,c+16|0)}$=c+16|0;return(a|0)!=-1|0}function Cc(a,b,c){var d=0;d=D[a+16>>2];if(!d){D[a+36>>2]=1;D[a+24>>2]=c;D[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(D[a+24>>2]!=2){break a}D[a+24>>2]=c;return}B[a+54|0]=1;D[a+24>>2]=2;D[a+36>>2]=D[a+36>>2]+1}}function rg(){var a=0;a=mb(na(96));D[a+64>>2]=0;D[a+68>>2]=0;D[a+88>>2]=0;D[a+72>>2]=0;D[a+76>>2]=0;B[a+77|0]=0;B[a+78|0]=0;B[a+79|0]=0;B[a+80|0]=0;B[a+81|0]=0;B[a+82|0]=0;B[a+83|0]=0;B[a+84|0]=0;return a|0}function fh(a,b){a=a|0;b=b|0;var c=0,d=0;D[b>>2]=2;c=D[b+8>>2];d=D[b+12>>2]-c|0;if(d>>>0<=4294967291){Eb(b+8|0,d+4|0);c=D[b+8>>2]}b=c+d|0;a=D[a+4>>2];B[b|0]=a;B[b+1|0]=a>>>8;B[b+2|0]=a>>>16;B[b+3|0]=a>>>24}function yg(a){a=a|0;var b=0,c=0,d=0;b=D[a+8>>2];d=D[a+12>>2];if((b|0)==(d|0)){return 1}while(1){c=D[b>>2];c=ba[D[D[c>>2]+16>>2]](c,D[a+32>>2])|0;if(c){b=b+4|0;if((d|0)!=(b|0)){continue}}break}return c|0}function ce(a){a=a|0;var b=0;D[a>>2]=3016;b=D[a+96>>2];if(b){ma(b)}b=D[a+84>>2];if(b){ma(b)}b=D[a+72>>2];if(b){ma(b)}b=D[a+60>>2];if(b){ma(b)}D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function _h(a){a=a|0;var b=0;D[a>>2]=4580;b=D[a+96>>2];if(b){ma(b)}b=D[a+84>>2];if(b){ma(b)}b=D[a+72>>2];if(b){ma(b)}b=D[a+60>>2];if(b){ma(b)}D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function Nc(a,b){var c=0,d=0;c=D[a+8>>2];a=D[a+12>>2];if((c|0)!=(a|0)){a=a-c>>2;d=a>>>0>1?a:1;a=0;while(1){if(D[D[(a<<2)+c>>2]+60>>2]==(b|0)){return a}a=a+1|0;if((d|0)!=(a|0)){continue}break}}return-1}function Te(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;Lc(a,b);a:{if((b|0)<0){break a}d=D[a+88>>2];c=D[a+84>>2];if(d-c>>2<=(b|0)){break a}b=c+(b<<2)|0;c=b+4|0;e=d-c|0;if((c|0)!=(d|0)){Ra(b,c,e)}D[a+88>>2]=b+e}}function be(a){a=a|0;var b=0;D[a>>2]=3016;b=D[a+96>>2];if(b){ma(b)}b=D[a+84>>2];if(b){ma(b)}b=D[a+72>>2];if(b){ma(b)}b=D[a+60>>2];if(b){ma(b)}D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function Zh(a){a=a|0;var b=0;D[a>>2]=4580;b=D[a+96>>2];if(b){ma(b)}b=D[a+84>>2];if(b){ma(b)}b=D[a+72>>2];if(b){ma(b)}b=D[a+60>>2];if(b){ma(b)}D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function Qc(a,b,c){var d=0,e=0;d=a+4|0;a=bb(a,b);if((d|0)==(a|0)){return 0}b=D[a+32>>2];d=D[a+28>>2];if((b|0)!=(d|0)){Rb(c,b-d|0);e=Sb(c);c=D[a+28>>2];oa(e,c,D[a+32>>2]-c|0)}return(b|0)!=(d|0)}function Hd(a){D[a+40>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=10032;D[a+12>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;D[a+32>>2]=0;C[a+36>>1]=0;D[a+44>>2]=0;D[a>>2]=8080;return a}function mb(a){D[a+8>>2]=0;D[a+12>>2]=0;D[a>>2]=0;D[a+40>>2]=0;D[a+44>>2]=0;D[a+28>>2]=9;B[a+24|0]=1;D[a+56>>2]=-1;D[a+60>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+48>>2]=0;D[a+52>>2]=0;return a}function ec(a,b,c){var d=0;a:{if(b){b=0;if(!jd(1,c,a)){break a}}B[a+36|0]=1;D[a+32>>2]=0;b=D[a+16>>2];c=b+D[a>>2]|0;D[a+24>>2]=c;d=a;a=D[a+8>>2];D[d+28>>2]=c+(a-b|0);b=1}return b}function le(a,b){a=a|0;b=b|0;var c=0,d=0;d=D[a+16>>2];c=0;a:{if(D[a+20>>2]-d>>2<=(b|0)){break a}b=D[(b<<2)+d>>2];c=0;if((b|0)<0){break a}c=eb(D[D[a+36>>2]+(b<<2)>>2])}return c|0}function _a(a){var b=0,c=0;b=D[2909];c=a+3&-4;a=b+c|0;a:{if(a>>>0<=b>>>0?c:0){break a}if(a>>>0>ca()<<16>>>0){if(!(Z(a|0)|0)){break a}}D[2909]=a;return b}D[2935]=48;return-1}function Jf(){var a=0;a=na(40);D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=a+4;D[a+24>>2]=0;D[a+28>>2]=0;D[a+12>>2]=a+16;D[a+16>>2]=0;D[a+20>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;return a|0}function Ae(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=D[a+8>>2];a:{if(B[d+24|0]<=0){break a}if(!Zb(d,D[b+4>>2]-D[b>>2]>>2)){break a}e=ba[D[D[a>>2]+32>>2]](a,b,c)|0}return e|0}function sb(a,b,c){var d=0,e=0;d=$-16|0;$=d;a:{if(c>>>0<=10){B[a+11|0]=c;gb(a,b,c);B[d+15|0]=0;B[a+c|0]=E[d+15|0];break a}e=a;a=E[a+11|0];Ec(e,10,c-10|0,a,a,c,b)}$=d+16|0}function Ph(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;D[a+4>>2]=b;b=D[D[D[b+4>>2]+8>>2]+(c<<2)>>2];D[a+12>>2]=c;D[a+8>>2]=b;a=D[a+8>>2];if(E[a+24|0]==3){d=D[a+28>>2]==9}return d|0}function Pg(a){a=a|0;var b=0;D[a+8>>2]=9556;D[a>>2]=9392;b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=9372;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}return a|0}function Kg(a){a=a|0;var b=0;D[a+8>>2]=8624;D[a>>2]=9684;b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=8876;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}return a|0}function Fa(a,b){if(b){Fa(a,D[b>>2]);Fa(a,D[b+4>>2]);a=D[b+28>>2];D[b+28>>2]=0;if(a){Fa(a+12|0,D[a+16>>2]);Ea(a,D[a+4>>2]);ma(a)}if(B[b+27|0]<0){ma(D[b+16>>2])}ma(b)}}function Bh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;D[a+4>>2]=b;d=D[D[D[b+4>>2]+8>>2]+(c<<2)>>2];D[a+12>>2]=c;D[a+8>>2]=d;return D[D[D[D[b+4>>2]+8>>2]+(c<<2)>>2]+28>>2]==9|0}function Og(a){a=a|0;var b=0;D[a+8>>2]=9556;D[a>>2]=9392;b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=9372;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}ma(a)}function Ig(a){a=a|0;var b=0;D[a+8>>2]=8624;D[a>>2]=9684;b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=8876;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}ma(a)}function Fc(a,b){var c=0,d=0,e=0,f=0;D[a>>2]=11356;D[a>>2]=11468;c=Ba(b);d=na(c+13|0);D[d+8>>2]=0;D[d+4>>2]=c;D[d>>2]=c;e=a,f=oa(d+12|0,b,c+1|0),D[e+4>>2]=f;return a}function Qe(a,b){a=a|0;b=b|0;var c=0;a:{if(!(ba[D[D[a>>2]+36>>2]](a,b)|0)){break a}if(!(ba[D[D[a>>2]+40>>2]](a,b)|0)){break a}c=ba[D[D[a>>2]+44>>2]](a)|0}return c|0}function Xd(a){a=a|0;var b=0;a:{if(!D[a- -64>>2]|!D[a+68>>2]|(!D[a+44>>2]|!D[a+48>>2])){break a}if(!D[a+52>>2]|!D[a+56>>2]){break a}b=D[a+92>>2]!=-1}return b|0}function uc(a){a=a|0;var b=0;D[a>>2]=2136;b=D[a+20>>2];D[a+20>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=1920;b=D[a+16>>2];D[a+16>>2]=0;if(b){Aa(b)}return a|0}function ei(a,b){a=a|0;b=b|0;var c=0;b=D[b+88>>2];if(!(!b|D[b>>2]!=2)){c=a;a=D[b+8>>2];D[c+4>>2]=E[a|0]|E[a+1|0]<<8|(E[a+2|0]<<16|E[a+3|0]<<24);c=1}return c|0}function Rd(a){a=a|0;var b=0;a:{if(!D[a+48>>2]|!D[a+52>>2]|(!D[a+28>>2]|!D[a+32>>2])){break a}if(!D[a+36>>2]|!D[a+40>>2]){break a}b=D[a+76>>2]!=-1}return b|0}function tc(a){a=a|0;var b=0;D[a>>2]=2136;b=D[a+20>>2];D[a+20>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=1920;b=D[a+16>>2];D[a+16>>2]=0;if(b){Aa(b)}ma(a)}function Qg(a){a=a|0;var b=0;D[a>>2]=9556;b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=9372;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}return a|0}function Bd(a){a=a|0;var b=0;D[a>>2]=8624;b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=8876;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}return a|0}function ug(){var a=0,b=0;b=na(40);D[b>>2]=-1;a=b+8|0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;return b|0}function bh(a){a=a|0;var b=0;D[a>>2]=8624;b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=8876;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}ma(a)}function Lg(a){a=a|0;var b=0;D[a>>2]=9556;b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=9372;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}ma(a)}function La(a){D[a+8>>2]=0;D[a+12>>2]=0;D[a>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+32>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;C[a+38>>1]=0;B[a+36|0]=0;return a}function Ie(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(Na(a,D[b+8>>2],f)){Bc(b,c,d,e);return}a=D[a+8>>2];ba[D[D[a>>2]+20>>2]](a,b,c,d,e,f)}function Ah(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(E[D[a+4>>2]+36|0]>=2){b=0;if(!(ba[D[D[a>>2]+52>>2]](a)|0)){break a}}b=gd(a+24|0,D[a+16>>2])}return b|0}function eg(){var a=0;a=Pc(na(108));D[a+84>>2]=0;D[a+88>>2]=0;D[a>>2]=10240;D[a+92>>2]=0;D[a+96>>2]=0;D[a+100>>2]=0;D[a+104>>2]=0;return a|0}function Oc(a,b){var c=0;c=-1;a:{if((b|0)==-1|(b|0)>4){break a}b=J(b,12)+a|0;a=D[b+20>>2];if((D[b+24>>2]-a|0)<=0){break a}c=D[a>>2]}return c}function $b(a,b,c,d,e,f,g){D[a>>2]=0;D[a+56>>2]=b;D[a+48>>2]=0;D[a+52>>2]=0;D[a+40>>2]=f;D[a+44>>2]=g;B[a+32|0]=e;D[a+28>>2]=d;B[a+24|0]=c}function Oh(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(E[D[a+4>>2]+36|0]>=2){b=0;if(!sc(a+24|0,eb(a),c)){break a}}b=gd(a+24|0,D[a+16>>2])}return b|0}function We(a){a=a|0;var b=0;D[a>>2]=10240;b=D[a+96>>2];if(b){D[a+100>>2]=b;ma(b)}b=D[a+84>>2];if(b){D[a+88>>2]=b;ma(b)}return ub(a)|0}function Sb(a){var b=0;if(E[a+11|0]>>>7|0){b=D[a+4>>2]}else{b=E[a+11|0]}if(!b){qc(1222);T()}if(E[a+11|0]>>>7|0){a=D[a>>2]}return a}function Ve(a){a=a|0;var b=0;D[a>>2]=10240;b=D[a+96>>2];if(b){D[a+100>>2]=b;ma(b)}b=D[a+84>>2];if(b){D[a+88>>2]=b;ma(b)}ma(ub(a))}function _d(a){a=a|0;var b=0;D[a>>2]=3264;b=D[a+76>>2];if(b){ma(b)}D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function Wh(a){a=a|0;var b=0;D[a>>2]=4816;b=D[a+76>>2];if(b){ma(b)}D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function Ea(a,b){if(b){Ea(a,D[b>>2]);Ea(a,D[b+4>>2]);a=D[b+28>>2];if(a){D[b+32>>2]=a;ma(a)}if(B[b+27|0]<0){ma(D[b+16>>2])}ma(b)}}function Sf(){var a=0;a=na(28);D[a>>2]=0;D[a+4>>2]=0;D[a+24>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0;return a|0}function Re(a){a=a|0;var b=0;D[a>>2]=1776;b=D[a+16>>2];if(b){D[a+20>>2]=b;ma(b)}b=D[a+4>>2];if(b){D[a+8>>2]=b;ma(b)}return a|0}function bg(){var a=0,b=0;a=na(24);D[a+4>>2]=0;D[a+8>>2]=0;b=a+16|0;D[b>>2]=0;D[b+4>>2]=0;D[a>>2]=a+4;D[a+12>>2]=b;return a|0}function Me(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Na(a,D[b+8>>2],0)){Cc(b,c,d);return}a=D[a+8>>2];ba[D[D[a>>2]+28>>2]](a,b,c,d)}function Zd(a){a=a|0;var b=0;D[a>>2]=3264;b=D[a+76>>2];if(b){ma(b)}D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function Vh(a){a=a|0;var b=0;D[a>>2]=4816;b=D[a+76>>2];if(b){ma(b)}D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function na(a){var b=0;a=a?a:1;a:{while(1){b=Ic(a);if(b){break a}b=D[3060];if(b){ba[b|0]();continue}break}W();T()}return b}function kb(a,b){if(b){kb(a,D[b>>2]);kb(a,D[b+4>>2]);if(B[b+39|0]<0){ma(D[b+28>>2])}if(B[b+27|0]<0){ma(D[b+16>>2])}ma(b)}}function Ac(a){a=a|0;var b=0,c=0;D[a>>2]=11468;b=D[a+4>>2]-12|0;c=D[b+8>>2]-1|0;D[b+8>>2]=c;if((c|0)<0){ma(b)}return a|0}function jg(){var a=0;a=na(24);D[a+8>>2]=0;D[a+12>>2]=0;D[a+4>>2]=-1;D[a>>2]=1624;D[a+16>>2]=0;D[a+20>>2]=0;return a|0}function yc(a,b,c){a=a|0;b=b|0;c=c|0;D[a+4>>2]=b;b=D[D[D[b+4>>2]+8>>2]+(c<<2)>>2];D[a+12>>2]=c;D[a+8>>2]=b;return 1}function nc(a){a=a|0;var b=0;if(!(!D[a+60>>2]|!D[a+44>>2]|(!D[a+48>>2]|!D[a+52>>2]))){b=D[a+56>>2]!=0}return b|0}function ci(a){a=a|0;var b=0;D[a>>2]=3500;D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function Th(a){a=a|0;var b=0;D[a>>2]=5040;D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function jf(a){a=a|0;if(a){if(B[a+39|0]<0){ma(D[a+28>>2])}Yb(a+12|0,D[a+16>>2]);kb(a,D[a+4>>2]);ma(a)}}function ah(a){a=a|0;var b=0;D[a>>2]=8876;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}return a|0}function Sg(a){a=a|0;var b=0;D[a>>2]=9372;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}return a|0}function qb(a){a=a|0;var b=0;if(!(!D[a+52>>2]|(!D[a+44>>2]|!D[a+48>>2]))){b=D[a+56>>2]!=0}return b|0}function mc(a,b){a=a|0;b=b|0;var c=0;if(!(D[b+56>>2]|!b|E[b+24|0]!=3)){D[a+60>>2]=b;c=1}return c|0}function bi(a){a=a|0;var b=0;D[a>>2]=3500;D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function Sh(a){a=a|0;var b=0;D[a>>2]=5040;D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function vg(a,b,c){a=a|0;b=b|0;c=c|0;D[a+16>>2]=0;D[a+20>>2]=0;D[a>>2]=b;D[a+8>>2]=c;D[a+12>>2]=0}function _g(a){a=a|0;var b=0;D[a>>2]=8876;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}ma(a)}function Wd(a,b){a=a|0;b=b|0;var c=0;if(!(D[b+56>>2]|E[b+24|0]!=3)){D[a- -64>>2]=b;c=1}return c|0}function Rg(a){a=a|0;var b=0;D[a>>2]=9372;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}ma(a)}function Qd(a,b){a=a|0;b=b|0;var c=0;if(!(D[b+56>>2]|E[b+24|0]!=3)){D[a+48>>2]=b;c=1}return c|0}function He(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(Na(a,D[b+8>>2],f)){Bc(b,c,d,e)}}function sa(){var a=0;a=Y(4)|0;D[a>>2]=11356;D[a>>2]=11316;D[a>>2]=11336;X(a|0,11448,14);T()}function we(a){a=a|0;var b=0;D[a>>2]=1920;b=D[a+16>>2];D[a+16>>2]=0;if(b){Aa(b)}return a|0}function fe(a){a=a|0;var b=0;D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function yh(a){a=a|0;var b=0;b=eb(a);return nd(a+24|0,b?b:D[a+8>>2],D[D[a+4>>2]+32>>2])|0}function Jg(a){a=a|0;var b=0;D[a>>2]=1624;b=D[a+8>>2];if(b){D[a+12>>2]=b;ma(b)}return a|0}function ve(a){a=a|0;var b=0;D[a>>2]=1920;b=D[a+16>>2];D[a+16>>2]=0;if(b){Aa(b)}ma(a)}function Ob(a){a=a|0;var b=0;D[a>>2]=2960;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function Bg(a){a=a|0;var b=0;D[a>>2]=1624;b=D[a+8>>2];if(b){D[a+12>>2]=b;ma(b)}ma(a)}function ke(a,b){a=a|0;b=b|0;return ba[D[D[a>>2]+48>>2]](a,D[b+4>>2]-D[b>>2]>>2)|0}function Yb(a,b){if(b){Yb(a,D[b>>2]);Yb(a,D[b+4>>2]);kb(b+20|0,D[b+24>>2]);ma(b)}}function th(a){a=a|0;if(!D[a+44>>2]){return 0}return ba[D[D[a>>2]+48>>2]](a)|0}function tg(a){a=a|0;var b=0;if(a){b=D[a+8>>2];if(b){D[a+12>>2]=b;ma(b)}ma(a)}}function ii(a){var b=0;while(1){if(a){a=a-1&a;b=b+1|0;continue}break}return b}function Ne(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(Na(a,D[b+8>>2],0)){Cc(b,c,d)}}function rh(a,b){a=a|0;b=b|0;a=D[a+48>>2];return ba[D[D[a>>2]+20>>2]](a,b)|0}function kh(a,b){a=a|0;b=b|0;a=D[a+48>>2];return ba[D[D[a>>2]+12>>2]](a,b)|0}function jh(a,b){a=a|0;b=b|0;a=D[a+48>>2];return ba[D[D[a>>2]+16>>2]](a,b)|0}function ab(){var a=0;a=na(12);D[a>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;return a|0}function $a(a){a=a|0;var b=0;if(a){b=D[a>>2];if(b){D[a+4>>2]=b;ma(b)}ma(a)}}function ji(a){var b=0;b=a&31;a=0-a&31;return(-1>>>b&-2)<<b|(-1<<a&-2)>>>a}function hf(a,b,c){a=a|0;b=b|0;c=c|0;D[a+32>>2]=c;D[a+28>>2]=b;return 1}function ag(a){a=a|0;if(a){Fa(a+12|0,D[a+16>>2]);Ea(a,D[a+4>>2]);ma(a)}}function Lb(a,b){a=a|0;b=b|0;if(b>>>0<=1){D[a+28>>2]=b}return b>>>0<2|0}function Cg(a,b){a=a|0;b=b|0;B[b+84|0]=1;D[b+72>>2]=D[b+68>>2];return 1}function ph(a){a=a|0;a=D[a+48>>2];return ba[D[D[a>>2]+24>>2]](a)|0}function oh(a){a=a|0;a=D[a+48>>2];return ba[D[D[a>>2]+28>>2]](a)|0}function lh(a){a=a|0;a=D[a+48>>2];return ba[D[D[a>>2]+36>>2]](a)|0}function gg(){var a=0;a=na(8);D[a+4>>2]=-1;D[a>>2]=1032;return a|0}function Df(a,b,c){a=a|0;b=b|0;c=c|0;return D[D[b+8>>2]+(c<<2)>>2]}function xh(a,b){a=a|0;b=b|0;return sd(a+24|0,eb(a),D[a+8>>2])|0}function Nh(a,b){a=a|0;b=b|0;return xc(a+24|0,eb(a),D[a+8>>2])|0}function zh(a,b){a=a|0;b=b|0;return ba[D[D[a>>2]+56>>2]](a,b)|0}function fd(a,b){a=a|0;b=b|0;return ba[D[D[a>>2]+12>>2]](a,b)|0}function Zf(a){a=a|0;if(a){if(B[a+15|0]<0){ma(D[a+4>>2])}ma(a)}}function Ge(a){a=a|0;if(!a){return 0}return(Dc(a,11164)|0)!=0|0}function Be(a,b){a=a|0;b=b|0;D[a+12>>2]=-1;D[a+8>>2]=b;return 1}function qc(a){a=Fc(Y(8)|0,a);D[a>>2]=11568;X(a|0,11600,1);T()}function Od(a){a=Fc(Y(8)|0,a);D[a>>2]=11516;X(a|0,11548,1);T()}function ig(a,b){a=a|0;b=b|0;return K(H[D[a+8>>2]+(b<<2)>>2])}function Yf(a,b){a=a|0;b=b|0;return K(H[D[a>>2]+(b<<2)>>2])}function cg(a){a=a|0;return(D[a+100>>2]-D[a+96>>2]|0)/12|0}function _f(a){a=a|0;return(B[a+15|0]<0?D[a+4>>2]:a+4|0)|0}function Je(a,b){a=a|0;b=b|0;return D[D[a+4>>2]+(b<<2)>>2]}function bd(a,b){a=a|0;b=b|0;return D[D[a>>2]+(b<<2)>>2]}function Uf(a,b){a=a|0;b=b|0;return C[D[a>>2]+(b<<1)>>1]}function Tf(a,b){a=a|0;b=b|0;return F[D[a>>2]+(b<<1)>>1]}function Sd(a,b,c){a=a|0;b=b|0;c=c|0;return vc(a,b,c)|0}function Gf(a,b,c){a=a|0;b=b|0;c=c|0;return Oc(b,c)|0}function ki(a){if(a){return 31-M(a-1^a)|0}return 32}
- function Pc(a){D[a>>2]=10300;qa(a+4|0,0,80);return a}function ed(a){a=a|0;return D[a+12>>2]-D[a+8>>2]>>2}function xb(a){a=a|0;if(a){ba[D[D[a>>2]+4>>2]](a)}}function Wf(a,b){a=a|0;b=b|0;return B[D[a>>2]+b|0]}function Vf(a,b){a=a|0;b=b|0;return E[D[a>>2]+b|0]}function Ce(a){a=a|0;return D[a+8>>2]-D[a+4>>2]>>2}function Gd(a,b){a=a|0;b=b|0;D[a+4>>2]=b;return 1}function cd(a){a=a|0;return D[a+4>>2]-D[a>>2]>>1}function ac(a){a=a|0;return D[a+4>>2]-D[a>>2]>>2}function dd(a){a=a|0;return D[a+4>>2]-D[a>>2]|0}function ze(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function xg(a,b){a=a|0;b=b|0;return B[b+24|0]}function ge(a){a=a|0;return B[D[a+8>>2]+24|0]}function Mf(a,b){a=a|0;b=b|0;return D[b+8>>2]}function Bf(a,b){a=a|0;b=b|0;return D[b+4>>2]}function Kh(a){a=a|0;D[a>>2]=5928;return a|0}function Fh(a){a=a|0;D[a>>2]=6932;return a|0}function hg(a){a=a|0;return K(H[a+20>>2])}function Jh(a){a=a|0;D[a>>2]=5928;ma(a)}function Eh(a){a=a|0;D[a>>2]=6932;ma(a)}function qg(a){a=a|0;return D[a+88>>2]}function pg(a){a=a|0;return D[a+56>>2]}function mg(a){a=a|0;return D[a+40>>2]}function lg(a){a=a|0;return D[a+48>>2]}function kg(a){a=a|0;return D[a+60>>2]}function fb(a){a=a|0;return D[a+28>>2]}function bc(a){a=a|0;return D[a+80>>2]}function zc(a,b){a=a|0;b=b|0;return 1}function td(a){a=a|0;return D[a+8>>2]}function rc(a,b){a=a|0;b=b|0;return-1}function og(a){a=a|0;return B[a+24|0]}function ng(a){a=a|0;return E[a+32|0]}function Za(a){a=a|0;return D[a+4>>2]}function Td(a,b){a=a|0;b=b|0;return 6}function Lh(a,b){a=a|0;b=b|0;return 2}function Ka(a,b){a=a|0;b=b|0;return 0}function $f(a){a=a|0;return!D[a>>2]|0}function hd(a){a=a|0;return D[a>>2]}function gb(a,b,c){if(c){oa(a,b,c)}}function wg(){return La(na(40))|0}function sg(){return mb(na(64))|0}function fg(){return Pc(na(84))|0}function cc(a){a=a|0;if(a){ma(a)}}function Qb(a){a=a|0;Ac(a);ma(a)}function Fe(a){a=a|0;return 1161}function Ee(a){a=a|0;return 1235}function De(a){a=a|0;return 1201}function Qa(a){a=a|0;return a|0}function dh(a){a=a|0;ma(rd(a))}function ch(a){a=a|0;ma(pd(a))}function Se(a){a=a|0;ma(ub(a))}function wa(a){a=a|0;return 1}function pc(a){a=a|0;return 4}function oc(a){a=a|0;return 5}function Ya(a){a=a|0;return 0}function Ud(a){a=a|0;return 2}function Nb(a){a=a|0;return 6}function Ih(a){a=a|0;return 3}function va(){qc(1154);T()}function pa(){Od(1154);T()}function Ja(a){a=a|0;ma(a)}function Ca(){Od(1222);T()}function Sa(a){a=a|0;T()}function bf(){return 10}function af(){return 11}function $e(){return 12}function wb(){return-1}function vb(){return 1}function lb(){return 0}function gf(){return 5}function ff(){return 6}function ef(){return 7}function df(){return 8}function cf(){return 9}function _e(){return-2}function _c(){return 4}function Ze(){return-3}function Ye(){return-4}function Xe(){return-5}function Xb(){return 2}function $c(){return 3}function Pe(){W();T()}function Hc(a){a=a|0}function Yd(){}
- // EMSCRIPTEN_END_FUNCS
- e=E;p(ka);var ba=c([null,Ac,Qa,Ja,Ud,ei,fh,Xf,xc,te,sc,dg,Td,Lh,Qa,Jg,Bg,wa,uh,ih,gh,sd,$g,nd,Td,xg,Re,Sa,hf,Zc,Qe,Je,Ce,fb,Ka,Pe,zc,wa,we,ve,yc,Be,Ae,ze,zc,ye,xe,ne,me,ue,se,le,re,qe,pe,oe,uc,tc,yc,ke,je,vc,ie,ge,he,fe,Ob,wa,Za,qb,Ya,rc,Ka,Ya,wa,ee,de,Sa,Sa,ce,be,pc,qb,ae,$d,_d,Zd,oc,nc,wa,Ka,mc,lc,di,ci,bi,Nb,Xd,wa,Ka,Wd,Vd,ai,Qa,Ja,Lb,fb,Mb,Sa,Ob,wa,qb,$h,Sa,_h,Zh,pc,qb,Yh,Xh,Wh,Vh,oc,nc,wa,Ka,mc,lc,Uh,Th,Sh,Nb,Xd,wa,Ka,Wd,Vd,Rh,Qa,Ja,Lb,fb,Kb,Sa,Ob,Ya,wa,Qh,uc,tc,Ph,Oh,Sd,Mh,Ud,Nh,Kh,Jh,Nb,Za,Rd,wa,Ka,Qd,wa,Ih,Pd,Hh,Qa,Ja,Lb,fb,Mb,Fh,Eh,Nb,Rd,wa,Ka,Qd,Pd,Dh,Qa,Ja,Lb,fb,Kb,Qa,Ja,Ya,wa,Ya,rc,Ka,Gh,Ch,wh,vh,Bh,Ah,Sd,zh,yh,xh,sh,Sa,wa,wa,th,zg,yg,wa,Ya,Ka,Ka,nh,mh,qh,rh,oh,lh,kh,jh,ph,rd,dh,Gd,Fd,Ed,Dd,hh,wa,Za,td,pd,ch,Gd,Fd,Ed,Dd,eh,wa,Za,td,Bd,bh,Cd,ah,_g,Xg,Wg,Vg,Ug,Yg,Tg,Zg,Sg,Rg,Pg,Og,Ng,Mg,Qg,Lg,Kg,Ig,Hg,Gg,Dg,Eg,Fg,Qa,Ja,Cg,Ag,Sa,Ya,wa,We,Ve,Ue,Te,ub,Se,Mc,Lc,Qa,Ja,Hc,Hc,Oe,He,Ke,Ne,Ja,Ie,Le,Me,Ja,Ee,Ja,De,Ja,Fe,Qb,Za,Qb,Qb]);function ca(){return A.byteLength/65536|0}function ha(ia){ia=ia|0;var da=ca()|0;var ea=da+ia|0;if(da<ea&&ea<65536){var fa=new ArrayBuffer(J(ea,65536));var ga=new Int8Array(fa);ga.set(B);B=new Int8Array(fa);C=new Int16Array(fa);D=new Int32Array(fa);E=new Uint8Array(fa);F=new Uint16Array(fa);G=new Uint32Array(fa);H=new Float32Array(fa);I=new Float64Array(fa);A=fa;z.buffer=A;e=E}return da}return{"g":Yd,"h":ba,"i":cc,"j":wg,"k":vg,"l":cc,"m":ug,"n":hd,"o":tg,"p":sg,"q":cc,"r":rg,"s":bc,"t":qg,"u":pg,"v":fb,"w":og,"x":ng,"y":mg,"z":lg,"A":kg,"B":Aa,"C":jg,"D":fd,"E":Za,"F":ig,"G":hg,"H":xb,"I":gg,"J":fd,"K":Za,"L":xb,"M":fg,"N":ed,"O":bc,"P":xb,"Q":eg,"R":cg,"S":ed,"T":bc,"U":xb,"V":bg,"W":ag,"X":hd,"Y":$f,"Z":_f,"_":Zf,"$":ab,"aa":Yf,"ba":ac,"ca":$a,"da":ab,"ea":Wf,"fa":dd,"ga":$a,"ha":ab,"ia":Vf,"ja":dd,"ka":$a,"la":ab,"ma":Uf,"na":cd,"oa":$a,"pa":ab,"qa":Tf,"ra":cd,"sa":$a,"ta":ab,"ua":bd,"va":ac,"wa":$a,"xa":ab,"ya":bd,"za":ac,"Aa":$a,"Ba":Sf,"Ca":Rf,"Da":Qf,"Ea":Pf,"Fa":Of,"Ga":Nf,"Ha":Mf,"Ia":Lf,"Ja":Kf,"Ka":Jf,"La":If,"Ma":Hf,"Na":Gf,"Oa":Ff,"Pa":Ef,"Qa":Df,"Ra":Cf,"Sa":Bf,"Ta":Af,"Ua":zf,"Va":yf,"Wa":xf,"Xa":wf,"Ya":vf,"Za":uf,"_a":ad,"$a":tf,"ab":sf,"bb":rf,"cb":qf,"db":ad,"eb":pf,"fb":of,"gb":nf,"hb":mf,"ib":lf,"jb":kf,"kb":jf,"lb":wb,"mb":lb,"nb":vb,"ob":Xb,"pb":wb,"qb":lb,"rb":vb,"sb":Xb,"tb":$c,"ub":_c,"vb":wb,"wb":lb,"xb":vb,"yb":lb,"zb":vb,"Ab":Xb,"Bb":$c,"Cb":_c,"Db":gf,"Eb":ff,"Fb":ef,"Gb":df,"Hb":cf,"Ib":bf,"Jb":af,"Kb":$e,"Lb":lb,"Mb":wb,"Nb":_e,"Ob":Ze,"Pb":Ye,"Qb":Xe,"Rb":Ic,"Sb":ma,"Tb":Ge}}return ja(la)}
- // EMSCRIPTEN_END_ASM
- )(asmLibraryArg)},instantiate:function(binary,info){return{then:function(ok){var module=new WebAssembly.Module(binary);ok({"instance":new WebAssembly.Instance(module)})}}},RuntimeError:Error};wasmBinary=[];if(typeof WebAssembly!="object"){abort("no native wasm support detected")}var wasmMemory;var ABORT=false;var EXITSTATUS;function assert(condition,text){if(!condition){abort(text)}}var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(heapOrArray,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}else{var str="";while(idx<endPtr){var u0=heapOrArray[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heapOrArray[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heapOrArray[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u0=(u0&7)<<18|u1<<12|u2<<6|heapOrArray[idx++]&63}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,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){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}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 len+=4}return len}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_MEMORY/65536,"maximum":2147483648/65536})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function keepRuntimeAlive(){return noExitRuntime}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 initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}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)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}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()}}}function abort(what){{if(Module["onAbort"]){Module["onAbort"](what)}}what="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith("file://")}var wasmBinaryFile;wasmBinaryFile="draco_decoder_gltf.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}var binary=tryParseAsDataURI(file);if(binary){return binary}if(readBinary){return readBinary(file)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch=="function"&&!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary(wasmBinaryFile)})}else{if(readAsync){return new Promise(function(resolve,reject){readAsync(wasmBinaryFile,function(response){resolve(new Uint8Array(response))},reject)})}}}return Promise.resolve().then(function(){return getBinary(wasmBinaryFile)})}function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmTable=Module["asm"]["h"];addOnInit(Module["asm"]["g"]);removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiationResult,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiationResult)})})}else{return instantiateArrayBuffer(receiveInstantiationResult)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync().catch(readyPromiseReject);return{}}function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback(Module);continue}var func=callback.func;if(typeof func=="number"){if(callback.arg===undefined){getWasmTableEntry(func)()}else{getWasmTableEntry(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}var wasmTableMirror=[];function getWasmTableEntry(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func}function ___cxa_allocate_exception(size){return _malloc(size+24)+24}function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-24;this.set_type=function(type){HEAPU32[this.ptr+4>>2]=type};this.get_type=function(){return HEAPU32[this.ptr+4>>2]};this.set_destructor=function(destructor){HEAPU32[this.ptr+8>>2]=destructor};this.get_destructor=function(){return HEAPU32[this.ptr+8>>2]};this.set_refcount=function(refcount){HEAP32[this.ptr>>2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+12>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+12>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+13>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+13>>0]!=0};this.init=function(type,destructor){this.set_adjusted_ptr(0);this.set_type(type);this.set_destructor(destructor);this.set_refcount(0);this.set_caught(false);this.set_rethrown(false)};this.add_ref=function(){var value=HEAP32[this.ptr>>2];HEAP32[this.ptr>>2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr>>2];HEAP32[this.ptr>>2]=prev-1;return prev===1};this.set_adjusted_ptr=function(adjustedPtr){HEAPU32[this.ptr+16>>2]=adjustedPtr};this.get_adjusted_ptr=function(){return HEAPU32[this.ptr+16>>2]};this.get_exception_ptr=function(){var isPointer=___cxa_is_pointer_type(this.get_type());if(isPointer){return HEAPU32[this.excPtr>>2]}var adjusted=this.get_adjusted_ptr();if(adjusted!==0)return adjusted;return this.excPtr}}var exceptionLast=0;var uncaughtExceptionCount=0;function ___cxa_throw(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;uncaughtExceptionCount++;throw ptr}function _abort(){abort("")}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function getHeapMax(){return 2147483648}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){var oldSize=HEAPU8.length;requestedSize=requestedSize>>>0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}let alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}var ASSERTIONS=false;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}function intArrayToString(array){var ret=[];for(var i=0;i<array.length;i++){var chr=array[i];if(chr>255){if(ASSERTIONS){assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+") at offset "+i+" not in 0x00-0xFF.")}chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}var decodeBase64=typeof atob=="function"?atob:function(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1);if(enc3!==64){output=output+String.fromCharCode(chr2)}if(enc4!==64){output=output+String.fromCharCode(chr3)}}while(i<input.length);return output};function intArrayFromBase64(s){if(typeof ENVIRONMENT_IS_NODE=="boolean"&&ENVIRONMENT_IS_NODE){var buf=Buffer.from(s,"base64");return new Uint8Array(buf["buffer"],buf["byteOffset"],buf["byteLength"])}try{var decoded=decodeBase64(s);var bytes=new Uint8Array(decoded.length);for(var i=0;i<decoded.length;++i){bytes[i]=decoded.charCodeAt(i)}return bytes}catch(_){throw new Error("Converting base64 string to bytes failed.")}}function tryParseAsDataURI(filename){if(!isDataURI(filename)){return}return intArrayFromBase64(filename.slice(dataURIPrefix.length))}var asmLibraryArg={"d":___cxa_allocate_exception,"c":___cxa_throw,"b":_abort,"f":_emscripten_memcpy_big,"e":_emscripten_resize_heap,"a":wasmMemory};var asm=createWasm();var ___wasm_call_ctors=Module["___wasm_call_ctors"]=function(){return(___wasm_call_ctors=Module["___wasm_call_ctors"]=Module["asm"]["g"]).apply(null,arguments)};var _emscripten_bind_VoidPtr___destroy___0=Module["_emscripten_bind_VoidPtr___destroy___0"]=function(){return(_emscripten_bind_VoidPtr___destroy___0=Module["_emscripten_bind_VoidPtr___destroy___0"]=Module["asm"]["i"]).apply(null,arguments)};var _emscripten_bind_DecoderBuffer_DecoderBuffer_0=Module["_emscripten_bind_DecoderBuffer_DecoderBuffer_0"]=function(){return(_emscripten_bind_DecoderBuffer_DecoderBuffer_0=Module["_emscripten_bind_DecoderBuffer_DecoderBuffer_0"]=Module["asm"]["j"]).apply(null,arguments)};var _emscripten_bind_DecoderBuffer_Init_2=Module["_emscripten_bind_DecoderBuffer_Init_2"]=function(){return(_emscripten_bind_DecoderBuffer_Init_2=Module["_emscripten_bind_DecoderBuffer_Init_2"]=Module["asm"]["k"]).apply(null,arguments)};var _emscripten_bind_DecoderBuffer___destroy___0=Module["_emscripten_bind_DecoderBuffer___destroy___0"]=function(){return(_emscripten_bind_DecoderBuffer___destroy___0=Module["_emscripten_bind_DecoderBuffer___destroy___0"]=Module["asm"]["l"]).apply(null,arguments)};var _emscripten_bind_AttributeTransformData_AttributeTransformData_0=Module["_emscripten_bind_AttributeTransformData_AttributeTransformData_0"]=function(){return(_emscripten_bind_AttributeTransformData_AttributeTransformData_0=Module["_emscripten_bind_AttributeTransformData_AttributeTransformData_0"]=Module["asm"]["m"]).apply(null,arguments)};var _emscripten_bind_AttributeTransformData_transform_type_0=Module["_emscripten_bind_AttributeTransformData_transform_type_0"]=function(){return(_emscripten_bind_AttributeTransformData_transform_type_0=Module["_emscripten_bind_AttributeTransformData_transform_type_0"]=Module["asm"]["n"]).apply(null,arguments)};var _emscripten_bind_AttributeTransformData___destroy___0=Module["_emscripten_bind_AttributeTransformData___destroy___0"]=function(){return(_emscripten_bind_AttributeTransformData___destroy___0=Module["_emscripten_bind_AttributeTransformData___destroy___0"]=Module["asm"]["o"]).apply(null,arguments)};var _emscripten_bind_GeometryAttribute_GeometryAttribute_0=Module["_emscripten_bind_GeometryAttribute_GeometryAttribute_0"]=function(){return(_emscripten_bind_GeometryAttribute_GeometryAttribute_0=Module["_emscripten_bind_GeometryAttribute_GeometryAttribute_0"]=Module["asm"]["p"]).apply(null,arguments)};var _emscripten_bind_GeometryAttribute___destroy___0=Module["_emscripten_bind_GeometryAttribute___destroy___0"]=function(){return(_emscripten_bind_GeometryAttribute___destroy___0=Module["_emscripten_bind_GeometryAttribute___destroy___0"]=Module["asm"]["q"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_PointAttribute_0=Module["_emscripten_bind_PointAttribute_PointAttribute_0"]=function(){return(_emscripten_bind_PointAttribute_PointAttribute_0=Module["_emscripten_bind_PointAttribute_PointAttribute_0"]=Module["asm"]["r"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_size_0=Module["_emscripten_bind_PointAttribute_size_0"]=function(){return(_emscripten_bind_PointAttribute_size_0=Module["_emscripten_bind_PointAttribute_size_0"]=Module["asm"]["s"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_GetAttributeTransformData_0=Module["_emscripten_bind_PointAttribute_GetAttributeTransformData_0"]=function(){return(_emscripten_bind_PointAttribute_GetAttributeTransformData_0=Module["_emscripten_bind_PointAttribute_GetAttributeTransformData_0"]=Module["asm"]["t"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_attribute_type_0=Module["_emscripten_bind_PointAttribute_attribute_type_0"]=function(){return(_emscripten_bind_PointAttribute_attribute_type_0=Module["_emscripten_bind_PointAttribute_attribute_type_0"]=Module["asm"]["u"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_data_type_0=Module["_emscripten_bind_PointAttribute_data_type_0"]=function(){return(_emscripten_bind_PointAttribute_data_type_0=Module["_emscripten_bind_PointAttribute_data_type_0"]=Module["asm"]["v"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_num_components_0=Module["_emscripten_bind_PointAttribute_num_components_0"]=function(){return(_emscripten_bind_PointAttribute_num_components_0=Module["_emscripten_bind_PointAttribute_num_components_0"]=Module["asm"]["w"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_normalized_0=Module["_emscripten_bind_PointAttribute_normalized_0"]=function(){return(_emscripten_bind_PointAttribute_normalized_0=Module["_emscripten_bind_PointAttribute_normalized_0"]=Module["asm"]["x"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_byte_stride_0=Module["_emscripten_bind_PointAttribute_byte_stride_0"]=function(){return(_emscripten_bind_PointAttribute_byte_stride_0=Module["_emscripten_bind_PointAttribute_byte_stride_0"]=Module["asm"]["y"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_byte_offset_0=Module["_emscripten_bind_PointAttribute_byte_offset_0"]=function(){return(_emscripten_bind_PointAttribute_byte_offset_0=Module["_emscripten_bind_PointAttribute_byte_offset_0"]=Module["asm"]["z"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_unique_id_0=Module["_emscripten_bind_PointAttribute_unique_id_0"]=function(){return(_emscripten_bind_PointAttribute_unique_id_0=Module["_emscripten_bind_PointAttribute_unique_id_0"]=Module["asm"]["A"]).apply(null,arguments)};var _emscripten_bind_PointAttribute___destroy___0=Module["_emscripten_bind_PointAttribute___destroy___0"]=function(){return(_emscripten_bind_PointAttribute___destroy___0=Module["_emscripten_bind_PointAttribute___destroy___0"]=Module["asm"]["B"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=Module["_emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0"]=function(){return(_emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=Module["_emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0"]=Module["asm"]["C"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=Module["_emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1"]=function(){return(_emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=Module["_emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1"]=Module["asm"]["D"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=Module["_emscripten_bind_AttributeQuantizationTransform_quantization_bits_0"]=function(){return(_emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=Module["_emscripten_bind_AttributeQuantizationTransform_quantization_bits_0"]=Module["asm"]["E"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform_min_value_1=Module["_emscripten_bind_AttributeQuantizationTransform_min_value_1"]=function(){return(_emscripten_bind_AttributeQuantizationTransform_min_value_1=Module["_emscripten_bind_AttributeQuantizationTransform_min_value_1"]=Module["asm"]["F"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform_range_0=Module["_emscripten_bind_AttributeQuantizationTransform_range_0"]=function(){return(_emscripten_bind_AttributeQuantizationTransform_range_0=Module["_emscripten_bind_AttributeQuantizationTransform_range_0"]=Module["asm"]["G"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform___destroy___0=Module["_emscripten_bind_AttributeQuantizationTransform___destroy___0"]=function(){return(_emscripten_bind_AttributeQuantizationTransform___destroy___0=Module["_emscripten_bind_AttributeQuantizationTransform___destroy___0"]=Module["asm"]["H"]).apply(null,arguments)};var _emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=Module["_emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0"]=function(){return(_emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=Module["_emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0"]=Module["asm"]["I"]).apply(null,arguments)};var _emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=Module["_emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1"]=function(){return(_emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=Module["_emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1"]=Module["asm"]["J"]).apply(null,arguments)};var _emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=Module["_emscripten_bind_AttributeOctahedronTransform_quantization_bits_0"]=function(){return(_emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=Module["_emscripten_bind_AttributeOctahedronTransform_quantization_bits_0"]=Module["asm"]["K"]).apply(null,arguments)};var _emscripten_bind_AttributeOctahedronTransform___destroy___0=Module["_emscripten_bind_AttributeOctahedronTransform___destroy___0"]=function(){return(_emscripten_bind_AttributeOctahedronTransform___destroy___0=Module["_emscripten_bind_AttributeOctahedronTransform___destroy___0"]=Module["asm"]["L"]).apply(null,arguments)};var _emscripten_bind_PointCloud_PointCloud_0=Module["_emscripten_bind_PointCloud_PointCloud_0"]=function(){return(_emscripten_bind_PointCloud_PointCloud_0=Module["_emscripten_bind_PointCloud_PointCloud_0"]=Module["asm"]["M"]).apply(null,arguments)};var _emscripten_bind_PointCloud_num_attributes_0=Module["_emscripten_bind_PointCloud_num_attributes_0"]=function(){return(_emscripten_bind_PointCloud_num_attributes_0=Module["_emscripten_bind_PointCloud_num_attributes_0"]=Module["asm"]["N"]).apply(null,arguments)};var _emscripten_bind_PointCloud_num_points_0=Module["_emscripten_bind_PointCloud_num_points_0"]=function(){return(_emscripten_bind_PointCloud_num_points_0=Module["_emscripten_bind_PointCloud_num_points_0"]=Module["asm"]["O"]).apply(null,arguments)};var _emscripten_bind_PointCloud___destroy___0=Module["_emscripten_bind_PointCloud___destroy___0"]=function(){return(_emscripten_bind_PointCloud___destroy___0=Module["_emscripten_bind_PointCloud___destroy___0"]=Module["asm"]["P"]).apply(null,arguments)};var _emscripten_bind_Mesh_Mesh_0=Module["_emscripten_bind_Mesh_Mesh_0"]=function(){return(_emscripten_bind_Mesh_Mesh_0=Module["_emscripten_bind_Mesh_Mesh_0"]=Module["asm"]["Q"]).apply(null,arguments)};var _emscripten_bind_Mesh_num_faces_0=Module["_emscripten_bind_Mesh_num_faces_0"]=function(){return(_emscripten_bind_Mesh_num_faces_0=Module["_emscripten_bind_Mesh_num_faces_0"]=Module["asm"]["R"]).apply(null,arguments)};var _emscripten_bind_Mesh_num_attributes_0=Module["_emscripten_bind_Mesh_num_attributes_0"]=function(){return(_emscripten_bind_Mesh_num_attributes_0=Module["_emscripten_bind_Mesh_num_attributes_0"]=Module["asm"]["S"]).apply(null,arguments)};var _emscripten_bind_Mesh_num_points_0=Module["_emscripten_bind_Mesh_num_points_0"]=function(){return(_emscripten_bind_Mesh_num_points_0=Module["_emscripten_bind_Mesh_num_points_0"]=Module["asm"]["T"]).apply(null,arguments)};var _emscripten_bind_Mesh___destroy___0=Module["_emscripten_bind_Mesh___destroy___0"]=function(){return(_emscripten_bind_Mesh___destroy___0=Module["_emscripten_bind_Mesh___destroy___0"]=Module["asm"]["U"]).apply(null,arguments)};var _emscripten_bind_Metadata_Metadata_0=Module["_emscripten_bind_Metadata_Metadata_0"]=function(){return(_emscripten_bind_Metadata_Metadata_0=Module["_emscripten_bind_Metadata_Metadata_0"]=Module["asm"]["V"]).apply(null,arguments)};var _emscripten_bind_Metadata___destroy___0=Module["_emscripten_bind_Metadata___destroy___0"]=function(){return(_emscripten_bind_Metadata___destroy___0=Module["_emscripten_bind_Metadata___destroy___0"]=Module["asm"]["W"]).apply(null,arguments)};var _emscripten_bind_Status_code_0=Module["_emscripten_bind_Status_code_0"]=function(){return(_emscripten_bind_Status_code_0=Module["_emscripten_bind_Status_code_0"]=Module["asm"]["X"]).apply(null,arguments)};var _emscripten_bind_Status_ok_0=Module["_emscripten_bind_Status_ok_0"]=function(){return(_emscripten_bind_Status_ok_0=Module["_emscripten_bind_Status_ok_0"]=Module["asm"]["Y"]).apply(null,arguments)};var _emscripten_bind_Status_error_msg_0=Module["_emscripten_bind_Status_error_msg_0"]=function(){return(_emscripten_bind_Status_error_msg_0=Module["_emscripten_bind_Status_error_msg_0"]=Module["asm"]["Z"]).apply(null,arguments)};var _emscripten_bind_Status___destroy___0=Module["_emscripten_bind_Status___destroy___0"]=function(){return(_emscripten_bind_Status___destroy___0=Module["_emscripten_bind_Status___destroy___0"]=Module["asm"]["_"]).apply(null,arguments)};var _emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=Module["_emscripten_bind_DracoFloat32Array_DracoFloat32Array_0"]=function(){return(_emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=Module["_emscripten_bind_DracoFloat32Array_DracoFloat32Array_0"]=Module["asm"]["$"]).apply(null,arguments)};var _emscripten_bind_DracoFloat32Array_GetValue_1=Module["_emscripten_bind_DracoFloat32Array_GetValue_1"]=function(){return(_emscripten_bind_DracoFloat32Array_GetValue_1=Module["_emscripten_bind_DracoFloat32Array_GetValue_1"]=Module["asm"]["aa"]).apply(null,arguments)};var _emscripten_bind_DracoFloat32Array_size_0=Module["_emscripten_bind_DracoFloat32Array_size_0"]=function(){return(_emscripten_bind_DracoFloat32Array_size_0=Module["_emscripten_bind_DracoFloat32Array_size_0"]=Module["asm"]["ba"]).apply(null,arguments)};var _emscripten_bind_DracoFloat32Array___destroy___0=Module["_emscripten_bind_DracoFloat32Array___destroy___0"]=function(){return(_emscripten_bind_DracoFloat32Array___destroy___0=Module["_emscripten_bind_DracoFloat32Array___destroy___0"]=Module["asm"]["ca"]).apply(null,arguments)};var _emscripten_bind_DracoInt8Array_DracoInt8Array_0=Module["_emscripten_bind_DracoInt8Array_DracoInt8Array_0"]=function(){return(_emscripten_bind_DracoInt8Array_DracoInt8Array_0=Module["_emscripten_bind_DracoInt8Array_DracoInt8Array_0"]=Module["asm"]["da"]).apply(null,arguments)};var _emscripten_bind_DracoInt8Array_GetValue_1=Module["_emscripten_bind_DracoInt8Array_GetValue_1"]=function(){return(_emscripten_bind_DracoInt8Array_GetValue_1=Module["_emscripten_bind_DracoInt8Array_GetValue_1"]=Module["asm"]["ea"]).apply(null,arguments)};var _emscripten_bind_DracoInt8Array_size_0=Module["_emscripten_bind_DracoInt8Array_size_0"]=function(){return(_emscripten_bind_DracoInt8Array_size_0=Module["_emscripten_bind_DracoInt8Array_size_0"]=Module["asm"]["fa"]).apply(null,arguments)};var _emscripten_bind_DracoInt8Array___destroy___0=Module["_emscripten_bind_DracoInt8Array___destroy___0"]=function(){return(_emscripten_bind_DracoInt8Array___destroy___0=Module["_emscripten_bind_DracoInt8Array___destroy___0"]=Module["asm"]["ga"]).apply(null,arguments)};var _emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=Module["_emscripten_bind_DracoUInt8Array_DracoUInt8Array_0"]=function(){return(_emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=Module["_emscripten_bind_DracoUInt8Array_DracoUInt8Array_0"]=Module["asm"]["ha"]).apply(null,arguments)};var _emscripten_bind_DracoUInt8Array_GetValue_1=Module["_emscripten_bind_DracoUInt8Array_GetValue_1"]=function(){return(_emscripten_bind_DracoUInt8Array_GetValue_1=Module["_emscripten_bind_DracoUInt8Array_GetValue_1"]=Module["asm"]["ia"]).apply(null,arguments)};var _emscripten_bind_DracoUInt8Array_size_0=Module["_emscripten_bind_DracoUInt8Array_size_0"]=function(){return(_emscripten_bind_DracoUInt8Array_size_0=Module["_emscripten_bind_DracoUInt8Array_size_0"]=Module["asm"]["ja"]).apply(null,arguments)};var _emscripten_bind_DracoUInt8Array___destroy___0=Module["_emscripten_bind_DracoUInt8Array___destroy___0"]=function(){return(_emscripten_bind_DracoUInt8Array___destroy___0=Module["_emscripten_bind_DracoUInt8Array___destroy___0"]=Module["asm"]["ka"]).apply(null,arguments)};var _emscripten_bind_DracoInt16Array_DracoInt16Array_0=Module["_emscripten_bind_DracoInt16Array_DracoInt16Array_0"]=function(){return(_emscripten_bind_DracoInt16Array_DracoInt16Array_0=Module["_emscripten_bind_DracoInt16Array_DracoInt16Array_0"]=Module["asm"]["la"]).apply(null,arguments)};var _emscripten_bind_DracoInt16Array_GetValue_1=Module["_emscripten_bind_DracoInt16Array_GetValue_1"]=function(){return(_emscripten_bind_DracoInt16Array_GetValue_1=Module["_emscripten_bind_DracoInt16Array_GetValue_1"]=Module["asm"]["ma"]).apply(null,arguments)};var _emscripten_bind_DracoInt16Array_size_0=Module["_emscripten_bind_DracoInt16Array_size_0"]=function(){return(_emscripten_bind_DracoInt16Array_size_0=Module["_emscripten_bind_DracoInt16Array_size_0"]=Module["asm"]["na"]).apply(null,arguments)};var _emscripten_bind_DracoInt16Array___destroy___0=Module["_emscripten_bind_DracoInt16Array___destroy___0"]=function(){return(_emscripten_bind_DracoInt16Array___destroy___0=Module["_emscripten_bind_DracoInt16Array___destroy___0"]=Module["asm"]["oa"]).apply(null,arguments)};var _emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=Module["_emscripten_bind_DracoUInt16Array_DracoUInt16Array_0"]=function(){return(_emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=Module["_emscripten_bind_DracoUInt16Array_DracoUInt16Array_0"]=Module["asm"]["pa"]).apply(null,arguments)};var _emscripten_bind_DracoUInt16Array_GetValue_1=Module["_emscripten_bind_DracoUInt16Array_GetValue_1"]=function(){return(_emscripten_bind_DracoUInt16Array_GetValue_1=Module["_emscripten_bind_DracoUInt16Array_GetValue_1"]=Module["asm"]["qa"]).apply(null,arguments)};var _emscripten_bind_DracoUInt16Array_size_0=Module["_emscripten_bind_DracoUInt16Array_size_0"]=function(){return(_emscripten_bind_DracoUInt16Array_size_0=Module["_emscripten_bind_DracoUInt16Array_size_0"]=Module["asm"]["ra"]).apply(null,arguments)};var _emscripten_bind_DracoUInt16Array___destroy___0=Module["_emscripten_bind_DracoUInt16Array___destroy___0"]=function(){return(_emscripten_bind_DracoUInt16Array___destroy___0=Module["_emscripten_bind_DracoUInt16Array___destroy___0"]=Module["asm"]["sa"]).apply(null,arguments)};var _emscripten_bind_DracoInt32Array_DracoInt32Array_0=Module["_emscripten_bind_DracoInt32Array_DracoInt32Array_0"]=function(){return(_emscripten_bind_DracoInt32Array_DracoInt32Array_0=Module["_emscripten_bind_DracoInt32Array_DracoInt32Array_0"]=Module["asm"]["ta"]).apply(null,arguments)};var _emscripten_bind_DracoInt32Array_GetValue_1=Module["_emscripten_bind_DracoInt32Array_GetValue_1"]=function(){return(_emscripten_bind_DracoInt32Array_GetValue_1=Module["_emscripten_bind_DracoInt32Array_GetValue_1"]=Module["asm"]["ua"]).apply(null,arguments)};var _emscripten_bind_DracoInt32Array_size_0=Module["_emscripten_bind_DracoInt32Array_size_0"]=function(){return(_emscripten_bind_DracoInt32Array_size_0=Module["_emscripten_bind_DracoInt32Array_size_0"]=Module["asm"]["va"]).apply(null,arguments)};var _emscripten_bind_DracoInt32Array___destroy___0=Module["_emscripten_bind_DracoInt32Array___destroy___0"]=function(){return(_emscripten_bind_DracoInt32Array___destroy___0=Module["_emscripten_bind_DracoInt32Array___destroy___0"]=Module["asm"]["wa"]).apply(null,arguments)};var _emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=Module["_emscripten_bind_DracoUInt32Array_DracoUInt32Array_0"]=function(){return(_emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=Module["_emscripten_bind_DracoUInt32Array_DracoUInt32Array_0"]=Module["asm"]["xa"]).apply(null,arguments)};var _emscripten_bind_DracoUInt32Array_GetValue_1=Module["_emscripten_bind_DracoUInt32Array_GetValue_1"]=function(){return(_emscripten_bind_DracoUInt32Array_GetValue_1=Module["_emscripten_bind_DracoUInt32Array_GetValue_1"]=Module["asm"]["ya"]).apply(null,arguments)};var _emscripten_bind_DracoUInt32Array_size_0=Module["_emscripten_bind_DracoUInt32Array_size_0"]=function(){return(_emscripten_bind_DracoUInt32Array_size_0=Module["_emscripten_bind_DracoUInt32Array_size_0"]=Module["asm"]["za"]).apply(null,arguments)};var _emscripten_bind_DracoUInt32Array___destroy___0=Module["_emscripten_bind_DracoUInt32Array___destroy___0"]=function(){return(_emscripten_bind_DracoUInt32Array___destroy___0=Module["_emscripten_bind_DracoUInt32Array___destroy___0"]=Module["asm"]["Aa"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_MetadataQuerier_0=Module["_emscripten_bind_MetadataQuerier_MetadataQuerier_0"]=function(){return(_emscripten_bind_MetadataQuerier_MetadataQuerier_0=Module["_emscripten_bind_MetadataQuerier_MetadataQuerier_0"]=Module["asm"]["Ba"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_HasEntry_2=Module["_emscripten_bind_MetadataQuerier_HasEntry_2"]=function(){return(_emscripten_bind_MetadataQuerier_HasEntry_2=Module["_emscripten_bind_MetadataQuerier_HasEntry_2"]=Module["asm"]["Ca"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_GetIntEntry_2=Module["_emscripten_bind_MetadataQuerier_GetIntEntry_2"]=function(){return(_emscripten_bind_MetadataQuerier_GetIntEntry_2=Module["_emscripten_bind_MetadataQuerier_GetIntEntry_2"]=Module["asm"]["Da"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_GetIntEntryArray_3=Module["_emscripten_bind_MetadataQuerier_GetIntEntryArray_3"]=function(){return(_emscripten_bind_MetadataQuerier_GetIntEntryArray_3=Module["_emscripten_bind_MetadataQuerier_GetIntEntryArray_3"]=Module["asm"]["Ea"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_GetDoubleEntry_2=Module["_emscripten_bind_MetadataQuerier_GetDoubleEntry_2"]=function(){return(_emscripten_bind_MetadataQuerier_GetDoubleEntry_2=Module["_emscripten_bind_MetadataQuerier_GetDoubleEntry_2"]=Module["asm"]["Fa"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_GetStringEntry_2=Module["_emscripten_bind_MetadataQuerier_GetStringEntry_2"]=function(){return(_emscripten_bind_MetadataQuerier_GetStringEntry_2=Module["_emscripten_bind_MetadataQuerier_GetStringEntry_2"]=Module["asm"]["Ga"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_NumEntries_1=Module["_emscripten_bind_MetadataQuerier_NumEntries_1"]=function(){return(_emscripten_bind_MetadataQuerier_NumEntries_1=Module["_emscripten_bind_MetadataQuerier_NumEntries_1"]=Module["asm"]["Ha"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_GetEntryName_2=Module["_emscripten_bind_MetadataQuerier_GetEntryName_2"]=function(){return(_emscripten_bind_MetadataQuerier_GetEntryName_2=Module["_emscripten_bind_MetadataQuerier_GetEntryName_2"]=Module["asm"]["Ia"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier___destroy___0=Module["_emscripten_bind_MetadataQuerier___destroy___0"]=function(){return(_emscripten_bind_MetadataQuerier___destroy___0=Module["_emscripten_bind_MetadataQuerier___destroy___0"]=Module["asm"]["Ja"]).apply(null,arguments)};var _emscripten_bind_Decoder_Decoder_0=Module["_emscripten_bind_Decoder_Decoder_0"]=function(){return(_emscripten_bind_Decoder_Decoder_0=Module["_emscripten_bind_Decoder_Decoder_0"]=Module["asm"]["Ka"]).apply(null,arguments)};var _emscripten_bind_Decoder_DecodeArrayToPointCloud_3=Module["_emscripten_bind_Decoder_DecodeArrayToPointCloud_3"]=function(){return(_emscripten_bind_Decoder_DecodeArrayToPointCloud_3=Module["_emscripten_bind_Decoder_DecodeArrayToPointCloud_3"]=Module["asm"]["La"]).apply(null,arguments)};var _emscripten_bind_Decoder_DecodeArrayToMesh_3=Module["_emscripten_bind_Decoder_DecodeArrayToMesh_3"]=function(){return(_emscripten_bind_Decoder_DecodeArrayToMesh_3=Module["_emscripten_bind_Decoder_DecodeArrayToMesh_3"]=Module["asm"]["Ma"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeId_2=Module["_emscripten_bind_Decoder_GetAttributeId_2"]=function(){return(_emscripten_bind_Decoder_GetAttributeId_2=Module["_emscripten_bind_Decoder_GetAttributeId_2"]=Module["asm"]["Na"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeIdByName_2=Module["_emscripten_bind_Decoder_GetAttributeIdByName_2"]=function(){return(_emscripten_bind_Decoder_GetAttributeIdByName_2=Module["_emscripten_bind_Decoder_GetAttributeIdByName_2"]=Module["asm"]["Oa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=Module["_emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=Module["_emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3"]=Module["asm"]["Pa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttribute_2=Module["_emscripten_bind_Decoder_GetAttribute_2"]=function(){return(_emscripten_bind_Decoder_GetAttribute_2=Module["_emscripten_bind_Decoder_GetAttribute_2"]=Module["asm"]["Qa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeByUniqueId_2=Module["_emscripten_bind_Decoder_GetAttributeByUniqueId_2"]=function(){return(_emscripten_bind_Decoder_GetAttributeByUniqueId_2=Module["_emscripten_bind_Decoder_GetAttributeByUniqueId_2"]=Module["asm"]["Ra"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetMetadata_1=Module["_emscripten_bind_Decoder_GetMetadata_1"]=function(){return(_emscripten_bind_Decoder_GetMetadata_1=Module["_emscripten_bind_Decoder_GetMetadata_1"]=Module["asm"]["Sa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeMetadata_2=Module["_emscripten_bind_Decoder_GetAttributeMetadata_2"]=function(){return(_emscripten_bind_Decoder_GetAttributeMetadata_2=Module["_emscripten_bind_Decoder_GetAttributeMetadata_2"]=Module["asm"]["Ta"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetFaceFromMesh_3=Module["_emscripten_bind_Decoder_GetFaceFromMesh_3"]=function(){return(_emscripten_bind_Decoder_GetFaceFromMesh_3=Module["_emscripten_bind_Decoder_GetFaceFromMesh_3"]=Module["asm"]["Ua"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=Module["_emscripten_bind_Decoder_GetTriangleStripsFromMesh_2"]=function(){return(_emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=Module["_emscripten_bind_Decoder_GetTriangleStripsFromMesh_2"]=Module["asm"]["Va"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetTrianglesUInt16Array_3=Module["_emscripten_bind_Decoder_GetTrianglesUInt16Array_3"]=function(){return(_emscripten_bind_Decoder_GetTrianglesUInt16Array_3=Module["_emscripten_bind_Decoder_GetTrianglesUInt16Array_3"]=Module["asm"]["Wa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetTrianglesUInt32Array_3=Module["_emscripten_bind_Decoder_GetTrianglesUInt32Array_3"]=function(){return(_emscripten_bind_Decoder_GetTrianglesUInt32Array_3=Module["_emscripten_bind_Decoder_GetTrianglesUInt32Array_3"]=Module["asm"]["Xa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeFloat_3=Module["_emscripten_bind_Decoder_GetAttributeFloat_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeFloat_3=Module["_emscripten_bind_Decoder_GetAttributeFloat_3"]=Module["asm"]["Ya"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3"]=Module["asm"]["Za"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeIntForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeIntForAllPoints_3"]=Module["asm"]["_a"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3"]=Module["asm"]["$a"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3"]=Module["asm"]["ab"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3"]=Module["asm"]["bb"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3"]=Module["asm"]["cb"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3"]=Module["asm"]["db"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3"]=Module["asm"]["eb"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=Module["_emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5"]=function(){return(_emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=Module["_emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5"]=Module["asm"]["fb"]).apply(null,arguments)};var _emscripten_bind_Decoder_SkipAttributeTransform_1=Module["_emscripten_bind_Decoder_SkipAttributeTransform_1"]=function(){return(_emscripten_bind_Decoder_SkipAttributeTransform_1=Module["_emscripten_bind_Decoder_SkipAttributeTransform_1"]=Module["asm"]["gb"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=Module["_emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1"]=function(){return(_emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=Module["_emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1"]=Module["asm"]["hb"]).apply(null,arguments)};var _emscripten_bind_Decoder_DecodeBufferToPointCloud_2=Module["_emscripten_bind_Decoder_DecodeBufferToPointCloud_2"]=function(){return(_emscripten_bind_Decoder_DecodeBufferToPointCloud_2=Module["_emscripten_bind_Decoder_DecodeBufferToPointCloud_2"]=Module["asm"]["ib"]).apply(null,arguments)};var _emscripten_bind_Decoder_DecodeBufferToMesh_2=Module["_emscripten_bind_Decoder_DecodeBufferToMesh_2"]=function(){return(_emscripten_bind_Decoder_DecodeBufferToMesh_2=Module["_emscripten_bind_Decoder_DecodeBufferToMesh_2"]=Module["asm"]["jb"]).apply(null,arguments)};var _emscripten_bind_Decoder___destroy___0=Module["_emscripten_bind_Decoder___destroy___0"]=function(){return(_emscripten_bind_Decoder___destroy___0=Module["_emscripten_bind_Decoder___destroy___0"]=Module["asm"]["kb"]).apply(null,arguments)};var _emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM"]=function(){return(_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM"]=Module["asm"]["lb"]).apply(null,arguments)};var _emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM"]=function(){return(_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM"]=Module["asm"]["mb"]).apply(null,arguments)};var _emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM"]=function(){return(_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM"]=Module["asm"]["nb"]).apply(null,arguments)};var _emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM"]=function(){return(_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM"]=Module["asm"]["ob"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_INVALID=Module["_emscripten_enum_draco_GeometryAttribute_Type_INVALID"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_INVALID=Module["_emscripten_enum_draco_GeometryAttribute_Type_INVALID"]=Module["asm"]["pb"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_POSITION=Module["_emscripten_enum_draco_GeometryAttribute_Type_POSITION"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_POSITION=Module["_emscripten_enum_draco_GeometryAttribute_Type_POSITION"]=Module["asm"]["qb"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_NORMAL=Module["_emscripten_enum_draco_GeometryAttribute_Type_NORMAL"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_NORMAL=Module["_emscripten_enum_draco_GeometryAttribute_Type_NORMAL"]=Module["asm"]["rb"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_COLOR=Module["_emscripten_enum_draco_GeometryAttribute_Type_COLOR"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_COLOR=Module["_emscripten_enum_draco_GeometryAttribute_Type_COLOR"]=Module["asm"]["sb"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=Module["_emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=Module["_emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD"]=Module["asm"]["tb"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_GENERIC=Module["_emscripten_enum_draco_GeometryAttribute_Type_GENERIC"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_GENERIC=Module["_emscripten_enum_draco_GeometryAttribute_Type_GENERIC"]=Module["asm"]["ub"]).apply(null,arguments)};var _emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=Module["_emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE"]=function(){return(_emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=Module["_emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE"]=Module["asm"]["vb"]).apply(null,arguments)};var _emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=Module["_emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD"]=function(){return(_emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=Module["_emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD"]=Module["asm"]["wb"]).apply(null,arguments)};var _emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=Module["_emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH"]=function(){return(_emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=Module["_emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH"]=Module["asm"]["xb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_INVALID=Module["_emscripten_enum_draco_DataType_DT_INVALID"]=function(){return(_emscripten_enum_draco_DataType_DT_INVALID=Module["_emscripten_enum_draco_DataType_DT_INVALID"]=Module["asm"]["yb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_INT8=Module["_emscripten_enum_draco_DataType_DT_INT8"]=function(){return(_emscripten_enum_draco_DataType_DT_INT8=Module["_emscripten_enum_draco_DataType_DT_INT8"]=Module["asm"]["zb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_UINT8=Module["_emscripten_enum_draco_DataType_DT_UINT8"]=function(){return(_emscripten_enum_draco_DataType_DT_UINT8=Module["_emscripten_enum_draco_DataType_DT_UINT8"]=Module["asm"]["Ab"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_INT16=Module["_emscripten_enum_draco_DataType_DT_INT16"]=function(){return(_emscripten_enum_draco_DataType_DT_INT16=Module["_emscripten_enum_draco_DataType_DT_INT16"]=Module["asm"]["Bb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_UINT16=Module["_emscripten_enum_draco_DataType_DT_UINT16"]=function(){return(_emscripten_enum_draco_DataType_DT_UINT16=Module["_emscripten_enum_draco_DataType_DT_UINT16"]=Module["asm"]["Cb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_INT32=Module["_emscripten_enum_draco_DataType_DT_INT32"]=function(){return(_emscripten_enum_draco_DataType_DT_INT32=Module["_emscripten_enum_draco_DataType_DT_INT32"]=Module["asm"]["Db"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_UINT32=Module["_emscripten_enum_draco_DataType_DT_UINT32"]=function(){return(_emscripten_enum_draco_DataType_DT_UINT32=Module["_emscripten_enum_draco_DataType_DT_UINT32"]=Module["asm"]["Eb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_INT64=Module["_emscripten_enum_draco_DataType_DT_INT64"]=function(){return(_emscripten_enum_draco_DataType_DT_INT64=Module["_emscripten_enum_draco_DataType_DT_INT64"]=Module["asm"]["Fb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_UINT64=Module["_emscripten_enum_draco_DataType_DT_UINT64"]=function(){return(_emscripten_enum_draco_DataType_DT_UINT64=Module["_emscripten_enum_draco_DataType_DT_UINT64"]=Module["asm"]["Gb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_FLOAT32=Module["_emscripten_enum_draco_DataType_DT_FLOAT32"]=function(){return(_emscripten_enum_draco_DataType_DT_FLOAT32=Module["_emscripten_enum_draco_DataType_DT_FLOAT32"]=Module["asm"]["Hb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_FLOAT64=Module["_emscripten_enum_draco_DataType_DT_FLOAT64"]=function(){return(_emscripten_enum_draco_DataType_DT_FLOAT64=Module["_emscripten_enum_draco_DataType_DT_FLOAT64"]=Module["asm"]["Ib"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_BOOL=Module["_emscripten_enum_draco_DataType_DT_BOOL"]=function(){return(_emscripten_enum_draco_DataType_DT_BOOL=Module["_emscripten_enum_draco_DataType_DT_BOOL"]=Module["asm"]["Jb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_TYPES_COUNT=Module["_emscripten_enum_draco_DataType_DT_TYPES_COUNT"]=function(){return(_emscripten_enum_draco_DataType_DT_TYPES_COUNT=Module["_emscripten_enum_draco_DataType_DT_TYPES_COUNT"]=Module["asm"]["Kb"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_OK=Module["_emscripten_enum_draco_StatusCode_OK"]=function(){return(_emscripten_enum_draco_StatusCode_OK=Module["_emscripten_enum_draco_StatusCode_OK"]=Module["asm"]["Lb"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_DRACO_ERROR=Module["_emscripten_enum_draco_StatusCode_DRACO_ERROR"]=function(){return(_emscripten_enum_draco_StatusCode_DRACO_ERROR=Module["_emscripten_enum_draco_StatusCode_DRACO_ERROR"]=Module["asm"]["Mb"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_IO_ERROR=Module["_emscripten_enum_draco_StatusCode_IO_ERROR"]=function(){return(_emscripten_enum_draco_StatusCode_IO_ERROR=Module["_emscripten_enum_draco_StatusCode_IO_ERROR"]=Module["asm"]["Nb"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_INVALID_PARAMETER=Module["_emscripten_enum_draco_StatusCode_INVALID_PARAMETER"]=function(){return(_emscripten_enum_draco_StatusCode_INVALID_PARAMETER=Module["_emscripten_enum_draco_StatusCode_INVALID_PARAMETER"]=Module["asm"]["Ob"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=Module["_emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION"]=function(){return(_emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=Module["_emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION"]=Module["asm"]["Pb"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=Module["_emscripten_enum_draco_StatusCode_UNKNOWN_VERSION"]=function(){return(_emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=Module["_emscripten_enum_draco_StatusCode_UNKNOWN_VERSION"]=Module["asm"]["Qb"]).apply(null,arguments)};var _malloc=Module["_malloc"]=function(){return(_malloc=Module["_malloc"]=Module["asm"]["Rb"]).apply(null,arguments)};var _free=Module["_free"]=function(){return(_free=Module["_free"]=Module["asm"]["Sb"]).apply(null,arguments)};var ___cxa_is_pointer_type=Module["___cxa_is_pointer_type"]=function(){return(___cxa_is_pointer_type=Module["___cxa_is_pointer_type"]=Module["asm"]["Tb"]).apply(null,arguments)};var calledRun;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(args){args=args||arguments_;if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}Module["run"]=run;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}run();function WrapperObject(){}WrapperObject.prototype=Object.create(WrapperObject.prototype);WrapperObject.prototype.constructor=WrapperObject;WrapperObject.prototype.__class__=WrapperObject;WrapperObject.__cache__={};Module["WrapperObject"]=WrapperObject;function getCache(__class__){return(__class__||WrapperObject).__cache__}Module["getCache"]=getCache;function wrapPointer(ptr,__class__){var cache=getCache(__class__);var ret=cache[ptr];if(ret)return ret;ret=Object.create((__class__||WrapperObject).prototype);ret.ptr=ptr;return cache[ptr]=ret}Module["wrapPointer"]=wrapPointer;function castObject(obj,__class__){return wrapPointer(obj.ptr,__class__)}Module["castObject"]=castObject;Module["NULL"]=wrapPointer(0);function destroy(obj){if(!obj["__destroy__"])throw"Error: Cannot destroy object. (Did you create it yourself?)";obj["__destroy__"]();delete getCache(obj.__class__)[obj.ptr]}Module["destroy"]=destroy;function compare(obj1,obj2){return obj1.ptr===obj2.ptr}Module["compare"]=compare;function getPointer(obj){return obj.ptr}Module["getPointer"]=getPointer;function getClass(obj){return obj.__class__}Module["getClass"]=getClass;var ensureCache={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ensureCache.needed){for(var i=0;i<ensureCache.temps.length;i++){Module["_free"](ensureCache.temps[i])}ensureCache.temps.length=0;Module["_free"](ensureCache.buffer);ensureCache.buffer=0;ensureCache.size+=ensureCache.needed;ensureCache.needed=0}if(!ensureCache.buffer){ensureCache.size+=128;ensureCache.buffer=Module["_malloc"](ensureCache.size);assert(ensureCache.buffer)}ensureCache.pos=0},alloc:function(array,view){assert(ensureCache.buffer);var bytes=view.BYTES_PER_ELEMENT;var len=array.length*bytes;len=len+7&-8;var ret;if(ensureCache.pos+len>=ensureCache.size){assert(len>0);ensureCache.needed+=len;ret=Module["_malloc"](len);ensureCache.temps.push(ret)}else{ret=ensureCache.buffer+ensureCache.pos;ensureCache.pos+=len}return ret},copy:function(array,view,offset){offset>>>=0;var bytes=view.BYTES_PER_ELEMENT;switch(bytes){case 2:offset>>>=1;break;case 4:offset>>>=2;break;case 8:offset>>>=3;break}for(var i=0;i<array.length;i++){view[offset+i]=array[i]}}};function ensureString(value){if(typeof value==="string"){var intArray=intArrayFromString(value);var offset=ensureCache.alloc(intArray,HEAP8);ensureCache.copy(intArray,HEAP8,offset);return offset}return value}function ensureInt8(value){if(typeof value==="object"){var offset=ensureCache.alloc(value,HEAP8);ensureCache.copy(value,HEAP8,offset);return offset}return value}function VoidPtr(){throw"cannot construct a VoidPtr, no constructor in IDL"}VoidPtr.prototype=Object.create(WrapperObject.prototype);VoidPtr.prototype.constructor=VoidPtr;VoidPtr.prototype.__class__=VoidPtr;VoidPtr.__cache__={};Module["VoidPtr"]=VoidPtr;VoidPtr.prototype["__destroy__"]=VoidPtr.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_VoidPtr___destroy___0(self)};function DecoderBuffer(){this.ptr=_emscripten_bind_DecoderBuffer_DecoderBuffer_0();getCache(DecoderBuffer)[this.ptr]=this}DecoderBuffer.prototype=Object.create(WrapperObject.prototype);DecoderBuffer.prototype.constructor=DecoderBuffer;DecoderBuffer.prototype.__class__=DecoderBuffer;DecoderBuffer.__cache__={};Module["DecoderBuffer"]=DecoderBuffer;DecoderBuffer.prototype["Init"]=DecoderBuffer.prototype.Init=function(data,data_size){var self=this.ptr;ensureCache.prepare();if(typeof data=="object"){data=ensureInt8(data)}if(data_size&&typeof data_size==="object")data_size=data_size.ptr;_emscripten_bind_DecoderBuffer_Init_2(self,data,data_size)};DecoderBuffer.prototype["__destroy__"]=DecoderBuffer.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DecoderBuffer___destroy___0(self)};function AttributeTransformData(){this.ptr=_emscripten_bind_AttributeTransformData_AttributeTransformData_0();getCache(AttributeTransformData)[this.ptr]=this}AttributeTransformData.prototype=Object.create(WrapperObject.prototype);AttributeTransformData.prototype.constructor=AttributeTransformData;AttributeTransformData.prototype.__class__=AttributeTransformData;AttributeTransformData.__cache__={};Module["AttributeTransformData"]=AttributeTransformData;AttributeTransformData.prototype["transform_type"]=AttributeTransformData.prototype.transform_type=function(){var self=this.ptr;return _emscripten_bind_AttributeTransformData_transform_type_0(self)};AttributeTransformData.prototype["__destroy__"]=AttributeTransformData.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_AttributeTransformData___destroy___0(self)};function GeometryAttribute(){this.ptr=_emscripten_bind_GeometryAttribute_GeometryAttribute_0();getCache(GeometryAttribute)[this.ptr]=this}GeometryAttribute.prototype=Object.create(WrapperObject.prototype);GeometryAttribute.prototype.constructor=GeometryAttribute;GeometryAttribute.prototype.__class__=GeometryAttribute;GeometryAttribute.__cache__={};Module["GeometryAttribute"]=GeometryAttribute;GeometryAttribute.prototype["__destroy__"]=GeometryAttribute.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_GeometryAttribute___destroy___0(self)};function PointAttribute(){this.ptr=_emscripten_bind_PointAttribute_PointAttribute_0();getCache(PointAttribute)[this.ptr]=this}PointAttribute.prototype=Object.create(WrapperObject.prototype);PointAttribute.prototype.constructor=PointAttribute;PointAttribute.prototype.__class__=PointAttribute;PointAttribute.__cache__={};Module["PointAttribute"]=PointAttribute;PointAttribute.prototype["size"]=PointAttribute.prototype.size=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_size_0(self)};PointAttribute.prototype["GetAttributeTransformData"]=PointAttribute.prototype.GetAttributeTransformData=function(){var self=this.ptr;return wrapPointer(_emscripten_bind_PointAttribute_GetAttributeTransformData_0(self),AttributeTransformData)};PointAttribute.prototype["attribute_type"]=PointAttribute.prototype.attribute_type=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_attribute_type_0(self)};PointAttribute.prototype["data_type"]=PointAttribute.prototype.data_type=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_data_type_0(self)};PointAttribute.prototype["num_components"]=PointAttribute.prototype.num_components=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_num_components_0(self)};PointAttribute.prototype["normalized"]=PointAttribute.prototype.normalized=function(){var self=this.ptr;return!!_emscripten_bind_PointAttribute_normalized_0(self)};PointAttribute.prototype["byte_stride"]=PointAttribute.prototype.byte_stride=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_byte_stride_0(self)};PointAttribute.prototype["byte_offset"]=PointAttribute.prototype.byte_offset=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_byte_offset_0(self)};PointAttribute.prototype["unique_id"]=PointAttribute.prototype.unique_id=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_unique_id_0(self)};PointAttribute.prototype["__destroy__"]=PointAttribute.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_PointAttribute___destroy___0(self)};function AttributeQuantizationTransform(){this.ptr=_emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0();getCache(AttributeQuantizationTransform)[this.ptr]=this}AttributeQuantizationTransform.prototype=Object.create(WrapperObject.prototype);AttributeQuantizationTransform.prototype.constructor=AttributeQuantizationTransform;AttributeQuantizationTransform.prototype.__class__=AttributeQuantizationTransform;AttributeQuantizationTransform.__cache__={};Module["AttributeQuantizationTransform"]=AttributeQuantizationTransform;AttributeQuantizationTransform.prototype["InitFromAttribute"]=AttributeQuantizationTransform.prototype.InitFromAttribute=function(att){var self=this.ptr;if(att&&typeof att==="object")att=att.ptr;return!!_emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1(self,att)};AttributeQuantizationTransform.prototype["quantization_bits"]=AttributeQuantizationTransform.prototype.quantization_bits=function(){var self=this.ptr;return _emscripten_bind_AttributeQuantizationTransform_quantization_bits_0(self)};AttributeQuantizationTransform.prototype["min_value"]=AttributeQuantizationTransform.prototype.min_value=function(axis){var self=this.ptr;if(axis&&typeof axis==="object")axis=axis.ptr;return _emscripten_bind_AttributeQuantizationTransform_min_value_1(self,axis)};AttributeQuantizationTransform.prototype["range"]=AttributeQuantizationTransform.prototype.range=function(){var self=this.ptr;return _emscripten_bind_AttributeQuantizationTransform_range_0(self)};AttributeQuantizationTransform.prototype["__destroy__"]=AttributeQuantizationTransform.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_AttributeQuantizationTransform___destroy___0(self)};function AttributeOctahedronTransform(){this.ptr=_emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0();getCache(AttributeOctahedronTransform)[this.ptr]=this}AttributeOctahedronTransform.prototype=Object.create(WrapperObject.prototype);AttributeOctahedronTransform.prototype.constructor=AttributeOctahedronTransform;AttributeOctahedronTransform.prototype.__class__=AttributeOctahedronTransform;AttributeOctahedronTransform.__cache__={};Module["AttributeOctahedronTransform"]=AttributeOctahedronTransform;AttributeOctahedronTransform.prototype["InitFromAttribute"]=AttributeOctahedronTransform.prototype.InitFromAttribute=function(att){var self=this.ptr;if(att&&typeof att==="object")att=att.ptr;return!!_emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1(self,att)};AttributeOctahedronTransform.prototype["quantization_bits"]=AttributeOctahedronTransform.prototype.quantization_bits=function(){var self=this.ptr;return _emscripten_bind_AttributeOctahedronTransform_quantization_bits_0(self)};AttributeOctahedronTransform.prototype["__destroy__"]=AttributeOctahedronTransform.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_AttributeOctahedronTransform___destroy___0(self)};function PointCloud(){this.ptr=_emscripten_bind_PointCloud_PointCloud_0();getCache(PointCloud)[this.ptr]=this}PointCloud.prototype=Object.create(WrapperObject.prototype);PointCloud.prototype.constructor=PointCloud;PointCloud.prototype.__class__=PointCloud;PointCloud.__cache__={};Module["PointCloud"]=PointCloud;PointCloud.prototype["num_attributes"]=PointCloud.prototype.num_attributes=function(){var self=this.ptr;return _emscripten_bind_PointCloud_num_attributes_0(self)};PointCloud.prototype["num_points"]=PointCloud.prototype.num_points=function(){var self=this.ptr;return _emscripten_bind_PointCloud_num_points_0(self)};PointCloud.prototype["__destroy__"]=PointCloud.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_PointCloud___destroy___0(self)};function Mesh(){this.ptr=_emscripten_bind_Mesh_Mesh_0();getCache(Mesh)[this.ptr]=this}Mesh.prototype=Object.create(WrapperObject.prototype);Mesh.prototype.constructor=Mesh;Mesh.prototype.__class__=Mesh;Mesh.__cache__={};Module["Mesh"]=Mesh;Mesh.prototype["num_faces"]=Mesh.prototype.num_faces=function(){var self=this.ptr;return _emscripten_bind_Mesh_num_faces_0(self)};Mesh.prototype["num_attributes"]=Mesh.prototype.num_attributes=function(){var self=this.ptr;return _emscripten_bind_Mesh_num_attributes_0(self)};Mesh.prototype["num_points"]=Mesh.prototype.num_points=function(){var self=this.ptr;return _emscripten_bind_Mesh_num_points_0(self)};Mesh.prototype["__destroy__"]=Mesh.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_Mesh___destroy___0(self)};function Metadata(){this.ptr=_emscripten_bind_Metadata_Metadata_0();getCache(Metadata)[this.ptr]=this}Metadata.prototype=Object.create(WrapperObject.prototype);Metadata.prototype.constructor=Metadata;Metadata.prototype.__class__=Metadata;Metadata.__cache__={};Module["Metadata"]=Metadata;Metadata.prototype["__destroy__"]=Metadata.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_Metadata___destroy___0(self)};function Status(){throw"cannot construct a Status, no constructor in IDL"}Status.prototype=Object.create(WrapperObject.prototype);Status.prototype.constructor=Status;Status.prototype.__class__=Status;Status.__cache__={};Module["Status"]=Status;Status.prototype["code"]=Status.prototype.code=function(){var self=this.ptr;return _emscripten_bind_Status_code_0(self)};Status.prototype["ok"]=Status.prototype.ok=function(){var self=this.ptr;return!!_emscripten_bind_Status_ok_0(self)};Status.prototype["error_msg"]=Status.prototype.error_msg=function(){var self=this.ptr;return UTF8ToString(_emscripten_bind_Status_error_msg_0(self))};Status.prototype["__destroy__"]=Status.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_Status___destroy___0(self)};function DracoFloat32Array(){this.ptr=_emscripten_bind_DracoFloat32Array_DracoFloat32Array_0();getCache(DracoFloat32Array)[this.ptr]=this}DracoFloat32Array.prototype=Object.create(WrapperObject.prototype);DracoFloat32Array.prototype.constructor=DracoFloat32Array;DracoFloat32Array.prototype.__class__=DracoFloat32Array;DracoFloat32Array.__cache__={};Module["DracoFloat32Array"]=DracoFloat32Array;DracoFloat32Array.prototype["GetValue"]=DracoFloat32Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoFloat32Array_GetValue_1(self,index)};DracoFloat32Array.prototype["size"]=DracoFloat32Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoFloat32Array_size_0(self)};DracoFloat32Array.prototype["__destroy__"]=DracoFloat32Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoFloat32Array___destroy___0(self)};function DracoInt8Array(){this.ptr=_emscripten_bind_DracoInt8Array_DracoInt8Array_0();getCache(DracoInt8Array)[this.ptr]=this}DracoInt8Array.prototype=Object.create(WrapperObject.prototype);DracoInt8Array.prototype.constructor=DracoInt8Array;DracoInt8Array.prototype.__class__=DracoInt8Array;DracoInt8Array.__cache__={};Module["DracoInt8Array"]=DracoInt8Array;DracoInt8Array.prototype["GetValue"]=DracoInt8Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoInt8Array_GetValue_1(self,index)};DracoInt8Array.prototype["size"]=DracoInt8Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoInt8Array_size_0(self)};DracoInt8Array.prototype["__destroy__"]=DracoInt8Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoInt8Array___destroy___0(self)};function DracoUInt8Array(){this.ptr=_emscripten_bind_DracoUInt8Array_DracoUInt8Array_0();getCache(DracoUInt8Array)[this.ptr]=this}DracoUInt8Array.prototype=Object.create(WrapperObject.prototype);DracoUInt8Array.prototype.constructor=DracoUInt8Array;DracoUInt8Array.prototype.__class__=DracoUInt8Array;DracoUInt8Array.__cache__={};Module["DracoUInt8Array"]=DracoUInt8Array;DracoUInt8Array.prototype["GetValue"]=DracoUInt8Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoUInt8Array_GetValue_1(self,index)};DracoUInt8Array.prototype["size"]=DracoUInt8Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoUInt8Array_size_0(self)};DracoUInt8Array.prototype["__destroy__"]=DracoUInt8Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoUInt8Array___destroy___0(self)};function DracoInt16Array(){this.ptr=_emscripten_bind_DracoInt16Array_DracoInt16Array_0();getCache(DracoInt16Array)[this.ptr]=this}DracoInt16Array.prototype=Object.create(WrapperObject.prototype);DracoInt16Array.prototype.constructor=DracoInt16Array;DracoInt16Array.prototype.__class__=DracoInt16Array;DracoInt16Array.__cache__={};Module["DracoInt16Array"]=DracoInt16Array;DracoInt16Array.prototype["GetValue"]=DracoInt16Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoInt16Array_GetValue_1(self,index)};DracoInt16Array.prototype["size"]=DracoInt16Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoInt16Array_size_0(self)};DracoInt16Array.prototype["__destroy__"]=DracoInt16Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoInt16Array___destroy___0(self)};function DracoUInt16Array(){this.ptr=_emscripten_bind_DracoUInt16Array_DracoUInt16Array_0();getCache(DracoUInt16Array)[this.ptr]=this}DracoUInt16Array.prototype=Object.create(WrapperObject.prototype);DracoUInt16Array.prototype.constructor=DracoUInt16Array;DracoUInt16Array.prototype.__class__=DracoUInt16Array;DracoUInt16Array.__cache__={};Module["DracoUInt16Array"]=DracoUInt16Array;DracoUInt16Array.prototype["GetValue"]=DracoUInt16Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoUInt16Array_GetValue_1(self,index)};DracoUInt16Array.prototype["size"]=DracoUInt16Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoUInt16Array_size_0(self)};DracoUInt16Array.prototype["__destroy__"]=DracoUInt16Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoUInt16Array___destroy___0(self)};function DracoInt32Array(){this.ptr=_emscripten_bind_DracoInt32Array_DracoInt32Array_0();getCache(DracoInt32Array)[this.ptr]=this}DracoInt32Array.prototype=Object.create(WrapperObject.prototype);DracoInt32Array.prototype.constructor=DracoInt32Array;DracoInt32Array.prototype.__class__=DracoInt32Array;DracoInt32Array.__cache__={};Module["DracoInt32Array"]=DracoInt32Array;DracoInt32Array.prototype["GetValue"]=DracoInt32Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoInt32Array_GetValue_1(self,index)};DracoInt32Array.prototype["size"]=DracoInt32Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoInt32Array_size_0(self)};DracoInt32Array.prototype["__destroy__"]=DracoInt32Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoInt32Array___destroy___0(self)};function DracoUInt32Array(){this.ptr=_emscripten_bind_DracoUInt32Array_DracoUInt32Array_0();getCache(DracoUInt32Array)[this.ptr]=this}DracoUInt32Array.prototype=Object.create(WrapperObject.prototype);DracoUInt32Array.prototype.constructor=DracoUInt32Array;DracoUInt32Array.prototype.__class__=DracoUInt32Array;DracoUInt32Array.__cache__={};Module["DracoUInt32Array"]=DracoUInt32Array;DracoUInt32Array.prototype["GetValue"]=DracoUInt32Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoUInt32Array_GetValue_1(self,index)};DracoUInt32Array.prototype["size"]=DracoUInt32Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoUInt32Array_size_0(self)};DracoUInt32Array.prototype["__destroy__"]=DracoUInt32Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoUInt32Array___destroy___0(self)};function MetadataQuerier(){this.ptr=_emscripten_bind_MetadataQuerier_MetadataQuerier_0();getCache(MetadataQuerier)[this.ptr]=this}MetadataQuerier.prototype=Object.create(WrapperObject.prototype);MetadataQuerier.prototype.constructor=MetadataQuerier;MetadataQuerier.prototype.__class__=MetadataQuerier;MetadataQuerier.__cache__={};Module["MetadataQuerier"]=MetadataQuerier;MetadataQuerier.prototype["HasEntry"]=MetadataQuerier.prototype.HasEntry=function(metadata,entry_name){var self=this.ptr;ensureCache.prepare();if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_name&&typeof entry_name==="object")entry_name=entry_name.ptr;else entry_name=ensureString(entry_name);return!!_emscripten_bind_MetadataQuerier_HasEntry_2(self,metadata,entry_name)};MetadataQuerier.prototype["GetIntEntry"]=MetadataQuerier.prototype.GetIntEntry=function(metadata,entry_name){var self=this.ptr;ensureCache.prepare();if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_name&&typeof entry_name==="object")entry_name=entry_name.ptr;else entry_name=ensureString(entry_name);return _emscripten_bind_MetadataQuerier_GetIntEntry_2(self,metadata,entry_name)};MetadataQuerier.prototype["GetIntEntryArray"]=MetadataQuerier.prototype.GetIntEntryArray=function(metadata,entry_name,out_values){var self=this.ptr;ensureCache.prepare();if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_name&&typeof entry_name==="object")entry_name=entry_name.ptr;else entry_name=ensureString(entry_name);if(out_values&&typeof out_values==="object")out_values=out_values.ptr;_emscripten_bind_MetadataQuerier_GetIntEntryArray_3(self,metadata,entry_name,out_values)};MetadataQuerier.prototype["GetDoubleEntry"]=MetadataQuerier.prototype.GetDoubleEntry=function(metadata,entry_name){var self=this.ptr;ensureCache.prepare();if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_name&&typeof entry_name==="object")entry_name=entry_name.ptr;else entry_name=ensureString(entry_name);return _emscripten_bind_MetadataQuerier_GetDoubleEntry_2(self,metadata,entry_name)};MetadataQuerier.prototype["GetStringEntry"]=MetadataQuerier.prototype.GetStringEntry=function(metadata,entry_name){var self=this.ptr;ensureCache.prepare();if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_name&&typeof entry_name==="object")entry_name=entry_name.ptr;else entry_name=ensureString(entry_name);return UTF8ToString(_emscripten_bind_MetadataQuerier_GetStringEntry_2(self,metadata,entry_name))};MetadataQuerier.prototype["NumEntries"]=MetadataQuerier.prototype.NumEntries=function(metadata){var self=this.ptr;if(metadata&&typeof metadata==="object")metadata=metadata.ptr;return _emscripten_bind_MetadataQuerier_NumEntries_1(self,metadata)};MetadataQuerier.prototype["GetEntryName"]=MetadataQuerier.prototype.GetEntryName=function(metadata,entry_id){var self=this.ptr;if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_id&&typeof entry_id==="object")entry_id=entry_id.ptr;return UTF8ToString(_emscripten_bind_MetadataQuerier_GetEntryName_2(self,metadata,entry_id))};MetadataQuerier.prototype["__destroy__"]=MetadataQuerier.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_MetadataQuerier___destroy___0(self)};function Decoder(){this.ptr=_emscripten_bind_Decoder_Decoder_0();getCache(Decoder)[this.ptr]=this}Decoder.prototype=Object.create(WrapperObject.prototype);Decoder.prototype.constructor=Decoder;Decoder.prototype.__class__=Decoder;Decoder.__cache__={};Module["Decoder"]=Decoder;Decoder.prototype["DecodeArrayToPointCloud"]=Decoder.prototype.DecodeArrayToPointCloud=function(data,data_size,out_point_cloud){var self=this.ptr;ensureCache.prepare();if(typeof data=="object"){data=ensureInt8(data)}if(data_size&&typeof data_size==="object")data_size=data_size.ptr;if(out_point_cloud&&typeof out_point_cloud==="object")out_point_cloud=out_point_cloud.ptr;return wrapPointer(_emscripten_bind_Decoder_DecodeArrayToPointCloud_3(self,data,data_size,out_point_cloud),Status)};Decoder.prototype["DecodeArrayToMesh"]=Decoder.prototype.DecodeArrayToMesh=function(data,data_size,out_mesh){var self=this.ptr;ensureCache.prepare();if(typeof data=="object"){data=ensureInt8(data)}if(data_size&&typeof data_size==="object")data_size=data_size.ptr;if(out_mesh&&typeof out_mesh==="object")out_mesh=out_mesh.ptr;return wrapPointer(_emscripten_bind_Decoder_DecodeArrayToMesh_3(self,data,data_size,out_mesh),Status)};Decoder.prototype["GetAttributeId"]=Decoder.prototype.GetAttributeId=function(pc,type){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(type&&typeof type==="object")type=type.ptr;return _emscripten_bind_Decoder_GetAttributeId_2(self,pc,type)};Decoder.prototype["GetAttributeIdByName"]=Decoder.prototype.GetAttributeIdByName=function(pc,name){var self=this.ptr;ensureCache.prepare();if(pc&&typeof pc==="object")pc=pc.ptr;if(name&&typeof name==="object")name=name.ptr;else name=ensureString(name);return _emscripten_bind_Decoder_GetAttributeIdByName_2(self,pc,name)};Decoder.prototype["GetAttributeIdByMetadataEntry"]=Decoder.prototype.GetAttributeIdByMetadataEntry=function(pc,name,value){var self=this.ptr;ensureCache.prepare();if(pc&&typeof pc==="object")pc=pc.ptr;if(name&&typeof name==="object")name=name.ptr;else name=ensureString(name);if(value&&typeof value==="object")value=value.ptr;else value=ensureString(value);return _emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3(self,pc,name,value)};Decoder.prototype["GetAttribute"]=Decoder.prototype.GetAttribute=function(pc,att_id){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(att_id&&typeof att_id==="object")att_id=att_id.ptr;return wrapPointer(_emscripten_bind_Decoder_GetAttribute_2(self,pc,att_id),PointAttribute)};Decoder.prototype["GetAttributeByUniqueId"]=Decoder.prototype.GetAttributeByUniqueId=function(pc,unique_id){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(unique_id&&typeof unique_id==="object")unique_id=unique_id.ptr;return wrapPointer(_emscripten_bind_Decoder_GetAttributeByUniqueId_2(self,pc,unique_id),PointAttribute)};Decoder.prototype["GetMetadata"]=Decoder.prototype.GetMetadata=function(pc){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;return wrapPointer(_emscripten_bind_Decoder_GetMetadata_1(self,pc),Metadata)};Decoder.prototype["GetAttributeMetadata"]=Decoder.prototype.GetAttributeMetadata=function(pc,att_id){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(att_id&&typeof att_id==="object")att_id=att_id.ptr;return wrapPointer(_emscripten_bind_Decoder_GetAttributeMetadata_2(self,pc,att_id),Metadata)};Decoder.prototype["GetFaceFromMesh"]=Decoder.prototype.GetFaceFromMesh=function(m,face_id,out_values){var self=this.ptr;if(m&&typeof m==="object")m=m.ptr;if(face_id&&typeof face_id==="object")face_id=face_id.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetFaceFromMesh_3(self,m,face_id,out_values)};Decoder.prototype["GetTriangleStripsFromMesh"]=Decoder.prototype.GetTriangleStripsFromMesh=function(m,strip_values){var self=this.ptr;if(m&&typeof m==="object")m=m.ptr;if(strip_values&&typeof strip_values==="object")strip_values=strip_values.ptr;return _emscripten_bind_Decoder_GetTriangleStripsFromMesh_2(self,m,strip_values)};Decoder.prototype["GetTrianglesUInt16Array"]=Decoder.prototype.GetTrianglesUInt16Array=function(m,out_size,out_values){var self=this.ptr;if(m&&typeof m==="object")m=m.ptr;if(out_size&&typeof out_size==="object")out_size=out_size.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetTrianglesUInt16Array_3(self,m,out_size,out_values)};Decoder.prototype["GetTrianglesUInt32Array"]=Decoder.prototype.GetTrianglesUInt32Array=function(m,out_size,out_values){var self=this.ptr;if(m&&typeof m==="object")m=m.ptr;if(out_size&&typeof out_size==="object")out_size=out_size.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetTrianglesUInt32Array_3(self,m,out_size,out_values)};Decoder.prototype["GetAttributeFloat"]=Decoder.prototype.GetAttributeFloat=function(pa,att_index,out_values){var self=this.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(att_index&&typeof att_index==="object")att_index=att_index.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeFloat_3(self,pa,att_index,out_values)};Decoder.prototype["GetAttributeFloatForAllPoints"]=Decoder.prototype.GetAttributeFloatForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeIntForAllPoints"]=Decoder.prototype.GetAttributeIntForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeIntForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeInt8ForAllPoints"]=Decoder.prototype.GetAttributeInt8ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeUInt8ForAllPoints"]=Decoder.prototype.GetAttributeUInt8ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeInt16ForAllPoints"]=Decoder.prototype.GetAttributeInt16ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeUInt16ForAllPoints"]=Decoder.prototype.GetAttributeUInt16ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeInt32ForAllPoints"]=Decoder.prototype.GetAttributeInt32ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeUInt32ForAllPoints"]=Decoder.prototype.GetAttributeUInt32ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeDataArrayForAllPoints"]=Decoder.prototype.GetAttributeDataArrayForAllPoints=function(pc,pa,data_type,out_size,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(data_type&&typeof data_type==="object")data_type=data_type.ptr;if(out_size&&typeof out_size==="object")out_size=out_size.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5(self,pc,pa,data_type,out_size,out_values)};Decoder.prototype["SkipAttributeTransform"]=Decoder.prototype.SkipAttributeTransform=function(att_type){var self=this.ptr;if(att_type&&typeof att_type==="object")att_type=att_type.ptr;_emscripten_bind_Decoder_SkipAttributeTransform_1(self,att_type)};Decoder.prototype["GetEncodedGeometryType_Deprecated"]=Decoder.prototype.GetEncodedGeometryType_Deprecated=function(in_buffer){var self=this.ptr;if(in_buffer&&typeof in_buffer==="object")in_buffer=in_buffer.ptr;return _emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1(self,in_buffer)};Decoder.prototype["DecodeBufferToPointCloud"]=Decoder.prototype.DecodeBufferToPointCloud=function(in_buffer,out_point_cloud){var self=this.ptr;if(in_buffer&&typeof in_buffer==="object")in_buffer=in_buffer.ptr;if(out_point_cloud&&typeof out_point_cloud==="object")out_point_cloud=out_point_cloud.ptr;return wrapPointer(_emscripten_bind_Decoder_DecodeBufferToPointCloud_2(self,in_buffer,out_point_cloud),Status)};Decoder.prototype["DecodeBufferToMesh"]=Decoder.prototype.DecodeBufferToMesh=function(in_buffer,out_mesh){var self=this.ptr;if(in_buffer&&typeof in_buffer==="object")in_buffer=in_buffer.ptr;if(out_mesh&&typeof out_mesh==="object")out_mesh=out_mesh.ptr;return wrapPointer(_emscripten_bind_Decoder_DecodeBufferToMesh_2(self,in_buffer,out_mesh),Status)};Decoder.prototype["__destroy__"]=Decoder.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_Decoder___destroy___0(self)};(function(){function setupEnums(){Module["ATTRIBUTE_INVALID_TRANSFORM"]=_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM();Module["ATTRIBUTE_NO_TRANSFORM"]=_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM();Module["ATTRIBUTE_QUANTIZATION_TRANSFORM"]=_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM();Module["ATTRIBUTE_OCTAHEDRON_TRANSFORM"]=_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM();Module["INVALID"]=_emscripten_enum_draco_GeometryAttribute_Type_INVALID();Module["POSITION"]=_emscripten_enum_draco_GeometryAttribute_Type_POSITION();Module["NORMAL"]=_emscripten_enum_draco_GeometryAttribute_Type_NORMAL();Module["COLOR"]=_emscripten_enum_draco_GeometryAttribute_Type_COLOR();Module["TEX_COORD"]=_emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD();Module["GENERIC"]=_emscripten_enum_draco_GeometryAttribute_Type_GENERIC();Module["INVALID_GEOMETRY_TYPE"]=_emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE();Module["POINT_CLOUD"]=_emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD();Module["TRIANGULAR_MESH"]=_emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH();Module["DT_INVALID"]=_emscripten_enum_draco_DataType_DT_INVALID();Module["DT_INT8"]=_emscripten_enum_draco_DataType_DT_INT8();Module["DT_UINT8"]=_emscripten_enum_draco_DataType_DT_UINT8();Module["DT_INT16"]=_emscripten_enum_draco_DataType_DT_INT16();Module["DT_UINT16"]=_emscripten_enum_draco_DataType_DT_UINT16();Module["DT_INT32"]=_emscripten_enum_draco_DataType_DT_INT32();Module["DT_UINT32"]=_emscripten_enum_draco_DataType_DT_UINT32();Module["DT_INT64"]=_emscripten_enum_draco_DataType_DT_INT64();Module["DT_UINT64"]=_emscripten_enum_draco_DataType_DT_UINT64();Module["DT_FLOAT32"]=_emscripten_enum_draco_DataType_DT_FLOAT32();Module["DT_FLOAT64"]=_emscripten_enum_draco_DataType_DT_FLOAT64();Module["DT_BOOL"]=_emscripten_enum_draco_DataType_DT_BOOL();Module["DT_TYPES_COUNT"]=_emscripten_enum_draco_DataType_DT_TYPES_COUNT();Module["OK"]=_emscripten_enum_draco_StatusCode_OK();Module["DRACO_ERROR"]=_emscripten_enum_draco_StatusCode_DRACO_ERROR();Module["IO_ERROR"]=_emscripten_enum_draco_StatusCode_IO_ERROR();Module["INVALID_PARAMETER"]=_emscripten_enum_draco_StatusCode_INVALID_PARAMETER();Module["UNSUPPORTED_VERSION"]=_emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION();Module["UNKNOWN_VERSION"]=_emscripten_enum_draco_StatusCode_UNKNOWN_VERSION()}if(runtimeInitialized)setupEnums();else addOnInit(setupEnums)})();if(typeof Module["onModuleParsed"]==="function"){Module["onModuleParsed"]()}Module["Decoder"].prototype.GetEncodedGeometryType=function(array){if(array.__class__&&array.__class__===Module.DecoderBuffer){return Module.Decoder.prototype.GetEncodedGeometryType_Deprecated(array)}if(array.byteLength<8)return Module.INVALID_GEOMETRY_TYPE;switch(array[7]){case 0:return Module.POINT_CLOUD;case 1:return Module.TRIANGULAR_MESH;default:return Module.INVALID_GEOMETRY_TYPE}};
- return DracoDecoderModule.ready
- }
- );
- })();
- if (typeof exports === 'object' && typeof module === 'object')
- module.exports = DracoDecoderModule;
- else if (typeof define === 'function' && define['amd'])
- define([], function() { return DracoDecoderModule; });
- else if (typeof exports === 'object')
- exports["DracoDecoderModule"] = DracoDecoderModule;
|