gl-draw 0.15.0-beta.4 → 0.15.0-beta.6

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.
@@ -1,15 +1,15 @@
1
- var At = Object.defineProperty, Mt = Object.defineProperties;
2
- var Rt = Object.getOwnPropertyDescriptors;
1
+ var St = Object.defineProperty, At = Object.defineProperties;
2
+ var Mt = Object.getOwnPropertyDescriptors;
3
3
  var Me = Object.getOwnPropertySymbols;
4
- var Dt = Object.prototype.hasOwnProperty, Ut = Object.prototype.propertyIsEnumerable;
5
- var Re = (h, e, t) => e in h ? At(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, U = (h, e) => {
4
+ var Rt = Object.prototype.hasOwnProperty, Dt = Object.prototype.propertyIsEnumerable;
5
+ var Re = (h, e, t) => e in h ? St(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, U = (h, e) => {
6
6
  for (var t in e || (e = {}))
7
- Dt.call(e, t) && Re(h, t, e[t]);
7
+ Rt.call(e, t) && Re(h, t, e[t]);
8
8
  if (Me)
9
9
  for (var t of Me(e))
10
- Ut.call(e, t) && Re(h, t, e[t]);
10
+ Dt.call(e, t) && Re(h, t, e[t]);
11
11
  return h;
12
- }, te = (h, e) => Mt(h, Rt(e));
12
+ }, te = (h, e) => At(h, Mt(e));
13
13
  var se = (h, e, t) => new Promise((s, i) => {
14
14
  var r = (l) => {
15
15
  try {
@@ -26,23 +26,23 @@ var se = (h, e, t) => new Promise((s, i) => {
26
26
  }, n = (l) => l.done ? s(l.value) : Promise.resolve(l.value).then(r, o);
27
27
  n((t = t.apply(h, e)).next());
28
28
  });
29
- import { WebGLRenderer as zt, Vector2 as B, Vector3 as I, PerspectiveCamera as kt, Matrix4 as W, Scene as nt, AxesHelper as De, CameraHelper as Ft, PointLightHelper as Nt, DirectionalLightHelper as jt, SpotLightHelper as It, HemisphereLightHelper as Ht, Box3 as at, Box3Helper as Ue, MathUtils as Bt, Vector4 as Vt, Quaternion as lt, Spherical as Yt, Sphere as Zt, Raycaster as ht, REVISION as Wt, Object3D as Gt, UniformsUtils as Kt, RawShaderMaterial as Xt, ShaderMaterial as $t, MeshBasicMaterial as qt, PointsMaterial as ct, SpriteMaterial as dt, Layers as Qt, WebGLRenderTarget as Jt, HalfFloatType as es, Loader as pt, Texture as fe, VideoTexture as mt, FileLoader as Se, LoadingManager as ts, DataTexture as ss, Mesh as ut, BufferGeometry as is } from "three";
30
- import { Timer as rs } from "three/examples/jsm/misc/Timer";
29
+ import { WebGLRenderer as Ut, Vector2 as B, Vector3 as I, PerspectiveCamera as zt, Matrix4 as W, Scene as nt, AxesHelper as De, CameraHelper as kt, PointLightHelper as Ft, DirectionalLightHelper as Nt, SpotLightHelper as Ht, HemisphereLightHelper as It, Box3 as at, Box3Helper as Ue, MathUtils as jt, Vector4 as Bt, Quaternion as lt, Spherical as Vt, Sphere as Yt, Raycaster as ht, REVISION as Zt, Object3D as Wt, UniformsUtils as Gt, RawShaderMaterial as Kt, ShaderMaterial as Xt, MeshBasicMaterial as $t, PointsMaterial as ct, SpriteMaterial as dt, Layers as qt, WebGLRenderTarget as Qt, HalfFloatType as Jt, Loader as pt, Texture as fe, VideoTexture as mt, FileLoader as Se, LoadingManager as es, DataTexture as ts, Mesh as ss } from "three";
30
+ import { Timer as is } from "three/examples/jsm/misc/Timer";
31
31
  import * as Ce from "@tweenjs/tween.js";
32
- import os from "deepmerge";
33
- import ns from "stats-gl";
34
- import { C as as, c as ls, i as hs } from "./isPlainObject.module.js";
35
- import { R as Pe, M as ft, B as cs, G as ze } from "./index.module2.js";
36
- import { RectAreaLightHelper as ds } from "three/examples/jsm/helpers/RectAreaLightHelper";
37
- import { ViewHelper as ps } from "three/examples/jsm/helpers/ViewHelper";
38
- import { TransformControls as ms } from "three/examples/jsm/controls/TransformControls";
32
+ import rs from "deepmerge";
33
+ import os from "stats-gl";
34
+ import { C as ns, c as as, i as ls } from "./isPlainObject.module.js";
35
+ import { R as Pe, M as ut, B as hs, G as ze } from "./index.module2.js";
36
+ import { RectAreaLightHelper as cs } from "three/examples/jsm/helpers/RectAreaLightHelper";
37
+ import { ViewHelper as ds } from "three/examples/jsm/helpers/ViewHelper";
38
+ import { TransformControls as ps } from "three/examples/jsm/controls/TransformControls";
39
39
  import { EffectComposer as ke } from "three/examples/jsm/postprocessing/EffectComposer";
40
- import { RenderPass as us } from "three/examples/jsm/postprocessing/RenderPass";
41
- import { SSAOPass as fs } from "three/examples/jsm/postprocessing/SSAOPass";
40
+ import { RenderPass as ms } from "three/examples/jsm/postprocessing/RenderPass";
41
+ import { SSAOPass as us } from "three/examples/jsm/postprocessing/SSAOPass";
42
42
  import { FullScreenQuad as Fe } from "three/examples/jsm/postprocessing/Pass";
43
- import { OutputPass as _s } from "three/examples/jsm/postprocessing/OutputPass";
44
- import { ShaderPass as gs } from "three/examples/jsm/postprocessing/ShaderPass";
45
- import { UnrealBloomPass as vs } from "three/examples/jsm/postprocessing/UnrealBloomPass";
43
+ import { OutputPass as fs } from "three/examples/jsm/postprocessing/OutputPass";
44
+ import { ShaderPass as _s } from "three/examples/jsm/postprocessing/ShaderPass";
45
+ import { UnrealBloomPass as gs } from "three/examples/jsm/postprocessing/UnrealBloomPass";
46
46
  import "three/examples/jsm/renderers/CSS2DRenderer";
47
47
  import "three/examples/jsm/renderers/CSS3DRenderer";
48
48
  import "d3-geo";
@@ -54,10 +54,10 @@ import "three/examples/jsm/lines/LineSegmentsGeometry";
54
54
  import "three/examples/jsm/lines/LineMaterial";
55
55
  import "three-bvh-csg";
56
56
  import { GLTFLoader as Ne } from "three/examples/jsm/loaders/GLTFLoader";
57
- import { DRACOLoader as ys } from "three/examples/jsm/loaders/DRACOLoader";
58
- import { EXRLoader as Cs } from "three/examples/jsm/loaders/EXRLoader";
59
- import { LottieLoader as Os } from "three/examples/jsm/loaders/LottieLoader";
60
- import { makePromiseCreator as Es, generateUUID as je } from "esus-lite";
57
+ import { DRACOLoader as vs } from "three/examples/jsm/loaders/DRACOLoader";
58
+ import { EXRLoader as ys } from "three/examples/jsm/loaders/EXRLoader";
59
+ import { LottieLoader as Cs } from "three/examples/jsm/loaders/LottieLoader";
60
+ import { makePromiseCreator as Os, generateUUID as He } from "esus-lite";
61
61
  const M = {
62
62
  LEFT: 1,
63
63
  RIGHT: 2,
@@ -92,20 +92,20 @@ const M = {
92
92
  function Y(h) {
93
93
  return h.isPerspectiveCamera;
94
94
  }
95
- function H(h) {
95
+ function j(h) {
96
96
  return h.isOrthographicCamera;
97
97
  }
98
- const K = Math.PI * 2, Ie = Math.PI / 2, _t = 1e-5, ie = Math.PI / 180;
98
+ const K = Math.PI * 2, Ie = Math.PI / 2, ft = 1e-5, ie = Math.PI / 180;
99
99
  function k(h, e, t) {
100
100
  return Math.max(e, Math.min(t, h));
101
101
  }
102
- function A(h, e = _t) {
102
+ function A(h, e = ft) {
103
103
  return Math.abs(h) < e;
104
104
  }
105
- function P(h, e, t = _t) {
105
+ function P(h, e, t = ft) {
106
106
  return A(h - e, t);
107
107
  }
108
- function He(h, e) {
108
+ function je(h, e) {
109
109
  return Math.round(h / e) * e;
110
110
  }
111
111
  function re(h) {
@@ -137,8 +137,8 @@ function Be(h, e, t, s, i = 1 / 0, r, o) {
137
137
  _ = h.x - v, p = h.y - m, O = h.z - u;
138
138
  const E = (t.x + n * v) * r, x = (t.y + n * m) * r, R = (t.z + n * u) * r;
139
139
  t.x = (t.x - n * E) * d, t.y = (t.y - n * x) * d, t.z = (t.z - n * R) * d, o.x = _ + (v + E) * d, o.y = p + (m + x) * d, o.z = O + (u + R) * d;
140
- const V = f - h.x, le = a - h.y, xt = g - h.z, Lt = o.x - f, Pt = o.y - a, St = o.z - g;
141
- return V * Lt + le * Pt + xt * St > 0 && (o.x = f, o.y = a, o.z = g, t.x = (o.x - f) / r, t.y = (o.y - a) / r, t.z = (o.z - g) / r), o;
140
+ const V = f - h.x, le = a - h.y, wt = g - h.z, xt = o.x - f, Lt = o.y - a, Pt = o.z - g;
141
+ return V * xt + le * Lt + wt * Pt > 0 && (o.x = f, o.y = a, o.z = g, t.x = (o.x - f) / r, t.y = (o.y - a) / r, t.z = (o.z - g) / r), o;
142
142
  }
143
143
  function Oe(h, e) {
144
144
  e.set(0, 0), h.forEach((t) => {
@@ -146,9 +146,9 @@ function Oe(h, e) {
146
146
  }), e.x /= h.length, e.y /= h.length;
147
147
  }
148
148
  function Ee(h, e) {
149
- return H(h) ? (console.warn(`${e} is not supported in OrthographicCamera`), !0) : !1;
149
+ return j(h) ? (console.warn(`${e} is not supported in OrthographicCamera`), !0) : !1;
150
150
  }
151
- class Ts {
151
+ class Es {
152
152
  constructor() {
153
153
  this._listeners = {};
154
154
  }
@@ -212,9 +212,9 @@ class Ts {
212
212
  }
213
213
  }
214
214
  }
215
- const ce = 1 / 8, bs = /Mac/.test(navigator.platform);
215
+ const ce = 1 / 8, Ts = /Mac/.test(navigator.platform);
216
216
  let T, Ve, de, Te, D, w, L, X, ne, F, N, Z, Ye, Ze, z, ae, $, We, be, Ge, we, xe, pe;
217
- class J extends Ts {
217
+ class J extends Es {
218
218
  static install(e) {
219
219
  T = e.THREE, Ve = Object.freeze(new T.Vector3(0, 0, 0)), de = Object.freeze(new T.Vector3(0, 1, 0)), Te = Object.freeze(new T.Vector3(0, 0, 1)), D = new T.Vector2(), w = new T.Vector3(), L = new T.Vector3(), X = new T.Vector3(), ne = new T.Vector3(), F = new T.Vector3(), N = new T.Vector3(), Z = new T.Vector3(), Ye = new T.Vector3(), Ze = new T.Vector3(), z = new T.Spherical(), ae = new T.Spherical(), $ = new T.Box3(), We = new T.Box3(), be = new T.Sphere(), Ge = new T.Quaternion(), we = new T.Quaternion(), xe = new T.Matrix4(), pe = new T.Raycaster();
220
220
  }
@@ -249,7 +249,7 @@ class J extends Ts {
249
249
  if (Y(this._camera)) {
250
250
  const x = w.copy(this._camera.position).sub(this._target), R = this._camera.getEffectiveFOV() * ie, V = x.length() * Math.tan(R * 0.5);
251
251
  b = this.truckSpeed * a * V / this._elementRect.height, E = this.truckSpeed * g * V / this._elementRect.height;
252
- } else if (H(this._camera)) {
252
+ } else if (j(this._camera)) {
253
253
  const x = this._camera;
254
254
  b = this.truckSpeed * a * (x.right - x.left) / x.zoom / this._elementRect.width, E = this.truckSpeed * g * (x.top - x.bottom) / x.zoom / this._elementRect.height;
255
255
  } else
@@ -297,10 +297,10 @@ class J extends Ts {
297
297
  left: c.ROTATE,
298
298
  middle: c.DOLLY,
299
299
  right: c.TRUCK,
300
- wheel: Y(this._camera) ? c.DOLLY : H(this._camera) ? c.ZOOM : c.NONE
300
+ wheel: Y(this._camera) ? c.DOLLY : j(this._camera) ? c.ZOOM : c.NONE
301
301
  }, this.touches = {
302
302
  one: c.TOUCH_ROTATE,
303
- two: Y(this._camera) ? c.TOUCH_DOLLY_TRUCK : H(this._camera) ? c.TOUCH_ZOOM_TRUCK : c.NONE,
303
+ two: Y(this._camera) ? c.TOUCH_DOLLY_TRUCK : j(this._camera) ? c.TOUCH_ZOOM_TRUCK : c.NONE,
304
304
  three: c.TOUCH_TRUCK
305
305
  };
306
306
  const s = new T.Vector2(), i = new T.Vector2(), r = new T.Vector2(), o = (a) => {
@@ -392,7 +392,7 @@ class J extends Ts {
392
392
  const E = performance.now();
393
393
  d - E < 1e3 && this._getClientRect(this._elementRect), d = E;
394
394
  }
395
- const g = bs ? -1 : -3, C = a.deltaMode === 1 || a.ctrlKey ? a.deltaY / g : a.deltaY / (g * 10), y = this.dollyToCursor ? (a.clientX - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, b = this.dollyToCursor ? (a.clientY - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
395
+ const g = Ts ? -1 : -3, C = a.deltaMode === 1 || a.ctrlKey ? a.deltaY / g : a.deltaY / (g * 10), y = this.dollyToCursor ? (a.clientX - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, b = this.dollyToCursor ? (a.clientY - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
396
396
  switch (this.mouseButtons.wheel) {
397
397
  case c.ROTATE: {
398
398
  this._rotateInternal(a.deltaX, a.deltaY), this._isUserControllingRotate = !0;
@@ -986,7 +986,7 @@ class J extends Ts {
986
986
  d.isEmpty() && (console.warn(
987
987
  "camera-controls: fitTo() cannot be used with an empty box. Aborting"
988
988
  ), Promise.resolve());
989
- const _ = He(this._sphericalEnd.theta, Ie), p = He(this._sphericalEnd.phi, Ie);
989
+ const _ = je(this._sphericalEnd.theta, Ie), p = je(this._sphericalEnd.phi, Ie);
990
990
  l.push(this.rotateTo(_, p, t));
991
991
  const O = w.setFromSpherical(this._sphericalEnd).normalize(), v = Ge.setFromUnitVectors(O, Te), m = P(Math.abs(O.y), 1);
992
992
  m && v.multiply(we.setFromAxisAngle(de, _)), v.multiply(this._yAxisUpSpaceInverse);
@@ -1003,7 +1003,7 @@ class J extends Ts {
1003
1003
  l.push(
1004
1004
  this.moveTo(a.x, a.y, a.z, t)
1005
1005
  ), l.push(this.dollyTo(g, t)), l.push(this.setFocalOffset(0, 0, 0, t));
1006
- } else if (H(this._camera)) {
1006
+ } else if (j(this._camera)) {
1007
1007
  const g = this._camera, C = g.right - g.left, y = g.top - g.bottom, b = s ? Math.max(C / f.x, y / f.y) : Math.min(C / f.x, y / f.y);
1008
1008
  l.push(
1009
1009
  this.moveTo(a.x, a.y, a.z, t)
@@ -1029,7 +1029,7 @@ class J extends Ts {
1029
1029
  ), Y(this._camera)) {
1030
1030
  const o = this.getDistanceToFitSphere(r.radius);
1031
1031
  s.push(this.dollyTo(o, t));
1032
- } else if (H(this._camera)) {
1032
+ } else if (j(this._camera)) {
1033
1033
  const o = this._camera.right - this._camera.left, n = this._camera.top - this._camera.bottom, l = 2 * r.radius, d = Math.min(o / l, n / l);
1034
1034
  s.push(this.zoomTo(d, t));
1035
1035
  }
@@ -1472,7 +1472,7 @@ class J extends Ts {
1472
1472
  this._boundary.clampPoint(y, y);
1473
1473
  const x = L.subVectors(y, this._targetEnd);
1474
1474
  this._targetEnd.copy(y), this._target.add(x), this._changedDolly -= p, A(this._changedDolly) && (this._changedDolly = 0);
1475
- } else if (H(this._camera) && this._changedZoom !== 0) {
1475
+ } else if (j(this._camera) && this._changedZoom !== 0) {
1476
1476
  const p = this._zoom - this._lastZoom, O = this._camera, v = w.set(
1477
1477
  this._dollyControlCoord.x,
1478
1478
  this._dollyControlCoord.y,
@@ -1607,7 +1607,7 @@ class J extends Ts {
1607
1607
  if (Y(this._camera)) {
1608
1608
  const e = this._camera, t = e.near, s = e.getEffectiveFOV() * ie, i = Math.tan(s * 0.5) * t, r = i * e.aspect;
1609
1609
  this._nearPlaneCorners[0].set(-r, -i, 0), this._nearPlaneCorners[1].set(r, -i, 0), this._nearPlaneCorners[2].set(r, i, 0), this._nearPlaneCorners[3].set(-r, i, 0);
1610
- } else if (H(this._camera)) {
1610
+ } else if (j(this._camera)) {
1611
1611
  const e = this._camera, t = 1 / e.zoom, s = e.left * t, i = e.right * t, r = e.top * t, o = e.bottom * t;
1612
1612
  this._nearPlaneCorners[0].set(s, r, 0), this._nearPlaneCorners[1].set(i, r, 0), this._nearPlaneCorners[2].set(i, o, 0), this._nearPlaneCorners[3].set(s, o, 0);
1613
1613
  }
@@ -1716,17 +1716,17 @@ Q && typeof Q.ownKeys == "function" ? ue = Q.ownKeys : Object.getOwnPropertySymb
1716
1716
  } : ue = function(e) {
1717
1717
  return Object.getOwnPropertyNames(e);
1718
1718
  };
1719
- function ws(h) {
1719
+ function bs(h) {
1720
1720
  console && console.warn && console.warn(h);
1721
1721
  }
1722
- var gt = Number.isNaN || function(e) {
1722
+ var _t = Number.isNaN || function(e) {
1723
1723
  return e !== e;
1724
1724
  };
1725
1725
  function S() {
1726
1726
  S.init.call(this);
1727
1727
  }
1728
1728
  Ae.exports = S;
1729
- Ae.exports.once = Ss;
1729
+ Ae.exports.once = Ps;
1730
1730
  S.EventEmitter = S;
1731
1731
  S.prototype._events = void 0;
1732
1732
  S.prototype._eventsCount = 0;
@@ -1742,7 +1742,7 @@ Object.defineProperty(S, "defaultMaxListeners", {
1742
1742
  return Xe;
1743
1743
  },
1744
1744
  set: function(h) {
1745
- if (typeof h != "number" || h < 0 || gt(h))
1745
+ if (typeof h != "number" || h < 0 || _t(h))
1746
1746
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + h + ".");
1747
1747
  Xe = h;
1748
1748
  }
@@ -1751,15 +1751,15 @@ S.init = function() {
1751
1751
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
1752
1752
  };
1753
1753
  S.prototype.setMaxListeners = function(e) {
1754
- if (typeof e != "number" || e < 0 || gt(e))
1754
+ if (typeof e != "number" || e < 0 || _t(e))
1755
1755
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
1756
1756
  return this._maxListeners = e, this;
1757
1757
  };
1758
- function vt(h) {
1758
+ function gt(h) {
1759
1759
  return h._maxListeners === void 0 ? S.defaultMaxListeners : h._maxListeners;
1760
1760
  }
1761
1761
  S.prototype.getMaxListeners = function() {
1762
- return vt(this);
1762
+ return gt(this);
1763
1763
  };
1764
1764
  S.prototype.emit = function(e) {
1765
1765
  for (var t = [], s = 1; s < arguments.length; s++) t.push(arguments[s]);
@@ -1781,11 +1781,11 @@ S.prototype.emit = function(e) {
1781
1781
  if (typeof l == "function")
1782
1782
  Ke(l, this, t);
1783
1783
  else
1784
- for (var d = l.length, _ = Tt(l, d), s = 0; s < d; ++s)
1784
+ for (var d = l.length, _ = Et(l, d), s = 0; s < d; ++s)
1785
1785
  Ke(_[s], this, t);
1786
1786
  return !0;
1787
1787
  };
1788
- function yt(h, e, t, s) {
1788
+ function vt(h, e, t, s) {
1789
1789
  var i, r, o;
1790
1790
  if (ge(t), r = h._events, r === void 0 ? (r = h._events = /* @__PURE__ */ Object.create(null), h._eventsCount = 0) : (r.newListener !== void 0 && (h.emit(
1791
1791
  "newListener",
@@ -1793,33 +1793,33 @@ function yt(h, e, t, s) {
1793
1793
  t.listener ? t.listener : t
1794
1794
  ), r = h._events), o = r[e]), o === void 0)
1795
1795
  o = r[e] = t, ++h._eventsCount;
1796
- else if (typeof o == "function" ? o = r[e] = s ? [t, o] : [o, t] : s ? o.unshift(t) : o.push(t), i = vt(h), i > 0 && o.length > i && !o.warned) {
1796
+ else if (typeof o == "function" ? o = r[e] = s ? [t, o] : [o, t] : s ? o.unshift(t) : o.push(t), i = gt(h), i > 0 && o.length > i && !o.warned) {
1797
1797
  o.warned = !0;
1798
1798
  var n = new Error("Possible EventEmitter memory leak detected. " + o.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
1799
- n.name = "MaxListenersExceededWarning", n.emitter = h, n.type = e, n.count = o.length, ws(n);
1799
+ n.name = "MaxListenersExceededWarning", n.emitter = h, n.type = e, n.count = o.length, bs(n);
1800
1800
  }
1801
1801
  return h;
1802
1802
  }
1803
1803
  S.prototype.addListener = function(e, t) {
1804
- return yt(this, e, t, !1);
1804
+ return vt(this, e, t, !1);
1805
1805
  };
1806
1806
  S.prototype.on = S.prototype.addListener;
1807
1807
  S.prototype.prependListener = function(e, t) {
1808
- return yt(this, e, t, !0);
1808
+ return vt(this, e, t, !0);
1809
1809
  };
1810
- function xs() {
1810
+ function ws() {
1811
1811
  if (!this.fired)
1812
1812
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
1813
1813
  }
1814
- function Ct(h, e, t) {
1815
- var s = { fired: !1, wrapFn: void 0, target: h, type: e, listener: t }, i = xs.bind(s);
1814
+ function yt(h, e, t) {
1815
+ var s = { fired: !1, wrapFn: void 0, target: h, type: e, listener: t }, i = ws.bind(s);
1816
1816
  return i.listener = t, s.wrapFn = i, i;
1817
1817
  }
1818
1818
  S.prototype.once = function(e, t) {
1819
- return ge(t), this.on(e, Ct(this, e, t)), this;
1819
+ return ge(t), this.on(e, yt(this, e, t)), this;
1820
1820
  };
1821
1821
  S.prototype.prependOnceListener = function(e, t) {
1822
- return ge(t), this.prependListener(e, Ct(this, e, t)), this;
1822
+ return ge(t), this.prependListener(e, yt(this, e, t)), this;
1823
1823
  };
1824
1824
  S.prototype.removeListener = function(e, t) {
1825
1825
  var s, i, r, o, n;
@@ -1837,7 +1837,7 @@ S.prototype.removeListener = function(e, t) {
1837
1837
  }
1838
1838
  if (r < 0)
1839
1839
  return this;
1840
- r === 0 ? s.shift() : Ls(s, r), s.length === 1 && (i[e] = s[0]), i.removeListener !== void 0 && this.emit("removeListener", e, n || t);
1840
+ r === 0 ? s.shift() : xs(s, r), s.length === 1 && (i[e] = s[0]), i.removeListener !== void 0 && this.emit("removeListener", e, n || t);
1841
1841
  }
1842
1842
  return this;
1843
1843
  };
@@ -1861,24 +1861,24 @@ S.prototype.removeAllListeners = function(e) {
1861
1861
  this.removeListener(e, t[i]);
1862
1862
  return this;
1863
1863
  };
1864
- function Ot(h, e, t) {
1864
+ function Ct(h, e, t) {
1865
1865
  var s = h._events;
1866
1866
  if (s === void 0)
1867
1867
  return [];
1868
1868
  var i = s[e];
1869
- return i === void 0 ? [] : typeof i == "function" ? t ? [i.listener || i] : [i] : t ? Ps(i) : Tt(i, i.length);
1869
+ return i === void 0 ? [] : typeof i == "function" ? t ? [i.listener || i] : [i] : t ? Ls(i) : Et(i, i.length);
1870
1870
  }
1871
1871
  S.prototype.listeners = function(e) {
1872
- return Ot(this, e, !0);
1872
+ return Ct(this, e, !0);
1873
1873
  };
1874
1874
  S.prototype.rawListeners = function(e) {
1875
- return Ot(this, e, !1);
1875
+ return Ct(this, e, !1);
1876
1876
  };
1877
1877
  S.listenerCount = function(h, e) {
1878
- return typeof h.listenerCount == "function" ? h.listenerCount(e) : Et.call(h, e);
1878
+ return typeof h.listenerCount == "function" ? h.listenerCount(e) : Ot.call(h, e);
1879
1879
  };
1880
- S.prototype.listenerCount = Et;
1881
- function Et(h) {
1880
+ S.prototype.listenerCount = Ot;
1881
+ function Ot(h) {
1882
1882
  var e = this._events;
1883
1883
  if (e !== void 0) {
1884
1884
  var t = e[h];
@@ -1892,22 +1892,22 @@ function Et(h) {
1892
1892
  S.prototype.eventNames = function() {
1893
1893
  return this._eventsCount > 0 ? ue(this._events) : [];
1894
1894
  };
1895
- function Tt(h, e) {
1895
+ function Et(h, e) {
1896
1896
  for (var t = new Array(e), s = 0; s < e; ++s)
1897
1897
  t[s] = h[s];
1898
1898
  return t;
1899
1899
  }
1900
- function Ls(h, e) {
1900
+ function xs(h, e) {
1901
1901
  for (; e + 1 < h.length; e++)
1902
1902
  h[e] = h[e + 1];
1903
1903
  h.pop();
1904
1904
  }
1905
- function Ps(h) {
1905
+ function Ls(h) {
1906
1906
  for (var e = new Array(h.length), t = 0; t < e.length; ++t)
1907
1907
  e[t] = h[t].listener || h[t];
1908
1908
  return e;
1909
1909
  }
1910
- function Ss(h, e) {
1910
+ function Ps(h, e) {
1911
1911
  return new Promise(function(t, s) {
1912
1912
  function i(o) {
1913
1913
  h.removeListener(e, r), s(o);
@@ -1915,13 +1915,13 @@ function Ss(h, e) {
1915
1915
  function r() {
1916
1916
  typeof h.removeListener == "function" && h.removeListener("error", i), t([].slice.call(arguments));
1917
1917
  }
1918
- bt(h, e, r, { once: !0 }), e !== "error" && As(h, i, { once: !0 });
1918
+ Tt(h, e, r, { once: !0 }), e !== "error" && Ss(h, i, { once: !0 });
1919
1919
  });
1920
1920
  }
1921
- function As(h, e, t) {
1922
- typeof h.on == "function" && bt(h, "error", e, t);
1921
+ function Ss(h, e, t) {
1922
+ typeof h.on == "function" && Tt(h, "error", e, t);
1923
1923
  }
1924
- function bt(h, e, t, s) {
1924
+ function Tt(h, e, t, s) {
1925
1925
  if (typeof h.on == "function")
1926
1926
  s.once ? h.once(e, t) : h.on(e, t);
1927
1927
  else if (typeof h.addEventListener == "function")
@@ -1932,19 +1932,19 @@ function bt(h, e, t, s) {
1932
1932
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof h);
1933
1933
  }
1934
1934
  var ve = Ae.exports;
1935
- const Ms = {
1935
+ const As = {
1936
1936
  antialias: !1,
1937
1937
  devicePixelRatio: window.devicePixelRatio,
1938
1938
  powerPreference: "high-performance",
1939
1939
  toneMappingExposure: 1,
1940
1940
  alpha: !1,
1941
- outputColorSpace: as.sRGB,
1941
+ outputColorSpace: ns.sRGB,
1942
1942
  logarithmicDepthBuffer: !1,
1943
1943
  preserveDrawingBuffer: !1,
1944
1944
  stencil: !1,
1945
1945
  depth: !1
1946
1946
  };
1947
- class Rs {
1947
+ class Ms {
1948
1948
  constructor(e) {
1949
1949
  this.options = e;
1950
1950
  const { width: t, height: s, rendererParams: i } = e, {
@@ -1958,7 +1958,7 @@ class Rs {
1958
1958
  preserveDrawingBuffer: O,
1959
1959
  stencil: v,
1960
1960
  depth: m
1961
- } = i, u = new zt({
1961
+ } = i, u = new Ut({
1962
1962
  alpha: r,
1963
1963
  antialias: n,
1964
1964
  powerPreference: l,
@@ -1997,11 +1997,11 @@ class Rs {
1997
1997
  this.setSize(1, 1), (e = this.renderer) == null || e.clear(), (t = this.renderer) == null || t.dispose();
1998
1998
  }
1999
1999
  }
2000
- const Ds = {
2000
+ const Rs = {
2001
2001
  antialias: !0,
2002
2002
  devicePixelRatio: window.devicePixelRatio
2003
2003
  };
2004
- class Us {
2004
+ class Ds {
2005
2005
  constructor(e) {
2006
2006
  this.options = e;
2007
2007
  const { width: t, height: s, rendererParams: i, renderer: r } = e, { devicePixelRatio: o, antialias: n } = i, l = new r({
@@ -2020,7 +2020,7 @@ class Us {
2020
2020
  this.setSize(1, 1), (e = this.renderer) == null || e.clear(), (t = this.renderer) == null || t.dispose();
2021
2021
  }
2022
2022
  }
2023
- let zs = class {
2023
+ let Us = class {
2024
2024
  constructor() {
2025
2025
  this.mask = 1;
2026
2026
  }
@@ -2051,7 +2051,7 @@ class ee {
2051
2051
  this.event = new ve.EventEmitter(), this.controllerMap = /* @__PURE__ */ new Map(), this.activeIndex = -1, this.activeControllerSet = /* @__PURE__ */ new Set();
2052
2052
  }
2053
2053
  addController(e, t) {
2054
- const s = new zs();
2054
+ const s = new Us();
2055
2055
  return s.disableAll(), t !== void 0 && s.set(t), this.controllerMap.set(e, s), t === this.activeIndex && this.activeControllerSet.add(e), e;
2056
2056
  }
2057
2057
  removePage(e, t) {
@@ -2079,21 +2079,21 @@ class ee {
2079
2079
  }), this.removePage(0), this.controllerMap.clear(), this.event.removeAllListeners(), this.activeControllerSet.clear();
2080
2080
  }
2081
2081
  }
2082
- const wt = {
2082
+ const bt = {
2083
2083
  fov: 45,
2084
2084
  near: 1,
2085
2085
  far: 1e3,
2086
2086
  up: new I(0, 1, 0)
2087
2087
  };
2088
- class ks extends ee {
2088
+ class zs extends ee {
2089
2089
  constructor(e) {
2090
2090
  super(), this.width = 0, this.height = 0, this.width = e.width, this.height = e.height;
2091
2091
  }
2092
2092
  get camera() {
2093
2093
  return this.controller;
2094
2094
  }
2095
- addPerspectiveCamera(e = wt, t) {
2096
- const { fov: s, far: i, near: r, up: o, aspect: n } = e, l = n != null ? n : this.width / this.height, d = new kt(s, l, r, i);
2095
+ addPerspectiveCamera(e = bt, t) {
2096
+ const { fov: s, far: i, near: r, up: o, aspect: n } = e, l = n != null ? n : this.width / this.height, d = new zt(s, l, r, i);
2097
2097
  return d.up = o, this.addController(d, t);
2098
2098
  }
2099
2099
  setPageActive(e) {
@@ -2165,10 +2165,10 @@ class ks extends ee {
2165
2165
  }
2166
2166
  }
2167
2167
  }
2168
- const Fs = {
2168
+ const ks = {
2169
2169
  background: null
2170
2170
  };
2171
- class Ns extends ee {
2171
+ class Fs extends ee {
2172
2172
  get scene() {
2173
2173
  return this.controller;
2174
2174
  }
@@ -2191,7 +2191,7 @@ class Ns extends ee {
2191
2191
  });
2192
2192
  }
2193
2193
  }
2194
- class js {
2194
+ class Ns {
2195
2195
  constructor(e) {
2196
2196
  this.helpers = {}, this.options = e;
2197
2197
  }
@@ -2202,17 +2202,17 @@ class js {
2202
2202
  if (e.isScene)
2203
2203
  i = new De(100);
2204
2204
  else if (e.isCamera)
2205
- i = new Ft(e);
2205
+ i = new kt(e);
2206
2206
  else if (e.isPointLight)
2207
- i = new Nt(e, 1);
2207
+ i = new Ft(e, 1);
2208
2208
  else if (e.isDirectionalLight)
2209
- i = new jt(e, 1);
2209
+ i = new Nt(e, 1);
2210
2210
  else if (e.isSpotLight)
2211
- i = new It(e);
2211
+ i = new Ht(e);
2212
2212
  else if (e.isHemisphereLight)
2213
- i = new Ht(e, 10);
2213
+ i = new It(e, 10);
2214
2214
  else if (e.isRectAreaLight)
2215
- i = new ds(e);
2215
+ i = new cs(e);
2216
2216
  else {
2217
2217
  const r = new at();
2218
2218
  if (r.setFromObject(e, !0), r.isEmpty() === !1) {
@@ -2226,7 +2226,7 @@ class js {
2226
2226
  }
2227
2227
  }
2228
2228
  addViewHelper() {
2229
- const { cameraController: e, container: t } = this.options, s = new ps(e.camera, t);
2229
+ const { cameraController: e, container: t } = this.options, s = new ds(e.camera, t);
2230
2230
  t.addEventListener("pointerdown", (i) => {
2231
2231
  i.preventDefault(), s.handleClick(i);
2232
2232
  }), this.viewHelper = s;
@@ -2276,18 +2276,18 @@ class js {
2276
2276
  this.helpers = {}, (e = this.viewHelper) == null || e.dispose();
2277
2277
  }
2278
2278
  }
2279
- class Is extends ee {
2279
+ class Hs extends ee {
2280
2280
  constructor(e) {
2281
2281
  super(), this.autoRotateSpeed = 0, this.options = e;
2282
2282
  const t = {
2283
2283
  Vector2: B,
2284
2284
  Vector3: I,
2285
- Vector4: Vt,
2285
+ Vector4: Bt,
2286
2286
  Quaternion: lt,
2287
2287
  Matrix4: W,
2288
- Spherical: Yt,
2288
+ Spherical: Vt,
2289
2289
  Box3: at,
2290
- Sphere: Zt,
2290
+ Sphere: Yt,
2291
2291
  Raycaster: ht
2292
2292
  };
2293
2293
  J.install({ THREE: t });
@@ -2320,19 +2320,19 @@ class Is extends ee {
2320
2320
  });
2321
2321
  }
2322
2322
  update(e, t) {
2323
- super.update(e, t), this.autoRotateSpeed && this.cameraControls && (this.cameraControls.azimuthAngle += this.autoRotateSpeed * e * Bt.DEG2RAD);
2323
+ super.update(e, t), this.autoRotateSpeed && this.cameraControls && (this.cameraControls.azimuthAngle += this.autoRotateSpeed * e * jt.DEG2RAD);
2324
2324
  }
2325
2325
  }
2326
- class Hs {
2326
+ class Is {
2327
2327
  constructor(e) {
2328
2328
  this.event = new ve.EventEmitter();
2329
- const { renderer: t, scene: s, camera: i } = e, r = new ms(
2329
+ const { renderer: t, scene: s, camera: i } = e, r = new ps(
2330
2330
  i,
2331
2331
  t.domElement
2332
2332
  );
2333
2333
  if (r.getHelper) {
2334
2334
  const o = r.getHelper();
2335
- if (s.add(o), +Wt < 170) {
2335
+ if (s.add(o), +Zt < 170) {
2336
2336
  const n = r._root;
2337
2337
  n.dispose = () => {
2338
2338
  n.traverse((l) => {
@@ -2342,7 +2342,7 @@ class Hs {
2342
2342
  r.disconnect(), n.dispose();
2343
2343
  };
2344
2344
  }
2345
- } else r instanceof Gt && s.add(r);
2345
+ } else r instanceof Wt && s.add(r);
2346
2346
  this.controls = r, this.addEvent();
2347
2347
  }
2348
2348
  get detach() {
@@ -2392,8 +2392,8 @@ class Hs {
2392
2392
  this.event.removeAllListeners(), (e = this.controls) == null || e.dispose();
2393
2393
  }
2394
2394
  }
2395
- const $e = new I(), Bs = new lt(), qe = new I(), j = new W(), Vs = new W();
2396
- class Ys {
2395
+ const $e = new I(), js = new lt(), qe = new I(), H = new W(), Bs = new W();
2396
+ class Vs {
2397
2397
  /**
2398
2398
  * Constructs a new CSS3D renderer.
2399
2399
  *
@@ -2451,7 +2451,7 @@ class Ys {
2451
2451
  if (b.style.display = y === !0 ? "" : "none", y === !0) {
2452
2452
  f.onBeforeRender(t, a, g);
2453
2453
  let E;
2454
- f.isCSS3DSprite ? (j.copy(g.matrixWorldInverse), j.transpose(), f.rotation2D !== 0 && j.multiply(Vs.makeRotationZ(f.rotation2D)), f.matrixWorld.decompose($e, Bs, qe), j.setPosition($e), j.scale(qe), j.elements[3] = 0, j.elements[7] = 0, j.elements[11] = 0, j.elements[15] = 1, E = v(j)) : E = v(f.matrixWorld);
2454
+ f.isCSS3DSprite ? (H.copy(g.matrixWorldInverse), H.transpose(), f.rotation2D !== 0 && H.multiply(Bs.makeRotationZ(f.rotation2D)), f.matrixWorld.decompose($e, js, qe), H.setPosition($e), H.scale(qe), H.elements[3] = 0, H.elements[7] = 0, H.elements[11] = 0, H.elements[15] = 1, E = v(H)) : E = v(f.matrixWorld);
2455
2455
  const x = n.objects.get(f);
2456
2456
  if (x === void 0 || x.style !== E) {
2457
2457
  b.style.transform = E;
@@ -2467,7 +2467,7 @@ class Ys {
2467
2467
  }
2468
2468
  }
2469
2469
  const q = new I(), Qe = new W(), Je = new W(), et = new I(), tt = new I();
2470
- class Zs {
2470
+ class Ys {
2471
2471
  /**
2472
2472
  * Constructs a new CSS2D renderer.
2473
2473
  *
@@ -2535,12 +2535,12 @@ class Zs {
2535
2535
  const st = {
2536
2536
  zIndex: "auto"
2537
2537
  };
2538
- class Ws {
2538
+ class Zs {
2539
2539
  constructor(e) {
2540
2540
  this.container = e;
2541
2541
  }
2542
2542
  addRenderer(e, t) {
2543
- const s = t.container || this.container, i = s.offsetWidth, r = s.offsetHeight, o = e === "css2d" ? new Zs() : new Ys();
2543
+ const s = t.container || this.container, i = s.offsetWidth, r = s.offsetHeight, o = e === "css2d" ? new Ys() : new Vs();
2544
2544
  o.domElement.style.position = "absolute", o.domElement.style.top = "0", o.domElement.style.pointerEvents = "none", o.domElement.style.zIndex = t.zIndex, o.setSize(i, r), s.appendChild(o.domElement), e === "css2d" ? this.css2Drenderer = o : e === "css3d" && (this.css3Drenderer = o);
2545
2545
  }
2546
2546
  setSize(e, t) {
@@ -2556,7 +2556,7 @@ class Ws {
2556
2556
  (e = this.css2Drenderer) == null || e.domElement.remove(), (t = this.css3Drenderer) == null || t.domElement.remove(), this.css2Drenderer = void 0, this.css3Drenderer = void 0;
2557
2557
  }
2558
2558
  }
2559
- const Gs = {
2559
+ const Ws = {
2560
2560
  name: "OutputShader",
2561
2561
  uniforms: {
2562
2562
  tDiffuse: { value: null },
@@ -2650,11 +2650,11 @@ const Gs = {
2650
2650
  }`
2651
2651
  )
2652
2652
  };
2653
- class Ks extends _s {
2653
+ class Gs extends fs {
2654
2654
  constructor() {
2655
2655
  super();
2656
- const e = Gs;
2657
- this.uniforms = Kt.clone(e.uniforms), this.material = new Xt({
2656
+ const e = Ws;
2657
+ this.uniforms = Gt.clone(e.uniforms), this.material = new Kt({
2658
2658
  name: e.name,
2659
2659
  uniforms: this.uniforms,
2660
2660
  vertexShader: e.vertexShader,
@@ -2662,9 +2662,9 @@ class Ks extends _s {
2662
2662
  }), this.fsQuad ? this.fsQuad = new Fe(this.material) : this._fsQuad && (this._fsQuad = new Fe(this.material));
2663
2663
  }
2664
2664
  }
2665
- const Xs = (h) => {
2666
- const e = new gs(
2667
- new $t({
2665
+ const Ks = (h) => {
2666
+ const e = new _s(
2667
+ new Xt({
2668
2668
  uniforms: {
2669
2669
  baseTexture: { value: null },
2670
2670
  bloomTexture: { value: h.renderTarget2.texture },
@@ -2698,38 +2698,38 @@ const Xs = (h) => {
2698
2698
  "baseTexture"
2699
2699
  );
2700
2700
  return e.needsSwap = !0, e;
2701
- }, Le = 1, me = !1, $s = new qt({ color: "black" }), qs = new ct({
2701
+ }, Le = 1, me = !1, Xs = new $t({ color: "black" }), $s = new ct({
2702
2702
  color: "black",
2703
2703
  sizeAttenuation: !1
2704
- }), Qs = new ct({
2704
+ }), qs = new ct({
2705
2705
  color: "black",
2706
2706
  sizeAttenuation: !0
2707
- }), Js = new dt({
2707
+ }), Qs = new dt({
2708
2708
  color: "black",
2709
2709
  sizeAttenuation: !0
2710
- }), ei = new dt({
2710
+ }), Js = new dt({
2711
2711
  color: "black",
2712
2712
  sizeAttenuation: !1
2713
- }), ti = new ft({
2713
+ }), ei = new ut({
2714
2714
  color: "black",
2715
2715
  sizeAttenuation: 0,
2716
2716
  lineWidth: 0
2717
- }), si = {
2717
+ }), ti = {
2718
2718
  kernelRadius: 8,
2719
2719
  minDistance: 5e-3,
2720
2720
  maxDistance: 0.1
2721
- }, ii = {
2721
+ }, si = {
2722
2722
  threshold: 0,
2723
2723
  strength: 0.4,
2724
2724
  radius: 0.1,
2725
2725
  bloomAlphaType: 0
2726
- }, ri = {
2726
+ }, ii = {
2727
2727
  multisampling: 4,
2728
2728
  premultiplieAlpha: !1
2729
2729
  };
2730
- class oi {
2730
+ class ri {
2731
2731
  constructor(e) {
2732
- this.bloomComposerActive = !1, this.active = !0, this.bloomSelection = /* @__PURE__ */ new Set(), this.bloomLayer = new Qt(), this.bloomMaterials = {}, this.bloomVisible = {}, this.bloomComposerRenderIng = !1, this.pipViewportState = null, this.options = e;
2732
+ this.bloomComposerActive = !1, this.active = !0, this.bloomSelection = /* @__PURE__ */ new Set(), this.bloomLayer = new qt(), this.bloomMaterials = {}, this.bloomVisible = {}, this.bloomComposerRenderIng = !1, this.pipViewportState = null, this.options = e;
2733
2733
  const {
2734
2734
  rendererController: t,
2735
2735
  sceneController: s,
@@ -2737,16 +2737,16 @@ class oi {
2737
2737
  composerParams: r
2738
2738
  } = e, { renderer: o } = t;
2739
2739
  this.renderer = o;
2740
- const { multisampling: n } = r, { maxSamples: l } = o.capabilities, d = o.getDrawingBufferSize(new B()), _ = new Jt(
2740
+ const { multisampling: n } = r, { maxSamples: l } = o.capabilities, d = o.getDrawingBufferSize(new B()), _ = new Qt(
2741
2741
  d.width,
2742
2742
  d.height,
2743
2743
  {
2744
2744
  samples: Math.min(n, l),
2745
- type: es
2745
+ type: Jt
2746
2746
  }
2747
2747
  ), p = new ke(o, _), O = this.getSize();
2748
2748
  p.setSize(O.width, O.height);
2749
- const v = new us(
2749
+ const v = new ms(
2750
2750
  s.scene,
2751
2751
  i.camera
2752
2752
  );
@@ -2763,18 +2763,18 @@ class oi {
2763
2763
  this.renderPass.scene = e, this.ssaoPass && (this.ssaoPass.scene = e), this.scene = e;
2764
2764
  }
2765
2765
  addOutputPass() {
2766
- const { premultiplieAlpha: e } = this.options.composerParams, t = new Ks();
2766
+ const { premultiplieAlpha: e } = this.options.composerParams, t = new Gs();
2767
2767
  this.outputPass = t, this.setPremultiplieAlpha(e), this.finalComposer.addPass(t);
2768
2768
  }
2769
2769
  setPremultiplieAlpha(e) {
2770
2770
  this.outputPass && (this.outputPass.uniforms.premultiplieAlpha.value = e ? 1 : 0);
2771
2771
  }
2772
2772
  addSSAOPass(e) {
2773
- const { scene: t, camera: s, renderer: i } = this, r = i.getSize(new B()), o = r.width, n = r.height, l = new fs(t, s, o, n);
2773
+ const { scene: t, camera: s, renderer: i } = this, r = i.getSize(new B()), o = r.width, n = r.height, l = new us(t, s, o, n);
2774
2774
  l.kernelRadius = e.kernelRadius, l.minDistance = e.minDistance, l.maxDistance = e.maxDistance, this.ssaoPass = l, this.finalComposer.addPass(l);
2775
2775
  }
2776
2776
  addBloomPass(e) {
2777
- const { renderer: t } = this, { threshold: s, strength: i, radius: r, bloomAlphaType: o } = e, n = new vs(
2777
+ const { renderer: t } = this, { threshold: s, strength: i, radius: r, bloomAlphaType: o } = e, n = new gs(
2778
2778
  new B(window.innerWidth, window.innerHeight),
2779
2779
  i,
2780
2780
  r,
@@ -2783,7 +2783,7 @@ class oi {
2783
2783
  this.bloomPass = n;
2784
2784
  const l = new ke(t);
2785
2785
  l.renderToScreen = !1, l.addPass(this.renderPass), l.addPass(n), this.bloomComposer = l;
2786
- const d = Xs(l);
2786
+ const d = Ks(l);
2787
2787
  d.uniforms.bloomAlphaType.value = o, this.bloomComposer = l, this.finalComposer.addPass(d), this.mixPass = d, this.bloomLayer.set(Le);
2788
2788
  }
2789
2789
  setBloomSelection(e, t) {
@@ -2818,7 +2818,7 @@ class oi {
2818
2818
  s.traverse((i) => {
2819
2819
  var l;
2820
2820
  const r = i, o = i, n = i;
2821
- (l = r.material) != null && l.isShadowMaterial ? e.push(r) : r.material && this.bloomLayer.test(r.layers) === !1 && (this.bloomMaterials[r.uuid] = r.material, o.isSprite ? o.material.sizeAttenuation ? o.material = Js : o.material = ei : r.material instanceof ft ? r.material = ti : n.isPoints ? n.material.sizeAttenuation ? n.material = Qs : n.material = qs : r.material = $s);
2821
+ (l = r.material) != null && l.isShadowMaterial ? e.push(r) : r.material && this.bloomLayer.test(r.layers) === !1 && (this.bloomMaterials[r.uuid] = r.material, o.isSprite ? o.material.sizeAttenuation ? o.material = Qs : o.material = Js : r.material instanceof ut ? r.material = ei : n.isPoints ? n.material.sizeAttenuation ? n.material = qs : n.material = $s : r.material = Xs);
2822
2822
  });
2823
2823
  }), e.forEach((s) => {
2824
2824
  this.bloomVisible[s.uuid] = s.visible, s.visible = !1;
@@ -2895,7 +2895,7 @@ class it extends pt {
2895
2895
  ), r;
2896
2896
  }
2897
2897
  }
2898
- class ni extends pt {
2898
+ class oi extends pt {
2899
2899
  constructor(e) {
2900
2900
  super(e);
2901
2901
  }
@@ -2916,7 +2916,7 @@ class ni extends pt {
2916
2916
  );
2917
2917
  }
2918
2918
  }
2919
- const ai = {
2919
+ const ni = {
2920
2920
  images: ["png", "jpg", "jpeg", "ico", "webp", "avif"],
2921
2921
  media: ["mp4", "webm", "ogg"],
2922
2922
  gltf: ["gltf", "glb"],
@@ -2925,12 +2925,12 @@ const ai = {
2925
2925
  exr: ["exr"],
2926
2926
  lottie: ["lottie.json"]
2927
2927
  };
2928
- class li {
2928
+ class ai {
2929
2929
  constructor(e) {
2930
2930
  this.loadObj = [], this.delLoadArr = [], this.assets = /* @__PURE__ */ new Map(), this.event = new ve.EventEmitter(), this.options = U({
2931
2931
  simpleTexture4deleted: !1,
2932
2932
  prefix: ""
2933
- }, e), this.loadingManager = new ts(
2933
+ }, e), this.loadingManager = new es(
2934
2934
  () => {
2935
2935
  },
2936
2936
  (t, s, i) => {
@@ -2968,7 +2968,7 @@ class li {
2968
2968
  if (e.endsWith("json.gzip"))
2969
2969
  return "gzipJson";
2970
2970
  } else return;
2971
- for (const [i, r] of Object.entries(ai))
2971
+ for (const [i, r] of Object.entries(ni))
2972
2972
  if (r.includes(t))
2973
2973
  return i;
2974
2974
  }
@@ -2978,17 +2978,17 @@ class li {
2978
2978
  if (e === "media")
2979
2979
  return this.videoTextureLoader || (this.videoTextureLoader = new it(this.loadingManager), this.videoTextureLoader.setOptions({ type: "video" }), this.options.prefix && this.videoTextureLoader.setPath(this.options.prefix)), this.videoTextureLoader;
2980
2980
  if (e === "gltf" && (t != null && t.dracoPath))
2981
- return this.dracoGltfLoader || (this.dracoGltfLoader = new Ne(this.loadingManager), this.dracoLoader = new ys(), this.dracoLoader.setDecoderPath(t == null ? void 0 : t.dracoPath), this.dracoGltfLoader.setDRACOLoader(this.dracoLoader), this.options.prefix && this.dracoGltfLoader.setPath(this.options.prefix)), this.dracoGltfLoader;
2981
+ return this.dracoGltfLoader || (this.dracoGltfLoader = new Ne(this.loadingManager), this.dracoLoader = new vs(), this.dracoLoader.setDecoderPath(t == null ? void 0 : t.dracoPath), this.dracoGltfLoader.setDRACOLoader(this.dracoLoader), this.options.prefix && this.dracoGltfLoader.setPath(this.options.prefix)), this.dracoGltfLoader;
2982
2982
  if (e === "gltf")
2983
2983
  return this.gltfLoader || (this.gltfLoader = new Ne(this.loadingManager), this.options.prefix && this.gltfLoader.setPath(this.options.prefix)), this.gltfLoader;
2984
2984
  if (e === "lottie")
2985
- return this.lottieLoader || (this.lottieLoader = new Os(this.loadingManager), this.options.prefix && this.lottieLoader.setPath(this.options.prefix)), this.lottieLoader;
2985
+ return this.lottieLoader || (this.lottieLoader = new Cs(this.loadingManager), this.options.prefix && this.lottieLoader.setPath(this.options.prefix)), this.lottieLoader;
2986
2986
  if (e === "gzipJson")
2987
- return this.gzipJsonLoader || (this.gzipJsonLoader = new ni(this.loadingManager), this.options.prefix && this.gzipJsonLoader.setPath(this.options.prefix)), this.gzipJsonLoader;
2987
+ return this.gzipJsonLoader || (this.gzipJsonLoader = new oi(this.loadingManager), this.options.prefix && this.gzipJsonLoader.setPath(this.options.prefix)), this.gzipJsonLoader;
2988
2988
  if (e === "json")
2989
2989
  return this.jsonLoader || (this.jsonLoader = new Se(this.loadingManager), this.jsonLoader.setResponseType("json"), this.options.prefix && this.jsonLoader.setPath(this.options.prefix)), this.jsonLoader;
2990
2990
  if (e === "exr")
2991
- return this.exrLoader || (this.exrLoader = new Cs(this.loadingManager), this.options.prefix && this.exrLoader.setPath(this.options.prefix)), this.exrLoader;
2991
+ return this.exrLoader || (this.exrLoader = new ys(this.loadingManager), this.options.prefix && this.exrLoader.setPath(this.options.prefix)), this.exrLoader;
2992
2992
  }
2993
2993
  add(e, t) {
2994
2994
  typeof e == "string" && (e = [e]), e.forEach((s) => {
@@ -3007,7 +3007,7 @@ class li {
3007
3007
  get textureAssets() {
3008
3008
  const e = /* @__PURE__ */ new Map();
3009
3009
  return this.assets.forEach((t, s) => {
3010
- (t instanceof fe || t instanceof ss || t instanceof mt) && e.set(s, t);
3010
+ (t instanceof fe || t instanceof ts || t instanceof mt) && e.set(s, t);
3011
3011
  }), e;
3012
3012
  }
3013
3013
  loadAll() {
@@ -3024,7 +3024,7 @@ class li {
3024
3024
  const s = (n = t == null ? void 0 : t.type) != null ? n : this.getAssetType(e);
3025
3025
  if (!s)
3026
3026
  return;
3027
- const i = (t == null ? void 0 : t.cache) !== !1, r = Es();
3027
+ const i = (t == null ? void 0 : t.cache) !== !1, r = Os();
3028
3028
  if (i) {
3029
3029
  if (this.assets.has(e))
3030
3030
  return this.assets.get(e);
@@ -3034,7 +3034,7 @@ class li {
3034
3034
  try {
3035
3035
  const d = yield o.loadAsync(e);
3036
3036
  if (this.assets.set(e, d), r.resolve(d), s === "images" || s === "media" || s === "exr" || s === "lottie") {
3037
- (t == null ? void 0 : t.colorCorrection) !== !1 && ls({ texture: d });
3037
+ (t == null ? void 0 : t.colorCorrection) !== !1 && as({ texture: d });
3038
3038
  const _ = (l = t == null ? void 0 : t.anisotropy) != null ? l : this.options.anisotropy;
3039
3039
  d.anisotropy = _;
3040
3040
  }
@@ -3078,10 +3078,10 @@ class li {
3078
3078
  this.assets.clear(), (e = this.dracoLoader) == null || e.dispose(), this.event.removeAllListeners(), this.delLoadArr.length = 0, this.loadObj.length = 0;
3079
3079
  }
3080
3080
  }
3081
- const hi = {
3081
+ const li = {
3082
3082
  prefix: ""
3083
3083
  };
3084
- class ci extends ee {
3084
+ class hi extends ee {
3085
3085
  get loader() {
3086
3086
  return this.controller;
3087
3087
  }
@@ -3089,7 +3089,7 @@ class ci extends ee {
3089
3089
  super(), this.options = e;
3090
3090
  }
3091
3091
  addLoader(e, t) {
3092
- const { loaderParams: s } = this.options, i = new li(te(U({}, s), {
3092
+ const { loaderParams: s } = this.options, i = new ai(te(U({}, s), {
3093
3093
  scene: e
3094
3094
  }));
3095
3095
  return this.addController(i, t);
@@ -3100,7 +3100,7 @@ class ci extends ee {
3100
3100
  });
3101
3101
  }
3102
3102
  }
3103
- class di extends cs {
3103
+ class ci extends hs {
3104
3104
  constructor(e) {
3105
3105
  super(), this.options = U({}, e);
3106
3106
  }
@@ -3117,7 +3117,7 @@ function rt(h) {
3117
3117
  }));
3118
3118
  };
3119
3119
  }
3120
- class pi {
3120
+ class di {
3121
3121
  constructor(e) {
3122
3122
  var t;
3123
3123
  this.enabled = !0, this.pickFunctionsMap = /* @__PURE__ */ new Map(), this.pickNodeFunctionsMap = /* @__PURE__ */ new Map(), this.pickFunctionsMapIndex = -1, this.pickNodeFunctionsMapIndex = -1, this.activeObjects = /* @__PURE__ */ new Set(), this.prevActiveObjects = /* @__PURE__ */ new Set(), this.objCallbackMap = /* @__PURE__ */ new Map(), this.pickListener = {
@@ -3150,7 +3150,7 @@ class pi {
3150
3150
  const _ = d.map((m) => m.object3d);
3151
3151
  _.forEach((m) => {
3152
3152
  m.isGroup && m.traverse((u) => {
3153
- u instanceof ut && _.push(u);
3153
+ u instanceof ss && _.push(u);
3154
3154
  });
3155
3155
  });
3156
3156
  const p = (v = this.pencil.pick(r, _, !1)) == null ? void 0 : v.intersects;
@@ -3310,9 +3310,9 @@ class pi {
3310
3310
  this.pickFunctionsMap.clear(), this.pickNodeFunctionsMap.clear(), this.activeObjects.clear(), this.prevActiveObjects.clear(), this.objCallbackMap.clear();
3311
3311
  }
3312
3312
  }
3313
- class mi extends pi {
3313
+ class pi extends di {
3314
3314
  constructor(e, t) {
3315
- super(e), this.objMap = /* @__PURE__ */ new Map(), this.objects = /* @__PURE__ */ new Map(), this.objectsPm = /* @__PURE__ */ new Map(), this.objectNamesToFactories = /* @__PURE__ */ new Map(), this.scene = new di({
3315
+ super(e), this.objMap = /* @__PURE__ */ new Map(), this.objects = /* @__PURE__ */ new Map(), this.objectsPm = /* @__PURE__ */ new Map(), this.objectNamesToFactories = /* @__PURE__ */ new Map(), this.scene = new ci({
3316
3316
  scene: t.scene
3317
3317
  }), this.mList = t.mList, this.scene.create(), this.scene.lead = this, this.scene.pencil = e, this.scene.mList = this.mList, this.scene.key = "Scene", this.scene.object3d.name = "场景", this.group = new ze(), this.group.create(), this.group.lead = this, this.group.pencil = e, this.group.mList = this.mList, this.group.key = "@Group", this.group.object3d.name = "物体组", this.prefabGroup = new ze(), this.prefabGroup.create(), this.prefabGroup.lead = this, this.prefabGroup.pencil = e, this.prefabGroup.mList = this.mList, this.prefabGroup.key = "@PrefabGroup", this.prefabGroup.object3d.name = "预制组", this.scene.add(this.group.object3d, this.prefabGroup.object3d), this.objects.set("@Scene", this.scene), this.objects.set("@Group", this.group), this.objects.set("@PrefabGroup", this.prefabGroup), this.objMap.set(this.scene.object3d, this.scene), this.objMap.set(this.group.object3d, this.group), this.objMap.set(this.prefabGroup.object3d, this.prefabGroup);
3318
3318
  }
@@ -3371,7 +3371,7 @@ class mi extends pi {
3371
3371
  const [, n] = s.split("#");
3372
3372
  o = o.replace("$p:", n);
3373
3373
  }
3374
- return this.objects.has(o) && (o.includes("#") ? o += `-${je()}` : o += `#${je()}`), e.key = o, this.objects.set(o, e), o;
3374
+ return this.objects.has(o) && (o.includes("#") ? o += `-${He()}` : o += `#${He()}`), e.key = o, this.objects.set(o, e), o;
3375
3375
  }
3376
3376
  updateBaseObjectKey(e, t) {
3377
3377
  var o;
@@ -3423,7 +3423,7 @@ class mi extends pi {
3423
3423
  }), this.objects.clear(), this.objectsPm.clear(), this.objMap.clear(), this.objectNamesToFactories.clear();
3424
3424
  }
3425
3425
  }
3426
- class ui extends ee {
3426
+ class mi extends ee {
3427
3427
  get lead() {
3428
3428
  return this.controller;
3429
3429
  }
@@ -3431,7 +3431,7 @@ class ui extends ee {
3431
3431
  super(), this.options = e;
3432
3432
  }
3433
3433
  addLead(e, t, s) {
3434
- const { pencil: i } = this.options, r = new mi(i, {
3434
+ const { pencil: i } = this.options, r = new pi(i, {
3435
3435
  scene: e,
3436
3436
  mList: t
3437
3437
  });
@@ -3453,24 +3453,21 @@ class ui extends ee {
3453
3453
  });
3454
3454
  }
3455
3455
  }
3456
- class fi {
3456
+ class ui {
3457
3457
  constructor(e) {
3458
- this.fixBufferGeometry = new is(), this.materials = /* @__PURE__ */ new Map(), this.fixBaseObjects = /* @__PURE__ */ new Map(), this.materialBaseObjectMap = /* @__PURE__ */ new Map(), this.pencil = e;
3458
+ this.materials = /* @__PURE__ */ new Map(), this.materialBaseObjectMap = /* @__PURE__ */ new Map(), this.pencil = e;
3459
3459
  }
3460
3460
  add(e, t) {
3461
- this.materials.set(e, t);
3462
3461
  const s = {
3463
3462
  key: e,
3464
- userData: {},
3465
- children: [],
3466
- object3d: new Proxy(new ut(this.fixBufferGeometry, t), {
3467
- set: (i, r, o) => {
3468
- var n;
3469
- return r === "material" && !((n = this.pencil.composerController) != null && n.bloomComposerRenderIng) ? (i.material = o, this.materials.set(e, o), !0) : Reflect.set(i, r, o);
3470
- }
3471
- })
3463
+ userData: {
3464
+ preList: !0
3465
+ },
3466
+ object3d: {
3467
+ material: t
3468
+ }
3472
3469
  };
3473
- this.fixBaseObjects.set(e, s), this.emitObject3dChange();
3470
+ this.proxyBaseObject(s), this.addBaseObjectMap(s), this.emitObject3dChange();
3474
3471
  }
3475
3472
  get(e) {
3476
3473
  const t = this.materials.get(e);
@@ -3514,7 +3511,7 @@ class fi {
3514
3511
  }
3515
3512
  remove(e) {
3516
3513
  const t = this.materials.get(e);
3517
- t && this.disposeMaterial(t), this.materials.delete(e), this.fixBaseObjects.delete(e), this.emitObject3dChange();
3514
+ t && this.disposeMaterial(t), this.materials.delete(e), this.emitObject3dChange();
3518
3515
  }
3519
3516
  removeByMaterial(e) {
3520
3517
  [...this.materials.entries()].some(([t, s]) => s === e ? (this.remove(t), !0) : !1);
@@ -3555,23 +3552,23 @@ class fi {
3555
3552
  }
3556
3553
  addBaseObjectMap(e) {
3557
3554
  const t = e.object3d;
3558
- t.material && (Array.isArray(t.material) ? t.material : [t.material]).forEach((i) => {
3555
+ t.material && ((Array.isArray(t.material) ? t.material : [t.material]).forEach((i) => {
3559
3556
  const r = this.materialBaseObjectMap.get(i);
3560
3557
  r ? r.add(e) : this.materialBaseObjectMap.set(i, /* @__PURE__ */ new Set([e]));
3561
- });
3558
+ }), e.userData.preList && this.materials.set(e.key, t.material));
3562
3559
  }
3563
3560
  rmBaseObjectMap(e, t) {
3564
3561
  this.materialBaseObjectMap.forEach((s, i) => {
3565
3562
  t && i !== t || s.has(e) && (s.delete(e), s.size === 0 && (this.materialBaseObjectMap.delete(i), this.disposeMaterial(i)));
3566
3563
  });
3567
3564
  }
3568
- getBaseObjectMaterials() {
3569
- const e = {};
3570
- return this.materialBaseObjectMap.forEach((t, s) => {
3571
- t.forEach((i) => {
3572
- e[i.key] = s;
3573
- });
3574
- }), e;
3565
+ getBaseObjectByMaterial(e) {
3566
+ const t = this.materialBaseObjectMap.get(e);
3567
+ if (t) {
3568
+ const s = Array.from(t);
3569
+ return s.find((i) => i.userData.preList) || s[0];
3570
+ }
3571
+ return null;
3575
3572
  }
3576
3573
  emitObject3dChange() {
3577
3574
  var e;
@@ -3579,10 +3576,10 @@ class fi {
3579
3576
  }
3580
3577
  dispose() {
3581
3578
  const e = new Pe();
3582
- e.track([...this.materials.values()]), e.dispose(), this.materials.clear(), this.fixBaseObjects.clear(), this.materialBaseObjectMap.clear(), this.fixBufferGeometry.dispose();
3579
+ e.track([...this.materials.values()]), e.dispose(), this.materials.clear(), this.materialBaseObjectMap.clear();
3583
3580
  }
3584
3581
  }
3585
- class _i extends ee {
3582
+ class fi extends ee {
3586
3583
  get mList() {
3587
3584
  return this.controller;
3588
3585
  }
@@ -3590,7 +3587,7 @@ class _i extends ee {
3590
3587
  super(), this.options = e;
3591
3588
  }
3592
3589
  addMList(e, t) {
3593
- const { pencil: s } = this.options, i = new fi(s);
3590
+ const { pencil: s } = this.options, i = new ui(s);
3594
3591
  return this.addController(i, t);
3595
3592
  }
3596
3593
  removePage(e) {
@@ -3602,8 +3599,8 @@ class _i extends ee {
3602
3599
  const _e = class _e {
3603
3600
  constructor(e) {
3604
3601
  var r, o;
3605
- this.raycaster = new ht(), this.maxBackufferArea = 5760 * 5760, this.installPlugins = /* @__PURE__ */ new Map(), this._cameraPositon = new I(), this._cameraTarget = new I(), this.event = new ve.EventEmitter(), this.timer = new rs(), this.userData = {}, this.pageActiveIndex = 0, this.pageCountIndex = 0, this.userSetDprCache = 1, this.event.setMaxListeners(1 / 0), (o = (r = this.timer).connect) == null || o.call(r, document), this.options = os(_e.options, e, {
3606
- isMergeableObject: hs
3602
+ this.raycaster = new ht(), this.maxBackufferArea = 5760 * 5760, this.installPlugins = /* @__PURE__ */ new Map(), this._cameraPositon = new I(), this._cameraTarget = new I(), this.event = new ve.EventEmitter(), this.timer = new is(), this.userData = {}, this.pageActiveIndex = 0, this.pageCountIndex = 0, this.userSetDprCache = 1, this.event.setMaxListeners(1 / 0), (o = (r = this.timer).connect) == null || o.call(r, document), this.options = rs(_e.options, e, {
3603
+ isMergeableObject: ls
3607
3604
  }), this.userSetDprCache = this.options.renderer.devicePixelRatio;
3608
3605
  const {
3609
3606
  container: t,
@@ -3611,7 +3608,7 @@ const _e = class _e {
3611
3608
  transformControls: i
3612
3609
  } = this.options;
3613
3610
  if (this.init(), this.options.WebGPUTHREE || this.initComposer(), this.initCSSRenderer(), i && this.initTransformControls(), s) {
3614
- const n = new ns({
3611
+ const n = new os({
3615
3612
  horizontal: !1
3616
3613
  });
3617
3614
  n.dom.style.position = "absolute", n.init(this.renderer), t.appendChild(n.dom), this.stats = n;
@@ -3688,31 +3685,31 @@ const _e = class _e {
3688
3685
  renderer: r,
3689
3686
  controls: o,
3690
3687
  loader: n
3691
- } = this.options, { width: l, height: d } = this.getSize(), _ = t ? new Us({
3688
+ } = this.options, { width: l, height: d } = this.getSize(), _ = t ? new Ds({
3692
3689
  width: l,
3693
3690
  height: d,
3694
3691
  renderer: t.WebGPURenderer,
3695
- rendererParams: Ds
3696
- }) : new Rs({
3692
+ rendererParams: Rs
3693
+ }) : new Ms({
3697
3694
  width: l,
3698
3695
  height: d,
3699
3696
  rendererParams: te(U({}, r), {
3700
3697
  antialias: !1
3701
3698
  })
3702
- }), p = new ks({
3699
+ }), p = new zs({
3703
3700
  width: l,
3704
3701
  height: d
3705
- }), O = new Ns({}), v = new Is({
3702
+ }), O = new Fs({}), v = new Hs({
3706
3703
  controlsParams: {
3707
3704
  domElement: (g = o == null ? void 0 : o.domElement) != null ? g : _.renderer.domElement
3708
3705
  }
3709
- }), m = new ci({
3706
+ }), m = new hi({
3710
3707
  loaderParams: U({
3711
3708
  anisotropy: _.renderer.capabilities.getMaxAnisotropy()
3712
3709
  }, n)
3713
- }), u = new _i({
3710
+ }), u = new fi({
3714
3711
  pencil: this
3715
- }), f = new ui({
3712
+ }), f = new mi({
3716
3713
  pencil: this
3717
3714
  });
3718
3715
  this.sceneController = O, this.cameraController = p, this.controlsController = v, this.rendererController = _, this.loaderController = m, this.mListController = u, this.leadController = f;
@@ -3721,7 +3718,7 @@ const _e = class _e {
3721
3718
  cameraOptions: this.options.camera
3722
3719
  });
3723
3720
  if (this.showPage(a), s) {
3724
- const C = new js({
3721
+ const C = new Ns({
3725
3722
  container: e,
3726
3723
  sceneController: O,
3727
3724
  cameraController: p
@@ -3737,7 +3734,7 @@ const _e = class _e {
3737
3734
  ssao: s,
3738
3735
  ssaoParams: i,
3739
3736
  composer: r
3740
- } = this.options, o = new oi({
3737
+ } = this.options, o = new ri({
3741
3738
  rendererController: this.rendererController,
3742
3739
  sceneController: this.sceneController,
3743
3740
  cameraController: this.cameraController,
@@ -3754,12 +3751,12 @@ const _e = class _e {
3754
3751
  css3DRendererParams: r
3755
3752
  } = this.options;
3756
3753
  if (t || s) {
3757
- const o = new Ws(e);
3754
+ const o = new Zs(e);
3758
3755
  t && o.addRenderer("css2d", i), s && o.addRenderer("css3d", r), this.cssRendererController = o;
3759
3756
  }
3760
3757
  }
3761
3758
  initTransformControls() {
3762
- const e = new Hs({
3759
+ const e = new Is({
3763
3760
  camera: this.camera,
3764
3761
  renderer: this.renderer,
3765
3762
  scene: this.scene
@@ -3899,26 +3896,26 @@ _e.options = {
3899
3896
  viewHelper: me,
3900
3897
  controls: !0,
3901
3898
  transformControls: me,
3902
- renderer: Ms,
3903
- composer: ri,
3904
- scene: Fs,
3905
- camera: wt,
3899
+ renderer: As,
3900
+ composer: ii,
3901
+ scene: ks,
3902
+ camera: bt,
3906
3903
  bloom: !1,
3907
- bloomParams: ii,
3904
+ bloomParams: si,
3908
3905
  ssao: !1,
3909
- loader: hi,
3910
- ssaoParams: si,
3906
+ loader: li,
3907
+ ssaoParams: ti,
3911
3908
  css2DRenderer: !1,
3912
3909
  css2DRendererParams: U({}, st),
3913
3910
  css3DRenderer: !1,
3914
3911
  css3DRendererParams: U({}, st)
3915
3912
  };
3916
3913
  let ot = _e;
3917
- const qi = J.ACTION;
3914
+ const $i = J.ACTION;
3918
3915
  export {
3919
- cs as BaseObject,
3916
+ hs as BaseObject,
3920
3917
  ot as Pencil,
3921
3918
  Pe as ResourceTracker,
3922
- qi as cameraControlsAction,
3919
+ $i as cameraControlsAction,
3923
3920
  ot as default
3924
3921
  };