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