@roomle/web-sdk 5.1.0-alpha.4 → 5.1.0-alpha.5

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.
Files changed (132) hide show
  1. package/lib/{BufferGeometry-Bl5whHAB.mjs → BufferGeometry-CxlpBjLq.mjs} +192 -195
  2. package/lib/BufferGeometry-CxlpBjLq.mjs.map +1 -0
  3. package/lib/ConfiguratorKernel.wasm +0 -0
  4. package/lib/{GLTFExporter-yQ7mMauu.mjs → GLTFExporter-DeNw0qAI.mjs} +86 -80
  5. package/lib/GLTFExporter-DeNw0qAI.mjs.map +1 -0
  6. package/lib/GaussianBlurNode-BR1cKBsX.mjs +65 -0
  7. package/lib/GaussianBlurNode-BR1cKBsX.mjs.map +1 -0
  8. package/lib/{Object3D-BHdngbxB.mjs → Object3D-CALIQdg1.mjs} +142 -59
  9. package/lib/Object3D-CALIQdg1.mjs.map +1 -0
  10. package/lib/{Pass-DLiMLT5k.mjs → Pass-DCljS3Z-.mjs} +4 -4
  11. package/lib/{Pass-DLiMLT5k.mjs.map → Pass-DCljS3Z-.mjs.map} +1 -1
  12. package/lib/{PointLightHelper-CuPSBuDU.mjs → PointLightHelper-C_0CYp7R.mjs} +35 -32
  13. package/lib/PointLightHelper-C_0CYp7R.mjs.map +1 -0
  14. package/lib/RoomleCore.wasm +0 -0
  15. package/lib/RoomleToolsCore.wasm +0 -0
  16. package/lib/{SpotLightHelper-m-Rh8vGU.mjs → SpotLightHelper-UUIHn43T.mjs} +22 -19
  17. package/lib/SpotLightHelper-UUIHn43T.mjs.map +1 -0
  18. package/lib/{USDZExporter-MdkuT226.mjs → USDZExporter-BBNw7Hey.mjs} +6 -3
  19. package/lib/USDZExporter-BBNw7Hey.mjs.map +1 -0
  20. package/lib/{Vector4-C7TlIAyy.mjs → Vector4-BOcWTZJI.mjs} +2 -2
  21. package/lib/Vector4-BOcWTZJI.mjs.map +1 -0
  22. package/lib/{api-Bznmr-xZ.mjs → api-CwEjmjrn.mjs} +2 -2
  23. package/lib/{api-Bznmr-xZ.mjs.map → api-CwEjmjrn.mjs.map} +1 -1
  24. package/lib/{banana-for-scale-DpKXNBt_.mjs → banana-for-scale-Cf41yXTl.mjs} +3 -3
  25. package/lib/{banana-for-scale-DpKXNBt_.mjs.map → banana-for-scale-Cf41yXTl.mjs.map} +1 -1
  26. package/lib/{common-utils-DbL4tku0.mjs → common-utils-OTJQGohe.mjs} +3 -3
  27. package/lib/common-utils-OTJQGohe.mjs.map +1 -0
  28. package/lib/{component-dimensioning-BaUqwqYJ.mjs → component-dimensioning-yPK46Y5o.mjs} +26 -26
  29. package/lib/{component-dimensioning-BaUqwqYJ.mjs.map → component-dimensioning-yPK46Y5o.mjs.map} +1 -1
  30. package/lib/{component-raycast-helper-4i8b4E5B.mjs → component-raycast-helper-CnpnRaFg.mjs} +15 -15
  31. package/lib/{component-raycast-helper-4i8b4E5B.mjs.map → component-raycast-helper-CnpnRaFg.mjs.map} +1 -1
  32. package/lib/{configurator-CDw_c6tB.mjs → configurator-iYlO_buA.mjs} +4 -4
  33. package/lib/{configurator-CDw_c6tB.mjs.map → configurator-iYlO_buA.mjs.map} +1 -1
  34. package/lib/configurator-y7zIaUe_.mjs +2 -0
  35. package/lib/{continuous-drawing-helper-DqHIR_qF.mjs → continuous-drawing-helper-CTfGRTfH.mjs} +3 -3
  36. package/lib/{continuous-drawing-helper-DqHIR_qF.mjs.map → continuous-drawing-helper-CTfGRTfH.mjs.map} +1 -1
  37. package/lib/dimensioning-helper-CQlesi-m.mjs +2 -0
  38. package/lib/{dimensioning-helper-CGPjS2hW.mjs → dimensioning-helper-DSlkLDmx.mjs} +42 -36
  39. package/lib/dimensioning-helper-DSlkLDmx.mjs.map +1 -0
  40. package/lib/{glb-viewer-B-Zr743e.mjs → glb-viewer-AGV-_xKd.mjs} +33 -33
  41. package/lib/{glb-viewer-B-Zr743e.mjs.map → glb-viewer-AGV-_xKd.mjs.map} +1 -1
  42. package/lib/glb-viewer-DSzNR4CI.mjs +2 -0
  43. package/lib/{highlight-coordinator-4gkjde82.mjs → highlight-coordinator-DU6oFunq.mjs} +6 -6
  44. package/lib/{highlight-coordinator-4gkjde82.mjs.map → highlight-coordinator-DU6oFunq.mjs.map} +1 -1
  45. package/lib/{homag-intelligence-D7S7r-Gc.mjs → homag-intelligence-D_yBv0ig.mjs} +3 -3
  46. package/lib/{homag-intelligence-D7S7r-Gc.mjs.map → homag-intelligence-D_yBv0ig.mjs.map} +1 -1
  47. package/lib/{hosek-wilkie-sky-iMar2iw-.mjs → hosek-wilkie-sky-DmTvnxMA.mjs} +33 -33
  48. package/lib/{hosek-wilkie-sky-iMar2iw-.mjs.map → hosek-wilkie-sky-DmTvnxMA.mjs.map} +1 -1
  49. package/lib/{imos-ix-poc-export-helper-CyGqK7nu.mjs → imos-ix-poc-export-helper-BGN97m8W.mjs} +3 -3
  50. package/lib/{imos-ix-poc-export-helper-CyGqK7nu.mjs.map → imos-ix-poc-export-helper-BGN97m8W.mjs.map} +1 -1
  51. package/lib/{kernel-utils-BvatnA7U.mjs → kernel-utils-BYKmP0mf.mjs} +13 -13
  52. package/lib/{kernel-utils-BvatnA7U.mjs.map → kernel-utils-BYKmP0mf.mjs.map} +1 -1
  53. package/lib/{material-viewer-CTsSfTfL.mjs → material-viewer-BuBSXGw6.mjs} +18 -18
  54. package/lib/{material-viewer-CTsSfTfL.mjs.map → material-viewer-BuBSXGw6.mjs.map} +1 -1
  55. package/lib/{packages-BXAZEcKa.mjs → packages-CduZDHYG.mjs} +5 -5
  56. package/lib/{packages-BXAZEcKa.mjs.map → packages-CduZDHYG.mjs.map} +1 -1
  57. package/lib/planner-B-SWR4R8.mjs +2 -0
  58. package/lib/{planner-jvLAnYww.mjs → planner-BuBkFbra.mjs} +3 -3
  59. package/lib/{planner-jvLAnYww.mjs.map → planner-BuBkFbra.mjs.map} +1 -1
  60. package/lib/{plugin-system-CRaC04G5.mjs → plugin-system-CPf99Zkf.mjs} +2 -2
  61. package/lib/{plugin-system-CRaC04G5.mjs.map → plugin-system-CPf99Zkf.mjs.map} +1 -1
  62. package/lib/{render-cache-DCPIQbO1.mjs → render-cache-CPppt7Rd.mjs} +5 -5
  63. package/lib/{render-cache-DCPIQbO1.mjs.map → render-cache-CPppt7Rd.mjs.map} +1 -1
  64. package/lib/{render-order-BPF2wDMw.mjs → render-order-a0QAbB7Q.mjs} +2 -2
  65. package/lib/{render-order-BPF2wDMw.mjs.map → render-order-a0QAbB7Q.mjs.map} +1 -1
  66. package/lib/roomle-headless.d.ts +0 -2
  67. package/lib/roomle-headless.js +14 -14
  68. package/lib/{roomle-renderer-Ato6RMrd.mjs → roomle-renderer-UJINLYxS.mjs} +2 -2
  69. package/lib/{roomle-renderer-Ato6RMrd.mjs.map → roomle-renderer-UJINLYxS.mjs.map} +1 -1
  70. package/lib/{roomle-sdk-CBwhwX_e.mjs → roomle-sdk-CcNdTp_n.mjs} +1844 -1889
  71. package/lib/roomle-sdk-CcNdTp_n.mjs.map +1 -0
  72. package/lib/roomle-sdk.d.ts +0 -2
  73. package/lib/roomle-sdk.js +7 -7
  74. package/lib/{roomle-webgpu-renderer-BfZKcXSz.mjs → roomle-webgpu-renderer-BSvxbopA.mjs} +900 -707
  75. package/lib/roomle-webgpu-renderer-BSvxbopA.mjs.map +1 -0
  76. package/lib/{scene-renderer-BHYZac3H.mjs → scene-renderer--DzrpIl_.mjs} +309 -309
  77. package/lib/{scene-renderer-BHYZac3H.mjs.map → scene-renderer--DzrpIl_.mjs.map} +1 -1
  78. package/lib/{script-loader-CvnG6LgL.mjs → script-loader-D6i0wQ_j.mjs} +2 -2
  79. package/lib/{script-loader-CvnG6LgL.mjs.map → script-loader-D6i0wQ_j.mjs.map} +1 -1
  80. package/lib/{shading-settings-BBhR7KcS.mjs → shading-settings-6v-7O_Sz.mjs} +49 -49
  81. package/lib/{shading-settings-BBhR7KcS.mjs.map → shading-settings-6v-7O_Sz.mjs.map} +1 -1
  82. package/lib/src-6KtBPZXp.mjs +2 -0
  83. package/lib/{src-HhklrVDg.mjs → src-Dg0wYIom.mjs} +150 -150
  84. package/lib/{src-HhklrVDg.mjs.map → src-Dg0wYIom.mjs.map} +1 -1
  85. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  86. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  87. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  88. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  89. package/lib/{stats-helper-PndcZCzL.mjs → stats-helper-DYjPPDnz.mjs} +2 -2
  90. package/lib/{stats-helper-PndcZCzL.mjs.map → stats-helper-DYjPPDnz.mjs.map} +1 -1
  91. package/lib/{three.core-0KaTx8dm.mjs → three.core-BTUCraWz.mjs} +976 -884
  92. package/lib/three.core-BTUCraWz.mjs.map +1 -0
  93. package/lib/{three.module-dym6j3lO.mjs → three.module-DUSFrLM6.mjs} +1789 -1739
  94. package/lib/three.module-DUSFrLM6.mjs.map +1 -0
  95. package/lib/three.tsl-De6A-G56.mjs +158 -0
  96. package/lib/three.tsl-De6A-G56.mjs.map +1 -0
  97. package/lib/three.tsl-DtfvggFX.mjs +2 -0
  98. package/lib/three.webgpu-B1OhMci_.mjs +3 -0
  99. package/lib/{three.webgpu-D3nSEIjD.mjs → three.webgpu-wPiwbpFM.mjs} +5806 -4926
  100. package/lib/three.webgpu-wPiwbpFM.mjs.map +1 -0
  101. package/lib/{threejs-utils-v1uOvccg.mjs → threejs-utils-lVSsgAiQ.mjs} +68 -68
  102. package/lib/{threejs-utils-v1uOvccg.mjs.map → threejs-utils-lVSsgAiQ.mjs.map} +1 -1
  103. package/lib/{tools-core-B29U-88K.mjs → tools-core-CRGER_KC.mjs} +3 -3
  104. package/lib/{tools-core-B29U-88K.mjs.map → tools-core-CRGER_KC.mjs.map} +1 -1
  105. package/lib/{webgpu-BHAP6BLI.mjs → webgpu-BxYJfBjz.mjs} +555 -555
  106. package/lib/{webgpu-BHAP6BLI.mjs.map → webgpu-BxYJfBjz.mjs.map} +1 -1
  107. package/package.json +5 -5
  108. package/lib/BufferGeometry-Bl5whHAB.mjs.map +0 -1
  109. package/lib/GLTFExporter-yQ7mMauu.mjs.map +0 -1
  110. package/lib/GaussianBlurNode-DNBEf5-n.mjs +0 -59
  111. package/lib/GaussianBlurNode-DNBEf5-n.mjs.map +0 -1
  112. package/lib/Object3D-BHdngbxB.mjs.map +0 -1
  113. package/lib/PointLightHelper-CuPSBuDU.mjs.map +0 -1
  114. package/lib/SpotLightHelper-m-Rh8vGU.mjs.map +0 -1
  115. package/lib/USDZExporter-MdkuT226.mjs.map +0 -1
  116. package/lib/Vector4-C7TlIAyy.mjs.map +0 -1
  117. package/lib/common-utils-DbL4tku0.mjs.map +0 -1
  118. package/lib/configurator-BYQdWEvf.mjs +0 -2
  119. package/lib/dimensioning-helper-CGPjS2hW.mjs.map +0 -1
  120. package/lib/dimensioning-helper-VndKlIXS.mjs +0 -2
  121. package/lib/glb-viewer-Bd5Xn6Oq.mjs +0 -2
  122. package/lib/planner-DMk3T4ts.mjs +0 -2
  123. package/lib/roomle-sdk-CBwhwX_e.mjs.map +0 -1
  124. package/lib/roomle-webgpu-renderer-BfZKcXSz.mjs.map +0 -1
  125. package/lib/src-Bbq3Hqzn.mjs +0 -2
  126. package/lib/three.core-0KaTx8dm.mjs.map +0 -1
  127. package/lib/three.module-dym6j3lO.mjs.map +0 -1
  128. package/lib/three.tsl-BTc4fg8T.mjs +0 -2
  129. package/lib/three.tsl-Cf0-sCqB.mjs +0 -152
  130. package/lib/three.tsl-Cf0-sCqB.mjs.map +0 -1
  131. package/lib/three.webgpu-ClICiWlK.mjs +0 -3
  132. package/lib/three.webgpu-D3nSEIjD.mjs.map +0 -1
@@ -1,28 +1,35 @@
1
- var e = "attached", t = "detached", n = 1e3, r = 1001, i = 1002, a = 1003, o = 1004, s = 1005, c = 1006, l = 1007, u = 1008, d = 1008, f = 1009, p = 1010, m = 1011, h = 1012, g = 1013, _ = 1014, v = 1015, y = 1016, b = 1017, x = 1018, S = 1020, C = 35902, w = 35899, T = 1021, E = 1022, D = 1023, ee = 1026, te = 1027, O = 1028, ne = 1029, re = 1030, ie = 1031, ae = 1032, oe = 1033, se = 33776, ce = 33777, le = 33778, ue = 33779, de = 35840, fe = 35841, pe = 35842, me = 35843, he = 36196, ge = 37492, _e = 37496, ve = 37488, ye = 37489, be = 37490, xe = 37491, Se = 37808, Ce = 37809, we = 37810, Te = 37811, Ee = 37812, De = 37813, Oe = 37814, ke = 37815, Ae = 37816, je = 37817, Me = 37818, Ne = 37819, Pe = 37820, Fe = 37821, Ie = 36492, Le = 36494, Re = 36495, ze = 36283, Be = 36284, Ve = 36285, He = 36286, Ue = 2300, We = 2301, Ge = 2302, Ke = 2303, qe = 2400, Je = 2401, Ye = 2402, Xe = 2500, Ze = 3200, Qe = "srgb", $e = "srgb-linear", et = "linear", tt = "srgb", nt = 7680, rt = 7681, it = 7682, at = 7683, ot = 34055, st = 34056, ct = 5386, lt = 35044, ut = 35048, dt = "300 es", ft = 2e3, pt = 2001, mt = {
1
+ var e = "attached", t = "detached", n = 1e3, r = 1001, i = 1002, a = 1003, o = 1004, s = 1005, c = 1006, l = 1007, u = 1008, d = 1008, f = 1009, p = 1010, m = 1011, h = 1012, g = 1013, _ = 1014, v = 1015, y = 1016, b = 1017, x = 1018, S = 1020, C = 35902, w = 35899, T = 1021, E = 1022, D = 1023, O = 1026, k = 1027, A = 1028, ee = 1029, te = 1030, ne = 1031, re = 1032, ie = 1033, ae = 33776, oe = 33777, se = 33778, ce = 33779, le = 35840, ue = 35841, de = 35842, fe = 35843, pe = 36196, me = 37492, he = 37496, ge = 37488, _e = 37489, ve = 37490, ye = 37491, be = 37808, xe = 37809, Se = 37810, Ce = 37811, we = 37812, Te = 37813, Ee = 37814, De = 37815, Oe = 37816, ke = 37817, Ae = 37818, je = 37819, Me = 37820, Ne = 37821, Pe = 36492, Fe = 36494, Ie = 36495, Le = 36283, Re = 36284, ze = 36285, Be = 36286, Ve = 2300, He = 2301, Ue = 2302, We = 2303, Ge = 2400, Ke = 2401, qe = 2402, Je = 2500, Ye = 3200, Xe = "srgb", Ze = "srgb-linear", Qe = "linear", $e = "srgb", et = 7680, tt = 7681, nt = 7682, rt = 7683, it = 34055, at = 34056, ot = 5386, st = 35044, ct = 35048, lt = "300 es", ut = 2e3, dt = 2001, ft = {
2
2
  COMPUTE: "compute",
3
3
  RENDER: "render"
4
- }, ht = { TEXTURE_COMPARE: "depthTextureCompare" };
5
- function gt(e) {
4
+ }, pt = { TEXTURE_COMPARE: "depthTextureCompare" }, mt = {
5
+ NONE: 0,
6
+ SHARED: 1,
7
+ FULL: 2
8
+ };
9
+ function ht(e) {
6
10
  for (let t = e.length - 1; t >= 0; --t) if (e[t] >= 65535) return !0;
7
11
  return !1;
8
12
  }
9
- function _t(e) {
13
+ function gt(e) {
10
14
  return ArrayBuffer.isView(e) && !(e instanceof DataView);
11
15
  }
12
- function vt(e) {
16
+ function _t(e) {
13
17
  return document.createElementNS("http://www.w3.org/1999/xhtml", e);
14
18
  }
15
- function yt() {
16
- let e = vt("canvas");
19
+ function vt() {
20
+ let e = _t("canvas");
17
21
  return e.style.display = "block", e;
18
22
  }
19
- var bt = {}, xt = null;
20
- function St(e) {
21
- xt = e;
23
+ var yt = {}, bt = null;
24
+ function xt(e) {
25
+ bt = e;
26
+ }
27
+ function St() {
28
+ return bt;
22
29
  }
23
30
  function Ct(...e) {
24
31
  let t = "THREE." + e.shift();
25
- xt ? xt("log", t, ...e) : console.log(t, ...e);
32
+ bt ? bt("log", t, ...e) : console.log(t, ...e);
26
33
  }
27
34
  function wt(e) {
28
35
  let t = e[0];
@@ -32,19 +39,19 @@ function wt(e) {
32
39
  }
33
40
  return e;
34
41
  }
35
- function k(...e) {
42
+ function j(...e) {
36
43
  e = wt(e);
37
44
  let t = "THREE." + e.shift();
38
- if (xt) xt("warn", t, ...e);
45
+ if (bt) bt("warn", t, ...e);
39
46
  else {
40
47
  let n = e[0];
41
48
  n && n.isStackTrace ? console.warn(n.getError(t)) : console.warn(t, ...e);
42
49
  }
43
50
  }
44
- function A(...e) {
51
+ function M(...e) {
45
52
  e = wt(e);
46
53
  let t = "THREE." + e.shift();
47
- if (xt) xt("error", t, ...e);
54
+ if (bt) bt("error", t, ...e);
48
55
  else {
49
56
  let n = e[0];
50
57
  n && n.isStackTrace ? console.error(n.getError(t)) : console.error(t, ...e);
@@ -52,7 +59,7 @@ function A(...e) {
52
59
  }
53
60
  function Tt(...e) {
54
61
  let t = e.join(" ");
55
- t in bt || (bt[t] = !0, k(...e));
62
+ t in yt || (yt[t] = !0, j(...e));
56
63
  }
57
64
  function Et() {
58
65
  return typeof self < "u" && self.scheduler !== void 0 && self.scheduler.yield !== void 0 ? self.scheduler.yield() : new Promise((e) => {
@@ -114,12 +121,12 @@ var Ot = {
114
121
  e.target = null;
115
122
  }
116
123
  }
117
- }, j = /* @__PURE__ */ "00.01.02.03.04.05.06.07.08.09.0a.0b.0c.0d.0e.0f.10.11.12.13.14.15.16.17.18.19.1a.1b.1c.1d.1e.1f.20.21.22.23.24.25.26.27.28.29.2a.2b.2c.2d.2e.2f.30.31.32.33.34.35.36.37.38.39.3a.3b.3c.3d.3e.3f.40.41.42.43.44.45.46.47.48.49.4a.4b.4c.4d.4e.4f.50.51.52.53.54.55.56.57.58.59.5a.5b.5c.5d.5e.5f.60.61.62.63.64.65.66.67.68.69.6a.6b.6c.6d.6e.6f.70.71.72.73.74.75.76.77.78.79.7a.7b.7c.7d.7e.7f.80.81.82.83.84.85.86.87.88.89.8a.8b.8c.8d.8e.8f.90.91.92.93.94.95.96.97.98.99.9a.9b.9c.9d.9e.9f.a0.a1.a2.a3.a4.a5.a6.a7.a8.a9.aa.ab.ac.ad.ae.af.b0.b1.b2.b3.b4.b5.b6.b7.b8.b9.ba.bb.bc.bd.be.bf.c0.c1.c2.c3.c4.c5.c6.c7.c8.c9.ca.cb.cc.cd.ce.cf.d0.d1.d2.d3.d4.d5.d6.d7.d8.d9.da.db.dc.dd.de.df.e0.e1.e2.e3.e4.e5.e6.e7.e8.e9.ea.eb.ec.ed.ee.ef.f0.f1.f2.f3.f4.f5.f6.f7.f8.f9.fa.fb.fc.fd.fe.ff".split("."), At = 1234567, jt = Math.PI / 180, Mt = 180 / Math.PI;
124
+ }, N = /* @__PURE__ */ "00.01.02.03.04.05.06.07.08.09.0a.0b.0c.0d.0e.0f.10.11.12.13.14.15.16.17.18.19.1a.1b.1c.1d.1e.1f.20.21.22.23.24.25.26.27.28.29.2a.2b.2c.2d.2e.2f.30.31.32.33.34.35.36.37.38.39.3a.3b.3c.3d.3e.3f.40.41.42.43.44.45.46.47.48.49.4a.4b.4c.4d.4e.4f.50.51.52.53.54.55.56.57.58.59.5a.5b.5c.5d.5e.5f.60.61.62.63.64.65.66.67.68.69.6a.6b.6c.6d.6e.6f.70.71.72.73.74.75.76.77.78.79.7a.7b.7c.7d.7e.7f.80.81.82.83.84.85.86.87.88.89.8a.8b.8c.8d.8e.8f.90.91.92.93.94.95.96.97.98.99.9a.9b.9c.9d.9e.9f.a0.a1.a2.a3.a4.a5.a6.a7.a8.a9.aa.ab.ac.ad.ae.af.b0.b1.b2.b3.b4.b5.b6.b7.b8.b9.ba.bb.bc.bd.be.bf.c0.c1.c2.c3.c4.c5.c6.c7.c8.c9.ca.cb.cc.cd.ce.cf.d0.d1.d2.d3.d4.d5.d6.d7.d8.d9.da.db.dc.dd.de.df.e0.e1.e2.e3.e4.e5.e6.e7.e8.e9.ea.eb.ec.ed.ee.ef.f0.f1.f2.f3.f4.f5.f6.f7.f8.f9.fa.fb.fc.fd.fe.ff".split("."), At = 1234567, jt = Math.PI / 180, Mt = 180 / Math.PI;
118
125
  function Nt() {
119
126
  let e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0, r = Math.random() * 4294967295 | 0;
120
- return (j[e & 255] + j[e >> 8 & 255] + j[e >> 16 & 255] + j[e >> 24 & 255] + "-" + j[t & 255] + j[t >> 8 & 255] + "-" + j[t >> 16 & 15 | 64] + j[t >> 24 & 255] + "-" + j[n & 63 | 128] + j[n >> 8 & 255] + "-" + j[n >> 16 & 255] + j[n >> 24 & 255] + j[r & 255] + j[r >> 8 & 255] + j[r >> 16 & 255] + j[r >> 24 & 255]).toLowerCase();
127
+ return (N[e & 255] + N[e >> 8 & 255] + N[e >> 16 & 255] + N[e >> 24 & 255] + "-" + N[t & 255] + N[t >> 8 & 255] + "-" + N[t >> 16 & 15 | 64] + N[t >> 24 & 255] + "-" + N[n & 63 | 128] + N[n >> 8 & 255] + "-" + N[n >> 16 & 255] + N[n >> 24 & 255] + N[r & 255] + N[r >> 8 & 255] + N[r >> 16 & 255] + N[r >> 24 & 255]).toLowerCase();
121
128
  }
122
- function M(e, t, n) {
129
+ function P(e, t, n) {
123
130
  return Math.max(t, Math.min(n, e));
124
131
  }
125
132
  function Pt(e, t) {
@@ -167,7 +174,7 @@ function qt(e) {
167
174
  return e * Mt;
168
175
  }
169
176
  function Jt(e) {
170
- return (e & e - 1) == 0 && e !== 0;
177
+ return e > 0 && Number.isInteger(e) && 2 ** Math.round(Math.log2(e)) === e;
171
178
  }
172
179
  function Yt(e) {
173
180
  return 2 ** Math.ceil(Math.log(e) / Math.LN2);
@@ -196,27 +203,29 @@ function Zt(e, t, n, r, i) {
196
203
  case "ZYZ":
197
204
  e.set(c * m, c * p, s * u, s * l);
198
205
  break;
199
- default: k("MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: " + i);
206
+ default: j("MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: " + i);
200
207
  }
201
208
  }
202
- function N(e, t) {
209
+ function F(e, t) {
203
210
  switch (t.constructor) {
204
211
  case Float32Array: return e;
205
212
  case Uint32Array: return e / 4294967295;
206
213
  case Uint16Array: return e / 65535;
207
- case Uint8Array: return e / 255;
214
+ case Uint8Array:
215
+ case Uint8ClampedArray: return e / 255;
208
216
  case Int32Array: return Math.max(e / 2147483647, -1);
209
217
  case Int16Array: return Math.max(e / 32767, -1);
210
218
  case Int8Array: return Math.max(e / 127, -1);
211
219
  default: throw Error("THREE.MathUtils: Invalid component type.");
212
220
  }
213
221
  }
214
- function P(e, t) {
222
+ function I(e, t) {
215
223
  switch (t.constructor) {
216
224
  case Float32Array: return e;
217
225
  case Uint32Array: return Math.round(e * 4294967295);
218
226
  case Uint16Array: return Math.round(e * 65535);
219
- case Uint8Array: return Math.round(e * 255);
227
+ case Uint8Array:
228
+ case Uint8ClampedArray: return Math.round(e * 255);
220
229
  case Int32Array: return Math.round(e * 2147483647);
221
230
  case Int16Array: return Math.round(e * 32767);
222
231
  case Int8Array: return Math.round(e * 127);
@@ -227,7 +236,7 @@ var Qt = {
227
236
  DEG2RAD: jt,
228
237
  RAD2DEG: Mt,
229
238
  generateUUID: Nt,
230
- clamp: M,
239
+ clamp: P,
231
240
  euclideanModulo: Pt,
232
241
  mapLinear: Ft,
233
242
  inverseLerp: It,
@@ -246,9 +255,9 @@ var Qt = {
246
255
  ceilPowerOfTwo: Yt,
247
256
  floorPowerOfTwo: Xt,
248
257
  setQuaternionFromProperEuler: Zt,
249
- normalize: P,
250
- denormalize: N
251
- }, F = class e {
258
+ normalize: I,
259
+ denormalize: F
260
+ }, L = class e {
252
261
  static {
253
262
  e.prototype.isVector2 = !0;
254
263
  }
@@ -348,14 +357,14 @@ var Qt = {
348
357
  return this.x = Math.max(this.x, e.x), this.y = Math.max(this.y, e.y), this;
349
358
  }
350
359
  clamp(e, t) {
351
- return this.x = M(this.x, e.x, t.x), this.y = M(this.y, e.y, t.y), this;
360
+ return this.x = P(this.x, e.x, t.x), this.y = P(this.y, e.y, t.y), this;
352
361
  }
353
362
  clampScalar(e, t) {
354
- return this.x = M(this.x, e, t), this.y = M(this.y, e, t), this;
363
+ return this.x = P(this.x, e, t), this.y = P(this.y, e, t), this;
355
364
  }
356
365
  clampLength(e, t) {
357
366
  let n = this.length();
358
- return this.divideScalar(n || 1).multiplyScalar(M(n, e, t));
367
+ return this.divideScalar(n || 1).multiplyScalar(P(n, e, t));
359
368
  }
360
369
  floor() {
361
370
  return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this;
@@ -397,7 +406,7 @@ var Qt = {
397
406
  let t = Math.sqrt(this.lengthSq() * e.lengthSq());
398
407
  if (t === 0) return Math.PI / 2;
399
408
  let n = this.dot(e) / t;
400
- return Math.acos(M(n, -1, 1));
409
+ return Math.acos(P(n, -1, 1));
401
410
  }
402
411
  distanceTo(e) {
403
412
  return Math.sqrt(this.distanceToSquared(e));
@@ -519,7 +528,7 @@ var Qt = {
519
528
  case "XZY":
520
529
  this._x = d * l * u - c * f * p, this._y = c * f * u - d * l * p, this._z = c * l * p + d * f * u, this._w = c * l * u + d * f * p;
521
530
  break;
522
- default: k("Quaternion: .setFromEuler() encountered an unknown order: " + a);
531
+ default: j("Quaternion: .setFromEuler() encountered an unknown order: " + a);
523
532
  }
524
533
  return t === !0 && this._onChangeCallback(), this;
525
534
  }
@@ -549,7 +558,7 @@ var Qt = {
549
558
  return n < 1e-8 ? (n = 0, Math.abs(e.x) > Math.abs(e.z) ? (this._x = -e.y, this._y = e.x, this._z = 0, this._w = n) : (this._x = 0, this._y = -e.z, this._z = e.y, this._w = n)) : (this._x = e.y * t.z - e.z * t.y, this._y = e.z * t.x - e.x * t.z, this._z = e.x * t.y - e.y * t.x, this._w = n), this.normalize();
550
559
  }
551
560
  angleTo(e) {
552
- return 2 * Math.acos(Math.abs(M(this.dot(e), -1, 1)));
561
+ return 2 * Math.acos(Math.abs(P(this.dot(e), -1, 1)));
553
562
  }
554
563
  rotateTowards(e, t) {
555
564
  let n = this.angleTo(e);
@@ -628,7 +637,7 @@ var Qt = {
628
637
  *[Symbol.iterator]() {
629
638
  yield this._x, yield this._y, yield this._z, yield this._w;
630
639
  }
631
- }, I = class e {
640
+ }, R = class e {
632
641
  static {
633
642
  e.prototype.isVector3 = !0;
634
643
  }
@@ -753,14 +762,14 @@ var Qt = {
753
762
  return this.x = Math.max(this.x, e.x), this.y = Math.max(this.y, e.y), this.z = Math.max(this.z, e.z), this;
754
763
  }
755
764
  clamp(e, t) {
756
- return this.x = M(this.x, e.x, t.x), this.y = M(this.y, e.y, t.y), this.z = M(this.z, e.z, t.z), this;
765
+ return this.x = P(this.x, e.x, t.x), this.y = P(this.y, e.y, t.y), this.z = P(this.z, e.z, t.z), this;
757
766
  }
758
767
  clampScalar(e, t) {
759
- return this.x = M(this.x, e, t), this.y = M(this.y, e, t), this.z = M(this.z, e, t), this;
768
+ return this.x = P(this.x, e, t), this.y = P(this.y, e, t), this.z = P(this.z, e, t), this;
760
769
  }
761
770
  clampLength(e, t) {
762
771
  let n = this.length();
763
- return this.divideScalar(n || 1).multiplyScalar(M(n, e, t));
772
+ return this.divideScalar(n || 1).multiplyScalar(P(n, e, t));
764
773
  }
765
774
  floor() {
766
775
  return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this.z = Math.floor(this.z), this;
@@ -824,7 +833,7 @@ var Qt = {
824
833
  let t = Math.sqrt(this.lengthSq() * e.lengthSq());
825
834
  if (t === 0) return Math.PI / 2;
826
835
  let n = this.dot(e) / t;
827
- return Math.acos(M(n, -1, 1));
836
+ return Math.acos(P(n, -1, 1));
828
837
  }
829
838
  distanceTo(e) {
830
839
  return Math.sqrt(this.distanceToSquared(e));
@@ -891,7 +900,7 @@ var Qt = {
891
900
  *[Symbol.iterator]() {
892
901
  yield this.x, yield this.y, yield this.z;
893
902
  }
894
- }, en = /* @__PURE__ */ new I(), tn = /* @__PURE__ */ new $t(), nn = class e {
903
+ }, en = /* @__PURE__ */ new R(), tn = /* @__PURE__ */ new $t(), nn = class e {
895
904
  static {
896
905
  e.prototype.isMatrix3 = !0;
897
906
  }
@@ -1004,7 +1013,7 @@ var Qt = {
1004
1013
  function sn() {
1005
1014
  let e = {
1006
1015
  enabled: !0,
1007
- workingColorSpace: $e,
1016
+ workingColorSpace: Ze,
1008
1017
  spaces: {},
1009
1018
  convert: function(e, t, n) {
1010
1019
  return this.enabled === !1 || t === n || !t || !n ? e : (this.spaces[t].transfer === "srgb" && (e.r = ln(e.r), e.g = ln(e.g), e.b = ln(e.b)), this.spaces[t].primaries !== this.spaces[n].primaries && (e.applyMatrix3(this.spaces[t].toXYZ), e.applyMatrix3(this.spaces[n].fromXYZ)), this.spaces[n].transfer === "srgb" && (e.r = un(e.r), e.g = un(e.g), e.b = un(e.b)), e);
@@ -1019,7 +1028,7 @@ function sn() {
1019
1028
  return this.spaces[e].primaries;
1020
1029
  },
1021
1030
  getTransfer: function(e) {
1022
- return e === "" ? et : this.spaces[e].transfer;
1031
+ return e === "" ? Qe : this.spaces[e].transfer;
1023
1032
  },
1024
1033
  getToneMappingMode: function(e) {
1025
1034
  return this.spaces[e].outputColorSpaceConfig.toneMappingMode || "standard";
@@ -1058,24 +1067,24 @@ function sn() {
1058
1067
  .0722
1059
1068
  ], r = [.3127, .329];
1060
1069
  return e.define({
1061
- [$e]: {
1070
+ [Ze]: {
1062
1071
  primaries: t,
1063
1072
  whitePoint: r,
1064
- transfer: et,
1073
+ transfer: Qe,
1065
1074
  toXYZ: an,
1066
1075
  fromXYZ: on,
1067
1076
  luminanceCoefficients: n,
1068
- workingColorSpaceConfig: { unpackColorSpace: Qe },
1069
- outputColorSpaceConfig: { drawingBufferColorSpace: Qe }
1077
+ workingColorSpaceConfig: { unpackColorSpace: Xe },
1078
+ outputColorSpaceConfig: { drawingBufferColorSpace: Xe }
1070
1079
  },
1071
- [Qe]: {
1080
+ [Xe]: {
1072
1081
  primaries: t,
1073
1082
  whitePoint: r,
1074
- transfer: tt,
1083
+ transfer: $e,
1075
1084
  toXYZ: an,
1076
1085
  fromXYZ: on,
1077
1086
  luminanceCoefficients: n,
1078
- outputColorSpaceConfig: { drawingBufferColorSpace: Qe }
1087
+ outputColorSpaceConfig: { drawingBufferColorSpace: Xe }
1079
1088
  }
1080
1089
  }), e;
1081
1090
  }
@@ -1092,7 +1101,7 @@ var dn, fn = class {
1092
1101
  let n;
1093
1102
  if (e instanceof HTMLCanvasElement) n = e;
1094
1103
  else {
1095
- dn === void 0 && (dn = vt("canvas")), dn.width = e.width, dn.height = e.height;
1104
+ dn === void 0 && (dn = _t("canvas")), dn.width = e.width, dn.height = e.height;
1096
1105
  let t = dn.getContext("2d");
1097
1106
  e instanceof ImageData ? t.putImageData(e, 0, 0) : t.drawImage(e, 0, 0, e.width, e.height), n = dn;
1098
1107
  }
@@ -1100,7 +1109,7 @@ var dn, fn = class {
1100
1109
  }
1101
1110
  static sRGBToLinear(e) {
1102
1111
  if (typeof HTMLImageElement < "u" && e instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap) {
1103
- let t = vt("canvas");
1112
+ let t = _t("canvas");
1104
1113
  t.width = e.width, t.height = e.height;
1105
1114
  let n = t.getContext("2d");
1106
1115
  n.drawImage(e, 0, 0, e.width, e.height);
@@ -1115,11 +1124,11 @@ var dn, fn = class {
1115
1124
  width: e.width,
1116
1125
  height: e.height
1117
1126
  };
1118
- } else return k("ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."), e;
1127
+ } else return j("ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."), e;
1119
1128
  }
1120
1129
  }, pn = 0, mn = class {
1121
1130
  constructor(e = null) {
1122
- this.isSource = !0, Object.defineProperty(this, "id", { value: pn++ }), this.uuid = Nt(), this.data = e, this.dataReady = !0, this.version = 0;
1131
+ this.isTextureSource = !0, Object.defineProperty(this, "id", { value: pn++ }), this.uuid = Nt(), this.data = e, this.dataReady = !0, this.version = 0;
1123
1132
  }
1124
1133
  getSize(e) {
1125
1134
  let t = this.data;
@@ -1152,20 +1161,24 @@ function hn(e) {
1152
1161
  width: e.width,
1153
1162
  height: e.height,
1154
1163
  type: e.data.constructor.name
1155
- } : (k("Texture: Unable to serialize Texture."), {});
1164
+ } : (j("Texture: Unable to serialize Texture."), {});
1156
1165
  }
1157
- var gn = 0, _n = /* @__PURE__ */ new I(), L = class e extends kt {
1166
+ var gn = class extends mn {
1167
+ constructor(e = null) {
1168
+ Tt("Source: \"Source\" has been renamed to \"TextureSource\". Please update your code to use \"THREE.TextureSource\" instead."), super(e), this.isSource = !0;
1169
+ }
1170
+ }, _n = 0, vn = /* @__PURE__ */ new R(), z = class e extends kt {
1158
1171
  constructor(t = e.DEFAULT_IMAGE, n = e.DEFAULT_MAPPING, i = r, a = r, o = c, s = u, l = D, d = f, p = e.DEFAULT_ANISOTROPY, m = "") {
1159
- super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: gn++ }), this.uuid = Nt(), this.name = "", this.source = new mn(t), this.mipmaps = [], this.mapping = n, this.channel = 0, this.wrapS = i, this.wrapT = a, this.magFilter = o, this.minFilter = s, this.anisotropy = p, this.format = l, this.internalFormat = null, this.type = d, this.offset = new F(0, 0), this.repeat = new F(1, 1), this.center = new F(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new nn(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = m, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(t && t.depth && t.depth > 1), this.pmremVersion = 0, this.normalized = !1;
1172
+ super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: _n++ }), this.uuid = Nt(), this.name = "", this.source = new mn(t), this.mipmaps = [], this.mapping = n, this.channel = 0, this.wrapS = i, this.wrapT = a, this.magFilter = o, this.minFilter = s, this.anisotropy = p, this.format = l, this.internalFormat = null, this.type = d, this.offset = new L(0, 0), this.repeat = new L(1, 1), this.center = new L(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new nn(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = m, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(t && t.depth && t.depth > 1), this.pmremVersion = 0, this.normalized = !1;
1160
1173
  }
1161
1174
  get width() {
1162
- return this.source.getSize(_n).x;
1175
+ return this.source.getSize(vn).x;
1163
1176
  }
1164
1177
  get height() {
1165
- return this.source.getSize(_n).y;
1178
+ return this.source.getSize(vn).y;
1166
1179
  }
1167
1180
  get depth() {
1168
- return this.source.getSize(_n).z;
1181
+ return this.source.getSize(vn).z;
1169
1182
  }
1170
1183
  get image() {
1171
1184
  return this.source.data;
@@ -1195,12 +1208,12 @@ var gn = 0, _n = /* @__PURE__ */ new I(), L = class e extends kt {
1195
1208
  for (let t in e) {
1196
1209
  let n = e[t];
1197
1210
  if (n === void 0) {
1198
- k(`Texture.setValues(): parameter '${t}' has value of undefined.`);
1211
+ j(`Texture.setValues(): parameter '${t}' has value of undefined.`);
1199
1212
  continue;
1200
1213
  }
1201
1214
  let r = this[t];
1202
1215
  if (r === void 0) {
1203
- k(`Texture.setValues(): property '${t}' does not exist.`);
1216
+ j(`Texture.setValues(): property '${t}' does not exist.`);
1204
1217
  continue;
1205
1218
  }
1206
1219
  r && n && r.isVector2 && n.isVector2 || r && n && r.isVector3 && n.isVector3 || r && n && r.isMatrix3 && n.isMatrix3 ? r.copy(n) : this[t] = n;
@@ -1276,8 +1289,8 @@ var gn = 0, _n = /* @__PURE__ */ new I(), L = class e extends kt {
1276
1289
  e === !0 && this.pmremVersion++;
1277
1290
  }
1278
1291
  };
1279
- L.DEFAULT_IMAGE = null, L.DEFAULT_MAPPING = 300, L.DEFAULT_ANISOTROPY = 1;
1280
- var vn = class e {
1292
+ z.DEFAULT_IMAGE = null, z.DEFAULT_MAPPING = 300, z.DEFAULT_ANISOTROPY = 1;
1293
+ var yn = class e {
1281
1294
  static {
1282
1295
  e.prototype.isVector4 = !0;
1283
1296
  }
@@ -1411,14 +1424,14 @@ var vn = class e {
1411
1424
  return this.x = Math.max(this.x, e.x), this.y = Math.max(this.y, e.y), this.z = Math.max(this.z, e.z), this.w = Math.max(this.w, e.w), this;
1412
1425
  }
1413
1426
  clamp(e, t) {
1414
- return this.x = M(this.x, e.x, t.x), this.y = M(this.y, e.y, t.y), this.z = M(this.z, e.z, t.z), this.w = M(this.w, e.w, t.w), this;
1427
+ return this.x = P(this.x, e.x, t.x), this.y = P(this.y, e.y, t.y), this.z = P(this.z, e.z, t.z), this.w = P(this.w, e.w, t.w), this;
1415
1428
  }
1416
1429
  clampScalar(e, t) {
1417
- return this.x = M(this.x, e, t), this.y = M(this.y, e, t), this.z = M(this.z, e, t), this.w = M(this.w, e, t), this;
1430
+ return this.x = P(this.x, e, t), this.y = P(this.y, e, t), this.z = P(this.z, e, t), this.w = P(this.w, e, t), this;
1418
1431
  }
1419
1432
  clampLength(e, t) {
1420
1433
  let n = this.length();
1421
- return this.divideScalar(n || 1).multiplyScalar(M(n, e, t));
1434
+ return this.divideScalar(n || 1).multiplyScalar(P(n, e, t));
1422
1435
  }
1423
1436
  floor() {
1424
1437
  return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this.z = Math.floor(this.z), this.w = Math.floor(this.w), this;
@@ -1477,7 +1490,7 @@ var vn = class e {
1477
1490
  *[Symbol.iterator]() {
1478
1491
  yield this.x, yield this.y, yield this.z, yield this.w;
1479
1492
  }
1480
- }, yn = class extends kt {
1493
+ }, bn = class extends kt {
1481
1494
  constructor(e = 1, t = 1, n = {}) {
1482
1495
  super(), n = Object.assign({
1483
1496
  generateMipmaps: !1,
@@ -1485,22 +1498,26 @@ var vn = class e {
1485
1498
  minFilter: c,
1486
1499
  depthBuffer: !0,
1487
1500
  stencilBuffer: !1,
1501
+ resolveColorBuffer: !0,
1488
1502
  resolveDepthBuffer: !0,
1489
1503
  resolveStencilBuffer: !0,
1504
+ storeMultisampledColorBuffer: !0,
1505
+ storeMultisampledDepthBuffer: !0,
1506
+ storeMultisampledStencilBuffer: !0,
1490
1507
  depthTexture: null,
1491
1508
  samples: 0,
1492
1509
  count: 1,
1493
1510
  depth: 1,
1494
1511
  multiview: !1,
1495
1512
  useArrayDepthTexture: !1
1496
- }, n), this.isRenderTarget = !0, this.width = e, this.height = t, this.depth = n.depth, this.scissor = new vn(0, 0, e, t), this.scissorTest = !1, this.viewport = new vn(0, 0, e, t), this.textures = [];
1497
- let r = new L({
1513
+ }, n), this.isRenderTarget = !0, this.width = e, this.height = t, this.depth = n.depth, this.scissor = new yn(0, 0, e, t), this.scissorTest = !1, this.viewport = new yn(0, 0, e, t), this.textures = [];
1514
+ let r = new z({
1498
1515
  width: e,
1499
1516
  height: t,
1500
1517
  depth: n.depth
1501
1518
  }), i = n.count;
1502
1519
  for (let e = 0; e < i; e++) this.textures[e] = r.clone(), this.textures[e].isRenderTargetTexture = !0, this.textures[e].renderTarget = this;
1503
- this._setTextureOptions(n), this.depthBuffer = n.depthBuffer, this.stencilBuffer = n.stencilBuffer, this.resolveDepthBuffer = n.resolveDepthBuffer, this.resolveStencilBuffer = n.resolveStencilBuffer, this._depthTexture = null, this.depthTexture = n.depthTexture, this.samples = n.samples, this.multiview = n.multiview, this.useArrayDepthTexture = n.useArrayDepthTexture;
1520
+ this._setTextureOptions(n), this.depthBuffer = n.depthBuffer, this.stencilBuffer = n.stencilBuffer, this.resolveColorBuffer = n.resolveColorBuffer, this.resolveDepthBuffer = n.resolveDepthBuffer, this.resolveStencilBuffer = n.resolveStencilBuffer, this.storeMultisampledColorBuffer = n.storeMultisampledColorBuffer, this.storeMultisampledDepthBuffer = n.storeMultisampledDepthBuffer, this.storeMultisampledStencilBuffer = n.storeMultisampledStencilBuffer, this._depthTexture = null, this.depthTexture = n.depthTexture, this.samples = n.samples, this.multiview = n.multiview, this.useArrayDepthTexture = n.useArrayDepthTexture;
1504
1521
  }
1505
1522
  _setTextureOptions(e = {}) {
1506
1523
  let t = {
@@ -1519,7 +1536,7 @@ var vn = class e {
1519
1536
  this.textures[0] = e;
1520
1537
  }
1521
1538
  set depthTexture(e) {
1522
- this._depthTexture !== null && (this._depthTexture.renderTarget = null), e !== null && (e.renderTarget = this), this._depthTexture = e;
1539
+ this._depthTexture !== null && this._depthTexture.renderTarget === this && (this._depthTexture.renderTarget = null), e !== null && e.renderTarget === null && (e.renderTarget = this), this._depthTexture = e;
1523
1540
  }
1524
1541
  get depthTexture() {
1525
1542
  return this._depthTexture;
@@ -1542,16 +1559,20 @@ var vn = class e {
1542
1559
  let n = Object.assign({}, e.textures[t].image);
1543
1560
  this.textures[t].source = new mn(n);
1544
1561
  }
1545
- return this.depthBuffer = e.depthBuffer, this.stencilBuffer = e.stencilBuffer, this.resolveDepthBuffer = e.resolveDepthBuffer, this.resolveStencilBuffer = e.resolveStencilBuffer, e.depthTexture !== null && (this.depthTexture = e.depthTexture.clone()), this.samples = e.samples, this.multiview = e.multiview, this.useArrayDepthTexture = e.useArrayDepthTexture, this;
1562
+ if (this.depthBuffer = e.depthBuffer, this.stencilBuffer = e.stencilBuffer, this.resolveColorBuffer = e.resolveColorBuffer, this.resolveDepthBuffer = e.resolveDepthBuffer, this.resolveStencilBuffer = e.resolveStencilBuffer, this.storeMultisampledColorBuffer = e.storeMultisampledColorBuffer, this.storeMultisampledDepthBuffer = e.storeMultisampledDepthBuffer, this.storeMultisampledStencilBuffer = e.storeMultisampledStencilBuffer, e.depthTexture !== null) if (e.depthTexture.renderTarget === e) {
1563
+ let t = e.depthTexture.clone();
1564
+ t.renderTarget = null, this.depthTexture = t;
1565
+ } else this.depthTexture = e.depthTexture;
1566
+ return this.samples = e.samples, this.multiview = e.multiview, this.useArrayDepthTexture = e.useArrayDepthTexture, this;
1546
1567
  }
1547
1568
  dispose() {
1548
1569
  this.dispatchEvent({ type: "dispose" });
1549
1570
  }
1550
- }, bn = class extends yn {
1571
+ }, xn = class extends bn {
1551
1572
  constructor(e = 1, t = 1, n = {}) {
1552
1573
  super(e, t, n), this.isWebGLRenderTarget = !0;
1553
1574
  }
1554
- }, xn = class extends L {
1575
+ }, Sn = class extends z {
1555
1576
  constructor(e = null, t = 1, n = 1, i = 1) {
1556
1577
  super(null), this.isDataArrayTexture = !0, this.image = {
1557
1578
  data: e,
@@ -1560,13 +1581,16 @@ var vn = class e {
1560
1581
  depth: i
1561
1582
  }, this.magFilter = a, this.minFilter = a, this.wrapR = r, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1, this.layerUpdates = /* @__PURE__ */ new Set();
1562
1583
  }
1584
+ copy(e) {
1585
+ return super.copy(e), this.wrapR = e.wrapR, this;
1586
+ }
1563
1587
  addLayerUpdate(e) {
1564
1588
  this.layerUpdates.add(e);
1565
1589
  }
1566
1590
  clearLayerUpdates() {
1567
1591
  this.layerUpdates.clear();
1568
1592
  }
1569
- }, Sn = class extends L {
1593
+ }, Cn = class extends z {
1570
1594
  constructor(e = null, t = 1, n = 1, i = 1) {
1571
1595
  super(null), this.isData3DTexture = !0, this.image = {
1572
1596
  data: e,
@@ -1575,7 +1599,10 @@ var vn = class e {
1575
1599
  depth: i
1576
1600
  }, this.magFilter = a, this.minFilter = a, this.wrapR = r, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
1577
1601
  }
1578
- }, R = class e {
1602
+ copy(e) {
1603
+ return super.copy(e), this.wrapR = e.wrapR, this;
1604
+ }
1605
+ }, B = class e {
1579
1606
  static {
1580
1607
  e.prototype.isMatrix4 = !0;
1581
1608
  }
@@ -1629,7 +1656,7 @@ var vn = class e {
1629
1656
  }
1630
1657
  extractRotation(e) {
1631
1658
  if (e.determinantAffine() === 0) return this.identity();
1632
- let t = this.elements, n = e.elements, r = 1 / Cn.setFromMatrixColumn(e, 0).length(), i = 1 / Cn.setFromMatrixColumn(e, 1).length(), a = 1 / Cn.setFromMatrixColumn(e, 2).length();
1659
+ let t = this.elements, n = e.elements, r = 1 / wn.setFromMatrixColumn(e, 0).length(), i = 1 / wn.setFromMatrixColumn(e, 1).length(), a = 1 / wn.setFromMatrixColumn(e, 2).length();
1633
1660
  return t[0] = n[0] * r, t[1] = n[1] * r, t[2] = n[2] * r, t[3] = 0, t[4] = n[4] * i, t[5] = n[5] * i, t[6] = n[6] * i, t[7] = 0, t[8] = n[8] * a, t[9] = n[9] * a, t[10] = n[10] * a, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;
1634
1661
  }
1635
1662
  makeRotationFromEuler(e) {
@@ -1656,11 +1683,11 @@ var vn = class e {
1656
1683
  return t[3] = 0, t[7] = 0, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;
1657
1684
  }
1658
1685
  makeRotationFromQuaternion(e) {
1659
- return this.compose(Tn, e, En);
1686
+ return this.compose(En, e, Dn);
1660
1687
  }
1661
1688
  lookAt(e, t, n) {
1662
1689
  let r = this.elements;
1663
- return z.subVectors(e, t), z.lengthSq() === 0 && (z.z = 1), z.normalize(), Dn.crossVectors(n, z), Dn.lengthSq() === 0 && (Math.abs(n.z) === 1 ? z.x += 1e-4 : z.z += 1e-4, z.normalize(), Dn.crossVectors(n, z)), Dn.normalize(), On.crossVectors(z, Dn), r[0] = Dn.x, r[4] = On.x, r[8] = z.x, r[1] = Dn.y, r[5] = On.y, r[9] = z.y, r[2] = Dn.z, r[6] = On.z, r[10] = z.z, this;
1690
+ return An.subVectors(e, t), An.lengthSq() === 0 && (An.z = 1), An.normalize(), On.crossVectors(n, An), On.lengthSq() === 0 && (Math.abs(n.z) === 1 ? An.x += 1e-4 : An.z += 1e-4, An.normalize(), On.crossVectors(n, An)), On.normalize(), kn.crossVectors(An, On), r[0] = On.x, r[4] = kn.x, r[8] = An.x, r[1] = On.y, r[5] = kn.y, r[9] = An.y, r[2] = On.z, r[6] = kn.z, r[10] = An.z, this;
1664
1691
  }
1665
1692
  multiply(e) {
1666
1693
  return this.multiplyMatrices(this, e);
@@ -1669,8 +1696,8 @@ var vn = class e {
1669
1696
  return this.multiplyMatrices(e, this);
1670
1697
  }
1671
1698
  multiplyMatrices(e, t) {
1672
- let n = e.elements, r = t.elements, i = this.elements, a = n[0], o = n[4], s = n[8], c = n[12], l = n[1], u = n[5], d = n[9], f = n[13], p = n[2], m = n[6], h = n[10], g = n[14], _ = n[3], v = n[7], y = n[11], b = n[15], x = r[0], S = r[4], C = r[8], w = r[12], T = r[1], E = r[5], D = r[9], ee = r[13], te = r[2], O = r[6], ne = r[10], re = r[14], ie = r[3], ae = r[7], oe = r[11], se = r[15];
1673
- return i[0] = a * x + o * T + s * te + c * ie, i[4] = a * S + o * E + s * O + c * ae, i[8] = a * C + o * D + s * ne + c * oe, i[12] = a * w + o * ee + s * re + c * se, i[1] = l * x + u * T + d * te + f * ie, i[5] = l * S + u * E + d * O + f * ae, i[9] = l * C + u * D + d * ne + f * oe, i[13] = l * w + u * ee + d * re + f * se, i[2] = p * x + m * T + h * te + g * ie, i[6] = p * S + m * E + h * O + g * ae, i[10] = p * C + m * D + h * ne + g * oe, i[14] = p * w + m * ee + h * re + g * se, i[3] = _ * x + v * T + y * te + b * ie, i[7] = _ * S + v * E + y * O + b * ae, i[11] = _ * C + v * D + y * ne + b * oe, i[15] = _ * w + v * ee + y * re + b * se, this;
1699
+ let n = e.elements, r = t.elements, i = this.elements, a = n[0], o = n[4], s = n[8], c = n[12], l = n[1], u = n[5], d = n[9], f = n[13], p = n[2], m = n[6], h = n[10], g = n[14], _ = n[3], v = n[7], y = n[11], b = n[15], x = r[0], S = r[4], C = r[8], w = r[12], T = r[1], E = r[5], D = r[9], O = r[13], k = r[2], A = r[6], ee = r[10], te = r[14], ne = r[3], re = r[7], ie = r[11], ae = r[15];
1700
+ return i[0] = a * x + o * T + s * k + c * ne, i[4] = a * S + o * E + s * A + c * re, i[8] = a * C + o * D + s * ee + c * ie, i[12] = a * w + o * O + s * te + c * ae, i[1] = l * x + u * T + d * k + f * ne, i[5] = l * S + u * E + d * A + f * re, i[9] = l * C + u * D + d * ee + f * ie, i[13] = l * w + u * O + d * te + f * ae, i[2] = p * x + m * T + h * k + g * ne, i[6] = p * S + m * E + h * A + g * re, i[10] = p * C + m * D + h * ee + g * ie, i[14] = p * w + m * O + h * te + g * ae, i[3] = _ * x + v * T + y * k + b * ne, i[7] = _ * S + v * E + y * A + b * re, i[11] = _ * C + v * D + y * ee + b * ie, i[15] = _ * w + v * O + y * te + b * ae, this;
1674
1701
  }
1675
1702
  multiplyScalar(e) {
1676
1703
  let t = this.elements;
@@ -1693,10 +1720,10 @@ var vn = class e {
1693
1720
  return e.isVector3 ? (r[12] = e.x, r[13] = e.y, r[14] = e.z) : (r[12] = e, r[13] = t, r[14] = n), this;
1694
1721
  }
1695
1722
  invert() {
1696
- let e = this.elements, t = e[0], n = e[1], r = e[2], i = e[3], a = e[4], o = e[5], s = e[6], c = e[7], l = e[8], u = e[9], d = e[10], f = e[11], p = e[12], m = e[13], h = e[14], g = e[15], _ = t * o - n * a, v = t * s - r * a, y = t * c - i * a, b = n * s - r * o, x = n * c - i * o, S = r * c - i * s, C = l * m - u * p, w = l * h - d * p, T = l * g - f * p, E = u * h - d * m, D = u * g - f * m, ee = d * g - f * h, te = _ * ee - v * D + y * E + b * T - x * w + S * C;
1697
- if (te === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
1698
- let O = 1 / te;
1699
- return e[0] = (o * ee - s * D + c * E) * O, e[1] = (r * D - n * ee - i * E) * O, e[2] = (m * S - h * x + g * b) * O, e[3] = (d * x - u * S - f * b) * O, e[4] = (s * T - a * ee - c * w) * O, e[5] = (t * ee - r * T + i * w) * O, e[6] = (h * y - p * S - g * v) * O, e[7] = (l * S - d * y + f * v) * O, e[8] = (a * D - o * T + c * C) * O, e[9] = (n * T - t * D - i * C) * O, e[10] = (p * x - m * y + g * _) * O, e[11] = (u * y - l * x - f * _) * O, e[12] = (o * w - a * E - s * C) * O, e[13] = (t * E - n * w + r * C) * O, e[14] = (m * v - p * b - h * _) * O, e[15] = (l * b - u * v + d * _) * O, this;
1723
+ let e = this.elements, t = e[0], n = e[1], r = e[2], i = e[3], a = e[4], o = e[5], s = e[6], c = e[7], l = e[8], u = e[9], d = e[10], f = e[11], p = e[12], m = e[13], h = e[14], g = e[15], _ = t * o - n * a, v = t * s - r * a, y = t * c - i * a, b = n * s - r * o, x = n * c - i * o, S = r * c - i * s, C = l * m - u * p, w = l * h - d * p, T = l * g - f * p, E = u * h - d * m, D = u * g - f * m, O = d * g - f * h, k = _ * O - v * D + y * E + b * T - x * w + S * C;
1724
+ if (k === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
1725
+ let A = 1 / k;
1726
+ return e[0] = (o * O - s * D + c * E) * A, e[1] = (r * D - n * O - i * E) * A, e[2] = (m * S - h * x + g * b) * A, e[3] = (d * x - u * S - f * b) * A, e[4] = (s * T - a * O - c * w) * A, e[5] = (t * O - r * T + i * w) * A, e[6] = (h * y - p * S - g * v) * A, e[7] = (l * S - d * y + f * v) * A, e[8] = (a * D - o * T + c * C) * A, e[9] = (n * T - t * D - i * C) * A, e[10] = (p * x - m * y + g * _) * A, e[11] = (u * y - l * x - f * _) * A, e[12] = (o * w - a * E - s * C) * A, e[13] = (t * E - n * w + r * C) * A, e[14] = (m * v - p * b - h * _) * A, e[15] = (l * b - u * v + d * _) * A, this;
1700
1727
  }
1701
1728
  scale(e) {
1702
1729
  let t = this.elements, n = e.x, r = e.y, i = e.z;
@@ -1740,12 +1767,12 @@ var vn = class e {
1740
1767
  e.x = r[12], e.y = r[13], e.z = r[14];
1741
1768
  let i = this.determinantAffine();
1742
1769
  if (i === 0) return n.set(1, 1, 1), t.identity(), this;
1743
- let a = Cn.set(r[0], r[1], r[2]).length(), o = Cn.set(r[4], r[5], r[6]).length(), s = Cn.set(r[8], r[9], r[10]).length();
1744
- i < 0 && (a = -a), wn.copy(this);
1770
+ let a = wn.set(r[0], r[1], r[2]).length(), o = wn.set(r[4], r[5], r[6]).length(), s = wn.set(r[8], r[9], r[10]).length();
1771
+ i < 0 && (a = -a), Tn.copy(this);
1745
1772
  let c = 1 / a, l = 1 / o, u = 1 / s;
1746
- return wn.elements[0] *= c, wn.elements[1] *= c, wn.elements[2] *= c, wn.elements[4] *= l, wn.elements[5] *= l, wn.elements[6] *= l, wn.elements[8] *= u, wn.elements[9] *= u, wn.elements[10] *= u, t.setFromRotationMatrix(wn), n.x = a, n.y = o, n.z = s, this;
1773
+ return Tn.elements[0] *= c, Tn.elements[1] *= c, Tn.elements[2] *= c, Tn.elements[4] *= l, Tn.elements[5] *= l, Tn.elements[6] *= l, Tn.elements[8] *= u, Tn.elements[9] *= u, Tn.elements[10] *= u, t.setFromRotationMatrix(Tn), n.x = a, n.y = o, n.z = s, this;
1747
1774
  }
1748
- makePerspective(e, t, n, r, i, a, o = ft, s = !1) {
1775
+ makePerspective(e, t, n, r, i, a, o = ut, s = !1) {
1749
1776
  let c = this.elements, l = 2 * i / (t - e), u = 2 * i / (n - r), d = (t + e) / (t - e), f = (n + r) / (n - r), p, m;
1750
1777
  if (s) p = i / (a - i), m = a * i / (a - i);
1751
1778
  else if (o === 2e3) p = -(a + i) / (a - i), m = -2 * a * i / (a - i);
@@ -1753,7 +1780,7 @@ var vn = class e {
1753
1780
  else throw Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: " + o);
1754
1781
  return c[0] = l, c[4] = 0, c[8] = d, c[12] = 0, c[1] = 0, c[5] = u, c[9] = f, c[13] = 0, c[2] = 0, c[6] = 0, c[10] = p, c[14] = m, c[3] = 0, c[7] = 0, c[11] = -1, c[15] = 0, this;
1755
1782
  }
1756
- makeOrthographic(e, t, n, r, i, a, o = ft, s = !1) {
1783
+ makeOrthographic(e, t, n, r, i, a, o = ut, s = !1) {
1757
1784
  let c = this.elements, l = 2 / (t - e), u = 2 / (n - r), d = -(t + e) / (t - e), f = -(n + r) / (n - r), p, m;
1758
1785
  if (s) p = 1 / (a - i), m = a / (a - i);
1759
1786
  else if (o === 2e3) p = -2 / (a - i), m = -(a + i) / (a - i);
@@ -1774,7 +1801,7 @@ var vn = class e {
1774
1801
  let n = this.elements;
1775
1802
  return e[t] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3], e[t + 4] = n[4], e[t + 5] = n[5], e[t + 6] = n[6], e[t + 7] = n[7], e[t + 8] = n[8], e[t + 9] = n[9], e[t + 10] = n[10], e[t + 11] = n[11], e[t + 12] = n[12], e[t + 13] = n[13], e[t + 14] = n[14], e[t + 15] = n[15], e;
1776
1803
  }
1777
- }, Cn = /* @__PURE__ */ new I(), wn = /* @__PURE__ */ new R(), Tn = /* @__PURE__ */ new I(0, 0, 0), En = /* @__PURE__ */ new I(1, 1, 1), Dn = /* @__PURE__ */ new I(), On = /* @__PURE__ */ new I(), z = /* @__PURE__ */ new I(), kn = /* @__PURE__ */ new R(), An = /* @__PURE__ */ new $t(), jn = class e {
1804
+ }, wn = /* @__PURE__ */ new R(), Tn = /* @__PURE__ */ new B(), En = /* @__PURE__ */ new R(0, 0, 0), Dn = /* @__PURE__ */ new R(1, 1, 1), On = /* @__PURE__ */ new R(), kn = /* @__PURE__ */ new R(), An = /* @__PURE__ */ new R(), jn = /* @__PURE__ */ new B(), Mn = /* @__PURE__ */ new $t(), Nn = class e {
1778
1805
  constructor(t = 0, n = 0, r = 0, i = e.DEFAULT_ORDER) {
1779
1806
  this.isEuler = !0, this._x = t, this._y = n, this._z = r, this._order = i;
1780
1807
  }
@@ -1815,35 +1842,35 @@ var vn = class e {
1815
1842
  let r = e.elements, i = r[0], a = r[4], o = r[8], s = r[1], c = r[5], l = r[9], u = r[2], d = r[6], f = r[10];
1816
1843
  switch (t) {
1817
1844
  case "XYZ":
1818
- this._y = Math.asin(M(o, -1, 1)), Math.abs(o) < .9999999 ? (this._x = Math.atan2(-l, f), this._z = Math.atan2(-a, i)) : (this._x = Math.atan2(d, c), this._z = 0);
1845
+ this._y = Math.asin(P(o, -1, 1)), Math.abs(o) < .9999999 ? (this._x = Math.atan2(-l, f), this._z = Math.atan2(-a, i)) : (this._x = Math.atan2(d, c), this._z = 0);
1819
1846
  break;
1820
1847
  case "YXZ":
1821
- this._x = Math.asin(-M(l, -1, 1)), Math.abs(l) < .9999999 ? (this._y = Math.atan2(o, f), this._z = Math.atan2(s, c)) : (this._y = Math.atan2(-u, i), this._z = 0);
1848
+ this._x = Math.asin(-P(l, -1, 1)), Math.abs(l) < .9999999 ? (this._y = Math.atan2(o, f), this._z = Math.atan2(s, c)) : (this._y = Math.atan2(-u, i), this._z = 0);
1822
1849
  break;
1823
1850
  case "ZXY":
1824
- this._x = Math.asin(M(d, -1, 1)), Math.abs(d) < .9999999 ? (this._y = Math.atan2(-u, f), this._z = Math.atan2(-a, c)) : (this._y = 0, this._z = Math.atan2(s, i));
1851
+ this._x = Math.asin(P(d, -1, 1)), Math.abs(d) < .9999999 ? (this._y = Math.atan2(-u, f), this._z = Math.atan2(-a, c)) : (this._y = 0, this._z = Math.atan2(s, i));
1825
1852
  break;
1826
1853
  case "ZYX":
1827
- this._y = Math.asin(-M(u, -1, 1)), Math.abs(u) < .9999999 ? (this._x = Math.atan2(d, f), this._z = Math.atan2(s, i)) : (this._x = 0, this._z = Math.atan2(-a, c));
1854
+ this._y = Math.asin(-P(u, -1, 1)), Math.abs(u) < .9999999 ? (this._x = Math.atan2(d, f), this._z = Math.atan2(s, i)) : (this._x = 0, this._z = Math.atan2(-a, c));
1828
1855
  break;
1829
1856
  case "YZX":
1830
- this._z = Math.asin(M(s, -1, 1)), Math.abs(s) < .9999999 ? (this._x = Math.atan2(-l, c), this._y = Math.atan2(-u, i)) : (this._x = 0, this._y = Math.atan2(o, f));
1857
+ this._z = Math.asin(P(s, -1, 1)), Math.abs(s) < .9999999 ? (this._x = Math.atan2(-l, c), this._y = Math.atan2(-u, i)) : (this._x = 0, this._y = Math.atan2(o, f));
1831
1858
  break;
1832
1859
  case "XZY":
1833
- this._z = Math.asin(-M(a, -1, 1)), Math.abs(a) < .9999999 ? (this._x = Math.atan2(d, c), this._y = Math.atan2(o, i)) : (this._x = Math.atan2(-l, f), this._y = 0);
1860
+ this._z = Math.asin(-P(a, -1, 1)), Math.abs(a) < .9999999 ? (this._x = Math.atan2(d, c), this._y = Math.atan2(o, i)) : (this._x = Math.atan2(-l, f), this._y = 0);
1834
1861
  break;
1835
- default: k("Euler: .setFromRotationMatrix() encountered an unknown order: " + t);
1862
+ default: j("Euler: .setFromRotationMatrix() encountered an unknown order: " + t);
1836
1863
  }
1837
1864
  return this._order = t, n === !0 && this._onChangeCallback(), this;
1838
1865
  }
1839
1866
  setFromQuaternion(e, t, n) {
1840
- return kn.makeRotationFromQuaternion(e), this.setFromRotationMatrix(kn, t, n);
1867
+ return jn.makeRotationFromQuaternion(e), this.setFromRotationMatrix(jn, t, n);
1841
1868
  }
1842
1869
  setFromVector3(e, t = this._order) {
1843
1870
  return this.set(e.x, e.y, e.z, t);
1844
1871
  }
1845
1872
  reorder(e) {
1846
- return An.setFromEuler(this), this.setFromQuaternion(An, e);
1873
+ return Mn.setFromEuler(this), this.setFromQuaternion(Mn, e);
1847
1874
  }
1848
1875
  equals(e) {
1849
1876
  return e._x === this._x && e._y === this._y && e._z === this._z && e._order === this._order;
@@ -1862,8 +1889,8 @@ var vn = class e {
1862
1889
  yield this._x, yield this._y, yield this._z, yield this._order;
1863
1890
  }
1864
1891
  };
1865
- jn.DEFAULT_ORDER = "XYZ";
1866
- var Mn = class {
1892
+ Nn.DEFAULT_ORDER = "XYZ";
1893
+ var Pn = class {
1867
1894
  constructor() {
1868
1895
  this.mask = 1;
1869
1896
  }
@@ -1891,16 +1918,16 @@ var Mn = class {
1891
1918
  isEnabled(e) {
1892
1919
  return (this.mask & (1 << e | 0)) != 0;
1893
1920
  }
1894
- }, Nn = 0, Pn = /* @__PURE__ */ new I(), Fn = /* @__PURE__ */ new $t(), In = /* @__PURE__ */ new R(), Ln = /* @__PURE__ */ new I(), Rn = /* @__PURE__ */ new I(), zn = /* @__PURE__ */ new I(), Bn = /* @__PURE__ */ new $t(), Vn = /* @__PURE__ */ new I(1, 0, 0), Hn = /* @__PURE__ */ new I(0, 1, 0), Un = /* @__PURE__ */ new I(0, 0, 1), Wn = { type: "added" }, Gn = { type: "removed" }, Kn = {
1921
+ }, Fn = 0, In = /* @__PURE__ */ new R(), Ln = /* @__PURE__ */ new $t(), Rn = /* @__PURE__ */ new B(), zn = /* @__PURE__ */ new R(), Bn = /* @__PURE__ */ new R(), Vn = /* @__PURE__ */ new R(), Hn = /* @__PURE__ */ new $t(), Un = /* @__PURE__ */ new R(1, 0, 0), Wn = /* @__PURE__ */ new R(0, 1, 0), Gn = /* @__PURE__ */ new R(0, 0, 1), Kn = { type: "added" }, qn = { type: "removed" }, Jn = {
1895
1922
  type: "childadded",
1896
1923
  child: null
1897
- }, qn = {
1924
+ }, Yn = {
1898
1925
  type: "childremoved",
1899
1926
  child: null
1900
- }, B = class e extends kt {
1927
+ }, V = class e extends kt {
1901
1928
  constructor() {
1902
- super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Nn++ }), this.uuid = Nt(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = e.DEFAULT_UP.clone();
1903
- let t = new I(), n = new jn(), r = new $t(), i = new I(1, 1, 1);
1929
+ super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Fn++ }), this.uuid = Nt(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = e.DEFAULT_UP.clone();
1930
+ let t = new R(), n = new Nn(), r = new $t(), i = new R(1, 1, 1);
1904
1931
  function a() {
1905
1932
  r.setFromEuler(n, !1);
1906
1933
  }
@@ -1928,9 +1955,9 @@ var Mn = class {
1928
1955
  enumerable: !0,
1929
1956
  value: i
1930
1957
  },
1931
- modelViewMatrix: { value: new R() },
1958
+ modelViewMatrix: { value: new B() },
1932
1959
  normalMatrix: { value: new nn() }
1933
- }), this.matrix = new R(), this.matrixWorld = new R(), this.matrixAutoUpdate = e.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new Mn(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.customDepthMaterial = void 0, this.customDistanceMaterial = void 0, this.static = !1, this.userData = {}, this.pivot = null;
1960
+ }), this.matrix = new B(), this.matrixWorld = new B(), this.matrixAutoUpdate = e.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new Pn(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.customDepthMaterial = void 0, this.customDistanceMaterial = void 0, this.static = !1, this.userData = {}, this.pivot = null;
1934
1961
  }
1935
1962
  onBeforeShadow() {}
1936
1963
  onAfterShadow() {}
@@ -1955,49 +1982,49 @@ var Mn = class {
1955
1982
  this.quaternion.copy(e);
1956
1983
  }
1957
1984
  rotateOnAxis(e, t) {
1958
- return Fn.setFromAxisAngle(e, t), this.quaternion.multiply(Fn), this;
1985
+ return Ln.setFromAxisAngle(e, t), this.quaternion.multiply(Ln), this;
1959
1986
  }
1960
1987
  rotateOnWorldAxis(e, t) {
1961
- return Fn.setFromAxisAngle(e, t), this.quaternion.premultiply(Fn), this;
1988
+ return Ln.setFromAxisAngle(e, t), this.quaternion.premultiply(Ln), this;
1962
1989
  }
1963
1990
  rotateX(e) {
1964
- return this.rotateOnAxis(Vn, e);
1991
+ return this.rotateOnAxis(Un, e);
1965
1992
  }
1966
1993
  rotateY(e) {
1967
- return this.rotateOnAxis(Hn, e);
1994
+ return this.rotateOnAxis(Wn, e);
1968
1995
  }
1969
1996
  rotateZ(e) {
1970
- return this.rotateOnAxis(Un, e);
1997
+ return this.rotateOnAxis(Gn, e);
1971
1998
  }
1972
1999
  translateOnAxis(e, t) {
1973
- return Pn.copy(e).applyQuaternion(this.quaternion), this.position.add(Pn.multiplyScalar(t)), this;
2000
+ return In.copy(e).applyQuaternion(this.quaternion), this.position.add(In.multiplyScalar(t)), this;
1974
2001
  }
1975
2002
  translateX(e) {
1976
- return this.translateOnAxis(Vn, e);
2003
+ return this.translateOnAxis(Un, e);
1977
2004
  }
1978
2005
  translateY(e) {
1979
- return this.translateOnAxis(Hn, e);
2006
+ return this.translateOnAxis(Wn, e);
1980
2007
  }
1981
2008
  translateZ(e) {
1982
- return this.translateOnAxis(Un, e);
2009
+ return this.translateOnAxis(Gn, e);
1983
2010
  }
1984
2011
  localToWorld(e) {
1985
2012
  return this.updateWorldMatrix(!0, !1), e.applyMatrix4(this.matrixWorld);
1986
2013
  }
1987
2014
  worldToLocal(e) {
1988
- return this.updateWorldMatrix(!0, !1), e.applyMatrix4(In.copy(this.matrixWorld).invert());
2015
+ return this.updateWorldMatrix(!0, !1), e.applyMatrix4(Rn.copy(this.matrixWorld).invert());
1989
2016
  }
1990
2017
  lookAt(e, t, n) {
1991
- e.isVector3 ? Ln.copy(e) : Ln.set(e, t, n);
2018
+ e.isVector3 ? zn.copy(e) : zn.set(e, t, n);
1992
2019
  let r = this.parent;
1993
- this.updateWorldMatrix(!0, !1), Rn.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? In.lookAt(Rn, Ln, this.up) : In.lookAt(Ln, Rn, this.up), this.quaternion.setFromRotationMatrix(In), r && (In.extractRotation(r.matrixWorld), Fn.setFromRotationMatrix(In), this.quaternion.premultiply(Fn.invert()));
2020
+ this.updateWorldMatrix(!0, !1), Bn.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? Rn.lookAt(Bn, zn, this.up) : Rn.lookAt(zn, Bn, this.up), this.quaternion.setFromRotationMatrix(Rn), r && (Rn.extractRotation(r.matrixWorld), Ln.setFromRotationMatrix(Rn), this.quaternion.premultiply(Ln.invert()));
1994
2021
  }
1995
2022
  add(e) {
1996
2023
  if (arguments.length > 1) {
1997
2024
  for (let e = 0; e < arguments.length; e++) this.add(arguments[e]);
1998
2025
  return this;
1999
2026
  }
2000
- return e === this ? (A("Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.removeFromParent(), e.parent = this, this.children.push(e), e.dispatchEvent(Wn), Kn.child = e, this.dispatchEvent(Kn), Kn.child = null) : A("Object3D.add: object not an instance of THREE.Object3D.", e), this);
2027
+ return e === this ? (M("Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.removeFromParent(), e.parent = this, this.children.push(e), e.dispatchEvent(Kn), Jn.child = e, this.dispatchEvent(Jn), Jn.child = null) : M("Object3D.add: object not an instance of THREE.Object3D.", e), this);
2001
2028
  }
2002
2029
  remove(e) {
2003
2030
  if (arguments.length > 1) {
@@ -2005,7 +2032,7 @@ var Mn = class {
2005
2032
  return this;
2006
2033
  }
2007
2034
  let t = this.children.indexOf(e);
2008
- return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(Gn), qn.child = e, this.dispatchEvent(qn), qn.child = null), this;
2035
+ return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(qn), Yn.child = e, this.dispatchEvent(Yn), Yn.child = null), this;
2009
2036
  }
2010
2037
  removeFromParent() {
2011
2038
  let e = this.parent;
@@ -2015,7 +2042,7 @@ var Mn = class {
2015
2042
  return this.remove(...this.children);
2016
2043
  }
2017
2044
  attach(e) {
2018
- return this.updateWorldMatrix(!0, !1), In.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), In.multiply(e.parent.matrixWorld)), e.applyMatrix4(In), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(Wn), Kn.child = e, this.dispatchEvent(Kn), Kn.child = null, this;
2045
+ return this.updateWorldMatrix(!0, !1), Rn.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), Rn.multiply(e.parent.matrixWorld)), e.applyMatrix4(Rn), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(Kn), Jn.child = e, this.dispatchEvent(Jn), Jn.child = null, this;
2019
2046
  }
2020
2047
  getObjectById(e) {
2021
2048
  return this.getObjectByProperty("id", e);
@@ -2040,10 +2067,10 @@ var Mn = class {
2040
2067
  return this.updateWorldMatrix(!0, !1), e.setFromMatrixPosition(this.matrixWorld);
2041
2068
  }
2042
2069
  getWorldQuaternion(e) {
2043
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Rn, e, zn), e;
2070
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Bn, e, Vn), e;
2044
2071
  }
2045
2072
  getWorldScale(e) {
2046
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Rn, Bn, e), e;
2073
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Bn, Hn, e), e;
2047
2074
  }
2048
2075
  getWorldDirection(e) {
2049
2076
  this.updateWorldMatrix(!0, !1);
@@ -2051,6 +2078,7 @@ var Mn = class {
2051
2078
  return e.set(t[8], t[9], t[10]).normalize();
2052
2079
  }
2053
2080
  raycast() {}
2081
+ intersectsFrustum() {}
2054
2082
  traverse(e) {
2055
2083
  e(this);
2056
2084
  let t = this.children;
@@ -2104,7 +2132,7 @@ var Mn = class {
2104
2132
  generator: "Object3D.toJSON"
2105
2133
  });
2106
2134
  let r = {};
2107
- r.uuid = this.uuid, r.type = this.type, this.name !== "" && (r.name = this.name), this.castShadow === !0 && (r.castShadow = !0), this.receiveShadow === !0 && (r.receiveShadow = !0), this.visible === !1 && (r.visible = !1), this.frustumCulled === !1 && (r.frustumCulled = !1), this.renderOrder !== 0 && (r.renderOrder = this.renderOrder), this.static !== !1 && (r.static = this.static), Object.keys(this.userData).length > 0 && (r.userData = this.userData), r.layers = this.layers.mask, r.matrix = this.matrix.toArray(), r.up = this.up.toArray(), this.pivot !== null && (r.pivot = this.pivot.toArray()), this.matrixAutoUpdate === !1 && (r.matrixAutoUpdate = !1), this.morphTargetDictionary !== void 0 && (r.morphTargetDictionary = Object.assign({}, this.morphTargetDictionary)), this.morphTargetInfluences !== void 0 && (r.morphTargetInfluences = this.morphTargetInfluences.slice()), this.isInstancedMesh && (r.type = "InstancedMesh", r.count = this.count, r.instanceMatrix = this.instanceMatrix.toJSON(), this.instanceColor !== null && (r.instanceColor = this.instanceColor.toJSON())), this.isBatchedMesh && (r.type = "BatchedMesh", r.perObjectFrustumCulled = this.perObjectFrustumCulled, r.sortObjects = this.sortObjects, r.drawRanges = this._drawRanges, r.reservedRanges = this._reservedRanges, r.geometryInfo = this._geometryInfo.map((e) => ({
2135
+ r.uuid = this.uuid, r.type = this.type, r.name = this.name, r.castShadow = this.castShadow, r.receiveShadow = this.receiveShadow, r.visible = this.visible, r.frustumCulled = this.frustumCulled, r.renderOrder = this.renderOrder, r.static = this.static, r.matrixAutoUpdate = this.matrixAutoUpdate, Object.keys(this.userData).length > 0 && (r.userData = this.userData), r.layers = this.layers.mask, r.matrix = this.matrix.toArray(), r.up = this.up.toArray(), this.pivot !== null && (r.pivot = this.pivot.toArray()), this.morphTargetDictionary !== void 0 && (r.morphTargetDictionary = Object.assign({}, this.morphTargetDictionary)), this.morphTargetInfluences !== void 0 && (r.morphTargetInfluences = this.morphTargetInfluences.slice()), this.isInstancedMesh && (r.type = "InstancedMesh", r.count = this.count, r.instanceMatrix = this.instanceMatrix.toJSON(), this.instanceColor !== null && (r.instanceColor = this.instanceColor.toJSON())), this.isBatchedMesh && (r.type = "BatchedMesh", r.perObjectFrustumCulled = this.perObjectFrustumCulled, r.sortObjects = this.sortObjects, r.drawRanges = this._drawRanges, r.reservedRanges = this._reservedRanges, r.geometryInfo = this._geometryInfo.map((e) => ({
2108
2136
  ...e,
2109
2137
  boundingBox: e.boundingBox ? e.boundingBox.toJSON() : void 0,
2110
2138
  boundingSphere: e.boundingSphere ? e.boundingSphere.toJSON() : void 0
@@ -2165,24 +2193,27 @@ var Mn = class {
2165
2193
  }
2166
2194
  return this;
2167
2195
  }
2196
+ dispose() {
2197
+ this.dispatchEvent({ type: "dispose" });
2198
+ }
2168
2199
  };
2169
- B.DEFAULT_UP = /* @__PURE__ */ new I(0, 1, 0), B.DEFAULT_MATRIX_AUTO_UPDATE = !0, B.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
2170
- var Jn = class extends B {
2200
+ V.DEFAULT_UP = /* @__PURE__ */ new R(0, 1, 0), V.DEFAULT_MATRIX_AUTO_UPDATE = !0, V.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
2201
+ var Xn = class extends V {
2171
2202
  constructor() {
2172
2203
  super(), this.isGroup = !0, this.type = "Group";
2173
2204
  }
2174
- }, Yn = { type: "move" }, Xn = class {
2205
+ }, Zn = { type: "move" }, Qn = class {
2175
2206
  constructor() {
2176
2207
  this._targetRay = null, this._grip = null, this._hand = null;
2177
2208
  }
2178
2209
  getHandSpace() {
2179
- return this._hand === null && (this._hand = new Jn(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand;
2210
+ return this._hand === null && (this._hand = new Xn(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand;
2180
2211
  }
2181
2212
  getTargetRaySpace() {
2182
- return this._targetRay === null && (this._targetRay = new Jn(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new I(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new I()), this._targetRay;
2213
+ return this._targetRay === null && (this._targetRay = new Xn(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new R(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new R()), this._targetRay;
2183
2214
  }
2184
2215
  getGripSpace() {
2185
- return this._grip === null && (this._grip = new Jn(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new I(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new I(), this._grip.eventsEnabled = !1), this._grip;
2216
+ return this._grip === null && (this._grip = new Xn(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new R(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new R(), this._grip.eventsEnabled = !1), this._grip;
2186
2217
  }
2187
2218
  dispatchEvent(e) {
2188
2219
  return this._targetRay !== null && this._targetRay.dispatchEvent(e), this._grip !== null && this._grip.dispatchEvent(e), this._hand !== null && this._hand.dispatchEvent(e), this;
@@ -2227,18 +2258,18 @@ var Jn = class extends B {
2227
2258
  data: e,
2228
2259
  target: this
2229
2260
  })));
2230
- o !== null && (r = t.getPose(e.targetRaySpace, n), r === null && i !== null && (r = i), r !== null && (o.matrix.fromArray(r.transform.matrix), o.matrix.decompose(o.position, o.rotation, o.scale), o.matrixWorldNeedsUpdate = !0, r.linearVelocity ? (o.hasLinearVelocity = !0, o.linearVelocity.copy(r.linearVelocity)) : o.hasLinearVelocity = !1, r.angularVelocity ? (o.hasAngularVelocity = !0, o.angularVelocity.copy(r.angularVelocity)) : o.hasAngularVelocity = !1, this.dispatchEvent(Yn)));
2261
+ o !== null && (r = t.getPose(e.targetRaySpace, n), r === null && i !== null && (r = i), r !== null && (o.matrix.fromArray(r.transform.matrix), o.matrix.decompose(o.position, o.rotation, o.scale), o.matrixWorldNeedsUpdate = !0, r.linearVelocity ? (o.hasLinearVelocity = !0, o.linearVelocity.copy(r.linearVelocity)) : o.hasLinearVelocity = !1, r.angularVelocity ? (o.hasAngularVelocity = !0, o.angularVelocity.copy(r.angularVelocity)) : o.hasAngularVelocity = !1, this.dispatchEvent(Zn)));
2231
2262
  }
2232
2263
  return o !== null && (o.visible = r !== null), s !== null && (s.visible = i !== null), c !== null && (c.visible = a !== null), this;
2233
2264
  }
2234
2265
  _getHandJoint(e, t) {
2235
2266
  if (e.joints[t.jointName] === void 0) {
2236
- let n = new Jn();
2267
+ let n = new Xn();
2237
2268
  n.matrixAutoUpdate = !1, n.visible = !1, e.joints[t.jointName] = n, e.add(n);
2238
2269
  }
2239
2270
  return e.joints[t.jointName];
2240
2271
  }
2241
- }, Zn = {
2272
+ }, $n = {
2242
2273
  aliceblue: 15792383,
2243
2274
  antiquewhite: 16444375,
2244
2275
  aqua: 65535,
@@ -2387,19 +2418,19 @@ var Jn = class extends B {
2387
2418
  whitesmoke: 16119285,
2388
2419
  yellow: 16776960,
2389
2420
  yellowgreen: 10145074
2390
- }, Qn = {
2421
+ }, er = {
2391
2422
  h: 0,
2392
2423
  s: 0,
2393
2424
  l: 0
2394
- }, $n = {
2425
+ }, tr = {
2395
2426
  h: 0,
2396
2427
  s: 0,
2397
2428
  l: 0
2398
2429
  };
2399
- function er(e, t, n) {
2430
+ function nr(e, t, n) {
2400
2431
  return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * 6 * (2 / 3 - n) : e;
2401
2432
  }
2402
- var V = class {
2433
+ var H = class {
2403
2434
  constructor(e, t, n) {
2404
2435
  return this.isColor = !0, this.r = 1, this.g = 1, this.b = 1, this.set(e, t, n);
2405
2436
  }
@@ -2413,23 +2444,23 @@ var V = class {
2413
2444
  setScalar(e) {
2414
2445
  return this.r = e, this.g = e, this.b = e, this;
2415
2446
  }
2416
- setHex(e, t = Qe) {
2447
+ setHex(e, t = Xe) {
2417
2448
  return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, cn.colorSpaceToWorking(this, t), this;
2418
2449
  }
2419
2450
  setRGB(e, t, n, r = cn.workingColorSpace) {
2420
2451
  return this.r = e, this.g = t, this.b = n, cn.colorSpaceToWorking(this, r), this;
2421
2452
  }
2422
2453
  setHSL(e, t, n, r = cn.workingColorSpace) {
2423
- if (e = Pt(e, 1), t = M(t, 0, 1), n = M(n, 0, 1), t === 0) this.r = this.g = this.b = n;
2454
+ if (e = Pt(e, 1), t = P(t, 0, 1), n = P(n, 0, 1), t === 0) this.r = this.g = this.b = n;
2424
2455
  else {
2425
2456
  let r = n <= .5 ? n * (1 + t) : n + t - n * t, i = 2 * n - r;
2426
- this.r = er(i, r, e + 1 / 3), this.g = er(i, r, e), this.b = er(i, r, e - 1 / 3);
2457
+ this.r = nr(i, r, e + 1 / 3), this.g = nr(i, r, e), this.b = nr(i, r, e - 1 / 3);
2427
2458
  }
2428
2459
  return cn.colorSpaceToWorking(this, r), this;
2429
2460
  }
2430
- setStyle(e, t = Qe) {
2461
+ setStyle(e, t = Xe) {
2431
2462
  function n(t) {
2432
- t !== void 0 && parseFloat(t) < 1 && k("Color: Alpha component of " + e + " will be ignored.");
2463
+ t !== void 0 && parseFloat(t) < 1 && j("Color: Alpha component of " + e + " will be ignored.");
2433
2464
  }
2434
2465
  let r;
2435
2466
  if (r = /^(\w+)\(([^\)]*)\)/.exec(e)) {
@@ -2444,19 +2475,19 @@ var V = class {
2444
2475
  case "hsla":
2445
2476
  if (i = /^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o)) return n(i[4]), this.setHSL(parseFloat(i[1]) / 360, parseFloat(i[2]) / 100, parseFloat(i[3]) / 100, t);
2446
2477
  break;
2447
- default: k("Color: Unknown color model " + e);
2478
+ default: j("Color: Unknown color model " + e);
2448
2479
  }
2449
2480
  } else if (r = /^\#([A-Fa-f\d]+)$/.exec(e)) {
2450
2481
  let n = r[1], i = n.length;
2451
2482
  if (i === 3) return this.setRGB(parseInt(n.charAt(0), 16) / 15, parseInt(n.charAt(1), 16) / 15, parseInt(n.charAt(2), 16) / 15, t);
2452
2483
  if (i === 6) return this.setHex(parseInt(n, 16), t);
2453
- k("Color: Invalid hex color " + e);
2484
+ j("Color: Invalid hex color " + e);
2454
2485
  } else if (e && e.length > 0) return this.setColorName(e, t);
2455
2486
  return this;
2456
2487
  }
2457
- setColorName(e, t = Qe) {
2458
- let n = Zn[e.toLowerCase()];
2459
- return n === void 0 ? k("Color: Unknown color " + e) : this.setHex(n, t), this;
2488
+ setColorName(e, t = Xe) {
2489
+ let n = $n[e.toLowerCase()];
2490
+ return n === void 0 ? j("Color: Unknown color " + e) : this.setHex(n, t), this;
2460
2491
  }
2461
2492
  clone() {
2462
2493
  return new this.constructor(this.r, this.g, this.b);
@@ -2476,15 +2507,15 @@ var V = class {
2476
2507
  convertLinearToSRGB() {
2477
2508
  return this.copyLinearToSRGB(this), this;
2478
2509
  }
2479
- getHex(e = Qe) {
2480
- return cn.workingToColorSpace(H.copy(this), e), Math.round(M(H.r * 255, 0, 255)) * 65536 + Math.round(M(H.g * 255, 0, 255)) * 256 + Math.round(M(H.b * 255, 0, 255));
2510
+ getHex(e = Xe) {
2511
+ return cn.workingToColorSpace(U.copy(this), e), Math.round(P(U.r * 255, 0, 255)) * 65536 + Math.round(P(U.g * 255, 0, 255)) * 256 + Math.round(P(U.b * 255, 0, 255));
2481
2512
  }
2482
- getHexString(e = Qe) {
2513
+ getHexString(e = Xe) {
2483
2514
  return ("000000" + this.getHex(e).toString(16)).slice(-6);
2484
2515
  }
2485
2516
  getHSL(e, t = cn.workingColorSpace) {
2486
- cn.workingToColorSpace(H.copy(this), t);
2487
- let n = H.r, r = H.g, i = H.b, a = Math.max(n, r, i), o = Math.min(n, r, i), s, c, l = (o + a) / 2;
2517
+ cn.workingToColorSpace(U.copy(this), t);
2518
+ let n = U.r, r = U.g, i = U.b, a = Math.max(n, r, i), o = Math.min(n, r, i), s, c, l = (o + a) / 2;
2488
2519
  if (o === a) s = 0, c = 0;
2489
2520
  else {
2490
2521
  let e = a - o;
@@ -2504,15 +2535,15 @@ var V = class {
2504
2535
  return e.h = s, e.s = c, e.l = l, e;
2505
2536
  }
2506
2537
  getRGB(e, t = cn.workingColorSpace) {
2507
- return cn.workingToColorSpace(H.copy(this), t), e.r = H.r, e.g = H.g, e.b = H.b, e;
2538
+ return cn.workingToColorSpace(U.copy(this), t), e.r = U.r, e.g = U.g, e.b = U.b, e;
2508
2539
  }
2509
- getStyle(e = Qe) {
2510
- cn.workingToColorSpace(H.copy(this), e);
2511
- let t = H.r, n = H.g, r = H.b;
2540
+ getStyle(e = Xe) {
2541
+ cn.workingToColorSpace(U.copy(this), e);
2542
+ let t = U.r, n = U.g, r = U.b;
2512
2543
  return e === "srgb" ? `rgb(${Math.round(t * 255)},${Math.round(n * 255)},${Math.round(r * 255)})` : `color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${r.toFixed(3)})`;
2513
2544
  }
2514
2545
  offsetHSL(e, t, n) {
2515
- return this.getHSL(Qn), this.setHSL(Qn.h + e, Qn.s + t, Qn.l + n);
2546
+ return this.getHSL(er), this.setHSL(er.h + e, er.s + t, er.l + n);
2516
2547
  }
2517
2548
  add(e) {
2518
2549
  return this.r += e.r, this.g += e.g, this.b += e.b, this;
@@ -2539,8 +2570,8 @@ var V = class {
2539
2570
  return this.r = e.r + (t.r - e.r) * n, this.g = e.g + (t.g - e.g) * n, this.b = e.b + (t.b - e.b) * n, this;
2540
2571
  }
2541
2572
  lerpHSL(e, t) {
2542
- this.getHSL(Qn), e.getHSL($n);
2543
- let n = Lt(Qn.h, $n.h, t), r = Lt(Qn.s, $n.s, t), i = Lt(Qn.l, $n.l, t);
2573
+ this.getHSL(er), e.getHSL(tr);
2574
+ let n = Lt(er.h, tr.h, t), r = Lt(er.s, tr.s, t), i = Lt(er.l, tr.l, t);
2544
2575
  return this.setHSL(n, r, i), this;
2545
2576
  }
2546
2577
  setFromVector3(e) {
@@ -2568,11 +2599,11 @@ var V = class {
2568
2599
  *[Symbol.iterator]() {
2569
2600
  yield this.r, yield this.g, yield this.b;
2570
2601
  }
2571
- }, H = /* @__PURE__ */ new V();
2572
- V.NAMES = Zn;
2573
- var tr = class e {
2602
+ }, U = /* @__PURE__ */ new H();
2603
+ H.NAMES = $n;
2604
+ var rr = class e {
2574
2605
  constructor(e, t = 1, n = 1e3) {
2575
- this.isFog = !0, this.name = "", this.color = new V(e), this.near = t, this.far = n;
2606
+ this.isFog = !0, this.name = "", this.color = new H(e), this.near = t, this.far = n;
2576
2607
  }
2577
2608
  clone() {
2578
2609
  return new e(this.color, this.near, this.far);
@@ -2586,44 +2617,44 @@ var tr = class e {
2586
2617
  far: this.far
2587
2618
  };
2588
2619
  }
2589
- }, nr = class extends B {
2620
+ }, ir = class extends V {
2590
2621
  constructor() {
2591
- super(), this.isScene = !0, this.type = "Scene", this.background = null, this.environment = null, this.fog = null, this.backgroundBlurriness = 0, this.backgroundIntensity = 1, this.backgroundRotation = new jn(), this.environmentIntensity = 1, this.environmentRotation = new jn(), this.overrideMaterial = null, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
2622
+ super(), this.isScene = !0, this.type = "Scene", this.background = null, this.environment = null, this.fog = null, this.backgroundBlurriness = 0, this.backgroundIntensity = 1, this.backgroundRotation = new Nn(), this.environmentIntensity = 1, this.environmentRotation = new Nn(), this.overrideMaterial = null, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
2592
2623
  }
2593
2624
  copy(e, t) {
2594
2625
  return super.copy(e, t), e.background !== null && (this.background = e.background.clone()), e.environment !== null && (this.environment = e.environment.clone()), e.fog !== null && (this.fog = e.fog.clone()), this.backgroundBlurriness = e.backgroundBlurriness, this.backgroundIntensity = e.backgroundIntensity, this.backgroundRotation.copy(e.backgroundRotation), this.environmentIntensity = e.environmentIntensity, this.environmentRotation.copy(e.environmentRotation), e.overrideMaterial !== null && (this.overrideMaterial = e.overrideMaterial.clone()), this.matrixAutoUpdate = e.matrixAutoUpdate, this;
2595
2626
  }
2596
2627
  toJSON(e) {
2597
2628
  let t = super.toJSON(e);
2598
- return this.fog !== null && (t.object.fog = this.fog.toJSON()), this.backgroundBlurriness > 0 && (t.object.backgroundBlurriness = this.backgroundBlurriness), this.backgroundIntensity !== 1 && (t.object.backgroundIntensity = this.backgroundIntensity), t.object.backgroundRotation = this.backgroundRotation.toArray(), this.environmentIntensity !== 1 && (t.object.environmentIntensity = this.environmentIntensity), t.object.environmentRotation = this.environmentRotation.toArray(), t;
2629
+ return this.fog !== null && (t.object.fog = this.fog.toJSON()), t.object.backgroundBlurriness = this.backgroundBlurriness, t.object.backgroundIntensity = this.backgroundIntensity, t.object.backgroundRotation = this.backgroundRotation.toArray(), t.object.environmentIntensity = this.environmentIntensity, t.object.environmentRotation = this.environmentRotation.toArray(), t;
2599
2630
  }
2600
- }, rr = /* @__PURE__ */ new I(), ir = /* @__PURE__ */ new I(), ar = /* @__PURE__ */ new I(), or = /* @__PURE__ */ new I(), sr = /* @__PURE__ */ new I(), cr = /* @__PURE__ */ new I(), lr = /* @__PURE__ */ new I(), ur = /* @__PURE__ */ new I(), dr = /* @__PURE__ */ new I(), fr = /* @__PURE__ */ new I(), pr = /* @__PURE__ */ new vn(), mr = /* @__PURE__ */ new vn(), hr = /* @__PURE__ */ new vn(), gr = class e {
2601
- constructor(e = new I(), t = new I(), n = new I()) {
2631
+ }, ar = /* @__PURE__ */ new R(), or = /* @__PURE__ */ new R(), sr = /* @__PURE__ */ new R(), cr = /* @__PURE__ */ new R(), lr = /* @__PURE__ */ new R(), ur = /* @__PURE__ */ new R(), dr = /* @__PURE__ */ new R(), fr = /* @__PURE__ */ new R(), pr = /* @__PURE__ */ new R(), mr = /* @__PURE__ */ new R(), hr = /* @__PURE__ */ new yn(), gr = /* @__PURE__ */ new yn(), _r = /* @__PURE__ */ new yn(), vr = class e {
2632
+ constructor(e = new R(), t = new R(), n = new R()) {
2602
2633
  this.a = e, this.b = t, this.c = n;
2603
2634
  }
2604
2635
  static getNormal(e, t, n, r) {
2605
- r.subVectors(n, t), rr.subVectors(e, t), r.cross(rr);
2636
+ r.subVectors(n, t), ar.subVectors(e, t), r.cross(ar);
2606
2637
  let i = r.lengthSq();
2607
2638
  return i > 0 ? r.multiplyScalar(1 / Math.sqrt(i)) : r.set(0, 0, 0);
2608
2639
  }
2609
2640
  static getBarycoord(e, t, n, r, i) {
2610
- rr.subVectors(r, t), ir.subVectors(n, t), ar.subVectors(e, t);
2611
- let a = rr.dot(rr), o = rr.dot(ir), s = rr.dot(ar), c = ir.dot(ir), l = ir.dot(ar), u = a * c - o * o;
2641
+ ar.subVectors(r, t), or.subVectors(n, t), sr.subVectors(e, t);
2642
+ let a = ar.dot(ar), o = ar.dot(or), s = ar.dot(sr), c = or.dot(or), l = or.dot(sr), u = a * c - o * o;
2612
2643
  if (u === 0) return i.set(0, 0, 0), null;
2613
2644
  let d = 1 / u, f = (c * s - o * l) * d, p = (a * l - o * s) * d;
2614
2645
  return i.set(1 - f - p, p, f);
2615
2646
  }
2616
2647
  static containsPoint(e, t, n, r) {
2617
- return this.getBarycoord(e, t, n, r, or) === null ? !1 : or.x >= 0 && or.y >= 0 && or.x + or.y <= 1;
2648
+ return this.getBarycoord(e, t, n, r, cr) === null ? !1 : cr.x >= 0 && cr.y >= 0 && cr.x + cr.y <= 1;
2618
2649
  }
2619
2650
  static getInterpolation(e, t, n, r, i, a, o, s) {
2620
- return this.getBarycoord(e, t, n, r, or) === null ? (s.x = 0, s.y = 0, "z" in s && (s.z = 0), "w" in s && (s.w = 0), null) : (s.setScalar(0), s.addScaledVector(i, or.x), s.addScaledVector(a, or.y), s.addScaledVector(o, or.z), s);
2651
+ return this.getBarycoord(e, t, n, r, cr) === null ? (s.x = 0, s.y = 0, "z" in s && (s.z = 0), "w" in s && (s.w = 0), null) : (s.setScalar(0), s.addScaledVector(i, cr.x), s.addScaledVector(a, cr.y), s.addScaledVector(o, cr.z), s);
2621
2652
  }
2622
2653
  static getInterpolatedAttribute(e, t, n, r, i, a) {
2623
- return pr.setScalar(0), mr.setScalar(0), hr.setScalar(0), pr.fromBufferAttribute(e, t), mr.fromBufferAttribute(e, n), hr.fromBufferAttribute(e, r), a.setScalar(0), a.addScaledVector(pr, i.x), a.addScaledVector(mr, i.y), a.addScaledVector(hr, i.z), a;
2654
+ return hr.setScalar(0), gr.setScalar(0), _r.setScalar(0), hr.fromBufferAttribute(e, t), gr.fromBufferAttribute(e, n), _r.fromBufferAttribute(e, r), a.setScalar(0), a.addScaledVector(hr, i.x), a.addScaledVector(gr, i.y), a.addScaledVector(_r, i.z), a;
2624
2655
  }
2625
2656
  static isFrontFacing(e, t, n, r) {
2626
- return rr.subVectors(n, t), ir.subVectors(e, t), rr.cross(ir).dot(r) < 0;
2657
+ return ar.subVectors(n, t), or.subVectors(e, t), ar.cross(or).dot(r) < 0;
2627
2658
  }
2628
2659
  set(e, t, n) {
2629
2660
  return this.a.copy(e), this.b.copy(t), this.c.copy(n), this;
@@ -2641,7 +2672,7 @@ var tr = class e {
2641
2672
  return this.a.copy(e.a), this.b.copy(e.b), this.c.copy(e.c), this;
2642
2673
  }
2643
2674
  getArea() {
2644
- return rr.subVectors(this.c, this.b), ir.subVectors(this.a, this.b), rr.cross(ir).length() * .5;
2675
+ return ar.subVectors(this.c, this.b), or.subVectors(this.a, this.b), ar.cross(or).length() * .5;
2645
2676
  }
2646
2677
  getMidpoint(e) {
2647
2678
  return e.addVectors(this.a, this.b).add(this.c).multiplyScalar(1 / 3);
@@ -2669,29 +2700,29 @@ var tr = class e {
2669
2700
  }
2670
2701
  closestPointToPoint(e, t) {
2671
2702
  let n = this.a, r = this.b, i = this.c, a, o;
2672
- sr.subVectors(r, n), cr.subVectors(i, n), ur.subVectors(e, n);
2673
- let s = sr.dot(ur), c = cr.dot(ur);
2703
+ lr.subVectors(r, n), ur.subVectors(i, n), fr.subVectors(e, n);
2704
+ let s = lr.dot(fr), c = ur.dot(fr);
2674
2705
  if (s <= 0 && c <= 0) return t.copy(n);
2675
- dr.subVectors(e, r);
2676
- let l = sr.dot(dr), u = cr.dot(dr);
2706
+ pr.subVectors(e, r);
2707
+ let l = lr.dot(pr), u = ur.dot(pr);
2677
2708
  if (l >= 0 && u <= l) return t.copy(r);
2678
2709
  let d = s * u - l * c;
2679
- if (d <= 0 && s >= 0 && l <= 0) return a = s / (s - l), t.copy(n).addScaledVector(sr, a);
2680
- fr.subVectors(e, i);
2681
- let f = sr.dot(fr), p = cr.dot(fr);
2710
+ if (d <= 0 && s >= 0 && l <= 0) return a = s / (s - l), t.copy(n).addScaledVector(lr, a);
2711
+ mr.subVectors(e, i);
2712
+ let f = lr.dot(mr), p = ur.dot(mr);
2682
2713
  if (p >= 0 && f <= p) return t.copy(i);
2683
2714
  let m = f * c - s * p;
2684
- if (m <= 0 && c >= 0 && p <= 0) return o = c / (c - p), t.copy(n).addScaledVector(cr, o);
2715
+ if (m <= 0 && c >= 0 && p <= 0) return o = c / (c - p), t.copy(n).addScaledVector(ur, o);
2685
2716
  let h = l * p - f * u;
2686
- if (h <= 0 && u - l >= 0 && f - p >= 0) return lr.subVectors(i, r), o = (u - l) / (u - l + (f - p)), t.copy(r).addScaledVector(lr, o);
2717
+ if (h <= 0 && u - l >= 0 && f - p >= 0) return dr.subVectors(i, r), o = (u - l) / (u - l + (f - p)), t.copy(r).addScaledVector(dr, o);
2687
2718
  let g = 1 / (h + m + d);
2688
- return a = m * g, o = d * g, t.copy(n).addScaledVector(sr, a).addScaledVector(cr, o);
2719
+ return a = m * g, o = d * g, t.copy(n).addScaledVector(lr, a).addScaledVector(ur, o);
2689
2720
  }
2690
2721
  equals(e) {
2691
2722
  return e.a.equals(this.a) && e.b.equals(this.b) && e.c.equals(this.c);
2692
2723
  }
2693
- }, _r = class {
2694
- constructor(e = new I(Infinity, Infinity, Infinity), t = new I(-Infinity, -Infinity, -Infinity)) {
2724
+ }, yr = class {
2725
+ constructor(e = new R(Infinity, Infinity, Infinity), t = new R(-Infinity, -Infinity, -Infinity)) {
2695
2726
  this.isBox3 = !0, this.min = e, this.max = t;
2696
2727
  }
2697
2728
  set(e, t) {
@@ -2699,12 +2730,12 @@ var tr = class e {
2699
2730
  }
2700
2731
  setFromArray(e) {
2701
2732
  this.makeEmpty();
2702
- for (let t = 0, n = e.length; t < n; t += 3) this.expandByPoint(yr.fromArray(e, t));
2733
+ for (let t = 0, n = e.length; t < n; t += 3) this.expandByPoint(xr.fromArray(e, t));
2703
2734
  return this;
2704
2735
  }
2705
2736
  setFromBufferAttribute(e) {
2706
2737
  this.makeEmpty();
2707
- for (let t = 0, n = e.count; t < n; t++) this.expandByPoint(yr.fromBufferAttribute(e, t));
2738
+ for (let t = 0, n = e.count; t < n; t++) this.expandByPoint(xr.fromBufferAttribute(e, t));
2708
2739
  return this;
2709
2740
  }
2710
2741
  setFromPoints(e) {
@@ -2713,7 +2744,7 @@ var tr = class e {
2713
2744
  return this;
2714
2745
  }
2715
2746
  setFromCenterAndSize(e, t) {
2716
- let n = yr.copy(t).multiplyScalar(.5);
2747
+ let n = xr.copy(t).multiplyScalar(.5);
2717
2748
  return this.min.copy(e).sub(n), this.max.copy(e).add(n), this;
2718
2749
  }
2719
2750
  setFromObject(e, t = !1) {
@@ -2751,8 +2782,8 @@ var tr = class e {
2751
2782
  let n = e.geometry;
2752
2783
  if (n !== void 0) {
2753
2784
  let r = n.getAttribute("position");
2754
- if (t === !0 && r !== void 0 && e.isInstancedMesh !== !0) for (let t = 0, n = r.count; t < n; t++) e.isMesh === !0 ? e.getVertexPosition(t, yr) : yr.fromBufferAttribute(r, t), yr.applyMatrix4(e.matrixWorld), this.expandByPoint(yr);
2755
- else e.boundingBox === void 0 ? (n.boundingBox === null && n.computeBoundingBox(), br.copy(n.boundingBox)) : (e.boundingBox === null && e.computeBoundingBox(), br.copy(e.boundingBox)), br.applyMatrix4(e.matrixWorld), this.union(br);
2785
+ if (t === !0 && r !== void 0 && e.isInstancedMesh !== !0) for (let t = 0, n = r.count; t < n; t++) e.isMesh === !0 ? e.getVertexPosition(t, xr) : xr.fromBufferAttribute(r, t), xr.applyMatrix4(e.matrixWorld), this.expandByPoint(xr);
2786
+ else e.boundingBox === void 0 ? (n.boundingBox === null && n.computeBoundingBox(), Sr.copy(n.boundingBox)) : (e.boundingBox === null && e.computeBoundingBox(), Sr.copy(e.boundingBox)), Sr.applyMatrix4(e.matrixWorld), this.union(Sr);
2756
2787
  }
2757
2788
  let r = e.children;
2758
2789
  for (let e = 0, n = r.length; e < n; e++) this.expandByObject(r[e], t);
@@ -2771,7 +2802,7 @@ var tr = class e {
2771
2802
  return e.max.x >= this.min.x && e.min.x <= this.max.x && e.max.y >= this.min.y && e.min.y <= this.max.y && e.max.z >= this.min.z && e.min.z <= this.max.z;
2772
2803
  }
2773
2804
  intersectsSphere(e) {
2774
- return this.clampPoint(e.center, yr), yr.distanceToSquared(e.center) <= e.radius * e.radius;
2805
+ return this.clampPoint(e.center, xr), xr.distanceToSquared(e.center) <= e.radius * e.radius;
2775
2806
  }
2776
2807
  intersectsPlane(e) {
2777
2808
  let t, n;
@@ -2779,37 +2810,37 @@ var tr = class e {
2779
2810
  }
2780
2811
  intersectsTriangle(e) {
2781
2812
  if (this.isEmpty()) return !1;
2782
- this.getCenter(Dr), Or.subVectors(this.max, Dr), xr.subVectors(e.a, Dr), Sr.subVectors(e.b, Dr), Cr.subVectors(e.c, Dr), wr.subVectors(Sr, xr), Tr.subVectors(Cr, Sr), Er.subVectors(xr, Cr);
2813
+ this.getCenter(kr), Ar.subVectors(this.max, kr), Cr.subVectors(e.a, kr), wr.subVectors(e.b, kr), Tr.subVectors(e.c, kr), Er.subVectors(wr, Cr), Dr.subVectors(Tr, wr), Or.subVectors(Cr, Tr);
2783
2814
  let t = [
2784
- 0,
2785
- -wr.z,
2786
- wr.y,
2787
- 0,
2788
- -Tr.z,
2789
- Tr.y,
2790
2815
  0,
2791
2816
  -Er.z,
2792
2817
  Er.y,
2793
- wr.z,
2794
2818
  0,
2795
- -wr.x,
2796
- Tr.z,
2819
+ -Dr.z,
2820
+ Dr.y,
2797
2821
  0,
2798
- -Tr.x,
2822
+ -Or.z,
2823
+ Or.y,
2799
2824
  Er.z,
2800
2825
  0,
2801
2826
  -Er.x,
2802
- -wr.y,
2803
- wr.x,
2827
+ Dr.z,
2804
2828
  0,
2805
- -Tr.y,
2806
- Tr.x,
2829
+ -Dr.x,
2830
+ Or.z,
2807
2831
  0,
2832
+ -Or.x,
2808
2833
  -Er.y,
2809
2834
  Er.x,
2835
+ 0,
2836
+ -Dr.y,
2837
+ Dr.x,
2838
+ 0,
2839
+ -Or.y,
2840
+ Or.x,
2810
2841
  0
2811
2842
  ];
2812
- return !jr(t, xr, Sr, Cr, Or) || (t = [
2843
+ return !Nr(t, Cr, wr, Tr, Ar) || (t = [
2813
2844
  1,
2814
2845
  0,
2815
2846
  0,
@@ -2819,20 +2850,20 @@ var tr = class e {
2819
2850
  0,
2820
2851
  0,
2821
2852
  1
2822
- ], !jr(t, xr, Sr, Cr, Or)) ? !1 : (kr.crossVectors(wr, Tr), t = [
2823
- kr.x,
2824
- kr.y,
2825
- kr.z
2826
- ], jr(t, xr, Sr, Cr, Or));
2853
+ ], !Nr(t, Cr, wr, Tr, Ar)) ? !1 : (jr.crossVectors(Er, Dr), t = [
2854
+ jr.x,
2855
+ jr.y,
2856
+ jr.z
2857
+ ], Nr(t, Cr, wr, Tr, Ar));
2827
2858
  }
2828
2859
  clampPoint(e, t) {
2829
2860
  return t.copy(e).clamp(this.min, this.max);
2830
2861
  }
2831
2862
  distanceToPoint(e) {
2832
- return this.clampPoint(e, yr).distanceTo(e);
2863
+ return this.clampPoint(e, xr).distanceTo(e);
2833
2864
  }
2834
2865
  getBoundingSphere(e) {
2835
- return this.isEmpty() ? e.makeEmpty() : (this.getCenter(e.center), e.radius = this.getSize(yr).length() * .5), e;
2866
+ return this.isEmpty() ? e.makeEmpty() : (this.getCenter(e.center), e.radius = this.getSize(xr).length() * .5), e;
2836
2867
  }
2837
2868
  intersect(e) {
2838
2869
  return this.min.max(e.min), this.max.min(e.max), this.isEmpty() && this.makeEmpty(), this;
@@ -2841,7 +2872,7 @@ var tr = class e {
2841
2872
  return this.min.min(e.min), this.max.max(e.max), this;
2842
2873
  }
2843
2874
  applyMatrix4(e) {
2844
- return this.isEmpty() ? this : (vr[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(e), vr[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(e), vr[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(e), vr[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(e), vr[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(e), vr[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(e), vr[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(e), vr[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(e), this.setFromPoints(vr), this);
2875
+ return this.isEmpty() ? this : (br[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(e), br[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(e), br[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(e), br[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(e), br[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(e), br[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(e), br[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(e), br[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(e), this.setFromPoints(br), this);
2845
2876
  }
2846
2877
  translate(e) {
2847
2878
  return this.min.add(e), this.max.add(e), this;
@@ -2858,26 +2889,26 @@ var tr = class e {
2858
2889
  fromJSON(e) {
2859
2890
  return this.min.fromArray(e.min), this.max.fromArray(e.max), this;
2860
2891
  }
2861
- }, vr = [
2862
- /* @__PURE__ */ new I(),
2863
- /* @__PURE__ */ new I(),
2864
- /* @__PURE__ */ new I(),
2865
- /* @__PURE__ */ new I(),
2866
- /* @__PURE__ */ new I(),
2867
- /* @__PURE__ */ new I(),
2868
- /* @__PURE__ */ new I(),
2869
- /* @__PURE__ */ new I()
2870
- ], yr = /* @__PURE__ */ new I(), br = /* @__PURE__ */ new _r(), xr = /* @__PURE__ */ new I(), Sr = /* @__PURE__ */ new I(), Cr = /* @__PURE__ */ new I(), wr = /* @__PURE__ */ new I(), Tr = /* @__PURE__ */ new I(), Er = /* @__PURE__ */ new I(), Dr = /* @__PURE__ */ new I(), Or = /* @__PURE__ */ new I(), kr = /* @__PURE__ */ new I(), Ar = /* @__PURE__ */ new I();
2871
- function jr(e, t, n, r, i) {
2892
+ }, br = [
2893
+ /* @__PURE__ */ new R(),
2894
+ /* @__PURE__ */ new R(),
2895
+ /* @__PURE__ */ new R(),
2896
+ /* @__PURE__ */ new R(),
2897
+ /* @__PURE__ */ new R(),
2898
+ /* @__PURE__ */ new R(),
2899
+ /* @__PURE__ */ new R(),
2900
+ /* @__PURE__ */ new R()
2901
+ ], xr = /* @__PURE__ */ new R(), Sr = /* @__PURE__ */ new yr(), Cr = /* @__PURE__ */ new R(), wr = /* @__PURE__ */ new R(), Tr = /* @__PURE__ */ new R(), Er = /* @__PURE__ */ new R(), Dr = /* @__PURE__ */ new R(), Or = /* @__PURE__ */ new R(), kr = /* @__PURE__ */ new R(), Ar = /* @__PURE__ */ new R(), jr = /* @__PURE__ */ new R(), Mr = /* @__PURE__ */ new R();
2902
+ function Nr(e, t, n, r, i) {
2872
2903
  for (let a = 0, o = e.length - 3; a <= o; a += 3) {
2873
- Ar.fromArray(e, a);
2874
- let o = i.x * Math.abs(Ar.x) + i.y * Math.abs(Ar.y) + i.z * Math.abs(Ar.z), s = t.dot(Ar), c = n.dot(Ar), l = r.dot(Ar);
2904
+ Mr.fromArray(e, a);
2905
+ let o = i.x * Math.abs(Mr.x) + i.y * Math.abs(Mr.y) + i.z * Math.abs(Mr.z), s = t.dot(Mr), c = n.dot(Mr), l = r.dot(Mr);
2875
2906
  if (Math.max(-Math.max(s, c, l), Math.min(s, c, l)) > o) return !1;
2876
2907
  }
2877
2908
  return !0;
2878
2909
  }
2879
- var Mr = /* @__PURE__ */ Nr();
2880
- function Nr() {
2910
+ var Pr = /* @__PURE__ */ Fr();
2911
+ function Fr() {
2881
2912
  let e = /* @__PURE__ */ new ArrayBuffer(4), t = new Float32Array(e), n = new Uint32Array(e), r = new Uint32Array(512), i = new Uint32Array(512);
2882
2913
  for (let e = 0; e < 256; ++e) {
2883
2914
  let t = e - 127;
@@ -2905,26 +2936,26 @@ function Nr() {
2905
2936
  offsetTable: s
2906
2937
  };
2907
2938
  }
2908
- function U(e) {
2909
- Math.abs(e) > 65504 && k("DataUtils.toHalfFloat(): Value out of range."), e = M(e, -65504, 65504), Mr.floatView[0] = e;
2910
- let t = Mr.uint32View[0], n = t >> 23 & 511;
2911
- return Mr.baseTable[n] + ((t & 8388607) >> Mr.shiftTable[n]);
2939
+ function W(e) {
2940
+ Math.abs(e) > 65504 && j("DataUtils.toHalfFloat(): Value out of range."), e = P(e, -65504, 65504), Pr.floatView[0] = e;
2941
+ let t = Pr.uint32View[0], n = t >> 23 & 511;
2942
+ return Pr.baseTable[n] + ((t & 8388607) >> Pr.shiftTable[n]);
2912
2943
  }
2913
- function Pr(e) {
2944
+ function Ir(e) {
2914
2945
  let t = e >> 10;
2915
- return Mr.uint32View[0] = Mr.mantissaTable[Mr.offsetTable[t] + (e & 1023)] + Mr.exponentTable[t], Mr.floatView[0];
2946
+ return Pr.uint32View[0] = Pr.mantissaTable[Pr.offsetTable[t] + (e & 1023)] + Pr.exponentTable[t], Pr.floatView[0];
2916
2947
  }
2917
- var Fr = class {
2948
+ var Lr = class {
2918
2949
  static toHalfFloat(e) {
2919
- return U(e);
2950
+ return W(e);
2920
2951
  }
2921
2952
  static fromHalfFloat(e) {
2922
- return Pr(e);
2953
+ return Ir(e);
2923
2954
  }
2924
- }, W = /* @__PURE__ */ new I(), Ir = /* @__PURE__ */ new F(), Lr = 0, Rr = class extends kt {
2955
+ }, G = /* @__PURE__ */ new R(), Rr = /* @__PURE__ */ new L(), zr = 0, Br = class extends kt {
2925
2956
  constructor(e, t, n = !1) {
2926
2957
  if (super(), Array.isArray(e)) throw TypeError("THREE.BufferAttribute: array should be a Typed Array.");
2927
- this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: Lr++ }), this.name = "", this.array = e, this.itemSize = t, this.count = e === void 0 ? 0 : e.length / t, this.normalized = n, this.usage = lt, this.updateRanges = [], this.gpuType = v, this.version = 0;
2958
+ this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: zr++ }), this.name = "", this.array = e, this.itemSize = t, this.count = e === void 0 ? 0 : e.length / t, this.normalized = n, this.usage = st, this.updateRanges = [], this.gpuType = v, this.version = 0;
2928
2959
  }
2929
2960
  onUploadCallback() {}
2930
2961
  set needsUpdate(e) {
@@ -2954,20 +2985,20 @@ var Fr = class {
2954
2985
  return this.array.set(e), this;
2955
2986
  }
2956
2987
  applyMatrix3(e) {
2957
- if (this.itemSize === 2) for (let t = 0, n = this.count; t < n; t++) Ir.fromBufferAttribute(this, t), Ir.applyMatrix3(e), this.setXY(t, Ir.x, Ir.y);
2958
- else if (this.itemSize === 3) for (let t = 0, n = this.count; t < n; t++) W.fromBufferAttribute(this, t), W.applyMatrix3(e), this.setXYZ(t, W.x, W.y, W.z);
2988
+ if (this.itemSize === 2) for (let t = 0, n = this.count; t < n; t++) Rr.fromBufferAttribute(this, t), Rr.applyMatrix3(e), this.setXY(t, Rr.x, Rr.y);
2989
+ else if (this.itemSize === 3) for (let t = 0, n = this.count; t < n; t++) G.fromBufferAttribute(this, t), G.applyMatrix3(e), this.setXYZ(t, G.x, G.y, G.z);
2959
2990
  return this;
2960
2991
  }
2961
2992
  applyMatrix4(e) {
2962
- for (let t = 0, n = this.count; t < n; t++) W.fromBufferAttribute(this, t), W.applyMatrix4(e), this.setXYZ(t, W.x, W.y, W.z);
2993
+ for (let t = 0, n = this.count; t < n; t++) G.fromBufferAttribute(this, t), G.applyMatrix4(e), this.setXYZ(t, G.x, G.y, G.z);
2963
2994
  return this;
2964
2995
  }
2965
2996
  applyNormalMatrix(e) {
2966
- for (let t = 0, n = this.count; t < n; t++) W.fromBufferAttribute(this, t), W.applyNormalMatrix(e), this.setXYZ(t, W.x, W.y, W.z);
2997
+ for (let t = 0, n = this.count; t < n; t++) G.fromBufferAttribute(this, t), G.applyNormalMatrix(e), this.setXYZ(t, G.x, G.y, G.z);
2967
2998
  return this;
2968
2999
  }
2969
3000
  transformDirection(e) {
2970
- for (let t = 0, n = this.count; t < n; t++) W.fromBufferAttribute(this, t), W.transformDirection(e), this.setXYZ(t, W.x, W.y, W.z);
3001
+ for (let t = 0, n = this.count; t < n; t++) G.fromBufferAttribute(this, t), G.transformDirection(e), this.setXYZ(t, G.x, G.y, G.z);
2971
3002
  return this;
2972
3003
  }
2973
3004
  set(e, t = 0) {
@@ -2975,47 +3006,47 @@ var Fr = class {
2975
3006
  }
2976
3007
  getComponent(e, t) {
2977
3008
  let n = this.array[e * this.itemSize + t];
2978
- return this.normalized && (n = N(n, this.array)), n;
3009
+ return this.normalized && (n = F(n, this.array)), n;
2979
3010
  }
2980
3011
  setComponent(e, t, n) {
2981
- return this.normalized && (n = P(n, this.array)), this.array[e * this.itemSize + t] = n, this;
3012
+ return this.normalized && (n = I(n, this.array)), this.array[e * this.itemSize + t] = n, this;
2982
3013
  }
2983
3014
  getX(e) {
2984
3015
  let t = this.array[e * this.itemSize];
2985
- return this.normalized && (t = N(t, this.array)), t;
3016
+ return this.normalized && (t = F(t, this.array)), t;
2986
3017
  }
2987
3018
  setX(e, t) {
2988
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize] = t, this;
3019
+ return this.normalized && (t = I(t, this.array)), this.array[e * this.itemSize] = t, this;
2989
3020
  }
2990
3021
  getY(e) {
2991
3022
  let t = this.array[e * this.itemSize + 1];
2992
- return this.normalized && (t = N(t, this.array)), t;
3023
+ return this.normalized && (t = F(t, this.array)), t;
2993
3024
  }
2994
3025
  setY(e, t) {
2995
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 1] = t, this;
3026
+ return this.normalized && (t = I(t, this.array)), this.array[e * this.itemSize + 1] = t, this;
2996
3027
  }
2997
3028
  getZ(e) {
2998
3029
  let t = this.array[e * this.itemSize + 2];
2999
- return this.normalized && (t = N(t, this.array)), t;
3030
+ return this.normalized && (t = F(t, this.array)), t;
3000
3031
  }
3001
3032
  setZ(e, t) {
3002
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 2] = t, this;
3033
+ return this.normalized && (t = I(t, this.array)), this.array[e * this.itemSize + 2] = t, this;
3003
3034
  }
3004
3035
  getW(e) {
3005
3036
  let t = this.array[e * this.itemSize + 3];
3006
- return this.normalized && (t = N(t, this.array)), t;
3037
+ return this.normalized && (t = F(t, this.array)), t;
3007
3038
  }
3008
3039
  setW(e, t) {
3009
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 3] = t, this;
3040
+ return this.normalized && (t = I(t, this.array)), this.array[e * this.itemSize + 3] = t, this;
3010
3041
  }
3011
3042
  setXY(e, t, n) {
3012
- return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this;
3043
+ return e *= this.itemSize, this.normalized && (t = I(t, this.array), n = I(n, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this;
3013
3044
  }
3014
3045
  setXYZ(e, t, n, r) {
3015
- return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array), r = P(r, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this.array[e + 2] = r, this;
3046
+ return e *= this.itemSize, this.normalized && (t = I(t, this.array), n = I(n, this.array), r = I(r, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this.array[e + 2] = r, this;
3016
3047
  }
3017
3048
  setXYZW(e, t, n, r, i) {
3018
- return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array), r = P(r, this.array), i = P(i, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this.array[e + 2] = r, this.array[e + 3] = i, this;
3049
+ return e *= this.itemSize, this.normalized && (t = I(t, this.array), n = I(n, this.array), r = I(r, this.array), i = I(i, this.array)), this.array[e + 0] = t, this.array[e + 1] = n, this.array[e + 2] = r, this.array[e + 3] = i, this;
3019
3050
  }
3020
3051
  onUpload(e) {
3021
3052
  return this.onUploadCallback = e, this;
@@ -3030,66 +3061,66 @@ var Fr = class {
3030
3061
  array: Array.from(this.array),
3031
3062
  normalized: this.normalized
3032
3063
  };
3033
- return this.name !== "" && (e.name = this.name), this.usage !== 35044 && (e.usage = this.usage), e;
3064
+ return e.name = this.name, e.usage = this.usage, e.gpuType = this.gpuType, e;
3034
3065
  }
3035
3066
  dispose() {
3036
3067
  this.dispatchEvent({ type: "dispose" });
3037
3068
  }
3038
- }, zr = class extends Rr {
3069
+ }, Vr = class extends Br {
3039
3070
  constructor(e, t, n) {
3040
3071
  super(new Uint16Array(e), t, n);
3041
3072
  }
3042
- }, Br = class extends Rr {
3073
+ }, Hr = class extends Br {
3043
3074
  constructor(e, t, n) {
3044
3075
  super(new Uint32Array(e), t, n);
3045
3076
  }
3046
- }, Vr = class extends Rr {
3077
+ }, Ur = class extends Br {
3047
3078
  constructor(e, t, n) {
3048
3079
  super(new Uint16Array(e), t, n), this.isFloat16BufferAttribute = !0;
3049
3080
  }
3050
3081
  getX(e) {
3051
- let t = Pr(this.array[e * this.itemSize]);
3052
- return this.normalized && (t = N(t, this.array)), t;
3082
+ let t = Ir(this.array[e * this.itemSize]);
3083
+ return this.normalized && (t = F(t, this.array)), t;
3053
3084
  }
3054
3085
  setX(e, t) {
3055
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize] = U(t), this;
3086
+ return this.normalized && (t = I(t, this.array)), this.array[e * this.itemSize] = W(t), this;
3056
3087
  }
3057
3088
  getY(e) {
3058
- let t = Pr(this.array[e * this.itemSize + 1]);
3059
- return this.normalized && (t = N(t, this.array)), t;
3089
+ let t = Ir(this.array[e * this.itemSize + 1]);
3090
+ return this.normalized && (t = F(t, this.array)), t;
3060
3091
  }
3061
3092
  setY(e, t) {
3062
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 1] = U(t), this;
3093
+ return this.normalized && (t = I(t, this.array)), this.array[e * this.itemSize + 1] = W(t), this;
3063
3094
  }
3064
3095
  getZ(e) {
3065
- let t = Pr(this.array[e * this.itemSize + 2]);
3066
- return this.normalized && (t = N(t, this.array)), t;
3096
+ let t = Ir(this.array[e * this.itemSize + 2]);
3097
+ return this.normalized && (t = F(t, this.array)), t;
3067
3098
  }
3068
3099
  setZ(e, t) {
3069
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 2] = U(t), this;
3100
+ return this.normalized && (t = I(t, this.array)), this.array[e * this.itemSize + 2] = W(t), this;
3070
3101
  }
3071
3102
  getW(e) {
3072
- let t = Pr(this.array[e * this.itemSize + 3]);
3073
- return this.normalized && (t = N(t, this.array)), t;
3103
+ let t = Ir(this.array[e * this.itemSize + 3]);
3104
+ return this.normalized && (t = F(t, this.array)), t;
3074
3105
  }
3075
3106
  setW(e, t) {
3076
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 3] = U(t), this;
3107
+ return this.normalized && (t = I(t, this.array)), this.array[e * this.itemSize + 3] = W(t), this;
3077
3108
  }
3078
3109
  setXY(e, t, n) {
3079
- return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array)), this.array[e + 0] = U(t), this.array[e + 1] = U(n), this;
3110
+ return e *= this.itemSize, this.normalized && (t = I(t, this.array), n = I(n, this.array)), this.array[e + 0] = W(t), this.array[e + 1] = W(n), this;
3080
3111
  }
3081
3112
  setXYZ(e, t, n, r) {
3082
- return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array), r = P(r, this.array)), this.array[e + 0] = U(t), this.array[e + 1] = U(n), this.array[e + 2] = U(r), this;
3113
+ return e *= this.itemSize, this.normalized && (t = I(t, this.array), n = I(n, this.array), r = I(r, this.array)), this.array[e + 0] = W(t), this.array[e + 1] = W(n), this.array[e + 2] = W(r), this;
3083
3114
  }
3084
3115
  setXYZW(e, t, n, r, i) {
3085
- return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array), r = P(r, this.array), i = P(i, this.array)), this.array[e + 0] = U(t), this.array[e + 1] = U(n), this.array[e + 2] = U(r), this.array[e + 3] = U(i), this;
3116
+ return e *= this.itemSize, this.normalized && (t = I(t, this.array), n = I(n, this.array), r = I(r, this.array), i = I(i, this.array)), this.array[e + 0] = W(t), this.array[e + 1] = W(n), this.array[e + 2] = W(r), this.array[e + 3] = W(i), this;
3086
3117
  }
3087
- }, G = class extends Rr {
3118
+ }, K = class extends Br {
3088
3119
  constructor(e, t, n) {
3089
3120
  super(new Float32Array(e), t, n);
3090
3121
  }
3091
- }, Hr = /* @__PURE__ */ new _r(), Ur = /* @__PURE__ */ new I(), Wr = /* @__PURE__ */ new I(), Gr = class {
3092
- constructor(e = new I(), t = -1) {
3122
+ }, Wr = /* @__PURE__ */ new yr(), Gr = /* @__PURE__ */ new R(), Kr = /* @__PURE__ */ new R(), qr = class {
3123
+ constructor(e = new R(), t = -1) {
3093
3124
  this.isSphere = !0, this.center = e, this.radius = t;
3094
3125
  }
3095
3126
  set(e, t) {
@@ -3097,7 +3128,7 @@ var Fr = class {
3097
3128
  }
3098
3129
  setFromPoints(e, t) {
3099
3130
  let n = this.center;
3100
- t === void 0 ? Hr.setFromPoints(e).getCenter(n) : n.copy(t);
3131
+ t === void 0 ? Wr.setFromPoints(e).getCenter(n) : n.copy(t);
3101
3132
  let r = 0;
3102
3133
  for (let t = 0, i = e.length; t < i; t++) r = Math.max(r, n.distanceToSquared(e[t]));
3103
3134
  return this.radius = Math.sqrt(r), this;
@@ -3142,16 +3173,16 @@ var Fr = class {
3142
3173
  }
3143
3174
  expandByPoint(e) {
3144
3175
  if (this.isEmpty()) return this.center.copy(e), this.radius = 0, this;
3145
- Ur.subVectors(e, this.center);
3146
- let t = Ur.lengthSq();
3176
+ Gr.subVectors(e, this.center);
3177
+ let t = Gr.lengthSq();
3147
3178
  if (t > this.radius * this.radius) {
3148
3179
  let e = Math.sqrt(t), n = (e - this.radius) * .5;
3149
- this.center.addScaledVector(Ur, n / e), this.radius += n;
3180
+ this.center.addScaledVector(Gr, n / e), this.radius += n;
3150
3181
  }
3151
3182
  return this;
3152
3183
  }
3153
3184
  union(e) {
3154
- return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (Wr.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(Ur.copy(e.center).add(Wr)), this.expandByPoint(Ur.copy(e.center).sub(Wr))), this);
3185
+ return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (Kr.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(Gr.copy(e.center).add(Kr)), this.expandByPoint(Gr.copy(e.center).sub(Kr))), this);
3155
3186
  }
3156
3187
  equals(e) {
3157
3188
  return e.center.equals(this.center) && e.radius === this.radius;
@@ -3168,9 +3199,9 @@ var Fr = class {
3168
3199
  fromJSON(e) {
3169
3200
  return this.radius = e.radius, this.center.fromArray(e.center), this;
3170
3201
  }
3171
- }, Kr = 0, qr = /* @__PURE__ */ new R(), Jr = /* @__PURE__ */ new B(), Yr = /* @__PURE__ */ new I(), K = /* @__PURE__ */ new _r(), Xr = /* @__PURE__ */ new _r(), q = /* @__PURE__ */ new I(), Zr = class e extends kt {
3202
+ }, Jr = 0, Yr = /* @__PURE__ */ new B(), Xr = /* @__PURE__ */ new V(), Zr = /* @__PURE__ */ new R(), Qr = /* @__PURE__ */ new yr(), $r = /* @__PURE__ */ new yr(), q = /* @__PURE__ */ new R(), ei = class e extends kt {
3172
3203
  constructor() {
3173
- super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Kr++ }), this.uuid = Nt(), this.name = "", this.type = "BufferGeometry", this.index = null, this.indirect = null, this.indirectOffset = 0, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = {
3204
+ super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Jr++ }), this.uuid = Nt(), this.name = "", this.type = "BufferGeometry", this.index = null, this.indirect = null, this.indirectOffset = 0, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = {
3174
3205
  start: 0,
3175
3206
  count: Infinity
3176
3207
  }, this.userData = {}, this._transformed = !1;
@@ -3179,7 +3210,7 @@ var Fr = class {
3179
3210
  return this.index;
3180
3211
  }
3181
3212
  setIndex(e) {
3182
- return Array.isArray(e) ? this.index = new (gt(e) ? Br : zr)(e, 1) : this.index = e, this;
3213
+ return Array.isArray(e) ? this.index = new (ht(e) ? Hr : Vr)(e, 1) : this.index = e, this;
3183
3214
  }
3184
3215
  setIndirect(e, t = 0) {
3185
3216
  return this.indirect = e, this.indirectOffset = t, this;
@@ -3224,28 +3255,28 @@ var Fr = class {
3224
3255
  return r !== void 0 && (r.transformDirection(e), r.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this._transformed = !0, this;
3225
3256
  }
3226
3257
  applyQuaternion(e) {
3227
- return qr.makeRotationFromQuaternion(e), this.applyMatrix4(qr), this;
3258
+ return Yr.makeRotationFromQuaternion(e), this.applyMatrix4(Yr), this;
3228
3259
  }
3229
3260
  rotateX(e) {
3230
- return qr.makeRotationX(e), this.applyMatrix4(qr), this;
3261
+ return Yr.makeRotationX(e), this.applyMatrix4(Yr), this;
3231
3262
  }
3232
3263
  rotateY(e) {
3233
- return qr.makeRotationY(e), this.applyMatrix4(qr), this;
3264
+ return Yr.makeRotationY(e), this.applyMatrix4(Yr), this;
3234
3265
  }
3235
3266
  rotateZ(e) {
3236
- return qr.makeRotationZ(e), this.applyMatrix4(qr), this;
3267
+ return Yr.makeRotationZ(e), this.applyMatrix4(Yr), this;
3237
3268
  }
3238
3269
  translate(e, t, n) {
3239
- return qr.makeTranslation(e, t, n), this.applyMatrix4(qr), this;
3270
+ return Yr.makeTranslation(e, t, n), this.applyMatrix4(Yr), this;
3240
3271
  }
3241
3272
  scale(e, t, n) {
3242
- return qr.makeScale(e, t, n), this.applyMatrix4(qr), this;
3273
+ return Yr.makeScale(e, t, n), this.applyMatrix4(Yr), this;
3243
3274
  }
3244
3275
  lookAt(e) {
3245
- return Jr.lookAt(e), Jr.updateMatrix(), this.applyMatrix4(Jr.matrix), this;
3276
+ return Xr.lookAt(e), Xr.updateMatrix(), this.applyMatrix4(Xr.matrix), this;
3246
3277
  }
3247
3278
  center() {
3248
- return this.computeBoundingBox(), this.boundingBox.getCenter(Yr).negate(), this.translate(Yr.x, Yr.y, Yr.z), this;
3279
+ return this.computeBoundingBox(), this.boundingBox.getCenter(Zr).negate(), this.translate(Zr.x, Zr.y, Zr.z), this;
3249
3280
  }
3250
3281
  setFromPoints(e) {
3251
3282
  let t = this.getAttribute("position");
@@ -3255,66 +3286,66 @@ var Fr = class {
3255
3286
  let r = e[n];
3256
3287
  t.push(r.x, r.y, r.z || 0);
3257
3288
  }
3258
- this.setAttribute("position", new G(t, 3));
3289
+ this.setAttribute("position", new K(t, 3));
3259
3290
  } else {
3260
3291
  let n = Math.min(e.length, t.count);
3261
3292
  for (let r = 0; r < n; r++) {
3262
3293
  let n = e[r];
3263
3294
  t.setXYZ(r, n.x, n.y, n.z || 0);
3264
3295
  }
3265
- e.length > t.count && k("BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."), t.needsUpdate = !0;
3296
+ e.length > t.count && j("BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."), t.needsUpdate = !0;
3266
3297
  }
3267
3298
  return this;
3268
3299
  }
3269
3300
  computeBoundingBox() {
3270
- this.boundingBox === null && (this.boundingBox = new _r());
3301
+ this.boundingBox === null && (this.boundingBox = new yr());
3271
3302
  let e = this.attributes.position, t = this.morphAttributes.position;
3272
3303
  if (e && e.isGLBufferAttribute) {
3273
- A("BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.", this), this.boundingBox.set(new I(-Infinity, -Infinity, -Infinity), new I(Infinity, Infinity, Infinity));
3304
+ M("BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.", this), this.boundingBox.set(new R(-Infinity, -Infinity, -Infinity), new R(Infinity, Infinity, Infinity));
3274
3305
  return;
3275
3306
  }
3276
3307
  if (e !== void 0) {
3277
3308
  if (this.boundingBox.setFromBufferAttribute(e), t) for (let e = 0, n = t.length; e < n; e++) {
3278
3309
  let n = t[e];
3279
- K.setFromBufferAttribute(n), this.morphTargetsRelative ? (q.addVectors(this.boundingBox.min, K.min), this.boundingBox.expandByPoint(q), q.addVectors(this.boundingBox.max, K.max), this.boundingBox.expandByPoint(q)) : (this.boundingBox.expandByPoint(K.min), this.boundingBox.expandByPoint(K.max));
3310
+ Qr.setFromBufferAttribute(n), this.morphTargetsRelative ? (q.addVectors(this.boundingBox.min, Qr.min), this.boundingBox.expandByPoint(q), q.addVectors(this.boundingBox.max, Qr.max), this.boundingBox.expandByPoint(q)) : (this.boundingBox.expandByPoint(Qr.min), this.boundingBox.expandByPoint(Qr.max));
3280
3311
  }
3281
3312
  } else this.boundingBox.makeEmpty();
3282
- (isNaN(this.boundingBox.min.x) || isNaN(this.boundingBox.min.y) || isNaN(this.boundingBox.min.z)) && A("BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The \"position\" attribute is likely to have NaN values.", this);
3313
+ (isNaN(this.boundingBox.min.x) || isNaN(this.boundingBox.min.y) || isNaN(this.boundingBox.min.z)) && M("BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The \"position\" attribute is likely to have NaN values.", this);
3283
3314
  }
3284
3315
  computeBoundingSphere() {
3285
- this.boundingSphere === null && (this.boundingSphere = new Gr());
3316
+ this.boundingSphere === null && (this.boundingSphere = new qr());
3286
3317
  let e = this.attributes.position, t = this.morphAttributes.position;
3287
3318
  if (e && e.isGLBufferAttribute) {
3288
- A("BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.", this), this.boundingSphere.set(new I(), Infinity);
3319
+ M("BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.", this), this.boundingSphere.set(new R(), Infinity);
3289
3320
  return;
3290
3321
  }
3291
3322
  if (e) {
3292
3323
  let n = this.boundingSphere.center;
3293
- if (K.setFromBufferAttribute(e), t) for (let e = 0, n = t.length; e < n; e++) {
3324
+ if (Qr.setFromBufferAttribute(e), t) for (let e = 0, n = t.length; e < n; e++) {
3294
3325
  let n = t[e];
3295
- Xr.setFromBufferAttribute(n), this.morphTargetsRelative ? (q.addVectors(K.min, Xr.min), K.expandByPoint(q), q.addVectors(K.max, Xr.max), K.expandByPoint(q)) : (K.expandByPoint(Xr.min), K.expandByPoint(Xr.max));
3326
+ $r.setFromBufferAttribute(n), this.morphTargetsRelative ? (q.addVectors(Qr.min, $r.min), Qr.expandByPoint(q), q.addVectors(Qr.max, $r.max), Qr.expandByPoint(q)) : (Qr.expandByPoint($r.min), Qr.expandByPoint($r.max));
3296
3327
  }
3297
- K.getCenter(n);
3328
+ Qr.getCenter(n);
3298
3329
  let r = 0;
3299
3330
  for (let t = 0, i = e.count; t < i; t++) q.fromBufferAttribute(e, t), r = Math.max(r, n.distanceToSquared(q));
3300
3331
  if (t) for (let i = 0, a = t.length; i < a; i++) {
3301
3332
  let a = t[i], o = this.morphTargetsRelative;
3302
- for (let t = 0, i = a.count; t < i; t++) q.fromBufferAttribute(a, t), o && (Yr.fromBufferAttribute(e, t), q.add(Yr)), r = Math.max(r, n.distanceToSquared(q));
3333
+ for (let t = 0, i = a.count; t < i; t++) q.fromBufferAttribute(a, t), o && (Zr.fromBufferAttribute(e, t), q.add(Zr)), r = Math.max(r, n.distanceToSquared(q));
3303
3334
  }
3304
- this.boundingSphere.radius = Math.sqrt(r), isNaN(this.boundingSphere.radius) && A("BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The \"position\" attribute is likely to have NaN values.", this);
3335
+ this.boundingSphere.radius = Math.sqrt(r), isNaN(this.boundingSphere.radius) && M("BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The \"position\" attribute is likely to have NaN values.", this);
3305
3336
  }
3306
3337
  }
3307
3338
  computeTangents() {
3308
3339
  let e = this.index, t = this.attributes;
3309
3340
  if (e === null || t.position === void 0 || t.normal === void 0 || t.uv === void 0) {
3310
- A("BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");
3341
+ M("BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");
3311
3342
  return;
3312
3343
  }
3313
3344
  let n = t.position, r = t.normal, i = t.uv, a = this.getAttribute("tangent");
3314
- (a === void 0 || a.count !== n.count) && (a = new Rr(new Float32Array(4 * n.count), 4), this.setAttribute("tangent", a));
3345
+ (a === void 0 || a.count !== n.count) && (a = new Br(new Float32Array(4 * n.count), 4), this.setAttribute("tangent", a));
3315
3346
  let o = [], s = [];
3316
- for (let e = 0; e < n.count; e++) o[e] = new I(), s[e] = new I();
3317
- let c = new I(), l = new I(), u = new I(), d = new F(), f = new F(), p = new F(), m = new I(), h = new I();
3347
+ for (let e = 0; e < n.count; e++) o[e] = new R(), s[e] = new R();
3348
+ let c = new R(), l = new R(), u = new R(), d = new L(), f = new L(), p = new L(), m = new R(), h = new R();
3318
3349
  function g(e, t, r) {
3319
3350
  c.fromBufferAttribute(n, e), l.fromBufferAttribute(n, t), u.fromBufferAttribute(n, r), d.fromBufferAttribute(i, e), f.fromBufferAttribute(i, t), p.fromBufferAttribute(i, r), l.sub(c), u.sub(c), f.sub(d), p.sub(d);
3320
3351
  let a = 1 / (f.x * p.y - p.x * f.y);
@@ -3329,7 +3360,7 @@ var Fr = class {
3329
3360
  let n = _[t], r = n.start, i = n.count;
3330
3361
  for (let t = r, n = r + i; t < n; t += 3) g(e.getX(t + 0), e.getX(t + 1), e.getX(t + 2));
3331
3362
  }
3332
- let v = new I(), y = new I(), b = new I(), x = new I();
3363
+ let v = new R(), y = new R(), b = new R(), x = new R();
3333
3364
  function S(e) {
3334
3365
  b.fromBufferAttribute(r, e), x.copy(b);
3335
3366
  let t = o[e];
@@ -3347,9 +3378,9 @@ var Fr = class {
3347
3378
  let e = this.index, t = this.getAttribute("position");
3348
3379
  if (t !== void 0) {
3349
3380
  let n = this.getAttribute("normal");
3350
- if (n === void 0 || n.count !== t.count) n = new Rr(new Float32Array(t.count * 3), 3), this.setAttribute("normal", n);
3381
+ if (n === void 0 || n.count !== t.count) n = new Br(new Float32Array(t.count * 3), 3), this.setAttribute("normal", n);
3351
3382
  else for (let e = 0, t = n.count; e < t; e++) n.setXYZ(e, 0, 0, 0);
3352
- let r = new I(), i = new I(), a = new I(), o = new I(), s = new I(), c = new I(), l = new I(), u = new I();
3383
+ let r = new R(), i = new R(), a = new R(), o = new R(), s = new R(), c = new R(), l = new R(), u = new R();
3353
3384
  if (e) for (let d = 0, f = e.count; d < f; d += 3) {
3354
3385
  let f = e.getX(d + 0), p = e.getX(d + 1), m = e.getX(d + 2);
3355
3386
  r.fromBufferAttribute(t, f), i.fromBufferAttribute(t, p), a.fromBufferAttribute(t, m), l.subVectors(a, i), u.subVectors(r, i), l.cross(u), o.fromBufferAttribute(n, f), s.fromBufferAttribute(n, p), c.fromBufferAttribute(n, m), o.add(l), s.add(l), c.add(l), n.setXYZ(f, o.x, o.y, o.z), n.setXYZ(p, s.x, s.y, s.z), n.setXYZ(m, c.x, c.y, c.z);
@@ -3369,9 +3400,9 @@ var Fr = class {
3369
3400
  o = e.isInterleavedBufferAttribute ? t[i] * e.data.stride + e.offset : t[i] * r;
3370
3401
  for (let e = 0; e < r; e++) a[s++] = n[o++];
3371
3402
  }
3372
- return new Rr(a, r, i);
3403
+ return new Br(a, r, i);
3373
3404
  }
3374
- if (this.index === null) return k("BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."), this;
3405
+ if (this.index === null) return j("BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."), this;
3375
3406
  let n = new e(), r = this.index.array, i = this.attributes;
3376
3407
  for (let e in i) {
3377
3408
  let a = i[e], o = t(a, r);
@@ -3400,7 +3431,7 @@ var Fr = class {
3400
3431
  type: "BufferGeometry",
3401
3432
  generator: "BufferGeometry.toJSON"
3402
3433
  } };
3403
- if (e.uuid = this.uuid, e.type = this.parameters !== void 0 && this._transformed === !0 ? "BufferGeometry" : this.type, this.name !== "" && (e.name = this.name), Object.keys(this.userData).length > 0 && (e.userData = this.userData), this.parameters !== void 0 && this._transformed !== !0) {
3434
+ if (e.uuid = this.uuid, e.type = this.parameters !== void 0 && this._transformed === !0 ? "BufferGeometry" : this.type, e.name = this.name, Object.keys(this.userData).length > 0 && (e.userData = this.userData), this.parameters !== void 0 && this._transformed !== !0) {
3404
3435
  let t = this.parameters;
3405
3436
  for (let n in t) t[n] !== void 0 && (e[n] = t[n]);
3406
3437
  return e;
@@ -3465,9 +3496,9 @@ var Fr = class {
3465
3496
  dispose() {
3466
3497
  this.dispatchEvent({ type: "dispose" });
3467
3498
  }
3468
- }, Qr = class {
3499
+ }, ti = class {
3469
3500
  constructor(e, t) {
3470
- this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e === void 0 ? 0 : e.length / t, this.usage = lt, this.updateRanges = [], this.version = 0, this.uuid = Nt();
3501
+ this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e === void 0 ? 0 : e.length / t, this.usage = st, this.updateRanges = [], this.version = 0, this.uuid = Nt();
3471
3502
  }
3472
3503
  onUploadCallback() {}
3473
3504
  set needsUpdate(e) {
@@ -3505,14 +3536,16 @@ var Fr = class {
3505
3536
  return this.onUploadCallback = e, this;
3506
3537
  }
3507
3538
  toJSON(e) {
3508
- return e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = Nt()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = Array.from(new Uint32Array(this.array.buffer))), {
3539
+ e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = Nt()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = Array.from(new Uint32Array(this.array.buffer)));
3540
+ let t = {
3509
3541
  uuid: this.uuid,
3510
3542
  buffer: this.array.buffer._uuid,
3511
3543
  type: this.array.constructor.name,
3512
3544
  stride: this.stride
3513
3545
  };
3546
+ return t.usage = this.usage, t;
3514
3547
  }
3515
- }, J = /* @__PURE__ */ new I(), $r = class e {
3548
+ }, J = /* @__PURE__ */ new R(), ni = class e {
3516
3549
  constructor(e, t, n, r = !1) {
3517
3550
  this.isInterleavedBufferAttribute = !0, this.name = "", this.data = e, this.itemSize = t, this.offset = n, this.normalized = r;
3518
3551
  }
@@ -3539,47 +3572,47 @@ var Fr = class {
3539
3572
  }
3540
3573
  getComponent(e, t) {
3541
3574
  let n = this.array[e * this.data.stride + this.offset + t];
3542
- return this.normalized && (n = N(n, this.array)), n;
3575
+ return this.normalized && (n = F(n, this.array)), n;
3543
3576
  }
3544
3577
  setComponent(e, t, n) {
3545
- return this.normalized && (n = P(n, this.array)), this.data.array[e * this.data.stride + this.offset + t] = n, this;
3578
+ return this.normalized && (n = I(n, this.array)), this.data.array[e * this.data.stride + this.offset + t] = n, this;
3546
3579
  }
3547
3580
  setX(e, t) {
3548
- return this.normalized && (t = P(t, this.array)), this.data.array[e * this.data.stride + this.offset] = t, this;
3581
+ return this.normalized && (t = I(t, this.array)), this.data.array[e * this.data.stride + this.offset] = t, this;
3549
3582
  }
3550
3583
  setY(e, t) {
3551
- return this.normalized && (t = P(t, this.array)), this.data.array[e * this.data.stride + this.offset + 1] = t, this;
3584
+ return this.normalized && (t = I(t, this.array)), this.data.array[e * this.data.stride + this.offset + 1] = t, this;
3552
3585
  }
3553
3586
  setZ(e, t) {
3554
- return this.normalized && (t = P(t, this.array)), this.data.array[e * this.data.stride + this.offset + 2] = t, this;
3587
+ return this.normalized && (t = I(t, this.array)), this.data.array[e * this.data.stride + this.offset + 2] = t, this;
3555
3588
  }
3556
3589
  setW(e, t) {
3557
- return this.normalized && (t = P(t, this.array)), this.data.array[e * this.data.stride + this.offset + 3] = t, this;
3590
+ return this.normalized && (t = I(t, this.array)), this.data.array[e * this.data.stride + this.offset + 3] = t, this;
3558
3591
  }
3559
3592
  getX(e) {
3560
3593
  let t = this.data.array[e * this.data.stride + this.offset];
3561
- return this.normalized && (t = N(t, this.array)), t;
3594
+ return this.normalized && (t = F(t, this.array)), t;
3562
3595
  }
3563
3596
  getY(e) {
3564
3597
  let t = this.data.array[e * this.data.stride + this.offset + 1];
3565
- return this.normalized && (t = N(t, this.array)), t;
3598
+ return this.normalized && (t = F(t, this.array)), t;
3566
3599
  }
3567
3600
  getZ(e) {
3568
3601
  let t = this.data.array[e * this.data.stride + this.offset + 2];
3569
- return this.normalized && (t = N(t, this.array)), t;
3602
+ return this.normalized && (t = F(t, this.array)), t;
3570
3603
  }
3571
3604
  getW(e) {
3572
3605
  let t = this.data.array[e * this.data.stride + this.offset + 3];
3573
- return this.normalized && (t = N(t, this.array)), t;
3606
+ return this.normalized && (t = F(t, this.array)), t;
3574
3607
  }
3575
3608
  setXY(e, t, n) {
3576
- return e = e * this.data.stride + this.offset, this.normalized && (t = P(t, this.array), n = P(n, this.array)), this.data.array[e + 0] = t, this.data.array[e + 1] = n, this;
3609
+ return e = e * this.data.stride + this.offset, this.normalized && (t = I(t, this.array), n = I(n, this.array)), this.data.array[e + 0] = t, this.data.array[e + 1] = n, this;
3577
3610
  }
3578
3611
  setXYZ(e, t, n, r) {
3579
- return e = e * this.data.stride + this.offset, this.normalized && (t = P(t, this.array), n = P(n, this.array), r = P(r, this.array)), this.data.array[e + 0] = t, this.data.array[e + 1] = n, this.data.array[e + 2] = r, this;
3612
+ return e = e * this.data.stride + this.offset, this.normalized && (t = I(t, this.array), n = I(n, this.array), r = I(r, this.array)), this.data.array[e + 0] = t, this.data.array[e + 1] = n, this.data.array[e + 2] = r, this;
3580
3613
  }
3581
3614
  setXYZW(e, t, n, r, i) {
3582
- return e = e * this.data.stride + this.offset, this.normalized && (t = P(t, this.array), n = P(n, this.array), r = P(r, this.array), i = P(i, this.array)), this.data.array[e + 0] = t, this.data.array[e + 1] = n, this.data.array[e + 2] = r, this.data.array[e + 3] = i, this;
3615
+ return e = e * this.data.stride + this.offset, this.normalized && (t = I(t, this.array), n = I(n, this.array), r = I(r, this.array), i = I(i, this.array)), this.data.array[e + 0] = t, this.data.array[e + 1] = n, this.data.array[e + 2] = r, this.data.array[e + 3] = i, this;
3583
3616
  }
3584
3617
  clone(t) {
3585
3618
  if (t === void 0) {
@@ -3589,7 +3622,7 @@ var Fr = class {
3589
3622
  let n = t * this.data.stride + this.offset;
3590
3623
  for (let t = 0; t < this.itemSize; t++) e.push(this.data.array[n + t]);
3591
3624
  }
3592
- return new Rr(new this.array.constructor(e), this.itemSize, this.normalized);
3625
+ return new Br(new this.array.constructor(e), this.itemSize, this.normalized);
3593
3626
  } else return t.interleavedBuffers === void 0 && (t.interleavedBuffers = {}), t.interleavedBuffers[this.data.uuid] === void 0 && (t.interleavedBuffers[this.data.uuid] = this.data.clone(t)), new e(t.interleavedBuffers[this.data.uuid], this.itemSize, this.offset, this.normalized);
3594
3627
  }
3595
3628
  toJSON(e) {
@@ -3614,9 +3647,86 @@ var Fr = class {
3614
3647
  normalized: this.normalized
3615
3648
  };
3616
3649
  }
3617
- }, ei = 0, Y = class extends kt {
3650
+ }, ri = /* @__PURE__ */ new R(), ii = /* @__PURE__ */ new R(), ai = /* @__PURE__ */ new nn(), oi = class {
3651
+ constructor(e = new R(1, 0, 0), t = 0) {
3652
+ this.isPlane = !0, this.normal = e, this.constant = t;
3653
+ }
3654
+ set(e, t) {
3655
+ return this.normal.copy(e), this.constant = t, this;
3656
+ }
3657
+ setComponents(e, t, n, r) {
3658
+ return this.normal.set(e, t, n), this.constant = r, this;
3659
+ }
3660
+ setFromNormalAndCoplanarPoint(e, t) {
3661
+ return this.normal.copy(e), this.constant = -t.dot(this.normal), this;
3662
+ }
3663
+ setFromCoplanarPoints(e, t, n) {
3664
+ let r = ri.subVectors(n, t).cross(ii.subVectors(e, t)).normalize();
3665
+ return this.setFromNormalAndCoplanarPoint(r, e), this;
3666
+ }
3667
+ copy(e) {
3668
+ return this.normal.copy(e.normal), this.constant = e.constant, this;
3669
+ }
3670
+ normalize() {
3671
+ let e = 1 / this.normal.length();
3672
+ return this.normal.multiplyScalar(e), this.constant *= e, this;
3673
+ }
3674
+ negate() {
3675
+ return this.constant *= -1, this.normal.negate(), this;
3676
+ }
3677
+ distanceToPoint(e) {
3678
+ return this.normal.dot(e) + this.constant;
3679
+ }
3680
+ distanceToSphere(e) {
3681
+ return this.distanceToPoint(e.center) - e.radius;
3682
+ }
3683
+ projectPoint(e, t) {
3684
+ return t.copy(e).addScaledVector(this.normal, -this.distanceToPoint(e));
3685
+ }
3686
+ intersectLine(e, t, n = !0) {
3687
+ let r = e.delta(ri), i = this.normal.dot(r);
3688
+ if (i === 0) return this.distanceToPoint(e.start) === 0 ? t.copy(e.start) : null;
3689
+ let a = -(e.start.dot(this.normal) + this.constant) / i;
3690
+ return n === !0 && (a < 0 || a > 1) ? null : t.copy(e.start).addScaledVector(r, a);
3691
+ }
3692
+ intersectsLine(e) {
3693
+ let t = this.distanceToPoint(e.start), n = this.distanceToPoint(e.end);
3694
+ return t < 0 && n > 0 || n < 0 && t > 0;
3695
+ }
3696
+ intersectsBox(e) {
3697
+ return e.intersectsPlane(this);
3698
+ }
3699
+ intersectsSphere(e) {
3700
+ return e.intersectsPlane(this);
3701
+ }
3702
+ coplanarPoint(e) {
3703
+ return e.copy(this.normal).multiplyScalar(-this.constant);
3704
+ }
3705
+ applyMatrix4(e, t) {
3706
+ let n = t || ai.getNormalMatrix(e), r = this.coplanarPoint(ri).applyMatrix4(e), i = this.normal.applyMatrix3(n).normalize();
3707
+ return this.constant = -r.dot(i), this;
3708
+ }
3709
+ translate(e) {
3710
+ return this.constant -= e.dot(this.normal), this;
3711
+ }
3712
+ equals(e) {
3713
+ return e.normal.equals(this.normal) && e.constant === this.constant;
3714
+ }
3715
+ clone() {
3716
+ return new this.constructor().copy(this);
3717
+ }
3718
+ toJSON() {
3719
+ return {
3720
+ normal: this.normal.toArray(),
3721
+ constant: this.constant
3722
+ };
3723
+ }
3724
+ fromJSON(e) {
3725
+ return this.normal.fromArray(e.normal), this.constant = e.constant, this;
3726
+ }
3727
+ }, si = 0, Y = class extends kt {
3618
3728
  constructor() {
3619
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: ei++ }), this.uuid = Nt(), this.name = "", this.type = "Material", this.blending = 1, this.side = 0, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = 204, this.blendDst = 205, this.blendEquation = 100, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new V(0, 0, 0), this.blendAlpha = 0, this.depthFunc = 3, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = 519, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = nt, this.stencilZFail = nt, this.stencilZPass = nt, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
3729
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: si++ }), this.uuid = Nt(), this.name = "", this.type = "Material", this.blending = 1, this.side = 0, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = 204, this.blendDst = 205, this.blendEquation = 100, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new H(0, 0, 0), this.blendAlpha = 0, this.depthFunc = 3, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = 519, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = et, this.stencilZFail = et, this.stencilZPass = et, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
3620
3730
  }
3621
3731
  get alphaTest() {
3622
3732
  return this._alphaTest;
@@ -3633,12 +3743,12 @@ var Fr = class {
3633
3743
  if (e !== void 0) for (let t in e) {
3634
3744
  let n = e[t];
3635
3745
  if (n === void 0) {
3636
- k(`Material: parameter '${t}' has value of undefined.`);
3746
+ j(`Material: parameter '${t}' has value of undefined.`);
3637
3747
  continue;
3638
3748
  }
3639
3749
  let r = this[t];
3640
3750
  if (r === void 0) {
3641
- k(`Material: '${t}' is not a property of THREE.${this.type}.`);
3751
+ j(`Material: '${t}' is not a property of THREE.${this.type}.`);
3642
3752
  continue;
3643
3753
  }
3644
3754
  r && r.isColor ? r.set(n) : r && r.isVector2 && n && n.isVector2 || r && r.isEuler && n && n.isEuler || r && r.isVector3 && n && n.isVector3 ? r.copy(n) : this[t] = n;
@@ -3655,7 +3765,7 @@ var Fr = class {
3655
3765
  type: "Material",
3656
3766
  generator: "Material.toJSON"
3657
3767
  } };
3658
- n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.sheenColorMap && this.sheenColorMap.isTexture && (n.sheenColorMap = this.sheenColorMap.toJSON(e).uuid), this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture && (n.sheenRoughnessMap = this.sheenRoughnessMap.toJSON(e).uuid), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== Infinity && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== 1 && (n.blending = this.blending), this.side !== 0 && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== 204 && (n.blendSrc = this.blendSrc), this.blendDst !== 205 && (n.blendDst = this.blendDst), this.blendEquation !== 100 && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== 3 && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== 519 && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== 7680 && (n.stencilFail = this.stencilFail), this.stencilZFail !== 7680 && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== 7680 && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.allowOverride === !1 && (n.allowOverride = !1), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
3768
+ n.uuid = this.uuid, n.type = this.type, n.blending = this.blending, n.side = this.side, n.shadowSide = this.shadowSide, n.vertexColors = this.vertexColors, n.opacity = this.opacity, n.transparent = this.transparent, n.blendSrc = this.blendSrc, n.blendDst = this.blendDst, n.blendEquation = this.blendEquation, n.blendSrcAlpha = this.blendSrcAlpha, n.blendDstAlpha = this.blendDstAlpha, n.blendEquationAlpha = this.blendEquationAlpha, n.blendColor = this.blendColor.getHex(), n.blendAlpha = this.blendAlpha, n.depthFunc = this.depthFunc, n.depthTest = this.depthTest, n.depthWrite = this.depthWrite, n.colorWrite = this.colorWrite, n.clipIntersection = this.clipIntersection, n.clipShadows = this.clipShadows, n.stencilWriteMask = this.stencilWriteMask, n.stencilFunc = this.stencilFunc, n.stencilRef = this.stencilRef, n.stencilFuncMask = this.stencilFuncMask, n.stencilFail = this.stencilFail, n.stencilZFail = this.stencilZFail, n.stencilZPass = this.stencilZPass, n.stencilWrite = this.stencilWrite, n.polygonOffset = this.polygonOffset, n.polygonOffsetFactor = this.polygonOffsetFactor, n.polygonOffsetUnits = this.polygonOffsetUnits, n.dithering = this.dithering, n.alphaTest = this.alphaTest, n.alphaHash = this.alphaHash, n.alphaToCoverage = this.alphaToCoverage, n.premultipliedAlpha = this.premultipliedAlpha, n.forceSinglePass = this.forceSinglePass, n.allowOverride = this.allowOverride, n.visible = this.visible, n.toneMapped = this.toneMapped, n.name = this.name, this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.sheenColorMap && this.sheenColorMap.isTexture && (n.sheenColorMap = this.sheenColorMap.toJSON(e).uuid), this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture && (n.sheenRoughnessMap = this.sheenRoughnessMap.toJSON(e).uuid), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.retroreflectivity !== void 0 && (n.retroreflectivity = this.retroreflectivity), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), Array.isArray(this.clippingPlanes) && this.clippingPlanes.length > 0 && (n.clippingPlanes = this.clippingPlanes.map((e) => e.toJSON())), this.rotation !== void 0 && (n.rotation = this.rotation), this.depthPacking !== void 0 && (n.depthPacking = this.depthPacking), this.linewidth !== void 0 && (n.linewidth = this.linewidth), this.linecap !== void 0 && (n.linecap = this.linecap), this.linejoin !== void 0 && (n.linejoin = this.linejoin), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.wireframe !== void 0 && (n.wireframe = this.wireframe), this.wireframeLinewidth !== void 0 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== void 0 && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== void 0 && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading !== void 0 && (n.flatShading = this.flatShading), this.fog !== void 0 && (n.fog = this.fog), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
3659
3769
  function r(e) {
3660
3770
  let t = [];
3661
3771
  for (let n in e) {
@@ -3671,11 +3781,11 @@ var Fr = class {
3671
3781
  return n;
3672
3782
  }
3673
3783
  fromJSON(e, t) {
3674
- if (e.uuid !== void 0 && (this.uuid = e.uuid), e.name !== void 0 && (this.name = e.name), e.color !== void 0 && this.color !== void 0 && this.color.setHex(e.color), e.roughness !== void 0 && (this.roughness = e.roughness), e.metalness !== void 0 && (this.metalness = e.metalness), e.sheen !== void 0 && (this.sheen = e.sheen), e.sheenColor !== void 0 && (this.sheenColor = new V().setHex(e.sheenColor)), e.sheenRoughness !== void 0 && (this.sheenRoughness = e.sheenRoughness), e.emissive !== void 0 && this.emissive !== void 0 && this.emissive.setHex(e.emissive), e.specular !== void 0 && this.specular !== void 0 && this.specular.setHex(e.specular), e.specularIntensity !== void 0 && (this.specularIntensity = e.specularIntensity), e.specularColor !== void 0 && this.specularColor !== void 0 && this.specularColor.setHex(e.specularColor), e.shininess !== void 0 && (this.shininess = e.shininess), e.clearcoat !== void 0 && (this.clearcoat = e.clearcoat), e.clearcoatRoughness !== void 0 && (this.clearcoatRoughness = e.clearcoatRoughness), e.dispersion !== void 0 && (this.dispersion = e.dispersion), e.iridescence !== void 0 && (this.iridescence = e.iridescence), e.iridescenceIOR !== void 0 && (this.iridescenceIOR = e.iridescenceIOR), e.iridescenceThicknessRange !== void 0 && (this.iridescenceThicknessRange = e.iridescenceThicknessRange), e.transmission !== void 0 && (this.transmission = e.transmission), e.thickness !== void 0 && (this.thickness = e.thickness), e.attenuationDistance !== void 0 && (this.attenuationDistance = e.attenuationDistance), e.attenuationColor !== void 0 && this.attenuationColor !== void 0 && this.attenuationColor.setHex(e.attenuationColor), e.anisotropy !== void 0 && (this.anisotropy = e.anisotropy), e.anisotropyRotation !== void 0 && (this.anisotropyRotation = e.anisotropyRotation), e.fog !== void 0 && (this.fog = e.fog), e.flatShading !== void 0 && (this.flatShading = e.flatShading), e.blending !== void 0 && (this.blending = e.blending), e.combine !== void 0 && (this.combine = e.combine), e.side !== void 0 && (this.side = e.side), e.shadowSide !== void 0 && (this.shadowSide = e.shadowSide), e.opacity !== void 0 && (this.opacity = e.opacity), e.transparent !== void 0 && (this.transparent = e.transparent), e.alphaTest !== void 0 && (this.alphaTest = e.alphaTest), e.alphaHash !== void 0 && (this.alphaHash = e.alphaHash), e.depthFunc !== void 0 && (this.depthFunc = e.depthFunc), e.depthTest !== void 0 && (this.depthTest = e.depthTest), e.depthWrite !== void 0 && (this.depthWrite = e.depthWrite), e.colorWrite !== void 0 && (this.colorWrite = e.colorWrite), e.blendSrc !== void 0 && (this.blendSrc = e.blendSrc), e.blendDst !== void 0 && (this.blendDst = e.blendDst), e.blendEquation !== void 0 && (this.blendEquation = e.blendEquation), e.blendSrcAlpha !== void 0 && (this.blendSrcAlpha = e.blendSrcAlpha), e.blendDstAlpha !== void 0 && (this.blendDstAlpha = e.blendDstAlpha), e.blendEquationAlpha !== void 0 && (this.blendEquationAlpha = e.blendEquationAlpha), e.blendColor !== void 0 && this.blendColor !== void 0 && this.blendColor.setHex(e.blendColor), e.blendAlpha !== void 0 && (this.blendAlpha = e.blendAlpha), e.stencilWriteMask !== void 0 && (this.stencilWriteMask = e.stencilWriteMask), e.stencilFunc !== void 0 && (this.stencilFunc = e.stencilFunc), e.stencilRef !== void 0 && (this.stencilRef = e.stencilRef), e.stencilFuncMask !== void 0 && (this.stencilFuncMask = e.stencilFuncMask), e.stencilFail !== void 0 && (this.stencilFail = e.stencilFail), e.stencilZFail !== void 0 && (this.stencilZFail = e.stencilZFail), e.stencilZPass !== void 0 && (this.stencilZPass = e.stencilZPass), e.stencilWrite !== void 0 && (this.stencilWrite = e.stencilWrite), e.wireframe !== void 0 && (this.wireframe = e.wireframe), e.wireframeLinewidth !== void 0 && (this.wireframeLinewidth = e.wireframeLinewidth), e.wireframeLinecap !== void 0 && (this.wireframeLinecap = e.wireframeLinecap), e.wireframeLinejoin !== void 0 && (this.wireframeLinejoin = e.wireframeLinejoin), e.rotation !== void 0 && (this.rotation = e.rotation), e.linewidth !== void 0 && (this.linewidth = e.linewidth), e.dashSize !== void 0 && (this.dashSize = e.dashSize), e.gapSize !== void 0 && (this.gapSize = e.gapSize), e.scale !== void 0 && (this.scale = e.scale), e.polygonOffset !== void 0 && (this.polygonOffset = e.polygonOffset), e.polygonOffsetFactor !== void 0 && (this.polygonOffsetFactor = e.polygonOffsetFactor), e.polygonOffsetUnits !== void 0 && (this.polygonOffsetUnits = e.polygonOffsetUnits), e.dithering !== void 0 && (this.dithering = e.dithering), e.alphaToCoverage !== void 0 && (this.alphaToCoverage = e.alphaToCoverage), e.premultipliedAlpha !== void 0 && (this.premultipliedAlpha = e.premultipliedAlpha), e.forceSinglePass !== void 0 && (this.forceSinglePass = e.forceSinglePass), e.allowOverride !== void 0 && (this.allowOverride = e.allowOverride), e.visible !== void 0 && (this.visible = e.visible), e.toneMapped !== void 0 && (this.toneMapped = e.toneMapped), e.userData !== void 0 && (this.userData = e.userData), e.vertexColors !== void 0 && (typeof e.vertexColors == "number" ? this.vertexColors = e.vertexColors > 0 : this.vertexColors = e.vertexColors), e.size !== void 0 && (this.size = e.size), e.sizeAttenuation !== void 0 && (this.sizeAttenuation = e.sizeAttenuation), e.map !== void 0 && (this.map = t[e.map] || null), e.matcap !== void 0 && (this.matcap = t[e.matcap] || null), e.alphaMap !== void 0 && (this.alphaMap = t[e.alphaMap] || null), e.bumpMap !== void 0 && (this.bumpMap = t[e.bumpMap] || null), e.bumpScale !== void 0 && (this.bumpScale = e.bumpScale), e.normalMap !== void 0 && (this.normalMap = t[e.normalMap] || null), e.normalMapType !== void 0 && (this.normalMapType = e.normalMapType), e.normalScale !== void 0) {
3784
+ if (e.uuid !== void 0 && (this.uuid = e.uuid), e.name !== void 0 && (this.name = e.name), e.color !== void 0 && this.color !== void 0 && this.color.setHex(e.color), e.roughness !== void 0 && (this.roughness = e.roughness), e.metalness !== void 0 && (this.metalness = e.metalness), e.sheen !== void 0 && (this.sheen = e.sheen), e.sheenColor !== void 0 && (this.sheenColor = new H().setHex(e.sheenColor)), e.sheenRoughness !== void 0 && (this.sheenRoughness = e.sheenRoughness), e.emissive !== void 0 && this.emissive !== void 0 && this.emissive.setHex(e.emissive), e.specular !== void 0 && this.specular !== void 0 && this.specular.setHex(e.specular), e.specularIntensity !== void 0 && (this.specularIntensity = e.specularIntensity), e.specularColor !== void 0 && this.specularColor !== void 0 && this.specularColor.setHex(e.specularColor), e.shininess !== void 0 && (this.shininess = e.shininess), e.clearcoat !== void 0 && (this.clearcoat = e.clearcoat), e.clearcoatRoughness !== void 0 && (this.clearcoatRoughness = e.clearcoatRoughness), e.dispersion !== void 0 && (this.dispersion = e.dispersion), e.retroreflectivity !== void 0 && (this.retroreflectivity = e.retroreflectivity), e.iridescence !== void 0 && (this.iridescence = e.iridescence), e.iridescenceIOR !== void 0 && (this.iridescenceIOR = e.iridescenceIOR), e.iridescenceThicknessRange !== void 0 && (this.iridescenceThicknessRange = e.iridescenceThicknessRange), e.transmission !== void 0 && (this.transmission = e.transmission), e.thickness !== void 0 && (this.thickness = e.thickness), e.attenuationDistance !== void 0 && (this.attenuationDistance = e.attenuationDistance), e.attenuationColor !== void 0 && this.attenuationColor !== void 0 && this.attenuationColor.setHex(e.attenuationColor), e.anisotropy !== void 0 && (this.anisotropy = e.anisotropy), e.anisotropyRotation !== void 0 && (this.anisotropyRotation = e.anisotropyRotation), e.fog !== void 0 && (this.fog = e.fog), e.flatShading !== void 0 && (this.flatShading = e.flatShading), e.blending !== void 0 && (this.blending = e.blending), e.combine !== void 0 && (this.combine = e.combine), e.side !== void 0 && (this.side = e.side), e.shadowSide !== void 0 && (this.shadowSide = e.shadowSide), e.opacity !== void 0 && (this.opacity = e.opacity), e.transparent !== void 0 && (this.transparent = e.transparent), e.alphaTest !== void 0 && (this.alphaTest = e.alphaTest), e.alphaHash !== void 0 && (this.alphaHash = e.alphaHash), e.depthFunc !== void 0 && (this.depthFunc = e.depthFunc), e.depthTest !== void 0 && (this.depthTest = e.depthTest), e.depthWrite !== void 0 && (this.depthWrite = e.depthWrite), e.colorWrite !== void 0 && (this.colorWrite = e.colorWrite), e.clippingPlanes !== void 0 && (this.clippingPlanes = e.clippingPlanes.map((e) => new oi().fromJSON(e))), e.clipIntersection !== void 0 && (this.clipIntersection = e.clipIntersection), e.clipShadows !== void 0 && (this.clipShadows = e.clipShadows), e.depthPacking !== void 0 && (this.depthPacking = e.depthPacking), e.blendSrc !== void 0 && (this.blendSrc = e.blendSrc), e.blendDst !== void 0 && (this.blendDst = e.blendDst), e.blendEquation !== void 0 && (this.blendEquation = e.blendEquation), e.blendSrcAlpha !== void 0 && (this.blendSrcAlpha = e.blendSrcAlpha), e.blendDstAlpha !== void 0 && (this.blendDstAlpha = e.blendDstAlpha), e.blendEquationAlpha !== void 0 && (this.blendEquationAlpha = e.blendEquationAlpha), e.blendColor !== void 0 && this.blendColor !== void 0 && this.blendColor.setHex(e.blendColor), e.blendAlpha !== void 0 && (this.blendAlpha = e.blendAlpha), e.stencilWriteMask !== void 0 && (this.stencilWriteMask = e.stencilWriteMask), e.stencilFunc !== void 0 && (this.stencilFunc = e.stencilFunc), e.stencilRef !== void 0 && (this.stencilRef = e.stencilRef), e.stencilFuncMask !== void 0 && (this.stencilFuncMask = e.stencilFuncMask), e.stencilFail !== void 0 && (this.stencilFail = e.stencilFail), e.stencilZFail !== void 0 && (this.stencilZFail = e.stencilZFail), e.stencilZPass !== void 0 && (this.stencilZPass = e.stencilZPass), e.stencilWrite !== void 0 && (this.stencilWrite = e.stencilWrite), e.wireframe !== void 0 && (this.wireframe = e.wireframe), e.wireframeLinewidth !== void 0 && (this.wireframeLinewidth = e.wireframeLinewidth), e.wireframeLinecap !== void 0 && (this.wireframeLinecap = e.wireframeLinecap), e.wireframeLinejoin !== void 0 && (this.wireframeLinejoin = e.wireframeLinejoin), e.rotation !== void 0 && (this.rotation = e.rotation), e.linewidth !== void 0 && (this.linewidth = e.linewidth), e.linecap !== void 0 && (this.linecap = e.linecap), e.linejoin !== void 0 && (this.linejoin = e.linejoin), e.dashSize !== void 0 && (this.dashSize = e.dashSize), e.gapSize !== void 0 && (this.gapSize = e.gapSize), e.scale !== void 0 && (this.scale = e.scale), e.polygonOffset !== void 0 && (this.polygonOffset = e.polygonOffset), e.polygonOffsetFactor !== void 0 && (this.polygonOffsetFactor = e.polygonOffsetFactor), e.polygonOffsetUnits !== void 0 && (this.polygonOffsetUnits = e.polygonOffsetUnits), e.dithering !== void 0 && (this.dithering = e.dithering), e.alphaToCoverage !== void 0 && (this.alphaToCoverage = e.alphaToCoverage), e.premultipliedAlpha !== void 0 && (this.premultipliedAlpha = e.premultipliedAlpha), e.forceSinglePass !== void 0 && (this.forceSinglePass = e.forceSinglePass), e.allowOverride !== void 0 && (this.allowOverride = e.allowOverride), e.visible !== void 0 && (this.visible = e.visible), e.toneMapped !== void 0 && (this.toneMapped = e.toneMapped), e.userData !== void 0 && (this.userData = e.userData), e.vertexColors !== void 0 && (typeof e.vertexColors == "number" ? this.vertexColors = e.vertexColors > 0 : this.vertexColors = e.vertexColors), e.size !== void 0 && (this.size = e.size), e.sizeAttenuation !== void 0 && (this.sizeAttenuation = e.sizeAttenuation), e.map !== void 0 && (this.map = t[e.map] || null), e.matcap !== void 0 && (this.matcap = t[e.matcap] || null), e.alphaMap !== void 0 && (this.alphaMap = t[e.alphaMap] || null), e.bumpMap !== void 0 && (this.bumpMap = t[e.bumpMap] || null), e.bumpScale !== void 0 && (this.bumpScale = e.bumpScale), e.normalMap !== void 0 && (this.normalMap = t[e.normalMap] || null), e.normalMapType !== void 0 && (this.normalMapType = e.normalMapType), e.normalScale !== void 0) {
3675
3785
  let t = e.normalScale;
3676
- Array.isArray(t) === !1 && (t = [t, t]), this.normalScale = new F().fromArray(t);
3786
+ Array.isArray(t) === !1 && (t = [t, t]), this.normalScale = new L().fromArray(t);
3677
3787
  }
3678
- return e.displacementMap !== void 0 && (this.displacementMap = t[e.displacementMap] || null), e.displacementScale !== void 0 && (this.displacementScale = e.displacementScale), e.displacementBias !== void 0 && (this.displacementBias = e.displacementBias), e.roughnessMap !== void 0 && (this.roughnessMap = t[e.roughnessMap] || null), e.metalnessMap !== void 0 && (this.metalnessMap = t[e.metalnessMap] || null), e.emissiveMap !== void 0 && (this.emissiveMap = t[e.emissiveMap] || null), e.emissiveIntensity !== void 0 && (this.emissiveIntensity = e.emissiveIntensity), e.specularMap !== void 0 && (this.specularMap = t[e.specularMap] || null), e.specularIntensityMap !== void 0 && (this.specularIntensityMap = t[e.specularIntensityMap] || null), e.specularColorMap !== void 0 && (this.specularColorMap = t[e.specularColorMap] || null), e.envMap !== void 0 && (this.envMap = t[e.envMap] || null), e.envMapRotation !== void 0 && this.envMapRotation.fromArray(e.envMapRotation), e.envMapIntensity !== void 0 && (this.envMapIntensity = e.envMapIntensity), e.reflectivity !== void 0 && (this.reflectivity = e.reflectivity), e.refractionRatio !== void 0 && (this.refractionRatio = e.refractionRatio), e.lightMap !== void 0 && (this.lightMap = t[e.lightMap] || null), e.lightMapIntensity !== void 0 && (this.lightMapIntensity = e.lightMapIntensity), e.aoMap !== void 0 && (this.aoMap = t[e.aoMap] || null), e.aoMapIntensity !== void 0 && (this.aoMapIntensity = e.aoMapIntensity), e.gradientMap !== void 0 && (this.gradientMap = t[e.gradientMap] || null), e.clearcoatMap !== void 0 && (this.clearcoatMap = t[e.clearcoatMap] || null), e.clearcoatRoughnessMap !== void 0 && (this.clearcoatRoughnessMap = t[e.clearcoatRoughnessMap] || null), e.clearcoatNormalMap !== void 0 && (this.clearcoatNormalMap = t[e.clearcoatNormalMap] || null), e.clearcoatNormalScale !== void 0 && (this.clearcoatNormalScale = new F().fromArray(e.clearcoatNormalScale)), e.iridescenceMap !== void 0 && (this.iridescenceMap = t[e.iridescenceMap] || null), e.iridescenceThicknessMap !== void 0 && (this.iridescenceThicknessMap = t[e.iridescenceThicknessMap] || null), e.transmissionMap !== void 0 && (this.transmissionMap = t[e.transmissionMap] || null), e.thicknessMap !== void 0 && (this.thicknessMap = t[e.thicknessMap] || null), e.anisotropyMap !== void 0 && (this.anisotropyMap = t[e.anisotropyMap] || null), e.sheenColorMap !== void 0 && (this.sheenColorMap = t[e.sheenColorMap] || null), e.sheenRoughnessMap !== void 0 && (this.sheenRoughnessMap = t[e.sheenRoughnessMap] || null), this;
3788
+ return e.displacementMap !== void 0 && (this.displacementMap = t[e.displacementMap] || null), e.displacementScale !== void 0 && (this.displacementScale = e.displacementScale), e.displacementBias !== void 0 && (this.displacementBias = e.displacementBias), e.roughnessMap !== void 0 && (this.roughnessMap = t[e.roughnessMap] || null), e.metalnessMap !== void 0 && (this.metalnessMap = t[e.metalnessMap] || null), e.emissiveMap !== void 0 && (this.emissiveMap = t[e.emissiveMap] || null), e.emissiveIntensity !== void 0 && (this.emissiveIntensity = e.emissiveIntensity), e.specularMap !== void 0 && (this.specularMap = t[e.specularMap] || null), e.specularIntensityMap !== void 0 && (this.specularIntensityMap = t[e.specularIntensityMap] || null), e.specularColorMap !== void 0 && (this.specularColorMap = t[e.specularColorMap] || null), e.envMap !== void 0 && (this.envMap = t[e.envMap] || null), e.envMapRotation !== void 0 && this.envMapRotation.fromArray(e.envMapRotation), e.envMapIntensity !== void 0 && (this.envMapIntensity = e.envMapIntensity), e.reflectivity !== void 0 && (this.reflectivity = e.reflectivity), e.refractionRatio !== void 0 && (this.refractionRatio = e.refractionRatio), e.lightMap !== void 0 && (this.lightMap = t[e.lightMap] || null), e.lightMapIntensity !== void 0 && (this.lightMapIntensity = e.lightMapIntensity), e.aoMap !== void 0 && (this.aoMap = t[e.aoMap] || null), e.aoMapIntensity !== void 0 && (this.aoMapIntensity = e.aoMapIntensity), e.gradientMap !== void 0 && (this.gradientMap = t[e.gradientMap] || null), e.clearcoatMap !== void 0 && (this.clearcoatMap = t[e.clearcoatMap] || null), e.clearcoatRoughnessMap !== void 0 && (this.clearcoatRoughnessMap = t[e.clearcoatRoughnessMap] || null), e.clearcoatNormalMap !== void 0 && (this.clearcoatNormalMap = t[e.clearcoatNormalMap] || null), e.clearcoatNormalScale !== void 0 && (this.clearcoatNormalScale = new L().fromArray(e.clearcoatNormalScale)), e.iridescenceMap !== void 0 && (this.iridescenceMap = t[e.iridescenceMap] || null), e.iridescenceThicknessMap !== void 0 && (this.iridescenceThicknessMap = t[e.iridescenceThicknessMap] || null), e.transmissionMap !== void 0 && (this.transmissionMap = t[e.transmissionMap] || null), e.thicknessMap !== void 0 && (this.thicknessMap = t[e.thicknessMap] || null), e.anisotropyMap !== void 0 && (this.anisotropyMap = t[e.anisotropyMap] || null), e.sheenColorMap !== void 0 && (this.sheenColorMap = t[e.sheenColorMap] || null), e.sheenRoughnessMap !== void 0 && (this.sheenRoughnessMap = t[e.sheenRoughnessMap] || null), this;
3679
3789
  }
3680
3790
  clone() {
3681
3791
  return new this.constructor().copy(this);
@@ -3696,15 +3806,15 @@ var Fr = class {
3696
3806
  set needsUpdate(e) {
3697
3807
  e === !0 && this.version++;
3698
3808
  }
3699
- }, ti = class extends Y {
3809
+ }, ci = class extends Y {
3700
3810
  constructor(e) {
3701
- super(), this.isSpriteMaterial = !0, this.type = "SpriteMaterial", this.color = new V(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.fog = !0, this.setValues(e);
3811
+ super(), this.isSpriteMaterial = !0, this.type = "SpriteMaterial", this.color = new H(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.fog = !0, this.setValues(e);
3702
3812
  }
3703
3813
  copy(e) {
3704
3814
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.rotation = e.rotation, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
3705
3815
  }
3706
- }, ni = /* @__PURE__ */ new I(), ri = /* @__PURE__ */ new I(), ii = /* @__PURE__ */ new I(), ai = /* @__PURE__ */ new I(), oi = /* @__PURE__ */ new I(), si = /* @__PURE__ */ new I(), ci = /* @__PURE__ */ new I(), li = class {
3707
- constructor(e = new I(), t = new I(0, 0, -1)) {
3816
+ }, li = /* @__PURE__ */ new R(), ui = /* @__PURE__ */ new R(), di = /* @__PURE__ */ new R(), fi = /* @__PURE__ */ new R(), pi = class {
3817
+ constructor(e = new R(), t = new R(0, 0, -1)) {
3708
3818
  this.origin = e, this.direction = t;
3709
3819
  }
3710
3820
  set(e, t) {
@@ -3720,7 +3830,7 @@ var Fr = class {
3720
3830
  return this.direction.copy(e).sub(this.origin).normalize(), this;
3721
3831
  }
3722
3832
  recast(e) {
3723
- return this.origin.copy(this.at(e, ni)), this;
3833
+ return this.origin.copy(this.at(e, li)), this;
3724
3834
  }
3725
3835
  closestPointToPoint(e, t) {
3726
3836
  t.subVectors(e, this.origin);
@@ -3731,12 +3841,12 @@ var Fr = class {
3731
3841
  return Math.sqrt(this.distanceSqToPoint(e));
3732
3842
  }
3733
3843
  distanceSqToPoint(e) {
3734
- let t = ni.subVectors(e, this.origin).dot(this.direction);
3735
- return t < 0 ? this.origin.distanceToSquared(e) : (ni.copy(this.origin).addScaledVector(this.direction, t), ni.distanceToSquared(e));
3844
+ let t = li.subVectors(e, this.origin).dot(this.direction);
3845
+ return t < 0 ? this.origin.distanceToSquared(e) : (li.copy(this.origin).addScaledVector(this.direction, t), li.distanceToSquared(e));
3736
3846
  }
3737
3847
  distanceSqToSegment(e, t, n, r) {
3738
- ri.copy(e).add(t).multiplyScalar(.5), ii.copy(t).sub(e).normalize(), ai.copy(this.origin).sub(ri);
3739
- let i = e.distanceTo(t) * .5, a = -this.direction.dot(ii), o = ai.dot(this.direction), s = -ai.dot(ii), c = ai.lengthSq(), l = Math.abs(1 - a * a), u, d, f, p;
3848
+ ui.copy(e).add(t).multiplyScalar(.5), di.copy(t).sub(e).normalize(), fi.copy(this.origin).sub(ui);
3849
+ let i = e.distanceTo(t) * .5, a = -this.direction.dot(di), o = fi.dot(this.direction), s = -fi.dot(di), c = fi.lengthSq(), l = Math.abs(1 - a * a), u, d, f, p;
3740
3850
  if (l > 0) if (u = a * s - o, d = a * o - s, p = i * l, u >= 0) if (d >= -p) if (d <= p) {
3741
3851
  let e = 1 / l;
3742
3852
  u *= e, d *= e, f = u * (u + a * d + 2 * o) + d * (a * u + d + 2 * s) + c;
@@ -3744,11 +3854,12 @@ var Fr = class {
3744
3854
  else d = -i, u = Math.max(0, -(a * d + o)), f = -u * u + d * (d + 2 * s) + c;
3745
3855
  else d <= -p ? (u = Math.max(0, -(-a * i + o)), d = u > 0 ? -i : Math.min(Math.max(-i, -s), i), f = -u * u + d * (d + 2 * s) + c) : d <= p ? (u = 0, d = Math.min(Math.max(-i, -s), i), f = d * (d + 2 * s) + c) : (u = Math.max(0, -(a * i + o)), d = u > 0 ? i : Math.min(Math.max(-i, -s), i), f = -u * u + d * (d + 2 * s) + c);
3746
3856
  else d = a > 0 ? -i : i, u = Math.max(0, -(a * d + o)), f = -u * u + d * (d + 2 * s) + c;
3747
- return n && n.copy(this.origin).addScaledVector(this.direction, u), r && r.copy(ri).addScaledVector(ii, d), f;
3857
+ return n && n.copy(this.origin).addScaledVector(this.direction, u), r && r.copy(ui).addScaledVector(di, d), f;
3748
3858
  }
3749
3859
  intersectSphere(e, t) {
3750
- ni.subVectors(e.center, this.origin);
3751
- let n = ni.dot(this.direction), r = ni.dot(ni) - n * n, i = e.radius * e.radius;
3860
+ if (e.radius < 0) return null;
3861
+ li.subVectors(e.center, this.origin);
3862
+ let n = li.dot(this.direction), r = li.dot(li) - n * n, i = e.radius * e.radius;
3752
3863
  if (r > i) return null;
3753
3864
  let a = Math.sqrt(i - r), o = n - a, s = n + a;
3754
3865
  return s < 0 ? null : o < 0 ? this.at(s, t) : this.at(o, t);
@@ -3775,23 +3886,19 @@ var Fr = class {
3775
3886
  return c >= 0 ? (n = (e.min.x - d.x) * c, r = (e.max.x - d.x) * c) : (n = (e.max.x - d.x) * c, r = (e.min.x - d.x) * c), l >= 0 ? (i = (e.min.y - d.y) * l, a = (e.max.y - d.y) * l) : (i = (e.max.y - d.y) * l, a = (e.min.y - d.y) * l), n > a || i > r || ((i > n || isNaN(n)) && (n = i), (a < r || isNaN(r)) && (r = a), u >= 0 ? (o = (e.min.z - d.z) * u, s = (e.max.z - d.z) * u) : (o = (e.max.z - d.z) * u, s = (e.min.z - d.z) * u), n > s || o > r) || ((o > n || n !== n) && (n = o), (s < r || r !== r) && (r = s), r < 0) ? null : this.at(n >= 0 ? n : r, t);
3776
3887
  }
3777
3888
  intersectsBox(e) {
3778
- return this.intersectBox(e, ni) !== null;
3889
+ return this.intersectBox(e, li) !== null;
3779
3890
  }
3780
3891
  intersectTriangle(e, t, n, r, i) {
3781
- oi.subVectors(t, e), si.subVectors(n, e), ci.crossVectors(oi, si);
3782
- let a = this.direction.dot(ci), o;
3783
- if (a > 0) {
3784
- if (r) return null;
3785
- o = 1;
3786
- } else if (a < 0) o = -1, a = -a;
3787
- else return null;
3788
- ai.subVectors(this.origin, e);
3789
- let s = o * this.direction.dot(si.crossVectors(ai, si));
3790
- if (s < 0) return null;
3791
- let c = o * this.direction.dot(oi.cross(ai));
3792
- if (c < 0 || s + c > a) return null;
3793
- let l = -o * ai.dot(ci);
3794
- return l < 0 ? null : this.at(l / a, i);
3892
+ let a = this.origin, o = this.direction, s = o.x, c = o.y, l = o.z, u = e.x - a.x, d = e.y - a.y, f = e.z - a.z, p = t.x - a.x, m = t.y - a.y, h = t.z - a.z, g = n.x - a.x, _ = n.y - a.y, v = n.z - a.z, y = Math.abs(s), b = Math.abs(c), x = Math.abs(l), S, C, w, T, E, D, O, k, A, ee, te, ne;
3893
+ if (y >= b && y >= x ? (w = s, D = u, A = p, ne = g, s >= 0 ? (S = c, C = l, T = d, E = f, O = m, k = h, ee = _, te = v) : (S = l, C = c, T = f, E = d, O = h, k = m, ee = v, te = _)) : b >= x ? (w = c, D = d, A = m, ne = _, c >= 0 ? (S = l, C = s, T = f, E = u, O = h, k = p, ee = v, te = g) : (S = s, C = l, T = u, E = f, O = p, k = h, ee = g, te = v)) : (w = l, D = f, A = h, ne = v, l >= 0 ? (S = s, C = c, T = u, E = d, O = p, k = m, ee = g, te = _) : (S = c, C = s, T = d, E = u, O = m, k = p, ee = _, te = g)), w === 0) return null;
3894
+ let re = S / w, ie = C / w, ae = 1 / w, oe = T - re * D, se = E - ie * D, ce = O - re * A, le = k - ie * A, ue = ee - re * ne, de = te - ie * ne, fe = ue * le - de * ce, pe = oe * de - se * ue, me = ce * se - le * oe;
3895
+ if (r) {
3896
+ if (fe < 0 || pe < 0 || me < 0) return null;
3897
+ } else if ((fe < 0 || pe < 0 || me < 0) && (fe > 0 || pe > 0 || me > 0)) return null;
3898
+ let he = fe + pe + me;
3899
+ if (he === 0) return null;
3900
+ let ge = ae * (fe * D + pe * A + me * ne);
3901
+ return (he > 0 ? ge < 0 : ge > 0) ? null : this.at(ge / he, i);
3795
3902
  }
3796
3903
  applyMatrix4(e) {
3797
3904
  return this.origin.applyMatrix4(e), this.direction.transformDirection(e), this;
@@ -3802,15 +3909,15 @@ var Fr = class {
3802
3909
  clone() {
3803
3910
  return new this.constructor().copy(this);
3804
3911
  }
3805
- }, ui = class extends Y {
3912
+ }, mi = class extends Y {
3806
3913
  constructor(e) {
3807
- super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new V(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new jn(), this.combine = 0, this.reflectivity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e);
3914
+ super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new H(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Nn(), this.combine = 0, this.reflectivity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e);
3808
3915
  }
3809
3916
  copy(e) {
3810
3917
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
3811
3918
  }
3812
- }, di = /* @__PURE__ */ new R(), fi = /* @__PURE__ */ new li(), pi = /* @__PURE__ */ new Gr(), mi = /* @__PURE__ */ new I(), hi = /* @__PURE__ */ new I(), gi = /* @__PURE__ */ new I(), _i = /* @__PURE__ */ new I(), vi = /* @__PURE__ */ new I(), yi = /* @__PURE__ */ new I(), bi = /* @__PURE__ */ new I(), xi = /* @__PURE__ */ new I(), Si = class extends B {
3813
- constructor(e = new Zr(), t = new ui()) {
3919
+ }, hi = /* @__PURE__ */ new B(), gi = /* @__PURE__ */ new pi(), _i = /* @__PURE__ */ new qr(), vi = /* @__PURE__ */ new R(), yi = /* @__PURE__ */ new R(), bi = /* @__PURE__ */ new R(), xi = /* @__PURE__ */ new R(), Si = /* @__PURE__ */ new R(), Ci = /* @__PURE__ */ new R(), wi = /* @__PURE__ */ new R(), Ti = /* @__PURE__ */ new R(), Ei = class extends V {
3920
+ constructor(e = new ei(), t = new mi()) {
3814
3921
  super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.count = 1, this.updateMorphTargets();
3815
3922
  }
3816
3923
  copy(e, t) {
@@ -3834,18 +3941,21 @@ var Fr = class {
3834
3941
  t.fromBufferAttribute(r, e);
3835
3942
  let o = this.morphTargetInfluences;
3836
3943
  if (i && o) {
3837
- yi.set(0, 0, 0);
3944
+ Ci.set(0, 0, 0);
3838
3945
  for (let n = 0, r = i.length; n < r; n++) {
3839
3946
  let r = o[n], s = i[n];
3840
- r !== 0 && (vi.fromBufferAttribute(s, e), a ? yi.addScaledVector(vi, r) : yi.addScaledVector(vi.sub(t), r));
3947
+ r !== 0 && (Si.fromBufferAttribute(s, e), a ? Ci.addScaledVector(Si, r) : Ci.addScaledVector(Si.sub(t), r));
3841
3948
  }
3842
- t.add(yi);
3949
+ t.add(Ci);
3843
3950
  }
3844
3951
  return t;
3845
3952
  }
3953
+ intersectsFrustum(e) {
3954
+ return e.intersectsObject(this);
3955
+ }
3846
3956
  raycast(e, t) {
3847
3957
  let n = this.geometry, r = this.material, i = this.matrixWorld;
3848
- r !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), pi.copy(n.boundingSphere), pi.applyMatrix4(i), fi.copy(e.ray).recast(e.near), !(pi.containsPoint(fi.origin) === !1 && (fi.intersectSphere(pi, mi) === null || fi.origin.distanceToSquared(mi) > (e.far - e.near) ** 2)) && (di.copy(i).invert(), fi.copy(e.ray).applyMatrix4(di), !(n.boundingBox !== null && fi.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, fi)));
3958
+ r !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), _i.copy(n.boundingSphere), _i.applyMatrix4(i), gi.copy(e.ray).recast(e.near), !(_i.containsPoint(gi.origin) === !1 && (gi.intersectSphere(_i, vi) === null || gi.origin.distanceToSquared(vi) > (e.far - e.near) ** 2)) && (hi.copy(i).invert(), gi.copy(e.ray).applyMatrix4(hi), !(n.boundingBox !== null && gi.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, gi)));
3849
3959
  }
3850
3960
  _computeIntersections(e, t, n) {
3851
3961
  let r, i = this.geometry, a = this.material, o = i.index, s = i.attributes.position, c = i.attributes.uv, l = i.attributes.uv1, u = i.attributes.normal, d = i.groups, f = i.drawRange;
@@ -3853,82 +3963,82 @@ var Fr = class {
3853
3963
  let s = d[i], p = a[s.materialIndex], m = Math.max(s.start, f.start), h = Math.min(o.count, Math.min(s.start + s.count, f.start + f.count));
3854
3964
  for (let i = m, a = h; i < a; i += 3) {
3855
3965
  let a = o.getX(i), d = o.getX(i + 1), f = o.getX(i + 2);
3856
- r = wi(this, p, e, n, c, l, u, a, d, f), r && (r.faceIndex = Math.floor(i / 3), r.face.materialIndex = s.materialIndex, t.push(r));
3966
+ r = Oi(this, p, e, n, c, l, u, a, d, f), r && (r.faceIndex = Math.floor(i / 3), r.face.materialIndex = s.materialIndex, t.push(r));
3857
3967
  }
3858
3968
  }
3859
3969
  else {
3860
3970
  let i = Math.max(0, f.start), s = Math.min(o.count, f.start + f.count);
3861
3971
  for (let d = i, f = s; d < f; d += 3) {
3862
3972
  let i = o.getX(d), s = o.getX(d + 1), f = o.getX(d + 2);
3863
- r = wi(this, a, e, n, c, l, u, i, s, f), r && (r.faceIndex = Math.floor(d / 3), t.push(r));
3973
+ r = Oi(this, a, e, n, c, l, u, i, s, f), r && (r.faceIndex = Math.floor(d / 3), t.push(r));
3864
3974
  }
3865
3975
  }
3866
3976
  else if (s !== void 0) if (Array.isArray(a)) for (let i = 0, o = d.length; i < o; i++) {
3867
3977
  let o = d[i], p = a[o.materialIndex], m = Math.max(o.start, f.start), h = Math.min(s.count, Math.min(o.start + o.count, f.start + f.count));
3868
3978
  for (let i = m, a = h; i < a; i += 3) {
3869
3979
  let a = i, s = i + 1, d = i + 2;
3870
- r = wi(this, p, e, n, c, l, u, a, s, d), r && (r.faceIndex = Math.floor(i / 3), r.face.materialIndex = o.materialIndex, t.push(r));
3980
+ r = Oi(this, p, e, n, c, l, u, a, s, d), r && (r.faceIndex = Math.floor(i / 3), r.face.materialIndex = o.materialIndex, t.push(r));
3871
3981
  }
3872
3982
  }
3873
3983
  else {
3874
3984
  let i = Math.max(0, f.start), o = Math.min(s.count, f.start + f.count);
3875
3985
  for (let s = i, d = o; s < d; s += 3) {
3876
3986
  let i = s, o = s + 1, d = s + 2;
3877
- r = wi(this, a, e, n, c, l, u, i, o, d), r && (r.faceIndex = Math.floor(s / 3), t.push(r));
3987
+ r = Oi(this, a, e, n, c, l, u, i, o, d), r && (r.faceIndex = Math.floor(s / 3), t.push(r));
3878
3988
  }
3879
3989
  }
3880
3990
  }
3881
3991
  };
3882
- function Ci(e, t, n, r, i, a, o, s) {
3992
+ function Di(e, t, n, r, i, a, o, s) {
3883
3993
  let c;
3884
3994
  if (c = t.side === 1 ? r.intersectTriangle(o, a, i, !0, s) : r.intersectTriangle(i, a, o, t.side === 0, s), c === null) return null;
3885
- xi.copy(s), xi.applyMatrix4(e.matrixWorld);
3886
- let l = n.ray.origin.distanceTo(xi);
3995
+ Ti.copy(s), Ti.applyMatrix4(e.matrixWorld);
3996
+ let l = n.ray.origin.distanceTo(Ti);
3887
3997
  return l < n.near || l > n.far ? null : {
3888
3998
  distance: l,
3889
- point: xi.clone(),
3999
+ point: Ti.clone(),
3890
4000
  object: e
3891
4001
  };
3892
4002
  }
3893
- function wi(e, t, n, r, i, a, o, s, c, l) {
3894
- e.getVertexPosition(s, hi), e.getVertexPosition(c, gi), e.getVertexPosition(l, _i);
3895
- let u = Ci(e, t, n, r, hi, gi, _i, bi);
4003
+ function Oi(e, t, n, r, i, a, o, s, c, l) {
4004
+ e.getVertexPosition(s, yi), e.getVertexPosition(c, bi), e.getVertexPosition(l, xi);
4005
+ let u = Di(e, t, n, r, yi, bi, xi, wi);
3896
4006
  if (u) {
3897
- let e = new I();
3898
- gr.getBarycoord(bi, hi, gi, _i, e), i && (u.uv = gr.getInterpolatedAttribute(i, s, c, l, e, new F())), a && (u.uv1 = gr.getInterpolatedAttribute(a, s, c, l, e, new F())), o && (u.normal = gr.getInterpolatedAttribute(o, s, c, l, e, new I()), u.normal.dot(r.direction) > 0 && u.normal.multiplyScalar(-1));
4007
+ let e = new R();
4008
+ vr.getBarycoord(wi, yi, bi, xi, e), i && (u.uv = vr.getInterpolatedAttribute(i, s, c, l, e, new L())), a && (u.uv1 = vr.getInterpolatedAttribute(a, s, c, l, e, new L())), o && (u.normal = vr.getInterpolatedAttribute(o, s, c, l, e, new R()), u.normal.dot(r.direction) > 0 && u.normal.multiplyScalar(-1));
3899
4009
  let t = {
3900
4010
  a: s,
3901
4011
  b: c,
3902
4012
  c: l,
3903
- normal: new I(),
4013
+ normal: new R(),
3904
4014
  materialIndex: 0
3905
4015
  };
3906
- gr.getNormal(hi, gi, _i, t.normal), u.face = t, u.barycoord = e;
4016
+ vr.getNormal(yi, bi, xi, t.normal), u.face = t, u.barycoord = e;
3907
4017
  }
3908
4018
  return u;
3909
4019
  }
3910
- var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PURE__ */ new vn(), Oi = /* @__PURE__ */ new vn(), ki = /* @__PURE__ */ new R(), Ai = /* @__PURE__ */ new I(), ji = /* @__PURE__ */ new Gr(), Mi = /* @__PURE__ */ new R(), Ni = /* @__PURE__ */ new li(), Pi = class extends Si {
4020
+ var ki = /* @__PURE__ */ new yn(), Ai = /* @__PURE__ */ new yn(), ji = /* @__PURE__ */ new yn(), Mi = /* @__PURE__ */ new yn(), Ni = /* @__PURE__ */ new B(), Pi = /* @__PURE__ */ new R(), Fi = /* @__PURE__ */ new qr(), Ii = /* @__PURE__ */ new B(), Li = /* @__PURE__ */ new pi(), Ri = class extends Ei {
3911
4021
  constructor(t, n) {
3912
- super(t, n), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = e, this.bindMatrix = new R(), this.bindMatrixInverse = new R(), this.boundingBox = null, this.boundingSphere = null;
4022
+ super(t, n), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = e, this.bindMatrix = new B(), this.bindMatrixInverse = new B(), this.boundingBox = null, this.boundingSphere = null;
3913
4023
  }
3914
4024
  computeBoundingBox() {
3915
4025
  let e = this.geometry;
3916
- this.boundingBox === null && (this.boundingBox = new _r()), this.boundingBox.makeEmpty();
4026
+ this.boundingBox === null && (this.boundingBox = new yr()), this.boundingBox.makeEmpty();
3917
4027
  let t = e.getAttribute("position");
3918
- for (let e = 0; e < t.count; e++) this.getVertexPosition(e, Ai), this.boundingBox.expandByPoint(Ai);
4028
+ for (let e = 0; e < t.count; e++) this.getVertexPosition(e, Pi), this.boundingBox.expandByPoint(Pi);
3919
4029
  }
3920
4030
  computeBoundingSphere() {
3921
4031
  let e = this.geometry;
3922
- this.boundingSphere === null && (this.boundingSphere = new Gr()), this.boundingSphere.makeEmpty();
4032
+ this.boundingSphere === null && (this.boundingSphere = new qr()), this.boundingSphere.makeEmpty();
3923
4033
  let t = e.getAttribute("position");
3924
- for (let e = 0; e < t.count; e++) this.getVertexPosition(e, Ai), this.boundingSphere.expandByPoint(Ai);
4034
+ for (let e = 0; e < t.count; e++) this.getVertexPosition(e, Pi), this.boundingSphere.expandByPoint(Pi);
3925
4035
  }
3926
4036
  copy(e, t) {
3927
4037
  return super.copy(e, t), this.bindMode = e.bindMode, this.bindMatrix.copy(e.bindMatrix), this.bindMatrixInverse.copy(e.bindMatrixInverse), this.skeleton = e.skeleton, e.boundingBox !== null && (this.boundingBox = e.boundingBox.clone()), e.boundingSphere !== null && (this.boundingSphere = e.boundingSphere.clone()), this;
3928
4038
  }
3929
4039
  raycast(e, t) {
3930
4040
  let n = this.material, r = this.matrixWorld;
3931
- n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), ji.copy(this.boundingSphere), ji.applyMatrix4(r), e.ray.intersectsSphere(ji) !== !1 && (Mi.copy(r).invert(), Ni.copy(e.ray).applyMatrix4(Mi), !(this.boundingBox !== null && Ni.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(e, t, Ni)));
4041
+ n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), Fi.copy(this.boundingSphere), Fi.applyMatrix4(r), e.ray.intersectsSphere(Fi) !== !1 && (Ii.copy(r).invert(), Li.copy(e.ray).applyMatrix4(Ii), !(this.boundingBox !== null && Li.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(e, t, Li)));
3932
4042
  }
3933
4043
  getVertexPosition(e, t) {
3934
4044
  return super.getVertexPosition(e, t), this.applyBoneTransform(e, t), t;
@@ -3940,7 +4050,7 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
3940
4050
  this.skeleton.pose();
3941
4051
  }
3942
4052
  normalizeSkinWeights() {
3943
- let e = new vn(), t = this.geometry.attributes.skinWeight;
4053
+ let e = new yn(), t = this.geometry.attributes.skinWeight;
3944
4054
  for (let n = 0, r = t.count; n < r; n++) {
3945
4055
  e.fromBufferAttribute(t, n);
3946
4056
  let r = 1 / e.manhattanLength();
@@ -3948,25 +4058,25 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
3948
4058
  }
3949
4059
  }
3950
4060
  updateMatrixWorld(e) {
3951
- super.updateMatrixWorld(e), this.bindMode === "attached" ? this.bindMatrixInverse.copy(this.matrixWorld).invert() : this.bindMode === "detached" ? this.bindMatrixInverse.copy(this.bindMatrix).invert() : k("SkinnedMesh: Unrecognized bindMode: " + this.bindMode);
4061
+ super.updateMatrixWorld(e), this.bindMode === "attached" ? this.bindMatrixInverse.copy(this.matrixWorld).invert() : this.bindMode === "detached" ? this.bindMatrixInverse.copy(this.bindMatrix).invert() : j("SkinnedMesh: Unrecognized bindMode: " + this.bindMode);
3952
4062
  }
3953
4063
  applyBoneTransform(e, t) {
3954
4064
  let n = this.skeleton, r = this.geometry;
3955
- Ei.fromBufferAttribute(r.attributes.skinIndex, e), Di.fromBufferAttribute(r.attributes.skinWeight, e), t.isVector4 ? (Ti.copy(t), t.set(0, 0, 0, 0)) : (Ti.set(...t, 1), t.set(0, 0, 0)), Ti.applyMatrix4(this.bindMatrix);
4065
+ Ai.fromBufferAttribute(r.attributes.skinIndex, e), ji.fromBufferAttribute(r.attributes.skinWeight, e), t.isVector4 ? (ki.copy(t), t.set(0, 0, 0, 0)) : (ki.set(...t, 1), t.set(0, 0, 0)), ki.applyMatrix4(this.bindMatrix);
3956
4066
  for (let e = 0; e < 4; e++) {
3957
- let r = Di.getComponent(e);
4067
+ let r = ji.getComponent(e);
3958
4068
  if (r !== 0) {
3959
- let i = Ei.getComponent(e);
3960
- ki.multiplyMatrices(n.bones[i].matrixWorld, n.boneInverses[i]), t.addScaledVector(Oi.copy(Ti).applyMatrix4(ki), r);
4069
+ let i = Ai.getComponent(e);
4070
+ Ni.multiplyMatrices(n.bones[i].matrixWorld, n.boneInverses[i]), t.addScaledVector(Mi.copy(ki).applyMatrix4(Ni), r);
3961
4071
  }
3962
4072
  }
3963
- return t.isVector4 && (t.w = Ti.w), t.applyMatrix4(this.bindMatrixInverse);
4073
+ return t.isVector4 && (t.w = ki.w), t.applyMatrix4(this.bindMatrixInverse);
3964
4074
  }
3965
- }, Fi = class extends B {
4075
+ }, zi = class extends V {
3966
4076
  constructor() {
3967
4077
  super(), this.isBone = !0, this.type = "Bone";
3968
4078
  }
3969
- }, Ii = class extends L {
4079
+ }, Bi = class extends z {
3970
4080
  constructor(e = null, t = 1, n = 1, r, i, o, s, c, l = a, u = a, d, f) {
3971
4081
  super(null, o, s, c, l, u, r, i, d, f), this.isDataTexture = !0, this.image = {
3972
4082
  data: e,
@@ -3974,7 +4084,7 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
3974
4084
  height: n
3975
4085
  }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
3976
4086
  }
3977
- }, Li = /* @__PURE__ */ new R(), Ri = /* @__PURE__ */ new R(), zi = class e {
4087
+ }, Vi = /* @__PURE__ */ new B(), Hi = /* @__PURE__ */ new B(), Ui = class e {
3978
4088
  constructor(e = [], t = []) {
3979
4089
  this.uuid = Nt(), this.bones = e.slice(0), this.boneInverses = t, this.boneMatrices = null, this.boneTexture = null, this.init();
3980
4090
  }
@@ -3982,14 +4092,14 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
3982
4092
  let e = this.bones, t = this.boneInverses;
3983
4093
  if (this.boneMatrices = new Float32Array(e.length * 16), t.length === 0) this.calculateInverses();
3984
4094
  else if (e.length !== t.length) {
3985
- k("Skeleton: Number of inverse bone matrices does not match amount of bones."), this.boneInverses = [];
3986
- for (let e = 0, t = this.bones.length; e < t; e++) this.boneInverses.push(new R());
4095
+ j("Skeleton: Number of inverse bone matrices does not match amount of bones."), this.boneInverses = [];
4096
+ for (let e = 0, t = this.bones.length; e < t; e++) this.boneInverses.push(new B());
3987
4097
  }
3988
4098
  }
3989
4099
  calculateInverses() {
3990
4100
  this.boneInverses.length = 0;
3991
4101
  for (let e = 0, t = this.bones.length; e < t; e++) {
3992
- let t = new R();
4102
+ let t = new B();
3993
4103
  this.bones[e] && t.copy(this.bones[e].matrixWorld).invert(), this.boneInverses.push(t);
3994
4104
  }
3995
4105
  }
@@ -4006,8 +4116,8 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
4006
4116
  update() {
4007
4117
  let e = this.bones, t = this.boneInverses, n = this.boneMatrices, r = this.boneTexture;
4008
4118
  for (let r = 0, i = e.length; r < i; r++) {
4009
- let i = e[r] ? e[r].matrixWorld : Ri;
4010
- Li.multiplyMatrices(i, t[r]), Li.toArray(n, r * 16);
4119
+ let i = e[r] ? e[r].matrixWorld : Hi;
4120
+ Vi.multiplyMatrices(i, t[r]), Vi.toArray(n, r * 16);
4011
4121
  }
4012
4122
  r !== null && (r.needsUpdate = !0);
4013
4123
  }
@@ -4019,7 +4129,7 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
4019
4129
  e = Math.ceil(e / 4) * 4, e = Math.max(e, 4);
4020
4130
  let t = new Float32Array(e * e * 4);
4021
4131
  t.set(this.boneMatrices);
4022
- let n = new Ii(t, e, e, D, v);
4132
+ let n = new Bi(t, e, e, D, v);
4023
4133
  return n.needsUpdate = !0, this.boneMatrices = t, this.boneTexture = n, this;
4024
4134
  }
4025
4135
  getBoneByName(e) {
@@ -4035,7 +4145,7 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
4035
4145
  this.uuid = e.uuid;
4036
4146
  for (let n = 0, r = e.bones.length; n < r; n++) {
4037
4147
  let r = e.bones[n], i = t[r];
4038
- i === void 0 && (k("Skeleton: No bone found with UUID:", r), i = new Fi()), this.bones.push(i), this.boneInverses.push(new R().fromArray(e.boneInverses[n]));
4148
+ i === void 0 && (j("Skeleton: No bone found with UUID:", r), i = new zi()), this.bones.push(i), this.boneInverses.push(new B().fromArray(e.boneInverses[n]));
4039
4149
  }
4040
4150
  return this.init(), this;
4041
4151
  }
@@ -4059,7 +4169,7 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
4059
4169
  }
4060
4170
  return e;
4061
4171
  }
4062
- }, Bi = class extends Rr {
4172
+ }, Wi = class extends Br {
4063
4173
  constructor(e, t, n, r = 1) {
4064
4174
  super(e, t, n), this.isInstancedBufferAttribute = !0, this.meshPerAttribute = r;
4065
4175
  }
@@ -4070,20 +4180,20 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
4070
4180
  let e = super.toJSON();
4071
4181
  return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
4072
4182
  }
4073
- }, Vi = /* @__PURE__ */ new R(), Hi = /* @__PURE__ */ new R(), Ui = [], Wi = /* @__PURE__ */ new _r(), Gi = /* @__PURE__ */ new R(), Ki = /* @__PURE__ */ new Si(), qi = /* @__PURE__ */ new Gr(), Ji = class extends Si {
4183
+ }, Gi = /* @__PURE__ */ new B(), Ki = /* @__PURE__ */ new B(), qi = [], Ji = /* @__PURE__ */ new yr(), Yi = /* @__PURE__ */ new B(), Xi = /* @__PURE__ */ new Ei(), Zi = /* @__PURE__ */ new qr(), Qi = class extends Ei {
4074
4184
  constructor(e, t, n) {
4075
- super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new Bi(new Float32Array(n * 16), 16), this.instanceColor = null, this.morphTexture = null, this.count = n, this.boundingBox = null, this.boundingSphere = null;
4076
- for (let e = 0; e < n; e++) this.setMatrixAt(e, Gi);
4185
+ super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new Wi(new Float32Array(n * 16), 16), this.instanceColor = null, this.morphTexture = null, this.count = n, this.boundingBox = null, this.boundingSphere = null;
4186
+ for (let e = 0; e < n; e++) this.setMatrixAt(e, Yi);
4077
4187
  }
4078
4188
  computeBoundingBox() {
4079
4189
  let e = this.geometry, t = this.count;
4080
- this.boundingBox === null && (this.boundingBox = new _r()), e.boundingBox === null && e.computeBoundingBox(), this.boundingBox.makeEmpty();
4081
- for (let n = 0; n < t; n++) this.getMatrixAt(n, Vi), Wi.copy(e.boundingBox).applyMatrix4(Vi), this.boundingBox.union(Wi);
4190
+ this.boundingBox === null && (this.boundingBox = new yr()), e.boundingBox === null && e.computeBoundingBox(), this.boundingBox.makeEmpty();
4191
+ for (let n = 0; n < t; n++) this.getMatrixAt(n, Gi), Ji.copy(e.boundingBox).applyMatrix4(Gi), this.boundingBox.union(Ji);
4082
4192
  }
4083
4193
  computeBoundingSphere() {
4084
4194
  let e = this.geometry, t = this.count;
4085
- this.boundingSphere === null && (this.boundingSphere = new Gr()), e.boundingSphere === null && e.computeBoundingSphere(), this.boundingSphere.makeEmpty();
4086
- for (let n = 0; n < t; n++) this.getMatrixAt(n, Vi), qi.copy(e.boundingSphere).applyMatrix4(Vi), this.boundingSphere.union(qi);
4195
+ this.boundingSphere === null && (this.boundingSphere = new qr()), e.boundingSphere === null && e.computeBoundingSphere(), this.boundingSphere.makeEmpty();
4196
+ for (let n = 0; n < t; n++) this.getMatrixAt(n, Gi), Zi.copy(e.boundingSphere).applyMatrix4(Gi), this.boundingSphere.union(Zi);
4087
4197
  }
4088
4198
  copy(e, t) {
4089
4199
  return super.copy(e, t), this.instanceMatrix.copy(e.instanceMatrix), e.morphTexture !== null && (this.morphTexture = e.morphTexture.clone()), e.instanceColor !== null && (this.instanceColor = e.instanceColor.clone()), this.count = e.count, e.boundingBox !== null && (this.boundingBox = e.boundingBox.clone()), e.boundingSphere !== null && (this.boundingSphere = e.boundingSphere.clone()), this;
@@ -4100,24 +4210,24 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
4100
4210
  }
4101
4211
  raycast(e, t) {
4102
4212
  let n = this.matrixWorld, r = this.count;
4103
- if (Ki.geometry = this.geometry, Ki.material = this.material, Ki.material !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), qi.copy(this.boundingSphere), qi.applyMatrix4(n), e.ray.intersectsSphere(qi) !== !1)) for (let i = 0; i < r; i++) {
4104
- this.getMatrixAt(i, Vi), Hi.multiplyMatrices(n, Vi), Ki.matrixWorld = Hi, Ki.raycast(e, Ui);
4105
- for (let e = 0, n = Ui.length; e < n; e++) {
4106
- let n = Ui[e];
4213
+ if (Xi.geometry = this.geometry, Xi.material = this.material, Xi.material !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), Zi.copy(this.boundingSphere), Zi.applyMatrix4(n), e.ray.intersectsSphere(Zi) !== !1)) for (let i = 0; i < r; i++) {
4214
+ this.getMatrixAt(i, Gi), Ki.multiplyMatrices(n, Gi), Xi.matrixWorld = Ki, Xi.raycast(e, qi);
4215
+ for (let e = 0, n = qi.length; e < n; e++) {
4216
+ let n = qi[e];
4107
4217
  n.instanceId = i, n.object = this, t.push(n);
4108
4218
  }
4109
- Ui.length = 0;
4219
+ qi.length = 0;
4110
4220
  }
4111
4221
  }
4112
4222
  setColorAt(e, t) {
4113
- return this.instanceColor === null && (this.instanceColor = new Bi(new Float32Array(this.instanceMatrix.count * 3).fill(1), 3)), t.toArray(this.instanceColor.array, e * 3), this;
4223
+ return this.instanceColor === null && (this.instanceColor = new Wi(new Float32Array(this.instanceMatrix.count * 3).fill(1), 3)), t.toArray(this.instanceColor.array, e * 3), this;
4114
4224
  }
4115
4225
  setMatrixAt(e, t) {
4116
4226
  return t.toArray(this.instanceMatrix.array, e * 16), this;
4117
4227
  }
4118
4228
  setMorphAt(e, t) {
4119
4229
  let n = t.morphTargetInfluences, r = n.length + 1;
4120
- this.morphTexture === null && (this.morphTexture = new Ii(new Float32Array(r * this.count), r, this.count, O, v));
4230
+ this.morphTexture === null && (this.morphTexture = new Bi(new Float32Array(r * this.count), r, this.count, A, v));
4121
4231
  let i = this.morphTexture.source.data.data, a = 0;
4122
4232
  for (let e = 0; e < n.length; e++) a += n[e];
4123
4233
  let o = this.geometry.morphTargetsRelative ? 1 : 1 - a, s = r * e;
@@ -4125,78 +4235,10 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
4125
4235
  }
4126
4236
  updateMorphTargets() {}
4127
4237
  dispose() {
4128
- this.dispatchEvent({ type: "dispose" }), this.morphTexture !== null && (this.morphTexture.dispose(), this.morphTexture = null);
4238
+ super.dispose(), this.morphTexture !== null && (this.morphTexture.dispose(), this.morphTexture = null);
4129
4239
  }
4130
- }, Yi = /* @__PURE__ */ new I(), Xi = /* @__PURE__ */ new I(), Zi = /* @__PURE__ */ new nn(), Qi = class {
4131
- constructor(e = new I(1, 0, 0), t = 0) {
4132
- this.isPlane = !0, this.normal = e, this.constant = t;
4133
- }
4134
- set(e, t) {
4135
- return this.normal.copy(e), this.constant = t, this;
4136
- }
4137
- setComponents(e, t, n, r) {
4138
- return this.normal.set(e, t, n), this.constant = r, this;
4139
- }
4140
- setFromNormalAndCoplanarPoint(e, t) {
4141
- return this.normal.copy(e), this.constant = -t.dot(this.normal), this;
4142
- }
4143
- setFromCoplanarPoints(e, t, n) {
4144
- let r = Yi.subVectors(n, t).cross(Xi.subVectors(e, t)).normalize();
4145
- return this.setFromNormalAndCoplanarPoint(r, e), this;
4146
- }
4147
- copy(e) {
4148
- return this.normal.copy(e.normal), this.constant = e.constant, this;
4149
- }
4150
- normalize() {
4151
- let e = 1 / this.normal.length();
4152
- return this.normal.multiplyScalar(e), this.constant *= e, this;
4153
- }
4154
- negate() {
4155
- return this.constant *= -1, this.normal.negate(), this;
4156
- }
4157
- distanceToPoint(e) {
4158
- return this.normal.dot(e) + this.constant;
4159
- }
4160
- distanceToSphere(e) {
4161
- return this.distanceToPoint(e.center) - e.radius;
4162
- }
4163
- projectPoint(e, t) {
4164
- return t.copy(e).addScaledVector(this.normal, -this.distanceToPoint(e));
4165
- }
4166
- intersectLine(e, t, n = !0) {
4167
- let r = e.delta(Yi), i = this.normal.dot(r);
4168
- if (i === 0) return this.distanceToPoint(e.start) === 0 ? t.copy(e.start) : null;
4169
- let a = -(e.start.dot(this.normal) + this.constant) / i;
4170
- return n === !0 && (a < 0 || a > 1) ? null : t.copy(e.start).addScaledVector(r, a);
4171
- }
4172
- intersectsLine(e) {
4173
- let t = this.distanceToPoint(e.start), n = this.distanceToPoint(e.end);
4174
- return t < 0 && n > 0 || n < 0 && t > 0;
4175
- }
4176
- intersectsBox(e) {
4177
- return e.intersectsPlane(this);
4178
- }
4179
- intersectsSphere(e) {
4180
- return e.intersectsPlane(this);
4181
- }
4182
- coplanarPoint(e) {
4183
- return e.copy(this.normal).multiplyScalar(-this.constant);
4184
- }
4185
- applyMatrix4(e, t) {
4186
- let n = t || Zi.getNormalMatrix(e), r = this.coplanarPoint(Yi).applyMatrix4(e), i = this.normal.applyMatrix3(n).normalize();
4187
- return this.constant = -r.dot(i), this;
4188
- }
4189
- translate(e) {
4190
- return this.constant -= e.dot(this.normal), this;
4191
- }
4192
- equals(e) {
4193
- return e.normal.equals(this.normal) && e.constant === this.constant;
4194
- }
4195
- clone() {
4196
- return new this.constructor().copy(this);
4197
- }
4198
- }, $i = /* @__PURE__ */ new Gr(), ea = /* @__PURE__ */ new F(.5, .5), ta = /* @__PURE__ */ new I(), na = class {
4199
- constructor(e = new Qi(), t = new Qi(), n = new Qi(), r = new Qi(), i = new Qi(), a = new Qi()) {
4240
+ }, $i = /* @__PURE__ */ new qr(), ea = /* @__PURE__ */ new L(.5, .5), ta = /* @__PURE__ */ new R(), na = class {
4241
+ constructor(e = new oi(), t = new oi(), n = new oi(), r = new oi(), i = new oi(), a = new oi()) {
4200
4242
  this.planes = [
4201
4243
  e,
4202
4244
  t,
@@ -4215,7 +4257,7 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
4215
4257
  for (let n = 0; n < 6; n++) t[n].copy(e.planes[n]);
4216
4258
  return this;
4217
4259
  }
4218
- setFromProjectionMatrix(e, t = ft, n = !1) {
4260
+ setFromProjectionMatrix(e, t = ut, n = !1) {
4219
4261
  let r = this.planes, i = e.elements, a = i[0], o = i[1], s = i[2], c = i[3], l = i[4], u = i[5], d = i[6], f = i[7], p = i[8], m = i[9], h = i[10], g = i[11], _ = i[12], v = i[13], y = i[14], b = i[15];
4220
4262
  if (r[0].setComponents(c - a, f - l, g - p, b - _).normalize(), r[1].setComponents(c + a, f + l, g + p, b + _).normalize(), r[2].setComponents(c + o, f + u, g + m, b + v).normalize(), r[3].setComponents(c - o, f - u, g - m, b - v).normalize(), n) r[4].setComponents(s, d, h, y).normalize(), r[5].setComponents(c - s, f - d, g - h, b - y).normalize();
4221
4263
  else if (r[4].setComponents(c - s, f - d, g - h, b - y).normalize(), t === 2e3) r[5].setComponents(c + s, f + d, g + h, b + y).normalize();
@@ -4255,9 +4297,9 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
4255
4297
  clone() {
4256
4298
  return new this.constructor().copy(this);
4257
4299
  }
4258
- }, ra = /* @__PURE__ */ new R(), ia = class e {
4300
+ }, ra = /* @__PURE__ */ new B(), ia = class e {
4259
4301
  constructor() {
4260
- this.coordinateSystem = ft, this._frustums = [], this._count = 0;
4302
+ this.coordinateSystem = ut, this._frustums = [], this._count = 0;
4261
4303
  }
4262
4304
  setFromArrayCamera(e) {
4263
4305
  let t = e.cameras, n = this._frustums;
@@ -4303,13 +4345,13 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
4303
4345
  }
4304
4346
  }, aa = class extends Y {
4305
4347
  constructor(e) {
4306
- super(), this.isLineBasicMaterial = !0, this.type = "LineBasicMaterial", this.color = new V(16777215), this.map = null, this.linewidth = 1, this.linecap = "round", this.linejoin = "round", this.fog = !0, this.setValues(e);
4348
+ super(), this.isLineBasicMaterial = !0, this.type = "LineBasicMaterial", this.color = new H(16777215), this.map = null, this.linewidth = 1, this.linecap = "round", this.linejoin = "round", this.fog = !0, this.setValues(e);
4307
4349
  }
4308
4350
  copy(e) {
4309
4351
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
4310
4352
  }
4311
- }, oa = /* @__PURE__ */ new I(), sa = /* @__PURE__ */ new I(), ca = /* @__PURE__ */ new R(), la = /* @__PURE__ */ new li(), ua = /* @__PURE__ */ new Gr(), da = /* @__PURE__ */ new I(), fa = /* @__PURE__ */ new I(), pa = class extends B {
4312
- constructor(e = new Zr(), t = new aa()) {
4353
+ }, oa = /* @__PURE__ */ new R(), sa = /* @__PURE__ */ new R(), ca = /* @__PURE__ */ new B(), la = /* @__PURE__ */ new pi(), ua = /* @__PURE__ */ new qr(), da = /* @__PURE__ */ new R(), fa = /* @__PURE__ */ new R(), pa = class extends V {
4354
+ constructor(e = new ei(), t = new aa()) {
4313
4355
  super(), this.isLine = !0, this.type = "Line", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
4314
4356
  }
4315
4357
  copy(e, t) {
@@ -4320,10 +4362,13 @@ var Ti = /* @__PURE__ */ new vn(), Ei = /* @__PURE__ */ new vn(), Di = /* @__PUR
4320
4362
  if (e.index === null) {
4321
4363
  let t = e.attributes.position, n = [0];
4322
4364
  for (let e = 1, r = t.count; e < r; e++) oa.fromBufferAttribute(t, e - 1), sa.fromBufferAttribute(t, e), n[e] = n[e - 1], n[e] += oa.distanceTo(sa);
4323
- e.setAttribute("lineDistance", new G(n, 1));
4324
- } else k("Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
4365
+ e.setAttribute("lineDistance", new K(n, 1));
4366
+ } else j("Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
4325
4367
  return this;
4326
4368
  }
4369
+ intersectsFrustum(e) {
4370
+ return e.intersectsObject(this);
4371
+ }
4327
4372
  raycast(e, t) {
4328
4373
  let n = this.geometry, r = this.matrixWorld, i = e.params.Line.threshold, a = n.drawRange;
4329
4374
  if (n.boundingSphere === null && n.computeBoundingSphere(), ua.copy(n.boundingSphere), ua.applyMatrix4(r), ua.radius += i, e.ray.intersectsSphere(ua) === !1) return;
@@ -4380,7 +4425,7 @@ function ma(e, t, n, r, i, a, o) {
4380
4425
  object: e
4381
4426
  };
4382
4427
  }
4383
- var ha = /* @__PURE__ */ new I(), ga = /* @__PURE__ */ new I(), _a = class extends pa {
4428
+ var ha = /* @__PURE__ */ new R(), ga = /* @__PURE__ */ new R(), _a = class extends pa {
4384
4429
  constructor(e, t) {
4385
4430
  super(e, t), this.isLineSegments = !0, this.type = "LineSegments";
4386
4431
  }
@@ -4389,8 +4434,8 @@ var ha = /* @__PURE__ */ new I(), ga = /* @__PURE__ */ new I(), _a = class exten
4389
4434
  if (e.index === null) {
4390
4435
  let t = e.attributes.position, n = [];
4391
4436
  for (let e = 0, r = t.count; e < r; e += 2) ha.fromBufferAttribute(t, e), ga.fromBufferAttribute(t, e + 1), n[e] = e === 0 ? 0 : n[e - 1], n[e + 1] = n[e] + ha.distanceTo(ga);
4392
- e.setAttribute("lineDistance", new G(n, 1));
4393
- } else k("LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
4437
+ e.setAttribute("lineDistance", new K(n, 1));
4438
+ } else j("LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
4394
4439
  return this;
4395
4440
  }
4396
4441
  }, va = class extends pa {
@@ -4399,18 +4444,21 @@ var ha = /* @__PURE__ */ new I(), ga = /* @__PURE__ */ new I(), _a = class exten
4399
4444
  }
4400
4445
  }, ya = class extends Y {
4401
4446
  constructor(e) {
4402
- super(), this.isPointsMaterial = !0, this.type = "PointsMaterial", this.color = new V(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.fog = !0, this.setValues(e);
4447
+ super(), this.isPointsMaterial = !0, this.type = "PointsMaterial", this.color = new H(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.fog = !0, this.setValues(e);
4403
4448
  }
4404
4449
  copy(e) {
4405
4450
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
4406
4451
  }
4407
- }, ba = /* @__PURE__ */ new R(), xa = /* @__PURE__ */ new li(), Sa = /* @__PURE__ */ new Gr(), Ca = /* @__PURE__ */ new I(), wa = class extends B {
4408
- constructor(e = new Zr(), t = new ya()) {
4452
+ }, ba = /* @__PURE__ */ new B(), xa = /* @__PURE__ */ new pi(), Sa = /* @__PURE__ */ new qr(), Ca = /* @__PURE__ */ new R(), wa = class extends V {
4453
+ constructor(e = new ei(), t = new ya()) {
4409
4454
  super(), this.isPoints = !0, this.type = "Points", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
4410
4455
  }
4411
4456
  copy(e, t) {
4412
4457
  return super.copy(e, t), this.material = Array.isArray(e.material) ? e.material.slice() : e.material, this.geometry = e.geometry, this;
4413
4458
  }
4459
+ intersectsFrustum(e) {
4460
+ return e.intersectsObject(this);
4461
+ }
4414
4462
  raycast(e, t) {
4415
4463
  let n = this.geometry, r = this.matrixWorld, i = e.params.Points.threshold, a = n.drawRange;
4416
4464
  if (n.boundingSphere === null && n.computeBoundingSphere(), Sa.copy(n.boundingSphere), Sa.applyMatrix4(r), Sa.radius += i, e.ray.intersectsSphere(Sa) === !1) return;
@@ -4444,7 +4492,7 @@ var ha = /* @__PURE__ */ new I(), ga = /* @__PURE__ */ new I(), _a = class exten
4444
4492
  function Ta(e, t, n, r, i, a, o) {
4445
4493
  let s = xa.distanceSqToPoint(e);
4446
4494
  if (s < n) {
4447
- let n = new I();
4495
+ let n = new R();
4448
4496
  xa.closestPointToPoint(e, n), n.applyMatrix4(r);
4449
4497
  let c = i.ray.origin.distanceTo(n);
4450
4498
  if (c < i.near || c > i.far) return;
@@ -4460,21 +4508,21 @@ function Ta(e, t, n, r, i, a, o) {
4460
4508
  });
4461
4509
  }
4462
4510
  }
4463
- var Ea = class extends L {
4511
+ var Ea = class extends z {
4464
4512
  constructor(e, t) {
4465
4513
  super({
4466
4514
  width: e,
4467
4515
  height: t
4468
4516
  }), this.isFramebufferTexture = !0, this.magFilter = a, this.minFilter = a, this.generateMipmaps = !1, this.needsUpdate = !0;
4469
4517
  }
4470
- }, Da = class extends L {
4518
+ }, Da = class extends z {
4471
4519
  constructor(e, t, n, r, i, a, o, s, c, l, u, d) {
4472
4520
  super(null, a, o, s, c, l, r, i, u, d), this.isCompressedTexture = !0, this.image = {
4473
4521
  width: t,
4474
4522
  height: n
4475
4523
  }, this.mipmaps = e, this.flipY = !1, this.generateMipmaps = !1;
4476
4524
  }
4477
- }, Oa = class extends L {
4525
+ }, Oa = class extends z {
4478
4526
  constructor(e = [], t = 301, n, r, i, a, o, s, c, l) {
4479
4527
  super(e, t, n, r, i, a, o, s, c, l), this.isCubeTexture = !0, this.flipY = !1;
4480
4528
  }
@@ -4484,8 +4532,8 @@ var Ea = class extends L {
4484
4532
  set images(e) {
4485
4533
  this.image = e;
4486
4534
  }
4487
- }, ka = class extends L {
4488
- constructor(e, t, n = _, r, i, o, s = a, c = a, l, u = ee, d = 1) {
4535
+ }, ka = class extends z {
4536
+ constructor(e, t, n = _, r, i, o, s = a, c = a, l, u = O, d = 1) {
4489
4537
  if (u !== 1026 && u !== 1027) throw Error("THREE.DepthTexture: format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
4490
4538
  super({
4491
4539
  width: e,
@@ -4498,10 +4546,10 @@ var Ea = class extends L {
4498
4546
  }
4499
4547
  toJSON(e) {
4500
4548
  let t = super.toJSON(e);
4501
- return this.compareFunction !== null && (t.compareFunction = this.compareFunction), t;
4549
+ return t.compareFunction = this.compareFunction, t;
4502
4550
  }
4503
4551
  }, Aa = class extends ka {
4504
- constructor(e, t = _, n = 301, r, i, o = a, s = a, c, l = ee) {
4552
+ constructor(e, t = _, n = 301, r, i, o = a, s = a, c, l = O) {
4505
4553
  let u = {
4506
4554
  width: e,
4507
4555
  height: e,
@@ -4522,14 +4570,14 @@ var Ea = class extends L {
4522
4570
  set images(e) {
4523
4571
  this.image = e;
4524
4572
  }
4525
- }, ja = class extends L {
4573
+ }, ja = class extends z {
4526
4574
  constructor(e = null) {
4527
4575
  super(), this.sourceTexture = e, this.isExternalTexture = !0;
4528
4576
  }
4529
4577
  copy(e) {
4530
4578
  return super.copy(e), this.sourceTexture = e.sourceTexture, this;
4531
4579
  }
4532
- }, Ma = class e extends Zr {
4580
+ }, Ma = class e extends ei {
4533
4581
  constructor(e = 1, t = 1, n = 1, r = 1, i = 1, a = 1) {
4534
4582
  super(), this.type = "BoxGeometry", this.parameters = {
4535
4583
  width: e,
@@ -4542,9 +4590,9 @@ var Ea = class extends L {
4542
4590
  let o = this;
4543
4591
  r = Math.floor(r), i = Math.floor(i), a = Math.floor(a);
4544
4592
  let s = [], c = [], l = [], u = [], d = 0, f = 0;
4545
- p("z", "y", "x", -1, -1, n, t, e, a, i, 0), p("z", "y", "x", 1, -1, n, t, -e, a, i, 1), p("x", "z", "y", 1, 1, e, n, t, r, a, 2), p("x", "z", "y", 1, -1, e, n, -t, r, a, 3), p("x", "y", "z", 1, -1, e, t, n, r, i, 4), p("x", "y", "z", -1, -1, e, t, -n, r, i, 5), this.setIndex(s), this.setAttribute("position", new G(c, 3)), this.setAttribute("normal", new G(l, 3)), this.setAttribute("uv", new G(u, 2));
4593
+ p("z", "y", "x", -1, -1, n, t, e, a, i, 0), p("z", "y", "x", 1, -1, n, t, -e, a, i, 1), p("x", "z", "y", 1, 1, e, n, t, r, a, 2), p("x", "z", "y", 1, -1, e, n, -t, r, a, 3), p("x", "y", "z", 1, -1, e, t, n, r, i, 4), p("x", "y", "z", -1, -1, e, t, -n, r, i, 5), this.setIndex(s), this.setAttribute("position", new K(c, 3)), this.setAttribute("normal", new K(l, 3)), this.setAttribute("uv", new K(u, 2));
4546
4594
  function p(e, t, n, r, i, a, p, m, h, g, _) {
4547
- let v = a / h, y = p / g, b = a / 2, x = p / 2, S = m / 2, C = h + 1, w = g + 1, T = 0, E = 0, D = new I();
4595
+ let v = a / h, y = p / g, b = a / 2, x = p / 2, S = m / 2, C = h + 1, w = g + 1, T = 0, E = 0, D = new R();
4548
4596
  for (let a = 0; a < w; a++) {
4549
4597
  let o = a * y - x;
4550
4598
  for (let s = 0; s < C; s++) D[e] = (s * v - b) * r, D[t] = o * i, D[n] = S, c.push(D.x, D.y, D.z), D[e] = 0, D[t] = 0, D[n] = m > 0 ? 1 : -1, l.push(D.x, D.y, D.z), u.push(s / h), u.push(1 - a / g), T += 1;
@@ -4562,7 +4610,7 @@ var Ea = class extends L {
4562
4610
  static fromJSON(t) {
4563
4611
  return new e(t.width, t.height, t.depth, t.widthSegments, t.heightSegments, t.depthSegments);
4564
4612
  }
4565
- }, Na = class e extends Zr {
4613
+ }, Na = class e extends ei {
4566
4614
  constructor(e = 1, t = 32, n = 0, r = Math.PI * 2) {
4567
4615
  super(), this.type = "CircleGeometry", this.parameters = {
4568
4616
  radius: e,
@@ -4570,14 +4618,14 @@ var Ea = class extends L {
4570
4618
  thetaStart: n,
4571
4619
  thetaLength: r
4572
4620
  }, t = Math.max(3, t);
4573
- let i = [], a = [], o = [], s = [], c = new I(), l = new F();
4621
+ let i = [], a = [], o = [], s = [], c = new R(), l = new L();
4574
4622
  a.push(0, 0, 0), o.push(0, 0, 1), s.push(.5, .5);
4575
4623
  for (let i = 0, u = 3; i <= t; i++, u += 3) {
4576
4624
  let d = n + i / t * r;
4577
4625
  c.x = e * Math.cos(d), c.y = e * Math.sin(d), a.push(c.x, c.y, c.z), o.push(0, 0, 1), l.x = (a[u] / e + 1) / 2, l.y = (a[u + 1] / e + 1) / 2, s.push(l.x, l.y);
4578
4626
  }
4579
4627
  for (let e = 1; e <= t; e++) i.push(e, e + 1, 0);
4580
- this.setIndex(i), this.setAttribute("position", new G(a, 3)), this.setAttribute("normal", new G(o, 3)), this.setAttribute("uv", new G(s, 2));
4628
+ this.setIndex(i), this.setAttribute("position", new K(a, 3)), this.setAttribute("normal", new K(o, 3)), this.setAttribute("uv", new K(s, 2));
4581
4629
  }
4582
4630
  copy(e) {
4583
4631
  return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
@@ -4585,7 +4633,7 @@ var Ea = class extends L {
4585
4633
  static fromJSON(t) {
4586
4634
  return new e(t.radius, t.segments, t.thetaStart, t.thetaLength);
4587
4635
  }
4588
- }, Pa = class e extends Zr {
4636
+ }, Pa = class e extends ei {
4589
4637
  constructor(e = 1, t = 1, n = 1, r = 32, i = 1, a = !1, o = 0, s = Math.PI * 2) {
4590
4638
  super(), this.type = "CylinderGeometry", this.parameters = {
4591
4639
  radiusTop: e,
@@ -4600,9 +4648,9 @@ var Ea = class extends L {
4600
4648
  let c = this;
4601
4649
  r = Math.floor(r), i = Math.floor(i);
4602
4650
  let l = [], u = [], d = [], f = [], p = 0, m = [], h = n / 2, g = 0;
4603
- _(), a === !1 && (e > 0 && v(!0), t > 0 && v(!1)), this.setIndex(l), this.setAttribute("position", new G(u, 3)), this.setAttribute("normal", new G(d, 3)), this.setAttribute("uv", new G(f, 2));
4651
+ _(), a === !1 && (e > 0 && v(!0), t > 0 && v(!1)), this.setIndex(l), this.setAttribute("position", new K(u, 3)), this.setAttribute("normal", new K(d, 3)), this.setAttribute("uv", new K(f, 2));
4604
4652
  function _() {
4605
- let a = new I(), _ = new I(), v = 0, y = (t - e) / n;
4653
+ let a = new R(), _ = new R(), v = 0, y = (t - e) / n;
4606
4654
  for (let c = 0; c <= i; c++) {
4607
4655
  let l = [], g = c / i, v = g * (t - e) + e;
4608
4656
  for (let e = 0; e <= r; e++) {
@@ -4618,7 +4666,7 @@ var Ea = class extends L {
4618
4666
  c.addGroup(g, v, 0), g += v;
4619
4667
  }
4620
4668
  function v(n) {
4621
- let i = p, a = new F(), m = new I(), _ = 0, v = n === !0 ? e : t, y = n === !0 ? 1 : -1;
4669
+ let i = p, a = new L(), m = new R(), _ = 0, v = n === !0 ? e : t, y = n === !0 ? 1 : -1;
4622
4670
  for (let e = 1; e <= r; e++) u.push(0, h * y, 0), d.push(0, y, 0), f.push(.5, .5), p++;
4623
4671
  let b = p;
4624
4672
  for (let e = 0; e <= r; e++) {
@@ -4653,7 +4701,7 @@ var Ea = class extends L {
4653
4701
  static fromJSON(t) {
4654
4702
  return new e(t.radius, t.height, t.radialSegments, t.heightSegments, t.openEnded, t.thetaStart, t.thetaLength);
4655
4703
  }
4656
- }, Ia = /* @__PURE__ */ new I(), La = /* @__PURE__ */ new I(), Ra = /* @__PURE__ */ new I(), za = /* @__PURE__ */ new gr(), Ba = class extends Zr {
4704
+ }, Ia = /* @__PURE__ */ new R(), La = /* @__PURE__ */ new R(), Ra = /* @__PURE__ */ new R(), za = /* @__PURE__ */ new vr(), Ba = class extends ei {
4657
4705
  constructor(e = null, t = 1) {
4658
4706
  if (super(), this.type = "EdgesGeometry", this.parameters = {
4659
4707
  geometry: e,
@@ -4688,7 +4736,7 @@ var Ea = class extends L {
4688
4736
  let { index0: t, index1: n } = u[e];
4689
4737
  Ia.fromBufferAttribute(a, t), La.fromBufferAttribute(a, n), d.push(Ia.x, Ia.y, Ia.z), d.push(La.x, La.y, La.z);
4690
4738
  }
4691
- this.setAttribute("position", new G(d, 3));
4739
+ this.setAttribute("position", new K(d, 3));
4692
4740
  }
4693
4741
  }
4694
4742
  copy(e) {
@@ -4699,7 +4747,7 @@ var Ea = class extends L {
4699
4747
  this.type = "Curve", this.arcLengthDivisions = 200, this.needsUpdate = !1, this.cacheArcLengths = null;
4700
4748
  }
4701
4749
  getPoint() {
4702
- k("Curve: .getPoint() not implemented.");
4750
+ j("Curve: .getPoint() not implemented.");
4703
4751
  }
4704
4752
  getPointAt(e, t) {
4705
4753
  let n = this.getUtoTmapping(e);
@@ -4747,7 +4795,7 @@ var Ea = class extends L {
4747
4795
  getTangent(e, t) {
4748
4796
  let n = 1e-4, r = e - n, i = e + n;
4749
4797
  r < 0 && (r = 0), i > 1 && (i = 1);
4750
- let a = this.getPoint(r), o = this.getPoint(i), s = t || (a.isVector2 ? new F() : new I());
4798
+ let a = this.getPoint(r), o = this.getPoint(i), s = t || (a.isVector2 ? new L() : new R());
4751
4799
  return s.copy(o).sub(a).normalize(), s;
4752
4800
  }
4753
4801
  getTangentAt(e, t) {
@@ -4755,24 +4803,24 @@ var Ea = class extends L {
4755
4803
  return this.getTangent(n, t);
4756
4804
  }
4757
4805
  computeFrenetFrames(e, t = !1) {
4758
- let n = new I(), r = [], i = [], a = [], o = new I(), s = new R();
4806
+ let n = new R(), r = [], i = [], a = [], o = new R(), s = new B();
4759
4807
  for (let t = 0; t <= e; t++) {
4760
4808
  let n = t / e;
4761
- r[t] = this.getTangentAt(n, new I());
4809
+ r[t] = this.getTangentAt(n, new R());
4762
4810
  }
4763
- i[0] = new I(), a[0] = new I();
4811
+ i[0] = new R(), a[0] = new R();
4764
4812
  let c = Number.MAX_VALUE, l = Math.abs(r[0].x), u = Math.abs(r[0].y), d = Math.abs(r[0].z);
4765
4813
  l <= c && (c = l, n.set(1, 0, 0)), u <= c && (c = u, n.set(0, 1, 0)), d <= c && n.set(0, 0, 1), o.crossVectors(r[0], n).normalize(), i[0].crossVectors(r[0], o), a[0].crossVectors(r[0], i[0]);
4766
4814
  for (let t = 1; t <= e; t++) {
4767
4815
  if (i[t] = i[t - 1].clone(), a[t] = a[t - 1].clone(), o.crossVectors(r[t - 1], r[t]), o.length() > 2 ** -52) {
4768
4816
  o.normalize();
4769
- let e = Math.acos(M(r[t - 1].dot(r[t]), -1, 1));
4817
+ let e = Math.acos(P(r[t - 1].dot(r[t]), -1, 1));
4770
4818
  i[t].applyMatrix4(s.makeRotationAxis(o, e));
4771
4819
  }
4772
4820
  a[t].crossVectors(r[t], i[t]);
4773
4821
  }
4774
4822
  if (t === !0) {
4775
- let t = Math.acos(M(i[0].dot(i[e]), -1, 1));
4823
+ let t = Math.acos(P(i[0].dot(i[e]), -1, 1));
4776
4824
  t /= e, r[0].dot(o.crossVectors(i[0], i[e])) > 0 && (t = -t);
4777
4825
  for (let n = 1; n <= e; n++) i[n].applyMatrix4(s.makeRotationAxis(r[n], t * n)), a[n].crossVectors(r[n], i[n]);
4778
4826
  }
@@ -4803,7 +4851,7 @@ var Ea = class extends L {
4803
4851
  constructor(e = 0, t = 0, n = 1, r = 1, i = 0, a = Math.PI * 2, o = !1, s = 0) {
4804
4852
  super(), this.isEllipseCurve = !0, this.type = "EllipseCurve", this.aX = e, this.aY = t, this.xRadius = n, this.yRadius = r, this.aStartAngle = i, this.aEndAngle = a, this.aClockwise = o, this.aRotation = s;
4805
4853
  }
4806
- getPoint(e, t = new F()) {
4854
+ getPoint(e, t = new L()) {
4807
4855
  let n = t, r = Math.PI * 2, i = this.aEndAngle - this.aStartAngle, a = Math.abs(i) < 2 ** -52;
4808
4856
  for (; i < 0;) i += r;
4809
4857
  for (; i > r;) i -= r;
@@ -4849,11 +4897,11 @@ function Wa() {
4849
4897
  }
4850
4898
  };
4851
4899
  }
4852
- var Ga = /* @__PURE__ */ new I(), Ka = /* @__PURE__ */ new I(), qa = /* @__PURE__ */ new Wa(), Ja = /* @__PURE__ */ new Wa(), Ya = /* @__PURE__ */ new Wa(), Xa = class extends Va {
4900
+ var Ga = /* @__PURE__ */ new R(), Ka = /* @__PURE__ */ new R(), qa = /* @__PURE__ */ new Wa(), Ja = /* @__PURE__ */ new Wa(), Ya = /* @__PURE__ */ new Wa(), Xa = class extends Va {
4853
4901
  constructor(e = [], t = !1, n = "centripetal", r = .5) {
4854
4902
  super(), this.isCatmullRomCurve3 = !0, this.type = "CatmullRomCurve3", this.points = e, this.closed = t, this.curveType = n, this.tension = r;
4855
4903
  }
4856
- getPoint(e, t = new I()) {
4904
+ getPoint(e, t = new R()) {
4857
4905
  let n = t, r = this.points, i = r.length, a = (i - (this.closed ? 0 : 1)) * e, o = Math.floor(a), s = a - o;
4858
4906
  this.closed ? o += o > 0 ? 0 : (Math.floor(Math.abs(o) / i) + 1) * i : s === 0 && o === i - 1 && (o = i - 2, s = 1);
4859
4907
  let c, l;
@@ -4886,7 +4934,7 @@ var Ga = /* @__PURE__ */ new I(), Ka = /* @__PURE__ */ new I(), qa = /* @__PURE_
4886
4934
  super.fromJSON(e), this.points = [];
4887
4935
  for (let t = 0, n = e.points.length; t < n; t++) {
4888
4936
  let n = e.points[t];
4889
- this.points.push(new I().fromArray(n));
4937
+ this.points.push(new R().fromArray(n));
4890
4938
  }
4891
4939
  return this.closed = e.closed, this.curveType = e.curveType, this.tension = e.tension, this;
4892
4940
  }
@@ -4926,10 +4974,10 @@ function oo(e, t, n, r, i) {
4926
4974
  return no(e, t) + ro(e, n) + io(e, r) + ao(e, i);
4927
4975
  }
4928
4976
  var so = class extends Va {
4929
- constructor(e = new F(), t = new F(), n = new F(), r = new F()) {
4977
+ constructor(e = new L(), t = new L(), n = new L(), r = new L()) {
4930
4978
  super(), this.isCubicBezierCurve = !0, this.type = "CubicBezierCurve", this.v0 = e, this.v1 = t, this.v2 = n, this.v3 = r;
4931
4979
  }
4932
- getPoint(e, t = new F()) {
4980
+ getPoint(e, t = new L()) {
4933
4981
  let n = t, r = this.v0, i = this.v1, a = this.v2, o = this.v3;
4934
4982
  return n.set(oo(e, r.x, i.x, a.x, o.x), oo(e, r.y, i.y, a.y, o.y)), n;
4935
4983
  }
@@ -4944,10 +4992,10 @@ var so = class extends Va {
4944
4992
  return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this.v3.fromArray(e.v3), this;
4945
4993
  }
4946
4994
  }, co = class extends Va {
4947
- constructor(e = new I(), t = new I(), n = new I(), r = new I()) {
4995
+ constructor(e = new R(), t = new R(), n = new R(), r = new R()) {
4948
4996
  super(), this.isCubicBezierCurve3 = !0, this.type = "CubicBezierCurve3", this.v0 = e, this.v1 = t, this.v2 = n, this.v3 = r;
4949
4997
  }
4950
- getPoint(e, t = new I()) {
4998
+ getPoint(e, t = new R()) {
4951
4999
  let n = t, r = this.v0, i = this.v1, a = this.v2, o = this.v3;
4952
5000
  return n.set(oo(e, r.x, i.x, a.x, o.x), oo(e, r.y, i.y, a.y, o.y), oo(e, r.z, i.z, a.z, o.z)), n;
4953
5001
  }
@@ -4962,17 +5010,17 @@ var so = class extends Va {
4962
5010
  return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this.v3.fromArray(e.v3), this;
4963
5011
  }
4964
5012
  }, lo = class extends Va {
4965
- constructor(e = new F(), t = new F()) {
5013
+ constructor(e = new L(), t = new L()) {
4966
5014
  super(), this.isLineCurve = !0, this.type = "LineCurve", this.v1 = e, this.v2 = t;
4967
5015
  }
4968
- getPoint(e, t = new F()) {
5016
+ getPoint(e, t = new L()) {
4969
5017
  let n = t;
4970
5018
  return e === 1 ? n.copy(this.v2) : (n.copy(this.v2).sub(this.v1), n.multiplyScalar(e).add(this.v1)), n;
4971
5019
  }
4972
5020
  getPointAt(e, t) {
4973
5021
  return this.getPoint(e, t);
4974
5022
  }
4975
- getTangent(e, t = new F()) {
5023
+ getTangent(e, t = new L()) {
4976
5024
  return t.subVectors(this.v2, this.v1).normalize();
4977
5025
  }
4978
5026
  getTangentAt(e, t) {
@@ -4989,17 +5037,17 @@ var so = class extends Va {
4989
5037
  return super.fromJSON(e), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
4990
5038
  }
4991
5039
  }, uo = class extends Va {
4992
- constructor(e = new I(), t = new I()) {
5040
+ constructor(e = new R(), t = new R()) {
4993
5041
  super(), this.isLineCurve3 = !0, this.type = "LineCurve3", this.v1 = e, this.v2 = t;
4994
5042
  }
4995
- getPoint(e, t = new I()) {
5043
+ getPoint(e, t = new R()) {
4996
5044
  let n = t;
4997
5045
  return e === 1 ? n.copy(this.v2) : (n.copy(this.v2).sub(this.v1), n.multiplyScalar(e).add(this.v1)), n;
4998
5046
  }
4999
5047
  getPointAt(e, t) {
5000
5048
  return this.getPoint(e, t);
5001
5049
  }
5002
- getTangent(e, t = new I()) {
5050
+ getTangent(e, t = new R()) {
5003
5051
  return t.subVectors(this.v2, this.v1).normalize();
5004
5052
  }
5005
5053
  getTangentAt(e, t) {
@@ -5016,10 +5064,10 @@ var so = class extends Va {
5016
5064
  return super.fromJSON(e), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
5017
5065
  }
5018
5066
  }, fo = class extends Va {
5019
- constructor(e = new F(), t = new F(), n = new F()) {
5067
+ constructor(e = new L(), t = new L(), n = new L()) {
5020
5068
  super(), this.isQuadraticBezierCurve = !0, this.type = "QuadraticBezierCurve", this.v0 = e, this.v1 = t, this.v2 = n;
5021
5069
  }
5022
- getPoint(e, t = new F()) {
5070
+ getPoint(e, t = new L()) {
5023
5071
  let n = t, r = this.v0, i = this.v1, a = this.v2;
5024
5072
  return n.set(to(e, r.x, i.x, a.x), to(e, r.y, i.y, a.y)), n;
5025
5073
  }
@@ -5034,10 +5082,10 @@ var so = class extends Va {
5034
5082
  return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
5035
5083
  }
5036
5084
  }, po = class extends Va {
5037
- constructor(e = new I(), t = new I(), n = new I()) {
5085
+ constructor(e = new R(), t = new R(), n = new R()) {
5038
5086
  super(), this.isQuadraticBezierCurve3 = !0, this.type = "QuadraticBezierCurve3", this.v0 = e, this.v1 = t, this.v2 = n;
5039
5087
  }
5040
- getPoint(e, t = new I()) {
5088
+ getPoint(e, t = new R()) {
5041
5089
  let n = t, r = this.v0, i = this.v1, a = this.v2;
5042
5090
  return n.set(to(e, r.x, i.x, a.x), to(e, r.y, i.y, a.y), to(e, r.z, i.z, a.z)), n;
5043
5091
  }
@@ -5055,7 +5103,7 @@ var so = class extends Va {
5055
5103
  constructor(e = []) {
5056
5104
  super(), this.isSplineCurve = !0, this.type = "SplineCurve", this.points = e;
5057
5105
  }
5058
- getPoint(e, t = new F()) {
5106
+ getPoint(e, t = new L()) {
5059
5107
  let n = t, r = this.points, i = (r.length - 1) * e, a = Math.floor(i), o = i - a, s = r[a === 0 ? a : a - 1], c = r[a], l = r[a > r.length - 2 ? r.length - 1 : a + 1], u = r[a > r.length - 3 ? r.length - 1 : a + 2];
5060
5108
  return n.set(Za(o, s.x, c.x, l.x, u.x), Za(o, s.y, c.y, l.y, u.y)), n;
5061
5109
  }
@@ -5080,7 +5128,7 @@ var so = class extends Va {
5080
5128
  super.fromJSON(e), this.points = [];
5081
5129
  for (let t = 0, n = e.points.length; t < n; t++) {
5082
5130
  let n = e.points[t];
5083
- this.points.push(new F().fromArray(n));
5131
+ this.points.push(new L().fromArray(n));
5084
5132
  }
5085
5133
  return this;
5086
5134
  }
@@ -5178,7 +5226,7 @@ var so = class extends Va {
5178
5226
  }
5179
5227
  }, _o = class extends go {
5180
5228
  constructor(e) {
5181
- super(), this.type = "Path", this.currentPoint = new F(), e && this.setFromPoints(e);
5229
+ super(), this.type = "Path", this.currentPoint = new L(), e && this.setFromPoints(e);
5182
5230
  }
5183
5231
  setFromPoints(e) {
5184
5232
  this.moveTo(e[0].x, e[0].y);
@@ -5189,15 +5237,15 @@ var so = class extends Va {
5189
5237
  return this.currentPoint.set(e, t), this;
5190
5238
  }
5191
5239
  lineTo(e, t) {
5192
- let n = new lo(this.currentPoint.clone(), new F(e, t));
5240
+ let n = new lo(this.currentPoint.clone(), new L(e, t));
5193
5241
  return this.curves.push(n), this.currentPoint.set(e, t), this;
5194
5242
  }
5195
5243
  quadraticCurveTo(e, t, n, r) {
5196
- let i = new fo(this.currentPoint.clone(), new F(e, t), new F(n, r));
5244
+ let i = new fo(this.currentPoint.clone(), new L(e, t), new L(n, r));
5197
5245
  return this.curves.push(i), this.currentPoint.set(n, r), this;
5198
5246
  }
5199
5247
  bezierCurveTo(e, t, n, r, i, a) {
5200
- let o = new so(this.currentPoint.clone(), new F(e, t), new F(n, r), new F(i, a));
5248
+ let o = new so(this.currentPoint.clone(), new L(e, t), new L(n, r), new L(i, a));
5201
5249
  return this.curves.push(o), this.currentPoint.set(i, a), this;
5202
5250
  }
5203
5251
  splineThru(e) {
@@ -5560,7 +5608,7 @@ function $o(e) {
5560
5608
  function es(e, t) {
5561
5609
  for (let n = 0; n < t.length; n++) e.push(t[n].x), e.push(t[n].y);
5562
5610
  }
5563
- var ts = class e extends Zr {
5611
+ var ts = class e extends ei {
5564
5612
  constructor(e = 1, t = 1, n = 1, r = 1) {
5565
5613
  super(), this.type = "PlaneGeometry", this.parameters = {
5566
5614
  width: e,
@@ -5580,7 +5628,7 @@ var ts = class e extends Zr {
5580
5628
  let n = t + c * e, r = t + c * (e + 1), i = t + 1 + c * (e + 1), a = t + 1 + c * e;
5581
5629
  f.push(n, r, a), f.push(r, i, a);
5582
5630
  }
5583
- this.setIndex(f), this.setAttribute("position", new G(p, 3)), this.setAttribute("normal", new G(m, 3)), this.setAttribute("uv", new G(h, 2));
5631
+ this.setIndex(f), this.setAttribute("position", new K(p, 3)), this.setAttribute("normal", new K(m, 3)), this.setAttribute("uv", new K(h, 2));
5584
5632
  }
5585
5633
  copy(e) {
5586
5634
  return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
@@ -5588,7 +5636,7 @@ var ts = class e extends Zr {
5588
5636
  static fromJSON(t) {
5589
5637
  return new e(t.width, t.height, t.widthSegments, t.heightSegments);
5590
5638
  }
5591
- }, ns = class e extends Zr {
5639
+ }, ns = class e extends ei {
5592
5640
  constructor(e = .5, t = 1, n = 32, r = 1, i = 0, a = Math.PI * 2) {
5593
5641
  super(), this.type = "RingGeometry", this.parameters = {
5594
5642
  innerRadius: e,
@@ -5598,7 +5646,7 @@ var ts = class e extends Zr {
5598
5646
  thetaStart: i,
5599
5647
  thetaLength: a
5600
5648
  }, n = Math.max(3, n), r = Math.max(1, r);
5601
- let o = [], s = [], c = [], l = [], u = e, d = (t - e) / r, f = new I(), p = new F();
5649
+ let o = [], s = [], c = [], l = [], u = e, d = (t - e) / r, f = new R(), p = new L();
5602
5650
  for (let e = 0; e <= r; e++) {
5603
5651
  for (let e = 0; e <= n; e++) {
5604
5652
  let r = i + e / n * a;
@@ -5613,7 +5661,7 @@ var ts = class e extends Zr {
5613
5661
  o.push(i, a, c), o.push(a, s, c);
5614
5662
  }
5615
5663
  }
5616
- this.setIndex(o), this.setAttribute("position", new G(s, 3)), this.setAttribute("normal", new G(c, 3)), this.setAttribute("uv", new G(l, 2));
5664
+ this.setIndex(o), this.setAttribute("position", new K(s, 3)), this.setAttribute("normal", new K(c, 3)), this.setAttribute("uv", new K(l, 2));
5617
5665
  }
5618
5666
  copy(e) {
5619
5667
  return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
@@ -5621,11 +5669,11 @@ var ts = class e extends Zr {
5621
5669
  static fromJSON(t) {
5622
5670
  return new e(t.innerRadius, t.outerRadius, t.thetaSegments, t.phiSegments, t.thetaStart, t.thetaLength);
5623
5671
  }
5624
- }, rs = class e extends Zr {
5672
+ }, rs = class e extends ei {
5625
5673
  constructor(e = new vo([
5626
- new F(0, .5),
5627
- new F(-.5, -.5),
5628
- new F(.5, -.5)
5674
+ new L(0, .5),
5675
+ new L(-.5, -.5),
5676
+ new L(.5, -.5)
5629
5677
  ]), t = 12) {
5630
5678
  super(), this.type = "ShapeGeometry", this.parameters = {
5631
5679
  shapes: e,
@@ -5634,7 +5682,7 @@ var ts = class e extends Zr {
5634
5682
  let n = [], r = [], i = [], a = [], o = 0, s = 0;
5635
5683
  if (Array.isArray(e) === !1) c(e);
5636
5684
  else for (let t = 0; t < e.length; t++) c(e[t]), this.addGroup(o, s, t), o += s, s = 0;
5637
- this.setIndex(n), this.setAttribute("position", new G(r, 3)), this.setAttribute("normal", new G(i, 3)), this.setAttribute("uv", new G(a, 2));
5685
+ this.setIndex(n), this.setAttribute("position", new K(r, 3)), this.setAttribute("normal", new K(i, 3)), this.setAttribute("uv", new K(a, 2));
5638
5686
  function c(e) {
5639
5687
  let o = r.length / 3, c = e.extractPoints(t), l = c.shape, u = c.holes;
5640
5688
  Qo.isClockWise(l) === !1 && (l = l.reverse());
@@ -5681,7 +5729,7 @@ function is(e, t) {
5681
5729
  else t.shapes.push(e.uuid);
5682
5730
  return t;
5683
5731
  }
5684
- var as = class e extends Zr {
5732
+ var as = class e extends ei {
5685
5733
  constructor(e = 1, t = 32, n = 16, r = 0, i = Math.PI * 2, a = 0, o = Math.PI) {
5686
5734
  super(), this.type = "SphereGeometry", this.parameters = {
5687
5735
  radius: e,
@@ -5692,7 +5740,7 @@ var as = class e extends Zr {
5692
5740
  thetaStart: a,
5693
5741
  thetaLength: o
5694
5742
  }, t = Math.max(3, Math.floor(t)), n = Math.max(2, Math.floor(n));
5695
- let s = Math.min(a + o, Math.PI), c = 0, l = [], u = new I(), d = new I(), f = [], p = [], m = [], h = [];
5743
+ let s = Math.min(a + o, Math.PI), c = 0, l = [], u = new R(), d = new R(), f = [], p = [], m = [], h = [];
5696
5744
  for (let f = 0; f <= n; f++) {
5697
5745
  let g = [], _ = f / n, v = a + _ * o, y = e * Math.cos(v), b = Math.sqrt(e * e - y * y), x = 0;
5698
5746
  f === 0 && a === 0 ? x = .5 / t : f === n && s === Math.PI && (x = -.5 / t);
@@ -5706,7 +5754,7 @@ var as = class e extends Zr {
5706
5754
  let t = l[e][r + 1], i = l[e][r], o = l[e + 1][r], c = l[e + 1][r + 1];
5707
5755
  (e !== 0 || a > 0) && f.push(t, i, c), (e !== n - 1 || s < Math.PI) && f.push(i, o, c);
5708
5756
  }
5709
- this.setIndex(f), this.setAttribute("position", new G(p, 3)), this.setAttribute("normal", new G(m, 3)), this.setAttribute("uv", new G(h, 2));
5757
+ this.setIndex(f), this.setAttribute("position", new K(p, 3)), this.setAttribute("normal", new K(m, 3)), this.setAttribute("uv", new K(h, 2));
5710
5758
  }
5711
5759
  copy(e) {
5712
5760
  return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
@@ -5716,7 +5764,7 @@ var as = class e extends Zr {
5716
5764
  }
5717
5765
  }, os = class extends Y {
5718
5766
  constructor(e) {
5719
- super(), this.isShadowMaterial = !0, this.type = "ShadowMaterial", this.color = new V(0), this.transparent = !0, this.fog = !0, this.setValues(e);
5767
+ super(), this.isShadowMaterial = !0, this.type = "ShadowMaterial", this.color = new H(0), this.transparent = !0, this.fog = !0, this.setValues(e);
5720
5768
  }
5721
5769
  copy(e) {
5722
5770
  return super.copy(e), this.color.copy(e.color), this.fog = e.fog, this;
@@ -5728,7 +5776,7 @@ function ss(e) {
5728
5776
  t[n] = {};
5729
5777
  for (let r in e[n]) {
5730
5778
  let i = e[n][r];
5731
- if (ls(i)) i.isRenderTargetTexture ? (k("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."), t[n][r] = null) : t[n][r] = i.clone();
5779
+ if (ls(i)) i.isRenderTargetTexture ? (j("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."), t[n][r] = null) : t[n][r] = i.clone();
5732
5780
  else if (Array.isArray(i)) if (ls(i[0])) {
5733
5781
  let e = [];
5734
5782
  for (let t = 0, n = i.length; t < n; t++) e[t] = i[t].clone();
@@ -5821,22 +5869,22 @@ var fs = {
5821
5869
  this.uniforms[n].value = t[r.value] || null;
5822
5870
  break;
5823
5871
  case "c":
5824
- this.uniforms[n].value = new V().setHex(r.value);
5872
+ this.uniforms[n].value = new H().setHex(r.value);
5825
5873
  break;
5826
5874
  case "v2":
5827
- this.uniforms[n].value = new F().fromArray(r.value);
5875
+ this.uniforms[n].value = new L().fromArray(r.value);
5828
5876
  break;
5829
5877
  case "v3":
5830
- this.uniforms[n].value = new I().fromArray(r.value);
5878
+ this.uniforms[n].value = new R().fromArray(r.value);
5831
5879
  break;
5832
5880
  case "v4":
5833
- this.uniforms[n].value = new vn().fromArray(r.value);
5881
+ this.uniforms[n].value = new yn().fromArray(r.value);
5834
5882
  break;
5835
5883
  case "m3":
5836
5884
  this.uniforms[n].value = new nn().fromArray(r.value);
5837
5885
  break;
5838
5886
  case "m4":
5839
- this.uniforms[n].value = new R().fromArray(r.value);
5887
+ this.uniforms[n].value = new B().fromArray(r.value);
5840
5888
  break;
5841
5889
  default: this.uniforms[n].value = r.value;
5842
5890
  }
@@ -5850,7 +5898,7 @@ var fs = {
5850
5898
  }
5851
5899
  }, _s = class extends Y {
5852
5900
  constructor(e) {
5853
- super(), this.isMeshStandardMaterial = !0, this.type = "MeshStandardMaterial", this.defines = { STANDARD: "" }, this.color = new V(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new V(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new jn(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
5901
+ super(), this.isMeshStandardMaterial = !0, this.type = "MeshStandardMaterial", this.defines = { STANDARD: "" }, this.color = new H(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new L(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Nn(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
5854
5902
  }
5855
5903
  copy(e) {
5856
5904
  return super.copy(e), this.defines = { STANDARD: "" }, this.color.copy(e.color), this.roughness = e.roughness, this.metalness = e.metalness, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.roughnessMap = e.roughnessMap, this.metalnessMap = e.metalnessMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.envMapIntensity = e.envMapIntensity, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
@@ -5860,14 +5908,14 @@ var fs = {
5860
5908
  super(), this.isMeshPhysicalMaterial = !0, this.defines = {
5861
5909
  STANDARD: "",
5862
5910
  PHYSICAL: ""
5863
- }, this.type = "MeshPhysicalMaterial", this.anisotropyRotation = 0, this.anisotropyMap = null, this.clearcoatMap = null, this.clearcoatRoughness = 0, this.clearcoatRoughnessMap = null, this.clearcoatNormalScale = new F(1, 1), this.clearcoatNormalMap = null, this.ior = 1.5, Object.defineProperty(this, "reflectivity", {
5911
+ }, this.type = "MeshPhysicalMaterial", this.anisotropyRotation = 0, this.anisotropyMap = null, this.clearcoatMap = null, this.clearcoatRoughness = 0, this.clearcoatRoughnessMap = null, this.clearcoatNormalScale = new L(1, 1), this.clearcoatNormalMap = null, this.ior = 1.5, Object.defineProperty(this, "reflectivity", {
5864
5912
  get: function() {
5865
- return M(2.5 * (this.ior - 1) / (this.ior + 1), 0, 1);
5913
+ return P(2.5 * (this.ior - 1) / (this.ior + 1), 0, 1);
5866
5914
  },
5867
5915
  set: function(e) {
5868
5916
  this.ior = (1 + .4 * e) / (1 - .4 * e);
5869
5917
  }
5870
- }), this.iridescenceMap = null, this.iridescenceIOR = 1.3, this.iridescenceThicknessRange = [100, 400], this.iridescenceThicknessMap = null, this.sheenColor = new V(0), this.sheenColorMap = null, this.sheenRoughness = 1, this.sheenRoughnessMap = null, this.transmissionMap = null, this.thickness = 0, this.thicknessMap = null, this.attenuationDistance = Infinity, this.attenuationColor = new V(1, 1, 1), this.specularIntensity = 1, this.specularIntensityMap = null, this.specularColor = new V(1, 1, 1), this.specularColorMap = null, this._anisotropy = 0, this._clearcoat = 0, this._dispersion = 0, this._iridescence = 0, this._sheen = 0, this._transmission = 0, this.setValues(e);
5918
+ }), this.iridescenceMap = null, this.iridescenceIOR = 1.3, this.iridescenceThicknessRange = [100, 400], this.iridescenceThicknessMap = null, this.sheenColor = new H(0), this.sheenColorMap = null, this.sheenRoughness = 1, this.sheenRoughnessMap = null, this.transmissionMap = null, this.thickness = 0, this.thicknessMap = null, this.attenuationDistance = Infinity, this.attenuationColor = new H(1, 1, 1), this.specularIntensity = 1, this.specularIntensityMap = null, this.specularColor = new H(1, 1, 1), this.specularColorMap = null, this._anisotropy = 0, this._clearcoat = 0, this._dispersion = 0, this._iridescence = 0, this._retroreflectivity = 0, this._sheen = 0, this._transmission = 0, this.setValues(e);
5871
5919
  }
5872
5920
  get anisotropy() {
5873
5921
  return this._anisotropy;
@@ -5893,6 +5941,12 @@ var fs = {
5893
5941
  set dispersion(e) {
5894
5942
  this._dispersion > 0 != e > 0 && this.version++, this._dispersion = e;
5895
5943
  }
5944
+ get retroreflectivity() {
5945
+ return this._retroreflectivity;
5946
+ }
5947
+ set retroreflectivity(e) {
5948
+ this._retroreflectivity > 0 != e > 0 && this.version++, this._retroreflectivity = e;
5949
+ }
5896
5950
  get sheen() {
5897
5951
  return this._sheen;
5898
5952
  }
@@ -5909,39 +5963,39 @@ var fs = {
5909
5963
  return super.copy(e), this.defines = {
5910
5964
  STANDARD: "",
5911
5965
  PHYSICAL: ""
5912
- }, this.anisotropy = e.anisotropy, this.anisotropyRotation = e.anisotropyRotation, this.anisotropyMap = e.anisotropyMap, this.clearcoat = e.clearcoat, this.clearcoatMap = e.clearcoatMap, this.clearcoatRoughness = e.clearcoatRoughness, this.clearcoatRoughnessMap = e.clearcoatRoughnessMap, this.clearcoatNormalMap = e.clearcoatNormalMap, this.clearcoatNormalScale.copy(e.clearcoatNormalScale), this.dispersion = e.dispersion, this.ior = e.ior, this.iridescence = e.iridescence, this.iridescenceMap = e.iridescenceMap, this.iridescenceIOR = e.iridescenceIOR, this.iridescenceThicknessRange = [...e.iridescenceThicknessRange], this.iridescenceThicknessMap = e.iridescenceThicknessMap, this.sheen = e.sheen, this.sheenColor.copy(e.sheenColor), this.sheenColorMap = e.sheenColorMap, this.sheenRoughness = e.sheenRoughness, this.sheenRoughnessMap = e.sheenRoughnessMap, this.transmission = e.transmission, this.transmissionMap = e.transmissionMap, this.thickness = e.thickness, this.thicknessMap = e.thicknessMap, this.attenuationDistance = e.attenuationDistance, this.attenuationColor.copy(e.attenuationColor), this.specularIntensity = e.specularIntensity, this.specularIntensityMap = e.specularIntensityMap, this.specularColor.copy(e.specularColor), this.specularColorMap = e.specularColorMap, this;
5966
+ }, this.anisotropy = e.anisotropy, this.anisotropyRotation = e.anisotropyRotation, this.anisotropyMap = e.anisotropyMap, this.clearcoat = e.clearcoat, this.clearcoatMap = e.clearcoatMap, this.clearcoatRoughness = e.clearcoatRoughness, this.clearcoatRoughnessMap = e.clearcoatRoughnessMap, this.clearcoatNormalMap = e.clearcoatNormalMap, this.clearcoatNormalScale.copy(e.clearcoatNormalScale), this.dispersion = e.dispersion, this.ior = e.ior, this.iridescence = e.iridescence, this.iridescenceMap = e.iridescenceMap, this.iridescenceIOR = e.iridescenceIOR, this.iridescenceThicknessRange = [...e.iridescenceThicknessRange], this.iridescenceThicknessMap = e.iridescenceThicknessMap, this.retroreflectivity = e.retroreflectivity, this.sheen = e.sheen, this.sheenColor.copy(e.sheenColor), this.sheenColorMap = e.sheenColorMap, this.sheenRoughness = e.sheenRoughness, this.sheenRoughnessMap = e.sheenRoughnessMap, this.transmission = e.transmission, this.transmissionMap = e.transmissionMap, this.thickness = e.thickness, this.thicknessMap = e.thicknessMap, this.attenuationDistance = e.attenuationDistance, this.attenuationColor.copy(e.attenuationColor), this.specularIntensity = e.specularIntensity, this.specularIntensityMap = e.specularIntensityMap, this.specularColor.copy(e.specularColor), this.specularColorMap = e.specularColorMap, this;
5913
5967
  }
5914
5968
  }, ys = class extends Y {
5915
5969
  constructor(e) {
5916
- super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new V(16777215), this.specular = new V(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new V(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new jn(), this.combine = 0, this.reflectivity = 1, this.envMapIntensity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
5970
+ super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new H(16777215), this.specular = new H(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new L(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Nn(), this.combine = 0, this.reflectivity = 1, this.envMapIntensity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
5917
5971
  }
5918
5972
  copy(e) {
5919
5973
  return super.copy(e), this.color.copy(e.color), this.specular.copy(e.specular), this.shininess = e.shininess, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.envMapIntensity = e.envMapIntensity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
5920
5974
  }
5921
5975
  }, bs = class extends Y {
5922
5976
  constructor(e) {
5923
- super(), this.isMeshToonMaterial = !0, this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new V(16777215), this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new V(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e);
5977
+ super(), this.isMeshToonMaterial = !0, this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new H(16777215), this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new L(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e);
5924
5978
  }
5925
5979
  copy(e) {
5926
5980
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.gradientMap = e.gradientMap, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.alphaMap = e.alphaMap, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
5927
5981
  }
5928
5982
  }, xs = class extends Y {
5929
5983
  constructor(e) {
5930
- super(), this.isMeshNormalMaterial = !0, this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.flatShading = !1, this.setValues(e);
5984
+ super(), this.isMeshNormalMaterial = !0, this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new L(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.flatShading = !1, this.setValues(e);
5931
5985
  }
5932
5986
  copy(e) {
5933
5987
  return super.copy(e), this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.flatShading = e.flatShading, this;
5934
5988
  }
5935
5989
  }, Ss = class extends Y {
5936
5990
  constructor(e) {
5937
- super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new V(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new V(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new jn(), this.combine = 0, this.reflectivity = 1, this.envMapIntensity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
5991
+ super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new H(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new L(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Nn(), this.combine = 0, this.reflectivity = 1, this.envMapIntensity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
5938
5992
  }
5939
5993
  copy(e) {
5940
5994
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.envMapIntensity = e.envMapIntensity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
5941
5995
  }
5942
5996
  }, Cs = class extends Y {
5943
5997
  constructor(e) {
5944
- super(), this.isMeshDepthMaterial = !0, this.type = "MeshDepthMaterial", this.depthPacking = Ze, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.setValues(e);
5998
+ super(), this.isMeshDepthMaterial = !0, this.type = "MeshDepthMaterial", this.depthPacking = Ye, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.setValues(e);
5945
5999
  }
5946
6000
  copy(e) {
5947
6001
  return super.copy(e), this.depthPacking = e.depthPacking, this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this;
@@ -5955,7 +6009,7 @@ var fs = {
5955
6009
  }
5956
6010
  }, Ts = class extends Y {
5957
6011
  constructor(e) {
5958
- super(), this.isMeshMatcapMaterial = !0, this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new V(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.flatShading = !1, this.fog = !0, this.setValues(e);
6012
+ super(), this.isMeshMatcapMaterial = !0, this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new H(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new L(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.flatShading = !1, this.fog = !0, this.setValues(e);
5959
6013
  }
5960
6014
  copy(e) {
5961
6015
  return super.copy(e), this.defines = { MATCAP: "" }, this.color.copy(e.color), this.matcap = e.matcap, this.map = e.map, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.alphaMap = e.alphaMap, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.flatShading = e.flatShading, this.fog = e.fog, this;
@@ -5972,6 +6026,9 @@ function Ds(e, t) {
5972
6026
  return !e || e.constructor === t ? e : typeof t.BYTES_PER_ELEMENT == "number" ? new t(e) : Array.prototype.slice.call(e);
5973
6027
  }
5974
6028
  function Os(e) {
6029
+ return e !== void 0 && e.inTangents !== void 0 && e.outTangents !== void 0;
6030
+ }
6031
+ function ks(e) {
5975
6032
  function t(t, n) {
5976
6033
  return e[t] - e[n];
5977
6034
  }
@@ -5979,7 +6036,7 @@ function Os(e) {
5979
6036
  for (let e = 0; e !== n; ++e) r[e] = e;
5980
6037
  return r.sort(t), r;
5981
6038
  }
5982
- function ks(e, t, n) {
6039
+ function As(e, t, n) {
5983
6040
  let r = e.length, i = new e.constructor(r);
5984
6041
  for (let a = 0, o = 0; o !== r; ++a) {
5985
6042
  let r = n[a] * t;
@@ -5987,7 +6044,7 @@ function ks(e, t, n) {
5987
6044
  }
5988
6045
  return i;
5989
6046
  }
5990
- function As(e, t, n, r) {
6047
+ function js(e, t, n, r) {
5991
6048
  let i = 1, a = e[0];
5992
6049
  for (; a !== void 0 && a[r] === void 0;) a = e[i++];
5993
6050
  if (a === void 0) return;
@@ -6002,7 +6059,7 @@ function As(e, t, n, r) {
6002
6059
  o = a[r], o !== void 0 && (t.push(a.time), n.push(o)), a = e[i++];
6003
6060
  while (a !== void 0);
6004
6061
  }
6005
- var js = class {
6062
+ var Ms = class {
6006
6063
  constructor(e, t, n, r) {
6007
6064
  this.parameterPositions = e, this._cachedIndex = 0, this.resultBuffer = r === void 0 ? new t.constructor(n) : r, this.sampleValues = t, this.valueSize = n, this.settings = null, this.DefaultSettings_ = {};
6008
6065
  }
@@ -6060,29 +6117,29 @@ var js = class {
6060
6117
  throw Error("THREE.Interpolant: Call to abstract method.");
6061
6118
  }
6062
6119
  intervalChanged_() {}
6063
- }, Ms = class extends js {
6120
+ }, Ns = class extends Ms {
6064
6121
  constructor(e, t, n, r) {
6065
6122
  super(e, t, n, r), this._weightPrev = -0, this._offsetPrev = -0, this._weightNext = -0, this._offsetNext = -0, this.DefaultSettings_ = {
6066
- endingStart: qe,
6067
- endingEnd: qe
6123
+ endingStart: Ge,
6124
+ endingEnd: Ge
6068
6125
  };
6069
6126
  }
6070
6127
  intervalChanged_(e, t, n) {
6071
6128
  let r = this.parameterPositions, i = e - 2, a = e + 1, o = r[i], s = r[a];
6072
6129
  if (o === void 0) switch (this.getSettings_().endingStart) {
6073
- case Je:
6130
+ case Ke:
6074
6131
  i = e, o = 2 * t - n;
6075
6132
  break;
6076
- case Ye:
6133
+ case qe:
6077
6134
  i = r.length - 2, o = t + r[i] - r[i + 1];
6078
6135
  break;
6079
6136
  default: i = e, o = n;
6080
6137
  }
6081
6138
  if (s === void 0) switch (this.getSettings_().endingEnd) {
6082
- case Je:
6139
+ case Ke:
6083
6140
  a = e, s = 2 * n - t;
6084
6141
  break;
6085
- case Ye:
6142
+ case qe:
6086
6143
  a = 1, s = n + r[1] - r[0];
6087
6144
  break;
6088
6145
  default: a = e - 1, s = t;
@@ -6095,7 +6152,7 @@ var js = class {
6095
6152
  for (let e = 0; e !== o; ++e) i[e] = g * a[l + e] + _ * a[c + e] + v * a[s + e] + y * a[u + e];
6096
6153
  return i;
6097
6154
  }
6098
- }, Ns = class extends js {
6155
+ }, Ps = class extends Ms {
6099
6156
  constructor(e, t, n, r) {
6100
6157
  super(e, t, n, r);
6101
6158
  }
@@ -6104,14 +6161,14 @@ var js = class {
6104
6161
  for (let e = 0; e !== o; ++e) i[e] = a[c + e] * u + a[s + e] * l;
6105
6162
  return i;
6106
6163
  }
6107
- }, Ps = class extends js {
6164
+ }, Fs = class extends Ms {
6108
6165
  constructor(e, t, n, r) {
6109
6166
  super(e, t, n, r);
6110
6167
  }
6111
6168
  interpolate_(e) {
6112
6169
  return this.copySampleValue_(e - 1);
6113
6170
  }
6114
- }, Fs = class extends js {
6171
+ }, Is = class extends Ms {
6115
6172
  interpolate_(e, t, n, r) {
6116
6173
  let i = this.resultBuffer, a = this.sampleValues, o = this.valueSize, s = e * o, c = s - o, l = this.inTangents, u = this.outTangents;
6117
6174
  if (!l || !u) {
@@ -6121,20 +6178,32 @@ var js = class {
6121
6178
  }
6122
6179
  let d = o * 2, f = e - 1;
6123
6180
  for (let p = 0; p !== o; ++p) {
6124
- let o = a[c + p], m = a[s + p], h = f * d + p * 2, g = u[h], _ = u[h + 1], v = e * d + p * 2, y = l[v], b = l[v + 1], x = (n - t) / (r - t), S, C, w, T, E;
6125
- for (let e = 0; e < 8; e++) {
6126
- S = x * x, C = S * x, w = 1 - x, T = w * w, E = T * w;
6127
- let e = E * t + 3 * T * x * g + 3 * w * S * y + C * r - n;
6128
- if (Math.abs(e) < 1e-10) break;
6129
- let i = 3 * T * (g - t) + 6 * w * x * (y - g) + 3 * S * (r - y);
6130
- if (Math.abs(i) < 1e-10) break;
6131
- x -= e / i, x = Math.max(0, Math.min(1, x));
6132
- }
6133
- i[p] = E * o + 3 * T * x * _ + 3 * w * S * b + C * m;
6181
+ let o = a[c + p], m = a[s + p], h = f * d + p * 2, g = u[h], _ = u[h + 1], v = e * d + p * 2, y = l[v], b = l[v + 1];
6182
+ i[p] = Ls(zs(n, t, g, y, r), o, _, b, m);
6134
6183
  }
6135
6184
  return i;
6136
6185
  }
6137
- }, Is = class {
6186
+ };
6187
+ function Ls(e, t, n, r, i) {
6188
+ let a = 1 - e;
6189
+ return a * a * a * t + 3 * a * a * e * n + 3 * a * e * e * r + e * e * e * i;
6190
+ }
6191
+ function Rs(e, t, n, r, i) {
6192
+ let a = 1 - e;
6193
+ return 3 * a * a * (n - t) + 6 * a * e * (r - n) + 3 * e * e * (i - r);
6194
+ }
6195
+ function zs(e, t, n, r, i) {
6196
+ let a = (e - t) / (i - t);
6197
+ for (let o = 0; o < 8; o++) {
6198
+ let o = Ls(a, t, n, r, i) - e;
6199
+ if (Math.abs(o) < 1e-10) break;
6200
+ let s = Rs(a, t, n, r, i);
6201
+ if (Math.abs(s) < 1e-10) break;
6202
+ a = Math.max(0, Math.min(1, a - o / s));
6203
+ }
6204
+ return a;
6205
+ }
6206
+ var Bs = class {
6138
6207
  constructor(e, t, n, r) {
6139
6208
  if (e === void 0) throw Error("THREE.KeyframeTrack: track name is undefined");
6140
6209
  if (t === void 0 || t.length === 0) throw Error("THREE.KeyframeTrack: no keyframes in track named " + e);
@@ -6150,36 +6219,39 @@ var js = class {
6150
6219
  values: Ds(e.values, Array)
6151
6220
  };
6152
6221
  let t = e.getInterpolation();
6153
- t !== e.DefaultInterpolation && (n.interpolation = t);
6222
+ t !== e.DefaultInterpolation && (n.interpolation = t), Os(e.settings) && (n.settings = {
6223
+ inTangents: Ds(e.settings.inTangents, Array),
6224
+ outTangents: Ds(e.settings.outTangents, Array)
6225
+ });
6154
6226
  }
6155
6227
  return n.type = e.ValueTypeName, n;
6156
6228
  }
6157
6229
  InterpolantFactoryMethodDiscrete(e) {
6158
- return new Ps(this.times, this.values, this.getValueSize(), e);
6230
+ return new Fs(this.times, this.values, this.getValueSize(), e);
6159
6231
  }
6160
6232
  InterpolantFactoryMethodLinear(e) {
6161
- return new Ns(this.times, this.values, this.getValueSize(), e);
6233
+ return new Ps(this.times, this.values, this.getValueSize(), e);
6162
6234
  }
6163
6235
  InterpolantFactoryMethodSmooth(e) {
6164
- return new Ms(this.times, this.values, this.getValueSize(), e);
6236
+ return new Ns(this.times, this.values, this.getValueSize(), e);
6165
6237
  }
6166
6238
  InterpolantFactoryMethodBezier(e) {
6167
- let t = new Fs(this.times, this.values, this.getValueSize(), e);
6239
+ let t = new Is(this.times, this.values, this.getValueSize(), e);
6168
6240
  return this.settings && (t.inTangents = this.settings.inTangents, t.outTangents = this.settings.outTangents), t;
6169
6241
  }
6170
6242
  setInterpolation(e) {
6171
6243
  let t;
6172
6244
  switch (e) {
6173
- case Ue:
6245
+ case Ve:
6174
6246
  t = this.InterpolantFactoryMethodDiscrete;
6175
6247
  break;
6176
- case We:
6248
+ case He:
6177
6249
  t = this.InterpolantFactoryMethodLinear;
6178
6250
  break;
6179
- case Ge:
6251
+ case Ue:
6180
6252
  t = this.InterpolantFactoryMethodSmooth;
6181
6253
  break;
6182
- case Ke:
6254
+ case We:
6183
6255
  t = this.InterpolantFactoryMethodBezier;
6184
6256
  break;
6185
6257
  }
@@ -6187,16 +6259,16 @@ var js = class {
6187
6259
  let t = "unsupported interpolation for " + this.ValueTypeName + " keyframe track named " + this.name;
6188
6260
  if (this.createInterpolant === void 0) if (e !== this.DefaultInterpolation) this.setInterpolation(this.DefaultInterpolation);
6189
6261
  else throw Error(t);
6190
- return k("KeyframeTrack:", t), this;
6262
+ return j("KeyframeTrack:", t), this;
6191
6263
  }
6192
6264
  return this.createInterpolant = t, this;
6193
6265
  }
6194
6266
  getInterpolation() {
6195
6267
  switch (this.createInterpolant) {
6196
- case this.InterpolantFactoryMethodDiscrete: return Ue;
6197
- case this.InterpolantFactoryMethodLinear: return We;
6198
- case this.InterpolantFactoryMethodSmooth: return Ge;
6199
- case this.InterpolantFactoryMethodBezier: return Ke;
6268
+ case this.InterpolantFactoryMethodDiscrete: return Ve;
6269
+ case this.InterpolantFactoryMethodLinear: return He;
6270
+ case this.InterpolantFactoryMethodSmooth: return Ue;
6271
+ case this.InterpolantFactoryMethodBezier: return We;
6200
6272
  }
6201
6273
  }
6202
6274
  getValueSize() {
@@ -6213,6 +6285,7 @@ var js = class {
6213
6285
  if (e !== 1) {
6214
6286
  let t = this.times;
6215
6287
  for (let n = 0, r = t.length; n !== r; ++n) t[n] *= e;
6288
+ Os(this.settings) && (Vs(this.settings.inTangents, e), Vs(this.settings.outTangents, e));
6216
6289
  }
6217
6290
  return this;
6218
6291
  }
@@ -6229,33 +6302,33 @@ var js = class {
6229
6302
  }
6230
6303
  validate() {
6231
6304
  let e = !0, t = this.getValueSize();
6232
- t - Math.floor(t) !== 0 && (A("KeyframeTrack: Invalid value size in track.", this), e = !1);
6305
+ t - Math.floor(t) !== 0 && (M("KeyframeTrack: Invalid value size in track.", this), e = !1);
6233
6306
  let n = this.times, r = this.values, i = n.length;
6234
- i === 0 && (A("KeyframeTrack: Track is empty.", this), e = !1);
6307
+ i === 0 && (M("KeyframeTrack: Track is empty.", this), e = !1);
6235
6308
  let a = null;
6236
6309
  for (let t = 0; t !== i; t++) {
6237
6310
  let r = n[t];
6238
6311
  if (typeof r == "number" && isNaN(r)) {
6239
- A("KeyframeTrack: Time is not a valid number.", this, t, r), e = !1;
6312
+ M("KeyframeTrack: Time is not a valid number.", this, t, r), e = !1;
6240
6313
  break;
6241
6314
  }
6242
6315
  if (a !== null && a > r) {
6243
- A("KeyframeTrack: Out of order keys.", this, t, r, a), e = !1;
6316
+ M("KeyframeTrack: Out of order keys.", this, t, r, a), e = !1;
6244
6317
  break;
6245
6318
  }
6246
6319
  a = r;
6247
6320
  }
6248
- if (r !== void 0 && _t(r)) for (let t = 0, n = r.length; t !== n; ++t) {
6321
+ if (r !== void 0 && gt(r)) for (let t = 0, n = r.length; t !== n; ++t) {
6249
6322
  let n = r[t];
6250
6323
  if (isNaN(n)) {
6251
- A("KeyframeTrack: Value is not a valid number.", this, t, n), e = !1;
6324
+ M("KeyframeTrack: Value is not a valid number.", this, t, n), e = !1;
6252
6325
  break;
6253
6326
  }
6254
6327
  }
6255
6328
  return e;
6256
6329
  }
6257
6330
  optimize() {
6258
- let e = this.times.slice(), t = this.values.slice(), n = this.getValueSize(), r = this.getInterpolation() === Ge, i = e.length - 1, a = 1;
6331
+ let e = this.times.slice(), t = this.values.slice(), n = this.getValueSize(), r = this.getInterpolation() === Ue, i = e.length - 1, a = 1;
6259
6332
  for (let o = 1; o < i; ++o) {
6260
6333
  let i = !1, s = e[o];
6261
6334
  if (s !== e[o + 1] && (o !== 1 || s !== e[0])) if (r) i = !0;
@@ -6287,29 +6360,35 @@ var js = class {
6287
6360
  }
6288
6361
  clone() {
6289
6362
  let e = this.times.slice(), t = this.values.slice(), n = this.constructor, r = new n(this.name, e, t);
6290
- return r.createInterpolant = this.createInterpolant, r;
6363
+ return r.createInterpolant = this.createInterpolant, Os(this.settings) && (r.settings = {
6364
+ inTangents: this.settings.inTangents.slice(),
6365
+ outTangents: this.settings.outTangents.slice()
6366
+ }), r;
6291
6367
  }
6292
6368
  };
6293
- Is.prototype.ValueTypeName = "", Is.prototype.TimeBufferType = Float32Array, Is.prototype.ValueBufferType = Float32Array, Is.prototype.DefaultInterpolation = We;
6294
- var Ls = class extends Is {
6369
+ function Vs(e, t) {
6370
+ for (let n = 0, r = e.length; n !== r; n += 2) e[n] *= t;
6371
+ }
6372
+ Bs.prototype.ValueTypeName = "", Bs.prototype.TimeBufferType = Float32Array, Bs.prototype.ValueBufferType = Float32Array, Bs.prototype.DefaultInterpolation = He;
6373
+ var Hs = class extends Bs {
6295
6374
  constructor(e, t, n) {
6296
6375
  super(e, t, n);
6297
6376
  }
6298
6377
  };
6299
- Ls.prototype.ValueTypeName = "bool", Ls.prototype.ValueBufferType = Array, Ls.prototype.DefaultInterpolation = Ue, Ls.prototype.InterpolantFactoryMethodLinear = void 0, Ls.prototype.InterpolantFactoryMethodSmooth = void 0;
6300
- var Rs = class extends Is {
6378
+ Hs.prototype.ValueTypeName = "bool", Hs.prototype.ValueBufferType = Array, Hs.prototype.DefaultInterpolation = Ve, Hs.prototype.InterpolantFactoryMethodLinear = void 0, Hs.prototype.InterpolantFactoryMethodSmooth = void 0;
6379
+ var Us = class extends Bs {
6301
6380
  constructor(e, t, n, r) {
6302
6381
  super(e, t, n, r);
6303
6382
  }
6304
6383
  };
6305
- Rs.prototype.ValueTypeName = "color";
6306
- var zs = class extends Is {
6384
+ Us.prototype.ValueTypeName = "color";
6385
+ var Ws = class extends Bs {
6307
6386
  constructor(e, t, n, r) {
6308
6387
  super(e, t, n, r);
6309
6388
  }
6310
6389
  };
6311
- zs.prototype.ValueTypeName = "number";
6312
- var Bs = class extends js {
6390
+ Ws.prototype.ValueTypeName = "number";
6391
+ var Gs = class extends Ms {
6313
6392
  constructor(e, t, n, r) {
6314
6393
  super(e, t, n, r);
6315
6394
  }
@@ -6318,34 +6397,34 @@ var Bs = class extends js {
6318
6397
  for (let e = c + o; c !== e; c += 4) $t.slerpFlat(i, 0, a, c - o, a, c, s);
6319
6398
  return i;
6320
6399
  }
6321
- }, Vs = class extends Is {
6400
+ }, Ks = class extends Bs {
6322
6401
  constructor(e, t, n, r) {
6323
6402
  super(e, t, n, r);
6324
6403
  }
6325
6404
  InterpolantFactoryMethodLinear(e) {
6326
- return new Bs(this.times, this.values, this.getValueSize(), e);
6405
+ return new Gs(this.times, this.values, this.getValueSize(), e);
6327
6406
  }
6328
6407
  };
6329
- Vs.prototype.ValueTypeName = "quaternion", Vs.prototype.InterpolantFactoryMethodSmooth = void 0;
6330
- var Hs = class extends Is {
6408
+ Ks.prototype.ValueTypeName = "quaternion", Ks.prototype.InterpolantFactoryMethodSmooth = void 0;
6409
+ var qs = class extends Bs {
6331
6410
  constructor(e, t, n) {
6332
6411
  super(e, t, n);
6333
6412
  }
6334
6413
  };
6335
- Hs.prototype.ValueTypeName = "string", Hs.prototype.ValueBufferType = Array, Hs.prototype.DefaultInterpolation = Ue, Hs.prototype.InterpolantFactoryMethodLinear = void 0, Hs.prototype.InterpolantFactoryMethodSmooth = void 0;
6336
- var Us = class extends Is {
6414
+ qs.prototype.ValueTypeName = "string", qs.prototype.ValueBufferType = Array, qs.prototype.DefaultInterpolation = Ve, qs.prototype.InterpolantFactoryMethodLinear = void 0, qs.prototype.InterpolantFactoryMethodSmooth = void 0;
6415
+ var Js = class extends Bs {
6337
6416
  constructor(e, t, n, r) {
6338
6417
  super(e, t, n, r);
6339
6418
  }
6340
6419
  };
6341
- Us.prototype.ValueTypeName = "vector";
6342
- var Ws = class {
6343
- constructor(e = "", t = -1, n = [], r = Xe) {
6420
+ Js.prototype.ValueTypeName = "vector";
6421
+ var Ys = class {
6422
+ constructor(e = "", t = -1, n = [], r = Je) {
6344
6423
  this.name = e, this.tracks = n, this.duration = t, this.blendMode = r, this.uuid = Nt(), this.userData = {}, this.duration < 0 && this.resetDuration();
6345
6424
  }
6346
6425
  static parse(e) {
6347
6426
  let t = [], n = e.tracks, r = 1 / (e.fps || 1);
6348
- for (let e = 0, i = n.length; e !== i; ++e) t.push(Ks(n[e]).scale(r));
6427
+ for (let e = 0, i = n.length; e !== i; ++e) t.push(Zs(n[e]).scale(r));
6349
6428
  let i = new this(e.name, e.duration, t, e.blendMode);
6350
6429
  return i.uuid = e.uuid, i.userData = JSON.parse(e.userData || "{}"), i;
6351
6430
  }
@@ -6358,7 +6437,7 @@ var Ws = class {
6358
6437
  blendMode: e.blendMode,
6359
6438
  userData: JSON.stringify(e.userData)
6360
6439
  };
6361
- for (let e = 0, r = n.length; e !== r; ++e) t.push(Is.toJSON(n[e]));
6440
+ for (let e = 0, r = n.length; e !== r; ++e) t.push(Bs.toJSON(n[e]));
6362
6441
  return r;
6363
6442
  }
6364
6443
  static CreateFromMorphTargetSequence(e, t, n, r) {
@@ -6366,8 +6445,8 @@ var Ws = class {
6366
6445
  for (let e = 0; e < i; e++) {
6367
6446
  let o = [], s = [];
6368
6447
  o.push((e + i - 1) % i, e, (e + 1) % i), s.push(0, 1, 0);
6369
- let c = Os(o);
6370
- o = ks(o, 1, c), s = ks(s, 1, c), !r && o[0] === 0 && (o.push(i), s.push(s[0])), a.push(new zs(".morphTargetInfluences[" + t[e].name + "]", o, s).scale(1 / n));
6448
+ let c = ks(o);
6449
+ o = As(o, 1, c), s = As(s, 1, c), !r && o[0] === 0 && (o.push(i), s.push(s[0])), a.push(new Ws(".morphTargetInfluences[" + t[e].name + "]", o, s).scale(1 / n));
6371
6450
  }
6372
6451
  return new this(e, -1, a);
6373
6452
  }
@@ -6424,42 +6503,46 @@ var Ws = class {
6424
6503
  return this.constructor.toJSON(this);
6425
6504
  }
6426
6505
  };
6427
- function Gs(e) {
6506
+ function Xs(e) {
6428
6507
  switch (e.toLowerCase()) {
6429
6508
  case "scalar":
6430
6509
  case "double":
6431
6510
  case "float":
6432
6511
  case "number":
6433
- case "integer": return zs;
6512
+ case "integer": return Ws;
6434
6513
  case "vector":
6435
6514
  case "vector2":
6436
6515
  case "vector3":
6437
- case "vector4": return Us;
6438
- case "color": return Rs;
6439
- case "quaternion": return Vs;
6516
+ case "vector4": return Js;
6517
+ case "color": return Us;
6518
+ case "quaternion": return Ks;
6440
6519
  case "bool":
6441
- case "boolean": return Ls;
6442
- case "string": return Hs;
6520
+ case "boolean": return Hs;
6521
+ case "string": return qs;
6443
6522
  }
6444
6523
  throw Error("THREE.KeyframeTrack: Unsupported typeName: " + e);
6445
6524
  }
6446
- function Ks(e) {
6525
+ function Zs(e) {
6447
6526
  if (e.type === void 0) throw Error("THREE.KeyframeTrack: track type undefined, can not parse");
6448
- let t = Gs(e.type);
6527
+ let t = Xs(e.type);
6449
6528
  if (e.times === void 0) {
6450
6529
  let t = [], n = [];
6451
- As(e.keys, t, n, "value"), e.times = t, e.values = n;
6530
+ js(e.keys, t, n, "value"), e.times = t, e.values = n;
6452
6531
  }
6453
- return t.parse === void 0 ? new t(e.name, e.times, e.values, e.interpolation) : t.parse(e);
6532
+ let n;
6533
+ return n = t.parse === void 0 ? new t(e.name, e.times, e.values, e.interpolation) : t.parse(e), Os(e.settings) && (n.settings = {
6534
+ inTangents: Ds(e.settings.inTangents, Float32Array),
6535
+ outTangents: Ds(e.settings.outTangents, Float32Array)
6536
+ }), n;
6454
6537
  }
6455
- var qs = {
6538
+ var Qs = {
6456
6539
  enabled: !1,
6457
6540
  files: {},
6458
6541
  add: function(e, t) {
6459
- this.enabled !== !1 && (Js(e) || (this.files[e] = t));
6542
+ this.enabled !== !1 && ($s(e) || (this.files[e] = t));
6460
6543
  },
6461
6544
  get: function(e) {
6462
- if (this.enabled !== !1 && !Js(e)) return this.files[e];
6545
+ if (this.enabled !== !1 && !$s(e)) return this.files[e];
6463
6546
  },
6464
6547
  remove: function(e) {
6465
6548
  delete this.files[e];
@@ -6468,7 +6551,7 @@ var qs = {
6468
6551
  this.files = {};
6469
6552
  }
6470
6553
  };
6471
- function Js(e) {
6554
+ function $s(e) {
6472
6555
  try {
6473
6556
  let t = e.slice(e.indexOf(":") + 1);
6474
6557
  return new URL(t).protocol === "blob:";
@@ -6476,7 +6559,7 @@ function Js(e) {
6476
6559
  return !1;
6477
6560
  }
6478
6561
  }
6479
- var Ys = class {
6562
+ var ec = class {
6480
6563
  constructor(e, t, n) {
6481
6564
  let r = this, i = !1, a = 0, o = 0, s, c = [];
6482
6565
  this.onStart = void 0, this.onLoad = e, this.onProgress = t, this.onError = n, this._abortController = null, this.itemStart = function(e) {
@@ -6507,9 +6590,9 @@ var Ys = class {
6507
6590
  get abortController() {
6508
6591
  return this._abortController ||= new AbortController(), this._abortController;
6509
6592
  }
6510
- }, Xs = /* @__PURE__ */ new Ys(), Zs = class {
6593
+ }, tc = /* @__PURE__ */ new ec(), nc = class {
6511
6594
  constructor(e) {
6512
- this.manager = e === void 0 ? Xs : e, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {}, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
6595
+ this.manager = e === void 0 ? tc : e, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {}, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
6513
6596
  }
6514
6597
  load() {}
6515
6598
  loadAsync(e, t) {
@@ -6538,33 +6621,33 @@ var Ys = class {
6538
6621
  return this;
6539
6622
  }
6540
6623
  };
6541
- Zs.DEFAULT_MATERIAL_NAME = "__DEFAULT";
6542
- var Qs = {}, $s = class extends Error {
6624
+ nc.DEFAULT_MATERIAL_NAME = "__DEFAULT";
6625
+ var rc = {}, ic = class extends Error {
6543
6626
  constructor(e, t) {
6544
6627
  super(e), this.response = t;
6545
6628
  }
6546
- }, ec = class extends Zs {
6629
+ }, ac = class extends nc {
6547
6630
  constructor(e) {
6548
6631
  super(e), this.mimeType = "", this.responseType = "", this._abortController = new AbortController();
6549
6632
  }
6550
6633
  load(e, t, n, r) {
6551
6634
  e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
6552
- let i = qs.get(`file:${e}`);
6635
+ let i = Qs.get(`file:${e}`);
6553
6636
  if (i !== void 0) {
6554
6637
  this.manager.itemStart(e), setTimeout(() => {
6555
6638
  t && t(i), this.manager.itemEnd(e);
6556
6639
  }, 0);
6557
6640
  return;
6558
6641
  }
6559
- if (Qs[e] !== void 0) {
6560
- Qs[e].push({
6642
+ if (rc[e] !== void 0) {
6643
+ rc[e].push({
6561
6644
  onLoad: t,
6562
6645
  onProgress: n,
6563
6646
  onError: r
6564
6647
  });
6565
6648
  return;
6566
6649
  }
6567
- Qs[e] = [], Qs[e].push({
6650
+ rc[e] = [], rc[e].push({
6568
6651
  onLoad: t,
6569
6652
  onProgress: n,
6570
6653
  onError: r
@@ -6576,8 +6659,8 @@ var Qs = {}, $s = class extends Error {
6576
6659
  }), o = this.mimeType, s = this.responseType;
6577
6660
  fetch(a).then((t) => {
6578
6661
  if (t.status === 200 || t.status === 0) {
6579
- if (t.status === 0 && k("FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || t.body === void 0 || t.body.getReader === void 0) return t;
6580
- let n = Qs[e], r = t.body.getReader(), i = t.headers.get("X-File-Size") || t.headers.get("Content-Length"), a = i ? parseInt(i) : 0, o = a !== 0, s = 0, c = new ReadableStream({ start(e) {
6662
+ if (t.status === 0 && j("FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || t.body === void 0 || t.body.getReader === void 0) return t;
6663
+ let n = rc[e], r = t.body.getReader(), i = t.headers.get("X-File-Size") || t.headers.get("Content-Length"), a = i ? parseInt(i) : 0, o = a !== 0, s = 0, c = new ReadableStream({ start(e) {
6581
6664
  t();
6582
6665
  function t() {
6583
6666
  r.read().then(({ done: r, value: i }) => {
@@ -6601,7 +6684,7 @@ var Qs = {}, $s = class extends Error {
6601
6684
  }
6602
6685
  } });
6603
6686
  return new Response(c);
6604
- } else throw new $s(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`, t);
6687
+ } else throw new ic(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`, t);
6605
6688
  }).then((e) => {
6606
6689
  switch (s) {
6607
6690
  case "arraybuffer": return e.arrayBuffer();
@@ -6616,17 +6699,17 @@ var Qs = {}, $s = class extends Error {
6616
6699
  }
6617
6700
  }
6618
6701
  }).then((t) => {
6619
- qs.add(`file:${e}`, t);
6620
- let n = Qs[e];
6621
- delete Qs[e];
6702
+ Qs.add(`file:${e}`, t);
6703
+ let n = rc[e];
6704
+ delete rc[e];
6622
6705
  for (let e = 0, r = n.length; e < r; e++) {
6623
6706
  let r = n[e];
6624
6707
  r.onLoad && r.onLoad(t);
6625
6708
  }
6626
6709
  }).catch((t) => {
6627
- let n = Qs[e];
6710
+ let n = rc[e];
6628
6711
  if (n === void 0) throw this.manager.itemError(e), t;
6629
- delete Qs[e];
6712
+ delete rc[e];
6630
6713
  for (let e = 0, r = n.length; e < r; e++) {
6631
6714
  let r = n[e];
6632
6715
  r.onError && r.onError(t);
@@ -6645,90 +6728,87 @@ var Qs = {}, $s = class extends Error {
6645
6728
  abort() {
6646
6729
  return this._abortController.abort(), this._abortController = new AbortController(), this;
6647
6730
  }
6648
- }, tc = /* @__PURE__ */ new WeakMap(), nc = class extends Zs {
6731
+ }, oc = /* @__PURE__ */ new WeakMap(), sc = class extends nc {
6649
6732
  constructor(e) {
6650
6733
  super(e);
6651
6734
  }
6652
6735
  load(e, t, n, r) {
6653
6736
  this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
6654
- let i = this, a = qs.get(`image:${e}`);
6737
+ let i = this, a = Qs.get(`image:${e}`);
6655
6738
  if (a !== void 0) {
6656
6739
  if (a.complete === !0) i.manager.itemStart(e), setTimeout(function() {
6657
6740
  t && t(a), i.manager.itemEnd(e);
6658
6741
  }, 0);
6659
6742
  else {
6660
- let e = tc.get(a);
6661
- e === void 0 && (e = [], tc.set(a, e)), e.push({
6743
+ let e = oc.get(a);
6744
+ e === void 0 && (e = [], oc.set(a, e)), e.push({
6662
6745
  onLoad: t,
6663
6746
  onError: r
6664
6747
  });
6665
6748
  }
6666
6749
  return a;
6667
6750
  }
6668
- let o = vt("img");
6751
+ let o = _t("img");
6669
6752
  function s() {
6670
6753
  l(), t && t(this);
6671
- let n = tc.get(this) || [];
6754
+ let n = oc.get(this) || [];
6672
6755
  for (let e = 0; e < n.length; e++) {
6673
6756
  let t = n[e];
6674
6757
  t.onLoad && t.onLoad(this);
6675
6758
  }
6676
- tc.delete(this), i.manager.itemEnd(e);
6759
+ oc.delete(this), i.manager.itemEnd(e);
6677
6760
  }
6678
6761
  function c(t) {
6679
- l(), r && r(t), qs.remove(`image:${e}`);
6680
- let n = tc.get(this) || [];
6762
+ l(), r && r(t), Qs.remove(`image:${e}`);
6763
+ let n = oc.get(this) || [];
6681
6764
  for (let e = 0; e < n.length; e++) {
6682
6765
  let r = n[e];
6683
6766
  r.onError && r.onError(t);
6684
6767
  }
6685
- tc.delete(this), i.manager.itemError(e), i.manager.itemEnd(e);
6768
+ oc.delete(this), i.manager.itemError(e), i.manager.itemEnd(e);
6686
6769
  }
6687
6770
  function l() {
6688
6771
  o.removeEventListener("load", s, !1), o.removeEventListener("error", c, !1);
6689
6772
  }
6690
- return o.addEventListener("load", s, !1), o.addEventListener("error", c, !1), e.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (o.crossOrigin = this.crossOrigin), qs.add(`image:${e}`, o), i.manager.itemStart(e), o.src = e, o;
6773
+ return o.addEventListener("load", s, !1), o.addEventListener("error", c, !1), e.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (o.crossOrigin = this.crossOrigin), Qs.add(`image:${e}`, o), i.manager.itemStart(e), o.src = e, o;
6691
6774
  }
6692
- }, rc = class extends Zs {
6775
+ }, cc = class extends nc {
6693
6776
  constructor(e) {
6694
6777
  super(e);
6695
6778
  }
6696
6779
  load(e, t, n, r) {
6697
- let i = this, a = new Ii(), o = new ec(this.manager);
6780
+ let i = this, a = new Bi(), o = new ac(this.manager);
6698
6781
  return o.setResponseType("arraybuffer"), o.setRequestHeader(this.requestHeader), o.setPath(this.path), o.setWithCredentials(i.withCredentials), o.load(e, function(e) {
6699
6782
  let n;
6700
6783
  try {
6701
6784
  n = i.parse(e);
6702
6785
  } catch (e) {
6703
- r === void 0 ? A(e) : r(e);
6786
+ r === void 0 ? M(e) : r(e);
6704
6787
  return;
6705
6788
  }
6706
6789
  i._applyTexData(a, n), t && t(a, n);
6707
6790
  }, n, r), a;
6708
6791
  }
6709
6792
  createDataTexture(e) {
6710
- let t = new Ii();
6793
+ let t = new Bi();
6711
6794
  return this._applyTexData(t, this.parse(e)), t;
6712
6795
  }
6713
6796
  _applyTexData(e, t) {
6714
6797
  t.image === void 0 ? t.data !== void 0 && (e.image.width = t.width, e.image.height = t.height, e.image.data = t.data) : e.image = t.image, e.wrapS = t.wrapS === void 0 ? r : t.wrapS, e.wrapT = t.wrapT === void 0 ? r : t.wrapT, e.magFilter = t.magFilter === void 0 ? c : t.magFilter, e.minFilter = t.minFilter === void 0 ? c : t.minFilter, e.anisotropy = t.anisotropy === void 0 ? 1 : t.anisotropy, t.colorSpace !== void 0 && (e.colorSpace = t.colorSpace), t.flipY !== void 0 && (e.flipY = t.flipY), t.format !== void 0 && (e.format = t.format), t.type !== void 0 && (e.type = t.type), t.mipmaps !== void 0 && (e.mipmaps = t.mipmaps, e.minFilter = u), t.mipmapCount === 1 && (e.minFilter = c), t.generateMipmaps !== void 0 && (e.generateMipmaps = t.generateMipmaps), e.needsUpdate = !0;
6715
6798
  }
6716
- }, ic = class extends Zs {
6799
+ }, lc = class extends nc {
6717
6800
  constructor(e) {
6718
6801
  super(e);
6719
6802
  }
6720
6803
  load(e, t, n, r) {
6721
- let i = new L(), a = new nc(this.manager);
6804
+ let i = new z(), a = new sc(this.manager);
6722
6805
  return a.setCrossOrigin(this.crossOrigin), a.setPath(this.path), a.load(e, function(e) {
6723
6806
  i.image = e, i.needsUpdate = !0, t !== void 0 && t(i);
6724
6807
  }, n, r), i;
6725
6808
  }
6726
- }, ac = class extends B {
6809
+ }, uc = class extends V {
6727
6810
  constructor(e, t = 1) {
6728
- super(), this.isLight = !0, this.type = "Light", this.color = new V(e), this.intensity = t;
6729
- }
6730
- dispose() {
6731
- this.dispatchEvent({ type: "dispose" });
6811
+ super(), this.isLight = !0, this.type = "Light", this.color = new H(e), this.intensity = t;
6732
6812
  }
6733
6813
  copy(e, t) {
6734
6814
  return super.copy(e, t), this.color.copy(e.color), this.intensity = e.intensity, this;
@@ -6737,9 +6817,9 @@ var Qs = {}, $s = class extends Error {
6737
6817
  let t = super.toJSON(e);
6738
6818
  return t.object.color = this.color.getHex(), t.object.intensity = this.intensity, t;
6739
6819
  }
6740
- }, oc = class extends ac {
6820
+ }, dc = class extends uc {
6741
6821
  constructor(e, t, n) {
6742
- super(e, n), this.isHemisphereLight = !0, this.type = "HemisphereLight", this.position.copy(B.DEFAULT_UP), this.updateMatrix(), this.groundColor = new V(t);
6822
+ super(e, n), this.isHemisphereLight = !0, this.type = "HemisphereLight", this.position.copy(V.DEFAULT_UP), this.updateMatrix(), this.groundColor = new H(t);
6743
6823
  }
6744
6824
  copy(e, t) {
6745
6825
  return super.copy(e, t), this.groundColor.copy(e.groundColor), this;
@@ -6748,19 +6828,27 @@ var Qs = {}, $s = class extends Error {
6748
6828
  let t = super.toJSON(e);
6749
6829
  return t.object.groundColor = this.groundColor.getHex(), t;
6750
6830
  }
6751
- }, sc = /* @__PURE__ */ new R(), cc = /* @__PURE__ */ new I(), lc = /* @__PURE__ */ new I(), uc = class {
6831
+ }, fc = /* @__PURE__ */ new B(), pc = /* @__PURE__ */ new R(), mc = /* @__PURE__ */ new R(), hc = class {
6752
6832
  constructor(e) {
6753
- this.camera = e, this.intensity = 1, this.bias = 0, this.biasNode = null, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new F(512, 512), this.mapType = f, this.map = null, this.mapPass = null, this.matrix = new R(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new na(), this._frameExtents = new F(1, 1), this._viewportCount = 1, this._viewports = [new vn(0, 0, 1, 1)];
6833
+ this.camera = e, this.intensity = 1, this.bias = 0, this.biasNode = null, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new L(512, 512), this.mapType = f, this.map = null, this.mapPass = null, this.matrix = new B(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new na(), this._frameExtents = new L(1, 1), this._viewportCount = 1, this._viewports = [new yn(0, 0, 1, 1)];
6754
6834
  }
6755
6835
  getViewportCount() {
6756
6836
  return this._viewportCount;
6757
6837
  }
6838
+ getCamera() {
6839
+ return this.camera;
6840
+ }
6758
6841
  getFrustum() {
6759
6842
  return this._frustum;
6760
6843
  }
6761
6844
  updateMatrices(e) {
6762
- let t = this.camera, n = this.matrix;
6763
- cc.setFromMatrixPosition(e.matrixWorld), t.position.copy(cc), lc.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(lc), t.updateMatrixWorld(), sc.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(sc, t.coordinateSystem, t.reversedDepth), t.coordinateSystem === 2001 || t.reversedDepth ? n.set(.5, 0, 0, .5, 0, .5, 0, .5, 0, 0, 1, 0, 0, 0, 0, 1) : n.set(.5, 0, 0, .5, 0, .5, 0, .5, 0, 0, .5, .5, 0, 0, 0, 1), n.multiply(sc);
6845
+ let t = this.camera;
6846
+ pc.setFromMatrixPosition(e.matrixWorld), t.position.copy(pc), mc.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(mc), t.updateMatrixWorld(), this._updateMatrix(t, this.matrix, this._frustum);
6847
+ }
6848
+ _updateMatrix(e, t, n, r) {
6849
+ fc.multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse), n.setFromProjectionMatrix(fc, e.coordinateSystem, e.reversedDepth);
6850
+ let i = this._frameExtents, a = r ? r.z / i.x : 1, o = r ? r.w / i.y : 1, s = r ? r.x / i.x : 0, c = r ? r.y / i.y : 0;
6851
+ e.coordinateSystem === 2001 || e.reversedDepth ? t.set(.5 * a, 0, 0, .5 * a + s, 0, .5 * o, 0, .5 * o + c, 0, 0, 1, 0, 0, 0, 0, 1) : t.set(.5 * a, 0, 0, .5 * a + s, 0, .5 * o, 0, .5 * o + c, 0, 0, .5, .5, 0, 0, 0, 1), t.multiply(fc);
6764
6852
  }
6765
6853
  getViewport(e) {
6766
6854
  return this._viewports[e];
@@ -6779,11 +6867,11 @@ var Qs = {}, $s = class extends Error {
6779
6867
  }
6780
6868
  toJSON() {
6781
6869
  let e = {};
6782
- return this.intensity !== 1 && (e.intensity = this.intensity), this.bias !== 0 && (e.bias = this.bias), this.normalBias !== 0 && (e.normalBias = this.normalBias), this.radius !== 1 && (e.radius = this.radius), (this.mapSize.x !== 512 || this.mapSize.y !== 512) && (e.mapSize = this.mapSize.toArray()), e.camera = this.camera.toJSON(!1).object, delete e.camera.matrix, e;
6870
+ return e.intensity = this.intensity, e.bias = this.bias, e.normalBias = this.normalBias, e.radius = this.radius, e.blurSamples = this.blurSamples, e.mapSize = this.mapSize.toArray(), e.camera = this.camera.toJSON(!1).object, delete e.camera.matrix, e;
6783
6871
  }
6784
- }, dc = /* @__PURE__ */ new I(), fc = /* @__PURE__ */ new $t(), pc = /* @__PURE__ */ new I(), mc = class extends B {
6872
+ }, gc = /* @__PURE__ */ new R(), _c = /* @__PURE__ */ new $t(), vc = /* @__PURE__ */ new R(), yc = class extends V {
6785
6873
  constructor() {
6786
- super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new R(), this.projectionMatrix = new R(), this.projectionMatrixInverse = new R(), this.coordinateSystem = ft, this._reversedDepth = !1;
6874
+ super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new B(), this.projectionMatrix = new B(), this.projectionMatrixInverse = new B(), this.coordinateSystem = ut, this._reversedDepth = !1;
6787
6875
  }
6788
6876
  get reversedDepth() {
6789
6877
  return this._reversedDepth;
@@ -6795,15 +6883,15 @@ var Qs = {}, $s = class extends Error {
6795
6883
  return super.getWorldDirection(e).negate();
6796
6884
  }
6797
6885
  updateMatrixWorld(e) {
6798
- super.updateMatrixWorld(e), this.matrixWorld.decompose(dc, fc, pc), pc.x === 1 && pc.y === 1 && pc.z === 1 ? this.matrixWorldInverse.copy(this.matrixWorld).invert() : this.matrixWorldInverse.compose(dc, fc, pc.set(1, 1, 1)).invert();
6886
+ super.updateMatrixWorld(e), this.matrixWorld.decompose(gc, _c, vc), vc.x === 1 && vc.y === 1 && vc.z === 1 ? this.matrixWorldInverse.copy(this.matrixWorld).invert() : this.matrixWorldInverse.compose(gc, _c, vc.set(1, 1, 1)).invert();
6799
6887
  }
6800
6888
  updateWorldMatrix(e, t, n = !1) {
6801
- super.updateWorldMatrix(e, t, n), this.matrixWorld.decompose(dc, fc, pc), pc.x === 1 && pc.y === 1 && pc.z === 1 ? this.matrixWorldInverse.copy(this.matrixWorld).invert() : this.matrixWorldInverse.compose(dc, fc, pc.set(1, 1, 1)).invert();
6889
+ super.updateWorldMatrix(e, t, n), this.matrixWorld.decompose(gc, _c, vc), vc.x === 1 && vc.y === 1 && vc.z === 1 ? this.matrixWorldInverse.copy(this.matrixWorld).invert() : this.matrixWorldInverse.compose(gc, _c, vc.set(1, 1, 1)).invert();
6802
6890
  }
6803
6891
  clone() {
6804
6892
  return new this.constructor().copy(this);
6805
6893
  }
6806
- }, hc = /* @__PURE__ */ new I(), gc = /* @__PURE__ */ new F(), _c = /* @__PURE__ */ new F(), vc = class extends mc {
6894
+ }, bc = /* @__PURE__ */ new R(), xc = /* @__PURE__ */ new L(), Sc = /* @__PURE__ */ new L(), Cc = class extends yc {
6807
6895
  constructor(e = 50, t = 1, n = .1, r = 2e3) {
6808
6896
  super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = e, this.zoom = 1, this.near = n, this.far = r, this.focus = 10, this.aspect = t, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
6809
6897
  }
@@ -6828,10 +6916,10 @@ var Qs = {}, $s = class extends Error {
6828
6916
  return this.filmGauge / Math.max(this.aspect, 1);
6829
6917
  }
6830
6918
  getViewBounds(e, t, n) {
6831
- hc.set(-1, -1, .5).applyMatrix4(this.projectionMatrixInverse), t.set(hc.x, hc.y).multiplyScalar(-e / hc.z), hc.set(1, 1, .5).applyMatrix4(this.projectionMatrixInverse), n.set(hc.x, hc.y).multiplyScalar(-e / hc.z);
6919
+ bc.set(-1, -1, .5).applyMatrix4(this.projectionMatrixInverse), t.set(bc.x, bc.y).multiplyScalar(-e / bc.z), bc.set(1, 1, .5).applyMatrix4(this.projectionMatrixInverse), n.set(bc.x, bc.y).multiplyScalar(-e / bc.z);
6832
6920
  }
6833
6921
  getViewSize(e, t) {
6834
- return this.getViewBounds(e, gc, _c), t.subVectors(_c, gc);
6922
+ return this.getViewBounds(e, xc, Sc), t.subVectors(Sc, xc);
6835
6923
  }
6836
6924
  setViewOffset(e, t, n, r, i, a) {
6837
6925
  this.aspect = e / t, this.view === null && (this.view = {
@@ -6860,20 +6948,24 @@ var Qs = {}, $s = class extends Error {
6860
6948
  let t = super.toJSON(e);
6861
6949
  return t.object.fov = this.fov, t.object.zoom = this.zoom, t.object.near = this.near, t.object.far = this.far, t.object.focus = this.focus, t.object.aspect = this.aspect, this.view !== null && (t.object.view = Object.assign({}, this.view)), t.object.filmGauge = this.filmGauge, t.object.filmOffset = this.filmOffset, t;
6862
6950
  }
6863
- }, yc = class extends uc {
6951
+ }, wc = class extends hc {
6864
6952
  constructor() {
6865
- super(new vc(50, 1, .5, 500)), this.isSpotLightShadow = !0, this.focus = 1, this.aspect = 1;
6953
+ super(new Cc(50, 1, .5, 500)), this.isSpotLightShadow = !0, this.focus = 1, this.aspect = 1;
6866
6954
  }
6867
6955
  updateMatrices(e) {
6868
6956
  let t = this.camera, n = Mt * 2 * e.angle * this.focus, r = this.mapSize.width / this.mapSize.height * this.aspect, i = e.distance || t.far;
6869
6957
  (n !== t.fov || r !== t.aspect || i !== t.far) && (t.fov = n, t.aspect = r, t.far = i, t.updateProjectionMatrix()), super.updateMatrices(e);
6870
6958
  }
6871
6959
  copy(e) {
6872
- return super.copy(e), this.focus = e.focus, this;
6960
+ return super.copy(e), this.focus = e.focus, this.aspect = e.aspect, this;
6961
+ }
6962
+ toJSON() {
6963
+ let e = super.toJSON();
6964
+ return e.focus = this.focus, e.aspect = this.aspect, e;
6873
6965
  }
6874
- }, bc = class extends ac {
6966
+ }, Tc = class extends uc {
6875
6967
  constructor(e, t, n = 0, r = Math.PI / 3, i = 0, a = 2) {
6876
- super(e, t), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(B.DEFAULT_UP), this.updateMatrix(), this.target = new B(), this.distance = n, this.angle = r, this.penumbra = i, this.decay = a, this.map = null, this.shadow = new yc();
6968
+ super(e, t), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(V.DEFAULT_UP), this.updateMatrix(), this.target = new V(), this.distance = n, this.angle = r, this.penumbra = i, this.decay = a, this.map = null, this.shadow = new wc();
6877
6969
  }
6878
6970
  get power() {
6879
6971
  return this.intensity * Math.PI;
@@ -6891,13 +6983,13 @@ var Qs = {}, $s = class extends Error {
6891
6983
  let t = super.toJSON(e);
6892
6984
  return t.object.distance = this.distance, t.object.angle = this.angle, t.object.decay = this.decay, t.object.penumbra = this.penumbra, t.object.target = this.target.uuid, this.map && this.map.isTexture && (t.object.map = this.map.toJSON(e).uuid), t.object.shadow = this.shadow.toJSON(), t;
6893
6985
  }
6894
- }, xc = class extends uc {
6986
+ }, Ec = class extends hc {
6895
6987
  constructor() {
6896
- super(new vc(90, 1, .5, 500)), this.isPointLightShadow = !0;
6988
+ super(new Cc(90, 1, .5, 500)), this.isPointLightShadow = !0;
6897
6989
  }
6898
- }, Sc = class extends ac {
6990
+ }, Dc = class extends uc {
6899
6991
  constructor(e, t, n = 0, r = 2) {
6900
- super(e, t), this.isPointLight = !0, this.type = "PointLight", this.distance = n, this.decay = r, this.shadow = new xc();
6992
+ super(e, t), this.isPointLight = !0, this.type = "PointLight", this.distance = n, this.decay = r, this.shadow = new Ec();
6901
6993
  }
6902
6994
  get power() {
6903
6995
  return this.intensity * 4 * Math.PI;
@@ -6915,7 +7007,7 @@ var Qs = {}, $s = class extends Error {
6915
7007
  let t = super.toJSON(e);
6916
7008
  return t.object.distance = this.distance, t.object.decay = this.decay, t.object.shadow = this.shadow.toJSON(), t;
6917
7009
  }
6918
- }, Cc = class extends mc {
7010
+ }, Oc = class extends yc {
6919
7011
  constructor(e = -1, t = 1, n = 1, r = -1, i = .1, a = 2e3) {
6920
7012
  super(), this.isOrthographicCamera = !0, this.type = "OrthographicCamera", this.zoom = 1, this.view = null, this.left = e, this.right = t, this.top = n, this.bottom = r, this.near = i, this.far = a, this.updateProjectionMatrix();
6921
7013
  }
@@ -6948,13 +7040,13 @@ var Qs = {}, $s = class extends Error {
6948
7040
  let t = super.toJSON(e);
6949
7041
  return t.object.zoom = this.zoom, t.object.left = this.left, t.object.right = this.right, t.object.top = this.top, t.object.bottom = this.bottom, t.object.near = this.near, t.object.far = this.far, this.view !== null && (t.object.view = Object.assign({}, this.view)), t;
6950
7042
  }
6951
- }, wc = class extends uc {
7043
+ }, kc = class extends hc {
6952
7044
  constructor() {
6953
- super(new Cc(-5, 5, 5, -5, .5, 500)), this.isDirectionalLightShadow = !0;
7045
+ super(new Oc(-5, 5, 5, -5, .5, 500)), this.isDirectionalLightShadow = !0;
6954
7046
  }
6955
- }, Tc = class extends ac {
7047
+ }, Ac = class extends uc {
6956
7048
  constructor(e, t) {
6957
- super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(B.DEFAULT_UP), this.updateMatrix(), this.target = new B(), this.shadow = new wc();
7049
+ super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(V.DEFAULT_UP), this.updateMatrix(), this.target = new V(), this.shadow = new kc();
6958
7050
  }
6959
7051
  dispose() {
6960
7052
  super.dispose(), this.shadow.dispose();
@@ -6966,11 +7058,11 @@ var Qs = {}, $s = class extends Error {
6966
7058
  let t = super.toJSON(e);
6967
7059
  return t.object.shadow = this.shadow.toJSON(), t.object.target = this.target.uuid, t;
6968
7060
  }
6969
- }, Ec = class extends ac {
7061
+ }, jc = class extends uc {
6970
7062
  constructor(e, t) {
6971
7063
  super(e, t), this.isAmbientLight = !0, this.type = "AmbientLight";
6972
7064
  }
6973
- }, Dc = class extends ac {
7065
+ }, Mc = class extends uc {
6974
7066
  constructor(e, t, n = 10, r = 10) {
6975
7067
  super(e, t), this.isRectAreaLight = !0, this.type = "RectAreaLight", this.width = n, this.height = r;
6976
7068
  }
@@ -6987,10 +7079,10 @@ var Qs = {}, $s = class extends Error {
6987
7079
  let t = super.toJSON(e);
6988
7080
  return t.object.width = this.width, t.object.height = this.height, t;
6989
7081
  }
6990
- }, Oc = class {
7082
+ }, Nc = class {
6991
7083
  constructor() {
6992
7084
  this.isSphericalHarmonics3 = !0, this.coefficients = [];
6993
- for (let e = 0; e < 9; e++) this.coefficients.push(new I());
7085
+ for (let e = 0; e < 9; e++) this.coefficients.push(new R());
6994
7086
  }
6995
7087
  set(e) {
6996
7088
  for (let t = 0; t < 9; t++) this.coefficients[t].copy(e[t]);
@@ -7048,8 +7140,8 @@ var Qs = {}, $s = class extends Error {
7048
7140
  let n = e.x, r = e.y, i = e.z;
7049
7141
  t[0] = .282095, t[1] = .488603 * r, t[2] = .488603 * i, t[3] = .488603 * n, t[4] = 1.092548 * n * r, t[5] = 1.092548 * r * i, t[6] = .315392 * (3 * i * i - 1), t[7] = 1.092548 * n * i, t[8] = .546274 * (n * n - r * r);
7050
7142
  }
7051
- }, kc = class extends ac {
7052
- constructor(e = new Oc(), t = 1) {
7143
+ }, Pc = class extends uc {
7144
+ constructor(e = new Nc(), t = 1) {
7053
7145
  super(void 0, t), this.isLightProbe = !0, this.sh = e;
7054
7146
  }
7055
7147
  copy(e) {
@@ -7059,7 +7151,7 @@ var Qs = {}, $s = class extends Error {
7059
7151
  let t = super.toJSON(e);
7060
7152
  return t.object.sh = this.sh.toArray(), t;
7061
7153
  }
7062
- }, Ac = class {
7154
+ }, Fc = class {
7063
7155
  static extractUrlBase(e) {
7064
7156
  let t = e.lastIndexOf("/");
7065
7157
  return t === -1 ? "./" : e.slice(0, t + 1);
@@ -7067,20 +7159,20 @@ var Qs = {}, $s = class extends Error {
7067
7159
  static resolveURL(e, t) {
7068
7160
  return typeof e != "string" || e === "" ? "" : (/^https?:\/\//i.test(t) && /^\//.test(e) && (t = t.replace(/(^https?:\/\/[^\/]+).*/i, "$1")), /^(https?:)?\/\//i.test(e) || /^data:.*,.*$/i.test(e) || /^blob:.*$/i.test(e) ? e : t + e);
7069
7161
  }
7070
- }, jc = /* @__PURE__ */ new WeakMap(), Mc = class extends Zs {
7162
+ }, Ic = /* @__PURE__ */ new WeakMap(), Lc = class extends nc {
7071
7163
  constructor(e) {
7072
- super(e), this.isImageBitmapLoader = !0, typeof createImageBitmap > "u" && k("ImageBitmapLoader: createImageBitmap() not supported."), typeof fetch > "u" && k("ImageBitmapLoader: fetch() not supported."), this.options = { premultiplyAlpha: "none" }, this._abortController = new AbortController();
7164
+ super(e), this.isImageBitmapLoader = !0, typeof createImageBitmap > "u" && j("ImageBitmapLoader: createImageBitmap() not supported."), typeof fetch > "u" && j("ImageBitmapLoader: fetch() not supported."), this.options = { premultiplyAlpha: "none" }, this._abortController = new AbortController();
7073
7165
  }
7074
7166
  setOptions(e) {
7075
7167
  return this.options = e, this;
7076
7168
  }
7077
7169
  load(e, t, n, r) {
7078
7170
  e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
7079
- let i = this, a = qs.get(`image-bitmap:${e}`);
7171
+ let i = this, a = Qs.get(`image-bitmap:${e}`);
7080
7172
  if (a !== void 0) {
7081
7173
  if (i.manager.itemStart(e), a.then) {
7082
7174
  a.then((n) => {
7083
- jc.has(a) === !0 ? (r && r(jc.get(a)), i.manager.itemError(e), i.manager.itemEnd(e)) : (t && t(n), i.manager.itemEnd(e));
7175
+ Ic.has(a) === !0 ? (r && r(Ic.get(a)), i.manager.itemError(e), i.manager.itemEnd(e)) : (t && t(n), i.manager.itemEnd(e));
7084
7176
  });
7085
7177
  return;
7086
7178
  }
@@ -7094,31 +7186,31 @@ var Qs = {}, $s = class extends Error {
7094
7186
  let s = fetch(e, o).then(function(e) {
7095
7187
  return e.blob();
7096
7188
  }).then(function(e) {
7097
- return createImageBitmap(e, Object.assign(i.options, { colorSpaceConversion: "none" }));
7189
+ return createImageBitmap(e, Object.assign({}, i.options, { colorSpaceConversion: "none" }));
7098
7190
  }).then(function(n) {
7099
- qs.add(`image-bitmap:${e}`, n), t && t(n), i.manager.itemEnd(e);
7191
+ return Qs.add(`image-bitmap:${e}`, n), t && t(n), i.manager.itemEnd(e), n;
7100
7192
  }).catch(function(t) {
7101
- r && r(t), jc.set(s, t), qs.remove(`image-bitmap:${e}`), i.manager.itemError(e), i.manager.itemEnd(e);
7193
+ r && r(t), Ic.set(s, t), Qs.remove(`image-bitmap:${e}`), i.manager.itemError(e), i.manager.itemEnd(e);
7102
7194
  });
7103
- qs.add(`image-bitmap:${e}`, s), i.manager.itemStart(e);
7195
+ Qs.add(`image-bitmap:${e}`, s), i.manager.itemStart(e);
7104
7196
  }
7105
7197
  abort() {
7106
7198
  return this._abortController.abort(), this._abortController = new AbortController(), this;
7107
7199
  }
7108
- }, Nc = -90, Pc = 1, Fc = class extends B {
7200
+ }, Rc = -90, zc = 1, Bc = class extends V {
7109
7201
  constructor(e, t, n) {
7110
7202
  super(), this.type = "CubeCamera", this.renderTarget = n, this.coordinateSystem = null, this.activeMipmapLevel = 0;
7111
- let r = new vc(Nc, Pc, e, t);
7203
+ let r = new Cc(Rc, zc, e, t);
7112
7204
  r.layers = this.layers, this.add(r);
7113
- let i = new vc(Nc, Pc, e, t);
7205
+ let i = new Cc(Rc, zc, e, t);
7114
7206
  i.layers = this.layers, this.add(i);
7115
- let a = new vc(Nc, Pc, e, t);
7207
+ let a = new Cc(Rc, zc, e, t);
7116
7208
  a.layers = this.layers, this.add(a);
7117
- let o = new vc(Nc, Pc, e, t);
7209
+ let o = new Cc(Rc, zc, e, t);
7118
7210
  o.layers = this.layers, this.add(o);
7119
- let s = new vc(Nc, Pc, e, t);
7211
+ let s = new Cc(Rc, zc, e, t);
7120
7212
  s.layers = this.layers, this.add(s);
7121
- let c = new vc(Nc, Pc, e, t);
7213
+ let c = new Cc(Rc, zc, e, t);
7122
7214
  c.layers = this.layers, this.add(c);
7123
7215
  }
7124
7216
  updateCoordinateSystem() {
@@ -7140,16 +7232,16 @@ var Qs = {}, $s = class extends Error {
7140
7232
  let h = !1;
7141
7233
  h = e.isWebGLRenderer === !0 ? e.state.buffers.depth.getReversed() : e.reversedDepthBuffer, e.setRenderTarget(n, 0, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, i), e.setRenderTarget(n, 1, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, a), e.setRenderTarget(n, 2, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, o), e.setRenderTarget(n, 3, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, s), e.setRenderTarget(n, 4, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, c), n.texture.generateMipmaps = m, e.setRenderTarget(n, 5, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, l), e.setRenderTarget(u, d, f), e.xr.enabled = p, n.texture.needsPMREMUpdate = !0;
7142
7234
  }
7143
- }, Ic = class extends vc {
7235
+ }, Vc = class extends Cc {
7144
7236
  constructor(e = []) {
7145
7237
  super(), this.isArrayCamera = !0, this.isMultiViewCamera = !1, this.cameras = e;
7146
7238
  }
7147
- }, Lc = class {
7239
+ }, Hc = class {
7148
7240
  constructor() {
7149
7241
  this._previousTime = 0, this._currentTime = 0, this._startTime = performance.now(), this._delta = 0, this._elapsed = 0, this._timescale = 1, this._document = null, this._pageVisibilityHandler = null;
7150
7242
  }
7151
7243
  connect(e) {
7152
- this._document = e, e.hidden !== void 0 && (this._pageVisibilityHandler = Rc.bind(this), e.addEventListener("visibilitychange", this._pageVisibilityHandler, !1));
7244
+ this._document = e, e.hidden !== void 0 && (this._pageVisibilityHandler = Uc.bind(this), e.addEventListener("visibilitychange", this._pageVisibilityHandler, !1));
7153
7245
  }
7154
7246
  disconnect() {
7155
7247
  this._pageVisibilityHandler !== null && (this._document.removeEventListener("visibilitychange", this._pageVisibilityHandler), this._pageVisibilityHandler = null), this._document = null;
@@ -7176,15 +7268,15 @@ var Qs = {}, $s = class extends Error {
7176
7268
  return this._pageVisibilityHandler !== null && this._document.hidden === !0 ? this._delta = 0 : (this._previousTime = this._currentTime, this._currentTime = (e === void 0 ? performance.now() : e) - this._startTime, this._delta = (this._currentTime - this._previousTime) * this._timescale, this._elapsed += this._delta), this;
7177
7269
  }
7178
7270
  };
7179
- function Rc() {
7271
+ function Uc() {
7180
7272
  this._document.hidden === !1 && this.reset();
7181
7273
  }
7182
- var zc = "\\[\\]\\.:\\/", Bc = RegExp("[" + zc + "]", "g"), Vc = "[^" + zc + "]", Hc = "[^" + zc.replace("\\.", "") + "]", Uc = /* @__PURE__ */ "((?:WC+[\\/:])*)".replace("WC", Vc), Wc = /* @__PURE__ */ "(WCOD+)?".replace("WCOD", Hc), Gc = /* @__PURE__ */ "(?:\\.(WC+)(?:\\[(.+)\\])?)?".replace("WC", Vc), Kc = /* @__PURE__ */ "\\.(WC+)(?:\\[(.+)\\])?".replace("WC", Vc), qc = RegExp("^" + Uc + Wc + Gc + Kc + "$"), Jc = [
7274
+ var Wc = "\\[\\]\\.:\\/", Gc = RegExp("[" + Wc + "]", "g"), Kc = "[^" + Wc + "]", qc = "[^" + Wc.replace("\\.", "") + "]", Jc = /* @__PURE__ */ "((?:WC+[\\/:])*)".replace("WC", Kc), Yc = /* @__PURE__ */ "(WCOD+)?".replace("WCOD", qc), Xc = /* @__PURE__ */ "(?:\\.(WC+)(?:\\[(.+)\\])?)?".replace("WC", Kc), Zc = /* @__PURE__ */ "\\.(WC+)(?:\\[(.+)\\])?".replace("WC", Kc), Qc = RegExp("^" + Jc + Yc + Xc + Zc + "$"), $c = [
7183
7275
  "material",
7184
7276
  "materials",
7185
7277
  "bones",
7186
7278
  "map"
7187
- ], Yc = class {
7279
+ ], el = class {
7188
7280
  constructor(e, t, n) {
7189
7281
  let r = n || Z.parseTrackName(t);
7190
7282
  this._targetGroup = e, this._bindings = e.subscribe_(t, r);
@@ -7214,10 +7306,10 @@ var zc = "\\[\\]\\.:\\/", Bc = RegExp("[" + zc + "]", "g"), Vc = "[^" + zc + "]"
7214
7306
  return t && t.isAnimationObjectGroup ? new e.Composite(t, n, r) : new e(t, n, r);
7215
7307
  }
7216
7308
  static sanitizeNodeName(e) {
7217
- return e.replace(/\s/g, "_").replace(Bc, "");
7309
+ return e.replace(/\s/g, "_").replace(Gc, "");
7218
7310
  }
7219
7311
  static parseTrackName(e) {
7220
- let t = qc.exec(e);
7312
+ let t = Qc.exec(e);
7221
7313
  if (t === null) throw Error("THREE.PropertyBinding: Cannot parse trackName: " + e);
7222
7314
  let n = {
7223
7315
  nodeName: t[2],
@@ -7228,7 +7320,7 @@ var zc = "\\[\\]\\.:\\/", Bc = RegExp("[" + zc + "]", "g"), Vc = "[^" + zc + "]"
7228
7320
  }, r = n.nodeName && n.nodeName.lastIndexOf(".");
7229
7321
  if (r !== void 0 && r !== -1) {
7230
7322
  let e = n.nodeName.substring(r + 1);
7231
- Jc.indexOf(e) !== -1 && (n.nodeName = n.nodeName.substring(0, r), n.objectName = e);
7323
+ $c.indexOf(e) !== -1 && (n.nodeName = n.nodeName.substring(0, r), n.objectName = e);
7232
7324
  }
7233
7325
  if (n.propertyName === null || n.propertyName.length === 0) throw Error("THREE.PropertyBinding: can not parse propertyName from trackName: " + e);
7234
7326
  return n;
@@ -7318,7 +7410,7 @@ var zc = "\\[\\]\\.:\\/", Bc = RegExp("[" + zc + "]", "g"), Vc = "[^" + zc + "]"
7318
7410
  bind() {
7319
7411
  let t = this.node, n = this.parsedPath, r = n.objectName, i = n.propertyName, a = n.propertyIndex;
7320
7412
  if (t || (t = e.findNode(this.rootNode, n.nodeName), this.node = t), this.getValue = this._getValue_unavailable, this.setValue = this._setValue_unavailable, !t) {
7321
- k("PropertyBinding: No target node found for track: " + this.path + ".");
7413
+ j("PropertyBinding: No target node found for track: " + this.path + ".");
7322
7414
  return;
7323
7415
  }
7324
7416
  if (r) {
@@ -7326,18 +7418,18 @@ var zc = "\\[\\]\\.:\\/", Bc = RegExp("[" + zc + "]", "g"), Vc = "[^" + zc + "]"
7326
7418
  switch (r) {
7327
7419
  case "materials":
7328
7420
  if (!t.material) {
7329
- A("PropertyBinding: Can not bind to material as node does not have a material.", this);
7421
+ M("PropertyBinding: Can not bind to material as node does not have a material.", this);
7330
7422
  return;
7331
7423
  }
7332
7424
  if (!t.material.materials) {
7333
- A("PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.", this);
7425
+ M("PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.", this);
7334
7426
  return;
7335
7427
  }
7336
7428
  t = t.material.materials;
7337
7429
  break;
7338
7430
  case "bones":
7339
7431
  if (!t.skeleton) {
7340
- A("PropertyBinding: Can not bind to bones as node does not have a skeleton.", this);
7432
+ M("PropertyBinding: Can not bind to bones as node does not have a skeleton.", this);
7341
7433
  return;
7342
7434
  }
7343
7435
  t = t.skeleton.bones;
@@ -7352,25 +7444,25 @@ var zc = "\\[\\]\\.:\\/", Bc = RegExp("[" + zc + "]", "g"), Vc = "[^" + zc + "]"
7352
7444
  break;
7353
7445
  }
7354
7446
  if (!t.material) {
7355
- A("PropertyBinding: Can not bind to material as node does not have a material.", this);
7447
+ M("PropertyBinding: Can not bind to material as node does not have a material.", this);
7356
7448
  return;
7357
7449
  }
7358
7450
  if (!t.material.map) {
7359
- A("PropertyBinding: Can not bind to material.map as node.material does not have a map.", this);
7451
+ M("PropertyBinding: Can not bind to material.map as node.material does not have a map.", this);
7360
7452
  return;
7361
7453
  }
7362
7454
  t = t.material.map;
7363
7455
  break;
7364
7456
  default:
7365
7457
  if (t[r] === void 0) {
7366
- A("PropertyBinding: Can not bind to objectName of node undefined.", this);
7458
+ M("PropertyBinding: Can not bind to objectName of node undefined.", this);
7367
7459
  return;
7368
7460
  }
7369
7461
  t = t[r];
7370
7462
  }
7371
7463
  if (e !== void 0) {
7372
7464
  if (t[e] === void 0) {
7373
- A("PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.", this, t);
7465
+ M("PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.", this, t);
7374
7466
  return;
7375
7467
  }
7376
7468
  t = t[e];
@@ -7379,7 +7471,7 @@ var zc = "\\[\\]\\.:\\/", Bc = RegExp("[" + zc + "]", "g"), Vc = "[^" + zc + "]"
7379
7471
  let o = t[i];
7380
7472
  if (o === void 0) {
7381
7473
  let e = n.nodeName;
7382
- A("PropertyBinding: Trying to update property for track: " + e + "." + i + " but it wasn't found.", t);
7474
+ M("PropertyBinding: Trying to update property for track: " + e + "." + i + " but it wasn't found.", t);
7383
7475
  return;
7384
7476
  }
7385
7477
  let s = this.Versioning.None;
@@ -7388,11 +7480,11 @@ var zc = "\\[\\]\\.:\\/", Bc = RegExp("[" + zc + "]", "g"), Vc = "[^" + zc + "]"
7388
7480
  if (a !== void 0) {
7389
7481
  if (i === "morphTargetInfluences") {
7390
7482
  if (!t.geometry) {
7391
- A("PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.", this);
7483
+ M("PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.", this);
7392
7484
  return;
7393
7485
  }
7394
7486
  if (!t.geometry.morphAttributes) {
7395
- A("PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.", this);
7487
+ M("PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.", this);
7396
7488
  return;
7397
7489
  }
7398
7490
  t.morphTargetDictionary[a] !== void 0 && (a = t.morphTargetDictionary[a]);
@@ -7405,7 +7497,7 @@ var zc = "\\[\\]\\.:\\/", Bc = RegExp("[" + zc + "]", "g"), Vc = "[^" + zc + "]"
7405
7497
  this.node = null, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
7406
7498
  }
7407
7499
  };
7408
- Z.Composite = Yc, Z.prototype.BindingType = {
7500
+ Z.Composite = el, Z.prototype.BindingType = {
7409
7501
  Direct: 0,
7410
7502
  EntireArray: 1,
7411
7503
  ArrayElement: 2,
@@ -7441,7 +7533,7 @@ Z.Composite = Yc, Z.prototype.BindingType = {
7441
7533
  Z.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate
7442
7534
  ]
7443
7535
  ];
7444
- var Xc = class extends Qr {
7536
+ var tl = class extends ti {
7445
7537
  constructor(e, t, n = 1) {
7446
7538
  super(e, t), this.isInstancedInterleavedBuffer = !0, this.meshPerAttribute = n;
7447
7539
  }
@@ -7456,9 +7548,9 @@ var Xc = class extends Qr {
7456
7548
  let t = super.toJSON(e);
7457
7549
  return t.isInstancedInterleavedBuffer = !0, t.meshPerAttribute = this.meshPerAttribute, t;
7458
7550
  }
7459
- }, Zc = /* @__PURE__ */ new R(), Qc = class {
7551
+ }, nl = /* @__PURE__ */ new B(), rl = class {
7460
7552
  constructor(e, t, n = 0, r = Infinity) {
7461
- this.ray = new li(e, t), this.near = n, this.far = r, this.camera = null, this.layers = new Mn(), this.params = {
7553
+ this.ray = new pi(e, t), this.near = n, this.far = r, this.camera = null, this.layers = new Pn(), this.params = {
7462
7554
  Mesh: {},
7463
7555
  Line: { threshold: 1 },
7464
7556
  LOD: {},
@@ -7470,32 +7562,32 @@ var Xc = class extends Qr {
7470
7562
  this.ray.set(e, t);
7471
7563
  }
7472
7564
  setFromCamera(e, t) {
7473
- t.isPerspectiveCamera ? (this.ray.origin.setFromMatrixPosition(t.matrixWorld), this.ray.direction.set(e.x, e.y, .5).unproject(t).sub(this.ray.origin).normalize(), this.camera = t) : t.isOrthographicCamera ? (this.ray.origin.set(e.x, e.y, t.projectionMatrix.elements[14]).unproject(t), this.ray.direction.set(0, 0, -1).transformDirection(t.matrixWorld), this.camera = t) : A("Raycaster: Unsupported camera type: " + t.type);
7565
+ t.isPerspectiveCamera ? (this.ray.origin.setFromMatrixPosition(t.matrixWorld), this.ray.direction.set(e.x, e.y, .5).unproject(t).sub(this.ray.origin).normalize(), this.camera = t) : t.isOrthographicCamera ? (this.ray.origin.set(e.x, e.y, t.projectionMatrix.elements[14]).unproject(t), this.ray.direction.set(0, 0, -1).transformDirection(t.matrixWorld), this.camera = t) : M("Raycaster: Unsupported camera type: " + t.type);
7474
7566
  }
7475
7567
  setFromXRController(e) {
7476
- return Zc.identity().extractRotation(e.matrixWorld), this.ray.origin.setFromMatrixPosition(e.matrixWorld), this.ray.direction.set(0, 0, -1).applyMatrix4(Zc), this;
7568
+ return nl.identity().extractRotation(e.matrixWorld), this.ray.origin.setFromMatrixPosition(e.matrixWorld), this.ray.direction.set(0, 0, -1).applyMatrix4(nl), this;
7477
7569
  }
7478
7570
  intersectObject(e, t = !0, n = []) {
7479
- return el(e, this, n, t), n.sort($c), n;
7571
+ return al(e, this, n, t), n.sort(il), n;
7480
7572
  }
7481
7573
  intersectObjects(e, t = !0, n = []) {
7482
- for (let r = 0, i = e.length; r < i; r++) el(e[r], this, n, t);
7483
- return n.sort($c), n;
7574
+ for (let r = 0, i = e.length; r < i; r++) al(e[r], this, n, t);
7575
+ return n.sort(il), n;
7484
7576
  }
7485
7577
  };
7486
- function $c(e, t) {
7578
+ function il(e, t) {
7487
7579
  return e.distance - t.distance;
7488
7580
  }
7489
- function el(e, t, n, r) {
7581
+ function al(e, t, n, r) {
7490
7582
  let i = !0;
7491
7583
  if (e.layers.test(t.layers) && e.raycast(t, n) === !1 && (i = !1), i === !0 && r === !0) {
7492
7584
  let r = e.children;
7493
- for (let e = 0, i = r.length; e < i; e++) el(r[e], t, n, !0);
7585
+ for (let e = 0, i = r.length; e < i; e++) al(r[e], t, n, !0);
7494
7586
  }
7495
7587
  }
7496
- var tl = class {
7588
+ var ol = class {
7497
7589
  constructor(e = !0) {
7498
- this.autoStart = e, this.startTime = 0, this.oldTime = 0, this.elapsedTime = 0, this.running = !1, k("Clock: This module has been deprecated. Please use THREE.Timer instead.");
7590
+ this.autoStart = e, this.startTime = 0, this.oldTime = 0, this.elapsedTime = 0, this.running = !1, j("Clock: This module has been deprecated. Please use THREE.Timer instead.");
7499
7591
  }
7500
7592
  start() {
7501
7593
  this.startTime = performance.now(), this.oldTime = this.startTime, this.elapsedTime = 0, this.running = !0;
@@ -7515,7 +7607,7 @@ var tl = class {
7515
7607
  }
7516
7608
  return e;
7517
7609
  }
7518
- }, nl = class e {
7610
+ }, sl = class e {
7519
7611
  static {
7520
7612
  e.prototype.isMatrix2 = !0;
7521
7613
  }
@@ -7538,8 +7630,8 @@ var tl = class {
7538
7630
  let i = this.elements;
7539
7631
  return i[0] = e, i[2] = t, i[1] = n, i[3] = r, this;
7540
7632
  }
7541
- }, rl = /* @__PURE__ */ new F(), il = class {
7542
- constructor(e = new F(Infinity, Infinity), t = new F(-Infinity, -Infinity)) {
7633
+ }, cl = /* @__PURE__ */ new L(), ll = class {
7634
+ constructor(e = new L(Infinity, Infinity), t = new L(-Infinity, -Infinity)) {
7543
7635
  this.isBox2 = !0, this.min = e, this.max = t;
7544
7636
  }
7545
7637
  set(e, t) {
@@ -7551,7 +7643,7 @@ var tl = class {
7551
7643
  return this;
7552
7644
  }
7553
7645
  setFromCenterAndSize(e, t) {
7554
- let n = rl.copy(t).multiplyScalar(.5);
7646
+ let n = cl.copy(t).multiplyScalar(.5);
7555
7647
  return this.min.copy(e).sub(n), this.max.copy(e).add(n), this;
7556
7648
  }
7557
7649
  clone() {
@@ -7597,7 +7689,7 @@ var tl = class {
7597
7689
  return t.copy(e).clamp(this.min, this.max);
7598
7690
  }
7599
7691
  distanceToPoint(e) {
7600
- return this.clampPoint(e, rl).distanceTo(e);
7692
+ return this.clampPoint(e, cl).distanceTo(e);
7601
7693
  }
7602
7694
  intersect(e) {
7603
7695
  return this.min.max(e.min), this.max.min(e.max), this.isEmpty() && this.makeEmpty(), this;
@@ -7611,8 +7703,8 @@ var tl = class {
7611
7703
  equals(e) {
7612
7704
  return e.min.equals(this.min) && e.max.equals(this.max);
7613
7705
  }
7614
- }, al = /* @__PURE__ */ new I(), ol = /* @__PURE__ */ new I(), sl = /* @__PURE__ */ new I(), cl = /* @__PURE__ */ new I(), ll = /* @__PURE__ */ new I(), ul = /* @__PURE__ */ new I(), dl = /* @__PURE__ */ new I(), fl = class {
7615
- constructor(e = new I(), t = new I()) {
7706
+ }, ul = /* @__PURE__ */ new R(), dl = /* @__PURE__ */ new R(), fl = /* @__PURE__ */ new R(), pl = /* @__PURE__ */ new R(), ml = /* @__PURE__ */ new R(), hl = /* @__PURE__ */ new R(), gl = /* @__PURE__ */ new R(), _l = class {
7707
+ constructor(e = new R(), t = new R()) {
7616
7708
  this.start = e, this.end = t;
7617
7709
  }
7618
7710
  set(e, t) {
@@ -7637,31 +7729,31 @@ var tl = class {
7637
7729
  return this.delta(t).multiplyScalar(e).add(this.start);
7638
7730
  }
7639
7731
  closestPointToPointParameter(e, t) {
7640
- al.subVectors(e, this.start), ol.subVectors(this.end, this.start);
7641
- let n = ol.dot(ol);
7732
+ ul.subVectors(e, this.start), dl.subVectors(this.end, this.start);
7733
+ let n = dl.dot(dl);
7642
7734
  if (n === 0) return 0;
7643
- let r = ol.dot(al) / n;
7644
- return t && (r = M(r, 0, 1)), r;
7735
+ let r = dl.dot(ul) / n;
7736
+ return t && (r = P(r, 0, 1)), r;
7645
7737
  }
7646
7738
  closestPointToPoint(e, t, n) {
7647
7739
  let r = this.closestPointToPointParameter(e, t);
7648
7740
  return this.delta(n).multiplyScalar(r).add(this.start);
7649
7741
  }
7650
- distanceSqToLine3(e, t = ul, n = dl) {
7742
+ distanceSqToLine3(e, t = hl, n = gl) {
7651
7743
  let r = 1e-8 * 1e-8, i, a, o = this.start, s = e.start, c = this.end, l = e.end;
7652
- sl.subVectors(c, o), cl.subVectors(l, s), ll.subVectors(o, s);
7653
- let u = sl.dot(sl), d = cl.dot(cl), f = cl.dot(ll);
7744
+ fl.subVectors(c, o), pl.subVectors(l, s), ml.subVectors(o, s);
7745
+ let u = fl.dot(fl), d = pl.dot(pl), f = pl.dot(ml);
7654
7746
  if (u <= r && d <= r) return t.copy(o), n.copy(s), t.sub(n), t.dot(t);
7655
- if (u <= r) i = 0, a = f / d, a = M(a, 0, 1);
7747
+ if (u <= r) i = 0, a = f / d, a = P(a, 0, 1);
7656
7748
  else {
7657
- let e = sl.dot(ll);
7658
- if (d <= r) a = 0, i = M(-e / u, 0, 1);
7749
+ let e = fl.dot(ml);
7750
+ if (d <= r) a = 0, i = P(-e / u, 0, 1);
7659
7751
  else {
7660
- let t = sl.dot(cl), n = u * d - t * t;
7661
- i = n === 0 ? 0 : M((t * f - e * d) / n, 0, 1), a = (t * i + f) / d, a < 0 ? (a = 0, i = M(-e / u, 0, 1)) : a > 1 && (a = 1, i = M((t - e) / u, 0, 1));
7752
+ let t = fl.dot(pl), n = u * d - t * t;
7753
+ i = n === 0 ? 0 : P((t * f - e * d) / n, 0, 1), a = (t * i + f) / d, a < 0 ? (a = 0, i = P(-e / u, 0, 1)) : a > 1 && (a = 1, i = P((t - e) / u, 0, 1));
7662
7754
  }
7663
7755
  }
7664
- return t.copy(o).addScaledVector(sl, i), n.copy(s).addScaledVector(cl, a), t.distanceToSquared(n);
7756
+ return t.copy(o).addScaledVector(fl, i), n.copy(s).addScaledVector(pl, a), t.distanceToSquared(n);
7665
7757
  }
7666
7758
  applyMatrix4(e) {
7667
7759
  return this.start.applyMatrix4(e), this.end.applyMatrix4(e), this;
@@ -7672,9 +7764,9 @@ var tl = class {
7672
7764
  clone() {
7673
7765
  return new this.constructor().copy(this);
7674
7766
  }
7675
- }, pl = /* @__PURE__ */ new I(), Q = /* @__PURE__ */ new mc(), ml = class extends _a {
7767
+ }, vl = /* @__PURE__ */ new R(), Q = /* @__PURE__ */ new yc(), yl = class extends _a {
7676
7768
  constructor(e) {
7677
- let t = new Zr(), n = new aa({
7769
+ let t = new ei(), n = new aa({
7678
7770
  color: 16777215,
7679
7771
  vertexColors: !0,
7680
7772
  toneMapped: !1
@@ -7686,8 +7778,8 @@ var tl = class {
7686
7778
  function s(e) {
7687
7779
  r.push(0, 0, 0), i.push(0, 0, 0), a[e] === void 0 && (a[e] = []), a[e].push(r.length / 3 - 1);
7688
7780
  }
7689
- t.setAttribute("position", new G(r, 3)), t.setAttribute("color", new G(i, 3)), super(t, n), this.type = "CameraHelper", this.camera = e, this.camera.updateProjectionMatrix && this.camera.updateProjectionMatrix(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.pointMap = a, this.update();
7690
- let c = new V(16755200), l = new V(16711680), u = new V(43775), d = new V(16777215), f = new V(3355443);
7781
+ t.setAttribute("position", new K(r, 3)), t.setAttribute("color", new K(i, 3)), super(t, n), this.type = "CameraHelper", this.camera = e, this.camera.updateProjectionMatrix && this.camera.updateProjectionMatrix(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.pointMap = a, this.update();
7782
+ let c = new H(16755200), l = new H(16711680), u = new H(43775), d = new H(16777215), f = new H(3355443);
7691
7783
  this.setColors(c, l, u, d, f);
7692
7784
  }
7693
7785
  setColors(e, t, n, r, i) {
@@ -7703,68 +7795,68 @@ var tl = class {
7703
7795
  $("c", t, e, Q, 0, 0, n), $("t", t, e, Q, 0, 0, r), $("n1", t, e, Q, -1, -1, n), $("n2", t, e, Q, 1, -1, n), $("n3", t, e, Q, -1, 1, n), $("n4", t, e, Q, 1, 1, n), $("f1", t, e, Q, -1, -1, r), $("f2", t, e, Q, 1, -1, r), $("f3", t, e, Q, -1, 1, r), $("f4", t, e, Q, 1, 1, r), $("u1", t, e, Q, 1 * .7, 1 * 1.1, n), $("u2", t, e, Q, -1 * .7, 1 * 1.1, n), $("u3", t, e, Q, 0, 2, n), $("cf1", t, e, Q, -1, 0, r), $("cf2", t, e, Q, 1, 0, r), $("cf3", t, e, Q, 0, -1, r), $("cf4", t, e, Q, 0, 1, r), $("cn1", t, e, Q, -1, 0, n), $("cn2", t, e, Q, 1, 0, n), $("cn3", t, e, Q, 0, -1, n), $("cn4", t, e, Q, 0, 1, n), e.getAttribute("position").needsUpdate = !0;
7704
7796
  }
7705
7797
  dispose() {
7706
- this.geometry.dispose(), this.material.dispose();
7798
+ super.dispose(), this.geometry.dispose(), this.material.dispose();
7707
7799
  }
7708
7800
  };
7709
7801
  function $(e, t, n, r, i, a, o) {
7710
- pl.set(i, a, o).unproject(r);
7802
+ vl.set(i, a, o).unproject(r);
7711
7803
  let s = t[e];
7712
7804
  if (s !== void 0) {
7713
7805
  let e = n.getAttribute("position");
7714
- for (let t = 0, n = s.length; t < n; t++) e.setXYZ(s[t], pl.x, pl.y, pl.z);
7806
+ for (let t = 0, n = s.length; t < n; t++) e.setXYZ(s[t], vl.x, vl.y, vl.z);
7715
7807
  }
7716
7808
  }
7717
- function hl(e, t, n, r) {
7718
- let i = gl(r);
7809
+ function bl(e, t, n, r) {
7810
+ let i = xl(r);
7719
7811
  switch (n) {
7720
7812
  case T: return e * t;
7721
- case O: return e * t / i.components * i.byteLength;
7722
- case ne: return e * t / i.components * i.byteLength;
7723
- case re: return e * t * 2 / i.components * i.byteLength;
7724
- case ie: return e * t * 2 / i.components * i.byteLength;
7813
+ case A: return e * t / i.components * i.byteLength;
7814
+ case ee: return e * t / i.components * i.byteLength;
7815
+ case te: return e * t * 2 / i.components * i.byteLength;
7816
+ case ne: return e * t * 2 / i.components * i.byteLength;
7725
7817
  case E: return e * t * 3 / i.components * i.byteLength;
7726
7818
  case D: return e * t * 4 / i.components * i.byteLength;
7727
- case oe: return e * t * 4 / i.components * i.byteLength;
7819
+ case ie: return e * t * 4 / i.components * i.byteLength;
7820
+ case ae:
7821
+ case oe: return Math.floor((e + 3) / 4) * Math.floor((t + 3) / 4) * 8;
7728
7822
  case se:
7729
- case ce: return Math.floor((e + 3) / 4) * Math.floor((t + 3) / 4) * 8;
7823
+ case ce: return Math.floor((e + 3) / 4) * Math.floor((t + 3) / 4) * 16;
7824
+ case ue:
7825
+ case fe: return Math.max(e, 16) * Math.max(t, 8) / 4;
7730
7826
  case le:
7731
- case ue: return Math.floor((e + 3) / 4) * Math.floor((t + 3) / 4) * 16;
7732
- case fe:
7733
- case me: return Math.max(e, 16) * Math.max(t, 8) / 4;
7734
- case de:
7735
- case pe: return Math.max(e, 8) * Math.max(t, 8) / 2;
7736
- case he:
7827
+ case de: return Math.max(e, 8) * Math.max(t, 8) / 2;
7828
+ case pe:
7829
+ case me:
7737
7830
  case ge:
7831
+ case _e: return Math.floor((e + 3) / 4) * Math.floor((t + 3) / 4) * 8;
7832
+ case he:
7738
7833
  case ve:
7739
- case ye: return Math.floor((e + 3) / 4) * Math.floor((t + 3) / 4) * 8;
7740
- case _e:
7741
- case be:
7742
- case xe: return Math.floor((e + 3) / 4) * Math.floor((t + 3) / 4) * 16;
7743
- case Se: return Math.floor((e + 3) / 4) * Math.floor((t + 3) / 4) * 16;
7744
- case Ce: return Math.floor((e + 4) / 5) * Math.floor((t + 3) / 4) * 16;
7745
- case we: return Math.floor((e + 4) / 5) * Math.floor((t + 4) / 5) * 16;
7746
- case Te: return Math.floor((e + 5) / 6) * Math.floor((t + 4) / 5) * 16;
7747
- case Ee: return Math.floor((e + 5) / 6) * Math.floor((t + 5) / 6) * 16;
7748
- case De: return Math.floor((e + 7) / 8) * Math.floor((t + 4) / 5) * 16;
7749
- case Oe: return Math.floor((e + 7) / 8) * Math.floor((t + 5) / 6) * 16;
7750
- case ke: return Math.floor((e + 7) / 8) * Math.floor((t + 7) / 8) * 16;
7751
- case Ae: return Math.floor((e + 9) / 10) * Math.floor((t + 4) / 5) * 16;
7752
- case je: return Math.floor((e + 9) / 10) * Math.floor((t + 5) / 6) * 16;
7753
- case Me: return Math.floor((e + 9) / 10) * Math.floor((t + 7) / 8) * 16;
7754
- case Ne: return Math.floor((e + 9) / 10) * Math.floor((t + 9) / 10) * 16;
7755
- case Pe: return Math.floor((e + 11) / 12) * Math.floor((t + 9) / 10) * 16;
7756
- case Fe: return Math.floor((e + 11) / 12) * Math.floor((t + 11) / 12) * 16;
7757
- case Ie:
7834
+ case ye: return Math.floor((e + 3) / 4) * Math.floor((t + 3) / 4) * 16;
7835
+ case be: return Math.floor((e + 3) / 4) * Math.floor((t + 3) / 4) * 16;
7836
+ case xe: return Math.floor((e + 4) / 5) * Math.floor((t + 3) / 4) * 16;
7837
+ case Se: return Math.floor((e + 4) / 5) * Math.floor((t + 4) / 5) * 16;
7838
+ case Ce: return Math.floor((e + 5) / 6) * Math.floor((t + 4) / 5) * 16;
7839
+ case we: return Math.floor((e + 5) / 6) * Math.floor((t + 5) / 6) * 16;
7840
+ case Te: return Math.floor((e + 7) / 8) * Math.floor((t + 4) / 5) * 16;
7841
+ case Ee: return Math.floor((e + 7) / 8) * Math.floor((t + 5) / 6) * 16;
7842
+ case De: return Math.floor((e + 7) / 8) * Math.floor((t + 7) / 8) * 16;
7843
+ case Oe: return Math.floor((e + 9) / 10) * Math.floor((t + 4) / 5) * 16;
7844
+ case ke: return Math.floor((e + 9) / 10) * Math.floor((t + 5) / 6) * 16;
7845
+ case Ae: return Math.floor((e + 9) / 10) * Math.floor((t + 7) / 8) * 16;
7846
+ case je: return Math.floor((e + 9) / 10) * Math.floor((t + 9) / 10) * 16;
7847
+ case Me: return Math.floor((e + 11) / 12) * Math.floor((t + 9) / 10) * 16;
7848
+ case Ne: return Math.floor((e + 11) / 12) * Math.floor((t + 11) / 12) * 16;
7849
+ case Pe:
7850
+ case Fe:
7851
+ case Ie: return Math.ceil(e / 4) * Math.ceil(t / 4) * 16;
7758
7852
  case Le:
7759
- case Re: return Math.ceil(e / 4) * Math.ceil(t / 4) * 16;
7853
+ case Re: return Math.ceil(e / 4) * Math.ceil(t / 4) * 8;
7760
7854
  case ze:
7761
- case Be: return Math.ceil(e / 4) * Math.ceil(t / 4) * 8;
7762
- case Ve:
7763
- case He: return Math.ceil(e / 4) * Math.ceil(t / 4) * 16;
7855
+ case Be: return Math.ceil(e / 4) * Math.ceil(t / 4) * 16;
7764
7856
  }
7765
7857
  throw Error(`Unable to determine texture byte length for ${n} format.`);
7766
7858
  }
7767
- function gl(e) {
7859
+ function xl(e) {
7768
7860
  switch (e) {
7769
7861
  case f:
7770
7862
  case p: return {
@@ -7796,8 +7888,8 @@ function gl(e) {
7796
7888
  }
7797
7889
  throw Error(`THREE.TextureUtils: Unknown texture type ${e}.`);
7798
7890
  }
7799
- typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { revision: "185" } })), typeof window < "u" && (window.__THREE__ ? k("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = "185");
7891
+ typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { revision: "186" } })), typeof window < "u" && (window.__THREE__ ? j("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = "186");
7800
7892
  //#endregion
7801
- export { ut as $, Se as $n, as as $r, et as $t, Fc as A, Ye as Ai, ts as An, ne as Ar, Ue as At, xn as B, Ct as Bi, ve as Bn, Qe as Br, fl as Bt, tl as C, I as Ci, Xe as Cn, re as Cr, Xc as Ct, ht as D, bn as Di, _o as Dn, Qc as Dr, $r as Dt, cn as E, ft as Ei, Cc as En, li as Er, Qr as Et, Ms as F, vt as Fi, fo as Fn, ns as Fr, Is as Ft, st as G, Tt as Gi, D as Gn, vo as Gr, va as Gt, rc as H, Dt as Hi, Ve as Hn, nr as Hr, lo as Ht, Va as I, A as Ii, po as In, ye as Ir, Mn as It, te as J, Ae as Jn, m as Jr, Ns as Jt, Xs as K, Et as Ki, oe as Kn, rs as Kr, _a as Kt, go as L, hl as Li, $t as Ln, He as Lr, ac as Lt, Oa as M, Je as Mi, wa as Mn, n as Mr, Ge as Mt, so as N, ss as Ni, ya as Nn, rt as Nr, ct as Nt, Da as O, pt as Oi, vc as On, Dc as Or, js as Ot, co as P, yt as Pi, Z as Pn, Ot as Pr, nt as Pt, Ps as Q, Fe as Qn, Gr as Qr, $e as Qt, Pa as R, ds as Ri, Vs as Rn, Be as Rr, kc as Rt, r as S, F as Si, o as Sn, se as Sr, Bi as St, Rs as T, Us as Ti, B as Tn, gs as Tr, g as Tt, Fr as U, St as Ui, ze as Un, hs as Ur, uo as Ut, Ii as V, cs as Vi, Mt as Vn, tt as Vr, aa as Vt, at as W, k as Wi, be as Wn, os as Wr, Es as Wt, t as X, Me as Xn, Pi as Xr, u as Xt, ka as Y, je as Yn, zi as Yr, d as Yt, Tc as Z, Pe as Zn, mn as Zr, l as Zt, qs as _, C as _i, _s as _n, Re as _r, Mc as _t, Ic as a, Hs as ai, nl as an, Oe as ar, ec as at, Xa as b, x as bi, a as bn, fe as br, it as bt, Fs as c, Lc as ci, Si as cn, _e as cr, v as ct, il as d, zr as di, ws as dn, ce as dr, na as dt, Oc as ei, Zs as en, Ce as er, Ba as et, _r as f, Br as fi, Ss as fn, le as fr, ia as ft, p as g, S as gi, vs as gn, Le as gr, oc as gt, Zr as h, w as hi, ys as hn, ae as hr, y as ht, Ua as i, lt as ii, Qt as in, De as ir, ja as it, Aa as j, qe as ji, Sc as jn, yn as jr, We as jt, Fa as k, Xn as ki, Qi as kn, O as kr, Ke as kt, Fi as l, mt as li, ui as ln, me as lr, tr as lt, Rr as m, f as mi, xs as mn, E as mr, Jn as mt, Ec as n, bc as ni, Ys as nn, Te as nr, jn as nt, e as o, L as oi, nn as on, ke as or, Vr as ot, Ma as p, fs as pi, Ts as pn, ue as pr, dt as pt, ee as q, Ne as qn, Qo as qr, c as qt, Ws as r, ti as ri, Y as rn, Ee as rr, kt as rt, Ze as s, ic as si, R as sn, Ie as sr, G as st, T as t, mo as ti, Ac as tn, we as tr, Ha as tt, Ls as u, gr as ui, Cs as un, pe as ur, Ea as ut, mc as v, _ as vi, bs as vn, he as vr, nc as vt, V as w, vn as wi, zs as wn, ie as wr, Ji as wt, Na as x, h as xi, s as xn, de as xr, ot as xt, ml as y, b as yi, i as yn, ge as yr, fn as yt, Sn as z, _t as zi, Bs as zn, xe as zr, pa as zt };
7893
+ export { ct as $, Ne as $n, gn as $r, Ze as $t, Bc as A, xn as Ai, oi as An, A as Ar, Ve as At, Sn as B, bl as Bi, Gs as Bn, Re as Br, pa as Bt, ol as C, x as Ci, o as Cn, ae as Cr, tl as Ct, pt as D, yn as Di, Oc as Dn, pi as Dr, ni as Dt, cn as E, R as Ei, V as En, gs as Er, ti as Et, Ns as F, Ke as Fi, Z as Fn, tt as Fr, Bs as Ft, at as G, cs as Gi, ve as Gn, hs as Gr, Es as Gt, cc as H, ds as Hi, Mt as Hn, Xe as Hr, aa as Ht, Va as I, ss as Ii, fo as In, Ot as Ir, Pn as It, k as J, j as Ji, je as Jn, rs as Jr, c as Jt, tc as K, Dt as Ki, D as Kn, os as Kr, va as Kt, go as L, vt as Li, po as Ln, ns as Lr, uc as Lt, Oa as M, Qn as Mi, Dc as Mn, mt as Mr, Ue as Mt, so as N, qe as Ni, wa as Nn, bn as Nr, ot as Nt, Da as O, Js as Oi, _o as On, rl as Or, Ms as Ot, co as P, Ge as Pi, ya as Pn, n as Pr, et as Pt, Fs as Q, Me as Qn, Ri as Qr, l as Qt, Pa as R, _t as Ri, $t as Rn, _e as Rr, Pc as Rt, r as S, b as Si, s as Sn, le as Sr, Wi as St, Us as T, L as Ti, Ws as Tn, ne as Tr, g as Tt, Lr as U, gt as Ui, ze as Un, $e as Ur, lo as Ut, Bi as V, St as Vi, ge as Vn, ye as Vr, _l as Vt, rt as W, Ct as Wi, Le as Wn, ir as Wr, uo as Wt, t as X, Et as Xi, ke as Xn, m as Xr, d as Xt, ka as Y, Tt as Yi, Oe as Yn, Qo as Yr, Ps as Yt, Ac as Z, Ae as Zn, Ui as Zr, u as Zt, Qs as _, f as _i, vs as _n, Fe as _r, Lc as _t, Vc as a, ci as ai, Qt as an, Te as ar, ac as at, Xa as b, C as bi, i as bn, me as br, nt as bt, Is as c, z as ci, B as cn, Pe as cr, v as ct, ll as d, Hc as di, Cs as dn, de as dr, na as dt, qr as ei, Qe as en, be as er, Ba as et, yr as f, ft as fi, ws as fn, oe as fr, ia as ft, p as g, fs as gi, ys as gn, re as gr, dc as gt, ei as h, Hr as hi, xs as hn, E as hr, y as ht, Ua as i, Tc as ii, Y as in, we as ir, ja as it, Aa as j, dt as ji, ts as jn, ee as jr, He as jt, Fa as k, ut as ki, Cc as kn, Mc as kr, We as kt, zi as l, lc as li, Ei as ln, he as lr, rr as lt, Br as m, Vr as mi, Ts as mn, ce as mr, Xn as mt, jc as n, Nc as ni, Fc as nn, Se as nr, Nn as nt, e as o, st as oi, sl as on, Ee as or, Ur as ot, Ma as p, vr as pi, Ss as pn, se as pr, lt as pt, O as q, xt as qi, ie as qn, vo as qr, _a as qt, Ys as r, mo as ri, ec as rn, Ce as rr, kt as rt, Ye as s, qs as si, nn as sn, De as sr, K as st, T as t, as as ti, nc as tn, xe as tr, Ha as tt, Hs as u, mn as ui, mi as un, fe as ur, Ea as ut, yc as v, w as vi, _s as vn, Ie as vr, sc as vt, H as w, h as wi, Je as wn, te as wr, Qi as wt, Na as x, _ as xi, a as xn, ue as xr, it as xt, yl as y, S as yi, bs as yn, pe as yr, fn as yt, Cn as z, M as zi, Ks as zn, Be as zr, hc as zt };
7802
7894
 
7803
- //# sourceMappingURL=three.core-0KaTx8dm.mjs.map
7895
+ //# sourceMappingURL=three.core-BTUCraWz.mjs.map