@mkbabb/keyframes.js 5.2.0 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/keyframes.js CHANGED
@@ -1,6 +1,7 @@
1
- import { _ as e, a as t, b as n, c as r, d as i, f as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./sequence-s0bL7Uul.js";
1
+ import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, l as u, m as d, o as f, p, s as m, t as h, u as g, v as _, x as v } from "./sequence-CES7o7hs.js";
2
2
  //#region src/animation/physics/numeric.ts
3
- var y = new Float64Array(), b = class {
3
+ var y = class {
4
+ _out = new Float64Array();
4
5
  keyframes;
5
6
  segments;
6
7
  positions;
@@ -8,15 +9,15 @@ var y = new Float64Array(), b = class {
8
9
  _duration;
9
10
  _respectReducedMotion;
10
11
  _easingFn;
11
- _playback = new c();
12
- constructor(e, t) {
12
+ _playback = new s();
13
+ constructor(e, n) {
13
14
  if (e.length < 2) throw Error("NumericAnimation requires at least 2 keyframes.");
14
- this.keyframes = e.map((e) => ({ ...e })), this._duration = t?.duration ?? 0, this._respectReducedMotion = t?.respectReducedMotion ?? !1;
15
- let n = t?.timingFunction;
16
- if (typeof n == "string") throw new v("timingFunction", n, "NumericAnimation accepts a callable TimingFunction or a typed Easing; resolve a string name first via `await resolveEasing(name)`.");
17
- if (this._easingFn = n == null ? (e) => e : _(n).fn, t?.positions) {
18
- if (t.positions.length !== e.length) throw Error("positions length must match keyframes length.");
19
- this.positions = t.positions;
15
+ this.keyframes = e.map((e) => ({ ...e })), this._duration = n?.duration ?? 0, this._respectReducedMotion = n?.respectReducedMotion ?? !1;
16
+ let r = n?.timingFunction;
17
+ if (typeof r == "string") throw new t("timingFunction", r, "NumericAnimation accepts a callable TimingFunction or a typed Easing; resolve a string name first via `await resolveEasing(name)`.");
18
+ if (this._easingFn = r == null ? (e) => e : v(r).fn, n?.positions) {
19
+ if (n.positions.length !== e.length) throw Error("positions length must match keyframes length.");
20
+ this.positions = n.positions;
20
21
  } else this.positions = e.map((t, n) => n / (e.length - 1) * 100);
21
22
  this.result = { ...e[0] }, this.segments = this.buildSegments();
22
23
  }
@@ -41,12 +42,12 @@ var y = new Float64Array(), b = class {
41
42
  };
42
43
  }
43
44
  at(e) {
44
- let t = a(e, 0, 1) * 100, n = o(this.segments, t, (e) => e.startPos, (e) => e.stopPos);
45
- n === -1 && (n = this.segments.length - 1);
46
- let r = this.segments[n], i = l(a(t, r.startPos, r.stopPos), r.startPos, r.stopPos, 0, 1), s = r.timingFunction(i), c = r.keys.length;
47
- y.length < c && (y = new Float64Array(c)), f(r.from, r.to, s, y);
45
+ let t = l(e, 0, 1) * 100, r = _(this.segments, t, (e) => e.startPos, (e) => e.stopPos);
46
+ r === -1 && (r = this.segments.length - 1);
47
+ let i = this.segments[r], a = n(l(t, i.startPos, i.stopPos), i.startPos, i.stopPos, 0, 1), o = i.timingFunction(a), s = i.keys.length;
48
+ this._out.length < s && (this._out = new Float64Array(s)), c(i.from, i.to, o, this._out);
48
49
  let u = this.result;
49
- for (let e = 0; e < c; e++) u[r.keys[e]] = y[e];
50
+ for (let e = 0; e < s; e++) u[i.keys[e]] = this._out[e];
50
51
  return this.result;
51
52
  }
52
53
  updateKeyframe(e, t) {
@@ -65,13 +66,13 @@ var y = new Float64Array(), b = class {
65
66
  }
66
67
  };
67
68
  //#endregion
68
- //#region src/animation/physics/spring/reseat.ts
69
- function x(e) {
69
+ //#region src/animation/physics/spring/solver/reseat.ts
70
+ function b(e) {
70
71
  let t = e.curr.time - e.prev.time;
71
72
  return t <= 0 ? 0 : (e.curr.value - e.prev.value) / (t / 1e3);
72
73
  }
73
- function S(e, t, n) {
74
- let r = x(e), i = new m({
74
+ function x(e, t, n) {
75
+ let r = b(e), i = new g({
75
76
  ...n,
76
77
  initial: e.curr.value,
77
78
  initialVelocity: r
@@ -80,7 +81,7 @@ function S(e, t, n) {
80
81
  }
81
82
  //#endregion
82
83
  //#region src/animation/physics/morph.ts
83
- var C = (e) => {
84
+ var S = (e) => {
84
85
  if (e instanceof HTMLElement) {
85
86
  let t = e.getBoundingClientRect();
86
87
  return {
@@ -91,7 +92,7 @@ var C = (e) => {
91
92
  };
92
93
  }
93
94
  return e;
94
- }, w = class {
95
+ }, C = class {
95
96
  animation;
96
97
  transformOrigin;
97
98
  timingFunction;
@@ -100,8 +101,8 @@ var C = (e) => {
100
101
  this.transformOrigin = n?.transformOrigin ?? "top left", this.timingFunction = n?.timingFunction, this.duration = n?.duration ?? 0, this.measure(e, t);
101
102
  }
102
103
  measure(e, t) {
103
- let n = C(e), r = C(t), i = r.x - n.x, a = r.y - n.y, o = n.width === 0 ? 1 : r.width / n.width, s = n.height === 0 ? 1 : r.height / n.height;
104
- return this.animation = new b([{
104
+ let n = S(e), r = S(t), i = r.x - n.x, a = r.y - n.y, o = n.width === 0 ? 1 : r.width / n.width, s = n.height === 0 ? 1 : r.height / n.height;
105
+ return this.animation = new y([{
105
106
  translateX: 0,
106
107
  translateY: 0,
107
108
  scaleX: 1,
@@ -135,19 +136,19 @@ var C = (e) => {
135
136
  stop() {
136
137
  this.animation.stop();
137
138
  }
138
- }, T = class {
139
+ }, w = class {
139
140
  smoother;
140
141
  _easingFn;
141
142
  currentProgress = 0;
142
143
  boundaryEpsilon;
143
144
  constructor(e) {
144
145
  this.boundaryEpsilon = e?.boundaryEpsilon ?? .005;
145
- let t = e?.easing;
146
- if (typeof t == "string") throw new v("easing", t, "Timeline accepts a callable TimingFunction or a typed Easing; resolve a string name first via `await resolveEasing(name)`.");
147
- this._easingFn = t == null ? (e) => e : _(t).fn, e?.smoothing === !1 ? this.smoother = null : this.smoother = new r(e?.smoothing);
146
+ let n = e?.easing;
147
+ if (typeof n == "string") throw new t("easing", n, "Timeline accepts a callable TimingFunction or a typed Easing; resolve a string name first via `await resolveEasing(name)`.");
148
+ this._easingFn = n == null ? (e) => e : v(n).fn, e?.smoothing === !1 ? this.smoother = null : this.smoother = new o(e?.smoothing);
148
149
  }
149
150
  applyPipeline() {
150
- let e = a(this.sample(), 0, 1);
151
+ let e = l(this.sample(), 0, 1);
151
152
  e = this._easingFn(e);
152
153
  let t = this.boundaryEpsilon;
153
154
  return e <= t ? e = 0 : e >= 1 - t && (e = 1), e;
@@ -175,7 +176,7 @@ var C = (e) => {
175
176
  let t = e ?? 0;
176
177
  this.smoother && this.smoother.reset(t), this.currentProgress = t;
177
178
  }
178
- }, ee = class extends T {
179
+ }, T = class extends w {
179
180
  threshold;
180
181
  getScrollY;
181
182
  getViewportHeight;
@@ -186,7 +187,7 @@ var C = (e) => {
186
187
  let e = this.getViewportHeight() * this.threshold;
187
188
  return e <= 0 ? 0 : this.getScrollY() / e;
188
189
  }
189
- }, E = class extends T {
190
+ }, E = class extends w {
190
191
  value = 0;
191
192
  constructor(e) {
192
193
  super({
@@ -200,17 +201,17 @@ var C = (e) => {
200
201
  sample() {
201
202
  return this.value;
202
203
  }
203
- }, D = 2 * Math.PI;
204
- function O(e, t) {
204
+ }, ee = 2 * Math.PI;
205
+ function D(e, t) {
205
206
  let n = e - Math.floor(e);
206
207
  switch (t) {
207
- case "sine": return Math.sin(D * n);
208
+ case "sine": return Math.sin(ee * n);
208
209
  case "triangle": return n < .5 ? 4 * n - 1 : 3 - 4 * n;
209
210
  case "square": return n < .5 ? 1 : -1;
210
211
  case "sawtooth": return 2 * n - 1;
211
212
  }
212
213
  }
213
- var k = class {
214
+ var O = class {
214
215
  frequency;
215
216
  waveform;
216
217
  phase = 0;
@@ -222,43 +223,43 @@ var k = class {
222
223
  return this.phase = t - Math.floor(t), this.phase;
223
224
  }
224
225
  get value() {
225
- return O(this.phase, this.waveform);
226
+ return D(this.phase, this.waveform);
226
227
  }
227
228
  sample(e) {
228
- return O(e * this.frequency, this.waveform);
229
+ return D(e * this.frequency, this.waveform);
229
230
  }
230
231
  reset(e = 0) {
231
232
  this.phase = e - Math.floor(e);
232
233
  }
233
- }, A = (e, t) => {
234
- if (typeof e == "number") return a(e, 0, Math.max(0, t - 1));
234
+ }, k = (e, t) => {
235
+ if (typeof e == "number") return l(e, 0, Math.max(0, t - 1));
235
236
  switch (e) {
236
237
  case "first": return 0;
237
238
  case "last": return t - 1;
238
239
  case "center": return (t - 1) / 2;
239
240
  case "edges": return -1;
240
241
  }
241
- }, te = (e, t, n) => n === "edges" ? Math.min(e, t - 1 - e) : Math.abs(e - A(n, t)), j = (e, t) => {
242
+ }, te = (e, t, n) => n === "edges" ? Math.min(e, t - 1 - e) : Math.abs(e - k(n, t)), ne = (e, t) => {
242
243
  if (e <= 1) return 0;
243
244
  if (t === "edges") return Math.floor((e - 1) / 2);
244
- let n = A(t, e);
245
+ let n = k(t, e);
245
246
  return Math.max(n, e - 1 - n);
246
247
  };
247
- function M(e, t = {}) {
248
- let { each: n = 100, from: r = "first", ease: i } = t;
249
- if (typeof i == "string") throw new v("ease", i, "stagger accepts a callable TimingFunction or a typed Easing; resolve a string name first via `await resolveEasing(name)`.");
250
- let a = i ? _(i).fn : void 0, o = typeof e == "number" ? e : e.length, s = (e, t) => {
248
+ function A(e, n = {}) {
249
+ let { each: r = 100, from: i = "first", ease: a } = n;
250
+ if (typeof a == "string") throw new t("ease", a, "stagger accepts a callable TimingFunction or a typed Easing; resolve a string name first via `await resolveEasing(name)`.");
251
+ let o = a ? v(a).fn : void 0, s = typeof e == "number" ? e : e.length, c = (e, t) => {
251
252
  if (t <= 1) return 0;
252
- let i = j(t, r);
253
- if (i === 0) return 0;
254
- let o = te(e, t, r);
255
- return a ? a(o / i) * n * i : o * n;
256
- }, c = ((e, t = o) => s(e, t));
257
- return c.delays = (e = o) => Array.from({ length: e }, (t, n) => s(n, e)), c;
253
+ let n = ne(t, i);
254
+ if (n === 0) return 0;
255
+ let a = te(e, t, i);
256
+ return o ? o(a / n) * r * n : a * r;
257
+ }, l = ((e, t = s) => c(e, t));
258
+ return l.delays = (e = s) => Array.from({ length: e }, (t, n) => c(n, e)), l;
258
259
  }
259
260
  //#endregion
260
261
  //#region src/animation/orchestration/flip.ts
261
- var N = 300, P = (e) => {
262
+ var j = 300, M = (e) => {
262
263
  let t = e.getBoundingClientRect();
263
264
  return {
264
265
  x: t.x,
@@ -266,21 +267,21 @@ var N = 300, P = (e) => {
266
267
  width: t.width,
267
268
  height: t.height
268
269
  };
269
- }, F = (e, t) => {
270
+ }, N = (e, t) => {
270
271
  let n = e.at(1), r = n.translateX, i = n.translateY, a = n.scaleX, o = n.scaleY, s = e.at(t);
271
272
  return `translate(${s.translateX - r}px, ${s.translateY - i}px) scale(${a === 0 ? 1 : s.scaleX / a}, ${o === 0 ? 1 : s.scaleY / o})`;
272
- }, ne = (e, t, n, r) => (e.style.transformOrigin = r, e.style.transform = F(t, 0), n <= 0 ? (e.style.transform = F(t, 1), Promise.resolve()) : new c().play(n, (n) => {
273
- e.style.transform = F(t, n);
273
+ }, P = (e, t, n, r) => (e.style.transformOrigin = r, e.style.transform = N(t, 0), n <= 0 ? (e.style.transform = N(t, 1), Promise.resolve()) : new s().play(n, (n) => {
274
+ e.style.transform = N(t, n);
274
275
  }));
275
- function re(e, t, n = {}) {
276
- let { duration: r = N, timingFunction: i, transformOrigin: a = "top left" } = n, o = P(e);
277
- return t(), ne(e, new w(o, P(e), {
276
+ function F(e, t, n = {}) {
277
+ let { duration: r = j, timingFunction: i, transformOrigin: a = "top left" } = n, o = M(e);
278
+ return t(), P(e, new C(o, M(e), {
278
279
  ...i === void 0 ? {} : { timingFunction: i },
279
280
  transformOrigin: a
280
281
  }), r, a);
281
282
  }
282
283
  function I(e, t, n = {}) {
283
- let { duration: r = N, timingFunction: i, transformOrigin: a = "top left" } = n, o = new w(P(e), P(t), {
284
+ let { duration: r = j, timingFunction: i, transformOrigin: a = "top left" } = n, o = new C(M(e), M(t), {
284
285
  ...i === void 0 ? {} : { timingFunction: i },
285
286
  duration: r,
286
287
  transformOrigin: a
@@ -289,7 +290,7 @@ function I(e, t, n = {}) {
289
290
  }
290
291
  //#endregion
291
292
  //#region src/animation/orchestration/split-text/refuse.ts
292
- var ie = {
293
+ var re = {
293
294
  unmeasurable: "the container yielded no laid-out client rects (detached, display:none, or zero-area) — a line-split cannot group fragments without a measured line box. Use by:\"word\" (layout-independent), or split after the element is laid out.",
294
295
  unstable: "the line measurement could not converge — the container's size depends on its own content flow (a container-query / intrinsic-size feedback loop), so the line grouping oscillates on every reflow. Refused rather than latch a stale line map.",
295
296
  empty: "there is no text content to split into lines."
@@ -297,7 +298,7 @@ var ie = {
297
298
  name = "SplitTextRefusalError";
298
299
  reason;
299
300
  constructor(t, n) {
300
- super(`splitText refused a by:"line" split (${t}): ` + (n ?? ie[t])), this.reason = t, Object.setPrototypeOf(this, e.prototype);
301
+ super(`splitText refused a by:"line" split (${t}): ` + (n ?? re[t])), this.reason = t, Object.setPrototypeOf(this, e.prototype);
301
302
  }
302
303
  }, R = (e) => e.length === 0 || /^\s+$/u.test(e), z = typeof Intl < "u" && typeof Intl.Segmenter == "function";
303
304
  function B(e, t) {
@@ -395,8 +396,8 @@ function q(e, t = {}) {
395
396
  let t = W(l, n === "grapheme" ? V(u, a) : B(u, a), s, r);
396
397
  e.replaceChildren(t.frag), f = t.fragments;
397
398
  }
398
- let p = r ? K(e, u, i) : e.hasAttribute("role"), m = M(f.length, o), h = m.delays(f.length), g = null, _ = 0, v = 0, y = () => {
399
- n === "line" && (f = G(e, u, a, s, r), r && K(e, u, i), m = M(f.length, o), h = m.delays(f.length));
399
+ let p = r ? K(e, u, i) : e.hasAttribute("role"), m = A(f.length, o), h = m.delays(f.length), g = null, _ = 0, v = 0, y = () => {
400
+ n === "line" && (f = G(e, u, a, s, r), r && K(e, u, i), m = A(f.length, o), h = m.delays(f.length));
400
401
  }, b = () => {
401
402
  g?.disconnect(), g = null;
402
403
  };
@@ -438,8 +439,8 @@ function q(e, t = {}) {
438
439
  }
439
440
  //#endregion
440
441
  //#region src/animation/orchestration/view-transition/view-transition.ts
441
- var J = 300, ae = () => typeof document < "u" && typeof document.startViewTransition == "function", Y = (e) => e.then(() => void 0, () => void 0);
442
- function X(e) {
442
+ var J = 300, Y = () => typeof document < "u" && typeof document.startViewTransition == "function", X = (e) => e.then(() => void 0, () => void 0);
443
+ function Z(e) {
443
444
  let t = Promise.resolve(e()).then(() => void 0, () => void 0);
444
445
  return {
445
446
  ready: t,
@@ -449,8 +450,8 @@ function X(e) {
449
450
  backend: "immediate"
450
451
  };
451
452
  }
452
- function oe(e, t, n, r) {
453
- if (t.length === 0) return X(e);
453
+ function ie(e, t, n, r) {
454
+ if (t.length === 0) return Z(e);
454
455
  let i = {
455
456
  duration: n,
456
457
  ...r === void 0 ? {} : { timingFunction: r }
@@ -463,10 +464,10 @@ function oe(e, t, n, r) {
463
464
  backend: "flip"
464
465
  };
465
466
  }
466
- function se(e, t = {}) {
467
- let { types: n, duration: r = J, timingFunction: a, shared: o = [], fallback: s = "flip", respectReducedMotion: c = !0 } = t, l = () => {
468
- if (typeof s == "function") {
469
- let t = s(e).then(() => void 0, () => void 0);
467
+ function ae(e, t = {}) {
468
+ let { types: n, duration: r = J, timingFunction: i, shared: a = [], fallback: o = "flip", respectReducedMotion: s = !0 } = t, c = () => {
469
+ if (typeof o == "function") {
470
+ let t = o(e).then(() => void 0, () => void 0);
470
471
  return {
471
472
  ready: t,
472
473
  finished: t,
@@ -475,10 +476,10 @@ function se(e, t = {}) {
475
476
  backend: "flip"
476
477
  };
477
478
  }
478
- return s === "none" ? X(e) : oe(e, o, r, a);
479
+ return o === "none" ? Z(e) : ie(e, a, r, i);
479
480
  };
480
- return i(c, () => X(e), () => {
481
- if (!ae()) return l();
481
+ return d(s, () => Z(e), () => {
482
+ if (!Y()) return c();
482
483
  let t = document.startViewTransition, r;
483
484
  try {
484
485
  r = n && n.length > 0 ? t({
@@ -489,13 +490,13 @@ function se(e, t = {}) {
489
490
  try {
490
491
  r = t(e);
491
492
  } catch {
492
- return l();
493
+ return c();
493
494
  }
494
495
  }
495
496
  return {
496
- ready: Y(r.ready),
497
- finished: Y(r.finished),
498
- updateCallbackDone: Y(r.updateCallbackDone),
497
+ ready: X(r.ready),
498
+ finished: X(r.finished),
499
+ updateCallbackDone: X(r.updateCallbackDone),
499
500
  skip: () => r.skipTransition?.(),
500
501
  backend: "view-transition"
501
502
  };
@@ -503,7 +504,7 @@ function se(e, t = {}) {
503
504
  }
504
505
  //#endregion
505
506
  //#region src/animation/orchestration/drag/draggable.ts
506
- var ce = 100, le = .4, ue = 5, Z = class {
507
+ var oe = 100, se = .4, ce = 5, Q = class {
507
508
  spring;
508
509
  axis;
509
510
  transform;
@@ -520,7 +521,7 @@ var ce = 100, le = .4, ue = 5, Z = class {
520
521
  onPointerMove = (e) => this.handleMove(e);
521
522
  onPointerUp = (e) => this.handleUp(e);
522
523
  constructor(e) {
523
- this.axis = e?.axis ?? "x", this.transform = e?.transform ?? ((e) => e), this.velocityWindow = e?.velocityWindow ?? ce, this.bounds = e?.bounds, this.rubberBand = e?.rubberBand ?? le, this.snap = e?.snap !== void 0 && e.snap.length > 0 ? e.snap : void 0, this.spring = e?.spring ?? new m(e?.springOptions);
524
+ this.axis = e?.axis ?? "x", this.transform = e?.transform ?? ((e) => e), this.velocityWindow = e?.velocityWindow ?? oe, this.bounds = e?.bounds, this.rubberBand = e?.rubberBand ?? se, this.snap = e?.snap !== void 0 && e.snap.length > 0 ? e.snap : void 0, this.spring = e?.spring ?? new g(e?.springOptions);
524
525
  }
525
526
  get dragging() {
526
527
  return this.capturedPointerId !== void 0;
@@ -580,17 +581,17 @@ var ce = 100, le = .4, ue = 5, Z = class {
580
581
  this.pushSample(n, e.timeStamp);
581
582
  let r = this.estimateVelocity();
582
583
  if (t && this.endGesture(t), this.snap) {
583
- let e = p({
584
+ let e = f({
584
585
  initial: n,
585
586
  velocity: r,
586
- friction: ue
587
+ friction: ce
587
588
  }), t = this.nearestSnap(e);
588
- this.bounds && (t = a(t, this.bounds.min, this.bounds.max)), this.spring.reset(n, r), this.spring.target = t;
589
+ this.bounds && (t = l(t, this.bounds.min, this.bounds.max)), this.spring.reset(n, r), this.spring.target = t;
589
590
  return;
590
591
  }
591
592
  if (this.spring.reset(n, r), this.bounds) {
592
593
  let e = this.spring.value;
593
- (e < this.bounds.min || e > this.bounds.max) && (this.spring.target = a(e, this.bounds.min, this.bounds.max));
594
+ (e < this.bounds.min || e > this.bounds.max) && (this.spring.target = l(e, this.bounds.min, this.bounds.max));
594
595
  }
595
596
  }
596
597
  nearestSnap(e) {
@@ -620,17 +621,17 @@ var ce = 100, le = .4, ue = 5, Z = class {
620
621
  return r <= 0 ? 0 : (n.value - t.value) / r * 1e3;
621
622
  }
622
623
  };
623
- function Q(e, t) {
624
- let n = new Z(t);
624
+ function le(e, t) {
625
+ let n = new Q(t);
625
626
  return n.attach(e), n;
626
627
  }
627
628
  //#endregion
628
629
  //#region src/animation/orchestration/drag/drag-2d.ts
629
- function de(e, t) {
630
- let n = new Z({
630
+ function ue(e, t) {
631
+ let n = new Q({
631
632
  ...t?.x,
632
633
  axis: "x"
633
- }), r = new Z({
634
+ }), r = new Q({
634
635
  ...t?.y,
635
636
  axis: "y"
636
637
  });
@@ -667,60 +668,8 @@ function de(e, t) {
667
668
  }
668
669
  //#endregion
669
670
  //#region src/animation/load-engine.ts
670
- var fe = null, pe = () => fe ??= import("./engine-DlpimZtM.js"), me = null, $ = () => me ??= Promise.all([
671
- pe(),
672
- import("./group-HM7N4uOE.js").then((e) => e.t),
673
- import("./motion-path-wM5tPfrY.js").then((e) => e.r),
674
- import("./draw-svg-CK9Qrly8.js").then((e) => e.n),
675
- import("./morph-svg-KUrH9KnK.js").then((e) => e.r),
676
- import("./ingest-_g6tfk2e.js").then((e) => e.t),
677
- import("./scroll-BEyCx0b_.js").then((e) => e.t),
678
- import("./compile-BHCTPerD.js").then((e) => e.t),
679
- import("./view-transition-BPJQxUTC.js").then((e) => e.n),
680
- import("./entry-D82NKUhP.js").then((e) => e.n),
681
- import("./validate-xFZ_Ld1k.js").then((e) => e.r),
682
- import("./presets-DeDJYL4G.js").then((e) => e.t),
683
- import("./format-BdIvdLzG.js").then((e) => e.a),
684
- import("./parse-flatten-DRMHFytp.js"),
685
- import("./scheduler-CfGIC3GX.js").then((e) => e.t)
686
- ]).then(([e, t, n, r, i, a, o, s, c, l, u, d, f, p, m]) => Object.assign({
687
- AnimationGroup: t.AnimationGroup,
688
- MotionPath: n.MotionPath,
689
- fromMotionPath: n.fromMotionPath,
690
- DrawSVG: r.DrawSVG,
691
- fromDrawSVG: r.fromDrawSVG,
692
- MorphSVG: i.MorphSVG,
693
- fromMorphSVG: i.fromMorphSVG,
694
- fromStyleSheets: a.fromStyleSheets,
695
- fromLiveAnimations: a.fromLiveAnimations,
696
- resolveLiveKeyframes: a.resolveLiveKeyframes,
697
- adoptRunning: a.adoptRunning,
698
- ScrollScene: o.ScrollScene,
699
- createScrollScene: o.createScrollScene,
700
- parseScrollCSS: o.parseScrollCSS,
701
- parseScrollTimeline: o.parseScrollTimeline,
702
- parseScrollRange: o.parseScrollRange,
703
- serializeScrollOptions: o.serializeScrollOptions,
704
- roundTripScrollCSS: o.roundTripScrollCSS,
705
- dispatchScrollBackend: o.dispatchScrollBackend,
706
- resolveRange: o.resolveRange,
707
- pinCSS: o.pinCSS,
708
- TriggerScene: o.TriggerScene,
709
- createTriggerScene: o.createTriggerScene,
710
- supportsNativeTrigger: o.supportsNativeTrigger,
711
- compileToCSS: s.compileToCSS,
712
- compileToViewTransition: c.compileToViewTransition,
713
- compileToEntry: l.compileToEntry,
714
- validate: u.validate,
715
- explain: u.explain,
716
- presets: d,
717
- CSSKeyframesToString: f.CSSKeyframesToString,
718
- CSSKeyframesToStrings: f.CSSKeyframesToStrings,
719
- formatCSSKeyframeString: f.formatCSSKeyframeString,
720
- transformTargetsStyle: p.transformTargetsStyle,
721
- yieldToMain: m.yieldToMain
722
- }, e)), he = () => {
671
+ var de, $ = () => de ??= import("./engine/index.js"), fe = () => {
723
672
  $();
724
673
  };
725
674
  //#endregion
726
- export { v as AnimationOptionError, Z as Draggable, w as ElementMorph, ee as KeyframesScrollTimeline, E as ManualTimeline, b as NumericAnimation, k as Oscillator, c as RAFPlayback, h as Sequence, r as SmoothProgress, L as SplitTextRefusalError, m as SpringProgress, T as Timeline, n as UnknownEasingError, s as createNativeTimeline, u as decay, p as decayRest, Q as drag, de as drag2D, re as flip, I as flipShared, $ as loadAnimationEngine, x as probeVelocity, g as reducedMotionScale, S as reseatToSpring, e as resolveEasing, q as splitText, d as springLinearStops, t as springTimingFunction, M as stagger, _ as toEasing, se as viewTransition, he as warmEngine, O as waveformValue };
675
+ export { t as AnimationOptionError, Q as Draggable, C as ElementMorph, T as KeyframesScrollTimeline, E as ManualTimeline, y as NumericAnimation, O as Oscillator, s as RAFPlayback, h as Sequence, o as SmoothProgress, L as SplitTextRefusalError, g as SpringProgress, w as Timeline, e as UnknownEasingError, m as createNativeTimeline, r as decay, f as decayRest, le as drag, ue as drag2D, F as flip, I as flipShared, $ as loadAnimationEngine, b as probeVelocity, p as reducedMotionScale, x as reseatToSpring, i as resolveEasing, q as splitText, u as springLinearStops, a as springTimingFunction, A as stagger, v as toEasing, ae as viewTransition, fe as warmEngine, D as waveformValue };