@navaramap/font 0.0.0 → 0.0.2

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.
package/dist/index.js CHANGED
@@ -114,8 +114,8 @@ function A(e) {
114
114
  function j(e) {
115
115
  return document.createElementNS("http://www.w3.org/1999/xhtml", e);
116
116
  }
117
- var M = {}, N = null;
118
- function P(e) {
117
+ var M = {};
118
+ function N(e) {
119
119
  let t = e[0];
120
120
  if (typeof t == "string" && t.startsWith("TSL:")) {
121
121
  let t = e[1];
@@ -123,29 +123,27 @@ function P(e) {
123
123
  }
124
124
  return e;
125
125
  }
126
- function F(...e) {
127
- e = P(e);
126
+ function P(...e) {
127
+ e = N(e);
128
128
  let t = "THREE." + e.shift();
129
- if (N) N("warn", t, ...e);
130
- else {
129
+ {
131
130
  let n = e[0];
132
131
  n && n.isStackTrace ? console.warn(n.getError(t)) : console.warn(t, ...e);
133
132
  }
134
133
  }
135
- function I(...e) {
136
- e = P(e);
134
+ function F(...e) {
135
+ e = N(e);
137
136
  let t = "THREE." + e.shift();
138
- if (N) N("error", t, ...e);
139
- else {
137
+ {
140
138
  let n = e[0];
141
139
  n && n.isStackTrace ? console.error(n.getError(t)) : console.error(t, ...e);
142
140
  }
143
141
  }
144
- function ee(...e) {
142
+ function I(...e) {
145
143
  let t = e.join(" ");
146
- t in M || (M[t] = !0, F(...e));
144
+ t in M || (M[t] = !0, P(...e));
147
145
  }
148
- var te = class {
146
+ var ee = class {
149
147
  addEventListener(e, t) {
150
148
  this._listeners === void 0 && (this._listeners = {});
151
149
  let n = this._listeners;
@@ -153,7 +151,7 @@ var te = class {
153
151
  }
154
152
  hasEventListener(e, t) {
155
153
  let n = this._listeners;
156
- return n === void 0 ? !1 : n[e] !== void 0 && n[e].indexOf(t) !== -1;
154
+ return n !== void 0 && n[e] !== void 0 && n[e].indexOf(t) !== -1;
157
155
  }
158
156
  removeEventListener(e, t) {
159
157
  let n = this._listeners;
@@ -177,20 +175,20 @@ var te = class {
177
175
  }
178
176
  }, L = /* @__PURE__ */ "00.01.02.03.04.05.06.07.08.09.0a.0b.0c.0d.0e.0f.10.11.12.13.14.15.16.17.18.19.1a.1b.1c.1d.1e.1f.20.21.22.23.24.25.26.27.28.29.2a.2b.2c.2d.2e.2f.30.31.32.33.34.35.36.37.38.39.3a.3b.3c.3d.3e.3f.40.41.42.43.44.45.46.47.48.49.4a.4b.4c.4d.4e.4f.50.51.52.53.54.55.56.57.58.59.5a.5b.5c.5d.5e.5f.60.61.62.63.64.65.66.67.68.69.6a.6b.6c.6d.6e.6f.70.71.72.73.74.75.76.77.78.79.7a.7b.7c.7d.7e.7f.80.81.82.83.84.85.86.87.88.89.8a.8b.8c.8d.8e.8f.90.91.92.93.94.95.96.97.98.99.9a.9b.9c.9d.9e.9f.a0.a1.a2.a3.a4.a5.a6.a7.a8.a9.aa.ab.ac.ad.ae.af.b0.b1.b2.b3.b4.b5.b6.b7.b8.b9.ba.bb.bc.bd.be.bf.c0.c1.c2.c3.c4.c5.c6.c7.c8.c9.ca.cb.cc.cd.ce.cf.d0.d1.d2.d3.d4.d5.d6.d7.d8.d9.da.db.dc.dd.de.df.e0.e1.e2.e3.e4.e5.e6.e7.e8.e9.ea.eb.ec.ed.ee.ef.f0.f1.f2.f3.f4.f5.f6.f7.f8.f9.fa.fb.fc.fd.fe.ff".split(".");
179
177
  Math.PI / 180, 180 / Math.PI;
180
- function ne() {
178
+ function te() {
181
179
  let e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0, r = Math.random() * 4294967295 | 0;
182
180
  return (L[e & 255] + L[e >> 8 & 255] + L[e >> 16 & 255] + L[e >> 24 & 255] + "-" + L[t & 255] + L[t >> 8 & 255] + "-" + L[t >> 16 & 15 | 64] + L[t >> 24 & 255] + "-" + L[n & 63 | 128] + L[n >> 8 & 255] + "-" + L[n >> 16 & 255] + L[n >> 24 & 255] + L[r & 255] + L[r >> 8 & 255] + L[r >> 16 & 255] + L[r >> 24 & 255]).toLowerCase();
183
181
  }
184
182
  function R(e, t, n) {
185
183
  return Math.max(t, Math.min(n, e));
186
184
  }
187
- function re(e, t) {
185
+ function ne(e, t) {
188
186
  return (e % t + t) % t;
189
187
  }
190
- function ie(e, t, n) {
188
+ function re(e, t, n) {
191
189
  return (1 - n) * e + n * t;
192
190
  }
193
- var ae = class e {
191
+ var ie = class e {
194
192
  static {
195
193
  e.prototype.isVector2 = !0;
196
194
  }
@@ -229,7 +227,7 @@ var ae = class e {
229
227
  case 1:
230
228
  this.y = t;
231
229
  break;
232
- default: throw Error("index is out of range: " + e);
230
+ default: throw Error("THREE.Vector2: index is out of range: " + e);
233
231
  }
234
232
  return this;
235
233
  }
@@ -237,7 +235,7 @@ var ae = class e {
237
235
  switch (e) {
238
236
  case 0: return this.x;
239
237
  case 1: return this.y;
240
- default: throw Error("index is out of range: " + e);
238
+ default: throw Error("THREE.Vector2: index is out of range: " + e);
241
239
  }
242
240
  }
243
241
  clone() {
@@ -461,7 +459,7 @@ var ae = class e {
461
459
  case "XZY":
462
460
  this._x = d * l * u - c * f * p, this._y = c * f * u - d * l * p, this._z = c * l * p + d * f * u, this._w = c * l * u + d * f * p;
463
461
  break;
464
- default: F("Quaternion: .setFromEuler() encountered an unknown order: " + a);
462
+ default: P("Quaternion: .setFromEuler() encountered an unknown order: " + a);
465
463
  }
466
464
  return t === !0 && this._onChangeCallback(), this;
467
465
  }
@@ -603,7 +601,7 @@ var ae = class e {
603
601
  case 2:
604
602
  this.z = t;
605
603
  break;
606
- default: throw Error("index is out of range: " + e);
604
+ default: throw Error("THREE.Vector3: index is out of range: " + e);
607
605
  }
608
606
  return this;
609
607
  }
@@ -612,7 +610,7 @@ var ae = class e {
612
610
  case 0: return this.x;
613
611
  case 1: return this.y;
614
612
  case 2: return this.z;
615
- default: throw Error("index is out of range: " + e);
613
+ default: throw Error("THREE.Vector3: index is out of range: " + e);
616
614
  }
617
615
  }
618
616
  clone() {
@@ -652,10 +650,10 @@ var ae = class e {
652
650
  return this.x = e.x * t.x, this.y = e.y * t.y, this.z = e.z * t.z, this;
653
651
  }
654
652
  applyEuler(e) {
655
- return this.applyQuaternion(se.setFromEuler(e));
653
+ return this.applyQuaternion(oe.setFromEuler(e));
656
654
  }
657
655
  applyAxisAngle(e, t) {
658
- return this.applyQuaternion(se.setFromAxisAngle(e, t));
656
+ return this.applyQuaternion(oe.setFromAxisAngle(e, t));
659
657
  }
660
658
  applyMatrix3(e) {
661
659
  let t = this.x, n = this.y, r = this.z, i = e.elements;
@@ -757,10 +755,10 @@ var ae = class e {
757
755
  return this.copy(e).multiplyScalar(n);
758
756
  }
759
757
  projectOnPlane(e) {
760
- return oe.copy(this).projectOnVector(e), this.sub(oe);
758
+ return ae.copy(this).projectOnVector(e), this.sub(ae);
761
759
  }
762
760
  reflect(e) {
763
- return this.sub(oe.copy(e).multiplyScalar(2 * this.dot(e)));
761
+ return this.sub(ae.copy(e).multiplyScalar(2 * this.dot(e)));
764
762
  }
765
763
  angleTo(e) {
766
764
  let t = Math.sqrt(this.lengthSq() * e.lengthSq());
@@ -833,7 +831,7 @@ var ae = class e {
833
831
  *[Symbol.iterator]() {
834
832
  yield this.x, yield this.y, yield this.z;
835
833
  }
836
- }, oe = /* @__PURE__ */ new B(), se = /* @__PURE__ */ new z(), ce = class e {
834
+ }, ae = /*@__PURE__*/ new B(), oe = /*@__PURE__*/ new z(), se = class e {
837
835
  static {
838
836
  e.prototype.isMatrix3 = !0;
839
837
  }
@@ -908,13 +906,13 @@ var ae = class e {
908
906
  return this.set(n * s, n * c, -n * (s * a + c * o) + a + e, -r * c, r * s, -r * (-c * a + s * o) + o + t, 0, 0, 1), this;
909
907
  }
910
908
  scale(e, t) {
911
- return this.premultiply(le.makeScale(e, t)), this;
909
+ return I("Matrix3: .scale() is deprecated. Use .makeScale() instead."), this.premultiply(ce.makeScale(e, t)), this;
912
910
  }
913
911
  rotate(e) {
914
- return this.premultiply(le.makeRotation(-e)), this;
912
+ return I("Matrix3: .rotate() is deprecated. Use .makeRotation() instead."), this.premultiply(ce.makeRotation(-e)), this;
915
913
  }
916
914
  translate(e, t) {
917
- return this.premultiply(le.makeTranslation(e, t)), this;
915
+ return I("Matrix3: .translate() is deprecated. Use .makeTranslation() instead."), this.premultiply(ce.makeTranslation(e, t)), this;
918
916
  }
919
917
  makeTranslation(e, t) {
920
918
  return e.isVector2 ? this.set(1, 0, e.x, 0, 1, e.y, 0, 0, 1) : this.set(1, 0, e, 0, 1, t, 0, 0, 1), this;
@@ -942,8 +940,8 @@ var ae = class e {
942
940
  clone() {
943
941
  return new this.constructor().fromArray(this.elements);
944
942
  }
945
- }, le = /* @__PURE__ */ new ce(), ue = /* @__PURE__ */ new ce().set(.4123908, .3575843, .1804808, .212639, .7151687, .0721923, .0193308, .1191948, .9505322), de = /* @__PURE__ */ new ce().set(3.2409699, -1.5373832, -.4986108, -.9692436, 1.8759675, .0415551, .0556301, -.203977, 1.0569715);
946
- function fe() {
943
+ }, ce = /*@__PURE__*/ new se(), le = /*@__PURE__*/ new se().set(.4123908, .3575843, .1804808, .212639, .7151687, .0721923, .0193308, .1191948, .9505322), ue = /*@__PURE__*/ new se().set(3.2409699, -1.5373832, -.4986108, -.9692436, 1.8759675, .0415551, .0556301, -.203977, 1.0569715);
944
+ function de() {
947
945
  let e = {
948
946
  enabled: !0,
949
947
  workingColorSpace: E,
@@ -982,10 +980,10 @@ function fe() {
982
980
  return this.spaces[e].workingColorSpaceConfig.unpackColorSpace;
983
981
  },
984
982
  fromWorkingColorSpace: function(t, n) {
985
- return ee("ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."), e.workingToColorSpace(t, n);
983
+ return I("ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."), e.workingToColorSpace(t, n);
986
984
  },
987
985
  toWorkingColorSpace: function(t, n) {
988
- return ee("ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."), e.colorSpaceToWorking(t, n);
986
+ return I("ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."), e.colorSpaceToWorking(t, n);
989
987
  }
990
988
  }, t = [
991
989
  .64,
@@ -1004,8 +1002,8 @@ function fe() {
1004
1002
  primaries: t,
1005
1003
  whitePoint: r,
1006
1004
  transfer: D,
1007
- toXYZ: ue,
1008
- fromXYZ: de,
1005
+ toXYZ: le,
1006
+ fromXYZ: ue,
1009
1007
  luminanceCoefficients: n,
1010
1008
  workingColorSpaceConfig: { unpackColorSpace: T },
1011
1009
  outputColorSpaceConfig: { drawingBufferColorSpace: T }
@@ -1014,21 +1012,21 @@ function fe() {
1014
1012
  primaries: t,
1015
1013
  whitePoint: r,
1016
1014
  transfer: O,
1017
- toXYZ: ue,
1018
- fromXYZ: de,
1015
+ toXYZ: le,
1016
+ fromXYZ: ue,
1019
1017
  luminanceCoefficients: n,
1020
1018
  outputColorSpaceConfig: { drawingBufferColorSpace: T }
1021
1019
  }
1022
1020
  }), e;
1023
1021
  }
1024
- var V = /* @__PURE__ */ fe();
1022
+ var V = /*@__PURE__*/ de();
1025
1023
  function H(e) {
1026
1024
  return e < .04045 ? e * .0773993808 : (e * .9478672986 + .0521327014) ** 2.4;
1027
1025
  }
1028
1026
  function U(e) {
1029
1027
  return e < .0031308 ? e * 12.92 : 1.055 * e ** .41666 - .055;
1030
1028
  }
1031
- var W, pe = class {
1029
+ var W, fe = class {
1032
1030
  static getDataURL(e, t = "image/png") {
1033
1031
  if (/^data:/i.test(e.src) || typeof HTMLCanvasElement > "u") return e.src;
1034
1032
  let n;
@@ -1057,11 +1055,11 @@ var W, pe = class {
1057
1055
  width: e.width,
1058
1056
  height: e.height
1059
1057
  };
1060
- } else return F("ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."), e;
1058
+ } else return P("ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."), e;
1061
1059
  }
1062
- }, me = 0, he = class {
1060
+ }, pe = 0, me = class {
1063
1061
  constructor(e = null) {
1064
- this.isSource = !0, Object.defineProperty(this, "id", { value: me++ }), this.uuid = ne(), this.data = e, this.dataReady = !0, this.version = 0;
1062
+ this.isSource = !0, Object.defineProperty(this, "id", { value: pe++ }), this.uuid = te(), this.data = e, this.dataReady = !0, this.version = 0;
1065
1063
  }
1066
1064
  getSize(e) {
1067
1065
  let t = this.data;
@@ -1081,33 +1079,33 @@ var W, pe = class {
1081
1079
  let e;
1082
1080
  if (Array.isArray(r)) {
1083
1081
  e = [];
1084
- for (let t = 0, n = r.length; t < n; t++) r[t].isDataTexture ? e.push(ge(r[t].image)) : e.push(ge(r[t]));
1085
- } else e = ge(r);
1082
+ for (let t = 0, n = r.length; t < n; t++) r[t].isDataTexture ? e.push(he(r[t].image)) : e.push(he(r[t]));
1083
+ } else e = he(r);
1086
1084
  n.url = e;
1087
1085
  }
1088
1086
  return t || (e.images[this.uuid] = n), n;
1089
1087
  }
1090
1088
  };
1091
- function ge(e) {
1092
- return typeof HTMLImageElement < "u" && e instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap ? pe.getDataURL(e) : e.data ? {
1089
+ function he(e) {
1090
+ return typeof HTMLImageElement < "u" && e instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap ? fe.getDataURL(e) : e.data ? {
1093
1091
  data: Array.from(e.data),
1094
1092
  width: e.width,
1095
1093
  height: e.height,
1096
1094
  type: e.data.constructor.name
1097
- } : (F("Texture: Unable to serialize Texture."), {});
1095
+ } : (P("Texture: Unable to serialize Texture."), {});
1098
1096
  }
1099
- var _e = 0, ve = /* @__PURE__ */ new B(), ye = class e extends te {
1097
+ var ge = 0, _e = /*@__PURE__*/ new B(), ve = class e extends ee {
1100
1098
  constructor(t = e.DEFAULT_IMAGE, n = e.DEFAULT_MAPPING, r = u, i = u, a = p, o = m, s = g, c = h, l = e.DEFAULT_ANISOTROPY, d = "") {
1101
- super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: _e++ }), this.uuid = ne(), this.name = "", this.source = new he(t), this.mipmaps = [], this.mapping = n, this.channel = 0, this.wrapS = r, this.wrapT = i, this.magFilter = a, this.minFilter = o, this.anisotropy = l, this.format = s, this.internalFormat = null, this.type = c, this.offset = new ae(0, 0), this.repeat = new ae(1, 1), this.center = new ae(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new ce(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = d, 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;
1099
+ super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: ge++ }), this.uuid = te(), this.name = "", this.source = new me(t), this.mipmaps = [], this.mapping = n, this.channel = 0, this.wrapS = r, this.wrapT = i, this.magFilter = a, this.minFilter = o, this.anisotropy = l, this.format = s, this.internalFormat = null, this.type = c, this.offset = new ie(0, 0), this.repeat = new ie(1, 1), this.center = new ie(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new se(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = d, 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;
1102
1100
  }
1103
1101
  get width() {
1104
- return this.source.getSize(ve).x;
1102
+ return this.source.getSize(_e).x;
1105
1103
  }
1106
1104
  get height() {
1107
- return this.source.getSize(ve).y;
1105
+ return this.source.getSize(_e).y;
1108
1106
  }
1109
1107
  get depth() {
1110
- return this.source.getSize(ve).z;
1108
+ return this.source.getSize(_e).z;
1111
1109
  }
1112
1110
  get image() {
1113
1111
  return this.source.data;
@@ -1137,12 +1135,12 @@ var _e = 0, ve = /* @__PURE__ */ new B(), ye = class e extends te {
1137
1135
  for (let t in e) {
1138
1136
  let n = e[t];
1139
1137
  if (n === void 0) {
1140
- F(`Texture.setValues(): parameter '${t}' has value of undefined.`);
1138
+ P(`Texture.setValues(): parameter '${t}' has value of undefined.`);
1141
1139
  continue;
1142
1140
  }
1143
1141
  let r = this[t];
1144
1142
  if (r === void 0) {
1145
- F(`Texture.setValues(): property '${t}' does not exist.`);
1143
+ P(`Texture.setValues(): property '${t}' does not exist.`);
1146
1144
  continue;
1147
1145
  }
1148
1146
  r && n && r.isVector2 && n.isVector2 || r && n && r.isVector3 && n.isVector3 || r && n && r.isMatrix3 && n.isMatrix3 ? r.copy(n) : this[t] = n;
@@ -1218,7 +1216,7 @@ var _e = 0, ve = /* @__PURE__ */ new B(), ye = class e extends te {
1218
1216
  e === !0 && this.pmremVersion++;
1219
1217
  }
1220
1218
  };
1221
- ye.DEFAULT_IMAGE = null, ye.DEFAULT_MAPPING = 300, ye.DEFAULT_ANISOTROPY = 1, class e {
1219
+ ve.DEFAULT_IMAGE = null, ve.DEFAULT_MAPPING = 300, ve.DEFAULT_ANISOTROPY = 1, class e {
1222
1220
  static {
1223
1221
  e.prototype.isVector4 = !0;
1224
1222
  }
@@ -1269,7 +1267,7 @@ ye.DEFAULT_IMAGE = null, ye.DEFAULT_MAPPING = 300, ye.DEFAULT_ANISOTROPY = 1, cl
1269
1267
  case 3:
1270
1268
  this.w = t;
1271
1269
  break;
1272
- default: throw Error("index is out of range: " + e);
1270
+ default: throw Error("THREE.Vector4: index is out of range: " + e);
1273
1271
  }
1274
1272
  return this;
1275
1273
  }
@@ -1279,7 +1277,7 @@ ye.DEFAULT_IMAGE = null, ye.DEFAULT_MAPPING = 300, ye.DEFAULT_ANISOTROPY = 1, cl
1279
1277
  case 1: return this.y;
1280
1278
  case 2: return this.z;
1281
1279
  case 3: return this.w;
1282
- default: throw Error("index is out of range: " + e);
1280
+ default: throw Error("THREE.Vector4: index is out of range: " + e);
1283
1281
  }
1284
1282
  }
1285
1283
  clone() {
@@ -1419,7 +1417,7 @@ ye.DEFAULT_IMAGE = null, ye.DEFAULT_MAPPING = 300, ye.DEFAULT_ANISOTROPY = 1, cl
1419
1417
  yield this.x, yield this.y, yield this.z, yield this.w;
1420
1418
  }
1421
1419
  };
1422
- var be = class e {
1420
+ var ye = class e {
1423
1421
  static {
1424
1422
  e.prototype.isMatrix4 = !0;
1425
1423
  }
@@ -1466,14 +1464,14 @@ var be = class e {
1466
1464
  return this.set(t[0], t[3], t[6], 0, t[1], t[4], t[7], 0, t[2], t[5], t[8], 0, 0, 0, 0, 1), this;
1467
1465
  }
1468
1466
  extractBasis(e, t, n) {
1469
- return this.determinant() === 0 ? (e.set(1, 0, 0), t.set(0, 1, 0), n.set(0, 0, 1), this) : (e.setFromMatrixColumn(this, 0), t.setFromMatrixColumn(this, 1), n.setFromMatrixColumn(this, 2), this);
1467
+ return this.determinantAffine() === 0 ? (e.set(1, 0, 0), t.set(0, 1, 0), n.set(0, 0, 1), this) : (e.setFromMatrixColumn(this, 0), t.setFromMatrixColumn(this, 1), n.setFromMatrixColumn(this, 2), this);
1470
1468
  }
1471
1469
  makeBasis(e, t, n) {
1472
1470
  return this.set(e.x, t.x, n.x, 0, e.y, t.y, n.y, 0, e.z, t.z, n.z, 0, 0, 0, 0, 1), this;
1473
1471
  }
1474
1472
  extractRotation(e) {
1475
- if (e.determinant() === 0) return this.identity();
1476
- let t = this.elements, n = e.elements, r = 1 / xe.setFromMatrixColumn(e, 0).length(), i = 1 / xe.setFromMatrixColumn(e, 1).length(), a = 1 / xe.setFromMatrixColumn(e, 2).length();
1473
+ if (e.determinantAffine() === 0) return this.identity();
1474
+ let t = this.elements, n = e.elements, r = 1 / be.setFromMatrixColumn(e, 0).length(), i = 1 / be.setFromMatrixColumn(e, 1).length(), a = 1 / be.setFromMatrixColumn(e, 2).length();
1477
1475
  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;
1478
1476
  }
1479
1477
  makeRotationFromEuler(e) {
@@ -1500,11 +1498,11 @@ var be = class e {
1500
1498
  return t[3] = 0, t[7] = 0, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;
1501
1499
  }
1502
1500
  makeRotationFromQuaternion(e) {
1503
- return this.compose(Se, e, Ce);
1501
+ return this.compose(xe, e, Se);
1504
1502
  }
1505
1503
  lookAt(e, t, n) {
1506
1504
  let r = this.elements;
1507
- return q.subVectors(e, t), q.lengthSq() === 0 && (q.z = 1), q.normalize(), K.crossVectors(n, q), K.lengthSq() === 0 && (Math.abs(n.z) === 1 ? q.x += 1e-4 : q.z += 1e-4, q.normalize(), K.crossVectors(n, q)), K.normalize(), we.crossVectors(q, K), r[0] = K.x, r[4] = we.x, r[8] = q.x, r[1] = K.y, r[5] = we.y, r[9] = q.y, r[2] = K.z, r[6] = we.z, r[10] = q.z, this;
1505
+ return q.subVectors(e, t), q.lengthSq() === 0 && (q.z = 1), q.normalize(), K.crossVectors(n, q), K.lengthSq() === 0 && (Math.abs(n.z) === 1 ? q.x += 1e-4 : q.z += 1e-4, q.normalize(), K.crossVectors(n, q)), K.normalize(), Ce.crossVectors(q, K), r[0] = K.x, r[4] = Ce.x, r[8] = q.x, r[1] = K.y, r[5] = Ce.y, r[9] = q.y, r[2] = K.z, r[6] = Ce.z, r[10] = q.z, this;
1508
1506
  }
1509
1507
  multiply(e) {
1510
1508
  return this.multiplyMatrices(this, e);
@@ -1524,6 +1522,10 @@ var be = class e {
1524
1522
  let e = this.elements, t = e[0], n = e[4], r = e[8], i = e[12], a = e[1], o = e[5], s = e[9], c = e[13], l = e[2], u = e[6], d = e[10], f = e[14], p = e[3], m = e[7], h = e[11], g = e[15], _ = s * f - c * d, v = o * f - c * u, y = o * d - s * u, b = a * f - c * l, x = a * d - s * l, S = a * u - o * l;
1525
1523
  return t * (m * _ - h * v + g * y) - n * (p * _ - h * b + g * x) + r * (p * v - m * b + g * S) - i * (p * y - m * x + h * S);
1526
1524
  }
1525
+ determinantAffine() {
1526
+ let e = this.elements, t = e[0], n = e[4], r = e[8], i = e[1], a = e[5], o = e[9], s = e[2], c = e[6], l = e[10];
1527
+ return t * (a * l - o * c) - n * (i * l - o * s) + r * (i * c - a * s);
1528
+ }
1527
1529
  transpose() {
1528
1530
  let e = this.elements, t;
1529
1531
  return t = e[1], e[1] = e[4], e[4] = t, t = e[2], e[2] = e[8], e[8] = t, t = e[6], e[6] = e[9], e[9] = t, t = e[3], e[3] = e[12], e[12] = t, t = e[7], e[7] = e[13], e[13] = t, t = e[11], e[11] = e[14], e[14] = t, this;
@@ -1578,9 +1580,9 @@ var be = class e {
1578
1580
  decompose(e, t, n) {
1579
1581
  let r = this.elements;
1580
1582
  e.x = r[12], e.y = r[13], e.z = r[14];
1581
- let i = this.determinant();
1583
+ let i = this.determinantAffine();
1582
1584
  if (i === 0) return n.set(1, 1, 1), t.identity(), this;
1583
- let a = xe.set(r[0], r[1], r[2]).length(), o = xe.set(r[4], r[5], r[6]).length(), s = xe.set(r[8], r[9], r[10]).length();
1585
+ let a = be.set(r[0], r[1], r[2]).length(), o = be.set(r[4], r[5], r[6]).length(), s = be.set(r[8], r[9], r[10]).length();
1584
1586
  i < 0 && (a = -a), G.copy(this);
1585
1587
  let c = 1 / a, l = 1 / o, u = 1 / s;
1586
1588
  return G.elements[0] *= c, G.elements[1] *= c, G.elements[2] *= c, G.elements[4] *= l, G.elements[5] *= l, G.elements[6] *= l, G.elements[8] *= u, G.elements[9] *= u, G.elements[10] *= u, t.setFromRotationMatrix(G), n.x = a, n.y = o, n.z = s, this;
@@ -1614,7 +1616,7 @@ var be = class e {
1614
1616
  let n = this.elements;
1615
1617
  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;
1616
1618
  }
1617
- }, xe = /* @__PURE__ */ new B(), G = /* @__PURE__ */ new be(), Se = /* @__PURE__ */ new B(0, 0, 0), Ce = /* @__PURE__ */ new B(1, 1, 1), K = /* @__PURE__ */ new B(), we = /* @__PURE__ */ new B(), q = /* @__PURE__ */ new B(), Te = /* @__PURE__ */ new be(), Ee = /* @__PURE__ */ new z(), De = class e {
1619
+ }, be = /*@__PURE__*/ new B(), G = /*@__PURE__*/ new ye(), xe = /*@__PURE__*/ new B(0, 0, 0), Se = /*@__PURE__*/ new B(1, 1, 1), K = /*@__PURE__*/ new B(), Ce = /*@__PURE__*/ new B(), q = /*@__PURE__*/ new B(), we = /*@__PURE__*/ new ye(), Te = /*@__PURE__*/ new z(), Ee = class e {
1618
1620
  constructor(t = 0, n = 0, r = 0, i = e.DEFAULT_ORDER) {
1619
1621
  this.isEuler = !0, this._x = t, this._y = n, this._z = r, this._order = i;
1620
1622
  }
@@ -1672,18 +1674,18 @@ var be = class e {
1672
1674
  case "XZY":
1673
1675
  this._z = Math.asin(-R(a, -1, 1)), Math.abs(a) < .9999999 ? (this._x = Math.atan2(d, c), this._y = Math.atan2(o, i)) : (this._x = Math.atan2(-l, f), this._y = 0);
1674
1676
  break;
1675
- default: F("Euler: .setFromRotationMatrix() encountered an unknown order: " + t);
1677
+ default: P("Euler: .setFromRotationMatrix() encountered an unknown order: " + t);
1676
1678
  }
1677
1679
  return this._order = t, n === !0 && this._onChangeCallback(), this;
1678
1680
  }
1679
1681
  setFromQuaternion(e, t, n) {
1680
- return Te.makeRotationFromQuaternion(e), this.setFromRotationMatrix(Te, t, n);
1682
+ return we.makeRotationFromQuaternion(e), this.setFromRotationMatrix(we, t, n);
1681
1683
  }
1682
1684
  setFromVector3(e, t = this._order) {
1683
1685
  return this.set(e.x, e.y, e.z, t);
1684
1686
  }
1685
1687
  reorder(e) {
1686
- return Ee.setFromEuler(this), this.setFromQuaternion(Ee, e);
1688
+ return Te.setFromEuler(this), this.setFromQuaternion(Te, e);
1687
1689
  }
1688
1690
  equals(e) {
1689
1691
  return e._x === this._x && e._y === this._y && e._z === this._z && e._order === this._order;
@@ -1702,8 +1704,8 @@ var be = class e {
1702
1704
  yield this._x, yield this._y, yield this._z, yield this._order;
1703
1705
  }
1704
1706
  };
1705
- De.DEFAULT_ORDER = "XYZ";
1706
- var Oe = class {
1707
+ Ee.DEFAULT_ORDER = "XYZ";
1708
+ var De = class {
1707
1709
  constructor() {
1708
1710
  this.mask = 1;
1709
1711
  }
@@ -1731,16 +1733,16 @@ var Oe = class {
1731
1733
  isEnabled(e) {
1732
1734
  return (this.mask & (1 << e | 0)) != 0;
1733
1735
  }
1734
- }, ke = 0, Ae = /* @__PURE__ */ new B(), je = /* @__PURE__ */ new z(), J = /* @__PURE__ */ new be(), Me = /* @__PURE__ */ new B(), Ne = /* @__PURE__ */ new B(), Pe = /* @__PURE__ */ new B(), Fe = /* @__PURE__ */ new z(), Ie = /* @__PURE__ */ new B(1, 0, 0), Le = /* @__PURE__ */ new B(0, 1, 0), Re = /* @__PURE__ */ new B(0, 0, 1), ze = { type: "added" }, Be = { type: "removed" }, Ve = {
1736
+ }, Oe = 0, ke = /*@__PURE__*/ new B(), Ae = /*@__PURE__*/ new z(), J = /*@__PURE__*/ new ye(), je = /*@__PURE__*/ new B(), Me = /*@__PURE__*/ new B(), Ne = /*@__PURE__*/ new B(), Pe = /*@__PURE__*/ new z(), Fe = /*@__PURE__*/ new B(1, 0, 0), Ie = /*@__PURE__*/ new B(0, 1, 0), Le = /*@__PURE__*/ new B(0, 0, 1), Re = { type: "added" }, ze = { type: "removed" }, Be = {
1735
1737
  type: "childadded",
1736
1738
  child: null
1737
- }, He = {
1739
+ }, Ve = {
1738
1740
  type: "childremoved",
1739
1741
  child: null
1740
- }, Ue = class e extends te {
1742
+ }, He = class e extends ee {
1741
1743
  constructor() {
1742
- super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: ke++ }), this.uuid = ne(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = e.DEFAULT_UP.clone();
1743
- let t = new B(), n = new De(), r = new z(), i = new B(1, 1, 1);
1744
+ super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Oe++ }), this.uuid = te(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = e.DEFAULT_UP.clone();
1745
+ let t = new B(), n = new Ee(), r = new z(), i = new B(1, 1, 1);
1744
1746
  function a() {
1745
1747
  r.setFromEuler(n, !1);
1746
1748
  }
@@ -1768,9 +1770,9 @@ var Oe = class {
1768
1770
  enumerable: !0,
1769
1771
  value: i
1770
1772
  },
1771
- modelViewMatrix: { value: new be() },
1772
- normalMatrix: { value: new ce() }
1773
- }), this.matrix = new be(), this.matrixWorld = new be(), this.matrixAutoUpdate = e.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new Oe(), 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;
1773
+ modelViewMatrix: { value: new ye() },
1774
+ normalMatrix: { value: new se() }
1775
+ }), this.matrix = new ye(), this.matrixWorld = new ye(), this.matrixAutoUpdate = e.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new De(), 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;
1774
1776
  }
1775
1777
  onBeforeShadow() {}
1776
1778
  onAfterShadow() {}
@@ -1795,31 +1797,31 @@ var Oe = class {
1795
1797
  this.quaternion.copy(e);
1796
1798
  }
1797
1799
  rotateOnAxis(e, t) {
1798
- return je.setFromAxisAngle(e, t), this.quaternion.multiply(je), this;
1800
+ return Ae.setFromAxisAngle(e, t), this.quaternion.multiply(Ae), this;
1799
1801
  }
1800
1802
  rotateOnWorldAxis(e, t) {
1801
- return je.setFromAxisAngle(e, t), this.quaternion.premultiply(je), this;
1803
+ return Ae.setFromAxisAngle(e, t), this.quaternion.premultiply(Ae), this;
1802
1804
  }
1803
1805
  rotateX(e) {
1804
- return this.rotateOnAxis(Ie, e);
1806
+ return this.rotateOnAxis(Fe, e);
1805
1807
  }
1806
1808
  rotateY(e) {
1807
- return this.rotateOnAxis(Le, e);
1809
+ return this.rotateOnAxis(Ie, e);
1808
1810
  }
1809
1811
  rotateZ(e) {
1810
- return this.rotateOnAxis(Re, e);
1812
+ return this.rotateOnAxis(Le, e);
1811
1813
  }
1812
1814
  translateOnAxis(e, t) {
1813
- return Ae.copy(e).applyQuaternion(this.quaternion), this.position.add(Ae.multiplyScalar(t)), this;
1815
+ return ke.copy(e).applyQuaternion(this.quaternion), this.position.add(ke.multiplyScalar(t)), this;
1814
1816
  }
1815
1817
  translateX(e) {
1816
- return this.translateOnAxis(Ie, e);
1818
+ return this.translateOnAxis(Fe, e);
1817
1819
  }
1818
1820
  translateY(e) {
1819
- return this.translateOnAxis(Le, e);
1821
+ return this.translateOnAxis(Ie, e);
1820
1822
  }
1821
1823
  translateZ(e) {
1822
- return this.translateOnAxis(Re, e);
1824
+ return this.translateOnAxis(Le, e);
1823
1825
  }
1824
1826
  localToWorld(e) {
1825
1827
  return this.updateWorldMatrix(!0, !1), e.applyMatrix4(this.matrixWorld);
@@ -1828,16 +1830,16 @@ var Oe = class {
1828
1830
  return this.updateWorldMatrix(!0, !1), e.applyMatrix4(J.copy(this.matrixWorld).invert());
1829
1831
  }
1830
1832
  lookAt(e, t, n) {
1831
- e.isVector3 ? Me.copy(e) : Me.set(e, t, n);
1833
+ e.isVector3 ? je.copy(e) : je.set(e, t, n);
1832
1834
  let r = this.parent;
1833
- this.updateWorldMatrix(!0, !1), Ne.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? J.lookAt(Ne, Me, this.up) : J.lookAt(Me, Ne, this.up), this.quaternion.setFromRotationMatrix(J), r && (J.extractRotation(r.matrixWorld), je.setFromRotationMatrix(J), this.quaternion.premultiply(je.invert()));
1835
+ this.updateWorldMatrix(!0, !1), Me.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? J.lookAt(Me, je, this.up) : J.lookAt(je, Me, this.up), this.quaternion.setFromRotationMatrix(J), r && (J.extractRotation(r.matrixWorld), Ae.setFromRotationMatrix(J), this.quaternion.premultiply(Ae.invert()));
1834
1836
  }
1835
1837
  add(e) {
1836
1838
  if (arguments.length > 1) {
1837
1839
  for (let e = 0; e < arguments.length; e++) this.add(arguments[e]);
1838
1840
  return this;
1839
1841
  }
1840
- return e === this ? (I("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(ze), Ve.child = e, this.dispatchEvent(Ve), Ve.child = null) : I("Object3D.add: object not an instance of THREE.Object3D.", e), this);
1842
+ return e === this ? (F("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(Re), Be.child = e, this.dispatchEvent(Be), Be.child = null) : F("Object3D.add: object not an instance of THREE.Object3D.", e), this);
1841
1843
  }
1842
1844
  remove(e) {
1843
1845
  if (arguments.length > 1) {
@@ -1845,7 +1847,7 @@ var Oe = class {
1845
1847
  return this;
1846
1848
  }
1847
1849
  let t = this.children.indexOf(e);
1848
- return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(Be), He.child = e, this.dispatchEvent(He), He.child = null), this;
1850
+ return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(ze), Ve.child = e, this.dispatchEvent(Ve), Ve.child = null), this;
1849
1851
  }
1850
1852
  removeFromParent() {
1851
1853
  let e = this.parent;
@@ -1855,7 +1857,7 @@ var Oe = class {
1855
1857
  return this.remove(...this.children);
1856
1858
  }
1857
1859
  attach(e) {
1858
- return this.updateWorldMatrix(!0, !1), J.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), J.multiply(e.parent.matrixWorld)), e.applyMatrix4(J), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(ze), Ve.child = e, this.dispatchEvent(Ve), Ve.child = null, this;
1860
+ return this.updateWorldMatrix(!0, !1), J.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), J.multiply(e.parent.matrixWorld)), e.applyMatrix4(J), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(Re), Be.child = e, this.dispatchEvent(Be), Be.child = null, this;
1859
1861
  }
1860
1862
  getObjectById(e) {
1861
1863
  return this.getObjectByProperty("id", e);
@@ -1880,10 +1882,10 @@ var Oe = class {
1880
1882
  return this.updateWorldMatrix(!0, !1), e.setFromMatrixPosition(this.matrixWorld);
1881
1883
  }
1882
1884
  getWorldQuaternion(e) {
1883
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Ne, e, Pe), e;
1885
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Me, e, Ne), e;
1884
1886
  }
1885
1887
  getWorldScale(e) {
1886
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Ne, Fe, e), e;
1888
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Me, Pe, e), e;
1887
1889
  }
1888
1890
  getWorldDirection(e) {
1889
1891
  this.updateWorldMatrix(!0, !1);
@@ -1920,11 +1922,11 @@ var Oe = class {
1920
1922
  let t = this.children;
1921
1923
  for (let n = 0, r = t.length; n < r; n++) t[n].updateMatrixWorld(e);
1922
1924
  }
1923
- updateWorldMatrix(e, t) {
1924
- let n = this.parent;
1925
- if (e === !0 && n !== null && n.updateWorldMatrix(!0, !1), this.matrixAutoUpdate && this.updateMatrix(), this.matrixWorldAutoUpdate === !0 && (this.parent === null ? this.matrixWorld.copy(this.matrix) : this.matrixWorld.multiplyMatrices(this.parent.matrixWorld, this.matrix)), t === !0) {
1925
+ updateWorldMatrix(e, t, n = !1) {
1926
+ let r = this.parent;
1927
+ if (e === !0 && r !== null && r.updateWorldMatrix(!0, !1), this.matrixAutoUpdate && this.updateMatrix(), (this.matrixWorldNeedsUpdate || n) && (this.matrixWorldAutoUpdate === !0 && (this.parent === null ? this.matrixWorld.copy(this.matrix) : this.matrixWorld.multiplyMatrices(this.parent.matrixWorld, this.matrix)), this.matrixWorldNeedsUpdate = !1, n = !0), t === !0) {
1926
1928
  let e = this.children;
1927
- for (let t = 0, n = e.length; t < n; t++) e[t].updateWorldMatrix(!1, !0);
1929
+ for (let t = 0, r = e.length; t < r; t++) e[t].updateWorldMatrix(!1, !0, n);
1928
1930
  }
1929
1931
  }
1930
1932
  toJSON(e) {
@@ -2006,8 +2008,8 @@ var Oe = class {
2006
2008
  return this;
2007
2009
  }
2008
2010
  };
2009
- Ue.DEFAULT_UP = /* @__PURE__ */ new B(0, 1, 0), Ue.DEFAULT_MATRIX_AUTO_UPDATE = !0, Ue.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
2010
- var We = {
2011
+ He.DEFAULT_UP = /*@__PURE__*/ new B(0, 1, 0), He.DEFAULT_MATRIX_AUTO_UPDATE = !0, He.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
2012
+ var Ue = {
2011
2013
  aliceblue: 15792383,
2012
2014
  antiquewhite: 16444375,
2013
2015
  aqua: 65535,
@@ -2160,15 +2162,15 @@ var We = {
2160
2162
  h: 0,
2161
2163
  s: 0,
2162
2164
  l: 0
2163
- }, Ge = {
2165
+ }, We = {
2164
2166
  h: 0,
2165
2167
  s: 0,
2166
2168
  l: 0
2167
2169
  };
2168
- function Ke(e, t, n) {
2170
+ function Ge(e, t, n) {
2169
2171
  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;
2170
2172
  }
2171
- var qe = class {
2173
+ var Ke = class {
2172
2174
  constructor(e, t, n) {
2173
2175
  return this.isColor = !0, this.r = 1, this.g = 1, this.b = 1, this.set(e, t, n);
2174
2176
  }
@@ -2189,16 +2191,16 @@ var qe = class {
2189
2191
  return this.r = e, this.g = t, this.b = n, V.colorSpaceToWorking(this, r), this;
2190
2192
  }
2191
2193
  setHSL(e, t, n, r = V.workingColorSpace) {
2192
- if (e = re(e, 1), t = R(t, 0, 1), n = R(n, 0, 1), t === 0) this.r = this.g = this.b = n;
2194
+ if (e = ne(e, 1), t = R(t, 0, 1), n = R(n, 0, 1), t === 0) this.r = this.g = this.b = n;
2193
2195
  else {
2194
2196
  let r = n <= .5 ? n * (1 + t) : n + t - n * t, i = 2 * n - r;
2195
- this.r = Ke(i, r, e + 1 / 3), this.g = Ke(i, r, e), this.b = Ke(i, r, e - 1 / 3);
2197
+ this.r = Ge(i, r, e + 1 / 3), this.g = Ge(i, r, e), this.b = Ge(i, r, e - 1 / 3);
2196
2198
  }
2197
2199
  return V.colorSpaceToWorking(this, r), this;
2198
2200
  }
2199
2201
  setStyle(e, t = T) {
2200
2202
  function n(t) {
2201
- t !== void 0 && parseFloat(t) < 1 && F("Color: Alpha component of " + e + " will be ignored.");
2203
+ t !== void 0 && parseFloat(t) < 1 && P("Color: Alpha component of " + e + " will be ignored.");
2202
2204
  }
2203
2205
  let r;
2204
2206
  if (r = /^(\w+)\(([^\)]*)\)/.exec(e)) {
@@ -2213,19 +2215,19 @@ var qe = class {
2213
2215
  case "hsla":
2214
2216
  if (i = /^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o)) return n(i[4]), this.setHSL(parseFloat(i[1]) / 360, parseFloat(i[2]) / 100, parseFloat(i[3]) / 100, t);
2215
2217
  break;
2216
- default: F("Color: Unknown color model " + e);
2218
+ default: P("Color: Unknown color model " + e);
2217
2219
  }
2218
2220
  } else if (r = /^\#([A-Fa-f\d]+)$/.exec(e)) {
2219
2221
  let n = r[1], i = n.length;
2220
2222
  if (i === 3) return this.setRGB(parseInt(n.charAt(0), 16) / 15, parseInt(n.charAt(1), 16) / 15, parseInt(n.charAt(2), 16) / 15, t);
2221
2223
  if (i === 6) return this.setHex(parseInt(n, 16), t);
2222
- F("Color: Invalid hex color " + e);
2224
+ P("Color: Invalid hex color " + e);
2223
2225
  } else if (e && e.length > 0) return this.setColorName(e, t);
2224
2226
  return this;
2225
2227
  }
2226
2228
  setColorName(e, t = T) {
2227
- let n = We[e.toLowerCase()];
2228
- return n === void 0 ? F("Color: Unknown color " + e) : this.setHex(n, t), this;
2229
+ let n = Ue[e.toLowerCase()];
2230
+ return n === void 0 ? P("Color: Unknown color " + e) : this.setHex(n, t), this;
2229
2231
  }
2230
2232
  clone() {
2231
2233
  return new this.constructor(this.r, this.g, this.b);
@@ -2308,8 +2310,8 @@ var qe = class {
2308
2310
  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;
2309
2311
  }
2310
2312
  lerpHSL(e, t) {
2311
- this.getHSL(Y), e.getHSL(Ge);
2312
- let n = ie(Y.h, Ge.h, t), r = ie(Y.s, Ge.s, t), i = ie(Y.l, Ge.l, t);
2313
+ this.getHSL(Y), e.getHSL(We);
2314
+ let n = re(Y.h, We.h, t), r = re(Y.s, We.s, t), i = re(Y.l, We.l, t);
2313
2315
  return this.setHSL(n, r, i), this;
2314
2316
  }
2315
2317
  setFromVector3(e) {
@@ -2337,9 +2339,9 @@ var qe = class {
2337
2339
  *[Symbol.iterator]() {
2338
2340
  yield this.r, yield this.g, yield this.b;
2339
2341
  }
2340
- }, X = /* @__PURE__ */ new qe();
2341
- qe.NAMES = We;
2342
- var Je = class extends ye {
2342
+ }, X = /*@__PURE__*/ new Ke();
2343
+ Ke.NAMES = Ue;
2344
+ var qe = class extends ve {
2343
2345
  constructor(e = null, t = 1, n = 1, r, i, a, o, s, c = f, l = f, u, d) {
2344
2346
  super(null, a, o, s, c, l, r, i, u, d), this.isDataTexture = !0, this.image = {
2345
2347
  data: e,
@@ -2348,10 +2350,10 @@ var Je = class extends ye {
2348
2350
  }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
2349
2351
  }
2350
2352
  };
2351
- function Ye(e, t) {
2353
+ function Je(e, t) {
2352
2354
  return !e || e.constructor === t ? e : typeof t.BYTES_PER_ELEMENT == "number" ? new t(e) : Array.prototype.slice.call(e);
2353
2355
  }
2354
- var Xe = class {
2356
+ var Ye = class {
2355
2357
  constructor(e, t, n, r) {
2356
2358
  this.parameterPositions = e, this._cachedIndex = 0, this.resultBuffer = r === void 0 ? new t.constructor(n) : r, this.sampleValues = t, this.valueSize = n, this.settings = null, this.DefaultSettings_ = {};
2357
2359
  }
@@ -2406,10 +2408,10 @@ var Xe = class {
2406
2408
  return t;
2407
2409
  }
2408
2410
  interpolate_() {
2409
- throw Error("call to abstract method");
2411
+ throw Error("THREE.Interpolant: Call to abstract method.");
2410
2412
  }
2411
2413
  intervalChanged_() {}
2412
- }, Ze = class extends Xe {
2414
+ }, Xe = class extends Ye {
2413
2415
  constructor(e, t, n, r) {
2414
2416
  super(e, t, n, r), this._weightPrev = -0, this._offsetPrev = -0, this._weightNext = -0, this._offsetNext = -0, this.DefaultSettings_ = {
2415
2417
  endingStart: S,
@@ -2444,7 +2446,7 @@ var Xe = class {
2444
2446
  for (let e = 0; e !== o; ++e) i[e] = g * a[l + e] + _ * a[c + e] + v * a[s + e] + y * a[u + e];
2445
2447
  return i;
2446
2448
  }
2447
- }, Qe = class extends Xe {
2449
+ }, Ze = class extends Ye {
2448
2450
  constructor(e, t, n, r) {
2449
2451
  super(e, t, n, r);
2450
2452
  }
@@ -2453,24 +2455,24 @@ var Xe = class {
2453
2455
  for (let e = 0; e !== o; ++e) i[e] = a[c + e] * u + a[s + e] * l;
2454
2456
  return i;
2455
2457
  }
2456
- }, $e = class extends Xe {
2458
+ }, Qe = class extends Ye {
2457
2459
  constructor(e, t, n, r) {
2458
2460
  super(e, t, n, r);
2459
2461
  }
2460
2462
  interpolate_(e) {
2461
2463
  return this.copySampleValue_(e - 1);
2462
2464
  }
2463
- }, et = class extends Xe {
2465
+ }, $e = class extends Ye {
2464
2466
  interpolate_(e, t, n, r) {
2465
- let i = this.resultBuffer, a = this.sampleValues, o = this.valueSize, s = e * o, c = s - o, l = this.settings || this.DefaultSettings_, u = l.inTangents, d = l.outTangents;
2466
- if (!u || !d) {
2467
+ let i = this.resultBuffer, a = this.sampleValues, o = this.valueSize, s = e * o, c = s - o, l = this.inTangents, u = this.outTangents;
2468
+ if (!l || !u) {
2467
2469
  let e = (n - t) / (r - t), l = 1 - e;
2468
2470
  for (let t = 0; t !== o; ++t) i[t] = a[c + t] * l + a[s + t] * e;
2469
2471
  return i;
2470
2472
  }
2471
- let f = o * 2, p = e - 1;
2472
- for (let l = 0; l !== o; ++l) {
2473
- let o = a[c + l], m = a[s + l], h = p * f + l * 2, g = d[h], _ = d[h + 1], v = e * f + l * 2, y = u[v], b = u[v + 1], x = (n - t) / (r - t), S, C, w, T, E;
2473
+ let d = o * 2, f = e - 1;
2474
+ for (let p = 0; p !== o; ++p) {
2475
+ let o = a[c + p], m = a[s + p], h = f * d + p * 2, g = u[h], _ = u[h + 1], v = e * d + p * 2, y = l[v], b = l[v + 1], x = (n - t) / (r - t), S, C, w, T, E;
2474
2476
  for (let e = 0; e < 8; e++) {
2475
2477
  S = x * x, C = S * x, w = 1 - x, T = w * w, E = T * w;
2476
2478
  let e = E * t + 3 * T * x * g + 3 * w * S * y + C * r - n;
@@ -2479,7 +2481,7 @@ var Xe = class {
2479
2481
  if (Math.abs(i) < 1e-10) break;
2480
2482
  x -= e / i, x = Math.max(0, Math.min(1, x));
2481
2483
  }
2482
- i[l] = E * o + 3 * T * x * _ + 3 * w * S * b + C * m;
2484
+ i[p] = E * o + 3 * T * x * _ + 3 * w * S * b + C * m;
2483
2485
  }
2484
2486
  return i;
2485
2487
  }
@@ -2487,7 +2489,7 @@ var Xe = class {
2487
2489
  constructor(e, t, n, r) {
2488
2490
  if (e === void 0) throw Error("THREE.KeyframeTrack: track name is undefined");
2489
2491
  if (t === void 0 || t.length === 0) throw Error("THREE.KeyframeTrack: no keyframes in track named " + e);
2490
- this.name = e, this.times = Ye(t, this.TimeBufferType), this.values = Ye(n, this.ValueBufferType), this.setInterpolation(r || this.DefaultInterpolation);
2492
+ this.name = e, this.times = Je(t, this.TimeBufferType), this.values = Je(n, this.ValueBufferType), this.setInterpolation(r || this.DefaultInterpolation);
2491
2493
  }
2492
2494
  static toJSON(e) {
2493
2495
  let t = e.constructor, n;
@@ -2495,8 +2497,8 @@ var Xe = class {
2495
2497
  else {
2496
2498
  n = {
2497
2499
  name: e.name,
2498
- times: Ye(e.times, Array),
2499
- values: Ye(e.values, Array)
2500
+ times: Je(e.times, Array),
2501
+ values: Je(e.values, Array)
2500
2502
  };
2501
2503
  let t = e.getInterpolation();
2502
2504
  t !== e.DefaultInterpolation && (n.interpolation = t);
@@ -2504,17 +2506,17 @@ var Xe = class {
2504
2506
  return n.type = e.ValueTypeName, n;
2505
2507
  }
2506
2508
  InterpolantFactoryMethodDiscrete(e) {
2507
- return new $e(this.times, this.values, this.getValueSize(), e);
2509
+ return new Qe(this.times, this.values, this.getValueSize(), e);
2508
2510
  }
2509
2511
  InterpolantFactoryMethodLinear(e) {
2510
- return new Qe(this.times, this.values, this.getValueSize(), e);
2512
+ return new Ze(this.times, this.values, this.getValueSize(), e);
2511
2513
  }
2512
2514
  InterpolantFactoryMethodSmooth(e) {
2513
- return new Ze(this.times, this.values, this.getValueSize(), e);
2515
+ return new Xe(this.times, this.values, this.getValueSize(), e);
2514
2516
  }
2515
2517
  InterpolantFactoryMethodBezier(e) {
2516
- let t = new et(this.times, this.values, this.getValueSize(), e);
2517
- return this.settings && (t.settings = this.settings), t;
2518
+ let t = new $e(this.times, this.values, this.getValueSize(), e);
2519
+ return this.settings && (t.inTangents = this.settings.inTangents, t.outTangents = this.settings.outTangents), t;
2518
2520
  }
2519
2521
  setInterpolation(e) {
2520
2522
  let t;
@@ -2536,7 +2538,7 @@ var Xe = class {
2536
2538
  let t = "unsupported interpolation for " + this.ValueTypeName + " keyframe track named " + this.name;
2537
2539
  if (this.createInterpolant === void 0) if (e !== this.DefaultInterpolation) this.setInterpolation(this.DefaultInterpolation);
2538
2540
  else throw Error(t);
2539
- return F("KeyframeTrack:", t), this;
2541
+ return P("KeyframeTrack:", t), this;
2540
2542
  }
2541
2543
  return this.createInterpolant = t, this;
2542
2544
  }
@@ -2578,18 +2580,18 @@ var Xe = class {
2578
2580
  }
2579
2581
  validate() {
2580
2582
  let e = !0, t = this.getValueSize();
2581
- t - Math.floor(t) !== 0 && (I("KeyframeTrack: Invalid value size in track.", this), e = !1);
2583
+ t - Math.floor(t) !== 0 && (F("KeyframeTrack: Invalid value size in track.", this), e = !1);
2582
2584
  let n = this.times, r = this.values, i = n.length;
2583
- i === 0 && (I("KeyframeTrack: Track is empty.", this), e = !1);
2585
+ i === 0 && (F("KeyframeTrack: Track is empty.", this), e = !1);
2584
2586
  let a = null;
2585
2587
  for (let t = 0; t !== i; t++) {
2586
2588
  let r = n[t];
2587
2589
  if (typeof r == "number" && isNaN(r)) {
2588
- I("KeyframeTrack: Time is not a valid number.", this, t, r), e = !1;
2590
+ F("KeyframeTrack: Time is not a valid number.", this, t, r), e = !1;
2589
2591
  break;
2590
2592
  }
2591
2593
  if (a !== null && a > r) {
2592
- I("KeyframeTrack: Out of order keys.", this, t, r, a), e = !1;
2594
+ F("KeyframeTrack: Out of order keys.", this, t, r, a), e = !1;
2593
2595
  break;
2594
2596
  }
2595
2597
  a = r;
@@ -2597,7 +2599,7 @@ var Xe = class {
2597
2599
  if (r !== void 0 && A(r)) for (let t = 0, n = r.length; t !== n; ++t) {
2598
2600
  let n = r[t];
2599
2601
  if (isNaN(n)) {
2600
- I("KeyframeTrack: Value is not a valid number.", this, t, n), e = !1;
2602
+ F("KeyframeTrack: Value is not a valid number.", this, t, n), e = !1;
2601
2603
  break;
2602
2604
  }
2603
2605
  }
@@ -2640,25 +2642,25 @@ var Xe = class {
2640
2642
  }
2641
2643
  };
2642
2644
  Z.prototype.ValueTypeName = "", Z.prototype.TimeBufferType = Float32Array, Z.prototype.ValueBufferType = Float32Array, Z.prototype.DefaultInterpolation = y;
2643
- var tt = class extends Z {
2645
+ var et = class extends Z {
2644
2646
  constructor(e, t, n) {
2645
2647
  super(e, t, n);
2646
2648
  }
2647
2649
  };
2648
- tt.prototype.ValueTypeName = "bool", tt.prototype.ValueBufferType = Array, tt.prototype.DefaultInterpolation = v, tt.prototype.InterpolantFactoryMethodLinear = void 0, tt.prototype.InterpolantFactoryMethodSmooth = void 0;
2649
- var nt = class extends Z {
2650
+ et.prototype.ValueTypeName = "bool", et.prototype.ValueBufferType = Array, et.prototype.DefaultInterpolation = v, et.prototype.InterpolantFactoryMethodLinear = void 0, et.prototype.InterpolantFactoryMethodSmooth = void 0;
2651
+ var tt = class extends Z {
2650
2652
  constructor(e, t, n, r) {
2651
2653
  super(e, t, n, r);
2652
2654
  }
2653
2655
  };
2654
- nt.prototype.ValueTypeName = "color";
2655
- var rt = class extends Z {
2656
+ tt.prototype.ValueTypeName = "color";
2657
+ var nt = class extends Z {
2656
2658
  constructor(e, t, n, r) {
2657
2659
  super(e, t, n, r);
2658
2660
  }
2659
2661
  };
2660
- rt.prototype.ValueTypeName = "number";
2661
- var it = class extends Xe {
2662
+ nt.prototype.ValueTypeName = "number";
2663
+ var rt = class extends Ye {
2662
2664
  constructor(e, t, n, r) {
2663
2665
  super(e, t, n, r);
2664
2666
  }
@@ -2667,28 +2669,28 @@ var it = class extends Xe {
2667
2669
  for (let e = c + o; c !== e; c += 4) z.slerpFlat(i, 0, a, c - o, a, c, s);
2668
2670
  return i;
2669
2671
  }
2670
- }, at = class extends Z {
2672
+ }, it = class extends Z {
2671
2673
  constructor(e, t, n, r) {
2672
2674
  super(e, t, n, r);
2673
2675
  }
2674
2676
  InterpolantFactoryMethodLinear(e) {
2675
- return new it(this.times, this.values, this.getValueSize(), e);
2677
+ return new rt(this.times, this.values, this.getValueSize(), e);
2676
2678
  }
2677
2679
  };
2678
- at.prototype.ValueTypeName = "quaternion", at.prototype.InterpolantFactoryMethodSmooth = void 0;
2679
- var ot = class extends Z {
2680
+ it.prototype.ValueTypeName = "quaternion", it.prototype.InterpolantFactoryMethodSmooth = void 0;
2681
+ var at = class extends Z {
2680
2682
  constructor(e, t, n) {
2681
2683
  super(e, t, n);
2682
2684
  }
2683
2685
  };
2684
- ot.prototype.ValueTypeName = "string", ot.prototype.ValueBufferType = Array, ot.prototype.DefaultInterpolation = v, ot.prototype.InterpolantFactoryMethodLinear = void 0, ot.prototype.InterpolantFactoryMethodSmooth = void 0;
2685
- var st = class extends Z {
2686
+ at.prototype.ValueTypeName = "string", at.prototype.ValueBufferType = Array, at.prototype.DefaultInterpolation = v, at.prototype.InterpolantFactoryMethodLinear = void 0, at.prototype.InterpolantFactoryMethodSmooth = void 0;
2687
+ var ot = class extends Z {
2686
2688
  constructor(e, t, n, r) {
2687
2689
  super(e, t, n, r);
2688
2690
  }
2689
2691
  };
2690
- st.prototype.ValueTypeName = "vector";
2691
- var ct = /* @__PURE__ */ new class {
2692
+ ot.prototype.ValueTypeName = "vector";
2693
+ var st = /*@__PURE__*/ new class {
2692
2694
  constructor(e, t, n) {
2693
2695
  let r = this, i = !1, a = 0, o = 0, s, c = [];
2694
2696
  this.onStart = void 0, this.onLoad = e, this.onProgress = t, this.onError = n, this._abortController = null, this.itemStart = function(e) {
@@ -2698,7 +2700,7 @@ var ct = /* @__PURE__ */ new class {
2698
2700
  }, this.itemError = function(e) {
2699
2701
  r.onError !== void 0 && r.onError(e);
2700
2702
  }, this.resolveURL = function(e) {
2701
- return s ? s(e) : e;
2703
+ return e = e.normalize("NFC"), s ? s(e) : e;
2702
2704
  }, this.setURLModifier = function(e) {
2703
2705
  return s = e, this;
2704
2706
  }, this.addHandler = function(e, t) {
@@ -2719,9 +2721,9 @@ var ct = /* @__PURE__ */ new class {
2719
2721
  get abortController() {
2720
2722
  return this._abortController ||= new AbortController(), this._abortController;
2721
2723
  }
2722
- }(), lt = class {
2724
+ }(), ct = class {
2723
2725
  constructor(e) {
2724
- this.manager = e === void 0 ? ct : e, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {}, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
2726
+ this.manager = e === void 0 ? st : e, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {}, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
2725
2727
  }
2726
2728
  load() {}
2727
2729
  loadAsync(e, t) {
@@ -2750,13 +2752,13 @@ var ct = /* @__PURE__ */ new class {
2750
2752
  return this;
2751
2753
  }
2752
2754
  };
2753
- lt.DEFAULT_MATERIAL_NAME = "__DEFAULT";
2754
- var ut = "\\[\\]\\.:\\/", dt = RegExp("[" + ut + "]", "g"), ft = "[^" + ut + "]", pt = "[^" + ut.replace("\\.", "") + "]", mt = /* @__PURE__ */ "((?:WC+[\\/:])*)".replace("WC", ft), ht = /* @__PURE__ */ "(WCOD+)?".replace("WCOD", pt), gt = /* @__PURE__ */ "(?:\\.(WC+)(?:\\[(.+)\\])?)?".replace("WC", ft), _t = /* @__PURE__ */ "\\.(WC+)(?:\\[(.+)\\])?".replace("WC", ft), vt = RegExp("^" + mt + ht + gt + _t + "$"), yt = [
2755
+ ct.DEFAULT_MATERIAL_NAME = "__DEFAULT";
2756
+ var lt = "\\[\\]\\.:\\/", ut = /* @__PURE__ */ RegExp("[\\[\\]\\.:\\/]", "g"), dt = "[^\\[\\]\\.:\\/]", ft = "[^" + lt.replace("\\.", "") + "]", pt = /*@__PURE__*/ "((?:WC+[\\/:])*)".replace("WC", dt), mt = /*@__PURE__*/ "(WCOD+)?".replace("WCOD", ft), ht = /*@__PURE__*/ "(?:\\.(WC+)(?:\\[(.+)\\])?)?".replace("WC", dt), gt = /*@__PURE__*/ "\\.(WC+)(?:\\[(.+)\\])?".replace("WC", dt), _t = RegExp("^" + pt + mt + ht + gt + "$"), vt = [
2755
2757
  "material",
2756
2758
  "materials",
2757
2759
  "bones",
2758
2760
  "map"
2759
- ], bt = class {
2761
+ ], yt = class {
2760
2762
  constructor(e, t, n) {
2761
2763
  let r = n || Q.parseTrackName(t);
2762
2764
  this._targetGroup = e, this._bindings = e.subscribe_(t, r);
@@ -2786,11 +2788,11 @@ var ut = "\\[\\]\\.:\\/", dt = RegExp("[" + ut + "]", "g"), ft = "[^" + ut + "]"
2786
2788
  return t && t.isAnimationObjectGroup ? new e.Composite(t, n, r) : new e(t, n, r);
2787
2789
  }
2788
2790
  static sanitizeNodeName(e) {
2789
- return e.replace(/\s/g, "_").replace(dt, "");
2791
+ return e.replace(/\s/g, "_").replace(ut, "");
2790
2792
  }
2791
2793
  static parseTrackName(e) {
2792
- let t = vt.exec(e);
2793
- if (t === null) throw Error("PropertyBinding: Cannot parse trackName: " + e);
2794
+ let t = _t.exec(e);
2795
+ if (t === null) throw Error("THREE.PropertyBinding: Cannot parse trackName: " + e);
2794
2796
  let n = {
2795
2797
  nodeName: t[2],
2796
2798
  objectName: t[3],
@@ -2800,9 +2802,9 @@ var ut = "\\[\\]\\.:\\/", dt = RegExp("[" + ut + "]", "g"), ft = "[^" + ut + "]"
2800
2802
  }, r = n.nodeName && n.nodeName.lastIndexOf(".");
2801
2803
  if (r !== void 0 && r !== -1) {
2802
2804
  let e = n.nodeName.substring(r + 1);
2803
- yt.indexOf(e) !== -1 && (n.nodeName = n.nodeName.substring(0, r), n.objectName = e);
2805
+ vt.indexOf(e) !== -1 && (n.nodeName = n.nodeName.substring(0, r), n.objectName = e);
2804
2806
  }
2805
- if (n.propertyName === null || n.propertyName.length === 0) throw Error("PropertyBinding: can not parse propertyName from trackName: " + e);
2807
+ if (n.propertyName === null || n.propertyName.length === 0) throw Error("THREE.PropertyBinding: can not parse propertyName from trackName: " + e);
2806
2808
  return n;
2807
2809
  }
2808
2810
  static findNode(e, t) {
@@ -2890,7 +2892,7 @@ var ut = "\\[\\]\\.:\\/", dt = RegExp("[" + ut + "]", "g"), ft = "[^" + ut + "]"
2890
2892
  bind() {
2891
2893
  let t = this.node, n = this.parsedPath, r = n.objectName, i = n.propertyName, a = n.propertyIndex;
2892
2894
  if (t || (t = e.findNode(this.rootNode, n.nodeName), this.node = t), this.getValue = this._getValue_unavailable, this.setValue = this._setValue_unavailable, !t) {
2893
- F("PropertyBinding: No target node found for track: " + this.path + ".");
2895
+ P("PropertyBinding: No target node found for track: " + this.path + ".");
2894
2896
  return;
2895
2897
  }
2896
2898
  if (r) {
@@ -2898,18 +2900,18 @@ var ut = "\\[\\]\\.:\\/", dt = RegExp("[" + ut + "]", "g"), ft = "[^" + ut + "]"
2898
2900
  switch (r) {
2899
2901
  case "materials":
2900
2902
  if (!t.material) {
2901
- I("PropertyBinding: Can not bind to material as node does not have a material.", this);
2903
+ F("PropertyBinding: Can not bind to material as node does not have a material.", this);
2902
2904
  return;
2903
2905
  }
2904
2906
  if (!t.material.materials) {
2905
- I("PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.", this);
2907
+ F("PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.", this);
2906
2908
  return;
2907
2909
  }
2908
2910
  t = t.material.materials;
2909
2911
  break;
2910
2912
  case "bones":
2911
2913
  if (!t.skeleton) {
2912
- I("PropertyBinding: Can not bind to bones as node does not have a skeleton.", this);
2914
+ F("PropertyBinding: Can not bind to bones as node does not have a skeleton.", this);
2913
2915
  return;
2914
2916
  }
2915
2917
  t = t.skeleton.bones;
@@ -2924,25 +2926,25 @@ var ut = "\\[\\]\\.:\\/", dt = RegExp("[" + ut + "]", "g"), ft = "[^" + ut + "]"
2924
2926
  break;
2925
2927
  }
2926
2928
  if (!t.material) {
2927
- I("PropertyBinding: Can not bind to material as node does not have a material.", this);
2929
+ F("PropertyBinding: Can not bind to material as node does not have a material.", this);
2928
2930
  return;
2929
2931
  }
2930
2932
  if (!t.material.map) {
2931
- I("PropertyBinding: Can not bind to material.map as node.material does not have a map.", this);
2933
+ F("PropertyBinding: Can not bind to material.map as node.material does not have a map.", this);
2932
2934
  return;
2933
2935
  }
2934
2936
  t = t.material.map;
2935
2937
  break;
2936
2938
  default:
2937
2939
  if (t[r] === void 0) {
2938
- I("PropertyBinding: Can not bind to objectName of node undefined.", this);
2940
+ F("PropertyBinding: Can not bind to objectName of node undefined.", this);
2939
2941
  return;
2940
2942
  }
2941
2943
  t = t[r];
2942
2944
  }
2943
2945
  if (e !== void 0) {
2944
2946
  if (t[e] === void 0) {
2945
- I("PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.", this, t);
2947
+ F("PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.", this, t);
2946
2948
  return;
2947
2949
  }
2948
2950
  t = t[e];
@@ -2951,7 +2953,7 @@ var ut = "\\[\\]\\.:\\/", dt = RegExp("[" + ut + "]", "g"), ft = "[^" + ut + "]"
2951
2953
  let o = t[i];
2952
2954
  if (o === void 0) {
2953
2955
  let e = n.nodeName;
2954
- I("PropertyBinding: Trying to update property for track: " + e + "." + i + " but it wasn't found.", t);
2956
+ F("PropertyBinding: Trying to update property for track: " + e + "." + i + " but it wasn't found.", t);
2955
2957
  return;
2956
2958
  }
2957
2959
  let s = this.Versioning.None;
@@ -2960,11 +2962,11 @@ var ut = "\\[\\]\\.:\\/", dt = RegExp("[" + ut + "]", "g"), ft = "[^" + ut + "]"
2960
2962
  if (a !== void 0) {
2961
2963
  if (i === "morphTargetInfluences") {
2962
2964
  if (!t.geometry) {
2963
- I("PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.", this);
2965
+ F("PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.", this);
2964
2966
  return;
2965
2967
  }
2966
2968
  if (!t.geometry.morphAttributes) {
2967
- I("PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.", this);
2969
+ F("PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.", this);
2968
2970
  return;
2969
2971
  }
2970
2972
  t.morphTargetDictionary[a] !== void 0 && (a = t.morphTargetDictionary[a]);
@@ -2977,7 +2979,7 @@ var ut = "\\[\\]\\.:\\/", dt = RegExp("[" + ut + "]", "g"), ft = "[^" + ut + "]"
2977
2979
  this.node = null, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
2978
2980
  }
2979
2981
  };
2980
- Q.Composite = bt, Q.prototype.BindingType = {
2982
+ Q.Composite = yt, Q.prototype.BindingType = {
2981
2983
  Direct: 0,
2982
2984
  EntireArray: 1,
2983
2985
  ArrayElement: 2,
@@ -3035,10 +3037,10 @@ Q.Composite = bt, Q.prototype.BindingType = {
3035
3037
  let i = this.elements;
3036
3038
  return i[0] = e, i[2] = t, i[1] = n, i[3] = r, this;
3037
3039
  }
3038
- }, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { revision: "184" } })), typeof window < "u" && (window.__THREE__ ? F("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = "184");
3040
+ }, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { revision: "185" } })), typeof window < "u" && (window.__THREE__ ? P("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = "185");
3039
3041
  //#endregion
3040
3042
  //#region src/FontWorkerClient.ts
3041
- var xt = class {
3043
+ var bt = class {
3042
3044
  _worker;
3043
3045
  _concurrencyManager;
3044
3046
  _nextId = 0;
@@ -3117,7 +3119,7 @@ var xt = class {
3117
3119
  }, n ?? []);
3118
3120
  });
3119
3121
  }
3120
- }, St = class {
3122
+ }, xt = class {
3121
3123
  _map = /* @__PURE__ */ new Map();
3122
3124
  _maxSize;
3123
3125
  constructor(e) {
@@ -3146,24 +3148,24 @@ var xt = class {
3146
3148
  this._map.clear();
3147
3149
  }
3148
3150
  }, $ = (e, t) => `${e}#q=${t}`;
3149
- function Ct(e, t, n, r) {
3150
- return Tt(e, t, n, r === 4 ? g : _, "");
3151
+ function St(e, t, n, r) {
3152
+ return wt(e, t, n, r === 4 ? g : _, "");
3151
3153
  }
3152
- function wt(e, t, n) {
3153
- return Tt(e, t, n, g, T);
3154
+ function Ct(e, t, n) {
3155
+ return wt(e, t, n, g, T);
3154
3156
  }
3155
- function Tt(e, t, n, r, i) {
3156
- let a = new Je(e, t, n, r, h);
3157
+ function wt(e, t, n, r, i) {
3158
+ let a = new qe(e, t, n, r, h);
3157
3159
  return a.minFilter = p, a.magFilter = p, a.generateMipmaps = !1, a.colorSpace = i, a.needsUpdate = !0, a;
3158
3160
  }
3159
- var Et = 1e4, Dt = (e) => {
3161
+ var Tt = 1e4, Et = (e) => {
3160
3162
  let t = [];
3161
3163
  for (let n = 0; n + 1 < e.length; n += 2) t.push({
3162
3164
  from: e[n],
3163
3165
  to: e[n + 1]
3164
3166
  });
3165
3167
  return t;
3166
- }, Ot = class {
3168
+ }, Dt = class {
3167
3169
  _workerUrl;
3168
3170
  _client;
3169
3171
  _clientPromise;
@@ -3246,7 +3248,7 @@ var Et = 1e4, Dt = (e) => {
3246
3248
  if (!this._concurrencyManager) return Promise.reject(/* @__PURE__ */ Error("FontManager: concurrencyManager not set"));
3247
3249
  let e = this._concurrencyManager;
3248
3250
  return this._clientPromise = (async () => {
3249
- let t = new xt(this._workerUrl, e, { fontBudgetBytes: this._fontBudgetBytes });
3251
+ let t = new bt(this._workerUrl, e, { fontBudgetBytes: this._fontBudgetBytes });
3250
3252
  return await t.ready(), this._client = t, t;
3251
3253
  })(), this._clientPromise.catch(() => {
3252
3254
  this._clientPromise = void 0;
@@ -3266,7 +3268,7 @@ var Et = 1e4, Dt = (e) => {
3266
3268
  }
3267
3269
  if (this._pending.has(r)) return this._refCount.set(r, (this._refCount.get(r) ?? 0) + 1), this._pending.get(r);
3268
3270
  let i = n ? $(n, t) : void 0, a = this._fetchAndLoad(e, r, i, t);
3269
- this._refCount.set(r, 1), this._pending.set(r, a), this._shapeCache.set(r, new St(Et));
3271
+ this._refCount.set(r, 1), this._pending.set(r, a), this._shapeCache.set(r, new xt(Tt));
3270
3272
  try {
3271
3273
  await a, this._loaded.add(r), this._atlasKeys.set(r, i ?? r);
3272
3274
  } catch (e) {
@@ -3336,7 +3338,7 @@ var Et = 1e4, Dt = (e) => {
3336
3338
  let e = this._segmentTextByFace(t.faces, n);
3337
3339
  await Promise.all(e.map((e) => this._prepareSingleFontText(e.url, e.text, r)));
3338
3340
  let a = this._stitchSegments(e, r), o = this._shapeCache.get(i);
3339
- o || (o = new St(Et), this._shapeCache.set(i, o)), a._generation = this._currentGen(i), o.set(n, a);
3341
+ o || (o = new xt(Tt), this._shapeCache.set(i, o)), a._generation = this._currentGen(i), o.set(n, a);
3340
3342
  })();
3341
3343
  this._preparePending.set(a, o);
3342
3344
  try {
@@ -3385,14 +3387,14 @@ var Et = 1e4, Dt = (e) => {
3385
3387
  return this._atlasCache.get(n);
3386
3388
  }
3387
3389
  getAtlasTexture(e, t) {
3388
- return this._getOrUpdateTexture(this._resolveAtlasKey(e, t), this._atlasCache, this._atlasDirty, this._textureCache, (e) => Ct(e.data, e.width, e.height, e.channels));
3390
+ return this._getOrUpdateTexture(this._resolveAtlasKey(e, t), this._atlasCache, this._atlasDirty, this._textureCache, (e) => St(e.data, e.width, e.height, e.channels));
3389
3391
  }
3390
3392
  getColorAtlas(e, t) {
3391
3393
  let n = this._resolveAtlasKey(e, t);
3392
3394
  return this._colorAtlasCache.get(n);
3393
3395
  }
3394
3396
  getColorAtlasTexture(e, t) {
3395
- return this._getOrUpdateTexture(this._resolveAtlasKey(e, t), this._colorAtlasCache, this._colorAtlasDirty, this._colorTextureCache, (e) => wt(e.data, e.width, e.height));
3397
+ return this._getOrUpdateTexture(this._resolveAtlasKey(e, t), this._colorAtlasCache, this._colorAtlasDirty, this._colorTextureCache, (e) => Ct(e.data, e.width, e.height));
3396
3398
  }
3397
3399
  _getOrUpdateTexture(e, t, n, r, i) {
3398
3400
  if (!n.has(e)) {
@@ -3479,7 +3481,7 @@ var Et = 1e4, Dt = (e) => {
3479
3481
  if (!a.ok) throw Error(`FontManager: failed to fetch font from ${e}: ${a.status}`);
3480
3482
  let o = await a.arrayBuffer(), s = await i.loadFont(t, o, n, r);
3481
3483
  if (!s.ok) throw Error(`FontManager: WASM failed to load font from ${e}`);
3482
- s.cmapRanges?.length && !this._cmapRanges.has(e) && (this._cmapRanges.set(e, Dt(s.cmapRanges)), this._applyCmapRanges(e));
3484
+ s.cmapRanges?.length && !this._cmapRanges.has(e) && (this._cmapRanges.set(e, Et(s.cmapRanges)), this._applyCmapRanges(e));
3483
3485
  }
3484
3486
  async _flushBatch() {
3485
3487
  this._batchScheduled = !1;
@@ -3507,11 +3509,11 @@ var Et = 1e4, Dt = (e) => {
3507
3509
  };
3508
3510
  await Promise.all([...e].map(([e, t]) => n(e, t)));
3509
3511
  }
3510
- }, kt = 64, At = (e) => e ? 8 : 35, jt = {
3512
+ }, Ot = 64, kt = (e) => e ? 8 : 35, At = {
3511
3513
  Normal: 0,
3512
3514
  Whitespace: 1,
3513
3515
  Newline: 2,
3514
3516
  Ideographic: 3
3515
3517
  };
3516
3518
  //#endregion
3517
- export { kt as COLOR_GLYPH_PX_SIZE, Ot as FontManager, xt as FontWorkerClient, jt as GlyphCharClass, St as LRUMap, At as atlasRangePx, wt as createColorAtlasTexture, Ct as createSdfAtlasTexture, c as fetchFontFamilyFromCss, e as parseCssUnicodeRange, s as parseFontFamilyFromCss };
3519
+ export { Ot as COLOR_GLYPH_PX_SIZE, Dt as FontManager, bt as FontWorkerClient, At as GlyphCharClass, xt as LRUMap, kt as atlasRangePx, Ct as createColorAtlasTexture, St as createSdfAtlasTexture, c as fetchFontFamilyFromCss, e as parseCssUnicodeRange, s as parseFontFamilyFromCss };