@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
1 lines • 16.1 kB
JavaScript
;(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2423],{2423(r,e,t){t.d(e,{default:()=>a});var n,a=(n="undefined"!=typeof document?document.currentScript?.src:void 0,function(r={}){var e,a,o,i=r,u=new Promise((r,t)=>{e=r,a=t}),s=Object.assign({},i),c="";"undefined"!=typeof document&&document.currentScript&&(c=document.currentScript.src),n&&(c=n),c=c.startsWith("blob:")?"":c.substr(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1),o=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)},i.print||console.log.bind(console);var l=i.printErr||console.error.bind(console);Object.assign(i,s),s=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram;var f,d,h,p,v,m,g,y,b,w=i.wasmBinary,$=!1;function A(){var r=f.buffer;i.HEAP8=d=new Int8Array(r),i.HEAP16=p=new Int16Array(r),i.HEAPU8=h=new Uint8Array(r),i.HEAPU16=v=new Uint16Array(r),i.HEAP32=m=new Int32Array(r),i.HEAPU32=g=new Uint32Array(r),i.HEAPF32=y=new Float32Array(r),i.HEAPF64=b=new Float64Array(r)}var T=[],C=[],P=[];function W(r){T.unshift(r)}function E(r){P.unshift(r)}var _=0,F=null;function k(r){i.onAbort?.(r),l(r="Aborted("+r+")"),$=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw a(e),e}var R,S=r=>r.startsWith("data:application/octet-stream;base64,");async function j(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming&&!S(e)&&"function"==typeof fetch)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){l(`wasm streaming compile failed: ${r}`),l("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await async function(r){if(!w)try{var e=await o(r);return new Uint8Array(e)}catch{}return function(r){if(r==R&&w)return new Uint8Array(w);throw"both async and sync fetching of the wasm failed"}(r)}(r);return await WebAssembly.instantiate(t,e)}catch(r){l(`failed to asynchronously prepare wasm: ${r}`),k(r)}}(e,t)}var x=r=>{for(;r.length>0;)r.shift()(i)};i.noExitRuntime;class I{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){g[this.ptr+4>>2]=r}get_type(){return g[this.ptr+4>>2]}set_destructor(r){g[this.ptr+8>>2]=r}get_destructor(){return g[this.ptr+8>>2]}set_caught(r){r=r?1:0,d[this.ptr+12]=r}get_caught(){return 0!=d[this.ptr+12]}set_rethrown(r){r=r?1:0,d[this.ptr+13]=r}get_rethrown(){return 0!=d[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){g[this.ptr+16>>2]=r}get_adjusted_ptr(){return g[this.ptr+16>>2]}}var U={},O=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function D(r){return this.fromWireType(g[r>>2])}var V,H,B,M={},N={},z={},q=r=>{throw new V(r)},G=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&q("Mismatched type converter count");for(var a=0;a<r.length;++a)K(r[a],n[a])}r.forEach(r=>z[r]=e);var a=new Array(e.length),o=[],i=0;e.forEach((r,e)=>{N.hasOwnProperty(r)?a[e]=N[r]:(o.push(r),M.hasOwnProperty(r)||(M[r]=[]),M[r].push(()=>{a[e]=N[r],++i===o.length&&n(a)}))}),0===o.length&&n(a)},L=r=>{for(var e="",t=r;h[t];)e+=H[h[t++]];return e},J=r=>{throw new B(r)};function K(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||J(`type "${n}" must have a positive integer typeid pointer`),N.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;J(`Cannot register type '${n}' twice`)}if(N[r]=e,delete z[r],M.hasOwnProperty(r)){var a=M[r];delete M[r],a.forEach(r=>r())}}(r,e,t)}var Q,X,Y=[],Z=[],rr=r=>{r>9&&0===--Z[r+1]&&(Z[r]=void 0,Y.push(r))},er=r=>(r||J("Cannot use deleted val. handle = "+r),Z[r]),tr=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Y.pop()||Z.length;return Z[e]=r,Z[e+1]=1,e}}},nr={name:"emscripten::val",fromWireType:r=>{var e=er(r);return rr(r),e},toWireType:(r,e)=>tr(e),argPackAdvance:8,readValueFromPointer:D,destructorFunction:null},ar=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(y[r>>2])};case 8:return function(r){return this.fromWireType(b[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},or=(r,e)=>Object.defineProperty(e,"name",{value:r}),ir=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||J(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},ur=(r,e,t)=>{i.hasOwnProperty(r)?((void 0===t||void 0!==i[r].overloadTable&&void 0!==i[r].overloadTable[t])&&J(`Cannot register public name '${r}' twice`),ir(i,r,r),i[r].overloadTable.hasOwnProperty(t)&&J(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),i[r].overloadTable[t]=e):(i[r]=e,i[r].argCount=t)},sr=(r,e,t)=>{i.hasOwnProperty(r)||q("Replacing nonexistent public symbol"),void 0!==i[r].overloadTable&&void 0!==t?i[r].overloadTable[t]=e:(i[r]=e,i[r].argCount=t)},cr=[],lr=r=>{var e=cr[r];return e||(r>=cr.length&&(cr.length=r+1),cr[r]=e=Q.get(r)),e},fr=(r,e)=>{var t=(r=L(r)).includes("j")?((r,e)=>(...t)=>((r,e,t=[])=>r.includes("j")?((r,e,t)=>(r=r.replace(/p/g,"i"),(0,i["dynCall_"+r])(e,...t)))(r,e,t):lr(e)(...t))(r,e,t))(r,e):lr(e);return"function"!=typeof t&&J(`unknown function pointer with signature ${r}: ${e}`),t},dr=r=>{var e=Ir(r),t=L(e);return Or(e),t},hr=(r,e,t)=>{switch(e){case 1:return t?r=>d[r]:r=>h[r];case 2:return t?r=>p[r>>1]:r=>v[r>>1];case 4:return t?r=>m[r>>2]:r=>g[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},pr="undefined"!=typeof TextDecoder?new TextDecoder:void 0,vr=(r,e)=>r?((r,e=0,t=NaN)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&pr)return pr.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var c=i-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o})(h,r,e):"",mr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,gr=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&v[n];)++n;if((t=n<<1)-r>32&&mr)return mr.decode(h.subarray(r,t));for(var o="",i=0;!(i>=e/2);++i){var u=p[r+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},yr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);p[e>>1]=i,e+=2}return p[e>>1]=0,e-n},br=r=>2*r.length,wr=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=m[r+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},$r=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++o)),m[e>>2]=i,(e+=4)+4>a)break}return m[e>>2]=0,e-n},Ar=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Tr=(r,e)=>{var t=N[r];return void 0===t&&J(`${e} has unknown type ${dr(r)}`),t},Cr=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(g[e>>2]=tr(n)),a},Pr=[],Wr={},Er=r=>{var e=Wr[r];return void 0===e?L(r):e},_r=()=>{if("object"==typeof globalThis)return globalThis;function r(r){r.$$$embind_global$$$=r;var e="object"==typeof $$$embind_global$$$&&r.$$$embind_global$$$==r;return e||delete r.$$$embind_global$$$,e}if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof t.g&&r(t.g)?$$$embind_global$$$=t.g:"object"==typeof self&&r(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")},Fr=Reflect.construct,kr=(r,e)=>Math.ceil(r/e)*e,Rr=r=>{var e=(r-f.buffer.byteLength+65535)/65536|0;try{return f.grow(e),A(),1}catch(r){}};V=i.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},(()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);H=r})(),B=i.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},Z.push(0,1,void 0,1,null,1,!0,1,!1,1),i.count_emval_handles=()=>Z.length/2-5-Y.length,X=i.UnboundTypeError=((r,e)=>{var t=or(e,function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError");var Sr,jr={g:(r,e,t)=>{throw new I(r).init(e,t),r},r:()=>k(""),m:r=>{var e=U[r];delete U[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map(r=>r.getterReturnType).concat(a.map(r=>r.setterArgumentType));G([r],o,r=>{var o={};return a.forEach((e,t)=>{var n=e.fieldName,i=r[t],u=e.getter,s=e.getterContext,c=r[t+a.length],l=e.setter,f=e.setterContext;o[n]={read:r=>i.fromWireType(u(s,r)),write:(r,e)=>{var t=[];l(f,r,c.toWireType(t,e)),O(t)}}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:D,destructorFunction:n}]})},q:(r,e,t,n,a)=>{},w:(r,e,t,n)=>{K(r,{name:e=L(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(h[r])},destructorFunction:null})},u:r=>K(r,nr),l:(r,e,t)=>{K(r,{name:e=L(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:ar(e,t),destructorFunction:null})},y:(r,e,t,n,a,o,i,u)=>{var s=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(g[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1!==e?r.substr(0,e):r})(r=L(r)),a=fr(n,a),ur(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||N[e]||(z[e]?z[e].forEach(r):(t.push(e),n[e]=!0))}),new X(`${r}: `+t.map(dr).join([", "]))})(`Cannot call ${r} due to unbound types`,s)},e-1),G([],s,t=>{var n=[t[0],null].concat(t.slice(1));return sr(r,function(r,e,t,n,a){var o=e.length;o<2&&J("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var i=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),u="void"!==e[0].name,s=o-2,c=new Array(s),l=[],f=[];return or(r,function(...r){f.length=0,l.length=1,l[0]=a;for(var t=0;t<s;++t)c[t]=e[t+2].toWireType(f,r[t]),l.push(c[t]);return function(r){if(i)O(f);else for(var t=2;t<e.length;t++){var n=1===t?void 0:c[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(u)return e[0].fromWireType(r)}(n(...l))})}(r,n,0,a,o),e-1),[]})},d:(r,e,t,n,a)=>{e=L(e);var o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i}var u=e.includes("unsigned");K(r,{name:e,fromWireType:o,toWireType:u?function(r,e){return this.name,e>>>0}:function(r,e){return this.name,e},argPackAdvance:8,readValueFromPointer:hr(e,t,0!==n),destructorFunction:null})},a:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=g[r>>2],t=g[r+4>>2];return new n(d.buffer,t,e)}K(r,{name:t=L(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},v:(r,e)=>{K(r,{name:e=L(e),fromWireType(r){for(var e,t=g[r>>2],n=r+4,a=n,o=0;o<=t;++o){var i=n+o;if(o==t||0==h[i]){var u=vr(a,i-a);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),a=i+1}}return Or(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||J("Cannot pass non-string to std::string"),t=n?(r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e})(e):e.length;var a=Ur(4+t+1),o=a+4;if(g[a>>2]=t,n)((r,e,t)=>{((r,e,t,n)=>{if(!(n>0))return 0;for(var a=t+n-1,o=0;o<r.length;++o){var i=r.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++o)),i<=127){if(t>=a)break;e[t++]=i}else if(i<=2047){if(t+1>=a)break;e[t++]=192|i>>6,e[t++]=128|63&i}else if(i<=65535){if(t+2>=a)break;e[t++]=224|i>>12,e[t++]=128|i>>6&63,e[t++]=128|63&i}else{if(t+3>=a)break;e[t++]=240|i>>18,e[t++]=128|i>>12&63,e[t++]=128|i>>6&63,e[t++]=128|63&i}}e[t]=0})(r,h,e,t)})(e,o,t+1);else if(n)for(var i=0;i<t;++i){var u=e.charCodeAt(i);u>255&&(Or(o),J("String has UTF-16 code units that do not fit in 8 bits")),h[o+i]=u}else for(i=0;i<t;++i)h[o+i]=e[i];return null!==r&&r.push(Or,a),a},argPackAdvance:8,readValueFromPointer:D,destructorFunction(r){Or(r)}})},i:(r,e,t)=>{var n,a,o,i;t=L(t),2===e?(n=gr,a=yr,i=br,o=r=>v[r>>1]):4===e&&(n=wr,a=$r,i=Ar,o=r=>g[r>>2]),K(r,{name:t,fromWireType:r=>{for(var t,a=g[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var c=n(i,s-i);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),i=s+e}}return Or(r),t},toWireType:(r,n)=>{"string"!=typeof n&&J(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=Ur(4+o+e);return g[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(Or,u),u},argPackAdvance:8,readValueFromPointer:D,destructorFunction(r){Or(r)}})},n:(r,e,t,n,a,o)=>{U[r]={name:L(e),rawConstructor:fr(t,n),rawDestructor:fr(a,o),fields:[]}},c:(r,e,t,n,a,o,i,u,s,c)=>{U[r].fields.push({fieldName:L(e),getterReturnType:t,getter:fr(n,a),getterContext:o,setterArgumentType:i,setter:fr(u,s),setterContext:c})},x:(r,e)=>{K(r,{isVoid:!0,name:e=L(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},t:(r,e,t)=>h.copyWithin(r,e,e+t),p:(r,e,t)=>(r=er(r),e=Tr(e,"emval::as"),Cr(e,t,r)),z:(r,e,t,n)=>(r=Pr[r])(null,e=er(e),t,n),j:(r,e,t,n,a)=>(r=Pr[r])(e=er(e),e[t=Er(t)],n,a),b:rr,o:r=>0===r?tr(_r()):(r=Er(r),tr(_r()[r])),h:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=Tr(g[e+4*n>>2],"parameter "+n);return t})(r,e),a=n.shift();r--;var o=new Array(r),i=`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${a.name}>`;return(r=>{var e=Pr.length;return Pr.push(r),e})(or(i,(e,i,u,s)=>{for(var c=0,l=0;l<r;++l)o[l]=n[l].readValueFromPointer(s+c),c+=n[l].argPackAdvance;var f=1===t?Fr(i,o):i.apply(e,o);return Cr(a,u,f)}))},A:(r,e)=>(r=er(r),e=er(e),tr(r[e])),e:r=>{r>9&&(Z[r+1]+=1)},B:r=>tr(Er(r)),f:r=>{var e=er(r);O(e),rr(r)},k:(r,e)=>{var t=(r=Tr(r,"_emval_take_value")).readValueFromPointer(e);return tr(t)},s:r=>{var e=h.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);a=Math.min(a,r+100663296);var o=Math.min(t,kr(Math.max(r,a),65536));if(Rr(o))return!0}return!1}};!async function(){function r(r,e){return Sr=r.exports,f=Sr.C,A(),Q=Sr.F,function(r){C.unshift(r)}(Sr.D),function(){if(_--,i.monitorRunDependencies?.(_),0==_&&F){var r=F;F=null,r()}}(),Sr}_++,i.monitorRunDependencies?.(_);var e={a:jr};if(i.instantiateWasm)try{return i.instantiateWasm(e,r)}catch(r){l(`Module.instantiateWasm callback failed with error: ${r}`),a(r)}R??=function(){var r="draco_mesh_decoder.wasm";return S(r)?r:function(r){return i.locateFile?i.locateFile(r,c):c+r}(r)}();try{var t=await j(w,R,e);return function(e){r(e.instance)}(t),t}catch(r){return void a(r)}}();var xr,Ir=r=>(Ir=Sr.E)(r),Ur=r=>(Ur=Sr.G)(r),Or=r=>(Or=Sr.H)(r);function Dr(){function r(){xr||(xr=!0,i.calledRun=!0,$||(x(C),e(i),i.onRuntimeInitialized?.(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)E(i.postRun.shift());x(P)}()))}_>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)W(i.preRun.shift());x(T)}(),_>0||(i.setStatus?(i.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>i.setStatus(""),1),r()},1)):r()))}if(F=function r(){xr||Dr(),xr||(F=r)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return Dr(),u})}}]);