vis-core 0.22.3 → 0.22.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,14 +4,14 @@ var Fn = Object.getOwnPropertyDescriptors;
4
4
  var Ln = Object.getOwnPropertySymbols, Hn = Object.getPrototypeOf, kn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, wn = Reflect.get;
5
5
  var Zn = (c, e) => (e = Symbol[c]) ? e : Symbol.for("Symbol." + c), Kn = (c) => {
6
6
  throw TypeError(c);
7
- }, ln = Math.pow, Sn = (c, e, s) => e in c ? Mn(c, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : c[e] = s, hi = (c, e) => {
7
+ }, ln = Math.pow, Sn = (c, e, s) => e in c ? Mn(c, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : c[e] = s, di = (c, e) => {
8
8
  for (var s in e || (e = {}))
9
9
  kn.call(e, s) && Sn(c, s, e[s]);
10
10
  if (Ln)
11
11
  for (var s of Ln(e))
12
12
  Jn.call(e, s) && Sn(c, s, e[s]);
13
13
  return c;
14
- }, Ui = (c, e) => Nn(c, Fn(e));
14
+ }, zi = (c, e) => Nn(c, Fn(e));
15
15
  var k0 = (c, e, s) => Sn(c, typeof e != "symbol" ? e + "" : e, s);
16
16
  var on = (c, e, s) => wn(Hn(c), s, e);
17
17
  var ei = (c, e, s) => new Promise((r, f) => {
@@ -90,7 +90,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
90
90
  ).toString(CryptoJS.enc.Utf8), qe = JSON.parse($e), st = Date.now();
91
91
  return !qe.s || qe.s > st ? (this.token = void 0, "") : qe.e && qe.e < st ? (this.token = void 0, "") : (qe.isValid = Qe, qe);
92
92
  }
93
- }, version = "0.22.3";
93
+ }, version = "0.22.4";
94
94
  /**
95
95
  * @license
96
96
  * Copyright 2010-2024 Three.js Authors
@@ -5685,10 +5685,10 @@ class BatchedMesh extends Mesh {
5685
5685
  _mesh.material = null, _mesh.geometry.index = null, _mesh.geometry.attributes = {}, _mesh.geometry.setDrawRange(0, 1 / 0);
5686
5686
  }
5687
5687
  copy(e) {
5688
- return super.copy(e), this.geometry = e.geometry.clone(), this.perObjectFrustumCulled = e.perObjectFrustumCulled, this.sortObjects = e.sortObjects, this.boundingBox = e.boundingBox !== null ? e.boundingBox.clone() : null, this.boundingSphere = e.boundingSphere !== null ? e.boundingSphere.clone() : null, this._geometryInfo = e._geometryInfo.map((s) => Ui(hi({}, s), {
5688
+ return super.copy(e), this.geometry = e.geometry.clone(), this.perObjectFrustumCulled = e.perObjectFrustumCulled, this.sortObjects = e.sortObjects, this.boundingBox = e.boundingBox !== null ? e.boundingBox.clone() : null, this.boundingSphere = e.boundingSphere !== null ? e.boundingSphere.clone() : null, this._geometryInfo = e._geometryInfo.map((s) => zi(di({}, s), {
5689
5689
  boundingBox: s.boundingBox !== null ? s.boundingBox.clone() : null,
5690
5690
  boundingSphere: s.boundingSphere !== null ? s.boundingSphere.clone() : null
5691
- })), this._instanceInfo = e._instanceInfo.map((s) => hi({}, s)), this._maxInstanceCount = e._maxInstanceCount, this._maxVertexCount = e._maxVertexCount, this._maxIndexCount = e._maxIndexCount, this._geometryInitialized = e._geometryInitialized, this._geometryCount = e._geometryCount, this._multiDrawCounts = e._multiDrawCounts.slice(), this._multiDrawStarts = e._multiDrawStarts.slice(), this._matricesTexture = e._matricesTexture.clone(), this._matricesTexture.image.data = this._matricesTexture.image.data.slice(), this._colorsTexture !== null && (this._colorsTexture = e._colorsTexture.clone(), this._colorsTexture.image.data = this._colorsTexture.image.data.slice()), this;
5691
+ })), this._instanceInfo = e._instanceInfo.map((s) => di({}, s)), this._maxInstanceCount = e._maxInstanceCount, this._maxVertexCount = e._maxVertexCount, this._maxIndexCount = e._maxIndexCount, this._geometryInitialized = e._geometryInitialized, this._geometryCount = e._geometryCount, this._multiDrawCounts = e._multiDrawCounts.slice(), this._multiDrawStarts = e._multiDrawStarts.slice(), this._matricesTexture = e._matricesTexture.clone(), this._matricesTexture.image.data = this._matricesTexture.image.data.slice(), this._colorsTexture !== null && (this._colorsTexture = e._colorsTexture.clone(), this._colorsTexture.image.data = this._colorsTexture.image.data.slice()), this;
5692
5692
  }
5693
5693
  dispose() {
5694
5694
  return this.geometry.dispose(), this._matricesTexture.dispose(), this._matricesTexture = null, this._indirectTexture.dispose(), this._indirectTexture = null, this._colorsTexture !== null && (this._colorsTexture.dispose(), this._colorsTexture = null), this;
@@ -21472,9 +21472,9 @@ class WebGLRenderer {
21472
21472
  ai = 2;
21473
21473
  }
21474
21474
  const li = S0.drawRange, ci = S0.attributes.position;
21475
- let di = li.start * ai, yi = (li.start + li.count) * ai;
21476
- F0 !== null && (di = Math.max(di, F0.start * ai), yi = Math.min(yi, (F0.start + F0.count) * ai)), $0 !== null ? (di = Math.max(di, 0), yi = Math.min(yi, $0.count)) : ci != null && (di = Math.max(di, 0), yi = Math.min(yi, ci.count));
21477
- const Yi = yi - di;
21475
+ let hi = li.start * ai, yi = (li.start + li.count) * ai;
21476
+ F0 !== null && (hi = Math.max(hi, F0.start * ai), yi = Math.min(yi, (F0.start + F0.count) * ai)), $0 !== null ? (hi = Math.max(hi, 0), yi = Math.min(yi, $0.count)) : ci != null && (hi = Math.max(hi, 0), yi = Math.min(yi, ci.count));
21477
+ const Yi = yi - hi;
21478
21478
  if (Yi < 0 || Yi === 1 / 0) return;
21479
21479
  Hi.setup(L0, T0, w0, S0, $0);
21480
21480
  let Ni, Mi = gi;
@@ -21495,12 +21495,12 @@ class WebGLRenderer {
21495
21495
  _i.setValue(R0, "_gl_DrawID", Bi), Mi.render(Li[Bi] / Ei, Ki[Bi]);
21496
21496
  }
21497
21497
  else if (L0.isInstancedMesh)
21498
- Mi.renderInstances(di, Yi, L0.count);
21498
+ Mi.renderInstances(hi, Yi, L0.count);
21499
21499
  else if (S0.isInstancedBufferGeometry) {
21500
21500
  const Li = S0._maxInstanceCount !== void 0 ? S0._maxInstanceCount : 1 / 0, Ki = Math.min(S0.instanceCount, Li);
21501
- Mi.renderInstances(di, Yi, Ki);
21501
+ Mi.renderInstances(hi, Yi, Ki);
21502
21502
  } else
21503
- Mi.render(di, Yi);
21503
+ Mi.render(hi, Yi);
21504
21504
  };
21505
21505
  function Pi(c0, g0, S0) {
21506
21506
  c0.transparent === !0 && c0.side === DoubleSide && c0.forceSinglePass === !1 ? (c0.side = BackSide, c0.needsUpdate = !0, cn(c0, g0, S0), c0.side = FrontSide, c0.needsUpdate = !0, cn(c0, g0, S0), c0.side = DoubleSide) : cn(c0, g0, S0);
@@ -21603,8 +21603,8 @@ class WebGLRenderer {
21603
21603
  if (T0 && (c0.boundingSphere !== void 0 ? (c0.boundingSphere === null && c0.computeBoundingSphere(), Zi.copy(c0.boundingSphere.center)) : (J0.boundingSphere === null && J0.computeBoundingSphere(), Zi.copy(J0.boundingSphere.center)), Zi.applyMatrix4(c0.matrixWorld).applyMatrix4(mi)), Array.isArray(w0)) {
21604
21604
  const $0 = J0.groups;
21605
21605
  for (let ai = 0, li = $0.length; ai < li; ai++) {
21606
- const ci = $0[ai], di = w0[ci.materialIndex];
21607
- di && di.visible && Yt.push(c0, J0, di, S0, Zi.z, ci);
21606
+ const ci = $0[ai], hi = w0[ci.materialIndex];
21607
+ hi && hi.visible && Yt.push(c0, J0, hi, S0, Zi.z, ci);
21608
21608
  }
21609
21609
  } else w0.visible && Yt.push(c0, J0, w0, S0, Zi.z, null);
21610
21610
  }
@@ -21639,7 +21639,7 @@ class WebGLRenderer {
21639
21639
  const ai = T0.viewport;
21640
21640
  if (T0.viewport !== void 0 && (T0.viewport = void 0), rt.setupLightsView(T0), A0 === !0 && ui.setGlobalState(Tt.clippingPlanes, T0), rn(c0, S0, T0), V0.updateMultisampleRenderTarget(F0), V0.updateRenderTargetMipmap(F0), si.has("WEBGL_multisampled_render_to_texture") === !1) {
21641
21641
  let li = !1;
21642
- for (let ci = 0, di = g0.length; ci < di; ci++) {
21642
+ for (let ci = 0, hi = g0.length; ci < hi; ci++) {
21643
21643
  const yi = g0[ci], Yi = yi.object, Ni = yi.geometry, Mi = yi.material, Li = yi.group;
21644
21644
  if (Mi.side === DoubleSide && Yi.layers.test(T0.layers)) {
21645
21645
  const Ki = Mi.side;
@@ -21687,7 +21687,7 @@ class WebGLRenderer {
21687
21687
  }
21688
21688
  function xn(c0, g0, S0, T0, L0) {
21689
21689
  g0.isScene !== !0 && (g0 = Si), V0.resetTextureUnits();
21690
- const F0 = g0.fog, J0 = T0.isMeshStandardMaterial ? g0.environment : null, w0 = t0 === null ? Tt.outputColorSpace : t0.isXRRenderTarget === !0 ? t0.texture.colorSpace : LinearSRGBColorSpace, $0 = (T0.isMeshStandardMaterial ? N0 : b0).get(T0.envMap || J0), ai = T0.vertexColors === !0 && !!S0.attributes.color && S0.attributes.color.itemSize === 4, li = !!S0.attributes.tangent && (!!T0.normalMap || T0.anisotropy > 0), ci = !!S0.morphAttributes.position, di = !!S0.morphAttributes.normal, yi = !!S0.morphAttributes.color;
21690
+ const F0 = g0.fog, J0 = T0.isMeshStandardMaterial ? g0.environment : null, w0 = t0 === null ? Tt.outputColorSpace : t0.isXRRenderTarget === !0 ? t0.texture.colorSpace : LinearSRGBColorSpace, $0 = (T0.isMeshStandardMaterial ? N0 : b0).get(T0.envMap || J0), ai = T0.vertexColors === !0 && !!S0.attributes.color && S0.attributes.color.itemSize === 4, li = !!S0.attributes.tangent && (!!T0.normalMap || T0.anisotropy > 0), ci = !!S0.morphAttributes.position, hi = !!S0.morphAttributes.normal, yi = !!S0.morphAttributes.color;
21691
21691
  let Yi = NoToneMapping;
21692
21692
  T0.toneMapped && (t0 === null || t0.isXRRenderTarget === !0) && (Yi = Tt.toneMapping);
21693
21693
  const Ni = S0.morphAttributes.position || S0.morphAttributes.normal || S0.morphAttributes.color, Mi = Ni !== void 0 ? Ni.length : 0, Li = ti.get(T0), Ki = rt.state.lights;
@@ -21696,19 +21696,19 @@ class WebGLRenderer {
21696
21696
  ui.setState(T0, c0, Qi);
21697
21697
  }
21698
21698
  let Ii = !1;
21699
- T0.version === Li.__version ? (Li.needsLights && Li.lightsStateVersion !== Ki.state.version || Li.outputColorSpace !== w0 || L0.isBatchedMesh && Li.batching === !1 || !L0.isBatchedMesh && Li.batching === !0 || L0.isBatchedMesh && Li.batchingColor === !0 && L0.colorTexture === null || L0.isBatchedMesh && Li.batchingColor === !1 && L0.colorTexture !== null || L0.isInstancedMesh && Li.instancing === !1 || !L0.isInstancedMesh && Li.instancing === !0 || L0.isSkinnedMesh && Li.skinning === !1 || !L0.isSkinnedMesh && Li.skinning === !0 || L0.isInstancedMesh && Li.instancingColor === !0 && L0.instanceColor === null || L0.isInstancedMesh && Li.instancingColor === !1 && L0.instanceColor !== null || L0.isInstancedMesh && Li.instancingMorph === !0 && L0.morphTexture === null || L0.isInstancedMesh && Li.instancingMorph === !1 && L0.morphTexture !== null || Li.envMap !== $0 || T0.fog === !0 && Li.fog !== F0 || Li.numClippingPlanes !== void 0 && (Li.numClippingPlanes !== ui.numPlanes || Li.numIntersection !== ui.numIntersection) || Li.vertexAlphas !== ai || Li.vertexTangents !== li || Li.morphTargets !== ci || Li.morphNormals !== di || Li.morphColors !== yi || Li.toneMapping !== Yi || Li.morphTargetsCount !== Mi) && (Ii = !0) : (Ii = !0, Li.__version = T0.version);
21699
+ T0.version === Li.__version ? (Li.needsLights && Li.lightsStateVersion !== Ki.state.version || Li.outputColorSpace !== w0 || L0.isBatchedMesh && Li.batching === !1 || !L0.isBatchedMesh && Li.batching === !0 || L0.isBatchedMesh && Li.batchingColor === !0 && L0.colorTexture === null || L0.isBatchedMesh && Li.batchingColor === !1 && L0.colorTexture !== null || L0.isInstancedMesh && Li.instancing === !1 || !L0.isInstancedMesh && Li.instancing === !0 || L0.isSkinnedMesh && Li.skinning === !1 || !L0.isSkinnedMesh && Li.skinning === !0 || L0.isInstancedMesh && Li.instancingColor === !0 && L0.instanceColor === null || L0.isInstancedMesh && Li.instancingColor === !1 && L0.instanceColor !== null || L0.isInstancedMesh && Li.instancingMorph === !0 && L0.morphTexture === null || L0.isInstancedMesh && Li.instancingMorph === !1 && L0.morphTexture !== null || Li.envMap !== $0 || T0.fog === !0 && Li.fog !== F0 || Li.numClippingPlanes !== void 0 && (Li.numClippingPlanes !== ui.numPlanes || Li.numIntersection !== ui.numIntersection) || Li.vertexAlphas !== ai || Li.vertexTangents !== li || Li.morphTargets !== ci || Li.morphNormals !== hi || Li.morphColors !== yi || Li.toneMapping !== Yi || Li.morphTargetsCount !== Mi) && (Ii = !0) : (Ii = !0, Li.__version = T0.version);
21700
21700
  let Ei = Li.currentProgram;
21701
21701
  Ii === !0 && (Ei = cn(T0, g0, L0));
21702
- let _i = !1, Bi = !1, zi = !1;
21702
+ let _i = !1, Bi = !1, Ui = !1;
21703
21703
  const Fi = Ei.getUniforms(), ji = Li.uniforms;
21704
- if (U0.useProgram(Ei.program) && (_i = !0, Bi = !0, zi = !0), T0.id !== i0 && (i0 = T0.id, Bi = !0), _i || n0 !== c0) {
21704
+ if (U0.useProgram(Ei.program) && (_i = !0, Bi = !0, Ui = !0), T0.id !== i0 && (i0 = T0.id, Bi = !0), _i || n0 !== c0) {
21705
21705
  U0.buffers.depth.getReversed() ? (ni.copy(c0.projectionMatrix), toNormalizedProjectionMatrix(ni), toReversedProjectionMatrix(ni), Fi.setValue(R0, "projectionMatrix", ni)) : Fi.setValue(R0, "projectionMatrix", c0.projectionMatrix), Fi.setValue(R0, "viewMatrix", c0.matrixWorldInverse);
21706
21706
  const Di = Fi.map.cameraPosition;
21707
21707
  Di !== void 0 && Di.setValue(R0, Vi.setFromMatrixPosition(c0.matrixWorld)), E0.logarithmicDepthBuffer && Fi.setValue(
21708
21708
  R0,
21709
21709
  "logDepthBufFC",
21710
21710
  2 / (Math.log(c0.far + 1) / Math.LN2)
21711
- ), (T0.isMeshPhongMaterial || T0.isMeshToonMaterial || T0.isMeshLambertMaterial || T0.isMeshBasicMaterial || T0.isMeshStandardMaterial || T0.isShaderMaterial) && Fi.setValue(R0, "isOrthographic", c0.isOrthographicCamera === !0), n0 !== c0 && (n0 = c0, Bi = !0, zi = !0);
21711
+ ), (T0.isMeshPhongMaterial || T0.isMeshToonMaterial || T0.isMeshLambertMaterial || T0.isMeshBasicMaterial || T0.isMeshStandardMaterial || T0.isShaderMaterial) && Fi.setValue(R0, "isOrthographic", c0.isOrthographicCamera === !0), n0 !== c0 && (n0 = c0, Bi = !0, Ui = !0);
21712
21712
  }
21713
21713
  if (L0.isSkinnedMesh) {
21714
21714
  Fi.setOptional(R0, L0, "bindMatrix"), Fi.setOptional(R0, L0, "bindMatrixInverse");
@@ -21717,7 +21717,7 @@ class WebGLRenderer {
21717
21717
  }
21718
21718
  L0.isBatchedMesh && (Fi.setOptional(R0, L0, "batchingTexture"), Fi.setValue(R0, "batchingTexture", L0._matricesTexture, V0), Fi.setOptional(R0, L0, "batchingIdTexture"), Fi.setValue(R0, "batchingIdTexture", L0._indirectTexture, V0), Fi.setOptional(R0, L0, "batchingColorTexture"), L0._colorsTexture !== null && Fi.setValue(R0, "batchingColorTexture", L0._colorsTexture, V0));
21719
21719
  const $i = S0.morphAttributes;
21720
- if (($i.position !== void 0 || $i.normal !== void 0 || $i.color !== void 0) && vi.update(L0, S0, Ei), (Bi || Li.receiveShadow !== L0.receiveShadow) && (Li.receiveShadow = L0.receiveShadow, Fi.setValue(R0, "receiveShadow", L0.receiveShadow)), T0.isMeshGouraudMaterial && T0.envMap !== null && (ji.envMap.value = $0, ji.flipEnvMap.value = $0.isCubeTexture && $0.isRenderTargetTexture === !1 ? -1 : 1), T0.isMeshStandardMaterial && T0.envMap === null && g0.environment !== null && (ji.envMapIntensity.value = g0.environmentIntensity), Bi && (Fi.setValue(R0, "toneMappingExposure", Tt.toneMappingExposure), Li.needsLights && nn(ji, zi), F0 && T0.fog === !0 && Gi.refreshFogUniforms(ji, F0), Gi.refreshMaterialUniforms(ji, T0, a0, r0, rt.state.transmissionRenderTarget[c0.id]), WebGLUniforms.upload(R0, pn(Li), ji, V0)), T0.isShaderMaterial && T0.uniformsNeedUpdate === !0 && (WebGLUniforms.upload(R0, pn(Li), ji, V0), T0.uniformsNeedUpdate = !1), T0.isSpriteMaterial && Fi.setValue(R0, "center", L0.center), Fi.setValue(R0, "modelViewMatrix", L0.modelViewMatrix), Fi.setValue(R0, "normalMatrix", L0.normalMatrix), Fi.setValue(R0, "modelMatrix", L0.matrixWorld), T0.isShaderMaterial || T0.isRawShaderMaterial) {
21720
+ if (($i.position !== void 0 || $i.normal !== void 0 || $i.color !== void 0) && vi.update(L0, S0, Ei), (Bi || Li.receiveShadow !== L0.receiveShadow) && (Li.receiveShadow = L0.receiveShadow, Fi.setValue(R0, "receiveShadow", L0.receiveShadow)), T0.isMeshGouraudMaterial && T0.envMap !== null && (ji.envMap.value = $0, ji.flipEnvMap.value = $0.isCubeTexture && $0.isRenderTargetTexture === !1 ? -1 : 1), T0.isMeshStandardMaterial && T0.envMap === null && g0.environment !== null && (ji.envMapIntensity.value = g0.environmentIntensity), Bi && (Fi.setValue(R0, "toneMappingExposure", Tt.toneMappingExposure), Li.needsLights && nn(ji, Ui), F0 && T0.fog === !0 && Gi.refreshFogUniforms(ji, F0), Gi.refreshMaterialUniforms(ji, T0, a0, r0, rt.state.transmissionRenderTarget[c0.id]), WebGLUniforms.upload(R0, pn(Li), ji, V0)), T0.isShaderMaterial && T0.uniformsNeedUpdate === !0 && (WebGLUniforms.upload(R0, pn(Li), ji, V0), T0.uniformsNeedUpdate = !1), T0.isSpriteMaterial && Fi.setValue(R0, "center", L0.center), Fi.setValue(R0, "modelViewMatrix", L0.modelViewMatrix), Fi.setValue(R0, "normalMatrix", L0.normalMatrix), Fi.setValue(R0, "modelMatrix", L0.matrixWorld), T0.isShaderMaterial || T0.isRawShaderMaterial) {
21721
21721
  const Qi = T0.uniformsGroups;
21722
21722
  for (let Di = 0, Rn = Qi.length; Di < Rn; Di++) {
21723
21723
  const an = Qi[Di];
@@ -21822,8 +21822,8 @@ class WebGLRenderer {
21822
21822
  U0.bindFramebuffer(R0.FRAMEBUFFER, w0);
21823
21823
  const ci = R0.createBuffer();
21824
21824
  R0.bindBuffer(R0.PIXEL_PACK_BUFFER, ci), R0.bufferData(R0.PIXEL_PACK_BUFFER, F0.byteLength, R0.STREAM_READ), R0.readPixels(g0, S0, T0, L0, Ti.convert(ai), Ti.convert(li), 0);
21825
- const di = t0 !== null ? ti.get(t0).__webglFramebuffer : null;
21826
- U0.bindFramebuffer(R0.FRAMEBUFFER, di);
21825
+ const hi = t0 !== null ? ti.get(t0).__webglFramebuffer : null;
21826
+ U0.bindFramebuffer(R0.FRAMEBUFFER, hi);
21827
21827
  const yi = R0.fenceSync(R0.SYNC_GPU_COMMANDS_COMPLETE, 0);
21828
21828
  return R0.flush(), yield probeAsync(R0, yi, 4), R0.bindBuffer(R0.PIXEL_PACK_BUFFER, ci), R0.getBufferSubData(R0.PIXEL_PACK_BUFFER, 0, F0), R0.deleteBuffer(ci), R0.deleteSync(yi), F0;
21829
21829
  } else
@@ -21838,7 +21838,7 @@ class WebGLRenderer {
21838
21838
  const f0 = R0.createFramebuffer(), v0 = R0.createFramebuffer();
21839
21839
  this.copyTextureToTexture = function(c0, g0, S0 = null, T0 = null, L0 = 0, F0 = null) {
21840
21840
  c0.isTexture !== !0 && (warnOnce("WebGLRenderer: copyTextureToTexture function signature has changed."), T0 = arguments[0] || null, c0 = arguments[1], g0 = arguments[2], F0 = arguments[3] || 0, S0 = null), F0 === null && (L0 !== 0 ? (warnOnce("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), F0 = L0, L0 = 0) : F0 = 0);
21841
- let J0, w0, $0, ai, li, ci, di, yi, Yi;
21841
+ let J0, w0, $0, ai, li, ci, hi, yi, Yi;
21842
21842
  const Ni = c0.isCompressedTexture ? c0.mipmaps[F0] : c0.image;
21843
21843
  if (S0 !== null)
21844
21844
  J0 = S0.max.x - S0.min.x, w0 = S0.max.y - S0.min.y, $0 = S0.isBox3 ? S0.max.z - S0.min.z : 1, ai = S0.min.x, li = S0.min.y, ci = S0.isBox3 ? S0.min.z : 0;
@@ -21846,28 +21846,28 @@ class WebGLRenderer {
21846
21846
  const $i = Math.pow(2, -L0);
21847
21847
  J0 = Math.floor(Ni.width * $i), w0 = Math.floor(Ni.height * $i), c0.isDataArrayTexture ? $0 = Ni.depth : c0.isData3DTexture ? $0 = Math.floor(Ni.depth * $i) : $0 = 1, ai = 0, li = 0, ci = 0;
21848
21848
  }
21849
- T0 !== null ? (di = T0.x, yi = T0.y, Yi = T0.z) : (di = 0, yi = 0, Yi = 0);
21849
+ T0 !== null ? (hi = T0.x, yi = T0.y, Yi = T0.z) : (hi = 0, yi = 0, Yi = 0);
21850
21850
  const Mi = Ti.convert(g0.format), Li = Ti.convert(g0.type);
21851
21851
  let Ki;
21852
21852
  g0.isData3DTexture ? (V0.setTexture3D(g0, 0), Ki = R0.TEXTURE_3D) : g0.isDataArrayTexture || g0.isCompressedArrayTexture ? (V0.setTexture2DArray(g0, 0), Ki = R0.TEXTURE_2D_ARRAY) : (V0.setTexture2D(g0, 0), Ki = R0.TEXTURE_2D), R0.pixelStorei(R0.UNPACK_FLIP_Y_WEBGL, g0.flipY), R0.pixelStorei(R0.UNPACK_PREMULTIPLY_ALPHA_WEBGL, g0.premultiplyAlpha), R0.pixelStorei(R0.UNPACK_ALIGNMENT, g0.unpackAlignment);
21853
- const Ii = R0.getParameter(R0.UNPACK_ROW_LENGTH), Ei = R0.getParameter(R0.UNPACK_IMAGE_HEIGHT), _i = R0.getParameter(R0.UNPACK_SKIP_PIXELS), Bi = R0.getParameter(R0.UNPACK_SKIP_ROWS), zi = R0.getParameter(R0.UNPACK_SKIP_IMAGES);
21853
+ const Ii = R0.getParameter(R0.UNPACK_ROW_LENGTH), Ei = R0.getParameter(R0.UNPACK_IMAGE_HEIGHT), _i = R0.getParameter(R0.UNPACK_SKIP_PIXELS), Bi = R0.getParameter(R0.UNPACK_SKIP_ROWS), Ui = R0.getParameter(R0.UNPACK_SKIP_IMAGES);
21854
21854
  R0.pixelStorei(R0.UNPACK_ROW_LENGTH, Ni.width), R0.pixelStorei(R0.UNPACK_IMAGE_HEIGHT, Ni.height), R0.pixelStorei(R0.UNPACK_SKIP_PIXELS, ai), R0.pixelStorei(R0.UNPACK_SKIP_ROWS, li), R0.pixelStorei(R0.UNPACK_SKIP_IMAGES, ci);
21855
21855
  const Fi = c0.isDataArrayTexture || c0.isData3DTexture, ji = g0.isDataArrayTexture || g0.isData3DTexture;
21856
21856
  if (c0.isDepthTexture) {
21857
21857
  const $i = ti.get(c0), Qi = ti.get(g0), Di = ti.get($i.__renderTarget), Rn = ti.get(Qi.__renderTarget);
21858
21858
  U0.bindFramebuffer(R0.READ_FRAMEBUFFER, Di.__webglFramebuffer), U0.bindFramebuffer(R0.DRAW_FRAMEBUFFER, Rn.__webglFramebuffer);
21859
21859
  for (let an = 0; an < $0; an++)
21860
- Fi && (R0.framebufferTextureLayer(R0.READ_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, ti.get(c0).__webglTexture, L0, ci + an), R0.framebufferTextureLayer(R0.DRAW_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, ti.get(g0).__webglTexture, F0, Yi + an)), R0.blitFramebuffer(ai, li, J0, w0, di, yi, J0, w0, R0.DEPTH_BUFFER_BIT, R0.NEAREST);
21860
+ Fi && (R0.framebufferTextureLayer(R0.READ_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, ti.get(c0).__webglTexture, L0, ci + an), R0.framebufferTextureLayer(R0.DRAW_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, ti.get(g0).__webglTexture, F0, Yi + an)), R0.blitFramebuffer(ai, li, J0, w0, hi, yi, J0, w0, R0.DEPTH_BUFFER_BIT, R0.NEAREST);
21861
21861
  U0.bindFramebuffer(R0.READ_FRAMEBUFFER, null), U0.bindFramebuffer(R0.DRAW_FRAMEBUFFER, null);
21862
21862
  } else if (L0 !== 0 || c0.isRenderTargetTexture || ti.has(c0)) {
21863
21863
  const $i = ti.get(c0), Qi = ti.get(g0);
21864
21864
  U0.bindFramebuffer(R0.READ_FRAMEBUFFER, f0), U0.bindFramebuffer(R0.DRAW_FRAMEBUFFER, v0);
21865
21865
  for (let Di = 0; Di < $0; Di++)
21866
- Fi ? R0.framebufferTextureLayer(R0.READ_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, $i.__webglTexture, L0, ci + Di) : R0.framebufferTexture2D(R0.READ_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, R0.TEXTURE_2D, $i.__webglTexture, L0), ji ? R0.framebufferTextureLayer(R0.DRAW_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, Qi.__webglTexture, F0, Yi + Di) : R0.framebufferTexture2D(R0.DRAW_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, R0.TEXTURE_2D, Qi.__webglTexture, F0), L0 !== 0 ? R0.blitFramebuffer(ai, li, J0, w0, di, yi, J0, w0, R0.COLOR_BUFFER_BIT, R0.NEAREST) : ji ? R0.copyTexSubImage3D(Ki, F0, di, yi, Yi + Di, ai, li, J0, w0) : R0.copyTexSubImage2D(Ki, F0, di, yi, ai, li, J0, w0);
21866
+ Fi ? R0.framebufferTextureLayer(R0.READ_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, $i.__webglTexture, L0, ci + Di) : R0.framebufferTexture2D(R0.READ_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, R0.TEXTURE_2D, $i.__webglTexture, L0), ji ? R0.framebufferTextureLayer(R0.DRAW_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, Qi.__webglTexture, F0, Yi + Di) : R0.framebufferTexture2D(R0.DRAW_FRAMEBUFFER, R0.COLOR_ATTACHMENT0, R0.TEXTURE_2D, Qi.__webglTexture, F0), L0 !== 0 ? R0.blitFramebuffer(ai, li, J0, w0, hi, yi, J0, w0, R0.COLOR_BUFFER_BIT, R0.NEAREST) : ji ? R0.copyTexSubImage3D(Ki, F0, hi, yi, Yi + Di, ai, li, J0, w0) : R0.copyTexSubImage2D(Ki, F0, hi, yi, ai, li, J0, w0);
21867
21867
  U0.bindFramebuffer(R0.READ_FRAMEBUFFER, null), U0.bindFramebuffer(R0.DRAW_FRAMEBUFFER, null);
21868
21868
  } else
21869
- ji ? c0.isDataTexture || c0.isData3DTexture ? R0.texSubImage3D(Ki, F0, di, yi, Yi, J0, w0, $0, Mi, Li, Ni.data) : g0.isCompressedArrayTexture ? R0.compressedTexSubImage3D(Ki, F0, di, yi, Yi, J0, w0, $0, Mi, Ni.data) : R0.texSubImage3D(Ki, F0, di, yi, Yi, J0, w0, $0, Mi, Li, Ni) : c0.isDataTexture ? R0.texSubImage2D(R0.TEXTURE_2D, F0, di, yi, J0, w0, Mi, Li, Ni.data) : c0.isCompressedTexture ? R0.compressedTexSubImage2D(R0.TEXTURE_2D, F0, di, yi, Ni.width, Ni.height, Mi, Ni.data) : R0.texSubImage2D(R0.TEXTURE_2D, F0, di, yi, J0, w0, Mi, Li, Ni);
21870
- R0.pixelStorei(R0.UNPACK_ROW_LENGTH, Ii), R0.pixelStorei(R0.UNPACK_IMAGE_HEIGHT, Ei), R0.pixelStorei(R0.UNPACK_SKIP_PIXELS, _i), R0.pixelStorei(R0.UNPACK_SKIP_ROWS, Bi), R0.pixelStorei(R0.UNPACK_SKIP_IMAGES, zi), F0 === 0 && g0.generateMipmaps && R0.generateMipmap(Ki), U0.unbindTexture();
21869
+ ji ? c0.isDataTexture || c0.isData3DTexture ? R0.texSubImage3D(Ki, F0, hi, yi, Yi, J0, w0, $0, Mi, Li, Ni.data) : g0.isCompressedArrayTexture ? R0.compressedTexSubImage3D(Ki, F0, hi, yi, Yi, J0, w0, $0, Mi, Ni.data) : R0.texSubImage3D(Ki, F0, hi, yi, Yi, J0, w0, $0, Mi, Li, Ni) : c0.isDataTexture ? R0.texSubImage2D(R0.TEXTURE_2D, F0, hi, yi, J0, w0, Mi, Li, Ni.data) : c0.isCompressedTexture ? R0.compressedTexSubImage2D(R0.TEXTURE_2D, F0, hi, yi, Ni.width, Ni.height, Mi, Ni.data) : R0.texSubImage2D(R0.TEXTURE_2D, F0, hi, yi, J0, w0, Mi, Li, Ni);
21870
+ R0.pixelStorei(R0.UNPACK_ROW_LENGTH, Ii), R0.pixelStorei(R0.UNPACK_IMAGE_HEIGHT, Ei), R0.pixelStorei(R0.UNPACK_SKIP_PIXELS, _i), R0.pixelStorei(R0.UNPACK_SKIP_ROWS, Bi), R0.pixelStorei(R0.UNPACK_SKIP_IMAGES, Ui), F0 === 0 && g0.generateMipmaps && R0.generateMipmap(Ki), U0.unbindTexture();
21871
21871
  }, this.copyTextureToTexture3D = function(c0, g0, S0 = null, T0 = null, L0 = 0) {
21872
21872
  return c0.isTexture !== !0 && (warnOnce("WebGLRenderer: copyTextureToTexture3D function signature has changed."), S0 = arguments[0] || null, T0 = arguments[1] || null, c0 = arguments[2], g0 = arguments[3], L0 = arguments[4] || 0), warnOnce('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(c0, g0, S0, T0, L0);
21873
21873
  }, this.initRenderTarget = function(c0) {
@@ -32489,7 +32489,7 @@ const obb = /* @__PURE__ */ new OrientedBox(), tempBox = /* @__PURE__ */ new Box
32489
32489
  };
32490
32490
  class MeshBVH {
32491
32491
  static serialize(e, s = {}) {
32492
- s = hi({
32492
+ s = di({
32493
32493
  cloneBuffers: !0
32494
32494
  }, s);
32495
32495
  const r = e.geometry, f = e._roots, de = e._indirectBuffer, Xe = r.getIndex();
@@ -32505,11 +32505,11 @@ class MeshBVH {
32505
32505
  }, Je;
32506
32506
  }
32507
32507
  static deserialize(e, s, r = {}) {
32508
- r = hi({
32508
+ r = di({
32509
32509
  setIndex: !0,
32510
32510
  indirect: !!e.indirectBuffer
32511
32511
  }, r);
32512
- const { index: f, roots: de, indirectBuffer: Xe } = e, Je = new MeshBVH(s, Ui(hi({}, r), { [SKIP_GENERATION]: !0 }));
32512
+ const { index: f, roots: de, indirectBuffer: Xe } = e, Je = new MeshBVH(s, zi(di({}, r), { [SKIP_GENERATION]: !0 }));
32513
32513
  if (Je._roots = de, Je._indirectBuffer = Xe || null, r.setIndex) {
32514
32514
  const Ke = s.getIndex();
32515
32515
  if (Ke === null) {
@@ -32527,7 +32527,7 @@ class MeshBVH {
32527
32527
  if (e.index && e.index.isInterleavedBufferAttribute)
32528
32528
  throw new Error("MeshBVH: InterleavedBufferAttribute is not supported for the index attribute.");
32529
32529
  } else throw new Error("MeshBVH: Only BufferGeometries are supported.");
32530
- if (s = Object.assign(Ui(hi({}, DEFAULT_OPTIONS), {
32530
+ if (s = Object.assign(zi(di({}, DEFAULT_OPTIONS), {
32531
32531
  // undocumented options
32532
32532
  // Whether to skip generating the tree. Used for deserialization.
32533
32533
  [SKIP_GENERATION]: !1
@@ -33547,7 +33547,7 @@ class Evaluator {
33547
33547
  this.triangleSplitter = new TriangleSplitter(), this.attributeData = [], this.attributes = ["position", "uv", "normal"], this.useGroups = !0, this.consolidateGroups = !0, this.debug = new OperationDebugData();
33548
33548
  }
33549
33549
  getGroupRanges(e) {
33550
- return !this.useGroups || e.groups.length === 0 ? [{ start: 0, count: 1 / 0, materialIndex: 0 }] : e.groups.map((s) => hi({}, s));
33550
+ return !this.useGroups || e.groups.length === 0 ? [{ start: 0, count: 1 / 0, materialIndex: 0 }] : e.groups.map((s) => di({}, s));
33551
33551
  }
33552
33552
  evaluate(e, s, r, f = new Brush()) {
33553
33553
  let de = !0;
@@ -33569,7 +33569,7 @@ class Evaluator {
33569
33569
  }), $e.init(), performOperation(e, s, r, Xe, Je, { useGroups: Qe }), $e.complete();
33570
33570
  const qe = this.getGroupRanges(e.geometry), st = getMaterialList(qe, e.material), dt = this.getGroupRanges(s.geometry), Wt = getMaterialList(dt, s.material);
33571
33571
  dt.forEach((rt) => rt.materialIndex += st.length);
33572
- let Yt = [...qe, ...dt].map((rt, Zt) => Ui(hi({}, rt), { index: Zt }));
33572
+ let Yt = [...qe, ...dt].map((rt, Zt) => zi(di({}, rt), { index: Zt }));
33573
33573
  if (Qe) {
33574
33574
  const rt = [...st, ...Wt];
33575
33575
  _e && (Yt = Yt.map((vt) => {
@@ -37937,7 +37937,7 @@ class Point extends C$1 {
37937
37937
  super();
37938
37938
  k0(this, "options");
37939
37939
  k0(this, "scaleValue", 1);
37940
- this.options = hi({
37940
+ this.options = di({
37941
37941
  sprite: !0
37942
37942
  }, s);
37943
37943
  }
@@ -38018,7 +38018,7 @@ class Arc extends C$1 {
38018
38018
  k0(this, "helperMesh");
38019
38019
  k0(this, "helperMeshPosition");
38020
38020
  k0(this, "pickTube", null);
38021
- this.options = hi({
38021
+ this.options = di({
38022
38022
  color: "#ffffff",
38023
38023
  lineWidth: 6,
38024
38024
  globe: !1,
@@ -38174,7 +38174,7 @@ class CrossPlane extends C$1 {
38174
38174
  constructor(s) {
38175
38175
  super();
38176
38176
  k0(this, "options");
38177
- this.options = hi({}, s);
38177
+ this.options = di({}, s);
38178
38178
  }
38179
38179
  create() {
38180
38180
  return ei(this, null, function* () {
@@ -38202,7 +38202,7 @@ class Model extends C$1 {
38202
38202
  constructor(s) {
38203
38203
  super();
38204
38204
  k0(this, "options");
38205
- this.options = hi({}, s);
38205
+ this.options = di({}, s);
38206
38206
  }
38207
38207
  create() {
38208
38208
  return ei(this, null, function* () {
@@ -38390,9 +38390,9 @@ const baseObjs = {
38390
38390
  Icosahedron,
38391
38391
  Lathe,
38392
38392
  Octahedron
38393
- }, prefabType = Object.keys(Ui(hi({}, expObjs), { Arc, Model })).map(
38393
+ }, prefabType = Object.keys(zi(di({}, expObjs), { Arc, Model })).map(
38394
38394
  (c) => c
38395
- ), objs$5 = hi(hi({}, baseObjs), expObjs);
38395
+ ), objs$5 = di(di({}, baseObjs), expObjs);
38396
38396
  class MaterialList {
38397
38397
  constructor() {
38398
38398
  k0(this, "pluginName", "materialList");
@@ -38405,7 +38405,7 @@ class MaterialList {
38405
38405
  this.pencil = e;
38406
38406
  }
38407
38407
  setMaterial(e, s, r) {
38408
- this.materialList.has(e) && console.warn(`MaterialList: ${e} already exists`), this.materialList.set(e, s), this.setShowMaterialList(e, e, hi({
38408
+ this.materialList.has(e) && console.warn(`MaterialList: ${e} already exists`), this.materialList.set(e, s), this.setShowMaterialList(e, e, di({
38409
38409
  name: s.name,
38410
38410
  disableCheckHide: !0
38411
38411
  }, r));
@@ -38443,7 +38443,7 @@ class MaterialList {
38443
38443
  }
38444
38444
  setObject3dMeta(e, s) {
38445
38445
  this.objectList.forEach((r, f) => {
38446
- r.key === e && this.objectList.set(f, hi(hi({}, r), s));
38446
+ r.key === e && this.objectList.set(f, di(di({}, r), s));
38447
38447
  });
38448
38448
  }
38449
38449
  setObject3d(e, s, r) {
@@ -38460,7 +38460,7 @@ class MaterialList {
38460
38460
  });
38461
38461
  }
38462
38462
  }
38463
- this.objectList.set(e, hi({
38463
+ this.objectList.set(e, di({
38464
38464
  key: s,
38465
38465
  object3d: e
38466
38466
  }, r)), this.emitObject3dChange();
@@ -38479,7 +38479,7 @@ class MaterialList {
38479
38479
  const { parent: de, key: Xe } = r;
38480
38480
  if (f === e || de === e) {
38481
38481
  let Je = s;
38482
- Je.includes("$1") && (Je = Je.replace("$1", Xe)), this.objectList.set(f, Ui(hi({}, r), {
38482
+ Je.includes("$1") && (Je = Je.replace("$1", Xe)), this.objectList.set(f, zi(di({}, r), {
38483
38483
  key: Je
38484
38484
  }));
38485
38485
  }
@@ -40783,13 +40783,13 @@ class EXRLoader extends DataTextureLoader {
40783
40783
  for (; J0 <= F0; ) J0 <<= 1;
40784
40784
  for (J0 >>= 1, w0 = J0, J0 >>= 1; J0 >= 1; ) {
40785
40785
  $0 = 0;
40786
- const ai = $0 + S0 * (g0 - w0), li = S0 * J0, ci = S0 * w0, di = c0 * J0, yi = c0 * w0;
40786
+ const ai = $0 + S0 * (g0 - w0), li = S0 * J0, ci = S0 * w0, hi = c0 * J0, yi = c0 * w0;
40787
40787
  let Yi, Ni, Mi, Li;
40788
40788
  for (; $0 <= ai; $0 += ci) {
40789
40789
  let Ki = $0;
40790
40790
  const Ii = $0 + c0 * (v0 - w0);
40791
40791
  for (; Ki <= Ii; Ki += yi) {
40792
- const Ei = Ki + di, _i = Ki + li, Bi = _i + di;
40792
+ const Ei = Ki + hi, _i = Ki + li, Bi = _i + hi;
40793
40793
  L0 ? (ni(o0[Ki + f0], o0[_i + f0]), Yi = j0.a, Mi = j0.b, ni(o0[Ei + f0], o0[Bi + f0]), Ni = j0.a, Li = j0.b, ni(Yi, Ni), o0[Ki + f0] = j0.a, o0[Ei + f0] = j0.b, ni(Mi, Li), o0[_i + f0] = j0.a, o0[Bi + f0] = j0.b) : (mi(o0[Ki + f0], o0[_i + f0]), Yi = j0.a, Mi = j0.b, mi(o0[Ei + f0], o0[Bi + f0]), Ni = j0.a, Li = j0.b, mi(Yi, Ni), o0[Ki + f0] = j0.a, o0[Ei + f0] = j0.b, mi(Mi, Li), o0[_i + f0] = j0.a, o0[Bi + f0] = j0.b);
40794
40794
  }
40795
40795
  if (v0 & J0) {
@@ -40801,7 +40801,7 @@ class EXRLoader extends DataTextureLoader {
40801
40801
  let Ki = $0;
40802
40802
  const Ii = $0 + c0 * (v0 - w0);
40803
40803
  for (; Ki <= Ii; Ki += yi) {
40804
- const Ei = Ki + di;
40804
+ const Ei = Ki + hi;
40805
40805
  L0 ? ni(o0[Ki + f0], o0[Ei + f0]) : mi(o0[Ki + f0], o0[Ei + f0]), Yi = j0.a, o0[Ei + f0] = j0.b, o0[Ki + f0] = Yi;
40806
40806
  }
40807
40807
  }
@@ -40814,23 +40814,23 @@ class EXRLoader extends DataTextureLoader {
40814
40814
  const $0 = T0, ai = Math.trunc(c0.value + (g0 + 7) / 8);
40815
40815
  for (; c0.value < ai; )
40816
40816
  for (C0(J0, w0, v0, c0), J0 = I0.c, w0 = I0.lc; w0 >= 14; ) {
40817
- const ci = J0 >> w0 - 14 & 16383, di = f0[ci];
40818
- if (di.len)
40819
- w0 -= di.len, ri(di.lit, S0, J0, w0, v0, c0, L0, F0, $0), J0 = P0.c, w0 = P0.lc;
40817
+ const ci = J0 >> w0 - 14 & 16383, hi = f0[ci];
40818
+ if (hi.len)
40819
+ w0 -= hi.len, ri(hi.lit, S0, J0, w0, v0, c0, L0, F0, $0), J0 = P0.c, w0 = P0.lc;
40820
40820
  else {
40821
- if (!di.p)
40821
+ if (!hi.p)
40822
40822
  throw new Error("hufDecode issues");
40823
40823
  let yi;
40824
- for (yi = 0; yi < di.lit; yi++) {
40825
- const Yi = r0(o0[di.p[yi]]);
40824
+ for (yi = 0; yi < hi.lit; yi++) {
40825
+ const Yi = r0(o0[hi.p[yi]]);
40826
40826
  for (; w0 < Yi && c0.value < ai; )
40827
40827
  C0(J0, w0, v0, c0), J0 = I0.c, w0 = I0.lc;
40828
- if (w0 >= Yi && a0(o0[di.p[yi]]) == (J0 >> w0 - Yi & (1 << Yi) - 1)) {
40829
- w0 -= Yi, ri(di.p[yi], S0, J0, w0, v0, c0, L0, F0, $0), J0 = P0.c, w0 = P0.lc;
40828
+ if (w0 >= Yi && a0(o0[hi.p[yi]]) == (J0 >> w0 - Yi & (1 << Yi) - 1)) {
40829
+ w0 -= Yi, ri(hi.p[yi], S0, J0, w0, v0, c0, L0, F0, $0), J0 = P0.c, w0 = P0.lc;
40830
40830
  break;
40831
40831
  }
40832
40832
  }
40833
- if (yi == di.lit)
40833
+ if (yi == hi.lit)
40834
40834
  throw new Error("hufDecode issues");
40835
40835
  }
40836
40836
  }
@@ -40897,36 +40897,36 @@ class EXRLoader extends DataTextureLoader {
40897
40897
  }
40898
40898
  function si(o0, f0, v0, c0, g0, S0) {
40899
40899
  let T0 = new DataView(S0.buffer);
40900
- const L0 = v0[o0.idx[0]].width, F0 = v0[o0.idx[0]].height, J0 = 3, w0 = Math.floor(L0 / 8), $0 = Math.ceil(L0 / 8), ai = Math.ceil(F0 / 8), li = L0 - ($0 - 1) * 8, ci = F0 - (ai - 1) * 8, di = { value: 0 }, yi = new Array(J0), Yi = new Array(J0), Ni = new Array(J0), Mi = new Array(J0), Li = new Array(J0);
40900
+ const L0 = v0[o0.idx[0]].width, F0 = v0[o0.idx[0]].height, J0 = 3, w0 = Math.floor(L0 / 8), $0 = Math.ceil(L0 / 8), ai = Math.ceil(F0 / 8), li = L0 - ($0 - 1) * 8, ci = F0 - (ai - 1) * 8, hi = { value: 0 }, yi = new Array(J0), Yi = new Array(J0), Ni = new Array(J0), Mi = new Array(J0), Li = new Array(J0);
40901
40901
  for (let Ii = 0; Ii < J0; ++Ii)
40902
40902
  Li[Ii] = f0[o0.idx[Ii]], yi[Ii] = Ii < 1 ? 0 : yi[Ii - 1] + $0 * ai, Yi[Ii] = new Float32Array(64), Ni[Ii] = new Uint16Array(64), Mi[Ii] = new Uint16Array($0 * 64);
40903
40903
  for (let Ii = 0; Ii < ai; ++Ii) {
40904
40904
  let Ei = 8;
40905
40905
  Ii == ai - 1 && (Ei = ci);
40906
40906
  let _i = 8;
40907
- for (let zi = 0; zi < $0; ++zi) {
40908
- zi == $0 - 1 && (_i = li);
40907
+ for (let Ui = 0; Ui < $0; ++Ui) {
40908
+ Ui == $0 - 1 && (_i = li);
40909
40909
  for (let Fi = 0; Fi < J0; ++Fi)
40910
- Ni[Fi].fill(0), Ni[Fi][0] = g0[yi[Fi]++], E0(di, c0, Ni[Fi]), U0(Ni[Fi], Yi[Fi]), ii(Yi[Fi]);
40910
+ Ni[Fi].fill(0), Ni[Fi][0] = g0[yi[Fi]++], E0(hi, c0, Ni[Fi]), U0(Ni[Fi], Yi[Fi]), ii(Yi[Fi]);
40911
40911
  ti(Yi);
40912
40912
  for (let Fi = 0; Fi < J0; ++Fi)
40913
- V0(Yi[Fi], Mi[Fi], zi * 64);
40913
+ V0(Yi[Fi], Mi[Fi], Ui * 64);
40914
40914
  }
40915
40915
  let Bi = 0;
40916
- for (let zi = 0; zi < J0; ++zi) {
40917
- const Fi = v0[o0.idx[zi]].type;
40916
+ for (let Ui = 0; Ui < J0; ++Ui) {
40917
+ const Fi = v0[o0.idx[Ui]].type;
40918
40918
  for (let ji = 8 * Ii; ji < 8 * Ii + Ei; ++ji) {
40919
- Bi = Li[zi][ji];
40919
+ Bi = Li[Ui][ji];
40920
40920
  for (let $i = 0; $i < w0; ++$i) {
40921
40921
  const Qi = $i * 64 + (ji & 7) * 8;
40922
- T0.setUint16(Bi + 0 * 2 * Fi, Mi[zi][Qi + 0], !0), T0.setUint16(Bi + 1 * 2 * Fi, Mi[zi][Qi + 1], !0), T0.setUint16(Bi + 2 * 2 * Fi, Mi[zi][Qi + 2], !0), T0.setUint16(Bi + 3 * 2 * Fi, Mi[zi][Qi + 3], !0), T0.setUint16(Bi + 4 * 2 * Fi, Mi[zi][Qi + 4], !0), T0.setUint16(Bi + 5 * 2 * Fi, Mi[zi][Qi + 5], !0), T0.setUint16(Bi + 6 * 2 * Fi, Mi[zi][Qi + 6], !0), T0.setUint16(Bi + 7 * 2 * Fi, Mi[zi][Qi + 7], !0), Bi += 8 * 2 * Fi;
40922
+ T0.setUint16(Bi + 0 * 2 * Fi, Mi[Ui][Qi + 0], !0), T0.setUint16(Bi + 1 * 2 * Fi, Mi[Ui][Qi + 1], !0), T0.setUint16(Bi + 2 * 2 * Fi, Mi[Ui][Qi + 2], !0), T0.setUint16(Bi + 3 * 2 * Fi, Mi[Ui][Qi + 3], !0), T0.setUint16(Bi + 4 * 2 * Fi, Mi[Ui][Qi + 4], !0), T0.setUint16(Bi + 5 * 2 * Fi, Mi[Ui][Qi + 5], !0), T0.setUint16(Bi + 6 * 2 * Fi, Mi[Ui][Qi + 6], !0), T0.setUint16(Bi + 7 * 2 * Fi, Mi[Ui][Qi + 7], !0), Bi += 8 * 2 * Fi;
40923
40923
  }
40924
40924
  }
40925
40925
  if (w0 != $0)
40926
40926
  for (let ji = 8 * Ii; ji < 8 * Ii + Ei; ++ji) {
40927
- const $i = Li[zi][ji] + 8 * w0 * 2 * Fi, Qi = w0 * 64 + (ji & 7) * 8;
40927
+ const $i = Li[Ui][ji] + 8 * w0 * 2 * Fi, Qi = w0 * 64 + (ji & 7) * 8;
40928
40928
  for (let Di = 0; Di < _i; ++Di)
40929
- T0.setUint16($i + Di * 2 * Fi, Mi[zi][Qi + Di], !0);
40929
+ T0.setUint16($i + Di * 2 * Fi, Mi[Ui][Qi + Di], !0);
40930
40930
  }
40931
40931
  }
40932
40932
  }
@@ -40938,10 +40938,10 @@ class EXRLoader extends DataTextureLoader {
40938
40938
  if (v0[Ii].type == 2)
40939
40939
  for (let _i = 0; _i < F0; ++_i) {
40940
40940
  const Bi = Li[Ii][_i];
40941
- for (let zi = 0; zi < L0; ++zi)
40942
- Ki[zi] = T0.getUint16(Bi + zi * 2 * Ei, !0);
40943
- for (let zi = 0; zi < L0; ++zi)
40944
- T0.setFloat32(Bi + zi * 2 * Ei, _0(Ki[zi]), !0);
40941
+ for (let Ui = 0; Ui < L0; ++Ui)
40942
+ Ki[Ui] = T0.getUint16(Bi + Ui * 2 * Ei, !0);
40943
+ for (let Ui = 0; Ui < L0; ++Ui)
40944
+ T0.setFloat32(Bi + Ui * 2 * Ei, _0(Ki[Ui]), !0);
40945
40945
  }
40946
40946
  }
40947
40947
  }
@@ -40990,7 +40990,7 @@ class EXRLoader extends DataTextureLoader {
40990
40990
  const f0 = o0.viewer, v0 = { value: o0.offset.value }, c0 = new Uint16Array(o0.columns * o0.lines * (o0.inputChannels.length * o0.type)), g0 = new Uint8Array(8192);
40991
40991
  let S0 = 0;
40992
40992
  const T0 = new Array(o0.inputChannels.length);
40993
- for (let ci = 0, di = o0.inputChannels.length; ci < di; ci++)
40993
+ for (let ci = 0, hi = o0.inputChannels.length; ci < hi; ci++)
40994
40994
  T0[ci] = {}, T0[ci].start = S0, T0[ci].end = T0[ci].start, T0[ci].nx = o0.columns, T0[ci].ny = o0.lines, T0[ci].size = o0.type, S0 += T0[ci].nx * T0[ci].ny * T0[ci].size;
40995
40995
  const L0 = O0(f0, v0), F0 = O0(f0, v0);
40996
40996
  if (F0 >= 8192)
@@ -41001,15 +41001,15 @@ class EXRLoader extends DataTextureLoader {
41001
41001
  const J0 = new Uint16Array(65536), w0 = n0(g0, J0), $0 = vi(f0, v0);
41002
41002
  Si(o0.array, f0, v0, $0, c0, S0);
41003
41003
  for (let ci = 0; ci < o0.inputChannels.length; ++ci) {
41004
- const di = T0[ci];
41004
+ const hi = T0[ci];
41005
41005
  for (let yi = 0; yi < T0[ci].size; ++yi)
41006
41006
  Vi(
41007
41007
  c0,
41008
- di.start + yi,
41009
- di.nx,
41010
- di.size,
41011
- di.ny,
41012
- di.nx * di.size,
41008
+ hi.start + yi,
41009
+ hi.nx,
41010
+ hi.size,
41011
+ hi.ny,
41012
+ hi.nx * hi.size,
41013
41013
  w0
41014
41014
  );
41015
41015
  }
@@ -41017,8 +41017,8 @@ class EXRLoader extends DataTextureLoader {
41017
41017
  let ai = 0;
41018
41018
  const li = new Uint8Array(c0.buffer.byteLength);
41019
41019
  for (let ci = 0; ci < o0.lines; ci++)
41020
- for (let di = 0; di < o0.inputChannels.length; di++) {
41021
- const yi = T0[di], Yi = yi.nx * yi.size, Ni = new Uint8Array(c0.buffer, yi.end * 2, Yi * 2);
41020
+ for (let hi = 0; hi < o0.inputChannels.length; hi++) {
41021
+ const yi = T0[hi], Yi = yi.nx * yi.size, Ni = new Uint8Array(c0.buffer, yi.end * 2, Yi * 2);
41022
41022
  li.set(Ni, ai), ai += Yi * 2, yi.end += Yi;
41023
41023
  }
41024
41024
  return new DataView(li.buffer);
@@ -41068,27 +41068,27 @@ class EXRLoader extends DataTextureLoader {
41068
41068
  const S0 = new Array();
41069
41069
  let T0 = O0(f0, v0) - 2;
41070
41070
  for (; T0 > 0; ) {
41071
- const di = bi(f0.buffer, v0), yi = ki(f0, v0), Yi = yi >> 2 & 3, Ni = (yi >> 4) - 1, Mi = new Int8Array([Ni])[0], Li = ki(f0, v0);
41071
+ const hi = bi(f0.buffer, v0), yi = ki(f0, v0), Yi = yi >> 2 & 3, Ni = (yi >> 4) - 1, Mi = new Int8Array([Ni])[0], Li = ki(f0, v0);
41072
41072
  S0.push({
41073
- name: di,
41073
+ name: hi,
41074
41074
  index: Mi,
41075
41075
  type: Li,
41076
41076
  compression: Yi
41077
- }), T0 -= di.length + 3;
41077
+ }), T0 -= hi.length + 3;
41078
41078
  }
41079
41079
  const L0 = nn.channels, F0 = new Array(o0.inputChannels.length);
41080
- for (let di = 0; di < o0.inputChannels.length; ++di) {
41081
- const yi = F0[di] = {}, Yi = L0[di];
41080
+ for (let hi = 0; hi < o0.inputChannels.length; ++hi) {
41081
+ const yi = F0[hi] = {}, Yi = L0[hi];
41082
41082
  yi.name = Yi.name, yi.compression = 0, yi.decoded = !1, yi.type = Yi.pixelType, yi.pLinear = Yi.pLinear, yi.width = o0.columns, yi.height = o0.lines;
41083
41083
  }
41084
41084
  const J0 = {
41085
41085
  idx: new Array(3)
41086
41086
  };
41087
- for (let di = 0; di < o0.inputChannels.length; ++di) {
41088
- const yi = F0[di];
41087
+ for (let hi = 0; hi < o0.inputChannels.length; ++hi) {
41088
+ const yi = F0[hi];
41089
41089
  for (let Yi = 0; Yi < S0.length; ++Yi) {
41090
41090
  const Ni = S0[Yi];
41091
- yi.name == Ni.name && (yi.compression = Ni.compression, Ni.index >= 0 && (J0.idx[Ni.index] = di), yi.offset = di);
41091
+ yi.name == Ni.name && (yi.compression = Ni.compression, Ni.index >= 0 && (J0.idx[Ni.index] = hi), yi.offset = hi);
41092
41092
  }
41093
41093
  }
41094
41094
  let w0, $0, ai;
@@ -41098,38 +41098,38 @@ class EXRLoader extends DataTextureLoader {
41098
41098
  w0 = new Uint16Array(g0.totalAcUncompressedCount), Si(o0.array, f0, v0, g0.acCompressedSize, w0, g0.totalAcUncompressedCount);
41099
41099
  break;
41100
41100
  case 1:
41101
- const di = o0.array.slice(v0.value, v0.value + g0.totalAcUncompressedCount), yi = unzlibSync(di);
41101
+ const hi = o0.array.slice(v0.value, v0.value + g0.totalAcUncompressedCount), yi = unzlibSync(hi);
41102
41102
  w0 = new Uint16Array(yi.buffer), v0.value += g0.totalAcUncompressedCount;
41103
41103
  break;
41104
41104
  }
41105
41105
  if (g0.dcCompressedSize > 0) {
41106
- const di = {
41106
+ const hi = {
41107
41107
  array: o0.array,
41108
41108
  offset: v0,
41109
41109
  size: g0.dcCompressedSize
41110
41110
  };
41111
- $0 = new Uint16Array(q0(di).buffer), v0.value += g0.dcCompressedSize;
41111
+ $0 = new Uint16Array(q0(hi).buffer), v0.value += g0.dcCompressedSize;
41112
41112
  }
41113
41113
  if (g0.rleRawSize > 0) {
41114
- const di = o0.array.slice(v0.value, v0.value + g0.rleCompressedSize), yi = unzlibSync(di);
41114
+ const hi = o0.array.slice(v0.value, v0.value + g0.rleCompressedSize), yi = unzlibSync(hi);
41115
41115
  ai = Xi(yi.buffer), v0.value += g0.rleCompressedSize;
41116
41116
  }
41117
41117
  let li = 0;
41118
41118
  const ci = new Array(F0.length);
41119
- for (let di = 0; di < ci.length; ++di)
41120
- ci[di] = new Array();
41121
- for (let di = 0; di < o0.lines; ++di)
41119
+ for (let hi = 0; hi < ci.length; ++hi)
41120
+ ci[hi] = new Array();
41121
+ for (let hi = 0; hi < o0.lines; ++hi)
41122
41122
  for (let yi = 0; yi < F0.length; ++yi)
41123
41123
  ci[yi].push(li), li += F0[yi].width * o0.type * 2;
41124
41124
  si(J0, ci, F0, w0, $0, c0);
41125
- for (let di = 0; di < F0.length; ++di) {
41126
- const yi = F0[di];
41125
+ for (let hi = 0; hi < F0.length; ++hi) {
41126
+ const yi = F0[hi];
41127
41127
  if (!yi.decoded)
41128
41128
  switch (yi.compression) {
41129
41129
  case 2:
41130
41130
  let Yi = 0, Ni = 0;
41131
41131
  for (let Mi = 0; Mi < o0.lines; ++Mi) {
41132
- let Li = ci[di][Yi];
41132
+ let Li = ci[hi][Yi];
41133
41133
  for (let Ki = 0; Ki < yi.width; ++Ki) {
41134
41134
  for (let Ii = 0; Ii < 2 * yi.type; ++Ii)
41135
41135
  c0[Li++] = ai[Ni + Ii * yi.width * yi.height];
@@ -41359,9 +41359,9 @@ class EXRLoader extends DataTextureLoader {
41359
41359
  for (let $0 = 0; $0 < o0.lines; $0++) {
41360
41360
  const ai = $0 * o0.columns * o0.totalBytes;
41361
41361
  for (let li = 0; li < o0.inputChannels.length; li++) {
41362
- const ci = nn.channels[li].name, di = o0.channelByteOffsets[ci] * o0.columns, yi = o0.decodeChannels[ci];
41362
+ const ci = nn.channels[li].name, hi = o0.channelByteOffsets[ci] * o0.columns, yi = o0.decodeChannels[ci];
41363
41363
  if (yi === void 0) continue;
41364
- v0.value = ai + di;
41364
+ v0.value = ai + hi;
41365
41365
  const Yi = (o0.height - (1 + L0 + $0)) * o0.outLineWidth;
41366
41366
  for (let Ni = 0; Ni < o0.columns; Ni++) {
41367
41367
  const Mi = Yi + (Ni + T0) * o0.outputChannels + yi;
@@ -41383,9 +41383,9 @@ class EXRLoader extends DataTextureLoader {
41383
41383
  if (w0 >= o0.height) continue;
41384
41384
  const $0 = F0 * S0, ai = (o0.height - 1 - w0) * o0.outLineWidth;
41385
41385
  for (let li = 0; li < o0.inputChannels.length; li++) {
41386
- const ci = nn.channels[li].name, di = o0.channelByteOffsets[ci] * o0.columns, yi = o0.decodeChannels[ci];
41386
+ const ci = nn.channels[li].name, hi = o0.channelByteOffsets[ci] * o0.columns, yi = o0.decodeChannels[ci];
41387
41387
  if (yi !== void 0) {
41388
- v0.value = $0 + di;
41388
+ v0.value = $0 + hi;
41389
41389
  for (let Yi = 0; Yi < o0.columns; Yi++) {
41390
41390
  const Ni = ai + Yi * o0.outputChannels + yi;
41391
41391
  o0.byteArray[Ni] = o0.getter(L0, v0);
@@ -41527,7 +41527,7 @@ class EXRLoader extends DataTextureLoader {
41527
41527
  S0.tileCount = $0[0] * ai[0];
41528
41528
  for (let li = 0; li < w0; li++)
41529
41529
  for (let ci = 0; ci < ai[li]; ci++)
41530
- for (let di = 0; di < $0[li]; di++)
41530
+ for (let hi = 0; hi < $0[li]; hi++)
41531
41531
  Ti(f0, c0);
41532
41532
  S0.decode = Xn.bind(S0);
41533
41533
  } else {
@@ -48994,7 +48994,7 @@ class AddObject extends Command {
48994
48994
  var f, de, Xe;
48995
48995
  this.obj = yield this.editor.viewport.vis.drawController.draw(
48996
48996
  this.objectType,
48997
- Ui(hi({}, this.objectOptions), {
48997
+ zi(di({}, this.objectOptions), {
48998
48998
  key: `${this.id}`
48999
48999
  })
49000
49000
  );
@@ -49289,18 +49289,25 @@ class History {
49289
49289
  return this.redos.length > 0 && (e = this.redos.pop()), e !== void 0 && (e.execute(), this.undos.push(e), this.editor.emit("historyChanged", e)), e;
49290
49290
  }
49291
49291
  toJSON() {
49292
- var s, r;
49292
+ var s;
49293
49293
  const e = {
49294
49294
  u: [],
49295
49295
  i: []
49296
49296
  };
49297
- for (let f = 0; f < this.undos.length; f++)
49298
- if (this.undos[f].hasOwnProperty("json")) {
49299
- const de = this.undos[f].json;
49300
- e.u.push(de), (s = de.newMap) != null && s.images && ((r = de.newMap) == null || r.images.forEach((Xe) => {
49301
- const Je = e.i.findIndex((Ke) => Ke === Xe.url);
49302
- Je === -1 ? (e.i.push(Xe.url), Xe.url = `$rp-${e.i.length - 1}`) : Xe.url = `$rp-${Je}`;
49303
- }));
49297
+ for (let r = 0; r < this.undos.length; r++)
49298
+ if (this.undos[r].hasOwnProperty("json")) {
49299
+ const f = this.undos[r].json;
49300
+ (s = f.newMap) != null && s.images ? e.u.push(zi(di({}, f), {
49301
+ newMap: zi(di({}, f.newMap), {
49302
+ images: f.newMap.images.map((de) => {
49303
+ const Xe = e.i.findIndex((Ke) => Ke === de.url);
49304
+ let Je = de.url;
49305
+ return Xe === -1 ? (e.i.push(de.url), Je = `$rp-${e.i.length - 1}`) : Je = `$rp-${Xe}`, zi(di({}, de), {
49306
+ url: Je
49307
+ });
49308
+ })
49309
+ })
49310
+ })) : e.u.push(di({}, f));
49304
49311
  }
49305
49312
  return e;
49306
49313
  }
@@ -49405,7 +49412,7 @@ class Viewport {
49405
49412
  }
49406
49413
  if (this.vis = this.options.visFactories, this.vis.visName !== e)
49407
49414
  throw new Error(`visName is not match, import {${e}}`);
49408
- this.vis.setOptions(hi(hi({}, s), this.extendsOptions)), this.delLoadObj && (this.vis.delLoadArr = this.delLoadObj), this.vis.playing = this.editor.playing, this.vis.on("loaderProgress", (Xe, Je) => {
49415
+ this.vis.setOptions(di(di({}, s), this.extendsOptions)), this.delLoadObj && (this.vis.delLoadArr = this.delLoadObj), this.vis.playing = this.editor.playing, this.vis.on("loaderProgress", (Xe, Je) => {
49409
49416
  this.editor.emit("progress", {
49410
49417
  type: "下载资源",
49411
49418
  value: Xe / Je * 100 | 0
@@ -49547,7 +49554,7 @@ const compareVersion = (c, e) => {
49547
49554
  }), c.h.u[0] && c.h.u[0].visType === "city" && (c.h.u[0].visOptions.jsonName || (c.h.u = [])), c.h.u[0] && c.h.u[0].visType === "map") {
49548
49555
  if (c.h.u[0].visOptions.geojson) {
49549
49556
  const { geojson: de, adcode: Xe, geojsonLite: Je } = c.h.u[0].visOptions;
49550
- c.h.u[0].visOptions = Ui(hi({}, c.h.u[0].visOptions), {
49557
+ c.h.u[0].visOptions = zi(di({}, c.h.u[0].visOptions), {
49551
49558
  geojsonMap: {
49552
49559
  [Xe]: de
49553
49560
  },
@@ -49558,7 +49565,7 @@ const compareVersion = (c, e) => {
49558
49565
  }
49559
49566
  if (c.h.u[0].visOptions.bbox) {
49560
49567
  const { bbox: de, bboxMap: Xe, adcode: Je } = c.h.u[0].visOptions;
49561
- c.h.u[0].visOptions = Ui(hi({}, c.h.u[0].visOptions), {
49568
+ c.h.u[0].visOptions = zi(di({}, c.h.u[0].visOptions), {
49562
49569
  bboxMap: Xe || {
49563
49570
  [Je]: de
49564
49571
  }
@@ -49566,7 +49573,7 @@ const compareVersion = (c, e) => {
49566
49573
  }
49567
49574
  if (c.h.u[0].visOptions.worldBg) {
49568
49575
  const { worldBg: de } = c.h.u[0].visOptions;
49569
- c.h.u[0].visOptions = Ui(hi({}, c.h.u[0].visOptions), {
49576
+ c.h.u[0].visOptions = zi(di({}, c.h.u[0].visOptions), {
49570
49577
  parentBg: de
49571
49578
  }), delete c.h.u[0].visOptions.worldBg;
49572
49579
  }
@@ -49639,7 +49646,7 @@ class Editor {
49639
49646
  { leading: !1 }
49640
49647
  ));
49641
49648
  k0(this, "_dispose", !1);
49642
- this.options = hi({
49649
+ this.options = di({
49643
49650
  assetsPrefix: "",
49644
49651
  processUndosMaxFrameTime: Number.MAX_VALUE
49645
49652
  }, e), this.events.setMaxListeners(9999999), this.viewport = new Viewport(this, {
@@ -50266,7 +50273,7 @@ const queryBenchmarks$1 = (c) => queryBenchmarks(c), detect = () => {
50266
50273
  const s = document.createElement("canvas"), r = s.toDataURL("image/webp").indexOf("data:image/webp") == 0, f = s.getContext("webgl"), de = f == null ? void 0 : f.getExtension("WEBGL_debug_renderer_info"), Xe = document.createElement("canvas").getContext("webgl2"), Je = typeof window.WebGL2RenderingContext != "undefined";
50267
50274
  let Ke = "";
50268
50275
  f && de && (Ke = f.getParameter(de.UNMASKED_RENDERER_WEBGL));
50269
- const Qe = !/SwiftShader/gi.test(Ke), _e = Ke.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i, "$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g, "").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/, "$1"), $e = queryBenchmarks$1(_e), qe = hi({
50276
+ const Qe = !/SwiftShader/gi.test(Ke), _e = Ke.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i, "$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g, "").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/, "$1"), $e = queryBenchmarks$1(_e), qe = di({
50270
50277
  WebP: r,
50271
50278
  WebGL: !!f,
50272
50279
  WebGL2: !!Xe,
@@ -50304,7 +50311,7 @@ class Base extends Event {
50304
50311
  k0(this, "tier0", !1);
50305
50312
  k0(this, "initSettingsObj");
50306
50313
  k0(this, "mouseButtonsActiveStore", null);
50307
- if (this.container = s.container, this.options = hi({
50314
+ if (this.container = s.container, this.options = di({
50308
50315
  assetsPrefix: "",
50309
50316
  editor: !0,
50310
50317
  logarithmicDepthBuffer: !0
@@ -50326,7 +50333,7 @@ class Base extends Event {
50326
50333
  this.visName = this.constructor.VisName;
50327
50334
  }
50328
50335
  setOptions(s) {
50329
- this.options = hi(hi({}, this.options), s);
50336
+ this.options = di(di({}, this.options), s);
50330
50337
  }
50331
50338
  get fromJSON() {
50332
50339
  return this.editor.fromJSON.bind(this.editor);
@@ -50358,10 +50365,10 @@ class Base extends Event {
50358
50365
  initPencil() {
50359
50366
  return ei(this, null, function* () {
50360
50367
  if (this.pencil) return;
50361
- this.pencilConfig = hi({}, this.pencilConfig), this.options.css2DContainer && (this.pencilConfig.css2DRendererParams = {
50368
+ this.pencilConfig = di({}, this.pencilConfig), this.options.css2DContainer && (this.pencilConfig.css2DRendererParams = {
50362
50369
  container: this.options.css2DContainer
50363
50370
  }), this.initPencilPlugin();
50364
- const s = new Vt$1(hi(hi(Ui(hi({
50371
+ const s = new Vt$1(di(di(zi(di({
50365
50372
  container: this.container,
50366
50373
  isdev: !this.playing && IS_DEV,
50367
50374
  stats: !this.playing && IS_DEV,
@@ -50445,7 +50452,7 @@ class Base extends Event {
50445
50452
  }));
50446
50453
  }
50447
50454
  initPencilPlugin() {
50448
- this.mList = new MaterialList(), this.loader = new Jl(hi({
50455
+ this.mList = new MaterialList(), this.loader = new Jl(di({
50449
50456
  prefix: this.options.assetsPrefix,
50450
50457
  simpleTexture4deleted: !0
50451
50458
  }, this.tier0 ? {
@@ -50477,7 +50484,7 @@ class Base extends Event {
50477
50484
  mouseWheel: Ts.DOLLY
50478
50485
  };
50479
50486
  this.settings = new Proxy(
50480
- Ui(hi(hi({}, this.initSettingsObj), s), {
50487
+ zi(di(di({}, this.initSettingsObj), s), {
50481
50488
  mouseNone: !1,
50482
50489
  viewportPadding: [0, 0, 0, 0]
50483
50490
  }),
@@ -93086,7 +93093,7 @@ const type = "FeatureCollection", features = [
93086
93093
  ], countriesExclATALite = {
93087
93094
  type,
93088
93095
  features
93089
- }, countriesJson = Ui(hi({}, countries), {
93096
+ }, countriesJson = zi(di({}, countries), {
93090
93097
  features: countries.features.map((c) => {
93091
93098
  if (c.properties.ISO_A2 === "CN") {
93092
93099
  const e = c.geometry.coordinates, s = [...json100000Lite.features[0].geometry.coordinates];
@@ -93098,15 +93105,15 @@ const type = "FeatureCollection", features = [
93098
93105
  //start 广西
93099
93106
  e[0][0][73]
93100
93107
  ]
93101
- ], Ui(hi({}, c), {
93102
- geometry: Ui(hi({}, c.geometry), {
93108
+ ], zi(di({}, c), {
93109
+ geometry: zi(di({}, c.geometry), {
93103
93110
  coordinates: s
93104
93111
  })
93105
93112
  });
93106
93113
  } else
93107
93114
  return c;
93108
93115
  })
93109
- }), countriesJsonExclATA = Ui(hi({}, countriesJson), {
93116
+ }), countriesJsonExclATA = zi(di({}, countriesJson), {
93110
93117
  features: countriesJson.features.filter(
93111
93118
  (c) => c.properties.ISO_A3 !== "ATA"
93112
93119
  )
@@ -93181,7 +93188,7 @@ let PlaneMap$1 = class extends C$1 {
93181
93188
  k0(this, "lineArr");
93182
93189
  k0(this, "mergeSideArea", null);
93183
93190
  k0(this, "extrudelineArr");
93184
- this.options = hi({
93191
+ this.options = di({
93185
93192
  areaGroup: !0,
93186
93193
  hasSide: !0,
93187
93194
  lineOffset: 0,
@@ -93212,7 +93219,7 @@ let PlaneMap$1 = class extends C$1 {
93212
93219
  target: this,
93213
93220
  key: i0
93214
93221
  });
93215
- return n0.userData = hi({}, t0), n0;
93222
+ return n0.userData = di({}, t0), n0;
93216
93223
  }))
93217
93224
  );
93218
93225
  this.groupArr = $t;
@@ -93339,14 +93346,14 @@ let PlaneMap$1 = class extends C$1 {
93339
93346
  },
93340
93347
  dt
93341
93348
  );
93342
- return r != null && r.castShadow && (Yt.object3d.castShadow = !0), Yt.userData = hi({}, st), Yt;
93349
+ return r != null && r.castShadow && (Yt.object3d.castShadow = !0), Yt.userData = di({}, st), Yt;
93343
93350
  }))
93344
93351
  );
93345
93352
  {
93346
93353
  const $e = yield Ke.geoGeometry("extrudePolygon", {
93347
93354
  mesaage: {
93348
93355
  coordinatesArr: Je.map(({ coords: st }) => st).flat(),
93349
- projection: hi({}, this.options.projection),
93356
+ projection: di({}, this.options.projection),
93350
93357
  topSegments: this.options.topSegments,
93351
93358
  bbox: f,
93352
93359
  depth: [this.options.depth],
@@ -93382,7 +93389,7 @@ let PlaneMap$1 = class extends C$1 {
93382
93389
  const { coords: Ke, properties: Qe } = de[0], _e = this.findGroup(this.getPropertiesKey(Qe)), $e = yield Je.draw("Group", {
93383
93390
  target: _e
93384
93391
  });
93385
- $e.userData = hi({}, Qe);
93392
+ $e.userData = di({}, Qe);
93386
93393
  const [qe, st] = yield Promise.all([
93387
93394
  Xe.geoGeometry("extrudePolygon", {
93388
93395
  mesaage: {
@@ -93455,7 +93462,7 @@ let PlaneMap$1 = class extends C$1 {
93455
93462
  },
93456
93463
  st
93457
93464
  );
93458
- return Wt.userData = hi({}, qe), Wt;
93465
+ return Wt.userData = di({}, qe), Wt;
93459
93466
  }))
93460
93467
  );
93461
93468
  {
@@ -93635,7 +93642,7 @@ class ContinentsBg extends C$1 {
93635
93642
  areaGroup: !1,
93636
93643
  // bbox: bboxworld,
93637
93644
  depth: s,
93638
- materialOptions: hi({}, de)
93645
+ materialOptions: di({}, de)
93639
93646
  },
93640
93647
  this
93641
93648
  );
@@ -93698,7 +93705,7 @@ class PlaneMap extends C$1 {
93698
93705
  k0(this, "areaArr", []);
93699
93706
  k0(this, "lineArr");
93700
93707
  k0(this, "extrudelineArr");
93701
- this.options = hi({
93708
+ this.options = di({
93702
93709
  depth: 2
93703
93710
  }, s);
93704
93711
  }
@@ -93717,7 +93724,7 @@ class PlaneMap extends C$1 {
93717
93724
  const { geojson: s, bbox: r } = this.options, f = this.geojson2Meta(s), de = this.pencil.getPlugin("worker"), Xe = this.pencil.getPlugin("draw"), Ke = yield this.pencil.getPlugin("loader").load("/1.png"), Qe = yield de.geoGeometry("extrudePolygon", {
93718
93725
  mesaage: {
93719
93726
  coordinatesArr: f.map(({ coords: Zt }) => Zt).flat(),
93720
- projection: hi({}, this.options.projection),
93727
+ projection: di({}, this.options.projection),
93721
93728
  topSegments: 100,
93722
93729
  bbox: r,
93723
93730
  depth: [this.options.depth],
@@ -93773,7 +93780,7 @@ class PlaneMap extends C$1 {
93773
93780
  }
93774
93781
  }
93775
93782
  }
93776
- const objs$4 = Ui(hi({}, objs$5), {
93783
+ const objs$4 = zi(di({}, objs$5), {
93777
93784
  PlaneMap: PlaneMap$1,
93778
93785
  ContinentsBg,
93779
93786
  Mountain: PlaneMap
@@ -93823,7 +93830,7 @@ const objs$4 = Ui(hi({}, objs$5), {
93823
93830
  });
93824
93831
  };
93825
93832
  }, world = (c) => {
93826
- if (c.initSettingsObj = hi({
93833
+ if (c.initSettingsObj = di({
93827
93834
  "测试板块颜色.color:::caId": "ffffff",
93828
93835
  "测试边框颜色.color:::caId": "ffffff",
93829
93836
  "测试边框宽度:::caId": 0,
@@ -93869,7 +93876,7 @@ const objs$4 = Ui(hi({}, objs$5), {
93869
93876
  });
93870
93877
  };
93871
93878
  }, china = (c) => {
93872
- c.initSettingsObj = hi({
93879
+ c.initSettingsObj = di({
93873
93880
  "测试板块颜色.color:::caId": "ffffff",
93874
93881
  "测试边框颜色.color:::caId": "ffffff",
93875
93882
  "测试边框宽度:::caId": 0,
@@ -94037,14 +94044,14 @@ const objs$4 = Ui(hi({}, objs$5), {
94037
94044
  setOptions(s) {
94038
94045
  const r = s.continentType;
94039
94046
  r && (s.center = centroidcontinents[r]);
94040
- const f = hi({
94047
+ const f = di({
94041
94048
  0: countriesJsonExclATA,
94042
94049
  1e5: r ? continents[r] : chinaJson
94043
94050
  }, s == null ? void 0 : s.geojsonMap);
94044
94051
  let de = {
94045
94052
  1e5: r ? continentsLiteJson[r] : json100000Lite
94046
94053
  };
94047
- const Xe = hi({
94054
+ const Xe = di({
94048
94055
  0: bboxworld,
94049
94056
  1e5: r ? bboxcontinents[r] : bbox100000
94050
94057
  }, s == null ? void 0 : s.bboxMap);
@@ -94056,7 +94063,7 @@ const objs$4 = Ui(hi({}, objs$5), {
94056
94063
  features: [Qe]
94057
94064
  };
94058
94065
  });
94059
- }), de = hi(hi({}, de), s == null ? void 0 : s.extrudeLineGeojsonMap), super.setOptions(Ui(hi({
94066
+ }), de = di(di({}, de), s == null ? void 0 : s.extrudeLineGeojsonMap), super.setOptions(zi(di({
94060
94067
  parentBg: !1,
94061
94068
  continents: "",
94062
94069
  continentsBg: !1,
@@ -94156,7 +94163,7 @@ const objs$4 = Ui(hi({}, objs$5), {
94156
94163
  bbox: Qe,
94157
94164
  depth: this.options.parentBgDepth,
94158
94165
  topSegments: this.options.parentBgTopSegments,
94159
- materialOptions: hi({}, _e)
94166
+ materialOptions: di({}, _e)
94160
94167
  }), qe = Je === 0 ? "world" : `${Je}`;
94161
94168
  $e.lineArr.forEach((st) => {
94162
94169
  st.object3d.name = "背景线", this.mList.setObject3d(st.object3d, qe + "line", {
@@ -94384,11 +94391,11 @@ const objs$4 = Ui(hi({}, objs$5), {
94384
94391
  }
94385
94392
  }), $e) return;
94386
94393
  let qe;
94387
- f.material ? n$1(f.material) ? qe = new MeshBasicMaterial(hi({}, f.material)) : qe = f.material : qe = new MeshBasicMaterial({
94394
+ f.material ? n$1(f.material) ? qe = new MeshBasicMaterial(di({}, f.material)) : qe = f.material : qe = new MeshBasicMaterial({
94388
94395
  color: "red"
94389
94396
  });
94390
94397
  let st;
94391
- f.lineMaterial ? n$1(f.lineMaterial) ? st = new it$1(hi({}, f.lineMaterial)) : st = f.lineMaterial : st = new it$1({
94398
+ f.lineMaterial ? n$1(f.lineMaterial) ? st = new it$1(di({}, f.lineMaterial)) : st = f.lineMaterial : st = new it$1({
94392
94399
  color: new Color$1("blue"),
94393
94400
  sizeAttenuation: 0,
94394
94401
  lineWidth: this.options.lineWidth
@@ -94619,7 +94626,7 @@ const objs$4 = Ui(hi({}, objs$5), {
94619
94626
  if (!this.options.showDistrict && this.getAdcodeShowLevel(s) === "city" && (rt = Zt, Zt = void 0), [rt, Zt].filter(Boolean).forEach((Tt) => {
94620
94627
  if (!Tt.features[0].properties.adcode && s !== 0) {
94621
94628
  const Jt = adcodeMap[s];
94622
- Tt.features[0].properties = Ui(hi(hi({}, Tt.features[0].properties), Jt), {
94629
+ Tt.features[0].properties = zi(di(di({}, Tt.features[0].properties), Jt), {
94623
94630
  center: [Jt.lng, Jt.lat]
94624
94631
  });
94625
94632
  }
@@ -94755,7 +94762,7 @@ const objs$4 = Ui(hi({}, objs$5), {
94755
94762
  depth: de,
94756
94763
  adcode: Xe
94757
94764
  }) {
94758
- const Ke = this.mList.getMaterialObj("plane"), Qe = hi({}, Ke), _e = yield this.drawController.draw(
94765
+ const Ke = this.mList.getMaterialObj("plane"), Qe = di({}, Ke), _e = yield this.drawController.draw(
94759
94766
  "PlaneMap",
94760
94767
  {
94761
94768
  geojson: s,
@@ -95376,7 +95383,7 @@ class CityPlane extends C$1 {
95376
95383
  k0(this, "options");
95377
95384
  k0(this, "plane");
95378
95385
  k0(this, "water");
95379
- this.options = hi({
95386
+ this.options = di({
95380
95387
  color: "#0C4557",
95381
95388
  map: null
95382
95389
  }, s);
@@ -95451,7 +95458,7 @@ class Building extends C$1 {
95451
95458
  k0(this, "worldPositionZ", {
95452
95459
  value: 0
95453
95460
  });
95454
- this.options = hi({}, s);
95461
+ this.options = di({}, s);
95455
95462
  }
95456
95463
  create() {
95457
95464
  return ei(this, null, function* () {
@@ -95593,7 +95600,7 @@ class Area extends C$1 {
95593
95600
  k0(this, "options");
95594
95601
  k0(this, "area", []);
95595
95602
  k0(this, "outJson", /* @__PURE__ */ new Map());
95596
- this.options = hi({}, s);
95603
+ this.options = di({}, s);
95597
95604
  }
95598
95605
  create() {
95599
95606
  return ei(this, null, function* () {
@@ -95617,8 +95624,8 @@ class Area extends C$1 {
95617
95624
  const Jt = lineString(Wt.geometry.coordinates[0]);
95618
95625
  if (booleanCrosses(Zt, Jt)) {
95619
95626
  const e0 = clipGeojson(Zt, Wt);
95620
- e0.features[0] && qe[Yt].push(Ui(hi({}, Wt), {
95621
- geometry: Ui(hi({}, Wt.geometry), {
95627
+ e0.features[0] && qe[Yt].push(zi(di({}, Wt), {
95628
+ geometry: zi(di({}, Wt.geometry), {
95622
95629
  coordinates: e0.features[0].geometry.coordinates
95623
95630
  })
95624
95631
  }));
@@ -95682,7 +95689,7 @@ class Road extends C$1 {
95682
95689
  k0(this, "outJson", /* @__PURE__ */ new Map());
95683
95690
  k0(this, "linePrimary", []);
95684
95691
  k0(this, "lineSecondary", []);
95685
- this.options = hi({}, s);
95692
+ this.options = di({}, s);
95686
95693
  }
95687
95694
  create() {
95688
95695
  return ei(this, null, function* () {
@@ -95708,8 +95715,8 @@ class Road extends C$1 {
95708
95715
  const $t = [
95709
95716
  Yt.geometry.coordinates[0].filter((e0) => booleanPointInPolygon$1(e0, vt))
95710
95717
  ];
95711
- return $t[0].length && st[rt].push(Ui(hi({}, Yt), {
95712
- geometry: Ui(hi({}, Yt.geometry), {
95718
+ return $t[0].length && st[rt].push(zi(di({}, Yt), {
95719
+ geometry: zi(di({}, Yt.geometry), {
95713
95720
  coordinates: $t
95714
95721
  })
95715
95722
  })), !0;
@@ -95897,7 +95904,7 @@ class Target extends C$1 {
95897
95904
  this.time.value += 0.01, this.offset.y -= 0.02;
95898
95905
  }
95899
95906
  }
95900
- const objs$3 = Ui(hi({}, objs$5), {
95907
+ const objs$3 = zi(di({}, objs$5), {
95901
95908
  PlaneMap: PlaneMap$1,
95902
95909
  ContinentsBg,
95903
95910
  Mountain: PlaneMap,
@@ -96157,7 +96164,7 @@ const objs$3 = Ui(hi({}, objs$5), {
96157
96164
  const de = adcodeMap[e].parent || 0, Xe = c.options.geojsonMap[de], Je = c.options.bboxMap[de], Ke = c.mList.getMaterialObj("parentPlane"), Qe = yield c.drawController.draw(
96158
96165
  "PlaneMap",
96159
96166
  {
96160
- geojson: Ui(hi({}, Xe), {
96167
+ geojson: zi(di({}, Xe), {
96161
96168
  features: Xe.features.filter((qe) => qe.properties.adcode !== e)
96162
96169
  }),
96163
96170
  projection: {
@@ -96169,7 +96176,7 @@ const objs$3 = Ui(hi({}, objs$5), {
96169
96176
  areaGroup: !1,
96170
96177
  bbox: Je,
96171
96178
  depth: 0.1,
96172
- materialOptions: hi({}, Ke)
96179
+ materialOptions: di({}, Ke)
96173
96180
  },
96174
96181
  c.group
96175
96182
  ), { min: _e, max: $e } = Qe.getSize();
@@ -96291,7 +96298,7 @@ class Map$1 extends Map$2 {
96291
96298
  });
96292
96299
  }
96293
96300
  setOptions(s) {
96294
- super.setOptions(hi({
96301
+ super.setOptions(di({
96295
96302
  polarAngle: 0.6690037180091797,
96296
96303
  mapDepth: [1, 0.3, 0.12],
96297
96304
  clickOusideBack: !0,
@@ -96301,7 +96308,7 @@ class Map$1 extends Map$2 {
96301
96308
  parentBg: !0,
96302
96309
  cityOnMap: !1,
96303
96310
  style: "map2"
96304
- }, s)), this.extendsOptions = Ui(hi({}, this.extendsOptions), {
96311
+ }, s)), this.extendsOptions = zi(di({}, this.extendsOptions), {
96305
96312
  mapDepth: () => this.options.mapDepth,
96306
96313
  clickOusideBack: this.options.clickOusideBack,
96307
96314
  clickHandleDrillDown: this.options.clickHandleDrillDown,
@@ -96423,13 +96430,13 @@ class Map$1 extends Map$2 {
96423
96430
  if (this.options.adcode !== 1e5) {
96424
96431
  const Wt = this.mList.getMaterialObj("parentPlane"), Yt = yield this.drawController.draw(
96425
96432
  "PlaneMap",
96426
- hi({
96427
- geojson: Ui(hi({}, Ke), {
96433
+ di({
96434
+ geojson: zi(di({}, Ke), {
96428
96435
  features: [
96429
96436
  ...Ke.features.filter((rt) => rt.properties.adcode !== s)
96430
96437
  ]
96431
96438
  }),
96432
- materialOptions: hi({}, Wt)
96439
+ materialOptions: di({}, Wt)
96433
96440
  }, _e),
96434
96441
  this.group
96435
96442
  );
@@ -96437,13 +96444,13 @@ class Map$1 extends Map$2 {
96437
96444
  }
96438
96445
  const $e = this.mList.getMaterialObj("worldPlane"), qe = yield this.drawController.draw(
96439
96446
  "PlaneMap",
96440
- hi({
96441
- geojson: Ui(hi({}, Ke), {
96447
+ di({
96448
+ geojson: zi(di({}, Ke), {
96442
96449
  features: [
96443
96450
  ...this.options.geojsonMap[0].features.filter((Wt) => Wt.properties.ISO_A3 !== "CHN")
96444
96451
  ]
96445
96452
  }),
96446
- materialOptions: hi({}, $e)
96453
+ materialOptions: di({}, $e)
96447
96454
  }, _e),
96448
96455
  this.group
96449
96456
  ), { min: st, max: dt } = qe.getSize();
@@ -96487,7 +96494,7 @@ class Map$1 extends Map$2 {
96487
96494
  depth: de,
96488
96495
  adcode: Xe
96489
96496
  }) {
96490
- const Ke = this.mapHistory.length === 0, Qe = this.mList.getMaterialObj("plane"), _e = hi({}, Qe);
96497
+ const Ke = this.mapHistory.length === 0, Qe = this.mList.getMaterialObj("plane"), _e = di({}, Qe);
96491
96498
  Ke || !_e.topMatTwo ? (_e.topMat = _e.topMatOne, _e.bgTopMat = _e.bgTopMatOne) : _e.topMat = _e.topMatTwo;
96492
96499
  let $e = s, qe = r;
96493
96500
  return this.options.cityOnMap && r && ($e = r, this.options.showCityOnMapInnerLine ? qe = s : qe = void 0), yield this.drawController.draw(
@@ -96511,7 +96518,7 @@ class Map$1 extends Map$2 {
96511
96518
  });
96512
96519
  }
96513
96520
  }
96514
- const objs$2 = Ui(hi({}, objs$5), {
96521
+ const objs$2 = zi(di({}, objs$5), {
96515
96522
  Building,
96516
96523
  Road,
96517
96524
  Area,
@@ -96701,7 +96708,7 @@ class City$1 extends Base {
96701
96708
  k0(this, "multiplyScalar", 1);
96702
96709
  }
96703
96710
  setOptions(s) {
96704
- super.setOptions(hi({
96711
+ super.setOptions(di({
96705
96712
  fitTo: !0,
96706
96713
  plane: !0,
96707
96714
  grey: !1,
@@ -97156,7 +97163,7 @@ const Wn = class Wn extends Map$1 {
97156
97163
  });
97157
97164
  }
97158
97165
  setOptions(s) {
97159
- super.setOptions(hi({
97166
+ super.setOptions(di({
97160
97167
  initCity: !1,
97161
97168
  clipOutShow: !0,
97162
97169
  allCity: !1,
@@ -97329,7 +97336,7 @@ class Earth$1 extends Sphere {
97329
97336
  constructor(s) {
97330
97337
  super();
97331
97338
  k0(this, "options");
97332
- this.options = hi({
97339
+ this.options = di({
97333
97340
  radius: 30
97334
97341
  }, s);
97335
97342
  }
@@ -97344,7 +97351,7 @@ class Countries extends C$1 {
97344
97351
  k0(this, "options");
97345
97352
  k0(this, "areaArr", []);
97346
97353
  k0(this, "lineArr", []);
97347
- this.options = hi({
97354
+ this.options = di({
97348
97355
  start: 30,
97349
97356
  depth: 1.4,
97350
97357
  lineOffset: 0.01,
@@ -97400,7 +97407,7 @@ class Countries extends C$1 {
97400
97407
  },
97401
97408
  this
97402
97409
  );
97403
- rt.userData = hi({}, Wt.properties), this.areaArr.push(rt);
97410
+ rt.userData = di({}, Wt.properties), this.areaArr.push(rt);
97404
97411
  })
97405
97412
  }),
97406
97413
  dt && Je.geoGeometry("conicLine", {
@@ -97419,7 +97426,7 @@ class Countries extends C$1 {
97419
97426
  },
97420
97427
  this
97421
97428
  );
97422
- rt.userData = hi({}, Wt.properties), this.lineArr.push(rt);
97429
+ rt.userData = di({}, Wt.properties), this.lineArr.push(rt);
97423
97430
  })
97424
97431
  })
97425
97432
  ].filter(Boolean)).flat()
@@ -97463,7 +97470,7 @@ class SphereShadow extends C$1 {
97463
97470
  constructor(s) {
97464
97471
  super();
97465
97472
  k0(this, "options");
97466
- this.options = hi({
97473
+ this.options = di({
97467
97474
  radius: 30
97468
97475
  }, s);
97469
97476
  }
@@ -97476,7 +97483,7 @@ class SphereShadow extends C$1 {
97476
97483
  });
97477
97484
  }
97478
97485
  }
97479
- const objs$1 = Ui(hi({}, objs$5), {
97486
+ const objs$1 = zi(di({}, objs$5), {
97480
97487
  Earth: Earth$1,
97481
97488
  Countries,
97482
97489
  SphereShadow
@@ -97486,7 +97493,7 @@ const objs$1 = Ui(hi({}, objs$5), {
97486
97493
  far: 1e3
97487
97494
  }
97488
97495
  }, chinaPlate = (c) => {
97489
- c.extendsOptions = Ui(hi({}, c.extendsOptions), {
97496
+ c.extendsOptions = zi(di({}, c.extendsOptions), {
97490
97497
  copyChinaPlane: c.options.copyChinaPlane
97491
97498
  }), c.loaderAdd = function() {
97492
97499
  const { loader: e } = this;
@@ -97694,7 +97701,7 @@ const objs$1 = Ui(hi({}, objs$5), {
97694
97701
  return this.map.areaArr;
97695
97702
  }
97696
97703
  setOptions(s) {
97697
- super.setOptions(hi({
97704
+ super.setOptions(di({
97698
97705
  mapDepth: 1.4,
97699
97706
  radius: 30,
97700
97707
  style: "chinaPlate",
@@ -97915,7 +97922,7 @@ class Earth extends Sphere {
97915
97922
  this.material = f, super.create(), this.pencil.installPlugins.get("materialList").setObject3d(this.object3d, "earth");
97916
97923
  }
97917
97924
  }
97918
- const objs = Ui(hi({}, objs$5), {
97925
+ const objs = zi(di({}, objs$5), {
97919
97926
  Earth
97920
97927
  }), PENCIL_CONFIG = {
97921
97928
  camera: {
@@ -97935,7 +97942,7 @@ const objs = Ui(hi({}, objs$5), {
97935
97942
  });
97936
97943
  }
97937
97944
  setOptions(s) {
97938
- super.setOptions(hi({}, s)), this.pencilConfig = PENCIL_CONFIG;
97945
+ super.setOptions(di({}, s)), this.pencilConfig = PENCIL_CONFIG;
97939
97946
  }
97940
97947
  loaderAdd() {
97941
97948
  this.loader.add([
@@ -98069,7 +98076,7 @@ const getMapConfig = (r, ...f) => ei(void 0, [r, ...f], function* (c, e = b, s)
98069
98076
  );
98070
98077
  const { res: qe } = yield jsonFetch(
98071
98078
  s + `/geojson/${_e || "json-lite"}/${e.adcode}.json`
98072
- ), st = bbox(qe), dt = e.adcode, Wt = Ui(hi({}, e), {
98079
+ ), st = bbox(qe), dt = e.adcode, Wt = zi(di({}, e), {
98073
98080
  geojsonMap: {
98074
98081
  [dt]: $e
98075
98082
  },
@@ -98113,7 +98120,7 @@ const getMapConfig = (r, ...f) => ei(void 0, [r, ...f], function* (c, e = b, s)
98113
98120
  }
98114
98121
  return r && (Wt.depthReference = r.depthReference || r.bboxMap[r.adcode]), Wt;
98115
98122
  }
98116
- return hi({}, e);
98123
+ return di({}, e);
98117
98124
  }), getCityConfig = (s, ...r) => ei(void 0, [s, ...r], function* (c, e = b) {
98118
98125
  const f = adcodeMap[c], de = yield window.fetch(e + `/geojson/json-lite/${c}.json`).then((Ke) => Ke.json()), Xe = bbox(de), { name: Je } = adcodeMap[c];
98119
98126
  return {