@mkbabb/keyframes.js 5.0.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +112 -217
  2. package/dist/backward-color-BtbRcnna.js +108 -0
  3. package/dist/compile-BHCTPerD.js +30 -0
  4. package/dist/{waapi-D0ssxKy1.js → delegation-BQYCrP2p.js} +117 -99
  5. package/dist/{draw-svg-Dat9mHgi.js → draw-svg-CK9Qrly8.js} +18 -26
  6. package/dist/easing-registry-DHV2-5gA.js +27 -0
  7. package/dist/easing-registry-y1p9McFy.js +2 -0
  8. package/dist/easing-serialize-D4LZCB6i.js +21 -0
  9. package/dist/engine/index.d.ts +3139 -0
  10. package/dist/engine/index.js +16 -0
  11. package/dist/engine-CPK_udUQ.js +1172 -0
  12. package/dist/engine-DlpimZtM.js +3 -0
  13. package/dist/entry-D82NKUhP.js +148 -0
  14. package/dist/format-BdIvdLzG.js +114 -0
  15. package/dist/group-HM7N4uOE.js +390 -0
  16. package/dist/handle-D4xrf_ya.js +21 -0
  17. package/dist/{ingest-CU-kdYcM.js → ingest-_g6tfk2e.js} +62 -56
  18. package/dist/keyframes.d.ts +1156 -1099
  19. package/dist/keyframes.js +412 -132
  20. package/dist/morph-svg-KUrH9KnK.js +79 -0
  21. package/dist/motion-path-wM5tPfrY.js +26 -0
  22. package/dist/parse-flatten-DRMHFytp.js +2 -0
  23. package/dist/parse-flatten-ZZUSEQEL.js +63 -0
  24. package/dist/presets-DeDJYL4G.js +275 -0
  25. package/dist/{scheduler-7eIr_q1g.js → scheduler-CfGIC3GX.js} +1 -1
  26. package/dist/scroll-BEyCx0b_.js +287 -0
  27. package/dist/sequence-s0bL7Uul.js +736 -0
  28. package/dist/{validate-B1pE-Y_T.js → validate-xFZ_Ld1k.js} +17 -13
  29. package/dist/view-transition-BPJQxUTC.js +305 -0
  30. package/package.json +123 -84
  31. package/dist/animate-CTWr6K7j.js +0 -26
  32. package/dist/animations-CZxf0rep.js +0 -224
  33. package/dist/compile-YRJRdpKF.js +0 -251
  34. package/dist/decay-BvNmFk51.js +0 -25
  35. package/dist/engine-DQcb7CLW.js +0 -1349
  36. package/dist/errors-W8zkvPw4.js +0 -21
  37. package/dist/format-BUgCTjmr.js +0 -123
  38. package/dist/morph-svg-83uyYxoW.js +0 -84
  39. package/dist/motion-path-C0OHqcA3.js +0 -31
  40. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  41. package/dist/scroll-grammar-B4kPvGh5.js +0 -23
  42. package/dist/scroll-scene-DQxhxn9I.js +0 -176
  43. package/dist/sequence-cBr7thU8.js +0 -198
  44. package/dist/springTimingFunction-D26gPkAy.js +0 -63
  45. package/dist/timeline-vY3eD3Ax.js +0 -430
  46. package/dist/utils-BPRImVl5.js +0 -100
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mkbabb/keyframes.js",
3
- "version": "5.0.0",
3
+ "version": "5.2.0",
4
4
  "description": "Create keyframe animations for anything in JavaScript; specify your keyframes in standards-complaint CSS.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -23,6 +23,11 @@
23
23
  "types": "./dist/keyframes.d.ts",
24
24
  "import": "./dist/keyframes.js",
25
25
  "default": "./dist/keyframes.js"
26
+ },
27
+ "./engine": {
28
+ "types": "./dist/engine/index.d.ts",
29
+ "import": "./dist/engine/index.js",
30
+ "default": "./dist/engine/index.js"
26
31
  }
27
32
  },
28
33
  "files": [
@@ -32,71 +37,82 @@
32
37
  ],
33
38
  "scripts": {
34
39
  "prepare": "npm run build:lib",
35
- "check": "tsc --noEmit",
40
+ "check": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
36
41
  "check:lib": "tsc --noEmit -p tsconfig.lib.json",
37
42
  "dev": "vite",
38
- "dev:playground": "vite --mode playground",
39
43
  "build": "npm run build:lib",
40
44
  "build:lib": "vite build --mode production",
41
45
  "build:watch": "vite build --watch --mode production",
42
46
  "gh-pages": "vite build --mode gh-pages",
43
47
  "proof:boundary": "node scripts/proof-boundary.mjs",
44
48
  "proof:published-surface": "node scripts/proof-published-surface.mjs",
49
+ "proof:engine-subpath-mirror": "node scripts/proof-engine-subpath-mirror.mjs",
50
+ "proof:no-any-default": "node scripts/proof-no-any-default.mjs",
51
+ "proof:dts-rollups-agree": "node scripts/proof-dts-rollups-agree.mjs",
45
52
  "proof:alias-dropped": "node scripts/proof-alias-dropped.mjs",
46
- "proof:changelog-5": "node scripts/proof-changelog-5.mjs",
53
+ "proof:changelog": "node scripts/proof-changelog.mjs",
47
54
  "proof:agent-surface": "node scripts/proof-agent-surface.mjs",
48
- "proof:agent-validate": "node scripts/proof-agent-validate.mjs && vitest run test/agent-validate.test.ts",
55
+ "proof:in-is-importable": "node scripts/proof-in-is-importable.mjs",
56
+ "proof:agent-validate": "node scripts/proof-agent-validate.mjs && vitest run test/compile/agent-validate.test.ts",
49
57
  "proof:demo-on-published-surface": "node scripts/proof-demo-on-published-surface.mjs",
50
- "proof:color-fidelity": "node scripts/proof-color-fidelity.mjs && vitest run test/color-fidelity.test.ts",
58
+ "proof:color-fidelity": "node scripts/proof-color-fidelity.mjs && vitest run test/engine/color-fidelity.test.ts",
51
59
  "proof:readme-runs": "node scripts/proof-readme-runs.mjs",
60
+ "proof:readme-paths-live": "node scripts/proof-readme-paths-live.mjs",
61
+ "proof:claude-paths-live": "node scripts/proof-claude-paths-live.mjs",
52
62
  "proof:deps-current": "node scripts/proof-deps-current.mjs",
53
63
  "proof:repin-witness": "node scripts/proof-repin-witness.mjs",
54
64
  "proof:dogfood": "node scripts/proof-dogfood.mjs",
55
65
  "proof:engine": "node scripts/proof-engine.mjs",
56
66
  "proof:decomposition": "node scripts/proof-decomposition.mjs",
67
+ "proof:zone-cohesion": "node scripts/proof-zone-cohesion.mjs",
68
+ "proof:compile-backward-leg": "node scripts/proof-compile-backward-leg.mjs",
69
+ "proof:no-flat-siblings": "node scripts/proof-no-flat-siblings.mjs",
70
+ "proof:no-orphan-module": "node scripts/proof-no-orphan-module.mjs",
57
71
  "proof:idioms": "node scripts/proof-idioms.mjs",
58
72
  "proof:brittleness": "node scripts/proof-brittleness.mjs",
59
73
  "proof:modern-web": "node scripts/proof-modern-web.mjs",
60
74
  "proof:lighthouse-mobile": "node scripts/proof-lighthouse-mobile.mjs",
61
75
  "proof:demo-elevate": "node scripts/proof-demo-elevate.mjs",
62
- "proof:platform-adopt": "node scripts/proof-platform-adopt.mjs && vitest run test/platform-adopt.test.ts",
63
- "proof:zero-alloc": "vitest run test/zero-alloc.test.ts test/snap-symmetry.test.ts test/frame-compiler.test.ts",
64
- "proof:engine-correctness": "vitest run test/engine-correctness.test.ts",
65
- "proof:standalone-zero-alloc": "vitest run test/standalone-zero-alloc.test.ts",
66
- "proof:compile-deterministic": "vitest run test/compile-deterministic.test.ts",
67
- "proof:compile-replay": "node scripts/proof-compile-replay.mjs && vitest run test/compile-roundtrip.test.ts",
68
- "proof:replay-equality": "node scripts/proof-replay-equality.mjs && vitest run test/replay-equality.test.ts",
76
+ "proof:platform-adopt": "node scripts/proof-platform-adopt.mjs && vitest run test/ingest/platform-adopt.test.ts",
77
+ "proof:zero-alloc": "vitest run test/engine/zero-alloc.test.ts test/physics/snap-symmetry.test.ts test/compile/frame-compiler.test.ts",
78
+ "proof:engine-correctness": "vitest run test/engine/engine-correctness.test.ts",
79
+ "proof:standalone-zero-alloc": "vitest run test/engine/standalone-zero-alloc.test.ts",
80
+ "proof:compile-deterministic": "vitest run test/compile/compile-deterministic.test.ts",
81
+ "proof:compile-replay": "node scripts/proof-compile-replay.mjs && vitest run test/compile/compile-roundtrip.test.ts",
82
+ "proof:compile-browser-parse": "node scripts/proof-compile-browser-parse.mjs",
83
+ "proof:split-a11y": "node scripts/proof-split-a11y.mjs",
84
+ "proof:vt-roundtrip": "node scripts/proof-vt-roundtrip.mjs",
85
+ "proof:entry-roundtrip": "node scripts/proof-entry-roundtrip.mjs",
86
+ "proof:trigger-roundtrip": "node scripts/proof-trigger-roundtrip.mjs",
87
+ "proof:replay-equality": "node scripts/proof-replay-equality.mjs && vitest run test/engine/replay-equality.test.ts",
69
88
  "proof:bench-runs": "node scripts/proof-bench-runs.mjs",
70
89
  "proof:bench-taxonomy": "node scripts/proof-bench-taxonomy.mjs",
71
90
  "proof:scheduler-posttask": "node scripts/proof-scheduler-posttask.mjs",
72
91
  "proof:epf1-measure": "node scripts/proof-epf1-measure.mjs",
73
92
  "proof:spring-vector": "node scripts/proof-spring-vector.mjs",
74
93
  "proof:orchestration": "node scripts/proof-orchestration.mjs",
75
- "proof:animate-orchestration": "vitest run test/animate-orchestration.test.ts",
76
94
  "proof:transport-events": "node scripts/proof-transport-events.mjs",
77
- "proof:interp-fastprops": "node --allow-natives-syntax scripts/proof-interp-fastprops.mjs && vitest run test/interp-fastprops.test.ts",
78
- "proof:sync-step": "vitest run test/sync-step.test.ts",
79
- "proof:event-ordering": "vitest run test/event-ordering.test.ts",
80
- "proof:roundtrip-easing": "vitest run test/roundtrip-easing.test.ts",
81
- "proof:adapter-capture": "vitest run test/adapter-capture.test.ts",
82
- "proof:composition-honored": "node scripts/proof-composition-honored.mjs && vitest run test/composition-honored.test.ts",
83
- "proof:diagnostics-channel": "node scripts/proof-diagnostics-channel.mjs && vitest run test/diagnostics-channel.test.ts",
84
- "proof:scroll-roundtrip": "node scripts/proof-scroll-roundtrip.mjs && vitest run test/scroll-scene.test.ts",
85
- "proof:motion-path": "node scripts/proof-motion-path.mjs && vitest run test/motion-path.test.ts",
86
- "proof:blend": "node scripts/proof-blend.mjs && vitest run test/blend.test.ts",
87
- "proof:spring-blend-weight": "node scripts/proof-spring-blend-weight.mjs && vitest run test/spring-blend-weight.test.ts",
88
- "proof:drawsvg": "node scripts/proof-drawsvg.mjs && vitest run test/draw-svg.test.ts",
89
- "proof:finished": "node scripts/proof-finished.mjs && vitest run test/finished.test.ts",
90
- "proof:adopt-compiled": "node scripts/proof-adopt-compiled.mjs && vitest run test/adopt-compiled.test.ts",
91
- "proof:interpolate-anything": "node scripts/proof-interpolate-anything.mjs && vitest run test/interpolate-anything.test.ts",
92
- "proof:roundtrip-fidelity": "node scripts/proof-roundtrip-fidelity.mjs && vitest run test/roundtrip-fidelity.test.ts",
93
- "proof:ingest-replay": "node scripts/proof-ingest-replay.mjs && vitest run test/ingest.test.ts",
94
- "proof:orbital-rotate3d": "node scripts/proof-orbital-rotate3d.mjs && vitest run test/orbital-rotate3d.test.ts",
95
- "proof:asset-store-singleton": "vitest run test/asset-store-singleton.test.ts",
96
- "proof:scene-raf-leak": "vitest run test/scene-raf-leak.test.ts",
97
- "proof:scene-contract-identity": "vitest run test/scene-contract-identity.test.ts",
98
- "proof:group-snapshot-identity": "vitest run test/group-snapshot-identity.test.ts",
99
- "proof:resize-tracks": "vitest run test/resize-tracks.test.ts",
95
+ "proof:interp-fastprops": "node --allow-natives-syntax scripts/proof-interp-fastprops.mjs && vitest run test/engine/interp-fastprops.test.ts",
96
+ "proof:sync-step": "vitest run test/physics/sync-step.test.ts",
97
+ "proof:event-ordering": "vitest run test/engine/event-ordering.test.ts",
98
+ "proof:roundtrip-easing": "vitest run test/compile/roundtrip-easing.test.ts",
99
+ "proof:adapter-capture": "vitest run test/compile/adapter-capture.test.ts",
100
+ "proof:composition-honored": "node scripts/proof-composition-honored.mjs && vitest run test/engine/composition-honored.test.ts",
101
+ "proof:diagnostics-channel": "node scripts/proof-diagnostics-channel.mjs && vitest run test/compile/diagnostics-channel.test.ts",
102
+ "proof:scroll-roundtrip": "node scripts/proof-scroll-roundtrip.mjs && vitest run test/scroll/scroll-scene.test.ts",
103
+ "proof:blend": "node scripts/proof-blend.mjs && vitest run test/group/blend.test.ts",
104
+ "proof:spring-blend-weight": "node scripts/proof-spring-blend-weight.mjs && vitest run test/group/spring-blend-weight.test.ts",
105
+ "proof:drawsvg": "node scripts/proof-drawsvg.mjs && vitest run test/svg/draw-svg.test.ts",
106
+ "proof:finished": "node scripts/proof-finished.mjs && vitest run test/engine/finished.test.ts",
107
+ "proof:adopt-compiled": "node scripts/proof-adopt-compiled.mjs && vitest run test/ingest/adopt-compiled.test.ts",
108
+ "proof:interpolate-anything": "node scripts/proof-interpolate-anything.mjs && vitest run test/engine/interpolate-anything.test.ts",
109
+ "proof:roundtrip-fidelity": "node scripts/proof-roundtrip-fidelity.mjs && vitest run test/compile/roundtrip-fidelity.test.ts",
110
+ "proof:ingest-replay": "node scripts/proof-ingest-replay.mjs && vitest run test/ingest/ingest.test.ts",
111
+ "proof:orbital-rotate3d": "node scripts/proof-orbital-rotate3d.mjs && vitest run test/demo/orbital-rotate3d.test.ts",
112
+ "proof:scene-raf-leak": "vitest run test/demo/scene-raf-leak.test.ts",
113
+ "proof:scene-contract-identity": "vitest run test/demo/scene-contract-identity.test.ts",
114
+ "proof:group-snapshot-identity": "vitest run test/group/group-snapshot-identity.test.ts",
115
+ "proof:resize-tracks": "vitest run test/demo/resize-tracks.test.ts",
100
116
  "proof:computed-real-dom": "node scripts/proof-computed-real-dom.mjs",
101
117
  "proof:demo-usability": "node scripts/proof-demo-usability.mjs",
102
118
  "proof:demo-smoke": "node scripts/demo-smoke.mjs",
@@ -105,9 +121,13 @@
105
121
  "proof:live-session": "node scripts/proof-live-session.mjs",
106
122
  "proof:live-session-mobile": "node scripts/proof-live-session-mobile.mjs",
107
123
  "proof:appearance-suffusion": "node scripts/proof-appearance-suffusion.mjs",
124
+ "proof:accent-census": "node scripts/proof-accent-census.mjs",
108
125
  "proof:gate-is-runtime": "node scripts/proof-gate-is-runtime.mjs",
109
126
  "proof:engine-no-throw-on-play": "node scripts/proof-engine-no-throw-on-play.mjs",
110
127
  "proof:subject-animates": "node scripts/proof-subject-animates.mjs",
128
+ "proof:cube-silhouette": "node scripts/proof-cube-silhouette.mjs",
129
+ "proof:cube-settle": "node scripts/proof-cube-settle.mjs",
130
+ "proof:cube-relight-writes": "node scripts/proof-cube-relight-writes.mjs",
111
131
  "proof:cold-entry": "node scripts/proof-cold-entry.mjs",
112
132
  "proof:amiga-subject-is-pivot": "node scripts/proof-amiga-subject-is-pivot.mjs",
113
133
  "proof:icon-paint-live": "node scripts/proof-icon-paint-live.mjs",
@@ -116,15 +136,24 @@
116
136
  "proof:font-census": "node scripts/proof-font-census.mjs",
117
137
  "proof:drag-gesture": "node scripts/proof-drag-gesture.mjs",
118
138
  "proof:perf-frame-budget": "node scripts/proof-perf-frame-budget.mjs",
139
+ "proof:perf-counters": "node scripts/proof-perf-counters.mjs",
140
+ "proof:scene-rests": "node scripts/proof-scene-rests.mjs",
141
+ "proof:no-layout-animation": "node scripts/proof-no-layout-animation.mjs",
119
142
  "proof:easing-editor-live": "node scripts/proof-easing-editor-live.mjs",
143
+ "proof:easing-gallery": "node scripts/proof-easing-gallery.mjs",
120
144
  "proof:fsm-suspend-resume-live": "node scripts/proof-fsm-suspend-resume-live.mjs",
121
- "proof:visual-lock": "node scripts/proof-visual-lock.mjs",
122
145
  "proof:browser": "node scripts/proof-browser.mjs",
146
+ "proof:scene-facility": "node scripts/proof-scene-facility.mjs",
123
147
  "proof:scene-machine-irrefragable": "node scripts/proof-scene-machine-irrefragable.mjs",
148
+ "proof:scene-superkey-single-source": "node scripts/proof-scene-superkey-single-source.mjs",
124
149
  "proof:drawer-spring": "node scripts/proof-drawer-spring.mjs",
125
- "proof:scene-control-dfa": "node scripts/proof-scene-control-dfa.mjs && vitest run test/control-surface-dfa.test.ts",
150
+ "proof:panel-naked-rail": "node scripts/proof-panel-naked-rail.mjs",
151
+ "proof:scene-control-dfa": "node scripts/proof-scene-control-dfa.mjs && vitest run test/demo/control-surface-dfa.test.ts",
152
+ "proof:dfa-derived": "node scripts/proof-dfa-derived.mjs",
126
153
  "proof:scene-transition-perf": "node scripts/proof-scene-transition-perf.mjs",
127
154
  "proof:control-surface-single-writer": "node scripts/proof-control-surface-single-writer.mjs",
155
+ "proof:no-shadow-playback-authority": "node scripts/proof-no-shadow-playback-authority.mjs && vitest run test/demo/no-shadow-playback-authority.test.ts",
156
+ "proof:one-adapter": "node scripts/proof-one-adapter.mjs",
128
157
  "proof:sheet-reopen-scroll": "node scripts/proof-sheet-reopen-scroll.mjs",
129
158
  "proof:dock-popover-opens": "node scripts/proof-dock-popover-opens.mjs",
130
159
  "proof:single-toggle": "node scripts/proof-single-toggle.mjs",
@@ -139,6 +168,11 @@
139
168
  "proof:single-writer": "node scripts/proof-single-writer.mjs",
140
169
  "proof:composable-encapsulation": "node scripts/proof-composable-encapsulation.mjs",
141
170
  "proof:demo-no-oversize": "node scripts/proof-demo-no-oversize.mjs",
171
+ "proof:scene-colocated": "node scripts/proof-scene-colocated.mjs",
172
+ "proof:shared-has-n-consumers": "node scripts/proof-shared-has-n-consumers.mjs",
173
+ "proof:colocation": "node scripts/proof-colocation.mjs",
174
+ "proof:style-file-ceiling": "node scripts/proof-style-file-ceiling.mjs",
175
+ "proof:app-is-shell": "node scripts/proof-app-is-shell.mjs",
142
176
  "proof:no-brittle-selector": "node scripts/proof-no-brittle-selector.mjs",
143
177
  "proof:no-dup-utility": "node scripts/proof-no-dup-utility.mjs",
144
178
  "proof:cartoon-is-panel-depth": "node scripts/proof-cartoon-is-panel-depth.mjs",
@@ -149,34 +183,26 @@
149
183
  "proof:scene-parity": "node scripts/proof-scene-parity.mjs",
150
184
  "proof:typing-dots": "node scripts/proof-typing-dots.mjs",
151
185
  "proof:dogfood-hero": "node scripts/proof-dogfood-hero.mjs",
152
- "proof:easing-canvas-bounded": "node scripts/proof-easing-canvas-bounded.mjs",
153
186
  "proof:scene-uses-standard-ribbon": "node scripts/proof-scene-uses-standard-ribbon.mjs",
154
- "proof:easing-sidebar-normalized": "node scripts/proof-easing-sidebar-normalized.mjs",
155
- "proof:easing-sidebar-minimal": "node scripts/proof-easing-sidebar-minimal.mjs",
156
- "proof:easing-stage-is-ball": "node scripts/proof-easing-stage-is-ball.mjs",
157
187
  "proof:scene-card-rounded": "node scripts/proof-scene-card-rounded.mjs",
158
188
  "proof:stage-glass-card": "node scripts/proof-stage-glass-card.mjs",
159
189
  "proof:card-rounded-primitive": "node scripts/proof-card-rounded-primitive.mjs",
160
190
  "proof:stage-within-docks": "node scripts/proof-stage-within-docks.mjs",
161
191
  "proof:mobile-single-page": "node scripts/proof-mobile-single-page.mjs",
192
+ "proof:stage-visible": "node scripts/proof-stage-visible.mjs",
162
193
  "proof:dock-zorder": "node scripts/proof-dock-zorder.mjs",
163
- "proof:bezier-no-scroll": "node scripts/proof-bezier-no-scroll.mjs",
164
- "proof:bezier-single-card": "node scripts/proof-bezier-single-card.mjs",
165
- "proof:bezier-grown": "node scripts/proof-bezier-grown.mjs",
166
194
  "proof:pp-logo-svg": "node scripts/proof-pp-logo-svg.mjs",
167
195
  "proof:darkmode-row-toggle": "node scripts/proof-darkmode-row-toggle.mjs",
168
196
  "proof:idle-fade": "node scripts/proof-idle-fade.mjs",
169
- "proof:scene-perf-budget": "node scripts/proof-scene-perf-budget.mjs && vitest run test/amiga-sphere-spin.test.ts",
170
- "proof:hero-rung": "node scripts/proof-hero-rung.mjs",
171
- "proof:hero-balance": "node scripts/proof-hero-balance.mjs",
172
- "proof:hero-cls": "node scripts/proof-hero-cls.mjs",
173
- "proof:cohesion": "vitest run test/boundary-cohesion.test.ts",
197
+ "proof:scene-perf-budget": "node scripts/proof-scene-perf-budget.mjs && vitest run test/demo/amiga-sphere-spin.test.ts",
198
+ "proof:hero-two-focal": "node scripts/proof-hero-two-focal.mjs",
199
+ "proof:hero-deck-voice": "node scripts/proof-hero-deck-voice.mjs",
200
+ "proof:cursor-light-subtle": "node scripts/proof-cursor-light-subtle.mjs",
201
+ "proof:no-hand-rolled-cursor-tracker": "node scripts/proof-no-hand-rolled-cursor-tracker.mjs",
202
+ "proof:cohesion": "vitest run test/engine/boundary-cohesion.test.ts",
174
203
  "proof:sequence-rows-draggable": "node scripts/proof-sequence-rows-draggable.mjs",
175
- "proof:motion-path-editable": "node scripts/proof-motion-path-editable.mjs",
176
- "proof:motion-path-copy": "node scripts/proof-motion-path-copy.mjs",
177
- "proof:easter-egg": "node scripts/proof-easter-egg.mjs",
204
+ "proof:square-honest": "node scripts/proof-square-honest.mjs",
178
205
  "proof:crayon-preserved": "node scripts/proof-crayon-preserved.mjs",
179
- "proof:design-refinement": "node scripts/proof-design-refinement.mjs",
180
206
  "proof:spring-slider-continuous": "node scripts/proof-spring-slider-continuous.mjs",
181
207
  "proof:taste-packet": "node scripts/proof-taste-packet.mjs",
182
208
  "proof:ci-coverage": "node scripts/proof-ci-coverage.mjs",
@@ -186,50 +212,70 @@
186
212
  "proof:css-parity": "node scripts/proof-css-parity.mjs",
187
213
  "proof:packrat-sound": "node scripts/proof-packrat-sound.mjs",
188
214
  "proof:consume-bundle": "node scripts/proof-consume-bundle.mjs",
189
- "proof:keyframes-vue-published": "node scripts/proof-keyframes-vue-published.mjs",
190
215
  "proof:workaround-deletion": "node scripts/proof-workaround-deletion.mjs",
216
+ "proof:glass-ui-gap-tripwire": "node scripts/proof-glass-ui-gap-tripwire.mjs",
217
+ "proof:no-hand-rolled-labeled-select": "node scripts/proof-no-hand-rolled-labeled-select.mjs",
218
+ "proof:transport-action-order": "node scripts/proof-transport-action-order.mjs",
219
+ "proof:transport-play-first-render": "node scripts/proof-transport-play-first-render.mjs",
220
+ "proof:dock-grammar": "node scripts/proof-dock-grammar.mjs",
221
+ "proof:dock-elision": "node scripts/proof-dock-elision.mjs",
222
+ "proof:dock-single-tooltip": "node scripts/proof-dock-single-tooltip.mjs",
223
+ "proof:dock-rest-crisp": "node scripts/proof-dock-rest-crisp.mjs",
224
+ "proof:dock-morph-continuity": "node scripts/proof-dock-morph-continuity.mjs",
191
225
  "proof:settle-is-predicate": "node scripts/proof-settle-is-predicate.mjs",
192
226
  "proof:manifest-sourced": "node scripts/proof-manifest-sourced.mjs",
193
227
  "proof:chronic-closure": "node scripts/proof-chronic-closure.mjs",
194
228
  "proof:no-foreign-symbol-stamp": "node scripts/proof-no-foreign-symbol-stamp.mjs",
195
229
  "proof:soa-composite": "node scripts/proof-soa-composite.mjs && npm run proof:blend",
196
- "proof:emerging-css-resolve-now": "node scripts/proof-emerging-css-resolve-now.mjs && vitest run test/emerging-css-resolve-now.test.ts",
197
- "proof:morphsvg-consume": "node scripts/proof-morphsvg-consume.mjs && vitest run test/morph-svg.test.ts",
230
+ "proof:emerging-css-resolve": "node scripts/proof-emerging-css-resolve-now.mjs && node scripts/proof-emerging-css-resolve-p2.mjs && node scripts/proof-emerging-css-resolve-fn.mjs && vitest run test/resolve/emerging-css-resolve-now.test.ts test/resolve/emerging-css-resolve-p2.test.ts test/resolve/emerging-css-resolve-fn.test.ts",
231
+ "proof:morph": "node scripts/proof-morphsvg-consume.mjs && node scripts/proof-morph-renders-d.mjs && node scripts/proof-morph-orients.mjs && vitest run test/svg/morph-svg.test.ts",
198
232
  "proof:portable-perf": "node scripts/proof-portable-perf.mjs",
199
233
  "proof:spring-heatmap": "node scripts/proof-spring-heatmap.mjs",
200
234
  "proof:record-truth": "node scripts/proof-record-truth.mjs",
201
235
  "proof:lint-clean": "node scripts/proof-lint-clean.mjs",
236
+ "proof:no-silent-fallback": "node scripts/proof-no-silent-fallback.mjs",
202
237
  "lint": "depcruise src --ignore-known",
203
238
  "proof:drag2d-light-certified": "node scripts/proof-drag2d-light-certified.mjs",
204
239
  "proof:published-on-master": "node scripts/proof-published-on-master.mjs",
205
240
  "proof:deploy-roundtrip": "node scripts/proof-deploy-roundtrip.mjs",
206
241
  "proof:wave-charter": "node scripts/proof-wave-charter.mjs",
207
242
  "proof:pin-ledger-current": "node scripts/proof-pin-ledger-current.mjs",
208
- "proof:emerging-css-resolve-p2": "node scripts/proof-emerging-css-resolve-p2.mjs && vitest run test/emerging-css-resolve-p2.test.ts",
209
243
  "proof:processframe-soa": "node scripts/proof-processframe-soa.mjs",
210
- "proof:nan-frame": "node scripts/proof-nan-frame.mjs && vitest run test/nan-frame.test.ts",
244
+ "proof:nan-frame": "node scripts/proof-nan-frame.mjs && vitest run test/engine/nan-frame.test.ts",
211
245
  "proof:waapi-adaptive-densify": "node scripts/proof-waapi-adaptive-densify.mjs",
212
- "proof:grammar-fuzz": "node scripts/proof-grammar-fuzz.mjs && vitest run test/grammar-fuzz.test.ts",
246
+ "proof:grammar-fuzz": "node scripts/proof-grammar-fuzz.mjs && vitest run test/compile/grammar-fuzz.test.ts",
213
247
  "proof:kf-differential": "node scripts/proof-kf-differential.mjs",
214
- "proof:demo-control-point": "node scripts/proof-demo-control-point.mjs",
215
- "proof:easing-curve-editor": "node scripts/proof-easing-curve-editor.mjs",
216
- "proof:scene-switcher-mobile": "node scripts/proof-scene-switcher-mobile.mjs",
217
248
  "proof:amiga-decay-visible": "node scripts/proof-amiga-decay-visible.mjs",
218
- "proof:morph-renders-d": "node scripts/proof-morph-renders-d.mjs && vitest run test/morph-svg.test.ts",
219
- "proof:morph-orients": "node scripts/proof-morph-orients.mjs && vitest run test/morph-svg.test.ts",
220
- "proof:morph-scene": "node scripts/proof-morph-scene.mjs",
221
- "proof:emerging-css-resolve-fn": "node scripts/proof-emerging-css-resolve-fn.mjs && vitest run test/emerging-css-resolve-fn.test.ts",
222
249
  "proof:no-cross-realm-cast": "node scripts/proof-no-cross-realm-cast.mjs",
250
+ "proof:no-collision-rename": "node scripts/proof-no-collision-rename.mjs",
251
+ "proof:no-nested-self-dependency": "node scripts/proof-no-nested-self-dependency.mjs",
223
252
  "proof:color-soa": "node scripts/proof-color-soa.mjs",
224
253
  "proof:glassui-aria-ask": "node scripts/proof-glassui-aria-ask.mjs",
225
- "proof:correctness": "npm run proof:engine-no-throw-on-play && npm run proof:subject-animates && npm run proof:cold-entry && npm run proof:fsm-suspend-resume-live && npm run proof:easing-editor-live && npm run proof:amiga-subject-is-pivot && npm run proof:drag-gesture && npm run proof:control-surface-single-writer && npm run proof:sheet-reopen-scroll && npm run proof:perf-frame-budget && npm run proof:icon-paint-live && npm run proof:specular-absent-at-rest && npm run proof:demo-fonts && npm run proof:font-census && npm run proof:live-session && npm run proof:live-session-mobile && npm run proof:appearance-suffusion && npm run proof:spring-slider-continuous && npm run proof:emerging-css-resolve-now && npm run proof:spring-heatmap && npm run proof:demo-control-point && npm run proof:easing-curve-editor && npm run proof:scene-switcher-mobile && npm run proof:amiga-decay-visible && npm run proof:morph-scene",
254
+ "proof:no-dead-dependency": "node scripts/proof-no-dead-dependency.mjs",
255
+ "proof:no-dead-export": "node scripts/proof-no-dead-export.mjs",
256
+ "proof:any-ceiling": "node scripts/proof-any-ceiling.mjs",
257
+ "proof:owner-verdict-recorded": "node scripts/proof-owner-verdict-recorded.mjs",
258
+ "proof:owner-review-gate": "node scripts/proof-owner-review-gate.mjs",
259
+ "proof:gate-authority": "node scripts/proof-gate-authority.mjs",
260
+ "proof:retirement-ledger": "node scripts/proof-retirement-ledger.mjs",
261
+ "proof:board-live": "node scripts/proof-board-live.mjs",
262
+ "proof:prompt-recap-t": "node scripts/proof-prompt-recap-t.mjs",
263
+ "proof:roster-ceiling": "node scripts/proof-roster-ceiling.mjs",
264
+ "proof:owner-golden": "node scripts/proof-owner-golden.mjs",
265
+ "proof:stage-inventory": "node scripts/proof-stage-inventory.mjs",
266
+ "proof:subject-legible": "node scripts/proof-subject-legible.mjs",
267
+ "proof:subject-full": "node scripts/proof-subject-full.mjs",
268
+ "proof:blur-not-resampled": "node scripts/proof-blur-not-resampled.mjs",
269
+ "proof:library-correctness": "npm run proof:replay-equality && npm run proof:engine-correctness && npm run proof:compile-deterministic && npm run proof:compile-replay && npm run proof:zero-alloc && npm run proof:standalone-zero-alloc && npm run proof:roundtrip-fidelity && npm run proof:roundtrip-easing && npm run proof:nan-frame && npm run proof:grammar-fuzz && npm run proof:interpolate-anything && npm run proof:composition-honored && npm run proof:interp-fastprops && npm run proof:sync-step && npm run proof:event-ordering && npm run proof:adapter-capture && npm run proof:diagnostics-channel && npm run proof:scroll-roundtrip && npm run proof:blend && npm run proof:spring-blend-weight && npm run proof:drawsvg && npm run proof:finished && npm run proof:adopt-compiled && npm run proof:ingest-replay && npm run proof:orbital-rotate3d && npm run proof:spring-vector && npm run proof:orchestration && npm run proof:transport-events && npm run proof:soa-composite && npm run proof:color-soa && npm run proof:processframe-soa && npm run proof:waapi-adaptive-densify && npm run proof:color-fidelity && npm run proof:cohesion && npm run proof:scheduler-posttask && npm run proof:morph && npm run proof:emerging-css-resolve",
270
+ "proof:demo-correctness": "npm run proof:engine-no-throw-on-play && npm run proof:subject-animates && npm run proof:cold-entry && npm run proof:fsm-suspend-resume-live && npm run proof:easing-editor-live && npm run proof:easing-gallery && npm run proof:amiga-subject-is-pivot && npm run proof:drag-gesture && npm run proof:control-surface-single-writer && npm run proof:sheet-reopen-scroll && npm run proof:perf-frame-budget && npm run proof:icon-paint-live && npm run proof:specular-absent-at-rest && npm run proof:demo-fonts && npm run proof:font-census && npm run proof:live-session && npm run proof:live-session-mobile && npm run proof:appearance-suffusion && npm run proof:accent-census && npm run proof:spring-slider-continuous && npm run proof:spring-heatmap && npm run proof:amiga-decay-visible && npm run proof:square-honest && npm run proof:perf-counters && npm run proof:scene-rests && npm run proof:no-layout-animation",
226
271
  "proof:hygiene": "node scripts/run-all.mjs --tier=proof:hygiene-chain",
227
- "proof:hygiene-chain": "npm run proof:record-truth && npm run proof:deps-current && npm run proof:repin-witness && npm run proof:boundary && npm run proof:consume-bundle && npm run proof:css-parity && npm run proof:packrat-sound && npm run proof:workaround-deletion && npm run proof:dogfood && npm run proof:engine && npm run proof:decomposition && npm run proof:no-deprecated-guard && npm run proof:single-writer && npm run proof:composable-encapsulation && npm run proof:demo-no-oversize && npm run proof:no-brittle-selector && npm run proof:no-dup-utility && npm run proof:no-single-option-select && npm run proof:settle-is-predicate && npm run proof:demo-smoke && npm run proof:occlusion && npm run proof:cartoon-is-panel-depth && npm run proof:glass-and-cartoon && npm run proof:dock-popover-opens && npm run proof:single-toggle && npm run proof:darkmode-row-toggle && npm run proof:idle-fade && npm run proof:single-column-pack && npm run proof:label-subgrid && npm run proof:timeline-rail-width && npm run proof:demo-shell-grid && npm run proof:layout-cluster && npm run proof:stage-not-clipped && npm run proof:cartoon-shadow-unclipped && npm run proof:scene-machine-irrefragable && npm run proof:scene-control-dfa && npm run proof:scene-transition-perf && npm run proof:dock-zorder && npm run proof:drawer-spring && npm run proof:idioms && npm run proof:phi-leaf-zero && npm run proof:icon-idiom && npm run proof:styling-idioms && npm run proof:scene-parity && npm run proof:sequence-rows-draggable && npm run proof:motion-path-editable && npm run proof:motion-path-copy && npm run proof:easter-egg && npm run proof:crayon-preserved && npm run proof:design-refinement && npm run proof:typing-dots && npm run proof:dogfood-hero && npm run proof:easing-canvas-bounded && npm run proof:scene-uses-standard-ribbon && npm run proof:easing-sidebar-normalized && npm run proof:easing-sidebar-minimal && npm run proof:easing-stage-is-ball && npm run proof:scene-card-rounded && npm run proof:stage-glass-card && npm run proof:card-rounded-primitive && npm run proof:stage-within-docks && npm run proof:mobile-single-page && npm run proof:bezier-no-scroll && npm run proof:bezier-single-card && npm run proof:bezier-grown && npm run proof:pp-logo-svg && npm run proof:scene-perf-budget && npm run proof:hero-rung && npm run proof:hero-balance && npm run proof:hero-cls && npm run proof:brittleness && npm run proof:demo-elevate && npm run proof:modern-web && npm run proof:zero-alloc && npm run proof:engine-correctness && npm run proof:standalone-zero-alloc && npm run proof:compile-deterministic && npm run proof:compile-replay && npm run proof:replay-equality && npm run proof:platform-adopt && npm run proof:orchestration && npm run proof:transport-events && npm run proof:animate-orchestration && npm run proof:interp-fastprops && npm run proof:sync-step && npm run proof:roundtrip-easing && npm run proof:adapter-capture && npm run proof:composition-honored && npm run proof:diagnostics-channel && npm run proof:scroll-roundtrip && npm run proof:motion-path && npm run proof:blend && npm run proof:spring-blend-weight && npm run proof:drawsvg && npm run proof:finished && npm run proof:adopt-compiled && npm run proof:interpolate-anything && npm run proof:roundtrip-fidelity && npm run proof:ingest-replay && npm run proof:orbital-rotate3d && npm run proof:asset-store-singleton && npm run proof:scene-raf-leak && npm run proof:scene-contract-identity && npm run proof:group-snapshot-identity && npm run proof:resize-tracks && npm run proof:cohesion && npm run proof:visual-lock && npm run proof:demo-usability && npm run proof:computed-real-dom && npm run proof:lighthouse-a11y && npm run proof:lighthouse-mobile && npm run proof:published-surface && npm run proof:alias-dropped && npm run proof:changelog-5 && npm run proof:agent-surface && npm run proof:agent-validate && npm run proof:demo-on-published-surface && npm run proof:color-fidelity && npm run proof:readme-runs && npm run proof:event-ordering && npm run proof:manifest-sourced && npm run proof:bench-runs && npm run proof:bench-taxonomy && npm run proof:scheduler-posttask && npm run proof:epf1-measure && npm run proof:spring-vector && npm run proof:gate-is-runtime && npm run proof:chronic-closure && npm run proof:taste-packet && npm run proof:ci-coverage && npm run proof:no-foreign-symbol-stamp && npm run proof:soa-composite && npm run proof:morphsvg-consume && npm run proof:portable-perf && npm run proof:published-on-master && npm run proof:deploy-roundtrip && npm run proof:lint-clean && npm run proof:drag2d-light-certified && npm run proof:wave-charter && npm run proof:pin-ledger-current && npm run proof:emerging-css-resolve-p2 && npm run proof:processframe-soa && npm run proof:nan-frame && npm run proof:waapi-adaptive-densify && npm run proof:grammar-fuzz && npm run proof:kf-differential && npm run proof:morph-renders-d && npm run proof:morph-orients && npm run proof:emerging-css-resolve-fn && npm run proof:no-cross-realm-cast && npm run proof:color-soa && npm run proof:glassui-aria-ask && npm run proof:report-all && vitest run",
272
+ "proof:hygiene-chain": "npm run proof:record-truth && npm run proof:deps-current && npm run proof:repin-witness && npm run proof:boundary && npm run proof:consume-bundle && npm run proof:css-parity && npm run proof:packrat-sound && npm run proof:workaround-deletion && npm run proof:glass-ui-gap-tripwire && npm run proof:no-hand-rolled-labeled-select && npm run proof:transport-action-order && npm run proof:scene-facility && npm run proof:dogfood && npm run proof:engine && npm run proof:decomposition && npm run proof:zone-cohesion && npm run proof:compile-backward-leg && npm run proof:no-flat-siblings && npm run proof:no-orphan-module && npm run proof:no-deprecated-guard && npm run proof:single-writer && npm run proof:composable-encapsulation && npm run proof:demo-no-oversize && npm run proof:scene-colocated && npm run proof:app-is-shell && npm run proof:shared-has-n-consumers && npm run proof:colocation && npm run proof:style-file-ceiling && npm run proof:no-brittle-selector && npm run proof:no-dup-utility && npm run proof:no-single-option-select && npm run proof:dock-grammar && npm run proof:dock-elision && npm run proof:dock-single-tooltip && npm run proof:transport-play-first-render && npm run proof:settle-is-predicate && npm run proof:demo-smoke && npm run proof:occlusion && npm run proof:cartoon-is-panel-depth && npm run proof:glass-and-cartoon && npm run proof:dock-popover-opens && npm run proof:single-toggle && npm run proof:darkmode-row-toggle && npm run proof:idle-fade && npm run proof:single-column-pack && npm run proof:label-subgrid && npm run proof:timeline-rail-width && npm run proof:demo-shell-grid && npm run proof:layout-cluster && npm run proof:stage-not-clipped && npm run proof:cartoon-shadow-unclipped && npm run proof:scene-machine-irrefragable && npm run proof:scene-superkey-single-source && npm run proof:scene-control-dfa && npm run proof:dfa-derived && npm run proof:no-shadow-playback-authority && npm run proof:one-adapter && npm run proof:scene-transition-perf && npm run proof:drawer-spring && npm run proof:panel-naked-rail && npm run proof:idioms && npm run proof:phi-leaf-zero && npm run proof:icon-idiom && npm run proof:styling-idioms && npm run proof:scene-parity && npm run proof:sequence-rows-draggable && npm run proof:crayon-preserved && npm run proof:typing-dots && npm run proof:dogfood-hero && npm run proof:scene-uses-standard-ribbon && npm run proof:scene-card-rounded && npm run proof:stage-glass-card && npm run proof:card-rounded-primitive && npm run proof:stage-within-docks && npm run proof:mobile-single-page && npm run proof:pp-logo-svg && npm run proof:scene-perf-budget && npm run proof:no-hand-rolled-cursor-tracker && npm run proof:brittleness && npm run proof:demo-elevate && npm run proof:modern-web && npm run proof:platform-adopt && npm run proof:claude-paths-live && npm run proof:scene-raf-leak && npm run proof:scene-contract-identity && npm run proof:group-snapshot-identity && npm run proof:resize-tracks && npm run proof:demo-usability && npm run proof:computed-real-dom && npm run proof:lighthouse-a11y && npm run proof:lighthouse-mobile && npm run proof:published-surface && npm run proof:alias-dropped && npm run proof:changelog && npm run proof:agent-surface && npm run proof:in-is-importable && npm run proof:agent-validate && npm run proof:demo-on-published-surface && npm run proof:readme-runs && npm run proof:readme-paths-live && npm run proof:manifest-sourced && npm run proof:bench-runs && npm run proof:bench-taxonomy && npm run proof:epf1-measure && npm run proof:gate-is-runtime && npm run proof:chronic-closure && npm run proof:taste-packet && npm run proof:ci-coverage && npm run proof:no-foreign-symbol-stamp && npm run proof:portable-perf && npm run proof:published-on-master && npm run proof:deploy-roundtrip && npm run proof:lint-clean && npm run proof:no-silent-fallback && npm run proof:drag2d-light-certified && npm run proof:wave-charter && npm run proof:pin-ledger-current && npm run proof:no-cross-realm-cast && npm run proof:glassui-aria-ask && npm run proof:no-dead-dependency && npm run proof:kf-differential && npm run proof:owner-verdict-recorded && npm run proof:owner-review-gate && npm run proof:gate-authority && npm run proof:retirement-ledger && npm run proof:board-live && npm run proof:prompt-recap-t && npm run proof:engine-subpath-mirror && npm run proof:no-any-default && npm run proof:dts-rollups-agree && npm run proof:no-dead-export && npm run proof:any-ceiling && npm run proof:report-all && vitest run",
228
273
  "proof:all": "node scripts/run-all.mjs --all",
229
274
  "proof:all:demo": "npm run proof:demo-smoke && npm run proof:occlusion && npm run proof:peer-satisfied",
275
+ "demo:correctness": "node scripts/run-demo-roster.mjs --tier=correctness",
230
276
  "test": "vitest",
231
277
  "bench": "vitest bench",
232
- "bench:color-fidelity": "vitest run test/color-fidelity.test.ts && node scripts/color-fidelity-harness.mjs",
278
+ "bench:color-fidelity": "vitest run test/engine/color-fidelity.test.ts && node scripts/color-fidelity-harness.mjs",
233
279
  "gen:agent-surface": "node scripts/gen-agent-surface.mjs"
234
280
  },
235
281
  "repository": {
@@ -245,7 +291,7 @@
245
291
  },
246
292
  "homepage": "https://github.com/mkbabb/keyframes.js#readme",
247
293
  "dependencies": {
248
- "@mkbabb/value.js": "^1.2.0"
294
+ "@mkbabb/value.js": "^3.1.0"
249
295
  },
250
296
  "optionalDependencies": {
251
297
  "@mkbabb/glass-ui": "~4.0.0"
@@ -256,18 +302,15 @@
256
302
  "@lucide/vue": "^1.17.0",
257
303
  "@microsoft/api-extractor": "^7.58.7",
258
304
  "@tailwindcss/postcss": "^4.3.0",
259
- "@types/node": "^25.9.1",
305
+ "@types/node": "^22.20.0",
260
306
  "@types/three": "^0.184.1",
261
- "@unovis/ts": "^1.6.5",
262
- "@unovis/vue": "^1.6.5",
263
- "@vee-validate/zod": "^4.15.1",
264
307
  "@vitejs/plugin-vue": "^6.0.7",
265
308
  "@vueuse/core": "^14.3.0",
266
309
  "class-variance-authority": "^0.7.1",
267
310
  "clsx": "^2.1.1",
268
- "dependency-cruiser": "^17.4.3",
269
- "embla-carousel-vue": "^8.6.0",
270
- "fast-check": "^3.23.2",
311
+ "dependency-cruiser": "^18.0.0",
312
+ "fast-check": "^4.8.0",
313
+ "gl-matrix": "^3.4.4",
271
314
  "highlight.js": "^11.11.1",
272
315
  "html2canvas": "^1.4.1",
273
316
  "jsdom": "^29.1.1",
@@ -287,9 +330,6 @@
287
330
  "three": "^0.184.0",
288
331
  "tw-animate-css": "^1.4.0",
289
332
  "typescript": "^6.0.3",
290
- "v-calendar": "^3.1.2",
291
- "vaul-vue": "^0.4.1",
292
- "vee-validate": "^4.15.1",
293
333
  "vite": "^8.0.16",
294
334
  "vite-plugin-dts": "^5.0.2",
295
335
  "vite-svg-loader": "^5.1.0",
@@ -297,7 +337,6 @@
297
337
  "vue": "^3.5.35",
298
338
  "vue-router": "^5.1.0",
299
339
  "vue-sonner": "^2.0.9",
300
- "yaml": "^2.9.0",
301
- "zod": "^3.25.76"
340
+ "yaml": "^2.9.0"
302
341
  }
303
342
  }
@@ -1,26 +0,0 @@
1
- import { t as e } from "./sequence-cBr7thU8.js";
2
- import { AnimationGroup as t, CSSKeyframesAnimation as n } from "./engine-DQcb7CLW.js";
3
- import { fromMotionPath as r } from "./motion-path-C0OHqcA3.js";
4
- //#region src/animation/animate.ts
5
- var i = (e) => typeof e == "object" && !!e && !Array.isArray(e) && !(e instanceof Map) && typeof e.path == "string", a = (e) => e instanceof Map || typeof e == "object" && !!e && !Array.isArray(e);
6
- function o(o, s, c) {
7
- let { transform: l, autoPlay: u = !0, ...d } = c ?? {};
8
- if (s instanceof t || s instanceof e) {
9
- let e = Array.isArray(o) ? o : [o];
10
- return s.setTargets?.(...e), u && s.play(), s;
11
- }
12
- if (i(s)) return r(o, {
13
- ...s,
14
- ...d,
15
- autoPlay: u
16
- });
17
- let f = new n(d);
18
- if (typeof s == "string") f.fromString(s, l);
19
- else if (Array.isArray(s)) f.fromVars(s, l);
20
- else if (a(s)) f.fromKeyframes(s, l);
21
- else throw Error("animate(): unrecognized input — pass a CSS @keyframes string, a keyframe map ({ \"0%\": {...} }), a vars array ([from, to]), or a MotionPath spec ({ path }).");
22
- let p = Array.isArray(o) ? o : [o];
23
- return f.setTargets(...p), u && f.play(), f;
24
- }
25
- //#endregion
26
- export { o as animate };