a3js 0.0.24 → 0.0.25

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/a3js.es.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as oe from "three";
2
- import { Matrix4 as Tt, Vector3 as Ie, Object3D as pt, Vector2 as Je, Loader as nt, FileLoader as ht, ShapePath as hr, ExtrudeGeometry as fr, TrianglesDrawMode as dr, TriangleFanDrawMode as Qt, TriangleStripDrawMode as Sn, LoaderUtils as mt, MeshPhysicalMaterial as tt, Color as Ke, LinearSRGBColorSpace as et, SRGBColorSpace as Ve, SpotLight as pr, PointLight as mr, DirectionalLight as yr, Quaternion as bt, InstancedMesh as gr, InstancedBufferAttribute as Tr, TextureLoader as In, ImageBitmapLoader as Er, BufferAttribute as yt, InterleavedBuffer as Nn, InterleavedBufferAttribute as wn, LinearMipmapLinearFilter as kn, NearestMipmapLinearFilter as vr, LinearMipmapNearestFilter as Rr, NearestMipmapNearestFilter as _r, LinearFilter as Zt, NearestFilter as Cn, RepeatWrapping as lt, MirroredRepeatWrapping as Ar, ClampToEdgeWrapping as Rt, PointsMaterial as Pn, Material as Ht, LineBasicMaterial as Mn, MeshStandardMaterial as Dn, DoubleSide as Fn, MeshBasicMaterial as rt, PropertyBinding as br, BufferGeometry as at, SkinnedMesh as Lr, Mesh as wt, LineSegments as Un, Line as Or, LineLoop as xr, Points as jn, Group as _t, PerspectiveCamera as Sr, MathUtils as Ir, OrthographicCamera as Nr, Skeleton as Bn, AnimationClip as zn, Bone as Gn, InterpolateDiscrete as wr, InterpolateLinear as Hn, Texture as dn, VectorKeyframeTrack as kt, NumberKeyframeTrack as pn, QuaternionKeyframeTrack as Jt, ColorManagement as Lt, FrontSide as Vn, Interpolant as kr, Box3 as Cr, Sphere as Pr, Scene as Mr, SphereGeometry as Vt, BackSide as mn, MeshPhongMaterial as Dr, DataTexture as Fr, Float32BufferAttribute as je, BoxGeometry as Ur, ConeGeometry as jr, CylinderGeometry as Br, ShapeUtils as zr } from "three";
2
+ import { Matrix4 as Tt, Vector3 as Ie, Object3D as pt, Vector2 as Je, Loader as nt, FileLoader as ht, ShapePath as hr, ExtrudeGeometry as fr, TrianglesDrawMode as dr, TriangleFanDrawMode as Qt, TriangleStripDrawMode as xn, LoaderUtils as mt, MeshPhysicalMaterial as tt, Color as Ke, LinearSRGBColorSpace as et, SRGBColorSpace as Ve, SpotLight as pr, PointLight as mr, DirectionalLight as yr, Quaternion as bt, InstancedMesh as gr, InstancedBufferAttribute as Tr, TextureLoader as Sn, ImageBitmapLoader as Er, BufferAttribute as yt, InterleavedBuffer as In, InterleavedBufferAttribute as Nn, LinearMipmapLinearFilter as wn, NearestMipmapLinearFilter as vr, LinearMipmapNearestFilter as Rr, NearestMipmapNearestFilter as _r, LinearFilter as Zt, NearestFilter as kn, RepeatWrapping as lt, MirroredRepeatWrapping as Ar, ClampToEdgeWrapping as Rt, PointsMaterial as Cn, Material as Ht, LineBasicMaterial as Pn, MeshStandardMaterial as Mn, DoubleSide as Dn, MeshBasicMaterial as rt, PropertyBinding as br, BufferGeometry as at, SkinnedMesh as Lr, Mesh as wt, LineSegments as Fn, Line as Or, LineLoop as xr, Points as Un, Group as _t, PerspectiveCamera as Sr, MathUtils as Ir, OrthographicCamera as Nr, Skeleton as jn, AnimationClip as Bn, Bone as zn, InterpolateDiscrete as wr, InterpolateLinear as Gn, Texture as fn, VectorKeyframeTrack as kt, NumberKeyframeTrack as dn, QuaternionKeyframeTrack as Jt, ColorManagement as Lt, FrontSide as Hn, Interpolant as kr, Box3 as Cr, Sphere as Pr, Scene as Mr, SphereGeometry as Vt, BackSide as pn, MeshPhongMaterial as Dr, DataTexture as Fr, Float32BufferAttribute as je, BoxGeometry as Ur, ConeGeometry as jr, CylinderGeometry as Br, ShapeUtils as zr } from "three";
3
3
  import { unzip as Gr, strFromU8 as Hr } from "fflate";
4
- function Wn(n) {
4
+ function Vn(n) {
5
5
  return typeof n == "string";
6
6
  }
7
- function sn(n) {
7
+ function on(n) {
8
8
  return n.isMesh === !0;
9
9
  }
10
10
  function Vr(n) {
@@ -31,24 +31,6 @@ function Qr(n) {
31
31
  function Zr(n) {
32
32
  return n.isPerspectiveCamera === !0;
33
33
  }
34
- const Kn = {
35
- rigidBody: "dynamic",
36
- collider: "solid",
37
- meshCollider: "convex_hull",
38
- mass: 1,
39
- friction: 0.5,
40
- restitution: 0.5,
41
- membership: 1,
42
- filter: 1,
43
- collisionDetection: !1
44
- };
45
- class Jr {
46
- object;
47
- option;
48
- constructor(e, t) {
49
- this.object = e, this.option = t;
50
- }
51
- }
52
34
  class Ce {
53
35
  _x;
54
36
  _y;
@@ -146,7 +128,7 @@ function Ct(n, e, t) {
146
128
  );
147
129
  }
148
130
  }
149
- function $r(n, e = "XYZ") {
131
+ function Jr(n, e = "XYZ") {
150
132
  const t = new Ce(0, 0, 0, 1);
151
133
  for (let i = 0; i < 3; i++)
152
134
  switch (e.charAt(i)) {
@@ -246,7 +228,7 @@ class Et {
246
228
  * 補間モードのON,OFFを切り替えます。
247
229
  */
248
230
  enableInterpolation(e) {
249
- e && !this.interpolation && this.object3D ? this.interpolation = new ei(this.object3D) : !e && this.interpolation && (this.interpolation = void 0);
231
+ e && !this.interpolation && this.object3D ? this.interpolation = new $r(this.object3D) : !e && this.interpolation && (this.interpolation = void 0);
250
232
  }
251
233
  /**
252
234
  * ビルボード機能のON,OFFを切り替えます。
@@ -257,7 +239,7 @@ class Et {
257
239
  * 対象を指定して呼び出して下さい。
258
240
  */
259
241
  enableBillboard(e) {
260
- e && this.billboard ? this.billboard.setTarget(e.object) : e && !this.billboard && this.objectA3 ? this.billboard = new ti(this.objectA3, e.object) : this.billboard = void 0;
242
+ e && this.billboard ? this.billboard.setTarget(e.object) : e && !this.billboard && this.objectA3 ? this.billboard = new ei(this.objectA3, e.object) : this.billboard = void 0;
261
243
  }
262
244
  /**
263
245
  *
@@ -290,12 +272,12 @@ class Et {
290
272
  }
291
273
  setTime(e) {
292
274
  }
293
- addOnselfToPhysics(e) {
275
+ addOneselfToPhysics(e) {
294
276
  }
295
- removeOnselfFromPhysics(e) {
277
+ removeOneselfFromPhysics(e) {
296
278
  }
297
279
  }
298
- class ei {
280
+ class $r {
299
281
  obj;
300
282
  firstLoc;
301
283
  firstRot;
@@ -340,7 +322,7 @@ class ei {
340
322
  this.nowLoc.lerp(this.firstLoc, this.lastLoc, i), this.nowRot.slerp(this.firstRot, this.lastRot, i), this.nowScale.lerp(this.firstScale, this.lastScale, i), this.obj.position.set(this.nowLoc.x, this.nowLoc.y, this.nowLoc.z), this.obj.quaternion.set(this.nowRot.x, this.nowRot.y, this.nowRot.z, this.nowRot.w), this.obj.scale.set(this.nowScale.x, this.nowScale.y, this.nowScale.z);
341
323
  }
342
324
  }
343
- class ti {
325
+ class ei {
344
326
  up;
345
327
  obj;
346
328
  target;
@@ -358,7 +340,21 @@ class ti {
358
340
  this.obj.quaternion.set(e.x, e.y, e.z, e.w);
359
341
  }
360
342
  }
343
+ const Wn = {
344
+ rigidBody: "dynamic",
345
+ collider: "solid",
346
+ meshCollider: "convex_hull",
347
+ mass: 1,
348
+ friction: 0.5,
349
+ restitution: 0.5,
350
+ membership: 1,
351
+ filter: 1,
352
+ collisionDetection: !1
353
+ };
354
+ class Kn extends Et {
355
+ }
361
356
  let We;
357
+ const $t = /* @__PURE__ */ new Map();
362
358
  class Pt {
363
359
  static RAPIER;
364
360
  isInitialized = !1;
@@ -381,7 +377,7 @@ class Pt {
381
377
  let t = 0.016666666666666666;
382
378
  this.isRapierWorldOption(e) && (t = e.timestep);
383
379
  const i = new We.World(e.gravity);
384
- return new $t(i, t);
380
+ return new ti(i, t);
385
381
  }
386
382
  isRapierWorldOption(e) {
387
383
  return (
@@ -390,7 +386,7 @@ class Pt {
390
386
  );
391
387
  }
392
388
  }
393
- class $t {
389
+ class ti {
394
390
  world;
395
391
  timestep;
396
392
  collisionEventQueue;
@@ -398,10 +394,10 @@ class $t {
398
394
  this.world = e, this.timestep = t, this.collisionEventQueue = new We.EventQueue(!0), this.world.integrationParameters.dt = this.timestep;
399
395
  }
400
396
  add(e) {
401
- yn(e) && e.addOneself(this);
397
+ e instanceof mn && e.addOneselfToPhysics(this);
402
398
  }
403
399
  remove(e) {
404
- yn(e) && e.removeOneself(this);
400
+ e instanceof mn && e.removeOneselfFromPhysics(this);
405
401
  }
406
402
  update(e) {
407
403
  const t = Math.ceil(e / this.timestep);
@@ -411,7 +407,7 @@ class $t {
411
407
  getCollisions() {
412
408
  const e = [];
413
409
  return this.collisionEventQueue.drainCollisionEvents((t, i, r) => {
414
- const a = en.collisionMap.get(t), o = en.collisionMap.get(i);
410
+ const a = $t.get(t), o = $t.get(i);
415
411
  a && o && e.push({
416
412
  objectA: a,
417
413
  partOfA: t,
@@ -422,13 +418,9 @@ class $t {
422
418
  }), e;
423
419
  }
424
420
  }
425
- class en extends Jr {
426
- static collisionMap = /* @__PURE__ */ new Map();
421
+ class mn extends Kn {
427
422
  }
428
- function yn(n) {
429
- return "addOneself" in n && "removeOneself" in n;
430
- }
431
- class ni extends Et {
423
+ class ni extends Kn {
432
424
  bodyDesc;
433
425
  body;
434
426
  colliderDescs;
@@ -436,7 +428,7 @@ class ni extends Et {
436
428
  completeOption;
437
429
  constructor(e, t = {}) {
438
430
  super(e), this.colliderDescs = [], this.colliders = [], this.completeOption = {
439
- ...Kn,
431
+ ...Wn,
440
432
  ...t
441
433
  };
442
434
  }
@@ -471,7 +463,7 @@ class ni extends Et {
471
463
  });
472
464
  const i = [];
473
465
  e.object.traverse((a) => {
474
- if (sn(a)) {
466
+ if (on(a)) {
475
467
  const o = oi(a.geometry), u = t.membership << 16 | t.filter;
476
468
  if (o)
477
469
  o.colliderDesc.setCollisionGroups(u), t.collisionDetection && o.colliderDesc.setActiveEvents(We.ActiveEvents.COLLISION_EVENTS), this.colliderDescs.push(o.colliderDesc), o.colliderDesc.setRestitution(t.restitution).setFriction(t.friction), i.push(o.volume);
@@ -479,10 +471,10 @@ class ni extends Et {
479
471
  let c, s;
480
472
  switch (t.meshCollider) {
481
473
  case "tri_mesh":
482
- c = ri(a), s = gn(a.geometry);
474
+ c = ri(a), s = yn(a.geometry);
483
475
  break;
484
476
  case "convex_hull":
485
- c = ii(a), s = gn(a.geometry);
477
+ c = ii(a), s = yn(a.geometry);
486
478
  break;
487
479
  }
488
480
  c && (c.setCollisionGroups(u), t.collisionDetection && c.setActiveEvents(We.ActiveEvents.COLLISION_EVENTS), this.colliderDescs.push(c), i.push(s));
@@ -515,13 +507,13 @@ class ni extends Et {
515
507
  }
516
508
  setScaleNow(e) {
517
509
  }
518
- addOnselfToPhysics(e) {
510
+ addOneselfToPhysics(e) {
519
511
  this.bodyDesc && (this.body = e.world.createRigidBody(this.bodyDesc)), this.colliderDescs.forEach((t) => {
520
512
  const i = e.world.createCollider(t, this.body);
521
- this.colliders.push(i), this.objectA3 && en.collisionMap.set(i.handle, this.objectA3);
513
+ this.colliders.push(i), this.objectA3 && $t.set(i.handle, this.objectA3);
522
514
  });
523
515
  }
524
- removeOnselfFromPhysics(e) {
516
+ removeOneselfFromPhysics(e) {
525
517
  this.body && e.world.removeRigidBody(this.body), this.colliders.forEach((t) => {
526
518
  e.world.removeCollider(t, !1);
527
519
  });
@@ -529,7 +521,7 @@ class ni extends Et {
529
521
  }
530
522
  function ri(n) {
531
523
  let e = null;
532
- if (sn(n)) {
524
+ if (on(n)) {
533
525
  const t = n;
534
526
  t.updateWorldMatrix(!0, !0);
535
527
  const i = t.geometry.clone();
@@ -549,7 +541,7 @@ function ri(n) {
549
541
  }
550
542
  function ii(n) {
551
543
  let e = null;
552
- if (sn(n)) {
544
+ if (on(n)) {
553
545
  const t = n;
554
546
  t.updateWorldMatrix(!0, !0);
555
547
  const i = t.geometry.clone();
@@ -559,7 +551,7 @@ function ii(n) {
559
551
  }
560
552
  return e;
561
553
  }
562
- function gn(n) {
554
+ function yn(n) {
563
555
  const e = n.attributes.position;
564
556
  if (!e)
565
557
  throw new Error("position attribute not found");
@@ -618,9 +610,9 @@ function oi(n) {
618
610
  }
619
611
  return null;
620
612
  }
621
- const tn = new Pt();
613
+ const en = new Pt();
622
614
  async function zo() {
623
- await tn.init();
615
+ await en.init();
624
616
  }
625
617
  class si {
626
618
  scene;
@@ -629,13 +621,13 @@ class si {
629
621
  physicsDt = 1 / 60;
630
622
  collisionListener;
631
623
  constructor() {
632
- this.scene = new oe.Scene(), this.objects = [], tn.isInitialized && (this.physicsWorld = tn.createWorld({
624
+ this.scene = new oe.Scene(), this.objects = [], en.isInitialized && (this.physicsWorld = en.createWorld({
633
625
  gravity: { x: 0, y: -9.81, z: 0 },
634
626
  timestep: this.physicsDt
635
627
  }));
636
628
  }
637
629
  add(e) {
638
- this.scene.add(e.object), this.objects.push(e), e.scene = this, this.physicsWorld instanceof $t && e.motion.addOnselfToPhysics(this.physicsWorld);
630
+ this.scene.add(e.object), this.objects.push(e), e.scene = this, this.physicsWorld && e.motion.addOneselfToPhysics(this.physicsWorld);
639
631
  }
640
632
  remove(e) {
641
633
  this.scene.remove(e.object);
@@ -643,7 +635,7 @@ class si {
643
635
  const t = this.objects.indexOf(e);
644
636
  this.objects[t] = this.objects[this.objects.length - 1], this.objects.pop();
645
637
  }
646
- e.scene = null, this.physicsWorld instanceof $t && e.motion.removeOnselfFromPhysics(this.physicsWorld);
638
+ e.scene = null, this.physicsWorld && e.motion.removeOneselfFromPhysics(this.physicsWorld);
647
639
  }
648
640
  setCollisionListener(e) {
649
641
  this.collisionListener = e;
@@ -707,7 +699,7 @@ class ze {
707
699
  }
708
700
  initDefaultPhysics(e) {
709
701
  const t = {
710
- ...Kn,
702
+ ...Wn,
711
703
  ...e
712
704
  };
713
705
  this.motion = new ni(this, t), this.motion.setObject(this);
@@ -816,7 +808,7 @@ class ze {
816
808
  setRotation(e, t, i) {
817
809
  const r = new _e();
818
810
  typeof e == "number" ? r.set(e, t, i) : r.set(e), r.scale(Math.PI / 360);
819
- const a = this.rotationOrder ? this.rotationOrder : ze.defaultRotationOrder, o = $r(r, a);
811
+ const a = this.rotationOrder ? this.rotationOrder : ze.defaultRotationOrder, o = Jr(r, a);
820
812
  this.setQuat(o);
821
813
  }
822
814
  setRotationNow(e, t, i) {
@@ -993,7 +985,7 @@ async function Yn(n) {
993
985
  });
994
986
  return { zipUrl: n, unzipped: i };
995
987
  }
996
- function an(n, e) {
988
+ function sn(n, e) {
997
989
  if (e = e.replace(/^\.\//, "").replace(/^\//, ""), n.unzipped[e])
998
990
  return Hr(n.unzipped[e]);
999
991
  throw new Error(`readStringFromUnzippedA3(): no file at ${e}`);
@@ -1026,11 +1018,11 @@ function di(n) {
1026
1018
  return e;
1027
1019
  return "application/octet-stream";
1028
1020
  }
1029
- function cn(n, e) {
1021
+ function an(n, e) {
1030
1022
  if (!e) return n;
1031
1023
  const t = { ...n };
1032
1024
  for (const i in e)
1033
- typeof n[i] == "object" && typeof e[i] == "object" ? t[i] = cn(n[i], e[i]) : t[i] = e[i];
1025
+ typeof n[i] == "object" && typeof e[i] == "object" ? t[i] = an(n[i], e[i]) : t[i] = e[i];
1034
1026
  return t;
1035
1027
  }
1036
1028
  const pi = {
@@ -1063,7 +1055,7 @@ class ut extends ze {
1063
1055
  config;
1064
1056
  sound;
1065
1057
  constructor(e, t = {}) {
1066
- super(), this.config = cn(pi, t), this.ready = this.asyncInit(e);
1058
+ super(), this.config = an(pi, t), this.ready = this.asyncInit(e);
1067
1059
  }
1068
1060
  initObject() {
1069
1061
  return new oe.Object3D();
@@ -1186,7 +1178,7 @@ class qn extends pt {
1186
1178
  return super.copy(e, t), this.element = e.element.cloneNode(!0), this.center = e.center, this;
1187
1179
  }
1188
1180
  }
1189
- const dt = new Ie(), Tn = new Tt(), En = new Tt(), vn = new Ie(), Rn = new Ie();
1181
+ const dt = new Ie(), gn = new Tt(), Tn = new Tt(), En = new Ie(), vn = new Ie();
1190
1182
  class Qn {
1191
1183
  /**
1192
1184
  * Constructs a new CSS2D renderer.
@@ -1205,7 +1197,7 @@ class Qn {
1205
1197
  height: r
1206
1198
  };
1207
1199
  }, this.render = function(T, m) {
1208
- T.matrixWorldAutoUpdate === !0 && T.updateMatrixWorld(), m.parent === null && m.matrixWorldAutoUpdate === !0 && m.updateMatrixWorld(), Tn.copy(m.matrixWorldInverse), En.multiplyMatrices(m.projectionMatrix, Tn), f(T, T, m), this.sortObjects && p(T);
1200
+ T.matrixWorldAutoUpdate === !0 && T.updateMatrixWorld(), m.parent === null && m.matrixWorldAutoUpdate === !0 && m.updateMatrixWorld(), gn.copy(m.matrixWorldInverse), Tn.multiplyMatrices(m.projectionMatrix, gn), f(T, T, m), this.sortObjects && p(T);
1209
1201
  }, this.setSize = function(T, m) {
1210
1202
  i = T, r = m, a = i / 2, o = r / 2, c.style.width = T + "px", c.style.height = m + "px";
1211
1203
  };
@@ -1220,7 +1212,7 @@ class Qn {
1220
1212
  return;
1221
1213
  }
1222
1214
  if (T.isCSS2DObject) {
1223
- dt.setFromMatrixPosition(T.matrixWorld), dt.applyMatrix4(En);
1215
+ dt.setFromMatrixPosition(T.matrixWorld), dt.applyMatrix4(Tn);
1224
1216
  const d = dt.z >= -1 && dt.z <= 1 && T.layers.test(l.layers) === !0, y = T.element;
1225
1217
  y.style.display = d === !0 ? "" : "none", d === !0 && (T.onBeforeRender(t, m, l), y.style.transform = "translate(" + -100 * T.center.x + "%," + -100 * T.center.y + "%)translate(" + (dt.x * a + a) + "px," + (-dt.y * o + o) + "px)", y.parentNode !== c && c.appendChild(y), T.onAfterRender(t, m, l));
1226
1218
  const v = {
@@ -1232,7 +1224,7 @@ class Qn {
1232
1224
  f(T.children[d], m, l);
1233
1225
  }
1234
1226
  function h(T, m) {
1235
- return vn.setFromMatrixPosition(T.matrixWorld), Rn.setFromMatrixPosition(m.matrixWorld), vn.distanceToSquared(Rn);
1227
+ return En.setFromMatrixPosition(T.matrixWorld), vn.setFromMatrixPosition(m.matrixWorld), En.distanceToSquared(vn);
1236
1228
  }
1237
1229
  function g(T) {
1238
1230
  const m = [];
@@ -1669,7 +1661,7 @@ class Vo extends ze {
1669
1661
  return a.position.set(0, 0.8, 0), i.add(a), i;
1670
1662
  }
1671
1663
  initMotion(e) {
1672
- const t = cn(Ei, e);
1664
+ const t = an(Ei, e);
1673
1665
  return new vi(this, t);
1674
1666
  }
1675
1667
  }
@@ -1809,7 +1801,7 @@ async function Wo(n) {
1809
1801
  if (n.match(/.zip$/i)) {
1810
1802
  let e = n.substring(n.lastIndexOf("/"));
1811
1803
  e = e.substring(0, e.length - 4);
1812
- const t = await Yn(n), i = an(t, e);
1804
+ const t = await Yn(n), i = sn(t, e);
1813
1805
  Dt = new Zn(JSON.parse(i));
1814
1806
  } else
1815
1807
  Dt = await new Ri().loadAsync(n);
@@ -1817,7 +1809,7 @@ async function Wo(n) {
1817
1809
  class Ko extends ze {
1818
1810
  initObject(e) {
1819
1811
  let t;
1820
- if (Wn(e) ? t = e : t = "ERROR", Dt == null) {
1812
+ if (Vn(e) ? t = e : t = "ERROR", Dt == null) {
1821
1813
  const i = new oe.BoxGeometry(), r = new oe.MeshStandardMaterial({ color: 16711680 });
1822
1814
  return new oe.Mesh(i, r);
1823
1815
  } else {
@@ -1828,10 +1820,10 @@ class Ko extends ze {
1828
1820
  }
1829
1821
  }
1830
1822
  }
1831
- function _n(n, e) {
1823
+ function Rn(n, e) {
1832
1824
  if (e === dr)
1833
1825
  return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), n;
1834
- if (e === Qt || e === Sn) {
1826
+ if (e === Qt || e === xn) {
1835
1827
  let t = n.getIndex();
1836
1828
  if (t === null) {
1837
1829
  const o = [], u = n.getAttribute("position");
@@ -2464,7 +2456,7 @@ class Vi {
2464
2456
  }));
2465
2457
  }
2466
2458
  }
2467
- const Jn = "glTF", vt = 12, An = { JSON: 1313821514, BIN: 5130562 };
2459
+ const Jn = "glTF", vt = 12, _n = { JSON: 1313821514, BIN: 5130562 };
2468
2460
  class Wi {
2469
2461
  constructor(e) {
2470
2462
  this.name = Re.KHR_BINARY_GLTF, this.content = null, this.body = null;
@@ -2483,10 +2475,10 @@ class Wi {
2483
2475
  const u = a.getUint32(o, !0);
2484
2476
  o += 4;
2485
2477
  const c = a.getUint32(o, !0);
2486
- if (o += 4, c === An.JSON) {
2478
+ if (o += 4, c === _n.JSON) {
2487
2479
  const s = new Uint8Array(e, vt + o, u);
2488
2480
  this.content = i.decode(s);
2489
- } else if (c === An.BIN) {
2481
+ } else if (c === _n.BIN) {
2490
2482
  const s = vt + o;
2491
2483
  this.body = e.slice(s, s + u);
2492
2484
  }
@@ -2505,11 +2497,11 @@ class Ki {
2505
2497
  decodePrimitive(e, t) {
2506
2498
  const i = this.json, r = this.dracoLoader, a = e.extensions[this.name].bufferView, o = e.extensions[this.name].attributes, u = {}, c = {}, s = {};
2507
2499
  for (const f in o) {
2508
- const h = nn[f] || f.toLowerCase();
2500
+ const h = tn[f] || f.toLowerCase();
2509
2501
  u[h] = o[f];
2510
2502
  }
2511
2503
  for (const f in e.attributes) {
2512
- const h = nn[f] || f.toLowerCase();
2504
+ const h = tn[f] || f.toLowerCase();
2513
2505
  if (o[f] !== void 0) {
2514
2506
  const g = i.accessors[e.attributes[f]], p = gt[g.componentType];
2515
2507
  s[h] = p.name, c[h] = g.normalized === !0;
@@ -2582,14 +2574,14 @@ const qe = {
2582
2574
  5123: Uint16Array,
2583
2575
  5125: Uint32Array,
2584
2576
  5126: Float32Array
2585
- }, bn = {
2586
- 9728: Cn,
2577
+ }, An = {
2578
+ 9728: kn,
2587
2579
  9729: Zt,
2588
2580
  9984: _r,
2589
2581
  9985: Rr,
2590
2582
  9986: vr,
2591
- 9987: kn
2592
- }, Ln = {
2583
+ 9987: wn
2584
+ }, bn = {
2593
2585
  33071: Rt,
2594
2586
  33648: Ar,
2595
2587
  10497: lt
@@ -2601,7 +2593,7 @@ const qe = {
2601
2593
  MAT2: 4,
2602
2594
  MAT3: 9,
2603
2595
  MAT4: 16
2604
- }, nn = {
2596
+ }, tn = {
2605
2597
  POSITION: "position",
2606
2598
  NORMAL: "normal",
2607
2599
  TANGENT: "tangent",
@@ -2621,7 +2613,7 @@ const qe = {
2621
2613
  CUBICSPLINE: void 0,
2622
2614
  // We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
2623
2615
  // keyframe track will be initialized with a default interpolation type, then modified.
2624
- LINEAR: Hn,
2616
+ LINEAR: Gn,
2625
2617
  STEP: wr
2626
2618
  }, Kt = {
2627
2619
  OPAQUE: "OPAQUE",
@@ -2629,14 +2621,14 @@ const qe = {
2629
2621
  BLEND: "BLEND"
2630
2622
  };
2631
2623
  function Ji(n) {
2632
- return n.DefaultMaterial === void 0 && (n.DefaultMaterial = new Dn({
2624
+ return n.DefaultMaterial === void 0 && (n.DefaultMaterial = new Mn({
2633
2625
  color: 16777215,
2634
2626
  emissive: 0,
2635
2627
  metalness: 1,
2636
2628
  roughness: 1,
2637
2629
  transparent: !1,
2638
2630
  depthTest: !0,
2639
- side: Vn
2631
+ side: Hn
2640
2632
  })), n.DefaultMaterial;
2641
2633
  }
2642
2634
  function ct(n, e, t) {
@@ -2707,7 +2699,7 @@ function Yt(n) {
2707
2699
  e += t[i] + ":" + n[t[i]] + ";";
2708
2700
  return e;
2709
2701
  }
2710
- function rn(n) {
2702
+ function nn(n) {
2711
2703
  switch (n) {
2712
2704
  case Int8Array:
2713
2705
  return 1 / 127;
@@ -2735,7 +2727,7 @@ class io {
2735
2727
  const c = u.match(/Version\/(\d+)/);
2736
2728
  r = i && c ? parseInt(c[1], 10) : -1, a = u.indexOf("Firefox") > -1, o = a ? u.match(/Firefox\/([0-9]+)\./)[1] : -1;
2737
2729
  }
2738
- typeof createImageBitmap > "u" || i && r < 17 || a && o < 98 ? this.textureLoader = new In(this.options.manager) : this.textureLoader = new Er(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new ht(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
2730
+ typeof createImageBitmap > "u" || i && r < 17 || a && o < 98 ? this.textureLoader = new Sn(this.options.manager) : this.textureLoader = new Er(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new ht(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
2739
2731
  }
2740
2732
  setExtensions(e) {
2741
2733
  this.extensions = e;
@@ -2985,7 +2977,7 @@ class io {
2985
2977
  if (p && p !== h) {
2986
2978
  const d = Math.floor(g / p), y = "InterleavedBuffer:" + r.bufferView + ":" + r.componentType + ":" + d + ":" + r.count;
2987
2979
  let v = t.cache.get(y);
2988
- v || (m = new s(u, d * p, r.count * p / f), v = new Nn(m, p / f), t.cache.add(y, v)), l = new wn(v, c, g % p / f, T);
2980
+ v || (m = new s(u, d * p, r.count * p / f), v = new In(m, p / f), t.cache.add(y, v)), l = new Nn(v, c, g % p / f, T);
2989
2981
  } else
2990
2982
  u === null ? m = new s(r.count * c) : m = new s(u, g, r.count * c), l = new yt(m, c, T);
2991
2983
  if (r.sparse !== void 0) {
@@ -3023,7 +3015,7 @@ class io {
3023
3015
  const s = this.loadImageSource(t, i).then(function(f) {
3024
3016
  f.flipY = !1, f.name = o.name || u.name || "", f.name === "" && typeof u.uri == "string" && u.uri.startsWith("data:image/") === !1 && (f.name = u.uri);
3025
3017
  const g = (a.samplers || {})[o.sampler] || {};
3026
- return f.magFilter = bn[g.magFilter] || Zt, f.minFilter = bn[g.minFilter] || kn, f.wrapS = Ln[g.wrapS] || lt, f.wrapT = Ln[g.wrapT] || lt, f.generateMipmaps = !f.isCompressedTexture && f.minFilter !== Cn && f.minFilter !== Zt, r.associations.set(f, { textures: e }), f;
3018
+ return f.magFilter = An[g.magFilter] || Zt, f.minFilter = An[g.minFilter] || wn, f.wrapS = bn[g.wrapS] || lt, f.wrapT = bn[g.wrapT] || lt, f.generateMipmaps = !f.isCompressedTexture && f.minFilter !== kn && f.minFilter !== Zt, r.associations.set(f, { textures: e }), f;
3027
3019
  }).catch(function() {
3028
3020
  return null;
3029
3021
  });
@@ -3047,7 +3039,7 @@ class io {
3047
3039
  return new Promise(function(g, p) {
3048
3040
  let T = g;
3049
3041
  t.isImageBitmapLoader === !0 && (T = function(m) {
3050
- const l = new dn(m);
3042
+ const l = new fn(m);
3051
3043
  l.needsUpdate = !0, g(l);
3052
3044
  }), t.load(mt.resolveURL(h, a.path), T, void 0, p);
3053
3045
  });
@@ -3099,11 +3091,11 @@ class io {
3099
3091
  if (e.isPoints) {
3100
3092
  const u = "PointsMaterial:" + i.uuid;
3101
3093
  let c = this.cache.get(u);
3102
- c || (c = new Pn(), Ht.prototype.copy.call(c, i), c.color.copy(i.color), c.map = i.map, c.sizeAttenuation = !1, this.cache.add(u, c)), i = c;
3094
+ c || (c = new Cn(), Ht.prototype.copy.call(c, i), c.color.copy(i.color), c.map = i.map, c.sizeAttenuation = !1, this.cache.add(u, c)), i = c;
3103
3095
  } else if (e.isLine) {
3104
3096
  const u = "LineBasicMaterial:" + i.uuid;
3105
3097
  let c = this.cache.get(u);
3106
- c || (c = new Mn(), Ht.prototype.copy.call(c, i), c.color.copy(i.color), c.map = i.map, this.cache.add(u, c)), i = c;
3098
+ c || (c = new Pn(), Ht.prototype.copy.call(c, i), c.color.copy(i.color), c.map = i.map, this.cache.add(u, c)), i = c;
3107
3099
  }
3108
3100
  if (r || a || o) {
3109
3101
  let u = "ClonedMaterial:" + i.uuid + ":";
@@ -3114,7 +3106,7 @@ class io {
3114
3106
  e.material = i;
3115
3107
  }
3116
3108
  getMaterialType() {
3117
- return Dn;
3109
+ return Mn;
3118
3110
  }
3119
3111
  /**
3120
3112
  * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials
@@ -3142,7 +3134,7 @@ class io {
3142
3134
  return g.extendMaterialParams && g.extendMaterialParams(e, u);
3143
3135
  })));
3144
3136
  }
3145
- a.doubleSided === !0 && (u.side = Fn);
3137
+ a.doubleSided === !0 && (u.side = Dn);
3146
3138
  const f = a.alphaMode || Kt.OPAQUE;
3147
3139
  if (f === Kt.BLEND ? (u.transparent = !0, u.depthWrite = !1) : (u.transparent = !1, f === Kt.MASK && (u.alphaTest = a.alphaCutoff !== void 0 ? a.alphaCutoff : 0.5)), a.normalTexture !== void 0 && o !== rt && (s.push(t.assignTexture(u, "normalMap", a.normalTexture)), u.normalScale = new Je(1, 1), a.normalTexture.scale !== void 0)) {
3148
3140
  const h = a.normalTexture.scale;
@@ -3181,7 +3173,7 @@ class io {
3181
3173
  const t = this, i = this.extensions, r = this.primitiveCache;
3182
3174
  function a(u) {
3183
3175
  return i[Re.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(u, t).then(function(c) {
3184
- return On(c, u, t);
3176
+ return Ln(c, u, t);
3185
3177
  });
3186
3178
  }
3187
3179
  const o = [];
@@ -3191,7 +3183,7 @@ class io {
3191
3183
  o.push(h.promise);
3192
3184
  else {
3193
3185
  let g;
3194
- s.extensions && s.extensions[Re.KHR_DRACO_MESH_COMPRESSION] ? g = a(s) : g = On(new at(), s, t), r[f] = { primitive: s, promise: g }, o.push(g);
3186
+ s.extensions && s.extensions[Re.KHR_DRACO_MESH_COMPRESSION] ? g = a(s) : g = Ln(new at(), s, t), r[f] = { primitive: s, promise: g }, o.push(g);
3195
3187
  }
3196
3188
  }
3197
3189
  return Promise.all(o);
@@ -3216,15 +3208,15 @@ class io {
3216
3208
  let d;
3217
3209
  const y = s[p];
3218
3210
  if (l.mode === qe.TRIANGLES || l.mode === qe.TRIANGLE_STRIP || l.mode === qe.TRIANGLE_FAN || l.mode === void 0)
3219
- d = a.isSkinnedMesh === !0 ? new Lr(m, y) : new wt(m, y), d.isSkinnedMesh === !0 && d.normalizeSkinWeights(), l.mode === qe.TRIANGLE_STRIP ? d.geometry = _n(d.geometry, Sn) : l.mode === qe.TRIANGLE_FAN && (d.geometry = _n(d.geometry, Qt));
3211
+ d = a.isSkinnedMesh === !0 ? new Lr(m, y) : new wt(m, y), d.isSkinnedMesh === !0 && d.normalizeSkinWeights(), l.mode === qe.TRIANGLE_STRIP ? d.geometry = Rn(d.geometry, xn) : l.mode === qe.TRIANGLE_FAN && (d.geometry = Rn(d.geometry, Qt));
3220
3212
  else if (l.mode === qe.LINES)
3221
- d = new Un(m, y);
3213
+ d = new Fn(m, y);
3222
3214
  else if (l.mode === qe.LINE_STRIP)
3223
3215
  d = new Or(m, y);
3224
3216
  else if (l.mode === qe.LINE_LOOP)
3225
3217
  d = new xr(m, y);
3226
3218
  else if (l.mode === qe.POINTS)
3227
- d = new jn(m, y);
3219
+ d = new Un(m, y);
3228
3220
  else
3229
3221
  throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + l.mode);
3230
3222
  Object.keys(d.geometry.morphAttributes).length > 0 && eo(d, a), d.name = t.createUniqueName(a.name || "mesh_" + e), $e(d, a), l.extensions && ct(r, d, l), t.assignFinalMaterial(d), h.push(d);
@@ -3281,7 +3273,7 @@ class io {
3281
3273
  } else
3282
3274
  console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', t.joints[s]);
3283
3275
  }
3284
- return new Bn(u, c);
3276
+ return new jn(u, c);
3285
3277
  });
3286
3278
  }
3287
3279
  /**
@@ -3314,7 +3306,7 @@ class io {
3314
3306
  for (let P = 0; P < j.length; P++)
3315
3307
  d.push(j[P]);
3316
3308
  }
3317
- const y = new zn(a, void 0, d);
3309
+ const y = new Bn(a, void 0, d);
3318
3310
  return $e(y, r), y;
3319
3311
  });
3320
3312
  }
@@ -3372,7 +3364,7 @@ class io {
3372
3364
  u.push(s);
3373
3365
  }), this.nodeCache[e] = Promise.all(u).then(function(s) {
3374
3366
  let f;
3375
- if (a.isBone === !0 ? f = new Gn() : s.length > 1 ? f = new _t() : s.length === 1 ? f = s[0] : f = new pt(), f !== s[0])
3367
+ if (a.isBone === !0 ? f = new zn() : s.length > 1 ? f = new _t() : s.length === 1 ? f = s[0] : f = new pt(), f !== s[0])
3376
3368
  for (let h = 0, g = s.length; h < g; h++)
3377
3369
  f.add(s[h]);
3378
3370
  if (a.name && (f.userData.name = a.name, f.name = o), $e(f, a), a.extensions && ct(i, f, a), a.matrix !== void 0) {
@@ -3408,7 +3400,7 @@ class io {
3408
3400
  const s = (f) => {
3409
3401
  const h = /* @__PURE__ */ new Map();
3410
3402
  for (const [g, p] of r.associations)
3411
- (g instanceof Ht || g instanceof dn) && h.set(g, p);
3403
+ (g instanceof Ht || g instanceof fn) && h.set(g, p);
3412
3404
  return f.traverse((g) => {
3413
3405
  const p = r.associations.get(g);
3414
3406
  p != null && h.set(g, p);
@@ -3425,7 +3417,7 @@ class io {
3425
3417
  let s;
3426
3418
  switch (st[a.path]) {
3427
3419
  case st.weights:
3428
- s = pn;
3420
+ s = dn;
3429
3421
  break;
3430
3422
  case st.rotation:
3431
3423
  s = Jt;
@@ -3435,10 +3427,10 @@ class io {
3435
3427
  s = kt;
3436
3428
  break;
3437
3429
  default:
3438
- i.itemSize === 1 ? s = pn : s = kt;
3430
+ i.itemSize === 1 ? s = dn : s = kt;
3439
3431
  break;
3440
3432
  }
3441
- const f = r.interpolation !== void 0 ? Zi[r.interpolation] : Hn, h = this._getArrayFromAccessor(i);
3433
+ const f = r.interpolation !== void 0 ? Zi[r.interpolation] : Gn, h = this._getArrayFromAccessor(i);
3442
3434
  for (let g = 0, p = c.length; g < p; g++) {
3443
3435
  const T = new s(
3444
3436
  c[g] + "." + st[a.path],
@@ -3453,7 +3445,7 @@ class io {
3453
3445
  _getArrayFromAccessor(e) {
3454
3446
  let t = e.array;
3455
3447
  if (e.normalized) {
3456
- const i = rn(t.constructor), r = new Float32Array(t.length);
3448
+ const i = nn(t.constructor), r = new Float32Array(t.length);
3457
3449
  for (let a = 0, o = t.length; a < o; a++)
3458
3450
  r[a] = t[a] * i;
3459
3451
  t = r;
@@ -3476,7 +3468,7 @@ function oo(n, e, t) {
3476
3468
  new Ie(c[0], c[1], c[2]),
3477
3469
  new Ie(s[0], s[1], s[2])
3478
3470
  ), u.normalized) {
3479
- const f = rn(gt[u.componentType]);
3471
+ const f = nn(gt[u.componentType]);
3480
3472
  r.min.multiplyScalar(f), r.max.multiplyScalar(f);
3481
3473
  }
3482
3474
  } else {
@@ -3494,7 +3486,7 @@ function oo(n, e, t) {
3494
3486
  const g = t.json.accessors[h.POSITION], p = g.min, T = g.max;
3495
3487
  if (p !== void 0 && T !== void 0) {
3496
3488
  if (c.setX(Math.max(Math.abs(p[0]), Math.abs(T[0]))), c.setY(Math.max(Math.abs(p[1]), Math.abs(T[1]))), c.setZ(Math.max(Math.abs(p[2]), Math.abs(T[2]))), g.normalized) {
3497
- const m = rn(gt[g.componentType]);
3489
+ const m = nn(gt[g.componentType]);
3498
3490
  c.multiplyScalar(m);
3499
3491
  }
3500
3492
  u.max(c);
@@ -3508,7 +3500,7 @@ function oo(n, e, t) {
3508
3500
  const o = new Pr();
3509
3501
  r.getCenter(o.center), o.radius = r.min.distanceTo(r.max) / 2, n.boundingSphere = o;
3510
3502
  }
3511
- function On(n, e, t) {
3503
+ function Ln(n, e, t) {
3512
3504
  const i = e.attributes, r = [];
3513
3505
  function a(o, u) {
3514
3506
  return t.getDependency("accessor", o).then(function(c) {
@@ -3516,7 +3508,7 @@ function On(n, e, t) {
3516
3508
  });
3517
3509
  }
3518
3510
  for (const o in i) {
3519
- const u = nn[o] || o.toLowerCase();
3511
+ const u = tn[o] || o.toLowerCase();
3520
3512
  u in n.attributes || r.push(a(i[o], u));
3521
3513
  }
3522
3514
  if (e.indices !== void 0 && !n.index) {
@@ -3645,8 +3637,8 @@ class so extends nt {
3645
3637
  if (o === u)
3646
3638
  s = new yt(a, o);
3647
3639
  else {
3648
- const f = new Nn(a, u);
3649
- s = new wn(f, o, 0);
3640
+ const f = new In(a, u);
3641
+ s = new Nn(f, o, 0);
3650
3642
  }
3651
3643
  r === "color" && (this._assignVertexColorSpace(s, c), s.normalized = !(a instanceof Float32Array)), t.setAttribute(r, s);
3652
3644
  }
@@ -3844,7 +3836,7 @@ class lo extends ze {
3844
3836
  return new uo(this);
3845
3837
  }
3846
3838
  async asyncInit(e) {
3847
- if (Wn(e))
3839
+ if (Vn(e))
3848
3840
  console.log(`File: ${e}`), this.gltf = await er.loadAsync(e), this.gltf.scene.traverse((t) => {
3849
3841
  t.userData.a3js = { objectA3: this };
3850
3842
  }), this.object.add(this.gltf.scene);
@@ -4224,7 +4216,7 @@ var Ee = (n, e) => () => (e || (e = { exports: {} }, n(e.exports, e)), e.exports
4224
4216
  return $(), $(), D;
4225
4217
  }
4226
4218
  n.toFastProperties = Ue;
4227
- }), ln = Ee((n, e) => {
4219
+ }), cn = Ee((n, e) => {
4228
4220
  (function(t, i) {
4229
4221
  typeof define == "function" && define.amd ? define([], i) : typeof e == "object" && e.exports ? e.exports = i() : t.regexpToAst = i();
4230
4222
  })(typeof self < "u" ? self : n, function() {
@@ -4764,9 +4756,9 @@ var Ee = (n, e) => () => (e || (e = { exports: {} }, n(e.exports, e)), e.exports
4764
4756
  }, m.prototype.visitQuantifier = function(l) {
4765
4757
  }, { RegExpParser: t, BaseRegExpVisitor: m, VERSION: "0.5.0" };
4766
4758
  });
4767
- }), un = Ee((n) => {
4759
+ }), ln = Ee((n) => {
4768
4760
  Object.defineProperty(n, "__esModule", { value: !0 }), n.clearRegExpParserCache = n.getRegExpAst = void 0;
4769
- var e = ln(), t = {}, i = new e.RegExpParser();
4761
+ var e = cn(), t = {}, i = new e.RegExpParser();
4770
4762
  function r(o) {
4771
4763
  var u = o.toString();
4772
4764
  if (t.hasOwnProperty(u)) return t[u];
@@ -4797,7 +4789,7 @@ var Ee = (n, e) => () => (e || (e = { exports: {} }, n(e.exports, e)), e.exports
4797
4789
  };
4798
4790
  })();
4799
4791
  Object.defineProperty(n, "__esModule", { value: !0 }), n.canMatchCharCode = n.firstCharOptimizedIndices = n.getOptimizedStartCodesIndices = n.failedOptimizationPrefixMsg = void 0;
4800
- var t = ln(), i = xe(), r = un(), a = rr(), o = "Complement Sets are not supported for first char optimization";
4792
+ var t = cn(), i = xe(), r = ln(), a = rr(), o = "Complement Sets are not supported for first char optimization";
4801
4793
  n.failedOptimizationPrefixMsg = `Unable to use "first char" lexer optimizations:
4802
4794
  `;
4803
4795
  function u(m, l) {
@@ -4957,7 +4949,7 @@ var Ee = (n, e) => () => (e || (e = { exports: {} }, n(e.exports, e)), e.exports
4957
4949
  };
4958
4950
  })();
4959
4951
  Object.defineProperty(n, "__esModule", { value: !0 }), n.charCodeToOptimizedIndex = n.minOptimizationVal = n.buildLineBreakIssueMessage = n.LineTerminatorOptimizedTester = n.isShortPattern = n.isCustomPattern = n.cloneEmptyGroups = n.performWarningRuntimeChecks = n.performRuntimeChecks = n.addStickyFlag = n.addStartOfInput = n.findUnreachablePatterns = n.findModesThatDoNotExist = n.findInvalidGroupType = n.findDuplicatePatterns = n.findUnsupportedFlags = n.findStartOfInputAnchor = n.findEmptyMatchRegExps = n.findEndOfInputAnchor = n.findInvalidPatterns = n.findMissingPatterns = n.validatePatterns = n.analyzeTokenTypes = n.enableSticky = n.disableSticky = n.SUPPORT_STICKY = n.MODES = n.DEFAULT_MODE = void 0;
4960
- var t = ln(), i = Ft(), r = xe(), a = ho(), o = un(), u = "PATTERN";
4952
+ var t = cn(), i = Ft(), r = xe(), a = ho(), o = ln(), u = "PATTERN";
4961
4953
  n.DEFAULT_MODE = "defaultMode", n.MODES = "modes", n.SUPPORT_STICKY = typeof new RegExp("(?:)").sticky == "boolean";
4962
4954
  function c() {
4963
4955
  n.SUPPORT_STICKY = !1;
@@ -5458,7 +5450,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
5458
5450
  } };
5459
5451
  }), Ft = Ee((n) => {
5460
5452
  Object.defineProperty(n, "__esModule", { value: !0 }), n.Lexer = n.LexerDefinitionErrorType = void 0;
5461
- var e = rr(), t = xe(), i = Ot(), r = ir(), a = un();
5453
+ var e = rr(), t = xe(), i = Ot(), r = ir(), a = ln();
5462
5454
  (function(c) {
5463
5455
  c[c.MISSING_PATTERN = 0] = "MISSING_PATTERN", c[c.INVALID_PATTERN = 1] = "INVALID_PATTERN", c[c.EOI_ANCHOR_FOUND = 2] = "EOI_ANCHOR_FOUND", c[c.UNSUPPORTED_FLAGS_FOUND = 3] = "UNSUPPORTED_FLAGS_FOUND", c[c.DUPLICATE_PATTERNS_FOUND = 4] = "DUPLICATE_PATTERNS_FOUND", c[c.INVALID_GROUP_TYPE_FOUND = 5] = "INVALID_GROUP_TYPE_FOUND", c[c.PUSH_MODE_DOES_NOT_EXIST = 6] = "PUSH_MODE_DOES_NOT_EXIST", c[c.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE = 7] = "MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE", c[c.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY = 8] = "MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY", c[c.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST = 9] = "MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST", c[c.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED = 10] = "LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED", c[c.SOI_ANCHOR_FOUND = 11] = "SOI_ANCHOR_FOUND", c[c.EMPTY_MATCH_PATTERN = 12] = "EMPTY_MATCH_PATTERN", c[c.NO_LINE_BREAKS_FLAGS = 13] = "NO_LINE_BREAKS_FLAGS", c[c.UNREACHABLE_PATTERN = 14] = "UNREACHABLE_PATTERN", c[c.IDENTIFY_TERMINATOR = 15] = "IDENTIFY_TERMINATOR", c[c.CUSTOM_LINE_BREAK = 16] = "CUSTOM_LINE_BREAK";
5464
5456
  })(n.LexerDefinitionErrorType || (n.LexerDefinitionErrorType = {}));
@@ -5872,7 +5864,7 @@ See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346
5872
5864
  }
5873
5865
  }
5874
5866
  n.serializeProduction = l;
5875
- }), hn = Ee((n) => {
5867
+ }), un = Ee((n) => {
5876
5868
  Object.defineProperty(n, "__esModule", { value: !0 }), n.RestWalker = void 0;
5877
5869
  var e = xe(), t = Ye(), i = (function() {
5878
5870
  function a() {
@@ -6103,7 +6095,7 @@ See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346
6103
6095
  };
6104
6096
  })();
6105
6097
  Object.defineProperty(n, "__esModule", { value: !0 }), n.buildInProdFollowPrefix = n.buildBetweenProdsFollowPrefix = n.computeAllProdsFollows = n.ResyncFollowsWalker = void 0;
6106
- var t = hn(), i = or(), r = xe(), a = sr(), o = Ye(), u = (function(h) {
6098
+ var t = un(), i = or(), r = xe(), a = sr(), o = Ye(), u = (function(h) {
6107
6099
  e(g, h);
6108
6100
  function g(p) {
6109
6101
  var T = h.call(this) || this;
@@ -6317,7 +6309,7 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;
6317
6309
  };
6318
6310
  })();
6319
6311
  Object.defineProperty(n, "__esModule", { value: !0 }), n.nextPossibleTokensAfter = n.possiblePathsFrom = n.NextTerminalAfterAtLeastOneSepWalker = n.NextTerminalAfterAtLeastOneWalker = n.NextTerminalAfterManySepWalker = n.NextTerminalAfterManyWalker = n.AbstractNextTerminalAfterProductionWalker = n.NextAfterTokenWalker = n.AbstractNextPossibleTokensWalker = void 0;
6320
- var t = hn(), i = xe(), r = or(), a = Ye(), o = (function(l) {
6312
+ var t = un(), i = xe(), r = or(), a = Ye(), o = (function(l) {
6321
6313
  e(d, l);
6322
6314
  function d(y, v) {
6323
6315
  var E = l.call(this) || this;
@@ -6540,7 +6532,7 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;
6540
6532
  };
6541
6533
  })();
6542
6534
  Object.defineProperty(n, "__esModule", { value: !0 }), n.areTokenCategoriesNotUsed = n.isStrictPrefixOfPath = n.containsPath = n.getLookaheadPathsForOptionalProd = n.getLookaheadPathsForOr = n.lookAheadSequenceFromAlternatives = n.buildSingleAlternativeLookaheadFunction = n.buildAlternativesLookAheadFunc = n.buildLookaheadFuncForOptionalProd = n.buildLookaheadFuncForOr = n.getProdType = n.PROD_TYPE = void 0;
6543
- var t = xe(), i = Bt(), r = hn(), a = Ot(), o = Ye(), u = xt(), c;
6535
+ var t = xe(), i = Bt(), r = un(), a = Ot(), o = Ye(), u = xt(), c;
6544
6536
  (function(x) {
6545
6537
  x[x.OPTION = 0] = "OPTION", x[x.REPETITION = 1] = "REPETITION", x[x.REPETITION_MANDATORY = 2] = "REPETITION_MANDATORY", x[x.REPETITION_MANDATORY_WITH_SEPARATOR = 3] = "REPETITION_MANDATORY_WITH_SEPARATOR", x[x.REPETITION_WITH_SEPARATOR = 4] = "REPETITION_WITH_SEPARATOR", x[x.ALTERNATION = 5] = "ALTERNATION";
6546
6538
  })(c = n.PROD_TYPE || (n.PROD_TYPE = {}));
@@ -7249,7 +7241,7 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;
7249
7241
  this.RULE_STACK.length === 1 && w && L === void 0 && (L = e.EOF, S = 1), this.shouldInRepetitionRecoveryBeTried(L, S, m) && this.tryInRepetitionRecovery(s, f, h, L);
7250
7242
  }
7251
7243
  n.attemptInRepetitionRecovery = c;
7252
- }), fn = Ee((n) => {
7244
+ }), hn = Ee((n) => {
7253
7245
  Object.defineProperty(n, "__esModule", { value: !0 }), n.getKeyForAutomaticLookahead = n.AT_LEAST_ONE_SEP_IDX = n.MANY_SEP_IDX = n.AT_LEAST_ONE_IDX = n.MANY_IDX = n.OPTION_IDX = n.OR_IDX = n.BITS_FOR_ALT_IDX = n.BITS_FOR_RULE_IDX = n.BITS_FOR_OCCURRENCE_IDX = n.BITS_FOR_METHOD_TYPE = void 0, n.BITS_FOR_METHOD_TYPE = 4, n.BITS_FOR_OCCURRENCE_IDX = 8, n.BITS_FOR_RULE_IDX = 12, n.BITS_FOR_ALT_IDX = 8, n.OR_IDX = 1 << n.BITS_FOR_OCCURRENCE_IDX, n.OPTION_IDX = 2 << n.BITS_FOR_OCCURRENCE_IDX, n.MANY_IDX = 3 << n.BITS_FOR_OCCURRENCE_IDX, n.AT_LEAST_ONE_IDX = 4 << n.BITS_FOR_OCCURRENCE_IDX, n.MANY_SEP_IDX = 5 << n.BITS_FOR_OCCURRENCE_IDX, n.AT_LEAST_ONE_SEP_IDX = 6 << n.BITS_FOR_OCCURRENCE_IDX;
7254
7246
  function e(t, i, r) {
7255
7247
  return r | i | t;
@@ -7257,7 +7249,7 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;
7257
7249
  n.getKeyForAutomaticLookahead = e, 32 - n.BITS_FOR_ALT_IDX;
7258
7250
  }), yo = Ee((n) => {
7259
7251
  Object.defineProperty(n, "__esModule", { value: !0 }), n.LooksAhead = void 0;
7260
- var e = zt(), t = xe(), i = Qe(), r = fn(), a = Ut(), o = (function() {
7252
+ var e = zt(), t = xe(), i = Qe(), r = hn(), a = Ut(), o = (function() {
7261
7253
  function u() {
7262
7254
  }
7263
7255
  return u.prototype.initLooksAhead = function(c) {
@@ -7723,7 +7715,7 @@ There is no Grammar Rule corresponding to this method's name.
7723
7715
  n.RecognizerApi = u;
7724
7716
  }), _o = Ee((n) => {
7725
7717
  Object.defineProperty(n, "__esModule", { value: !0 }), n.RecognizerEngine = void 0;
7726
- var e = xe(), t = fn(), i = St(), r = zt(), a = Bt(), o = Qe(), u = cr(), c = ft(), s = Ot(), f = lr(), h = (function() {
7718
+ var e = xe(), t = hn(), i = St(), r = zt(), a = Bt(), o = Qe(), u = cr(), c = ft(), s = Ot(), f = lr(), h = (function() {
7727
7719
  function g() {
7728
7720
  }
7729
7721
  return g.prototype.initRecognizerEngine = function(p, T) {
@@ -7981,7 +7973,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
7981
7973
  n.ContentAssist = i;
7982
7974
  }), Lo = Ee((n) => {
7983
7975
  Object.defineProperty(n, "__esModule", { value: !0 }), n.GastRecorder = void 0;
7984
- var e = xe(), t = Ye(), i = Ft(), r = Ot(), a = ft(), o = Qe(), u = fn(), c = { description: "This Object indicates the Parser is during Recording Phase" };
7976
+ var e = xe(), t = Ye(), i = Ft(), r = Ot(), a = ft(), o = Qe(), u = hn(), c = { description: "This Object indicates the Parser is during Recording Phase" };
7985
7977
  Object.freeze(c);
7986
7978
  var s = !0, f = Math.pow(2, u.BITS_FOR_OCCURRENCE_IDX) - 1, h = a.createToken({ name: "RECORDING_PHASE_TOKEN", pattern: i.Lexer.NA });
7987
7979
  r.augmentTokenTypes([h]);
@@ -8910,13 +8902,13 @@ class No extends nt {
8910
8902
  }
8911
8903
  const U = 1e4;
8912
8904
  if (N) {
8913
- const G = new Vt(U, 32, 16), Q = new rt({ fog: !1, side: mn, depthWrite: !1, depthTest: !1 });
8905
+ const G = new Vt(U, 32, 16), Q = new rt({ fog: !1, side: pn, depthWrite: !1, depthTest: !1 });
8914
8906
  N.length > 3 ? (z(G, U, b, D(N), !0), Q.vertexColors = !0) : Q.color.setRGB(N[0], N[1], N[2], Ve);
8915
8907
  const ne = new wt(G, Q);
8916
8908
  R.add(ne);
8917
8909
  }
8918
8910
  if (I && I.length > 0) {
8919
- const G = new Vt(U, 32, 16, 0, 2 * Math.PI, 0.5 * Math.PI, 1.5 * Math.PI), Q = new rt({ fog: !1, side: mn, vertexColors: !0, depthWrite: !1, depthTest: !1 });
8911
+ const G = new Vt(U, 32, 16, 0, 2 * Math.PI, 0.5 * Math.PI, 1.5 * Math.PI), Q = new rt({ fog: !1, side: pn, vertexColors: !0, depthWrite: !1, depthTest: !1 });
8920
8912
  z(G, U, _, D(I), !1);
8921
8913
  const ne = new wt(G, Q);
8922
8914
  R.add(ne);
@@ -8947,23 +8939,23 @@ class No extends nt {
8947
8939
  if (I && I.attributes.position) {
8948
8940
  const N = I._type;
8949
8941
  if (N === "points") {
8950
- const M = new Pn({
8942
+ const M = new Cn({
8951
8943
  name: nt.DEFAULT_MATERIAL_NAME,
8952
8944
  color: 16777215,
8953
8945
  opacity: _.opacity,
8954
8946
  transparent: _.transparent
8955
8947
  });
8956
- I.attributes.color !== void 0 ? M.vertexColors = !0 : _.isMeshPhongMaterial && M.color.copy(_.emissive), b = new jn(I, M);
8948
+ I.attributes.color !== void 0 ? M.vertexColors = !0 : _.isMeshPhongMaterial && M.color.copy(_.emissive), b = new Un(I, M);
8957
8949
  } else if (N === "line") {
8958
- const M = new Mn({
8950
+ const M = new Pn({
8959
8951
  name: nt.DEFAULT_MATERIAL_NAME,
8960
8952
  color: 16777215,
8961
8953
  opacity: _.opacity,
8962
8954
  transparent: _.transparent
8963
8955
  });
8964
- I.attributes.color !== void 0 ? M.vertexColors = !0 : _.isMeshPhongMaterial && M.color.copy(_.emissive), b = new Un(I, M);
8956
+ I.attributes.color !== void 0 ? M.vertexColors = !0 : _.isMeshPhongMaterial && M.color.copy(_.emissive), b = new Fn(I, M);
8965
8957
  } else
8966
- I._solid !== void 0 && (_.side = I._solid ? Vn : Fn), I.attributes.color !== void 0 && (_.vertexColors = !0), b = new wt(I, _);
8958
+ I._solid !== void 0 && (_.side = I._solid ? Hn : Dn), I.attributes.color !== void 0 && (_.vertexColors = !0), b = new wt(I, _);
8967
8959
  } else
8968
8960
  b = new pt(), b.visible = !1;
8969
8961
  return b;
@@ -9754,7 +9746,7 @@ class No extends nt {
9754
9746
  }
9755
9747
  A.setAttribute("color", Q);
9756
9748
  }
9757
- const $ = new In(this.manager);
9749
+ const $ = new Sn(this.manager);
9758
9750
  if ($.setPath(this.resourcePath || t).setCrossOrigin(this.crossOrigin), e.indexOf("#VRML V2.0") === -1)
9759
9751
  throw Error("THREE.VRMLLexer: Version of VRML asset not supported.");
9760
9752
  const fe = r(e);
@@ -10002,7 +9994,7 @@ class Mo extends nt {
10002
9994
  }
10003
9995
  }
10004
9996
  function a(p, T) {
10005
- const m = new Gn();
9997
+ const m = new zn();
10006
9998
  if (T.push(m), m.position.add(p.offset), m.name = p.name, p.type !== "ENDSITE")
10007
9999
  for (let l = 0; l < p.children.length; l++)
10008
10000
  m.add(a(p.children[l], T));
@@ -10021,7 +10013,7 @@ class Mo extends nt {
10021
10013
  }
10022
10014
  c.animateBonePositions && T.push(new kt(l.name + ".position", d, y)), c.animateBoneRotations && T.push(new Jt(l.name + ".quaternion", d, v)), c.animateBoneScales && T.push(new kt(l.name + ".scale", d, E));
10023
10015
  }
10024
- return new zn("animation", -1, T);
10016
+ return new Bn("animation", -1, T);
10025
10017
  }
10026
10018
  function u(p) {
10027
10019
  let T;
@@ -10033,7 +10025,7 @@ class Mo extends nt {
10033
10025
  a(f[0], h);
10034
10026
  const g = o(f);
10035
10027
  return {
10036
- skeleton: new Bn(h),
10028
+ skeleton: new jn(h),
10037
10029
  clip: g
10038
10030
  };
10039
10031
  }
@@ -10045,7 +10037,7 @@ async function Do(n, e) {
10045
10037
  let qt;
10046
10038
  async function Fo(n, e) {
10047
10039
  qt || (qt = new Mo());
10048
- const t = an(n, e);
10040
+ const t = sn(n, e);
10049
10041
  return await qt.parse(t);
10050
10042
  }
10051
10043
  function Uo(n) {
@@ -10059,7 +10051,7 @@ function Uo(n) {
10059
10051
  skeleton: r
10060
10052
  };
10061
10053
  }
10062
- class on {
10054
+ class rn {
10063
10055
  isDummy = !0;
10064
10056
  skeleton = new oe.Skeleton([new oe.Bone()]);
10065
10057
  clip = new oe.AnimationClip("dummy");
@@ -10085,10 +10077,10 @@ class Nt extends ze {
10085
10077
  return new oe.Object3D();
10086
10078
  }
10087
10079
  initMotion() {
10088
- return new xn(this);
10080
+ return new On(this);
10089
10081
  }
10090
10082
  async asyncInit(e) {
10091
- const t = await Yn(e), i = new DOMParser(), r = an(t, "CATALOG.XML"), a = i.parseFromString(r, "application/xml");
10083
+ const t = await Yn(e), i = new DOMParser(), r = sn(t, "CATALOG.XML"), a = i.parseFromString(r, "application/xml");
10092
10084
  if (a.querySelector("parsererror"))
10093
10085
  return console.error("Acerola3D.asyncInit(): CATALOG.XML parse error."), this;
10094
10086
  const o = "http://acerola3d.sourceforge.jp/a3/catalog", u = a.getElementsByTagNameNS(o, "c");
@@ -10105,7 +10097,7 @@ class Nt extends ze {
10105
10097
  L.setInterpolation(oe.InterpolateDiscrete);
10106
10098
  });
10107
10099
  } else
10108
- p = new on();
10100
+ p = new rn();
10109
10101
  const T = f.getAttribute("scale"), m = T ? Number(T) : 1, l = f.getAttribute("offset"), d = new _e();
10110
10102
  if (l) {
10111
10103
  const E = l.split(" ");
@@ -10129,13 +10121,13 @@ class Nt extends ze {
10129
10121
  });
10130
10122
  }
10131
10123
  }
10132
- return this.generateViewActionsFromActionSeeds(s), this.motion instanceof xn && this.motion.myInitialize(s), this;
10124
+ return this.generateViewActionsFromActionSeeds(s), this.motion instanceof On && this.motion.myInitialize(s), this;
10133
10125
  }
10134
10126
  generateViewActionsFromActionSeeds(e) {
10135
10127
  this.viewActions = {};
10136
10128
  for (const t of e) {
10137
10129
  const i = new oe.Object3D();
10138
- if (i.position.set(t.offset.x, t.offset.y, t.offset.z), i.scale.set(t.scale, t.scale, t.scale), t.bvh instanceof on) {
10130
+ if (i.position.set(t.offset.x, t.offset.y, t.offset.z), i.scale.set(t.scale, t.scale, t.scale), t.bvh instanceof rn) {
10139
10131
  for (const r of Object.values(t.parts))
10140
10132
  i.add(r);
10141
10133
  this.viewActions[t.name] = {
@@ -10169,7 +10161,7 @@ function ur(n, e) {
10169
10161
  ur(t, e);
10170
10162
  });
10171
10163
  }
10172
- class xn extends Et {
10164
+ class On extends Et {
10173
10165
  // objectA3?: ObjectA3; スーパークラスから
10174
10166
  // object3D?: THREE.Object3D; スーパークラスから
10175
10167
  actionSeeds;
@@ -10192,7 +10184,7 @@ class xn extends Et {
10192
10184
  t.filter((o) => o.name === a.name).length === 0 && t.push(a);
10193
10185
  this.objectA3.generateViewActionsFromActionSeeds(t), this.actionSeeds = t, this.motionActions = {};
10194
10186
  for (const a of this.actionSeeds) {
10195
- if (a.bvh instanceof on) {
10187
+ if (a.bvh instanceof rn) {
10196
10188
  this.motionActions[a.name] = {
10197
10189
  bvh: a.bvh
10198
10190
  };
@@ -10280,7 +10272,7 @@ class Qo extends ze {
10280
10272
  }
10281
10273
  export {
10282
10274
  Nt as Acerola3D,
10283
- xn as Acerola3DMotion,
10275
+ On as Acerola3DMotion,
10284
10276
  Xo as Box,
10285
10277
  ci as Camera,
10286
10278
  mi as Canvas,
@@ -10304,11 +10296,11 @@ export {
10304
10296
  Xn as ViewBase,
10305
10297
  gi as Window,
10306
10298
  Go as asyncSleep,
10307
- cn as deepMerge,
10299
+ an as deepMerge,
10308
10300
  Ct as getQuatOfLookAt,
10309
10301
  Wo as initFont,
10310
10302
  zo as initPhysics,
10311
10303
  Ho as initSound,
10312
- $r as vec3EulerToQuat
10304
+ Jr as vec3EulerToQuat
10313
10305
  };
10314
10306
  //# sourceMappingURL=a3js.es.js.map