local-id-scan-journey
Version:
A React component for GBG ID verification and document scanning with bundled SDK
1 lines • 137 kB
JavaScript
var Initidesmicro=function(){var e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(e=e||__filename),function(t){var r,n=void 0!==(t=t||{})?t:{},i={};for(r in n)n.hasOwnProperty(r)&&(i[r]=n[r]);var o,a,s,d,c=[],u="./this.program",_=function(e,t){throw t};if(o="object"==typeof window,a="function"==typeof importScripts,s="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,d=!o&&!s&&!a,n.ENVIRONMENT)throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -s ENVIRONMENT=web or -s ENVIRONMENT=node)");var p,l,E,T,f="";if(s)f=a?require("path").dirname(f)+"/":__dirname+"/",p=function(e,t){return E||(E=require("fs")),T||(T=require("path")),e=T.normalize(e),E.readFileSync(e,t?null:"utf8")},l=function(e){var t=p(e,!0);return t.buffer||(t=new Uint8Array(t)),A(t.buffer),t},process.argv.length>1&&(u=process.argv[1].replace(/\\/g,"/")),c=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof on))throw e})),process.on("unhandledRejection",Te),_=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"};else if(d)"undefined"!=typeof read&&(p=function(e){return read(e)}),l=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(A("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?c=scriptArgs:void 0!==arguments&&(c=arguments),"function"==typeof quit&&(_=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print);else{if(!o&&!a)throw new Error("environment detection error");a?f=self.location.href:document.currentScript&&(f=document.currentScript.src),e&&(f=e),f=0!==f.indexOf("blob:")?f.substr(0,f.lastIndexOf("/")+1):"",p=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},a&&(l=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})}var O=n.print||function(){}.bind(),y=n.printErr||function(){}.bind();for(r in i)i.hasOwnProperty(r)&&(n[r]=i[r]);function w(e){w.shown||(w.shown={}),w.shown[e]||(w.shown[e]=1,y(e))}i=null,n.arguments&&(c=n.arguments),Object.getOwnPropertyDescriptor(n,"arguments")||Object.defineProperty(n,"arguments",{configurable:!0,get:function(){Te("Module.arguments has been replaced with plain arguments_")}}),n.thisProgram&&(u=n.thisProgram),Object.getOwnPropertyDescriptor(n,"thisProgram")||Object.defineProperty(n,"thisProgram",{configurable:!0,get:function(){Te("Module.thisProgram has been replaced with plain thisProgram")}}),n.quit&&(_=n.quit),Object.getOwnPropertyDescriptor(n,"quit")||Object.defineProperty(n,"quit",{configurable:!0,get:function(){Te("Module.quit has been replaced with plain quit_")}}),A(void 0===n.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),A(void 0===n.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),A(void 0===n.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),A(void 0===n.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),A(void 0===n.read,"Module.read option was removed (modify read_ in JS)"),A(void 0===n.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),A(void 0===n.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),A(void 0===n.setWindowTitle,"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),Object.getOwnPropertyDescriptor(n,"read")||Object.defineProperty(n,"read",{configurable:!0,get:function(){Te("Module.read has been replaced with plain read_")}}),Object.getOwnPropertyDescriptor(n,"readAsync")||Object.defineProperty(n,"readAsync",{configurable:!0,get:function(){Te("Module.readAsync has been replaced with plain readAsync")}}),Object.getOwnPropertyDescriptor(n,"readBinary")||Object.defineProperty(n,"readBinary",{configurable:!0,get:function(){Te("Module.readBinary has been replaced with plain readBinary")}}),rn=nn=function(){Te("cannot use the stack before compiled code is ready to run, and has provided stack access")};var h,m,R,g=0,D=function(e){g=e};n.wasmBinary&&(h=n.wasmBinary),Object.getOwnPropertyDescriptor(n,"wasmBinary")||Object.defineProperty(n,"wasmBinary",{configurable:!0,get:function(){Te("Module.wasmBinary has been replaced with plain wasmBinary")}}),n.noExitRuntime&&(m=n.noExitRuntime),Object.getOwnPropertyDescriptor(n,"noExitRuntime")||Object.defineProperty(n,"noExitRuntime",{configurable:!0,get:function(){Te("Module.noExitRuntime has been replaced with plain noExitRuntime")}}),"object"!=typeof WebAssembly&&Te("No WebAssembly support found. Build with -s WASM=0 to target JavaScript instead.");var P=new WebAssembly.Table({initial:6881,maximum:6881,element:"anyfunc"}),b=!1;function A(e,t){e||Te("Assertion failed: "+t)}var M="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function v(e,t,r){for(var n=t+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.subarray&&M)return M.decode(e.subarray(t,i));for(var o="";t<i;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var d=63&e[t++];if(224==(240&a)?a=(15&a)<<12|s<<6|d:(240!=(248&a)&&w("Invalid UTF-8 leading byte 0x"+a.toString(16)+" encountered when deserializing a UTF-8 string on the asm.js/wasm heap to a JS string!"),a=(7&a)<<18|s<<12|d<<6|63&e[t++]),a<65536)o+=String.fromCharCode(a);else{var c=a-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function I(e,t){return e?v(L,e,t):""}function X(e,t,r,n){if(!(n>0))return 0;for(var i=r,o=r+n-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a);if(s<=127){if(r>=o)break;t[r++]=s}else if(s<=2047){if(r+1>=o)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=o)break;s>=2097152&&w("Invalid Unicode code point 0x"+s.toString(16)+" encountered when serializing a JS string to an UTF-8 string on the asm.js/wasm heap! (Valid unicode code points should be in range 0-0x1FFFFF)."),t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-i}function S(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}var F="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function x(e){A(e%2==0,"Pointer passed to UTF16ToString must be aligned to two bytes!");for(var t=e,r=t>>1;W[r];)++r;if((t=r<<1)-e>32&&F)return F.decode(L.subarray(e,t));for(var n=0,i="";;){var o=W[e+2*n>>1];if(0==o)return i;++n,i+=String.fromCharCode(o)}}function N(e,t,r){if(A(t%2==0,"Pointer passed to stringToUTF16 must be aligned to two bytes!"),A("number"==typeof r,"stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,o=0;o<i;++o){var a=e.charCodeAt(o);W[t>>1]=a,t+=2}return W[t>>1]=0,t-n}function U(e){return 2*e.length}function j(e){A(e%4==0,"Pointer passed to UTF32ToString must be aligned to four bytes!");for(var t=0,r="";;){var n=G[e+4*t>>2];if(0==n)return r;if(++t,n>=65536){var i=n-65536;r+=String.fromCharCode(55296|i>>10,56320|1023&i)}else r+=String.fromCharCode(n)}}function C(e,t,r){if(A(t%4==0,"Pointer passed to stringToUTF32 must be aligned to four bytes!"),A("number"==typeof r,"stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,i=n+r-4,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o);if(G[t>>2]=a,(t+=4)+4>i)break}return G[t>>2]=0,t-n}function H(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t}var Q,k,L,W,$,G,B,V,Y;function z(e){Q=e,n.HEAP8=k=new Int8Array(e),n.HEAP16=W=new Int16Array(e),n.HEAP32=G=new Int32Array(e),n.HEAPU8=L=new Uint8Array(e),n.HEAPU16=$=new Uint16Array(e),n.HEAPU32=B=new Uint32Array(e),n.HEAPF32=V=new Float32Array(e),n.HEAPF64=Y=new Float64Array(e)}var q=2498192,J=7741072;A(!0,"stack must start aligned"),A(!0,"heap must start aligned");var K=5242880;n.TOTAL_STACK&&A(K===n.TOTAL_STACK,"the stack size can no longer be determined at runtime");var Z=n.TOTAL_MEMORY||134217728;function ee(){A(!0),B[624549]=34821223,B[624550]=2310721022,G[0]=1668509029}function te(){var e=B[624549],t=B[624550];34821223==e&&2310721022==t||Te("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x"+t.toString(16)+" "+e.toString(16)),1668509029!==G[0]&&Te("Runtime error: The application has corrupted its heap memory area (address zero)!")}function re(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?n.dynCall_v(r):n.dynCall_vi(r,t.arg):r(void 0===t.arg?null:t.arg)}else t()}}Object.getOwnPropertyDescriptor(n,"TOTAL_MEMORY")||Object.defineProperty(n,"TOTAL_MEMORY",{configurable:!0,get:function(){Te("Module.TOTAL_MEMORY has been replaced with plain INITIAL_TOTAL_MEMORY")}}),A(Z>=K,"TOTAL_MEMORY should be larger than TOTAL_STACK, was "+Z+"! (TOTAL_STACK="+K+")"),A("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support"),(R=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:Z/65536}))&&(Q=R.buffer),A((Z=Q.byteLength)%65536==0),z(Q),G[624504]=J,function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian!"}();var ne=[],ie=[],oe=[],ae=[],se=!1,de=!1;A(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),A(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),A(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),A(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var ce=Math.ceil,ue=Math.floor,_e=0,pe=null,le=null,Ee={};function Te(e){n.onAbort&&n.onAbort(e),O(e+=""),y(e),b=!0;var t="abort("+e+") at "+function(){var e=function(){var e=new Error;if(!e.stack){try{throw new Error}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}();n.extraStackTrace&&(e+="\n"+n.extraStackTrace());return t=e,r=/\b_Z[\w\d_]+/g,t.replace(r,(function(e){var t,r=(t=e,w("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),t);return e===r?e:r+" ["+e+"]"}));var t,r}();throw e=t,new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={};var fe={error:function(){Te("Filesystem support (FS) was not included. The problem is that you are using files from JS, but files were not used from C/C++, so filesystem support was not auto-included. You can force-include filesystem support with -s FORCE_FILESYSTEM=1")},init:function(){fe.error()},createDataFile:function(){fe.error()},createPreloadedFile:function(){fe.error()},createLazyFile:function(){fe.error()},open:function(){fe.error()},mkdev:function(){fe.error()},registerDevice:function(){fe.error()},analyzePath:function(){fe.error()},loadFilesFromDB:function(){fe.error()},ErrnoError:function(){fe.error()}};n.FS_createDataFile=fe.createDataFile,n.FS_createPreloadedFile=fe.createPreloadedFile;var Oe="data:application/octet-stream;base64,";function ye(e){return String.prototype.startsWith?e.startsWith(Oe):0===e.indexOf(Oe)}var we,he="idesmicro_asm.wasm";function me(){try{if(h)return new Uint8Array(h);if(l)return l(he);throw"both async and sync fetching of the wasm failed"}catch(e){Te(e)}}function Re(){Te()}ye(he)||(we=he,he=n.locateFile?n.locateFile(we,f):f+we),ie.push({func:function(){or()}});var ge=s||"undefined"!=typeof dateNow||1;function De(e){return n.___errno_location?G[n.___errno_location()>>2]=e:y("failed to set errno from JS"),e}function Pe(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e||!ge)return De(28),-1;r=Re()}return G[t>>2]=r/1e3|0,G[t+4>>2]=r%1e3*1e3*1e3|0,0}var be={},Ae=[];function Me(e){if(!e||be[e])return e;for(var t in be)for(var r=+t,n=be[r].adjusted,i=n.length,o=0;o<i;o++)if(n[o]===e)return r;return e}var ve=0;function Ie(e){try{return sr(e)}catch(e){y("exception during cxa_free_exception: "+e)}}var Xe={buffers:[null,[],[]],printChar:function(e,t){var r=Xe.buffers[e];A(r),0===t||10===t?((1===e?O:y)(v(r,0)),r.length=0):r.push(t)},varargs:0,get:function(e){return Xe.varargs+=4,G[Xe.varargs-4>>2]},getStr:function(){return I(Xe.get())},get64:function(){var e=Xe.get(),t=Xe.get();return A(e>=0?0===t:-1===t),e},getZero:function(){A(0===Xe.get())}};function Se(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var Fe=void 0;function xe(e){for(var t="",r=e;L[r];)t+=Fe[L[r++]];return t}var Ne={},Ue={},je={};function Ce(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?"_"+e:e}function He(e,t){return e=Ce(e),function(){"use strict";return t.apply(this,arguments)}}function Qe(e,t){var r=He(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var ke=void 0;function Le(e){throw new ke(e)}var We=void 0;function $e(e){throw new We(e)}function Ge(e,t,r){function n(t){var n=r(t);n.length!==e.length&&$e("Mismatched type converter count");for(var i=0;i<e.length;++i)Be(e[i],n[i])}e.forEach((function(e){je[e]=t}));var i=new Array(t.length),o=[],a=0;t.forEach((function(e,t){Ue.hasOwnProperty(e)?i[t]=Ue[e]:(o.push(e),Ne.hasOwnProperty(e)||(Ne[e]=[]),Ne[e].push((function(){i[t]=Ue[e],++a===o.length&&n(i)})))})),0===o.length&&n(i)}function Be(e,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=t.name;if(e||Le('type "'+n+'" must have a positive integer typeid pointer'),Ue.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;Le("Cannot register type '"+n+"' twice")}if(Ue[e]=t,delete je[e],Ne.hasOwnProperty(e)){var i=Ne[e];delete Ne[e],i.forEach((function(e){e()}))}}function Ve(e){if(!(this instanceof at))return!1;if(!(e instanceof at))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return t===n&&r===i}function Ye(e){Le(e.$$.ptrType.registeredClass.name+" instance already deleted")}var ze=!1;function qe(e){}function Je(e){e.count.value-=1,0===e.count.value&&function(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}(e)}function Ke(e){return"undefined"==typeof FinalizationGroup?(Ke=function(e){return e},e):(ze=new FinalizationGroup((function(e){for(var t=e.next();!t.done;t=e.next()){var r=t.value;r.ptr&&Je(r)}})),Ke=function(e){return ze.register(e,e.$$,e.$$),e},qe=function(e){ze.unregister(e.$$)},Ke(e))}function Ze(){if(this.$$.ptr||Ye(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=Ke(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t}function et(){this.$$.ptr||Ye(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Le("Object already scheduled for deletion"),qe(this),Je(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function tt(){return!this.$$.ptr}var rt=void 0,nt=[];function it(){for(;nt.length;){var e=nt.pop();e.$$.deleteScheduled=!1,e.delete()}}function ot(){return this.$$.ptr||Ye(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Le("Object already scheduled for deletion"),nt.push(this),1===nt.length&&rt&&rt(it),this.$$.deleteScheduled=!0,this}function at(){}var st={};function dt(e,t,r){if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||Le("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}}function ct(e,t,r){n.hasOwnProperty(e)?((void 0===r||void 0!==n[e].overloadTable&&void 0!==n[e].overloadTable[r])&&Le("Cannot register public name '"+e+"' twice"),dt(n,e,e),n.hasOwnProperty(r)&&Le("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),n[e].overloadTable[r]=t):(n[e]=t,void 0!==r&&(n[e].numArguments=r))}function ut(e,t,r,n,i,o,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function _t(e,t,r){for(;t!==r;)t.upcast||Le("Expected null or instance of "+r.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function pt(e,t){if(null===t)return this.isReference&&Le("null is not a valid "+this.name),0;t.$$||Le('Cannot pass "'+Lt(t)+'" as a '+this.name),t.$$.ptr||Le("Cannot pass deleted object as a pointer of type "+this.name);var r=t.$$.ptrType.registeredClass;return _t(t.$$.ptr,r,this.registeredClass)}function lt(e,t){var r;if(null===t)return this.isReference&&Le("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||Le('Cannot pass "'+Lt(t)+'" as a '+this.name),t.$$.ptr||Le("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&Le("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;if(r=_t(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&Le("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:Le("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var i=t.clone();r=this.rawShare(r,kt((function(){i.delete()}))),null!==e&&e.push(this.rawDestructor,r)}break;default:Le("Unsupporting sharing policy")}return r}function Et(e,t){if(null===t)return this.isReference&&Le("null is not a valid "+this.name),0;t.$$||Le('Cannot pass "'+Lt(t)+'" as a '+this.name),t.$$.ptr||Le("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&Le("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;return _t(t.$$.ptr,r,this.registeredClass)}function Tt(e){return this.fromWireType(B[e>>2])}function ft(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function Ot(e){this.rawDestructor&&this.rawDestructor(e)}function yt(e){null!==e&&e.delete()}function wt(e,t,r){if(t===r)return e;if(void 0===r.baseClass)return null;var n=wt(e,t,r.baseClass);return null===n?null:r.downcast(n)}function ht(){return Object.keys(gt).length}function mt(){var e=[];for(var t in gt)gt.hasOwnProperty(t)&&e.push(gt[t]);return e}function Rt(e){rt=e,nt.length&&rt&&rt(it)}var gt={};function Dt(e,t){return t=function(e,t){for(void 0===t&&Le("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}(e,t),gt[t]}function Pt(e,t){return t.ptrType&&t.ptr||$e("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!==!!t.smartPtr&&$e("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Ke(Object.create(e,{$$:{value:t}}))}function bt(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=Dt(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?Pt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Pt(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,a=this.registeredClass.getActualType(t),s=st[a];if(!s)return i.call(this);o=this.isConst?s.constPointerType:s.pointerType;var d=wt(t,this.registeredClass,o.registeredClass);return null===d?i.call(this):this.isSmartPointer?Pt(o.registeredClass.instancePrototype,{ptrType:o,ptr:d,smartPtrType:this,smartPtr:e}):Pt(o.registeredClass.instancePrototype,{ptrType:o,ptr:d})}function At(e,t,r,n,i,o,a,s,d,c,u){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=d,this.rawShare=c,this.rawDestructor=u,i||void 0!==t.baseClass?this.toWireType=lt:n?(this.toWireType=pt,this.destructorFunction=null):(this.toWireType=Et,this.destructorFunction=null)}function Mt(e,t,r){n.hasOwnProperty(e)||$e("Replacing nonexistant public symbol"),void 0!==n[e].overloadTable&&void 0!==r?n[e].overloadTable[r]=t:(n[e]=t,n[e].argCount=r)}function vt(e,t){var r,i,o;if(e=xe(e),void 0!==n["FUNCTION_TABLE_"+e])r=n["FUNCTION_TABLE_"+e][t];else if("undefined"!=typeof FUNCTION_TABLE)r=FUNCTION_TABLE[t];else{var a=n["dynCall_"+e];void 0===a&&void 0===(a=n["dynCall_"+e.replace(/f/g,"d")])&&Le("No dynCall invoker for signature: "+e),i=a,o=[t],r=function(){o.length=arguments.length+1;for(var e=0;e<arguments.length;e++)o[e+1]=arguments[e];return i.apply(null,o)}}return"function"!=typeof r&&Le("unknown function pointer with signature "+e+": "+t),r}var It=void 0;function Xt(e){var t=lr(e),r=xe(t);return sr(t),r}function St(e,t){var r=[],n={};throw t.forEach((function e(t){n[t]||Ue[t]||(je[t]?je[t].forEach(e):(r.push(t),n[t]=!0))})),new It(e+": "+r.map(Xt).join([", "]))}function Ft(e,t){for(var r=[],n=0;n<e;n++)r.push(G[(t>>2)+n]);return r}function xt(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function Nt(e,t,r,n,i){var o=t.length;o<2&&Le("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==r,s=!1,d=1;d<t.length;++d)if(null!==t[d]&&void 0===t[d].destructorFunction){s=!0;break}var c="void"!==t[0].name,u=o-2,_=new Array(u),p=[],l=[];return function(){var r;arguments.length!==u&&Le("function "+e+" called with "+arguments.length+" arguments, expected "+u+" args!"),l.length=0,p.length=a?2:1,p[0]=i,a&&(r=t[1].toWireType(l,this),p[1]=r);for(var o=0;o<u;++o)_[o]=t[o+2].toWireType(l,arguments[o]),p.push(_[o]);var d=n.apply(null,p);if(s)xt(l);else for(o=a?1:2;o<t.length;o++){var E=1===o?r:_[o-2];null!==t[o].destructorFunction&&t[o].destructorFunction(E)}if(c)return t[0].fromWireType(d)}}function Ut(e,t,r){return e instanceof Object||Le(r+' with invalid "this": '+e),e instanceof t.registeredClass.constructor||Le(r+' incompatible with "this" of type '+e.constructor.name),e.$$.ptr||Le("cannot call emscripten binding method "+r+" on deleted object"),_t(e.$$.ptr,e.$$.ptrType.registeredClass,t.registeredClass)}var jt=[],Ct=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Ht(){for(var e=0,t=5;t<Ct.length;++t)void 0!==Ct[t]&&++e;return e}function Qt(){for(var e=5;e<Ct.length;++e)if(void 0!==Ct[e])return Ct[e];return null}function kt(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=jt.length?jt.pop():Ct.length;return Ct[t]={refcount:1,value:e},t}}function Lt(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function Wt(e,t){switch(t){case 2:return function(e){return this.fromWireType(V[e>>2])};case 3:return function(e){return this.fromWireType(Y[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function $t(e,t,r){switch(t){case 0:return r?function(e){return k[e]}:function(e){return L[e]};case 1:return r?function(e){return W[e>>1]}:function(e){return $[e>>1]};case 2:return r?function(e){return G[e>>2]}:function(e){return B[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var Gt=0;function Bt(e){try{return R.grow(e-Q.byteLength+65535>>16),z(R.buffer),1}catch(e){}}var Vt={};function Yt(){if(!Yt.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:u||"./this.program"};for(var t in Vt)e[t]=Vt[t];var r=[];for(var t in e)r.push(t+"="+e[t]);Yt.strings=r}return Yt.strings}function zt(){"undefined"!=typeof _fflush&&_fflush(0);var e=Xe.buffers;e[1].length&&Xe.printChar(1,10),e[2].length&&Xe.printChar(2,10)}function qt(e){return e%4==0&&(e%100!=0||e%400==0)}function Jt(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}var Kt=[31,29,31,30,31,30,31,31,30,31,30,31],Zt=[31,28,31,30,31,30,31,31,30,31,30,31];function er(e,t){for(var r=new Date(e.getTime());t>0;){var n=qt(r.getFullYear()),i=r.getMonth(),o=(n?Kt:Zt)[i];if(!(t>o-r.getDate()))return r.setDate(r.getDate()+t),r;t-=o-r.getDate()+1,r.setDate(1),i<11?r.setMonth(i+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}function tr(e,t,r,n){var i=G[n+40>>2],o={tm_sec:G[n>>2],tm_min:G[n+4>>2],tm_hour:G[n+8>>2],tm_mday:G[n+12>>2],tm_mon:G[n+16>>2],tm_year:G[n+20>>2],tm_wday:G[n+24>>2],tm_yday:G[n+28>>2],tm_isdst:G[n+32>>2],tm_gmtoff:G[n+36>>2],tm_zone:i?I(i):""},a=I(r),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var d in s)a=a.replace(new RegExp(d,"g"),s[d]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u=["January","February","March","April","May","June","July","August","September","October","November","December"];function _(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function p(e,t){return _(e,t,"0")}function l(e,t){function r(e){return e<0?-1:e>0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function E(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function T(e){var t=er(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),i=E(r),o=E(n);return l(i,t)<=0?l(o,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var f={"%a":function(e){return c[e.tm_wday].substring(0,3)},"%A":function(e){return c[e.tm_wday]},"%b":function(e){return u[e.tm_mon].substring(0,3)},"%B":function(e){return u[e.tm_mon]},"%C":function(e){return p((e.tm_year+1900)/100|0,2)},"%d":function(e){return p(e.tm_mday,2)},"%e":function(e){return _(e.tm_mday,2," ")},"%g":function(e){return T(e).toString().substring(2)},"%G":function(e){return T(e)},"%H":function(e){return p(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),p(t,2)},"%j":function(e){return p(e.tm_mday+Jt(qt(e.tm_year+1900)?Kt:Zt,e.tm_mon-1),3)},"%m":function(e){return p(e.tm_mon+1,2)},"%M":function(e){return p(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return p(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=new Date(e.tm_year+1900,0,1),r=0===t.getDay()?t:er(t,7-t.getDay()),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(l(r,n)<0){var i=Jt(qt(n.getFullYear())?Kt:Zt,n.getMonth()-1)-31,o=31-r.getDate()+i+n.getDate();return p(Math.ceil(o/7),2)}return 0===l(r,t)?"01":"00"},"%V":function(e){var t,r=new Date(e.tm_year+1900,0,4),n=new Date(e.tm_year+1901,0,4),i=E(r),o=E(n),a=er(new Date(e.tm_year+1900,0,1),e.tm_yday);return l(a,i)<0?"53":l(o,a)<=0?"01":(t=i.getFullYear()<e.tm_year+1900?e.tm_yday+32-i.getDate():e.tm_yday+1-i.getDate(),p(Math.ceil(t/7),2))},"%w":function(e){return e.tm_wday},"%W":function(e){var t=new Date(e.tm_year,0,1),r=1===t.getDay()?t:er(t,0===t.getDay()?1:7-t.getDay()+1),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(l(r,n)<0){var i=Jt(qt(n.getFullYear())?Kt:Zt,n.getMonth()-1)-31,o=31-r.getDate()+i+n.getDate();return p(Math.ceil(o/7),2)}return 0===l(r,t)?"01":"00"},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var t=e.tm_gmtoff,r=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var d in f)a.indexOf(d)>=0&&(a=a.replace(new RegExp(d,"g"),f[d](o)));var O=function(e,t,r){var n=r>0?r:S(e)+1,i=new Array(n),o=X(e,i,0,i.length);t&&(i.length=o);return i}(a,!1);return O.length>t?0:(function(e,t){A(e.length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),k.set(e,t)}(O,e),O.length-1)}Re=s?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()},function(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);Fe=e}(),ke=n.BindingError=Qe(Error,"BindingError"),We=n.InternalError=Qe(Error,"InternalError"),at.prototype.isAliasOf=Ve,at.prototype.clone=Ze,at.prototype.delete=et,at.prototype.isDeleted=tt,at.prototype.deleteLater=ot,At.prototype.getPointee=ft,At.prototype.destructor=Ot,At.prototype.argPackAdvance=8,At.prototype.readValueFromPointer=Tt,At.prototype.deleteObject=yt,At.prototype.fromWireType=bt,n.getInheritedInstanceCount=ht,n.getLiveInheritedInstances=mt,n.flushPendingDeletes=it,n.setDelayFunction=Rt,It=n.UnboundTypeError=Qe(Error,"UnboundTypeError"),n.count_emval_handles=Ht,n.get_first_emval=Qt;var rr={__clock_gettime:function(e,t){return Pe(e,t)},__cxa_allocate_exception:function(e){return ar(e)},__cxa_begin_catch:function(e){var t=be[e];return t&&!t.caught&&(t.caught=!0,ur.uncaught_exceptions--),t&&(t.rethrown=!1),Ae.push(e),function(e){e&&be[e].refcount++}(Me(e)),e},__cxa_end_catch:function(){cr(0);var e=Ae.pop();e&&(!function(e){if(e){var t=be[e];A(t.refcount>0),t.refcount--,0!==t.refcount||t.rethrown||(t.destructor&&n.dynCall_ii(t.destructor,e),delete be[e],Ie(e))}}(Me(e)),ve=0)},__cxa_find_matching_catch_2:function(){var e=ve;if(!e)return 0|(D(0),0);var t=be[e],r=t.type;if(!r)return 0|(D(0),e);var n=Array.prototype.slice.call(arguments),i=(pr(r),2498176);G[624544]=e,e=i;for(var o=0;o<n.length;o++)if(n[o]&&_r(n[o],r,e))return e=G[e>>2],t.adjusted.push(e),0|(D(n[o]),e);return e=G[e>>2],0|(D(r),e)},__cxa_find_matching_catch_3:function(){var e=ve;if(!e)return 0|(D(0),0);var t=be[e],r=t.type;if(!r)return 0|(D(0),e);var n=Array.prototype.slice.call(arguments),i=(pr(r),2498176);G[624544]=e,e=i;for(var o=0;o<n.length;o++)if(n[o]&&_r(n[o],r,e))return e=G[e>>2],t.adjusted.push(e),0|(D(n[o]),e);return e=G[e>>2],0|(D(r),e)},__cxa_free_exception:Ie,__cxa_rethrow:function(){var e=Ae.pop();throw e=Me(e),be[e].rethrown||(Ae.push(e),be[e].rethrown=!0),ve=e,e},__cxa_throw:function(e,t,r){throw be[e]={ptr:e,adjusted:[e],type:t,destructor:r,refcount:0,caught:!1,rethrown:!1},ve=e,"uncaught_exception"in ur?ur.uncaught_exceptions++:ur.uncaught_exceptions=1,e},__cxa_uncaught_exceptions:function(){return ur.uncaught_exceptions},__handle_stack_overflow:function(){Te("stack overflow")},__lock:function(){},__map_file:function(e,t){return De(63),-1},__resumeException:function(e){throw ve||(ve=e),e},__syscall10:function(e,t){Xe.varargs=t;try{var r=Xe.getStr();return fe.unlink(r),0}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),-e.errno}},__syscall221:function(e,t){Xe.varargs=t;try{return 0}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),-e.errno}},__syscall3:function(e,t){Xe.varargs=t;try{var r=Xe.getStreamFromFD(),n=Xe.get(),i=Xe.get();return fe.read(r,k,n,i)}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),-e.errno}},__syscall4:function(e,t){Xe.varargs=t;try{for(var r=Xe.get(),n=Xe.get(),i=Xe.get(),o=0;o<i;o++)Xe.printChar(r,L[n+o]);return i}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),-e.errno}},__syscall40:function(e,t){Xe.varargs=t;try{var r=Xe.getStr();return fe.rmdir(r),0}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),-e.errno}},__syscall5:function(e,t){Xe.varargs=t;try{var r=Xe.getStr(),n=Xe.get(),i=Xe.get();return fe.open(r,n,i).fd}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),-e.errno}},__syscall54:function(e,t){Xe.varargs=t;try{return 0}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),-e.errno}},__syscall91:function(e,t){Xe.varargs=t;try{Xe.get(),Xe.get();return-52}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),-e.errno}},__unlock:function(){},_embind_register_bool:function(e,t,r,n,i){var o=Se(r);Be(e,{name:t=xe(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:i},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===r)n=k;else if(2===r)n=W;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=G}return this.fromWireType(n[e>>o])},destructorFunction:null})},_embind_register_class:function(e,t,r,n,i,o,a,s,d,c,u,_,p){u=xe(u),o=vt(i,o),s&&(s=vt(a,s)),c&&(c=vt(d,c)),p=vt(_,p);var l=Ce(u);ct(l,(function(){St("Cannot construct "+u+" due to unbound types",[n])})),Ge([e,t,r],n?[n]:[],(function(t){var r,i;t=t[0],i=n?(r=t.registeredClass).instancePrototype:at.prototype;var a=He(l,(function(){if(Object.getPrototypeOf(this)!==d)throw new ke("Use 'new' to construct "+u);if(void 0===_.constructor_body)throw new ke(u+" has no accessible constructor");var e=_.constructor_body[arguments.length];if(void 0===e)throw new ke("Tried to invoke ctor of "+u+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(_.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),d=Object.create(i,{constructor:{value:a}});a.prototype=d;var _=new ut(u,a,d,p,r,o,s,c),E=new At(u,_,!0,!1,!1),T=new At(u+"*",_,!1,!1,!1),f=new At(u+" const*",_,!1,!0,!1);return st[e]={pointerType:T,constPointerType:f},Mt(l,a),[E,T,f]}))},_embind_register_class_constructor:function(e,t,r,n,i,o){A(t>0);var a=Ft(t,r);i=vt(n,i);var s=[o],d=[];Ge([],[e],(function(e){var r="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new ke("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=function(){St("Cannot construct "+e.name+" due to unbound types",a)},Ge([],a,(function(n){return e.registeredClass.constructor_body[t-1]=function(){arguments.length!==t-1&&Le(r+" called with "+arguments.length+" arguments, expected "+(t-1)),d.length=0,s.length=t;for(var e=1;e<t;++e)s[e]=n[e].toWireType(d,arguments[e-1]);var o=i.apply(null,s);return xt(d),n[0].fromWireType(o)},[]})),[]}))},_embind_register_class_function:function(e,t,r,n,i,o,a,s){var d=Ft(r,n);t=xe(t),o=vt(i,o),Ge([],[e],(function(e){var n=(e=e[0]).name+"."+t;function i(){St("Cannot call "+n+" due to unbound types",d)}s&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,u=c[t];return void 0===u||void 0===u.overloadTable&&u.className!==e.name&&u.argCount===r-2?(i.argCount=r-2,i.className=e.name,c[t]=i):(dt(c,t,n),c[t].overloadTable[r-2]=i),Ge([],d,(function(i){var s=Nt(n,i,e,o,a);return void 0===c[t].overloadTable?(s.argCount=r-2,c[t]=s):c[t].overloadTable[r-2]=s,[]})),[]}))},_embind_register_class_property:function(e,t,r,n,i,o,a,s,d,c){t=xe(t),i=vt(n,i),Ge([],[e],(function(e){var n=(e=e[0]).name+"."+t,u={get:function(){St("Cannot access "+n+" due to unbound types",[r,a])},enumerable:!0,configurable:!0};return u.set=d?function(){St("Cannot access "+n+" due to unbound types",[r,a])}:function(e){Le(n+" is a read-only property")},Object.defineProperty(e.registeredClass.instancePrototype,t,u),Ge([],d?[r,a]:[r],(function(r){var a=r[0],u={get:function(){var t=Ut(this,e,n+" getter");return a.fromWireType(i(o,t))},enumerable:!0};if(d){d=vt(s,d);var _=r[1];u.set=function(t){var r=Ut(this,e,n+" setter"),i=[];d(c,r,_.toWireType(i,t)),xt(i)}}return Object.defineProperty(e.registeredClass.instancePrototype,t,u),[]})),[]}))},_embind_register_emval:function(e,t){Be(e,{name:t=xe(t),fromWireType:function(e){var t=Ct[e].value;return function(e){e>4&&0==--Ct[e].refcount&&(Ct[e]=void 0,jt.push(e))}(e),t},toWireType:function(e,t){return kt(t)},argPackAdvance:8,readValueFromPointer:Tt,destructorFunction:null})},_embind_register_float:function(e,t,r){var n=Se(r);Be(e,{name:t=xe(t),fromWireType:function(e){return e},toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+Lt(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:Wt(t,n),destructorFunction:null})},_embind_register_function:function(e,t,r,n,i,o){var a=Ft(t,r);e=xe(e),i=vt(n,i),ct(e,(function(){St("Cannot call "+e+" due to unbound types",a)}),t-1),Ge([],a,(function(r){var n=[r[0],null].concat(r.slice(1));return Mt(e,Nt(e,n,null,i,o),t-1),[]}))},_embind_register_integer:function(e,t,r,n,i){t=xe(t),-1===i&&(i=4294967295);var o=Se(r),a=function(e){return e};if(0===n){var s=32-8*r;a=function(e){return e<<s>>>s}}var d=-1!=t.indexOf("unsigned");Be(e,{name:t,fromWireType:a,toWireType:function(e,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+Lt(r)+'" to '+this.name);if(r<n||r>i)throw new TypeError('Passing a number "'+Lt(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+n+", "+i+"]!");return d?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:$t(t,o,0!==n),destructorFunction:null})},_embind_register_memory_view:function(e,t,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=B,r=t[e>>=2],i=t[e+1];return new n(t.buffer,i,r)}Be(e,{name:r=xe(r),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:function(e,t){var r="std::string"===(t=xe(t));Be(e,{name:t,fromWireType:function(e){var t,n=B[e>>2];if(r){var i=L[e+4+n],o=0;0!=i&&(o=i,L[e+4+n]=0);for(var a=e+4,s=0;s<=n;++s){var d=e+4+s;if(0==L[d]){var c=I(a);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),a=d+1}}0!=o&&(L[e+4+n]=o)}else{var u=new Array(n);for(s=0;s<n;++s)u[s]=String.fromCharCode(L[e+4+s]);t=u.join("")}return sr(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||Le("Cannot pass non-string to std::string");var i,o,a,s=(r&&n?function(){return S(t)}:function(){return t.length})(),d=ar(4+s+1);if(B[d>>2]=s,r&&n)i=t,o=d+4,A("number"==typeof(a=s+1),"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),X(i,L,o,a);else if(n)for(var c=0;c<s;++c){var u=t.charCodeAt(c);u>255&&(sr(d),Le("String has UTF-16 code units that do not fit in 8 bits")),L[d+4+c]=u}else for(c=0;c<s;++c)L[d+4+c]=t[c];return null!==e&&e.push(sr,d),d},argPackAdvance:8,readValueFromPointer:Tt,destructorFunction:function(e){sr(e)}})},_embind_register_std_wstring:function(e,t,r){var n,i,o,a,s;r=xe(r),2===t?(n=x,i=N,a=U,o=function(){return $},s=1):4===t&&(n=j,i=C,a=H,o=function(){return B},s=2),Be(e,{name:r,fromWireType:function(e){var r,i=B[e>>2],a=o(),d=a[e+4+i*t>>s],c=0;0!=d&&(c=d,a[e+4+i*t>>s]=0);for(var u=e+4,_=0;_<=i;++_){var p=e+4+_*t;if(0==a[p>>s]){var l=n(u);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),u=p+t}}return 0!=c&&(a[e+4+i*t>>s]=c),sr(e),r},toWireType:function(e,n){"string"!=typeof n&&Le("Cannot pass non-string to C++ string type "+r);var o=a(n),d=ar(4+o+t);return B[d>>2]=o>>s,i(n,d+4,o+t),null!==e&&e.push(sr,d),d},argPackAdvance:8,readValueFromPointer:Tt,destructorFunction:function(e){sr(e)}})},_embind_register_void:function(e,t){Be(e,{isVoid:!0,name:t=xe(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})},abort:function(){Te()},clock_gettime:Pe,emscripten_longjmp:function(e,t){!function(e,t){throw cr(e,t||1),"longjmp"}(e,t)},emscripten_memcpy_big:function(e,t,r){L.set(L.subarray(t,t+r),e)},emscripten_resize_heap:function(e){var t=L.length;A(e>t);var r=2147418112;if(e>r)return y("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is "+r+" bytes!"),!1;for(var n,i,o=1;o<=4;o*=2){var a=t*(1+.2/o);a=Math.min(a,e+100663296);var s=Math.min(r,((n=Math.max(16777216,e,a))%(i=65536)>0&&(n+=i-n%i),n)),d=(Re(),Bt(s));Re();if(d)return!0}return y("Failed to grow the heap from "+t+" bytes to "+s+" bytes, not enough memory!"),!1},environ_get:function(e,t){var r=Yt(),n=0;return r.forEach((function(r,i){var o=t+n;G[e+4*i>>2]=o,function(e,t,r){for(var n=0;n<e.length;++n)A(e.charCodeAt(n)==e.charCodeAt(n)&255),k[0|t++]=e.charCodeAt(n);r||(k[0|t]=0)}(r,o),n+=r.length+1})),0},environ_sizes_get:function(e,t){var r=Yt();G[e>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),G[t>>2]=n,0},exit:function(e){!function(e,t){if(function(){var e=O,t=y,r=!1;O=y=function(e){r=!0};try{zt&&zt(0)}catch(e){}O=e,y=t,r&&(w("stdio streams had content in them that was not flushed. you should set EXIT_RUNTIME to 1 (see the FAQ), or make sure to emit a newline when you printf etc."),w("(this may also be due to not including full filesystem support - try building with -s FORCE_FILESYSTEM=1)"))}(),t&&m&&0===e)return;m?t||y("program exited (with status: "+e+"), but EXIT_RUNTIME is not set, so halting execution but not exiting the runtime or preventing further async execution (build with EXIT_RUNTIME=1, if you want a true shutdown)"):(b=!0,te(),de=!0,n.onExit&&n.onExit(e));_(e,new on(e))}(e)},fd_close:function(e){try{return Te("it should not be possible to operate on streams when !SYSCALLS_REQUIRE_FILESYSTEM"),0}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),e.errno}},fd_read:function(e,t,r,n){try{return Te("it should not be possible to operate on streams when !SYSCALLS_REQUIRE_FILESYSTEM"),0}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),e.errno}},fd_seek:function(e,t,r,n,i){try{return Te("it should not be possible to operate on streams when !SYSCALLS_REQUIRE_FILESYSTEM"),0}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),e.errno}},fd_write:function(e,t,r,n){try{for(var i=0,o=0;o<r;o++){for(var a=G[t+8*o>>2],s=G[t+(8*o+4)>>2],d=0;d<s;d++)Xe.printChar(e,L[a+d]);i+=s}return G[n>>2]=i,0}catch(e){return void 0!==fe&&e instanceof fe.ErrnoError||Te(e),e.errno}},getTempRet0:function(){return 0|g},gettimeofday:function(e){var t=Date.now();return G[e>>2]=t/1e3|0,G[e+4>>2]=t%1e3*1e3|0,0},invoke_dii:function(e,t,r){var n=rn();try{return en(e,t,r)}catch(e){if(nn(n),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_diii:function(e,t,r,n){var i=rn();try{return tn(e,t,r,n)}catch(e){if(nn(i),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_fiii:function(e,t,r,n){var i=rn();try{return Zr(e,t,r,n)}catch(e){if(nn(i),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_i:function(e){var t=rn();try{return Nr(e)}catch(e){if(nn(t),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_ii:function(e,t){var r=rn();try{return Ur(e,t)}catch(e){if(nn(r),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iii:function(e,t,r){var n=rn();try{return jr(e,t,r)}catch(e){if(nn(n),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iiii:function(e,t,r,n){var i=rn();try{return Cr(e,t,r,n)}catch(e){if(nn(i),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iiiii:function(e,t,r,n,i){var o=rn();try{return Hr(e,t,r,n,i)}catch(e){if(nn(o),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iiiiid:function(e,t,r,n,i,o){var a=rn();try{return Yr(e,t,r,n,i,o)}catch(e){if(nn(a),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iiiiii:function(e,t,r,n,i,o){var a=rn();try{return Qr(e,t,r,n,i,o)}catch(e){if(nn(a),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iiiiiii:function(e,t,r,n,i,o,a){var s=rn();try{return kr(e,t,r,n,i,o,a)}catch(e){if(nn(s),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iiiiiiii:function(e,t,r,n,i,o,a,s){var d=rn();try{return Lr(e,t,r,n,i,o,a,s)}catch(e){if(nn(d),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iiiiiiiiii:function(e,t,r,n,i,o,a,s,d,c){var u=rn();try{return Wr(e,t,r,n,i,o,a,s,d,c)}catch(e){if(nn(u),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iiiiiiiiiii:function(e,t,r,n,i,o,a,s,d,c,u){var _=rn();try{return $r(e,t,r,n,i,o,a,s,d,c,u)}catch(e){if(nn(_),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iiiiiiiiiiii:function(e,t,r,n,i,o,a,s,d,c,u,_){var p=rn();try{return Gr(e,t,r,n,i,o,a,s,d,c,u,_)}catch(e){if(nn(p),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,d,c,u,_,p){var l=rn();try{return Br(e,t,r,n,i,o,a,s,d,c,u,_,p)}catch(e){if(nn(l),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iiiiij:function(e,t,r,n,i,o,a){var s=rn();try{return Vr(e,t,r,n,i,o,a)}catch(e){if(nn(s),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_iij:function(e,t,r,n){var i=rn();try{return zr(e,t,r,n)}catch(e){if(nn(i),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_ji:function(e,t){var r=rn();try{return qr(e,t)}catch(e){if(nn(r),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_jii:function(e,t,r){var n=rn();try{return Jr(e,t,r)}catch(e){if(nn(n),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_jiiii:function(e,t,r,n,i){var o=rn();try{return Kr(e,t,r,n,i)}catch(e){if(nn(o),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_v:function(e){var t=rn();try{Er(e)}catch(e){if(nn(t),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_vi:function(e,t){var r=rn();try{Tr(e,t)}catch(e){if(nn(r),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_vii:function(e,t,r){var n=rn();try{fr(e,t,r)}catch(e){if(nn(n),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viid:function(e,t,r,n){var i=rn();try{Xr(e,t,r,n)}catch(e){if(nn(i),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viidd:function(e,t,r,n,i){var o=rn();try{xr(e,t,r,n,i)}catch(e){if(nn(o),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viidiidid:function(e,t,r,n,i,o,a,s,d){var c=rn();try{Fr(e,t,r,n,i,o,a,s,d)}catch(e){if(nn(c),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viidiiiii:function(e,t,r,n,i,o,a,s,d){var c=rn();try{Sr(e,t,r,n,i,o,a,s,d)}catch(e){if(nn(c),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiffifi:function(e,t,r,n,i,o,a,s){var d=rn();try{Ir(e,t,r,n,i,o,a,s)}catch(e){if(nn(d),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viii:function(e,t,r,n){var i=rn();try{Or(e,t,r,n)}catch(e){if(nn(i),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiidd:function(e,t,r,n,i,o){var a=rn();try{Ar(e,t,r,n,i,o)}catch(e){if(nn(a),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiiddi:function(e,t,r,n,i,o,a){var s=rn();try{Mr(e,t,r,n,i,o,a)}catch(e){if(nn(s),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiidi:function(e,t,r,n,i,o){var a=rn();try{br(e,t,r,n,i,o)}catch(e){if(nn(a),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiii:function(e,t,r,n,i){var o=rn();try{yr(e,t,r,n,i)}catch(e){if(nn(o),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiiii:function(e,t,r,n,i,o){var a=rn();try{wr(e,t,r,n,i,o)}catch(e){if(nn(a),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiiiii:function(e,t,r,n,i,o,a){var s=rn();try{hr(e,t,r,n,i,o,a)}catch(e){if(nn(s),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiiiiii:function(e,t,r,n,i,o,a,s){var d=rn();try{mr(e,t,r,n,i,o,a,s)}catch(e){if(nn(d),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiiiiiii:function(e,t,r,n,i,o,a,s,d){var c=rn();try{Rr(e,t,r,n,i,o,a,s,d)}catch(e){if(nn(c),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiiiiiiii:function(e,t,r,n,i,o,a,s,d,c){var u=rn();try{gr(e,t,r,n,i,o,a,s,d,c)}catch(e){if(nn(u),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiiiiiiiii:function(e,t,r,n,i,o,a,s,d,c,u){var _=rn();try{Dr(e,t,r,n,i,o,a,s,d,c,u)}catch(e){if(nn(_),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viiiiiiiiiiiiiii:function(e,t,r,n,i,o,a,s,d,c,u,_,p,l,E,T){var f=rn();try{Pr(e,t,r,n,i,o,a,s,d,c,u,_,p,l,E,T)}catch(e){if(nn(f),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},invoke_viijii:function(e,t,r,n,i,o,a){var s=rn();try{vr(e,t,r,n,i,o,a)}catch(e){if(nn(s),e!==e+0&&"longjmp"!==e)throw e;cr(1,0)}},memory:R,p