@mkbabb/keyframes.js 6.5.0 → 6.6.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.
@@ -1,5 +1,5 @@
1
- import { C as e, D as t, b as n, c as r, d as i, g as a, h as o, i as s, k as c, l, m as u, n as d, o as f, r as p, s as m, t as h, v as g, w as _, y as v } from "../sequence-BRhiigt1.js";
2
- import { C as y, E as b, S as ee, T as x, _ as te, a as ne, b as re, c as ie, d as ae, f as oe, g as se, h as ce, i as le, l as ue, m as de, n as fe, o as pe, p as me, r as he, s as ge, t as _e, u as ve, v as ye, w as be, x as xe, y as S } from "../registry-DIMQ5-f9.js";
1
+ import { C as e, M as t, O as n, P as r, T as i, b as a, c as o, d as s, g as c, i as l, k as u, l as d, n as f, o as p, r as m, s as h, t as ee, w as g, x as _ } from "../sequence-BzJ-b_HG.js";
2
+ import { C as v, E as y, S as b, T as x, _ as te, a as ne, b as re, c as ie, d as ae, f as oe, g as se, h as ce, i as le, l as ue, m as de, n as fe, o as pe, p as me, r as he, s as ge, t as _e, u as ve, v as ye, w as be, x as xe, y as S } from "../registry-BZOrCZZh.js";
3
3
  import { clamp as Se, lerp as C, lerpArray as Ce, scale as we } from "@mkbabb/value.js/math";
4
4
  import { easeInOutCubic as Te } from "@mkbabb/value.js/easing";
5
5
  import { convertColor as Ee, mixColors as De, oklab as Oe } from "@mkbabb/value.js/color";
@@ -64,9 +64,9 @@ var Me = Object.defineProperty, Ne = (e, t) => {
64
64
  weight: 1,
65
65
  op: "replace",
66
66
  enabled: !0
67
- }, ze = 0, Be = /* @__PURE__ */ new WeakMap(), Ve = () => ze, He = () => (Be = /* @__PURE__ */ new WeakMap(), ++ze);
68
- typeof window < "u" && window.addEventListener("resize", He, { passive: !0 });
69
- var Ue = (e, t) => {
67
+ }, D = 0, ze = /* @__PURE__ */ new WeakMap(), Be = () => D, Ve = () => (ze = /* @__PURE__ */ new WeakMap(), ++D);
68
+ typeof window < "u" && window.addEventListener("resize", Ve, { passive: !0 });
69
+ var He = (e, t) => {
70
70
  switch (t) {
71
71
  case "cm": return 96 / 2.54 * e;
72
72
  case "mm": return 96 / 25.4 * e;
@@ -76,7 +76,7 @@ var Ue = (e, t) => {
76
76
  case "pc": return e * 16;
77
77
  default: return e;
78
78
  }
79
- }, We = (e, t) => {
79
+ }, Ue = (e, t) => {
80
80
  if (typeof window > "u") return;
81
81
  let n = /^(sv|lv|dv|v)?(w|h|i|b|min|max)$/.exec(e);
82
82
  if (!n) return;
@@ -89,7 +89,7 @@ var Ue = (e, t) => {
89
89
  case "min": return Math.min(o, s);
90
90
  case "max": return Math.max(o, s);
91
91
  }
92
- }, Ge = (e) => {
92
+ }, We = (e) => {
93
93
  let t = e.parentElement;
94
94
  for (; t;) {
95
95
  let e = getComputedStyle(t).containerType;
@@ -97,17 +97,17 @@ var Ue = (e, t) => {
97
97
  t = t.parentElement;
98
98
  }
99
99
  };
100
- function Ke(e, t, n, r) {
100
+ function Ge(e, t, n, r) {
101
101
  let i = t === "em" || t === "rem" || t === "ex" || t === "ch" || t === "cap" || t === "ic" || t === "lh" || t === "rlh";
102
- if (!w(t) && !i) return Ue(e, t);
102
+ if (!w(t) && !i) return He(e, t);
103
103
  if (t === "%" && n?.parentElement && r) {
104
104
  let t = Number.parseFloat(getComputedStyle(n.parentElement).getPropertyValue(r));
105
105
  return e / 100 * t;
106
106
  }
107
- let a = We(t, n);
107
+ let a = Ue(t, n);
108
108
  if (a !== void 0) return e * a / 100;
109
109
  if (t.startsWith("cq") && n) {
110
- let r = Ge(n);
110
+ let r = We(n);
111
111
  if (!r) return e;
112
112
  let i = r.clientWidth, a = r.clientHeight, o = getComputedStyle(r).writingMode, s = o.startsWith("vertical") || o.startsWith("sideways");
113
113
  return e * (t === "cqw" ? i : t === "cqh" ? a : t === "cqi" ? s ? a : i : t === "cqb" ? s ? i : a : t === "cqmin" ? Math.min(i, a) : Math.max(i, a)) / 100;
@@ -127,25 +127,25 @@ function Ke(e, t, n, r) {
127
127
  let t = Number.parseFloat(s.lineHeight);
128
128
  return e * (Number.isFinite(t) ? t : c * 1.2);
129
129
  }
130
- default: return Ue(e, t);
130
+ default: return He(e, t);
131
131
  }
132
132
  }
133
- var qe = class extends TypeError {
133
+ var Ke = class extends TypeError {
134
134
  property;
135
135
  authoredValue;
136
136
  actual;
137
137
  code = "BROWSER_SCALAR_RESOLUTION";
138
138
  constructor(e, t, n) {
139
- super(`Could not resolve "${b(t)}" for "${e}" to a numeric CSS scalar${n === "" ? "" : ` (computed: "${n}")`}.`), this.property = e, this.authoredValue = t, this.actual = n, this.name = "BrowserScalarResolutionError";
139
+ super(`Could not resolve "${y(t)}" for "${e}" to a numeric CSS scalar${n === "" ? "" : ` (computed: "${n}")`}.`), this.property = e, this.authoredValue = t, this.actual = n, this.name = "BrowserScalarResolutionError";
140
140
  }
141
- }, Je = (e, t, n) => {
142
- let r = () => new qe(n, t, e), i = S(de(e), r);
141
+ }, qe = (e, t, n) => {
142
+ let r = () => new Ke(n, t, e), i = S(de(e), r);
143
143
  if (i.payload.type !== "number") throw r();
144
144
  return Object.freeze({
145
145
  value: i.payload.value,
146
146
  unit: i.payload.unit
147
147
  });
148
- }, Ye = (e) => {
148
+ }, Je = (e) => {
149
149
  if (e.kind !== "call" || e.name !== "var") return;
150
150
  let t = e.args[0];
151
151
  if (t?.kind === "scalar" && t.payload.type === "keyword") return t.payload.value;
@@ -153,7 +153,7 @@ var qe = class extends TypeError {
153
153
  let e = t.items[0];
154
154
  if (e?.kind === "scalar" && e.payload.type === "keyword") return e.payload.value;
155
155
  }
156
- }, Xe = (e, t, n) => {
156
+ }, Ye = (e, t, n) => {
157
157
  if (e.kind === "scalar" && e.payload.type === "number") {
158
158
  let { value: r, unit: i } = e.payload;
159
159
  return w(i) || [
@@ -166,55 +166,55 @@ var qe = class extends TypeError {
166
166
  "lh",
167
167
  "rlh"
168
168
  ].includes(i) ? Object.freeze({
169
- value: Ke(r, i, t, n),
169
+ value: Ge(r, i, t, n),
170
170
  unit: "px"
171
171
  }) : Object.freeze({
172
172
  value: r,
173
173
  unit: i
174
174
  });
175
175
  }
176
- let r = Ye(e);
176
+ let r = Je(e);
177
177
  if (r !== void 0) {
178
178
  let i = getComputedStyle(t).getPropertyValue(r).trim(), a = t.style.getPropertyValue(r).trim();
179
- return Je(i || a, e, n);
179
+ return qe(i || a, e, n);
180
180
  }
181
- let i = n.split(".", 1)[0] ?? n, a = t.style.getPropertyValue(i), o = t.style.getPropertyPriority(i), s = b(e), c = "";
181
+ let i = n.split(".", 1)[0] ?? n, a = t.style.getPropertyValue(i), o = t.style.getPropertyPriority(i), s = y(e), c = "";
182
182
  try {
183
183
  t.style.setProperty(i, s), c = getComputedStyle(t).getPropertyValue(i).trim();
184
184
  } finally {
185
185
  a === "" ? t.style.removeProperty(i) : t.style.setProperty(i, a, o);
186
186
  }
187
- return Je(c, e, n);
187
+ return qe(c, e, n);
188
188
  };
189
- function Ze(e, t, n) {
190
- if (!t.isConnected) return Xe(e, t, n);
191
- let r = Be.get(e);
192
- r === void 0 && (r = /* @__PURE__ */ new WeakMap(), Be.set(e, r));
189
+ function Xe(e, t, n) {
190
+ if (!t.isConnected) return Ye(e, t, n);
191
+ let r = ze.get(e);
192
+ r === void 0 && (r = /* @__PURE__ */ new WeakMap(), ze.set(e, r));
193
193
  let i = r.get(t);
194
194
  i === void 0 && (i = /* @__PURE__ */ new Map(), r.set(t, i));
195
195
  let a = i.get(n);
196
- if (a?.epoch === ze) return a.result;
197
- let o = Xe(e, t, n), s = Object.freeze({
196
+ if (a?.epoch === D) return a.result;
197
+ let o = Ye(e, t, n), s = Object.freeze({
198
198
  result: o,
199
- epoch: ze
199
+ epoch: D
200
200
  });
201
201
  return i.set(n, s), o;
202
202
  }
203
203
  //#endregion
204
204
  //#region src/animation/compile/frame/interp-slot.ts
205
- var Qe = {
205
+ var Ze = {
206
206
  deg: 1,
207
207
  grad: .9,
208
208
  rad: 180 / Math.PI,
209
209
  turn: 360
210
- }, $e = {
210
+ }, Qe = {
211
211
  ms: 1,
212
212
  s: 1e3
213
- }, et = {
213
+ }, $e = {
214
214
  dpi: 1,
215
215
  dpcm: 2.54,
216
216
  dppx: 96
217
- }, D = new Set(/* @__PURE__ */ "px.cm.mm.Q.in.pc.pt.em.ex.ch.cap.ic.rem.lh.rlh.vw.vh.vmin.vmax.vb.vi.svw.svh.svi.svb.svmin.svmax.lvw.lvh.lvi.lvb.lvmin.lvmax.dvw.dvh.dvi.dvb.dvmin.dvmax.cqw.cqh.cqi.cqb.cqmin.cqmax.%".split(".")), tt = new Set([
217
+ }, et = new Set(/* @__PURE__ */ "px.cm.mm.Q.in.pc.pt.em.ex.ch.cap.ic.rem.lh.rlh.vw.vh.vmin.vmax.vb.vi.svw.svh.svi.svb.svmin.svmax.lvw.lvh.lvi.lvb.lvmin.lvmax.dvw.dvh.dvi.dvb.dvmin.dvmax.cqw.cqh.cqi.cqb.cqmin.cqmax.%".split(".")), tt = new Set([
218
218
  "em",
219
219
  "rem",
220
220
  "ex",
@@ -231,7 +231,7 @@ var Qe = {
231
231
  return t?.type === "color" ? t.value : void 0;
232
232
  }, at = (e) => e.kind === "call" && (e.name === "var" || e.name === "calc"), ot = (e, t) => at(e) || at(t) || e.kind === "call" && t.kind === "call" && e.name !== t.name || e.kind !== t.kind && (e.kind === "call" || t.kind === "call"), st = (e, t) => {
233
233
  let n = e.unit, r = t.unit;
234
- return e.value === 0 && n === "" && r !== "" && (n = r), t.value === 0 && r === "" && n !== "" && (r = n), n === r || !D.has(n) || !D.has(r) ? !1 : w(n) || w(r) || tt.has(n) || tt.has(r);
234
+ return e.value === 0 && n === "" && r !== "" && (n = r), t.value === 0 && r === "" && n !== "" && (r = n), n === r || !et.has(n) || !et.has(r) ? !1 : w(n) || w(r) || tt.has(n) || tt.has(r);
235
235
  }, ct = (e, t, n) => ({
236
236
  kind: "computed",
237
237
  from: e,
@@ -248,27 +248,27 @@ var Qe = {
248
248
  t.value,
249
249
  r
250
250
  ];
251
- let a = Qe[r], o = Qe[i];
251
+ let a = Ze[r], o = Ze[i];
252
252
  if (a !== void 0 && o !== void 0) return [
253
253
  e.value * a,
254
254
  t.value * o,
255
255
  "deg"
256
256
  ];
257
- let s = $e[r], c = $e[i];
257
+ let s = Qe[r], c = Qe[i];
258
258
  if (s !== void 0 && c !== void 0) return [
259
259
  e.value * s,
260
260
  t.value * c,
261
261
  "ms"
262
262
  ];
263
- let l = et[r], u = et[i];
263
+ let l = $e[r], u = $e[i];
264
264
  if (l !== void 0 && u !== void 0) return [
265
265
  e.value * l,
266
266
  t.value * u,
267
267
  "dpi"
268
268
  ];
269
- if (D.has(r) && D.has(i)) return [
270
- Ke(e.value, r, n.target, n.property),
271
- Ke(t.value, i, n.target, n.property),
269
+ if (et.has(r) && et.has(i)) return [
270
+ Ge(e.value, r, n.target, n.property),
271
+ Ge(t.value, i, n.target, n.property),
272
272
  "px"
273
273
  ];
274
274
  throw TypeError(`Cannot interpolate incompatible CSS units "${r}" and "${i}" for "${n.property}".`);
@@ -339,9 +339,9 @@ function ft(e, t, n) {
339
339
  n !== void 0 && O(e, n);
340
340
  let r = e.target;
341
341
  if (r === void 0) throw TypeError(`Computed CSS interpolation for "${e.property}" requires a browser target at sample time.`);
342
- let i = Ve(), a = e.cache;
342
+ let i = Be(), a = e.cache;
343
343
  if (a === void 0 || a.epoch !== i || a.target !== r) {
344
- let [t, n, o] = ut(Ze(e.from, r, e.property), Ze(e.to, r, e.property), r, e.property);
344
+ let [t, n, o] = ut(Xe(e.from, r, e.property), Xe(e.to, r, e.property), r, e.property);
345
345
  a = Object.freeze({
346
346
  epoch: i,
347
347
  target: r,
@@ -367,8 +367,8 @@ function pt(e) {
367
367
  if (!t.ok) throw TypeError(`Color serialization failed: ${t.error.code}.`);
368
368
  return t.value;
369
369
  }
370
- case "computed": return e.cache === void 0 ? b(e.from) : `${e.current}${e.unit}`;
371
- case "discrete": return b(e.current);
370
+ case "computed": return e.cache === void 0 ? y(e.from) : `${e.current}${e.unit}`;
371
+ case "discrete": return y(e.current);
372
372
  }
373
373
  }
374
374
  //#endregion
@@ -532,20 +532,20 @@ var yt = {
532
532
  }
533
533
  }))
534
534
  };
535
- }, A = (e) => e.every((e) => e.kind === "call") ? new Set(e.map((e) => e.name)).size === e.length : !1, xt = (e, t) => {
535
+ }, xt = (e) => e.every((e) => e.kind === "call") ? new Set(e.map((e) => e.name)).size === e.length : !1, St = (e, t) => {
536
536
  let n = [...e.map((e) => e.name)];
537
537
  for (let e of t) n.includes(e.name) || n.push(e.name);
538
538
  let r = new Map(e.map((e) => [e.name, e])), i = new Map(t.map((e) => [e.name, e]));
539
539
  return [n.map((e) => r.get(e) ?? bt(i.get(e))), n.map((e) => i.get(e) ?? bt(r.get(e)))];
540
- }, St = (e) => e.kind === "call" && (e.name === "var" || e.name === "calc"), Ct = (e) => e.kind === "list" && e.items.length === 1 ? e.items[0] : void 0, j = (e, t) => t.kind === "list" ? {
540
+ }, Ct = (e) => e.kind === "call" && (e.name === "var" || e.name === "calc"), wt = (e) => e.kind === "list" && e.items.length === 1 ? e.items[0] : void 0, A = (e, t) => t.kind === "list" ? {
541
541
  kind: "list",
542
542
  separator: t.separator,
543
- items: t.items.map((t) => j(e, t))
543
+ items: t.items.map((t) => A(e, t))
544
544
  } : e;
545
- function wt(e, t, n) {
545
+ function Tt(e, t, n) {
546
546
  let r = [], i = (e, t) => {
547
- let a = e, o = t, s = Ct(a), c = Ct(o), l = a.kind === "list" && o.kind === "list" && A(a.items) && A(o.items);
548
- if (s !== void 0 && o.kind !== "list" ? a = s : c !== void 0 && a.kind !== "list" ? o = c : a.kind === "scalar" && o.kind === "list" ? a = j(a, o) : o.kind === "scalar" && a.kind === "list" ? o = j(o, a) : !l && a.kind === "list" && s !== void 0 && o.kind === "list" && (a.separator !== o.separator || a.items.length !== o.items.length) ? a = j(s, o) : !l && o.kind === "list" && c !== void 0 && a.kind === "list" && (o.separator !== a.separator || o.items.length !== a.items.length) && (o = j(c, a)), St(a) || St(o) || a.kind === "call" && o.kind === "call" && a.name !== o.name || a.kind !== o.kind && (a.kind === "call" || o.kind === "call")) {
547
+ let a = e, o = t, s = wt(a), c = wt(o), l = a.kind === "list" && o.kind === "list" && xt(a.items) && xt(o.items);
548
+ if (s !== void 0 && o.kind !== "list" ? a = s : c !== void 0 && a.kind !== "list" ? o = c : a.kind === "scalar" && o.kind === "list" ? a = A(a, o) : o.kind === "scalar" && a.kind === "list" ? o = A(o, a) : !l && a.kind === "list" && s !== void 0 && o.kind === "list" && (a.separator !== o.separator || a.items.length !== o.items.length) ? a = A(s, o) : !l && o.kind === "list" && c !== void 0 && a.kind === "list" && (o.separator !== a.separator || o.items.length !== a.items.length) && (o = A(c, a)), Ct(a) || Ct(o) || a.kind === "call" && o.kind === "call" && a.name !== o.name || a.kind !== o.kind && (a.kind === "call" || o.kind === "call")) {
549
549
  let e = r.length;
550
550
  return r.push(dt(a, o, n)), {
551
551
  kind: "slot",
@@ -571,7 +571,7 @@ function wt(e, t, n) {
571
571
  if (a.kind === "list" && o.kind === "list") {
572
572
  if (a.separator !== o.separator) throw TypeError(`Cannot interpolate CSS lists with different separators for "${n.property}".`);
573
573
  let e = a.items, t = o.items;
574
- if (A(e) && A(t)) [e, t] = xt(e, t);
574
+ if (xt(e) && xt(t)) [e, t] = St(e, t);
575
575
  else if (e.length !== t.length) throw TypeError(`Cannot interpolate CSS lists with different lengths for "${n.property}".`);
576
576
  return {
577
577
  kind: "list",
@@ -586,17 +586,17 @@ function wt(e, t, n) {
586
586
  slots: r
587
587
  };
588
588
  }
589
- var Tt = (e) => e === "comma" ? ", " : e === "slash" ? " / " : " ";
590
- function Et(e) {
589
+ var Et = (e) => e === "comma" ? ", " : e === "slash" ? " / " : " ";
590
+ function Dt(e) {
591
591
  let t = (n) => {
592
592
  if (n.kind === "slot") return pt(e.slots[n.index]);
593
- if (n.kind === "list") return n.items.map(t).join(Tt(n.separator));
593
+ if (n.kind === "list") return n.items.map(t).join(Et(n.separator));
594
594
  let r = n.name === "calc" ? " " : ", ";
595
595
  return `${n.name}(${n.args.map(t).join(r)})`;
596
596
  };
597
597
  return t(e.template);
598
598
  }
599
- function Dt(e, t) {
599
+ function Ot(e, t) {
600
600
  for (let n of t) for (let [t, r] of Object.entries(e)) {
601
601
  if (r === void 0) {
602
602
  n.style.removeProperty(t);
@@ -607,7 +607,7 @@ function Dt(e, t) {
607
607
  }
608
608
  //#endregion
609
609
  //#region src/animation/compile/value/sink.ts
610
- var Ot = (e) => e.template.kind === "slot" && e.slots.length === 1 && e.slots[0]?.kind === "number" && e.slots[0].unit === "", kt = (e, t) => {
610
+ var kt = (e) => e.template.kind === "slot" && e.slots.length === 1 && e.slots[0]?.kind === "number" && e.slots[0].unit === "", At = (e, t) => {
611
611
  let n = t.split("."), r = e;
612
612
  for (let e = 0; e < n.length - 1; e++) {
613
613
  let t = n[e], i = r[t];
@@ -618,10 +618,10 @@ var Ot = (e) => e.template.kind === "slot" && e.slots.length === 1 && e.slots[0]
618
618
  leaf: n.at(-1)
619
619
  };
620
620
  };
621
- function At(e) {
621
+ function jt(e) {
622
622
  let t = {}, n = {}, r = [];
623
623
  for (let [i, a] of Object.entries(e)) {
624
- let { parent: e, leaf: o } = kt(t, i), s = Ot(a), c = s ? a.slots[0].current : Et(a);
624
+ let { parent: e, leaf: o } = At(t, i), s = kt(a), c = s ? a.slots[0].current : Dt(a);
625
625
  e[o] = c, n[i] = c, r.push({
626
626
  key: i,
627
627
  parent: e,
@@ -636,13 +636,13 @@ function At(e) {
636
636
  writers: r
637
637
  };
638
638
  }
639
- function jt(e) {
639
+ function Mt(e) {
640
640
  let t = {};
641
641
  return {
642
642
  root: t,
643
643
  flat: e,
644
644
  writers: Object.keys(e).map((n) => {
645
- let { parent: r, leaf: i } = kt(t, n);
645
+ let { parent: r, leaf: i } = At(t, n);
646
646
  return r[i] = e[n], {
647
647
  key: n,
648
648
  parent: r,
@@ -651,18 +651,18 @@ function jt(e) {
651
651
  })
652
652
  };
653
653
  }
654
- function Mt(e) {
654
+ function Nt(e) {
655
655
  for (let t of e.writers) t.parent[t.leaf] = e.flat[t.key];
656
656
  }
657
- function Nt(e) {
657
+ function Pt(e) {
658
658
  for (let t of e.writers) {
659
- let n = t.numeric ? t.value.slots[0].current : Et(t.value);
659
+ let n = t.numeric ? t.value.slots[0].current : Dt(t.value);
660
660
  t.parent[t.leaf] = n, e.flat[t.key] = n;
661
661
  }
662
662
  }
663
663
  //#endregion
664
664
  //#region src/animation/internal/scroll-phases.ts
665
- var M = {
665
+ var j = {
666
666
  entry: {
667
667
  start: 0,
668
668
  end: .25
@@ -679,17 +679,17 @@ var M = {
679
679
  start: .75,
680
680
  end: 1
681
681
  }
682
- }, Pt = 1e6;
683
- function Ft(e) {
682
+ }, Ft = 1e6;
683
+ function It(e) {
684
684
  return S(se(e), (n) => new t("start", e, `invalid keyframe selector — ${n.map(ve).join("; ")}`, e.trim() === "" ? "EMPTY_PARSE" : void 0));
685
685
  }
686
- var It = (e) => {
686
+ var Lt = (e) => {
687
687
  if (e.kind !== "named") throw new t("start", e, "named phase resolution requires a parsed named keyframe selector", "NAMED_SELECTOR_NO_TIMELINE");
688
- let n = M[e.name];
688
+ let n = j[e.name];
689
689
  if (n === void 0) throw new t("start", e, `no timeline phase is defined for ${JSON.stringify(e.name)}`, "NAMED_SELECTOR_NO_TIMELINE");
690
690
  let r = e.offset ?? 0;
691
691
  return n.start + r * (n.end - n.start);
692
- }, Lt = (e) => {
692
+ }, Rt = (e) => {
693
693
  let t = [], n = [];
694
694
  for (let r of e) r.kind === "number" ? t.push(r) : n.push(r);
695
695
  let r = new Float64Array(t.length), i = new Float64Array(t.length);
@@ -701,7 +701,7 @@ var It = (e) => {
701
701
  to: i,
702
702
  out: new Float64Array(t.length)
703
703
  };
704
- }, Rt = (e, n) => {
704
+ }, zt = (e, n) => {
705
705
  if (typeof n == "function") return { fn: n };
706
706
  if (typeof n == "object") {
707
707
  if (typeof n.fn == "function") return n;
@@ -714,7 +714,7 @@ var It = (e) => {
714
714
  } catch {
715
715
  throw new t(e, n, "unknown timing function — pass a callable TimingFunction, a typed Easing, a registry name, or a cubic-bezier() literal", "UNKNOWN_TIMING_FN");
716
716
  }
717
- let i = _(n);
717
+ let i = u(n);
718
718
  return i ? {
719
719
  fn: r,
720
720
  css: i
@@ -722,14 +722,14 @@ var It = (e) => {
722
722
  };
723
723
  //#endregion
724
724
  //#region src/animation/compile/frame/compiler.ts
725
- function zt(e, t, n) {
725
+ function Bt(e, t, n) {
726
726
  let [r, i] = [e.start, t.start];
727
727
  return {
728
728
  start: r.kind === "percent" ? r.value * n : NaN,
729
729
  stop: i.kind === "percent" ? i.value * n : NaN
730
730
  };
731
731
  }
732
- var Bt = class {
732
+ var Vt = class {
733
733
  _options;
734
734
  templateFrames = [];
735
735
  parsedVars = [];
@@ -747,12 +747,12 @@ var Bt = class {
747
747
  }
748
748
  addFrame(e, t, n, r, i) {
749
749
  typeof e == "number" && (e = `${e}%`);
750
- let a = typeof e == "string" ? Ft(e) : e, o = {
750
+ let a = typeof e == "string" ? It(e) : e, o = {
751
751
  id: this.frameId,
752
752
  start: a,
753
753
  vars: t,
754
754
  transform: n,
755
- timingFunction: r == null ? this.options.timingFunction : Rt("timingFunction", r),
755
+ timingFunction: r == null ? this.options.timingFunction : zt("timingFunction", r),
756
756
  composition: i
757
757
  };
758
758
  this.templateFrames.push(o), this.frameId += 1;
@@ -761,7 +761,7 @@ var Bt = class {
761
761
  let n = this.templateFrames[e], r = this.templateFrames[t], i = {
762
762
  start: e,
763
763
  stop: t
764
- }, a = zt(n, r, this.options.duration), o = n.transform;
764
+ }, a = Bt(n, r, this.options.duration), o = n.transform;
765
765
  if (o == null) {
766
766
  let t = mt(e, this.templateFrames, (e) => e.transform != null);
767
767
  o = (t === void 0 ? void 0 : this.templateFrames[t].transform) ?? T;
@@ -771,7 +771,7 @@ var Bt = class {
771
771
  let t = mt(e, this.templateFrames, (e) => e.timingFunction != null);
772
772
  s = (t === void 0 ? void 0 : this.templateFrames[t].timingFunction) ?? this.options.timingFunction;
773
773
  }
774
- let c = e * Pt + t, l = r.composition;
774
+ let c = e * Ft + t, l = r.composition;
775
775
  return {
776
776
  id: c,
777
777
  ixs: i,
@@ -814,8 +814,8 @@ var Bt = class {
814
814
  this._frames.forEach((e, n) => this.reconcileVars(n, t)), this._frames.sort((e, t) => e.time.start === t.time.start ? e.time.stop - t.time.stop : e.time.start - t.time.start), this._frames = this._frames.filter((e) => e.interpVars != null && Object.keys(e.interpVars).length > 0), this._frames.forEach((e) => this.finalizeFrameVars(e));
815
815
  }
816
816
  finalizeFrameVars(e) {
817
- let t = At(e.interpVars);
818
- e._sink = t, e.flatVars = t.flat, e.vars = t.root, e.allInterpVars = Object.values(e.interpVars).flatMap((e) => e.slots), e._numericPlan = Lt(e.allInterpVars);
817
+ let t = jt(e.interpVars);
818
+ e._sink = t, e.flatVars = t.flat, e.vars = t.root, e.allInterpVars = Object.values(e.interpVars).flatMap((e) => e.slots), e._numericPlan = Rt(e.allInterpVars);
819
819
  }
820
820
  renormalizeColors() {
821
821
  for (let e of this._frames) {
@@ -824,32 +824,32 @@ var Bt = class {
824
824
  }
825
825
  }
826
826
  compileValue(e, t, n) {
827
- return wt(t, n, {
827
+ return Tt(t, n, {
828
828
  colorSpace: this.options.colorSpace,
829
829
  property: e,
830
830
  ...this.options.hueMethod === void 0 ? {} : { hueMethod: this.options.hueMethod },
831
831
  ...this._targets[0] === void 0 ? {} : { target: this._targets[0] }
832
832
  });
833
833
  }
834
- }, Vt = /* @__PURE__ */ new WeakMap(), N = (e) => {
835
- let t = Vt.get(e);
834
+ }, Ht = /* @__PURE__ */ new WeakMap(), M = (e) => {
835
+ let t = Ht.get(e);
836
836
  if (t === void 0) throw TypeError("Animation compiler state is not initialized.");
837
837
  return t;
838
- }, Ht = (e, t) => {
839
- Vt.set(e, t);
838
+ }, Ut = (e, t) => {
839
+ Ht.set(e, t);
840
840
  };
841
841
  //#endregion
842
842
  //#region src/animation/engine/play-lifecycle/events.ts
843
- function Ut(e, t) {
843
+ function Wt(e, t) {
844
844
  if (!(typeof AnimationEvent > "u")) for (let n of e.targets) typeof n?.dispatchEvent == "function" && n.dispatchEvent(new AnimationEvent(t, {
845
845
  animationName: e.name ?? "",
846
846
  elapsedTime: e._playback.t / 1e3
847
847
  }));
848
848
  }
849
- function Wt(e, t) {
849
+ function Gt(e, t) {
850
850
  return e === "reverse" || e === "alternate-reverse" && t % 2 == 0 || e === "alternate" && t % 2 == 1;
851
851
  }
852
- function Gt(e) {
852
+ function Kt(e) {
853
853
  if (e._playback.startTime !== void 0) {
854
854
  let t = e._playback.t, n = e.options.duration - 2 * t;
855
855
  e._playback.startTime -= n;
@@ -858,36 +858,36 @@ function Gt(e) {
858
858
  }
859
859
  //#endregion
860
860
  //#region src/animation/engine/play-lifecycle/transport.ts
861
- function Kt(e) {
862
- e._playback.started && (e._playback.paused = !0);
863
- }
864
861
  function qt(e) {
865
- if (e._playback.started && e._playback.paused) if (e._playback.paused = !1, e._playback._waAnimations.length > 0) for (let t of e._playback._waAnimations) t.play();
866
- else e.playback.running || e.playback.loop(e._playback._boundFrame);
862
+ e._playback.started && (e._playback.paused = !0, e._playback.anchorTick = void 0);
867
863
  }
868
864
  function Jt(e) {
869
- s(e._playback, () => Kt(e), () => qt(e));
865
+ if (e._playback.started && e._playback.paused) if (e._playback.paused = !1, e._playback._waAnimations.length > 0) for (let t of e._playback._waAnimations) t.play();
866
+ else e.playback.running || e.playback.loop(e._playback._boundFrame);
870
867
  }
871
868
  function Yt(e) {
872
- en(e), e.playback.stop(), P(e), $t(e);
869
+ l(e._playback, () => qt(e), () => Jt(e));
873
870
  }
874
871
  function Xt(e) {
875
- return p(e._playback);
872
+ tn(e), e.playback.stop(), N(e), en(e);
876
873
  }
877
874
  function Zt(e) {
875
+ return m(e._playback);
876
+ }
877
+ function Qt(e) {
878
878
  return e._playback.reversed ? e.options.duration - e._playback.t : e._playback.t;
879
879
  }
880
- function P(e) {
880
+ function N(e) {
881
881
  e._playback.done = !1, e._playback.started = !1, e._playback.paused = !1, e._playback.reversed = !1, e._playback.iteration = 0, e._playback.startTime = void 0, e._playback.carriedStartTime = void 0, e._playback.anchorTick = void 0, e._playback.startOwed = !1, e._playback.pausedTime = 0, e._playback.t = 0;
882
882
  }
883
- function Qt(e) {
884
- en(e), e._playback.started && e.frames.length > 0 && e.fillBackwards(), P(e);
885
- }
886
883
  function $t(e) {
884
+ tn(e), e._playback.started && e.frames.length > 0 && e.fillBackwards(), N(e);
885
+ }
886
+ function en(e) {
887
887
  let t = e._playback.resolvePromise;
888
888
  e._playback.resolvePromise = null, t?.();
889
889
  }
890
- function en(e) {
890
+ function tn(e) {
891
891
  let t = e._playback._waAnimations;
892
892
  if (t.length !== 0) {
893
893
  for (let e of t) try {
@@ -898,7 +898,7 @@ function en(e) {
898
898
  }
899
899
  //#endregion
900
900
  //#region src/animation/waapi/eligibility.ts
901
- var tn = new Set([
901
+ var nn = new Set([
902
902
  "em",
903
903
  "rem",
904
904
  "ex",
@@ -907,11 +907,11 @@ var tn = new Set([
907
907
  "ic",
908
908
  "lh",
909
909
  "rlh"
910
- ]), nn = (e) => typeof e == "string" && (w(e) || tn.has(e)), rn = (e) => {
910
+ ]), rn = (e) => typeof e == "string" && (w(e) || nn.has(e)), an = (e) => {
911
911
  if (e.kind === "call") return e.name;
912
912
  if (!(e.kind !== "scalar" || e.payload.type !== "number")) return e.payload.unit;
913
- }, an = new Set(["offset-distance"]), on = (e) => an.has(e) || an.has(e.split(".").pop() ?? e), sn = () => typeof globalThis.webkitConvertPointFromNodeToPage == "function";
914
- function F(e) {
913
+ }, on = new Set(["offset-distance"]), sn = (e) => on.has(e) || on.has(e.split(".").pop() ?? e), cn = () => typeof globalThis.webkitConvertPointFromNodeToPage == "function";
914
+ function P(e) {
915
915
  if (!e.targets || e.targets.length === 0) return {
916
916
  eligible: !1,
917
917
  reason: "no DOM targets"
@@ -936,14 +936,14 @@ function F(e) {
936
936
  eligible: !1,
937
937
  reason: "easing has no faithful CSS twin (would run bare linear on the compositor)"
938
938
  };
939
- if (n?.css?.startsWith("linear(") && sn()) return {
939
+ if (n?.css?.startsWith("linear(") && cn()) return {
940
940
  eligible: !1,
941
941
  reason: "WebKit refuses HW-accel for linear() easing — the spring twin stays on the rAF path (CE-1.0)"
942
942
  };
943
943
  for (let e of t) for (let [t, n] of Object.entries(e.interpVars)) {
944
- let e = on(t);
944
+ let e = sn(t);
945
945
  for (let t of n.slots) {
946
- let n = t.kind === "number" ? t.unit : t.kind === "computed" ? rn(t.from) : void 0, r = t.kind === "number" ? t.unit : t.kind === "computed" ? rn(t.to) : void 0, i = e && t.kind === "number" && n === "%", a = e && t.kind === "number" && r === "%", o = nn(n) && !i, s = nn(r) && !a;
946
+ let n = t.kind === "number" ? t.unit : t.kind === "computed" ? an(t.from) : void 0, r = t.kind === "number" ? t.unit : t.kind === "computed" ? an(t.to) : void 0, i = e && t.kind === "number" && n === "%", a = e && t.kind === "number" && r === "%", o = rn(n) && !i, s = rn(r) && !a;
947
947
  if (o || s) return {
948
948
  eligible: !1,
949
949
  reason: `layout-dependent unit (${String(n ?? r)}) would freeze to px under WAAPI`
@@ -956,11 +956,11 @@ function F(e) {
956
956
  }
957
957
  return { eligible: !0 };
958
958
  }
959
- var cn = .005, ln = /^(steps\(|step-start$|step-end$)/, un = (e) => {
959
+ var ln = .005, un = /^(steps\(|step-start$|step-end$)/, dn = (e) => {
960
960
  let t = /* @__PURE__ */ new Map(), n = e.frames;
961
961
  for (let e of n) {
962
962
  let n = e.timingFunction.css;
963
- if (n !== void 0 && ln.test(n.trim())) return !1;
963
+ if (n !== void 0 && un.test(n.trim())) return !1;
964
964
  for (let [n, r] of Object.entries(e.interpVars)) {
965
965
  if (r.slots.length === 0 || r.slots.some((e) => e.kind !== "number")) return !1;
966
966
  let e = JSON.stringify(r.template), i = t.get(n);
@@ -969,7 +969,7 @@ var cn = .005, ln = /^(steps\(|step-start$|step-end$)/, un = (e) => {
969
969
  }
970
970
  }
971
971
  return !0;
972
- }, I = (e, t) => {
972
+ }, F = (e, t) => {
973
973
  let n = /* @__PURE__ */ new Map();
974
974
  e.interpFrames(t, !1);
975
975
  let r = e.frames, i = /* @__PURE__ */ new Map();
@@ -979,10 +979,10 @@ var cn = .005, ln = /^(steps\(|step-start$|step-end$)/, un = (e) => {
979
979
  i.kind === "number" && Number.isFinite(i.current) && n.set(`${e}\u0000${r}`, i.current);
980
980
  }
981
981
  return n;
982
- }, dn = 64, fn = (e, t, n) => {
982
+ }, fn = 64, pn = (e, t, n) => {
983
983
  let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = n - t;
984
- for (let n = 0; n <= dn; n++) {
985
- let o = I(e, t + a * n / dn);
984
+ for (let n = 0; n <= fn; n++) {
985
+ let o = F(e, t + a * n / fn);
986
986
  for (let [e, t] of o) {
987
987
  let n = r.get(e), a = i.get(e);
988
988
  (n === void 0 || t < n) && r.set(e, t), (a === void 0 || t > a) && i.set(e, t);
@@ -991,10 +991,10 @@ var cn = .005, ln = /^(steps\(|step-start$|step-end$)/, un = (e) => {
991
991
  let o = /* @__PURE__ */ new Map();
992
992
  for (let [e, t] of r) o.set(e, (i.get(e) ?? t) - t);
993
993
  return o;
994
- }, pn = (e, t, n, r, i, a) => {
994
+ }, mn = (e, t, n, r, i, a) => {
995
995
  let o = r - t, s = 0;
996
996
  for (let r of [.25, .75]) {
997
- let c = I(e, t + o * r);
997
+ let c = F(e, t + o * r);
998
998
  for (let [e, t] of c) {
999
999
  let o = n.get(e), c = i.get(e);
1000
1000
  if (o === void 0 || c === void 0) continue;
@@ -1006,21 +1006,21 @@ var cn = .005, ln = /^(steps\(|step-start$|step-end$)/, un = (e) => {
1006
1006
  }
1007
1007
  return s;
1008
1008
  };
1009
- function mn(e, t, n) {
1009
+ function hn(e, t, n) {
1010
1010
  let r = /* @__PURE__ */ new Set();
1011
1011
  if (n <= 0) return r;
1012
1012
  for (let n = 1; n < t.length; n++) {
1013
1013
  let i = t[n - 1], a = t[n];
1014
1014
  if (a - i <= 0) continue;
1015
- let o = fn(e, i, a), s = I(e, i), c = I(e, a), l = (t, n, r, i) => ({
1015
+ let o = pn(e, i, a), s = F(e, i), c = F(e, a), l = (t, n, r, i) => ({
1016
1016
  a: t,
1017
1017
  sampleA: n,
1018
1018
  b: r,
1019
1019
  sampleB: i,
1020
- error: pn(e, t, n, r, i, o)
1020
+ error: mn(e, t, n, r, i, o)
1021
1021
  }), u = [l(i, s, a, c)], d = 16;
1022
1022
  for (; d > 0;) {
1023
- let t = -1, n = cn;
1023
+ let t = -1, n = ln;
1024
1024
  for (let e = 0; e < u.length; e++) u[e].error > n && (n = u[e].error, t = e);
1025
1025
  if (t === -1) break;
1026
1026
  let i = u[t], a = (i.a + i.b) / 2;
@@ -1028,7 +1028,7 @@ function mn(e, t, n) {
1028
1028
  u.splice(t, 1);
1029
1029
  continue;
1030
1030
  }
1031
- let o = I(e, a);
1031
+ let o = F(e, a);
1032
1032
  r.add(a), d--, u.splice(t, 1, l(i.a, i.sampleA, a, o), l(a, o, i.b, i.sampleB));
1033
1033
  }
1034
1034
  }
@@ -1036,53 +1036,53 @@ function mn(e, t, n) {
1036
1036
  }
1037
1037
  //#endregion
1038
1038
  //#region src/animation/waapi/emission.ts
1039
- function hn(e) {
1040
- let t = e.options.duration, r = [], i = e.frames.length > 1, a = i && un(e), o = i && !a ? e.frames[0]?.timingFunction.css : void 0;
1041
- if (i && !a && o === void 0) throw TypeError("A multi-segment structural WAAPI animation requires a faithful CSS easing.");
1039
+ function gn(e) {
1040
+ let t = e.options.duration, n = [], r = e.frames.length > 1, a = r && dn(e), o = r && !a ? e.frames[0]?.timingFunction.css : void 0;
1041
+ if (r && !a && o === void 0) throw TypeError("A multi-segment structural WAAPI animation requires a faithful CSS easing.");
1042
1042
  let s = /* @__PURE__ */ new Set();
1043
1043
  for (let t of e.frames) s.add(t.time.start), s.add(t.time.stop);
1044
1044
  let c = [...s].sort((e, t) => e - t), l = new Set(c);
1045
- if (a) for (let n of mn(e, c, t)) l.add(n);
1045
+ if (a) for (let n of hn(e, c, t)) l.add(n);
1046
1046
  let u = c.at(-1);
1047
- for (let i of [...l].sort((e, t) => e - t)) {
1048
- let a = e.interpFrames(i, !1);
1047
+ for (let r of [...l].sort((e, t) => e - t)) {
1048
+ let a = e.interpFrames(r, !1);
1049
1049
  if (Object.keys(a).length === 0) continue;
1050
1050
  let s = {
1051
- offset: n(i / t, 0, 1),
1051
+ offset: i(r / t, 0, 1),
1052
1052
  ...a
1053
1053
  };
1054
- o !== void 0 && i !== u && (s.easing = o), r.push(s);
1054
+ o !== void 0 && r !== u && (s.easing = o), n.push(s);
1055
1055
  }
1056
- return r;
1056
+ return n;
1057
1057
  }
1058
1058
  //#endregion
1059
1059
  //#region src/animation/waapi/options.ts
1060
- var gn = {
1060
+ var _n = {
1061
1061
  normal: "normal",
1062
1062
  reverse: "reverse",
1063
1063
  alternate: "alternate",
1064
1064
  "alternate-reverse": "alternate-reverse"
1065
- }, _n = {
1065
+ }, vn = {
1066
1066
  none: "none",
1067
1067
  forwards: "forwards",
1068
1068
  backwards: "backwards",
1069
1069
  both: "both"
1070
- }, vn = {
1070
+ }, yn = {
1071
1071
  replace: "replace",
1072
1072
  add: "add",
1073
1073
  accumulate: "accumulate"
1074
- }, yn = (e) => {
1074
+ }, bn = (e) => {
1075
1075
  for (let t of e.frames) {
1076
1076
  let e = t.composition;
1077
- if (e != null && e !== "replace") return vn[e] ?? "replace";
1077
+ if (e != null && e !== "replace") return yn[e] ?? "replace";
1078
1078
  }
1079
1079
  return "replace";
1080
1080
  };
1081
- function bn(e) {
1082
- let t = e.options, n = gn[t.direction], r = _n[t.fillMode];
1081
+ function xn(e) {
1082
+ let t = e.options, n = _n[t.direction], r = vn[t.fillMode];
1083
1083
  if (n == null) throw TypeError(`Unrecognised animation direction "${t.direction}".`);
1084
1084
  if (r == null) throw TypeError(`Unrecognised animation fill mode "${t.fillMode}".`);
1085
- let i = e.frames[0]?.timingFunction ?? e.options.timingFunction, a = e.frames.length > 1 ? "linear" : i.css ?? "linear", o = yn(e), s = {
1085
+ let i = e.frames[0]?.timingFunction ?? e.options.timingFunction, a = e.frames.length > 1 ? "linear" : i.css ?? "linear", o = bn(e), s = {
1086
1086
  duration: t.duration,
1087
1087
  delay: t.delay,
1088
1088
  iterations: t.iterationCount === Infinity ? Infinity : t.iterationCount,
@@ -1094,42 +1094,42 @@ function bn(e) {
1094
1094
  }
1095
1095
  //#endregion
1096
1096
  //#region src/animation/waapi/delegation.ts
1097
- async function xn(e, t) {
1098
- let n = hn(e), r = bn(e), i = e.targets.map((e) => e.animate(n, r));
1099
- e._playback._waAnimations = i;
1100
- let a = () => {
1101
- if (!e.paused) {
1102
- for (let t of i) if (t.playState === "paused") {
1103
- e.pause();
1097
+ async function Sn(t, n) {
1098
+ let r = gn(t), i = xn(t), a = t.targets.map((e) => e.animate(r, i));
1099
+ t._playback._waAnimations = a;
1100
+ let o = () => {
1101
+ if (!t.paused) {
1102
+ for (let e of a) if (e.playState === "paused") {
1103
+ t.pause();
1104
1104
  break;
1105
1105
  }
1106
1106
  }
1107
- if (e.paused) for (let e of i) e.pause();
1108
- return !e.done;
1107
+ if (t.paused) for (let e of a) e.pause();
1108
+ return !t.done;
1109
1109
  };
1110
- e.playback.loop((n) => e.done ? !1 : g(e.options.respectReducedMotion, () => !0, () => !1) ? (t.snapToReducedMotion(), !1) : (e.advanceTo(n), a()));
1110
+ t.playback.loop((r) => t.done ? !1 : e(t.options.respectReducedMotion, () => !0, () => !1) ? (n.snapToReducedMotion(), !1) : (t.advanceTo(r), o()));
1111
1111
  try {
1112
- await Promise.all(i.map((e) => e.finished));
1113
- for (let t of i) try {
1114
- e.restPosition === "final" && typeof t.commitStyles == "function" && t.commitStyles(), t.cancel();
1112
+ await Promise.all(a.map((e) => e.finished));
1113
+ for (let e of a) try {
1114
+ t.restPosition === "final" && typeof e.commitStyles == "function" && e.commitStyles(), e.cancel();
1115
1115
  } catch {}
1116
1116
  } catch {} finally {
1117
- e.playback.stop(), e._playback._waAnimations = [];
1117
+ t.playback.stop(), t._playback._waAnimations = [];
1118
1118
  }
1119
1119
  }
1120
- function Sn(e, t, n) {
1121
- let r = n?.eligibility ?? F(e);
1120
+ function Cn(e, t, n) {
1121
+ let r = n?.eligibility ?? P(e);
1122
1122
  if (!r.eligible) return {
1123
1123
  attached: !1,
1124
1124
  reason: r.reason
1125
1125
  };
1126
- let i = n?.timeline ?? m(t);
1126
+ let i = n?.timeline ?? h(t);
1127
1127
  if (i == null) return {
1128
1128
  attached: !1,
1129
1129
  reason: "native scroll/view timeline unavailable (feature absent)"
1130
1130
  };
1131
- let a = hn(e), o = {
1132
- ...bn(e),
1131
+ let a = gn(e), o = {
1132
+ ...xn(e),
1133
1133
  timeline: i
1134
1134
  }, s = e.targets.map((e) => e.animate(a, o));
1135
1135
  return e._playback._waAnimations = s, {
@@ -1139,58 +1139,58 @@ function Sn(e, t, n) {
1139
1139
  }
1140
1140
  //#endregion
1141
1141
  //#region src/animation/engine/play-lifecycle/strategies.ts
1142
- function Cn(e) {
1142
+ function wn(e) {
1143
1143
  return new Promise((t) => {
1144
1144
  e._playback.resolvePromise = t, e.playback.loop(e._playback._boundFrame);
1145
1145
  });
1146
1146
  }
1147
- async function wn(e) {
1148
- await xn(e, { snapToReducedMotion: () => En(e) }), P(e);
1149
- }
1150
1147
  async function Tn(e) {
1151
- e._playback.started = !0, e.dispatchAnimationEvent("animationstart"), e.fillForwards(), e._playback.iteration = 0, e._playback.done = !0, e.dispatchAnimationEvent("animationend"), P(e);
1148
+ await Sn(e, { snapToReducedMotion: () => Dn(e) }), N(e);
1149
+ }
1150
+ async function En(e) {
1151
+ e._playback.started = !0, e.dispatchAnimationEvent("animationstart"), e.fillForwards(), e._playback.iteration = 0, e._playback.done = !0, e.dispatchAnimationEvent("animationend"), N(e);
1152
1152
  }
1153
- function En(e) {
1154
- en(e), e.fillForwards(), e._playback.iteration = 0, e._playback.done = !0, e.dispatchAnimationEvent("animationend"), P(e), $t(e);
1153
+ function Dn(e) {
1154
+ tn(e), e.fillForwards(), e._playback.iteration = 0, e._playback.done = !0, e.dispatchAnimationEvent("animationend"), N(e), en(e);
1155
1155
  }
1156
- async function Dn(e) {
1157
- if (e.managed) throw Error("Animation.play() called on a managed animation — the AnimationGroup owns the rAF loop. Call group.play() instead.");
1158
- return e.assertNoUnresolvedNamedSelector(), d(e._playback, () => g(e.options.respectReducedMotion, () => (e.waapiIneligibleReason = void 0, Tn(e)), () => {
1159
- if (e.options.useWAAPI) {
1160
- let t = F(e);
1161
- return t.eligible ? (e.waapiIneligibleReason = void 0, wn(e)) : (e.waapiIneligibleReason = t.reason, Cn(e));
1156
+ async function On(t) {
1157
+ if (t.managed) throw Error("Animation.play() called on a managed animation — the AnimationGroup owns the rAF loop. Call group.play() instead.");
1158
+ return t.assertNoUnresolvedNamedSelector(), f(t._playback, () => e(t.options.respectReducedMotion, () => (t.waapiIneligibleReason = void 0, En(t)), () => {
1159
+ if (t.options.useWAAPI) {
1160
+ let e = P(t);
1161
+ return e.eligible ? (t.waapiIneligibleReason = void 0, Tn(t)) : (t.waapiIneligibleReason = e.reason, wn(t));
1162
1162
  }
1163
- return e.waapiIneligibleReason = void 0, Cn(e);
1163
+ return t.waapiIneligibleReason = void 0, wn(t);
1164
1164
  }));
1165
1165
  }
1166
1166
  //#endregion
1167
1167
  //#region src/animation/engine/play-lifecycle/frame.ts
1168
- var On = (e) => e.options.delay > 0 && e._playback.iteration === 0;
1169
- function kn(e) {
1170
- e._playback.reversed = !1, Wt(e.options.direction, e._playback.iteration) && Gt(e), (e.options.fillMode === "backwards" || e.options.fillMode === "both") && e.fillBackwards(), e._playback.started = !0;
1171
- }
1168
+ var kn = (e) => e.options.delay > 0 && e._playback.iteration === 0;
1172
1169
  function An(e) {
1170
+ e._playback.reversed = !1, Gt(e.options.direction, e._playback.iteration) && Kt(e), (e.options.fillMode === "backwards" || e.options.fillMode === "both") && e.fillBackwards(), e._playback.started = !0;
1171
+ }
1172
+ function jn(e) {
1173
1173
  e.paintRest(), e._playback.startTime = void 0, e._playback.iteration >= e.options.iterationCount - 1 ? (e._playback.done = !0, e._playback.iteration = 0, e.dispatchAnimationEvent("animationend")) : (e._playback.iteration += 1, e.dispatchAnimationEvent("animationiteration"));
1174
1174
  }
1175
- function jn(e, t) {
1175
+ function Mn(e, t) {
1176
1176
  if (e._playback.startTime === void 0) {
1177
- let n = On(e) ? e.options.delay : 0;
1178
- return kn(e), Mn(e, t, n, !1);
1177
+ let n = kn(e) ? e.options.delay : 0;
1178
+ return An(e), Nn(e, t, n, !1);
1179
1179
  }
1180
- return Pn(e, t, !1);
1180
+ return Fn(e, t, !1);
1181
1181
  }
1182
- function Mn(e, t, n, r) {
1182
+ function Nn(e, t, n, r) {
1183
1183
  let i = e._playback.carriedStartTime;
1184
- return e._playback.carriedStartTime = void 0, e._playback.startTime = i ?? t + n, i === void 0 && (e._playback.pausedTime = 0), e._playback.anchorTick = i === void 0 ? t : void 0, e._playback.startOwed = n > 0, e._playback.startOwed || e.dispatchAnimationEvent("animationstart"), Pn(e, t, r);
1184
+ return e._playback.carriedStartTime = void 0, e._playback.startTime = i ?? t + n, i === void 0 && (e._playback.pausedTime = 0), e._playback.anchorTick = i === void 0 ? t : void 0, e._playback.startOwed = n > 0, e._playback.startOwed || e.dispatchAnimationEvent("animationstart"), Fn(e, t, r);
1185
1185
  }
1186
- function Nn(e, t) {
1186
+ function Pn(e, t) {
1187
1187
  let n = e._playback.anchorTick;
1188
1188
  if (n === void 0 || t <= n) return;
1189
1189
  e._playback.anchorTick = void 0;
1190
- let r = t - n - v;
1190
+ let r = t - n - g;
1191
1191
  r > 0 && !e._playback.paused && (e._playback.startTime += r);
1192
1192
  }
1193
- function Pn(e, t, n) {
1193
+ function Fn(e, t, n) {
1194
1194
  if (e._playback.paused && e._playback.pausedTime === 0) return e._playback.pausedTime = t, e._playback.t;
1195
1195
  if (e._playback.pausedTime > 0 && !e._playback.paused) {
1196
1196
  let n = t - e._playback.pausedTime;
@@ -1203,19 +1203,19 @@ function Pn(e, t, n) {
1203
1203
  if (e._playback.t >= e.options.duration && n) e._playback.t = e.options.duration;
1204
1204
  else if (e._playback.t >= e.options.duration) {
1205
1205
  let n = e._playback.startTime + e.options.duration;
1206
- if (An(e), e._playback.t = e.options.duration, !e._playback.done) return e._playback.carriedStartTime = n, kn(e), Mn(e, t, 0, !0);
1206
+ if (jn(e), e._playback.t = e.options.duration, !e._playback.done) return e._playback.carriedStartTime = n, An(e), Nn(e, t, 0, !0);
1207
1207
  }
1208
1208
  return e._playback.t;
1209
1209
  }
1210
- function Fn(e, t) {
1211
- return g(e.options.respectReducedMotion, () => !0, () => !1) ? (En(e), !1) : (Nn(e, t), In(e, e.advanceTo(t)));
1210
+ function In(t, n) {
1211
+ return e(t.options.respectReducedMotion, () => !0, () => !1) ? (Dn(t), !1) : (Pn(t, n), Ln(t, t.advanceTo(n)));
1212
1212
  }
1213
- function In(e, t) {
1214
- return e._playback.paused ? !1 : e._playback.done ? (P(e), $t(e), !1) : (e.interpFrames(t, !0, e._playback._interpOut), !0);
1213
+ function Ln(e, t) {
1214
+ return e._playback.paused ? !1 : e._playback.done ? (N(e), en(e), !1) : (e.interpFrames(t, !0, e._playback._interpOut), !0);
1215
1215
  }
1216
1216
  //#endregion
1217
1217
  //#region src/animation/engine/playback-state.ts
1218
- var Ln = class {
1218
+ var Rn = class {
1219
1219
  resolvePromise = null;
1220
1220
  _playingPromise = null;
1221
1221
  _waAnimations = [];
@@ -1238,50 +1238,50 @@ var Ln = class {
1238
1238
  };
1239
1239
  //#endregion
1240
1240
  //#region src/animation/engine/composition.ts
1241
- function Rn(e) {
1241
+ function zn(e) {
1242
1242
  for (let t of e) if (t.composition != null && t.composition !== "replace") return !0;
1243
1243
  return !1;
1244
1244
  }
1245
- function zn(e, t, n) {
1245
+ function Bn(e, t, n) {
1246
1246
  e.clear(), t.clear(), n?.clear();
1247
1247
  }
1248
- function Bn(e, t) {
1248
+ function Vn(e, t) {
1249
1249
  let n = e.composition;
1250
1250
  if (!(n == null || n === "replace")) for (let [r, i] of Object.entries(e.interpVars)) {
1251
1251
  if (i.slots.length === 0) continue;
1252
1252
  if (!i.slots.every((e) => e.kind === "number")) {
1253
- Wn(r, n, t);
1253
+ Gn(r, n, t);
1254
1254
  continue;
1255
1255
  }
1256
1256
  let a = i.slots, o = t.compositionBase.get(r);
1257
- o === void 0 && (o = Hn(t.target, r, a.length, t.compositionPose), t.compositionBase.set(r, o));
1257
+ o === void 0 && (o = Un(t.target, r, a.length, t.compositionPose), t.compositionBase.set(r, o));
1258
1258
  let s = n === "accumulate" ? t.iteration : 0;
1259
1259
  for (let n = 0; n < a.length; n++) {
1260
1260
  let i = a[n], c = o[n] ?? 0;
1261
- s > 0 ? i.current = c + s * (Un(e, r, n, t.compositionBase) - c) + i.current : i.current = c + i.current;
1261
+ s > 0 ? i.current = c + s * (Wn(e, r, n, t.compositionBase) - c) + i.current : i.current = c + i.current;
1262
1262
  }
1263
1263
  }
1264
1264
  }
1265
- var Vn = (e) => e.kind === "call" ? e.args.flatMap(Vn) : e.kind === "list" ? e.items.flatMap(Vn) : e.payload.type === "number" ? [e.payload.value] : [];
1266
- function Hn(e, t, n, r) {
1265
+ var Hn = (e) => e.kind === "call" ? e.args.flatMap(Hn) : e.kind === "list" ? e.items.flatMap(Hn) : e.payload.type === "number" ? [e.payload.value] : [];
1266
+ function Un(e, t, n, r) {
1267
1267
  let i = Array(n).fill(0);
1268
1268
  if (e == null || e.style == null) return i;
1269
1269
  let a = t.split(".").pop() ?? t, o = r?.get(a);
1270
1270
  if (o !== void 0) return o.slice(0, n);
1271
1271
  let s = e.style.getPropertyValue(a) || e.style[a] || "";
1272
1272
  if (!s) return i;
1273
- let c = xe(() => ce(s), (e) => Vn(e), []);
1273
+ let c = xe(() => ce(s), (e) => Hn(e), []);
1274
1274
  for (let e = 0; e < n && e < c.length; e++) {
1275
1275
  let t = c[e];
1276
1276
  Number.isFinite(t) && (i[e] = t);
1277
1277
  }
1278
1278
  return r?.set(a, i.slice()), i;
1279
1279
  }
1280
- function Un(e, t, n, r) {
1280
+ function Wn(e, t, n, r) {
1281
1281
  let i = e.interpVars[t]?.slots[n];
1282
1282
  return i?.kind === "number" ? i.to : r.get(t)?.[n] ?? 0;
1283
1283
  }
1284
- function Wn(e, t, n) {
1284
+ function Gn(e, t, n) {
1285
1285
  n.compositionFallbackSeen.has(e) || (n.compositionFallbackSeen.add(e), n.diagnostics.push({
1286
1286
  code: "COMPOSITION_FALLBACK",
1287
1287
  message: `animation-composition: ${t} on a non-numeric leaf "${e}" has no faithful numeric add — composited as \`replace\` (the lerped value), never a wrong sum`,
@@ -1290,59 +1290,59 @@ function Wn(e, t, n) {
1290
1290
  }
1291
1291
  //#endregion
1292
1292
  //#region src/animation/engine/interpolate.ts
1293
- function Gn(e) {
1294
- return e.options.fillMode === "forwards" || e.options.fillMode === "both" ? "final" : "initial";
1295
- }
1296
1293
  function Kn(e) {
1297
- Gn(e) === "final" ? L(e, e.options.duration, !0) : L(e, 0, !0);
1294
+ return e.options.fillMode === "forwards" || e.options.fillMode === "both" ? "final" : "initial";
1298
1295
  }
1299
1296
  function qn(e) {
1297
+ Kn(e) === "final" ? I(e, e.options.duration, !0) : I(e, 0, !0);
1298
+ }
1299
+ function Jn(e) {
1300
1300
  let n = e.templateFrames.find((e) => e.start.kind === "named");
1301
1301
  if (n != null) {
1302
1302
  let e = n.start.kind === "named" ? `${n.start.name}${n.start.offset === void 0 ? "" : ` ${n.start.offset * 100}%`}` : "";
1303
1303
  throw new t("start", e, `named scroll-range selector ("${e}") requires a ScrollTimeline or ManualTimeline — call bindTimeline(timeline) before play() to resolve the named phase to a numeric position`, "NAMED_SELECTOR_NO_TIMELINE");
1304
1304
  }
1305
1305
  }
1306
- function Jn(e, t, n = !1) {
1307
- qn(e);
1306
+ function Yn(e, t, n = !1) {
1307
+ Jn(e);
1308
1308
  let r = e._playback.reversed;
1309
1309
  e._playback.reversed = !1;
1310
- let i = L(e, Se(t, 0, 1) * e.options.duration, n);
1310
+ let i = I(e, Se(t, 0, 1) * e.options.duration, n);
1311
1311
  return e._playback.reversed = r, i;
1312
1312
  }
1313
- function L(t, n, r = !1, i) {
1314
- let a = n < 0;
1315
- a && (n = 0);
1316
- let o = t.options.fillMode === "backwards" || t.options.fillMode === "both";
1317
- n = t._playback.reversed ? t.options.duration - n : n;
1318
- let s = t.frames, c = s.length, l = a && !o ? -1 : e(s, n, (e) => e.time.start, (e) => e.time.stop);
1319
- if (l === -1) return i === void 0 ? {} : (Yn(t, i), i);
1313
+ function I(e, t, r = !1, i) {
1314
+ let a = t < 0;
1315
+ a && (t = 0);
1316
+ let o = e.options.fillMode === "backwards" || e.options.fillMode === "both";
1317
+ t = e._playback.reversed ? e.options.duration - t : t;
1318
+ let s = e.frames, c = s.length, l = a && !o ? -1 : n(s, t, (e) => e.time.start, (e) => e.time.stop);
1319
+ if (l === -1) return i === void 0 ? {} : (Xn(e, i), i);
1320
1320
  let u = l, d = l;
1321
1321
  for (let e = l - 1; e >= 0; e--) {
1322
- let t = s[e];
1323
- if (n < t.time.start || n > t.time.stop) break;
1322
+ let n = s[e];
1323
+ if (t < n.time.start || t > n.time.stop) break;
1324
1324
  u = e;
1325
1325
  }
1326
1326
  for (let e = l + 1; e < c; e++) {
1327
- let t = s[e];
1328
- if (n < t.time.start || n > t.time.stop) break;
1327
+ let n = s[e];
1328
+ if (t < n.time.start || t > n.time.stop) break;
1329
1329
  d = e;
1330
1330
  }
1331
- for (let e = u; e <= d; e++) Xn(t, s[e], n, r);
1331
+ for (let n = u; n <= d; n++) Zn(e, s[n], t, r);
1332
1332
  if (u === d) {
1333
- let e = s[l].flatVars;
1334
- return i === void 0 ? e : (Yn(t, i), Object.assign(i, e), i);
1333
+ let t = s[l].flatVars;
1334
+ return i === void 0 ? t : (Xn(e, i), Object.assign(i, t), i);
1335
1335
  }
1336
1336
  let f = i ?? {};
1337
- i !== void 0 && Yn(t, i);
1337
+ i !== void 0 && Xn(e, i);
1338
1338
  for (let e = u; e <= d; e++) Object.assign(f, s[e].flatVars);
1339
1339
  return f;
1340
1340
  }
1341
- function Yn(e, t) {
1341
+ function Xn(e, t) {
1342
1342
  let n = e._stableKeys;
1343
1343
  for (let e = 0; e < n.length; e++) t[n[e]] = void 0;
1344
1344
  }
1345
- function Xn(e, t, n, r) {
1345
+ function Zn(e, t, n, r) {
1346
1346
  let { start: i, stop: a } = t.time, o = i === a ? 1 : we(n, i, a, 0, 1), s = t.timingFunction.fn(o), c = e.targets[0], l = t._numericPlan;
1347
1347
  if (l !== void 0 && l.numeric.length > 0) {
1348
1348
  let { numeric: e, from: t, to: n, out: r } = l;
@@ -1350,10 +1350,10 @@ function Xn(e, t, n, r) {
1350
1350
  for (let t = 0; t < e.length; t++) e[t].current = r[t];
1351
1351
  for (let e of l.residual) O(e, c), ft(e, s);
1352
1352
  } else for (let e of t.allInterpVars) O(e, c), ft(e, s);
1353
- r && e._hasComposition && t.composition != null && Zn(e, t), Nt(t._sink), r && (e.unflatten ? t.transform(t.vars, n) : t.transform(t.flatVars, n));
1353
+ r && e._hasComposition && t.composition != null && Qn(e, t), Pt(t._sink), r && (e.unflatten ? t.transform(t.vars, n) : t.transform(t.flatVars, n));
1354
1354
  }
1355
- function Zn(e, t) {
1356
- Bn(t, {
1355
+ function Qn(e, t) {
1356
+ Vn(t, {
1357
1357
  iteration: e._playback.iteration,
1358
1358
  target: e.targets[0],
1359
1359
  compositionBase: e._compositionBase,
@@ -1364,7 +1364,7 @@ function Zn(e, t) {
1364
1364
  }
1365
1365
  //#endregion
1366
1366
  //#region src/animation/engine/options.ts
1367
- var Qn = (e) => {
1367
+ var $n = (e) => {
1368
1368
  let t = ae(de(e), void 0);
1369
1369
  if (t?.payload.type !== "number") return;
1370
1370
  let { value: n, unit: r } = t.payload;
@@ -1373,48 +1373,48 @@ var Qn = (e) => {
1373
1373
  if (r === "s") return n * 1e3;
1374
1374
  }
1375
1375
  };
1376
- function $n(e) {
1377
- return e == null ? E.timingFunction : Rt("timingFunction", e);
1378
- }
1379
1376
  function er(e) {
1380
- return e == null ? E.iterationCount : e === "infinite" || e === "∞" || e === "Infinity" || e === Infinity ? Infinity : c("iterationCount", e, (e) => {
1377
+ return e == null ? E.timingFunction : zt("timingFunction", e);
1378
+ }
1379
+ function tr(e) {
1380
+ return e == null ? E.iterationCount : e === "infinite" || e === "∞" || e === "Infinity" || e === Infinity ? Infinity : r("iterationCount", e, (e) => {
1381
1381
  let t = typeof e == "string" ? Number.parseFloat(e.trim()) : e;
1382
1382
  return typeof t == "number" && !Number.isNaN(t) && t >= 0 ? t : void 0;
1383
1383
  }, "expected a non-negative count, \"infinite\", or Infinity");
1384
1384
  }
1385
- function tr(e) {
1386
- if (e != null) return c("duration", e, (e) => {
1387
- let t = typeof e == "string" ? Qn(e) : e;
1385
+ function nr(e) {
1386
+ if (e != null) return r("duration", e, (e) => {
1387
+ let t = typeof e == "string" ? $n(e) : e;
1388
1388
  return typeof t == "number" && isFinite(t) && t > 0 ? t : void 0;
1389
1389
  }, "expected a positive duration in milliseconds or a CSS time string");
1390
1390
  }
1391
- function nr(e) {
1392
- return e == null ? E.delay : c("delay", e, (e) => {
1393
- let t = typeof e == "string" ? Qn(e) : e;
1391
+ function rr(e) {
1392
+ return e == null ? E.delay : r("delay", e, (e) => {
1393
+ let t = typeof e == "string" ? $n(e) : e;
1394
1394
  return typeof t == "number" && isFinite(t) ? t : void 0;
1395
1395
  }, "expected a delay in milliseconds or a CSS time string");
1396
1396
  }
1397
- function rr(e) {
1397
+ function ir(e) {
1398
1398
  if (e == null) return E.direction;
1399
1399
  if (!Pe.includes(e)) throw new t("direction", e, `expected one of: ${Pe.join(", ")}`);
1400
1400
  return e;
1401
1401
  }
1402
- function ir(e) {
1402
+ function ar(e) {
1403
1403
  if (e == null) return E.fillMode;
1404
1404
  if (!Fe.includes(e)) throw new t("fillMode", e, `expected one of: ${Fe.join(", ")}`);
1405
1405
  return e;
1406
1406
  }
1407
- function ar(e, n) {
1407
+ function or(e, n) {
1408
1408
  if (n == null) return E[e];
1409
1409
  if (typeof n != "boolean") throw new t(e, n, "expected a boolean");
1410
1410
  return n;
1411
1411
  }
1412
- function or(e) {
1412
+ function sr(e) {
1413
1413
  if (e == null) return E.colorSpace;
1414
1414
  if (!Ie.includes(e)) throw new t("colorSpace", e, `expected one of: ${Ie.join(", ")}`);
1415
1415
  return e;
1416
1416
  }
1417
- function sr(e) {
1417
+ function cr(e) {
1418
1418
  if (e != null) {
1419
1419
  if (!Le.includes(e)) throw new t("hueMethod", e, `expected one of: ${Le.join(", ")}`);
1420
1420
  return e;
@@ -1422,71 +1422,71 @@ function sr(e) {
1422
1422
  }
1423
1423
  //#endregion
1424
1424
  //#region src/animation/engine/option-setters.ts
1425
- function cr(e, t) {
1426
- let n = e.options.timingFunction, r = $n(t);
1425
+ function lr(e, t) {
1426
+ let n = e.options.timingFunction, r = er(t);
1427
1427
  if (e.options.timingFunction = r, r !== n) {
1428
1428
  for (let t of e.templateFrames) t.timingFunction === n && (t.timingFunction = r);
1429
1429
  for (let t of e.frames) t.timingFunction === n && (t.timingFunction = r);
1430
1430
  }
1431
1431
  }
1432
- function lr(e, t) {
1433
- e.options.iterationCount = er(t);
1432
+ function ur(e, t) {
1433
+ e.options.iterationCount = tr(t);
1434
1434
  }
1435
- function ur(e, t, n) {
1435
+ function dr(e, t, n) {
1436
1436
  n === void 0 ? delete e[t] : e[t] = n;
1437
1437
  }
1438
- function dr(e, t, n) {
1439
- let r = tr(t);
1438
+ function fr(e, t, n) {
1439
+ let r = nr(t);
1440
1440
  if (r === void 0) return;
1441
1441
  let i = r / e.options.duration;
1442
1442
  for (let t = 0; t < e.frames.length; t++) {
1443
1443
  let n = e.frames[t];
1444
1444
  n.time.start *= i, n.time.stop *= i;
1445
1445
  }
1446
- e.options.duration = r, ur(e.options, "durationUnit", n);
1447
- }
1448
- function fr(e, t, n) {
1449
- e.options.delay = nr(t), ur(e.options, "delayUnit", t == null ? void 0 : n);
1446
+ e.options.duration = r, dr(e.options, "durationUnit", n);
1450
1447
  }
1451
- function pr(e, t) {
1452
- e.options.direction = rr(t), e._playback.reversed = Wt(e.options.direction, e._playback.iteration);
1448
+ function pr(e, t, n) {
1449
+ e.options.delay = rr(t), dr(e.options, "delayUnit", t == null ? void 0 : n);
1453
1450
  }
1454
1451
  function mr(e, t) {
1455
- e.options.fillMode = ir(t);
1452
+ e.options.direction = ir(t), e._playback.reversed = Gt(e.options.direction, e._playback.iteration);
1456
1453
  }
1457
1454
  function hr(e, t) {
1458
- e.options.useWAAPI = ar("useWAAPI", t);
1455
+ e.options.fillMode = ar(t);
1459
1456
  }
1460
1457
  function gr(e, t) {
1461
- e.options.respectReducedMotion = ar("respectReducedMotion", t);
1458
+ e.options.useWAAPI = or("useWAAPI", t);
1462
1459
  }
1463
1460
  function _r(e, t) {
1464
- e.options.colorSpace = or(t), e.frames.length > 0 && N(e).renormalizeColors();
1461
+ e.options.respectReducedMotion = or("respectReducedMotion", t);
1465
1462
  }
1466
1463
  function vr(e, t) {
1467
- let n = sr(t);
1468
- n !== void 0 && (e.options.hueMethod = n, e.frames.length > 0 && N(e).renormalizeColors());
1464
+ e.options.colorSpace = sr(t), e.frames.length > 0 && M(e).renormalizeColors();
1469
1465
  }
1470
1466
  function yr(e, t) {
1471
- t !== void 0 && (e.options.composite = t);
1467
+ let n = cr(t);
1468
+ n !== void 0 && (e.options.hueMethod = n, e.frames.length > 0 && M(e).renormalizeColors());
1472
1469
  }
1473
1470
  function br(e, t) {
1474
- cr(e, t.timingFunction), dr(e, t.duration, t.durationUnit), lr(e, t.iterationCount), fr(e, t.delay, t.delayUnit), pr(e, t.direction), mr(e, t.fillMode), hr(e, t.useWAAPI), gr(e, t.respectReducedMotion), _r(e, t.colorSpace), vr(e, t.hueMethod), yr(e, t.composite);
1471
+ t !== void 0 && (e.options.composite = t);
1472
+ }
1473
+ function xr(e, t) {
1474
+ lr(e, t.timingFunction), fr(e, t.duration, t.durationUnit), ur(e, t.iterationCount), pr(e, t.delay, t.delayUnit), mr(e, t.direction), hr(e, t.fillMode), gr(e, t.useWAAPI), _r(e, t.respectReducedMotion), vr(e, t.colorSpace), yr(e, t.hueMethod), br(e, t.composite);
1475
1475
  }
1476
1476
  //#endregion
1477
1477
  //#region src/animation/engine/compile-bridge.ts
1478
- function xr(e) {
1479
- N(e).parse(e.targets), Cr(e), Sr(e);
1480
- }
1481
1478
  function Sr(e) {
1482
- e._hasComposition = Rn(e.frames), zn(e._compositionBase, e._compositionFallbackSeen, e._compositionPose);
1479
+ M(e).parse(e.targets), wr(e), Cr(e);
1483
1480
  }
1484
1481
  function Cr(e) {
1482
+ e._hasComposition = zn(e.frames), Bn(e._compositionBase, e._compositionFallbackSeen, e._compositionPose);
1483
+ }
1484
+ function wr(e) {
1485
1485
  let t = /* @__PURE__ */ new Set();
1486
1486
  for (let n of e.frames) for (let e in n.flatVars) t.add(e);
1487
1487
  e._stableKeys = [...t];
1488
1488
  }
1489
- function wr(e) {
1489
+ function Tr(e) {
1490
1490
  let t;
1491
1491
  for (let n of e.frames) {
1492
1492
  let r = n.transform;
@@ -1501,9 +1501,9 @@ function wr(e) {
1501
1501
  own: t
1502
1502
  };
1503
1503
  }
1504
- function Tr(e, t) {
1505
- let n = wr(e), r = wr(t).declared, i = N(t);
1506
- Ht(e, i), e.options = i.options;
1504
+ function Er(e, t) {
1505
+ let n = Tr(e), r = Tr(t).declared, i = M(t);
1506
+ Ut(e, i), e.options = i.options;
1507
1507
  let a = r === void 0 ? n.own : void 0;
1508
1508
  if (a !== void 0) {
1509
1509
  for (let t of e.templateFrames) t.transform = a;
@@ -1512,32 +1512,32 @@ function Tr(e, t) {
1512
1512
  (a === void 0 || n.declared === void 0) && (e.unflatten = t.unflatten);
1513
1513
  let o = e.targets[0], s = e.frames;
1514
1514
  for (let e of s) for (let t of Object.values(e.interpVars)) for (let e of t.slots) O(e, o);
1515
- Cr(e), Sr(e);
1515
+ wr(e), Cr(e);
1516
1516
  }
1517
1517
  //#endregion
1518
1518
  //#region src/animation/resolve/env.ts
1519
- var Er = () => {
1519
+ var Dr = () => {
1520
1520
  let e = typeof globalThis < "u" && typeof globalThis.CSS?.supports == "function", t = typeof globalThis < "u" && typeof globalThis.matchMedia == "function";
1521
1521
  return {
1522
1522
  supports: e ? (e) => globalThis.CSS.supports(e) : () => !1,
1523
1523
  matchMedia: t ? (e) => globalThis.matchMedia(e) : () => ({ matches: !1 })
1524
1524
  };
1525
- }, Dr = (e, t, n) => {
1525
+ }, Or = (e, t, n) => {
1526
1526
  let r = {
1527
1527
  functions: e,
1528
1528
  env: {
1529
- ...Er(),
1529
+ ...Dr(),
1530
1530
  ...t
1531
1531
  },
1532
1532
  seen: /* @__PURE__ */ new Set(),
1533
1533
  depth: 0
1534
1534
  };
1535
1535
  return n !== void 0 && (r.diagnostics = n), r;
1536
- }, R = Symbol("kf.resolve.drop"), Or = (e, t) => {
1536
+ }, L = Symbol("kf.resolve.drop"), kr = (e, t) => {
1537
1537
  if (t.syntax === void 0) return e;
1538
- let n = ke(b(e), t.syntax);
1539
- return n.ok ? n.value : t.default ?? R;
1540
- }, kr = (e) => {
1538
+ let n = ke(y(e), t.syntax);
1539
+ return n.ok ? n.value : t.default ?? L;
1540
+ }, Ar = (e) => {
1541
1541
  if (e.kind !== "call" || e.name !== "var") return;
1542
1542
  let t = e.args[0];
1543
1543
  if (t?.kind === "scalar" && t.payload.type === "keyword") return t.payload.value;
@@ -1545,37 +1545,37 @@ var Er = () => {
1545
1545
  let e = t.items[0];
1546
1546
  if (e?.kind === "scalar" && e.payload.type === "keyword") return e.payload.value;
1547
1547
  }
1548
- }, Ar = (e, t) => Object.freeze({
1548
+ }, jr = (e, t) => Object.freeze({
1549
1549
  kind: "call",
1550
1550
  name: e.name,
1551
1551
  args: Object.freeze(t)
1552
- }), jr = (e, t) => Object.freeze({
1552
+ }), Mr = (e, t) => Object.freeze({
1553
1553
  kind: "list",
1554
1554
  separator: e.separator,
1555
1555
  items: Object.freeze(t)
1556
- }), Mr = (e, t) => {
1557
- let n = kr(e);
1556
+ }), Nr = (e, t) => {
1557
+ let n = Ar(e);
1558
1558
  if (n !== void 0) return t.get(n) ?? e;
1559
1559
  if (e.kind === "scalar") return e;
1560
- let r = e.kind === "call" ? e.args : e.items, i = r.map((e) => Mr(e, t));
1561
- return i.every((e, t) => e === r[t]) ? e : e.kind === "call" ? Ar(e, i) : jr(e, i);
1562
- }, Nr = (e, t, n) => {
1563
- if (t.seen.has(e.name)) return R;
1560
+ let r = e.kind === "call" ? e.args : e.items, i = r.map((e) => Nr(e, t));
1561
+ return i.every((e, t) => e === r[t]) ? e : e.kind === "call" ? jr(e, i) : Mr(e, i);
1562
+ }, Pr = (e, t, n) => {
1563
+ if (t.seen.has(e.name)) return L;
1564
1564
  let r = t.functions.get(e.name);
1565
- if (r?.result === void 0) return R;
1565
+ if (r?.result === void 0) return L;
1566
1566
  let i = r.parameters ?? [];
1567
- if (e.args.length > i.length) return R;
1567
+ if (e.args.length > i.length) return L;
1568
1568
  let a = /* @__PURE__ */ new Map();
1569
1569
  for (let n = 0; n < i.length; n++) {
1570
- let r = i[n], o = e.args[n], s = o === void 0 ? r.default ?? R : Or(o, r);
1571
- if (s === R) return t.diagnostics?.push({
1570
+ let r = i[n], o = e.args[n], s = o === void 0 ? r.default ?? L : kr(o, r);
1571
+ if (s === L) return t.diagnostics?.push({
1572
1572
  code: "CUSTOM_FN_ARG_DROP",
1573
1573
  property: r.name,
1574
1574
  message: `--fn() argument for ${r.name} did not satisfy ${r.syntax ?? "its required value"} and has no default.`
1575
- }), R;
1575
+ }), L;
1576
1576
  a.set(r.name, s);
1577
1577
  }
1578
- let o = Mr(r.result, a);
1578
+ let o = Nr(r.result, a);
1579
1579
  t.seen.add(e.name);
1580
1580
  try {
1581
1581
  return n(o, {
@@ -1585,29 +1585,29 @@ var Er = () => {
1585
1585
  } finally {
1586
1586
  t.seen.delete(e.name);
1587
1587
  }
1588
- }, z = (e, t) => e.kind === "scalar" && e.payload.type === "keyword" && e.payload.value.toLowerCase() === t, Pr = (e) => {
1588
+ }, R = (e, t) => e.kind === "scalar" && e.payload.type === "keyword" && e.payload.value.toLowerCase() === t, Fr = (e) => {
1589
1589
  if (e.length !== 0) return e.length === 1 ? e[0] : Object.freeze({
1590
1590
  kind: "list",
1591
1591
  separator: "space",
1592
1592
  items: Object.freeze([...e])
1593
1593
  });
1594
- }, Fr = (e) => {
1594
+ }, Ir = (e) => {
1595
1595
  let t = [[]];
1596
- for (let n of e.items) z(n, ";") ? t.push([]) : t.at(-1).push(n);
1596
+ for (let n of e.items) R(n, ";") ? t.push([]) : t.at(-1).push(n);
1597
1597
  let n = [];
1598
1598
  for (let e of t) {
1599
- let t = e.findIndex((e) => z(e, ":"));
1599
+ let t = e.findIndex((e) => R(e, ":"));
1600
1600
  if (t < 0) continue;
1601
- let r = Pr(e.slice(0, t)), i = Pr(e.slice(t + 1));
1601
+ let r = Fr(e.slice(0, t)), i = Fr(e.slice(t + 1));
1602
1602
  r === void 0 || i === void 0 || n.push(Object.freeze({
1603
1603
  condition: r,
1604
1604
  consequent: i,
1605
- fallback: z(r, "else")
1605
+ fallback: R(r, "else")
1606
1606
  }));
1607
1607
  }
1608
1608
  return Object.freeze(n);
1609
- }, Ir = (e) => {
1610
- if (e.args.length === 1 && e.args[0]?.kind === "list") return Fr(e.args[0]);
1609
+ }, Lr = (e) => {
1610
+ if (e.args.length === 1 && e.args[0]?.kind === "list") return Ir(e.args[0]);
1611
1611
  let t = e.args[0], n = e.args[1];
1612
1612
  if (t === void 0 || n === void 0) return [];
1613
1613
  let r = [Object.freeze({
@@ -1626,109 +1626,109 @@ var Er = () => {
1626
1626
  consequent: i,
1627
1627
  fallback: !0
1628
1628
  })), Object.freeze(r);
1629
- }, Lr = (e) => e.args.map(b).join(", "), Rr = (e, t) => {
1629
+ }, Rr = (e) => e.args.map(y).join(", "), zr = (e, t) => {
1630
1630
  let n = e.args[0];
1631
1631
  if (n === void 0) return !1;
1632
1632
  if (n.kind === "scalar" && n.payload.type === "keyword") return t(n.payload.value) !== void 0;
1633
1633
  if (n.kind !== "list") return !1;
1634
- let r = n.items.findIndex((e) => z(e, ":")), i = n.items[0];
1634
+ let r = n.items.findIndex((e) => R(e, ":")), i = n.items[0];
1635
1635
  if (i?.kind !== "scalar" || i.payload.type !== "keyword") return !1;
1636
1636
  let a = t(i.payload.value);
1637
1637
  if (a === void 0) return !1;
1638
1638
  if (r < 0) return !0;
1639
- let o = Pr(n.items.slice(r + 1));
1639
+ let o = Fr(n.items.slice(r + 1));
1640
1640
  if (o === void 0) return !1;
1641
1641
  let s = (e) => e.trim().replace(/\s+/g, " ");
1642
- return s(a) === s(b(o));
1643
- }, zr = (e, t) => {
1644
- if (z(e, "else")) return !0;
1642
+ return s(a) === s(y(o));
1643
+ }, Br = (e, t) => {
1644
+ if (R(e, "else")) return !0;
1645
1645
  if (e.kind !== "call") return !1;
1646
- if (e.name === "supports") return t.env.supports?.(Lr(e)) ?? !1;
1647
- if (e.name === "media") return t.env.matchMedia?.(Lr(e))?.matches ?? !1;
1646
+ if (e.name === "supports") return t.env.supports?.(Rr(e)) ?? !1;
1647
+ if (e.name === "media") return t.env.matchMedia?.(Rr(e))?.matches ?? !1;
1648
1648
  if (e.name === "style") {
1649
1649
  let n = t.env.customProps;
1650
- return n === void 0 ? void 0 : Rr(e, n);
1650
+ return n === void 0 ? void 0 : zr(e, n);
1651
1651
  }
1652
1652
  return !1;
1653
- }, Br = (e, t, n) => {
1654
- let r = Ir(e);
1655
- if (r.length === 0) return R;
1653
+ }, Vr = (e, t, n) => {
1654
+ let r = Lr(e);
1655
+ if (r.length === 0) return L;
1656
1656
  for (let i of r) {
1657
- let r = i.fallback ? !0 : zr(i.condition, t);
1657
+ let r = i.fallback ? !0 : Br(i.condition, t);
1658
1658
  if (r === void 0) return e;
1659
1659
  if (r) return n(i.consequent, t);
1660
1660
  }
1661
- return R;
1662
- }, Vr = (e) => e.name === "if" && Ir(e).some((e) => e.condition.kind === "call" && e.condition.name === "style"), Hr = 32, Ur = (e) => Object.freeze({
1661
+ return L;
1662
+ }, Hr = (e) => e.name === "if" && Lr(e).some((e) => e.condition.kind === "call" && e.condition.name === "style"), Ur = 32, Wr = (e) => Object.freeze({
1663
1663
  kind: "scalar",
1664
1664
  payload: Object.freeze({
1665
1665
  type: "number",
1666
1666
  value: e,
1667
1667
  unit: ""
1668
1668
  })
1669
- }), Wr = (e, t) => Object.freeze({
1669
+ }), Gr = (e, t) => Object.freeze({
1670
1670
  kind: "call",
1671
1671
  name: e.name,
1672
1672
  args: Object.freeze(t)
1673
- }), Gr = (e, t) => Object.freeze({
1673
+ }), Kr = (e, t) => Object.freeze({
1674
1674
  kind: "list",
1675
1675
  separator: e.separator,
1676
1676
  items: Object.freeze(t)
1677
- }), Kr = (e, t) => {
1677
+ }), qr = (e, t) => {
1678
1678
  let n = [], r = !1;
1679
1679
  for (let i of e) {
1680
- let e = B(i, {
1680
+ let e = z(i, {
1681
1681
  ...t,
1682
1682
  depth: t.depth + 1
1683
1683
  });
1684
- if (e === R) {
1684
+ if (e === L) {
1685
1685
  r = !0;
1686
1686
  continue;
1687
1687
  }
1688
1688
  e !== i && (r = !0), n.push(e);
1689
1689
  }
1690
1690
  return r ? Object.freeze(n) : e;
1691
- }, B = (e, t) => {
1692
- if (t.depth > Hr) return R;
1691
+ }, z = (e, t) => {
1692
+ if (t.depth > Ur) return L;
1693
1693
  if (e.kind === "scalar") return e;
1694
1694
  if (e.kind === "list") {
1695
- let n = Kr(e.items, t);
1696
- return n === R ? R : n === e.items ? e : Gr(e, n);
1695
+ let n = qr(e.items, t);
1696
+ return n === L ? L : n === e.items ? e : Kr(e, n);
1697
1697
  }
1698
- if (e.name === "if") return Br(e, {
1698
+ if (e.name === "if") return Vr(e, {
1699
1699
  ...t,
1700
1700
  depth: t.depth + 1
1701
- }, B);
1701
+ }, z);
1702
1702
  if (e.name === "sibling-index") {
1703
1703
  let n = t.env.siblingIndex;
1704
- return n === void 0 ? e : Ur(n());
1704
+ return n === void 0 ? e : Wr(n());
1705
1705
  }
1706
1706
  if (e.name === "sibling-count") {
1707
1707
  let n = t.env.siblingCount;
1708
- return n === void 0 ? e : Ur(n());
1708
+ return n === void 0 ? e : Wr(n());
1709
1709
  }
1710
- if (e.name.startsWith("--") && t.functions.has(e.name)) return Nr(e, t, B);
1711
- let n = Kr(e.args, t);
1712
- return n === R ? R : n === e.args ? e : Wr(e, n);
1713
- }, qr = (e, t) => B(e, t), Jr = (e) => {
1710
+ if (e.name.startsWith("--") && t.functions.has(e.name)) return Pr(e, t, z);
1711
+ let n = qr(e.args, t);
1712
+ return n === L ? L : n === e.args ? e : Gr(e, n);
1713
+ }, Jr = (e, t) => z(e, t), Yr = (e) => {
1714
1714
  if (typeof e != "object" || !e || !("kind" in e)) return !1;
1715
1715
  let t = e;
1716
- return t.kind === "scalar" ? !1 : t.kind === "list" ? t.items.some(Jr) : t.name === "if" || t.name === "spring" || t.name === "sibling-index" || t.name === "sibling-count" || t.name.startsWith("--") ? !0 : t.args.some(Jr);
1717
- }, V = (e) => {
1716
+ return t.kind === "scalar" ? !1 : t.kind === "list" ? t.items.some(Yr) : t.name === "if" || t.name === "spring" || t.name === "sibling-index" || t.name === "sibling-count" || t.name.startsWith("--") ? !0 : t.args.some(Yr);
1717
+ }, B = (e) => {
1718
1718
  if (typeof e != "object" || !e || !("kind" in e)) return !1;
1719
1719
  let t = e;
1720
- return t.kind === "scalar" ? !1 : t.kind === "list" ? t.items.some(V) : t.name === "sibling-index" || t.name === "sibling-count" || Vr(t) ? !0 : t.args.some(V);
1721
- }, H = {
1720
+ return t.kind === "scalar" ? !1 : t.kind === "list" ? t.items.some(B) : t.name === "sibling-index" || t.name === "sibling-count" || Hr(t) ? !0 : t.args.some(B);
1721
+ }, V = {
1722
1722
  mass: 1,
1723
1723
  stiffness: 100,
1724
1724
  damping: 10,
1725
1725
  velocity: 0
1726
- }, Yr = (e) => {
1726
+ }, Xr = (e) => {
1727
1727
  let t = (t, n) => {
1728
1728
  let r = e[t];
1729
1729
  return typeof r == "number" && Number.isFinite(r) ? r : n;
1730
- }, n = t(0, H.mass), r = t(1, H.stiffness), i = t(2, H.damping), a = t(3, H.velocity);
1731
- return n > 0 || (n = H.mass), r > 0 || (r = H.stiffness), i >= 0 || (i = H.damping), {
1730
+ }, n = t(0, V.mass), r = t(1, V.stiffness), i = t(2, V.damping), a = t(3, V.velocity);
1731
+ return n > 0 || (n = V.mass), r > 0 || (r = V.stiffness), i >= 0 || (i = V.damping), {
1732
1732
  response: 2 * Math.PI * Math.sqrt(n / r),
1733
1733
  dampingFraction: i / (2 * Math.sqrt(r * n)),
1734
1734
  initialVelocity: a
@@ -1736,27 +1736,27 @@ var Er = () => {
1736
1736
  };
1737
1737
  //#endregion
1738
1738
  //#region src/animation/resolve/element-resolve.ts
1739
- function Xr(e) {
1739
+ function Zr(e) {
1740
1740
  let t = e.templateFrames, n = !1;
1741
1741
  for (let e of t) {
1742
1742
  let t = e.vars;
1743
- for (let e in t) if (V(t[e])) {
1743
+ for (let e in t) if (B(t[e])) {
1744
1744
  n = !0;
1745
1745
  break;
1746
1746
  }
1747
1747
  if (n) break;
1748
1748
  }
1749
1749
  if (!n) return !1;
1750
- let r = $r(e);
1750
+ let r = ei(e);
1751
1751
  if (r === void 0) return !1;
1752
- let i = Dr(/* @__PURE__ */ new Map(), r), a = !1;
1752
+ let i = Or(/* @__PURE__ */ new Map(), r), a = !1;
1753
1753
  for (let e of t) {
1754
1754
  let t = e.vars;
1755
1755
  for (let e in t) {
1756
1756
  let n = t[e];
1757
- if (!Qr(n) || !V(n)) continue;
1758
- let r = qr(n, i);
1759
- if (r === R) {
1757
+ if (!$r(n) || !B(n)) continue;
1758
+ let r = Jr(n, i);
1759
+ if (r === L) {
1760
1760
  delete t[e], a = !0;
1761
1761
  continue;
1762
1762
  }
@@ -1765,13 +1765,13 @@ function Xr(e) {
1765
1765
  }
1766
1766
  return a ? (e.parse(), !0) : !1;
1767
1767
  }
1768
- function Zr(e) {
1769
- if (Xr(e)) return;
1768
+ function Qr(e) {
1769
+ if (Zr(e)) return;
1770
1770
  let t = e.targets[0], n = e.frames;
1771
1771
  for (let e of n) for (let n of Object.values(e.interpVars)) for (let e of n.slots) O(e, t);
1772
1772
  }
1773
- var Qr = (e) => typeof e == "object" && !!e && "kind" in e && (e.kind === "scalar" || e.kind === "call" || e.kind === "list");
1774
- function $r(e) {
1773
+ var $r = (e) => typeof e == "object" && !!e && "kind" in e && (e.kind === "scalar" || e.kind === "call" || e.kind === "list");
1774
+ function ei(e) {
1775
1775
  let t = e.targets[0];
1776
1776
  if (t == null) return;
1777
1777
  let n = { customProps: (e) => {
@@ -1782,13 +1782,13 @@ function $r(e) {
1782
1782
  }
1783
1783
  //#endregion
1784
1784
  //#region src/animation/internal/animation-id.ts
1785
- var U = (e) => typeof e == "string" ? e : e.name ?? String(e.id), ei = 0, ti = class {
1786
- id = ei++;
1785
+ var H = (e) => typeof e == "string" ? e : e.name ?? String(e.id), ti = 0, ni = class {
1786
+ id = ti++;
1787
1787
  name;
1788
1788
  superKey;
1789
1789
  targets;
1790
1790
  options;
1791
- playback = new a();
1791
+ playback = new _();
1792
1792
  _playback;
1793
1793
  get startTime() {
1794
1794
  return this._playback.startTime;
@@ -1851,85 +1851,85 @@ var U = (e) => typeof e == "string" ? e : e.name ?? String(e.id), ei = 0, ti = c
1851
1851
  get flatKeys() {
1852
1852
  return this._stableKeys;
1853
1853
  }
1854
- _defaultTransform = (e) => Dt(e, this.targets);
1854
+ _defaultTransform = (e) => Ot(e, this.targets);
1855
1855
  usesDefaultRenderer(e) {
1856
1856
  return e === this._defaultTransform;
1857
1857
  }
1858
1858
  dispatchAnimationEvent(e) {
1859
- Ut(this, e);
1859
+ Wt(this, e);
1860
1860
  }
1861
1861
  constructor(e, t, n, r) {
1862
- this.options = {}, Ht(this, new Bt(this.options)), this._playback = new Ln(this._frame.bind(this)), this._ctorOptions = e ?? {}, this.setOptions({
1862
+ this.options = {}, Ut(this, new Vt(this.options)), this._playback = new Rn(this._frame.bind(this)), this._ctorOptions = e ?? {}, this.setOptions({
1863
1863
  ...E,
1864
1864
  ...this._ctorOptions
1865
1865
  }), this.targets = t == null ? [] : Array.isArray(t) ? t : [t], this.name = n, this.superKey = r;
1866
1866
  }
1867
1867
  get templateFrames() {
1868
- return N(this).templateFrames;
1868
+ return M(this).templateFrames;
1869
1869
  }
1870
1870
  set templateFrames(e) {
1871
- N(this).templateFrames = e, this._compiled = !1;
1871
+ M(this).templateFrames = e, this._compiled = !1;
1872
1872
  }
1873
1873
  get parsedVars() {
1874
- return N(this).parsedVars;
1874
+ return M(this).parsedVars;
1875
1875
  }
1876
1876
  get frames() {
1877
- return N(this).frames;
1877
+ return M(this).frames;
1878
1878
  }
1879
1879
  _compiled = !1;
1880
1880
  get compiled() {
1881
1881
  return this._compiled;
1882
1882
  }
1883
1883
  get frameId() {
1884
- return N(this).frameId;
1884
+ return M(this).frameId;
1885
1885
  }
1886
1886
  addFrame(e, t, n, r, i) {
1887
- return N(this).addFrame(e, t, n, r, i), this._compiled = !1, this;
1887
+ return M(this).addFrame(e, t, n, r, i), this._compiled = !1, this;
1888
1888
  }
1889
1889
  parse() {
1890
- return xr(this), this._compiled = !0, this;
1890
+ return Sr(this), this._compiled = !0, this;
1891
1891
  }
1892
1892
  adoptCompiled(e) {
1893
- return Tr(this, e), this._compiled = e.compiled, this;
1893
+ return Er(this, e), this._compiled = e.compiled, this;
1894
1894
  }
1895
1895
  setTimingFunction(e) {
1896
- return cr(this, e), this;
1896
+ return lr(this, e), this;
1897
1897
  }
1898
1898
  setIterationCount(e) {
1899
- return lr(this, e), this;
1899
+ return ur(this, e), this;
1900
1900
  }
1901
1901
  setDuration(e) {
1902
- return dr(this, e), this;
1902
+ return fr(this, e), this;
1903
1903
  }
1904
1904
  setDelay(e) {
1905
- return fr(this, e), this;
1905
+ return pr(this, e), this;
1906
1906
  }
1907
1907
  setDirection(e) {
1908
- return pr(this, e), this;
1908
+ return mr(this, e), this;
1909
1909
  }
1910
1910
  setFillMode(e) {
1911
- return mr(this, e), this;
1911
+ return hr(this, e), this;
1912
1912
  }
1913
1913
  setUseWAAPI(e) {
1914
- return hr(this, e), this;
1914
+ return gr(this, e), this;
1915
1915
  }
1916
1916
  setRespectReducedMotion(e) {
1917
- return gr(this, e), this;
1917
+ return _r(this, e), this;
1918
1918
  }
1919
1919
  setColorSpace(e) {
1920
- return _r(this, e), this;
1920
+ return vr(this, e), this;
1921
1921
  }
1922
1922
  setHueMethod(e) {
1923
- return vr(this, e), this;
1923
+ return yr(this, e), this;
1924
1924
  }
1925
1925
  setComposite(e) {
1926
- return yr(this, e), this;
1926
+ return br(this, e), this;
1927
1927
  }
1928
1928
  setOptions(e) {
1929
- return br(this, e), this;
1929
+ return xr(this, e), this;
1930
1930
  }
1931
1931
  reverse() {
1932
- return Gt(this), this;
1932
+ return Kt(this), this;
1933
1933
  }
1934
1934
  fillForwards() {
1935
1935
  this.interpFrames(this.options.duration, !0);
@@ -1938,95 +1938,95 @@ var U = (e) => typeof e == "string" ? e : e.name ?? String(e.id), ei = 0, ti = c
1938
1938
  this.interpFrames(0, !0);
1939
1939
  }
1940
1940
  get restPosition() {
1941
- return Gn(this);
1941
+ return Kn(this);
1942
1942
  }
1943
1943
  paintRest() {
1944
- Kn(this);
1944
+ qn(this);
1945
1945
  }
1946
1946
  assertNoUnresolvedNamedSelector() {
1947
- qn(this);
1947
+ Jn(this);
1948
1948
  }
1949
1949
  at(e, t = !1) {
1950
- return Jn(this, e, t);
1950
+ return Yn(this, e, t);
1951
1951
  }
1952
1952
  interpFrames(e, t = !1, n) {
1953
- return L(this, e, t, n);
1953
+ return I(this, e, t, n);
1954
1954
  }
1955
1955
  onStart() {
1956
- kn(this);
1956
+ An(this);
1957
1957
  }
1958
1958
  onEnd() {
1959
- An(this);
1959
+ jn(this);
1960
1960
  }
1961
1961
  advanceTo(e) {
1962
- return jn(this, e);
1962
+ return Mn(this, e);
1963
1963
  }
1964
1964
  _frame(e) {
1965
- return Fn(this, e);
1965
+ return In(this, e);
1966
1966
  }
1967
1967
  get finished() {
1968
1968
  return this._playback._playingPromise ?? Promise.resolve();
1969
1969
  }
1970
1970
  async play() {
1971
- return Dn(this);
1971
+ return On(this);
1972
1972
  }
1973
1973
  pause() {
1974
- return Kt(this), this;
1974
+ return qt(this), this;
1975
1975
  }
1976
1976
  resume() {
1977
- return qt(this), this;
1977
+ return Jt(this), this;
1978
1978
  }
1979
1979
  toggle() {
1980
- return Jt(this);
1980
+ return Yt(this);
1981
1981
  }
1982
1982
  stop() {
1983
- Yt(this);
1983
+ Xt(this);
1984
1984
  }
1985
1985
  playing() {
1986
- return Xt(this);
1986
+ return Zt(this);
1987
1987
  }
1988
1988
  get effectiveT() {
1989
- return Zt(this);
1989
+ return Qt(this);
1990
1990
  }
1991
1991
  settle() {
1992
- return P(this), this;
1992
+ return N(this), this;
1993
1993
  }
1994
1994
  reset() {
1995
- return Qt(this), this;
1995
+ return $t(this), this;
1996
1996
  }
1997
1997
  setTargets(...e) {
1998
- return this.targets = e, Zr(this), this;
1998
+ return this.targets = e, Qr(this), this;
1999
1999
  }
2000
- }, ni = (e, t) => {
2000
+ }, ri = (e, t) => {
2001
2001
  let n = {};
2002
2002
  for (let r of e.declarations) {
2003
2003
  let e = r.value;
2004
- if (Jr(e)) {
2005
- let n = qr(e, t);
2006
- if (n === R) continue;
2004
+ if (Yr(e)) {
2005
+ let n = Jr(e, t);
2006
+ if (n === L) continue;
2007
2007
  e = n;
2008
2008
  }
2009
2009
  n[r.name] = e;
2010
2010
  }
2011
2011
  return n;
2012
- }, ri = (e) => {
2012
+ }, ii = (e) => {
2013
2013
  let t = [];
2014
2014
  for (let n of e.selectors) n.kind === "percent" ? t.push(`${n.value * 100}%`) : t.push(n.offset === void 0 ? n.name : `${n.name} ${n.offset * 100}%`);
2015
2015
  return t;
2016
- }, ii = (e) => {
2016
+ }, ai = (e) => {
2017
2017
  let t = pe(e).filter((e) => e.path.length === 1), n = t[0]?.rule.name;
2018
2018
  return n === void 0 ? [] : t.filter((e) => e.rule.name === n).at(-1)?.rule.rules ?? [];
2019
- }, ai = (e) => {
2019
+ }, oi = (e) => {
2020
2020
  let t = he(te(e), []);
2021
2021
  return {
2022
2022
  ast: t.value,
2023
2023
  issues: t.issues
2024
2024
  };
2025
- }, oi = (e) => {
2025
+ }, si = (e) => {
2026
2026
  let t = /* @__PURE__ */ new Map();
2027
2027
  for (let n of e) n.path.length === 1 && t.set(n.rule.name, n.rule.descriptor);
2028
2028
  return t;
2029
- }, si = (e) => ie(e).filter((e) => e.path.length === 1).at(-1)?.rule.declarations ?? [], ci = (e, t) => {
2029
+ }, ci = (e) => ie(e).filter((e) => e.path.length === 1).at(-1)?.rule.declarations ?? [], li = (e, t) => {
2030
2030
  let n = [], r = (e, t) => {
2031
2031
  n.push({
2032
2032
  code: e,
@@ -2035,13 +2035,13 @@ var U = (e) => typeof e == "string" ? e : e.name ?? String(e.id), ei = 0, ti = c
2035
2035
  });
2036
2036
  }, i = [], a;
2037
2037
  if (typeof e == "string") {
2038
- let t = ai(e);
2038
+ let t = oi(e);
2039
2039
  a = t.ast, i = t.issues;
2040
2040
  } else a = e;
2041
- let o = ii(a);
2041
+ let o = ai(a);
2042
2042
  if (typeof e == "string" && o.length === 0 && e.trim()) {
2043
- let t = ai(`@keyframes anonymous {\n${e.trim()}\n}`);
2044
- ii(t.ast).length > 0 && (a = t.ast, i = t.issues, o = ii(a));
2043
+ let t = oi(`@keyframes anonymous {\n${e.trim()}\n}`);
2044
+ ai(t.ast).length > 0 && (a = t.ast, i = t.issues, o = ai(a));
2045
2045
  }
2046
2046
  if (typeof e == "string") for (let t of i) r("PARSE_ERROR", {
2047
2047
  message: ve(t),
@@ -2055,10 +2055,10 @@ var U = (e) => typeof e == "string" ? e : e.name ?? String(e.id), ei = 0, ti = c
2055
2055
  message: "the input is non-empty but parsed to zero @keyframes rules (no animatable stops) — the resulting animation has no frames",
2056
2056
  input: e
2057
2057
  });
2058
- let s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = oi(ne(a)), d = Dr(u, t, n);
2058
+ let s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = si(ne(a)), d = Or(u, t, n);
2059
2059
  for (let e of o) {
2060
- let t = ni(e, d);
2061
- for (let n of ri(e)) {
2060
+ let t = ri(e, d);
2061
+ for (let n of ii(e)) {
2062
2062
  let r = s.get(n);
2063
2063
  s.set(n, {
2064
2064
  ...r ?? {},
@@ -2072,22 +2072,22 @@ var U = (e) => typeof e == "string" ? e : e.name ?? String(e.id), ei = 0, ti = c
2072
2072
  keyframes: s,
2073
2073
  timingFunctions: c,
2074
2074
  composition: l,
2075
- properties: oi(ge(a)),
2075
+ properties: si(ge(a)),
2076
2076
  functions: u,
2077
- options: le(si(a)).at(0) ?? {},
2077
+ options: le(ci(a)).at(0) ?? {},
2078
2078
  diagnostics: n,
2079
2079
  stylesheet: a
2080
2080
  };
2081
- }, li = (e) => ie(e).at(-1)?.rule.declarations ?? [];
2082
- function ui(e) {
2081
+ }, ui = (e) => ie(e).at(-1)?.rule.declarations ?? [];
2082
+ function di(e) {
2083
2083
  let t = {};
2084
2084
  return e.duration != null && (t.duration = e.duration * 1e3, e.durationUnit != null && (t.durationUnit = e.durationUnit)), e.timingFunction != null && (t.timingFunction = x(e.timingFunction)), e.iterationCount !== void 0 && (t.iterationCount = e.iterationCount === null ? Infinity : e.iterationCount), e.direction != null && (t.direction = e.direction), e.delay != null && (t.delay = e.delay * 1e3, e.delayUnit != null && (t.delayUnit = e.delayUnit)), e.fillMode != null && (t.fillMode = e.fillMode), e.composition != null && (t.composite = e.composition), t;
2085
2085
  }
2086
- function di(e) {
2087
- let t = ue(li(e));
2086
+ function fi(e) {
2087
+ let t = ue(ui(e));
2088
2088
  return Object.keys(t).length > 0 ? t : void 0;
2089
2089
  }
2090
- function fi(e, t) {
2090
+ function pi(e, t) {
2091
2091
  if (!(typeof CSS > "u" || typeof CSS.registerProperty != "function")) for (let [n, r] of e) {
2092
2092
  if (r.syntax == null) continue;
2093
2093
  let e = {
@@ -2095,7 +2095,7 @@ function fi(e, t) {
2095
2095
  syntax: r.syntax,
2096
2096
  inherits: r.inherits ?? !1
2097
2097
  };
2098
- r.initialValue != null && (e.initialValue = b(r.initialValue));
2098
+ r.initialValue != null && (e.initialValue = y(r.initialValue));
2099
2099
  try {
2100
2100
  CSS.registerProperty(e);
2101
2101
  } catch (e) {
@@ -2110,7 +2110,7 @@ function fi(e, t) {
2110
2110
  }
2111
2111
  //#endregion
2112
2112
  //#region src/animation/engine/css/animation.ts
2113
- var pi = (e) => typeof e != "object" || !e ? !1 : typeof e.clone == "function", W = class extends ti {
2113
+ var mi = (e) => typeof e != "object" || !e ? !1 : typeof e.clone == "function", U = class extends ni {
2114
2114
  constructor(e, ...t) {
2115
2115
  super(e, t), this.unflatten = !1;
2116
2116
  }
@@ -2118,7 +2118,7 @@ var pi = (e) => typeof e != "object" || !e ? !1 : typeof e.clone == "function",
2118
2118
  let t = !1;
2119
2119
  for (let e of this.templateFrames) e.start.kind === "named" && (e.start = {
2120
2120
  kind: "percent",
2121
- value: It(e.start)
2121
+ value: Lt(e.start)
2122
2122
  }, t = !0);
2123
2123
  return t && this.frames.length > 0 && this.parse(), this;
2124
2124
  }
@@ -2143,19 +2143,19 @@ var pi = (e) => typeof e != "object" || !e ? !1 : typeof e.clone == "function",
2143
2143
  scrollOptions;
2144
2144
  fromString(e, t) {
2145
2145
  t = this.beginIngest(t);
2146
- let n = ci(e);
2146
+ let n = li(e);
2147
2147
  this.propertyRegistry = n.properties;
2148
- let r = di(n.stylesheet);
2148
+ let r = fi(n.stylesheet);
2149
2149
  r === void 0 ? delete this.scrollOptions : this.scrollOptions = r, this.diagnostics = [...n.diagnostics];
2150
- let i = ui(n.options);
2150
+ let i = di(n.options);
2151
2151
  Object.keys(i).length > 0 && this.setOptions({
2152
2152
  ...i,
2153
2153
  ...this._ctorOptions
2154
2154
  });
2155
2155
  for (let [e, r] of n.keyframes.entries()) {
2156
- let i = Object.fromEntries(Object.entries(r).map(([e, t]) => [e, pi(t) ? t.clone() : t])), a = n.timingFunctions.get(e), o = a ? _e(a) : void 0, s;
2156
+ let i = Object.fromEntries(Object.entries(r).map(([e, t]) => [e, mi(t) ? t.clone() : t])), a = n.timingFunctions.get(e), o = a ? _e(a) : void 0, s;
2157
2157
  if (o) {
2158
- let e = a ? _(a) : void 0;
2158
+ let e = a ? u(a) : void 0;
2159
2159
  s = e ? {
2160
2160
  fn: o,
2161
2161
  css: e
@@ -2164,13 +2164,13 @@ var pi = (e) => typeof e != "object" || !e ? !1 : typeof e.clone == "function",
2164
2164
  let c = n.composition.get(e);
2165
2165
  this.addFrame(e, i, t, s, c);
2166
2166
  }
2167
- return this.parse(), fi(this.propertyRegistry, this.diagnostics), this;
2167
+ return this.parse(), pi(this.propertyRegistry, this.diagnostics), this;
2168
2168
  }
2169
- }, mi = (e) => typeof e == "string" ? e : U(e), hi = (e, t, n) => {
2170
- let r = mi(t), i = e[r];
2169
+ }, hi = (e) => typeof e == "string" ? e : H(e), gi = (e, t, n) => {
2170
+ let r = hi(t), i = e[r];
2171
2171
  if (!i) throw Error(`AnimationGroup.${n}: no animation registered for key "${r}". Known keys: ${Object.keys(e).join(", ") || "(none)"}.`);
2172
2172
  return i;
2173
- }, gi = (e) => {
2173
+ }, _i = (e) => {
2174
2174
  let t = /* @__PURE__ */ new Set();
2175
2175
  for (let n of e) {
2176
2176
  if (!n.layer.enabled) continue;
@@ -2178,24 +2178,24 @@ var pi = (e) => typeof e != "object" || !e ? !1 : typeof e.clone == "function",
2178
2178
  for (let r of n.animation.flatKeys) e && !e.has(r) || t.add(r);
2179
2179
  }
2180
2180
  return [...t];
2181
- }, _i = (e) => {
2181
+ }, vi = (e) => {
2182
2182
  let t = !0;
2183
2183
  for (let n of e) n.animation.interpFrames(n.animation.t, !0), t &&= n.animation.done;
2184
2184
  return t;
2185
- }, vi = (e) => {
2185
+ }, yi = (e) => {
2186
2186
  for (let t of e) {
2187
2187
  let e = t.animation;
2188
2188
  e.started = !0, e.t = e.options.duration, e.interpFrames(e.t, !0);
2189
2189
  }
2190
- }, yi = (e, t) => {
2190
+ }, bi = (e, t) => {
2191
2191
  for (let n of e) n.animation.paused = t;
2192
- }, G = (e) => e.op === "replace" && (e.weightSpring !== void 0 || e.weight !== 1), bi = (e) => {
2192
+ }, W = (e) => e.op === "replace" && (e.weightSpring !== void 0 || e.weight !== 1), xi = (e) => {
2193
2193
  let t = e.weightSpring?.value ?? e.weight;
2194
2194
  return e.weightSpring ? t : Number.isFinite(t) ? Math.min(1, Math.max(0, t)) : 0;
2195
- }, xi = (e) => Number.isFinite(e) ? Math.min(1, Math.max(0, e)) : 0;
2195
+ }, Si = (e) => Number.isFinite(e) ? Math.min(1, Math.max(0, e)) : 0;
2196
2196
  //#endregion
2197
2197
  //#region src/animation/group/waapi.ts
2198
- function Si(e) {
2198
+ function Ci(e) {
2199
2199
  let t = e.getEntries();
2200
2200
  if (!e.singleTarget || t.length === 0) return {
2201
2201
  eligible: !1,
@@ -2215,7 +2215,7 @@ function Si(e) {
2215
2215
  eligible: !1,
2216
2216
  reason: "property-masked layer stays on rAF"
2217
2217
  };
2218
- if (G(e.layer) || e.layer.weightSpring) return {
2218
+ if (W(e.layer) || e.layer.weightSpring) return {
2219
2219
  eligible: !1,
2220
2220
  reason: "weight-driven layer has no native composite equivalent"
2221
2221
  };
@@ -2227,7 +2227,7 @@ function Si(e) {
2227
2227
  eligible: !1,
2228
2228
  reason: "child useWAAPI is disabled"
2229
2229
  };
2230
- let t = F(e.animation);
2230
+ let t = P(e.animation);
2231
2231
  if (!t.eligible) return {
2232
2232
  eligible: !1,
2233
2233
  reason: t.reason
@@ -2239,15 +2239,15 @@ function Si(e) {
2239
2239
  entries: t
2240
2240
  };
2241
2241
  }
2242
- function Ci(e) {
2243
- let t = Si(e);
2242
+ function wi(e) {
2243
+ let t = Ci(e);
2244
2244
  if (!t.eligible) return null;
2245
2245
  let n = [];
2246
2246
  try {
2247
2247
  for (let e of t.entries) {
2248
2248
  let r = e.layer.op;
2249
- n.push(t.target.animate(hn(e.animation), {
2250
- ...bn(e.animation),
2249
+ n.push(t.target.animate(gn(e.animation), {
2250
+ ...xn(e.animation),
2251
2251
  composite: r
2252
2252
  }));
2253
2253
  }
@@ -2261,40 +2261,40 @@ function Ci(e) {
2261
2261
  }
2262
2262
  //#endregion
2263
2263
  //#region src/animation/group/lifecycle.ts
2264
- function wi(e) {
2264
+ function Ti(e) {
2265
2265
  for (let t of e._waAnimations) try {
2266
2266
  t.cancel?.();
2267
2267
  } catch {}
2268
2268
  e._waAnimations.length = 0, e._waapiDelegated = !1;
2269
2269
  }
2270
- function Ti(e) {
2270
+ function Ei(e) {
2271
2271
  for (let t of e._waAnimations) try {
2272
2272
  t.pause?.();
2273
2273
  } catch {}
2274
2274
  }
2275
- function Ei(e) {
2275
+ function Di(e) {
2276
2276
  for (let t of e._waAnimations) try {
2277
2277
  t.play?.();
2278
2278
  } catch {}
2279
2279
  }
2280
- function Di(e) {
2280
+ function Oi(e) {
2281
2281
  let t = e.resolvePromise;
2282
2282
  e.resolvePromise = null, t?.();
2283
2283
  }
2284
- async function Oi(e) {
2285
- return e._playingPromise && e.resolvePromise && !e.started && !e.paused && !e.playback.running && e.playback.loop(e._boundFrame), d(e, () => g(e.respectReducedMotion, () => ki(e), () => {
2286
- let t = Ci(e);
2287
- return t && (e._waAnimations.push(...t), e._waapiDelegated = !0), new Promise((t) => {
2288
- e.resolvePromise = t, e.playback.loop(e._boundFrame);
2284
+ async function ki(t) {
2285
+ return t._playingPromise && t.resolvePromise && !t.started && !t.paused && !t.playback.running && t.playback.loop(t._boundFrame), f(t, () => e(t.respectReducedMotion, () => Ai(t), () => {
2286
+ let e = wi(t);
2287
+ return e && (t._waAnimations.push(...e), t._waapiDelegated = !0), new Promise((e) => {
2288
+ t.resolvePromise = e, t.playback.loop(t._boundFrame);
2289
2289
  });
2290
2290
  }));
2291
2291
  }
2292
- function ki(e) {
2292
+ function Ai(e) {
2293
2293
  e.started = !0;
2294
2294
  let t = e.lastTickTime;
2295
- return vi(e.getEntries()), e.singleTarget && e.render(t), e.settle(), Promise.resolve();
2295
+ return yi(e.getEntries()), e.singleTarget && e.render(t), e.settle(), e._snappedToFinal = !0, Promise.resolve();
2296
2296
  }
2297
- function Ai(e) {
2297
+ function ji(e) {
2298
2298
  if (!e.started || e.paused) return;
2299
2299
  e.paused = !0;
2300
2300
  let t = e.lastTickTime;
@@ -2302,64 +2302,65 @@ function Ai(e) {
2302
2302
  let e = n.animation;
2303
2303
  e.pause(), e.pausedTime === 0 && (e.pausedTime = t);
2304
2304
  }
2305
- e.playback.stop(), e._waapiDelegated && Ti(e), e.render();
2306
- }
2307
- function ji(e) {
2308
- !e.started || !e.paused || (e.paused = !1, yi(e.getEntries(), !1), e._waapiDelegated && Ei(e), e.playback.loop(e._boundFrame));
2305
+ e.playback.stop(), e._waapiDelegated && Ei(e), e.render();
2309
2306
  }
2310
2307
  function Mi(e) {
2311
- s(e, () => Ai(e), () => ji(e));
2308
+ !e.started || !e.paused || (e.paused = !1, bi(e.getEntries(), !1), e._waapiDelegated && Di(e), e.playback.loop(e._boundFrame));
2312
2309
  }
2313
2310
  function Ni(e) {
2314
- e._waapiDelegated && wi(e);
2315
- for (let t of e.getEntries()) t.animation.managed = !1, t.animation.settle();
2316
- e.started = !1, e.done = !1, e.paused = !1, e.lastTickTime = 0;
2311
+ l(e, () => ji(e), () => Mi(e));
2317
2312
  }
2318
2313
  function Pi(e) {
2319
- for (let t of e.getEntries()) {
2320
- let e = t.animation;
2321
- (e.started || e.t !== 0) && e.frames.length > 0 && e.interpFrames(0, !0);
2322
- }
2323
- e.settle();
2314
+ e._waapiDelegated && Ti(e);
2315
+ for (let t of e.getEntries()) t.animation.managed = !1, t.animation.settle();
2316
+ e.started = !1, e.done = !1, e.paused = !1, e.lastTickTime = 0;
2324
2317
  }
2325
2318
  function Fi(e) {
2326
- e.playback.stop(), e.reset(), Di(e);
2319
+ let t = e._snappedToFinal;
2320
+ for (let n of e.getEntries()) {
2321
+ let e = n.animation;
2322
+ (t || e.started || e.t !== 0) && e.frames.length > 0 && e.interpFrames(0, !0);
2323
+ }
2324
+ e.settle(), e._snappedToFinal = !1;
2327
2325
  }
2328
2326
  function Ii(e) {
2329
- return p(e);
2327
+ e.playback.stop(), e.reset(), Oi(e);
2328
+ }
2329
+ function Li(e) {
2330
+ return m(e);
2330
2331
  }
2331
2332
  //#endregion
2332
2333
  //#region src/animation/group/frame.ts
2333
- function Li(e, t) {
2334
- zi(e.getEntries(), t);
2335
- let n = e.advanceTo(t);
2336
- return typeof n.then == "function" ? n.then(() => Ri(e, t)) : Ri(e, t);
2337
- }
2338
2334
  function Ri(e, t) {
2339
- return e.paused ? !1 : (e.done = Bi(e.getEntries()), e.render(t), e.done ? (e.settle(), Di(e), !1) : !0);
2335
+ Bi(e.getEntries(), t);
2336
+ let n = e.advanceTo(t);
2337
+ return typeof n.then == "function" ? n.then(() => zi(e, t)) : zi(e, t);
2340
2338
  }
2341
2339
  function zi(e, t) {
2342
- for (let n = 0; n < e.length; n++) Nn(e[n].animation, t);
2340
+ return e.paused ? !1 : (e.done = Vi(e.getEntries()), e.render(t), e.done ? (e.settle(), Oi(e), !1) : !0);
2343
2341
  }
2344
- function Bi(e) {
2342
+ function Bi(e, t) {
2343
+ for (let n = 0; n < e.length; n++) Pn(e[n].animation, t);
2344
+ }
2345
+ function Vi(e) {
2345
2346
  for (let t = 0; t < e.length; t++) if (!e[t].animation.done) return !1;
2346
2347
  return !0;
2347
2348
  }
2348
2349
  //#endregion
2349
2350
  //#region src/animation/group/seek.ts
2350
- function Vi(e, t) {
2351
- let n = hi(e.animations, t, "elapsedOf").animation, { delay: r, duration: i } = n.options;
2351
+ function Hi(e, t) {
2352
+ let n = gi(e.animations, t, "elapsedOf").animation, { delay: r, duration: i } = n.options;
2352
2353
  return Math.max(0, r) + n.iteration * Math.max(0, i) + n.t;
2353
2354
  }
2354
- function Hi(e, t) {
2355
+ function Ui(e, t) {
2355
2356
  for (let { animation: n } of Object.values(e.animations)) {
2356
2357
  let { delay: r, duration: i, iterationCount: a, direction: o } = n.options, s = t - Math.max(0, r), c = 0, l = Math.min(0, s);
2357
- i > 0 && s >= 0 && (c = Math.floor(s / i), l = s - c * i, c >= a && (c = Math.max(0, Math.ceil(a) - 1), l = i)), c !== n.iteration && (n.iteration = c, n.reversed = Wt(o, c)), e.setChildTime(n, l);
2358
+ i > 0 && s >= 0 && (c = Math.floor(s / i), l = s - c * i, c >= a && (c = Math.max(0, Math.ceil(a) - 1), l = i)), c !== n.iteration && (n.iteration = c, n.reversed = Gt(o, c)), e.setChildTime(n, l);
2358
2359
  }
2359
2360
  }
2360
2361
  //#endregion
2361
2362
  //#region src/animation/group/render-observers.ts
2362
- var Ui = class {
2363
+ var Wi = class {
2363
2364
  listeners = [];
2364
2365
  subscribe(e) {
2365
2366
  return this.listeners.push(e), () => {
@@ -2371,39 +2372,39 @@ var Ui = class {
2371
2372
  let t = this.listeners;
2372
2373
  for (let n = 0; n < t.length; n++) t[n](e);
2373
2374
  }
2374
- }, Wi = null, Gi = () => typeof MessageChannel == "function" ? () => new Promise((e) => {
2375
+ }, Gi = null, Ki = () => typeof MessageChannel == "function" ? () => new Promise((e) => {
2375
2376
  let t = new MessageChannel();
2376
2377
  t.port1.onmessage = () => {
2377
2378
  t.port1.close(), e();
2378
2379
  }, t.port2.postMessage(void 0);
2379
2380
  }) : () => new Promise((e) => setTimeout(e, 0));
2380
- function Ki() {
2381
+ function qi() {
2381
2382
  let e = globalThis.scheduler;
2382
- return e && typeof e.yield == "function" ? e.yield() : (Wi ??= Gi(), Wi());
2383
+ return e && typeof e.yield == "function" ? e.yield() : (Gi ??= Ki(), Gi());
2383
2384
  }
2384
2385
  //#endregion
2385
2386
  //#region src/animation/group/yield-batch.ts
2386
- var qi = (e, t) => {
2387
+ var Ji = (e, t) => {
2387
2388
  for (let n = 0; n < e.length; n++) {
2388
2389
  let r = e[n].animation;
2389
2390
  r.done || r.paused && r.pausedTime !== 0 || r.advanceTo(t);
2390
2391
  }
2391
- }, Ji = async (e, t, n) => {
2392
- for (let r = 0; r < e.length; r += n) qi(e.slice(r, r + n), t), r + n < e.length && await Ki();
2393
- }, Yi = (e, t, n) => {
2394
- let r = new u({
2392
+ }, Yi = async (e, t, n) => {
2393
+ for (let r = 0; r < e.length; r += n) Ji(e.slice(r, r + n), t), r + n < e.length && await qi();
2394
+ }, Xi = (e, t, n) => {
2395
+ let r = new c({
2395
2396
  ...n,
2396
2397
  initial: e
2397
2398
  });
2398
2399
  return r.target = t, r;
2399
- }, Xi = (e, t) => {
2400
+ }, Zi = (e, t) => {
2400
2401
  let n = !1;
2401
2402
  for (let r of e) {
2402
2403
  let e = r.layer.weightSpring;
2403
2404
  e !== void 0 && (t > 0 && e.tickDt(t), e.settled ? (r.layer.weight = e.value, delete r.layer.weightSpring) : n = !0);
2404
2405
  }
2405
2406
  return n;
2406
- }, Zi = class {
2407
+ }, Qi = class {
2407
2408
  values = {};
2408
2409
  keys = [];
2409
2410
  epochs = Object.create(null);
@@ -2425,8 +2426,8 @@ var qi = (e, t) => {
2425
2426
  pruneInactive() {
2426
2427
  for (let e of this.keys) this.epochs[e] !== this.epoch && (this.values[e] = void 0);
2427
2428
  }
2428
- }, Qi = () => {
2429
- let e = new Zi();
2429
+ }, $i = () => {
2430
+ let e = new Qi();
2430
2431
  return {
2431
2432
  compositeState: e,
2432
2433
  grouped: e.values,
@@ -2435,12 +2436,12 @@ var qi = (e, t) => {
2435
2436
  soaPlans: null,
2436
2437
  compositeBuf: null
2437
2438
  };
2438
- }, K = (e) => typeof e == "number", $i = (e, t) => {
2439
+ }, G = (e) => typeof e == "number", ea = (e, t) => {
2439
2440
  let { carriers: n, incomingSlots: r } = t, i = n.length;
2440
2441
  if (i !== 0) {
2441
2442
  for (let t = 0; t < i; t++) e[t] = n[t].values[n[t].key];
2442
2443
  if (t.weightBlend) {
2443
- let n = bi(t.layer);
2444
+ let n = xi(t.layer);
2444
2445
  for (let t = 0; t < i; t++) {
2445
2446
  let i = r[t];
2446
2447
  e[t] = C(e[t], i.values[i.key], n);
@@ -2454,12 +2455,12 @@ var qi = (e, t) => {
2454
2455
  r.values[r.key] = e[t];
2455
2456
  }
2456
2457
  }
2457
- }, ea = (e, t, n) => {
2458
+ }, ta = (e, t, n) => {
2458
2459
  let r = [], i = {}, a = 0;
2459
2460
  for (let t of e) {
2460
2461
  let { layer: e, values: o } = t;
2461
2462
  if (!e.enabled) continue;
2462
- let s = e.properties, c = e.op, l = G(e);
2463
+ let s = e.properties, c = e.op, l = W(e);
2463
2464
  if (c === "replace" && !l) {
2464
2465
  for (let e in o) s && !s.has(e) || o[e] !== void 0 && (i[e] = {
2465
2466
  values: n,
@@ -2473,7 +2474,7 @@ var qi = (e, t) => {
2473
2474
  let t = o[e];
2474
2475
  if (t === void 0) continue;
2475
2476
  let r = i[e], a = r?.values[e];
2476
- r !== void 0 && K(a) && K(t) ? (u.push(r), d.push({
2477
+ r !== void 0 && G(a) && G(t) ? (u.push(r), d.push({
2477
2478
  values: o,
2478
2479
  key: e
2479
2480
  })) : (f.add(e), i[e] = {
@@ -2494,10 +2495,10 @@ var qi = (e, t) => {
2494
2495
  plans: r,
2495
2496
  compositeBuf: o
2496
2497
  };
2497
- }, ta = /* @__PURE__ */ new WeakMap();
2498
- function na(e, t, n) {
2498
+ }, na = /* @__PURE__ */ new WeakMap();
2499
+ function ra(e, t, n) {
2499
2500
  let r = t.grouped;
2500
- t.groupedKeysDirty && (t.groupedKeys = gi(e.getEntries()), t.compositeState.configure(t.groupedKeys), t.groupedKeysDirty = !1, t.soaPlans = null, ta.delete(e)), t.compositeState.clear();
2501
+ t.groupedKeysDirty && (t.groupedKeys = _i(e.getEntries()), t.compositeState.configure(t.groupedKeys), t.groupedKeysDirty = !1, t.soaPlans = null, na.delete(e)), t.compositeState.clear();
2501
2502
  let i = e.getEntries(), a = t.soaPlans !== null, o = 0, s = !0;
2502
2503
  for (let e of i) {
2503
2504
  let { animation: n, layer: i, values: c } = e;
@@ -2505,7 +2506,7 @@ function na(e, t, n) {
2505
2506
  n.interpFrames(n.t, !1, c);
2506
2507
  let l = i.properties;
2507
2508
  for (let e in c) l && !l.has(e) || c[e] !== void 0 && t.compositeState.mark(e);
2508
- let u = i.op, d = G(i);
2509
+ let u = i.op, d = W(i);
2509
2510
  if (u === "replace" && !d) {
2510
2511
  for (let e in c) {
2511
2512
  if (l && !l.has(e)) continue;
@@ -2516,11 +2517,11 @@ function na(e, t, n) {
2516
2517
  }
2517
2518
  if (a) {
2518
2519
  let e = t.soaPlans[o++];
2519
- $i(t.compositeBuf, e), e.residualKeys.size > 0 && ra(i, c, r, l, e.residualKeys, t.compositeState);
2520
- } else ra(i, c, r, l, void 0, t.compositeState);
2520
+ ea(t.compositeBuf, e), e.residualKeys.size > 0 && ia(i, c, r, l, e.residualKeys, t.compositeState);
2521
+ } else ia(i, c, r, l, void 0, t.compositeState);
2521
2522
  }
2522
2523
  if (!a) {
2523
- let { plans: e, compositeBuf: n } = ea(i, t.compositeBuf, r);
2524
+ let { plans: e, compositeBuf: n } = ta(i, t.compositeBuf, r);
2524
2525
  t.soaPlans = e, t.compositeBuf = n;
2525
2526
  }
2526
2527
  if (e.done = s, t.compositeState.pruneInactive(), e.transform === T) for (let t of e.getEntries()) {
@@ -2531,12 +2532,12 @@ function na(e, t, n) {
2531
2532
  }
2532
2533
  }
2533
2534
  if (e.unflatten) {
2534
- let t = ta.get(e);
2535
- t === void 0 ? (t = jt(r), ta.set(e, t)) : Mt(t), e.transform(t.root, n);
2535
+ let t = na.get(e);
2536
+ t === void 0 ? (t = Mt(r), na.set(e, t)) : Nt(t), e.transform(t.root, n);
2536
2537
  } else e.transform(r, n);
2537
2538
  return r;
2538
2539
  }
2539
- function ra(e, t, n, r, i, a) {
2540
+ function ia(e, t, n, r, i, a) {
2540
2541
  let o = e.op;
2541
2542
  if (o === "add" || o === "accumulate") {
2542
2543
  for (let e in t) {
@@ -2544,51 +2545,51 @@ function ra(e, t, n, r, i, a) {
2544
2545
  let o = t[e];
2545
2546
  if (o === void 0) continue;
2546
2547
  let s = n[e];
2547
- K(s) && K(o) ? n[e] = s + o : a ? a.copy(e, o) : n[e] = o;
2548
+ G(s) && G(o) ? n[e] = s + o : a ? a.copy(e, o) : n[e] = o;
2548
2549
  }
2549
2550
  return;
2550
2551
  }
2551
- let s = bi(e);
2552
+ let s = xi(e);
2552
2553
  for (let e in t) {
2553
2554
  if (i && !i.has(e) || r && !r.has(e)) continue;
2554
2555
  let o = t[e];
2555
2556
  if (o === void 0) continue;
2556
2557
  let c = n[e];
2557
- if (K(c) && K(o)) n[e] = C(c, o, s);
2558
+ if (G(c) && G(o)) n[e] = C(c, o, s);
2558
2559
  else if (a) {
2559
2560
  let t = a.copy(e, o);
2560
- K(t) && (n[e] = C(0, t, s));
2561
+ G(t) && (n[e] = C(0, t, s));
2561
2562
  } else n[e] = o;
2562
2563
  }
2563
2564
  }
2564
2565
  //#endregion
2565
2566
  //#region src/animation/group/layer-api.ts
2566
- function ia(e, t, n) {
2567
- let r = hi(e.animations, t, "setLayerConfig");
2567
+ function aa(e, t, n) {
2568
+ let r = gi(e.animations, t, "setLayerConfig");
2568
2569
  Object.assign(r.layer, n), e.invalidateEntries();
2569
2570
  }
2570
- function aa(e, t) {
2571
- return e.animations[mi(t)]?.layer;
2571
+ function oa(e, t) {
2572
+ return e.animations[hi(t)]?.layer;
2572
2573
  }
2573
- function oa(e, t, n) {
2574
- let r = hi(e.animations, t, "transitionLayer").layer, i = xi(n.weight);
2574
+ function sa(e, t, n) {
2575
+ let r = gi(e.animations, t, "transitionLayer").layer, i = Si(n.weight);
2575
2576
  r.op = "replace";
2576
2577
  let a = r.weightSpring;
2577
- a instanceof u ? a.target = i : r.weightSpring = Yi(xi(r.weight), i, n.spring), e._hasLayerSprings = !0, e.invalidateEntries();
2578
+ a instanceof c ? a.target = i : r.weightSpring = Xi(Si(r.weight), i, n.spring), e._hasLayerSprings = !0, e.invalidateEntries();
2578
2579
  }
2579
- function sa(e, t, n, r) {
2580
+ function ca(e, t, n, r) {
2580
2581
  let i = r?.spring;
2581
- oa(e, t, {
2582
+ sa(e, t, {
2582
2583
  weight: 0,
2583
2584
  ...i ? { spring: i } : {}
2584
- }), oa(e, n, {
2585
+ }), sa(e, n, {
2585
2586
  weight: 1,
2586
2587
  ...i ? { spring: i } : {}
2587
2588
  });
2588
2589
  }
2589
2590
  //#endregion
2590
2591
  //#region src/animation/group/group.ts
2591
- var ca = class e {
2592
+ var la = class e {
2592
2593
  animations = {};
2593
2594
  transform = T;
2594
2595
  superKey;
@@ -2618,24 +2619,25 @@ var ca = class e {
2618
2619
  }
2619
2620
  unflatten = !1;
2620
2621
  lastTickTime = 0;
2621
- playback = new a();
2622
+ playback = new _();
2622
2623
  _waAnimations = [];
2623
2624
  _waapiDelegated = !1;
2625
+ _snappedToFinal = !1;
2624
2626
  resolvePromise = null;
2625
2627
  _playingPromise = null;
2626
2628
  _boundFrame;
2627
- _renders = new Ui();
2629
+ _renders = new Wi();
2628
2630
  _entries = [];
2629
2631
  _entriesDirty = !0;
2630
- _composite = Qi();
2632
+ _composite = $i();
2631
2633
  _hasLayerSprings = !1;
2632
2634
  constructor(...e) {
2633
- this._boundFrame = (e) => Li(this, e);
2635
+ this._boundFrame = (e) => Ri(this, e);
2634
2636
  let t = [];
2635
2637
  for (let n of e) {
2636
2638
  let e, r;
2637
- n instanceof ti ? e = n : (e = n.animation, r = n.layer), this.transform === T && e.frames[0] != null && (this.transform = e.frames[0].transform, this.unflatten = e.unflatten);
2638
- let i = U(e);
2639
+ n instanceof ni ? e = n : (e = n.animation, r = n.layer), this.transform === T && e.frames[0] != null && (this.transform = e.frames[0].transform, this.unflatten = e.unflatten);
2640
+ let i = H(e);
2639
2641
  this.animations[i] = {
2640
2642
  values: {},
2641
2643
  animation: e,
@@ -2664,76 +2666,76 @@ var ca = class e {
2664
2666
  return this._deriveSingleTarget(t.map((e) => e.animation.targets[0])), this;
2665
2667
  }
2666
2668
  transformFramesGrouped(e) {
2667
- return na(this, this._composite, e);
2669
+ return ra(this, this._composite, e);
2668
2670
  }
2669
2671
  render(e = this.lastTickTime) {
2670
- this.singleTarget ? (!this._waapiDelegated || this.done) && this.transformFramesGrouped(e) : _i(this.getEntries()), this._renders.notify(e);
2672
+ this.singleTarget ? (!this._waapiDelegated || this.done) && this.transformFramesGrouped(e) : vi(this.getEntries()), this._renders.notify(e);
2671
2673
  }
2672
2674
  onRender(e) {
2673
2675
  return this._renders.subscribe(e);
2674
2676
  }
2675
2677
  setChildTime(e, t) {
2676
- let n = hi(this.animations, e, "setChildTime").animation;
2678
+ let n = gi(this.animations, e, "setChildTime").animation;
2677
2679
  return n.t = t, n.startTime !== void 0 && (n.pausedTime = n.startTime + t), this;
2678
2680
  }
2679
2681
  seek(e) {
2680
- return Hi(this, e), this;
2682
+ return Ui(this, e), this;
2681
2683
  }
2682
2684
  elapsedOf(e) {
2683
- return Vi(this, e);
2685
+ return Hi(this, e);
2684
2686
  }
2685
2687
  advanceTo(t) {
2686
2688
  let n = this.lastTickTime === 0 ? 0 : t - this.lastTickTime;
2687
2689
  this._hasLayerSprings && this.advanceLayerSprings(n), this.lastTickTime = t, this.started = !0;
2688
2690
  let r = this.getEntries(), i = e.YIELD_BATCH;
2689
- return r.length <= i ? (qi(r, t), this) : Ji(r, t, i).then(() => this);
2691
+ return r.length <= i ? (Ji(r, t), this) : Yi(r, t, i).then(() => this);
2690
2692
  }
2691
2693
  get finished() {
2692
2694
  return this._playingPromise ?? Promise.resolve();
2693
2695
  }
2694
2696
  async play() {
2695
- return Oi(this);
2697
+ return ki(this);
2696
2698
  }
2697
2699
  pause() {
2698
- return Ai(this), this;
2700
+ return ji(this), this;
2699
2701
  }
2700
2702
  resume() {
2701
- return ji(this), this;
2703
+ return Mi(this), this;
2702
2704
  }
2703
2705
  toggle() {
2704
- return Mi(this);
2706
+ return Ni(this);
2705
2707
  }
2706
2708
  settle() {
2707
- return Ni(this), this;
2709
+ return Pi(this), this;
2708
2710
  }
2709
2711
  reset() {
2710
- return Pi(this), this._renders.notify(this.lastTickTime), this;
2712
+ return Fi(this), this._renders.notify(this.lastTickTime), this;
2711
2713
  }
2712
2714
  stop() {
2713
- return Fi(this), this;
2715
+ return Ii(this), this;
2714
2716
  }
2715
2717
  playing() {
2716
- return Ii(this);
2718
+ return Li(this);
2717
2719
  }
2718
2720
  setLayerConfig(e, t) {
2719
- return ia(this, e, t), this;
2721
+ return aa(this, e, t), this;
2720
2722
  }
2721
2723
  setLayerEnabled(e, t) {
2722
2724
  return this.setLayerConfig(e, { enabled: t });
2723
2725
  }
2724
2726
  getLayerConfig(e) {
2725
- return aa(this, e);
2727
+ return oa(this, e);
2726
2728
  }
2727
2729
  transitionLayer(e, t) {
2728
- return oa(this, e, t), this;
2730
+ return sa(this, e, t), this;
2729
2731
  }
2730
2732
  crossfade(e, t, n) {
2731
- return sa(this, e, t, n), this;
2733
+ return ca(this, e, t, n), this;
2732
2734
  }
2733
2735
  advanceLayerSprings(e) {
2734
- this._hasLayerSprings = Xi(this.getEntries(), e);
2736
+ this._hasLayerSprings = Zi(this.getEntries(), e);
2735
2737
  }
2736
- }, la = class {
2738
+ }, ua = class {
2737
2739
  animation;
2738
2740
  constructor(e) {
2739
2741
  this.animation = e;
@@ -2750,23 +2752,23 @@ var ca = class e {
2750
2752
  get finished() {
2751
2753
  return this.animation.finished;
2752
2754
  }
2753
- }, ua = (e) => typeof e == "number" ? `${e}%` : e;
2754
- function da(e, t) {
2755
+ }, da = (e) => typeof e == "number" ? `${e}%` : e;
2756
+ function fa(e, t) {
2755
2757
  let { path: n, from: r = "0%", to: i = "100%", rotate: a, autoPlay: o = !0, ...s } = t;
2756
2758
  if (typeof n != "string" || n.length === 0) throw Error("fromMotionPath(): `path` is required — pass an offset-path value (a path()/ray()/url(#id) string).");
2757
2759
  let c = Array.isArray(e) ? e : [e];
2758
2760
  for (let e of c) e.style.offsetPath = n, a !== void 0 && (e.style.offsetRotate = a);
2759
2761
  let l = {
2760
- "0%": { "offset-distance": ua(r) },
2761
- "100%": { "offset-distance": ua(i) }
2762
- }, u = new W(s).fromKeyframes(l);
2762
+ "0%": { "offset-distance": da(r) },
2763
+ "100%": { "offset-distance": da(i) }
2764
+ }, u = new U(s).fromKeyframes(l);
2763
2765
  return u.setTargets(...c), o && u.play(), u;
2764
2766
  }
2765
- var fa = class extends la {
2767
+ var pa = class extends ua {
2766
2768
  constructor(e, t) {
2767
- super(da(e, t));
2769
+ super(fa(e, t));
2768
2770
  }
2769
- }, pa = (e) => {
2771
+ }, ma = (e) => {
2770
2772
  if (typeof e == "number") {
2771
2773
  if (!Number.isFinite(e) || e < 0 || e > 1) throw Error(`fromDrawSVG(): a numeric draw position is a 0..1 fraction, got ${JSON.stringify(e)} — pass a fraction in [0, 1] or a percent string ("0%".."100%").`);
2772
2774
  return e;
@@ -2775,22 +2777,22 @@ var fa = class extends la {
2775
2777
  if (t === void 0) throw Error(`fromDrawSVG(): invalid draw position ${JSON.stringify(e)} — pass a percent string ("0%".."100%") or a 0..1 number.`);
2776
2778
  return t;
2777
2779
  };
2778
- function ma(e, t = {}) {
2780
+ function ha(e, t = {}) {
2779
2781
  let { from: n = "0%", to: r = "100%", autoPlay: i = !0, ...a } = t;
2780
2782
  if (e == null || typeof e.getTotalLength != "function") throw Error("fromDrawSVG(): `target` must be an SVG geometry element exposing getTotalLength() (a <path>/<line>/<circle>/<rect>/<polygon>/…).");
2781
- let o = pa(n), s = pa(r), c = e.getTotalLength();
2783
+ let o = ma(n), s = ma(r), c = e.getTotalLength();
2782
2784
  e.style.strokeDasharray = `${c}`;
2783
2785
  let l = {
2784
2786
  "0%": { "stroke-dashoffset": c * (1 - o) },
2785
2787
  "100%": { "stroke-dashoffset": c * (1 - s) }
2786
- }, u = new W(a).fromKeyframes(l);
2788
+ }, u = new U(a).fromKeyframes(l);
2787
2789
  return u.setTargets(e), i && u.play(), u;
2788
2790
  }
2789
- var ha = class extends la {
2791
+ var ga = class extends ua {
2790
2792
  constructor(e, t = {}) {
2791
- super(ma(e, t));
2793
+ super(ha(e, t));
2792
2794
  }
2793
- }, ga = (e) => `--morph-${e}-x`, _a = (e) => `--morph-${e}-y`, va = (e) => `--morph-${e}-angle`, ya = (e, t, n) => {
2795
+ }, _a = (e) => `--morph-${e}-x`, va = (e) => `--morph-${e}-y`, ya = (e) => `--morph-${e}-angle`, ba = (e, t, n) => {
2794
2796
  let r = Array(t + 1);
2795
2797
  for (let i = 0; i <= t; i++) if (n) {
2796
2798
  let n = e.sampleAtLength(e.totalLength * (i / t));
@@ -2801,12 +2803,12 @@ var ha = class extends la {
2801
2803
  };
2802
2804
  } else r[i] = e.getPointAtT(i / t);
2803
2805
  return r;
2804
- }, ba = (e) => Number.isInteger(e) ? `${e}` : e.toFixed(3), xa = (e) => {
2806
+ }, xa = (e) => Number.isInteger(e) ? `${e}` : e.toFixed(3), Sa = (e) => {
2805
2807
  if (e.length === 0) return "";
2806
- let t = `M ${ba(e[0].x)} ${ba(e[0].y)}`;
2807
- for (let n = 1; n < e.length; n++) t += ` L ${ba(e[n].x)} ${ba(e[n].y)}`;
2808
+ let t = `M ${xa(e[0].x)} ${xa(e[0].y)}`;
2809
+ for (let n = 1; n < e.length; n++) t += ` L ${xa(e[n].x)} ${xa(e[n].y)}`;
2808
2810
  return t;
2809
- }, Sa = (e, t) => {
2811
+ }, Ca = (e, t) => {
2810
2812
  let n = Array(t + 1);
2811
2813
  for (let e = 0; e <= t; e++) n[e] = {
2812
2814
  x: 0,
@@ -2815,17 +2817,17 @@ var ha = class extends la {
2815
2817
  return (r) => {
2816
2818
  let i = r;
2817
2819
  for (let e = 0; e <= t; e++) {
2818
- let t = n[e], r = i[ga(e)], a = i[_a(e)];
2820
+ let t = n[e], r = i[_a(e)], a = i[va(e)];
2819
2821
  if (typeof r != "number" || typeof a != "number") throw Error(`morph render: point ${e} lost its coordinate leaf (engine invariant violated — xKey/yKey seeded at construction)`);
2820
2822
  t.x = r, t.y = a;
2821
2823
  }
2822
- let a = xa(n);
2824
+ let a = Sa(n);
2823
2825
  e.style.setProperty("--morph-d", a), e.style.setProperty("d", `path("${a}")`);
2824
2826
  };
2825
2827
  };
2826
2828
  //#endregion
2827
2829
  //#region src/animation/svg/morph-svg.ts
2828
- function Ca(e, n, r = {}) {
2830
+ function wa(e, n, r = {}) {
2829
2831
  let { samples: i = 64, target: a, orient: o = !1, autoPlay: s = !0, ...c } = r;
2830
2832
  if (typeof e != "string" || e.length === 0) throw new t("from", e, "fromMorphSVG(): `from` must be a non-empty SVG path `d` string.");
2831
2833
  if (typeof n != "string" || n.length === 0) throw new t("to", n, "fromMorphSVG(): `to` must be a non-empty SVG path `d` string.");
@@ -2833,64 +2835,64 @@ function Ca(e, n, r = {}) {
2833
2835
  let l = new je(e), u = new je(n);
2834
2836
  if (l.totalLength === 0) throw new t("from", e, "fromMorphSVG(): the `from` path has zero arc-length — a morph between a zero-length path and anything is malformed input, not an identity animation.");
2835
2837
  if (u.totalLength === 0) throw new t("to", n, "fromMorphSVG(): the `to` path has zero arc-length — a morph between a zero-length path and anything is malformed input, not an identity animation.");
2836
- let d = ya(l, i, o), f = ya(u, i, o), p = {}, m = {};
2837
- for (let e = 0; e <= i; e++) p[ga(e)] = d[e].x, p[_a(e)] = d[e].y, m[ga(e)] = f[e].x, m[_a(e)] = f[e].y, o && (p[va(e)] = d[e].angle ?? 0, m[va(e)] = f[e].angle ?? 0);
2838
+ let d = ba(l, i, o), f = ba(u, i, o), p = {}, m = {};
2839
+ for (let e = 0; e <= i; e++) p[_a(e)] = d[e].x, p[va(e)] = d[e].y, m[_a(e)] = f[e].x, m[va(e)] = f[e].y, o && (p[ya(e)] = d[e].angle ?? 0, m[ya(e)] = f[e].angle ?? 0);
2838
2840
  let h = {
2839
2841
  "0%": p,
2840
2842
  "100%": m
2841
- }, g = a == null ? void 0 : Sa(a, i), _ = a;
2842
- a != null && typeof _.setAttribute == "function" && _.setAttribute("d", e);
2843
- let v = new W(c).fromKeyframes(h, g);
2844
- return s && v.play(), v;
2843
+ }, ee = a == null ? void 0 : Ca(a, i), g = a;
2844
+ a != null && typeof g.setAttribute == "function" && g.setAttribute("d", e);
2845
+ let _ = new U(c).fromKeyframes(h, ee);
2846
+ return s && _.play(), _;
2845
2847
  }
2846
- var wa = class extends la {
2848
+ var Ta = class extends ua {
2847
2849
  samples;
2848
2850
  constructor(e, t, n = {}) {
2849
- super(Ca(e, t, n)), this.samples = n.samples ?? 64;
2851
+ super(wa(e, t, n)), this.samples = n.samples ?? 64;
2850
2852
  }
2851
2853
  sampleD(e) {
2852
2854
  let t = (e < 0 ? 0 : e > 1 ? 1 : e) * this.animation.options.duration, n = this.animation.interpFrames(t, !1), r = Array(this.samples + 1);
2853
2855
  for (let e = 0; e <= this.samples; e++) {
2854
- let t = n[ga(e)], i = n[_a(e)];
2856
+ let t = n[_a(e)], i = n[va(e)];
2855
2857
  r[e] = {
2856
2858
  x: (typeof t == "number" ? t : void 0) ?? 0,
2857
2859
  y: (typeof i == "number" ? i : void 0) ?? 0
2858
2860
  };
2859
2861
  }
2860
- return xa(r);
2862
+ return Sa(r);
2861
2863
  }
2862
- }, Ta = "\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n", Ea = "\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n", Da = "\n 0%, 100% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.05);\n }\n", Oa = "\n8%,\n41% {\n transform: translateX(-10px);\n}\n25%,\n58% {\n transform: translateX(10px);\n}\n75% {\n transform: translateX(-5px);\n}\n92% {\n transform: translateX(5px);\n}\n0%,\n100% {\n transform: translateX(0);\n}\n", ka = "\n 0%, 20%, 50%, 80%, 100% {\n transform: translateY(0);\n }\n 40% {\n transform: translateY(-30px);\n }\n 60% {\n transform: translateY(-15px);\n }\n", Aa = "\n 0% {\n transform: perspective(400px) rotateY(0);\n animation-timing-function: ease-out;\n }\n 40% {\n transform: perspective(400px) translateZ(150px) rotateY(170deg);\n animation-timing-function: ease-out;\n }\n 50% {\n transform: perspective(400px) translateZ(150px) rotateY(190deg) scale(1);\n animation-timing-function: ease-in;\n }\n 80% {\n transform: perspective(400px) rotateY(360deg) scale(.95);\n animation-timing-function: ease-in;\n }\n 100% {\n transform: perspective(400px) scale(1);\n animation-timing-function: ease-in;\n }\n", ja = "\n 0% {\n transform-origin: center;\n transform: rotate3d(0, 0, 1, -200deg);\n opacity: 0;\n }\n 100% {\n transform-origin: center;\n transform: none;\n opacity: 1;\n }\n", Ma = "\n 0% {\n transform: translateY(1000px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n", Na = "\n 0% {\n transform: scale(1);\n }\n 14% {\n transform: scale(1.3);\n }\n 28% {\n transform: scale(1);\n }\n 42% {\n transform: scale(1.3);\n }\n 70% {\n transform: scale(1);\n }\n", Pa = "\n 0%, 100% {\n box-shadow: 0 0 5px rgb(0 0 0 / 20%);\n }\n 50% {\n box-shadow: 0 0 20px rgb(0 0 0 / 80%);\n }\n", Fa = "\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n", Ia = "\n 0% {\n color: red;\n }\n 15% {\n color: orange;\n }\n 30% {\n color: yellow;\n }\n 45% {\n color: green;\n }\n 60% {\n color: blue;\n }\n 75% {\n color: indigo;\n }\n 90% {\n color: violet;\n }\n 100% {\n color: red;\n }\n", La = "@keyframes keyframeDelete {\n 0% {\n transform: translateX(0%) rotate(0deg);\n opacity: 1;\n }\n 25% {\n transform: translateX(0%) rotate(5deg);\n opacity: 1;\n }\n 50% {\n transform: translateX(25%) rotate(10deg);\n opacity: 0.5;\n }\n 75% {\n transform: translateX(0%) rotate(0deg);\n opacity: 0.25;\n }\n 100% {\n transform: translateX(-100%);\n opacity: 0;\n }\n}", Ra = "@keyframes keyframeDelete {\n 0% {\n transform: translateX(0%) rotate(0deg);\n opacity: 1;\n }\n 25% {\n transform: translateX(0%) rotate(-5deg);\n opacity: 1;\n }\n 50% {\n transform: translateX(-25%) rotate(-10deg);\n opacity: 0.5;\n }\n 100% {\n transform: translateX(100%);\n opacity: 0;\n }\n}", za = "\n0% {\n filter: blur(10px);\n opacity: 0;\n}\n100% {\n filter: blur(0px);\n opacity: 1;\n}\n", Ba = "\n0% {\n filter: blur(0px);\n opacity: 1;\n}\n100% {\n filter: blur(10px);\n opacity: 0;\n}\n", Va = "\n0% {\n filter: blur(0px);\n}\n50% {\n filter: blur(10px);\n}\n100% {\n filter: blur(0px);\n}\n", Ha = "\n0% {\n width: 0%;\n background-color: #ff9999;\n}\n25% {\n width: 25%;\n background-color: #ffcc99;\n}\n50% {\n width: 50%;\n background-color: #ffff99;\n}\n75% {\n width: 75%;\n background-color: #99ff99;\n}\n100% {\n width: 100%;\n background-color: #99ccff;\n}\n", Ua = "\n0% {\n background-position: -200% 0;\n}\n100% {\n background-position: 200% 0;\n}\n", Wa = "\n0%, 100% {\n filter: blur(0px);\n opacity: 1;\n}\n50% {\n filter: blur(4px);\n opacity: 0.5;\n}\n", Ga = "\n0% {\n background-position: 0% 50%;\n}\n50% {\n background-position: 100% 50%;\n}\n100% {\n background-position: 0% 50%;\n}\n", Ka = "\n0% {\n transform: rotate(0deg) scale(1);\n}\n25% {\n transform: rotate(90deg) scale(1.1);\n}\n50% {\n transform: rotate(180deg) scale(1);\n}\n75% {\n transform: rotate(270deg) scale(0.9);\n}\n100% {\n transform: rotate(360deg) scale(1);\n}\n", qa = "\n0%, 100% {\n border-right-color: transparent;\n}\n50% {\n border-right-color: black;\n}\n", Ja = "\n0% {\n max-height: 0;\n opacity: 0;\n}\n100% {\n max-height: 1000px;\n opacity: 1;\n}\n", Ya = "\n0%, 100% {\n transform: translateY(0);\n}\n25% {\n transform: translateY(-10px);\n}\n50% {\n transform: translateY(0);\n}\n75% {\n transform: translateY(-5px);\n}\n", Xa = "\n0% {\n transform: rotate(0deg);\n border-radius: 50%;\n}\n25% {\n transform: rotate(90deg);\n border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;\n}\n50% {\n transform: rotate(180deg);\n border-radius: 50%;\n}\n75% {\n transform: rotate(270deg);\n border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;\n}\n100% {\n transform: rotate(360deg);\n border-radius: 50%;\n}\n", Za = "\n0% {\n background-position: 50% 0%;\n}\n100% {\n background-position: 50% 100%;\n}\n", Qa = "\n0% {\n transform: translateX(-100%);\n opacity: 0;\n}\n100% {\n transform: translateX(0);\n opacity: 1;\n}\n", $a = "\n0% {\n transform: translateX(0);\n opacity: 1;\n}\n100% {\n transform: translateX(-100%);\n opacity: 0;\n}\n", eo = "\n0% {\n transform: translateX(100%);\n opacity: 0;\n}\n100% {\n transform: translateX(0);\n opacity: 1;\n}\n", to = "\n0% {\n transform: translateX(0%);\n opacity: 1;\n\n}\n100% {\n transform: translateX(100%);\n opacity: 0;\n}\n", no = "\n0% {\n transform: translateY(0px);\n}\n50% {\n transform: translateY(5px);\n}\n100% {\n transform: translateY(0px);\n}\n", ro = "\n0% {\n transform: rotateZ(0deg) translateY(0px);\n}\n25% {\n transform: rotateZ(2.5deg) translateY(-3px);\n}\n50% {\n transform: rotateZ(0deg) translateY(0px);\n}\n75% {\n transform: rotateZ(-2.5deg) translateY(-3px);\n}\n100% {\n transform: rotateZ(0deg) translateY(0px);\n}\n", io = "\n0% {\n transform: scale(0.2) rotate(-24deg);\n opacity: 0;\n}\n100% {\n transform: scale(1) rotate(0deg);\n opacity: 1;\n}\n", ao = "@keyframes keyframeShift {\n0% {\n transform: translateY(0%);\n opacity: 1;\n}\n\n50% {\n transform: translateY(-50%);\n opacity: 0.75;\n}\n\n100% {\n transform: translateY(-100%);\n opacity: 1;\n}\n}", oo = "@keyframes keyframeShift {\n0% {\n transform: translateY(0%);\n opacity: 1;\n}\n\n50% {\n transform: translateY(50%);\n opacity: 0.75;\n}\n\n100% {\n transform: translateY(100%);\n opacity: 1;\n}\n}", q = (e) => {
2864
+ }, Ea = "\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n", Da = "\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n", Oa = "\n 0%, 100% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.05);\n }\n", ka = "\n8%,\n41% {\n transform: translateX(-10px);\n}\n25%,\n58% {\n transform: translateX(10px);\n}\n75% {\n transform: translateX(-5px);\n}\n92% {\n transform: translateX(5px);\n}\n0%,\n100% {\n transform: translateX(0);\n}\n", Aa = "\n 0%, 20%, 50%, 80%, 100% {\n transform: translateY(0);\n }\n 40% {\n transform: translateY(-30px);\n }\n 60% {\n transform: translateY(-15px);\n }\n", ja = "\n 0% {\n transform: perspective(400px) rotateY(0);\n animation-timing-function: ease-out;\n }\n 40% {\n transform: perspective(400px) translateZ(150px) rotateY(170deg);\n animation-timing-function: ease-out;\n }\n 50% {\n transform: perspective(400px) translateZ(150px) rotateY(190deg) scale(1);\n animation-timing-function: ease-in;\n }\n 80% {\n transform: perspective(400px) rotateY(360deg) scale(.95);\n animation-timing-function: ease-in;\n }\n 100% {\n transform: perspective(400px) scale(1);\n animation-timing-function: ease-in;\n }\n", Ma = "\n 0% {\n transform-origin: center;\n transform: rotate3d(0, 0, 1, -200deg);\n opacity: 0;\n }\n 100% {\n transform-origin: center;\n transform: none;\n opacity: 1;\n }\n", Na = "\n 0% {\n transform: translateY(1000px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n", Pa = "\n 0% {\n transform: scale(1);\n }\n 14% {\n transform: scale(1.3);\n }\n 28% {\n transform: scale(1);\n }\n 42% {\n transform: scale(1.3);\n }\n 70% {\n transform: scale(1);\n }\n", Fa = "\n 0%, 100% {\n box-shadow: 0 0 5px rgb(0 0 0 / 20%);\n }\n 50% {\n box-shadow: 0 0 20px rgb(0 0 0 / 80%);\n }\n", Ia = "\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n", La = "\n 0% {\n color: red;\n }\n 15% {\n color: orange;\n }\n 30% {\n color: yellow;\n }\n 45% {\n color: green;\n }\n 60% {\n color: blue;\n }\n 75% {\n color: indigo;\n }\n 90% {\n color: violet;\n }\n 100% {\n color: red;\n }\n", Ra = "@keyframes keyframeDelete {\n 0% {\n transform: translateX(0%) rotate(0deg);\n opacity: 1;\n }\n 25% {\n transform: translateX(0%) rotate(5deg);\n opacity: 1;\n }\n 50% {\n transform: translateX(25%) rotate(10deg);\n opacity: 0.5;\n }\n 75% {\n transform: translateX(0%) rotate(0deg);\n opacity: 0.25;\n }\n 100% {\n transform: translateX(-100%);\n opacity: 0;\n }\n}", za = "@keyframes keyframeDelete {\n 0% {\n transform: translateX(0%) rotate(0deg);\n opacity: 1;\n }\n 25% {\n transform: translateX(0%) rotate(-5deg);\n opacity: 1;\n }\n 50% {\n transform: translateX(-25%) rotate(-10deg);\n opacity: 0.5;\n }\n 100% {\n transform: translateX(100%);\n opacity: 0;\n }\n}", Ba = "\n0% {\n filter: blur(10px);\n opacity: 0;\n}\n100% {\n filter: blur(0px);\n opacity: 1;\n}\n", Va = "\n0% {\n filter: blur(0px);\n opacity: 1;\n}\n100% {\n filter: blur(10px);\n opacity: 0;\n}\n", Ha = "\n0% {\n filter: blur(0px);\n}\n50% {\n filter: blur(10px);\n}\n100% {\n filter: blur(0px);\n}\n", Ua = "\n0% {\n width: 0%;\n background-color: #ff9999;\n}\n25% {\n width: 25%;\n background-color: #ffcc99;\n}\n50% {\n width: 50%;\n background-color: #ffff99;\n}\n75% {\n width: 75%;\n background-color: #99ff99;\n}\n100% {\n width: 100%;\n background-color: #99ccff;\n}\n", Wa = "\n0% {\n background-position: -200% 0;\n}\n100% {\n background-position: 200% 0;\n}\n", Ga = "\n0%, 100% {\n filter: blur(0px);\n opacity: 1;\n}\n50% {\n filter: blur(4px);\n opacity: 0.5;\n}\n", Ka = "\n0% {\n background-position: 0% 50%;\n}\n50% {\n background-position: 100% 50%;\n}\n100% {\n background-position: 0% 50%;\n}\n", qa = "\n0% {\n transform: rotate(0deg) scale(1);\n}\n25% {\n transform: rotate(90deg) scale(1.1);\n}\n50% {\n transform: rotate(180deg) scale(1);\n}\n75% {\n transform: rotate(270deg) scale(0.9);\n}\n100% {\n transform: rotate(360deg) scale(1);\n}\n", Ja = "\n0%, 100% {\n border-right-color: transparent;\n}\n50% {\n border-right-color: black;\n}\n", Ya = "\n0% {\n max-height: 0;\n opacity: 0;\n}\n100% {\n max-height: 1000px;\n opacity: 1;\n}\n", Xa = "\n0%, 100% {\n transform: translateY(0);\n}\n25% {\n transform: translateY(-10px);\n}\n50% {\n transform: translateY(0);\n}\n75% {\n transform: translateY(-5px);\n}\n", Za = "\n0% {\n transform: rotate(0deg);\n border-radius: 50%;\n}\n25% {\n transform: rotate(90deg);\n border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;\n}\n50% {\n transform: rotate(180deg);\n border-radius: 50%;\n}\n75% {\n transform: rotate(270deg);\n border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;\n}\n100% {\n transform: rotate(360deg);\n border-radius: 50%;\n}\n", Qa = "\n0% {\n background-position: 50% 0%;\n}\n100% {\n background-position: 50% 100%;\n}\n", $a = "\n0% {\n transform: translateX(-100%);\n opacity: 0;\n}\n100% {\n transform: translateX(0);\n opacity: 1;\n}\n", eo = "\n0% {\n transform: translateX(0);\n opacity: 1;\n}\n100% {\n transform: translateX(-100%);\n opacity: 0;\n}\n", to = "\n0% {\n transform: translateX(100%);\n opacity: 0;\n}\n100% {\n transform: translateX(0);\n opacity: 1;\n}\n", no = "\n0% {\n transform: translateX(0%);\n opacity: 1;\n\n}\n100% {\n transform: translateX(100%);\n opacity: 0;\n}\n", ro = "\n0% {\n transform: translateY(0px);\n}\n50% {\n transform: translateY(5px);\n}\n100% {\n transform: translateY(0px);\n}\n", io = "\n0% {\n transform: rotateZ(0deg) translateY(0px);\n}\n25% {\n transform: rotateZ(2.5deg) translateY(-3px);\n}\n50% {\n transform: rotateZ(0deg) translateY(0px);\n}\n75% {\n transform: rotateZ(-2.5deg) translateY(-3px);\n}\n100% {\n transform: rotateZ(0deg) translateY(0px);\n}\n", ao = "\n0% {\n transform: scale(0.2) rotate(-24deg);\n opacity: 0;\n}\n100% {\n transform: scale(1) rotate(0deg);\n opacity: 1;\n}\n", oo = "@keyframes keyframeShift {\n0% {\n transform: translateY(0%);\n opacity: 1;\n}\n\n50% {\n transform: translateY(-50%);\n opacity: 0.75;\n}\n\n100% {\n transform: translateY(-100%);\n opacity: 1;\n}\n}", so = "@keyframes keyframeShift {\n0% {\n transform: translateY(0%);\n opacity: 1;\n}\n\n50% {\n transform: translateY(50%);\n opacity: 0.75;\n}\n\n100% {\n transform: translateY(100%);\n opacity: 1;\n}\n}", K = (e) => {
2863
2865
  let t = e.trim();
2864
2866
  if (!t.startsWith("@keyframes")) return e;
2865
2867
  let n = t.indexOf("{"), r = t.lastIndexOf("}");
2866
2868
  if (n === -1 || r <= n) return e;
2867
2869
  let i = t.slice(10, n).trim();
2868
2870
  return i === "" || i.includes("{") ? e : t.slice(n + 1, r);
2869
- }, so = {
2871
+ }, co = {
2870
2872
  response: .35,
2871
2873
  dampingFraction: .78
2872
- }, co = {
2874
+ }, lo = {
2873
2875
  response: .5,
2874
2876
  dampingFraction: .5
2875
- }, lo = {
2877
+ }, uo = {
2876
2878
  response: .7,
2877
2879
  dampingFraction: .95
2878
- }, { response: uo, dampingFraction: fo } = Yr([
2880
+ }, { response: fo, dampingFraction: po } = Xr([
2879
2881
  1,
2880
2882
  120,
2881
2883
  12,
2882
2884
  0
2883
- ]), po = {
2884
- response: uo,
2885
- dampingFraction: fo
2886
- }, mo = {
2885
+ ]), mo = {
2886
+ response: fo,
2887
+ dampingFraction: po
2888
+ }, ho = {
2887
2889
  springScaleInKeyframes: "\n 0% {\n transform: scale(0.6);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n",
2888
2890
  springSlideInKeyframes: "\n 0% {\n transform: translateY(40px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n",
2889
2891
  springPopKeyframes: "\n 0%, 100% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.15);\n }\n",
2890
2892
  springWobbleKeyframes: "\n 0%, 100% {\n transform: rotate(0deg);\n }\n 50% {\n transform: rotate(8deg);\n }\n"
2891
- }, ho = {
2893
+ }, go = {
2892
2894
  fadeIn: {
2893
- css: q(Ta),
2895
+ css: K(Ea),
2894
2896
  options: {
2895
2897
  duration: 700,
2896
2898
  timingFunction: "ease-in-out"
@@ -2898,7 +2900,7 @@ var wa = class extends la {
2898
2900
  group: "enter"
2899
2901
  },
2900
2902
  fadeOut: {
2901
- css: q(Ea),
2903
+ css: K(Da),
2902
2904
  options: {
2903
2905
  duration: 700,
2904
2906
  timingFunction: "ease-in-out"
@@ -2906,7 +2908,7 @@ var wa = class extends la {
2906
2908
  group: "exit"
2907
2909
  },
2908
2910
  pulse: {
2909
- css: q(Da),
2911
+ css: K(Oa),
2910
2912
  options: {
2911
2913
  duration: 1e3,
2912
2914
  timingFunction: "ease-in-out",
@@ -2915,7 +2917,7 @@ var wa = class extends la {
2915
2917
  group: "attention"
2916
2918
  },
2917
2919
  shake: {
2918
- css: q(Oa),
2920
+ css: K(ka),
2919
2921
  options: {
2920
2922
  duration: 820,
2921
2923
  timingFunction: "ease-in-out"
@@ -2923,7 +2925,7 @@ var wa = class extends la {
2923
2925
  group: "attention"
2924
2926
  },
2925
2927
  bounce: {
2926
- css: q(ka),
2928
+ css: K(Aa),
2927
2929
  options: {
2928
2930
  duration: 1e3,
2929
2931
  timingFunction: "cubic-bezier(0.28, 0.84, 0.42, 1)"
@@ -2931,7 +2933,7 @@ var wa = class extends la {
2931
2933
  group: "attention"
2932
2934
  },
2933
2935
  flipPreset: {
2934
- css: q(Aa),
2936
+ css: K(ja),
2935
2937
  options: {
2936
2938
  duration: 1e3,
2937
2939
  timingFunction: "ease-in-out"
@@ -2940,7 +2942,7 @@ var wa = class extends la {
2940
2942
  taxonomyName: "flip"
2941
2943
  },
2942
2944
  rotateIn: {
2943
- css: q(ja),
2945
+ css: K(Ma),
2944
2946
  options: {
2945
2947
  duration: 1e3,
2946
2948
  timingFunction: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
@@ -2948,7 +2950,7 @@ var wa = class extends la {
2948
2950
  group: "enter"
2949
2951
  },
2950
2952
  slideIn: {
2951
- css: q(Ma),
2953
+ css: K(Na),
2952
2954
  options: {
2953
2955
  duration: 1e3,
2954
2956
  timingFunction: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
@@ -2956,7 +2958,7 @@ var wa = class extends la {
2956
2958
  group: "enter"
2957
2959
  },
2958
2960
  heartbeat: {
2959
- css: q(Na),
2961
+ css: K(Pa),
2960
2962
  options: {
2961
2963
  duration: 1500,
2962
2964
  timingFunction: "ease-in-out",
@@ -2965,7 +2967,7 @@ var wa = class extends la {
2965
2967
  group: "loop"
2966
2968
  },
2967
2969
  glow: {
2968
- css: q(Pa),
2970
+ css: K(Fa),
2969
2971
  options: {
2970
2972
  duration: 2e3,
2971
2973
  timingFunction: "ease-in-out",
@@ -2974,7 +2976,7 @@ var wa = class extends la {
2974
2976
  group: "loop"
2975
2977
  },
2976
2978
  typewriter: {
2977
- css: q(Fa),
2979
+ css: K(Ia),
2978
2980
  options: {
2979
2981
  duration: 3e3,
2980
2982
  timingFunction: "steps(40, jump-end)",
@@ -2982,7 +2984,7 @@ var wa = class extends la {
2982
2984
  }
2983
2985
  },
2984
2986
  rainbowText: {
2985
- css: q(Ia),
2987
+ css: K(La),
2986
2988
  options: {
2987
2989
  duration: 5e3,
2988
2990
  timingFunction: "linear",
@@ -2991,7 +2993,7 @@ var wa = class extends la {
2991
2993
  group: "loop"
2992
2994
  },
2993
2995
  warpLeft: {
2994
- css: q(La),
2996
+ css: K(Ra),
2995
2997
  options: {
2996
2998
  duration: 700,
2997
2999
  timingFunction: "ease-in-bounce"
@@ -2999,7 +3001,7 @@ var wa = class extends la {
2999
3001
  group: "exit"
3000
3002
  },
3001
3003
  warpRight: {
3002
- css: q(Ra),
3004
+ css: K(za),
3003
3005
  options: {
3004
3006
  duration: 700,
3005
3007
  timingFunction: "ease-in-bounce"
@@ -3007,7 +3009,7 @@ var wa = class extends la {
3007
3009
  group: "exit"
3008
3010
  },
3009
3011
  blurIn: {
3010
- css: q(za),
3012
+ css: K(Ba),
3011
3013
  options: {
3012
3014
  duration: 2e3,
3013
3015
  timingFunction: "ease-in-out"
@@ -3015,7 +3017,7 @@ var wa = class extends la {
3015
3017
  group: "enter"
3016
3018
  },
3017
3019
  blurOut: {
3018
- css: q(Ba),
3020
+ css: K(Va),
3019
3021
  options: {
3020
3022
  duration: 2e3,
3021
3023
  timingFunction: "ease-in-out"
@@ -3023,14 +3025,14 @@ var wa = class extends la {
3023
3025
  group: "exit"
3024
3026
  },
3025
3027
  blurInOut: {
3026
- css: q(Va),
3028
+ css: K(Ha),
3027
3029
  options: {
3028
3030
  duration: 2e3,
3029
3031
  timingFunction: "ease-in-out"
3030
3032
  }
3031
3033
  },
3032
3034
  progressBar: {
3033
- css: q(Ha),
3035
+ css: K(Ua),
3034
3036
  options: {
3035
3037
  duration: 3e3,
3036
3038
  timingFunction: "linear",
@@ -3038,7 +3040,7 @@ var wa = class extends la {
3038
3040
  }
3039
3041
  },
3040
3042
  skeletonLoading: {
3041
- css: q(Ua),
3043
+ css: K(Wa),
3042
3044
  options: {
3043
3045
  duration: 1500,
3044
3046
  timingFunction: "linear",
@@ -3047,14 +3049,14 @@ var wa = class extends la {
3047
3049
  group: "loop"
3048
3050
  },
3049
3051
  textFocusBlur: {
3050
- css: q(Wa),
3052
+ css: K(Ga),
3051
3053
  options: {
3052
3054
  duration: 2e3,
3053
3055
  timingFunction: "ease-in-out"
3054
3056
  }
3055
3057
  },
3056
3058
  gradientBackground: {
3057
- css: q(Ga),
3059
+ css: K(Ka),
3058
3060
  options: {
3059
3061
  duration: 5e3,
3060
3062
  timingFunction: "ease-in-out",
@@ -3063,14 +3065,14 @@ var wa = class extends la {
3063
3065
  group: "loop"
3064
3066
  },
3065
3067
  rotateScale: {
3066
- css: q(Ka),
3068
+ css: K(qa),
3067
3069
  options: {
3068
3070
  duration: 2500,
3069
3071
  timingFunction: "cubic-bezier(0.68, -0.55, 0.265, 1.55)"
3070
3072
  }
3071
3073
  },
3072
3074
  typingCursor: {
3073
- css: q(qa),
3075
+ css: K(Ja),
3074
3076
  options: {
3075
3077
  duration: 800,
3076
3078
  timingFunction: "steps(2, jump-start)",
@@ -3079,7 +3081,7 @@ var wa = class extends la {
3079
3081
  group: "loop"
3080
3082
  },
3081
3083
  accordionExpand: {
3082
- css: q(Ja),
3084
+ css: K(Ya),
3083
3085
  options: {
3084
3086
  duration: 500,
3085
3087
  timingFunction: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
@@ -3087,7 +3089,7 @@ var wa = class extends la {
3087
3089
  }
3088
3090
  },
3089
3091
  notificationBounce: {
3090
- css: q(Ya),
3092
+ css: K(Xa),
3091
3093
  options: {
3092
3094
  duration: 1e3,
3093
3095
  timingFunction: "cubic-bezier(0.28, 0.84, 0.42, 1)"
@@ -3095,7 +3097,7 @@ var wa = class extends la {
3095
3097
  group: "attention"
3096
3098
  },
3097
3099
  spinner: {
3098
- css: q(Xa),
3100
+ css: K(Za),
3099
3101
  options: {
3100
3102
  duration: 2e3,
3101
3103
  timingFunction: "linear",
@@ -3104,7 +3106,7 @@ var wa = class extends la {
3104
3106
  group: "loop"
3105
3107
  },
3106
3108
  parallaxScroll: {
3107
- css: q(Za),
3109
+ css: K(Qa),
3108
3110
  options: {
3109
3111
  duration: 1e4,
3110
3112
  timingFunction: "linear",
@@ -3113,7 +3115,7 @@ var wa = class extends la {
3113
3115
  group: "loop"
3114
3116
  },
3115
3117
  slideInLeft: {
3116
- css: q(Qa),
3118
+ css: K($a),
3117
3119
  options: {
3118
3120
  duration: 1e3,
3119
3121
  timingFunction: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
@@ -3121,7 +3123,7 @@ var wa = class extends la {
3121
3123
  group: "enter"
3122
3124
  },
3123
3125
  slideOutLeft: {
3124
- css: q($a),
3126
+ css: K(eo),
3125
3127
  options: {
3126
3128
  duration: 1e3,
3127
3129
  timingFunction: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
@@ -3129,7 +3131,7 @@ var wa = class extends la {
3129
3131
  group: "exit"
3130
3132
  },
3131
3133
  slideInRight: {
3132
- css: q(eo),
3134
+ css: K(to),
3133
3135
  options: {
3134
3136
  duration: 1e3,
3135
3137
  timingFunction: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
@@ -3137,7 +3139,7 @@ var wa = class extends la {
3137
3139
  group: "enter"
3138
3140
  },
3139
3141
  slideOutRight: {
3140
- css: q(to),
3142
+ css: K(no),
3141
3143
  options: {
3142
3144
  duration: 1e3,
3143
3145
  timingFunction: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
@@ -3145,7 +3147,7 @@ var wa = class extends la {
3145
3147
  group: "exit"
3146
3148
  },
3147
3149
  hover: {
3148
- css: q(no),
3150
+ css: K(ro),
3149
3151
  options: {
3150
3152
  duration: 3e3,
3151
3153
  timingFunction: "ease-in-out",
@@ -3156,7 +3158,7 @@ var wa = class extends la {
3156
3158
  group: "loop"
3157
3159
  },
3158
3160
  garlandSway: {
3159
- css: ro,
3161
+ css: io,
3160
3162
  options: {
3161
3163
  duration: 4200,
3162
3164
  timingFunction: "ease-in-out",
@@ -3167,16 +3169,16 @@ var wa = class extends la {
3167
3169
  group: "loop"
3168
3170
  },
3169
3171
  unfurl: {
3170
- css: io,
3172
+ css: ao,
3171
3173
  options: {
3172
3174
  duration: 900,
3173
- timingFunction: l(po),
3175
+ timingFunction: d(mo),
3174
3176
  fillMode: "none"
3175
3177
  },
3176
3178
  group: "enter"
3177
3179
  },
3178
3180
  jumpUp: {
3179
- css: q(ao),
3181
+ css: K(oo),
3180
3182
  options: {
3181
3183
  duration: 700,
3182
3184
  timingFunction: "ease-in-bounce"
@@ -3184,7 +3186,7 @@ var wa = class extends la {
3184
3186
  group: "enter"
3185
3187
  },
3186
3188
  jumpDown: {
3187
- css: q(oo),
3189
+ css: K(so),
3188
3190
  options: {
3189
3191
  duration: 700,
3190
3192
  timingFunction: "ease-in-bounce"
@@ -3192,143 +3194,143 @@ var wa = class extends la {
3192
3194
  group: "exit"
3193
3195
  },
3194
3196
  springScaleIn: {
3195
- css: mo.springScaleInKeyframes,
3197
+ css: ho.springScaleInKeyframes,
3196
3198
  options: {
3197
3199
  duration: 600,
3198
- timingFunction: l(co)
3200
+ timingFunction: d(lo)
3199
3201
  },
3200
3202
  group: "enter"
3201
3203
  },
3202
3204
  springSlideIn: {
3203
- css: mo.springSlideInKeyframes,
3205
+ css: ho.springSlideInKeyframes,
3204
3206
  options: {
3205
3207
  duration: 600,
3206
- timingFunction: l(so)
3208
+ timingFunction: d(co)
3207
3209
  },
3208
3210
  group: "enter"
3209
3211
  },
3210
3212
  springPop: {
3211
- css: mo.springPopKeyframes,
3213
+ css: ho.springPopKeyframes,
3212
3214
  options: {
3213
3215
  duration: 700,
3214
- timingFunction: l(co)
3216
+ timingFunction: d(lo)
3215
3217
  },
3216
3218
  group: "attention"
3217
3219
  },
3218
3220
  springWobble: {
3219
- css: mo.springWobbleKeyframes,
3221
+ css: ho.springWobbleKeyframes,
3220
3222
  options: {
3221
3223
  duration: 800,
3222
- timingFunction: l(lo)
3224
+ timingFunction: d(uo)
3223
3225
  },
3224
3226
  group: "attention"
3225
3227
  }
3226
- }, go = (e) => (t) => new W({
3228
+ }, _o = (e) => (t) => new U({
3227
3229
  ...e.options,
3228
3230
  ...t ?? {}
3229
- }).fromString(e.css), _o = Object.fromEntries(Object.entries(ho).map(([e, t]) => [e, go(t)])), { fadeIn: vo, fadeOut: yo, pulse: bo, shake: xo, bounce: So, flipPreset: Co, rotateIn: wo, slideIn: To, heartbeat: Eo, glow: Do, typewriter: Oo, rainbowText: ko, warpLeft: Ao, warpRight: jo, blurIn: Mo, blurOut: No, blurInOut: Po, progressBar: Fo, skeletonLoading: Io, textFocusBlur: Lo, gradientBackground: Ro, rotateScale: zo, typingCursor: Bo, accordionExpand: Vo, notificationBounce: Ho, spinner: Uo, parallaxScroll: Wo, slideInLeft: Go, slideOutLeft: Ko, slideInRight: qo, slideOutRight: Jo, hover: Yo, garlandSway: Xo, unfurl: Zo, jumpUp: Qo, jumpDown: $o, springScaleIn: es, springSlideIn: ts, springPop: ns, springWobble: rs } = _o, is = (e) => Object.fromEntries(Object.entries(ho).filter(([, t]) => t.group === e).map(([e, t]) => [t.taxonomyName ?? e, _o[e]])), as = is("enter"), os = is("exit"), ss = is("attention"), cs = is("loop"), ls = {
3230
- enter: as,
3231
- exit: os,
3232
- attention: ss,
3233
- loop: cs
3234
- }, us = /* @__PURE__ */ Ne({
3235
- accordionExpand: () => Vo,
3236
- attentionPresets: () => ss,
3237
- blurIn: () => Mo,
3238
- blurInOut: () => Po,
3239
- blurOut: () => No,
3240
- bounce: () => So,
3241
- enterPresets: () => as,
3242
- exitPresets: () => os,
3243
- fadeIn: () => vo,
3244
- fadeOut: () => yo,
3245
- flipPreset: () => Co,
3246
- garlandSway: () => Xo,
3247
- glow: () => Do,
3248
- gradientBackground: () => Ro,
3249
- heartbeat: () => Eo,
3250
- hover: () => Yo,
3251
- jumpDown: () => $o,
3252
- jumpUp: () => Qo,
3253
- loopPresets: () => cs,
3254
- notificationBounce: () => Ho,
3255
- parallaxScroll: () => Wo,
3256
- presetTaxonomy: () => ls,
3257
- progressBar: () => Fo,
3258
- pulse: () => bo,
3259
- rainbowText: () => ko,
3260
- rotateIn: () => wo,
3261
- rotateScale: () => zo,
3262
- shake: () => xo,
3263
- skeletonLoading: () => Io,
3264
- slideIn: () => To,
3265
- slideInLeft: () => Go,
3266
- slideInRight: () => qo,
3267
- slideOutLeft: () => Ko,
3268
- slideOutRight: () => Jo,
3269
- spinner: () => Uo,
3270
- springPop: () => ns,
3271
- springScaleIn: () => es,
3272
- springSlideIn: () => ts,
3273
- springWobble: () => rs,
3274
- textFocusBlur: () => Lo,
3275
- typewriter: () => Oo,
3276
- typingCursor: () => Bo,
3277
- unfurl: () => Zo,
3278
- warpLeft: () => Ao,
3279
- warpRight: () => jo
3280
- }), ds = (e, t, n, r = {}) => {
3231
+ }).fromString(e.css), vo = Object.fromEntries(Object.entries(go).map(([e, t]) => [e, _o(t)])), { fadeIn: yo, fadeOut: bo, pulse: xo, shake: So, bounce: Co, flipPreset: wo, rotateIn: To, slideIn: Eo, heartbeat: Do, glow: Oo, typewriter: ko, rainbowText: Ao, warpLeft: jo, warpRight: Mo, blurIn: No, blurOut: Po, blurInOut: Fo, progressBar: Io, skeletonLoading: Lo, textFocusBlur: Ro, gradientBackground: zo, rotateScale: Bo, typingCursor: Vo, accordionExpand: Ho, notificationBounce: Uo, spinner: Wo, parallaxScroll: Go, slideInLeft: Ko, slideOutLeft: qo, slideInRight: Jo, slideOutRight: Yo, hover: Xo, garlandSway: Zo, unfurl: Qo, jumpUp: $o, jumpDown: es, springScaleIn: ts, springSlideIn: ns, springPop: rs, springWobble: is } = vo, as = (e) => Object.fromEntries(Object.entries(go).filter(([, t]) => t.group === e).map(([e, t]) => [t.taxonomyName ?? e, vo[e]])), os = as("enter"), ss = as("exit"), cs = as("attention"), ls = as("loop"), us = {
3232
+ enter: os,
3233
+ exit: ss,
3234
+ attention: cs,
3235
+ loop: ls
3236
+ }, ds = /* @__PURE__ */ Ne({
3237
+ accordionExpand: () => Ho,
3238
+ attentionPresets: () => cs,
3239
+ blurIn: () => No,
3240
+ blurInOut: () => Fo,
3241
+ blurOut: () => Po,
3242
+ bounce: () => Co,
3243
+ enterPresets: () => os,
3244
+ exitPresets: () => ss,
3245
+ fadeIn: () => yo,
3246
+ fadeOut: () => bo,
3247
+ flipPreset: () => wo,
3248
+ garlandSway: () => Zo,
3249
+ glow: () => Oo,
3250
+ gradientBackground: () => zo,
3251
+ heartbeat: () => Do,
3252
+ hover: () => Xo,
3253
+ jumpDown: () => es,
3254
+ jumpUp: () => $o,
3255
+ loopPresets: () => ls,
3256
+ notificationBounce: () => Uo,
3257
+ parallaxScroll: () => Go,
3258
+ presetTaxonomy: () => us,
3259
+ progressBar: () => Io,
3260
+ pulse: () => xo,
3261
+ rainbowText: () => Ao,
3262
+ rotateIn: () => To,
3263
+ rotateScale: () => Bo,
3264
+ shake: () => So,
3265
+ skeletonLoading: () => Lo,
3266
+ slideIn: () => Eo,
3267
+ slideInLeft: () => Ko,
3268
+ slideInRight: () => Jo,
3269
+ slideOutLeft: () => qo,
3270
+ slideOutRight: () => Yo,
3271
+ spinner: () => Wo,
3272
+ springPop: () => rs,
3273
+ springScaleIn: () => ts,
3274
+ springSlideIn: () => ns,
3275
+ springWobble: () => is,
3276
+ textFocusBlur: () => Ro,
3277
+ typewriter: () => ko,
3278
+ typingCursor: () => Vo,
3279
+ unfurl: () => Qo,
3280
+ warpLeft: () => jo,
3281
+ warpRight: () => Mo
3282
+ }), fs = (e, t, n, r = {}) => {
3281
3283
  e.push({
3282
3284
  code: t,
3283
3285
  message: n,
3284
3286
  ...r
3285
3287
  });
3286
- }, fs = (e) => {
3288
+ }, ps = (e) => {
3287
3289
  if (typeof CSSKeyframesRule < "u" && e instanceof CSSKeyframesRule) return !0;
3288
3290
  let t = e;
3289
3291
  return t.type === 7 && typeof t.name == "string" && typeof t.cssText == "string";
3290
- }, ps = 32, ms = (e) => {
3292
+ }, ms = 32, hs = (e) => {
3291
3293
  let t = (t) => typeof e?.getPropertyValue == "function" ? String(e.getPropertyValue(t) ?? "") : "", n = `${t("animation-name")} ${t("animation")}`;
3292
3294
  return new Set(n.split(/[\s,]+/).filter((e) => e !== ""));
3293
- }, hs = (e) => e.cssRules !== void 0 && !fs(e), gs = (e, t, n, r = 0) => {
3295
+ }, gs = (e) => e.cssRules !== void 0 && !ps(e), _s = (e, t, n, r = 0) => {
3294
3296
  let i = [];
3295
3297
  for (let t = 0; t < e.length; t++) {
3296
3298
  let n = e[t];
3297
3299
  n?.type === 1 && typeof n.cssText == "string" && i.push({
3298
3300
  cssText: n.cssText,
3299
- names: ms(n.style)
3301
+ names: hs(n.style)
3300
3302
  });
3301
3303
  }
3302
3304
  for (let r = 0; r < e.length; r++) {
3303
3305
  let a = e[r];
3304
- if (a == null || !fs(a)) continue;
3306
+ if (a == null || !ps(a)) continue;
3305
3307
  let o = a.name;
3306
3308
  if (n.animationName != null && o !== n.animationName) continue;
3307
- let s = i.find((e) => e.names.has(o))?.cssText, c = [], l = _s(a.cssText, s, n.options, c);
3309
+ let s = i.find((e) => e.names.has(o))?.cssText, c = [], l = vs(a.cssText, s, n.options, c);
3308
3310
  l != null && t.set(o, {
3309
3311
  name: o,
3310
3312
  animation: l,
3311
3313
  diagnostics: c
3312
3314
  });
3313
3315
  }
3314
- if (r < ps) for (let i = 0; i < e.length; i++) {
3316
+ if (r < ms) for (let i = 0; i < e.length; i++) {
3315
3317
  let a = e[i];
3316
- a == null || !hs(a) || gs(a.cssRules, t, n, r + 1);
3318
+ a == null || !gs(a) || _s(a.cssRules, t, n, r + 1);
3317
3319
  }
3318
- }, _s = (e, t, n, r) => {
3320
+ }, vs = (e, t, n, r) => {
3319
3321
  try {
3320
- let i = new W(n ?? {}), a = t ? `${t}\n${e}` : e;
3322
+ let i = new U(n ?? {}), a = t ? `${t}\n${e}` : e;
3321
3323
  i.fromString(a);
3322
3324
  for (let e of i.diagnostics) r.push(e);
3323
3325
  return i;
3324
3326
  } catch (t) {
3325
- ds(r, "PARSE_ERROR", `@keyframes rule could not be reconstructed: ${t instanceof Error ? t.message : String(t)} — the source CSS could not be parsed faithfully (refused, not approximated)`, { input: e });
3327
+ fs(r, "PARSE_ERROR", `@keyframes rule could not be reconstructed: ${t instanceof Error ? t.message : String(t)} — the source CSS could not be parsed faithfully (refused, not approximated)`, { input: e });
3326
3328
  return;
3327
3329
  }
3328
- }, vs = (e, t = {}) => {
3330
+ }, ys = (e, t = {}) => {
3329
3331
  let n = /* @__PURE__ */ new Map(), r = [], i;
3330
3332
  if (e == null) {
3331
- if (typeof document > "u") return ds(r, "CORS_SKIP", "no document in scope — resolveLiveKeyframes() needs a Document, a ShadowRoot, a CSSStyleSheet[], or a CSSStyleSheet (SSR has no live CSSOM)"), {
3333
+ if (typeof document > "u") return fs(r, "CORS_SKIP", "no document in scope — resolveLiveKeyframes() needs a Document, a ShadowRoot, a CSSStyleSheet[], or a CSSStyleSheet (SSR has no live CSSOM)"), {
3332
3334
  animations: n,
3333
3335
  diagnostics: r
3334
3336
  };
@@ -3340,18 +3342,18 @@ var wa = class extends la {
3340
3342
  i = e.cssRules;
3341
3343
  } catch (t) {
3342
3344
  let n = e.href ?? "(inline)";
3343
- ds(r, "CORS_SKIP", `cross-origin stylesheet skipped: ${n} — its cssRules threw ${t instanceof Error ? t.name : "an error"} (no Access-Control-Allow-Origin + crossorigin). The sheet is REPORTED, not silently dropped.`, { input: n });
3345
+ fs(r, "CORS_SKIP", `cross-origin stylesheet skipped: ${n} — its cssRules threw ${t instanceof Error ? t.name : "an error"} (no Access-Control-Allow-Origin + crossorigin). The sheet is REPORTED, not silently dropped.`, { input: n });
3344
3346
  continue;
3345
3347
  }
3346
- i != null && gs(i, n, t);
3348
+ i != null && _s(i, n, t);
3347
3349
  }
3348
3350
  return {
3349
3351
  animations: n,
3350
3352
  diagnostics: r
3351
3353
  };
3352
- }, ys = (e, t = {}) => vs(e, t), bs = (e, t = {}) => {
3354
+ }, bs = (e, t = {}) => ys(e, t), xs = (e, t = {}) => {
3353
3355
  let n = /* @__PURE__ */ new Map(), r = [], i = e ?? (typeof document < "u" ? document : void 0);
3354
- if (i == null || typeof i.getAnimations != "function") return ds(r, "CORS_SKIP", "no getAnimations() in scope — fromLiveAnimations() needs a Document or Element with the Web Animations API (SSR has none)"), {
3356
+ if (i == null || typeof i.getAnimations != "function") return fs(r, "CORS_SKIP", "no getAnimations() in scope — fromLiveAnimations() needs a Document or Element with the Web Animations API (SSR has none)"), {
3355
3357
  animations: n,
3356
3358
  diagnostics: r
3357
3359
  };
@@ -3362,7 +3364,7 @@ var wa = class extends la {
3362
3364
  }
3363
3365
  let o = (i instanceof Document ? i : i.ownerDocument ?? (typeof document < "u" ? document : void 0)) ?? void 0;
3364
3366
  for (let e of a) {
3365
- let i = vs(o, {
3367
+ let i = ys(o, {
3366
3368
  ...t,
3367
3369
  animationName: e
3368
3370
  });
@@ -3373,11 +3375,11 @@ var wa = class extends la {
3373
3375
  animations: n,
3374
3376
  diagnostics: r
3375
3377
  };
3376
- }, xs = (e) => {
3378
+ }, Ss = (e) => {
3377
3379
  if (typeof e != "object" || !e) return !1;
3378
3380
  let t = e;
3379
3381
  return typeof t.value == "number" && typeof t.unit == "string";
3380
- }, Ss = async (e, t) => {
3382
+ }, Cs = async (e, t) => {
3381
3383
  let n = [], { animationName: r, commit: i = !0 } = t;
3382
3384
  if (typeof e.getAnimations != "function") return n.push({
3383
3385
  code: "WAAPI_INELIGIBLE",
@@ -3398,7 +3400,7 @@ var wa = class extends la {
3398
3400
  };
3399
3401
  let o = a.currentTime, s = null, c = 0;
3400
3402
  if (typeof o == "number" && Number.isFinite(o)) c = o;
3401
- else if (xs(o)) if (o.unit === "percent" && Number.isFinite(o.value)) s = o.value / 100;
3403
+ else if (Ss(o)) if (o.unit === "percent" && Number.isFinite(o.value)) s = o.value / 100;
3402
3404
  else return n.push({
3403
3405
  code: "ADOPT_REFUSE",
3404
3406
  message: `the running animation "${r}" reports a currentTime in an unsupported unit "${String(o.unit)}" — adoptRunning() refuses (only a numeric ms playhead or a scroll-driven "percent" CSSUnitValue can seed the takeover faithfully)`
@@ -3407,7 +3409,7 @@ var wa = class extends la {
3407
3409
  currentTime: 0,
3408
3410
  diagnostics: n
3409
3411
  };
3410
- let l = vs(e.ownerDocument ?? (typeof document < "u" ? document : void 0) ?? void 0, {
3412
+ let l = ys(e.ownerDocument ?? (typeof document < "u" ? document : void 0) ?? void 0, {
3411
3413
  ...t,
3412
3414
  animationName: r
3413
3415
  });
@@ -3429,18 +3431,18 @@ var wa = class extends la {
3429
3431
  try {
3430
3432
  a.cancel();
3431
3433
  } catch {}
3432
- return Cs(d, f), {
3434
+ return ws(d, f), {
3433
3435
  animation: d,
3434
3436
  currentTime: f,
3435
3437
  diagnostics: n
3436
3438
  };
3437
- }, Cs = (e, t) => {
3439
+ }, ws = (e, t) => {
3438
3440
  e.setUseWAAPI(!1), e.setDelay(0), e.onStart(), e.started = !0, e.startTime = (typeof performance < "u" && performance.now ? performance.now() : Date.now()) - t, e.t = t, e.play();
3439
- }, ws = {
3440
- entry: M.entry,
3441
- cover: M.cover,
3442
- contain: M.contain,
3443
- exit: M.exit,
3441
+ }, Ts = {
3442
+ entry: j.entry,
3443
+ cover: j.cover,
3444
+ contain: j.contain,
3445
+ exit: j.exit,
3444
3446
  normal: {
3445
3447
  start: 0,
3446
3448
  end: 1
@@ -3454,7 +3456,7 @@ var wa = class extends la {
3454
3456
  end: 1
3455
3457
  }
3456
3458
  };
3457
- function Ts(e) {
3459
+ function Es(e) {
3458
3460
  if (e == null) return null;
3459
3461
  let t = e.trim();
3460
3462
  if (t.endsWith("%")) {
@@ -3463,24 +3465,24 @@ function Ts(e) {
3463
3465
  }
3464
3466
  return null;
3465
3467
  }
3466
- function Es(e, t) {
3468
+ function Ds(e, t) {
3467
3469
  if (e == null) return t;
3468
- let n = Ts(e.offset);
3470
+ let n = Es(e.offset);
3469
3471
  if (n != null) {
3470
3472
  if (e.phase != null && e.phase !== "normal") {
3471
- let t = ws[e.phase];
3473
+ let t = Ts[e.phase];
3472
3474
  return t.start + n * (t.end - t.start);
3473
3475
  }
3474
3476
  return n;
3475
3477
  }
3476
- return e.phase == null ? t : ws[e.phase].start;
3478
+ return e.phase == null ? t : Ts[e.phase].start;
3477
3479
  }
3478
- function Ds(e) {
3480
+ function Os(e) {
3479
3481
  if (e == null) return {
3480
3482
  start: 0,
3481
3483
  end: 1
3482
3484
  };
3483
- let t = Es(e.start, 0), n = Es(e.end, 1);
3485
+ let t = Ds(e.start, 0), n = Ds(e.end, 1);
3484
3486
  return n > t ? {
3485
3487
  start: t,
3486
3488
  end: n
@@ -3491,7 +3493,7 @@ function Ds(e) {
3491
3493
  }
3492
3494
  //#endregion
3493
3495
  //#region src/animation/scroll/scene.ts
3494
- var Os = class {
3496
+ var ks = class {
3495
3497
  resolvedRange;
3496
3498
  snapPoints;
3497
3499
  snapSpring;
@@ -3502,22 +3504,22 @@ var Os = class {
3502
3504
  wasInside = !1;
3503
3505
  subscribers = new Map([["enter", /* @__PURE__ */ new Set()], ["leave", /* @__PURE__ */ new Set()]]);
3504
3506
  constructor(e = {}) {
3505
- if (this.resolvedRange = Ds(e.range), this.scrubSeconds = e.scrub ?? 0, this.snapPoints = e.snap != null && e.snap.length > 0 ? e.snap : void 0, this.scrubSeconds > 0) {
3506
- let t = n(1 / (this.scrubSeconds * 60 + 1), .01, 1);
3507
- this.smoother = new o({
3507
+ if (this.resolvedRange = Os(e.range), this.scrubSeconds = e.scrub ?? 0, this.snapPoints = e.snap != null && e.snap.length > 0 ? e.snap : void 0, this.scrubSeconds > 0) {
3508
+ let t = i(1 / (this.scrubSeconds * 60 + 1), .01, 1);
3509
+ this.smoother = new a({
3508
3510
  damping: t,
3509
3511
  clamp: !0,
3510
3512
  ...e.smoothing
3511
3513
  });
3512
3514
  }
3513
- this.snapPoints != null && (this.snapSpring = new u({ ...e.snapSpring }));
3515
+ this.snapPoints != null && (this.snapSpring = new c({ ...e.snapSpring }));
3514
3516
  }
3515
3517
  get range() {
3516
3518
  return this.resolvedRange;
3517
3519
  }
3518
3520
  scrollProgress(e) {
3519
- this.rawScroll = n(e, 0, 1);
3520
- let { start: t, end: r } = this.resolvedRange, i = r - t, a = i > 0 ? n((this.rawScroll - t) / i, 0, 1) : 0, o = this.rawScroll >= t && this.rawScroll <= r;
3521
+ this.rawScroll = i(e, 0, 1);
3522
+ let { start: t, end: n } = this.resolvedRange, r = n - t, a = r > 0 ? i((this.rawScroll - t) / r, 0, 1) : 0, o = this.rawScroll >= t && this.rawScroll <= n;
3521
3523
  return o && !this.wasInside && this.fire("enter", a), !o && this.wasInside && this.fire("leave", a), this.wasInside = o, this.smoother ? (this.smoother.setTarget(a), this.localProgress = this.smoother.current) : this.localProgress = a, this.localProgress;
3522
3524
  }
3523
3525
  tick(e) {
@@ -3531,15 +3533,15 @@ var Os = class {
3531
3533
  }
3532
3534
  snapTo(e = 0) {
3533
3535
  if (this.snapPoints == null || this.snapSpring == null) return null;
3534
- let t = n(f({
3536
+ let t = i(p({
3535
3537
  initial: this.localProgress,
3536
3538
  velocity: e
3537
- }), 0, 1), r = this.snapPoints[0], i = Math.abs(t - r);
3539
+ }), 0, 1), n = this.snapPoints[0], r = Math.abs(t - n);
3538
3540
  for (let e of this.snapPoints) {
3539
- let n = Math.abs(t - e);
3540
- n < i && (i = n, r = e);
3541
+ let i = Math.abs(t - e);
3542
+ i < r && (r = i, n = e);
3541
3543
  }
3542
- return this.snapSpring.reset(this.localProgress, e), this.snapSpring.target = r, r;
3544
+ return this.snapSpring.reset(this.localProgress, e), this.snapSpring.target = n, n;
3543
3545
  }
3544
3546
  tickSnap(e) {
3545
3547
  return this.snapSpring && !this.snapSpring.settled && (this.snapSpring.tickDt(e), this.localProgress = this.snapSpring.value), this.localProgress;
@@ -3552,12 +3554,12 @@ var Os = class {
3552
3554
  for (let n of this.subscribers.get(e)) n(t);
3553
3555
  }
3554
3556
  };
3555
- function ks(e = {}) {
3556
- return new Os(e);
3557
+ function As(e = {}) {
3558
+ return new ks(e);
3557
3559
  }
3558
3560
  //#endregion
3559
3561
  //#region src/animation/scroll/dispatch.ts
3560
- function As(e) {
3562
+ function js(e) {
3561
3563
  let { animation: t, nativeSpec: n, scrub: r, snap: i, velocity: a } = e;
3562
3564
  if (r) return {
3563
3565
  backend: "js",
@@ -3575,17 +3577,17 @@ function As(e) {
3575
3577
  backend: "js",
3576
3578
  reason: "non-DOM target or no native timeline spec (the universal JS driver)"
3577
3579
  };
3578
- let o = F(t);
3580
+ let o = P(t);
3579
3581
  if (!o.eligible) return {
3580
3582
  backend: "js",
3581
3583
  reason: o.reason
3582
3584
  };
3583
- let s = m(n);
3585
+ let s = h(n);
3584
3586
  if (s == null) return {
3585
3587
  backend: "js",
3586
3588
  reason: "native scroll/view timeline unavailable (feature absent)"
3587
3589
  };
3588
- let c = Sn(t, n, {
3590
+ let c = Cn(t, n, {
3589
3591
  eligibility: o,
3590
3592
  timeline: s
3591
3593
  });
@@ -3597,13 +3599,13 @@ function As(e) {
3597
3599
  reason: c.reason
3598
3600
  };
3599
3601
  }
3600
- function js(e) {
3602
+ function Ms(e) {
3601
3603
  let t = ["position: sticky;"];
3602
3604
  return e?.bottom == null ? t.push(`top: ${e?.top ?? 0}px;`) : t.push(`bottom: ${e.bottom}px;`), t.join(" ");
3603
3605
  }
3604
3606
  //#endregion
3605
3607
  //#region src/animation/scroll/trigger.ts
3606
- function Ms() {
3608
+ function Ns() {
3607
3609
  let e = globalThis.CSS;
3608
3610
  if (e == null || typeof e.supports != "function") return !1;
3609
3611
  try {
@@ -3612,7 +3614,7 @@ function Ms() {
3612
3614
  return !1;
3613
3615
  }
3614
3616
  }
3615
- var Ns = class {
3617
+ var Ps = class {
3616
3618
  type;
3617
3619
  triggerRange;
3618
3620
  _state = "idle";
@@ -3622,7 +3624,7 @@ var Ns = class {
3622
3624
  wasInside = !1;
3623
3625
  everEntered = !1;
3624
3626
  constructor(e = {}) {
3625
- this.type = e.type ?? "once", this.triggerRange = Ds(e.range);
3627
+ this.type = e.type ?? "once", this.triggerRange = Os(e.range);
3626
3628
  }
3627
3629
  get state() {
3628
3630
  return this._state;
@@ -3640,10 +3642,10 @@ var Ns = class {
3640
3642
  return this.triggerRange;
3641
3643
  }
3642
3644
  get usesNative() {
3643
- return Ms();
3645
+ return Ns();
3644
3646
  }
3645
3647
  triggerProgress(e) {
3646
- let t = n(e, 0, 1), { start: r, end: i } = this.triggerRange, a = i - r, o = a > 0 ? n((t - r) / a, 0, 1) : 0, s = t >= r && t <= i, c = s && !this.wasInside, l = !s && this.wasInside, u = l && t > i;
3648
+ let t = i(e, 0, 1), { start: n, end: r } = this.triggerRange, a = r - n, o = a > 0 ? i((t - n) / a, 0, 1) : 0, s = t >= n && t <= r, c = s && !this.wasInside, l = !s && this.wasInside, u = l && t > r;
3647
3649
  switch (this.type) {
3648
3650
  case "repeat":
3649
3651
  this.stepRepeat(s, c, l, o);
@@ -3679,18 +3681,18 @@ var Ns = class {
3679
3681
  return this._direction === "forward" ? e : 1 - e;
3680
3682
  }
3681
3683
  };
3682
- function Ps(e = {}) {
3683
- return new Ns("trigger" in e && e.trigger != null ? e.trigger : e);
3684
+ function Fs(e = {}) {
3685
+ return new Ps("trigger" in e && e.trigger != null ? e.trigger : e);
3684
3686
  }
3685
3687
  //#endregion
3686
3688
  //#region src/animation/scroll/drive.ts
3687
- function Fs(e) {
3689
+ function Is(e) {
3688
3690
  return typeof e == "object" && !!e && "targets" in e && "play" in e;
3689
3691
  }
3690
- function Is(e) {
3692
+ function Ls(e) {
3691
3693
  return typeof Element < "u" && e instanceof Element;
3692
3694
  }
3693
- function Ls(e, t, n) {
3695
+ function Rs(e, t, n) {
3694
3696
  if (n.nativeSpec != null) return n.nativeSpec;
3695
3697
  let r = e.timeline;
3696
3698
  if (r?.kind === "scroll") return {
@@ -3699,7 +3701,7 @@ function Ls(e, t, n) {
3699
3701
  ...n.axis ?? r.axis ? { axis: n.axis ?? r.axis } : {}
3700
3702
  };
3701
3703
  if (r?.kind === "view") {
3702
- let e = n.subject ?? (Is(t) ? t : Fs(t) && Is(t.targets[0]) ? t.targets[0] : void 0);
3704
+ let e = n.subject ?? (Ls(t) ? t : Is(t) && Ls(t.targets[0]) ? t.targets[0] : void 0);
3703
3705
  return e == null ? void 0 : {
3704
3706
  kind: "view",
3705
3707
  subject: e,
@@ -3708,13 +3710,13 @@ function Ls(e, t, n) {
3708
3710
  };
3709
3711
  }
3710
3712
  }
3711
- function Rs(e, t, n = {}) {
3712
- let r = Fs(t) ? t : n.animation, { nativeSpec: i, animation: a, velocity: o, source: s, subject: c, axis: l, inset: u, ...d } = n, f = ks({
3713
+ function zs(e, t, n = {}) {
3714
+ let r = Is(t) ? t : n.animation, { nativeSpec: i, animation: a, velocity: o, source: s, subject: c, axis: l, inset: u, ...d } = n, f = As({
3713
3715
  ...d,
3714
3716
  range: e.range
3715
- }), p = e.trigger == null ? void 0 : Ps(e), m = As({
3717
+ }), p = e.trigger == null ? void 0 : Fs(e), m = js({
3716
3718
  animation: r,
3717
- nativeSpec: Ls(e, t, n),
3719
+ nativeSpec: Rs(e, t, n),
3718
3720
  scrub: n.scrub != null && n.scrub > 0,
3719
3721
  snap: n.snap != null && n.snap.length > 0,
3720
3722
  velocity: n.velocity
@@ -3728,35 +3730,35 @@ function Rs(e, t, n = {}) {
3728
3730
  }
3729
3731
  //#endregion
3730
3732
  //#region src/animation/scroll/grammar.ts
3731
- var zs = (e) => ([t]) => /* @__PURE__ */ TypeError(`Invalid CSS value ${JSON.stringify(e)}: ${t.code} at ${t.start}-${t.end}.`);
3732
- function Bs(e) {
3733
- return S(me(e), zs(e));
3734
- }
3733
+ var Bs = (e) => ([t]) => /* @__PURE__ */ TypeError(`Invalid CSS value ${JSON.stringify(e)}: ${t.code} at ${t.start}-${t.end}.`);
3735
3734
  function Vs(e) {
3736
- return S(oe(e), zs(e));
3735
+ return S(me(e), Bs(e));
3737
3736
  }
3738
3737
  function Hs(e) {
3739
- return ue(ie(typeof e == "string" ? S(te(e), zs(e)) : e).at(-1)?.rule.declarations ?? []);
3738
+ return S(oe(e), Bs(e));
3740
3739
  }
3741
3740
  function Us(e) {
3742
- return re(e);
3741
+ return ue(ie(typeof e == "string" ? S(te(e), Bs(e)) : e).at(-1)?.rule.declarations ?? []);
3743
3742
  }
3744
3743
  function Ws(e) {
3745
- let t = Hs(e);
3744
+ return re(e);
3745
+ }
3746
+ function Gs(e) {
3747
+ let t = Us(e);
3746
3748
  return {
3747
3749
  options: t,
3748
- declarations: Us(t)
3750
+ declarations: Ws(t)
3749
3751
  };
3750
3752
  }
3751
3753
  //#endregion
3752
3754
  //#region src/animation/compile/emit/backward/walk.ts
3753
- function Gs(e) {
3755
+ function Ks(e) {
3754
3756
  let t = [];
3755
3757
  for (let n of Object.keys(e.animations)) {
3756
- let r = e.animations[n], i = r.layer.op, a = G(r.layer) && r.layer.weightSpring != null, o = G(r.layer) && r.layer.weightSpring == null, s = i === "add" || i === "accumulate" ? i : o ? "accumulate" : "replace";
3758
+ let r = e.animations[n], i = r.layer.op, a = W(r.layer) && r.layer.weightSpring != null, o = W(r.layer) && r.layer.weightSpring == null, s = i === "add" || i === "accumulate" ? i : o ? "accumulate" : "replace";
3757
3759
  t.push({
3758
3760
  animation: r.animation,
3759
- name: J(U(r.animation)),
3761
+ name: q(H(r.animation)),
3760
3762
  composition: s,
3761
3763
  weightBlend: a,
3762
3764
  ...o ? { staticWeight: r.layer.weight } : {},
@@ -3765,57 +3767,57 @@ function Gs(e) {
3765
3767
  }
3766
3768
  return t;
3767
3769
  }
3768
- function Ks(e) {
3770
+ function qs(e) {
3769
3771
  return e.entries.map((e) => ({
3770
3772
  animation: e.animation,
3771
- name: J(U(e.animation)),
3773
+ name: q(H(e.animation)),
3772
3774
  composition: "replace",
3773
3775
  weightBlend: !1,
3774
3776
  delay: e.at
3775
3777
  }));
3776
3778
  }
3777
- function qs(e) {
3779
+ function Js(e) {
3778
3780
  return e.map((e, t) => {
3779
3781
  let n = "animation" in e ? e.animation : e;
3780
3782
  return {
3781
3783
  animation: n,
3782
- name: J(U(n) || `anim-${t}`),
3784
+ name: q(H(n) || `anim-${t}`),
3783
3785
  composition: "replace",
3784
3786
  weightBlend: !1,
3785
3787
  delay: 0
3786
3788
  };
3787
3789
  });
3788
3790
  }
3789
- function J(e) {
3791
+ function q(e) {
3790
3792
  let t = e.replace(/[^a-zA-Z0-9_-]/g, "-");
3791
3793
  return /^[a-zA-Z_]/.test(t) ? t : `a${t}`;
3792
3794
  }
3793
3795
  //#endregion
3794
3796
  //#region src/animation/compile/emit/easing-serialize.ts
3795
- var Js = /^(linear|ease|ease-in|ease-out|ease-in-out|step-start|step-end)$/;
3796
- function Ys(e, t = 32) {
3797
- return i(Array.from({ length: t + 1 }, (n, r) => e(r / t)));
3797
+ var Ys = /^(linear|ease|ease-in|ease-out|ease-in-out|step-start|step-end)$/;
3798
+ function Xs(e, t = 32) {
3799
+ return s(Array.from({ length: t + 1 }, (n, r) => e(r / t)));
3798
3800
  }
3799
- function Y(e) {
3801
+ function J(e) {
3800
3802
  if (e.css !== void 0) return e.css;
3801
3803
  let n = fe.find(([t, n]) => n === e.fn)?.[0];
3802
3804
  if (n === void 0) throw new t("timingFunction", e.fn, "a custom TimingFunction has no CSS animation-timing-function representation — attach a faithful Easing.css twin, or use a registry name / cubic-bezier() / linear() literal");
3803
3805
  let r = k(n);
3804
- return Js.test(r) ? r : Ys(e.fn);
3806
+ return Ys.test(r) ? r : Xs(e.fn);
3805
3807
  }
3806
3808
  //#endregion
3807
3809
  //#region src/animation/compile/emit/format/options.ts
3808
- function Xs(e, t = "animation") {
3810
+ function Zs(e, t = "animation") {
3809
3811
  let n = "";
3810
3812
  n += ` animation-name: ${t};\n`;
3811
- let r = y(e.duration, e.durationUnit);
3812
- n += ` animation-duration: ${r};\n`, n += ` animation-timing-function: ${Y(e.timingFunction)};\n`, n += ` animation-iteration-count: ${isFinite(e.iterationCount) ? e.iterationCount : "infinite"};\n`, n += ` animation-direction: ${e.direction};\n`, n += ` animation-fill-mode: ${e.fillMode};\n`, e.delay > 0 && (n += ` animation-delay: ${y(e.delay, e.delayUnit)};\n`);
3813
- let i = e.composite == null ? void 0 : Qs(e.composite);
3813
+ let r = v(e.duration, e.durationUnit);
3814
+ n += ` animation-duration: ${r};\n`, n += ` animation-timing-function: ${J(e.timingFunction)};\n`, n += ` animation-iteration-count: ${isFinite(e.iterationCount) ? e.iterationCount : "infinite"};\n`, n += ` animation-direction: ${e.direction};\n`, n += ` animation-fill-mode: ${e.fillMode};\n`, e.delay > 0 && (n += ` animation-delay: ${v(e.delay, e.delayUnit)};\n`);
3815
+ let i = e.composite == null ? void 0 : $s(e.composite);
3814
3816
  return i != null && (n += ` ${i}\n`), n = `.${t} {\n${n}}\n`, n;
3815
3817
  }
3816
- function Zs(e, t) {
3817
- let n = Y(e.timingFunction), r = S(ye(n), () => /* @__PURE__ */ TypeError(`Cannot serialize timing function ${JSON.stringify(n)}.`));
3818
- return ee({
3818
+ function Qs(e, t) {
3819
+ let n = J(e.timingFunction), r = S(ye(n), () => /* @__PURE__ */ TypeError(`Cannot serialize timing function ${JSON.stringify(n)}.`));
3820
+ return b({
3819
3821
  name: t,
3820
3822
  duration: e.duration,
3821
3823
  ...e.durationUnit == null ? {} : { durationUnit: e.durationUnit },
@@ -3829,10 +3831,10 @@ function Zs(e, t) {
3829
3831
  } : {}
3830
3832
  });
3831
3833
  }
3832
- function Qs(e) {
3834
+ function $s(e) {
3833
3835
  return e === "replace" ? void 0 : `animation-composition: ${e};`;
3834
3836
  }
3835
- function $s(e) {
3837
+ function ec(e) {
3836
3838
  let t = e.propertyRegistry;
3837
3839
  if (t == null || t.size === 0) return "";
3838
3840
  let n = [];
@@ -3845,12 +3847,12 @@ function $s(e) {
3845
3847
  }
3846
3848
  //#endregion
3847
3849
  //#region src/animation/compile/emit/format/format.ts
3848
- function ec(e, t, n) {
3850
+ function tc(e, t, n) {
3849
3851
  let r = e.parsedVars[t] ?? {}, i = e.templateFrames[t], a = Object.entries(r).map(([e, t]) => ({
3850
3852
  prop: k(e),
3851
- value: b(t),
3853
+ value: y(t),
3852
3854
  declared: t
3853
- })), o = i.timingFunction ? Y(i.timingFunction) : n;
3855
+ })), o = i.timingFunction ? J(i.timingFunction) : n;
3854
3856
  o !== n && a.push({
3855
3857
  prop: "animation-timing-function",
3856
3858
  value: o
@@ -3861,7 +3863,7 @@ function ec(e, t, n) {
3861
3863
  value: s
3862
3864
  }), a;
3863
3865
  }
3864
- var tc = (e, t) => {
3866
+ var nc = (e, t) => {
3865
3867
  if (e.kind === "scalar") return e.payload.type === "number" ? {
3866
3868
  kind: "scalar",
3867
3869
  payload: {
@@ -3870,96 +3872,96 @@ var tc = (e, t) => {
3870
3872
  }
3871
3873
  } : void 0;
3872
3874
  if (e.kind === "call") {
3873
- let n = e.args.map((e) => tc(e, t));
3875
+ let n = e.args.map((e) => nc(e, t));
3874
3876
  return n.some((e) => e === void 0) ? void 0 : {
3875
3877
  kind: "call",
3876
3878
  name: e.name,
3877
3879
  args: n
3878
3880
  };
3879
3881
  }
3880
- let n = e.items.map((e) => tc(e, t));
3882
+ let n = e.items.map((e) => nc(e, t));
3881
3883
  if (!n.some((e) => e === void 0)) return {
3882
3884
  kind: "list",
3883
3885
  separator: e.separator,
3884
3886
  items: n
3885
3887
  };
3886
3888
  };
3887
- function nc(e, t, n) {
3888
- return `{\n${ec(e, t, n).map(({ prop: e, value: t }) => ` ${e}: ${t};`).join("\n")}\n}`;
3889
+ function rc(e, t, n) {
3890
+ return `{\n${tc(e, t, n).map(({ prop: e, value: t }) => ` ${e}: ${t};`).join("\n")}\n}`;
3889
3891
  }
3890
- var rc = async (e) => {
3891
- let t = Y(e.options.timingFunction);
3892
- return e.templateFrames.map((n, i) => `${r(n.start)}\n${nc(e, i, t)}\n`);
3892
+ var ic = async (e) => {
3893
+ let t = J(e.options.timingFunction);
3894
+ return e.templateFrames.map((n, r) => `${o(n.start)}\n${rc(e, r, t)}\n`);
3893
3895
  };
3894
- function ic(e) {
3896
+ function ac(e) {
3895
3897
  let t = e.indexOf("{"), n = t === -1 ? e : e.slice(t + 1), r = n.lastIndexOf("}");
3896
3898
  return (r !== -1 && n.slice(r + 1).trim() === "" ? n.slice(0, r) : n).split("\n").map((e) => e.startsWith(" ") ? e.slice(2) : e).join("\n").trim();
3897
3899
  }
3898
- function ac(e, t, n) {
3899
- let i = Y(e.options.timingFunction), a = /* @__PURE__ */ new Map();
3900
- e.templateFrames.forEach((t, o) => {
3901
- let s = n?.get(o) ?? nc(e, o, i), c = a.get(s), l = r(t.start);
3902
- c ? c.push(l) : a.set(s, [l]);
3900
+ function oc(e, t, n) {
3901
+ let r = J(e.options.timingFunction), i = /* @__PURE__ */ new Map();
3902
+ e.templateFrames.forEach((t, a) => {
3903
+ let s = n?.get(a) ?? rc(e, a, r), c = i.get(s), l = o(t.start);
3904
+ c ? c.push(l) : i.set(s, [l]);
3903
3905
  });
3904
- let o = "";
3905
- for (let [e, t] of a) o += ` ${t.join(", ")} ${e.replace(/\n/g, "\n ")}\n`;
3906
- return `@keyframes ${t} {\n${o}}`;
3906
+ let a = "";
3907
+ for (let [e, t] of i) a += ` ${t.join(", ")} ${e.replace(/\n/g, "\n ")}\n`;
3908
+ return `@keyframes ${t} {\n${a}}`;
3907
3909
  }
3908
- function oc(e, t, n) {
3909
- let i = Y(e.options.timingFunction), a = /* @__PURE__ */ new Map();
3910
+ function sc(e, t, n) {
3911
+ let r = J(e.options.timingFunction), i = /* @__PURE__ */ new Map();
3910
3912
  for (let t = 0; t < e.templateFrames.length; t++) {
3911
- let o = e.templateFrames[t], s = e.parsedVars[t] ?? {}, c = {};
3913
+ let a = e.templateFrames[t], s = e.parsedVars[t] ?? {}, c = {};
3912
3914
  for (let [e, t] of Object.entries(s)) {
3913
- let r = tc(t, n);
3915
+ let r = nc(t, n);
3914
3916
  if (r === void 0) return {
3915
3917
  refused: !0,
3916
3918
  key: e
3917
3919
  };
3918
3920
  c[e] = r;
3919
3921
  }
3920
- let l = Object.entries(c).map(([e, t]) => ` ${k(e)}: ${b(t)};`), u = o.timingFunction ? Y(o.timingFunction) : i;
3921
- u !== i && l.push(` animation-timing-function: ${u};`);
3922
- let d = o.composition;
3922
+ let l = Object.entries(c).map(([e, t]) => ` ${k(e)}: ${y(t)};`), u = a.timingFunction ? J(a.timingFunction) : r;
3923
+ u !== r && l.push(` animation-timing-function: ${u};`);
3924
+ let d = a.composition;
3923
3925
  d != null && d !== "replace" && l.push(` animation-composition: ${d};`);
3924
- let f = `{\n${l.join("\n")}\n}`, p = a.get(f), m = r(o.start);
3925
- p ? p.push(m) : a.set(f, [m]);
3926
+ let f = `{\n${l.join("\n")}\n}`, p = i.get(f), m = o(a.start);
3927
+ p ? p.push(m) : i.set(f, [m]);
3926
3928
  }
3927
- let o = "";
3928
- for (let [e, t] of a) o += ` ${t.join(", ")} ${e.replace(/\n/g, "\n ")}\n`;
3929
- return { block: `@keyframes ${t} {\n${o}}` };
3929
+ let a = "";
3930
+ for (let [e, t] of i) a += ` ${t.join(", ")} ${e.replace(/\n/g, "\n ")}\n`;
3931
+ return { block: `@keyframes ${t} {\n${a}}` };
3930
3932
  }
3931
- async function sc(e, t = "animation") {
3932
- let n = e.options, i = /* @__PURE__ */ new Map(), a = Y(n.timingFunction);
3933
+ async function cc(e, t = "animation") {
3934
+ let n = e.options, r = /* @__PURE__ */ new Map(), i = J(n.timingFunction);
3933
3935
  e.templateFrames.forEach((t, n) => {
3934
- let o = r(t.start), s = nc(e, n, a);
3935
- i.has(s) ? i.get(s).push(o) : i.set(s, [o]);
3936
+ let a = o(t.start), s = rc(e, n, i);
3937
+ r.has(s) ? r.get(s).push(a) : r.set(s, [a]);
3936
3938
  });
3937
- let o = "";
3938
- for (let [e, t] of i) o += ` ${t.join(", ")} ${e.replace(/\n/g, "\n ")}\n`;
3939
- let s = Xs(n, t), c = $s(e);
3940
- return `${`${c ? `${c}\n\n` : ""}${s}\n@keyframes ${t} {\n${o}}`.replace(/\(\s*\{/g, "{").replace(/\}\s*\)/g, "}")}\n`;
3939
+ let a = "";
3940
+ for (let [e, t] of r) a += ` ${t.join(", ")} ${e.replace(/\n/g, "\n ")}\n`;
3941
+ let s = Zs(n, t), c = ec(e);
3942
+ return `${`${c ? `${c}\n\n` : ""}${s}\n@keyframes ${t} {\n${a}}`.replace(/\(\s*\{/g, "{").replace(/\}\s*\)/g, "}")}\n`;
3941
3943
  }
3942
3944
  //#endregion
3943
3945
  //#region src/animation/compile/emit/densify.ts
3944
- var cc = (e) => {
3946
+ var lc = (e) => {
3945
3947
  if (e.kind === "percent") return e.value * 100;
3946
3948
  throw TypeError(`Cannot densify named keyframe selector "${e.name}" without a bound timeline.`);
3947
3949
  };
3948
- function lc(e, t, n, r) {
3949
- let i = e.parsedVars[t] ?? {}, a = Object.fromEntries(Object.entries(i).filter(([e]) => !r.has(e))), o = Object.entries(a).map(([e, t]) => `${k(e)}: ${b(t)};`), s = e.templateFrames[t], c = s.timingFunction ? Y(s.timingFunction) : n;
3950
+ function uc(e, t, n, r) {
3951
+ let i = e.parsedVars[t] ?? {}, a = Object.fromEntries(Object.entries(i).filter(([e]) => !r.has(e))), o = Object.entries(a).map(([e, t]) => `${k(e)}: ${y(t)};`), s = e.templateFrames[t], c = s.timingFunction ? J(s.timingFunction) : n;
3950
3952
  c !== n && o.push(`animation-timing-function: ${c};`);
3951
3953
  let l = s.composition;
3952
3954
  return l != null && l !== "replace" && o.push(`animation-composition: ${l};`), o;
3953
3955
  }
3954
- function uc(e, t, n) {
3955
- let r = Y(e.options.timingFunction), i = new Set(n.keys), a = /* @__PURE__ */ new Map(), o = [], s = (e) => {
3956
+ function dc(e, t, n) {
3957
+ let r = J(e.options.timingFunction), i = new Set(n.keys), a = /* @__PURE__ */ new Map(), o = [], s = (e) => {
3956
3958
  let t = a.get(e);
3957
3959
  return t || (t = [], a.set(e, t), o.push(e)), t;
3958
3960
  };
3959
3961
  for (let [e, t] of n.byPct) s(e).push(...t);
3960
3962
  e.templateFrames.forEach((t, n) => {
3961
- let a = lc(e, n, r, i);
3962
- a.length > 0 && s(cc(t.start)).push(...a);
3963
+ let a = uc(e, n, r, i);
3964
+ a.length > 0 && s(lc(t.start)).push(...a);
3963
3965
  }), o.sort((e, t) => e - t);
3964
3966
  let c = "";
3965
3967
  for (let e of o) c += ` ${e}% {\n ${a.get(e).join("\n ")}\n }\n`;
@@ -3967,49 +3969,49 @@ function uc(e, t, n) {
3967
3969
  }
3968
3970
  //#endregion
3969
3971
  //#region src/animation/compile/emit/backward/color.ts
3970
- var X = (e) => Math.round(e * 1e4) / 1e4, dc = (e) => {
3972
+ var Y = (e) => Math.round(e * 1e4) / 1e4, fc = (e) => {
3971
3973
  if (typeof e != "object" || !e) return !1;
3972
3974
  let t = e.kind;
3973
3975
  return t === "scalar" || t === "call" || t === "list";
3974
- }, fc = (e) => {
3976
+ }, pc = (e) => {
3975
3977
  if (e.kind === "scalar") return e.payload.type === "color" ? e.payload.value : void 0;
3976
3978
  let t = e.kind === "call" ? e.args : e.items;
3977
3979
  for (let e of t) {
3978
- let t = fc(e);
3980
+ let t = pc(e);
3979
3981
  if (t !== void 0) return t;
3980
3982
  }
3981
- }, pc = (e) => dc(e) && fc(e) !== void 0, mc = (e) => {
3983
+ }, mc = (e) => fc(e) && pc(e) !== void 0, hc = (e) => {
3982
3984
  let t = Ee(e, "oklab");
3983
3985
  if (!t.ok) throw TypeError(`Value 4 color conversion failed: ${t.error.code}.`);
3984
3986
  return t.value;
3985
- }, Z = (e) => {
3986
- let [t, n, r] = mc(e).channels;
3987
+ }, X = (e) => {
3988
+ let [t, n, r] = hc(e).channels;
3987
3989
  if (typeof t != "number" || typeof n != "number" || typeof r != "number") throw TypeError("OKLab densification requires numeric channels.");
3988
3990
  return [
3989
3991
  t,
3990
3992
  n,
3991
3993
  r
3992
3994
  ];
3993
- }, Q = (e) => {
3994
- let t = mc(e), [n, r, i] = Z(t), a = t.alpha === 1 ? "" : ` / ${t.alpha}`;
3995
- return `oklab(${X(n)} ${X(r)} ${X(i)}${a})`;
3996
- }, hc = (e, t) => {
3997
- let [n, r, i] = Z(e), [a, o, s] = Z(t);
3995
+ }, Z = (e) => {
3996
+ let t = hc(e), [n, r, i] = X(t), a = t.alpha === 1 ? "" : ` / ${t.alpha}`;
3997
+ return `oklab(${Y(n)} ${Y(r)} ${Y(i)}${a})`;
3998
+ }, gc = (e, t) => {
3999
+ let [n, r, i] = X(e), [a, o, s] = X(t);
3998
4000
  return Math.hypot(a - n, o - r, s - i);
3999
- }, gc = (e, t, n) => {
4001
+ }, _c = (e, t, n) => {
4000
4002
  let r = Oe(e, t, n);
4001
4003
  if (!r.ok) throw TypeError(`Value 4 OKLab construction failed: ${r.error.code}.`);
4002
4004
  return r.value;
4003
- }, _c = (e, t) => {
4004
- let [n, r, i] = Z(e), [a, o, s] = Z(t);
4005
- return gc((n + a) / 2, (r + o) / 2, (i + s) / 2);
4006
- }, vc = (e) => {
4005
+ }, vc = (e, t) => {
4006
+ let [n, r, i] = X(e), [a, o, s] = X(t);
4007
+ return _c((n + a) / 2, (r + o) / 2, (i + s) / 2);
4008
+ }, yc = (e) => {
4007
4009
  if (e.kind === "percent") return e.value * 100;
4008
4010
  throw TypeError(`Cannot densify named keyframe selector "${e.name}" without a bound timeline.`);
4009
- }, $ = (e, t, n) => {
4011
+ }, Q = (e, t, n) => {
4010
4012
  let r = (e.parsedVars[t] ?? {})[n];
4011
- return r === void 0 ? void 0 : fc(r);
4012
- }, yc = (e, t, n, r, i) => {
4013
+ return r === void 0 ? void 0 : pc(r);
4014
+ }, bc = (e, t, n, r, i) => {
4013
4015
  let a = [];
4014
4016
  for (let o = 0; o < n; o++) {
4015
4017
  let s = De(e, t, n === 1 ? 0 : o / (n - 1), {
@@ -4021,39 +4023,39 @@ var X = (e) => Math.round(e * 1e4) / 1e4, dc = (e) => {
4021
4023
  }
4022
4024
  return a;
4023
4025
  };
4024
- function bc(e, t, n, r, i) {
4026
+ function xc(e, t, n, r, i) {
4025
4027
  let a = t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), o = [], s = 0;
4026
4028
  for (let a = 0; a + 1 < e.templateFrames.length; a++) {
4027
- let c = $(e, a, t), l = $(e, a + 1, t);
4029
+ let c = Q(e, a, t), l = Q(e, a + 1, t);
4028
4030
  if (!c || !l) continue;
4029
- let u = vc(e.templateFrames[a].start), d = vc(e.templateFrames[a + 1].start);
4030
- if (Q(c) === Q(l)) {
4031
+ let u = yc(e.templateFrames[a].start), d = yc(e.templateFrames[a + 1].start);
4032
+ if (Z(c) === Z(l)) {
4031
4033
  o.push({
4032
4034
  pct: u,
4033
- css: Q(c)
4035
+ css: Z(c)
4034
4036
  });
4035
4037
  continue;
4036
4038
  }
4037
- let f = c, p = l, m = yc(f, p, n, r, i.hueMethod);
4039
+ let f = c, p = l, m = bc(f, p, n, r, i.hueMethod);
4038
4040
  for (let e = 0; e < m.length; e++) {
4039
4041
  let t = e / (m.length - 1), n = u + (d - u) * t;
4040
4042
  o.push({
4041
- pct: X(n),
4042
- css: Q(m[e])
4043
+ pct: Y(n),
4044
+ css: Z(m[e])
4043
4045
  });
4044
4046
  }
4045
- let h = yc(f, p, 1024, r, i.hueMethod);
4047
+ let h = bc(f, p, 1024, r, i.hueMethod);
4046
4048
  for (let e = 0; e + 1 < m.length; e++) {
4047
- let t = (e + .5) / (m.length - 1), n = h[Math.round(t * 1023)], r = _c(m[e], m[e + 1]);
4048
- s = Math.max(s, hc(r, n));
4049
+ let t = (e + .5) / (m.length - 1), n = h[Math.round(t * 1023)], r = vc(m[e], m[e + 1]);
4050
+ s = Math.max(s, gc(r, n));
4049
4051
  }
4050
4052
  }
4051
- let c = e.templateFrames.length - 1, l = $(e, c, t);
4053
+ let c = e.templateFrames.length - 1, l = Q(e, c, t);
4052
4054
  if (l) {
4053
- let t = vc(e.templateFrames[c].start);
4055
+ let t = yc(e.templateFrames[c].start);
4054
4056
  o[o.length - 1]?.pct !== t && o.push({
4055
4057
  pct: t,
4056
- css: Q(l)
4058
+ css: Z(l)
4057
4059
  });
4058
4060
  }
4059
4061
  return {
@@ -4062,20 +4064,20 @@ function bc(e, t, n, r, i) {
4062
4064
  worstDelta: s
4063
4065
  };
4064
4066
  }
4065
- function xc(e, t, n) {
4067
+ function Sc(e, t, n) {
4066
4068
  let r = [], i = /* @__PURE__ */ new Set();
4067
4069
  for (let t = 0; t + 1 < e.templateFrames.length; t++) {
4068
4070
  let n = e.parsedVars[t] ?? {};
4069
4071
  for (let [a, o] of Object.entries(n)) {
4070
- if (i.has(a) || !pc(o)) continue;
4071
- let n = $(e, t, a), s = $(e, t + 1, a);
4072
- n && s && Q(n) !== Q(s) && (r.push(a), i.add(a));
4072
+ if (i.has(a) || !mc(o)) continue;
4073
+ let n = Q(e, t, a), s = Q(e, t + 1, a);
4074
+ n && s && Z(n) !== Z(s) && (r.push(a), i.add(a));
4073
4075
  }
4074
4076
  }
4075
4077
  if (r.length === 0) return null;
4076
4078
  let a = Math.max(3, t), o = e.options.colorSpace === "oklch" ? "oklch" : "oklab", s = e.options.hueMethod ? { hueMethod: e.options.hueMethod } : {}, c = 0, l = /* @__PURE__ */ new Map();
4077
4079
  for (let t of r) {
4078
- let n = bc(e, t, a, o, s);
4080
+ let n = xc(e, t, a, o, s);
4079
4081
  c = Math.max(c, n.worstDelta);
4080
4082
  for (let { pct: e, css: t } of n.stops) {
4081
4083
  let r = l.get(e);
@@ -4092,7 +4094,7 @@ function xc(e, t, n) {
4092
4094
  }
4093
4095
  //#endregion
4094
4096
  //#region src/animation/compile/emit/refusal-probes.ts
4095
- function Sc(e) {
4097
+ function Cc(e) {
4096
4098
  let { animation: t, name: n } = e;
4097
4099
  if (e.weightBlend) return {
4098
4100
  name: n,
@@ -4113,18 +4115,18 @@ function Sc(e) {
4113
4115
  };
4114
4116
  }
4115
4117
  }
4116
- function Cc(e, n, r) {
4117
- let { animation: i, name: a } = e, o = Sc(e);
4118
+ function wc(e, n, r) {
4119
+ let { animation: i, name: a } = e, o = Cc(e);
4118
4120
  if (o) return r.push(o), null;
4119
- let s = xc(i, n.densifyStops ?? 16, n.deltaEEpsilon ?? .04);
4121
+ let s = Sc(i, n.densifyStops ?? 16, n.deltaEEpsilon ?? .04);
4120
4122
  if (s && "refused" in s) return r.push({
4121
4123
  name: a,
4122
4124
  reason: "perceptual-oklab",
4123
- message: `perceptual oklab color track exceeds the densify ΔE-ε threshold (ΔE ${X(s.delta)} > ${n.deltaEEpsilon ?? .04}) — a faithful pure-CSS twin is not available; the JS playback is the only faithful path`
4125
+ message: `perceptual oklab color track exceeds the densify ΔE-ε threshold (ΔE ${Y(s.delta)} > ${n.deltaEEpsilon ?? .04}) — a faithful pure-CSS twin is not available; the JS playback is the only faithful path`
4124
4126
  }), null;
4125
4127
  let c;
4126
4128
  if (e.staticWeight != null) {
4127
- let t = oc(i, a, e.staticWeight);
4129
+ let t = sc(i, a, e.staticWeight);
4128
4130
  if ("refused" in t) return r.push({
4129
4131
  name: a,
4130
4132
  reason: "weight-blend",
@@ -4134,7 +4136,7 @@ function Cc(e, n, r) {
4134
4136
  }
4135
4137
  let l, u;
4136
4138
  try {
4137
- l = c ?? (s && "byPct" in s ? uc(i, a, s) : ac(i, a)), u = Zs(i.options, a);
4139
+ l = c ?? (s && "byPct" in s ? dc(i, a, s) : oc(i, a)), u = Qs(i.options, a);
4138
4140
  } catch (e) {
4139
4141
  if (!(e instanceof t) || e.option !== "timingFunction") throw e;
4140
4142
  return r.push({
@@ -4143,18 +4145,18 @@ function Cc(e, n, r) {
4143
4145
  message: "easing has no faithful CSS timing-function twin (a custom closure cannot be CSS) — attach an Easing.css twin or use a registry name / cubic-bezier() / linear(); the JS playback is the only faithful path"
4144
4146
  }), null;
4145
4147
  }
4146
- let d = Qs(e.composition), f = d ? `\n ${d}` : "", p = e.delay > 0 ? `\n animation-delay: ${y(e.delay)};` : "", m = wc(i), h = `${n.selectorFor ? n.selectorFor(a) : `.${a}`} {\n animation: ${u};${f}${p}${m}\n}`;
4148
+ let d = $s(e.composition), f = d ? `\n ${d}` : "", p = e.delay > 0 ? `\n animation-delay: ${v(e.delay)};` : "", m = Tc(i), h = `${n.selectorFor ? n.selectorFor(a) : `.${a}`} {\n animation: ${u};${f}${p}${m}\n}`;
4147
4149
  return `${l}\n\n${h}`;
4148
4150
  }
4149
- function wc(e) {
4151
+ function Tc(e) {
4150
4152
  let t = e.scrollOptions;
4151
4153
  if (t == null) return "";
4152
- let n = Us(t), r = "";
4154
+ let n = Ws(t), r = "";
4153
4155
  for (let [e, t] of Object.entries(n)) t != null && (r += `\n ${e}: ${t};`);
4154
4156
  return r;
4155
4157
  }
4156
- async function Tc(e, t = {}) {
4157
- let n = e instanceof ca ? Gs(e) : e instanceof h ? Ks(e) : qs(e), r = /* @__PURE__ */ new Map();
4158
+ async function Ec(e, t = {}) {
4159
+ let n = e instanceof la ? Ks(e) : e instanceof ee ? qs(e) : Js(e), r = /* @__PURE__ */ new Map();
4158
4160
  for (let e of n) {
4159
4161
  let t = r.get(e.name) ?? 0;
4160
4162
  r.set(e.name, t + 1), t > 0 && (e.name = `${e.name}-${t + 1}`);
@@ -4165,7 +4167,7 @@ async function Tc(e, t = {}) {
4165
4167
  });
4166
4168
  let i = [], a = [];
4167
4169
  for (let e of n) {
4168
- let n = Cc(e, t, i);
4170
+ let n = wc(e, t, i);
4169
4171
  n && a.push(n);
4170
4172
  }
4171
4173
  let o = i.length === 0;
@@ -4181,14 +4183,14 @@ async function Tc(e, t = {}) {
4181
4183
  }
4182
4184
  //#endregion
4183
4185
  //#region src/animation/compile/emit/view-transition.ts
4184
- var Ec = new Set([
4186
+ var Dc = new Set([
4185
4187
  "transform",
4186
4188
  "opacity",
4187
4189
  "filter",
4188
4190
  "backdrop-filter",
4189
4191
  "mix-blend-mode",
4190
4192
  "clip-path"
4191
- ]), Dc = new Set([
4193
+ ]), Oc = new Set([
4192
4194
  "cqw",
4193
4195
  "cqh",
4194
4196
  "cqi",
@@ -4196,31 +4198,31 @@ var Ec = new Set([
4196
4198
  "cqmin",
4197
4199
  "cqmax"
4198
4200
  ]);
4199
- function Oc(e) {
4200
- let t = Y(e.options.timingFunction), n = [];
4201
- for (let r = 0; r < e.templateFrames.length; r++) n.push(...ec(e, r, t));
4201
+ function kc(e) {
4202
+ let t = J(e.options.timingFunction), n = [];
4203
+ for (let r = 0; r < e.templateFrames.length; r++) n.push(...tc(e, r, t));
4202
4204
  return n;
4203
4205
  }
4204
- var kc = (e) => {
4206
+ var Ac = (e) => {
4205
4207
  if (e == null) return null;
4206
4208
  if (e.kind === "call") {
4207
4209
  if (e.name.toLowerCase() === "var") return "var";
4208
4210
  for (let t of e.args) {
4209
- let e = kc(t);
4211
+ let e = Ac(t);
4210
4212
  if (e != null) return e;
4211
4213
  }
4212
4214
  return null;
4213
4215
  }
4214
4216
  if (e.kind === "list") {
4215
4217
  for (let t of e.items) {
4216
- let e = kc(t);
4218
+ let e = Ac(t);
4217
4219
  if (e != null) return e;
4218
4220
  }
4219
4221
  return null;
4220
4222
  }
4221
- return e.payload.type === "number" && Dc.has(e.payload.unit.toLowerCase()) ? "cq" : null;
4222
- }, Ac = (e) => e.split(".")[0].replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
4223
- function jc(e, t, n, r, i, a) {
4223
+ return e.payload.type === "number" && Oc.has(e.payload.unit.toLowerCase()) ? "cq" : null;
4224
+ }, jc = (e) => e.split(".")[0].replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
4225
+ function Mc(e, t, n, r, i, a) {
4224
4226
  let o = [], s = `${t}-${e}`;
4225
4227
  if (r.scrollOptions != null) return o.push({
4226
4228
  name: s,
@@ -4230,8 +4232,8 @@ function jc(e, t, n, r, i, a) {
4230
4232
  chunk: null,
4231
4233
  refusals: o
4232
4234
  };
4233
- for (let { prop: t, declared: n } of Oc(r)) {
4234
- let r = kc(n);
4235
+ for (let { prop: t, declared: n } of kc(r)) {
4236
+ let r = Ac(n);
4235
4237
  if (r != null) return o.push({
4236
4238
  name: s,
4237
4239
  reason: "vt-element-scoped-computed",
@@ -4240,7 +4242,7 @@ function jc(e, t, n, r, i, a) {
4240
4242
  chunk: null,
4241
4243
  refusals: o
4242
4244
  };
4243
- if (!Ec.has(Ac(t))) return o.push({
4245
+ if (!Dc.has(jc(t))) return o.push({
4244
4246
  name: s,
4245
4247
  reason: "vt-snapshot-inapplicable",
4246
4248
  message: `"${t}" does not apply to a replaced-content ::view-transition-${e} snapshot (only transform/opacity/filter/mix-blend-mode animate there) — refused per property, never silently dropped`
@@ -4255,7 +4257,7 @@ function jc(e, t, n, r, i, a) {
4255
4257
  composition: "replace",
4256
4258
  weightBlend: !1,
4257
4259
  delay: 0
4258
- }, u = [], d = Cc(l, {
4260
+ }, u = [], d = wc(l, {
4259
4261
  ...a.densifyStops == null ? {} : { densifyStops: a.densifyStops },
4260
4262
  ...a.deltaEEpsilon == null ? {} : { deltaEEpsilon: a.deltaEEpsilon },
4261
4263
  selectorFor: () => c
@@ -4266,27 +4268,27 @@ function jc(e, t, n, r, i, a) {
4266
4268
  refusals: o
4267
4269
  };
4268
4270
  }
4269
- function Mc(e) {
4271
+ function Nc(e) {
4270
4272
  let t = e.group;
4271
4273
  if (t != null) return "options" in t && "templateFrames" in t ? {
4272
4274
  duration: t.options.duration,
4273
4275
  durationUnit: t.options.durationUnit,
4274
- easing: Y(t.options.timingFunction)
4276
+ easing: J(t.options.timingFunction)
4275
4277
  } : {
4276
4278
  duration: t.duration,
4277
- easing: Y(t.timingFunction)
4279
+ easing: J(t.timingFunction)
4278
4280
  };
4279
4281
  let n = e.new ?? e.old;
4280
4282
  return n == null ? null : {
4281
4283
  duration: n.options.duration,
4282
4284
  durationUnit: n.options.durationUnit,
4283
- easing: Y(n.options.timingFunction)
4285
+ easing: J(n.options.timingFunction)
4284
4286
  };
4285
4287
  }
4286
- async function Nc(e, t = {}) {
4288
+ async function Pc(e, t = {}) {
4287
4289
  let n = [], r = [], i = [], a = t.types, o = a && a.length > 0 ? `:root:active-view-transition-type(${a.join(", ")})` : "", s = t.emitGroup ?? !0, c = /* @__PURE__ */ new Map();
4288
4290
  for (let t of Object.keys(e)) {
4289
- let e = J(t), n = c.get(e);
4291
+ let e = q(t), n = c.get(e);
4290
4292
  n ? n.push(t) : c.set(e, [t]);
4291
4293
  }
4292
4294
  let l = /* @__PURE__ */ new Set();
@@ -4297,18 +4299,18 @@ async function Nc(e, t = {}) {
4297
4299
  });
4298
4300
  for (let [a, c] of Object.entries(e)) {
4299
4301
  if (l.has(a)) continue;
4300
- let e = J(a), u = c.class ? `.${J(c.class)}` : e;
4302
+ let e = q(a), u = c.class ? `.${q(c.class)}` : e;
4301
4303
  i.push(e);
4302
4304
  for (let i of ["old", "new"]) {
4303
4305
  let a = c[i];
4304
4306
  if (a == null) continue;
4305
- let { chunk: s, refusals: l } = jc(i, e, u, a, o, t);
4307
+ let { chunk: s, refusals: l } = Mc(i, e, u, a, o, t);
4306
4308
  for (let e of l) n.push(e);
4307
4309
  s && r.push(s);
4308
4310
  }
4309
4311
  if (s && (c.old != null || c.new != null || c.group != null)) {
4310
- let e = Mc(c);
4311
- e != null && r.push(`${o}::view-transition-group(${u}) {\n animation-duration: ${y(e.duration, e.durationUnit)};\n animation-timing-function: ${e.easing};\n}`);
4312
+ let e = Nc(c);
4313
+ e != null && r.push(`${o}::view-transition-group(${u}) {\n animation-duration: ${v(e.duration, e.durationUnit)};\n animation-timing-function: ${e.easing};\n}`);
4312
4314
  }
4313
4315
  }
4314
4316
  t.crossDocument && r.unshift("@view-transition {\n navigation: auto;\n}"), (t.reducedMotion ?? !0) && r.push("@media (prefers-reduced-motion: reduce) {\n ::view-transition-group(*),\n ::view-transition-old(*),\n ::view-transition-new(*) {\n animation: none !important;\n }\n}");
@@ -4327,7 +4329,7 @@ async function Nc(e, t = {}) {
4327
4329
  }
4328
4330
  //#endregion
4329
4331
  //#region src/animation/compile/emit/entry.ts
4330
- var Pc = (e) => e.kind === "scalar" ? e.payload.type === "color" : (e.kind === "call" ? e.args : e.items).some(Pc), Fc = (e) => {
4332
+ var Fc = (e) => e.kind === "scalar" ? e.payload.type === "color" : (e.kind === "call" ? e.args : e.items).some(Fc), Ic = (e) => {
4331
4333
  if (e.kind === "scalar") {
4332
4334
  if (e.payload.type !== "color") return e;
4333
4335
  let t = Ee(e.payload.value, "oklab");
@@ -4343,20 +4345,20 @@ var Pc = (e) => e.kind === "scalar" ? e.payload.type === "color" : (e.kind === "
4343
4345
  return e.kind === "call" ? {
4344
4346
  kind: "call",
4345
4347
  name: e.name,
4346
- args: e.args.map(Fc)
4348
+ args: e.args.map(Ic)
4347
4349
  } : {
4348
4350
  kind: "list",
4349
4351
  separator: e.separator,
4350
- items: e.items.map(Fc)
4352
+ items: e.items.map(Ic)
4351
4353
  };
4352
4354
  };
4353
- function Ic(e, t) {
4355
+ function $(e, t) {
4354
4356
  let n = e.parsedVars[t] ?? {}, r = [];
4355
4357
  for (let [e, t] of Object.entries(n)) {
4356
4358
  let n = k(e);
4357
4359
  r.push({
4358
4360
  prop: n,
4359
- value: b(Fc(t))
4361
+ value: y(Ic(t))
4360
4362
  });
4361
4363
  }
4362
4364
  return r;
@@ -4368,7 +4370,7 @@ function Lc(e) {
4368
4370
  function Rc(e) {
4369
4371
  for (let t = 0; t < e.templateFrames.length; t++) {
4370
4372
  let n = e.parsedVars[t] ?? {};
4371
- for (let e of Object.values(n)) if (Pc(e)) return !0;
4373
+ for (let e of Object.values(n)) if (Fc(e)) return !0;
4372
4374
  }
4373
4375
  return !1;
4374
4376
  }
@@ -4411,7 +4413,7 @@ function Bc(e) {
4411
4413
  detail: "a custom transform closure cannot be a CSS transition endpoint"
4412
4414
  };
4413
4415
  try {
4414
- Y(t.timingFunction);
4416
+ J(t.timingFunction);
4415
4417
  } catch {
4416
4418
  return {
4417
4419
  reason: "entry-easing-twin",
@@ -4459,12 +4461,12 @@ async function Gc(e, t = {}) {
4459
4461
  }
4460
4462
  }
4461
4463
  if (l) continue;
4462
- let [u, d] = Lc(e), f = Ic(e, u), p = Ic(e, d), m = Hc(f, p), h = y(e.options.duration, e.options.durationUnit), g = Y(e.options.timingFunction), _, v, b, ee;
4464
+ let [u, d] = Lc(e), f = $(e, u), p = $(e, d), m = Hc(f, p), h = v(e.options.duration, e.options.durationUnit), ee = J(e.options.timingFunction), g, _, y, b;
4463
4465
  if (s.exit) {
4464
4466
  let [, e] = Lc(s.exit), t = Lc(s.exit)[0];
4465
- _ = Ic(s.exit, e), v = Hc(Ic(s.exit, t), _), b = y(s.exit.options.duration, s.exit.options.durationUnit), ee = Y(s.exit.options.timingFunction);
4466
- } else _ = f, v = m, b = h, ee = g;
4467
- let x = `${t}${n}`, te = `${t} {\n${Wc(_, [" display: none;", ` transition: ${Uc(v, b, ee, i)};`])}\n}`, ne = `${x} {\n${Wc(p, [` display: ${r};`, ` transition: ${Uc(m, h, g, i)};`])}\n}`, re = `@starting-style {\n ${x} {\n${Wc(f, []).split("\n").map((e) => ` ${e}`).join("\n")}\n }\n}`;
4467
+ g = $(s.exit, e), _ = Hc($(s.exit, t), g), y = v(s.exit.options.duration, s.exit.options.durationUnit), b = J(s.exit.options.timingFunction);
4468
+ } else g = f, _ = m, y = h, b = ee;
4469
+ let x = `${t}${n}`, te = `${t} {\n${Wc(g, [" display: none;", ` transition: ${Uc(_, y, b, i)};`])}\n}`, ne = `${x} {\n${Wc(p, [` display: ${r};`, ` transition: ${Uc(m, h, ee, i)};`])}\n}`, re = `@starting-style {\n ${x} {\n${Wc(f, []).split("\n").map((e) => ` ${e}`).join("\n")}\n }\n}`;
4468
4470
  o.push(`${te}\n\n${ne}\n\n${re}`);
4469
4471
  }
4470
4472
  let s = a.length === 0;
@@ -4480,9 +4482,9 @@ async function Gc(e, t = {}) {
4480
4482
  }
4481
4483
  //#endregion
4482
4484
  //#region src/animation/validate.ts
4483
- var Kc = (e) => new W().fromString(e);
4485
+ var Kc = (e) => new U().fromString(e);
4484
4486
  async function qc(e, t = {}) {
4485
- let n = Kc(e), r = [...n.diagnostics], i = r.some((e) => e.code === "EMPTY_PARSE"), a = e.trim().length > 0 && !i, o = await Tc([n], t.compile ?? {}), s = F(n);
4487
+ let n = Kc(e), r = [...n.diagnostics], i = r.some((e) => e.code === "EMPTY_PARSE"), a = e.trim().length > 0 && !i, o = await Ec([n], t.compile ?? {}), s = P(n);
4486
4488
  return {
4487
4489
  parseable: a,
4488
4490
  eligible: o.eligible,
@@ -4503,4 +4505,4 @@ async function Yc(e, t = {}) {
4503
4505
  return a.join("\n");
4504
4506
  }
4505
4507
  //#endregion
4506
- export { ca as AnimationGroup, W as CSSKeyframesAnimation, sc as CSSKeyframesToString, rc as CSSKeyframesToStrings, Pe as DIRECTIONS, ha as DrawSVG, Fe as FILL_MODES, ti as KeyframesAnimation, wa as MorphSVG, fa as MotionPath, Os as ScrollScene, Ns as TriggerScene, Ss as adoptRunning, He as bumpLayoutEpoch, Tc as compileToCSS, Gc as compileToEntry, Nc as compileToViewTransition, ks as createScrollScene, Ps as createTriggerScene, J as cssIdent, Re as defaultLayerConfig, E as defaultOptions, As as dispatchScrollBackend, Rs as driveScrollCSS, Yc as explain, ic as formatCSSKeyframeString, ma as fromDrawSVG, bs as fromLiveAnimations, Ca as fromMorphSVG, da as fromMotionPath, ys as fromStyleSheets, U as getAnimationId, Hs as parseScrollCSS, Vs as parseScrollRange, Bs as parseScrollTimeline, js as pinCSS, us as presets, ci as resolveKeyframes, vs as resolveLiveKeyframes, Ds as resolveRange, _e as resolveTimingFunction, y as reverseCSSTime, Ws as roundTripScrollCSS, Us as serializeScrollOptions, x as serializeTimingFunction, Ms as supportsNativeTrigger, fe as timingFunctionEntries, Dt as transformTargetsStyle, qc as validate, Ki as yieldToMain };
4508
+ export { la as AnimationGroup, U as CSSKeyframesAnimation, cc as CSSKeyframesToString, ic as CSSKeyframesToStrings, Pe as DIRECTIONS, ga as DrawSVG, Fe as FILL_MODES, ni as KeyframesAnimation, Ta as MorphSVG, pa as MotionPath, ks as ScrollScene, Ps as TriggerScene, Cs as adoptRunning, Ve as bumpLayoutEpoch, Ec as compileToCSS, Gc as compileToEntry, Pc as compileToViewTransition, As as createScrollScene, Fs as createTriggerScene, q as cssIdent, Re as defaultLayerConfig, E as defaultOptions, js as dispatchScrollBackend, zs as driveScrollCSS, Yc as explain, ac as formatCSSKeyframeString, ha as fromDrawSVG, xs as fromLiveAnimations, wa as fromMorphSVG, fa as fromMotionPath, bs as fromStyleSheets, H as getAnimationId, Us as parseScrollCSS, Hs as parseScrollRange, Vs as parseScrollTimeline, Ms as pinCSS, ds as presets, li as resolveKeyframes, ys as resolveLiveKeyframes, Os as resolveRange, _e as resolveTimingFunction, v as reverseCSSTime, Gs as roundTripScrollCSS, Ws as serializeScrollOptions, x as serializeTimingFunction, Ns as supportsNativeTrigger, fe as timingFunctionEntries, Ot as transformTargetsStyle, qc as validate, qi as yieldToMain };