motionary 13.4.0 → 13.5.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.
- package/CHANGELOG.md +43 -0
- package/README.md +9 -6
- package/dist/chunks/{anim-image-DnpOI25h.cjs → anim-image-CSVlsA0t.cjs} +2 -2
- package/dist/chunks/{anim-image-Czp1v-zv.js → anim-image-D6yGJ5SF.js} +2 -2
- package/dist/chunks/{audio-DJkvNk0A.js → audio-CZgCXg1t.js} +4 -4
- package/dist/chunks/{audio-D7Dk2gUF.cjs → audio-D0LwPShE.cjs} +4 -4
- package/dist/chunks/{badge-wall-C6St1WyC.js → badge-wall-C0gJ_Kck.js} +2 -2
- package/dist/chunks/{badge-wall-BkqFzeUf.cjs → badge-wall-CITexuW7.cjs} +2 -2
- package/dist/chunks/{base-Do-R_9gU.cjs → base-BvH4nAcv.cjs} +15 -27
- package/dist/chunks/{base-Be98yNyq.js → base-C9CJrhL3.js} +15 -27
- package/dist/chunks/{bg-generator-C9ee__nJ.cjs → bg-generator-CML8tPN8.cjs} +2 -2
- package/dist/chunks/{bg-generator-YTB0quZa.js → bg-generator-oRwfTA5B.js} +2 -2
- package/dist/chunks/bind-B_CTL6Qn.js +1 -1
- package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
- package/dist/chunks/{builtins-DGP3jBW1.cjs → builtins-DweCp29Z.cjs} +3 -3
- package/dist/chunks/{builtins-BQZ7idez.js → builtins-SwWQKzb-.js} +3 -3
- package/dist/chunks/{carousel-9IQYg8lJ.cjs → carousel-DU3rHTq0.cjs} +2 -2
- package/dist/chunks/{carousel-BQb8S9_i.js → carousel-u6rqMqGu.js} +2 -2
- package/dist/chunks/{cart-drawer-DsCXMYO2.js → cart-drawer-CEIZfCw8.js} +2 -2
- package/dist/chunks/{cart-drawer-DSRylorb.cjs → cart-drawer-CkFMKMhx.cjs} +2 -2
- package/dist/chunks/{code-export-CTdTKJWS.cjs → code-export-PdGSl9WE.cjs} +2 -2
- package/dist/chunks/{code-export-BAM59KC-.js → code-export-wdrBIWRv.js} +2 -2
- package/dist/chunks/{color-picker-Cgj4F5G-.cjs → color-picker-B_xWVH8H.cjs} +2 -2
- package/dist/chunks/{color-picker-zYIs1UU8.js → color-picker-CN8ThZfh.js} +2 -2
- package/dist/chunks/{command-palette-WCKbmW2N.js → command-palette-IJuNiXhv.js} +2 -2
- package/dist/chunks/{command-palette-Oiq7KY7o.cjs → command-palette-ISetAeX1.cjs} +2 -2
- package/dist/chunks/{core-RZkPEx8i.js → core-B9Sjd4AV.js} +2 -2
- package/dist/chunks/{core-FB2gL64M.js → core-BZhM_0Zh.js} +2 -2
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/{core-B2156q7g.cjs → core-DbAYRKnS.cjs} +2 -2
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/{core-6FhnH_Kv.cjs → core-DjjKLmZ6.cjs} +2 -2
- package/dist/chunks/{countdown-oB1KGHQe.cjs → countdown-RQViryt7.cjs} +2 -2
- package/dist/chunks/{countdown-BKcrUeQ5.js → countdown-WDZxXQz7.js} +2 -2
- package/dist/chunks/{date-picker-Bcez28ox.cjs → date-picker-BgApzPNn.cjs} +2 -2
- package/dist/chunks/{date-picker-Dx4vGYze.js → date-picker-D4yqKTMJ.js} +2 -2
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/{equalizer-D8SG0IDP.js → equalizer-CwGL1sD8.js} +2 -2
- package/dist/chunks/{equalizer-XIVScpXr.cjs → equalizer-_eD_ZdCl.cjs} +2 -2
- package/dist/chunks/{festival-banner-TmiGZdmC.cjs → festival-banner-Bs18K0MJ.cjs} +2 -2
- package/dist/chunks/{festival-banner-C6y_nEAX.js → festival-banner-Dslu8K1g.js} +2 -2
- package/dist/chunks/{field-Do9yU2oB.js → field-DALTalya.js} +2 -2
- package/dist/chunks/{field-Bg6pHLD3.cjs → field-Dwq8-CLN.cjs} +2 -2
- package/dist/chunks/{fx-O90ZgYwV.cjs → fx-DaVuB89C.cjs} +2 -2
- package/dist/chunks/{fx-Wd1GKAzZ.js → fx-Dc1sMyNg.js} +2 -2
- package/dist/chunks/{generative-BTya0iHP.cjs → generative-BKoxWOSP.cjs} +2 -2
- package/dist/chunks/{generative-DkX6SvrL.js → generative-DWdAwxYB.js} +2 -2
- package/dist/chunks/{gl-scene-CZEQJPar.js → gl-scene-BjQkVhUh.js} +3 -3
- package/dist/chunks/{gl-scene-SRaGcmCA.cjs → gl-scene-Ccn_PpRS.cjs} +3 -3
- package/dist/chunks/{globe-D_S-FB8k.js → globe-D56xlOmk.js} +2 -2
- package/dist/chunks/{globe-BOS1Kb8J.cjs → globe-DA0jyb6s.cjs} +2 -2
- package/dist/chunks/{gpu-B8vgh4lW.js → gpu-7AY-uzNc.js} +4 -4
- package/dist/chunks/{gpu--UifKXUA.cjs → gpu-DTO3JmAF.cjs} +4 -4
- package/dist/chunks/{gpu-particles-DaRztimn.js → gpu-particles-4DBj91f-.js} +2 -2
- package/dist/chunks/{gpu-particles-DICAeqwO.cjs → gpu-particles-wEO_rds1.cjs} +2 -2
- package/dist/chunks/index-tags-B-JBecYg.js +1 -1
- package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
- package/dist/chunks/key-click-BLm3BI8_.js +1 -1
- package/dist/chunks/key-click-v7I4K5Sr.cjs +1 -1
- package/dist/chunks/{keyframes-DWmt9GdV.cjs → keyframes-DyniziL4.cjs} +2 -2
- package/dist/chunks/{keyframes-DE4F_oWc.js → keyframes-t521frAa.js} +2 -2
- package/dist/chunks/{leaderboard-BKmKMStS.cjs → leaderboard-DvSSQ8o3.cjs} +2 -2
- package/dist/chunks/{leaderboard-CdMYDeaT.js → leaderboard-_UPi0KQX.js} +2 -2
- package/dist/chunks/{location-card-C_3CQ3u-.js → location-card-Bq596aK5.js} +2 -2
- package/dist/chunks/{location-card-Bxemk6MJ.cjs → location-card-DSPTApUe.cjs} +2 -2
- package/dist/chunks/{lottie-icon-Dyz8XJm5.cjs → lottie-icon-BoxkukMd.cjs} +2 -2
- package/dist/chunks/{lottie-icon-oGP5LQ4G.js → lottie-icon-pqBgCV0y.js} +2 -2
- package/dist/chunks/{lottie-player-Dr6ZGZZ9.js → lottie-player-C9X0Gp_E.js} +3 -3
- package/dist/chunks/{lottie-player-m8yiMFGM.cjs → lottie-player-D6YGOx39.cjs} +3 -3
- package/dist/chunks/{lyrics-BuVT1PyD.cjs → lyrics-CRB7dA1j.cjs} +2 -2
- package/dist/chunks/{lyrics-DlNbqyV3.js → lyrics-D7mzxVIq.js} +2 -2
- package/dist/chunks/{manifest-C6nei25r.js → manifest-CqfKtjeL.js} +2 -2
- package/dist/chunks/{manifest-DcyvsF07.cjs → manifest-xr3WET80.cjs} +2 -2
- package/dist/chunks/{menu-CZj0BChd.cjs → menu-CZ1zHTT9.cjs} +2 -2
- package/dist/chunks/{menu-hmi07frR.js → menu-XcdMtcfw.js} +2 -2
- package/dist/chunks/{menu-toggle-Bef1YqbK.cjs → menu-toggle-DGXN4VsN.cjs} +2 -2
- package/dist/chunks/{menu-toggle--mqC1pWc.js → menu-toggle-RD6Fu1Gm.js} +2 -2
- package/dist/chunks/{nav-morph-C7nb0-oA.cjs → nav-morph-C4rD3wrU.cjs} +2 -2
- package/dist/chunks/{nav-morph-k7sIJdS3.js → nav-morph-F6qzM20K.js} +2 -2
- package/dist/chunks/{otp-B9ctuDQG.js → otp-BJKyY7I3.js} +2 -2
- package/dist/chunks/{otp-VBvUiZhb.cjs → otp-DUyEWYMi.cjs} +2 -2
- package/dist/chunks/{pagination-BiVi2UVo.js → pagination-D6iMBStU.js} +2 -2
- package/dist/chunks/{pagination-DLTCrJwy.cjs → pagination-DHmYZZU9.cjs} +2 -2
- package/dist/chunks/{physics-playground-CJMHlyVL.cjs → physics-playground-BJx2yVvV.cjs} +3 -3
- package/dist/chunks/{physics-playground-DwL_sPea.js → physics-playground-C8jCWhgK.js} +3 -3
- package/dist/chunks/{player-BdKLax0N.js → player-BTaPvK8G.js} +4 -4
- package/dist/chunks/{player-CbCdaCgu.cjs → player-BZOkQbZ9.cjs} +4 -4
- package/dist/chunks/{presence-DnBQPaaY.js → presence-6eQ9t5vX.js} +2 -2
- package/dist/chunks/{presence-5lrgeDaX.cjs → presence-DAthlALi.cjs} +2 -2
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/{prize-wheel-CYH2ZPIu.js → prize-wheel-CpGVo8QG.js} +2 -2
- package/dist/chunks/{prize-wheel-BA1q90gH.cjs → prize-wheel-emDopI5c.cjs} +2 -2
- package/dist/chunks/{product-gallery-7iuP6mwb.js → product-gallery-BmnYLKAQ.js} +2 -2
- package/dist/chunks/{product-gallery-Dc7JVl8a.cjs → product-gallery-CKtSVhZk.cjs} +2 -2
- package/dist/chunks/{progress-ring-DDqq7gdF.cjs → progress-ring-C75O4MUi.cjs} +2 -2
- package/dist/chunks/{progress-ring-Ba9YULbX.js → progress-ring-CKgR1GRB.js} +2 -2
- package/dist/chunks/{prop-panel-CS-i1ddG.js → prop-panel-BjbCiPAB.js} +2 -2
- package/dist/chunks/{prop-panel-Dzx20-yH.cjs → prop-panel-DFqga6H5.cjs} +2 -2
- package/dist/chunks/{radar-BQo33pqi.cjs → radar-D-bZRrgs.cjs} +2 -2
- package/dist/chunks/{radar-DJ-g9iCt.js → radar-rBQT1BFh.js} +2 -2
- package/dist/chunks/{reactions-B64fCmEB.cjs → reactions-BL2iO8iy.cjs} +2 -2
- package/dist/chunks/{reactions-CLwwZmwU.js → reactions-CsdP0Su5.js} +2 -2
- package/dist/chunks/{registry-CyVCJneg.cjs → registry-CibnX7Ui.cjs} +2 -2
- package/dist/chunks/{registry-c80No5j_.cjs → registry-D4qv6B49.cjs} +2 -2
- package/dist/chunks/{registry-BEIhIRTY.js → registry-DKs_BiEo.js} +2 -2
- package/dist/chunks/{registry-BUmmzmpq.js → registry-Ng9TVXnA.js} +2 -2
- package/dist/chunks/{retro-button-BFF6rtya.js → retro-button-Bw4sqAkl.js} +2 -2
- package/dist/chunks/{retro-button-BQNrjtEi.cjs → retro-button-DrrBZ6w8.cjs} +2 -2
- package/dist/chunks/{rive-Dr8J-ESq.cjs → rive-D6X4J0Mi.cjs} +2 -2
- package/dist/chunks/{rive-C9ySVu0Q.js → rive-FjeW9KDl.js} +2 -2
- package/dist/chunks/{runtime-link-mepflyss.js → runtime-link-BZd9tPZE.js} +2 -2
- package/dist/chunks/{runtime-link-D3-QlIsO.cjs → runtime-link-DDGDuR6q.cjs} +2 -2
- package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
- package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
- package/dist/chunks/{scroll-scene-BWY-mgkQ.js → scroll-scene-CgFA-E0N.js} +4 -4
- package/dist/chunks/{scroll-scene-YLwbThAg.cjs → scroll-scene-Ch5d1PER.cjs} +4 -4
- package/dist/chunks/{segmented-B-Fafr8-.js → segmented-BEep92iW.js} +2 -2
- package/dist/chunks/{segmented-C1wgQyHN.cjs → segmented-CpB4mKIn.cjs} +2 -2
- package/dist/chunks/{shader-backdrop-BXGpaRMH.cjs → shader-backdrop-C4UhepvI.cjs} +2 -2
- package/dist/chunks/{shader-backdrop-DnT3eoNa.js → shader-backdrop-DC0ZvVMV.js} +2 -2
- package/dist/chunks/shared-Bf72wLyt.cjs +1 -1
- package/dist/chunks/shared-CkKHWrtJ.js +1 -1
- package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
- package/dist/chunks/shared-o9CtwHmi.js +1 -1
- package/dist/chunks/{sheet-V2M4Hqeg.cjs → sheet-B38ylIEW.cjs} +2 -2
- package/dist/chunks/{sheet-CtmrBo6Z.js → sheet-BHTMF8qx.js} +2 -2
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/{skeleton-reveal-CVrbqy61.js → skeleton-reveal-BMrbmru6.js} +2 -2
- package/dist/chunks/{skeleton-reveal-qCjodjPN.cjs → skeleton-reveal-Dsd3Wp0n.cjs} +2 -2
- package/dist/chunks/{sparkline-BUBWK0k8.cjs → sparkline-DeKhZpVo.cjs} +2 -2
- package/dist/chunks/{sparkline-B07Pc0F5.js → sparkline-htTaTcgs.js} +2 -2
- package/dist/chunks/{spring-p9RY-4VF.js → spring-DBCejV_z.js} +2 -2
- package/dist/chunks/{spring-B0v7o7dG.cjs → spring-XEl_diDJ.cjs} +2 -2
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/{suggestion-chips-CnCb3mOH.cjs → suggestion-chips-CAcbFTr4.cjs} +2 -2
- package/dist/chunks/{suggestion-chips-C5jM-6sb.js → suggestion-chips-Cj70JCtZ.js} +2 -2
- package/dist/chunks/{switch-Ch0OQ9TC.js → switch-CnSs8nDn.js} +2 -2
- package/dist/chunks/{switch-mpVeEIno.cjs → switch-DiTlApGd.cjs} +2 -2
- package/dist/chunks/{tab-bar-DUCZzsih.js → tab-bar-B7hFB974.js} +2 -2
- package/dist/chunks/{tab-bar-sXS1oYQ3.cjs → tab-bar-BBlVAqbq.cjs} +2 -2
- package/dist/chunks/{ticker-BFq0AxP5.cjs → ticker-Bcx-J0T3.cjs} +2 -2
- package/dist/chunks/{ticker-DtCFsNm7.js → ticker-DZN0D39q.js} +2 -2
- package/dist/chunks/{tip-ICi0K5SV.cjs → tip-VGS3qAUm.cjs} +2 -2
- package/dist/chunks/{tip-B-mmUYra.js → tip-ylGHoOIf.js} +2 -2
- package/dist/chunks/{toast-stack-BK0eWurx.cjs → toast-stack-DprisNp_.cjs} +3 -3
- package/dist/chunks/{toast-stack-DBGrj6zP.js → toast-stack-Z_5cS1Nz.js} +3 -3
- package/dist/chunks/{tween-DUYiyPH_.cjs → tween-C755kVRe.cjs} +2 -2
- package/dist/chunks/{tween-DehPKIbN.js → tween-DZdCTOBG.js} +2 -2
- package/dist/chunks/{upload-progress-fBjRmlqD.cjs → upload-progress-CEAWkP-p.cjs} +2 -2
- package/dist/chunks/{upload-progress-Bup8Iw7N.js → upload-progress-y7N0eaM4.js} +2 -2
- package/dist/chunks/{variants-BbO5akAC.cjs → variants-BtqEJuki.cjs} +2 -2
- package/dist/chunks/{variants-D7tUTCVW.js → variants-MxfB3UVB.js} +2 -2
- package/dist/chunks/viewport-BAXHhZLV.js +1 -1
- package/dist/chunks/viewport-EFYGqMNa.cjs +1 -1
- package/dist/chunks/{voice-button-A-NPMqJG.cjs → voice-button-9UauxvT9.cjs} +2 -2
- package/dist/chunks/{voice-button-Bxh_839h.js → voice-button-DFEoNe24.js} +2 -2
- package/dist/chunks/{weather-card-CtqBfWnZ.cjs → weather-card-4Eg6e43D.cjs} +2 -2
- package/dist/chunks/{weather-card-D2D8kYxm.js → weather-card-NR0i507J.js} +2 -2
- package/dist/chunks/{worker-canvas-DGSgO2ci.cjs → worker-canvas-BMBXAFWp.cjs} +2 -2
- package/dist/chunks/{worker-canvas-C0lQZbKy.js → worker-canvas-CPZvzrWQ.js} +2 -2
- package/dist/chunks/{xp-bar-BGJrZYex.js → xp-bar-DAbx1LZ_.js} +2 -2
- package/dist/chunks/{xp-bar-5PeQeB1Y.cjs → xp-bar-DkWfCTfB.cjs} +2 -2
- package/dist/components/a11y.cjs +2 -2
- package/dist/components/a11y.js +3 -3
- package/dist/components/ai.cjs +1 -1
- package/dist/components/ai.js +1 -1
- package/dist/components/angular.cjs +17 -41
- package/dist/components/angular.d.cts +2047 -8
- package/dist/components/angular.d.ts +2047 -8
- package/dist/components/angular.js +17 -41
- package/dist/components/background.cjs +3 -3
- package/dist/components/background.js +3 -3
- package/dist/components/bridge.cjs +2 -2
- package/dist/components/bridge.js +2 -2
- package/dist/components/cards.cjs +3 -3
- package/dist/components/cards.js +3 -3
- package/dist/components/click.cjs +4 -4
- package/dist/components/click.js +4 -4
- package/dist/components/core.cjs +1 -1
- package/dist/components/core.js +1 -1
- package/dist/components/depth.cjs +4 -4
- package/dist/components/depth.js +4 -4
- package/dist/components/design.cjs +2 -5
- package/dist/components/design.js +2 -5
- package/dist/components/dotlottie.cjs +4 -5
- package/dist/components/dotlottie.js +4 -5
- package/dist/components/dsl.cjs +2 -3
- package/dist/components/dsl.js +2 -3
- package/dist/components/effects.cjs +6 -10
- package/dist/components/effects.js +9 -13
- package/dist/components/engine.cjs +2 -2
- package/dist/components/engine.js +3 -3
- package/dist/components/feedback.cjs +2 -2
- package/dist/components/feedback.js +2 -2
- package/dist/components/fx-3d.cjs +3 -4
- package/dist/components/fx-3d.js +3 -4
- package/dist/components/fx-ai.cjs +2 -3
- package/dist/components/fx-ai.js +2 -3
- package/dist/components/fx-chart.cjs +2 -3
- package/dist/components/fx-chart.js +2 -3
- package/dist/components/fx-cinema.cjs +2 -3
- package/dist/components/fx-cinema.js +2 -3
- package/dist/components/fx-cyber.cjs +2 -3
- package/dist/components/fx-cyber.js +2 -3
- package/dist/components/fx-festival.cjs +2 -3
- package/dist/components/fx-festival.js +2 -3
- package/dist/components/fx-focus.cjs +2 -3
- package/dist/components/fx-focus.js +2 -3
- package/dist/components/fx-form.cjs +2 -3
- package/dist/components/fx-form.js +2 -3
- package/dist/components/fx-game.cjs +2 -3
- package/dist/components/fx-game.js +2 -3
- package/dist/components/fx-genart.cjs +2 -3
- package/dist/components/fx-genart.js +2 -3
- package/dist/components/fx-geo.cjs +2 -3
- package/dist/components/fx-geo.js +2 -3
- package/dist/components/fx-gesture.cjs +2 -3
- package/dist/components/fx-gesture.js +2 -3
- package/dist/components/fx-gpu.cjs +4 -5
- package/dist/components/fx-gpu.js +4 -5
- package/dist/components/fx-light.cjs +4 -4
- package/dist/components/fx-light.js +4 -4
- package/dist/components/fx-lottie.cjs +2 -3
- package/dist/components/fx-lottie.js +2 -3
- package/dist/components/fx-morph.cjs +2 -3
- package/dist/components/fx-morph.js +2 -3
- package/dist/components/fx-music.cjs +5 -6
- package/dist/components/fx-music.js +5 -6
- package/dist/components/fx-organic.cjs +2 -3
- package/dist/components/fx-organic.js +2 -3
- package/dist/components/fx-paper.cjs +2 -3
- package/dist/components/fx-paper.js +2 -3
- package/dist/components/fx-perf.cjs +3 -3
- package/dist/components/fx-perf.js +3 -3
- package/dist/components/fx-physics.cjs +4 -5
- package/dist/components/fx-physics.js +4 -5
- package/dist/components/fx-retro.cjs +2 -3
- package/dist/components/fx-retro.js +2 -3
- package/dist/components/fx-safe.cjs +3 -3
- package/dist/components/fx-safe.js +3 -3
- package/dist/components/fx-shop.cjs +2 -3
- package/dist/components/fx-shop.js +2 -3
- package/dist/components/fx-social.cjs +2 -3
- package/dist/components/fx-social.js +2 -3
- package/dist/components/fx-spatial.cjs +2 -3
- package/dist/components/fx-spatial.js +2 -3
- package/dist/components/fx-surface.cjs +2 -3
- package/dist/components/fx-surface.js +2 -3
- package/dist/components/fx-text.cjs +3 -3
- package/dist/components/fx-text.js +3 -3
- package/dist/components/fx-transitions.cjs +4 -4
- package/dist/components/fx-transitions.js +4 -4
- package/dist/components/fx-video.cjs +3 -3
- package/dist/components/fx-video.js +3 -3
- package/dist/components/fx-weather.cjs +3 -4
- package/dist/components/fx-weather.js +3 -4
- package/dist/components/fx.cjs +4 -7
- package/dist/components/fx.js +5 -8
- package/dist/components/fx2.cjs +4 -8
- package/dist/components/fx2.js +5 -9
- package/dist/components/gesture.cjs +4 -4
- package/dist/components/gesture.js +5 -5
- package/dist/components/gl-model.cjs +4 -5
- package/dist/components/gl-model.js +4 -5
- package/dist/components/interaction.cjs +2 -2
- package/dist/components/interaction.js +2 -2
- package/dist/components/jsx.cjs +1 -1
- package/dist/components/jsx.d.cts +2049 -3
- package/dist/components/jsx.d.ts +2049 -3
- package/dist/components/jsx.js +1 -1
- package/dist/components/layout.cjs +2 -2
- package/dist/components/layout.js +2 -2
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +15 -27
- package/dist/components/lite.js +15 -27
- package/dist/components/marketplace.cjs +2 -4
- package/dist/components/marketplace.js +3 -5
- package/dist/components/native.cjs +1 -4
- package/dist/components/native.js +1 -4
- package/dist/components/offscreen.cjs +2 -2
- package/dist/components/offscreen.js +3 -3
- package/dist/components/packs.cjs +2 -2
- package/dist/components/packs.js +2 -2
- package/dist/components/page.cjs +3 -3
- package/dist/components/page.js +4 -4
- package/dist/components/perf-tasks.cjs +2 -2
- package/dist/components/perf-tasks.js +2 -2
- package/dist/components/perf.cjs +2 -2
- package/dist/components/perf.js +3 -3
- package/dist/components/physics.cjs +3 -3
- package/dist/components/physics.js +4 -4
- package/dist/components/plugins.cjs +2 -7
- package/dist/components/plugins.js +2 -7
- package/dist/components/react.cjs +26 -3
- package/dist/components/react.d.cts +23 -1
- package/dist/components/react.d.ts +23 -1
- package/dist/components/react.js +24 -4
- package/dist/components/reveal.cjs +2 -2
- package/dist/components/reveal.js +2 -2
- package/dist/components/snap-carousel.cjs +3 -4
- package/dist/components/snap-carousel.js +3 -4
- package/dist/components/solid.cjs +3 -36
- package/dist/components/solid.d.cts +1451 -2
- package/dist/components/solid.d.ts +1451 -2
- package/dist/components/solid.js +3 -36
- package/dist/components/svelte.cjs +10 -36
- package/dist/components/svelte.d.cts +2047 -2
- package/dist/components/svelte.d.ts +2047 -2
- package/dist/components/svelte.js +10 -36
- package/dist/components/svg.cjs +2 -2
- package/dist/components/svg.js +2 -2
- package/dist/components/text.cjs +3 -4
- package/dist/components/text.js +3 -4
- package/dist/components/timeline.cjs +3 -4
- package/dist/components/timeline.js +4 -5
- package/dist/components/tokens.cjs +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/transitions.cjs +2 -2
- package/dist/components/transitions.js +2 -2
- package/dist/components/ui.cjs +4 -4
- package/dist/components/ui.js +5 -5
- package/dist/components/vue.cjs +8 -35
- package/dist/components/vue.d.cts +2046 -1
- package/dist/components/vue.d.ts +2046 -1
- package/dist/components/vue.js +8 -35
- package/dist/components/webgl.cjs +2 -2
- package/dist/components/webgl.js +2 -2
- package/dist/components/widgets.cjs +52 -86
- package/dist/components/widgets.js +101 -135
- package/dist/components.cjs +9 -11
- package/dist/components.js +11 -13
- package/dist/components.umd.js +2 -2
- package/dist/effects/achievement-unlock.cjs +2 -3
- package/dist/effects/achievement-unlock.js +2 -3
- package/dist/effects/aurora-veil.cjs +2 -5
- package/dist/effects/aurora-veil.js +2 -5
- package/dist/effects/badge-pop.cjs +2 -3
- package/dist/effects/badge-pop.js +2 -3
- package/dist/effects/bars-grow.cjs +2 -4
- package/dist/effects/bars-grow.js +2 -4
- package/dist/effects/beat-bounce.cjs +2 -6
- package/dist/effects/beat-bounce.js +2 -6
- package/dist/effects/blob-button.cjs +2 -4
- package/dist/effects/blob-button.js +2 -4
- package/dist/effects/bloom.cjs +2 -3
- package/dist/effects/bloom.js +2 -3
- package/dist/effects/breathe.cjs +2 -3
- package/dist/effects/breathe.js +2 -3
- package/dist/effects/brushed-metal.cjs +2 -5
- package/dist/effects/brushed-metal.js +2 -5
- package/dist/effects/camera-dolly.cjs +2 -4
- package/dist/effects/camera-dolly.js +2 -4
- package/dist/effects/card-flip-3d.cjs +2 -6
- package/dist/effects/card-flip-3d.js +2 -6
- package/dist/effects/chest-open.cjs +2 -3
- package/dist/effects/chest-open.js +2 -3
- package/dist/effects/cloth.cjs +2 -5
- package/dist/effects/cloth.js +2 -5
- package/dist/effects/coin-burst.cjs +2 -3
- package/dist/effects/coin-burst.js +2 -3
- package/dist/effects/color-pulse.cjs +2 -3
- package/dist/effects/color-pulse.js +2 -3
- package/dist/effects/crt-power.cjs +2 -3
- package/dist/effects/crt-power.js +2 -3
- package/dist/effects/crumple.cjs +2 -3
- package/dist/effects/crumple.js +2 -3
- package/dist/effects/data-decode.cjs +2 -3
- package/dist/effects/data-decode.js +2 -3
- package/dist/effects/day-cycle.cjs +2 -5
- package/dist/effects/day-cycle.js +2 -5
- package/dist/effects/depth-in.cjs +2 -3
- package/dist/effects/depth-in.js +2 -3
- package/dist/effects/depth-pop.cjs +2 -3
- package/dist/effects/depth-pop.js +2 -3
- package/dist/effects/depth-stack.cjs +2 -6
- package/dist/effects/depth-stack.js +2 -6
- package/dist/effects/dolly-in.cjs +2 -3
- package/dist/effects/dolly-in.js +2 -3
- package/dist/effects/dots-pop.cjs +2 -4
- package/dist/effects/dots-pop.js +2 -4
- package/dist/effects/field-shake.cjs +2 -3
- package/dist/effects/field-shake.js +2 -3
- package/dist/effects/field-success.cjs +2 -3
- package/dist/effects/field-success.js +2 -3
- package/dist/effects/film-burn.cjs +2 -3
- package/dist/effects/film-burn.js +2 -3
- package/dist/effects/fire.cjs +3 -6
- package/dist/effects/fire.js +3 -6
- package/dist/effects/fireflies.cjs +3 -6
- package/dist/effects/fireflies.js +3 -6
- package/dist/effects/firework-burst.cjs +2 -3
- package/dist/effects/firework-burst.js +2 -3
- package/dist/effects/flip-chars.cjs +2 -4
- package/dist/effects/flip-chars.js +2 -4
- package/dist/effects/fluid.cjs +3 -6
- package/dist/effects/fluid.js +3 -6
- package/dist/effects/fly-to-cart.cjs +2 -3
- package/dist/effects/fly-to-cart.js +2 -3
- package/dist/effects/focus-draw.cjs +2 -3
- package/dist/effects/focus-draw.js +2 -3
- package/dist/effects/focus-glow.cjs +2 -3
- package/dist/effects/focus-glow.js +2 -3
- package/dist/effects/fog.cjs +2 -5
- package/dist/effects/fog.js +2 -5
- package/dist/effects/font-breathe.cjs +2 -4
- package/dist/effects/font-breathe.js +2 -4
- package/dist/effects/form-cascade.cjs +2 -3
- package/dist/effects/form-cascade.js +2 -3
- package/dist/effects/gen-skeleton.cjs +2 -3
- package/dist/effects/gen-skeleton.js +2 -3
- package/dist/effects/glass-frost.cjs +2 -3
- package/dist/effects/glass-frost.js +2 -3
- package/dist/effects/glitch-text.cjs +2 -4
- package/dist/effects/glitch-text.js +2 -4
- package/dist/effects/globe-spin.cjs +2 -3
- package/dist/effects/globe-spin.js +2 -3
- package/dist/effects/god-rays.cjs +2 -5
- package/dist/effects/god-rays.js +2 -5
- package/dist/effects/gpu-lift.cjs +2 -3
- package/dist/effects/gpu-lift.js +2 -3
- package/dist/effects/grain-flicker.cjs +2 -3
- package/dist/effects/grain-flicker.js +2 -3
- package/dist/effects/halftone-in.cjs +2 -3
- package/dist/effects/halftone-in.js +2 -3
- package/dist/effects/highlight-sweep.cjs +2 -3
- package/dist/effects/highlight-sweep.js +2 -3
- package/dist/effects/hologram.cjs +2 -3
- package/dist/effects/hologram.js +2 -3
- package/dist/effects/hud-frame.cjs +2 -3
- package/dist/effects/hud-frame.js +2 -3
- package/dist/effects/icon-pop.cjs +2 -3
- package/dist/effects/icon-pop.js +2 -3
- package/dist/effects/icon-swap.cjs +2 -4
- package/dist/effects/icon-swap.js +2 -4
- package/dist/effects/idle-reveal.cjs +2 -3
- package/dist/effects/idle-reveal.js +2 -3
- package/dist/effects/ink.cjs +3 -6
- package/dist/effects/ink.js +3 -6
- package/dist/effects/jump-cut.cjs +2 -3
- package/dist/effects/jump-cut.js +2 -3
- package/dist/effects/kaleido.cjs +2 -3
- package/dist/effects/kaleido.js +2 -3
- package/dist/effects/label-float.cjs +2 -3
- package/dist/effects/label-float.js +2 -3
- package/dist/effects/lantern-rise.cjs +2 -3
- package/dist/effects/lantern-rise.js +2 -3
- package/dist/effects/leaves.cjs +3 -6
- package/dist/effects/leaves.js +3 -6
- package/dist/effects/letterbox.cjs +2 -3
- package/dist/effects/letterbox.js +2 -3
- package/dist/effects/level-up.cjs +2 -3
- package/dist/effects/level-up.js +2 -3
- package/dist/effects/light-follow.cjs +2 -5
- package/dist/effects/light-follow.js +2 -5
- package/dist/effects/lightning.cjs +2 -5
- package/dist/effects/lightning.js +2 -5
- package/dist/effects/line-draw.cjs +2 -4
- package/dist/effects/line-draw.js +2 -4
- package/dist/effects/liquid-text.cjs +2 -4
- package/dist/effects/liquid-text.js +2 -4
- package/dist/effects/liquid-wipe.cjs +2 -4
- package/dist/effects/liquid-wipe.js +2 -4
- package/dist/effects/lottie-play.cjs +2 -3
- package/dist/effects/lottie-play.js +2 -3
- package/dist/effects/magnet.cjs +2 -5
- package/dist/effects/magnet.js +2 -5
- package/dist/effects/marching-ants.cjs +2 -3
- package/dist/effects/marching-ants.js +2 -3
- package/dist/effects/marker-pulse.cjs +2 -3
- package/dist/effects/marker-pulse.js +2 -3
- package/dist/effects/mention-glow.cjs +2 -3
- package/dist/effects/mention-glow.js +2 -3
- package/dist/effects/mesh-drift.cjs +2 -3
- package/dist/effects/mesh-drift.js +2 -3
- package/dist/effects/message-in.cjs +2 -3
- package/dist/effects/message-in.js +2 -3
- package/dist/effects/mosaic-flip.cjs +2 -4
- package/dist/effects/mosaic-flip.js +2 -4
- package/dist/effects/neon-ignite.cjs +2 -3
- package/dist/effects/neon-ignite.js +2 -3
- package/dist/effects/neon-pulse.cjs +2 -3
- package/dist/effects/neon-pulse.js +2 -3
- package/dist/effects/neon-write.cjs +2 -4
- package/dist/effects/neon-write.js +2 -4
- package/dist/effects/neu-press.cjs +2 -3
- package/dist/effects/neu-press.js +2 -3
- package/dist/effects/noise-reveal.cjs +2 -4
- package/dist/effects/noise-reveal.js +2 -4
- package/dist/effects/number-roll.cjs +2 -4
- package/dist/effects/number-roll.js +2 -4
- package/dist/effects/orbit-camera.cjs +2 -6
- package/dist/effects/orbit-camera.js +2 -6
- package/dist/effects/orbit-in.cjs +2 -3
- package/dist/effects/orbit-in.js +2 -3
- package/dist/effects/origami.cjs +2 -6
- package/dist/effects/origami.js +2 -6
- package/dist/effects/page-curl.cjs +2 -4
- package/dist/effects/page-curl.js +2 -4
- package/dist/effects/pan-reveal.cjs +2 -3
- package/dist/effects/pan-reveal.js +2 -3
- package/dist/effects/paper-unfold.cjs +2 -3
- package/dist/effects/paper-unfold.js +2 -3
- package/dist/effects/particle-text.cjs +2 -4
- package/dist/effects/particle-text.js +2 -4
- package/dist/effects/path-morph.cjs +2 -4
- package/dist/effects/path-morph.js +2 -4
- package/dist/effects/pearlescent.cjs +2 -5
- package/dist/effects/pearlescent.js +2 -5
- package/dist/effects/pencil-sketch.cjs +2 -3
- package/dist/effects/pencil-sketch.js +2 -3
- package/dist/effects/pin-drop.cjs +2 -3
- package/dist/effects/pin-drop.js +2 -3
- package/dist/effects/pinball.cjs +2 -5
- package/dist/effects/pinball.js +2 -5
- package/dist/effects/pinch-hint.cjs +2 -3
- package/dist/effects/pinch-hint.js +2 -3
- package/dist/effects/pixelate-in.cjs +2 -3
- package/dist/effects/pixelate-in.js +2 -3
- package/dist/effects/pointer-shadow.cjs +2 -5
- package/dist/effects/pointer-shadow.js +2 -5
- package/dist/effects/portal-open.cjs +2 -3
- package/dist/effects/portal-open.js +2 -3
- package/dist/effects/price-flip.cjs +2 -3
- package/dist/effects/price-flip.js +2 -3
- package/dist/effects/product-spin.cjs +2 -6
- package/dist/effects/product-spin.js +2 -6
- package/dist/effects/rack-focus.cjs +2 -3
- package/dist/effects/rack-focus.js +2 -3
- package/dist/effects/radial-spectrum.cjs +2 -6
- package/dist/effects/radial-spectrum.js +2 -6
- package/dist/effects/rain-glass.cjs +2 -5
- package/dist/effects/rain-glass.js +2 -5
- package/dist/effects/reaction-burst.cjs +2 -3
- package/dist/effects/reaction-burst.js +2 -3
- package/dist/effects/read-receipt.cjs +2 -3
- package/dist/effects/read-receipt.js +2 -3
- package/dist/effects/refraction.cjs +2 -5
- package/dist/effects/refraction.js +2 -5
- package/dist/effects/ring-sweep.cjs +2 -4
- package/dist/effects/ring-sweep.js +2 -4
- package/dist/effects/ripple-dissolve.cjs +2 -4
- package/dist/effects/ripple-dissolve.js +2 -4
- package/dist/effects/rope.cjs +2 -5
- package/dist/effects/rope.js +2 -5
- package/dist/effects/route-draw.cjs +2 -3
- package/dist/effects/route-draw.js +2 -3
- package/dist/effects/safe-fade.cjs +2 -3
- package/dist/effects/safe-fade.js +2 -3
- package/dist/effects/sakura.cjs +3 -6
- package/dist/effects/sakura.js +3 -6
- package/dist/effects/sale-shine.cjs +2 -3
- package/dist/effects/sale-shine.js +2 -3
- package/dist/effects/sankey-flow.cjs +2 -4
- package/dist/effects/sankey-flow.js +2 -4
- package/dist/effects/scanline-sweep.cjs +2 -3
- package/dist/effects/scanline-sweep.js +2 -3
- package/dist/effects/shatter.cjs +2 -4
- package/dist/effects/shatter.js +2 -4
- package/dist/effects/smoke.cjs +3 -6
- package/dist/effects/smoke.js +3 -6
- package/dist/effects/snowfall.cjs +2 -5
- package/dist/effects/snowfall.js +2 -5
- package/dist/effects/soft-body.cjs +2 -5
- package/dist/effects/soft-body.js +2 -5
- package/dist/effects/sound-particles.cjs +2 -6
- package/dist/effects/sound-particles.js +2 -6
- package/dist/effects/spatial-float.cjs +2 -3
- package/dist/effects/spatial-float.js +2 -3
- package/dist/effects/spectrum-mirror.cjs +2 -6
- package/dist/effects/spectrum-mirror.js +2 -6
- package/dist/effects/splash.cjs +3 -6
- package/dist/effects/splash.js +3 -6
- package/dist/effects/spooky-float.cjs +2 -3
- package/dist/effects/spooky-float.js +2 -3
- package/dist/effects/stock-pulse.cjs +2 -3
- package/dist/effects/stock-pulse.js +2 -3
- package/dist/effects/stream-text.cjs +2 -3
- package/dist/effects/stream-text.js +2 -3
- package/dist/effects/stroke-draw.cjs +2 -4
- package/dist/effects/stroke-draw.js +2 -4
- package/dist/effects/success-check.cjs +2 -3
- package/dist/effects/success-check.js +2 -3
- package/dist/effects/swipe-hint.cjs +2 -3
- package/dist/effects/swipe-hint.js +2 -3
- package/dist/effects/text-trail.cjs +2 -4
- package/dist/effects/text-trail.js +2 -4
- package/dist/effects/thinking-glow.cjs +2 -3
- package/dist/effects/thinking-glow.js +2 -3
- package/dist/effects/tilt-wobble.cjs +2 -3
- package/dist/effects/tilt-wobble.js +2 -3
- package/dist/effects/typing-dots.cjs +2 -3
- package/dist/effects/typing-dots.js +2 -3
- package/dist/effects/underline-sweep.cjs +2 -3
- package/dist/effects/underline-sweep.js +2 -3
- package/dist/effects/vhs-glitch.cjs +2 -3
- package/dist/effects/vhs-glitch.js +2 -3
- package/dist/effects/vine-grow.cjs +2 -3
- package/dist/effects/vine-grow.js +2 -3
- package/dist/effects/vinyl-spin.cjs +2 -6
- package/dist/effects/vinyl-spin.js +2 -6
- package/dist/effects/voice-wave.cjs +2 -3
- package/dist/effects/voice-wave.js +2 -3
- package/dist/effects/water-drop.cjs +2 -3
- package/dist/effects/water-drop.js +2 -3
- package/dist/effects/watercolor.cjs +2 -3
- package/dist/effects/watercolor.js +2 -3
- package/dist/effects/waveform-scope.cjs +2 -6
- package/dist/effects/waveform-scope.js +2 -6
- package/dist/effects/xmas-snow.cjs +2 -3
- package/dist/effects/xmas-snow.js +2 -3
- package/dist/effects/xp-gain.cjs +2 -3
- package/dist/effects/xp-gain.js +2 -3
- package/dist/effects/y2k-shine.cjs +2 -3
- package/dist/effects/y2k-shine.js +2 -3
- package/dist/element.cjs +1 -2
- package/dist/element.js +1 -2
- package/dist/element.umd.js +1 -1
- package/dist/index.cjs +2 -4
- package/dist/index.js +2 -4
- package/dist/index.umd.js +1 -1
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/manifest.json +5 -3
- package/dist/presets/extended.cjs +1 -1
- package/dist/presets/extended.js +1 -1
- package/dist/presets-extended.umd.js +1 -1
- package/dist/react.cjs +1 -2
- package/dist/react.js +1 -2
- package/dist/runtime/drag-snap.cjs +2 -2
- package/dist/runtime/drag-snap.iife.js +1 -1
- package/dist/runtime/drag-snap.js +2 -2
- package/dist/runtime/format-apng.cjs +3 -6
- package/dist/runtime/format-apng.iife.js +1 -1
- package/dist/runtime/format-apng.js +3 -6
- package/dist/runtime/format-css.cjs +3 -6
- package/dist/runtime/format-css.iife.js +1 -1
- package/dist/runtime/format-css.js +3 -6
- package/dist/runtime/format-gif.cjs +3 -6
- package/dist/runtime/format-gif.iife.js +1 -1
- package/dist/runtime/format-gif.js +3 -6
- package/dist/runtime/format-gltf.cjs +2 -2
- package/dist/runtime/format-gltf.iife.js +1 -1
- package/dist/runtime/format-gltf.js +2 -2
- package/dist/runtime/format-motion.cjs +4 -5
- package/dist/runtime/format-motion.iife.js +1 -1
- package/dist/runtime/format-motion.js +4 -5
- package/dist/runtime/format-obj.cjs +2 -2
- package/dist/runtime/format-obj.iife.js +1 -1
- package/dist/runtime/format-obj.js +2 -2
- package/dist/runtime/format-scene.cjs +2 -2
- package/dist/runtime/format-scene.iife.js +1 -1
- package/dist/runtime/format-scene.js +2 -2
- package/dist/runtime/format-sprite.cjs +3 -5
- package/dist/runtime/format-sprite.iife.js +1 -1
- package/dist/runtime/format-sprite.js +3 -5
- package/dist/runtime/format-svg.cjs +3 -4
- package/dist/runtime/format-svg.iife.js +1 -1
- package/dist/runtime/format-svg.js +3 -4
- package/dist/runtime/format-webp.cjs +3 -6
- package/dist/runtime/format-webp.iife.js +1 -1
- package/dist/runtime/format-webp.js +3 -6
- package/dist/runtime/gl.cjs +2 -2
- package/dist/runtime/gl.iife.js +1 -1
- package/dist/runtime/gl.js +2 -2
- package/dist/runtime/gltf-anim.cjs +2 -2
- package/dist/runtime/gltf-anim.iife.js +1 -1
- package/dist/runtime/gltf-anim.js +2 -2
- package/dist/runtime/gltf-decoders.cjs +2 -2
- package/dist/runtime/gltf-decoders.iife.js +1 -1
- package/dist/runtime/gltf-decoders.js +2 -2
- package/dist/runtime/lottie-state.cjs +2 -2
- package/dist/runtime/lottie-state.iife.js +1 -1
- package/dist/runtime/lottie-state.js +2 -2
- package/dist/runtime/physics.cjs +2 -2
- package/dist/runtime/physics.iife.js +1 -1
- package/dist/runtime/physics.js +2 -2
- package/dist/runtime/scroll.cjs +3 -3
- package/dist/runtime/scroll.iife.js +1 -1
- package/dist/runtime/scroll.js +3 -3
- package/dist/runtime/smooth.cjs +2 -2
- package/dist/runtime/smooth.iife.js +1 -1
- package/dist/runtime/smooth.js +2 -2
- package/dist/runtime/text.cjs +2 -2
- package/dist/runtime/text.iife.js +1 -1
- package/dist/runtime/text.js +2 -2
- package/dist/runtime/vector.cjs +3 -5
- package/dist/runtime/vector.iife.js +1 -1
- package/dist/runtime/vector.js +3 -5
- package/dist/runtime.cjs +4 -4
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.iife.js +2 -2
- package/dist/runtime.js +6 -6
- package/dist/solid.cjs +1 -2
- package/dist/solid.js +1 -2
- package/dist/svelte.cjs +1 -2
- package/dist/svelte.js +1 -2
- package/dist/vue.cjs +1 -2
- package/dist/vue.js +1 -2
- package/dist/widgets/add-to-cart.cjs +4 -7
- package/dist/widgets/add-to-cart.js +4 -7
- package/dist/widgets/badge-wall.cjs +2 -3
- package/dist/widgets/badge-wall.js +2 -3
- package/dist/widgets/bar-chart.cjs +2 -2
- package/dist/widgets/bar-chart.js +2 -2
- package/dist/widgets/bg-generator.cjs +2 -5
- package/dist/widgets/bg-generator.js +2 -5
- package/dist/widgets/carousel.cjs +2 -4
- package/dist/widgets/carousel.js +2 -4
- package/dist/widgets/cart-drawer.cjs +2 -3
- package/dist/widgets/cart-drawer.js +2 -3
- package/dist/widgets/chapter-nav.cjs +2 -2
- package/dist/widgets/chapter-nav.js +2 -2
- package/dist/widgets/chat-composer.cjs +2 -2
- package/dist/widgets/chat-composer.js +2 -2
- package/dist/widgets/clock-control.cjs +2 -2
- package/dist/widgets/clock-control.js +2 -2
- package/dist/widgets/code-export.cjs +2 -4
- package/dist/widgets/code-export.js +2 -4
- package/dist/widgets/color-picker.cjs +2 -4
- package/dist/widgets/color-picker.js +2 -4
- package/dist/widgets/command-palette.cjs +2 -3
- package/dist/widgets/command-palette.js +2 -3
- package/dist/widgets/compare.cjs +2 -2
- package/dist/widgets/compare.js +2 -2
- package/dist/widgets/countdown.cjs +2 -3
- package/dist/widgets/countdown.js +2 -3
- package/dist/widgets/cube-gallery.cjs +2 -2
- package/dist/widgets/cube-gallery.js +2 -2
- package/dist/widgets/date-picker.cjs +2 -4
- package/dist/widgets/date-picker.js +2 -4
- package/dist/widgets/disclosure.cjs +3 -3
- package/dist/widgets/disclosure.js +3 -3
- package/dist/widgets/dock.cjs +2 -2
- package/dist/widgets/dock.js +2 -2
- package/dist/widgets/dotlottie.cjs +1 -5
- package/dist/widgets/dotlottie.js +1 -5
- package/dist/widgets/equalizer.cjs +2 -4
- package/dist/widgets/equalizer.js +2 -4
- package/dist/widgets/festival-banner.cjs +2 -3
- package/dist/widgets/festival-banner.js +2 -3
- package/dist/widgets/field.cjs +2 -3
- package/dist/widgets/field.js +2 -3
- package/dist/widgets/file-drop.cjs +2 -2
- package/dist/widgets/file-drop.js +2 -2
- package/dist/widgets/gauge.cjs +2 -2
- package/dist/widgets/gauge.js +2 -2
- package/dist/widgets/gen-art.cjs +2 -3
- package/dist/widgets/gen-art.js +2 -3
- package/dist/widgets/gesture-sticker.cjs +2 -3
- package/dist/widgets/gesture-sticker.js +2 -3
- package/dist/widgets/gl-model.cjs +1 -5
- package/dist/widgets/gl-model.js +1 -5
- package/dist/widgets/gl-scene.cjs +2 -5
- package/dist/widgets/gl-scene.js +2 -5
- package/dist/widgets/globe.cjs +2 -3
- package/dist/widgets/globe.js +2 -3
- package/dist/widgets/gpu-particles.cjs +2 -3
- package/dist/widgets/gpu-particles.js +2 -3
- package/dist/widgets/gyro-card.cjs +2 -3
- package/dist/widgets/gyro-card.js +2 -3
- package/dist/widgets/hero-video.cjs +2 -3
- package/dist/widgets/hero-video.js +2 -3
- package/dist/widgets/hud-panel.cjs +2 -2
- package/dist/widgets/hud-panel.js +2 -2
- package/dist/widgets/hydrate.cjs +2 -2
- package/dist/widgets/hydrate.js +2 -2
- package/dist/widgets/install-button.cjs +2 -2
- package/dist/widgets/install-button.js +2 -2
- package/dist/widgets/kanban.cjs +2 -2
- package/dist/widgets/kanban.js +2 -2
- package/dist/widgets/keyframe-editor.cjs +3 -7
- package/dist/widgets/keyframe-editor.js +3 -7
- package/dist/widgets/kpi.cjs +2 -2
- package/dist/widgets/kpi.js +2 -2
- package/dist/widgets/leaderboard.cjs +2 -3
- package/dist/widgets/leaderboard.js +2 -3
- package/dist/widgets/liquid-nav.cjs +2 -2
- package/dist/widgets/liquid-nav.js +2 -2
- package/dist/widgets/location-card.cjs +2 -3
- package/dist/widgets/location-card.js +2 -3
- package/dist/widgets/lottie-icon.cjs +2 -7
- package/dist/widgets/lottie-icon.js +2 -7
- package/dist/widgets/lottie-player.cjs +2 -5
- package/dist/widgets/lottie-player.js +2 -5
- package/dist/widgets/lottie.cjs +2 -3
- package/dist/widgets/lottie.js +2 -3
- package/dist/widgets/lyrics.cjs +2 -4
- package/dist/widgets/lyrics.js +2 -4
- package/dist/widgets/masonry-flow.cjs +2 -2
- package/dist/widgets/masonry-flow.js +2 -2
- package/dist/widgets/menu-toggle.cjs +2 -3
- package/dist/widgets/menu-toggle.js +2 -3
- package/dist/widgets/menu.cjs +2 -4
- package/dist/widgets/menu.js +2 -4
- package/dist/widgets/message-list.cjs +2 -2
- package/dist/widgets/message-list.js +2 -2
- package/dist/widgets/milestones.cjs +2 -2
- package/dist/widgets/milestones.js +2 -2
- package/dist/widgets/modal.cjs +2 -5
- package/dist/widgets/modal.js +2 -5
- package/dist/widgets/motion-inspector.cjs +3 -3
- package/dist/widgets/motion-inspector.js +3 -3
- package/dist/widgets/motion-prefs.cjs +2 -3
- package/dist/widgets/motion-prefs.js +2 -3
- package/dist/widgets/motion-prompt.cjs +2 -2
- package/dist/widgets/motion-prompt.js +2 -2
- package/dist/widgets/motion-spec.cjs +2 -5
- package/dist/widgets/motion-spec.js +2 -5
- package/dist/widgets/motion.cjs +2 -3
- package/dist/widgets/motion.js +2 -3
- package/dist/widgets/music-player.cjs +2 -2
- package/dist/widgets/music-player.js +2 -2
- package/dist/widgets/native-preview.cjs +2 -6
- package/dist/widgets/native-preview.js +2 -6
- package/dist/widgets/nav-morph.cjs +2 -4
- package/dist/widgets/nav-morph.js +2 -4
- package/dist/widgets/notification-bell.cjs +2 -2
- package/dist/widgets/notification-bell.js +2 -2
- package/dist/widgets/odometer.cjs +2 -5
- package/dist/widgets/odometer.js +2 -5
- package/dist/widgets/organic-card.cjs +2 -3
- package/dist/widgets/organic-card.js +2 -3
- package/dist/widgets/otp.cjs +2 -3
- package/dist/widgets/otp.js +2 -3
- package/dist/widgets/pagination.cjs +2 -5
- package/dist/widgets/pagination.js +2 -5
- package/dist/widgets/panorama.cjs +2 -3
- package/dist/widgets/panorama.js +2 -3
- package/dist/widgets/parallax-layers.cjs +2 -2
- package/dist/widgets/parallax-layers.js +2 -2
- package/dist/widgets/pause-all.cjs +2 -2
- package/dist/widgets/pause-all.js +2 -2
- package/dist/widgets/perf-monitor.cjs +2 -3
- package/dist/widgets/perf-monitor.js +2 -3
- package/dist/widgets/physics-playground.cjs +2 -5
- package/dist/widgets/physics-playground.js +2 -5
- package/dist/widgets/plugin-card.cjs +4 -4
- package/dist/widgets/plugin-card.js +4 -4
- package/dist/widgets/plugin-store.cjs +2 -5
- package/dist/widgets/plugin-store.js +2 -5
- package/dist/widgets/presence.cjs +2 -3
- package/dist/widgets/presence.js +2 -3
- package/dist/widgets/prize-wheel.cjs +2 -3
- package/dist/widgets/prize-wheel.js +2 -3
- package/dist/widgets/product-gallery.cjs +2 -3
- package/dist/widgets/product-gallery.js +2 -3
- package/dist/widgets/progress-ring.cjs +2 -5
- package/dist/widgets/progress-ring.js +2 -5
- package/dist/widgets/prop-panel.cjs +2 -3
- package/dist/widgets/prop-panel.js +2 -3
- package/dist/widgets/pull-cord.cjs +2 -2
- package/dist/widgets/pull-cord.js +2 -2
- package/dist/widgets/radar.cjs +2 -3
- package/dist/widgets/radar.js +2 -3
- package/dist/widgets/reactions.cjs +2 -3
- package/dist/widgets/reactions.js +2 -3
- package/dist/widgets/red-envelope.cjs +2 -2
- package/dist/widgets/red-envelope.js +2 -2
- package/dist/widgets/retro-button.cjs +2 -3
- package/dist/widgets/retro-button.js +2 -3
- package/dist/widgets/rive.cjs +2 -3
- package/dist/widgets/rive.js +2 -3
- package/dist/widgets/route-transition.cjs +2 -2
- package/dist/widgets/route-transition.js +2 -2
- package/dist/widgets/scene.cjs +2 -3
- package/dist/widgets/scene.js +2 -3
- package/dist/widgets/scroll-ring.cjs +2 -2
- package/dist/widgets/scroll-ring.js +2 -2
- package/dist/widgets/scroll-scene.cjs +2 -5
- package/dist/widgets/scroll-scene.js +2 -5
- package/dist/widgets/segmented.cjs +2 -4
- package/dist/widgets/segmented.js +2 -4
- package/dist/widgets/shader-backdrop.cjs +2 -3
- package/dist/widgets/shader-backdrop.js +2 -3
- package/dist/widgets/sheet.cjs +2 -5
- package/dist/widgets/sheet.js +2 -5
- package/dist/widgets/shortcut.cjs +3 -3
- package/dist/widgets/shortcut.js +3 -3
- package/dist/widgets/skeleton-reveal.cjs +2 -4
- package/dist/widgets/skeleton-reveal.js +2 -4
- package/dist/widgets/sketch-chart.cjs +2 -3
- package/dist/widgets/sketch-chart.js +2 -3
- package/dist/widgets/smooth-scroll.cjs +3 -4
- package/dist/widgets/smooth-scroll.js +3 -4
- package/dist/widgets/snap-carousel.cjs +1 -4
- package/dist/widgets/snap-carousel.js +1 -4
- package/dist/widgets/sparkline.cjs +2 -4
- package/dist/widgets/sparkline.js +2 -4
- package/dist/widgets/spatial-card.cjs +2 -2
- package/dist/widgets/spatial-card.js +2 -2
- package/dist/widgets/star-rating.cjs +2 -2
- package/dist/widgets/star-rating.js +2 -2
- package/dist/widgets/stepper.cjs +2 -2
- package/dist/widgets/stepper.js +2 -2
- package/dist/widgets/sticky-wall.cjs +2 -3
- package/dist/widgets/sticky-wall.js +2 -3
- package/dist/widgets/stories.cjs +2 -2
- package/dist/widgets/stories.js +2 -2
- package/dist/widgets/suggestion-chips.cjs +2 -3
- package/dist/widgets/suggestion-chips.js +2 -3
- package/dist/widgets/swipe-deck.cjs +2 -2
- package/dist/widgets/swipe-deck.js +2 -2
- package/dist/widgets/switch.cjs +2 -3
- package/dist/widgets/switch.js +2 -3
- package/dist/widgets/tab-bar.cjs +2 -4
- package/dist/widgets/tab-bar.js +2 -4
- package/dist/widgets/terminal.cjs +2 -2
- package/dist/widgets/terminal.js +2 -2
- package/dist/widgets/text-splitter.cjs +4 -4
- package/dist/widgets/text-splitter.js +4 -4
- package/dist/widgets/theme-surface.cjs +2 -3
- package/dist/widgets/theme-surface.js +2 -3
- package/dist/widgets/theme-switcher.cjs +2 -3
- package/dist/widgets/theme-switcher.js +2 -3
- package/dist/widgets/tip.cjs +2 -4
- package/dist/widgets/tip.js +2 -4
- package/dist/widgets/toast-stack.cjs +2 -6
- package/dist/widgets/toast-stack.js +2 -6
- package/dist/widgets/token-editor.cjs +2 -2
- package/dist/widgets/token-editor.js +2 -2
- package/dist/widgets/upload-progress.cjs +2 -3
- package/dist/widgets/upload-progress.js +2 -3
- package/dist/widgets/video-card.cjs +2 -2
- package/dist/widgets/video-card.js +2 -2
- package/dist/widgets/voice-button.cjs +2 -3
- package/dist/widgets/voice-button.js +2 -3
- package/dist/widgets/volume-knob.cjs +2 -2
- package/dist/widgets/volume-knob.js +2 -2
- package/dist/widgets/weather-card.cjs +2 -3
- package/dist/widgets/weather-card.js +2 -3
- package/dist/widgets/worker-canvas.cjs +2 -5
- package/dist/widgets/worker-canvas.js +2 -5
- package/dist/widgets/xp-bar.cjs +2 -3
- package/dist/widgets/xp-bar.js +2 -3
- package/dist/widgets.umd.js +2 -2
- package/docs/components/usa-carousel-3d.md +1 -1
- package/docs/components/usa-switch.md +1 -1
- package/docs/components.md +1 -1
- package/docs/frameworks-matrix.md +64 -0
- package/docs/frameworks-ssr.md +24 -8
- package/docs/public-api.md +1 -1
- package/package.json +3 -2
package/dist/runtime/physics.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-
|
|
1
|
+
import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-Ng9TVXnA.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.
|
|
731
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime/physics.js.map
|
package/dist/runtime/scroll.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
4
|
-
var ticker = require('../chunks/ticker-
|
|
3
|
+
var registry = require('../chunks/registry-D4qv6B49.cjs');
|
|
4
|
+
var ticker = require('../chunks/ticker-Bcx-J0T3.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* `motionary/runtime/scroll` (10.2) — scroll-linked scenes, an original
|
|
@@ -304,4 +304,4 @@ exports.refreshScenes = refreshScenes;
|
|
|
304
304
|
exports.resolveRule = resolveRule;
|
|
305
305
|
exports.scroll = scroll;
|
|
306
306
|
exports.scrollScene = scrollScene;
|
|
307
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
307
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime/scroll.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
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.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime/scroll.iife.js.map
|
package/dist/runtime/scroll.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION } from '../chunks/registry-
|
|
2
|
-
import { g as getTicker } from '../chunks/ticker-
|
|
1
|
+
import { R as RUNTIME_VERSION } from '../chunks/registry-Ng9TVXnA.js';
|
|
2
|
+
import { g as getTicker } from '../chunks/ticker-DZN0D39q.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `motionary/runtime/scroll` (10.2) — scroll-linked scenes, an original
|
|
@@ -295,4 +295,4 @@ const allScenes = () => Array.from(scenes);
|
|
|
295
295
|
const scroll = { id: 'scroll', version: RUNTIME_VERSION, tier: 'basic', requires: ['core'], api: { scrollScene, refreshScenes, killScenes, allScenes, parseEdge, resolveRule, ScrollScene } };
|
|
296
296
|
|
|
297
297
|
export { ScrollScene, allScenes, killScenes, parseEdge, refreshScenes, resolveRule, scroll, scrollScene };
|
|
298
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
298
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime/scroll.js.map
|
package/dist/runtime/smooth.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
3
|
+
var registry = require('../chunks/registry-D4qv6B49.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.
|
|
284
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.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.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime/smooth.iife.js.map
|
package/dist/runtime/smooth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-
|
|
1
|
+
import { R as RUNTIME_VERSION, r as requireModule } from '../chunks/registry-Ng9TVXnA.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.
|
|
279
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime/smooth.js.map
|
package/dist/runtime/text.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
3
|
+
var registry = require('../chunks/registry-D4qv6B49.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.
|
|
147
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.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.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime/text.iife.js.map
|
package/dist/runtime/text.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION } from '../chunks/registry-
|
|
1
|
+
import { R as RUNTIME_VERSION } from '../chunks/registry-Ng9TVXnA.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.
|
|
143
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime/text.js.map
|
package/dist/runtime/vector.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('../chunks/registry-
|
|
4
|
-
var tween = require('../chunks/tween-
|
|
5
|
-
require('../chunks/ticker-BFq0AxP5.cjs');
|
|
6
|
-
require('../chunks/ease-HwYZnZat.cjs');
|
|
3
|
+
var registry = require('../chunks/registry-D4qv6B49.cjs');
|
|
4
|
+
var tween = require('../chunks/tween-C755kVRe.cjs');
|
|
7
5
|
|
|
8
6
|
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']);
|
|
9
7
|
function lex(src) {
|
|
@@ -1160,4 +1158,4 @@ exports.transformAt = transformAt;
|
|
|
1160
1158
|
exports.trimContours = trimContours;
|
|
1161
1159
|
exports.unzipEntries = unzipEntries;
|
|
1162
1160
|
exports.vector = vector;
|
|
1163
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
1161
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime/vector.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(t,e,n){"use strict";const r=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"]);function s(t){const e=function(t){const e=[],n=/\s*(?:(\/\/[^\n]*|\/\*[\s\S]*?\*\/)|(\d+\.?\d*(?:e[+-]?\d+)?|\.\d+)|("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')|([A-Za-z_$][\w$]*)|(===|!==|==|!=|<=|>=|&&|\|\||[-+*/%()[\],.;=<>!?:{}]))/gy;let r,s=0;for(;s<t.length&&(n.lastIndex=s,r=n.exec(t));){if(s=n.lastIndex,r[1])continue;const t=r[2]||r[3]||r[4]||r[5];t&&e.push(r[2]?"#"+t:r[3]?'"'+r[3].slice(1,-1):t)}if(t.slice(s).trim())throw new Error("expr: unexpected "+t.slice(s,s+10));return e}(t);let n=0;const s=()=>e[n],o=()=>e[n++],a=t=>{if(e[n]!==t)throw new Error(`expr: expected ${t} got ${e[n]}`);n++},i=new Set,c=()=>{let t=(()=>{const t=o();if(void 0===t)throw new Error("expr: unexpected end");if("#"===t[0])return["n",+t.slice(1)];if('"'===t[0])return["s",t.slice(1)];if("("===t){const t=y();return a(")"),t}if("["===t){const t=[];for(;"]"!==s();)t.push(y()),","===s()&&o();return a("]"),["arr",t]}if(/^[A-Za-z_$]/.test(t)){if(!r.has(t)&&!i.has(t))throw new Error("expr: unsupported "+t);return["id",t]}throw new Error("expr: unexpected "+t)})();for(;;)if("."===s())o(),t=["get",t,["s",o()]];else if("["===s())o(),t=["get",t,y()],a("]");else{if("("!==s())return t;{o();const e=[];for(;")"!==s();)e.push(y()),","===s()&&o();a(")"),t=["call",t,e]}}},l=()=>"-"===s()||"+"===s()||"!"===s()?["un",o(),l()]:c(),f=(t,e)=>()=>{let n=e();for(;t.includes(s());)n=["bin",o(),n,e()];return n},h=f(["*","/","%"],l),u=f(["+","-"],h),m=f(["<",">","<=",">="],u),p=f(["==","!=","===","!=="],m),d=f(["&&"],p),g=f(["||"],d),y=()=>{const t=g();if("?"!==s())return t;o();const e=y();return a(":"),["if",t,e,y()]},w=[];for(;n<e.length;)if(";"!==s())if(["var","let","const"].includes(s())){o();const t=o();i.add(t),a("="),w.push(["set",t,y()])}else if(/^[A-Za-z_$]/.test(s()||"")&&"="===e[n+1]){const t=o();o(),i.add(t),w.push(["set",t,y()])}else w.push(y());else o();if(!w.length)throw new Error("expr: empty");return["prog",w]}const o=Array.isArray,a=(t,e,n)=>o(t)&&o(e)?Array.from({length:Math.max(t.length,e.length)},(r,s)=>n(t[s]??0,e[s]??0)):o(t)?t.map(t=>n(t,e)):o(e)?e.map(e=>n(t,e)):n(t,e),i=(t,e)=>"string"==typeof t||"string"==typeof e?String(t)+String(e):a(t,e,(t,e)=>t+e),c=(t,e)=>a(t,e,(t,e)=>t-e),l=(t,e)=>a(t,e,(t,e)=>t*e),f=(t,e)=>a(t,e,(t,e)=>t/e),h=t=>{const e=43758.5453*Math.sin(127.1*t+311.7);return 2*(e-Math.floor(e))-1},u=t=>{const e=Math.floor(t),n=t-e,r=n*n*(3-2*n);return h(e)*(1-r)+h(e+1)*r};function m(t,e){const[n,r,s,o,a]=e;let f,h,u=0,m=1;e.length>=5?(u=r,m=s,f=o,h=a):(f=r,h=s);const p=m===u?n>=m?1:0:Math.min(1,Math.max(0,(n-u)/(m-u)));return((t,e,n)=>i(t,l(c(e,t),n)))(f,h,t(m<u?1-p:p))}function p(t,e,n="cycle",r=0,s=0){const o=t.keys,a=t.time*t.fr;if(o.length<2)return t.value;const f=o[0],h=o[o.length-1];let u=e&&r>0?o[Math.max(0,o.length-1-r)]:f,m=e?h:r>0?o[Math.min(o.length-1,r)]:h;if(s>0&&(e?u=h-s*t.fr:m=f+s*t.fr),e?a<=m:a>=u)return t.value;const p=m-u||1;if("continue"===n){const n=e?m:u,r=t.at(n),s=e?c(r,t.at(n-1)):c(t.at(n+1),r);return i(r,l(s,a-n))}const d=e?a-m:u-a,g=Math.floor(d/p),y=d-g*p;if("pingpong"===n)return t.at(e?g%2?u+y:m-y:g%2?m-y:u+y);const w=t.at(e?u+y:m-y);return"offset"===n?i(w,l(c(t.at(m),t.at(u)),e?g+1:-(g+1))):w}function d(t,e){const n={},r=e.fr,s={Math:Math,thisComp:{frameDuration:1/r},thisLayer:{},thisProperty:{value:e.value},index:1,true:!0,false:!1,wiggle:(t,n,r=1,s=.5,a=e.time)=>{const i=n=>{let o=0,i=1,c=t,l=0;for(let t=0;t<Math.max(1,r);t++)o+=i*u(a*c+13.7*e.seed+101.3*n),l+=i,i*=s,c*=2;return o/l};return o(e.value)?e.value.map((t,e)=>t+(o(n)?n[e]??0:n)*i(e)):e.value+n*i(0)},loopOut:(t,n)=>p(e,!0,t,n),loopIn:(t,n)=>p(e,!1,t,n),loopOutDuration:(t,n)=>p(e,!0,t,0,n),loopInDuration:(t,n)=>p(e,!1,t,0,n),linear:(...t)=>m(t=>t,t),ease:(...t)=>m(t=>t*t*(3-2*t),t),easeIn:(...t)=>m(t=>t*t,t),easeOut:(...t)=>m(t=>1-(1-t)*(1-t),t),clamp:(t,e,n)=>a(a(t,e,Math.max),n,Math.min),valueAtTime:t=>e.at(t*r),framesToTime:t=>t/r,timeToFrames:(t=e.time)=>t*r,degreesToRadians:t=>t*Math.PI/180,radiansToDegrees:t=>180*t/Math.PI,add:i,sub:c,mul:l,div:f,length:(t,e)=>{const n=void 0===e?t:c(t,e);return o(n)?Math.hypot(...n):Math.abs(n)}},h=t=>{switch(t[0]){case"n":case"s":return t[1];case"arr":return t[1].map(h);case"id":{const r=t[1];return r in n?n[r]:"time"===r?e.time:"value"===r?e.value:s[r]}case"get":{const e=h(t[1]),n=h(t[2]);if(null==e||"string"==typeof n&&/^(__proto__|constructor|prototype)$/.test(n))throw new Error("expr: bad member");if(e===Math&&"string"==typeof n&&!(n in Math))throw new Error("expr: Math."+n);return e[n]}case"call":{const e=h(t[1]);if("function"!=typeof e)throw new Error("expr: not a function");return e(...t[2].map(h))}case"un":{const e=h(t[2]);return"-"===t[1]?l(e,-1):"!"===t[1]?!e:e}case"bin":{const e=h(t[2]),n=h(t[3]);switch(t[1]){case"+":return i(e,n);case"-":return c(e,n);case"*":return l(e,n);case"/":return f(e,n);case"%":return a(e,n,(t,e)=>t%e);case"<":return e<n;case">":return e>n;case"<=":return e<=n;case">=":return e>=n;case"==":case"===":return e===n;case"!=":case"!==":return e!==n;case"&&":return e&&n;default:return e||n}}case"if":return h(t[1])?h(t[2]):h(t[3]);case"set":return n[t[1]]=h(t[2]);default:{let e;for(const n of t[1])e=h(n);return"$bm_rt"in n?n.$bm_rt:e}}};return h(t)}const g=new Map;function y(t){if(!g.has(t)){let e=null;try{e=s(t)}catch{e=null}g.set(t,e)}return g.get(t)}function w(t,e,n,r,s){if(s<=0)return 0;if(s>=1)return 1;let o=s;for(let e=0;e<8;e++){const e=3*t*o*(1-o)**2+3*n*o*o*(1-o)+o**3-s,r=3*t*(1-o)**2+6*(n-t)*o*(1-o)+3*(1-n)*o*o;if(Math.abs(e)<1e-5)break;if(Math.abs(r)<1e-6)break;o-=e/r}return o=Math.min(1,Math.max(0,o)),3*e*o*(1-o)**2+3*r*o*o*(1-o)+o**3}const x=(t,e,n)=>Array.isArray(t)?t[Math.min(e,t.length-1)]??n:t??n,v=(t,e,n)=>"number"==typeof t?t+(e-t)*(Array.isArray(n)?n[0]:n):Array.isArray(t)?t.map((t,r)=>"number"==typeof t?t+((e?.[r]??t)-t)*(Array.isArray(n)?x(n,r,0):n):v(t,e?.[r],n)):t&&"object"==typeof t&&t.v?{c:t.c,v:v(t.v,e.v,n),i:v(t.i,e.i,n),o:v(t.o,e.o,n)}:t;let b=30;const M=t=>Array.from(t).reduce((t,e)=>(31*t+e.charCodeAt(0))%9973,7),k=t=>!!(t.a||Array.isArray(t.k)&&t.k.length&&"object"==typeof t.k[0]&&"t"in t.k[0]);function T(t,e,n){const r="string"==typeof t.x?y(t.x):null;if(!r)return n;try{const s=d(r,{time:e/b,value:n,fr:b,at:e=>$(t,e),keys:k(t)?t.k.map(t=>t.t):[],seed:M(t.x)});return void 0===s||"number"==typeof s&&!isFinite(s)?n:s}catch{return n}}function E(t,e,n){return t?T(t,e,$(t,e)):n}function $(t,e){if(!(t.a||Array.isArray(t.k)&&t.k.length&&"object"==typeof t.k[0]&&"t"in t.k[0]))return t.k;const n=t.k;if(e<=n[0].t)return A(n[0].s);for(let t=0;t<n.length-1;t++){const r=n[t],s=n[t+1];if(e>=s.t)continue;const o=A(r.s),a=A(void 0!==r.e?r.e:s.s);if(1===r.h||void 0===a)return o;const i=(e-r.t)/(s.t-r.t||1),c=Array.isArray(o)?o.length:1,l=Array.from({length:c},(t,e)=>w(x(r.o?.x,e,0),x(r.o?.y,e,0),x(r.i?.x,e,1),x(r.i?.y,e,1),i));if(r.to&&r.ti&&Array.isArray(o)&&(r.to.some(Boolean)||r.ti.some(Boolean))){const t=l[0],e=1-t;return o.map((n,s)=>e*e*e*n+3*e*e*t*(n+(r.to[s]||0))+3*e*t*t*(a[s]+(r.ti[s]||0))+t*t*t*a[s])}return v(o,a,c>1?l:l[0])}const r=n[n.length-1];return A(void 0!==r.s?r.s:n[n.length-2]?.e)}const A=t=>Array.isArray(t)&&1===t.length&&"object"==typeof t[0]?t[0]:t,S=[1,0,0,1,0,0],I=(t,e)=>[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]],O=(t,e,n)=>[t[0]*e+t[2]*n+t[4],t[1]*e+t[3]*n+t[5]],L=Math.PI/180;function j(t,e){if(!t)return{m:S,o:1};const n=E(t.a,e,[0,0])||[0,0];let r;r=t.p?.s?[E(t.p.x,e,0),E(t.p.y,e,0)]:E(t.p,e,[0,0])||[0,0];const s=E(t.s,e,[100,100])||[100,100],o=E(t.r??t.rz,e,0)||0,a=E(t.sk,e,0)||0,i=E(t.sa,e,0)||0;let c=[1,0,0,1,r[0],r[1]];if(o&&(c=I(c,[Math.cos(o*L),Math.sin(o*L),-Math.sin(o*L),Math.cos(o*L),0,0])),a){const t=Math.cos(i*L),e=Math.sin(i*L),n=Math.tan(-a*L);c=I(c,I([t,-e,e,t,0,0],I([1,0,n,1,0,0],[t,e,-e,t,0,0])))}c=I(c,[s[0]/100,0,0,(s[1]??s[0])/100,0,0]),c=I(c,[1,0,0,1,-n[0],-(n[1]||0)]);return{m:c,o:(E(t.o,e,100)??100)/100}}const P=.5519150244935105;function U(t,e){switch(t.ty){case"sh":{const n=E(t.ks,e);if(!n?.v?.length)return[];const r=[n.v[0][0],n.v[0][1]],s=n.v.length;for(let t=1;t<s+(n.c?1:0);t++){const e=n.v[(t-1)%s],o=n.v[t%s],a=n.o[(t-1)%s]||[0,0],i=n.i[t%s]||[0,0];r.push(e[0]+a[0],e[1]+a[1],o[0]+i[0],o[1]+i[1],o[0],o[1])}return[{pts:r,closed:!!n.c}]}case"rc":{const[n,r]=E(t.p,e,[0,0]),[s,o]=E(t.s,e,[0,0]),a=Math.min(E(t.r,e,0)||0,s/2,o/2),i=n-s/2,c=r-o/2;if(!a)return[{pts:[i+s,c,i+s,c,i+s,c+o,i+s,c+o,i+s,c+o,i,c+o,i,c+o,i,c+o,i,c,i,c,i,c,i+s,c],closed:!0}];const l=a*P;return[{pts:[i+s-a,c,i+s-a+l,c,i+s,c+a-l,i+s,c+a,i+s,c+a,i+s,c+o-a,i+s,c+o-a,i+s,c+o-a+l,i+s-a+l,c+o,i+s-a,c+o,i+s-a,c+o,i+a,c+o,i+a,c+o,i+a-l,c+o,i,c+o-a+l,i,c+o-a,i,c+o-a,i,c+a,i,c+a,i,c+a-l,i+a-l,c,i+a,c,i+a,c,i+s-a,c],closed:!0}]}case"el":{const[n,r]=E(t.p,e,[0,0]),[s,o]=E(t.s,e,[0,0]),a=s/2,i=o/2,c=a*P,l=i*P;return[{pts:[n,r-i,n+c,r-i,n+a,r-l,n+a,r,n+a,r+l,n+c,r+i,n,r+i,n-c,r+i,n-a,r+l,n-a,r,n-a,r-l,n-c,r-i,n,r-i],closed:!0}]}case"sr":{const[n,r]=E(t.p,e,[0,0]),s=Math.round(E(t.pt,e,5)),o=(E(t.r,e,0)||0)*L,a=E(t.or,e,50),i=1===t.sy?E(t.ir,e,25):a,c=1===t.sy?2*s:s,l=[];for(let e=0;e<=c;e++){const s=o-Math.PI/2+2*e*Math.PI/c,f=1===t.sy&&e%2?i:a,h=n+Math.cos(s)*f,u=r+Math.sin(s)*f;e?l.push(l[l.length-2],l[l.length-1],h,u,h,u):l.push(h,u)}return[{pts:l,closed:!0}]}}return[]}const D=(t,e)=>{const n=t.pts.slice();for(let t=0;t<n.length;t+=2)[n[t],n[t+1]]=O(e,n[t],n[t+1]);return{pts:n,closed:t.closed}};function R(t){const e=[t.pts[0],t.pts[1]];for(let n=2;n<t.pts.length;n+=6){const r=t.pts[n-2],s=t.pts[n-1],[o,a,i,c,l,f]=t.pts.slice(n,n+6),h=o===r&&a===s&&i===l&&c===f?1:16;for(let t=1;t<=h;t++){const n=t/h,u=1-n;e.push(u*u*u*r+3*u*u*n*o+3*u*n*n*i+n*n*n*l,u*u*u*s+3*u*u*n*a+3*u*n*n*c+n*n*n*f)}}return e}const C=t=>{let e=0;for(let n=2;n<t.length;n+=2)e+=Math.hypot(t[n]-t[n-2],t[n+1]-t[n-1]);return e};function B(t,e,n){const r=[];let s=0;for(let o=2;o<t.length;o+=2){const a=t[o-2],i=t[o-1],c=t[o],l=t[o+1],f=Math.hypot(c-a,l-i),h=Math.max(e,s),u=Math.min(n,s+f);if(u>h&&f){const t=(h-s)/f,e=(u-s)/f,n=a+(c-a)*t,o=i+(l-i)*t,m=a+(c-a)*e,p=i+(l-i)*e;r.length||r.push(n,o),r.push(n,o,m,p,m,p)}s+=f}return r.length?[{pts:r,closed:!1}]:[]}function z(t,e,n,r,s){let o=e/100,a=n/100;o>a&&([o,a]=[a,o]);const i=(r%360+360)%360/360;if(a-o>=1)return t;if(a-o<=0)return[];const c=t.map(R),l=c.map(C);if(2===s){const t=l.reduce((t,e)=>t+e,0),e=[];let n=0;return c.forEach((r,s)=>{const c=(o+i)%1*t,f=c+(a-o)*t;for(const s of[0,1])e.push(...B(r,c-n+s*-t,f-n+s*-t));n+=l[s]}),e}return c.flatMap((t,e)=>((t,e,n,r)=>{n+=i,r+=i;const s=[];for(const o of[-1,0,1])s.push(...B(t,(n+o)*e,(r+o)*e));return s})(t,l[e],o,a))}function F(t){const e=new Path2D;for(const n of t){e.moveTo(n.pts[0],n.pts[1]);for(let t=2;t<n.pts.length;t+=6)e.bezierCurveTo(n.pts[t],n.pts[t+1],n.pts[t+2],n.pts[t+3],n.pts[t+4],n.pts[t+5]);n.closed&&e.closePath()}return e}const _=(t,e=1)=>{if(!t)return"transparent";const n=t.some(t=>t>1),r=t.map(t=>Math.round(255*Math.min(1,Math.max(0,n?t/255:t))));return`rgba(${r[0]},${r[1]},${r[2]},${Math.max(0,Math.min(1,(t[3]??1)*e))})`};function N(t,e,n,r,s){const o=t.find(t=>"tr"===t.ty),{m:a,o:i}=j(o,e),c=I(n,a),l=r*i,f=[],h=[];for(const n of t)if(!n.hd)if("gr"===n.ty){const t=[];f.push(...N(n.it||[],e,c,l,t)),h.push(...t)}else if("sh"===n.ty||"rc"===n.ty||"el"===n.ty||"sr"===n.ty)f.push({c:U(n,e).map(t=>D(t,c))});else if("tm"===n.ty){const t=E(n.s,e,0),r=E(n.e,e,100),s=E(n.o,e,0);if(2===n.m){const e=z(f.flatMap(t=>t.c),t,r,s,2);f.forEach((t,n)=>t.c=n?[]:e)}else f.forEach(e=>e.c=z(e.c,t,r,s,1))}else"fl"===n.ty||"gf"===n.ty?h.push({kind:"fill",it:n,shapes:f.slice(),m:c,o:l}):"st"!==n.ty&&"gs"!==n.ty||h.push({kind:"stroke",it:n,shapes:f.slice(),m:c,o:l});return s.push(...h.reverse()),f}function J(t,e,n){const r=e.it,s=e.shapes.flatMap(t=>t.c);if(!s.length)return;const o=E(r.o,n,100)/100*e.o;let a;if("gf"===r.ty||"gs"===r.ty){const s=O(e.m,...E(r.s,n,[0,0])),o=O(e.m,...E(r.e,n,[0,0])),i=2===r.t?t.createRadialGradient(s[0],s[1],0,s[0],s[1],Math.hypot(o[0]-s[0],o[1]-s[1])):t.createLinearGradient(s[0],s[1],o[0],o[1]),c=r.g?.p||0,l=E(r.g?.k,n,[])||[],f=l.length>=4*c+2?l.slice(4*c):null;for(let t=0;t<c;t++){let e=1;if(f){let n=1,r=1/0;for(let e=0;e+1<f.length;e+=2){const s=Math.abs(f[e]-l[4*t]);s<r&&([r,n]=[s,f[e+1]])}e=n}i.addColorStop(Math.min(1,Math.max(0,l[4*t])),_([l[4*t+1],l[4*t+2],l[4*t+3],e]))}a=i}else a=_(E(r.c,n,[0,0,0]));t.save(),t.globalAlpha*=Math.max(0,Math.min(1,o));const i=F(s);if("fill"===e.kind)t.fillStyle=a,t.fill(i,2===r.r?"evenodd":"nonzero");else{const s=Math.sqrt(Math.abs(e.m[0]*e.m[3]-e.m[1]*e.m[2]))||1;if(t.strokeStyle=a,t.lineWidth=E(r.w,n,1)*s,t.lineCap=["butt","round","square"][(r.lc||2)-1]||"round",t.lineJoin=["miter","round","bevel"][(r.lj||2)-1]||"round",t.miterLimit=r.ml||4,r.d?.length){const e=r.d.filter(t=>"d"===t.n||"g"===t.n).map(t=>E(t.v,n,0)*s),o=r.d.find(t=>"o"===t.n);e.length&&e.some(t=>t>0)&&t.setLineDash(e.length%2?[...e,...e]:e),o&&(t.lineDashOffset=-E(o.v,n,0)*s)}t.stroke(i)}t.restore()}const W=(t,e)=>{const n=globalThis,r="function"==typeof n.OffscreenCanvas?new n.OffscreenCanvas(t,e):Object.assign(document.createElement("canvas"),{width:t,height:e});return{c:r,x:r.getContext("2d")}},Z=(t,e)=>(e-(t.st||0))/(t.sr||1);function q(t,e,n,r=0){const s=j(t.ks,Z(t,n)).m;if(void 0===t.parent||r>50)return s;const o=e.find(e=>e.ind===t.parent);return o?I(q(o,e,n,r+1),s):s}function V(t,e,n,r,s,o){const a=(t.masksProperties||[]).filter(t=>"n"!==t.mode);if(!a.length)return;const{c:i,x:c}=W(s,o);c.setTransform(r.getTransform()),a.forEach((t,r)=>{const a=E(t.pt,e);if(!a?.v)return;const i=F(U({ty:"sh",ks:{k:a}},e).map(t=>D(t,n))),l=(E(t.o,e,100)??100)/100;c.save(),c.fillStyle=`rgba(0,0,0,${l})`;const f=t.mode;if(t.inv){const t=new Path2D;t.rect(-1e5,-1e5,2e5,2e5),t.addPath(i),c.globalCompositeOperation="s"===f?"destination-out":"i"===f?"destination-in":"source-over",c.fill(t,"evenodd")}else c.globalCompositeOperation="s"===f?"destination-out":"i"===f&&r?"destination-in":"source-over","s"!==f||r||(c.save(),c.setTransform(1,0,0,1,0,0),c.globalCompositeOperation="source-over",c.fillRect(0,0,s,o),c.restore(),c.globalCompositeOperation="destination-out"),c.fill(i);c.restore()}),r.save(),r.setTransform(1,0,0,1,0,0),r.globalCompositeOperation="destination-in",r.drawImage(i,0,0),r.restore()}function G(t,e,n,r,s,o,a,i,c=0){if(!(c>16))for(let l=n.length-1;l>=0;l--){const f=n[l];if(f.td||f.hd||3===f.ty||r<f.ip||r>=f.op)continue;const h=f.tt?n[l-1]:void 0,u=!!(h||f.masksProperties&&f.masksProperties.length)?W(a,i):null,m=u?u.x:t;m.save(),m.setTransform(t.getTransform());const p=I(o,q(f,n,r)),d=Z(f,r);if(m.globalAlpha*=j(f.ks,d).o,4===f.ty){const t=[];N(f.shapes||[],d,p,1,t);for(const e of t)J(m,e,d)}else if(5===f.ty)H(m,e,f,d,p);else if(1===f.ty)m.transform(p[0],p[1],p[2],p[3],p[4],p[5]),m.fillStyle=f.sc||"#000",m.fillRect(0,0,f.sw||0,f.sh||0);else if(2===f.ty){const t=s.images?.[f.refId||""];t&&(m.transform(p[0],p[1],p[2],p[3],p[4],p[5]),m.drawImage(t,0,0))}else if(0===f.ty){const t=e.assets?.find(t=>t.id===f.refId);if(t?.layers){let n=d;f.tm&&(n=E(f.tm,r,0)*e.fr),m.save(),m.transform(p[0],p[1],p[2],p[3],p[4],p[5]),f.w&&f.h&&(m.beginPath(),m.rect(0,0,f.w,f.h),m.clip()),G(m,e,t.layers,n,s,S,a,i,c+1),m.restore()}}if(f.masksProperties?.length&&V(f,d,p,m,a,i),m.restore(),u){if(h){const n=W(a,i);n.x.setTransform(t.getTransform());const l={...h,td:0};G(n.x,e,[l],r,s,o,a,i,c+1),u.x.save(),u.x.setTransform(1,0,0,1,0,0),u.x.globalCompositeOperation=2===f.tt||4===f.tt?"destination-out":"destination-in",u.x.drawImage(n.c,0,0),u.x.restore()}t.save(),t.setTransform(1,0,0,1,0,0),t.drawImage(u.c,0,0),t.restore()}}}function H(t,e,n,r,s){const o=function(t,e){const n=t.t?.d;let r=n?.k?.[0]?.s;for(const t of n?.k||[])t.t<=e&&(r=t.s);return r&&"string"==typeof n.x&&(r={...r,t:String(T({k:r.t,x:n.x},e,r.t))}),r}(n,r);if(!o)return;t.transform(s[0],s[1],s[2],s[3],s[4],s[5]);const a=e.fonts?.list?.find(t=>t.fName===o.f),i=(a?.fStyle||o.f||"").toLowerCase(),c=/black|heavy/.test(i)?900:/extra ?bold/.test(i)?800:/semi ?bold|demi/.test(i)?600:/bold/.test(i)?700:/medium/.test(i)?500:/light/.test(i)?300:/thin/.test(i)?100:400;t.font=`${/italic|oblique/.test(i)?"italic ":""}${c} ${o.s}px ${a?.fFamily?`"${a.fFamily}", `:""}sans-serif`,t.textAlign=1===o.j?"right":2===o.j?"center":"left",t.textBaseline="alphabetic","letterSpacing"in t&&(t.letterSpacing=(o.tr||0)*o.s/1e3+"px");const l=o.lh||1.2*o.s;let f=String(o.t??"").split(/\r\n|\r|\n|\u0003/),h=0,u=0;if(o.sz){const e=o.sz[0],[n,r]=o.ps||[0,0];f=f.flatMap(n=>{const r=[];let s="";for(const o of n.split(" ")){const n=s?s+" "+o:o;s&&t.measureText(n).width>e?(r.push(s),s=o):s=n}return r.concat(s)}),h=n+(1===o.j?e:2===o.j?e/2:0),u=r+o.s}const m=o.fc?_(o.fc):null,p=o.sc&&o.sw?_(o.sc):null;f.forEach((e,n)=>{const r=u+n*l,s=()=>m&&(t.fillStyle=m,t.fillText(e,h,r)),a=()=>p&&(t.strokeStyle=p,t.lineWidth=o.sw,t.lineJoin="round",t.strokeText(e,h,r));o.of?(s(),a()):(a(),s())})}function K(t,e,n,r={}){const s=r.width??t.canvas.width,o=r.height??t.canvas.height;b=e.fr||30,t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,s,o),r.background&&(t.fillStyle=r.background,t.fillRect(0,0,s,o));const a=s/e.w,i=o/e.h,c="cover"===r.fit?Math.max(a,i):Math.min(a,i);"fill"===r.fit?t.setTransform(a,0,0,i,0,0):t.setTransform(c,0,0,c,(s-e.w*c)/2,(o-e.h*c)/2),t.beginPath(),t.rect(0,0,e.w,e.h),t.clip(),G(t,e,e.layers,n,r,S,s,o),t.restore()}function Q(t){const e=new Set,n=t=>t?.forEach(t=>{"gr"===t.ty&&n(t.it),"mm"===t.ty&&e.add("merge paths"),"rp"===t.ty&&e.add("repeaters"),"rd"===t.ty&&e.add("round corners"),"pb"===t.ty&&e.add("pucker / bloat"),"tw"===t.ty&&e.add("twist")}),r=t=>t.forEach(t=>{t.ddd&&e.add("3D layers"),t.ef?.length&&e.add("effects"),5===t.ty&&t.t?.a?.length&&e.add("text animators (range selectors)"),3!==t.tt&&4!==t.tt||e.add("luma mattes (approximated by alpha)"),JSON.stringify([t.ks,t.t,t.shapes],(t,n)=>("x"!==t||"string"!=typeof n||y(n)||e.add("expressions outside the supported subset"),n)),n(t.shapes||[])});return r(t.layers),t.assets?.forEach(t=>t.layers&&r(t.layers)),t.chars?.length&&e.add("glyph outlines (chars): drawn with system fonts"),{layers:t.layers.length,unsupported:[...e]}}const X={maxEntries:1e3,maxEntryBytes:32<<20,maxTotalBytes:64<<20,maxRatio:100},Y=t=>new Error(`[motionary] vector: zip limit exceeded — ${t} (see ZipLimits)`);function tt(t,e={}){const n={...X,...e},r=t instanceof Uint8Array?t:new Uint8Array(t),s=new DataView(r.buffer,r.byteOffset,r.byteLength);let o=r.length-22;for(;o>=0&&101010256!==s.getUint32(o,!0);)o--;if(o<0)throw new Error("[motionary] vector: not a zip / .lottie file");const a=s.getUint16(o+10,!0);if(a>n.maxEntries)throw Y(`${a} entries > maxEntries ${n.maxEntries}`);let i=s.getUint32(o+16,!0);const c=[];for(let t=0;t<a&&i+46<=r.length&&33639248===s.getUint32(i,!0);t++){const t=s.getUint16(i+10,!0),e=s.getUint32(i+20,!0),o=s.getUint32(i+24,!0),a=s.getUint16(i+28,!0),l=s.getUint16(i+30,!0),f=s.getUint16(i+32,!0),h=s.getUint32(i+42,!0),u=(new TextDecoder).decode(r.subarray(i+46,i+46+a));if(o>n.maxEntryBytes)throw Y(`${u}: ${o} bytes > maxEntryBytes ${n.maxEntryBytes}`);if(h+30>r.length)throw new Error("[motionary] vector: corrupt zip ("+u+")");const m=h+30+s.getUint16(h+26,!0)+s.getUint16(h+28,!0);c.push({name:u,method:t,size:o,data:r.subarray(m,m+e)}),i+=46+a+l+f}return c}async function et(t,e={},n={total:0}){const r={...X,...e},s=e=>{if(e>r.maxEntryBytes)throw Y(`${t.name}: > maxEntryBytes ${r.maxEntryBytes}`);if(n.total+e>r.maxTotalBytes)throw Y(`archive > maxTotalBytes ${r.maxTotalBytes}`);if(e>1<<20&&e>Math.max(1,t.data.length)*r.maxRatio)throw Y(`${t.name}: compression ratio > maxRatio ${r.maxRatio}`)};if(0===t.method)return s(t.data.length),n.total+=t.data.length,t.data;if(8!==t.method)throw new Error(`[motionary] vector: zip method ${t.method} unsupported (${t.name})`);const o=globalThis.DecompressionStream;if(!o)throw new Error("[motionary] vector: DecompressionStream is missing — cannot inflate .lottie entries here");const a=new Response(t.data).body.pipeThrough(new o("deflate-raw")).getReader(),i=[];let c=0;for(;;){const{done:t,value:e}=await a.read();if(t)break;c+=e.length;try{s(c)}catch(t){throw a.cancel().catch(()=>{}),t}i.push(e)}n.total+=c;const l=new Uint8Array(c);let f=0;for(const t of i)l.set(t,(f+=t.length)-t.length);return l}async function nt(t,e={}){const n=tt(t,e.limits),r={},s={total:0};for(const t of n)t.name.endsWith("/")||(r[t.name.replace(/^\.?\//,"")]=await et(t,e.limits,s));const o=new TextDecoder,a=r["manifest.json"]?(i="manifest.json",JSON.parse(o.decode(r[i]))):{animations:[]};var i;const c={},l={},f={},h={};for(const[t,e]of Object.entries(r)){const n=/^(animations|a)\/(.+)\.json$/.exec(t);n?c[n[2]]=JSON.parse(o.decode(e)):/^(images|i)\//.test(t)?l[t.replace(/^(images|i)\//,"")]=e:/^(themes|t)\/(.+)\.json$/.test(t)?f[t.replace(/^(themes|t)\/|\.json$/g,"")]=JSON.parse(o.decode(e)):/^(states|s)\/(.+)\.json$/.test(t)&&(h[t.replace(/^(states|s)\/|\.json$/g,"")]=JSON.parse(o.decode(e)))}return{manifest:a,animations:c,images:l,themes:f,stateMachines:h}}async function rt(t,e={}){const n={};return await Promise.all((t.assets||[]).filter(t=>t.p&&!t.layers).map(async t=>{let r=null;if(t.p.startsWith("data:"))r=await(await fetch(t.p)).blob();else{const n=Object.keys(e.files||{}).find(e=>e.endsWith("/"+t.p)||e===t.p);n?r=new Blob([e.files[n]],{type:/\.jpe?g$/i.test(n)?"image/jpeg":/\.webp$/i.test(n)?"image/webp":"image/png"}):e.base&&(r=await(await fetch(new URL((t.u||"")+t.p,e.base).href)).blob())}r&&(n[t.id]=await createImageBitmap(r))})),n}async function st(t,e={}){let n;const r=e.base||("string"==typeof t&&"undefined"!=typeof location?new URL(t,location.href).href:void 0);if("string"==typeof t){const e=await fetch(t);if(!e.ok)throw new Error(`[motionary] vector: could not load ${t} (${e.status})`);n=new Uint8Array(await e.arrayBuffer())}else n=t instanceof Uint8Array?t:new Uint8Array(t);if(80===n[0]&&75===n[1]){const t=await nt(n,{limits:e.limits}),r=Object.keys(t.animations),s=e.animation||t.manifest.activeAnimationId||t.manifest.animations?.[0]?.id||r[0],o=t.animations[s]||t.animations[r[0]];if(!o)throw new Error("[motionary] vector: the .lottie file has no animations");const a={};for(const[e,n]of Object.entries(t.images))a[e]=n;return{animation:o,images:await rt(o,{files:a}),dotLottie:t}}const s=JSON.parse((new TextDecoder).decode(n));return{animation:s,images:await rt(s,{base:r}),dotLottie:null}}class ot extends n.Playable{constructor(t,e,n){super({repeat:!0===n.loop||void 0===n.loop?-1:"number"==typeof n.loop?n.loop:0,yoyo:!!n.bounce}),this.canvas=t,this.animation=e,this.o=n,this.frame=0,this.markers={},this.timeScale=n.speed||1;const r=t.getContext("2d");if(!r)throw new Error("[motionary] vector: no 2D canvas context");this.ctx=r;for(const t of e.markers||[])this.markers[t.cm]=[t.tm,t.tm+t.dr];this.seg=[e.ip,e.op],this.setSegment(n.segment||null),this.goToFrame(this.seg[0]),!1!==n.autoplay&&this.play()}get totalFrames(){return this.seg[1]-this.seg[0]}get duration(){return this.totalFrames/this.animation.fr*1e3}setSegment(t){this.seg=t?"string"==typeof t?this.markers[t]||[this.animation.ip,this.animation.op]:t:[this.animation.ip,this.animation.op]}goToFrame(t){this.frame=t,K(this.ctx,this.animation,t,this.o)}renderLocal(t){const e=Math.min(this.seg[0]+t/1e3*this.animation.fr,this.seg[1]-.001);Math.abs(e-this.frame)<.01||this.goToFrame(e)}}function at(t,e,n={}){return new ot(t,e,n)}function it(t,e,n=0,r=30){const s=y(t);try{return s?d(s,{time:n,value:e,fr:r,at:()=>e,keys:[],seed:M(t)}):void 0}catch{return}}const ct={id:"vector",version:e.RUNTIME_VERSION,tier:"standard",requires:["core"],api:{evalExpression:it,loadLottie:st,parseDotLottie:nt,unzipEntries:tt,lottiePlayer:at,renderLottieFrame:K,inspectLottie:Q,propValue:E,transformAt:j,trimContours:z,loadLottieImages:rt}};e.register(ct),t.ZIP_LIMITS=X,t.evalExpression=it,t.inflateEntry=et,t.inspectLottie=Q,t.loadLottie=st,t.loadLottieImages=rt,t.lottiePlayer=at,t.parseDotLottie=nt,t.propValue=E,t.renderLottieFrame=K,t.transformAt=j,t.trimContours=z,t.unzipEntries=tt,t.vector=ct}(this.MotionaryRuntime=this.MotionaryRuntime||{},MotionaryRuntime,MotionaryRuntime);
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime/vector.iife.js.map
|
package/dist/runtime/vector.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION } from '../chunks/registry-
|
|
2
|
-
import { P as Playable } from '../chunks/tween-
|
|
3
|
-
import '../chunks/ticker-DtCFsNm7.js';
|
|
4
|
-
import '../chunks/ease-XN8_0sXu.js';
|
|
1
|
+
import { R as RUNTIME_VERSION } from '../chunks/registry-Ng9TVXnA.js';
|
|
2
|
+
import { P as Playable } from '../chunks/tween-DZdCTOBG.js';
|
|
5
3
|
|
|
6
4
|
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']);
|
|
7
5
|
function lex(src) {
|
|
@@ -1145,4 +1143,4 @@ function evalExpression(src, value, time = 0, fr = 30) {
|
|
|
1145
1143
|
const vector = { id: 'vector', version: RUNTIME_VERSION, tier: 'standard', requires: ['core'], api: { evalExpression, loadLottie, parseDotLottie, unzipEntries, lottiePlayer, renderLottieFrame, inspectLottie, propValue, transformAt, trimContours, loadLottieImages } };
|
|
1146
1144
|
|
|
1147
1145
|
export { ZIP_LIMITS, evalExpression, inflateEntry, inspectLottie, loadLottie, loadLottieImages, lottiePlayer, parseDotLottie, propValue, renderLottieFrame, transformAt, trimContours, unzipEntries, vector };
|
|
1148
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
1146
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime/vector.js.map
|
package/dist/runtime.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var registry = require('./chunks/registry-
|
|
4
|
-
var ticker = require('./chunks/ticker-
|
|
5
|
-
var tween$1 = require('./chunks/tween-
|
|
3
|
+
var registry = require('./chunks/registry-D4qv6B49.cjs');
|
|
4
|
+
var ticker = require('./chunks/ticker-Bcx-J0T3.cjs');
|
|
5
|
+
var tween$1 = require('./chunks/tween-C755kVRe.cjs');
|
|
6
6
|
var ease = require('./chunks/ease-HwYZnZat.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -82,4 +82,4 @@ exports.core = core;
|
|
|
82
82
|
exports.resolveTargets = resolveTargets;
|
|
83
83
|
exports.tween = tween;
|
|
84
84
|
exports.use = use;
|
|
85
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
85
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime.cjs.map
|
package/dist/runtime.d.cts
CHANGED
|
@@ -150,7 +150,7 @@ declare function timeline(o?: TimelineOptions): Timeline;
|
|
|
150
150
|
* inside Web Workers.
|
|
151
151
|
*/
|
|
152
152
|
/** Runtime version (kept in sync with the package version by the release script). */
|
|
153
|
-
declare const RUNTIME_VERSION = "13.
|
|
153
|
+
declare const RUNTIME_VERSION = "13.5.0";
|
|
154
154
|
/** Where the CDN builds live (major-pinned). */
|
|
155
155
|
declare const RUNTIME_CDN = "https://cdn.jsdelivr.net/npm/motionary@13/dist/";
|
|
156
156
|
/**
|
package/dist/runtime.d.ts
CHANGED
|
@@ -150,7 +150,7 @@ declare function timeline(o?: TimelineOptions): Timeline;
|
|
|
150
150
|
* inside Web Workers.
|
|
151
151
|
*/
|
|
152
152
|
/** Runtime version (kept in sync with the package version by the release script). */
|
|
153
|
-
declare const RUNTIME_VERSION = "13.
|
|
153
|
+
declare const RUNTIME_VERSION = "13.5.0";
|
|
154
154
|
/** Where the CDN builds live (major-pinned). */
|
|
155
155
|
declare const RUNTIME_CDN = "https://cdn.jsdelivr.net/npm/motionary@13/dist/";
|
|
156
156
|
/**
|
package/dist/runtime.iife.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t){"use strict";const e="13.4.0",r="https://cdn.jsdelivr.net/npm/motionary@13/dist/",s=["basic","standard","advanced"],i={core:"basic",scroll:"basic",text:"basic","format-css":"basic","format-motion":"basic",smooth:"standard","drag-snap":"standard","format-svg":"standard","format-sprite":"standard","format-gif":"standard","format-apng":"standard","format-webp":"standard",vector:"standard","lottie-state":"standard",rive:"standard",gl:"advanced","format-gltf":"advanced","format-obj":"advanced","gltf-anim":"advanced","gltf-decoders":"advanced","basis-transcoder":"advanced",draco3d:"advanced",physics:"advanced","format-scene":"advanced"};const n=Symbol.for("motionary.runtime");function o(){const t=globalThis;return t[n]||(t[n]={version:e,modules:new Map,slots:{}})}const a=t=>"core"===t?"motionary/runtime":`motionary/runtime/${t}`,u=t=>r+("core"===t?"runtime.iife.js":`runtime/${t}.iife.js`);function c(t,e="This feature"){const r=a(t);return`[motionary] ${e} requires ${r}. Install once: npm i motionary — then register it before the component mounts: ${"core"===t?"import { use } from 'motionary/runtime'; use();":`import { use } from 'motionary/runtime'; import { ${l(t)} } from '${r}'; use(${l(t)});`} Or from a CDN (core first): ${"core"===t?`<script src="${u("core")}"><\/script>`:`<script src="${u("core")}"><\/script><script src="${u(t)}"><\/script>`} Docs: https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/${t}.md`}const l=t=>t.replace(/-(\w)/g,(t,e)=>e.toUpperCase());class h extends Error{constructor(t,e){super(c(t,e)),this.name="RuntimeModuleError",this.module=t}}function d(...t){const e=o();for(const r of t){if(!r||"string"!=typeof r.id)throw new TypeError("[motionary] use(): not a runtime module");if(!e.modules.has(r.id)){for(const t of r.requires||[])if(!e.modules.has(t))throw new h(t,`motionary/runtime/${r.id}`);e.modules.set(r.id,r),r.setup?.(e)}}return e}function m(){const t=new Set;let e=0,r=-1,s=60,i=100,n=null;const o=globalThis,a=()=>o.performance?.now?o.performance.now():Date.now(),u=t=>"function"==typeof o.requestAnimationFrame?o.requestAnimationFrame(t):setTimeout(()=>t(a()),16),c=(r,s=!0)=>{const n=(s?Math.min(r,i):r)*h.timeScale;e+=n;for(const r of Array.from(t))r(e,n)},l=e=>{if(n=null,!t.size)return;const i="number"==typeof e&&e>0?e:a(),o=r<0?0:i-r;r=i,o>0&&(s=.9*s+1e3/o*.1),c(o),t.size&&(n=u(l))},h={add:e=>(t.add(e),null===n&&t.size&&(r=-1,n=u(l)),()=>h.remove(e)),remove(e){var r;t.delete(e),t.size||null===n||(r=n,"function"==typeof o.cancelAnimationFrame?o.cancelAnimationFrame(r):clearTimeout(r),n=null)},get time(){return e},get fps(){return Math.round(s)},get size(){return t.size},lagSmoothing(t){i=t>0?t:1/0},timeScale:1,step(t){c(t,!1)}};return h}function f(){const t=o().slots;return t.ticker||(t.ticker=m())}const p=t=>e=>1-t(1-e),y=t=>e=>e<.5?t(2*e)/2:1-t(2*(1-e))/2,g=t=>e=>Math.pow(e,t);function v(t,e,r,s){const i=(t,e)=>1-3*e+3*t,n=(t,e)=>3*e-6*t,o=t=>3*t,a=(t,e,r)=>((i(e,r)*t+n(e,r))*t+o(e))*t,u=(t,e,r)=>3*i(e,r)*t*t+2*n(e,r)*t+o(e);return i=>{if(i<=0||i>=1)return i<=0?0:1;let n=i;for(let e=0;e<6;e++){const e=u(n,t,r);if(Math.abs(e)<1e-6)break;n-=(a(n,t,r)-i)/e}if(n<0||n>1||Math.abs(a(n,t,r)-i)>1e-4){let e=0,s=1;n=i;for(let o=0;o<30;o++){const o=a(n,t,r);if(Math.abs(o-i)<1e-6)break;o<i?e=n:s=n,n=(e+s)/2}}return a(n,e,s)}}const b=(t,e="end")=>r=>{const s="start"===e?Math.ceil(r*t):Math.floor(r*t);return Math.min(1,Math.max(0,s/t))},k={quad:g(2),cubic:g(3),quart:g(4),quint:g(5),sine:t=>1-Math.cos(t*Math.PI/2),expo:t=>0===t?0:Math.pow(2,10*t-10),circ:t=>1-Math.sqrt(1-t*t),back:((t=1.70158)=>e=>e*e*((t+1)*e-t))(),elastic:t=>0===t||1===t?t:-Math.pow(2,10*t-10)*Math.sin((10*t-10.75)*(2*Math.PI/3)),bounce:p(t=>{const e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375})},w={linear:t=>t,ease:v(.25,.1,.25,1),"ease-in":v(.42,0,1,1),"ease-out":v(0,0,.58,1),"ease-in-out":v(.42,0,.58,1),smooth:v(.22,1,.36,1)};for(const[t,e]of Object.entries(k))w[`${t}-in`]=e,w[`${t}-out`]=p(e),w[`${t}-in-out`]=y(e);function $(t){if("function"==typeof t)return t;if(!t)return w["cubic-out"];const e=t.trim();if(w[e])return w[e];let r=/^cubic-bezier\(\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)\s*\)$/.exec(e);if(r)return v(+r[1],+r[2],+r[3],+r[4]);if(r=/^steps\(\s*(\d+)\s*(?:,\s*(jump-)?(start|end)\s*)?\)$/.exec(e),r)return b(+r[1],r[3]||"end");if("step-start"===e)return b(1,"start");if("step-end"===e)return b(1,"end");throw new Error(`[motionary] unknown ease "${e}" — use a name from EASES, cubic-bezier(…) or steps(…)`)}const _=["x","y","rotate","scale","scaleX","scaleY","skewX","skewY"],M={x:"px",y:"px",rotate:"deg",skewX:"deg",skewY:"deg",scale:"",scaleX:"",scaleY:""},x=new WeakMap,E=t=>"undefined"!=typeof Element&&t instanceof Element,S=/-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?/gi;function T(t){if("number"==typeof t)return{kind:"num",v:t,u:""};const e=t.trim();let r=/^#([0-9a-f]{3,8})$/i.exec(e);if(r){let t=r[1];t.length<=4&&(t=t.split("").map(t=>t+t).join(""));const e=e=>parseInt(t.slice(e,e+2),16);return{kind:"col",c:[e(0),e(2),e(4),8===t.length?e(6)/255:1]}}if(r=/^rgba?\(([^)]+)\)$/i.exec(e),r){const t=r[1].split(/[\s,/]+/).filter(Boolean).map(t=>t.endsWith("%")?parseFloat(t)/100*255:parseFloat(t));return{kind:"col",c:[t[0],t[1],t[2],void 0===t[3]?1:t[3]>1?t[3]/255:t[3]]}}return"transparent"===e?{kind:"col",c:[0,0,0,0]}:(r=/^(-?[\d.]+(?:e-?\d+)?)([a-z%]*)$/i.exec(e),r?{kind:"num",v:parseFloat(r[1]),u:r[2]}:{kind:"str",s:e,parts:e.split(S),nums:(e.match(S)||[]).map(Number)})}const D=(t,e,r)=>{if("str"===t.kind||"str"===e.kind){if("str"===t.kind&&"str"===e.kind&&t.parts.join("\0")===e.parts.join("\0")&&t.nums.length===e.nums.length)return t.parts.map((s,i)=>s+(i<t.nums.length?+(t.nums[i]+(e.nums[i]-t.nums[i])*r).toFixed(4):"")).join("");const s=r<.5?t:e;return"str"===s.kind?s.s:"num"===s.kind?s.u?s.v+s.u:s.v:`rgba(${s.c.join(", ")})`}if("col"===t.kind||"col"===e.kind){const s="col"===t.kind?t.c:[0,0,0,0],i="col"===e.kind?e.c:[0,0,0,0],n=s.map((t,e)=>t+(i[e]-t)*r);return`rgba(${Math.round(n[0])}, ${Math.round(n[1])}, ${Math.round(n[2])}, ${+n[3].toFixed(3)})`}const s=t.v+(e.v-t.v)*r,i=e.u||t.u;return i?`${+s.toFixed(4)}${i}`:+s.toFixed(6)},A=t=>t.startsWith("--")?t:t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase());function P(t,e){if(!E(t))return t[e]??0;if(_.includes(e)){const r=x.get(t)?.[e];return r?r.v+r.u:e.startsWith("scale")?1:0}const r=t.style.getPropertyValue(A(e));if(r)return r;return("function"==typeof getComputedStyle?getComputedStyle(t).getPropertyValue(A(e)):"")||("opacity"===e?1:0)}function j(t,e,r){if(E(t)){if(_.includes(e)){const s=T(r);if("num"!==s.kind)throw new Error(`[motionary] ${e} needs a number (got "${r}")`);const i=x.get(t)||{};return i[e]={v:s.v,u:s.u},void x.set(t,i)}t.style.setProperty(A(e),"number"!=typeof r||["opacity","zIndex","z-index"].includes(e)||e.startsWith("--")?String(r):r+"px")}else t[e]="string"==typeof r&&"number"==typeof t[e]?parseFloat(r):r}class C{constructor(t){this.timeScale=1,this._t=0,this._dir=1,this._off=null,this._done=!1,this.parent=null,this.delay=t.delay||0,this.repeat=t.repeat||0,this.yoyo=!!t.yoyo,this.onUpdate=t.onUpdate,this.onComplete=t.onComplete,this.finished=new Promise(t=>this._resolve=t)}get totalDuration(){return this.repeat<0?1/0:this.delay+this.duration*(this.repeat+1)}get time(){return this._t}get progress(){const t=this.totalDuration;return t===1/0?(this._t-this.delay)%this.duration/this.duration:t?this._t/t:1}set progress(t){this.seek(t*(this.totalDuration===1/0?this.delay+this.duration:this.totalDuration))}get isActive(){return!!this._off}get reversed(){return this._dir<0}seek(t){const e=this.totalDuration;this._t=Math.max(0,Math.min(t,e));const r=this._t-this.delay,s=this.duration||0;if(r<0)this.renderLocal(0,!1);else if(s){let t=s===1/0?0:Math.floor(r/s),i=s===1/0?r:r-t*s;r>=e-this.delay&&e!==1/0&&(t=this.repeat,i=s);const n=this.yoyo&&t%2==1;this.renderLocal(n?s-i:i,i===s)}else this.renderLocal(0,!0);return this.onUpdate?.(this.progress),this}play(){return this._dir=1,this._t>=this.totalDuration&&(this._t=0),this.attach()}pause(){return this._off?.(),this._off=null,this}reverse(){return this._dir=-1,this._t<=0&&(this._t=this.totalDuration===1/0?this.delay+this.duration:this.totalDuration),this.attach()}restart(){return this._done=!1,this.seek(0),this.play()}kill(){this.pause(),this.parent?.remove(this)}then(t,e){return this.finished.then(t,e)}attach(){return this.parent||this._off||(this._done=!1,this._off=f().add((t,e)=>this.advance(e))),this}advance(t){const e=this.totalDuration;this.seek(this._t+t*this._dir*this.timeScale),(this._dir>0&&this._t>=e||this._dir<0&&this._t<=0)&&this.complete()}complete(){this.pause(),this._done||(this._done=!0,this.onComplete?.(),this._resolve())}}class R extends C{constructor(t,e){super(e),this.tracks=null,this.target=t,this._dur=e.duration??600,this.ease=$(e.ease),this.toProps=e.to||{},this.fromProps=e.from||{}}get duration(){return this._dur}init(){return Array.from(new Set([...Object.keys(this.fromProps),...Object.keys(this.toProps)])).map(t=>{const e=t in this.fromProps?this.fromProps[t]:P(this.target,t),r=t in this.toProps?this.toProps[t]:P(this.target,t);return{k:t,fromRaw:e,toRaw:r,from:T(e),to:T(r)}})}renderLocal(t,e){this.tracks||(this.tracks=this.init());const r=this._dur?e?this.ease(t>=this._dur?1:0):this.ease(t/this._dur):1;let s=!1;for(const t of this.tracks)j(this.target,t.k,D(t.from,t.to,r)),_.includes(t.k)&&(s=!0);s&&E(this.target)&&function(t){const e=x.get(t),r=(t,r)=>e[t]?e[t].v:r,s=t=>e[t]?.u??M[t],i=[];(e.x||e.y)&&i.push(`translate(${r("x",0)}${s("x")||"px"}, ${r("y",0)}${s("y")||"px"})`),e.rotate&&i.push(`rotate(${r("rotate",0)}${s("rotate")||"deg"})`),e.scale&&i.push(`scale(${r("scale",1)})`),(e.scaleX||e.scaleY)&&i.push(`scale(${r("scaleX",1)}, ${r("scaleY",1)})`),e.skewX&&i.push(`skewX(${r("skewX",0)}${s("skewX")||"deg"})`),e.skewY&&i.push(`skewY(${r("skewY",0)}${s("skewY")||"deg"})`),t.style.transform=i.join(" ")}(this.target)}}class z extends C{constructor(t={}){super(t),this.children=[],this.labels={},this.prevStart=0,this.prevEnd=0,this.lastLocal=0,this.defaults=t.defaults}get duration(){let t=0;for(const e of this.children)t=Math.max(t,e.start+("function"==typeof e.item?0:e.item.totalDuration));return t}resolve(t){if(void 0===t||">"===t)return this.prevEnd;if("number"==typeof t)return Math.max(0,t);const e=/^([<>]|[\w-]+)?\s*(?:([+-])=\s*([\d.]+))?$/.exec(t.trim());if(!e)throw new Error(`[motionary] bad timeline position "${t}"`);let r=this.prevEnd;if("<"===e[1])r=this.prevStart;else if(e[1]&&">"!==e[1]){if(!(e[1]in this.labels))throw new Error(`[motionary] unknown timeline label "${e[1]}"`);r=this.labels[e[1]]}const s=e[2]?("+"===e[2]?1:-1)*parseFloat(e[3]):0;return Math.max(0,r+s)}add(t,e){const r=this.resolve(e);return"function"!=typeof t&&(t.pause(),t.parent=this),this.children.push({item:t,start:r}),this.prevStart=r,this.prevEnd=r+("function"==typeof t?0:t.totalDuration),this}to(t,e,r){const s=F(t),i=this.resolve(r);let n=i;return s.forEach((t,r)=>{const s=new R(t,{...this.defaults,...e,delay:(e.delay||0)+(e.stagger||0)*r,paused:!0});s.parent=this,this.children.push({item:s,start:i}),n=Math.max(n,i+s.totalDuration)}),this.prevStart=i,this.prevEnd=n,this}call(t,e){return this.add(t,e)}label(t,e){return this.labels[t]=this.resolve(e),this}labelTime(t){return this.labels[t]}remove(t){this.children=this.children.filter(e=>e.item!==t)}getChildren(){return this.children.filter(t=>"function"!=typeof t.item).map(t=>t.item)}renderLocal(t){const e=t>=this.lastLocal,r=[...this.children].sort((t,r)=>e?t.start-r.start:r.start-t.start);for(const s of r){if("function"==typeof s.item){e&&!s.fired&&t>=s.start&&this.lastLocal<=s.start?(s.fired=!0,s.item()):!e&&t<s.start&&(s.fired=!1);continue}const r=t-s.start,i=s.item;r<0?i._started&&i.seek(0):(i._started=!0,i.seek(Math.min(r,i.totalDuration)))}this.lastLocal=t}}function F(t){return Array.isArray(t)?t:t&&"number"==typeof t.length&&!E(t)?Array.from(t):[t]}function I(t={}){const e=new z(t);return t.paused||e.play(),e}const q={id:"core",version:e,tier:"basic",api:{version:e,getTicker:f,tween:L,timeline:I,Tween:R,Timeline:z,EASES:w,parseEase:$,cubicBezier:v,steps:b}};function L(t,e){return function(t,e){const r=F(t);let s;if(1===r.length)s=new R(r[0],e);else{const t=new z({repeat:e.repeat,yoyo:e.yoyo,onUpdate:e.onUpdate,onComplete:e.onComplete,delay:e.delay});t.to(r,{...e,delay:0,repeat:0,yoyo:!1,onUpdate:void 0,onComplete:void 0},0),s=t}return e.paused||s.play(),s}(U(t),e)}function U(t){if("string"==typeof t){if("undefined"==typeof document)throw new Error("[motionary] selector targets need a document — pass objects or elements instead");return Array.from(document.querySelectorAll(t))}return t}function X(...t){return d(q,...t)}X(),t.EASES=w,t.Playable=C,t.RUNTIME_CDN=r,t.RUNTIME_TIERS=i,t.RUNTIME_VERSION=e,t.RuntimeModuleError=h,t.TIER_ORDER=s,t.Timeline=z,t.Tween=R,t.core=q,t.cubicBezier=v,t.getTicker=f,t.hasModule=t=>o().modules.has(t),t.maxTier=function(t=[]){let e=0;for(const r of t)e=Math.max(e,s.indexOf(i[r]??"basic"));return s[e]},t.missingMessage=c,t.moduleCdn=u,t.modulePath=a,t.parseEase=$,t.parseValue=T,t.register=d,t.registeredModules=()=>Array.from(o().modules.keys()),t.registry=o,t.requireModule=function(t,e){const r=o().modules.get(t);if(!r)throw new h(t,e);return r.api},t.resolveTargets=U,t.steps=b,t.tierOf=t=>i[t],t.timeline=I,t.tween=L,t.use=X}(this.MotionaryRuntime=this.MotionaryRuntime||{});
|
|
2
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
1
|
+
!function(t){"use strict";const e="13.5.0",r="https://cdn.jsdelivr.net/npm/motionary@13/dist/",s=["basic","standard","advanced"],i={core:"basic",scroll:"basic",text:"basic","format-css":"basic","format-motion":"basic",smooth:"standard","drag-snap":"standard","format-svg":"standard","format-sprite":"standard","format-gif":"standard","format-apng":"standard","format-webp":"standard",vector:"standard","lottie-state":"standard",rive:"standard",gl:"advanced","format-gltf":"advanced","format-obj":"advanced","gltf-anim":"advanced","gltf-decoders":"advanced","basis-transcoder":"advanced",draco3d:"advanced",physics:"advanced","format-scene":"advanced"};const n=Symbol.for("motionary.runtime");function o(){const t=globalThis;return t[n]||(t[n]={version:e,modules:new Map,slots:{}})}const a=t=>"core"===t?"motionary/runtime":`motionary/runtime/${t}`,u=t=>r+("core"===t?"runtime.iife.js":`runtime/${t}.iife.js`);function c(t,e="This feature"){const r=a(t);return`[motionary] ${e} requires ${r}. Install once: npm i motionary — then register it before the component mounts: ${"core"===t?"import { use } from 'motionary/runtime'; use();":`import { use } from 'motionary/runtime'; import { ${l(t)} } from '${r}'; use(${l(t)});`} Or from a CDN (core first): ${"core"===t?`<script src="${u("core")}"><\/script>`:`<script src="${u("core")}"><\/script><script src="${u(t)}"><\/script>`} Docs: https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/${t}.md`}const l=t=>t.replace(/-(\w)/g,(t,e)=>e.toUpperCase());class h extends Error{constructor(t,e){super(c(t,e)),this.name="RuntimeModuleError",this.module=t}}function d(...t){const e=o();for(const r of t){if(!r||"string"!=typeof r.id)throw new TypeError("[motionary] use(): not a runtime module");if(!e.modules.has(r.id)){for(const t of r.requires||[])if(!e.modules.has(t))throw new h(t,`motionary/runtime/${r.id}`);e.modules.set(r.id,r),r.setup?.(e)}}return e}function m(){const t=new Set;let e=0,r=-1,s=60,i=100,n=null;const o=globalThis,a=()=>o.performance?.now?o.performance.now():Date.now(),u=t=>"function"==typeof o.requestAnimationFrame?o.requestAnimationFrame(t):setTimeout(()=>t(a()),16),c=(r,s=!0)=>{const n=(s?Math.min(r,i):r)*h.timeScale;e+=n;for(const r of Array.from(t))r(e,n)},l=e=>{if(n=null,!t.size)return;const i="number"==typeof e&&e>0?e:a(),o=r<0?0:i-r;r=i,o>0&&(s=.9*s+1e3/o*.1),c(o),t.size&&(n=u(l))},h={add:e=>(t.add(e),null===n&&t.size&&(r=-1,n=u(l)),()=>h.remove(e)),remove(e){var r;t.delete(e),t.size||null===n||(r=n,"function"==typeof o.cancelAnimationFrame?o.cancelAnimationFrame(r):clearTimeout(r),n=null)},get time(){return e},get fps(){return Math.round(s)},get size(){return t.size},lagSmoothing(t){i=t>0?t:1/0},timeScale:1,step(t){c(t,!1)}};return h}function f(){const t=o().slots;return t.ticker||(t.ticker=m())}const p=t=>e=>1-t(1-e),y=t=>e=>e<.5?t(2*e)/2:1-t(2*(1-e))/2,g=t=>e=>Math.pow(e,t);function v(t,e,r,s){const i=(t,e)=>1-3*e+3*t,n=(t,e)=>3*e-6*t,o=t=>3*t,a=(t,e,r)=>((i(e,r)*t+n(e,r))*t+o(e))*t,u=(t,e,r)=>3*i(e,r)*t*t+2*n(e,r)*t+o(e);return i=>{if(i<=0||i>=1)return i<=0?0:1;let n=i;for(let e=0;e<6;e++){const e=u(n,t,r);if(Math.abs(e)<1e-6)break;n-=(a(n,t,r)-i)/e}if(n<0||n>1||Math.abs(a(n,t,r)-i)>1e-4){let e=0,s=1;n=i;for(let o=0;o<30;o++){const o=a(n,t,r);if(Math.abs(o-i)<1e-6)break;o<i?e=n:s=n,n=(e+s)/2}}return a(n,e,s)}}const b=(t,e="end")=>r=>{const s="start"===e?Math.ceil(r*t):Math.floor(r*t);return Math.min(1,Math.max(0,s/t))},k={quad:g(2),cubic:g(3),quart:g(4),quint:g(5),sine:t=>1-Math.cos(t*Math.PI/2),expo:t=>0===t?0:Math.pow(2,10*t-10),circ:t=>1-Math.sqrt(1-t*t),back:((t=1.70158)=>e=>e*e*((t+1)*e-t))(),elastic:t=>0===t||1===t?t:-Math.pow(2,10*t-10)*Math.sin((10*t-10.75)*(2*Math.PI/3)),bounce:p(t=>{const e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375})},w={linear:t=>t,ease:v(.25,.1,.25,1),"ease-in":v(.42,0,1,1),"ease-out":v(0,0,.58,1),"ease-in-out":v(.42,0,.58,1),smooth:v(.22,1,.36,1)};for(const[t,e]of Object.entries(k))w[`${t}-in`]=e,w[`${t}-out`]=p(e),w[`${t}-in-out`]=y(e);function $(t){if("function"==typeof t)return t;if(!t)return w["cubic-out"];const e=t.trim();if(w[e])return w[e];let r=/^cubic-bezier\(\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)\s*\)$/.exec(e);if(r)return v(+r[1],+r[2],+r[3],+r[4]);if(r=/^steps\(\s*(\d+)\s*(?:,\s*(jump-)?(start|end)\s*)?\)$/.exec(e),r)return b(+r[1],r[3]||"end");if("step-start"===e)return b(1,"start");if("step-end"===e)return b(1,"end");throw new Error(`[motionary] unknown ease "${e}" — use a name from EASES, cubic-bezier(…) or steps(…)`)}const _=["x","y","rotate","scale","scaleX","scaleY","skewX","skewY"],M={x:"px",y:"px",rotate:"deg",skewX:"deg",skewY:"deg",scale:"",scaleX:"",scaleY:""},x=new WeakMap,E=t=>"undefined"!=typeof Element&&t instanceof Element,S=/-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?/gi;function T(t){if("number"==typeof t)return{kind:"num",v:t,u:""};const e=t.trim();let r=/^#([0-9a-f]{3,8})$/i.exec(e);if(r){let t=r[1];t.length<=4&&(t=t.split("").map(t=>t+t).join(""));const e=e=>parseInt(t.slice(e,e+2),16);return{kind:"col",c:[e(0),e(2),e(4),8===t.length?e(6)/255:1]}}if(r=/^rgba?\(([^)]+)\)$/i.exec(e),r){const t=r[1].split(/[\s,/]+/).filter(Boolean).map(t=>t.endsWith("%")?parseFloat(t)/100*255:parseFloat(t));return{kind:"col",c:[t[0],t[1],t[2],void 0===t[3]?1:t[3]>1?t[3]/255:t[3]]}}return"transparent"===e?{kind:"col",c:[0,0,0,0]}:(r=/^(-?[\d.]+(?:e-?\d+)?)([a-z%]*)$/i.exec(e),r?{kind:"num",v:parseFloat(r[1]),u:r[2]}:{kind:"str",s:e,parts:e.split(S),nums:(e.match(S)||[]).map(Number)})}const D=(t,e,r)=>{if("str"===t.kind||"str"===e.kind){if("str"===t.kind&&"str"===e.kind&&t.parts.join("\0")===e.parts.join("\0")&&t.nums.length===e.nums.length)return t.parts.map((s,i)=>s+(i<t.nums.length?+(t.nums[i]+(e.nums[i]-t.nums[i])*r).toFixed(4):"")).join("");const s=r<.5?t:e;return"str"===s.kind?s.s:"num"===s.kind?s.u?s.v+s.u:s.v:`rgba(${s.c.join(", ")})`}if("col"===t.kind||"col"===e.kind){const s="col"===t.kind?t.c:[0,0,0,0],i="col"===e.kind?e.c:[0,0,0,0],n=s.map((t,e)=>t+(i[e]-t)*r);return`rgba(${Math.round(n[0])}, ${Math.round(n[1])}, ${Math.round(n[2])}, ${+n[3].toFixed(3)})`}const s=t.v+(e.v-t.v)*r,i=e.u||t.u;return i?`${+s.toFixed(4)}${i}`:+s.toFixed(6)},A=t=>t.startsWith("--")?t:t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase());function P(t,e){if(!E(t))return t[e]??0;if(_.includes(e)){const r=x.get(t)?.[e];return r?r.v+r.u:e.startsWith("scale")?1:0}const r=t.style.getPropertyValue(A(e));if(r)return r;return("function"==typeof getComputedStyle?getComputedStyle(t).getPropertyValue(A(e)):"")||("opacity"===e?1:0)}function j(t,e,r){if(E(t)){if(_.includes(e)){const s=T(r);if("num"!==s.kind)throw new Error(`[motionary] ${e} needs a number (got "${r}")`);const i=x.get(t)||{};return i[e]={v:s.v,u:s.u},void x.set(t,i)}t.style.setProperty(A(e),"number"!=typeof r||["opacity","zIndex","z-index"].includes(e)||e.startsWith("--")?String(r):r+"px")}else t[e]="string"==typeof r&&"number"==typeof t[e]?parseFloat(r):r}class C{constructor(t){this.timeScale=1,this._t=0,this._dir=1,this._off=null,this._done=!1,this.parent=null,this.delay=t.delay||0,this.repeat=t.repeat||0,this.yoyo=!!t.yoyo,this.onUpdate=t.onUpdate,this.onComplete=t.onComplete,this.finished=new Promise(t=>this._resolve=t)}get totalDuration(){return this.repeat<0?1/0:this.delay+this.duration*(this.repeat+1)}get time(){return this._t}get progress(){const t=this.totalDuration;return t===1/0?(this._t-this.delay)%this.duration/this.duration:t?this._t/t:1}set progress(t){this.seek(t*(this.totalDuration===1/0?this.delay+this.duration:this.totalDuration))}get isActive(){return!!this._off}get reversed(){return this._dir<0}seek(t){const e=this.totalDuration;this._t=Math.max(0,Math.min(t,e));const r=this._t-this.delay,s=this.duration||0;if(r<0)this.renderLocal(0,!1);else if(s){let t=s===1/0?0:Math.floor(r/s),i=s===1/0?r:r-t*s;r>=e-this.delay&&e!==1/0&&(t=this.repeat,i=s);const n=this.yoyo&&t%2==1;this.renderLocal(n?s-i:i,i===s)}else this.renderLocal(0,!0);return this.onUpdate?.(this.progress),this}play(){return this._dir=1,this._t>=this.totalDuration&&(this._t=0),this.attach()}pause(){return this._off?.(),this._off=null,this}reverse(){return this._dir=-1,this._t<=0&&(this._t=this.totalDuration===1/0?this.delay+this.duration:this.totalDuration),this.attach()}restart(){return this._done=!1,this.seek(0),this.play()}kill(){this.pause(),this.parent?.remove(this)}then(t,e){return this.finished.then(t,e)}attach(){return this.parent||this._off||(this._done=!1,this._off=f().add((t,e)=>this.advance(e))),this}advance(t){const e=this.totalDuration;this.seek(this._t+t*this._dir*this.timeScale),(this._dir>0&&this._t>=e||this._dir<0&&this._t<=0)&&this.complete()}complete(){this.pause(),this._done||(this._done=!0,this.onComplete?.(),this._resolve())}}class R extends C{constructor(t,e){super(e),this.tracks=null,this.target=t,this._dur=e.duration??600,this.ease=$(e.ease),this.toProps=e.to||{},this.fromProps=e.from||{}}get duration(){return this._dur}init(){return Array.from(new Set([...Object.keys(this.fromProps),...Object.keys(this.toProps)])).map(t=>{const e=t in this.fromProps?this.fromProps[t]:P(this.target,t),r=t in this.toProps?this.toProps[t]:P(this.target,t);return{k:t,fromRaw:e,toRaw:r,from:T(e),to:T(r)}})}renderLocal(t,e){this.tracks||(this.tracks=this.init());const r=this._dur?e?this.ease(t>=this._dur?1:0):this.ease(t/this._dur):1;let s=!1;for(const t of this.tracks)j(this.target,t.k,D(t.from,t.to,r)),_.includes(t.k)&&(s=!0);s&&E(this.target)&&function(t){const e=x.get(t),r=(t,r)=>e[t]?e[t].v:r,s=t=>e[t]?.u??M[t],i=[];(e.x||e.y)&&i.push(`translate(${r("x",0)}${s("x")||"px"}, ${r("y",0)}${s("y")||"px"})`),e.rotate&&i.push(`rotate(${r("rotate",0)}${s("rotate")||"deg"})`),e.scale&&i.push(`scale(${r("scale",1)})`),(e.scaleX||e.scaleY)&&i.push(`scale(${r("scaleX",1)}, ${r("scaleY",1)})`),e.skewX&&i.push(`skewX(${r("skewX",0)}${s("skewX")||"deg"})`),e.skewY&&i.push(`skewY(${r("skewY",0)}${s("skewY")||"deg"})`),t.style.transform=i.join(" ")}(this.target)}}class z extends C{constructor(t={}){super(t),this.children=[],this.labels={},this.prevStart=0,this.prevEnd=0,this.lastLocal=0,this.defaults=t.defaults}get duration(){let t=0;for(const e of this.children)t=Math.max(t,e.start+("function"==typeof e.item?0:e.item.totalDuration));return t}resolve(t){if(void 0===t||">"===t)return this.prevEnd;if("number"==typeof t)return Math.max(0,t);const e=/^([<>]|[\w-]+)?\s*(?:([+-])=\s*([\d.]+))?$/.exec(t.trim());if(!e)throw new Error(`[motionary] bad timeline position "${t}"`);let r=this.prevEnd;if("<"===e[1])r=this.prevStart;else if(e[1]&&">"!==e[1]){if(!(e[1]in this.labels))throw new Error(`[motionary] unknown timeline label "${e[1]}"`);r=this.labels[e[1]]}const s=e[2]?("+"===e[2]?1:-1)*parseFloat(e[3]):0;return Math.max(0,r+s)}add(t,e){const r=this.resolve(e);return"function"!=typeof t&&(t.pause(),t.parent=this),this.children.push({item:t,start:r}),this.prevStart=r,this.prevEnd=r+("function"==typeof t?0:t.totalDuration),this}to(t,e,r){const s=F(t),i=this.resolve(r);let n=i;return s.forEach((t,r)=>{const s=new R(t,{...this.defaults,...e,delay:(e.delay||0)+(e.stagger||0)*r,paused:!0});s.parent=this,this.children.push({item:s,start:i}),n=Math.max(n,i+s.totalDuration)}),this.prevStart=i,this.prevEnd=n,this}call(t,e){return this.add(t,e)}label(t,e){return this.labels[t]=this.resolve(e),this}labelTime(t){return this.labels[t]}remove(t){this.children=this.children.filter(e=>e.item!==t)}getChildren(){return this.children.filter(t=>"function"!=typeof t.item).map(t=>t.item)}renderLocal(t){const e=t>=this.lastLocal,r=[...this.children].sort((t,r)=>e?t.start-r.start:r.start-t.start);for(const s of r){if("function"==typeof s.item){e&&!s.fired&&t>=s.start&&this.lastLocal<=s.start?(s.fired=!0,s.item()):!e&&t<s.start&&(s.fired=!1);continue}const r=t-s.start,i=s.item;r<0?i._started&&i.seek(0):(i._started=!0,i.seek(Math.min(r,i.totalDuration)))}this.lastLocal=t}}function F(t){return Array.isArray(t)?t:t&&"number"==typeof t.length&&!E(t)?Array.from(t):[t]}function I(t={}){const e=new z(t);return t.paused||e.play(),e}const q={id:"core",version:e,tier:"basic",api:{version:e,getTicker:f,tween:L,timeline:I,Tween:R,Timeline:z,EASES:w,parseEase:$,cubicBezier:v,steps:b}};function L(t,e){return function(t,e){const r=F(t);let s;if(1===r.length)s=new R(r[0],e);else{const t=new z({repeat:e.repeat,yoyo:e.yoyo,onUpdate:e.onUpdate,onComplete:e.onComplete,delay:e.delay});t.to(r,{...e,delay:0,repeat:0,yoyo:!1,onUpdate:void 0,onComplete:void 0},0),s=t}return e.paused||s.play(),s}(U(t),e)}function U(t){if("string"==typeof t){if("undefined"==typeof document)throw new Error("[motionary] selector targets need a document — pass objects or elements instead");return Array.from(document.querySelectorAll(t))}return t}function X(...t){return d(q,...t)}X(),t.EASES=w,t.Playable=C,t.RUNTIME_CDN=r,t.RUNTIME_TIERS=i,t.RUNTIME_VERSION=e,t.RuntimeModuleError=h,t.TIER_ORDER=s,t.Timeline=z,t.Tween=R,t.core=q,t.cubicBezier=v,t.getTicker=f,t.hasModule=t=>o().modules.has(t),t.maxTier=function(t=[]){let e=0;for(const r of t)e=Math.max(e,s.indexOf(i[r]??"basic"));return s[e]},t.missingMessage=c,t.moduleCdn=u,t.modulePath=a,t.parseEase=$,t.parseValue=T,t.register=d,t.registeredModules=()=>Array.from(o().modules.keys()),t.registry=o,t.requireModule=function(t,e){const r=o().modules.get(t);if(!r)throw new h(t,e);return r.api},t.resolveTargets=U,t.steps=b,t.tierOf=t=>i[t],t.timeline=I,t.tween=L,t.use=X}(this.MotionaryRuntime=this.MotionaryRuntime||{});
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime.iife.js.map
|
package/dist/runtime.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RUNTIME_VERSION, b as register } from './chunks/registry-
|
|
2
|
-
export { c as RUNTIME_CDN, d as RUNTIME_TIERS, e as RuntimeModuleError, T as TIER_ORDER, h as hasModule, f as maxTier, m as missingMessage, g as moduleCdn, i as modulePath, j as registeredModules, a as registry, r as requireModule, t as tierOf } from './chunks/registry-
|
|
3
|
-
import { g as getTicker } from './chunks/ticker-
|
|
4
|
-
import { T as Timeline, a as Tween, t as timeline, b as tween$1 } from './chunks/tween-
|
|
5
|
-
export { P as Playable, p as parseValue } from './chunks/tween-
|
|
1
|
+
import { R as RUNTIME_VERSION, b as register } from './chunks/registry-Ng9TVXnA.js';
|
|
2
|
+
export { c as RUNTIME_CDN, d as RUNTIME_TIERS, e as RuntimeModuleError, T as TIER_ORDER, h as hasModule, f as maxTier, m as missingMessage, g as moduleCdn, i as modulePath, j as registeredModules, a as registry, r as requireModule, t as tierOf } from './chunks/registry-Ng9TVXnA.js';
|
|
3
|
+
import { g as getTicker } from './chunks/ticker-DZN0D39q.js';
|
|
4
|
+
import { T as Timeline, a as Tween, t as timeline, b as tween$1 } from './chunks/tween-DZdCTOBG.js';
|
|
5
|
+
export { P as Playable, p as parseValue } from './chunks/tween-DZdCTOBG.js';
|
|
6
6
|
import { s as steps, c as cubicBezier, p as parseEase, E as EASES } from './chunks/ease-XN8_0sXu.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -54,4 +54,4 @@ function use(...mods) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export { EASES, RUNTIME_VERSION, Timeline, Tween, core, cubicBezier, getTicker, parseEase, register, resolveTargets, steps, timeline, tween, use };
|
|
57
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
57
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/runtime.js.map
|
package/dist/solid.cjs
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
var solidJs = require('solid-js');
|
|
4
4
|
var core = require('./chunks/core-BjcOCpJt.cjs');
|
|
5
5
|
var stagger = require('./chunks/stagger-DFKwqOQG.cjs');
|
|
6
|
-
require('./chunks/presets-CUHys3sK.cjs');
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* motionary - Solid integration
|
|
@@ -90,4 +89,4 @@ function useScrollAnimate(options = {}) {
|
|
|
90
89
|
exports.scrollAnimate = scrollAnimate;
|
|
91
90
|
exports.scrollStagger = scrollStagger;
|
|
92
91
|
exports.useScrollAnimate = useScrollAnimate;
|
|
93
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
92
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/solid.cjs.map
|
package/dist/solid.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createRenderEffect, onMount, onCleanup } from 'solid-js';
|
|
2
2
|
import { c as createScrollAnimate } from './chunks/core-Dj6iomdc.js';
|
|
3
3
|
import { s as staggerChildren } from './chunks/stagger-B9sKPwQB.js';
|
|
4
|
-
import './chunks/presets-BYBVJVeP.js';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* motionary - Solid integration
|
|
@@ -86,4 +85,4 @@ function useScrollAnimate(options = {}) {
|
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
export { scrollAnimate, scrollStagger, useScrollAnimate };
|
|
89
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
88
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/solid.js.map
|
package/dist/svelte.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var core = require('./chunks/core-BjcOCpJt.cjs');
|
|
4
4
|
var stagger = require('./chunks/stagger-DFKwqOQG.cjs');
|
|
5
|
-
require('./chunks/presets-CUHys3sK.cjs');
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* motionary - Svelte integration
|
|
@@ -63,4 +62,4 @@ function scrollStagger(node, options = {}) {
|
|
|
63
62
|
|
|
64
63
|
exports.scrollAnimate = scrollAnimate;
|
|
65
64
|
exports.scrollStagger = scrollStagger;
|
|
66
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
65
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/svelte.cjs.map
|
package/dist/svelte.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { c as createScrollAnimate } from './chunks/core-Dj6iomdc.js';
|
|
2
2
|
import { s as staggerChildren } from './chunks/stagger-B9sKPwQB.js';
|
|
3
|
-
import './chunks/presets-BYBVJVeP.js';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* motionary - Svelte integration
|
|
@@ -60,4 +59,4 @@ function scrollStagger(node, options = {}) {
|
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
export { scrollAnimate, scrollStagger };
|
|
63
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
62
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/svelte.js.map
|
package/dist/vue.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var core = require('./chunks/core-BjcOCpJt.cjs');
|
|
4
4
|
var stagger = require('./chunks/stagger-DFKwqOQG.cjs');
|
|
5
|
-
require('./chunks/presets-CUHys3sK.cjs');
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* motionary - Vue 3 Integration
|
|
@@ -59,4 +58,4 @@ function createVueComposables(Vue) {
|
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
exports.createVueComposables = createVueComposables;
|
|
62
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
61
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/vue.cjs.map
|
package/dist/vue.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { c as createScrollAnimate } from './chunks/core-Dj6iomdc.js';
|
|
2
2
|
import { s as staggerChildren } from './chunks/stagger-B9sKPwQB.js';
|
|
3
|
-
import './chunks/presets-BYBVJVeP.js';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* motionary - Vue 3 Integration
|
|
@@ -57,4 +56,4 @@ function createVueComposables(Vue) {
|
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
export { createVueComposables };
|
|
60
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
59
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/vue.js.map
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var base = require('../chunks/base-
|
|
4
|
-
var registry = require('../chunks/registry-
|
|
5
|
-
require('../chunks/builtins-
|
|
3
|
+
var base = require('../chunks/base-BvH4nAcv.cjs');
|
|
4
|
+
var registry = require('../chunks/registry-CibnX7Ui.cjs');
|
|
5
|
+
require('../chunks/builtins-DweCp29Z.cjs');
|
|
6
6
|
var components_fxShop = require('../components/fx-shop.cjs');
|
|
7
|
-
require('../chunks/core-6FhnH_Kv.cjs');
|
|
8
|
-
require('../components/tokens.cjs');
|
|
9
|
-
require('../chunks/fx-O90ZgYwV.cjs');
|
|
10
7
|
|
|
11
8
|
var css = "usa-add-to-cart{display:inline-block}.usa-atc-btn{position:relative;display:inline-grid;place-items:center;min-width:var(--usa-atc-w,150px);padding:11px 18px;border:0;border-radius:999px;background:var(--usa-atc-bg,#7c5cff);color:#fff;font:700 14px/1 system-ui,sans-serif;cursor:pointer;overflow:hidden;transition:background .3s}.usa-atc-btn>span{grid-area:1/1;transition:transform .35s cubic-bezier(.3,1.4,.5,1),opacity .25s}.usa-atc-done{transform:translateY(120%);opacity:0}usa-add-to-cart[data-added] .usa-atc-btn{background:var(--usa-atc-ok,#16a34a)}usa-add-to-cart[data-added] .usa-atc-label{transform:translateY(-120%);opacity:0}usa-add-to-cart[data-added] .usa-atc-done{transform:none;opacity:1}.usa-atc-btn:focus-visible{outline:3px solid #a78bfa;outline-offset:2px}.usa-atc-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}@media (prefers-reduced-motion:reduce){.usa-atc-btn>span{transition:none}}";
|
|
12
9
|
|
|
@@ -60,4 +57,4 @@ function defineAddToCart(tag = 'usa-add-to-cart') {
|
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
exports.defineAddToCart = defineAddToCart;
|
|
63
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
60
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/widgets/add-to-cart.cjs.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { f as defineElement, I as queryAttr } from '../chunks/base-
|
|
2
|
-
import { getEffect, playEffect } from '../chunks/registry-
|
|
3
|
-
import '../chunks/builtins-
|
|
1
|
+
import { f as defineElement, I as queryAttr } from '../chunks/base-C9CJrhL3.js';
|
|
2
|
+
import { getEffect, playEffect } from '../chunks/registry-DKs_BiEo.js';
|
|
3
|
+
import '../chunks/builtins-SwWQKzb-.js';
|
|
4
4
|
import { registerShopPack } from '../components/fx-shop.js';
|
|
5
|
-
import '../chunks/core-RZkPEx8i.js';
|
|
6
|
-
import '../components/tokens.js';
|
|
7
|
-
import '../chunks/fx-Wd1GKAzZ.js';
|
|
8
5
|
|
|
9
6
|
var css = "usa-add-to-cart{display:inline-block}.usa-atc-btn{position:relative;display:inline-grid;place-items:center;min-width:var(--usa-atc-w,150px);padding:11px 18px;border:0;border-radius:999px;background:var(--usa-atc-bg,#7c5cff);color:#fff;font:700 14px/1 system-ui,sans-serif;cursor:pointer;overflow:hidden;transition:background .3s}.usa-atc-btn>span{grid-area:1/1;transition:transform .35s cubic-bezier(.3,1.4,.5,1),opacity .25s}.usa-atc-done{transform:translateY(120%);opacity:0}usa-add-to-cart[data-added] .usa-atc-btn{background:var(--usa-atc-ok,#16a34a)}usa-add-to-cart[data-added] .usa-atc-label{transform:translateY(-120%);opacity:0}usa-add-to-cart[data-added] .usa-atc-done{transform:none;opacity:1}.usa-atc-btn:focus-visible{outline:3px solid #a78bfa;outline-offset:2px}.usa-atc-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}@media (prefers-reduced-motion:reduce){.usa-atc-btn>span{transition:none}}";
|
|
10
7
|
|
|
@@ -58,4 +55,4 @@ function defineAddToCart(tag = 'usa-add-to-cart') {
|
|
|
58
55
|
}
|
|
59
56
|
|
|
60
57
|
export { defineAddToCart };
|
|
61
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
58
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/widgets/add-to-cart.js.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var widgets_badgeWall = require('../chunks/badge-wall-
|
|
4
|
-
require('../chunks/base-Do-R_9gU.cjs');
|
|
3
|
+
var widgets_badgeWall = require('../chunks/badge-wall-CITexuW7.cjs');
|
|
5
4
|
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
exports.defineBadgeWall = widgets_badgeWall.defineBadgeWall;
|
|
9
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
8
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/widgets/badge-wall.cjs.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { d as defineBadgeWall } from '../chunks/badge-wall-
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.4.0/dist/widgets/badge-wall.js.map
|
|
1
|
+
export { d as defineBadgeWall } from '../chunks/badge-wall-C0gJ_Kck.js';
|
|
2
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/widgets/badge-wall.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var base = require('../chunks/base-
|
|
3
|
+
var base = require('../chunks/base-BvH4nAcv.cjs');
|
|
4
4
|
|
|
5
5
|
var css = "usa-bar-chart{--usa-bc-c:#7c5cff;display:block;width:var(--usa-bc-w,100%);max-width:100%;font:600 11px/1.2 system-ui,sans-serif}.usa-bc-list{display:flex;align-items:flex-end;gap:8px;height:var(--usa-bc-h,140px);margin:0;padding:0;list-style:none}.usa-bc-item{display:grid;grid-template-rows:auto 1fr auto;justify-items:center;flex:1;min-width:0;height:100%;gap:4px}.usa-bc-track{position:relative;grid-row:2;width:100%;display:flex;align-items:flex-end;justify-content:center}.usa-bc-bar{display:block;width:min(100%,38px);height:calc(var(--usa-bc-k) * 100%);border-radius:6px 6px 2px 2px;background:linear-gradient(var(--usa-bc-c),#22d3ee);transform-origin:50% 100%}.usa-bc-item[data-glide] .usa-bc-bar{transition:height .6s cubic-bezier(.3,1.25,.5,1)}.usa-bc-val{grid-row:1;font-variant-numeric:tabular-nums;opacity:.8}.usa-bc-label{grid-row:3;opacity:.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}usa-bar-chart[data-dir=\"h\"] .usa-bc-list{flex-direction:column;align-items:stretch;height:auto}usa-bar-chart[data-dir=\"h\"] .usa-bc-item{grid-template-columns:70px 1fr auto;grid-template-rows:none;align-items:center;height:22px}usa-bar-chart[data-dir=\"h\"] .usa-bc-label{grid-row:auto;grid-column:1;justify-self:start}usa-bar-chart[data-dir=\"h\"] .usa-bc-track{grid-row:auto;grid-column:2;height:100%;justify-content:flex-start;align-items:center}usa-bar-chart[data-dir=\"h\"] .usa-bc-bar{width:calc(var(--usa-bc-k) * 100%);height:14px;border-radius:2px 6px 6px 2px;transform-origin:0 50%;background:linear-gradient(90deg,var(--usa-bc-c),#22d3ee)}usa-bar-chart[data-dir=\"h\"] .usa-bc-item[data-glide] .usa-bc-bar{transition:width .6s cubic-bezier(.3,1.25,.5,1)}usa-bar-chart[data-dir=\"h\"] .usa-bc-val{grid-row:auto;grid-column:3}@media (prefers-reduced-motion:reduce){.usa-bc-bar{transition:none!important}}";
|
|
6
6
|
|
|
@@ -100,4 +100,4 @@ function defineBarChart(tag = 'usa-bar-chart') {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
exports.defineBarChart = defineBarChart;
|
|
103
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
103
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/widgets/bar-chart.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as defineElement } from '../chunks/base-
|
|
1
|
+
import { f as defineElement } from '../chunks/base-C9CJrhL3.js';
|
|
2
2
|
|
|
3
3
|
var css = "usa-bar-chart{--usa-bc-c:#7c5cff;display:block;width:var(--usa-bc-w,100%);max-width:100%;font:600 11px/1.2 system-ui,sans-serif}.usa-bc-list{display:flex;align-items:flex-end;gap:8px;height:var(--usa-bc-h,140px);margin:0;padding:0;list-style:none}.usa-bc-item{display:grid;grid-template-rows:auto 1fr auto;justify-items:center;flex:1;min-width:0;height:100%;gap:4px}.usa-bc-track{position:relative;grid-row:2;width:100%;display:flex;align-items:flex-end;justify-content:center}.usa-bc-bar{display:block;width:min(100%,38px);height:calc(var(--usa-bc-k) * 100%);border-radius:6px 6px 2px 2px;background:linear-gradient(var(--usa-bc-c),#22d3ee);transform-origin:50% 100%}.usa-bc-item[data-glide] .usa-bc-bar{transition:height .6s cubic-bezier(.3,1.25,.5,1)}.usa-bc-val{grid-row:1;font-variant-numeric:tabular-nums;opacity:.8}.usa-bc-label{grid-row:3;opacity:.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}usa-bar-chart[data-dir=\"h\"] .usa-bc-list{flex-direction:column;align-items:stretch;height:auto}usa-bar-chart[data-dir=\"h\"] .usa-bc-item{grid-template-columns:70px 1fr auto;grid-template-rows:none;align-items:center;height:22px}usa-bar-chart[data-dir=\"h\"] .usa-bc-label{grid-row:auto;grid-column:1;justify-self:start}usa-bar-chart[data-dir=\"h\"] .usa-bc-track{grid-row:auto;grid-column:2;height:100%;justify-content:flex-start;align-items:center}usa-bar-chart[data-dir=\"h\"] .usa-bc-bar{width:calc(var(--usa-bc-k) * 100%);height:14px;border-radius:2px 6px 6px 2px;transform-origin:0 50%;background:linear-gradient(90deg,var(--usa-bc-c),#22d3ee)}usa-bar-chart[data-dir=\"h\"] .usa-bc-item[data-glide] .usa-bc-bar{transition:width .6s cubic-bezier(.3,1.25,.5,1)}usa-bar-chart[data-dir=\"h\"] .usa-bc-val{grid-row:auto;grid-column:3}@media (prefers-reduced-motion:reduce){.usa-bc-bar{transition:none!important}}";
|
|
4
4
|
|
|
@@ -98,4 +98,4 @@ function defineBarChart(tag = 'usa-bar-chart') {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
export { defineBarChart };
|
|
101
|
-
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.
|
|
101
|
+
//# sourceMappingURL=https://raw.githubusercontent.com/HarrisonCN/Motionary/v13.5.0/dist/widgets/bar-chart.js.map
|