????
Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/ |
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/62-es5.js |
(function () { var absMids = { "esri/libs/draco/DracoDecoder": "./node_modules/arcgis-js-api/libs/draco/DracoDecoder.js", // "esri/libs/draco/draco_decoder" = "./node_modules/arcgis-js-api/libs/draco/draco_decoder.js" "esri/views/3d/layers/SceneLayerWorker": "./node_modules/arcgis-js-api/views/3d/layers/SceneLayerWorker.js", "esri/views/3d/layers/i3s/I3SGeometryUtil": "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SGeometryUtil.js", "esri/views/3d/layers/i3s/I3SProjectionUtil": "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SProjectionUtil.js", "esri/views/3d/layers/i3s/I3SUtil": "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SUtil.js", "esri/views/3d/support/dito": "./node_modules/arcgis-js-api/views/3d/support/dito.js", "esri/views/3d/support/orientedBoundingBox": "./node_modules/arcgis-js-api/views/3d/support/orientedBoundingBox.js", "esri/views/3d/webgl-engine/lib/PreinterleavedGeometryData": "./node_modules/arcgis-js-api/views/3d/webgl-engine/lib/PreinterleavedGeometryData.js", "esri/views/3d/webgl-engine/lib/localOrigin": "./node_modules/arcgis-js-api/views/3d/webgl-engine/lib/localOrigin.js" }; var globalObj = this || window; var jsonpArray = globalObj["webpackJsonp"] = globalObj["webpackJsonp"] || []; if (jsonpArray.registerAbsMids) { jsonpArray.registerAbsMids(absMids); } else { var absMidsWaiting = jsonpArray.absMidsWaiting = jsonpArray.absMidsWaiting || []; absMidsWaiting.push(absMids); } })(), (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[62], { /***/ "./node_modules/arcgis-js-api/libs/draco/DracoDecoder.js": /*!***************************************************************!*\ !*** ./node_modules/arcgis-js-api/libs/draco/DracoDecoder.js ***! \***************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiLibsDracoDracoDecoderJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../core/has */ "./node_modules/arcgis-js-api/core/has.js"), __webpack_require__( /*! ../../core/promiseUtils */ "./node_modules/arcgis-js-api/core/promiseUtils.js"), __webpack_require__( /*! ./draco_decoder */ "./node_modules/arcgis-js-api/libs/draco/draco_decoder.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, r, o, n, t) { function c() { return !!o("esri-wasm"); } function i() { return c() ? (a || (a = n.create(function (r) { return Promise.resolve().then(function () { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__( /*! ./draco_decoder */ "./node_modules/arcgis-js-api/libs/draco/draco_decoder.js")]; (function (e) { s = e({ locateFile: u }), r(s); }).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__); })["catch"](__webpack_require__.oe); })["catch"](function (e) { return n.reject(e); })), a) : n.reject(new Error("Draco decompression not available, missing WebAssembly support")); } function u() { return e.toUrl("./draco_decoder.wasm"); } Object.defineProperty(r, "__esModule", { value: !0 }), function (e) { for (var o in e) r.hasOwnProperty(o) || (r[o] = e[o]); }(t), r.isSupported = c, r.getDecoderModule = i; var a, s; }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/libs/draco/draco_decoder.js": /*!****************************************************************!*\ !*** ./node_modules/arcgis-js-api/libs/draco/draco_decoder.js ***! \****************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiLibsDracoDraco_decoderJs(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */ (function (__dirname) { // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. var DracoDecoderModule = function () { var t = "undefined" != typeof document && document.currentScript ? document.currentScript.src : void 0; return function (r) { function e(t) { if ("string" != typeof t) return !1; var r = t.split("."); return !(r.length < 2 || r.length > 3) && (1 == r[0] && r[1] >= 0 && r[1] <= 3 || !(0 != r[0] || r[1] > 10)); } function n(t, r) { t || V("Assertion failed: " + r); } function o(t, r, e) { for (var n = r + e, o = r; t[o] && !(o >= n);) ++o; if (o - r > 16 && t.subarray && Ht) return Ht.decode(t.subarray(r, o)); for (var p = ""; r < o;) { var i = t[r++]; if (128 & i) { var a = 63 & t[r++]; if (192 != (224 & i)) { var u = 63 & t[r++]; if ((i = 224 == (240 & i) ? (15 & i) << 12 | a << 6 | u : (7 & i) << 18 | a << 12 | u << 6 | 63 & t[r++]) < 65536) p += String.fromCharCode(i);else { var _ = i - 65536; p += String.fromCharCode(55296 | _ >> 10, 56320 | 1023 & _); } } else p += String.fromCharCode((31 & i) << 6 | a); } else p += String.fromCharCode(i); } return p; } function p(t, r) { return t ? o(wt, t, r) : ""; } function i(t, r, e, n) { if (!(n > 0)) return 0; for (var o = e, p = e + n - 1, i = 0; i < t.length; ++i) { var a = t.charCodeAt(i); if (a >= 55296 && a <= 57343) { a = 65536 + ((1023 & a) << 10) | 1023 & t.charCodeAt(++i); } if (a <= 127) { if (e >= p) break; r[e++] = a; } else if (a <= 2047) { if (e + 1 >= p) break; r[e++] = 192 | a >> 6, r[e++] = 128 | 63 & a; } else if (a <= 65535) { if (e + 2 >= p) break; r[e++] = 224 | a >> 12, r[e++] = 128 | a >> 6 & 63, r[e++] = 128 | 63 & a; } else { if (e + 3 >= p) break; r[e++] = 240 | a >> 18, r[e++] = 128 | a >> 12 & 63, r[e++] = 128 | a >> 6 & 63, r[e++] = 128 | 63 & a; } } return r[e] = 0, e - o; } function a(t) { for (var r = 0, e = 0; e < t.length; ++e) { var n = t.charCodeAt(e); n >= 55296 && n <= 57343 && (n = 65536 + ((1023 & n) << 10) | 1023 & t.charCodeAt(++e)), n <= 127 ? ++r : r += n <= 2047 ? 2 : n <= 65535 ? 3 : 4; } return r; } function u(t, r) { return t % r > 0 && (t += r - t % r), t; } function _() { mt.HEAP8 = Nt = new Int8Array(St), mt.HEAP16 = zt = new Int16Array(St), mt.HEAP32 = Bt = new Int32Array(St), mt.HEAPU8 = wt = new Uint8Array(St), mt.HEAPU16 = Ct = new Uint16Array(St), mt.HEAPU32 = Vt = new Uint32Array(St), mt.HEAPF32 = Lt = new Float32Array(St), mt.HEAPF64 = xt = new Float64Array(St); } function c(t) { for (; t.length > 0;) { var r = t.shift(); if ("function" != typeof r) { var e = r.func; "number" == typeof e ? void 0 === r.arg ? mt.dynCall_v(e) : mt.dynCall_vi(e, r.arg) : e(void 0 === r.arg ? null : r.arg); } else r(); } } function s() { if (mt.preRun) for ("function" == typeof mt.preRun && (mt.preRun = [mt.preRun]); mt.preRun.length;) b(mt.preRun.shift()); c(kt); } function y() { Jt || (Jt = !0, c(Yt)); } function l() { c(Kt); } function f() { if (mt.postRun) for ("function" == typeof mt.postRun && (mt.postRun = [mt.postRun]); mt.postRun.length;) m(mt.postRun.shift()); c(Xt); } function b(t) { kt.unshift(t); } function d(t) { Kt.unshift(t); } function m(t) { Xt.unshift(t); } function A(t) { Zt++, mt.monitorRunDependencies && mt.monitorRunDependencies(Zt); } function h(t) { if (Zt--, mt.monitorRunDependencies && mt.monitorRunDependencies(Zt), 0 == Zt && (null !== $t && (clearInterval($t), $t = null), tr)) { var r = tr; tr = null, r(); } } function v(t) { return String.prototype.startsWith ? t.startsWith(rr) : 0 === t.indexOf(rr); } function I() { try { if (mt.wasmBinary) return new Uint8Array(mt.wasmBinary); if (mt.readBinary) return mt.readBinary(er); throw "both async and sync fetching of the wasm failed"; } catch (t) { V(t); } } function G() { return mt.wasmBinary || !Gt && !jt || "function" != typeof fetch ? new Promise(function (t, r) { t(I()); }) : fetch(er, { credentials: "same-origin" }).then(function (t) { if (!t.ok) throw "failed to load wasm binary file at '" + er + "'"; return t.arrayBuffer(); })["catch"](function () { return I(); }); } function j(t) { function r(t, r) { var e = t.exports; mt.asm = e, h("wasm-instantiate"); } function e(t) { r(t.instance); } function n(t) { G().then(function (t) { return WebAssembly.instantiate(t, o); }).then(t, function (t) { gt("failed to asynchronously prepare wasm: " + t), V(t); }); } var o = { env: t, global: { NaN: NaN, Infinity: 1 / 0 }, "global.Math": Math, asm2wasm: Mt }; if (A("wasm-instantiate"), mt.instantiateWasm) try { return mt.instantiateWasm(o, r); } catch (t) { return gt("Module.instantiateWasm callback failed with error: " + t), !1; } return mt.wasmBinary || "function" != typeof WebAssembly.instantiateStreaming || v(er) || "function" != typeof fetch ? n(e) : WebAssembly.instantiateStreaming(fetch(er, { credentials: "same-origin" }), o).then(e, function (t) { gt("wasm streaming compile failed: " + t), gt("falling back to ArrayBuffer instantiation"), n(e); }), {}; } function T(t) { return Bn(t); } function D() { throw qt = !0, "Pure virtual function called!"; } function R() { return !!R.uncaught_exception; } function E(t) { try { return Cn(t); } catch (t) {} } function O(t, r, e) { throw nr.infos[t] = { ptr: t, adjusted: [t], type: r, destructor: e, refcount: 0, caught: !1, rethrown: !1 }, nr.last = t, "uncaught_exception" in R ? R.uncaught_exception++ : R.uncaught_exception = 1, t; } function P() { mt.abort(); } function g() { return Nt.length; } function M(t) { V("OOM"); } function F(t) { t = u(t, 65536); var r = St.byteLength; try { return -1 !== Ft.grow((t - r) / 65536) && (St = Ft.buffer, !0); } catch (t) { return !1; } } function U(t) { var r = g(); if (t > 2147418112) return !1; for (var e = Math.max(r, 16777216); e < t;) e = e <= 536870912 ? u(2 * e, 65536) : Math.min(u((3 * e + 2147483648) / 4, 65536), 2147418112); return !!F(e) && (_(), !0); } function S() { V("trap!"); } function N(t, r, e) { wt.set(wt.subarray(r, r + e), t); } function w(t) { return mt.___errno_location && (Bt[mt.___errno_location() >> 2] = t), t; } function z(t, r, e) { var n = e > 0 ? e : a(t) + 1, o = new Array(n), p = i(t, o, 0, o.length); return r && (o.length = p), o; } function C(t) { this.name = "ExitStatus", this.message = "Program terminated with exit(" + t + ")", this.status = t; } function B(t) { function r() { mt.calledRun || (mt.calledRun = !0, qt || (y(), l(), mt.onRuntimeInitialized && mt.onRuntimeInitialized(), f())); } t = t || mt.arguments, Zt > 0 || (s(), Zt > 0 || mt.calledRun || (mt.setStatus ? (mt.setStatus("Running..."), setTimeout(function () { setTimeout(function () { mt.setStatus(""); }, 1), r(); }, 1)) : r())); } function V(t) { throw mt.onAbort && mt.onAbort(t), void 0 !== t ? (Pt(t), gt(t), t = JSON.stringify(t)) : t = "", qt = !0, Qt = 1, "abort(" + t + "). Build with -s ASSERTIONS=1 for more info."; } function L() {} function x(t) { return (t || L).__cache__; } function q(t, r) { var e = x(r), n = e[t]; return n || (n = Object.create((r || L).prototype), n.ptr = t, e[t] = n); } function Q(t, r) { return q(t.ptr, r); } function H(t) { if (!t.__destroy__) throw "Error: Cannot destroy object. (Did you create it yourself?)"; t.__destroy__(), delete x(t.__class__)[t.ptr]; } function W(t, r) { return t.ptr === r.ptr; } function k(t) { return t.ptr; } function Y(t) { return t.__class__; } function K(t) { if ("string" == typeof t) { var r = z(t), e = Vn.alloc(r, Nt); return Vn.copy(r, Nt, e), e; } return t; } function X(t) { if ("object" == typeof t) { var r = Vn.alloc(t, Nt); return Vn.copy(t, Nt, r), r; } return t; } function J() { throw "cannot construct a Status, no constructor in IDL"; } function Z() { this.ptr = he(), x(Z)[this.ptr] = this; } function $() { this.ptr = cn(), x($)[this.ptr] = this; } function tt() { this.ptr = Pe(), x(tt)[this.ptr] = this; } function rt() { this.ptr = Te(), x(rt)[this.ptr] = this; } function et() { this.ptr = ar(), x(et)[this.ptr] = this; } function nt() { this.ptr = $e(), x(nt)[this.ptr] = this; } function ot() { this.ptr = mr(), x(ot)[this.ptr] = this; } function pt() { this.ptr = sr(), x(pt)[this.ptr] = this; } function it() { this.ptr = fe(), x(it)[this.ptr] = this; } function at() { this.ptr = ke(), x(at)[this.ptr] = this; } function ut() { this.ptr = oe(), x(ut)[this.ptr] = this; } function _t() { this.ptr = $r(), x(_t)[this.ptr] = this; } function ct() { this.ptr = Se(), x(ct)[this.ptr] = this; } function st() { this.ptr = vr(), x(st)[this.ptr] = this; } function yt() { this.ptr = Dr(), x(yt)[this.ptr] = this; } function lt() { this.ptr = we(), x(lt)[this.ptr] = this; } function ft() { throw "cannot construct a VoidPtr, no constructor in IDL"; } function bt() { this.ptr = _e(), x(bt)[this.ptr] = this; } function dt() { this.ptr = Xe(), x(dt)[this.ptr] = this; } r = r || {}; var mt = void 0 !== r ? r : {}, At = !1, ht = !1; mt.onRuntimeInitialized = function () { At = !0, ht && "function" == typeof mt.onModuleLoaded && mt.onModuleLoaded(mt); }, mt.onModuleParsed = function () { ht = !0, At && "function" == typeof mt.onModuleLoaded && mt.onModuleLoaded(mt); }, mt.isVersionSupported = e; var vt, It = {}; for (vt in mt) mt.hasOwnProperty(vt) && (It[vt] = mt[vt]); mt.arguments = [], mt.thisProgram = "./this.program", mt.quit = function (t, r) { throw r; }, mt.preRun = [], mt.postRun = []; var Gt = !1, jt = !1, Tt = !1, Dt = !1; Gt = "object" == typeof window, jt = "function" == typeof importScripts, Tt = "object" == typeof process && "function" == "function" && !Gt && !jt, Dt = !Gt && !Tt && !jt; var Rt = ""; if (Tt) { Rt = __dirname + "/"; var Et, Ot; mt.read = function (t, r) { var e; return Et || (Et = __webpack_require__( /*! fs */ "./node_modules/node-libs-browser/mock/empty.js")), Ot || (Ot = __webpack_require__( /*! path */ "./node_modules/path-browserify/index.js")), t = Ot.normalize(t), e = Et.readFileSync(t), r ? e : e.toString(); }, mt.readBinary = function (t) { var r = mt.read(t, !0); return r.buffer || (r = new Uint8Array(r)), n(r.buffer), r; }, process.argv.length > 1 && (mt.thisProgram = process.argv[1].replace(/\\/g, "/")), mt.arguments = process.argv.slice(2), process.on("uncaughtException", function (t) { if (!(t instanceof C)) throw t; }), process.on("unhandledRejection", V), mt.quit = function (t) { process.exit(t); }, mt.inspect = function () { return "[Emscripten Module object]"; }; } else Dt ? ("undefined" != typeof read && (mt.read = function (t) { return read(t); }), mt.readBinary = function (t) { var r; return "function" == typeof readbuffer ? new Uint8Array(readbuffer(t)) : (r = read(t, "binary"), n("object" == typeof r), r); }, "undefined" != typeof scriptArgs ? mt.arguments = scriptArgs : void 0 !== arguments && (mt.arguments = arguments), "function" == typeof quit && (mt.quit = function (t) { quit(t); })) : (Gt || jt) && (jt ? Rt = self.location.href : document.currentScript && (Rt = document.currentScript.src), t && (Rt = t), Rt = 0 !== Rt.indexOf("blob:") ? Rt.substr(0, Rt.lastIndexOf("/") + 1) : "", mt.read = function (t) { var r = new XMLHttpRequest(); return r.open("GET", t, !1), r.send(null), r.responseText; }, jt && (mt.readBinary = function (t) { var r = new XMLHttpRequest(); return r.open("GET", t, !1), r.responseType = "arraybuffer", r.send(null), new Uint8Array(r.response); }), mt.readAsync = function (t, r, e) { var n = new XMLHttpRequest(); n.open("GET", t, !0), n.responseType = "arraybuffer", n.onload = function () { if (200 == n.status || 0 == n.status && n.response) return void r(n.response); e(); }, n.onerror = e, n.send(null); }, mt.setWindowTitle = function (t) { document.title = t; }); var Pt = mt.print || ("undefined" != typeof console ? console.log.bind(console) : "undefined" != typeof print ? print : null), gt = mt.printErr || ("undefined" != typeof printErr ? printErr : "undefined" != typeof console && console.warn.bind(console) || Pt); for (vt in It) It.hasOwnProperty(vt) && (mt[vt] = It[vt]); It = void 0; var Mt = { "f64-rem": function f64Rem(t, r) { return t % r; }, "debugger": function _debugger() {} }; new Array(0); "object" != typeof WebAssembly && gt("no native wasm support detected"); var Ft, Ut, St, Nt, wt, zt, Ct, Bt, Vt, Lt, xt, qt = !1, Qt = 0, Ht = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, Wt = ("undefined" != typeof TextDecoder && new TextDecoder("utf-16le"), mt.TOTAL_MEMORY || 16777216); Wt < 5242880 && gt("TOTAL_MEMORY should be larger than TOTAL_STACK, was " + Wt + "! (TOTAL_STACK=5242880)"), mt.buffer ? St = mt.buffer : "object" == typeof WebAssembly && "function" == typeof WebAssembly.Memory ? (Ft = new WebAssembly.Memory({ initial: Wt / 65536 }), St = Ft.buffer) : St = new ArrayBuffer(Wt), _(), Bt[4088] = 5259264; var kt = [], Yt = [], Kt = [], Xt = [], Jt = !1, Zt = 0, $t = null, tr = null; mt.preloadedImages = {}, mt.preloadedAudios = {}; var rr = "data:application/octet-stream;base64,", er = "draco_decoder.wasm"; v(er) || (er = function (t) { return mt.locateFile ? mt.locateFile(t, Rt) : Rt + t; }(er)), mt.asm = function (t, r, e) { return r.memory = Ft, r.table = Ut = new WebAssembly.Table({ initial: 490, maximum: 490, element: "anyfunc" }), r.__memory_base = 1024, r.__table_base = 0, j(r); }; var nr = { last: 0, caught: [], infos: {}, deAdjust: function deAdjust(t) { if (!t || nr.infos[t]) return t; for (var r in nr.infos) for (var e = +r, n = nr.infos[e].adjusted, o = n.length, p = 0; p < o; p++) if (n[p] === t) return e; return t; }, addRef: function addRef(t) { if (t) { nr.infos[t].refcount++; } }, decRef: function decRef(t) { if (t) { var r = nr.infos[t]; n(r.refcount > 0), r.refcount--, 0 !== r.refcount || r.rethrown || (r.destructor && mt.dynCall_vi(r.destructor, t), delete nr.infos[t], E(t)); } }, clearRef: function clearRef(t) { if (t) { nr.infos[t].refcount = 0; } } }, or = {}, pr = { e: V, d: T, k: D, c: O, f: w, b: P, j: g, i: N, h: U, g: S, l: M, a: 16352 }, ir = mt.asm(or, pr, St); mt.asm = ir; var ar = mt._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0 = function () { return mt.asm.m.apply(null, arguments); }, ur = mt._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1 = function () { return mt.asm.n.apply(null, arguments); }, _r = mt._emscripten_bind_AttributeOctahedronTransform___destroy___0 = function () { return mt.asm.o.apply(null, arguments); }, cr = mt._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0 = function () { return mt.asm.p.apply(null, arguments); }, sr = mt._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0 = function () { return mt.asm.q.apply(null, arguments); }, yr = mt._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1 = function () { return mt.asm.r.apply(null, arguments); }, lr = mt._emscripten_bind_AttributeQuantizationTransform___destroy___0 = function () { return mt.asm.s.apply(null, arguments); }, fr = mt._emscripten_bind_AttributeQuantizationTransform_min_value_1 = function () { return mt.asm.t.apply(null, arguments); }, br = mt._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0 = function () { return mt.asm.u.apply(null, arguments); }, dr = mt._emscripten_bind_AttributeQuantizationTransform_range_0 = function () { return mt.asm.v.apply(null, arguments); }, mr = mt._emscripten_bind_AttributeTransformData_AttributeTransformData_0 = function () { return mt.asm.w.apply(null, arguments); }, Ar = mt._emscripten_bind_AttributeTransformData___destroy___0 = function () { return mt.asm.x.apply(null, arguments); }, hr = mt._emscripten_bind_AttributeTransformData_transform_type_0 = function () { return mt.asm.y.apply(null, arguments); }, vr = mt._emscripten_bind_DecoderBuffer_DecoderBuffer_0 = function () { return mt.asm.z.apply(null, arguments); }, Ir = mt._emscripten_bind_DecoderBuffer_Init_2 = function () { return mt.asm.A.apply(null, arguments); }, Gr = mt._emscripten_bind_DecoderBuffer___destroy___0 = function () { return mt.asm.B.apply(null, arguments); }, jr = mt._emscripten_bind_Decoder_DecodeBufferToMesh_2 = function () { return mt.asm.C.apply(null, arguments); }, Tr = mt._emscripten_bind_Decoder_DecodeBufferToPointCloud_2 = function () { return mt.asm.D.apply(null, arguments); }, Dr = mt._emscripten_bind_Decoder_Decoder_0 = function () { return mt.asm.E.apply(null, arguments); }, Rr = mt._emscripten_bind_Decoder_GetAttributeByUniqueId_2 = function () { return mt.asm.F.apply(null, arguments); }, Er = mt._emscripten_bind_Decoder_GetAttributeFloatArrayForAllPoints_4 = function () { return mt.asm.G.apply(null, arguments); }, Or = mt._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3 = function () { return mt.asm.H.apply(null, arguments); }, Pr = mt._emscripten_bind_Decoder_GetAttributeFloat_3 = function () { return mt.asm.I.apply(null, arguments); }, gr = mt._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3 = function () { return mt.asm.J.apply(null, arguments); }, Mr = mt._emscripten_bind_Decoder_GetAttributeIdByName_2 = function () { return mt.asm.K.apply(null, arguments); }, Fr = mt._emscripten_bind_Decoder_GetAttributeId_2 = function () { return mt.asm.L.apply(null, arguments); }, Ur = mt._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3 = function () { return mt.asm.M.apply(null, arguments); }, Sr = mt._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3 = function () { return mt.asm.N.apply(null, arguments); }, Nr = mt._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3 = function () { return mt.asm.O.apply(null, arguments); }, wr = mt._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3 = function () { return mt.asm.P.apply(null, arguments); }, zr = mt._emscripten_bind_Decoder_GetAttributeMetadata_2 = function () { return mt.asm.Q.apply(null, arguments); }, Cr = mt._emscripten_bind_Decoder_GetAttributeUInt16ArrayForAllPoints_4 = function () { return mt.asm.R.apply(null, arguments); }, Br = mt._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3 = function () { return mt.asm.S.apply(null, arguments); }, Vr = mt._emscripten_bind_Decoder_GetAttributeUInt32ArrayForAllPoints_4 = function () { return mt.asm.T.apply(null, arguments); }, Lr = mt._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3 = function () { return mt.asm.U.apply(null, arguments); }, xr = mt._emscripten_bind_Decoder_GetAttributeUInt8ArrayForAllPoints_4 = function () { return mt.asm.V.apply(null, arguments); }, qr = mt._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3 = function () { return mt.asm.W.apply(null, arguments); }, Qr = mt._emscripten_bind_Decoder_GetAttribute_2 = function () { return mt.asm.X.apply(null, arguments); }, Hr = mt._emscripten_bind_Decoder_GetEncodedGeometryType_1 = function () { return mt.asm.Y.apply(null, arguments); }, Wr = mt._emscripten_bind_Decoder_GetFaceFromMesh_3 = function () { return mt.asm.Z.apply(null, arguments); }, kr = mt._emscripten_bind_Decoder_GetMetadata_1 = function () { return mt.asm._.apply(null, arguments); }, Yr = mt._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2 = function () { return mt.asm.$.apply(null, arguments); }, Kr = mt._emscripten_bind_Decoder_GetTrianglesUInt16Array_3 = function () { return mt.asm.aa.apply(null, arguments); }, Xr = mt._emscripten_bind_Decoder_GetTrianglesUInt32Array_3 = function () { return mt.asm.ba.apply(null, arguments); }, Jr = mt._emscripten_bind_Decoder_SkipAttributeTransform_1 = function () { return mt.asm.ca.apply(null, arguments); }, Zr = mt._emscripten_bind_Decoder___destroy___0 = function () { return mt.asm.da.apply(null, arguments); }, $r = mt._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0 = function () { return mt.asm.ea.apply(null, arguments); }, te = mt._emscripten_bind_DracoFloat32Array_GetArray_2 = function () { return mt.asm.fa.apply(null, arguments); }, re = mt._emscripten_bind_DracoFloat32Array_GetValue_1 = function () { return mt.asm.ga.apply(null, arguments); }, ee = mt._emscripten_bind_DracoFloat32Array___destroy___0 = function () { return mt.asm.ha.apply(null, arguments); }, ne = mt._emscripten_bind_DracoFloat32Array_size_0 = function () { return mt.asm.ia.apply(null, arguments); }, oe = mt._emscripten_bind_DracoInt16Array_DracoInt16Array_0 = function () { return mt.asm.ja.apply(null, arguments); }, pe = mt._emscripten_bind_DracoInt16Array_GetArray_2 = function () { return mt.asm.ka.apply(null, arguments); }, ie = mt._emscripten_bind_DracoInt16Array_GetValue_1 = function () { return mt.asm.la.apply(null, arguments); }, ae = mt._emscripten_bind_DracoInt16Array___destroy___0 = function () { return mt.asm.ma.apply(null, arguments); }, ue = mt._emscripten_bind_DracoInt16Array_size_0 = function () { return mt.asm.na.apply(null, arguments); }, _e = mt._emscripten_bind_DracoInt32Array_DracoInt32Array_0 = function () { return mt.asm.oa.apply(null, arguments); }, ce = mt._emscripten_bind_DracoInt32Array_GetArray_2 = function () { return mt.asm.pa.apply(null, arguments); }, se = mt._emscripten_bind_DracoInt32Array_GetValue_1 = function () { return mt.asm.qa.apply(null, arguments); }, ye = mt._emscripten_bind_DracoInt32Array___destroy___0 = function () { return mt.asm.ra.apply(null, arguments); }, le = mt._emscripten_bind_DracoInt32Array_size_0 = function () { return mt.asm.sa.apply(null, arguments); }, fe = mt._emscripten_bind_DracoInt8Array_DracoInt8Array_0 = function () { return mt.asm.ta.apply(null, arguments); }, be = mt._emscripten_bind_DracoInt8Array_GetArray_2 = function () { return mt.asm.ua.apply(null, arguments); }, de = mt._emscripten_bind_DracoInt8Array_GetValue_1 = function () { return mt.asm.va.apply(null, arguments); }, me = mt._emscripten_bind_DracoInt8Array___destroy___0 = function () { return mt.asm.wa.apply(null, arguments); }, Ae = mt._emscripten_bind_DracoInt8Array_size_0 = function () { return mt.asm.xa.apply(null, arguments); }, he = mt._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0 = function () { return mt.asm.ya.apply(null, arguments); }, ve = mt._emscripten_bind_DracoUInt16Array_GetArray_2 = function () { return mt.asm.za.apply(null, arguments); }, Ie = mt._emscripten_bind_DracoUInt16Array_GetValue_1 = function () { return mt.asm.Aa.apply(null, arguments); }, Ge = mt._emscripten_bind_DracoUInt16Array___destroy___0 = function () { return mt.asm.Ba.apply(null, arguments); }, je = mt._emscripten_bind_DracoUInt16Array_size_0 = function () { return mt.asm.Ca.apply(null, arguments); }, Te = mt._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0 = function () { return mt.asm.Da.apply(null, arguments); }, De = mt._emscripten_bind_DracoUInt32Array_GetArray_2 = function () { return mt.asm.Ea.apply(null, arguments); }, Re = mt._emscripten_bind_DracoUInt32Array_GetValue_1 = function () { return mt.asm.Fa.apply(null, arguments); }, Ee = mt._emscripten_bind_DracoUInt32Array___destroy___0 = function () { return mt.asm.Ga.apply(null, arguments); }, Oe = mt._emscripten_bind_DracoUInt32Array_size_0 = function () { return mt.asm.Ha.apply(null, arguments); }, Pe = mt._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0 = function () { return mt.asm.Ia.apply(null, arguments); }, ge = mt._emscripten_bind_DracoUInt8Array_GetArray_2 = function () { return mt.asm.Ja.apply(null, arguments); }, Me = mt._emscripten_bind_DracoUInt8Array_GetValue_1 = function () { return mt.asm.Ka.apply(null, arguments); }, Fe = mt._emscripten_bind_DracoUInt8Array___destroy___0 = function () { return mt.asm.La.apply(null, arguments); }, Ue = mt._emscripten_bind_DracoUInt8Array_size_0 = function () { return mt.asm.Ma.apply(null, arguments); }, Se = mt._emscripten_bind_GeometryAttribute_GeometryAttribute_0 = function () { return mt.asm.Na.apply(null, arguments); }, Ne = mt._emscripten_bind_GeometryAttribute___destroy___0 = function () { return mt.asm.Oa.apply(null, arguments); }, we = mt._emscripten_bind_Mesh_Mesh_0 = function () { return mt.asm.Pa.apply(null, arguments); }, ze = mt._emscripten_bind_Mesh___destroy___0 = function () { return mt.asm.Qa.apply(null, arguments); }, Ce = mt._emscripten_bind_Mesh_num_attributes_0 = function () { return mt.asm.Ra.apply(null, arguments); }, Be = mt._emscripten_bind_Mesh_num_faces_0 = function () { return mt.asm.Sa.apply(null, arguments); }, Ve = mt._emscripten_bind_Mesh_num_points_0 = function () { return mt.asm.Ta.apply(null, arguments); }, Le = mt._emscripten_bind_MetadataQuerier_GetDoubleEntry_2 = function () { return mt.asm.Ua.apply(null, arguments); }, xe = mt._emscripten_bind_MetadataQuerier_GetEntryName_2 = function () { return mt.asm.Va.apply(null, arguments); }, qe = mt._emscripten_bind_MetadataQuerier_GetIntEntryArray_3 = function () { return mt.asm.Wa.apply(null, arguments); }, Qe = mt._emscripten_bind_MetadataQuerier_GetIntEntry_2 = function () { return mt.asm.Xa.apply(null, arguments); }, He = mt._emscripten_bind_MetadataQuerier_GetStringEntry_2 = function () { return mt.asm.Ya.apply(null, arguments); }, We = mt._emscripten_bind_MetadataQuerier_HasEntry_2 = function () { return mt.asm.Za.apply(null, arguments); }, ke = mt._emscripten_bind_MetadataQuerier_MetadataQuerier_0 = function () { return mt.asm._a.apply(null, arguments); }, Ye = mt._emscripten_bind_MetadataQuerier_NumEntries_1 = function () { return mt.asm.$a.apply(null, arguments); }, Ke = mt._emscripten_bind_MetadataQuerier___destroy___0 = function () { return mt.asm.ab.apply(null, arguments); }, Xe = mt._emscripten_bind_Metadata_Metadata_0 = function () { return mt.asm.bb.apply(null, arguments); }, Je = mt._emscripten_bind_Metadata___destroy___0 = function () { return mt.asm.cb.apply(null, arguments); }, Ze = mt._emscripten_bind_PointAttribute_GetAttributeTransformData_0 = function () { return mt.asm.db.apply(null, arguments); }, $e = mt._emscripten_bind_PointAttribute_PointAttribute_0 = function () { return mt.asm.eb.apply(null, arguments); }, tn = mt._emscripten_bind_PointAttribute___destroy___0 = function () { return mt.asm.fb.apply(null, arguments); }, rn = mt._emscripten_bind_PointAttribute_attribute_type_0 = function () { return mt.asm.gb.apply(null, arguments); }, en = mt._emscripten_bind_PointAttribute_byte_offset_0 = function () { return mt.asm.hb.apply(null, arguments); }, nn = mt._emscripten_bind_PointAttribute_byte_stride_0 = function () { return mt.asm.ib.apply(null, arguments); }, on = mt._emscripten_bind_PointAttribute_data_type_0 = function () { return mt.asm.jb.apply(null, arguments); }, pn = mt._emscripten_bind_PointAttribute_normalized_0 = function () { return mt.asm.kb.apply(null, arguments); }, an = mt._emscripten_bind_PointAttribute_num_components_0 = function () { return mt.asm.lb.apply(null, arguments); }, un = mt._emscripten_bind_PointAttribute_size_0 = function () { return mt.asm.mb.apply(null, arguments); }, _n = mt._emscripten_bind_PointAttribute_unique_id_0 = function () { return mt.asm.nb.apply(null, arguments); }, cn = mt._emscripten_bind_PointCloud_PointCloud_0 = function () { return mt.asm.ob.apply(null, arguments); }, sn = mt._emscripten_bind_PointCloud___destroy___0 = function () { return mt.asm.pb.apply(null, arguments); }, yn = mt._emscripten_bind_PointCloud_num_attributes_0 = function () { return mt.asm.qb.apply(null, arguments); }, ln = mt._emscripten_bind_PointCloud_num_points_0 = function () { return mt.asm.rb.apply(null, arguments); }, fn = mt._emscripten_bind_Status___destroy___0 = function () { return mt.asm.sb.apply(null, arguments); }, bn = mt._emscripten_bind_Status_code_0 = function () { return mt.asm.tb.apply(null, arguments); }, dn = mt._emscripten_bind_Status_error_msg_0 = function () { return mt.asm.ub.apply(null, arguments); }, mn = mt._emscripten_bind_Status_ok_0 = function () { return mt.asm.vb.apply(null, arguments); }, An = mt._emscripten_bind_VoidPtr___destroy___0 = function () { return mt.asm.wb.apply(null, arguments); }, hn = mt._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM = function () { return mt.asm.xb.apply(null, arguments); }, vn = mt._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM = function () { return mt.asm.yb.apply(null, arguments); }, In = mt._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM = function () { return mt.asm.zb.apply(null, arguments); }, Gn = mt._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM = function () { return mt.asm.Ab.apply(null, arguments); }, jn = mt._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE = function () { return mt.asm.Bb.apply(null, arguments); }, Tn = mt._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD = function () { return mt.asm.Cb.apply(null, arguments); }, Dn = mt._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH = function () { return mt.asm.Db.apply(null, arguments); }, Rn = mt._emscripten_enum_draco_GeometryAttribute_Type_COLOR = function () { return mt.asm.Eb.apply(null, arguments); }, En = mt._emscripten_enum_draco_GeometryAttribute_Type_GENERIC = function () { return mt.asm.Fb.apply(null, arguments); }, On = mt._emscripten_enum_draco_GeometryAttribute_Type_INVALID = function () { return mt.asm.Gb.apply(null, arguments); }, Pn = mt._emscripten_enum_draco_GeometryAttribute_Type_NORMAL = function () { return mt.asm.Hb.apply(null, arguments); }, gn = mt._emscripten_enum_draco_GeometryAttribute_Type_POSITION = function () { return mt.asm.Ib.apply(null, arguments); }, Mn = mt._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD = function () { return mt.asm.Jb.apply(null, arguments); }, Fn = mt._emscripten_enum_draco_StatusCode_ERROR = function () { return mt.asm.Kb.apply(null, arguments); }, Un = mt._emscripten_enum_draco_StatusCode_INVALID_PARAMETER = function () { return mt.asm.Lb.apply(null, arguments); }, Sn = mt._emscripten_enum_draco_StatusCode_IO_ERROR = function () { return mt.asm.Mb.apply(null, arguments); }, Nn = mt._emscripten_enum_draco_StatusCode_OK = function () { return mt.asm.Nb.apply(null, arguments); }, wn = mt._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION = function () { return mt.asm.Ob.apply(null, arguments); }, zn = mt._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION = function () { return mt.asm.Pb.apply(null, arguments); }, Cn = mt._free = function () { return mt.asm.Qb.apply(null, arguments); }, Bn = mt._malloc = function () { return mt.asm.Rb.apply(null, arguments); }; mt.dynCall_v = function () { return mt.asm.Sb.apply(null, arguments); }, mt.dynCall_vi = function () { return mt.asm.Tb.apply(null, arguments); }; if (mt.asm = ir, mt.then = function (t) { if (mt.calledRun) t(mt);else { var r = mt.onRuntimeInitialized; mt.onRuntimeInitialized = function () { r && r(), t(mt); }; } return mt; }, C.prototype = new Error(), C.prototype.constructor = C, tr = function t() { mt.calledRun || B(), mt.calledRun || (tr = t); }, mt.run = B, mt.abort = V, mt.preInit) for ("function" == typeof mt.preInit && (mt.preInit = [mt.preInit]); mt.preInit.length > 0;) mt.preInit.pop()(); mt.noExitRuntime = !0, B(), L.prototype = Object.create(L.prototype), L.prototype.constructor = L, L.prototype.__class__ = L, L.__cache__ = {}, mt.WrapperObject = L, mt.getCache = x, mt.wrapPointer = q, mt.castObject = Q, mt.NULL = q(0), mt.destroy = H, mt.compare = W, mt.getPointer = k, mt.getClass = Y; var Vn = { buffer: 0, size: 0, pos: 0, temps: [], needed: 0, prepare: function prepare() { if (Vn.needed) { for (var t = 0; t < Vn.temps.length; t++) mt._free(Vn.temps[t]); Vn.temps.length = 0, mt._free(Vn.buffer), Vn.buffer = 0, Vn.size += Vn.needed, Vn.needed = 0; } Vn.buffer || (Vn.size += 128, Vn.buffer = mt._malloc(Vn.size), n(Vn.buffer)), Vn.pos = 0; }, alloc: function alloc(t, r) { n(Vn.buffer); var e = r.BYTES_PER_ELEMENT, o = t.length * e; o = o + 7 & -8; var p; return Vn.pos + o >= Vn.size ? (n(o > 0), Vn.needed += o, p = mt._malloc(o), Vn.temps.push(p)) : (p = Vn.buffer + Vn.pos, Vn.pos += o), p; }, copy: function copy(t, r, e) { var n = e; switch (r.BYTES_PER_ELEMENT) { case 2: n >>= 1; break; case 4: n >>= 2; break; case 8: n >>= 3; } for (var o = 0; o < t.length; o++) r[n + o] = t[o]; } }; return J.prototype = Object.create(L.prototype), J.prototype.constructor = J, J.prototype.__class__ = J, J.__cache__ = {}, mt.Status = J, J.prototype.code = J.prototype.code = function () { var t = this.ptr; return bn(t); }, J.prototype.ok = J.prototype.ok = function () { var t = this.ptr; return !!mn(t); }, J.prototype.error_msg = J.prototype.error_msg = function () { var t = this.ptr; return p(dn(t)); }, J.prototype.__destroy__ = J.prototype.__destroy__ = function () { var t = this.ptr; fn(t); }, Z.prototype = Object.create(L.prototype), Z.prototype.constructor = Z, Z.prototype.__class__ = Z, Z.__cache__ = {}, mt.DracoUInt16Array = Z, Z.prototype.GetValue = Z.prototype.GetValue = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), Ie(r, t); }, Z.prototype.size = Z.prototype.size = function () { var t = this.ptr; return je(t); }, Z.prototype.GetArray = Z.prototype.GetArray = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), !!ve(e, t, r); }, Z.prototype.__destroy__ = Z.prototype.__destroy__ = function () { var t = this.ptr; Ge(t); }, $.prototype = Object.create(L.prototype), $.prototype.constructor = $, $.prototype.__class__ = $, $.__cache__ = {}, mt.PointCloud = $, $.prototype.num_attributes = $.prototype.num_attributes = function () { var t = this.ptr; return yn(t); }, $.prototype.num_points = $.prototype.num_points = function () { var t = this.ptr; return ln(t); }, $.prototype.__destroy__ = $.prototype.__destroy__ = function () { var t = this.ptr; sn(t); }, tt.prototype = Object.create(L.prototype), tt.prototype.constructor = tt, tt.prototype.__class__ = tt, tt.__cache__ = {}, mt.DracoUInt8Array = tt, tt.prototype.GetValue = tt.prototype.GetValue = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), Me(r, t); }, tt.prototype.size = tt.prototype.size = function () { var t = this.ptr; return Ue(t); }, tt.prototype.GetArray = tt.prototype.GetArray = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), !!ge(e, t, r); }, tt.prototype.__destroy__ = tt.prototype.__destroy__ = function () { var t = this.ptr; Fe(t); }, rt.prototype = Object.create(L.prototype), rt.prototype.constructor = rt, rt.prototype.__class__ = rt, rt.__cache__ = {}, mt.DracoUInt32Array = rt, rt.prototype.GetValue = rt.prototype.GetValue = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), Re(r, t); }, rt.prototype.size = rt.prototype.size = function () { var t = this.ptr; return Oe(t); }, rt.prototype.GetArray = rt.prototype.GetArray = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), !!De(e, t, r); }, rt.prototype.__destroy__ = rt.prototype.__destroy__ = function () { var t = this.ptr; Ee(t); }, et.prototype = Object.create(L.prototype), et.prototype.constructor = et, et.prototype.__class__ = et, et.__cache__ = {}, mt.AttributeOctahedronTransform = et, et.prototype.InitFromAttribute = et.prototype.InitFromAttribute = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), !!ur(r, t); }, et.prototype.quantization_bits = et.prototype.quantization_bits = function () { var t = this.ptr; return cr(t); }, et.prototype.__destroy__ = et.prototype.__destroy__ = function () { var t = this.ptr; _r(t); }, nt.prototype = Object.create(L.prototype), nt.prototype.constructor = nt, nt.prototype.__class__ = nt, nt.__cache__ = {}, mt.PointAttribute = nt, nt.prototype.size = nt.prototype.size = function () { var t = this.ptr; return un(t); }, nt.prototype.GetAttributeTransformData = nt.prototype.GetAttributeTransformData = function () { var t = this.ptr; return q(Ze(t), ot); }, nt.prototype.attribute_type = nt.prototype.attribute_type = function () { var t = this.ptr; return rn(t); }, nt.prototype.data_type = nt.prototype.data_type = function () { var t = this.ptr; return on(t); }, nt.prototype.num_components = nt.prototype.num_components = function () { var t = this.ptr; return an(t); }, nt.prototype.normalized = nt.prototype.normalized = function () { var t = this.ptr; return !!pn(t); }, nt.prototype.byte_stride = nt.prototype.byte_stride = function () { var t = this.ptr; return nn(t); }, nt.prototype.byte_offset = nt.prototype.byte_offset = function () { var t = this.ptr; return en(t); }, nt.prototype.unique_id = nt.prototype.unique_id = function () { var t = this.ptr; return _n(t); }, nt.prototype.__destroy__ = nt.prototype.__destroy__ = function () { var t = this.ptr; tn(t); }, ot.prototype = Object.create(L.prototype), ot.prototype.constructor = ot, ot.prototype.__class__ = ot, ot.__cache__ = {}, mt.AttributeTransformData = ot, ot.prototype.transform_type = ot.prototype.transform_type = function () { var t = this.ptr; return hr(t); }, ot.prototype.__destroy__ = ot.prototype.__destroy__ = function () { var t = this.ptr; Ar(t); }, pt.prototype = Object.create(L.prototype), pt.prototype.constructor = pt, pt.prototype.__class__ = pt, pt.__cache__ = {}, mt.AttributeQuantizationTransform = pt, pt.prototype.InitFromAttribute = pt.prototype.InitFromAttribute = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), !!yr(r, t); }, pt.prototype.quantization_bits = pt.prototype.quantization_bits = function () { var t = this.ptr; return br(t); }, pt.prototype.min_value = pt.prototype.min_value = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), fr(r, t); }, pt.prototype.range = pt.prototype.range = function () { var t = this.ptr; return dr(t); }, pt.prototype.__destroy__ = pt.prototype.__destroy__ = function () { var t = this.ptr; lr(t); }, it.prototype = Object.create(L.prototype), it.prototype.constructor = it, it.prototype.__class__ = it, it.__cache__ = {}, mt.DracoInt8Array = it, it.prototype.GetValue = it.prototype.GetValue = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), de(r, t); }, it.prototype.size = it.prototype.size = function () { var t = this.ptr; return Ae(t); }, it.prototype.GetArray = it.prototype.GetArray = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), !!be(e, t, r); }, it.prototype.__destroy__ = it.prototype.__destroy__ = function () { var t = this.ptr; me(t); }, at.prototype = Object.create(L.prototype), at.prototype.constructor = at, at.prototype.__class__ = at, at.__cache__ = {}, mt.MetadataQuerier = at, at.prototype.HasEntry = at.prototype.HasEntry = function (t, r) { var e = this.ptr; return Vn.prepare(), t && "object" == typeof t && (t = t.ptr), r = r && "object" == typeof r ? r.ptr : K(r), !!We(e, t, r); }, at.prototype.GetIntEntry = at.prototype.GetIntEntry = function (t, r) { var e = this.ptr; return Vn.prepare(), t && "object" == typeof t && (t = t.ptr), r = r && "object" == typeof r ? r.ptr : K(r), Qe(e, t, r); }, at.prototype.GetIntEntryArray = at.prototype.GetIntEntryArray = function (t, r, e) { var n = this.ptr; Vn.prepare(), t && "object" == typeof t && (t = t.ptr), r = r && "object" == typeof r ? r.ptr : K(r), e && "object" == typeof e && (e = e.ptr), qe(n, t, r, e); }, at.prototype.GetDoubleEntry = at.prototype.GetDoubleEntry = function (t, r) { var e = this.ptr; return Vn.prepare(), t && "object" == typeof t && (t = t.ptr), r = r && "object" == typeof r ? r.ptr : K(r), Le(e, t, r); }, at.prototype.GetStringEntry = at.prototype.GetStringEntry = function (t, r) { var e = this.ptr; return Vn.prepare(), t && "object" == typeof t && (t = t.ptr), r = r && "object" == typeof r ? r.ptr : K(r), p(He(e, t, r)); }, at.prototype.NumEntries = at.prototype.NumEntries = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), Ye(r, t); }, at.prototype.GetEntryName = at.prototype.GetEntryName = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), p(xe(e, t, r)); }, at.prototype.__destroy__ = at.prototype.__destroy__ = function () { var t = this.ptr; Ke(t); }, ut.prototype = Object.create(L.prototype), ut.prototype.constructor = ut, ut.prototype.__class__ = ut, ut.__cache__ = {}, mt.DracoInt16Array = ut, ut.prototype.GetValue = ut.prototype.GetValue = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), ie(r, t); }, ut.prototype.size = ut.prototype.size = function () { var t = this.ptr; return ue(t); }, ut.prototype.GetArray = ut.prototype.GetArray = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), !!pe(e, t, r); }, ut.prototype.__destroy__ = ut.prototype.__destroy__ = function () { var t = this.ptr; ae(t); }, _t.prototype = Object.create(L.prototype), _t.prototype.constructor = _t, _t.prototype.__class__ = _t, _t.__cache__ = {}, mt.DracoFloat32Array = _t, _t.prototype.GetValue = _t.prototype.GetValue = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), re(r, t); }, _t.prototype.size = _t.prototype.size = function () { var t = this.ptr; return ne(t); }, _t.prototype.GetArray = _t.prototype.GetArray = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), !!te(e, t, r); }, _t.prototype.__destroy__ = _t.prototype.__destroy__ = function () { var t = this.ptr; ee(t); }, ct.prototype = Object.create(L.prototype), ct.prototype.constructor = ct, ct.prototype.__class__ = ct, ct.__cache__ = {}, mt.GeometryAttribute = ct, ct.prototype.__destroy__ = ct.prototype.__destroy__ = function () { var t = this.ptr; Ne(t); }, st.prototype = Object.create(L.prototype), st.prototype.constructor = st, st.prototype.__class__ = st, st.__cache__ = {}, mt.DecoderBuffer = st, st.prototype.Init = st.prototype.Init = function (t, r) { var e = this.ptr; Vn.prepare(), "object" == typeof t && (t = X(t)), r && "object" == typeof r && (r = r.ptr), Ir(e, t, r); }, st.prototype.__destroy__ = st.prototype.__destroy__ = function () { var t = this.ptr; Gr(t); }, yt.prototype = Object.create(L.prototype), yt.prototype.constructor = yt, yt.prototype.__class__ = yt, yt.__cache__ = {}, mt.Decoder = yt, yt.prototype.GetEncodedGeometryType = yt.prototype.GetEncodedGeometryType = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), Hr(r, t); }, yt.prototype.DecodeBufferToPointCloud = yt.prototype.DecodeBufferToPointCloud = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), q(Tr(e, t, r), J); }, yt.prototype.DecodeBufferToMesh = yt.prototype.DecodeBufferToMesh = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), q(jr(e, t, r), J); }, yt.prototype.GetAttributeId = yt.prototype.GetAttributeId = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), Fr(e, t, r); }, yt.prototype.GetAttributeIdByName = yt.prototype.GetAttributeIdByName = function (t, r) { var e = this.ptr; return Vn.prepare(), t && "object" == typeof t && (t = t.ptr), r = r && "object" == typeof r ? r.ptr : K(r), Mr(e, t, r); }, yt.prototype.GetAttributeIdByMetadataEntry = yt.prototype.GetAttributeIdByMetadataEntry = function (t, r, e) { var n = this.ptr; return Vn.prepare(), t && "object" == typeof t && (t = t.ptr), r = r && "object" == typeof r ? r.ptr : K(r), e = e && "object" == typeof e ? e.ptr : K(e), gr(n, t, r, e); }, yt.prototype.GetAttribute = yt.prototype.GetAttribute = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), q(Qr(e, t, r), nt); }, yt.prototype.GetAttributeByUniqueId = yt.prototype.GetAttributeByUniqueId = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), q(Rr(e, t, r), nt); }, yt.prototype.GetMetadata = yt.prototype.GetMetadata = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), q(kr(r, t), dt); }, yt.prototype.GetAttributeMetadata = yt.prototype.GetAttributeMetadata = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), q(zr(e, t, r), dt); }, yt.prototype.GetFaceFromMesh = yt.prototype.GetFaceFromMesh = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!Wr(n, t, r, e); }, yt.prototype.GetTriangleStripsFromMesh = yt.prototype.GetTriangleStripsFromMesh = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), Yr(e, t, r); }, yt.prototype.GetTrianglesUInt16Array = yt.prototype.GetTrianglesUInt16Array = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!Kr(n, t, r, e); }, yt.prototype.GetTrianglesUInt32Array = yt.prototype.GetTrianglesUInt32Array = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!Xr(n, t, r, e); }, yt.prototype.GetAttributeFloat = yt.prototype.GetAttributeFloat = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!Pr(n, t, r, e); }, yt.prototype.GetAttributeFloatForAllPoints = yt.prototype.GetAttributeFloatForAllPoints = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!Or(n, t, r, e); }, yt.prototype.GetAttributeFloatArrayForAllPoints = yt.prototype.GetAttributeFloatArrayForAllPoints = function (t, r, e, n) { var o = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), n && "object" == typeof n && (n = n.ptr), !!Er(o, t, r, e, n); }, yt.prototype.GetAttributeIntForAllPoints = yt.prototype.GetAttributeIntForAllPoints = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!wr(n, t, r, e); }, yt.prototype.GetAttributeInt8ForAllPoints = yt.prototype.GetAttributeInt8ForAllPoints = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!Nr(n, t, r, e); }, yt.prototype.GetAttributeUInt8ForAllPoints = yt.prototype.GetAttributeUInt8ForAllPoints = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!qr(n, t, r, e); }, yt.prototype.GetAttributeUInt8ArrayForAllPoints = yt.prototype.GetAttributeUInt8ArrayForAllPoints = function (t, r, e, n) { var o = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), n && "object" == typeof n && (n = n.ptr), !!xr(o, t, r, e, n); }, yt.prototype.GetAttributeInt16ForAllPoints = yt.prototype.GetAttributeInt16ForAllPoints = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!Ur(n, t, r, e); }, yt.prototype.GetAttributeUInt16ForAllPoints = yt.prototype.GetAttributeUInt16ForAllPoints = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!Br(n, t, r, e); }, yt.prototype.GetAttributeUInt16ArrayForAllPoints = yt.prototype.GetAttributeUInt16ArrayForAllPoints = function (t, r, e, n) { var o = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), n && "object" == typeof n && (n = n.ptr), !!Cr(o, t, r, e, n); }, yt.prototype.GetAttributeInt32ForAllPoints = yt.prototype.GetAttributeInt32ForAllPoints = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!Sr(n, t, r, e); }, yt.prototype.GetAttributeUInt32ForAllPoints = yt.prototype.GetAttributeUInt32ForAllPoints = function (t, r, e) { var n = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), !!Lr(n, t, r, e); }, yt.prototype.GetAttributeUInt32ArrayForAllPoints = yt.prototype.GetAttributeUInt32ArrayForAllPoints = function (t, r, e, n) { var o = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), e && "object" == typeof e && (e = e.ptr), n && "object" == typeof n && (n = n.ptr), !!Vr(o, t, r, e, n); }, yt.prototype.SkipAttributeTransform = yt.prototype.SkipAttributeTransform = function (t) { var r = this.ptr; t && "object" == typeof t && (t = t.ptr), Jr(r, t); }, yt.prototype.__destroy__ = yt.prototype.__destroy__ = function () { var t = this.ptr; Zr(t); }, lt.prototype = Object.create(L.prototype), lt.prototype.constructor = lt, lt.prototype.__class__ = lt, lt.__cache__ = {}, mt.Mesh = lt, lt.prototype.num_faces = lt.prototype.num_faces = function () { var t = this.ptr; return Be(t); }, lt.prototype.num_attributes = lt.prototype.num_attributes = function () { var t = this.ptr; return Ce(t); }, lt.prototype.num_points = lt.prototype.num_points = function () { var t = this.ptr; return Ve(t); }, lt.prototype.__destroy__ = lt.prototype.__destroy__ = function () { var t = this.ptr; ze(t); }, ft.prototype = Object.create(L.prototype), ft.prototype.constructor = ft, ft.prototype.__class__ = ft, ft.__cache__ = {}, mt.VoidPtr = ft, ft.prototype.__destroy__ = ft.prototype.__destroy__ = function () { var t = this.ptr; An(t); }, bt.prototype = Object.create(L.prototype), bt.prototype.constructor = bt, bt.prototype.__class__ = bt, bt.__cache__ = {}, mt.DracoInt32Array = bt, bt.prototype.GetValue = bt.prototype.GetValue = function (t) { var r = this.ptr; return t && "object" == typeof t && (t = t.ptr), se(r, t); }, bt.prototype.size = bt.prototype.size = function () { var t = this.ptr; return le(t); }, bt.prototype.GetArray = bt.prototype.GetArray = function (t, r) { var e = this.ptr; return t && "object" == typeof t && (t = t.ptr), r && "object" == typeof r && (r = r.ptr), !!ce(e, t, r); }, bt.prototype.__destroy__ = bt.prototype.__destroy__ = function () { var t = this.ptr; ye(t); }, dt.prototype = Object.create(L.prototype), dt.prototype.constructor = dt, dt.prototype.__class__ = dt, dt.__cache__ = {}, mt.Metadata = dt, dt.prototype.__destroy__ = dt.prototype.__destroy__ = function () { var t = this.ptr; Je(t); }, function () { function t() { mt.OK = Nn(), mt.ERROR = Fn(), mt.IO_ERROR = Sn(), mt.INVALID_PARAMETER = Un(), mt.UNSUPPORTED_VERSION = zn(), mt.UNKNOWN_VERSION = wn(), mt.INVALID_GEOMETRY_TYPE = jn(), mt.POINT_CLOUD = Tn(), mt.TRIANGULAR_MESH = Dn(), mt.ATTRIBUTE_INVALID_TRANSFORM = hn(), mt.ATTRIBUTE_NO_TRANSFORM = vn(), mt.ATTRIBUTE_QUANTIZATION_TRANSFORM = Gn(), mt.ATTRIBUTE_OCTAHEDRON_TRANSFORM = In(), mt.INVALID = On(), mt.POSITION = gn(), mt.NORMAL = Pn(), mt.COLOR = Rn(), mt.TEX_COORD = Mn(), mt.GENERIC = En(); } Jt ? t() : d(t); }(), "function" == typeof mt.onModuleParsed && mt.onModuleParsed(), r; }; }(); true ? module.exports = DracoDecoderModule : undefined; /* WEBPACK VAR INJECTION */ }).call(this, "/"); /***/ }, /***/ "./node_modules/arcgis-js-api/views/3d/layers/SceneLayerWorker.js": /*!************************************************************************!*\ !*** ./node_modules/arcgis-js-api/views/3d/layers/SceneLayerWorker.js ***! \************************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiViews3dLayersSceneLayerWorkerJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../../core/tsSupport/generatorHelper */ "./node_modules/arcgis-js-api/core/tsSupport/generatorHelper.js"), __webpack_require__( /*! ../../../core/tsSupport/awaiterHelper */ "./node_modules/arcgis-js-api/core/tsSupport/awaiterHelper.js"), __webpack_require__( /*! @dojo/framework/shim/array */ "./node_modules/@dojo/framework/shim/array.mjs"), __webpack_require__( /*! ../../../core/Error */ "./node_modules/arcgis-js-api/core/Error.js"), __webpack_require__( /*! ../../../core/promiseUtils */ "./node_modules/arcgis-js-api/core/promiseUtils.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/mat4 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/mat4.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/mat4f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/mat4f64.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/quat */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/quat.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/quatf32 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/quatf32.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/vec3 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/vec3f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3f64.js"), __webpack_require__( /*! ../../../geometry/SpatialReference */ "./node_modules/arcgis-js-api/geometry/SpatialReference.js"), __webpack_require__( /*! ../../../geometry/support/meshUtils/deduplicate */ "./node_modules/arcgis-js-api/geometry/support/meshUtils/deduplicate.js"), __webpack_require__( /*! ../../../libs/draco/DracoDecoder */ "./node_modules/arcgis-js-api/libs/draco/DracoDecoder.js"), __webpack_require__( /*! ./i3s/I3SBinaryReader */ "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SBinaryReader.js"), __webpack_require__( /*! ./i3s/I3SGeometryUtil */ "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SGeometryUtil.js"), __webpack_require__( /*! ./i3s/I3SProjectionUtil */ "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SProjectionUtil.js"), __webpack_require__( /*! ./i3s/I3SUtil */ "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SUtil.js"), __webpack_require__( /*! ../support/orientedBoundingBox */ "./node_modules/arcgis-js-api/views/3d/support/orientedBoundingBox.js"), __webpack_require__( /*! ../webgl-engine/lib/PreinterleavedGeometryData */ "./node_modules/arcgis-js-api/views/3d/webgl-engine/lib/PreinterleavedGeometryData.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, r, t, a, o, n, i, s, f, u, l, d, c, m, v, b, y, p, A, g, h, I) { function w(e) { return null == e.geometryIndex.header; } function x(e, r) { var t = e.mbs, a = e.elevationOffset, i = m.fromJSON(e.indexSR), f = m.fromJSON(e.vertexSR), u = m.fromJSON(e.renderSR), l = A.computeGlobalTransformation(t, a, i, u), d = new Array(), c = e.layouts[0], v = e.geometryBuffer, b = new N.DecoderBuffer(); b.Init(new Int8Array(v), v.byteLength); var y = new N.Decoder(), g = new N.Mesh(), h = y.DecodeBufferToMesh(b, g); if (!h.ok()) throw N.destroy(g), N.destroy(y), N.destroy(b), new n("draco:decode_error", "Error while decoding draco geometry", { message: h.error_msg() }); var w = new N.DracoInt32Array(), x = new N.MetadataQuerier(), O = y.GetAttributeIdByMetadataEntry(g, "i3s-attribute-type", "feature-index"), _ = y.GetAttributeMetadata(g, O); x.GetIntEntryArray(_, "i3s-feature-ids", w); var P = w.size(), R = N._malloc(4 * P); if (!w.GetArray(R, P)) throw "GetArray failed"; var M = new Uint32Array(N.HEAPU8.buffer, R, P).slice(); N._free(R); var T = g.num_points(), B = 3 * g.num_faces(), F = T < 65536; if (R = N._malloc(B * (F ? 2 : 4)), !(F ? y.GetTrianglesUInt16Array(g, R, B) : y.GetTrianglesUInt32Array(g, R, B))) throw "GetTrianglesArray failed"; var q = F ? new Uint16Array(N.HEAPU8.buffer, R, B).slice() : new Uint32Array(N.HEAPU8.buffer, R, B).slice(); N._free(R); var H = S(T, y, g, O), z = D(q, H), J = c[0].stride / Float32Array.BYTES_PER_ELEMENT, V = new Float32Array(J * T), j = new I(V, c, null, z, q), L = y.GetAttributeId(g, N.POSITION), k = G(3 * T, y, g, L), Q = j.getAttribute("position"), X = y.GetAttributeMetadata(g, L), Y = x.GetDoubleEntry(X, "i3s-scale_x"), K = x.GetDoubleEntry(X, "i3s-scale_y"); Y = Y <= 0 ? 1 : Y, K = K <= 0 ? 1 : K; for (var W = j.getAttribute("color"), Z = y.GetAttributeId(g, N.COLOR), $ = -1 !== Z, ee = $ ? U(4 * T, y, g, Z) : o.fill(new Array(4 * T), 255), re = 0; re < T; re++) { var te = re * Q.strideIdx + Q.offsetIdx; Q.data[te] = k[3 * re] * Y, Q.data[te + 1] = k[3 * re + 1] * K, Q.data[te + 2] = k[3 * re + 2]; var ae = re * W.strideIdx + W.offsetIdx; W.data[ae] = ee[4 * re], W.data[ae + 1] = ee[4 * re + 1], W.data[ae + 2] = ee[4 * re + 2], W.data[ae + 3] = ee[4 * re + 3]; } var oe = y.GetAttributeId(g, N.NORMAL); if (e.needNormals && -1 !== oe) { var ne = { normals: j.getAttribute("normalCompressed"), positions: j.getAttribute("position"), normalInd: j.getIndices("normalCompressed"), positionInd: j.getIndices("position") }, ie = e.normalReferenceFrame, se = G(3 * T, y, g, oe); p.processAndInterleaveNormals(ie, se, l, ne); } var fe = y.GetAttributeId(g, N.TEX_COORD), ue = j.getAttribute("uv0"); if (-1 !== fe && ue) for (var le = G(2 * T, y, g, fe), re = 0; re < T; re++) { var de = re * ue.strideIdx + ue.offsetIdx; ue.data[de] = le[2 * re], ue.data[de + 1] = le[2 * re + 1]; } var ce = y.GetAttributeIdByMetadataEntry(g, "i3s-attribute-type", "uv-region"), me = j.getAttribute("uvRegion"); if (-1 !== ce && me) for (var ve = E(4 * T, y, g, ce), re = 0; re < T; re++) { var de = re * me.strideIdx + me.offsetIdx; me.data[de] = ve[4 * re], me.data[de + 1] = ve[4 * re + 1], me.data[de + 2] = ve[4 * re + 2], me.data[de + 3] = ve[4 * re + 3]; } N.destroy(x), N.destroy(w), N.destroy(g), N.destroy(y), N.destroy(b), s.mat4.invert(C, l); var be = j.getAttribute("position"), ye = { globalTrafo: l }, pe = V.buffer; A.reprojectPoints(be, t, C, a, i, f, u); var Ae = p.extractPositionData(pe, c, q); return d.push({ layout: c, interleavedVertexData: pe, indices: q, corMatrices: ye, hasColors: $, positionData: Ae }), r && (r.push(pe), r.push(q.buffer)), { geometryBuffer: v, componentOffsets: z, featureIds: M, transformedGeometries: d, obb: null }; } function G(e, r, t, a) { var o = 4 * e, i = N._malloc(o), s = r.GetAttribute(t, a); if (!r.GetAttributeFloatArrayForAllPoints(t, s, i, e)) throw new n("draco:decode_error", "Error while getting attribute values", { attributeId: a }); var f = new Float32Array(N.HEAPU8.buffer, i, e).slice(); return N._free(i), f; } function S(e, r, t, a) { var o = 4 * e, i = N._malloc(o), s = r.GetAttribute(t, a); if (!r.GetAttributeUInt32ArrayForAllPoints(t, s, i, e)) throw new n("draco:decode_error", "Error while getting attribute values", { attributeId: a }); var f = new Uint32Array(N.HEAPU8.buffer, i, e).slice(); return N._free(i), f; } function E(e, r, t, a) { var o = 2 * e, i = N._malloc(o), s = r.GetAttribute(t, a); if (!r.GetAttributeUInt16ArrayForAllPoints(t, s, i, e)) throw new n("draco:decode_error", "Error while getting attribute values", { attributeId: a }); var f = new Uint16Array(N.HEAPU8.buffer, i, e).slice(); return N._free(i), f; } function U(e, r, t, a) { var o = e, i = N._malloc(o), s = r.GetAttribute(t, a); if (!r.GetAttributeUInt8ArrayForAllPoints(t, s, i, e)) throw new n("draco:decode_error", "Error while getting attribute values", { attributeId: a }); var f = new Uint8Array(N.HEAPU8.buffer, i, e).slice(); return N._free(i), f; } function D(e, r) { for (var t = new Array(), a = 0; a < e.length; ++a) { for (var o = e[a], n = r[o]; t.length <= n;) t.push(new Array()); t[n].push(o); } for (var i = 0, s = new Uint32Array(t.length + 1), a = 0; a < t.length; ++a) { var f = t[a]; s[a] = i; for (var u = 0, l = f; u < l.length; u++) { var o = l[u]; e[i++] = o; } } return s[t.length] = i, s; } function O(e, r) { var t = e.geometryData, a = e.geometryIndex, o = e.layouts, n = e.mbs, i = e.elevationOffset, f = m.fromJSON(e.indexSR), u = m.fromJSON(e.renderSR), l = A.computeGlobalTransformation(n, i, f, u); s.mat4.invert(C, l); var c = e.geometryBuffer, b = R(t, c, a), g = b.componentOffsets, w = b.featureIds; r && (w && r.push(w.buffer), g && r.push(g.buffer)); var x = e.obb ? null : h.create([0, 0, 0], [-1, -1, -1], [0, 0, 0, 1]); d.vec3.copy(F, n), F[2] += i, d.vec3.copy(q, F); for (var G = !1, S = 0, E = new Array(), U = 0, D = t.geometries; U < D.length; U++) { var O = D[U], T = o[S]; ++S; var B = e.geometryBuffer, N = [{ name: "color", byteValue: 255 }], H = ["normal", "normalCompressed"], z = p.interleaveGeometryBuffer(O, B, T, N, H), J = new I(new Float32Array(z), T), V = J.getAttribute("position"), j = e.mbs, L = e.elevationOffset, k = m.fromJSON(e.indexSR), Q = m.fromJSON(e.vertexSR), X = m.fromJSON(e.renderSR); A.reprojectPoints(V, j, C, L, k, Q, X), x && _(x, V, l); var Y = J.getAttribute("normalCompressed"); if (e.needNormals && Y) { var K = { normals: Y, positions: V, normalInd: J.getIndices("normalCompressed"), positionInd: J.getIndices("position") }, W = e.normalReferenceFrame, Z = y.createTypedView(B, O.params.vertexAttributes.normal); p.processAndInterleaveNormals(W, Z, l, K); } var $ = J.getAttribute("color"); $ && !G && (G = P($)); var ee = { globalTrafo: l }, re = T[0].stride, te = 1 - .8 * re / (re + 4), ae = v["default"](z, re / 4, { minReduction: te, componentOffsets: g }); if (null != ae) { var oe = ae.uniqueCount < M ? new Uint16Array(ae.indices) : ae.indices, ne = p.extractPositionData(ae.buffer, T, oe); E.push({ layout: T, interleavedVertexData: ae.buffer, indices: oe, corMatrices: ee, hasColors: G, positionData: ne }), r && (r.push(ae.buffer), r.push(oe.buffer), r.push(ne.data.buffer), r.push(ne.indices.buffer)); } else { var ne = p.extractPositionData(z, T); E.push({ layout: T, interleavedVertexData: z, corMatrices: ee, hasColors: G, positionData: ne }), r && (r.push(z), r.push(ne.data.buffer), r.push(ne.indices.buffer)); } x && d.vec3.transformMat4(x.center, x.center, l); } return { geometryBuffer: c, componentOffsets: g, featureIds: w, transformedGeometries: E, obb: x }; } function _(e, r, t) { if (e.halfSize[0] > 0) { d.vec3.subtract(F, e.center, e.halfSize), d.vec3.add(q, e.center, e.halfSize); for (var a = r.offsetIdx; a < r.data.length; a += r.strideIdx) F[0] = Math.min(F[0], r.data[a]), F[1] = Math.min(F[1], r.data[a + 1]), F[2] = Math.min(F[2], r.data[a + 2]), q[0] = Math.max(q[0], r.data[a]), q[1] = Math.max(q[1], r.data[a + 1]), q[2] = Math.max(q[2], r.data[a + 2]); d.vec3.subtract(e.halfSize, q, F), d.vec3.scale(e.halfSize, e.halfSize, .5), d.vec3.add(e.center, F, q), d.vec3.scale(e.center, e.center, .5); } else { h.compute(r, e); var o = 2 * Math.sqrt(1 + t[0] + t[5] + t[10]); H[0] = (t[9] - t[6]) / o, H[1] = (t[2] - t[8]) / o, H[2] = (t[4] - t[1]) / o, H[3] = .25 * o, u.quat.conjugate(H, H), u.quat.multiply(e.quaternion, H, e.quaternion); } } function P(e) { for (var r = e.data, t = e.size, a = e.offsetIdx, o = e.strideIdx, n = a; n < r.length; n += o) for (var i = 0; i < t; i++) if (255 !== r[n + i]) return !0; return !1; } function R(e, r, t) { e.geometries[0].params.vertexAttributes = t.vertexAttributes; var a, o, n = t.featureAttributes; if (n) { if (n.faceRange) { var i = y.createTypedView(r, n.faceRange), s = n.faceRange.valuesPerElement, f = n.faceRange.count; a = g.convertFlatRangesToOffsets(i, f, s); } var u = n.id; if (u) { o = new Uint32Array(u.count); var l = 1, d = y.valueType2TypedArrayClassMap[u.valueType]; "UInt64" === u.valueType && (d = Uint32Array, l = 2); for (var c = new d(r, u.byteOffset, u.count * u.valuesPerElement * l), m = 0; m < u.count; m++) { var v = m * u.valuesPerElement * l; if (o[m] = c[v], 2 === l && 0 !== c[v + 1]) throw new Error("ID exceeded maximum range supported (2^32))"); } } } return { componentOffsets: a, featureIds: o }; } var M = 65536, T = function () { function e() {} return e.prototype.process = function (r) { return a(this, void 0, void 0, function () { var a, o; return t(this, function (t) { switch (t.label) { case 0: return [4, e.ensureDracoDecoder(r)]; case 1: return t.sent(), a = [r.geometryBuffer], o = this.transform(r, a), [2, { result: o, transferList: a }]; } }); }); }, e.prototype.transform = function (e, r) { return w(e) ? x(e, r) : O(e, r); }, e; }(); !function (e) { function r(e) { return N && N.DecoderBuffer || e && !w(e) ? i.resolve() : (B || (B = b.getDecoderModule().then(function (e) { return N = e, B = null, N; })), B.then(function () {})); } e.ensureDracoDecoder = r; }(T || (T = {})); var B, N, C = f.mat4f64.create(), F = c.vec3f64.create(), q = c.vec3f64.create(), H = l.quatf32.create(); return T; }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SGeometryUtil.js": /*!***************************************************************************!*\ !*** ./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SGeometryUtil.js ***! \***************************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiViews3dLayersI3sI3SGeometryUtilJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../../../core/tsSupport/generatorHelper */ "./node_modules/arcgis-js-api/core/tsSupport/generatorHelper.js"), __webpack_require__( /*! ../../../../core/tsSupport/awaiterHelper */ "./node_modules/arcgis-js-api/core/tsSupport/awaiterHelper.js"), __webpack_require__( /*! ../../../../core/arrayUtils */ "./node_modules/arcgis-js-api/core/arrayUtils.js"), __webpack_require__( /*! ../../../../core/promiseUtils */ "./node_modules/arcgis-js-api/core/promiseUtils.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/vec2f32 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec2f32.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/vec3 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/vec3f32 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3f32.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/vec3f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3f64.js"), __webpack_require__( /*! ../../../../geometry/support/aaBoundingBox */ "./node_modules/arcgis-js-api/geometry/support/aaBoundingBox.js"), __webpack_require__( /*! ../../../../geometry/support/aaBoundingRect */ "./node_modules/arcgis-js-api/geometry/support/aaBoundingRect.js"), __webpack_require__( /*! ../../../../geometry/support/meshUtils/deduplicate */ "./node_modules/arcgis-js-api/geometry/support/meshUtils/deduplicate.js"), __webpack_require__( /*! ../../support/projectionUtils */ "./node_modules/arcgis-js-api/views/3d/support/projectionUtils.js"), __webpack_require__( /*! ../../webgl-engine/lib/Util */ "./node_modules/arcgis-js-api/views/3d/webgl-engine/lib/Util.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, r, t, n, a, o, i, s, c, f, u, d, l, v, p) { function E(e, r, t, n, a) { void 0 === n && (n = []), void 0 === a && (a = []); var o = e.params.vertexAttributes, i = o.position.count; if (!T(t[0].stride)) throw w("Layout stride must use " + Uint32Array.BYTES_PER_ELEMENT + "-byte words"); var s = t[0].stride / Uint32Array.BYTES_PER_ELEMENT, c = new Uint32Array(s * i); t = t.slice(0).sort(function (e, r) { return e.offset - r.offset; }); for (var f = 0, u = t; f < u.length; f++) { var d = u[f]; !function (e) { if (-1 !== a.indexOf(e.name)) return "continue"; var t = o[e.name], s = m(e.type), f = void 0, u = !1; if (null == t) { var d = n.filter(function (r) { return r.name === e.name; })[0]; if (!d) throw w("Geometry definition is missing attribute"); t = { valueType: b(e.type), byteOffset: 0, count: i, valuesPerElement: e.count }; for (var l = 0; l < C.length; l++) C[l] = d.byteValue; f = C.buffer, u = !0; } else f = r; if (b(e.type) !== t.valueType) throw w("Geometry definition type must match attribute type"); if (!h(t.byteOffset) || !h(e.offset)) throw w(e.name + " offset must use " + Uint32Array.BYTES_PER_ELEMENT + "-byte words"); if (!T(t.valuesPerElement * s.BYTES_PER_ELEMENT) || !T(e.count * s.BYTES_PER_ELEMENT)) throw w(e.name + " data must use " + Uint32Array.BYTES_PER_ELEMENT + "-byte words"); var v = new Uint32Array(f), p = t.byteOffset / Uint32Array.BYTES_PER_ELEMENT, E = t.valuesPerElement * s.BYTES_PER_ELEMENT / Uint32Array.BYTES_PER_ELEMENT, A = e.offset / Uint32Array.BYTES_PER_ELEMENT, S = e.stride / Uint32Array.BYTES_PER_ELEMENT; u ? y(v[0], E, c, A, S, i) : g(v, p, E, c, A, S, i); }(d); } return c.buffer; } function g(e, r, t, n, a, o, i) { switch (t) { case 1: for (var s = 0; s < i; s++) n[a] = e[r], r += 1, a += o; break; case 2: for (var s = 0; s < i; s++) n[a] = e[r], n[a + 1] = e[r + 1], r += 2, a += o; break; case 3: for (var s = 0; s < i; s++) n[a] = e[r], n[a + 1] = e[r + 1], n[a + 2] = e[r + 2], r += 3, a += o; break; case 4: for (var s = 0; s < i; s++) n[a] = e[r], n[a + 1] = e[r + 1], n[a + 2] = e[r + 2], n[a + 3] = e[r + 3], r += 4, a += o; break; default: throw w("Unhandled stride size " + t); } } function y(e, r, t, n, a, o) { switch (r) { case 1: for (var i = 0; i < o; i++) t[n] = e, n += a; break; case 2: for (var i = 0; i < o; i++) t[n] = e, t[n + 1] = e, n += a; break; case 3: for (var i = 0; i < o; i++) t[n] = e, t[n + 1] = e, t[n + 2] = e, n += a; break; case 4: for (var i = 0; i < o; i++) t[n] = e, t[n + 1] = e, t[n + 2] = e, t[n + 3] = e, n += a; break; default: throw w("Unhandled stride size " + r); } } function m(e) { switch (e) { case 5120: return Int8Array; case 5126: return Float32Array; case 5124: return Int32Array; case 5122: return Int16Array; case 5121: return Uint8Array; case 5125: return Uint32Array; case 5123: return Uint16Array; } throw new Error("Unhandled data type: " + e); } function b(e) { switch (e) { case 5120: return "Int8"; case 5126: return "Float32"; case 5124: return "Int32"; case 5122: return "Int16"; case 5121: return "UInt8"; case 5125: return "UInt32"; case 5123: return "UInt16"; } throw new Error("Unhandled data type: " + e); } function h(e) { return e % Uint32Array.BYTES_PER_ELEMENT == 0; } function T(e) { return e > 0 && e % Uint32Array.BYTES_PER_ELEMENT == 0; } function w(e) { return new Error("I3SGeometryUtil processing failed: " + e); } function A(e, r, t, n) { if ("none" === e) S(n);else { var a = "earth-centered" === e ? t : null; I(r, n.normals, a); } } function S(e) { var r = e.normals, t = e.positions, n = e.normalInd, a = e.positionInd; p.assert(e.normalInd.length === e.positionInd.length); for (var o = c.vec3f32.create(), f = c.vec3f32.create(), u = i.vec2f32.create(), d = t.data, l = t.offsetIdx, v = t.strideIdx, E = r.data, g = r.offsetIdx, y = r.strideIdx, m = 0; m < a.length; m += 3) { var b = a[m], h = l + v * b, T = d[h], w = d[h + 1], A = d[h + 2]; b = a[m + 1], h = l + v * b, o[0] = d[h] - T, o[1] = d[h + 1] - w, o[2] = d[h + 2] - A, b = a[m + 2], h = l + v * b, f[0] = d[h] - T, f[1] = d[h + 1] - w, f[2] = d[h + 2] - A, s.vec3.cross(o, o, f), p.encodeNormal(o, u); for (var S = 0; S < 3; S++) { var I = n[m + S], M = g + y * I; E[M] = p.encodeInt16(u[0]), E[M + 1] = p.encodeInt16(u[1]); } } } function I(e, r, t) { var n = e.length / 3, a = r.data, o = r.offsetIdx, i = r.strideIdx; if (null != t) for (var s = t, c = s[0], f = s[1], u = s[2], d = s[4], l = s[5], v = s[6], E = s[8], g = s[9], y = s[10], m = 0; m < n; m++) { var b = e[3 * m], h = e[3 * m + 1], T = e[3 * m + 2]; W[0] = c * b + f * h + u * T, W[1] = d * b + l * h + v * T, W[2] = E * b + g * h + y * T, p.encodeNormal(W, q), a[o + m * i] = p.encodeInt16(q[0]), a[o + m * i + 1] = p.encodeInt16(q[1]); } else for (var m = 0; m < n; m++) W[0] = e[3 * m], W[1] = e[3 * m + 1], W[2] = e[3 * m + 2], p.encodeNormal(W, q), a[o + m * i] = p.encodeInt16(q[0]), a[o + m * i + 1] = p.encodeInt16(q[1]); } function M(e, r, t) { var n = r[0]; if (null == n || "position" !== n.name || 5126 !== n.type) return null; for (var a = new Float32Array(e), o = n.stride / 4, i = n.offset / 4, s = 3 * a.length / o, c = new Float32Array(s), f = 0; f < s / 3; f++) c[3 * f] = a[f * o + i], c[3 * f + 1] = a[f * o + i + 1], c[3 * f + 2] = a[f * o + i + 2]; var u = l["default"](c.buffer, 3, { originalIndices: t }); return u.uniqueCount < O ? { data: new Float32Array(u.buffer), indices: new Uint16Array(u.indices) } : { data: new Float32Array(u.buffer), indices: u.indices }; } function U() { return !!G; } function _() { return n(this, void 0, void 0, function () { return t(this, function (r) { switch (r.label) { case 0: return U() ? [2, G] : [4, o.create(function (r) { return Promise.resolve().then(function () { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__( /*! ../../../../geometry/geometryEngine */ "./node_modules/arcgis-js-api/geometry/geometryEngine.js")]; r.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__); }.bind(this))["catch"](__webpack_require__.oe); })]; case 1: return G = r.sent(), [2, G]; } }); }); } function B(e, r) { if (!e) return null; if ("disjoint" === r && "polygon" === e.type) { for (var t = new Array(e.rings.length), n = 0; n < e.rings.length; ++n) { var o = d.fromValues(1 / 0, 1 / 0, -1 / 0, -1 / 0); d.expandWithNestedArray(o, e.rings[n]), t[n] = { type: "polygon", rings: [e.rings[n]], spatialReference: e.spatialReference, aabr: o }; } t.sort(function (e, r) { return e.aabr[0] - r.aabr[0]; }); for (var i = new Set(), s = new a.PositionHint(), n = 0; n < t.length; ++n) !function (e) { for (var r = t[e], n = e + 1; n < t.length; ++n) { var o = t[n]; if (o.aabr[0] >= r.aabr[2]) break; i.add(o); } i.forEach(function (e) { if (r !== e) { if (e.aabr[2] <= r.aabr[0]) return void i["delete"](e); if (G.intersects(r, e)) { r.rings = r.rings.concat(e.rings), d.expand(r.aabr, e.aabr), delete r._geVersion, i["delete"](e); var n = a.indexOf(t, e, t.length, s); t.splice(n, 1); } } }), i.add(r); }(n); for (var c = 0, f = t; c < f.length; c++) { delete f[c].aabr; } return t; } return [e]; } function R(e, r, t, n, a) { var o = r.renderSpatialReference, i = new Map(), s = { rings: [[[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]]], hasZ: !1, hasM: !1, type: "polygon", spatialReference: t }; s.rings[0][3] = s.rings[0][0]; var c, f, u = { indices: null, data: null, stride: 0, startIndex: 0, endIndex: 0 }; switch (e) { case "intersects": c = function c(e, r) { return G.intersects(e, r) ? 0 : 2; }, f = k; break; case "contains": c = function c(e, r) { return G.contains(e, r) ? 2 : 1; }, f = k; break; case "disjoint": default: c = function c(e, r) { return G.disjoint(e, r) ? 2 : 1; }, f = N; } return { collection: n, object: a, type: e, maskSR: t, renderSR: o, aabbCache: i, triangle: s, positions: u, triangleTest: c, geometryTest: f }; } function x(e, r) { var t = { x: e[0], y: e[1], hasZ: !1, hasM: !1, type: "point", spatialReference: r.maskSR }; return r.maskSR.isWGS84 || r.maskSR.isWebMercator ? G.geodesicBuffer(t, e[3], 1, !0) : G.buffer(t, e[3], 1, !0); } function P(e, r, t) { switch (t) { case "intersects": case "contains": return k(e, r); case "disjoint": return N(e, r); } } function k(e, r) { return G.intersects(e, r) ? G.contains(e, r) ? 0 : 2 : 1; } function N(e, r) { return G.intersects(e, r) ? G.contains(e, r) ? 1 : 2 : 0; } function L(e, r, t) { var n = t.collection, a = t.object, o = t.renderSR, i = t.maskSR, c = t.geometryTest, f = t.aabbCache, u = f.get(r); if (!u) { var d = n.getObjectTransform(a); n.getComponentAABB(a, r, V); for (var l = [[V[0], V[1], 0], [V[0], V[4], 0], [V[3], V[4], 0], [V[3], V[1], 0]], p = 0; p < 4; ++p) s.vec3.transformMat3(l[p], l[p], d.rotationScale), s.vec3.add(l[p], l[p], d.position), v.vectorToVector(l[p], o, l[p], i); u = { rings: [l], hasZ: !1, hasM: !1, type: "polygon", spatialReference: i }, u.rings[0][4] = u.rings[0][0], f.set(r, u); } switch (c(e, u)) { case 1: return !1; case 0: return !0; } var E = t.triangle, g = t.triangleTest, y = t.positions, m = E.rings[0][0], b = E.rings[0][1], h = E.rings[0][2], T = n.getObjectTransform(a); n.getComponentPositions(a, r, y); for (var w = y.indices, A = y.data, S = y.stride, I = y.startIndex, M = y.endIndex, p = I; p < M; p += 3) { var U = S * w[p + 0], _ = S * w[p + 1], B = S * w[p + 2]; s.vec3.set(m, A[U + 0], A[U + 1], A[U + 2]), s.vec3.set(b, A[_ + 0], A[_ + 1], A[_ + 2]), s.vec3.set(h, A[B + 0], A[B + 1], A[B + 2]), s.vec3.transformMat3(m, m, T.rotationScale), s.vec3.transformMat3(b, b, T.rotationScale), s.vec3.transformMat3(h, h, T.rotationScale), s.vec3.add(m, m, T.position), s.vec3.add(b, b, T.position), s.vec3.add(h, h, T.position), v.vectorToVector(m, o, m, i), v.vectorToVector(b, o, b, i), v.vectorToVector(h, o, h, i); var R = b[0] - m[0], x = b[1] - m[1], P = h[0] - m[0], k = h[1] - m[1]; if (!(Math.abs(R * k - x * P) < F)) switch (delete E._geVersion, g(e, E)) { case 1: return !1; case 0: return !0; } } switch (t.type) { case "intersects": return !1; case "contains": case "disjoint": default: return !0; } } function j(e, r, t, n) { for (var a = r.getComponentAABB(t, e, V), o = r.getObjectTransform(t), i = 0; i < 8; ++i) H[0] = 1 & i ? a[0] : a[3], H[1] = 2 & i ? a[1] : a[4], H[2] = 4 & i ? a[2] : a[5], s.vec3.transformMat3(H, H, o.rotationScale), s.vec3.add(H, H, o.position), n[3 * i] = H[0], n[3 * i + 1] = H[1], n[3 * i + 2] = H[2]; return n; } function Y(e, r, t, n) { var a = r.getComponentAABB(t, e, V), o = r.getObjectTransform(t); n[0] = 0, n[1] = 0, n[2] = 0; for (var i = 0; i < 8; ++i) H[0] = 1 & i ? a[0] : a[3], H[1] = 2 & i ? a[1] : a[4], H[2] = a[5], s.vec3.transformMat3(H, H, o.rotationScale), s.vec3.add(H, H, o.position), n[0] += H[0], n[1] += H[1], n[2] += H[2]; return n[0] /= 8, n[1] /= 8, n[2] /= 8, n; } Object.defineProperty(r, "__esModule", { value: !0 }); var C = new Uint8Array(64); r.interleaveGeometryBuffer = E, r.processAndInterleaveNormals = A, r.computeCompressedNormals = S; var O = 65536; r.extractPositionData = M; var G; r.isGeometryEngineLoaded = U, r.loadGeometryEngine = _, r.processFilterGeometry = B, r.acquireMaskFilterContext = R, r.computeMaskNodeMBS = x, r.testMaskWithGeometry = P; var F = Math.pow(2, -32); r.filterWithMask = L, r.boundingBoxCornerPoints = j, r.boundingBoxTop = Y; var V = u.create(), W = c.vec3f32.create(), q = i.vec2f32.create(), H = f.vec3f64.create(); }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SProjectionUtil.js": /*!*****************************************************************************!*\ !*** ./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SProjectionUtil.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiViews3dLayersI3sI3SProjectionUtilJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/mat4f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/mat4f64.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/vec3 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/vec3f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3f64.js"), __webpack_require__( /*! ../../support/earthUtils */ "./node_modules/arcgis-js-api/views/3d/support/earthUtils.js"), __webpack_require__( /*! ../../support/projectionUtils */ "./node_modules/arcgis-js-api/views/3d/support/projectionUtils.js"), __webpack_require__( /*! ../../webgl-engine/lib/localOrigin */ "./node_modules/arcgis-js-api/views/3d/webgl-engine/lib/localOrigin.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (r, e, t, a, o, n, i, c) { function f(r, e, a, o) { var n = l(r, e, a).center, c = t.mat4f64.create(); return i.computeLinearTransformation(a, n, c, o), c; } function v(r, e, t, o, n, c, f) { var v = r.data, u = r.offsetIdx, l = r.strideIdx; a.vec3.copy(M, e), M[2] += o; var d = [0, 0, 0], m = v.length / l; i.vectorToVector(M, n, d, c); for (var p = 0; p < m; p += h) { for (var g = Math.min(h, m - p), b = 0; b < g; b++) { var x = u + l * (p + b); s[3 * b + 0] = v[x + 0] + d[0], s[3 * b + 1] = v[x + 1] + d[1], s[3 * b + 2] = v[x + 2] + d[2]; } i.bufferToBuffer(s, c, 0, s, f, 0, g); for (var b = 0; b < g; b++) { var T = s[3 * b + 0], _ = s[3 * b + 1], I = s[3 * b + 2], O = u + l * (p + b); v[O + 0] = t[0] * T + t[4] * _ + t[8] * I + t[12], v[O + 1] = t[1] * T + t[5] * _ + t[9] * I + t[13], v[O + 2] = t[2] * T + t[6] * _ + t[10] * I + t[14]; } } } function u(r, e, t, a) { var o = l(r, e, t), n = o.center, f = o.id; return i.vectorToVector(n, t, n, a), c.fromVector(n, f); } function l(r, e, t) { var a, i, c, f = o.vec3f64.create(), v = r[3], u = Math.ceil(Math.log(v) * Math.LOG2E / m), l = Math.pow(2, u * m + d); if (t.isGeographic) { var h = l / n.earthRadius * 180 / Math.PI; i = Math.round(r[1] / h); var s = Math.max(-90, Math.min(90, i * h)), M = h / Math.cos((Math.abs(s) - h / 2) / 180 * Math.PI); a = Math.round(r[0] / M); var p = a * M; f[0] = p, f[1] = s; } else a = Math.round(r[0] / l), i = Math.round(r[1] / l), f[0] = a * l, f[1] = i * l; var g = r[2] + e; return c = Math.round(g / l), f[2] = c * l, { center: f, id: u + "_" + a + "_" + i + "_" + c }; } Object.defineProperty(e, "__esModule", { value: !0 }); var h = 1e3, s = new Float64Array(3 * h), M = o.vec3f64.create(); e.computeGlobalTransformation = f, e.reprojectPoints = v, e.createOrigin = u; var d = 1, m = 5 - d; }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SUtil.js": /*!*******************************************************************!*\ !*** ./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SUtil.js ***! \*******************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiViews3dLayersI3sI3SUtilJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../../../request */ "./node_modules/arcgis-js-api/request.js"), __webpack_require__( /*! ../../../../core/arrayUtils */ "./node_modules/arcgis-js-api/core/arrayUtils.js"), __webpack_require__( /*! ../../../../core/Error */ "./node_modules/arcgis-js-api/core/Error.js"), __webpack_require__( /*! ../../../../core/maybe */ "./node_modules/arcgis-js-api/core/maybe.js"), __webpack_require__( /*! ../../../../core/promiseUtils */ "./node_modules/arcgis-js-api/core/promiseUtils.js"), __webpack_require__( /*! ../../../../core/typedArrayUtil */ "./node_modules/arcgis-js-api/core/typedArrayUtil.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/mat4f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/mat4f64.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/quat */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/quat.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/quatf32 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/quatf32.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/vec3 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/vec3f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3f64.js"), __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/vec4f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec4f64.js"), __webpack_require__( /*! ../../../../geometry/SpatialReference */ "./node_modules/arcgis-js-api/geometry/SpatialReference.js"), __webpack_require__( /*! ../../../../geometry/support/aaBoundingBox */ "./node_modules/arcgis-js-api/geometry/support/aaBoundingBox.js"), __webpack_require__( /*! ../../../../geometry/support/webMercatorUtils */ "./node_modules/arcgis-js-api/geometry/support/webMercatorUtils.js"), __webpack_require__( /*! ../../../../tasks/QueryTask */ "./node_modules/arcgis-js-api/tasks/QueryTask.js"), __webpack_require__( /*! ../../../../tasks/support/Query */ "./node_modules/arcgis-js-api/tasks/support/Query.js"), __webpack_require__( /*! ./I3SBinaryReader */ "./node_modules/arcgis-js-api/views/3d/layers/i3s/I3SBinaryReader.js"), __webpack_require__( /*! ../../support/projectionUtils */ "./node_modules/arcgis-js-api/views/3d/support/projectionUtils.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, t, r, n, a, o, i, l, u, s, c, f, h, p, d, g, v, m, y, b, S) { function w(e) { return e && parseInt(e.substring(e.lastIndexOf("/") + 1, e.length), 10); } function x(e, r) { if (r) for (var n = 0; n < e.length; n++) if (e[n].encoding === t.DDS_ENCODING_STRING) return e[n]; for (var n = 0; n < e.length; n++) if (t.BROWSER_SUPPORTED_IMAGE_ENCODING_STRINGS.indexOf(e[n].encoding) > -1) return e[n]; return null; } function M(e, t, r, n, a, o) { a.traverse(r, function (r) { var a = r.mbs; t !== n && (a = te, S.mbsToMbs(r.mbs, n, a, t)); var i = C(e, a); if (0 !== i) return o(r, i), !0; }); } function R(e, t, r) { for (var n = 0, a = 0, o = 0; o < t.length && n < e.length; o++) e[n] === t[o] && (r(o) && (e[a] = e[n], a++), n++); e.length = a; } function I(e, t) { if (0 === t.rotationScale[1] && 0 === t.rotationScale[2] && 0 === t.rotationScale[3] && 0 === t.rotationScale[5] && 0 === t.rotationScale[6] && 0 === t.rotationScale[7]) return ee[0] = (e[0] - t.position[0]) / t.rotationScale[0], ee[1] = (e[1] - t.position[1]) / t.rotationScale[4], ee[2] = (e[2] - t.position[2]) / t.rotationScale[8], ee[3] = (e[3] - t.position[0]) / t.rotationScale[0], ee[4] = (e[4] - t.position[1]) / t.rotationScale[4], ee[5] = (e[5] - t.position[2]) / t.rotationScale[8], ee; } function C(e, t) { var r = t[0], n = t[1], a = t[2], o = t[3], i = e[0] - r, l = r - e[3], u = e[1] - n, s = n - e[4], c = e[2] - a, f = a - e[5], h = Math.max(i, l, 0), p = Math.max(u, s, 0), d = Math.max(c, f, 0), g = h * h + p * p + d * d; return g > o * o ? 0 : g > 0 ? 1 : -Math.max(i, l, u, s, c, f) > o ? 3 : 2; } function T(e, t, r) { for (var n = [], a = r && r.missingFields, o = r && r.originalFields, i = 0, l = e; i < l.length; i++) { for (var u = l[i], s = u.toLowerCase(), c = !1, f = 0, h = t; f < h.length; f++) { var p = h[f]; if (s === p.name.toLowerCase()) { n.push(p.name), c = !0, o && o.push(u); break; } } !c && a && a.push(u); } return n; } function q(e, t, r, o, l, u) { if (!0 === (u && u.populateObjectId) && (o = A(o, r)), 0 === t.length) return i.resolve(t); var s = e.associatedLayer, c = e.attributeStorageInfo; if (s) return E(s, t, r, o); if (c) { var f = l(t); if (!f) return i.reject(new a("scenelayer:features-not-loaded", "Tried to query attributes for unloaded features")); var h = e.parsedUrl.path; return i.all(f.map(function (e) { return k(h, c, e.node, e.indices, o).then(function (t) { for (var r = 0; r < e.graphics.length; r++) { var n = e.graphics[r], a = t[r]; if (n.attributes) for (var o in n.attributes) o in a || (a[o] = n.attributes[o]); n.attributes = a; } return e.graphics; }); })).then(n.flatten); } return i.reject(new a("scenelayer:no-attribute-source", "This scene layer does not have a source for attributes available")); } function A(e, t) { return e.filter(function (e) { return e !== t; }).concat([t]); } function E(e, t, r, n) { t.sort(function (e, t) { return e.attributes[r] - t.attributes[r]; }); var a = t.map(function (e) { return e.attributes[r]; }), o = [], i = T(n, e.fields, { originalFields: o }); return G(e, a, i).then(function (e) { for (var r = 0; r < t.length; r++) { var n = t[r], a = e[r], l = {}; if (n.attributes) for (var u in n.attributes) l[u] = n.attributes[u]; for (var s = 0; s < o.length; s++) l[o[s]] = a[i[s]]; n.attributes = l; } return t; }); } function G(e, t, r) { var n = e.capabilities.query.maxRecordCount; if (null != n && t.length > n) { var o = F(t, n); return i.all(o.map(function (t) { return G(e, t, r); })).then(O); } var l = new y({ objectIds: t, outFields: r, orderByFields: [e.objectIdField] }); return new m(e.parsedUrl.path).execute(l).then(function (e) { if (e && e.features && e.features.length === t.length) return e.features.map(function (e) { return e.attributes; }); throw new a("scenelayer:feature-not-in-associated-layer", "Feature not found in associated feature layer"); }); } function k(e, t, n, a, o) { for (var l = [], u = 0, s = t; u < s.length; u++) { var c = s[u]; if (c && -1 !== o.indexOf(c.name)) { var f = e + "/nodes/" + n.resources.attributes + "/attributes/" + c.key + "/0"; l.push({ url: f, storageInfo: c }); } } return i.eachAlways(l.map(function (e) { return r(e.url, { responseType: "array-buffer" }).then(function (t) { return b.readBinaryAttribute(e.storageInfo, t.data); }); })).then(function (e) { for (var t = [], r = 0, n = a; r < n.length; r++) { for (var o = n[r], i = {}, u = 0; u < e.length; u++) null != e[u].value && (i[l[u].storageInfo.name] = N(e[u].value, o)); t.push(i); } return t; }); } function N(e, t) { if (!e) return null; var r = e[t]; return l.isInt16Array(e) ? r === re ? null : r : l.isInt32Array(e) ? r === ne ? null : r : r !== r ? null : r; } function F(e, t) { for (var r = e.length, n = Math.ceil(r / t), a = [], o = 0; o < n; o++) { var i = Math.floor(r * o / n), l = Math.floor(r * (o + 1) / n); a.push(e.slice(i, l)); } return a; } function O(e) { for (var t = [], r = 0, n = e; r < n.length; r++) { var a = n[r]; t = t.concat(a); } return t; } function _(e, t, r) { for (var n = null != t ? t : e.length / r, o = new Uint32Array(n + 1), i = 0; i < n; i++) { var l = e[i * r], u = 3 * l; o[i] = u; var s = (i - 1) * r + 1; if (s >= 0 && l - 1 !== e[s]) throw new a("Face ranges are not continuous"); } var c = e[(n - 1) * r + 1], f = 3 * (c + 1); return o[o.length - 1] = f, o; } function B(e) { var t = new d(w(e.store.indexCRS || e.store.geographicCRS)); return t.equals(e.spatialReference) ? e.spatialReference : t; } function j(e) { var t = new d(w(e.store.vertexCRS || e.store.projectedCRS)); return t.equals(e.spatialReference) ? e.spatialReference : t; } function L(e, t) { return t === S.SphericalECEFSpatialReference ? "@ECEF" : e.equals(t) ? "" : null != t.wkid ? "@" + t.wkid : null; } function P(e, t, r) { if (!v.canProject(e, t)) throw new a("layerview:spatial-reference-incompatible", "The spatial reference of this scene layer is incompatible with the spatial reference of the view", {}); if ("local" === r && e.isGeographic) throw new a("layerview:local-gcs-not-supported", "Geographic coordinate systems are not supported in local scenes", {}); } function D(e, t, r) { var n = B(e), a = j(e); P(n, t, r), P(a, t, r); } function U(e) { return (null == e.geometryType || "triangles" === e.geometryType) && (null == e.topology || "PerAttributeArray" === e.topology) && null != e.vertexAttributes && null != e.vertexAttributes.position; } function z(e) { if (null == e.store || null == e.store.defaultGeometrySchema || !U(e.store.defaultGeometrySchema)) throw new a("scenelayer:unsupported-geometry-schema", "The geometry schema of this scene layer is not supported.", {}); } function W(e, t) { D(e, t.spatialReference, t.viewingMode); } function V(e) { return null != e.geometryType && "points" === e.geometryType && (null == e.topology || "PerAttributeArray" === e.topology) && (null == e.encoding || "" === e.encoding || "lepcc-xyz" === e.encoding) && null != e.vertexAttributes && null != e.vertexAttributes.position; } function Q(e) { if (null == e.store || null == e.store.defaultGeometrySchema || !V(e.store.defaultGeometrySchema)) throw new a("pointcloud:unsupported-geometry-schema", "The geometry schema of this point cloud scene layer is not supported.", {}); } function K(e, t) { P(e.spatialReference, t.spatialReference, t.viewingMode); } function H(e) { return "simple" === e.type || "class-breaks" === e.type || "unique-value" === e.type; } function J(e) { return "mesh-3d" === e.type; } function X(e) { if (null == e || !H(e)) return !0; if (("unique-value" === e.type || "class-breaks" === e.type) && null == e.defaultSymbol) return !0; var t = e.getSymbols(); if (0 === t.length) return !0; for (var r = 0, n = t; r < n.length; r++) { var a = n[r]; if (!J(a) || 0 === a.symbolLayers.length) return !0; for (var i = 0, l = a.symbolLayers.items; i < l.length; i++) { var u = l[i]; if ("fill" !== u.type || o.isNone(u.material) || o.isNone(u.material.color) || "replace" !== u.material.colorMixMode) return !0; } } return !1; } function Y(e) { for (var t = new ae(), r = !1, n = !1, a = 0, i = e.symbolLayers.items; a < i.length; a++) { var l = i[a]; if ("fill" === l.type && l.enabled) { var u = l.material, s = l.edges; if (o.isSome(u) && !r) { var c = u.color, f = u.colorMixMode; o.isSome(c) ? t.material = { color: [c.r / 255, c.g / 255, c.b / 255], alpha: c.a, colorMixMode: f } : t.material = { color: [1, 1, 1], alpha: 1, colorMixMode: "multiply" }, t.castShadows = l.castShadows, r = !0; } o.isSome(s) && !n && (t.edges = s, n = !0); } } return t.material || (t.material = { color: [1, 1, 1], alpha: 1, colorMixMode: "multiply" }), t; } function Z(e, t) { return (0 | e) + (0 | t) | 0; } function $(e, t, r, n, a) { if (void 0 === a && (a = 0), f.vec3.set(r.center, e.center[0], e.center[1], e.center[2] + a), t === S.SphericalECEFSpatialReference || n !== S.SphericalECEFSpatialReference || t.isGeographic) S.bufferToBuffer(r.center, t, 0, r.center, n, 0, 1), s.quat.copy(r.quaternion, e.quaternion), f.vec3.copy(r.halfSize, e.halfSize);else { for (var o = 0; o < 8; o++) f.vec3.set(oe, e.halfSize[0] * (1 == (1 & o) ? -1 : 1), e.halfSize[1] * (2 == (2 & o) ? -1 : 1), e.halfSize[2] * (4 == (4 & o) ? -1 : 1)), f.vec3.transformQuat(oe, oe, e.quaternion), f.vec3.add(oe, oe, r.center), ue[3 * o + 0] = oe[0], ue[3 * o + 1] = oe[1], ue[3 * o + 2] = oe[2]; S.computeLinearTransformation(t, r.center, ie, n); var i = 2 * Math.sqrt(1 + ie[0] + ie[5] + ie[10]); le[0] = (ie[6] - ie[9]) / i, le[1] = (ie[8] - ie[2]) / i, le[2] = (ie[1] - ie[4]) / i, le[3] = .25 * i, s.quat.multiply(r.quaternion, le, e.quaternion), f.vec3.set(r.center, ie[12], ie[13], ie[14]), S.bufferToBuffer(ue, t, 0, ue, n, 0, 8), s.quat.conjugate(le, r.quaternion); for (var l = 0, u = 0, c = 0, o = 0; o < 8; o++) f.vec3.set(oe, ue[3 * o + 0], ue[3 * o + 1], ue[3 * o + 2]), f.vec3.sub(oe, oe, r.center), f.vec3.transformQuat(oe, oe, le), l = Math.max(l, Math.abs(oe[0])), u = Math.max(u, Math.abs(oe[1])), c = Math.max(c, Math.abs(oe[2])); f.vec3.set(r.halfSize, l, u, c); } } Object.defineProperty(t, "__esModule", { value: !0 }), t.DDS_ENCODING_STRING = "image/vnd-ms.dds", t.BROWSER_SUPPORTED_IMAGE_ENCODING_STRINGS = ["image/jpeg", "image/png"], t.extractWkid = w, t.selectEncoding = x, t.findIntersectingNodes = M, t.filterInPlace = R; var ee = g.create(); t.getClipAABB = I; var te = p.vec4f64.create(); t.intersectBoundingBoxWithMbs = C, t.findFieldsCaseInsensitive = T, t.whenGraphicAttributes = q; var re = -Math.pow(2, 15), ne = -Math.pow(2, 31); t.getCachedAttributeValue = N, t.convertFlatRangesToOffsets = _, t.getIndexCrs = B, t.getVertexCrs = j, t.getCacheKeySuffix = L, t.checkSpatialReference = P, t.checkSpatialReferences = D, t.checkSceneLayerValid = z, t.checkSceneLayerCompatibleWithView = W, t.checkPointCloudLayerValid = Q, t.checkPointCloudLayerCompatibleWithView = K, t.rendererNeedsTextures = X; var ae = function () { function e() { this.edges = null, this.material = null, this.castShadows = !0; } return e; }(); t.SymbolInfo = ae, t.getSymbolInfo = Y, t.addWraparound = Z, t.transformObb = $; var oe = h.vec3f64.create(), ie = u.mat4f64.create(), le = c.quatf32.create(), ue = new Float64Array(24); }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/views/3d/support/dito.js": /*!*************************************************************!*\ !*** ./node_modules/arcgis-js-api/views/3d/support/dito.js ***! \*************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiViews3dSupportDitoJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports], __WEBPACK_AMD_DEFINE_RESULT__ = function (r, t) { function i(r, t) { var i = r.data, o = r.strideIdx, e = i.length / o; if (!(e <= 0)) { var s = new ir(r); x(M, s.minProj, s.maxProj), I(M, M, .5), d(F, s.maxProj, s.minProj); var f = j(F), h = new nr(); h.quality = f, e < 14 && (r = { data: new Float64Array(s.buffer, 112, 42), size: 3, offsetIdx: 0, strideIdx: 3 }); var u = [0, 0, 0], b = [0, 0, 0], l = [0, 0, 0], N = [0, 0, 0], y = [0, 0, 0], V = [0, 0, 0], q = [0, 0, 0]; switch (n(s, r, q, u, b, l, N, y, V, h)) { case 1: return void m(M, F, t); case 2: return void v(r, N, t); } a(r, q, u, b, l, N, y, V, h), c(r, h.b0, h.b1, h.b2, U, W); var w = [0, 0, 0]; d(w, W, U), h.quality = j(w), h.quality < f ? P(h.b0, h.b1, h.b2, U, W, w, t) : m(M, F, t); } } function n(r, t, i, n, a, s, h, u, m, v) { return o(r, n, a), V(n, a) < A ? 1 : (d(h, n, a), N(h, h), e(t, n, h, s) < A ? 2 : (d(u, a, s), N(u, u), d(m, s, n), N(m, m), l(i, u, h), N(i, i), f(t, i, h, u, m, v), 0)); } function a(r, t, i, n, a, o, e, h, u) { s(r, t, i, T, E), void 0 !== T[0] && (d(_, T, i), N(_, _), d(g, T, n), N(g, g), d(Y, T, a), N(Y, Y), l(O, g, o), N(O, O), l(S, Y, e), N(S, S), l(p, _, h), N(p, p), f(r, O, o, g, _, u), f(r, S, e, Y, g, u), f(r, p, h, _, Y, u)), void 0 !== E[0] && (d(_, E, i), N(_, _), d(g, E, n), N(g, g), d(Y, E, a), N(Y, Y), l(O, g, o), N(O, O), l(S, Y, e), N(S, S), l(p, _, h), N(p, p), f(r, O, o, g, _, u), f(r, S, e, Y, g, u), f(r, p, h, _, Y, u)); } function o(r, t, i) { for (var n = V(r.maxVert[0], r.minVert[0]), a = 0, o = 1; o < 7; ++o) { var e = V(r.maxVert[o], r.minVert[o]); e > n && (n = e, a = o); } b(t, r.minVert[a]), b(i, r.maxVert[a]); } function e(r, t, i, n) { for (var a = r.data, o = r.offsetIdx, e = r.strideIdx, s = Number.NEGATIVE_INFINITY, f = 0, h = o; h < a.length; h += e) { z[0] = a[h] - t[0], z[1] = a[h + 1] - t[1], z[2] = a[h + 2] - t[2]; var u = i[0] * z[0] + i[1] * z[1] + i[2] * z[2], m = i[0] * i[0] + i[1] * i[1] + i[2] * i[2], v = z[0] * z[0] + z[1] * z[1] + z[2] * z[2], c = v - u * u / m; c > s && (s = c, f = h); } return b(n, a, f), s; } function s(r, t, i, n, a) { u(r, t, B, a, n); var o = q(i, t); B[1] - A <= o && (n[0] = void 0), B[0] + A >= o && (a[0] = void 0); } function f(r, t, i, n, a, o) { if (!(y(t) < A)) { l(G, i, t), l(k, n, t), l(C, a, t), h(r, t, B), H[1] = B[0], D[1] = B[1], J[1] = D[1] - H[1]; for (var e = [i, n, a], s = [G, k, C], f = 0; f < 3; ++f) { h(r, e[f], B), H[0] = B[0], D[0] = B[1], h(r, s[f], B), H[2] = B[0], D[2] = B[1], J[0] = D[0] - H[0], J[2] = D[2] - H[2]; var u = j(J); u < o.quality && (b(o.b0, e[f]), b(o.b1, t), b(o.b2, s[f]), o.quality = u); } } } function h(r, t, i) { var n = r.data, a = r.offsetIdx, o = r.strideIdx; i[0] = Number.POSITIVE_INFINITY, i[1] = Number.NEGATIVE_INFINITY; for (var e = a; e < n.length; e += o) { var s = n[e] * t[0] + n[e + 1] * t[1] + n[e + 2] * t[2]; i[0] = Math.min(i[0], s), i[1] = Math.max(i[1], s); } } function u(r, t, i, n, a) { var o = r.data, e = r.offsetIdx, s = r.strideIdx; b(n, o, e), b(a, n), i[0] = q(K, t), i[1] = i[0]; for (var f = e + s; f < o.length; f += s) { var h = o[f] * t[0] + o[f + 1] * t[1] + o[f + 2] * t[2]; h < i[0] && (i[0] = h, b(n, o, f)), h > i[1] && (i[1] = h, b(a, o, f)); } } function m(r, t, i) { b(i.center, r), I(i.halfSize, t, .5), i.quaternion[0] = 0, i.quaternion[1] = 0, i.quaternion[2] = 0, i.quaternion[3] = 1; } function v(r, t, i) { b(L, t), Math.abs(t[0]) > Math.abs(t[1]) && Math.abs(t[0]) > Math.abs(t[2]) ? L[0] = 0 : Math.abs(t[1]) > Math.abs(t[2]) ? L[1] = 0 : L[2] = 0, y(L) < A && (L[0] = L[1] = L[2] = 1), l(Q, t, L), N(Q, Q), l(R, t, Q), N(R, R), c(r, t, Q, R, U, W), d(X, W, U), P(t, Q, R, U, W, X, i); } function c(r, t, i, n, a, o) { h(r, t, B), a[0] = B[0], o[0] = B[1], h(r, i, B), a[1] = B[0], o[1] = B[1], h(r, n, B), a[2] = B[0], o[2] = B[1]; } function P(r, t, i, n, a, o, e) { $[0] = r[0], $[1] = r[1], $[2] = r[2], $[3] = t[0], $[4] = t[1], $[5] = t[2], $[6] = i[0], $[7] = i[1], $[8] = i[2], w(e.quaternion, $), x(rr, n, a), I(rr, rr, .5), I(e.center, r, rr[0]), I(Z, t, rr[1]), x(e.center, e.center, Z), I(Z, i, rr[2]), x(e.center, e.center, Z), I(e.halfSize, o, .5); } function j(r) { return r[0] * r[1] + r[0] * r[2] + r[1] * r[2]; } function x(r, t, i) { r[0] = t[0] + i[0], r[1] = t[1] + i[1], r[2] = t[2] + i[2]; } function d(r, t, i) { r[0] = t[0] - i[0], r[1] = t[1] - i[1], r[2] = t[2] - i[2]; } function I(r, t, i) { r[0] = t[0] * i, r[1] = t[1] * i, r[2] = t[2] * i; } function b(r, t, i) { void 0 === i && (i = 0), r[0] = t[i + 0], r[1] = t[i + 1], r[2] = t[i + 2]; } function l(r, t, i) { var n = t[0], a = t[1], o = t[2], e = i[0], s = i[1], f = i[2]; r[0] = a * f - o * s, r[1] = o * e - n * f, r[2] = n * s - a * e; } function N(r, t) { var i = t[0] * t[0] + t[1] * t[1] + t[2] * t[2]; if (i > 0) { var n = 1 / Math.sqrt(i); r[0] = t[0] * n, r[1] = t[1] * n, r[2] = t[2] * n; } } function y(r) { return r[0] * r[0] + r[1] * r[1] + r[2] * r[2]; } function V(r, t) { var i = t[0] - r[0], n = t[1] - r[1], a = t[2] - r[2]; return i * i + n * n + a * a; } function q(r, t) { return r[0] * t[0] + r[1] * t[1] + r[2] * t[2]; } function w(r, t) { var i = t[0] + t[4] + t[8]; if (i > 0) { var n = Math.sqrt(i + 1); r[3] = .5 * n, n = .5 / n, r[0] = (t[5] - t[7]) * n, r[1] = (t[6] - t[2]) * n, r[2] = (t[1] - t[3]) * n; } else { var a = 0; t[4] > t[0] && (a = 1), t[8] > t[3 * a + a] && (a = 2); var o = (a + 1) % 3, e = (a + 2) % 3, n = Math.sqrt(t[3 * a + a] - t[3 * o + o] - t[3 * e + e] + 1); r[a] = .5 * n, n = .5 / n, r[3] = (t[3 * o + e] - t[3 * e + o]) * n, r[o] = (t[3 * o + a] + t[3 * a + o]) * n, r[e] = (t[3 * e + a] + t[3 * a + e]) * n; } } Object.defineProperty(t, "__esModule", { value: !0 }); var A = 1e-6, M = [0, 0, 0], F = [0, 0, 0]; t.computeOBB = i; var T = [0, 0, 0], E = [0, 0, 0], _ = [0, 0, 0], g = [0, 0, 0], Y = [0, 0, 0], O = [0, 0, 0], S = [0, 0, 0], p = [0, 0, 0], z = [0, 0, 0], B = [0, 0], G = [0, 0, 0], k = [0, 0, 0], C = [0, 0, 0], D = [0, 0, 0], H = [0, 0, 0], J = [0, 0, 0], K = [0, 0, 0], L = [0, 0, 0], Q = [0, 0, 0], R = [0, 0, 0], U = [0, 0, 0], W = [0, 0, 0], X = [0, 0, 0], Z = [0, 0, 0], $ = [1, 0, 0, 0, 1, 0, 0, 0, 1], rr = [0, 0, 0], tr = 7, ir = function () { function r(r) { this.minVert = new Array(tr), this.maxVert = new Array(tr); var t = 64 * tr; this.buffer = new ArrayBuffer(t); var i = 0; this.minProj = new Float64Array(this.buffer, i, tr), i += 8 * tr, this.maxProj = new Float64Array(this.buffer, i, tr), i += 8 * tr; for (var n = 0; n < tr; ++n) this.minVert[n] = new Float64Array(this.buffer, i, 3), i += 24; for (var n = 0; n < tr; ++n) this.maxVert[n] = new Float64Array(this.buffer, i, 3), i += 24; for (var n = 0; n < tr; ++n) this.minProj[n] = Number.POSITIVE_INFINITY, this.maxProj[n] = Number.NEGATIVE_INFINITY; for (var a = new Array(tr), o = new Array(tr), e = r.data, s = r.offsetIdx, f = r.strideIdx, n = s; n < e.length; n += f) { var h = e[n]; h < this.minProj[0] && (this.minProj[0] = h, a[0] = n), h > this.maxProj[0] && (this.maxProj[0] = h, o[0] = n), h = e[n + 1], h < this.minProj[1] && (this.minProj[1] = h, a[1] = n), h > this.maxProj[1] && (this.maxProj[1] = h, o[1] = n), h = e[n + 2], h < this.minProj[2] && (this.minProj[2] = h, a[2] = n), h > this.maxProj[2] && (this.maxProj[2] = h, o[2] = n), h = e[n] + e[n + 1] + e[n + 2], h < this.minProj[3] && (this.minProj[3] = h, a[3] = n), h > this.maxProj[3] && (this.maxProj[3] = h, o[3] = n), h = e[n] + e[n + 1] - e[n + 2], h < this.minProj[4] && (this.minProj[4] = h, a[4] = n), h > this.maxProj[4] && (this.maxProj[4] = h, o[4] = n), h = e[n] - e[n + 1] + e[n + 2], h < this.minProj[5] && (this.minProj[5] = h, a[5] = n), h > this.maxProj[5] && (this.maxProj[5] = h, o[5] = n), h = e[n] - e[n + 1] - e[n + 2], h < this.minProj[6] && (this.minProj[6] = h, a[6] = n), h > this.maxProj[6] && (this.maxProj[6] = h, o[6] = n); } for (var n = 0; n < tr; ++n) { var u = a[n]; b(this.minVert[n], e, u), u = o[n], b(this.maxVert[n], e, u); } } return r; }(), nr = function () { function r() { this.b0 = [1, 0, 0], this.b1 = [0, 1, 0], this.b2 = [0, 0, 1], this.quality = 0; } return r; }(); }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/views/3d/support/orientedBoundingBox.js": /*!****************************************************************************!*\ !*** ./node_modules/arcgis-js-api/views/3d/support/orientedBoundingBox.js ***! \****************************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiViews3dSupportOrientedBoundingBoxJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../../core/libs/gl-matrix-2/mat3 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/mat3.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/mat3f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/mat3f64.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/quat */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/quat.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/quatf32 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/quatf32.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/quatf64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/quatf64.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/vec3 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/vec3f32 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3f32.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/vec3f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3f64.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/vec4 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec4.js"), __webpack_require__( /*! ../../../core/libs/gl-matrix-2/vec4f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec4f64.js"), __webpack_require__( /*! ../../../geometry/support/aaBoundingBox */ "./node_modules/arcgis-js-api/geometry/support/aaBoundingBox.js"), __webpack_require__( /*! ./dito */ "./node_modules/arcgis-js-api/views/3d/support/dito.js"), __webpack_require__( /*! ./geometryUtils */ "./node_modules/arcgis-js-api/views/3d/support/geometryUtils.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, a, t, r, n, i, c, f, o, u, s, l, h, v, b) { function m(e, a, t) { return { center: u.vec3f64.clone(e), halfSize: o.vec3f32.clone(a), quaternion: i.quatf32.clone(t) }; } function z(e) { return m(e.center, e.halfSize, e.quaternion); } function S(e, a) { f.vec3.copy(a.center, e.center), f.vec3.copy(a.halfSize, e.halfSize), n.quat.copy(a.quaternion, e.quaternion); } function M(e, a) { return a || (a = m([0, 0, 0], [-1, -1, -1], [0, 0, 0, 1])), v.computeOBB(e, a), a; } function g(e, a) { var t = b.plane.signedDistance(a, e.center), r = j(e, a); return t > r ? 1 : t < -r ? -1 : 0; } function q(e, a) { a || (a = h.create()); var r = t.mat3.fromQuat(P, e.quaternion), n = e.halfSize[0] * Math.abs(r[0]) + e.halfSize[1] * Math.abs(r[3]) + e.halfSize[2] * Math.abs(r[6]), i = e.halfSize[0] * Math.abs(r[1]) + e.halfSize[1] * Math.abs(r[4]) + e.halfSize[2] * Math.abs(r[7]), c = e.halfSize[0] * Math.abs(r[2]) + e.halfSize[1] * Math.abs(r[5]) + e.halfSize[2] * Math.abs(r[8]); return a[0] = e.center[0] - n, a[1] = e.center[1] - i, a[2] = e.center[2] - c, a[3] = e.center[0] + n, a[4] = e.center[1] + i, a[5] = e.center[2] + c, a; } function p(e, a) { return b.plane.signedDistance(a, e.center) - j(e, a); } function x(e, a) { return b.plane.signedDistance(a, e.center) + j(e, a); } function d(e, a) { return g(e, a.planes[0]) <= 0 && g(e, a.planes[1]) <= 0 && g(e, a.planes[2]) <= 0 && g(e, a.planes[3]) <= 0 && g(e, a.planes[4]) <= 0 && g(e, a.planes[5]) <= 0; } function y(e, a, t, r) { void 0 === r && (r = 0), n.quat.conjugate(w, e.quaternion), f.vec3.subtract(A, a, e.center); for (var i = f.vec3.transformQuat(A, A, w), c = f.vec3.transformQuat(Q, t, w), o = -1 / 0, u = 1 / 0, s = 0; s < 3; s++) if (Math.abs(c[s]) > 1e-6) { var l = (r + e.halfSize[s] - i[s]) / c[s], h = (-r - e.halfSize[s] - i[s]) / c[s]; o = Math.max(o, Math.min(l, h)), u = Math.min(u, Math.max(l, h)); } else if (i[s] > e.halfSize[s] + r || i[s] < -e.halfSize[s] - r) return !1; return o <= u; } function B(e, a, r, i, c) { n.quat.conjugate(w, e.quaternion), f.vec3.sub(A, a, e.center), f.vec3.transformQuat(A, A, w); var o = A[0] < -e.halfSize[0] ? -1 : A[0] > e.halfSize[0] ? 1 : 0, u = A[1] < -e.halfSize[1] ? -1 : A[1] > e.halfSize[1] ? 1 : 0, l = A[2] < -e.halfSize[2] ? -1 : A[2] > e.halfSize[2] ? 1 : 0, h = Math.abs(o) + Math.abs(u) + Math.abs(l); if (0 === h) return 1 / 0; var v = 1 === h ? 4 : 6, b = 6 * (o + 3 * u + 9 * l + 13); t.mat3.fromQuat(P, e.quaternion), t.mat3.scale(P, P, e.halfSize); for (var m = 0; m < v; m++) { var z = _[b + m]; f.vec3.set(A, ((1 & z) << 1) - 1, (2 & z) - 1, ((4 & z) >> 1) - 1), f.vec3.transformMat3(A, A, P), f.vec3.add(D, e.center, A), D[3] = 1, s.vec4.transformMat4(D, D, r); var S = 1 / Math.max(1e-6, D[3]); O[2 * m] = D[0] * S, O[2 * m + 1] = D[1] * S; } for (var M = 2 * v - 2, g = O[0] * (O[3] - O[M + 1]) + O[M] * (O[1] - O[M - 1]), m = 2; m < M; m += 2) g += O[m] * (O[m + 3] - O[m - 1]); return Math.abs(g) * i * c * .125; } function j(e, a) { n.quat.conjugate(w, e.quaternion), f.vec3.transformQuat(A, a, w); var t = e.halfSize; return Math.abs(A[0] * t[0]) + Math.abs(A[1] * t[1]) + Math.abs(A[2] * t[2]); } Object.defineProperty(a, "__esModule", { value: !0 }); var w = c.quatf64.create(), A = u.vec3f64.create(), Q = u.vec3f64.create(), D = l.vec4f64.create(), P = r.mat3f64.create(), V = function () { function e(e) { var a = 56 * e; this.buffer = new ArrayBuffer(a), this.obbs = new Array(e); for (var t = 0; t < e; t++) this.obbs[t] = { center: u.vec3f64.createView(this.buffer, 56 * t + 0), halfSize: o.vec3f32.createView(this.buffer, 56 * t + 24), quaternion: i.quatf32.createView(this.buffer, 56 * t + 36) }; } return e; }(); a.ObbArray = V, a.create = m, a.clone = z, a.set = S, a.compute = M, a.intersectPlane = g, a.toAaBoundingBox = q, a.minimumDistancePlane = p, a.maximumDistancePlane = x, a.isVisible = d, a.intersectLine = y, a.projectedArea = B; var O = [.1, .2, .3, .4, .5, .6, .7, .8, .9, 1, 1.1, 1.2], _ = function () { var e = new Int8Array(162), a = 0, t = function t(_t2) { for (var r = 0; r < _t2.length; r++) e[a + r] = _t2[r]; a += 6; }; return t([6, 2, 3, 1, 5, 4]), t([0, 2, 3, 1, 5, 4]), t([0, 2, 3, 7, 5, 4]), t([0, 1, 3, 2, 6, 4]), t([0, 1, 3, 2, 0, 0]), t([0, 1, 5, 7, 3, 2]), t([0, 1, 3, 7, 6, 4]), t([0, 1, 3, 7, 6, 2]), t([0, 1, 5, 7, 6, 2]), t([0, 1, 5, 4, 6, 2]), t([0, 1, 5, 4, 0, 0]), t([0, 1, 3, 7, 5, 4]), t([0, 2, 6, 4, 0, 0]), t([0, 0, 0, 0, 0, 0]), t([1, 3, 7, 5, 0, 0]), t([2, 3, 7, 6, 4, 0]), t([2, 3, 7, 6, 0, 0]), t([2, 3, 1, 5, 7, 6]), t([0, 1, 5, 7, 6, 2]), t([0, 1, 5, 7, 6, 4]), t([0, 1, 3, 7, 6, 4]), t([4, 5, 7, 6, 2, 0]), t([4, 5, 7, 6, 0, 0]), t([4, 5, 1, 3, 7, 6]), t([0, 2, 3, 7, 5, 4]), t([6, 2, 3, 7, 5, 4]), t([6, 2, 3, 1, 5, 4]), e; }(); a.projectedRadius = j; }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/views/3d/webgl-engine/lib/PreinterleavedGeometryData.js": /*!********************************************************************************************!*\ !*** ./node_modules/arcgis-js-api/views/3d/webgl-engine/lib/PreinterleavedGeometryData.js ***! \********************************************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiViews3dWebglEngineLibPreinterleavedGeometryDataJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../../../core/compilerUtils */ "./node_modules/arcgis-js-api/core/compilerUtils.js"), __webpack_require__( /*! ./ComponentUtils */ "./node_modules/arcgis-js-api/views/3d/webgl-engine/lib/ComponentUtils.js"), __webpack_require__( /*! ./geometryDataUtils */ "./node_modules/arcgis-js-api/views/3d/webgl-engine/lib/geometryDataUtils.js"), __webpack_require__( /*! ../../../webgl/Util */ "./node_modules/arcgis-js-api/views/webgl/Util.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (t, e, i, n, r, a) { function s(t) { switch (t) { case 5120: return Int8Array; case 5126: return Float32Array; case 5124: return Int32Array; case 5122: return Int16Array; case 5121: return Uint8Array; case 5125: return Uint32Array; case 5123: return Uint16Array; default: return void i.neverReached(t); } } return function () { function t(e, i, o, u, f) { void 0 === o && (o = null), void 0 === u && (u = t.DefaultOffsets), void 0 === f && (f = t.DefaultIndices), this.preinterleaved = !0, this.primitiveType = "triangle", this._positionData = null; var d = a.getStride(i) / 4, l = e.length / d; this._hasDefaultIndices = f === t.DefaultIndices, this.indexCount = f.length, this._hasDefaultIndices && (f = r.generateDefaultIndexArray(l), this.indexCount = l); for (var h = {}, c = 0, p = i; c < p.length; c++) { var y = p[c], _ = new (s(y.type))(e.buffer), g = a.getBytesPerElement(y.type), D = y.count, x = y.offset / g, b = y.stride / g; h[y.name] = { data: _, size: D, offsetIdx: x, strideIdx: b }; } o && (this._positionData = o, h.position = { data: o.data, size: 3, offsetIdx: 0, strideIdx: 3 }), this._id = r.getNewId(), this._vertexData = e, this._vertexAttributes = h, this._layout = i, this._indexData = f, this._componentOffsets = n.createOffsets(u), this._gpuMemoryUsage = e.byteLength + (this._hasDefaultIndices ? 0 : f.byteLength); } return Object.defineProperty(t.prototype, "id", { get: function get() { return this._id; }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "layout", { get: function get() { return this._layout; }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "componentOffsets", { get: function get() { return this._componentOffsets; }, enumerable: !0, configurable: !0 }), t.prototype.toRenderData = function () { var t = { id: this._id.toString(), preinterleaved: !0, indexData: this._hasDefaultIndices ? null : this._indexData, indexCount: this.indexCount, vertexData: this._vertexData, layout: this._layout }; return this._vertexData = null, this._indexData = null, this._vertexAttributes = { position: this._vertexAttributes.position }, t; }, t.prototype.getIndices = function (t) { return "position" === t && this._positionData ? this._positionData.indices : this._indexData; }, t.prototype.getAttribute = function (t) { return this._vertexAttributes[t]; }, t.prototype.estimateGpuMemoryUsage = function () { return this._gpuMemoryUsage; }, Object.defineProperty(t.prototype, "hasPositionData", { get: function get() { return !!this._positionData; }, enumerable: !0, configurable: !0 }), t.DefaultOffsets = new Uint32Array(0), t.DefaultIndices = new Uint32Array(0), t; }(); }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }, /***/ "./node_modules/arcgis-js-api/views/3d/webgl-engine/lib/localOrigin.js": /*!*****************************************************************************!*\ !*** ./node_modules/arcgis-js-api/views/3d/webgl-engine/lib/localOrigin.js ***! \*****************************************************************************/ /*! no static exports found */ /***/ function node_modulesArcgisJsApiViews3dWebglEngineLibLocalOriginJs(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; // COPYRIGHT © 2019 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute and use this code without modification, // provided you adhere to the terms of the MLA and include this // copyright notice. // // See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english // // For additional information, contact: // Environmental Systems Research Institute, Inc. // Attn: Contracts and Legal Services Department // 380 New York Street // Redlands, California, USA 92373 // USA // // email: contracts@esri.com // // See http://js.arcgis.com/4.14/esri/copyright.txt for details. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__.dj.c(module.i), exports, __webpack_require__( /*! ../../../../core/libs/gl-matrix-2/vec3f64 */ "./node_modules/arcgis-js-api/core/libs/gl-matrix-2/vec3f64.js")], __WEBPACK_AMD_DEFINE_RESULT__ = function (e, r, c) { function o(e, r) { return { vec3: c.vec3f64.clone(e), id: r }; } function f(e, r, o, f) { return { vec3: c.vec3f64.fromValues(e, r, o), id: f }; } Object.defineProperty(r, "__esModule", { value: !0 }), r.fromVector = o, r.fromValues = f; }.apply(null, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ } }]); //# sourceMappingURL=62-es5.js.map