@realsee/five 6.7.0-alpha.20 → 6.7.0-alpha.22

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 (145) hide show
  1. package/docs/assets/hierarchy.js +1 -1
  2. package/docs/assets/navigation.js +1 -1
  3. package/docs/assets/search.js +1 -1
  4. package/docs/classes/five.AnimationFrameLoop.html +4 -4
  5. package/docs/classes/five.BoundingMesh.html +1 -1
  6. package/docs/classes/five.Five.html +1 -1
  7. package/docs/classes/five.FivePass.html +1 -1
  8. package/docs/classes/five.Model.html +1 -1
  9. package/docs/classes/five.ModelScene.html +1 -1
  10. package/docs/classes/five.PBMContainer.html +1 -1
  11. package/docs/classes/five.PBMGroup.html +1 -1
  12. package/docs/classes/five.PBMMesh.html +1 -1
  13. package/docs/classes/five.PBMMeshMaterial.html +1 -1
  14. package/docs/classes/five.PBMPointCloud.html +1 -1
  15. package/docs/classes/five.PBMPointCloudMaterial.html +1 -1
  16. package/docs/classes/five.PBMSkinnedMesh.html +1 -1
  17. package/docs/classes/five.PanoCircleMesh.html +1 -1
  18. package/docs/classes/five.PanoCircleMeshCustom.html +1 -1
  19. package/docs/classes/five.PanoCircleMeshSolid.html +1 -1
  20. package/docs/classes/five.Parameter.html +7 -8
  21. package/docs/classes/five.Pass.html +1 -1
  22. package/docs/classes/five.Tile3D.html +21 -21
  23. package/docs/classes/five.TileNode.html +1 -1
  24. package/docs/classes/five.Tileset.html +4 -4
  25. package/docs/classes/five.TrajectoryNode.html +1 -1
  26. package/docs/classes/five.WorkResolvedObserver.html +1 -1
  27. package/docs/classes/gltf-loader.DDSLoader.html +1 -1
  28. package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
  29. package/docs/classes/gltf-loader.GLTFObject.html +1 -1
  30. package/docs/classes/gltf-loader.THREEGLTFLoader.html +1 -1
  31. package/docs/classes/line.LineGeometry.html +1 -1
  32. package/docs/classes/line.LineMaterial.html +1 -1
  33. package/docs/classes/line.LineSegmentsGeometry.html +1 -1
  34. package/docs/classes/line.THREE_Line2.html +1 -1
  35. package/docs/classes/line.THREE_LineSegments2.html +1 -1
  36. package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
  37. package/docs/classes/vfx.Airflow.html +1 -1
  38. package/docs/classes/vfx.Flame.html +1 -1
  39. package/docs/classes/vfx.Particle.html +1 -1
  40. package/docs/classes/vfx.ParticleGPU.html +1 -1
  41. package/docs/classes/vfx.SpotLight.html +1 -1
  42. package/docs/hierarchy.html +1 -1
  43. package/docs/interfaces/five.AddableObject.html +1 -1
  44. package/docs/interfaces/five.AnimationFrame.html +3 -2
  45. package/docs/interfaces/five.AnimationFrameContext.html +2 -2
  46. package/docs/interfaces/five.BaseEvent.html +1 -1
  47. package/docs/interfaces/five.EventCallback.html +1 -1
  48. package/docs/interfaces/five.GestureEvent.html +1 -1
  49. package/docs/interfaces/five.ImageOptions.html +1 -1
  50. package/docs/interfaces/five.IntersectEvent.html +1 -1
  51. package/docs/interfaces/five.IntersectMesh.html +1 -1
  52. package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
  53. package/docs/interfaces/five.Intersection.html +1 -1
  54. package/docs/interfaces/five.LooseWorkWithExtrinsics.html +1 -1
  55. package/docs/interfaces/five.ModeChangeEvent.html +1 -1
  56. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
  57. package/docs/interfaces/five.ModelEvent.html +1 -1
  58. package/docs/interfaces/five.ModelSceneEvent.html +1 -1
  59. package/docs/interfaces/five.MovePanoOptions.html +1 -1
  60. package/docs/interfaces/five.NetworkResourceEvent.html +1 -1
  61. package/docs/interfaces/five.ObjectEvent.html +1 -1
  62. package/docs/interfaces/five.PBMMaterial.html +1 -1
  63. package/docs/interfaces/five.PBMMeshMaterialParameters.html +1 -1
  64. package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +1 -1
  65. package/docs/interfaces/five.PanoCircleMeshInterface.html +1 -1
  66. package/docs/interfaces/five.PanoEvent.html +1 -1
  67. package/docs/interfaces/five.PanoTextureEvent.html +1 -1
  68. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
  69. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
  70. package/docs/interfaces/five.ParameterMaterialValue.html +1 -1
  71. package/docs/interfaces/five.ParameterTilesetValue.html +4 -5
  72. package/docs/interfaces/five.ParameterValue.html +4 -5
  73. package/docs/interfaces/five.Pose.html +1 -1
  74. package/docs/interfaces/five.RenderEvent.html +1 -1
  75. package/docs/interfaces/five.ResolvedParameterValue.html +5 -6
  76. package/docs/interfaces/five.State.html +1 -1
  77. package/docs/interfaces/five.StateEvent.html +1 -1
  78. package/docs/interfaces/five.TextureOptions.html +1 -1
  79. package/docs/interfaces/five.TilesetOptions.html +2 -2
  80. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +1 -1
  81. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
  82. package/docs/interfaces/five.ViewLayer.html +21 -21
  83. package/docs/interfaces/five.WorkCubeImage.html +1 -1
  84. package/docs/interfaces/five.WorkImage.html +1 -1
  85. package/docs/interfaces/five.WorkObserver.html +1 -1
  86. package/docs/interfaces/five.WorkTile.html +1 -1
  87. package/docs/interfaces/five.WorksEvent.html +1 -1
  88. package/docs/interfaces/five.XRControllerEvent.html +1 -1
  89. package/docs/interfaces/five.XRGestureEvent.html +1 -1
  90. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
  91. package/docs/interfaces/five.XRSessionEvent.html +1 -1
  92. package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
  93. package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
  94. package/docs/interfaces/plugins.DynamicPathLinePluginController.html +1 -1
  95. package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
  96. package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +1 -1
  97. package/docs/interfaces/plugins.ItemMaskController.html +1 -1
  98. package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
  99. package/docs/interfaces/plugins.ItemMaskPluginType.State.html +1 -1
  100. package/docs/interfaces/plugins.OrientationPluginController.html +1 -1
  101. package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
  102. package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
  103. package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
  104. package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
  105. package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
  106. package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
  107. package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
  108. package/docs/interfaces/plugins.TrajectoryController.html +1 -1
  109. package/docs/interfaces/react.FiveInjectionTypes.html +1 -1
  110. package/docs/modules/five.html +1 -1
  111. package/docs/types/five.AnimationFrameLoopType.html +1 -1
  112. package/docs/types/five.ParseOptions.html +1 -1
  113. package/docs/types/five.RequestAnimationFrameArgs.html +1 -0
  114. package/docs/types/five.TilesetFrameState.html +2 -3
  115. package/five/index.d.ts +12 -7
  116. package/five/index.js +21 -21
  117. package/five/index.mjs +398 -404
  118. package/gltf-loader/index.js +3 -3
  119. package/gltf-loader/index.mjs +3 -3
  120. package/line/index.js +3 -3
  121. package/line/index.mjs +3 -3
  122. package/package.json +1 -1
  123. package/plugins/index.js +2 -2
  124. package/plugins/index.mjs +2 -2
  125. package/react/index.js +2 -2
  126. package/react/index.mjs +2 -2
  127. package/shader-lib/index.js +2 -2
  128. package/shader-lib/index.mjs +2 -2
  129. package/sticker/index.js +3 -3
  130. package/sticker/index.mjs +3 -3
  131. package/umd/five-gltf-loader.js +3 -3
  132. package/umd/five-line.js +3 -3
  133. package/umd/five-plugins.js +2 -2
  134. package/umd/five-react.js +2 -2
  135. package/umd/five-shader-lib.js +2 -2
  136. package/umd/five-sticker.js +3 -3
  137. package/umd/five-vfx.js +2 -2
  138. package/umd/five-vue.js +2 -2
  139. package/umd/five.js +21 -21
  140. package/vfx/index.js +2 -2
  141. package/vfx/index.mjs +2 -2
  142. package/vue/index.js +2 -2
  143. package/vue/index.mjs +2 -2
  144. package/work-downloader/index.js +2 -2
  145. package/work-downloader/index.mjs +2 -2
package/five/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 11/28/2025
5
- * Version: 6.7.0-alpha.20
4
+ * Generated: 12/1/2025
5
+ * Version: 6.7.0-alpha.22
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -758,7 +758,7 @@ CryptoJS.lib.Cipher || (function(n) {
758
758
  M[w + 1] = M[w + 3], M[w + 3] = P, this._doCryptBlock(M, w, this._invKeySchedule, c, f, d, h, r), P = M[w + 1], M[w + 1] = M[w + 3], M[w + 3] = P;
759
759
  },
760
760
  _doCryptBlock: function(M, w, P, O, C, I, H, F) {
761
- for (var L = this._nRounds, q = M[w] ^ P[0], j = M[w + 1] ^ P[1], G = M[w + 2] ^ P[2], Q = M[w + 3] ^ P[3], k = 4, D = 1; D < L; D++)
761
+ for (var N = this._nRounds, q = M[w] ^ P[0], j = M[w + 1] ^ P[1], G = M[w + 2] ^ P[2], Q = M[w + 3] ^ P[3], k = 4, D = 1; D < N; D++)
762
762
  var U = O[q >>> 24] ^ C[j >>> 16 & 255] ^ I[G >>> 8 & 255] ^ H[Q & 255] ^ P[k++], z = O[j >>> 24] ^ C[G >>> 16 & 255] ^ I[Q >>> 8 & 255] ^ H[q & 255] ^ P[k++], J = O[G >>> 24] ^ C[Q >>> 16 & 255] ^ I[q >>> 8 & 255] ^ H[j & 255] ^ P[k++], Q = O[Q >>> 24] ^ C[q >>> 16 & 255] ^ I[j >>> 8 & 255] ^ H[G & 255] ^ P[k++], q = U, j = z, G = J;
763
763
  U = (F[q >>> 24] << 24 | F[j >>> 16 & 255] << 16 | F[G >>> 8 & 255] << 8 | F[Q & 255]) ^ P[k++], z = (F[j >>> 24] << 24 | F[G >>> 16 & 255] << 16 | F[Q >>> 8 & 255] << 8 | F[q & 255]) ^ P[k++], J = (F[G >>> 24] << 24 | F[Q >>> 16 & 255] << 16 | F[q >>> 8 & 255] << 8 | F[j & 255]) ^ P[k++], Q = (F[Q >>> 24] << 24 | F[q >>> 16 & 255] << 16 | F[j >>> 8 & 255] << 8 | F[G & 255]) ^ P[k++], M[w] = U, M[w + 1] = z, M[w + 2] = J, M[w + 3] = Q;
764
764
  },
@@ -2074,11 +2074,11 @@ KEYUTIL.getKey = function(n, t, e) {
2074
2074
  return F.readPKCS5PrvKeyHex(H), F;
2075
2075
  }
2076
2076
  if (n.indexOf("-END EC PRIVATE KEY-") != -1 && n.indexOf("4,ENCRYPTED") != -1) {
2077
- var M = h.getDecryptedKeyHex(n, t), p = s(M, 0, [1], "04"), L = s(M, 0, [2, 0], "06"), k = s(M, 0, [3, 0], "03").substr(2), D = "";
2078
- if (KJUR.crypto.OID.oidhex2name[L] !== void 0)
2079
- D = KJUR.crypto.OID.oidhex2name[L];
2077
+ var M = h.getDecryptedKeyHex(n, t), p = s(M, 0, [1], "04"), N = s(M, 0, [2, 0], "06"), k = s(M, 0, [3, 0], "03").substr(2), D = "";
2078
+ if (KJUR.crypto.OID.oidhex2name[N] !== void 0)
2079
+ D = KJUR.crypto.OID.oidhex2name[N];
2080
2080
  else
2081
- throw "undefined OID(hex) in KJUR.crypto.OID: " + L;
2081
+ throw "undefined OID(hex) in KJUR.crypto.OID: " + N;
2082
2082
  var m = new l({
2083
2083
  curve: D
2084
2084
  });
@@ -3265,8 +3265,8 @@ function X509(n) {
3265
3265
  S += " " + F.join(", ") + `
3266
3266
  `;
3267
3267
  } else if (O === "subjectAltName") {
3268
- var L = v(this.getExtSubjectAltName());
3269
- S += " " + L + `
3268
+ var N = v(this.getExtSubjectAltName());
3269
+ S += " " + N + `
3270
3270
  `;
3271
3271
  } else if (O === "cRLDistributionPoints") {
3272
3272
  var k = this.getExtCRLDistributionPoints();
@@ -3613,11 +3613,19 @@ function longitudeToHeading(n) {
3613
3613
  function headingToLongitude(n) {
3614
3614
  return -((n - 0.25) * 360 + 90) / 180 * Math.PI;
3615
3615
  }
3616
- var start = typeof performance != "undefined" && typeof performance.timing != "undefined" ? performance.timing.navigationStart : Date.now(), now = typeof performance != "undefined" ? (function() {
3616
+ var start = Date.now();
3617
+ typeof performance != "undefined" && (typeof performance.timeOrigin == "number" ? start = performance.timeOrigin : typeof performance.timing != "undefined" && (start = performance.timing.navigationStart));
3618
+ var now = typeof performance != "undefined" ? (function() {
3617
3619
  return start + performance.now();
3618
3620
  }) : (function() {
3619
3621
  return Date.now();
3620
3622
  });
3623
+ function domHighResTimeStampToDateNow(n) {
3624
+ return start + n;
3625
+ }
3626
+ function dateNowToDomHighResTimeStamp(n) {
3627
+ return n - start;
3628
+ }
3621
3629
  function clamp$1(n, t, e) {
3622
3630
  return n < t ? t : typeof e == "number" && n > e ? e : n;
3623
3631
  }
@@ -3907,11 +3915,11 @@ var PBMCustomShader = (
3907
3915
  for (var I = r.customShaders.filter(function(q) {
3908
3916
  return q.type.includes(S);
3909
3917
  }), H = 0, F = I; H < F.length; H++) {
3910
- var L = F[H];
3911
- for (var k in L.defines)
3912
- k in u || Object.assign(u, (b = {}, b[k] = L.defines[k], b));
3913
- for (var D in L.uniforms)
3914
- D in l || Object.assign(l, (T = {}, T[D] = L.uniforms[D], T));
3918
+ var N = F[H];
3919
+ for (var k in N.defines)
3920
+ k in u || Object.assign(u, (b = {}, b[k] = N.defines[k], b));
3921
+ for (var D in N.uniforms)
3922
+ D in l || Object.assign(l, (T = {}, T[D] = N.uniforms[D], T));
3915
3923
  }
3916
3924
  v.vertexShader = v.vertexShader.replace(/MAIN_BEFORE/g, I.map(function(q) {
3917
3925
  return q.vertex.mainBefore;
@@ -4744,7 +4752,6 @@ var parameterValueEqualFn = {
4744
4752
  maxRequests: valueEqual,
4745
4753
  requestOrder: valueEqual,
4746
4754
  maxScreenSpaceError: valueEqual,
4747
- memoryAdjustedOverflow: valueEqual,
4748
4755
  memoryAdjustedScreenSpaceError: valueEqual,
4749
4756
  cacheCameras: arrayValueEqual
4750
4757
  }, defaultGradientTexture = (function() {
@@ -4802,7 +4809,6 @@ function createUndefindValue() {
4802
4809
  maxRequests: void 0,
4803
4810
  requestOrder: void 0,
4804
4811
  maxScreenSpaceError: void 0,
4805
- memoryAdjustedOverflow: void 0,
4806
4812
  memoryAdjustedScreenSpaceError: void 0,
4807
4813
  cacheCameras: void 0
4808
4814
  };
@@ -4859,8 +4865,6 @@ function createDefaultValue() {
4859
4865
  maxRequests: 6,
4860
4866
  requestOrder: "SCREEN_SPACE_ERROR",
4861
4867
  maxScreenSpaceError: 4,
4862
- memoryAdjustedOverflow: 4,
4863
- // MB
4864
4868
  memoryAdjustedScreenSpaceError: !1,
4865
4869
  cacheCameras: defineCacheCameras
4866
4870
  };
@@ -5205,11 +5209,11 @@ function ajax(n, t, e, r, o) {
5205
5209
  r(H), f(H), (P = t.networkSubscribe) === null || P === void 0 || P.emit("network", l, "XMLHttpRequest", "error", H.message);
5206
5210
  return;
5207
5211
  }
5208
- var F = w.split(","), L = (F[0].match(/:(.*?);/) || [])[1], k = F[1];
5212
+ var F = w.split(","), N = (F[0].match(/:(.*?);/) || [])[1], k = F[1];
5209
5213
  if (t.responseType === "arraybuffer" || t.responseType === "blob") {
5210
5214
  for (var D = atob(F[1]), U = D.length, z = new Uint8Array(U), J = 0; J < U; J++)
5211
5215
  z[J] = D.charCodeAt(J);
5212
- t.responseType === "arraybuffer" ? k = z.buffer : k = new Blob([z], { type: L });
5216
+ t.responseType === "arraybuffer" ? k = z.buffer : k = new Blob([z], { type: N });
5213
5217
  }
5214
5218
  var Q = {}, q = {
5215
5219
  body: k,
@@ -5237,11 +5241,11 @@ function ajax(n, t, e, r, o) {
5237
5241
  var O = this.status;
5238
5242
  if (O === 0 || O >= 200 && O < 400) {
5239
5243
  v = !0, b();
5240
- var C = now(), I = C - s, H = parseHeaders(this.getAllResponseHeaders()), F = w.total, L = {
5244
+ var C = now(), I = C - s, H = parseHeaders(this.getAllResponseHeaders()), F = w.total, N = {
5241
5245
  body: this.response,
5242
5246
  meta: { origin: u, source: l, requestTime: s, responseTime: C, costs: I, headers: H, size: F }
5243
5247
  };
5244
- e(L), c(L), (P = t.networkSubscribe) === null || P === void 0 || P.emit("network", l, "XMLHttpRequest", "ok", JSON.stringify(L.meta));
5248
+ e(N), c(N), (P = t.networkSubscribe) === null || P === void 0 || P.emit("network", l, "XMLHttpRequest", "ok", JSON.stringify(N.meta));
5245
5249
  } else
5246
5250
  M.call(this);
5247
5251
  }
@@ -5814,7 +5818,7 @@ var windowSTOContext = (function() {
5814
5818
  return {
5815
5819
  requestAnimationFrame: function(t) {
5816
5820
  var e = now(), r = clamp$1(16 + (e - n), 16, 33), o = setTimeout(function() {
5817
- t(e + r);
5821
+ t(dateNowToDomHighResTimeStamp(e + r));
5818
5822
  }, r);
5819
5823
  return n = e + r, o;
5820
5824
  },
@@ -5822,62 +5826,48 @@ var windowSTOContext = (function() {
5822
5826
  return clearTimeout(t);
5823
5827
  }
5824
5828
  };
5825
- })(), windowRAFContext = (function() {
5826
- if (typeof window != "undefined") {
5827
- var n = window;
5828
- if (n.requestAnimationFrame)
5829
- return {
5830
- requestAnimationFrame: n.requestAnimationFrame.bind(n),
5831
- cancelAnimationFrame: n.cancelAnimationFrame.bind(n)
5832
- };
5833
- if (n.mozRequestAnimationFrame)
5834
- return {
5835
- requestAnimationFrame: n.mozRequestAnimationFrame.bind(n),
5836
- cancelAnimationFrame: n.mozCancelAnimationFrame.bind(n)
5837
- };
5838
- if (n.webkitRequestAnimationFrame)
5839
- return {
5840
- requestAnimationFrame: n.webkitRequestAnimationFrame.bind(n),
5841
- cancelAnimationFrame: n.webkitCancelAnimationFrame.bind(n)
5842
- };
5843
- if (n.msRequestAnimationFrame)
5844
- return {
5845
- requestAnimationFrame: n.msRequestAnimationFrame.bind(n),
5846
- cancelAnimationFrame: n.msCancelAnimationFrame.bind(n)
5847
- };
5848
- }
5849
- return windowSTOContext;
5829
+ })(), windowRAFContext = /* @__PURE__ */ (function() {
5830
+ return typeof requestAnimationFrame == "function" && typeof cancelAnimationFrame == "function" ? {
5831
+ requestAnimationFrame: function(n) {
5832
+ return requestAnimationFrame(n);
5833
+ },
5834
+ cancelAnimationFrame: function(n) {
5835
+ return cancelAnimationFrame(n);
5836
+ }
5837
+ } : windowSTOContext;
5850
5838
  })(), DEFAULT_ORDER = 5, deviceFrameTime = 16, AnimationFrameLoop = (
5851
5839
  /** @class */
5852
5840
  (function() {
5853
5841
  function n() {
5842
+ var t = this;
5854
5843
  this.loopType = "raf", this.frames = [], this.isAnimating = !1, this.context = null;
5855
- var t = now();
5856
- this.loop = (function() {
5857
- for (var e = [], r = 0; r < arguments.length; r++)
5858
- e[r] = arguments[r];
5859
- if (this.isAnimating !== !1) {
5860
- var o = now(), s = o - t;
5861
- t = o, deviceFrameTime = s;
5862
- for (var u = this.frames.slice(), l = 0; l < u.length; l++) {
5863
- var c = u[l];
5864
- if (c.delay > 0) {
5865
- c.delay = c.delay - 1;
5844
+ var e = now();
5845
+ this.loop = function() {
5846
+ for (var r = [], o = 0; o < arguments.length; o++)
5847
+ r[o] = arguments[o];
5848
+ if (t.isAnimating !== !1) {
5849
+ var s = r[0], u = typeof s == "number" ? domHighResTimeStampToDateNow(s) : now(), l = u - e;
5850
+ e = u, deviceFrameTime = l;
5851
+ for (var c = t.frames.slice(), f = 0; f < c.length; f++) {
5852
+ var d = c[f];
5853
+ if (d.delay > 0) {
5854
+ d.delay = d.delay - 1;
5866
5855
  continue;
5867
5856
  }
5868
5857
  try {
5869
- c.callback.apply(c, __spreadArray([o, s], e, !1));
5870
- } catch (d) {
5871
- console.error(d);
5872
- }
5873
- if (c.once) {
5874
- var f = this.frames.indexOf(c);
5875
- this.frames.splice(f, 1);
5858
+ d.callback.apply(d, __spreadArray([u, l], r, !1));
5859
+ } catch (h) {
5860
+ console.error(h);
5876
5861
  }
5862
+ d.calls++;
5863
+ }
5864
+ for (var f = t.frames.length - 1; f >= 0; f--) {
5865
+ var d = t.frames[f];
5866
+ d.once && d.calls > 0 && t.frames.splice(f, 1);
5877
5867
  }
5878
- this.requestId = this.requestAnimationFrame(this.loop);
5868
+ t.requestId = t.requestAnimationFrame(t.loop);
5879
5869
  }
5880
- }).bind(this), this.start();
5870
+ }, this.start();
5881
5871
  }
5882
5872
  return Object.defineProperty(n, "shared", {
5883
5873
  get: function() {
@@ -5900,26 +5890,19 @@ var windowSTOContext = (function() {
5900
5890
  }, n.prototype.getLoopType = function() {
5901
5891
  return this.loopType;
5902
5892
  }, n.prototype.requestAnimationFrame = function(t) {
5903
- if (this.context)
5904
- return this.context.requestAnimationFrame(t);
5905
- if (this.loopType === "raf")
5906
- return windowRAFContext.requestAnimationFrame(t);
5907
- if (this.loopType === "sto")
5908
- return windowSTOContext.requestAnimationFrame(t);
5893
+ var e;
5894
+ if (this.context ? e = this.context : this.loopType === "raf" ? e = windowRAFContext : this.loopType === "sto" && (e = windowSTOContext), e)
5895
+ return e.requestAnimationFrame(t);
5909
5896
  }, n.prototype.cancelAnimationFrame = function(t) {
5910
- if (this.context)
5911
- this.context.cancelAnimationFrame(t);
5912
- else if (this.loopType === "raf")
5913
- windowRAFContext.cancelAnimationFrame(t);
5914
- else if (this.loopType === "sto")
5915
- return windowSTOContext.cancelAnimationFrame(t);
5897
+ var e;
5898
+ this.context ? e = this.context : this.loopType === "raf" ? e = windowRAFContext : this.loopType === "sto" && (e = windowSTOContext), e && e.cancelAnimationFrame(t);
5916
5899
  }, n.prototype.remove = function(t) {
5917
5900
  var e = this.frames.indexOf(t);
5918
5901
  e >= 0 && this.frames.splice(e, 1);
5919
5902
  }, n.prototype.add = function(t, e, r, o) {
5920
5903
  var s = this;
5921
5904
  e === void 0 && (e = !1), r === void 0 && (r = 0), o === void 0 && (o = DEFAULT_ORDER);
5922
- for (var u = { callback: t, once: e, delay: r, order: o }, l = this.frames.length; --l >= 0; )
5905
+ for (var u = { callback: t, once: e, delay: r, order: o, calls: 0 }, l = this.frames.length; --l >= 0; )
5923
5906
  if (this.frames[l].order <= o) {
5924
5907
  this.frames.splice(l + 1, 0, u);
5925
5908
  break;
@@ -6068,8 +6051,8 @@ var FACE_ORDER$2 = ["right", "left", "up", "down", "front", "back"], TextureLoad
6068
6051
  t[FACE_ORDER$2[5]]
6069
6052
  ], y = [], v = [0, 0, 0, 0, 0, 0], E = [], b = function(S) {
6070
6053
  var R = (h = (d = e.imageURL) === null || d === void 0 ? void 0 : d.options) !== null && h !== void 0 ? h : { key: "unknown" }, M = applyImageURLOptions(g[S], (p = e.imageURL) === null || p === void 0 ? void 0 : p.transform, __assign(__assign({}, R), { key: R.key + "." + FACE_ORDER$2[S] })), w = function(H) {
6071
- v[S] = H, s(v.reduce(function(F, L) {
6072
- return F + L;
6054
+ v[S] = H, s(v.reduce(function(F, N) {
6055
+ return F + N;
6073
6056
  }, 0) / 6);
6074
6057
  }, P = (m = e.viaAjax) !== null && m !== void 0 ? m : !1;
6075
6058
  if (P) {
@@ -7455,13 +7438,13 @@ function parsePBMModel(n) {
7455
7438
  S += h.faces.indices.length;
7456
7439
  }
7457
7440
  for (var M = new Float32Array(S * 3), w = new Float32Array(S * 2), P = new Float32Array(S * 3), O = c ? new Float32Array(S) : void 0, C = [], I = [1 / 0, 1 / 0, 1 / 0, -1 / 0, -1 / 0, -1 / 0], H = 0, F = 0; F < T.length; F++) {
7458
- for (var L = [1 / 0, 1 / 0, 1 / 0, -1 / 0, -1 / 0, -1 / 0], h = T[F], k = h.vertices.xyz, D = h.vertices.uvs, U = h.faces.indices, z = h.faces.normals, J = h.vertices.marks, Q = U.length, R = 0; R < Q; R++) {
7441
+ for (var N = [1 / 0, 1 / 0, 1 / 0, -1 / 0, -1 / 0, -1 / 0], h = T[F], k = h.vertices.xyz, D = h.vertices.uvs, U = h.faces.indices, z = h.faces.normals, J = h.vertices.marks, Q = U.length, R = 0; R < Q; R++) {
7459
7442
  var q = U[R], j = M[H * 3 + R * 3] = k[q * 3], G = M[H * 3 + R * 3 + 1] = k[q * 3 + 1], oe = M[H * 3 + R * 3 + 2] = k[q * 3 + 2];
7460
7443
  O && (O[H + R] = J[q]), w[H * 2 + R * 2] = D[q * 2], w[H * 2 + R * 2 + 1] = D[q * 2 + 1];
7461
7444
  var ee = Math.floor(R / 3) * 3;
7462
- P[H * 3 + R * 3] = z[ee], P[H * 3 + R * 3 + 1] = z[ee + 1], P[H * 3 + R * 3 + 2] = z[ee + 2], j < L[0] && (L[0] = j), G < L[1] && (L[1] = G), oe < L[2] && (L[2] = oe), j > L[3] && (L[3] = j), G > L[4] && (L[4] = G), oe > L[5] && (L[5] = oe);
7445
+ P[H * 3 + R * 3] = z[ee], P[H * 3 + R * 3 + 1] = z[ee + 1], P[H * 3 + R * 3 + 2] = z[ee + 2], j < N[0] && (N[0] = j), G < N[1] && (N[1] = G), oe < N[2] && (N[2] = oe), j > N[3] && (N[3] = j), G > N[4] && (N[4] = G), oe > N[5] && (N[5] = oe);
7463
7446
  }
7464
- L[0] < I[0] && (I[0] = L[0]), L[1] < I[1] && (I[1] = L[1]), L[2] < I[2] && (I[2] = L[2]), L[3] > I[3] && (I[3] = L[3]), L[4] > I[4] && (I[4] = L[4]), L[5] > I[5] && (I[5] = L[5]), C.push({
7447
+ N[0] < I[0] && (I[0] = N[0]), N[1] < I[1] && (I[1] = N[1]), N[2] < I[2] && (I[2] = N[2]), N[3] > I[3] && (I[3] = N[3]), N[4] > I[4] && (I[4] = N[4]), N[5] > I[5] && (I[5] = N[5]), C.push({
7465
7448
  materialIndex: F,
7466
7449
  name: h.name,
7467
7450
  chunkName: parseChunkName(h.name),
@@ -7489,11 +7472,11 @@ function parsePBMModel(n) {
7489
7472
  $ += h.vertices.xyz.length / 3, S += h.faces.indices.length;
7490
7473
  }
7491
7474
  for (var M = new Float32Array($ * 3), w = new Float32Array($ * 2), P = void 0, X = new Float32Array($), ne = new Uint32Array(S), O = c ? new Float32Array(S) : void 0, C = [], I = [1 / 0, 1 / 0, 1 / 0, -1 / 0, -1 / 0, -1 / 0], W = 0, H = 0, F = 0; F < T.length; F++) {
7492
- for (var L = [1 / 0, 1 / 0, 1 / 0, -1 / 0, -1 / 0, -1 / 0], h = T[F], k = h.vertices.xyz, K = h.vertices.marks, D = h.vertices.uvs, U = h.faces.indices, re = k.length / 3, Q = U.length, R = 0; R < re; R++) {
7475
+ for (var N = [1 / 0, 1 / 0, 1 / 0, -1 / 0, -1 / 0, -1 / 0], h = T[F], k = h.vertices.xyz, K = h.vertices.marks, D = h.vertices.uvs, U = h.faces.indices, re = k.length / 3, Q = U.length, R = 0; R < re; R++) {
7493
7476
  var j = M[H * 3 + R * 3] = k[R * 3], G = M[H * 3 + R * 3 + 1] = k[R * 3 + 1], oe = M[H * 3 + R * 3 + 2] = k[R * 3 + 2];
7494
- O && (O[H + R] = K[R]), w[H * 2 + R * 2] = D[R * 2], w[H * 2 + R * 2 + 1] = D[R * 2 + 1], X[H + R] = b, j < L[0] && (L[0] = j), G < L[1] && (L[1] = G), oe < L[2] && (L[2] = oe), j > L[3] && (L[3] = j), G > L[4] && (L[4] = G), oe > L[5] && (L[5] = oe);
7477
+ O && (O[H + R] = K[R]), w[H * 2 + R * 2] = D[R * 2], w[H * 2 + R * 2 + 1] = D[R * 2 + 1], X[H + R] = b, j < N[0] && (N[0] = j), G < N[1] && (N[1] = G), oe < N[2] && (N[2] = oe), j > N[3] && (N[3] = j), G > N[4] && (N[4] = G), oe > N[5] && (N[5] = oe);
7495
7478
  }
7496
- L[0] < I[0] && (I[0] = L[0]), L[1] < I[1] && (I[1] = L[1]), L[2] < I[2] && (I[2] = L[2]), L[3] > I[3] && (I[3] = L[3]), L[4] > I[4] && (I[4] = L[4]), L[5] > I[5] && (I[5] = L[5]);
7479
+ N[0] < I[0] && (I[0] = N[0]), N[1] < I[1] && (I[1] = N[1]), N[2] < I[2] && (I[2] = N[2]), N[3] > I[3] && (I[3] = N[3]), N[4] > I[4] && (I[4] = N[4]), N[5] > I[5] && (I[5] = N[5]);
7497
7480
  for (var R = 0; R < Q; R++)
7498
7481
  ne[W + R] = H + U[R];
7499
7482
  C.push({
@@ -7547,22 +7530,22 @@ function parse$4(n, t, e, r, o, s, u) {
7547
7530
  var I = new THREE.BufferGeometry();
7548
7531
  I.setAttribute("position", new THREE.BufferAttribute(b, 3)), I.setAttribute("uv", new THREE.BufferAttribute(S, 2)), R && I.setAttribute("normal", new THREE.BufferAttribute(R, 3)), T && I.setAttribute("_feature_id_rsmask", new THREE.BufferAttribute(T, 1)), M && I.setIndex(new THREE.BufferAttribute(M, 1)), I.boundingBox = C, I.boundingSphere = C.getBoundingSphere(new THREE.Sphere());
7549
7532
  for (var H = 0, F = P; H < F.length; H++) {
7550
- var L = F[H];
7551
- I.addGroup(L.start, L.count, L.materialIndex);
7533
+ var N = F[H];
7534
+ I.addGroup(N.start, N.count, N.materialIndex);
7552
7535
  }
7553
7536
  p.add(I);
7554
7537
  for (var k = [], D = 0, U = P; D < U.length; D++) {
7555
- var L = U[D], z = void 0;
7556
- if (L.texture) {
7557
- if (z = L.texture, r.length > 0 && r.indexOf(L.texture) === -1) {
7538
+ var N = U[D], z = void 0;
7539
+ if (N.texture) {
7540
+ if (z = N.texture, r.length > 0 && r.indexOf(N.texture) === -1) {
7558
7541
  for (var J = 0, Q = r; J < Q.length; J++) {
7559
- var q = Q[J], j = isAbsoluteURL(q) ? q : pathJoin(e, q), G = j.slice(L.texture.length * -1) === L.texture;
7542
+ var q = Q[J], j = isAbsoluteURL(q) ? q : pathJoin(e, q), G = j.slice(N.texture.length * -1) === N.texture;
7560
7543
  if (G) {
7561
7544
  z = q;
7562
7545
  break;
7563
7546
  }
7564
7547
  }
7565
- console.warn("At3d/Pbm texture not matched. Use ends-guessing mode. ".concat(L.texture, " -> ").concat(z));
7548
+ console.warn("At3d/Pbm texture not matched. Use ends-guessing mode. ".concat(N.texture, " -> ").concat(z));
7566
7549
  }
7567
7550
  isAbsoluteURL(z) || (z = pathJoin(e, z));
7568
7551
  }
@@ -8568,7 +8551,7 @@ function parse$3(n, t, e, r, o) {
8568
8551
  var C = parseGeometry(T[O].geometry);
8569
8552
  C.applyMatrix4(d), d.decompose(h, p, m), m.x * m.y * m.z < 0 && C.attributes.normal && C.attributes.position && C.attributes.uv && flipBufferGeometryNormals(C), l.add(C);
8570
8553
  for (var I = [], H = 0, F = T[O].material; H < F.length; H++) {
8571
- var L = F[H], k = parseMaterial(L, t, e || "", r, f, o, A, l, g), D = k.material, U = k.textureReady;
8554
+ var N = F[H], k = parseMaterial(N, t, e || "", r, f, o, A, l, g), D = k.material, U = k.textureReady;
8572
8555
  u.push(U), I.push(D);
8573
8556
  }
8574
8557
  var z = new PBMMesh(C, I);
@@ -9024,8 +9007,8 @@ var Parser = (
9024
9007
  var te = new oe($[K] + "." + PATH_PROPERTIES[G.path], Q.array, X, Z);
9025
9008
  H.push(te);
9026
9009
  }
9027
- }, L = 0, k = w.length; L < k; L++)
9028
- F(L);
9010
+ }, N = 0, k = w.length; N < k; N++)
9011
+ F(N);
9029
9012
  var D = f.name ? f.name : "animation_" + t;
9030
9013
  return new THREE.AnimationClip(D, void 0, H);
9031
9014
  });
@@ -9467,10 +9450,10 @@ var Parser = (
9467
9450
  t.morphTargetsRelative = !0;
9468
9451
  for (var C = function(I, H) {
9469
9452
  var F = e.targets[I];
9470
- S ? O.push(r.loadAccessor(F.POSITION).then(function(L) {
9471
- L && (t.morphAttributes.position = t.morphAttributes.position || [], t.morphAttributes.position[I] = L);
9472
- })) : t.attributes.position && (t.morphAttributes.position = t.morphAttributes.position || [], t.morphAttributes.position[I] = t.attributes.position), R ? O.push(r.loadAccessor(F.NORMAL).then(function(L) {
9473
- L && (t.morphAttributes.normal = t.morphAttributes.normal || [], t.morphAttributes.normal[I] = L);
9453
+ S ? O.push(r.loadAccessor(F.POSITION).then(function(N) {
9454
+ N && (t.morphAttributes.position = t.morphAttributes.position || [], t.morphAttributes.position[I] = N);
9455
+ })) : t.attributes.position && (t.morphAttributes.position = t.morphAttributes.position || [], t.morphAttributes.position[I] = t.attributes.position), R ? O.push(r.loadAccessor(F.NORMAL).then(function(N) {
9456
+ N && (t.morphAttributes.normal = t.morphAttributes.normal || [], t.morphAttributes.normal[I] = N);
9474
9457
  })) : t.attributes.normal && (t.morphAttributes.normal = t.morphAttributes.normal || [], t.morphAttributes.normal[I] = t.attributes.normal);
9475
9458
  }, M = 0, w = e.targets.length; M < w; M++)
9476
9459
  C(M, w);
@@ -11675,9 +11658,9 @@ var flrm = /* @__PURE__ */ hMap(flt, 9, 1), fdrm = /* @__PURE__ */ hMap(fdt, 5,
11675
11658
  O[clim[C]] = bits(n, h + C * 3, 7);
11676
11659
  h += M * 3;
11677
11660
  for (var I = max(O), H = (1 << I) - 1, F = hMap(O, I, 1), C = 0; C < w; ) {
11678
- var L = F[bits(n, h, H)];
11679
- h += L & 15;
11680
- var b = L >> 4;
11661
+ var N = F[bits(n, h, H)];
11662
+ h += N & 15;
11663
+ var b = N >> 4;
11681
11664
  if (b < 16)
11682
11665
  P[C++] = b;
11683
11666
  else {
@@ -12493,9 +12476,9 @@ var FBXTreeParser = (
12493
12476
  h = THREE.ShapeUtils.triangulateShape(E, []);
12494
12477
  } else
12495
12478
  h = [[0, 1, 2]];
12496
- for (var R = function(H, F, L) {
12497
- t.vertex.push(e.vertexPositions[r[H * 3]]), t.vertex.push(e.vertexPositions[r[H * 3 + 1]]), t.vertex.push(e.vertexPositions[r[H * 3 + 2]]), t.vertex.push(e.vertexPositions[r[F * 3]]), t.vertex.push(e.vertexPositions[r[F * 3 + 1]]), t.vertex.push(e.vertexPositions[r[F * 3 + 2]]), t.vertex.push(e.vertexPositions[r[L * 3]]), t.vertex.push(e.vertexPositions[r[L * 3 + 1]]), t.vertex.push(e.vertexPositions[r[L * 3 + 2]]), e.skeleton && (t.vertexWeights.push(c[H * 4]), t.vertexWeights.push(c[H * 4 + 1]), t.vertexWeights.push(c[H * 4 + 2]), t.vertexWeights.push(c[H * 4 + 3]), t.vertexWeights.push(c[F * 4]), t.vertexWeights.push(c[F * 4 + 1]), t.vertexWeights.push(c[F * 4 + 2]), t.vertexWeights.push(c[F * 4 + 3]), t.vertexWeights.push(c[L * 4]), t.vertexWeights.push(c[L * 4 + 1]), t.vertexWeights.push(c[L * 4 + 2]), t.vertexWeights.push(c[L * 4 + 3]), t.weightsIndices.push(f[H * 4]), t.weightsIndices.push(f[H * 4 + 1]), t.weightsIndices.push(f[H * 4 + 2]), t.weightsIndices.push(f[H * 4 + 3]), t.weightsIndices.push(f[F * 4]), t.weightsIndices.push(f[F * 4 + 1]), t.weightsIndices.push(f[F * 4 + 2]), t.weightsIndices.push(f[F * 4 + 3]), t.weightsIndices.push(f[L * 4]), t.weightsIndices.push(f[L * 4 + 1]), t.weightsIndices.push(f[L * 4 + 2]), t.weightsIndices.push(f[L * 4 + 3])), e.color && (t.colors.push(u[H * 3]), t.colors.push(u[H * 3 + 1]), t.colors.push(u[H * 3 + 2]), t.colors.push(u[F * 3]), t.colors.push(u[F * 3 + 1]), t.colors.push(u[F * 3 + 2]), t.colors.push(u[L * 3]), t.colors.push(u[L * 3 + 1]), t.colors.push(u[L * 3 + 2])), e.material && e.material.mappingType !== "AllSame" && (t.materialIndex.push(o), t.materialIndex.push(o), t.materialIndex.push(o)), e.normal && (t.normal.push(s[H * 3]), t.normal.push(s[H * 3 + 1]), t.normal.push(s[H * 3 + 2]), t.normal.push(s[F * 3]), t.normal.push(s[F * 3 + 1]), t.normal.push(s[F * 3 + 2]), t.normal.push(s[L * 3]), t.normal.push(s[L * 3 + 1]), t.normal.push(s[L * 3 + 2])), e.uv && e.uv.forEach(function(k, D) {
12498
- t.uvs[D] === void 0 && (t.uvs[D] = []), t.uvs[D].push(l[D][H * 2]), t.uvs[D].push(l[D][H * 2 + 1]), t.uvs[D].push(l[D][F * 2]), t.uvs[D].push(l[D][F * 2 + 1]), t.uvs[D].push(l[D][L * 2]), t.uvs[D].push(l[D][L * 2 + 1]);
12479
+ for (var R = function(H, F, N) {
12480
+ t.vertex.push(e.vertexPositions[r[H * 3]]), t.vertex.push(e.vertexPositions[r[H * 3 + 1]]), t.vertex.push(e.vertexPositions[r[H * 3 + 2]]), t.vertex.push(e.vertexPositions[r[F * 3]]), t.vertex.push(e.vertexPositions[r[F * 3 + 1]]), t.vertex.push(e.vertexPositions[r[F * 3 + 2]]), t.vertex.push(e.vertexPositions[r[N * 3]]), t.vertex.push(e.vertexPositions[r[N * 3 + 1]]), t.vertex.push(e.vertexPositions[r[N * 3 + 2]]), e.skeleton && (t.vertexWeights.push(c[H * 4]), t.vertexWeights.push(c[H * 4 + 1]), t.vertexWeights.push(c[H * 4 + 2]), t.vertexWeights.push(c[H * 4 + 3]), t.vertexWeights.push(c[F * 4]), t.vertexWeights.push(c[F * 4 + 1]), t.vertexWeights.push(c[F * 4 + 2]), t.vertexWeights.push(c[F * 4 + 3]), t.vertexWeights.push(c[N * 4]), t.vertexWeights.push(c[N * 4 + 1]), t.vertexWeights.push(c[N * 4 + 2]), t.vertexWeights.push(c[N * 4 + 3]), t.weightsIndices.push(f[H * 4]), t.weightsIndices.push(f[H * 4 + 1]), t.weightsIndices.push(f[H * 4 + 2]), t.weightsIndices.push(f[H * 4 + 3]), t.weightsIndices.push(f[F * 4]), t.weightsIndices.push(f[F * 4 + 1]), t.weightsIndices.push(f[F * 4 + 2]), t.weightsIndices.push(f[F * 4 + 3]), t.weightsIndices.push(f[N * 4]), t.weightsIndices.push(f[N * 4 + 1]), t.weightsIndices.push(f[N * 4 + 2]), t.weightsIndices.push(f[N * 4 + 3])), e.color && (t.colors.push(u[H * 3]), t.colors.push(u[H * 3 + 1]), t.colors.push(u[H * 3 + 2]), t.colors.push(u[F * 3]), t.colors.push(u[F * 3 + 1]), t.colors.push(u[F * 3 + 2]), t.colors.push(u[N * 3]), t.colors.push(u[N * 3 + 1]), t.colors.push(u[N * 3 + 2])), e.material && e.material.mappingType !== "AllSame" && (t.materialIndex.push(o), t.materialIndex.push(o), t.materialIndex.push(o)), e.normal && (t.normal.push(s[H * 3]), t.normal.push(s[H * 3 + 1]), t.normal.push(s[H * 3 + 2]), t.normal.push(s[F * 3]), t.normal.push(s[F * 3 + 1]), t.normal.push(s[F * 3 + 2]), t.normal.push(s[N * 3]), t.normal.push(s[N * 3 + 1]), t.normal.push(s[N * 3 + 2])), e.uv && e.uv.forEach(function(k, D) {
12481
+ t.uvs[D] === void 0 && (t.uvs[D] = []), t.uvs[D].push(l[D][H * 2]), t.uvs[D].push(l[D][H * 2 + 1]), t.uvs[D].push(l[D][F * 2]), t.uvs[D].push(l[D][F * 2 + 1]), t.uvs[D].push(l[D][N * 2]), t.uvs[D].push(l[D][N * 2 + 1]);
12499
12482
  });
12500
12483
  }, M = 0, w = h; M < w.length; M++) {
12501
12484
  var P = w[M], O = P[0], C = P[1], I = P[2];
@@ -13436,7 +13419,7 @@ function loadX3p(n, t) {
13436
13419
  });
13437
13420
  }
13438
13421
  function parse$1(n, t) {
13439
- for (var e, r, o, s, u, l, c, f, d, h, p, m, A, g, y, v, E, b, T, S, R, M, w, P, O, C, I, H, F, L, k, D, U, z, J, Q, q, j, G, oe, ee, Z, $, X, ne, W, K, re, te, ie, ve, ae, fe, Ee, se = unzipSync(n), le = "", me = null, ge = 0, Ae = Object.keys(se); ge < Ae.length; ge++) {
13422
+ for (var e, r, o, s, u, l, c, f, d, h, p, m, A, g, y, v, E, b, T, S, R, M, w, P, O, C, I, H, F, N, k, D, U, z, J, Q, q, j, G, oe, ee, Z, $, X, ne, W, K, re, te, ie, ve, ae, fe, Ee, se = unzipSync(n), le = "", me = null, ge = 0, Ae = Object.keys(se); ge < Ae.length; ge++) {
13440
13423
  var ue = Ae[ge];
13441
13424
  /(^|\/)main\.xml$/i.test(ue) && (me = se[ue], le = ue.slice(0, ue.lastIndexOf("/") + 1));
13442
13425
  }
@@ -13461,7 +13444,7 @@ function parse$1(n, t) {
13461
13444
  type: (P = (w = (M = he == null ? void 0 : he.querySelector("CZ AxisType")) === null || M === void 0 ? void 0 : M.textContent) === null || w === void 0 ? void 0 : w.toUpperCase()) !== null && P !== void 0 ? P : "A",
13462
13445
  dataType: (I = (C = (O = he == null ? void 0 : he.querySelector("CZ DataType")) === null || O === void 0 ? void 0 : O.textContent) === null || C === void 0 ? void 0 : C.toUpperCase()) !== null && I !== void 0 ? I : "D",
13463
13446
  increment: Number((F = (H = he == null ? void 0 : he.querySelector("CZ Increment")) === null || H === void 0 ? void 0 : H.textContent) !== null && F !== void 0 ? F : "1"),
13464
- offset: Number((k = (L = he == null ? void 0 : he.querySelector("CZ Offset")) === null || L === void 0 ? void 0 : L.textContent) !== null && k !== void 0 ? k : "0")
13447
+ offset: Number((k = (N = he == null ? void 0 : he.querySelector("CZ Offset")) === null || N === void 0 ? void 0 : N.textContent) !== null && k !== void 0 ? k : "0")
13465
13448
  }
13466
13449
  }, ye = null, Be = xe.querySelector("Record1 Axes Rotation");
13467
13450
  Be && (ye = new THREE.Matrix3(), ye.set(Number((U = (D = Be.querySelector("r11")) === null || D === void 0 ? void 0 : D.textContent) !== null && U !== void 0 ? U : 0), Number((J = (z = Be.querySelector("r12")) === null || z === void 0 ? void 0 : z.textContent) !== null && J !== void 0 ? J : 0), Number((q = (Q = Be.querySelector("r13")) === null || Q === void 0 ? void 0 : Q.textContent) !== null && q !== void 0 ? q : 0), Number((G = (j = Be.querySelector("r21")) === null || j === void 0 ? void 0 : j.textContent) !== null && G !== void 0 ? G : 0), Number((ee = (oe = Be.querySelector("r22")) === null || oe === void 0 ? void 0 : oe.textContent) !== null && ee !== void 0 ? ee : 0), Number(($ = (Z = Be.querySelector("r23")) === null || Z === void 0 ? void 0 : Z.textContent) !== null && $ !== void 0 ? $ : 0), Number((ne = (X = Be.querySelector("r31")) === null || X === void 0 ? void 0 : X.textContent) !== null && ne !== void 0 ? ne : 0), Number((K = (W = Be.querySelector("r32")) === null || W === void 0 ? void 0 : W.textContent) !== null && K !== void 0 ? K : 0), Number((te = (re = Be.querySelector("r33")) === null || re === void 0 ? void 0 : re.textContent) !== null && te !== void 0 ? te : 0)));
@@ -13472,12 +13455,12 @@ function parse$1(n, t) {
13472
13455
  var Ze = se[Ie];
13473
13456
  if (!Ze)
13474
13457
  throw new Error("X3p: ".concat(Ze, " not found."));
13475
- for (var Se = getPointArray(Ze.buffer, Ve.z.dataType), ze = Number((ae = (ve = xe.querySelector("Record3 MatrixDimension SizeX")) === null || ve === void 0 ? void 0 : ve.textContent) !== null && ae !== void 0 ? ae : "0"), Fe = Number((Ee = (fe = xe.querySelector("Record3 MatrixDimension SizeY")) === null || fe === void 0 ? void 0 : fe.textContent) !== null && Ee !== void 0 ? Ee : "0"), Oe = Math.floor(ze - 1), Le = Math.floor(Fe - 1), Ue = Oe + 1, $e = Le + 1, lt = new Float32Array(Ue * $e * 3), nt = new Float32Array(Ue * $e * 2), ot = new Uint32Array(Oe * Le * 6), At = new THREE.Box3(), We = 0; We < $e; We++)
13458
+ for (var Se = getPointArray(Ze.buffer, Ve.z.dataType), ze = Number((ae = (ve = xe.querySelector("Record3 MatrixDimension SizeX")) === null || ve === void 0 ? void 0 : ve.textContent) !== null && ae !== void 0 ? ae : "0"), Fe = Number((Ee = (fe = xe.querySelector("Record3 MatrixDimension SizeY")) === null || fe === void 0 ? void 0 : fe.textContent) !== null && Ee !== void 0 ? Ee : "0"), Oe = Math.floor(ze - 1), Ne = Math.floor(Fe - 1), Ue = Oe + 1, $e = Ne + 1, lt = new Float32Array(Ue * $e * 3), nt = new Float32Array(Ue * $e * 2), ot = new Uint32Array(Oe * Ne * 6), At = new THREE.Box3(), We = 0; We < $e; We++)
13476
13459
  for (var Ct = We * Ve.y.increment + Ve.y.offset, _e = 0; _e < Ue; _e++) {
13477
- var Ne = We * Ue + _e, bt = _e * Ve.x.increment + Ve.x.offset, It = Se[Ne], Tt = !isNaN(It), yt = Tt ? It : NaN;
13478
- _vector.set(bt, -Ct, yt), ye && _vector.applyMatrix3(ye), Tt && At.expandByPoint(_vector), lt[Ne * 3 + 0] = _vector.x, lt[Ne * 3 + 1] = _vector.y, lt[Ne * 3 + 2] = _vector.z, nt[Ne * 2 + 0] = _e / Oe, nt[Ne * 2 + 1] = 1 - We / Le;
13460
+ var Le = We * Ue + _e, bt = _e * Ve.x.increment + Ve.x.offset, It = Se[Le], Tt = !isNaN(It), yt = Tt ? It : NaN;
13461
+ _vector.set(bt, -Ct, yt), ye && _vector.applyMatrix3(ye), Tt && At.expandByPoint(_vector), lt[Le * 3 + 0] = _vector.x, lt[Le * 3 + 1] = _vector.y, lt[Le * 3 + 2] = _vector.z, nt[Le * 2 + 0] = _e / Oe, nt[Le * 2 + 1] = 1 - We / Ne;
13479
13462
  }
13480
- for (var We = 0; We < Le; We++)
13463
+ for (var We = 0; We < Ne; We++)
13481
13464
  for (var _e = 0; _e < Oe; _e++) {
13482
13465
  var Rt = _e + Ue * We, tt = _e + Ue * (We + 1), it = _e + 1 + Ue * (We + 1), ct = _e + 1 + Ue * We, Xe = (We * Oe + _e) * 6;
13483
13466
  ot[Xe + 0] = Rt, ot[Xe + 1] = tt, ot[Xe + 2] = ct, ot[Xe + 3] = tt, ot[Xe + 4] = it, ot[Xe + 5] = ct;
@@ -14118,7 +14101,7 @@ var BVHVector3 = (
14118
14101
  var I = [], H = [0, 1, 2], F = function(k, D) {
14119
14102
  return I[D] - I[k];
14120
14103
  };
14121
- function L(k) {
14104
+ function N(k) {
14122
14105
  var D = k.startIndex, U = k.endIndex, z = k.extents;
14123
14106
  I[0] = z[3] - z[0], I[1] = z[4] - z[1], I[2] = z[5] - z[2], H.sort(F);
14124
14107
  for (var J = 0; J < 3; J++) {
@@ -14134,7 +14117,7 @@ var BVHVector3 = (
14134
14117
  }
14135
14118
  }
14136
14119
  for (; f; )
14137
- L(c[--f]);
14120
+ N(c[--f]);
14138
14121
  return this.offsetArray = u, this.rootNodePacked = packBVHNode(C, d + 1), c.length = 0, this;
14139
14122
  }, t.prototype.trianglesInSphere = function(e, r) {
14140
14123
  for (var o = this.offsetArray, s = this.rootNodePacked, u = new Float32Array(s), l = new Uint32Array(s), c = new Uint16Array(s), f = [0], d = [], h; (h = f.pop()) !== void 0; ) {
@@ -14161,9 +14144,9 @@ var BVHVector3 = (
14161
14144
  var b = intersectNodeBox(e, m, y, o);
14162
14145
  if (b !== null && !(s && b > v)) {
14163
14146
  for (var T = e.x, S = e.y, R = e.z, M = r.x, w = r.y, P = r.z, O = h[E + 6], C = h[E + 7], I = O; I < C; I++) {
14164
- var H = c[I], F = H * 3, L = new BVHVector3(0, 0, 0);
14165
- this.getPositionByIndex(F, L);
14166
- var k = L.x, D = L.y, U = L.z, z = new BVHVector3(0, 0, 0);
14147
+ var H = c[I], F = H * 3, N = new BVHVector3(0, 0, 0);
14148
+ this.getPositionByIndex(F, N);
14149
+ var k = N.x, D = N.y, U = N.z, z = new BVHVector3(0, 0, 0);
14167
14150
  this.getPositionByIndex(F + 1, z);
14168
14151
  var J = z.x, Q = z.y, q = z.z, j = new BVHVector3(0, 0, 0);
14169
14152
  this.getPositionByIndex(F + 2, j);
@@ -14180,7 +14163,7 @@ var BVHVector3 = (
14180
14163
  if (!(me < 0) && !(le + me > ve)) {
14181
14164
  var ge = -ae * (fe * re + Ee * te + se * ie);
14182
14165
  if (!(ge < 0)) {
14183
- var Ae = ge / ve, ue = new BVHVector3(T + M * Ae, S + w * Ae, R + P * Ae), be = new BVHIntersect(L, z, j, H, ue);
14166
+ var Ae = ge / ve, ue = new BVHVector3(T + M * Ae, S + w * Ae, R + P * Ae), be = new BVHIntersect(N, z, j, H, ue);
14184
14167
  (!u || u(be)) && (s ? Ae < v && (v = Ae, l.length > 0 && (l.length = 0), l.push(be)) : l.push(be));
14185
14168
  }
14186
14169
  }
@@ -14243,8 +14226,8 @@ var EPSILON = 1e-6, ORDER_AXISES = ["x", "y", "z"], scratchVector3$8 = new BVHVe
14243
14226
  function P(O) {
14244
14227
  var C = O.startIndex, I = O.endIndex, H = O.extents;
14245
14228
  R[0] = H[3] - H[0], R[1] = H[4] - H[1], R[2] = H[5] - H[2];
14246
- for (var F = M.sort(w)[0], L = ORDER_AXISES[F], k = (H[F] + H[F + 3]) / 2, D = C, U = I - 1, z = -1, J; D <= U; )
14247
- z === -1 ? (J = l[D], s(J, scratchVector3$8), scratchVector3$8[L] < k ? D++ : z = J) : (J = l[U], s(J, scratchVector3$8), scratchVector3$8[L] >= k || (l[D] = J, l[U] = z, z = -1, D++), U--);
14229
+ for (var F = M.sort(w)[0], N = ORDER_AXISES[F], k = (H[F] + H[F + 3]) / 2, D = C, U = I - 1, z = -1, J; D <= U; )
14230
+ z === -1 ? (J = l[D], s(J, scratchVector3$8), scratchVector3$8[N] < k ? D++ : z = J) : (J = l[U], s(J, scratchVector3$8), scratchVector3$8[N] >= k || (l[D] = J, l[U] = z, z = -1, D++), U--);
14248
14231
  if (D > C) {
14249
14232
  var Q = H.slice();
14250
14233
  Q[F + 3] = k + EPSILON;
@@ -14272,9 +14255,9 @@ var EPSILON = 1e-6, ORDER_AXISES = ["x", "y", "z"], scratchVector3$8 = new BVHVe
14272
14255
  for (var S = h[b + 6], R = h[b + 7], M = S; M < R; M++) {
14273
14256
  var w = c[M], P = new BVHVector3(0, 0, 0);
14274
14257
  this.getPositionByIndex(w, P);
14275
- var O = P.x, C = P.y, I = P.z, H = e.x, F = e.y, L = e.z, k = r.x, D = r.y, U = r.z, z = k * (O - H) + D * (C - F) + U * (I - L);
14276
- if (z > 0 ? (H += k * z, F += D * z, L += U * z) : z < 0 && (z = 0), k = O - H, D = C - F, U = I - L, k * k + D * D + U * U <= m) {
14277
- var J = new BVHVector3(H, F, L), Q = new BVHIntersect(P, P, P, w, J);
14258
+ var O = P.x, C = P.y, I = P.z, H = e.x, F = e.y, N = e.z, k = r.x, D = r.y, U = r.z, z = k * (O - H) + D * (C - F) + U * (I - N);
14259
+ if (z > 0 ? (H += k * z, F += D * z, N += U * z) : z < 0 && (z = 0), k = O - H, D = C - F, U = I - N, k * k + D * D + U * U <= m) {
14260
+ var J = new BVHVector3(H, F, N), Q = new BVHIntersect(P, P, P, w, J);
14278
14261
  (!u || u(Q)) && (s ? z < E && (E = z, l.length > 0 && (l.length = 0), l.push(Q)) : l.push(Q));
14279
14262
  }
14280
14263
  }
@@ -14335,10 +14318,10 @@ function raycastMesh(n, t, e, r) {
14335
14318
  var P = v.intersectionPoint, O = new THREE.Vector3(P.x, P.y, P.z).applyMatrix4(u), C = e.ray.origin.distanceTo(O);
14336
14319
  if (C < e.near || C > e.far)
14337
14320
  return !1;
14338
- var I = v.pointA, H = v.pointB, F = v.pointC, L = THREE.Triangle.getNormal(scratchIntersectionFaceA.set(I.x, I.y, I.z).applyMatrix4(u), scratchIntersectionFaceB.set(H.x, H.y, H.z).applyMatrix4(u), scratchIntersectionFaceC.set(F.x, F.y, F.z).applyMatrix4(u), new THREE.Vector3()), k = e.ray.direction.dot(L);
14321
+ var I = v.pointA, H = v.pointB, F = v.pointC, N = THREE.Triangle.getNormal(scratchIntersectionFaceA.set(I.x, I.y, I.z).applyMatrix4(u), scratchIntersectionFaceB.set(H.x, H.y, H.z).applyMatrix4(u), scratchIntersectionFaceC.set(F.x, F.y, F.z).applyMatrix4(u), new THREE.Vector3()), k = e.ray.direction.dot(N);
14339
14322
  if (S.side === THREE.FrontSide && k >= 0 || S.side === THREE.BackSide && k <= 0)
14340
14323
  return !1;
14341
- var D = new THREE.Face3(p ? p.array[T] : T, p ? p.array[T + 1] : T + 1, p ? p.array[T + 2] : T + 2, L), U = {
14324
+ var D = new THREE.Face3(p ? p.array[T] : T, p ? p.array[T + 1] : T + 1, p ? p.array[T + 2] : T + 2, N), U = {
14342
14325
  distance: C,
14343
14326
  object: n,
14344
14327
  face: D,
@@ -14834,7 +14817,7 @@ var TileRequestScheduler = (
14834
14817
  /** @class */
14835
14818
  (function() {
14836
14819
  function n(t) {
14837
- t === void 0 && (t = {}), this.options = t, this.cacheNodeMap = /* @__PURE__ */ new Map(), this.list = new CacheNodeList(), this.sentinel = this.list.add("sentinel");
14820
+ t === void 0 && (t = {}), this.options = t, this.cacheNodeMap = /* @__PURE__ */ new WeakMap(), this.list = new CacheNodeList(), this.sentinel = this.list.add("sentinel");
14838
14821
  }
14839
14822
  return n.prototype.reset = function() {
14840
14823
  this.list.tail && this.list.splice(this.list.tail, this.sentinel);
@@ -15173,12 +15156,22 @@ var TileRequestScheduler = (
15173
15156
  }
15174
15157
  return n.prototype.adjustScreenSpaceError = function(t) {
15175
15158
  if ((isNaN(this.currentMaxScreenSpaceError) || !isFinite(this.currentMaxScreenSpaceError)) && (this.currentMaxScreenSpaceError = t.maxScreenSpaceError), t.memoryAdjustedScreenSpaceError) {
15176
- var e = 0;
15177
- this.needsRefinedTiles.forEach(function(s) {
15178
- s.content && (e += s.content.memoryUsage);
15179
- });
15180
- var r = (t.maxMemoryUsage - t.memoryAdjustedOverflow) * 1024 * 1024, o = t.maxMemoryUsage * 1024 * 1024;
15181
- e < r ? this.currentMaxScreenSpaceError = Math.max(this.currentMaxScreenSpaceError / 1.02, t.maxScreenSpaceError) : e > o && this.selectedTiles.length > 0 && (this.currentMaxScreenSpaceError *= 1.02);
15159
+ var e = 0, r = 0, o = 0;
15160
+ if (this.needsRefinedTiles.forEach(function(h) {
15161
+ h.content && (r++, e += h.content.memoryUsage, h.content.loadState === "READY" && o++);
15162
+ }), o < 5 || r < 10)
15163
+ this.currentMaxScreenSpaceError = t.maxScreenSpaceError;
15164
+ else {
15165
+ var s = 1048576, u = e / o * r, l = t.maxMemoryUsage * s, c = l - clamp$1(l * 0.1, 8 * s, 64 * s);
15166
+ if (u < c) {
15167
+ var f = 1 - u / c, d = 0.5 * f;
15168
+ this.currentMaxScreenSpaceError -= d;
15169
+ } else if (u > l) {
15170
+ var d = 0.3;
15171
+ this.currentMaxScreenSpaceError += d;
15172
+ }
15173
+ this.currentMaxScreenSpaceError = clamp$1(Math.round(this.currentMaxScreenSpaceError * 100) / 100, 1, t.maxScreenSpaceError);
15174
+ }
15182
15175
  } else
15183
15176
  this.currentMaxScreenSpaceError = t.maxScreenSpaceError;
15184
15177
  }, n.prototype.getTraverser = function(t) {
@@ -15570,8 +15563,8 @@ function build(n, t) {
15570
15563
  var w = m[R], P = w.name + "_" + w.smooth + "_" + A, O = n.materials[P];
15571
15564
  if (!O) {
15572
15565
  for (var C = null, I = 0, H = t; I < H.length; I++) {
15573
- var F = H[I], L = F.name, k = F.create;
15574
- L === w.mtllib && (C = k(w.name));
15566
+ var F = H[I], N = F.name, k = F.create;
15567
+ N === w.mtllib && (C = k(w.name));
15575
15568
  }
15576
15569
  if (!C) {
15577
15570
  var D = new PBMMeshMaterial();
@@ -16430,7 +16423,6 @@ var Tile3D = (
16430
16423
  maxRequests: T,
16431
16424
  requestOrder: g.requestOrder,
16432
16425
  maxScreenSpaceError: g.maxScreenSpaceError,
16433
- memoryAdjustedOverflow: g.memoryAdjustedOverflow,
16434
16426
  memoryAdjustedScreenSpaceError: g.memoryAdjustedScreenSpaceError
16435
16427
  }, w = g.cacheCameras.map(function(ue) {
16436
16428
  return ue.updateProjectionMatrix(), __assign(__assign({}, M), { camera: {
@@ -16486,11 +16478,11 @@ var Tile3D = (
16486
16478
  M.skipLevelOfDetail || this.tileset.selectedTiles.sort(function(ue, be) {
16487
16479
  return ue.floor !== be.floor ? ue.floor - be.floor : ue.levelOfContent !== be.levelOfContent ? be.levelOfContent - ue.levelOfContent : ue.state.distanceToCamera !== be.state.distanceToCamera ? ue.state.distanceToCamera - be.state.distanceToCamera : ue.state.centerZDepth - be.state.centerZDepth;
16488
16480
  });
16489
- for (var L = [], k = 0, D = this.tileset.selectedTiles; k < D.length; k++) {
16481
+ for (var N = [], k = 0, D = this.tileset.selectedTiles; k < D.length; k++) {
16490
16482
  var U = D[k], z = (p = (h = U.content) === null || h === void 0 ? void 0 : h.data) === null || p === void 0 ? void 0 : p.object;
16491
16483
  if (z) {
16492
16484
  var J = z.update(e, r, o, this, U, g);
16493
- if (L.push(U.id), J && (A = !0), this.tileset.hasMixedContent && M.skipLevelOfDetail) {
16485
+ if (N.push(U.id), J && (A = !0), this.tileset.hasMixedContent && M.skipLevelOfDetail) {
16494
16486
  if (!U.state.finalResolution) {
16495
16487
  var Q = cloneSkipBackfaceObject(z);
16496
16488
  Q.name = "skipBackface:" + z.name, this.backfaceObjects.push(Q);
@@ -16507,7 +16499,7 @@ var Tile3D = (
16507
16499
  this.tileObjects.push(z);
16508
16500
  }
16509
16501
  }
16510
- var re = L.toString();
16502
+ var re = N.toString();
16511
16503
  if (tileVersionMap.get(this) !== re && (tileVersionMap.set(this, re), A = !0), M.skipLevelOfDetail && this.backfaceObjects.length)
16512
16504
  for (var F = 0; F < this.backfaceObjects.length; F++)
16513
16505
  this.renderObjects.push(this.backfaceObjects[F]);
@@ -17150,10 +17142,10 @@ function mergeVertices(n, t) {
17150
17142
  }
17151
17143
  }
17152
17144
  for (var H = n.clone(), p = 0, m = l.length; p < m; p++) {
17153
- var A = l[p], F = n.getAttribute(A), L = new F.array.constructor(c[A]), S = new THREE.BufferAttribute(L, F.itemSize, F.normalized);
17145
+ var A = l[p], F = n.getAttribute(A), N = new F.array.constructor(c[A]), S = new THREE.BufferAttribute(N, F.itemSize, F.normalized);
17154
17146
  if (H.setAttribute(A, S), A in f)
17155
17147
  for (var T = 0; T < f[A].length; T++) {
17156
- var k = n.morphAttributes[A][T], L = new k.array.constructor(f[A][T]), D = new THREE.BufferAttribute(L, k.itemSize, k.normalized);
17148
+ var k = n.morphAttributes[A][T], N = new k.array.constructor(f[A][T]), D = new THREE.BufferAttribute(N, k.itemSize, k.normalized);
17157
17149
  H.morphAttributes[A][T] = D;
17158
17150
  }
17159
17151
  }
@@ -17189,7 +17181,7 @@ function getEdgesBySphere(n, t, e) {
17189
17181
  }
17190
17182
  for (var C = {}, T = 0, S = b.length; T < S; T++)
17191
17183
  for (var I = b[T], H = 0; H < 3; H++) {
17192
- var F = I[A[H]], L = I[A[(H + 1) % 3]], k = [Math.min(F, L), Math.max(F, L)], D = k[0] + "-" + k[1];
17184
+ var F = I[A[H]], N = I[A[(H + 1) % 3]], k = [Math.min(F, N), Math.max(F, N)], D = k[0] + "-" + k[1];
17193
17185
  C[D] === void 0 ? C[D] = { index1: k[0], index2: k[1], face1: T } : C[D].face2 = T;
17194
17186
  }
17195
17187
  for (var D in C) {
@@ -18226,7 +18218,7 @@ function parse(n, t) {
18226
18218
  });
18227
18219
  var F = [];
18228
18220
  if (Array.isArray(I.observers) && I.panorama && Array.isArray(I.panorama.list || I.panorama.info)) {
18229
- for (var L = I.observers, k = (r = I.panorama.list || I.panorama.info) !== null && r !== void 0 ? r : [], D = (f = (l = (s = (o = I.panorama) === null || o === void 0 ? void 0 : o.pano_high_cube_base_url) !== null && s !== void 0 ? s : (u = I.panorama) === null || u === void 0 ? void 0 : u.pano_cube_base_url) !== null && l !== void 0 ? l : (c = I.panorama) === null || c === void 0 ? void 0 : c.base_url) !== null && f !== void 0 ? f : "", U = Math.min(L.length, k.length), z = {}, J = function(W) {
18221
+ for (var N = I.observers, k = (r = I.panorama.list || I.panorama.info) !== null && r !== void 0 ? r : [], D = (f = (l = (s = (o = I.panorama) === null || o === void 0 ? void 0 : o.pano_high_cube_base_url) !== null && s !== void 0 ? s : (u = I.panorama) === null || u === void 0 ? void 0 : u.pano_cube_base_url) !== null && l !== void 0 ? l : (c = I.panorama) === null || c === void 0 ? void 0 : c.base_url) !== null && f !== void 0 ? f : "", U = Math.min(N.length, k.length), z = {}, J = function(W) {
18230
18222
  var K = W, re = I.panorama.pattern[K];
18231
18223
  if (typeof re == "string") {
18232
18224
  var te = new StringPattern(re);
@@ -18245,7 +18237,7 @@ function parse(n, t) {
18245
18237
  var re, te = z[K];
18246
18238
  return (re = W[K]) !== null && re !== void 0 ? re : te ? te(W) : void 0;
18247
18239
  }, oe = function(W) {
18248
- var K = L[W], re = k[W], te = {};
18240
+ var K = N[W], re = k[W], te = {};
18249
18241
  defineProperty(te, "work", {
18250
18242
  enumerable: !1,
18251
18243
  configurable: !1,
@@ -20213,27 +20205,27 @@ function isEmptyObject(n) {
20213
20205
  * Licensed under the MIT license */
20214
20206
  var Hammer = (function(n, t, e, r) {
20215
20207
  var o = ["", "webkit", "Moz", "MS", "ms", "o"], s = t.createElement ? t.createElement("div") : r, u = "function", l = Math.round, c = Math.abs, f = Date.now;
20216
- function d(B, _, N) {
20217
- return setTimeout(E(B, N), _);
20208
+ function d(B, _, L) {
20209
+ return setTimeout(E(B, L), _);
20218
20210
  }
20219
- function h(B, _, N) {
20220
- return Array.isArray(B) ? (p(B, N[_], N), !0) : !1;
20211
+ function h(B, _, L) {
20212
+ return Array.isArray(B) ? (p(B, L[_], L), !0) : !1;
20221
20213
  }
20222
- function p(B, _, N) {
20214
+ function p(B, _, L) {
20223
20215
  var V;
20224
20216
  if (B)
20225
20217
  if (B.forEach)
20226
- B.forEach(_, N);
20218
+ B.forEach(_, L);
20227
20219
  else if (B.length !== r)
20228
20220
  for (V = 0; V < B.length; )
20229
- _.call(N, B[V], V, B), V++;
20221
+ _.call(L, B[V], V, B), V++;
20230
20222
  else
20231
20223
  for (V in B)
20232
- B.hasOwnProperty(V) && _.call(N, B[V], V, B);
20224
+ B.hasOwnProperty(V) && _.call(L, B[V], V, B);
20233
20225
  }
20234
- function m(B, _, N) {
20226
+ function m(B, _, L) {
20235
20227
  var V = "DEPRECATED METHOD: " + _ + `
20236
- ` + N + ` AT
20228
+ ` + L + ` AT
20237
20229
  `;
20238
20230
  return function() {
20239
20231
  var Y = new Error("get-stack-trace"), ce = Y && Y.stack ? Y.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace", Te = n.console && (n.console.warn || n.console.log);
@@ -20244,24 +20236,24 @@ var Hammer = (function(n, t, e, r) {
20244
20236
  typeof Object.assign != "function" ? A = function(_) {
20245
20237
  if (_ === r || _ === null)
20246
20238
  throw new TypeError("Cannot convert undefined or null to object");
20247
- for (var N = Object(_), V = 1; V < arguments.length; V++) {
20239
+ for (var L = Object(_), V = 1; V < arguments.length; V++) {
20248
20240
  var Y = arguments[V];
20249
20241
  if (Y !== r && Y !== null)
20250
20242
  for (var ce in Y)
20251
- Y.hasOwnProperty(ce) && (N[ce] = Y[ce]);
20243
+ Y.hasOwnProperty(ce) && (L[ce] = Y[ce]);
20252
20244
  }
20253
- return N;
20245
+ return L;
20254
20246
  } : A = Object.assign;
20255
- var g = m(function(_, N, V) {
20256
- for (var Y = Object.keys(N), ce = 0; ce < Y.length; )
20257
- (!V || V && _[Y[ce]] === r) && (_[Y[ce]] = N[Y[ce]]), ce++;
20247
+ var g = m(function(_, L, V) {
20248
+ for (var Y = Object.keys(L), ce = 0; ce < Y.length; )
20249
+ (!V || V && _[Y[ce]] === r) && (_[Y[ce]] = L[Y[ce]]), ce++;
20258
20250
  return _;
20259
- }, "extend", "Use `assign`."), y = m(function(_, N) {
20260
- return g(_, N, !0);
20251
+ }, "extend", "Use `assign`."), y = m(function(_, L) {
20252
+ return g(_, L, !0);
20261
20253
  }, "merge", "Use `assign`.");
20262
- function v(B, _, N) {
20254
+ function v(B, _, L) {
20263
20255
  var V = _.prototype, Y;
20264
- Y = B.prototype = Object.create(V), Y.constructor = B, Y._super = V, N && A(Y, N);
20256
+ Y = B.prototype = Object.create(V), Y.constructor = B, Y._super = V, L && A(Y, L);
20265
20257
  }
20266
20258
  function E(B, _) {
20267
20259
  return function() {
@@ -20274,14 +20266,14 @@ var Hammer = (function(n, t, e, r) {
20274
20266
  function T(B, _) {
20275
20267
  return B === r ? _ : B;
20276
20268
  }
20277
- function S(B, _, N) {
20269
+ function S(B, _, L) {
20278
20270
  p(P(_), function(V) {
20279
- B.addEventListener(V, N, !1);
20271
+ B.addEventListener(V, L, !1);
20280
20272
  });
20281
20273
  }
20282
- function R(B, _, N) {
20274
+ function R(B, _, L) {
20283
20275
  p(P(_), function(V) {
20284
- B.removeEventListener(V, N, !1);
20276
+ B.removeEventListener(V, L, !1);
20285
20277
  });
20286
20278
  }
20287
20279
  function M(B, _) {
@@ -20298,11 +20290,11 @@ var Hammer = (function(n, t, e, r) {
20298
20290
  function P(B) {
20299
20291
  return B.trim().split(/\s+/g);
20300
20292
  }
20301
- function O(B, _, N) {
20302
- if (B.indexOf && !N)
20293
+ function O(B, _, L) {
20294
+ if (B.indexOf && !L)
20303
20295
  return B.indexOf(_);
20304
20296
  for (var V = 0; V < B.length; ) {
20305
- if (N && B[V][N] == _ || !N && B[V] === _)
20297
+ if (L && B[V][L] == _ || !L && B[V] === _)
20306
20298
  return V;
20307
20299
  V++;
20308
20300
  }
@@ -20311,7 +20303,7 @@ var Hammer = (function(n, t, e, r) {
20311
20303
  function C(B) {
20312
20304
  return Array.prototype.slice.call(B, 0);
20313
20305
  }
20314
- function I(B, _, N) {
20306
+ function I(B, _, L) {
20315
20307
  for (var V = [], Y = [], ce = 0; ce < B.length; ) {
20316
20308
  var Te = B[ce][_];
20317
20309
  O(Y, Te) < 0 && V.push(B[ce]), Y[ce] = Te, ce++;
@@ -20321,15 +20313,15 @@ var Hammer = (function(n, t, e, r) {
20321
20313
  }), V;
20322
20314
  }
20323
20315
  function H(B, _) {
20324
- for (var N, V, Y = _[0].toUpperCase() + _.slice(1), ce = 0; ce < o.length; ) {
20325
- if (N = o[ce], V = N ? N + Y : _, V in B)
20316
+ for (var L, V, Y = _[0].toUpperCase() + _.slice(1), ce = 0; ce < o.length; ) {
20317
+ if (L = o[ce], V = L ? L + Y : _, V in B)
20326
20318
  return V;
20327
20319
  ce++;
20328
20320
  }
20329
20321
  return r;
20330
20322
  }
20331
20323
  var F = 1;
20332
- function L() {
20324
+ function N() {
20333
20325
  return F++;
20334
20326
  }
20335
20327
  function k(B) {
@@ -20338,9 +20330,9 @@ var Hammer = (function(n, t, e, r) {
20338
20330
  }
20339
20331
  var D = /mobile|tablet|ip(ad|hone|od)|android/i, U = "ontouchstart" in n, z = H(n, "PointerEvent") !== r, J = U && D.test(navigator.userAgent), Q = "touch", q = "pen", j = "mouse", G = "kinect", oe = 25, ee = 1, Z = 2, $ = 4, X = 8, ne = 1, W = 2, K = 4, re = 8, te = 16, ie = W | K, ve = re | te, ae = ie | ve, fe = ["x", "y"], Ee = ["clientX", "clientY"];
20340
20332
  function se(B, _) {
20341
- var N = this;
20333
+ var L = this;
20342
20334
  this.manager = B, this.callback = _, this.element = B.element, this.target = B.options.inputTarget, this.domHandler = function(V) {
20343
- b(B.options.enable, [B]) && N.handler(V);
20335
+ b(B.options.enable, [B]) && L.handler(V);
20344
20336
  }, this.init();
20345
20337
  }
20346
20338
  se.prototype = {
@@ -20364,48 +20356,48 @@ var Hammer = (function(n, t, e, r) {
20364
20356
  }
20365
20357
  };
20366
20358
  function le(B) {
20367
- var _, N = B.options.inputClass;
20368
- return N ? _ = N : z ? _ = $e : J ? _ = Ne : U ? _ = yt : _ = ze, new _(B, me);
20359
+ var _, L = B.options.inputClass;
20360
+ return L ? _ = L : z ? _ = $e : J ? _ = Le : U ? _ = yt : _ = ze, new _(B, me);
20369
20361
  }
20370
- function me(B, _, N) {
20371
- var V = N.pointers.length, Y = N.changedPointers.length, ce = _ & ee && V - Y === 0, Te = _ & ($ | X) && V - Y === 0;
20372
- N.isFirst = !!ce, N.isFinal = !!Te, ce && (B.session = {}), N.eventType = _, ge(B, N), B.emit("hammer.input", N), B.recognize(N), B.session.prevInput = N;
20362
+ function me(B, _, L) {
20363
+ var V = L.pointers.length, Y = L.changedPointers.length, ce = _ & ee && V - Y === 0, Te = _ & ($ | X) && V - Y === 0;
20364
+ L.isFirst = !!ce, L.isFinal = !!Te, ce && (B.session = {}), L.eventType = _, ge(B, L), B.emit("hammer.input", L), B.recognize(L), B.session.prevInput = L;
20373
20365
  }
20374
20366
  function ge(B, _) {
20375
- var N = B.session, V = _.pointers, Y = V.length;
20376
- N.firstInput || (N.firstInput = be(_)), Y > 1 && !N.firstMultiple ? N.firstMultiple = be(_) : Y === 1 && (N.firstMultiple = !1);
20377
- var ce = N.firstInput, Te = N.firstMultiple, je = Te ? Te.center : ce.center, Ye = _.center = He(V);
20378
- _.timeStamp = f(), _.deltaTime = _.timeStamp - ce.timeStamp, _.angle = Ve(je, Ye), _.distance = he(je, Ye), Ae(N, _), _.offsetDirection = xe(_.deltaX, _.deltaY);
20367
+ var L = B.session, V = _.pointers, Y = V.length;
20368
+ L.firstInput || (L.firstInput = be(_)), Y > 1 && !L.firstMultiple ? L.firstMultiple = be(_) : Y === 1 && (L.firstMultiple = !1);
20369
+ var ce = L.firstInput, Te = L.firstMultiple, je = Te ? Te.center : ce.center, Ye = _.center = He(V);
20370
+ _.timeStamp = f(), _.deltaTime = _.timeStamp - ce.timeStamp, _.angle = Ve(je, Ye), _.distance = he(je, Ye), Ae(L, _), _.offsetDirection = xe(_.deltaX, _.deltaY);
20379
20371
  var De = Ce(_.deltaTime, _.deltaX, _.deltaY);
20380
- _.overallVelocityX = De.x, _.overallVelocityY = De.y, _.overallVelocity = c(De.x) > c(De.y) ? De.x : De.y, _.scale = Te ? Be(Te.pointers, V) : 1, _.rotation = Te ? ye(Te.pointers, V) : 0, _.maxPointers = N.prevInput ? _.pointers.length > N.prevInput.maxPointers ? _.pointers.length : N.prevInput.maxPointers : _.pointers.length, ue(N, _);
20372
+ _.overallVelocityX = De.x, _.overallVelocityY = De.y, _.overallVelocity = c(De.x) > c(De.y) ? De.x : De.y, _.scale = Te ? Be(Te.pointers, V) : 1, _.rotation = Te ? ye(Te.pointers, V) : 0, _.maxPointers = L.prevInput ? _.pointers.length > L.prevInput.maxPointers ? _.pointers.length : L.prevInput.maxPointers : _.pointers.length, ue(L, _);
20381
20373
  var St = B.element;
20382
20374
  M(_.srcEvent.target, St) && (St = _.srcEvent.target), _.target = St;
20383
20375
  }
20384
20376
  function Ae(B, _) {
20385
- var N = _.center, V = B.offsetDelta || {}, Y = B.prevDelta || {}, ce = B.prevInput || {};
20377
+ var L = _.center, V = B.offsetDelta || {}, Y = B.prevDelta || {}, ce = B.prevInput || {};
20386
20378
  (_.eventType === ee || ce.eventType === $) && (Y = B.prevDelta = {
20387
20379
  x: ce.deltaX || 0,
20388
20380
  y: ce.deltaY || 0
20389
20381
  }, V = B.offsetDelta = {
20390
- x: N.x,
20391
- y: N.y
20392
- }), _.deltaX = Y.x + (N.x - V.x), _.deltaY = Y.y + (N.y - V.y);
20382
+ x: L.x,
20383
+ y: L.y
20384
+ }), _.deltaX = Y.x + (L.x - V.x), _.deltaY = Y.y + (L.y - V.y);
20393
20385
  }
20394
20386
  function ue(B, _) {
20395
- var N = B.lastInterval || _, V = _.timeStamp - N.timeStamp, Y, ce, Te, je;
20396
- if (_.eventType != X && (V > oe || N.velocity === r)) {
20397
- var Ye = _.deltaX - N.deltaX, De = _.deltaY - N.deltaY, St = Ce(V, Ye, De);
20387
+ var L = B.lastInterval || _, V = _.timeStamp - L.timeStamp, Y, ce, Te, je;
20388
+ if (_.eventType != X && (V > oe || L.velocity === r)) {
20389
+ var Ye = _.deltaX - L.deltaX, De = _.deltaY - L.deltaY, St = Ce(V, Ye, De);
20398
20390
  ce = St.x, Te = St.y, Y = c(St.x) > c(St.y) ? St.x : St.y, je = xe(Ye, De), B.lastInterval = _;
20399
20391
  } else
20400
- Y = N.velocity, ce = N.velocityX, Te = N.velocityY, je = N.direction;
20392
+ Y = L.velocity, ce = L.velocityX, Te = L.velocityY, je = L.direction;
20401
20393
  _.velocity = Y, _.velocityX = ce, _.velocityY = Te, _.direction = je;
20402
20394
  }
20403
20395
  function be(B) {
20404
- for (var _ = [], N = 0; N < B.pointers.length; )
20405
- _[N] = {
20406
- clientX: l(B.pointers[N].clientX),
20407
- clientY: l(B.pointers[N].clientY)
20408
- }, N++;
20396
+ for (var _ = [], L = 0; L < B.pointers.length; )
20397
+ _[L] = {
20398
+ clientX: l(B.pointers[L].clientX),
20399
+ clientY: l(B.pointers[L].clientY)
20400
+ }, L++;
20409
20401
  return {
20410
20402
  timeStamp: f(),
20411
20403
  pointers: _,
@@ -20421,30 +20413,30 @@ var Hammer = (function(n, t, e, r) {
20421
20413
  x: l(B[0].clientX),
20422
20414
  y: l(B[0].clientY)
20423
20415
  };
20424
- for (var N = 0, V = 0, Y = 0; Y < _; )
20425
- N += B[Y].clientX, V += B[Y].clientY, Y++;
20416
+ for (var L = 0, V = 0, Y = 0; Y < _; )
20417
+ L += B[Y].clientX, V += B[Y].clientY, Y++;
20426
20418
  return {
20427
- x: l(N / _),
20419
+ x: l(L / _),
20428
20420
  y: l(V / _)
20429
20421
  };
20430
20422
  }
20431
- function Ce(B, _, N) {
20423
+ function Ce(B, _, L) {
20432
20424
  return {
20433
20425
  x: _ / B || 0,
20434
- y: N / B || 0
20426
+ y: L / B || 0
20435
20427
  };
20436
20428
  }
20437
20429
  function xe(B, _) {
20438
20430
  return B === _ ? ne : c(B) >= c(_) ? B < 0 ? W : K : _ < 0 ? re : te;
20439
20431
  }
20440
- function he(B, _, N) {
20441
- N || (N = fe);
20442
- var V = _[N[0]] - B[N[0]], Y = _[N[1]] - B[N[1]];
20432
+ function he(B, _, L) {
20433
+ L || (L = fe);
20434
+ var V = _[L[0]] - B[L[0]], Y = _[L[1]] - B[L[1]];
20443
20435
  return Math.sqrt(V * V + Y * Y);
20444
20436
  }
20445
- function Ve(B, _, N) {
20446
- N || (N = fe);
20447
- var V = _[N[0]] - B[N[0]], Y = _[N[1]] - B[N[1]];
20437
+ function Ve(B, _, L) {
20438
+ L || (L = fe);
20439
+ var V = _[L[0]] - B[L[0]], Y = _[L[1]] - B[L[1]];
20448
20440
  return Math.atan2(Y, V) * 180 / Math.PI;
20449
20441
  }
20450
20442
  function ye(B, _) {
@@ -20467,8 +20459,8 @@ var Hammer = (function(n, t, e, r) {
20467
20459
  * @param {Object} ev
20468
20460
  */
20469
20461
  handler: function(_) {
20470
- var N = Ie[_.type];
20471
- N & ee && (_.button === 0 || _.button === 2) && (this.pressed = !0), N & Z && _.which !== 1 && (N = $), this.pressed && (N & $ && (this.pressed = !1), this.callback(this.manager, N, {
20462
+ var L = Ie[_.type];
20463
+ L & ee && (_.button === 0 || _.button === 2) && (this.pressed = !0), L & Z && _.which !== 1 && (L = $), this.pressed && (L & $ && (this.pressed = !1), this.callback(this.manager, L, {
20472
20464
  pointers: [_],
20473
20465
  changedPointers: [_],
20474
20466
  pointerType: j,
@@ -20488,10 +20480,10 @@ var Hammer = (function(n, t, e, r) {
20488
20480
  4: j,
20489
20481
  5: G
20490
20482
  // see https://twitter.com/jacobrossi/status/480596438489890816
20491
- }, Le = "pointerdown", Ue = "pointermove pointerup pointercancel";
20492
- n.MSPointerEvent && !n.PointerEvent && (Le = "MSPointerDown", Ue = "MSPointerMove MSPointerUp MSPointerCancel");
20483
+ }, Ne = "pointerdown", Ue = "pointermove pointerup pointercancel";
20484
+ n.MSPointerEvent && !n.PointerEvent && (Ne = "MSPointerDown", Ue = "MSPointerMove MSPointerUp MSPointerCancel");
20493
20485
  function $e() {
20494
- this.evEl = Le, this.evWin = Ue, se.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
20486
+ this.evEl = Ne, this.evWin = Ue, se.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
20495
20487
  }
20496
20488
  v($e, se, {
20497
20489
  /**
@@ -20499,13 +20491,13 @@ var Hammer = (function(n, t, e, r) {
20499
20491
  * @param {Object} ev
20500
20492
  */
20501
20493
  handler: function(_) {
20502
- var N = this.store, V = !1, Y = !1, ce = _.type.toLowerCase().replace("ms", ""), Te = Fe[ce], je = Oe[_.pointerType] || _.pointerType, Ye = je == Q, De = O(N, _.pointerId, "pointerId");
20503
- Te & ee && (_.button === 0 || _.button === 2 || Ye) ? De < 0 && (N.push(_), De = N.length - 1) : Te & ($ | X) ? V = !0 : !Ye && _.buttons === 0 && (V = !0, Y = !0, Te = Fe.pointerup), !(De < 0) && (Y || (N[De] = _), this.callback(this.manager, Te, {
20504
- pointers: N,
20494
+ var L = this.store, V = !1, Y = !1, ce = _.type.toLowerCase().replace("ms", ""), Te = Fe[ce], je = Oe[_.pointerType] || _.pointerType, Ye = je == Q, De = O(L, _.pointerId, "pointerId");
20495
+ Te & ee && (_.button === 0 || _.button === 2 || Ye) ? De < 0 && (L.push(_), De = L.length - 1) : Te & ($ | X) ? V = !0 : !Ye && _.buttons === 0 && (V = !0, Y = !0, Te = Fe.pointerup), !(De < 0) && (Y || (L[De] = _), this.callback(this.manager, Te, {
20496
+ pointers: L,
20505
20497
  changedPointers: [_],
20506
20498
  pointerType: je,
20507
- srcEvent: N[De]
20508
- }), V && N.splice(De, 1));
20499
+ srcEvent: L[De]
20500
+ }), V && L.splice(De, 1));
20509
20501
  }
20510
20502
  });
20511
20503
  var lt = {
@@ -20519,10 +20511,10 @@ var Hammer = (function(n, t, e, r) {
20519
20511
  }
20520
20512
  v(At, se, {
20521
20513
  handler: function(_) {
20522
- var N = lt[_.type];
20523
- if (N === ee && (this.started = !0), !!this.started) {
20524
- var V = We.call(this, _, N);
20525
- N & ($ | X) && V[0].length - V[1].length === 0 && (this.started = !1), this.callback(this.manager, N, {
20514
+ var L = lt[_.type];
20515
+ if (L === ee && (this.started = !0), !!this.started) {
20516
+ var V = We.call(this, _, L);
20517
+ L & ($ | X) && V[0].length - V[1].length === 0 && (this.started = !1), this.callback(this.manager, L, {
20526
20518
  pointers: V[0],
20527
20519
  changedPointers: V[1],
20528
20520
  pointerType: Q,
@@ -20532,8 +20524,8 @@ var Hammer = (function(n, t, e, r) {
20532
20524
  }
20533
20525
  });
20534
20526
  function We(B, _) {
20535
- var N = C(B.touches), V = C(B.changedTouches);
20536
- return _ & ($ | X) && (N = I(N.concat(V), "identifier")), [N, V];
20527
+ var L = C(B.touches), V = C(B.changedTouches);
20528
+ return _ & ($ | X) && (L = I(L.concat(V), "identifier")), [L, V];
20537
20529
  }
20538
20530
  var Ct = {
20539
20531
  touchstart: ee,
@@ -20541,13 +20533,13 @@ var Hammer = (function(n, t, e, r) {
20541
20533
  touchend: $,
20542
20534
  touchcancel: X
20543
20535
  }, _e = "touchstart touchmove touchend touchcancel";
20544
- function Ne() {
20536
+ function Le() {
20545
20537
  this.evTarget = _e, this.targetIds = {}, se.apply(this, arguments);
20546
20538
  }
20547
- v(Ne, se, {
20539
+ v(Le, se, {
20548
20540
  handler: function(_) {
20549
- var N = Ct[_.type], V = bt.call(this, _, N);
20550
- V && this.callback(this.manager, N, {
20541
+ var L = Ct[_.type], V = bt.call(this, _, L);
20542
+ V && this.callback(this.manager, L, {
20551
20543
  pointers: V[0],
20552
20544
  changedPointers: V[1],
20553
20545
  pointerType: Q,
@@ -20556,11 +20548,11 @@ var Hammer = (function(n, t, e, r) {
20556
20548
  }
20557
20549
  });
20558
20550
  function bt(B, _) {
20559
- var N = C(B.touches), V = this.targetIds;
20560
- if (_ & (ee | Z) && N.length === 1)
20561
- return V[N[0].identifier] = !0, [N, N];
20551
+ var L = C(B.touches), V = this.targetIds;
20552
+ if (_ & (ee | Z) && L.length === 1)
20553
+ return V[L[0].identifier] = !0, [L, L];
20562
20554
  var Y, ce, Te = C(B.changedTouches), je = [], Ye = this.target;
20563
- if (ce = N.filter(function(De) {
20555
+ if (ce = L.filter(function(De) {
20564
20556
  return M(De.target, Ye);
20565
20557
  }), _ === ee)
20566
20558
  for (Y = 0; Y < ce.length; )
@@ -20578,7 +20570,7 @@ var Hammer = (function(n, t, e, r) {
20578
20570
  function yt() {
20579
20571
  se.apply(this, arguments);
20580
20572
  var B = E(this.handler, this);
20581
- this.touch = new Ne(this.manager, B), this.mouse = new ze(this.manager, B), this.primaryTouch = null, this.lastTouches = [];
20573
+ this.touch = new Le(this.manager, B), this.mouse = new ze(this.manager, B), this.primaryTouch = null, this.lastTouches = [];
20582
20574
  }
20583
20575
  v(yt, se, {
20584
20576
  /**
@@ -20587,14 +20579,14 @@ var Hammer = (function(n, t, e, r) {
20587
20579
  * @param {String} inputEvent
20588
20580
  * @param {Object} inputData
20589
20581
  */
20590
- handler: function(_, N, V) {
20582
+ handler: function(_, L, V) {
20591
20583
  var Y = V.pointerType == Q, ce = V.pointerType == j;
20592
20584
  if (!(ce && V.sourceCapabilities && V.sourceCapabilities.firesTouchEvents)) {
20593
20585
  if (Y)
20594
- Rt.call(this, N, V);
20586
+ Rt.call(this, L, V);
20595
20587
  else if (ce && it.call(this, V))
20596
20588
  return;
20597
- this.callback(_, N, V);
20589
+ this.callback(_, L, V);
20598
20590
  }
20599
20591
  },
20600
20592
  /**
@@ -20610,18 +20602,18 @@ var Hammer = (function(n, t, e, r) {
20610
20602
  function tt(B) {
20611
20603
  var _ = B.changedPointers[0];
20612
20604
  if (_.identifier === this.primaryTouch) {
20613
- var N = { x: _.clientX, y: _.clientY };
20614
- this.lastTouches.push(N);
20605
+ var L = { x: _.clientX, y: _.clientY };
20606
+ this.lastTouches.push(L);
20615
20607
  var V = this.lastTouches, Y = function() {
20616
- var ce = V.indexOf(N);
20608
+ var ce = V.indexOf(L);
20617
20609
  ce > -1 && V.splice(ce, 1);
20618
20610
  };
20619
20611
  setTimeout(Y, It);
20620
20612
  }
20621
20613
  }
20622
20614
  function it(B) {
20623
- for (var _ = B.srcEvent.clientX, N = B.srcEvent.clientY, V = 0; V < this.lastTouches.length; V++) {
20624
- var Y = this.lastTouches[V], ce = Math.abs(_ - Y.x), Te = Math.abs(N - Y.y);
20615
+ for (var _ = B.srcEvent.clientX, L = B.srcEvent.clientY, V = 0; V < this.lastTouches.length; V++) {
20616
+ var Y = this.lastTouches[V], ce = Math.abs(_ - Y.x), Te = Math.abs(L - Y.y);
20625
20617
  if (ce <= Tt && Te <= Tt)
20626
20618
  return !0;
20627
20619
  }
@@ -20660,7 +20652,7 @@ var Hammer = (function(n, t, e, r) {
20660
20652
  * @param {Object} input
20661
20653
  */
20662
20654
  preventDefaults: function(B) {
20663
- var _ = B.srcEvent, N = B.offsetDirection;
20655
+ var _ = B.srcEvent, L = B.offsetDirection;
20664
20656
  if (this.manager.session.prevented) {
20665
20657
  _.preventDefault();
20666
20658
  return;
@@ -20671,7 +20663,7 @@ var Hammer = (function(n, t, e, r) {
20671
20663
  if (je && Ye && De)
20672
20664
  return;
20673
20665
  }
20674
- if (!(Te && ce) && (Y || ce && N & ie || Te && N & ve))
20666
+ if (!(Te && ce) && (Y || ce && L & ie || Te && L & ve))
20675
20667
  return this.preventSrc(_);
20676
20668
  },
20677
20669
  /**
@@ -20685,20 +20677,20 @@ var Hammer = (function(n, t, e, r) {
20685
20677
  function ft(B) {
20686
20678
  if (w(B, ke))
20687
20679
  return ke;
20688
- var _ = w(B, Ge), N = w(B, st);
20689
- return _ && N ? ke : _ || N ? _ ? Ge : st : w(B, Me) ? Me : we;
20680
+ var _ = w(B, Ge), L = w(B, st);
20681
+ return _ && L ? ke : _ || L ? _ ? Ge : st : w(B, Me) ? Me : we;
20690
20682
  }
20691
20683
  function Ht() {
20692
20684
  if (!Xe)
20693
20685
  return !1;
20694
20686
  var B = {}, _ = n.CSS && n.CSS.supports;
20695
- return ["auto", "manipulation", "pan-y", "pan-x", "pan-x pan-y", "none"].forEach(function(N) {
20696
- B[N] = _ ? n.CSS.supports("touch-action", N) : !0;
20687
+ return ["auto", "manipulation", "pan-y", "pan-x", "pan-x pan-y", "none"].forEach(function(L) {
20688
+ B[L] = _ ? n.CSS.supports("touch-action", L) : !0;
20697
20689
  }), B;
20698
20690
  }
20699
20691
  var Ft = 1, dt = 2, Pt = 4, xt = 8, pt = xt, mt = 16, gt = 32;
20700
20692
  function Et(B) {
20701
- this.options = A({}, this.defaults, B || {}), this.id = L(), this.manager = null, this.options.enable = T(this.options.enable, !0), this.state = Ft, this.simultaneous = {}, this.requireFail = [];
20693
+ this.options = A({}, this.defaults, B || {}), this.id = N(), this.manager = null, this.options.enable = T(this.options.enable, !0), this.state = Ft, this.simultaneous = {}, this.requireFail = [];
20702
20694
  }
20703
20695
  Et.prototype = {
20704
20696
  /**
@@ -20777,11 +20769,11 @@ var Hammer = (function(n, t, e, r) {
20777
20769
  * @param {Object} input
20778
20770
  */
20779
20771
  emit: function(B) {
20780
- var _ = this, N = this.state;
20772
+ var _ = this, L = this.state;
20781
20773
  function V(Y) {
20782
20774
  _.manager.emit(Y, B);
20783
20775
  }
20784
- N < xt && V(_.options.event + Lt(N)), V(_.options.event), B.additionalEvent && V(B.additionalEvent), N >= xt && V(_.options.event + Lt(N));
20776
+ L < xt && V(_.options.event + Nt(L)), V(_.options.event), B.additionalEvent && V(B.additionalEvent), L >= xt && V(_.options.event + Nt(L));
20785
20777
  },
20786
20778
  /**
20787
20779
  * Check that all the require failure recognizers has failed,
@@ -20843,15 +20835,15 @@ var Hammer = (function(n, t, e, r) {
20843
20835
  reset: function() {
20844
20836
  }
20845
20837
  };
20846
- function Lt(B) {
20838
+ function Nt(B) {
20847
20839
  return B & mt ? "cancel" : B & xt ? "end" : B & Pt ? "move" : B & dt ? "start" : "";
20848
20840
  }
20849
20841
  function Ot(B) {
20850
20842
  return B == te ? "down" : B == re ? "up" : B == W ? "left" : B == K ? "right" : "";
20851
20843
  }
20852
20844
  function _t(B, _) {
20853
- var N = _.manager;
20854
- return N ? N.get(B) : B;
20845
+ var L = _.manager;
20846
+ return L ? L.get(B) : B;
20855
20847
  }
20856
20848
  function at() {
20857
20849
  Et.apply(this, arguments);
@@ -20885,8 +20877,8 @@ var Hammer = (function(n, t, e, r) {
20885
20877
  * @returns {*} State
20886
20878
  */
20887
20879
  process: function(B) {
20888
- var _ = this.state, N = B.eventType, V = _ & (dt | Pt), Y = this.attrTest(B);
20889
- return V && (N & X || !Y) ? _ | mt : V || Y ? N & $ ? _ | xt : _ & dt ? _ | Pt : dt : gt;
20880
+ var _ = this.state, L = B.eventType, V = _ & (dt | Pt), Y = this.attrTest(B);
20881
+ return V && (L & X || !Y) ? _ | mt : V || Y ? L & $ ? _ | xt : _ & dt ? _ | Pt : dt : gt;
20890
20882
  }
20891
20883
  });
20892
20884
  function vt() {
@@ -20908,8 +20900,8 @@ var Hammer = (function(n, t, e, r) {
20908
20900
  return B & ie && _.push(st), B & ve && _.push(Ge), _;
20909
20901
  },
20910
20902
  directionTest: function(B) {
20911
- var _ = this.options, N = !0, V = B.distance, Y = B.direction, ce = B.deltaX, Te = B.deltaY;
20912
- return Y & _.direction || (_.direction & ie ? (Y = ce === 0 ? ne : ce < 0 ? W : K, N = ce != this.pX, V = Math.abs(B.deltaX)) : (Y = Te === 0 ? ne : Te < 0 ? re : te, N = Te != this.pY, V = Math.abs(B.deltaY))), B.direction = Y, N && V > _.threshold && Y & _.direction;
20903
+ var _ = this.options, L = !0, V = B.distance, Y = B.direction, ce = B.deltaX, Te = B.deltaY;
20904
+ return Y & _.direction || (_.direction & ie ? (Y = ce === 0 ? ne : ce < 0 ? W : K, L = ce != this.pX, V = Math.abs(B.deltaX)) : (Y = Te === 0 ? ne : Te < 0 ? re : te, L = Te != this.pY, V = Math.abs(B.deltaY))), B.direction = Y, L && V > _.threshold && Y & _.direction;
20913
20905
  },
20914
20906
  attrTest: function(B) {
20915
20907
  return at.prototype.attrTest.call(this, B) && (this.state & dt || !(this.state & dt) && this.directionTest(B));
@@ -20967,8 +20959,8 @@ var Hammer = (function(n, t, e, r) {
20967
20959
  return [we];
20968
20960
  },
20969
20961
  process: function(B) {
20970
- var _ = this.options, N = B.pointers.length === _.pointers, V = B.distance < _.threshold, Y = B.deltaTime > _.time;
20971
- if (this._input = B, !V || !N || B.eventType & ($ | X) && !Y)
20962
+ var _ = this.options, L = B.pointers.length === _.pointers, V = B.distance < _.threshold, Y = B.deltaTime > _.time;
20963
+ if (this._input = B, !V || !L || B.eventType & ($ | X) && !Y)
20972
20964
  this.reset();
20973
20965
  else if (B.eventType & ee)
20974
20966
  this.reset(), this._timer = d(function() {
@@ -21024,8 +21016,8 @@ var Hammer = (function(n, t, e, r) {
21024
21016
  return vt.prototype.getTouchAction.call(this);
21025
21017
  },
21026
21018
  attrTest: function(B) {
21027
- var _ = this.options.direction, N;
21028
- return _ & (ie | ve) ? N = B.overallVelocity : _ & ie ? N = B.overallVelocityX : _ & ve && (N = B.overallVelocityY), this._super.attrTest.call(this, B) && _ & B.offsetDirection && B.distance > this.options.threshold && B.maxPointers == this.options.pointers && c(N) > this.options.velocity && B.eventType & $;
21019
+ var _ = this.options.direction, L;
21020
+ return _ & (ie | ve) ? L = B.overallVelocity : _ & ie ? L = B.overallVelocityX : _ & ve && (L = B.overallVelocityY), this._super.attrTest.call(this, B) && _ & B.offsetDirection && B.distance > this.options.threshold && B.maxPointers == this.options.pointers && c(L) > this.options.velocity && B.eventType & $;
21029
21021
  },
21030
21022
  emit: function(B) {
21031
21023
  var _ = Ot(B.offsetDirection);
@@ -21057,10 +21049,10 @@ var Hammer = (function(n, t, e, r) {
21057
21049
  return [Me];
21058
21050
  },
21059
21051
  process: function(B) {
21060
- var _ = this.options, N = B.pointers.length === _.pointers, V = B.distance < _.threshold, Y = B.deltaTime < _.time;
21052
+ var _ = this.options, L = B.pointers.length === _.pointers, V = B.distance < _.threshold, Y = B.deltaTime < _.time;
21061
21053
  if (this.reset(), B.eventType & ee && this.count === 0)
21062
21054
  return this.failTimeout();
21063
- if (V && Y && N) {
21055
+ if (V && Y && L) {
21064
21056
  if (B.eventType != $)
21065
21057
  return this.failTimeout();
21066
21058
  var ce = this.pTime ? B.timeStamp - this.pTime < _.interval : !0, Te = !this.pCenter || he(this.pCenter, B.center) < _.posThreshold;
@@ -21186,9 +21178,9 @@ var Hammer = (function(n, t, e, r) {
21186
21178
  };
21187
21179
  var rt = 1, ut = 2;
21188
21180
  function Ke(B, _) {
21189
- this.options = A({}, qe.defaults, _ || {}), this.options.inputTarget = this.options.inputTarget || B, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = B, this.input = le(this), this.touchAction = new Je(this, this.options.touchAction), ht(this, !0), p(this.options.recognizers, function(N) {
21190
- var V = this.add(new N[0](N[1]));
21191
- N[2] && V.recognizeWith(N[2]), N[3] && V.requireFailure(N[3]);
21181
+ this.options = A({}, qe.defaults, _ || {}), this.options.inputTarget = this.options.inputTarget || B, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = B, this.input = le(this), this.touchAction = new Je(this, this.options.touchAction), ht(this, !0), p(this.options.recognizers, function(L) {
21182
+ var V = this.add(new L[0](L[1]));
21183
+ L[2] && V.recognizeWith(L[2]), L[3] && V.requireFailure(L[3]);
21192
21184
  }, this);
21193
21185
  }
21194
21186
  Ke.prototype = {
@@ -21219,12 +21211,12 @@ var Hammer = (function(n, t, e, r) {
21219
21211
  var _ = this.session;
21220
21212
  if (!_.stopped) {
21221
21213
  this.touchAction.preventDefaults(B);
21222
- var N, V = this.recognizers, Y = _.curRecognizer;
21214
+ var L, V = this.recognizers, Y = _.curRecognizer;
21223
21215
  (!Y || Y && Y.state & pt) && (Y = _.curRecognizer = null);
21224
21216
  for (var ce = 0; ce < V.length; )
21225
- N = V[ce], _.stopped !== ut && // 1
21226
- (!Y || N == Y || // 2
21227
- N.canRecognizeWith(Y)) ? N.recognize(B) : N.reset(), !Y && N.state & (dt | Pt | xt) && (Y = _.curRecognizer = N), ce++;
21217
+ L = V[ce], _.stopped !== ut && // 1
21218
+ (!Y || L == Y || // 2
21219
+ L.canRecognizeWith(Y)) ? L.recognize(B) : L.reset(), !Y && L.state & (dt | Pt | xt) && (Y = _.curRecognizer = L), ce++;
21228
21220
  }
21229
21221
  },
21230
21222
  /**
@@ -21235,9 +21227,9 @@ var Hammer = (function(n, t, e, r) {
21235
21227
  get: function(B) {
21236
21228
  if (B instanceof Et)
21237
21229
  return B;
21238
- for (var _ = this.recognizers, N = 0; N < _.length; N++)
21239
- if (_[N].options.event == B)
21240
- return _[N];
21230
+ for (var _ = this.recognizers, L = 0; L < _.length; L++)
21231
+ if (_[L].options.event == B)
21232
+ return _[L];
21241
21233
  return null;
21242
21234
  },
21243
21235
  /**
@@ -21261,8 +21253,8 @@ var Hammer = (function(n, t, e, r) {
21261
21253
  if (h(B, "remove", this))
21262
21254
  return this;
21263
21255
  if (B = this.get(B), B) {
21264
- var _ = this.recognizers, N = O(_, B);
21265
- N !== -1 && (_.splice(N, 1), this.touchAction.update());
21256
+ var _ = this.recognizers, L = O(_, B);
21257
+ L !== -1 && (_.splice(L, 1), this.touchAction.update());
21266
21258
  }
21267
21259
  return this;
21268
21260
  },
@@ -21274,9 +21266,9 @@ var Hammer = (function(n, t, e, r) {
21274
21266
  */
21275
21267
  on: function(B, _) {
21276
21268
  if (B !== r && _ !== r) {
21277
- var N = this.handlers;
21269
+ var L = this.handlers;
21278
21270
  return p(P(B), function(V) {
21279
- N[V] = N[V] || [], N[V].push(_);
21271
+ L[V] = L[V] || [], L[V].push(_);
21280
21272
  }), this;
21281
21273
  }
21282
21274
  },
@@ -21288,9 +21280,9 @@ var Hammer = (function(n, t, e, r) {
21288
21280
  */
21289
21281
  off: function(B, _) {
21290
21282
  if (B !== r) {
21291
- var N = this.handlers;
21283
+ var L = this.handlers;
21292
21284
  return p(P(B), function(V) {
21293
- _ ? N[V] && N[V].splice(O(N[V], _), 1) : delete N[V];
21285
+ _ ? L[V] && L[V].splice(O(L[V], _), 1) : delete L[V];
21294
21286
  }), this;
21295
21287
  }
21296
21288
  },
@@ -21301,13 +21293,13 @@ var Hammer = (function(n, t, e, r) {
21301
21293
  */
21302
21294
  emit: function(B, _) {
21303
21295
  this.options.domEvents && Bt(B, _);
21304
- var N = this.handlers[B] && this.handlers[B].slice();
21305
- if (!(!N || !N.length)) {
21296
+ var L = this.handlers[B] && this.handlers[B].slice();
21297
+ if (!(!L || !L.length)) {
21306
21298
  _.type = B, _.preventDefault = function() {
21307
21299
  _.srcEvent.preventDefault();
21308
21300
  };
21309
- for (var V = 0; V < N.length; )
21310
- N[V](_), V++;
21301
+ for (var V = 0; V < L.length; )
21302
+ L[V](_), V++;
21311
21303
  }
21312
21304
  },
21313
21305
  /**
@@ -21319,17 +21311,17 @@ var Hammer = (function(n, t, e, r) {
21319
21311
  }
21320
21312
  };
21321
21313
  function ht(B, _) {
21322
- var N = B.element;
21323
- if (N.style) {
21314
+ var L = B.element;
21315
+ if (L.style) {
21324
21316
  var V;
21325
21317
  p(B.options.cssProps, function(Y, ce) {
21326
- V = H(N.style, ce), _ ? (B.oldCssProps[V] = N.style[V], N.style[V] = Y) : N.style[V] = B.oldCssProps[V] || "";
21318
+ V = H(L.style, ce), _ ? (B.oldCssProps[V] = L.style[V], L.style[V] = Y) : L.style[V] = B.oldCssProps[V] || "";
21327
21319
  }), _ || (B.oldCssProps = {});
21328
21320
  }
21329
21321
  }
21330
21322
  function Bt(B, _) {
21331
- var N = t.createEvent("Event");
21332
- N.initEvent(B, !0, !0), N.gesture = _, _.target.dispatchEvent(N);
21323
+ var L = t.createEvent("Event");
21324
+ L.initEvent(B, !0, !0), L.gesture = _, _.target.dispatchEvent(L);
21333
21325
  }
21334
21326
  return A(qe, {
21335
21327
  INPUT_START: ee,
@@ -21354,7 +21346,7 @@ var Hammer = (function(n, t, e, r) {
21354
21346
  Manager: Ke,
21355
21347
  Input: se,
21356
21348
  TouchAction: Je,
21357
- TouchInput: Ne,
21349
+ TouchInput: Le,
21358
21350
  MouseInput: ze,
21359
21351
  PointerEventInput: $e,
21360
21352
  TouchMouseInput: yt,
@@ -21549,13 +21541,13 @@ var Hammer = (function(n, t, e, r) {
21549
21541
  pointerType: C.pointerType,
21550
21542
  srcEvent: C.srcEvent,
21551
21543
  pointers: C.pointers.map(function(F) {
21552
- var L = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(L, r.camera);
21544
+ var N = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(N, r.camera);
21553
21545
  return {
21554
21546
  x: F.x,
21555
21547
  y: F.y,
21556
21548
  delta: 0,
21557
21549
  buttons: 0,
21558
- coords: L,
21550
+ coords: N,
21559
21551
  raycaster: k
21560
21552
  };
21561
21553
  }),
@@ -21563,13 +21555,13 @@ var Hammer = (function(n, t, e, r) {
21563
21555
  isFinal: C.isFinal,
21564
21556
  scale: C.scale,
21565
21557
  center: (function(F) {
21566
- var L = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(L, r.camera);
21558
+ var N = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(N, r.camera);
21567
21559
  return {
21568
21560
  x: F.x,
21569
21561
  y: F.y,
21570
21562
  delta: 0,
21571
21563
  buttons: 0,
21572
- coords: L,
21564
+ coords: N,
21573
21565
  raycaster: k
21574
21566
  };
21575
21567
  })(C.center),
@@ -21591,13 +21583,13 @@ var Hammer = (function(n, t, e, r) {
21591
21583
  pointerType: C.pointerType,
21592
21584
  srcEvent: C.srcEvent,
21593
21585
  pointers: C.pointers.map(function(F) {
21594
- var L = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(L, r.camera);
21586
+ var N = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(N, r.camera);
21595
21587
  return {
21596
21588
  x: F.x,
21597
21589
  y: F.y,
21598
21590
  delta: 0,
21599
21591
  buttons: 0,
21600
- coords: L,
21592
+ coords: N,
21601
21593
  raycaster: k
21602
21594
  };
21603
21595
  }),
@@ -21605,13 +21597,13 @@ var Hammer = (function(n, t, e, r) {
21605
21597
  isFinal: !0,
21606
21598
  scale: C.scale,
21607
21599
  center: (function(F) {
21608
- var L = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(L, r.camera);
21600
+ var N = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(N, r.camera);
21609
21601
  return {
21610
21602
  x: F.x,
21611
21603
  y: F.y,
21612
21604
  delta: 0,
21613
21605
  buttons: 0,
21614
- coords: L,
21606
+ coords: N,
21615
21607
  raycaster: k
21616
21608
  };
21617
21609
  })(C.center),
@@ -21633,11 +21625,11 @@ var Hammer = (function(n, t, e, r) {
21633
21625
  pointerType: C.pointerType,
21634
21626
  srcEvent: C.srcEvent,
21635
21627
  pointers: C.pointers.map(function(F) {
21636
- var L, k = r.relativeClientPosition(F), D = new THREE.Raycaster();
21628
+ var N, k = r.relativeClientPosition(F), D = new THREE.Raycaster();
21637
21629
  return D.params.Points = { threshold: 0.1 }, D.setFromCamera(k, r.camera), {
21638
21630
  x: F.x,
21639
21631
  y: F.y,
21640
- delta: (L = F.delta) !== null && L !== void 0 ? L : 0,
21632
+ delta: (N = F.delta) !== null && N !== void 0 ? N : 0,
21641
21633
  buttons: 0,
21642
21634
  coords: k,
21643
21635
  raycaster: D
@@ -21647,13 +21639,13 @@ var Hammer = (function(n, t, e, r) {
21647
21639
  isFinal: C.type === "pinchend",
21648
21640
  scale: C.scale,
21649
21641
  center: (function(F) {
21650
- var L = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(L, r.camera);
21642
+ var N = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(N, r.camera);
21651
21643
  return {
21652
21644
  x: F.x,
21653
21645
  y: F.y,
21654
21646
  delta: 0,
21655
21647
  buttons: 0,
21656
- coords: L,
21648
+ coords: N,
21657
21649
  raycaster: k
21658
21650
  };
21659
21651
  })(C.center),
@@ -21675,13 +21667,13 @@ var Hammer = (function(n, t, e, r) {
21675
21667
  pointerType: C.pointerType,
21676
21668
  srcEvent: C.srcEvent,
21677
21669
  pointers: C.pointers.map(function(F) {
21678
- var L = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(L, r.camera);
21670
+ var N = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(N, r.camera);
21679
21671
  return {
21680
21672
  x: F.x,
21681
21673
  y: F.y,
21682
21674
  delta: 0,
21683
21675
  buttons: 0,
21684
- coords: L,
21676
+ coords: N,
21685
21677
  raycaster: k
21686
21678
  };
21687
21679
  }),
@@ -21689,13 +21681,13 @@ var Hammer = (function(n, t, e, r) {
21689
21681
  isFinal: !0,
21690
21682
  scale: C.scale,
21691
21683
  center: (function(F) {
21692
- var L = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(L, r.camera);
21684
+ var N = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(N, r.camera);
21693
21685
  return {
21694
21686
  x: F.x,
21695
21687
  y: F.y,
21696
21688
  delta: 0,
21697
21689
  buttons: 0,
21698
- coords: L,
21690
+ coords: N,
21699
21691
  raycaster: k
21700
21692
  };
21701
21693
  })(C.center),
@@ -21714,7 +21706,7 @@ var Hammer = (function(n, t, e, r) {
21714
21706
  var F = {
21715
21707
  x: H.clientX,
21716
21708
  y: H.clientY
21717
- }, L = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(L, r.camera), D = __assign(__assign({}, F), { coords: L, raycaster: k, buttons: H.buttons, delta: 0 }), U = C === "pinchend" ? I : I - H.deltaY / 280, z = createEvent("gesture.pinch", {
21709
+ }, N = r.relativeClientPosition(F), k = r.createRaycasterFromCamera(N, r.camera), D = __assign(__assign({}, F), { coords: N, raycaster: k, buttons: H.buttons, delta: 0 }), U = C === "pinchend" ? I : I - H.deltaY / 280, z = createEvent("gesture.pinch", {
21718
21710
  target: H.target,
21719
21711
  pointerType: "mouse",
21720
21712
  srcEvent: H,
@@ -21735,11 +21727,11 @@ var Hammer = (function(n, t, e, r) {
21735
21727
  var I, H = { x: C.clientX, y: C.clientY };
21736
21728
  if (o(H)) {
21737
21729
  if (C.preventDefault(), C.ctrlKey) {
21738
- var F = (I = d == null ? void 0 : d.prevEvent.scale) !== null && I !== void 0 ? I : 1, L = p(d ? "pinch" : "pinchstart", F, C);
21730
+ var F = (I = d == null ? void 0 : d.prevEvent.scale) !== null && I !== void 0 ? I : 1, N = p(d ? "pinch" : "pinchstart", F, C);
21739
21731
  d === null ? d = {
21740
- firstEvent: L,
21741
- prevEvent: L
21742
- } : d.prevEvent = L, r.onPinchGesture(L), h !== null && window.clearTimeout(h), h = window.setTimeout(function() {
21732
+ firstEvent: N,
21733
+ prevEvent: N
21734
+ } : d.prevEvent = N, r.onPinchGesture(N), h !== null && window.clearTimeout(h), h = window.setTimeout(function() {
21743
21735
  var q;
21744
21736
  h = null;
21745
21737
  var j = (q = d == null ? void 0 : d.prevEvent.scale) !== null && q !== void 0 ? q : 1, G = p("pinchend", j, C);
@@ -21749,7 +21741,7 @@ var Hammer = (function(n, t, e, r) {
21749
21741
  var k = (Math.abs(C.deltaY) > Math.abs(C.deltaX) ? C.deltaY : C.deltaX) / -60, D = r.mouseWheelState !== void 0, U = {
21750
21742
  x: C.clientX,
21751
21743
  y: C.clientY
21752
- }, z = r.relativeClientPosition(U), J = r.createRaycasterFromCamera(z, r.camera), Q = __assign(__assign({}, U), { coords: z, raycaster: J, buttons: C.buttons, delta: k }), L = createEvent("gesture.mousewheel", {
21744
+ }, z = r.relativeClientPosition(U), J = r.createRaycasterFromCamera(z, r.camera), Q = __assign(__assign({}, U), { coords: z, raycaster: J, buttons: C.buttons, delta: k }), N = createEvent("gesture.mousewheel", {
21753
21745
  target: C.target,
21754
21746
  pointerType: "mouse",
21755
21747
  srcEvent: C,
@@ -21765,7 +21757,7 @@ var Hammer = (function(n, t, e, r) {
21765
21757
  userAction: !0,
21766
21758
  state: __assign(__assign({ mode: r.mode }, r.currentPano), clonePose(r.camera.pose))
21767
21759
  });
21768
- r.onMouseWheel(L), r.mouseWheelState && clearTimeout(r.mouseWheelState.timer), r.mouseWheelState = {
21760
+ r.onMouseWheel(N), r.mouseWheelState && clearTimeout(r.mouseWheelState.timer), r.mouseWheelState = {
21769
21761
  timer: setTimeout(function() {
21770
21762
  r.mouseWheelState = void 0;
21771
21763
  var j = createEvent("gesture.mousewheel", {
@@ -21801,7 +21793,7 @@ var Hammer = (function(n, t, e, r) {
21801
21793
  var H = {
21802
21794
  x: C.clientX,
21803
21795
  y: C.clientY
21804
- }, F = r.relativeClientPosition(H), L = r.createRaycasterFromCamera(F, r.camera), k = __assign(__assign({}, H), { coords: F, raycaster: L, buttons: C.buttons, delta: 0 }), D = createEvent("gesture.mousemove", {
21796
+ }, F = r.relativeClientPosition(H), N = r.createRaycasterFromCamera(F, r.camera), k = __assign(__assign({}, H), { coords: F, raycaster: N, buttons: C.buttons, delta: 0 }), D = createEvent("gesture.mousemove", {
21805
21797
  target: C.target,
21806
21798
  pointerType: "mouse",
21807
21799
  srcEvent: C,
@@ -21839,10 +21831,10 @@ var Hammer = (function(n, t, e, r) {
21839
21831
  timeStamp: now(),
21840
21832
  stop: noop
21841
21833
  });
21842
- var H = now() - r.pressState.timeStamp, F = createEvent(r.pressState.event.type, __assign(__assign({}, r.pressState.event), { isFirst: I, isFinal: !1, center: __assign(__assign({}, r.pressState.event.center), { delta: H }), pointers: r.pressState.event.pointers.map(function(L) {
21843
- return __assign(__assign({}, L), { delta: H });
21834
+ var H = now() - r.pressState.timeStamp, F = createEvent(r.pressState.event.type, __assign(__assign({}, r.pressState.event), { isFirst: I, isFinal: !1, center: __assign(__assign({}, r.pressState.event.center), { delta: H }), pointers: r.pressState.event.pointers.map(function(N) {
21835
+ return __assign(__assign({}, N), { delta: H });
21844
21836
  }) }));
21845
- r.onPressGesture(F), r.pressState && (r.pressState.stop = AnimationFrameLoop.shared.add(function(L) {
21837
+ r.onPressGesture(F), r.pressState && (r.pressState.stop = AnimationFrameLoop.shared.add(function(N) {
21846
21838
  y(C);
21847
21839
  }, !0, 1));
21848
21840
  }, v = function(C) {
@@ -21850,15 +21842,15 @@ var Hammer = (function(n, t, e, r) {
21850
21842
  var I = {
21851
21843
  x: C.changedTouches[0].clientX,
21852
21844
  y: C.changedTouches[0].clientY
21853
- }, H = r.relativeClientPosition(I), F = r.createRaycasterFromCamera(H, r.camera), L = __assign(__assign({}, I), { coords: H, raycaster: F, buttons: 0, delta: 0 }), k = createEvent("gesture.press", {
21845
+ }, H = r.relativeClientPosition(I), F = r.createRaycasterFromCamera(H, r.camera), N = __assign(__assign({}, I), { coords: H, raycaster: F, buttons: 0, delta: 0 }), k = createEvent("gesture.press", {
21854
21846
  target: C.target,
21855
21847
  pointerType: "touch",
21856
21848
  srcEvent: C,
21857
- pointers: [__assign({}, L)],
21849
+ pointers: [__assign({}, N)],
21858
21850
  isFirst: !1,
21859
21851
  isFinal: !1,
21860
21852
  scale: 0,
21861
- center: L,
21853
+ center: N,
21862
21854
  velocityX: 0,
21863
21855
  velocityY: 0,
21864
21856
  overallVelocityX: 0,
@@ -21873,15 +21865,15 @@ var Hammer = (function(n, t, e, r) {
21873
21865
  var I = {
21874
21866
  x: C.clientX,
21875
21867
  y: C.clientY
21876
- }, H = r.relativeClientPosition(I), F = r.createRaycasterFromCamera(H, r.camera), L = __assign(__assign({}, I), { coords: H, raycaster: F, buttons: C.buttons, delta: 0 }), k = createEvent("gesture.press", {
21868
+ }, H = r.relativeClientPosition(I), F = r.createRaycasterFromCamera(H, r.camera), N = __assign(__assign({}, I), { coords: H, raycaster: F, buttons: C.buttons, delta: 0 }), k = createEvent("gesture.press", {
21877
21869
  target: C.target,
21878
21870
  pointerType: "mouse",
21879
21871
  srcEvent: C,
21880
- pointers: [__assign({}, L)],
21872
+ pointers: [__assign({}, N)],
21881
21873
  isFirst: !1,
21882
21874
  isFinal: !1,
21883
21875
  scale: 0,
21884
- center: L,
21876
+ center: N,
21885
21877
  velocityX: 0,
21886
21878
  velocityY: 0,
21887
21879
  overallVelocityX: 0,
@@ -21908,10 +21900,10 @@ var Hammer = (function(n, t, e, r) {
21908
21900
  F = !0;
21909
21901
  break;
21910
21902
  }
21911
- var L = {
21903
+ var N = {
21912
21904
  x: C.clientX,
21913
21905
  y: C.clientY
21914
- }, k = r.relativeClientPosition(L), D = r.createRaycasterFromCamera(k, r.camera), U = __assign(__assign({}, L), { coords: k, raycaster: D, buttons: 0, delta: 0 }), z = createEvent("gesture.pinch", {
21906
+ }, k = r.relativeClientPosition(N), D = r.createRaycasterFromCamera(k, r.camera), U = __assign(__assign({}, N), { coords: k, raycaster: D, buttons: 0, delta: 0 }), z = createEvent("gesture.pinch", {
21915
21907
  target: C.target,
21916
21908
  pointerType: "mouse",
21917
21909
  srcEvent: C,
@@ -23126,8 +23118,8 @@ void main() {
23126
23118
  return e.pedding--, Promise.reject(me);
23127
23119
  }), W = new TileMesh(X, le), W.name = "tiling:tile-".concat(ve), W.visible = !1, W.appearDuration = I.appearDuration, I.tileMeshes.set(X, W), I.scene.add(W), W.updateTime(o), r = !0;
23128
23120
  }, I = this, H = 0, F = M; H < F.length; H++) {
23129
- var L = F[H];
23130
- C(L);
23121
+ var N = F[H];
23122
+ C(N);
23131
23123
  }
23132
23124
  var k = [], D = [];
23133
23125
  this.tileMeshes.forEach(function(X, ne) {
@@ -23461,13 +23453,13 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
23461
23453
  P.copy(O), M = !0;
23462
23454
  }
23463
23455
  p.distance = this.locationMotion.value.distance, p.offset = new THREE.Vector3(P.x + (O.x - P.x) * w, P.y + (O.y - P.y) * w, P.z + (O.z - P.z) * w);
23464
- for (var F = [], L = [], k = 0, D = this.locationMotion.keyframes; k < D.length; k++) {
23456
+ for (var F = [], N = [], k = 0, D = this.locationMotion.keyframes; k < D.length; k++) {
23465
23457
  var U = D[k], z = U.key, J = U.progress;
23466
- z !== void 0 && (F.push(z), J > this.locationMotion.progress && L.push(z));
23458
+ z !== void 0 && (F.push(z), J > this.locationMotion.progress && N.push(z));
23467
23459
  }
23468
23460
  for (var Q = 0, q = Object.keys(this.panoResources); Q < q.length; Q++) {
23469
23461
  var j = q[Q];
23470
- if (!(L.indexOf(j) >= 0)) {
23462
+ if (!(N.indexOf(j) >= 0)) {
23471
23463
  var G = this.panoResources[j];
23472
23464
  if (G.panoPicture) {
23473
23465
  var oe = G.panoPicture.map;
@@ -23622,7 +23614,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
23622
23614
  });
23623
23615
  }
23624
23616
  {
23625
- var w = (l = this.modelScene.parameter.progress) !== null && l !== void 0 ? l : 1, Fe = Math.round(w), Oe = this.modelScene.parameter.pano0, Le = this.modelScene.parameter.pano1, Ue = Fe === 0 ? Oe : Le, H = void 0;
23617
+ var w = (l = this.modelScene.parameter.progress) !== null && l !== void 0 ? l : 1, Fe = Math.round(w), Oe = this.modelScene.parameter.pano0, Ne = this.modelScene.parameter.pano1, Ue = Fe === 0 ? Oe : Ne, H = void 0;
23626
23618
  if (Ue && (H = this.works.getObserver(Ue.panoId), H || (H = this.panoPictureObserverMap.get(Ue))), this.tiling.appearDuration = this.tileAppearDuration, this.tiling.maxRequest = w < (canUseNativeImageBitmap() ? 0.6 : 0.99) ? 0 : this.tileMaxRequest, this.tiling.imageOptions = this.imageOptions, !H || !Ue || this.tileLevelForFov === !1 || this.camera.perspToOrtho.x > 0) {
23627
23619
  this.tiling.setObserver(null);
23628
23620
  var $e = {
@@ -23659,9 +23651,9 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
23659
23651
  matrixInverse: this.tiling.camera.matrixWorldInverse,
23660
23652
  projectionMatrix: this.tiling.camera.projectionMatrix,
23661
23653
  pano: Fe,
23662
- opacity: (Oe == null ? void 0 : Oe.panoId) === (Le == null ? void 0 : Le.panoId) ? 1 : easeInQuart(Math.abs(((c = this.modelScene.parameter.progress) !== null && c !== void 0 ? c : 0) - 0.5) * 2)
23663
- }, Ne = this.modelScene.parameter.refinedScreen;
23664
- (Ct || _e.pano !== (Ne == null ? void 0 : Ne.pano) || _e.opacity !== (Ne == null ? void 0 : Ne.opacity)) && this.modelScene.parameter.set("refinedScreen", _e);
23654
+ opacity: (Oe == null ? void 0 : Oe.panoId) === (Ne == null ? void 0 : Ne.panoId) ? 1 : easeInQuart(Math.abs(((c = this.modelScene.parameter.progress) !== null && c !== void 0 ? c : 0) - 0.5) * 2)
23655
+ }, Le = this.modelScene.parameter.refinedScreen;
23656
+ (Ct || _e.pano !== (Le == null ? void 0 : Le.pano) || _e.opacity !== (Le == null ? void 0 : Le.opacity)) && this.modelScene.parameter.set("refinedScreen", _e);
23665
23657
  }
23666
23658
  }
23667
23659
  if (this.panoVideo.object.position.copy(this.camera.position), this.panoVideo.updateTime(e), Z && Z.images.video && (this.needsRender = !0), this.intersectMesh && this.intersectMesh.parent && Z && Z.position.y - Z.standingPosition.y > 10) {
@@ -23670,9 +23662,9 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
23670
23662
  } else
23671
23663
  this.intersectMesh.scale.setScalar(1);
23672
23664
  {
23673
- var yt = T.effect, Rt = this.modelScene.parameter, Oe = Rt.pano0, Le = Rt.pano1;
23674
- if (Oe && Le && Oe !== Le && (yt === "fly" || yt === "model") && this.flyEffectUseDepthBuffer) {
23675
- if (((f = this.modelScene.parameter.pano0Depth) === null || f === void 0 ? void 0 : f.panoId) !== Oe.panoId || ((d = this.modelScene.parameter.pano1Depth) === null || d === void 0 ? void 0 : d.panoId) !== Le.panoId) {
23665
+ var yt = T.effect, Rt = this.modelScene.parameter, Oe = Rt.pano0, Ne = Rt.pano1;
23666
+ if (Oe && Ne && Oe !== Ne && (yt === "fly" || yt === "model") && this.flyEffectUseDepthBuffer) {
23667
+ if (((f = this.modelScene.parameter.pano0Depth) === null || f === void 0 ? void 0 : f.panoId) !== Oe.panoId || ((d = this.modelScene.parameter.pano1Depth) === null || d === void 0 ? void 0 : d.panoId) !== Ne.panoId) {
23676
23668
  var tt = 500, it = 512;
23677
23669
  this.pano0DepthCubeRenderTarget ? this.pano0DepthCubeRenderTarget.width !== it && this.pano0DepthCubeRenderTarget.setSize(it, it) : this.pano0DepthCubeRenderTarget = new THREE.WebGLCubeRenderTarget(it, {
23678
23670
  minFilter: THREE.NearestFilter,
@@ -23686,7 +23678,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
23686
23678
  var ct = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano0DepthCubeRenderTarget);
23687
23679
  ct.matrix.copy(Oe.matrix), ct.matrixWorld.copy(ct.matrix), ct.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, ct, tt);
23688
23680
  var Xe = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano1DepthCubeRenderTarget);
23689
- Xe.matrix.copy(Le.matrix), Xe.matrixWorld.copy(Xe.matrix), Xe.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, Xe, tt), this.modelScene.parameter.set({
23681
+ Xe.matrix.copy(Ne.matrix), Xe.matrixWorld.copy(Xe.matrix), Xe.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, Xe, tt), this.modelScene.parameter.set({
23690
23682
  pano0Depth: {
23691
23683
  panoId: Oe.panoId,
23692
23684
  map: this.pano0DepthCubeRenderTarget.texture,
@@ -23694,7 +23686,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
23694
23686
  maxDepth: tt
23695
23687
  },
23696
23688
  pano1Depth: {
23697
- panoId: Le.panoId,
23689
+ panoId: Ne.panoId,
23698
23690
  map: this.pano1DepthCubeRenderTarget.texture,
23699
23691
  mapSize: this.pano1DepthCubeRenderTarget.width,
23700
23692
  maxDepth: tt
@@ -23930,7 +23922,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
23930
23922
  { key: E, progress: 1, value: { distance: 0, count: 1 } }
23931
23923
  ], R = 0;
23932
23924
  } else {
23933
- var I = this.locationMotion.getKeyFrameSegment(v), H = I[0], w = I[1], P = this.locationMotion.value, F = this.panoResourceFromLocationMotionKeyframe(H).position, O = this.panoResourceFromLocationMotionKeyframe(w).position, C = r.position, L = w.value.count - P.count, k = Math.max(F.distanceTo(O), b) * L, D = Math.max(O.distanceTo(C), b);
23925
+ var I = this.locationMotion.getKeyFrameSegment(v), H = I[0], w = I[1], P = this.locationMotion.value, F = this.panoResourceFromLocationMotionKeyframe(H).position, O = this.panoResourceFromLocationMotionKeyframe(w).position, C = r.position, N = w.value.count - P.count, k = Math.max(F.distanceTo(O), b) * N, D = Math.max(O.distanceTo(C), b);
23934
23926
  T = k + D, S = [
23935
23927
  { key: H.key, progress: 0, value: __assign({}, P) },
23936
23928
  { key: w.key, progress: k / T, value: w.value },
@@ -24109,14 +24101,14 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
24109
24101
  return !1;
24110
24102
  var J = z.position.clone().applyMatrix4(z.work.transform).project(e);
24111
24103
  return Math.abs(J.z) > 1 || Math.abs(J.x) > 1 || Math.abs(J.y) > 1 ? !1 : z.loadable || z.active;
24112
- }), F = /* @__PURE__ */ new Map(), L = H.slice().sort(function(U, z) {
24104
+ }), F = /* @__PURE__ */ new Map(), N = H.slice().sort(function(U, z) {
24113
24105
  var J = A[U], Q = F.get(J);
24114
24106
  typeof Q == "undefined" && (Q = scratchVector3$3.copy(J.position).applyMatrix4(J.work.transform).distanceTo(e.position), F.set(J, Q));
24115
24107
  var q = A[z], j = F.get(q);
24116
24108
  return typeof j == "undefined" && (j = scratchVector3$3.copy(q.position).applyMatrix4(q.work.transform).distanceTo(e.position), F.set(q, j)), Q - j;
24117
24109
  });
24118
24110
  F.clear();
24119
- for (var k = 0, D = L; k < D.length; k++) {
24111
+ for (var k = 0, D = N; k < D.length; k++) {
24120
24112
  var M = D[k], w = A[M];
24121
24113
  if (w) {
24122
24114
  var C = scratchVector3$3.copy(w.position).applyMatrix4(w.work.transform);
@@ -24175,7 +24167,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
24175
24167
  }
24176
24168
  }
24177
24169
  }
24178
- var L = P.length > 0 ? P : __spreadArray(__spreadArray([], M, !0), w, !0), k = L.slice().sort(function(j, G) {
24170
+ var N = P.length > 0 ? P : __spreadArray(__spreadArray([], M, !0), w, !0), k = N.slice().sort(function(j, G) {
24179
24171
  return j.angleTo(R) - G.angleTo(R);
24180
24172
  })[0];
24181
24173
  if (k && k.angleTo(u) > S && (b.longitude = Math.atan2(-k.x, -k.z)), this.cameraMotion.value.latitude < -Math.PI / 4) {
@@ -24298,8 +24290,8 @@ var updateEyeViewMatrices = /* @__PURE__ */ (function() {
24298
24290
  return o === r ? (r[12] = o[0] * u + o[4] * l + o[8] * c + o[12], r[13] = o[1] * u + o[5] * l + o[9] * c + o[13], r[14] = o[2] * u + o[6] * l + o[10] * c + o[14], r[15] = o[3] * u + o[7] * l + o[11] * c + o[15]) : (f = o[0], d = o[1], h = o[2], p = o[3], m = o[4], A = o[5], g = o[6], y = o[7], v = o[8], E = o[9], b = o[10], T = o[11], r[0] = f, r[1] = d, r[2] = h, r[3] = p, r[4] = m, r[5] = A, r[6] = g, r[7] = y, r[8] = v, r[9] = E, r[10] = b, r[11] = T, r[12] = f * u + m * l + v * c + o[12], r[13] = d * u + A * l + E * c + o[13], r[14] = h * u + g * l + b * c + o[14], r[15] = p * u + y * l + T * c + o[15]), r;
24299
24291
  }
24300
24292
  function e(r, o) {
24301
- var s = o[0], u = o[1], l = o[2], c = o[3], f = o[4], d = o[5], h = o[6], p = o[7], m = o[8], A = o[9], g = o[10], y = o[11], v = o[12], E = o[13], b = o[14], T = o[15], S = s * d - u * f, R = s * h - l * f, M = s * p - c * f, w = u * h - l * d, P = u * p - c * d, O = l * p - c * h, C = m * E - A * v, I = m * b - g * v, H = m * T - y * v, F = A * b - g * E, L = A * T - y * E, k = g * T - y * b, D = S * k - R * L + M * F + w * H - P * I + O * C;
24302
- return D ? (D = 1 / D, r[0] = (d * k - h * L + p * F) * D, r[1] = (l * L - u * k - c * F) * D, r[2] = (E * O - b * P + T * w) * D, r[3] = (g * P - A * O - y * w) * D, r[4] = (h * H - f * k - p * I) * D, r[5] = (s * k - l * H + c * I) * D, r[6] = (b * M - v * O - T * R) * D, r[7] = (m * O - g * M + y * R) * D, r[8] = (f * L - d * H + p * C) * D, r[9] = (u * H - s * L - c * C) * D, r[10] = (v * P - E * M + T * S) * D, r[11] = (A * M - m * P - y * S) * D, r[12] = (d * I - f * F - h * C) * D, r[13] = (s * F - u * I + l * C) * D, r[14] = (E * R - v * w - b * S) * D, r[15] = (m * w - A * R + g * S) * D, r) : null;
24293
+ var s = o[0], u = o[1], l = o[2], c = o[3], f = o[4], d = o[5], h = o[6], p = o[7], m = o[8], A = o[9], g = o[10], y = o[11], v = o[12], E = o[13], b = o[14], T = o[15], S = s * d - u * f, R = s * h - l * f, M = s * p - c * f, w = u * h - l * d, P = u * p - c * d, O = l * p - c * h, C = m * E - A * v, I = m * b - g * v, H = m * T - y * v, F = A * b - g * E, N = A * T - y * E, k = g * T - y * b, D = S * k - R * N + M * F + w * H - P * I + O * C;
24294
+ return D ? (D = 1 / D, r[0] = (d * k - h * N + p * F) * D, r[1] = (l * N - u * k - c * F) * D, r[2] = (E * O - b * P + T * w) * D, r[3] = (g * P - A * O - y * w) * D, r[4] = (h * H - f * k - p * I) * D, r[5] = (s * k - l * H + c * I) * D, r[6] = (b * M - v * O - T * R) * D, r[7] = (m * O - g * M + y * R) * D, r[8] = (f * N - d * H + p * C) * D, r[9] = (u * H - s * N - c * C) * D, r[10] = (v * P - E * M + T * S) * D, r[11] = (A * M - m * P - y * S) * D, r[12] = (d * I - f * F - h * C) * D, r[13] = (s * F - u * I + l * C) * D, r[14] = (E * R - v * w - b * S) * D, r[15] = (m * w - A * R + g * S) * D, r) : null;
24303
24295
  }
24304
24296
  return function(r, o, s) {
24305
24297
  n(r, o), s && t(r, r, s), e(r, r);
@@ -25131,8 +25123,8 @@ void main() {
25131
25123
  w.copy(P), R = !0;
25132
25124
  }
25133
25125
  p.distance = this.locationMotion.value.distance, p.offset = new THREE.Vector3(w.x + (P.x - w.x) * M, w.y + (P.y - w.y) * M, w.z + (P.z - w.z) * M);
25134
- for (var H = [], F = [], L = 0, k = this.locationMotion.keyframes; L < k.length; L++) {
25135
- var D = k[L], U = D.key, z = D.progress;
25126
+ for (var H = [], F = [], N = 0, k = this.locationMotion.keyframes; N < k.length; N++) {
25127
+ var D = k[N], U = D.key, z = D.progress;
25136
25128
  U !== void 0 && (H.push(U), z > this.locationMotion.progress && F.push(U));
25137
25129
  }
25138
25130
  for (var J = 0, Q = Object.keys(this.panoResources); J < Q.length; J++) {
@@ -25205,8 +25197,8 @@ void main() {
25205
25197
  Se.setOpacity(0);
25206
25198
  return;
25207
25199
  }
25208
- var Le = Se.position.clone().setY(o.camera.position.y).distanceTo(o.camera.position);
25209
- Le < 0.05 ? Se.setOpacity(0) : Se.setOpacity(clamp$1(1.5 / Le, 0, 1)), panoEqual(o.currentPano, Fe) && Se.setOpacity(0), Se.lookAt(o.camera.position);
25200
+ var Ne = Se.position.clone().setY(o.camera.position.y).distanceTo(o.camera.position);
25201
+ Ne < 0.05 ? Se.setOpacity(0) : Se.setOpacity(clamp$1(1.5 / Ne, 0, 1)), panoEqual(o.currentPano, Fe) && Se.setOpacity(0), Se.lookAt(o.camera.position);
25210
25202
  }
25211
25203
  }), this.locationMotion.ended) {
25212
25204
  var ve = this.intersect(e);
@@ -25578,8 +25570,8 @@ void main() {
25578
25570
  var oe = G[j];
25579
25571
  C.push(oe);
25580
25572
  }
25581
- }, H = this, F = 0, L = this.works; F < L.length; F++) {
25582
- var k = L[F];
25573
+ }, H = this, F = 0, N = this.works; F < N.length; F++) {
25574
+ var k = N[F];
25583
25575
  I(k);
25584
25576
  }
25585
25577
  var D = arrayMin(C, function(Q) {
@@ -26019,9 +26011,9 @@ void main() {
26019
26011
  var y = {
26020
26012
  x: e.center.x - o.x,
26021
26013
  y: e.center.y - o.y
26022
- }, F = this.coordinatesForOffset(y), L = formatRad$1(this.cameraMotion.value.longitude + F.longitude), k = this.camera.pose.fov, D = clamp$1(typeof this.minLatitude == "function" ? this.minLatitude(k) : this.minLatitude, -Math.PI / 2, Math.PI / 2), U = clamp$1(typeof this.maxLatitude == "function" ? this.maxLatitude(k) : this.maxLatitude, -Math.PI / 2, Math.PI / 2), z = clamp$1(this.cameraMotion.value.latitude + F.latitude, D, U);
26014
+ }, F = this.coordinatesForOffset(y), N = formatRad$1(this.cameraMotion.value.longitude + F.longitude), k = this.camera.pose.fov, D = clamp$1(typeof this.minLatitude == "function" ? this.minLatitude(k) : this.minLatitude, -Math.PI / 2, Math.PI / 2), U = clamp$1(typeof this.maxLatitude == "function" ? this.maxLatitude(k) : this.maxLatitude, -Math.PI / 2, Math.PI / 2), z = clamp$1(this.cameraMotion.value.latitude + F.latitude, D, U);
26023
26015
  this.camera.aspect < 1 && Math.abs(e.overallVelocityX) > 0.2 && Math.atan2(Math.abs(e.overallVelocityY), Math.abs(e.overallVelocityX)) < Math.PI / 6.923 && (z = this.cameraMotion.value.latitude);
26024
- var w = __assign(__assign({}, this.currentPano), { mode: this.mode, longitude: L, latitude: z, fov: k, offset: this.camera.pose.offset, distance: this.camera.pose.distance });
26016
+ var w = __assign(__assign({}, this.currentPano), { mode: this.mode, longitude: N, latitude: z, fov: k, offset: this.camera.pose.offset, distance: this.camera.pose.distance });
26025
26017
  if (e.isFinal && Object.assign(e, { __fixFinalState: !0 }), e.state = w, this.emit("gesture.pan", e), e.defaultPrevented)
26026
26018
  return;
26027
26019
  if (e.isFinal ? this.locationMotion.set({
@@ -26115,14 +26107,16 @@ void main() {
26115
26107
  };
26116
26108
  this.locationMotion.set(o, 0).catch(noop);
26117
26109
  } else {
26118
- var s = t.distanceFromModel(this.modelScene, this.cameraMotion.value.fov, this.camera.aspect), u = Math.max(this.locationMotion.value.distance - this.camera.near, 0), l = e.center.delta / 10 * Math.max(u / 5, 0.1);
26119
- if (u <= s || l > 0)
26120
- if (this.locationMotion.value.distance - l >= minDistance) {
26121
- var c = this.locationMotion.value.distance - l;
26122
- e.state.distance = c;
26110
+ var s = t.distanceFromModel(this.modelScene, this.cameraMotion.value.fov, this.camera.aspect), u = new THREE.Vector3(this.locationMotion.value.x, this.locationMotion.value.y, this.locationMotion.value.z), l = coordinatesToVector(this.cameraMotion.value, new THREE.Vector3()).negate(), c = new THREE.Ray(u, l).intersectBox(this.modelScene.boundingBox, new THREE.Vector3());
26111
+ c && (s += c.distanceTo(u));
26112
+ var f = Math.max(this.locationMotion.value.distance - this.camera.near, 0), d = e.center.delta / 10 * Math.max(f / 5, 0.1);
26113
+ if (f <= s || d > 0)
26114
+ if (this.locationMotion.value.distance - d >= minDistance) {
26115
+ var h = this.locationMotion.value.distance - d;
26116
+ e.state.distance = h;
26123
26117
  } else {
26124
- var f = coordinatesToVector(this.cameraMotion.value);
26125
- f.setLength(l), e.state.offset.add(f);
26118
+ var p = coordinatesToVector(this.cameraMotion.value);
26119
+ p.setLength(d), e.state.offset.add(p);
26126
26120
  }
26127
26121
  if (this.emit("gesture.mousewheel", e), e.defaultPrevented)
26128
26122
  return;
@@ -26885,7 +26879,7 @@ var circleImageURL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYA
26885
26879
  }
26886
26880
  return Object.defineProperty(t, "version", {
26887
26881
  get: function() {
26888
- return "6.7.0-alpha.20";
26882
+ return "6.7.0-alpha.22";
26889
26883
  },
26890
26884
  enumerable: !1,
26891
26885
  configurable: !0
@@ -27509,10 +27503,10 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
27509
27503
  { key: v, progress: 1, value: { distance: 0, count: 1 } }
27510
27504
  ], S = 0;
27511
27505
  } else {
27512
- var C = this.locationMotion.getKeyFrameSegment(y), I = C[0], M = C[1], w = this.locationMotion.value, H = this.panoResourceFromLocationMotionKeyframe(I).position, P = this.panoResourceFromLocationMotionKeyframe(M).position, O = r.position, F = M.value.count - w.count, L = Math.max(H.distanceTo(P), E) * F, k = Math.max(P.distanceTo(O), E);
27513
- b = L + k, T = [
27506
+ var C = this.locationMotion.getKeyFrameSegment(y), I = C[0], M = C[1], w = this.locationMotion.value, H = this.panoResourceFromLocationMotionKeyframe(I).position, P = this.panoResourceFromLocationMotionKeyframe(M).position, O = r.position, F = M.value.count - w.count, N = Math.max(H.distanceTo(P), E) * F, k = Math.max(P.distanceTo(O), E);
27507
+ b = N + k, T = [
27514
27508
  { key: I.key, progress: 0, value: __assign({}, w) },
27515
- { key: M.key, progress: L / b, value: M.value },
27509
+ { key: M.key, progress: N / b, value: M.value },
27516
27510
  { key: v, progress: 1, value: { count: M.value.count + 1, distance: 0 } }
27517
27511
  ];
27518
27512
  var D = this.locationMotionKeyframesLength(this.locationMotion.keyframes), U = this.locationMotionKeyframesLength(T);
@@ -27724,7 +27718,7 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
27724
27718
  var y = {}, v = {}, E = this.camera.getDirection(new THREE.Vector3()), b = this.locationMotion.keyframes[0], T = this.locationMotion.keyframes[this.locationMotion.keyframes.length - 1], S = this.locationMotion.getKeyFrameSegment(e), R = S[0], M = S[1], w = this.panoResourceFromLocationMotionKeyframe(R), P = this.panoResourceFromLocationMotionKeyframe(M), O = this.panoResourceFromLocationMotionKeyframe(b), C = this.panoResourceFromLocationMotionKeyframe(T), I = !1;
27725
27719
  if (this.cameraMotion.ended === !1 && (this.cameraMotion.update(e), v.fov = this.cameraMotion.value.fov), this.modelAlphaMotion.ended === !1 && (this.modelAlphaMotion.update(e), y.modelAlpha = this.modelAlphaMotion.value.modelAlpha), this.perspToOrthoMotion.ended === !1 && (this.perspToOrthoMotion.update(e), this.camera.perspToOrtho.setScalar(clamp$1(this.perspToOrthoMotion.value.perspToOrtho, 0, 1))), this.locationMotion.ended === !1) {
27726
27720
  this.locationMotion.update(e);
27727
- var H = this.locationMotion.value.count - M.value.count + 1, F = new THREE.Vector3().copy(w.position), L = new THREE.Vector3().copy(P.position);
27721
+ var H = this.locationMotion.value.count - M.value.count + 1, F = new THREE.Vector3().copy(w.position), N = new THREE.Vector3().copy(P.position);
27728
27722
  if (y.progress = H, H >= 0.01 && H <= 0.99 && (y.progress = clamp$1(P.effectEasing(H), 0.01, 0.99)), P.leftPanoPicture && (H < 1 ? w.leftPanoPicture && (y.pano0 = w.leftPanoPicture) : y.pano0 = P.leftPanoPicture, y.pano1 = P.leftPanoPicture), P.effect === "montage" ? y.transition = "BLACK" : P.effect === "spread" ? y.transition = "SPREAD" : y.transition = "FADE", P.effect === "zoomin" || P.effect === "zoomout")
27729
27723
  y.progress = Math.pow(H, 3);
27730
27724
  else if (P.effect === "model" && this.camera.pose.distance < 0.01) {
@@ -27742,9 +27736,9 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
27742
27736
  }, U = this.panoPictureObserverMap.get(y.pano0);
27743
27737
  U && this.panoPictureObserverMap.set(D, U), y.pano0 = D;
27744
27738
  }
27745
- F.copy(L), I = !0;
27739
+ F.copy(N), I = !0;
27746
27740
  }
27747
- v.distance = this.locationMotion.value.distance, v.offset = new THREE.Vector3(F.x + (L.x - F.x) * H, F.y + (L.y - F.y) * H, F.z + (L.z - F.z) * H);
27741
+ v.distance = this.locationMotion.value.distance, v.offset = new THREE.Vector3(F.x + (N.x - F.x) * H, F.y + (N.y - F.y) * H, F.z + (N.z - F.z) * H);
27748
27742
  for (var z = [], J = [], Q = 0, q = this.locationMotion.keyframes; Q < q.length; Q++) {
27749
27743
  var j = q[Q], G = j.key, oe = j.progress;
27750
27744
  G !== void 0 && (z.push(G), oe > this.locationMotion.progress && J.push(G));
@@ -27811,11 +27805,11 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
27811
27805
  }
27812
27806
  if (Ke.length >= 1 && Ke[0].face)
27813
27807
  if (Re.handedness === "right") {
27814
- var Bt = ye.xrControllerRay.right.intersectObject(ye.xrCustomObjectsScene, !0), B = Ke[0].face.normal, _ = B.clone(), N = Ke[0].point.clone();
27815
- ye.intersectMesh.position.copy(N);
27816
- var V = N.clone().add(_);
27808
+ var Bt = ye.xrControllerRay.right.intersectObject(ye.xrCustomObjectsScene, !0), B = Ke[0].face.normal, _ = B.clone(), L = Ke[0].point.clone();
27809
+ ye.intersectMesh.position.copy(L);
27810
+ var V = L.clone().add(_);
27817
27811
  if (ye.intersectMesh.lookAt(V), Math.abs(B.y) > 0.99) {
27818
- var Y = ye.camera.position.clone().sub(N);
27812
+ var Y = ye.camera.position.clone().sub(L);
27819
27813
  ye.intersectMesh.rotation.z = -Math.atan2(Y.z, Y.x);
27820
27814
  }
27821
27815
  ye.intersectMesh.visible = !0, ye.needsRender = !0, Bt.length > 0 ? (ye.pointerLines.right.setPoints(ut, Bt[0].point), ye.pointerLines.right.points.visible = !0, ye.intersectMesh.visible = !1) : (ye.pointerLines.right.points.visible = !1, ye.pointerLines.right.setPoints(ut, Ke[0].point));
@@ -27843,8 +27837,8 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
27843
27837
  }));
27844
27838
  var Ie = this.works.getResolvedObserver(this.currentPano), Ze = this.locationMotion.ended ? this.getForwardObserverOrNot(this.xrManager.cameraVR) : null, Se = this.works.getObserver(w.panoId), ze = this.works.getObserver(P.panoId);
27845
27839
  if (this.adjustPanoCircleMeshPositionBasedOnModel && this.helper.visible && Ie) {
27846
- for (var Fe = [], Oe = Ie.work.observers, Le = 0, Ue = Ie.accessibleNodes; Le < Ue.length; Le++) {
27847
- var $e = Ue[Le], U = Oe[$e];
27840
+ for (var Fe = [], Oe = Ie.work.observers, Ne = 0, Ue = Ie.accessibleNodes; Ne < Ue.length; Ne++) {
27841
+ var $e = Ue[Ne], U = Oe[$e];
27848
27842
  U && Fe.push(U);
27849
27843
  }
27850
27844
  var lt = /* @__PURE__ */ new Map();
@@ -27859,7 +27853,7 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
27859
27853
  return pe.work === (nt == null ? void 0 : nt.work);
27860
27854
  });
27861
27855
  if (nt && ot && ot.visible) {
27862
- var At = 0.3, We = 0.05, Ct = 5e-3, _e = nt.standingPosition.clone().applyMatrix4(nt.work.transform), Ne = panoStringify({
27856
+ var At = 0.3, We = 0.05, Ct = 5e-3, _e = nt.standingPosition.clone().applyMatrix4(nt.work.transform), Le = panoStringify({
27863
27857
  panoIndex: nt.panoIndex,
27864
27858
  workCode: nt.work.workCode
27865
27859
  }), bt = adjustPanoCircleMeshVectors.map(function(pe) {
@@ -27874,8 +27868,8 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
27874
27868
  return pe.distanceTo(It) <= We;
27875
27869
  })[0];
27876
27870
  if (Tt) {
27877
- var yt = new THREE.Vector4(_e.x, _e.y, _e.z, Tt.y - _e.y), Rt = this.adjustPanoCircleMeshPositionFix.get(Ne);
27878
- Rt && !yt.equals(Rt) && (this.needsRender = !0), this.adjustPanoCircleMeshPositionFix.set(Ne, yt);
27871
+ var yt = new THREE.Vector4(_e.x, _e.y, _e.z, Tt.y - _e.y), Rt = this.adjustPanoCircleMeshPositionFix.get(Le);
27872
+ Rt && !yt.equals(Rt) && (this.needsRender = !0), this.adjustPanoCircleMeshPositionFix.set(Le, yt);
27879
27873
  }
27880
27874
  }
27881
27875
  this.accessibleObserverFloorCheckCount++;
@@ -27886,22 +27880,22 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
27886
27880
  for (var it = 0, ct = Se.accessibleNodes; it < ct.length; it++) {
27887
27881
  var $e = ct[it], U = Se.work.observers[$e];
27888
27882
  if (U) {
27889
- var Ne = panoStringify({
27883
+ var Le = panoStringify({
27890
27884
  panoIndex: U.panoIndex,
27891
27885
  workCode: U.work.workCode
27892
27886
  });
27893
- tt.set(Ne, U);
27887
+ tt.set(Le, U);
27894
27888
  }
27895
27889
  }
27896
27890
  if (ze)
27897
27891
  for (var Xe = 0, de = ze.accessibleNodes; Xe < de.length; Xe++) {
27898
27892
  var $e = de[Xe], U = ze.work.observers[$e];
27899
27893
  if (U) {
27900
- var Ne = panoStringify({
27894
+ var Le = panoStringify({
27901
27895
  panoIndex: U.panoIndex,
27902
27896
  workCode: U.work.workCode
27903
27897
  });
27904
- tt.set(Ne, U);
27898
+ tt.set(Le, U);
27905
27899
  }
27906
27900
  }
27907
27901
  if (this.panoMeshes.forEach(function(pe, Pe) {
@@ -28015,8 +28009,8 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
28015
28009
  }
28016
28010
  }
28017
28011
  if (this.panoVideo.object.position.copy(this.camera.position), this.panoVideo.updateTime(e), this.intersectMesh && this.intersectMesh.parent && Ie && Ie.position.y - Ie.standingPosition.y > 10) {
28018
- var gt = this.camera.position.distanceTo(this.intersectMesh.position), Et = 2 * Math.tan(0.5 * this.camera.fov / 180 * Math.PI), Lt = gt * Et / 5;
28019
- this.intersectMesh.scale.setScalar(Lt);
28012
+ var gt = this.camera.position.distanceTo(this.intersectMesh.position), Et = 2 * Math.tan(0.5 * this.camera.fov / 180 * Math.PI), Nt = gt * Et / 5;
28013
+ this.intersectMesh.scale.setScalar(Nt);
28020
28014
  } else
28021
28015
  this.intersectMesh.scale.setScalar(1);
28022
28016
  {
@@ -29351,14 +29345,14 @@ void main() {
29351
29345
  g.getPixelsRenderTarget = new THREE.WebGLRenderTarget(1, 1, {
29352
29346
  encoding: (p = (h = g.renderer) === null || h === void 0 ? void 0 : h.outputEncoding) !== null && p !== void 0 ? p : THREE.sRGBEncoding,
29353
29347
  generateMipmaps: !1
29354
- }), g.viewport = Object.assign({ left: 0, bottom: 0, width: 1, height: 1 }, e.viewport), g.camera = new Camera(DEFAULT_CAMERA_FOV), g.scene = new Scene(), g.xrCustomObjectsScene = new THREE.Scene(), g.scene.add(g.xrCustomObjectsScene), g.scene.matrixAutoUpdate = !1, g.loadWorkTask = Promise.resolve(), g.requestProxy = (m = e.requestProxy) !== null && m !== void 0 ? m : DEFAULT_REQUEST_PROXY, g.networkSubscribe = new NetworkSubscribe(), g.networkSubscribe.on("network", function(H, F, L, k) {
29348
+ }), g.viewport = Object.assign({ left: 0, bottom: 0, width: 1, height: 1 }, e.viewport), g.camera = new Camera(DEFAULT_CAMERA_FOV), g.scene = new Scene(), g.xrCustomObjectsScene = new THREE.Scene(), g.scene.add(g.xrCustomObjectsScene), g.scene.matrixAutoUpdate = !1, g.loadWorkTask = Promise.resolve(), g.requestProxy = (m = e.requestProxy) !== null && m !== void 0 ? m : DEFAULT_REQUEST_PROXY, g.networkSubscribe = new NetworkSubscribe(), g.networkSubscribe.on("network", function(H, F, N, k) {
29355
29349
  var D;
29356
29350
  g.emit("network.resource", createEvent("network.resource", {
29357
29351
  source: H,
29358
29352
  requestType: F,
29359
- requestState: L,
29353
+ requestState: N,
29360
29354
  detail: k
29361
- })), (D = g.analysis) === null || D === void 0 || D.network(g.works, H, F, L, k);
29355
+ })), (D = g.analysis) === null || D === void 0 || D.network(g.works, H, F, N, k);
29362
29356
  }), g.readyCallbacks = [], g.syncingState = !1, g.helperGroup = new THREE.Group(), g.helperGroup.name = "helper", g.helperGroup.matrixAutoUpdate = !1, g.scene.add(g.helperGroup), worksMap.set(g, emptyWorks), g.modelScene = new ModelScene({
29363
29357
  fiveId: g.fiveId
29364
29358
  }), g.modelScene.addEventListener("model.create", function(H) {
@@ -29383,9 +29377,9 @@ void main() {
29383
29377
  offset: g.camera.pose.offset.clone(),
29384
29378
  distance: g.camera.pose.distance
29385
29379
  }, g.stateSynced = !1, g.destroyed = !1, g.paused = !0, typeof window != "undefined" && (e.play !== !1 && g.play(), g.stopAnimationLoop = AnimationFrameLoop.shared.add(function(H, F) {
29386
- for (var L = [], k = 2; k < arguments.length; k++)
29387
- L[k - 2] = arguments[k];
29388
- g.updateTime.apply(g, __spreadArray([H, F], L, !1));
29380
+ for (var N = [], k = 2; k < arguments.length; k++)
29381
+ N[k - 2] = arguments[k];
29382
+ g.updateTime.apply(g, __spreadArray([H, F], N, !1));
29389
29383
  }, !1, 0, 10));
29390
29384
  var T = function() {
29391
29385
  typeof document != "undefined" && document.fullscreenElement === null && g.currentMode === "VRPanorama" && g.controller.emit("vr.requestExit", createEvent("vr.requestExit", {}));
@@ -29411,7 +29405,7 @@ void main() {
29411
29405
  }
29412
29406
  return Object.defineProperty(t, "version", {
29413
29407
  get: function() {
29414
- return "6.7.0-alpha.20";
29408
+ return "6.7.0-alpha.22";
29415
29409
  },
29416
29410
  enumerable: !1,
29417
29411
  configurable: !0
@@ -29670,7 +29664,7 @@ void main() {
29670
29664
  } : {
29671
29665
  workCode: C.work.workCode,
29672
29666
  panoIndex: 0
29673
- }, F = (l = C.mode) !== null && l !== void 0 ? l : I ? "Panorama" : "Mapview", L = {};
29667
+ }, F = (l = C.mode) !== null && l !== void 0 ? l : I ? "Panorama" : "Mapview", N = {};
29674
29668
  if (r === "inherit") {
29675
29669
  F = this.currentMode;
29676
29670
  var k = (f = (c = M[0]) === null || c === void 0 ? void 0 : c.observers) === null || f === void 0 ? void 0 : f[this.panoIndex];
@@ -29680,7 +29674,7 @@ void main() {
29680
29674
  } : typeof M.initial.panoIndex == "number" ? H = {
29681
29675
  workCode: M.initial.work.workCode,
29682
29676
  panoIndex: M.initial.panoIndex
29683
- } : (F === "Panorama" || F === "VRPanorama" || F === "XRPanorama") && (F = "Mapview"), L = {
29677
+ } : (F === "Panorama" || F === "VRPanorama" || F === "XRPanorama") && (F = "Mapview"), N = {
29684
29678
  longitude: this.camera.pose.longitude,
29685
29679
  latitude: this.camera.pose.latitude,
29686
29680
  fov: this.camera.pose.fov,
@@ -29691,7 +29685,7 @@ void main() {
29691
29685
  typeof C.panoIndex == "number" && (H = {
29692
29686
  workCode: C.work.workCode,
29693
29687
  panoIndex: C.panoIndex
29694
- }), C.mode && (F = C.mode), L = {
29688
+ }), C.mode && (F = C.mode), N = {
29695
29689
  longitude: C.longitude,
29696
29690
  latitude: C.latitude,
29697
29691
  fov: C.fov,
@@ -29709,7 +29703,7 @@ void main() {
29709
29703
  panoIndex: k.panoIndex
29710
29704
  });
29711
29705
  }
29712
- L = {
29706
+ N = {
29713
29707
  longitude: r.longitude,
29714
29708
  latitude: r.latitude,
29715
29709
  fov: r.fov,
@@ -29717,7 +29711,7 @@ void main() {
29717
29711
  offset: r.offset
29718
29712
  };
29719
29713
  }
29720
- var D = __assign(__assign(__assign({}, H), { mode: F }), L), U = this.getCurrentState(), z = (A = v.duration) !== null && A !== void 0 ? A : this.modeChangeDuration;
29714
+ var D = __assign(__assign(__assign({}, H), { mode: F }), N), U = this.getCurrentState(), z = (A = v.duration) !== null && A !== void 0 ? A : this.modeChangeDuration;
29721
29715
  (F === "Floorplan" || F === "Topview" || F === "Mapview") && this.currentMode === F && (z = 0);
29722
29716
  var J = "fly";
29723
29717
  (F === "Panorama" || F === "VRPanorama" || F === "XRPanorama") && this.currentMode === F && (J = (g = v.effect) !== null && g !== void 0 ? g : "fade"), this.emit("works.request", createEvent("works.request", {
@@ -29928,9 +29922,9 @@ void main() {
29928
29922
  } else
29929
29923
  T = new Uint8Array(C);
29930
29924
  if (this.renderer.readRenderTargetPixels(M, 0, 0, A * y, g * y, T), v)
29931
- for (var I = O / 2, H = 0, F = 0, L = 0, k = 0; F < I; F++)
29932
- for (k = (P - Math.floor(F / w) - 1) * w + F % w, L = 0; L < 4; L++)
29933
- H = T[F * 4 + L], T[F * 4 + L] = T[k * 4 + L], T[k * 4 + L] = H;
29925
+ for (var I = O / 2, H = 0, F = 0, N = 0, k = 0; F < I; F++)
29926
+ for (k = (P - Math.floor(F / w) - 1) * w + F % w, N = 0; N < 4; N++)
29927
+ H = T[F * 4 + N], T[F * 4 + N] = T[k * 4 + N], T[k * 4 + N] = H;
29934
29928
  return T;
29935
29929
  }, t.prototype.getElement = function() {
29936
29930
  var e;
@@ -30179,8 +30173,8 @@ void main() {
30179
30173
  if (!H || this.modelScene.loaded) {
30180
30174
  var F = this.readyCallbacks.slice();
30181
30175
  this.readyCallbacks.length = 0;
30182
- for (var L = 0, k = F; L < k.length; L++) {
30183
- var D = k[L];
30176
+ for (var N = 0, k = F; N < k.length; N++) {
30177
+ var D = k[N];
30184
30178
  this.controller instanceof Controllers.Panorama && D.tile === !0 && !this.controller.isTileReady() ? this.readyCallbacks.push(D) : D();
30185
30179
  }
30186
30180
  }