import { fs_exports, init_fs, init_path, path_exports } from "./chunk-DL3VOCHZ.js"; import "./chunk-A5ICIBVI.js"; // node_modules/@arcgis/core/chunks/lerc-wasm.js function t(t2, n2) { for (var e2 = 0; e2 < n2.length; e2++) { const r2 = n2[e2]; if (typeof r2 != "string" && !Array.isArray(r2)) { for (const n3 in r2) if (n3 !== "default" && !(n3 in t2)) { const e3 = Object.getOwnPropertyDescriptor(r2, n3); e3 && Object.defineProperty(t2, n3, e3.get ? e3 : { enumerable: true, get: () => r2[n3] }); } } } return Object.freeze(Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" })); } var n; var e; var r; var i = { exports: {} }; n = i, e = typeof document != "undefined" && document.currentScript ? document.currentScript.src : void 0, typeof __filename != "undefined" && (e = e || __filename), r = function(t2) { var n2, r2; (t2 = (t2 = t2 || {}) !== void 0 ? t2 : {}).ready = new Promise(function(t3, e2) { n2 = t3, r2 = e2; }); var i2, o2 = {}; for (i2 in t2) t2.hasOwnProperty(i2) && (o2[i2] = t2[i2]); var u, s, a, f, c, l = typeof window == "object", p = typeof importScripts == "function", h = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string", d = ""; function m(n3) { return t2.locateFile ? t2.locateFile(n3, d) : d + n3; } h ? (d = p ? (init_path(), path_exports).dirname(d) + "/" : __dirname + "/", u = function(t3, n3) { return f || (f = (init_fs(), fs_exports)), c || (c = (init_path(), path_exports)), t3 = c.normalize(t3), f.readFileSync(t3, n3 ? null : "utf8"); }, a = function(t3) { var n3 = u(t3, true); return n3.buffer || (n3 = new Uint8Array(n3)), b(n3.buffer), n3; }, s = function(t3, n3, e2) { f || (f = (init_fs(), fs_exports)), c || (c = (init_path(), path_exports)), t3 = c.normalize(t3), f.readFile(t3, function(t4, r3) { t4 ? e2(t4) : n3(r3.buffer); }); }, process.argv.length > 1 && process.argv[1].replace(/\\/g, "/"), process.argv.slice(2), process.on("uncaughtException", function(t3) { if (!(t3 instanceof ct)) throw t3; }), process.on("unhandledRejection", G), t2.inspect = function() { return "[Emscripten Module object]"; }) : (l || p) && (p ? d = self.location.href : typeof document != "undefined" && document.currentScript && (d = document.currentScript.src), e && (d = e), d = d.indexOf("blob:") !== 0 ? d.substr(0, d.lastIndexOf("/") + 1) : "", u = function(t3) { var n3 = new XMLHttpRequest(); return n3.open("GET", t3, false), n3.send(null), n3.responseText; }, p && (a = function(t3) { var n3 = new XMLHttpRequest(); return n3.open("GET", t3, false), n3.responseType = "arraybuffer", n3.send(null), new Uint8Array(n3.response); }), s = function(t3, n3, e2) { var r3 = new XMLHttpRequest(); r3.open("GET", t3, true), r3.responseType = "arraybuffer", r3.onload = function() { r3.status == 200 || r3.status == 0 && r3.response ? n3(r3.response) : e2(); }, r3.onerror = e2, r3.send(null); }), t2.print || console.log.bind(console); var y, g, _ = t2.printErr || console.warn.bind(console); for (i2 in o2) o2.hasOwnProperty(i2) && (t2[i2] = o2[i2]); o2 = null, t2.arguments && t2.arguments, t2.thisProgram && t2.thisProgram, t2.quit && t2.quit, t2.wasmBinary && (y = t2.wasmBinary), t2.noExitRuntime, typeof WebAssembly != "object" && G("no native wasm support detected"); var w = false; function b(t3, n3) { t3 || G("Assertion failed: " + n3); } var v, A, R, S, P, E = typeof TextDecoder != "undefined" ? new TextDecoder("utf8") : void 0; function I(t3, n3, e2) { for (var r3 = n3 + e2, i3 = n3; t3[i3] && !(i3 >= r3); ) ++i3; if (i3 - n3 > 16 && t3.subarray && E) return E.decode(t3.subarray(n3, i3)); for (var o3 = ""; n3 < i3; ) { var u2 = t3[n3++]; if (128 & u2) { var s2 = 63 & t3[n3++]; if ((224 & u2) != 192) { var a2 = 63 & t3[n3++]; if ((u2 = (240 & u2) == 224 ? (15 & u2) << 12 | s2 << 6 | a2 : (7 & u2) << 18 | s2 << 12 | a2 << 6 | 63 & t3[n3++]) < 65536) o3 += String.fromCharCode(u2); else { var f2 = u2 - 65536; o3 += String.fromCharCode(55296 | f2 >> 10, 56320 | 1023 & f2); } } else o3 += String.fromCharCode((31 & u2) << 6 | s2); } else o3 += String.fromCharCode(u2); } return o3; } function x(t3, n3) { return t3 ? I(R, t3, n3) : ""; } function T(t3, n3) { return t3 % n3 > 0 && (t3 += n3 - t3 % n3), t3; } function j(n3) { v = n3, t2.HEAP8 = A = new Int8Array(n3), t2.HEAP16 = new Int16Array(n3), t2.HEAP32 = S = new Int32Array(n3), t2.HEAPU8 = R = new Uint8Array(n3), t2.HEAPU16 = new Uint16Array(n3), t2.HEAPU32 = new Uint32Array(n3), t2.HEAPF32 = new Float32Array(n3), t2.HEAPF64 = new Float64Array(n3); } t2.INITIAL_MEMORY; var D = [], H = [], M = []; function O() { if (t2.preRun) for (typeof t2.preRun == "function" && (t2.preRun = [t2.preRun]); t2.preRun.length; ) U(t2.preRun.shift()); Z(D); } function W() { Z(H); } function q() { if (t2.postRun) for (typeof t2.postRun == "function" && (t2.postRun = [t2.postRun]); t2.postRun.length; ) F(t2.postRun.shift()); Z(M); } function U(t3) { D.unshift(t3); } function C(t3) { H.unshift(t3); } function F(t3) { M.unshift(t3); } var B = 0, k = null; function z(n3) { B++, t2.monitorRunDependencies && t2.monitorRunDependencies(B); } function L(n3) { if (B--, t2.monitorRunDependencies && t2.monitorRunDependencies(B), B == 0 && k) { var e2 = k; k = null, e2(); } } function G(n3) { t2.onAbort && t2.onAbort(n3), _(n3 += ""), w = true, n3 = "abort(" + n3 + "). Build with -s ASSERTIONS=1 for more info."; var e2 = new WebAssembly.RuntimeError(n3); throw r2(e2), e2; } t2.preloadedImages = {}, t2.preloadedAudios = {}; var X, N = "data:application/octet-stream;base64,"; function Y(t3) { return t3.startsWith(N); } function J(t3) { return t3.startsWith("file://"); } function K(t3) { try { if (t3 == X && y) return new Uint8Array(y); if (a) return a(t3); throw "both async and sync fetching of the wasm failed"; } catch (_2) { G(_2); } } function Q() { if (!y && (l || p)) { if (typeof fetch == "function" && !J(X)) return fetch(X, { credentials: "same-origin" }).then(function(t3) { if (!t3.ok) throw "failed to load wasm binary file at '" + X + "'"; return t3.arrayBuffer(); }).catch(function() { return K(X); }); if (s) return new Promise(function(t3, n3) { s(X, function(n4) { t3(new Uint8Array(n4)); }, n3); }); } return Promise.resolve().then(function() { return K(X); }); } function V() { var n3 = { a: st }; function e2(n4, e3) { var r3 = n4.exports; t2.asm = r3, j((g = t2.asm.g).buffer), P = t2.asm.m, C(t2.asm.h), L(); } function i3(t3) { e2(t3.instance); } function o3(t3) { return Q().then(function(t4) { return WebAssembly.instantiate(t4, n3); }).then(t3, function(t4) { _("failed to asynchronously prepare wasm: " + t4), G(t4); }); } function u2() { return y || typeof WebAssembly.instantiateStreaming != "function" || Y(X) || J(X) || typeof fetch != "function" ? o3(i3) : fetch(X, { credentials: "same-origin" }).then(function(t3) { return WebAssembly.instantiateStreaming(t3, n3).then(i3, function(t4) { return _("wasm streaming compile failed: " + t4), _("falling back to ArrayBuffer instantiation"), o3(i3); }); }); } if (z(), t2.instantiateWasm) try { return t2.instantiateWasm(n3, e2); } catch (s2) { return _("Module.instantiateWasm callback failed with error: " + s2), false; } return u2().catch(r2), {}; } function Z(n3) { for (; n3.length > 0; ) { var e2 = n3.shift(); if (typeof e2 != "function") { var r3 = e2.func; typeof r3 == "number" ? e2.arg === void 0 ? P.get(r3)() : P.get(r3)(e2.arg) : r3(e2.arg === void 0 ? null : e2.arg); } else e2(t2); } } function $(t3, n3, e2, r3) { G("Assertion failed: " + x(t3) + ", at: " + [n3 ? x(n3) : "unknown filename", e2, r3 ? x(r3) : "unknown function"]); } function tt(t3) { return ft(t3 + 16) + 16; } function nt(t3) { this.excPtr = t3, this.ptr = t3 - 16, this.set_type = function(t4) { S[this.ptr + 4 >> 2] = t4; }, this.get_type = function() { return S[this.ptr + 4 >> 2]; }, this.set_destructor = function(t4) { S[this.ptr + 8 >> 2] = t4; }, this.get_destructor = function() { return S[this.ptr + 8 >> 2]; }, this.set_refcount = function(t4) { S[this.ptr >> 2] = t4; }, this.set_caught = function(t4) { t4 = t4 ? 1 : 0, A[this.ptr + 12 >> 0] = t4; }, this.get_caught = function() { return A[this.ptr + 12 >> 0] != 0; }, this.set_rethrown = function(t4) { t4 = t4 ? 1 : 0, A[this.ptr + 13 >> 0] = t4; }, this.get_rethrown = function() { return A[this.ptr + 13 >> 0] != 0; }, this.init = function(t4, n3) { this.set_type(t4), this.set_destructor(n3), this.set_refcount(0), this.set_caught(false), this.set_rethrown(false); }, this.add_ref = function() { var t4 = S[this.ptr >> 2]; S[this.ptr >> 2] = t4 + 1; }, this.release_ref = function() { var t4 = S[this.ptr >> 2]; return S[this.ptr >> 2] = t4 - 1, t4 === 1; }; } function et(t3, n3, e2) { throw new nt(t3).init(n3, e2), t3; } function rt() { G(); } function it(t3, n3, e2) { R.copyWithin(t3, n3, n3 + e2); } function ot(t3) { try { return g.grow(t3 - v.byteLength + 65535 >>> 16), j(g.buffer), 1; } catch (n3) { } } function ut(t3) { var n3 = R.length, e2 = 2147483648; if ((t3 >>>= 0) > e2) return false; for (var r3 = 1; r3 <= 4; r3 *= 2) { var i3 = n3 * (1 + 0.2 / r3); if (i3 = Math.min(i3, t3 + 100663296), ot(Math.min(e2, T(Math.max(t3, i3), 65536)))) return true; } return false; } Y(X = "lerc-wasm.wasm") || (X = m(X)); var st = { a: $, c: tt, b: et, f: rt, d: it, e: ut }; V(), t2.___wasm_call_ctors = function() { return (t2.___wasm_call_ctors = t2.asm.h).apply(null, arguments); }, t2._lerc_getBlobInfo = function() { return (t2._lerc_getBlobInfo = t2.asm.i).apply(null, arguments); }, t2._lerc_getDataRanges = function() { return (t2._lerc_getDataRanges = t2.asm.j).apply(null, arguments); }, t2._lerc_decode = function() { return (t2._lerc_decode = t2.asm.k).apply(null, arguments); }, t2._lerc_decode_4D = function() { return (t2._lerc_decode_4D = t2.asm.l).apply(null, arguments); }; var at, ft = t2._malloc = function() { return (ft = t2._malloc = t2.asm.n).apply(null, arguments); }; function ct(t3) { this.name = "ExitStatus", this.message = "Program terminated with exit(" + t3 + ")", this.status = t3; } function lt(e2) { function r3() { at || (at = true, t2.calledRun = true, w || (W(), n2(t2), t2.onRuntimeInitialized && t2.onRuntimeInitialized(), q())); } B > 0 || (O(), B > 0 || (t2.setStatus ? (t2.setStatus("Running..."), setTimeout(function() { setTimeout(function() { t2.setStatus(""); }, 1), r3(); }, 1)) : r3())); } if (t2._free = function() { return (t2._free = t2.asm.o).apply(null, arguments); }, k = function t3() { at || lt(), at || (k = t3); }, t2.run = lt, t2.preInit) for (typeof t2.preInit == "function" && (t2.preInit = [t2.preInit]); t2.preInit.length > 0; ) t2.preInit.pop()(); return lt(), t2.ready; }, n.exports = r; var o = t({ __proto__: null, default: i.exports }, [i.exports]); export { o as l }; //# sourceMappingURL=lerc-wasm-4BPBJWUK.js.map