UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

1 lines • 6.67 kB
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053,3091],{11053:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},13091:(t,e,n)=>{n.r(e),n.d(e,{l:()=>c});var r,o,i,a,u=n(11053),f={exports:{}},s=(r||(r=1,o=f,i="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,a=function(t={}){var e,n,r=t;r.ready=new Promise(((t,r)=>{e=t,n=r}));var o=Object.assign({},r),a="object"==typeof window,u="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var f,s="";(a||u)&&(u?s=self.location.href:"undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),i&&(s=i),s=0!==s.indexOf("blob:")?s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1):"",u&&(f=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var c,l,p=r.print||console.log.bind(console),d=r.printErr||console.error.bind(console);Object.assign(r,o),o=null,r.arguments&&r.arguments,r.thisProgram&&r.thisProgram,r.quit&&r.quit,r.wasmBinary&&(c=r.wasmBinary),"object"!=typeof WebAssembly&&_("no native wasm support detected");var h,y,m=!1;function b(){var t=l.buffer;r.HEAP8=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAPU8=h=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAP32=new Int32Array(t),r.HEAPU32=y=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=new Float64Array(t)}var g=[],v=[],w=[];function A(t){g.unshift(t)}function E(t){w.unshift(t)}var R=0,P=null;function _(t){r.onAbort?.(t),d(t="Aborted("+t+")"),m=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw n(e),e}var S,H=t=>t.startsWith("data:application/octet-stream;base64,");function T(t){if(t==S&&c)return new Uint8Array(c);if(f)return f(t);throw"both async and sync fetching of the wasm failed"}function C(t,e,n){return function(t){return c||!a&&!u||"function"!=typeof fetch?Promise.resolve().then((()=>T(t))):fetch(t,{credentials:"same-origin"}).then((e=>{if(!e.ok)throw"failed to load wasm binary file at '"+t+"'";return e.arrayBuffer()})).catch((()=>T(t)))}(t).then((t=>WebAssembly.instantiate(t,e))).then((t=>t)).then(n,(t=>{d(`failed to asynchronously prepare wasm: ${t}`),_(t)}))}H(S="libtess.wasm")||(S=function(t){return r.locateFile?r.locateFile(t,s):s+t}(S));var I=t=>{for(;t.length>0;)t.shift()(r)};r.noExitRuntime;var j,O=t=>{var e=(t-l.buffer.byteLength+65535)/65536;try{return l.grow(e),b(),1}catch(t){}},x=[null,[],[]],M="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,W=(t,e)=>{var n=x[t];0===e||10===e?((1===t?p:d)(((t,e)=>{for(var n=e+void 0,r=e;t[r]&&!(r>=n);)++r;if(r-e>16&&t.buffer&&M)return M.decode(t.subarray(e,r));for(var o="";e<r;){var i=t[e++];if(128&i){var a=63&t[e++];if(192!=(224&i)){var u=63&t[e++];if((i=224==(240&i)?(15&i)<<12|a<<6|u:(7&i)<<18|a<<12|u<<6|63&t[e++])<65536)o+=String.fromCharCode(i);else{var f=i-65536;o+=String.fromCharCode(55296|f>>10,56320|1023&f)}}else o+=String.fromCharCode((31&i)<<6|a)}else o+=String.fromCharCode(i)}return o})(n,0)),n.length=0):n.push(e)},F=[],k=t=>{var e=F[t];return e||(t>=F.length&&(F.length=t+1),F[t]=e=j.get(t)),e},U={e:()=>{throw 1/0},g:(t,e,n)=>h.copyWithin(t,e,e+n),f:t=>{var e=h.length,n=2147483648;if((t>>>=0)>n)return!1;for(var r=(t,e)=>t+(e-t%e)%e,o=1;o<=4;o*=2){var i=e*(1+.2/o);i=Math.min(i,t+100663296);var a=Math.min(n,r(Math.max(t,i),65536));if(O(a))return!0}return!1},c:(t,e,n,r)=>{for(var o=0,i=0;i<n;i++){var a=y[e>>2],u=y[e+4>>2];e+=8;for(var f=0;f<u;f++)W(t,h[a+f]);o+=u}return y[r>>2]=o,0},b:function(t,e){var n=L();try{return k(t)(e)}catch(t){if(z(n),t!==t+0)throw t;q(1,0)}},h:function(t,e,n,r){var o=L();try{return k(t)(e,n,r)}catch(t){if(z(o),t!==t+0)throw t;q(1,0)}},d:function(t,e){var n=L();try{k(t)(e)}catch(t){if(z(n),t!==t+0)throw t;q(1,0)}},a:function(t,e,n){var r=L();try{k(t)(e,n)}catch(t){if(z(r),t!==t+0)throw t;q(1,0)}}},B=function(){var t={a:U};function e(t,e){return B=t.exports,l=B.i,b(),j=B.m,function(t){v.unshift(t)}(B.j),function(){if(R--,r.monitorRunDependencies?.(R),0==R&&P){var t=P;P=null,t()}}(),B}if(R++,r.monitorRunDependencies?.(R),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(t){d(`Module.instantiateWasm callback failed with error: ${t}`),n(t)}return function(t,e,n,r){return t||"function"!=typeof WebAssembly.instantiateStreaming||H(e)||"function"!=typeof fetch?C(e,n,r):fetch(e,{credentials:"same-origin"}).then((t=>WebAssembly.instantiateStreaming(t,n).then(r,(function(t){return d(`wasm streaming compile failed: ${t}`),d("falling back to ArrayBuffer instantiation"),C(e,n,r)}))))}(c,S,t,(function(t){e(t.instance)})).catch(n),{}}();r._malloc=t=>(r._malloc=B.k)(t),r._free=t=>(r._free=B.l)(t),r._triangulate=(t,e,n,o,i,a)=>(r._triangulate=B.n)(t,e,n,o,i,a);var D,q=(t,e)=>(q=B.o)(t,e),L=()=>(L=B.p)(),z=t=>(z=B.q)(t);function N(){function t(){D||(D=!0,r.calledRun=!0,m||(I(v),e(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)E(r.postRun.shift());I(w)}()))}R>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)A(r.preRun.shift());I(g)}(),R>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}if(P=function t(){D||N(),D||(P=t)},r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();N();let $=null,Y=null,G=null,X=null,J=0;return r.triangulate=(t,e,n)=>{$||($=r._triangulate);let o=r.HEAPF32;const i=r.HEAP32.BYTES_PER_ELEMENT,a=o.BYTES_PER_ELEMENT;n>J&&(J=n,G&&(r._free(G),G=0),Y&&(r._free(Y),Y=0)),G||(G=r._malloc(n*a)),X||(X=r._malloc(4e3*i));const u=2*n;Y||(Y=r._malloc(u*a)),o=r.HEAPF32,o.set(t,G/a),r.HEAP32.set(e,X/i);const f=u/2,s=$(G,X,Math.min(e.length,4e3),2,Y,f),c=2*s;o=r.HEAPF32;const l=o.slice(Y/a,Y/a+c),p={};return p.buffer=l,p.vertexCount=s,p},t.ready},o.exports=a),f.exports);const c=function(t,e){for(var n=0;n<e.length;n++){const r=e[n];if("string"!=typeof r&&!Array.isArray(r))for(const e in r)if("default"!==e&&!(e in t)){const n=Object.getOwnPropertyDescriptor(r,e);n&&Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,u.g)(s)},[s])}}]);