@realsee/dnalogel 2.1.1 → 2.1.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (631) hide show
  1. package/README.md +3 -12
  2. package/components/index.js +242 -569
  3. package/dist/index.cjs.js +58 -73
  4. package/dist/index.es.js +7842 -12958
  5. package/dist/index.js +7842 -12958
  6. package/dist/index.umd.js +46 -61
  7. package/docs/assets/highlight.css +3 -3
  8. package/docs/assets/main.js +4 -2
  9. package/docs/assets/search.js +1 -1
  10. package/docs/assets/style.css +462 -619
  11. package/docs/classes/CruisePluginController.html +397 -23
  12. package/docs/classes/Magnifier.html +187 -9
  13. package/docs/classes/ModelRoomLabelController.html +149 -11
  14. package/docs/classes/Object3DHelperController.html +356 -0
  15. package/docs/classes/PaintBrush.html +260 -0
  16. package/docs/classes/PanoTagPluginController.html +940 -0
  17. package/docs/classes/Util.BetterTween.html +134 -0
  18. package/docs/classes/Util.FivePointSelector.html +144 -0
  19. package/docs/classes/Util.Interval.html +158 -0
  20. package/docs/classes/Util.Magnifier.html +196 -0
  21. package/docs/classes/Util.PointDomHelper.html +135 -0
  22. package/docs/classes/Util.PointHelper.html +127 -0
  23. package/docs/classes/Util.Rectangle.html +181 -0
  24. package/docs/enums/CameraMovementEffect.html +70 -3
  25. package/docs/enums/ContentType.html +116 -0
  26. package/docs/enums/DIRECTION.html +81 -1
  27. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +81 -1
  28. package/docs/enums/DimensionType.html +67 -0
  29. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +74 -1
  30. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +81 -1
  31. package/docs/enums/LinkType.html +67 -0
  32. package/docs/enums/PaintBrushTypeEnum.html +74 -0
  33. package/docs/enums/PointType.html +67 -0
  34. package/docs/enums/Rotation.html +77 -3
  35. package/docs/functions/CSS3DRenderPlugin.html +233 -0
  36. package/docs/functions/CameraMovementPlugin.html +237 -0
  37. package/docs/functions/CruisePlugin.html +233 -0
  38. package/docs/functions/GuideLinePlugin.html +235 -0
  39. package/docs/functions/ItemLabelPlugin.html +235 -0
  40. package/docs/functions/MapviewFloorplanPlugin.html +235 -0
  41. package/docs/functions/ModelChassisCompassPlugin.html +237 -0
  42. package/docs/functions/ModelEntryDoorGuidePlugin.html +237 -0
  43. package/docs/functions/ModelFloorplanPlugin.html +235 -0
  44. package/docs/functions/ModelItemLabelPlugin.html +235 -0
  45. package/docs/functions/ModelRoomLabelPlugin.html +233 -0
  46. package/docs/functions/ModelTVVideoPlugin.html +235 -0
  47. package/docs/functions/ModelViewPlugin.html +237 -0
  48. package/docs/functions/Object3DHelperPlugin.html +233 -0
  49. package/docs/functions/PanoCompassPlugin.html +235 -0
  50. package/docs/functions/PanoCursorRaycasterPlugin.html +238 -0
  51. package/docs/functions/PanoDoorLabelPlugin.html +235 -0
  52. package/docs/functions/PanoFloorplanRadarPlugin.html +235 -0
  53. package/docs/functions/PanoMeasurePlugin.html +235 -0
  54. package/docs/functions/PanoRulerPlugin.html +237 -0
  55. package/docs/functions/PanoRulerProPlugin.html +237 -0
  56. package/docs/functions/PanoSpatialTagPlugin.html +237 -0
  57. package/docs/functions/PanoTagPlugin.html +249 -0
  58. package/docs/functions/TopviewFloorplanPlugin.html +235 -0
  59. package/docs/functions/Util.getCoordsFromClient.html +78 -0
  60. package/docs/functions/Util.getCoordsFromElement.html +78 -0
  61. package/docs/functions/Util.getFrameTime.html +70 -0
  62. package/docs/functions/Util.getIntersectFromRelativePosition.html +78 -0
  63. package/docs/functions/Util.getRaycasterFromFivePointer.html +78 -0
  64. package/docs/functions/Util.isNil.html +79 -0
  65. package/docs/functions/Util.nextFrame.html +73 -0
  66. package/docs/functions/Util.notNil.html +78 -0
  67. package/docs/functions/Util.requestAnimationFrameInterval.html +98 -0
  68. package/docs/functions/Util.tweenProgress.html +84 -0
  69. package/docs/functions/pluginFlag.html +233 -0
  70. package/docs/index.html +222 -9
  71. package/docs/interfaces/CSS3DRenderPluginEventMap.html +205 -0
  72. package/docs/interfaces/CSS3DRenderPluginState.html +85 -0
  73. package/docs/interfaces/CameraMovementPluginExportType.html +111 -17
  74. package/docs/interfaces/ContentTypeMap.html +212 -0
  75. package/docs/interfaces/FloorplanBounding.html +89 -10
  76. package/docs/interfaces/FloorplanData.html +95 -3
  77. package/docs/interfaces/FloorplanEntrance.html +114 -15
  78. package/docs/interfaces/FloorplanExtraObject.html +108 -7
  79. package/docs/interfaces/FloorplanExtraObject3D.html +99 -3
  80. package/docs/interfaces/FloorplanFloorData.html +88 -3
  81. package/docs/interfaces/FloorplanImagePosition.html +74 -3
  82. package/docs/interfaces/FloorplanObserver.html +92 -5
  83. package/docs/interfaces/FloorplanOutlineItem.html +88 -3
  84. package/docs/interfaces/FloorplanPosition.html +74 -3
  85. package/docs/interfaces/FloorplanRoomItem.html +134 -17
  86. package/docs/interfaces/FloorplanRoomLabelItem.html +78 -7
  87. package/docs/interfaces/FloorplanServerBounding.html +89 -10
  88. package/docs/interfaces/FloorplanServerComputedData.html +92 -1
  89. package/docs/interfaces/FloorplanServerData.html +74 -3
  90. package/docs/interfaces/FloorplanServerDoorItem.html +92 -1
  91. package/docs/interfaces/FloorplanServerDoorPosition.html +78 -1
  92. package/docs/interfaces/FloorplanServerEntrance.html +114 -15
  93. package/docs/interfaces/FloorplanServerFloorData.html +88 -3
  94. package/docs/interfaces/FloorplanServerImagePosition.html +74 -3
  95. package/docs/interfaces/FloorplanServerObserver.html +92 -5
  96. package/docs/interfaces/FloorplanServerOutlineItem.html +88 -3
  97. package/docs/interfaces/FloorplanServerPosition.html +74 -3
  98. package/docs/interfaces/FloorplanServerRoomItem.html +145 -20
  99. package/docs/interfaces/FloorplanServerRoomLabelItem.html +78 -7
  100. package/docs/interfaces/ItemLabelPluginData.html +64 -1
  101. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +149 -1
  102. package/docs/interfaces/ItemLabelPluginParametersType.html +85 -1
  103. package/docs/interfaces/LineJson.html +71 -1
  104. package/docs/interfaces/ModelChassisCompassPluginData.html +71 -1
  105. package/docs/interfaces/ModelChassisCompassPluginExportType.html +107 -1
  106. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +71 -1
  107. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +78 -1
  108. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +115 -1
  109. package/docs/interfaces/ModelItemLabelPluginData.html +64 -1
  110. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +149 -1
  111. package/docs/interfaces/ModelItemLabelPluginParametersType.html +71 -1
  112. package/docs/interfaces/ModelRoomLabelPluginData.html +64 -1
  113. package/docs/interfaces/ModelTVVideoPluginData.html +85 -1
  114. package/docs/interfaces/ModelTVVideoPluginExportType.html +109 -1
  115. package/docs/interfaces/ModelTVVideoPluginParameterType.html +64 -1
  116. package/docs/interfaces/ModelViewPluginExportType.html +129 -1
  117. package/docs/interfaces/Object3DHelperState.html +78 -0
  118. package/docs/interfaces/OpenParameter.html +74 -3
  119. package/docs/interfaces/PaintBrushAction.html +118 -0
  120. package/docs/interfaces/PaintBrushConfigs.html +122 -0
  121. package/docs/interfaces/PaintBrushState.html +99 -0
  122. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +186 -11
  123. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +227 -1
  124. package/docs/interfaces/PanoMeasureParameterType.html +128 -5
  125. package/docs/interfaces/PanoRulerPluginExportType.html +138 -1
  126. package/docs/interfaces/PanoRulerPluginOptions.html +87 -1
  127. package/docs/interfaces/PanoRulerPluginParameterType.html +78 -1
  128. package/docs/interfaces/PanoRulerProPluginExportType.html +114 -1
  129. package/docs/interfaces/PanoRulerProPluginOptions.html +84 -1
  130. package/docs/interfaces/PanoRulerProPluginParameterType.html +71 -1
  131. package/docs/interfaces/PanoRulerProPluginState.html +78 -1
  132. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +241 -1
  133. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +230 -1
  134. package/docs/interfaces/PanoSpatialTagPluginData.html +114 -1
  135. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +96 -1
  136. package/docs/interfaces/PanoSpatialTagPluginExportType.html +192 -1
  137. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +92 -1
  138. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +113 -1
  139. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +99 -1
  140. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +92 -1
  141. package/docs/interfaces/Point.html +78 -1
  142. package/docs/interfaces/PointJson.html +78 -1
  143. package/docs/interfaces/Room.html +85 -1
  144. package/docs/interfaces/RoomInfo.html +71 -1
  145. package/docs/interfaces/RoomLabel.html +141 -13
  146. package/docs/interfaces/RoomRules.html +230 -1
  147. package/docs/interfaces/Rooms.html +230 -1
  148. package/docs/interfaces/Scissor.html +100 -0
  149. package/docs/interfaces/TagConfig.html +120 -0
  150. package/docs/interfaces/Tags.html +89 -0
  151. package/docs/interfaces/Util.MagnifierParameter.html +116 -0
  152. package/docs/interfaces/Util.MouseGroupParameter.html +79 -0
  153. package/docs/modules/Util.html +91 -0
  154. package/docs/modules.html +425 -36
  155. package/docs/types/ArrayPosition.html +224 -0
  156. package/docs/types/CSS3DRenderExportType.html +224 -0
  157. package/docs/types/CSS3DRenderPluginExportType.html +224 -0
  158. package/docs/types/CSS3DRenderPluginParameterType.html +224 -0
  159. package/docs/types/Color.html +224 -0
  160. package/docs/types/ContentTypeConfigKey.html +224 -0
  161. package/docs/types/ContentTypeConfigKeyArray.html +224 -0
  162. package/docs/types/Create3DDomContainerReturnType.html +224 -0
  163. package/docs/types/Create3DElementReturnType.html +224 -0
  164. package/docs/types/CruisePluginExportType.html +224 -0
  165. package/docs/types/Direction-1.html +224 -0
  166. package/docs/types/Direction4.html +224 -0
  167. package/docs/types/FloorplanRuleLabels.html +226 -0
  168. package/docs/types/FloorplanServerRuleLabels.html +224 -0
  169. package/docs/types/GuideLinePluginExportType.html +224 -0
  170. package/docs/types/HelperEventMap.html +314 -0
  171. package/docs/types/MapviewFloorplanPluginParameterType.html +224 -0
  172. package/docs/types/MapviewFloorplanPluginReturnType.html +224 -0
  173. package/docs/types/MediaData.html +224 -0
  174. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +224 -0
  175. package/docs/types/ModelFloorplanPluginParameterType.html +224 -0
  176. package/docs/types/ModelFloorplanPluginReturnType.html +224 -0
  177. package/docs/types/ModelRoomLabelPluginParameters.html +224 -0
  178. package/docs/types/ModelRoomLabelPluginReturnType.html +224 -0
  179. package/docs/types/MoveArgs.html +226 -0
  180. package/docs/types/MoveOpts.html +226 -0
  181. package/docs/types/Object3DHelperEventMap.html +317 -0
  182. package/docs/types/ObjectFit.html +224 -0
  183. package/docs/types/PaintBrushEventMap.html +255 -0
  184. package/docs/types/PanoCompassPluginData.html +224 -0
  185. package/docs/types/PanoCompassPluginExportType.html +224 -0
  186. package/docs/types/PanoCompassPluginParameterType.html +224 -0
  187. package/docs/types/PanoFloorplanRadarPluginParameterType.html +224 -0
  188. package/docs/types/PanoFloorplanRadarPluginReturnType.html +224 -0
  189. package/docs/types/PanoMeasurePluginEvent.html +224 -0
  190. package/docs/types/PanoMeasureReturnType.html +224 -0
  191. package/docs/types/PanoSpatialTagPluginId.html +224 -0
  192. package/docs/types/PanoTagPluginExportInterface.html +224 -0
  193. package/docs/types/PanoTagPluginParamsInterface.html +224 -0
  194. package/docs/types/PlaneTag.html +233 -0
  195. package/docs/types/PointTag.html +235 -0
  196. package/docs/types/Position.html +224 -0
  197. package/docs/types/RotateArgs.html +226 -0
  198. package/docs/types/RotateOpts.html +226 -0
  199. package/docs/types/RuleLabelsKey.html +224 -0
  200. package/docs/types/RuleLabelsValue.html +224 -0
  201. package/docs/types/Tag.html +235 -0
  202. package/docs/types/Tag2D.html +233 -0
  203. package/docs/types/Tag3D.html +233 -0
  204. package/docs/types/TagId.html +224 -0
  205. package/docs/types/TopviewFloorplanPluginParameterType.html +224 -0
  206. package/docs/types/TopviewFloorplanPluginReturnType.html +224 -0
  207. package/docs/variables/FLOOR_TYPE_MAP.html +226 -0
  208. package/docs/variables/PLUGIN.html +224 -0
  209. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +226 -0
  210. package/docs/variables/ROOM_TYPE_MAP.html +226 -0
  211. package/docs/variables/VERSION.html +224 -0
  212. package/docs/variables/itemLabelPluginServerParams.html +231 -0
  213. package/docs/variables/modelItemLabelPluginServerParams.html +231 -0
  214. package/docs/variables/modelRoomLabelPluginServerParams.html +231 -0
  215. package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +2 -2
  216. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -300
  217. package/libs/CSS3DRenderPlugin/Controller.d.ts +3 -3
  218. package/libs/CSS3DRenderPlugin/Controller.js +1 -81
  219. package/libs/CSS3DRenderPlugin/index.js +1 -14
  220. package/libs/CSS3DRenderPlugin/typing.js +1 -1
  221. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -67
  222. package/libs/CSS3DRenderPlugin/utils/centerPoint.js +1 -10
  223. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +1 -7
  224. package/libs/CSS3DRenderPlugin/utils/index.js +1 -13
  225. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -7
  226. package/libs/CSS3DRenderPlugin/utils/random.js +1 -6
  227. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +1 -71
  228. package/libs/CameraMovementPlugin/index.js +1 -15
  229. package/libs/CameraMovementPlugin/typing.js +1 -5
  230. package/libs/CruisePlugin/Controller.js +1 -440
  231. package/libs/CruisePlugin/index.js +1 -27
  232. package/libs/CruisePlugin/utils/coordinatesAngle.js +1 -9
  233. package/libs/CruisePlugin/utils/coordinatesToVector.js +1 -12
  234. package/libs/CruisePlugin/utils/formatRad.js +1 -7
  235. package/libs/CruisePlugin/utils/linerValue.js +1 -7
  236. package/libs/CruisePlugin/utils/safeCall.js +1 -12
  237. package/libs/CruisePlugin/utils/sleep.js +1 -10
  238. package/libs/CruisePlugin/utils/vectorToCoordinates.js +1 -10
  239. package/libs/GuideLinePlugin/Controller.js +1 -112
  240. package/libs/GuideLinePlugin/index.js +1 -15
  241. package/libs/GuideLinePlugin/utils/getArrowMaterial.js +1 -13
  242. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -118
  243. package/libs/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
  244. package/libs/ItemLabelPlugin/ItemLabelComponent.js +1 -254
  245. package/libs/ItemLabelPlugin/ItemLabelItem.js +2 -133
  246. package/libs/ItemLabelPlugin/Plugin.js +2 -85
  247. package/libs/ItemLabelPlugin/index.js +1 -25
  248. package/libs/ItemLabelPlugin/typings.js +1 -4
  249. package/libs/ItemLabelPlugin/utils/getLabelTransform.js +1 -4
  250. package/libs/ItemLabelPlugin/utils/getStrokeLength.js +1 -16
  251. package/libs/ItemLabelPlugin/utils/isImpacted.js +1 -10
  252. package/libs/ItemLabelPlugin/utils/parseData.js +1 -10
  253. package/libs/ItemLabelPlugin/utils/transform2RenderData.js +1 -11
  254. package/libs/ModelChassisCompassPlugin/Plugin.js +1 -55
  255. package/libs/ModelChassisCompassPlugin/index.js +1 -10
  256. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +1 -66
  257. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -11
  258. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -196
  259. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +2 -42
  260. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +2 -79
  261. package/libs/ModelItemLabelPlugin/events.type.js +1 -1
  262. package/libs/ModelItemLabelPlugin/index.js +1 -21
  263. package/libs/ModelItemLabelPlugin/typings.js +1 -4
  264. package/libs/ModelItemLabelPlugin/utils/parseData.js +1 -9
  265. package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -4
  266. package/libs/ModelRoomLabelPlugin/Controller.js +1 -64
  267. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -45
  268. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -151
  269. package/libs/ModelRoomLabelPlugin/index.js +1 -16
  270. package/libs/ModelRoomLabelPlugin/utils/parseData.js +1 -16
  271. package/libs/ModelTVVideoPlugin/Plugin.js +1 -157
  272. package/libs/ModelTVVideoPlugin/index.js +1 -19
  273. package/libs/ModelTVVideoPlugin/typings.js +1 -4
  274. package/libs/ModelTVVideoPlugin/utils/parseData.js +1 -20
  275. package/libs/ModelViewPlugin/Plugin.js +1 -96
  276. package/libs/ModelViewPlugin/index.js +1 -8
  277. package/libs/Object3DHelperPlugin/Controller.d.ts +1 -1
  278. package/libs/Object3DHelperPlugin/Controller.js +1 -137
  279. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -1
  280. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +1 -35
  281. package/libs/Object3DHelperPlugin/index.js +1 -42
  282. package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -4
  283. package/libs/PanoCompassPlugin/Controller.js +1 -205
  284. package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -24
  285. package/libs/PanoCompassPlugin/index.js +1 -24
  286. package/libs/PanoCursorRaycasterPlugin/index.js +1 -60
  287. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -50
  288. package/libs/PanoDoorLabelPlugin/Controller.js +1 -215
  289. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -65
  290. package/libs/PanoDoorLabelPlugin/index.d.ts +1 -1
  291. package/libs/PanoDoorLabelPlugin/index.js +1 -15
  292. package/libs/PanoDoorLabelPlugin/utils.d.ts +2 -2
  293. package/libs/PanoDoorLabelPlugin/utils.js +1 -23
  294. package/libs/PanoMeasurePlugin/Controller/BaseController.js +1 -63
  295. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -114
  296. package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -138
  297. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -33
  298. package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -101
  299. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -169
  300. package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -1
  301. package/libs/PanoMeasurePlugin/Controller/index.js +1 -167
  302. package/libs/PanoMeasurePlugin/Model/index.d.ts +4 -4
  303. package/libs/PanoMeasurePlugin/Model/index.js +1 -99
  304. package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -1
  305. package/libs/PanoMeasurePlugin/Model/line.js +1 -60
  306. package/libs/PanoMeasurePlugin/Model/point.js +1 -30
  307. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +2 -2
  308. package/libs/PanoMeasurePlugin/Model/polyline.js +1 -47
  309. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +2 -5
  310. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -4
  311. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -4
  312. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +3 -67
  313. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +1 -28
  314. package/libs/PanoMeasurePlugin/Modules/GuideController.js +1 -41
  315. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -103
  316. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +8 -12
  317. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +1 -50
  318. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -36
  319. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -48
  320. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +3 -8
  321. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +1 -39
  322. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +1 -70
  323. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +2 -7
  324. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -123
  325. package/libs/PanoMeasurePlugin/index.js +1 -60
  326. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -12
  327. package/libs/PanoMeasurePlugin/utils/constants.js +1 -23
  328. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -62
  329. package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +1 -13
  330. package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +1 -1
  331. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +1 -16
  332. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +1 -9
  333. package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +1 -8
  334. package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -4
  335. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +1 -7
  336. package/libs/PanoMeasurePlugin/utils/line.js +1 -18
  337. package/libs/PanoMeasurePlugin/utils/math.js +1 -13
  338. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +3 -33
  339. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +1 -8
  340. package/libs/PanoRulerPlugin/Plugin.js +3 -241
  341. package/libs/PanoRulerPlugin/index.js +1 -11
  342. package/libs/PanoRulerPlugin/style.js +2 -5
  343. package/libs/PanoRulerProPlugin/Controller.js +1 -74
  344. package/libs/PanoRulerProPlugin/RulerItem.js +1 -118
  345. package/libs/PanoRulerProPlugin/RulerItems.js +1 -181
  346. package/libs/PanoRulerProPlugin/index.js +1 -17
  347. package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -82
  348. package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -124
  349. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -258
  350. package/libs/PanoSpatialTagPlugin/index.js +1 -24
  351. package/libs/PanoSpatialTagPlugin/store.d.ts +1 -1
  352. package/libs/PanoSpatialTagPlugin/store.js +1 -6
  353. package/libs/PanoSpatialTagPlugin/style.js +1 -11
  354. package/libs/PanoSpatialTagPlugin/typings.js +1 -1
  355. package/libs/PanoTagPlugin/Assets/Icon.js +1 -6
  356. package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -103
  357. package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -163
  358. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -93
  359. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -91
  360. package/libs/PanoTagPlugin/Components/Common/Media.js +1 -3438
  361. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -139
  362. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +1 -181
  363. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +1 -52
  364. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +1 -52
  365. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +1 -170
  366. package/libs/PanoTagPlugin/Components/Common/Shadow.js +15 -125
  367. package/libs/PanoTagPlugin/Components/Common/Text.js +1 -984
  368. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +1 -140
  369. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -72
  370. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -202
  371. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +1 -128
  372. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -231
  373. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +1 -95
  374. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +1 -134
  375. package/libs/PanoTagPlugin/Components/Tag/index.js +2 -308
  376. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -187
  377. package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -183
  378. package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -32
  379. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +5 -5
  380. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -15
  381. package/libs/PanoTagPlugin/controller/index.js +1 -386
  382. package/libs/PanoTagPlugin/index.js +1 -71
  383. package/libs/PanoTagPlugin/tag.config.js +1 -44
  384. package/libs/PanoTagPlugin/typings/controller.js +1 -1
  385. package/libs/PanoTagPlugin/typings/index.js +1 -7
  386. package/libs/PanoTagPlugin/typings/tag.js +1 -7
  387. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -6
  388. package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -27
  389. package/libs/PanoTagPlugin/utils/checkRange.d.ts +1 -1
  390. package/libs/PanoTagPlugin/utils/checkRange.js +1 -10
  391. package/libs/PanoTagPlugin/utils/constants.js +1 -8
  392. package/libs/PanoTagPlugin/utils/debounce.js +1 -12
  393. package/libs/PanoTagPlugin/utils/doUtil.js +1 -12
  394. package/libs/PanoTagPlugin/utils/index.js +1 -36
  395. package/libs/PanoTagPlugin/utils/noTypecheck.js +1 -4
  396. package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +1 -13
  397. package/libs/PanoTagPlugin/utils/planeNormal.js +1 -11
  398. package/libs/PanoTagPlugin/utils/resizeObserver.js +1 -17
  399. package/libs/PanoTagPlugin/utils/search.js +1 -33
  400. package/libs/PanoTagPlugin/utils/tagPosition.js +1 -13
  401. package/libs/PanoTagPlugin/utils/throttle.js +1 -11
  402. package/libs/base/BasePlugin.js +1 -18
  403. package/libs/base/BasePluginWithData.js +1 -7
  404. package/libs/components/PaintBrush/Controller.d.ts +2 -2
  405. package/libs/components/PaintBrush/Controller.js +1 -309
  406. package/libs/components/PaintBrush/Subscribe.js +1 -47
  407. package/libs/components/PaintBrush/index.js +1 -52
  408. package/libs/components/PaintBrush/style.js +2 -5
  409. package/libs/components/PaintBrush/tween.js +1 -15
  410. package/libs/components/PaintBrush/typings.js +1 -4
  411. package/libs/components/PaintBrush/utils.d.ts +1 -1
  412. package/libs/components/PaintBrush/utils.js +1 -45
  413. package/libs/components/index.js +1 -13
  414. package/libs/env.d.ts +1 -0
  415. package/libs/floorplan/Assets/camera.js +1 -4
  416. package/libs/floorplan/Assets/compass.js +1 -4
  417. package/libs/floorplan/Assets/floorplanExtraObject.js +1 -4
  418. package/libs/floorplan/Components/BaseImage.js +1 -104
  419. package/libs/floorplan/Components/Camera.js +1 -62
  420. package/libs/floorplan/Components/Compass.js +1 -60
  421. package/libs/floorplan/Components/CurrentFloor.js +1 -255
  422. package/libs/floorplan/Components/Main.js +1 -282
  423. package/libs/floorplan/Components/Normalmage.js +1 -37
  424. package/libs/floorplan/Components/RoomHighlight/Room.js +1 -61
  425. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -122
  426. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -152
  427. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -174
  428. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -184
  429. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -37
  430. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -39
  431. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -37
  432. package/libs/floorplan/Components/RuleLabels/RuleItem.js +1 -134
  433. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +1 -139
  434. package/libs/floorplan/Components/SvgImage.js +2 -39
  435. package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +1 -1
  436. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -322
  437. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -49
  438. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -1
  439. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -318
  440. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -49
  441. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -84
  442. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -133
  443. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -72
  444. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -191
  445. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -146
  446. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -26
  447. package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -1
  448. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -265
  449. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -46
  450. package/libs/floorplan/constant.js +1 -4
  451. package/libs/floorplan/index.js +1 -67
  452. package/libs/floorplan/typings/floorplanData.js +1 -1
  453. package/libs/floorplan/typings/floorplanServerData.js +1 -101
  454. package/libs/floorplan/utils/constant.js +1 -8
  455. package/libs/floorplan/utils/correctFiveState.js +1 -36
  456. package/libs/floorplan/utils/formatData.js +1 -82
  457. package/libs/floorplan/utils/formatPosition.js +1 -35
  458. package/libs/index.js +1 -330
  459. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -155
  460. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -53
  461. package/libs/shared-utils/Object3DHelper/Constants/color.js +1 -21
  462. package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +1 -29
  463. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -74
  464. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +1 -1
  465. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -117
  466. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -142
  467. package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -81
  468. package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -31
  469. package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -14
  470. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -31
  471. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +1 -35
  472. package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -103
  473. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +1 -143
  474. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -137
  475. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -30
  476. package/libs/shared-utils/Object3DHelper/index.js +1 -140
  477. package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -1
  478. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -1
  479. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -1
  480. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
  481. package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +1 -11
  482. package/libs/shared-utils/Object3DHelper/utils/direction.js +1 -30
  483. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -18
  484. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +1 -1
  485. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +1 -14
  486. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -18
  487. package/libs/shared-utils/Object3DHelper/utils/index.js +1 -29
  488. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -13
  489. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -5
  490. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
  491. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -191
  492. package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +1 -6
  493. package/libs/shared-utils/Subscribe.js +1 -50
  494. package/libs/shared-utils/animationFrame/BetterTween.js +1 -6
  495. package/libs/shared-utils/animationFrame/calculateProgress.js +1 -12
  496. package/libs/shared-utils/animationFrame/formatRad.js +1 -13
  497. package/libs/shared-utils/animationFrame/index.js +1 -51
  498. package/libs/shared-utils/animationFrame/tween.js +1 -30
  499. package/libs/shared-utils/changeModelCanvasOpacity.js +1 -12
  500. package/libs/shared-utils/createCanvasTextTexture.js +1 -11
  501. package/libs/shared-utils/createLine/index.js +1 -9
  502. package/libs/shared-utils/debounce.js +1 -11
  503. package/libs/shared-utils/equal.js +1 -54
  504. package/libs/shared-utils/filter.js +1 -30
  505. package/libs/shared-utils/five/changeMode.js +1 -21
  506. package/libs/shared-utils/getPxmm.js +1 -21
  507. package/libs/shared-utils/index.js +1 -45
  508. package/libs/shared-utils/isNil.js +1 -10
  509. package/libs/shared-utils/isTruelyObject.js +1 -6
  510. package/libs/shared-utils/math/Interval.js +1 -23
  511. package/libs/shared-utils/math/Rectangle.js +1 -23
  512. package/libs/shared-utils/math/index.js +1 -6
  513. package/libs/shared-utils/math/planimetry.d.ts +5 -5
  514. package/libs/shared-utils/math/planimetry.js +1 -135
  515. package/libs/shared-utils/math/rad2Deg.js +1 -6
  516. package/libs/shared-utils/nearlyEqual.js +1 -6
  517. package/libs/shared-utils/nextFrame.js +1 -6
  518. package/libs/shared-utils/noop.js +1 -5
  519. package/libs/shared-utils/object3d2LocalMatrix.js +1 -19
  520. package/libs/shared-utils/removeArrayItem.d.ts +1 -1
  521. package/libs/shared-utils/removeArrayItem.js +1 -8
  522. package/libs/shared-utils/tap.js +1 -6
  523. package/libs/shared-utils/three/Assets/index.js +1 -5
  524. package/libs/shared-utils/three/FivePointSelector.d.ts +1 -1
  525. package/libs/shared-utils/three/FivePointSelector.js +1 -63
  526. package/libs/shared-utils/three/Magnifier.d.ts +2 -2
  527. package/libs/shared-utils/three/Magnifier.js +1 -104
  528. package/libs/shared-utils/three/PointDomHelper.js +1 -68
  529. package/libs/shared-utils/three/PointHelper.js +3 -60
  530. package/libs/shared-utils/three/getCoords.js +1 -13
  531. package/libs/shared-utils/three/getIntersect.d.ts +1 -1
  532. package/libs/shared-utils/three/getIntersect.js +1 -8
  533. package/libs/shared-utils/three/getRaycaster.d.ts +1 -1
  534. package/libs/shared-utils/three/getRaycaster.js +1 -12
  535. package/libs/shared-utils/three/index.js +1 -33
  536. package/libs/shared-utils/three/loadTexture.js +1 -10
  537. package/libs/shared-utils/three/transformPositionToVector3.js +1 -5
  538. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +1 -13
  539. package/libs/shared-utils/throttle.js +1 -11
  540. package/libs/shared-utils/tinyEJSrender.js +14 -138
  541. package/libs/shared-utils/to.js +1 -11
  542. package/libs/shared-utils/uuid.js +1 -10
  543. package/libs/vendor/swiper/components-shared/get-changed-params.js +1 -0
  544. package/libs/vendor/swiper/components-shared/get-params.js +1 -0
  545. package/libs/vendor/swiper/components-shared/mount-swiper.js +1 -0
  546. package/libs/vendor/swiper/components-shared/params-list.js +1 -0
  547. package/libs/vendor/swiper/components-shared/update-swiper.js +1 -0
  548. package/libs/vendor/swiper/components-shared/utils.js +1 -0
  549. package/libs/vendor/swiper/svelte/swiper-slide.js +1 -0
  550. package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -0
  551. package/libs/vendor/swiper/svelte/swiper.js +1 -0
  552. package/package.json +218 -31
  553. package/dist/style.css +0 -1
  554. package/docs/assets/icons.css +0 -1043
  555. package/docs/assets/icons.png +0 -0
  556. package/docs/assets/icons@2x.png +0 -0
  557. package/docs/assets/widgets.png +0 -0
  558. package/docs/assets/widgets@2x.png +0 -0
  559. package/docs/interfaces/CSS3DRenderPluginExportType.html +0 -4
  560. package/libs/CruisePlugin/typing.js +0 -1
  561. package/libs/GuideLinePlugin/typing.js +0 -1
  562. package/libs/GuideLinePlugin/utils/getPoint.d.ts +0 -3
  563. package/libs/GuideLinePlugin/utils/getPoint.js +0 -18
  564. package/libs/GuideLinePlugin/utils/polyline-normals.d.js +0 -1
  565. package/libs/ItemLabelPlugin/events.type.js +0 -1
  566. package/libs/ModelRoomLabelPlugin/typings.js +0 -1
  567. package/libs/Object3DHelperPlugin/mocks/addObject3D.d.ts +0 -2
  568. package/libs/Object3DHelperPlugin/mocks/addObject3D.js +0 -1377
  569. package/libs/Object3DHelperPlugin/mocks/objects.d.ts +0 -7
  570. package/libs/Object3DHelperPlugin/mocks/objects.js +0 -47
  571. package/libs/Object3DHelperPlugin/typings.js +0 -1
  572. package/libs/PanoCompassPlugin/typings.js +0 -1
  573. package/libs/PanoDoorLabelPlugin/typings.js +0 -1
  574. package/libs/PanoMeasurePlugin/typings/data.js +0 -1
  575. package/libs/PanoMeasurePlugin/typings/event.type.js +0 -1
  576. package/libs/PanoMeasurePlugin/typings/index.js +0 -1
  577. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
  578. package/libs/PanoMeasurePlugin/typings/utils.type.js +0 -1
  579. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
  580. package/libs/PanoMeasurePlugin/utils/clearGroup.js +0 -6
  581. package/libs/PanoRulerPlugin/typings.js +0 -1
  582. package/libs/PanoRulerProPlugin/typings.js +0 -1
  583. package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
  584. package/libs/TagComputer.2bc444dc.js +0 -315
  585. package/libs/floorplan/MapviewFloorplanPlugin/typing.js +0 -1
  586. package/libs/floorplan/ModelFloorplanPlugin/typing.js +0 -1
  587. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +0 -1
  588. package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -1
  589. package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -11
  590. package/libs/floorplan/TopviewFloorplanPlugin/typing.js +0 -1
  591. package/libs/floorplan/typings/index.js +0 -1
  592. package/libs/floorplan/typings/utility.js +0 -1
  593. package/libs/hammer.b5b6115e.js +0 -882
  594. package/libs/index.164f1850.js +0 -641
  595. package/libs/index.5d5d1089.js +0 -34
  596. package/libs/index.6a0eead1.js +0 -12
  597. package/libs/index.ad783a2f.js +0 -31
  598. package/libs/index.dca207cb.js +0 -37
  599. package/libs/index.f2f85d71.js +0 -40
  600. package/libs/shared-utils/Object3DHelper/utils/finiteNumber.d.ts +0 -1
  601. package/libs/shared-utils/Object3DHelper/utils/finiteNumber.js +0 -6
  602. package/libs/shared-utils/Object3DHelper/utils/negateScale.d.ts +0 -2
  603. package/libs/shared-utils/Object3DHelper/utils/negateScale.js +0 -7
  604. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.d.js +0 -4
  605. package/libs/shared-utils/Preloader.d.ts +0 -6
  606. package/libs/shared-utils/Preloader.js +0 -18
  607. package/libs/shared-utils/formatRad.d.ts +0 -7
  608. package/libs/shared-utils/formatRad.js +0 -7
  609. package/libs/shared-utils/getRandomColor.d.ts +0 -1
  610. package/libs/shared-utils/getRandomColor.js +0 -6
  611. package/libs/shared-utils/logger.d.ts +0 -16
  612. package/libs/shared-utils/logger.js +0 -27
  613. package/libs/shared-utils/math/evenNumber.d.ts +0 -3
  614. package/libs/shared-utils/math/evenNumber.js +0 -7
  615. package/libs/shared-utils/px2rem.d.ts +0 -1
  616. package/libs/shared-utils/px2rem.js +0 -6
  617. package/libs/shared-utils/three/getExtraModelLoader.d.ts +0 -6
  618. package/libs/shared-utils/three/getExtraModelLoader.js +0 -18
  619. package/libs/shared-utils/three/getNormal.d.ts +0 -2
  620. package/libs/shared-utils/three/getNormal.js +0 -7
  621. package/libs/shared-utils/three/getTextureLoader.d.ts +0 -6
  622. package/libs/shared-utils/three/getTextureLoader.js +0 -16
  623. package/libs/shared-utils/three/loadFbxObj.d.ts +0 -2
  624. package/libs/shared-utils/three/loadFbxObj.js +0 -16
  625. package/libs/shared-utils/vectorTocoordinates.d.ts +0 -7
  626. package/libs/shared-utils/vectorTocoordinates.js +0 -10
  627. package/libs/style.css +0 -1
  628. package/libs/tween.esm.bad2b2b4.js +0 -340
  629. package/libs/typings/math.type.js +0 -1
  630. package/libs/typings/utils.type.d.ts +0 -2
  631. package/libs/typings/utils.type.js +0 -1
@@ -1,984 +1 @@
1
- import { S as Ne, i as Ue, s as He, a as We, r as qe, c as Me, n as le, D as Ze, g as xe, F as Qe, e as Je, u as Ke, b as Ge, p as Ye, v as Xe, G as $e } from "../../../index.164f1850.js";
2
- import { notNil as er } from "../../../shared-utils/isNil.js";
3
- import "three";
4
- import { searchFirstValueSmallThanLastValue as rr } from "../../utils/search.js";
5
- import { RANDON_STRING as ve } from "../../utils/constants.js";
6
- var Ee = {
7
- update: null,
8
- begin: null,
9
- loopBegin: null,
10
- changeBegin: null,
11
- change: null,
12
- changeComplete: null,
13
- loopComplete: null,
14
- complete: null,
15
- loop: 1,
16
- direction: "normal",
17
- autoplay: !0,
18
- timelineOffset: 0
19
- }, Y = {
20
- duration: 1e3,
21
- delay: 0,
22
- endDelay: 0,
23
- easing: "easeOutElastic(1, .5)",
24
- round: 0
25
- }, nr = ["translateX", "translateY", "translateZ", "rotate", "rotateX", "rotateY", "rotateZ", "scale", "scaleX", "scaleY", "scaleZ", "skew", "skewX", "skewY", "perspective", "matrix", "matrix3d"], N = {
26
- CSS: {},
27
- springs: {}
28
- };
29
- function _(e, r, t) {
30
- return Math.min(Math.max(e, r), t);
31
- }
32
- function R(e, r) {
33
- return e.indexOf(r) > -1;
34
- }
35
- function J(e, r) {
36
- return e.apply(null, r);
37
- }
38
- var c = {
39
- arr: function(e) {
40
- return Array.isArray(e);
41
- },
42
- obj: function(e) {
43
- return R(Object.prototype.toString.call(e), "Object");
44
- },
45
- pth: function(e) {
46
- return c.obj(e) && e.hasOwnProperty("totalLength");
47
- },
48
- svg: function(e) {
49
- return e instanceof SVGElement;
50
- },
51
- inp: function(e) {
52
- return e instanceof HTMLInputElement;
53
- },
54
- dom: function(e) {
55
- return e.nodeType || c.svg(e);
56
- },
57
- str: function(e) {
58
- return typeof e == "string";
59
- },
60
- fnc: function(e) {
61
- return typeof e == "function";
62
- },
63
- und: function(e) {
64
- return typeof e > "u";
65
- },
66
- nil: function(e) {
67
- return c.und(e) || e === null;
68
- },
69
- hex: function(e) {
70
- return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);
71
- },
72
- rgb: function(e) {
73
- return /^rgb/.test(e);
74
- },
75
- hsl: function(e) {
76
- return /^hsl/.test(e);
77
- },
78
- col: function(e) {
79
- return c.hex(e) || c.rgb(e) || c.hsl(e);
80
- },
81
- key: function(e) {
82
- return !Ee.hasOwnProperty(e) && !Y.hasOwnProperty(e) && e !== "targets" && e !== "keyframes";
83
- }
84
- };
85
- function Te(e) {
86
- var r = /\(([^)]+)\)/.exec(e);
87
- return r ? r[1].split(",").map(function(t) {
88
- return parseFloat(t);
89
- }) : [];
90
- }
91
- function Ie(e, r) {
92
- var t = Te(e), a = _(c.und(t[0]) ? 1 : t[0], 0.1, 100), n = _(c.und(t[1]) ? 100 : t[1], 0.1, 100), u = _(c.und(t[2]) ? 10 : t[2], 0.1, 100), o = _(c.und(t[3]) ? 0 : t[3], 0.1, 100), s = Math.sqrt(n / a), i = u / (2 * Math.sqrt(n * a)), d = i < 1 ? s * Math.sqrt(1 - i * i) : 0, f = 1, l = i < 1 ? (i * s + -o) / d : -o + s;
93
- function p(g) {
94
- var v = r ? r * g / 1e3 : g;
95
- return i < 1 ? v = Math.exp(-v * i * s) * (f * Math.cos(d * v) + l * Math.sin(d * v)) : v = (f + l * v) * Math.exp(-v * s), g === 0 || g === 1 ? g : 1 - v;
96
- }
97
- function y() {
98
- var g = N.springs[e];
99
- if (g)
100
- return g;
101
- for (var v = 1 / 6, M = 0, b = 0; ; )
102
- if (M += v, p(M) === 1) {
103
- if (b++, b >= 16)
104
- break;
105
- } else
106
- b = 0;
107
- var m = M * v * 1e3;
108
- return N.springs[e] = m, m;
109
- }
110
- return r ? p : y;
111
- }
112
- function tr(e) {
113
- return e === void 0 && (e = 10), function(r) {
114
- return Math.ceil(_(r, 1e-6, 1) * e) * (1 / e);
115
- };
116
- }
117
- var ar = function() {
118
- var e = 11, r = 1 / (e - 1);
119
- function t(f, l) {
120
- return 1 - 3 * l + 3 * f;
121
- }
122
- function a(f, l) {
123
- return 3 * l - 6 * f;
124
- }
125
- function n(f) {
126
- return 3 * f;
127
- }
128
- function u(f, l, p) {
129
- return ((t(l, p) * f + a(l, p)) * f + n(l)) * f;
130
- }
131
- function o(f, l, p) {
132
- return 3 * t(l, p) * f * f + 2 * a(l, p) * f + n(l);
133
- }
134
- function s(f, l, p, y, g) {
135
- var v, M, b = 0;
136
- do
137
- M = l + (p - l) / 2, v = u(M, y, g) - f, v > 0 ? p = M : l = M;
138
- while (Math.abs(v) > 1e-7 && ++b < 10);
139
- return M;
140
- }
141
- function i(f, l, p, y) {
142
- for (var g = 0; g < 4; ++g) {
143
- var v = o(l, p, y);
144
- if (v === 0)
145
- return l;
146
- var M = u(l, p, y) - f;
147
- l -= M / v;
148
- }
149
- return l;
150
- }
151
- function d(f, l, p, y) {
152
- if (!(0 <= f && f <= 1 && 0 <= p && p <= 1))
153
- return;
154
- var g = new Float32Array(e);
155
- if (f !== l || p !== y)
156
- for (var v = 0; v < e; ++v)
157
- g[v] = u(v * r, f, p);
158
- function M(b) {
159
- for (var m = 0, h = 1, I = e - 1; h !== I && g[h] <= b; ++h)
160
- m += r;
161
- --h;
162
- var F = (b - g[h]) / (g[h + 1] - g[h]), E = m + F * r, k = o(E, f, p);
163
- return k >= 1e-3 ? i(b, E, f, p) : k === 0 ? E : s(b, m, m + r, f, p);
164
- }
165
- return function(b) {
166
- return f === l && p === y || b === 0 || b === 1 ? b : u(M(b), l, y);
167
- };
168
- }
169
- return d;
170
- }(), we = function() {
171
- var e = { linear: function() {
172
- return function(a) {
173
- return a;
174
- };
175
- } }, r = {
176
- Sine: function() {
177
- return function(a) {
178
- return 1 - Math.cos(a * Math.PI / 2);
179
- };
180
- },
181
- Circ: function() {
182
- return function(a) {
183
- return 1 - Math.sqrt(1 - a * a);
184
- };
185
- },
186
- Back: function() {
187
- return function(a) {
188
- return a * a * (3 * a - 2);
189
- };
190
- },
191
- Bounce: function() {
192
- return function(a) {
193
- for (var n, u = 4; a < ((n = Math.pow(2, --u)) - 1) / 11; )
194
- ;
195
- return 1 / Math.pow(4, 3 - u) - 7.5625 * Math.pow((n * 3 - 2) / 22 - a, 2);
196
- };
197
- },
198
- Elastic: function(a, n) {
199
- a === void 0 && (a = 1), n === void 0 && (n = 0.5);
200
- var u = _(a, 1, 10), o = _(n, 0.1, 2);
201
- return function(s) {
202
- return s === 0 || s === 1 ? s : -u * Math.pow(2, 10 * (s - 1)) * Math.sin((s - 1 - o / (Math.PI * 2) * Math.asin(1 / u)) * (Math.PI * 2) / o);
203
- };
204
- }
205
- }, t = ["Quad", "Cubic", "Quart", "Quint", "Expo"];
206
- return t.forEach(function(a, n) {
207
- r[a] = function() {
208
- return function(u) {
209
- return Math.pow(u, n + 2);
210
- };
211
- };
212
- }), Object.keys(r).forEach(function(a) {
213
- var n = r[a];
214
- e["easeIn" + a] = n, e["easeOut" + a] = function(u, o) {
215
- return function(s) {
216
- return 1 - n(u, o)(1 - s);
217
- };
218
- }, e["easeInOut" + a] = function(u, o) {
219
- return function(s) {
220
- return s < 0.5 ? n(u, o)(s * 2) / 2 : 1 - n(u, o)(s * -2 + 2) / 2;
221
- };
222
- }, e["easeOutIn" + a] = function(u, o) {
223
- return function(s) {
224
- return s < 0.5 ? (1 - n(u, o)(1 - s * 2)) / 2 : (n(u, o)(s * 2 - 1) + 1) / 2;
225
- };
226
- };
227
- }), e;
228
- }();
229
- function X(e, r) {
230
- if (c.fnc(e))
231
- return e;
232
- var t = e.split("(")[0], a = we[t], n = Te(e);
233
- switch (t) {
234
- case "spring":
235
- return Ie(e, r);
236
- case "cubicBezier":
237
- return J(ar, n);
238
- case "steps":
239
- return J(tr, n);
240
- default:
241
- return J(a, n);
242
- }
243
- }
244
- function De(e) {
245
- try {
246
- var r = document.querySelectorAll(e);
247
- return r;
248
- } catch {
249
- return;
250
- }
251
- }
252
- function U(e, r) {
253
- for (var t = e.length, a = arguments.length >= 2 ? arguments[1] : void 0, n = [], u = 0; u < t; u++)
254
- if (u in e) {
255
- var o = e[u];
256
- r.call(a, o, u, e) && n.push(o);
257
- }
258
- return n;
259
- }
260
- function H(e) {
261
- return e.reduce(function(r, t) {
262
- return r.concat(c.arr(t) ? H(t) : t);
263
- }, []);
264
- }
265
- function de(e) {
266
- return c.arr(e) ? e : (c.str(e) && (e = De(e) || e), e instanceof NodeList || e instanceof HTMLCollection ? [].slice.call(e) : [e]);
267
- }
268
- function $(e, r) {
269
- return e.some(function(t) {
270
- return t === r;
271
- });
272
- }
273
- function ee(e) {
274
- var r = {};
275
- for (var t in e)
276
- r[t] = e[t];
277
- return r;
278
- }
279
- function K(e, r) {
280
- var t = ee(e);
281
- for (var a in e)
282
- t[a] = r.hasOwnProperty(a) ? r[a] : e[a];
283
- return t;
284
- }
285
- function W(e, r) {
286
- var t = ee(e);
287
- for (var a in r)
288
- t[a] = c.und(e[a]) ? r[a] : e[a];
289
- return t;
290
- }
291
- function ir(e) {
292
- var r = /rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);
293
- return r ? "rgba(" + r[1] + ",1)" : e;
294
- }
295
- function ur(e) {
296
- var r = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, t = e.replace(r, function(s, i, d, f) {
297
- return i + i + d + d + f + f;
298
- }), a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t), n = parseInt(a[1], 16), u = parseInt(a[2], 16), o = parseInt(a[3], 16);
299
- return "rgba(" + n + "," + u + "," + o + ",1)";
300
- }
301
- function or(e) {
302
- var r = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e) || /hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e), t = parseInt(r[1], 10) / 360, a = parseInt(r[2], 10) / 100, n = parseInt(r[3], 10) / 100, u = r[4] || 1;
303
- function o(p, y, g) {
304
- return g < 0 && (g += 1), g > 1 && (g -= 1), g < 1 / 6 ? p + (y - p) * 6 * g : g < 1 / 2 ? y : g < 2 / 3 ? p + (y - p) * (2 / 3 - g) * 6 : p;
305
- }
306
- var s, i, d;
307
- if (a == 0)
308
- s = i = d = n;
309
- else {
310
- var f = n < 0.5 ? n * (1 + a) : n + a - n * a, l = 2 * n - f;
311
- s = o(l, f, t + 1 / 3), i = o(l, f, t), d = o(l, f, t - 1 / 3);
312
- }
313
- return "rgba(" + s * 255 + "," + i * 255 + "," + d * 255 + "," + u + ")";
314
- }
315
- function sr(e) {
316
- if (c.rgb(e))
317
- return ir(e);
318
- if (c.hex(e))
319
- return ur(e);
320
- if (c.hsl(e))
321
- return or(e);
322
- }
323
- function C(e) {
324
- var r = /[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);
325
- if (r)
326
- return r[1];
327
- }
328
- function fr(e) {
329
- if (R(e, "translate") || e === "perspective")
330
- return "px";
331
- if (R(e, "rotate") || R(e, "skew"))
332
- return "deg";
333
- }
334
- function G(e, r) {
335
- return c.fnc(e) ? e(r.target, r.id, r.total) : e;
336
- }
337
- function P(e, r) {
338
- return e.getAttribute(r);
339
- }
340
- function re(e, r, t) {
341
- var a = C(r);
342
- if ($([t, "deg", "rad", "turn"], a))
343
- return r;
344
- var n = N.CSS[r + t];
345
- if (!c.und(n))
346
- return n;
347
- var u = 100, o = document.createElement(e.tagName), s = e.parentNode && e.parentNode !== document ? e.parentNode : document.body;
348
- s.appendChild(o), o.style.position = "absolute", o.style.width = u + t;
349
- var i = u / o.offsetWidth;
350
- s.removeChild(o);
351
- var d = i * parseFloat(r);
352
- return N.CSS[r + t] = d, d;
353
- }
354
- function _e(e, r, t) {
355
- if (r in e.style) {
356
- var a = r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), n = e.style[r] || getComputedStyle(e).getPropertyValue(a) || "0";
357
- return t ? re(e, n, t) : n;
358
- }
359
- }
360
- function ne(e, r) {
361
- if (c.dom(e) && !c.inp(e) && (!c.nil(P(e, r)) || c.svg(e) && e[r]))
362
- return "attribute";
363
- if (c.dom(e) && $(nr, r))
364
- return "transform";
365
- if (c.dom(e) && r !== "transform" && _e(e, r))
366
- return "css";
367
- if (e[r] != null)
368
- return "object";
369
- }
370
- function Pe(e) {
371
- if (!!c.dom(e)) {
372
- for (var r = e.style.transform || "", t = /(\w+)\(([^)]*)\)/g, a = /* @__PURE__ */ new Map(), n; n = t.exec(r); )
373
- a.set(n[1], n[2]);
374
- return a;
375
- }
376
- }
377
- function cr(e, r, t, a) {
378
- var n = R(r, "scale") ? 1 : 0 + fr(r), u = Pe(e).get(r) || n;
379
- return t && (t.transforms.list.set(r, u), t.transforms.last = r), a ? re(e, u, a) : u;
380
- }
381
- function te(e, r, t, a) {
382
- switch (ne(e, r)) {
383
- case "transform":
384
- return cr(e, r, a, t);
385
- case "css":
386
- return _e(e, r, t);
387
- case "attribute":
388
- return P(e, r);
389
- default:
390
- return e[r] || 0;
391
- }
392
- }
393
- function ae(e, r) {
394
- var t = /^(\*=|\+=|-=)/.exec(e);
395
- if (!t)
396
- return e;
397
- var a = C(e) || 0, n = parseFloat(r), u = parseFloat(e.replace(t[0], ""));
398
- switch (t[0][0]) {
399
- case "+":
400
- return n + u + a;
401
- case "-":
402
- return n - u + a;
403
- case "*":
404
- return n * u + a;
405
- }
406
- }
407
- function Ce(e, r) {
408
- if (c.col(e))
409
- return sr(e);
410
- if (/\s/g.test(e))
411
- return e;
412
- var t = C(e), a = t ? e.substr(0, e.length - t.length) : e;
413
- return r ? a + r : a;
414
- }
415
- function ie(e, r) {
416
- return Math.sqrt(Math.pow(r.x - e.x, 2) + Math.pow(r.y - e.y, 2));
417
- }
418
- function lr(e) {
419
- return Math.PI * 2 * P(e, "r");
420
- }
421
- function vr(e) {
422
- return P(e, "width") * 2 + P(e, "height") * 2;
423
- }
424
- function dr(e) {
425
- return ie(
426
- { x: P(e, "x1"), y: P(e, "y1") },
427
- { x: P(e, "x2"), y: P(e, "y2") }
428
- );
429
- }
430
- function Fe(e) {
431
- for (var r = e.points, t = 0, a, n = 0; n < r.numberOfItems; n++) {
432
- var u = r.getItem(n);
433
- n > 0 && (t += ie(a, u)), a = u;
434
- }
435
- return t;
436
- }
437
- function gr(e) {
438
- var r = e.points;
439
- return Fe(e) + ie(r.getItem(r.numberOfItems - 1), r.getItem(0));
440
- }
441
- function ke(e) {
442
- if (e.getTotalLength)
443
- return e.getTotalLength();
444
- switch (e.tagName.toLowerCase()) {
445
- case "circle":
446
- return lr(e);
447
- case "rect":
448
- return vr(e);
449
- case "line":
450
- return dr(e);
451
- case "polyline":
452
- return Fe(e);
453
- case "polygon":
454
- return gr(e);
455
- }
456
- }
457
- function hr(e) {
458
- var r = ke(e);
459
- return e.setAttribute("stroke-dasharray", r), r;
460
- }
461
- function mr(e) {
462
- for (var r = e.parentNode; c.svg(r) && c.svg(r.parentNode); )
463
- r = r.parentNode;
464
- return r;
465
- }
466
- function Oe(e, r) {
467
- var t = r || {}, a = t.el || mr(e), n = a.getBoundingClientRect(), u = P(a, "viewBox"), o = n.width, s = n.height, i = t.viewBox || (u ? u.split(" ") : [0, 0, o, s]);
468
- return {
469
- el: a,
470
- viewBox: i,
471
- x: i[0] / 1,
472
- y: i[1] / 1,
473
- w: o,
474
- h: s,
475
- vW: i[2],
476
- vH: i[3]
477
- };
478
- }
479
- function pr(e, r) {
480
- var t = c.str(e) ? De(e)[0] : e, a = r || 100;
481
- return function(n) {
482
- return {
483
- property: n,
484
- el: t,
485
- svg: Oe(t),
486
- totalLength: ke(t) * (a / 100)
487
- };
488
- };
489
- }
490
- function yr(e, r, t) {
491
- function a(f) {
492
- f === void 0 && (f = 0);
493
- var l = r + f >= 1 ? r + f : 0;
494
- return e.el.getPointAtLength(l);
495
- }
496
- var n = Oe(e.el, e.svg), u = a(), o = a(-1), s = a(1), i = t ? 1 : n.w / n.vW, d = t ? 1 : n.h / n.vH;
497
- switch (e.property) {
498
- case "x":
499
- return (u.x - n.x) * i;
500
- case "y":
501
- return (u.y - n.y) * d;
502
- case "angle":
503
- return Math.atan2(s.y - o.y, s.x - o.x) * 180 / Math.PI;
504
- }
505
- }
506
- function ge(e, r) {
507
- var t = /[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g, a = Ce(c.pth(e) ? e.totalLength : e, r) + "";
508
- return {
509
- original: a,
510
- numbers: a.match(t) ? a.match(t).map(Number) : [0],
511
- strings: c.str(e) || r ? a.split(t) : []
512
- };
513
- }
514
- function ue(e) {
515
- var r = e ? H(c.arr(e) ? e.map(de) : de(e)) : [];
516
- return U(r, function(t, a, n) {
517
- return n.indexOf(t) === a;
518
- });
519
- }
520
- function Se(e) {
521
- var r = ue(e);
522
- return r.map(function(t, a) {
523
- return { target: t, id: a, total: r.length, transforms: { list: Pe(t) } };
524
- });
525
- }
526
- function br(e, r) {
527
- var t = ee(r);
528
- if (/^spring/.test(t.easing) && (t.duration = Ie(t.easing)), c.arr(e)) {
529
- var a = e.length, n = a === 2 && !c.obj(e[0]);
530
- n ? e = { value: e } : c.fnc(r.duration) || (t.duration = r.duration / a);
531
- }
532
- var u = c.arr(e) ? e : [e];
533
- return u.map(function(o, s) {
534
- var i = c.obj(o) && !c.pth(o) ? o : { value: o };
535
- return c.und(i.delay) && (i.delay = s ? 0 : r.delay), c.und(i.endDelay) && (i.endDelay = s === u.length - 1 ? r.endDelay : 0), i;
536
- }).map(function(o) {
537
- return W(o, t);
538
- });
539
- }
540
- function Mr(e) {
541
- for (var r = U(H(e.map(function(u) {
542
- return Object.keys(u);
543
- })), function(u) {
544
- return c.key(u);
545
- }).reduce(function(u, o) {
546
- return u.indexOf(o) < 0 && u.push(o), u;
547
- }, []), t = {}, a = function(u) {
548
- var o = r[u];
549
- t[o] = e.map(function(s) {
550
- var i = {};
551
- for (var d in s)
552
- c.key(d) ? d == o && (i.value = s[d]) : i[d] = s[d];
553
- return i;
554
- });
555
- }, n = 0; n < r.length; n++)
556
- a(n);
557
- return t;
558
- }
559
- function xr(e, r) {
560
- var t = [], a = r.keyframes;
561
- a && (r = W(Mr(a), r));
562
- for (var n in r)
563
- c.key(n) && t.push({
564
- name: n,
565
- tweens: br(r[n], e)
566
- });
567
- return t;
568
- }
569
- function Er(e, r) {
570
- var t = {};
571
- for (var a in e) {
572
- var n = G(e[a], r);
573
- c.arr(n) && (n = n.map(function(u) {
574
- return G(u, r);
575
- }), n.length === 1 && (n = n[0])), t[a] = n;
576
- }
577
- return t.duration = parseFloat(t.duration), t.delay = parseFloat(t.delay), t;
578
- }
579
- function Tr(e, r) {
580
- var t;
581
- return e.tweens.map(function(a) {
582
- var n = Er(a, r), u = n.value, o = c.arr(u) ? u[1] : u, s = C(o), i = te(r.target, e.name, s, r), d = t ? t.to.original : i, f = c.arr(u) ? u[0] : d, l = C(f) || C(i), p = s || l;
583
- return c.und(o) && (o = d), n.from = ge(f, p), n.to = ge(ae(o, f), p), n.start = t ? t.end : 0, n.end = n.start + n.delay + n.duration + n.endDelay, n.easing = X(n.easing, n.duration), n.isPath = c.pth(u), n.isPathTargetInsideSVG = n.isPath && c.svg(r.target), n.isColor = c.col(n.from.original), n.isColor && (n.round = 1), t = n, n;
584
- });
585
- }
586
- var Le = {
587
- css: function(e, r, t) {
588
- return e.style[r] = t;
589
- },
590
- attribute: function(e, r, t) {
591
- return e.setAttribute(r, t);
592
- },
593
- object: function(e, r, t) {
594
- return e[r] = t;
595
- },
596
- transform: function(e, r, t, a, n) {
597
- if (a.list.set(r, t), r === a.last || n) {
598
- var u = "";
599
- a.list.forEach(function(o, s) {
600
- u += s + "(" + o + ") ";
601
- }), e.style.transform = u;
602
- }
603
- }
604
- };
605
- function je(e, r) {
606
- var t = Se(e);
607
- t.forEach(function(a) {
608
- for (var n in r) {
609
- var u = G(r[n], a), o = a.target, s = C(u), i = te(o, n, s, a), d = s || C(i), f = ae(Ce(u, d), i), l = ne(o, n);
610
- Le[l](o, n, f, a.transforms, !0);
611
- }
612
- });
613
- }
614
- function Ir(e, r) {
615
- var t = ne(e.target, r.name);
616
- if (t) {
617
- var a = Tr(r, e), n = a[a.length - 1];
618
- return {
619
- type: t,
620
- property: r.name,
621
- animatable: e,
622
- tweens: a,
623
- duration: n.end,
624
- delay: a[0].delay,
625
- endDelay: n.endDelay
626
- };
627
- }
628
- }
629
- function wr(e, r) {
630
- return U(H(e.map(function(t) {
631
- return r.map(function(a) {
632
- return Ir(t, a);
633
- });
634
- })), function(t) {
635
- return !c.und(t);
636
- });
637
- }
638
- function Ae(e, r) {
639
- var t = e.length, a = function(u) {
640
- return u.timelineOffset ? u.timelineOffset : 0;
641
- }, n = {};
642
- return n.duration = t ? Math.max.apply(Math, e.map(function(u) {
643
- return a(u) + u.duration;
644
- })) : r.duration, n.delay = t ? Math.min.apply(Math, e.map(function(u) {
645
- return a(u) + u.delay;
646
- })) : r.delay, n.endDelay = t ? n.duration - Math.max.apply(Math, e.map(function(u) {
647
- return a(u) + u.duration - u.endDelay;
648
- })) : r.endDelay, n;
649
- }
650
- var he = 0;
651
- function Dr(e) {
652
- var r = K(Ee, e), t = K(Y, e), a = xr(t, e), n = Se(e.targets), u = wr(n, a), o = Ae(u, t), s = he;
653
- return he++, W(r, {
654
- id: s,
655
- children: [],
656
- animatables: n,
657
- animations: u,
658
- duration: o.duration,
659
- delay: o.delay,
660
- endDelay: o.endDelay
661
- });
662
- }
663
- var D = [], Be = function() {
664
- var e;
665
- function r() {
666
- !e && (!me() || !x.suspendWhenDocumentHidden) && D.length > 0 && (e = requestAnimationFrame(t));
667
- }
668
- function t(n) {
669
- for (var u = D.length, o = 0; o < u; ) {
670
- var s = D[o];
671
- s.paused ? (D.splice(o, 1), u--) : (s.tick(n), o++);
672
- }
673
- e = o > 0 ? requestAnimationFrame(t) : void 0;
674
- }
675
- function a() {
676
- !x.suspendWhenDocumentHidden || (me() ? e = cancelAnimationFrame(e) : (D.forEach(
677
- function(n) {
678
- return n._onDocumentVisibility();
679
- }
680
- ), Be()));
681
- }
682
- return typeof document < "u" && document.addEventListener("visibilitychange", a), r;
683
- }();
684
- function me() {
685
- return !!document && document.hidden;
686
- }
687
- function x(e) {
688
- e === void 0 && (e = {});
689
- var r = 0, t = 0, a = 0, n, u = 0, o = null;
690
- function s(m) {
691
- var h = window.Promise && new Promise(function(I) {
692
- return o = I;
693
- });
694
- return m.finished = h, h;
695
- }
696
- var i = Dr(e);
697
- s(i);
698
- function d() {
699
- var m = i.direction;
700
- m !== "alternate" && (i.direction = m !== "normal" ? "normal" : "reverse"), i.reversed = !i.reversed, n.forEach(function(h) {
701
- return h.reversed = i.reversed;
702
- });
703
- }
704
- function f(m) {
705
- return i.reversed ? i.duration - m : m;
706
- }
707
- function l() {
708
- r = 0, t = f(i.currentTime) * (1 / x.speed);
709
- }
710
- function p(m, h) {
711
- h && h.seek(m - h.timelineOffset);
712
- }
713
- function y(m) {
714
- if (i.reversePlayback)
715
- for (var I = u; I--; )
716
- p(m, n[I]);
717
- else
718
- for (var h = 0; h < u; h++)
719
- p(m, n[h]);
720
- }
721
- function g(m) {
722
- for (var h = 0, I = i.animations, F = I.length; h < F; ) {
723
- var E = I[h], k = E.animatable, j = E.tweens, O = j.length - 1, T = j[O];
724
- O && (T = U(j, function(ze) {
725
- return m < ze.end;
726
- })[0] || T);
727
- for (var S = _(m - T.start - T.delay, 0, T.duration) / T.duration, z = isNaN(S) ? 1 : T.easing(S), w = T.to.strings, q = T.round, Z = [], Re = T.to.numbers.length, L = void 0, A = 0; A < Re; A++) {
728
- var B = void 0, oe = T.to.numbers[A], se = T.from.numbers[A] || 0;
729
- T.isPath ? B = yr(T.value, z * oe, T.isPathTargetInsideSVG) : B = se + z * (oe - se), q && (T.isColor && A > 2 || (B = Math.round(B * q) / q)), Z.push(B);
730
- }
731
- var fe = w.length;
732
- if (!fe)
733
- L = Z[0];
734
- else {
735
- L = w[0];
736
- for (var V = 0; V < fe; V++) {
737
- w[V];
738
- var ce = w[V + 1], Q = Z[V];
739
- isNaN(Q) || (ce ? L += Q + ce : L += Q + " ");
740
- }
741
- }
742
- Le[E.type](k.target, E.property, L, k.transforms), E.currentValue = L, h++;
743
- }
744
- }
745
- function v(m) {
746
- i[m] && !i.passThrough && i[m](i);
747
- }
748
- function M() {
749
- i.remaining && i.remaining !== !0 && i.remaining--;
750
- }
751
- function b(m) {
752
- var h = i.duration, I = i.delay, F = h - i.endDelay, E = f(m);
753
- i.progress = _(E / h * 100, 0, 100), i.reversePlayback = E < i.currentTime, n && y(E), !i.began && i.currentTime > 0 && (i.began = !0, v("begin")), !i.loopBegan && i.currentTime > 0 && (i.loopBegan = !0, v("loopBegin")), E <= I && i.currentTime !== 0 && g(0), (E >= F && i.currentTime !== h || !h) && g(h), E > I && E < F ? (i.changeBegan || (i.changeBegan = !0, i.changeCompleted = !1, v("changeBegin")), v("change"), g(E)) : i.changeBegan && (i.changeCompleted = !0, i.changeBegan = !1, v("changeComplete")), i.currentTime = _(E, 0, h), i.began && v("update"), m >= h && (t = 0, M(), i.remaining ? (r = a, v("loopComplete"), i.loopBegan = !1, i.direction === "alternate" && d()) : (i.paused = !0, i.completed || (i.completed = !0, v("loopComplete"), v("complete"), !i.passThrough && "Promise" in window && (o(), s(i)))));
754
- }
755
- return i.reset = function() {
756
- var m = i.direction;
757
- i.passThrough = !1, i.currentTime = 0, i.progress = 0, i.paused = !0, i.began = !1, i.loopBegan = !1, i.changeBegan = !1, i.completed = !1, i.changeCompleted = !1, i.reversePlayback = !1, i.reversed = m === "reverse", i.remaining = i.loop, n = i.children, u = n.length;
758
- for (var h = u; h--; )
759
- i.children[h].reset();
760
- (i.reversed && i.loop !== !0 || m === "alternate" && i.loop === 1) && i.remaining++, g(i.reversed ? i.duration : 0);
761
- }, i._onDocumentVisibility = l, i.set = function(m, h) {
762
- return je(m, h), i;
763
- }, i.tick = function(m) {
764
- a = m, r || (r = a), b((a + (t - r)) * x.speed);
765
- }, i.seek = function(m) {
766
- b(f(m));
767
- }, i.pause = function() {
768
- i.paused = !0, l();
769
- }, i.play = function() {
770
- !i.paused || (i.completed && i.reset(), i.paused = !1, D.push(i), l(), Be());
771
- }, i.reverse = function() {
772
- d(), i.completed = !i.reversed, l();
773
- }, i.restart = function() {
774
- i.reset(), i.play();
775
- }, i.remove = function(m) {
776
- var h = ue(m);
777
- Ve(h, i);
778
- }, i.reset(), i.autoplay && i.play(), i;
779
- }
780
- function pe(e, r) {
781
- for (var t = r.length; t--; )
782
- $(e, r[t].animatable.target) && r.splice(t, 1);
783
- }
784
- function Ve(e, r) {
785
- var t = r.animations, a = r.children;
786
- pe(e, t);
787
- for (var n = a.length; n--; ) {
788
- var u = a[n], o = u.animations;
789
- pe(e, o), !o.length && !u.children.length && a.splice(n, 1);
790
- }
791
- !t.length && !a.length && r.pause();
792
- }
793
- function _r(e) {
794
- for (var r = ue(e), t = D.length; t--; ) {
795
- var a = D[t];
796
- Ve(r, a);
797
- }
798
- }
799
- function Pr(e, r) {
800
- r === void 0 && (r = {});
801
- var t = r.direction || "normal", a = r.easing ? X(r.easing) : null, n = r.grid, u = r.axis, o = r.from || 0, s = o === "first", i = o === "center", d = o === "last", f = c.arr(e), l = parseFloat(f ? e[0] : e), p = f ? parseFloat(e[1]) : 0, y = C(f ? e[1] : e) || 0, g = r.start || 0 + (f ? l : 0), v = [], M = 0;
802
- return function(b, m, h) {
803
- if (s && (o = 0), i && (o = (h - 1) / 2), d && (o = h - 1), !v.length) {
804
- for (var I = 0; I < h; I++) {
805
- if (!n)
806
- v.push(Math.abs(o - I));
807
- else {
808
- var F = i ? (n[0] - 1) / 2 : o % n[0], E = i ? (n[1] - 1) / 2 : Math.floor(o / n[0]), k = I % n[0], j = Math.floor(I / n[0]), O = F - k, T = E - j, S = Math.sqrt(O * O + T * T);
809
- u === "x" && (S = -O), u === "y" && (S = -T), v.push(S);
810
- }
811
- M = Math.max.apply(Math, v);
812
- }
813
- a && (v = v.map(function(w) {
814
- return a(w / M) * M;
815
- })), t === "reverse" && (v = v.map(function(w) {
816
- return u ? w < 0 ? w * -1 : -w : Math.abs(M - w);
817
- }));
818
- }
819
- var z = f ? (p - l) / M : l;
820
- return g + z * (Math.round(v[m] * 100) / 100) + y;
821
- };
822
- }
823
- function Cr(e) {
824
- e === void 0 && (e = {});
825
- var r = x(e);
826
- return r.duration = 0, r.add = function(t, a) {
827
- var n = D.indexOf(r), u = r.children;
828
- n > -1 && D.splice(n, 1);
829
- function o(p) {
830
- p.passThrough = !0;
831
- }
832
- for (var s = 0; s < u.length; s++)
833
- o(u[s]);
834
- var i = W(t, K(Y, e));
835
- i.targets = i.targets || e.targets;
836
- var d = r.duration;
837
- i.autoplay = !1, i.direction = r.direction, i.timelineOffset = c.und(a) ? d : ae(a, d), o(r), r.seek(i.timelineOffset);
838
- var f = x(i);
839
- o(f), u.push(f);
840
- var l = Ae(u, e);
841
- return r.delay = l.delay, r.endDelay = l.endDelay, r.duration = l.duration, r.seek(0), r.reset(), r.autoplay && r.play(), r;
842
- }, r;
843
- }
844
- x.version = "3.2.1";
845
- x.speed = 1;
846
- x.suspendWhenDocumentHidden = !0;
847
- x.running = D;
848
- x.remove = _r;
849
- x.get = te;
850
- x.set = je;
851
- x.convertPx = re;
852
- x.path = pr;
853
- x.setDashoffset = hr;
854
- x.stagger = Pr;
855
- x.timeline = Cr;
856
- x.easing = X;
857
- x.penner = we;
858
- x.random = function(e, r) {
859
- return Math.floor(Math.random() * (r - e + 1)) + e;
860
- };
861
- function Fr(e) {
862
- We(e, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
863
- }
864
- function ye(e, r, t) {
865
- const a = e.slice();
866
- return a[10] = r[t], a[11] = r, a[12] = t, a;
867
- }
868
- function be(e) {
869
- let r, t = e[10] + "", a, n = e[12];
870
- const u = () => e[6](r, n), o = () => e[6](null, n);
871
- return {
872
- c() {
873
- r = Je("span"), a = Ke(t), Ge(r, "class", "text-char svelte-1b2n9wi");
874
- },
875
- m(s, i) {
876
- Me(s, r, i), Ye(r, a), u();
877
- },
878
- p(s, i) {
879
- e = s, i & 2 && t !== (t = e[10] + "") && Xe(a, t), n !== e[12] && (o(), n = e[12], u());
880
- },
881
- d(s) {
882
- s && xe(r), o();
883
- }
884
- };
885
- }
886
- function kr(e) {
887
- let r, t = e[1], a = [];
888
- for (let n = 0; n < t.length; n += 1)
889
- a[n] = be(ye(e, t, n));
890
- return {
891
- c() {
892
- for (let n = 0; n < a.length; n += 1)
893
- a[n].c();
894
- r = qe();
895
- },
896
- m(n, u) {
897
- for (let o = 0; o < a.length; o += 1)
898
- a[o].m(n, u);
899
- Me(n, r, u);
900
- },
901
- p(n, [u]) {
902
- if (u & 3) {
903
- t = n[1];
904
- let o;
905
- for (o = 0; o < t.length; o += 1) {
906
- const s = ye(n, t, o);
907
- a[o] ? a[o].p(s, u) : (a[o] = be(s), a[o].c(), a[o].m(r.parentNode, r));
908
- }
909
- for (; o < a.length; o += 1)
910
- a[o].d(1);
911
- a.length = t.length;
912
- }
913
- },
914
- i: le,
915
- o: le,
916
- d(n) {
917
- Ze(a, n), n && xe(r);
918
- }
919
- };
920
- }
921
- function Or(e, r, t) {
922
- let a, { inDelay: n = 0 } = r, { outDelay: u = 0 } = r, { content: o } = r, { unfolded: s } = r, i, d = [], f;
923
- function l(y) {
924
- clearTimeout(i), i = setTimeout(
925
- function() {
926
- !f || (y && f.reversed || !y && !f.reversed) && (f.reverse(), f.play());
927
- },
928
- y ? n : u
929
- );
930
- }
931
- Qe(function() {
932
- const y = (() => {
933
- const g = rr((v) => d[v].getBoundingClientRect().x, [Math.min(d.length - 1, 10), Math.min(d.length - 1, 30)]);
934
- if (g > 0)
935
- return g;
936
- })();
937
- f = x({
938
- targets: d.filter(er).slice(0, y),
939
- autoplay: !1,
940
- duration: 400,
941
- scale: [0.7, 1],
942
- rotate: [20, 0],
943
- opacity: [0, 1],
944
- translateX: [4, 0],
945
- translateY: [10, 0],
946
- delay: x.stagger(50),
947
- easing: "easeInOutCubic"
948
- }), s && f.seek(f.duration);
949
- });
950
- function p(y, g) {
951
- $e[y ? "unshift" : "push"](() => {
952
- d[g] = y, t(0, d);
953
- });
954
- }
955
- return e.$$set = (y) => {
956
- "inDelay" in y && t(2, n = y.inDelay), "outDelay" in y && t(3, u = y.outDelay), "content" in y && t(4, o = y.content), "unfolded" in y && t(5, s = y.unfolded);
957
- }, e.$$.update = () => {
958
- e.$$.dirty & 16 && t(1, a = (() => {
959
- const y = [], g = 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), v = `__EMOJI_SPLIT_${ve}__`, M = `__EMOJI_${ve}__`;
960
- return o.slice().replace(g, (b) => `${v}${M}${b}${v}`).split(v).forEach((b) => b.startsWith(M) ? y.push(b.slice(M.length)) : y.push(...b.split(""))), y.filter(Boolean);
961
- })()), e.$$.dirty & 32 && l(s);
962
- }, [d, a, n, u, o, s, p];
963
- }
964
- class Vr extends Ne {
965
- constructor(r) {
966
- super(), Ue(
967
- this,
968
- r,
969
- Or,
970
- kr,
971
- He,
972
- {
973
- inDelay: 2,
974
- outDelay: 3,
975
- content: 4,
976
- unfolded: 5
977
- },
978
- Fr
979
- );
980
- }
981
- }
982
- export {
983
- Vr as default
984
- };
1
+ "use strict";const o=require("svelte/internal"),I=require("animejs"),F=require("svelte"),N=require("../../../shared-utils/isNil.js");require("three");const T=require("../../utils/search.js"),p=require("../../utils/constants.js"),M=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},E=M(I);function R(e){o.append_styles(e,"svelte-1b2n9wi",".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function y(e,l,s){const t=e.slice();return t[10]=l[s],t[11]=l,t[12]=s,t}function j(e){let l,s=e[10]+"",t,n=e[12];const u=()=>e[6](l,n),i=()=>e[6](null,n);return{c(){l=o.element("span"),t=o.text(s),o.attr(l,"class","text-char svelte-1b2n9wi")},m(r,_){o.insert(r,l,_),o.append(l,t),u()},p(r,_){e=r,_&2&&s!==(s=e[10]+"")&&o.set_data(t,s),n!==e[12]&&(i(),n=e[12],u())},d(r){r&&o.detach(l),i()}}}function q(e){let l,s=e[1],t=[];for(let n=0;n<s.length;n+=1)t[n]=j(y(e,s,n));return{c(){for(let n=0;n<t.length;n+=1)t[n].c();l=o.empty()},m(n,u){for(let i=0;i<t.length;i+=1)t[i].m(n,u);o.insert(n,l,u)},p(n,[u]){if(u&3){s=n[1];let i;for(i=0;i<s.length;i+=1){const r=y(n,s,i);t[i]?t[i].p(r,u):(t[i]=j(r),t[i].c(),t[i].m(l.parentNode,l))}for(;i<t.length;i+=1)t[i].d(1);t.length=s.length}},i:o.noop,o:o.noop,d(n){o.destroy_each(t,n),n&&o.detach(l)}}}function x(e,l,s){let t,{inDelay:n=0}=l,{outDelay:u=0}=l,{content:i}=l,{unfolded:r}=l,_,f=[],c;function D(a){clearTimeout(_),_=setTimeout(function(){!c||(a&&c.reversed||!a&&!c.reversed)&&(c.reverse(),c.play())},a?n:u)}F.onMount(function(){const a=(()=>{const d=T.searchFirstValueSmallThanLastValue(h=>f[h].getBoundingClientRect().x,[Math.min(f.length-1,10),Math.min(f.length-1,30)]);if(d>0)return d})();c=E.default({targets:f.filter(N.notNil).slice(0,a),autoplay:!1,duration:400,scale:[.7,1],rotate:[20,0],opacity:[0,1],translateX:[4,0],translateY:[10,0],delay:E.default.stagger(50),easing:"easeInOutCubic"}),r&&c.seek(c.duration)});function b(a,d){o.binding_callbacks[a?"unshift":"push"](()=>{f[d]=a,s(0,f)})}return e.$$set=a=>{"inDelay"in a&&s(2,n=a.inDelay),"outDelay"in a&&s(3,u=a.outDelay),"content"in a&&s(4,i=a.content),"unfolded"in a&&s(5,r=a.unfolded)},e.$$.update=()=>{e.$$.dirty&16&&s(1,t=(()=>{const a=[],d=new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)","gu")),h=`__EMOJI_SPLIT_${p.RANDON_STRING}__`,m=`__EMOJI_${p.RANDON_STRING}__`;return i.slice().replace(d,g=>`${h}${m}${g}${h}`).split(h).forEach(g=>g.startsWith(m)?a.push(g.slice(m.length)):a.push(...g.split(""))),a.filter(Boolean)})()),e.$$.dirty&32&&D(r)},[f,t,n,u,i,r,b]}class L extends o.SvelteComponent{constructor(l){super(),o.init(this,l,x,q,o.safe_not_equal,{inDelay:2,outDelay:3,content:4,unfolded:5},R)}}exports.Text=L;