@mkbabb/keyframes.js 6.3.0 → 6.5.0

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