12345 |
- /*
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- See https://js.arcgis.com/4.25/esri/copyright.txt for details.
- */
- import{c as n}from"./_commonjsHelpers.js";function t(n,t){for(var e=0;e<t.length;e++){const r=t[e];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in n)){const e=Object.getOwnPropertyDescriptor(r,t);e&&Object.defineProperty(n,t,e.get?e:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var e,r,a,o={exports:{}};e=o,r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,a=function(t){var e,a,o;t=t||{},e||(e=void 0!==t?t:{}),e.ready=new Promise((function(n,t){a=n,o=t}));var i=Object.assign({},e),u="./this.program",c="";"undefined"!=typeof document&&document.currentScript&&(c=document.currentScript.src),r&&(c=r),c=0!==c.indexOf("blob:")?c.substr(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var s,f=e.print||console.log.bind(console),l=e.printErr||console.warn.bind(console);Object.assign(e,i),i=null,e.thisProgram&&(u=e.thisProgram),e.wasmBinary&&(s=e.wasmBinary),e.noExitRuntime,"object"!=typeof WebAssembly&&I("no native wasm support detected");var h,p,d,v,m,y,g,b,w,A,T,_,P=!1,C="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function $(n,t,e){var r=t+e;for(e=t;n[e]&&!(e>=r);)++e;if(16<e-t&&n.buffer&&C)return C.decode(n.subarray(t,e));for(r="";t<e;){var a=n[t++];if(128&a){var o=63&n[t++];if(192==(224&a))r+=String.fromCharCode((31&a)<<6|o);else{var i=63&n[t++];65536>(a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&n[t++])?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else r+=String.fromCharCode(a)}return r}function k(){var n=h.buffer;p=n,e.HEAP8=d=new Int8Array(n),e.HEAP16=m=new Int16Array(n),e.HEAP32=g=new Int32Array(n),e.HEAPU8=v=new Uint8Array(n),e.HEAPU16=y=new Uint16Array(n),e.HEAPU32=b=new Uint32Array(n),e.HEAPF32=w=new Float32Array(n),e.HEAPF64=_=new Float64Array(n),e.HEAP64=A=new BigInt64Array(n),e.HEAPU64=T=new BigUint64Array(n)}var W,j=[],E=[],O=[];function S(){var n=e.preRun.shift();j.unshift(n)}var F,U=0,R=null;function I(n){throw e.onAbort&&e.onAbort(n),l(n="Aborted("+n+")"),P=!0,n=new WebAssembly.RuntimeError(n+". Build with -sASSERTIONS for more info."),o(n),n}function x(){return F.startsWith("data:application/octet-stream;base64,")}if(F="arcgis-knowledge-client-core.wasm",!x()){var V=F;F=e.locateFile?e.locateFile(V,c):c+V}function H(){var n=F;try{if(n==F&&s)return new Uint8Array(s);throw"both async and sync fetching of the wasm failed"}catch(t){I(t)}}function B(){return s||"function"!=typeof fetch?Promise.resolve().then((function(){return H()})):fetch(F,{credentials:"same-origin"}).then((function(n){if(!n.ok)throw"failed to load wasm binary file at '"+F+"'";return n.arrayBuffer()})).catch((function(){return H()}))}function D(n){for(;0<n.length;)n.shift()(e)}function z(n){this.da=n-24,this.Oa=function(n){b[this.da+4>>2]=n},this.Fa=function(n){b[this.da+8>>2]=n},this.Ga=function(){g[this.da>>2]=0},this.Ca=function(){d[this.da+12>>0]=0},this.Ia=function(){d[this.da+13>>0]=0},this.za=function(n,t){this.Aa(),this.Oa(n),this.Fa(t),this.Ga(),this.Ca(),this.Ia()},this.Aa=function(){b[this.da+16>>2]=0}}var M={};function N(n){for(;n.length;){var t=n.pop();n.pop()(t)}}function q(n){return this.fromWireType(g[n>>2])}var L={},G={},J={};function K(n){if(void 0===n)return"_unknown";var t=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?"_"+n:n}function Q(n,t){return n=K(n),function(){return t.apply(this,arguments)}}function X(n){var t=Error,e=Q(n,(function(t){this.name=n,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},e}var Y=void 0;function Z(n){throw new Y(n)}function nn(n,t,e){function r(t){(t=e(t)).length!==n.length&&Z("Mismatched type converter count");for(var r=0;r<n.length;++r)un(n[r],t[r])}n.forEach((function(n){J[n]=t}));var a=Array(t.length),o=[],i=0;t.forEach(((n,t)=>{G.hasOwnProperty(n)?a[t]=G[n]:(o.push(n),L.hasOwnProperty(n)||(L[n]=[]),L[n].push((()=>{a[t]=G[n],++i===o.length&&r(a)})))})),0===o.length&&r(a)}function tn(n){if(null===n)return"null";var t=typeof n;return"object"===t||"array"===t||"function"===t?n.toString():""+n}var en=void 0;function rn(n){for(var t="";v[n];)t+=en[v[n++]];return t}var an=void 0;function on(n){throw new an(n)}function un(n,t,e={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var r=t.name;if(n||on('type "'+r+'" must have a positive integer typeid pointer'),G.hasOwnProperty(n)){if(e.Pa)return;on("Cannot register type '"+r+"' twice")}G[n]=t,delete J[n],L.hasOwnProperty(n)&&(t=L[n],delete L[n],t.forEach((n=>n())))}function cn(n,t,e){switch(t){case 0:return e?function(n){return d[n]}:function(n){return v[n]};case 1:return e?function(n){return m[n>>1]}:function(n){return y[n>>1]};case 2:return e?function(n){return g[n>>2]}:function(n){return b[n>>2]};case 3:return e?function(n){return A[n>>3]}:function(n){return T[n>>3]};default:throw new TypeError("Unknown integer type: "+n)}}function sn(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+n)}}function fn(n){on(n.ba.ea.ca.name+" instance already deleted")}var ln=!1;function hn(){}function pn(n){--n.count.value,0===n.count.value&&(n.ga?n.ia.ka(n.ga):n.ea.ca.ka(n.da))}function dn(n,t,e){return t===e?n:void 0===e.ja||null===(n=dn(n,t,e.ja))?null:e.Ea(n)}var vn={},mn=[];function yn(){for(;mn.length;){var n=mn.pop();n.ba.oa=!1,n.delete()}}var gn=void 0,bn={};function wn(n,t){for(void 0===t&&on("ptr should not be undefined");n.ja;)t=n.qa(t),n=n.ja;return bn[t]}function An(n,t){return t.ea&&t.da||Z("makeClassHandle requires ptr and ptrType"),!!t.ia!=!!t.ga&&Z("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Tn(Object.create(n,{ba:{value:t}}))}function Tn(n){return"undefined"==typeof FinalizationRegistry?(Tn=n=>n,n):(ln=new FinalizationRegistry((n=>{pn(n.ba)})),hn=n=>{ln.unregister(n)},(Tn=n=>{var t=n.ba;return t.ga&&ln.register(n,{ba:t},n),n})(n))}function _n(){}function Pn(n,t,e){if(void 0===n[t].fa){var r=n[t];n[t]=function(){return n[t].fa.hasOwnProperty(arguments.length)||on("Function '"+e+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+n[t].fa+")!"),n[t].fa[arguments.length].apply(this,arguments)},n[t].fa=[],n[t].fa[r.na]=r}}function Cn(n,t,r){e.hasOwnProperty(n)?((void 0===r||void 0!==e[n].fa&&void 0!==e[n].fa[r])&&on("Cannot register public name '"+n+"' twice"),Pn(e,n,n),e.hasOwnProperty(r)&&on("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),e[n].fa[r]=t):(e[n]=t,void 0!==r&&(e[n].Ya=r))}function $n(n,t,e,r,a,o,i,u){this.name=n,this.constructor=t,this.la=e,this.ka=r,this.ja=a,this.Ja=o,this.qa=i,this.Ea=u,this.Sa=[]}function kn(n,t,e){for(;t!==e;)t.qa||on("Expected null or instance of "+e.name+", got an instance of "+t.name),n=t.qa(n),t=t.ja;return n}function Wn(n,t){return null===t?(this.ta&&on("null is not a valid "+this.name),0):(t.ba||on('Cannot pass "'+tn(t)+'" as a '+this.name),t.ba.da||on("Cannot pass deleted object as a pointer of type "+this.name),kn(t.ba.da,t.ba.ea.ca,this.ca))}function jn(n,t){if(null===t){if(this.ta&&on("null is not a valid "+this.name),this.sa){var e=this.ua();return null!==n&&n.push(this.ka,e),e}return 0}if(t.ba||on('Cannot pass "'+tn(t)+'" as a '+this.name),t.ba.da||on("Cannot pass deleted object as a pointer of type "+this.name),!this.ra&&t.ba.ea.ra&&on("Cannot convert argument of type "+(t.ba.ia?t.ba.ia.name:t.ba.ea.name)+" to parameter type "+this.name),e=kn(t.ba.da,t.ba.ea.ca,this.ca),this.sa)switch(void 0===t.ba.ga&&on("Passing raw pointer to smart pointer is illegal"),this.Xa){case 0:t.ba.ia===this?e=t.ba.ga:on("Cannot convert argument of type "+(t.ba.ia?t.ba.ia.name:t.ba.ea.name)+" to parameter type "+this.name);break;case 1:e=t.ba.ga;break;case 2:if(t.ba.ia===this)e=t.ba.ga;else{var r=t.clone();e=this.Ta(e,qn((function(){r.delete()}))),null!==n&&n.push(this.ka,e)}break;default:on("Unsupporting sharing policy")}return e}function En(n,t){return null===t?(this.ta&&on("null is not a valid "+this.name),0):(t.ba||on('Cannot pass "'+tn(t)+'" as a '+this.name),t.ba.da||on("Cannot pass deleted object as a pointer of type "+this.name),t.ba.ea.ra&&on("Cannot convert argument of type "+t.ba.ea.name+" to parameter type "+this.name),kn(t.ba.da,t.ba.ea.ca,this.ca))}function On(n,t,e,r,a,o,i,u,c,s,f){this.name=n,this.ca=t,this.ta=e,this.ra=r,this.sa=a,this.Ra=o,this.Xa=i,this.ya=u,this.ua=c,this.Ta=s,this.ka=f,a||void 0!==t.ja?this.toWireType=jn:(this.toWireType=r?Wn:En,this.ha=null)}function Sn(n,t,r){e.hasOwnProperty(n)||Z("Replacing nonexistant public symbol"),void 0!==e[n].fa&&void 0!==r?e[n].fa[r]=t:(e[n]=t,e[n].na=r)}var Fn=[];function Un(n,t){n=rn(n);var e=Fn[t];return e||(t>=Fn.length&&(Fn.length=t+1),Fn[t]=e=W.get(t)),"function"!=typeof e&&on("unknown function pointer with signature "+n+": "+t),e}var Rn=void 0;function In(n){var t=rn(n=At(n));return wt(n),t}function xn(n,t){function e(n){a[n]||G[n]||(J[n]?J[n].forEach(e):(r.push(n),a[n]=!0))}var r=[],a={};throw t.forEach(e),new Rn(n+": "+r.map(In).join([", "]))}function Vn(n,t,e,r,a){var o=t.length;2>o&&on("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==t[1]&&null!==e,u=!1;for(e=1;e<t.length;++e)if(null!==t[e]&&void 0===t[e].ha){u=!0;break}var c="void"!==t[0].name,s=o-2,f=Array(s),l=[],h=[];return function(){if(arguments.length!==s&&on("function "+n+" called with "+arguments.length+" arguments, expected "+s+" args!"),h.length=0,l.length=i?2:1,l[0]=a,i){var e=t[1].toWireType(h,this);l[1]=e}for(var o=0;o<s;++o)f[o]=t[o+2].toWireType(h,arguments[o]),l.push(f[o]);if(o=r.apply(null,l),u)N(h);else for(var p=i?1:2;p<t.length;p++){var d=1===p?e:f[p-2];null!==t[p].ha&&t[p].ha(d)}return e=c?t[0].fromWireType(o):void 0}}function Hn(n,t){for(var e=[],r=0;r<n;r++)e.push(b[t+4*r>>2]);return e}function Bn(n,t,e){return n instanceof Object||on(e+' with invalid "this": '+n),n instanceof t.ca.constructor||on(e+' incompatible with "this" of type '+n.constructor.name),n.ba.da||on("cannot call emscripten binding method "+e+" on deleted object"),kn(n.ba.da,n.ba.ea.ca,t.ca)}var Dn=[],zn=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Mn(n){4<n&&0==--zn[n].va&&(zn[n]=void 0,Dn.push(n))}var Nn=n=>(n||on("Cannot use deleted val. handle = "+n),zn[n].value),qn=n=>{switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=Dn.length?Dn.pop():zn.length;return zn[t]={va:1,value:n},t}};function Ln(n,t,e){switch(t){case 0:return function(n){return this.fromWireType((e?d:v)[n])};case 1:return function(n){return this.fromWireType((e?m:y)[n>>1])};case 2:return function(n){return this.fromWireType((e?g:b)[n>>2])};default:throw new TypeError("Unknown integer type: "+n)}}function Gn(n,t){var e=G[n];return void 0===e&&on(t+" has unknown type "+In(n)),e}function Jn(n,t){switch(t){case 2:return function(n){return this.fromWireType(w[n>>2])};case 3:return function(n){return this.fromWireType(_[n>>3])};default:throw new TypeError("Unknown float type: "+n)}}var Kn="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function Qn(n,t){for(var e=n>>1,r=e+t/2;!(e>=r)&&y[e];)++e;if(32<(e<<=1)-n&&Kn)return Kn.decode(v.subarray(n,e));for(e="",r=0;!(r>=t/2);++r){var a=m[n+2*r>>1];if(0==a)break;e+=String.fromCharCode(a)}return e}function Xn(n,t,e){if(void 0===e&&(e=2147483647),2>e)return 0;var r=t;e=(e-=2)<2*n.length?e/2:n.length;for(var a=0;a<e;++a)m[t>>1]=n.charCodeAt(a),t+=2;return m[t>>1]=0,t-r}function Yn(n){return 2*n.length}function Zn(n,t){for(var e=0,r="";!(e>=t/4);){var a=g[n+4*e>>2];if(0==a)break;++e,65536<=a?(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a)):r+=String.fromCharCode(a)}return r}function nt(n,t,e){if(void 0===e&&(e=2147483647),4>e)return 0;var r=t;e=r+e-4;for(var a=0;a<n.length;++a){var o=n.charCodeAt(a);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&n.charCodeAt(++a)),g[t>>2]=o,(t+=4)+4>e)break}return g[t>>2]=0,t-r}function tt(n){for(var t=0,e=0;e<n.length;++e){var r=n.charCodeAt(e);55296<=r&&57343>=r&&++e,t+=4}return t}function et(n,t){for(var e=Array(n),r=0;r<n;++r)e[r]=Gn(b[t+4*r>>2],"parameter "+r);return e}var rt={};function at(n){var t=rt[n];return void 0===t?rn(n):t}var ot=[];function it(){function t(n){n.$$$embind_global$$$=n;var t="object"==typeof $$$embind_global$$$&&n.$$$embind_global$$$==n;return t||delete n.$$$embind_global$$$,t}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof n&&t(n)?$$$embind_global$$$=n:"object"==typeof self&&t(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")}function ut(n){var t=ot.length;return ot.push(n),t}var ct=[];function st(n){var t=Array(n+1);return function(e,r,a){t[0]=e;for(var o=0;o<n;++o){var i=Gn(b[r+4*o>>2],"parameter "+o);t[o+1]=i.readValueFromPointer(a),a+=i.argPackAdvance}return e=new(e.bind.apply(e,t)),qn(e)}}var ft={},lt={};function ht(){if(!pt){var n,t={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(n in lt)void 0===lt[n]?delete t[n]:t[n]=lt[n];var e=[];for(n in t)e.push(n+"="+t[n]);pt=e}return pt}var pt,dt=[null,[],[]];Y=e.InternalError=X("InternalError");for(var vt=Array(256),mt=0;256>mt;++mt)vt[mt]=String.fromCharCode(mt);en=vt,an=e.BindingError=X("BindingError"),_n.prototype.isAliasOf=function(n){if(!(this instanceof _n&&n instanceof _n))return!1;var t=this.ba.ea.ca,e=this.ba.da,r=n.ba.ea.ca;for(n=n.ba.da;t.ja;)e=t.qa(e),t=t.ja;for(;r.ja;)n=r.qa(n),r=r.ja;return t===r&&e===n},_n.prototype.clone=function(){if(this.ba.da||fn(this),this.ba.pa)return this.ba.count.value+=1,this;var n=Tn,t=Object,e=t.create,r=Object.getPrototypeOf(this),a=this.ba;return(n=n(e.call(t,r,{ba:{value:{count:a.count,oa:a.oa,pa:a.pa,da:a.da,ea:a.ea,ga:a.ga,ia:a.ia}}}))).ba.count.value+=1,n.ba.oa=!1,n},_n.prototype.delete=function(){this.ba.da||fn(this),this.ba.oa&&!this.ba.pa&&on("Object already scheduled for deletion"),hn(this),pn(this.ba),this.ba.pa||(this.ba.ga=void 0,this.ba.da=void 0)},_n.prototype.isDeleted=function(){return!this.ba.da},_n.prototype.deleteLater=function(){return this.ba.da||fn(this),this.ba.oa&&!this.ba.pa&&on("Object already scheduled for deletion"),mn.push(this),1===mn.length&&gn&&gn(yn),this.ba.oa=!0,this},e.getInheritedInstanceCount=function(){return Object.keys(bn).length},e.getLiveInheritedInstances=function(){var n,t=[];for(n in bn)bn.hasOwnProperty(n)&&t.push(bn[n]);return t},e.flushPendingDeletes=yn,e.setDelayFunction=function(n){gn=n,mn.length&&gn&&gn(yn)},On.prototype.Ka=function(n){return this.ya&&(n=this.ya(n)),n},On.prototype.wa=function(n){this.ka&&this.ka(n)},On.prototype.argPackAdvance=8,On.prototype.readValueFromPointer=q,On.prototype.deleteObject=function(n){null!==n&&n.delete()},On.prototype.fromWireType=function(n){function t(){return this.sa?An(this.ca.la,{ea:this.Ra,da:e,ia:this,ga:n}):An(this.ca.la,{ea:this,da:n})}var e=this.Ka(n);if(!e)return this.wa(n),null;var r=wn(this.ca,e);if(void 0!==r)return 0===r.ba.count.value?(r.ba.da=e,r.ba.ga=n,r.clone()):(r=r.clone(),this.wa(n),r);if(r=this.ca.Ja(e),!(r=vn[r]))return t.call(this);r=this.ra?r.Ba:r.pointerType;var a=dn(e,this.ca,r.ca);return null===a?t.call(this):this.sa?An(r.ca.la,{ea:r,da:a,ia:this,ga:n}):An(r.ca.la,{ea:r,da:a})},Rn=e.UnboundTypeError=X("UnboundTypeError"),e.count_emval_handles=function(){for(var n=0,t=5;t<zn.length;++t)void 0!==zn[t]&&++n;return n},e.get_first_emval=function(){for(var n=5;n<zn.length;++n)if(void 0!==zn[n])return zn[n];return null};var yt={j:function(n){return bt(n+24)+24},i:function(n,t,e){throw new z(n).za(t,e),n},t:function(n){var t=M[n];delete M[n];var e=t.ua,r=t.ka,a=t.xa;nn([n],a.map((n=>n.Na)).concat(a.map((n=>n.Va))),(n=>{var o={};return a.forEach(((t,e)=>{var r=n[e],i=t.La,u=t.Ma,c=n[e+a.length],s=t.Ua,f=t.Wa;o[t.Ha]={read:n=>r.fromWireType(i(u,n)),write:(n,t)=>{var e=[];s(f,n,c.toWireType(e,t)),N(e)}}})),[{name:t.name,fromWireType:function(n){var t,e={};for(t in o)e[t]=o[t].read(n);return r(n),e},toWireType:function(n,t){for(var a in o)if(!(a in t))throw new TypeError('Missing field: "'+a+'"');var i=e();for(a in o)o[a].write(i,t[a]);return null!==n&&n.push(r,i),i},argPackAdvance:8,readValueFromPointer:q,ha:r}]}))},B:function(n,t,e,r,a){t=rn(t),e=sn(e);var o=-1!=t.indexOf("u");o&&(a=(1n<<64n)-1n),un(n,{name:t,fromWireType:function(n){return n},toWireType:function(n,e){if("bigint"!=typeof e&&"number"!=typeof e)throw new TypeError('Cannot convert "'+tn(e)+'" to '+this.name);if(e<r||e>a)throw new TypeError('Passing a number "'+tn(e)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+r+", "+a+"]!");return e},argPackAdvance:8,readValueFromPointer:cn(t,e,!o),ha:null})},Q:function(n,t,e,r,a){var o=sn(e);un(n,{name:t=rn(t),fromWireType:function(n){return!!n},toWireType:function(n,t){return t?r:a},argPackAdvance:8,readValueFromPointer:function(n){if(1===e)var r=d;else if(2===e)r=m;else{if(4!==e)throw new TypeError("Unknown boolean type size: "+t);r=g}return this.fromWireType(r[n>>o])},ha:null})},f:function(n,t,e,r,a,o,i,u,c,s,f,l,h){f=rn(f),o=Un(a,o),u&&(u=Un(i,u)),s&&(s=Un(c,s)),h=Un(l,h);var p=K(f);Cn(p,(function(){xn("Cannot construct "+f+" due to unbound types",[r])})),nn([n,t,e],r?[r]:[],(function(t){if(t=t[0],r)var e=t.ca,a=e.la;else a=_n.prototype;t=Q(p,(function(){if(Object.getPrototypeOf(this)!==i)throw new an("Use 'new' to construct "+f);if(void 0===c.ma)throw new an(f+" has no accessible constructor");var n=c.ma[arguments.length];if(void 0===n)throw new an("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(c.ma).toString()+") parameters instead!");return n.apply(this,arguments)}));var i=Object.create(a,{constructor:{value:t}});t.prototype=i;var c=new $n(f,t,i,h,e,o,u,s);e=new On(f,c,!0,!1,!1),a=new On(f+"*",c,!1,!1,!1);var l=new On(f+" const*",c,!1,!0,!1);return vn[n]={pointerType:a,Ba:l},Sn(p,t),[e,a,l]}))},F:function(n,t,e,r,a,o,i){var u=Hn(e,r);t=rn(t),o=Un(a,o),nn([],[n],(function(n){function r(){xn("Cannot call "+a+" due to unbound types",u)}var a=(n=n[0]).name+"."+t;t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var c=n.ca.constructor;return void 0===c[t]?(r.na=e-1,c[t]=r):(Pn(c,t,a),c[t].fa[e-1]=r),nn([],u,(function(n){return n=Vn(a,[n[0],null].concat(n.slice(1)),null,o,i),void 0===c[t].fa?(n.na=e-1,c[t]=n):c[t].fa[e-1]=n,[]})),[]}))},p:function(n,t,e,r,a,o){0<t||I();var i=Hn(t,e);a=Un(r,a),nn([],[n],(function(n){var e="constructor "+(n=n[0]).name;if(void 0===n.ca.ma&&(n.ca.ma=[]),void 0!==n.ca.ma[t-1])throw new an("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+n.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return n.ca.ma[t-1]=()=>{xn("Cannot construct "+n.name+" due to unbound types",i)},nn([],i,(function(r){return r.splice(1,0,null),n.ca.ma[t-1]=Vn(e,r,null,a,o),[]})),[]}))},c:function(n,t,e,r,a,o,i,u){var c=Hn(e,r);t=rn(t),o=Un(a,o),nn([],[n],(function(n){function r(){xn("Cannot call "+a+" due to unbound types",c)}var a=(n=n[0]).name+"."+t;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),u&&n.ca.Sa.push(t);var s=n.ca.la,f=s[t];return void 0===f||void 0===f.fa&&f.className!==n.name&&f.na===e-2?(r.na=e-2,r.className=n.name,s[t]=r):(Pn(s,t,a),s[t].fa[e-2]=r),nn([],c,(function(r){return r=Vn(a,r,n,o,i),void 0===s[t].fa?(r.na=e-2,s[t]=r):s[t].fa[e-2]=r,[]})),[]}))},b:function(n,t,e,r,a,o,i,u,c,s){t=rn(t),a=Un(r,a),nn([],[n],(function(n){var r=(n=n[0]).name+"."+t,f={get:function(){xn("Cannot access "+r+" due to unbound types",[e,i])},enumerable:!0,configurable:!0};return f.set=c?()=>{xn("Cannot access "+r+" due to unbound types",[e,i])}:()=>{on(r+" is a read-only property")},Object.defineProperty(n.ca.la,t,f),nn([],c?[e,i]:[e],(function(e){var i=e[0],f={get:function(){var t=Bn(this,n,r+" getter");return i.fromWireType(a(o,t))},enumerable:!0};if(c){c=Un(u,c);var l=e[1];f.set=function(t){var e=Bn(this,n,r+" setter"),a=[];c(s,e,l.toWireType(a,t)),N(a)}}return Object.defineProperty(n.ca.la,t,f),[]})),[]}))},P:function(n,t){un(n,{name:t=rn(t),fromWireType:function(n){var t=Nn(n);return Mn(n),t},toWireType:function(n,t){return qn(t)},argPackAdvance:8,readValueFromPointer:q,ha:null})},s:function(n,t,e,r){function a(){}e=sn(e),t=rn(t),a.values={},un(n,{name:t,constructor:a,fromWireType:function(n){return this.constructor.values[n]},toWireType:function(n,t){return t.value},argPackAdvance:8,readValueFromPointer:Ln(t,e,r),ha:null}),Cn(t,a)},e:function(n,t,e){var r=Gn(n,"enum");t=rn(t),n=r.constructor,r=Object.create(r.constructor.prototype,{value:{value:e},constructor:{value:Q(r.name+"_"+t,(function(){}))}}),n.values[e]=r,n[t]=r},A:function(n,t,e){e=sn(e),un(n,{name:t=rn(t),fromWireType:function(n){return n},toWireType:function(n,t){return t},argPackAdvance:8,readValueFromPointer:Jn(t,e),ha:null})},T:function(n,t,e,r,a,o){var i=Hn(t,e);n=rn(n),a=Un(r,a),Cn(n,(function(){xn("Cannot call "+n+" due to unbound types",i)}),t-1),nn([],i,(function(e){return Sn(n,Vn(n,[e[0],null].concat(e.slice(1)),null,a,o),t-1),[]}))},q:function(n,t,e,r,a){t=rn(t),-1===a&&(a=4294967295),a=sn(e);var o=n=>n;if(0===r){var i=32-8*e;o=n=>n<<i>>>i}e=t.includes("unsigned")?function(n,t){return t>>>0}:function(n,t){return t},un(n,{name:t,fromWireType:o,toWireType:e,argPackAdvance:8,readValueFromPointer:cn(t,a,0!==r),ha:null})},l:function(n,t,e){function r(n){var t=b;return new a(p,t[1+(n>>=2)],t[n])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][t];un(n,{name:e=rn(e),fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{Pa:!0})},k:function(n,t,e,r,a,o,i,u,c,s,f,l){e=rn(e),o=Un(a,o),u=Un(i,u),s=Un(c,s),l=Un(f,l),nn([n],[t],(function(n){return n=n[0],[new On(e,n.ca,!1,!1,!0,n,r,o,u,s,l)]}))},C:function(n,t){var e="std::string"===(t=rn(t));un(n,{name:t,fromWireType:function(n){var t=b[n>>2],r=n+4;if(e)for(var a=r,o=0;o<=t;++o){var i=r+o;if(o==t||0==v[i]){if(a=a?$(v,a,i-a):"",void 0===u)var u=a;else u+=String.fromCharCode(0),u+=a;a=i+1}}else{for(u=Array(t),o=0;o<t;++o)u[o]=String.fromCharCode(v[r+o]);u=u.join("")}return wt(n),u},toWireType:function(n,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r,a,o="string"==typeof t;if(o||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||on("Cannot pass non-string to std::string"),e&&o)for(r=a=0;r<t.length;++r){var i=t.charCodeAt(r);127>=i?a++:2047>=i?a+=2:55296<=i&&57343>=i?(a+=4,++r):a+=3}else a=t.length;if(i=(a=bt(4+(r=a)+1))+4,b[a>>2]=r,e&&o){if(o=i,i=r+1,r=v,0<i){i=o+i-1;for(var u=0;u<t.length;++u){var c=t.charCodeAt(u);if(55296<=c&&57343>=c&&(c=65536+((1023&c)<<10)|1023&t.charCodeAt(++u)),127>=c){if(o>=i)break;r[o++]=c}else{if(2047>=c){if(o+1>=i)break;r[o++]=192|c>>6}else{if(65535>=c){if(o+2>=i)break;r[o++]=224|c>>12}else{if(o+3>=i)break;r[o++]=240|c>>18,r[o++]=128|c>>12&63}r[o++]=128|c>>6&63}r[o++]=128|63&c}}r[o]=0}}else if(o)for(o=0;o<r;++o)255<(u=t.charCodeAt(o))&&(wt(i),on("String has UTF-16 code units that do not fit in 8 bits")),v[i+o]=u;else for(o=0;o<r;++o)v[i+o]=t[o];return null!==n&&n.push(wt,a),a},argPackAdvance:8,readValueFromPointer:q,ha:function(n){wt(n)}})},x:function(n,t,e){if(e=rn(e),2===t)var r=Qn,a=Xn,o=Yn,i=()=>y,u=1;else 4===t&&(r=Zn,a=nt,o=tt,i=()=>b,u=2);un(n,{name:e,fromWireType:function(n){for(var e,a=b[n>>2],o=i(),c=n+4,s=0;s<=a;++s){var f=n+4+s*t;s!=a&&0!=o[f>>u]||(c=r(c,f-c),void 0===e?e=c:(e+=String.fromCharCode(0),e+=c),c=f+t)}return wt(n),e},toWireType:function(n,r){"string"!=typeof r&&on("Cannot pass non-string to C++ string type "+e);var i=o(r),c=bt(4+i+t);return b[c>>2]=i>>u,a(r,c+4,i+t),null!==n&&n.push(wt,c),c},argPackAdvance:8,readValueFromPointer:q,ha:function(n){wt(n)}})},u:function(n,t,e,r,a,o){M[n]={name:rn(t),ua:Un(e,r),ka:Un(a,o),xa:[]}},h:function(n,t,e,r,a,o,i,u,c,s){M[n].xa.push({Ha:rn(t),Na:e,La:Un(r,a),Ma:o,Va:i,Ua:Un(u,c),Wa:s})},R:function(n,t){un(n,{Qa:!0,name:t=rn(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},n:function(n,t,e){n=Nn(n),t=Gn(t,"emval::as");var r=[],a=qn(r);return b[e>>2]=a,t.toWireType(r,n)},U:function(n,t,e,r){n=Nn(n),e=et(t,e);for(var a=Array(t),o=0;o<t;++o){var i=e[o];a[o]=i.readValueFromPointer(r),r+=i.argPackAdvance}return n=n.apply(void 0,a),qn(n)},S:function(n,t,e,r,a){n=ot[n],t=Nn(t),e=at(e);var o=[];return b[r>>2]=qn(o),n(t,e,o,a)},E:function(n,t,e,r){(n=ot[n])(t=Nn(t),e=at(e),null,r)},a:Mn,v:function(n){return 0===n?qn(it()):(n=at(n),qn(it()[n]))},y:function(n,t){var e=et(n,t),r=e[0];t=r.name+"_$"+e.slice(1).map((function(n){return n.name})).join("_")+"$";var a=ct[t];if(void 0!==a)return a;var o=Array(n-1);return a=ut(((t,a,i,u)=>{for(var c=0,s=0;s<n-1;++s)o[s]=e[s+1].readValueFromPointer(u+c),c+=e[s+1].argPackAdvance;for(t=t[a].apply(t,o),s=0;s<n-1;++s)e[s+1].Da&&e[s+1].Da(o[s]);if(!r.Qa)return r.toWireType(i,t)})),ct[t]=a},r:function(n,t){return n=Nn(n),t=Nn(t),qn(n[t])},g:function(n){4<n&&(zn[n].va+=1)},H:function(n,t){return(n=Nn(n))instanceof(t=Nn(t))},N:function(n){return"number"==typeof(n=Nn(n))},D:function(n){return"string"==typeof(n=Nn(n))},G:function(n,t,e,r){n=Nn(n);var a=ft[t];return a||(a=st(t),ft[t]=a),a(n,e,r)},o:function(n){return qn(at(n))},m:function(n){N(Nn(n)),Mn(n)},d:function(n,t){return n=(n=Gn(n,"_emval_take_value")).readValueFromPointer(t),qn(n)},z:function(){I("")},K:function(n,t,e){v.copyWithin(n,t,t+e)},w:function(n){var t=v.length;if(2147483648<(n>>>=0))return!1;for(var e=1;4>=e;e*=2){var r=t*(1+.2/e);r=Math.min(r,n+100663296);var a=Math;r=Math.max(n,r),a=a.min.call(a,2147483648,r+(65536-r%65536)%65536);n:{try{h.grow(a-p.byteLength+65535>>>16),k();var o=1;break n}catch(i){}o=void 0}if(o)return!0}return!1},I:function(n,t){var e=0;return ht().forEach((function(r,a){var o=t+e;for(a=b[n+4*a>>2]=o,o=0;o<r.length;++o)d[a++>>0]=r.charCodeAt(o);d[a>>0]=0,e+=r.length+1})),0},J:function(n,t){var e=ht();b[n>>2]=e.length;var r=0;return e.forEach((function(n){r+=n.length+1})),b[t>>2]=r,0},O:function(){return 52},M:function(){return 70},L:function(n,t,e,r){for(var a=0,o=0;o<e;o++){var i=b[t>>2],u=b[t+4>>2];t+=8;for(var c=0;c<u;c++){var s=v[i+c],h=dt[n];0===s||10===s?((1===n?f:l)($(h,0)),h.length=0):h.push(s)}a+=u}return b[r>>2]=a,0}};!function(){function n(n){e.asm=n.exports,h=e.asm.V,k(),W=e.asm.$,E.unshift(e.asm.W),U--,e.monitorRunDependencies&&e.monitorRunDependencies(U),0==U&&R&&(n=R,R=null,n())}function t(t){n(t.instance)}function r(n){return B().then((function(n){return WebAssembly.instantiate(n,a)})).then((function(n){return n})).then(n,(function(n){l("failed to asynchronously prepare wasm: "+n),I(n)}))}var a={a:yt};if(U++,e.monitorRunDependencies&&e.monitorRunDependencies(U),e.instantiateWasm)try{return e.instantiateWasm(a,n)}catch(i){return l("Module.instantiateWasm callback failed with error: "+i),!1}(s||"function"!=typeof WebAssembly.instantiateStreaming||x()||"function"!=typeof fetch?r(t):fetch(F,{credentials:"same-origin"}).then((function(n){return WebAssembly.instantiateStreaming(n,a).then(t,(function(n){return l("wasm streaming compile failed: "+n),l("falling back to ArrayBuffer instantiation"),r(t)}))}))).catch(o)}(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.W).apply(null,arguments)};var gt,bt=e._malloc=function(){return(bt=e._malloc=e.asm.X).apply(null,arguments)},wt=e._free=function(){return(wt=e._free=e.asm.Y).apply(null,arguments)},At=e.___getTypeName=function(){return(At=e.___getTypeName=e.asm.Z).apply(null,arguments)};function Tt(){function n(){if(!gt&&(gt=!0,e.calledRun=!0,!P)){if(D(E),a(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var n=e.postRun.shift();O.unshift(n)}D(O)}}if(!(0<U)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)S();D(j),0<U||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),n()}),1)):n())}}if(e.__embind_initialize_bindings=function(){return(e.__embind_initialize_bindings=e.asm._).apply(null,arguments)},e.___cxa_is_pointer_type=function(){return(e.___cxa_is_pointer_type=e.asm.aa).apply(null,arguments)},R=function n(){gt||Tt(),gt||(R=n)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();return Tt(),t.ready},e.exports=a;const i=t({__proto__:null,default:o.exports},[o.exports]);export{i as a};
|