@roomle/web-sdk 3.9.0-alpha.4 → 3.9.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/lib/{BufferGeometry-ltw0XkYt.mjs → BufferGeometry-Dxcf7n9V.mjs} +1 -1
  2. package/lib/{BufferGeometry-ltw0XkYt.mjs.map → BufferGeometry-Dxcf7n9V.mjs.map} +1 -1
  3. package/lib/ConfiguratorKernel.wasm +0 -0
  4. package/lib/{GLTFExporter-yfYOtLdk.mjs → GLTFExporter-kpv1e-Ks.mjs} +84 -84
  5. package/lib/{GLTFExporter-yfYOtLdk.mjs.map → GLTFExporter-kpv1e-Ks.mjs.map} +1 -1
  6. package/lib/GaussianBlurNode-CMVlBe39.mjs +59 -0
  7. package/lib/GaussianBlurNode-CMVlBe39.mjs.map +1 -0
  8. package/lib/{PointLightHelper-AxCe6I00.mjs → PointLightHelper-fzRB58rC.mjs} +2 -2
  9. package/lib/{PointLightHelper-AxCe6I00.mjs.map → PointLightHelper-fzRB58rC.mjs.map} +1 -1
  10. package/lib/RoomleCore.wasm +0 -0
  11. package/lib/RoomleToolsCore.wasm +0 -0
  12. package/lib/{SpotLightHelper-DpMerFPv.mjs → SpotLightHelper-D5UFwRPb.mjs} +2 -2
  13. package/lib/{SpotLightHelper-DpMerFPv.mjs.map → SpotLightHelper-D5UFwRPb.mjs.map} +1 -1
  14. package/lib/{USDZExporter-DFJQYX8l.mjs → USDZExporter-Y0SSGr5_.mjs} +2 -2
  15. package/lib/{USDZExporter-DFJQYX8l.mjs.map → USDZExporter-Y0SSGr5_.mjs.map} +1 -1
  16. package/lib/{api-x84SYo8e.mjs → api-52cOotqw.mjs} +2 -2
  17. package/lib/{api-x84SYo8e.mjs.map → api-52cOotqw.mjs.map} +1 -1
  18. package/lib/{asset-loader.worker-A7nEeQB4.mjs → asset-loader.worker-C911tbNL.mjs} +1 -1
  19. package/lib/asset-loader.worker-C911tbNL.mjs.map +1 -0
  20. package/lib/{banana-for-scale-CFY_5rk1.mjs → banana-for-scale-B_LIHI9q.mjs} +3 -3
  21. package/lib/{banana-for-scale-CFY_5rk1.mjs.map → banana-for-scale-B_LIHI9q.mjs.map} +1 -1
  22. package/lib/{budgeteer.sw-CQWYbQSc.mjs → budgeteer.sw-D3VxiASa.mjs} +1 -1
  23. package/lib/budgeteer.sw-D3VxiASa.mjs.map +1 -0
  24. package/lib/{common-utils-L3DF6Ey5.mjs → common-utils-B9PC_rvS.mjs} +2 -2
  25. package/lib/{common-utils-L3DF6Ey5.mjs.map → common-utils-B9PC_rvS.mjs.map} +1 -1
  26. package/lib/{component-dimensioning-FjlPqIvQ.mjs → component-dimensioning-12aJsCzQ.mjs} +31 -31
  27. package/lib/{component-dimensioning-FjlPqIvQ.mjs.map → component-dimensioning-12aJsCzQ.mjs.map} +1 -1
  28. package/lib/{component-raycast-helper-1n4uXeSD.mjs → component-raycast-helper-CcrmOq29.mjs} +14 -14
  29. package/lib/{component-raycast-helper-1n4uXeSD.mjs.map → component-raycast-helper-CcrmOq29.mjs.map} +1 -1
  30. package/lib/configurator-CarZpfPv.mjs +2 -0
  31. package/lib/{configurator-Dw5JbPMY.mjs → configurator-D3ZKy6bf.mjs} +10 -10
  32. package/lib/{configurator-Dw5JbPMY.mjs.map → configurator-D3ZKy6bf.mjs.map} +1 -1
  33. package/lib/{continuous-drawing-helper-DEmx54k_.mjs → continuous-drawing-helper-D25YPUle.mjs} +4 -4
  34. package/lib/{continuous-drawing-helper-DEmx54k_.mjs.map → continuous-drawing-helper-D25YPUle.mjs.map} +1 -1
  35. package/lib/{dimensioning-helper-BXD6AEqL.mjs → dimensioning-helper-d6JA4UMr.mjs} +49 -49
  36. package/lib/{dimensioning-helper-BXD6AEqL.mjs.map → dimensioning-helper-d6JA4UMr.mjs.map} +1 -1
  37. package/lib/dimensioning-helper-pPTkh8pl.mjs +2 -0
  38. package/lib/{glb-viewer-CWkc6wx7.mjs → glb-viewer-BJJ9OIlH.mjs} +35 -35
  39. package/lib/{glb-viewer-CWkc6wx7.mjs.map → glb-viewer-BJJ9OIlH.mjs.map} +1 -1
  40. package/lib/glb-viewer-CJ7BPqI-.mjs +2 -0
  41. package/lib/{highlight-coordinator-BJJw_RgR.mjs → highlight-coordinator-BuFleG2q.mjs} +8 -8
  42. package/lib/{highlight-coordinator-BJJw_RgR.mjs.map → highlight-coordinator-BuFleG2q.mjs.map} +1 -1
  43. package/lib/{homag-intelligence-Dk4WxD0p.mjs → homag-intelligence-BxpMWKLs.mjs} +5 -5
  44. package/lib/{homag-intelligence-Dk4WxD0p.mjs.map → homag-intelligence-BxpMWKLs.mjs.map} +1 -1
  45. package/lib/{imos-ix-poc-export-helper-C9wPB6fl.mjs → imos-ix-poc-export-helper-DU0ag-Lw.mjs} +3 -3
  46. package/lib/{imos-ix-poc-export-helper-C9wPB6fl.mjs.map → imos-ix-poc-export-helper-DU0ag-Lw.mjs.map} +1 -1
  47. package/lib/{kernel-utils-B5QlsCwn.mjs → kernel-utils-Cj5B4fDD.mjs} +16 -16
  48. package/lib/{kernel-utils-B5QlsCwn.mjs.map → kernel-utils-Cj5B4fDD.mjs.map} +1 -1
  49. package/lib/{main-CqSFaC9L.mjs → main-QTvbXAvy.mjs} +27277 -3406
  50. package/lib/main-QTvbXAvy.mjs.map +1 -0
  51. package/lib/{material-viewer-BSgvHUAe.mjs → material-viewer-BPcCfvCC.mjs} +18 -18
  52. package/lib/{material-viewer-BSgvHUAe.mjs.map → material-viewer-BPcCfvCC.mjs.map} +1 -1
  53. package/lib/packages-JQ2uWInj.mjs +4 -0
  54. package/lib/{planner-BgAj8Jp1.mjs → planner-C1-sOmHY.mjs} +5 -5
  55. package/lib/{planner-BgAj8Jp1.mjs.map → planner-C1-sOmHY.mjs.map} +1 -1
  56. package/lib/planner-CnRaQM_h.mjs +2 -0
  57. package/lib/{plugin-system-BBgoIai2.mjs → plugin-system-DlME_5b_.mjs} +2 -2
  58. package/lib/{plugin-system-BBgoIai2.mjs.map → plugin-system-DlME_5b_.mjs.map} +1 -1
  59. package/lib/rolldown-runtime-BwvMKf85.mjs +23 -0
  60. package/lib/roomle-headless.d.ts +32 -4
  61. package/lib/roomle-headless.js +40 -40
  62. package/lib/roomle-headless.js.map +1 -1
  63. package/lib/{roomle-renderer-CkSFbpmg.mjs → roomle-renderer-DYQvV88j.mjs} +2 -2
  64. package/lib/{roomle-renderer-CkSFbpmg.mjs.map → roomle-renderer-DYQvV88j.mjs.map} +1 -1
  65. package/lib/roomle-sdk.d.ts +32 -4
  66. package/lib/roomle-sdk.js +8 -8
  67. package/lib/{roomle-webgpu-renderer-DUr1RZL6.mjs → roomle-webgpu-renderer-BrZZeAGw.mjs} +296 -419
  68. package/lib/roomle-webgpu-renderer-BrZZeAGw.mjs.map +1 -0
  69. package/lib/{scene-renderer-BuMnigf2.mjs → scene-renderer-3nhM4cEu.mjs} +394 -394
  70. package/lib/{scene-renderer-BuMnigf2.mjs.map → scene-renderer-3nhM4cEu.mjs.map} +1 -1
  71. package/lib/{script-loader-DzyUQT3-.mjs → script-loader-3LiaLeLT.mjs} +2 -2
  72. package/lib/{script-loader-DzyUQT3-.mjs.map → script-loader-3LiaLeLT.mjs.map} +1 -1
  73. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  74. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  75. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  76. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  77. package/lib/{stats-helper-BZnX3BX3.mjs → stats-helper-COC7Moh0.mjs} +3 -3
  78. package/lib/{stats-helper-BZnX3BX3.mjs.map → stats-helper-COC7Moh0.mjs.map} +1 -1
  79. package/lib/{three.core-DNErG1F6.mjs → three.core-tV_4n8Wg.mjs} +374 -301
  80. package/lib/{three.core-DNErG1F6.mjs.map → three.core-tV_4n8Wg.mjs.map} +1 -1
  81. package/lib/{three.module-BZkESKo3.mjs → three.module-DC5fF9Zl.mjs} +1568 -1568
  82. package/lib/{three.module-BZkESKo3.mjs.map → three.module-DC5fF9Zl.mjs.map} +1 -1
  83. package/lib/three.tsl-CAEdYyg3.mjs +136 -0
  84. package/lib/three.tsl-CAEdYyg3.mjs.map +1 -0
  85. package/lib/three.tsl-S0OKwamA.mjs +2 -0
  86. package/lib/{three.webgpu-C8myBXe1.mjs → three.webgpu-CkP2nkXM.mjs} +747 -747
  87. package/lib/{three.webgpu-C8myBXe1.mjs.map → three.webgpu-CkP2nkXM.mjs.map} +1 -1
  88. package/lib/three.webgpu-qrxDA_v0.mjs +3 -0
  89. package/lib/{threejs-utils-D7sinreM.mjs → threejs-utils-CElderZe.mjs} +68 -68
  90. package/lib/threejs-utils-CElderZe.mjs.map +1 -0
  91. package/lib/{tools-core-BxOoo-C1.mjs → tools-core-mkA4m80O.mjs} +3 -3
  92. package/lib/{tools-core-BxOoo-C1.mjs.map → tools-core-mkA4m80O.mjs.map} +1 -1
  93. package/lib/workers-HXGCmmZS.mjs +6 -0
  94. package/lib/{workers-BJYv3y38.mjs.map → workers-HXGCmmZS.mjs.map} +1 -1
  95. package/package.json +1 -1
  96. package/lib/asset-loader.worker-A7nEeQB4.mjs.map +0 -1
  97. package/lib/budgeteer.sw-CQWYbQSc.mjs.map +0 -1
  98. package/lib/configurator-DeUTcLI3.mjs +0 -2
  99. package/lib/dimensioning-helper-Do9jwg8T.mjs +0 -2
  100. package/lib/glb-viewer-Ci-IZcIt.mjs +0 -2
  101. package/lib/main-CqSFaC9L.mjs.map +0 -1
  102. package/lib/packages-0mEYlGTx.mjs +0 -4
  103. package/lib/planner-CIvdB7af.mjs +0 -2
  104. package/lib/rolldown-runtime-DgwB9i60.mjs +0 -13
  105. package/lib/roomle-webgpu-renderer-DUr1RZL6.mjs.map +0 -1
  106. package/lib/three.webgpu-WIkDzwXU.mjs +0 -3
  107. package/lib/threejs-utils-D7sinreM.mjs.map +0 -1
  108. package/lib/workers-BJYv3y38.mjs +0 -6
@@ -1007,7 +1007,7 @@ function sn() {
1007
1007
  workingColorSpace: $e,
1008
1008
  spaces: {},
1009
1009
  convert: function(e, t, n) {
1010
- return this.enabled === !1 || t === n || !t || !n ? e : (this.spaces[t].transfer === "srgb" && (e.r = cn(e.r), e.g = cn(e.g), e.b = cn(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 = ln(e.r), e.g = ln(e.g), e.b = ln(e.b)), e);
1010
+ 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);
1011
1011
  },
1012
1012
  workingToColorSpace: function(e, t) {
1013
1013
  return this.convert(e, this.workingColorSpace, t);
@@ -1079,22 +1079,22 @@ function sn() {
1079
1079
  }
1080
1080
  }), e;
1081
1081
  }
1082
- var L = /* @__PURE__ */ sn();
1083
- function cn(e) {
1082
+ var cn = /* @__PURE__ */ sn();
1083
+ function ln(e) {
1084
1084
  return e < .04045 ? e * .0773993808 : (e * .9478672986 + .0521327014) ** 2.4;
1085
1085
  }
1086
- function ln(e) {
1086
+ function un(e) {
1087
1087
  return e < .0031308 ? e * 12.92 : 1.055 * e ** .41666 - .055;
1088
1088
  }
1089
- var un, dn = class {
1089
+ var dn, fn = class {
1090
1090
  static getDataURL(e, t = "image/png") {
1091
1091
  if (/^data:/i.test(e.src) || typeof HTMLCanvasElement > "u") return e.src;
1092
1092
  let n;
1093
1093
  if (e instanceof HTMLCanvasElement) n = e;
1094
1094
  else {
1095
- un === void 0 && (un = vt("canvas")), un.width = e.width, un.height = e.height;
1096
- let t = un.getContext("2d");
1097
- e instanceof ImageData ? t.putImageData(e, 0, 0) : t.drawImage(e, 0, 0, e.width, e.height), n = un;
1095
+ dn === void 0 && (dn = vt("canvas")), dn.width = e.width, dn.height = e.height;
1096
+ let t = dn.getContext("2d");
1097
+ e instanceof ImageData ? t.putImageData(e, 0, 0) : t.drawImage(e, 0, 0, e.width, e.height), n = dn;
1098
1098
  }
1099
1099
  return n.toDataURL(t);
1100
1100
  }
@@ -1105,11 +1105,11 @@ var un, dn = class {
1105
1105
  let n = t.getContext("2d");
1106
1106
  n.drawImage(e, 0, 0, e.width, e.height);
1107
1107
  let r = n.getImageData(0, 0, e.width, e.height), i = r.data;
1108
- for (let e = 0; e < i.length; e++) i[e] = cn(i[e] / 255) * 255;
1108
+ for (let e = 0; e < i.length; e++) i[e] = ln(i[e] / 255) * 255;
1109
1109
  return n.putImageData(r, 0, 0), t;
1110
1110
  } else if (e.data) {
1111
1111
  let t = e.data.slice(0);
1112
- for (let e = 0; e < t.length; e++) t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[e] = Math.floor(cn(t[e] / 255) * 255) : t[e] = cn(t[e]);
1112
+ for (let e = 0; e < t.length; e++) t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[e] = Math.floor(ln(t[e] / 255) * 255) : t[e] = ln(t[e]);
1113
1113
  return {
1114
1114
  data: t,
1115
1115
  width: e.width,
@@ -1117,9 +1117,9 @@ var un, dn = class {
1117
1117
  };
1118
1118
  } else return k("ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."), e;
1119
1119
  }
1120
- }, fn = 0, pn = class {
1120
+ }, pn = 0, mn = class {
1121
1121
  constructor(e = null) {
1122
- this.isSource = !0, Object.defineProperty(this, "id", { value: fn++ }), this.uuid = Nt(), this.data = e, this.dataReady = !0, this.version = 0;
1122
+ this.isSource = !0, Object.defineProperty(this, "id", { value: pn++ }), this.uuid = Nt(), this.data = e, this.dataReady = !0, this.version = 0;
1123
1123
  }
1124
1124
  getSize(e) {
1125
1125
  let t = this.data;
@@ -1139,33 +1139,33 @@ var un, dn = class {
1139
1139
  let e;
1140
1140
  if (Array.isArray(r)) {
1141
1141
  e = [];
1142
- for (let t = 0, n = r.length; t < n; t++) r[t].isDataTexture ? e.push(mn(r[t].image)) : e.push(mn(r[t]));
1143
- } else e = mn(r);
1142
+ for (let t = 0, n = r.length; t < n; t++) r[t].isDataTexture ? e.push(hn(r[t].image)) : e.push(hn(r[t]));
1143
+ } else e = hn(r);
1144
1144
  n.url = e;
1145
1145
  }
1146
1146
  return t || (e.images[this.uuid] = n), n;
1147
1147
  }
1148
1148
  };
1149
- function mn(e) {
1150
- return typeof HTMLImageElement < "u" && e instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap ? dn.getDataURL(e) : e.data ? {
1149
+ function hn(e) {
1150
+ return typeof HTMLImageElement < "u" && e instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap ? fn.getDataURL(e) : e.data ? {
1151
1151
  data: Array.from(e.data),
1152
1152
  width: e.width,
1153
1153
  height: e.height,
1154
1154
  type: e.data.constructor.name
1155
1155
  } : (k("Texture: Unable to serialize Texture."), {});
1156
1156
  }
1157
- var hn = 0, gn = /* @__PURE__ */ new I(), R = class e extends kt {
1157
+ var gn = 0, _n = /* @__PURE__ */ new I(), L = class e extends kt {
1158
1158
  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: hn++ }), this.uuid = Nt(), this.name = "", this.source = new pn(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;
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;
1160
1160
  }
1161
1161
  get width() {
1162
- return this.source.getSize(gn).x;
1162
+ return this.source.getSize(_n).x;
1163
1163
  }
1164
1164
  get height() {
1165
- return this.source.getSize(gn).y;
1165
+ return this.source.getSize(_n).y;
1166
1166
  }
1167
1167
  get depth() {
1168
- return this.source.getSize(gn).z;
1168
+ return this.source.getSize(_n).z;
1169
1169
  }
1170
1170
  get image() {
1171
1171
  return this.source.data;
@@ -1276,8 +1276,8 @@ var hn = 0, gn = /* @__PURE__ */ new I(), R = class e extends kt {
1276
1276
  e === !0 && this.pmremVersion++;
1277
1277
  }
1278
1278
  };
1279
- R.DEFAULT_IMAGE = null, R.DEFAULT_MAPPING = 300, R.DEFAULT_ANISOTROPY = 1;
1280
- var _n = class e {
1279
+ L.DEFAULT_IMAGE = null, L.DEFAULT_MAPPING = 300, L.DEFAULT_ANISOTROPY = 1;
1280
+ var vn = class e {
1281
1281
  static {
1282
1282
  e.prototype.isVector4 = !0;
1283
1283
  }
@@ -1477,7 +1477,7 @@ var _n = class e {
1477
1477
  *[Symbol.iterator]() {
1478
1478
  yield this.x, yield this.y, yield this.z, yield this.w;
1479
1479
  }
1480
- }, vn = class extends kt {
1480
+ }, yn = class extends kt {
1481
1481
  constructor(e = 1, t = 1, n = {}) {
1482
1482
  super(), n = Object.assign({
1483
1483
  generateMipmaps: !1,
@@ -1492,8 +1492,8 @@ var _n = class e {
1492
1492
  count: 1,
1493
1493
  depth: 1,
1494
1494
  multiview: !1
1495
- }, n), this.isRenderTarget = !0, this.width = e, this.height = t, this.depth = n.depth, this.scissor = new _n(0, 0, e, t), this.scissorTest = !1, this.viewport = new _n(0, 0, e, t), this.textures = [];
1496
- let r = new R({
1495
+ }, 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 = [];
1496
+ let r = new L({
1497
1497
  width: e,
1498
1498
  height: t,
1499
1499
  depth: n.depth
@@ -1539,18 +1539,18 @@ var _n = class e {
1539
1539
  for (let t = 0, n = e.textures.length; t < n; t++) {
1540
1540
  this.textures[t] = e.textures[t].clone(), this.textures[t].isRenderTargetTexture = !0, this.textures[t].renderTarget = this;
1541
1541
  let n = Object.assign({}, e.textures[t].image);
1542
- this.textures[t].source = new pn(n);
1542
+ this.textures[t].source = new mn(n);
1543
1543
  }
1544
1544
  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;
1545
1545
  }
1546
1546
  dispose() {
1547
1547
  this.dispatchEvent({ type: "dispose" });
1548
1548
  }
1549
- }, yn = class extends vn {
1549
+ }, bn = class extends yn {
1550
1550
  constructor(e = 1, t = 1, n = {}) {
1551
1551
  super(e, t, n), this.isWebGLRenderTarget = !0;
1552
1552
  }
1553
- }, bn = class extends R {
1553
+ }, xn = class extends L {
1554
1554
  constructor(e = null, t = 1, n = 1, i = 1) {
1555
1555
  super(null), this.isDataArrayTexture = !0, this.image = {
1556
1556
  data: e,
@@ -1565,7 +1565,7 @@ var _n = class e {
1565
1565
  clearLayerUpdates() {
1566
1566
  this.layerUpdates.clear();
1567
1567
  }
1568
- }, xn = class extends R {
1568
+ }, Sn = class extends L {
1569
1569
  constructor(e = null, t = 1, n = 1, i = 1) {
1570
1570
  super(null), this.isData3DTexture = !0, this.image = {
1571
1571
  data: e,
@@ -1574,7 +1574,7 @@ var _n = class e {
1574
1574
  depth: i
1575
1575
  }, this.magFilter = a, this.minFilter = a, this.wrapR = r, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
1576
1576
  }
1577
- }, z = class e {
1577
+ }, R = class e {
1578
1578
  static {
1579
1579
  e.prototype.isMatrix4 = !0;
1580
1580
  }
@@ -1628,7 +1628,7 @@ var _n = class e {
1628
1628
  }
1629
1629
  extractRotation(e) {
1630
1630
  if (e.determinant() === 0) return this.identity();
1631
- let t = this.elements, n = e.elements, r = 1 / Sn.setFromMatrixColumn(e, 0).length(), i = 1 / Sn.setFromMatrixColumn(e, 1).length(), a = 1 / Sn.setFromMatrixColumn(e, 2).length();
1631
+ 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();
1632
1632
  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;
1633
1633
  }
1634
1634
  makeRotationFromEuler(e) {
@@ -1655,11 +1655,11 @@ var _n = class e {
1655
1655
  return t[3] = 0, t[7] = 0, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;
1656
1656
  }
1657
1657
  makeRotationFromQuaternion(e) {
1658
- return this.compose(wn, e, Tn);
1658
+ return this.compose(Tn, e, En);
1659
1659
  }
1660
1660
  lookAt(e, t, n) {
1661
1661
  let r = this.elements;
1662
- return B.subVectors(e, t), B.lengthSq() === 0 && (B.z = 1), B.normalize(), En.crossVectors(n, B), En.lengthSq() === 0 && (Math.abs(n.z) === 1 ? B.x += 1e-4 : B.z += 1e-4, B.normalize(), En.crossVectors(n, B)), En.normalize(), Dn.crossVectors(B, En), r[0] = En.x, r[4] = Dn.x, r[8] = B.x, r[1] = En.y, r[5] = Dn.y, r[9] = B.y, r[2] = En.z, r[6] = Dn.z, r[10] = B.z, this;
1662
+ 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;
1663
1663
  }
1664
1664
  multiply(e) {
1665
1665
  return this.multiplyMatrices(this, e);
@@ -1735,10 +1735,10 @@ var _n = class e {
1735
1735
  e.x = r[12], e.y = r[13], e.z = r[14];
1736
1736
  let i = this.determinant();
1737
1737
  if (i === 0) return n.set(1, 1, 1), t.identity(), this;
1738
- let a = Sn.set(r[0], r[1], r[2]).length(), o = Sn.set(r[4], r[5], r[6]).length(), s = Sn.set(r[8], r[9], r[10]).length();
1739
- i < 0 && (a = -a), Cn.copy(this);
1738
+ 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();
1739
+ i < 0 && (a = -a), wn.copy(this);
1740
1740
  let c = 1 / a, l = 1 / o, u = 1 / s;
1741
- return Cn.elements[0] *= c, Cn.elements[1] *= c, Cn.elements[2] *= c, Cn.elements[4] *= l, Cn.elements[5] *= l, Cn.elements[6] *= l, Cn.elements[8] *= u, Cn.elements[9] *= u, Cn.elements[10] *= u, t.setFromRotationMatrix(Cn), n.x = a, n.y = o, n.z = s, this;
1741
+ 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;
1742
1742
  }
1743
1743
  makePerspective(e, t, n, r, i, a, o = ft, s = !1) {
1744
1744
  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;
@@ -1769,7 +1769,7 @@ var _n = class e {
1769
1769
  let n = this.elements;
1770
1770
  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;
1771
1771
  }
1772
- }, Sn = /* @__PURE__ */ new I(), Cn = /* @__PURE__ */ new z(), wn = /* @__PURE__ */ new I(0, 0, 0), Tn = /* @__PURE__ */ new I(1, 1, 1), En = /* @__PURE__ */ new I(), Dn = /* @__PURE__ */ new I(), B = /* @__PURE__ */ new I(), On = /* @__PURE__ */ new z(), kn = /* @__PURE__ */ new $t(), An = class e {
1772
+ }, 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 {
1773
1773
  constructor(t = 0, n = 0, r = 0, i = e.DEFAULT_ORDER) {
1774
1774
  this.isEuler = !0, this._x = t, this._y = n, this._z = r, this._order = i;
1775
1775
  }
@@ -1832,13 +1832,13 @@ var _n = class e {
1832
1832
  return this._order = t, n === !0 && this._onChangeCallback(), this;
1833
1833
  }
1834
1834
  setFromQuaternion(e, t, n) {
1835
- return On.makeRotationFromQuaternion(e), this.setFromRotationMatrix(On, t, n);
1835
+ return kn.makeRotationFromQuaternion(e), this.setFromRotationMatrix(kn, t, n);
1836
1836
  }
1837
1837
  setFromVector3(e, t = this._order) {
1838
1838
  return this.set(e.x, e.y, e.z, t);
1839
1839
  }
1840
1840
  reorder(e) {
1841
- return kn.setFromEuler(this), this.setFromQuaternion(kn, e);
1841
+ return An.setFromEuler(this), this.setFromQuaternion(An, e);
1842
1842
  }
1843
1843
  equals(e) {
1844
1844
  return e._x === this._x && e._y === this._y && e._z === this._z && e._order === this._order;
@@ -1857,8 +1857,8 @@ var _n = class e {
1857
1857
  yield this._x, yield this._y, yield this._z, yield this._order;
1858
1858
  }
1859
1859
  };
1860
- An.DEFAULT_ORDER = "XYZ";
1861
- var jn = class {
1860
+ jn.DEFAULT_ORDER = "XYZ";
1861
+ var Mn = class {
1862
1862
  constructor() {
1863
1863
  this.mask = 1;
1864
1864
  }
@@ -1886,16 +1886,16 @@ var jn = class {
1886
1886
  isEnabled(e) {
1887
1887
  return (this.mask & (1 << e | 0)) != 0;
1888
1888
  }
1889
- }, Mn = 0, Nn = /* @__PURE__ */ new I(), Pn = /* @__PURE__ */ new $t(), Fn = /* @__PURE__ */ new z(), In = /* @__PURE__ */ new I(), Ln = /* @__PURE__ */ new I(), Rn = /* @__PURE__ */ new I(), zn = /* @__PURE__ */ new $t(), Bn = /* @__PURE__ */ new I(1, 0, 0), Vn = /* @__PURE__ */ new I(0, 1, 0), Hn = /* @__PURE__ */ new I(0, 0, 1), Un = { type: "added" }, Wn = { type: "removed" }, Gn = {
1889
+ }, 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 = {
1890
1890
  type: "childadded",
1891
1891
  child: null
1892
- }, Kn = {
1892
+ }, qn = {
1893
1893
  type: "childremoved",
1894
1894
  child: null
1895
- }, V = class e extends kt {
1895
+ }, B = class e extends kt {
1896
1896
  constructor() {
1897
- super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Mn++ }), this.uuid = Nt(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = e.DEFAULT_UP.clone();
1898
- let t = new I(), n = new An(), r = new $t(), i = new I(1, 1, 1);
1897
+ 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();
1898
+ let t = new I(), n = new jn(), r = new $t(), i = new I(1, 1, 1);
1899
1899
  function a() {
1900
1900
  r.setFromEuler(n, !1);
1901
1901
  }
@@ -1923,9 +1923,9 @@ var jn = class {
1923
1923
  enumerable: !0,
1924
1924
  value: i
1925
1925
  },
1926
- modelViewMatrix: { value: new z() },
1926
+ modelViewMatrix: { value: new R() },
1927
1927
  normalMatrix: { value: new nn() }
1928
- }), this.matrix = new z(), this.matrixWorld = new z(), this.matrixAutoUpdate = e.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new jn(), 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;
1928
+ }), 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;
1929
1929
  }
1930
1930
  onBeforeShadow() {}
1931
1931
  onAfterShadow() {}
@@ -1950,49 +1950,49 @@ var jn = class {
1950
1950
  this.quaternion.copy(e);
1951
1951
  }
1952
1952
  rotateOnAxis(e, t) {
1953
- return Pn.setFromAxisAngle(e, t), this.quaternion.multiply(Pn), this;
1953
+ return Fn.setFromAxisAngle(e, t), this.quaternion.multiply(Fn), this;
1954
1954
  }
1955
1955
  rotateOnWorldAxis(e, t) {
1956
- return Pn.setFromAxisAngle(e, t), this.quaternion.premultiply(Pn), this;
1956
+ return Fn.setFromAxisAngle(e, t), this.quaternion.premultiply(Fn), this;
1957
1957
  }
1958
1958
  rotateX(e) {
1959
- return this.rotateOnAxis(Bn, e);
1959
+ return this.rotateOnAxis(Vn, e);
1960
1960
  }
1961
1961
  rotateY(e) {
1962
- return this.rotateOnAxis(Vn, e);
1962
+ return this.rotateOnAxis(Hn, e);
1963
1963
  }
1964
1964
  rotateZ(e) {
1965
- return this.rotateOnAxis(Hn, e);
1965
+ return this.rotateOnAxis(Un, e);
1966
1966
  }
1967
1967
  translateOnAxis(e, t) {
1968
- return Nn.copy(e).applyQuaternion(this.quaternion), this.position.add(Nn.multiplyScalar(t)), this;
1968
+ return Pn.copy(e).applyQuaternion(this.quaternion), this.position.add(Pn.multiplyScalar(t)), this;
1969
1969
  }
1970
1970
  translateX(e) {
1971
- return this.translateOnAxis(Bn, e);
1971
+ return this.translateOnAxis(Vn, e);
1972
1972
  }
1973
1973
  translateY(e) {
1974
- return this.translateOnAxis(Vn, e);
1974
+ return this.translateOnAxis(Hn, e);
1975
1975
  }
1976
1976
  translateZ(e) {
1977
- return this.translateOnAxis(Hn, e);
1977
+ return this.translateOnAxis(Un, e);
1978
1978
  }
1979
1979
  localToWorld(e) {
1980
1980
  return this.updateWorldMatrix(!0, !1), e.applyMatrix4(this.matrixWorld);
1981
1981
  }
1982
1982
  worldToLocal(e) {
1983
- return this.updateWorldMatrix(!0, !1), e.applyMatrix4(Fn.copy(this.matrixWorld).invert());
1983
+ return this.updateWorldMatrix(!0, !1), e.applyMatrix4(In.copy(this.matrixWorld).invert());
1984
1984
  }
1985
1985
  lookAt(e, t, n) {
1986
- e.isVector3 ? In.copy(e) : In.set(e, t, n);
1986
+ e.isVector3 ? Ln.copy(e) : Ln.set(e, t, n);
1987
1987
  let r = this.parent;
1988
- this.updateWorldMatrix(!0, !1), Ln.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? Fn.lookAt(Ln, In, this.up) : Fn.lookAt(In, Ln, this.up), this.quaternion.setFromRotationMatrix(Fn), r && (Fn.extractRotation(r.matrixWorld), Pn.setFromRotationMatrix(Fn), this.quaternion.premultiply(Pn.invert()));
1988
+ 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()));
1989
1989
  }
1990
1990
  add(e) {
1991
1991
  if (arguments.length > 1) {
1992
1992
  for (let e = 0; e < arguments.length; e++) this.add(arguments[e]);
1993
1993
  return this;
1994
1994
  }
1995
- 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(Un), Gn.child = e, this.dispatchEvent(Gn), Gn.child = null) : A("Object3D.add: object not an instance of THREE.Object3D.", e), this);
1995
+ 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);
1996
1996
  }
1997
1997
  remove(e) {
1998
1998
  if (arguments.length > 1) {
@@ -2000,7 +2000,7 @@ var jn = class {
2000
2000
  return this;
2001
2001
  }
2002
2002
  let t = this.children.indexOf(e);
2003
- return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(Wn), Kn.child = e, this.dispatchEvent(Kn), Kn.child = null), this;
2003
+ return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(Gn), qn.child = e, this.dispatchEvent(qn), qn.child = null), this;
2004
2004
  }
2005
2005
  removeFromParent() {
2006
2006
  let e = this.parent;
@@ -2010,7 +2010,7 @@ var jn = class {
2010
2010
  return this.remove(...this.children);
2011
2011
  }
2012
2012
  attach(e) {
2013
- return this.updateWorldMatrix(!0, !1), Fn.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), Fn.multiply(e.parent.matrixWorld)), e.applyMatrix4(Fn), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(Un), Gn.child = e, this.dispatchEvent(Gn), Gn.child = null, this;
2013
+ 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;
2014
2014
  }
2015
2015
  getObjectById(e) {
2016
2016
  return this.getObjectByProperty("id", e);
@@ -2035,10 +2035,10 @@ var jn = class {
2035
2035
  return this.updateWorldMatrix(!0, !1), e.setFromMatrixPosition(this.matrixWorld);
2036
2036
  }
2037
2037
  getWorldQuaternion(e) {
2038
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Ln, e, Rn), e;
2038
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Rn, e, zn), e;
2039
2039
  }
2040
2040
  getWorldScale(e) {
2041
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Ln, zn, e), e;
2041
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Rn, Bn, e), e;
2042
2042
  }
2043
2043
  getWorldDirection(e) {
2044
2044
  this.updateWorldMatrix(!0, !1);
@@ -2161,23 +2161,23 @@ var jn = class {
2161
2161
  return this;
2162
2162
  }
2163
2163
  };
2164
- V.DEFAULT_UP = /* @__PURE__ */ new I(0, 1, 0), V.DEFAULT_MATRIX_AUTO_UPDATE = !0, V.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
2165
- var qn = class extends V {
2164
+ B.DEFAULT_UP = /* @__PURE__ */ new I(0, 1, 0), B.DEFAULT_MATRIX_AUTO_UPDATE = !0, B.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
2165
+ var Jn = class extends B {
2166
2166
  constructor() {
2167
2167
  super(), this.isGroup = !0, this.type = "Group";
2168
2168
  }
2169
- }, Jn = { type: "move" }, Yn = class {
2169
+ }, Yn = { type: "move" }, Xn = class {
2170
2170
  constructor() {
2171
2171
  this._targetRay = null, this._grip = null, this._hand = null;
2172
2172
  }
2173
2173
  getHandSpace() {
2174
- return this._hand === null && (this._hand = new qn(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand;
2174
+ 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;
2175
2175
  }
2176
2176
  getTargetRaySpace() {
2177
- return this._targetRay === null && (this._targetRay = new qn(), 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;
2177
+ 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;
2178
2178
  }
2179
2179
  getGripSpace() {
2180
- return this._grip === null && (this._grip = new qn(), 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;
2180
+ 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;
2181
2181
  }
2182
2182
  dispatchEvent(e) {
2183
2183
  return this._targetRay !== null && this._targetRay.dispatchEvent(e), this._grip !== null && this._grip.dispatchEvent(e), this._hand !== null && this._hand.dispatchEvent(e), this;
@@ -2222,18 +2222,18 @@ var qn = class extends V {
2222
2222
  data: e,
2223
2223
  target: this
2224
2224
  })));
2225
- 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(Jn)));
2225
+ 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)));
2226
2226
  }
2227
2227
  return o !== null && (o.visible = r !== null), s !== null && (s.visible = i !== null), c !== null && (c.visible = a !== null), this;
2228
2228
  }
2229
2229
  _getHandJoint(e, t) {
2230
2230
  if (e.joints[t.jointName] === void 0) {
2231
- let n = new qn();
2231
+ let n = new Jn();
2232
2232
  n.matrixAutoUpdate = !1, n.visible = !1, e.joints[t.jointName] = n, e.add(n);
2233
2233
  }
2234
2234
  return e.joints[t.jointName];
2235
2235
  }
2236
- }, Xn = {
2236
+ }, Zn = {
2237
2237
  aliceblue: 15792383,
2238
2238
  antiquewhite: 16444375,
2239
2239
  aqua: 65535,
@@ -2382,19 +2382,19 @@ var qn = class extends V {
2382
2382
  whitesmoke: 16119285,
2383
2383
  yellow: 16776960,
2384
2384
  yellowgreen: 10145074
2385
- }, Zn = {
2385
+ }, Qn = {
2386
2386
  h: 0,
2387
2387
  s: 0,
2388
2388
  l: 0
2389
- }, Qn = {
2389
+ }, $n = {
2390
2390
  h: 0,
2391
2391
  s: 0,
2392
2392
  l: 0
2393
2393
  };
2394
- function $n(e, t, n) {
2394
+ function er(e, t, n) {
2395
2395
  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;
2396
2396
  }
2397
- var H = class {
2397
+ var V = class {
2398
2398
  constructor(e, t, n) {
2399
2399
  return this.isColor = !0, this.r = 1, this.g = 1, this.b = 1, this.set(e, t, n);
2400
2400
  }
@@ -2409,18 +2409,18 @@ var H = class {
2409
2409
  return this.r = e, this.g = e, this.b = e, this;
2410
2410
  }
2411
2411
  setHex(e, t = Qe) {
2412
- return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, L.colorSpaceToWorking(this, t), this;
2412
+ 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;
2413
2413
  }
2414
- setRGB(e, t, n, r = L.workingColorSpace) {
2415
- return this.r = e, this.g = t, this.b = n, L.colorSpaceToWorking(this, r), this;
2414
+ setRGB(e, t, n, r = cn.workingColorSpace) {
2415
+ return this.r = e, this.g = t, this.b = n, cn.colorSpaceToWorking(this, r), this;
2416
2416
  }
2417
- setHSL(e, t, n, r = L.workingColorSpace) {
2417
+ setHSL(e, t, n, r = cn.workingColorSpace) {
2418
2418
  if (e = Pt(e, 1), t = M(t, 0, 1), n = M(n, 0, 1), t === 0) this.r = this.g = this.b = n;
2419
2419
  else {
2420
2420
  let r = n <= .5 ? n * (1 + t) : n + t - n * t, i = 2 * n - r;
2421
- this.r = $n(i, r, e + 1 / 3), this.g = $n(i, r, e), this.b = $n(i, r, e - 1 / 3);
2421
+ this.r = er(i, r, e + 1 / 3), this.g = er(i, r, e), this.b = er(i, r, e - 1 / 3);
2422
2422
  }
2423
- return L.colorSpaceToWorking(this, r), this;
2423
+ return cn.colorSpaceToWorking(this, r), this;
2424
2424
  }
2425
2425
  setStyle(e, t = Qe) {
2426
2426
  function n(t) {
@@ -2450,7 +2450,7 @@ var H = class {
2450
2450
  return this;
2451
2451
  }
2452
2452
  setColorName(e, t = Qe) {
2453
- let n = Xn[e.toLowerCase()];
2453
+ let n = Zn[e.toLowerCase()];
2454
2454
  return n === void 0 ? k("Color: Unknown color " + e) : this.setHex(n, t), this;
2455
2455
  }
2456
2456
  clone() {
@@ -2460,10 +2460,10 @@ var H = class {
2460
2460
  return this.r = e.r, this.g = e.g, this.b = e.b, this;
2461
2461
  }
2462
2462
  copySRGBToLinear(e) {
2463
- return this.r = cn(e.r), this.g = cn(e.g), this.b = cn(e.b), this;
2463
+ return this.r = ln(e.r), this.g = ln(e.g), this.b = ln(e.b), this;
2464
2464
  }
2465
2465
  copyLinearToSRGB(e) {
2466
- return this.r = ln(e.r), this.g = ln(e.g), this.b = ln(e.b), this;
2466
+ return this.r = un(e.r), this.g = un(e.g), this.b = un(e.b), this;
2467
2467
  }
2468
2468
  convertSRGBToLinear() {
2469
2469
  return this.copySRGBToLinear(this), this;
@@ -2472,14 +2472,14 @@ var H = class {
2472
2472
  return this.copyLinearToSRGB(this), this;
2473
2473
  }
2474
2474
  getHex(e = Qe) {
2475
- return L.workingToColorSpace(U.copy(this), e), Math.round(M(U.r * 255, 0, 255)) * 65536 + Math.round(M(U.g * 255, 0, 255)) * 256 + Math.round(M(U.b * 255, 0, 255));
2475
+ 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));
2476
2476
  }
2477
2477
  getHexString(e = Qe) {
2478
2478
  return ("000000" + this.getHex(e).toString(16)).slice(-6);
2479
2479
  }
2480
- getHSL(e, t = L.workingColorSpace) {
2481
- L.workingToColorSpace(U.copy(this), t);
2482
- 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;
2480
+ getHSL(e, t = cn.workingColorSpace) {
2481
+ cn.workingToColorSpace(H.copy(this), t);
2482
+ 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;
2483
2483
  if (o === a) s = 0, c = 0;
2484
2484
  else {
2485
2485
  let e = a - o;
@@ -2498,16 +2498,16 @@ var H = class {
2498
2498
  }
2499
2499
  return e.h = s, e.s = c, e.l = l, e;
2500
2500
  }
2501
- getRGB(e, t = L.workingColorSpace) {
2502
- return L.workingToColorSpace(U.copy(this), t), e.r = U.r, e.g = U.g, e.b = U.b, e;
2501
+ getRGB(e, t = cn.workingColorSpace) {
2502
+ return cn.workingToColorSpace(H.copy(this), t), e.r = H.r, e.g = H.g, e.b = H.b, e;
2503
2503
  }
2504
2504
  getStyle(e = Qe) {
2505
- L.workingToColorSpace(U.copy(this), e);
2506
- let t = U.r, n = U.g, r = U.b;
2505
+ cn.workingToColorSpace(H.copy(this), e);
2506
+ let t = H.r, n = H.g, r = H.b;
2507
2507
  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)})`;
2508
2508
  }
2509
2509
  offsetHSL(e, t, n) {
2510
- return this.getHSL(Zn), this.setHSL(Zn.h + e, Zn.s + t, Zn.l + n);
2510
+ return this.getHSL(Qn), this.setHSL(Qn.h + e, Qn.s + t, Qn.l + n);
2511
2511
  }
2512
2512
  add(e) {
2513
2513
  return this.r += e.r, this.g += e.g, this.b += e.b, this;
@@ -2534,8 +2534,8 @@ var H = class {
2534
2534
  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;
2535
2535
  }
2536
2536
  lerpHSL(e, t) {
2537
- this.getHSL(Zn), e.getHSL(Qn);
2538
- let n = Lt(Zn.h, Qn.h, t), r = Lt(Zn.s, Qn.s, t), i = Lt(Zn.l, Qn.l, t);
2537
+ this.getHSL(Qn), e.getHSL($n);
2538
+ let n = Lt(Qn.h, $n.h, t), r = Lt(Qn.s, $n.s, t), i = Lt(Qn.l, $n.l, t);
2539
2539
  return this.setHSL(n, r, i), this;
2540
2540
  }
2541
2541
  setFromVector3(e) {
@@ -2563,11 +2563,11 @@ var H = class {
2563
2563
  *[Symbol.iterator]() {
2564
2564
  yield this.r, yield this.g, yield this.b;
2565
2565
  }
2566
- }, U = /* @__PURE__ */ new H();
2567
- H.NAMES = Xn;
2568
- var er = class e {
2566
+ }, H = /* @__PURE__ */ new V();
2567
+ V.NAMES = Zn;
2568
+ var tr = class e {
2569
2569
  constructor(e, t = 1, n = 1e3) {
2570
- this.isFog = !0, this.name = "", this.color = new H(e), this.near = t, this.far = n;
2570
+ this.isFog = !0, this.name = "", this.color = new V(e), this.near = t, this.far = n;
2571
2571
  }
2572
2572
  clone() {
2573
2573
  return new e(this.color, this.near, this.far);
@@ -2581,9 +2581,9 @@ var er = class e {
2581
2581
  far: this.far
2582
2582
  };
2583
2583
  }
2584
- }, tr = class extends V {
2584
+ }, nr = class extends B {
2585
2585
  constructor() {
2586
- 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 An(), this.environmentIntensity = 1, this.environmentRotation = new An(), this.overrideMaterial = null, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
2586
+ 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 }));
2587
2587
  }
2588
2588
  copy(e, t) {
2589
2589
  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;
@@ -2592,33 +2592,33 @@ var er = class e {
2592
2592
  let t = super.toJSON(e);
2593
2593
  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;
2594
2594
  }
2595
- }, nr = /* @__PURE__ */ new I(), 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 _n(), pr = /* @__PURE__ */ new _n(), mr = /* @__PURE__ */ new _n(), hr = class e {
2595
+ }, 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 {
2596
2596
  constructor(e = new I(), t = new I(), n = new I()) {
2597
2597
  this.a = e, this.b = t, this.c = n;
2598
2598
  }
2599
2599
  static getNormal(e, t, n, r) {
2600
- r.subVectors(n, t), nr.subVectors(e, t), r.cross(nr);
2600
+ r.subVectors(n, t), rr.subVectors(e, t), r.cross(rr);
2601
2601
  let i = r.lengthSq();
2602
2602
  return i > 0 ? r.multiplyScalar(1 / Math.sqrt(i)) : r.set(0, 0, 0);
2603
2603
  }
2604
2604
  static getBarycoord(e, t, n, r, i) {
2605
- nr.subVectors(r, t), rr.subVectors(n, t), ir.subVectors(e, t);
2606
- let a = nr.dot(nr), o = nr.dot(rr), s = nr.dot(ir), c = rr.dot(rr), l = rr.dot(ir), u = a * c - o * o;
2605
+ rr.subVectors(r, t), ir.subVectors(n, t), ar.subVectors(e, t);
2606
+ 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;
2607
2607
  if (u === 0) return i.set(0, 0, 0), null;
2608
2608
  let d = 1 / u, f = (c * s - o * l) * d, p = (a * l - o * s) * d;
2609
2609
  return i.set(1 - f - p, p, f);
2610
2610
  }
2611
2611
  static containsPoint(e, t, n, r) {
2612
- return this.getBarycoord(e, t, n, r, ar) === null ? !1 : ar.x >= 0 && ar.y >= 0 && ar.x + ar.y <= 1;
2612
+ return this.getBarycoord(e, t, n, r, or) === null ? !1 : or.x >= 0 && or.y >= 0 && or.x + or.y <= 1;
2613
2613
  }
2614
2614
  static getInterpolation(e, t, n, r, i, a, o, s) {
2615
- return this.getBarycoord(e, t, n, r, ar) === 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, ar.x), s.addScaledVector(a, ar.y), s.addScaledVector(o, ar.z), s);
2615
+ 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);
2616
2616
  }
2617
2617
  static getInterpolatedAttribute(e, t, n, r, i, a) {
2618
- return fr.setScalar(0), pr.setScalar(0), mr.setScalar(0), fr.fromBufferAttribute(e, t), pr.fromBufferAttribute(e, n), mr.fromBufferAttribute(e, r), a.setScalar(0), a.addScaledVector(fr, i.x), a.addScaledVector(pr, i.y), a.addScaledVector(mr, i.z), a;
2618
+ 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;
2619
2619
  }
2620
2620
  static isFrontFacing(e, t, n, r) {
2621
- return nr.subVectors(n, t), rr.subVectors(e, t), nr.cross(rr).dot(r) < 0;
2621
+ return rr.subVectors(n, t), ir.subVectors(e, t), rr.cross(ir).dot(r) < 0;
2622
2622
  }
2623
2623
  set(e, t, n) {
2624
2624
  return this.a.copy(e), this.b.copy(t), this.c.copy(n), this;
@@ -2636,7 +2636,7 @@ var er = class e {
2636
2636
  return this.a.copy(e.a), this.b.copy(e.b), this.c.copy(e.c), this;
2637
2637
  }
2638
2638
  getArea() {
2639
- return nr.subVectors(this.c, this.b), rr.subVectors(this.a, this.b), nr.cross(rr).length() * .5;
2639
+ return rr.subVectors(this.c, this.b), ir.subVectors(this.a, this.b), rr.cross(ir).length() * .5;
2640
2640
  }
2641
2641
  getMidpoint(e) {
2642
2642
  return e.addVectors(this.a, this.b).add(this.c).multiplyScalar(1 / 3);
@@ -2664,28 +2664,28 @@ var er = class e {
2664
2664
  }
2665
2665
  closestPointToPoint(e, t) {
2666
2666
  let n = this.a, r = this.b, i = this.c, a, o;
2667
- or.subVectors(r, n), sr.subVectors(i, n), lr.subVectors(e, n);
2668
- let s = or.dot(lr), c = sr.dot(lr);
2667
+ sr.subVectors(r, n), cr.subVectors(i, n), ur.subVectors(e, n);
2668
+ let s = sr.dot(ur), c = cr.dot(ur);
2669
2669
  if (s <= 0 && c <= 0) return t.copy(n);
2670
- ur.subVectors(e, r);
2671
- let l = or.dot(ur), u = sr.dot(ur);
2670
+ dr.subVectors(e, r);
2671
+ let l = sr.dot(dr), u = cr.dot(dr);
2672
2672
  if (l >= 0 && u <= l) return t.copy(r);
2673
2673
  let d = s * u - l * c;
2674
- if (d <= 0 && s >= 0 && l <= 0) return a = s / (s - l), t.copy(n).addScaledVector(or, a);
2675
- dr.subVectors(e, i);
2676
- let f = or.dot(dr), p = sr.dot(dr);
2674
+ if (d <= 0 && s >= 0 && l <= 0) return a = s / (s - l), t.copy(n).addScaledVector(sr, a);
2675
+ fr.subVectors(e, i);
2676
+ let f = sr.dot(fr), p = cr.dot(fr);
2677
2677
  if (p >= 0 && f <= p) return t.copy(i);
2678
2678
  let m = f * c - s * p;
2679
- if (m <= 0 && c >= 0 && p <= 0) return o = c / (c - p), t.copy(n).addScaledVector(sr, o);
2679
+ if (m <= 0 && c >= 0 && p <= 0) return o = c / (c - p), t.copy(n).addScaledVector(cr, o);
2680
2680
  let h = l * p - f * u;
2681
- if (h <= 0 && u - l >= 0 && f - p >= 0) return cr.subVectors(i, r), o = (u - l) / (u - l + (f - p)), t.copy(r).addScaledVector(cr, o);
2681
+ 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);
2682
2682
  let g = 1 / (h + m + d);
2683
- return a = m * g, o = d * g, t.copy(n).addScaledVector(or, a).addScaledVector(sr, o);
2683
+ return a = m * g, o = d * g, t.copy(n).addScaledVector(sr, a).addScaledVector(cr, o);
2684
2684
  }
2685
2685
  equals(e) {
2686
2686
  return e.a.equals(this.a) && e.b.equals(this.b) && e.c.equals(this.c);
2687
2687
  }
2688
- }, gr = class {
2688
+ }, _r = class {
2689
2689
  constructor(e = new I(Infinity, Infinity, Infinity), t = new I(-Infinity, -Infinity, -Infinity)) {
2690
2690
  this.isBox3 = !0, this.min = e, this.max = t;
2691
2691
  }
@@ -2694,12 +2694,12 @@ var er = class e {
2694
2694
  }
2695
2695
  setFromArray(e) {
2696
2696
  this.makeEmpty();
2697
- for (let t = 0, n = e.length; t < n; t += 3) this.expandByPoint(vr.fromArray(e, t));
2697
+ for (let t = 0, n = e.length; t < n; t += 3) this.expandByPoint(yr.fromArray(e, t));
2698
2698
  return this;
2699
2699
  }
2700
2700
  setFromBufferAttribute(e) {
2701
2701
  this.makeEmpty();
2702
- for (let t = 0, n = e.count; t < n; t++) this.expandByPoint(vr.fromBufferAttribute(e, t));
2702
+ for (let t = 0, n = e.count; t < n; t++) this.expandByPoint(yr.fromBufferAttribute(e, t));
2703
2703
  return this;
2704
2704
  }
2705
2705
  setFromPoints(e) {
@@ -2708,7 +2708,7 @@ var er = class e {
2708
2708
  return this;
2709
2709
  }
2710
2710
  setFromCenterAndSize(e, t) {
2711
- let n = vr.copy(t).multiplyScalar(.5);
2711
+ let n = yr.copy(t).multiplyScalar(.5);
2712
2712
  return this.min.copy(e).sub(n), this.max.copy(e).add(n), this;
2713
2713
  }
2714
2714
  setFromObject(e, t = !1) {
@@ -2746,8 +2746,8 @@ var er = class e {
2746
2746
  let n = e.geometry;
2747
2747
  if (n !== void 0) {
2748
2748
  let r = n.getAttribute("position");
2749
- 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, vr) : vr.fromBufferAttribute(r, t), vr.applyMatrix4(e.matrixWorld), this.expandByPoint(vr);
2750
- else e.boundingBox === void 0 ? (n.boundingBox === null && n.computeBoundingBox(), yr.copy(n.boundingBox)) : (e.boundingBox === null && e.computeBoundingBox(), yr.copy(e.boundingBox)), yr.applyMatrix4(e.matrixWorld), this.union(yr);
2749
+ 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);
2750
+ 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);
2751
2751
  }
2752
2752
  let r = e.children;
2753
2753
  for (let e = 0, n = r.length; e < n; e++) this.expandByObject(r[e], t);
@@ -2766,7 +2766,7 @@ var er = class e {
2766
2766
  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;
2767
2767
  }
2768
2768
  intersectsSphere(e) {
2769
- return this.clampPoint(e.center, vr), vr.distanceToSquared(e.center) <= e.radius * e.radius;
2769
+ return this.clampPoint(e.center, yr), yr.distanceToSquared(e.center) <= e.radius * e.radius;
2770
2770
  }
2771
2771
  intersectsPlane(e) {
2772
2772
  let t, n;
@@ -2774,37 +2774,37 @@ var er = class e {
2774
2774
  }
2775
2775
  intersectsTriangle(e) {
2776
2776
  if (this.isEmpty()) return !1;
2777
- this.getCenter(Er), Dr.subVectors(this.max, Er), br.subVectors(e.a, Er), xr.subVectors(e.b, Er), Sr.subVectors(e.c, Er), Cr.subVectors(xr, br), wr.subVectors(Sr, xr), Tr.subVectors(br, Sr);
2777
+ 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);
2778
2778
  let t = [
2779
- 0,
2780
- -Cr.z,
2781
- Cr.y,
2782
2779
  0,
2783
2780
  -wr.z,
2784
2781
  wr.y,
2785
2782
  0,
2786
2783
  -Tr.z,
2787
2784
  Tr.y,
2788
- Cr.z,
2789
2785
  0,
2790
- -Cr.x,
2786
+ -Er.z,
2787
+ Er.y,
2791
2788
  wr.z,
2792
2789
  0,
2793
2790
  -wr.x,
2794
2791
  Tr.z,
2795
2792
  0,
2796
2793
  -Tr.x,
2797
- -Cr.y,
2798
- Cr.x,
2794
+ Er.z,
2799
2795
  0,
2796
+ -Er.x,
2800
2797
  -wr.y,
2801
2798
  wr.x,
2802
2799
  0,
2803
2800
  -Tr.y,
2804
2801
  Tr.x,
2802
+ 0,
2803
+ -Er.y,
2804
+ Er.x,
2805
2805
  0
2806
2806
  ];
2807
- return !Ar(t, br, xr, Sr, Dr) || (t = [
2807
+ return !jr(t, xr, Sr, Cr, Or) || (t = [
2808
2808
  1,
2809
2809
  0,
2810
2810
  0,
@@ -2814,20 +2814,20 @@ var er = class e {
2814
2814
  0,
2815
2815
  0,
2816
2816
  1
2817
- ], !Ar(t, br, xr, Sr, Dr)) ? !1 : (Or.crossVectors(Cr, wr), t = [
2818
- Or.x,
2819
- Or.y,
2820
- Or.z
2821
- ], Ar(t, br, xr, Sr, Dr));
2817
+ ], !jr(t, xr, Sr, Cr, Or)) ? !1 : (kr.crossVectors(wr, Tr), t = [
2818
+ kr.x,
2819
+ kr.y,
2820
+ kr.z
2821
+ ], jr(t, xr, Sr, Cr, Or));
2822
2822
  }
2823
2823
  clampPoint(e, t) {
2824
2824
  return t.copy(e).clamp(this.min, this.max);
2825
2825
  }
2826
2826
  distanceToPoint(e) {
2827
- return this.clampPoint(e, vr).distanceTo(e);
2827
+ return this.clampPoint(e, yr).distanceTo(e);
2828
2828
  }
2829
2829
  getBoundingSphere(e) {
2830
- return this.isEmpty() ? e.makeEmpty() : (this.getCenter(e.center), e.radius = this.getSize(vr).length() * .5), e;
2830
+ return this.isEmpty() ? e.makeEmpty() : (this.getCenter(e.center), e.radius = this.getSize(yr).length() * .5), e;
2831
2831
  }
2832
2832
  intersect(e) {
2833
2833
  return this.min.max(e.min), this.max.min(e.max), this.isEmpty() && this.makeEmpty(), this;
@@ -2836,7 +2836,7 @@ var er = class e {
2836
2836
  return this.min.min(e.min), this.max.max(e.max), this;
2837
2837
  }
2838
2838
  applyMatrix4(e) {
2839
- return this.isEmpty() ? this : (_r[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(e), _r[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(e), _r[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(e), _r[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(e), _r[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(e), _r[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(e), _r[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(e), _r[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(e), this.setFromPoints(_r), this);
2839
+ 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);
2840
2840
  }
2841
2841
  translate(e) {
2842
2842
  return this.min.add(e), this.max.add(e), this;
@@ -2853,7 +2853,7 @@ var er = class e {
2853
2853
  fromJSON(e) {
2854
2854
  return this.min.fromArray(e.min), this.max.fromArray(e.max), this;
2855
2855
  }
2856
- }, _r = [
2856
+ }, vr = [
2857
2857
  /* @__PURE__ */ new I(),
2858
2858
  /* @__PURE__ */ new I(),
2859
2859
  /* @__PURE__ */ new I(),
@@ -2862,17 +2862,17 @@ var er = class e {
2862
2862
  /* @__PURE__ */ new I(),
2863
2863
  /* @__PURE__ */ new I(),
2864
2864
  /* @__PURE__ */ new I()
2865
- ], vr = /* @__PURE__ */ new I(), yr = /* @__PURE__ */ new gr(), br = /* @__PURE__ */ new I(), 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();
2866
- function Ar(e, t, n, r, i) {
2865
+ ], 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();
2866
+ function jr(e, t, n, r, i) {
2867
2867
  for (let a = 0, o = e.length - 3; a <= o; a += 3) {
2868
- kr.fromArray(e, a);
2869
- let o = i.x * Math.abs(kr.x) + i.y * Math.abs(kr.y) + i.z * Math.abs(kr.z), s = t.dot(kr), c = n.dot(kr), l = r.dot(kr);
2868
+ Ar.fromArray(e, a);
2869
+ 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);
2870
2870
  if (Math.max(-Math.max(s, c, l), Math.min(s, c, l)) > o) return !1;
2871
2871
  }
2872
2872
  return !0;
2873
2873
  }
2874
- var jr = /* @__PURE__ */ Mr();
2875
- function Mr() {
2874
+ var Mr = /* @__PURE__ */ Nr();
2875
+ function Nr() {
2876
2876
  let e = /* @__PURE__ */ new ArrayBuffer(4), t = new Float32Array(e), n = new Uint32Array(e), r = new Uint32Array(512), i = new Uint32Array(512);
2877
2877
  for (let e = 0; e < 256; ++e) {
2878
2878
  let t = e - 127;
@@ -2900,26 +2900,26 @@ function Mr() {
2900
2900
  offsetTable: s
2901
2901
  };
2902
2902
  }
2903
- function W(e) {
2904
- Math.abs(e) > 65504 && k("DataUtils.toHalfFloat(): Value out of range."), e = M(e, -65504, 65504), jr.floatView[0] = e;
2905
- let t = jr.uint32View[0], n = t >> 23 & 511;
2906
- return jr.baseTable[n] + ((t & 8388607) >> jr.shiftTable[n]);
2903
+ function U(e) {
2904
+ Math.abs(e) > 65504 && k("DataUtils.toHalfFloat(): Value out of range."), e = M(e, -65504, 65504), Mr.floatView[0] = e;
2905
+ let t = Mr.uint32View[0], n = t >> 23 & 511;
2906
+ return Mr.baseTable[n] + ((t & 8388607) >> Mr.shiftTable[n]);
2907
2907
  }
2908
- function Nr(e) {
2908
+ function Pr(e) {
2909
2909
  let t = e >> 10;
2910
- return jr.uint32View[0] = jr.mantissaTable[jr.offsetTable[t] + (e & 1023)] + jr.exponentTable[t], jr.floatView[0];
2910
+ return Mr.uint32View[0] = Mr.mantissaTable[Mr.offsetTable[t] + (e & 1023)] + Mr.exponentTable[t], Mr.floatView[0];
2911
2911
  }
2912
- var Pr = class {
2912
+ var Fr = class {
2913
2913
  static toHalfFloat(e) {
2914
- return W(e);
2914
+ return U(e);
2915
2915
  }
2916
2916
  static fromHalfFloat(e) {
2917
- return Nr(e);
2917
+ return Pr(e);
2918
2918
  }
2919
- }, G = /* @__PURE__ */ new I(), Fr = /* @__PURE__ */ new F(), Ir = 0, Lr = class extends kt {
2919
+ }, W = /* @__PURE__ */ new I(), Ir = /* @__PURE__ */ new F(), Lr = 0, Rr = class extends kt {
2920
2920
  constructor(e, t, n = !1) {
2921
2921
  if (super(), Array.isArray(e)) throw TypeError("THREE.BufferAttribute: array should be a Typed Array.");
2922
- this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: Ir++ }), 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;
2922
+ 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;
2923
2923
  }
2924
2924
  onUploadCallback() {}
2925
2925
  set needsUpdate(e) {
@@ -2949,20 +2949,20 @@ var Pr = class {
2949
2949
  return this.array.set(e), this;
2950
2950
  }
2951
2951
  applyMatrix3(e) {
2952
- if (this.itemSize === 2) for (let t = 0, n = this.count; t < n; t++) Fr.fromBufferAttribute(this, t), Fr.applyMatrix3(e), this.setXY(t, Fr.x, Fr.y);
2953
- 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);
2952
+ 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);
2953
+ 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);
2954
2954
  return this;
2955
2955
  }
2956
2956
  applyMatrix4(e) {
2957
- 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);
2957
+ 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);
2958
2958
  return this;
2959
2959
  }
2960
2960
  applyNormalMatrix(e) {
2961
- 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);
2961
+ 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);
2962
2962
  return this;
2963
2963
  }
2964
2964
  transformDirection(e) {
2965
- 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);
2965
+ 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);
2966
2966
  return this;
2967
2967
  }
2968
2968
  set(e, t = 0) {
@@ -3030,60 +3030,60 @@ var Pr = class {
3030
3030
  dispose() {
3031
3031
  this.dispatchEvent({ type: "dispose" });
3032
3032
  }
3033
- }, Rr = class extends Lr {
3033
+ }, zr = class extends Rr {
3034
3034
  constructor(e, t, n) {
3035
3035
  super(new Uint16Array(e), t, n);
3036
3036
  }
3037
- }, zr = class extends Lr {
3037
+ }, Br = class extends Rr {
3038
3038
  constructor(e, t, n) {
3039
3039
  super(new Uint32Array(e), t, n);
3040
3040
  }
3041
- }, Br = class extends Lr {
3041
+ }, Vr = class extends Rr {
3042
3042
  constructor(e, t, n) {
3043
3043
  super(new Uint16Array(e), t, n), this.isFloat16BufferAttribute = !0;
3044
3044
  }
3045
3045
  getX(e) {
3046
- let t = Nr(this.array[e * this.itemSize]);
3046
+ let t = Pr(this.array[e * this.itemSize]);
3047
3047
  return this.normalized && (t = N(t, this.array)), t;
3048
3048
  }
3049
3049
  setX(e, t) {
3050
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize] = W(t), this;
3050
+ return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize] = U(t), this;
3051
3051
  }
3052
3052
  getY(e) {
3053
- let t = Nr(this.array[e * this.itemSize + 1]);
3053
+ let t = Pr(this.array[e * this.itemSize + 1]);
3054
3054
  return this.normalized && (t = N(t, this.array)), t;
3055
3055
  }
3056
3056
  setY(e, t) {
3057
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 1] = W(t), this;
3057
+ return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 1] = U(t), this;
3058
3058
  }
3059
3059
  getZ(e) {
3060
- let t = Nr(this.array[e * this.itemSize + 2]);
3060
+ let t = Pr(this.array[e * this.itemSize + 2]);
3061
3061
  return this.normalized && (t = N(t, this.array)), t;
3062
3062
  }
3063
3063
  setZ(e, t) {
3064
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 2] = W(t), this;
3064
+ return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 2] = U(t), this;
3065
3065
  }
3066
3066
  getW(e) {
3067
- let t = Nr(this.array[e * this.itemSize + 3]);
3067
+ let t = Pr(this.array[e * this.itemSize + 3]);
3068
3068
  return this.normalized && (t = N(t, this.array)), t;
3069
3069
  }
3070
3070
  setW(e, t) {
3071
- return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 3] = W(t), this;
3071
+ return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 3] = U(t), this;
3072
3072
  }
3073
3073
  setXY(e, t, n) {
3074
- return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array)), this.array[e + 0] = W(t), this.array[e + 1] = W(n), this;
3074
+ 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;
3075
3075
  }
3076
3076
  setXYZ(e, t, n, r) {
3077
- 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] = W(t), this.array[e + 1] = W(n), this.array[e + 2] = W(r), this;
3077
+ 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;
3078
3078
  }
3079
3079
  setXYZW(e, t, n, r, i) {
3080
- 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] = W(t), this.array[e + 1] = W(n), this.array[e + 2] = W(r), this.array[e + 3] = W(i), this;
3080
+ 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;
3081
3081
  }
3082
- }, K = class extends Lr {
3082
+ }, G = class extends Rr {
3083
3083
  constructor(e, t, n) {
3084
3084
  super(new Float32Array(e), t, n);
3085
3085
  }
3086
- }, Vr = /* @__PURE__ */ new gr(), Hr = /* @__PURE__ */ new I(), Ur = /* @__PURE__ */ new I(), Wr = class {
3086
+ }, Hr = /* @__PURE__ */ new _r(), Ur = /* @__PURE__ */ new I(), Wr = /* @__PURE__ */ new I(), Gr = class {
3087
3087
  constructor(e = new I(), t = -1) {
3088
3088
  this.isSphere = !0, this.center = e, this.radius = t;
3089
3089
  }
@@ -3092,7 +3092,7 @@ var Pr = class {
3092
3092
  }
3093
3093
  setFromPoints(e, t) {
3094
3094
  let n = this.center;
3095
- t === void 0 ? Vr.setFromPoints(e).getCenter(n) : n.copy(t);
3095
+ t === void 0 ? Hr.setFromPoints(e).getCenter(n) : n.copy(t);
3096
3096
  let r = 0;
3097
3097
  for (let t = 0, i = e.length; t < i; t++) r = Math.max(r, n.distanceToSquared(e[t]));
3098
3098
  return this.radius = Math.sqrt(r), this;
@@ -3137,16 +3137,16 @@ var Pr = class {
3137
3137
  }
3138
3138
  expandByPoint(e) {
3139
3139
  if (this.isEmpty()) return this.center.copy(e), this.radius = 0, this;
3140
- Hr.subVectors(e, this.center);
3141
- let t = Hr.lengthSq();
3140
+ Ur.subVectors(e, this.center);
3141
+ let t = Ur.lengthSq();
3142
3142
  if (t > this.radius * this.radius) {
3143
3143
  let e = Math.sqrt(t), n = (e - this.radius) * .5;
3144
- this.center.addScaledVector(Hr, n / e), this.radius += n;
3144
+ this.center.addScaledVector(Ur, n / e), this.radius += n;
3145
3145
  }
3146
3146
  return this;
3147
3147
  }
3148
3148
  union(e) {
3149
- return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (Ur.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(Hr.copy(e.center).add(Ur)), this.expandByPoint(Hr.copy(e.center).sub(Ur))), this);
3149
+ 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);
3150
3150
  }
3151
3151
  equals(e) {
3152
3152
  return e.center.equals(this.center) && e.radius === this.radius;
@@ -3163,9 +3163,9 @@ var Pr = class {
3163
3163
  fromJSON(e) {
3164
3164
  return this.radius = e.radius, this.center.fromArray(e.center), this;
3165
3165
  }
3166
- }, Gr = 0, Kr = /* @__PURE__ */ new z(), qr = /* @__PURE__ */ new V(), Jr = /* @__PURE__ */ new I(), Yr = /* @__PURE__ */ new gr(), Xr = /* @__PURE__ */ new gr(), q = /* @__PURE__ */ new I(), Zr = class e extends kt {
3166
+ }, 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 {
3167
3167
  constructor() {
3168
- super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Gr++ }), 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 = {
3168
+ 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 = {
3169
3169
  start: 0,
3170
3170
  count: Infinity
3171
3171
  }, this.userData = {};
@@ -3174,7 +3174,7 @@ var Pr = class {
3174
3174
  return this.index;
3175
3175
  }
3176
3176
  setIndex(e) {
3177
- return Array.isArray(e) ? this.index = new (gt(e) ? zr : Rr)(e, 1) : this.index = e, this;
3177
+ return Array.isArray(e) ? this.index = new (gt(e) ? Br : zr)(e, 1) : this.index = e, this;
3178
3178
  }
3179
3179
  setIndirect(e, t = 0) {
3180
3180
  return this.indirect = e, this.indirectOffset = t, this;
@@ -3219,28 +3219,28 @@ var Pr = class {
3219
3219
  return r !== void 0 && (r.transformDirection(e), r.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
3220
3220
  }
3221
3221
  applyQuaternion(e) {
3222
- return Kr.makeRotationFromQuaternion(e), this.applyMatrix4(Kr), this;
3222
+ return qr.makeRotationFromQuaternion(e), this.applyMatrix4(qr), this;
3223
3223
  }
3224
3224
  rotateX(e) {
3225
- return Kr.makeRotationX(e), this.applyMatrix4(Kr), this;
3225
+ return qr.makeRotationX(e), this.applyMatrix4(qr), this;
3226
3226
  }
3227
3227
  rotateY(e) {
3228
- return Kr.makeRotationY(e), this.applyMatrix4(Kr), this;
3228
+ return qr.makeRotationY(e), this.applyMatrix4(qr), this;
3229
3229
  }
3230
3230
  rotateZ(e) {
3231
- return Kr.makeRotationZ(e), this.applyMatrix4(Kr), this;
3231
+ return qr.makeRotationZ(e), this.applyMatrix4(qr), this;
3232
3232
  }
3233
3233
  translate(e, t, n) {
3234
- return Kr.makeTranslation(e, t, n), this.applyMatrix4(Kr), this;
3234
+ return qr.makeTranslation(e, t, n), this.applyMatrix4(qr), this;
3235
3235
  }
3236
3236
  scale(e, t, n) {
3237
- return Kr.makeScale(e, t, n), this.applyMatrix4(Kr), this;
3237
+ return qr.makeScale(e, t, n), this.applyMatrix4(qr), this;
3238
3238
  }
3239
3239
  lookAt(e) {
3240
- return qr.lookAt(e), qr.updateMatrix(), this.applyMatrix4(qr.matrix), this;
3240
+ return Jr.lookAt(e), Jr.updateMatrix(), this.applyMatrix4(Jr.matrix), this;
3241
3241
  }
3242
3242
  center() {
3243
- return this.computeBoundingBox(), this.boundingBox.getCenter(Jr).negate(), this.translate(Jr.x, Jr.y, Jr.z), this;
3243
+ return this.computeBoundingBox(), this.boundingBox.getCenter(Yr).negate(), this.translate(Yr.x, Yr.y, Yr.z), this;
3244
3244
  }
3245
3245
  setFromPoints(e) {
3246
3246
  let t = this.getAttribute("position");
@@ -3250,7 +3250,7 @@ var Pr = class {
3250
3250
  let r = e[n];
3251
3251
  t.push(r.x, r.y, r.z || 0);
3252
3252
  }
3253
- this.setAttribute("position", new K(t, 3));
3253
+ this.setAttribute("position", new G(t, 3));
3254
3254
  } else {
3255
3255
  let n = Math.min(e.length, t.count);
3256
3256
  for (let r = 0; r < n; r++) {
@@ -3262,7 +3262,7 @@ var Pr = class {
3262
3262
  return this;
3263
3263
  }
3264
3264
  computeBoundingBox() {
3265
- this.boundingBox === null && (this.boundingBox = new gr());
3265
+ this.boundingBox === null && (this.boundingBox = new _r());
3266
3266
  let e = this.attributes.position, t = this.morphAttributes.position;
3267
3267
  if (e && e.isGLBufferAttribute) {
3268
3268
  A("BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.", this), this.boundingBox.set(new I(-Infinity, -Infinity, -Infinity), new I(Infinity, Infinity, Infinity));
@@ -3271,13 +3271,13 @@ var Pr = class {
3271
3271
  if (e !== void 0) {
3272
3272
  if (this.boundingBox.setFromBufferAttribute(e), t) for (let e = 0, n = t.length; e < n; e++) {
3273
3273
  let n = t[e];
3274
- Yr.setFromBufferAttribute(n), this.morphTargetsRelative ? (q.addVectors(this.boundingBox.min, Yr.min), this.boundingBox.expandByPoint(q), q.addVectors(this.boundingBox.max, Yr.max), this.boundingBox.expandByPoint(q)) : (this.boundingBox.expandByPoint(Yr.min), this.boundingBox.expandByPoint(Yr.max));
3274
+ 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));
3275
3275
  }
3276
3276
  } else this.boundingBox.makeEmpty();
3277
3277
  (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);
3278
3278
  }
3279
3279
  computeBoundingSphere() {
3280
- this.boundingSphere === null && (this.boundingSphere = new Wr());
3280
+ this.boundingSphere === null && (this.boundingSphere = new Gr());
3281
3281
  let e = this.attributes.position, t = this.morphAttributes.position;
3282
3282
  if (e && e.isGLBufferAttribute) {
3283
3283
  A("BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.", this), this.boundingSphere.set(new I(), Infinity);
@@ -3285,16 +3285,16 @@ var Pr = class {
3285
3285
  }
3286
3286
  if (e) {
3287
3287
  let n = this.boundingSphere.center;
3288
- if (Yr.setFromBufferAttribute(e), t) for (let e = 0, n = t.length; e < n; e++) {
3288
+ if (K.setFromBufferAttribute(e), t) for (let e = 0, n = t.length; e < n; e++) {
3289
3289
  let n = t[e];
3290
- Xr.setFromBufferAttribute(n), this.morphTargetsRelative ? (q.addVectors(Yr.min, Xr.min), Yr.expandByPoint(q), q.addVectors(Yr.max, Xr.max), Yr.expandByPoint(q)) : (Yr.expandByPoint(Xr.min), Yr.expandByPoint(Xr.max));
3290
+ 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));
3291
3291
  }
3292
- Yr.getCenter(n);
3292
+ K.getCenter(n);
3293
3293
  let r = 0;
3294
3294
  for (let t = 0, i = e.count; t < i; t++) q.fromBufferAttribute(e, t), r = Math.max(r, n.distanceToSquared(q));
3295
3295
  if (t) for (let i = 0, a = t.length; i < a; i++) {
3296
3296
  let a = t[i], o = this.morphTargetsRelative;
3297
- for (let t = 0, i = a.count; t < i; t++) q.fromBufferAttribute(a, t), o && (Jr.fromBufferAttribute(e, t), q.add(Jr)), r = Math.max(r, n.distanceToSquared(q));
3297
+ 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));
3298
3298
  }
3299
3299
  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);
3300
3300
  }
@@ -3306,7 +3306,7 @@ var Pr = class {
3306
3306
  return;
3307
3307
  }
3308
3308
  let n = t.position, r = t.normal, i = t.uv;
3309
- this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new Lr(new Float32Array(4 * n.count), 4));
3309
+ this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new Rr(new Float32Array(4 * n.count), 4));
3310
3310
  let a = this.getAttribute("tangent"), o = [], s = [];
3311
3311
  for (let e = 0; e < n.count; e++) o[e] = new I(), s[e] = new I();
3312
3312
  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();
@@ -3341,7 +3341,7 @@ var Pr = class {
3341
3341
  let e = this.index, t = this.getAttribute("position");
3342
3342
  if (t !== void 0) {
3343
3343
  let n = this.getAttribute("normal");
3344
- if (n === void 0) n = new Lr(new Float32Array(t.count * 3), 3), this.setAttribute("normal", n);
3344
+ if (n === void 0) n = new Rr(new Float32Array(t.count * 3), 3), this.setAttribute("normal", n);
3345
3345
  else for (let e = 0, t = n.count; e < t; e++) n.setXYZ(e, 0, 0, 0);
3346
3346
  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();
3347
3347
  if (e) for (let d = 0, f = e.count; d < f; d += 3) {
@@ -3363,7 +3363,7 @@ var Pr = class {
3363
3363
  o = e.isInterleavedBufferAttribute ? t[i] * e.data.stride + e.offset : t[i] * r;
3364
3364
  for (let e = 0; e < r; e++) a[s++] = n[o++];
3365
3365
  }
3366
- return new Lr(a, r, i);
3366
+ return new Rr(a, r, i);
3367
3367
  }
3368
3368
  if (this.index === null) return k("BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."), this;
3369
3369
  let n = new e(), r = this.index.array, i = this.attributes;
@@ -3583,7 +3583,7 @@ var Pr = class {
3583
3583
  let n = t * this.data.stride + this.offset;
3584
3584
  for (let t = 0; t < this.itemSize; t++) e.push(this.data.array[n + t]);
3585
3585
  }
3586
- return new Lr(new this.array.constructor(e), this.itemSize, this.normalized);
3586
+ return new Rr(new this.array.constructor(e), this.itemSize, this.normalized);
3587
3587
  } 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);
3588
3588
  }
3589
3589
  toJSON(e) {
@@ -3610,7 +3610,7 @@ var Pr = class {
3610
3610
  }
3611
3611
  }, ei = 0, Y = class extends kt {
3612
3612
  constructor() {
3613
- 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 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 = 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;
3613
+ 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;
3614
3614
  }
3615
3615
  get alphaTest() {
3616
3616
  return this._alphaTest;
@@ -3685,7 +3685,7 @@ var Pr = class {
3685
3685
  }
3686
3686
  }, ti = class extends Y {
3687
3687
  constructor(e) {
3688
- 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);
3688
+ 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);
3689
3689
  }
3690
3690
  copy(e) {
3691
3691
  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;
@@ -3791,12 +3791,12 @@ var Pr = class {
3791
3791
  }
3792
3792
  }, ui = class extends Y {
3793
3793
  constructor(e) {
3794
- 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 An(), 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);
3794
+ 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);
3795
3795
  }
3796
3796
  copy(e) {
3797
3797
  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;
3798
3798
  }
3799
- }, di = /* @__PURE__ */ new z(), fi = /* @__PURE__ */ new li(), pi = /* @__PURE__ */ new Wr(), 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 V {
3799
+ }, 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 {
3800
3800
  constructor(e = new Zr(), t = new ui()) {
3801
3801
  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();
3802
3802
  }
@@ -3882,7 +3882,7 @@ function wi(e, t, n, r, i, a, o, s, c, l) {
3882
3882
  let u = Ci(e, t, n, r, hi, gi, _i, bi);
3883
3883
  if (u) {
3884
3884
  let e = new I();
3885
- hr.getBarycoord(bi, hi, gi, _i, e), i && (u.uv = hr.getInterpolatedAttribute(i, s, c, l, e, new F())), a && (u.uv1 = hr.getInterpolatedAttribute(a, s, c, l, e, new F())), o && (u.normal = hr.getInterpolatedAttribute(o, s, c, l, e, new I()), u.normal.dot(r.direction) > 0 && u.normal.multiplyScalar(-1));
3885
+ 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));
3886
3886
  let t = {
3887
3887
  a: s,
3888
3888
  b: c,
@@ -3890,23 +3890,23 @@ function wi(e, t, n, r, i, a, o, s, c, l) {
3890
3890
  normal: new I(),
3891
3891
  materialIndex: 0
3892
3892
  };
3893
- hr.getNormal(hi, gi, _i, t.normal), u.face = t, u.barycoord = e;
3893
+ gr.getNormal(hi, gi, _i, t.normal), u.face = t, u.barycoord = e;
3894
3894
  }
3895
3895
  return u;
3896
3896
  }
3897
- var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PURE__ */ new _n(), Oi = /* @__PURE__ */ new _n(), ki = /* @__PURE__ */ new z(), Ai = /* @__PURE__ */ new I(), ji = /* @__PURE__ */ new Wr(), Mi = /* @__PURE__ */ new z(), Ni = /* @__PURE__ */ new li(), Pi = class extends Si {
3897
+ 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 {
3898
3898
  constructor(t, n) {
3899
- super(t, n), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = e, this.bindMatrix = new z(), this.bindMatrixInverse = new z(), this.boundingBox = null, this.boundingSphere = null;
3899
+ 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;
3900
3900
  }
3901
3901
  computeBoundingBox() {
3902
3902
  let e = this.geometry;
3903
- this.boundingBox === null && (this.boundingBox = new gr()), this.boundingBox.makeEmpty();
3903
+ this.boundingBox === null && (this.boundingBox = new _r()), this.boundingBox.makeEmpty();
3904
3904
  let t = e.getAttribute("position");
3905
3905
  for (let e = 0; e < t.count; e++) this.getVertexPosition(e, Ai), this.boundingBox.expandByPoint(Ai);
3906
3906
  }
3907
3907
  computeBoundingSphere() {
3908
3908
  let e = this.geometry;
3909
- this.boundingSphere === null && (this.boundingSphere = new Wr()), this.boundingSphere.makeEmpty();
3909
+ this.boundingSphere === null && (this.boundingSphere = new Gr()), this.boundingSphere.makeEmpty();
3910
3910
  let t = e.getAttribute("position");
3911
3911
  for (let e = 0; e < t.count; e++) this.getVertexPosition(e, Ai), this.boundingSphere.expandByPoint(Ai);
3912
3912
  }
@@ -3927,7 +3927,7 @@ var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PUR
3927
3927
  this.skeleton.pose();
3928
3928
  }
3929
3929
  normalizeSkinWeights() {
3930
- let e = new _n(), t = this.geometry.attributes.skinWeight;
3930
+ let e = new vn(), t = this.geometry.attributes.skinWeight;
3931
3931
  for (let n = 0, r = t.count; n < r; n++) {
3932
3932
  e.fromBufferAttribute(t, n);
3933
3933
  let r = 1 / e.manhattanLength();
@@ -3949,11 +3949,11 @@ var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PUR
3949
3949
  }
3950
3950
  return t.isVector4 && (t.w = Ti.w), t.applyMatrix4(this.bindMatrixInverse);
3951
3951
  }
3952
- }, Fi = class extends V {
3952
+ }, Fi = class extends B {
3953
3953
  constructor() {
3954
3954
  super(), this.isBone = !0, this.type = "Bone";
3955
3955
  }
3956
- }, Ii = class extends R {
3956
+ }, Ii = class extends L {
3957
3957
  constructor(e = null, t = 1, n = 1, r, i, o, s, c, l = a, u = a, d, f) {
3958
3958
  super(null, o, s, c, l, u, r, i, d, f), this.isDataTexture = !0, this.image = {
3959
3959
  data: e,
@@ -3961,7 +3961,7 @@ var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PUR
3961
3961
  height: n
3962
3962
  }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
3963
3963
  }
3964
- }, Li = /* @__PURE__ */ new z(), Ri = /* @__PURE__ */ new z(), zi = class e {
3964
+ }, Li = /* @__PURE__ */ new R(), Ri = /* @__PURE__ */ new R(), zi = class e {
3965
3965
  constructor(e = [], t = []) {
3966
3966
  this.uuid = Nt(), this.bones = e.slice(0), this.boneInverses = t, this.boneMatrices = null, this.previousBoneMatrices = null, this.boneTexture = null, this.init();
3967
3967
  }
@@ -3970,13 +3970,13 @@ var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PUR
3970
3970
  if (this.boneMatrices = new Float32Array(e.length * 16), t.length === 0) this.calculateInverses();
3971
3971
  else if (e.length !== t.length) {
3972
3972
  k("Skeleton: Number of inverse bone matrices does not match amount of bones."), this.boneInverses = [];
3973
- for (let e = 0, t = this.bones.length; e < t; e++) this.boneInverses.push(new z());
3973
+ for (let e = 0, t = this.bones.length; e < t; e++) this.boneInverses.push(new R());
3974
3974
  }
3975
3975
  }
3976
3976
  calculateInverses() {
3977
3977
  this.boneInverses.length = 0;
3978
3978
  for (let e = 0, t = this.bones.length; e < t; e++) {
3979
- let t = new z();
3979
+ let t = new R();
3980
3980
  this.bones[e] && t.copy(this.bones[e].matrixWorld).invert(), this.boneInverses.push(t);
3981
3981
  }
3982
3982
  }
@@ -4022,7 +4022,7 @@ var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PUR
4022
4022
  this.uuid = e.uuid;
4023
4023
  for (let n = 0, r = e.bones.length; n < r; n++) {
4024
4024
  let r = e.bones[n], i = t[r];
4025
- i === void 0 && (k("Skeleton: No bone found with UUID:", r), i = new Fi()), this.bones.push(i), this.boneInverses.push(new z().fromArray(e.boneInverses[n]));
4025
+ 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]));
4026
4026
  }
4027
4027
  return this.init(), this;
4028
4028
  }
@@ -4046,7 +4046,7 @@ var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PUR
4046
4046
  }
4047
4047
  return e;
4048
4048
  }
4049
- }, Bi = class extends Lr {
4049
+ }, Bi = class extends Rr {
4050
4050
  constructor(e, t, n, r = 1) {
4051
4051
  super(e, t, n), this.isInstancedBufferAttribute = !0, this.meshPerAttribute = r;
4052
4052
  }
@@ -4057,19 +4057,19 @@ var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PUR
4057
4057
  let e = super.toJSON();
4058
4058
  return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
4059
4059
  }
4060
- }, Vi = /* @__PURE__ */ new z(), Hi = /* @__PURE__ */ new z(), Ui = [], Wi = /* @__PURE__ */ new gr(), Gi = /* @__PURE__ */ new z(), Ki = /* @__PURE__ */ new Si(), qi = /* @__PURE__ */ new Wr(), Ji = class extends Si {
4060
+ }, 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 {
4061
4061
  constructor(e, t, n) {
4062
4062
  super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new Bi(new Float32Array(n * 16), 16), this.previousInstanceMatrix = null, this.instanceColor = null, this.morphTexture = null, this.count = n, this.boundingBox = null, this.boundingSphere = null;
4063
4063
  for (let e = 0; e < n; e++) this.setMatrixAt(e, Gi);
4064
4064
  }
4065
4065
  computeBoundingBox() {
4066
4066
  let e = this.geometry, t = this.count;
4067
- this.boundingBox === null && (this.boundingBox = new gr()), e.boundingBox === null && e.computeBoundingBox(), this.boundingBox.makeEmpty();
4067
+ this.boundingBox === null && (this.boundingBox = new _r()), e.boundingBox === null && e.computeBoundingBox(), this.boundingBox.makeEmpty();
4068
4068
  for (let n = 0; n < t; n++) this.getMatrixAt(n, Vi), Wi.copy(e.boundingBox).applyMatrix4(Vi), this.boundingBox.union(Wi);
4069
4069
  }
4070
4070
  computeBoundingSphere() {
4071
4071
  let e = this.geometry, t = this.count;
4072
- this.boundingSphere === null && (this.boundingSphere = new Wr()), e.boundingSphere === null && e.computeBoundingSphere(), this.boundingSphere.makeEmpty();
4072
+ this.boundingSphere === null && (this.boundingSphere = new Gr()), e.boundingSphere === null && e.computeBoundingSphere(), this.boundingSphere.makeEmpty();
4073
4073
  for (let n = 0; n < t; n++) this.getMatrixAt(n, Vi), qi.copy(e.boundingSphere).applyMatrix4(Vi), this.boundingSphere.union(qi);
4074
4074
  }
4075
4075
  copy(e, t) {
@@ -4182,7 +4182,7 @@ var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PUR
4182
4182
  clone() {
4183
4183
  return new this.constructor().copy(this);
4184
4184
  }
4185
- }, $i = /* @__PURE__ */ new Wr(), ea = /* @__PURE__ */ new F(.5, .5), ta = /* @__PURE__ */ new I(), na = class {
4185
+ }, $i = /* @__PURE__ */ new Gr(), ea = /* @__PURE__ */ new F(.5, .5), ta = /* @__PURE__ */ new I(), na = class {
4186
4186
  constructor(e = new Qi(), t = new Qi(), n = new Qi(), r = new Qi(), i = new Qi(), a = new Qi()) {
4187
4187
  this.planes = [
4188
4188
  e,
@@ -4242,7 +4242,7 @@ var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PUR
4242
4242
  clone() {
4243
4243
  return new this.constructor().copy(this);
4244
4244
  }
4245
- }, ra = /* @__PURE__ */ new z(), ia = /* @__PURE__ */ new na(), aa = class e {
4245
+ }, ra = /* @__PURE__ */ new R(), ia = /* @__PURE__ */ new na(), aa = class e {
4246
4246
  constructor() {
4247
4247
  this.coordinateSystem = ft;
4248
4248
  }
@@ -4291,12 +4291,12 @@ var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PUR
4291
4291
  }
4292
4292
  }, oa = class extends Y {
4293
4293
  constructor(e) {
4294
- 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);
4294
+ 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);
4295
4295
  }
4296
4296
  copy(e) {
4297
4297
  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;
4298
4298
  }
4299
- }, sa = /* @__PURE__ */ new I(), ca = /* @__PURE__ */ new I(), la = /* @__PURE__ */ new z(), ua = /* @__PURE__ */ new li(), da = /* @__PURE__ */ new Wr(), fa = /* @__PURE__ */ new I(), pa = /* @__PURE__ */ new I(), ma = class extends V {
4299
+ }, sa = /* @__PURE__ */ new I(), ca = /* @__PURE__ */ new I(), la = /* @__PURE__ */ new R(), ua = /* @__PURE__ */ new li(), da = /* @__PURE__ */ new Gr(), fa = /* @__PURE__ */ new I(), pa = /* @__PURE__ */ new I(), ma = class extends B {
4300
4300
  constructor(e = new Zr(), t = new oa()) {
4301
4301
  super(), this.isLine = !0, this.type = "Line", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
4302
4302
  }
@@ -4308,7 +4308,7 @@ var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PUR
4308
4308
  if (e.index === null) {
4309
4309
  let t = e.attributes.position, n = [0];
4310
4310
  for (let e = 1, r = t.count; e < r; e++) sa.fromBufferAttribute(t, e - 1), ca.fromBufferAttribute(t, e), n[e] = n[e - 1], n[e] += sa.distanceTo(ca);
4311
- e.setAttribute("lineDistance", new K(n, 1));
4311
+ e.setAttribute("lineDistance", new G(n, 1));
4312
4312
  } else k("Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
4313
4313
  return this;
4314
4314
  }
@@ -4377,7 +4377,7 @@ var ga = /* @__PURE__ */ new I(), _a = /* @__PURE__ */ new I(), va = class exten
4377
4377
  if (e.index === null) {
4378
4378
  let t = e.attributes.position, n = [];
4379
4379
  for (let e = 0, r = t.count; e < r; e += 2) ga.fromBufferAttribute(t, e), _a.fromBufferAttribute(t, e + 1), n[e] = e === 0 ? 0 : n[e - 1], n[e + 1] = n[e] + ga.distanceTo(_a);
4380
- e.setAttribute("lineDistance", new K(n, 1));
4380
+ e.setAttribute("lineDistance", new G(n, 1));
4381
4381
  } else k("LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
4382
4382
  return this;
4383
4383
  }
@@ -4387,12 +4387,12 @@ var ga = /* @__PURE__ */ new I(), _a = /* @__PURE__ */ new I(), va = class exten
4387
4387
  }
4388
4388
  }, ba = class extends Y {
4389
4389
  constructor(e) {
4390
- 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);
4390
+ 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);
4391
4391
  }
4392
4392
  copy(e) {
4393
4393
  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;
4394
4394
  }
4395
- }, xa = /* @__PURE__ */ new z(), Sa = /* @__PURE__ */ new li(), Ca = /* @__PURE__ */ new Wr(), wa = /* @__PURE__ */ new I(), Ta = class extends V {
4395
+ }, xa = /* @__PURE__ */ new R(), Sa = /* @__PURE__ */ new li(), Ca = /* @__PURE__ */ new Gr(), wa = /* @__PURE__ */ new I(), Ta = class extends B {
4396
4396
  constructor(e = new Zr(), t = new ba()) {
4397
4397
  super(), this.isPoints = !0, this.type = "Points", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
4398
4398
  }
@@ -4448,21 +4448,21 @@ function Ea(e, t, n, r, i, a, o) {
4448
4448
  });
4449
4449
  }
4450
4450
  }
4451
- var Da = class extends R {
4451
+ var Da = class extends L {
4452
4452
  constructor(e, t) {
4453
4453
  super({
4454
4454
  width: e,
4455
4455
  height: t
4456
4456
  }), this.isFramebufferTexture = !0, this.magFilter = a, this.minFilter = a, this.generateMipmaps = !1, this.needsUpdate = !0;
4457
4457
  }
4458
- }, Oa = class extends R {
4458
+ }, Oa = class extends L {
4459
4459
  constructor(e, t, n, r, i, a, o, s, c, l, u, d) {
4460
4460
  super(null, a, o, s, c, l, r, i, u, d), this.isCompressedTexture = !0, this.image = {
4461
4461
  width: t,
4462
4462
  height: n
4463
4463
  }, this.mipmaps = e, this.flipY = !1, this.generateMipmaps = !1;
4464
4464
  }
4465
- }, ka = class extends R {
4465
+ }, ka = class extends L {
4466
4466
  constructor(e = [], t = 301, n, r, i, a, o, s, c, l) {
4467
4467
  super(e, t, n, r, i, a, o, s, c, l), this.isCubeTexture = !0, this.flipY = !1;
4468
4468
  }
@@ -4472,7 +4472,7 @@ var Da = class extends R {
4472
4472
  set images(e) {
4473
4473
  this.image = e;
4474
4474
  }
4475
- }, Aa = class extends R {
4475
+ }, Aa = class extends L {
4476
4476
  constructor(e, t, n = _, r, i, o, s = a, c = a, l, u = ee, d = 1) {
4477
4477
  if (u !== 1026 && u !== 1027) throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
4478
4478
  super({
@@ -4482,7 +4482,7 @@ var Da = class extends R {
4482
4482
  }, r, i, o, s, c, u, n, l), this.isDepthTexture = !0, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
4483
4483
  }
4484
4484
  copy(e) {
4485
- return super.copy(e), this.source = new pn(Object.assign({}, e.image)), this.compareFunction = e.compareFunction, this;
4485
+ return super.copy(e), this.source = new mn(Object.assign({}, e.image)), this.compareFunction = e.compareFunction, this;
4486
4486
  }
4487
4487
  toJSON(e) {
4488
4488
  let t = super.toJSON(e);
@@ -4510,7 +4510,7 @@ var Da = class extends R {
4510
4510
  set images(e) {
4511
4511
  this.image = e;
4512
4512
  }
4513
- }, Ma = class extends R {
4513
+ }, Ma = class extends L {
4514
4514
  constructor(e = null) {
4515
4515
  super(), this.sourceTexture = e, this.isExternalTexture = !0;
4516
4516
  }
@@ -4530,7 +4530,7 @@ var Da = class extends R {
4530
4530
  let o = this;
4531
4531
  r = Math.floor(r), i = Math.floor(i), a = Math.floor(a);
4532
4532
  let s = [], c = [], l = [], u = [], d = 0, f = 0;
4533
- 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));
4533
+ 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));
4534
4534
  function p(e, t, n, r, i, a, p, m, h, g, _) {
4535
4535
  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();
4536
4536
  for (let a = 0; a < w; a++) {
@@ -4565,7 +4565,7 @@ var Da = class extends R {
4565
4565
  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);
4566
4566
  }
4567
4567
  for (let e = 1; e <= t; e++) i.push(e, e + 1, 0);
4568
- this.setIndex(i), this.setAttribute("position", new K(a, 3)), this.setAttribute("normal", new K(o, 3)), this.setAttribute("uv", new K(s, 2));
4568
+ this.setIndex(i), this.setAttribute("position", new G(a, 3)), this.setAttribute("normal", new G(o, 3)), this.setAttribute("uv", new G(s, 2));
4569
4569
  }
4570
4570
  copy(e) {
4571
4571
  return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
@@ -4588,7 +4588,7 @@ var Da = class extends R {
4588
4588
  let c = this;
4589
4589
  r = Math.floor(r), i = Math.floor(i);
4590
4590
  let l = [], u = [], d = [], f = [], p = 0, m = [], h = n / 2, g = 0;
4591
- _(), 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));
4591
+ _(), 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));
4592
4592
  function _() {
4593
4593
  let a = new I(), _ = new I(), v = 0, y = (t - e) / n;
4594
4594
  for (let c = 0; c <= i; c++) {
@@ -4641,7 +4641,7 @@ var Da = class extends R {
4641
4641
  static fromJSON(t) {
4642
4642
  return new e(t.radius, t.height, t.radialSegments, t.heightSegments, t.openEnded, t.thetaStart, t.thetaLength);
4643
4643
  }
4644
- }, La = /* @__PURE__ */ new I(), Ra = /* @__PURE__ */ new I(), za = /* @__PURE__ */ new I(), Ba = /* @__PURE__ */ new hr(), Va = class extends Zr {
4644
+ }, La = /* @__PURE__ */ new I(), Ra = /* @__PURE__ */ new I(), za = /* @__PURE__ */ new I(), Ba = /* @__PURE__ */ new gr(), Va = class extends Zr {
4645
4645
  constructor(e = null, t = 1) {
4646
4646
  if (super(), this.type = "EdgesGeometry", this.parameters = {
4647
4647
  geometry: e,
@@ -4676,7 +4676,7 @@ var Da = class extends R {
4676
4676
  let { index0: t, index1: n } = u[e];
4677
4677
  La.fromBufferAttribute(a, t), Ra.fromBufferAttribute(a, n), d.push(La.x, La.y, La.z), d.push(Ra.x, Ra.y, Ra.z);
4678
4678
  }
4679
- this.setAttribute("position", new K(d, 3));
4679
+ this.setAttribute("position", new G(d, 3));
4680
4680
  }
4681
4681
  }
4682
4682
  copy(e) {
@@ -4743,7 +4743,7 @@ var Da = class extends R {
4743
4743
  return this.getTangent(n, t);
4744
4744
  }
4745
4745
  computeFrenetFrames(e, t = !1) {
4746
- let n = new I(), r = [], i = [], a = [], o = new I(), s = new z();
4746
+ let n = new I(), r = [], i = [], a = [], o = new I(), s = new R();
4747
4747
  for (let t = 0; t <= e; t++) {
4748
4748
  let n = t / e;
4749
4749
  r[t] = this.getTangentAt(n, new I());
@@ -5568,7 +5568,7 @@ var ns = class e extends Zr {
5568
5568
  let n = t + c * e, r = t + c * (e + 1), i = t + 1 + c * (e + 1), a = t + 1 + c * e;
5569
5569
  f.push(n, r, a), f.push(r, i, a);
5570
5570
  }
5571
- this.setIndex(f), this.setAttribute("position", new K(p, 3)), this.setAttribute("normal", new K(m, 3)), this.setAttribute("uv", new K(h, 2));
5571
+ this.setIndex(f), this.setAttribute("position", new G(p, 3)), this.setAttribute("normal", new G(m, 3)), this.setAttribute("uv", new G(h, 2));
5572
5572
  }
5573
5573
  copy(e) {
5574
5574
  return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
@@ -5601,7 +5601,7 @@ var ns = class e extends Zr {
5601
5601
  o.push(i, a, c), o.push(a, s, c);
5602
5602
  }
5603
5603
  }
5604
- this.setIndex(o), this.setAttribute("position", new K(s, 3)), this.setAttribute("normal", new K(c, 3)), this.setAttribute("uv", new K(l, 2));
5604
+ this.setIndex(o), this.setAttribute("position", new G(s, 3)), this.setAttribute("normal", new G(c, 3)), this.setAttribute("uv", new G(l, 2));
5605
5605
  }
5606
5606
  copy(e) {
5607
5607
  return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
@@ -5622,7 +5622,7 @@ var ns = class e extends Zr {
5622
5622
  let n = [], r = [], i = [], a = [], o = 0, s = 0;
5623
5623
  if (Array.isArray(e) === !1) c(e);
5624
5624
  else for (let t = 0; t < e.length; t++) c(e[t]), this.addGroup(o, s, t), o += s, s = 0;
5625
- this.setIndex(n), this.setAttribute("position", new K(r, 3)), this.setAttribute("normal", new K(i, 3)), this.setAttribute("uv", new K(a, 2));
5625
+ this.setIndex(n), this.setAttribute("position", new G(r, 3)), this.setAttribute("normal", new G(i, 3)), this.setAttribute("uv", new G(a, 2));
5626
5626
  function c(e) {
5627
5627
  let o = r.length / 3, c = e.extractPoints(t), l = c.shape, u = c.holes;
5628
5628
  $o.isClockWise(l) === !1 && (l = l.reverse());
@@ -5694,7 +5694,7 @@ var os = class e extends Zr {
5694
5694
  let t = l[e][r + 1], i = l[e][r], o = l[e + 1][r], c = l[e + 1][r + 1];
5695
5695
  (e !== 0 || a > 0) && f.push(t, i, c), (e !== n - 1 || s < Math.PI) && f.push(i, o, c);
5696
5696
  }
5697
- this.setIndex(f), this.setAttribute("position", new K(p, 3)), this.setAttribute("normal", new K(m, 3)), this.setAttribute("uv", new K(h, 2));
5697
+ this.setIndex(f), this.setAttribute("position", new G(p, 3)), this.setAttribute("normal", new G(m, 3)), this.setAttribute("uv", new G(h, 2));
5698
5698
  }
5699
5699
  copy(e) {
5700
5700
  return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
@@ -5704,7 +5704,7 @@ var os = class e extends Zr {
5704
5704
  }
5705
5705
  }, ss = class extends Y {
5706
5706
  constructor(e) {
5707
- super(), this.isShadowMaterial = !0, this.type = "ShadowMaterial", this.color = new H(0), this.transparent = !0, this.fog = !0, this.setValues(e);
5707
+ super(), this.isShadowMaterial = !0, this.type = "ShadowMaterial", this.color = new V(0), this.transparent = !0, this.fog = !0, this.setValues(e);
5708
5708
  }
5709
5709
  copy(e) {
5710
5710
  return super.copy(e), this.color.copy(e.color), this.fog = e.fog, this;
@@ -5745,7 +5745,7 @@ function ds(e) {
5745
5745
  }
5746
5746
  function fs(e) {
5747
5747
  let t = e.getRenderTarget();
5748
- return t === null ? e.outputColorSpace : t.isXRRenderTarget === !0 ? t.texture.colorSpace : L.workingColorSpace;
5748
+ return t === null ? e.outputColorSpace : t.isXRRenderTarget === !0 ? t.texture.colorSpace : cn.workingColorSpace;
5749
5749
  }
5750
5750
  var ps = {
5751
5751
  clone: cs,
@@ -5807,7 +5807,7 @@ var ps = {
5807
5807
  }
5808
5808
  }, vs = class extends Y {
5809
5809
  constructor(e) {
5810
- 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 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 An(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
5810
+ 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);
5811
5811
  }
5812
5812
  copy(e) {
5813
5813
  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;
@@ -5824,7 +5824,7 @@ var ps = {
5824
5824
  set: function(e) {
5825
5825
  this.ior = (1 + .4 * e) / (1 - .4 * e);
5826
5826
  }
5827
- }), 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._sheen = 0, this._transmission = 0, this.setValues(e);
5827
+ }), 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);
5828
5828
  }
5829
5829
  get anisotropy() {
5830
5830
  return this._anisotropy;
@@ -5870,14 +5870,14 @@ var ps = {
5870
5870
  }
5871
5871
  }, bs = class extends Y {
5872
5872
  constructor(e) {
5873
- 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 F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new An(), 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);
5873
+ 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);
5874
5874
  }
5875
5875
  copy(e) {
5876
5876
  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;
5877
5877
  }
5878
5878
  }, xs = class extends Y {
5879
5879
  constructor(e) {
5880
- 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 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);
5880
+ 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);
5881
5881
  }
5882
5882
  copy(e) {
5883
5883
  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;
@@ -5891,7 +5891,7 @@ var ps = {
5891
5891
  }
5892
5892
  }, Cs = class extends Y {
5893
5893
  constructor(e) {
5894
- 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 F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new An(), 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);
5894
+ 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);
5895
5895
  }
5896
5896
  copy(e) {
5897
5897
  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;
@@ -5912,7 +5912,7 @@ var ps = {
5912
5912
  }
5913
5913
  }, Es = class extends Y {
5914
5914
  constructor(e) {
5915
- 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 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);
5915
+ 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);
5916
5916
  }
5917
5917
  copy(e) {
5918
5918
  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;
@@ -6697,14 +6697,14 @@ var $s = {}, ec = class extends Error {
6697
6697
  super(e);
6698
6698
  }
6699
6699
  load(e, t, n, r) {
6700
- let i = new R(), a = new rc(this.manager);
6700
+ let i = new L(), a = new rc(this.manager);
6701
6701
  return a.setCrossOrigin(this.crossOrigin), a.setPath(this.path), a.load(e, function(e) {
6702
6702
  i.image = e, i.needsUpdate = !0, t !== void 0 && t(i);
6703
6703
  }, n, r), i;
6704
6704
  }
6705
- }, oc = class extends V {
6705
+ }, oc = class extends B {
6706
6706
  constructor(e, t = 1) {
6707
- super(), this.isLight = !0, this.type = "Light", this.color = new H(e), this.intensity = t;
6707
+ super(), this.isLight = !0, this.type = "Light", this.color = new V(e), this.intensity = t;
6708
6708
  }
6709
6709
  dispose() {
6710
6710
  this.dispatchEvent({ type: "dispose" });
@@ -6718,7 +6718,7 @@ var $s = {}, ec = class extends Error {
6718
6718
  }
6719
6719
  }, sc = class extends oc {
6720
6720
  constructor(e, t, n) {
6721
- super(e, n), this.isHemisphereLight = !0, this.type = "HemisphereLight", this.position.copy(V.DEFAULT_UP), this.updateMatrix(), this.groundColor = new H(t);
6721
+ super(e, n), this.isHemisphereLight = !0, this.type = "HemisphereLight", this.position.copy(B.DEFAULT_UP), this.updateMatrix(), this.groundColor = new V(t);
6722
6722
  }
6723
6723
  copy(e, t) {
6724
6724
  return super.copy(e, t), this.groundColor.copy(e.groundColor), this;
@@ -6727,9 +6727,9 @@ var $s = {}, ec = class extends Error {
6727
6727
  let t = super.toJSON(e);
6728
6728
  return t.object.groundColor = this.groundColor.getHex(), t;
6729
6729
  }
6730
- }, cc = /* @__PURE__ */ new z(), lc = /* @__PURE__ */ new I(), uc = /* @__PURE__ */ new I(), dc = class {
6730
+ }, cc = /* @__PURE__ */ new R(), lc = /* @__PURE__ */ new I(), uc = /* @__PURE__ */ new I(), dc = class {
6731
6731
  constructor(e) {
6732
- 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 z(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new na(), this._frameExtents = new F(1, 1), this._viewportCount = 1, this._viewports = [new _n(0, 0, 1, 1)];
6732
+ 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)];
6733
6733
  }
6734
6734
  getViewportCount() {
6735
6735
  return this._viewportCount;
@@ -6760,9 +6760,9 @@ var $s = {}, ec = class extends Error {
6760
6760
  let e = {};
6761
6761
  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;
6762
6762
  }
6763
- }, fc = /* @__PURE__ */ new I(), pc = /* @__PURE__ */ new $t(), mc = /* @__PURE__ */ new I(), hc = class extends V {
6763
+ }, fc = /* @__PURE__ */ new I(), pc = /* @__PURE__ */ new $t(), mc = /* @__PURE__ */ new I(), hc = class extends B {
6764
6764
  constructor() {
6765
- super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new z(), this.projectionMatrix = new z(), this.projectionMatrixInverse = new z(), this.coordinateSystem = ft, this._reversedDepth = !1;
6765
+ 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;
6766
6766
  }
6767
6767
  get reversedDepth() {
6768
6768
  return this._reversedDepth;
@@ -6852,7 +6852,7 @@ var $s = {}, ec = class extends Error {
6852
6852
  }
6853
6853
  }, xc = class extends oc {
6854
6854
  constructor(e, t, n = 0, r = Math.PI / 3, i = 0, a = 2) {
6855
- 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 bc();
6855
+ 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 bc();
6856
6856
  }
6857
6857
  get power() {
6858
6858
  return this.intensity * Math.PI;
@@ -6933,7 +6933,7 @@ var $s = {}, ec = class extends Error {
6933
6933
  }
6934
6934
  }, Ec = class extends oc {
6935
6935
  constructor(e, t) {
6936
- super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(V.DEFAULT_UP), this.updateMatrix(), this.target = new V(), this.shadow = new Tc();
6936
+ super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(B.DEFAULT_UP), this.updateMatrix(), this.target = new B(), this.shadow = new Tc();
6937
6937
  }
6938
6938
  dispose() {
6939
6939
  super.dispose(), this.shadow.dispose();
@@ -7084,7 +7084,7 @@ var $s = {}, ec = class extends Error {
7084
7084
  abort() {
7085
7085
  return this._abortController.abort(), this._abortController = new AbortController(), this;
7086
7086
  }
7087
- }, Pc = -90, Fc = 1, Ic = class extends V {
7087
+ }, Pc = -90, Fc = 1, Ic = class extends B {
7088
7088
  constructor(e, t, n) {
7089
7089
  super(), this.type = "CubeCamera", this.renderTarget = n, this.coordinateSystem = null, this.activeMipmapLevel = 0;
7090
7090
  let r = new yc(Pc, Fc, e, t);
@@ -7400,9 +7400,9 @@ var Yc = class extends Qr {
7400
7400
  let t = super.toJSON(e);
7401
7401
  return t.isInstancedInterleavedBuffer = !0, t.meshPerAttribute = this.meshPerAttribute, t;
7402
7402
  }
7403
- }, Xc = /* @__PURE__ */ new z(), Zc = class {
7403
+ }, Xc = /* @__PURE__ */ new R(), Zc = class {
7404
7404
  constructor(e, t, n = 0, r = Infinity) {
7405
- this.ray = new li(e, t), this.near = n, this.far = r, this.camera = null, this.layers = new jn(), this.params = {
7405
+ this.ray = new li(e, t), this.near = n, this.far = r, this.camera = null, this.layers = new Mn(), this.params = {
7406
7406
  Mesh: {},
7407
7407
  Line: { threshold: 1 },
7408
7408
  LOD: {},
@@ -7482,7 +7482,80 @@ var el = class {
7482
7482
  let i = this.elements;
7483
7483
  return i[0] = e, i[2] = t, i[1] = n, i[3] = r, this;
7484
7484
  }
7485
- }, nl = /* @__PURE__ */ new I(), rl = /* @__PURE__ */ new I(), il = /* @__PURE__ */ new I(), al = /* @__PURE__ */ new I(), ol = /* @__PURE__ */ new I(), sl = /* @__PURE__ */ new I(), cl = /* @__PURE__ */ new I(), ll = class {
7485
+ }, nl = /* @__PURE__ */ new F(), rl = class {
7486
+ constructor(e = new F(Infinity, Infinity), t = new F(-Infinity, -Infinity)) {
7487
+ this.isBox2 = !0, this.min = e, this.max = t;
7488
+ }
7489
+ set(e, t) {
7490
+ return this.min.copy(e), this.max.copy(t), this;
7491
+ }
7492
+ setFromPoints(e) {
7493
+ this.makeEmpty();
7494
+ for (let t = 0, n = e.length; t < n; t++) this.expandByPoint(e[t]);
7495
+ return this;
7496
+ }
7497
+ setFromCenterAndSize(e, t) {
7498
+ let n = nl.copy(t).multiplyScalar(.5);
7499
+ return this.min.copy(e).sub(n), this.max.copy(e).add(n), this;
7500
+ }
7501
+ clone() {
7502
+ return new this.constructor().copy(this);
7503
+ }
7504
+ copy(e) {
7505
+ return this.min.copy(e.min), this.max.copy(e.max), this;
7506
+ }
7507
+ makeEmpty() {
7508
+ return this.min.x = this.min.y = Infinity, this.max.x = this.max.y = -Infinity, this;
7509
+ }
7510
+ isEmpty() {
7511
+ return this.max.x < this.min.x || this.max.y < this.min.y;
7512
+ }
7513
+ getCenter(e) {
7514
+ return this.isEmpty() ? e.set(0, 0) : e.addVectors(this.min, this.max).multiplyScalar(.5);
7515
+ }
7516
+ getSize(e) {
7517
+ return this.isEmpty() ? e.set(0, 0) : e.subVectors(this.max, this.min);
7518
+ }
7519
+ expandByPoint(e) {
7520
+ return this.min.min(e), this.max.max(e), this;
7521
+ }
7522
+ expandByVector(e) {
7523
+ return this.min.sub(e), this.max.add(e), this;
7524
+ }
7525
+ expandByScalar(e) {
7526
+ return this.min.addScalar(-e), this.max.addScalar(e), this;
7527
+ }
7528
+ containsPoint(e) {
7529
+ return e.x >= this.min.x && e.x <= this.max.x && e.y >= this.min.y && e.y <= this.max.y;
7530
+ }
7531
+ containsBox(e) {
7532
+ return this.min.x <= e.min.x && e.max.x <= this.max.x && this.min.y <= e.min.y && e.max.y <= this.max.y;
7533
+ }
7534
+ getParameter(e, t) {
7535
+ return t.set((e.x - this.min.x) / (this.max.x - this.min.x), (e.y - this.min.y) / (this.max.y - this.min.y));
7536
+ }
7537
+ intersectsBox(e) {
7538
+ 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;
7539
+ }
7540
+ clampPoint(e, t) {
7541
+ return t.copy(e).clamp(this.min, this.max);
7542
+ }
7543
+ distanceToPoint(e) {
7544
+ return this.clampPoint(e, nl).distanceTo(e);
7545
+ }
7546
+ intersect(e) {
7547
+ return this.min.max(e.min), this.max.min(e.max), this.isEmpty() && this.makeEmpty(), this;
7548
+ }
7549
+ union(e) {
7550
+ return this.min.min(e.min), this.max.max(e.max), this;
7551
+ }
7552
+ translate(e) {
7553
+ return this.min.add(e), this.max.add(e), this;
7554
+ }
7555
+ equals(e) {
7556
+ return e.min.equals(this.min) && e.max.equals(this.max);
7557
+ }
7558
+ }, il = /* @__PURE__ */ new I(), 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 = class {
7486
7559
  constructor(e = new I(), t = new I()) {
7487
7560
  this.start = e, this.end = t;
7488
7561
  }
@@ -7508,31 +7581,31 @@ var el = class {
7508
7581
  return this.delta(t).multiplyScalar(e).add(this.start);
7509
7582
  }
7510
7583
  closestPointToPointParameter(e, t) {
7511
- nl.subVectors(e, this.start), rl.subVectors(this.end, this.start);
7512
- let n = rl.dot(rl);
7584
+ il.subVectors(e, this.start), al.subVectors(this.end, this.start);
7585
+ let n = al.dot(al);
7513
7586
  if (n === 0) return 0;
7514
- let r = rl.dot(nl) / n;
7587
+ let r = al.dot(il) / n;
7515
7588
  return t && (r = M(r, 0, 1)), r;
7516
7589
  }
7517
7590
  closestPointToPoint(e, t, n) {
7518
7591
  let r = this.closestPointToPointParameter(e, t);
7519
7592
  return this.delta(n).multiplyScalar(r).add(this.start);
7520
7593
  }
7521
- distanceSqToLine3(e, t = sl, n = cl) {
7594
+ distanceSqToLine3(e, t = ll, n = ul) {
7522
7595
  let r = 1e-8 * 1e-8, i, a, o = this.start, s = e.start, c = this.end, l = e.end;
7523
- il.subVectors(c, o), al.subVectors(l, s), ol.subVectors(o, s);
7524
- let u = il.dot(il), d = al.dot(al), f = al.dot(ol);
7596
+ ol.subVectors(c, o), sl.subVectors(l, s), cl.subVectors(o, s);
7597
+ let u = ol.dot(ol), d = sl.dot(sl), f = sl.dot(cl);
7525
7598
  if (u <= r && d <= r) return t.copy(o), n.copy(s), t.sub(n), t.dot(t);
7526
7599
  if (u <= r) i = 0, a = f / d, a = M(a, 0, 1);
7527
7600
  else {
7528
- let e = il.dot(ol);
7601
+ let e = ol.dot(cl);
7529
7602
  if (d <= r) a = 0, i = M(-e / u, 0, 1);
7530
7603
  else {
7531
- let t = il.dot(al), n = u * d - t * t;
7604
+ let t = ol.dot(sl), n = u * d - t * t;
7532
7605
  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));
7533
7606
  }
7534
7607
  }
7535
- return t.copy(o).addScaledVector(il, i), n.copy(s).addScaledVector(al, a), t.distanceToSquared(n);
7608
+ return t.copy(o).addScaledVector(ol, i), n.copy(s).addScaledVector(sl, a), t.distanceToSquared(n);
7536
7609
  }
7537
7610
  applyMatrix4(e) {
7538
7611
  return this.start.applyMatrix4(e), this.end.applyMatrix4(e), this;
@@ -7543,7 +7616,7 @@ var el = class {
7543
7616
  clone() {
7544
7617
  return new this.constructor().copy(this);
7545
7618
  }
7546
- }, ul = /* @__PURE__ */ new I(), Q = /* @__PURE__ */ new hc(), dl = class extends va {
7619
+ }, fl = /* @__PURE__ */ new I(), Q = /* @__PURE__ */ new hc(), pl = class extends va {
7547
7620
  constructor(e) {
7548
7621
  let t = new Zr(), n = new oa({
7549
7622
  color: 16777215,
@@ -7557,8 +7630,8 @@ var el = class {
7557
7630
  function s(e) {
7558
7631
  r.push(0, 0, 0), i.push(0, 0, 0), a[e] === void 0 && (a[e] = []), a[e].push(r.length / 3 - 1);
7559
7632
  }
7560
- 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();
7561
- let c = new H(16755200), l = new H(16711680), u = new H(43775), d = new H(16777215), f = new H(3355443);
7633
+ 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();
7634
+ let c = new V(16755200), l = new V(16711680), u = new V(43775), d = new V(16777215), f = new V(3355443);
7562
7635
  this.setColors(c, l, u, d, f);
7563
7636
  }
7564
7637
  setColors(e, t, n, r, i) {
@@ -7578,15 +7651,15 @@ var el = class {
7578
7651
  }
7579
7652
  };
7580
7653
  function $(e, t, n, r, i, a, o) {
7581
- ul.set(i, a, o).unproject(r);
7654
+ fl.set(i, a, o).unproject(r);
7582
7655
  let s = t[e];
7583
7656
  if (s !== void 0) {
7584
7657
  let e = n.getAttribute("position");
7585
- for (let t = 0, n = s.length; t < n; t++) e.setXYZ(s[t], ul.x, ul.y, ul.z);
7658
+ for (let t = 0, n = s.length; t < n; t++) e.setXYZ(s[t], fl.x, fl.y, fl.z);
7586
7659
  }
7587
7660
  }
7588
- function fl(e, t, n, r) {
7589
- let i = pl(r);
7661
+ function ml(e, t, n, r) {
7662
+ let i = hl(r);
7590
7663
  switch (n) {
7591
7664
  case T: return e * t;
7592
7665
  case O: return e * t / i.components * i.byteLength;
@@ -7635,7 +7708,7 @@ function fl(e, t, n, r) {
7635
7708
  }
7636
7709
  throw Error(`Unable to determine texture byte length for ${n} format.`);
7637
7710
  }
7638
- function pl(e) {
7711
+ function hl(e) {
7639
7712
  switch (e) {
7640
7713
  case f:
7641
7714
  case p: return {
@@ -7669,6 +7742,6 @@ function pl(e) {
7669
7742
  }
7670
7743
  typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { revision: "184" } })), typeof window < "u" && (window.__THREE__ ? k("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = "184");
7671
7744
  //#endregion
7672
- export { Va as $, Ce as $n, kc as $r, Qs as $t, ja as A, Je as Ai, Cc as An, vn as Ar, We as At, Ii as B, Dt as Bi, Mt as Bn, tt as Br, oa as Bt, H as C, Ws as Ci, Bs as Cn, ie as Cr, Ji as Ct, Oa as D, Yn as Di, yc as Dn, Oc as Dr, Ms as Dt, ht as E, pt as Ei, vo as En, Zc as Er, $r as Et, Ha as F, fl as Fi, mo as Fn, ye as Fr, jn as Ft, Zs as G, oe as Gn, is as Gr, va as Gt, Pr as H, k as Hi, ze as Hn, gs as Hr, fo as Ht, _o as I, fs as Ii, $t as In, He as Ir, oc as It, Aa as J, je as Jn, zi as Jr, d as Jt, ee as K, Ne as Kn, $o as Kr, c as Kt, Fa as L, _t as Li, Hs as Ln, Be as Lr, Ac as Lt, co as M, yt as Mi, ba as Mn, rt as Mr, ct as Mt, lo as N, vt as Ni, Z as Nn, Ot as Nr, nt as Nt, Ia as O, Ye as Oi, Qi as On, O as Or, Ke as Ot, Ns as P, A as Pi, po as Pn, rs as Pr, Ls as Pt, ut as Q, Se as Qn, os as Qr, et as Qt, xn as R, Ct as Ri, Vs as Rn, xe as Rr, ma as Rt, el as S, _n as Si, Xe as Sn, re as Sr, Yc as St, L as T, yn as Ti, wc as Tn, li as Tr, Qr as Tt, at as U, Tt as Ui, be as Un, ss as Ur, Ds as Ut, ic as V, St as Vi, Ve as Vn, tr as Vr, uo as Vt, st as W, Et as Wi, D as Wn, yo as Wr, ya as Wt, Ec as X, Pe as Xn, pn as Xr, l as Xt, t as Y, Me as Yn, Pi as Yr, u as Yt, Fs as Z, Fe as Zn, Wr as Zr, $e as Zt, hc as _, b as _i, xs as _n, he as _r, rc as _t, Lc as a, R as ai, nn as an, ke as ar, Br as at, Pa as b, F as bi, s as bn, de as br, ot as bt, Is as c, hr as ci, ui as cn, me as cr, er as ct, gr as d, ps as di, Cs as dn, le as dr, aa as dt, ho as ei, jc as en, we as er, Ua as et, Na as f, f as fi, Es as fn, ue as fr, dt as ft, Js as g, _ as gi, vs as gn, Re as gr, Nc as gt, p as h, C as hi, ys as hn, Le as hr, sc as ht, Wa as i, Us as ii, tl as in, Oe as ir, tc as it, ka as j, cs as ji, Ta as jn, n as jr, Ge as jt, Ic as k, qe as ki, ns as kn, ne as kr, Ue as kt, Fi as l, Rr as li, ws as ln, pe as lr, Da as lt, Zr as m, S as mi, bs as mn, ae as mr, y as mt, Dc as n, ti as ni, Y as nn, Ee as nr, kt as nt, e as o, ac as oi, z as on, Ie as or, K as ot, Lr as p, w as pi, Ss as pn, E as pr, qn as pt, te as q, Ae as qn, m as qr, Ps as qt, Gs as r, lt as ri, Qt as rn, De as rr, Ma as rt, Ze as s, mt as si, Si as sn, _e as sr, v as st, T as t, xc as ti, Xs as tn, Te as tr, An as tt, Rs as u, zr as ui, Ts as un, ce as ur, na as ut, dl as v, x as vi, i as vn, ge as vr, dn as vt, zs as w, ft as wi, V as wn, _s as wr, g as wt, r as x, I as xi, o as xn, se as xr, Bi as xt, Za as y, h as yi, a as yn, fe as yr, it as yt, bn as z, ls as zi, ve as zn, Qe as zr, ll as zt };
7745
+ export { ut as $, Se as $n, os as $r, et as $t, Ic as A, qe as Ai, ns as An, ne as Ar, Ue as At, xn as B, ls as Bi, ve as Bn, Qe as Br, dl as Bt, el as C, vn as Ci, Xe as Cn, re as Cr, Yc as Ct, ht as D, pt as Di, vo as Dn, Zc as Dr, $r as Dt, cn as E, bn as Ei, wc as En, li as Er, Qr as Et, Ns as F, A as Fi, po as Fn, rs as Fr, Ls as Ft, st as G, Et as Gi, D as Gn, yo as Gr, ya as Gt, ic as H, St as Hi, Ve as Hn, nr as Hr, uo as Ht, Ha as I, ml as Ii, mo as In, ye as Ir, Mn as It, te as J, Ae as Jn, m as Jr, Ps as Jt, Zs as K, oe as Kn, is as Kr, va as Kt, _o as L, fs as Li, $t as Ln, He as Lr, oc as Lt, ka as M, cs as Mi, Ta as Mn, n as Mr, Ge as Mt, co as N, yt as Ni, ba as Nn, rt as Nr, ct as Nt, Oa as O, Xn as Oi, yc as On, Oc as Or, Ms as Ot, lo as P, vt as Pi, Z as Pn, Ot as Pr, nt as Pt, Fs as Q, Fe as Qn, Gr as Qr, $e as Qt, Fa as R, _t as Ri, Hs as Rn, Be as Rr, Ac as Rt, r as S, I as Si, o as Sn, se as Sr, Bi as St, zs as T, ft as Ti, B as Tn, _s as Tr, g as Tt, Fr as U, k as Ui, ze as Un, gs as Ur, fo as Ut, Ii as V, Dt as Vi, Mt as Vn, tt as Vr, oa as Vt, at as W, Tt as Wi, be as Wn, ss as Wr, Ds as Wt, t as X, Me as Xn, Pi as Xr, u as Xt, Aa as Y, je as Yn, zi as Yr, d as Yt, Ec as Z, Pe as Zn, mn as Zr, l as Zt, Js as _, _ as _i, vs as _n, Re as _r, Nc as _t, Lc as a, Us as ai, tl as an, Oe as ar, tc as at, Za as b, h as bi, a as bn, fe as br, it as bt, Is as c, mt as ci, Si as cn, _e as cr, v as ct, rl as d, Br as di, Ts as dn, ce as dr, na as dt, kc as ei, Qs as en, Ce as er, Va as et, _r as f, ps as fi, Cs as fn, le as fr, aa as ft, p as g, C as gi, ys as gn, Le as gr, sc as gt, Zr as h, S as hi, bs as hn, ae as hr, y as ht, Wa as i, lt as ii, Qt as in, De as ir, Ma as it, ja as j, Je as ji, Cc as jn, yn as jr, We as jt, Ia as k, Ye as ki, Qi as kn, O as kr, Ke as kt, Fi as l, gr as li, ui as ln, me as lr, tr as lt, Rr as m, w as mi, Ss as mn, E as mr, Jn as mt, Dc as n, xc as ni, Xs as nn, Te as nr, jn as nt, e as o, L as oi, nn as on, ke as or, Vr as ot, Na as p, f as pi, Es as pn, ue as pr, dt as pt, ee as q, Ne as qn, $o as qr, c as qt, Gs as r, ti as ri, Y as rn, Ee as rr, kt as rt, Ze as s, ac as si, R as sn, Ie as sr, G as st, T as t, ho as ti, jc as tn, we as tr, Ua as tt, Rs as u, zr as ui, ws as un, pe as ur, Da as ut, hc as v, b as vi, xs as vn, he as vr, rc as vt, V as w, Ws as wi, Bs as wn, ie as wr, Ji as wt, Pa as x, F as xi, s as xn, de as xr, ot as xt, pl as y, x as yi, i as yn, ge as yr, fn as yt, Sn as z, Ct as zi, Vs as zn, xe as zr, ma as zt };
7673
7746
 
7674
- //# sourceMappingURL=three.core-DNErG1F6.mjs.map
7747
+ //# sourceMappingURL=three.core-tV_4n8Wg.mjs.map