@realsee/dnalogel 3.0.0-2 → 3.0.0-4

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 (346) hide show
  1. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  2. package/dist/index.cjs.js +26 -26
  3. package/dist/index.js +771 -770
  4. package/dist/index.umd.js +26 -26
  5. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +30 -30
  6. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +31 -31
  7. package/docs/classes/CSS3DRender.html +30 -30
  8. package/docs/classes/CruisePluginController.html +25 -25
  9. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  10. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
  11. package/docs/classes/Magnifier.html +19 -19
  12. package/docs/classes/ModelRoomLabelController.html +10 -10
  13. package/docs/classes/Object3DHelperController.html +24 -24
  14. package/docs/classes/PaintBrush.html +14 -14
  15. package/docs/classes/PanoMeasurePluginLine.html +26 -26
  16. package/docs/classes/PanoMeasurePluginModel.html +26 -26
  17. package/docs/classes/PanoMeasurePluginPoint.html +10 -10
  18. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  19. package/docs/classes/PanoTagPluginController.html +45 -45
  20. package/docs/classes/Util.BetterTween.html +8 -8
  21. package/docs/classes/Util.Interval.html +11 -11
  22. package/docs/classes/Util.LineSegments.html +7 -7
  23. package/docs/classes/Util.Magnifier.html +19 -19
  24. package/docs/classes/Util.Object3D.html +7 -7
  25. package/docs/classes/Util.PointDomHelper.html +10 -10
  26. package/docs/classes/Util.PointHelper.html +10 -10
  27. package/docs/classes/Util.PointSelectorHelper.html +15 -15
  28. package/docs/classes/Util.Rectangle.html +12 -12
  29. package/docs/enums/CameraMovementEffect.html +6 -6
  30. package/docs/enums/ContentType.html +19 -19
  31. package/docs/enums/DIRECTION.html +8 -8
  32. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  33. package/docs/enums/DimensionType.html +6 -6
  34. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  35. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  36. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  37. package/docs/enums/PointType.html +6 -6
  38. package/docs/enums/Rotation.html +7 -7
  39. package/docs/functions/AreaMakerPlugin.html +4 -4
  40. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  41. package/docs/functions/CameraMovementPlugin.html +4 -4
  42. package/docs/functions/CruisePlugin.html +4 -4
  43. package/docs/functions/CurrentPanoImagePlugin.html +4 -4
  44. package/docs/functions/GuideLinePlugin.html +4 -4
  45. package/docs/functions/ItemLabelPlugin.html +4 -4
  46. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  47. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  48. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  49. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  50. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  51. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  52. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  53. package/docs/functions/ModelViewPlugin.html +4 -4
  54. package/docs/functions/Object3DHelperPlugin.html +4 -4
  55. package/docs/functions/PanoCompassPlugin.html +4 -4
  56. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  57. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  58. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  59. package/docs/functions/PanoMeasurePlugin.html +4 -4
  60. package/docs/functions/PanoRulerPlugin.html +4 -4
  61. package/docs/functions/PanoRulerProPlugin.html +4 -4
  62. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  63. package/docs/functions/PanoTagPlugin.html +4 -4
  64. package/docs/functions/PanoVideoPlugin.html +4 -4
  65. package/docs/functions/PipelinePlugin.html +4 -4
  66. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  67. package/docs/functions/Util.absoluteUrl.html +4 -4
  68. package/docs/functions/Util.checkFiveModelLoaded.html +4 -4
  69. package/docs/functions/Util.equal.html +4 -4
  70. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  71. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  72. package/docs/functions/Util.getFrameTime.html +4 -4
  73. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  74. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  75. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  76. package/docs/functions/Util.isModelLike.html +4 -4
  77. package/docs/functions/Util.isNil.html +4 -4
  78. package/docs/functions/Util.isPanoramaLike.html +4 -4
  79. package/docs/functions/Util.nextFrame.html +4 -4
  80. package/docs/functions/Util.notNil.html +4 -4
  81. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  82. package/docs/functions/Util.tweenProgress.html +4 -4
  83. package/docs/functions/Util.uuid.html +4 -4
  84. package/docs/functions/pluginFlag.html +4 -4
  85. package/docs/index.html +4 -4
  86. package/docs/interfaces/AddTagConfig.html +5 -5
  87. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -5
  88. package/docs/interfaces/AreaMakerPluginType.Config.html +5 -5
  89. package/docs/interfaces/AreaMakerPluginType.EventMap.html +14 -14
  90. package/docs/interfaces/AreaMakerPluginType.Params.html +6 -6
  91. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +8 -8
  92. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +7 -7
  93. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -5
  94. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -5
  95. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -5
  96. package/docs/interfaces/AreaMakerPluginType.State.html +7 -7
  97. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  98. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  99. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  100. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  101. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  102. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  103. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  104. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  105. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  106. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  107. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -5
  108. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  109. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -10
  110. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +11 -11
  111. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +6 -6
  112. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -5
  113. package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -7
  114. package/docs/interfaces/EventMap.html +14 -14
  115. package/docs/interfaces/FloorplanBounding.html +7 -7
  116. package/docs/interfaces/FloorplanData.html +9 -9
  117. package/docs/interfaces/FloorplanEntrance.html +10 -10
  118. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  119. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  120. package/docs/interfaces/FloorplanFloorData.html +8 -8
  121. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  122. package/docs/interfaces/FloorplanObserver.html +8 -8
  123. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  124. package/docs/interfaces/FloorplanPosition.html +6 -6
  125. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  126. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  127. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  128. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  129. package/docs/interfaces/FloorplanServerData.html +6 -6
  130. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  131. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  132. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  133. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  134. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  135. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  136. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  137. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  138. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  139. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  140. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
  141. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  142. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  143. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  144. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  145. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  146. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  147. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  148. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  149. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  150. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  151. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
  152. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  153. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  154. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  155. package/docs/interfaces/HelperOffset.html +7 -7
  156. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  157. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  158. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  159. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  160. package/docs/interfaces/MinMax.html +6 -6
  161. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  162. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  163. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  164. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  165. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  166. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  167. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  168. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  169. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  170. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  171. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  172. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  173. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  174. package/docs/interfaces/Object3DHelperState.html +7 -7
  175. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  176. package/docs/interfaces/PaintBrushAction.html +11 -11
  177. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  178. package/docs/interfaces/PaintBrushState.html +9 -9
  179. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  180. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  181. package/docs/interfaces/PanoMeasureParameterType.html +15 -15
  182. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  183. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  184. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  185. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  186. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  187. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  188. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  189. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  190. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  191. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  192. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  193. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  194. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  195. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  196. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  197. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  198. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  199. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  200. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  201. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  202. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  203. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  204. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  205. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  206. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  207. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  208. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  209. package/docs/interfaces/Point.html +7 -7
  210. package/docs/interfaces/Room.html +8 -8
  211. package/docs/interfaces/RoomInfo.html +6 -6
  212. package/docs/interfaces/RoomLabel.html +13 -13
  213. package/docs/interfaces/RoomRules.html +4 -4
  214. package/docs/interfaces/Rooms.html +4 -4
  215. package/docs/interfaces/Scissor.html +8 -8
  216. package/docs/interfaces/State.html +7 -7
  217. package/docs/interfaces/TagCacheInterface.html +11 -11
  218. package/docs/interfaces/TagConfig.html +15 -15
  219. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  220. package/docs/interfaces/TagIconUrl.html +11 -11
  221. package/docs/interfaces/TagObjectGroup.html +5 -5
  222. package/docs/interfaces/TagStyle.html +5 -5
  223. package/docs/interfaces/Tags.html +8 -8
  224. package/docs/interfaces/TemporaryState.html +5 -5
  225. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  226. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  227. package/docs/interfaces/Util.PointIntersection.html +7 -7
  228. package/docs/modules/AreaMakerPluginType.html +4 -4
  229. package/docs/modules/CruisePluginTypes.html +4 -4
  230. package/docs/modules/CurrentPanoImagePluginType.html +4 -4
  231. package/docs/modules/GuideLineItem.html +4 -4
  232. package/docs/modules/GuideLineModeItem.html +4 -4
  233. package/docs/modules/GuideLinePluginType.html +4 -4
  234. package/docs/modules/PanoVideoPluginType.html +4 -4
  235. package/docs/modules/Util.html +4 -4
  236. package/docs/modules.html +4 -4
  237. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -4
  238. package/docs/types/AreaMakerPluginType.PluginData.html +4 -4
  239. package/docs/types/AreaMakerPluginType.ServerData.html +4 -4
  240. package/docs/types/ArrayPosition.html +4 -4
  241. package/docs/types/AudioAppearance.html +4 -4
  242. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  243. package/docs/types/CSS3DRenderExportType.html +4 -4
  244. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  245. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  246. package/docs/types/ClassFunctionParameters.html +4 -4
  247. package/docs/types/Color.html +4 -4
  248. package/docs/types/ContentTypeConfigKey.html +4 -4
  249. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  250. package/docs/types/ContentTypeMap.html +4 -4
  251. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  252. package/docs/types/Create3DElementReturnType.html +4 -4
  253. package/docs/types/CruisePluginExportType.html +4 -4
  254. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  255. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  256. package/docs/types/CurrentPanoImagePluginExportType.html +4 -4
  257. package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
  258. package/docs/types/DeprecatedTagProperty.html +4 -4
  259. package/docs/types/Direction-1.html +4 -4
  260. package/docs/types/Direction4.html +4 -4
  261. package/docs/types/ElementRenderer.html +4 -4
  262. package/docs/types/FloorplanRuleLabels.html +4 -4
  263. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  264. package/docs/types/GuideLinePluginExportType.html +4 -4
  265. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  266. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  267. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  268. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  269. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  270. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  271. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  272. package/docs/types/HelperEventMap.html +4 -4
  273. package/docs/types/LoadTagConfig.html +4 -4
  274. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  275. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  276. package/docs/types/MediaData.html +4 -4
  277. package/docs/types/MediaStore.html +4 -4
  278. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  279. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  280. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  281. package/docs/types/ModelId.html +4 -4
  282. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  283. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  284. package/docs/types/MoveArgs.html +4 -4
  285. package/docs/types/MoveOpts.html +4 -4
  286. package/docs/types/Object3DHelperEventMap.html +4 -4
  287. package/docs/types/ObjectFit.html +4 -4
  288. package/docs/types/PaintBrushEventMap.html +4 -4
  289. package/docs/types/PanoCompassPluginData.html +4 -4
  290. package/docs/types/PanoCompassPluginExportType.html +4 -4
  291. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  292. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  293. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  294. package/docs/types/PanoIndex.html +4 -4
  295. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  296. package/docs/types/PanoMeasureReturnType.html +4 -4
  297. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  298. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  299. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  300. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  301. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  302. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  303. package/docs/types/PipelinePluginParameterType.html +4 -4
  304. package/docs/types/PipelinePluginReturnType.html +4 -4
  305. package/docs/types/PlaneTag.html +4 -4
  306. package/docs/types/Point2DTag.html +4 -4
  307. package/docs/types/Point3DTag.html +4 -4
  308. package/docs/types/PointTag.html +4 -4
  309. package/docs/types/PointTagInstance.html +4 -4
  310. package/docs/types/Position.html +4 -4
  311. package/docs/types/RotateArgs.html +4 -4
  312. package/docs/types/RotateOpts.html +4 -4
  313. package/docs/types/RuleLabelsKey.html +4 -4
  314. package/docs/types/RuleLabelsValue.html +4 -4
  315. package/docs/types/StickType.html +4 -4
  316. package/docs/types/Tag.html +4 -4
  317. package/docs/types/Tag2D.html +4 -4
  318. package/docs/types/Tag3D.html +4 -4
  319. package/docs/types/TagConfigByKey.html +4 -4
  320. package/docs/types/TagContentType.html +4 -4
  321. package/docs/types/TagDimensionType.html +4 -4
  322. package/docs/types/TagElement.html +4 -4
  323. package/docs/types/TagEvents.html +4 -4
  324. package/docs/types/TagGLTFObject.html +4 -4
  325. package/docs/types/TagHooks.html +4 -4
  326. package/docs/types/TagId.html +4 -4
  327. package/docs/types/TagInstance.html +4 -4
  328. package/docs/types/TagPointType.html +4 -4
  329. package/docs/types/TagRendererMap.html +4 -4
  330. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  331. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  332. package/docs/types/WorkCode.html +4 -4
  333. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  334. package/docs/variables/PLUGIN.html +4 -4
  335. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  336. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  337. package/docs/variables/defaultGlobalConfig.html +4 -4
  338. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  339. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  340. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  341. package/libs/PanoTagPlugin/controller/TagComputer.js +20 -19
  342. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  343. package/libs/base/BasePlugin.js +1 -1
  344. package/libs/shared-utils/logger.js +1 -1
  345. package/libs/shared-utils/three/getNormal.js +5 -5
  346. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ import dl from "animejs";
39
39
  import { GLTFLoader as Zf } from "@realsee/five/gltf-loader";
40
40
  function qf() {
41
41
  console.debug(
42
- "%c %c@realsee/dnalogel %cv3.0.0-2",
42
+ "%c %c@realsee/dnalogel %cv3.0.0-4",
43
43
  [
44
44
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
45
45
  "background-repeat: no-repeat",
@@ -366,13 +366,13 @@ var jt = Object.freeze({
366
366
  var h = i[r];
367
367
  if (h.length === 0)
368
368
  continue;
369
- for (var f = [a], m = 0, A = h.length; m < A; m += 1) {
370
- var p = this._handleRelativeValue(a, h[m]);
371
- if (isNaN(p)) {
369
+ for (var f = [a], m = 0, p = h.length; m < p; m += 1) {
370
+ var A = this._handleRelativeValue(a, h[m]);
371
+ if (isNaN(A)) {
372
372
  d = !1, console.warn("Found invalid interpolation list. Skipping.");
373
373
  break;
374
374
  }
375
- f.push(p);
375
+ f.push(A);
376
376
  }
377
377
  d && (i[r] = f);
378
378
  }
@@ -813,8 +813,8 @@ let um = class extends dm {
813
813
  i.strokeStyle = s;
814
814
  let o = null, r = [], a, l = [], c = 0;
815
815
  const d = (h, f, m) => {
816
- const A = this.color || "#ff0000";
817
- i.strokeStyle = A, i.beginPath(), i.moveTo(h.x, h.y), i.quadraticCurveTo(f.x, f.y, m.x, m.y), i.stroke();
816
+ const p = this.color || "#ff0000";
817
+ i.strokeStyle = p, i.beginPath(), i.moveTo(h.x, h.y), i.quadraticCurveTo(f.x, f.y, m.x, m.y), i.stroke();
818
818
  };
819
819
  e.onmousedown = (h) => {
820
820
  h.preventDefault(), c = Date.now();
@@ -826,8 +826,8 @@ let um = class extends dm {
826
826
  const f = Number(h.clientX), m = Number(h.clientY);
827
827
  if (Math.abs(f - o.x) < 5 && Math.abs(m - o.y) < 5 || (r.push({ x: f, y: m }), l.push(Rs({ x: f, y: m }, this.clientWidth, this.clientHeight)), r.length < 3))
828
828
  return;
829
- const { control: A, end: p } = Vs(r);
830
- !A || !p || (d(o, A, p), o = p);
829
+ const { control: p, end: A } = Vs(r);
830
+ !p || !A || (d(o, p, A), o = A);
831
831
  }, e.onmouseup = (h) => {
832
832
  if (h.preventDefault(), o = null, r.length < 3)
833
833
  return;
@@ -859,8 +859,8 @@ let um = class extends dm {
859
859
  const f = Number(h.touches[0].clientX), m = Number(h.touches[0].clientY);
860
860
  if (Math.abs(f - o.x) < 5 && Math.abs(m - o.y) < 5 || (r.push({ x: f, y: m }), l.push(Rs({ x: f, y: m }, this.clientWidth, this.clientHeight)), r.length < 3))
861
861
  return;
862
- const { control: A, end: p } = Vs(r);
863
- !A || !p || (d(o, A, p), o = p);
862
+ const { control: p, end: A } = Vs(r);
863
+ !p || !A || (d(o, p, A), o = A);
864
864
  }, e.ontouchend = e.ontouchcancel = (h) => {
865
865
  if (h.preventDefault(), o = null, r.length < 3)
866
866
  return;
@@ -947,15 +947,15 @@ let um = class extends dm {
947
947
  const { line: l = [], color: c = "black", duration: d = 0, uuid: h } = i, f = Mr(i.move || {}, this.clientWidth, this.clientHeight);
948
948
  let m = [f];
949
949
  if (a.strokeStyle = c, a.beginPath(), a.moveTo(f.x, f.y), d && !s) {
950
- let A = [];
951
- const p = this;
952
- p.tween = lm({ step: 0 }, { step: l.length - 1 }, d).onUpdate(({ step: g }) => {
950
+ let p = [];
951
+ const A = this;
952
+ A.tween = lm({ step: 0 }, { step: l.length - 1 }, d).onUpdate(({ step: g }) => {
953
953
  var y;
954
- if (p.tweening = !0, !p.ready)
955
- return a.clearRect(0, 0, p.canvas[h].width, p.canvas[h].height), (y = p.tween) == null ? void 0 : y.stop();
954
+ if (A.tweening = !0, !A.ready)
955
+ return a.clearRect(0, 0, A.canvas[h].width, A.canvas[h].height), (y = A.tween) == null ? void 0 : y.stop();
956
956
  const v = Math.floor(g);
957
- if (!A.find((P) => P === v)) {
958
- if (A.push(v), m.push(Mr(l[v], p.clientWidth, p.clientHeight)), m.length < 3)
957
+ if (!p.find((P) => P === v)) {
958
+ if (p.push(v), m.push(Mr(l[v], A.clientWidth, A.clientHeight)), m.length < 3)
959
959
  return;
960
960
  const { control: P, end: k } = Vs(m);
961
961
  if (!P || !k)
@@ -963,14 +963,14 @@ let um = class extends dm {
963
963
  a.quadraticCurveTo(P.x, P.y, k.x, k.y), a.stroke();
964
964
  }
965
965
  }).onComplete((g) => {
966
- p.tween = void 0, p.tweening = !1, A = [], m = [], o && o(), r();
966
+ A.tween = void 0, A.tweening = !1, p = [], m = [], o && o(), r();
967
967
  });
968
968
  } else {
969
- for (let A = 0; A < l.length; A++) {
970
- if (m.push(Mr(l[A], this.clientWidth, this.clientHeight)), m.length < 3)
969
+ for (let p = 0; p < l.length; p++) {
970
+ if (m.push(Mr(l[p], this.clientWidth, this.clientHeight)), m.length < 3)
971
971
  continue;
972
- const { control: p, end: g } = Vs(m);
973
- !p || !g || a.quadraticCurveTo(p.x, p.y, g.x, g.y);
972
+ const { control: A, end: g } = Vs(m);
973
+ !A || !g || a.quadraticCurveTo(A.x, A.y, g.x, g.y);
974
974
  }
975
975
  a.stroke(), m = [], o && o(), r();
976
976
  }
@@ -1089,10 +1089,10 @@ const zE = (n, t) => {
1089
1089
  return J.children.forEach(($) => X.add(Y($))), X;
1090
1090
  }
1091
1091
  }
1092
- }, A = () => {
1092
+ }, p = () => {
1093
1093
  if (n.renderer)
1094
1094
  return o || (o = new C.WebGLRenderer({ antialias: !1, alpha: !0 }), o.setPixelRatio(n.renderer.getPixelRatio()), o.outputEncoding = C.sRGBEncoding, o.setClearColor(1579548, 0), o.autoClear = !0), o;
1095
- }, p = () => {
1095
+ }, A = () => {
1096
1096
  d.traverse((Q) => {
1097
1097
  Q instanceof C.Mesh && [].concat(Q.material).forEach((J) => J.dispose());
1098
1098
  }), l.remove(d), d = new C.Object3D(), l.add(d), i = !1, R();
@@ -1103,7 +1103,7 @@ const zE = (n, t) => {
1103
1103
  }, y = () => {
1104
1104
  e && (l.remove(d), s = !0, L(), e = !1);
1105
1105
  }, P = (Q, Y = {}) => {
1106
- const J = A();
1106
+ const J = p();
1107
1107
  if (!J)
1108
1108
  return;
1109
1109
  Q.appendChild(J.domElement), k(Y);
@@ -1144,7 +1144,7 @@ const zE = (n, t) => {
1144
1144
  }, N = () => ({
1145
1145
  enabled: e
1146
1146
  });
1147
- return Object.assign(window, { camera: c }), n.on("modelLoaded", g), n.on("modelWillLoad", p), n.on("cameraDirectionUpdate", R), n.on("dispose", W), n.on("renderFrame", L), n.on("cameraPositionUpdate", R), { appendTo: P, refresh: k, changeConfigs: F, enable: v, disable: y, getCurrentState: N };
1147
+ return Object.assign(window, { camera: c }), n.on("modelLoaded", g), n.on("modelWillLoad", A), n.on("cameraDirectionUpdate", R), n.on("dispose", W), n.on("renderFrame", L), n.on("cameraPositionUpdate", R), { appendTo: P, refresh: k, changeConfigs: F, enable: v, disable: y, getCurrentState: N };
1148
1148
  }, fm = ({ x: n, y: t, z: e }) => new ie(n, t, e), kt = (n) => new ie().fromArray(n), hn = (n) => n instanceof ie ? n : Array.isArray(n) ? kt(n) : fm(n);
1149
1149
  function mm(n) {
1150
1150
  if (n)
@@ -1324,16 +1324,16 @@ class Cm extends ea {
1324
1324
  constructor(e) {
1325
1325
  var x, E, R;
1326
1326
  const i = e.container, s = e.cornerPoints, o = (x = e.ratio) != null ? x : wm, r = (E = e.dpr) != null ? E : 1, a = (R = e.pointerEvents) != null ? R : "auto", l = Math.max(ym, o), c = s[0].distanceTo(s[1]), d = s[1].distanceTo(s[2]), h = lo(c / o * r), f = lo(d / o * r), m = yi(...s);
1327
- let A;
1327
+ let p;
1328
1328
  if (l === o)
1329
- i.style.width = `${h}px`, i.style.height = `${f}px`, A = i;
1329
+ i.style.width = `${h}px`, i.style.height = `${f}px`, p = i;
1330
1330
  else {
1331
1331
  const L = document.createElement("div");
1332
1332
  L.style.width = `${h}px`, L.style.height = `${f}px`, L.style.pointerEvents = "none";
1333
1333
  const W = o / l;
1334
- i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${W * h}px`, i.style.height = `${W * f}px`, L.appendChild(i), A = L;
1334
+ i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${W * h}px`, i.style.height = `${W * f}px`, L.appendChild(i), p = L;
1335
1335
  }
1336
- super(A);
1336
+ super(p);
1337
1337
  u(this, "version", Bh);
1338
1338
  u(this, "isCSS3DObjectPlus", !0);
1339
1339
  u(this, "container");
@@ -1368,7 +1368,7 @@ class Cm extends ea {
1368
1368
  this.width = L * c, this.height = L * d, this.domWidthPx = L * h, this.domHeightPx = L * f, this.centerPosition = new ie().subVectors(m, s[0]).multiplyScalar(L).add(s[0]);
1369
1369
  }
1370
1370
  i.classList.add(`${bm}__container`);
1371
- const p = new ie().subVectors(s[1], s[0]), g = new ie().subVectors(s[3], s[0]), v = new ie().crossVectors(p, g).normalize();
1371
+ const A = new ie().subVectors(s[1], s[0]), g = new ie().subVectors(s[3], s[0]), v = new ie().crossVectors(A, g).normalize();
1372
1372
  this.lookAt(v);
1373
1373
  const y = this.up.clone().applyQuaternion(this.quaternion), P = g.clone(), k = new ie().crossVectors(y, P).normalize();
1374
1374
  this.rotateOnWorldAxis(k, y.angleTo(P)), this.position.copy(m), this.addEventListener("added", () => {
@@ -1573,20 +1573,20 @@ class As {
1573
1573
  return console.error(`${as}: requires 4 point but params may have fewer`);
1574
1574
  const { ratio: r, devicePixelRatio: a, mode: l, autoRender: c, container: d, pointerEvents: h, wrapperStyle: f } = s;
1575
1575
  let m = !1;
1576
- const A = this.createObject(o, { ratio: r, dpr: a, container: d, mode: l, pointerEvents: h, wrapperStyle: f });
1577
- Ye.css3DObjects.push(A), s.scene && this.setScene(s.scene);
1578
- const p = () => {
1576
+ const p = this.createObject(o, { ratio: r, dpr: a, container: d, mode: l, pointerEvents: h, wrapperStyle: f });
1577
+ Ye.css3DObjects.push(p), s.scene && this.setScene(s.scene);
1578
+ const A = () => {
1579
1579
  if (m)
1580
1580
  return;
1581
- const x = A.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
1582
- x && x.add(A);
1581
+ const x = p.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
1582
+ x && x.add(p);
1583
1583
  }, g = () => {
1584
- m || (p(), this.render(t), this.hooks.emit("render"));
1585
- }, v = (x) => this.setVisibleById(A.id, x), y = (x) => this.setEnabledById(A.id, x), P = () => (m = !0, A.removeFromParent(), !0), k = l === "front" ? Ye.frontModeStore.css3DRenderer : Ye.behindModeStore.css3DRenderer;
1584
+ m || (A(), this.render(t), this.hooks.emit("render"));
1585
+ }, v = (x) => this.setVisibleById(p.id, x), y = (x) => this.setEnabledById(p.id, x), P = () => (m = !0, p.removeFromParent(), !0), k = l === "front" ? Ye.frontModeStore.css3DRenderer : Ye.behindModeStore.css3DRenderer;
1586
1586
  return c && g(), {
1587
- id: A.uuid,
1587
+ id: p.uuid,
1588
1588
  container: d,
1589
- css3DObject: A,
1589
+ css3DObject: p,
1590
1590
  render: c ? void 0 : g,
1591
1591
  show: () => v(!0),
1592
1592
  hide: () => v(!1),
@@ -1933,9 +1933,9 @@ let ka = class {
1933
1933
  render() {
1934
1934
  if (!this.five.renderer || !this.containerDom)
1935
1935
  return;
1936
- const { scale: t, context: e, width: i, height: s } = this, o = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new C.Vector2()), a = 1, l = i / t, c = s / t, d = a * t, h = (o.x + 1) / 2 * r.x, f = (o.y + 1) / 2 * r.y, m = this.five.getPixels(h - l / 2, f - l / 2, l, c, d), A = Math.floor(i * a), p = Math.floor(s * a);
1937
- Lm(m, A, p);
1938
- const g = new ImageData(A, p);
1936
+ const { scale: t, context: e, width: i, height: s } = this, o = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new C.Vector2()), a = 1, l = i / t, c = s / t, d = a * t, h = (o.x + 1) / 2 * r.x, f = (o.y + 1) / 2 * r.y, m = this.five.getPixels(h - l / 2, f - l / 2, l, c, d), p = Math.floor(i * a), A = Math.floor(s * a);
1937
+ Lm(m, p, A);
1938
+ const g = new ImageData(p, A);
1939
1939
  g.data.set(m), e.putImageData(g, 0, 0);
1940
1940
  }
1941
1941
  initStyle() {
@@ -2454,21 +2454,21 @@ const VE = (n) => {
2454
2454
  n.off("intersectionOnModelUpdate", e), n.off("intersectionHidden", i);
2455
2455
  });
2456
2456
  const s = (d, h = 2, f = 0.1) => {
2457
- const m = h / 2, p = c(d, f), g = new dn();
2457
+ const m = h / 2, A = c(d, f), g = new dn();
2458
2458
  g.add(
2459
2459
  Sr(
2460
- new ie(p.x + m, p.y, p.z),
2461
- new ie(p.x - m, p.y, p.z),
2460
+ new ie(A.x + m, A.y, A.z),
2461
+ new ie(A.x - m, A.y, A.z),
2462
2462
  new ie(1, 0, 0)
2463
2463
  ),
2464
2464
  Sr(
2465
- new ie(p.x, p.y + m, p.z),
2466
- new ie(p.x, p.y - m, p.z),
2465
+ new ie(A.x, A.y + m, A.z),
2466
+ new ie(A.x, A.y - m, A.z),
2467
2467
  new ie(0, 1, 0)
2468
2468
  ),
2469
2469
  Sr(
2470
- new ie(p.x, p.y, p.z + m),
2471
- new ie(p.x, p.y, p.z - m),
2470
+ new ie(A.x, A.y, A.z + m),
2471
+ new ie(A.x, A.y, A.z - m),
2472
2472
  new ie(0, 0, 1)
2473
2473
  )
2474
2474
  ), n.scene.add(g), n.needsRender = !0;
@@ -2481,7 +2481,7 @@ const VE = (n) => {
2481
2481
  const f = (v = n == null ? void 0 : n.camera) == null ? void 0 : v.position;
2482
2482
  if (!f)
2483
2483
  return !1;
2484
- const m = d.distanceTo(f), A = d.sub(f).normalize(), p = new bi(f, A), g = (y = n.model.intersectRaycaster(p)) == null ? void 0 : y[0];
2484
+ const m = d.distanceTo(f), p = d.sub(f).normalize(), A = new bi(f, p), g = (y = n.model.intersectRaycaster(A)) == null ? void 0 : y[0];
2485
2485
  return !(g && g.distance + h < m);
2486
2486
  }, r = () => t.intersection, a = () => {
2487
2487
  var d, h;
@@ -2740,10 +2740,10 @@ function mo(n, t, e, i, s, o, r, a = 0) {
2740
2740
  `;
2741
2741
  }
2742
2742
  const d = c + `100% {${r(e, 1 - e)}}
2743
- }`, h = `__svelte_${ig(d)}_${a}`, f = La(n), { stylesheet: m, rules: A } = uo.get(f) || ng(f, n);
2744
- A[h] || (A[h] = !0, m.insertRule(`@keyframes ${h} ${d}`, m.cssRules.length));
2745
- const p = n.style.animation || "";
2746
- return n.style.animation = `${p ? `${p}, ` : ""}${h} ${i}ms linear ${s}ms 1 both`, fo += 1, h;
2743
+ }`, h = `__svelte_${ig(d)}_${a}`, f = La(n), { stylesheet: m, rules: p } = uo.get(f) || ng(f, n);
2744
+ p[h] || (p[h] = !0, m.insertRule(`@keyframes ${h} ${d}`, m.cssRules.length));
2745
+ const A = n.style.animation || "";
2746
+ return n.style.animation = `${A ? `${A}, ` : ""}${h} ${i}ms linear ${s}ms 1 both`, fo += 1, h;
2747
2747
  }
2748
2748
  function go(n, t) {
2749
2749
  const e = (n.style.animation || "").split(", "), i = e.filter(
@@ -2901,16 +2901,16 @@ function Qi(n, t, e) {
2901
2901
  r && go(n, r);
2902
2902
  }
2903
2903
  function d() {
2904
- const { delay: f = 0, duration: m = 300, easing: A = ni, tick: p = Z, css: g } = s || Ba;
2905
- g && (r = mo(n, 0, 1, m, f, A, g, l++)), p(0, 1);
2904
+ const { delay: f = 0, duration: m = 300, easing: p = ni, tick: A = Z, css: g } = s || Ba;
2905
+ g && (r = mo(n, 0, 1, m, f, p, g, l++)), A(0, 1);
2906
2906
  const v = Da() + f, y = v + m;
2907
2907
  a && a.abort(), o = !0, Ne(() => Li(n, !0, "start")), a = Ta((P) => {
2908
2908
  if (o) {
2909
2909
  if (P >= y)
2910
- return p(1, 0), Li(n, !0, "end"), c(), o = !1;
2910
+ return A(1, 0), Li(n, !0, "end"), c(), o = !1;
2911
2911
  if (P >= v) {
2912
- const k = A((P - v) / m);
2913
- p(k, 1 - k);
2912
+ const k = p((P - v) / m);
2913
+ A(k, 1 - k);
2914
2914
  }
2915
2915
  }
2916
2916
  return o;
@@ -2937,13 +2937,13 @@ function Bn(n, t, e) {
2937
2937
  function l() {
2938
2938
  const { delay: c = 0, duration: d = 300, easing: h = ni, tick: f = Z, css: m } = s || Ba;
2939
2939
  m && (r = mo(n, 1, 0, d, c, h, m));
2940
- const A = Da() + c, p = A + d;
2940
+ const p = Da() + c, A = p + d;
2941
2941
  Ne(() => Li(n, !1, "start")), Ta((g) => {
2942
2942
  if (o) {
2943
- if (g >= p)
2943
+ if (g >= A)
2944
2944
  return f(0, 1), Li(n, !1, "end"), --a.r || Je(a.c), !1;
2945
- if (g >= A) {
2946
- const v = h((g - A) / d);
2945
+ if (g >= p) {
2946
+ const v = h((g - p) / d);
2947
2947
  f(1 - v, v);
2948
2948
  }
2949
2949
  }
@@ -2964,25 +2964,25 @@ function Wt(n, t, e, i) {
2964
2964
  function d() {
2965
2965
  c && go(n, c);
2966
2966
  }
2967
- function h(m, A) {
2968
- const p = m.b - r;
2969
- return A *= Math.abs(p), {
2967
+ function h(m, p) {
2968
+ const A = m.b - r;
2969
+ return p *= Math.abs(A), {
2970
2970
  a: r,
2971
2971
  b: m.b,
2972
- d: p,
2973
- duration: A,
2972
+ d: A,
2973
+ duration: p,
2974
2974
  start: m.start,
2975
- end: m.start + A,
2975
+ end: m.start + p,
2976
2976
  group: m.group
2977
2977
  };
2978
2978
  }
2979
2979
  function f(m) {
2980
- const { delay: A = 0, duration: p = 300, easing: g = ni, tick: v = Z, css: y } = o || Ba, P = {
2981
- start: Da() + A,
2980
+ const { delay: p = 0, duration: A = 300, easing: g = ni, tick: v = Z, css: y } = o || Ba, P = {
2981
+ start: Da() + p,
2982
2982
  b: m
2983
2983
  };
2984
- m || (P.group = Nt, Nt.r += 1), a || l ? l = P : (y && (d(), c = mo(n, r, m, p, A, g, y)), m && v(0, 1), a = h(P, p), Ne(() => Li(n, m, "start")), Ta((k) => {
2985
- if (l && k > l.start && (a = h(l, p), l = null, Li(n, a.b, "start"), y && (d(), c = mo(n, r, a.b, a.duration, 0, g, o.css))), a) {
2984
+ m || (P.group = Nt, Nt.r += 1), a || l ? l = P : (y && (d(), c = mo(n, r, m, A, p, g, y)), m && v(0, 1), a = h(P, A), Ne(() => Li(n, m, "start")), Ta((k) => {
2985
+ if (l && k > l.start && (a = h(l, A), l = null, Li(n, a.b, "start"), y && (d(), c = mo(n, r, a.b, a.duration, 0, g, o.css))), a) {
2986
2986
  if (k >= a.end)
2987
2987
  v(r = a.b, 1 - r), Li(n, a.b, "end"), l || (a.b ? d() : --a.group.r || Je(a.group.c)), a = null;
2988
2988
  else if (k >= a.start) {
@@ -3049,15 +3049,15 @@ function Ci(n, t) {
3049
3049
  });
3050
3050
  }
3051
3051
  function Bt(n, t, e, i, s, o, r, a, l, c, d, h) {
3052
- let f = n.length, m = o.length, A = f;
3053
- const p = {};
3054
- for (; A--; )
3055
- p[n[A].key] = A;
3052
+ let f = n.length, m = o.length, p = f;
3053
+ const A = {};
3054
+ for (; p--; )
3055
+ A[n[p].key] = p;
3056
3056
  const g = [], v = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), P = [];
3057
- for (A = m; A--; ) {
3058
- const R = h(s, o, A), L = e(R);
3057
+ for (p = m; p--; ) {
3058
+ const R = h(s, o, p), L = e(R);
3059
3059
  let W = r.get(L);
3060
- W ? i && P.push(() => W.p(R, t)) : (W = c(L, R), W.c()), v.set(L, g[A] = W), L in p && y.set(L, Math.abs(A - p[L]));
3060
+ W ? i && P.push(() => W.p(R, t)) : (W = c(L, R), W.c()), v.set(L, g[p] = W), L in A && y.set(L, Math.abs(p - A[L]));
3061
3061
  }
3062
3062
  const k = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
3063
3063
  function E(R) {
@@ -3145,8 +3145,8 @@ function ae(n, t, e, i, s, o, r, a = [-1]) {
3145
3145
  r && r(c.root);
3146
3146
  let d = !1;
3147
3147
  if (c.ctx = e ? e(n, t.props || {}, (h, f, ...m) => {
3148
- const A = m.length ? m[0] : f;
3149
- return c.ctx && s(c.ctx[h], c.ctx[h] = A) && (!c.skip_bound && c.bound[h] && c.bound[h](A), d && lg(n, h)), f;
3148
+ const p = m.length ? m[0] : f;
3149
+ return c.ctx && s(c.ctx[h], c.ctx[h] = p) && (!c.skip_bound && c.bound[h] && c.bound[h](p), d && lg(n, h)), f;
3150
3150
  }) : [], c.update(), d = !0, Je(c.before_update), c.fragment = i ? i(c.ctx) : !1, t.target) {
3151
3151
  if (t.hydrate) {
3152
3152
  const h = eg(t.target);
@@ -3560,8 +3560,8 @@ function Rn(n) {
3560
3560
  new Tg((e, i) => {
3561
3561
  var s, o, r, a, l, c;
3562
3562
  for (const d of e) {
3563
- const { borderBoxSize: h, contentRect: f } = d, m = (r = (o = (s = h == null ? void 0 : h[0]) == null ? void 0 : s.inlineSize) != null ? o : f.width) != null ? r : n.clientWidth, A = (c = (l = (a = h == null ? void 0 : h[0]) == null ? void 0 : a.blockSize) != null ? l : f.height) != null ? c : n.clientHeight;
3564
- n.dispatchEvent(new CustomEvent("clientWidth", { detail: m })), n.dispatchEvent(new CustomEvent("clientHeight", { detail: A }));
3563
+ const { borderBoxSize: h, contentRect: f } = d, m = (r = (o = (s = h == null ? void 0 : h[0]) == null ? void 0 : s.inlineSize) != null ? o : f.width) != null ? r : n.clientWidth, p = (c = (l = (a = h == null ? void 0 : h[0]) == null ? void 0 : a.blockSize) != null ? l : f.height) != null ? c : n.clientHeight;
3564
+ n.dispatchEvent(new CustomEvent("clientWidth", { detail: m })), n.dispatchEvent(new CustomEvent("clientHeight", { detail: p }));
3565
3565
  }
3566
3566
  }).observe(n);
3567
3567
  }
@@ -3720,9 +3720,9 @@ function Og(n, t, e) {
3720
3720
  }), Ot(() => {
3721
3721
  s.off("cameraUpdate", f), s.off("modelShownFloorChange", m);
3722
3722
  });
3723
- const A = (v) => {
3723
+ const p = (v) => {
3724
3724
  e(2, r = v.detail);
3725
- }, p = (v) => {
3725
+ }, A = (v) => {
3726
3726
  e(3, a = v.detail);
3727
3727
  };
3728
3728
  return n.$$set = (v) => {
@@ -3738,8 +3738,8 @@ function Og(n, t, e) {
3738
3738
  a,
3739
3739
  l,
3740
3740
  i,
3741
- A,
3742
- p
3741
+ p,
3742
+ A
3743
3743
  ];
3744
3744
  }
3745
3745
  class Bg extends le {
@@ -3863,13 +3863,13 @@ function it(n, { delay: t = 0, duration: e = 400, easing: i = ni } = {}) {
3863
3863
  };
3864
3864
  }
3865
3865
  function Il(n, { delay: t = 0, duration: e = 400, easing: i = pu, x: s = 0, y: o = 0, opacity: r = 0 } = {}) {
3866
- const a = getComputedStyle(n), l = +a.opacity, c = a.transform === "none" ? "" : a.transform, d = l * (1 - r), [h, f] = vl(s), [m, A] = vl(o);
3866
+ const a = getComputedStyle(n), l = +a.opacity, c = a.transform === "none" ? "" : a.transform, d = l * (1 - r), [h, f] = vl(s), [m, p] = vl(o);
3867
3867
  return {
3868
3868
  delay: t,
3869
3869
  duration: e,
3870
3870
  easing: i,
3871
- css: (p, g) => `
3872
- transform: ${c} translate(${(1 - p) * h}${f}, ${(1 - p) * m}${A});
3871
+ css: (A, g) => `
3872
+ transform: ${c} translate(${(1 - A) * h}${f}, ${(1 - A) * m}${p});
3873
3873
  opacity: ${l - d * g}`
3874
3874
  };
3875
3875
  }
@@ -3960,7 +3960,7 @@ function Gg(n) {
3960
3960
  }
3961
3961
  function Ng(n, t, e) {
3962
3962
  let { panoIndex: i } = t, { floorplanData: s } = t, { lastPanoramaLongitude: o } = t, { cameraImageUrl: r } = t;
3963
- const { observers: a } = s, l = a[i], c = l.positionInImage.x, d = l.positionInImage.y, h = c * 100 + "%", f = d * 100 + "%", m = -Au(o) + 45, A = document.body.clientWidth, p = document.body.clientHeight, v = `${(A < 500 || p < 500 ? 17 : 37) / 16}rem`;
3963
+ const { observers: a } = s, l = a[i], c = l.positionInImage.x, d = l.positionInImage.y, h = c * 100 + "%", f = d * 100 + "%", m = -Au(o) + 45, p = document.body.clientWidth, A = document.body.clientHeight, v = `${(p < 500 || A < 500 ? 17 : 37) / 16}rem`;
3964
3964
  return n.$$set = (y) => {
3965
3965
  "panoIndex" in y && e(5, i = y.panoIndex), "floorplanData" in y && e(6, s = y.floorplanData), "lastPanoramaLongitude" in y && e(7, o = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(0, r = y.cameraImageUrl);
3966
3966
  }, [
@@ -4477,7 +4477,7 @@ function fp(n, t) {
4477
4477
  return s;
4478
4478
  }
4479
4479
  function mp(n, t, e) {
4480
- let i, s, o, r, a, { pxmm: l } = t, { roomAreaEnable: c } = t, { roomNameEnable: d } = t, { room: h } = t, { hoveredRoom: f } = t, { getRoomAreaText: m } = t, { getLabelElement: A } = t, { adaptiveRoomLabelVisibleEnable: p } = t;
4480
+ let i, s, o, r, a, { pxmm: l } = t, { roomAreaEnable: c } = t, { roomNameEnable: d } = t, { room: h } = t, { hoveredRoom: f } = t, { getRoomAreaText: m } = t, { getLabelElement: p } = t, { adaptiveRoomLabelVisibleEnable: A } = t;
4481
4481
  function g(G, _) {
4482
4482
  if (_.width === 0 || _.height === 0)
4483
4483
  return () => !1;
@@ -4503,19 +4503,19 @@ function mp(n, t, e) {
4503
4503
  e(5, L = G.detail);
4504
4504
  };
4505
4505
  return n.$$set = (G) => {
4506
- "pxmm" in G && e(12, l = G.pxmm), "roomAreaEnable" in G && e(0, c = G.roomAreaEnable), "roomNameEnable" in G && e(1, d = G.roomNameEnable), "room" in G && e(2, h = G.room), "hoveredRoom" in G && e(13, f = G.hoveredRoom), "getRoomAreaText" in G && e(14, m = G.getRoomAreaText), "getLabelElement" in G && e(3, A = G.getLabelElement), "adaptiveRoomLabelVisibleEnable" in G && e(15, p = G.adaptiveRoomLabelVisibleEnable);
4506
+ "pxmm" in G && e(12, l = G.pxmm), "roomAreaEnable" in G && e(0, c = G.roomAreaEnable), "roomNameEnable" in G && e(1, d = G.roomNameEnable), "room" in G && e(2, h = G.room), "hoveredRoom" in G && e(13, f = G.hoveredRoom), "getRoomAreaText" in G && e(14, m = G.getRoomAreaText), "getLabelElement" in G && e(3, p = G.getLabelElement), "adaptiveRoomLabelVisibleEnable" in G && e(15, A = G.adaptiveRoomLabelVisibleEnable);
4507
4507
  }, n.$$.update = () => {
4508
4508
  n.$$.dirty & /*getLabelElement, room*/
4509
- 12 && e(8, i = A == null ? void 0 : A(h)), n.$$.dirty & /*room, getRoomAreaText*/
4509
+ 12 && e(8, i = p == null ? void 0 : p(h)), n.$$.dirty & /*room, getRoomAreaText*/
4510
4510
  16388 && e(7, s = h.size ? m(h.size) : ""), n.$$.dirty & /*clientWidth, clientHeight*/
4511
4511
  48 && e(18, o = { width: R, height: L }), n.$$.dirty & /*labelElementSize, room*/
4512
4512
  262148 && e(17, r = o ? g(h, o) : void 0), n.$$.dirty & /*adaptiveRoomLabelVisibleEnable, isHovered, isLabelInRoom, pxmm*/
4513
- 233472 && e(6, a = p ? W ? !0 : !!(r != null && r(l)) : !0);
4513
+ 233472 && e(6, a = A ? W ? !0 : !!(r != null && r(l)) : !0);
4514
4514
  }, [
4515
4515
  c,
4516
4516
  d,
4517
4517
  h,
4518
- A,
4518
+ p,
4519
4519
  R,
4520
4520
  L,
4521
4521
  a,
@@ -4527,7 +4527,7 @@ function mp(n, t, e) {
4527
4527
  l,
4528
4528
  f,
4529
4529
  m,
4530
- p,
4530
+ A,
4531
4531
  W,
4532
4532
  r,
4533
4533
  o,
@@ -4757,16 +4757,16 @@ function Ap(n) {
4757
4757
  }
4758
4758
  function vp(n, t, e) {
4759
4759
  let i, { floorIndex: s } = t, { roomAreaEnable: o } = t, { roomNameEnable: r } = t, { floorplanData: a } = t, { hoveredRoom: l } = t, { getRoomAreaText: c } = t, { getLabelElement: d } = t, { adaptiveRoomLabelVisibleEnable: h } = t, f = 0, m = 0;
4760
- const A = (p) => {
4761
- e(6, f = p.detail);
4760
+ const p = (A) => {
4761
+ e(6, f = A.detail);
4762
4762
  };
4763
- return n.$$set = (p) => {
4764
- "floorIndex" in p && e(9, s = p.floorIndex), "roomAreaEnable" in p && e(0, o = p.roomAreaEnable), "roomNameEnable" in p && e(1, r = p.roomNameEnable), "floorplanData" in p && e(10, a = p.floorplanData), "hoveredRoom" in p && e(2, l = p.hoveredRoom), "getRoomAreaText" in p && e(3, c = p.getRoomAreaText), "getLabelElement" in p && e(4, d = p.getLabelElement), "adaptiveRoomLabelVisibleEnable" in p && e(5, h = p.adaptiveRoomLabelVisibleEnable);
4763
+ return n.$$set = (A) => {
4764
+ "floorIndex" in A && e(9, s = A.floorIndex), "roomAreaEnable" in A && e(0, o = A.roomAreaEnable), "roomNameEnable" in A && e(1, r = A.roomNameEnable), "floorplanData" in A && e(10, a = A.floorplanData), "hoveredRoom" in A && e(2, l = A.hoveredRoom), "getRoomAreaText" in A && e(3, c = A.getRoomAreaText), "getLabelElement" in A && e(4, d = A.getLabelElement), "adaptiveRoomLabelVisibleEnable" in A && e(5, h = A.adaptiveRoomLabelVisibleEnable);
4765
4765
  }, n.$$.update = () => {
4766
4766
  if (n.$$.dirty & /*floorplanData, floorIndex*/
4767
4767
  1536 && e(8, i = a.floorDatas[s].rooms), n.$$.dirty & /*floorplanData, clientWidth*/
4768
4768
  1088) {
4769
- const { max: p, min: g } = a.bounding, v = p.x - g.x;
4769
+ const { max: A, min: g } = a.bounding, v = A.x - g.x;
4770
4770
  e(7, m = f / v);
4771
4771
  }
4772
4772
  }, [
@@ -4781,7 +4781,7 @@ function vp(n, t, e) {
4781
4781
  i,
4782
4782
  s,
4783
4783
  a,
4784
- A
4784
+ p
4785
4785
  ];
4786
4786
  }
4787
4787
  class bp extends le {
@@ -4892,28 +4892,28 @@ function wp(n) {
4892
4892
  /*rulerLabels*/
4893
4893
  n[3]
4894
4894
  ), h = [];
4895
- for (let A = 0; A < d.length; A += 1)
4896
- h[A] = Tl(Sl(n, d, A));
4895
+ for (let p = 0; p < d.length; p += 1)
4896
+ h[p] = Tl(Sl(n, d, p));
4897
4897
  let f = (
4898
4898
  /*rulerTexts*/
4899
4899
  n[4]
4900
4900
  );
4901
- const m = (A) => (
4901
+ const m = (p) => (
4902
4902
  /*textItemIndex*/
4903
- A[13]
4903
+ p[13]
4904
4904
  );
4905
- for (let A = 0; A < f.length; A += 1) {
4906
- let p = Dl(n, f, A), g = m(p);
4907
- l.set(g, a[A] = Ll(g, p));
4905
+ for (let p = 0; p < f.length; p += 1) {
4906
+ let A = Dl(n, f, p), g = m(A);
4907
+ l.set(g, a[p] = Ll(g, A));
4908
4908
  }
4909
4909
  return {
4910
4910
  c() {
4911
4911
  t = S("div"), e = S("div"), i = K(), s = S("div");
4912
- for (let A = 0; A < h.length; A += 1)
4913
- h[A].c();
4912
+ for (let p = 0; p < h.length; p += 1)
4913
+ h[p].c();
4914
4914
  o = K(), r = S("div");
4915
- for (let A = 0; A < a.length; A += 1)
4916
- a[A].c();
4915
+ for (let p = 0; p < a.length; p += 1)
4916
+ a[p].c();
4917
4917
  w(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), w(s, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), q(
4918
4918
  s,
4919
4919
  "is-row",
@@ -4933,63 +4933,63 @@ function wp(n) {
4933
4933
  ), j(t, "height", /*isRow*/
4934
4934
  n[2] ? 1 / 16 + "rem" : "100%");
4935
4935
  },
4936
- m(A, p) {
4937
- B(A, t, p), D(t, e), D(t, i), D(t, s);
4936
+ m(p, A) {
4937
+ B(p, t, A), D(t, e), D(t, i), D(t, s);
4938
4938
  for (let g = 0; g < h.length; g += 1)
4939
4939
  h[g] && h[g].m(s, null);
4940
4940
  D(t, o), D(t, r);
4941
4941
  for (let g = 0; g < a.length; g += 1)
4942
4942
  a[g] && a[g].m(r, null);
4943
4943
  },
4944
- p(A, [p]) {
4945
- if (p & /*rulerLabels*/
4944
+ p(p, [A]) {
4945
+ if (A & /*rulerLabels*/
4946
4946
  8) {
4947
4947
  d = /*rulerLabels*/
4948
- A[3];
4948
+ p[3];
4949
4949
  let g;
4950
4950
  for (g = 0; g < d.length; g += 1) {
4951
- const v = Sl(A, d, g);
4952
- h[g] ? h[g].p(v, p) : (h[g] = Tl(v), h[g].c(), h[g].m(s, null));
4951
+ const v = Sl(p, d, g);
4952
+ h[g] ? h[g].p(v, A) : (h[g] = Tl(v), h[g].c(), h[g].m(s, null));
4953
4953
  }
4954
4954
  for (; g < h.length; g += 1)
4955
4955
  h[g].d(1);
4956
4956
  h.length = d.length;
4957
4957
  }
4958
- p & /*rulerTexts, isRow, getRuleDistanceText*/
4958
+ A & /*rulerTexts, isRow, getRuleDistanceText*/
4959
4959
  22 && (f = /*rulerTexts*/
4960
- A[4], a = Bt(a, p, m, 1, A, f, l, r, Ra, Ll, null, Dl)), p & /*type*/
4960
+ p[4], a = Bt(a, A, m, 1, p, f, l, r, Ra, Ll, null, Dl)), A & /*type*/
4961
4961
  1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/
4962
- A[0] + " svelte-djlmk4") && w(t, "class", c), p & /*type, isRow*/
4962
+ p[0] + " svelte-djlmk4") && w(t, "class", c), A & /*type, isRow*/
4963
4963
  5 && q(
4964
4964
  t,
4965
4965
  "is-row",
4966
4966
  /*isRow*/
4967
- A[2]
4967
+ p[2]
4968
4968
  );
4969
4969
  },
4970
4970
  i: Z,
4971
4971
  o: Z,
4972
- d(A) {
4973
- A && O(t), zt(h, A);
4974
- for (let p = 0; p < a.length; p += 1)
4975
- a[p].d();
4972
+ d(p) {
4973
+ p && O(t), zt(h, p);
4974
+ for (let A = 0; A < a.length; A += 1)
4975
+ a[A].d();
4976
4976
  }
4977
4977
  };
4978
4978
  }
4979
4979
  const en = 1e3, tn = 180;
4980
4980
  function Cp(n, t, e) {
4981
4981
  let { type: i } = t, { data: s } = t, { bounding: o } = t, { getRuleDistanceText: r } = t;
4982
- const a = i === "top" || i === "bottom", l = o.max.x - o.min.x - (en - tn) * 2, c = o.max.y - o.min.y - (en - tn) * 2, d = s.map(([A, p]) => a ? [A.x, p.x] : [A.y, p.y]).flat().sort().filter((A, p, g) => p === 0 ? !0 : A !== g[p - 1]), h = d.map((A) => {
4983
- const p = a ? (A - o.min.x - en + tn) / l : 0, g = a ? 0 : (A - o.min.y - en + tn) / c;
4984
- return { left: p, bottom: g };
4982
+ const a = i === "top" || i === "bottom", l = o.max.x - o.min.x - (en - tn) * 2, c = o.max.y - o.min.y - (en - tn) * 2, d = s.map(([p, A]) => a ? [p.x, A.x] : [p.y, A.y]).flat().sort().filter((p, A, g) => A === 0 ? !0 : p !== g[A - 1]), h = d.map((p) => {
4983
+ const A = a ? (p - o.min.x - en + tn) / l : 0, g = a ? 0 : (p - o.min.y - en + tn) / c;
4984
+ return { left: A, bottom: g };
4985
4985
  });
4986
4986
  h.unshift({ left: 0, bottom: 0 }), h.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
4987
- const f = d[d.length - 1] - d[0], m = d.map((A, p, g) => {
4988
- const v = p === 0 ? 0 : A - g[p - 1], y = p === 0 ? 0 : (A + g[p - 1]) / 2, P = a ? (y - o.min.x - en + tn) / l : 0, k = a ? 0 : (y - o.min.y - en + tn) / c;
4987
+ const f = d[d.length - 1] - d[0], m = d.map((p, A, g) => {
4988
+ const v = A === 0 ? 0 : p - g[A - 1], y = A === 0 ? 0 : (p + g[A - 1]) / 2, P = a ? (y - o.min.x - en + tn) / l : 0, k = a ? 0 : (y - o.min.y - en + tn) / c;
4989
4989
  return { left: P, bottom: k, distance: v };
4990
- }).filter(({ distance: A }) => A / f > 0.1);
4991
- return n.$$set = (A) => {
4992
- "type" in A && e(0, i = A.type), "data" in A && e(5, s = A.data), "bounding" in A && e(6, o = A.bounding), "getRuleDistanceText" in A && e(1, r = A.getRuleDistanceText);
4990
+ }).filter(({ distance: p }) => p / f > 0.1);
4991
+ return n.$$set = (p) => {
4992
+ "type" in p && e(0, i = p.type), "data" in p && e(5, s = p.data), "bounding" in p && e(6, o = p.bounding), "getRuleDistanceText" in p && e(1, r = p.getRuleDistanceText);
4993
4993
  }, [i, r, a, h, m, s, o];
4994
4994
  }
4995
4995
  class Ip extends le {
@@ -5161,13 +5161,13 @@ function Ep(n) {
5161
5161
  }
5162
5162
  const Ol = 1e3, Bl = 180;
5163
5163
  function kp(n, t, e) {
5164
- let i, s, o, r, a, l, c, d, h, f, { floorIndex: m } = t, { floorplanData: A } = t, { getRuleDistanceText: p } = t;
5164
+ let i, s, o, r, a, l, c, d, h, f, { floorIndex: m } = t, { floorplanData: p } = t, { getRuleDistanceText: A } = t;
5165
5165
  return n.$$set = (g) => {
5166
- "floorIndex" in g && e(5, m = g.floorIndex), "floorplanData" in g && e(6, A = g.floorplanData), "getRuleDistanceText" in g && e(0, p = g.getRuleDistanceText);
5166
+ "floorIndex" in g && e(5, m = g.floorIndex), "floorplanData" in g && e(6, p = g.floorplanData), "getRuleDistanceText" in g && e(0, A = g.getRuleDistanceText);
5167
5167
  }, n.$$.update = () => {
5168
5168
  n.$$.dirty & /*floorplanData*/
5169
- 64 && e(1, i = A.bounding), n.$$.dirty & /*floorplanData, floorIndex*/
5170
- 96 && e(11, s = A.floorDatas[m].rules), n.$$.dirty & /*ruleLabelData*/
5169
+ 64 && e(1, i = p.bounding), n.$$.dirty & /*floorplanData, floorIndex*/
5170
+ 96 && e(11, s = p.floorDatas[m].rules), n.$$.dirty & /*ruleLabelData*/
5171
5171
  2048 && e(12, o = Object.keys(s)), n.$$.dirty & /*ruleLabelDataKeys, ruleLabelData*/
5172
5172
  6144 && e(4, r = o.map((g) => [g, s[g]])), n.$$.dirty & /*bounding*/
5173
5173
  2 && e(9, a = i.max.x - i.min.x), n.$$.dirty & /*bounding*/
@@ -5177,13 +5177,13 @@ function kp(n, t, e) {
5177
5177
  1536 && e(3, h = c / a * 100 + "%"), n.$$.dirty & /*contentHeight, boundingHeight*/
5178
5178
  384 && e(2, f = d / l * 100 + "%");
5179
5179
  }, [
5180
- p,
5180
+ A,
5181
5181
  i,
5182
5182
  f,
5183
5183
  h,
5184
5184
  r,
5185
5185
  m,
5186
- A,
5186
+ p,
5187
5187
  l,
5188
5188
  d,
5189
5189
  a,
@@ -5689,10 +5689,10 @@ function Jp(n, t, e) {
5689
5689
  }
5690
5690
  const { bounding: f } = a, m = jo(o.path, {
5691
5691
  needZ: !0,
5692
- format: (A) => bu(A, f)
5692
+ format: (p) => bu(p, f)
5693
5693
  });
5694
- return n.$$set = (A) => {
5695
- "room" in A && e(0, o = A.room), "floorIndex" in A && e(1, r = A.floorIndex), "floorplanData" in A && e(6, a = A.floorplanData), "highlightData" in A && e(7, l = A.highlightData), "hoveredRoom" in A && e(8, c = A.hoveredRoom);
5694
+ return n.$$set = (p) => {
5695
+ "room" in p && e(0, o = p.room), "floorIndex" in p && e(1, r = p.floorIndex), "floorplanData" in p && e(6, a = p.floorplanData), "highlightData" in p && e(7, l = p.highlightData), "hoveredRoom" in p && e(8, c = p.hoveredRoom);
5696
5696
  }, n.$$.update = () => {
5697
5697
  n.$$.dirty & /*highlightData, floorIndex, room*/
5698
5698
  131 && e(9, i = l[`${r}_${o.id}`]), n.$$.dirty & /*highlight*/
@@ -6167,11 +6167,11 @@ function tA(n) {
6167
6167
  )
6168
6168
  }
6169
6169
  ];
6170
- let A = {};
6170
+ let p = {};
6171
6171
  for (let v = 0; v < m.length; v += 1)
6172
- A = tt(A, m[v]);
6173
- o = new vu({ props: A });
6174
- let p = (
6172
+ p = tt(p, m[v]);
6173
+ o = new vu({ props: p });
6174
+ let A = (
6175
6175
  /*roomLabelsEnable*/
6176
6176
  n[4] && Hl(n)
6177
6177
  ), g = (
@@ -6180,11 +6180,11 @@ function tA(n) {
6180
6180
  );
6181
6181
  return {
6182
6182
  c() {
6183
- t = S("div"), ne(e.$$.fragment), i = K(), f && f.c(), s = K(), ne(o.$$.fragment), r = K(), p && p.c(), a = K(), g && g.c(), w(t, "class", l = Re(`floorplan-plugin__floor${/*isCurrent*/
6183
+ t = S("div"), ne(e.$$.fragment), i = K(), f && f.c(), s = K(), ne(o.$$.fragment), r = K(), A && A.c(), a = K(), g && g.c(), w(t, "class", l = Re(`floorplan-plugin__floor${/*isCurrent*/
6184
6184
  n[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
6185
6185
  },
6186
6186
  m(v, y) {
6187
- B(v, t, y), ee(e, t, null), D(t, i), f && f.m(t, null), D(t, s), ee(o, t, null), D(t, r), p && p.m(t, null), D(t, a), g && g.m(t, null), c = !0;
6187
+ B(v, t, y), ee(e, t, null), D(t, i), f && f.m(t, null), D(t, s), ee(o, t, null), D(t, r), A && A.m(t, null), D(t, a), g && g.m(t, null), c = !0;
6188
6188
  },
6189
6189
  p(v, [y]) {
6190
6190
  const P = y & /*floorIndex, floorplanData*/
@@ -6220,9 +6220,9 @@ function tA(n) {
6220
6220
  }
6221
6221
  ]) : {};
6222
6222
  o.$set(k), /*roomLabelsEnable*/
6223
- v[4] ? p ? (p.p(v, y), y & /*roomLabelsEnable*/
6224
- 16 && M(p, 1)) : (p = Hl(v), p.c(), M(p, 1), p.m(t, a)) : p && (de(), z(p, 1, 1, () => {
6225
- p = null;
6223
+ v[4] ? A ? (A.p(v, y), y & /*roomLabelsEnable*/
6224
+ 16 && M(A, 1)) : (A = Hl(v), A.c(), M(A, 1), A.m(t, a)) : A && (de(), z(A, 1, 1, () => {
6225
+ A = null;
6226
6226
  }), he()), /*ruleLabelsEnable*/
6227
6227
  v[7] ? g ? (g.p(v, y), y & /*ruleLabelsEnable*/
6228
6228
  128 && M(g, 1)) : (g = _l(v), g.c(), M(g, 1), g.m(t, null)) : g && (de(), z(g, 1, 1, () => {
@@ -6232,21 +6232,21 @@ function tA(n) {
6232
6232
  v[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && w(t, "class", l);
6233
6233
  },
6234
6234
  i(v) {
6235
- c || (M(e.$$.fragment, v), M(f), M(o.$$.fragment, v), M(p), M(g), c = !0);
6235
+ c || (M(e.$$.fragment, v), M(f), M(o.$$.fragment, v), M(A), M(g), c = !0);
6236
6236
  },
6237
6237
  o(v) {
6238
- z(e.$$.fragment, v), z(f), z(o.$$.fragment, v), z(p), z(g), c = !1;
6238
+ z(e.$$.fragment, v), z(f), z(o.$$.fragment, v), z(A), z(g), c = !1;
6239
6239
  },
6240
6240
  d(v) {
6241
- v && O(t), te(e), f && f.d(), te(o), p && p.d(), g && g.d();
6241
+ v && O(t), te(e), f && f.d(), te(o), A && A.d(), g && g.d();
6242
6242
  }
6243
6243
  };
6244
6244
  }
6245
6245
  function iA(n, t, e) {
6246
- let { isCurrent: i } = t, { floorIndex: s } = t, { highlightEnable: o } = t, { hoverEnable: r } = t, { roomLabelsEnable: a } = t, { roomAreaEnable: l } = t, { roomNameEnable: c } = t, { ruleLabelsEnable: d } = t, { floorplanData: h } = t, { getRoomAreaText: f } = t, { getLabelElement: m } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable: p } = t, { highlightData: g } = t;
6246
+ let { isCurrent: i } = t, { floorIndex: s } = t, { highlightEnable: o } = t, { hoverEnable: r } = t, { roomLabelsEnable: a } = t, { roomAreaEnable: l } = t, { roomNameEnable: c } = t, { ruleLabelsEnable: d } = t, { floorplanData: h } = t, { getRoomAreaText: f } = t, { getLabelElement: m } = t, { getRuleDistanceText: p } = t, { adaptiveRoomLabelVisibleEnable: A } = t, { highlightData: g } = t;
6247
6247
  const v = Qa(void 0);
6248
6248
  return n.$$set = (y) => {
6249
- "isCurrent" in y && e(0, i = y.isCurrent), "floorIndex" in y && e(1, s = y.floorIndex), "highlightEnable" in y && e(2, o = y.highlightEnable), "hoverEnable" in y && e(3, r = y.hoverEnable), "roomLabelsEnable" in y && e(4, a = y.roomLabelsEnable), "roomAreaEnable" in y && e(5, l = y.roomAreaEnable), "roomNameEnable" in y && e(6, c = y.roomNameEnable), "ruleLabelsEnable" in y && e(7, d = y.ruleLabelsEnable), "floorplanData" in y && e(8, h = y.floorplanData), "getRoomAreaText" in y && e(9, f = y.getRoomAreaText), "getLabelElement" in y && e(10, m = y.getLabelElement), "getRuleDistanceText" in y && e(11, A = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(12, p = y.adaptiveRoomLabelVisibleEnable), "highlightData" in y && e(13, g = y.highlightData);
6249
+ "isCurrent" in y && e(0, i = y.isCurrent), "floorIndex" in y && e(1, s = y.floorIndex), "highlightEnable" in y && e(2, o = y.highlightEnable), "hoverEnable" in y && e(3, r = y.hoverEnable), "roomLabelsEnable" in y && e(4, a = y.roomLabelsEnable), "roomAreaEnable" in y && e(5, l = y.roomAreaEnable), "roomNameEnable" in y && e(6, c = y.roomNameEnable), "ruleLabelsEnable" in y && e(7, d = y.ruleLabelsEnable), "floorplanData" in y && e(8, h = y.floorplanData), "getRoomAreaText" in y && e(9, f = y.getRoomAreaText), "getLabelElement" in y && e(10, m = y.getLabelElement), "getRuleDistanceText" in y && e(11, p = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(12, A = y.adaptiveRoomLabelVisibleEnable), "highlightData" in y && e(13, g = y.highlightData);
6250
6250
  }, [
6251
6251
  i,
6252
6252
  s,
@@ -6259,8 +6259,8 @@ function iA(n, t, e) {
6259
6259
  h,
6260
6260
  f,
6261
6261
  m,
6262
- A,
6263
6262
  p,
6263
+ A,
6264
6264
  g,
6265
6265
  v
6266
6266
  ];
@@ -6337,8 +6337,8 @@ function Wl(n) {
6337
6337
  n[13].floorDatas;
6338
6338
  let m;
6339
6339
  for (m = 0; m < r.length; m += 1) {
6340
- const A = Fl(n, r, m);
6341
- a[m] ? (a[m].p(A, f), M(a[m], 1)) : (a[m] = Yl(A), a[m].c(), M(a[m], 1), a[m].m(t, e));
6340
+ const p = Fl(n, r, m);
6341
+ a[m] ? (a[m].p(p, f), M(a[m], 1)) : (a[m] = Yl(p), a[m].c(), M(a[m], 1), a[m].m(t, e));
6342
6342
  }
6343
6343
  for (de(), m = r.length; m < a.length; m += 1)
6344
6344
  l(m);
@@ -6677,9 +6677,9 @@ function oA(n) {
6677
6677
  };
6678
6678
  }
6679
6679
  function rA(n, t, e) {
6680
- let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: d } = t, { compassEnable: h } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: m } = t, { roomNameEnable: A } = t, { ruleLabelsEnable: p } = t, { floorplanData: g } = t, { lastPanoramaLongitude: v } = t, { cameraImageUrl: y } = t, { getRoomAreaText: P } = t, { getLabelElement: k } = t, { getRuleDistanceText: x } = t, { adaptiveRoomLabelVisibleEnable: E } = t, { highlightData: R } = t;
6680
+ let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: d } = t, { compassEnable: h } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: m } = t, { roomNameEnable: p } = t, { ruleLabelsEnable: A } = t, { floorplanData: g } = t, { lastPanoramaLongitude: v } = t, { cameraImageUrl: y } = t, { getRoomAreaText: P } = t, { getLabelElement: k } = t, { getRuleDistanceText: x } = t, { adaptiveRoomLabelVisibleEnable: E } = t, { highlightData: R } = t;
6681
6681
  return n.$$set = (L) => {
6682
- "duration" in L && e(0, i = L.duration), "visible" in L && e(1, s = L.visible), "northDesc" in L && e(2, o = L.northDesc), "panoIndex" in L && e(3, r = L.panoIndex), "floorIndex" in L && e(4, a = L.floorIndex), "cameraEnable" in L && e(5, l = L.cameraEnable), "hoverEnable" in L && e(6, c = L.hoverEnable), "highlightEnable" in L && e(7, d = L.highlightEnable), "compassEnable" in L && e(8, h = L.compassEnable), "roomLabelsEnable" in L && e(9, f = L.roomLabelsEnable), "roomAreaEnable" in L && e(10, m = L.roomAreaEnable), "roomNameEnable" in L && e(11, A = L.roomNameEnable), "ruleLabelsEnable" in L && e(12, p = L.ruleLabelsEnable), "floorplanData" in L && e(13, g = L.floorplanData), "lastPanoramaLongitude" in L && e(14, v = L.lastPanoramaLongitude), "cameraImageUrl" in L && e(15, y = L.cameraImageUrl), "getRoomAreaText" in L && e(16, P = L.getRoomAreaText), "getLabelElement" in L && e(17, k = L.getLabelElement), "getRuleDistanceText" in L && e(18, x = L.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in L && e(19, E = L.adaptiveRoomLabelVisibleEnable), "highlightData" in L && e(20, R = L.highlightData);
6682
+ "duration" in L && e(0, i = L.duration), "visible" in L && e(1, s = L.visible), "northDesc" in L && e(2, o = L.northDesc), "panoIndex" in L && e(3, r = L.panoIndex), "floorIndex" in L && e(4, a = L.floorIndex), "cameraEnable" in L && e(5, l = L.cameraEnable), "hoverEnable" in L && e(6, c = L.hoverEnable), "highlightEnable" in L && e(7, d = L.highlightEnable), "compassEnable" in L && e(8, h = L.compassEnable), "roomLabelsEnable" in L && e(9, f = L.roomLabelsEnable), "roomAreaEnable" in L && e(10, m = L.roomAreaEnable), "roomNameEnable" in L && e(11, p = L.roomNameEnable), "ruleLabelsEnable" in L && e(12, A = L.ruleLabelsEnable), "floorplanData" in L && e(13, g = L.floorplanData), "lastPanoramaLongitude" in L && e(14, v = L.lastPanoramaLongitude), "cameraImageUrl" in L && e(15, y = L.cameraImageUrl), "getRoomAreaText" in L && e(16, P = L.getRoomAreaText), "getLabelElement" in L && e(17, k = L.getLabelElement), "getRuleDistanceText" in L && e(18, x = L.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in L && e(19, E = L.adaptiveRoomLabelVisibleEnable), "highlightData" in L && e(20, R = L.highlightData);
6683
6683
  }, [
6684
6684
  i,
6685
6685
  s,
@@ -6692,8 +6692,8 @@ function rA(n, t, e) {
6692
6692
  h,
6693
6693
  f,
6694
6694
  m,
6695
- A,
6696
6695
  p,
6696
+ A,
6697
6697
  g,
6698
6698
  v,
6699
6699
  y,
@@ -6848,7 +6848,7 @@ let Vn = class {
6848
6848
  /**
6849
6849
  * @realsee/dnalogel 版本号
6850
6850
  */
6851
- u(this, "VERSION", "3.0.0-2");
6851
+ u(this, "VERSION", "3.0.0-4");
6852
6852
  u(this, "five");
6853
6853
  /**
6854
6854
  * 插件事件钩子
@@ -7935,26 +7935,26 @@ function MA(n) {
7935
7935
  }
7936
7936
  function xA(n, t, e) {
7937
7937
  let i, s, { five: o } = t, { pxmm: r } = t, { floorplanData: a } = t, { cameraImageUrl: l } = t, c = o.getCurrentState().panoIndex, d = o.getCurrentState().longitude;
7938
- function h(A, p) {
7939
- const g = A.bounding, v = A.observers[p];
7938
+ function h(p, A) {
7939
+ const g = p.bounding, v = p.observers[A];
7940
7940
  if (!v)
7941
7941
  return "";
7942
7942
  const y = (g.max.x - g.min.x) * r, P = (g.max.y - g.min.y) * r, k = Math.floor(v.positionInImage.x * y), x = Math.floor(v.positionInImage.y * P);
7943
7943
  return `translate(${k}px, ${x}px)`;
7944
7944
  }
7945
- function f(A) {
7946
- e(6, c = A);
7945
+ function f(p) {
7946
+ e(6, c = p);
7947
7947
  }
7948
7948
  const m = Fa(
7949
- (A) => {
7950
- e(7, d = A.longitude);
7949
+ (p) => {
7950
+ e(7, d = p.longitude);
7951
7951
  },
7952
7952
  1e3 / 60
7953
7953
  );
7954
7954
  return yt(() => (o.on("panoWillArrive", f), o.on("cameraDirectionUpdate", m), function() {
7955
7955
  o.off("panoWillArrive", f), o.off("cameraDirectionUpdate", m);
7956
- })), n.$$set = (A) => {
7957
- "five" in A && e(3, o = 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);
7956
+ })), n.$$set = (p) => {
7957
+ "five" in p && e(3, o = p.five), "pxmm" in p && e(4, r = p.pxmm), "floorplanData" in p && e(5, a = p.floorplanData), "cameraImageUrl" in p && e(0, l = p.cameraImageUrl);
7958
7958
  }, n.$$.update = () => {
7959
7959
  n.$$.dirty & /*floorplanData, panoIndex*/
7960
7960
  96 && e(2, i = h(a, c)), n.$$.dirty & /*longitude*/
@@ -8385,7 +8385,7 @@ function tc(n) {
8385
8385
  B(f, t, m), ee(e, t, null), D(t, i), ee(s, t, null), a = !0;
8386
8386
  },
8387
8387
  p(f, m) {
8388
- const A = m & /*five, pxmm, floorIndex, floorplanData, hoverEnable, extraObjects, highlightData*/
8388
+ const p = m & /*five, pxmm, floorIndex, floorplanData, hoverEnable, extraObjects, highlightData*/
8389
8389
  3181 ? dt(l, [
8390
8390
  {
8391
8391
  five: (
@@ -8418,8 +8418,8 @@ function tc(n) {
8418
8418
  )
8419
8419
  }
8420
8420
  ]) : {};
8421
- e.$set(A);
8422
- const p = m & /*pxmm, five, floorplanData, cameraImageUrl*/
8421
+ e.$set(p);
8422
+ const A = m & /*pxmm, five, floorplanData, cameraImageUrl*/
8423
8423
  1049 ? dt(d, [
8424
8424
  {
8425
8425
  pxmm: (
@@ -8440,7 +8440,7 @@ function tc(n) {
8440
8440
  )
8441
8441
  }
8442
8442
  ]) : {};
8443
- s.$set(p), m & /*contentWidth*/
8443
+ s.$set(A), m & /*contentWidth*/
8444
8444
  512 && o !== (o = `${/*contentWidth*/
8445
8445
  f[9]}px`) && j(t, "width", o), m & /*contentHeight*/
8446
8446
  4096 && r !== (r = `${/*contentHeight*/
@@ -8489,7 +8489,7 @@ function VA(n) {
8489
8489
  }
8490
8490
  function QA(n, t, e) {
8491
8491
  var P, k;
8492
- let { five: i } = t, { visible: s } = t, { hoverEnable: o } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, d = 0, h = (k = (P = i.work.observers[i.getCurrentState().panoIndex]) == null ? void 0 : P.floorIndex) != null ? k : 0, f = 0, m = 0, A = 0, p = 0;
8492
+ let { five: i } = t, { visible: s } = t, { hoverEnable: o } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, d = 0, h = (k = (P = i.work.observers[i.getCurrentState().panoIndex]) == null ? void 0 : P.floorIndex) != null ? k : 0, f = 0, m = 0, p = 0, A = 0;
8493
8493
  function g(x) {
8494
8494
  e(11, h = i.work.observers[x].floorIndex);
8495
8495
  }
@@ -8509,7 +8509,7 @@ function QA(n, t, e) {
8509
8509
  const x = Math.min(f, m), { max: E, min: R } = r.bounding, L = E.x - R.x, W = E.y - R.y, F = function() {
8510
8510
  return L > W ? [x, x / L * W] : [x / W * L, x];
8511
8511
  }();
8512
- e(9, A = F[0]), e(12, p = F[1]), e(10, d = A / L);
8512
+ e(9, p = F[0]), e(12, A = F[1]), e(10, d = p / L);
8513
8513
  }
8514
8514
  }, [
8515
8515
  i,
@@ -8521,10 +8521,10 @@ function QA(n, t, e) {
8521
8521
  c,
8522
8522
  f,
8523
8523
  m,
8524
- A,
8524
+ p,
8525
8525
  d,
8526
8526
  h,
8527
- p,
8527
+ A,
8528
8528
  v,
8529
8529
  y
8530
8530
  ];
@@ -8810,10 +8810,10 @@ function Eu(n, t) {
8810
8810
  });
8811
8811
  }
8812
8812
  const nk = (n, t) => {
8813
- var p;
8814
- const e = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", i = (p = t.north_rad) != null ? p : void 0, s = {};
8813
+ var A;
8814
+ const e = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", i = (A = t.north_rad) != null ? A : void 0, s = {};
8815
8815
  let o = { x: 0, y: 0, z: 0 }, r = [0, 0, 0], a = 1, l = i;
8816
- n.on("modelLoaded", A);
8816
+ n.on("modelLoaded", p);
8817
8817
  const c = (g) => H(void 0, null, function* () {
8818
8818
  var k;
8819
8819
  const v = (g == null ? void 0 : g.fbx_url) || e;
@@ -8824,7 +8824,7 @@ const nk = (n, t) => {
8824
8824
  transparent: !0,
8825
8825
  side: C.DoubleSide,
8826
8826
  blending: C.AdditiveBlending
8827
- }), s.object = P, A(), !0;
8827
+ }), s.object = P, p(), !0;
8828
8828
  }), d = ({ latitude: g }) => {
8829
8829
  if (!s.object)
8830
8830
  return;
@@ -8846,7 +8846,7 @@ const nk = (n, t) => {
8846
8846
  }, m = () => {
8847
8847
  s.object && (n.scene.remove(s.object), n.needsRender = !0, n.off("cameraDirectionUpdate", d));
8848
8848
  };
8849
- function A() {
8849
+ function p() {
8850
8850
  const g = s.object;
8851
8851
  if (!g)
8852
8852
  return;
@@ -8866,8 +8866,8 @@ function _A(n, t) {
8866
8866
  return l.fillStyle = s, l.fillRect(0, 0, e, e), l.font = `${i}px "微软雅黑"`, l.textAlign = r, l.fillStyle = o, l.fillText(n, e / 2, e * 0.7), new Of(a);
8867
8867
  }
8868
8868
  const FA = ({ x: n, y: t, z: e }) => new ie(n, t, e), sk = (n, t) => {
8869
- var p, g, v;
8870
- const e = {}, i = (p = t.animationEnabled) != null ? p : !0, s = (g = t.position) != null ? g : void 0, o = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (y) => H(void 0, null, function* () {
8869
+ var A, g, v;
8870
+ const e = {}, i = (A = t.animationEnabled) != null ? A : !0, s = (g = t.position) != null ? g : void 0, o = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (y) => H(void 0, null, function* () {
8871
8871
  var F, N, G, _, Q, Y, J, X;
8872
8872
  const P = (F = y == null ? void 0 : y.position) != null ? F : s;
8873
8873
  if (!P)
@@ -8983,7 +8983,7 @@ const la = (n, t, e) => {
8983
8983
  return {
8984
8984
  move: e,
8985
8985
  rotate: (l, c, ...d) => H(void 0, [l, c, ...d], function* (o, r, a = {}) {
8986
- t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), n.currentMode !== $e.Mode.Panorama && (yield n.changeMode($e.Mode.Panorama)), o.panoIndex !== void 0 && o.panoIndex !== n.panoIndex && (a.preload && (yield n.preloadPano(o.panoIndex)), yield new Promise((m, A) => {
8986
+ t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), n.currentMode !== $e.Mode.Panorama && (yield n.changeMode($e.Mode.Panorama)), o.panoIndex !== void 0 && o.panoIndex !== n.panoIndex && (a.preload && (yield n.preloadPano(o.panoIndex)), yield new Promise((m, p) => {
8987
8987
  if (!o.panoIndex) {
8988
8988
  m(!0);
8989
8989
  return;
@@ -8991,20 +8991,20 @@ const la = (n, t, e) => {
8991
8991
  n.moveToPano(o.panoIndex, {
8992
8992
  moveEndCallback: () => m(!0),
8993
8993
  // 移动结束
8994
- moveCancelCallback: () => A(new Error("move canceled"))
8994
+ moveCancelCallback: () => p(new Error("move canceled"))
8995
8995
  // 移动开始
8996
8996
  });
8997
8997
  })), a.asyncEndCallback && (yield a.asyncEndCallback());
8998
8998
  const { from: h, to: f } = i(o);
8999
8999
  return yield new Promise((m) => {
9000
- const A = ({ progress: P }) => {
9000
+ const p = ({ progress: P }) => {
9001
9001
  const k = {};
9002
9002
  k.longitude = zr(h.longitude, f.longitude, P), k.latitude = zr(h.latitude, f.latitude, P), k.fov = zr(h.fov, f.fov, P), n.setState(k, !0);
9003
- }, p = () => {
9003
+ }, A = () => {
9004
9004
  m(!0);
9005
9005
  }, g = () => {
9006
9006
  m(!1);
9007
- }, v = o.rotateSpeed ? Math.ceil(Math.abs(f.longitude - h.longitude) / o.rotateSpeed * 1e3) : r, y = UA(v, jt.Linear.None).onUpdate(A).onComplete(p).onDestroy(g);
9007
+ }, v = o.rotateSpeed ? Math.ceil(Math.abs(f.longitude - h.longitude) / o.rotateSpeed * 1e3) : r, y = UA(v, jt.Linear.None).onUpdate(p).onComplete(A).onDestroy(g);
9008
9008
  o.rotation === ei.Loop && y.repeat(1 / 0).yoyo(!0), t.interruptCallback = (P = !0) => {
9009
9009
  y.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), m(P);
9010
9010
  }, t.timeoutId = setTimeout(() => {
@@ -9176,9 +9176,9 @@ const qA = `<style type="text/css">
9176
9176
  enable: !1,
9177
9177
  loaded: !1,
9178
9178
  options: t.options || {
9179
- distanceText: (p) => `${p.toFixed(1)}m`
9179
+ distanceText: (A) => `${A.toFixed(1)}m`
9180
9180
  }
9181
- }, i = (p, g) => {
9181
+ }, i = (A, g) => {
9182
9182
  const v = `
9183
9183
  <div class="PanoRulerPlugin-rule-line">
9184
9184
  <em></em>
@@ -9187,7 +9187,7 @@ const qA = `<style type="text/css">
9187
9187
  </div>
9188
9188
  </div>
9189
9189
  `, y = document.createElement("div");
9190
- return y.setAttribute("class", "PanoRulerPlugin-rule"), y.setAttribute("data-name", p), y.setAttribute("style", "display: none"), y.innerHTML = v, y;
9190
+ return y.setAttribute("class", "PanoRulerPlugin-rule"), y.setAttribute("data-name", A), y.setAttribute("style", "display: none"), y.innerHTML = v, y;
9191
9191
  }, s = document.createElement("div");
9192
9192
  s.setAttribute(
9193
9193
  "style",
@@ -9195,15 +9195,15 @@ const qA = `<style type="text/css">
9195
9195
  );
9196
9196
  const o = document.createElement("div");
9197
9197
  o.innerHTML = qA, s.appendChild(o);
9198
- const r = {}, a = (p, g) => {
9198
+ const r = {}, a = (A, g) => {
9199
9199
  if (e.loaded)
9200
9200
  throw new Error("标尺被重复初始化!");
9201
- const v = $A(p, n), y = n.work;
9201
+ const v = $A(A, n), y = n.work;
9202
9202
  if (!y)
9203
9203
  return !1;
9204
9204
  for (const P in g) {
9205
9205
  const k = g[P], { standingPosition: x } = y.observers[0], E = k.map(({ x: R, z: L, observers: W }) => {
9206
- const F = W.length > 0 ? p.rooms[p.observers[W[0]]].name : "", N = v[F] ? v[F].floor : null;
9206
+ const F = W.length > 0 ? A.rooms[A.observers[W[0]]].name : "", N = v[F] ? v[F].floor : null;
9207
9207
  let G = 1 / 0, _ = {
9208
9208
  index: 0,
9209
9209
  x: x.x,
@@ -9244,8 +9244,8 @@ const qA = `<style type="text/css">
9244
9244
  }
9245
9245
  }
9246
9246
  return e.loaded = !0, !0;
9247
- }, l = (p, g, v) => H(void 0, null, function* () {
9248
- const y = p || t.roomInfo, P = g || t.roomRules;
9247
+ }, l = (A, g, v) => H(void 0, null, function* () {
9248
+ const y = A || t.roomInfo, P = g || t.roomRules;
9249
9249
  if (!y || !P)
9250
9250
  throw new Error("标尺数据依赖不齐全!");
9251
9251
  return e.loaded = !1, e.options = V(V({}, e.options), v || {}), n.model.loaded ? a(y, P) : yield new Promise(
@@ -9253,7 +9253,7 @@ const qA = `<style type="text/css">
9253
9253
  );
9254
9254
  });
9255
9255
  t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
9256
- const c = (p, g, v, y) => {
9256
+ const c = (A, g, v, y) => {
9257
9257
  const P = [
9258
9258
  [
9259
9259
  { x: 0, y: 0 },
@@ -9273,14 +9273,14 @@ const qA = `<style type="text/css">
9273
9273
  ]
9274
9274
  ], k = [];
9275
9275
  for (let x = 0; x < P.length; x++) {
9276
- const E = Mu([p, g], [P[x][0], P[x][1]], !0);
9276
+ const E = Mu([A, g], [P[x][0], P[x][1]], !0);
9277
9277
  E && k.push(E);
9278
9278
  }
9279
9279
  return k.length === 0 ? !1 : k;
9280
9280
  }, d = () => {
9281
9281
  var W;
9282
- const p = (W = n.getElement()) == null ? void 0 : W.parentElement;
9283
- if (!p || !e.loaded || Object.keys(r).length <= 0)
9282
+ const A = (W = n.getElement()) == null ? void 0 : W.parentElement;
9283
+ if (!A || !e.loaded || Object.keys(r).length <= 0)
9284
9284
  return;
9285
9285
  const { panoIndex: g, camera: v, currentMode: y } = n;
9286
9286
  if (g === void 0)
@@ -9294,7 +9294,7 @@ const qA = `<style type="text/css">
9294
9294
  N.style.display = "none";
9295
9295
  return;
9296
9296
  }
9297
- const k = v.position, x = v.getWorldDirection(new ie()), E = p.clientWidth, R = p.clientHeight;
9297
+ const k = v.position, x = v.getWorldDirection(new ie()), E = A.clientWidth, R = A.clientHeight;
9298
9298
  if (y !== $e.Mode.Panorama) {
9299
9299
  for (const F in r)
9300
9300
  for (const { $element: N } of r[F].rules)
@@ -9360,12 +9360,12 @@ const qA = `<style type="text/css">
9360
9360
  nt >= fe || nt / 2 >= Le / 100 * fe || nt / 2 >= (1 - Le / 100) * fe ? Y.style.display = "none" : (Y.style.display = "block", Y.style.width = fe + "px", Y.style.left = Ce + "px", Y.style.top = Ae + "px", Y.style.transform = `rotate(${-ht}deg)`, ke.style.left = `${Le}%`);
9361
9361
  }
9362
9362
  }, h = () => xu(d), f = () => {
9363
- var p, g;
9364
- return e.loaded ? (e.enable || (s.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (g = (p = n.getElement()) == null ? void 0 : p.parentElement) == null || g.append(s), d(), n.on("modeChange", d), n.on("cameraUpdate", h), e.enable = !0), !0) : !1;
9363
+ var A, g;
9364
+ return e.loaded ? (e.enable || (s.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (g = (A = n.getElement()) == null ? void 0 : A.parentElement) == null || g.append(s), d(), n.on("modeChange", d), n.on("cameraUpdate", h), e.enable = !0), !0) : !1;
9365
9365
  }, m = () => (e.enable && (n.off("modeChange", d), n.off("cameraUpdate", h), s && s.remove(), e.enable = !1), !0);
9366
- function A(p) {
9367
- if (p.distanceText && p.distanceText !== e.options.distanceText) {
9368
- const g = p.distanceText;
9366
+ function p(A) {
9367
+ if (A.distanceText && A.distanceText !== e.options.distanceText) {
9368
+ const g = A.distanceText;
9369
9369
  e.options.distanceText = g, Object.values(r).forEach((v) => {
9370
9370
  v.rules.forEach((y) => {
9371
9371
  const [P, k] = y.rule, x = P.distanceTo(k), E = y.$element.querySelector(".PanoRulerPlugin-rule-label-name");
@@ -9379,7 +9379,7 @@ const qA = `<style type="text/css">
9379
9379
  disable: m,
9380
9380
  load: l,
9381
9381
  state: e,
9382
- changeConfigs: A
9382
+ changeConfigs: p
9383
9383
  };
9384
9384
  };
9385
9385
  function ev(n) {
@@ -9518,10 +9518,10 @@ function nv(n) {
9518
9518
  g[0].children.length === 0 ? iv : tv
9519
9519
  );
9520
9520
  }
9521
- let A = m(n), p = A(n);
9521
+ let p = m(n), A = p(n);
9522
9522
  return {
9523
9523
  c() {
9524
- t = S("div"), p.c(), e = K(), i = S("div"), s = S("div"), r = Me(o), w(s, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Ne(() => (
9524
+ t = S("div"), A.c(), e = K(), i = S("div"), s = S("div"), r = Me(o), w(s, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Ne(() => (
9525
9525
  /*div0_elementresize_handler*/
9526
9526
  n[4].call(s)
9527
9527
  )), w(i, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), j(i, "left", l), w(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), j(t, "width", c), j(t, "left", d), j(t, "top", h), j(t, "transform", f), j(
@@ -9533,14 +9533,14 @@ function nv(n) {
9533
9533
  );
9534
9534
  },
9535
9535
  m(g, v) {
9536
- B(g, t, v), p.m(t, null), D(t, e), D(t, i), D(i, s), D(s, r), a = So(
9536
+ B(g, t, v), A.m(t, null), D(t, e), D(t, i), D(i, s), D(s, r), a = So(
9537
9537
  s,
9538
9538
  /*div0_elementresize_handler*/
9539
9539
  n[4].bind(s)
9540
9540
  );
9541
9541
  },
9542
9542
  p(g, [v]) {
9543
- A === (A = m(g)) && p ? p.p(g, v) : (p.d(1), p = A(g), p && (p.c(), p.m(t, e))), v & /*rulerItemProp*/
9543
+ p === (p = m(g)) && A ? A.p(g, v) : (A.d(1), A = p(g), A && (A.c(), A.m(t, e))), v & /*rulerItemProp*/
9544
9544
  1 && o !== (o = /*rulerItemProp*/
9545
9545
  g[0].labelElement + "") && De(r, o), v & /*rulerItemProp*/
9546
9546
  1 && l !== (l = `${/*rulerItemProp*/
@@ -9564,7 +9564,7 @@ function nv(n) {
9564
9564
  i: Z,
9565
9565
  o: Z,
9566
9566
  d(g) {
9567
- g && O(t), p.d(), a();
9567
+ g && O(t), A.d(), a();
9568
9568
  }
9569
9569
  };
9570
9570
  }
@@ -9676,9 +9676,9 @@ function rv(n) {
9676
9676
  };
9677
9677
  }
9678
9678
  function av(n, t, e) {
9679
- var p, g, v, y;
9679
+ var A, g, v, y;
9680
9680
  let { five: i } = t, { rulerDatas: s } = t, { options: o } = t, r = [];
9681
- const a = ((g = (p = i.getElement()) == null ? void 0 : p.parentElement) == null ? void 0 : g.clientWidth) || 0, l = ((y = (v = i.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : y.clientHeight) || 0, c = (P, k) => {
9681
+ const a = ((g = (A = i.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : g.clientWidth) || 0, l = ((y = (v = i.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : y.clientHeight) || 0, c = (P, k) => {
9682
9682
  const x = [
9683
9683
  [{ x: 0, y: 0 }, { x: a, y: 0 }],
9684
9684
  [{ x: 0, y: 0 }, { x: 0, y: l }],
@@ -9749,11 +9749,11 @@ function av(n, t, e) {
9749
9749
  };
9750
9750
  });
9751
9751
  e(0, r = F);
9752
- }, m = () => Mo(f), A = Fa(f, 80);
9752
+ }, m = () => Mo(f), p = Fa(f, 80);
9753
9753
  return yt(() => {
9754
- f(), i.on("panoArrived", f), i.on("modeChange", f), i.on("cameraDirectionUpdate", m), i.on("movingToPano", m), i.on("mouseWheel", () => A()), i.on("pinchGesture", () => A());
9754
+ f(), i.on("panoArrived", f), i.on("modeChange", f), i.on("cameraDirectionUpdate", m), i.on("movingToPano", m), i.on("mouseWheel", () => p()), i.on("pinchGesture", () => p());
9755
9755
  }), Ot(() => {
9756
- i.off("panoArrived", f), i.off("modeChange", f), i.off("cameraDirectionUpdate", m), i.off("movingToPano", m), i.off("mouseWheel", () => A()), i.off("pinchGesture", () => A());
9756
+ i.off("panoArrived", f), i.off("modeChange", f), i.off("cameraDirectionUpdate", m), i.off("movingToPano", m), i.off("mouseWheel", () => p()), i.off("pinchGesture", () => p());
9757
9757
  }), n.$$set = (P) => {
9758
9758
  "five" in P && e(1, i = P.five), "rulerDatas" in P && e(2, s = P.rulerDatas), "options" in P && e(3, o = P.options);
9759
9759
  }, [r, i, s, o];
@@ -9948,8 +9948,8 @@ class fv extends oi {
9948
9948
  this.data.entrance.position.x,
9949
9949
  this.data.entrance.position.y,
9950
9950
  this.data.entrance.position.z
9951
- ).clone().setY(i.y).sub(i).normalize(), A = i.clone().add(m.clone().multiplyScalar(0.7)).setY(i.y + 0.01);
9952
- this.entryDoorMesh.rotation.z = new C.Vector3(0, 0, -1).angleTo(m), this.entryDoorMesh.position.copy(A), ((c = this.data) == null ? void 0 : c.room_observers[e].room.type) === 1 ? (d = this.entryDoorMesh) == null || d.material.setValues({ opacity: 1 }) : (h = this.entryDoorMesh) == null || h.material.setValues({ opacity: 0 });
9951
+ ).clone().setY(i.y).sub(i).normalize(), p = i.clone().add(m.clone().multiplyScalar(0.7)).setY(i.y + 0.01);
9952
+ this.entryDoorMesh.rotation.z = new C.Vector3(0, 0, -1).angleTo(m), this.entryDoorMesh.position.copy(p), ((c = this.data) == null ? void 0 : c.room_observers[e].room.type) === 1 ? (d = this.entryDoorMesh) == null || d.material.setValues({ opacity: 1 }) : (h = this.entryDoorMesh) == null || h.material.setValues({ opacity: 0 });
9953
9953
  }
9954
9954
  this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(i.clone().setY(i.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
9955
9955
  });
@@ -10126,8 +10126,8 @@ const ck = (n, t) => new fv(n, t), mv = 1, gv = 3, pv = new xn(16777215), Av = n
10126
10126
  pointsRenderOrder: 10
10127
10127
  };
10128
10128
  function Ev(n, t, e) {
10129
- var d, h, f, m, A;
10130
- const i = (d = e == null ? void 0 : e.lineWidth) != null ? d : 2, s = (h = e == null ? void 0 : e.lineColor) != null ? h : new xn(16777215), o = (f = e == null ? void 0 : e.pointSize) != null ? f : 5, r = (m = e == null ? void 0 : e.lineRenderOrder) != null ? m : 10, a = (A = e == null ? void 0 : e.lineRenderOrder) != null ? A : 20, l = new Sh(n, t);
10129
+ var d, h, f, m, p;
10130
+ const i = (d = e == null ? void 0 : e.lineWidth) != null ? d : 2, s = (h = e == null ? void 0 : e.lineColor) != null ? h : new xn(16777215), o = (f = e == null ? void 0 : e.pointSize) != null ? f : 5, r = (m = e == null ? void 0 : e.lineRenderOrder) != null ? m : 10, a = (p = e == null ? void 0 : e.lineRenderOrder) != null ? p : 20, l = new Sh(n, t);
10131
10131
  l.setMaterial({ linewidth: i, color: s }), l.line.material.depthTest = !1, l.line.material.transparent = !0, l.line.renderOrder = r, l.points.renderOrder = a;
10132
10132
  const c = l.points.material;
10133
10133
  return c.depthTest = !1, c.size = o, e != null && e.pointColor && c.color.set(e.pointColor).convertSRGBToLinear(), e != null && e.pointTexture && (c.map = e.pointTexture), l;
@@ -10239,12 +10239,12 @@ class xv extends Su {
10239
10239
  const s = i.clientWidth, o = i.clientHeight, r = s / 2, a = o / 2;
10240
10240
  if (this.line.points.length < 2)
10241
10241
  return;
10242
- const [l, c] = this.line.points, d = l.position.clone().project(e.camera), h = c.position.clone().project(e.camera), f = yi(l.position, c.position).clone().project(e.camera), m = new et(d.x * r, d.y * a), A = new et(h.x * r, h.y * a), p = m.distanceTo(A);
10243
- if ((() => !(Math.abs(d.z) > 1 || Math.abs(h.z) > 1 || !ro(d) && !ro(h) || !ro(f) || p === 0))() === !1) {
10242
+ const [l, c] = this.line.points, d = l.position.clone().project(e.camera), h = c.position.clone().project(e.camera), f = yi(l.position, c.position).clone().project(e.camera), m = new et(d.x * r, d.y * a), p = new et(h.x * r, h.y * a), A = m.distanceTo(p);
10243
+ if ((() => !(Math.abs(d.z) > 1 || Math.abs(h.z) > 1 || !ro(d) && !ro(h) || !ro(f) || A === 0))() === !1) {
10244
10244
  this.hide();
10245
10245
  return;
10246
10246
  }
10247
- const v = (f.x + 1) / 2 * s, y = -(f.y - 1) / 2 * o, k = -(Math.atan((m.y - A.y) / (m.x - A.x)) * 180) / Math.PI, x = this.containerDom.parentElement && this.contentDom.clientWidth > p ? -20 : 0;
10247
+ const v = (f.x + 1) / 2 * s, y = -(f.y - 1) / 2 * o, k = -(Math.atan((m.y - p.y) / (m.x - p.x)) * 180) / Math.PI, x = this.containerDom.parentElement && this.contentDom.clientWidth > A ? -20 : 0;
10248
10248
  this.containerDom.style.transform = `translate(${v}px, ${y}px) rotate(${k}deg) translateY(${x}px)`, this.show(), (R = this.params.userDistanceItem) == null || R.update({ line: this.line, polyline: this.line.getPolyline() });
10249
10249
  const E = this.getCurrentContent();
10250
10250
  this.contentDom.innerText = E;
@@ -10973,17 +10973,17 @@ class Wa {
10973
10973
  return this.container.style.left = t, this.container.style.top = e, this.container.style.transform = "", this.show();
10974
10974
  if (this.lines.length === 0)
10975
10975
  return this;
10976
- const i = this.points.map((A) => A.position), s = i.map((A) => A.clone().project(this.five.camera));
10977
- if (s.some((A) => Math.abs(A.z) > 1))
10976
+ const i = this.points.map((p) => p.position), s = i.map((p) => p.clone().project(this.five.camera));
10977
+ if (s.some((p) => Math.abs(p.z) > 1))
10978
10978
  return this.hide();
10979
- const o = s.map((A) => A.x), r = s.map((A) => A.y), a = (Math.min(...o) + Math.max(...o)) / 2, l = Math.max(...r), c = this.container.parentElement;
10979
+ const o = s.map((p) => p.x), r = s.map((p) => p.y), a = (Math.min(...o) + Math.max(...o)) / 2, l = Math.max(...r), c = this.container.parentElement;
10980
10980
  if (!c)
10981
10981
  return this;
10982
10982
  const d = (a + 1) / 2 * c.clientWidth, h = -(l - 1) / 2 * c.clientHeight;
10983
10983
  let f = d, m = h - 34;
10984
10984
  if (this.lines.length === 1 && i.length === 2) {
10985
- const A = (r[1] - r[0]) / (o[1] - o[0]), g = -((r[1] + r[0]) / 2 - 1) / 2 * c.clientHeight;
10986
- Math.abs(A) > 0.4 && (f = d + 57, m = g);
10985
+ const p = (r[1] - r[0]) / (o[1] - o[0]), g = -((r[1] + r[0]) / 2 - 1) / 2 * c.clientHeight;
10986
+ Math.abs(p) > 0.4 && (f = d + 57, m = g);
10987
10987
  }
10988
10988
  return this.container.style.top = "0", this.container.style.left = "0", this.container.style.transform = `translate3d(${f}px, ${m}px, 0)`, this.show();
10989
10989
  }
@@ -11151,10 +11151,10 @@ class ui extends zo {
11151
11151
  // ====================================================================================================================================
11152
11152
  // 下面一堆高亮相关
11153
11153
  u(this, "wantsTapGesture", (e) => {
11154
- var p, g;
11154
+ var A, g;
11155
11155
  if (this.editParams.pointSelectorMode === "cursor" || this.lastPoint)
11156
11156
  return !1;
11157
- const i = this.model.areas.map((v) => e.intersectObject(v.polygon, !0)[0]).sort((v, y) => v.distance - y.distance), s = (g = (p = i[0]) == null ? void 0 : p.object) == null ? void 0 : g.parent;
11157
+ const i = this.model.areas.map((v) => e.intersectObject(v.polygon, !0)[0]).sort((v, y) => v.distance - y.distance), s = (g = (A = i[0]) == null ? void 0 : A.object) == null ? void 0 : g.parent;
11158
11158
  if (s != null && s.isPolygonMesh) {
11159
11159
  const v = this.model.areas.find((y) => y.polygon === s);
11160
11160
  if (v) {
@@ -11180,9 +11180,9 @@ class ui extends zo {
11180
11180
  }).sort((v, y) => v.distance - y.distance)[0];
11181
11181
  if (m.distance > 20)
11182
11182
  return;
11183
- const A = this.model.getAllLines().find(({ id: v }) => v === m.id);
11184
- if (A)
11185
- return this.chooseLine(A), !1;
11183
+ const p = this.model.getAllLines().find(({ id: v }) => v === m.id);
11184
+ if (p)
11185
+ return this.chooseLine(p), !1;
11186
11186
  });
11187
11187
  u(this, "chooseLine", (e) => {
11188
11188
  const i = e.getPolyline().lines;
@@ -11388,8 +11388,8 @@ class gc extends zo {
11388
11388
  return !1;
11389
11389
  });
11390
11390
  u(this, "wantsTapGesture", (e) => {
11391
- var p;
11392
- const i = this.model.areas.map((g) => e.intersectObject(g.polygon, !0)[0]).sort((g, v) => g.distance - v.distance), s = (p = i[0]) == null ? void 0 : p.object.parent;
11391
+ var A;
11392
+ const i = this.model.areas.map((g) => e.intersectObject(g.polygon, !0)[0]).sort((g, v) => g.distance - v.distance), s = (A = i[0]) == null ? void 0 : A.object.parent;
11393
11393
  if (s instanceof Lu) {
11394
11394
  const g = this.model.areas.find((v) => v.polygon === s);
11395
11395
  if (g) {
@@ -11415,9 +11415,9 @@ class gc extends zo {
11415
11415
  }).sort((g, v) => g.distance - v.distance)[0];
11416
11416
  if (m.distance > 20)
11417
11417
  return;
11418
- const A = this.model.getAllLines().find(({ id: g }) => g === m.id);
11419
- if (A)
11420
- return this.chooseLine(A), !1;
11418
+ const p = this.model.getAllLines().find(({ id: g }) => g === m.id);
11419
+ if (p)
11420
+ return this.chooseLine(p), !1;
11421
11421
  });
11422
11422
  u(this, "chooseLine", (e) => {
11423
11423
  this.choose = "line";
@@ -11622,12 +11622,12 @@ function Bu(n) {
11622
11622
  fragmentShader: Jv,
11623
11623
  depthTest: !1,
11624
11624
  transparent: !0
11625
- }), m = new ds(h, f), A = new _f(0.01, 20, 20), p = new ps({
11625
+ }), m = new ds(h, f), p = new _f(0.01, 20, 20), A = new ps({
11626
11626
  color: i,
11627
11627
  depthTest: !1,
11628
11628
  transparent: !0,
11629
11629
  side: Dh
11630
- }), g = new ds(A, p);
11630
+ }), g = new ds(p, A);
11631
11631
  return g.position.set(0, 0, 0.1), s.name = "mouse-current", s.add(c), e && s.add(m, g), s;
11632
11632
  }
11633
11633
  class Zv {
@@ -11759,7 +11759,7 @@ class is extends zo {
11759
11759
  if (!i)
11760
11760
  return;
11761
11761
  const s = this.five.camera, o = i.point.clone().project(s), r = this.container.clientWidth, a = this.container.clientHeight, l = new et(o.x * r, o.y * a), c = this.model.getAllLines().map((m) => {
11762
- const [A, p] = m.points, g = A.position.clone().project(s), v = p.position.clone().project(s);
11762
+ const [p, A] = m.points, g = p.position.clone().project(s), v = A.position.clone().project(s);
11763
11763
  if (!Ri(g) && !Ri(v))
11764
11764
  return null;
11765
11765
  const y = new et(g.x * r, g.y * a), P = new et(v.x * r, v.y * a);
@@ -11768,9 +11768,9 @@ class is extends zo {
11768
11768
  if (c.length === 0)
11769
11769
  return;
11770
11770
  const h = c.map((m) => {
11771
- const A = Ya(l, m.points);
11772
- return { id: m.id, distance: A.distanceTo(l) };
11773
- }).sort((m, A) => m.distance - A.distance)[0];
11771
+ const p = Ya(l, m.points);
11772
+ return { id: m.id, distance: p.distanceTo(l) };
11773
+ }).sort((m, p) => m.distance - p.distance)[0];
11774
11774
  if (h.distance > 20)
11775
11775
  return;
11776
11776
  const f = this.model.getAllLines().find(({ id: m }) => m === h.id);
@@ -12345,16 +12345,16 @@ function bc(n) {
12345
12345
  n[15]
12346
12346
  );
12347
12347
  },
12348
- m(A, p) {
12349
- B(A, t, p), D(t, e), d && d.m(e, null), D(e, i), D(e, o), D(t, r), h(), l || (c = be(t, "click", m), l = !0);
12348
+ m(p, A) {
12349
+ B(p, t, A), D(t, e), d && d.m(e, null), D(e, i), D(e, o), D(t, r), h(), l || (c = be(t, "click", m), l = !0);
12350
12350
  },
12351
- p(A, p) {
12352
- n = A, /*option*/
12353
- n[13].icon ? d ? d.p(n, p) : (d = vc(n), d.c(), d.m(e, i)) : d && (d.d(1), d = null), p & /*options*/
12351
+ p(p, A) {
12352
+ n = p, /*option*/
12353
+ n[13].icon ? d ? d.p(n, A) : (d = vc(n), d.c(), d.m(e, i)) : d && (d.d(1), d = null), A & /*options*/
12354
12354
  1 && s !== (s = /*option*/
12355
12355
  n[13].value + "") && De(o, s), a !== /*index*/
12356
12356
  n[15] && (f(), a = /*index*/
12357
- n[15], h()), p & /*activeIndex*/
12357
+ n[15], h()), A & /*activeIndex*/
12358
12358
  16 && q(
12359
12359
  t,
12360
12360
  "active",
@@ -12363,8 +12363,8 @@ function bc(n) {
12363
12363
  n[15]
12364
12364
  );
12365
12365
  },
12366
- d(A) {
12367
- A && O(t), d && d.d(), f(), l = !1, c();
12366
+ d(p) {
12367
+ p && O(t), d && d.d(), f(), l = !1, c();
12368
12368
  }
12369
12369
  };
12370
12370
  }
@@ -12431,10 +12431,10 @@ function f0(n, t, e) {
12431
12431
  l[v] = g, e(2, l);
12432
12432
  });
12433
12433
  }
12434
- const A = (g, v) => {
12434
+ const p = (g, v) => {
12435
12435
  a(g.key), e(4, d = v);
12436
12436
  };
12437
- function p(g) {
12437
+ function A(g) {
12438
12438
  Qe[g ? "unshift" : "push"](() => {
12439
12439
  c = g, e(3, c);
12440
12440
  });
@@ -12462,8 +12462,8 @@ function f0(n, t, e) {
12462
12462
  null,
12463
12463
  o,
12464
12464
  m,
12465
- A,
12466
- p
12465
+ p,
12466
+ A
12467
12467
  ];
12468
12468
  }
12469
12469
  class m0 extends le {
@@ -12572,14 +12572,14 @@ function Ic(n) {
12572
12572
  ), r, a, l, c, d, h = (
12573
12573
  /*i18n*/
12574
12574
  n[2]("结束") + ""
12575
- ), f, m, A;
12575
+ ), f, m, p;
12576
12576
  return {
12577
12577
  c() {
12578
12578
  t = S("div"), e = S("div"), i = S("div"), s = K(), r = Me(o), a = K(), l = S("div"), c = S("div"), d = K(), f = Me(h), w(i, "class", "icon svelte-468fdd"), j(i, "background-image", `url(${Gu})`), w(e, "class", "button svelte-468fdd"), q(e, "forbid", !/*canRevoke*/
12579
12579
  n[3]), w(c, "class", "icon svelte-468fdd"), j(c, "background-image", `url(${Nu})`), w(l, "class", "button svelte-468fdd"), w(t, "class", "buttons svelte-468fdd");
12580
12580
  },
12581
- m(p, g) {
12582
- B(p, t, g), D(t, e), D(e, i), D(e, s), D(e, r), D(t, a), D(t, l), D(l, c), D(l, d), D(l, f), m || (A = [
12581
+ m(A, g) {
12582
+ B(A, t, g), D(t, e), D(e, i), D(e, s), D(e, r), D(t, a), D(t, l), D(l, c), D(l, d), D(l, f), m || (p = [
12583
12583
  be(
12584
12584
  e,
12585
12585
  "click",
@@ -12594,17 +12594,17 @@ function Ic(n) {
12594
12594
  )
12595
12595
  ], m = !0);
12596
12596
  },
12597
- p(p, g) {
12597
+ p(A, g) {
12598
12598
  g & /*i18n*/
12599
12599
  4 && o !== (o = /*i18n*/
12600
- p[2]("撤销") + "") && De(r, o), g & /*canRevoke*/
12600
+ A[2]("撤销") + "") && De(r, o), g & /*canRevoke*/
12601
12601
  8 && q(e, "forbid", !/*canRevoke*/
12602
- p[3]), g & /*i18n*/
12602
+ A[3]), g & /*i18n*/
12603
12603
  4 && h !== (h = /*i18n*/
12604
- p[2]("结束") + "") && De(f, h);
12604
+ A[2]("结束") + "") && De(f, h);
12605
12605
  },
12606
- d(p) {
12607
- p && O(t), m = !1, Je(A);
12606
+ d(A) {
12607
+ A && O(t), m = !1, Je(p);
12608
12608
  }
12609
12609
  };
12610
12610
  }
@@ -12616,10 +12616,10 @@ function b0(n) {
12616
12616
  /*showController*/
12617
12617
  n[5] && Ic(n)
12618
12618
  );
12619
- function A(g) {
12619
+ function p(g) {
12620
12620
  n[9](g);
12621
12621
  }
12622
- let p = {
12622
+ let A = {
12623
12623
  options: [
12624
12624
  {
12625
12625
  key: "line",
@@ -12645,8 +12645,8 @@ function b0(n) {
12645
12645
  };
12646
12646
  return (
12647
12647
  /*setSwitcherActiveIndex*/
12648
- n[4] !== void 0 && (p.setIndex = /*setSwitcherActiveIndex*/
12649
- n[4]), c = new m0({ props: p }), Qe.push(() => Va(c, "setIndex", A)), {
12648
+ n[4] !== void 0 && (A.setIndex = /*setSwitcherActiveIndex*/
12649
+ n[4]), c = new m0({ props: A }), Qe.push(() => Va(c, "setIndex", p)), {
12650
12650
  c() {
12651
12651
  t = S("div"), f && f.c(), e = K(), i = S("div"), s = S("div"), o = K(), r = S("div"), m && m.c(), a = K(), l = S("div"), ne(c.$$.fragment), w(s, "class", "mask svelte-468fdd"), w(l, "class", "mode-switcher svelte-468fdd"), w(r, "class", "center svelte-468fdd"), w(i, "class", "bottom svelte-468fdd"), w(t, "class", "Measure-Controller svelte-468fdd");
12652
12652
  },
@@ -12717,10 +12717,10 @@ function y0(n, t, e) {
12717
12717
  i.hook.off("modeChange", l), i.hook.off("complete", h), i.hook.off("pointsChange", d);
12718
12718
  });
12719
12719
  let f = !1;
12720
- const m = () => i.revoke(), A = (g) => {
12720
+ const m = () => i.revoke(), p = (g) => {
12721
12721
  i.save().changeMode("Edit"), i.changeMeasureType(g);
12722
12722
  };
12723
- function p(g) {
12723
+ function A(g) {
12724
12724
  a = g, e(4, a);
12725
12725
  }
12726
12726
  return n.$$set = (g) => {
@@ -12734,8 +12734,8 @@ function y0(n, t, e) {
12734
12734
  f,
12735
12735
  c,
12736
12736
  m,
12737
- A,
12738
- p
12737
+ p,
12738
+ A
12739
12739
  ];
12740
12740
  }
12741
12741
  class w0 extends le {
@@ -12829,16 +12829,16 @@ function kc(n) {
12829
12829
  n[15]
12830
12830
  );
12831
12831
  },
12832
- m(A, p) {
12833
- B(A, t, p), D(t, e), d && d.m(e, null), D(e, i), D(e, o), D(t, r), h(), l || (c = be(t, "click", m), l = !0);
12832
+ m(p, A) {
12833
+ B(p, t, A), D(t, e), d && d.m(e, null), D(e, i), D(e, o), D(t, r), h(), l || (c = be(t, "click", m), l = !0);
12834
12834
  },
12835
- p(A, p) {
12836
- n = A, /*option*/
12837
- n[13].icon ? d ? d.p(n, p) : (d = Ec(n), d.c(), d.m(e, i)) : d && (d.d(1), d = null), p & /*options*/
12835
+ p(p, A) {
12836
+ n = p, /*option*/
12837
+ n[13].icon ? d ? d.p(n, A) : (d = Ec(n), d.c(), d.m(e, i)) : d && (d.d(1), d = null), A & /*options*/
12838
12838
  1 && s !== (s = /*option*/
12839
12839
  n[13].value + "") && De(o, s), a !== /*index*/
12840
12840
  n[15] && (f(), a = /*index*/
12841
- n[15], h()), p & /*activeIndex*/
12841
+ n[15], h()), A & /*activeIndex*/
12842
12842
  16 && q(
12843
12843
  t,
12844
12844
  "active",
@@ -12847,8 +12847,8 @@ function kc(n) {
12847
12847
  n[15]
12848
12848
  );
12849
12849
  },
12850
- d(A) {
12851
- A && O(t), d && d.d(), f(), l = !1, c();
12850
+ d(p) {
12851
+ p && O(t), d && d.d(), f(), l = !1, c();
12852
12852
  }
12853
12853
  };
12854
12854
  }
@@ -12927,10 +12927,10 @@ function P0(n, t, e) {
12927
12927
  l[v] = g, e(2, l);
12928
12928
  });
12929
12929
  }
12930
- const A = (g, v) => {
12930
+ const p = (g, v) => {
12931
12931
  a(g.key), e(4, i = v);
12932
12932
  };
12933
- function p(g) {
12933
+ function A(g) {
12934
12934
  Qe[g ? "unshift" : "push"](() => {
12935
12935
  c = g, e(3, c);
12936
12936
  });
@@ -12953,8 +12953,8 @@ function P0(n, t, e) {
12953
12953
  r,
12954
12954
  s,
12955
12955
  m,
12956
- A,
12957
- p
12956
+ p,
12957
+ A
12958
12958
  ];
12959
12959
  }
12960
12960
  class E0 extends le {
@@ -13240,10 +13240,10 @@ function Tc(n) {
13240
13240
  };
13241
13241
  }
13242
13242
  function T0(n) {
13243
- let t, e, i, s, o, r, a, l, c, d, h, f, m, A = (
13243
+ let t, e, i, s, o, r, a, l, c, d, h, f, m, p = (
13244
13244
  /*showExit*/
13245
13245
  n[1] && xc(n)
13246
- ), p = (
13246
+ ), A = (
13247
13247
  /*measureController*/
13248
13248
  n[0].allowMeasureType.length >= 2 && /*buttonState*/
13249
13249
  n[3] === "start" && Dc(n)
@@ -13279,22 +13279,22 @@ function T0(n) {
13279
13279
  );
13280
13280
  return {
13281
13281
  c() {
13282
- t = S("div"), A && A.c(), e = K(), i = S("div"), s = S("div"), o = K(), r = S("div"), p && p.c(), a = K(), l = S("div"), g && g.c(), c = K(), d = S("div"), ne(h.$$.fragment), f = K(), v && v.c(), w(s, "class", "mask svelte-ldjbp8"), w(d, "class", "main-button svelte-ldjbp8"), q(d, "forbid", !/*allowAddPoint*/
13282
+ t = S("div"), p && p.c(), e = K(), i = S("div"), s = S("div"), o = K(), r = S("div"), A && A.c(), a = K(), l = S("div"), g && g.c(), c = K(), d = S("div"), ne(h.$$.fragment), f = K(), v && v.c(), w(s, "class", "mask svelte-ldjbp8"), w(d, "class", "main-button svelte-ldjbp8"), q(d, "forbid", !/*allowAddPoint*/
13283
13283
  n[5]), w(l, "class", "controller svelte-ldjbp8"), w(r, "class", "center svelte-ldjbp8"), w(i, "class", "bottom svelte-ldjbp8"), w(t, "class", "Measure-Controller svelte-ldjbp8");
13284
13284
  },
13285
13285
  m(y, P) {
13286
- B(y, t, P), A && A.m(t, null), D(t, e), D(t, i), D(i, s), D(i, o), D(i, r), p && p.m(r, null), D(r, a), D(r, l), g && g.m(l, null), D(l, c), D(l, d), ee(h, d, null), D(l, f), v && v.m(l, null), m = !0;
13286
+ B(y, t, P), p && p.m(t, null), D(t, e), D(t, i), D(i, s), D(i, o), D(i, r), A && A.m(r, null), D(r, a), D(r, l), g && g.m(l, null), D(l, c), D(l, d), ee(h, d, null), D(l, f), v && v.m(l, null), m = !0;
13287
13287
  },
13288
13288
  p(y, [P]) {
13289
13289
  /*showExit*/
13290
- y[1] ? A ? (A.p(y, P), P & /*showExit*/
13291
- 2 && M(A, 1)) : (A = xc(y), A.c(), M(A, 1), A.m(t, e)) : A && (de(), z(A, 1, 1, () => {
13292
- A = null;
13290
+ y[1] ? p ? (p.p(y, P), P & /*showExit*/
13291
+ 2 && M(p, 1)) : (p = xc(y), p.c(), M(p, 1), p.m(t, e)) : p && (de(), z(p, 1, 1, () => {
13292
+ p = null;
13293
13293
  }), he()), /*measureController*/
13294
13294
  y[0].allowMeasureType.length >= 2 && /*buttonState*/
13295
- y[3] === "start" ? p ? (p.p(y, P), P & /*measureController, buttonState*/
13296
- 9 && M(p, 1)) : (p = Dc(y), p.c(), M(p, 1), p.m(r, a)) : p && (de(), z(p, 1, 1, () => {
13297
- p = null;
13295
+ y[3] === "start" ? A ? (A.p(y, P), P & /*measureController, buttonState*/
13296
+ 9 && M(A, 1)) : (A = Dc(y), A.c(), M(A, 1), A.m(r, a)) : A && (de(), z(A, 1, 1, () => {
13297
+ A = null;
13298
13298
  }), he()), /*showButton*/
13299
13299
  y[4] ? g ? (g.p(y, P), P & /*showButton*/
13300
13300
  16 && M(g, 1)) : (g = Sc(y), g.c(), M(g, 1), g.m(l, c)) : g && (de(), z(g, 1, 1, () => {
@@ -13322,13 +13322,13 @@ function T0(n) {
13322
13322
  }), he());
13323
13323
  },
13324
13324
  i(y) {
13325
- m || (M(A), M(p), M(g), M(h.$$.fragment, y), M(v), m = !0);
13325
+ m || (M(p), M(A), M(g), M(h.$$.fragment, y), M(v), m = !0);
13326
13326
  },
13327
13327
  o(y) {
13328
- z(A), z(p), z(g), z(h.$$.fragment, y), z(v), m = !1;
13328
+ z(p), z(A), z(g), z(h.$$.fragment, y), z(v), m = !1;
13329
13329
  },
13330
13330
  d(y) {
13331
- y && O(t), A && A.d(), p && p.d(), g && g.d(), te(h), v && v.d();
13331
+ y && O(t), p && p.d(), A && A.d(), g && g.d(), te(h), v && v.d();
13332
13332
  }
13333
13333
  };
13334
13334
  }
@@ -13348,29 +13348,29 @@ function L0(n, t, e) {
13348
13348
  };
13349
13349
  let l = !1, c = !0, d = "start", h = i.currentMeasureType;
13350
13350
  const f = () => {
13351
- i.getCurrentMode() !== "Edit" ? i.changeMode("Edit") : (p("add"), m());
13351
+ i.getCurrentMode() !== "Edit" ? i.changeMode("Edit") : (A("add"), m());
13352
13352
  }, m = () => {
13353
13353
  i.controller instanceof ui && i.controller.selectPoint();
13354
- }, A = () => {
13354
+ }, p = () => {
13355
13355
  i.controller instanceof ui && i.controller.complete();
13356
- }, p = (F) => {
13356
+ }, A = (F) => {
13357
13357
  e(3, d = F);
13358
13358
  }, g = () => {
13359
13359
  m(), x("allow");
13360
13360
  }, v = () => {
13361
- p("complete");
13361
+ A("complete");
13362
13362
  }, y = () => {
13363
- i.currentMeasureType === "area" && d === "complete" && p("add");
13363
+ i.currentMeasureType === "area" && d === "complete" && A("add");
13364
13364
  }, P = (F) => {
13365
13365
  F.length;
13366
13366
  }, k = () => {
13367
- p("start"), x("allow");
13367
+ A("start"), x("allow");
13368
13368
  }, x = (F) => {
13369
13369
  e(5, c = F === "allow");
13370
13370
  }, E = (F) => {
13371
13371
  e(12, h = F);
13372
13372
  }, R = (F) => {
13373
- F.isEmpty && p("start");
13373
+ F.isEmpty && A("start");
13374
13374
  };
13375
13375
  yt(() => {
13376
13376
  i.hook.on("revoke", R), i.hook.on("measureTypeChange", E), i.hook.on("modeChange", k), i.hook.on("pointsChange", P), i.hook.on("allowAddPointStateChange", x), i.hook.on("readyComplete", v), i.hook.on("notReadyComplete", y), i.hook.on("complete", k);
@@ -13396,7 +13396,7 @@ function L0(n, t, e) {
13396
13396
  a,
13397
13397
  f,
13398
13398
  m,
13399
- A,
13399
+ p,
13400
13400
  g,
13401
13401
  h,
13402
13402
  L,
@@ -13507,14 +13507,14 @@ function Oo(n, t = [], e = {}) {
13507
13507
  const d = l[c], h = a[d], f = Co(h), m = Co(o[d]);
13508
13508
  if (f === "object")
13509
13509
  if (m !== "undefined") {
13510
- const A = m === "object" ? o[d] : {};
13511
- o[d] = Oo({}, [A, ua(h)], i);
13510
+ const p = m === "object" ? o[d] : {};
13511
+ o[d] = Oo({}, [p, ua(h)], i);
13512
13512
  } else
13513
13513
  o[d] = ua(h);
13514
13514
  else if (f === "array")
13515
13515
  if (m === "array") {
13516
- const A = ha(h);
13517
- o[d] = i.arrayBehaviour === "merge" ? o[d].concat(A) : A;
13516
+ const p = ha(h);
13517
+ o[d] = i.arrayBehaviour === "merge" ? o[d].concat(p) : p;
13518
13518
  } else
13519
13519
  o[d] = ha(h);
13520
13520
  else
@@ -13612,17 +13612,17 @@ function V0(n, t, e) {
13612
13612
  let f = "";
13613
13613
  const m = (y) => {
13614
13614
  y === "Edit" && i.changeMeasureType ? d("start") : h();
13615
- }, A = () => {
13616
- i.getCurrentMode() === "Watch" && h();
13617
13615
  }, p = () => {
13616
+ i.getCurrentMode() === "Watch" && h();
13617
+ }, A = () => {
13618
13618
  i.getCurrentMode() === "Edit" && d("start");
13619
13619
  }, g = (y) => {
13620
13620
  i.currentMeasureType === "area" && (y.length >= 2 ? d("close") : y.length === 0 ? d("start") : h());
13621
13621
  };
13622
13622
  yt(() => {
13623
- m(i.getCurrentMode()), i.hook.on("modeChange", m), i.hook.on("complete", A), i.hook.on("pointsChange", g), i.hook.on("measureTypeChange", p);
13623
+ m(i.getCurrentMode()), i.hook.on("modeChange", m), i.hook.on("complete", p), i.hook.on("pointsChange", g), i.hook.on("measureTypeChange", A);
13624
13624
  }), Ot(() => {
13625
- i.hook.off("modeChange", m), i.hook.off("complete", A), i.hook.off("pointsChange", g), i.hook.off("measureTypeChange", p), h();
13625
+ i.hook.off("modeChange", m), i.hook.off("complete", p), i.hook.off("pointsChange", g), i.hook.off("measureTypeChange", A), h();
13626
13626
  });
13627
13627
  function v(y) {
13628
13628
  Qe[y ? "unshift" : "push"](() => {
@@ -13789,22 +13789,22 @@ class F0 {
13789
13789
  this.five = t, this.params = e, this.config = wn(e, ["openParams", "magnifierParams"]), this.model = new Ou(this.config), this.isMobile = (r = (o = e == null ? void 0 : e.openParams) == null ? void 0 : o.isMobile) != null ? r : !1, this.magnifier = new ka(t, (a = e.magnifierParams) != null ? a : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((c = (l = e.editParams) == null ? void 0 : l.allowMeasureType) != null ? c : ["line"])), this.currentMeasureType = (d = this.allowMeasureType[0]) != null ? d : "line", this.group = new dn(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
13790
13790
  const i = (f = (h = e.editParams) == null ? void 0 : h.pointSelectorMode) != null ? f : zu ? "fixed" : "cursor", s = (m = this.params.openParams) != null ? m : {};
13791
13791
  if (this.params.useUIController !== !1) {
13792
- const A = V({
13792
+ const p = V({
13793
13793
  container: this.container,
13794
13794
  openParams: s,
13795
13795
  i18n: e.i18n,
13796
13796
  pointSelectorMode: i,
13797
13797
  useNewUI: this.allowMeasureType.length > 1
13798
13798
  }, Io(this.params.useUIController));
13799
- this.useUIController = new z0(this, A);
13799
+ this.useUIController = new z0(this, p);
13800
13800
  }
13801
13801
  if (this.params.useGuideController !== !1) {
13802
- const A = V({
13802
+ const p = V({
13803
13803
  container: this.container,
13804
13804
  pointSelectorMode: i,
13805
13805
  i18n: e.i18n
13806
13806
  }, Io(this.params.useGuideController));
13807
- this.useGuideController = new H0(this, A);
13807
+ this.useGuideController = new H0(this, p);
13808
13808
  }
13809
13809
  }
13810
13810
  appendTo(t) {
@@ -14062,10 +14062,10 @@ class uk {
14062
14062
  return [(g.x + 1) / 2 * o.x, (g.y + 1) / 2 * o.y];
14063
14063
  } else
14064
14064
  return [this.renderCenter.x, o.y - this.renderCenter.y];
14065
- })(), l = 1, c = i / t, d = s / t, h = l * t, f = this.five.getPixels(r - c / 2, a - c / 2, c, d, h), m = Math.floor(i * l), A = Math.floor(s * l);
14066
- W0(f, m, A);
14067
- const p = new ImageData(m, A);
14068
- p.data.set(f), e.putImageData(p, 0, 0);
14065
+ })(), l = 1, c = i / t, d = s / t, h = l * t, f = this.five.getPixels(r - c / 2, a - c / 2, c, d, h), m = Math.floor(i * l), p = Math.floor(s * l);
14066
+ W0(f, m, p);
14067
+ const A = new ImageData(m, p);
14068
+ A.data.set(f), e.putImageData(A, 0, 0);
14069
14069
  }
14070
14070
  initStyle() {
14071
14071
  const t = this.canvas;
@@ -14204,7 +14204,7 @@ function Z0(n) {
14204
14204
  height 0.5s linear;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-9m6drd.svelte-9m6drd{position:absolute;top:0;left:0.3rem;height:1.8rem;width:0.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-9m6drd.svelte-9m6drd{position:absolute;top:0;left:0.5rem;height:1.8rem;width:0.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-9m6drd .PanoSpatialTagPlugin__tag-line1.svelte-9m6drd{animation:svelte-9m6drd-PanoSpatialTagPlugin__tag-line1 linear 0.5s forwards 0.45s}.PanoSpatialTagPlugin__tag-show.svelte-9m6drd .PanoSpatialTagPlugin__tag-line2.svelte-9m6drd{animation:svelte-9m6drd-PanoSpatialTagPlugin__tag-line2 linear 0.5s forwards 0.65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-9m6drd.svelte-9m6drd{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-9m6drd .PanoSpatialTagPlugin__tag-line.svelte-9m6drd{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-9m6drd.svelte-9m6drd{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform 0.5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-9m6drd .PanoSpatialTagPlugin__tag-animate.svelte-9m6drd{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-9m6drd.svelte-9m6drd{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform 0.9s cubic-bezier(0, 0.65, 0.16, 1.08) 0.6s;padding-left:0.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-9m6drd .PanoSpatialTagPlugin__tag-content.svelte-9m6drd{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-9m6drd .PanoSpatialTagPlugin__tag-flagpole.svelte-9m6drd{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-9m6drd .PanoSpatialTagPlugin__tag-shadow.svelte-9m6drd{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-9m6drd .PanoSpatialTagPlugin__tag-shadow.svelte-9m6drd{opacity:0.32}.PanoSpatialTagPlugin__tag-show.svelte-9m6drd .PanoSpatialTagPlugin__tag-content.svelte-9m6drd{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-9m6drd .PanoSpatialTagPlugin__tag-flagpole.svelte-9m6drd{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform 0.5s 0.55s, opacity 0.4s 0.55s}.PanoSpatialTagPlugin__tag-hide.svelte-9m6drd .PanoSpatialTagPlugin__tag-shadow.svelte-9m6drd{opacity:0;transition:opacity 0.8s}.PanoSpatialTagPlugin__tag-hide.svelte-9m6drd .PanoSpatialTagPlugin__tag-content.svelte-9m6drd{transform:translate(-100%, 0);transition:transform 0.6s cubic-bezier(0.53, 0.06, 0.88, 0.59)}.PanoSpatialTagPlugin__tag-hide.svelte-9m6drd .PanoSpatialTagPlugin__tag-content .svelte-9m6drd{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-9m6drd .PanoSpatialTagPlugin__tag-line1.svelte-9m6drd{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-9m6drd-PanoSpatialTagPlugin__tag-line1-hide linear 0.28s forwards 0.3s}.PanoSpatialTagPlugin__tag-hide.svelte-9m6drd .PanoSpatialTagPlugin__tag-line2.svelte-9m6drd{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-9m6drd-PanoSpatialTagPlugin__tag-line2-hide linear 0.28s forwards 0.45s}@keyframes svelte-9m6drd-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-9m6drd-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-9m6drd-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-9m6drd-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)}}`);
14205
14205
  }
14206
14206
  function q0(n) {
14207
- let t, e, i, s, o, r, a, l, c, d, h, f, m, A, p;
14207
+ let t, e, i, s, o, r, a, l, c, d, h, f, m, p, A;
14208
14208
  return {
14209
14209
  c() {
14210
14210
  t = S("div"), e = S("div"), i = K(), s = S("div"), o = S("i"), r = K(), a = S("i"), l = K(), c = S("i"), d = K(), h = S("div"), f = S("div"), w(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-9m6drd"), j(e, "transform", "translate(" + /*contentWidth*/
@@ -14241,12 +14241,12 @@ function q0(n) {
14241
14241
  },
14242
14242
  m(g, v) {
14243
14243
  B(g, t, v), D(t, e), D(t, i), D(t, s), D(s, o), D(s, r), D(s, a), D(s, l), D(s, c), D(t, d), D(t, h), D(h, f), f.innerHTML = /*content*/
14244
- n[2], n[16](f), A || (p = be(
14244
+ n[2], n[16](f), p || (A = be(
14245
14245
  f,
14246
14246
  "click",
14247
14247
  /*handleClickContent*/
14248
14248
  n[11]
14249
- ), A = !0);
14249
+ ), p = !0);
14250
14250
  },
14251
14251
  p(g, [v]) {
14252
14252
  v & /*contentWidth, contentZoom, contentHeight, upsideDown*/
@@ -14294,12 +14294,12 @@ function q0(n) {
14294
14294
  i: Z,
14295
14295
  o: Z,
14296
14296
  d(g) {
14297
- g && O(t), n[16](null), A = !1, p();
14297
+ g && O(t), n[16](null), p = !1, A();
14298
14298
  }
14299
14299
  };
14300
14300
  }
14301
14301
  function K0(n, t, e) {
14302
- let { id: i } = t, { upsideDown: s } = t, { content: o } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: h } = t, { events: f } = t, { hooks: m } = t, A = 0, p = 0, g, v, y = setTimeout(
14302
+ let { id: i } = t, { upsideDown: s } = t, { content: o } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: h } = t, { events: f } = t, { hooks: m } = t, p = 0, A = 0, g, v, y = setTimeout(
14303
14303
  () => {
14304
14304
  d || e(10, v = !0), y = void 0;
14305
14305
  },
@@ -14338,7 +14338,7 @@ function K0(n, t, e) {
14338
14338
  )));
14339
14339
  });
14340
14340
  ru(() => {
14341
- e(7, A = g.offsetWidth), e(8, p = g.offsetHeight), !y && e(10, v = !d);
14341
+ e(7, p = g.offsetWidth), e(8, A = g.offsetHeight), !y && e(10, v = !d);
14342
14342
  }), Ot(() => {
14343
14343
  m.emit("destroyTag", { id: i }), k(), h();
14344
14344
  });
@@ -14357,8 +14357,8 @@ function K0(n, t, e) {
14357
14357
  a,
14358
14358
  l,
14359
14359
  c,
14360
- A,
14361
14360
  p,
14361
+ A,
14362
14362
  g,
14363
14363
  v,
14364
14364
  P,
@@ -14541,9 +14541,9 @@ const Br = 1e-3, Gc = 0.01, ob = "https://vrlab-image4.ljcdn.com/release/web/Pan
14541
14541
  const s = (ce = t == null ? void 0 : t.wait) != null ? ce : 200, o = (oe = t == null ? void 0 : t.maxNumberOnScreen) != null ? oe : 3, r = (we = t == null ? void 0 : t.minRad) != null ? we : Math.PI / 4, a = (Ce = t == null ? void 0 : t.nearTolerance) != null ? Ce : 100, l = (Ae = t == null ? void 0 : t.upsideHeight) != null ? Ae : 1.6, c = (Oe = t == null ? void 0 : t.minDistance) != null ? Oe : 1.2, d = (ve = t == null ? void 0 : t.maxDistance) != null ? ve : 3.5, h = Do(n), f = document.createElement("div");
14542
14542
  f.classList.add("PanoSpatialTagPlugin"), Object.assign(f.style, eb);
14543
14543
  const m = new mt();
14544
- let A = new Image();
14545
- A.src = ob;
14546
- const p = {
14544
+ let p = new Image();
14545
+ p.src = ob;
14546
+ const A = {
14547
14547
  points: [],
14548
14548
  origins: [],
14549
14549
  tags: [],
@@ -14555,25 +14555,25 @@ const Br = 1e-3, Gc = 0.01, ob = "https://vrlab-image4.ljcdn.com/release/web/Pan
14555
14555
  forbidden: !0
14556
14556
  }, g = new J0({
14557
14557
  target: f,
14558
- props: { origins: p.origins }
14558
+ props: { origins: A.origins }
14559
14559
  }), v = (fe, ye) => {
14560
14560
  x(), ye && E();
14561
14561
  }, y = () => {
14562
- p.forbidden && (p.forbidden = !1, E());
14562
+ A.forbidden && (A.forbidden = !1, E());
14563
14563
  }, P = (fe, ye) => {
14564
- if (p.tags.length === 0)
14564
+ if (A.tags.length === 0)
14565
14565
  return;
14566
14566
  const Le = ye.longitude - n.state.longitude, me = n.camera.clone();
14567
14567
  me.position.copy(ye.offset), me.rotateOnWorldAxis(new C.Vector3(0, 1, 0), Le), me.updateProjectionMatrix(), me.updateMatrixWorld(!0);
14568
14568
  const Ze = new C.Frustum(), ht = new C.Matrix4();
14569
- ht.multiplyMatrices(me.projectionMatrix, me.matrixWorldInverse), Ze.setFromProjectionMatrix(ht), p.tags.forEach((ke) => {
14569
+ ht.multiplyMatrices(me.projectionMatrix, me.matrixWorldInverse), Ze.setFromProjectionMatrix(ht), A.tags.forEach((ke) => {
14570
14570
  const nt = me.position.clone().setY(i).distanceTo(ke.position);
14571
14571
  if (nt < c || nt > d || !Ze.containsPoint(ke.position))
14572
14572
  return ke.destroying = !0;
14573
14573
  const re = ke.position.clone().sub(me.position).setY(0);
14574
14574
  if (re.angleTo(ke.normal) > Math.PI / 2 - r && re.angleTo(ke.normal) < Math.PI / 2 + r)
14575
14575
  return ke.destroying = !0;
14576
- }), p.tags.forEach((ke) => {
14576
+ }), A.tags.forEach((ke) => {
14577
14577
  ke.destroying ? ke.app.$set({
14578
14578
  contentZoom: 0.1 + me.position.distanceTo(ke.position) / d,
14579
14579
  lineWidthZoom: 0.38 * (0.01 + me.position.distanceTo(ke.position) / d),
@@ -14584,19 +14584,19 @@ const Br = 1e-3, Gc = 0.01, ob = "https://vrlab-image4.ljcdn.com/release/web/Pan
14584
14584
  contentZoom: 0.1 + me.position.distanceTo(ke.position) / d
14585
14585
  });
14586
14586
  }), setTimeout(() => {
14587
- p.tags.forEach((ke) => {
14587
+ A.tags.forEach((ke) => {
14588
14588
  ke.destroying && (ke.app.$destroy(), ke = null);
14589
- }), p.tags = p.tags.filter((ke) => !ke.destroying), x();
14589
+ }), A.tags = A.tags.filter((ke) => !ke.destroying), x();
14590
14590
  }, 1900);
14591
14591
  }, k = (fe) => {
14592
- fe !== $e.Mode.Panorama && !p.forbidden && (g.$set({ origins: [] }), p.tags.forEach((ye) => {
14592
+ fe !== $e.Mode.Panorama && !A.forbidden && (g.$set({ origins: [] }), A.tags.forEach((ye) => {
14593
14593
  ye.app.$destroy(), ye = null;
14594
- }), p.origins = [], p.tags = [], p.forbidden = !0);
14594
+ }), A.origins = [], A.tags = [], A.forbidden = !0);
14595
14595
  }, x = () => {
14596
- if (p.forbidden || !p.enabled)
14596
+ if (A.forbidden || !A.enabled)
14597
14597
  return;
14598
14598
  const fe = n.camera, ye = fe.getWorldDirection(new C.Vector3());
14599
- p.origins = p.tags.map((Le) => {
14599
+ A.origins = A.tags.map((Le) => {
14600
14600
  const me = Le.position.clone().project(fe), Ze = Le.position.clone().sub(fe.position).setY(0).angleTo(ye.setY(0)) < Math.PI / 2;
14601
14601
  return {
14602
14602
  id: Le.id,
@@ -14605,18 +14605,18 @@ const Br = 1e-3, Gc = 0.01, ob = "https://vrlab-image4.ljcdn.com/release/web/Pan
14605
14605
  top: (-me.y + 1) / 2 * 100,
14606
14606
  destroying: Le.destroying
14607
14607
  };
14608
- }), g.$set({ origins: p.origins });
14608
+ }), g.$set({ origins: A.origins });
14609
14609
  }, E = () => {
14610
- p.forbidden || !p.enabled || (p.timeoutId && clearTimeout(p.timeoutId), p.timeoutId = setTimeout(() => {
14611
- p.timeoutId = void 0;
14610
+ A.forbidden || !A.enabled || (A.timeoutId && clearTimeout(A.timeoutId), A.timeoutId = setTimeout(() => {
14611
+ A.timeoutId = void 0;
14612
14612
  const fe = R();
14613
- fe.length && (p.tags = p.tags.concat(fe), x());
14613
+ fe.length && (A.tags = A.tags.concat(fe), x());
14614
14614
  }, s));
14615
14615
  }, R = () => {
14616
14616
  const { clientWidth: fe, clientHeight: ye } = n.getElement(), Le = [], me = n.camera, Ze = new C.Frustum(), ht = new C.Matrix4(), ke = me.getWorldDirection(new C.Vector3());
14617
14617
  ht.multiplyMatrices(me.projectionMatrix, me.matrixWorldInverse), Ze.setFromProjectionMatrix(ht);
14618
- const nt = p.tags.filter((Ee) => Ze.containsPoint(Ee.position) && !Ee.destroying).length, re = p.points.reduce((Ee, He) => {
14619
- if (p.tags.find((Ge) => He.id === Ge.id && !Ge.destroying))
14618
+ const nt = A.tags.filter((Ee) => Ze.containsPoint(Ee.position) && !Ee.destroying).length, re = A.points.reduce((Ee, He) => {
14619
+ if (A.tags.find((Ge) => He.id === Ge.id && !Ge.destroying))
14620
14620
  return Ee;
14621
14621
  const gt = me.position.clone().setY(i).distanceTo(He.position);
14622
14622
  if (gt < c || gt > d || !Ze.containsPoint(He.position))
@@ -14625,7 +14625,7 @@ const Br = 1e-3, Gc = 0.01, ob = "https://vrlab-image4.ljcdn.com/release/web/Pan
14625
14625
  if (Xt.angleTo(He.normal) > Math.PI / 2 - r && Xt.angleTo(He.normal) < Math.PI / 2 + r)
14626
14626
  return Ee;
14627
14627
  const wt = He.position.clone().project(me);
14628
- if (!p.tags.every((Ge) => {
14628
+ if (!A.tags.every((Ge) => {
14629
14629
  if (Ge.position.clone().sub(me.position).setY(0).angleTo(ke.setY(0)) > Math.PI / 2)
14630
14630
  return !0;
14631
14631
  const Xe = Ge.position.clone().project(me);
@@ -14659,7 +14659,7 @@ const Br = 1e-3, Gc = 0.01, ob = "https://vrlab-image4.ljcdn.com/release/web/Pan
14659
14659
  if (Le.find((Be) => gt.id === Be.id))
14660
14660
  continue;
14661
14661
  const Xt = gt.position.clone().project(me);
14662
- if (!p.tags.concat(Le).every((Be) => {
14662
+ if (!A.tags.concat(Le).every((Be) => {
14663
14663
  if (Be.position.clone().sub(me.position).setY(0).angleTo(ke.setY(0)) > Math.PI / 2)
14664
14664
  return !0;
14665
14665
  const Ge = Be.position.clone().project(me);
@@ -14671,7 +14671,7 @@ const Br = 1e-3, Gc = 0.01, ob = "https://vrlab-image4.ljcdn.com/release/web/Pan
14671
14671
  gt.position.clone().sub(me.position.clone().setY(i)).normalize(),
14672
14672
  0,
14673
14673
  gt.distance + Gc
14674
- ), [Ct] = p.intersectObjects ? wt.intersectObjects(p.intersectObjects, !0) : n.model.loaded ? n.model.intersectRaycaster(wt) : wt.intersectObjects(n.model.children, !0);
14674
+ ), [Ct] = A.intersectObjects ? wt.intersectObjects(A.intersectObjects, !0) : n.model.loaded ? n.model.intersectRaycaster(wt) : wt.intersectObjects(n.model.children, !0);
14675
14675
  if (Ct && gt.distance - Ct.distance < Gc) {
14676
14676
  const { position: Be, normal: Ge, id: Xe, replacement: Dt } = gt, Gn = new C.Plane().setFromNormalAndCoplanarPoint(Ge, Be), Rt = Be.clone().sub(me.position).cross(new C.Vector3(0, 1, 0)).setLength(Br), ri = [
14677
14677
  Be.clone(),
@@ -14682,13 +14682,13 @@ const Br = 1e-3, Gc = 0.01, ob = "https://vrlab-image4.ljcdn.com/release/web/Pan
14682
14682
  target: Ii,
14683
14683
  props: {
14684
14684
  id: Xe,
14685
- content: p.render(p.template, Dt),
14685
+ content: A.render(A.template, Dt),
14686
14686
  lineWidthZoom: 0.38 * (0.01 + me.position.distanceTo(Be) / d),
14687
14687
  lineHeightZoom: 0.4 + (me.position.distanceTo(Be) - c) / d * 0.6,
14688
14688
  contentZoom: 0.1 + me.position.distanceTo(Be) / d,
14689
14689
  upsideDown: Be.y > l,
14690
- folded: p.folded,
14691
- events: p.events,
14690
+ folded: A.folded,
14691
+ events: A.events,
14692
14692
  hooks: m,
14693
14693
  dispose: pt
14694
14694
  }
@@ -14703,7 +14703,7 @@ const Br = 1e-3, Gc = 0.01, ob = "https://vrlab-image4.ljcdn.com/release/web/Pan
14703
14703
  }
14704
14704
  return Le;
14705
14705
  }, L = (fe) => {
14706
- p.points = fe.points.map((ye) => {
14706
+ A.points = fe.points.map((ye) => {
14707
14707
  var Le, me;
14708
14708
  return {
14709
14709
  id: ye.id,
@@ -14712,39 +14712,39 @@ const Br = 1e-3, Gc = 0.01, ob = "https://vrlab-image4.ljcdn.com/release/web/Pan
14712
14712
  replacement: (Le = ye.replacement) != null ? Le : {},
14713
14713
  weight: (me = ye.weight) != null ? me : -1
14714
14714
  };
14715
- }), fe.render && (p.render = fe.render), fe.template && (p.template = fe.template), fe.events && (p.events = fe.events), fe.enabled === !1 && (p.enabled = fe.enabled), fe.folded === !0 && (p.folded = fe.folded);
14715
+ }), fe.render && (A.render = fe.render), fe.template && (A.template = fe.template), fe.events && (A.events = fe.events), fe.enabled === !1 && (A.enabled = fe.enabled), fe.folded === !0 && (A.folded = fe.folded);
14716
14716
  }, W = (fe) => {
14717
- p.intersectObjects = fe, E();
14717
+ A.intersectObjects = fe, E();
14718
14718
  }, F = () => {
14719
- p.enabled = !0, E();
14719
+ A.enabled = !0, E();
14720
14720
  }, N = () => {
14721
- p.enabled = !1, g.$set({ origins: [] }), p.tags.forEach((fe) => {
14721
+ A.enabled = !1, g.$set({ origins: [] }), A.tags.forEach((fe) => {
14722
14722
  fe.app.$destroy(), fe = null;
14723
- }), p.origins = [], p.tags = [];
14723
+ }), A.origins = [], A.tags = [];
14724
14724
  }, G = () => {
14725
- p.folded = !1, p.tags.forEach((fe) => {
14726
- fe.app.$set({ folded: p.folded });
14725
+ A.folded = !1, A.tags.forEach((fe) => {
14726
+ fe.app.$set({ folded: A.folded });
14727
14727
  });
14728
14728
  }, _ = () => {
14729
- p.folded = !0, p.tags.forEach((fe) => {
14730
- fe.app.$set({ folded: p.folded });
14729
+ A.folded = !0, A.tags.forEach((fe) => {
14730
+ fe.app.$set({ folded: A.folded });
14731
14731
  });
14732
14732
  }, Q = (fe) => {
14733
- p.tags.forEach((ye) => {
14733
+ A.tags.forEach((ye) => {
14734
14734
  ye.id === fe && ye.app.$set({ folded: !1 });
14735
14735
  });
14736
14736
  }, Y = (fe) => {
14737
- p.tags.forEach((ye) => {
14737
+ A.tags.forEach((ye) => {
14738
14738
  ye.id === fe && ye.app.$set({ folded: !0 });
14739
14739
  });
14740
14740
  }, J = () => {
14741
14741
  n.once("renderFrame", x);
14742
14742
  }, X = () => {
14743
- e || (e = n.getElement().parentElement), e && e.appendChild(f), p.forbidden = !1, i = n.model.bounding.getCenter(new C.Vector3()).y, E(), n.on("panoWillArrive", P), n.on("panoArrived", y), n.on("modeChange", k), n.on("cameraUpdate", v);
14743
+ e || (e = n.getElement().parentElement), e && e.appendChild(f), A.forbidden = !1, i = n.model.bounding.getCenter(new C.Vector3()).y, E(), n.on("panoWillArrive", P), n.on("panoArrived", y), n.on("modeChange", k), n.on("cameraUpdate", v);
14744
14744
  }, $ = () => {
14745
- A = null, h.disposeAll(), g.$destroy(), p.tags.forEach((fe) => {
14745
+ p = null, h.disposeAll(), g.$destroy(), A.tags.forEach((fe) => {
14746
14746
  fe.app.$destroy(), fe = null;
14747
- }), p.origins = [], p.tags = [], n.off("modelLoaded", X), n.off("renderFrame", x), n.off("panoWillArrive", P), n.off("panoArrived", y), n.off("modeChange", k), n.off("cameraUpdate", v), n.off("dispose", $), window.removeEventListener("resize", J, !1);
14747
+ }), A.origins = [], A.tags = [], n.off("modelLoaded", X), n.off("renderFrame", x), n.off("panoWillArrive", P), n.off("panoArrived", y), n.off("modeChange", k), n.off("cameraUpdate", v), n.off("dispose", $), window.removeEventListener("resize", J, !1);
14748
14748
  };
14749
14749
  return window.addEventListener("resize", J, !1), (Fe = n == null ? void 0 : n.model) != null && Fe.loaded ? X() : n.once("modelLoaded", X), n.on("dispose", $), {
14750
14750
  load: L,
@@ -15021,7 +15021,7 @@ function ub(n) {
15021
15021
  let _c = 26, fb = 11;
15022
15022
  function mb(n, t, e) {
15023
15023
  const { Raycaster: i, Vector3: s } = C;
15024
- let { five: o } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, h = null, f, m, A = [], p = !0;
15024
+ let { five: o } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, h = null, f, m, p = [], A = !0;
15025
15025
  const g = (_, Q) => {
15026
15026
  const Y = new i(), J = _.camera.position.clone(), X = new s().fromArray(Q.modelPosition), $ = X.distanceTo(J);
15027
15027
  Y.set(J.clone(), X.clone().sub(J).normalize());
@@ -15030,7 +15030,7 @@ function mb(n, t, e) {
15030
15030
  }, v = (_, Q) => {
15031
15031
  const Y = new s(Q.modelPosition[0], Q.modelPosition[1], Q.modelPosition[2]), J = _.project2d(Y), X = J == null ? void 0 : J.x, $ = J == null ? void 0 : J.y;
15032
15032
  return [X, $];
15033
- }, y = (_) => `translate(${_[0]}px, ${_[1]}px)`, P = (_, Q) => A.length === 0 ? !1 : !!A.find((J) => _[0] >= J[0] - Q && _[0] <= J[0] + Q || _[1] >= J[1] - _c && _[1] <= J[1] + _c);
15033
+ }, y = (_) => `translate(${_[0]}px, ${_[1]}px)`, P = (_, Q) => p.length === 0 ? !1 : !!p.find((J) => _[0] >= J[0] - Q && _[0] <= J[0] + Q || _[1] >= J[1] - _c && _[1] <= J[1] + _c);
15034
15034
  function k(_, Q) {
15035
15035
  switch (Q) {
15036
15036
  case rn.SMALL:
@@ -15048,7 +15048,7 @@ function mb(n, t, e) {
15048
15048
  const $ = v(_, X), ce = X.name.length * fb, oe = k(X.modelPosition[1], c), Ce = (r ? g(_, X) : !0) && !P([$[0], $[1] + oe], ce);
15049
15049
  if (!Ce)
15050
15050
  return pe(V({}, X), { visible: Ce });
15051
- A.push($);
15051
+ p.push($);
15052
15052
  const Ae = y($);
15053
15053
  return pe(V({}, X), {
15054
15054
  visible: Ce,
@@ -15064,20 +15064,20 @@ function mb(n, t, e) {
15064
15064
  return $ !== void 0 ? pe(V({}, X), { zIndex: $ * 10 }) : X;
15065
15065
  });
15066
15066
  }, E = () => {
15067
- A = [], e(1, h = x(o, h));
15067
+ p = [], e(1, h = x(o, h));
15068
15068
  };
15069
15069
  ou(() => {
15070
15070
  F();
15071
15071
  });
15072
15072
  const R = () => {
15073
- e(4, p = !1), L();
15073
+ e(4, A = !1), L();
15074
15074
  };
15075
15075
  yt(() => {
15076
15076
  e(1, h = a), d = a, E(), W(), o.on("cameraUpdate", R);
15077
15077
  });
15078
15078
  const L = Fu(
15079
15079
  () => {
15080
- e(4, p = !0), E();
15080
+ e(4, A = !0), E();
15081
15081
  },
15082
15082
  300
15083
15083
  ), W = () => {
@@ -15100,7 +15100,7 @@ function mb(n, t, e) {
15100
15100
  h,
15101
15101
  f,
15102
15102
  m,
15103
- p,
15103
+ A,
15104
15104
  o,
15105
15105
  r,
15106
15106
  a,
@@ -15154,15 +15154,15 @@ const vk = (n, t) => {
15154
15154
  height: 100%;
15155
15155
  z-index: 5;
15156
15156
  `, e.container.style.pointerEvents = "none";
15157
- const i = (A) => (e.wrapper = A, A.appendChild(e.container), l(), !0), s = (A) => {
15158
- e.itemLabels = pb(A), l();
15157
+ const i = (p) => (e.wrapper = p, p.appendChild(e.container), l(), !0), s = (p) => {
15158
+ e.itemLabels = pb(p), l();
15159
15159
  }, o = () => (e.enabled || (e.enabled = !0, l()), !0), r = () => (e.enabled && (e.enabled = !1, l()), !0), a = () => {
15160
15160
  d(), e.container.remove();
15161
15161
  }, l = () => {
15162
- var A;
15162
+ var p;
15163
15163
  if (e.wrapper) {
15164
15164
  if (!e.enabled || !e.fiveModeEnabled) {
15165
- (A = e.app) == null || A.$destroy(), e.app = void 0;
15165
+ (p = e.app) == null || p.$destroy(), e.app = void 0;
15166
15166
  return;
15167
15167
  }
15168
15168
  e.app ? e.app.$set({
@@ -15183,9 +15183,9 @@ const vk = (n, t) => {
15183
15183
  n.on("modeChange", h), n.once("dispose", a);
15184
15184
  }, d = () => {
15185
15185
  n.off("modeChange", h);
15186
- }, h = (A) => {
15186
+ }, h = (p) => {
15187
15187
  if (e.enabled) {
15188
- if (A !== $e.Mode.Floorplan) {
15188
+ if (p !== $e.Mode.Floorplan) {
15189
15189
  e.fiveModeEnabled = !1, l();
15190
15190
  return;
15191
15191
  }
@@ -15333,9 +15333,9 @@ const vb = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
15333
15333
  const y = e.videoMeshes;
15334
15334
  if (!(!y || v.intersectObjects(y).length === 0))
15335
15335
  return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
15336
- }, A = (v) => {
15336
+ }, p = (v) => {
15337
15337
  v === "Floorplan" ? i.hide() : i.show();
15338
- }, p = () => {
15338
+ }, A = () => {
15339
15339
  if (!e.enabled)
15340
15340
  return;
15341
15341
  const v = n.camera.position;
@@ -15353,13 +15353,13 @@ const vb = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
15353
15353
  (!y || y.length === 0) && o(!0);
15354
15354
  }
15355
15355
  }, g = () => {
15356
- l(), e.videoTexture = void 0, n.off("modeChange", A), n.off("wantsTapGesture", m), n.off("panoArrived", p), n.off("renderFrame", () => {
15356
+ l(), e.videoTexture = void 0, n.off("modeChange", p), n.off("wantsTapGesture", m), n.off("panoArrived", A), n.off("renderFrame", () => {
15357
15357
  e.videoMeshes.forEach((v) => {
15358
15358
  v && (v.needsRender = !0);
15359
15359
  });
15360
15360
  });
15361
15361
  };
15362
- return n.on("modeChange", A), n.on("wantsTapGesture", m), n.on("panoArrived", p), n.on("renderFrame", () => {
15362
+ return n.on("modeChange", p), n.on("wantsTapGesture", m), n.on("panoArrived", A), n.on("renderFrame", () => {
15363
15363
  e.videoMeshes.forEach((v) => {
15364
15364
  v && (v.needsRender = !0);
15365
15365
  });
@@ -15446,10 +15446,10 @@ function Fc(n) {
15446
15446
  }
15447
15447
  function Ib(n) {
15448
15448
  let t, e, i, s, o, r, a, l, c, d;
15449
- function h(A, p) {
15450
- return p & /*itemLabel*/
15449
+ function h(p, A) {
15450
+ return A & /*itemLabel*/
15451
15451
  1 && (i = null), i == null && (i = typeof /*itemLabel*/
15452
- A[0].render == "function"), i ? Cb : wb;
15452
+ p[0].render == "function"), i ? Cb : wb;
15453
15453
  }
15454
15454
  let f = h(n, -1), m = f(n);
15455
15455
  return {
@@ -15477,49 +15477,49 @@ function Ib(n) {
15477
15477
  n[0].transform
15478
15478
  );
15479
15479
  },
15480
- m(A, p) {
15481
- B(A, t, p), D(t, e), m.m(e, null), D(t, o), D(t, r), c || (d = be(
15480
+ m(p, A) {
15481
+ B(p, t, A), D(t, e), m.m(e, null), D(t, o), D(t, r), c || (d = be(
15482
15482
  e,
15483
15483
  "click",
15484
15484
  /*onClick*/
15485
15485
  n[4]
15486
15486
  ), c = !0);
15487
15487
  },
15488
- p(A, [p]) {
15489
- f === (f = h(A, p)) && m ? m.p(A, p) : (m.d(1), m = f(A), m && (m.c(), m.m(e, null))), p & /*itemLabel*/
15488
+ p(p, [A]) {
15489
+ f === (f = h(p, A)) && m ? m.p(p, A) : (m.d(1), m = f(p), m && (m.c(), m.m(e, null))), A & /*itemLabel*/
15490
15490
  1 && s !== (s = Re(at("item-label-item__text-wrap", {
15491
15491
  "item-label-item__custom": typeof /*itemLabel*/
15492
- A[0].render == "function"
15493
- })) + " svelte-1jhufeh") && w(e, "class", s), p & /*itemLabel*/
15492
+ p[0].render == "function"
15493
+ })) + " svelte-1jhufeh") && w(e, "class", s), A & /*itemLabel*/
15494
15494
  1 && j(e, "bottom", `${/*itemLabel*/
15495
- A[0].strokeLength}px`), p & /*anchorEnabled*/
15495
+ p[0].strokeLength}px`), A & /*anchorEnabled*/
15496
15496
  2 && a !== (a = Re(at("item-label-item__bar", { anchor: (
15497
15497
  /*anchorEnabled*/
15498
- A[1]
15499
- ) })) + " svelte-1jhufeh") && w(r, "class", a), p & /*itemLabel*/
15498
+ p[1]
15499
+ ) })) + " svelte-1jhufeh") && w(r, "class", a), A & /*itemLabel*/
15500
15500
  1 && j(r, "height", `${/*itemLabel*/
15501
- A[0].strokeLength}px`), p & /*itemLabel*/
15501
+ p[0].strokeLength}px`), A & /*itemLabel*/
15502
15502
  1 && l !== (l = Re(at("item-label-item", { fold: (
15503
15503
  /*itemLabel*/
15504
- A[0].isFold
15505
- ) })) + " svelte-1jhufeh") && w(t, "class", l), p & /*itemLabel*/
15504
+ p[0].isFold
15505
+ ) })) + " svelte-1jhufeh") && w(t, "class", l), A & /*itemLabel*/
15506
15506
  1 && j(
15507
15507
  t,
15508
15508
  "z-index",
15509
15509
  /*itemLabel*/
15510
- A[0].zIndex
15511
- ), p & /*itemLabel*/
15510
+ p[0].zIndex
15511
+ ), A & /*itemLabel*/
15512
15512
  1 && j(
15513
15513
  t,
15514
15514
  "transform",
15515
15515
  /*itemLabel*/
15516
- A[0].transform
15516
+ p[0].transform
15517
15517
  );
15518
15518
  },
15519
15519
  i: Z,
15520
15520
  o: Z,
15521
- d(A) {
15522
- A && O(t), m.d(), c = !1, d();
15521
+ d(p) {
15522
+ p && O(t), m.d(), c = !1, d();
15523
15523
  }
15524
15524
  };
15525
15525
  }
@@ -15756,7 +15756,7 @@ function Sb(n) {
15756
15756
  let Tb = 11;
15757
15757
  function Lb(n, t, e) {
15758
15758
  const { Vector3: i } = C;
15759
- let { five: s } = t, { modelOcclusionEnable: o } = t, { itemLabels: r } = t, { hooks: a } = t, { displayStrategyType: l } = t, { maxVisibleDistance: c } = t, d = null, h = null, f = (s == null ? void 0 : s.currentMode) === $e.Mode.Panorama, m, A, p = [], g = !0;
15759
+ let { five: s } = t, { modelOcclusionEnable: o } = t, { itemLabels: r } = t, { hooks: a } = t, { displayStrategyType: l } = t, { maxVisibleDistance: c } = t, d = null, h = null, f = (s == null ? void 0 : s.currentMode) === $e.Mode.Panorama, m, p, A = [], g = !0;
15760
15760
  const v = (Q, Y) => {
15761
15761
  const J = Q.camera.position.clone(), X = new i(Y.modelPosition[0], Y.modelPosition[1], Y.modelPosition[2]), $ = X.distanceTo(J);
15762
15762
  return c !== void 0 && Q.state.mode === $e.Mode.Panorama && $ > c ? !1 : Wc(Q, X.clone().sub(J).normalize(), J, $);
@@ -15775,7 +15775,7 @@ function Lb(n, t, e) {
15775
15775
  const oe = Mb($.modelPosition[1], l), we = Q.currentMode === $e.Mode.Panorama ? y(new i($.position[0], $.position[1], $.position[2])) : !0, Ce = o ? v(Q, $) : !1, Ae = we && !Ce;
15776
15776
  if (!Ae)
15777
15777
  return pe(V({}, $), { visible: Ae });
15778
- p.push(ce);
15778
+ A.push(ce);
15779
15779
  const Oe = xb(ce);
15780
15780
  return pe(V({}, $), {
15781
15781
  visible: Ae,
@@ -15791,7 +15791,7 @@ function Lb(n, t, e) {
15791
15791
  return ce !== void 0 ? pe(V({}, $), { zIndex: ce * 10 }) : $;
15792
15792
  });
15793
15793
  }, x = () => {
15794
- p = [], e(1, h = k(s, h));
15794
+ A = [], e(1, h = k(s, h));
15795
15795
  }, E = () => {
15796
15796
  e(5, g = !1), R();
15797
15797
  }, R = Fu(
@@ -15850,7 +15850,7 @@ function Lb(n, t, e) {
15850
15850
  s.off("cameraUpdate", E), window.removeEventListener("resize", L, !1);
15851
15851
  });
15852
15852
  function _() {
15853
- m = this.clientWidth, A = this.clientHeight, e(3, m), e(4, A);
15853
+ m = this.clientWidth, p = this.clientHeight, e(3, m), e(4, p);
15854
15854
  }
15855
15855
  return n.$$set = (Q) => {
15856
15856
  "five" in Q && e(7, s = Q.five), "modelOcclusionEnable" in Q && e(8, o = Q.modelOcclusionEnable), "itemLabels" in Q && e(9, r = Q.itemLabels), "hooks" in Q && e(0, a = Q.hooks), "displayStrategyType" in Q && e(10, l = Q.displayStrategyType), "maxVisibleDistance" in Q && e(11, c = Q.maxVisibleDistance);
@@ -15859,7 +15859,7 @@ function Lb(n, t, e) {
15859
15859
  h,
15860
15860
  f,
15861
15861
  m,
15862
- A,
15862
+ p,
15863
15863
  g,
15864
15864
  G,
15865
15865
  s,
@@ -15898,7 +15898,7 @@ function zb(n) {
15898
15898
  }));
15899
15899
  }
15900
15900
  const Ob = void 0, Ck = (n, t) => {
15901
- var f, m, A, p;
15901
+ var f, m, p, A;
15902
15902
  const e = {
15903
15903
  container: document.createElement("div"),
15904
15904
  data: null,
@@ -15910,8 +15910,8 @@ const Ob = void 0, Ck = (n, t) => {
15910
15910
  hooks: new mt(),
15911
15911
  modelOcclusionEnable: (f = t == null ? void 0 : t.modelOcclusionEnable) != null ? f : !0,
15912
15912
  onlyVisibleInPanorama: (m = t == null ? void 0 : t.onlyVisibleInPanorama) != null ? m : !0,
15913
- displayStrategyType: (A = t == null ? void 0 : t.displayStrategyType) != null ? A : an.SMALL,
15914
- maxVisibleDistance: (p = t == null ? void 0 : t.maxVisibleDistance) != null ? p : Ob
15913
+ displayStrategyType: (p = t == null ? void 0 : t.displayStrategyType) != null ? p : an.SMALL,
15914
+ maxVisibleDistance: (A = t == null ? void 0 : t.maxVisibleDistance) != null ? A : Ob
15915
15915
  };
15916
15916
  e.container.setAttribute("class", "item-label-plugin-container"), e.container.style.cssText = `
15917
15917
  position: absolute;
@@ -16095,10 +16095,10 @@ function Qb(n, t, e) {
16095
16095
  return;
16096
16096
  const g = o.current.clientWidth / window.innerWidth * 100, v = o.current.clientHeight / window.innerHeight * 100;
16097
16097
  r <= g / 2 || r >= 100 - g / 2 || a <= v / 2 || a >= 100 - v / 2;
16098
- }, A = (g) => {
16098
+ }, p = (g) => {
16099
16099
  s && s();
16100
16100
  };
16101
- function p(g) {
16101
+ function A(g) {
16102
16102
  Qe[g ? "unshift" : "push"](() => {
16103
16103
  o = g, e(2, o);
16104
16104
  });
@@ -16115,8 +16115,8 @@ function Qb(n, t, e) {
16115
16115
  c,
16116
16116
  h,
16117
16117
  f,
16118
- A,
16119
- p
16118
+ p,
16119
+ A
16120
16120
  ];
16121
16121
  }
16122
16122
  class Gb extends le {
@@ -16201,8 +16201,8 @@ class Yb extends Bb {
16201
16201
  return;
16202
16202
  const f = new bi(), m = d.clone().sub(o).normalize();
16203
16203
  f.set(o, m);
16204
- const [A] = this.five.model.intersectRaycaster(f);
16205
- A && A.distance + 0.1 < h || a.push(c);
16204
+ const [p] = this.five.model.intersectRaycaster(f);
16205
+ p && p.distance + 0.1 < h || a.push(c);
16206
16206
  }), this.visibleLabelMap.set(e, a), a;
16207
16207
  }
16208
16208
  })();
@@ -16211,7 +16211,7 @@ class Yb extends Bb {
16211
16211
  }), this.fixDoorPosition();
16212
16212
  });
16213
16213
  u(this, "fixDoorPosition", () => {
16214
- var d, h, f, m, A, p, g, v, y, P, k, x;
16214
+ var d, h, f, m, p, A, g, v, y, P, k, x;
16215
16215
  const { panoIndex: e, camera: i } = this.five;
16216
16216
  if (e === null)
16217
16217
  return;
@@ -16235,7 +16235,7 @@ class Yb extends Bb {
16235
16235
  left: o * W / 100,
16236
16236
  top: r * F / 100,
16237
16237
  width: (f = (h = (d = Q.children) == null ? void 0 : d[0]) == null ? void 0 : h.clientWidth) != null ? f : 0,
16238
- height: (p = (A = (m = Q.children) == null ? void 0 : m[0]) == null ? void 0 : A.clientHeight) != null ? p : 0
16238
+ height: (A = (p = (m = Q.children) == null ? void 0 : m[0]) == null ? void 0 : p.clientHeight) != null ? A : 0
16239
16239
  }, X = {
16240
16240
  left: o * G / 100,
16241
16241
  top: r * _ / 100,
@@ -16278,19 +16278,19 @@ class Yb extends Bb {
16278
16278
  a && a.forEach((d) => {
16279
16279
  const h = d.position;
16280
16280
  let f = 1 / 0, m;
16281
- l.forEach((p) => {
16282
- const g = p.standingPosition, v = {
16281
+ l.forEach((A) => {
16282
+ const g = A.standingPosition, v = {
16283
16283
  x: g.x,
16284
16284
  y: g.y,
16285
16285
  z: g.z
16286
16286
  }, y = _b(h, v);
16287
16287
  y < f && (f = y, m = v);
16288
16288
  }), m && (h.y = m.y + 0.01);
16289
- const A = new ie(h.x, h.y, h.z);
16290
- A.add(new ie(-0.2, 1.8, 0).applyEuler(new cl(0, d.rad, 0))), this.doorLabels.push({
16289
+ const p = new ie(h.x, h.y, h.z);
16290
+ p.add(new ie(-0.2, 1.8, 0).applyEuler(new cl(0, d.rad, 0))), this.doorLabels.push({
16291
16291
  roomName: r.name,
16292
16292
  name: d.name,
16293
- position: A,
16293
+ position: p,
16294
16294
  toward: Fb(d.rad)
16295
16295
  });
16296
16296
  });
@@ -16418,7 +16418,7 @@ function u1(n) {
16418
16418
  });
16419
16419
  const a = Math.ceil(r.getLength() * 100);
16420
16420
  r.arcLengthDivisions = a;
16421
- const l = r.getPoints(a), c = l.length, d = a1(l.map((E) => [E.x, E.z])), f = (c - 1) * l1 * c1, m = 2 * c, A = m * d1, p = m * h1, g = new Uint32Array(f), v = new Float32Array(A), y = new Float32Array(p);
16421
+ const l = r.getPoints(a), c = l.length, d = a1(l.map((E) => [E.x, E.z])), f = (c - 1) * l1 * c1, m = 2 * c, p = m * d1, A = m * h1, g = new Uint32Array(f), v = new Float32Array(p), y = new Float32Array(A);
16422
16422
  let P = 0, k = 0;
16423
16423
  for (let E = 0; E < l.length; E++) {
16424
16424
  const [R, L] = d[E][0], W = l[E], { x: F, y: N, z: G } = W, _ = new ie(F + R * s, N + 0.05, G + L * s);
@@ -16810,26 +16810,26 @@ class Ju extends C.BufferGeometry {
16810
16810
  console.error("Invalid number of points, it's not a quadrangle");
16811
16811
  return;
16812
16812
  }
16813
- const [o, r, a, l] = e, [c, d, h, f] = [new C.Vector2(0, 0), new C.Vector2(1, 0), new C.Vector2(1, 1), new C.Vector2(0, 1)], m = [], A = [];
16814
- m.push(...o.toArray()), A.push(...c.toArray());
16813
+ const [o, r, a, l] = e, [c, d, h, f] = [new C.Vector2(0, 0), new C.Vector2(1, 0), new C.Vector2(1, 1), new C.Vector2(0, 1)], m = [], p = [];
16814
+ m.push(...o.toArray()), p.push(...c.toArray());
16815
16815
  for (let g = 1; g < s; g++)
16816
16816
  m.push(
16817
16817
  o.x + (r.x - o.x) * g / s,
16818
16818
  o.y + (r.y - o.y) * g / s,
16819
16819
  o.z + (r.z - o.z) * g / s
16820
- ), A.push(c.x + (d.x - c.x) * g / s, c.y + (d.y - c.y) * g / s);
16821
- m.push(...r.toArray()), A.push(...d.toArray()), m.push(...a.toArray()), A.push(...h.toArray());
16820
+ ), p.push(c.x + (d.x - c.x) * g / s, c.y + (d.y - c.y) * g / s);
16821
+ m.push(...r.toArray()), p.push(...d.toArray()), m.push(...a.toArray()), p.push(...h.toArray());
16822
16822
  for (let g = 1; g < s; g++)
16823
16823
  m.push(
16824
16824
  a.x + (l.x - a.x) * g / s,
16825
16825
  a.y + (l.y - a.y) * g / s,
16826
16826
  a.z + (l.z - a.z) * g / s
16827
- ), A.push(h.x + (f.x - h.x) * g / s, h.y + (f.y - h.y) * g / s);
16828
- m.push(...l.toArray()), A.push(...f.toArray());
16829
- const p = [];
16827
+ ), p.push(h.x + (f.x - h.x) * g / s, h.y + (f.y - h.y) * g / s);
16828
+ m.push(...l.toArray()), p.push(...f.toArray());
16829
+ const A = [];
16830
16830
  for (let g = 0; g < s; g++)
16831
- p.push(g, g + 1, s * 2 - g, g, s * 2 - g, s * 2 + 1 - g);
16832
- this.setAttribute("position", new C.BufferAttribute(new Float32Array(m), 3)), this.setAttribute("uv", new C.BufferAttribute(new Float32Array(A), 2)), this.setIndex(new C.BufferAttribute(new Uint32Array(p), 1));
16831
+ A.push(g, g + 1, s * 2 - g, g, s * 2 - g, s * 2 + 1 - g);
16832
+ this.setAttribute("position", new C.BufferAttribute(new Float32Array(m), 3)), this.setAttribute("uv", new C.BufferAttribute(new Float32Array(p), 2)), this.setIndex(new C.BufferAttribute(new Uint32Array(A), 1));
16833
16833
  }
16834
16834
  }
16835
16835
  function Q1(n, t) {
@@ -16865,10 +16865,10 @@ function cs(n, t, e) {
16865
16865
  if (n === "contain") {
16866
16866
  const [i, s, o, r] = t, a = i.distanceTo(s), l = o.distanceTo(r), c = i.distanceTo(r), d = s.distanceTo(o), h = a, f = c, m = h / f;
16867
16867
  if (m > e) {
16868
- const p = f * e, g = new C.Vector3().subVectors(s, i).multiplyScalar((a - p) / 2 / a), v = new C.Vector3().subVectors(o, r).multiplyScalar((l - p) / 2 / l);
16868
+ const A = f * e, g = new C.Vector3().subVectors(s, i).multiplyScalar((a - A) / 2 / a), v = new C.Vector3().subVectors(o, r).multiplyScalar((l - A) / 2 / l);
16869
16869
  return [i.clone().add(g), s.clone().sub(g), o.clone().sub(v), r.clone().add(v)];
16870
16870
  } else if (m < e) {
16871
- const p = h / e, g = new C.Vector3().subVectors(r, i).multiplyScalar((c - p) / 2 / c), v = new C.Vector3().subVectors(o, s).multiplyScalar((d - p) / 2 / d);
16871
+ const A = h / e, g = new C.Vector3().subVectors(r, i).multiplyScalar((c - A) / 2 / c), v = new C.Vector3().subVectors(o, s).multiplyScalar((d - A) / 2 / d);
16872
16872
  return [i.clone().add(g), s.clone().add(v), o.clone().sub(v), r.clone().sub(g)];
16873
16873
  } else
16874
16874
  return t;
@@ -16914,11 +16914,11 @@ class G1 extends C.ShaderMaterial {
16914
16914
  };
16915
16915
  }
16916
16916
  }
16917
- function Zu(n, t = 1) {
16917
+ function Zu(n, t) {
16918
16918
  if (n.length < 3)
16919
16919
  return console.error("points.length < 3"), new ie(0, 0, 0);
16920
- const [e, i, s] = n, o = e.clone().sub(i), r = s.clone().sub(i);
16921
- return o.cross(r).normalize().multiplyScalar(t);
16920
+ const [e, i, s] = n, o = e.clone().sub(i), r = e.clone().sub(s), a = o.cross(r).normalize();
16921
+ return typeof t == "number" ? a.multiplyScalar(t) : a;
16922
16922
  }
16923
16923
  let qu = class extends C.Mesh {
16924
16924
  constructor() {
@@ -16954,15 +16954,15 @@ class $c extends qu {
16954
16954
  r = i.map((c) => c.clone().add(l));
16955
16955
  }
16956
16956
  fi(e).then((l) => {
16957
- var p;
16957
+ var A;
16958
16958
  const c = new URL(e, location.href).pathname.toLowerCase().endsWith(".png");
16959
16959
  c && (l.minFilter = C.NearestFilter, l.magFilter = C.NearestFilter);
16960
16960
  const d = new C.MeshBasicMaterial({ map: l, transparent: c }), h = cs(
16961
- (p = s == null ? void 0 : s.objectFit) != null ? p : "contain",
16961
+ (A = s == null ? void 0 : s.objectFit) != null ? A : "contain",
16962
16962
  r,
16963
16963
  l.image.width / l.image.height
16964
- ), f = yi(...h), m = h.map((g) => g.clone().sub(f)), A = new Ju(m);
16965
- this.position.copy(f), this.geometry = A, this.material = d;
16964
+ ), f = yi(...h), m = h.map((g) => g.clone().sub(f)), p = new Ju(m);
16965
+ this.position.copy(f), this.geometry = p, this.material = d;
16966
16966
  }).catch((l) => {
16967
16967
  console.error(`Imageplane error ${l == null ? void 0 : l.message}`);
16968
16968
  });
@@ -17087,10 +17087,10 @@ class pa extends qu {
17087
17087
  if (this.children.includes(this.buttonMesh))
17088
17088
  return;
17089
17089
  const e = yield (() => H(this, null, function* () {
17090
- var f, m, A, p;
17090
+ var f, m, p, A;
17091
17091
  if (this.buttonMesh)
17092
17092
  return this.buttonMesh;
17093
- const i = (m = (f = this.videoMesh) == null ? void 0 : f.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? m : 1 / 0, s = (p = (A = this.coverMesh) == null ? void 0 : A.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? p : 1 / 0, o = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), a = Math.min(i, s, o) / o * 0.3, l = yield this.getImageTexture(this.buttonSrc), c = cs("contain", this.cornerPoints, l.image.width / l.image.height), d = new Qr(c, new G1(l));
17093
+ const i = (m = (f = this.videoMesh) == null ? void 0 : f.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? m : 1 / 0, s = (A = (p = this.coverMesh) == null ? void 0 : p.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? A : 1 / 0, o = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), a = Math.min(i, s, o) / o * 0.3, l = yield this.getImageTexture(this.buttonSrc), c = cs("contain", this.cornerPoints, l.image.width / l.image.height), d = new Qr(c, new G1(l));
17094
17094
  d.position.copy(new ie(0, 0, 0)), d.name = "buttonMesh", d.scale.set(a, a, a), this.domEvents.addAutoBindEventListener(d, "click", () => {
17095
17095
  this.play();
17096
17096
  });
@@ -17159,7 +17159,7 @@ class N1 {
17159
17159
  for (const [f, m] of h) {
17160
17160
  if (m != null && m.checkVisible && !Ea(c))
17161
17161
  continue;
17162
- const A = f({
17162
+ const p = f({
17163
17163
  type: t,
17164
17164
  target: c,
17165
17165
  origDomEvent: i,
@@ -17168,7 +17168,7 @@ class N1 {
17168
17168
  o = !0;
17169
17169
  }
17170
17170
  });
17171
- r.push(A != null ? A : !0);
17171
+ r.push(p != null ? p : !0);
17172
17172
  }
17173
17173
  }
17174
17174
  return r.some((c) => c === !0);
@@ -17450,16 +17450,16 @@ class H1 extends O1 {
17450
17450
  * @description: 获取merge后的配置
17451
17451
  */
17452
17452
  calculateTagConfig(e, i) {
17453
- var f, m, A;
17453
+ var f, m, p;
17454
17454
  const s = (f = i == null ? void 0 : i.useCache) != null ? f : !0;
17455
17455
  if (!e)
17456
17456
  return (m = this.config.globalConfig) != null ? m : {};
17457
- if (s && ((A = e.config) != null && A._isMerged))
17457
+ if (s && ((p = e.config) != null && p._isMerged))
17458
17458
  return e.config;
17459
17459
  const o = {}, r = {}, a = {};
17460
- this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([p, g]) => {
17460
+ this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([A, g]) => {
17461
17461
  var R, L;
17462
- const v = p, y = v.split("-"), P = p.startsWith("["), k = P ? y[0].slice(1, -1) : void 0, x = P ? y.slice(1) : y, E = k ? ["PanoramaLike", "ModelLike"].includes(k) ? (R = r[k]) != null ? R : r[k] = {} : (L = a[k]) != null ? L : a[k] = {} : o;
17462
+ const v = A, y = v.split("-"), P = A.startsWith("["), k = P ? y[0].slice(1, -1) : void 0, x = P ? y.slice(1) : y, E = k ? ["PanoramaLike", "ModelLike"].includes(k) ? (R = r[k]) != null ? R : r[k] = {} : (L = a[k]) != null ? L : a[k] = {} : o;
17463
17463
  if (!E[v]) {
17464
17464
  if (x.length === 0 && (E[v] = g), x.length === 1) {
17465
17465
  const [W] = x;
@@ -17485,15 +17485,15 @@ class H1 extends O1 {
17485
17485
  ...Object.values(o),
17486
17486
  e.config
17487
17487
  ), c = {}, d = Object.values($e.Mode);
17488
- td(r).forEach(([p, g]) => {
17488
+ td(r).forEach(([A, g]) => {
17489
17489
  d.forEach((v) => {
17490
- (p === "PanoramaLike" && Pt(v) || p === "ModelLike" && pn(v)) && (c[v] = Ve({}, l, ...Object.values(g)));
17490
+ (A === "PanoramaLike" && Pt(v) || A === "ModelLike" && pn(v)) && (c[v] = Ve({}, l, ...Object.values(g)));
17491
17491
  });
17492
- }), td(a).forEach(([p, g]) => {
17493
- c[p] = Ve({}, l, ...Object.values(g));
17492
+ }), td(a).forEach(([A, g]) => {
17493
+ c[A] = Ve({}, l, ...Object.values(g));
17494
17494
  });
17495
17495
  const h = pe(V({}, l), { configWithFiveMode: c });
17496
- return ed(h, e), Object.values(c).forEach((p) => ed(p, e)), h._isMerged = !0, h;
17496
+ return ed(h, e), Object.values(c).forEach((A) => ed(A, e)), h._isMerged = !0, h;
17497
17497
  }
17498
17498
  }
17499
17499
  function _1(n, t) {
@@ -17534,8 +17534,9 @@ class F1 extends H1 {
17534
17534
  if (c.keep === "visible")
17535
17535
  return { value: !0, checkedList: a, reason: "config.keep is visible" };
17536
17536
  if (c.visibleFiveMode !== void 0) {
17537
- let m = !1;
17538
- if (Array.isArray(c.visibleFiveMode) ? m = c.visibleFiveMode.includes(o) : c.visibleFiveMode === "ModelLike" ? m = pn(o) : c.visibleFiveMode === "PanoramaLike" ? m = !Pt(o) : c.visibleFiveMode === "all" ? m = !0 : typeof c.visibleFiveMode == "string" && (m = c.visibleFiveMode === o), m === !1)
17537
+ const m = typeof c.visibleFiveMode == "function" ? c.visibleFiveMode(t) : c.visibleFiveMode;
17538
+ let p = !1;
17539
+ if (Array.isArray(m) ? p = m.includes(o) : m === "ModelLike" ? p = pn(o) : m === "PanoramaLike" ? p = !Pt(o) : m === "all" ? p = !0 : typeof m == "string" && (p = m === o), p === !1)
17539
17540
  return {
17540
17541
  value: !1,
17541
17542
  checkedList: a,
@@ -17649,8 +17650,8 @@ class F1 extends H1 {
17649
17650
  const h = this.getTagProject(d);
17650
17651
  if (!h)
17651
17652
  return !1;
17652
- const { x: f, y: m, z: A } = h;
17653
- return !(Math.abs(A) > 1 || Math.abs(f) > 1 || Math.abs(m) > 1);
17653
+ const { x: f, y: m, z: p } = h;
17654
+ return !(Math.abs(p) > 1 || Math.abs(f) > 1 || Math.abs(m) > 1);
17654
17655
  }).map((d) => ({ tag: d, id: d.id, tagConfig: this.getTagConfig(d).unfoldedConfig })).filter(({ tag: d, tagConfig: h }) => {
17655
17656
  var f, m;
17656
17657
  return !(typeof h == "function" || h.keep || h.autoUnfold === !1 || ((f = h.autoUnfold) == null ? void 0 : f.enable) === !1 || ((m = h.autoUnfold) == null ? void 0 : m.strategy) !== "MinimumDistance");
@@ -17725,22 +17726,22 @@ class F1 extends H1 {
17725
17726
  }
17726
17727
  /** 通过射线检测标签可用性 */
17727
17728
  getTagEnableByIntersect(t, e) {
17728
- var c, d, h, f, m, A;
17729
+ var c, d, h, f, m, p;
17729
17730
  const i = Io(Io((c = this.getTagConfig(t).visibleConfig) != null ? c : {}).intersectRaycaster), s = e != null ? e : this.five.getCurrentState().panoIndex, o = Pt(this.five.getCurrentState().mode) ? (d = this.five.work.observers[s]) == null ? void 0 : d.position : this.five.camera.position;
17730
17731
  if (o === void 0)
17731
17732
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: s } };
17732
17733
  const r = Oh(
17733
17734
  (() => {
17734
17735
  var g;
17735
- const p = (g = i.checkPoints) != null ? g : "center";
17736
- return p === "center" ? fs(t) : p === "corner" ? Uu(t) : Array.isArray(p) ? p : [];
17736
+ const A = (g = i.checkPoints) != null ? g : "center";
17737
+ return A === "center" ? fs(t) : A === "corner" ? Uu(t) : Array.isArray(A) ? A : [];
17737
17738
  })()
17738
17739
  );
17739
17740
  let a = 0, l = 0;
17740
- for (const p of r) {
17741
- const g = new C.Vector3().subVectors(p, o).normalize();
17741
+ for (const A of r) {
17742
+ const g = new C.Vector3().subVectors(A, o).normalize();
17742
17743
  Gr.set(o, g);
17743
- const v = o.distanceTo(p), [y] = this.five.model.intersectRaycaster(Gr), P = (() => {
17744
+ const v = o.distanceTo(A), [y] = this.five.model.intersectRaycaster(Gr), P = (() => {
17744
17745
  if (!Ht(t))
17745
17746
  return;
17746
17747
  const L = this.tags.filter(Ht).map((F) => {
@@ -17750,7 +17751,7 @@ class F1 extends H1 {
17750
17751
  return W;
17751
17752
  })(), k = (h = i.distanceAccuracy) != null ? h : 0.01;
17752
17753
  Math.min((f = y == null ? void 0 : y.distance) != null ? f : 1 / 0, (m = P == null ? void 0 : P.distance) != null ? m : 1 / 0) + k >= v ? a++ : l++;
17753
- const R = (A = i.needPassed) != null ? A : 1;
17754
+ const R = (p = i.needPassed) != null ? p : 1;
17754
17755
  if (a >= R)
17755
17756
  return { value: !0 };
17756
17757
  }
@@ -17973,10 +17974,10 @@ function Y1(n) {
17973
17974
  };
17974
17975
  }
17975
17976
  function U1(n, t, e) {
17976
- let i, s, o, r, { inDelay: a = 0 } = t, { outDelay: l = 0 } = t, { duration: c = 1e3 } = t, { unfolded: d } = t, { length: h } = t, { direction: f = "horizontal" } = t, { useLinearColor: m = !1 } = t, { color: A = "white" } = t;
17977
- const p = lt();
17977
+ let i, s, o, r, { inDelay: a = 0 } = t, { outDelay: l = 0 } = t, { duration: c = 1e3 } = t, { unfolded: d } = t, { length: h } = t, { direction: f = "horizontal" } = t, { useLinearColor: m = !1 } = t, { color: p = "white" } = t;
17978
+ const A = lt();
17978
17979
  return n.$$set = (g) => {
17979
- "inDelay" in g && e(0, a = g.inDelay), "outDelay" in g && e(1, l = g.outDelay), "duration" in g && e(2, c = g.duration), "unfolded" in g && e(3, d = g.unfolded), "length" in g && e(11, h = g.length), "direction" in g && e(12, f = g.direction), "useLinearColor" in g && e(4, m = g.useLinearColor), "color" in g && e(5, A = g.color);
17980
+ "inDelay" in g && e(0, a = g.inDelay), "outDelay" in g && e(1, l = g.outDelay), "duration" in g && e(2, c = g.duration), "unfolded" in g && e(3, d = g.unfolded), "length" in g && e(11, h = g.length), "direction" in g && e(12, f = g.direction), "useLinearColor" in g && e(4, m = g.useLinearColor), "color" in g && e(5, p = g.color);
17980
17981
  }, n.$$.update = () => {
17981
17982
  n.$$.dirty & /*direction*/
17982
17983
  4096 && e(9, i = f === "vertical"), n.$$.dirty & /*length*/
@@ -17988,12 +17989,12 @@ function U1(n, t, e) {
17988
17989
  c,
17989
17990
  d,
17990
17991
  m,
17991
- A,
17992
+ p,
17992
17993
  r,
17993
17994
  o,
17994
17995
  s,
17995
17996
  i,
17996
- p,
17997
+ A,
17997
17998
  h,
17998
17999
  f
17999
18000
  ];
@@ -18163,9 +18164,9 @@ function It(n) {
18163
18164
  return typeof n == "number" ? n / 16 + "rem" : n;
18164
18165
  }
18165
18166
  function Z1(n, t, e) {
18166
- let { inDelay: i = 1e3 } = t, { outDelay: s = 1e3 } = t, { visible: o = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: d = !1 } = t, { horizontalCenter: h = !1 } = t, { verticalCenter: f = !1 } = t, { blurRadius: m } = t, { spreadRadius: A } = t, { opacity: p = 0.15 } = t, { zIndex: g = -1 } = t;
18167
+ let { inDelay: i = 1e3 } = t, { outDelay: s = 1e3 } = t, { visible: o = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: d = !1 } = t, { horizontalCenter: h = !1 } = t, { verticalCenter: f = !1 } = t, { blurRadius: m } = t, { spreadRadius: p } = t, { opacity: A = 0.15 } = t, { zIndex: g = -1 } = t;
18167
18168
  return n.$$set = (v) => {
18168
- "inDelay" in v && e(0, i = v.inDelay), "outDelay" in v && e(1, s = v.outDelay), "visible" in v && e(2, o = 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, d = v.center), "horizontalCenter" in v && e(8, h = v.horizontalCenter), "verticalCenter" in v && e(9, f = v.verticalCenter), "blurRadius" in v && e(10, m = v.blurRadius), "spreadRadius" in v && e(11, A = v.spreadRadius), "opacity" in v && e(12, p = v.opacity), "zIndex" in v && e(13, g = v.zIndex);
18169
+ "inDelay" in v && e(0, i = v.inDelay), "outDelay" in v && e(1, s = v.outDelay), "visible" in v && e(2, o = 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, d = v.center), "horizontalCenter" in v && e(8, h = v.horizontalCenter), "verticalCenter" in v && e(9, f = v.verticalCenter), "blurRadius" in v && e(10, m = v.blurRadius), "spreadRadius" in v && e(11, p = v.spreadRadius), "opacity" in v && e(12, A = v.opacity), "zIndex" in v && e(13, g = v.zIndex);
18169
18170
  }, [
18170
18171
  i,
18171
18172
  s,
@@ -18178,8 +18179,8 @@ function Z1(n, t, e) {
18178
18179
  h,
18179
18180
  f,
18180
18181
  m,
18181
- A,
18182
18182
  p,
18183
+ A,
18183
18184
  g
18184
18185
  ];
18185
18186
  }
@@ -18372,7 +18373,7 @@ function iy(n) {
18372
18373
  function ny(n, t, e) {
18373
18374
  let i, { inDelay: s = 0 } = t, { outDelay: o = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
18374
18375
  const c = `__EMOJI_SPLIT_${Ks}__`, d = `__EMOJI_${Ks}__`, h = `__SPACE_${Ks}__`, f = `__NEW_LINE_${Ks}__`;
18375
- let m, A, p = [];
18376
+ let m, p, A = [];
18376
18377
  function g(E) {
18377
18378
  const R = [], L = 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"));
18378
18379
  return E.slice().replace(L, (W) => `${c}${d}${W}${c}`).split(c).forEach((W) => W.startsWith(d) ? R.push({
@@ -18382,10 +18383,10 @@ function ny(n, t, e) {
18382
18383
  ` ? f : F).map((F) => ({ id: lt(), content: F })))), R;
18383
18384
  }
18384
18385
  function v() {
18385
- if (!A)
18386
+ if (!p)
18386
18387
  return;
18387
18388
  const E = !a;
18388
- A.reversed !== E && A.reverse(), A.play();
18389
+ p.reversed !== E && p.reverse(), p.play();
18389
18390
  }
18390
18391
  function y(E) {
18391
18392
  if (l) {
@@ -18400,7 +18401,7 @@ function ny(n, t, e) {
18400
18401
  if (L > 0)
18401
18402
  return L;
18402
18403
  }();
18403
- A = dl({
18404
+ p = dl({
18404
18405
  targets: E.slice(0, R).filter(si),
18405
18406
  autoplay: !1,
18406
18407
  duration: 400,
@@ -18411,16 +18412,16 @@ function ny(n, t, e) {
18411
18412
  translateY: [10, 0],
18412
18413
  delay: dl.stagger(50),
18413
18414
  easing: "easeInOutCubic"
18414
- }), a && A.seek(A.duration);
18415
+ }), a && p.seek(p.duration);
18415
18416
  }
18416
18417
  function k(E, R) {
18417
18418
  Qe[E ? "unshift" : "push"](() => {
18418
- p[R] = E, e(1, p);
18419
+ A[R] = E, e(1, A);
18419
18420
  });
18420
18421
  }
18421
18422
  function x(E, R) {
18422
18423
  Qe[E ? "unshift" : "push"](() => {
18423
- p[R] = E, e(1, p);
18424
+ A[R] = E, e(1, A);
18424
18425
  });
18425
18426
  }
18426
18427
  return n.$$set = (E) => {
@@ -18429,10 +18430,10 @@ function ny(n, t, e) {
18429
18430
  n.$$.dirty & /*content*/
18430
18431
  1 && e(2, i = g(r)), n.$$.dirty & /*unfolded*/
18431
18432
  256 && y(a), n.$$.dirty & /*spanEleList*/
18432
- 2 && P(p.filter((E) => !!E));
18433
+ 2 && P(A.filter((E) => !!E));
18433
18434
  }, [
18434
18435
  r,
18435
- p,
18436
+ A,
18436
18437
  i,
18437
18438
  h,
18438
18439
  f,
@@ -18734,20 +18735,20 @@ function dy(n) {
18734
18735
  }
18735
18736
  function hy(n, t, e) {
18736
18737
  let i, s, o, { visible: r = !1 } = t, { textUnfolded: a = !1 } = t, { content: l } = t, c, d = 0, h = 0, f = 0;
18737
- function m(A) {
18738
- Qe[A ? "unshift" : "push"](() => {
18739
- c = A, e(2, c);
18738
+ function m(p) {
18739
+ Qe[p ? "unshift" : "push"](() => {
18740
+ c = p, e(2, c);
18740
18741
  });
18741
18742
  }
18742
- return n.$$set = (A) => {
18743
- "visible" in A && e(0, r = A.visible), "textUnfolded" in A && e(8, a = A.textUnfolded), "content" in A && e(1, l = A.content);
18743
+ return n.$$set = (p) => {
18744
+ "visible" in p && e(0, r = p.visible), "textUnfolded" in p && e(8, a = p.textUnfolded), "content" in p && e(1, l = p.content);
18744
18745
  }, n.$$.update = () => {
18745
18746
  if (n.$$.dirty & /*textElement, visible, content*/
18746
18747
  7 && c && r && l) {
18747
- const { lineHeight: A } = getComputedStyle(c);
18748
+ const { lineHeight: p } = getComputedStyle(c);
18748
18749
  e(4, f = c.offsetHeight), ly(() => c == null ? void 0 : c.offsetHeight, Boolean).then(() => {
18749
18750
  e(4, f = c.offsetHeight);
18750
- }), e(3, h = Number(A.replace("px", "")));
18751
+ }), e(3, h = Number(p.replace("px", "")));
18751
18752
  }
18752
18753
  n.$$.dirty & /*textUnfolded, lineHeight, textHeight*/
18753
18754
  280 && e(9, d = a ? h - f : 0), n.$$.dirty & /*translateY*/
@@ -18852,24 +18853,24 @@ function hd(n) {
18852
18853
  },
18853
18854
  p(f, m) {
18854
18855
  var v, y;
18855
- const A = {};
18856
+ const p = {};
18856
18857
  m & /*unfolded*/
18857
- 4 && (A.visible = /*unfolded*/
18858
+ 4 && (p.visible = /*unfolded*/
18858
18859
  f[2]), m & /*contentWidth*/
18859
- 8 && (A.left = /*contentWidth*/
18860
- f[3] / 2 + "px"), t.$set(A);
18861
- const p = {};
18860
+ 8 && (p.left = /*contentWidth*/
18861
+ f[3] / 2 + "px"), t.$set(p);
18862
+ const A = {};
18862
18863
  m & /*unfolded*/
18863
- 4 && (p.unfolded = /*unfolded*/
18864
+ 4 && (A.unfolded = /*unfolded*/
18864
18865
  f[2]), m & /*contentWidth*/
18865
- 8 && (p.length = /*contentWidth*/
18866
+ 8 && (A.length = /*contentWidth*/
18866
18867
  f[3]), m & /*foldTextDelay*/
18867
- 16 && (p.outDelay = /*foldTextDelay*/
18868
+ 16 && (A.outDelay = /*foldTextDelay*/
18868
18869
  f[4] + 40 * Math.min(
18869
18870
  /*textItems*/
18870
18871
  (y = (v = f[6][0]) == null ? void 0 : v.content.length) != null ? y : 10,
18871
18872
  15
18872
- )), i.$set(p);
18873
+ )), i.$set(A);
18873
18874
  const g = {};
18874
18875
  m & /*unfolded*/
18875
18876
  4 && (g.visible = /*unfolded*/
@@ -18925,16 +18926,16 @@ function my(n, t, e) {
18925
18926
  function f() {
18926
18927
  e(1, d = !d);
18927
18928
  }
18928
- const m = (A) => {
18929
- e(3, c = A.detail);
18929
+ const m = (p) => {
18930
+ e(3, c = p.detail);
18930
18931
  };
18931
- return n.$$set = (A) => {
18932
- "tag" in A && e(0, l = A.tag);
18932
+ return n.$$set = (p) => {
18933
+ "tag" in p && e(0, l = p.tag);
18933
18934
  }, n.$$.update = () => {
18934
- var A, p, g, v;
18935
+ var p, A, g, v;
18935
18936
  n.$$.dirty & /*tag*/
18936
- 1 && e(2, i = !!((A = l.state) != null && A.unfolded)), n.$$.dirty & /*tag*/
18937
- 1 && e(9, s = (g = (p = l.data.title) != null ? p : l.data.text) != null ? g : ""), n.$$.dirty & /*tag*/
18937
+ 1 && e(2, i = !!((p = l.state) != null && p.unfolded)), n.$$.dirty & /*tag*/
18938
+ 1 && e(9, s = (g = (A = l.data.title) != null ? A : l.data.text) != null ? g : ""), n.$$.dirty & /*tag*/
18938
18939
  1 && e(8, o = (v = l.data.description) != null ? v : ""), n.$$.dirty & /*title, description*/
18939
18940
  768 && e(5, r = (() => {
18940
18941
  if (s && o)
@@ -19265,40 +19266,40 @@ function md(n) {
19265
19266
  n[5]
19266
19267
  );
19267
19268
  },
19268
- m(m, A) {
19269
- ee(t, m, A), B(m, e, A), B(m, i, A), D(i, s), D(s, o), D(o, r), ee(a, r, null), D(o, l), d && d.m(o, null), c = !0;
19269
+ m(m, p) {
19270
+ ee(t, m, p), B(m, e, p), B(m, i, p), D(i, s), D(s, o), D(o, r), ee(a, r, null), D(o, l), d && d.m(o, null), c = !0;
19270
19271
  },
19271
- p(m, A) {
19272
+ p(m, p) {
19272
19273
  var v, y;
19273
- const p = {};
19274
- A & /*unfolded*/
19275
- 2 && (p.unfolded = /*unfolded*/
19276
- m[1]), t.$set(p);
19274
+ const A = {};
19275
+ p & /*unfolded*/
19276
+ 2 && (A.unfolded = /*unfolded*/
19277
+ m[1]), t.$set(A);
19277
19278
  const g = {};
19278
- A & /*title*/
19279
+ p & /*title*/
19279
19280
  16 && (g.text = /*title*/
19280
- m[4]), A & /*tag*/
19281
+ m[4]), p & /*tag*/
19281
19282
  1 && (g.edit = /*tag*/
19282
- (v = m[0].data.edit) == null ? void 0 : v.title), A & /*titleMaxRows*/
19283
+ (v = m[0].data.edit) == null ? void 0 : v.title), p & /*titleMaxRows*/
19283
19284
  4 && (g.maxLine = /*titleMaxRows*/
19284
19285
  m[2]), a.$set(g), /*tag*/
19285
19286
  m[0].data.description || /*tag*/
19286
- (y = m[0].data.edit) != null && y.description ? d ? (d.p(m, A), A & /*tag*/
19287
+ (y = m[0].data.edit) != null && y.description ? d ? (d.p(m, p), p & /*tag*/
19287
19288
  1 && M(d, 1)) : (d = gd(m), d.c(), M(d, 1), d.m(o, null)) : d && (de(), z(d, 1, 1, () => {
19288
19289
  d = null;
19289
- }), he()), A & /*unfolded*/
19290
+ }), he()), p & /*unfolded*/
19290
19291
  2 && j(
19291
19292
  s,
19292
19293
  "transform",
19293
19294
  /*unfolded*/
19294
19295
  m[1] ? "translateY(-15px)" : "translateY(0)"
19295
- ), (!c || A & /*unfolded*/
19296
+ ), (!c || p & /*unfolded*/
19296
19297
  2) && q(
19297
19298
  i,
19298
19299
  "unfolded",
19299
19300
  /*unfolded*/
19300
19301
  m[1]
19301
- ), (!c || A & /*folded*/
19302
+ ), (!c || p & /*folded*/
19302
19303
  32) && q(
19303
19304
  i,
19304
19305
  "folded",
@@ -19985,8 +19986,8 @@ function sw(n, { thresholdProvider: t }) {
19985
19986
  function d(f) {
19986
19987
  if (!a)
19987
19988
  return;
19988
- const m = Nr(f), A = m.x - i, p = m.y - s;
19989
- i = m.x, s = m.y, e("swipeMove", { x: i, y: s, dx: A, dy: p }), A !== 0 && Math.sign(A) !== Math.sign(o) && (o = 0), o += A, Math.abs(o) > t() && (e("swipeThresholdReached", { direction: o > 0 ? Mn : vi }), yd(window, h), wd(window, d));
19989
+ const m = Nr(f), p = m.x - i, A = m.y - s;
19990
+ i = m.x, s = m.y, e("swipeMove", { x: i, y: s, dx: p, dy: A }), p !== 0 && Math.sign(p) !== Math.sign(o) && (o = 0), o += p, Math.abs(o) > t() && (e("swipeThresholdReached", { direction: o > 0 ? Mn : vi }), yd(window, h), wd(window, d));
19990
19991
  }
19991
19992
  function h(f) {
19992
19993
  if (yd(window, h), wd(window, d), a = !1, !l()) {
@@ -20513,8 +20514,8 @@ var $s = wC, Po = {}, CC = {
20513
20514
  }
20514
20515
  };
20515
20516
  (function(n, t) {
20516
- var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", d = "[object Function]", h = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", A = "[object Object]", p = "[object Promise]", g = "[object RegExp]", v = "[object Set]", y = "[object String]", P = "[object Symbol]", k = "[object WeakMap]", x = "[object ArrayBuffer]", E = "[object DataView]", R = "[object Float32Array]", L = "[object Float64Array]", W = "[object Int8Array]", F = "[object Int16Array]", N = "[object Int32Array]", G = "[object Uint8Array]", _ = "[object Uint8ClampedArray]", Q = "[object Uint16Array]", Y = "[object Uint32Array]", J = /[\\^$.*+?()[\]{}|]/g, X = /\w*$/, $ = /^\[object .+?Constructor\]$/, ce = /^(?:0|[1-9]\d*)$/, oe = {};
20517
- oe[o] = oe[r] = oe[x] = oe[E] = oe[a] = oe[l] = oe[R] = oe[L] = oe[W] = oe[F] = oe[N] = oe[f] = oe[m] = oe[A] = oe[g] = oe[v] = oe[y] = oe[P] = oe[G] = oe[_] = oe[Q] = oe[Y] = !0, oe[c] = oe[d] = oe[k] = !1;
20517
+ var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", d = "[object Function]", h = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", p = "[object Object]", A = "[object Promise]", g = "[object RegExp]", v = "[object Set]", y = "[object String]", P = "[object Symbol]", k = "[object WeakMap]", x = "[object ArrayBuffer]", E = "[object DataView]", R = "[object Float32Array]", L = "[object Float64Array]", W = "[object Int8Array]", F = "[object Int16Array]", N = "[object Int32Array]", G = "[object Uint8Array]", _ = "[object Uint8ClampedArray]", Q = "[object Uint16Array]", Y = "[object Uint32Array]", J = /[\\^$.*+?()[\]{}|]/g, X = /\w*$/, $ = /^\[object .+?Constructor\]$/, ce = /^(?:0|[1-9]\d*)$/, oe = {};
20518
+ oe[o] = oe[r] = oe[x] = oe[E] = oe[a] = oe[l] = oe[R] = oe[L] = oe[W] = oe[F] = oe[N] = oe[f] = oe[m] = oe[p] = oe[g] = oe[v] = oe[y] = oe[P] = oe[G] = oe[_] = oe[Q] = oe[Y] = !0, oe[c] = oe[d] = oe[k] = !1;
20518
20519
  var we = typeof Mt == "object" && Mt && Mt.Object === Object && Mt, Ce = typeof self == "object" && self && self.Object === Object && self, Ae = we || Ce || Function("return this")(), Oe = t && !t.nodeType && t, ve = Oe && !0 && n && !n.nodeType && n, Fe = ve && ve.exports === Oe;
20519
20520
  function fe(b, I) {
20520
20521
  return b.set(I[0], I[1]), b;
@@ -20723,7 +20724,7 @@ var $s = wC, Po = {}, CC = {
20723
20724
  var je = qt(b), ot = je == d || je == h;
20724
20725
  if (Ls(b))
20725
20726
  return Xi(b, I);
20726
- if (je == A || je == o || ot && !ge) {
20727
+ if (je == p || je == o || ot && !ge) {
20727
20728
  if (nt(b))
20728
20729
  return ge ? b : {};
20729
20730
  if (Se = Qt(ot ? {} : b), !I)
@@ -20830,8 +20831,8 @@ var $s = wC, Po = {}, CC = {
20830
20831
  return dr(T) ? T : void 0;
20831
20832
  }
20832
20833
  var Zt = Nn ? Ee(Nn, Object) : Pr, qt = cr;
20833
- (Fi && qt(new Fi(new ArrayBuffer(1))) != E || Pi && qt(new Pi()) != f || St && qt(St.resolve()) != p || Wi && qt(new Wi()) != v || Hn && qt(new Hn()) != k) && (qt = function(b) {
20834
- var I = Dt.call(b), T = I == A ? b.constructor : void 0, U = T ? ut(T) : void 0;
20834
+ (Fi && qt(new Fi(new ArrayBuffer(1))) != E || Pi && qt(new Pi()) != f || St && qt(St.resolve()) != A || Wi && qt(new Wi()) != v || Hn && qt(new Hn()) != k) && (qt = function(b) {
20835
+ var I = Dt.call(b), T = I == p ? b.constructor : void 0, U = T ? ut(T) : void 0;
20835
20836
  if (U)
20836
20837
  switch (U) {
20837
20838
  case _n:
@@ -20839,7 +20840,7 @@ var $s = wC, Po = {}, CC = {
20839
20840
  case ki:
20840
20841
  return f;
20841
20842
  case Fn:
20842
- return p;
20843
+ return A;
20843
20844
  case Wn:
20844
20845
  return v;
20845
20846
  case Yn:
@@ -20966,8 +20967,8 @@ var Eo = {}, PC = {
20966
20967
  }
20967
20968
  };
20968
20969
  (function(n, t) {
20969
- var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", m = "[object Function]", A = "[object GeneratorFunction]", p = "[object Map]", g = "[object Number]", v = "[object Null]", y = "[object Object]", P = "[object Promise]", k = "[object Proxy]", x = "[object RegExp]", E = "[object Set]", R = "[object String]", L = "[object Symbol]", W = "[object Undefined]", F = "[object WeakMap]", N = "[object ArrayBuffer]", G = "[object DataView]", _ = "[object Float32Array]", Q = "[object Float64Array]", Y = "[object Int8Array]", J = "[object Int16Array]", X = "[object Int32Array]", $ = "[object Uint8Array]", ce = "[object Uint8ClampedArray]", oe = "[object Uint16Array]", we = "[object Uint32Array]", Ce = /[\\^$.*+?()[\]{}|]/g, Ae = /^\[object .+?Constructor\]$/, Oe = /^(?:0|[1-9]\d*)$/, ve = {};
20970
- ve[_] = ve[Q] = ve[Y] = ve[J] = ve[X] = ve[$] = ve[ce] = ve[oe] = ve[we] = !0, ve[a] = ve[l] = ve[N] = ve[d] = ve[G] = ve[h] = ve[f] = ve[m] = ve[p] = ve[g] = ve[y] = ve[x] = ve[E] = ve[R] = ve[F] = !1;
20970
+ var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", m = "[object Function]", p = "[object GeneratorFunction]", A = "[object Map]", g = "[object Number]", v = "[object Null]", y = "[object Object]", P = "[object Promise]", k = "[object Proxy]", x = "[object RegExp]", E = "[object Set]", R = "[object String]", L = "[object Symbol]", W = "[object Undefined]", F = "[object WeakMap]", N = "[object ArrayBuffer]", G = "[object DataView]", _ = "[object Float32Array]", Q = "[object Float64Array]", Y = "[object Int8Array]", J = "[object Int16Array]", X = "[object Int32Array]", $ = "[object Uint8Array]", ce = "[object Uint8ClampedArray]", oe = "[object Uint16Array]", we = "[object Uint32Array]", Ce = /[\\^$.*+?()[\]{}|]/g, Ae = /^\[object .+?Constructor\]$/, Oe = /^(?:0|[1-9]\d*)$/, ve = {};
20971
+ ve[_] = ve[Q] = ve[Y] = ve[J] = ve[X] = ve[$] = ve[ce] = ve[oe] = ve[we] = !0, ve[a] = ve[l] = ve[N] = ve[d] = ve[G] = ve[h] = ve[f] = ve[m] = ve[A] = ve[g] = ve[y] = ve[x] = ve[E] = ve[R] = ve[F] = !1;
20971
20972
  var Fe = typeof Mt == "object" && Mt && Mt.Object === Object && Mt, fe = typeof self == "object" && self && self.Object === Object && self, ye = Fe || fe || Function("return this")(), Le = t && !t.nodeType && t, me = Le && !0 && n && !n.nodeType && n, Ze = me && me.exports === Le, ht = Ze && Fe.process, ke = function() {
20972
20973
  try {
20973
20974
  return ht && ht.binding && ht.binding("util");
@@ -21276,7 +21277,7 @@ var Eo = {}, PC = {
21276
21277
  case x:
21277
21278
  case R:
21278
21279
  return b == I + "";
21279
- case p:
21280
+ case A:
21280
21281
  var Se = Be;
21281
21282
  case E:
21282
21283
  var We = U & s;
@@ -21351,14 +21352,14 @@ var Eo = {}, PC = {
21351
21352
  return Fi.call(b, I);
21352
21353
  }));
21353
21354
  } : Pr, Qt = Mi;
21354
- (_n && Qt(new _n(new ArrayBuffer(1))) != G || ki && Qt(new ki()) != p || Fn && Qt(Fn.resolve()) != P || Wn && Qt(new Wn()) != E || Yn && Qt(new Yn()) != F) && (Qt = function(b) {
21355
+ (_n && Qt(new _n(new ArrayBuffer(1))) != G || ki && Qt(new ki()) != A || Fn && Qt(Fn.resolve()) != P || Wn && Qt(new Wn()) != E || Yn && Qt(new Yn()) != F) && (Qt = function(b) {
21355
21356
  var I = Mi(b), T = I == y ? b.constructor : void 0, U = T ? ut(T) : "";
21356
21357
  if (U)
21357
21358
  switch (U) {
21358
21359
  case Ps:
21359
21360
  return G;
21360
21361
  case Jt:
21361
- return p;
21362
+ return A;
21362
21363
  case _o:
21363
21364
  return P;
21364
21365
  case Fo:
@@ -21417,7 +21418,7 @@ var Eo = {}, PC = {
21417
21418
  if (!js(b))
21418
21419
  return !1;
21419
21420
  var I = Mi(b);
21420
- return I == m || I == A || I == c || I == k;
21421
+ return I == m || I == p || I == c || I == k;
21421
21422
  }
21422
21423
  function Kn(b) {
21423
21424
  return typeof b == "number" && b > -1 && b % 1 == 0 && b <= r;
@@ -21491,19 +21492,19 @@ function TC(n, t) {
21491
21492
  data: h,
21492
21493
  methods: f
21493
21494
  });
21494
- let A = !1;
21495
- const p = (v) => (...y) => {
21496
- A = !0;
21495
+ let p = !1;
21496
+ const A = (v) => (...y) => {
21497
+ p = !0;
21497
21498
  const P = v(...y);
21498
- return A = !1, P;
21499
+ return p = !1, P;
21499
21500
  };
21500
21501
  Object.entries(s).forEach(([v, y]) => {
21501
- f[v] = p(
21502
+ f[v] = A(
21502
21503
  (...P) => y(m(), ...P)
21503
21504
  ), Object.defineProperty(f[v], "name", { value: v });
21504
21505
  }), h = new Proxy(IC(e), {
21505
21506
  get(v, y) {
21506
- return d() && !A && r(d(), { prop: y, value: v[y] }), Reflect.get(...arguments);
21507
+ return d() && !p && r(d(), { prop: y, value: v[y] }), Reflect.get(...arguments);
21507
21508
  },
21508
21509
  set(v, y, P) {
21509
21510
  return v[y] === P || (Reflect.set(...arguments), d() || (o && o(y, P), a(h, y))), !0;
@@ -22224,11 +22225,11 @@ function YC(n) {
22224
22225
  /*arrows*/
22225
22226
  n[1] && jd(n)
22226
22227
  );
22227
- const A = (
22228
+ const p = (
22228
22229
  /*#slots*/
22229
22230
  n[37].default
22230
- ), p = Tn(
22231
- A,
22231
+ ), A = Tn(
22232
+ p,
22232
22233
  n,
22233
22234
  /*$$scope*/
22234
22235
  n[36],
@@ -22246,7 +22247,7 @@ function YC(n) {
22246
22247
  );
22247
22248
  return {
22248
22249
  c() {
22249
- t = S("div"), e = S("div"), m && m.c(), i = K(), s = S("div"), o = S("div"), p && p.c(), a = K(), g && g.c(), l = K(), v && v.c(), c = K(), y && y.c(), w(o, "class", "sc-carousel__pages-container svelte-sme1z4"), j(o, "transform", "translateX(" + /*offset*/
22250
+ t = S("div"), e = S("div"), m && m.c(), i = K(), s = S("div"), o = S("div"), A && A.c(), a = K(), g && g.c(), l = K(), v && v.c(), c = K(), y && y.c(), w(o, "class", "sc-carousel__pages-container svelte-sme1z4"), j(o, "transform", "translateX(" + /*offset*/
22250
22251
  n[8] + "px)"), j(
22251
22252
  o,
22252
22253
  "transition-duration",
@@ -22260,7 +22261,7 @@ function YC(n) {
22260
22261
  ), w(s, "class", "sc-carousel__pages-window svelte-sme1z4"), w(e, "class", "sc-carousel__content-container svelte-sme1z4"), w(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
22261
22262
  },
22262
22263
  m(P, k) {
22263
- B(P, t, k), D(t, e), m && m.m(e, null), D(e, i), D(e, s), D(s, o), p && p.m(o, null), n[39](o), D(s, a), g && g.m(s, null), n[40](s), D(e, l), v && v.m(e, null), D(t, c), y && y.m(t, null), d = !0, h || (f = [
22264
+ B(P, t, k), D(t, e), m && m.m(e, null), D(e, i), D(e, s), D(s, o), A && A.m(o, null), n[39](o), D(s, a), g && g.m(s, null), n[40](s), D(e, l), v && v.m(e, null), D(t, c), y && y.m(t, null), d = !0, h || (f = [
22264
22265
  ii(r = sw.call(null, o, {
22265
22266
  thresholdProvider: (
22266
22267
  /*swipeable_function*/
@@ -22318,16 +22319,16 @@ function YC(n) {
22318
22319
  P[1] ? m ? (m.p(P, k), k[0] & /*arrows*/
22319
22320
  2 && M(m, 1)) : (m = jd(P), m.c(), M(m, 1), m.m(e, i)) : m && (de(), z(m, 1, 1, () => {
22320
22321
  m = null;
22321
- }), he()), p && p.p && (!d || k[0] & /*loaded, currentPageIndex*/
22322
+ }), he()), A && A.p && (!d || k[0] & /*loaded, currentPageIndex*/
22322
22323
  96 | k[1] & /*$$scope*/
22323
22324
  32) && jn(
22324
- p,
22325
22325
  A,
22326
+ p,
22326
22327
  P,
22327
22328
  /*$$scope*/
22328
22329
  P[36],
22329
22330
  d ? Ln(
22330
- A,
22331
+ p,
22331
22332
  /*$$scope*/
22332
22333
  P[36],
22333
22334
  k,
@@ -22372,19 +22373,19 @@ function YC(n) {
22372
22373
  }), he());
22373
22374
  },
22374
22375
  i(P) {
22375
- d || (M(m), M(p, P), M(g), M(v), M(y), d = !0);
22376
+ d || (M(m), M(A, P), M(g), M(v), M(y), d = !0);
22376
22377
  },
22377
22378
  o(P) {
22378
- z(m), z(p, P), z(g), z(v), z(y), d = !1;
22379
+ z(m), z(A, P), z(g), z(v), z(y), d = !1;
22379
22380
  },
22380
22381
  d(P) {
22381
- P && O(t), m && m.d(), p && p.d(P), n[39](null), g && g.d(), n[40](null), v && v.d(), y && y.d(), h = !1, Je(f);
22382
+ P && O(t), m && m.d(), A && A.d(P), n[39](null), g && g.d(), n[40](null), v && v.d(), y && y.d(), h = !1, Je(f);
22382
22383
  }
22383
22384
  };
22384
22385
  }
22385
22386
  function UC(n, t, e) {
22386
22387
  let { $$slots: i = {}, $$scope: s } = t, o = [], r, a, l = 0, c = 0, d = 1;
22387
- const [{ data: h, progressManager: f }, m, A] = RC((re, Ee) => {
22388
+ const [{ data: h, progressManager: f }, m, p] = RC((re, Ee) => {
22388
22389
  Aa({
22389
22390
  currentPageIndex: () => e(5, r = Ee),
22390
22391
  progressValue: () => e(7, a = Ee),
@@ -22393,7 +22394,7 @@ function UC(n, t, e) {
22393
22394
  pagesCount: () => e(10, d = Ee),
22394
22395
  loaded: () => e(6, o = Ee)
22395
22396
  })(re);
22396
- }), p = To();
22397
+ }), A = To();
22397
22398
  let { timingFunction: g = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: P = 0 } = t, { duration: k = 500 } = t, { autoplay: x = !1 } = t, { autoplayDuration: E = 3e3 } = t, { autoplayDirection: R = vi } = t, { pauseOnFocus: L = !1 } = t, { autoplayProgressVisible: W = !1 } = t, { dots: F = !0 } = t, { swiping: N = !0 } = t, { particlesToShow: G = 1 } = t, { particlesToScroll: _ = 1 } = t;
22398
22399
  function Q(re, Ee) {
22399
22400
  return H(this, null, function* () {
@@ -22493,7 +22494,7 @@ function UC(n, t, e) {
22493
22494
  "timingFunction" in re && e(0, g = re.timingFunction), "arrows" in re && e(1, v = re.arrows), "infinite" in re && e(2, y = re.infinite), "initialPageIndex" in re && e(24, P = re.initialPageIndex), "duration" in re && e(25, k = re.duration), "autoplay" in re && e(26, x = re.autoplay), "autoplayDuration" in re && e(27, E = re.autoplayDuration), "autoplayDirection" in re && e(28, R = re.autoplayDirection), "pauseOnFocus" in re && e(29, L = re.pauseOnFocus), "autoplayProgressVisible" in re && e(3, W = re.autoplayProgressVisible), "dots" in re && e(4, F = re.dots), "swiping" in re && e(30, N = re.swiping), "particlesToShow" in re && e(31, G = re.particlesToShow), "particlesToScroll" in re && e(32, _ = re.particlesToScroll), "$$scope" in re && e(36, s = re.$$scope);
22494
22495
  }, n.$$.update = () => {
22495
22496
  n.$$.dirty[0] & /*currentPageIndex*/
22496
- 32 && p("pageChange", r), n.$$.dirty[0] & /*infinite*/
22497
+ 32 && A("pageChange", r), n.$$.dirty[0] & /*infinite*/
22497
22498
  4 && (h.infinite = y), n.$$.dirty[0] & /*duration*/
22498
22499
  33554432 && (h.durationMsInit = k), n.$$.dirty[0] & /*autoplay*/
22499
22500
  67108864 && (h.autoplay = x), n.$$.dirty[0] & /*autoplayDuration*/
@@ -22857,12 +22858,12 @@ function eI(n) {
22857
22858
  };
22858
22859
  }
22859
22860
  function tI(n, t, e) {
22860
- let i, s, { mediaInstance: o = { videoInstance: void 0, paused: !0 } } = t, { tag: r } = t, { media: a } = t, { playButtonIfNeed: l = "withoutText" } = t, { playButtonSizeIfNeed: c = "small" } = t, { canPlay: d = !0 } = t, { objectFit: h = "fill" } = t, { disableVideoIfHavePoster: f = !1 } = t, m = !0, A = !1;
22861
- function p() {
22862
- e(8, A = (a == null ? void 0 : a.type) === "Video" && !!a.videoCoverUrl);
22861
+ let i, s, { mediaInstance: o = { videoInstance: void 0, paused: !0 } } = t, { tag: r } = t, { media: a } = t, { playButtonIfNeed: l = "withoutText" } = t, { playButtonSizeIfNeed: c = "small" } = t, { canPlay: d = !0 } = t, { objectFit: h = "fill" } = t, { disableVideoIfHavePoster: f = !1 } = t, m = !0, p = !1;
22862
+ function A() {
22863
+ e(8, p = (a == null ? void 0 : a.type) === "Video" && !!a.videoCoverUrl);
22863
22864
  }
22864
22865
  const g = mi("mediaStore"), v = mi("hooks"), y = () => {
22865
- A || i && (e(9, i.muted = !0, i), i.play(), i.pause(), e(9, i.muted = !1, i), e(8, A = !0));
22866
+ p || i && (e(9, i.muted = !0, i), i.play(), i.pause(), e(9, i.muted = !1, i), e(8, p = !0));
22866
22867
  };
22867
22868
  v.on("loadVideoFirstFrame", y), yt(() => {
22868
22869
  g.subscribe(({ currentMediaElement: N }) => {
@@ -22870,7 +22871,7 @@ function tI(n, t, e) {
22870
22871
  });
22871
22872
  });
22872
22873
  const P = (N) => {
22873
- e(10, m = !1), e(0, o.paused = !1, o), e(8, A = !0), i && g.set({ currentMediaElement: i }), v.emit("playStateChange", {
22874
+ e(10, m = !1), e(0, o.paused = !1, o), e(8, p = !0), i && g.set({ currentMediaElement: i }), v.emit("playStateChange", {
22874
22875
  event: N,
22875
22876
  state: "playing",
22876
22877
  tag: r,
@@ -22914,9 +22915,9 @@ function tI(n, t, e) {
22914
22915
  if (n.$$.dirty & /*mediaInstance*/
22915
22916
  1 && e(9, i = o.videoInstance), n.$$.dirty & /*media*/
22916
22917
  4 && e(13, s = a == null ? void 0 : a.url), n.$$.dirty & /*mediaUrl*/
22917
- 8192 && s && p(), n.$$.dirty & /*videoInstance*/
22918
+ 8192 && s && A(), n.$$.dirty & /*videoInstance*/
22918
22919
  512 && i && e(10, m = i.paused), n.$$.dirty & /*media, videoPosterLoaded, videoInstance*/
22919
- 772 && (a == null ? void 0 : a.type) === "Video" && !A) {
22920
+ 772 && (a == null ? void 0 : a.type) === "Video" && !p) {
22920
22921
  const N = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, _ = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && N;
22921
22922
  i && _ && i.paused && (document.removeEventListener("WeixinJSBridgeReady", y), document.removeEventListener("touchstart", y), document.removeEventListener("click", y), document.addEventListener("WeixinJSBridgeReady", y), document.addEventListener("touchstart", y), document.addEventListener("click", y));
22922
22923
  }
@@ -22929,7 +22930,7 @@ function tI(n, t, e) {
22929
22930
  d,
22930
22931
  h,
22931
22932
  f,
22932
- A,
22933
+ p,
22933
22934
  i,
22934
22935
  m,
22935
22936
  g,
@@ -23329,7 +23330,7 @@ function rI(n) {
23329
23330
  };
23330
23331
  }
23331
23332
  function aI(n, t, e) {
23332
- let i, s, o, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: d = 0 } = t, { duration: h = 0 } = t, { unfolded: f = !0 } = t, { animation: m = !0 } = t, { mediaItemConfig: A } = t, { enableCarousel: p = !0 } = t, { autoplayConfig: g = {} } = t;
23333
+ let i, s, o, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: d = 0 } = t, { duration: h = 0 } = t, { unfolded: f = !0 } = t, { animation: m = !0 } = t, { mediaItemConfig: p } = t, { enableCarousel: A = !0 } = t, { autoplayConfig: g = {} } = t;
23333
23334
  const { autoplayVideo: v = !1, autoplayCarousel: y = !0, autoplayVideoInCarousel: P = !1 } = g;
23334
23335
  let k = [], x = 0, E, R = null;
23335
23336
  const L = mi("hooks"), W = mi("mediaStore");
@@ -23365,11 +23366,11 @@ function aI(n, t, e) {
23365
23366
  n.$$.not_equal(k[0], Y) && (k[0] = Y, e(8, k));
23366
23367
  }
23367
23368
  return n.$$set = (Y) => {
23368
- "tag" in Y && e(0, a = Y.tag), "mediaData" in Y && e(1, l = Y.mediaData), "inDelay" in Y && e(2, c = Y.inDelay), "outDelay" in Y && e(3, d = Y.outDelay), "duration" in Y && e(4, h = Y.duration), "unfolded" in Y && e(5, f = Y.unfolded), "animation" in Y && e(6, m = Y.animation), "mediaItemConfig" in Y && e(7, A = Y.mediaItemConfig), "enableCarousel" in Y && e(15, p = Y.enableCarousel), "autoplayConfig" in Y && e(16, g = Y.autoplayConfig);
23369
+ "tag" in Y && e(0, a = Y.tag), "mediaData" in Y && e(1, l = Y.mediaData), "inDelay" in Y && e(2, c = Y.inDelay), "outDelay" in Y && e(3, d = Y.outDelay), "duration" in Y && e(4, h = Y.duration), "unfolded" in Y && e(5, f = Y.unfolded), "animation" in Y && e(6, m = Y.animation), "mediaItemConfig" in Y && e(7, p = Y.mediaItemConfig), "enableCarousel" in Y && e(15, A = Y.enableCarousel), "autoplayConfig" in Y && e(16, g = Y.autoplayConfig);
23369
23370
  }, n.$$.update = () => {
23370
23371
  n.$$.dirty[0] & /*mediaInstanceList*/
23371
23372
  256 && e(9, i = k.every((Y) => Y.paused)), n.$$.dirty[0] & /*enableCarousel, mediaData*/
23372
- 32770 && e(13, s = p && (l == null ? void 0 : l.length) > 1), n.$$.dirty[0] & /*mediaData*/
23373
+ 32770 && e(13, s = A && (l == null ? void 0 : l.length) > 1), n.$$.dirty[0] & /*mediaData*/
23373
23374
  2 && e(10, o = l), n.$$.dirty[0] & /*mediaDataList, paused*/
23374
23375
  1536 && (r = o.length > 1 && y && i);
23375
23376
  }, [
@@ -23380,7 +23381,7 @@ function aI(n, t, e) {
23380
23381
  h,
23381
23382
  f,
23382
23383
  m,
23383
- A,
23384
+ p,
23384
23385
  k,
23385
23386
  i,
23386
23387
  o,
@@ -23388,7 +23389,7 @@ function aI(n, t, e) {
23388
23389
  E,
23389
23390
  s,
23390
23391
  W,
23391
- p,
23392
+ A,
23392
23393
  g,
23393
23394
  N,
23394
23395
  G,
@@ -23466,10 +23467,10 @@ function Nd(n) {
23466
23467
  f & /*unfolded*/
23467
23468
  8 && (m.visible = /*unfolded*/
23468
23469
  h[3]), t.$set(m);
23469
- const A = {};
23470
+ const p = {};
23470
23471
  f & /*unfolded*/
23471
- 8 && (A.unfolded = /*unfolded*/
23472
- h[3]), s.$set(A), /*content*/
23472
+ 8 && (p.unfolded = /*unfolded*/
23473
+ h[3]), s.$set(p), /*content*/
23473
23474
  h[2] ? c ? (c.p(h, f), f & /*content*/
23474
23475
  4 && M(c, 1)) : (c = Hd(h), c.c(), M(c, 1), c.m(r.parentNode, r)) : c && (de(), z(c, 1, 1, () => {
23475
23476
  c = null;
@@ -23879,7 +23880,7 @@ function fI(n) {
23879
23880
  let t, e, i, s, o, r, a, l, c, d, h = (
23880
23881
  /*data*/
23881
23882
  n[3].title + ""
23882
- ), f, m, A, p, g;
23883
+ ), f, m, p, A, g;
23883
23884
  e = new Ut({
23884
23885
  props: {
23885
23886
  visible: (
@@ -23907,7 +23908,7 @@ function fI(n) {
23907
23908
  );
23908
23909
  return {
23909
23910
  c() {
23910
- t = S("div"), ne(e.$$.fragment), i = K(), s = S("div"), o = K(), r = S("div"), v && v.c(), a = K(), l = S("div"), c = S("div"), d = S("div"), f = Me(h), m = K(), y && y.c(), A = K(), P && P.c(), w(s, "class", "line svelte-sezqcq"), j(
23911
+ t = S("div"), ne(e.$$.fragment), i = K(), s = S("div"), o = K(), r = S("div"), v && v.c(), a = K(), l = S("div"), c = S("div"), d = S("div"), f = Me(h), m = K(), y && y.c(), p = K(), P && P.c(), w(s, "class", "line svelte-sezqcq"), j(
23911
23912
  s,
23912
23913
  "transition-delay",
23913
23914
  /*unfolded*/
@@ -23920,7 +23921,7 @@ function fI(n) {
23920
23921
  "transition-delay",
23921
23922
  /*unfolded*/
23922
23923
  n[4] ? eo + to + "ms" : "0ms"
23923
- ), w(t, "class", p = Re(`marketing ${/*theme*/
23924
+ ), w(t, "class", A = Re(`marketing ${/*theme*/
23924
23925
  n[6]}`) + " svelte-sezqcq"), q(
23925
23926
  t,
23926
23927
  "unfolded",
@@ -23934,7 +23935,7 @@ function fI(n) {
23934
23935
  );
23935
23936
  },
23936
23937
  m(E, R) {
23937
- B(E, t, R), ee(e, t, null), D(t, i), D(t, s), D(t, o), D(t, r), v && v.m(r, null), D(r, a), D(r, l), D(l, c), D(c, d), D(d, f), D(r, m), y && y.m(r, null), D(r, A), P && P.m(r, null), g = !0;
23938
+ B(E, t, R), ee(e, t, null), D(t, i), D(t, s), D(t, o), D(t, r), v && v.m(r, null), D(r, a), D(r, l), D(l, c), D(c, d), D(d, f), D(r, m), y && y.m(r, null), D(r, p), P && P.m(r, null), g = !0;
23938
23939
  },
23939
23940
  p(E, [R]) {
23940
23941
  var W, F;
@@ -23952,7 +23953,7 @@ function fI(n) {
23952
23953
  8) && h !== (h = /*data*/
23953
23954
  E[3].title + "") && De(f, h), /*primaryTags*/
23954
23955
  ((W = E[2].length) != null ? W : 0) + /*secondaryTags*/
23955
- ((F = E[5].length) != null ? F : 0) > 0 ? y ? y.p(E, R) : (y = Ud(E), y.c(), y.m(r, A)) : y && (y.d(1), y = null), /*havePrice*/
23956
+ ((F = E[5].length) != null ? F : 0) > 0 ? y ? y.p(E, R) : (y = Ud(E), y.c(), y.m(r, p)) : y && (y.d(1), y = null), /*havePrice*/
23956
23957
  E[7] || /*data*/
23957
23958
  E[3].highlightText ? P ? P.p(E, R) : (P = Zd(E), P.c(), P.m(r, null)) : P && (P.d(1), P = null), R & /*unfolded*/
23958
23959
  16 && j(
@@ -23961,8 +23962,8 @@ function fI(n) {
23961
23962
  /*unfolded*/
23962
23963
  E[4] ? eo + to + "ms" : "0ms"
23963
23964
  ), (!g || R & /*theme*/
23964
- 64 && p !== (p = Re(`marketing ${/*theme*/
23965
- E[6]}`) + " svelte-sezqcq")) && w(t, "class", p), (!g || R & /*theme, unfolded*/
23965
+ 64 && A !== (A = Re(`marketing ${/*theme*/
23966
+ E[6]}`) + " svelte-sezqcq")) && w(t, "class", A), (!g || R & /*theme, unfolded*/
23966
23967
  80) && q(
23967
23968
  t,
23968
23969
  "unfolded",
@@ -23991,21 +23992,21 @@ const nl = 40, eo = 400, eh = 500, to = 180, th = 500;
23991
23992
  function mI(n, t, e) {
23992
23993
  let i, s, o, r, a, l, c, d, { tag: h } = t, f, m = (() => {
23993
23994
  var g;
23994
- const p = (g = h.data.limitWidth) != null ? g : !0;
23995
- if (typeof p == "number")
23996
- return p;
23997
- if (p === !0)
23995
+ const A = (g = h.data.limitWidth) != null ? g : !0;
23996
+ if (typeof A == "number")
23997
+ return A;
23998
+ if (A === !0)
23998
23999
  return 172;
23999
24000
  })();
24000
- function A() {
24001
+ function p() {
24001
24002
  f = this.offsetHeight, e(1, f);
24002
24003
  }
24003
- return n.$$set = (p) => {
24004
- "tag" in p && e(0, h = p.tag);
24004
+ return n.$$set = (A) => {
24005
+ "tag" in A && e(0, h = A.tag);
24005
24006
  }, n.$$.update = () => {
24006
- var p, g, v, y, P, k;
24007
+ var A, g, v, y, P, k;
24007
24008
  n.$$.dirty & /*tag*/
24008
- 1 && e(4, i = (g = (p = h.state) == null ? void 0 : p.unfolded) != null ? g : !1), n.$$.dirty & /*unfolded*/
24009
+ 1 && e(4, i = (g = (A = h.state) == null ? void 0 : A.unfolded) != null ? g : !1), n.$$.dirty & /*unfolded*/
24009
24010
  16 && e(8, s = !i), n.$$.dirty & /*tag*/
24010
24011
  1 && e(3, o = h.data), n.$$.dirty & /*data*/
24011
24012
  8 && e(7, r = si((v = o.price) == null ? void 0 : v.value) && ((y = o.price) == null ? void 0 : y.value) !== ""), n.$$.dirty & /*tag*/
@@ -24025,7 +24026,7 @@ function mI(n, t, e) {
24025
24026
  s,
24026
24027
  m,
24027
24028
  l,
24028
- A
24029
+ p
24029
24030
  ];
24030
24031
  }
24031
24032
  class gI extends le {
@@ -24198,7 +24199,7 @@ function bI(n, t, e) {
24198
24199
  let { $$slots: i = {}, $$scope: s } = t, { url: o } = t, { enable: r = !0 } = t, { style: a = "" } = t, { hooksInfo: l } = t;
24199
24200
  const c = To(), d = mi("hooks"), h = mi("mediaStore");
24200
24201
  let f, m = !0;
24201
- function A() {
24202
+ function p() {
24202
24203
  e(
24203
24204
  5,
24204
24205
  f.onplay = (g) => {
@@ -24252,7 +24253,7 @@ function bI(n, t, e) {
24252
24253
  h.subscribe(({ currentMediaElement: g }) => {
24253
24254
  g !== f && (m || f == null || f.pause());
24254
24255
  });
24255
- function p(g) {
24256
+ function A(g) {
24256
24257
  f && (d.emit("click", V({
24257
24258
  event: g,
24258
24259
  target: "AudioTagPlayIcon",
@@ -24268,10 +24269,10 @@ function bI(n, t, e) {
24268
24269
  }, n.$$.update = () => {
24269
24270
  n.$$.dirty & /*url*/
24270
24271
  4 && (o || c("duration", 0)), n.$$.dirty & /*audio, url*/
24271
- 36 && (f == null || f.dispose(), e(5, f = new pI(o)), c("audioRef", f), setTimeout(() => c("audioRef", f), 200), A()), n.$$.dirty & /*enable, audio*/
24272
+ 36 && (f == null || f.dispose(), e(5, f = new pI(o)), c("audioRef", f), setTimeout(() => c("audioRef", f), 200), p()), n.$$.dirty & /*enable, audio*/
24272
24273
  40 && (r || f == null || f.pause()), n.$$.dirty & /*enable, audioPaused*/
24273
24274
  72 && c(r && !m ? "play" : "pause");
24274
- }, [a, p, o, r, l, f, m, s, i];
24275
+ }, [a, A, o, r, l, f, m, s, i];
24275
24276
  }
24276
24277
  let mf = class extends le {
24277
24278
  constructor(t) {
@@ -24449,7 +24450,7 @@ function II(n) {
24449
24450
  }
24450
24451
  function nh(n) {
24451
24452
  var g, v;
24452
- let t, e, i, s, o, r, a, l, c, d, h, f, m, A;
24453
+ let t, e, i, s, o, r, a, l, c, d, h, f, m, p;
24453
24454
  e = new Ut({
24454
24455
  props: {
24455
24456
  visible: (
@@ -24466,7 +24467,7 @@ function nh(n) {
24466
24467
  spreadRadius: 60
24467
24468
  }
24468
24469
  });
24469
- let p = (
24470
+ let A = (
24470
24471
  /*unfolded*/
24471
24472
  n[6] && sh(n)
24472
24473
  );
@@ -24507,7 +24508,7 @@ function nh(n) {
24507
24508
  }
24508
24509
  }), {
24509
24510
  c() {
24510
- t = S("div"), ne(e.$$.fragment), i = K(), s = S("div"), o = S("div"), r = S("div"), p && p.c(), a = K(), l = S("div"), ne(c.$$.fragment), d = K(), ne(h.$$.fragment), w(r, "class", "audio-icon svelte-1s6gk4a"), j(l, "display", "inline-block"), w(o, "class", "wrapper svelte-1s6gk4a"), w(s, "class", "content svelte-1s6gk4a"), w(t, "class", "audio-tag svelte-1s6gk4a"), q(
24511
+ t = S("div"), ne(e.$$.fragment), i = K(), s = S("div"), o = S("div"), r = S("div"), A && A.c(), a = K(), l = S("div"), ne(c.$$.fragment), d = K(), ne(h.$$.fragment), w(r, "class", "audio-icon svelte-1s6gk4a"), j(l, "display", "inline-block"), w(o, "class", "wrapper svelte-1s6gk4a"), w(s, "class", "content svelte-1s6gk4a"), w(t, "class", "audio-tag svelte-1s6gk4a"), q(
24511
24512
  t,
24512
24513
  "unfolded",
24513
24514
  /*unfolded*/
@@ -24515,7 +24516,7 @@ function nh(n) {
24515
24516
  );
24516
24517
  },
24517
24518
  m(y, P) {
24518
- B(y, t, P), ee(e, t, null), D(t, i), D(t, s), D(s, o), D(o, r), p && p.m(r, null), D(o, a), D(o, l), ee(c, l, null), D(t, d), ee(h, t, null), f = !0, m || (A = [
24519
+ B(y, t, P), ee(e, t, null), D(t, i), D(t, s), D(s, o), D(o, r), A && A.m(r, null), D(o, a), D(o, l), ee(c, l, null), D(t, d), ee(h, t, null), f = !0, m || (p = [
24519
24520
  be(
24520
24521
  l,
24521
24522
  "click",
@@ -24539,9 +24540,9 @@ function nh(n) {
24539
24540
  y[6]), P & /*contentWidth*/
24540
24541
  8 && (k.left = /*contentWidth*/
24541
24542
  y[3] / 2 + "px"), e.$set(k), /*unfolded*/
24542
- y[6] ? p ? (p.p(y, P), P & /*unfolded*/
24543
- 64 && M(p, 1)) : (p = sh(y), p.c(), M(p, 1), p.m(r, null)) : p && (de(), z(p, 1, 1, () => {
24544
- p = null;
24543
+ y[6] ? A ? (A.p(y, P), P & /*unfolded*/
24544
+ 64 && M(A, 1)) : (A = sh(y), A.c(), M(A, 1), A.m(r, null)) : A && (de(), z(A, 1, 1, () => {
24545
+ A = null;
24545
24546
  }), he());
24546
24547
  const x = {};
24547
24548
  P & /*unfolded*/
@@ -24571,13 +24572,13 @@ function nh(n) {
24571
24572
  );
24572
24573
  },
24573
24574
  i(y) {
24574
- f || (M(e.$$.fragment, y), M(p), M(c.$$.fragment, y), M(h.$$.fragment, y), f = !0);
24575
+ f || (M(e.$$.fragment, y), M(A), M(c.$$.fragment, y), M(h.$$.fragment, y), f = !0);
24575
24576
  },
24576
24577
  o(y) {
24577
- z(e.$$.fragment, y), z(p), z(c.$$.fragment, y), z(h.$$.fragment, y), f = !1;
24578
+ z(e.$$.fragment, y), z(A), z(c.$$.fragment, y), z(h.$$.fragment, y), f = !1;
24578
24579
  },
24579
24580
  d(y) {
24580
- y && O(t), te(e), p && p.d(), te(c), te(h), m = !1, Je(A);
24581
+ y && O(t), te(e), A && A.d(), te(c), te(h), m = !1, Je(p);
24581
24582
  }
24582
24583
  };
24583
24584
  }
@@ -24740,10 +24741,10 @@ function kI(n, t, e) {
24740
24741
  }, m = () => {
24741
24742
  e(2, l = !1);
24742
24743
  };
24743
- function A(g) {
24744
+ function p(g) {
24744
24745
  On.call(this, n, g);
24745
24746
  }
24746
- const p = (g) => {
24747
+ const A = (g) => {
24747
24748
  e(3, c = g.detail);
24748
24749
  };
24749
24750
  return n.$$set = (g) => {
@@ -24766,8 +24767,8 @@ function kI(n, t, e) {
24766
24767
  h,
24767
24768
  f,
24768
24769
  m,
24769
- A,
24770
- p
24770
+ p,
24771
+ A
24771
24772
  ];
24772
24773
  }
24773
24774
  class MI extends le {
@@ -24990,10 +24991,10 @@ function LI(n, t, e) {
24990
24991
  e(3, c = !1);
24991
24992
  }, m = (g) => {
24992
24993
  e(1, a = g.detail);
24993
- }, A = (g) => {
24994
+ }, p = (g) => {
24994
24995
  e(2, l = g.detail);
24995
24996
  };
24996
- function p(g) {
24997
+ function A(g) {
24997
24998
  On.call(this, n, g);
24998
24999
  }
24999
25000
  return n.$$set = (g) => {
@@ -25014,8 +25015,8 @@ function LI(n, t, e) {
25014
25015
  h,
25015
25016
  f,
25016
25017
  m,
25017
- A,
25018
- p
25018
+ p,
25019
+ A
25019
25020
  ];
25020
25021
  }
25021
25022
  class jI extends le {
@@ -25723,12 +25724,12 @@ function ln(n) {
25723
25724
  return pe(V({}, n), { width: o, height: r });
25724
25725
  }
25725
25726
  function tP(n, t, e) {
25726
- let i, s, o, r, a, l, c, d, h, { width: f = null } = t, { icon: m = null } = t, { shadow: A = !1 } = t;
25727
- const p = To();
25727
+ let i, s, o, r, a, l, c, d, h, { width: f = null } = t, { icon: m = null } = t, { shadow: p = !1 } = t;
25728
+ const A = To();
25728
25729
  function g(P) {
25729
25730
  return H(this, null, function* () {
25730
25731
  const k = yield FI(P);
25731
- return p("iconLoaded", k), k;
25732
+ return A("iconLoaded", k), k;
25732
25733
  });
25733
25734
  }
25734
25735
  function v(P) {
@@ -25736,16 +25737,16 @@ function tP(n, t, e) {
25736
25737
  if (typeof h == "number")
25737
25738
  return pe(V({}, P), { width: h });
25738
25739
  const k = yield _I(P);
25739
- return p("iconLoaded", k), k;
25740
+ return A("iconLoaded", k), k;
25740
25741
  });
25741
25742
  }
25742
25743
  function y() {
25743
- d || p("iconLoaded");
25744
+ d || A("iconLoaded");
25744
25745
  }
25745
25746
  return yt(() => {
25746
25747
  y();
25747
25748
  }), n.$$set = (P) => {
25748
- "width" in P && e(1, f = P.width), "icon" in P && e(12, m = P.icon), "shadow" in P && e(0, A = P.shadow);
25749
+ "width" in P && e(1, f = P.width), "icon" in P && e(12, m = P.icon), "shadow" in P && e(0, p = P.shadow);
25749
25750
  }, n.$$.update = () => {
25750
25751
  var P, k;
25751
25752
  n.$$.dirty & /*icon*/
@@ -25766,7 +25767,7 @@ function tP(n, t, e) {
25766
25767
  4 && e(8, d = s > 1), n.$$.dirty & /*width*/
25767
25768
  2 && (h = f);
25768
25769
  }, y(), [
25769
- A,
25770
+ p,
25770
25771
  f,
25771
25772
  s,
25772
25773
  l,
@@ -26012,26 +26013,26 @@ function fP(n) {
26012
26013
  pP,
26013
26014
  gP
26014
26015
  ], f = [];
26015
- function m(A, p) {
26016
+ function m(p, A) {
26016
26017
  return (
26017
26018
  /*tag*/
26018
- A[1].contentType === "Text" ? 0 : (
26019
+ p[1].contentType === "Text" ? 0 : (
26019
26020
  /*tag*/
26020
- A[1].contentType === "ImageText" || /*tag*/
26021
- A[1].contentType === "Image" || /*tag*/
26022
- A[1].contentType === "Video" ? 1 : (
26021
+ p[1].contentType === "ImageText" || /*tag*/
26022
+ p[1].contentType === "Image" || /*tag*/
26023
+ p[1].contentType === "Video" ? 1 : (
26023
26024
  /*tag*/
26024
- A[1].contentType === "Audio" ? 2 : (
26025
+ p[1].contentType === "Audio" ? 2 : (
26025
26026
  /*tag*/
26026
- A[1].contentType === "Marketing" ? 3 : (
26027
+ p[1].contentType === "Marketing" ? 3 : (
26027
26028
  /*tag*/
26028
- A[1].contentType === "Link" || /*tag*/
26029
- A[1].contentType === "VRLink" || /*tag*/
26030
- A[1].contentType === "PanoLink" || /*tag*/
26031
- A[1].contentType === "Sticker" ? 4 : (
26029
+ p[1].contentType === "Link" || /*tag*/
26030
+ p[1].contentType === "VRLink" || /*tag*/
26031
+ p[1].contentType === "PanoLink" || /*tag*/
26032
+ p[1].contentType === "Sticker" ? 4 : (
26032
26033
  /*tag*/
26033
- A[1].contentType === "MediaPlane" || /*tag*/
26034
- A[1].contentType === "MediaModel" ? 5 : -1
26034
+ p[1].contentType === "MediaPlane" || /*tag*/
26035
+ p[1].contentType === "MediaModel" ? 5 : -1
26035
26036
  )
26036
26037
  )
26037
26038
  )
@@ -26041,12 +26042,12 @@ function fP(n) {
26041
26042
  }
26042
26043
  return ~(s = m(n)) && (o = f[s] = h[s](n)), {
26043
26044
  c() {
26044
- var A;
26045
+ var p;
26045
26046
  t = S("div"), e = S("div"), i = S("div"), o && o.c(), w(i, "class", "content svelte-qz1wo5"), q(
26046
26047
  i,
26047
26048
  "unfolded",
26048
26049
  /*tag*/
26049
- (A = n[1].state) == null ? void 0 : A.unfolded
26050
+ (p = n[1].state) == null ? void 0 : p.unfolded
26050
26051
  ), w(e, "class", "content__wrapper svelte-qz1wo5"), w(t, "class", r = Re(at(
26051
26052
  "content__container",
26052
26053
  /*tag*/
@@ -26086,78 +26087,78 @@ function fP(n) {
26086
26087
  n[1].contentType === "MediaModel" ? "100%" : 0
26087
26088
  );
26088
26089
  },
26089
- m(A, p) {
26090
- B(A, t, p), D(t, e), D(e, i), ~s && f[s].m(i, null), l = !0, c || (d = be(t, "click", nu(
26090
+ m(p, A) {
26091
+ B(p, t, A), D(t, e), D(e, i), ~s && f[s].m(i, null), l = !0, c || (d = be(t, "click", nu(
26091
26092
  /*click_handler_1*/
26092
26093
  n[15]
26093
26094
  )), c = !0);
26094
26095
  },
26095
- p(A, p) {
26096
+ p(p, A) {
26096
26097
  var v;
26097
26098
  let g = s;
26098
- s = m(A), s === g ? ~s && f[s].p(A, p) : (o && (de(), z(f[g], 1, 1, () => {
26099
+ s = m(p), s === g ? ~s && f[s].p(p, A) : (o && (de(), z(f[g], 1, 1, () => {
26099
26100
  f[g] = null;
26100
- }), he()), ~s ? (o = f[s], o ? o.p(A, p) : (o = f[s] = h[s](A), o.c()), M(o, 1), o.m(i, null)) : o = null), (!l || p & /*tag*/
26101
+ }), he()), ~s ? (o = f[s], o ? o.p(p, A) : (o = f[s] = h[s](p), o.c()), M(o, 1), o.m(i, null)) : o = null), (!l || A & /*tag*/
26101
26102
  2) && q(
26102
26103
  i,
26103
26104
  "unfolded",
26104
26105
  /*tag*/
26105
- (v = A[1].state) == null ? void 0 : v.unfolded
26106
- ), (!l || p & /*tag*/
26106
+ (v = p[1].state) == null ? void 0 : v.unfolded
26107
+ ), (!l || A & /*tag*/
26107
26108
  2 && r !== (r = Re(at(
26108
26109
  "content__container",
26109
26110
  /*tag*/
26110
- A[1].className
26111
- )) + " svelte-qz1wo5")) && w(t, "class", r), (!l || p & /*tag*/
26111
+ p[1].className
26112
+ )) + " svelte-qz1wo5")) && w(t, "class", r), (!l || A & /*tag*/
26112
26113
  2 && a !== (a = /*tag*/
26113
- A[1].id)) && w(t, "data-id", a), (!l || p & /*tag, tag*/
26114
+ p[1].id)) && w(t, "data-id", a), (!l || A & /*tag, tag*/
26114
26115
  2) && q(
26115
26116
  t,
26116
26117
  "disable",
26117
26118
  /*tag*/
26118
- A[1].enabled === !1
26119
- ), (!l || p & /*tag, isHide*/
26119
+ p[1].enabled === !1
26120
+ ), (!l || A & /*tag, isHide*/
26120
26121
  34) && q(
26121
26122
  t,
26122
26123
  "hide",
26123
26124
  /*isHide*/
26124
- A[5]
26125
- ), (!l || p & /*tag, withAnimation*/
26125
+ p[5]
26126
+ ), (!l || A & /*tag, withAnimation*/
26126
26127
  3) && q(
26127
26128
  t,
26128
26129
  "withAnimation",
26129
26130
  /*withAnimation*/
26130
- A[0]
26131
- ), (!l || p & /*tag, tag*/
26131
+ p[0]
26132
+ ), (!l || A & /*tag, tag*/
26132
26133
  2) && q(
26133
26134
  t,
26134
26135
  "unClickable",
26135
26136
  /*tag*/
26136
- A[1].config.clickable === !1
26137
- ), p & /*tag*/
26137
+ p[1].config.clickable === !1
26138
+ ), A & /*tag*/
26138
26139
  2 && j(
26139
26140
  t,
26140
26141
  "width",
26141
26142
  /*tag*/
26142
- A[1].stickType === "Plane" || /*tag*/
26143
- A[1].contentType === "MediaModel" ? "100%" : 0
26144
- ), p & /*tag*/
26143
+ p[1].stickType === "Plane" || /*tag*/
26144
+ p[1].contentType === "MediaModel" ? "100%" : 0
26145
+ ), A & /*tag*/
26145
26146
  2 && j(
26146
26147
  t,
26147
26148
  "height",
26148
26149
  /*tag*/
26149
- A[1].stickType === "Plane" || /*tag*/
26150
- A[1].contentType === "MediaModel" ? "100%" : 0
26150
+ p[1].stickType === "Plane" || /*tag*/
26151
+ p[1].contentType === "MediaModel" ? "100%" : 0
26151
26152
  );
26152
26153
  },
26153
- i(A) {
26154
+ i(p) {
26154
26155
  l || (M(o), l = !0);
26155
26156
  },
26156
- o(A) {
26157
+ o(p) {
26157
26158
  z(o), l = !1;
26158
26159
  },
26159
- d(A) {
26160
- A && O(t), ~s && f[s].d(), c = !1, d();
26160
+ d(p) {
26161
+ p && O(t), ~s && f[s].d(), c = !1, d();
26161
26162
  }
26162
26163
  };
26163
26164
  }
@@ -26483,23 +26484,23 @@ function CP(n, t, e) {
26483
26484
  return !(!t.visible || !t.enabled || !e.visible || !((i = n.state) != null && i.visible) || ((s = n.temporaryState) == null ? void 0 : s.visible) === !1 || n.loading);
26484
26485
  }
26485
26486
  function IP(n, t, e) {
26486
- let i, s, o, r, a, l, { withAnimation: c = !1 } = t, { tag: d } = t, { hooks: h } = t, { renderMap: f = /* @__PURE__ */ new Map() } = t, { state: m } = t, { mediaStore: A } = t, { temporaryState: p } = t;
26487
- sa("hooks", h), sa("mediaStore", A);
26487
+ let i, s, o, r, a, l, { withAnimation: c = !1 } = t, { tag: d } = t, { hooks: h } = t, { renderMap: f = /* @__PURE__ */ new Map() } = t, { state: m } = t, { mediaStore: p } = t, { temporaryState: A } = t;
26488
+ sa("hooks", h), sa("mediaStore", p);
26488
26489
  let g, v;
26489
26490
  function y(x) {
26490
26491
  x ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
26491
26492
  }
26492
26493
  const P = (x) => h.emit("click", { event: x, target: "TagContent", tag: d }), k = (x) => h.emit("click", { event: x, target: "TagContent", tag: d });
26493
26494
  return n.$$set = (x) => {
26494
- "withAnimation" in x && e(0, c = x.withAnimation), "tag" in x && e(1, d = x.tag), "hooks" in x && e(2, h = x.hooks), "renderMap" in x && e(3, f = x.renderMap), "state" in x && e(6, m = x.state), "mediaStore" in x && e(7, A = x.mediaStore), "temporaryState" in x && e(8, p = x.temporaryState);
26495
+ "withAnimation" in x && e(0, c = x.withAnimation), "tag" in x && e(1, d = x.tag), "hooks" in x && e(2, h = x.hooks), "renderMap" in x && e(3, f = x.renderMap), "state" in x && e(6, m = x.state), "mediaStore" in x && e(7, p = x.mediaStore), "temporaryState" in x && e(8, A = x.temporaryState);
26495
26496
  }, n.$$.update = () => {
26496
26497
  var x, E, R, L, W, F, N, G, _, Q, Y;
26497
26498
  n.$$.dirty & /*tag*/
26498
26499
  2 && e(12, i = (x = d.state) == null ? void 0 : x.unfolded), n.$$.dirty & /*tag*/
26499
26500
  2 && e(11, s = (E = d.state) == null ? void 0 : E.visible), n.$$.dirty & /*state, temporaryState, tag*/
26500
- 322 && e(13, o = m.visible && p.visible && ((R = d.state) == null ? void 0 : R.visible)), n.$$.dirty & /*tag*/
26501
+ 322 && e(13, o = m.visible && A.visible && ((R = d.state) == null ? void 0 : R.visible)), n.$$.dirty & /*tag*/
26501
26502
  2 && (r = d.id), n.$$.dirty & /*tag, state, temporaryState*/
26502
- 322 && e(5, a = !CP(d, m, p)), n.$$.dirty & /*isVisible*/
26503
+ 322 && e(5, a = !CP(d, m, A)), n.$$.dirty & /*isVisible*/
26503
26504
  8192 && y(o), n.$$.dirty & /*tag, unfolded, lastUnfoldedState, visible, lastVisibleState*/
26504
26505
  7682 && d.hooks && (i !== void 0 && i !== v && (e(10, v = i), i ? (W = (L = d.hooks).emit) == null || W.call(L, "unfolded") : (N = d == null ? void 0 : (F = d.hooks).emit) == null || N.call(F, "folded")), s !== void 0 && s !== g && (e(9, g = s), s ? (_ = (G = d.hooks).emit) == null || _.call(G, "show") : (Y = (Q = d.hooks).emit) == null || Y.call(Q, "hide"))), n.$$.dirty & /*tag*/
26505
26506
  2 && e(4, l = (() => !(typeof d.config.unfoldedConfig == "object" && d.config.unfoldedConfig.keep === "folded"))());
@@ -26511,8 +26512,8 @@ function IP(n, t, e) {
26511
26512
  l,
26512
26513
  a,
26513
26514
  m,
26514
- A,
26515
26515
  p,
26516
+ A,
26516
26517
  g,
26517
26518
  v,
26518
26519
  s,
@@ -26600,16 +26601,16 @@ function EP(n) {
26600
26601
  n[3]
26601
26602
  );
26602
26603
  },
26603
- m(m, A) {
26604
- B(m, t, A), D(t, e), D(t, i), ee(s, t, null), D(t, o), D(t, r), D(t, a), D(t, l), ee(c, l, null), d = !0, h || (f = be(
26604
+ m(m, p) {
26605
+ B(m, t, p), D(t, e), D(t, i), ee(s, t, null), D(t, o), D(t, r), D(t, a), D(t, l), ee(c, l, null), d = !0, h || (f = be(
26605
26606
  e,
26606
26607
  "click",
26607
26608
  /*handlePointClick*/
26608
26609
  n[4]
26609
26610
  ), h = !0);
26610
26611
  },
26611
- p(m, [A]) {
26612
- A & /*folded*/
26612
+ p(m, [p]) {
26613
+ p & /*folded*/
26613
26614
  8 && j(
26614
26615
  r,
26615
26616
  "transition-delay",
@@ -26619,12 +26620,12 @@ function EP(n) {
26619
26620
  m[5]
26620
26621
  ) : 0) + "ms"
26621
26622
  );
26622
- const p = {};
26623
- A & /*url*/
26624
- 4 && (p.icon = /*url*/
26625
- m[2]), A & /*width*/
26626
- 2 && (p.width = /*width*/
26627
- m[1]), c.$set(p), A & /*folded*/
26623
+ const A = {};
26624
+ p & /*url*/
26625
+ 4 && (A.icon = /*url*/
26626
+ m[2]), p & /*width*/
26627
+ 2 && (A.width = /*width*/
26628
+ m[1]), c.$set(A), p & /*folded*/
26628
26629
  8 && j(
26629
26630
  l,
26630
26631
  "transition-delay",
@@ -26633,13 +26634,13 @@ function EP(n) {
26633
26634
  /*foldDelay*/
26634
26635
  m[5]
26635
26636
  ) : 0) + "ms"
26636
- ), (!d || A & /*unfolded*/
26637
+ ), (!d || p & /*unfolded*/
26637
26638
  1) && q(
26638
26639
  t,
26639
26640
  "unfolded",
26640
26641
  /*unfolded*/
26641
26642
  m[0]
26642
- ), (!d || A & /*folded*/
26643
+ ), (!d || p & /*folded*/
26643
26644
  8) && q(
26644
26645
  t,
26645
26646
  "folded",
@@ -26669,18 +26670,18 @@ function kP(n, t, e) {
26669
26670
  },
26670
26671
  800
26671
26672
  );
26672
- }, f = (p) => {
26673
- d || a.emit("click", { event: p, target: "TagPoint", tag: l });
26673
+ }, f = (A) => {
26674
+ d || a.emit("click", { event: A, target: "TagPoint", tag: l });
26674
26675
  }, m = (() => l.contentType === "Text" && l.data.appearance === "plane" ? 500 : 800)();
26675
- function A(p) {
26676
- On.call(this, n, p);
26676
+ function p(A) {
26677
+ On.call(this, n, A);
26677
26678
  }
26678
- return n.$$set = (p) => {
26679
- "tag" in p && e(6, l = p.tag);
26679
+ return n.$$set = (A) => {
26680
+ "tag" in A && e(6, l = A.tag);
26680
26681
  }, n.$$.update = () => {
26681
- var p, g, v, y;
26682
+ var A, g, v, y;
26682
26683
  n.$$.dirty & /*tag*/
26683
- 64 && e(0, i = (p = l.state) == null ? void 0 : p.unfolded), n.$$.dirty & /*unfolded*/
26684
+ 64 && e(0, i = (A = l.state) == null ? void 0 : A.unfolded), n.$$.dirty & /*unfolded*/
26684
26685
  1 && e(3, s = !i), n.$$.dirty & /*tag*/
26685
26686
  64 && e(2, o = (v = (g = l.style) == null ? void 0 : g.point) != null && v.url ? (y = l.style) == null ? void 0 : y.point : { url: bb }), n.$$.dirty & /*tag*/
26686
26687
  64 && e(1, r = (() => {
@@ -26708,7 +26709,7 @@ function kP(n, t, e) {
26708
26709
  f,
26709
26710
  m,
26710
26711
  l,
26711
- A
26712
+ p
26712
26713
  ];
26713
26714
  }
26714
26715
  class MP extends le {
@@ -26861,14 +26862,14 @@ function jP(n) {
26861
26862
  );
26862
26863
  }
26863
26864
  i = m(n), s = f[i] = h[i](n);
26864
- const A = [LP, TP], p = [];
26865
+ const p = [LP, TP], A = [];
26865
26866
  function g(v, y) {
26866
26867
  return (
26867
26868
  /*haveContent*/
26868
26869
  v[13] ? 0 : 1
26869
26870
  );
26870
26871
  }
26871
- return r = g(n), a = p[r] = A[r](n), {
26872
+ return r = g(n), a = A[r] = p[r](n), {
26872
26873
  c() {
26873
26874
  t = S("div"), e = S("div"), s.c(), o = K(), a.c(), w(e, "class", l = Re(at(
26874
26875
  "wrapper",
@@ -26929,7 +26930,7 @@ function jP(n) {
26929
26930
  );
26930
26931
  },
26931
26932
  m(v, y) {
26932
- B(v, t, y), D(t, e), f[i].m(e, null), D(e, o), p[r].m(e, null), d = !0;
26933
+ B(v, t, y), D(t, e), f[i].m(e, null), D(e, o), A[r].m(e, null), d = !0;
26933
26934
  },
26934
26935
  p(v, [y]) {
26935
26936
  let P = i;
@@ -26937,9 +26938,9 @@ function jP(n) {
26937
26938
  f[P] = null;
26938
26939
  }), he(), s = f[i], s ? s.p(v, y) : (s = f[i] = h[i](v), s.c()), M(s, 1), s.m(e, o));
26939
26940
  let k = r;
26940
- r = g(v), r === k ? p[r].p(v, y) : (de(), z(p[k], 1, 1, () => {
26941
- p[k] = null;
26942
- }), he(), a = p[r], a ? a.p(v, y) : (a = p[r] = A[r](v), a.c()), M(a, 1), a.m(e, null)), (!d || y & /*tag*/
26941
+ r = g(v), r === k ? A[r].p(v, y) : (de(), z(A[k], 1, 1, () => {
26942
+ A[k] = null;
26943
+ }), he(), a = A[r], a ? a.p(v, y) : (a = A[r] = p[r](v), a.c()), M(a, 1), a.m(e, null)), (!d || y & /*tag*/
26943
26944
  2 && l !== (l = Re(at(
26944
26945
  "wrapper",
26945
26946
  /*tag*/
@@ -27016,15 +27017,15 @@ function jP(n) {
27016
27017
  z(s), z(a), d = !1;
27017
27018
  },
27018
27019
  d(v) {
27019
- v && O(t), f[i].d(), p[r].d();
27020
+ v && O(t), f[i].d(), A[r].d();
27020
27021
  }
27021
27022
  };
27022
27023
  }
27023
27024
  function zP(n, t, e) {
27024
- let i, s, o, r, a, l, c, d, h, { withAnimation: f = !1 } = t, { tag: m } = t, { mediaStore: A } = t, { renderMap: p = /* @__PURE__ */ new Map() } = t, { state: g } = t, { temporaryState: v } = t;
27025
+ let i, s, o, r, a, l, c, d, h, { withAnimation: f = !1 } = t, { tag: m } = t, { mediaStore: p } = t, { renderMap: A = /* @__PURE__ */ new Map() } = t, { state: g } = t, { temporaryState: v } = t;
27025
27026
  const y = mi("hooks");
27026
27027
  return n.$$set = (P) => {
27027
- "withAnimation" in P && e(0, f = P.withAnimation), "tag" in P && e(1, m = P.tag), "mediaStore" in P && e(2, A = P.mediaStore), "renderMap" in P && e(3, p = P.renderMap), "state" in P && e(4, g = P.state), "temporaryState" in P && e(5, v = P.temporaryState);
27028
+ "withAnimation" in P && e(0, f = P.withAnimation), "tag" in P && e(1, m = P.tag), "mediaStore" in P && e(2, p = P.mediaStore), "renderMap" in P && e(3, A = P.renderMap), "state" in P && e(4, g = P.state), "temporaryState" in P && e(5, v = P.temporaryState);
27028
27029
  }, n.$$.update = () => {
27029
27030
  var P, k, x, E, R, L;
27030
27031
  n.$$.dirty & /*tag*/
@@ -27043,8 +27044,8 @@ function zP(n, t, e) {
27043
27044
  }, [
27044
27045
  f,
27045
27046
  m,
27046
- A,
27047
27047
  p,
27048
+ A,
27048
27049
  g,
27049
27050
  v,
27050
27051
  l,
@@ -27309,7 +27310,7 @@ class FP extends F1 {
27309
27310
  return;
27310
27311
  e.loading = !0;
27311
27312
  const s = NP(i).then((l) => {
27312
- var h, f, m, A, p;
27313
+ var h, f, m, p, A;
27313
27314
  const c = Object.assign(l.scene, {
27314
27315
  customID: e.id,
27315
27316
  isTagModel: !0,
@@ -27318,7 +27319,7 @@ class FP extends F1 {
27318
27319
  this.hooks.emit("click", { target: "TagModel", tag: e, event: g });
27319
27320
  })
27320
27321
  });
27321
- return c.visible = this.getCurrentVisibleState(e), new rs().fromArray(e.matrix).decompose(c.position, c.quaternion, c.scale), c.updateWorldMatrix(!0, !0), c.visible = this.getVisible(e), (m = (f = (h = this.config) == null ? void 0 : h.globalConfig) == null ? void 0 : f.modelConfig) != null && m.autoLookAtEnabled && ((p = (A = e.config) == null ? void 0 : A.modelConfig) != null && p.autoLookAtEnabled) && c.lookAt(this.five.camera.position.clone().setY(c.position.y)), c;
27322
+ return c.visible = this.getCurrentVisibleState(e), new rs().fromArray(e.matrix).decompose(c.position, c.quaternion, c.scale), c.updateWorldMatrix(!0, !0), c.visible = this.getVisible(e), (m = (f = (h = this.config) == null ? void 0 : h.globalConfig) == null ? void 0 : f.modelConfig) != null && m.autoLookAtEnabled && ((A = (p = e.config) == null ? void 0 : p.modelConfig) != null && A.autoLookAtEnabled) && c.lookAt(this.five.camera.position.clone().setY(c.position.y)), c;
27322
27323
  });
27323
27324
  e.model = { promise: s };
27324
27325
  const o = yield s;
@@ -27369,7 +27370,7 @@ class FP extends F1 {
27369
27370
  var s, o;
27370
27371
  return ((o = (s = i.data.mediaData) == null ? void 0 : s[0]) == null ? void 0 : o.type) === "Video";
27371
27372
  }).forEach((i) => {
27372
- var h, f, m, A, p;
27373
+ var h, f, m, p, A;
27373
27374
  const s = i.data.mediaData[0];
27374
27375
  if (!s)
27375
27376
  return;
@@ -27378,11 +27379,11 @@ class FP extends F1 {
27378
27379
  return;
27379
27380
  i.mediaPlane && !((f = (h = i.state) == null ? void 0 : h.visible) == null || f) && i.mediaPlane instanceof pa && i.mediaPlane.pause();
27380
27381
  const r = i.position.map(kt), a = this.getCurrentVisibleState(i), l = (() => !!(i.mediaPlane && !a))(), c = (() => !!(!i.mediaPlane && a))(), d = (() => !!(i.mediaPlane && i.mediaPlane.src !== o))();
27381
- if ((l || d) && (i.mediaPlane && this.imagePlaneGroup.remove(i.mediaPlane), (m = i.mediaPlane) == null || m.dispose(), (A = i.mediaPlane) == null || A.removeFromParent(), i.mediaPlane = void 0), c || d) {
27382
+ if ((l || d) && (i.mediaPlane && this.imagePlaneGroup.remove(i.mediaPlane), (m = i.mediaPlane) == null || m.dispose(), (p = i.mediaPlane) == null || p.removeFromParent(), i.mediaPlane = void 0), c || d) {
27382
27383
  const g = new pa(o, r, {
27383
27384
  videoCoverSrc: s.videoCoverUrl,
27384
27385
  playButton: i.data.playIcon,
27385
- paused: !((p = i.data.autoplayConfig) != null && p.autoplayVideo),
27386
+ paused: !((A = i.data.autoplayConfig) != null && A.autoplayVideo),
27386
27387
  objectFit: i.data.objectFit,
27387
27388
  videoTextureMap: HP,
27388
27389
  ImageTextureMap: _P,
@@ -27443,12 +27444,12 @@ class FP extends F1 {
27443
27444
  d.mode = "behind", d.container = document.createElement("div");
27444
27445
  const m = "black";
27445
27446
  d.container.style.backgroundColor = m, d.container.style.border = `3px solid ${m}`, this.css3DRenderPlugin.hooks.on("render", () => {
27446
- var A;
27447
+ var p;
27447
27448
  if (h.css3DObject.opacityMesh && c.clickable !== !1) {
27448
- const p = this.addObjectClickHandler(i, h.css3DObject.opacityMesh, (g) => {
27449
+ const A = this.addObjectClickHandler(i, h.css3DObject.opacityMesh, (g) => {
27449
27450
  this.hooks.emit("click", { event: g, target: "TagContent", tag: i });
27450
27451
  });
27451
- (A = this.store.css3DRenderDisposer.get(i.id)) == null || A.push(p);
27452
+ (p = this.store.css3DRenderDisposer.get(i.id)) == null || p.push(A);
27452
27453
  }
27453
27454
  });
27454
27455
  }
@@ -27507,8 +27508,8 @@ class FP extends F1 {
27507
27508
  * @param model 模型
27508
27509
  */
27509
27510
  updateTagCss3DObjectMatrix(e, i) {
27510
- var p, g, v;
27511
- const s = (g = (p = e.config.tag3DConfig) == null ? void 0 : p.ratio) != null ? g : 216e-5, o = (v = e.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
27511
+ var A, g, v;
27512
+ const s = (g = (A = e.config.tag3DConfig) == null ? void 0 : A.ratio) != null ? g : 216e-5, o = (v = e.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
27512
27513
  if (!o)
27513
27514
  return;
27514
27515
  const r = Ht(e) ? e.data.mediaPosition : e.position;
@@ -27517,8 +27518,8 @@ class FP extends F1 {
27517
27518
  i.updateWorldMatrix(!1, !1);
27518
27519
  const a = i.matrixWorld, l = new ie().fromArray(r[0]), c = new ie().fromArray(r[2]), d = yi(l, c).add(new ie(0, 0, 5e-4)), h = new rs().setPosition(d), f = new rs().makeScale(s, s, s), m = new rs().multiply(a).multiply(h).multiply(f);
27519
27520
  m.decompose(o.position, o.quaternion, o.scale);
27520
- const A = o.opacityMesh;
27521
- A && m.decompose(A.position, A.quaternion, A.scale);
27521
+ const p = o.opacityMesh;
27522
+ p && m.decompose(p.position, p.quaternion, p.scale);
27522
27523
  }
27523
27524
  /** 添加模型标签 */
27524
27525
  addMediaModelTag(e) {
@@ -27756,7 +27757,7 @@ class va extends FP {
27756
27757
  enable: () => this.changeEnabledById(r.id, !0),
27757
27758
  disable: () => this.changeEnabledById(r.id, !1),
27758
27759
  destroy: () => this.destroyTagById(r.id),
27759
- changeData: (A) => this.changeDataById(r.id, A)
27760
+ changeData: (p) => this.changeDataById(r.id, p)
27760
27761
  });
27761
27762
  }).filter((r) => r.position);
27762
27763
  return o.forEach(k1), this.tags.push(...o), WP(this.five).then(() => H(this, null, function* () {
@@ -28008,26 +28009,26 @@ function ph(n) {
28008
28009
  ), r, a, l = (
28009
28010
  /*i18n*/
28010
28011
  n[5]("米") + ""
28011
- ), c, d, h, f, m, A, p = (
28012
+ ), c, d, h, f, m, p, A = (
28012
28013
  /*name*/
28013
28014
  n[4] && Ah(n)
28014
28015
  );
28015
28016
  return {
28016
28017
  c() {
28017
- t = S("div"), p && p.c(), e = K(), i = S("div"), s = S("span"), r = Me(o), a = Me(
28018
+ t = S("div"), A && A.c(), e = K(), i = S("div"), s = S("span"), r = Me(o), a = Me(
28018
28019
  /*distance*/
28019
28020
  n[2]
28020
28021
  ), c = Me(l), d = K(), h = S("span"), f = Me(
28021
28022
  /*text*/
28022
28023
  n[0]
28023
- ), m = K(), A = S("div"), w(s, "class", "distance svelte-4qjwer"), w(h, "class", "name svelte-4qjwer"), w(i, "class", "distance-and-name svelte-4qjwer"), w(A, "class", "border svelte-4qjwer"), w(t, "class", "text-with-distance svelte-4qjwer");
28024
+ ), m = K(), p = S("div"), w(s, "class", "distance svelte-4qjwer"), w(h, "class", "name svelte-4qjwer"), w(i, "class", "distance-and-name svelte-4qjwer"), w(p, "class", "border svelte-4qjwer"), w(t, "class", "text-with-distance svelte-4qjwer");
28024
28025
  },
28025
28026
  m(g, v) {
28026
- B(g, t, v), p && p.m(t, null), D(t, e), D(t, i), D(i, s), D(s, r), D(s, a), D(s, c), D(i, d), D(i, h), D(h, f), D(t, m), D(t, A);
28027
+ B(g, t, v), A && A.m(t, null), D(t, e), D(t, i), D(i, s), D(s, r), D(s, a), D(s, c), D(i, d), D(i, h), D(h, f), D(t, m), D(t, p);
28027
28028
  },
28028
28029
  p(g, v) {
28029
28030
  /*name*/
28030
- g[4] ? p ? p.p(g, v) : (p = Ah(g), p.c(), p.m(t, e)) : p && (p.d(1), p = null), v & /*i18n*/
28031
+ g[4] ? A ? A.p(g, v) : (A = Ah(g), A.c(), A.m(t, e)) : A && (A.d(1), A = null), v & /*i18n*/
28031
28032
  32 && o !== (o = /*i18n*/
28032
28033
  g[5]("全程") + "") && De(r, o), v & /*distance*/
28033
28034
  4 && De(
@@ -28044,7 +28045,7 @@ function ph(n) {
28044
28045
  );
28045
28046
  },
28046
28047
  d(g) {
28047
- g && O(t), p && p.d();
28048
+ g && O(t), A && A.d();
28048
28049
  }
28049
28050
  };
28050
28051
  }
@@ -28633,7 +28634,7 @@ class Go extends oi {
28633
28634
  */
28634
28635
  load(e, i, s) {
28635
28636
  return H(this, null, function* () {
28636
- var d, h, f, m, A, p;
28637
+ var d, h, f, m, p, A;
28637
28638
  if (this.state.disposed)
28638
28639
  return bh();
28639
28640
  this.privateState.fiveOriginGetProgress || (h = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && h.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (m = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : m.getProgress), this.clear();
@@ -28656,7 +28657,7 @@ class Go extends oi {
28656
28657
  const k = a.length;
28657
28658
  a[k] = [g];
28658
28659
  }
28659
- }), !this.GuideLine && ((A = this.config) == null ? void 0 : A.useGuideLine) !== !1 && r.useGuildLine !== !1 && (this.GuideLine = d2(this.five, this.config)), (p = this.GuideLine) == null || p.load({ routes: a.map((g) => ({ panoIndexList: g })), config: r.guildPluginOptions }), i ? this.setState(i, { userAction: s }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug(`${Qo} loaded`, r), this.hooks.emit("dataLoaded", r);
28660
+ }), !this.GuideLine && ((p = this.config) == null ? void 0 : p.useGuideLine) !== !1 && r.useGuildLine !== !1 && (this.GuideLine = d2(this.five, this.config)), (A = this.GuideLine) == null || A.load({ routes: a.map((g) => ({ panoIndexList: g })), config: r.guildPluginOptions }), i ? this.setState(i, { userAction: s }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug(`${Qo} loaded`, r), this.hooks.emit("dataLoaded", r);
28660
28661
  });
28661
28662
  }
28662
28663
  /**
@@ -28760,11 +28761,11 @@ class Go extends oi {
28760
28761
  const f = s.panoIndexList.slice(d).find((k) => k !== c);
28761
28762
  if (f === void 0)
28762
28763
  return;
28763
- const m = (g = i[c]) == null ? void 0 : g.position, A = (v = i[f]) == null ? void 0 : v.position;
28764
- if (!A || !m || ((y = i[c]) == null ? void 0 : y.floorIndex) !== ((P = i[f]) == null ? void 0 : P.floorIndex))
28764
+ const m = (g = i[c]) == null ? void 0 : g.position, p = (v = i[f]) == null ? void 0 : v.position;
28765
+ if (!p || !m || ((y = i[c]) == null ? void 0 : y.floorIndex) !== ((P = i[f]) == null ? void 0 : P.floorIndex))
28765
28766
  return;
28766
- const p = new C.Vector3().subVectors(A, m);
28767
- return n2(p.normalize());
28767
+ const A = new C.Vector3().subVectors(p, m);
28768
+ return n2(A.normalize());
28768
28769
  })();
28769
28770
  s.moveType === void 0 || s.moveType === "justMove" ? o.push({
28770
28771
  moveIndex: d,
@@ -28815,13 +28816,13 @@ class Go extends oi {
28815
28816
  (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (m = e == null ? void 0 : e.userAction) != null ? m : !0 });
28816
28817
  let d = !1;
28817
28818
  const f = yield (() => H(this, null, function* () {
28818
- var A, p;
28819
+ var p, A;
28819
28820
  if ((e == null ? void 0 : e.playFromIndex) !== void 0)
28820
28821
  return e.playFromIndex;
28821
28822
  if ((e == null ? void 0 : e.playFromId) !== void 0)
28822
- return (A = this.data) == null ? void 0 : A.keyframes.findIndex((g) => g.id === e.playFromId);
28823
+ return (p = this.data) == null ? void 0 : p.keyframes.findIndex((g) => g.id === e.playFromId);
28823
28824
  if (c != null && c.keyframeId) {
28824
- const g = (p = this.data) == null ? void 0 : p.keyframes.find((v) => v.id === c.keyframeId);
28825
+ const g = (A = this.data) == null ? void 0 : A.keyframes.find((v) => v.id === c.keyframeId);
28825
28826
  if (c != null && c.fiveState && (yield this.move(c.fiveState, {
28826
28827
  moveEffect: o.moveToFirstPanoEffect,
28827
28828
  duration: o.moveToFirstPanoDuration
@@ -28836,16 +28837,16 @@ class Go extends oi {
28836
28837
  }
28837
28838
  }))();
28838
28839
  this.clearPauseData();
28839
- for (const A of l) {
28840
+ for (const p of l) {
28840
28841
  if (o.broke || !s.playing || !o.playing || a !== o.playId)
28841
28842
  return;
28842
- if (!(f !== void 0 && A.index < f))
28843
+ if (!(f !== void 0 && p.index < f))
28843
28844
  try {
28844
- r.emit("playIndexChange", A.index, A), yield this.playKeyframe(A, {
28845
+ r.emit("playIndexChange", p.index, p), yield this.playKeyframe(p, {
28845
28846
  moveEffect: d === !1 ? o.moveToFirstPanoEffect : void 0,
28846
28847
  duration: d === !1 && typeof o.moveToFirstPanoDuration == "number" ? o.moveToFirstPanoDuration : void 0
28847
- }), A.stay && (yield o2(A.stay)), d === !1 && (d = !0);
28848
- } catch (p) {
28848
+ }), p.stay && (yield o2(p.stay)), d === !1 && (d = !0);
28849
+ } catch (A) {
28849
28850
  return Promise.resolve("broke");
28850
28851
  }
28851
28852
  }
@@ -28967,8 +28968,8 @@ class Go extends oi {
28967
28968
  updateCamera(s) {
28968
28969
  return H(this, arguments, function* (e, i = {}) {
28969
28970
  const { five: o, privateState: r, state: a } = this, l = (() => {
28970
- var m, A;
28971
- const h = (m = a.config) == null ? void 0 : m.speedConfig, f = (A = e.rotateSpeed) != null ? A : h == null ? void 0 : h.rotateSpeed;
28971
+ var m, p;
28972
+ const h = (m = a.config) == null ? void 0 : m.speedConfig, f = (p = e.rotateSpeed) != null ? p : h == null ? void 0 : h.rotateSpeed;
28972
28973
  if ((h == null ? void 0 : h.rotateSpeedUnit) === void 0)
28973
28974
  return f;
28974
28975
  if (f !== void 0)
@@ -29212,9 +29213,9 @@ function l2(n, t) {
29212
29213
  return h(new Error("mode not match"));
29213
29214
  }
29214
29215
  function c(m) {
29215
- const A = a[0];
29216
- if (a = a.slice(1), m !== A)
29217
- return h(new Error("panoIndex not match, wanted: " + A + ", got: " + m));
29216
+ const p = a[0];
29217
+ if (a = a.slice(1), m !== p)
29218
+ return h(new Error("panoIndex not match, wanted: " + p + ", got: " + m));
29218
29219
  if (a.length === 0)
29219
29220
  return f();
29220
29221
  }
@@ -29265,7 +29266,7 @@ let c2 = class extends oi {
29265
29266
  }
29266
29267
  load(e, i, s = !0) {
29267
29268
  return H(this, null, function* () {
29268
- var m, A, p, g, v, y, P;
29269
+ var m, p, A, g, v, y, P;
29269
29270
  if (this.disposed)
29270
29271
  return;
29271
29272
  const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
@@ -29274,8 +29275,8 @@ let c2 = class extends oi {
29274
29275
  panorama_style: {
29275
29276
  visible: !!(!r.lines && r.routes),
29276
29277
  unit_length: (m = a == null ? void 0 : a.unitHeight) != null ? m : 0.4,
29277
- width: (A = a == null ? void 0 : a.unitWidth) != null ? A : 0.6,
29278
- texture: { url: (p = a == null ? void 0 : a.arrowTextureUrl) != null ? p : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
29278
+ width: (p = a == null ? void 0 : a.unitWidth) != null ? p : 0.6,
29279
+ texture: { url: (A = a == null ? void 0 : a.arrowTextureUrl) != null ? A : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
29279
29280
  }
29280
29281
  }, d = (v = (g = r.routes) == null ? void 0 : g.map((k) => {
29281
29282
  var x;
@@ -30686,8 +30687,8 @@ class O2 extends Cs {
30686
30687
  const d = this.rotateCenter.clone(), f = s.projectPoint(c.clone(), new C.Vector3()).clone().sub(d);
30687
30688
  if (i.angleTo(f) === 0)
30688
30689
  return;
30689
- const m = new C.Quaternion().setFromUnitVectors(i.clone().normalize(), f.clone().normalize()), A = l.quaternion.clone().premultiply(m);
30690
- if (this.hooks.emit("wantToRotate", A))
30690
+ const m = new C.Quaternion().setFromUnitVectors(i.clone().normalize(), f.clone().normalize()), p = l.quaternion.clone().premultiply(m);
30691
+ if (this.hooks.emit("wantToRotate", p))
30691
30692
  return;
30692
30693
  const v = new C.Euler().setFromQuaternion(
30693
30694
  new C.Quaternion().setFromUnitVectors(
@@ -30824,14 +30825,14 @@ class B2 extends Cs {
30824
30825
  }
30825
30826
  const X = new ie().subVectors(Y, Q), $ = X.length();
30826
30827
  return $ > 0.3 ? (console.warn("offset.length() > 0.3, skipped", $), G) : X;
30827
- }, A = m("ew"), p = m("ns"), g = () => {
30828
- const N = A;
30828
+ }, p = m("ew"), A = m("ns"), g = () => {
30829
+ const N = p;
30829
30830
  this.helperObject3D.cornerPositions.forEach((G, _) => {
30830
30831
  var Q;
30831
30832
  (Q = this.startInfo) != null && Q.dragPointInCenterLeft ? (_ === 0 || _ === 3) && G.add(N) : (_ === 1 || _ === 2) && G.add(N);
30832
30833
  });
30833
30834
  }, v = () => {
30834
- const N = p;
30835
+ const N = A;
30835
30836
  this.helperObject3D.cornerPositions.forEach((G, _) => {
30836
30837
  var Q;
30837
30838
  (Q = this.startInfo) != null && Q.dragPointInCenterBottom ? (_ === 0 || _ === 1) && G.add(N) : (_ === 2 || _ === 3) && G.add(N);
@@ -30979,21 +30980,21 @@ class F2 extends Vn {
30979
30980
  }
30980
30981
  const s = new z2(), o = [], r = (m = this.five.getElement()) == null ? void 0 : m.parentElement, a = this.five.camera, { moveHelper: l = !0, rotateHelper: c = !0, scaleHelper: d = !0, boundingBoxHelper: h = !1 } = i, f = new mt();
30981
30982
  if (l) {
30982
- const A = new v2(e), p = this.getConfig(i.moveHelper), g = new os(this.five, x2, e, A, p, f);
30983
+ const p = new v2(e), A = this.getConfig(i.moveHelper), g = new os(this.five, x2, e, p, A, f);
30983
30984
  s.addControllers({ moveController: g.helperController }), o.push(() => g.dispose());
30984
30985
  }
30985
30986
  if (c) {
30986
- const A = this.getConfig(i.rotateHelper), p = new w2(e, V({ container: r }, A)), g = new os(this.five, O2, e, p, A, f);
30987
+ const p = this.getConfig(i.rotateHelper), A = new w2(e, V({ container: r }, p)), g = new os(this.five, O2, e, A, p, f);
30987
30988
  s.addControllers({ rotateController: g.helperController }), o.push(() => g.dispose());
30988
30989
  }
30989
30990
  if (h) {
30990
- const A = new M2(e), p = new os(this.five, V2, e, A, void 0, f);
30991
- s.addControllers({ boundingBoxController: p.helperController });
30991
+ const p = new M2(e), A = new os(this.five, V2, e, p, void 0, f);
30992
+ s.addControllers({ boundingBoxController: A.helperController });
30992
30993
  }
30993
30994
  if (d)
30994
30995
  if (e.isCSS3DObjectPlus && r) {
30995
- const A = new k2(e, r, a, this.five.scene), p = new os(this.five, R2, e, A, void 0, f);
30996
- s.addControllers({ scaleController: p.helperController }), o.push(() => p.dispose()), Vh(this.five).then(() => {
30996
+ const p = new k2(e, r, a, this.five.scene), A = new os(this.five, R2, e, p, void 0, f);
30997
+ s.addControllers({ scaleController: A.helperController }), o.push(() => A.dispose()), Vh(this.five).then(() => {
30997
30998
  var g, v;
30998
30999
  if (e.isCSS3DObjectPlus) {
30999
31000
  const y = e;
@@ -31004,8 +31005,8 @@ class F2 extends Vn {
31004
31005
  }
31005
31006
  });
31006
31007
  } else {
31007
- const A = new Q2(e), p = new os(this.five, G2, e, A, void 0, f);
31008
- s.addControllers({ scaleController: p.helperController }), o.push(() => p.dispose());
31008
+ const p = new Q2(e), A = new os(this.five, G2, e, p, void 0, f);
31009
+ s.addControllers({ scaleController: A.helperController }), o.push(() => A.dispose());
31009
31010
  }
31010
31011
  return this.objectHelperMap.set(e, { helper: s, disposers: o }), s.controllers;
31011
31012
  }
@@ -31465,11 +31466,11 @@ function Z2(n) {
31465
31466
  function q2(n, t) {
31466
31467
  const e = n.ConnectsDataset.map((s) => {
31467
31468
  const o = s.data, r = s.start, a = s.end, l = { isHot: s.waterType === 5, quality: s.waterType }, c = o.map((d) => {
31468
- const h = n.LinesDataset.find((p) => p.id === d);
31469
+ const h = n.LinesDataset.find((A) => A.id === d);
31469
31470
  if (!h)
31470
31471
  return null;
31471
- const f = h.data, m = t != null && t.getPipeRadius ? t.getPipeRadius(h) : 1.6 / 100, A = t != null && t.getPipeUrl ? t.getPipeUrl(l) : Z2(l);
31472
- return { id: h.id, radius: m, water: l, path: f, texture: A };
31472
+ const f = h.data, m = t != null && t.getPipeRadius ? t.getPipeRadius(h) : 1.6 / 100, p = t != null && t.getPipeUrl ? t.getPipeUrl(l) : Z2(l);
31473
+ return { id: h.id, radius: m, water: l, path: f, texture: p };
31473
31474
  }).filter(si);
31474
31475
  return { startLibraryID: r, endLibraryID: a, pipes: c };
31475
31476
  });
@@ -31915,12 +31916,12 @@ let dE = class extends oi {
31915
31916
  * */
31916
31917
  switchPipelines(e) {
31917
31918
  return H(this, null, function* () {
31918
- var c, d, h, f, m, A;
31919
+ var c, d, h, f, m, p;
31919
31920
  if (!this.data)
31920
31921
  return;
31921
31922
  const i = (c = e == null ? void 0 : e.target) != null ? c : null, s = (d = e == null ? void 0 : e.userAction) != null ? d : !0;
31922
31923
  this.updateState({ target: i }, s);
31923
- const o = { duration: 500 }, r = (f = (h = e == null ? void 0 : e.hideAnime) != null ? h : e == null ? void 0 : e.anime) != null ? f : o, a = (A = (m = e == null ? void 0 : e.showAnime) != null ? m : e == null ? void 0 : e.anime) != null ? A : o, l = {
31924
+ const o = { duration: 500 }, r = (f = (h = e == null ? void 0 : e.hideAnime) != null ? h : e == null ? void 0 : e.anime) != null ? f : o, a = (p = (m = e == null ? void 0 : e.showAnime) != null ? m : e == null ? void 0 : e.anime) != null ? p : o, l = {
31924
31925
  target: i,
31925
31926
  showAnime: a,
31926
31927
  hideAnime: r