@realsee/five 6.4.0-alpha.0 → 6.4.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/docs/assets/navigation.js +1 -1
  2. package/docs/assets/search.js +1 -1
  3. package/docs/classes/five.Camera.html +5 -4
  4. package/docs/classes/five.Five.html +45 -35
  5. package/docs/classes/five.InternalWebGLRenderer.html +1 -1
  6. package/docs/classes/five.Model.html +24 -37
  7. package/docs/classes/five.ModelViewLayer.html +6 -6
  8. package/docs/classes/five.PBMMeshMaterial.html +37 -37
  9. package/docs/classes/five.PBMPointCloudMaterial.html +34 -34
  10. package/docs/classes/five.Tile.html +2 -1
  11. package/docs/classes/five.Tile3DModel.html +5 -4
  12. package/docs/classes/five.TileRequestScheduler.html +2 -2
  13. package/docs/classes/five.Tileset.html +12 -2
  14. package/docs/classes/five.Trajectory.html +2 -2
  15. package/docs/classes/five.Work.html +14 -14
  16. package/docs/classes/plugins-1.TrajectoryController.html +4 -4
  17. package/docs/functions/five.loadB3dm.html +1 -1
  18. package/docs/functions/five.loadDome.html +1 -1
  19. package/docs/functions/five.loadDomez.html +1 -1
  20. package/docs/functions/five.loadPbm.html +1 -1
  21. package/docs/functions/five.loadPly.html +1 -1
  22. package/docs/functions/five.loadX3p.html +1 -0
  23. package/docs/functions/five.parseWork.html +1 -1
  24. package/docs/functions/react.useFiveAction.html +1 -1
  25. package/docs/functions/vue.useFiveAction.html +1 -1
  26. package/docs/interfaces/five.FiveInitArgs.html +2 -2
  27. package/docs/interfaces/five.FiveLoadOptions.html +13 -26
  28. package/docs/interfaces/five.PBMParameters.html +13 -13
  29. package/docs/interfaces/five.Tile3DModelLoaderOptions.html +2 -2
  30. package/docs/interfaces/five.Tile3dLayerOptions.html +27 -0
  31. package/docs/interfaces/five.TileHeader.html +2 -2
  32. package/docs/interfaces/five.TilesetHeader.html +16 -3
  33. package/docs/interfaces/five.TrajectoryHeader.html +2 -2
  34. package/docs/interfaces/five.WorkCubeImage.html +8 -8
  35. package/docs/interfaces/five.WorkImage.html +10 -10
  36. package/docs/interfaces/five.WorkInitial.html +8 -8
  37. package/docs/interfaces/five.WorkModel.html +6 -6
  38. package/docs/interfaces/five.WorkModelLayer.html +5 -0
  39. package/docs/interfaces/five.WorkObserver.html +20 -20
  40. package/docs/interfaces/five.WorkResolvedObserver.html +20 -20
  41. package/docs/interfaces/five.WorkTile.html +2 -2
  42. package/docs/interfaces/five.WorkVideo.html +4 -4
  43. package/docs/interfaces/react.FiveActionReactCallbacks.html +19 -8
  44. package/docs/interfaces/react.FiveInjectionTypes.html +32 -23
  45. package/docs/interfaces/vue.FiveActionVueCallbacks.html +20 -9
  46. package/docs/modules/five.html +4 -0
  47. package/docs/types/five.ModelMaterialValues.html +1 -1
  48. package/docs/types/five.Models.html +5 -5
  49. package/docs/types/five.ParseWorkOptions.html +1 -1
  50. package/docs/types/five.ParsedResultType.html +1 -1
  51. package/docs/types/five.Tile3dOptions.html +1 -0
  52. package/docs/types/five.TileRequestOrder.html +1 -1
  53. package/docs/types/five.TileRequestSchedulerOptions.html +1 -1
  54. package/docs/types/five.TrajectoryContentData.html +1 -1
  55. package/docs/types/five.Works.html +1 -1
  56. package/five/index.d.ts +122 -79
  57. package/five/index.js +88 -88
  58. package/five/index.mjs +6386 -6037
  59. package/gltf-loader/index.js +5 -5
  60. package/gltf-loader/index.mjs +534 -515
  61. package/line/index.js +3 -3
  62. package/line/index.mjs +3 -3
  63. package/package.json +1 -1
  64. package/plugins/index.js +10 -10
  65. package/plugins/index.mjs +237 -231
  66. package/react/index.d.ts +26 -1
  67. package/react/index.js +3 -3
  68. package/react/index.mjs +33 -39
  69. package/shader-lib/index.js +2 -2
  70. package/shader-lib/index.mjs +2 -2
  71. package/sticker/index.js +3 -3
  72. package/sticker/index.mjs +3 -3
  73. package/umd/five-gltf-loader.js +5 -5
  74. package/umd/five-line.js +3 -3
  75. package/umd/five-plugins.js +10 -10
  76. package/umd/five-react.js +3 -3
  77. package/umd/five-shader-lib.js +2 -2
  78. package/umd/five-sticker.js +3 -3
  79. package/umd/five-vfx.js +2 -2
  80. package/umd/five-vue.js +3 -3
  81. package/umd/five.js +45 -45
  82. package/vfx/index.js +2 -2
  83. package/vfx/index.mjs +2 -2
  84. package/vue/index.d.ts +26 -1
  85. package/vue/index.js +3 -3
  86. package/vue/index.mjs +27 -29
package/plugins/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 12/10/2024
5
- * Version: 6.4.0-alpha.0
4
+ * Generated: 1/8/2025
5
+ * Version: 6.4.0-alpha.10
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -318,7 +318,7 @@ function Xe(f, o, e, a) {
318
318
  u(T);
319
319
  }
320
320
  }
321
- function g(v) {
321
+ function b(v) {
322
322
  try {
323
323
  d(a.throw(v));
324
324
  } catch (T) {
@@ -326,7 +326,7 @@ function Xe(f, o, e, a) {
326
326
  }
327
327
  }
328
328
  function d(v) {
329
- v.done ? s(v.value) : t(v.value).then(l, g);
329
+ v.done ? s(v.value) : t(v.value).then(l, b);
330
330
  }
331
331
  d((a = a.apply(f, o || [])).next());
332
332
  });
@@ -341,10 +341,10 @@ function Ge(f, o) {
341
341
  }), u;
342
342
  function l(d) {
343
343
  return function(v) {
344
- return g([d, v]);
344
+ return b([d, v]);
345
345
  };
346
346
  }
347
- function g(d) {
347
+ function b(d) {
348
348
  if (a) throw new TypeError("Generator is already executing.");
349
349
  for (; u && (u = 0, d[0] && (e = 0)), e; ) try {
350
350
  if (a = 1, t && (s = d[0] & 2 ? t.return : d[0] ? t.throw || ((s = t.return) && s.call(t), 0) : t.next) && !(s = s.call(t, d[1])).done) return s;
@@ -478,12 +478,12 @@ var Yt = (
478
478
  }, f.prototype.set = function(o, e, a, t) {
479
479
  var s;
480
480
  a === void 0 && (a = 0), isNaN(e) && (e = 0), isNaN(a) && (a = 0), t = t != null ? t : bt();
481
- var u = this.getProgress(t), l = this.getValue(u), g = {};
481
+ var u = this.getProgress(t), l = this.getValue(u), b = {};
482
482
  for (var d in this.config)
483
- g[d] = (s = o[d]) !== null && s !== void 0 ? s : l[d];
483
+ b[d] = (s = o[d]) !== null && s !== void 0 ? s : l[d];
484
484
  var v = [
485
485
  { progress: 0, value: l },
486
- { progress: 1, value: g }
486
+ { progress: 1, value: b }
487
487
  ];
488
488
  return this.setKeyframes(v, e, a, t);
489
489
  }, f.prototype.setKeyframes = function(o, e, a, t) {
@@ -588,18 +588,18 @@ void main() {
588
588
  t.state.mode === "box" && t.select();
589
589
  }, t.loadPanoMask = function(l) {
590
590
  return Xe(t, void 0, void 0, function() {
591
- var g, d, v, T, A, O, M, C, I, y;
592
- return Ge(this, function(b) {
593
- switch (b.label) {
591
+ var b, d, v, T, A, P, O, C, L, y;
592
+ return Ge(this, function(g) {
593
+ switch (g.label) {
594
594
  case 0:
595
- return g = this, d = g.five, v = g.canvas, T = g.itemMaskMesh, A = g.data, O = v.getContext("2d"), M = d.observers[l], C = (y = A == null ? void 0 : A.object_mask_list.find(function(P) {
596
- return P.derived_id === String(M.derivedId);
595
+ return b = this, d = b.five, v = b.canvas, T = b.itemMaskMesh, A = b.data, P = v.getContext("2d"), O = d.observers[l], C = (y = A == null ? void 0 : A.object_mask_list.find(function(x) {
596
+ return x.derived_id === String(O.derivedId);
597
597
  })) === null || y === void 0 ? void 0 : y.object_mask_url, C ? [4, bn(C)] : [
598
598
  2
599
599
  /*return*/
600
600
  ];
601
601
  case 1:
602
- return I = b.sent(), v.width = I.width, v.height = I.height, O == null || O.drawImage(I, 0, 0, I.width, I.height), T.material.uniforms.map.value.image = I, T.material.uniforms.map.value.minFilter = w.LinearFilter, T.material.uniforms.map.value.needsUpdate = !0, T.position.copy(M.position), T.quaternion.copy(M.quaternion), d.scene.add(T), d.needsRender = !0, [
602
+ return L = g.sent(), v.width = L.width, v.height = L.height, P == null || P.drawImage(L, 0, 0, L.width, L.height), T.material.uniforms.map.value.image = L, T.material.uniforms.map.value.minFilter = w.LinearFilter, T.material.uniforms.map.value.needsUpdate = !0, T.position.copy(O.position), T.quaternion.copy(O.quaternion), d.scene.add(T), d.needsRender = !0, [
603
603
  2
604
604
  /*return*/
605
605
  ];
@@ -607,21 +607,21 @@ void main() {
607
607
  });
608
608
  });
609
609
  }, t.onFiveMouseMove = function(l) {
610
- var g;
610
+ var b;
611
611
  if (t.state.mode === "mask" && t.five.state.mode === "Panorama") {
612
- var d = t, v = d.five, T = d.itemMaskMesh, A = v.observers[v.state.panoIndex], O = (g = l.pointers[0]) === null || g === void 0 ? void 0 : g.raycaster;
613
- if (O) {
614
- var M = O.intersectObjects(t.group.children.filter(function(C) {
612
+ var d = t, v = d.five, T = d.itemMaskMesh, A = v.observers[v.state.panoIndex], P = (b = l.pointers[0]) === null || b === void 0 ? void 0 : b.raycaster;
613
+ if (P) {
614
+ var O = P.intersectObjects(t.group.children.filter(function(C) {
615
615
  return C.userData.visible_viewpoint.includes(String(A.derivedId));
616
616
  }), !0)[0];
617
- M ? T.material.uniforms.color.value = M.object.userData.color : T.material.uniforms.color.value = new w.Vector4(0, 0, 0, 1);
617
+ O ? T.material.uniforms.color.value = O.object.userData.color : T.material.uniforms.color.value = new w.Vector4(0, 0, 0, 1);
618
618
  }
619
619
  }
620
620
  }, t.onFiveTapGesture = function(l) {
621
- var g = t.five, d = g.observers[g.state.panoIndex];
621
+ var b = t.five, d = b.observers[b.state.panoIndex];
622
622
  if (l) {
623
- var v = l.intersectObjects(t.group.children.filter(function(O) {
624
- return O.userData.visible_viewpoint.includes(String(d.derivedId));
623
+ var v = l.intersectObjects(t.group.children.filter(function(P) {
624
+ return P.userData.visible_viewpoint.includes(String(d.derivedId));
625
625
  }), !0)[0];
626
626
  if (v) {
627
627
  t.select(v.object.name), t.stopAnimation && t.stopAnimation(), t.tapPosition = v.point, t.changeTapScreenPosition();
@@ -634,16 +634,16 @@ void main() {
634
634
  scale: 0,
635
635
  shadow: 2
636
636
  });
637
- return T.setKeyframes(An, 1e3), A.setKeyframes(Mn, 1e3), t.stopAnimation = Ht.shared.add(function(O, M) {
638
- var C, I = T.update(O), y = A.update(O);
639
- t.wrapper.firstChild.style.opacity = "".concat(T.value.opacity), t.wrapper.firstChild.style.transform = "scale(".concat(T.value.scale, ")"), t.wrapper.firstChild.style.boxShadow = "0 0 0 ".concat(T.value.shadow, "px #fff"), t.wrapper.lastChild.style.opacity = "".concat(A.value.opacity), t.wrapper.lastChild.style.transform = "scale(".concat(A.value.scale, ")"), t.wrapper.lastChild.style.boxShadow = "0 0 0 ".concat(A.value.shadow, "px #fff"), I && y && ((C = t.stopAnimation) === null || C === void 0 || C.call(t), t.stopAnimation = void 0, g.getElement().parentElement.removeChild(t.wrapper));
640
- }, !1, 0, 10), g.getElement().parentElement.appendChild(t.wrapper), !1;
637
+ return T.setKeyframes(An, 1e3), A.setKeyframes(Mn, 1e3), t.stopAnimation = Ht.shared.add(function(P, O) {
638
+ var C, L = T.update(P), y = A.update(P);
639
+ t.wrapper.firstChild.style.opacity = "".concat(T.value.opacity), t.wrapper.firstChild.style.transform = "scale(".concat(T.value.scale, ")"), t.wrapper.firstChild.style.boxShadow = "0 0 0 ".concat(T.value.shadow, "px #fff"), t.wrapper.lastChild.style.opacity = "".concat(A.value.opacity), t.wrapper.lastChild.style.transform = "scale(".concat(A.value.scale, ")"), t.wrapper.lastChild.style.boxShadow = "0 0 0 ".concat(A.value.shadow, "px #fff"), L && y && ((C = t.stopAnimation) === null || C === void 0 || C.call(t), t.stopAnimation = void 0, b.getElement().parentElement.removeChild(t.wrapper));
640
+ }, !1, 0, 10), b.getElement().parentElement.appendChild(t.wrapper), !1;
641
641
  }
642
642
  }
643
643
  }, t.changeTapScreenPosition = function() {
644
644
  if (t.tapPosition) {
645
- var l = t.tapPosition.clone().project(t.five.camera), g = (l.x + 1) / 2, d = -(l.y - 1) / 2;
646
- t.wrapper.style.opacity = l.z > 0 && l.z < 1 ? "1" : "0", t.wrapper.style.transform = "translate(".concat(g * 100, "%, ").concat(d * 100, "%)");
645
+ var l = t.tapPosition.clone().project(t.five.camera), b = (l.x + 1) / 2, d = -(l.y - 1) / 2;
646
+ t.wrapper.style.opacity = l.z > 0 && l.z < 1 ? "1" : "0", t.wrapper.style.transform = "translate(".concat(b * 100, "%, ").concat(d * 100, "%)");
647
647
  }
648
648
  }, t.onFiveCameraUpdate = function(l) {
649
649
  t.changeTapScreenPosition();
@@ -693,11 +693,11 @@ void main() {
693
693
  var a, t, s = this;
694
694
  return Ge(this, function(u) {
695
695
  return this.data = e, a = e.data_list.map(function(l) {
696
- var g, d = l.position.end.map(function(k) {
697
- return Number(k);
698
- }), v = l.position.start.map(function(k) {
699
- return Number(k);
700
- }), T = Math.abs(d[0] - v[0]), A = Math.abs(d[1] - v[1]), O = Math.abs(d[2] - v[2]), M = d[0] / 2 + v[0] / 2, C = d[1] / 2 + v[1] / 2, I = d[2] / 2 + v[2] / 2, y = new w.Vector3(M, C, I), b = new w.BoxBufferGeometry(T, A, O), P = new w.ShaderMaterial({
696
+ var b, d = l.position.end.map(function(S) {
697
+ return Number(S);
698
+ }), v = l.position.start.map(function(S) {
699
+ return Number(S);
700
+ }), T = Math.abs(d[0] - v[0]), A = Math.abs(d[1] - v[1]), P = Math.abs(d[2] - v[2]), O = d[0] / 2 + v[0] / 2, C = d[1] / 2 + v[1] / 2, L = d[2] / 2 + v[2] / 2, y = new w.Vector3(O, C, L), g = new w.BoxBufferGeometry(T, A, P), x = new w.ShaderMaterial({
701
701
  vertexShader: `
702
702
  varying vec2 vUv;
703
703
  void main() {
@@ -733,9 +733,9 @@ void main() {
733
733
  depthWrite: !1,
734
734
  depthTest: !1,
735
735
  transparent: !0
736
- }), p = new w.Mesh(b, P);
737
- return p.position.copy(y), p.name = "".concat(l.category_name).concat(l.index), p.userData.color = new ((g = w.Vector4).bind.apply(g, Vt(Vt([void 0], l.mask_color.map(function(k) {
738
- return k / 255;
736
+ }), p = new w.Mesh(g, x);
737
+ return p.position.copy(y), p.name = "".concat(l.category_name).concat(l.index), p.userData.color = new ((b = w.Vector4).bind.apply(b, Vt(Vt([void 0], l.mask_color.map(function(S) {
738
+ return S / 255;
739
739
  }).reverse(), !1), [1], !1)))(), p.userData.visible_viewpoint = Object.keys(l.visible_viewpoint), p;
740
740
  }), (t = this.group).add.apply(t, a), [
741
741
  2
@@ -790,9 +790,9 @@ void main() {
790
790
  * Copyright (c) 2016 Jorik Tangelder;
791
791
  * Licensed under the MIT license */
792
792
  var Tt = function(f, o, e, a) {
793
- var t = ["", "webkit", "Moz", "MS", "ms", "o"], s = o.createElement ? o.createElement("div") : a, u = "function", l = Math.round, g = Math.abs, d = Date.now;
793
+ var t = ["", "webkit", "Moz", "MS", "ms", "o"], s = o.createElement ? o.createElement("div") : a, u = "function", l = Math.round, b = Math.abs, d = Date.now;
794
794
  function v(n, r, i) {
795
- return setTimeout(b(n, i), r);
795
+ return setTimeout(g(n, i), r);
796
796
  }
797
797
  function T(n, r, i) {
798
798
  return Array.isArray(n) ? (A(n, i[r], i), !0) : !1;
@@ -809,7 +809,7 @@ var Tt = function(f, o, e, a) {
809
809
  for (h in n)
810
810
  n.hasOwnProperty(h) && r.call(i, n[h], h, n);
811
811
  }
812
- function O(n, r, i) {
812
+ function P(n, r, i) {
813
813
  var h = "DEPRECATED METHOD: " + r + `
814
814
  ` + i + ` AT
815
815
  `;
@@ -818,8 +818,8 @@ var Tt = function(f, o, e, a) {
818
818
  return N && N.call(f.console, h, E), n.apply(this, arguments);
819
819
  };
820
820
  }
821
- var M;
822
- typeof Object.assign != "function" ? M = function(r) {
821
+ var O;
822
+ typeof Object.assign != "function" ? O = function(r) {
823
823
  if (r === a || r === null)
824
824
  throw new TypeError("Cannot convert undefined or null to object");
825
825
  for (var i = Object(r), h = 1; h < arguments.length; h++) {
@@ -829,35 +829,35 @@ var Tt = function(f, o, e, a) {
829
829
  m.hasOwnProperty(E) && (i[E] = m[E]);
830
830
  }
831
831
  return i;
832
- } : M = Object.assign;
833
- var C = O(function(r, i, h) {
832
+ } : O = Object.assign;
833
+ var C = P(function(r, i, h) {
834
834
  for (var m = Object.keys(i), E = 0; E < m.length; )
835
835
  (!h || h && r[m[E]] === a) && (r[m[E]] = i[m[E]]), E++;
836
836
  return r;
837
- }, "extend", "Use `assign`."), I = O(function(r, i) {
837
+ }, "extend", "Use `assign`."), L = P(function(r, i) {
838
838
  return C(r, i, !0);
839
839
  }, "merge", "Use `assign`.");
840
840
  function y(n, r, i) {
841
841
  var h = r.prototype, m;
842
- m = n.prototype = Object.create(h), m.constructor = n, m._super = h, i && M(m, i);
842
+ m = n.prototype = Object.create(h), m.constructor = n, m._super = h, i && O(m, i);
843
843
  }
844
- function b(n, r) {
844
+ function g(n, r) {
845
845
  return function() {
846
846
  return n.apply(r, arguments);
847
847
  };
848
848
  }
849
- function P(n, r) {
849
+ function x(n, r) {
850
850
  return typeof n == u ? n.apply(r && r[0] || a, r) : n;
851
851
  }
852
852
  function p(n, r) {
853
853
  return n === a ? r : n;
854
854
  }
855
- function k(n, r, i) {
855
+ function S(n, r, i) {
856
856
  A(te(r), function(h) {
857
857
  n.addEventListener(h, i, !1);
858
858
  });
859
859
  }
860
- function x(n, r, i) {
860
+ function M(n, r, i) {
861
861
  A(te(r), function(h) {
862
862
  n.removeEventListener(h, i, !1);
863
863
  });
@@ -910,15 +910,15 @@ var Tt = function(f, o, e, a) {
910
910
  function R() {
911
911
  return ie++;
912
912
  }
913
- function S(n) {
913
+ function I(n) {
914
914
  var r = n.ownerDocument || n;
915
915
  return r.defaultView || r.parentWindow || f;
916
916
  }
917
- var _ = /mobile|tablet|ip(ad|hone|od)|android/i, F = "ontouchstart" in f, Y = re(f, "PointerEvent") !== a, ne = F && _.test(navigator.userAgent), H = "touch", U = "pen", W = "mouse", V = "kinect", B = 25, L = 1, $ = 2, j = 4, z = 8, Oe = 1, Ee = 2, _e = 4, Se = 8, Pe = 16, oe = Ee | _e, ue = Se | Pe, De = oe | ue, Re = ["x", "y"], Ie = ["clientX", "clientY"];
917
+ var _ = /mobile|tablet|ip(ad|hone|od)|android/i, F = "ontouchstart" in f, Y = re(f, "PointerEvent") !== a, ne = F && _.test(navigator.userAgent), H = "touch", U = "pen", W = "mouse", V = "kinect", B = 25, k = 1, $ = 2, j = 4, z = 8, Oe = 1, Ee = 2, _e = 4, Se = 8, Pe = 16, oe = Ee | _e, ue = Se | Pe, De = oe | ue, Re = ["x", "y"], Ie = ["clientX", "clientY"];
918
918
  function ae(n, r) {
919
919
  var i = this;
920
920
  this.manager = n, this.callback = r, this.element = n.element, this.target = n.options.inputTarget, this.domHandler = function(h) {
921
- P(n.options.enable, [n]) && i.handler(h);
921
+ x(n.options.enable, [n]) && i.handler(h);
922
922
  }, this.init();
923
923
  }
924
924
  ae.prototype = {
@@ -932,13 +932,13 @@ var Tt = function(f, o, e, a) {
932
932
  * bind the events
933
933
  */
934
934
  init: function() {
935
- this.evEl && k(this.element, this.evEl, this.domHandler), this.evTarget && k(this.target, this.evTarget, this.domHandler), this.evWin && k(S(this.element), this.evWin, this.domHandler);
935
+ this.evEl && S(this.element, this.evEl, this.domHandler), this.evTarget && S(this.target, this.evTarget, this.domHandler), this.evWin && S(I(this.element), this.evWin, this.domHandler);
936
936
  },
937
937
  /**
938
938
  * unbind the events
939
939
  */
940
940
  destroy: function() {
941
- this.evEl && x(this.element, this.evEl, this.domHandler), this.evTarget && x(this.target, this.evTarget, this.domHandler), this.evWin && x(S(this.element), this.evWin, this.domHandler);
941
+ this.evEl && M(this.element, this.evEl, this.domHandler), this.evTarget && M(this.target, this.evTarget, this.domHandler), this.evWin && M(I(this.element), this.evWin, this.domHandler);
942
942
  }
943
943
  };
944
944
  function Ke(n) {
@@ -946,7 +946,7 @@ var Tt = function(f, o, e, a) {
946
946
  return i ? r = i : Y ? r = ut : ne ? r = $e : F ? r = ht : r = Je, new r(n, Ze);
947
947
  }
948
948
  function Ze(n, r, i) {
949
- var h = i.pointers.length, m = i.changedPointers.length, E = r & L && h - m === 0, N = r & (j | z) && h - m === 0;
949
+ var h = i.pointers.length, m = i.changedPointers.length, E = r & k && h - m === 0, N = r & (j | z) && h - m === 0;
950
950
  i.isFirst = !!E, i.isFinal = !!N, E && (n.session = {}), i.eventType = r, c(n, i), n.emit("hammer.input", i), n.recognize(i), n.session.prevInput = i;
951
951
  }
952
952
  function c(n, r) {
@@ -955,13 +955,13 @@ var Tt = function(f, o, e, a) {
955
955
  var E = i.firstInput, N = i.firstMultiple, Q = N ? N.center : E.center, se = r.center = fe(h);
956
956
  r.timeStamp = d(), r.deltaTime = r.timeStamp - E.timeStamp, r.angle = ct(Q, se), r.distance = Qe(Q, se), D(i, r), r.offsetDirection = ge(r.deltaX, r.deltaY);
957
957
  var G = Fe(r.deltaTime, r.deltaX, r.deltaY);
958
- r.overallVelocityX = G.x, r.overallVelocityY = G.y, r.overallVelocity = g(G.x) > g(G.y) ? G.x : G.y, r.scale = N ? Wt(N.pointers, h) : 1, r.rotation = N ? Gt(N.pointers, h) : 0, r.maxPointers = i.prevInput ? r.pointers.length > i.prevInput.maxPointers ? r.pointers.length : i.prevInput.maxPointers : r.pointers.length, X(i, r);
958
+ r.overallVelocityX = G.x, r.overallVelocityY = G.y, r.overallVelocity = b(G.x) > b(G.y) ? G.x : G.y, r.scale = N ? Wt(N.pointers, h) : 1, r.rotation = N ? Gt(N.pointers, h) : 0, r.maxPointers = i.prevInput ? r.pointers.length > i.prevInput.maxPointers ? r.pointers.length : i.prevInput.maxPointers : r.pointers.length, X(i, r);
959
959
  var de = n.element;
960
960
  ee(r.srcEvent.target, de) && (de = r.srcEvent.target), r.target = de;
961
961
  }
962
962
  function D(n, r) {
963
963
  var i = r.center, h = n.offsetDelta || {}, m = n.prevDelta || {}, E = n.prevInput || {};
964
- (r.eventType === L || E.eventType === j) && (m = n.prevDelta = {
964
+ (r.eventType === k || E.eventType === j) && (m = n.prevDelta = {
965
965
  x: E.deltaX || 0,
966
966
  y: E.deltaY || 0
967
967
  }, h = n.offsetDelta = {
@@ -973,7 +973,7 @@ var Tt = function(f, o, e, a) {
973
973
  var i = n.lastInterval || r, h = r.timeStamp - i.timeStamp, m, E, N, Q;
974
974
  if (r.eventType != z && (h > B || i.velocity === a)) {
975
975
  var se = r.deltaX - i.deltaX, G = r.deltaY - i.deltaY, de = Fe(h, se, G);
976
- E = de.x, N = de.y, m = g(de.x) > g(de.y) ? de.x : de.y, Q = ge(se, G), n.lastInterval = r;
976
+ E = de.x, N = de.y, m = b(de.x) > b(de.y) ? de.x : de.y, Q = ge(se, G), n.lastInterval = r;
977
977
  } else
978
978
  m = i.velocity, E = i.velocityX, N = i.velocityY, Q = i.direction;
979
979
  r.velocity = m, r.velocityX = E, r.velocityY = N, r.direction = Q;
@@ -1013,7 +1013,7 @@ var Tt = function(f, o, e, a) {
1013
1013
  };
1014
1014
  }
1015
1015
  function ge(n, r) {
1016
- return n === r ? Oe : g(n) >= g(r) ? n < 0 ? Ee : _e : r < 0 ? Se : Pe;
1016
+ return n === r ? Oe : b(n) >= b(r) ? n < 0 ? Ee : _e : r < 0 ? Se : Pe;
1017
1017
  }
1018
1018
  function Qe(n, r, i) {
1019
1019
  i || (i = Re);
@@ -1032,7 +1032,7 @@ var Tt = function(f, o, e, a) {
1032
1032
  return Qe(r[0], r[1], Ie) / Qe(n[0], n[1], Ie);
1033
1033
  }
1034
1034
  var qt = {
1035
- mousedown: L,
1035
+ mousedown: k,
1036
1036
  mousemove: $,
1037
1037
  mouseup: j
1038
1038
  }, Kt = "mousedown", Zt = "mousemove mouseup";
@@ -1046,7 +1046,7 @@ var Tt = function(f, o, e, a) {
1046
1046
  */
1047
1047
  handler: function(r) {
1048
1048
  var i = qt[r.type];
1049
- i & L && (r.button === 0 || r.button === 2) && (this.pressed = !0), i & $ && r.which !== 1 && (i = j), this.pressed && (i & j && (this.pressed = !1), this.callback(this.manager, i, {
1049
+ i & k && (r.button === 0 || r.button === 2) && (this.pressed = !0), i & $ && r.which !== 1 && (i = j), this.pressed && (i & j && (this.pressed = !1), this.callback(this.manager, i, {
1050
1050
  pointers: [r],
1051
1051
  changedPointers: [r],
1052
1052
  pointerType: W,
@@ -1055,7 +1055,7 @@ var Tt = function(f, o, e, a) {
1055
1055
  }
1056
1056
  });
1057
1057
  var xt = {
1058
- pointerdown: L,
1058
+ pointerdown: k,
1059
1059
  pointermove: $,
1060
1060
  pointerup: j,
1061
1061
  pointercancel: z,
@@ -1078,7 +1078,7 @@ var Tt = function(f, o, e, a) {
1078
1078
  */
1079
1079
  handler: function(r) {
1080
1080
  var i = this.store, h = !1, m = !1, E = r.type.toLowerCase().replace("ms", ""), N = xt[E], Q = Qt[r.pointerType] || r.pointerType, se = Q == H, G = le(i, r.pointerId, "pointerId");
1081
- N & L && (r.button === 0 || r.button === 2 || se) ? G < 0 && (i.push(r), G = i.length - 1) : N & (j | z) ? h = !0 : !se && r.buttons === 0 && (h = !0, m = !0, N = xt.pointerup), !(G < 0) && (m || (i[G] = r), this.callback(this.manager, N, {
1081
+ N & k && (r.button === 0 || r.button === 2 || se) ? G < 0 && (i.push(r), G = i.length - 1) : N & (j | z) ? h = !0 : !se && r.buttons === 0 && (h = !0, m = !0, N = xt.pointerup), !(G < 0) && (m || (i[G] = r), this.callback(this.manager, N, {
1082
1082
  pointers: i,
1083
1083
  changedPointers: [r],
1084
1084
  pointerType: Q,
@@ -1087,7 +1087,7 @@ var Tt = function(f, o, e, a) {
1087
1087
  }
1088
1088
  });
1089
1089
  var Jt = {
1090
- touchstart: L,
1090
+ touchstart: k,
1091
1091
  touchmove: $,
1092
1092
  touchend: j,
1093
1093
  touchcancel: z
@@ -1098,7 +1098,7 @@ var Tt = function(f, o, e, a) {
1098
1098
  y(Ct, ae, {
1099
1099
  handler: function(r) {
1100
1100
  var i = Jt[r.type];
1101
- if (i === L && (this.started = !0), !!this.started) {
1101
+ if (i === k && (this.started = !0), !!this.started) {
1102
1102
  var h = tn.call(this, r, i);
1103
1103
  i & (j | z) && h[0].length - h[1].length === 0 && (this.started = !1), this.callback(this.manager, i, {
1104
1104
  pointers: h[0],
@@ -1114,7 +1114,7 @@ var Tt = function(f, o, e, a) {
1114
1114
  return r & (j | z) && (i = Ce(i.concat(h), "identifier")), [i, h];
1115
1115
  }
1116
1116
  var nn = {
1117
- touchstart: L,
1117
+ touchstart: k,
1118
1118
  touchmove: $,
1119
1119
  touchend: j,
1120
1120
  touchcancel: z
@@ -1135,12 +1135,12 @@ var Tt = function(f, o, e, a) {
1135
1135
  });
1136
1136
  function an(n, r) {
1137
1137
  var i = me(n.touches), h = this.targetIds;
1138
- if (r & (L | $) && i.length === 1)
1138
+ if (r & (k | $) && i.length === 1)
1139
1139
  return h[i[0].identifier] = !0, [i, i];
1140
1140
  var m, E, N = me(n.changedTouches), Q = [], se = this.target;
1141
1141
  if (E = i.filter(function(G) {
1142
1142
  return ee(G.target, se);
1143
- }), r === L)
1143
+ }), r === k)
1144
1144
  for (m = 0; m < E.length; )
1145
1145
  h[E[m].identifier] = !0, m++;
1146
1146
  for (m = 0; m < N.length; )
@@ -1155,7 +1155,7 @@ var Tt = function(f, o, e, a) {
1155
1155
  var on = 2500, Ot = 25;
1156
1156
  function ht() {
1157
1157
  ae.apply(this, arguments);
1158
- var n = b(this.handler, this);
1158
+ var n = g(this.handler, this);
1159
1159
  this.touch = new $e(this.manager, n), this.mouse = new Je(this.manager, n), this.primaryTouch = null, this.lastTouches = [];
1160
1160
  }
1161
1161
  y(ht, ae, {
@@ -1183,7 +1183,7 @@ var Tt = function(f, o, e, a) {
1183
1183
  }
1184
1184
  });
1185
1185
  function sn(n, r) {
1186
- n & L ? (this.primaryTouch = r.changedPointers[0].identifier, _t.call(this, r)) : n & (j | z) && _t.call(this, r);
1186
+ n & k ? (this.primaryTouch = r.changedPointers[0].identifier, _t.call(this, r)) : n & (j | z) && _t.call(this, r);
1187
1187
  }
1188
1188
  function _t(n) {
1189
1189
  var r = n.changedPointers[0];
@@ -1230,7 +1230,7 @@ var Tt = function(f, o, e, a) {
1230
1230
  compute: function() {
1231
1231
  var n = [];
1232
1232
  return A(this.manager.recognizers, function(r) {
1233
- P(r.options.enable, [r]) && (n = n.concat(r.getTouchAction()));
1233
+ x(r.options.enable, [r]) && (n = n.concat(r.getTouchAction()));
1234
1234
  }), cn(n.join(" "));
1235
1235
  },
1236
1236
  /**
@@ -1276,7 +1276,7 @@ var Tt = function(f, o, e, a) {
1276
1276
  }
1277
1277
  var tt = 1, ce = 2, ke = 4, xe = 8, ye = xe, Ve = 16, pe = 32;
1278
1278
  function be(n) {
1279
- this.options = M({}, this.defaults, n || {}), this.id = R(), this.manager = null, this.options.enable = p(this.options.enable, !0), this.state = tt, this.simultaneous = {}, this.requireFail = [];
1279
+ this.options = O({}, this.defaults, n || {}), this.id = R(), this.manager = null, this.options.enable = p(this.options.enable, !0), this.state = tt, this.simultaneous = {}, this.requireFail = [];
1280
1280
  }
1281
1281
  be.prototype = {
1282
1282
  /**
@@ -1290,7 +1290,7 @@ var Tt = function(f, o, e, a) {
1290
1290
  * @return {Recognizer}
1291
1291
  */
1292
1292
  set: function(n) {
1293
- return M(this.options, n), this.manager && this.manager.touchAction.update(), this;
1293
+ return O(this.options, n), this.manager && this.manager.touchAction.update(), this;
1294
1294
  },
1295
1295
  /**
1296
1296
  * recognize simultaneous with an other recognizer.
@@ -1389,8 +1389,8 @@ var Tt = function(f, o, e, a) {
1389
1389
  * @param {Object} inputData
1390
1390
  */
1391
1391
  recognize: function(n) {
1392
- var r = M({}, n);
1393
- if (!P(this.options.enable, [this, r])) {
1392
+ var r = O({}, n);
1393
+ if (!x(this.options.enable, [this, r])) {
1394
1394
  this.reset(), this.state = pe;
1395
1395
  return;
1396
1396
  }
@@ -1548,7 +1548,7 @@ var Tt = function(f, o, e, a) {
1548
1548
  var r = this.options, i = n.pointers.length === r.pointers, h = n.distance < r.threshold, m = n.deltaTime > r.time;
1549
1549
  if (this._input = n, !h || !i || n.eventType & (j | z) && !m)
1550
1550
  this.reset();
1551
- else if (n.eventType & L)
1551
+ else if (n.eventType & k)
1552
1552
  this.reset(), this._timer = v(function() {
1553
1553
  this.state = ye, this.tryEmit();
1554
1554
  }, r.time, this);
@@ -1603,7 +1603,7 @@ var Tt = function(f, o, e, a) {
1603
1603
  },
1604
1604
  attrTest: function(n) {
1605
1605
  var r = this.options.direction, i;
1606
- return r & (oe | ue) ? i = n.overallVelocity : r & oe ? i = n.overallVelocityX : r & ue && (i = n.overallVelocityY), this._super.attrTest.call(this, n) && r & n.offsetDirection && n.distance > this.options.threshold && n.maxPointers == this.options.pointers && g(i) > this.options.velocity && n.eventType & j;
1606
+ return r & (oe | ue) ? i = n.overallVelocity : r & oe ? i = n.overallVelocityX : r & ue && (i = n.overallVelocityY), this._super.attrTest.call(this, n) && r & n.offsetDirection && n.distance > this.options.threshold && n.maxPointers == this.options.pointers && b(i) > this.options.velocity && n.eventType & j;
1607
1607
  },
1608
1608
  emit: function(n) {
1609
1609
  var r = Dt(n.offsetDirection);
@@ -1636,7 +1636,7 @@ var Tt = function(f, o, e, a) {
1636
1636
  },
1637
1637
  process: function(n) {
1638
1638
  var r = this.options, i = n.pointers.length === r.pointers, h = n.distance < r.threshold, m = n.deltaTime < r.time;
1639
- if (this.reset(), n.eventType & L && this.count === 0)
1639
+ if (this.reset(), n.eventType & k && this.count === 0)
1640
1640
  return this.failTimeout();
1641
1641
  if (h && m && i) {
1642
1642
  if (n.eventType != j)
@@ -1764,7 +1764,7 @@ var Tt = function(f, o, e, a) {
1764
1764
  };
1765
1765
  var hn = 1, Rt = 2;
1766
1766
  function yt(n, r) {
1767
- this.options = M({}, Le.defaults, r || {}), this.options.inputTarget = this.options.inputTarget || n, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = n, this.input = Ke(this), this.touchAction = new pt(this, this.options.touchAction), Ft(this, !0), A(this.options.recognizers, function(i) {
1767
+ this.options = O({}, Le.defaults, r || {}), this.options.inputTarget = this.options.inputTarget || n, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = n, this.input = Ke(this), this.touchAction = new pt(this, this.options.touchAction), Ft(this, !0), A(this.options.recognizers, function(i) {
1768
1768
  var h = this.add(new i[0](i[1]));
1769
1769
  i[2] && h.recognizeWith(i[2]), i[3] && h.requireFailure(i[3]);
1770
1770
  }, this);
@@ -1776,7 +1776,7 @@ var Tt = function(f, o, e, a) {
1776
1776
  * @returns {Manager}
1777
1777
  */
1778
1778
  set: function(n) {
1779
- return M(this.options, n), n.touchAction && this.touchAction.update(), n.inputTarget && (this.input.destroy(), this.input.target = n.inputTarget, this.input.init()), this;
1779
+ return O(this.options, n), n.touchAction && this.touchAction.update(), n.inputTarget && (this.input.destroy(), this.input.target = n.inputTarget, this.input.init()), this;
1780
1780
  },
1781
1781
  /**
1782
1782
  * stop recognizing for this session.
@@ -1909,8 +1909,8 @@ var Tt = function(f, o, e, a) {
1909
1909
  var i = o.createEvent("Event");
1910
1910
  i.initEvent(n, !0, !0), i.gesture = r, r.target.dispatchEvent(i);
1911
1911
  }
1912
- return M(Le, {
1913
- INPUT_START: L,
1912
+ return O(Le, {
1913
+ INPUT_START: k,
1914
1914
  INPUT_MOVE: $,
1915
1915
  INPUT_END: j,
1916
1916
  INPUT_CANCEL: z,
@@ -1945,14 +1945,14 @@ var Tt = function(f, o, e, a) {
1945
1945
  Pinch: dt,
1946
1946
  Rotate: mt,
1947
1947
  Press: vt,
1948
- on: k,
1949
- off: x,
1948
+ on: S,
1949
+ off: M,
1950
1950
  each: A,
1951
- merge: I,
1951
+ merge: L,
1952
1952
  extend: C,
1953
- assign: M,
1953
+ assign: O,
1954
1954
  inherit: y,
1955
- bindFn: b,
1955
+ bindFn: g,
1956
1956
  prefixed: re
1957
1957
  }), Le;
1958
1958
  }(typeof window != "undefined" ? window : {}, typeof document != "undefined" ? document : {}), We = function(f, o) {
@@ -1968,7 +1968,7 @@ var Tt = function(f, o, e, a) {
1968
1968
  var c = new ve(), D = new Ut().setFromUnitVectors(f.up, new ve(0, 1, 0)), X = D.clone().inverse(), K = new ve(), fe = new Ut();
1969
1969
  return function() {
1970
1970
  var ge = e.object.position;
1971
- return c.copy(ge).sub(e.target), c.applyQuaternion(D), d.setFromVector3(c), e.autoRotate && l === u.NONE && te(ee()), e.enableDamping ? (d.theta += v.theta * e.dampingFactor, d.phi += v.phi * e.dampingFactor) : (d.theta += v.theta, d.phi += v.phi), d.theta = Math.max(e.minAzimuthAngle, Math.min(e.maxAzimuthAngle, d.theta)), d.phi = Math.max(e.minPolarAngle, Math.min(e.maxPolarAngle, d.phi)), d.makeSafe(), d.radius *= T, d.radius = Math.max(e.minDistance, Math.min(e.maxDistance, d.radius)), e.enableDamping === !0 ? e.target.addScaledVector(A, e.dampingFactor) : e.target.add(A), c.setFromSpherical(d), c.applyQuaternion(X), ge.copy(e.target).add(c), e.object.lookAt(e.target), e.enableDamping === !0 ? (v.theta *= 1 - e.dampingFactor, v.phi *= 1 - e.dampingFactor, A.multiplyScalar(1 - e.dampingFactor)) : (v.set(0, 0, 0), A.set(0, 0, 0)), T = 1, O || K.distanceToSquared(e.object.position) > g || 8 * (1 - fe.dot(e.object.quaternion)) > g ? (e.dispatchEvent(a), K.copy(e.object.position), fe.copy(e.object.quaternion), O = !1, !0) : !1;
1971
+ return c.copy(ge).sub(e.target), c.applyQuaternion(D), d.setFromVector3(c), e.autoRotate && l === u.NONE && te(ee()), e.enableDamping ? (d.theta += v.theta * e.dampingFactor, d.phi += v.phi * e.dampingFactor) : (d.theta += v.theta, d.phi += v.phi), d.theta = Math.max(e.minAzimuthAngle, Math.min(e.maxAzimuthAngle, d.theta)), d.phi = Math.max(e.minPolarAngle, Math.min(e.maxPolarAngle, d.phi)), d.makeSafe(), d.radius *= T, d.radius = Math.max(e.minDistance, Math.min(e.maxDistance, d.radius)), e.enableDamping === !0 ? e.target.addScaledVector(A, e.dampingFactor) : e.target.add(A), c.setFromSpherical(d), c.applyQuaternion(X), ge.copy(e.target).add(c), e.object.lookAt(e.target), e.enableDamping === !0 ? (v.theta *= 1 - e.dampingFactor, v.phi *= 1 - e.dampingFactor, A.multiplyScalar(1 - e.dampingFactor)) : (v.set(0, 0, 0), A.set(0, 0, 0)), T = 1, P || K.distanceToSquared(e.object.position) > b || 8 * (1 - fe.dot(e.object.quaternion)) > b ? (e.dispatchEvent(a), K.copy(e.object.position), fe.copy(e.object.quaternion), P = !1, !0) : !1;
1972
1972
  };
1973
1973
  }(), this.dispose = function() {
1974
1974
  e.domElement.removeEventListener("contextmenu", Ze, !1), e.domElement.removeEventListener("mousedown", Pe, !1), e.domElement.removeEventListener("wheel", De, !1), e.domElement.removeEventListener("touchstart", Ie, !1), e.domElement.removeEventListener("touchend", Ke, !1), e.domElement.removeEventListener("touchmove", ae, !1), document.removeEventListener("mousemove", oe, !1), document.removeEventListener("mouseup", ue, !1), e.domElement.removeEventListener("keydown", Re, !1);
@@ -1982,7 +1982,7 @@ var Tt = function(f, o, e, a) {
1982
1982
  TOUCH_PAN: 4,
1983
1983
  TOUCH_DOLLY_PAN: 5,
1984
1984
  TOUCH_DOLLY_ROTATE: 6
1985
- }, l = u.NONE, g = 1e-6, d = new Bt(), v = new Bt(), T = 1, A = new ve(), O = !1, M = new Te(), C = new Te(), I = new Te(), y = new Te(), b = new Te(), P = new Te(), p = new Te(), k = new Te(), x = new Te();
1985
+ }, l = u.NONE, b = 1e-6, d = new Bt(), v = new Bt(), T = 1, A = new ve(), P = !1, O = new Te(), C = new Te(), L = new Te(), y = new Te(), g = new Te(), x = new Te(), p = new Te(), S = new Te(), M = new Te();
1986
1986
  function ee() {
1987
1987
  return 2 * Math.PI / 60 / 60 * e.autoRotateSpeed;
1988
1988
  }
@@ -2018,13 +2018,13 @@ var Tt = function(f, o, e, a) {
2018
2018
  };
2019
2019
  }();
2020
2020
  function ie(c) {
2021
- e.object.isPerspectiveCamera ? T /= c : e.object.isOrthographicCamera ? (e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom * c)), e.object.updateProjectionMatrix(), O = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2021
+ e.object.isPerspectiveCamera ? T /= c : e.object.isOrthographicCamera ? (e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom * c)), e.object.updateProjectionMatrix(), P = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2022
2022
  }
2023
2023
  function R(c) {
2024
- e.object.isPerspectiveCamera ? T *= c : e.object.isOrthographicCamera ? (e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / c)), e.object.updateProjectionMatrix(), O = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2024
+ e.object.isPerspectiveCamera ? T *= c : e.object.isOrthographicCamera ? (e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / c)), e.object.updateProjectionMatrix(), P = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2025
2025
  }
2026
- function S(c) {
2027
- M.set(c.clientX, c.clientY);
2026
+ function I(c) {
2027
+ O.set(c.clientX, c.clientY);
2028
2028
  }
2029
2029
  function _(c) {
2030
2030
  p.set(c.clientX, c.clientY);
@@ -2033,15 +2033,15 @@ var Tt = function(f, o, e, a) {
2033
2033
  y.set(c.clientX, c.clientY);
2034
2034
  }
2035
2035
  function Y(c) {
2036
- C.set(c.clientX, c.clientY), I.subVectors(C, M).multiplyScalar(e.rotateSpeed);
2036
+ C.set(c.clientX, c.clientY), L.subVectors(C, O).multiplyScalar(e.rotateSpeed);
2037
2037
  var D = e.domElement;
2038
- te(2 * Math.PI * I.x / D.clientHeight), le(2 * Math.PI * I.y / D.clientHeight), M.copy(C), e.update();
2038
+ te(2 * Math.PI * L.x / D.clientHeight), le(2 * Math.PI * L.y / D.clientHeight), O.copy(C), e.update();
2039
2039
  }
2040
2040
  function ne(c) {
2041
- k.set(c.clientX, c.clientY), x.subVectors(k, p), x.y > 0 ? ie(Z()) : x.y < 0 && R(Z()), p.copy(k), e.update();
2041
+ S.set(c.clientX, c.clientY), M.subVectors(S, p), M.y > 0 ? ie(Z()) : M.y < 0 && R(Z()), p.copy(S), e.update();
2042
2042
  }
2043
2043
  function H(c) {
2044
- b.set(c.clientX, c.clientY), P.subVectors(b, y).multiplyScalar(e.panSpeed), re(P.x, P.y), y.copy(b), e.update();
2044
+ g.set(c.clientX, c.clientY), x.subVectors(g, y).multiplyScalar(e.panSpeed), re(x.x, x.y), y.copy(g), e.update();
2045
2045
  }
2046
2046
  function U(c) {
2047
2047
  c.deltaY < 0 ? R(Z()) : c.deltaY > 0 && ie(Z()), e.update();
@@ -2066,10 +2066,10 @@ var Tt = function(f, o, e, a) {
2066
2066
  }
2067
2067
  function V(c) {
2068
2068
  if (c.touches.length == 1)
2069
- M.set(c.touches[0].pageX, c.touches[0].pageY);
2069
+ O.set(c.touches[0].pageX, c.touches[0].pageY);
2070
2070
  else {
2071
2071
  var D = 0.5 * (c.touches[0].pageX + c.touches[1].pageX), X = 0.5 * (c.touches[0].pageY + c.touches[1].pageY);
2072
- M.set(D, X);
2072
+ O.set(D, X);
2073
2073
  }
2074
2074
  }
2075
2075
  function B(c) {
@@ -2080,15 +2080,15 @@ var Tt = function(f, o, e, a) {
2080
2080
  y.set(D, X);
2081
2081
  }
2082
2082
  }
2083
- function L(c) {
2083
+ function k(c) {
2084
2084
  var D = c.touches[0].pageX - c.touches[1].pageX, X = c.touches[0].pageY - c.touches[1].pageY, K = Math.sqrt(D * D + X * X);
2085
2085
  p.set(0, K);
2086
2086
  }
2087
2087
  function $(c) {
2088
- e.enableZoom && L(c), e.enablePan && B(c);
2088
+ e.enableZoom && k(c), e.enablePan && B(c);
2089
2089
  }
2090
2090
  function j(c) {
2091
- e.enableZoom && L(c), e.enableRotate && V(c);
2091
+ e.enableZoom && k(c), e.enableRotate && V(c);
2092
2092
  }
2093
2093
  function z(c) {
2094
2094
  if (c.touches.length == 1)
@@ -2097,22 +2097,22 @@ var Tt = function(f, o, e, a) {
2097
2097
  var D = 0.5 * (c.touches[0].pageX + c.touches[1].pageX), X = 0.5 * (c.touches[0].pageY + c.touches[1].pageY);
2098
2098
  C.set(D, X);
2099
2099
  }
2100
- I.subVectors(C, M).multiplyScalar(e.rotateSpeed);
2100
+ L.subVectors(C, O).multiplyScalar(e.rotateSpeed);
2101
2101
  var K = e.domElement;
2102
- te(2 * Math.PI * I.x / K.clientHeight), le(2 * Math.PI * I.y / K.clientHeight), M.copy(C);
2102
+ te(2 * Math.PI * L.x / K.clientHeight), le(2 * Math.PI * L.y / K.clientHeight), O.copy(C);
2103
2103
  }
2104
2104
  function Oe(c) {
2105
2105
  if (c.touches.length == 1)
2106
- b.set(c.touches[0].pageX, c.touches[0].pageY);
2106
+ g.set(c.touches[0].pageX, c.touches[0].pageY);
2107
2107
  else {
2108
2108
  var D = 0.5 * (c.touches[0].pageX + c.touches[1].pageX), X = 0.5 * (c.touches[0].pageY + c.touches[1].pageY);
2109
- b.set(D, X);
2109
+ g.set(D, X);
2110
2110
  }
2111
- P.subVectors(b, y).multiplyScalar(e.panSpeed), re(P.x, P.y), y.copy(b);
2111
+ x.subVectors(g, y).multiplyScalar(e.panSpeed), re(x.x, x.y), y.copy(g);
2112
2112
  }
2113
2113
  function Ee(c) {
2114
2114
  var D = c.touches[0].pageX - c.touches[1].pageX, X = c.touches[0].pageY - c.touches[1].pageY, K = Math.sqrt(D * D + X * X);
2115
- k.set(0, K), x.set(0, Math.pow(k.y / p.y, e.zoomSpeed)), ie(x.y), p.copy(k);
2115
+ S.set(0, K), M.set(0, Math.pow(S.y / p.y, e.zoomSpeed)), ie(M.y), p.copy(S);
2116
2116
  }
2117
2117
  function _e(c) {
2118
2118
  e.enableZoom && Ee(c), e.enablePan && Oe(c);
@@ -2148,13 +2148,13 @@ var Tt = function(f, o, e, a) {
2148
2148
  F(c), l = u.PAN;
2149
2149
  } else {
2150
2150
  if (e.enableRotate === !1) return;
2151
- S(c), l = u.ROTATE;
2151
+ I(c), l = u.ROTATE;
2152
2152
  }
2153
2153
  break;
2154
2154
  case Ae.PAN:
2155
2155
  if (c.ctrlKey || c.metaKey || c.shiftKey) {
2156
2156
  if (e.enableRotate === !1) return;
2157
- S(c), l = u.ROTATE;
2157
+ I(c), l = u.ROTATE;
2158
2158
  } else {
2159
2159
  if (e.enablePan === !1) return;
2160
2160
  F(c), l = u.PAN;
@@ -2287,69 +2287,69 @@ var Sn = function() {
2287
2287
  objects: /* @__PURE__ */ new WeakMap()
2288
2288
  }, l = document.createElement("div");
2289
2289
  l.style.overflow = "hidden", this.domElement = l;
2290
- var g = document.createElement("div");
2291
- g.style.WebkitTransformStyle = "preserve-3d", g.style.transformStyle = "preserve-3d", g.style.pointerEvents = "none", l.appendChild(g);
2290
+ var b = document.createElement("div");
2291
+ b.style.WebkitTransformStyle = "preserve-3d", b.style.transformStyle = "preserve-3d", b.style.pointerEvents = "none", l.appendChild(b);
2292
2292
  var d = /Trident/i.test(navigator.userAgent);
2293
2293
  this.getSize = function() {
2294
2294
  return {
2295
2295
  width: o,
2296
2296
  height: e
2297
2297
  };
2298
- }, this.setSize = function(y, b) {
2299
- o = y, e = b, a = o / 2, t = e / 2, l.style.width = y + "px", l.style.height = b + "px", g.style.width = y + "px", g.style.height = b + "px";
2298
+ }, this.setSize = function(y, g) {
2299
+ o = y, e = g, a = o / 2, t = e / 2, l.style.width = y + "px", l.style.height = g + "px", b.style.width = y + "px", b.style.height = g + "px";
2300
2300
  };
2301
2301
  function v(y) {
2302
2302
  return Math.abs(y) < 1e-10 ? 0 : y;
2303
2303
  }
2304
2304
  function T(y) {
2305
- var b = y.elements;
2306
- return "matrix3d(" + v(b[0]) + "," + v(-b[1]) + "," + v(b[2]) + "," + v(b[3]) + "," + v(b[4]) + "," + v(-b[5]) + "," + v(b[6]) + "," + v(b[7]) + "," + v(b[8]) + "," + v(-b[9]) + "," + v(b[10]) + "," + v(b[11]) + "," + v(b[12]) + "," + v(-b[13]) + "," + v(b[14]) + "," + v(b[15]) + ")";
2305
+ var g = y.elements;
2306
+ return "matrix3d(" + v(g[0]) + "," + v(-g[1]) + "," + v(g[2]) + "," + v(g[3]) + "," + v(g[4]) + "," + v(-g[5]) + "," + v(g[6]) + "," + v(g[7]) + "," + v(g[8]) + "," + v(-g[9]) + "," + v(g[10]) + "," + v(g[11]) + "," + v(g[12]) + "," + v(-g[13]) + "," + v(g[14]) + "," + v(g[15]) + ")";
2307
2307
  }
2308
- function A(y, b) {
2309
- var P = y.elements, p = "matrix3d(" + v(P[0]) + "," + v(P[1]) + "," + v(P[2]) + "," + v(P[3]) + "," + v(-P[4]) + "," + v(-P[5]) + "," + v(-P[6]) + "," + v(-P[7]) + "," + v(P[8]) + "," + v(P[9]) + "," + v(P[10]) + "," + v(P[11]) + "," + v(P[12]) + "," + v(P[13]) + "," + v(P[14]) + "," + v(P[15]) + ")";
2310
- return d ? "translate(-50%,-50%)translate(" + a + "px," + t + "px)" + b + p : "translate(-50%,-50%)" + p;
2308
+ function A(y, g) {
2309
+ var x = y.elements, p = "matrix3d(" + v(x[0]) + "," + v(x[1]) + "," + v(x[2]) + "," + v(x[3]) + "," + v(-x[4]) + "," + v(-x[5]) + "," + v(-x[6]) + "," + v(-x[7]) + "," + v(x[8]) + "," + v(x[9]) + "," + v(x[10]) + "," + v(x[11]) + "," + v(x[12]) + "," + v(x[13]) + "," + v(x[14]) + "," + v(x[15]) + ")";
2310
+ return d ? "translate(-50%,-50%)translate(" + a + "px," + t + "px)" + g + p : "translate(-50%,-50%)" + p;
2311
2311
  }
2312
- function O(y, b, P, p) {
2312
+ function P(y, g, x, p) {
2313
2313
  if (y instanceof we) {
2314
- y.onBeforeRender(f, b, P);
2315
- var k;
2316
- y instanceof lt ? (s.copy(P.matrixWorldInverse), s.transpose(), s.copyPosition(y.matrixWorld), s.scale(y.scale), s.elements[3] = 0, s.elements[7] = 0, s.elements[11] = 0, s.elements[15] = 1, k = A(s, p)) : k = A(y.matrixWorld, p);
2317
- var x = y.element, ee = u.objects.get(y);
2318
- if (ee === void 0 || ee.style !== k) {
2319
- x.style.WebkitTransform = k, x.style.transform = k;
2320
- var Z = { style: k };
2321
- d && (Z.distanceToCameraSquared = M(P, y)), u.objects.set(y, Z);
2322
- }
2323
- x.style.display = y.visible ? "" : "none", x.parentNode !== g && g.appendChild(x), y.onAfterRender(f, b, P);
2314
+ y.onBeforeRender(f, g, x);
2315
+ var S;
2316
+ y instanceof lt ? (s.copy(x.matrixWorldInverse), s.transpose(), s.copyPosition(y.matrixWorld), s.scale(y.scale), s.elements[3] = 0, s.elements[7] = 0, s.elements[11] = 0, s.elements[15] = 1, S = A(s, p)) : S = A(y.matrixWorld, p);
2317
+ var M = y.element, ee = u.objects.get(y);
2318
+ if (ee === void 0 || ee.style !== S) {
2319
+ M.style.WebkitTransform = S, M.style.transform = S;
2320
+ var Z = { style: S };
2321
+ d && (Z.distanceToCameraSquared = O(x, y)), u.objects.set(y, Z);
2322
+ }
2323
+ M.style.display = y.visible ? "" : "none", M.parentNode !== b && b.appendChild(M), y.onAfterRender(f, g, x);
2324
2324
  }
2325
2325
  for (var te = 0, le = y.children.length; te < le; te++)
2326
- O(y.children[te], b, P, p);
2326
+ P(y.children[te], g, x, p);
2327
2327
  }
2328
- var M = function() {
2329
- var y = new ve(), b = new ve();
2330
- return function(P, p) {
2331
- return y.setFromMatrixPosition(P.matrixWorld), b.setFromMatrixPosition(p.matrixWorld), y.distanceToSquared(b);
2328
+ var O = function() {
2329
+ var y = new ve(), g = new ve();
2330
+ return function(x, p) {
2331
+ return y.setFromMatrixPosition(x.matrixWorld), g.setFromMatrixPosition(p.matrixWorld), y.distanceToSquared(g);
2332
2332
  };
2333
2333
  }();
2334
2334
  function C(y) {
2335
- var b = [];
2336
- return y.traverse(function(P) {
2337
- P instanceof we && b.push(P);
2338
- }), b;
2339
- }
2340
- function I(y) {
2341
- for (var b = C(y).sort(function(x, ee) {
2342
- var Z = u.objects.get(x).distanceToCameraSquared, te = u.objects.get(ee).distanceToCameraSquared;
2335
+ var g = [];
2336
+ return y.traverse(function(x) {
2337
+ x instanceof we && g.push(x);
2338
+ }), g;
2339
+ }
2340
+ function L(y) {
2341
+ for (var g = C(y).sort(function(M, ee) {
2342
+ var Z = u.objects.get(M).distanceToCameraSquared, te = u.objects.get(ee).distanceToCameraSquared;
2343
2343
  return Z - te;
2344
- }), P = b.length, p = 0, k = b.length; p < k; p++)
2345
- b[p].element.style.zIndex = P - p;
2346
- }
2347
- this.render = function(y, b) {
2348
- var P = b.projectionMatrix.elements[5] * t;
2349
- if (u.camera.fov !== P && (b.isPerspectiveCamera ? (l.style.WebkitPerspective = P + "px", l.style.perspective = P + "px") : (l.style.WebkitPerspective = "", l.style.perspective = ""), u.camera.fov = P), y.autoUpdate === !0 && y.updateMatrixWorld(), b.parent === null && b.updateMatrixWorld(), b.isOrthographicCamera)
2350
- var p = -(b.right + b.left) / 2, k = (b.top + b.bottom) / 2;
2351
- var x = b.isOrthographicCamera ? "scale(" + P + ")translate(" + v(p) + "px," + v(k) + "px)" + T(b.matrixWorldInverse) : "translateZ(" + P + "px)" + T(b.matrixWorldInverse), ee = x + "translate(" + a + "px," + t + "px)";
2352
- u.camera.style !== ee && !d && (g.style.WebkitTransform = ee, g.style.transform = ee, u.camera.style = ee), O(y, y, b, x), d && I(y);
2344
+ }), x = g.length, p = 0, S = g.length; p < S; p++)
2345
+ g[p].element.style.zIndex = x - p;
2346
+ }
2347
+ this.render = function(y, g) {
2348
+ var x = g.projectionMatrix.elements[5] * t;
2349
+ if (u.camera.fov !== x && (g.isPerspectiveCamera ? (l.style.WebkitPerspective = x + "px", l.style.perspective = x + "px") : (l.style.WebkitPerspective = "", l.style.perspective = ""), u.camera.fov = x), y.autoUpdate === !0 && y.updateMatrixWorld(), g.parent === null && g.updateMatrixWorld(), g.isOrthographicCamera)
2350
+ var p = -(g.right + g.left) / 2, S = (g.top + g.bottom) / 2;
2351
+ var M = g.isOrthographicCamera ? "scale(" + x + ")translate(" + v(p) + "px," + v(S) + "px)" + T(g.matrixWorldInverse) : "translateZ(" + x + "px)" + T(g.matrixWorldInverse), ee = M + "translate(" + a + "px," + t + "px)";
2352
+ u.camera.style !== ee && !d && (b.style.WebkitTransform = ee, b.style.transform = ee, u.camera.style = ee), P(y, y, g, M), d && L(y);
2353
2353
  };
2354
2354
  };
2355
2355
  function jt(f, o, e) {
@@ -2363,7 +2363,7 @@ var In = (
2363
2363
  function o(e, a, t, s, u) {
2364
2364
  var l = f.call(this) || this;
2365
2365
  l.type = "RoundedBoxGeometry", u = isNaN(u) ? 1 : Math.max(1, Math.floor(u)), e = isNaN(e) ? 1 : e, a = isNaN(a) ? 1 : a, t = isNaN(t) ? 1 : t, s = isNaN(s) ? 0.15 : s, s = Math.min(s, Math.min(e, Math.min(a, Math.min(t))) / 2);
2366
- var g = e / 2 - s, d = a / 2 - s, v = t / 2 - s;
2366
+ var b = e / 2 - s, d = a / 2 - s, v = t / 2 - s;
2367
2367
  l.parameters = {
2368
2368
  width: e,
2369
2369
  height: a,
@@ -2371,9 +2371,9 @@ var In = (
2371
2371
  radius: s,
2372
2372
  radiusSegments: u
2373
2373
  };
2374
- var T = u + 1, A = T * u + 1 << 3, O = new w.BufferAttribute(new Float32Array(A * 3), 3), M = new w.BufferAttribute(new Float32Array(A * 3), 3), C = [], I = [];
2374
+ var T = u + 1, A = T * u + 1 << 3, P = new w.BufferAttribute(new Float32Array(A * 3), 3), O = new w.BufferAttribute(new Float32Array(A * 3), 3), C = [], L = [];
2375
2375
  new w.Vector3();
2376
- var y = new w.Vector3(), b = [], P = [], p = [], k = T * u, x = T * u + 1;
2376
+ var y = new w.Vector3(), g = [], x = [], p = [], S = T * u, M = T * u + 1;
2377
2377
  ee(), te(), Z(), le(), Ce(), me();
2378
2378
  function ee() {
2379
2379
  for (var R = [
@@ -2385,33 +2385,33 @@ var In = (
2385
2385
  new w.Vector3(1, -1, -1),
2386
2386
  new w.Vector3(-1, -1, -1),
2387
2387
  new w.Vector3(-1, -1, 1)
2388
- ], S = 0; S < 8; S++)
2389
- C.push([]), I.push([]);
2390
- for (var _ = Math.PI / 2, F = new w.Vector3(g, d, v), Y = 0; Y <= u; Y++) {
2388
+ ], I = 0; I < 8; I++)
2389
+ C.push([]), L.push([]);
2390
+ for (var _ = Math.PI / 2, F = new w.Vector3(b, d, v), Y = 0; Y <= u; Y++) {
2391
2391
  var ne = Y / u, H = ne * _, U = Math.cos(H), W = Math.sin(H);
2392
2392
  if (Y == u) {
2393
2393
  y.set(0, 1, 0);
2394
2394
  var V = y.clone().multiplyScalar(s).add(F);
2395
- C[0].push(V), b.push(V);
2395
+ C[0].push(V), g.push(V);
2396
2396
  var B = y.clone();
2397
- I[0].push(B), P.push(B);
2397
+ L[0].push(B), x.push(B);
2398
2398
  continue;
2399
2399
  }
2400
- for (var L = 0; L <= u; L++) {
2401
- var $ = L / u, j = $ * _;
2400
+ for (var k = 0; k <= u; k++) {
2401
+ var $ = k / u, j = $ * _;
2402
2402
  y.x = U * Math.cos(j), y.y = W, y.z = U * Math.sin(j);
2403
2403
  var V = y.clone().multiplyScalar(s).add(F);
2404
- C[0].push(V), b.push(V);
2404
+ C[0].push(V), g.push(V);
2405
2405
  var B = y.clone().normalize();
2406
- I[0].push(B), P.push(B);
2406
+ L[0].push(B), x.push(B);
2407
2407
  }
2408
2408
  }
2409
2409
  for (var z = 1; z < 8; z++)
2410
- for (var S = 0; S < C[0].length; S++) {
2411
- var V = C[0][S].clone().multiply(R[z]);
2412
- C[z].push(V), b.push(V);
2413
- var B = I[0][S].clone().multiply(R[z]);
2414
- I[z].push(B), P.push(B);
2410
+ for (var I = 0; I < C[0].length; I++) {
2411
+ var V = C[0][I].clone().multiply(R[z]);
2412
+ C[z].push(V), g.push(V);
2413
+ var B = L[0][I].clone().multiply(R[z]);
2414
+ L[z].push(B), x.push(B);
2415
2415
  }
2416
2416
  }
2417
2417
  function Z() {
@@ -2424,46 +2424,46 @@ var In = (
2424
2424
  !0,
2425
2425
  !1,
2426
2426
  !0
2427
- ], S = T * (u - 1), _ = 0; _ < 8; _++) {
2428
- for (var F = x * _, Y = 0; Y < u - 1; Y++)
2427
+ ], I = T * (u - 1), _ = 0; _ < 8; _++) {
2428
+ for (var F = M * _, Y = 0; Y < u - 1; Y++)
2429
2429
  for (var ne = Y * T, H = (Y + 1) * T, U = 0; U < u; U++) {
2430
- var W = U + 1, V = F + ne + U, B = F + ne + W, L = F + H + U, $ = F + H + W;
2431
- R[_] ? (p.push(V), p.push(L), p.push(B), p.push(B), p.push(L), p.push($)) : (p.push(V), p.push(B), p.push(L), p.push(B), p.push($), p.push(L));
2430
+ var W = U + 1, V = F + ne + U, B = F + ne + W, k = F + H + U, $ = F + H + W;
2431
+ R[_] ? (p.push(V), p.push(k), p.push(B), p.push(B), p.push(k), p.push($)) : (p.push(V), p.push(B), p.push(k), p.push(B), p.push($), p.push(k));
2432
2432
  }
2433
2433
  for (var U = 0; U < u; U++) {
2434
- var V = F + S + U, B = F + S + U + 1, L = F + k;
2435
- R[_] ? (p.push(V), p.push(L), p.push(B)) : (p.push(V), p.push(B), p.push(L));
2434
+ var V = F + I + U, B = F + I + U + 1, k = F + S;
2435
+ R[_] ? (p.push(V), p.push(k), p.push(B)) : (p.push(V), p.push(B), p.push(k));
2436
2436
  }
2437
2437
  }
2438
2438
  }
2439
2439
  function te() {
2440
- var R = k, S = k + x, _ = k + x * 2, F = k + x * 3;
2441
- p.push(R), p.push(S), p.push(_), p.push(R), p.push(_), p.push(F), R = k + x * 4, S = k + x * 5, _ = k + x * 6, F = k + x * 7, p.push(R), p.push(_), p.push(S), p.push(R), p.push(F), p.push(_), R = 0, S = x, _ = x * 4, F = x * 5, p.push(R), p.push(_), p.push(S), p.push(S), p.push(_), p.push(F), R = x * 2, S = x * 3, _ = x * 6, F = x * 7, p.push(R), p.push(_), p.push(S), p.push(S), p.push(_), p.push(F), R = u, S = u + x * 3, _ = u + x * 4, F = u + x * 7, p.push(R), p.push(S), p.push(_), p.push(S), p.push(F), p.push(_), R = u + x, S = u + x * 2, _ = u + x * 5, F = u + x * 6, p.push(R), p.push(_), p.push(S), p.push(S), p.push(_), p.push(F);
2440
+ var R = S, I = S + M, _ = S + M * 2, F = S + M * 3;
2441
+ p.push(R), p.push(I), p.push(_), p.push(R), p.push(_), p.push(F), R = S + M * 4, I = S + M * 5, _ = S + M * 6, F = S + M * 7, p.push(R), p.push(_), p.push(I), p.push(R), p.push(F), p.push(_), R = 0, I = M, _ = M * 4, F = M * 5, p.push(R), p.push(_), p.push(I), p.push(I), p.push(_), p.push(F), R = M * 2, I = M * 3, _ = M * 6, F = M * 7, p.push(R), p.push(_), p.push(I), p.push(I), p.push(_), p.push(F), R = u, I = u + M * 3, _ = u + M * 4, F = u + M * 7, p.push(R), p.push(I), p.push(_), p.push(I), p.push(F), p.push(_), R = u + M, I = u + M * 2, _ = u + M * 5, F = u + M * 6, p.push(R), p.push(_), p.push(I), p.push(I), p.push(_), p.push(F);
2442
2442
  }
2443
2443
  function le() {
2444
2444
  for (var R = 0; R < 4; R++)
2445
- for (var S = R * x, _ = 4 * x + S, F = (R & 1) === 1, Y = 0; Y < u; Y++) {
2446
- var ne = Y + 1, H = S + Y, U = S + ne, W = _ + Y, V = _ + ne;
2445
+ for (var I = R * M, _ = 4 * M + I, F = (R & 1) === 1, Y = 0; Y < u; Y++) {
2446
+ var ne = Y + 1, H = I + Y, U = I + ne, W = _ + Y, V = _ + ne;
2447
2447
  F ? (p.push(H), p.push(W), p.push(U), p.push(U), p.push(W), p.push(V)) : (p.push(H), p.push(U), p.push(W), p.push(U), p.push(V), p.push(W));
2448
2448
  }
2449
2449
  }
2450
2450
  function me() {
2451
- for (var R = [0, 2, 4, 6], S = [1, 3, 5, 7], _ = 0; _ < 4; _++)
2452
- for (var F = x * R[_], Y = x * S[_], ne = 1 >= _, H = 0; H < u; H++) {
2453
- var U = H * T, W = (H + 1) * T, V = F + U, B = F + W, L = Y + U, $ = Y + W;
2454
- ne ? (p.push(V), p.push(L), p.push(B), p.push(B), p.push(L), p.push($)) : (p.push(V), p.push(B), p.push(L), p.push(B), p.push($), p.push(L));
2451
+ for (var R = [0, 2, 4, 6], I = [1, 3, 5, 7], _ = 0; _ < 4; _++)
2452
+ for (var F = M * R[_], Y = M * I[_], ne = 1 >= _, H = 0; H < u; H++) {
2453
+ var U = H * T, W = (H + 1) * T, V = F + U, B = F + W, k = Y + U, $ = Y + W;
2454
+ ne ? (p.push(V), p.push(k), p.push(B), p.push(B), p.push(k), p.push($)) : (p.push(V), p.push(B), p.push(k), p.push(B), p.push($), p.push(k));
2455
2455
  }
2456
2456
  }
2457
2457
  function Ce() {
2458
- for (var R = u - 1, S = [0, 1, 4, 5], _ = [3, 2, 7, 6], F = [0, 1, 1, 0], Y = 0; Y < 4; Y++)
2459
- for (var ne = S[Y] * x, H = _[Y] * x, U = 0; U <= R; U++) {
2460
- var W = ne + u + U * T, V = ne + (U != R ? u + (U + 1) * T : x - 1), B = H + u + U * T, L = H + (U != R ? u + (U + 1) * T : x - 1);
2461
- F[Y] ? (p.push(W), p.push(B), p.push(V), p.push(V), p.push(B), p.push(L)) : (p.push(W), p.push(V), p.push(B), p.push(V), p.push(L), p.push(B));
2458
+ for (var R = u - 1, I = [0, 1, 4, 5], _ = [3, 2, 7, 6], F = [0, 1, 1, 0], Y = 0; Y < 4; Y++)
2459
+ for (var ne = I[Y] * M, H = _[Y] * M, U = 0; U <= R; U++) {
2460
+ var W = ne + u + U * T, V = ne + (U != R ? u + (U + 1) * T : M - 1), B = H + u + U * T, k = H + (U != R ? u + (U + 1) * T : M - 1);
2461
+ F[Y] ? (p.push(W), p.push(B), p.push(V), p.push(V), p.push(B), p.push(k)) : (p.push(W), p.push(V), p.push(B), p.push(V), p.push(k), p.push(B));
2462
2462
  }
2463
2463
  }
2464
- for (var re = 0, ie = 0; ie < b.length; ie++)
2465
- O.setXYZ(re, b[ie].x, b[ie].y, b[ie].z), M.setXYZ(re, P[ie].x, P[ie].y, P[ie].z), re++;
2466
- return l.setIndex(new w.BufferAttribute(new Uint16Array(p), 1)), l.setAttribute("position", O), l.setAttribute("normal", M), l;
2464
+ for (var re = 0, ie = 0; ie < g.length; ie++)
2465
+ P.setXYZ(re, g[ie].x, g[ie].y, g[ie].z), O.setXYZ(re, x[ie].x, x[ie].y, x[ie].z), re++;
2466
+ return l.setIndex(new w.BufferAttribute(new Uint16Array(p), 1)), l.setAttribute("position", P), l.setAttribute("normal", O), l;
2467
2467
  }
2468
2468
  return o;
2469
2469
  }(w.BufferGeometry)
@@ -2503,33 +2503,33 @@ var He = function(f) {
2503
2503
  function o(e, a) {
2504
2504
  var t = f.call(this, e) || this;
2505
2505
  t.camera = new dn(90), t.scene = new w.Scene(), t.renderer = new w.WebGLRenderer({ antialias: !0, alpha: !0 }), t.css3drenderer = new Sn(), t.ambientLight = new w.AmbientLight(16777215, 0.7), t.wrapper = document.createElement("div"), t.arrows = document.createElement("div"), t.arrowLeft = document.createElement("div"), t.arrowRight = document.createElement("div"), t.arrowFront = document.createElement("div"), t.arrowBack = document.createElement("div"), t.arrowTop = document.createElement("div"), t.arrowBottom = document.createElement("div"), t.spherical = null, t.dragging = !1, t.style = document.createElement("style"), t.directionalLight = new w.DirectionalLight(16777215, 0.2), t.box = new w.Mesh(new In(8, 8, 8, 0.5, 20), new w.MeshPhongMaterial({ color: 16777215 })), t.faces = new w.Group(), t.orient = function(l) {
2506
- var g = l.longitude, d = l.latitude;
2506
+ var b = l.longitude, d = l.latitude;
2507
2507
  t.dragging = !1, t.spherical = null, t.controls.enableDamping = !1, t.five.setState(Object.assign({
2508
2508
  latitude: d
2509
- }, g !== void 0 ? {
2510
- longitude: g + t.config.fixedLongitude
2509
+ }, b !== void 0 ? {
2510
+ longitude: b + t.config.fixedLongitude
2511
2511
  } : {})), t.five.ready().then(function() {
2512
2512
  t.controls.enableDamping = !0, t.setState({ arrowsVisible: !0 });
2513
2513
  });
2514
2514
  }, t.onRenderFrame = function() {
2515
- var l, g, d, v, T;
2515
+ var l, b, d, v, T;
2516
2516
  if (t.renderer.render(t.scene, t.camera), t.css3drenderer.render(t.scene, t.camera), t.directionalLight.position.copy(t.camera.position), (l = t.controls) === null || l === void 0 || l.update(), t.dragging) {
2517
2517
  t.camera.computePose(), t.updateByCamera();
2518
- var A = t.camera.pose, O = A.longitude, M = A.latitude;
2519
- t.five.setState({ longitude: O, latitude: M }, !0), t.updateArrows({ longitude: O, latitude: M });
2520
- } else if (t.spherical && (!Ye(t.spherical.pi, (g = t.controls) === null || g === void 0 ? void 0 : g.getPolarAngle()) || !Ye(t.spherical.theta, (d = t.controls) === null || d === void 0 ? void 0 : d.getAzimuthalAngle()))) {
2518
+ var A = t.camera.pose, P = A.longitude, O = A.latitude;
2519
+ t.five.setState({ longitude: P, latitude: O }, !0), t.updateArrows({ longitude: P, latitude: O });
2520
+ } else if (t.spherical && (!Ye(t.spherical.pi, (b = t.controls) === null || b === void 0 ? void 0 : b.getPolarAngle()) || !Ye(t.spherical.theta, (d = t.controls) === null || d === void 0 ? void 0 : d.getAzimuthalAngle()))) {
2521
2521
  t.spherical = { pi: (v = t.controls) === null || v === void 0 ? void 0 : v.getPolarAngle(), theta: (T = t.controls) === null || T === void 0 ? void 0 : T.getAzimuthalAngle() }, t.camera.computePose(), t.updateByCamera();
2522
- var C = t.camera.pose, O = C.longitude, M = C.latitude;
2523
- t.five.setState({ longitude: O, latitude: M }, !0), t.updateArrows({ longitude: O, latitude: M });
2522
+ var C = t.camera.pose, P = C.longitude, O = C.latitude;
2523
+ t.five.setState({ longitude: P, latitude: O }, !0), t.updateArrows({ longitude: P, latitude: O });
2524
2524
  } else
2525
2525
  t.spherical = null;
2526
2526
  }, t.onTapGesture = function(l) {
2527
- var g = l.pointers[0].clientX, d = l.pointers[0].clientY, v = jt({ x: g, y: d }, t.wrapper), T = new w.Raycaster();
2527
+ var b = l.pointers[0].clientX, d = l.pointers[0].clientY, v = jt({ x: b, y: d }, t.wrapper), T = new w.Raycaster();
2528
2528
  T.setFromCamera(v, t.camera);
2529
2529
  var A = T.intersectObjects(t.faces.children, !1)[0];
2530
2530
  if (A) {
2531
- var O = A.object.userData, M = O.longitude, C = O.latitude;
2532
- t.orient({ longitude: M, latitude: C });
2531
+ var P = A.object.userData, O = P.longitude, C = P.latitude;
2532
+ t.orient({ longitude: O, latitude: C });
2533
2533
  }
2534
2534
  }, t.onFiveWantsGesture = function() {
2535
2535
  if (t.spherical)
@@ -2537,17 +2537,17 @@ var He = function(f) {
2537
2537
  }, t.onFiveModeChange = function(l) {
2538
2538
  t.controls && (t.controls.maxPolarAngle = l === "Topview" ? 0 : J);
2539
2539
  }, t.onCameraUpdate = function(l) {
2540
- var g = l.state;
2540
+ var b = l.state;
2541
2541
  if (!t.dragging && !t.spherical) {
2542
- var d = g.longitude, v = g.latitude;
2542
+ var d = b.longitude, v = b.latitude;
2543
2543
  t.camera.pose.longitude === d && t.camera.pose.latitude === v || (t.camera.setFromPose({ longitude: d, latitude: v, distance: 20, offset: new w.Vector3(0, 0, 0) }), t.updateByCamera(), t.updateArrows({ longitude: d, latitude: v }));
2544
2544
  }
2545
2545
  }, t.onPanStart = function(l) {
2546
2546
  t.dragging = !0, t.spherical = {};
2547
2547
  }, t.onMouseMove = function(l) {
2548
2548
  if (!t.dragging) {
2549
- var g = jt({ x: l.clientX, y: l.clientY }, t.wrapper), d = new w.Raycaster();
2550
- d.setFromCamera(g, t.camera);
2549
+ var b = jt({ x: l.clientX, y: l.clientY }, t.wrapper), d = new w.Raycaster();
2550
+ d.setFromCamera(b, t.camera);
2551
2551
  var v = d.intersectObjects(t.faces.children, !1)[0];
2552
2552
  t.faces.children.forEach(function(T) {
2553
2553
  T.material.opacity = 0, T.children[0].element.style.color = "";
@@ -2775,8 +2775,8 @@ var He = function(f) {
2775
2775
  });
2776
2776
  this.cylinder.geometry = new w.CylinderGeometry(a, t, 0.01, 50, 1, !0), this.cylinder.material.uniforms.radiusTop.value = a, this.cylinder.material.uniforms.radiusBottom.value = t, this.cylinder.material.needsUpdate = !0, this.cylinder.children.forEach(function(l) {
2777
2777
  l.position.normalize().multiplyScalar(s), l.scale.set(e, e, e);
2778
- var g = l.children[0];
2779
- g && (g.element.style.opacity = u.toString());
2778
+ var b = l.children[0];
2779
+ b && (b.element.style.opacity = u.toString());
2780
2780
  });
2781
2781
  }, o.prototype.updateArrows = function(e) {
2782
2782
  e.longitude;
@@ -2837,8 +2837,8 @@ var He = function(f) {
2837
2837
  u.rotateY(J), u.position.x = 4.1, u.add(He("右")), u.userData = { longitude: J, latitude: 0 };
2838
2838
  var l = new w.Mesh(a, new w.MeshBasicMaterial({ transparent: !0, color: 3370495, opacity: 0 }));
2839
2839
  l.rotateY(-J), l.position.x = -4.1, l.add(He("左")), l.userData = { longitude: -J, latitude: 0 };
2840
- var g = new w.Mesh(a, new w.MeshBasicMaterial({ transparent: !0, color: 3370495, opacity: 0 }));
2841
- g.rotateX(-J), g.position.y = 4.1, g.add(He("上")), g.userData = { longitude: 0, latitude: J }, this.faces.add(t, s, l, u, g);
2840
+ var b = new w.Mesh(a, new w.MeshBasicMaterial({ transparent: !0, color: 3370495, opacity: 0 }));
2841
+ b.rotateX(-J), b.position.y = 4.1, b.add(He("上")), b.userData = { longitude: 0, latitude: J }, this.faces.add(t, s, l, u, b);
2842
2842
  }, o.prototype.initControls = function() {
2843
2843
  var e = this.controls = new We(this.camera, this.renderer.domElement);
2844
2844
  e.enableZoom = !1, e.enableDamping = !0, e.enablePan = !1, e.maxPolarAngle = J, e.dampingFactor = 0.15, e.rotateSpeed = 0.25;
@@ -2905,8 +2905,8 @@ var He = function(f) {
2905
2905
  }
2906
2906
  t.state.enabled || (t._onFiveCameraUpdate(t.five.getPose(), !1), t.gradientBg && u.appendChild(t.gradientBg), t.groundBg && u.appendChild(t.groundBg), t.style && document.head.appendChild(t.style), t._addEventListener(), t.hooks.emit("enable", { userAction: !0 }), t.state.enabled = !0);
2907
2907
  }, t.disable = function(s) {
2908
- var u, l, g, d;
2909
- t.state.enabled && ((l = (u = t.gradientBg) === null || u === void 0 ? void 0 : u.parentNode) === null || l === void 0 || l.removeChild(t.gradientBg), (d = (g = t.groundBg) === null || g === void 0 ? void 0 : g.parentNode) === null || d === void 0 || d.removeChild(t.groundBg), t.style && document.head.removeChild(t.style), t._removeEventListener(), t.hooks.emit("disable", { userAction: !0 }), t.state.enabled = !1);
2908
+ var u, l, b, d;
2909
+ t.state.enabled && ((l = (u = t.gradientBg) === null || u === void 0 ? void 0 : u.parentNode) === null || l === void 0 || l.removeChild(t.gradientBg), (d = (b = t.groundBg) === null || b === void 0 ? void 0 : b.parentNode) === null || d === void 0 || d.removeChild(t.groundBg), t.style && document.head.removeChild(t.style), t._removeEventListener(), t.hooks.emit("disable", { userAction: !0 }), t.state.enabled = !1);
2910
2910
  }, t.dispose = function() {
2911
2911
  t._removeEventListener(), t.hooks.emit("disable", { userAction: !0 }), t.state.enabled = !1;
2912
2912
  }, t.state = {
@@ -3022,19 +3022,25 @@ var wt = (
3022
3022
  });
3023
3023
  }, o.prototype.loadTrajectory = function(e) {
3024
3024
  this.trajectory = e, this.cancelAnimation && this.cancelAnimation(), this.playingState.keyframeIndex = null, this.playingState.progress = null;
3025
- var a = 0.01, t = 0.1, s = 1, u = 0, l = 1, g = new wt(a, t, s, u, l), d = new wt(a, t, s, u, l), v = new wt(a, t, s, u, l);
3025
+ var a = 0.01, t = 0.1, s = 1, u = 0, l = 1, b = new wt(a, t, s, u, l), d = new wt(a, t, s, u, l), v = new wt(a, t, s, u, l);
3026
3026
  if (this.trajectory && this.trajectory.content.loadState === "READY") {
3027
- var T = this.trajectory.content.data.object.line.geometry.attributes.position, A = this.trajectory.content.data.object.line.geometry.attributes.lineDistance;
3028
- this.totalDistance = A.array[A.array.length - 1];
3029
- for (var O = 0; O < A.array.length; O++) {
3030
- for (var M = new w.Vector3(0, 0, 0), C = 0, I = O - 5; I < O + 6; I++)
3031
- I >= 0 && I < A.array.length && (M.add(new w.Vector3(T.array[I * 3], T.array[I * 3 + 1], T.array[I * 3 + 2])), C++);
3032
- M.divideScalar(C).applyMatrix4(e.transform);
3033
- var y = g.filter(M.x), b = d.filter(M.y), P = v.filter(M.z), p = {
3034
- position: new w.Vector3(y, b, P),
3035
- location: A.array[O]
3027
+ for (var T = this.trajectory.content.data.positionArray, A = new Float32Array(T.length / 3), P = 0; P < A.length; P++)
3028
+ if (P === 0)
3029
+ A[P] = 0;
3030
+ else {
3031
+ var O = new w.Vector3(T[P - 3], T[P - 2], T[P - 1]), C = new w.Vector3(T[P], T[P + 1], T[P + 2]);
3032
+ A[P] = C.distanceTo(O) + A[P - 1];
3033
+ }
3034
+ this.totalDistance = A[A.length - 1];
3035
+ for (var P = 0; P < A.length; P++) {
3036
+ for (var L = new w.Vector3(0, 0, 0), y = 0, g = P - 5; g < P + 6; g++)
3037
+ g >= 0 && g < A.length && (L.add(new w.Vector3(T[g * 3], T[g * 3 + 1], T[g * 3 + 2])), y++);
3038
+ L.divideScalar(y).applyMatrix4(e.transform);
3039
+ var x = b.filter(L.x), p = d.filter(L.y), S = v.filter(L.z), M = {
3040
+ position: new w.Vector3(x, p, S),
3041
+ location: A[P]
3036
3042
  };
3037
- this.keyframes.push(p);
3043
+ this.keyframes.push(M);
3038
3044
  }
3039
3045
  } else
3040
3046
  throw new Error("trajectory content is not ready");
@@ -3051,20 +3057,20 @@ var wt = (
3051
3057
  };
3052
3058
  this.playingState.keyframeIndex !== null && this.playingState.progress !== null ? (t.keyframeIndex = this.playingState.keyframeIndex, t.progress = this.playingState.progress) : this.playingState.keyframeIndex === null && this.playingState.progress === null && (this.playingState.keyframeIndex = this.skipStart, this.playingState.progress = 0, this.virualCamera.position.copy(this.keyframes[this.playingState.keyframeIndex].position.clone()), this.virualCamera.lookAt(this.keyframes[1].position.clone()), this.virualCamera.computePose(), this.five.setState(q({}, this.virualCamera.pose)));
3053
3059
  var s = this.playingState.keyframeIndex, u = 0;
3054
- this.cancelAnimation = Ht.shared.add(function(l, g) {
3060
+ this.cancelAnimation = Ht.shared.add(function(l, b) {
3055
3061
  if (s === a - 1 - e.skipEnd && e.cancelAnimation) {
3056
3062
  e.cancelAnimation();
3057
3063
  return;
3058
3064
  }
3059
3065
  e.currentKeyFrame = e.keyframes[s], e.nextKeyframe = e.keyframes[s + 1], s + 2 <= a - 1 ? e.nextButOneKeyframe = e.keyframes[s + 2] : e.nextButOneKeyframe = null;
3060
- var d = e.currentKeyFrame.position.clone(), v = e.nextKeyframe.position.clone(), T = e.nextKeyframe.position.clone().sub(e.currentKeyFrame.position.clone()).normalize(), A = d.clone().add(T.clone().multiplyScalar(0.01)), O = new w.Vector3();
3061
- e.nextButOneKeyframe !== null ? O = e.nextButOneKeyframe.position.clone().sub(e.nextKeyframe.position.clone()).normalize() : O.copy(T);
3062
- var M = v.clone().add(O.clone().multiplyScalar(0.01));
3063
- u += g / 1e3 * e.rate;
3066
+ var d = e.currentKeyFrame.position.clone(), v = e.nextKeyframe.position.clone(), T = e.nextKeyframe.position.clone().sub(e.currentKeyFrame.position.clone()).normalize(), A = d.clone().add(T.clone().multiplyScalar(0.01)), P = new w.Vector3();
3067
+ e.nextButOneKeyframe !== null ? P = e.nextButOneKeyframe.position.clone().sub(e.nextKeyframe.position.clone()).normalize() : P.copy(T);
3068
+ var O = v.clone().add(P.clone().multiplyScalar(0.01));
3069
+ u += b / 1e3 * e.rate;
3064
3070
  var C = u / d.distanceTo(v);
3065
3071
  C = C >= 1 ? 1 : C, t.keyframeIndex !== null && t.progress !== null && (C = t.progress, t.keyframeIndex = null, t.progress = null);
3066
- var I = d.clone().lerp(v, C), y = A.clone().lerp(M, C);
3067
- e.virualCamera.position.copy(I), e.virualCamera.lookAt(y), e.virualCamera.updateMatrixWorld(), e.virualCamera.updateMatrix(), e.virualCamera.computePose(), e.five.setState(q({}, e.virualCamera.pose)), e.location = e.keyframes[s].location + d.clone().distanceTo(I), C === 1 ? (u = 0, s++, e.playingState.keyframeIndex = s, e.playingState.progress = 0) : (e.playingState.keyframeIndex = s, e.playingState.progress = C);
3072
+ var L = d.clone().lerp(v, C), y = A.clone().lerp(O, C);
3073
+ e.virualCamera.position.copy(L), e.virualCamera.lookAt(y), e.virualCamera.updateMatrixWorld(), e.virualCamera.updateMatrix(), e.virualCamera.computePose(), e.five.setState(q({}, e.virualCamera.pose)), e.location = e.keyframes[s].location + d.clone().distanceTo(L), C === 1 ? (u = 0, s++, e.playingState.keyframeIndex = s, e.playingState.progress = 0) : (e.playingState.keyframeIndex = s, e.playingState.progress = C);
3068
3074
  });
3069
3075
  }, o.prototype.pause = function() {
3070
3076
  this.cancelAnimation && this.cancelAnimation();