@realsee/dnalogel 2.14.1-alpha.0 → 2.14.1

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 (283) hide show
  1. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
  2. package/dist/index.cjs.js +19 -19
  3. package/dist/index.js +615 -627
  4. package/dist/index.umd.js +19 -19
  5. package/docs/classes/CSS3DRender.html +31 -31
  6. package/docs/classes/CruisePluginController.html +25 -25
  7. package/docs/classes/Magnifier.html +20 -20
  8. package/docs/classes/ModelRoomLabelController.html +11 -11
  9. package/docs/classes/Object3DHelperController.html +24 -24
  10. package/docs/classes/PaintBrush.html +15 -15
  11. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  12. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  13. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  14. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  15. package/docs/classes/PanoTagPluginController.html +46 -46
  16. package/docs/classes/Util.BetterTween.html +8 -8
  17. package/docs/classes/Util.FivePointSelector.html +12 -12
  18. package/docs/classes/Util.Interval.html +12 -12
  19. package/docs/classes/Util.Magnifier.html +17 -17
  20. package/docs/classes/Util.PointDomHelper.html +11 -11
  21. package/docs/classes/Util.PointHelper.html +11 -11
  22. package/docs/classes/Util.Rectangle.html +13 -13
  23. package/docs/enums/CameraMovementEffect.html +7 -7
  24. package/docs/enums/ContentType.html +19 -19
  25. package/docs/enums/DIRECTION.html +9 -9
  26. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  27. package/docs/enums/DimensionType.html +7 -7
  28. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  29. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  30. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  31. package/docs/enums/Rotation.html +8 -8
  32. package/docs/functions/CSS3DRenderPlugin.html +5 -5
  33. package/docs/functions/CameraMovementPlugin.html +5 -5
  34. package/docs/functions/CruisePlugin.html +5 -5
  35. package/docs/functions/GuideLinePlugin.html +5 -5
  36. package/docs/functions/ItemLabelPlugin.html +5 -5
  37. package/docs/functions/MapviewFloorplanPlugin.html +5 -5
  38. package/docs/functions/ModelChassisCompassPlugin.html +5 -5
  39. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
  40. package/docs/functions/ModelFloorplanPlugin.html +5 -5
  41. package/docs/functions/ModelItemLabelPlugin.html +5 -5
  42. package/docs/functions/ModelRoomLabelPlugin.html +5 -5
  43. package/docs/functions/ModelTVVideoPlugin.html +5 -5
  44. package/docs/functions/ModelViewPlugin.html +5 -5
  45. package/docs/functions/Object3DHelperPlugin.html +5 -5
  46. package/docs/functions/PanoCompassPlugin.html +5 -5
  47. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
  48. package/docs/functions/PanoDoorLabelPlugin.html +5 -5
  49. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
  50. package/docs/functions/PanoMeasurePlugin.html +5 -5
  51. package/docs/functions/PanoRulerPlugin.html +5 -5
  52. package/docs/functions/PanoRulerProPlugin.html +5 -5
  53. package/docs/functions/PanoSpatialTagPlugin.html +5 -5
  54. package/docs/functions/PanoTagPlugin.html +5 -5
  55. package/docs/functions/PanoVideoPlugin.html +5 -5
  56. package/docs/functions/TopviewFloorplanPlugin.html +5 -5
  57. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  58. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  59. package/docs/functions/Util.getFrameTime.html +5 -5
  60. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  61. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  62. package/docs/functions/Util.isNil.html +5 -5
  63. package/docs/functions/Util.nextFrame.html +5 -5
  64. package/docs/functions/Util.notNil.html +5 -5
  65. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  66. package/docs/functions/Util.tweenProgress.html +5 -5
  67. package/docs/functions/pluginFlag.html +5 -5
  68. package/docs/index.html +4 -4
  69. package/docs/interfaces/AddTagConfig.html +6 -6
  70. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  71. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  72. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  73. package/docs/interfaces/EventMap.html +15 -15
  74. package/docs/interfaces/FloorplanBounding.html +8 -8
  75. package/docs/interfaces/FloorplanData.html +10 -10
  76. package/docs/interfaces/FloorplanEntrance.html +11 -11
  77. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  78. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  79. package/docs/interfaces/FloorplanFloorData.html +9 -9
  80. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  81. package/docs/interfaces/FloorplanObserver.html +9 -9
  82. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  83. package/docs/interfaces/FloorplanPosition.html +7 -7
  84. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  85. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  86. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  87. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  88. package/docs/interfaces/FloorplanServerData.html +7 -7
  89. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  90. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  91. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  92. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  93. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  94. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  95. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  96. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  97. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  98. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  99. package/docs/interfaces/HelperOffset.html +8 -8
  100. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  101. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  102. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  103. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  104. package/docs/interfaces/MinMax.html +7 -7
  105. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  106. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  107. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  108. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  109. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  110. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  111. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  112. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  113. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  114. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  115. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  116. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  117. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  118. package/docs/interfaces/Object3DHelperState.html +8 -8
  119. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  120. package/docs/interfaces/PaintBrushAction.html +12 -12
  121. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  122. package/docs/interfaces/PaintBrushState.html +10 -10
  123. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  124. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  125. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  126. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  127. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  128. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  129. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  130. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  131. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  132. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  133. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  134. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  135. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  136. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  137. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  138. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  139. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  140. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  141. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  142. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  143. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  144. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  145. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  146. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  147. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  148. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  149. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  150. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  151. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  152. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  153. package/docs/interfaces/Point.html +8 -8
  154. package/docs/interfaces/Room.html +9 -9
  155. package/docs/interfaces/RoomInfo.html +7 -7
  156. package/docs/interfaces/RoomLabel.html +14 -14
  157. package/docs/interfaces/RoomRules.html +5 -5
  158. package/docs/interfaces/Rooms.html +5 -5
  159. package/docs/interfaces/Scissor.html +9 -9
  160. package/docs/interfaces/State.html +8 -8
  161. package/docs/interfaces/TagCacheInterface.html +12 -12
  162. package/docs/interfaces/TagConfig.html +11 -11
  163. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  164. package/docs/interfaces/TagIconUrl.html +11 -11
  165. package/docs/interfaces/TagObjectGroup.html +6 -6
  166. package/docs/interfaces/TagStyle.html +6 -6
  167. package/docs/interfaces/Tags.html +9 -9
  168. package/docs/interfaces/TemporaryState.html +6 -6
  169. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  170. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  171. package/docs/modules/PanoVideoPluginType.html +5 -5
  172. package/docs/modules/Util.html +5 -5
  173. package/docs/modules.html +4 -4
  174. package/docs/types/ArrayPosition.html +5 -5
  175. package/docs/types/AudioAppearance.html +5 -5
  176. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  177. package/docs/types/CSS3DRenderExportType.html +5 -5
  178. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  179. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  180. package/docs/types/ClassFunctionParameters.html +5 -5
  181. package/docs/types/Color.html +5 -5
  182. package/docs/types/ContentTypeConfigKey.html +5 -5
  183. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  184. package/docs/types/ContentTypeMap.html +5 -5
  185. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  186. package/docs/types/Create3DElementReturnType.html +5 -5
  187. package/docs/types/CruisePluginExportType.html +5 -5
  188. package/docs/types/Direction-1.html +5 -5
  189. package/docs/types/Direction4.html +5 -5
  190. package/docs/types/FloorplanRuleLabels.html +5 -5
  191. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  192. package/docs/types/GuideLinePluginExportType.html +5 -5
  193. package/docs/types/HelperEventMap.html +5 -5
  194. package/docs/types/LoadTagConfig.html +5 -5
  195. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  196. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  197. package/docs/types/MediaData.html +5 -5
  198. package/docs/types/MediaStore.html +5 -5
  199. package/docs/types/ModelElement.html +5 -5
  200. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  201. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  202. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  203. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  204. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  205. package/docs/types/MoveArgs.html +5 -5
  206. package/docs/types/MoveOpts.html +5 -5
  207. package/docs/types/Object3DHelperEventMap.html +5 -5
  208. package/docs/types/ObjectFit.html +5 -5
  209. package/docs/types/PaintBrushEventMap.html +5 -5
  210. package/docs/types/PanoCompassPluginData.html +5 -5
  211. package/docs/types/PanoCompassPluginExportType.html +5 -5
  212. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  213. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  214. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  215. package/docs/types/PanoIndex.html +5 -5
  216. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  217. package/docs/types/PanoMeasureReturnType.html +5 -5
  218. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  219. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  220. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  221. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  222. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  223. package/docs/types/PlaneTag.html +5 -5
  224. package/docs/types/PlaneTagElement.html +5 -5
  225. package/docs/types/Point2DElement.html +5 -5
  226. package/docs/types/Point2DTag.html +5 -5
  227. package/docs/types/Point3DElement.html +5 -5
  228. package/docs/types/Point3DTag.html +5 -5
  229. package/docs/types/PointTag.html +5 -5
  230. package/docs/types/PointTagElement.html +5 -5
  231. package/docs/types/Position.html +5 -5
  232. package/docs/types/RotateArgs.html +5 -5
  233. package/docs/types/RotateOpts.html +5 -5
  234. package/docs/types/RuleLabelsKey.html +5 -5
  235. package/docs/types/RuleLabelsValue.html +5 -5
  236. package/docs/types/StickType.html +5 -5
  237. package/docs/types/Tag.html +5 -5
  238. package/docs/types/Tag2D.html +5 -5
  239. package/docs/types/Tag3D.html +5 -5
  240. package/docs/types/TagContentType.html +5 -5
  241. package/docs/types/TagDimensionType.html +5 -5
  242. package/docs/types/TagElement.html +5 -5
  243. package/docs/types/TagEvents.html +5 -5
  244. package/docs/types/TagGLTFObject.html +5 -5
  245. package/docs/types/TagHooks.html +5 -5
  246. package/docs/types/TagIconSize.html +5 -5
  247. package/docs/types/TagId.html +5 -5
  248. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  249. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  250. package/docs/types/WorkCode.html +5 -5
  251. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  252. package/docs/variables/PLUGIN.html +5 -5
  253. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  254. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  255. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  256. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  257. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  258. package/libs/ModelChassisCompassPlugin/Plugin.js +9 -9
  259. package/libs/PanoTagPlugin/controller/TagRender.js +74 -74
  260. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
  261. package/libs/PanoTagPlugin/controller/TagUtil.js +34 -46
  262. package/libs/PanoTagPlugin/controller/index.js +8 -8
  263. package/libs/base/BasePlugin.js +3 -3
  264. package/package.json +1 -1
  265. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
  266. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
  267. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
  268. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
  269. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
  270. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
  271. package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
  272. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
  273. package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
  274. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
  275. package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
  276. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
  277. package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
  278. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
  279. package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
  280. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
  281. package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
  282. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
  283. package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
package/dist/index.js CHANGED
@@ -355,8 +355,8 @@ class Rc extends Oc {
355
355
  n.strokeStyle = o;
356
356
  let s = null, r = [], a, l = [], c = 0;
357
357
  const u = (d, h, f) => {
358
- const A = this.color || "#ff0000";
359
- n.strokeStyle = A, n.beginPath(), n.moveTo(d.x, d.y), n.quadraticCurveTo(h.x, h.y, f.x, f.y), n.stroke();
358
+ const v = this.color || "#ff0000";
359
+ n.strokeStyle = v, n.beginPath(), n.moveTo(d.x, d.y), n.quadraticCurveTo(h.x, h.y, f.x, f.y), n.stroke();
360
360
  };
361
361
  e.onmousedown = (d) => {
362
362
  d.preventDefault(), c = Date.now();
@@ -368,8 +368,8 @@ class Rc extends Oc {
368
368
  const h = Number(d.clientX), f = Number(d.clientY);
369
369
  if (Math.abs(h - s.x) < 5 && Math.abs(f - s.y) < 5 || (r.push({ x: h, y: f }), l.push(Qn({ x: h, y: f }, this.clientWidth, this.clientHeight)), r.length < 3))
370
370
  return;
371
- const { control: A, end: g } = Rn(r);
372
- !A || !g || (u(s, A, g), s = g);
371
+ const { control: v, end: g } = Rn(r);
372
+ !v || !g || (u(s, v, g), s = g);
373
373
  }, e.onmouseup = (d) => {
374
374
  if (d.preventDefault(), s = null, r.length < 3)
375
375
  return;
@@ -400,8 +400,8 @@ class Rc extends Oc {
400
400
  const h = Number(d.touches[0].clientX), f = Number(d.touches[0].clientY);
401
401
  if (Math.abs(h - s.x) < 5 && Math.abs(f - s.y) < 5 || (r.push({ x: h, y: f }), l.push(Qn({ x: h, y: f }, this.clientWidth, this.clientHeight)), r.length < 3))
402
402
  return;
403
- const { control: A, end: g } = Rn(r);
404
- !A || !g || (u(s, A, g), s = g);
403
+ const { control: v, end: g } = Rn(r);
404
+ !v || !g || (u(s, v, g), s = g);
405
405
  }, e.ontouchend = e.ontouchcancel = (d) => {
406
406
  if (d.preventDefault(), s = null, r.length < 3)
407
407
  return;
@@ -487,15 +487,15 @@ class Rc extends Oc {
487
487
  const { line: l = [], color: c = "black", duration: u = 0, uuid: d } = n, h = Si(n.move || {}, this.clientWidth, this.clientHeight);
488
488
  let f = [h];
489
489
  if (a.strokeStyle = c, a.beginPath(), a.moveTo(h.x, h.y), u && !o) {
490
- let A = [];
490
+ let v = [];
491
491
  const g = this;
492
492
  g.tween = jc({ step: 0 }, { step: l.length - 1 }, u).onUpdate(({ step: p }) => {
493
493
  var b;
494
494
  if (g.tweening = !0, !g.ready)
495
495
  return a.clearRect(0, 0, g.canvas[d].width, g.canvas[d].height), (b = g.tween) == null ? void 0 : b.stop();
496
- const v = Math.floor(p);
497
- if (!A.find((w) => w === v)) {
498
- if (A.push(v), f.push(Si(l[v], g.clientWidth, g.clientHeight)), f.length < 3)
496
+ const A = Math.floor(p);
497
+ if (!v.find((w) => w === A)) {
498
+ if (v.push(A), f.push(Si(l[A], g.clientWidth, g.clientHeight)), f.length < 3)
499
499
  return;
500
500
  const { control: w, end: E } = Rn(f);
501
501
  if (!w || !E)
@@ -503,11 +503,11 @@ class Rc extends Oc {
503
503
  a.quadraticCurveTo(w.x, w.y, E.x, E.y), a.stroke();
504
504
  }
505
505
  }).onComplete((p) => {
506
- g.tween = void 0, g.tweening = !1, A = [], f = [], s && s(), r();
506
+ g.tween = void 0, g.tweening = !1, v = [], f = [], s && s(), r();
507
507
  });
508
508
  } else {
509
- for (let A = 0; A < l.length; A++) {
510
- if (f.push(Si(l[A], this.clientWidth, this.clientHeight)), f.length < 3)
509
+ for (let v = 0; v < l.length; v++) {
510
+ if (f.push(Si(l[v], this.clientWidth, this.clientHeight)), f.length < 3)
511
511
  continue;
512
512
  const { control: g, end: p } = Rn(f);
513
513
  !g || !p || a.quadraticCurveTo(g.x, g.y, p.x, p.y);
@@ -616,7 +616,7 @@ const gb = (i, t) => {
616
616
  return X.children.forEach((ee) => G.add(W(ee))), G;
617
617
  }
618
618
  }
619
- }, A = () => {
619
+ }, v = () => {
620
620
  if (!!i.renderer)
621
621
  return s || (s = new C.WebGLRenderer({ antialias: !1, alpha: !0 }), s.setPixelRatio(i.renderer.getPixelRatio()), s.outputEncoding = C.sRGBEncoding, s.setClearColor(1579548, 0), s.autoClear = !0), s;
622
622
  }, g = () => {
@@ -625,12 +625,12 @@ const gb = (i, t) => {
625
625
  }), l.remove(u), u = new C.Object3D(), l.add(u), n = !1, D();
626
626
  }, p = () => {
627
627
  !e || n || f();
628
- }, v = () => {
628
+ }, A = () => {
629
629
  e || (e = !0, l.add(u), !n && i.model.loaded && f(), D());
630
630
  }, b = () => {
631
631
  !e || (l.remove(u), o = !0, k(), e = !1);
632
632
  }, w = (R, W = {}) => {
633
- const X = A();
633
+ const X = v();
634
634
  if (!X)
635
635
  return;
636
636
  R.appendChild(X.domElement), E(W);
@@ -671,7 +671,7 @@ const gb = (i, t) => {
671
671
  }, O = () => ({
672
672
  enabled: e
673
673
  });
674
- return Object.assign(window, { camera: c }), i.on("modelLoaded", p), i.on("modelWillLoad", g), i.on("cameraDirectionUpdate", D), i.on("dispose", V), i.on("renderFrame", k), i.on("cameraPositionUpdate", D), { appendTo: w, refresh: E, changeConfigs: _, enable: v, disable: b, getCurrentState: O };
674
+ return Object.assign(window, { camera: c }), i.on("modelLoaded", p), i.on("modelWillLoad", g), i.on("cameraDirectionUpdate", D), i.on("dispose", V), i.on("renderFrame", k), i.on("cameraPositionUpdate", D), { appendTo: w, refresh: E, changeConfigs: _, enable: A, disable: b, getCurrentState: O };
675
675
  };
676
676
  function gt(...i) {
677
677
  const t = [];
@@ -808,16 +808,16 @@ class Uc extends Zi {
808
808
  constructor(e) {
809
809
  var L, I, D;
810
810
  const n = e.container, o = e.cornerPoints, s = (L = e.ratio) != null ? L : Yc, r = (I = e.dpr) != null ? I : 1, a = (D = e.pointerEvents) != null ? D : "auto", l = Math.max(Xc, s), c = o[0].distanceTo(o[1]), u = o[1].distanceTo(o[2]), d = si(c / s * r), h = si(u / s * r), f = Mn(...o);
811
- let A;
811
+ let v;
812
812
  if (l === s)
813
- n.style.width = `${d}px`, n.style.height = `${h}px`, A = n;
813
+ n.style.width = `${d}px`, n.style.height = `${h}px`, v = n;
814
814
  else {
815
815
  const k = document.createElement("div");
816
816
  k.style.width = `${d}px`, k.style.height = `${h}px`, k.style.pointerEvents = "none";
817
817
  const V = s / l;
818
- n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${V * d}px`, n.style.height = `${V * h}px`, k.appendChild(n), A = k;
818
+ n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${V * d}px`, n.style.height = `${V * h}px`, k.appendChild(n), v = k;
819
819
  }
820
- super(A);
820
+ super(v);
821
821
  m(this, "version", Da);
822
822
  m(this, "isCSS3DObjectPlus", !0);
823
823
  m(this, "container");
@@ -857,8 +857,8 @@ class Uc extends Zi {
857
857
  this.width = k * c, this.height = k * u, this.domWidthPx = k * d, this.domHeightPx = k * h, this.centerPosition = new U().subVectors(f, o[0]).multiplyScalar(k).add(o[0]);
858
858
  }
859
859
  n.classList.add(`${Nc}__container`);
860
- const g = new U().subVectors(o[1], o[0]), p = new U().subVectors(o[3], o[0]), v = new U().crossVectors(g, p).normalize();
861
- this.lookAt(v);
860
+ const g = new U().subVectors(o[1], o[0]), p = new U().subVectors(o[3], o[0]), A = new U().crossVectors(g, p).normalize();
861
+ this.lookAt(A);
862
862
  const b = this.up.clone().applyQuaternion(this.quaternion), w = p.clone(), E = new U().crossVectors(b, w).normalize();
863
863
  this.rotateOnWorldAxis(E, b.angleTo(w)), this.position.copy(f), this.addEventListener("added", () => {
864
864
  var k;
@@ -1030,14 +1030,14 @@ class In {
1030
1030
  let h = !1;
1031
1031
  const f = this.createObject(s, { ratio: r, dpr: a, container: u, mode: l, pointerEvents: d });
1032
1032
  De.css3DObjects.push(f), o.scene && this.setScene(o.scene);
1033
- const A = () => {
1033
+ const v = () => {
1034
1034
  if (h)
1035
1035
  return;
1036
1036
  const E = f.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
1037
1037
  !E || E.add(f);
1038
1038
  }, g = () => {
1039
- h || (A(), this.render(t), this.hooks.emit("render"));
1040
- }, p = (E) => this.setVisibleById(f.id, E), v = (E) => this.setEnabledById(f.id, E), b = () => (h = !0, f.removeFromParent(), !0), w = l === "front" ? De.frontModeStore.css3DRenderer : De.behindModeStore.css3DRenderer;
1039
+ h || (v(), this.render(t), this.hooks.emit("render"));
1040
+ }, p = (E) => this.setVisibleById(f.id, E), A = (E) => this.setEnabledById(f.id, E), b = () => (h = !0, f.removeFromParent(), !0), w = l === "front" ? De.frontModeStore.css3DRenderer : De.behindModeStore.css3DRenderer;
1041
1041
  return c && g(), {
1042
1042
  id: f.uuid,
1043
1043
  container: u,
@@ -1046,9 +1046,9 @@ class In {
1046
1046
  show: () => p(!0),
1047
1047
  hide: () => p(!1),
1048
1048
  setVisible: p,
1049
- enable: () => v(!0),
1050
- disable: () => v(!1),
1051
- setEnabled: v,
1049
+ enable: () => A(!0),
1050
+ disable: () => A(!1),
1051
+ setEnabled: A,
1052
1052
  dispose: b,
1053
1053
  appendToElement: (E) => w.setWrapper(E)
1054
1054
  };
@@ -1340,16 +1340,16 @@ const Ab = (i) => {
1340
1340
  new U(0, 0, 1)
1341
1341
  )
1342
1342
  ), i.scene.add(p), i.needsRender = !0;
1343
- const v = () => {
1343
+ const A = () => {
1344
1344
  i.scene.remove(p);
1345
1345
  };
1346
- return t.disposers.push(v), { clear: v, pointAxesHelperMesh: p };
1346
+ return t.disposers.push(A), { clear: A, pointAxesHelperMesh: p };
1347
1347
  }, s = (u, d = 0) => {
1348
- var v, b;
1349
- const h = (v = i == null ? void 0 : i.camera) == null ? void 0 : v.position;
1348
+ var A, b;
1349
+ const h = (A = i == null ? void 0 : i.camera) == null ? void 0 : A.position;
1350
1350
  if (!h)
1351
1351
  return !1;
1352
- const f = u.distanceTo(h), A = u.sub(h).normalize(), g = new Mt(h, A), p = (b = i.model.intersectRaycaster(g)) == null ? void 0 : b[0];
1352
+ const f = u.distanceTo(h), v = u.sub(h).normalize(), g = new Mt(h, v), p = (b = i.model.intersectRaycaster(g)) == null ? void 0 : b[0];
1353
1353
  return !(p && p.distance + d < f);
1354
1354
  }, r = () => t.intersection, a = () => {
1355
1355
  var u, d;
@@ -1599,13 +1599,13 @@ function Ga(i, t, e, n, o, s, r, a = 0) {
1599
1599
  let c = `{
1600
1600
  `;
1601
1601
  for (let p = 0; p <= 1; p += l) {
1602
- const v = t + (e - t) * s(p);
1603
- c += p * 100 + `%{${r(v, 1 - v)}}
1602
+ const A = t + (e - t) * s(p);
1603
+ c += p * 100 + `%{${r(A, 1 - A)}}
1604
1604
  `;
1605
1605
  }
1606
1606
  const u = c + `100% {${r(e, 1 - e)}}
1607
- }`, d = `__svelte_${lu(u)}_${a}`, h = go(i), { stylesheet: f, rules: A } = ai.get(h) || cu(h, i);
1608
- A[d] || (A[d] = !0, f.insertRule(`@keyframes ${d} ${u}`, f.cssRules.length));
1607
+ }`, d = `__svelte_${lu(u)}_${a}`, h = go(i), { stylesheet: f, rules: v } = ai.get(h) || cu(h, i);
1608
+ v[d] || (v[d] = !0, f.insertRule(`@keyframes ${d} ${u}`, f.cssRules.length));
1609
1609
  const g = i.style.animation || "";
1610
1610
  return i.style.animation = `${g ? `${g}, ` : ""}${d} ${n}ms linear ${o}ms 1 both`, li += 1, d;
1611
1611
  }
@@ -1750,16 +1750,16 @@ function Tt(i, t, e) {
1750
1750
  s && $i(i, s);
1751
1751
  }
1752
1752
  function c() {
1753
- const { delay: d = 0, duration: h = 300, easing: f = At, tick: A = N, css: g } = n || Ua;
1754
- g && (s = Ga(i, 0, 1, h, d, f, g, a++)), A(0, 1);
1755
- const p = Va() + d, v = p + h;
1753
+ const { delay: d = 0, duration: h = 300, easing: f = At, tick: v = N, css: g } = n || Ua;
1754
+ g && (s = Ga(i, 0, 1, h, d, f, g, a++)), v(0, 1);
1755
+ const p = Va() + d, A = p + h;
1756
1756
  r && r.abort(), o = !0, Qe(() => ci(i, !0, "start")), r = Qa((b) => {
1757
1757
  if (o) {
1758
- if (b >= v)
1759
- return A(1, 0), ci(i, !0, "end"), l(), o = !1;
1758
+ if (b >= A)
1759
+ return v(1, 0), ci(i, !0, "end"), l(), o = !1;
1760
1760
  if (b >= p) {
1761
1761
  const w = f((b - p) / h);
1762
- A(w, 1 - w);
1762
+ v(w, 1 - w);
1763
1763
  }
1764
1764
  }
1765
1765
  return o;
@@ -1785,10 +1785,10 @@ function sn(i, t, e) {
1785
1785
  function a() {
1786
1786
  const { delay: l = 0, duration: c = 300, easing: u = At, tick: d = N, css: h } = n || Ua;
1787
1787
  h && (s = Ga(i, 1, 0, c, l, u, h));
1788
- const f = Va() + l, A = f + c;
1788
+ const f = Va() + l, v = f + c;
1789
1789
  Qe(() => ci(i, !1, "start")), Qa((g) => {
1790
1790
  if (o) {
1791
- if (g >= A)
1791
+ if (g >= v)
1792
1792
  return d(0, 1), ci(i, !1, "end"), --r.r || He(r.c), !1;
1793
1793
  if (g >= f) {
1794
1794
  const p = u((g - f) / c);
@@ -1851,15 +1851,15 @@ function It(i, t) {
1851
1851
  });
1852
1852
  }
1853
1853
  function Ke(i, t, e, n, o, s, r, a, l, c, u, d) {
1854
- let h = i.length, f = s.length, A = h;
1854
+ let h = i.length, f = s.length, v = h;
1855
1855
  const g = {};
1856
- for (; A--; )
1857
- g[i[A].key] = A;
1858
- const p = [], v = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
1859
- for (A = f; A--; ) {
1860
- const I = d(o, s, A), D = e(I);
1856
+ for (; v--; )
1857
+ g[i[v].key] = v;
1858
+ const p = [], A = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
1859
+ for (v = f; v--; ) {
1860
+ const I = d(o, s, v), D = e(I);
1861
1861
  let k = r.get(D);
1862
- k ? n && k.p(I, t) : (k = c(D, I), k.c()), v.set(D, p[A] = k), D in g && b.set(D, Math.abs(A - g[D]));
1862
+ k ? n && k.p(I, t) : (k = c(D, I), k.c()), A.set(D, p[v] = k), D in g && b.set(D, Math.abs(v - g[D]));
1863
1863
  }
1864
1864
  const w = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Set();
1865
1865
  function L(I) {
@@ -1867,11 +1867,11 @@ function Ke(i, t, e, n, o, s, r, a, l, c, u, d) {
1867
1867
  }
1868
1868
  for (; h && f; ) {
1869
1869
  const I = p[f - 1], D = i[h - 1], k = I.key, V = D.key;
1870
- I === D ? (u = I.first, h--, f--) : v.has(V) ? !r.has(k) || w.has(k) ? L(I) : E.has(V) ? h-- : b.get(k) > b.get(V) ? (E.add(k), L(I)) : (w.add(V), h--) : (l(D, r), h--);
1870
+ I === D ? (u = I.first, h--, f--) : A.has(V) ? !r.has(k) || w.has(k) ? L(I) : E.has(V) ? h-- : b.get(k) > b.get(V) ? (E.add(k), L(I)) : (w.add(V), h--) : (l(D, r), h--);
1871
1871
  }
1872
1872
  for (; h--; ) {
1873
1873
  const I = i[h];
1874
- v.has(I.key) || l(I, r);
1874
+ A.has(I.key) || l(I, r);
1875
1875
  }
1876
1876
  for (; f; )
1877
1877
  L(p[f - 1]);
@@ -1944,8 +1944,8 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
1944
1944
  r && r(c.root);
1945
1945
  let u = !1;
1946
1946
  if (c.ctx = e ? e(i, t.props || {}, (d, h, ...f) => {
1947
- const A = f.length ? f[0] : h;
1948
- return c.ctx && o(c.ctx[d], c.ctx[d] = A) && (!c.skip_bound && c.bound[d] && c.bound[d](A), u && pu(i, d)), h;
1947
+ const v = f.length ? f[0] : h;
1948
+ return c.ctx && o(c.ctx[d], c.ctx[d] = v) && (!c.skip_bound && c.bound[d] && c.bound[d](v), u && pu(i, d)), h;
1949
1949
  }) : [], c.update(), u = !0, He(c.before_update), c.fragment = n ? n(c.ctx) : !1, t.target) {
1950
1950
  if (t.hydrate) {
1951
1951
  const d = ru(t.target);
@@ -2284,8 +2284,8 @@ function rn(i) {
2284
2284
  new Qu((e, n) => {
2285
2285
  var o, s, r, a, l, c;
2286
2286
  for (const u of e) {
2287
- const { borderBoxSize: d, contentRect: h } = u, f = (r = (s = (o = d == null ? void 0 : d[0]) == null ? void 0 : o.inlineSize) != null ? s : h.width) != null ? r : i.clientWidth, A = (c = (l = (a = d == null ? void 0 : d[0]) == null ? void 0 : a.blockSize) != null ? l : h.height) != null ? c : i.clientHeight;
2288
- i.dispatchEvent(new CustomEvent("clientWidth", { detail: f })), i.dispatchEvent(new CustomEvent("clientHeight", { detail: A }));
2287
+ const { borderBoxSize: d, contentRect: h } = u, f = (r = (s = (o = d == null ? void 0 : d[0]) == null ? void 0 : o.inlineSize) != null ? s : h.width) != null ? r : i.clientWidth, v = (c = (l = (a = d == null ? void 0 : d[0]) == null ? void 0 : a.blockSize) != null ? l : h.height) != null ? c : i.clientHeight;
2288
+ i.dispatchEvent(new CustomEvent("clientWidth", { detail: f })), i.dispatchEvent(new CustomEvent("clientHeight", { detail: v }));
2289
2289
  }
2290
2290
  }).observe(i);
2291
2291
  }
@@ -2379,20 +2379,20 @@ function Hu(i) {
2379
2379
  function Gu(i, t, e) {
2380
2380
  var p;
2381
2381
  let n, { five: o } = t, { roomLabels: s } = t, r, a, l = (p = o.model.shownFloor) != null ? p : null;
2382
- function c(v) {
2383
- if (!(l === null || v.floorIndex === l))
2382
+ function c(A) {
2383
+ if (!(l === null || A.floorIndex === l))
2384
2384
  return !1;
2385
- const w = new Mt(), E = o.camera.position.clone(), L = new U(v.position.x, v.position.y, v.position.z), I = L.distanceTo(E);
2385
+ const w = new Mt(), E = o.camera.position.clone(), L = new U(A.position.x, A.position.y, A.position.z), I = L.distanceTo(E);
2386
2386
  w.set(E.clone(), L.clone().sub(E).normalize());
2387
2387
  const [D] = o.model.intersectRaycaster(w);
2388
2388
  return !(D && D.distance + 1 < I);
2389
2389
  }
2390
- function u(v, b) {
2391
- const E = new U(v.position.x, v.position.y, v.position.z).clone().project(o.camera), L = Math.ceil((E.x + 1) / 2 * b.x), I = Math.ceil((-E.y + 1) / 2 * b.y);
2390
+ function u(A, b) {
2391
+ const E = new U(A.position.x, A.position.y, A.position.z).clone().project(o.camera), L = Math.ceil((E.x + 1) / 2 * b.x), I = Math.ceil((-E.y + 1) / 2 * b.y);
2392
2392
  return `translate(${L}px, ${I}px)`;
2393
2393
  }
2394
- function d(v) {
2395
- const { rendererSize: b, shownFloor: w } = v, E = /* @__PURE__ */ new Map();
2394
+ function d(A) {
2395
+ const { rendererSize: b, shownFloor: w } = A, E = /* @__PURE__ */ new Map();
2396
2396
  function L(D) {
2397
2397
  const k = E.get(D.id);
2398
2398
  if (k)
@@ -2408,21 +2408,21 @@ function Gu(i, t, e) {
2408
2408
  function h() {
2409
2409
  e(0, s = d({ rendererSize: n, shownFloor: l }));
2410
2410
  }
2411
- function f(v) {
2412
- e(4, l = v);
2411
+ function f(A) {
2412
+ e(4, l = A);
2413
2413
  }
2414
2414
  o.on("cameraUpdate", h), o.on("modelShownFloorChange", f), _a(() => {
2415
2415
  e(0, s = d({ rendererSize: n, shownFloor: l }));
2416
2416
  }), Pt(() => {
2417
2417
  o.off("cameraUpdate", h), o.off("modelShownFloorChange", f);
2418
2418
  });
2419
- const A = (v) => {
2420
- e(2, r = v.detail);
2421
- }, g = (v) => {
2422
- e(3, a = v.detail);
2419
+ const v = (A) => {
2420
+ e(2, r = A.detail);
2421
+ }, g = (A) => {
2422
+ e(3, a = A.detail);
2423
2423
  };
2424
- return i.$$set = (v) => {
2425
- "five" in v && e(1, o = v.five), "roomLabels" in v && e(0, s = v.roomLabels);
2424
+ return i.$$set = (A) => {
2425
+ "five" in A && e(1, o = A.five), "roomLabels" in A && e(0, s = A.roomLabels);
2426
2426
  }, i.$$.update = () => {
2427
2427
  i.$$.dirty & 12 && e(5, n = { x: r, y: a }), i.$$.dirty & 48 && e(0, s = d({ rendererSize: n, shownFloor: l }));
2428
2428
  }, [
@@ -2432,7 +2432,7 @@ function Gu(i, t, e) {
2432
2432
  a,
2433
2433
  l,
2434
2434
  n,
2435
- A,
2435
+ v,
2436
2436
  g
2437
2437
  ];
2438
2438
  }
@@ -2641,7 +2641,7 @@ function Ku(i) {
2641
2641
  }
2642
2642
  function $u(i, t, e) {
2643
2643
  let { panoIndex: n } = t, { floorplanData: o } = t, { lastPanoramaLongitude: s } = t, { cameraImageUrl: r } = t;
2644
- const { observers: a } = o, l = a[n], c = l.positionInImage.x, u = l.positionInImage.y, d = c * 100 + "%", h = u * 100 + "%", f = -il(s) + 45, A = document.body.clientWidth, g = document.body.clientHeight, v = `${(A < 500 || g < 500 ? 17 : 37) / 16}rem`;
2644
+ const { observers: a } = o, l = a[n], c = l.positionInImage.x, u = l.positionInImage.y, d = c * 100 + "%", h = u * 100 + "%", f = -il(s) + 45, v = document.body.clientWidth, g = document.body.clientHeight, A = `${(v < 500 || g < 500 ? 17 : 37) / 16}rem`;
2645
2645
  return i.$$set = (b) => {
2646
2646
  "panoIndex" in b && e(5, n = b.panoIndex), "floorplanData" in b && e(6, o = b.floorplanData), "lastPanoramaLongitude" in b && e(7, s = b.lastPanoramaLongitude), "cameraImageUrl" in b && e(0, r = b.cameraImageUrl);
2647
2647
  }, [
@@ -2649,7 +2649,7 @@ function $u(i, t, e) {
2649
2649
  d,
2650
2650
  h,
2651
2651
  f,
2652
- v,
2652
+ A,
2653
2653
  n,
2654
2654
  o,
2655
2655
  s
@@ -3040,7 +3040,7 @@ function Id(i, t) {
3040
3040
  return o;
3041
3041
  }
3042
3042
  function kd(i, t, e) {
3043
- let n, o, s, r, a, { pxmm: l } = t, { roomAreaEnable: c } = t, { roomNameEnable: u } = t, { room: d } = t, { hoveredRoom: h } = t, { getRoomAreaText: f } = t, { getLabelElement: A } = t, { adaptiveRoomLabelVisibleEnable: g } = t;
3043
+ let n, o, s, r, a, { pxmm: l } = t, { roomAreaEnable: c } = t, { roomNameEnable: u } = t, { room: d } = t, { hoveredRoom: h } = t, { getRoomAreaText: f } = t, { getLabelElement: v } = t, { adaptiveRoomLabelVisibleEnable: g } = t;
3044
3044
  function p(F, B) {
3045
3045
  if (B.width === 0 || B.height === 0)
3046
3046
  return () => !1;
@@ -3055,7 +3055,7 @@ function kd(i, t, e) {
3055
3055
  ].every((Ae) => Id(Ae, Se));
3056
3056
  };
3057
3057
  }
3058
- const v = document.body.clientWidth, b = document.body.clientHeight, w = d.roomLabel, E = w.positionInImage.x * 100 + "%", L = w.positionInImage.y * 100 + "%", I = (v < 500 || b < 500 ? 10 : 14) + "px";
3058
+ const A = document.body.clientWidth, b = document.body.clientHeight, w = d.roomLabel, E = w.positionInImage.x * 100 + "%", L = w.positionInImage.y * 100 + "%", I = (A < 500 || b < 500 ? 10 : 14) + "px";
3059
3059
  let D = 0, k = 0, V = !1;
3060
3060
  h.subscribe(function(B) {
3061
3061
  e(16, V = !!B && B.id === d.id);
@@ -3066,14 +3066,14 @@ function kd(i, t, e) {
3066
3066
  e(5, k = F.detail);
3067
3067
  };
3068
3068
  return i.$$set = (F) => {
3069
- "pxmm" in F && e(12, l = F.pxmm), "roomAreaEnable" in F && e(0, c = F.roomAreaEnable), "roomNameEnable" in F && e(1, u = F.roomNameEnable), "room" in F && e(2, d = F.room), "hoveredRoom" in F && e(13, h = F.hoveredRoom), "getRoomAreaText" in F && e(14, f = F.getRoomAreaText), "getLabelElement" in F && e(3, A = F.getLabelElement), "adaptiveRoomLabelVisibleEnable" in F && e(15, g = F.adaptiveRoomLabelVisibleEnable);
3069
+ "pxmm" in F && e(12, l = F.pxmm), "roomAreaEnable" in F && e(0, c = F.roomAreaEnable), "roomNameEnable" in F && e(1, u = F.roomNameEnable), "room" in F && e(2, d = F.room), "hoveredRoom" in F && e(13, h = F.hoveredRoom), "getRoomAreaText" in F && e(14, f = F.getRoomAreaText), "getLabelElement" in F && e(3, v = F.getLabelElement), "adaptiveRoomLabelVisibleEnable" in F && e(15, g = F.adaptiveRoomLabelVisibleEnable);
3070
3070
  }, i.$$.update = () => {
3071
- i.$$.dirty & 12 && e(8, n = A == null ? void 0 : A(d)), i.$$.dirty & 16388 && e(7, o = d.size ? f(d.size) : ""), i.$$.dirty & 48 && e(18, s = { width: D, height: k }), i.$$.dirty & 262148 && e(17, r = s ? p(d, s) : void 0), i.$$.dirty & 233472 && e(6, a = g ? V ? !0 : !!(r != null && r(l)) : !0);
3071
+ i.$$.dirty & 12 && e(8, n = v == null ? void 0 : v(d)), i.$$.dirty & 16388 && e(7, o = d.size ? f(d.size) : ""), i.$$.dirty & 48 && e(18, s = { width: D, height: k }), i.$$.dirty & 262148 && e(17, r = s ? p(d, s) : void 0), i.$$.dirty & 233472 && e(6, a = g ? V ? !0 : !!(r != null && r(l)) : !0);
3072
3072
  }, [
3073
3073
  c,
3074
3074
  u,
3075
3075
  d,
3076
- A,
3076
+ v,
3077
3077
  D,
3078
3078
  k,
3079
3079
  a,
@@ -3248,15 +3248,15 @@ function Ld(i) {
3248
3248
  }
3249
3249
  function Sd(i, t, e) {
3250
3250
  let n, { floorIndex: o } = t, { roomAreaEnable: s } = t, { roomNameEnable: r } = t, { floorplanData: a } = t, { hoveredRoom: l } = t, { getRoomAreaText: c } = t, { getLabelElement: u } = t, { adaptiveRoomLabelVisibleEnable: d } = t, h = 0, f = 0;
3251
- const A = (g) => {
3251
+ const v = (g) => {
3252
3252
  e(6, h = g.detail);
3253
3253
  };
3254
3254
  return i.$$set = (g) => {
3255
3255
  "floorIndex" in g && e(9, o = g.floorIndex), "roomAreaEnable" in g && e(0, s = g.roomAreaEnable), "roomNameEnable" in g && e(1, r = g.roomNameEnable), "floorplanData" in g && e(10, a = g.floorplanData), "hoveredRoom" in g && e(2, l = g.hoveredRoom), "getRoomAreaText" in g && e(3, c = g.getRoomAreaText), "getLabelElement" in g && e(4, u = g.getLabelElement), "adaptiveRoomLabelVisibleEnable" in g && e(5, d = g.adaptiveRoomLabelVisibleEnable);
3256
3256
  }, i.$$.update = () => {
3257
3257
  if (i.$$.dirty & 1536 && e(8, n = a.floorDatas[o].rooms), i.$$.dirty & 1088) {
3258
- const { max: g, min: p } = a.bounding, v = g.x - p.x;
3259
- e(7, f = h / v);
3258
+ const { max: g, min: p } = a.bounding, A = g.x - p.x;
3259
+ e(7, f = h / A);
3260
3260
  }
3261
3261
  }, [
3262
3262
  s,
@@ -3270,7 +3270,7 @@ function Sd(i, t, e) {
3270
3270
  n,
3271
3271
  o,
3272
3272
  a,
3273
- A
3273
+ v
3274
3274
  ];
3275
3275
  }
3276
3276
  class Md extends oe {
@@ -3342,50 +3342,50 @@ function rs(i, t) {
3342
3342
  }
3343
3343
  function zd(i) {
3344
3344
  let t, e, n, o, s, r, a = [], l = /* @__PURE__ */ new Map(), c, u = i[3], d = [];
3345
- for (let A = 0; A < u.length; A += 1)
3346
- d[A] = ss(os(i, u, A));
3345
+ for (let v = 0; v < u.length; v += 1)
3346
+ d[v] = ss(os(i, u, v));
3347
3347
  let h = i[4];
3348
- const f = (A) => A[13];
3349
- for (let A = 0; A < h.length; A += 1) {
3350
- let g = is(i, h, A), p = f(g);
3351
- l.set(p, a[A] = rs(p, g));
3348
+ const f = (v) => v[13];
3349
+ for (let v = 0; v < h.length; v += 1) {
3350
+ let g = is(i, h, v), p = f(g);
3351
+ l.set(p, a[v] = rs(p, g));
3352
3352
  }
3353
3353
  return {
3354
3354
  c() {
3355
3355
  t = z("div"), e = z("div"), n = $(), o = z("div");
3356
- for (let A = 0; A < d.length; A += 1)
3357
- d[A].c();
3356
+ for (let v = 0; v < d.length; v += 1)
3357
+ d[v].c();
3358
3358
  s = $(), r = z("div");
3359
- for (let A = 0; A < a.length; A += 1)
3360
- a[A].c();
3359
+ for (let v = 0; v < a.length; v += 1)
3360
+ a[v].c();
3361
3361
  y(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), y(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), q(o, "is-row", i[2]), y(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), y(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), q(t, "is-row", i[2]), T(t, "width", i[2] ? "100%" : 1 / 16 + "rem"), T(t, "height", i[2] ? 1 / 16 + "rem" : "100%");
3362
3362
  },
3363
- m(A, g) {
3364
- M(A, t, g), j(t, e), j(t, n), j(t, o);
3363
+ m(v, g) {
3364
+ M(v, t, g), j(t, e), j(t, n), j(t, o);
3365
3365
  for (let p = 0; p < d.length; p += 1)
3366
3366
  d[p].m(o, null);
3367
3367
  j(t, s), j(t, r);
3368
3368
  for (let p = 0; p < a.length; p += 1)
3369
3369
  a[p].m(r, null);
3370
3370
  },
3371
- p(A, [g]) {
3371
+ p(v, [g]) {
3372
3372
  if (g & 8) {
3373
- u = A[3];
3373
+ u = v[3];
3374
3374
  let p;
3375
3375
  for (p = 0; p < u.length; p += 1) {
3376
- const v = os(A, u, p);
3377
- d[p] ? d[p].p(v, g) : (d[p] = ss(v), d[p].c(), d[p].m(o, null));
3376
+ const A = os(v, u, p);
3377
+ d[p] ? d[p].p(A, g) : (d[p] = ss(A), d[p].c(), d[p].m(o, null));
3378
3378
  }
3379
3379
  for (; p < d.length; p += 1)
3380
3380
  d[p].d(1);
3381
3381
  d.length = u.length;
3382
3382
  }
3383
- g & 22 && (h = A[4], a = Ke(a, g, f, 1, A, h, l, r, vo, rs, null, is)), g & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + A[0] + " svelte-djlmk4") && y(t, "class", c), g & 5 && q(t, "is-row", A[2]);
3383
+ g & 22 && (h = v[4], a = Ke(a, g, f, 1, v, h, l, r, vo, rs, null, is)), g & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + v[0] + " svelte-djlmk4") && y(t, "class", c), g & 5 && q(t, "is-row", v[2]);
3384
3384
  },
3385
3385
  i: N,
3386
3386
  o: N,
3387
- d(A) {
3388
- A && S(t), ut(d, A);
3387
+ d(v) {
3388
+ v && S(t), ut(d, v);
3389
3389
  for (let g = 0; g < a.length; g += 1)
3390
3390
  a[g].d();
3391
3391
  }
@@ -3394,17 +3394,17 @@ function zd(i) {
3394
3394
  const Ot = 1e3, Qt = 180;
3395
3395
  function Bd(i, t, e) {
3396
3396
  let { type: n } = t, { data: o } = t, { bounding: s } = t, { getRuleDistanceText: r } = t;
3397
- const a = n === "top" || n === "bottom", l = s.max.x - s.min.x - (Ot - Qt) * 2, c = s.max.y - s.min.y - (Ot - Qt) * 2, u = o.map(([A, g]) => a ? [A.x, g.x] : [A.y, g.y]).flat().sort().filter((A, g, p) => g === 0 ? !0 : A !== p[g - 1]), d = u.map((A) => {
3398
- const g = a ? (A - s.min.x - Ot + Qt) / l : 0, p = a ? 0 : (A - s.min.y - Ot + Qt) / c;
3397
+ const a = n === "top" || n === "bottom", l = s.max.x - s.min.x - (Ot - Qt) * 2, c = s.max.y - s.min.y - (Ot - Qt) * 2, u = o.map(([v, g]) => a ? [v.x, g.x] : [v.y, g.y]).flat().sort().filter((v, g, p) => g === 0 ? !0 : v !== p[g - 1]), d = u.map((v) => {
3398
+ const g = a ? (v - s.min.x - Ot + Qt) / l : 0, p = a ? 0 : (v - s.min.y - Ot + Qt) / c;
3399
3399
  return { left: g, bottom: p };
3400
3400
  });
3401
3401
  d.unshift({ left: 0, bottom: 0 }), d.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
3402
- const h = u[u.length - 1] - u[0], f = u.map((A, g, p) => {
3403
- const v = g === 0 ? 0 : A - p[g - 1], b = g === 0 ? 0 : (A + p[g - 1]) / 2, w = a ? (b - s.min.x - Ot + Qt) / l : 0, E = a ? 0 : (b - s.min.y - Ot + Qt) / c;
3404
- return { left: w, bottom: E, distance: v };
3405
- }).filter(({ distance: A }) => A / h > 0.1);
3406
- return i.$$set = (A) => {
3407
- "type" in A && e(0, n = A.type), "data" in A && e(5, o = A.data), "bounding" in A && e(6, s = A.bounding), "getRuleDistanceText" in A && e(1, r = A.getRuleDistanceText);
3402
+ const h = u[u.length - 1] - u[0], f = u.map((v, g, p) => {
3403
+ const A = g === 0 ? 0 : v - p[g - 1], b = g === 0 ? 0 : (v + p[g - 1]) / 2, w = a ? (b - s.min.x - Ot + Qt) / l : 0, E = a ? 0 : (b - s.min.y - Ot + Qt) / c;
3404
+ return { left: w, bottom: E, distance: A };
3405
+ }).filter(({ distance: v }) => v / h > 0.1);
3406
+ return i.$$set = (v) => {
3407
+ "type" in v && e(0, n = v.type), "data" in v && e(5, o = v.data), "bounding" in v && e(6, s = v.bounding), "getRuleDistanceText" in v && e(1, r = v.getRuleDistanceText);
3408
3408
  }, [n, r, a, d, f, o, s];
3409
3409
  }
3410
3410
  class jd extends oe {
@@ -3521,11 +3521,11 @@ function Od(i) {
3521
3521
  }
3522
3522
  const cs = 1e3, us = 180;
3523
3523
  function Qd(i, t, e) {
3524
- let n, o, s, r, a, l, c, u, d, h, { floorIndex: f } = t, { floorplanData: A } = t, { getRuleDistanceText: g } = t;
3524
+ let n, o, s, r, a, l, c, u, d, h, { floorIndex: f } = t, { floorplanData: v } = t, { getRuleDistanceText: g } = t;
3525
3525
  return i.$$set = (p) => {
3526
- "floorIndex" in p && e(5, f = p.floorIndex), "floorplanData" in p && e(6, A = p.floorplanData), "getRuleDistanceText" in p && e(0, g = p.getRuleDistanceText);
3526
+ "floorIndex" in p && e(5, f = p.floorIndex), "floorplanData" in p && e(6, v = p.floorplanData), "getRuleDistanceText" in p && e(0, g = p.getRuleDistanceText);
3527
3527
  }, i.$$.update = () => {
3528
- i.$$.dirty & 64 && e(1, n = A.bounding), i.$$.dirty & 96 && e(11, o = A.floorDatas[f].rules), i.$$.dirty & 2048 && e(12, s = Object.keys(o)), i.$$.dirty & 6144 && e(4, r = s.map((p) => [p, o[p]])), i.$$.dirty & 2 && e(9, a = n.max.x - n.min.x), i.$$.dirty & 2 && e(7, l = n.max.y - n.min.y), i.$$.dirty & 2 && e(10, c = n.max.x - n.min.x - (cs - us) * 2), i.$$.dirty & 2 && e(8, u = n.max.y - n.min.y - (cs - us) * 2), i.$$.dirty & 1536 && e(3, d = c / a * 100 + "%"), i.$$.dirty & 384 && e(2, h = u / l * 100 + "%");
3528
+ i.$$.dirty & 64 && e(1, n = v.bounding), i.$$.dirty & 96 && e(11, o = v.floorDatas[f].rules), i.$$.dirty & 2048 && e(12, s = Object.keys(o)), i.$$.dirty & 6144 && e(4, r = s.map((p) => [p, o[p]])), i.$$.dirty & 2 && e(9, a = n.max.x - n.min.x), i.$$.dirty & 2 && e(7, l = n.max.y - n.min.y), i.$$.dirty & 2 && e(10, c = n.max.x - n.min.x - (cs - us) * 2), i.$$.dirty & 2 && e(8, u = n.max.y - n.min.y - (cs - us) * 2), i.$$.dirty & 1536 && e(3, d = c / a * 100 + "%"), i.$$.dirty & 384 && e(2, h = u / l * 100 + "%");
3529
3529
  }, [
3530
3530
  g,
3531
3531
  n,
@@ -3533,7 +3533,7 @@ function Qd(i, t, e) {
3533
3533
  d,
3534
3534
  r,
3535
3535
  f,
3536
- A,
3536
+ v,
3537
3537
  l,
3538
3538
  u,
3539
3539
  a,
@@ -3896,10 +3896,10 @@ function ah(i, t, e) {
3896
3896
  }
3897
3897
  const { bounding: h } = a, f = Ci(s.path, {
3898
3898
  needZ: !0,
3899
- format: (A) => sl(A, h)
3899
+ format: (v) => sl(v, h)
3900
3900
  });
3901
- return i.$$set = (A) => {
3902
- "room" in A && e(0, s = A.room), "floorIndex" in A && e(1, r = A.floorIndex), "floorplanData" in A && e(6, a = A.floorplanData), "hoveredRoom" in A && e(7, l = A.hoveredRoom), "highlightData" in A && e(8, c = A.highlightData);
3901
+ return i.$$set = (v) => {
3902
+ "room" in v && e(0, s = v.room), "floorIndex" in v && e(1, r = v.floorIndex), "floorplanData" in v && e(6, a = v.floorplanData), "hoveredRoom" in v && e(7, l = v.hoveredRoom), "highlightData" in v && e(8, c = v.highlightData);
3903
3903
  }, i.$$.update = () => {
3904
3904
  i.$$.dirty & 259 && e(9, n = c[`${r}_${s.id}`]), i.$$.dirty & 512 && e(2, o = n ? `fill: ${n.color}; --opacity: ${n.opacity}; pointer-events: ${n.disabled ? "none" : "auto"}` : null);
3905
3905
  }, [
@@ -4206,8 +4206,8 @@ function fh(i) {
4206
4206
  }
4207
4207
  ];
4208
4208
  let d = {};
4209
- for (let v = 0; v < u.length; v += 1)
4210
- d = ze(d, u[v]);
4209
+ for (let A = 0; A < u.length; A += 1)
4210
+ d = ze(d, u[A]);
4211
4211
  e = new oh({ props: d });
4212
4212
  let h = (i[2] || i[3]) && ps(i);
4213
4213
  const f = [
@@ -4216,56 +4216,56 @@ function fh(i) {
4216
4216
  floorIndex: i[1]
4217
4217
  }
4218
4218
  ];
4219
- let A = {};
4220
- for (let v = 0; v < f.length; v += 1)
4221
- A = ze(A, f[v]);
4222
- s = new ol({ props: A });
4219
+ let v = {};
4220
+ for (let A = 0; A < f.length; A += 1)
4221
+ v = ze(v, f[A]);
4222
+ s = new ol({ props: v });
4223
4223
  let g = i[4] && gs(i), p = i[7] && As(i);
4224
4224
  return {
4225
4225
  c() {
4226
4226
  t = z("div"), K(e.$$.fragment), n = $(), h && h.c(), o = $(), K(s.$$.fragment), r = $(), g && g.c(), a = $(), p && p.c(), y(t, "class", l = Me(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
4227
4227
  },
4228
- m(v, b) {
4229
- M(v, t, b), J(e, t, null), j(t, n), h && h.m(t, null), j(t, o), J(s, t, null), j(t, r), g && g.m(t, null), j(t, a), p && p.m(t, null), c = !0;
4228
+ m(A, b) {
4229
+ M(A, t, b), J(e, t, null), j(t, n), h && h.m(t, null), j(t, o), J(s, t, null), j(t, r), g && g.m(t, null), j(t, a), p && p.m(t, null), c = !0;
4230
4230
  },
4231
- p(v, [b]) {
4231
+ p(A, [b]) {
4232
4232
  const w = b & 258 ? Re(u, [
4233
4233
  {
4234
- floorIndex: v[1],
4235
- floorplanData: v[8]
4234
+ floorIndex: A[1],
4235
+ floorplanData: A[8]
4236
4236
  }
4237
4237
  ]) : {};
4238
- e.$set(w), v[2] || v[3] ? h ? (h.p(v, b), b & 12 && P(h, 1)) : (h = ps(v), h.c(), P(h, 1), h.m(t, o)) : h && (se(), x(h, 1, 1, () => {
4238
+ e.$set(w), A[2] || A[3] ? h ? (h.p(A, b), b & 12 && P(h, 1)) : (h = ps(A), h.c(), P(h, 1), h.m(t, o)) : h && (se(), x(h, 1, 1, () => {
4239
4239
  h = null;
4240
4240
  }), re());
4241
4241
  const E = b & 258 ? Re(f, [
4242
4242
  {
4243
- floorplanData: v[8],
4244
- floorIndex: v[1]
4243
+ floorplanData: A[8],
4244
+ floorIndex: A[1]
4245
4245
  }
4246
4246
  ]) : {};
4247
- s.$set(E), v[4] ? g ? (g.p(v, b), b & 16 && P(g, 1)) : (g = gs(v), g.c(), P(g, 1), g.m(t, a)) : g && (se(), x(g, 1, 1, () => {
4247
+ s.$set(E), A[4] ? g ? (g.p(A, b), b & 16 && P(g, 1)) : (g = gs(A), g.c(), P(g, 1), g.m(t, a)) : g && (se(), x(g, 1, 1, () => {
4248
4248
  g = null;
4249
- }), re()), v[7] ? p ? (p.p(v, b), b & 128 && P(p, 1)) : (p = As(v), p.c(), P(p, 1), p.m(t, null)) : p && (se(), x(p, 1, 1, () => {
4249
+ }), re()), A[7] ? p ? (p.p(A, b), b & 128 && P(p, 1)) : (p = As(A), p.c(), P(p, 1), p.m(t, null)) : p && (se(), x(p, 1, 1, () => {
4250
4250
  p = null;
4251
- }), re()), (!c || b & 1 && l !== (l = Me(`floorplan-plugin__floor${v[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && y(t, "class", l);
4251
+ }), re()), (!c || b & 1 && l !== (l = Me(`floorplan-plugin__floor${A[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && y(t, "class", l);
4252
4252
  },
4253
- i(v) {
4254
- c || (P(e.$$.fragment, v), P(h), P(s.$$.fragment, v), P(g), P(p), c = !0);
4253
+ i(A) {
4254
+ c || (P(e.$$.fragment, A), P(h), P(s.$$.fragment, A), P(g), P(p), c = !0);
4255
4255
  },
4256
- o(v) {
4257
- x(e.$$.fragment, v), x(h), x(s.$$.fragment, v), x(g), x(p), c = !1;
4256
+ o(A) {
4257
+ x(e.$$.fragment, A), x(h), x(s.$$.fragment, A), x(g), x(p), c = !1;
4258
4258
  },
4259
- d(v) {
4260
- v && S(t), Z(e), h && h.d(), Z(s), g && g.d(), p && p.d();
4259
+ d(A) {
4260
+ A && S(t), Z(e), h && h.d(), Z(s), g && g.d(), p && p.d();
4261
4261
  }
4262
4262
  };
4263
4263
  }
4264
4264
  function mh(i, t, e) {
4265
- let { isCurrent: n } = t, { floorIndex: o } = t, { highlightEnable: s } = t, { hoverEnable: r } = t, { roomLabelsEnable: a } = t, { roomAreaEnable: l } = t, { roomNameEnable: c } = t, { ruleLabelsEnable: u } = t, { floorplanData: d } = t, { getRoomAreaText: h } = t, { getLabelElement: f } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable: g } = t, { highlightData: p } = t;
4266
- const v = yo(void 0);
4265
+ let { isCurrent: n } = t, { floorIndex: o } = t, { highlightEnable: s } = t, { hoverEnable: r } = t, { roomLabelsEnable: a } = t, { roomAreaEnable: l } = t, { roomNameEnable: c } = t, { ruleLabelsEnable: u } = t, { floorplanData: d } = t, { getRoomAreaText: h } = t, { getLabelElement: f } = t, { getRuleDistanceText: v } = t, { adaptiveRoomLabelVisibleEnable: g } = t, { highlightData: p } = t;
4266
+ const A = yo(void 0);
4267
4267
  return i.$$set = (b) => {
4268
- "isCurrent" in b && e(0, n = b.isCurrent), "floorIndex" in b && e(1, o = b.floorIndex), "highlightEnable" in b && e(2, s = b.highlightEnable), "hoverEnable" in b && e(3, r = b.hoverEnable), "roomLabelsEnable" in b && e(4, a = b.roomLabelsEnable), "roomAreaEnable" in b && e(5, l = b.roomAreaEnable), "roomNameEnable" in b && e(6, c = b.roomNameEnable), "ruleLabelsEnable" in b && e(7, u = b.ruleLabelsEnable), "floorplanData" in b && e(8, d = b.floorplanData), "getRoomAreaText" in b && e(9, h = b.getRoomAreaText), "getLabelElement" in b && e(10, f = b.getLabelElement), "getRuleDistanceText" in b && e(11, A = b.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in b && e(12, g = b.adaptiveRoomLabelVisibleEnable), "highlightData" in b && e(13, p = b.highlightData);
4268
+ "isCurrent" in b && e(0, n = b.isCurrent), "floorIndex" in b && e(1, o = b.floorIndex), "highlightEnable" in b && e(2, s = b.highlightEnable), "hoverEnable" in b && e(3, r = b.hoverEnable), "roomLabelsEnable" in b && e(4, a = b.roomLabelsEnable), "roomAreaEnable" in b && e(5, l = b.roomAreaEnable), "roomNameEnable" in b && e(6, c = b.roomNameEnable), "ruleLabelsEnable" in b && e(7, u = b.ruleLabelsEnable), "floorplanData" in b && e(8, d = b.floorplanData), "getRoomAreaText" in b && e(9, h = b.getRoomAreaText), "getLabelElement" in b && e(10, f = b.getLabelElement), "getRuleDistanceText" in b && e(11, v = b.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in b && e(12, g = b.adaptiveRoomLabelVisibleEnable), "highlightData" in b && e(13, p = b.highlightData);
4269
4269
  }, [
4270
4270
  n,
4271
4271
  o,
@@ -4278,10 +4278,10 @@ function mh(i, t, e) {
4278
4278
  d,
4279
4279
  h,
4280
4280
  f,
4281
- A,
4281
+ v,
4282
4282
  g,
4283
4283
  p,
4284
- v
4284
+ A
4285
4285
  ];
4286
4286
  }
4287
4287
  class ph extends oe {
@@ -4345,8 +4345,8 @@ function bs(i) {
4345
4345
  r = i[13].floorDatas;
4346
4346
  let f;
4347
4347
  for (f = 0; f < r.length; f += 1) {
4348
- const A = vs(i, r, f);
4349
- a[f] ? (a[f].p(A, h), P(a[f], 1)) : (a[f] = ys(A), a[f].c(), P(a[f], 1), a[f].m(t, e));
4348
+ const v = vs(i, r, f);
4349
+ a[f] ? (a[f].p(v, h), P(a[f], 1)) : (a[f] = ys(v), a[f].c(), P(a[f], 1), a[f].m(t, e));
4350
4350
  }
4351
4351
  for (se(), f = r.length; f < a.length; f += 1)
4352
4352
  l(f);
@@ -4548,9 +4548,9 @@ function Ah(i) {
4548
4548
  };
4549
4549
  }
4550
4550
  function vh(i, t, e) {
4551
- let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: u } = t, { compassEnable: d } = t, { roomLabelsEnable: h } = t, { roomAreaEnable: f } = t, { roomNameEnable: A } = t, { ruleLabelsEnable: g } = t, { floorplanData: p } = t, { lastPanoramaLongitude: v } = t, { cameraImageUrl: b } = t, { getRoomAreaText: w } = t, { getLabelElement: E } = t, { getRuleDistanceText: L } = t, { adaptiveRoomLabelVisibleEnable: I } = t, { highlightData: D } = t;
4551
+ let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: u } = t, { compassEnable: d } = t, { roomLabelsEnable: h } = t, { roomAreaEnable: f } = t, { roomNameEnable: v } = t, { ruleLabelsEnable: g } = t, { floorplanData: p } = t, { lastPanoramaLongitude: A } = t, { cameraImageUrl: b } = t, { getRoomAreaText: w } = t, { getLabelElement: E } = t, { getRuleDistanceText: L } = t, { adaptiveRoomLabelVisibleEnable: I } = t, { highlightData: D } = t;
4552
4552
  return i.$$set = (k) => {
4553
- "duration" in k && e(0, n = k.duration), "visible" in k && e(1, o = k.visible), "northDesc" in k && e(2, s = k.northDesc), "panoIndex" in k && e(3, r = k.panoIndex), "floorIndex" in k && e(4, a = k.floorIndex), "cameraEnable" in k && e(5, l = k.cameraEnable), "hoverEnable" in k && e(6, c = k.hoverEnable), "highlightEnable" in k && e(7, u = k.highlightEnable), "compassEnable" in k && e(8, d = k.compassEnable), "roomLabelsEnable" in k && e(9, h = k.roomLabelsEnable), "roomAreaEnable" in k && e(10, f = k.roomAreaEnable), "roomNameEnable" in k && e(11, A = k.roomNameEnable), "ruleLabelsEnable" in k && e(12, g = k.ruleLabelsEnable), "floorplanData" in k && e(13, p = k.floorplanData), "lastPanoramaLongitude" in k && e(14, v = k.lastPanoramaLongitude), "cameraImageUrl" in k && e(15, b = k.cameraImageUrl), "getRoomAreaText" in k && e(16, w = k.getRoomAreaText), "getLabelElement" in k && e(17, E = k.getLabelElement), "getRuleDistanceText" in k && e(18, L = k.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in k && e(19, I = k.adaptiveRoomLabelVisibleEnable), "highlightData" in k && e(20, D = k.highlightData);
4553
+ "duration" in k && e(0, n = k.duration), "visible" in k && e(1, o = k.visible), "northDesc" in k && e(2, s = k.northDesc), "panoIndex" in k && e(3, r = k.panoIndex), "floorIndex" in k && e(4, a = k.floorIndex), "cameraEnable" in k && e(5, l = k.cameraEnable), "hoverEnable" in k && e(6, c = k.hoverEnable), "highlightEnable" in k && e(7, u = k.highlightEnable), "compassEnable" in k && e(8, d = k.compassEnable), "roomLabelsEnable" in k && e(9, h = k.roomLabelsEnable), "roomAreaEnable" in k && e(10, f = k.roomAreaEnable), "roomNameEnable" in k && e(11, v = k.roomNameEnable), "ruleLabelsEnable" in k && e(12, g = k.ruleLabelsEnable), "floorplanData" in k && e(13, p = k.floorplanData), "lastPanoramaLongitude" in k && e(14, A = k.lastPanoramaLongitude), "cameraImageUrl" in k && e(15, b = k.cameraImageUrl), "getRoomAreaText" in k && e(16, w = k.getRoomAreaText), "getLabelElement" in k && e(17, E = k.getLabelElement), "getRuleDistanceText" in k && e(18, L = k.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in k && e(19, I = k.adaptiveRoomLabelVisibleEnable), "highlightData" in k && e(20, D = k.highlightData);
4554
4554
  }, [
4555
4555
  n,
4556
4556
  o,
@@ -4563,10 +4563,10 @@ function vh(i, t, e) {
4563
4563
  d,
4564
4564
  h,
4565
4565
  f,
4566
- A,
4566
+ v,
4567
4567
  g,
4568
4568
  p,
4569
- v,
4569
+ A,
4570
4570
  b,
4571
4571
  w,
4572
4572
  E,
@@ -4718,7 +4718,7 @@ function Co(i, t, e, n) {
4718
4718
  }
4719
4719
  class zn {
4720
4720
  constructor(t, e) {
4721
- m(this, "VERSION", "2.14.1-alpha.0");
4721
+ m(this, "VERSION", "2.14.1");
4722
4722
  m(this, "five");
4723
4723
  m(this, "hooks", new Zt());
4724
4724
  m(this, "staticPrefix", "//vrlab-static.ljcdn.com");
@@ -5645,26 +5645,26 @@ function Oh(i) {
5645
5645
  }
5646
5646
  function Qh(i, t, e) {
5647
5647
  let n, o, { five: s } = t, { pxmm: r } = t, { floorplanData: a } = t, { cameraImageUrl: l } = t, c = s.getCurrentState().panoIndex, u = s.getCurrentState().longitude;
5648
- function d(A, g) {
5649
- const p = A.bounding, v = A.observers[g];
5650
- if (!v)
5648
+ function d(v, g) {
5649
+ const p = v.bounding, A = v.observers[g];
5650
+ if (!A)
5651
5651
  return "";
5652
- const b = (p.max.x - p.min.x) * r, w = (p.max.y - p.min.y) * r, E = Math.floor(v.positionInImage.x * b), L = Math.floor(v.positionInImage.y * w);
5652
+ const b = (p.max.x - p.min.x) * r, w = (p.max.y - p.min.y) * r, E = Math.floor(A.positionInImage.x * b), L = Math.floor(A.positionInImage.y * w);
5653
5653
  return `translate(${E}px, ${L}px)`;
5654
5654
  }
5655
- function h(A) {
5656
- e(6, c = A);
5655
+ function h(v) {
5656
+ e(6, c = v);
5657
5657
  }
5658
5658
  const f = Io(
5659
- (A) => {
5660
- e(7, u = A.longitude);
5659
+ (v) => {
5660
+ e(7, u = v.longitude);
5661
5661
  },
5662
5662
  1e3 / 60
5663
5663
  );
5664
5664
  return Ze(() => (s.on("panoWillArrive", h), s.on("cameraDirectionUpdate", f), function() {
5665
5665
  s.off("panoWillArrive", h), s.off("cameraDirectionUpdate", f);
5666
- })), i.$$set = (A) => {
5667
- "five" in A && e(3, s = A.five), "pxmm" in A && e(4, r = A.pxmm), "floorplanData" in A && e(5, a = A.floorplanData), "cameraImageUrl" in A && e(0, l = A.cameraImageUrl);
5666
+ })), i.$$set = (v) => {
5667
+ "five" in v && e(3, s = v.five), "pxmm" in v && e(4, r = v.pxmm), "floorplanData" in v && e(5, a = v.floorplanData), "cameraImageUrl" in v && e(0, l = v.cameraImageUrl);
5668
5668
  }, i.$$.update = () => {
5669
5669
  i.$$.dirty & 96 && e(2, n = d(a, c)), i.$$.dirty & 128 && e(1, o = Oh(u));
5670
5670
  }, [
@@ -5953,7 +5953,7 @@ function Ds(i) {
5953
5953
  M(h, t, f), J(e, t, null), j(t, n), J(o, t, null), a = !0;
5954
5954
  },
5955
5955
  p(h, f) {
5956
- const A = f & 1581 ? Re(l, [
5956
+ const v = f & 1581 ? Re(l, [
5957
5957
  {
5958
5958
  five: h[0],
5959
5959
  pxmm: h[9],
@@ -5963,7 +5963,7 @@ function Ds(i) {
5963
5963
  extraObjects: h[5]
5964
5964
  }
5965
5965
  ]) : {};
5966
- e.$set(A);
5966
+ e.$set(v);
5967
5967
  const g = f & 537 ? Re(u, [
5968
5968
  {
5969
5969
  pxmm: h[9],
@@ -6012,7 +6012,7 @@ function Uh(i) {
6012
6012
  }
6013
6013
  function qh(i, t, e) {
6014
6014
  var b, w;
6015
- let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, u = (w = (b = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : b.floorIndex) != null ? w : 0, d = 0, h = 0, f = 0, A = 0;
6015
+ let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, u = (w = (b = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : b.floorIndex) != null ? w : 0, d = 0, h = 0, f = 0, v = 0;
6016
6016
  function g(E) {
6017
6017
  e(10, u = n.work.observers[E].floorIndex);
6018
6018
  }
@@ -6021,7 +6021,7 @@ function qh(i, t, e) {
6021
6021
  }));
6022
6022
  const p = (E) => {
6023
6023
  e(6, d = E.detail);
6024
- }, v = (E) => {
6024
+ }, A = (E) => {
6025
6025
  e(7, h = E.detail);
6026
6026
  };
6027
6027
  return i.$$set = (E) => {
@@ -6031,7 +6031,7 @@ function qh(i, t, e) {
6031
6031
  const E = Math.min(d, h), { max: L, min: I } = r.bounding, D = L.x - I.x, k = L.y - I.y, V = function() {
6032
6032
  return D > k ? [E, E / D * k] : [E / k * D, E];
6033
6033
  }();
6034
- e(8, f = V[0]), e(11, A = V[1]), e(9, c = f / D);
6034
+ e(8, f = V[0]), e(11, v = V[1]), e(9, c = f / D);
6035
6035
  }
6036
6036
  }, [
6037
6037
  n,
@@ -6045,9 +6045,9 @@ function qh(i, t, e) {
6045
6045
  f,
6046
6046
  c,
6047
6047
  u,
6048
- A,
6048
+ v,
6049
6049
  p,
6050
- v
6050
+ A
6051
6051
  ];
6052
6052
  }
6053
6053
  class Jh extends oe {
@@ -6317,12 +6317,12 @@ function ul(i, t) {
6317
6317
  }
6318
6318
  const xb = (i, t) => {
6319
6319
  var u;
6320
- const e = t.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", n = (u = t.north_rad) != null ? u : void 0, o = {}, s = (d) => H(void 0, null, function* () {
6320
+ const e = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", n = (u = t.north_rad) != null ? u : void 0, o = {}, s = (d) => H(void 0, null, function* () {
6321
6321
  var F;
6322
6322
  const h = (d == null ? void 0 : d.fbx_url) || e, f = (F = d == null ? void 0 : d.north_rad) != null ? F : n;
6323
6323
  if (typeof f != "number")
6324
6324
  throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
6325
- const A = i.model.bounding, g = A.max.x - A.min.x, p = A.max.z - A.min.z, v = Math.max(g, p), w = yield new ka().loadAsync(h);
6325
+ const v = i.model.bounding, g = v.max.x - v.min.x, p = v.max.z - v.min.z, A = Math.max(g, p), w = yield new ka().loadAsync(h);
6326
6326
  ul(w, {
6327
6327
  transparent: !0,
6328
6328
  side: C.DoubleSide,
@@ -6337,7 +6337,7 @@ const xb = (i, t) => {
6337
6337
  }
6338
6338
  } = i;
6339
6339
  o.yBase = k;
6340
- const _ = { x: (L + D) / 2, y: k - 1.6, z: (I + V) / 2 }, O = 45e-4 * v;
6340
+ const _ = { x: (L + D) / 2, y: k - 1.6, z: (I + V) / 2 }, O = 45e-4 * A;
6341
6341
  return Kh(w, { position: _, rotation: E, scale: O }), o.object = w, !0;
6342
6342
  }), r = ({ latitude: d }) => {
6343
6343
  if (!o.object)
@@ -6370,8 +6370,8 @@ function $h(i, t) {
6370
6370
  return l.fillStyle = o, l.fillRect(0, 0, e, e), l.font = `${n}px "\u5FAE\u8F6F\u96C5\u9ED1"`, l.textAlign = r, l.fillStyle = s, l.fillText(i, e / 2, e * 0.7), new mc(a);
6371
6371
  }
6372
6372
  const ef = ({ x: i, y: t, z: e }) => new U(i, t, e), Db = (i, t) => {
6373
- var g, p, v;
6374
- const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (p = t.position) != null ? p : void 0, s = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (b) => H(void 0, null, function* () {
6373
+ var g, p, A;
6374
+ const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (p = t.position) != null ? p : void 0, s = (A = t.rad) != null ? A : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (b) => H(void 0, null, function* () {
6375
6375
  var _, O, F, B, R, W, X, G;
6376
6376
  const w = (_ = b == null ? void 0 : b.position) != null ? _ : o;
6377
6377
  if (!w)
@@ -6530,26 +6530,26 @@ const so = (i, t, e) => {
6530
6530
  return {
6531
6531
  move: e,
6532
6532
  rotate: (l, c, ...u) => H(void 0, [l, c, ...u], function* (s, r, a = {}) {
6533
- t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== je.Mode.Panorama && (yield i.changeMode(je.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((f, A) => {
6533
+ t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== je.Mode.Panorama && (yield i.changeMode(je.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((f, v) => {
6534
6534
  if (!s.panoIndex) {
6535
6535
  f(!0);
6536
6536
  return;
6537
6537
  }
6538
6538
  i.moveToPano(s.panoIndex, {
6539
6539
  moveEndCallback: () => f(!0),
6540
- moveCancelCallback: () => A(!1)
6540
+ moveCancelCallback: () => v(!1)
6541
6541
  });
6542
6542
  })), a.asyncEndCallback && (yield a.asyncEndCallback());
6543
6543
  const { from: d, to: h } = n(s);
6544
6544
  return yield new Promise((f) => {
6545
- const A = ({ progress: w }) => {
6545
+ const v = ({ progress: w }) => {
6546
6546
  const E = {};
6547
6547
  E.longitude = Oi(d.longitude, h.longitude, w), E.latitude = Oi(d.latitude, h.latitude, w), E.fov = Oi(d.fov, h.fov, w), i.setState(E, !0);
6548
6548
  }, g = () => {
6549
6549
  f(!0);
6550
6550
  }, p = () => {
6551
6551
  f(!1);
6552
- }, v = s.rotateSpeed ? Math.ceil(Math.abs(h.longitude - d.longitude) / s.rotateSpeed * 1e3) : r, b = rf(v, vi.Easing.Linear.None).onUpdate(A).onComplete(g).onDestroy(p);
6552
+ }, A = s.rotateSpeed ? Math.ceil(Math.abs(h.longitude - d.longitude) / s.rotateSpeed * 1e3) : r, b = rf(A, vi.Easing.Linear.None).onUpdate(v).onComplete(g).onDestroy(p);
6553
6553
  s.rotation === at.Loop && b.repeat(1 / 0).yoyo(!0), t.interruptCallback = (w = !0) => {
6554
6554
  b.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), f(w);
6555
6555
  }, t.timeoutId = setTimeout(() => {
@@ -6718,7 +6718,7 @@ const cf = `<style type="text/css">
6718
6718
  distanceText: (g) => `${g.toFixed(1)}m`
6719
6719
  }
6720
6720
  }, n = (g, p) => {
6721
- const v = `
6721
+ const A = `
6722
6722
  <div class="PanoRulerPlugin-rule-line">
6723
6723
  <em></em>
6724
6724
  <div class="PanoRulerPlugin-rule-label">
@@ -6726,7 +6726,7 @@ const cf = `<style type="text/css">
6726
6726
  </div>
6727
6727
  </div>
6728
6728
  `, b = document.createElement("div");
6729
- return b.setAttribute("class", "PanoRulerPlugin-rule"), b.setAttribute("data-name", g), b.setAttribute("style", "display: none"), b.innerHTML = v, b;
6729
+ return b.setAttribute("class", "PanoRulerPlugin-rule"), b.setAttribute("data-name", g), b.setAttribute("style", "display: none"), b.innerHTML = A, b;
6730
6730
  }, o = document.createElement("div");
6731
6731
  o.setAttribute(
6732
6732
  "style",
@@ -6737,12 +6737,12 @@ const cf = `<style type="text/css">
6737
6737
  const r = {}, a = (g, p) => {
6738
6738
  if (e.loaded)
6739
6739
  throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");
6740
- const v = df(g, i), b = i.work;
6740
+ const A = df(g, i), b = i.work;
6741
6741
  if (!b)
6742
6742
  return !1;
6743
6743
  for (const w in p) {
6744
6744
  const E = p[w], { standingPosition: L } = b.observers[0], I = E.map(({ x: D, z: k, observers: V }) => {
6745
- const _ = V.length > 0 ? g.rooms[g.observers[V[0]]].name : "", O = v[_] ? v[_].floor : null;
6745
+ const _ = V.length > 0 ? g.rooms[g.observers[V[0]]].name : "", O = A[_] ? A[_].floor : null;
6746
6746
  let F = 1 / 0, B = {
6747
6747
  index: 0,
6748
6748
  x: L.x,
@@ -6762,7 +6762,7 @@ const cf = `<style type="text/css">
6762
6762
  });
6763
6763
  const R = new U(D, B.y, k);
6764
6764
  Object.assign(R, { observers: V });
6765
- const W = v[_] ? v[_].roof : null, X = W ? new U(D, W, k) : null;
6765
+ const W = A[_] ? A[_].roof : null, X = W ? new U(D, W, k) : null;
6766
6766
  return X && Object.assign(X, { observers: V }), { origin: R, vertical: X };
6767
6767
  });
6768
6768
  r[w] = {
@@ -6783,32 +6783,32 @@ const cf = `<style type="text/css">
6783
6783
  }
6784
6784
  }
6785
6785
  return e.loaded = !0, !0;
6786
- }, l = (g, p, v) => H(void 0, null, function* () {
6786
+ }, l = (g, p, A) => H(void 0, null, function* () {
6787
6787
  const b = g || t.roomInfo, w = p || t.roomRules;
6788
6788
  if (!b || !w)
6789
6789
  throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
6790
- return e.loaded = !1, e.options = Q(Q({}, e.options), v || {}), i.model.loaded ? a(b, w) : yield new Promise(
6790
+ return e.loaded = !1, e.options = Q(Q({}, e.options), A || {}), i.model.loaded ? a(b, w) : yield new Promise(
6791
6791
  (E) => i.once("modelLoaded", () => E(a(b, w)))
6792
6792
  );
6793
6793
  });
6794
6794
  t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
6795
- const c = (g, p, v, b) => {
6795
+ const c = (g, p, A, b) => {
6796
6796
  const w = [
6797
6797
  [
6798
6798
  { x: 0, y: 0 },
6799
- { x: v, y: 0 }
6799
+ { x: A, y: 0 }
6800
6800
  ],
6801
6801
  [
6802
6802
  { x: 0, y: 0 },
6803
6803
  { x: 0, y: b }
6804
6804
  ],
6805
6805
  [
6806
- { x: v, y: 0 },
6807
- { x: v, y: b }
6806
+ { x: A, y: 0 },
6807
+ { x: A, y: b }
6808
6808
  ],
6809
6809
  [
6810
6810
  { x: 0, y: b },
6811
- { x: v, y: b }
6811
+ { x: A, y: b }
6812
6812
  ]
6813
6813
  ], E = [];
6814
6814
  for (let L = 0; L < w.length; L++) {
@@ -6821,7 +6821,7 @@ const cf = `<style type="text/css">
6821
6821
  const g = (V = i.getElement()) == null ? void 0 : V.parentElement;
6822
6822
  if (!g || !e.loaded || Object.keys(r).length <= 0)
6823
6823
  return;
6824
- const { panoIndex: p, camera: v, currentMode: b } = i;
6824
+ const { panoIndex: p, camera: A, currentMode: b } = i;
6825
6825
  if (p === void 0)
6826
6826
  return;
6827
6827
  let w;
@@ -6833,7 +6833,7 @@ const cf = `<style type="text/css">
6833
6833
  O.style.display = "none";
6834
6834
  return;
6835
6835
  }
6836
- const E = v.position, L = v.getWorldDirection(new U()), I = g.clientWidth, D = g.clientHeight;
6836
+ const E = A.position, L = A.getWorldDirection(new U()), I = g.clientWidth, D = g.clientHeight;
6837
6837
  if (b !== je.Mode.Panorama) {
6838
6838
  for (const _ in r)
6839
6839
  for (const { $element: O } of r[_].rules)
@@ -6880,7 +6880,7 @@ const cf = `<style type="text/css">
6880
6880
  F.style.display = "none";
6881
6881
  continue;
6882
6882
  }
6883
- const he = B.clone().project(v), de = (he.x + 1) / 2 * I, pe = (-he.y + 1) / 2 * D, Ce = R.clone().project(v), Pe = (Ce.x + 1) / 2 * I, Se = (-Ce.y + 1) / 2 * D, ce = Math.sqrt(Math.pow(Pe - de, 2) + Math.pow(Se - pe, 2));
6883
+ const he = B.clone().project(A), de = (he.x + 1) / 2 * I, pe = (-he.y + 1) / 2 * D, Ce = R.clone().project(A), Pe = (Ce.x + 1) / 2 * I, Se = (-Ce.y + 1) / 2 * D, ce = Math.sqrt(Math.pow(Pe - de, 2) + Math.pow(Se - pe, 2));
6884
6884
  let Ae = ce, Ee = 50;
6885
6885
  const ue = c({ x: ~~de, y: ~~pe }, {
6886
6886
  x: ~~Pe,
@@ -6902,11 +6902,11 @@ const cf = `<style type="text/css">
6902
6902
  var g, p;
6903
6903
  return e.loaded ? (e.enable || (o.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (p = (g = i.getElement()) == null ? void 0 : g.parentElement) == null || p.append(o), u(), i.on("modeChange", u), i.on("cameraUpdate", d), e.enable = !0), !0) : !1;
6904
6904
  }, f = () => (e.enable && (i.off("modeChange", u), i.off("cameraUpdate", d), o && o.remove(), e.enable = !1), !0);
6905
- function A(g) {
6905
+ function v(g) {
6906
6906
  if (g.distanceText && g.distanceText !== e.options.distanceText) {
6907
6907
  const p = g.distanceText;
6908
- e.options.distanceText = p, Object.values(r).forEach((v) => {
6909
- v.rules.forEach((b) => {
6908
+ e.options.distanceText = p, Object.values(r).forEach((A) => {
6909
+ A.rules.forEach((b) => {
6910
6910
  const [w, E] = b.rule, L = w.distanceTo(E), I = b.$element.querySelector(".PanoRulerPlugin-rule-label-name");
6911
6911
  !I || (I.innerText = p(L));
6912
6912
  });
@@ -6918,7 +6918,7 @@ const cf = `<style type="text/css">
6918
6918
  disable: f,
6919
6919
  load: l,
6920
6920
  state: e,
6921
- changeConfigs: A
6921
+ changeConfigs: v
6922
6922
  };
6923
6923
  };
6924
6924
  function hf(i) {
@@ -6998,19 +6998,19 @@ function zs(i) {
6998
6998
  }
6999
6999
  function pf(i) {
7000
7000
  let t, e, n, o, s = i[0].labelElement + "", r, a, l = `${i[0].labelOffset}%`, c = `${i[0].width}px`, u = `${i[0].left}px`, d = `${i[0].top}px`, h = `rotate(${i[0].rotateDeg}deg)`;
7001
- function f(p, v) {
7001
+ function f(p, A) {
7002
7002
  return p[0].children.length === 0 ? mf : ff;
7003
7003
  }
7004
- let A = f(i), g = A(i);
7004
+ let v = f(i), g = v(i);
7005
7005
  return {
7006
7006
  c() {
7007
7007
  t = z("div"), g.c(), e = $(), n = z("div"), o = z("div"), r = Ie(s), y(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Qe(() => i[4].call(o)), y(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), T(n, "left", l), y(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), T(t, "width", c), T(t, "left", u), T(t, "top", d), T(t, "transform", h), T(t, "display", i[0].visible && i[2] ? "block" : "none");
7008
7008
  },
7009
- m(p, v) {
7010
- M(p, t, v), g.m(t, null), j(t, e), j(t, n), j(n, o), j(o, r), a = bi(o, i[4].bind(o));
7009
+ m(p, A) {
7010
+ M(p, t, A), g.m(t, null), j(t, e), j(t, n), j(n, o), j(o, r), a = bi(o, i[4].bind(o));
7011
7011
  },
7012
- p(p, [v]) {
7013
- A === (A = f(p)) && g ? g.p(p, v) : (g.d(1), g = A(p), g && (g.c(), g.m(t, e))), v & 1 && s !== (s = p[0].labelElement + "") && Le(r, s), v & 1 && l !== (l = `${p[0].labelOffset}%`) && T(n, "left", l), v & 1 && c !== (c = `${p[0].width}px`) && T(t, "width", c), v & 1 && u !== (u = `${p[0].left}px`) && T(t, "left", u), v & 1 && d !== (d = `${p[0].top}px`) && T(t, "top", d), v & 1 && h !== (h = `rotate(${p[0].rotateDeg}deg)`) && T(t, "transform", h), v & 5 && T(t, "display", p[0].visible && p[2] ? "block" : "none");
7012
+ p(p, [A]) {
7013
+ v === (v = f(p)) && g ? g.p(p, A) : (g.d(1), g = v(p), g && (g.c(), g.m(t, e))), A & 1 && s !== (s = p[0].labelElement + "") && Le(r, s), A & 1 && l !== (l = `${p[0].labelOffset}%`) && T(n, "left", l), A & 1 && c !== (c = `${p[0].width}px`) && T(t, "width", c), A & 1 && u !== (u = `${p[0].left}px`) && T(t, "left", u), A & 1 && d !== (d = `${p[0].top}px`) && T(t, "top", d), A & 1 && h !== (h = `rotate(${p[0].rotateDeg}deg)`) && T(t, "transform", h), A & 5 && T(t, "display", p[0].visible && p[2] ? "block" : "none");
7014
7014
  },
7015
7015
  i: N,
7016
7016
  o: N,
@@ -7116,9 +7116,9 @@ function vf(i) {
7116
7116
  };
7117
7117
  }
7118
7118
  function bf(i, t, e) {
7119
- var g, p, v, b;
7119
+ var g, p, A, b;
7120
7120
  let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
7121
- const a = ((p = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : p.clientWidth) || 0, l = ((b = (v = n.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : b.clientHeight) || 0, c = (w, E) => {
7121
+ const a = ((p = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : p.clientWidth) || 0, l = ((b = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : b.clientHeight) || 0, c = (w, E) => {
7122
7122
  const L = [
7123
7123
  [{ x: 0, y: 0 }, { x: a, y: 0 }],
7124
7124
  [{ x: 0, y: 0 }, { x: 0, y: l }],
@@ -7189,11 +7189,11 @@ function bf(i, t, e) {
7189
7189
  };
7190
7190
  });
7191
7191
  e(0, r = _);
7192
- }, f = () => Ii(h), A = Io(h, 80);
7192
+ }, f = () => Ii(h), v = Io(h, 80);
7193
7193
  return Ze(() => {
7194
- h(), n.on("panoArrived", h), n.on("modeChange", h), n.on("cameraDirectionUpdate", f), n.on("movingToPano", f), n.on("mouseWheel", () => A()), n.on("pinchGesture", () => A());
7194
+ h(), n.on("panoArrived", h), n.on("modeChange", h), n.on("cameraDirectionUpdate", f), n.on("movingToPano", f), n.on("mouseWheel", () => v()), n.on("pinchGesture", () => v());
7195
7195
  }), Pt(() => {
7196
- n.off("panoArrived", h), n.off("modeChange", h), n.off("cameraDirectionUpdate", f), n.off("movingToPano", f), n.off("mouseWheel", () => A()), n.off("pinchGesture", () => A());
7196
+ n.off("panoArrived", h), n.off("modeChange", h), n.off("cameraDirectionUpdate", f), n.off("movingToPano", f), n.off("mouseWheel", () => v()), n.off("pinchGesture", () => v());
7197
7197
  }), i.$$set = (w) => {
7198
7198
  "five" in w && e(1, n = w.five), "rulerDatas" in w && e(2, o = w.rulerDatas), "options" in w && e(3, s = w.options);
7199
7199
  }, [r, n, o, s];
@@ -7603,9 +7603,9 @@ class xf {
7603
7603
  return [(p.x + 1) / 2 * s.x, (p.y + 1) / 2 * s.y];
7604
7604
  } else
7605
7605
  return [this.renderCenter.x, s.y - this.renderCenter.y];
7606
- })(), l = 1, c = n / t, u = o / t, d = l * t, h = this.five.getPixels(r - c / 2, a - c / 2, c, u, d), f = Math.floor(n * l), A = Math.floor(o * l);
7607
- kf(h, f, A);
7608
- const g = new ImageData(f, A);
7606
+ })(), l = 1, c = n / t, u = o / t, d = l * t, h = this.five.getPixels(r - c / 2, a - c / 2, c, u, d), f = Math.floor(n * l), v = Math.floor(o * l);
7607
+ kf(h, f, v);
7608
+ const g = new ImageData(f, v);
7609
7609
  g.data.set(h), e.putImageData(g, 0, 0);
7610
7610
  }
7611
7611
  initStyle() {
@@ -7779,8 +7779,8 @@ const Rf = {
7779
7779
  pointsRenderOrder: 10
7780
7780
  };
7781
7781
  function Ff(i, t, e) {
7782
- var u, d, h, f, A;
7783
- const n = (u = e == null ? void 0 : e.lineWidth) != null ? u : 2, o = (d = e == null ? void 0 : e.lineColor) != null ? d : new Ln(16777215), s = (h = e == null ? void 0 : e.pointSize) != null ? h : 5, r = (f = e == null ? void 0 : e.lineRenderOrder) != null ? f : 10, a = (A = e == null ? void 0 : e.lineRenderOrder) != null ? A : 20, l = new Ia(i, t);
7782
+ var u, d, h, f, v;
7783
+ const n = (u = e == null ? void 0 : e.lineWidth) != null ? u : 2, o = (d = e == null ? void 0 : e.lineColor) != null ? d : new Ln(16777215), s = (h = e == null ? void 0 : e.pointSize) != null ? h : 5, r = (f = e == null ? void 0 : e.lineRenderOrder) != null ? f : 10, a = (v = e == null ? void 0 : e.lineRenderOrder) != null ? v : 20, l = new Ia(i, t);
7784
7784
  l.setMaterial({ linewidth: n, color: o }), l.line.material.depthTest = !1, l.line.material.transparent = !0, l.line.renderOrder = r, l.points.renderOrder = a;
7785
7785
  const c = l.points.material;
7786
7786
  return c.depthTest = !1, c.size = s, e != null && e.pointColor && c.color.set(e.pointColor).convertSRGBToLinear(), e != null && e.pointTexture && (c.map = e.pointTexture), l;
@@ -7815,7 +7815,7 @@ function Wf(i) {
7815
7815
  ndcPosition: a,
7816
7816
  update: h,
7817
7817
  appendTo: f,
7818
- remove: A,
7818
+ remove: v,
7819
7819
  highlight: u,
7820
7820
  unHighlight: d,
7821
7821
  getCurrentContent: g,
@@ -7823,8 +7823,8 @@ function Wf(i) {
7823
7823
  };
7824
7824
  s.style.pointerEvents = t ? "all" : "none", r != null && r.element ? s.appendChild(r.element) : s.appendChild(o);
7825
7825
  function c() {
7826
- var v;
7827
- (v = i.clickCallback) == null || v.call(i, l);
7826
+ var A;
7827
+ (A = i.clickCallback) == null || A.call(i, l);
7828
7828
  }
7829
7829
  function u() {
7830
7830
  if (r)
@@ -7836,18 +7836,18 @@ function Wf(i) {
7836
7836
  return r.unHighlight();
7837
7837
  o.style.border = "0.5px solid rgba(255,255,255,0.6)", o.style.background = "rgba(195,195,195,0.70)";
7838
7838
  }
7839
- function h(v) {
7839
+ function h(A) {
7840
7840
  if (e.mesh.visible === !1) {
7841
7841
  s.style.opacity = "0", s.style.pointerEvents = "none";
7842
7842
  return;
7843
7843
  }
7844
- const b = v.getElement();
7844
+ const b = A.getElement();
7845
7845
  if (!b)
7846
7846
  return;
7847
7847
  const w = b.clientWidth, E = b.clientHeight, L = w / 2, I = E / 2;
7848
7848
  if (e.points.length < 2)
7849
7849
  return;
7850
- const [D, k] = e.points, V = D.position.clone().project(v.camera), _ = k.position.clone().project(v.camera), O = V.clone().lerp(_, 0.5), F = new _e(V.x * L, V.y * I), B = new _e(_.x * L, _.y * I), R = F.distanceTo(B);
7850
+ const [D, k] = e.points, V = D.position.clone().project(A.camera), _ = k.position.clone().project(A.camera), O = V.clone().lerp(_, 0.5), F = new _e(V.x * L, V.y * I), B = new _e(_.x * L, _.y * I), R = F.distanceTo(B);
7851
7851
  if ((() => !(Math.abs(V.z) > 1 || Math.abs(_.z) > 1 || !Qi(V) && !Qi(_) || !Qi(O) || R === 0))() === !1) {
7852
7852
  s.style.opacity = "0", s.style.pointerEvents = "none";
7853
7853
  return;
@@ -7857,21 +7857,21 @@ function Wf(i) {
7857
7857
  const he = g();
7858
7858
  o.innerText = he;
7859
7859
  }
7860
- function f(v) {
7861
- v.appendChild(s), s.addEventListener("click", c);
7860
+ function f(A) {
7861
+ A.appendChild(s), s.addEventListener("click", c);
7862
7862
  }
7863
- function A() {
7863
+ function v() {
7864
7864
  o.removeEventListener("click", c), s.remove();
7865
7865
  }
7866
7866
  function g() {
7867
7867
  var D, k, V;
7868
7868
  if (e.points.length < 2)
7869
7869
  return "";
7870
- const [v, b] = e.points, w = v.position.clone().distanceTo(b.position), E = (D = i.line.text) != null ? D : i.line.model.config.defaultText, L = (V = (k = i.line.model.config) == null ? void 0 : k.getDistanceText) == null ? void 0 : V.call(k, w), I = E != null ? E : L;
7870
+ const [A, b] = e.points, w = A.position.clone().distanceTo(b.position), E = (D = i.line.text) != null ? D : i.line.model.config.defaultText, L = (V = (k = i.line.model.config) == null ? void 0 : k.getDistanceText) == null ? void 0 : V.call(k, w), I = E != null ? E : L;
7871
7871
  return I != null ? I : w.toFixed(2) + "m";
7872
7872
  }
7873
- function p(v) {
7874
- t = v;
7873
+ function p(A) {
7874
+ t = A;
7875
7875
  }
7876
7876
  return l;
7877
7877
  }
@@ -8230,8 +8230,8 @@ class Al {
8230
8230
  const l = (s + 1) / 2 * a.clientWidth, c = -(r - 1) / 2 * a.clientHeight;
8231
8231
  let u = l, d = c - 34;
8232
8232
  if (this.lines.length === 1 && t.length === 2) {
8233
- const h = (o[1] - o[0]) / (n[1] - n[0]), A = -((o[1] + o[0]) / 2 - 1) / 2 * a.clientHeight;
8234
- Math.abs(h) > 0.4 && (u = l + 57, d = A);
8233
+ const h = (o[1] - o[0]) / (n[1] - n[0]), v = -((o[1] + o[0]) / 2 - 1) / 2 * a.clientHeight;
8234
+ Math.abs(h) > 0.4 && (u = l + 57, d = v);
8235
8235
  }
8236
8236
  return this.container.style.transform = `translate3d(${u}px, ${d}px, 10px)`, this.show();
8237
8237
  }
@@ -8337,18 +8337,18 @@ class Rs extends ki {
8337
8337
  if (!n)
8338
8338
  return;
8339
8339
  const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new _e(s.x * r, s.y * a), c = this.model.getAllLines().map((f) => {
8340
- const [A, g] = f.points, p = A.position.clone().project(o), v = g.position.clone().project(o);
8341
- if (!Dn(p) && !Dn(v))
8340
+ const [v, g] = f.points, p = v.position.clone().project(o), A = g.position.clone().project(o);
8341
+ if (!Dn(p) && !Dn(A))
8342
8342
  return null;
8343
- const b = new _e(p.x * r, p.y * a), w = new _e(v.x * r, v.y * a);
8343
+ const b = new _e(p.x * r, p.y * a), w = new _e(A.x * r, A.y * a);
8344
8344
  return { id: f.id, points: [b, w] };
8345
8345
  }).filter((f) => !!f);
8346
8346
  if (c.length === 0)
8347
8347
  return;
8348
8348
  const d = c.map((f) => {
8349
- const A = vl(l, f.points);
8350
- return { id: f.id, distance: A.distanceTo(l) };
8351
- }).sort((f, A) => f.distance - A.distance)[0];
8349
+ const v = vl(l, f.points);
8350
+ return { id: f.id, distance: v.distanceTo(l) };
8351
+ }).sort((f, v) => f.distance - v.distance)[0];
8352
8352
  if (d.distance > 20)
8353
8353
  return;
8354
8354
  const h = this.model.getAllLines().find(({ id: f }) => f === d.id);
@@ -8498,8 +8498,8 @@ void main() {
8498
8498
  }
8499
8499
  `;
8500
8500
  function yl(i) {
8501
- var v, b;
8502
- const t = (v = i.isMobile) != null ? v : !0, e = (b = i.useNormalVector) != null ? b : !0;
8501
+ var A, b;
8502
+ const t = (A = i.isMobile) != null ? A : !0, e = (b = i.useNormalVector) != null ? b : !0;
8503
8503
  let n = 10349931;
8504
8504
  e && i.ballColor >= 0 && (n = i.ballColor);
8505
8505
  const o = new Gt(), s = new gc(0.3, 0.3), r = t ? em : tm, a = new Ea().load(r);
@@ -8515,12 +8515,12 @@ function yl(i) {
8515
8515
  fragmentShader: im,
8516
8516
  depthTest: !1,
8517
8517
  transparent: !0
8518
- }), f = new An(d, h), A = new wc(0.01, 20, 20), g = new Cn({
8518
+ }), f = new An(d, h), v = new wc(0.01, 20, 20), g = new Cn({
8519
8519
  color: n,
8520
8520
  depthTest: !1,
8521
8521
  transparent: !0,
8522
8522
  side: Pa
8523
- }), p = new An(A, g);
8523
+ }), p = new An(v, g);
8524
8524
  return p.position.set(0, 0, 0.1), o.name = "mouse-current", o.add(c), e && o.add(f, p), o;
8525
8525
  }
8526
8526
  class om {
@@ -8652,18 +8652,18 @@ class un extends ki {
8652
8652
  if (!n)
8653
8653
  return;
8654
8654
  const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new _e(s.x * r, s.y * a), c = this.polyline.lines.map((f) => {
8655
- const [A, g] = f.points, p = A.position.clone().project(o), v = g.position.clone().project(o);
8656
- if (!Dn(p) && !Dn(v))
8655
+ const [v, g] = f.points, p = v.position.clone().project(o), A = g.position.clone().project(o);
8656
+ if (!Dn(p) && !Dn(A))
8657
8657
  return null;
8658
- const b = new _e(p.x * r, p.y * a), w = new _e(v.x * r, v.y * a);
8658
+ const b = new _e(p.x * r, p.y * a), w = new _e(A.x * r, A.y * a);
8659
8659
  return { id: f.id, points: [b, w] };
8660
8660
  }).filter((f) => !!f);
8661
8661
  if (c.length === 0)
8662
8662
  return;
8663
8663
  const d = c.map((f) => {
8664
- const A = vl(l, f.points);
8665
- return { id: f.id, distance: A.distanceTo(l) };
8666
- }).sort((f, A) => f.distance - A.distance)[0];
8664
+ const v = vl(l, f.points);
8665
+ return { id: f.id, distance: v.distanceTo(l) };
8666
+ }).sort((f, v) => f.distance - v.distance)[0];
8667
8667
  if (d.distance > 20)
8668
8668
  return;
8669
8669
  const h = this.polyline.lines.find(({ id: f }) => f === d.id);
@@ -9484,28 +9484,28 @@ function km(i) {
9484
9484
  le(i, "svelte-1i5h9zh", ".PanoSpatialTagPlugin__tag-x.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh.svelte-1i5h9zh{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh.svelte-1i5h9zh{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content .svelte-1i5h9zh{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
9485
9485
  }
9486
9486
  function xm(i) {
9487
- let t, e, n, o, s, r, a, l, c, u, d, h, f, A, g;
9487
+ let t, e, n, o, s, r, a, l, c, u, d, h, f, v, g;
9488
9488
  return {
9489
9489
  c() {
9490
9490
  t = z("div"), e = z("div"), n = $(), o = z("div"), s = z("i"), r = $(), a = z("i"), l = $(), c = z("i"), u = $(), d = z("div"), h = z("div"), y(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), T(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), y(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), T(s, "width", i[4] + "rem"), y(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), y(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), y(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), y(h, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), y(d, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), T(d, "transform", "scale(" + i[3] * 3 + ")"), y(t, "id", f = "PanoSpatialTagPlugin__" + i[0]), T(t, "height", 20 * i[5] + "rem"), y(t, "class", "svelte-1i5h9zh"), q(t, "PanoSpatialTagPlugin__tag-x", !0), q(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), q(t, "PanoSpatialTagPlugin__tag-show", i[10]), q(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
9491
9491
  },
9492
- m(p, v) {
9493
- M(p, t, v), j(t, e), j(t, n), j(t, o), j(o, s), j(o, r), j(o, a), j(o, l), j(o, c), j(t, u), j(t, d), j(d, h), h.innerHTML = i[2], i[16](h), A || (g = ge(h, "click", i[11]), A = !0);
9492
+ m(p, A) {
9493
+ M(p, t, A), j(t, e), j(t, n), j(t, o), j(o, s), j(o, r), j(o, a), j(o, l), j(o, c), j(t, u), j(t, d), j(d, h), h.innerHTML = i[2], i[16](h), v || (g = ge(h, "click", i[11]), v = !0);
9494
9494
  },
9495
- p(p, [v]) {
9496
- v & 394 && T(e, "transform", "translate(" + p[7] / 2 * p[3] * 3 + "px, " + p[8] / 2 * (p[1] ? -1 : 1) * p[3] * 3 + "px) scale(" + 1 / p[3] + ")"), v & 16 && T(s, "width", p[4] + "rem"), v & 4 && (h.innerHTML = p[2]), v & 8 && T(d, "transform", "scale(" + p[3] * 3 + ")"), v & 1 && f !== (f = "PanoSpatialTagPlugin__" + p[0]) && y(t, "id", f), v & 32 && T(t, "height", 20 * p[5] + "rem"), v & 2 && q(t, "PanoSpatialTagPlugin__tag-upside-down", p[1]), v & 1024 && q(t, "PanoSpatialTagPlugin__tag-show", p[10]), v & 1088 && q(t, "PanoSpatialTagPlugin__tag-hide", p[10] === !1 || p[6]);
9495
+ p(p, [A]) {
9496
+ A & 394 && T(e, "transform", "translate(" + p[7] / 2 * p[3] * 3 + "px, " + p[8] / 2 * (p[1] ? -1 : 1) * p[3] * 3 + "px) scale(" + 1 / p[3] + ")"), A & 16 && T(s, "width", p[4] + "rem"), A & 4 && (h.innerHTML = p[2]), A & 8 && T(d, "transform", "scale(" + p[3] * 3 + ")"), A & 1 && f !== (f = "PanoSpatialTagPlugin__" + p[0]) && y(t, "id", f), A & 32 && T(t, "height", 20 * p[5] + "rem"), A & 2 && q(t, "PanoSpatialTagPlugin__tag-upside-down", p[1]), A & 1024 && q(t, "PanoSpatialTagPlugin__tag-show", p[10]), A & 1088 && q(t, "PanoSpatialTagPlugin__tag-hide", p[10] === !1 || p[6]);
9497
9497
  },
9498
9498
  i: N,
9499
9499
  o: N,
9500
9500
  d(p) {
9501
- p && S(t), i[16](null), A = !1, g();
9501
+ p && S(t), i[16](null), v = !1, g();
9502
9502
  }
9503
9503
  };
9504
9504
  }
9505
9505
  function Dm(i, t, e) {
9506
- let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: u } = t, { dispose: d } = t, { events: h } = t, { hooks: f } = t, A = 0, g = 0, p, v, b = setTimeout(
9506
+ let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: u } = t, { dispose: d } = t, { events: h } = t, { hooks: f } = t, v = 0, g = 0, p, A, b = setTimeout(
9507
9507
  () => {
9508
- u || e(10, v = !0), b = void 0;
9508
+ u || e(10, A = !0), b = void 0;
9509
9509
  },
9510
9510
  100
9511
9511
  );
@@ -9534,7 +9534,7 @@ function Dm(i, t, e) {
9534
9534
  if (I === null)
9535
9535
  return;
9536
9536
  const [D, k] = I.split("-PanoSpatialTagPlugin-");
9537
- n === D && (f.emit("clickOrigin", { id: n, show: v }), b || (e(10, v = u), e(12, u = !u), b = setTimeout(
9537
+ n === D && (f.emit("clickOrigin", { id: n, show: A }), b || (e(10, A = u), e(12, u = !u), b = setTimeout(
9538
9538
  () => {
9539
9539
  b = void 0;
9540
9540
  },
@@ -9542,7 +9542,7 @@ function Dm(i, t, e) {
9542
9542
  )));
9543
9543
  });
9544
9544
  _a(() => {
9545
- e(7, A = p.offsetWidth), e(8, g = p.offsetHeight), !b && e(10, v = !u);
9545
+ e(7, v = p.offsetWidth), e(8, g = p.offsetHeight), !b && e(10, A = !u);
9546
9546
  }), Pt(() => {
9547
9547
  f.emit("destroyTag", { id: n }), E(), d();
9548
9548
  });
@@ -9561,10 +9561,10 @@ function Dm(i, t, e) {
9561
9561
  a,
9562
9562
  l,
9563
9563
  c,
9564
- A,
9564
+ v,
9565
9565
  g,
9566
9566
  p,
9567
- v,
9567
+ A,
9568
9568
  w,
9569
9569
  u,
9570
9570
  d,
@@ -9745,8 +9745,8 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
9745
9745
  const o = (Y = t == null ? void 0 : t.wait) != null ? Y : 200, s = (ae = t == null ? void 0 : t.maxNumberOnScreen) != null ? ae : 3, r = (he = t == null ? void 0 : t.minRad) != null ? he : Math.PI / 4, a = (de = t == null ? void 0 : t.nearTolerance) != null ? de : 100, l = (pe = t == null ? void 0 : t.upsideHeight) != null ? pe : 1.6, c = (Ce = t == null ? void 0 : t.minDistance) != null ? Ce : 1.2, u = (Pe = t == null ? void 0 : t.maxDistance) != null ? Pe : 3.5, d = Tn(i), h = document.createElement("div");
9746
9746
  h.classList.add("PanoSpatialTagPlugin"), Object.assign(h.style, Sm);
9747
9747
  const f = new Ye();
9748
- let A = new Image();
9749
- A.src = jm;
9748
+ let v = new Image();
9749
+ v.src = jm;
9750
9750
  const g = {
9751
9751
  points: [],
9752
9752
  origins: [],
@@ -9760,7 +9760,7 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
9760
9760
  }, p = new Im({
9761
9761
  target: h,
9762
9762
  props: { origins: g.origins }
9763
- }), v = (ce, Ae) => {
9763
+ }), A = (ce, Ae) => {
9764
9764
  L(), Ae && I();
9765
9765
  }, b = () => {
9766
9766
  g.forbidden && (g.forbidden = !1, I());
@@ -9956,11 +9956,11 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
9956
9956
  }, X = () => {
9957
9957
  i.once("renderFrame", L);
9958
9958
  }, G = () => {
9959
- e || (e = i.getElement().parentElement), e && e.appendChild(h), g.forbidden = !1, n = i.model.bounding.getCenter(new C.Vector3()).y, I(), i.on("panoWillArrive", w), i.on("panoArrived", b), i.on("modeChange", E), i.on("cameraUpdate", v);
9959
+ e || (e = i.getElement().parentElement), e && e.appendChild(h), g.forbidden = !1, n = i.model.bounding.getCenter(new C.Vector3()).y, I(), i.on("panoWillArrive", w), i.on("panoArrived", b), i.on("modeChange", E), i.on("cameraUpdate", A);
9960
9960
  }, ee = () => {
9961
- A = null, d.disposeAll(), p.$destroy(), g.tags.forEach((ce) => {
9961
+ v = null, d.disposeAll(), p.$destroy(), g.tags.forEach((ce) => {
9962
9962
  ce.app.$destroy(), ce = null;
9963
- }), g.origins = [], g.tags = [], i.off("modelLoaded", G), i.off("renderFrame", L), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", E), i.off("cameraUpdate", v), i.off("dispose", ee), window.removeEventListener("resize", X, !1);
9963
+ }), g.origins = [], g.tags = [], i.off("modelLoaded", G), i.off("renderFrame", L), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", E), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", X, !1);
9964
9964
  };
9965
9965
  return window.addEventListener("resize", X, !1), (Se = i == null ? void 0 : i.model) != null && Se.loaded ? G() : i.once("modelLoaded", G), i.on("dispose", ee), {
9966
9966
  load: k,
@@ -10107,16 +10107,16 @@ function Hm(i) {
10107
10107
  let Zs = 26, Gm = 11;
10108
10108
  function Wm(i, t, e) {
10109
10109
  const { Raycaster: n, Vector3: o } = C;
10110
- let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, d = null, h, f, A = [], g = !0;
10110
+ let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, d = null, h, f, v = [], g = !0;
10111
10111
  const p = (B, R) => {
10112
10112
  const W = new n(), X = B.camera.position.clone(), G = new o().fromArray(R.modelPosition), ee = G.distanceTo(X);
10113
10113
  W.set(X.clone(), G.clone().sub(X).normalize());
10114
10114
  const [Y] = B.model.intersectRaycaster(W);
10115
10115
  return !(Y && Y.distance + 1 < ee);
10116
- }, v = (B, R) => {
10116
+ }, A = (B, R) => {
10117
10117
  const W = new o(R.modelPosition[0], R.modelPosition[1], R.modelPosition[2]), X = B.project2d(W), G = X == null ? void 0 : X.x, ee = X == null ? void 0 : X.y;
10118
10118
  return [G, ee];
10119
- }, b = (B) => `translate(${B[0]}px, ${B[1]}px)`, w = (B, R) => A.length === 0 ? !1 : !!A.find((X) => B[0] >= X[0] - R && B[0] <= X[0] + R || B[1] >= X[1] - Zs && B[1] <= X[1] + Zs);
10119
+ }, b = (B) => `translate(${B[0]}px, ${B[1]}px)`, w = (B, R) => v.length === 0 ? !1 : !!v.find((X) => B[0] >= X[0] - R && B[0] <= X[0] + R || B[1] >= X[1] - Zs && B[1] <= X[1] + Zs);
10120
10120
  function E(B, R) {
10121
10121
  switch (R) {
10122
10122
  case Rt.SMALL:
@@ -10131,10 +10131,10 @@ function Wm(i, t, e) {
10131
10131
  }
10132
10132
  const L = (B, R) => {
10133
10133
  const W = R.map((G) => {
10134
- const ee = v(B, G), Y = G.name.length * Gm, ae = E(G.modelPosition[1], c), de = (r ? p(B, G) : !0) && !w([ee[0], ee[1] + ae], Y);
10134
+ const ee = A(B, G), Y = G.name.length * Gm, ae = E(G.modelPosition[1], c), de = (r ? p(B, G) : !0) && !w([ee[0], ee[1] + ae], Y);
10135
10135
  if (!de)
10136
10136
  return fe(Q({}, G), { visible: de });
10137
- A.push(ee);
10137
+ v.push(ee);
10138
10138
  const pe = b(ee);
10139
10139
  return fe(Q({}, G), {
10140
10140
  visible: de,
@@ -10150,7 +10150,7 @@ function Wm(i, t, e) {
10150
10150
  return ee !== void 0 ? fe(Q({}, G), { zIndex: ee * 10 }) : G;
10151
10151
  });
10152
10152
  }, I = () => {
10153
- A = [], e(1, d = L(s, d));
10153
+ v = [], e(1, d = L(s, d));
10154
10154
  };
10155
10155
  Wa(() => {
10156
10156
  _();
@@ -10240,15 +10240,15 @@ const jb = (i, t) => {
10240
10240
  height: 100%;
10241
10241
  z-index: 5;
10242
10242
  `, e.container.style.pointerEvents = "none";
10243
- const n = (A) => (e.wrapper = A, A.appendChild(e.container), l(), !0), o = (A) => {
10244
- e.itemLabels = Nm(A), l();
10243
+ const n = (v) => (e.wrapper = v, v.appendChild(e.container), l(), !0), o = (v) => {
10244
+ e.itemLabels = Nm(v), l();
10245
10245
  }, s = () => (e.enabled || (e.enabled = !0, l()), !0), r = () => (e.enabled && (e.enabled = !1, l()), !0), a = () => {
10246
10246
  u(), e.container.remove();
10247
10247
  }, l = () => {
10248
- var A;
10248
+ var v;
10249
10249
  if (!!e.wrapper) {
10250
10250
  if (!e.enabled || !e.fiveModeEnabled) {
10251
- (A = e.app) == null || A.$destroy(), e.app = void 0;
10251
+ (v = e.app) == null || v.$destroy(), e.app = void 0;
10252
10252
  return;
10253
10253
  }
10254
10254
  e.app ? e.app.$set({
@@ -10270,9 +10270,9 @@ const jb = (i, t) => {
10270
10270
  i.on("modeChange", d), i.once("dispose", a);
10271
10271
  }, u = () => {
10272
10272
  i.off("modeChange", d);
10273
- }, d = (A) => {
10273
+ }, d = (v) => {
10274
10274
  if (!!e.enabled) {
10275
- if (A !== je.Mode.Floorplan) {
10275
+ if (v !== je.Mode.Floorplan) {
10276
10276
  e.fiveModeEnabled = !1, l();
10277
10277
  return;
10278
10278
  }
@@ -10318,13 +10318,13 @@ const Ob = (i, { videoElement: t }) => {
10318
10318
  rectPoints: [],
10319
10319
  enabled: !1,
10320
10320
  videoElement: t
10321
- }, n = Tn(i), o = /* @__PURE__ */ new Map(), s = (v) => {
10322
- e.videoTexture && (e.videoTexture.image.muted = v);
10321
+ }, n = Tn(i), o = /* @__PURE__ */ new Map(), s = (A) => {
10322
+ e.videoTexture && (e.videoTexture.image.muted = A);
10323
10323
  }, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
10324
10324
  if (e.enabled || !e.videoTexture)
10325
10325
  return;
10326
10326
  e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((b) => i.scene.add(b));
10327
- const v = () => {
10327
+ const A = () => {
10328
10328
  if (!e.videoTexture)
10329
10329
  return;
10330
10330
  const b = () => {
@@ -10342,30 +10342,30 @@ const Ob = (i, { videoElement: t }) => {
10342
10342
  });
10343
10343
  };
10344
10344
  if (i.model.loaded)
10345
- v();
10345
+ A();
10346
10346
  else
10347
- return i.once("modelLoaded", () => v());
10347
+ return i.once("modelLoaded", () => A());
10348
10348
  }, l = () => {
10349
- !e.enabled || (e.enabled = !1, e.videoMeshes.forEach((v) => {
10350
- v.geometry.dispose(), v.material.dispose(), i.scene.remove(v), e.videoTexture && e.videoTexture.image.pause();
10349
+ !e.enabled || (e.enabled = !1, e.videoMeshes.forEach((A) => {
10350
+ A.geometry.dispose(), A.material.dispose(), i.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
10351
10351
  }), e.videoMeshes = [], i.needsRender = !0);
10352
- }, c = () => e.rectPoints.map((v, b) => {
10352
+ }, c = () => e.rectPoints.map((A, b) => {
10353
10353
  const w = new C.BufferGeometry(), E = 128, L = [];
10354
- L.push(...v[0].toArray());
10354
+ L.push(...A[0].toArray());
10355
10355
  for (let B = 1; B < E; B++)
10356
10356
  L.push(
10357
- v[0].x + (v[1].x - v[0].x) * B / E,
10358
- v[0].y + (v[1].y - v[0].y) * B / E,
10359
- v[0].z + (v[1].z - v[0].z) * B / E
10357
+ A[0].x + (A[1].x - A[0].x) * B / E,
10358
+ A[0].y + (A[1].y - A[0].y) * B / E,
10359
+ A[0].z + (A[1].z - A[0].z) * B / E
10360
10360
  );
10361
- L.push(...v[1].toArray()), L.push(...v[2].toArray());
10361
+ L.push(...A[1].toArray()), L.push(...A[2].toArray());
10362
10362
  for (let B = 1; B < E; B++)
10363
10363
  L.push(
10364
- v[2].x + (v[3].x - v[2].x) * B / E,
10365
- v[2].y + (v[3].y - v[2].y) * B / E,
10366
- v[2].z + (v[3].z - v[2].z) * B / E
10364
+ A[2].x + (A[3].x - A[2].x) * B / E,
10365
+ A[2].y + (A[3].y - A[2].y) * B / E,
10366
+ A[2].z + (A[3].z - A[2].z) * B / E
10367
10367
  );
10368
- L.push(...v[3].toArray());
10368
+ L.push(...A[3].toArray());
10369
10369
  const I = [];
10370
10370
  I.push(0, 1);
10371
10371
  for (let B = 1; B < E; B++)
@@ -10385,7 +10385,7 @@ const Ob = (i, { videoElement: t }) => {
10385
10385
  side: C.DoubleSide
10386
10386
  }), _ = new C.Mesh(w, V);
10387
10387
  _.renderOrder = 1, _.name = `ModelTVVideoPlugin-${b}-${performance.now()}`;
10388
- const O = [v[1], v[2], v[3], v[0]], F = n.create3DDomContainer(O);
10388
+ const O = [A[1], A[2], A[3], A[0]], F = n.create3DDomContainer(O);
10389
10389
  if (F != null && F.container) {
10390
10390
  const B = document.createElement("div");
10391
10391
  B.classList.add("play-icon"), B.style.width = "100%", B.style.height = "100%", B.style.display = "flex", B.style.justifyContent = "center", B.style.alignItems = "center", B.style.pointerEvents = "none", F.container.appendChild(B);
@@ -10395,10 +10395,10 @@ const Ob = (i, { videoElement: t }) => {
10395
10395
  }, B.appendChild(R), o.set(_, F);
10396
10396
  }
10397
10397
  return _;
10398
- }), u = (v) => {
10399
- const b = new C.TextureLoader().load(v);
10398
+ }), u = (A) => {
10399
+ const b = new C.TextureLoader().load(A);
10400
10400
  return b.minFilter = C.LinearFilter, b.magFilter = C.LinearFilter, b.format = C.RGBFormat, b;
10401
- }, d = (v, b) => new Promise((w, E) => {
10401
+ }, d = (A, b) => new Promise((w, E) => {
10402
10402
  const L = new XMLHttpRequest();
10403
10403
  L.onreadystatechange = () => {
10404
10404
  if (L.readyState == 4)
@@ -10406,48 +10406,48 @@ const Ob = (i, { videoElement: t }) => {
10406
10406
  const I = window.URL || window.webkitURL;
10407
10407
  b = b || document.createElement("video"), b.crossOrigin = "anonymous", b.muted = !0, b.loop = !0, b.playsInline = !0, b.src = I.createObjectURL(L.response);
10408
10408
  const D = new C.VideoTexture(b);
10409
- D.minFilter = C.LinearFilter, D.magFilter = C.LinearFilter, D.format = C.RGBFormat, w(Object.assign(D, { videoSource: v }));
10409
+ D.minFilter = C.LinearFilter, D.magFilter = C.LinearFilter, D.format = C.RGBFormat, w(Object.assign(D, { videoSource: A }));
10410
10410
  } else
10411
10411
  E(new Error("Video download Error: " + L.status));
10412
- }, L.onerror = (I) => E(I), L.open("GET", v), L.responseType = "blob", L.send();
10413
- }), h = (v, b) => H(void 0, null, function* () {
10414
- const { video_src: w, video_poster_src: E, points: L } = v;
10415
- e.videoSource = w, e.rectPoints = Xm(L).map((I) => I.map(({ x: D, y: k, z: V }) => new C.Vector3(D, k, V))), e.imageTexture = u(E), b && (e.videoElement = b), e.videoTexture = yield d(e.videoSource, e.videoElement), e.enabled = !!v.enable, e.enabled && a();
10416
- }), f = (v) => {
10412
+ }, L.onerror = (I) => E(I), L.open("GET", A), L.responseType = "blob", L.send();
10413
+ }), h = (A, b) => H(void 0, null, function* () {
10414
+ const { video_src: w, video_poster_src: E, points: L } = A;
10415
+ e.videoSource = w, e.rectPoints = Xm(L).map((I) => I.map(({ x: D, y: k, z: V }) => new C.Vector3(D, k, V))), e.imageTexture = u(E), b && (e.videoElement = b), e.videoTexture = yield d(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
10416
+ }), f = (A) => {
10417
10417
  if (!e.enabled)
10418
10418
  return;
10419
10419
  const b = e.videoMeshes;
10420
- if (!(!b || v.intersectObjects(b).length === 0))
10420
+ if (!(!b || A.intersectObjects(b).length === 0))
10421
10421
  return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
10422
- }, A = (v) => {
10423
- v === "Floorplan" ? n.hide() : n.show();
10422
+ }, v = (A) => {
10423
+ A === "Floorplan" ? n.hide() : n.show();
10424
10424
  }, g = () => {
10425
10425
  if (!e.enabled)
10426
10426
  return;
10427
- const v = i.camera.position;
10427
+ const A = i.camera.position;
10428
10428
  if (o.forEach((b, w) => {
10429
- const E = b.css3DObject.position.clone(), L = E.clone().sub(v).normalize(), I = new C.Raycaster(v, L), D = i.model.intersectRaycaster(I)[0], k = E.distanceTo(v), V = 0.01;
10429
+ const E = b.css3DObject.position.clone(), L = E.clone().sub(A).normalize(), I = new C.Raycaster(A, L), D = i.model.intersectRaycaster(I)[0], k = E.distanceTo(A), V = 0.01;
10430
10430
  D && D.distance + V < k ? b.hide() : b.show();
10431
10431
  }), !r()) {
10432
10432
  const b = e.rectPoints.find((w) => {
10433
10433
  const E = w[0].clone().add(w[1]).add(w[2]).add(w[3]).divideScalar(4);
10434
10434
  return w.map((L) => L.clone().add(E).divideScalar(2)).filter((L) => {
10435
- const I = L.distanceTo(v), D = new C.Raycaster(v, L.clone().sub(v).normalize()), k = i.model.intersectRaycaster(D)[0], V = 0.01;
10435
+ const I = L.distanceTo(A), D = new C.Raycaster(A, L.clone().sub(A).normalize()), k = i.model.intersectRaycaster(D)[0], V = 0.01;
10436
10436
  return !(k && k.distance + V < I);
10437
10437
  }).length >= 2;
10438
10438
  });
10439
10439
  (!b || b.length === 0) && s(!0);
10440
10440
  }
10441
10441
  }, p = () => {
10442
- l(), e.videoTexture = void 0, i.off("modeChange", A), i.off("wantsTapGesture", f), i.off("panoArrived", g), i.off("renderFrame", () => {
10443
- e.videoMeshes.forEach((v) => {
10444
- v && (v.needsRender = !0);
10442
+ l(), e.videoTexture = void 0, i.off("modeChange", v), i.off("wantsTapGesture", f), i.off("panoArrived", g), i.off("renderFrame", () => {
10443
+ e.videoMeshes.forEach((A) => {
10444
+ A && (A.needsRender = !0);
10445
10445
  });
10446
10446
  });
10447
10447
  };
10448
- return i.on("modeChange", A), i.on("wantsTapGesture", f), i.on("panoArrived", g), i.on("renderFrame", () => {
10449
- e.videoMeshes.forEach((v) => {
10450
- v && (v.needsRender = !0);
10448
+ return i.on("modeChange", v), i.on("wantsTapGesture", f), i.on("panoArrived", g), i.on("renderFrame", () => {
10449
+ e.videoMeshes.forEach((A) => {
10450
+ A && (A.needsRender = !0);
10451
10451
  });
10452
10452
  }), { enable: a, disable: l, load: h, dispose: p, state: e, css3DRenderPlugin: n };
10453
10453
  };
@@ -10507,8 +10507,8 @@ function Ks(i) {
10507
10507
  }
10508
10508
  function Jm(i) {
10509
10509
  let t, e, n, o, s, r, a, l, c, u;
10510
- function d(A, g) {
10511
- return g & 1 && (n = null), n == null && (n = !!Boolean(typeof A[0].render == "function")), n ? qm : Um;
10510
+ function d(v, g) {
10511
+ return g & 1 && (n = null), n == null && (n = !!Boolean(typeof v[0].render == "function")), n ? qm : Um;
10512
10512
  }
10513
10513
  let h = d(i, -1), f = h(i);
10514
10514
  return {
@@ -10517,18 +10517,18 @@ function Jm(i) {
10517
10517
  "item-label-item__custom": Boolean(typeof i[0].render == "function")
10518
10518
  })) + " svelte-gduhqw"), T(e, "bottom", `${i[0].strokeLength}px`), y(r, "class", a = Me(tt("item-label-item__bar", { anchor: i[1] })) + " svelte-gduhqw"), T(r, "height", `${i[0].strokeLength}px`), y(t, "class", l = Me(tt("item-label-item", { fold: i[0].isFold })) + " svelte-gduhqw"), T(t, "z-index", i[0].zIndex), T(t, "transform", i[0].transform);
10519
10519
  },
10520
- m(A, g) {
10521
- M(A, t, g), j(t, e), f.m(e, null), j(t, s), j(t, r), c || (u = ge(e, "click", i[4]), c = !0);
10520
+ m(v, g) {
10521
+ M(v, t, g), j(t, e), f.m(e, null), j(t, s), j(t, r), c || (u = ge(e, "click", i[4]), c = !0);
10522
10522
  },
10523
- p(A, [g]) {
10524
- h === (h = d(A, g)) && f ? f.p(A, g) : (f.d(1), f = h(A), f && (f.c(), f.m(e, null))), g & 1 && o !== (o = Me(tt("item-label-item__text-wrap", {
10525
- "item-label-item__custom": Boolean(typeof A[0].render == "function")
10526
- })) + " svelte-gduhqw") && y(e, "class", o), g & 1 && T(e, "bottom", `${A[0].strokeLength}px`), g & 2 && a !== (a = Me(tt("item-label-item__bar", { anchor: A[1] })) + " svelte-gduhqw") && y(r, "class", a), g & 1 && T(r, "height", `${A[0].strokeLength}px`), g & 1 && l !== (l = Me(tt("item-label-item", { fold: A[0].isFold })) + " svelte-gduhqw") && y(t, "class", l), g & 1 && T(t, "z-index", A[0].zIndex), g & 1 && T(t, "transform", A[0].transform);
10523
+ p(v, [g]) {
10524
+ h === (h = d(v, g)) && f ? f.p(v, g) : (f.d(1), f = h(v), f && (f.c(), f.m(e, null))), g & 1 && o !== (o = Me(tt("item-label-item__text-wrap", {
10525
+ "item-label-item__custom": Boolean(typeof v[0].render == "function")
10526
+ })) + " svelte-gduhqw") && y(e, "class", o), g & 1 && T(e, "bottom", `${v[0].strokeLength}px`), g & 2 && a !== (a = Me(tt("item-label-item__bar", { anchor: v[1] })) + " svelte-gduhqw") && y(r, "class", a), g & 1 && T(r, "height", `${v[0].strokeLength}px`), g & 1 && l !== (l = Me(tt("item-label-item", { fold: v[0].isFold })) + " svelte-gduhqw") && y(t, "class", l), g & 1 && T(t, "z-index", v[0].zIndex), g & 1 && T(t, "transform", v[0].transform);
10527
10527
  },
10528
10528
  i: N,
10529
10529
  o: N,
10530
- d(A) {
10531
- A && S(t), f.d(), c = !1, u();
10530
+ d(v) {
10531
+ v && S(t), f.d(), c = !1, u();
10532
10532
  }
10533
10533
  };
10534
10534
  }
@@ -10717,7 +10717,7 @@ function ip(i) {
10717
10717
  let op = 11;
10718
10718
  function sp(i, t, e) {
10719
10719
  const { Raycaster: n, Vector3: o } = C;
10720
- let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, d = null, h = null, f = (s == null ? void 0 : s.currentMode) === je.Mode.Panorama, A, g, p = [], v = !0;
10720
+ let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, d = null, h = null, f = (s == null ? void 0 : s.currentMode) === je.Mode.Panorama, v, g, p = [], A = !0;
10721
10721
  const b = (W, X) => {
10722
10722
  const G = W.camera.position.clone(), ee = new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]), Y = ee.distanceTo(G);
10723
10723
  return u !== void 0 && W.state.mode === je.Mode.Panorama && Y > u ? !1 : $s(W, ee.clone().sub(G).normalize(), G, Y);
@@ -10754,10 +10754,10 @@ function sp(i, t, e) {
10754
10754
  }, I = () => {
10755
10755
  p = [], e(1, h = L(s, h));
10756
10756
  }, D = () => {
10757
- e(5, v = !1), k();
10757
+ e(5, A = !1), k();
10758
10758
  }, k = kl(
10759
10759
  () => {
10760
- e(5, v = !0), I();
10760
+ e(5, A = !0), I();
10761
10761
  },
10762
10762
  300
10763
10763
  ), V = () => {
@@ -10811,7 +10811,7 @@ function sp(i, t, e) {
10811
10811
  s.off("cameraUpdate", D), window.removeEventListener("resize", V, !1);
10812
10812
  });
10813
10813
  function R() {
10814
- A = this.clientWidth, g = this.clientHeight, e(3, A), e(4, g);
10814
+ v = this.clientWidth, g = this.clientHeight, e(3, v), e(4, g);
10815
10815
  }
10816
10816
  return i.$$set = (W) => {
10817
10817
  "five" in W && e(7, s = W.five), "modelOcclusionEnable" in W && e(8, r = W.modelOcclusionEnable), "itemLabels" in W && e(9, a = W.itemLabels), "hooks" in W && e(0, l = W.hooks), "displayStrategyType" in W && e(10, c = W.displayStrategyType), "maxVisibleDistance" in W && e(11, u = W.maxVisibleDistance);
@@ -10819,9 +10819,9 @@ function sp(i, t, e) {
10819
10819
  l,
10820
10820
  h,
10821
10821
  f,
10822
- A,
10823
- g,
10824
10822
  v,
10823
+ g,
10824
+ A,
10825
10825
  B,
10826
10826
  s,
10827
10827
  r,
@@ -10859,7 +10859,7 @@ function ap(i) {
10859
10859
  }));
10860
10860
  }
10861
10861
  const lp = void 0, Rb = (i, t) => {
10862
- var h, f, A, g;
10862
+ var h, f, v, g;
10863
10863
  const e = {
10864
10864
  container: document.createElement("div"),
10865
10865
  data: null,
@@ -10871,7 +10871,7 @@ const lp = void 0, Rb = (i, t) => {
10871
10871
  hooks: new Ye(),
10872
10872
  modelOcclusionEnable: (h = t == null ? void 0 : t.modelOcclusionEnable) != null ? h : !0,
10873
10873
  onlyVisibleInPanorama: (f = t == null ? void 0 : t.onlyVisibleInPanorama) != null ? f : !0,
10874
- displayStrategyType: (A = t == null ? void 0 : t.displayStrategyType) != null ? A : Ft.SMALL,
10874
+ displayStrategyType: (v = t == null ? void 0 : t.displayStrategyType) != null ? v : Ft.SMALL,
10875
10875
  maxVisibleDistance: (g = t == null ? void 0 : t.maxVisibleDistance) != null ? g : lp
10876
10876
  };
10877
10877
  e.container.setAttribute("class", "item-label-plugin-container"), e.container.style.cssText = `
@@ -11003,9 +11003,9 @@ function hp(i, t, e) {
11003
11003
  const f = () => {
11004
11004
  if (!r || !a || !l || !s)
11005
11005
  return;
11006
- const p = s.current.clientWidth / window.innerWidth * 100, v = s.current.clientHeight / window.innerHeight * 100;
11007
- r <= p / 2 || r >= 100 - p / 2 || a <= v / 2 || a >= 100 - v / 2;
11008
- }, A = (p) => {
11006
+ const p = s.current.clientWidth / window.innerWidth * 100, A = s.current.clientHeight / window.innerHeight * 100;
11007
+ r <= p / 2 || r >= 100 - p / 2 || a <= A / 2 || a >= 100 - A / 2;
11008
+ }, v = (p) => {
11009
11009
  o && o();
11010
11010
  };
11011
11011
  function g(p) {
@@ -11025,7 +11025,7 @@ function hp(i, t, e) {
11025
11025
  c,
11026
11026
  d,
11027
11027
  h,
11028
- A,
11028
+ v,
11029
11029
  g
11030
11030
  ];
11031
11031
  }
@@ -11106,8 +11106,8 @@ class bp extends cp {
11106
11106
  return;
11107
11107
  const h = new Mt(), f = u.clone().sub(s).normalize();
11108
11108
  h.set(s, f);
11109
- const [A] = this.five.model.intersectRaycaster(h);
11110
- A && A.distance + 0.1 < d || a.push(c);
11109
+ const [v] = this.five.model.intersectRaycaster(h);
11110
+ v && v.distance + 0.1 < d || a.push(c);
11111
11111
  }), this.visibleLabelMap.set(e, a), a;
11112
11112
  }
11113
11113
  })();
@@ -11116,7 +11116,7 @@ class bp extends cp {
11116
11116
  }), this.fixDoorPosition();
11117
11117
  });
11118
11118
  m(this, "fixDoorPosition", () => {
11119
- var u, d, h, f, A, g, p, v, b, w, E, L;
11119
+ var u, d, h, f, v, g, p, A, b, w, E, L;
11120
11120
  const { panoIndex: e, camera: n } = this.five;
11121
11121
  if (e === null)
11122
11122
  return;
@@ -11140,11 +11140,11 @@ class bp extends cp {
11140
11140
  left: s * V / 100,
11141
11141
  top: r * _ / 100,
11142
11142
  width: (h = (d = (u = R.children) == null ? void 0 : u[0]) == null ? void 0 : d.clientWidth) != null ? h : 0,
11143
- height: (g = (A = (f = R.children) == null ? void 0 : f[0]) == null ? void 0 : A.clientHeight) != null ? g : 0
11143
+ height: (g = (v = (f = R.children) == null ? void 0 : f[0]) == null ? void 0 : v.clientHeight) != null ? g : 0
11144
11144
  }, G = {
11145
11145
  left: s * F / 100,
11146
11146
  top: r * B / 100,
11147
- width: (b = (v = (p = W.children) == null ? void 0 : p[0]) == null ? void 0 : v.clientWidth) != null ? b : 0,
11147
+ width: (b = (A = (p = W.children) == null ? void 0 : p[0]) == null ? void 0 : A.clientWidth) != null ? b : 0,
11148
11148
  height: (L = (E = (w = W.children) == null ? void 0 : w[0]) == null ? void 0 : E.clientHeight) != null ? L : 0
11149
11149
  };
11150
11150
  mp(X, G) && (I++, c[k].transform = `translate(-50%, ${(I - 1) * 100 - 50}%)`, c[O].transform = `translate(-50%, ${I * 100 - 50}%)`);
@@ -11184,18 +11184,18 @@ class bp extends cp {
11184
11184
  const d = u.position;
11185
11185
  let h = 1 / 0, f;
11186
11186
  l.forEach((g) => {
11187
- const p = g.standingPosition, v = {
11187
+ const p = g.standingPosition, A = {
11188
11188
  x: p.x,
11189
11189
  y: p.y,
11190
11190
  z: p.z
11191
- }, b = gp(d, v);
11192
- b < h && (h = b, f = v);
11191
+ }, b = gp(d, A);
11192
+ b < h && (h = b, f = A);
11193
11193
  }), f && (d.y = f.y + 0.01);
11194
- const A = new U(d.x, d.y, d.z);
11195
- A.add(new U(-0.2, 1.8, 0).applyEuler(new Ro(0, u.rad, 0))), this.doorLabels.push({
11194
+ const v = new U(d.x, d.y, d.z);
11195
+ v.add(new U(-0.2, 1.8, 0).applyEuler(new Ro(0, u.rad, 0))), this.doorLabels.push({
11196
11196
  roomName: r.name,
11197
11197
  name: u.name,
11198
- position: A,
11198
+ position: v,
11199
11199
  toward: Ap(u.rad)
11200
11200
  });
11201
11201
  });
@@ -11259,18 +11259,18 @@ function Pp(i, t) {
11259
11259
  const c = Math.ceil(s.getLength() / n * 1.5), u = s.getPoints(c), d = [];
11260
11260
  let h = 0;
11261
11261
  const f = i;
11262
- return f.forEach((A, g) => {
11263
- let p = 0, v = 99999999;
11262
+ return f.forEach((v, g) => {
11263
+ let p = 0, A = 99999999;
11264
11264
  u.forEach((I, D) => {
11265
- const k = I.distanceTo(A);
11266
- k < v && (p = D, v = k);
11265
+ const k = I.distanceTo(v);
11266
+ k < A && (p = D, A = k);
11267
11267
  });
11268
- const b = u[p + 1], w = b == null ? void 0 : b.distanceTo(A), E = u[p - 1], L = E == null ? void 0 : E.distanceTo(A);
11268
+ const b = u[p + 1], w = b == null ? void 0 : b.distanceTo(v), E = u[p - 1], L = E == null ? void 0 : E.distanceTo(v);
11269
11269
  if (p > h && p - h > 1) {
11270
11270
  let I = p;
11271
- E !== void 0 && L > 0.8 && (I = p + 1), E !== void 0 && L > 0.2 && L < 0.3 ? I = p : v > 0.2 && v < 0.3 && (I = p + 1);
11271
+ E !== void 0 && L > 0.8 && (I = p + 1), E !== void 0 && L > 0.2 && L < 0.3 ? I = p : A > 0.2 && A < 0.3 && (I = p + 1);
11272
11272
  let D = h;
11273
- if (b !== void 0 && w > 0.2 && w < 0.3 ? D = h + 1 : v > 0.2 && v < 0.3 && (D = h), u[D] && u[D + 1]) {
11273
+ if (b !== void 0 && w > 0.2 && w < 0.3 ? D = h + 1 : A > 0.2 && A < 0.3 && (D = h), u[D] && u[D + 1]) {
11274
11274
  const _ = f[g - 1];
11275
11275
  if (_)
11276
11276
  if (_.equals(u[D]))
@@ -11292,20 +11292,20 @@ function Pp(i, t) {
11292
11292
  }
11293
11293
  }
11294
11294
  function or(i, t, e) {
11295
- const n = t / 2, o = e / t, s = i.length, r = Dc(i.map((v) => [v.x, v.z])), l = (i.length - 1) * yp * wp, c = 2 * s, u = c * Ep, d = c * Cp, h = new Uint32Array(l), f = new Float32Array(u), A = new Float32Array(d);
11296
- i.forEach((v, b) => {
11295
+ const n = t / 2, o = e / t, s = i.length, r = Dc(i.map((A) => [A.x, A.z])), l = (i.length - 1) * yp * wp, c = 2 * s, u = c * Ep, d = c * Cp, h = new Uint32Array(l), f = new Float32Array(u), v = new Float32Array(d);
11296
+ i.forEach((A, b) => {
11297
11297
  });
11298
11298
  let g = 0;
11299
- for (let v = 0; v < i.length; v++) {
11300
- const [b, w] = r[v][0], E = i[v], { x: L, y: I, z: D } = E, k = new U(L + b * n, I + 0.05, D + w * n);
11301
- f[v * 6 + 0] = k.x, f[v * 6 + 1] = k.y, f[v * 6 + 2] = k.z;
11299
+ for (let A = 0; A < i.length; A++) {
11300
+ const [b, w] = r[A][0], E = i[A], { x: L, y: I, z: D } = E, k = new U(L + b * n, I + 0.05, D + w * n);
11301
+ f[A * 6 + 0] = k.x, f[A * 6 + 1] = k.y, f[A * 6 + 2] = k.z;
11302
11302
  const V = new U(L - b * n, I + 0.05, D - w * n);
11303
- f[v * 6 + 3] = V.x, f[v * 6 + 4] = V.y, f[v * 6 + 5] = V.z, g += v > 0 ? i[v - 1].clone().sub(i[v]).length() : 0;
11303
+ f[A * 6 + 3] = V.x, f[A * 6 + 4] = V.y, f[A * 6 + 5] = V.z, g += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
11304
11304
  const _ = g / t / o;
11305
- A[v * 4 + 0] = 0, A[v * 4 + 1] = _, A[v * 4 + 2] = 1, A[v * 4 + 3] = _, v !== i.length - 1 && (h[v * 6 + 0] = v * 2 + 0, h[v * 6 + 1] = v * 2 + 2, h[v * 6 + 2] = v * 2 + 1, h[v * 6 + 3] = v * 2 + 2, h[v * 6 + 4] = v * 2 + 3, h[v * 6 + 5] = v * 2 + 1);
11305
+ v[A * 4 + 0] = 0, v[A * 4 + 1] = _, v[A * 4 + 2] = 1, v[A * 4 + 3] = _, A !== i.length - 1 && (h[A * 6 + 0] = A * 2 + 0, h[A * 6 + 1] = A * 2 + 2, h[A * 6 + 2] = A * 2 + 1, h[A * 6 + 3] = A * 2 + 2, h[A * 6 + 4] = A * 2 + 3, h[A * 6 + 5] = A * 2 + 1);
11306
11306
  }
11307
11307
  const p = new C.BufferGeometry();
11308
- return p.setAttribute("position", new C.BufferAttribute(f, 3)), p.setAttribute("uv", new C.BufferAttribute(A, 2)), p.setIndex(new C.BufferAttribute(h, 1)), p;
11308
+ return p.setAttribute("position", new C.BufferAttribute(f, 3)), p.setAttribute("uv", new C.BufferAttribute(v, 2)), p.setIndex(new C.BufferAttribute(h, 1)), p;
11309
11309
  }
11310
11310
  function Ip(i) {
11311
11311
  const t = new C.TextureLoader().load(i.textureUrl);
@@ -11396,10 +11396,10 @@ class Ll extends zt {
11396
11396
  return s.add(...o), s;
11397
11397
  }
11398
11398
  getLine(e, n) {
11399
- var l, c, u, d, h, f, A, g;
11399
+ var l, c, u, d, h, f, v, g;
11400
11400
  const o = new C.Group(), s = e.panoIndexList.map((p) => {
11401
- var v;
11402
- return (v = this.five.work.observers[p]) == null ? void 0 : v.standingPosition;
11401
+ var A;
11402
+ return (A = this.five.work.observers[p]) == null ? void 0 : A.standingPosition;
11403
11403
  }).filter(wt), r = Pp(s, {
11404
11404
  skipPanoIndexMesh: (c = (l = e.skipPanoIndexMesh) != null ? l : n == null ? void 0 : n.skipPanoIndexMesh) != null ? c : !0,
11405
11405
  unitWidth: (d = (u = e.unitWidth) != null ? u : n == null ? void 0 : n.unitWidth) != null ? d : 0.6,
@@ -11408,11 +11408,11 @@ class Ll extends zt {
11408
11408
  if (!r)
11409
11409
  return;
11410
11410
  const a = Ip({
11411
- textureUrl: (g = (A = e.arrowTextureUrl) != null ? A : n == null ? void 0 : n.arrowTextureUrl) != null ? g : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png"
11411
+ textureUrl: (g = (v = e.arrowTextureUrl) != null ? v : n == null ? void 0 : n.arrowTextureUrl) != null ? g : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png"
11412
11412
  });
11413
11413
  return r.forEach((p) => {
11414
- const v = new C.Mesh(p, a);
11415
- v.name = sr("route-line-mesh"), o.add(v);
11414
+ const A = new C.Mesh(p, a);
11415
+ A.name = sr("route-line-mesh"), o.add(A);
11416
11416
  }), o;
11417
11417
  }
11418
11418
  waitFiveModelLoaded() {
@@ -11516,7 +11516,7 @@ class Tl extends zt {
11516
11516
  }
11517
11517
  load(e, n, o) {
11518
11518
  return H(this, null, function* () {
11519
- var u, d, h, f, A;
11519
+ var u, d, h, f, v;
11520
11520
  if (this.state.disposed)
11521
11521
  return ar();
11522
11522
  this.privateState.fiveOriginGetProgress || (d = (u = this.five.controller) == null ? void 0 : u.cameraMotion) != null && d.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (f = (h = this.five.controller) == null ? void 0 : h.cameraMotion) == null ? void 0 : f.getProgress), this.clear();
@@ -11525,11 +11525,11 @@ class Tl extends zt {
11525
11525
  let a = [], l;
11526
11526
  const c = this.data.keyframes.filter((g) => g.data.panoIndex !== void 0);
11527
11527
  c.filter((g, p) => {
11528
- var v;
11529
- return g.data.panoIndex !== ((v = c[p - 1]) == null ? void 0 : v.data.panoIndex);
11528
+ var A;
11529
+ return g.data.panoIndex !== ((A = c[p - 1]) == null ? void 0 : A.data.panoIndex);
11530
11530
  }).map((g) => g.data.panoIndex).forEach((g) => {
11531
- var v, b;
11532
- const p = (v = this.five.work.observers[g]) == null ? void 0 : v.floorIndex;
11531
+ var A, b;
11532
+ const p = (A = this.five.work.observers[g]) == null ? void 0 : A.floorIndex;
11533
11533
  if (p !== void 0)
11534
11534
  if (l === p) {
11535
11535
  const w = a.length - 1;
@@ -11539,7 +11539,7 @@ class Tl extends zt {
11539
11539
  const w = a.length;
11540
11540
  a[w] = [g];
11541
11541
  }
11542
- }), this.GuideLine || (this.GuideLine = xp(this.five, this.config)), (A = this.GuideLine) == null || A.load({ routes: a.map((g) => ({ panoIndexList: g })), config: r.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), n && this.setState(n, { userAction: o }), console.info(`${xi} loaded`, r), this.hooks.emit("dataLoaded", r);
11542
+ }), this.GuideLine || (this.GuideLine = xp(this.five, this.config)), (v = this.GuideLine) == null || v.load({ routes: a.map((g) => ({ panoIndexList: g })), config: r.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), n && this.setState(n, { userAction: o }), console.info(`${xi} loaded`, r), this.hooks.emit("dataLoaded", r);
11543
11543
  });
11544
11544
  }
11545
11545
  play(e) {
@@ -11604,14 +11604,14 @@ class Tl extends zt {
11604
11604
  const { moveEffect: r, moveToFirstPanoEffect: a, moveToFirstPanoDuration: l } = o;
11605
11605
  return this.privateState.moveToFirstPanoEffect = a, this.privateState.moveToFirstPanoDuration = l, o.panoIndexList.forEach((c, u) => {
11606
11606
  const d = (() => {
11607
- var p, v, b, w;
11607
+ var p, A, b, w;
11608
11608
  const h = o.panoIndexList.slice(u).find((E) => E !== c);
11609
11609
  if (h === void 0)
11610
11610
  return;
11611
- const f = (p = n[c]) == null ? void 0 : p.position, A = (v = n[h]) == null ? void 0 : v.position;
11612
- if (!A || !f || ((b = n[c]) == null ? void 0 : b.floorIndex) !== ((w = n[h]) == null ? void 0 : w.floorIndex))
11611
+ const f = (p = n[c]) == null ? void 0 : p.position, v = (A = n[h]) == null ? void 0 : A.position;
11612
+ if (!v || !f || ((b = n[c]) == null ? void 0 : b.floorIndex) !== ((w = n[h]) == null ? void 0 : w.floorIndex))
11613
11613
  return;
11614
- const g = new C.Vector3().subVectors(A, f);
11614
+ const g = new C.Vector3().subVectors(v, f);
11615
11615
  return Mp(g);
11616
11616
  })();
11617
11617
  o.moveType === void 0 || o.moveType === "justMove" ? s.push({
@@ -11656,13 +11656,13 @@ class Tl extends zt {
11656
11656
  (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (f = e == null ? void 0 : e.userAction) != null ? f : !0 });
11657
11657
  let u = !1;
11658
11658
  const h = yield (() => H(this, null, function* () {
11659
- var A, g;
11659
+ var v, g;
11660
11660
  if ((e == null ? void 0 : e.playFromIndex) !== void 0)
11661
11661
  return e.playFromIndex;
11662
11662
  if ((e == null ? void 0 : e.playFromId) !== void 0)
11663
- return (A = this.data) == null ? void 0 : A.keyframes.findIndex((p) => p.id === e.playFromId);
11663
+ return (v = this.data) == null ? void 0 : v.keyframes.findIndex((p) => p.id === e.playFromId);
11664
11664
  if (c != null && c.keyframeId) {
11665
- const p = (g = this.data) == null ? void 0 : g.keyframes.find((v) => v.id === c.keyframeId);
11665
+ const p = (g = this.data) == null ? void 0 : g.keyframes.find((A) => A.id === c.keyframeId);
11666
11666
  if (c != null && c.fiveState && (yield this.move(c.fiveState, {
11667
11667
  moveEffect: s.moveToFirstPanoEffect,
11668
11668
  duration: s.moveToFirstPanoDuration
@@ -11670,22 +11670,22 @@ class Tl extends zt {
11670
11670
  if (p.data.effect === "Move")
11671
11671
  return p.index;
11672
11672
  if (p.data.effect === "Rotate") {
11673
- const v = c.duration !== void 0 ? c.duration * (1 - c.playedProgress) : void 0;
11674
- return yield this.playKeyframe(p, { duration: v }), u = !0, p.index + 1;
11673
+ const A = c.duration !== void 0 ? c.duration * (1 - c.playedProgress) : void 0;
11674
+ return yield this.playKeyframe(p, { duration: A }), u = !0, p.index + 1;
11675
11675
  }
11676
11676
  }
11677
11677
  }
11678
11678
  }))();
11679
11679
  this.clearPauseData();
11680
- for (const A of l) {
11680
+ for (const v of l) {
11681
11681
  if (s.broke || !o.playing || !s.playing || a !== s.playId)
11682
11682
  return;
11683
- if (!(h !== void 0 && A.index < h))
11683
+ if (!(h !== void 0 && v.index < h))
11684
11684
  try {
11685
- r.emit("playIndexChange", A.index, A), yield this.playKeyframe(A, {
11685
+ r.emit("playIndexChange", v.index, v), yield this.playKeyframe(v, {
11686
11686
  moveEffect: u === !1 ? s.moveToFirstPanoEffect : void 0,
11687
11687
  duration: u === !1 && typeof s.moveToFirstPanoDuration == "number" ? s.moveToFirstPanoDuration : void 0
11688
- }), A.stay && (yield zp(A.stay)), u === !1 && (u = !0);
11688
+ }), v.stay && (yield zp(v.stay)), u === !1 && (u = !0);
11689
11689
  } catch (g) {
11690
11690
  return Promise.resolve("broke");
11691
11691
  }
@@ -11784,8 +11784,8 @@ class Tl extends zt {
11784
11784
  updateCamera(o) {
11785
11785
  return H(this, arguments, function* (e, n = {}) {
11786
11786
  const { five: s, privateState: r, state: a } = this, l = (() => {
11787
- var f, A;
11788
- const d = (f = a.config) == null ? void 0 : f.speedConfig, h = (A = e.rotateSpeed) != null ? A : d == null ? void 0 : d.rotateSpeed;
11787
+ var f, v;
11788
+ const d = (f = a.config) == null ? void 0 : f.speedConfig, h = (v = e.rotateSpeed) != null ? v : d == null ? void 0 : d.rotateSpeed;
11789
11789
  if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
11790
11790
  return h;
11791
11791
  if (h !== void 0)
@@ -12250,9 +12250,9 @@ class Bl {
12250
12250
  render() {
12251
12251
  if (!this.five.renderer || !this.containerDom)
12252
12252
  return;
12253
- const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new C.Vector2()), a = 1, l = n / t, c = o / t, u = a * t, d = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, f = this.five.getPixels(d - l / 2, h - l / 2, l, c, u), A = Math.floor(n * a), g = Math.floor(o * a);
12254
- Kp(f, A, g);
12255
- const p = new ImageData(A, g);
12253
+ const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new C.Vector2()), a = 1, l = n / t, c = o / t, u = a * t, d = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, f = this.five.getPixels(d - l / 2, h - l / 2, l, c, u), v = Math.floor(n * a), g = Math.floor(o * a);
12254
+ Kp(f, v, g);
12255
+ const p = new ImageData(v, g);
12256
12256
  p.data.set(f), e.putImageData(p, 0, 0);
12257
12257
  }
12258
12258
  initStyle() {
@@ -12825,23 +12825,14 @@ class hg extends ug {
12825
12825
  if (e === "fold" && s.unfoldedConfig.keep === "unfolded" || e === "unfold" && s.unfoldedConfig.keep === "folded")
12826
12826
  return !1;
12827
12827
  }
12828
+ if (e === "renderByMesh")
12829
+ if (Hp(o) || Ve(o)) {
12830
+ const r = o.data.mediaData;
12831
+ return r.length === 1 && r[0].type === "Image" && s.renderType === "Mesh";
12832
+ } else
12833
+ return !1;
12828
12834
  return !0;
12829
12835
  }
12830
- getRenderType(e) {
12831
- const n = this.getTagConfig(e);
12832
- if (!n || typeof n != "object" || !n.renderType)
12833
- return "Dom";
12834
- const o = e.data.mediaData;
12835
- if (!o || o.length === 0)
12836
- return "Dom";
12837
- if (n.renderType === "Mesh") {
12838
- if (Hp(e))
12839
- return o.length === 1 && o[0].type === "Image" ? "Mesh" : "Dom";
12840
- if (Ve(e))
12841
- return o.length === 1 && o[0].type === "Image" ? "Mesh" : "BehindDom";
12842
- } else
12843
- return "Dom";
12844
- }
12845
12836
  getAngle(e, n) {
12846
12837
  var r, a, l;
12847
12838
  const o = (r = this.five.panoIndex) != null ? r : n;
@@ -12961,7 +12952,7 @@ class hg extends ug {
12961
12952
  }
12962
12953
  get filterImagePlane() {
12963
12954
  return this.tags.filter(
12964
- (e) => e.contentType === "MediaPlane" && e.stickType === "Plane" && this.getRenderType(e) === "Mesh"
12955
+ (e) => e.contentType === "MediaPlane" && e.stickType === "Plane" && this.can("renderByMesh", e)
12965
12956
  );
12966
12957
  }
12967
12958
  get filterMediaModel() {
@@ -12970,11 +12961,8 @@ class hg extends ug {
12970
12961
  get filterModelTag() {
12971
12962
  return this.tags.filter((e) => e.stickType === "Model");
12972
12963
  }
12973
- get filterCSS3DTag() {
12974
- return this.tags.filter((n) => n.stickType === "3DPoint" || n.stickType === "Plane" || n.stickType === "Model").filter((n) => {
12975
- const o = this.getRenderType(n);
12976
- return o === "BehindDom" || o === "Dom";
12977
- });
12964
+ get filter3DTag() {
12965
+ return this.tags.filter((e) => e.stickType === "3DPoint" || e.stickType === "Plane" || e.stickType === "Model").filter((e) => !this.can("renderByMesh", e));
12978
12966
  }
12979
12967
  checkDisposed() {
12980
12968
  return this.store.disposed ? (console.error("PanoTagPluginController has been disposed"), !0) : !1;
@@ -13028,9 +13016,9 @@ class fg extends hg {
13028
13016
  const f = this.getRaycasterFromPanoIndex(e, s);
13029
13017
  if (!f)
13030
13018
  return { value: !1, reason: `intersectRaycaster check failed: raycaster is ${f}` };
13031
- const A = this.getTagEnableByIntersect(e, f);
13032
- if (A.value === !1)
13033
- return A;
13019
+ const v = this.getTagEnableByIntersect(e, f);
13020
+ if (v.value === !1)
13021
+ return v;
13034
13022
  }
13035
13023
  if (l.angleRange && Fp(e)) {
13036
13024
  const f = this.getAngle(e);
@@ -13130,14 +13118,14 @@ class fg extends hg {
13130
13118
  const f = this.getTagProject(h);
13131
13119
  if (!f)
13132
13120
  return !1;
13133
- const { x: A, y: g, z: p } = f;
13134
- return !(Math.abs(p) > 1 || Math.abs(A) > 1 || Math.abs(g) > 1);
13121
+ const { x: v, y: g, z: p } = f;
13122
+ return !(Math.abs(p) > 1 || Math.abs(v) > 1 || Math.abs(g) > 1);
13135
13123
  }).map((h) => ({ tag: h, id: h.id, tagConfig: this.getTagConfig(h).unfoldedConfig })).filter(({ tag: h, tagConfig: f }) => {
13136
- var A, g;
13137
- return !(typeof f != "object" || f.keep || f.autoUnfold === !1 || ((A = f.autoUnfold) == null ? void 0 : A.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance");
13124
+ var v, g;
13125
+ return !(typeof f != "object" || f.keep || f.autoUnfold === !1 || ((v = f.autoUnfold) == null ? void 0 : v.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance");
13138
13126
  }).map((h) => fe(Q({}, h), { distance: this.getDistance(h.tag) })).filter(({ distance: h, tagConfig: f }) => {
13139
- var A, g;
13140
- return !(h === void 0 || typeof f != "object" || f.autoUnfold === !1 || ((A = f.autoUnfold) == null ? void 0 : A.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance" || f.autoUnfold.distance && dn(h, f.autoUnfold.distance) === !1);
13127
+ var v, g;
13128
+ return !(h === void 0 || typeof f != "object" || f.autoUnfold === !1 || ((v = f.autoUnfold) == null ? void 0 : v.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance" || f.autoUnfold.distance && dn(h, f.autoUnfold.distance) === !1);
13141
13129
  }).sort((h, f) => h.distance - f.distance).findIndex((h) => h.id === e.id);
13142
13130
  if (u === -1 || u <= ((a = r.autoUnfold.maxNumber) != null ? a : 1) - 1 === !1)
13143
13131
  return !1;
@@ -13314,10 +13302,10 @@ function pg(i) {
13314
13302
  };
13315
13303
  }
13316
13304
  function gg(i, t, e) {
13317
- let n, o, s, r, { inDelay: a = 0 } = t, { outDelay: l = 0 } = t, { duration: c = 1e3 } = t, { unfolded: u } = t, { length: d } = t, { direction: h = "horizontal" } = t, { useLinearColor: f = !1 } = t, { color: A = "white" } = t;
13305
+ let n, o, s, r, { inDelay: a = 0 } = t, { outDelay: l = 0 } = t, { duration: c = 1e3 } = t, { unfolded: u } = t, { length: d } = t, { direction: h = "horizontal" } = t, { useLinearColor: f = !1 } = t, { color: v = "white" } = t;
13318
13306
  const g = Ge();
13319
13307
  return i.$$set = (p) => {
13320
- "inDelay" in p && e(0, a = p.inDelay), "outDelay" in p && e(1, l = p.outDelay), "duration" in p && e(2, c = p.duration), "unfolded" in p && e(3, u = p.unfolded), "length" in p && e(11, d = p.length), "direction" in p && e(12, h = p.direction), "useLinearColor" in p && e(4, f = p.useLinearColor), "color" in p && e(5, A = p.color);
13308
+ "inDelay" in p && e(0, a = p.inDelay), "outDelay" in p && e(1, l = p.outDelay), "duration" in p && e(2, c = p.duration), "unfolded" in p && e(3, u = p.unfolded), "length" in p && e(11, d = p.length), "direction" in p && e(12, h = p.direction), "useLinearColor" in p && e(4, f = p.useLinearColor), "color" in p && e(5, v = p.color);
13321
13309
  }, i.$$.update = () => {
13322
13310
  i.$$.dirty & 4096 && e(9, n = h === "vertical"), i.$$.dirty & 2048 && e(8, o = d), i.$$.dirty & 2048 && e(6, r = `M0.5 0.5 H ${d}`);
13323
13311
  }, e(7, s = 1), [
@@ -13326,7 +13314,7 @@ function gg(i, t, e) {
13326
13314
  c,
13327
13315
  u,
13328
13316
  f,
13329
- A,
13317
+ v,
13330
13318
  r,
13331
13319
  s,
13332
13320
  o,
@@ -13429,9 +13417,9 @@ function Ne(i) {
13429
13417
  return typeof i == "number" ? i / 16 + "rem" : i;
13430
13418
  }
13431
13419
  function bg(i, t, e) {
13432
- let { inDelay: n = 1e3 } = t, { outDelay: o = 1e3 } = t, { visible: s = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: u = !1 } = t, { horizontalCenter: d = !1 } = t, { verticalCenter: h = !1 } = t, { blurRadius: f } = t, { spreadRadius: A } = t, { opacity: g = 0.15 } = t, { zIndex: p = -1 } = t;
13433
- return i.$$set = (v) => {
13434
- "inDelay" in v && e(0, n = v.inDelay), "outDelay" in v && e(1, o = v.outDelay), "visible" in v && e(2, s = v.visible), "width" in v && e(3, r = v.width), "height" in v && e(4, a = v.height), "left" in v && e(5, l = v.left), "bottom" in v && e(6, c = v.bottom), "center" in v && e(7, u = v.center), "horizontalCenter" in v && e(8, d = v.horizontalCenter), "verticalCenter" in v && e(9, h = v.verticalCenter), "blurRadius" in v && e(10, f = v.blurRadius), "spreadRadius" in v && e(11, A = v.spreadRadius), "opacity" in v && e(12, g = v.opacity), "zIndex" in v && e(13, p = v.zIndex);
13420
+ let { inDelay: n = 1e3 } = t, { outDelay: o = 1e3 } = t, { visible: s = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: u = !1 } = t, { horizontalCenter: d = !1 } = t, { verticalCenter: h = !1 } = t, { blurRadius: f } = t, { spreadRadius: v } = t, { opacity: g = 0.15 } = t, { zIndex: p = -1 } = t;
13421
+ return i.$$set = (A) => {
13422
+ "inDelay" in A && e(0, n = A.inDelay), "outDelay" in A && e(1, o = A.outDelay), "visible" in A && e(2, s = A.visible), "width" in A && e(3, r = A.width), "height" in A && e(4, a = A.height), "left" in A && e(5, l = A.left), "bottom" in A && e(6, c = A.bottom), "center" in A && e(7, u = A.center), "horizontalCenter" in A && e(8, d = A.horizontalCenter), "verticalCenter" in A && e(9, h = A.verticalCenter), "blurRadius" in A && e(10, f = A.blurRadius), "spreadRadius" in A && e(11, v = A.spreadRadius), "opacity" in A && e(12, g = A.opacity), "zIndex" in A && e(13, p = A.zIndex);
13435
13423
  }, [
13436
13424
  n,
13437
13425
  o,
@@ -13444,7 +13432,7 @@ function bg(i, t, e) {
13444
13432
  d,
13445
13433
  h,
13446
13434
  f,
13447
- A,
13435
+ v,
13448
13436
  g,
13449
13437
  p
13450
13438
  ];
@@ -13580,7 +13568,7 @@ function Pg(i) {
13580
13568
  function Ig(i, t, e) {
13581
13569
  let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
13582
13570
  const c = `__EMOJI_SPLIT_${Wi}__`, u = `__EMOJI_${Wi}__`, d = `__SPACE_${Wi}__`;
13583
- let h, f, A = [];
13571
+ let h, f, v = [];
13584
13572
  function g(L) {
13585
13573
  const I = [], D = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
13586
13574
  return L.slice().replace(D, (k) => `${c}${u}${k}${c}`).split(c).forEach((k) => k.startsWith(u) ? I.push({
@@ -13594,7 +13582,7 @@ function Ig(i, t, e) {
13594
13582
  const L = !a;
13595
13583
  f.reversed !== L && f.reverse(), f.play();
13596
13584
  }
13597
- function v(L) {
13585
+ function A(L) {
13598
13586
  if (l) {
13599
13587
  e(4, l = !1);
13600
13588
  return;
@@ -13622,21 +13610,21 @@ function Ig(i, t, e) {
13622
13610
  }
13623
13611
  function w(L, I) {
13624
13612
  Oe[L ? "unshift" : "push"](() => {
13625
- A[I] = L, e(1, A);
13613
+ v[I] = L, e(1, v);
13626
13614
  });
13627
13615
  }
13628
13616
  function E(L, I) {
13629
13617
  Oe[L ? "unshift" : "push"](() => {
13630
- A[I] = L, e(1, A);
13618
+ v[I] = L, e(1, v);
13631
13619
  });
13632
13620
  }
13633
13621
  return i.$$set = (L) => {
13634
13622
  "inDelay" in L && e(5, o = L.inDelay), "outDelay" in L && e(6, s = L.outDelay), "content" in L && e(0, r = L.content), "unfolded" in L && e(7, a = L.unfolded), "isFistUnfoldedUpdate" in L && e(4, l = L.isFistUnfoldedUpdate);
13635
13623
  }, i.$$.update = () => {
13636
- i.$$.dirty & 1 && e(2, n = g(r)), i.$$.dirty & 128 && v(a), i.$$.dirty & 2 && b(A.filter((L) => !!L));
13624
+ i.$$.dirty & 1 && e(2, n = g(r)), i.$$.dirty & 128 && A(a), i.$$.dirty & 2 && b(v.filter((L) => !!L));
13637
13625
  }, [
13638
13626
  r,
13639
- A,
13627
+ v,
13640
13628
  n,
13641
13629
  d,
13642
13630
  l,
@@ -13865,19 +13853,19 @@ function Vg(i) {
13865
13853
  }
13866
13854
  function Og(i, t, e) {
13867
13855
  let n, o, s, { visible: r = !1 } = t, { textUnfolded: a = !1 } = t, { content: l } = t, c, u = 0, d = 0, h = 0;
13868
- function f(A) {
13869
- Oe[A ? "unshift" : "push"](() => {
13870
- c = A, e(2, c);
13856
+ function f(v) {
13857
+ Oe[v ? "unshift" : "push"](() => {
13858
+ c = v, e(2, c);
13871
13859
  });
13872
13860
  }
13873
- return i.$$set = (A) => {
13874
- "visible" in A && e(0, r = A.visible), "textUnfolded" in A && e(8, a = A.textUnfolded), "content" in A && e(1, l = A.content);
13861
+ return i.$$set = (v) => {
13862
+ "visible" in v && e(0, r = v.visible), "textUnfolded" in v && e(8, a = v.textUnfolded), "content" in v && e(1, l = v.content);
13875
13863
  }, i.$$.update = () => {
13876
13864
  if (i.$$.dirty & 7 && c && r && l) {
13877
- const { lineHeight: A } = getComputedStyle(c);
13865
+ const { lineHeight: v } = getComputedStyle(c);
13878
13866
  e(4, h = c.offsetHeight), Bg(() => c == null ? void 0 : c.offsetHeight, Boolean).then(() => {
13879
13867
  e(4, h = c.offsetHeight);
13880
- }), e(3, d = Number(A.replace("px", "")));
13868
+ }), e(3, d = Number(v.replace("px", "")));
13881
13869
  }
13882
13870
  i.$$.dirty & 280 && e(9, u = a ? d - h : 0), i.$$.dirty & 512 && e(7, n = `translateY(${u}px)`), i.$$.dirty & 256 && e(6, o = a ? "left" : "right"), i.$$.dirty & 256 && e(5, s = a ? 450 : 0);
13883
13871
  }, [
@@ -13939,11 +13927,11 @@ function br(i) {
13939
13927
  ], l = !0);
13940
13928
  },
13941
13929
  p(h, f) {
13942
- var v, b;
13943
- const A = {};
13944
- f & 4 && (A.visible = h[2]), f & 8 && (A.left = h[3] / 2 + "px"), t.$set(A);
13930
+ var A, b;
13931
+ const v = {};
13932
+ f & 4 && (v.visible = h[2]), f & 8 && (v.left = h[3] / 2 + "px"), t.$set(v);
13945
13933
  const g = {};
13946
- f & 4 && (g.unfolded = h[2]), f & 8 && (g.length = h[3]), f & 16 && (g.outDelay = h[4] + 40 * Math.min((b = (v = h[6][0]) == null ? void 0 : v.content.length) != null ? b : 10, 15)), n.$set(g);
13934
+ f & 4 && (g.unfolded = h[2]), f & 8 && (g.length = h[3]), f & 16 && (g.outDelay = h[4] + 40 * Math.min((b = (A = h[6][0]) == null ? void 0 : A.content.length) != null ? b : 10, 15)), n.$set(g);
13947
13935
  const p = {};
13948
13936
  f & 4 && (p.visible = h[2]), f & 2 && (p.textUnfolded = h[1]), f & 32 && (p.content = h[5]), r.$set(p);
13949
13937
  },
@@ -13994,8 +13982,8 @@ function Fg(i, t, e) {
13994
13982
  return i.$$set = (h) => {
13995
13983
  "tag" in h && e(0, r = h.tag);
13996
13984
  }, i.$$.update = () => {
13997
- var h, f, A;
13998
- i.$$.dirty & 1 && e(2, n = !!((h = r.state) != null && h.unfolded)), i.$$.dirty & 1 && e(5, o = (A = (f = r.data.title) != null ? f : r.data.text) != null ? A : ""), i.$$.dirty & 4 && (n || setTimeout(
13985
+ var h, f, v;
13986
+ i.$$.dirty & 1 && e(2, n = !!((h = r.state) != null && h.unfolded)), i.$$.dirty & 1 && e(5, o = (v = (f = r.data.title) != null ? f : r.data.text) != null ? v : ""), i.$$.dirty & 4 && (n || setTimeout(
13999
13987
  () => {
14000
13988
  e(1, l = !1);
14001
13989
  },
@@ -14208,17 +14196,17 @@ function Er(i) {
14208
14196
  c() {
14209
14197
  K(t.$$.fragment), e = $(), n = z("div"), o = z("div"), s = z("div"), r = z("div"), K(a.$$.fragment), l = $(), u && u.c(), y(r, "class", "title svelte-1oxrkr1"), y(s, "class", "plane svelte-1oxrkr1"), y(o, "class", "plane__wrapper svelte-1oxrkr1"), T(o, "transform", i[1] ? "translateY(-15px)" : "translateY(0)"), y(n, "class", "plane__container svelte-1oxrkr1"), q(n, "unfolded", i[1]), q(n, "folded", i[3]);
14210
14198
  },
14211
- m(f, A) {
14212
- J(t, f, A), M(f, e, A), M(f, n, A), j(n, o), j(o, s), j(s, r), J(a, r, null), j(s, l), u && u.m(s, null), c = !0;
14199
+ m(f, v) {
14200
+ J(t, f, v), M(f, e, v), M(f, n, v), j(n, o), j(o, s), j(s, r), J(a, r, null), j(s, l), u && u.m(s, null), c = !0;
14213
14201
  },
14214
- p(f, A) {
14215
- var v, b;
14202
+ p(f, v) {
14203
+ var A, b;
14216
14204
  const g = {};
14217
- A & 2 && (g.unfolded = f[1]), t.$set(g);
14205
+ v & 2 && (g.unfolded = f[1]), t.$set(g);
14218
14206
  const p = {};
14219
- A & 4 && (p.text = f[2]), A & 1 && (p.edit = (v = f[0].data.edit) == null ? void 0 : v.title), a.$set(p), f[0].data.description || ((b = f[0].data.edit) == null ? void 0 : b.description) ? u ? (u.p(f, A), A & 1 && P(u, 1)) : (u = Cr(f), u.c(), P(u, 1), u.m(s, null)) : u && (se(), x(u, 1, 1, () => {
14207
+ v & 4 && (p.text = f[2]), v & 1 && (p.edit = (A = f[0].data.edit) == null ? void 0 : A.title), a.$set(p), f[0].data.description || ((b = f[0].data.edit) == null ? void 0 : b.description) ? u ? (u.p(f, v), v & 1 && P(u, 1)) : (u = Cr(f), u.c(), P(u, 1), u.m(s, null)) : u && (se(), x(u, 1, 1, () => {
14220
14208
  u = null;
14221
- }), re()), A & 2 && T(o, "transform", f[1] ? "translateY(-15px)" : "translateY(0)"), (!c || A & 2) && q(n, "unfolded", f[1]), (!c || A & 8) && q(n, "folded", f[3]);
14209
+ }), re()), v & 2 && T(o, "transform", f[1] ? "translateY(-15px)" : "translateY(0)"), (!c || v & 2) && q(n, "unfolded", f[1]), (!c || v & 8) && q(n, "folded", f[3]);
14222
14210
  },
14223
14211
  i(f) {
14224
14212
  c || (P(t.$$.fragment, f), P(a.$$.fragment, f), P(u), c = !0);
@@ -14745,8 +14733,8 @@ function S0(i, { thresholdProvider: t }) {
14745
14733
  function u(h) {
14746
14734
  if (!a)
14747
14735
  return;
14748
- const f = _i(h), A = f.x - n, g = f.y - o;
14749
- n = f.x, o = f.y, e("swipeMove", { x: n, y: o, dx: A, dy: g }), A !== 0 && Math.sign(A) !== Math.sign(s) && (s = 0), s += A, Math.abs(s) > t() && (e("swipeThresholdReached", { direction: s > 0 ? Jt : Et }), Dr(window, d), Lr(window, u));
14736
+ const f = _i(h), v = f.x - n, g = f.y - o;
14737
+ n = f.x, o = f.y, e("swipeMove", { x: n, y: o, dx: v, dy: g }), v !== 0 && Math.sign(v) !== Math.sign(s) && (s = 0), s += v, Math.abs(s) > t() && (e("swipeThresholdReached", { direction: s > 0 ? Jt : Et }), Dr(window, d), Lr(window, u));
14750
14738
  }
14751
14739
  function d(h) {
14752
14740
  if (Dr(window, d), Lr(window, u), a = !1, !l()) {
@@ -15081,25 +15069,25 @@ function iA(i, t) {
15081
15069
  data: d,
15082
15070
  methods: h
15083
15071
  });
15084
- let A = !1;
15085
- const g = (v) => (...b) => {
15086
- A = !0;
15087
- const w = v(...b);
15088
- return A = !1, w;
15089
- };
15090
- Object.entries(o).forEach(([v, b]) => {
15091
- h[v] = g(
15072
+ let v = !1;
15073
+ const g = (A) => (...b) => {
15074
+ v = !0;
15075
+ const w = A(...b);
15076
+ return v = !1, w;
15077
+ };
15078
+ Object.entries(o).forEach(([A, b]) => {
15079
+ h[A] = g(
15092
15080
  (...w) => b(f(), ...w)
15093
- ), Object.defineProperty(h[v], "name", { value: v });
15081
+ ), Object.defineProperty(h[A], "name", { value: A });
15094
15082
  }), d = new Proxy(Sc(e), {
15095
- get(v, b) {
15096
- return u() && !A && r(u(), { prop: b, value: v[b] }), Reflect.get(...arguments);
15083
+ get(A, b) {
15084
+ return u() && !v && r(u(), { prop: b, value: A[b] }), Reflect.get(...arguments);
15097
15085
  },
15098
- set(v, b, w) {
15099
- return v[b] === w || (Reflect.set(...arguments), u() || (s && s(b, w), a(d, b))), !0;
15086
+ set(A, b, w) {
15087
+ return A[b] === w || (Reflect.set(...arguments), u() || (s && s(b, w), a(d, b))), !0;
15100
15088
  }
15101
- }), Object.entries(n).forEach(([v, b]) => {
15102
- c(v, () => {
15089
+ }), Object.entries(n).forEach(([A, b]) => {
15090
+ c(A, () => {
15103
15091
  b(f());
15104
15092
  });
15105
15093
  });
@@ -15652,14 +15640,14 @@ function AA(i) {
15652
15640
  }
15653
15641
  function vA(i) {
15654
15642
  let t, e, n, o, s, r, a, l, c, u, d, h, f = i[1] && Or(i);
15655
- const A = i[37].default, g = $t(A, i, i[36], jr);
15656
- let p = i[3] && Qr(i), v = i[1] && Rr(i), b = i[4] && Fr(i);
15643
+ const v = i[37].default, g = $t(v, i, i[36], jr);
15644
+ let p = i[3] && Qr(i), A = i[1] && Rr(i), b = i[4] && Fr(i);
15657
15645
  return {
15658
15646
  c() {
15659
- t = z("div"), e = z("div"), f && f.c(), n = $(), o = z("div"), s = z("div"), g && g.c(), a = $(), p && p.c(), l = $(), v && v.c(), c = $(), b && b.c(), y(s, "class", "sc-carousel__pages-container svelte-sme1z4"), T(s, "transform", "translateX(" + i[8] + "px)"), T(s, "transition-duration", i[9] + "ms"), T(s, "transition-timing-function", i[0]), y(o, "class", "sc-carousel__pages-window svelte-sme1z4"), y(e, "class", "sc-carousel__content-container svelte-sme1z4"), y(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
15647
+ t = z("div"), e = z("div"), f && f.c(), n = $(), o = z("div"), s = z("div"), g && g.c(), a = $(), p && p.c(), l = $(), A && A.c(), c = $(), b && b.c(), y(s, "class", "sc-carousel__pages-container svelte-sme1z4"), T(s, "transform", "translateX(" + i[8] + "px)"), T(s, "transition-duration", i[9] + "ms"), T(s, "transition-timing-function", i[0]), y(o, "class", "sc-carousel__pages-window svelte-sme1z4"), y(e, "class", "sc-carousel__content-container svelte-sme1z4"), y(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
15660
15648
  },
15661
15649
  m(w, E) {
15662
- M(w, t, E), j(t, e), f && f.m(e, null), j(e, n), j(e, o), j(o, s), g && g.m(s, null), i[39](s), j(o, a), p && p.m(o, null), i[40](o), j(e, l), v && v.m(e, null), j(t, c), b && b.m(t, null), u = !0, d || (h = [
15650
+ M(w, t, E), j(t, e), f && f.m(e, null), j(e, n), j(e, o), j(o, s), g && g.m(s, null), i[39](s), j(o, a), p && p.m(o, null), i[40](o), j(e, l), A && A.m(e, null), j(t, c), b && b.m(t, null), u = !0, d || (h = [
15663
15651
  ct(r = S0.call(null, s, {
15664
15652
  thresholdProvider: i[38]
15665
15653
  })),
@@ -15679,35 +15667,35 @@ function vA(i) {
15679
15667
  f = null;
15680
15668
  }), re()), g && g.p && (!u || E[0] & 96 | E[1] & 32) && tn(
15681
15669
  g,
15682
- A,
15670
+ v,
15683
15671
  w,
15684
15672
  w[36],
15685
- u ? en(A, w[36], E, fA) : nn(w[36]),
15673
+ u ? en(v, w[36], E, fA) : nn(w[36]),
15686
15674
  jr
15687
15675
  ), (!u || E[0] & 256) && T(s, "transform", "translateX(" + w[8] + "px)"), (!u || E[0] & 512) && T(s, "transition-duration", w[9] + "ms"), (!u || E[0] & 1) && T(s, "transition-timing-function", w[0]), r && Kt(r.update) && E[0] & 2048 && r.update.call(null, {
15688
15676
  thresholdProvider: w[38]
15689
15677
  }), w[3] ? p ? (p.p(w, E), E[0] & 8 && P(p, 1)) : (p = Qr(w), p.c(), P(p, 1), p.m(o, null)) : p && (se(), x(p, 1, 1, () => {
15690
15678
  p = null;
15691
- }), re()), w[1] ? v ? (v.p(w, E), E[0] & 2 && P(v, 1)) : (v = Rr(w), v.c(), P(v, 1), v.m(e, null)) : v && (se(), x(v, 1, 1, () => {
15692
- v = null;
15679
+ }), re()), w[1] ? A ? (A.p(w, E), E[0] & 2 && P(A, 1)) : (A = Rr(w), A.c(), P(A, 1), A.m(e, null)) : A && (se(), x(A, 1, 1, () => {
15680
+ A = null;
15693
15681
  }), re()), w[4] ? b ? (b.p(w, E), E[0] & 16 && P(b, 1)) : (b = Fr(w), b.c(), P(b, 1), b.m(t, null)) : b && (se(), x(b, 1, 1, () => {
15694
15682
  b = null;
15695
15683
  }), re());
15696
15684
  },
15697
15685
  i(w) {
15698
- u || (P(f), P(g, w), P(p), P(v), P(b), u = !0);
15686
+ u || (P(f), P(g, w), P(p), P(A), P(b), u = !0);
15699
15687
  },
15700
15688
  o(w) {
15701
- x(f), x(g, w), x(p), x(v), x(b), u = !1;
15689
+ x(f), x(g, w), x(p), x(A), x(b), u = !1;
15702
15690
  },
15703
15691
  d(w) {
15704
- w && S(t), f && f.d(), g && g.d(w), i[39](null), p && p.d(), i[40](null), v && v.d(), b && b.d(), d = !1, He(h);
15692
+ w && S(t), f && f.d(), g && g.d(w), i[39](null), p && p.d(), i[40](null), A && A.d(), b && b.d(), d = !1, He(h);
15705
15693
  }
15706
15694
  };
15707
15695
  }
15708
15696
  function bA(i, t, e) {
15709
15697
  let { $$slots: n = {}, $$scope: o } = t, s = [], r, a, l = 0, c = 0, u = 1;
15710
- const [{ data: d, progressManager: h }, f, A] = cA((te, ve) => {
15698
+ const [{ data: d, progressManager: h }, f, v] = cA((te, ve) => {
15711
15699
  ho({
15712
15700
  currentPageIndex: () => e(5, r = ve),
15713
15701
  progressValue: () => e(7, a = ve),
@@ -15717,7 +15705,7 @@ function bA(i, t, e) {
15717
15705
  loaded: () => e(6, s = ve)
15718
15706
  })(te);
15719
15707
  }), g = yi();
15720
- let { timingFunction: p = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: E = 500 } = t, { autoplay: L = !1 } = t, { autoplayDuration: I = 3e3 } = t, { autoplayDirection: D = Et } = t, { pauseOnFocus: k = !1 } = t, { autoplayProgressVisible: V = !1 } = t, { dots: _ = !0 } = t, { swiping: O = !0 } = t, { particlesToShow: F = 1 } = t, { particlesToScroll: B = 1 } = t;
15708
+ let { timingFunction: p = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: E = 500 } = t, { autoplay: L = !1 } = t, { autoplayDuration: I = 3e3 } = t, { autoplayDirection: D = Et } = t, { pauseOnFocus: k = !1 } = t, { autoplayProgressVisible: V = !1 } = t, { dots: _ = !0 } = t, { swiping: O = !0 } = t, { particlesToShow: F = 1 } = t, { particlesToScroll: B = 1 } = t;
15721
15709
  function R(te, ve) {
15722
15710
  return H(this, null, function* () {
15723
15711
  const Be = wn(ve, "animated", !0);
@@ -15813,12 +15801,12 @@ function bA(i, t, e) {
15813
15801
  }
15814
15802
  const $e = (te) => de(te.detail);
15815
15803
  return i.$$set = (te) => {
15816
- "timingFunction" in te && e(0, p = te.timingFunction), "arrows" in te && e(1, v = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, E = te.duration), "autoplay" in te && e(26, L = te.autoplay), "autoplayDuration" in te && e(27, I = te.autoplayDuration), "autoplayDirection" in te && e(28, D = te.autoplayDirection), "pauseOnFocus" in te && e(29, k = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, V = te.autoplayProgressVisible), "dots" in te && e(4, _ = te.dots), "swiping" in te && e(30, O = te.swiping), "particlesToShow" in te && e(31, F = te.particlesToShow), "particlesToScroll" in te && e(32, B = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
15804
+ "timingFunction" in te && e(0, p = te.timingFunction), "arrows" in te && e(1, A = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, E = te.duration), "autoplay" in te && e(26, L = te.autoplay), "autoplayDuration" in te && e(27, I = te.autoplayDuration), "autoplayDirection" in te && e(28, D = te.autoplayDirection), "pauseOnFocus" in te && e(29, k = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, V = te.autoplayProgressVisible), "dots" in te && e(4, _ = te.dots), "swiping" in te && e(30, O = te.swiping), "particlesToShow" in te && e(31, F = te.particlesToShow), "particlesToScroll" in te && e(32, B = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
15817
15805
  }, i.$$.update = () => {
15818
15806
  i.$$.dirty[0] & 32 && g("pageChange", r), i.$$.dirty[0] & 4 && (d.infinite = b), i.$$.dirty[0] & 33554432 && (d.durationMsInit = E), i.$$.dirty[0] & 67108864 && (d.autoplay = L), i.$$.dirty[0] & 134217728 && (d.autoplayDuration = I), i.$$.dirty[0] & 268435456 && (d.autoplayDirection = D), i.$$.dirty[0] & 536870912 && (d.pauseOnFocus = k), i.$$.dirty[1] & 1 && (d.particlesToShowInit = F), i.$$.dirty[1] & 2 && (d.particlesToScrollInit = B);
15819
15807
  }, [
15820
15808
  p,
15821
- v,
15809
+ A,
15822
15810
  b,
15823
15811
  V,
15824
15812
  _,
@@ -16025,27 +16013,27 @@ function kA(i) {
16025
16013
  };
16026
16014
  }
16027
16015
  function xA(i, t, e) {
16028
- let n, o, { mediaInstance: s = { videoInstance: void 0, paused: !0 } } = t, { tag: r } = t, { media: a } = t, { playButtonIfNeed: l = "withoutText" } = t, { playButtonSizeIfNeed: c = "small" } = t, { canPlay: u = !0 } = t, { objectFit: d = "fill" } = t, { disableVideoIfHavePoster: h = !1 } = t, f = !0, A = !1;
16016
+ let n, o, { mediaInstance: s = { videoInstance: void 0, paused: !0 } } = t, { tag: r } = t, { media: a } = t, { playButtonIfNeed: l = "withoutText" } = t, { playButtonSizeIfNeed: c = "small" } = t, { canPlay: u = !0 } = t, { objectFit: d = "fill" } = t, { disableVideoIfHavePoster: h = !1 } = t, f = !0, v = !1;
16029
16017
  function g() {
16030
- e(12, A = (a == null ? void 0 : a.type) === "Video" && Boolean(a.videoCoverUrl));
16018
+ e(12, v = (a == null ? void 0 : a.type) === "Video" && Boolean(a.videoCoverUrl));
16031
16019
  }
16032
- const p = vt("mediaStore"), v = vt("hooks"), b = () => {
16033
- A || !n || (n.play(), n.pause(), e(12, A = !0));
16020
+ const p = vt("mediaStore"), A = vt("hooks"), b = () => {
16021
+ v || !n || (n.play(), n.pause(), e(12, v = !0));
16034
16022
  };
16035
- v.on("loadVideoFirstFrame", b), Ze(() => {
16023
+ A.on("loadVideoFirstFrame", b), Ze(() => {
16036
16024
  p.subscribe(({ currentMediaElement: V }) => {
16037
16025
  V !== n && (n == null || n.pause());
16038
16026
  });
16039
16027
  });
16040
16028
  const w = (V) => {
16041
- e(9, f = !1), e(0, s.paused = !1, s), n && p.set({ currentMediaElement: n }), v.emit("playStateChange", {
16029
+ e(9, f = !1), e(0, s.paused = !1, s), n && p.set({ currentMediaElement: n }), A.emit("playStateChange", {
16042
16030
  event: V,
16043
16031
  state: "playing",
16044
16032
  tag: r,
16045
16033
  mediaInstance: n
16046
16034
  });
16047
16035
  }, E = (V) => {
16048
- e(9, f = !0), e(0, s.paused = !0, s), v.emit("playStateChange", {
16036
+ e(9, f = !0), e(0, s.paused = !0, s), A.emit("playStateChange", {
16049
16037
  event: V,
16050
16038
  state: "paused",
16051
16039
  tag: r,
@@ -16065,7 +16053,7 @@ function xA(i, t, e) {
16065
16053
  return i.$$set = (V) => {
16066
16054
  "mediaInstance" in V && e(0, s = V.mediaInstance), "tag" in V && e(1, r = V.tag), "media" in V && e(2, a = V.media), "playButtonIfNeed" in V && e(3, l = V.playButtonIfNeed), "playButtonSizeIfNeed" in V && e(4, c = V.playButtonSizeIfNeed), "canPlay" in V && e(5, u = V.canPlay), "objectFit" in V && e(6, d = V.objectFit), "disableVideoIfHavePoster" in V && e(7, h = V.disableVideoIfHavePoster);
16067
16055
  }, i.$$.update = () => {
16068
- if (i.$$.dirty & 1 && e(8, n = s.videoInstance), i.$$.dirty & 4 && e(13, o = a == null ? void 0 : a.url), i.$$.dirty & 8192 && Boolean(o) && g(), i.$$.dirty & 256 && n && e(9, f = n.paused), i.$$.dirty & 4356 && (a == null ? void 0 : a.type) === "Video" && !A) {
16056
+ if (i.$$.dirty & 1 && e(8, n = s.videoInstance), i.$$.dirty & 4 && e(13, o = a == null ? void 0 : a.url), i.$$.dirty & 8192 && Boolean(o) && g(), i.$$.dirty & 256 && n && e(9, f = n.paused), i.$$.dirty & 4356 && (a == null ? void 0 : a.type) === "Video" && !v) {
16069
16057
  const V = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, O = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && V;
16070
16058
  n && O && n.paused && (document.removeEventListener("WeixinJSBridgeReady", b), document.removeEventListener("touchstart", b), document.removeEventListener("click", b), document.addEventListener("WeixinJSBridgeReady", b), document.addEventListener("touchstart", b), document.addEventListener("click", b));
16071
16059
  }
@@ -16081,8 +16069,8 @@ function xA(i, t, e) {
16081
16069
  n,
16082
16070
  f,
16083
16071
  p,
16084
- v,
16085
16072
  A,
16073
+ v,
16086
16074
  o,
16087
16075
  w,
16088
16076
  E,
@@ -16344,11 +16332,11 @@ function TA(i) {
16344
16332
  };
16345
16333
  }
16346
16334
  function zA(i, t, e) {
16347
- let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: d = 0 } = t, { unfolded: h = !0 } = t, { animation: f = !0 } = t, { mediaItemConfig: A } = t, { enableCarousel: g = !0 } = t, { autoplayConfig: p = { autoplay: !0, autoplayVideo: !1 } } = t, v = [], b = 0, w, E = null;
16335
+ let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: d = 0 } = t, { unfolded: h = !0 } = t, { animation: f = !0 } = t, { mediaItemConfig: v } = t, { enableCarousel: g = !0 } = t, { autoplayConfig: p = { autoplay: !0, autoplayVideo: !1 } } = t, A = [], b = 0, w, E = null;
16348
16336
  const L = vt("hooks"), I = vt("mediaStore");
16349
16337
  function D() {
16350
16338
  var F, B;
16351
- const O = v[b];
16339
+ const O = A[b];
16352
16340
  !O || (O.paused ? (F = O.videoInstance) == null || F.play() : (B = O.videoInstance) == null || B.pause());
16353
16341
  }
16354
16342
  Ze(() => {
@@ -16362,7 +16350,7 @@ function zA(i, t, e) {
16362
16350
  clearInterval(E), L.off("click", D);
16363
16351
  });
16364
16352
  function k(O, F) {
16365
- i.$$.not_equal(v[F], O) && (v[F] = O, e(8, v));
16353
+ i.$$.not_equal(A[F], O) && (A[F] = O, e(8, A));
16366
16354
  }
16367
16355
  function V(O) {
16368
16356
  Oe[O ? "unshift" : "push"](() => {
@@ -16373,9 +16361,9 @@ function zA(i, t, e) {
16373
16361
  n || I.set({ currentMediaElement: null }), e(11, b = O.detail);
16374
16362
  };
16375
16363
  return i.$$set = (O) => {
16376
- "tag" in O && e(0, a = O.tag), "mediaData" in O && e(1, l = O.mediaData), "inDelay" in O && e(2, c = O.inDelay), "outDelay" in O && e(3, u = O.outDelay), "duration" in O && e(4, d = O.duration), "unfolded" in O && e(5, h = O.unfolded), "animation" in O && e(6, f = O.animation), "mediaItemConfig" in O && e(7, A = O.mediaItemConfig), "enableCarousel" in O && e(15, g = O.enableCarousel), "autoplayConfig" in O && e(16, p = O.autoplayConfig);
16364
+ "tag" in O && e(0, a = O.tag), "mediaData" in O && e(1, l = O.mediaData), "inDelay" in O && e(2, c = O.inDelay), "outDelay" in O && e(3, u = O.outDelay), "duration" in O && e(4, d = O.duration), "unfolded" in O && e(5, h = O.unfolded), "animation" in O && e(6, f = O.animation), "mediaItemConfig" in O && e(7, v = O.mediaItemConfig), "enableCarousel" in O && e(15, g = O.enableCarousel), "autoplayConfig" in O && e(16, p = O.autoplayConfig);
16377
16365
  }, i.$$.update = () => {
16378
- i.$$.dirty & 256 && e(9, n = v.every((O) => O.paused)), i.$$.dirty & 32770 && e(13, o = g && (l == null ? void 0 : l.length) > 1), i.$$.dirty & 2 && e(10, s = l), i.$$.dirty & 67072 && (r = s.length > 1 && p.autoplay && n);
16366
+ i.$$.dirty & 256 && e(9, n = A.every((O) => O.paused)), i.$$.dirty & 32770 && e(13, o = g && (l == null ? void 0 : l.length) > 1), i.$$.dirty & 2 && e(10, s = l), i.$$.dirty & 67072 && (r = s.length > 1 && p.autoplay && n);
16379
16367
  }, [
16380
16368
  a,
16381
16369
  l,
@@ -16384,8 +16372,8 @@ function zA(i, t, e) {
16384
16372
  d,
16385
16373
  h,
16386
16374
  f,
16387
- A,
16388
16375
  v,
16376
+ A,
16389
16377
  n,
16390
16378
  s,
16391
16379
  b,
@@ -16454,8 +16442,8 @@ function Nr(i) {
16454
16442
  p(d, h) {
16455
16443
  const f = {};
16456
16444
  h & 8 && (f.visible = d[3]), t.$set(f);
16457
- const A = {};
16458
- h & 8 && (A.unfolded = d[3]), o.$set(A), d[2] ? c ? (c.p(d, h), h & 4 && P(c, 1)) : (c = Xr(d), c.c(), P(c, 1), c.m(r.parentNode, r)) : c && (se(), x(c, 1, 1, () => {
16445
+ const v = {};
16446
+ h & 8 && (v.unfolded = d[3]), o.$set(v), d[2] ? c ? (c.p(d, h), h & 4 && P(c, 1)) : (c = Xr(d), c.c(), P(c, 1), c.m(r.parentNode, r)) : c && (se(), x(c, 1, 1, () => {
16459
16447
  c = null;
16460
16448
  }), re()), d[1] ? u ? (u.p(d, h), h & 2 && P(u, 1)) : (u = Yr(d), u.c(), P(u, 1), u.m(a.parentNode, a)) : u && (se(), x(u, 1, 1, () => {
16461
16449
  u = null;
@@ -16767,7 +16755,7 @@ function ia(i) {
16767
16755
  }
16768
16756
  function RA(i) {
16769
16757
  var E, L;
16770
- let t, e, n, o, s, r, a, l, c, u, d = i[3].title + "", h, f, A, g, p;
16758
+ let t, e, n, o, s, r, a, l, c, u, d = i[3].title + "", h, f, v, g, p;
16771
16759
  e = new st({
16772
16760
  props: {
16773
16761
  visible: i[4],
@@ -16778,18 +16766,18 @@ function RA(i) {
16778
16766
  spreadRadius: 75
16779
16767
  }
16780
16768
  });
16781
- let v = i[3].headerPictureUrl && Jr(i), b = ((E = i[2].length) != null ? E : 0) + ((L = i[5].length) != null ? L : 0) > 0 && Zr(i), w = (i[7] || i[3].highlightText) && ea(i);
16769
+ let A = i[3].headerPictureUrl && Jr(i), b = ((E = i[2].length) != null ? E : 0) + ((L = i[5].length) != null ? L : 0) > 0 && Zr(i), w = (i[7] || i[3].highlightText) && ea(i);
16782
16770
  return {
16783
16771
  c() {
16784
- t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = $(), r = z("div"), v && v.c(), a = $(), l = z("div"), c = z("div"), u = z("div"), h = Ie(d), f = $(), b && b.c(), A = $(), w && w.c(), y(o, "class", "line svelte-sezqcq"), T(o, "transition-delay", i[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), y(u, "class", "text svelte-sezqcq"), y(c, "class", "title svelte-sezqcq"), y(l, "class", "title-wrapper svelte-sezqcq"), y(r, "class", "content svelte-sezqcq"), T(r, "max-width", it(i[9])), T(r, "transition-delay", i[4] ? $n + ei + "ms" : "0ms"), y(t, "class", g = Me(`marketing ${i[6]}`) + " svelte-sezqcq"), q(t, "unfolded", i[4]), q(t, "folded", i[8]);
16772
+ t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = $(), r = z("div"), A && A.c(), a = $(), l = z("div"), c = z("div"), u = z("div"), h = Ie(d), f = $(), b && b.c(), v = $(), w && w.c(), y(o, "class", "line svelte-sezqcq"), T(o, "transition-delay", i[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), y(u, "class", "text svelte-sezqcq"), y(c, "class", "title svelte-sezqcq"), y(l, "class", "title-wrapper svelte-sezqcq"), y(r, "class", "content svelte-sezqcq"), T(r, "max-width", it(i[9])), T(r, "transition-delay", i[4] ? $n + ei + "ms" : "0ms"), y(t, "class", g = Me(`marketing ${i[6]}`) + " svelte-sezqcq"), q(t, "unfolded", i[4]), q(t, "folded", i[8]);
16785
16773
  },
16786
16774
  m(I, D) {
16787
- M(I, t, D), J(e, t, null), j(t, n), j(t, o), j(t, s), j(t, r), v && v.m(r, null), j(r, a), j(r, l), j(l, c), j(c, u), j(u, h), j(r, f), b && b.m(r, null), j(r, A), w && w.m(r, null), p = !0;
16775
+ M(I, t, D), J(e, t, null), j(t, n), j(t, o), j(t, s), j(t, r), A && A.m(r, null), j(r, a), j(r, l), j(l, c), j(c, u), j(u, h), j(r, f), b && b.m(r, null), j(r, v), w && w.m(r, null), p = !0;
16788
16776
  },
16789
16777
  p(I, [D]) {
16790
16778
  var V, _;
16791
16779
  const k = {};
16792
- D & 16 && (k.visible = I[4]), e.$set(k), D & 16 && T(o, "transition-delay", I[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), I[3].headerPictureUrl ? v ? v.p(I, D) : (v = Jr(I), v.c(), v.m(r, a)) : v && (v.d(1), v = null), (!p || D & 8) && d !== (d = I[3].title + "") && Le(h, d), ((V = I[2].length) != null ? V : 0) + ((_ = I[5].length) != null ? _ : 0) > 0 ? b ? b.p(I, D) : (b = Zr(I), b.c(), b.m(r, A)) : b && (b.d(1), b = null), I[7] || I[3].highlightText ? w ? w.p(I, D) : (w = ea(I), w.c(), w.m(r, null)) : w && (w.d(1), w = null), D & 16 && T(r, "transition-delay", I[4] ? $n + ei + "ms" : "0ms"), (!p || D & 64 && g !== (g = Me(`marketing ${I[6]}`) + " svelte-sezqcq")) && y(t, "class", g), (!p || D & 80) && q(t, "unfolded", I[4]), (!p || D & 320) && q(t, "folded", I[8]);
16780
+ D & 16 && (k.visible = I[4]), e.$set(k), D & 16 && T(o, "transition-delay", I[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), I[3].headerPictureUrl ? A ? A.p(I, D) : (A = Jr(I), A.c(), A.m(r, a)) : A && (A.d(1), A = null), (!p || D & 8) && d !== (d = I[3].title + "") && Le(h, d), ((V = I[2].length) != null ? V : 0) + ((_ = I[5].length) != null ? _ : 0) > 0 ? b ? b.p(I, D) : (b = Zr(I), b.c(), b.m(r, v)) : b && (b.d(1), b = null), I[7] || I[3].highlightText ? w ? w.p(I, D) : (w = ea(I), w.c(), w.m(r, null)) : w && (w.d(1), w = null), D & 16 && T(r, "transition-delay", I[4] ? $n + ei + "ms" : "0ms"), (!p || D & 64 && g !== (g = Me(`marketing ${I[6]}`) + " svelte-sezqcq")) && y(t, "class", g), (!p || D & 80) && q(t, "unfolded", I[4]), (!p || D & 320) && q(t, "folded", I[8]);
16793
16781
  },
16794
16782
  i(I) {
16795
16783
  p || (P(e.$$.fragment, I), p = !0);
@@ -16798,7 +16786,7 @@ function RA(i) {
16798
16786
  x(e.$$.fragment, I), p = !1;
16799
16787
  },
16800
16788
  d(I) {
16801
- I && S(t), Z(e), v && v.d(), b && b.d(), w && w.d();
16789
+ I && S(t), Z(e), A && A.d(), b && b.d(), w && w.d();
16802
16790
  }
16803
16791
  };
16804
16792
  }
@@ -16812,14 +16800,14 @@ function FA(i, t, e) {
16812
16800
  if (g === !0)
16813
16801
  return 172;
16814
16802
  })();
16815
- function A() {
16803
+ function v() {
16816
16804
  h = this.offsetHeight, e(1, h);
16817
16805
  }
16818
16806
  return i.$$set = (g) => {
16819
16807
  "tag" in g && e(0, d = g.tag);
16820
16808
  }, i.$$.update = () => {
16821
- var g, p, v, b, w, E;
16822
- i.$$.dirty & 1 && e(4, n = (p = (g = d.state) == null ? void 0 : g.unfolded) != null ? p : !1), i.$$.dirty & 16 && e(8, o = !n), i.$$.dirty & 1 && e(3, s = d.data), i.$$.dirty & 8 && e(7, r = wt((v = s.price) == null ? void 0 : v.value) && ((b = s.price) == null ? void 0 : b.value) !== ""), i.$$.dirty & 1 && e(6, a = d.data.theme || "light"), i.$$.dirty & 1026 && h > 40 && e(10, l = l - 1), i.$$.dirty & 1032 && e(2, c = ((w = s.brandTags) == null ? void 0 : w.slice(0, l).filter(Boolean)) || []), i.$$.dirty & 1036 && e(5, u = ((E = s.tags) == null ? void 0 : E.slice(0, l - c.length).filter(Boolean)) || []);
16809
+ var g, p, A, b, w, E;
16810
+ i.$$.dirty & 1 && e(4, n = (p = (g = d.state) == null ? void 0 : g.unfolded) != null ? p : !1), i.$$.dirty & 16 && e(8, o = !n), i.$$.dirty & 1 && e(3, s = d.data), i.$$.dirty & 8 && e(7, r = wt((A = s.price) == null ? void 0 : A.value) && ((b = s.price) == null ? void 0 : b.value) !== ""), i.$$.dirty & 1 && e(6, a = d.data.theme || "light"), i.$$.dirty & 1026 && h > 40 && e(10, l = l - 1), i.$$.dirty & 1032 && e(2, c = ((w = s.brandTags) == null ? void 0 : w.slice(0, l).filter(Boolean)) || []), i.$$.dirty & 1036 && e(5, u = ((E = s.tags) == null ? void 0 : E.slice(0, l - c.length).filter(Boolean)) || []);
16823
16811
  }, e(10, l = (f - 20) / zo), [
16824
16812
  d,
16825
16813
  h,
@@ -16832,7 +16820,7 @@ function FA(i, t, e) {
16832
16820
  o,
16833
16821
  f,
16834
16822
  l,
16835
- A
16823
+ v
16836
16824
  ];
16837
16825
  }
16838
16826
  class HA extends oe {
@@ -16971,7 +16959,7 @@ function NA(i, t, e) {
16971
16959
  let { $$slots: n = {}, $$scope: o } = t, { url: s } = t, { enable: r = !0 } = t, { style: a = "" } = t, { hooksInfo: l } = t;
16972
16960
  const c = yi(), u = vt("hooks"), d = vt("mediaStore");
16973
16961
  let h, f = !0;
16974
- function A() {
16962
+ function v() {
16975
16963
  e(
16976
16964
  5,
16977
16965
  h.onplay = (p) => {
@@ -17039,7 +17027,7 @@ function NA(i, t, e) {
17039
17027
  return i.$$set = (p) => {
17040
17028
  "url" in p && e(2, s = p.url), "enable" in p && e(3, r = p.enable), "style" in p && e(0, a = p.style), "hooksInfo" in p && e(4, l = p.hooksInfo), "$$scope" in p && e(7, o = p.$$scope);
17041
17029
  }, i.$$.update = () => {
17042
- i.$$.dirty & 4 && (s || c("duration", 0)), i.$$.dirty & 36 && (h == null || h.dispose(), e(5, h = new GA(s)), c("audioRef", h), setTimeout(() => c("audioRef", h), 200), A()), i.$$.dirty & 40 && (r || h == null || h.pause()), i.$$.dirty & 72 && c(r && !f ? "play" : "pause");
17030
+ i.$$.dirty & 4 && (s || c("duration", 0)), i.$$.dirty & 36 && (h == null || h.dispose(), e(5, h = new GA(s)), c("audioRef", h), setTimeout(() => c("audioRef", h), 200), v()), i.$$.dirty & 40 && (r || h == null || h.pause()), i.$$.dirty & 72 && c(r && !f ? "play" : "pause");
17043
17031
  }, [a, g, s, r, l, h, f, o, n];
17044
17032
  }
17045
17033
  class Nl extends oe {
@@ -17164,8 +17152,8 @@ function qA(i) {
17164
17152
  le(i, "svelte-1s6gk4a", ".audio-tag.svelte-1s6gk4a{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.audio-icon__wrapper.svelte-1s6gk4a{position:relative;vertical-align:top;width:100%;height:100%}.content.svelte-1s6gk4a{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-1s6gk4a{position:relative;width:100%;height:100%}.audio-icon.svelte-1s6gk4a{pointer-events:none;vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.audio.svelte-1s6gk4a{position:relative;width:100%;height:100%}");
17165
17153
  }
17166
17154
  function aa(i) {
17167
- var p, v;
17168
- let t, e, n, o, s, r, a, l, c, u, d, h, f, A;
17155
+ var p, A;
17156
+ let t, e, n, o, s, r, a, l, c, u, d, h, f, v;
17169
17157
  e = new st({
17170
17158
  props: {
17171
17159
  visible: i[6],
@@ -17187,7 +17175,7 @@ function aa(i) {
17187
17175
  props: {
17188
17176
  unfolded: i[6],
17189
17177
  length: i[3],
17190
- outDelay: i[4] + 20 * Math.min((v = (p = i[5]) == null ? void 0 : p.length) != null ? v : 10, 15),
17178
+ outDelay: i[4] + 20 * Math.min((A = (p = i[5]) == null ? void 0 : p.length) != null ? A : 10, 15),
17191
17179
  useLinearColor: !0
17192
17180
  }
17193
17181
  }), {
@@ -17195,7 +17183,7 @@ function aa(i) {
17195
17183
  t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = z("div"), r = z("div"), g && g.c(), a = $(), l = z("div"), K(c.$$.fragment), u = $(), K(d.$$.fragment), y(r, "class", "audio-icon svelte-1s6gk4a"), T(l, "display", "inline-block"), y(s, "class", "wrapper svelte-1s6gk4a"), y(o, "class", "content svelte-1s6gk4a"), y(t, "class", "audio-tag svelte-1s6gk4a"), q(t, "unfolded", i[6]);
17196
17184
  },
17197
17185
  m(b, w) {
17198
- M(b, t, w), J(e, t, null), j(t, n), j(t, o), j(o, s), j(s, r), g && g.m(r, null), j(s, a), j(s, l), J(c, l, null), j(t, u), J(d, t, null), h = !0, f || (A = [
17186
+ M(b, t, w), J(e, t, null), j(t, n), j(t, o), j(o, s), j(s, r), g && g.m(r, null), j(s, a), j(s, l), J(c, l, null), j(t, u), J(d, t, null), h = !0, f || (v = [
17199
17187
  ge(l, "click", i[7]),
17200
17188
  ct(rn.call(null, l)),
17201
17189
  ge(l, "clientWidth", i[12])
@@ -17219,7 +17207,7 @@ function aa(i) {
17219
17207
  x(e.$$.fragment, b), x(g), x(c.$$.fragment, b), x(d.$$.fragment, b), h = !1;
17220
17208
  },
17221
17209
  d(b) {
17222
- b && S(t), Z(e), g && g.d(), Z(c), Z(d), f = !1, He(A);
17210
+ b && S(t), Z(e), g && g.d(), Z(c), Z(d), f = !1, He(v);
17223
17211
  }
17224
17212
  };
17225
17213
  }
@@ -17334,7 +17322,7 @@ function KA(i, t, e) {
17334
17322
  }, f = () => {
17335
17323
  e(2, l = !1);
17336
17324
  };
17337
- function A(p) {
17325
+ function v(p) {
17338
17326
  on.call(this, i, p);
17339
17327
  }
17340
17328
  const g = (p) => {
@@ -17343,8 +17331,8 @@ function KA(i, t, e) {
17343
17331
  return i.$$set = (p) => {
17344
17332
  "tag" in p && e(0, r = p.tag);
17345
17333
  }, i.$$.update = () => {
17346
- var p, v, b;
17347
- i.$$.dirty & 1 && e(6, n = !!((p = r.state) != null && p.unfolded)), i.$$.dirty & 1 && e(5, o = (b = (v = r.data.title) != null ? v : r.data.text) != null ? b : ""), i.$$.dirty & 2 && e(4, s = a ? 450 : 0);
17334
+ var p, A, b;
17335
+ i.$$.dirty & 1 && e(6, n = !!((p = r.state) != null && p.unfolded)), i.$$.dirty & 1 && e(5, o = (b = (A = r.data.title) != null ? A : r.data.text) != null ? b : ""), i.$$.dirty & 2 && e(4, s = a ? 450 : 0);
17348
17336
  }, [
17349
17337
  r,
17350
17338
  a,
@@ -17357,7 +17345,7 @@ function KA(i, t, e) {
17357
17345
  d,
17358
17346
  h,
17359
17347
  f,
17360
- A,
17348
+ v,
17361
17349
  g
17362
17350
  ];
17363
17351
  }
@@ -17497,7 +17485,7 @@ function ov(i, t, e) {
17497
17485
  e(3, c = !1);
17498
17486
  }, f = (p) => {
17499
17487
  e(1, a = p.detail);
17500
- }, A = (p) => {
17488
+ }, v = (p) => {
17501
17489
  e(2, l = p.detail);
17502
17490
  };
17503
17491
  function g(p) {
@@ -17506,8 +17494,8 @@ function ov(i, t, e) {
17506
17494
  return i.$$set = (p) => {
17507
17495
  "tag" in p && e(0, s = p.tag);
17508
17496
  }, i.$$.update = () => {
17509
- var p, v, b;
17510
- i.$$.dirty & 1 && e(5, n = (v = (p = s.data.title) != null ? p : s.data.text) != null ? v : ""), i.$$.dirty & 1 && e(4, o = (b = r[s.data.theme || "light"]) != null ? b : r.light);
17497
+ var p, A, b;
17498
+ i.$$.dirty & 1 && e(5, n = (A = (p = s.data.title) != null ? p : s.data.text) != null ? A : ""), i.$$.dirty & 1 && e(4, o = (b = r[s.data.theme || "light"]) != null ? b : r.light);
17511
17499
  }, [
17512
17500
  s,
17513
17501
  a,
@@ -17519,7 +17507,7 @@ function ov(i, t, e) {
17519
17507
  d,
17520
17508
  h,
17521
17509
  f,
17522
- A,
17510
+ v,
17523
17511
  g
17524
17512
  ];
17525
17513
  }
@@ -17997,7 +17985,7 @@ function Ht(i) {
17997
17985
  return fe(Q({}, i), { width: s, height: r });
17998
17986
  }
17999
17987
  function xv(i, t, e) {
18000
- let n, o, s, r, a, l, c, u, d, { width: h = null } = t, { icon: f = null } = t, { shadow: A = !1 } = t;
17988
+ let n, o, s, r, a, l, c, u, d, { width: h = null } = t, { icon: f = null } = t, { shadow: v = !1 } = t;
18001
17989
  const g = yi();
18002
17990
  function p(w) {
18003
17991
  return H(this, null, function* () {
@@ -18005,7 +17993,7 @@ function xv(i, t, e) {
18005
17993
  return g("iconLoaded", E), E;
18006
17994
  });
18007
17995
  }
18008
- function v(w) {
17996
+ function A(w) {
18009
17997
  return H(this, null, function* () {
18010
17998
  if (typeof d == "number")
18011
17999
  return fe(Q({}, w), { width: d });
@@ -18019,7 +18007,7 @@ function xv(i, t, e) {
18019
18007
  return Ze(() => {
18020
18008
  b();
18021
18009
  }), i.$$set = (w) => {
18022
- "width" in w && e(1, h = w.width), "icon" in w && e(12, f = w.icon), "shadow" in w && e(0, A = w.shadow);
18010
+ "width" in w && e(1, h = w.width), "icon" in w && e(12, f = w.icon), "shadow" in w && e(0, v = w.shadow);
18023
18011
  }, i.$$.update = () => {
18024
18012
  var w, E;
18025
18013
  i.$$.dirty & 4096 && e(7, n = f == null ? void 0 : f.url), i.$$.dirty & 4096 && e(2, o = (w = f == null ? void 0 : f.steps) != null ? w : 1), i.$$.dirty & 4096 && e(6, s = f == null ? void 0 : f.fps), i.$$.dirty & 4096 && e(5, r = f == null ? void 0 : f.ratio), i.$$.dirty & 4096 && e(4, a = (E = f == null ? void 0 : f.scale) != null ? E : 1), i.$$.dirty & 4096 && e(3, l = f == null ? void 0 : f.width), i.$$.dirty & 252 && e(9, c = xe({
@@ -18031,7 +18019,7 @@ function xv(i, t, e) {
18031
18019
  width: l
18032
18020
  })), i.$$.dirty & 4 && e(8, u = o > 1), i.$$.dirty & 2 && (d = h);
18033
18021
  }, b(), [
18034
- A,
18022
+ v,
18035
18023
  h,
18036
18024
  o,
18037
18025
  l,
@@ -18042,7 +18030,7 @@ function xv(i, t, e) {
18042
18030
  u,
18043
18031
  c,
18044
18032
  p,
18045
- v,
18033
+ A,
18046
18034
  f
18047
18035
  ];
18048
18036
  }
@@ -18235,7 +18223,7 @@ function Qv(i) {
18235
18223
  Fv,
18236
18224
  Rv
18237
18225
  ], d = [];
18238
- function h(f, A) {
18226
+ function h(f, v) {
18239
18227
  return f[1].element ? 0 : f[1].contentType === "Text" ? 1 : f[1].contentType === "ImageText" || f[1].contentType === "Image" || f[1].contentType === "Video" ? 2 : f[1].contentType === "Audio" ? 3 : f[1].contentType === "Marketing" ? 4 : f[1].contentType === "Link" || f[1].contentType === "VRLink" || f[1].contentType === "PanoLink" || f[1].contentType === "Sticker" ? 5 : f[1].contentType === "MediaPlane" || f[1].contentType === "MediaModel" ? 6 : -1;
18240
18228
  }
18241
18229
  return ~(o = h(i)) && (s = d[o] = u[o](i)), {
@@ -18243,15 +18231,15 @@ function Qv(i) {
18243
18231
  var f;
18244
18232
  t = z("div"), e = z("div"), n = z("div"), s && s.c(), y(n, "class", "content svelte-1r4fqvg"), q(n, "unfolded", (f = i[1].state) == null ? void 0 : f.unfolded), y(e, "class", "content__wrapper svelte-1r4fqvg"), y(t, "class", "content__container svelte-1r4fqvg"), y(t, "data-id", r = i[1].id), q(t, "disable", i[1].enabled === !1), q(t, "hide", i[4]), q(t, "withAnimation", i[0]), q(t, "unClickable", i[1].mergedConfig.clickable === !1), T(t, "width", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0), T(t, "height", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0);
18245
18233
  },
18246
- m(f, A) {
18247
- M(f, t, A), j(t, e), j(e, n), ~o && d[o].m(n, null), a = !0, l || (c = ge(t, "click", Fa(i[13])), l = !0);
18234
+ m(f, v) {
18235
+ M(f, t, v), j(t, e), j(e, n), ~o && d[o].m(n, null), a = !0, l || (c = ge(t, "click", Fa(i[13])), l = !0);
18248
18236
  },
18249
- p(f, A) {
18237
+ p(f, v) {
18250
18238
  var p;
18251
18239
  let g = o;
18252
- o = h(f), o === g ? ~o && d[o].p(f, A) : (s && (se(), x(d[g], 1, 1, () => {
18240
+ o = h(f), o === g ? ~o && d[o].p(f, v) : (s && (se(), x(d[g], 1, 1, () => {
18253
18241
  d[g] = null;
18254
- }), re()), ~o ? (s = d[o], s ? s.p(f, A) : (s = d[o] = u[o](f), s.c()), P(s, 1), s.m(n, null)) : s = null), (!a || A & 2) && q(n, "unfolded", (p = f[1].state) == null ? void 0 : p.unfolded), (!a || A & 2 && r !== (r = f[1].id)) && y(t, "data-id", r), (!a || A & 2) && q(t, "disable", f[1].enabled === !1), (!a || A & 16) && q(t, "hide", f[4]), (!a || A & 1) && q(t, "withAnimation", f[0]), (!a || A & 2) && q(t, "unClickable", f[1].mergedConfig.clickable === !1), A & 2 && T(t, "width", f[1].stickType === "Plane" || f[1].contentType === "MediaModel" ? "100%" : 0), A & 2 && T(t, "height", f[1].stickType === "Plane" || f[1].contentType === "MediaModel" ? "100%" : 0);
18242
+ }), re()), ~o ? (s = d[o], s ? s.p(f, v) : (s = d[o] = u[o](f), s.c()), P(s, 1), s.m(n, null)) : s = null), (!a || v & 2) && q(n, "unfolded", (p = f[1].state) == null ? void 0 : p.unfolded), (!a || v & 2 && r !== (r = f[1].id)) && y(t, "data-id", r), (!a || v & 2) && q(t, "disable", f[1].enabled === !1), (!a || v & 16) && q(t, "hide", f[4]), (!a || v & 1) && q(t, "withAnimation", f[0]), (!a || v & 2) && q(t, "unClickable", f[1].mergedConfig.clickable === !1), v & 2 && T(t, "width", f[1].stickType === "Plane" || f[1].contentType === "MediaModel" ? "100%" : 0), v & 2 && T(t, "height", f[1].stickType === "Plane" || f[1].contentType === "MediaModel" ? "100%" : 0);
18255
18243
  },
18256
18244
  i(f) {
18257
18245
  a || (P(s), a = !0);
@@ -18477,10 +18465,10 @@ function Xv(i) {
18477
18465
  };
18478
18466
  }
18479
18467
  function Yv(i, t, e) {
18480
- let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: u } = t, { hooks: d } = t, { state: h } = t, { mediaStore: f } = t, { temporaryState: A } = t;
18468
+ let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: u } = t, { hooks: d } = t, { state: h } = t, { mediaStore: f } = t, { temporaryState: v } = t;
18481
18469
  eo("hooks", d), eo("mediaStore", f);
18482
18470
  let g, p;
18483
- function v(E) {
18471
+ function A(E) {
18484
18472
  E ? d.emit("exposure", { id: r, type: "start" }) : d.emit("exposure", { id: r, type: "end" });
18485
18473
  }
18486
18474
  function b(E, L, I) {
@@ -18489,10 +18477,10 @@ function Yv(i, t, e) {
18489
18477
  }
18490
18478
  const w = (E) => d.emit("click", { event: E, target: "TagContent", tag: u });
18491
18479
  return i.$$set = (E) => {
18492
- "withAnimation" in E && e(0, c = E.withAnimation), "tag" in E && e(1, u = E.tag), "hooks" in E && e(2, d = E.hooks), "state" in E && e(5, h = E.state), "mediaStore" in E && e(6, f = E.mediaStore), "temporaryState" in E && e(7, A = E.temporaryState);
18480
+ "withAnimation" in E && e(0, c = E.withAnimation), "tag" in E && e(1, u = E.tag), "hooks" in E && e(2, d = E.hooks), "state" in E && e(5, h = E.state), "mediaStore" in E && e(6, f = E.mediaStore), "temporaryState" in E && e(7, v = E.temporaryState);
18493
18481
  }, i.$$.update = () => {
18494
18482
  var E, L, I, D, k, V, _, O, F, B, R;
18495
- i.$$.dirty & 2 && e(11, n = (E = u.state) == null ? void 0 : E.unfolded), i.$$.dirty & 2 && e(10, o = (L = u.state) == null ? void 0 : L.visible), i.$$.dirty & 162 && e(12, s = h.visible && A.visible && ((I = u.state) == null ? void 0 : I.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !b(u, h, A)), i.$$.dirty & 4096 && v(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== p && (e(9, p = n), n ? (k = (D = u.hooks).emit) == null || k.call(D, "unfolded") : (_ = u == null ? void 0 : (V = u.hooks).emit) == null || _.call(V, "folded")), o !== void 0 && o !== g && (e(8, g = o), o ? (F = (O = u.hooks).emit) == null || F.call(O, "show") : (R = (B = u.hooks).emit) == null || R.call(B, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
18483
+ i.$$.dirty & 2 && e(11, n = (E = u.state) == null ? void 0 : E.unfolded), i.$$.dirty & 2 && e(10, o = (L = u.state) == null ? void 0 : L.visible), i.$$.dirty & 162 && e(12, s = h.visible && v.visible && ((I = u.state) == null ? void 0 : I.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !b(u, h, v)), i.$$.dirty & 4096 && A(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== p && (e(9, p = n), n ? (k = (D = u.hooks).emit) == null || k.call(D, "unfolded") : (_ = u == null ? void 0 : (V = u.hooks).emit) == null || _.call(V, "folded")), o !== void 0 && o !== g && (e(8, g = o), o ? (F = (O = u.hooks).emit) == null || F.call(O, "show") : (R = (B = u.hooks).emit) == null || R.call(B, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
18496
18484
  }, [
18497
18485
  c,
18498
18486
  u,
@@ -18501,7 +18489,7 @@ function Yv(i, t, e) {
18501
18489
  a,
18502
18490
  h,
18503
18491
  f,
18504
- A,
18492
+ v,
18505
18493
  g,
18506
18494
  p,
18507
18495
  o,
@@ -18551,13 +18539,13 @@ function qv(i) {
18551
18539
  c() {
18552
18540
  t = z("div"), e = z("div"), n = $(), K(o.$$.fragment), s = $(), r = z("div"), a = $(), l = z("div"), K(c.$$.fragment), y(e, "class", "tag-point-click-helper svelte-1jkrwn7"), y(r, "class", "tag-unfolded-point svelte-1jkrwn7"), T(r, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(l, "class", "tag-folded-point svelte-1jkrwn7"), T(l, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(t, "class", "tag-point-wrapper svelte-1jkrwn7"), q(t, "unfolded", i[0]), q(t, "folded", i[3]);
18553
18541
  },
18554
- m(f, A) {
18555
- M(f, t, A), j(t, e), j(t, n), J(o, t, null), j(t, s), j(t, r), j(t, a), j(t, l), J(c, l, null), u = !0, d || (h = ge(e, "click", i[4]), d = !0);
18542
+ m(f, v) {
18543
+ M(f, t, v), j(t, e), j(t, n), J(o, t, null), j(t, s), j(t, r), j(t, a), j(t, l), J(c, l, null), u = !0, d || (h = ge(e, "click", i[4]), d = !0);
18556
18544
  },
18557
- p(f, [A]) {
18558
- A & 8 && T(r, "transition-delay", (f[3] ? f[5] : 0) + "ms");
18545
+ p(f, [v]) {
18546
+ v & 8 && T(r, "transition-delay", (f[3] ? f[5] : 0) + "ms");
18559
18547
  const g = {};
18560
- A & 4 && (g.icon = f[2]), A & 2 && (g.width = f[1]), c.$set(g), A & 8 && T(l, "transition-delay", (f[3] ? f[5] : 0) + "ms"), (!u || A & 1) && q(t, "unfolded", f[0]), (!u || A & 8) && q(t, "folded", f[3]);
18548
+ v & 4 && (g.icon = f[2]), v & 2 && (g.width = f[1]), c.$set(g), v & 8 && T(l, "transition-delay", (f[3] ? f[5] : 0) + "ms"), (!u || v & 1) && q(t, "unfolded", f[0]), (!u || v & 8) && q(t, "folded", f[3]);
18561
18549
  },
18562
18550
  i(f) {
18563
18551
  u || (P(o.$$.fragment, f), P(c.$$.fragment, f), u = !0);
@@ -18584,14 +18572,14 @@ function Jv(i, t, e) {
18584
18572
  }, h = (g) => {
18585
18573
  u || a.emit("click", { event: g, target: "TagPoint", tag: l });
18586
18574
  }, f = (() => l.contentType === "Text" && l.data.appearance === "plane" ? 500 : 800)();
18587
- function A(g) {
18575
+ function v(g) {
18588
18576
  on.call(this, i, g);
18589
18577
  }
18590
18578
  return i.$$set = (g) => {
18591
18579
  "tag" in g && e(6, l = g.tag);
18592
18580
  }, i.$$.update = () => {
18593
- var g, p, v, b;
18594
- i.$$.dirty & 64 && e(0, n = (g = l.state) == null ? void 0 : g.unfolded), i.$$.dirty & 1 && e(3, o = !n), i.$$.dirty & 64 && e(2, s = (v = (p = l.style) == null ? void 0 : p.point) != null && v.url ? (b = l.style) == null ? void 0 : b.point : { url: Lg }), i.$$.dirty & 64 && e(1, r = (() => {
18581
+ var g, p, A, b;
18582
+ i.$$.dirty & 64 && e(0, n = (g = l.state) == null ? void 0 : g.unfolded), i.$$.dirty & 1 && e(3, o = !n), i.$$.dirty & 64 && e(2, s = (A = (p = l.style) == null ? void 0 : p.point) != null && A.url ? (b = l.style) == null ? void 0 : b.point : { url: Lg }), i.$$.dirty & 64 && e(1, r = (() => {
18595
18583
  var L, I, D, k;
18596
18584
  const w = (I = (L = l.style) == null ? void 0 : L.point) == null ? void 0 : I.width;
18597
18585
  if (typeof w == "number")
@@ -18616,7 +18604,7 @@ function Jv(i, t, e) {
18616
18604
  h,
18617
18605
  f,
18618
18606
  l,
18619
- A
18607
+ v
18620
18608
  ];
18621
18609
  }
18622
18610
  class Zv extends oe {
@@ -18721,30 +18709,30 @@ function n1(i) {
18721
18709
  function i1(i) {
18722
18710
  let t, e, n, o, s, r, a, l, c;
18723
18711
  const u = [e1, $v], d = [];
18724
- function h(p, v) {
18712
+ function h(p, A) {
18725
18713
  return p[12] ? 0 : 1;
18726
18714
  }
18727
18715
  n = h(i), o = d[n] = u[n](i);
18728
- const f = [n1, t1], A = [];
18729
- function g(p, v) {
18716
+ const f = [n1, t1], v = [];
18717
+ function g(p, A) {
18730
18718
  return p[13] ? 0 : 1;
18731
18719
  }
18732
- return r = g(i), a = A[r] = f[r](i), {
18720
+ return r = g(i), a = v[r] = f[r](i), {
18733
18721
  c() {
18734
18722
  t = z("div"), e = z("div"), o.c(), s = $(), a.c(), y(e, "class", "wrapper svelte-pzwdws"), y(e, "data-tag-unfolded", i[8]), y(e, "data-tag-id", i[11]), y(e, "data-content-type", l = i[1].contentType), T(e, "left", i[7]), T(e, "top", i[6]), T(e, "z-index", i[5]), y(t, "class", "tag svelte-pzwdws"), y(t, "data-tag-id", i[11]), q(t, "unClickable", i[1].mergedConfig.clickable === !1), q(t, "disable", i[10]), q(t, "hide", i[9]), q(t, "withAnimation", i[0]);
18735
18723
  },
18736
- m(p, v) {
18737
- M(p, t, v), j(t, e), d[n].m(e, null), j(e, s), A[r].m(e, null), c = !0;
18724
+ m(p, A) {
18725
+ M(p, t, A), j(t, e), d[n].m(e, null), j(e, s), v[r].m(e, null), c = !0;
18738
18726
  },
18739
- p(p, [v]) {
18727
+ p(p, [A]) {
18740
18728
  let b = n;
18741
- n = h(p), n === b ? d[n].p(p, v) : (se(), x(d[b], 1, 1, () => {
18729
+ n = h(p), n === b ? d[n].p(p, A) : (se(), x(d[b], 1, 1, () => {
18742
18730
  d[b] = null;
18743
- }), re(), o = d[n], o ? o.p(p, v) : (o = d[n] = u[n](p), o.c()), P(o, 1), o.m(e, s));
18731
+ }), re(), o = d[n], o ? o.p(p, A) : (o = d[n] = u[n](p), o.c()), P(o, 1), o.m(e, s));
18744
18732
  let w = r;
18745
- r = g(p), r === w ? A[r].p(p, v) : (se(), x(A[w], 1, 1, () => {
18746
- A[w] = null;
18747
- }), re(), a = A[r], a ? a.p(p, v) : (a = A[r] = f[r](p), a.c()), P(a, 1), a.m(e, null)), (!c || v & 256) && y(e, "data-tag-unfolded", p[8]), (!c || v & 2048) && y(e, "data-tag-id", p[11]), (!c || v & 2 && l !== (l = p[1].contentType)) && y(e, "data-content-type", l), v & 128 && T(e, "left", p[7]), v & 64 && T(e, "top", p[6]), v & 32 && T(e, "z-index", p[5]), (!c || v & 2048) && y(t, "data-tag-id", p[11]), (!c || v & 2) && q(t, "unClickable", p[1].mergedConfig.clickable === !1), (!c || v & 1024) && q(t, "disable", p[10]), (!c || v & 512) && q(t, "hide", p[9]), (!c || v & 1) && q(t, "withAnimation", p[0]);
18733
+ r = g(p), r === w ? v[r].p(p, A) : (se(), x(v[w], 1, 1, () => {
18734
+ v[w] = null;
18735
+ }), re(), a = v[r], a ? a.p(p, A) : (a = v[r] = f[r](p), a.c()), P(a, 1), a.m(e, null)), (!c || A & 256) && y(e, "data-tag-unfolded", p[8]), (!c || A & 2048) && y(e, "data-tag-id", p[11]), (!c || A & 2 && l !== (l = p[1].contentType)) && y(e, "data-content-type", l), A & 128 && T(e, "left", p[7]), A & 64 && T(e, "top", p[6]), A & 32 && T(e, "z-index", p[5]), (!c || A & 2048) && y(t, "data-tag-id", p[11]), (!c || A & 2) && q(t, "unClickable", p[1].mergedConfig.clickable === !1), (!c || A & 1024) && q(t, "disable", p[10]), (!c || A & 512) && q(t, "hide", p[9]), (!c || A & 1) && q(t, "withAnimation", p[0]);
18748
18736
  },
18749
18737
  i(p) {
18750
18738
  c || (P(o), P(a), c = !0);
@@ -18753,22 +18741,22 @@ function i1(i) {
18753
18741
  x(o), x(a), c = !1;
18754
18742
  },
18755
18743
  d(p) {
18756
- p && S(t), d[n].d(), A[r].d();
18744
+ p && S(t), d[n].d(), v[r].d();
18757
18745
  }
18758
18746
  };
18759
18747
  }
18760
18748
  function o1(i, t, e) {
18761
- let n, o, s, r, a, l, c, u, d, { withAnimation: h = !1 } = t, { tag: f } = t, { mediaStore: A } = t, { state: g } = t, { temporaryState: p } = t;
18762
- const v = vt("hooks");
18749
+ let n, o, s, r, a, l, c, u, d, { withAnimation: h = !1 } = t, { tag: f } = t, { mediaStore: v } = t, { state: g } = t, { temporaryState: p } = t;
18750
+ const A = vt("hooks");
18763
18751
  return i.$$set = (b) => {
18764
- "withAnimation" in b && e(0, h = b.withAnimation), "tag" in b && e(1, f = b.tag), "mediaStore" in b && e(2, A = b.mediaStore), "state" in b && e(3, g = b.state), "temporaryState" in b && e(4, p = b.temporaryState);
18752
+ "withAnimation" in b && e(0, h = b.withAnimation), "tag" in b && e(1, f = b.tag), "mediaStore" in b && e(2, v = b.mediaStore), "state" in b && e(3, g = b.state), "temporaryState" in b && e(4, p = b.temporaryState);
18765
18753
  }, i.$$.update = () => {
18766
18754
  var b, w, E, L, I, D, k, V;
18767
18755
  i.$$.dirty & 2 && e(13, n = (() => !(f.contentType === "Sticker" || f.contentType === "Link" || f.contentType === "VRLink" || f.contentType === "PanoLink" || f.contentType === "Audio" && f.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => f.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = f.id), i.$$.dirty & 2 && e(10, r = !((b = f.pointTagStyle) != null && b.leftPercent) || !((w = f.pointTagStyle) != null && w.topPercent) || f.enabled === !1 || !f.state), i.$$.dirty & 2 && e(9, a = !((E = f.state) != null && E.visible) || ((L = f.temporaryState) == null ? void 0 : L.visible) === !1), i.$$.dirty & 2 && e(8, l = (I = f.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(7, c = ((D = f.pointTagStyle) == null ? void 0 : D.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((k = f.pointTagStyle) == null ? void 0 : k.topPercent) + "%"), i.$$.dirty & 2 && e(5, d = (V = f.state) != null && V.unfolded ? 1 : 0);
18768
18756
  }, [
18769
18757
  h,
18770
18758
  f,
18771
- A,
18759
+ v,
18772
18760
  g,
18773
18761
  p,
18774
18762
  d,
@@ -18780,7 +18768,7 @@ function o1(i, t, e) {
18780
18768
  s,
18781
18769
  o,
18782
18770
  n,
18783
- v
18771
+ A
18784
18772
  ];
18785
18773
  }
18786
18774
  class s1 extends oe {
@@ -18970,7 +18958,7 @@ class h1 extends fg {
18970
18958
  return;
18971
18959
  s.visible = this.getCurrentVisibleState(e), new fn().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFloorIndex(e);
18972
18960
  const a = this.gltfObjectGroup.children.find((c) => c.customID === e.id);
18973
- if (a && this.gltfObjectGroup.remove(a), this.getRenderType(e) === "Mesh") {
18961
+ if (a && this.gltfObjectGroup.remove(a), this.can("renderByMesh", e)) {
18974
18962
  if (!e.imagePlane) {
18975
18963
  const c = e.data.mediaPosition.map(Je);
18976
18964
  e.imagePlane = new lr(e.data.mediaData[0].url, e.data.mediaPosition.map(Je));
@@ -19003,13 +18991,13 @@ class h1 extends fg {
19003
18991
  });
19004
18992
  }
19005
18993
  updateRender3DDomTag() {
19006
- this.sort([...this.filterCSS3DTag]).forEach((n) => {
19007
- var o, s;
18994
+ this.sort([...this.filter3DTag]).forEach((n) => {
18995
+ var o;
19008
18996
  if (n.tag3DContentSvelte) {
19009
- const { svelteApp: r, domContainer: a, initialNormal: l, currentNormal: c } = n.tag3DContentSvelte;
19010
- if (r.$set({ tag: n, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !l.equals(c)) {
19011
- const u = new mo().setFromUnitVectors(l, c);
19012
- a.css3DObject.setRotationFromQuaternion(u);
18997
+ const { svelteApp: s, domContainer: r, initialNormal: a, currentNormal: l } = n.tag3DContentSvelte;
18998
+ if (s.$set({ tag: n, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !a.equals(l)) {
18999
+ const c = new mo().setFromUnitVectors(a, l);
19000
+ r.css3DObject.setRotationFromQuaternion(c);
19013
19001
  }
19014
19002
  return;
19015
19003
  } else {
@@ -19017,32 +19005,32 @@ class h1 extends fg {
19017
19005
  return;
19018
19006
  if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Tn(this.five)), n.stickType === "3DPoint" && !n.normal)
19019
19007
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
19020
- const r = this.getPositions(n);
19021
- if (!r)
19008
+ const s = this.getPositions(n);
19009
+ if (!s)
19022
19010
  return;
19023
- const a = this.getTagNormal(n);
19024
- if (!a)
19011
+ const r = this.getTagNormal(n);
19012
+ if (!r)
19025
19013
  return;
19026
- const c = (s = this.getTagConfig(n).tag3DConfig) != null ? s : {};
19027
- if (this.getRenderType(n) === "BehindDom") {
19028
- c.mode = "behind", c.container = document.createElement("div");
19029
- const d = "black";
19030
- c.container.style.backgroundColor = d, c.container.style.border = `3px solid ${d}`, this.css3DRenderPlugin.hooks.on("render", () => {
19031
- var h;
19032
- if (u.css3DObject.opacityMesh) {
19033
- const f = this.addObjectClickHandler(n, u.css3DObject.opacityMesh, (A) => {
19034
- this.hooks.emit("click", { event: A, target: "TagContent", tag: n });
19035
- });
19036
- (h = this.store.css3DRenderDisposer.get(n.id)) == null || h.push(f);
19037
- }
19038
- });
19014
+ const a = this.getTagConfig(n), l = a.tag3DConfig;
19015
+ if (a.renderType === "Mesh" && l) {
19016
+ l.mode = "behind", l.container = document.createElement("div");
19017
+ const u = "black";
19018
+ l.container.style.backgroundColor = u, l.container.style.border = `3px solid ${u}`;
19039
19019
  }
19040
- const u = this.css3DRenderPlugin.create3DDomContainer(r, c);
19041
- if (!u)
19020
+ const c = this.css3DRenderPlugin.create3DDomContainer(s, l);
19021
+ if (!c)
19042
19022
  return;
19043
- this.store.css3DRenderDisposer.set(n.id, [u.dispose]), n.tag3DContentSvelte = {
19023
+ this.store.css3DRenderDisposer.set(n.id, [c.dispose]), this.css3DRenderPlugin.hooks.on("render", () => {
19024
+ var u;
19025
+ if (c.css3DObject.opacityMesh) {
19026
+ const d = this.addObjectClickHandler(n, c.css3DObject.opacityMesh, (h) => {
19027
+ this.hooks.emit("click", { event: h, target: "TagContent", tag: n });
19028
+ });
19029
+ (u = this.store.css3DRenderDisposer.get(n.id)) == null || u.push(d);
19030
+ }
19031
+ }), n.tag3DContentSvelte = {
19044
19032
  svelteApp: new ql({
19045
- target: u.container,
19033
+ target: c.container,
19046
19034
  props: {
19047
19035
  tag: n,
19048
19036
  hooks: this.hooks,
@@ -19051,9 +19039,9 @@ class h1 extends fg {
19051
19039
  temporaryState: this.temporaryState
19052
19040
  }
19053
19041
  }),
19054
- domContainer: u,
19055
- initialNormal: a,
19056
- currentNormal: a
19042
+ domContainer: c,
19043
+ initialNormal: r,
19044
+ currentNormal: r
19057
19045
  };
19058
19046
  }
19059
19047
  }), this.clearUnusedPanelTag();
@@ -19074,16 +19062,16 @@ class h1 extends fg {
19074
19062
  });
19075
19063
  }
19076
19064
  updateTagCss3DObjectMatrix(e, n) {
19077
- var g, p, v, b;
19078
- const o = (v = (p = (g = e.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : p.ratio) != null ? v : 216e-5, s = (b = e.tag3DContentSvelte) == null ? void 0 : b.domContainer.css3DObject;
19065
+ var g, p, A, b;
19066
+ const o = (A = (p = (g = e.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : p.ratio) != null ? A : 216e-5, s = (b = e.tag3DContentSvelte) == null ? void 0 : b.domContainer.css3DObject;
19079
19067
  if (!s)
19080
19068
  return;
19081
19069
  const r = Ve(e) ? e.data.mediaPosition : e.position;
19082
19070
  n.updateWorldMatrix(!1, !1);
19083
19071
  const a = n.matrixWorld, l = new U().fromArray(r[0]), c = new U().fromArray(r[2]), u = Mn(l, c).add(new U(0, 0, 5e-4)), d = new fn().setPosition(u), h = new fn().makeScale(o, o, o), f = new fn().multiply(a).multiply(d).multiply(h);
19084
19072
  f.decompose(s.position, s.quaternion, s.scale);
19085
- const A = s.opacityMesh;
19086
- A && f.decompose(A.position, A.quaternion, A.scale);
19073
+ const v = s.opacityMesh;
19074
+ v && f.decompose(v.position, v.quaternion, v.scale);
19087
19075
  }
19088
19076
  addMediaModelTag(e) {
19089
19077
  return H(this, null, function* () {
@@ -19112,7 +19100,7 @@ class h1 extends fg {
19112
19100
  state: this.state,
19113
19101
  temporaryState: this.temporaryState,
19114
19102
  withAnimation: this.store.visibleWithAnimation
19115
- }), this.filterCSS3DTag.forEach((n) => {
19103
+ }), this.filter3DTag.forEach((n) => {
19116
19104
  var o, s, r, a, l;
19117
19105
  (a = (s = (o = n.tag3DContentSvelte) == null ? void 0 : o.domContainer) == null ? void 0 : s.css3DObject) == null || a.setVisible((this.state.visible && ((r = n.state) == null ? void 0 : r.visible)) !== !1), (l = n.tag3DContentSvelte) == null || l.svelteApp.$set({
19118
19106
  state: this.state,
@@ -19251,7 +19239,7 @@ class f1 extends h1 {
19251
19239
  }
19252
19240
  dispose() {
19253
19241
  var e, n, o, s, r, a;
19254
- this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((l) => {
19242
+ this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag.forEach((l) => {
19255
19243
  var c;
19256
19244
  return (c = l.tag3DContentSvelte) == null ? void 0 : c.svelteApp.$destroy();
19257
19245
  }), this.tags = [], (n = this.store.disposers) == null || n.forEach((l) => l == null ? void 0 : l()), this.store.disposers = [], (s = (o = this.store).eventListenerDisposer) == null || s.call(o), this.store.eventListenerDisposer = void 0, (a = (r = this.store).resizeObserverDisposer) == null || a.call(r), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
@@ -19315,7 +19303,7 @@ class f1 extends h1 {
19315
19303
  }
19316
19304
  handleDisable() {
19317
19305
  var e, n, o;
19318
- this.pauseCurrentMedia(), this.state.enabled = !1, (n = (e = this.store).eventListenerDisposer) == null || n.call(e), this.five.scene.remove(this.group), (o = this.TagContainerSvelte) == null || o.$set({ tags: [] }), this.filterCSS3DTag.forEach((s) => {
19306
+ this.pauseCurrentMedia(), this.state.enabled = !1, (n = (e = this.store).eventListenerDisposer) == null || n.call(e), this.five.scene.remove(this.group), (o = this.TagContainerSvelte) == null || o.$set({ tags: [] }), this.filter3DTag.forEach((s) => {
19319
19307
  var r;
19320
19308
  (r = s.tag3DContentSvelte) == null || r.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
19321
19309
  }), this.five.needsRender = !0;
@@ -20485,17 +20473,17 @@ class F1 extends jn {
20485
20473
  const u = this.rotateCenter.clone(), h = o.projectPoint(c.clone(), new C.Vector3()).clone().sub(u);
20486
20474
  if (n.angleTo(h) === 0)
20487
20475
  return;
20488
- const f = new C.Quaternion().setFromUnitVectors(n.clone().normalize(), h.clone().normalize()), A = l.quaternion.clone().premultiply(f);
20489
- if (this.hooks.emit("wantToRotate", A))
20476
+ const f = new C.Quaternion().setFromUnitVectors(n.clone().normalize(), h.clone().normalize()), v = l.quaternion.clone().premultiply(f);
20477
+ if (this.hooks.emit("wantToRotate", v))
20490
20478
  return;
20491
- const v = new C.Euler().setFromQuaternion(
20479
+ const A = new C.Euler().setFromQuaternion(
20492
20480
  new C.Quaternion().setFromUnitVectors(
20493
20481
  n.clone().normalize().applyQuaternion(a.clone().inverse()),
20494
20482
  h.clone().normalize().applyQuaternion(a.clone().inverse())
20495
20483
  ),
20496
20484
  `${r.toUpperCase()}${"XZY".replace(r.toUpperCase(), "")}`
20497
20485
  )[r] * s.angleDirection;
20498
- if (this.startInfo.angle += v, this.setAngleHelperLength(r, this.startInfo.angle), this.setTipsAngle(il(this.startInfo.angle)), u) {
20486
+ if (this.startInfo.angle += A, this.setAngleHelperLength(r, this.startInfo.angle), this.setTipsAngle(il(this.startInfo.angle)), u) {
20499
20487
  const b = new C.Vector3().subVectors(l.position, u).applyQuaternion(f).add(u);
20500
20488
  l.position.copy(b);
20501
20489
  }
@@ -20623,13 +20611,13 @@ class H1 extends jn {
20623
20611
  }
20624
20612
  const G = new U().subVectors(W, R), ee = G.length();
20625
20613
  return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), F) : G;
20626
- }, A = f("ew"), g = f("ns"), p = () => {
20627
- const O = A;
20614
+ }, v = f("ew"), g = f("ns"), p = () => {
20615
+ const O = v;
20628
20616
  this.helperObject3D.cornerPositions.forEach((F, B) => {
20629
20617
  var R;
20630
20618
  (R = this.startInfo) != null && R.dragPointInCenterLeft ? (B === 0 || B === 3) && F.add(O) : (B === 1 || B === 2) && F.add(O);
20631
20619
  });
20632
- }, v = () => {
20620
+ }, A = () => {
20633
20621
  const O = g;
20634
20622
  this.helperObject3D.cornerPositions.forEach((F, B) => {
20635
20623
  var R;
@@ -20641,11 +20629,11 @@ class H1 extends jn {
20641
20629
  p();
20642
20630
  break;
20643
20631
  case "ns":
20644
- v();
20632
+ A();
20645
20633
  break;
20646
20634
  case "nesw":
20647
20635
  case "nwse":
20648
- p(), v();
20636
+ p(), A();
20649
20637
  }
20650
20638
  const b = new U().subVectors(r[1], r[0]).length() / d.length(), w = new U().subVectors(r[3], r[0]).length() / h.length(), E = new U(b, w, 1), L = new C.Matrix4().scale(E);
20651
20639
  n.isCSS3DObjectPlus ? n.applyScaleMatrix4(L) : n.scale.applyMatrix4(L), o.position.copy(a);
@@ -20743,32 +20731,32 @@ class U1 extends zn {
20743
20731
  }
20744
20732
  const o = new R1(), s = [], r = (f = this.five.getElement()) == null ? void 0 : f.parentElement, a = this.five.camera, { moveHelper: l = !0, rotateHelper: c = !0, scaleHelper: u = !0, boundingBoxHelper: d = !1 } = n, h = new Ye();
20745
20733
  if (l) {
20746
- const A = new C1(e), g = this.getConfig(n.moveHelper), p = new hn(this.five, z1, e, A, g, h);
20734
+ const v = new C1(e), g = this.getConfig(n.moveHelper), p = new hn(this.five, z1, e, v, g, h);
20747
20735
  o.addControllers({ moveController: p.helperController }), s.push(() => p.dispose());
20748
20736
  }
20749
20737
  if (c) {
20750
- const A = this.getConfig(n.rotateHelper), g = new k1(e, Q({ container: r }, A)), p = new hn(this.five, F1, e, g, A, h);
20738
+ const v = this.getConfig(n.rotateHelper), g = new k1(e, Q({ container: r }, v)), p = new hn(this.five, F1, e, g, v, h);
20751
20739
  o.addControllers({ rotateController: p.helperController }), s.push(() => p.dispose());
20752
20740
  }
20753
20741
  if (d) {
20754
- const A = new T1(e), g = new hn(this.five, W1, e, A, void 0, h);
20742
+ const v = new T1(e), g = new hn(this.five, W1, e, v, void 0, h);
20755
20743
  o.addControllers({ boundingBoxController: g.helperController });
20756
20744
  }
20757
20745
  if (u)
20758
20746
  if (e.isCSS3DObjectPlus && r) {
20759
- const A = new M1(e, r, a, this.five.scene), g = new hn(this.five, G1, e, A, void 0, h);
20747
+ const v = new M1(e, r, a, this.five.scene), g = new hn(this.five, G1, e, v, void 0, h);
20760
20748
  o.addControllers({ scaleController: g.helperController }), s.push(() => g.dispose()), Sa(this.five).then(() => {
20761
- var p, v;
20749
+ var p, A;
20762
20750
  if (e.isCSS3DObjectPlus) {
20763
20751
  const b = e;
20764
20752
  if (!b || b.mode !== "front")
20765
20753
  return;
20766
20754
  const w = (p = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? p : Ma(this.five);
20767
- w && (this.css3DObjectParentMap.set(b, b.parent), b.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(w), (v = this.css3DRender.getBehindCSS3DObjectGroup()) == null || v.add(b), this.css3DRender.render(this.five.camera));
20755
+ w && (this.css3DObjectParentMap.set(b, b.parent), b.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(w), (A = this.css3DRender.getBehindCSS3DObjectGroup()) == null || A.add(b), this.css3DRender.render(this.five.camera));
20768
20756
  }
20769
20757
  });
20770
20758
  } else {
20771
- const A = new _1(e), g = new hn(this.five, m1, e, A, void 0, h);
20759
+ const v = new _1(e), g = new hn(this.five, m1, e, v, void 0, h);
20772
20760
  o.addControllers({ scaleController: g.helperController }), s.push(() => g.dispose());
20773
20761
  }
20774
20762
  return this.objectHelperMap.set(e, { helper: o, disposers: s }), o.controllers;