motionary 13.0.1 → 13.1.0

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 (958) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +2 -2
  3. package/README_ja.md +2 -2
  4. package/README_zh.md +2 -2
  5. package/dist/chunks/{anim-image-Bp-A3hNC.cjs → anim-image-BZChGN-Q.cjs} +2 -2
  6. package/dist/chunks/{anim-image-DeBvYIDu.js → anim-image-XoPuTpOe.js} +2 -2
  7. package/dist/chunks/{audio-BV1YemPb.js → audio-5FOqrAxu.js} +3 -3
  8. package/dist/chunks/{audio-CztPMZ1b.cjs → audio-DhgfWYZ_.cjs} +3 -3
  9. package/dist/chunks/{badge-wall-BBAW52s-.js → badge-wall-Bd2dP3J7.js} +2 -2
  10. package/dist/chunks/{badge-wall-COxq4-hJ.cjs → badge-wall-Q7x5HSe_.cjs} +2 -2
  11. package/dist/chunks/{base-CBMzOs1k.js → base-nzeN_ux7.js} +25 -4
  12. package/dist/chunks/{base-BG_mxssu.cjs → base-vu_KhBiv.cjs} +26 -3
  13. package/dist/chunks/{bg-generator-Bw0JAZG7.cjs → bg-generator-Dncd000D.cjs} +2 -2
  14. package/dist/chunks/{bg-generator-CFjnTyP9.js → bg-generator-Dxx3s2zQ.js} +2 -2
  15. package/dist/chunks/bind-B_CTL6Qn.js +1 -1
  16. package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
  17. package/dist/chunks/{builtins-Dk6hr4_C.cjs → builtins-A9ihuDwy.cjs} +3 -3
  18. package/dist/chunks/{builtins-DINhkShu.js → builtins-hBOeCPXL.js} +3 -3
  19. package/dist/chunks/{carousel-6UZLhjGL.cjs → carousel-Blko8aKV.cjs} +3 -3
  20. package/dist/chunks/{carousel-BQiUPJ6H.js → carousel-DkQKWBK3.js} +3 -3
  21. package/dist/chunks/{cart-drawer-DTBLUsXS.js → cart-drawer-CtX6EQRa.js} +2 -2
  22. package/dist/chunks/{cart-drawer-BhHW454c.cjs → cart-drawer-kyj9TlQC.cjs} +2 -2
  23. package/dist/chunks/{code-export-B_q_hPy8.js → code-export-B6b27ZiI.js} +10 -5
  24. package/dist/chunks/{code-export-CbKPNcnx.cjs → code-export-DOioRmM9.cjs} +10 -5
  25. package/dist/chunks/{color-picker-C17hLqcy.cjs → color-picker-B6YXJdur.cjs} +6 -5
  26. package/dist/chunks/{color-picker-DAAhbpHV.js → color-picker-DNTzNylo.js} +6 -5
  27. package/dist/chunks/{command-palette-B-_C5aOb.js → command-palette-C6XV1glX.js} +2 -2
  28. package/dist/chunks/{command-palette-CABkONwK.cjs → command-palette-DAQQ_bkg.cjs} +2 -2
  29. package/dist/chunks/{core-CBU40kLB.js → core-Bar7NFx7.js} +2 -2
  30. package/dist/chunks/core-BjcOCpJt.cjs +1 -1
  31. package/dist/chunks/{core-D1vhyt2F.js → core-DVGtPabi.js} +2 -2
  32. package/dist/chunks/{core-Bg5WaRYY.cjs → core-DfkeC4s-.cjs} +2 -2
  33. package/dist/chunks/core-Dj6iomdc.js +1 -1
  34. package/dist/chunks/{core-DMrg99HN.cjs → core-E18xla6s.cjs} +2 -2
  35. package/dist/chunks/{countdown-5kyFj3EA.cjs → countdown-Cvef0Kb1.cjs} +2 -2
  36. package/dist/chunks/{countdown-BWy4-V8Y.js → countdown-Dhp9G96N.js} +2 -2
  37. package/dist/chunks/{date-picker-V4SjW1_f.cjs → date-picker-C9iVZUP3.cjs} +4 -3
  38. package/dist/chunks/{date-picker-CAreI9C7.js → date-picker-M7n1jZw9.js} +4 -3
  39. package/dist/chunks/ease-HwYZnZat.cjs +1 -1
  40. package/dist/chunks/ease-XN8_0sXu.js +1 -1
  41. package/dist/chunks/{equalizer-B0fb-kFT.cjs → equalizer-6uhO-yfZ.cjs} +3 -3
  42. package/dist/chunks/{equalizer-BPS1yV-f.js → equalizer-CN6AkBtT.js} +3 -3
  43. package/dist/chunks/{festival-banner-DWCMdZM1.cjs → festival-banner-ByYX1Oy6.cjs} +2 -2
  44. package/dist/chunks/{festival-banner-CvGwychu.js → festival-banner-Dsu53in5.js} +2 -2
  45. package/dist/chunks/{field-D5hYtW6A.cjs → field-DcC_zJBH.cjs} +2 -2
  46. package/dist/chunks/{field-iruUHpdy.js → field-DeTgNf7K.js} +2 -2
  47. package/dist/chunks/{fx-aA8nn1zv.cjs → fx-lszndeFU.cjs} +2 -2
  48. package/dist/chunks/{fx-tuYvq2Dr.js → fx-qAVpKs8e.js} +2 -2
  49. package/dist/chunks/generative-2LhxG5BJ.js +1 -1
  50. package/dist/chunks/generative-BHIj-NU0.cjs +1 -1
  51. package/dist/chunks/{gl-scene-B9QYN-U7.cjs → gl-scene-DqD4O5Se.cjs} +6 -3
  52. package/dist/chunks/{gl-scene-BZnZV6e0.js → gl-scene-_Ure0n-p.js} +6 -3
  53. package/dist/chunks/{globe-t8Tz1KrC.js → globe-CzQ6nQ-o.js} +2 -2
  54. package/dist/chunks/{globe-BvTRCzBa.cjs → globe-Dms25CB5.cjs} +2 -2
  55. package/dist/chunks/{gpu-BFYGfLfN.cjs → gpu-BREsvJpT.cjs} +2 -2
  56. package/dist/chunks/{gpu-CxTWIssF.js → gpu-DdiOOXTP.js} +2 -2
  57. package/dist/chunks/{gpu-particles-GxP4a0P6.js → gpu-particles-CbBJ_tIZ.js} +2 -2
  58. package/dist/chunks/{gpu-particles-C4UZX5H4.cjs → gpu-particles-DrjYuSVR.cjs} +2 -2
  59. package/dist/chunks/index-tags-B-JBecYg.js +1 -1
  60. package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
  61. package/dist/chunks/key-click-BLm3BI8_.js +1 -1
  62. package/dist/chunks/key-click-v7I4K5Sr.cjs +1 -1
  63. package/dist/chunks/{keyframes-B6Ju70i1.js → keyframes-CKk8j3zA.js} +2 -2
  64. package/dist/chunks/{keyframes-DhUhKdn2.cjs → keyframes-CmruOcyD.cjs} +2 -2
  65. package/dist/chunks/{leaderboard-DqCbNSLV.js → leaderboard-D2Xb0lqP.js} +2 -2
  66. package/dist/chunks/{leaderboard-D3aXcUrH.cjs → leaderboard-wF-UnLbY.cjs} +2 -2
  67. package/dist/chunks/{location-card-D50y0yPP.cjs → location-card-BJsN6s34.cjs} +2 -2
  68. package/dist/chunks/{location-card-BFWhuOvM.js → location-card-GrQnXfwp.js} +2 -2
  69. package/dist/chunks/{lottie-icon-Cg99YqMK.js → lottie-icon-D3fdgfNU.js} +2 -2
  70. package/dist/chunks/{lottie-icon-CiL7TQeN.cjs → lottie-icon-DMkTeHCL.cjs} +2 -2
  71. package/dist/chunks/{lottie-player-CvGhfdfy.js → lottie-player-B5O7Q-pI.js} +3 -3
  72. package/dist/chunks/{lottie-player--_SwVeIS.cjs → lottie-player-hYzOu799.cjs} +3 -3
  73. package/dist/chunks/{lyrics-CmZKfI0D.cjs → lyrics-CBRdLBDw.cjs} +3 -3
  74. package/dist/chunks/{lyrics-BW8Ajj8K.js → lyrics-jTQwzX9m.js} +3 -3
  75. package/dist/chunks/{manifest-CKtkSVw4.cjs → manifest-Rxf1Mumb.cjs} +2 -2
  76. package/dist/chunks/{manifest-CQUlazDF.js → manifest-pVzW6oyg.js} +2 -2
  77. package/dist/chunks/{menu-BDG5gcER.cjs → menu-Bc2M8HMJ.cjs} +3 -3
  78. package/dist/chunks/{menu-2qfS--b1.js → menu-Ydg47TQx.js} +3 -3
  79. package/dist/chunks/{menu-toggle-934mf8c-.cjs → menu-toggle-B1YBlbdJ.cjs} +2 -2
  80. package/dist/chunks/{menu-toggle-DuXU6-hH.js → menu-toggle-C-_dv_TN.js} +2 -2
  81. package/dist/chunks/{nav-morph-Bc0SfHn9.js → nav-morph-DA-Q4xec.js} +3 -3
  82. package/dist/chunks/{nav-morph-DeVvWJm-.cjs → nav-morph-kKmG_ocG.cjs} +3 -3
  83. package/dist/chunks/{otp-CwhyPG7i.js → otp-CVUw78Mr.js} +2 -2
  84. package/dist/chunks/{otp-C0PpgU4T.cjs → otp-Cxz5uFb_.cjs} +2 -2
  85. package/dist/chunks/{pagination-4NCqUPrX.cjs → pagination-6RdXWwsW.cjs} +3 -3
  86. package/dist/chunks/{pagination-D7C1zFvF.js → pagination-CFAzm6M7.js} +3 -3
  87. package/dist/chunks/{physics-playground-C8Dp1VZo.cjs → physics-playground-BlCJK3AZ.cjs} +3 -3
  88. package/dist/chunks/{physics-playground-Dfb6XJrk.js → physics-playground-GegzqXvt.js} +3 -3
  89. package/dist/chunks/{player-BNOKDUw-.cjs → player-DIwSjUFR.cjs} +4 -4
  90. package/dist/chunks/{player-DtLIUxwJ.js → player-DqUZJ0d_.js} +4 -4
  91. package/dist/chunks/{presence-CwaD7bup.cjs → presence-CRfWmNWz.cjs} +2 -2
  92. package/dist/chunks/{presence-DRGK2bwc.js → presence-DfTxVIEf.js} +2 -2
  93. package/dist/chunks/presets-BYBVJVeP.js +1 -1
  94. package/dist/chunks/presets-CUHys3sK.cjs +1 -1
  95. package/dist/chunks/{prize-wheel-Cl48woXn.cjs → prize-wheel-MOZOrI-p.cjs} +2 -2
  96. package/dist/chunks/{prize-wheel-DtR0WMqK.js → prize-wheel-tgpOsdDA.js} +2 -2
  97. package/dist/chunks/{product-gallery-s0Mojkcm.js → product-gallery-BcGA35Ie.js} +2 -2
  98. package/dist/chunks/{product-gallery-C3q6aoVe.cjs → product-gallery-Bi6I6x1o.cjs} +2 -2
  99. package/dist/chunks/{progress-ring-Q1yoAUrU.js → progress-ring-6kTzB49S.js} +3 -3
  100. package/dist/chunks/{progress-ring-B8Ytgw_Q.cjs → progress-ring-BO9a3Q24.cjs} +3 -3
  101. package/dist/chunks/{prop-panel-BoejVIkT.js → prop-panel-DGm8VM4Z.js} +2 -2
  102. package/dist/chunks/{prop-panel-CLYoy2fY.cjs → prop-panel-_kA6mvB9.cjs} +2 -2
  103. package/dist/chunks/{radar-B0f-lKWX.cjs → radar-DT93Se3Y.cjs} +2 -2
  104. package/dist/chunks/{radar-BAfz6Y20.js → radar-sKiciNsS.js} +2 -2
  105. package/dist/chunks/{reactions-CAMzdddC.js → reactions-B4xogsDd.js} +2 -2
  106. package/dist/chunks/{reactions-Dfadd7FC.cjs → reactions-BASnlqck.cjs} +2 -2
  107. package/dist/chunks/{registry-D3N8O2Nc.cjs → registry-CeBi49cV.cjs} +2 -2
  108. package/dist/chunks/{registry-BgdHqx0s.js → registry-DG7d_uS7.js} +2 -2
  109. package/dist/chunks/{registry-LE5iyTqw.cjs → registry-EziiQiWO.cjs} +2 -2
  110. package/dist/chunks/{registry-4UDF3Dpk.js → registry-PxXkPc1Q.js} +2 -2
  111. package/dist/chunks/{retro-button-DPOGCNEB.js → retro-button-BxCv-ybi.js} +2 -2
  112. package/dist/chunks/{retro-button-oiGvtRdV.cjs → retro-button-DfuSdfWj.cjs} +2 -2
  113. package/dist/chunks/{rive-BiqV3D2R.js → rive-BHdln8XJ.js} +2 -2
  114. package/dist/chunks/{rive-D2POjYyT.cjs → rive-cR-Q9Quh.cjs} +2 -2
  115. package/dist/chunks/{runtime-link-6mNrr9AF.cjs → runtime-link-BmkNOjwB.cjs} +2 -2
  116. package/dist/chunks/{runtime-link-yprBSd9n.js → runtime-link-BqIicT9E.js} +2 -2
  117. package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
  118. package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
  119. package/dist/chunks/{scroll-scene-C34tV2yS.cjs → scroll-scene-DBAckZVP.cjs} +44 -9
  120. package/dist/chunks/{scroll-scene-DMfol8B-.js → scroll-scene-DLfQdq1I.js} +44 -9
  121. package/dist/chunks/{segmented-Bs0lNncg.cjs → segmented-CbZtwChW.cjs} +10 -3
  122. package/dist/chunks/{segmented-DnGy8Aw_.js → segmented-DHBqMcAF.js} +10 -3
  123. package/dist/chunks/{shader-backdrop-Df_2GJFz.cjs → shader-backdrop-DT1h5Zoc.cjs} +2 -2
  124. package/dist/chunks/{shader-backdrop-CQBsDITY.js → shader-backdrop-rrssjdMI.js} +2 -2
  125. package/dist/chunks/{shared-BxK1D7EZ.cjs → shared-Bf72wLyt.cjs} +12 -1
  126. package/dist/chunks/shared-CkKHWrtJ.js +1 -1
  127. package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
  128. package/dist/chunks/{shared-C8Pi6tuh.js → shared-o9CtwHmi.js} +12 -2
  129. package/dist/chunks/{sheet-6Vp7Yox1.cjs → sheet-NsPexafP.cjs} +5 -4
  130. package/dist/chunks/{sheet-CAItJBXn.js → sheet-YRq-IOIr.js} +5 -4
  131. package/dist/chunks/sign-DvZ1jHxE.js +1 -1
  132. package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
  133. package/dist/chunks/{skeleton-reveal-DH7sd6uV.cjs → skeleton-reveal-DfH6IiUG.cjs} +3 -3
  134. package/dist/chunks/{skeleton-reveal-CNr6jhZN.js → skeleton-reveal-yj2lioib.js} +3 -3
  135. package/dist/chunks/{sparkline-we35dC6w.cjs → sparkline-CCV_wZ9j.cjs} +2 -2
  136. package/dist/chunks/{sparkline-MRwlHeWm.js → sparkline-kl8sJ7cP.js} +2 -2
  137. package/dist/chunks/{spring-2YZXQmr7.js → spring-BX7EJst7.js} +2 -2
  138. package/dist/chunks/{spring-CibVO2Tk.cjs → spring-Q3Y-pHuP.cjs} +2 -2
  139. package/dist/chunks/stagger-B9sKPwQB.js +1 -1
  140. package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
  141. package/dist/chunks/{suggestion-chips-DIzEGoUE.cjs → suggestion-chips-D9i2FGGX.cjs} +2 -2
  142. package/dist/chunks/{suggestion-chips-DWViXX9m.js → suggestion-chips-fmrwI2Da.js} +2 -2
  143. package/dist/chunks/{switch-DSzo6hVT.cjs → switch-Db4uTUcj.cjs} +7 -2
  144. package/dist/chunks/{switch-iQNaYTQB.js → switch-DnwGGeZj.js} +7 -2
  145. package/dist/chunks/{tab-bar-DzSapgXH.js → tab-bar-CSx4fTC9.js} +3 -3
  146. package/dist/chunks/{tab-bar-DZtJO0Ge.cjs → tab-bar-DqzNvlDc.cjs} +3 -3
  147. package/dist/chunks/{ticker-D73Bn74b.cjs → ticker-D9DzTlll.cjs} +2 -2
  148. package/dist/chunks/{ticker-vHgAp_Uz.js → ticker-DIuv8agN.js} +2 -2
  149. package/dist/chunks/{tip-Cg4VdOV4.js → tip-C8T1SdOJ.js} +3 -3
  150. package/dist/chunks/{tip-CoXfHx5J.cjs → tip-CIh4O-DZ.cjs} +3 -3
  151. package/dist/chunks/{toast-stack-DZ5XkmO_.js → toast-stack-BIdkYWob.js} +4 -4
  152. package/dist/chunks/{toast-stack-B0YJ93dM.cjs → toast-stack-Cs42sjr6.cjs} +4 -4
  153. package/dist/chunks/{tween-CO_7OEFf.cjs → tween-CDewrfuy.cjs} +2 -2
  154. package/dist/chunks/{tween-BtX9Wj7P.js → tween-DbF_MjRO.js} +2 -2
  155. package/dist/chunks/{upload-progress-Bv5i3ebk.cjs → upload-progress-BhyFjwb6.cjs} +2 -2
  156. package/dist/chunks/{upload-progress-CZbedTLC.js → upload-progress-CXfoNUhm.js} +2 -2
  157. package/dist/chunks/{variants-B8gnRVha.js → variants-DY08myqK.js} +2 -2
  158. package/dist/chunks/{variants-D7gblATl.cjs → variants-Dk-FItCT.cjs} +2 -2
  159. package/dist/chunks/{voice-button-BEibeass.js → voice-button-DdKxtavP.js} +2 -2
  160. package/dist/chunks/{voice-button-DfDRNgmG.cjs → voice-button-DudPeVqK.cjs} +2 -2
  161. package/dist/chunks/{weather-card-DodZfOsv.cjs → weather-card-DfXFesfY.cjs} +2 -2
  162. package/dist/chunks/{weather-card-BO_6E5OV.js → weather-card-Ecgk-JQd.js} +2 -2
  163. package/dist/chunks/{worker-canvas-D2TU72M8.js → worker-canvas-BIuesniy.js} +2 -2
  164. package/dist/chunks/{worker-canvas-Bqsw_Fym.cjs → worker-canvas-CEbqBgK5.cjs} +2 -2
  165. package/dist/chunks/{xp-bar-CUHPolzJ.cjs → xp-bar-BC8UnCHG.cjs} +2 -2
  166. package/dist/chunks/{xp-bar-CsASrTkD.js → xp-bar-Cx-dMEMT.js} +2 -2
  167. package/dist/components/a11y.cjs +3 -4
  168. package/dist/components/a11y.js +3 -4
  169. package/dist/components/ai.cjs +1 -1
  170. package/dist/components/ai.js +1 -1
  171. package/dist/components/angular.cjs +9 -9
  172. package/dist/components/angular.js +9 -9
  173. package/dist/components/background.cjs +3 -3
  174. package/dist/components/background.js +3 -3
  175. package/dist/components/bridge.cjs +2 -2
  176. package/dist/components/bridge.js +2 -2
  177. package/dist/components/cards.cjs +3 -3
  178. package/dist/components/cards.js +3 -3
  179. package/dist/components/click.cjs +4 -4
  180. package/dist/components/click.js +4 -4
  181. package/dist/components/core.cjs +1 -1
  182. package/dist/components/core.js +1 -1
  183. package/dist/components/depth.cjs +4 -4
  184. package/dist/components/depth.js +4 -4
  185. package/dist/components/design.cjs +4 -4
  186. package/dist/components/design.js +4 -4
  187. package/dist/components/dotlottie.cjs +5 -5
  188. package/dist/components/dotlottie.js +5 -5
  189. package/dist/components/dsl.cjs +3 -3
  190. package/dist/components/dsl.js +3 -3
  191. package/dist/components/effects.cjs +8 -8
  192. package/dist/components/effects.js +10 -10
  193. package/dist/components/engine.cjs +2 -2
  194. package/dist/components/engine.js +3 -3
  195. package/dist/components/feedback.cjs +2 -2
  196. package/dist/components/feedback.js +2 -2
  197. package/dist/components/fx-3d.cjs +3 -3
  198. package/dist/components/fx-3d.js +3 -3
  199. package/dist/components/fx-ai.cjs +3 -3
  200. package/dist/components/fx-ai.js +3 -3
  201. package/dist/components/fx-chart.cjs +3 -3
  202. package/dist/components/fx-chart.js +3 -3
  203. package/dist/components/fx-cinema.cjs +3 -3
  204. package/dist/components/fx-cinema.js +3 -3
  205. package/dist/components/fx-cyber.cjs +3 -3
  206. package/dist/components/fx-cyber.js +3 -3
  207. package/dist/components/fx-festival.cjs +3 -3
  208. package/dist/components/fx-festival.js +3 -3
  209. package/dist/components/fx-focus.cjs +3 -3
  210. package/dist/components/fx-focus.js +3 -3
  211. package/dist/components/fx-form.cjs +3 -3
  212. package/dist/components/fx-form.js +3 -3
  213. package/dist/components/fx-game.cjs +3 -3
  214. package/dist/components/fx-game.js +3 -3
  215. package/dist/components/fx-genart.cjs +3 -3
  216. package/dist/components/fx-genart.js +3 -3
  217. package/dist/components/fx-geo.cjs +3 -3
  218. package/dist/components/fx-geo.js +3 -3
  219. package/dist/components/fx-gesture.cjs +3 -3
  220. package/dist/components/fx-gesture.js +3 -3
  221. package/dist/components/fx-gpu.cjs +4 -4
  222. package/dist/components/fx-gpu.js +4 -4
  223. package/dist/components/fx-light.cjs +3 -3
  224. package/dist/components/fx-light.js +3 -3
  225. package/dist/components/fx-lottie.cjs +3 -3
  226. package/dist/components/fx-lottie.js +3 -3
  227. package/dist/components/fx-morph.cjs +3 -3
  228. package/dist/components/fx-morph.js +3 -3
  229. package/dist/components/fx-music.cjs +4 -4
  230. package/dist/components/fx-music.js +4 -4
  231. package/dist/components/fx-organic.cjs +3 -3
  232. package/dist/components/fx-organic.js +3 -3
  233. package/dist/components/fx-paper.cjs +3 -3
  234. package/dist/components/fx-paper.js +3 -3
  235. package/dist/components/fx-perf.cjs +3 -3
  236. package/dist/components/fx-perf.js +3 -3
  237. package/dist/components/fx-physics.cjs +3 -3
  238. package/dist/components/fx-physics.js +3 -3
  239. package/dist/components/fx-retro.cjs +3 -3
  240. package/dist/components/fx-retro.js +3 -3
  241. package/dist/components/fx-safe.cjs +3 -3
  242. package/dist/components/fx-safe.js +3 -3
  243. package/dist/components/fx-shop.cjs +3 -3
  244. package/dist/components/fx-shop.js +3 -3
  245. package/dist/components/fx-social.cjs +3 -3
  246. package/dist/components/fx-social.js +3 -3
  247. package/dist/components/fx-spatial.cjs +3 -3
  248. package/dist/components/fx-spatial.js +3 -3
  249. package/dist/components/fx-surface.cjs +3 -3
  250. package/dist/components/fx-surface.js +3 -3
  251. package/dist/components/fx-text.cjs +3 -3
  252. package/dist/components/fx-text.js +3 -3
  253. package/dist/components/fx-transitions.cjs +4 -4
  254. package/dist/components/fx-transitions.js +4 -4
  255. package/dist/components/fx-video.cjs +3 -3
  256. package/dist/components/fx-video.js +3 -3
  257. package/dist/components/fx-weather.cjs +3 -3
  258. package/dist/components/fx-weather.js +3 -3
  259. package/dist/components/fx.cjs +6 -6
  260. package/dist/components/fx.js +7 -7
  261. package/dist/components/fx2.cjs +6 -6
  262. package/dist/components/fx2.js +7 -7
  263. package/dist/components/gesture.cjs +4 -4
  264. package/dist/components/gesture.js +5 -5
  265. package/dist/components/gl-model.cjs +5 -5
  266. package/dist/components/gl-model.js +5 -5
  267. package/dist/components/interaction.cjs +2 -2
  268. package/dist/components/interaction.js +2 -2
  269. package/dist/components/jsx.cjs +1 -1
  270. package/dist/components/jsx.js +1 -1
  271. package/dist/components/layout.cjs +2 -2
  272. package/dist/components/layout.js +2 -2
  273. package/dist/components/lazy.cjs +1 -1
  274. package/dist/components/lazy.js +1 -1
  275. package/dist/components/lite.cjs +46 -8
  276. package/dist/components/lite.js +46 -8
  277. package/dist/components/marketplace.cjs +4 -4
  278. package/dist/components/marketplace.js +5 -5
  279. package/dist/components/native.cjs +4 -4
  280. package/dist/components/native.js +4 -4
  281. package/dist/components/packs.cjs +2 -2
  282. package/dist/components/packs.js +2 -2
  283. package/dist/components/page.cjs +4 -4
  284. package/dist/components/page.js +5 -5
  285. package/dist/components/perf.cjs +2 -2
  286. package/dist/components/perf.js +3 -3
  287. package/dist/components/physics.cjs +3 -3
  288. package/dist/components/physics.js +4 -4
  289. package/dist/components/plugins.cjs +5 -5
  290. package/dist/components/plugins.js +5 -5
  291. package/dist/components/react.cjs +1 -1
  292. package/dist/components/react.js +1 -1
  293. package/dist/components/reveal.cjs +3 -3
  294. package/dist/components/reveal.js +3 -3
  295. package/dist/components/snap-carousel.cjs +4 -4
  296. package/dist/components/snap-carousel.js +4 -4
  297. package/dist/components/solid.cjs +9 -9
  298. package/dist/components/solid.js +9 -9
  299. package/dist/components/svelte.cjs +9 -9
  300. package/dist/components/svelte.js +9 -9
  301. package/dist/components/svg.cjs +2 -2
  302. package/dist/components/svg.js +2 -2
  303. package/dist/components/text.cjs +3 -3
  304. package/dist/components/text.js +3 -3
  305. package/dist/components/timeline.cjs +3 -3
  306. package/dist/components/timeline.js +4 -4
  307. package/dist/components/tokens.cjs +1 -1
  308. package/dist/components/tokens.js +1 -1
  309. package/dist/components/transitions.cjs +2 -2
  310. package/dist/components/transitions.js +2 -2
  311. package/dist/components/ui.cjs +21 -6
  312. package/dist/components/ui.js +22 -7
  313. package/dist/components/vue.cjs +9 -9
  314. package/dist/components/vue.js +9 -9
  315. package/dist/components/webgl.cjs +5 -2
  316. package/dist/components/webgl.js +5 -2
  317. package/dist/components/widgets.cjs +63 -63
  318. package/dist/components/widgets.js +112 -112
  319. package/dist/components.cjs +9 -9
  320. package/dist/components.js +11 -11
  321. package/dist/components.umd.js +3 -3
  322. package/dist/effects/achievement-unlock.cjs +3 -3
  323. package/dist/effects/achievement-unlock.js +3 -3
  324. package/dist/effects/aurora-veil.cjs +3 -3
  325. package/dist/effects/aurora-veil.js +3 -3
  326. package/dist/effects/badge-pop.cjs +3 -3
  327. package/dist/effects/badge-pop.js +3 -3
  328. package/dist/effects/bars-grow.cjs +3 -3
  329. package/dist/effects/bars-grow.js +3 -3
  330. package/dist/effects/beat-bounce.cjs +4 -4
  331. package/dist/effects/beat-bounce.js +4 -4
  332. package/dist/effects/blob-button.cjs +3 -3
  333. package/dist/effects/blob-button.js +3 -3
  334. package/dist/effects/bloom.cjs +3 -3
  335. package/dist/effects/bloom.js +3 -3
  336. package/dist/effects/breathe.cjs +3 -3
  337. package/dist/effects/breathe.js +3 -3
  338. package/dist/effects/brushed-metal.cjs +3 -3
  339. package/dist/effects/brushed-metal.js +3 -3
  340. package/dist/effects/camera-dolly.cjs +3 -3
  341. package/dist/effects/camera-dolly.js +3 -3
  342. package/dist/effects/card-flip-3d.cjs +3 -3
  343. package/dist/effects/card-flip-3d.js +3 -3
  344. package/dist/effects/chest-open.cjs +3 -3
  345. package/dist/effects/chest-open.js +3 -3
  346. package/dist/effects/cloth.cjs +3 -3
  347. package/dist/effects/cloth.js +3 -3
  348. package/dist/effects/coin-burst.cjs +3 -3
  349. package/dist/effects/coin-burst.js +3 -3
  350. package/dist/effects/color-pulse.cjs +3 -3
  351. package/dist/effects/color-pulse.js +3 -3
  352. package/dist/effects/crt-power.cjs +3 -3
  353. package/dist/effects/crt-power.js +3 -3
  354. package/dist/effects/crumple.cjs +3 -3
  355. package/dist/effects/crumple.js +3 -3
  356. package/dist/effects/data-decode.cjs +3 -3
  357. package/dist/effects/data-decode.js +3 -3
  358. package/dist/effects/day-cycle.cjs +3 -3
  359. package/dist/effects/day-cycle.js +3 -3
  360. package/dist/effects/depth-in.cjs +3 -3
  361. package/dist/effects/depth-in.js +3 -3
  362. package/dist/effects/depth-pop.cjs +3 -3
  363. package/dist/effects/depth-pop.js +3 -3
  364. package/dist/effects/depth-stack.cjs +3 -3
  365. package/dist/effects/depth-stack.js +3 -3
  366. package/dist/effects/dolly-in.cjs +3 -3
  367. package/dist/effects/dolly-in.js +3 -3
  368. package/dist/effects/dots-pop.cjs +3 -3
  369. package/dist/effects/dots-pop.js +3 -3
  370. package/dist/effects/field-shake.cjs +3 -3
  371. package/dist/effects/field-shake.js +3 -3
  372. package/dist/effects/field-success.cjs +3 -3
  373. package/dist/effects/field-success.js +3 -3
  374. package/dist/effects/film-burn.cjs +3 -3
  375. package/dist/effects/film-burn.js +3 -3
  376. package/dist/effects/fire.cjs +4 -4
  377. package/dist/effects/fire.js +4 -4
  378. package/dist/effects/fireflies.cjs +4 -4
  379. package/dist/effects/fireflies.js +4 -4
  380. package/dist/effects/firework-burst.cjs +3 -3
  381. package/dist/effects/firework-burst.js +3 -3
  382. package/dist/effects/flip-chars.cjs +3 -3
  383. package/dist/effects/flip-chars.js +3 -3
  384. package/dist/effects/fluid.cjs +4 -4
  385. package/dist/effects/fluid.js +4 -4
  386. package/dist/effects/fly-to-cart.cjs +3 -3
  387. package/dist/effects/fly-to-cart.js +3 -3
  388. package/dist/effects/focus-draw.cjs +3 -3
  389. package/dist/effects/focus-draw.js +3 -3
  390. package/dist/effects/focus-glow.cjs +3 -3
  391. package/dist/effects/focus-glow.js +3 -3
  392. package/dist/effects/fog.cjs +3 -3
  393. package/dist/effects/fog.js +3 -3
  394. package/dist/effects/font-breathe.cjs +3 -3
  395. package/dist/effects/font-breathe.js +3 -3
  396. package/dist/effects/form-cascade.cjs +3 -3
  397. package/dist/effects/form-cascade.js +3 -3
  398. package/dist/effects/gen-skeleton.cjs +3 -3
  399. package/dist/effects/gen-skeleton.js +3 -3
  400. package/dist/effects/glass-frost.cjs +3 -3
  401. package/dist/effects/glass-frost.js +3 -3
  402. package/dist/effects/glitch-text.cjs +3 -3
  403. package/dist/effects/glitch-text.js +3 -3
  404. package/dist/effects/globe-spin.cjs +3 -3
  405. package/dist/effects/globe-spin.js +3 -3
  406. package/dist/effects/god-rays.cjs +3 -3
  407. package/dist/effects/god-rays.js +3 -3
  408. package/dist/effects/gpu-lift.cjs +3 -3
  409. package/dist/effects/gpu-lift.js +3 -3
  410. package/dist/effects/grain-flicker.cjs +3 -3
  411. package/dist/effects/grain-flicker.js +3 -3
  412. package/dist/effects/halftone-in.cjs +3 -3
  413. package/dist/effects/halftone-in.js +3 -3
  414. package/dist/effects/highlight-sweep.cjs +3 -3
  415. package/dist/effects/highlight-sweep.js +3 -3
  416. package/dist/effects/hologram.cjs +3 -3
  417. package/dist/effects/hologram.js +3 -3
  418. package/dist/effects/hud-frame.cjs +3 -3
  419. package/dist/effects/hud-frame.js +3 -3
  420. package/dist/effects/icon-pop.cjs +3 -3
  421. package/dist/effects/icon-pop.js +3 -3
  422. package/dist/effects/icon-swap.cjs +3 -3
  423. package/dist/effects/icon-swap.js +3 -3
  424. package/dist/effects/idle-reveal.cjs +3 -3
  425. package/dist/effects/idle-reveal.js +3 -3
  426. package/dist/effects/ink.cjs +4 -4
  427. package/dist/effects/ink.js +4 -4
  428. package/dist/effects/jump-cut.cjs +3 -3
  429. package/dist/effects/jump-cut.js +3 -3
  430. package/dist/effects/kaleido.cjs +3 -3
  431. package/dist/effects/kaleido.js +3 -3
  432. package/dist/effects/label-float.cjs +3 -3
  433. package/dist/effects/label-float.js +3 -3
  434. package/dist/effects/lantern-rise.cjs +3 -3
  435. package/dist/effects/lantern-rise.js +3 -3
  436. package/dist/effects/leaves.cjs +4 -4
  437. package/dist/effects/leaves.js +4 -4
  438. package/dist/effects/letterbox.cjs +3 -3
  439. package/dist/effects/letterbox.js +3 -3
  440. package/dist/effects/level-up.cjs +3 -3
  441. package/dist/effects/level-up.js +3 -3
  442. package/dist/effects/light-follow.cjs +3 -3
  443. package/dist/effects/light-follow.js +3 -3
  444. package/dist/effects/lightning.cjs +3 -3
  445. package/dist/effects/lightning.js +3 -3
  446. package/dist/effects/line-draw.cjs +3 -3
  447. package/dist/effects/line-draw.js +3 -3
  448. package/dist/effects/liquid-text.cjs +3 -3
  449. package/dist/effects/liquid-text.js +3 -3
  450. package/dist/effects/liquid-wipe.cjs +3 -3
  451. package/dist/effects/liquid-wipe.js +3 -3
  452. package/dist/effects/lottie-play.cjs +3 -3
  453. package/dist/effects/lottie-play.js +3 -3
  454. package/dist/effects/magnet.cjs +3 -3
  455. package/dist/effects/magnet.js +3 -3
  456. package/dist/effects/marching-ants.cjs +3 -3
  457. package/dist/effects/marching-ants.js +3 -3
  458. package/dist/effects/marker-pulse.cjs +3 -3
  459. package/dist/effects/marker-pulse.js +3 -3
  460. package/dist/effects/mention-glow.cjs +3 -3
  461. package/dist/effects/mention-glow.js +3 -3
  462. package/dist/effects/mesh-drift.cjs +3 -3
  463. package/dist/effects/mesh-drift.js +3 -3
  464. package/dist/effects/message-in.cjs +3 -3
  465. package/dist/effects/message-in.js +3 -3
  466. package/dist/effects/mosaic-flip.cjs +3 -3
  467. package/dist/effects/mosaic-flip.js +3 -3
  468. package/dist/effects/neon-ignite.cjs +3 -3
  469. package/dist/effects/neon-ignite.js +3 -3
  470. package/dist/effects/neon-pulse.cjs +3 -3
  471. package/dist/effects/neon-pulse.js +3 -3
  472. package/dist/effects/neon-write.cjs +3 -3
  473. package/dist/effects/neon-write.js +3 -3
  474. package/dist/effects/neu-press.cjs +3 -3
  475. package/dist/effects/neu-press.js +3 -3
  476. package/dist/effects/noise-reveal.cjs +3 -3
  477. package/dist/effects/noise-reveal.js +3 -3
  478. package/dist/effects/number-roll.cjs +3 -3
  479. package/dist/effects/number-roll.js +3 -3
  480. package/dist/effects/orbit-camera.cjs +3 -3
  481. package/dist/effects/orbit-camera.js +3 -3
  482. package/dist/effects/orbit-in.cjs +3 -3
  483. package/dist/effects/orbit-in.js +3 -3
  484. package/dist/effects/origami.cjs +3 -3
  485. package/dist/effects/origami.js +3 -3
  486. package/dist/effects/page-curl.cjs +3 -3
  487. package/dist/effects/page-curl.js +3 -3
  488. package/dist/effects/pan-reveal.cjs +3 -3
  489. package/dist/effects/pan-reveal.js +3 -3
  490. package/dist/effects/paper-unfold.cjs +3 -3
  491. package/dist/effects/paper-unfold.js +3 -3
  492. package/dist/effects/particle-text.cjs +3 -3
  493. package/dist/effects/particle-text.js +3 -3
  494. package/dist/effects/path-morph.cjs +3 -3
  495. package/dist/effects/path-morph.js +3 -3
  496. package/dist/effects/pearlescent.cjs +3 -3
  497. package/dist/effects/pearlescent.js +3 -3
  498. package/dist/effects/pencil-sketch.cjs +3 -3
  499. package/dist/effects/pencil-sketch.js +3 -3
  500. package/dist/effects/pin-drop.cjs +3 -3
  501. package/dist/effects/pin-drop.js +3 -3
  502. package/dist/effects/pinball.cjs +3 -3
  503. package/dist/effects/pinball.js +3 -3
  504. package/dist/effects/pinch-hint.cjs +3 -3
  505. package/dist/effects/pinch-hint.js +3 -3
  506. package/dist/effects/pixelate-in.cjs +3 -3
  507. package/dist/effects/pixelate-in.js +3 -3
  508. package/dist/effects/pointer-shadow.cjs +3 -3
  509. package/dist/effects/pointer-shadow.js +3 -3
  510. package/dist/effects/portal-open.cjs +3 -3
  511. package/dist/effects/portal-open.js +3 -3
  512. package/dist/effects/price-flip.cjs +3 -3
  513. package/dist/effects/price-flip.js +3 -3
  514. package/dist/effects/product-spin.cjs +3 -3
  515. package/dist/effects/product-spin.js +3 -3
  516. package/dist/effects/rack-focus.cjs +3 -3
  517. package/dist/effects/rack-focus.js +3 -3
  518. package/dist/effects/radial-spectrum.cjs +4 -4
  519. package/dist/effects/radial-spectrum.js +4 -4
  520. package/dist/effects/rain-glass.cjs +3 -3
  521. package/dist/effects/rain-glass.js +3 -3
  522. package/dist/effects/reaction-burst.cjs +3 -3
  523. package/dist/effects/reaction-burst.js +3 -3
  524. package/dist/effects/read-receipt.cjs +3 -3
  525. package/dist/effects/read-receipt.js +3 -3
  526. package/dist/effects/refraction.cjs +3 -3
  527. package/dist/effects/refraction.js +3 -3
  528. package/dist/effects/ring-sweep.cjs +3 -3
  529. package/dist/effects/ring-sweep.js +3 -3
  530. package/dist/effects/ripple-dissolve.cjs +3 -3
  531. package/dist/effects/ripple-dissolve.js +3 -3
  532. package/dist/effects/rope.cjs +3 -3
  533. package/dist/effects/rope.js +3 -3
  534. package/dist/effects/route-draw.cjs +3 -3
  535. package/dist/effects/route-draw.js +3 -3
  536. package/dist/effects/safe-fade.cjs +3 -3
  537. package/dist/effects/safe-fade.js +3 -3
  538. package/dist/effects/sakura.cjs +4 -4
  539. package/dist/effects/sakura.js +4 -4
  540. package/dist/effects/sale-shine.cjs +3 -3
  541. package/dist/effects/sale-shine.js +3 -3
  542. package/dist/effects/sankey-flow.cjs +3 -3
  543. package/dist/effects/sankey-flow.js +3 -3
  544. package/dist/effects/scanline-sweep.cjs +3 -3
  545. package/dist/effects/scanline-sweep.js +3 -3
  546. package/dist/effects/shatter.cjs +3 -3
  547. package/dist/effects/shatter.js +3 -3
  548. package/dist/effects/smoke.cjs +4 -4
  549. package/dist/effects/smoke.js +4 -4
  550. package/dist/effects/snowfall.cjs +3 -3
  551. package/dist/effects/snowfall.js +3 -3
  552. package/dist/effects/soft-body.cjs +3 -3
  553. package/dist/effects/soft-body.js +3 -3
  554. package/dist/effects/sound-particles.cjs +4 -4
  555. package/dist/effects/sound-particles.js +4 -4
  556. package/dist/effects/spatial-float.cjs +3 -3
  557. package/dist/effects/spatial-float.js +3 -3
  558. package/dist/effects/spectrum-mirror.cjs +4 -4
  559. package/dist/effects/spectrum-mirror.js +4 -4
  560. package/dist/effects/splash.cjs +4 -4
  561. package/dist/effects/splash.js +4 -4
  562. package/dist/effects/spooky-float.cjs +3 -3
  563. package/dist/effects/spooky-float.js +3 -3
  564. package/dist/effects/stock-pulse.cjs +3 -3
  565. package/dist/effects/stock-pulse.js +3 -3
  566. package/dist/effects/stream-text.cjs +3 -3
  567. package/dist/effects/stream-text.js +3 -3
  568. package/dist/effects/stroke-draw.cjs +3 -3
  569. package/dist/effects/stroke-draw.js +3 -3
  570. package/dist/effects/success-check.cjs +3 -3
  571. package/dist/effects/success-check.js +3 -3
  572. package/dist/effects/swipe-hint.cjs +3 -3
  573. package/dist/effects/swipe-hint.js +3 -3
  574. package/dist/effects/text-trail.cjs +3 -3
  575. package/dist/effects/text-trail.js +3 -3
  576. package/dist/effects/thinking-glow.cjs +3 -3
  577. package/dist/effects/thinking-glow.js +3 -3
  578. package/dist/effects/tilt-wobble.cjs +3 -3
  579. package/dist/effects/tilt-wobble.js +3 -3
  580. package/dist/effects/typing-dots.cjs +3 -3
  581. package/dist/effects/typing-dots.js +3 -3
  582. package/dist/effects/underline-sweep.cjs +3 -3
  583. package/dist/effects/underline-sweep.js +3 -3
  584. package/dist/effects/vhs-glitch.cjs +3 -3
  585. package/dist/effects/vhs-glitch.js +3 -3
  586. package/dist/effects/vine-grow.cjs +3 -3
  587. package/dist/effects/vine-grow.js +3 -3
  588. package/dist/effects/vinyl-spin.cjs +4 -4
  589. package/dist/effects/vinyl-spin.js +4 -4
  590. package/dist/effects/voice-wave.cjs +3 -3
  591. package/dist/effects/voice-wave.js +3 -3
  592. package/dist/effects/water-drop.cjs +3 -3
  593. package/dist/effects/water-drop.js +3 -3
  594. package/dist/effects/watercolor.cjs +3 -3
  595. package/dist/effects/watercolor.js +3 -3
  596. package/dist/effects/waveform-scope.cjs +4 -4
  597. package/dist/effects/waveform-scope.js +4 -4
  598. package/dist/effects/xmas-snow.cjs +3 -3
  599. package/dist/effects/xmas-snow.js +3 -3
  600. package/dist/effects/xp-gain.cjs +3 -3
  601. package/dist/effects/xp-gain.js +3 -3
  602. package/dist/effects/y2k-shine.cjs +3 -3
  603. package/dist/effects/y2k-shine.js +3 -3
  604. package/dist/element.cjs +1 -1
  605. package/dist/element.js +1 -1
  606. package/dist/element.umd.js +1 -1
  607. package/dist/index.cjs +3 -3
  608. package/dist/index.js +3 -3
  609. package/dist/index.umd.js +1 -1
  610. package/dist/llms-full.txt +1 -1
  611. package/dist/llms.txt +1 -1
  612. package/dist/manifest.json +79 -30
  613. package/dist/presets/extended.cjs +1 -1
  614. package/dist/presets/extended.js +1 -1
  615. package/dist/presets-extended.umd.js +1 -1
  616. package/dist/react.cjs +1 -1
  617. package/dist/react.js +1 -1
  618. package/dist/runtime/drag-snap.cjs +2 -2
  619. package/dist/runtime/drag-snap.iife.js +1 -1
  620. package/dist/runtime/drag-snap.js +2 -2
  621. package/dist/runtime/format-apng.cjs +5 -5
  622. package/dist/runtime/format-apng.iife.js +1 -1
  623. package/dist/runtime/format-apng.js +5 -5
  624. package/dist/runtime/format-css.cjs +5 -5
  625. package/dist/runtime/format-css.iife.js +1 -1
  626. package/dist/runtime/format-css.js +5 -5
  627. package/dist/runtime/format-gif.cjs +5 -5
  628. package/dist/runtime/format-gif.iife.js +1 -1
  629. package/dist/runtime/format-gif.js +5 -5
  630. package/dist/runtime/format-gltf.cjs +2 -2
  631. package/dist/runtime/format-gltf.iife.js +1 -1
  632. package/dist/runtime/format-gltf.js +2 -2
  633. package/dist/runtime/format-motion.cjs +5 -5
  634. package/dist/runtime/format-motion.iife.js +1 -1
  635. package/dist/runtime/format-motion.js +5 -5
  636. package/dist/runtime/format-obj.cjs +2 -2
  637. package/dist/runtime/format-obj.iife.js +1 -1
  638. package/dist/runtime/format-obj.js +2 -2
  639. package/dist/runtime/format-scene.cjs +2 -2
  640. package/dist/runtime/format-scene.iife.js +1 -1
  641. package/dist/runtime/format-scene.js +2 -2
  642. package/dist/runtime/format-sprite.cjs +4 -4
  643. package/dist/runtime/format-sprite.iife.js +1 -1
  644. package/dist/runtime/format-sprite.js +4 -4
  645. package/dist/runtime/format-svg.cjs +4 -4
  646. package/dist/runtime/format-svg.iife.js +1 -1
  647. package/dist/runtime/format-svg.js +4 -4
  648. package/dist/runtime/format-webp.cjs +5 -5
  649. package/dist/runtime/format-webp.iife.js +1 -1
  650. package/dist/runtime/format-webp.js +5 -5
  651. package/dist/runtime/gl.cjs +2 -2
  652. package/dist/runtime/gl.iife.js +1 -1
  653. package/dist/runtime/gl.js +2 -2
  654. package/dist/runtime/gltf-anim.cjs +2 -2
  655. package/dist/runtime/gltf-anim.iife.js +1 -1
  656. package/dist/runtime/gltf-anim.js +2 -2
  657. package/dist/runtime/gltf-decoders.cjs +2 -2
  658. package/dist/runtime/gltf-decoders.iife.js +1 -1
  659. package/dist/runtime/gltf-decoders.js +2 -2
  660. package/dist/runtime/lottie-state.cjs +2 -2
  661. package/dist/runtime/lottie-state.iife.js +1 -1
  662. package/dist/runtime/lottie-state.js +2 -2
  663. package/dist/runtime/physics.cjs +2 -2
  664. package/dist/runtime/physics.iife.js +1 -1
  665. package/dist/runtime/physics.js +2 -2
  666. package/dist/runtime/scroll.cjs +9 -3
  667. package/dist/runtime/scroll.iife.js +2 -2
  668. package/dist/runtime/scroll.js +9 -3
  669. package/dist/runtime/smooth.cjs +2 -2
  670. package/dist/runtime/smooth.iife.js +1 -1
  671. package/dist/runtime/smooth.js +2 -2
  672. package/dist/runtime/text.cjs +2 -2
  673. package/dist/runtime/text.iife.js +1 -1
  674. package/dist/runtime/text.js +2 -2
  675. package/dist/runtime/vector.cjs +4 -4
  676. package/dist/runtime/vector.iife.js +1 -1
  677. package/dist/runtime/vector.js +4 -4
  678. package/dist/runtime.cjs +4 -4
  679. package/dist/runtime.d.cts +1 -1
  680. package/dist/runtime.d.ts +1 -1
  681. package/dist/runtime.iife.js +2 -2
  682. package/dist/runtime.js +6 -6
  683. package/dist/solid.cjs +1 -1
  684. package/dist/solid.js +1 -1
  685. package/dist/svelte.cjs +1 -1
  686. package/dist/svelte.js +1 -1
  687. package/dist/vue.cjs +1 -1
  688. package/dist/vue.js +1 -1
  689. package/dist/widgets/add-to-cart.cjs +8 -8
  690. package/dist/widgets/add-to-cart.js +8 -8
  691. package/dist/widgets/badge-wall.cjs +3 -3
  692. package/dist/widgets/badge-wall.js +3 -3
  693. package/dist/widgets/bar-chart.cjs +2 -2
  694. package/dist/widgets/bar-chart.js +2 -2
  695. package/dist/widgets/bg-generator.cjs +4 -4
  696. package/dist/widgets/bg-generator.js +4 -4
  697. package/dist/widgets/carousel.cjs +4 -4
  698. package/dist/widgets/carousel.js +4 -4
  699. package/dist/widgets/cart-drawer.cjs +3 -3
  700. package/dist/widgets/cart-drawer.js +3 -3
  701. package/dist/widgets/chapter-nav.cjs +3 -3
  702. package/dist/widgets/chapter-nav.js +3 -3
  703. package/dist/widgets/chat-composer.cjs +2 -2
  704. package/dist/widgets/chat-composer.js +2 -2
  705. package/dist/widgets/clock-control.cjs +2 -2
  706. package/dist/widgets/clock-control.js +2 -2
  707. package/dist/widgets/code-export.cjs +4 -3
  708. package/dist/widgets/code-export.js +4 -3
  709. package/dist/widgets/color-picker.cjs +4 -4
  710. package/dist/widgets/color-picker.js +4 -4
  711. package/dist/widgets/command-palette.cjs +3 -3
  712. package/dist/widgets/command-palette.js +3 -3
  713. package/dist/widgets/compare.cjs +11 -7
  714. package/dist/widgets/compare.js +11 -7
  715. package/dist/widgets/countdown.cjs +3 -3
  716. package/dist/widgets/countdown.js +3 -3
  717. package/dist/widgets/cube-gallery.cjs +3 -3
  718. package/dist/widgets/cube-gallery.js +3 -3
  719. package/dist/widgets/date-picker.cjs +4 -3
  720. package/dist/widgets/date-picker.js +4 -3
  721. package/dist/widgets/disclosure.cjs +3 -3
  722. package/dist/widgets/disclosure.js +3 -3
  723. package/dist/widgets/dock.cjs +3 -3
  724. package/dist/widgets/dock.js +3 -3
  725. package/dist/widgets/dotlottie.cjs +5 -5
  726. package/dist/widgets/dotlottie.js +5 -5
  727. package/dist/widgets/equalizer.cjs +4 -4
  728. package/dist/widgets/equalizer.js +4 -4
  729. package/dist/widgets/festival-banner.cjs +3 -3
  730. package/dist/widgets/festival-banner.js +3 -3
  731. package/dist/widgets/field.cjs +3 -3
  732. package/dist/widgets/field.js +3 -3
  733. package/dist/widgets/file-drop.cjs +2 -2
  734. package/dist/widgets/file-drop.js +2 -2
  735. package/dist/widgets/gauge.cjs +3 -3
  736. package/dist/widgets/gauge.js +3 -3
  737. package/dist/widgets/gen-art.cjs +3 -3
  738. package/dist/widgets/gen-art.js +3 -3
  739. package/dist/widgets/gesture-sticker.cjs +3 -3
  740. package/dist/widgets/gesture-sticker.js +3 -3
  741. package/dist/widgets/gl-model.cjs +5 -5
  742. package/dist/widgets/gl-model.js +5 -5
  743. package/dist/widgets/gl-scene.cjs +5 -5
  744. package/dist/widgets/gl-scene.js +5 -5
  745. package/dist/widgets/globe.cjs +3 -3
  746. package/dist/widgets/globe.js +3 -3
  747. package/dist/widgets/gpu-particles.cjs +3 -3
  748. package/dist/widgets/gpu-particles.js +3 -3
  749. package/dist/widgets/gyro-card.cjs +3 -3
  750. package/dist/widgets/gyro-card.js +3 -3
  751. package/dist/widgets/hero-video.cjs +3 -3
  752. package/dist/widgets/hero-video.js +3 -3
  753. package/dist/widgets/hud-panel.cjs +2 -2
  754. package/dist/widgets/hud-panel.js +2 -2
  755. package/dist/widgets/hydrate.cjs +2 -2
  756. package/dist/widgets/hydrate.js +2 -2
  757. package/dist/widgets/install-button.cjs +24 -4
  758. package/dist/widgets/install-button.js +24 -4
  759. package/dist/widgets/kanban.cjs +3 -3
  760. package/dist/widgets/kanban.js +3 -3
  761. package/dist/widgets/keyframe-editor.cjs +5 -5
  762. package/dist/widgets/keyframe-editor.js +5 -5
  763. package/dist/widgets/kpi.cjs +4 -3
  764. package/dist/widgets/kpi.js +4 -3
  765. package/dist/widgets/leaderboard.cjs +3 -3
  766. package/dist/widgets/leaderboard.js +3 -3
  767. package/dist/widgets/liquid-nav.cjs +2 -2
  768. package/dist/widgets/liquid-nav.js +2 -2
  769. package/dist/widgets/location-card.cjs +3 -3
  770. package/dist/widgets/location-card.js +3 -3
  771. package/dist/widgets/lottie-icon.cjs +4 -4
  772. package/dist/widgets/lottie-icon.js +4 -4
  773. package/dist/widgets/lottie-player.cjs +5 -5
  774. package/dist/widgets/lottie-player.js +5 -5
  775. package/dist/widgets/lottie.cjs +3 -3
  776. package/dist/widgets/lottie.js +3 -3
  777. package/dist/widgets/lyrics.cjs +4 -4
  778. package/dist/widgets/lyrics.js +4 -4
  779. package/dist/widgets/masonry-flow.cjs +3 -3
  780. package/dist/widgets/masonry-flow.js +3 -3
  781. package/dist/widgets/menu-toggle.cjs +3 -3
  782. package/dist/widgets/menu-toggle.js +3 -3
  783. package/dist/widgets/menu.cjs +4 -4
  784. package/dist/widgets/menu.js +4 -4
  785. package/dist/widgets/message-list.cjs +2 -2
  786. package/dist/widgets/message-list.js +2 -2
  787. package/dist/widgets/milestones.cjs +3 -3
  788. package/dist/widgets/milestones.js +3 -3
  789. package/dist/widgets/modal.cjs +4 -4
  790. package/dist/widgets/modal.js +4 -4
  791. package/dist/widgets/motion-inspector.cjs +4 -4
  792. package/dist/widgets/motion-inspector.js +4 -4
  793. package/dist/widgets/motion-prefs.cjs +3 -3
  794. package/dist/widgets/motion-prefs.js +3 -3
  795. package/dist/widgets/motion-prompt.cjs +2 -2
  796. package/dist/widgets/motion-prompt.js +2 -2
  797. package/dist/widgets/motion-spec.cjs +4 -4
  798. package/dist/widgets/motion-spec.js +4 -4
  799. package/dist/widgets/motion.cjs +3 -3
  800. package/dist/widgets/motion.js +3 -3
  801. package/dist/widgets/music-player.cjs +3 -3
  802. package/dist/widgets/music-player.js +3 -3
  803. package/dist/widgets/native-preview.cjs +28 -7
  804. package/dist/widgets/native-preview.js +28 -7
  805. package/dist/widgets/nav-morph.cjs +4 -4
  806. package/dist/widgets/nav-morph.js +4 -4
  807. package/dist/widgets/notification-bell.cjs +2 -2
  808. package/dist/widgets/notification-bell.js +2 -2
  809. package/dist/widgets/odometer.cjs +4 -4
  810. package/dist/widgets/odometer.js +4 -4
  811. package/dist/widgets/organic-card.cjs +3 -3
  812. package/dist/widgets/organic-card.js +3 -3
  813. package/dist/widgets/otp.cjs +3 -3
  814. package/dist/widgets/otp.js +3 -3
  815. package/dist/widgets/pagination.cjs +4 -4
  816. package/dist/widgets/pagination.js +4 -4
  817. package/dist/widgets/panorama.cjs +3 -3
  818. package/dist/widgets/panorama.js +3 -3
  819. package/dist/widgets/parallax-layers.cjs +2 -2
  820. package/dist/widgets/parallax-layers.js +2 -2
  821. package/dist/widgets/pause-all.cjs +2 -2
  822. package/dist/widgets/pause-all.js +2 -2
  823. package/dist/widgets/perf-monitor.cjs +3 -3
  824. package/dist/widgets/perf-monitor.js +3 -3
  825. package/dist/widgets/physics-playground.cjs +5 -5
  826. package/dist/widgets/physics-playground.js +5 -5
  827. package/dist/widgets/plugin-card.cjs +4 -4
  828. package/dist/widgets/plugin-card.js +4 -4
  829. package/dist/widgets/plugin-store.cjs +4 -4
  830. package/dist/widgets/plugin-store.js +4 -4
  831. package/dist/widgets/presence.cjs +3 -3
  832. package/dist/widgets/presence.js +3 -3
  833. package/dist/widgets/prize-wheel.cjs +3 -3
  834. package/dist/widgets/prize-wheel.js +3 -3
  835. package/dist/widgets/product-gallery.cjs +3 -3
  836. package/dist/widgets/product-gallery.js +3 -3
  837. package/dist/widgets/progress-ring.cjs +4 -4
  838. package/dist/widgets/progress-ring.js +4 -4
  839. package/dist/widgets/prop-panel.cjs +3 -3
  840. package/dist/widgets/prop-panel.js +3 -3
  841. package/dist/widgets/pull-cord.cjs +2 -2
  842. package/dist/widgets/pull-cord.js +2 -2
  843. package/dist/widgets/radar.cjs +3 -3
  844. package/dist/widgets/radar.js +3 -3
  845. package/dist/widgets/reactions.cjs +3 -3
  846. package/dist/widgets/reactions.js +3 -3
  847. package/dist/widgets/red-envelope.cjs +2 -2
  848. package/dist/widgets/red-envelope.js +2 -2
  849. package/dist/widgets/retro-button.cjs +3 -3
  850. package/dist/widgets/retro-button.js +3 -3
  851. package/dist/widgets/rive.cjs +3 -3
  852. package/dist/widgets/rive.js +3 -3
  853. package/dist/widgets/route-transition.cjs +2 -2
  854. package/dist/widgets/route-transition.js +2 -2
  855. package/dist/widgets/scene.cjs +3 -3
  856. package/dist/widgets/scene.js +3 -3
  857. package/dist/widgets/scroll-ring.cjs +3 -3
  858. package/dist/widgets/scroll-ring.js +3 -3
  859. package/dist/widgets/scroll-scene.cjs +5 -5
  860. package/dist/widgets/scroll-scene.js +5 -5
  861. package/dist/widgets/segmented.cjs +4 -4
  862. package/dist/widgets/segmented.js +4 -4
  863. package/dist/widgets/shader-backdrop.cjs +3 -3
  864. package/dist/widgets/shader-backdrop.js +3 -3
  865. package/dist/widgets/sheet.cjs +4 -4
  866. package/dist/widgets/sheet.js +4 -4
  867. package/dist/widgets/shortcut.cjs +3 -3
  868. package/dist/widgets/shortcut.js +3 -3
  869. package/dist/widgets/skeleton-reveal.cjs +4 -4
  870. package/dist/widgets/skeleton-reveal.js +4 -4
  871. package/dist/widgets/sketch-chart.cjs +3 -3
  872. package/dist/widgets/sketch-chart.js +3 -3
  873. package/dist/widgets/smooth-scroll.cjs +4 -4
  874. package/dist/widgets/smooth-scroll.js +4 -4
  875. package/dist/widgets/snap-carousel.cjs +4 -4
  876. package/dist/widgets/snap-carousel.js +4 -4
  877. package/dist/widgets/sparkline.cjs +3 -3
  878. package/dist/widgets/sparkline.js +3 -3
  879. package/dist/widgets/spatial-card.cjs +2 -2
  880. package/dist/widgets/spatial-card.js +2 -2
  881. package/dist/widgets/star-rating.cjs +3 -3
  882. package/dist/widgets/star-rating.js +3 -3
  883. package/dist/widgets/stepper.cjs +16 -4
  884. package/dist/widgets/stepper.js +16 -4
  885. package/dist/widgets/sticky-wall.cjs +3 -3
  886. package/dist/widgets/sticky-wall.js +3 -3
  887. package/dist/widgets/stories.cjs +3 -3
  888. package/dist/widgets/stories.js +3 -3
  889. package/dist/widgets/suggestion-chips.cjs +3 -3
  890. package/dist/widgets/suggestion-chips.js +3 -3
  891. package/dist/widgets/swipe-deck.cjs +3 -3
  892. package/dist/widgets/swipe-deck.js +3 -3
  893. package/dist/widgets/switch.cjs +3 -3
  894. package/dist/widgets/switch.js +3 -3
  895. package/dist/widgets/tab-bar.cjs +4 -4
  896. package/dist/widgets/tab-bar.js +4 -4
  897. package/dist/widgets/terminal.cjs +2 -2
  898. package/dist/widgets/terminal.js +2 -2
  899. package/dist/widgets/text-splitter.cjs +4 -4
  900. package/dist/widgets/text-splitter.js +4 -4
  901. package/dist/widgets/theme-surface.cjs +3 -3
  902. package/dist/widgets/theme-surface.js +3 -3
  903. package/dist/widgets/theme-switcher.cjs +4 -4
  904. package/dist/widgets/theme-switcher.js +4 -4
  905. package/dist/widgets/tip.cjs +4 -4
  906. package/dist/widgets/tip.js +4 -4
  907. package/dist/widgets/toast-stack.cjs +5 -5
  908. package/dist/widgets/toast-stack.js +5 -5
  909. package/dist/widgets/token-editor.cjs +2 -2
  910. package/dist/widgets/token-editor.js +2 -2
  911. package/dist/widgets/upload-progress.cjs +3 -3
  912. package/dist/widgets/upload-progress.js +3 -3
  913. package/dist/widgets/video-card.cjs +2 -2
  914. package/dist/widgets/video-card.js +2 -2
  915. package/dist/widgets/voice-button.cjs +3 -3
  916. package/dist/widgets/voice-button.js +3 -3
  917. package/dist/widgets/volume-knob.cjs +3 -3
  918. package/dist/widgets/volume-knob.js +3 -3
  919. package/dist/widgets/weather-card.cjs +3 -3
  920. package/dist/widgets/weather-card.js +3 -3
  921. package/dist/widgets/worker-canvas.cjs +4 -4
  922. package/dist/widgets/worker-canvas.js +4 -4
  923. package/dist/widgets/xp-bar.cjs +3 -3
  924. package/dist/widgets/xp-bar.js +3 -3
  925. package/dist/widgets.umd.js +2 -2
  926. package/docs/browser-matrix.md +108 -0
  927. package/docs/components/usa-add-to-cart.md +1 -1
  928. package/docs/components/usa-back-to-top.md +1 -1
  929. package/docs/components/usa-bottom-sheet.md +1 -1
  930. package/docs/components/usa-chapter-nav.md +1 -1
  931. package/docs/components/usa-code-export.md +1 -1
  932. package/docs/components/usa-color-picker.md +1 -1
  933. package/docs/components/usa-compare.md +1 -1
  934. package/docs/components/usa-date-picker.md +1 -1
  935. package/docs/components/usa-distort.md +1 -1
  936. package/docs/components/usa-drawer.md +1 -1
  937. package/docs/components/usa-gl-model.md +1 -1
  938. package/docs/components/usa-gl-scene.md +1 -1
  939. package/docs/components/usa-install-button.md +1 -1
  940. package/docs/components/usa-kpi.md +1 -1
  941. package/docs/components/usa-liquid.md +1 -1
  942. package/docs/components/usa-modal.md +1 -1
  943. package/docs/components/usa-motion-inspector.md +1 -1
  944. package/docs/components/usa-native-preview.md +1 -1
  945. package/docs/components/usa-navbar.md +1 -1
  946. package/docs/components/usa-post-fx.md +1 -1
  947. package/docs/components/usa-reveal.md +1 -1
  948. package/docs/components/usa-scroll-progress.md +1 -1
  949. package/docs/components/usa-scroll-ring.md +1 -1
  950. package/docs/components/usa-scroll-scene.md +1 -1
  951. package/docs/components/usa-segmented.md +1 -1
  952. package/docs/components/usa-sheet.md +1 -1
  953. package/docs/components/usa-stepper.md +1 -1
  954. package/docs/components/usa-switch.md +1 -1
  955. package/docs/components/usa-theme-switcher.md +1 -1
  956. package/docs/contract-report.json +3 -3
  957. package/docs/versions.md +1 -1
  958. package/package.json +4 -1
@@ -1,2 +1,2 @@
1
1
  !function(t,e,a){"use strict";function n(t,e,a,n){const i=new Uint8ClampedArray(t*e*4),r=[];for(const n of a){const a="previous"===n.dispose?i.slice():null,{width:s,height:o,data:h}=n.image;for(let a=0;a<o;a++){const r=n.y+a;if(!(r<0||r>=e))for(let e=0;e<s;e++){const o=n.x+e;if(o<0||o>=t)continue;const d=4*(a*s+e),f=4*(r*t+o),c=h[d+3];if("source"===n.blend||255===c)i[f]=h[d],i[f+1]=h[d+1],i[f+2]=h[d+2],i[f+3]=c;else if(c){const t=i[f+3]/255,e=c/255,a=e+t*(1-e);for(let n=0;n<3;n++)i[f+n]=(h[d+n]*e+i[f+n]*t*(1-e))/a;i[f+3]=255*a}}}if(r.push({delay:n.delay,image:{width:t,height:e,data:i.slice()}}),"background"===n.dispose)for(let a=Math.max(0,n.y);a<Math.min(e,n.y+o);a++)for(let e=Math.max(0,n.x);e<Math.min(t,n.x+s);e++)i.set([0,0,0,0],4*(a*t+e));else a&&i.set(a)}return r}const i=async(t,e)=>{const a=globalThis;if("function"!=typeof a.createImageBitmap)throw new Error("[motionary] no image decoder here (createImageBitmap is missing) — pass { decode } to the loader");const n=await a.createImageBitmap(new Blob([t],{type:e})),i=n.width,r=n.height,s=("function"==typeof a.OffscreenCanvas?new a.OffscreenCanvas(i,r):Object.assign(document.createElement("canvas"),{width:i,height:r})).getContext("2d",{willReadFrequently:!0});s.drawImage(n,0,0),n.close?.();const o=s.getImageData(0,0,i,r);return{width:o.width,height:o.height,data:o.data}};class r extends a.Playable{constructor(t,e,a){super({repeat:a.repeat??(0===e.plays?-1:Math.max(0,e.plays-1)),yoyo:a.yoyo}),this.canvas=t,this.anim=e,this.times=[0],this.cur=-1,this.timeScale=a.speed||1;for(const t of e.frames)this.times.push(this.times[this.times.length-1]+t.delay);t.width!==e.width&&(t.width=e.width),t.height!==e.height&&(t.height=e.height),this.ctx=t.getContext("2d"),this.datas=e.frames.map(()=>null),this.show(0),a.paused||this.play()}get duration(){return this.times[this.times.length-1]}get frame(){return this.cur}get frameCount(){return this.anim.frames.length}renderLocal(t){const e=Math.min(t,this.duration-.001);let a=0,n=this.anim.frames.length-1;for(;a<n;){const t=a+n+1>>1;this.times[t]<=e?a=t:n=t-1}this.show(a)}show(t){if(t===this.cur||!this.ctx)return;this.cur=t;const e=this.anim.frames[t];if(!e)return;let a=this.datas[t];a||"function"!=typeof ImageData||(a=this.datas[t]=new ImageData(new Uint8ClampedArray(e.image.data),e.image.width,e.image.height)),a&&this.ctx.putImageData(a,0,0)}}function s(t,e,a={}){if(!e.frames.length)throw new Error("[motionary] animatedImagePlayer: the animation has no frames");return new r(t,e,a)}const o=(t,e)=>t[e]|t[e+1]<<8|t[e+2]<<16,h=(t,e)=>(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0,d=(t,e)=>String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3]);function f(t,e=12,a=t.length){const n=[];let i=e;for(;i+8<=a;){const e=h(t,i+4);n.push({type:d(t,i),data:t.subarray(i+8,i+8+e)}),i+=8+e+(1&e)}return n}function c(t){const e=(t=>t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength))(t);if("RIFF"!==d(e,0)||"WEBP"!==d(e,8))throw new Error("[motionary] format-webp: not a WebP file");const a=f(e,12,Math.min(e.length,8+h(e,4))),n=a.find(t=>"VP8X"===t.type),i=a.find(t=>"ANIM"===t.type),r=a.filter(t=>"ANMF"===t.type);if(n&&i&&r.length){const t=o(n.data,4)+1,e=o(n.data,7)+1,a=i.data,s=r.map(t=>{const e=t.data,a=e[15];return{x:2*o(e,0),y:2*o(e,3),width:o(e,6)+1,height:o(e,9)+1,delay:(n=o(e,12),n<=10?100:n),blend:2&a?"source":"over",dispose:1&a?"background":"none",chunks:f(e,16,e.length).filter(t=>/^(ALPH|VP8 |VP8L)$/.test(t.type))};var n});return{width:t,height:e,animated:!0,plays:a[4]|a[5]<<8,background:[a[2],a[1],a[0],a[3]],frames:s}}const s=a.filter(t=>/^(ALPH|VP8 |VP8L)$/.test(t.type)),c=s.find(t=>"ALPH"!==t.type);if(!c)throw new Error("[motionary] format-webp: no image data");const[m,u]=n?[o(n.data,4)+1,o(n.data,7)+1]:function(t){const e=t.data;if("VP8L"===t.type){const t=h(e,1);return[1+(16383&t),1+(t>>14&16383)]}return[16383&(e[6]|e[7]<<8),16383&(e[8]|e[9]<<8)]}(c);return{width:m,height:u,animated:!1,plays:1,background:[0,0,0,0],frames:[{x:0,y:0,width:m,height:u,delay:100,blend:"source",dispose:"none",chunks:s}]}}function m(t){const e=t.reduce((t,e)=>t+8+e.data.length+(1&e.data.length),4),a=new Uint8Array(8+e),n=new DataView(a.buffer),i=(t,e)=>{for(let n=0;n<4;n++)a[e+n]=t.charCodeAt(n)};i("RIFF",0),n.setUint32(4,e,!0),i("WEBP",8);let r=12;for(const e of t)i(e.type,r),n.setUint32(r+4,e.data.length,!0),a.set(e.data,r+8),r+=8+e.data.length+(1&e.data.length);return a}function u(t){return t.frames.map(t=>{if(!t.chunks.some(t=>"ALPH"===t.type))return m(t.chunks.filter(t=>"ALPH"!==t.type));const e=new Uint8Array(10);e[0]=16;const a=t.width-1,n=t.height-1;return e.set([255&a,a>>8&255,a>>16&255,255&n,n>>8&255,n>>16&255],4),m([{type:"VP8X",data:e},...t.chunks])})}async function l(t,e={}){const a=c(t),r=e.decode||i,s=await Promise.all(u(a).map(t=>r(t,"image/webp"))),o=a.frames.map((t,e)=>({x:t.x,y:t.y,image:s[e],delay:t.delay,blend:t.blend,dispose:t.dispose}));return{format:"webp",width:a.width,height:a.height,plays:a.plays,frames:n(a.width,a.height,o),info:a}}async function y(t,e={}){return l(await async function(t){if("string"==typeof t){const e=await fetch(t);if(!e.ok)throw new Error(`[motionary] could not load ${t} (${e.status})`);return new Uint8Array(await e.arrayBuffer())}return t instanceof ArrayBuffer?new Uint8Array(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(await t.arrayBuffer())}(t),e)}const g={id:"format-webp",version:e.RUNTIME_VERSION,tier:"standard",requires:["core"],api:{parseWebp:c,webpFrameFiles:u,decodeWebp:l,loadWebp:y,animatedImagePlayer:s}};e.register(g),t.animatedImagePlayer=s,t.decodeWebp=l,t.formatWebp=g,t.loadWebp=y,t.parseWebp=c,t.riffChunks=f,t.webpFrameFiles=u}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/format-webp.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/format-webp.iife.js.map
@@ -1,7 +1,7 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-BgdHqx0s.js';
2
- import { a as animatedImagePlayer, b as browserDecode, c as composeFrames, d as bytesOf, u as u8, f as fixDelay } from '../chunks/anim-image-DeBvYIDu.js';
3
- import '../chunks/tween-BtX9Wj7P.js';
4
- import '../chunks/ticker-vHgAp_Uz.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-DG7d_uS7.js';
2
+ import { a as animatedImagePlayer, b as browserDecode, c as composeFrames, d as bytesOf, u as u8, f as fixDelay } from '../chunks/anim-image-XoPuTpOe.js';
3
+ import '../chunks/tween-DbF_MjRO.js';
4
+ import '../chunks/ticker-DIuv8agN.js';
5
5
  import '../chunks/ease-XN8_0sXu.js';
6
6
 
7
7
  /**
@@ -112,4 +112,4 @@ async function loadWebp(src, o = {}) {
112
112
  const formatWebp = { id: 'format-webp', version: RUNTIME_VERSION, tier: 'standard', requires: ['core'], api: { parseWebp, webpFrameFiles, decodeWebp, loadWebp, animatedImagePlayer } };
113
113
 
114
114
  export { animatedImagePlayer, decodeWebp, formatWebp, loadWebp, parseWebp, riffChunks, webpFrameFiles };
115
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/format-webp.js.map
115
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/format-webp.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-D3N8O2Nc.cjs');
3
+ var registry = require('../chunks/registry-CeBi49cV.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/gl` (10.5) — a small WebGL2 scene renderer written for
@@ -774,4 +774,4 @@ exports.standardMaterial = standardMaterial;
774
774
  exports.texture = texture;
775
775
  exports.torus = torus;
776
776
  exports.unlitMaterial = unlitMaterial;
777
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/gl.cjs.map
777
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/gl.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(e,t){"use strict";const r={identity:()=>new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),multiply(e,t,r=new Float32Array(16)){for(let n=0;n<4;n++)for(let o=0;o<4;o++)r[4*n+o]=e[o]*t[4*n]+e[4+o]*t[4*n+1]+e[8+o]*t[4*n+2]+e[12+o]*t[4*n+3];return r},perspective(e,t,r,n){const o=1/Math.tan(e/2),a=1/(r-n);return new Float32Array([o/t,0,0,0,0,o,0,0,0,0,(n+r)*a,-1,0,0,2*n*r*a,0])},lookAt(e,t,r=[0,1,0]){let s=n(e,t);s=i(s.some(e=>e)?s:[0,0,1]);let u=a(r,s);u.some(e=>Math.abs(e)>1e-9)||(u=a([0,0,1],s)),u=i(u);const c=a(s,u);return new Float32Array([u[0],c[0],s[0],0,u[1],c[1],s[1],0,u[2],c[2],s[2],0,-o(u,e),-o(c,e),-o(s,e),1])},compose(e,t,r){const[n,o,a,i]=t,s=n+n,u=o+o,c=a+a,l=n*s,h=n*u,m=n*c,f=o*u,d=o*c,p=a*c,v=i*s,_=i*u,g=i*c;return new Float32Array([(1-(f+p))*r[0],(h+g)*r[0],(m-_)*r[0],0,(h-g)*r[1],(1-(l+p))*r[1],(d+v)*r[1],0,(m+_)*r[2],(d-v)*r[2],(1-(l+f))*r[2],0,e[0],e[1],e[2],1])},invert(e){const t=new Float32Array(16),[r,n,o,a,i,s,u,c,l,h,m,f,d,p,v,_]=e,g=r*s-n*i,M=r*u-o*i,A=r*c-a*i,b=n*u-o*s,E=n*c-a*s,y=o*c-a*u,R=l*p-h*d,w=l*v-m*d,x=l*_-f*d,T=h*v-m*p,F=h*_-f*p,N=m*_-f*v;let I=g*N-M*F+A*T+b*x-E*w+y*R;return I?(I=1/I,t[0]=(s*N-u*F+c*T)*I,t[1]=(o*F-n*N-a*T)*I,t[2]=(p*y-v*E+_*b)*I,t[3]=(m*E-h*y-f*b)*I,t[4]=(u*x-i*N-c*w)*I,t[5]=(r*N-o*x+a*w)*I,t[6]=(v*A-d*y-_*M)*I,t[7]=(l*y-m*A+f*M)*I,t[8]=(i*F-s*x+c*R)*I,t[9]=(n*x-r*F-a*R)*I,t[10]=(d*E-p*A+_*g)*I,t[11]=(h*A-l*E-f*g)*I,t[12]=(s*w-i*T-u*R)*I,t[13]=(r*T-n*w+o*R)*I,t[14]=(p*M-d*b-v*g)*I,t[15]=(l*b-h*M+m*g)*I,t):null},normal(e){const t=r.invert(e)||r.identity();return new Float32Array([t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]])},transformPoint(e,t){const r=e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]||1;return[(e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12])/r,(e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13])/r,(e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14])/r]}},n=(e,t)=>[e[0]-t[0],e[1]-t[1],e[2]-t[2]],o=(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2],a=(e,t)=>[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]],i=e=>{const t=Math.hypot(e[0],e[1],e[2])||1;return[e[0]/t,e[1]/t,e[2]/t]};function s(e,t,r){const n=Math.cos(e/2),o=Math.sin(e/2),a=Math.cos(t/2),i=Math.sin(t/2),s=Math.cos(r/2),u=Math.sin(r/2);return[o*a*s+n*i*u,n*i*s-o*a*u,n*a*u+o*i*s,n*a*s-o*i*u]}function u(e,t){return[e[3]*t[0]+e[0]*t[3]+e[1]*t[2]-e[2]*t[1],e[3]*t[1]-e[0]*t[2]+e[1]*t[3]+e[2]*t[0],e[3]*t[2]+e[0]*t[1]-e[1]*t[0]+e[2]*t[3],e[3]*t[3]-e[0]*t[0]-e[1]*t[1]-e[2]*t[2]]}function c(e,t,r){let n=e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3];const o=n<0?t.map(e=>-e):t;if(n=Math.abs(n),n>.9995){const t=e.map((e,t)=>e+(o[t]-e)*r),n=Math.hypot(...t)||1;return t.map(e=>e/n)}const a=Math.acos(n),i=Math.sin(a),s=Math.sin((1-r)*a)/i,u=Math.sin(r*a)/i;return e.map((e,t)=>e*s+o[t]*u)}const l=(e,t,r,n)=>({positions:new Float32Array(e),normals:new Float32Array(t),uvs:new Float32Array(r),indices:e.length/3>65535?new Uint32Array(n):new Uint16Array(n)});function h(e=1,t=1,r=1){const n=[],o=[],a=[],i=[],s=[[[1,0,0],[0,0,-1],[0,1,0]],[[-1,0,0],[0,0,1],[0,1,0]],[[0,1,0],[1,0,0],[0,0,-1]],[[0,-1,0],[1,0,0],[0,0,1]],[[0,0,1],[1,0,0],[0,1,0]],[[0,0,-1],[-1,0,0],[0,1,0]]],u=[e/2,t/2,r/2];for(const[e,t,r]of s){const s=n.length/3;for(const[i,s]of[[-1,-1],[1,-1],[1,1],[-1,1]]){for(let o=0;o<3;o++)n.push((e[o]+t[o]*i+r[o]*s)*u[o]);o.push(...e),a.push((i+1)/2,(1-s)/2)}i.push(s,s+1,s+2,s,s+2,s+3)}return l(n,o,a,i)}function m(e=1,t=1,r=1,n=1){const o=[],a=[],i=[],s=[];for(let s=0;s<=n;s++)for(let u=0;u<=r;u++)o.push((u/r-.5)*e,(s/n-.5)*t,0),a.push(0,0,1),i.push(u/r,1-s/n);for(let e=0;e<n;e++)for(let t=0;t<r;t++){const n=e*(r+1)+t,o=n+1,a=n+r+1,i=a+1;s.push(n,o,i,n,i,a)}return l(o,a,i,s)}function f(e=.5,t=32,r=16){const n=[],o=[],a=[],i=[];for(let i=0;i<=r;i++){const s=i/r,u=s*Math.PI;for(let r=0;r<=t;r++){const i=r/t,c=i*Math.PI*2,l=-Math.cos(c)*Math.sin(u),h=Math.cos(u),m=Math.sin(c)*Math.sin(u);n.push(l*e,h*e,m*e),o.push(l,h,m),a.push(i,s)}}for(let e=0;e<r;e++)for(let n=0;n<t;n++){const o=e*(t+1)+n,a=o+t+1;e&&i.push(o,a,o+1),e<r-1&&i.push(o+1,a,a+1)}return l(n,o,a,i)}function d(e=.5,t=.18,r=48,n=16){const o=[],a=[],s=[],u=[];for(let u=0;u<=n;u++)for(let c=0;c<=r;c++){const l=c/r*Math.PI*2,h=u/n*Math.PI*2,m=e*Math.cos(l),f=e*Math.sin(l),d=(e+t*Math.cos(h))*Math.cos(l),p=(e+t*Math.cos(h))*Math.sin(l),v=t*Math.sin(h);o.push(d,p,v);const _=i([d-m,p-f,v]);a.push(..._),s.push(c/r,u/n)}for(let e=1;e<=n;e++)for(let t=1;t<=r;t++){const n=(r+1)*e+t-1,o=(r+1)*(e-1)+t-1,a=(r+1)*(e-1)+t,i=(r+1)*e+t;u.push(n,o,i,o,a,i)}return l(o,a,s,u)}function p(e){const t=e.positions,r=e.indices,o=r?r.length:t.length/3,s=new Float32Array(3*o),u=new Float32Array(3*o),c=e.uvs?new Float32Array(2*o):void 0;for(let l=0;l<o;l+=3){const o=[0,1,2].map(e=>r?r[l+e]:l+e),h=[t[3*o[0]],t[3*o[0]+1],t[3*o[0]+2]],m=[t[3*o[1]],t[3*o[1]+1],t[3*o[1]+2]],f=[t[3*o[2]],t[3*o[2]+1],t[3*o[2]+2]],d=i(a(n(m,h),n(f,h)));o.forEach((r,n)=>{s.set(t.subarray(3*r,3*r+3),3*(l+n)),u.set(d,3*(l+n)),c&&e.uvs&&c.set(e.uvs.subarray(2*r,2*r+2),2*(l+n))})}return{positions:s,normals:u,uvs:c,mode:e.mode}}function v(e={}){return{type:"standard",color:[1,1,1,1],metallic:0,roughness:.6,emissive:[0,0,0],...e}}function _(e={}){return{...v(e),type:"unlit"}}function g(e,t={},r={}){return{...v(r),type:"shader",fragment:e,uniforms:t}}function M(e,t=1){if(Array.isArray(e))return[e[0],e[1],e[2],e[3]??t];const r=/^#([0-9a-f]{3,8})$/i.exec(e.trim());if(r){let e=r[1];e.length<=4&&(e=e.split("").map(e=>e+e).join(""));const n=parseInt(e.slice(0,6),16);return[(n>>16&255)/255,(n>>8&255)/255,(255&n)/255,8===e.length?parseInt(e.slice(6),16)/255:t]}const n=/rgba?\(([^)]+)\)/.exec(e);if(n){const e=n[1].split(/[\s,/]+/).filter(Boolean).map(Number);return[e[0]/255,e[1]/255,e[2]/255,e[3]??t]}return[1,1,1,t]}function A(e,t={}){return{source:e,srgb:!0,repeat:!0,flipY:!1,video:"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement,needsUpdate:!0,...t}}class b{constructor(e="",t=null){this.name="",this.position=[0,0,0],this.rotation=[0,0,0,1],this.scale=[1,1,1],this.matrix=null,this.children=[],this.parent=null,this.mesh=null,this.visible=!0,this.extras={},this.world=r.identity(),this.name=e,this.mesh=t}add(...e){for(const t of e)t.parent?.remove(t),t.parent=this,this.children.push(t);return this}remove(e){const t=this.children.indexOf(e);t>=0&&this.children.splice(t,1),e.parent=null}setEuler(e,t,r){return this.rotation=s(e,t,r),this}local(){return this.matrix||r.compose(this.position,this.rotation,this.scale)}updateWorld(e){const t=e?r.multiply(e,this.local()):this.local();this.world.set(t);for(const e of this.children)e.updateWorld(this.world)}traverse(e){e(this);for(const t of this.children)t.traverse(e)}find(e){let t=null;return this.traverse(r=>{t||r.name!==e||(t=r)}),t}}class E extends b{constructor(e={}){super("camera"),this.fov=45*Math.PI/180,this.near=.05,this.far=500,this.aspect=1,this.target=[0,0,0],this.up=[0,1,0],e.fov&&(this.fov=e.fov*Math.PI/180),e.near&&(this.near=e.near),e.far&&(this.far=e.far),e.position&&(this.position=[...e.position]),e.target&&(this.target=[...e.target])}view(){return r.lookAt(this.position,this.target,this.up)}projection(){return r.perspective(this.fov,this.aspect,this.near,this.far)}}class y{constructor(){this.root=new b("scene"),this.ambient=[.35,.35,.4],this.lights=[{type:"directional",vector:[-.4,-1,-.6],color:[1,1,1],intensity:2.2}],this.background=null,this.exposure=1}add(...e){return this.root.add(...e),this}}function R(e){e.updateWorld(e.parent?e.parent.world:void 0);const t=[1/0,1/0,1/0],n=[-1/0,-1/0,-1/0];if(e.traverse(e=>{const o=e.mesh?Array.isArray(e.mesh)?e.mesh:[e.mesh]:[];for(const a of o){const o=a.geometry.positions;for(let a=0;a<o.length;a+=3){const i=r.transformPoint(e.world,[o[a],o[a+1],o[a+2]]);for(let e=0;e<3;e++)i[e]<t[e]&&(t[e]=i[e]),i[e]>n[e]&&(n[e]=i[e])}}}),t[0]===1/0)return{min:[0,0,0],max:[0,0,0],center:[0,0,0],radius:0};const o=[(t[0]+n[0])/2,(t[1]+n[1])/2,(t[2]+n[2])/2];return{min:t,max:n,center:o,radius:Math.hypot(n[0]-o[0],n[1]-o[1],n[2]-o[2])}}function w(e,t,r=1.25){const o=R(t),a=(o.radius||1)*r/Math.sin(e.fov/2),s=i(n(e.position,e.target).some(e=>e)?n(e.position,e.target):[.6,.4,1]);e.target=o.center,e.position=[o.center[0]+s[0]*a,o.center[1]+s[1]*a,o.center[2]+s[2]*a],e.near=Math.max(.01,a/100),e.far=10*a+2*o.radius}function x(e,t){if(!e.duration||!isFinite(e.duration))return;e.pause();const r=Math.min(e.duration-.001,Math.max(0,t*e.duration));"fastSeek"in e&&Math.abs(e.currentTime-r)>1?e.fastSeek(r):e.currentTime=r}const T="#version 300 es\nprecision highp float;in vec3 v_pos,v_nrm;in vec2 v_uv;out vec4 o;\nuniform vec4 u_color;uniform vec3 u_emissive,u_camPos,u_ambient;uniform float u_metal,u_rough,u_exposure,u_time;uniform vec2 u_res;\nuniform sampler2D u_map;uniform int u_hasMap,u_nl,u_unlit;uniform vec4 u_lvec[4];uniform vec3 u_lcol[4];\nvec3 lin(vec3 c){return pow(c,vec3(2.2));}vec3 srgb(vec3 c){return pow(c,vec3(1.0/2.2));}\n",F=`${T}void main(){vec4 base=vec4(lin(u_color.rgb),u_color.a);if(u_hasMap==1){vec4 t=texture(u_map,v_uv);base*=vec4(lin(t.rgb),t.a);}\nif(u_unlit==1){o=vec4(srgb(base.rgb),base.a);return;}\nvec3 N=normalize(v_nrm);if(!gl_FrontFacing)N=-N;vec3 V=normalize(u_camPos-v_pos);float r=clamp(u_rough,0.04,1.0),m=clamp(u_metal,0.0,1.0);\nvec3 F0=mix(vec3(0.04),base.rgb,m);vec3 c=u_ambient*base.rgb*(1.0-0.6*m)+u_ambient*F0*0.4;\nfor(int i=0;i<4;i++){if(i>=u_nl)break;vec3 L;float at=1.0;if(u_lvec[i].w>0.5){vec3 d=u_lvec[i].xyz-v_pos;float l=length(d);L=d/l;at=1.0/(1.0+0.09*l*l);}else L=normalize(-u_lvec[i].xyz);\nvec3 H=normalize(L+V);float NL=max(dot(N,L),0.0),NH=max(dot(N,H),0.0),NV=max(dot(N,V),1e-3),a=r*r,a2=a*a,dd=NH*NH*(a2-1.0)+1.0,D=a2/(3.14159*dd*dd),k=(r+1.0)*(r+1.0)/8.0;\nfloat G=NL/(NL*(1.0-k)+k)*NV/(NV*(1.0-k)+k);vec3 F=F0+(1.0-F0)*pow(1.0-max(dot(H,V),0.0),5.0);vec3 S=D*G*F/(4.0*NL*NV+1e-3);\nc+=((1.0-F)*(1.0-m)*base.rgb/3.14159+S)*u_lcol[i]*NL*at;}\nc=(c+u_emissive)*u_exposure;c=c/(c+1.0);o=vec4(srgb(c),base.a);}`;function N(e,t={}){const n=e.getContext("webgl2",{alpha:t.alpha??!0,antialias:t.antialias??!0,premultipliedAlpha:!1,preserveDrawingBuffer:!!t.preserveDrawingBuffer});if(!n)throw new Error("[motionary] runtime/gl: WebGL2 is not available in this browser / context");const o=new Map,a=[];let i=0;const s=(e,t)=>{let r=o.get(e);if(r)return r;const i=(e,t)=>{const r=n.createShader(e);if(n.shaderSource(r,t),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))throw new Error("[motionary] runtime/gl shader: "+n.getShaderInfoLog(r));return r},s=n.createProgram();if(n.attachShader(s,i(n.VERTEX_SHADER,"#version 300 es\nlayout(location=0) in vec3 a_pos;layout(location=1) in vec3 a_nrm;layout(location=2) in vec2 a_uv;\nuniform mat4 u_model,u_view,u_proj;uniform mat3 u_nmat;out vec3 v_pos,v_nrm;out vec2 v_uv;\nvoid main(){vec4 w=u_model*vec4(a_pos,1.0);v_pos=w.xyz;v_nrm=normalize(u_nmat*a_nrm);v_uv=a_uv;gl_Position=u_proj*u_view*w;gl_PointSize=2.0;}")),n.attachShader(s,i(n.FRAGMENT_SHADER,t)),n.linkProgram(s),!n.getProgramParameter(s,n.LINK_STATUS))throw new Error("[motionary] runtime/gl link: "+n.getProgramInfoLog(s));return r={p:s,u:new Map},o.set(e,r),a.push({del:()=>n.deleteProgram(s)}),r},u=(e,t)=>(e.u.has(t)||e.u.set(t,n.getUniformLocation(e.p,t)),e.u.get(t)),c=e=>{const t=e._gpu;if(t)return t.v!==e.version&&(t.v=e.version,[e.positions,e.normals].forEach((e,r)=>{e&&t.b[r]&&(n.bindBuffer(n.ARRAY_BUFFER,t.b[r]),n.bufferData(n.ARRAY_BUFFER,e,n.DYNAMIC_DRAW))})),t;const r=[],o=n.createVertexArray();n.bindVertexArray(o);const i=(e,t,o,i)=>{if(!t)return n.disableVertexAttribArray(e),void(3===o?n.vertexAttrib3f(e,i[0],i[1],i[2]):n.vertexAttrib2f(e,i[0],i[1]));const s=n.createBuffer();a.push({del:()=>n.deleteBuffer(s)}),r[e]=s,n.bindBuffer(n.ARRAY_BUFFER,s),n.bufferData(n.ARRAY_BUFFER,t,n.STATIC_DRAW),n.enableVertexAttribArray(e),n.vertexAttribPointer(e,o,n.FLOAT,!1,0,0)};i(0,e.positions,3,[0,0,0]),i(1,e.normals,3,[0,0,1]),i(2,e.uvs,2,[0,0]);let s=e.positions.length/3,u=0;if(e.indices){const t=n.createBuffer();a.push({del:()=>n.deleteBuffer(t)}),n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.indices,n.STATIC_DRAW),s=e.indices.length,u=e.indices instanceof Uint32Array?n.UNSIGNED_INT:n.UNSIGNED_SHORT}return n.bindVertexArray(null),a.push({del:()=>n.deleteVertexArray(o)}),e._gpu={vao:o,count:s,type:u,indexed:!!e.indices,v:e.version,b:r}},l=(e,t)=>{let r=e._gpu;if(n.activeTexture(n.TEXTURE0+t),!r&&(r=n.createTexture(),e._gpu=r,a.push({del:()=>n.deleteTexture(r)}),e.needsUpdate=!0,e.video)){const t=e.source,r=()=>{e.needsUpdate=!0,t.requestVideoFrameCallback?.(r)};t.requestVideoFrameCallback&&t.requestVideoFrameCallback(r)}n.bindTexture(n.TEXTURE_2D,r);const o=e.video?e.source:null,i=!o||o.readyState>=2;if((e.needsUpdate||o&&!o.requestVideoFrameCallback&&!o.paused)&&i){n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!!e.flipY);const t=e.source;!t||!t.data||t instanceof ImageData?n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t):n.texImage2D(n.TEXTURE_2D,0,n.RGBA,t.width,t.height,0,n.RGBA,n.UNSIGNED_BYTE,new Uint8Array(t.data.buffer,t.data.byteOffset,t.data.byteLength));const r=e=>!(e&e-1),a=t.videoWidth||t.naturalWidth||t.width,i=t.videoHeight||t.naturalHeight||t.height,s=!o&&r(a)&&r(i);s&&n.generateMipmap(n.TEXTURE_2D),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,s?n.LINEAR_MIPMAP_LINEAR:n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR);const u=e.repeat&&r(a)&&r(i)?n.REPEAT:n.CLAMP_TO_EDGE;n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,u),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,u),e.needsUpdate=!1}};return{gl:n,canvas:e,get drawCalls(){return i},resize(r,n){const o=e,a=Math.min(t.maxDpr??2,"number"==typeof devicePixelRatio&&devicePixelRatio||1),i=Math.max(1,Math.round((r??o.clientWidth??o.width)*a)),s=Math.max(1,Math.round((n??o.clientHeight??o.height)*a));return(o.width!==i||o.height!==s)&&(o.width=i,o.height=s,!0)},render(e,t,o=0){i=0;const a=n.drawingBufferWidth,h=n.drawingBufferHeight;n.viewport(0,0,a,h),t.aspect=a/h||1;const m=e.background;n.clearColor(m?m[0]:0,m?m[1]:0,m?m[2]:0,m?m[3]:0),n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),n.enable(n.DEPTH_TEST),e.root.updateWorld();const f=t.view(),d=t.projection(),p=new Float32Array(16),v=new Float32Array(12);e.lights.slice(0,4).forEach((e,t)=>{p.set([...e.vector,"point"===e.type?1:0],4*t),v.set(e.color.map(t=>t*e.intensity),3*t)});const _=[],g=[];e.root.traverse(e=>{if(e.visible&&e.mesh)for(const t of Array.isArray(e.mesh)?e.mesh:[e.mesh])(t.material.transparent||t.material.color[3]<1?g:_).push([e,t])});for(const[m,M]of[..._,...g]){const _=M.material,g="shader"===_.type?"shader:"+_.fragment:"std",A=s(g,"shader"===_.type?`${T}${Object.entries(_.uniforms||{}).map(([e,t])=>`uniform ${"number"==typeof t?"float":t.source?"sampler2D":`vec${t.length}`} ${e};`).join("")}\n${_.fragment}\nvoid main(){o=shade();}`:F);n.useProgram(A.p);const b=e=>u(A,e);n.uniformMatrix4fv(b("u_model"),!1,m.world),n.uniformMatrix4fv(b("u_view"),!1,f),n.uniformMatrix4fv(b("u_proj"),!1,d),n.uniformMatrix3fv(b("u_nmat"),!1,r.normal(m.world)),n.uniform4fv(b("u_color"),_.color),n.uniform3fv(b("u_emissive"),_.emissive),n.uniform3fv(b("u_camPos"),t.position),n.uniform3fv(b("u_ambient"),e.ambient),n.uniform1f(b("u_metal"),_.metallic),n.uniform1f(b("u_rough"),_.roughness),n.uniform1f(b("u_exposure"),e.exposure),n.uniform1f(b("u_time"),o/1e3),n.uniform2f(b("u_res"),a,h),n.uniform1i(b("u_unlit"),"unlit"===_.type?1:0),n.uniform1i(b("u_nl"),Math.min(4,e.lights.length)),n.uniform4fv(b("u_lvec"),p),n.uniform3fv(b("u_lcol"),v);let E=0;_.map&&(l(_.map,E),n.uniform1i(b("u_map"),E++)),n.uniform1i(b("u_hasMap"),_.map?1:0);for(const[e,t]of Object.entries(_.uniforms||{}))if("number"==typeof t)n.uniform1f(b(e),t);else if(t.source)l(t,E),n.uniform1i(b(e),E++);else{const r=t;(2===r.length?n.uniform2fv:3===r.length?n.uniform3fv:n.uniform4fv).call(n,b(e),r)}_.doubleSided?n.disable(n.CULL_FACE):n.enable(n.CULL_FACE),_.transparent||_.color[3]<1?(n.enable(n.BLEND),n.blendFunc(n.SRC_ALPHA,n.ONE_MINUS_SRC_ALPHA),n.depthMask(!1)):(n.disable(n.BLEND),n.depthMask(!0));const y=c(M.geometry);n.bindVertexArray(y.vao);const R="lines"===M.geometry.mode||_.wireframe?n.LINES:"points"===M.geometry.mode?n.POINTS:n.TRIANGLES;y.indexed?n.drawElements(R,y.count,y.type,0):n.drawArrays(R,0,y.count),i++}n.bindVertexArray(null),n.depthMask(!0)},dispose(){a.splice(0).forEach(e=>e.del()),o.clear()}}}function I(e,t,r={}){const o=n(e.position,e.target);let a=Math.hypot(...o),i=Math.atan2(o[0],o[2]),s=Math.acos(Math.min(1,Math.max(-1,o[1]/(a||1)))),u=0,c=0,l=0,h=!1,m=0,f=0;const d=new Map;let p=0;const v=r.damping??.12,_={autoRotate:"function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion: reduce)").matches?0:r.autoRotate??0,update:function(t){const n=Math.abs(u)+Math.abs(c)+Math.abs(l)>1e-5||_.autoRotate;i+=u+(_.autoRotate&&!h?_.autoRotate*t/1e3:0),s=Math.min(Math.PI-.05,Math.max(.05,s+c)),a=Math.min(r.maxDistance??1/0,Math.max(r.minDistance??.01,a*(1+l)));const o=Math.pow(1-v,t/16.7);u*=o,c*=o,l*=o;const m=e.target;return e.position=[m[0]+a*Math.sin(s)*Math.sin(i),m[1]+a*Math.cos(s),m[2]+a*Math.sin(s)*Math.cos(i)],!!n},dispose:function(){M.forEach(e=>e())}},g=(e,t,r,n)=>(e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)),M=[g(t,"pointerdown",e=>{d.set(e.pointerId,[e.clientX,e.clientY]),h=!0,m=e.clientX,f=e.clientY,t.setPointerCapture?.(e.pointerId)}),g(t,"pointermove",e=>{if(d.has(e.pointerId)){if(d.set(e.pointerId,[e.clientX,e.clientY]),2===d.size&&!1!==r.zoom){const[e,t]=Array.from(d.values()),r=Math.hypot(e[0]-t[0],e[1]-t[1]);return p&&(l+=.004*(p-r)),void(p=r)}h&&(u-=.005*(e.clientX-m),c-=.005*(e.clientY-f),m=e.clientX,f=e.clientY)}}),g(t,"pointerup",e=>{d.delete(e.pointerId),p=0,h=d.size>0}),g(t,"pointercancel",e=>{d.delete(e.pointerId),h=!1}),g(t,"wheel",e=>{!1!==r.zoom&&(e.preventDefault(),l+=.08*Math.sign(e.deltaY))},{passive:!1}),g(t,"keydown",e=>{const t={ArrowLeft:[.1,0,0],ArrowRight:[-.1,0,0],ArrowUp:[0,.1,0],ArrowDown:[0,-.1,0],"+":[0,0,-.1],"-":[0,0,.1]}[e.key];t&&(e.preventDefault(),u+=t[0],c+=t[1],l+=t[2])})];return _}const L={id:"gl",version:t.RUNTIME_VERSION,tier:"advanced",requires:["core"],api:{mat4:r,quatFromEuler:s,quatMultiply:u,quatSlerp:c,box:h,plane:m,sphere:f,torus:d,computeNormals:p,standardMaterial:v,unlitMaterial:_,shaderMaterial:g,color:M,texture:A,GlNode:b,Camera:E,Scene:y,bounds:R,frameNode:w,scrubVideo:x,createRenderer:N,orbitControls:I}};t.register(L),e.Camera=E,e.GlNode=b,e.Scene=y,e.bounds=R,e.box=h,e.color=M,e.computeNormals=p,e.createRenderer=N,e.frameNode=w,e.gl=L,e.mat4=r,e.orbitControls=I,e.plane=m,e.quatFromEuler=s,e.quatMultiply=u,e.quatSlerp=c,e.scrubVideo=x,e.shaderMaterial=g,e.sphere=f,e.standardMaterial=v,e.texture=A,e.torus=d,e.unlitMaterial=_}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/gl.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/gl.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-BgdHqx0s.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-DG7d_uS7.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/gl` (10.5) — a small WebGL2 scene renderer written for
@@ -750,4 +750,4 @@ const gl = {
750
750
  };
751
751
 
752
752
  export { Camera, GlNode, Scene, bounds, box, color, computeNormals, createRenderer, frameNode, gl, mat4, orbitControls, plane, quatFromEuler, quatMultiply, quatSlerp, scrubVideo, shaderMaterial, sphere, standardMaterial, texture, torus, unlitMaterial };
753
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/gl.js.map
753
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/gl.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-D3N8O2Nc.cjs');
3
+ var registry = require('../chunks/registry-CeBi49cV.cjs');
4
4
  var runtime_gl = require('./gl.cjs');
5
5
 
6
6
  /**
@@ -248,4 +248,4 @@ exports.gltfAnim = gltfAnim;
248
248
  exports.gltfAnimator = gltfAnimator;
249
249
  exports.gltfClips = gltfClips;
250
250
  exports.sampleChannel = sampleChannel;
251
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/gltf-anim.cjs.map
251
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/gltf-anim.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(t,n){"use strict";const e={identity:()=>new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),multiply(t,n,e=new Float32Array(16)){for(let o=0;o<4;o++)for(let r=0;r<4;r++)e[4*o+r]=t[r]*n[4*o]+t[4+r]*n[4*o+1]+t[8+r]*n[4*o+2]+t[12+r]*n[4*o+3];return e},perspective(t,n,e,o){const r=1/Math.tan(t/2),i=1/(e-o);return new Float32Array([r/n,0,0,0,0,r,0,0,0,0,(o+e)*i,-1,0,0,2*o*e*i,0])},lookAt(t,n,e=[0,1,0]){let a=o(t,n);a=s(a.some(t=>t)?a:[0,0,1]);let l=i(e,a);l.some(t=>Math.abs(t)>1e-9)||(l=i([0,0,1],a)),l=s(l);const m=i(a,l);return new Float32Array([l[0],m[0],a[0],0,l[1],m[1],a[1],0,l[2],m[2],a[2],0,-r(l,t),-r(m,t),-r(a,t),1])},compose(t,n,e){const[o,r,i,s]=n,a=o+o,l=r+r,m=i+i,c=o*a,p=o*l,u=o*m,f=r*l,h=r*m,g=i*m,d=s*a,y=s*l,M=s*m;return new Float32Array([(1-(f+g))*e[0],(p+M)*e[0],(u-y)*e[0],0,(p-M)*e[1],(1-(c+g))*e[1],(h+d)*e[1],0,(u+y)*e[2],(h-d)*e[2],(1-(c+f))*e[2],0,t[0],t[1],t[2],1])},invert(t){const n=new Float32Array(16),[e,o,r,i,s,a,l,m,c,p,u,f,h,g,d,y]=t,M=e*a-o*s,w=e*l-r*s,A=e*m-i*s,v=o*l-r*a,C=o*m-i*a,F=r*m-i*l,b=c*g-p*h,k=c*d-u*h,x=c*y-f*h,E=p*d-u*g,I=p*y-f*g,N=u*y-f*d;let j=M*N-w*I+A*E+v*x-C*k+F*b;return j?(j=1/j,n[0]=(a*N-l*I+m*E)*j,n[1]=(r*I-o*N-i*E)*j,n[2]=(g*F-d*C+y*v)*j,n[3]=(u*C-p*F-f*v)*j,n[4]=(l*x-s*N-m*k)*j,n[5]=(e*N-r*x+i*k)*j,n[6]=(d*A-h*F-y*w)*j,n[7]=(c*F-u*A+f*w)*j,n[8]=(s*I-a*x+m*b)*j,n[9]=(o*x-e*I-i*b)*j,n[10]=(h*C-g*A+y*M)*j,n[11]=(p*A-c*C-f*M)*j,n[12]=(a*k-s*E-l*b)*j,n[13]=(e*E-o*k+r*b)*j,n[14]=(g*w-h*v-d*M)*j,n[15]=(c*v-p*w+u*M)*j,n):null},normal(t){const n=e.invert(t)||e.identity();return new Float32Array([n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]])},transformPoint(t,n){const e=t[3]*n[0]+t[7]*n[1]+t[11]*n[2]+t[15]||1;return[(t[0]*n[0]+t[4]*n[1]+t[8]*n[2]+t[12])/e,(t[1]*n[0]+t[5]*n[1]+t[9]*n[2]+t[13])/e,(t[2]*n[0]+t[6]*n[1]+t[10]*n[2]+t[14])/e]}},o=(t,n)=>[t[0]-n[0],t[1]-n[1],t[2]-n[2]],r=(t,n)=>t[0]*n[0]+t[1]*n[1]+t[2]*n[2],i=(t,n)=>[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]],s=t=>{const n=Math.hypot(t[0],t[1],t[2])||1;return[t[0]/n,t[1]/n,t[2]/n]};const a=t=>{const n=t.extras;if(!n?.gltf||!n.read)throw new Error("[motionary] gltf-anim: pass the node returned by loadGltf() / gltfToNode() (motionary/runtime/format-gltf 10.8+)");return n};function l(t){const{gltf:n,nodes:e,read:o}=a(t);return(n.animations||[]).map((t,n)=>{let r=0;const i=[];for(const n of t.channels||[]){const s=e[n.target?.node],a=t.samplers?.[n.sampler];if(!s||!a||!["translation","rotation","scale","weights"].includes(n.target.path))continue;const l=o(a.input),m=o(a.output),c=a.interpolation||"LINEAR",p=m.length/l.length/("CUBICSPLINE"===c?3:1);r=Math.max(r,l[l.length-1]||0),i.push({node:s,path:n.target.path,interpolation:c,times:l,values:m,size:p})}return{name:t.name||`animation${n}`,duration:r,channels:i}})}function m(t,n){const{times:e,values:o,size:r}=t,i="CUBICSPLINE"===t.interpolation,s=t=>Array.from(o.subarray((i?3*t+1:t)*r,(i?3*t+1:t)*r+r)),a=e.length-1;if(n<=e[0]||0===a)return s(0);if(n>=e[a])return s(a);let l=0;for(;l<a-1&&e[l+1]<=n;)l++;const m=e[l+1]-e[l],c=(n-e[l])/m;let p;if("STEP"===t.interpolation)return s(l);if(i){const n=c*c,e=n*c,i=2*e-3*n+1,s=e-2*n+c,a=-2*e+3*n,u=e-n,f=3*l*r,h=3*(l+1)*r;if(p=Array.from({length:r},(t,n)=>i*o[f+r+n]+s*m*o[f+2*r+n]+a*o[h+r+n]+u*m*o[h+n]),"rotation"===t.path){const t=Math.hypot(...p)||1;p=p.map(n=>n/t)}return p}const u=s(l),f=s(l+1);return"rotation"===t.path?function(t,n,e){let o=t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3];const r=o<0?n.map(t=>-t):n;if(o=Math.abs(o),o>.9995){const n=t.map((t,n)=>t+(r[n]-t)*e),o=Math.hypot(...n)||1;return n.map(t=>t/o)}const i=Math.acos(o),s=Math.sin(i),a=Math.sin((1-e)*i)/s,l=Math.sin(e*i)/s;return t.map((t,n)=>t*a+r[n]*l)}(u,f,c):u.map((t,n)=>t+(f[n]-t)*c)}function c(t,n){for(const e of t.channels){const t=m(e,n),o=e.node;"weights"===e.path?o.extras.weights=t:(o.matrix=null,"translation"===e.path?o.position=t:"rotation"===e.path?o.rotation=t:o.scale=t)}}const p=t=>t.mesh?Array.isArray(t.mesh)?t.mesh:[t.mesh]:[];function u(t){var n;const{gltf:o,nodes:r,read:i}=a(t);t.updateWorld();let s=0;const l=(n=t.extras).skinCache||(n.skinCache={});for(const t of r){const n=p(t);if(!n.length)continue;const a=t.extras.skin;let m=null;if(void 0!==a&&o.skins?.[a]){const n=o.skins[a],s=l[a]||(l[a]={joints:n.joints.map(t=>r[t]),ibm:n.joints.map((t,o)=>void 0!==n.inverseBindMatrices?new Float32Array(i(n.inverseBindMatrices).subarray(16*o,16*o+16)):e.identity())}),c=e.invert(t.world)||e.identity();m=s.joints.map((t,n)=>e.multiply(c,e.multiply(t.world,s.ibm[n])))}const c=t.extras.weights||[];for(const t of n){const n=t.geometry,e=n.deform;e&&(m||e.targets?.length)&&(f(n,e,c,m),s++)}}return s}function f(t,n,e,o){const r=n.positions,i=n.normals,s=r.length/3,a=t.positions!==r&&t.positions.length===r.length?t.positions:t.positions=new Float32Array(r.length),l=i?t.normals&&t.normals!==i&&t.normals.length===i.length?t.normals:t.normals=new Float32Array(i.length):null;if(a.set(r),l&&i&&l.set(i),(n.targets||[]).forEach((t,n)=>{const o=e[n]||0;if(o){if(t.positions)for(let n=0;n<a.length;n++)a[n]+=o*t.positions[n];if(t.normals&&l)for(let n=0;n<l.length;n++)l[n]+=o*t.normals[n]}}),o&&n.joints&&n.weights){const t=n.joints,e=n.weights,r=new Float32Array(16);for(let n=0;n<s;n++){r.fill(0);let i=0;for(let s=0;s<4;s++){const a=e[4*n+s];if(!a)continue;const l=o[t[4*n+s]];if(l){i+=a;for(let t=0;t<16;t++)r[t]+=a*l[t]}}if(!i)continue;const s=a[3*n],m=a[3*n+1],c=a[3*n+2];if(a[3*n]=r[0]*s+r[4]*m+r[8]*c+r[12],a[3*n+1]=r[1]*s+r[5]*m+r[9]*c+r[13],a[3*n+2]=r[2]*s+r[6]*m+r[10]*c+r[14],l){const t=l[3*n],e=l[3*n+1],o=l[3*n+2],i=r[0]*t+r[4]*e+r[8]*o,s=r[1]*t+r[5]*e+r[9]*o,a=r[2]*t+r[6]*e+r[10]*o,m=Math.hypot(i,s,a)||1;l[3*n]=i/m,l[3*n+1]=s/m,l[3*n+2]=a/m}}}t.version=(t.version||0)+1}function h(t,e={}){const o=l(t);let r=null,i=null;const s=t=>("number"==typeof t?o[t]:o.find(n=>n.name===t)||o[Number(t)])||null,a=()=>{r&&c(r,m.time),u(t)},m={clips:o,get clip(){return r},time:0,speed:e.speed??1,loop:e.loop??!0,get playing(){return!!i},use(t){r=s(t),m.time=0,a()},seek(t){const n=r?.duration||0;m.time=n?m.loop?(t%n+n)%n:Math.min(n,Math.max(0,t)):0,a()},update(t){m.seek(m.time+t*m.speed)},play(){i||(i=n.requireModule("core","motionary/runtime/gltf-anim").getTicker().add((t,n)=>m.update(Math.min(n,100)/1e3)))},pause(){i?.(),i=null},dispose(){m.pause()}};return r=s(e.clip??0),a(),m}const g={id:"gltf-anim",version:n.RUNTIME_VERSION,tier:"advanced",requires:["core","gl","format-gltf"],api:{gltfClips:l,sampleChannel:m,applyClip:c,deformModel:u,deformGeometry:f,gltfAnimator:h}};n.register(g),t.applyClip=c,t.deformGeometry=f,t.deformModel=u,t.gltfAnim=g,t.gltfAnimator=h,t.gltfClips=l,t.sampleChannel=m}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/gltf-anim.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/gltf-anim.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-BgdHqx0s.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-DG7d_uS7.js';
2
2
  import { mat4, quatSlerp } from './gl.js';
3
3
 
4
4
  /**
@@ -240,4 +240,4 @@ function gltfAnimator(root, o = {}) {
240
240
  const gltfAnim = { id: 'gltf-anim', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'gl', 'format-gltf'], api: { gltfClips, sampleChannel, applyClip, deformModel, deformGeometry, gltfAnimator } };
241
241
 
242
242
  export { applyClip, deformGeometry, deformModel, gltfAnim, gltfAnimator, gltfClips, sampleChannel };
243
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/gltf-anim.js.map
243
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/gltf-anim.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-D3N8O2Nc.cjs');
3
+ var registry = require('../chunks/registry-CeBi49cV.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/gltf-decoders` (10.9) — hooks that let
@@ -156,4 +156,4 @@ exports.prepareGltf = prepareGltf;
156
156
  exports.provideGltfDecoder = provideGltfDecoder;
157
157
  exports.providedDecoders = providedDecoders;
158
158
  exports.transcodeKtx2 = transcodeKtx2;
159
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/gltf-decoders.cjs.map
159
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/gltf-decoders.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(e,t){"use strict";const r={},o={},s={KHR_draco_mesh_compression:"draco",KHR_texture_basisu:"ktx2"},n={draco:"npm i draco3d — then provideGltfDecoder('draco', () => import('draco3d')) (CDN: https://www.gstatic.com/draco/versioned/decoders/1.5.7/draco_decoder.js)",ktx2:"copy basis_transcoder.js + basis_transcoder.wasm from https://github.com/BinomialLLC/basis_universal (webgl/transcoder/build) — then provideGltfDecoder('ktx2', () => import('/vendor/basis_transcoder.js'))"};function i(e,t){r[e]=t,delete o[e]}const a=()=>Object.keys(r),c=(e,t)=>{const s=r[e];if(!s)throw new Error(`[motionary] gltf-decoders: this file uses ${t}, which needs the official decoder — ${n[e]}`);return o[e]||(o[e]=Promise.resolve(s()).then(async t=>{const r=t?.default??t;if("draco"===e)return r.createDecoderModule?r.createDecoderModule({}):"function"==typeof r?r({}):r;const o="function"==typeof r?await r():r;return o.initializeBasis?.(),o}))};function d(e,t,r){const o=new e.Decoder,s=new e.DecoderBuffer,n=new e.Mesh;try{s.Init(new Int8Array(t.buffer,t.byteOffset,t.byteLength),t.byteLength);const i=o.DecodeBufferToMesh(s,n);if(!i.ok()||!n.ptr)throw new Error("[motionary] gltf-decoders: Draco decode failed — "+i.error_msg());const a=n.num_points(),c=n.num_faces(),d={};for(const[t,s]of Object.entries(r)){const r=o.GetAttributeByUniqueId(n,s),i=r.num_components(),c=a*i*4,f=e._malloc(c);o.GetAttributeDataArrayForAllPoints(n,r,e.DT_FLOAT32,c,f),d[t]={data:new Float32Array(e.HEAPF32.buffer,f,a*i).slice(),size:i},e._free(f)}const f=12*c,u=e._malloc(f);o.GetTrianglesUInt32Array(n,f,u);const l=new Uint32Array(e.HEAPU32.buffer,u,3*c).slice();return e._free(u),{attributes:d,indices:l,count:a}}finally{e.destroy(n),e.destroy(s),e.destroy(o)}}function f(e,t){const r=new e.KTX2File(new Uint8Array(t));try{if(!r.isValid())throw new Error("[motionary] gltf-decoders: not a valid KTX2 file");const t=r.getWidth(),o=r.getHeight();if(!r.startTranscoding())throw new Error("[motionary] gltf-decoders: KTX2 startTranscoding failed");const s=e.transcoder_texture_format?.cTFRGBA32?.value??e.transcoder_texture_format?.cTFRGBA32??13,n=new Uint8Array(r.getImageTranscodedSizeInBytes(0,0,0,s));if(!r.transcodeImage(n,0,0,0,s,0,-1,-1))throw new Error("[motionary] gltf-decoders: KTX2 transcode failed");return{width:t,height:o,data:n}}finally{r.close?.(),r.delete?.()}}async function u(e,t){if(![...e.extensionsUsed||[],...e.extensionsRequired||[]].some(e=>e in s))return{json:e,buffers:t,images:{}};const r=JSON.parse(JSON.stringify(e)),o=t.slice(),n={},i=(e,t,s)=>(o.push(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),(r.bufferViews||(r.bufferViews=[])).push({buffer:o.length-1,byteLength:e.byteLength}),(r.accessors||(r.accessors=[])).push({bufferView:r.bufferViews.length-1,componentType:e instanceof Uint32Array?5125:5126,count:s,type:t}),r.accessors.length-1),a=e=>{const t=r.bufferViews[e];return o[t.buffer].subarray(t.byteOffset||0,(t.byteOffset||0)+t.byteLength)};for(const e of r.meshes||[])for(const t of e.primitives||[]){const e=t.extensions?.KHR_draco_mesh_compression;if(!e)continue;const r=d(await c("draco","KHR_draco_mesh_compression"),a(e.bufferView),e.attributes);for(const[e,o]of Object.entries(r.attributes))t.attributes[e]=i(o.data,["SCALAR","VEC2","VEC3","VEC4"][o.size-1],r.count);t.indices=i(r.indices,"SCALAR",r.indices.length),delete t.extensions.KHR_draco_mesh_compression}for(const e of r.textures||[]){const t=e.extensions?.KHR_texture_basisu?.source;if(void 0===t)continue;const o=await c("ktx2","KHR_texture_basisu"),s=r.images[t],i=void 0!==s.bufferView?a(s.bufferView):new Uint8Array(await(await fetch(s.uri)).arrayBuffer()),{width:d,height:u,data:l}=f(o,i);n[t]="undefined"!=typeof ImageData?new ImageData(new Uint8ClampedArray(l),d,u):{width:d,height:u,data:l},e.source=t,delete e.extensions.KHR_texture_basisu}const u=e=>e?.filter(e=>!(e in s));return r.extensionsRequired=u(r.extensionsRequired),r.extensionsUsed=u(r.extensionsUsed),{json:r,buffers:o,images:n}}const l={id:"gltf-decoders",version:t.RUNTIME_VERSION,tier:"advanced",requires:["core","gl","format-gltf"],api:{provideGltfDecoder:i,providedDecoders:a,prepareGltf:u,decodeDraco:d,transcodeKtx2:f,DECODER_EXTENSIONS:s}};t.register(l),e.DECODER_EXTENSIONS=s,e.DECODER_HELP=n,e.decodeDraco=d,e.gltfDecoders=l,e.prepareGltf=u,e.provideGltfDecoder=i,e.providedDecoders=a,e.transcodeKtx2=f}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/gltf-decoders.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/gltf-decoders.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-BgdHqx0s.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-DG7d_uS7.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/gltf-decoders` (10.9) — hooks that let
@@ -147,4 +147,4 @@ async function prepareGltf(json, buffers) {
147
147
  const gltfDecoders = { id: 'gltf-decoders', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core', 'gl', 'format-gltf'], api: { provideGltfDecoder, providedDecoders, prepareGltf, decodeDraco, transcodeKtx2, DECODER_EXTENSIONS } };
148
148
 
149
149
  export { DECODER_EXTENSIONS, DECODER_HELP, decodeDraco, gltfDecoders, prepareGltf, provideGltfDecoder, providedDecoders, transcodeKtx2 };
150
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/gltf-decoders.js.map
150
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/gltf-decoders.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-D3N8O2Nc.cjs');
3
+ var registry = require('../chunks/registry-CeBi49cV.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/lottie-state` (10.9) — dotLottie **themes** (slots) and a
@@ -243,4 +243,4 @@ exports.createStateMachine = createStateMachine;
243
243
  exports.inspectStateMachine = inspectStateMachine;
244
244
  exports.lottieState = lottieState;
245
245
  exports.ruleProp = ruleProp;
246
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/lottie-state.cjs.map
246
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/lottie-state.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(e,t){"use strict";const n=e=>JSON.parse(JSON.stringify(e));function a(e){return"Text"===e.type?null:e.keyframes?.length?{a:1,k:e.keyframes.map((t,n)=>{return{t:t.frame,s:(a=t.value,Array.isArray(a)?a:[a]),...t.hold?{h:1}:{},...n<e.keyframes.length-1?{o:t.outTangent||{x:[0],y:[0]},i:e.keyframes[n+1].inTangent||{x:[1],y:[1]}}:{}};var a}),...e.expression?{x:e.expression}:{}}:{a:0,k:"Scalar"===e.type&&Array.isArray(e.value)?e.value[0]:e.value,...e.expression?{x:e.expression}:{}}}function r(e,t,r){const s=n(e),o={};for(const[e,t]of Object.entries(s.slots||{}))o[e]=t?.p??t;const i={};for(const e of t?.rules||[])e.animations?.length&&r&&!e.animations.includes(r)||("Text"===e.type?i[e.id]=e.value:"Image"!==e.type&&(o[e.id]=a(e)));const c=e=>{if(e&&"object"==typeof e){if(Array.isArray(e))return e.forEach(c);if("string"==typeof e.sid)if(void 0!==i[e.sid]&&e.k?.[0]?.s)for(const t of e.k)t.s={...t.s,..."string"==typeof i[e.sid]?{t:i[e.sid]}:i[e.sid]};else if(o[e.sid]){const t=o[e.sid];delete e.a,delete e.k,delete e.x,Object.assign(e,n(t))}for(const t in e)"slots"!==t&&c(e[t])}};return c(s.layers),(s.assets||[]).forEach(e=>c(e.layers)),s}const s=["Fire","SetNumeric","SetString","SetBoolean","Toggle","Increment","Decrement","Reset","SetTheme","SetFrame","SetProgress","FireCustomEvent"],o=["PointerDown","PointerUp","PointerEnter","PointerExit","PointerMove","Click","OnComplete","OnLoopComplete"];function i(e){const t=new Set;e?.states?.length||t.add("no states");for(const n of e?.states||[]){n.type&&!["PlaybackState","GlobalState"].includes(n.type)&&t.add(`state type ${n.type}`);for(const e of[...n.entryActions||[],...n.exitActions||[]])s.includes(e.type)||t.add(`action ${e.type}`)}for(const n of e?.interactions||[]){o.includes(n.type)||t.add(`interaction ${n.type}`);for(const e of n.actions||[])s.includes(e.type)||t.add(`action ${e.type}`)}return[...t]}function c(e,t="Equal",n){switch(t){case"NotEqual":return e!==n;case"GreaterThan":return e>n;case"GreaterThanOrEqual":return e>=n;case"LessThan":return e<n;case"LessThanOrEqual":return e<=n;default:return e===n}}function l(e,t={}){const n=new Map(e.states.map(e=>[e.name,e])),a=()=>Object.fromEntries((e.inputs||[]).filter(e=>"Event"!==e.type).map(e=>[e.name,e.value??("Numeric"===e.type?0:"Boolean"!==e.type&&"")]));let r=a(),s=n.get(e.initial)||e.states[0],o=null;const i=e.states.filter(e=>"GlobalState"===e.type),l=e=>"Event"===e.type?o===e.inputName:c(r[e.inputName],e.conditionType,e.compareTo),u=n=>{for(const a of n||[]){const n=a.inputName||"";switch(a.type){case"Fire":y(n);break;case"SetNumeric":case"SetString":case"SetBoolean":d(n,a.value);break;case"Toggle":d(n,!r[n]);break;case"Increment":d(n,(r[n]||0)+(a.value??1));break;case"Decrement":d(n,(r[n]||0)-(a.value??1));break;case"Reset":d(n,(e.inputs||[]).find(e=>e.name===n)?.value);break;case"SetTheme":t.onTheme?.(a.themeId||a.value);break;case"SetFrame":t.onFrame?.(Number(a.value)||0);break;case"SetProgress":t.onProgress?.(Math.min(1,Math.max(0,Number(a.value)||0)));break;case"FireCustomEvent":t.onCustomEvent?.(String(a.value??n))}}};let f=0;const m=e=>{const n=s;u(n.exitActions),s=e,t.onState?.(e,n),u(e.entryActions)},p=()=>{if(!(f>16)){f++;for(const t of(t=>[...t.transitions||[],...(e.transitions||[]).filter(e=>e.fromState===t.name||"*"===e.fromState||void 0===e.fromState),...i.flatMap(e=>e===t?[]:e.transitions||[])])(s)){const e=n.get(t.toState);if(e&&e!==s&&((t.guards||[]).every(l)&&(t.guards?.length||null===o))){o=null,m(e),p();break}}f--}};function y(e){o=e,p(),o=null}function d(e,t){r={...r,[e]:t},p()}const S={get state(){return s},get inputs(){return r},fire:y,set:d,interact(t,n){for(const a of e.interactions||[])a.type===t&&(a.layerName&&void 0!==n&&a.layerName!==n||a.stateName&&a.stateName!==s.name||u(a.actions))},reset(){r=a(),m(n.get(e.initial)||e.states[0])}};return t.onState?.(s,null),u(s.entryActions),S}const u={id:"lottie-state",version:t.RUNTIME_VERSION,tier:"standard",requires:["core","vector"],api:{applyTheme:r,ruleProp:a,createStateMachine:l,inspectStateMachine:i,compare:c}};t.register(u),e.applyTheme=r,e.compare=c,e.createStateMachine=l,e.inspectStateMachine=i,e.lottieState=u,e.ruleProp=a}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/lottie-state.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/lottie-state.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-BgdHqx0s.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-DG7d_uS7.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/lottie-state` (10.9) — dotLottie **themes** (slots) and a
@@ -236,4 +236,4 @@ function createStateMachine(def, hooks = {}) {
236
236
  const lottieState = { id: 'lottie-state', version: RUNTIME_VERSION, tier: 'standard', requires: ['core', 'vector'], api: { applyTheme, ruleProp, createStateMachine, inspectStateMachine, compare } };
237
237
 
238
238
  export { applyTheme, compare, createStateMachine, inspectStateMachine, lottieState, ruleProp };
239
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/lottie-state.js.map
239
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/lottie-state.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-D3N8O2Nc.cjs');
3
+ var registry = require('../chunks/registry-CeBi49cV.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/physics` (10.7) — a small 2D rigid-body engine written
@@ -736,4 +736,4 @@ exports.collide = collide;
736
736
  exports.createWorld = createWorld;
737
737
  exports.dragConstraint = dragConstraint;
738
738
  exports.physics = physics;
739
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/physics.cjs.map
739
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/physics.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(t,i){"use strict";const s=(t=0,i=0)=>({x:t,y:i}),n=(t,i)=>t.x*i.x+t.y*i.y,e=(t,i)=>t.x*i.y-t.y*i.x,o=(t,i)=>s(t.x-i.x,t.y-i.y),a=(t,i)=>s(t.x+i.x,t.y+i.y),r=(t,i)=>s(t.x*i,t.y*i),h=t=>Math.hypot(t.x,t.y),l=(t,i)=>s(-t*i.y,t*i.x),c=(t,i,n)=>s(t.x*i-t.y*n,t.x*n+t.y*i);let p=1;class f{constructor(t={}){this.id=p++,this.force=s(),this.torque=0,this.radius=0,this.verts=[],this.normals=[],this.mass=0,this.invMass=0,this.inertia=0,this.invInertia=0,this.sleeping=!1,this.sleepTime=0,this.aabb={minX:0,minY:0,maxX:0,maxY:0},this.wv=[],this.wvAngle=NaN,this.wvPos=s(NaN,NaN),this.shape=t.shape||(t.vertices?"polygon":null!=t.radius&&null==t.width?"circle":"box"),this.type=t.type||"dynamic",this.label=t.label||this.shape,this.position=s(t.x||0,t.y||0),this.velocity=s(t.vx||0,t.vy||0),this.angle=t.angle||0,this.angularVelocity=t.angularVelocity||0,this.restitution=t.restitution??.2,this.friction=t.friction??.4,this.damping=t.damping??0,this.angularDamping=t.angularDamping??.01,this.sensor=!!t.sensor,this.category=t.category??1,this.mask=t.mask??4294967295,this.data=t.data;const i=t.density??.001;let a=0,l=0;if("circle"===this.shape)this.radius=t.radius??20,a=Math.PI*this.radius**2,l=.5*this.radius**2;else{const i="box"===this.shape?(c=t.width??40,f=t.height??40,[s(-c/2,-f/2),s(c/2,-f/2),s(c/2,f/2),s(-c/2,f/2)]):function(t){const i=t.slice().sort((t,i)=>t.x-i.x||t.y-i.y);if(i.length<3)return i;const s=[],n=[],a=(t,i,s)=>e(o(i,t),o(s,t));for(const t of i){for(;s.length>=2&&a(s[s.length-2],s[s.length-1],t)<=0;)s.pop();s.push(t)}for(let t=i.length-1;t>=0;t--){const s=i[t];for(;n.length>=2&&a(n[n.length-2],n[n.length-1],s)<=0;)n.pop();n.push(s)}return s.slice(0,-1).concat(n.slice(0,-1))}((t.vertices||[]).map(([t,i])=>s(t,i)));if(i.length<3)throw new Error("[motionary] physics: a polygon needs at least 3 non-collinear vertices");const{c:p,a:u,i:y}=function(t){let i=0,o=0,a=0,r=0;for(let s=0;s<t.length;s++){const h=t[s],l=t[(s+1)%t.length],c=e(h,l);i+=c,o+=(h.x+l.x)*c,a+=(h.y+l.y)*c,r+=c*(n(h,h)+n(h,l)+n(l,l))}i/=2;const h=s(o/(6*i),a/(6*i)),l=r/12,c=l/i-n(h,h);return{a:Math.abs(i),c:h,i:Math.abs(c)}}(i);this.verts=i.map(t=>o(t,p)),a=u,l=y,this.radius=Math.max(...this.verts.map(h)),this.normals=this.verts.map((t,i)=>{const n=this.verts[(i+1)%this.verts.length],e=o(n,t),a=s(e.y,-e.x);return r(a,1/h(a))})}var c,f;"dynamic"===this.type&&(this.mass=t.mass??i*a,this.invMass=this.mass>0?1/this.mass:0,this.inertia=t.fixedRotation?1/0:this.mass*l,this.invInertia=t.fixedRotation||!this.inertia?0:1/this.inertia)}get isStatic(){return"static"===this.type}worldVerts(){if(this.wvAngle!==this.angle||this.wvPos.x!==this.position.x||this.wvPos.y!==this.position.y){const t=Math.cos(this.angle),i=Math.sin(this.angle);this.wv=this.verts.map(s=>a(c(s,t,i),this.position)),this.wvAngle=this.angle,this.wvPos=s(this.position.x,this.position.y)}return this.wv}worldNormal(t){return c(this.normals[t],Math.cos(this.angle),Math.sin(this.angle))}updateAabb(){if("circle"===this.shape){const t=this.radius,i=this.position;return void(this.aabb={minX:i.x-t,minY:i.y-t,maxX:i.x+t,maxY:i.y+t})}let t=1/0,i=1/0,s=-1/0,n=-1/0;for(const e of this.worldVerts())e.x<t&&(t=e.x),e.y<i&&(i=e.y),e.x>s&&(s=e.x),e.y>n&&(n=e.y);this.aabb={minX:t,minY:i,maxX:s,maxY:n}}applyImpulse(t,i){"dynamic"===this.type&&(this.wake(),this.velocity=a(this.velocity,r(t,this.invMass)),i&&(this.angularVelocity+=e(o(i,this.position),t)*this.invInertia))}applyForce(t,i){"dynamic"===this.type&&(this.wake(),this.force=a(this.force,t),i&&(this.torque+=e(o(i,this.position),t)))}wake(){this.sleeping=!1,this.sleepTime=0}contains(t,i){const e=s(t,i);if("circle"===this.shape)return h(o(e,this.position))<=this.radius;const a=this.worldVerts();for(let t=0;t<a.length;t++)if(n(this.worldNormal(t),o(e,a[t]))>0)return!1;return!0}}const u=t=>"dynamic"!==t.type||t.sleeping?0:t.invMass,y=t=>"dynamic"!==t.type||t.sleeping?0:t.invInertia,d=t=>n(t.velocity,t.velocity)+(t.angularVelocity*t.radius)**2;function m(t,i){const s=t.worldVerts();let e=-1/0,l=0;for(let a=0;a<s.length;a++){const r=n(t.worldNormal(a),o(i.position,s[a]));if(r>i.radius)return null;r>e&&(e=r,l=a)}if(e<1e-9){const s=t.worldNormal(l);return{a:t,b:i,normal:s,contacts:[{point:o(i.position,r(s,i.radius)),depth:i.radius-e}]}}let c=s[0],p=1/0;for(let t=0;t<s.length;t++){const e=s[t],l=s[(t+1)%s.length],f=o(l,e),u=Math.max(0,Math.min(1,n(o(i.position,e),f)/n(f,f))),y=a(e,r(f,u)),d=h(o(i.position,y));d<p&&(p=d,c=y)}if(p>=i.radius)return null;const f=p>1e-9?r(o(i.position,c),1/p):t.worldNormal(l);return{a:t,b:i,normal:f,contacts:[{point:c,depth:i.radius-p}]}}function g(t,i){const s=t.worldVerts(),e=i.worldVerts();let a=-1/0,r=0;for(let i=0;i<s.length;i++){const h=t.worldNormal(i);let l=1/0;for(const t of e)l=Math.min(l,n(h,o(t,s[i])));l>a&&(a=l,r=i)}return{s:a,i:r}}function b(t,i){if("circle"===t.shape&&"circle"===i.shape)return function(t,i){const n=o(i.position,t.position),e=h(n),l=t.radius+i.radius;if(e>=l)return null;const c=e>1e-9?r(n,1/e):s(0,1);return{a:t,b:i,normal:c,contacts:[{point:a(t.position,r(c,t.radius-(l-e)/2)),depth:l-e}]}}(t,i);if("circle"!==t.shape&&"circle"===i.shape)return m(t,i);if("circle"===t.shape&&"circle"!==i.shape){const s=m(i,t);return s&&{a:t,b:i,normal:r(s.normal,-1),contacts:s.contacts}}return function(t,i){const s=g(t,i);if(s.s>0)return null;const e=g(i,t);if(e.s>0)return null;let l=t,c=i,p=s.i,f=!1;e.s>.95*s.s+.01&&(l=i,c=t,p=e.i,f=!0);const u=l.worldVerts(),y=c.worldVerts(),d=l.worldNormal(p);let m=0,b=1/0;for(let t=0;t<y.length;t++){const i=n(c.worldNormal(t),d);i<b&&(b=i,m=t)}let v=[y[m],y[(m+1)%y.length]];const w=u[p],x=u[(p+1)%u.length],M=r(o(x,w),1/h(o(x,w))),V=(t,i,s)=>{const e=[],h=n(i,t[0])-s,l=n(i,t[1])-s;return h<=0&&e.push(t[0]),l<=0&&e.push(t[1]),h*l<0&&e.push(a(t[0],r(o(t[1],t[0]),h/(h-l)))),e};if(v=V(v,r(M,-1),-n(M,w)),v.length<2)return null;if(v=V(v,M,n(M,x)),v.length<2)return null;const k=[];for(const t of v){const i=n(d,o(t,w));i<=1&&k.push({point:t,depth:-i})}return k.some(t=>t.depth>=0)?f?{a:t,b:i,normal:r(d,-1),contacts:k}:{a:t,b:i,normal:d,contacts:k}:null}(t,i)}class v{constructor(t){this.type=t.type,this.a=t.a,this.b=t.b||null,this.anchorA=s(...t.anchorA||[0,0]),this.anchorB=s(...t.anchorB||[0,0]),this.point=s(...t.point||[t.a.position.x,t.a.position.y]),this.stiffness=t.stiffness??1,this.damping=t.damping??.1,this.label=t.label||t.type,this.length=t.length??h(o(this.worldB(),this.worldA()))}worldA(){return a(this.a.position,c(this.anchorA,Math.cos(this.a.angle),Math.sin(this.a.angle)))}worldB(){return this.b?a(this.b.position,c(this.anchorB,Math.cos(this.b.angle),Math.sin(this.b.angle))):this.point}solve(t){const i=this.a,c=this.b,p=this.worldA(),f=this.worldB(),u=o(f,p),y=h(u);if(y<1e-9&&this.length<1e-9&&"distance"===this.type)return;const d=y>1e-9?r(u,1/y):s(1,0),m=o(p,i.position),g=c?o(f,c.position):s(),b=a(i.velocity,l(i.angularVelocity,m)),v=c?a(c.velocity,l(c.angularVelocity,g)):s(),w=n(o(v,b),d),x=y-this.length,M=i.invMass+(c?c.invMass:0)+e(m,d)**2*i.invInertia+(c?e(g,d)**2*c.invInertia:0);if(M<=0)return;const V=this.stiffness>=1?.2:.2*this.stiffness;let k=-(w*(this.stiffness>=1?1:this.damping+this.stiffness)+V/t*x)/M;this.stiffness<1&&(k*=this.stiffness);const N=r(d,k);i.applyImpulse(r(N,-1),p),c?.applyImpulse(N,f)}}class w{constructor(t={}){this.bodies=[],this.constraints=[],this.contacts=[],this.time=0,this.steps=0,this.acc=0,this.warm=new Map,this.listeners=new Set,this.stop=null,this.gravity=s(...t.gravity||[0,980]),this.iterations=t.iterations??10,this.fixedStep=t.step??1/60,this.sleeping=t.sleeping??!0}add(...t){for(const i of t)i instanceof f?this.bodies.push(i):this.constraints.push(i);return t[0]}body(t){return this.add(new f(t))}constraint(t){return this.add(new v(t))}remove(...t){for(const i of t)i instanceof f?(this.bodies=this.bodies.filter(t=>t!==i),this.constraints=this.constraints.filter(t=>t.a!==i&&t.b!==i)):this.constraints=this.constraints.filter(t=>t!==i)}clear(){this.bodies=[],this.constraints=[],this.contacts=[]}bounds(t,i,s=50,n={}){const e=[new f({type:"static",x:t/2,y:i+s/2,width:t+2*s,height:s,label:"floor"}),new f({type:"static",x:-s/2,y:i/2,width:s,height:i+2*s,label:"wall-left"}),new f({type:"static",x:t+s/2,y:i/2,width:s,height:i+2*s,label:"wall-right"})];!1!==n.top&&e.push(new f({type:"static",x:t/2,y:-s/2,width:t+2*s,height:s,label:"ceiling"}));for(const t of e)this.add(t);return e}onCollision(t){return this.listeners.add(t),()=>this.listeners.delete(t)}query(t,i){return this.bodies.filter(s=>s.contains(t,i)).reverse()}update(t){this.acc=Math.min(this.acc+t,8*this.fixedStep);let i=0;for(;this.acc>=this.fixedStep;)this.step(this.fixedStep),this.acc-=this.fixedStep,i++;return i}step(t=this.fixedStep){const i=this.bodies;for(const s of i)"dynamic"!==s.type||s.sleeping||(s.velocity=a(s.velocity,r(a(this.gravity,r(s.force,s.invMass)),t)),s.angularVelocity+=s.torque*s.invInertia*t,s.damping&&(s.velocity=r(s.velocity,Math.max(0,1-s.damping*t))),s.angularDamping&&(s.angularVelocity*=Math.max(0,1-s.angularDamping*t)));for(const t of i)t.updateAabb();const n=i.slice().sort((t,i)=>t.aabb.minX-i.aabb.minX),e=[];for(let t=0;t<n.length;t++){const i=n[t];for(let s=t+1;s<n.length;s++){const t=n[s];if(t.aabb.minX>i.aabb.maxX)break;if(t.aabb.minY>i.aabb.maxY||t.aabb.maxY<i.aabb.minY)continue;if("dynamic"!==i.type&&"dynamic"!==t.type)continue;if(!(i.category&t.mask&&t.category&i.mask))continue;if((i.sleeping||"dynamic"!==i.type)&&(t.sleeping||"dynamic"!==t.type))continue;const o=i.id<t.id?b(i,t):b(t,i);o&&e.push(o)}}this.contacts=e;const o=e.filter(t=>!t.a.sensor&&!t.b.sensor);for(const t of o)t.a.sleeping&&!t.b.sleeping&&"dynamic"===t.b.type&&d(t.b)>144&&t.a.wake(),t.b.sleeping&&!t.a.sleeping&&"dynamic"===t.a.type&&d(t.a)>144&&t.b.wake();const h=t=>t.a.id+":"+t.b.id;for(const i of o)x(i,t,this.warm.get(h(i)));for(let i=0;i<this.iterations;i++){for(const t of o)M(t);for(const i of this.constraints)i.solve(t)}this.warm=new Map(o.map(t=>[h(t),{pts:t.contacts.map(t=>t.point),pn:t.contacts.map(t=>t.pn),pt:t.contacts.map(t=>t.pt)}]));for(const n of i)"static"===n.type||n.sleeping||(n.position=a(n.position,r(n.velocity,t)),n.angle+=n.angularVelocity*t,n.force=s(),n.torque=0);if(this.sleeping){const n=new Map,e=t=>{let i=t;for(;n.get(i)!==i;)i=n.get(i);return n.set(t,i),i},a=t=>!!t&&"dynamic"===t.type;for(const t of i)a(t)&&n.set(t,t);const r=(t,i)=>{a(t)&&a(i)&&n.set(e(t),e(i))};for(const t of o)r(t.a,t.b);for(const t of this.constraints)r(t.a,t.b);const h=new Set(this.constraints.filter(t=>"drag"===t.label).map(t=>t.a));for(const i of n.keys())i.sleeping||(d(i)<36&&!h.has(i)?i.sleepTime+=t:i.sleepTime=0);const l=new Map;for(const t of n.keys()){const i=e(t);l.set(i,[...l.get(i)||[],t])}for(const t of l.values())if(t.some(t=>!t.sleeping&&t.sleepTime<=.6)){if(t.some(t=>t.sleeping)&&t.some(t=>!t.sleeping&&0===t.sleepTime))for(const i of t)i.wake()}else for(const i of t)i.sleeping=!0,i.velocity=s(),i.angularVelocity=0}if(this.time+=t,this.steps++,this.listeners.size)for(const t of e)for(const i of this.listeners)i(t)}run(){if(this.stop)return this.stop;const t=i.requireModule("core","motionary/runtime/physics").getTicker().add((t,i)=>this.update(Math.min(i,100)/1e3));return this.stop=()=>{t(),this.stop=null},this.stop}get running(){return!!this.stop}energy(){return this.bodies.reduce((t,i)=>t+("dynamic"===i.type?.5*i.mass*n(i.velocity,i.velocity)+.5*(isFinite(i.inertia)?i.inertia:0)*i.angularVelocity**2:0),0)}}function x(t,i,c){const{a:p,b:f,normal:d}=t,m=s(d.y,-d.x),g=Math.max(p.restitution,f.restitution);for(const s of t.contacts){s.ra=o(s.point,p.position),s.rb=o(s.point,f.position);const t=u(p)+u(f)+e(s.ra,d)**2*y(p)+e(s.rb,d)**2*y(f),r=u(p)+u(f)+e(s.ra,m)**2*y(p)+e(s.rb,m)**2*y(f);s.mn=t>0?1/t:0,s.mt=r>0?1/r:0;const h=o(a(f.velocity,l(f.angularVelocity,s.rb)),a(p.velocity,l(p.angularVelocity,s.ra))),c=n(h,d);s.bias=s.depth<0?s.depth/i:Math.max(.2/i*Math.max(0,s.depth-.25),c<-150?-g*c:0),s.pn=0,s.pt=0}c&&t.contacts.forEach(t=>{if(t.depth<0)return;let i=-1,s=2;c.pts.forEach((n,e)=>{const a=h(o(t.point,n));a<s&&(s=a,i=e)}),i<0||(t.pn=c.pn[i],t.pt=c.pt[i],V(p,f,a(r(d,t.pn),r(m,t.pt)),t.ra,t.rb))})}function M(t){const{a:i,b:h,normal:c}=t,p=s(c.y,-c.x),f=Math.sqrt(i.friction*h.friction),d=t.contacts,m=t=>o(a(h.velocity,l(h.angularVelocity,t.rb)),a(i.velocity,l(i.angularVelocity,t.ra)));for(const t of d){let s=-t.mt*n(m(t),p);const e=t.pt,o=f*t.pn;t.pt=Math.max(-o,Math.min(o,e+s)),s=t.pt-e,V(i,h,r(p,s),t.ra,t.rb)}if(2===d.length){const[t,s]=d,o=u,a=y,l=e(t.ra,c),p=e(t.rb,c),f=e(s.ra,c),g=e(s.rb,c),b=o(i)+o(h)+a(i)*l*l+a(h)*p*p,v=o(i)+o(h)+a(i)*f*f+a(h)*g*g,w=o(i)+o(h)+a(i)*l*f+a(h)*p*g,x=b*v-w*w;if(b*b<1e3*x){const e=t.pn,o=s.pn,a=n(m(t),c)-t.bias-(b*e+w*o),l=n(m(s),c)-s.bias-(w*e+v*o);let p=0,f=0;if((()=>(p=-(v*a-w*l)/x,f=-(b*l-w*a)/x,p>=0&&f>=0||(p=-a/b,f=0,p>=0&&w*p+l>=0||(p=0,f=-l/v,f>=0&&w*f+a>=0||(p=f=0,a>=0&&l>=0)))))())return V(i,h,r(c,p-e),t.ra,t.rb),V(i,h,r(c,f-o),s.ra,s.rb),t.pn=p,void(s.pn=f)}}for(const t of d){let s=t.mn*(-n(m(t),c)+t.bias);const e=t.pn;t.pn=Math.max(e+s,0),s=t.pn-e,V(i,h,r(c,s),t.ra,t.rb)}}function V(t,i,s,n,h){"dynamic"!==t.type||t.sleeping||(t.velocity=o(t.velocity,r(s,t.invMass)),t.angularVelocity-=e(n,s)*t.invInertia),"dynamic"!==i.type||i.sleeping||(i.velocity=a(i.velocity,r(s,i.invMass)),i.angularVelocity+=e(h,s)*i.invInertia)}function k(t={}){return new w(t)}function N(t,i,n,e,a=.6){const r=i.angle,h=c(o(s(n,e),i.position),Math.cos(-r),Math.sin(-r)),l=t.constraint({type:"pin",a:i,anchorA:[h.x,h.y],point:[n,e],length:0,stiffness:a,damping:.3,label:"drag"});return i.wake(),{constraint:l,move(t,n){l.point=s(t,n),i.wake()},release(){t.remove(l)}}}const I={id:"physics",version:i.RUNTIME_VERSION,tier:"advanced",requires:["core"],api:{createWorld:k,World:w,Body:f,Constraint:v,collide:b,dragConstraint:N}};i.register(I),t.Body=f,t.Constraint=v,t.World=w,t.collide=b,t.createWorld=k,t.dragConstraint=N,t.physics=I}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/physics.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/physics.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-BgdHqx0s.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-DG7d_uS7.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/physics` (10.7) — a small 2D rigid-body engine written
@@ -728,4 +728,4 @@ function dragConstraint(world, body, x, y, stiffness = 0.6) {
728
728
  const physics = { id: 'physics', version: RUNTIME_VERSION, tier: 'advanced', requires: ['core'], api: { createWorld, World, Body, Constraint, collide, dragConstraint } };
729
729
 
730
730
  export { Body, Constraint, World, collide, createWorld, dragConstraint, physics };
731
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/physics.js.map
731
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/physics.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-D3N8O2Nc.cjs');
4
- var ticker = require('../chunks/ticker-D73Bn74b.cjs');
3
+ var registry = require('../chunks/registry-CeBi49cV.cjs');
4
+ var ticker = require('../chunks/ticker-D9DzTlll.cjs');
5
5
 
6
6
  /**
7
7
  * `motionary/runtime/scroll` (10.2) — scroll-linked scenes, an original
@@ -81,6 +81,12 @@ class ScrollScene {
81
81
  throw new Error('[motionary] scroll scenes need a browser window');
82
82
  this.options = o;
83
83
  this.trigger = q(o.trigger);
84
+ // 13.1.0: a bad start / end throws here — before any listener, ticker, pin or registry entry exists (it used to throw
85
+ // from the first refresh() and leave all of those behind, re-throwing on every resize)
86
+ if (o.start)
87
+ resolveRule(o.start, 0, 0, 0);
88
+ if (o.end && !/^\+=/.test(o.end.trim()))
89
+ resolveRule(o.end, 0, 0, 0);
84
90
  this.scroller = o.scroller ? q(o.scroller) : window;
85
91
  if (o.pin)
86
92
  this.setupPin(o.pin === true ? this.trigger : q(o.pin));
@@ -298,4 +304,4 @@ exports.refreshScenes = refreshScenes;
298
304
  exports.resolveRule = resolveRule;
299
305
  exports.scroll = scroll;
300
306
  exports.scrollScene = scrollScene;
301
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/scroll.cjs.map
307
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/scroll.cjs.map
@@ -1,2 +1,2 @@
1
- !function(t,s,e){"use strict";const i={top:0,left:0,center:.5,bottom:1,right:1};function o(t,s){const e=/^([a-z]+|-?[\d.]+%|-?[\d.]+(?:px)?)?\s*(?:([+-])=\s*(-?[\d.]+)(px|%)?)?$/.exec(t.trim());if(!e)throw new Error(`[motionary] scroll: bad edge "${t}"`);let o=0;const r=e[1]||"0";if(r in i)o=i[r]*s;else if(r.endsWith("%"))o=parseFloat(r)/100*s;else{if(!/^-?[\d.]/.test(r))throw new Error(`[motionary] scroll: bad edge "${t}"`);o=parseFloat(r)}if(e[2]){const t="%"===e[4]?parseFloat(e[3])/100*s:parseFloat(e[3]);o+="+"===e[2]?t:-t}return o}function r(t,s,e,i){const r=t.trim().split(/\s+(?![+-]=)/),n=r[0]??"top",h=r[1]??"bottom";return s+o(n,e)-o(h,i)}const n=new Set,h=t=>{const s="string"==typeof t?document.querySelector(t):t;if(!s)throw new Error(`[motionary] scroll: element "${t}" not found`);return s};class l{constructor(t){if(this.start=0,this.end=0,this.progress=0,this.direction=1,this.isActive=!1,this.shown=0,this.last=-1,this.offs=[],this.pinEl=null,this.spacer=null,this.marks=[],this.killed=!1,this.refreshBound=()=>this.refresh(),"undefined"==typeof window)throw new Error("[motionary] scroll scenes need a browser window");this.options=t,this.trigger=h(t.trigger),this.scroller=t.scroller?h(t.scroller):window,t.pin&&this.setupPin(!0===t.pin?this.trigger:h(t.pin));const s=this.scroller,i=()=>this.update();s.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",this.refreshBound),this.offs.push(()=>s.removeEventListener("scroll",i),()=>window.removeEventListener("resize",this.refreshBound)),t.scrub&&"number"==typeof t.scrub&&this.offs.push(e.getTicker().add((t,s)=>this.smooth(s))),n.add(this),this.refresh()}pos(){const t=this.scroller;return t===window?this.options.horizontal?window.scrollX:window.scrollY:this.options.horizontal?t.scrollLeft:t.scrollTop}viewport(){const t=this.scroller;return t===window?this.options.horizontal?window.innerWidth:window.innerHeight:this.options.horizontal?t.clientWidth:t.clientHeight}refresh(){if(this.killed)return;const t=!!this.options.horizontal,s=(this.spacer||this.trigger).getBoundingClientRect(),e=this.scroller===window?{top:0,left:0}:this.scroller.getBoundingClientRect(),i=(t?s.left-e.left:s.top-e.top)+this.pos(),o=(this.pinEl?t?this.pinEl.offsetWidth:this.pinEl.offsetHeight:t?s.width:s.height)||0,n=this.viewport();this.start=r(this.options.start||(t?"left right":"top bottom"),i,o,n);const h=this.options.end||(t?"right left":"bottom top");this.end=/^\+=/.test(h.trim())?this.start+parseFloat(h.trim().slice(2)):r(h,i,o,n),this.end<=this.start&&(this.end=this.start+1),this.spacer&&this.pinEl&&(this.spacer.style[t?"paddingRight":"paddingBottom"]=this.end-this.start+"px"),this.drawMarkers(n),this.last=-1,this.update()}update(){if(this.killed)return;const t=this.pos(),s=Math.min(1,Math.max(0,(t-this.start)/(this.end-this.start)));t!==this.last&&this.last>=0&&(this.direction=t>this.last?1:-1);const e=this.progress,i=this.isActive;this.progress=s,this.isActive=t>this.start&&t<this.end,this.last=t;const o=this.options;if(this.isActive!==i||0===e&&1===s||1===e&&0===s){const t=[];s>0&&0===e&&t.push(["onEnter",0]),1===s&&e<1&&t.push(["onLeave",1]),s<1&&1===e&&t.push(["onEnterBack",2]),0===s&&e>0&&t.push(["onLeaveBack",3]);for(const[s,e]of t)o[s]?.(this),o.scrub||this.act(e);if(o.toggleClass&&this.trigger.classList.toggle(o.toggleClass,this.isActive),o.onToggle?.(this),o.once&&1===s)return this.applyPin(1),void this.kill(!0)}this.applyPin(s),!0===o.scrub&&o.animation&&(o.animation.progress=s),o.onUpdate?.(this)}smooth(t){const s=this.options.animation;if(!s)return;const e=1-Math.exp(-t/Math.max(1,this.options.scrub));this.shown+=(this.progress-this.shown)*e,Math.abs(this.progress-this.shown)<5e-4&&(this.shown=this.progress),s.progress=this.shown}act(t){const s=this.options.animation;if(!s)return;const e=(this.options.actions||"play none none reverse").split(/\s+/)[t]||"none";"play"===e?s.play():"pause"===e?s.pause():"resume"===e?s.play():"reverse"===e?s.reverse():"restart"===e?s.restart():"reset"===e?(s.pause(),s.seek(0)):"complete"===e&&(s.pause(),s.progress=1)}setupPin(t){this.pinEl=t;const s=document.createElement("div");s.className="usa-pin-spacer",s.style.boxSizing="content-box",t.parentNode?.insertBefore(s,t),s.appendChild(t),this.spacer=s,this.offs.push(()=>{t.style.position=t.style.top=t.style.left=t.style.width=t.style.transform="",s.parentNode?.insertBefore(t,s),s.remove()})}applyPin(t){const s=this.pinEl,e=this.spacer;if(!s||!e)return;const i=!!this.options.horizontal;if(t>0&&t<1&&this.scroller===window){const t=e.getBoundingClientRect(),o=this.start-(i?t.left+window.scrollX:t.top+window.scrollY);s.style.position="fixed",s.style.width=`${t.width}px`,s.style.left=i?-o+"px":`${t.left}px`,s.style.top=i?`${t.top}px`:-o+"px",s.style.transform=""}else{s.style.position=s.style.top=s.style.left=s.style.width="";const e=t>=1?this.end-this.start:t>0?this.pos()-this.start:0;s.style.transform=e?i?`translateX(${e}px)`:`translateY(${e}px)`:""}}drawMarkers(t){this.marks.forEach(t=>t.remove()),this.marks=[];const s=this.options.markers;if(!s)return;const e="object"==typeof s&&s.color||"#e11d48",i=!!this.options.horizontal,r=this.scroller===window?document.body:this.scroller,n=(t,s,e,o)=>{const n=document.createElement("div");n.className="usa-scroll-marker",n.textContent=t,n.setAttribute("aria-hidden","true"),Object.assign(n.style,{position:e?"fixed":"absolute",[i?"left":"top"]:`${s}px`,[i?"top":"right"]:"0",[i?"height":"width"]:"80px",[i?"borderLeft":"borderTop"]:`2px solid ${o}`,color:o,font:"600 11px/1.2 ui-monospace,monospace",padding:"2px 4px",zIndex:"2147483646",pointerEvents:"none",background:"rgba(255,255,255,.7)"}),(e?document.body:r).appendChild(n),this.marks.push(n)},h=(t,s)=>(t||s).trim().split(/\s+(?![+-]=)/)[1]??"bottom";n("start "+(0|this.start),this.start,!1,e),n("end "+(0|this.end),this.end,!1,e),n("scroller-start",o(h(this.options.start,"top bottom"),t),!0,"#16a34a"),/^\+=/.test((this.options.end||"").trim())||n("scroller-end",o(h(this.options.end,"bottom top"),t),!0,"#2563eb")}kill(t=!1){this.killed||(this.killed=!0,t||this.options.animation?.pause(),this.offs.splice(0).forEach(t=>t()),this.marks.forEach(t=>t.remove()),n.delete(this))}}function a(t){return new l(t)}function p(){n.forEach(t=>t.refresh())}function c(){Array.from(n).forEach(t=>t.kill())}const d=()=>Array.from(n),f={id:"scroll",version:s.RUNTIME_VERSION,tier:"basic",requires:["core"],api:{scrollScene:a,refreshScenes:p,killScenes:c,allScenes:d,parseEdge:o,resolveRule:r,ScrollScene:l}};s.register(f),t.ScrollScene=l,t.allScenes=d,t.killScenes=c,t.parseEdge=o,t.refreshScenes=p,t.resolveRule=r,t.scroll=f,t.scrollScene=a}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/scroll.iife.js.map
1
+ !function(t,s,e){"use strict";const i={top:0,left:0,center:.5,bottom:1,right:1};function o(t,s){const e=/^([a-z]+|-?[\d.]+%|-?[\d.]+(?:px)?)?\s*(?:([+-])=\s*(-?[\d.]+)(px|%)?)?$/.exec(t.trim());if(!e)throw new Error(`[motionary] scroll: bad edge "${t}"`);let o=0;const r=e[1]||"0";if(r in i)o=i[r]*s;else if(r.endsWith("%"))o=parseFloat(r)/100*s;else{if(!/^-?[\d.]/.test(r))throw new Error(`[motionary] scroll: bad edge "${t}"`);o=parseFloat(r)}if(e[2]){const t="%"===e[4]?parseFloat(e[3])/100*s:parseFloat(e[3]);o+="+"===e[2]?t:-t}return o}function r(t,s,e,i){const r=t.trim().split(/\s+(?![+-]=)/),n=r[0]??"top",h=r[1]??"bottom";return s+o(n,e)-o(h,i)}const n=new Set,h=t=>{const s="string"==typeof t?document.querySelector(t):t;if(!s)throw new Error(`[motionary] scroll: element "${t}" not found`);return s};class l{constructor(t){if(this.start=0,this.end=0,this.progress=0,this.direction=1,this.isActive=!1,this.shown=0,this.last=-1,this.offs=[],this.pinEl=null,this.spacer=null,this.marks=[],this.killed=!1,this.refreshBound=()=>this.refresh(),"undefined"==typeof window)throw new Error("[motionary] scroll scenes need a browser window");this.options=t,this.trigger=h(t.trigger),t.start&&r(t.start,0,0,0),t.end&&!/^\+=/.test(t.end.trim())&&r(t.end,0,0,0),this.scroller=t.scroller?h(t.scroller):window,t.pin&&this.setupPin(!0===t.pin?this.trigger:h(t.pin));const s=this.scroller,i=()=>this.update();s.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",this.refreshBound),this.offs.push(()=>s.removeEventListener("scroll",i),()=>window.removeEventListener("resize",this.refreshBound)),t.scrub&&"number"==typeof t.scrub&&this.offs.push(e.getTicker().add((t,s)=>this.smooth(s))),n.add(this),this.refresh()}pos(){const t=this.scroller;return t===window?this.options.horizontal?window.scrollX:window.scrollY:this.options.horizontal?t.scrollLeft:t.scrollTop}viewport(){const t=this.scroller;return t===window?this.options.horizontal?window.innerWidth:window.innerHeight:this.options.horizontal?t.clientWidth:t.clientHeight}refresh(){if(this.killed)return;const t=!!this.options.horizontal,s=(this.spacer||this.trigger).getBoundingClientRect(),e=this.scroller===window?{top:0,left:0}:this.scroller.getBoundingClientRect(),i=(t?s.left-e.left:s.top-e.top)+this.pos(),o=(this.pinEl?t?this.pinEl.offsetWidth:this.pinEl.offsetHeight:t?s.width:s.height)||0,n=this.viewport();this.start=r(this.options.start||(t?"left right":"top bottom"),i,o,n);const h=this.options.end||(t?"right left":"bottom top");this.end=/^\+=/.test(h.trim())?this.start+parseFloat(h.trim().slice(2)):r(h,i,o,n),this.end<=this.start&&(this.end=this.start+1),this.spacer&&this.pinEl&&(this.spacer.style[t?"paddingRight":"paddingBottom"]=this.end-this.start+"px"),this.drawMarkers(n),this.last=-1,this.update()}update(){if(this.killed)return;const t=this.pos(),s=Math.min(1,Math.max(0,(t-this.start)/(this.end-this.start)));t!==this.last&&this.last>=0&&(this.direction=t>this.last?1:-1);const e=this.progress,i=this.isActive;this.progress=s,this.isActive=t>this.start&&t<this.end,this.last=t;const o=this.options;if(this.isActive!==i||0===e&&1===s||1===e&&0===s){const t=[];s>0&&0===e&&t.push(["onEnter",0]),1===s&&e<1&&t.push(["onLeave",1]),s<1&&1===e&&t.push(["onEnterBack",2]),0===s&&e>0&&t.push(["onLeaveBack",3]);for(const[s,e]of t)o[s]?.(this),o.scrub||this.act(e);if(o.toggleClass&&this.trigger.classList.toggle(o.toggleClass,this.isActive),o.onToggle?.(this),o.once&&1===s)return this.applyPin(1),void this.kill(!0)}this.applyPin(s),!0===o.scrub&&o.animation&&(o.animation.progress=s),o.onUpdate?.(this)}smooth(t){const s=this.options.animation;if(!s)return;const e=1-Math.exp(-t/Math.max(1,this.options.scrub));this.shown+=(this.progress-this.shown)*e,Math.abs(this.progress-this.shown)<5e-4&&(this.shown=this.progress),s.progress=this.shown}act(t){const s=this.options.animation;if(!s)return;const e=(this.options.actions||"play none none reverse").split(/\s+/)[t]||"none";"play"===e?s.play():"pause"===e?s.pause():"resume"===e?s.play():"reverse"===e?s.reverse():"restart"===e?s.restart():"reset"===e?(s.pause(),s.seek(0)):"complete"===e&&(s.pause(),s.progress=1)}setupPin(t){this.pinEl=t;const s=document.createElement("div");s.className="usa-pin-spacer",s.style.boxSizing="content-box",t.parentNode?.insertBefore(s,t),s.appendChild(t),this.spacer=s,this.offs.push(()=>{t.style.position=t.style.top=t.style.left=t.style.width=t.style.transform="",s.parentNode?.insertBefore(t,s),s.remove()})}applyPin(t){const s=this.pinEl,e=this.spacer;if(!s||!e)return;const i=!!this.options.horizontal;if(t>0&&t<1&&this.scroller===window){const t=e.getBoundingClientRect(),o=this.start-(i?t.left+window.scrollX:t.top+window.scrollY);s.style.position="fixed",s.style.width=`${t.width}px`,s.style.left=i?-o+"px":`${t.left}px`,s.style.top=i?`${t.top}px`:-o+"px",s.style.transform=""}else{s.style.position=s.style.top=s.style.left=s.style.width="";const e=t>=1?this.end-this.start:t>0?this.pos()-this.start:0;s.style.transform=e?i?`translateX(${e}px)`:`translateY(${e}px)`:""}}drawMarkers(t){this.marks.forEach(t=>t.remove()),this.marks=[];const s=this.options.markers;if(!s)return;const e="object"==typeof s&&s.color||"#e11d48",i=!!this.options.horizontal,r=this.scroller===window?document.body:this.scroller,n=(t,s,e,o)=>{const n=document.createElement("div");n.className="usa-scroll-marker",n.textContent=t,n.setAttribute("aria-hidden","true"),Object.assign(n.style,{position:e?"fixed":"absolute",[i?"left":"top"]:`${s}px`,[i?"top":"right"]:"0",[i?"height":"width"]:"80px",[i?"borderLeft":"borderTop"]:`2px solid ${o}`,color:o,font:"600 11px/1.2 ui-monospace,monospace",padding:"2px 4px",zIndex:"2147483646",pointerEvents:"none",background:"rgba(255,255,255,.7)"}),(e?document.body:r).appendChild(n),this.marks.push(n)},h=(t,s)=>(t||s).trim().split(/\s+(?![+-]=)/)[1]??"bottom";n("start "+(0|this.start),this.start,!1,e),n("end "+(0|this.end),this.end,!1,e),n("scroller-start",o(h(this.options.start,"top bottom"),t),!0,"#16a34a"),/^\+=/.test((this.options.end||"").trim())||n("scroller-end",o(h(this.options.end,"bottom top"),t),!0,"#2563eb")}kill(t=!1){this.killed||(this.killed=!0,t||this.options.animation?.pause(),this.offs.splice(0).forEach(t=>t()),this.marks.forEach(t=>t.remove()),n.delete(this))}}function a(t){return new l(t)}function p(){n.forEach(t=>t.refresh())}function c(){Array.from(n).forEach(t=>t.kill())}const d=()=>Array.from(n),f={id:"scroll",version:s.RUNTIME_VERSION,tier:"basic",requires:["core"],api:{scrollScene:a,refreshScenes:p,killScenes:c,allScenes:d,parseEdge:o,resolveRule:r,ScrollScene:l}};s.register(f),t.ScrollScene=l,t.allScenes=d,t.killScenes=c,t.parseEdge=o,t.refreshScenes=p,t.resolveRule=r,t.scroll=f,t.scrollScene=a}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/scroll.iife.js.map
@@ -1,5 +1,5 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-BgdHqx0s.js';
2
- import { g as getTicker } from '../chunks/ticker-vHgAp_Uz.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-DG7d_uS7.js';
2
+ import { g as getTicker } from '../chunks/ticker-DIuv8agN.js';
3
3
 
4
4
  /**
5
5
  * `motionary/runtime/scroll` (10.2) — scroll-linked scenes, an original
@@ -79,6 +79,12 @@ class ScrollScene {
79
79
  throw new Error('[motionary] scroll scenes need a browser window');
80
80
  this.options = o;
81
81
  this.trigger = q(o.trigger);
82
+ // 13.1.0: a bad start / end throws here — before any listener, ticker, pin or registry entry exists (it used to throw
83
+ // from the first refresh() and leave all of those behind, re-throwing on every resize)
84
+ if (o.start)
85
+ resolveRule(o.start, 0, 0, 0);
86
+ if (o.end && !/^\+=/.test(o.end.trim()))
87
+ resolveRule(o.end, 0, 0, 0);
82
88
  this.scroller = o.scroller ? q(o.scroller) : window;
83
89
  if (o.pin)
84
90
  this.setupPin(o.pin === true ? this.trigger : q(o.pin));
@@ -289,4 +295,4 @@ const allScenes = () => Array.from(scenes);
289
295
  const scroll = { id: 'scroll', version: RUNTIME_VERSION, tier: 'basic', requires: ['core'], api: { scrollScene, refreshScenes, killScenes, allScenes, parseEdge, resolveRule, ScrollScene } };
290
296
 
291
297
  export { ScrollScene, allScenes, killScenes, parseEdge, refreshScenes, resolveRule, scroll, scrollScene };
292
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/scroll.js.map
298
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/scroll.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-D3N8O2Nc.cjs');
3
+ var registry = require('../chunks/registry-CeBi49cV.cjs');
4
4
  var ease = require('../chunks/ease-HwYZnZat.cjs');
5
5
 
6
6
  /**
@@ -281,4 +281,4 @@ exports.SmoothScroll = SmoothScroll;
281
281
  exports.allSmooth = allSmooth;
282
282
  exports.smooth = smooth;
283
283
  exports.smoothScroll = smoothScroll;
284
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/smooth.cjs.map
284
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/smooth.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(t,e,i){"use strict";const s=(t,e,i)=>Math.min(i,Math.max(e,t)),h=new Set;class o{constructor(t={}){if(this.current=0,this.target=0,this.velocity=0,this.isScrolling=!1,this.stopped=!1,this.reduced=!1,this.off=[],this.tickOff=null,this.written=NaN,this.glide=null,this.listeners=new Set,this.touchY=0,"undefined"==typeof window)throw new Error("[motionary] smoothScroll() needs a browser (call it on the client)");this.o=t;const e=t.wrapper||window;this.win=e===window,this.el=this.win?document.scrollingElement||document.documentElement:e,t.onScroll&&this.listeners.add(t.onScroll),this.current=this.target=this.native;const i="function"==typeof matchMedia?matchMedia("(prefers-reduced-motion: reduce)"):null,s=()=>{this.reduced=!!i?.matches&&!t.force,this.el.classList.toggle("usa-smooth",!this.reduced&&!this.stopped)};s(),i&&this.on(i,"change",s);const o=this.win?window:this.el;this.on(o,"wheel",t=>this.wheel(t),{passive:!1}),t.touch&&(this.on(o,"touchstart",t=>this.touchY=this.axis(t.touches[0].clientX,t.touches[0].clientY),{passive:!0}),this.on(o,"touchmove",e=>{if(!this.active||1!==e.touches.length)return;const i=this.axis(e.touches[0].clientX,e.touches[0].clientY);e.preventDefault(),this.push((this.touchY-i)*(t.touchMultiplier??1.5)),this.touchY=i},{passive:!1})),this.on(o,"scroll",()=>{Math.abs(this.native-this.written)<=1||(this.halt(),this.glide=null,this.current=this.target=this.native)},{passive:!0}),!1!==t.anchors&&this.on(this.win?document:this.el,"click",t=>this.anchor(t)),h.add(this)}on(t,e,i,s){t.addEventListener(e,i,s),this.off.push(()=>t.removeEventListener(e,i,s))}get horizontal(){return"horizontal"===this.o.orientation}axis(t,e){return this.horizontal?t:e}get native(){return this.horizontal?this.el.scrollLeft:this.el.scrollTop}get limit(){return this.horizontal?this.el.scrollWidth-this.el.clientWidth:this.el.scrollHeight-this.el.clientHeight}get progress(){return this.limit?this.current/this.limit:0}get active(){return!this.stopped&&!this.reduced}wheel(t){if(!this.active||t.ctrlKey)return;for(let e=t.target;e&&e!==this.el;e=e.parentElement){if(e.hasAttribute?.("data-smooth-ignore"))return;if(e!==document.body&&e.scrollHeight>e.clientHeight+1&&/(auto|scroll)/.test(getComputedStyle(e).overflowY))return}const e=1===t.deltaMode?40:2===t.deltaMode?this.horizontal?this.el.clientWidth:this.el.clientHeight:1,i=(this.horizontal&&t.deltaX||t.deltaY)*e*(this.o.wheelMultiplier??1);s(this.target+i,0,this.limit)===this.target&&(this.target<=0||this.target>=this.limit)||(t.preventDefault(),this.push(i))}push(t){this.glide=null,this.target=s(this.target+t,0,this.limit),this.start()}start(){this.tickOff||(this.isScrolling=!0,this.tickOff=e.requireModule("core","motionary/runtime/smooth").getTicker().add((t,e)=>this.tick(e)))}tick(t){const e=this.current;if(this.glide){const e=this.glide;e.t=Math.min(e.d,e.t+t),this.current=e.from+(e.to-e.from)*e.ease(e.d?e.t/e.d:1),e.t>=e.d&&(this.current=this.target=e.to,this.glide=null,e.done?.())}else{if(this.o.duration)return this.glide={from:this.current,to:this.target,t:0,d:this.o.duration,ease:this.easeOf(this.o.ease)},this.tick(t);{const e=1-Math.pow(1-s(this.o.lerp??.1,.001,1),t/(1e3/60));this.current+=(this.target-this.current)*e,Math.abs(this.target-this.current)<.5&&(this.current=this.target)}}this.velocity=this.current-e,this.write(this.current),this.listeners.forEach(t=>t(this)),this.current!==this.target||this.glide||this.halt()}easeOf(t){return"function"==typeof t?t:i.parseEase(t||"expo-out")}write(t){const e=Math.round(100*t)/100;Math.abs(this.native-e)<.5||(this.horizontal?this.el.scrollLeft=e:this.el.scrollTop=e,this.written=this.native)}halt(){this.tickOff?.(),this.tickOff=null,this.isScrolling=!1,this.velocity=0}anchor(t){if(t.defaultPrevented||t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;const e=t.target.closest?.('a[href*="#"]');if(!e||"_blank"===e.target)return;const i=new URL(e.href,location.href);if(i.origin!==location.origin||i.pathname!==location.pathname||!i.hash)return;const s=decodeURIComponent(i.hash.slice(1)),h="top"===s?null:document.getElementById(s);if("top"!==s&&!h)return;if(!this.win&&h&&!this.el.contains(h))return;t.preventDefault();const o="object"==typeof this.o.anchors&&this.o.anchors.offset||0;this.scrollTo(h||0,{offset:o,onComplete:()=>{h&&(h.hasAttribute("tabindex")||/^(a|button|input|select|textarea)$/i.test(h.tagName)||h.setAttribute("tabindex","-1"),h.focus({preventScroll:!0}))}}),history.pushState&&history.pushState(null,"",i.hash)}scrollTo(t,e={}){let i;if("number"==typeof t)i=t;else{const e="string"==typeof t?document.querySelector(t):t;if(!e)return;const s=e.getBoundingClientRect(),h=this.win?0:this.axis(this.el.getBoundingClientRect().left,this.el.getBoundingClientRect().top);i=this.native+this.axis(s.left,s.top)-h}if(i=s(i+(e.offset||0),0,this.limit),e.immediate||!this.active)return this.halt(),this.glide=null,this.current=this.target=i,this.write(i),void e.onComplete?.();this.target=i,this.glide={from:this.current,to:i,t:0,d:e.duration??this.o.duration??Math.min(1200,400+.4*Math.abs(i-this.current)),ease:this.easeOf(e.ease??this.o.ease),done:e.onComplete},this.start()}stop(){this.stopped=!0,this.halt(),this.el.classList.remove("usa-smooth")}resume(){this.stopped=!1,this.current=this.target=this.native,this.el.classList.toggle("usa-smooth",!this.reduced)}onScroll(t){return this.listeners.add(t),()=>this.listeners.delete(t)}destroy(){this.halt(),this.off.forEach(t=>t()),this.off=[],this.listeners.clear(),this.el.classList.remove("usa-smooth"),h.delete(this)}}function r(t={}){return new o(t)}const n=()=>Array.from(h),l={id:"smooth",version:e.RUNTIME_VERSION,tier:"standard",requires:["core"],api:{smoothScroll:r,allSmooth:n,SmoothScroll:o}};e.register(l),t.SmoothScroll=o,t.allSmooth=n,t.smooth=l,t.smoothScroll=r}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/smooth.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/smooth.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-BgdHqx0s.js';
1
+ import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-DG7d_uS7.js';
2
2
  import { p as parseEase } from '../chunks/ease-XN8_0sXu.js';
3
3
 
4
4
  /**
@@ -276,4 +276,4 @@ const allSmooth = () => Array.from(instances);
276
276
  const smooth = { id: 'smooth', version: RUNTIME_VERSION, tier: 'standard', requires: ['core'], api: { smoothScroll, allSmooth, SmoothScroll } };
277
277
 
278
278
  export { SmoothScroll, allSmooth, smooth, smoothScroll };
279
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/smooth.js.map
279
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/smooth.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-D3N8O2Nc.cjs');
3
+ var registry = require('../chunks/registry-CeBi49cV.cjs');
4
4
 
5
5
  /**
6
6
  * `motionary/runtime/text` (10.3) — split text into characters, words and
@@ -144,4 +144,4 @@ const text = { id: 'text', version: registry.RUNTIME_VERSION, tier: 'basic', req
144
144
  exports.segment = segment;
145
145
  exports.splitText = splitText;
146
146
  exports.text = text;
147
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/text.cjs.map
147
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/text.cjs.map
@@ -1,2 +1,2 @@
1
1
  !function(e,t){"use strict";function n(e,t="chars"){const n=Intl.Segmenter;return"chars"===t?n?Array.from(new n(void 0,{granularity:"grapheme"}).segment(e),e=>e.segment):Array.from(e):e.split(/(\s+)/).filter(e=>""!==e)}function r(e,t={}){if("undefined"==typeof document)throw new Error("[motionary] splitText needs a DOM — use segment() on the server");const s=(o=t.type,new Set((o||"chars,words").split(/[\s,]+/).filter(Boolean)));var o;const i=t.className||"usa-split",a=e.innerHTML,l=e.getAttribute("aria-label"),c=(e.textContent||"").replace(/\s+/g," ").trim(),d=[],h=[],p=(e,t)=>{const n=document.createElement("span");return n.className=e,n.setAttribute("aria-hidden","true"),n.style.display="inline-block",void 0!==t&&(n.textContent=t),n},u=s.has("words")||s.has("lines"),f=e=>{for(const t of Array.from(e.childNodes))if(3===t.nodeType){const e=document.createDocumentFragment();for(const r of n(t.textContent||"","words")){if(/^\s+$/.test(r)){e.appendChild(document.createTextNode(" "));continue}const t=u?p(`${i}-word`):null;if(s.has("chars"))for(const s of n(r,"chars")){const n=p(`${i}-char`,s);d.push(n),(t||e).appendChild(n)}else t?t.textContent=r:e.appendChild(document.createTextNode(r));t&&(h.push(t),e.appendChild(t))}t.replaceWith(e)}else 1!==t.nodeType||t.classList.contains(`${i}-word`)||f(t)};f(e),c&&null===l&&e.setAttribute("aria-label",c),e.setAttribute("data-split",Array.from(s).join(" "));const m=[];if(s.has("lines")&&h.length){let t=NaN,n=[];const r=[];for(const e of h){const s=Math.round(e.offsetTop);n.length&&Math.abs(s-t)>2&&(r.push(n),n=[]),n.length||(t=s),n.push(e)}n.length&&r.push(n);if(h.every(t=>t.parentElement===e)){e.textContent="";for(const t of r){const n=p(`${i}-line`);n.style.display="block",t.forEach((e,t)=>{t&&n.appendChild(document.createTextNode(" ")),n.appendChild(e)}),m.push(n),e.appendChild(n)}}else r.forEach((e,t)=>e.forEach(e=>e.setAttribute("data-line",String(t))))}if(!1!==t.indexVar)for(const e of[d,h,m])e.forEach((e,t)=>e.style.setProperty("--i",String(t)));const y={chars:d,words:s.has("words")?h:[],lines:m,revert(){e.innerHTML=a,e.removeAttribute("data-split"),null===l&&e.removeAttribute("aria-label")},resplit:()=>(y.revert(),r(e,t))};return y}const s={id:"text",version:t.RUNTIME_VERSION,tier:"basic",requires:["core"],api:{segment:n,splitText:r}};t.register(s),e.segment=n,e.splitText=r,e.text=s}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime);
2
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/text.iife.js.map
2
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/text.iife.js.map
@@ -1,4 +1,4 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-BgdHqx0s.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-DG7d_uS7.js';
2
2
 
3
3
  /**
4
4
  * `motionary/runtime/text` (10.3) — split text into characters, words and
@@ -140,4 +140,4 @@ function splitText(el, o = {}) {
140
140
  const text = { id: 'text', version: RUNTIME_VERSION, tier: 'basic', requires: ['core'], api: { segment, splitText } };
141
141
 
142
142
  export { segment, splitText, text };
143
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/text.js.map
143
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/text.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-D3N8O2Nc.cjs');
4
- var tween = require('../chunks/tween-CO_7OEFf.cjs');
5
- require('../chunks/ticker-D73Bn74b.cjs');
3
+ var registry = require('../chunks/registry-CeBi49cV.cjs');
4
+ var tween = require('../chunks/tween-CDewrfuy.cjs');
5
+ require('../chunks/ticker-D9DzTlll.cjs');
6
6
  require('../chunks/ease-HwYZnZat.cjs');
7
7
 
8
8
  const ALLOWED = /*#__PURE__*/ new Set(['time', 'value', 'thisComp', 'thisLayer', 'thisProperty', 'Math', 'wiggle', 'loopOut', 'loopIn', 'loopOutDuration', 'loopInDuration', 'linear', 'ease', 'easeIn', 'easeOut', 'clamp', 'valueAtTime', 'framesToTime', 'timeToFrames', 'degreesToRadians', 'radiansToDegrees', 'add', 'sub', 'mul', 'div', 'length', 'true', 'false', '$bm_rt', 'index']);
@@ -1160,4 +1160,4 @@ exports.transformAt = transformAt;
1160
1160
  exports.trimContours = trimContours;
1161
1161
  exports.unzipEntries = unzipEntries;
1162
1162
  exports.vector = vector;
1163
- //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.0.1/dist/runtime/vector.cjs.map
1163
+ //# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.1.0/dist/runtime/vector.cjs.map