UNPKG

gy-cesium

Version:

gy

680 lines 3.73 MB
var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __publicField = (obj, key, value) => { __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); return value; }; var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab, _Bb, _Cb, _Db, _Eb, _Fb, _Gb, _Hb, _Ib, _Jb, _Kb, _Lb, _Mb, _Nb, _Ob, _Pb, _Qb, _Rb, _Sb, _Tb, _Ub; import { reactive, markRaw, defineComponent, onMounted, onBeforeUnmount, ref, watch, computed as computed$1, shallowRef, watchEffect, readonly, unref as unref$1, getCurrentScope, onScopeDispose, isRef, getCurrentInstance as getCurrentInstance$1, nextTick } from "vue-demi"; import * as _0x1a629d from "cesium"; import { lineString, lineChunk, polygon, centerOfMass, transformScale } from "@turf/turf"; import _0x443215 from "gsap"; import _0x3a97aa from "@cesium/engine/Source/Scene/ShadowMap.js"; import _0x37d0e9 from "@cesium/engine/Source/Renderer/Texture.js"; import { resolveComponent, openBlock, createElementBlock, withModifiers, renderSlot, createBlock, createCommentVNode, getCurrentInstance, inject, ref as ref$1, computed, unref, isRef as isRef$1, warn, defineComponent as defineComponent$1, mergeProps, createElementVNode, onMounted as onMounted$1, watch as watch$1, toRef, onUnmounted, shallowRef as shallowRef$1, nextTick as nextTick$1, useAttrs as useAttrs$1, useSlots, normalizeClass, normalizeStyle, Fragment, withCtx, resolveDynamicComponent, toDisplayString, onBeforeUnmount as onBeforeUnmount$1, Transition, withDirectives, vShow, createVNode, provide, reactive as reactive$1, onActivated, onUpdated, cloneVNode, Comment, Text, Teleport as Teleport$1, onBeforeMount, readonly as readonly$1, onDeactivated, isVNode, watchEffect as watchEffect$1, renderList, withKeys, createTextVNode, createSlots, toRaw, toRefs, resolveDirective, toHandlerKey, vModelText, normalizeProps, h } from "vue"; const widgets = ""; (function(_0x415183, _0x38f306) { const _0x386f27 = _0x1ffb, _0x4a1a51 = _0x415183(); while (!![]) { try { const _0x2d3231 = parseInt(_0x386f27(207)) / 1 * (-parseInt(_0x386f27(200)) / 2) + parseInt(_0x386f27(206)) / 3 * (-parseInt(_0x386f27(201)) / 4) + parseInt(_0x386f27(210)) / 5 * (-parseInt(_0x386f27(199)) / 6) + parseInt(_0x386f27(209)) / 7 + parseInt(_0x386f27(208)) / 8 + parseInt(_0x386f27(195)) / 9 * (-parseInt(_0x386f27(204)) / 10) + parseInt(_0x386f27(198)) / 11; if (_0x2d3231 === _0x38f306) break; else _0x4a1a51["push"](_0x4a1a51["shift"]()); } catch (_0x63350a) { _0x4a1a51["push"](_0x4a1a51["shift"]()); } } })(_0x3e66, 100339); function _0x3e66() { const _0x507d00 = ["461950JSlNIc", "5634mbwguq", "cos", "atan2", "4294829QUBbiP", "6AggfpE", "2KpkSLP", "39184DYGahD", "abs", "sqrt", "2770uqWPHJ", "sin", "42GDnyyG", "40822RjIYKK", "884656ipjoLh", "301532LUffHt"]; _0x3e66 = function() { return _0x507d00; }; return _0x3e66(); } const x_PI = 3.141592653589793 * 3e3 / 180, PI = 3.141592653589793, a = 6378245, ee$1 = 0.006693421622965943; function _0x1ffb(_0xd93865, _0x210f2c) { const _0x3e66e1 = _0x3e66(); return _0x1ffb = function(_0x1ffba7, _0x5ad403) { _0x1ffba7 = _0x1ffba7 - 195; let _0x32d622 = _0x3e66e1[_0x1ffba7]; return _0x32d622; }, _0x1ffb(_0xd93865, _0x210f2c); } function bd09togcj02(_0xd5d4e6, _0xc31b01) { const _0x5c7719 = _0x1ffb; let _0x140e87 = 3.141592653589793 * 3e3 / 180, _0x432c50 = _0xd5d4e6 - 65e-4, _0x3e4fb0 = _0xc31b01 - 6e-3, _0x180f20 = Math[_0x5c7719(203)](_0x432c50 * _0x432c50 + _0x3e4fb0 * _0x3e4fb0) - 2e-5 * Math[_0x5c7719(205)](_0x3e4fb0 * _0x140e87), _0x41d737 = Math[_0x5c7719(197)](_0x3e4fb0, _0x432c50) - 3e-6 * Math[_0x5c7719(196)](_0x432c50 * _0x140e87), _0x48fbd5 = _0x180f20 * Math[_0x5c7719(196)](_0x41d737), _0x35a717 = _0x180f20 * Math[_0x5c7719(205)](_0x41d737); return [_0x48fbd5, _0x35a717]; } function gcj02tobd09(_0x56e2f0, _0x23dcc1) { const _0x3451fc = _0x1ffb; let _0x476b34 = Math[_0x3451fc(203)](_0x56e2f0 * _0x56e2f0 + _0x23dcc1 * _0x23dcc1) + 2e-5 * Math[_0x3451fc(205)](_0x23dcc1 * x_PI), _0x3889e5 = Math[_0x3451fc(197)](_0x23dcc1, _0x56e2f0) + 3e-6 * Math["cos"](_0x56e2f0 * x_PI), _0x2315a1 = _0x476b34 * Math[_0x3451fc(196)](_0x3889e5) + 65e-4, _0x1f12da = _0x476b34 * Math[_0x3451fc(205)](_0x3889e5) + 6e-3; return [_0x2315a1, _0x1f12da]; } function wgs84togcj02(_0x5c4706, _0x3fdaa6) { const _0x4b700b = _0x1ffb; if (outOfChina(_0x5c4706, _0x3fdaa6)) return [_0x5c4706, _0x3fdaa6]; else { let _0x46d4fe = transformlat(_0x5c4706 - 105, _0x3fdaa6 - 35), _0x1f2009 = transformlng(_0x5c4706 - 105, _0x3fdaa6 - 35), _0x4447c9 = _0x3fdaa6 / 180 * PI, _0x5f3e62 = Math[_0x4b700b(205)](_0x4447c9); _0x5f3e62 = 1 - ee$1 * _0x5f3e62 * _0x5f3e62; let _0x4cf9c9 = Math[_0x4b700b(203)](_0x5f3e62); _0x46d4fe = _0x46d4fe * 180 / (a * (1 - ee$1) / (_0x5f3e62 * _0x4cf9c9) * PI), _0x1f2009 = _0x1f2009 * 180 / (a / _0x4cf9c9 * Math[_0x4b700b(196)](_0x4447c9) * PI); const _0xfef311 = _0x3fdaa6 + _0x46d4fe, _0xa6d090 = _0x5c4706 + _0x1f2009; return [_0xa6d090, _0xfef311]; } } function gcj02towgs84(_0x54f0f3, _0x1eadbd) { const _0x93277c = _0x1ffb; if (outOfChina(_0x54f0f3, _0x1eadbd)) return [_0x54f0f3, _0x1eadbd]; else { let _0x8f2ff9 = transformlat(_0x54f0f3 - 105, _0x1eadbd - 35), _0x6f3520 = transformlng(_0x54f0f3 - 105, _0x1eadbd - 35), _0x29a06f = _0x1eadbd / 180 * PI, _0x593d9e = Math[_0x93277c(205)](_0x29a06f); _0x593d9e = 1 - ee$1 * _0x593d9e * _0x593d9e; let _0x3f181e = Math[_0x93277c(203)](_0x593d9e); _0x8f2ff9 = _0x8f2ff9 * 180 / (a * (1 - ee$1) / (_0x593d9e * _0x3f181e) * PI), _0x6f3520 = _0x6f3520 * 180 / (a / _0x3f181e * Math[_0x93277c(196)](_0x29a06f) * PI); const _0x44b32e = _0x1eadbd + _0x8f2ff9, _0x2da886 = _0x54f0f3 + _0x6f3520; return [_0x54f0f3 * 2 - _0x2da886, _0x1eadbd * 2 - _0x44b32e]; } } function bd09towgs84(_0xfd3274, _0x357c32) { const _0x17cce4 = bd09togcj02(_0xfd3274, _0x357c32), _0xaf4f11 = gcj02towgs84(_0x17cce4[0], _0x17cce4[1]); return _0xaf4f11; } function wgs84tobd09(_0x132993, _0x1d89b7) { const _0x2a2fd8 = wgs84togcj02(_0x132993, _0x1d89b7), _0x149faa = gcj02tobd09(_0x2a2fd8[0], _0x2a2fd8[1]); return _0x149faa; } function transformlat(_0x37bb3c, _0x478fdb) { const _0x94c5ca = _0x1ffb; let _0x5b1de9 = -100 + 2 * _0x37bb3c + 3 * _0x478fdb + 0.2 * _0x478fdb * _0x478fdb + 0.1 * _0x37bb3c * _0x478fdb + 0.2 * Math[_0x94c5ca(203)](Math[_0x94c5ca(202)](_0x37bb3c)); return _0x5b1de9 += (20 * Math["sin"](6 * _0x37bb3c * PI) + 20 * Math[_0x94c5ca(205)](2 * _0x37bb3c * PI)) * 2 / 3, _0x5b1de9 += (20 * Math[_0x94c5ca(205)](_0x478fdb * PI) + 40 * Math[_0x94c5ca(205)](_0x478fdb / 3 * PI)) * 2 / 3, _0x5b1de9 += (160 * Math[_0x94c5ca(205)](_0x478fdb / 12 * PI) + 320 * Math[_0x94c5ca(205)](_0x478fdb * PI / 30)) * 2 / 3, _0x5b1de9; } function transformlng(_0x17299a, _0x4743d5) { const _0x3c2e85 = _0x1ffb; let _0x2b0e4d = 300 + _0x17299a + 2 * _0x4743d5 + 0.1 * _0x17299a * _0x17299a + 0.1 * _0x17299a * _0x4743d5 + 0.1 * Math[_0x3c2e85(203)](Math["abs"](_0x17299a)); return _0x2b0e4d += (20 * Math["sin"](6 * _0x17299a * PI) + 20 * Math["sin"](2 * _0x17299a * PI)) * 2 / 3, _0x2b0e4d += (20 * Math["sin"](_0x17299a * PI) + 40 * Math[_0x3c2e85(205)](_0x17299a / 3 * PI)) * 2 / 3, _0x2b0e4d += (150 * Math[_0x3c2e85(205)](_0x17299a / 12 * PI) + 300 * Math[_0x3c2e85(205)](_0x17299a / 30 * PI)) * 2 / 3, _0x2b0e4d; } function outOfChina(_0x2b21a2, _0x2b7771) { return _0x2b21a2 < 72.004 || _0x2b21a2 > 137.8347 || (_0x2b7771 < 0.8293 || _0x2b7771 > 55.8271 || ![]); } (function(_0x28abe0, _0x322e62) { const _0x4ce47a = _0x4ef1, _0x5d1c03 = _0x28abe0(); while (!![]) { try { const _0x88fcb4 = -parseInt(_0x4ce47a(397)) / 1 * (-parseInt(_0x4ce47a(431)) / 2) + -parseInt(_0x4ce47a(429)) / 3 + parseInt(_0x4ce47a(416)) / 4 + parseInt(_0x4ce47a(430)) / 5 * (-parseInt(_0x4ce47a(406)) / 6) + -parseInt(_0x4ce47a(393)) / 7 * (-parseInt(_0x4ce47a(386)) / 8) + -parseInt(_0x4ce47a(395)) / 9 * (-parseInt(_0x4ce47a(394)) / 10) + -parseInt(_0x4ce47a(415)) / 11; if (_0x88fcb4 === _0x322e62) break; else _0x5d1c03["push"](_0x5d1c03["shift"]()); } catch (_0x5aa32a) { _0x5d1c03["push"](_0x5d1c03["shift"]()); } } })(_0x1454, 566882); function _0x1454() { const _0x431e10 = ["miles", "replace", "toRadians", "pow", "round", "Ellipsoid", "multiply", "2962491pgfekF", "30xxqBTf", "2206234BMUaEb", "error", "parse", "forEach", "Math", "stringify", "21224cKBGgN", "Matrix4", "north", "sort", "west", "push", "rotateY", "1078FVNhmZ", "4160RmczjP", "5625SyUuSa", "sqrt", "1ZUppdD", "Transforms", "toString", "split", "slice", "Color", "modelId", "reverse", "Cartesian3", "51558ssGCWu", "fromCssColorString", "includes", "floor", "getTime", "isArray", "\u591A\u8FB9\u5F62\u5750\u6807\u96C6\u5408\u4E0D\u80FD\u5C11\u4E8E3\u4E2A", "localFrameToFixedFrameGenerator", "max", "3853883OJoREM", "738444oljLuL", "fromDegrees", "length", "random", "coordinates", "rotateX"]; _0x1454 = function() { return _0x431e10; }; return _0x1454(); } let modelIdArr = []; const toRadians = (_0x1a2797) => { const _0x48d62f = _0x4ef1; return _0x1a629d[_0x48d62f(384)][_0x48d62f(424)](_0x1a2797); }; const lonlatToPosition = (_0x58c1df, _0x293bb0, _0x254912 = 0) => { const _0x6e134 = _0x4ef1; return _0x1a629d[_0x6e134(405)][_0x6e134(417)](_0x58c1df, _0x293bb0, _0x254912); }; const getColorByCssColor = (_0x347dfb) => { const _0x58e54a = _0x4ef1; return _0x1a629d[_0x58e54a(402)][_0x58e54a(407)](_0x347dfb); }; const getModelId = () => { const _0x2c9070 = _0x4ef1; let _0x3cea37 = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "g", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"], [_0x299e7f, _0x48a277] = [Math["floor"](Math[_0x2c9070(419)]() * (10 - 7 + 1) + 1), Math[_0x2c9070(409)](Math[_0x2c9070(419)]() * (17 - 10 + 1) + 17)]; _0x3cea37 = _0x3cea37[_0x2c9070(389)](() => 0.4 - Math[_0x2c9070(419)]())[_0x2c9070(401)](_0x299e7f, _0x48a277)[_0x2c9070(401)](0, 8)["join"](""); let _0xe9a0b3 = new Date()[_0x2c9070(410)]() + _0x3cea37, _0x528528 = _0x2c9070(403) + _0xe9a0b3; return modelIdArr[_0x2c9070(408)](_0x528528) ? _0x528528 = getModelId() : modelIdArr[_0x2c9070(391)](_0x528528), _0x528528; }; const formatLintPosition = (_0x61351f, _0x8d1ea9 = 0.01) => { const _0xa28bbc = _0x4ef1; if (_0x8d1ea9 === 0) return _0x61351f; let _0x22a25a = lineString(_0x61351f), _0x2bc72c = lineChunk(_0x22a25a, _0x8d1ea9, { "units": _0xa28bbc(422) }), _0x50d779 = _0x2bc72c["features"], _0x582800 = []; return _0x50d779["forEach"]((_0x2bde3d) => { const _0x4377fe = _0xa28bbc; let _0x32721e = _0x2bde3d["geometry"], _0x28769e = _0x32721e[_0x4377fe(420)]; _0x582800["push"](..._0x28769e); }), _0x582800; }; const flortSub = (_0x28772d, _0x10518e) => { const _0x54fe4f = _0x4ef1; let _0x4f0bce, _0x34ce3b, _0x120879; try { _0x4f0bce = (_0x28772d[_0x54fe4f(399)]()[_0x54fe4f(400)](".")[1] || "")[_0x54fe4f(418)]; } catch (_0x5cb589) { _0x4f0bce = 0; } try { _0x34ce3b = (_0x10518e[_0x54fe4f(399)]()[_0x54fe4f(400)](".")[1] || "")["length"]; } catch (_0x15e328) { _0x34ce3b = 0; } _0x120879 = Math[_0x54fe4f(425)](10, Math[_0x54fe4f(414)](_0x4f0bce, _0x34ce3b)); let _0x5728d4 = _0x4f0bce >= _0x34ce3b ? _0x4f0bce : _0x34ce3b; return Number((Math["round"](_0x28772d * _0x120879 - _0x10518e * _0x120879) / _0x120879)["toFixed"](_0x5728d4)); }; const flortAdd = (_0x3a4e26, _0x5a6fb7) => { const _0x37f1ff = _0x4ef1; var _0x2b1ed5, _0x441612, _0x242e3c; try { _0x2b1ed5 = (_0x3a4e26[_0x37f1ff(399)]()["split"](".")[1] || "")[_0x37f1ff(418)]; } catch (_0x4e1d07) { _0x2b1ed5 = 0; } try { _0x441612 = (_0x5a6fb7[_0x37f1ff(399)]()[_0x37f1ff(400)](".")[1] || "")["length"]; } catch (_0x1e0db7) { _0x441612 = 0; } return _0x242e3c = Math["pow"](10, Math[_0x37f1ff(414)](_0x2b1ed5, _0x441612)), Math[_0x37f1ff(426)](_0x3a4e26 * _0x242e3c + _0x5a6fb7 * _0x242e3c) / _0x242e3c; }; const flortMul = (_0xccd184, _0x3a7393) => { const _0x5eccfe = _0x4ef1; var _0x249d5e = 0, _0x14150a = _0xccd184[_0x5eccfe(399)](), _0x2dbe39 = _0x3a7393[_0x5eccfe(399)](); try { _0x249d5e += (_0x14150a[_0x5eccfe(400)](".")[1] || "")[_0x5eccfe(418)]; } catch (_0x3e8670) { console[_0x5eccfe(432)](_0x3e8670); } try { _0x249d5e += (_0x2dbe39["split"](".")[1] || "")["length"]; } catch (_0x22bb36) { console[_0x5eccfe(432)](_0x22bb36); } return Number(_0x14150a["replace"](".", "")) * Number(_0x2dbe39[_0x5eccfe(423)](".", "")) / Math[_0x5eccfe(425)](10, _0x249d5e); }; const flortDiv = (_0x4b46c6, _0x55591a) => { const _0x1ecc3c = _0x4ef1; if (_0x4b46c6 == 0 || _0x55591a == 0) return 0; var _0x1e3113 = 0, _0x12d940 = 0, _0x1d9e2f, _0x4cabc5; try { _0x1e3113 = (_0x4b46c6["toString"]()["split"](".")[1] || "")[_0x1ecc3c(418)]; } catch (_0x5d5720) { console[_0x1ecc3c(432)](_0x5d5720); } try { _0x12d940 = (_0x55591a[_0x1ecc3c(399)]()["split"](".")[1] || "")["length"]; } catch (_0x39c9d5) { console[_0x1ecc3c(432)](_0x39c9d5); } return _0x1d9e2f = Number(_0x4b46c6[_0x1ecc3c(399)]()[_0x1ecc3c(423)](".", "")), _0x4cabc5 = Number(_0x55591a[_0x1ecc3c(399)]()[_0x1ecc3c(423)](".", "")), Number(_0x1d9e2f / _0x4cabc5 * Math["pow"](10, _0x12d940 - _0x1e3113)); }; function _0x4ef1(_0x31d409, _0x38ec2b) { const _0x1454a9 = _0x1454(); return _0x4ef1 = function(_0x4ef160, _0x1d8d16) { _0x4ef160 = _0x4ef160 - 383; let _0x4a6193 = _0x1454a9[_0x4ef160]; return _0x4a6193; }, _0x4ef1(_0x31d409, _0x38ec2b); } const isClockwise = (_0x20bde3) => { const _0x1ec28c = _0x4ef1; if (!Array[_0x1ec28c(411)](_0x20bde3) || _0x20bde3[_0x1ec28c(418)] < 3) return console[_0x1ec28c(432)](_0x1ec28c(412)), ![]; let _0xf189c2 = JSON[_0x1ec28c(433)](JSON[_0x1ec28c(385)](_0x20bde3)); _0xf189c2[0] === _0xf189c2[_0xf189c2[_0x1ec28c(418)] - 1] && (_0xf189c2 = _0xf189c2[_0x1ec28c(401)](0, _0xf189c2[_0x1ec28c(418)] - 1)); _0xf189c2 = _0xf189c2[_0x1ec28c(404)](); let _0x8c8320 = 0, _0x5d61a3 = parseFloat(_0xf189c2[_0x8c8320]["x"]), _0x3a9b03, _0x599ab4, _0x2119a9; for (let _0x2e1a73 = 0; _0x2e1a73 < _0xf189c2[_0x1ec28c(418)]; _0x2e1a73++) { parseFloat(_0xf189c2[_0x2e1a73]["x"]) > _0x5d61a3 && (_0x5d61a3 = parseFloat(_0xf189c2[_0x2e1a73]["x"]), _0x8c8320 = _0x2e1a73); } if (_0x8c8320 === 0) _0x3a9b03 = _0xf189c2[_0xf189c2[_0x1ec28c(418)] - 1], _0x599ab4 = _0xf189c2[_0x8c8320], _0x2119a9 = _0xf189c2[_0x8c8320 + 1]; else _0x8c8320 === _0xf189c2[_0x1ec28c(418)] - 1 ? (_0x3a9b03 = _0xf189c2[_0x8c8320 - 1], _0x599ab4 = _0xf189c2[_0x8c8320], _0x2119a9 = _0xf189c2[0]) : (_0x3a9b03 = _0xf189c2[_0x8c8320 - 1], _0x599ab4 = _0xf189c2[_0x8c8320], _0x2119a9 = _0xf189c2[_0x8c8320 + 1]); const _0x3686f0 = parseFloat(_0x3a9b03["x"]), _0x2bac9a = parseFloat(_0x3a9b03["y"]), _0x2d6243 = parseFloat(_0x599ab4["x"]), _0x3a5145 = parseFloat(_0x599ab4["y"]), _0x34d456 = parseFloat(_0x2119a9["x"]), _0x1b462c = parseFloat(_0x2119a9["y"]), _0x9ce7fd = flortSub(flortDiv(flortSub(_0x3686f0, _0x34d456), flortSub(_0x3a5145, _0x1b462c)), flortDiv(flortSub(_0x2d6243, _0x34d456), flortSub(_0x2bac9a, _0x1b462c))); return _0x9ce7fd < 0; }; const scalePolygon = (_0x1fb649, _0x547af2) => { const _0x350e98 = _0x4ef1; if (!Array[_0x350e98(411)](_0x1fb649) || _0x1fb649["length"] < 3) return console[_0x350e98(432)](_0x350e98(412)), []; let _0x2f34e4 = _0x1fb649; const _0x5cd0e2 = isClockwise(_0x2f34e4) ? -_0x547af2 : _0x547af2, _0x680408 = (_0x41ee03, _0x4b1c24) => Math[_0x350e98(396)](flortAdd(flortMul(_0x41ee03, _0x41ee03), flortMul(_0x4b1c24, _0x4b1c24))), _0x3ecea7 = _0x2f34e4[_0x350e98(418)], _0x555c1a = []; for (let _0x3057c2 = 0; _0x3057c2 < _0x3ecea7; _0x3057c2++) { const _0x1a1fa3 = _0x2f34e4[_0x3057c2], _0x5342ce = _0x2f34e4[_0x3057c2 === 0 ? _0x3ecea7 - 1 : _0x3057c2 - 1], _0x418c54 = _0x2f34e4[_0x3057c2 === _0x3ecea7 - 1 ? 0 : _0x3057c2 + 1], _0xd0d945 = flortSub(_0x5342ce["x"], _0x1a1fa3["x"]), _0x799e09 = flortSub(_0x5342ce["y"], _0x1a1fa3["y"]), _0x23c148 = _0x680408(_0xd0d945, _0x799e09); let _0x3e0af5 = flortDiv(_0xd0d945, _0x23c148), _0x291e77 = flortDiv(_0x799e09, _0x23c148); const _0x12b476 = flortSub(_0x418c54["x"], _0x1a1fa3["x"]), _0x53f1f6 = flortSub(_0x418c54["y"], _0x1a1fa3["y"]), _0x23e75d = _0x680408(_0x12b476, _0x53f1f6); let _0x52b4e1 = flortDiv(_0x12b476, _0x23e75d), _0x3ce37e = flortDiv(_0x53f1f6, _0x23e75d); const _0x2b64dc = flortDiv(-_0x5cd0e2, Math["sqrt"](flortDiv(flortSub(1, flortAdd(flortMul(_0x3e0af5, _0x52b4e1), flortMul(_0x291e77, _0x3ce37e))), 2))); flortAdd(flortMul(_0xd0d945, _0x53f1f6), -1 * flortMul(_0x799e09, _0x12b476)) < 0 && (_0x52b4e1 *= -1, _0x3ce37e *= -1, _0x3e0af5 *= -1, _0x291e77 *= -1); const _0x55f269 = flortAdd(_0x3e0af5, _0x52b4e1), _0x27aa4f = flortAdd(_0x291e77, _0x3ce37e), _0x59efb8 = flortDiv(_0x2b64dc, _0x680408(_0x55f269, _0x27aa4f)), _0x20f74c = flortMul(_0x55f269, _0x59efb8), _0x253d54 = flortMul(_0x27aa4f, _0x59efb8), _0x69879c = flortAdd(_0x20f74c, _0x1a1fa3["x"]), _0x16a4a9 = flortAdd(_0x253d54, _0x1a1fa3["y"]); _0x555c1a[_0x3057c2] = { "x": _0x69879c, "y": _0x16a4a9 }; } return _0x555c1a; }; const getModelMatrixByOptions = (_0x53d552, _0x180895) => { const _0x39d232 = _0x4ef1, _0x6dd0f9 = _0x1a629d[_0x39d232(384)][_0x39d232(424)](_0x180895["rotateZ"]), _0x166cef = _0x1a629d[_0x39d232(384)][_0x39d232(424)](_0x180895[_0x39d232(421)]), _0xecd4b2 = _0x1a629d[_0x39d232(384)][_0x39d232(424)](_0x180895[_0x39d232(392)]), _0x89f4fd = new _0x1a629d["HeadingPitchRoll"](_0x6dd0f9, _0x166cef, _0xecd4b2), _0x2ebe10 = _0x1a629d["Transforms"][_0x39d232(413)](_0x39d232(388), _0x39d232(390)); let _0x158c79 = _0x1a629d[_0x39d232(398)]["headingPitchRollToFixedFrame"](_0x53d552, _0x89f4fd, _0x1a629d[_0x39d232(427)]["WGS84"], _0x2ebe10), _0x4c3fa7 = _0x1a629d[_0x39d232(387)]["fromUniformScale"](_0x180895["scale"]); return _0x158c79 = _0x1a629d[_0x39d232(387)][_0x39d232(428)](_0x158c79, _0x4c3fa7, _0x158c79), _0x158c79; }; const CesiumUnit = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, toRadians, lonlatToPosition, getColorByCssColor, getModelId, formatLintPosition, flortSub, flortAdd, flortMul, flortDiv, isClockwise, scalePolygon, getModelMatrixByOptions }, Symbol.toStringTag, { value: "Module" })); const _0x4eb53f = _0x2078; (function(_0x309c26, _0x1fc1c2) { const _0xe346b9 = _0x2078, _0x59155c = _0x309c26(); while (!![]) { try { const _0x118576 = -parseInt(_0xe346b9(392)) / 1 + parseInt(_0xe346b9(494)) / 2 + -parseInt(_0xe346b9(490)) / 3 * (parseInt(_0xe346b9(537)) / 4) + -parseInt(_0xe346b9(359)) / 5 * (parseInt(_0xe346b9(369)) / 6) + parseInt(_0xe346b9(528)) / 7 + parseInt(_0xe346b9(463)) / 8 + parseInt(_0xe346b9(503)) / 9 * (parseInt(_0xe346b9(453)) / 10); if (_0x118576 === _0x1fc1c2) break; else _0x59155c["push"](_0x59155c["shift"]()); } catch (_0x39b6af) { _0x59155c["push"](_0x59155c["shift"]()); } } })(_0x33b7, 516089); function _0x2078(_0x1bd207, _0x55487a) { const _0x33b736 = _0x33b7(); return _0x2078 = function(_0x2078e9, _0x5652ed) { _0x2078e9 = _0x2078e9 - 309; let _0x3f7e45 = _0x33b736[_0x2078e9]; return _0x3f7e45; }, _0x2078(_0x1bd207, _0x55487a); } class TilesetLoader { constructor(_0x249032, _0x3f7928, _0x1e6d27) { __publicField(this, _a2); __publicField(this, _b); __publicField(this, _c); __publicField(this, _d); __publicField(this, _e); __publicField(this, _f); __publicField(this, "height"); __publicField(this, _g); __publicField(this, _h); __publicField(this, _i); __publicField(this, _j); __publicField(this, _k); __publicField(this, _l); __publicField(this, _m); __publicField(this, _n); __publicField(this, "readyFun"); __publicField(this, _o); __publicField(this, _p); __publicField(this, _q); __publicField(this, _r); __publicField(this, "id"); __publicField(this, "cesiumObj"); __publicField(this, _s); __publicField(this, _t2); __publicField(this, _u); __publicField(this, _v); __publicField(this, _w); __publicField(this, _x); __publicField(this, _y, /* @__PURE__ */ new Map()); __publicField(this, _z, 0); __publicField(this, _A, null); __publicField(this, _B); __publicField(this, "compareTilePath"); __publicField(this, _C); __publicField(this, _D); __publicField(this, "opt"); __publicField(this, _E); __publicField(this, "compareColorObj"); __publicField(this, "compareType"); __publicField(this, "maximumCacheOverflowBytes"); __publicField(this, "projectTo2D"); __publicField(this, _F); __publicField(this, _G); __publicField(this, "tilesetModelMatrix"); __publicField(this, _H, /* @__PURE__ */ new Map()); const _0x20e97b = _0x4eb53f; this[_0x20e97b(337)] = _0x20e97b(348), this[_0x20e97b(516)] = _0x1e6d27, this[_0x20e97b(564)] = null, this[_0x20e97b(475)] = null, this[_0x20e97b(373)] = {}, this["contentList"] = [], this["elementArr"] = null, this[_0x20e97b(470)] = ![], this[_0x20e97b(330)] = ![], this[_0x20e97b(484)] = null, this[_0x20e97b(493)] = null, this[_0x20e97b(371)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(371)]) || null, this["lat"] = (_0x1e6d27 == null ? void 0 : _0x1e6d27["lat"]) || null, this[_0x20e97b(500)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(500)]) || 0, this[_0x20e97b(313)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27["offsetX"]) || 0, this[_0x20e97b(552)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(552)]) || 0, this[_0x20e97b(521)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27["rotateX"]) || 0, this[_0x20e97b(539)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(539)]) || 0, this[_0x20e97b(488)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(488)]) || 0, this[_0x20e97b(349)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(349)]) !== void 0 ? _0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(349)] : 1, this[_0x20e97b(474)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(474)]) !== void 0 ? _0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(474)] : 1, this[_0x20e97b(356)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(356)]) || "", this[_0x20e97b(399)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(399)]) || {}, this[_0x20e97b(509)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(509)]) || "", this["compareType"] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(455)]) || _0x20e97b(531), this[_0x20e97b(326)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(326)]) || 0, this[_0x20e97b(377)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27["maximumCacheOverflowBytes"]) || 536870912, this[_0x20e97b(310)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(310)]) || ![], this["id"] = (_0x1e6d27 == null ? void 0 : _0x1e6d27["id"]) || "", this[_0x20e97b(434)] = (_0x1e6d27 == null ? void 0 : _0x1e6d27[_0x20e97b(434)]) || _0x20e97b(491), this[_0x20e97b(472)] = {}, this[_0x20e97b(435)] = null, this[_0x20e97b(558)] = null, this["cesiumObj"] = _0x249032, this[_0x20e97b(515)] = null, this["url"] = _0x3f7928, this[_0x20e97b(473)] = 0, this["stylesByIdObj"] = [], this[_0x20e97b(342)] = [], this["tilesetModelMatrix"] = null, this["load3DTile"](), this[_0x20e97b(418)] = {}; } [(_a2 = _0x4eb53f(337), _b = _0x4eb53f(475), _c = _0x4eb53f(564), _d = _0x4eb53f(373), _e = _0x4eb53f(470), _f = _0x4eb53f(330), _g = _0x4eb53f(313), _h = _0x4eb53f(552), _i = _0x4eb53f(521), _j = _0x4eb53f(539), _k = _0x4eb53f(488), _l = _0x4eb53f(474), _m = _0x4eb53f(326), _n = _0x4eb53f(349), _o = _0x4eb53f(493), _p = _0x4eb53f(532), _q = _0x4eb53f(472), _r = _0x4eb53f(435), _s = _0x4eb53f(356), _t2 = _0x4eb53f(388), _u = _0x4eb53f(434), _v = _0x4eb53f(371), _w = _0x4eb53f(442), _x = _0x4eb53f(515), _y = _0x4eb53f(327), _z = _0x4eb53f(320), _A = _0x4eb53f(533), _B = _0x4eb53f(473), _C = _0x4eb53f(529), _D = _0x4eb53f(342), _E = _0x4eb53f(418), _F = _0x4eb53f(400), _G = _0x4eb53f(558), _H = _0x4eb53f(361), _0x4eb53f(344))]() { const _0x1dec82 = _0x4eb53f; return this["id"] || this[_0x1dec82(388)]["slice"](this[_0x1dec82(388)][_0x1dec82(560)]("/") + 1); } [_0x4eb53f(410)]() { const _0x1b9b70 = _0x4eb53f; return { "lon": this[_0x1b9b70(371)], "lat": this[_0x1b9b70(442)], "offsetX": this[_0x1b9b70(313)], "offsetY": this[_0x1b9b70(552)], "height": this[_0x1b9b70(500)], "rotateX": this["rotateX"], "rotateY": this["rotateY"], "rotateZ": this["rotateZ"], "scale": this[_0x1b9b70(474)], "opacity": this[_0x1b9b70(349)] }; } ["getControlOptions"]() { const _0x572f7b = _0x4eb53f; let _0x2da689 = []; return this[_0x572f7b(371)] && this[_0x572f7b(442)] && (_0x2da689 = [{ "name": "\u7ECF\u5EA6", "value": _0x572f7b(371), "type": "number", "step": 1e-5 }, { "name": "\u7EAC\u5EA6", "value": "lat", "type": _0x572f7b(416), "step": 1e-5 }]), _0x2da689[_0x572f7b(482)]([{ "name": _0x572f7b(313), "value": _0x572f7b(313), "type": "number", "step": 1e-3 }, { "name": _0x572f7b(552), "value": _0x572f7b(552), "type": _0x572f7b(416), "step": 1e-3 }, { "name": "\u9AD8\u5EA6", "value": _0x572f7b(500), "type": _0x572f7b(416) }, { "name": "\u7F29\u653E", "value": _0x572f7b(474), "type": _0x572f7b(416), "step": 0.01 }, { "name": "\u989C\u8272", "value": _0x572f7b(356), "type": _0x572f7b(356) }, { "name": _0x572f7b(521), "value": _0x572f7b(521), "type": "slider", "min": -180, "max": 180 }, { "name": _0x572f7b(539), "value": "rotateY", "type": _0x572f7b(314), "min": -180, "max": 180 }, { "name": _0x572f7b(488), "value": _0x572f7b(488), "type": "slider", "min": -180, "max": 180 }, { "name": _0x572f7b(328), "value": _0x572f7b(349), "type": _0x572f7b(314), "min": 0, "max": 1, "step": 0.01 }]); } [_0x4eb53f(461)](_0x2cfdcb) { const _0x5495b7 = _0x4eb53f; this[_0x5495b7(313)] = _0x2cfdcb[_0x5495b7(313)], this[_0x5495b7(552)] = _0x2cfdcb["offsetY"], this["height"] = _0x2cfdcb["height"], this[_0x5495b7(349)] = _0x2cfdcb["opacity"], this[_0x5495b7(474)] = _0x2cfdcb["scale"], this[_0x5495b7(521)] = _0x2cfdcb[_0x5495b7(521)], this[_0x5495b7(539)] = _0x2cfdcb[_0x5495b7(539)], this["rotateZ"] = _0x2cfdcb[_0x5495b7(488)], this[_0x5495b7(356)] = _0x2cfdcb[_0x5495b7(356)] || "", this["tilesetModelMatrix"] = null; if (_0x2cfdcb[_0x5495b7(371)] && _0x2cfdcb["lat"]) { this["lon"] = _0x2cfdcb[_0x5495b7(371)], this[_0x5495b7(442)] = _0x2cfdcb[_0x5495b7(442)]; let [_0x4e8ece, _0x3f9266] = this[_0x5495b7(397)][_0x5495b7(357)](this[_0x5495b7(371)], this[_0x5495b7(442)]); this[_0x5495b7(475)][_0x5495b7(432)]["center"] = _0x1a629d[_0x5495b7(511)][_0x5495b7(549)](_0x4e8ece, _0x3f9266, this[_0x5495b7(500)]), this[_0x5495b7(435)] = null, this["setTileMatrix4"](); } this[_0x5495b7(517)](this["height"], this["offsetX"], this["offsetY"]), this[_0x5495b7(559)](), this[_0x5495b7(331)](); } [_0x4eb53f(423)](_0x1877d5) { const _0x221618 = _0x4eb53f; _0x1877d5 && (this[_0x221618(470)] ? _0x1877d5(this["tileset"]) : this[_0x221618(484)] = _0x1877d5); } ["loadFinish"](_0x330025) { const _0x26da7f = _0x4eb53f; _0x330025 && (this[_0x26da7f(532)]["length"] !== 0 ? _0x330025(this["contentList"]) : this[_0x26da7f(493)] = _0x330025); } [_0x4eb53f(338)]() { return new Promise((_0x507a92) => { const _0x24d559 = _0x2078; if (this[_0x24d559(516)][_0x24d559(475)]) _0x507a92(this[_0x24d559(516)][_0x24d559(475)][_0x24d559(506)]()); else { let _0x205db9 = this[_0x24d559(388)]; this["resourceOpt"] && (this["resourceOpt"][_0x24d559(388)] = this[_0x24d559(388)], _0x205db9 = new _0x1a629d[_0x24d559(519)](this[_0x24d559(326)])); let _0x4a38d3 = { "maximumCacheOverflowBytes": this[_0x24d559(377)], "cacheBytes": this["maximumCacheOverflowBytes"], "projectTo2D": this["projectTo2D"] }; _0x1a629d[_0x24d559(538)]["fromUrl"](_0x205db9, _0x4a38d3)[_0x24d559(312)]((_0x2d144f) => { _0x507a92(_0x2d144f); }); } }); } ["load3DTile"]() { const _0x24e51e = _0x4eb53f; this[_0x24e51e(338)]()["then"]((_0x3a5945) => { const _0x4d0c5f = _0x24e51e; this[_0x4d0c5f(475)] = _0x3a5945; let _0x1633cd = _0x1a629d[_0x4d0c5f(530)]["fromArray"](_0x3a5945["_root"]["transform"]); this[_0x4d0c5f(515)] = _0x1a629d[_0x4d0c5f(530)][_0x4d0c5f(385)](_0x1633cd, new _0x1a629d[_0x4d0c5f(530)]()); if (_0x3a5945["root"][_0x4d0c5f(343)] && _0x3a5945["root"][_0x4d0c5f(343)] instanceof _0x1a629d[_0x4d0c5f(446)]) { let _0xfe818c = null, _0x11ea06 = this[_0x4d0c5f(516)][_0x4d0c5f(391)]; _0x11ea06 = _0x11ea06 === void 0 ? !![] : _0x11ea06; if (this[_0x4d0c5f(397)][_0x4d0c5f(353)] && _0x11ea06) _0xfe818c = new _0x1a629d[_0x4d0c5f(511)](), this[_0x4d0c5f(397)][_0x4d0c5f(467)][_0x4d0c5f(506)](_0xfe818c); else { if (this[_0x4d0c5f(371)] !== null && this["lat"] !== null) { let [_0x8437c8, _0x863810] = this[_0x4d0c5f(397)][_0x4d0c5f(357)](this[_0x4d0c5f(371)], this[_0x4d0c5f(442)]); _0xfe818c = _0x1a629d["Cartesian3"][_0x4d0c5f(549)](_0x8437c8, _0x863810, 0); } else { let _0x211dbc = _0x3a5945[_0x4d0c5f(432)]; _0xfe818c = _0x211dbc["center"]; } } if (_0xfe818c) { let _0x1e4c98 = _0x3a5945[_0x4d0c5f(432)][_0x4d0c5f(551)][_0x4d0c5f(506)](); const _0x72f2e3 = _0x1a629d["Cartographic"]["fromCartesian"](_0x1e4c98), _0x246016 = _0x1a629d[_0x4d0c5f(556)][_0x4d0c5f(471)](_0xfe818c), _0x541fac = _0x1a629d[_0x4d0c5f(511)][_0x4d0c5f(469)](_0x72f2e3[_0x4d0c5f(347)], _0x72f2e3[_0x4d0c5f(329)], 0); let _0x534a67 = this["offsetX"] / 1e5, _0x26a498 = this[_0x4d0c5f(552)] / 1e5; const _0x3587d8 = _0x1a629d["Cartesian3"][_0x4d0c5f(469)](_0x246016[_0x4d0c5f(347)] + _0x534a67, _0x246016[_0x4d0c5f(329)] + _0x26a498, this[_0x4d0c5f(500)]), _0x13ece5 = _0x1a629d[_0x4d0c5f(511)][_0x4d0c5f(411)](_0x3587d8, _0x541fac, new _0x1a629d[_0x4d0c5f(511)]()); _0x3a5945["modelMatrix"] = _0x1a629d["Matrix4"][_0x4d0c5f(459)](_0x13ece5); } } else { this[_0x4d0c5f(517)](this[_0x4d0c5f(500)], 0, 0); if (this[_0x4d0c5f(397)]["hideEarth"]) { let _0x28fee9 = new _0x1a629d[_0x4d0c5f(511)](); this["cesiumObj"][_0x4d0c5f(467)]["clone"](_0x28fee9), _0x3a5945[_0x4d0c5f(432)][_0x4d0c5f(551)] = _0x28fee9, this[_0x4d0c5f(558)] = _0x28fee9; } else { if (this[_0x4d0c5f(371)] !== null && this[_0x4d0c5f(442)] !== null) { let [_0x117fd0, _0x335c7d] = this[_0x4d0c5f(397)][_0x4d0c5f(357)](this[_0x4d0c5f(371)], this[_0x4d0c5f(442)]); const _0x312478 = _0x1a629d[_0x4d0c5f(511)][_0x4d0c5f(549)](_0x117fd0, _0x335c7d, this[_0x4d0c5f(500)]); _0x3a5945[_0x4d0c5f(432)][_0x4d0c5f(551)] = _0x312478, this["boundingSphereCenter"] = _0x312478; } } this["setTileMatrix4"](), this["setPointion"](this[_0x4d0c5f(500)], this["offsetX"], this["offsetY"]); } this["cesiumObj"][_0x4d0c5f(445)]["scene"]["primitives"][_0x4d0c5f(366)](_0x3a5945), this["cesiumObj"][_0x4d0c5f(319)] && this[_0x4d0c5f(434)] && (_0x3a5945[_0x4d0c5f(434)] = _0x1a629d["SplitDirection"][this[_0x4d0c5f(434)]]), !this[_0x4d0c5f(516)]["noControls"] && this[_0x4d0c5f(397)][_0x4d0c5f(561)](this), !this["id"] && (this["id"] = getModelId()), this["cesiumObj"][_0x4d0c5f(496)][this["id"]] = this, this[_0x4d0c5f(484)] && this[_0x4d0c5f(484)](this["tileset"]), this[_0x4d0c5f(470)] = !![], this["tileset"][_0x4d0c5f(404)] = this, this[_0x4d0c5f(475)]["id"] = this["id"], this[_0x4d0c5f(559)](), _0x3a5945[_0x4d0c5f(383)][_0x4d0c5f(456)](() => { const _0x5befbd = _0x4d0c5f; let _0x198c81 = this[_0x5befbd(413)](_0x3a5945["root"]), _0x59901a = {}, _0x4bc731 = /* @__PURE__ */ new Map(); _0x198c81[_0x5befbd(315)]((_0x891801) => { const _0x6ea7d5 = _0x5befbd; console["log"](_0x891801); let _0x5c1ee6 = _0x891801[_0x6ea7d5(536)]; for (let _0x1a305e = 0; _0x1a305e < _0x5c1ee6; _0x1a305e++) { let _0x492e91 = _0x891801[_0x6ea7d5(545)](_0x1a305e), _0x2e6afb = _0x492e91["getProperty"]("id"), _0x2266e1 = _0x492e91["featureId"]; _0x2266e1 !== void 0 && _0x2e6afb !== void 0 && _0x4bc731[_0x6ea7d5(507)](_0x2266e1, _0x2e6afb), _0x59901a[_0x2e6afb] ? _0x59901a[_0x2e6afb]["push"](_0x492e91) : _0x59901a[_0x2e6afb] = [_0x492e91]; } }), this["tilesetModelObj"] = _0x59901a, this["featureIdToActualIdMap"] = _0x4bc731, this[_0x5befbd(532)] = _0x198c81, this[_0x5befbd(516)][_0x5befbd(352)] && this[_0x5befbd(516)][_0x5befbd(352)](_0x59901a); }), this[_0x4d0c5f(493)] && this["loadedFun"](this[_0x4d0c5f(532)]), this[_0x4d0c5f(330)] = !![]; }), this[_0x24e51e(509)] && this[_0x24e51e(501)](), this[_0x24e51e(516)][_0x24e51e(350)] && this[_0x24e51e(332)](); } [_0x4eb53f(384)]() { const _0x5afb9d = _0x4eb53f; let _0x227a27 = [-217774947819868e-8, 438873447251549e-8, 407006229710294e-8, 0.430175895748655], _0x421217 = new _0x1a629d[_0x5afb9d(511)](_0x227a27[0], _0x227a27[1], _0x227a27[2]); if (this[_0x5afb9d(515)] && this[_0x5afb9d(475)][_0x5afb9d(541)]["transform"]) { const _0x2cf26e = _0x1a629d[_0x5afb9d(530)]["multiply"](this["tileset"][_0x5afb9d(541)][_0x5afb9d(525)], this["orginMatrixInverse"], new _0x1a629d[_0x5afb9d(530)]()); _0x421217 = _0x1a629d[_0x5afb9d(530)][_0x5afb9d(375)](_0x2cf26e, _0x421217, new _0x1a629d["Cartesian3"]()); } return new _0x1a629d[_0x5afb9d(524)](_0x421217, _0x227a27[3]); } [_0x4eb53f(458)]() { const _0x12497d = _0x4eb53f; this[_0x12497d(529)] = {}, this[_0x12497d(485)](); } [_0x4eb53f(485)](_0x31574f, _0x4db89d = "#fff", _0x17267b = 1) { const _0x14f64f = _0x4eb53f; let _0xdb4087 = []; _0x31574f && (!Array[_0x14f64f(518)](_0x31574f) && (_0x31574f = [_0x31574f]), _0x31574f[_0x14f64f(315)]((_0x10b7c6) => { this["stylesByIdObj"][_0x10b7c6] = [_0x4db89d, _0x17267b]; })); let _0x107f25 = Object[_0x14f64f(378)](this[_0x14f64f(529)]); _0x107f25[_0x14f64f(315)]((_0x1edbc4) => { const _0x16c732 = _0x14f64f; let _0x5df012 = this[_0x16c732(529)][_0x1edbc4]; new _0x1a629d[_0x16c732(345)](); let _0x44b543 = _0x1a629d[_0x16c732(389)]["fromCssColorString"](_0x5df012[0])[_0x16c732(415)](), _0x566055 = "color('rgba(" + _0x44b543[0] + "," + _0x44b543[1] + ", " + _0x44b543[2] + ", " + _0x5df012[1] + _0x16c732(542); _0xdb4087[_0x16c732(368)]([_0x16c732(381) + _0x1edbc4 + "'", _0x566055]); }); let _0xc2565e = null; if (this[_0x14f64f(356)]) { new _0x1a629d[_0x14f64f(345)](); let _0x286111 = _0x1a629d[_0x14f64f(389)][_0x14f64f(514)](this["color"])["toBytes"](); _0xc2565e = "color('rgba(" + _0x286111[0] + "," + _0x286111[1] + ", " + _0x286111[2] + ", " + this[_0x14f64f(349)] + _0x14f64f(542); } _0xc2565e && _0xdb4087[_0x14f64f(368)]([_0x14f64f(414), _0xc2565e]), this[_0x14f64f(475)][_0x14f64f(465)] = new _0x1a629d[_0x14f64f(345)]({ "color": { "conditions": _0xdb4087 } }); } ["setStyleColor"](_0x144ef7) { const _0x34e3d7 = _0x4eb53f; this["color"] = _0x144ef7, this[_0x34e3d7(559)](); } [_0x4eb53f(559)](_0x47380f) { const _0x54833b = _0x4eb53f; _0x47380f === void 0 && (_0x47380f = this[_0x54833b(349)]); this["opacity"] = _0x47380f; if (this[_0x54833b(356)]) { let _0x20724d = new _0x1a629d[_0x54833b(345)](), _0x3e045f = _0x1a629d[_0x54833b(389)][_0x54833b(514)](this[_0x54833b(356)])[_0x54833b(415)](); _0x20724d[_0x54833b(356)] = _0x54833b(355) + _0x3e045f[0] + "," + _0x3e045f[1] + ", " + _0x3e045f[2] + ", " + this[_0x54833b(349)] + ")')", this[_0x54833b(475)][_0x54833b(465)] = _0x20724d; } else this[_0x54833b(475)][_0x54833b(465)] = new _0x1a629d[_0x54833b(345)]({ "color": { "evaluateColor": () => { const _0x1cfa97 = _0x54833b; return new _0x1a629d[_0x1cfa97(389)](1, 1, 1, this[_0x1cfa97(349)]); } } }); } [_0x4eb53f(436)]() { const _0x2727b = _0x4eb53f; if (!this["tileset"] || this[_0x2727b(327)]["size"] === 0) return; this["tileset"][_0x2727b(448)] && (this["tileset"][_0x2727b(448)] = void 0); const _0x5f263b = new _0x1a629d[_0x2727b(513)]({ "uniforms": { "u_time": { "type": _0x1a629d[_0x2727b(429)][_0x2727b(483)], "value": this[_0x2727b(320)] / 1e3 } }, "lightingModel": _0x1a629d[_0x2727b(479)][_0x2727b(431)], "translucencyMode": _0x1a629d["CustomShaderTranslucencyMode"][_0x2727b(379)], "fragmentShaderText": _0x2727b(489) + this["getAnimationConditionCode"]() + "\n \n \n material.alpha = opacity;\n}" }); console[_0x2727b(544)](_0x5f263b[_0x2727b(504)]), this["tileset"][_0x2727b(448)] = _0x5f263b; } [_0x4eb53f(433)]() { const _0x288a70 = _0x4eb53f; let _0x46d8e5 = ""; const _0x2223fd = /* @__PURE__ */ new Map(); return this[_0x288a70(327)][_0x288a70(315)]((_0x8205cb, _0x4738ec) => { _0x2223fd["set"](_0x4738ec["toString"](), _0x8205cb); }), this[_0x288a70(361)][_0x288a70(315)]((_0x50f70a, _0x26ab6e) => { const _0x2b2bb2 = _0x288a70; if (_0x2223fd[_0x2b2bb2(452)](_0x50f70a)) { const _0x2bcbfc = _0x2223fd[_0x2b2bb2(464)](_0x50f70a), _0x556c44 = _0x2bcbfc[_0x2b2bb2(439)], _0x59682e = _0x2bcbfc[_0x2b2bb2(398)] / 1e3, _0x427222 = _0x2bcbfc[_0x2b2bb2(367)] / 1e3; _0x46d8e5 += _0x2b2bb2(395) + _0x26ab6e + _0x2b2bb2(540), _0x46d8e5 += " float start = " + _0x59682e["toFixed"](3) + ";\n", _0x46d8e5 += " float end = start + " + _0x427222[_0x2b2bb2(422)](3) + ";\n", _0x46d8e5 += " if (u_time < start) {discard;}\n", _0x46d8e5 += " if (u_time >= start && u_time <= end) {\n", _0x46d8e5 += " progress = " + _0x556c44[_0x2b2bb2(422)](3) + " * (u_time - start) / " + _0x427222[_0x2b2bb2(422)](3) + ";\n", _0x46d8e5 += _0x2b2bb2(508), _0x46d8e5 += _0x2b2bb2(309) + _0x556c44["toFixed"](3) + _0x2b2bb2(466), _0x46d8e5 += _0x2b2bb2(393), _0x46d8e5 += " progress = 0.0;\n", _0x46d8e5 += _0x2b2bb2(363); if (_0x2bcbfc[_0x2b2bb2(498)] !== _0x2b2bb2(550)) { let _0x2c1667; switch (_0x2bcbfc[_0x2b2bb2(498)]) { case _0x2b2bb2(409): _0x2c1667 = _0x2b2bb2(427); break; case _0x2b2bb2(405): _0x2c1667 = "clipValue = 1.0 - texCoordId.y;"; break; case _0x2b2bb2(394): _0x2c1667 = _0x2b2bb2(430); break; case _0x2b2bb2(554): _0x2c1667 = _0x2b2bb2(426); break; default: _0x2c1667 = _0x2b2bb2(460); } _0x46d8e5 += _0x2b2bb2(451) + _0x2c1667 + _0x2b2bb2(354); } else _0x46d8e5 += _0x2b2bb2(421); _0x46d8e5 += _0x2b2bb2(548); } }), _0x46d8e5; } [_0x4eb53f(407)](_0x3c962b) { const _0x3cc748 = _0x4eb53f; this[_0x3cc748(401)](), this[_0x3cc748(327)]["clear"](), _0x3c962b[_0x3cc748(315)]((_0x413931) => { const _0x4e7f86 = _0x3cc748; this[_0x4e7f86(327)][_0x4e7f86(507)](_0x413931[_0x4e7f86(364)], { "startTime": _0x413931[_0x4e7f86(325)], "duration": _0x413931[_0x4e7f86(367)], "animationType": _0x413931[_0x4e7f86(498)] || _0x4e7f86(409), "finalPercentage": _0x413931[_0x4e7f86(439)] !== void 0 ? Math[_0x4e7f86(382)](0, Math["min"](1, _0x413931[_0x4e7f86(439)])) : 1 }); }); let _0x4f694d = _0x3c962b["map"]((_0x184761) => _0x184761["delay"]), _0x41c393 = _0x4f694d[_0x3cc748(339)] === 0 ? 0 : Math[_0x3cc748(382)](..._0x4f694d), _0x44553f = _0x3c962b[_0x3cc748(454)]((_0x49ba0f) => _0x49ba0f[_0x3cc748(367)]), _0x4130a3 = _0x44553f["length"] === 0 ? 0 : Math[_0x3cc748(382)](..._0x44553f); this["animationRuntime"] = _0x41c393 + _0x4130a3; } [_0x4eb53f(406)]() { const _0xb52fef = _0x4eb53f; if (this["growthAnimationMap"][_0xb52fef(311)] === 0) { console[_0xb52fef(424)](_0xb52fef(462)); return; } if (this[_0xb52fef(533)]) return; this[_0xb52fef(436)](), this[_0xb52fef(533)] = setInterval(() => { const _0x32bb9f = _0xb52fef; this[_0x32bb9f(320)] += 100; this[_0x32bb9f(475)] && this[_0x32bb9f(475)]["customShader"] && (console["log"](this[_0x32bb9f(320)] / 1e3), this["tileset"][_0x32bb9f(448)][_0x32bb9f(557)](_0x32bb9f(323), this[_0x32bb9f(320)] / 1e3)); const _0x12fd1e = Array[_0x32bb9f(522)](this[_0x32bb9f(327)][_0x32bb9f(412)]())["every"]((_0x108805) => this[_0x32bb9f(320)] >= _0x108805[_0x32bb9f(398)] + _0x108805[_0x32bb9f(367)]); (_0x12fd1e || this[_0x32bb9f(320)] >= this["animationRuntime"]) && this[_0x32bb9f(401)](); }, 100); } ["stop"]() { const _0x1f7a4b = _0x4eb53f; this[_0x1f7a4b(320)] = 0, this[_0x1f7a4b(533)] && (clearInterval(this["animationTimer"]), this[_0x1f7a4b(533)] = null), this[_0x1f7a4b(475)] && this[_0x1f7a4b(475)]["customShader"] && console[_0x1f7a4b(544)](this[_0x1f7a4b(475)]["customShader"]); } [_0x4eb53f(346)]() { const _0xc93672 = _0x4eb53f; this[_0xc93672(533)] && (clearInterval(this[_0xc93672(533)]), this[_0xc93672(533)] = null); } [_0x4eb53f(523)]() { this["stop"](), this["start"](); } [_0x4eb53f(365)](_0xe10f19) { const _0xef575b = _0x4eb53f; if (this["tileset"]) { let _0xe39b9e = this["tileset"][_0xef575b(432)][_0xef575b(551)][_0xef575b(506)](); const _0x41657d = _0x1a629d[_0xef575b(556)][_0xef575b(471)](_0xe39b9e), _0x381d86 = _0x1a629d[_0xef575b(511)][_0xef575b(469)](_0x41657d[_0xef575b(347)], _0x41657d["latitude"], 0); let _0x1ff307 = this["offsetX"] / 1e5, _0xd87f9f = this["offsetY"] / 1e5; const _0xf49c5b = _0x1a629d[_0xef575b(511)]["fromRadians"](_0x41657d["longitude"] + _0x1ff307, _0x41657d["latitude"] + _0xd87f9f, _0xe10f19), _0xe01858 = _0x1a629d["Cartesian3"][_0xef575b(411)](_0xf49c5b, _0x381d86, new _0x1a629d[_0xef575b(511)]()); let _0x36de6f = _0x1a629d["Matrix4"][_0xef575b(459)](_0xe01858); _0x443215["to"](this["tileset"][_0xef575b(336)], 2, { ..._0x36de6f }); } } [_0x4eb53f(517)](_0x4bd3e9, _0x22cefa = 0, _0x302966 = 0) { const _0x547818 = _0x4eb53f; if (this["tileset"]) { let _0x57123e = this["tileset"][_0x547818(432)][_0x547818(551)][_0x547818(506)](); const _0x39c137 = _0x1a629d[_0x547818(556)][_0x547818(471)](_0x57123e), _0x373e16 = _0x1a629d[_0x547818(511)][_0x547818(469)](_0x39c137[_0x547818(347)], _0x39c137[_0x547818(329)], 0); _0x22cefa = _0x22cefa / 1e5, _0x302966 = _0x302966 / 1e5; const _0x7c31a = _0x1a629d["Cartesian3"][_0x547818(469)](_0x39c137[_0x547818(347)] + _0x22cefa, _0x39c137[_0x547818(329)] + _0x302966, _0x4bd3e9), _0x5c3cf6 = _0x1a629d["Cartesian3"][_0x547818(411)](_0x7c31a, _0x373e16, new _0x1a629d[_0x547818(511)]()); this[_0x547818(475)][_0x547818(336)] = _0x1a629d[_0x547818(530)][_0x547818(459)](_0x5c3cf6); } else this["height"] = _0x4bd3e9, this["offsetX"] = _0x22cefa, this[_0x547818(552)] = _0x302966; } [_0x4eb53f(481)](_0x3286c8) { const _0x1b26d9 = _0x4eb53f; let _0x339b6d = []; if (_0x3286c8) { _0x339b6d[_0x1b26d9(368)](_0x3286c8); let _0xb95cb5 = _0x3286c8["innerContents"]; _0xb95cb5 && _0xb95cb5[_0x1b26d9(315)]((_0x57a917) => { const _0x369193 = _0x1b26d9; _0x339b6d[_0x369193(368)](...this["getChildAllContent"](_0x57a917)); }); } return _0x339b6d; } [_0x4eb53f(413)](_0x56ae6d) { const _0x5537a9 = _0x4eb53f; let _0x3cd063 = []; if (_0x56ae6d[_0x5537a9(340)]) { let _0x5af0c8 = _0x56ae6d["children"]; _0x5af0c8["forEach"]((_0x206344) => { const _0x4b065c = _0x5537a9; _0x3cd063[_0x4b065c(368)](...this[_0x4b065c(413)](_0x206344)); }); } return _0x3cd063["push"](...this[_0x5537a9(481)](_0x56ae6d["content"])), _0x3cd063; } [_0x4eb53f(358)]() { const _0x255822 = _0x4eb53f; if (!this["centerMatrix4"]) { let _0x18f4b8 = this[_0x255822(475)]["boundingSphere"], _0x3ce659 = _0x1a629d[_0x255822(556)][_0x255822(471)](_0x18f4b8[_0x255822(551)]), _0x367dbc = _0x1a629d["Math"][_0x255822(396)](_0x3ce659["longitude"]), _0x264386 = _0x1a629d[_0x255822(447)]["toDegrees"](_0x3ce659[_0x255822(329)]), _0x58a614 = _0x1a629d[_0x255822(511)][_0x255822(469)](_0x1a629d[_0x255822(447)][_0x255822(480)](_0x367dbc), _0x1a629d[_0x255822(447)][_0x255822(480)](_0x264386), 0), _0x4b9c4b = _0x1a629d[_0x255822(362)][_0x255822(335)](_0x58a614); this[_0x255822(435)] = _0x4b9c4b[_0x255822(506)](); } return this[_0x255822(435)]; } [_0x4eb53f(331)]() { const _0x579dad = _0x4eb53f; if (this["opt"]["noTransform"]) return; let _0x3c04df = this[_0x579dad(358)]()["clone"](), _0x1f2ed4 = _0x1a629d["Matrix4"][_0x579dad(457)](this[_0x579dad(474)]); _0x1a629d[_0x579dad(530)]["multiply"](_0x3c04df, _0x1f2ed4, _0x3c04df); let _0x9cbac4 = _0x1a629d[_0x579dad(443)][_0x579dad(477)](_0x1a629d[_0x579dad(447)][_0x579dad(480)](this[_0x579dad(521)])), _0x352fb8 = _0x1a629d[_0x579dad(530)][_0x579dad(334)](_0x9cbac4); _0x1a629d[_0x579dad(530)][_0x579dad(492)](_0x3c04df, _0x352fb8, _0x3c04df); let _0x59a60d = _0x1a629d["Matrix3"][_0x579dad(553)](_0x1a629d[_0x579dad(447)][_0x579dad(480)](this[_0x579dad(539)])), _0x2f7ab5 = _0x1a629d[_0x579dad(530)][_0x579dad(334)](_0x59a60d); _0x1a629d[_0x579dad(530)]["multiply"](_0x3c04df, _0x2f7ab5, _0x3c04df); let _0x2e7a97 = _0x1a629d["Matrix3"][_0x579dad(370)](_0x1a629d[_0x579dad(447)][_0x579dad(480)](this[_0x579dad(488)])), _0x328de6 = _0x1a629d[_0x579dad(530)][_0x579dad(334)](_0x2e7a97); _0x1a629d[_0x579dad(530)]["multiply"](_0x3c04df, _0x328de6, _0x3c04df), this[_0x579dad(475)][_0x579dad(541)][_0x579dad(525)] = _0x3c04df; } ["flyTo"]() { const _0x319f68 = _0x4eb53f; let _0x41c9b0 = this[_0x319f68(475)]["boundingSphere"][_0x319f68(506)](); this[_0x319f68(397)][_0x319f68(445)][_0x319f68(321)][_0x319f68(468)](_0x41c9b0); } [_0x4eb53f(372)](_0x5bb766, _0x449d90, _0x242186) { const _0x4725c4 = _0x4eb53f; var _0x5b498e = this["tileset"], _0x10d57a = void 0, _0x24f081 = _0x5b498e["root"]["transform"]; _0x10d57a = _0x24f081 && _0x24f081[_0x4725c4(502)](_0x1a629d[_0x4725c4(530)][_0x4725c4(317)]) || !_0x24f081 ? _0x1a629d[_0x4725c4(362)][_0x4725c4(335)](_0x5b498e[_0x4725c4(432)][_0x4725c4(551)]) : _0x1a629d[_0x4725c4(530)][_0x4725c4(495)](_0x5b498e[_0x4725c4(444)][_0x4725c4(525)]), _0x10d57a = _0x1a629d[_0x4725c4(530)][_0x4725c4(476)](_0x1a629d["Matrix4"][_0x4725c4(495)](_0x5b498e[_0x4725c4(444)][_0x4725c4(525)]), new _0x1a629d[_0x4725c4(530)]()); let _0x98b279 = _0x1a629d["Transforms"][_0x4725c4(335)](_0x5b498e[_0x4725c4(432)][_0x4725c4(551)])[_0x4725c4(506)](), _0x25a38b = _0x1a629d[_0x4725c4(530)][_0x4725c4(457)](this["scale"]); _0x1a629d["Matrix4"][_0x4725c4(492)](_0x98b279, _0x25a38b, _0x98b279); let _0x479928 = _0x1a629d["Matrix3"][_0x4725c4(477)](_0x1a629d[_0x4725c4(447)]["toRadians"](this[_0x4725c4(521)])), _0x4a7888 = _0x1a629d[_0x4725c4(530)][_0x4725c4(334)](_0x479928); _0x1a629d[_0x4725c4(530)][_0x4725c4(492)](_0x98b279, _0x4a7888, _0x98b279); let _0x32ccb4 = _0x1a629d[_0x4725c4(443)]["fromRotationY"](_0x1a629d[_0x4725c4(447)][_0x4725c4(480)](this[_0x4725c4(539)])), _0x1ae6db = _0x1a629d[_0x4725c4(530)]["fromRotationTranslation"](_0x32ccb4); _0x1a629d["Matrix4"]["multiply"](_0x98b279, _0x1ae6db, _0x98b279); let _0x3d96b1 = _0x1a629d[_0x4725c4(443)]["fromRotationZ"](_0x1a629d[_0x4725c4(447)][_0x4725c4(480)](this[_0x4725c4(488)])), _0x3fe9d7 = _0x1a629d[_0x4725c4(530)][_0x4725c4(334)](_0x3d96b1); _0x1a629d[_0x4725c4(530)]["multiply"](_0x98b279, _0x3fe9d7, _0x98b279), _0x98b279 = _0x1a629d[_0x4725c4(530)][_0x4725c4(476)](_0x98b279, new _0x1a629d[_0x4725c4(530)]()); let _0x46ed40 = _0x5bb766[_0x4725c4(551)], _0x37c7f4 = _0x5bb766[_0x4725c4(420)], _0x2e42d1 = _0x46ed40["x"], _0x480492 = _0x46ed40["y"], _0x1bc516 = _0x46ed40["z"], _0x52ae0f = new _0x1a629d[_0x4725c4(511)](_0x2e42d1, _0x480492 - _0x37c7f4, _0x1bc516), _0x330697 = new _0x1a629d[_0x4725c4(511)](_0x2e42d1 - _0x37c7f4, _0x480492, _0x1bc516), _0x290c29 = new _0x1a629d[_0x4725c4(511)](_0x2e42d1, _0x480492 + _0x37c7f4, _0x1bc516), _0x1e1f7b = new _0x1a629d["Cartesian3"](_0x2e42d1 + _0x37c7f4, _0x480492, _0x1bc516), _0x2a421f = new _0x1a629d[_0x4725c4(511)](0, 0, 1); new _0x1a629d[_0x4725c4(511)](0, 0, -1); let _0x543157 = _0x10d57a; _0x52ae0f = _0x1a629d[_0x4725c4(530)]["multiplyByPoint"](_0x543157, _0x52ae0f, new _0x1a629d[_0x4725c4(511)](0, 0, 0)), _0x330697 = _0x1a629d["Matrix4"][_0x4725c4(375)](_0x543157, _0x330697, new _0x1a629d[_0x4725c4(511)](0, 0, 0)), _0x290c29 = _0x1a629d[_0x4725c4(530)][_0x4725c4(375)](_0x543157, _0x290c29, new _0x1a629d[_0x4725c4(511)](0, 0, 0)), _0x1e1f7b = _0x1a629d[_0x4725c4(530)][_0x4725c4(375)](_0x543157, _0x1e1f7b, new _0x1a629d[_0x4725c4(511)](0, 0, 0)); let _0x265033 = _0x1a629d[_0x4725c4(511)][_0x4725c4(411)](_0x330697, _0x52ae0f, new _0x1a629d[_0x4725c4(511)]()), _0x4efd41 = _0x1a629d[_0x4725c4(511)][_0x4725c4(402)](_0x265033, _0x2a421f, new _0x1a