@cliquify.me/elements-ui 8.0.3 → 8.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.es.js +1098 -1073
  2. package/package.json +6 -6
package/dist/index.es.js CHANGED
@@ -1,13 +1,13 @@
1
- var Ao = Object.defineProperty;
2
- var Uo = (t, n, r) => n in t ? Ao(t, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[n] = r;
3
- var Pt = (t, n, r) => Uo(t, typeof n != "symbol" ? n + "" : n, r);
4
- import { jsx as f, jsxs as yt, Fragment as Mt } from "react/jsx-runtime";
5
- import { Sequence as Po, AbsoluteFill as po, Audio as Wo, Easing as w, interpolate as W, HtmlInCanvas as Ko, useCurrentFrame as wt, OffthreadVideo as Dt, Img as At, spring as xt, useVideoConfig as Jo, random as qo } from "remotion";
6
- import { TransitionSeries as Vo, Transitions as To } from "@cliquify.me/transitions";
7
- import { BoxAnim as Zt, ContentAnim as Ut, MaskAnim as co } from "@cliquify.me/animations";
1
+ var Qo = Object.defineProperty;
2
+ var Uo = (t, n, r) => n in t ? Qo(t, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[n] = r;
3
+ var Wt = (t, n, r) => Uo(t, typeof n != "symbol" ? n + "" : n, r);
4
+ import { jsx as f, jsxs as vt, Fragment as kt } from "react/jsx-runtime";
5
+ import { Sequence as Po, AbsoluteFill as po, Audio as Wo, Easing as w, interpolate as W, HtmlInCanvas as Ko, useCurrentFrame as Yt, OffthreadVideo as Dt, Img as Qt, spring as St, useVideoConfig as Jo, random as qo } from "remotion";
6
+ import { TransitionSeries as Eo, Transitions as To } from "@cliquify.me/transitions";
7
+ import { BoxAnim as At, ContentAnim as Ut, MaskAnim as co } from "@cliquify.me/animations";
8
8
  import Do from "@emotion/styled";
9
9
  import { css as tn } from "@emotion/react";
10
- import Wt, { useCallback as on, useSyncExternalStore as nn, Component as rn, useMemo as to, useState as fo, useRef as mo, useEffect as eo } from "react";
10
+ import Et, { useCallback as on, useSyncExternalStore as nn, Component as rn, useMemo as to, useState as fo, useRef as mo, useEffect as eo } from "react";
11
11
  import { blur as en } from "@remotion/effects/blur";
12
12
  import { vignette as cn } from "@remotion/effects/vignette";
13
13
  import { chromaticAberration as sn } from "@remotion/effects/chromatic-aberration";
@@ -23,7 +23,7 @@ import { lightLeak as yn } from "@remotion/effects/light-leak";
23
23
  import { getAudioData as bn, visualizeAudio as gn } from "@remotion/media-utils";
24
24
  import { isEqual as vn, cloneDeep as Tt } from "lodash";
25
25
  import { Rect as xn, Circle as $n, Triangle as Mn, Star as Sn, Polygon as In, Ellipse as kn } from "@remotion/shapes";
26
- const $t = (t, n) => {
26
+ const It = (t, n) => {
27
27
  const r = t.from / 1e3 * n, s = t.to / 1e3 * n - r;
28
28
  return { from: r, durationInFrames: s };
29
29
  }, wn = (t, n) => ({
@@ -32,7 +32,7 @@ const $t = (t, n) => {
32
32
  top: -(n.y || 0),
33
33
  left: -(n.x || 0),
34
34
  position: "absolute"
35
- }), Eo = (t, n, r = {}) => {
35
+ }), Vo = (t, n, r = {}) => {
36
36
  const s = `${Math.min(
37
37
  n.width || t.width || 0,
38
38
  n.height || t.height || 0
@@ -63,7 +63,7 @@ const $t = (t, n) => {
63
63
  pointerEvents: "none",
64
64
  zIndex: 10
65
65
  };
66
- }, Ct = (t) => ({
66
+ }, Gt = (t) => ({
67
67
  position: "relative",
68
68
  textDecoration: t.textDecoration || "none",
69
69
  WebkitTextStroke: `${t.borderWidth}px ${t.borderColor}`,
@@ -153,13 +153,13 @@ const $t = (t, n) => {
153
153
  }
154
154
  )
155
155
  }
156
- ), mt = ({
156
+ ), gt = ({
157
157
  item: t,
158
158
  options: n,
159
159
  children: r
160
160
  }) => {
161
161
  var m, v;
162
- const { details: s } = t, { fps: e, isTransition: a } = n, { from: d, durationInFrames: o } = $t(
162
+ const { details: s } = t, { fps: e, isTransition: a } = n, { from: d, durationInFrames: o } = It(
163
163
  {
164
164
  from: t.display.from,
165
165
  to: t.display.to
@@ -168,18 +168,18 @@ const $t = (t, n) => {
168
168
  ), p = s.crop || {
169
169
  width: t.details.width,
170
170
  height: t.details.height
171
- }, c = ((m = s == null ? void 0 : s.background) == null ? void 0 : m.type) === "color" ? (v = s == null ? void 0 : s.background) == null ? void 0 : v.value : typeof (s == null ? void 0 : s.background) == "string" ? s == null ? void 0 : s.background : "transparent", i = ["template", "composition"].includes(t.type), l = ["image", "video"].includes(t.type), h = ["text", "caption"].includes(t.type);
171
+ }, c = ((m = s == null ? void 0 : s.background) == null ? void 0 : m.type) === "color" ? (v = s == null ? void 0 : s.background) == null ? void 0 : v.value : typeof (s == null ? void 0 : s.background) == "string" ? s == null ? void 0 : s.background : "transparent", h = ["template", "composition"].includes(t.type), l = ["image", "video"].includes(t.type), i = ["text", "caption"].includes(t.type);
172
172
  let u = Kt(s, p, { background: c });
173
173
  if (l) {
174
- const { background: b, ...$ } = u;
175
- u = $;
174
+ const { background: b, ...x } = u;
175
+ u = x;
176
176
  }
177
- h && delete u.boxShadow;
178
- const y = i ? "!pointer-events-auto" : "";
179
- return a ? /* @__PURE__ */ yt(
180
- Vo.Sequence,
177
+ i && delete u.boxShadow;
178
+ const y = h ? "!pointer-events-auto" : "";
179
+ return a ? /* @__PURE__ */ vt(
180
+ Eo.Sequence,
181
181
  {
182
- durationInFrames: o,
182
+ durationInFrames: o + 1,
183
183
  premountFor: t.type === "video" || t.type === "audio" || t.type === "image" ? 100 : void 0,
184
184
  style: { pointerEvents: "none" },
185
185
  children: [
@@ -211,7 +211,7 @@ const $t = (t, n) => {
211
211
  ]
212
212
  },
213
213
  t.id
214
- ) : /* @__PURE__ */ yt(
214
+ ) : /* @__PURE__ */ vt(
215
215
  Po,
216
216
  {
217
217
  from: d,
@@ -265,9 +265,9 @@ function Re({
265
265
  volume: s.volume / 100
266
266
  }
267
267
  );
268
- return mt({ item: t, options: n, children: a });
268
+ return gt({ item: t, options: n, children: a });
269
269
  }
270
- const It = (t, n, r, s) => {
270
+ const Nt = (t, n, r, s) => {
271
271
  let e = null, a = null, d = null, o = null;
272
272
  return t != null && t.in && (e = [], t.in.composition.forEach((p) => {
273
273
  e.push({
@@ -297,9 +297,9 @@ const It = (t, n, r, s) => {
297
297
  delay: p.delay
298
298
  });
299
299
  })), t != null && t.timed && s !== void 0 && r !== void 0 && (o = [], t.timed.composition.forEach((p) => {
300
- const c = p.delay, i = n.display.from * s / 1e3, h = r - i - c >= 0;
300
+ const c = p.delay, h = n.display.from * s / 1e3, i = r - h - c >= 0;
301
301
  o.push({
302
- property: h ? p.property : "none",
302
+ property: i ? p.property : "none",
303
303
  from: Number(p.from || 0),
304
304
  to: Number(p.to || 0),
305
305
  durationInFrames: p.durationInFrames,
@@ -398,15 +398,15 @@ const It = (t, n, r, s) => {
398
398
  animation: d,
399
399
  playerRef: o
400
400
  }) => {
401
- const p = Yn(o || null), { start: c, end: i } = t, l = (c + n) / 1e3 * 30, h = (i + n) / 1e3 * 30, u = p > l && p < h, y = p > l, m = u ? r : y ? e : a, v = Pn.includes(d) ? u ? 1.2 : 0.9 : 1, b = t.word.length, $ = h - l, g = Math.min(
401
+ const p = Yn(o || null), { start: c, end: h } = t, l = (c + n) / 1e3 * 30, i = (h + n) / 1e3 * 30, u = p > l && p < i, y = p > l, m = u ? r : y ? e : a, v = Pn.includes(d) ? u ? 1.2 : 0.9 : 1, b = t.word.length, x = i - l, g = Math.min(
402
402
  b,
403
403
  Math.floor(
404
- (p - l) / $ * b
404
+ (p - l) / x * b
405
405
  )
406
- ), M = d === "letteeTracy" ? W(p, [l, h], [0, 1], {
406
+ ), M = d === "letteeTracy" ? W(p, [l, i], [0, 1], {
407
407
  extrapolateLeft: "clamp",
408
408
  extrapolateRight: "clamp"
409
- }) : 1, x = Xn.includes(d) ? t.word.slice(0, g) : t.word;
409
+ }) : 1, $ = Xn.includes(d) ? t.word.slice(0, g) : t.word;
410
410
  return /* @__PURE__ */ f(
411
411
  Rn,
412
412
  {
@@ -416,7 +416,7 @@ const It = (t, n, r, s) => {
416
416
  scale: v,
417
417
  animation: d,
418
418
  style: { opacity: M },
419
- children: x
419
+ children: $
420
420
  }
421
421
  );
422
422
  };
@@ -424,13 +424,13 @@ function Xe({
424
424
  item: t,
425
425
  options: n
426
426
  }) {
427
- const { fps: r, frame: s } = n, { details: e, display: a, animations: d } = t, { animationIn: o, animationOut: p, animationTimed: c } = It(
427
+ const { fps: r, frame: s } = n, { details: e, display: a, animations: d } = t, { animationIn: o, animationOut: p, animationTimed: c } = Nt(
428
428
  d,
429
429
  t,
430
430
  s,
431
431
  r
432
- ), { from: i, durationInFrames: l } = $t(t.display, r), [h] = e.words, u = a.from - h.start;
433
- let y = Math.max((s ?? 0) - i, 0), m = {};
432
+ ), { from: h, durationInFrames: l } = It(t.display, r), [i] = e.words, u = a.from - i.start;
433
+ let y = Math.max((s ?? 0) - h, 0), m = {};
434
434
  switch (e == null ? void 0 : e.animation) {
435
435
  case "letterElla":
436
436
  m = Fn(y);
@@ -458,8 +458,8 @@ function Xe({
458
458
  ...m.scale !== void 0 && {
459
459
  transform: `scale(${m.scale})`
460
460
  }
461
- }, b = (s || 0) - t.display.from * r / 1e3, $ = /* @__PURE__ */ f(
462
- Zt,
461
+ }, b = (s || 0) - t.display.from * r / 1e3, x = /* @__PURE__ */ f(
462
+ At,
463
463
  {
464
464
  style: Kt(e),
465
465
  animationIn: o,
@@ -476,7 +476,7 @@ function Xe({
476
476
  "div",
477
477
  {
478
478
  style: {
479
- ...Ct(e),
479
+ ...Gt(e),
480
480
  ...v,
481
481
  transition: "transform 0.2s ease"
482
482
  },
@@ -500,43 +500,43 @@ function Xe({
500
500
  )
501
501
  }
502
502
  );
503
- return mt({ item: t, options: n, children: $ });
503
+ return gt({ item: t, options: n, children: x });
504
504
  }
505
505
  const Pe = ({
506
506
  item: t,
507
507
  options: n
508
508
  }) => {
509
- var h, u, y;
510
- const { fps: r, frame: s } = n, { details: e, animations: a } = t, { animationIn: d, animationOut: o, animationTimed: p } = It(
509
+ var i, u, y;
510
+ const { fps: r, frame: s } = n, { details: e, animations: a } = t, { animationIn: d, animationOut: o, animationTimed: p } = Nt(
511
511
  a,
512
512
  t,
513
513
  s,
514
514
  r
515
- ), { durationInFrames: c } = $t(t.display, r), i = (s || 0) - t.display.from * r / 1e3, l = /* @__PURE__ */ f(
516
- Zt,
515
+ ), { durationInFrames: c } = It(t.display, r), h = (s || 0) - t.display.from * r / 1e3, l = /* @__PURE__ */ f(
516
+ At,
517
517
  {
518
518
  style: Kt(e),
519
519
  animationIn: d,
520
520
  animationOut: o,
521
- frame: i,
521
+ frame: h,
522
522
  durationInFrames: c,
523
523
  children: /* @__PURE__ */ f(
524
524
  Ut,
525
525
  {
526
526
  animationTimed: p,
527
527
  durationInFrames: c,
528
- frame: i,
528
+ frame: h,
529
529
  style: e,
530
530
  children: /* @__PURE__ */ f(
531
531
  co,
532
532
  {
533
533
  item: t,
534
534
  keyframeAnimations: [
535
- ...((h = a == null ? void 0 : a.in) == null ? void 0 : h.composition) || [],
535
+ ...((i = a == null ? void 0 : a.in) == null ? void 0 : i.composition) || [],
536
536
  ...((u = a == null ? void 0 : a.timed) == null ? void 0 : u.composition) || [],
537
537
  ...((y = a == null ? void 0 : a.loop) == null ? void 0 : y.composition) || []
538
538
  ],
539
- frame: i,
539
+ frame: h,
540
540
  children: /* @__PURE__ */ f("div", { dangerouslySetInnerHTML: { __html: t.details.svgString } })
541
541
  }
542
542
  )
@@ -544,7 +544,7 @@ const Pe = ({
544
544
  )
545
545
  }
546
546
  );
547
- return mt({ item: t, options: n, children: l });
547
+ return gt({ item: t, options: n, children: l });
548
548
  };
549
549
  class yo extends rn {
550
550
  constructor(n) {
@@ -561,7 +561,7 @@ class yo extends rn {
561
561
  );
562
562
  }
563
563
  render() {
564
- return this.state.hasError || !this.props.effects ? /* @__PURE__ */ f(Mt, { children: this.props.children }) : /* @__PURE__ */ f(
564
+ return this.state.hasError || !this.props.effects ? /* @__PURE__ */ f(kt, { children: this.props.children }) : /* @__PURE__ */ f(
565
565
  Ko,
566
566
  {
567
567
  width: this.props.width,
@@ -583,33 +583,33 @@ const Oo = ({
583
583
  width: o,
584
584
  height: p,
585
585
  borderRadius: c,
586
- borderWidth: i,
586
+ borderWidth: h,
587
587
  borderColor: l,
588
- boxShadow: h,
588
+ boxShadow: i,
589
589
  marqueeDetails: u,
590
590
  effects: y
591
591
  }) => {
592
- const m = wt(), v = typeof r == "number" && !isNaN(r) ? r : m, b = Math.max(0, v - (s || 0)), $ = Math.min(1, Math.max(0, b / (e || 1))), g = o || 300, M = p || 300, x = (u == null ? void 0 : u.direction) || "horizontal", I = x === "static", k = Math.min(12, Math.max(1, Number((u == null ? void 0 : u.repeatX) ?? 5))), S = Math.min(12, Math.max(1, Number((u == null ? void 0 : u.repeatY) ?? 5))), Y = (u == null ? void 0 : u.baseSpeed) !== void 0 ? Number(u.baseSpeed) : 0.25, N = (u == null ? void 0 : u.speedVariation) !== void 0 ? Number(u.speedVariation) : 0.5, E = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialBaseSpeed) !== void 0 ? Number(u.initialBaseSpeed) : Y, F = u != null && u.hasInitialValue ? E + (Y - E) * $ : Y, X = I ? 0 : F * 80, P = I ? 0 : F * 80, L = (u == null ? void 0 : u.scaleFactor) !== void 0 ? Number(u.scaleFactor) : 1, V = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialScaleFactor) !== void 0 ? Number(u.initialScaleFactor) : L, O = u != null && u.hasInitialValue ? V + (L - V) * $ : L, C = (u == null ? void 0 : u.lineOffset) !== void 0 ? Number(u.lineOffset) : 0.5, B = g / k, z = M / S, et = (u == null ? void 0 : u.gapX) !== void 0 ? Number(u.gapX) : 60, q = (u == null ? void 0 : u.gapY) !== void 0 ? Number(u.gapY) : 60, Z = et / 60 * Math.min(20, B * 0.2), K = q / 60 * Math.min(20, z * 0.2), T = Math.max(
592
+ const m = Yt(), v = typeof r == "number" && !isNaN(r) ? r : m, b = Math.max(0, v - (s || 0)), x = Math.min(1, Math.max(0, b / (e || 1))), g = o || 300, M = p || 300, $ = (u == null ? void 0 : u.direction) || "horizontal", I = $ === "static", k = Math.min(12, Math.max(1, Number((u == null ? void 0 : u.repeatX) ?? 5))), S = Math.min(12, Math.max(1, Number((u == null ? void 0 : u.repeatY) ?? 5))), Y = (u == null ? void 0 : u.baseSpeed) !== void 0 ? Number(u.baseSpeed) : 0.25, N = (u == null ? void 0 : u.speedVariation) !== void 0 ? Number(u.speedVariation) : 0.5, V = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialBaseSpeed) !== void 0 ? Number(u.initialBaseSpeed) : Y, F = u != null && u.hasInitialValue ? V + (Y - V) * x : Y, X = I ? 0 : F * 80, P = I ? 0 : F * 80, G = (u == null ? void 0 : u.scaleFactor) !== void 0 ? Number(u.scaleFactor) : 1, E = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialScaleFactor) !== void 0 ? Number(u.initialScaleFactor) : G, O = u != null && u.hasInitialValue ? E + (G - E) * x : G, C = (u == null ? void 0 : u.lineOffset) !== void 0 ? Number(u.lineOffset) : 0.5, B = g / k, z = M / S, et = (u == null ? void 0 : u.gapX) !== void 0 ? Number(u.gapX) : 60, T = (u == null ? void 0 : u.gapY) !== void 0 ? Number(u.gapY) : 60, Z = et / 60 * Math.min(20, B * 0.2), J = T / 60 * Math.min(20, z * 0.2), D = Math.max(
593
593
  10,
594
594
  (B - Z) * Math.max(0.1, O)
595
- ), ct = Math.max(
595
+ ), st = Math.max(
596
596
  10,
597
- (z - K) * Math.max(0.1, O)
598
- ), lt = h ? typeof h == "string" ? h : `${h.x ?? 0}px ${h.y ?? 0}px ${h.blur ?? 0}px ${h.color ?? ""}` : void 0, G = x === "vertical" || x === "up" || x === "down", D = x === "diagonal", U = S + ((G || D) && P > 0 ? 2 : 0), tt = k + ((!G || D) && X > 0 ? 2 : 0), Q = (U - 1) / 2, A = (tt - 1) / 2, ut = Array.from({ length: U }, (J, nt) => nt - Q), vt = Array.from({ length: tt }, (J, nt) => nt - A), it = (J, nt, ot, st) => /* @__PURE__ */ f(
597
+ (z - J) * Math.max(0.1, O)
598
+ ), mt = i ? typeof i == "string" ? i : `${i.x ?? 0}px ${i.y ?? 0}px ${i.blur ?? 0}px ${i.color ?? ""}` : void 0, L = $ === "vertical" || $ === "up" || $ === "down", tt = $ === "diagonal", U = S + ((L || tt) && P > 0 ? 2 : 0), ot = k + ((!L || tt) && X > 0 ? 2 : 0), A = (U - 1) / 2, Q = (ot - 1) / 2, lt = Array.from({ length: U }, (q, rt) => rt - A), Mt = Array.from({ length: ot }, (q, rt) => rt - Q), pt = (q, rt, nt, dt) => /* @__PURE__ */ f(
599
599
  "div",
600
600
  {
601
601
  style: {
602
602
  position: "absolute",
603
- left: `calc(50% + ${nt}px)`,
604
- top: `calc(50% + ${ot}px)`,
603
+ left: `calc(50% + ${rt}px)`,
604
+ top: `calc(50% + ${nt}px)`,
605
605
  transform: "translate(-50%, -50%)",
606
- width: `${T}px`,
607
- height: `${ct}px`,
606
+ width: `${D}px`,
607
+ height: `${st}px`,
608
608
  borderRadius: c || 0,
609
- boxShadow: lt,
610
- opacity: st ? 1 : 0.85
609
+ boxShadow: mt,
610
+ opacity: dt ? 1 : 0.85
611
611
  },
612
- children: /* @__PURE__ */ yt(
612
+ children: /* @__PURE__ */ vt(
613
613
  "div",
614
614
  {
615
615
  style: {
@@ -631,7 +631,7 @@ const Oo = ({
631
631
  }
632
632
  }
633
633
  ) : /* @__PURE__ */ f(
634
- At,
634
+ Qt,
635
635
  {
636
636
  src: t,
637
637
  style: {
@@ -641,14 +641,14 @@ const Oo = ({
641
641
  }
642
642
  }
643
643
  ),
644
- i && l ? /* @__PURE__ */ f(
644
+ h && l ? /* @__PURE__ */ f(
645
645
  "div",
646
646
  {
647
647
  style: {
648
648
  position: "absolute",
649
649
  inset: 0,
650
650
  borderRadius: c || 0,
651
- border: `${i}px solid ${l}`,
651
+ border: `${h}px solid ${l}`,
652
652
  boxSizing: "border-box",
653
653
  pointerEvents: "none"
654
654
  }
@@ -658,9 +658,9 @@ const Oo = ({
658
658
  }
659
659
  )
660
660
  },
661
- J
661
+ q
662
662
  );
663
- return G ? /* @__PURE__ */ f(
663
+ return L ? /* @__PURE__ */ f(
664
664
  "div",
665
665
  {
666
666
  style: {
@@ -670,22 +670,22 @@ const Oo = ({
670
670
  overflow: "hidden",
671
671
  borderRadius: c || 0
672
672
  },
673
- children: vt.map((J, nt) => {
674
- let ot = nt % 2 === 0 ? 1 : -1;
675
- x === "up" && (ot = -1), x === "down" && (ot = 1);
676
- const st = 1 + nt % 2 * (N * 0.5), at = P > 0 && ot !== 0 ? ot * (v * P * st) + J * (z * C) : J * (z * C), ft = P === 0 || ot === 0 ? 0 : (at % z + z) % z;
677
- return ut.map((bt, St) => {
678
- const pt = J * B, gt = bt * z + ft;
679
- return it(
680
- `v-${nt}-${St}`,
681
- pt,
682
- gt,
683
- bt === 0 && J === 0
673
+ children: Mt.map((q, rt) => {
674
+ let nt = rt % 2 === 0 ? 1 : -1;
675
+ $ === "up" && (nt = -1), $ === "down" && (nt = 1);
676
+ const dt = 1 + rt % 2 * (N * 0.5), it = P > 0 && nt !== 0 ? nt * (v * P * dt) + q * (z * C) : q * (z * C), yt = P === 0 || nt === 0 ? 0 : (it % z + z) % z;
677
+ return lt.map((xt, wt) => {
678
+ const ft = q * B, $t = xt * z + yt;
679
+ return pt(
680
+ `v-${rt}-${wt}`,
681
+ ft,
682
+ $t,
683
+ xt === 0 && q === 0
684
684
  );
685
685
  });
686
686
  })
687
687
  }
688
- ) : D ? /* @__PURE__ */ f(
688
+ ) : tt ? /* @__PURE__ */ f(
689
689
  "div",
690
690
  {
691
691
  style: {
@@ -695,15 +695,15 @@ const Oo = ({
695
695
  overflow: "hidden",
696
696
  borderRadius: c || 0
697
697
  },
698
- children: ut.map((J, nt) => {
699
- const ot = nt % 2 === 0 ? 1 : -1, st = nt % 2 === 0 ? 1 : -1, at = 1 + nt % 2 * (N * 0.5), ft = X > 0 ? ot * (v * X * at) + J * (B * C) : J * (B * C), bt = X === 0 ? 0 : (ft % B + B) % B, St = P > 0 ? st * (v * P * at) + J * (z * C) : J * (z * C), pt = P === 0 ? 0 : (St % z + z) % z;
700
- return vt.map((gt, Nt) => {
701
- const Yt = gt * B + bt, Ft = J * z + pt;
702
- return it(
703
- `d-${nt}-${Nt}`,
704
- Yt,
705
- Ft,
706
- J === 0 && gt === 0
698
+ children: lt.map((q, rt) => {
699
+ const nt = rt % 2 === 0 ? 1 : -1, dt = rt % 2 === 0 ? 1 : -1, it = 1 + rt % 2 * (N * 0.5), yt = X > 0 ? nt * (v * X * it) + q * (B * C) : q * (B * C), xt = X === 0 ? 0 : (yt % B + B) % B, wt = P > 0 ? dt * (v * P * it) + q * (z * C) : q * (z * C), ft = P === 0 ? 0 : (wt % z + z) % z;
700
+ return Mt.map(($t, Ft) => {
701
+ const Rt = $t * B + xt, Xt = q * z + ft;
702
+ return pt(
703
+ `d-${rt}-${Ft}`,
704
+ Rt,
705
+ Xt,
706
+ q === 0 && $t === 0
707
707
  );
708
708
  });
709
709
  })
@@ -718,17 +718,17 @@ const Oo = ({
718
718
  overflow: "hidden",
719
719
  borderRadius: c || 0
720
720
  },
721
- children: ut.map((J, nt) => {
722
- let ot = nt % 2 === 0 ? 1 : -1;
723
- x === "left" && (ot = -1), x === "right" && (ot = 1);
724
- const st = 1 + nt % 2 * (N * 0.5), at = X > 0 && ot !== 0 ? ot * (v * X * st) + J * (B * C) : J * (B * C), ft = X === 0 || ot === 0 ? 0 : (at % B + B) % B;
725
- return vt.map((bt, St) => {
726
- const pt = bt * B + ft, gt = J * z;
727
- return it(
728
- `h-${nt}-${St}`,
729
- pt,
730
- gt,
731
- J === 0 && bt === 0
721
+ children: lt.map((q, rt) => {
722
+ let nt = rt % 2 === 0 ? 1 : -1;
723
+ $ === "left" && (nt = -1), $ === "right" && (nt = 1);
724
+ const dt = 1 + rt % 2 * (N * 0.5), it = X > 0 && nt !== 0 ? nt * (v * X * dt) + q * (B * C) : q * (B * C), yt = X === 0 || nt === 0 ? 0 : (it % B + B) % B;
725
+ return Mt.map((xt, wt) => {
726
+ const ft = xt * B + yt, $t = q * z;
727
+ return pt(
728
+ `h-${rt}-${wt}`,
729
+ ft,
730
+ $t,
731
+ q === 0 && xt === 0
732
732
  );
733
733
  });
734
734
  })
@@ -745,16 +745,16 @@ const Oo = ({
745
745
  width: o,
746
746
  height: p,
747
747
  borderRadius: c,
748
- borderWidth: i,
748
+ borderWidth: h,
749
749
  borderColor: l,
750
- boxShadow: h,
750
+ boxShadow: i,
751
751
  echoesDetails: u,
752
752
  effects: y
753
753
  }) => {
754
- const m = wt(), v = typeof r == "number" && !isNaN(r) ? r : m, b = o || 300, $ = p || 300, g = (u == null ? void 0 : u.keepStill) || "both", M = Number((u == null ? void 0 : u.toRepeatCount) ?? 5), x = Number((u == null ? void 0 : u.toScaleDown) ?? 0.3), I = Number((u == null ? void 0 : u.toCenterX) ?? 0.5), k = Number((u == null ? void 0 : u.toCenterY) ?? 0.5), S = (u == null ? void 0 : u.initialRepeatCount) !== void 0 ? Number(u.initialRepeatCount) : M, Y = (u == null ? void 0 : u.initialScaleDown) !== void 0 ? Number(u.initialScaleDown) : 1, N = (u == null ? void 0 : u.initialCenterX) !== void 0 ? Number(u.initialCenterX) : I, E = (u == null ? void 0 : u.initialCenterY) !== void 0 ? Number(u.initialCenterY) : k, F = Math.max(0, v - (s || 0)), X = Math.min(1, Math.max(0, F / (e || 1)));
755
- let L = a + (d - a) * X;
756
- g === "initial" ? L = 0 : g === "final" && (L = 1);
757
- const V = Math.max(1, Math.round(W(L, [0, 1], [S, M]))), O = W(L, [0, 1], [Y, x]), C = W(L, [0, 1], [N, I]), B = W(L, [0, 1], [E, k]), z = h ? typeof h == "string" ? h : `${h.x ?? 0}px ${h.y ?? 0}px ${h.blur ?? 0}px ${h.color ?? ""}` : void 0, et = Array.from({ length: V }, (q, Z) => Z);
754
+ const m = Yt(), v = typeof r == "number" && !isNaN(r) ? r : m, b = o || 300, x = p || 300, g = (u == null ? void 0 : u.keepStill) || "both", M = Number((u == null ? void 0 : u.toRepeatCount) ?? 5), $ = Number((u == null ? void 0 : u.toScaleDown) ?? 0.3), I = Number((u == null ? void 0 : u.toCenterX) ?? 0.5), k = Number((u == null ? void 0 : u.toCenterY) ?? 0.5), S = (u == null ? void 0 : u.initialRepeatCount) !== void 0 ? Number(u.initialRepeatCount) : M, Y = (u == null ? void 0 : u.initialScaleDown) !== void 0 ? Number(u.initialScaleDown) : 1, N = (u == null ? void 0 : u.initialCenterX) !== void 0 ? Number(u.initialCenterX) : I, V = (u == null ? void 0 : u.initialCenterY) !== void 0 ? Number(u.initialCenterY) : k, F = Math.max(0, v - (s || 0)), X = Math.min(1, Math.max(0, F / (e || 1)));
755
+ let G = a + (d - a) * X;
756
+ g === "initial" ? G = 0 : g === "final" && (G = 1);
757
+ const E = Math.max(1, Math.round(W(G, [0, 1], [S, M]))), O = W(G, [0, 1], [Y, $]), C = W(G, [0, 1], [N, I]), B = W(G, [0, 1], [V, k]), z = i ? typeof i == "string" ? i : `${i.x ?? 0}px ${i.y ?? 0}px ${i.blur ?? 0}px ${i.color ?? ""}` : void 0, et = Array.from({ length: E }, (T, Z) => Z);
758
758
  return /* @__PURE__ */ f(
759
759
  "div",
760
760
  {
@@ -765,8 +765,8 @@ const Oo = ({
765
765
  overflow: "hidden",
766
766
  borderRadius: c || 0
767
767
  },
768
- children: et.map((q) => {
769
- const Z = V > 1 ? q / (V - 1) : 0, K = 1 - Z * (1 - Math.max(0.01, O)), T = (C - 0.5) * b * Z, ct = (B - 0.5) * $ * Z;
768
+ children: et.map((T) => {
769
+ const Z = E > 1 ? T / (E - 1) : 0, J = 1 - Z * (1 - Math.max(0.01, O)), D = (C - 0.5) * b * Z, st = (B - 0.5) * x * Z;
770
770
  return /* @__PURE__ */ f(
771
771
  "div",
772
772
  {
@@ -775,14 +775,14 @@ const Oo = ({
775
775
  left: "50%",
776
776
  top: "50%",
777
777
  width: `${b}px`,
778
- height: `${$}px`,
779
- transform: `translate(-50%, -50%) translate(${T}px, ${ct}px) scale(${K})`,
778
+ height: `${x}px`,
779
+ transform: `translate(-50%, -50%) translate(${D}px, ${st}px) scale(${J})`,
780
780
  transformOrigin: "center center",
781
781
  borderRadius: c || 0,
782
782
  boxShadow: z,
783
- zIndex: q + 1
783
+ zIndex: T + 1
784
784
  },
785
- children: /* @__PURE__ */ yt(
785
+ children: /* @__PURE__ */ vt(
786
786
  "div",
787
787
  {
788
788
  style: {
@@ -804,7 +804,7 @@ const Oo = ({
804
804
  }
805
805
  }
806
806
  ) : /* @__PURE__ */ f(
807
- At,
807
+ Qt,
808
808
  {
809
809
  src: t,
810
810
  style: {
@@ -814,14 +814,14 @@ const Oo = ({
814
814
  }
815
815
  }
816
816
  ),
817
- i && l ? /* @__PURE__ */ f(
817
+ h && l ? /* @__PURE__ */ f(
818
818
  "div",
819
819
  {
820
820
  style: {
821
821
  position: "absolute",
822
822
  inset: 0,
823
823
  borderRadius: c || 0,
824
- border: `${i}px solid ${l}`,
824
+ border: `${h}px solid ${l}`,
825
825
  boxSizing: "border-box",
826
826
  pointerEvents: "none"
827
827
  }
@@ -831,12 +831,12 @@ const Oo = ({
831
831
  }
832
832
  )
833
833
  },
834
- `echo-${q}`
834
+ `echo-${T}`
835
835
  );
836
836
  })
837
837
  }
838
838
  );
839
- }, Lo = ({
839
+ }, Go = ({
840
840
  src: t,
841
841
  isVideo: n,
842
842
  frame: r,
@@ -847,13 +847,13 @@ const Oo = ({
847
847
  width: o,
848
848
  height: p,
849
849
  borderRadius: c,
850
- borderWidth: i,
850
+ borderWidth: h,
851
851
  borderColor: l,
852
- boxShadow: h,
852
+ boxShadow: i,
853
853
  wiggleDetails: u,
854
854
  effects: y
855
855
  }) => {
856
- const m = wt(), v = typeof r == "number" && !isNaN(r) ? r : m, b = o || 300, $ = p || 300, g = Number((u == null ? void 0 : u.wiggleX) ?? 20), M = Number((u == null ? void 0 : u.wiggleY) ?? 20), x = Number((u == null ? void 0 : u.speed) ?? 3), I = Number((u == null ? void 0 : u.angle) ?? 10), k = Number((u == null ? void 0 : u.seed) ?? 1), S = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialWiggleX) !== void 0 ? Number(u.initialWiggleX) : g, Y = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialWiggleY) !== void 0 ? Number(u.initialWiggleY) : M, N = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialSpeed) !== void 0 ? Number(u.initialSpeed) : x, E = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialAngle) !== void 0 ? Number(u.initialAngle) : I, F = Math.max(0, v - (s || 0)), X = Math.min(1, Math.max(0, F / (e || 1))), P = u != null && u.hasInitialValue ? S + (g - S) * X : g, L = u != null && u.hasInitialValue ? Y + (M - Y) * X : M, V = u != null && u.hasInitialValue ? N + (x - N) * X : x, O = u != null && u.hasInitialValue ? E + (I - E) * X : I, C = v * (V * 0.08), B = k * 12.345, z = Math.sin(C + B) * Math.cos(C * 0.65 + B) * P, et = Math.cos(C * 0.85 + B) * Math.sin(C * 1.15 + B) * L, q = Math.sin(C * 0.9 + B * 1.35) * O, Z = h ? typeof h == "string" ? h : `${h.x ?? 0}px ${h.y ?? 0}px ${h.blur ?? 0}px ${h.color ?? ""}` : void 0;
856
+ const m = Yt(), v = typeof r == "number" && !isNaN(r) ? r : m, b = o || 300, x = p || 300, g = Number((u == null ? void 0 : u.wiggleX) ?? 20), M = Number((u == null ? void 0 : u.wiggleY) ?? 20), $ = Number((u == null ? void 0 : u.speed) ?? 3), I = Number((u == null ? void 0 : u.angle) ?? 10), k = Number((u == null ? void 0 : u.seed) ?? 1), S = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialWiggleX) !== void 0 ? Number(u.initialWiggleX) : g, Y = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialWiggleY) !== void 0 ? Number(u.initialWiggleY) : M, N = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialSpeed) !== void 0 ? Number(u.initialSpeed) : $, V = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialAngle) !== void 0 ? Number(u.initialAngle) : I, F = Math.max(0, v - (s || 0)), X = Math.min(1, Math.max(0, F / (e || 1))), P = u != null && u.hasInitialValue ? S + (g - S) * X : g, G = u != null && u.hasInitialValue ? Y + (M - Y) * X : M, E = u != null && u.hasInitialValue ? N + ($ - N) * X : $, O = u != null && u.hasInitialValue ? V + (I - V) * X : I, C = v * (E * 0.08), B = k * 12.345, z = Math.sin(C + B) * Math.cos(C * 0.65 + B) * P, et = Math.cos(C * 0.85 + B) * Math.sin(C * 1.15 + B) * G, T = Math.sin(C * 0.9 + B * 1.35) * O, Z = i ? typeof i == "string" ? i : `${i.x ?? 0}px ${i.y ?? 0}px ${i.blur ?? 0}px ${i.color ?? ""}` : void 0;
857
857
  return /* @__PURE__ */ f(
858
858
  "div",
859
859
  {
@@ -863,16 +863,16 @@ const Oo = ({
863
863
  position: "relative",
864
864
  overflow: "visible"
865
865
  },
866
- children: /* @__PURE__ */ yt(
866
+ children: /* @__PURE__ */ vt(
867
867
  "div",
868
868
  {
869
869
  style: {
870
870
  width: `${b}px`,
871
- height: `${$}px`,
871
+ height: `${x}px`,
872
872
  position: "absolute",
873
873
  left: "50%",
874
874
  top: "50%",
875
- transform: `translate(-50%, -50%) translate(${z}px, ${et}px) rotate(${q}deg)`,
875
+ transform: `translate(-50%, -50%) translate(${z}px, ${et}px) rotate(${T}deg)`,
876
876
  transformOrigin: "center center",
877
877
  borderRadius: c || 0,
878
878
  boxShadow: Z,
@@ -890,7 +890,7 @@ const Oo = ({
890
890
  }
891
891
  }
892
892
  ) : /* @__PURE__ */ f(
893
- At,
893
+ Qt,
894
894
  {
895
895
  src: t,
896
896
  style: {
@@ -900,14 +900,14 @@ const Oo = ({
900
900
  }
901
901
  }
902
902
  ),
903
- i && l ? /* @__PURE__ */ f(
903
+ h && l ? /* @__PURE__ */ f(
904
904
  "div",
905
905
  {
906
906
  style: {
907
907
  position: "absolute",
908
908
  inset: 0,
909
909
  borderRadius: c || 0,
910
- border: `${i}px solid ${l}`,
910
+ border: `${h}px solid ${l}`,
911
911
  boxSizing: "border-box",
912
912
  pointerEvents: "none"
913
913
  }
@@ -929,26 +929,26 @@ const Oo = ({
929
929
  borderRadius: o,
930
930
  boxShadow: p,
931
931
  cardFlipDetails: c,
932
- children: i,
932
+ children: h,
933
933
  style: l = {}
934
934
  }) => {
935
- const h = wt(), u = typeof t == "number" && !isNaN(t) ? t : h, y = a || 300, m = d || 300, v = (c == null ? void 0 : c.keepStill) || "both", b = Number((c == null ? void 0 : c.toRotationX) ?? 0), $ = Number((c == null ? void 0 : c.toRotationY) ?? 360), g = Number((c == null ? void 0 : c.toRotationZ) ?? 0), M = Number((c == null ? void 0 : c.toPivotX) ?? 0), x = Number((c == null ? void 0 : c.toPivotY) ?? 0), I = Number((c == null ? void 0 : c.toPerspective) ?? 0.45), k = !!(c != null && c.hasInitialValue), S = k ? Number((c == null ? void 0 : c.initialRotationX) ?? 0) : 0, Y = k ? Number((c == null ? void 0 : c.initialRotationY) ?? 0) : 0, N = k ? Number((c == null ? void 0 : c.initialRotationZ) ?? 0) : 0, E = k ? Number((c == null ? void 0 : c.initialPivotX) ?? 0) : M, F = k ? Number((c == null ? void 0 : c.initialPivotY) ?? 0) : x, X = k ? Number((c == null ? void 0 : c.initialPerspective) ?? 0.45) : I, P = (c == null ? void 0 : c.frontFace) ?? !0, L = (c == null ? void 0 : c.backFace) ?? !0, V = Math.max(0, u - (n || 0)), O = Math.min(1, Math.max(0, V / (r || 1)));
935
+ const i = Yt(), u = typeof t == "number" && !isNaN(t) ? t : i, y = a || 300, m = d || 300, v = (c == null ? void 0 : c.keepStill) || "both", b = Number((c == null ? void 0 : c.toRotationX) ?? 0), x = Number((c == null ? void 0 : c.toRotationY) ?? 360), g = Number((c == null ? void 0 : c.toRotationZ) ?? 0), M = Number((c == null ? void 0 : c.toPivotX) ?? 0), $ = Number((c == null ? void 0 : c.toPivotY) ?? 0), I = Number((c == null ? void 0 : c.toPerspective) ?? 0.45), k = !!(c != null && c.hasInitialValue), S = k ? Number((c == null ? void 0 : c.initialRotationX) ?? 0) : 0, Y = k ? Number((c == null ? void 0 : c.initialRotationY) ?? 0) : 0, N = k ? Number((c == null ? void 0 : c.initialRotationZ) ?? 0) : 0, V = k ? Number((c == null ? void 0 : c.initialPivotX) ?? 0) : M, F = k ? Number((c == null ? void 0 : c.initialPivotY) ?? 0) : $, X = k ? Number((c == null ? void 0 : c.initialPerspective) ?? 0.45) : I, P = (c == null ? void 0 : c.frontFace) ?? !0, G = (c == null ? void 0 : c.backFace) ?? !0, E = Math.max(0, u - (n || 0)), O = Math.min(1, Math.max(0, E / (r || 1)));
936
936
  let B = s + (e - s) * O;
937
937
  v === "initial" ? B = 0 : v === "final" && (B = 1);
938
- const z = W(B, [0, 1], [S, b]), et = W(B, [0, 1], [Y, $]), q = W(B, [0, 1], [N, g]), Z = W(B, [0, 1], [E, M]), K = W(B, [0, 1], [F, x]), T = W(B, [0, 1], [X, I]), ct = Math.max(y, m), lt = Math.max(
938
+ const z = W(B, [0, 1], [S, b]), et = W(B, [0, 1], [Y, x]), T = W(B, [0, 1], [N, g]), Z = W(B, [0, 1], [V, M]), J = W(B, [0, 1], [F, $]), D = W(B, [0, 1], [X, I]), st = Math.max(y, m), mt = Math.max(
939
939
  1200,
940
- Math.round(ct * 2.5 / Math.max(0.05, T))
941
- ), G = z * Math.PI / 180, D = et * Math.PI / 180, U = Math.cos(G) * Math.cos(D), tt = U >= 0, Q = U < 0;
942
- let A = !0;
943
- tt && !P && (A = !1), Q && !L && (A = !1);
944
- const ut = p ? typeof p == "string" ? p : `${p.x ?? 0}px ${p.y ?? 0}px ${p.blur ?? 0}px ${p.color ?? ""}` : void 0;
940
+ Math.round(st * 2.5 / Math.max(0.05, D))
941
+ ), L = z * Math.PI / 180, tt = et * Math.PI / 180, U = Math.cos(L) * Math.cos(tt), ot = U >= 0, A = U < 0;
942
+ let Q = !0;
943
+ ot && !P && (Q = !1), A && !G && (Q = !1);
944
+ const lt = p ? typeof p == "string" ? p : `${p.x ?? 0}px ${p.y ?? 0}px ${p.blur ?? 0}px ${p.color ?? ""}` : void 0;
945
945
  return /* @__PURE__ */ f(
946
946
  "div",
947
947
  {
948
948
  style: {
949
949
  width: "100%",
950
950
  height: "100%",
951
- perspective: `${lt}px`,
951
+ perspective: `${mt}px`,
952
952
  transformStyle: "preserve-3d",
953
953
  position: "relative",
954
954
  ...l
@@ -959,20 +959,20 @@ const Oo = ({
959
959
  style: {
960
960
  width: "100%",
961
961
  height: "100%",
962
- transformOrigin: `${50 + Z}% ${50 + K}%`,
963
- transform: `rotateX(${z}deg) rotateY(${et}deg) rotateZ(${q}deg)`,
964
- backfaceVisibility: L ? "visible" : "hidden",
965
- visibility: A ? "visible" : "hidden",
962
+ transformOrigin: `${50 + Z}% ${50 + J}%`,
963
+ transform: `rotateX(${z}deg) rotateY(${et}deg) rotateZ(${T}deg)`,
964
+ backfaceVisibility: G ? "visible" : "hidden",
965
+ visibility: Q ? "visible" : "hidden",
966
966
  borderRadius: o || 0,
967
- boxShadow: ut,
967
+ boxShadow: lt,
968
968
  position: "relative"
969
969
  },
970
- children: i
970
+ children: h
971
971
  }
972
972
  )
973
973
  }
974
974
  );
975
- }, Vn = ({
975
+ }, En = ({
976
976
  src: t,
977
977
  frame: n,
978
978
  delay: r = 0,
@@ -983,9 +983,9 @@ const Oo = ({
983
983
  height: o,
984
984
  borderRadius: p,
985
985
  borderWidth: c,
986
- borderColor: i,
986
+ borderColor: h,
987
987
  boxShadow: l,
988
- cardFlipDetails: h,
988
+ cardFlipDetails: i,
989
989
  activeEffects: u,
990
990
  effects: y
991
991
  }) => {
@@ -993,7 +993,7 @@ const Oo = ({
993
993
  u == null || u.forEach((g) => {
994
994
  g.type === "blur" && g.radius && b.push(`blur(${g.radius}px)`), g.type === "grayscale" && g.amount !== void 0 && b.push(`grayscale(${g.amount * 100}%)`), g.type === "contrast" && g.amount !== void 0 && b.push(`contrast(${g.amount * 100}%)`), g.type === "brightness" && g.amount !== void 0 && b.push(`brightness(${100 + g.amount * 100}%)`), g.type === "hue" && g.rotation !== void 0 && b.push(`hue-rotate(${g.rotation}deg)`), g.type === "saturation" && g.amount !== void 0 && b.push(`saturate(${g.amount * 100}%)`);
995
995
  });
996
- const $ = b.length > 0 ? b.join(" ") : void 0;
996
+ const x = b.length > 0 ? b.join(" ") : void 0;
997
997
  return /* @__PURE__ */ f(
998
998
  bo,
999
999
  {
@@ -1006,8 +1006,8 @@ const Oo = ({
1006
1006
  height: o,
1007
1007
  borderRadius: p,
1008
1008
  boxShadow: l,
1009
- cardFlipDetails: h,
1010
- children: /* @__PURE__ */ yt(
1009
+ cardFlipDetails: i,
1010
+ children: /* @__PURE__ */ vt(
1011
1011
  "div",
1012
1012
  {
1013
1013
  style: {
@@ -1019,7 +1019,7 @@ const Oo = ({
1019
1019
  },
1020
1020
  children: [
1021
1021
  /* @__PURE__ */ f(
1022
- At,
1022
+ Qt,
1023
1023
  {
1024
1024
  src: t,
1025
1025
  style: {
@@ -1027,7 +1027,7 @@ const Oo = ({
1027
1027
  height: "100%",
1028
1028
  objectFit: "cover",
1029
1029
  borderRadius: p || 0,
1030
- filter: $
1030
+ filter: x
1031
1031
  },
1032
1032
  effects: y
1033
1033
  }
@@ -1047,14 +1047,14 @@ const Oo = ({
1047
1047
  }
1048
1048
  }
1049
1049
  ) : null,
1050
- c && i ? /* @__PURE__ */ f(
1050
+ c && h ? /* @__PURE__ */ f(
1051
1051
  "div",
1052
1052
  {
1053
1053
  style: {
1054
1054
  position: "absolute",
1055
1055
  inset: 0,
1056
1056
  borderRadius: p || 0,
1057
- border: `${c}px solid ${i}`,
1057
+ border: `${c}px solid ${h}`,
1058
1058
  boxSizing: "border-box",
1059
1059
  pointerEvents: "none",
1060
1060
  zIndex: 3
@@ -1083,36 +1083,36 @@ const Oo = ({
1083
1083
  function no(t, n, r, s) {
1084
1084
  return t[0] * n + t[1] * r + t[2] * s;
1085
1085
  }
1086
- function Go(t, n, r, s = 0) {
1086
+ function Lo(t, n, r, s = 0) {
1087
1087
  const e = [];
1088
- for (let Q = 0; Q < 256; Q++) e[Q] = Q;
1088
+ for (let A = 0; A < 256; A++) e[A] = A;
1089
1089
  let a = Math.floor(Math.abs(s) * 1e3) % 2147483647 + 1;
1090
- for (let Q = 255; Q > 0; Q--) {
1090
+ for (let A = 255; A > 0; A--) {
1091
1091
  a = a * 16807 % 2147483647;
1092
- const A = Math.floor(a / 2147483647 * (Q + 1)), ut = e[Q];
1093
- e[Q] = e[A], e[A] = ut;
1092
+ const Q = Math.floor(a / 2147483647 * (A + 1)), lt = e[A];
1093
+ e[A] = e[Q], e[Q] = lt;
1094
1094
  }
1095
1095
  const d = new Array(512), o = new Array(512);
1096
- for (let Q = 0; Q < 512; Q++)
1097
- d[Q] = e[Q & 255], o[Q] = d[Q] % 12;
1096
+ for (let A = 0; A < 512; A++)
1097
+ d[A] = e[A & 255], o[A] = d[A] % 12;
1098
1098
  const p = 1 / 3, c = 1 / 6;
1099
- let i = 0, l = 0, h = 0, u = 0;
1100
- const y = (t + n + r) * p, m = Math.floor(t + y), v = Math.floor(n + y), b = Math.floor(r + y), $ = (m + v + b) * c, g = m - $, M = v - $, x = b - $, I = t - g, k = n - M, S = r - x;
1101
- let Y = 0, N = 0, E = 0, F = 0, X = 0, P = 0;
1102
- I >= k ? k >= S ? (Y = 1, N = 0, E = 0, F = 1, X = 1, P = 0) : I >= S ? (Y = 1, N = 0, E = 0, F = 1, X = 0, P = 1) : (Y = 0, N = 0, E = 1, F = 1, X = 0, P = 1) : k < S ? (Y = 0, N = 0, E = 1, F = 0, X = 1, P = 1) : I < S ? (Y = 0, N = 1, E = 0, F = 0, X = 1, P = 1) : (Y = 0, N = 1, E = 0, F = 1, X = 1, P = 0);
1103
- const L = I - Y + c, V = k - N + c, O = S - E + c, C = I - F + 2 * c, B = k - X + 2 * c, z = S - P + 2 * c, et = I - 1 + 3 * c, q = k - 1 + 3 * c, Z = S - 1 + 3 * c, K = m & 255, T = v & 255, ct = b & 255;
1104
- let lt = 0.6 - I * I - k * k - S * S;
1105
- lt >= 0 && (lt *= lt, i = lt * lt * no(oo[o[K + d[T + d[ct]]]], I, k, S));
1106
- let G = 0.6 - L * L - V * V - O * O;
1107
- G >= 0 && (G *= G, l = G * G * no(oo[o[K + Y + d[T + N + d[ct + E]]]], L, V, O));
1108
- let D = 0.6 - C * C - B * B - z * z;
1109
- D >= 0 && (D *= D, h = D * D * no(oo[o[K + F + d[T + X + d[ct + P]]]], C, B, z));
1110
- let U = 0.6 - et * et - q * q - Z * Z;
1111
- U >= 0 && (U *= U, u = U * U * no(oo[o[K + 1 + d[T + 1 + d[ct + 1]]]], et, q, Z));
1112
- const tt = 32 * (i + l + h + u);
1113
- return Math.min(1, Math.max(0, (tt + 1) / 2));
1099
+ let h = 0, l = 0, i = 0, u = 0;
1100
+ const y = (t + n + r) * p, m = Math.floor(t + y), v = Math.floor(n + y), b = Math.floor(r + y), x = (m + v + b) * c, g = m - x, M = v - x, $ = b - x, I = t - g, k = n - M, S = r - $;
1101
+ let Y = 0, N = 0, V = 0, F = 0, X = 0, P = 0;
1102
+ I >= k ? k >= S ? (Y = 1, N = 0, V = 0, F = 1, X = 1, P = 0) : I >= S ? (Y = 1, N = 0, V = 0, F = 1, X = 0, P = 1) : (Y = 0, N = 0, V = 1, F = 1, X = 0, P = 1) : k < S ? (Y = 0, N = 0, V = 1, F = 0, X = 1, P = 1) : I < S ? (Y = 0, N = 1, V = 0, F = 0, X = 1, P = 1) : (Y = 0, N = 1, V = 0, F = 1, X = 1, P = 0);
1103
+ const G = I - Y + c, E = k - N + c, O = S - V + c, C = I - F + 2 * c, B = k - X + 2 * c, z = S - P + 2 * c, et = I - 1 + 3 * c, T = k - 1 + 3 * c, Z = S - 1 + 3 * c, J = m & 255, D = v & 255, st = b & 255;
1104
+ let mt = 0.6 - I * I - k * k - S * S;
1105
+ mt >= 0 && (mt *= mt, h = mt * mt * no(oo[o[J + d[D + d[st]]]], I, k, S));
1106
+ let L = 0.6 - G * G - E * E - O * O;
1107
+ L >= 0 && (L *= L, l = L * L * no(oo[o[J + Y + d[D + N + d[st + V]]]], G, E, O));
1108
+ let tt = 0.6 - C * C - B * B - z * z;
1109
+ tt >= 0 && (tt *= tt, i = tt * tt * no(oo[o[J + F + d[D + X + d[st + P]]]], C, B, z));
1110
+ let U = 0.6 - et * et - T * T - Z * Z;
1111
+ U >= 0 && (U *= U, u = U * U * no(oo[o[J + 1 + d[D + 1 + d[st + 1]]]], et, T, Z));
1112
+ const ot = 32 * (h + l + i + u);
1113
+ return Math.min(1, Math.max(0, (ot + 1) / 2));
1114
1114
  }
1115
- const En = ({
1115
+ const Vn = ({
1116
1116
  src: t,
1117
1117
  frame: n,
1118
1118
  delay: r = 0,
@@ -1123,27 +1123,27 @@ const En = ({
1123
1123
  height: o,
1124
1124
  borderRadius: p,
1125
1125
  borderWidth: c,
1126
- borderColor: i,
1126
+ borderColor: h,
1127
1127
  boxShadow: l,
1128
- noiseTileDetails: h
1128
+ noiseTileDetails: i
1129
1129
  }) => {
1130
- const u = wt(), y = typeof n == "number" && !isNaN(n) ? n : u, m = d || 300, v = o || 300, b = (h == null ? void 0 : h.keepStill) || "both", $ = Number((h == null ? void 0 : h.toXRepetitions) ?? (h == null ? void 0 : h.xRepetitions) ?? 5), g = Number((h == null ? void 0 : h.toYRepetitions) ?? (h == null ? void 0 : h.yRepetitions) ?? 5), M = Number((h == null ? void 0 : h.toGapX) ?? (h == null ? void 0 : h.gapX) ?? 12), x = Number((h == null ? void 0 : h.toGapY) ?? (h == null ? void 0 : h.gapY) ?? 12), I = Number((h == null ? void 0 : h.toScale) ?? (h == null ? void 0 : h.scale) ?? 1), k = Number((h == null ? void 0 : h.toNoiseScale) ?? (h == null ? void 0 : h.noiseScale) ?? 1.5), S = Number((h == null ? void 0 : h.toNoiseMoveX) ?? (h == null ? void 0 : h.noiseMoveX) ?? 0.6), Y = Number((h == null ? void 0 : h.toNoiseMoveY) ?? (h == null ? void 0 : h.noiseMoveY) ?? 0.4), N = Number((h == null ? void 0 : h.toFps) ?? (h == null ? void 0 : h.fps) ?? 12), E = Number((h == null ? void 0 : h.toThreshold) ?? (h == null ? void 0 : h.threshold) ?? 0.45), F = Number((h == null ? void 0 : h.toSeedOffset) ?? (h == null ? void 0 : h.seedOffset) ?? 0), X = !!(h != null && h.hasInitialValue), P = X ? Number((h == null ? void 0 : h.initialXRepetitions) ?? $) : $, L = X ? Number((h == null ? void 0 : h.initialYRepetitions) ?? g) : g, V = X ? Number((h == null ? void 0 : h.initialGapX) ?? M) : M, O = X ? Number((h == null ? void 0 : h.initialGapY) ?? x) : x, C = X ? Number((h == null ? void 0 : h.initialScale) ?? I) : I, B = X ? Number((h == null ? void 0 : h.initialNoiseScale) ?? k) : k, z = X ? Number((h == null ? void 0 : h.initialNoiseMoveX) ?? S) : S, et = X ? Number((h == null ? void 0 : h.initialNoiseMoveY) ?? Y) : Y, q = X ? Number((h == null ? void 0 : h.initialFps) ?? N) : N, Z = X ? Number((h == null ? void 0 : h.initialThreshold) ?? E) : E, K = X ? Number((h == null ? void 0 : h.initialSeedOffset) ?? F) : F, T = Math.max(0, y - (r || 0)), ct = Math.min(1, Math.max(0, T / (s || 1)));
1131
- let G = e + (a - e) * ct;
1132
- b === "initial" ? G = 0 : b === "final" && (G = 1);
1133
- const D = Math.max(1, Math.round(W(G, [0, 1], [P, $]))), U = Math.max(1, Math.round(W(G, [0, 1], [L, g]))), tt = W(G, [0, 1], [V, M]), Q = W(G, [0, 1], [O, x]), A = W(G, [0, 1], [C, I]), ut = W(G, [0, 1], [B, k]), vt = W(G, [0, 1], [z, S]), it = W(G, [0, 1], [et, Y]), J = Math.max(1, Math.round(W(G, [0, 1], [q, N]))), nt = W(G, [0, 1], [Z, E]), ot = W(G, [0, 1], [K, F]), st = l ? typeof l == "string" ? l : `${l.x ?? 0}px ${l.y ?? 0}px ${l.blur ?? 0}px ${l.color ?? ""}` : void 0, at = Math.floor(T * (J / 30)), ft = (D - 1) / 2, bt = (U - 1) / 2, St = [];
1134
- for (let pt = 0; pt < U; pt++)
1135
- for (let gt = 0; gt < D; gt++) {
1136
- const Nt = gt / Math.max(1, D) * ut, Yt = pt / Math.max(1, U) * ut, Ft = at * 0.1 + ot, Vt = Go(
1137
- Nt + at * vt * 0.05,
1138
- Yt + at * it * 0.05,
1139
- Ft,
1140
- ot
1141
- ), Et = gt === Math.floor(ft) && pt === Math.floor(bt) || Vt >= nt, Bt = gt - ft, Gt = pt - bt, zt = tt / 100 * m, jt = Q / 100 * v, Ht = Bt * (m * A + zt), j = Gt * (v * A + jt);
1142
- St.push({
1143
- col: gt,
1144
- row: pt,
1145
- visible: Et,
1146
- posX: Ht,
1130
+ const u = Yt(), y = typeof n == "number" && !isNaN(n) ? n : u, m = d || 300, v = o || 300, b = (i == null ? void 0 : i.keepStill) || "both", x = Number((i == null ? void 0 : i.toXRepetitions) ?? (i == null ? void 0 : i.xRepetitions) ?? 5), g = Number((i == null ? void 0 : i.toYRepetitions) ?? (i == null ? void 0 : i.yRepetitions) ?? 5), M = Number((i == null ? void 0 : i.toGapX) ?? (i == null ? void 0 : i.gapX) ?? 12), $ = Number((i == null ? void 0 : i.toGapY) ?? (i == null ? void 0 : i.gapY) ?? 12), I = Number((i == null ? void 0 : i.toScale) ?? (i == null ? void 0 : i.scale) ?? 1), k = Number((i == null ? void 0 : i.toNoiseScale) ?? (i == null ? void 0 : i.noiseScale) ?? 1.5), S = Number((i == null ? void 0 : i.toNoiseMoveX) ?? (i == null ? void 0 : i.noiseMoveX) ?? 0.6), Y = Number((i == null ? void 0 : i.toNoiseMoveY) ?? (i == null ? void 0 : i.noiseMoveY) ?? 0.4), N = Number((i == null ? void 0 : i.toFps) ?? (i == null ? void 0 : i.fps) ?? 12), V = Number((i == null ? void 0 : i.toThreshold) ?? (i == null ? void 0 : i.threshold) ?? 0.45), F = Number((i == null ? void 0 : i.toSeedOffset) ?? (i == null ? void 0 : i.seedOffset) ?? 0), X = !!(i != null && i.hasInitialValue), P = X ? Number((i == null ? void 0 : i.initialXRepetitions) ?? x) : x, G = X ? Number((i == null ? void 0 : i.initialYRepetitions) ?? g) : g, E = X ? Number((i == null ? void 0 : i.initialGapX) ?? M) : M, O = X ? Number((i == null ? void 0 : i.initialGapY) ?? $) : $, C = X ? Number((i == null ? void 0 : i.initialScale) ?? I) : I, B = X ? Number((i == null ? void 0 : i.initialNoiseScale) ?? k) : k, z = X ? Number((i == null ? void 0 : i.initialNoiseMoveX) ?? S) : S, et = X ? Number((i == null ? void 0 : i.initialNoiseMoveY) ?? Y) : Y, T = X ? Number((i == null ? void 0 : i.initialFps) ?? N) : N, Z = X ? Number((i == null ? void 0 : i.initialThreshold) ?? V) : V, J = X ? Number((i == null ? void 0 : i.initialSeedOffset) ?? F) : F, D = Math.max(0, y - (r || 0)), st = Math.min(1, Math.max(0, D / (s || 1)));
1131
+ let L = e + (a - e) * st;
1132
+ b === "initial" ? L = 0 : b === "final" && (L = 1);
1133
+ const tt = Math.max(1, Math.round(W(L, [0, 1], [P, x]))), U = Math.max(1, Math.round(W(L, [0, 1], [G, g]))), ot = W(L, [0, 1], [E, M]), A = W(L, [0, 1], [O, $]), Q = W(L, [0, 1], [C, I]), lt = W(L, [0, 1], [B, k]), Mt = W(L, [0, 1], [z, S]), pt = W(L, [0, 1], [et, Y]), q = Math.max(1, Math.round(W(L, [0, 1], [T, N]))), rt = W(L, [0, 1], [Z, V]), nt = W(L, [0, 1], [J, F]), dt = l ? typeof l == "string" ? l : `${l.x ?? 0}px ${l.y ?? 0}px ${l.blur ?? 0}px ${l.color ?? ""}` : void 0, it = Math.floor(D * (q / 30)), yt = (tt - 1) / 2, xt = (U - 1) / 2, wt = [];
1134
+ for (let ft = 0; ft < U; ft++)
1135
+ for (let $t = 0; $t < tt; $t++) {
1136
+ const Ft = $t / Math.max(1, tt) * lt, Rt = ft / Math.max(1, U) * lt, Xt = it * 0.1 + nt, Vt = Lo(
1137
+ Ft + it * Mt * 0.05,
1138
+ Rt + it * pt * 0.05,
1139
+ Xt,
1140
+ nt
1141
+ ), Bt = $t === Math.floor(yt) && ft === Math.floor(xt) || Vt >= rt, Ot = $t - yt, zt = ft - xt, jt = ot / 100 * m, Ht = A / 100 * v, _t = Ot * (m * Q + jt), j = zt * (v * Q + Ht);
1142
+ wt.push({
1143
+ col: $t,
1144
+ row: ft,
1145
+ visible: Bt,
1146
+ posX: _t,
1147
1147
  posY: j
1148
1148
  });
1149
1149
  }
@@ -1156,7 +1156,7 @@ const En = ({
1156
1156
  position: "relative",
1157
1157
  overflow: "visible"
1158
1158
  },
1159
- children: St.map((pt) => pt.visible ? /* @__PURE__ */ f(
1159
+ children: wt.map((ft) => ft.visible ? /* @__PURE__ */ f(
1160
1160
  "div",
1161
1161
  {
1162
1162
  style: {
@@ -1165,12 +1165,12 @@ const En = ({
1165
1165
  top: "50%",
1166
1166
  width: `${m}px`,
1167
1167
  height: `${v}px`,
1168
- transform: `translate(-50%, -50%) translate(${pt.posX}px, ${pt.posY}px) scale(${A})`,
1168
+ transform: `translate(-50%, -50%) translate(${ft.posX}px, ${ft.posY}px) scale(${Q})`,
1169
1169
  transformOrigin: "center center",
1170
1170
  borderRadius: p || 0,
1171
- boxShadow: st
1171
+ boxShadow: dt
1172
1172
  },
1173
- children: /* @__PURE__ */ yt(
1173
+ children: /* @__PURE__ */ vt(
1174
1174
  "div",
1175
1175
  {
1176
1176
  style: {
@@ -1192,7 +1192,7 @@ const En = ({
1192
1192
  }
1193
1193
  }
1194
1194
  ) : /* @__PURE__ */ f(
1195
- At,
1195
+ Qt,
1196
1196
  {
1197
1197
  src: t,
1198
1198
  style: {
@@ -1202,14 +1202,14 @@ const En = ({
1202
1202
  }
1203
1203
  }
1204
1204
  ),
1205
- c && i ? /* @__PURE__ */ f(
1205
+ c && h ? /* @__PURE__ */ f(
1206
1206
  "div",
1207
1207
  {
1208
1208
  style: {
1209
1209
  position: "absolute",
1210
1210
  inset: 0,
1211
1211
  borderRadius: p || 0,
1212
- border: `${c}px solid ${i}`,
1212
+ border: `${c}px solid ${h}`,
1213
1213
  boxSizing: "border-box",
1214
1214
  pointerEvents: "none"
1215
1215
  }
@@ -1219,7 +1219,7 @@ const En = ({
1219
1219
  }
1220
1220
  )
1221
1221
  },
1222
- `tile-${pt.col}-${pt.row}`
1222
+ `tile-${ft.col}-${ft.row}`
1223
1223
  ) : null)
1224
1224
  }
1225
1225
  );
@@ -1297,20 +1297,20 @@ function vo(t, n, r = 0) {
1297
1297
  "duotone",
1298
1298
  "lightLeak"
1299
1299
  ];
1300
- p.forEach((i) => {
1301
- if (!i) return;
1302
- const l = i.property;
1300
+ p.forEach((h) => {
1301
+ if (!h) return;
1302
+ const l = h.property;
1303
1303
  if (c.includes(l)) {
1304
- const h = i.delay ?? 0, u = Math.max(1, i.durationInFrames ?? 30), y = h + u, m = ($) => $ === "contrast" || $ === "brightness" || $ === "saturation" ? 100 : $ === "pixelate" ? 1 : 0;
1304
+ const i = h.delay ?? 0, u = Math.max(1, h.durationInFrames ?? 30), y = i + u, m = (x) => x === "contrast" || x === "brightness" || x === "saturation" ? 100 : x === "pixelate" ? 1 : 0;
1305
1305
  let v = !1, b = m(l);
1306
- if (r >= h && r <= y) {
1306
+ if (r >= i && r <= y) {
1307
1307
  v = !0;
1308
- const $ = Math.min(
1308
+ const x = Math.min(
1309
1309
  1,
1310
- Math.max(0, (r - h) / u)
1311
- ), g = Number(i.from ?? m(l)), M = Number(i.to ?? m(l));
1312
- b = g + (M - g) * $;
1313
- } else r > y && i.persist === !0 && (v = !0, b = Number(i.to ?? m(l)));
1310
+ Math.max(0, (r - i) / u)
1311
+ ), g = Number(h.from ?? m(l)), M = Number(h.to ?? m(l));
1312
+ b = g + (M - g) * x;
1313
+ } else r > y && h.persist === !0 && (v = !0, b = Number(h.to ?? m(l)));
1314
1314
  if (!v) return;
1315
1315
  switch (l) {
1316
1316
  case "blur":
@@ -1452,40 +1452,40 @@ function We({
1452
1452
  item: t,
1453
1453
  options: n
1454
1454
  }) {
1455
- var z, et, q, Z, K, T, ct, lt, G, D, U, tt, Q;
1456
- const { fps: r, frame: s, isTransition: e } = n, { details: a, animations: d } = t, { animationIn: o, animationOut: p, animationTimed: c } = It(
1455
+ var z, et, T, Z, J, D, st, mt, L, tt, U, ot, A;
1456
+ const { fps: r, frame: s, isTransition: e } = n, { details: a, animations: d } = t, { animationIn: o, animationOut: p, animationTimed: c } = Nt(
1457
1457
  d,
1458
1458
  t,
1459
1459
  s,
1460
1460
  r
1461
- ), i = (a == null ? void 0 : a.crop) || {
1461
+ ), h = (a == null ? void 0 : a.crop) || {
1462
1462
  x: 0,
1463
1463
  y: 0,
1464
1464
  width: a.width,
1465
1465
  height: a.height
1466
- }, { durationInFrames: l } = $t(t.display, r), h = (s || 0) - t.display.from * r / 1e3, u = Kt(a, i, {}), { WebkitTextStroke: y } = u, m = Eo(a, i), v = vo(
1466
+ }, { durationInFrames: l } = It(t.display, r), i = (s || 0) - t.display.from * r / 1e3, u = Kt(a, h, {}), { WebkitTextStroke: y } = u, m = Vo(a, h), v = vo(
1467
1467
  a.effects,
1468
1468
  d,
1469
- h
1470
- ), b = go(v), { filter: $, overlays: g } = zo(v), M = a.width || i.width || 300, x = a.height || i.height || 300, I = (et = (z = d == null ? void 0 : d.loop) == null ? void 0 : z.composition) == null ? void 0 : et.find(
1471
- (A) => A.property === "textGridMarqueeTextAnimationLoop" || A.property === "textGridMarquee" || A.property === "imageGridMarqueeTextAnimationLoop" || A.property === "imageGridMarquee" || A.id === "textGridMarquee" || A.id === "imageGridMarquee"
1472
- ), k = !!(I && h >= (I.delay || 0) && h <= (I.delay || 0) + (I.durationInFrames || 60)), S = (Z = (q = d == null ? void 0 : d.loop) == null ? void 0 : q.composition) == null ? void 0 : Z.find(
1473
- (A) => A.property === "inwardEchoes" || A.id === "inwardEchoes"
1474
- ), Y = !!(S && h >= (S.delay || 0) && h <= (S.delay || 0) + (S.durationInFrames || 120)), N = (T = (K = d == null ? void 0 : d.loop) == null ? void 0 : K.composition) == null ? void 0 : T.find(
1475
- (A) => A.property === "wiggle" || A.id === "wiggle"
1476
- ), E = !!(N && h >= (N.delay || 0) && h <= (N.delay || 0) + (N.durationInFrames || 120)), F = (lt = (ct = d == null ? void 0 : d.loop) == null ? void 0 : ct.composition) == null ? void 0 : lt.find(
1477
- (A) => A.property === "cardFlip" || A.id === "cardFlip"
1478
- ), X = !!(F && h >= (F.delay || 0) && h <= (F.delay || 0) + (F.durationInFrames || 120)), P = (D = (G = d == null ? void 0 : d.loop) == null ? void 0 : G.composition) == null ? void 0 : D.find(
1479
- (A) => A.property === "noiseTile" || A.id === "noiseTile"
1480
- ), L = !!(P && h >= (P.delay || 0) && h <= (P.delay || 0) + (P.durationInFrames || 120)), V = [
1469
+ i
1470
+ ), b = go(v), { filter: x, overlays: g } = zo(v), M = a.width || h.width || 300, $ = a.height || h.height || 300, I = (et = (z = d == null ? void 0 : d.loop) == null ? void 0 : z.composition) == null ? void 0 : et.find(
1471
+ (Q) => Q.property === "textGridMarqueeTextAnimationLoop" || Q.property === "textGridMarquee" || Q.property === "imageGridMarqueeTextAnimationLoop" || Q.property === "imageGridMarquee" || Q.id === "textGridMarquee" || Q.id === "imageGridMarquee"
1472
+ ), k = !!(I && i >= (I.delay || 0) && i <= (I.delay || 0) + (I.durationInFrames || 60)), S = (Z = (T = d == null ? void 0 : d.loop) == null ? void 0 : T.composition) == null ? void 0 : Z.find(
1473
+ (Q) => Q.property === "inwardEchoes" || Q.id === "inwardEchoes"
1474
+ ), Y = !!(S && i >= (S.delay || 0) && i <= (S.delay || 0) + (S.durationInFrames || 120)), N = (D = (J = d == null ? void 0 : d.loop) == null ? void 0 : J.composition) == null ? void 0 : D.find(
1475
+ (Q) => Q.property === "wiggle" || Q.id === "wiggle"
1476
+ ), V = !!(N && i >= (N.delay || 0) && i <= (N.delay || 0) + (N.durationInFrames || 120)), F = (mt = (st = d == null ? void 0 : d.loop) == null ? void 0 : st.composition) == null ? void 0 : mt.find(
1477
+ (Q) => Q.property === "cardFlip" || Q.id === "cardFlip"
1478
+ ), X = !!(F && i >= (F.delay || 0) && i <= (F.delay || 0) + (F.durationInFrames || 120)), P = (tt = (L = d == null ? void 0 : d.loop) == null ? void 0 : L.composition) == null ? void 0 : tt.find(
1479
+ (Q) => Q.property === "noiseTile" || Q.id === "noiseTile"
1480
+ ), G = !!(P && i >= (P.delay || 0) && i <= (P.delay || 0) + (P.durationInFrames || 120)), E = [
1481
1481
  ...((U = d == null ? void 0 : d.in) == null ? void 0 : U.composition) || [],
1482
- ...((tt = d == null ? void 0 : d.timed) == null ? void 0 : tt.composition) || [],
1483
- ...((Q = d == null ? void 0 : d.loop) == null ? void 0 : Q.composition) || []
1482
+ ...((ot = d == null ? void 0 : d.timed) == null ? void 0 : ot.composition) || [],
1483
+ ...((A = d == null ? void 0 : d.loop) == null ? void 0 : A.composition) || []
1484
1484
  ], O = () => k ? /* @__PURE__ */ f(
1485
1485
  Oo,
1486
1486
  {
1487
1487
  src: a.src,
1488
- frame: h,
1488
+ frame: i,
1489
1489
  delay: I == null ? void 0 : I.delay,
1490
1490
  durationInFrames: I == null ? void 0 : I.durationInFrames,
1491
1491
  from: I == null ? void 0 : I.from,
@@ -1503,7 +1503,7 @@ function We({
1503
1503
  Co,
1504
1504
  {
1505
1505
  src: a.src,
1506
- frame: h,
1506
+ frame: i,
1507
1507
  delay: S == null ? void 0 : S.delay,
1508
1508
  durationInFrames: S == null ? void 0 : S.durationInFrames,
1509
1509
  from: S == null ? void 0 : S.from,
@@ -1517,11 +1517,11 @@ function We({
1517
1517
  fps: r,
1518
1518
  echoesDetails: S == null ? void 0 : S.details
1519
1519
  }
1520
- ) : E ? /* @__PURE__ */ f(
1521
- Lo,
1520
+ ) : V ? /* @__PURE__ */ f(
1521
+ Go,
1522
1522
  {
1523
1523
  src: a.src,
1524
- frame: h,
1524
+ frame: i,
1525
1525
  delay: N == null ? void 0 : N.delay,
1526
1526
  durationInFrames: N == null ? void 0 : N.durationInFrames,
1527
1527
  from: N == null ? void 0 : N.from,
@@ -1536,10 +1536,10 @@ function We({
1536
1536
  wiggleDetails: N == null ? void 0 : N.details
1537
1537
  }
1538
1538
  ) : X ? /* @__PURE__ */ f(
1539
- Vn,
1539
+ En,
1540
1540
  {
1541
1541
  src: a.src,
1542
- frame: h,
1542
+ frame: i,
1543
1543
  delay: F == null ? void 0 : F.delay,
1544
1544
  durationInFrames: F == null ? void 0 : F.durationInFrames,
1545
1545
  from: F == null ? void 0 : F.from,
@@ -1555,11 +1555,11 @@ function We({
1555
1555
  activeEffects: v,
1556
1556
  effects: b
1557
1557
  }
1558
- ) : L ? /* @__PURE__ */ f(
1559
- En,
1558
+ ) : G ? /* @__PURE__ */ f(
1559
+ Vn,
1560
1560
  {
1561
1561
  src: a.src,
1562
- frame: h,
1562
+ frame: i,
1563
1563
  delay: P == null ? void 0 : P.delay,
1564
1564
  durationInFrames: P == null ? void 0 : P.durationInFrames,
1565
1565
  from: P == null ? void 0 : P.from,
@@ -1574,15 +1574,15 @@ function We({
1574
1574
  noiseTileDetails: P == null ? void 0 : P.details
1575
1575
  }
1576
1576
  ) : /* @__PURE__ */ f(
1577
- At,
1577
+ Qt,
1578
1578
  {
1579
1579
  "data-id": t.id,
1580
1580
  src: a.src,
1581
- style: { borderRadius: m.borderRadius, filter: $ || void 0 },
1581
+ style: { borderRadius: m.borderRadius, filter: x || void 0 },
1582
1582
  effects: b
1583
1583
  }
1584
- ), C = k || Y || E || X || L, B = /* @__PURE__ */ f(
1585
- Zt,
1584
+ ), C = k || Y || V || X || G, B = /* @__PURE__ */ f(
1585
+ At,
1586
1586
  {
1587
1587
  style: {
1588
1588
  ...a,
@@ -1592,7 +1592,7 @@ function We({
1592
1592
  },
1593
1593
  animationIn: o,
1594
1594
  animationOut: p,
1595
- frame: h,
1595
+ frame: i,
1596
1596
  durationInFrames: l,
1597
1597
  isTransition: e,
1598
1598
  children: /* @__PURE__ */ f(
@@ -1600,14 +1600,14 @@ function We({
1600
1600
  {
1601
1601
  animationTimed: c,
1602
1602
  durationInFrames: l,
1603
- frame: h,
1603
+ frame: i,
1604
1604
  children: /* @__PURE__ */ f(
1605
1605
  co,
1606
1606
  {
1607
1607
  item: t,
1608
- keyframeAnimations: V,
1609
- frame: h,
1610
- children: /* @__PURE__ */ yt(
1608
+ keyframeAnimations: E,
1609
+ frame: i,
1610
+ children: /* @__PURE__ */ vt(
1611
1611
  "div",
1612
1612
  {
1613
1613
  id: `${t.id}-reveal-mask`,
@@ -1621,17 +1621,17 @@ function We({
1621
1621
  yo,
1622
1622
  {
1623
1623
  width: M,
1624
- height: x,
1624
+ height: $,
1625
1625
  effects: b,
1626
1626
  children: O()
1627
1627
  }
1628
1628
  ) : O(),
1629
- g.map((A) => /* @__PURE__ */ f("div", { style: A.style }, A.id)),
1630
- !k && !Y && !E && !X && !L && /* @__PURE__ */ f(
1629
+ g.map((Q) => /* @__PURE__ */ f("div", { style: Q.style }, Q.id)),
1630
+ !k && !Y && !V && !X && !G && /* @__PURE__ */ f(
1631
1631
  "div",
1632
1632
  {
1633
1633
  style: {
1634
- ...Bo(a, i),
1634
+ ...Bo(a, h),
1635
1635
  backgroundColor: "transparent"
1636
1636
  }
1637
1637
  }
@@ -1645,25 +1645,25 @@ function We({
1645
1645
  )
1646
1646
  }
1647
1647
  );
1648
- return mt({ item: t, options: n, children: B });
1648
+ return gt({ item: t, options: n, children: B });
1649
1649
  }
1650
- const Ve = ({
1650
+ const Ee = ({
1651
1651
  item: t,
1652
1652
  options: n
1653
1653
  }) => {
1654
- const { fps: r, frame: s } = n, { details: e, animations: a } = t, { durationInFrames: d } = $t(t.display, r), { animationIn: o, animationOut: p, animationTimed: c } = It(
1654
+ const { fps: r, frame: s } = n, { details: e, animations: a } = t, { durationInFrames: d } = It(t.display, r), { animationIn: o, animationOut: p, animationTimed: c } = Nt(
1655
1655
  a,
1656
1656
  t,
1657
1657
  s,
1658
1658
  r
1659
- ), i = (s || 0) - t.display.from * r / 1e3, { backgroundColor: l, ...h } = e, u = /* @__PURE__ */ f(
1660
- Zt,
1659
+ ), h = (s || 0) - t.display.from * r / 1e3, { backgroundColor: l, ...i } = e, u = /* @__PURE__ */ f(
1660
+ At,
1661
1661
  {
1662
1662
  animationIn: o,
1663
1663
  animationOut: p,
1664
- frame: i,
1664
+ frame: h,
1665
1665
  durationInFrames: d,
1666
- style: h,
1666
+ style: i,
1667
1667
  children: /* @__PURE__ */ f(
1668
1668
  "div",
1669
1669
  {
@@ -1680,7 +1680,7 @@ const Ve = ({
1680
1680
  )
1681
1681
  }
1682
1682
  );
1683
- return mt({ item: t, options: n, children: u });
1683
+ return gt({ item: t, options: n, children: u });
1684
1684
  }, Io = {
1685
1685
  // Legacy Easings
1686
1686
  linear: w.linear,
@@ -1716,12 +1716,12 @@ const Ve = ({
1716
1716
  from: o,
1717
1717
  to: p,
1718
1718
  easing: c,
1719
- delay: i,
1719
+ delay: h,
1720
1720
  details: l,
1721
- phase: h = "in"
1721
+ phase: i = "in"
1722
1722
  }) => {
1723
- const u = a, y = e > 1 ? u * 0.6 : u, m = e > 1 ? u * 0.4 / (e - 1) : 0, v = i + n * m, b = r - v;
1724
- if (h === "in" && b < 0)
1723
+ const u = a, y = e > 1 ? u * 0.6 : u, m = e > 1 ? u * 0.4 / (e - 1) : 0, v = h + n * m, b = r - v;
1724
+ if (i === "in" && b < 0)
1725
1725
  return /* @__PURE__ */ f(
1726
1726
  "span",
1727
1727
  {
@@ -1730,7 +1730,7 @@ const Ve = ({
1730
1730
  },
1731
1731
  n
1732
1732
  );
1733
- if (h === "out" && b >= y)
1733
+ if (i === "out" && b >= y)
1734
1734
  return /* @__PURE__ */ f(
1735
1735
  "span",
1736
1736
  {
@@ -1739,20 +1739,20 @@ const Ve = ({
1739
1739
  },
1740
1740
  n
1741
1741
  );
1742
- const $ = W(b, [0, y], [0, 1], {
1742
+ const x = W(b, [0, y], [0, 1], {
1743
1743
  extrapolateLeft: "clamp",
1744
1744
  extrapolateRight: "clamp"
1745
- }), M = Bn(c)($), x = o + (p - o) * M;
1745
+ }), M = Bn(c)(x), $ = o + (p - o) * M;
1746
1746
  let I = {
1747
1747
  display: "inline-block",
1748
1748
  transformOrigin: "center"
1749
1749
  };
1750
1750
  switch (d) {
1751
1751
  case "opacity":
1752
- I.opacity = x;
1752
+ I.opacity = $;
1753
1753
  break;
1754
1754
  case "scale":
1755
- I.transform = `scale(${x})`;
1755
+ I.transform = `scale(${$})`;
1756
1756
  break;
1757
1757
  case "translateX": {
1758
1758
  let k = 100, S = !1;
@@ -1760,7 +1760,7 @@ const Ve = ({
1760
1760
  const N = typeof l.width == "number" ? l.width : parseFloat(l.width);
1761
1761
  isNaN(N) || (k = N, S = !0);
1762
1762
  }
1763
- const Y = S ? `${x / 100 * k}px` : `${x}%`;
1763
+ const Y = S ? `${$ / 100 * k}px` : `${$}%`;
1764
1764
  I.transform = `translateX(${Y})`;
1765
1765
  break;
1766
1766
  }
@@ -1770,18 +1770,18 @@ const Ve = ({
1770
1770
  const N = typeof l.height == "number" ? l.height : parseFloat(l.height);
1771
1771
  isNaN(N) || (k = N, S = !0);
1772
1772
  }
1773
- const Y = S ? `${x / 100 * k}px` : `${x}%`;
1773
+ const Y = S ? `${$ / 100 * k}px` : `${$}%`;
1774
1774
  I.transform = `translateY(${Y})`;
1775
1775
  break;
1776
1776
  }
1777
1777
  case "rotate":
1778
- I.transform = `rotate(${x}deg)`;
1778
+ I.transform = `rotate(${$}deg)`;
1779
1779
  break;
1780
1780
  case "rotateY":
1781
- I.transform = `rotateY(${x}deg)`;
1781
+ I.transform = `rotateY(${$}deg)`;
1782
1782
  break;
1783
1783
  default:
1784
- I.opacity = x;
1784
+ I.opacity = $;
1785
1785
  break;
1786
1786
  }
1787
1787
  return /* @__PURE__ */ f("span", { style: I, children: t === " " ? " " : t }, n);
@@ -1793,13 +1793,13 @@ const Ve = ({
1793
1793
  textLength: e,
1794
1794
  animationTextInFrames: a
1795
1795
  }) => {
1796
- const d = a, o = d / (e + 1), p = n * o, c = xt({
1796
+ const d = a, o = d / (e + 1), p = n * o, c = St({
1797
1797
  frame: r - p,
1798
1798
  fps: s,
1799
1799
  from: 4,
1800
1800
  to: 1,
1801
1801
  config: { mass: 1, damping: 10 }
1802
- }), i = W(
1802
+ }), h = W(
1803
1803
  r - p,
1804
1804
  [0, d / 2],
1805
1805
  // Ensure opacity fades in within half the duration
@@ -1812,13 +1812,13 @@ const Ve = ({
1812
1812
  style: {
1813
1813
  display: "inline-block",
1814
1814
  transform: `scale(${c})`,
1815
- opacity: i
1815
+ opacity: h
1816
1816
  },
1817
1817
  children: t === " " ? " " : t
1818
1818
  },
1819
1819
  n
1820
1820
  );
1821
- }, Ln = ({
1821
+ }, Gn = ({
1822
1822
  char: t,
1823
1823
  index: n,
1824
1824
  frame: r,
@@ -1826,7 +1826,7 @@ const Ve = ({
1826
1826
  textLength: e,
1827
1827
  animationTextInFrames: a
1828
1828
  }) => {
1829
- const o = a / e, p = n * o, c = xt({
1829
+ const o = a / e, p = n * o, c = St({
1830
1830
  frame: r - p,
1831
1831
  fps: s,
1832
1832
  from: -90,
@@ -1844,7 +1844,7 @@ const Ve = ({
1844
1844
  },
1845
1845
  n
1846
1846
  );
1847
- }, Gn = ({
1847
+ }, Ln = ({
1848
1848
  char: t,
1849
1849
  index: n,
1850
1850
  frame: r,
@@ -1852,7 +1852,7 @@ const Ve = ({
1852
1852
  textLength: e,
1853
1853
  animationTextInFrames: a
1854
1854
  }) => {
1855
- const o = a / e, p = n * o, c = xt({
1855
+ const o = a / e, p = n * o, c = St({
1856
1856
  frame: r - p,
1857
1857
  fps: s,
1858
1858
  from: 0,
@@ -1878,13 +1878,13 @@ const Ve = ({
1878
1878
  textLength: e,
1879
1879
  animationTextInFrames: a
1880
1880
  }) => {
1881
- const d = a, o = d / e, p = n * o, c = xt({
1881
+ const d = a, o = d / e, p = n * o, c = St({
1882
1882
  frame: r - p,
1883
1883
  fps: s,
1884
1884
  from: 1.1,
1885
1885
  to: 0,
1886
1886
  config: { damping: 10 }
1887
- }), i = W(r - p, [0, d / 2], [0, 1], {
1887
+ }), h = W(r - p, [0, d / 2], [0, 1], {
1888
1888
  extrapolateRight: "clamp",
1889
1889
  extrapolateLeft: "clamp"
1890
1890
  });
@@ -1894,7 +1894,7 @@ const Ve = ({
1894
1894
  style: {
1895
1895
  display: "inline-block",
1896
1896
  transform: `translateY(${c}em)`,
1897
- opacity: i
1897
+ opacity: h
1898
1898
  },
1899
1899
  children: t === " " ? " " : t
1900
1900
  },
@@ -1908,13 +1908,13 @@ const Ve = ({
1908
1908
  textLength: e,
1909
1909
  animationTextInFrames: a
1910
1910
  }) => {
1911
- const d = a, o = d / e, p = n * o, c = xt({
1911
+ const d = a, o = d / e, p = n * o, c = St({
1912
1912
  frame: r - p,
1913
1913
  fps: s,
1914
1914
  from: -100,
1915
1915
  to: 0,
1916
1916
  config: { damping: 20, stiffness: 120 }
1917
- }), i = W(
1917
+ }), h = W(
1918
1918
  r - p,
1919
1919
  [0, d / 2],
1920
1920
  // Complete opacity ramp-up within half the duration
@@ -1930,7 +1930,7 @@ const Ve = ({
1930
1930
  style: {
1931
1931
  display: "inline-block",
1932
1932
  transform: `translateY(${c}px)`,
1933
- opacity: i
1933
+ opacity: h
1934
1934
  },
1935
1935
  children: t === " " ? " " : t
1936
1936
  },
@@ -1945,19 +1945,19 @@ const Ve = ({
1945
1945
  animationTextOutFrames: a,
1946
1946
  durationInFrames: d
1947
1947
  }) => {
1948
- const o = d - a, p = n / e * (d - o), c = xt({
1948
+ const o = d - a, p = n / e * (d - o), c = St({
1949
1949
  frame: r - o - p,
1950
1950
  fps: s,
1951
1951
  from: 1,
1952
1952
  to: 0,
1953
1953
  config: { mass: 0.5, damping: 10 }
1954
- }), i = xt({
1954
+ }), h = St({
1955
1955
  frame: r - o - p,
1956
1956
  fps: s,
1957
1957
  from: 0,
1958
1958
  to: 50,
1959
1959
  config: { mass: 0.5, damping: 10 }
1960
- }), l = xt({
1960
+ }), l = St({
1961
1961
  frame: r - o - p,
1962
1962
  fps: s,
1963
1963
  from: 0,
@@ -1970,7 +1970,7 @@ const Ve = ({
1970
1970
  style: {
1971
1971
  display: "inline-block",
1972
1972
  opacity: c,
1973
- transform: `translateY(${i}px) rotate(${l}deg)`
1973
+ transform: `translateY(${h}px) rotate(${l}deg)`
1974
1974
  },
1975
1975
  children: t === " " ? " " : t
1976
1976
  },
@@ -1985,13 +1985,13 @@ const Ve = ({
1985
1985
  animationTextOutFrames: a,
1986
1986
  durationInFrames: d
1987
1987
  }) => {
1988
- const o = d - a, p = a / e, c = o + n * p, i = r - c, l = xt({
1989
- frame: i,
1988
+ const o = d - a, p = a / e, c = o + n * p, h = r - c, l = St({
1989
+ frame: h,
1990
1990
  fps: s,
1991
1991
  from: 1,
1992
1992
  to: 0,
1993
1993
  config: { mass: 1, damping: 10 }
1994
- }), h = W(i, [0, p], [1, 0], {
1994
+ }), i = W(h, [0, p], [1, 0], {
1995
1995
  extrapolateLeft: "clamp",
1996
1996
  extrapolateRight: "clamp"
1997
1997
  });
@@ -2001,7 +2001,7 @@ const Ve = ({
2001
2001
  style: {
2002
2002
  display: "inline-block",
2003
2003
  transform: `scale(${l})`,
2004
- opacity: h
2004
+ opacity: i
2005
2005
  },
2006
2006
  children: t === " " ? " " : t
2007
2007
  },
@@ -2016,7 +2016,7 @@ const Ve = ({
2016
2016
  animationTextOutFrames: a,
2017
2017
  durationInFrames: d
2018
2018
  }) => {
2019
- const p = a / e, i = d - a + n * p, l = r - i, h = xt({
2019
+ const p = a / e, h = d - a + n * p, l = r - h, i = St({
2020
2020
  frame: l,
2021
2021
  fps: s,
2022
2022
  from: 0,
@@ -2028,13 +2028,13 @@ const Ve = ({
2028
2028
  {
2029
2029
  style: {
2030
2030
  display: "inline-block",
2031
- transform: `rotateY(${h}deg)`
2031
+ transform: `rotateY(${i}deg)`
2032
2032
  },
2033
2033
  children: t === " " ? " " : t
2034
2034
  },
2035
2035
  n
2036
2036
  );
2037
- }, Qn = ({
2037
+ }, An = ({
2038
2038
  char: t,
2039
2039
  index: n,
2040
2040
  frame: r,
@@ -2043,7 +2043,7 @@ const Ve = ({
2043
2043
  animationTextOutFrames: a,
2044
2044
  durationInFrames: d
2045
2045
  }) => {
2046
- const p = a / e, i = d - a + n * p, l = r - i, h = xt({
2046
+ const p = a / e, h = d - a + n * p, l = r - h, i = St({
2047
2047
  frame: l,
2048
2048
  fps: s,
2049
2049
  from: 0,
@@ -2058,14 +2058,14 @@ const Ve = ({
2058
2058
  {
2059
2059
  style: {
2060
2060
  display: "inline-block",
2061
- transform: `translateY(${h}em)`,
2061
+ transform: `translateY(${i}em)`,
2062
2062
  opacity: u
2063
2063
  },
2064
2064
  children: t === " " ? " " : t
2065
2065
  },
2066
2066
  n
2067
2067
  );
2068
- }, An = ({
2068
+ }, Qn = ({
2069
2069
  char: t,
2070
2070
  index: n,
2071
2071
  frame: r,
@@ -2073,25 +2073,25 @@ const Ve = ({
2073
2073
  textLength: e,
2074
2074
  animationTextInFrames: a
2075
2075
  }) => {
2076
- const o = a / e, p = n * o, c = xt({
2076
+ const o = a / e, p = n * o, c = St({
2077
2077
  frame: r - p,
2078
2078
  fps: s,
2079
2079
  from: 1.1,
2080
2080
  to: 0,
2081
2081
  config: { damping: 10 }
2082
- }), i = xt({
2082
+ }), h = St({
2083
2083
  frame: r - p,
2084
2084
  fps: s,
2085
2085
  from: 0.55,
2086
2086
  to: 0,
2087
2087
  config: { damping: 10 }
2088
- }), l = xt({
2088
+ }), l = St({
2089
2089
  frame: r - p,
2090
2090
  fps: s,
2091
2091
  from: 180,
2092
2092
  to: 0,
2093
2093
  config: { damping: 10 }
2094
- }), h = W(
2094
+ }), i = W(
2095
2095
  r,
2096
2096
  [p, p + 15],
2097
2097
  // Adjust for opacity ramp-up
@@ -2107,8 +2107,8 @@ const Ve = ({
2107
2107
  style: {
2108
2108
  display: "inline-block",
2109
2109
  transformOrigin: "0 100%",
2110
- transform: `translateY(${c}em) translateX(${i}em) rotateZ(${l}deg)`,
2111
- opacity: h
2110
+ transform: `translateY(${c}em) translateX(${h}em) rotateZ(${l}deg)`,
2111
+ opacity: i
2112
2112
  },
2113
2113
  children: t === " " ? " " : t
2114
2114
  },
@@ -2123,15 +2123,15 @@ const Ve = ({
2123
2123
  animationTextOutFrames: a,
2124
2124
  durationInFrames: d
2125
2125
  }) => {
2126
- const o = d - a, p = a / e, c = o + n * p, i = r - c, l = xt({
2127
- frame: i,
2126
+ const o = d - a, p = a / e, c = o + n * p, h = r - c, l = St({
2127
+ frame: h,
2128
2128
  fps: s,
2129
2129
  from: 0,
2130
2130
  to: 100,
2131
2131
  // Move text out of view
2132
2132
  config: { damping: 20, stiffness: 120 }
2133
- }), h = W(
2134
- i,
2133
+ }), i = W(
2134
+ h,
2135
2135
  [0, p],
2136
2136
  // Frames for opacity fade-out
2137
2137
  [1, 0],
@@ -2146,7 +2146,7 @@ const Ve = ({
2146
2146
  style: {
2147
2147
  display: "inline-block",
2148
2148
  transform: `translateY(${l}px)`,
2149
- opacity: h
2149
+ opacity: i
2150
2150
  },
2151
2151
  children: t === " " ? " " : t
2152
2152
  },
@@ -2161,25 +2161,25 @@ const Ve = ({
2161
2161
  animationTextOutFrames: a,
2162
2162
  durationInFrames: d
2163
2163
  }) => {
2164
- const o = d - a, p = a / e, c = o + n * p, i = r - c, l = xt({
2165
- frame: i,
2164
+ const o = d - a, p = a / e, c = o + n * p, h = r - c, l = St({
2165
+ frame: h,
2166
2166
  fps: s,
2167
2167
  from: 0,
2168
2168
  to: 1,
2169
2169
  config: { mass: 1, damping: 10 }
2170
- }), h = xt({
2171
- frame: i,
2170
+ }), i = St({
2171
+ frame: h,
2172
2172
  fps: s,
2173
2173
  from: 0,
2174
2174
  to: 0.55,
2175
2175
  config: { mass: 1, damping: 10 }
2176
- }), u = xt({
2177
- frame: i,
2176
+ }), u = St({
2177
+ frame: h,
2178
2178
  fps: s,
2179
2179
  from: 0,
2180
2180
  to: 180,
2181
2181
  config: { mass: 1, damping: 10 }
2182
- }), y = W(i, [0, p], [1, 0], {
2182
+ }), y = W(h, [0, p], [1, 0], {
2183
2183
  extrapolateLeft: "clamp",
2184
2184
  extrapolateRight: "clamp"
2185
2185
  });
@@ -2189,7 +2189,7 @@ const Ve = ({
2189
2189
  style: {
2190
2190
  display: "inline-block",
2191
2191
  transformOrigin: "0 100%",
2192
- transform: `translateY(${l}em) translateX(${h}em) rotateZ(${u}deg)`,
2192
+ transform: `translateY(${l}em) translateX(${i}em) rotateZ(${u}deg)`,
2193
2193
  opacity: y
2194
2194
  },
2195
2195
  children: t === " " ? " " : t
@@ -2205,8 +2205,8 @@ const Ve = ({
2205
2205
  animationTextOutFrames: a,
2206
2206
  durationInFrames: d
2207
2207
  }) => {
2208
- const o = d - a, p = a / e, c = o + n * p, i = r - c, l = xt({
2209
- frame: i,
2208
+ const o = d - a, p = a / e, c = o + n * p, h = r - c, l = St({
2209
+ frame: h,
2210
2210
  fps: s,
2211
2211
  from: 1,
2212
2212
  to: 0,
@@ -2324,13 +2324,13 @@ const Ve = ({
2324
2324
  const d = (a - e) / s, o = a / s, p = r / s, c = Math.min(
2325
2325
  Math.max((p - d) / (o - d), 0),
2326
2326
  1
2327
- ), i = 1 + c, l = 1 - c;
2327
+ ), h = 1 + c, l = 1 - c;
2328
2328
  return /* @__PURE__ */ f(
2329
2329
  "span",
2330
2330
  {
2331
2331
  style: {
2332
2332
  display: "inline-block",
2333
- transform: `scaleX(${i})`,
2333
+ transform: `scaleX(${h})`,
2334
2334
  opacity: l
2335
2335
  },
2336
2336
  children: t === " " ? " " : t
@@ -2348,13 +2348,13 @@ const Ve = ({
2348
2348
  const d = (a - e) / s, o = a / s, p = r / s, c = Math.min(
2349
2349
  Math.max((p - d) / (o - d), 0),
2350
2350
  1
2351
- ), i = 1 + c, l = 1 - c;
2351
+ ), h = 1 + c, l = 1 - c;
2352
2352
  return /* @__PURE__ */ f(
2353
2353
  "span",
2354
2354
  {
2355
2355
  style: {
2356
2356
  display: "inline-block",
2357
- transform: `scale(${i})`,
2357
+ transform: `scale(${h})`,
2358
2358
  opacity: l
2359
2359
  },
2360
2360
  children: t === " " ? " " : t
@@ -2438,7 +2438,7 @@ const sr = ({
2438
2438
  extrapolateRight: "clamp"
2439
2439
  }
2440
2440
  );
2441
- return /* @__PURE__ */ yt(
2441
+ return /* @__PURE__ */ vt(
2442
2442
  "span",
2443
2443
  {
2444
2444
  style: {
@@ -2492,7 +2492,7 @@ function dr({
2492
2492
  return "";
2493
2493
  }).join(" ");
2494
2494
  }, [e]);
2495
- return /* @__PURE__ */ yt(
2495
+ return /* @__PURE__ */ vt(
2496
2496
  "div",
2497
2497
  {
2498
2498
  style: {
@@ -2522,7 +2522,7 @@ function dr({
2522
2522
  }
2523
2523
  );
2524
2524
  }
2525
- const hr = ({
2525
+ const ir = ({
2526
2526
  text: t,
2527
2527
  frame: n,
2528
2528
  details: r,
@@ -2577,7 +2577,7 @@ const hr = ({
2577
2577
  )
2578
2578
  }
2579
2579
  );
2580
- }, ir = ({
2580
+ }, hr = ({
2581
2581
  text: t,
2582
2582
  frame: n,
2583
2583
  animationTextInFrames: r,
@@ -2585,9 +2585,9 @@ const hr = ({
2585
2585
  }) => {
2586
2586
  const e = r * 0.5, a = r, d = 8, o = W(n, [0, e], [0.5, 1], {
2587
2587
  extrapolateRight: "clamp"
2588
- }), p = o, c = 0, i = 1, l = W(n, [0, e], [2, 1], {
2588
+ }), p = o, c = 0, h = 1, l = W(n, [0, e], [2, 1], {
2589
2589
  extrapolateRight: "clamp"
2590
- }), h = n < e ? W(n, [0, e], [20, 0], {
2590
+ }), i = n < e ? W(n, [0, e], [20, 0], {
2591
2591
  extrapolateRight: "clamp"
2592
2592
  }) : W(n, [e, a], [0, 40], {
2593
2593
  extrapolateLeft: "clamp",
@@ -2604,7 +2604,7 @@ const hr = ({
2604
2604
  [0, e],
2605
2605
  [0.5, 1],
2606
2606
  { extrapolateRight: "clamp" }
2607
- ), $ = W(
2607
+ ), x = W(
2608
2608
  v,
2609
2609
  [0, e],
2610
2610
  [0.15, 0],
@@ -2618,7 +2618,7 @@ const hr = ({
2618
2618
  position: "absolute",
2619
2619
  top: 0,
2620
2620
  left: 0,
2621
- opacity: $,
2621
+ opacity: x,
2622
2622
  transform: `scale(${b * 2})`,
2623
2623
  pointerEvents: "none"
2624
2624
  },
@@ -2628,7 +2628,7 @@ const hr = ({
2628
2628
  )
2629
2629
  );
2630
2630
  }
2631
- return /* @__PURE__ */ yt(
2631
+ return /* @__PURE__ */ vt(
2632
2632
  "div",
2633
2633
  {
2634
2634
  style: {
@@ -2660,7 +2660,7 @@ const hr = ({
2660
2660
  width: s.width,
2661
2661
  height: s.height,
2662
2662
  transform: `scaleX(${l})`,
2663
- filter: `blur(${h * 3}px)`
2663
+ filter: `blur(${i * 3}px)`
2664
2664
  },
2665
2665
  children: t
2666
2666
  }
@@ -2669,7 +2669,7 @@ const hr = ({
2669
2669
  "span",
2670
2670
  {
2671
2671
  style: {
2672
- opacity: i,
2672
+ opacity: h,
2673
2673
  filter: `blur(${c}px)`,
2674
2674
  transform: `scale(${p})`,
2675
2675
  fontSize: parseFloat(s.fontSize.toString()),
@@ -2700,12 +2700,12 @@ const hr = ({
2700
2700
  details: s
2701
2701
  }) => {
2702
2702
  const e = r * 3 / 4, a = Math.floor(e / ko.length);
2703
- let d = "", o = 0, p = a, c = 2, i = 0.5, l = parseFloat(s.fontSize.toString());
2703
+ let d = "", o = 0, p = a, c = 2, h = 0.5, l = parseFloat(s.fontSize.toString());
2704
2704
  if (n < e) {
2705
2705
  const v = Math.floor(n / a);
2706
- d = ko[v], o = n - v * a, p = a, c = 2, i = 0.5, l = parseFloat(s.fontSize.toString());
2707
- } else n < r ? (d = t, o = n - e, p = r - e, c = 2, i = 1, l = parseFloat(s.fontSize.toString())) : (d = t, o = p, c = 1, i = 1, l = parseFloat(s.fontSize.toString()));
2708
- const h = Math.min(o / p, 1), u = W(h, [0, 1], [c, i]), y = W(h, [0, 1], [0.3, 1]), m = W(h, [0, 1], [8, 0]);
2706
+ d = ko[v], o = n - v * a, p = a, c = 2, h = 0.5, l = parseFloat(s.fontSize.toString());
2707
+ } else n < r ? (d = t, o = n - e, p = r - e, c = 2, h = 1, l = parseFloat(s.fontSize.toString())) : (d = t, o = p, c = 1, h = 1, l = parseFloat(s.fontSize.toString()));
2708
+ const i = Math.min(o / p, 1), u = W(i, [0, 1], [c, h]), y = W(i, [0, 1], [0.3, 1]), m = W(i, [0, 1], [8, 0]);
2709
2709
  return /* @__PURE__ */ f(
2710
2710
  "span",
2711
2711
  {
@@ -2731,27 +2731,27 @@ const hr = ({
2731
2731
  animationTextInFrames: s,
2732
2732
  fps: e
2733
2733
  }) => {
2734
- const a = (h, u, y) => {
2734
+ const a = (i, u, y) => {
2735
2735
  const v = document.createElement("canvas").getContext("2d");
2736
2736
  if (!v) return [];
2737
2737
  v.font = `${y}px ${r.fontFamily || "Arial, sans-serif"}`;
2738
- const b = h.split(" ");
2739
- let $ = [], g = "";
2738
+ const b = i.split(" ");
2739
+ let x = [], g = "";
2740
2740
  return b.forEach((M) => {
2741
- const x = g ? `${g} ${M}` : M;
2742
- v.measureText(x).width > u ? ($.push(g), g = M) : g = x;
2743
- }), g && $.push(g), $;
2744
- }, d = r.width || 300, o = a(t, d, r.fontSize), p = s / e, c = 0.3, i = p / o.length, l = o.map((h, u) => {
2745
- const y = u * i * (1 - c) * 1.5, m = y + i, v = y * e, b = Math.max(m * e, p * e), $ = W(n, [v, b], [0, 1], {
2741
+ const $ = g ? `${g} ${M}` : M;
2742
+ v.measureText($).width > u ? (x.push(g), g = M) : g = $;
2743
+ }), g && x.push(g), x;
2744
+ }, d = r.width || 300, o = a(t, d, r.fontSize), p = s / e, c = 0.3, h = p / o.length, l = o.map((i, u) => {
2745
+ const y = u * h * (1 - c) * 1.5, m = y + h, v = y * e, b = Math.max(m * e, p * e), x = W(n, [v, b], [0, 1], {
2746
2746
  easing: w.out(w.cubic),
2747
2747
  extrapolateLeft: "clamp",
2748
2748
  extrapolateRight: "clamp"
2749
- }), g = W($, [0, 1], [-r.fontSize, 0]);
2749
+ }), g = W(x, [0, 1], [-r.fontSize, 0]);
2750
2750
  return {
2751
- text: h,
2752
- progress: $,
2751
+ text: i,
2752
+ progress: x,
2753
2753
  y: g,
2754
- opacity: $
2754
+ opacity: x
2755
2755
  };
2756
2756
  });
2757
2757
  return /* @__PURE__ */ f(
@@ -2764,7 +2764,7 @@ const hr = ({
2764
2764
  overflow: "hidden",
2765
2765
  width: `${d}px`
2766
2766
  },
2767
- children: l.map((h, u) => /* @__PURE__ */ f(
2767
+ children: l.map((i, u) => /* @__PURE__ */ f(
2768
2768
  "div",
2769
2769
  {
2770
2770
  style: {
@@ -2777,10 +2777,10 @@ const hr = ({
2777
2777
  "div",
2778
2778
  {
2779
2779
  style: {
2780
- transform: `translateY(${h.y}px)`,
2781
- opacity: h.opacity
2780
+ transform: `translateY(${i.y}px)`,
2781
+ opacity: i.opacity
2782
2782
  },
2783
- children: h.text
2783
+ children: i.text
2784
2784
  }
2785
2785
  )
2786
2786
  },
@@ -2810,7 +2810,7 @@ const hr = ({
2810
2810
  text: r
2811
2811
  }) => {
2812
2812
  const s = W(t, [0, n / 2], [0, 360]), e = s - 90;
2813
- return /* @__PURE__ */ yt(
2813
+ return /* @__PURE__ */ vt(
2814
2814
  "div",
2815
2815
  {
2816
2816
  style: {
@@ -2879,12 +2879,12 @@ const hr = ({
2879
2879
  }
2880
2880
  );
2881
2881
  };
2882
- function ho(t) {
2882
+ function io(t) {
2883
2883
  const n = Math.sin(t) * 1e4;
2884
2884
  return n - Math.floor(n);
2885
2885
  }
2886
2886
  const yr = ({ text: t, frame: n }) => {
2887
- const r = (ho(n) - 0.5) * 8, s = (ho(n + 999) - 0.5) * 8, e = (ho(n + 500) - 0.5) * 6;
2887
+ const r = (io(n) - 0.5) * 8, s = (io(n + 999) - 0.5) * 8, e = (io(n + 500) - 0.5) * 6;
2888
2888
  return /* @__PURE__ */ f(
2889
2889
  "span",
2890
2890
  {
@@ -2913,13 +2913,13 @@ const yr = ({ text: t, frame: n }) => {
2913
2913
  position: "relative"
2914
2914
  },
2915
2915
  children: Array.from({ length: d }).map((o, p) => {
2916
- const c = p * 4, i = -p * 2, l = 1 / (d - p);
2916
+ const c = p * 4, h = -p * 2, l = 1 / (d - p);
2917
2917
  return /* @__PURE__ */ f(
2918
2918
  "div",
2919
2919
  {
2920
2920
  style: {
2921
2921
  position: "absolute",
2922
- transform: `translate(${c * 4}px, ${i * 4}px)`,
2922
+ transform: `translate(${c * 4}px, ${h * 4}px)`,
2923
2923
  fontWeight: "bold",
2924
2924
  fontSize: r.fontSize,
2925
2925
  zIndex: p,
@@ -2936,7 +2936,7 @@ const yr = ({ text: t, frame: n }) => {
2936
2936
  );
2937
2937
  }, gr = ({ text: t, frame: n }) => {
2938
2938
  const r = Math.sin(n / 10) * 10, s = Math.sin(n / 5) * 10;
2939
- return /* @__PURE__ */ yt(
2939
+ return /* @__PURE__ */ vt(
2940
2940
  "span",
2941
2941
  {
2942
2942
  style: {
@@ -2983,11 +2983,11 @@ const yr = ({ text: t, frame: n }) => {
2983
2983
  details: d,
2984
2984
  marqueeDetails: o
2985
2985
  }) => {
2986
- const p = wt(), c = typeof n == "number" && !isNaN(n) ? n : p, i = Math.max(0, c - (r || 0)), l = Math.min(1, Math.max(0, i / (s || 1))), h = Math.min(12, Math.max(1, Number((o == null ? void 0 : o.repeatX) ?? 5))), u = Math.min(12, Math.max(1, Number((o == null ? void 0 : o.repeatY) ?? 5))), y = d.width || 300, m = d.height || 100, v = y / h, b = m / u, $ = (o == null ? void 0 : o.scaleFactor) !== void 0 ? Number(o.scaleFactor) : 1, g = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialScaleFactor) !== void 0 ? Number(o.initialScaleFactor) : $, M = o != null && o.hasInitialValue ? g + ($ - g) * l : $, x = (o == null ? void 0 : o.gapX) !== void 0 ? Number(o.gapX) : 60, I = (o == null ? void 0 : o.gapY) !== void 0 ? Number(o.gapY) : 60, k = 0.55, S = Math.max(8, b * 0.7 - I * 0.1), Y = Math.max(
2986
+ const p = Yt(), c = typeof n == "number" && !isNaN(n) ? n : p, h = Math.max(0, c - (r || 0)), l = Math.min(1, Math.max(0, h / (s || 1))), i = Math.min(12, Math.max(1, Number((o == null ? void 0 : o.repeatX) ?? 5))), u = Math.min(12, Math.max(1, Number((o == null ? void 0 : o.repeatY) ?? 5))), y = d.width || 300, m = d.height || 100, v = y / i, b = m / u, x = (o == null ? void 0 : o.scaleFactor) !== void 0 ? Number(o.scaleFactor) : 1, g = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialScaleFactor) !== void 0 ? Number(o.initialScaleFactor) : x, M = o != null && o.hasInitialValue ? g + (x - g) * l : x, $ = (o == null ? void 0 : o.gapX) !== void 0 ? Number(o.gapX) : 60, I = (o == null ? void 0 : o.gapY) !== void 0 ? Number(o.gapY) : 60, k = 0.55, S = Math.max(8, b * 0.7 - I * 0.1), Y = Math.max(
2987
2987
  8,
2988
- (v - x * 0.2) / Math.max(1, t.length * k)
2989
- ), N = Math.min(S, Y), E = Math.max(8, N * M), F = (o == null ? void 0 : o.direction) || "horizontal", X = F === "static", P = (o == null ? void 0 : o.baseSpeed) !== void 0 ? Number(o.baseSpeed) : 0.25, L = (o == null ? void 0 : o.speedVariation) !== void 0 ? Number(o.speedVariation) : 0.5, V = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialBaseSpeed) !== void 0 ? Number(o.initialBaseSpeed) : P, O = o != null && o.hasInitialValue ? V + (P - V) * l : P, C = X ? 0 : O * 80, B = X ? 0 : O * 80, z = (o == null ? void 0 : o.lineOffset) !== void 0 ? Number(o.lineOffset) : 0.5, et = Ct(d), q = F === "vertical" || F === "up" || F === "down", Z = F === "diagonal", K = u + ((q || Z) && B > 0 ? 2 : 0), T = h + ((!q || Z) && C > 0 ? 2 : 0), ct = (K - 1) / 2, lt = (T - 1) / 2, G = Array.from({ length: K }, (U, tt) => tt - ct), D = Array.from({ length: T }, (U, tt) => tt - lt);
2990
- return q ? /* @__PURE__ */ f(
2988
+ (v - $ * 0.2) / Math.max(1, t.length * k)
2989
+ ), N = Math.min(S, Y), V = Math.max(8, N * M), F = (o == null ? void 0 : o.direction) || "horizontal", X = F === "static", P = (o == null ? void 0 : o.baseSpeed) !== void 0 ? Number(o.baseSpeed) : 0.25, G = (o == null ? void 0 : o.speedVariation) !== void 0 ? Number(o.speedVariation) : 0.5, E = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialBaseSpeed) !== void 0 ? Number(o.initialBaseSpeed) : P, O = o != null && o.hasInitialValue ? E + (P - E) * l : P, C = X ? 0 : O * 80, B = X ? 0 : O * 80, z = (o == null ? void 0 : o.lineOffset) !== void 0 ? Number(o.lineOffset) : 0.5, et = Gt(d), T = F === "vertical" || F === "up" || F === "down", Z = F === "diagonal", J = u + ((T || Z) && B > 0 ? 2 : 0), D = i + ((!T || Z) && C > 0 ? 2 : 0), st = (J - 1) / 2, mt = (D - 1) / 2, L = Array.from({ length: J }, (U, ot) => ot - st), tt = Array.from({ length: D }, (U, ot) => ot - mt);
2990
+ return T ? /* @__PURE__ */ f(
2991
2991
  "div",
2992
2992
  {
2993
2993
  style: {
@@ -2996,29 +2996,29 @@ const yr = ({ text: t, frame: n }) => {
2996
2996
  position: "relative",
2997
2997
  overflow: "hidden"
2998
2998
  },
2999
- children: D.map((U, tt) => {
3000
- let Q = tt % 2 === 0 ? 1 : -1;
3001
- F === "up" && (Q = -1), F === "down" && (Q = 1);
3002
- const A = 1 + tt % 2 * (L * 0.5), ut = B > 0 && Q !== 0 ? Q * (c * B * A) + U * (b * z) : U * (b * z), vt = B === 0 || Q === 0 ? 0 : (ut % b + b) % b;
3003
- return G.map((it, J) => {
3004
- const nt = U * v, ot = it * b + vt;
2999
+ children: tt.map((U, ot) => {
3000
+ let A = ot % 2 === 0 ? 1 : -1;
3001
+ F === "up" && (A = -1), F === "down" && (A = 1);
3002
+ const Q = 1 + ot % 2 * (G * 0.5), lt = B > 0 && A !== 0 ? A * (c * B * Q) + U * (b * z) : U * (b * z), Mt = B === 0 || A === 0 ? 0 : (lt % b + b) % b;
3003
+ return L.map((pt, q) => {
3004
+ const rt = U * v, nt = pt * b + Mt;
3005
3005
  return /* @__PURE__ */ f(
3006
3006
  "span",
3007
3007
  {
3008
3008
  style: {
3009
3009
  ...et,
3010
3010
  position: "absolute",
3011
- left: `calc(50% + ${nt}px)`,
3012
- top: `calc(50% + ${ot}px)`,
3011
+ left: `calc(50% + ${rt}px)`,
3012
+ top: `calc(50% + ${nt}px)`,
3013
3013
  transform: "translate(-50%, -50%)",
3014
- fontSize: `${E}px`,
3014
+ fontSize: `${V}px`,
3015
3015
  lineHeight: 1,
3016
- opacity: it === 0 && U === 0 ? 1 : 0.85,
3016
+ opacity: pt === 0 && U === 0 ? 1 : 0.85,
3017
3017
  whiteSpace: "nowrap"
3018
3018
  },
3019
3019
  children: t
3020
3020
  },
3021
- `v-${tt}-${J}`
3021
+ `v-${ot}-${q}`
3022
3022
  );
3023
3023
  });
3024
3024
  })
@@ -3032,27 +3032,27 @@ const yr = ({ text: t, frame: n }) => {
3032
3032
  position: "relative",
3033
3033
  overflow: "hidden"
3034
3034
  },
3035
- children: G.map((U, tt) => {
3036
- const Q = tt % 2 === 0 ? 1 : -1, A = tt % 2 === 0 ? 1 : -1, ut = 1 + tt % 2 * (L * 0.5), vt = C > 0 ? Q * (c * C * ut) + U * (v * z) : U * (v * z), it = C === 0 ? 0 : (vt % v + v) % v, J = B > 0 ? A * (c * B * ut) + U * (b * z) : U * (b * z), nt = B === 0 ? 0 : (J % b + b) % b;
3037
- return D.map((ot, st) => {
3038
- const at = ot * v + it, ft = U * b + nt;
3035
+ children: L.map((U, ot) => {
3036
+ const A = ot % 2 === 0 ? 1 : -1, Q = ot % 2 === 0 ? 1 : -1, lt = 1 + ot % 2 * (G * 0.5), Mt = C > 0 ? A * (c * C * lt) + U * (v * z) : U * (v * z), pt = C === 0 ? 0 : (Mt % v + v) % v, q = B > 0 ? Q * (c * B * lt) + U * (b * z) : U * (b * z), rt = B === 0 ? 0 : (q % b + b) % b;
3037
+ return tt.map((nt, dt) => {
3038
+ const it = nt * v + pt, yt = U * b + rt;
3039
3039
  return /* @__PURE__ */ f(
3040
3040
  "span",
3041
3041
  {
3042
3042
  style: {
3043
3043
  ...et,
3044
3044
  position: "absolute",
3045
- left: `calc(50% + ${at}px)`,
3046
- top: `calc(50% + ${ft}px)`,
3045
+ left: `calc(50% + ${it}px)`,
3046
+ top: `calc(50% + ${yt}px)`,
3047
3047
  transform: "translate(-50%, -50%)",
3048
- fontSize: `${E}px`,
3048
+ fontSize: `${V}px`,
3049
3049
  lineHeight: 1,
3050
- opacity: U === 0 && ot === 0 ? 1 : 0.85,
3050
+ opacity: U === 0 && nt === 0 ? 1 : 0.85,
3051
3051
  whiteSpace: "nowrap"
3052
3052
  },
3053
3053
  children: t
3054
3054
  },
3055
- `d-${tt}-${st}`
3055
+ `d-${ot}-${dt}`
3056
3056
  );
3057
3057
  });
3058
3058
  })
@@ -3066,29 +3066,29 @@ const yr = ({ text: t, frame: n }) => {
3066
3066
  position: "relative",
3067
3067
  overflow: "hidden"
3068
3068
  },
3069
- children: G.map((U, tt) => {
3070
- let Q = tt % 2 === 0 ? 1 : -1;
3071
- F === "left" && (Q = -1), F === "right" && (Q = 1);
3072
- const A = 1 + tt % 2 * (L * 0.5), ut = C > 0 && Q !== 0 ? Q * (c * C * A) + U * (v * z) : U * (v * z), vt = C === 0 || Q === 0 ? 0 : (ut % v + v) % v;
3073
- return D.map((it, J) => {
3074
- const nt = it * v + vt, ot = U * b;
3069
+ children: L.map((U, ot) => {
3070
+ let A = ot % 2 === 0 ? 1 : -1;
3071
+ F === "left" && (A = -1), F === "right" && (A = 1);
3072
+ const Q = 1 + ot % 2 * (G * 0.5), lt = C > 0 && A !== 0 ? A * (c * C * Q) + U * (v * z) : U * (v * z), Mt = C === 0 || A === 0 ? 0 : (lt % v + v) % v;
3073
+ return tt.map((pt, q) => {
3074
+ const rt = pt * v + Mt, nt = U * b;
3075
3075
  return /* @__PURE__ */ f(
3076
3076
  "span",
3077
3077
  {
3078
3078
  style: {
3079
3079
  ...et,
3080
3080
  position: "absolute",
3081
- left: `calc(50% + ${nt}px)`,
3082
- top: `calc(50% + ${ot}px)`,
3081
+ left: `calc(50% + ${rt}px)`,
3082
+ top: `calc(50% + ${nt}px)`,
3083
3083
  transform: "translate(-50%, -50%)",
3084
- fontSize: `${E}px`,
3084
+ fontSize: `${V}px`,
3085
3085
  lineHeight: 1,
3086
- opacity: U === 0 && it === 0 ? 1 : 0.85,
3086
+ opacity: U === 0 && pt === 0 ? 1 : 0.85,
3087
3087
  whiteSpace: "nowrap"
3088
3088
  },
3089
3089
  children: t
3090
3090
  },
3091
- `h-${tt}-${J}`
3091
+ `h-${ot}-${q}`
3092
3092
  );
3093
3093
  });
3094
3094
  })
@@ -3104,17 +3104,17 @@ const yr = ({ text: t, frame: n }) => {
3104
3104
  details: d,
3105
3105
  echoesDetails: o
3106
3106
  }) => {
3107
- const p = wt(), c = typeof n == "number" && !isNaN(n) ? n : p, i = d.width || 300, l = d.height || 100, h = (o == null ? void 0 : o.keepStill) || "both", u = Number((o == null ? void 0 : o.toRepeatCount) ?? 5), y = Number((o == null ? void 0 : o.toScaleDown) ?? 0.3), m = Number((o == null ? void 0 : o.toCenterX) ?? 0.5), v = Number((o == null ? void 0 : o.toCenterY) ?? 0.5), b = (o == null ? void 0 : o.initialRepeatCount) !== void 0 ? Number(o.initialRepeatCount) : u, $ = (o == null ? void 0 : o.initialScaleDown) !== void 0 ? Number(o.initialScaleDown) : 1, g = (o == null ? void 0 : o.initialCenterX) !== void 0 ? Number(o.initialCenterX) : m, M = (o == null ? void 0 : o.initialCenterY) !== void 0 ? Number(o.initialCenterY) : v, x = Math.max(0, c - (r || 0)), I = Math.min(1, Math.max(0, x / (s || 1)));
3107
+ const p = Yt(), c = typeof n == "number" && !isNaN(n) ? n : p, h = d.width || 300, l = d.height || 100, i = (o == null ? void 0 : o.keepStill) || "both", u = Number((o == null ? void 0 : o.toRepeatCount) ?? 5), y = Number((o == null ? void 0 : o.toScaleDown) ?? 0.3), m = Number((o == null ? void 0 : o.toCenterX) ?? 0.5), v = Number((o == null ? void 0 : o.toCenterY) ?? 0.5), b = (o == null ? void 0 : o.initialRepeatCount) !== void 0 ? Number(o.initialRepeatCount) : u, x = (o == null ? void 0 : o.initialScaleDown) !== void 0 ? Number(o.initialScaleDown) : 1, g = (o == null ? void 0 : o.initialCenterX) !== void 0 ? Number(o.initialCenterX) : m, M = (o == null ? void 0 : o.initialCenterY) !== void 0 ? Number(o.initialCenterY) : v, $ = Math.max(0, c - (r || 0)), I = Math.min(1, Math.max(0, $ / (s || 1)));
3108
3108
  let S = e + (a - e) * I;
3109
- h === "initial" ? S = 0 : h === "final" && (S = 1);
3109
+ i === "initial" ? S = 0 : i === "final" && (S = 1);
3110
3110
  const Y = Math.max(
3111
3111
  1,
3112
3112
  Math.round(W(S, [0, 1], [b, u]))
3113
3113
  ), N = W(
3114
3114
  S,
3115
3115
  [0, 1],
3116
- [$, y]
3117
- ), E = W(
3116
+ [x, y]
3117
+ ), V = W(
3118
3118
  S,
3119
3119
  [0, 1],
3120
3120
  [g, m]
@@ -3122,7 +3122,7 @@ const yr = ({ text: t, frame: n }) => {
3122
3122
  S,
3123
3123
  [0, 1],
3124
3124
  [M, v]
3125
- ), X = Ct(d), P = Array.from({ length: Y }, (L, V) => V);
3125
+ ), X = Gt(d), P = Array.from({ length: Y }, (G, E) => E);
3126
3126
  return /* @__PURE__ */ f(
3127
3127
  "div",
3128
3128
  {
@@ -3132,8 +3132,8 @@ const yr = ({ text: t, frame: n }) => {
3132
3132
  position: "relative",
3133
3133
  overflow: "hidden"
3134
3134
  },
3135
- children: P.map((L) => {
3136
- const V = Y > 1 ? L / (Y - 1) : 0, O = 1 - V * (1 - Math.max(0.01, N)), C = (E - 0.5) * i * V, B = (F - 0.5) * l * V;
3135
+ children: P.map((G) => {
3136
+ const E = Y > 1 ? G / (Y - 1) : 0, O = 1 - E * (1 - Math.max(0.01, N)), C = (V - 0.5) * h * E, B = (F - 0.5) * l * E;
3137
3137
  return /* @__PURE__ */ f(
3138
3138
  "span",
3139
3139
  {
@@ -3146,12 +3146,12 @@ const yr = ({ text: t, frame: n }) => {
3146
3146
  transformOrigin: "center center",
3147
3147
  lineHeight: 1,
3148
3148
  whiteSpace: "nowrap",
3149
- zIndex: L + 1,
3150
- opacity: L === 0 ? 1 : 0.85
3149
+ zIndex: G + 1,
3150
+ opacity: G === 0 ? 1 : 0.85
3151
3151
  },
3152
3152
  children: t
3153
3153
  },
3154
- `echo-${L}`
3154
+ `echo-${G}`
3155
3155
  );
3156
3156
  })
3157
3157
  }
@@ -3166,7 +3166,7 @@ const yr = ({ text: t, frame: n }) => {
3166
3166
  details: d,
3167
3167
  wiggleDetails: o
3168
3168
  }) => {
3169
- const p = wt(), c = typeof n == "number" && !isNaN(n) ? n : p, i = Number((o == null ? void 0 : o.wiggleX) ?? 20), l = Number((o == null ? void 0 : o.wiggleY) ?? 20), h = Number((o == null ? void 0 : o.speed) ?? 3), u = Number((o == null ? void 0 : o.angle) ?? 10), y = Number((o == null ? void 0 : o.seed) ?? 1), m = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialWiggleX) !== void 0 ? Number(o.initialWiggleX) : i, v = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialWiggleY) !== void 0 ? Number(o.initialWiggleY) : l, b = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialSpeed) !== void 0 ? Number(o.initialSpeed) : h, $ = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialAngle) !== void 0 ? Number(o.initialAngle) : u, g = Math.max(0, c - (r || 0)), M = Math.min(1, Math.max(0, g / (s || 1))), x = o != null && o.hasInitialValue ? m + (i - m) * M : i, I = o != null && o.hasInitialValue ? v + (l - v) * M : l, k = o != null && o.hasInitialValue ? b + (h - b) * M : h, S = o != null && o.hasInitialValue ? $ + (u - $) * M : u, Y = c * (k * 0.08), N = y * 12.345, E = Math.sin(Y + N) * Math.cos(Y * 0.65 + N) * x, F = Math.cos(Y * 0.85 + N) * Math.sin(Y * 1.15 + N) * I, X = Math.sin(Y * 0.9 + N * 1.35) * S, P = Ct(d);
3169
+ const p = Yt(), c = typeof n == "number" && !isNaN(n) ? n : p, h = Number((o == null ? void 0 : o.wiggleX) ?? 20), l = Number((o == null ? void 0 : o.wiggleY) ?? 20), i = Number((o == null ? void 0 : o.speed) ?? 3), u = Number((o == null ? void 0 : o.angle) ?? 10), y = Number((o == null ? void 0 : o.seed) ?? 1), m = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialWiggleX) !== void 0 ? Number(o.initialWiggleX) : h, v = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialWiggleY) !== void 0 ? Number(o.initialWiggleY) : l, b = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialSpeed) !== void 0 ? Number(o.initialSpeed) : i, x = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialAngle) !== void 0 ? Number(o.initialAngle) : u, g = Math.max(0, c - (r || 0)), M = Math.min(1, Math.max(0, g / (s || 1))), $ = o != null && o.hasInitialValue ? m + (h - m) * M : h, I = o != null && o.hasInitialValue ? v + (l - v) * M : l, k = o != null && o.hasInitialValue ? b + (i - b) * M : i, S = o != null && o.hasInitialValue ? x + (u - x) * M : u, Y = c * (k * 0.08), N = y * 12.345, V = Math.sin(Y + N) * Math.cos(Y * 0.65 + N) * $, F = Math.cos(Y * 0.85 + N) * Math.sin(Y * 1.15 + N) * I, X = Math.sin(Y * 0.9 + N * 1.35) * S, P = Gt(d);
3170
3170
  return /* @__PURE__ */ f(
3171
3171
  "div",
3172
3172
  {
@@ -3182,7 +3182,7 @@ const yr = ({ text: t, frame: n }) => {
3182
3182
  style: {
3183
3183
  ...P,
3184
3184
  position: "absolute",
3185
- left: `calc(50% + ${E}px)`,
3185
+ left: `calc(50% + ${V}px)`,
3186
3186
  top: `calc(50% + ${F}px)`,
3187
3187
  transform: `translate(-50%, -50%) rotate(${X}deg)`,
3188
3188
  transformOrigin: "center center",
@@ -3204,7 +3204,7 @@ const yr = ({ text: t, frame: n }) => {
3204
3204
  details: d,
3205
3205
  cardFlipDetails: o
3206
3206
  }) => {
3207
- const p = Ct(d);
3207
+ const p = Gt(d);
3208
3208
  return /* @__PURE__ */ f(
3209
3209
  bo,
3210
3210
  {
@@ -3229,24 +3229,24 @@ const yr = ({ text: t, frame: n }) => {
3229
3229
  details: d,
3230
3230
  noiseTileDetails: o
3231
3231
  }) => {
3232
- const p = wt(), c = typeof n == "number" && !isNaN(n) ? n : p, i = d.width || 300, l = d.height || 100, h = (o == null ? void 0 : o.keepStill) || "both", u = Number((o == null ? void 0 : o.toXRepetitions) ?? (o == null ? void 0 : o.xRepetitions) ?? 5), y = Number((o == null ? void 0 : o.toYRepetitions) ?? (o == null ? void 0 : o.yRepetitions) ?? 5), m = Number((o == null ? void 0 : o.toGapX) ?? (o == null ? void 0 : o.gapX) ?? 12), v = Number((o == null ? void 0 : o.toGapY) ?? (o == null ? void 0 : o.gapY) ?? 12), b = Number((o == null ? void 0 : o.toScale) ?? (o == null ? void 0 : o.scale) ?? 1), $ = Number((o == null ? void 0 : o.toNoiseScale) ?? (o == null ? void 0 : o.noiseScale) ?? 1.5), g = Number((o == null ? void 0 : o.toNoiseMoveX) ?? (o == null ? void 0 : o.noiseMoveX) ?? 0.6), M = Number((o == null ? void 0 : o.toNoiseMoveY) ?? (o == null ? void 0 : o.noiseMoveY) ?? 0.4), x = Number((o == null ? void 0 : o.toFps) ?? (o == null ? void 0 : o.fps) ?? 12), I = Number((o == null ? void 0 : o.toThreshold) ?? (o == null ? void 0 : o.threshold) ?? 0.45), k = Number((o == null ? void 0 : o.toSeedOffset) ?? (o == null ? void 0 : o.seedOffset) ?? 0), S = !!(o != null && o.hasInitialValue), Y = S ? Number((o == null ? void 0 : o.initialXRepetitions) ?? u) : u, N = S ? Number((o == null ? void 0 : o.initialYRepetitions) ?? y) : y, E = S ? Number((o == null ? void 0 : o.initialGapX) ?? m) : m, F = S ? Number((o == null ? void 0 : o.initialGapY) ?? v) : v, X = S ? Number((o == null ? void 0 : o.initialScale) ?? b) : b, P = S ? Number((o == null ? void 0 : o.initialNoiseScale) ?? $) : $, L = S ? Number((o == null ? void 0 : o.initialNoiseMoveX) ?? g) : g, V = S ? Number((o == null ? void 0 : o.initialNoiseMoveY) ?? M) : M, O = S ? Number((o == null ? void 0 : o.initialFps) ?? x) : x, C = S ? Number((o == null ? void 0 : o.initialThreshold) ?? I) : I, B = S ? Number((o == null ? void 0 : o.initialSeedOffset) ?? k) : k, z = Math.max(0, c - (r || 0)), et = Math.min(1, Math.max(0, z / (s || 1)));
3232
+ const p = Yt(), c = typeof n == "number" && !isNaN(n) ? n : p, h = d.width || 300, l = d.height || 100, i = (o == null ? void 0 : o.keepStill) || "both", u = Number((o == null ? void 0 : o.toXRepetitions) ?? (o == null ? void 0 : o.xRepetitions) ?? 5), y = Number((o == null ? void 0 : o.toYRepetitions) ?? (o == null ? void 0 : o.yRepetitions) ?? 5), m = Number((o == null ? void 0 : o.toGapX) ?? (o == null ? void 0 : o.gapX) ?? 12), v = Number((o == null ? void 0 : o.toGapY) ?? (o == null ? void 0 : o.gapY) ?? 12), b = Number((o == null ? void 0 : o.toScale) ?? (o == null ? void 0 : o.scale) ?? 1), x = Number((o == null ? void 0 : o.toNoiseScale) ?? (o == null ? void 0 : o.noiseScale) ?? 1.5), g = Number((o == null ? void 0 : o.toNoiseMoveX) ?? (o == null ? void 0 : o.noiseMoveX) ?? 0.6), M = Number((o == null ? void 0 : o.toNoiseMoveY) ?? (o == null ? void 0 : o.noiseMoveY) ?? 0.4), $ = Number((o == null ? void 0 : o.toFps) ?? (o == null ? void 0 : o.fps) ?? 12), I = Number((o == null ? void 0 : o.toThreshold) ?? (o == null ? void 0 : o.threshold) ?? 0.45), k = Number((o == null ? void 0 : o.toSeedOffset) ?? (o == null ? void 0 : o.seedOffset) ?? 0), S = !!(o != null && o.hasInitialValue), Y = S ? Number((o == null ? void 0 : o.initialXRepetitions) ?? u) : u, N = S ? Number((o == null ? void 0 : o.initialYRepetitions) ?? y) : y, V = S ? Number((o == null ? void 0 : o.initialGapX) ?? m) : m, F = S ? Number((o == null ? void 0 : o.initialGapY) ?? v) : v, X = S ? Number((o == null ? void 0 : o.initialScale) ?? b) : b, P = S ? Number((o == null ? void 0 : o.initialNoiseScale) ?? x) : x, G = S ? Number((o == null ? void 0 : o.initialNoiseMoveX) ?? g) : g, E = S ? Number((o == null ? void 0 : o.initialNoiseMoveY) ?? M) : M, O = S ? Number((o == null ? void 0 : o.initialFps) ?? $) : $, C = S ? Number((o == null ? void 0 : o.initialThreshold) ?? I) : I, B = S ? Number((o == null ? void 0 : o.initialSeedOffset) ?? k) : k, z = Math.max(0, c - (r || 0)), et = Math.min(1, Math.max(0, z / (s || 1)));
3233
3233
  let Z = e + (a - e) * et;
3234
- h === "initial" ? Z = 0 : h === "final" && (Z = 1);
3235
- const K = Math.max(1, Math.round(W(Z, [0, 1], [Y, u]))), T = Math.max(1, Math.round(W(Z, [0, 1], [N, y]))), ct = W(Z, [0, 1], [E, m]), lt = W(Z, [0, 1], [F, v]), G = W(Z, [0, 1], [X, b]), D = W(Z, [0, 1], [P, $]), U = W(Z, [0, 1], [L, g]), tt = W(Z, [0, 1], [V, M]), Q = Math.max(1, Math.round(W(Z, [0, 1], [O, x]))), A = W(Z, [0, 1], [C, I]), ut = W(Z, [0, 1], [B, k]), vt = Ct(d), it = Math.floor(z * (Q / 30)), J = (K - 1) / 2, nt = (T - 1) / 2, ot = [];
3236
- for (let st = 0; st < T; st++)
3237
- for (let at = 0; at < K; at++) {
3238
- const ft = at / Math.max(1, K) * D, bt = st / Math.max(1, T) * D, St = it * 0.1 + ut, pt = Go(
3239
- ft + it * U * 0.05,
3240
- bt + it * tt * 0.05,
3241
- St,
3242
- ut
3243
- ), Nt = at === Math.floor(J) && st === Math.floor(nt) || pt >= A, Yt = at - J, Ft = st - nt, Vt = ct / 100 * i, Ot = lt / 100 * l, Et = Yt * (i * G + Vt), Bt = Ft * (l * G + Ot);
3244
- ot.push({
3245
- col: at,
3246
- row: st,
3247
- visible: Nt,
3248
- posX: Et,
3249
- posY: Bt
3234
+ i === "initial" ? Z = 0 : i === "final" && (Z = 1);
3235
+ const J = Math.max(1, Math.round(W(Z, [0, 1], [Y, u]))), D = Math.max(1, Math.round(W(Z, [0, 1], [N, y]))), st = W(Z, [0, 1], [V, m]), mt = W(Z, [0, 1], [F, v]), L = W(Z, [0, 1], [X, b]), tt = W(Z, [0, 1], [P, x]), U = W(Z, [0, 1], [G, g]), ot = W(Z, [0, 1], [E, M]), A = Math.max(1, Math.round(W(Z, [0, 1], [O, $]))), Q = W(Z, [0, 1], [C, I]), lt = W(Z, [0, 1], [B, k]), Mt = Gt(d), pt = Math.floor(z * (A / 30)), q = (J - 1) / 2, rt = (D - 1) / 2, nt = [];
3236
+ for (let dt = 0; dt < D; dt++)
3237
+ for (let it = 0; it < J; it++) {
3238
+ const yt = it / Math.max(1, J) * tt, xt = dt / Math.max(1, D) * tt, wt = pt * 0.1 + lt, ft = Lo(
3239
+ yt + pt * U * 0.05,
3240
+ xt + pt * ot * 0.05,
3241
+ wt,
3242
+ lt
3243
+ ), Ft = it === Math.floor(q) && dt === Math.floor(rt) || ft >= Q, Rt = it - q, Xt = dt - rt, Vt = st / 100 * h, Ct = mt / 100 * l, Bt = Rt * (h * L + Vt), Ot = Xt * (l * L + Ct);
3244
+ nt.push({
3245
+ col: it,
3246
+ row: dt,
3247
+ visible: Ft,
3248
+ posX: Bt,
3249
+ posY: Ot
3250
3250
  });
3251
3251
  }
3252
3252
  return /* @__PURE__ */ f(
@@ -3258,22 +3258,22 @@ const yr = ({ text: t, frame: n }) => {
3258
3258
  position: "relative",
3259
3259
  overflow: "visible"
3260
3260
  },
3261
- children: ot.map((st) => st.visible ? /* @__PURE__ */ f(
3261
+ children: nt.map((dt) => dt.visible ? /* @__PURE__ */ f(
3262
3262
  "span",
3263
3263
  {
3264
3264
  style: {
3265
- ...vt,
3265
+ ...Mt,
3266
3266
  position: "absolute",
3267
- left: `calc(50% + ${st.posX}px)`,
3268
- top: `calc(50% + ${st.posY}px)`,
3269
- transform: `translate(-50%, -50%) scale(${G})`,
3267
+ left: `calc(50% + ${dt.posX}px)`,
3268
+ top: `calc(50% + ${dt.posY}px)`,
3269
+ transform: `translate(-50%, -50%) scale(${L})`,
3270
3270
  transformOrigin: "center center",
3271
3271
  lineHeight: 1,
3272
3272
  whiteSpace: "nowrap"
3273
3273
  },
3274
3274
  children: t
3275
3275
  },
3276
- `text-tile-${st.col}-${st.row}`
3276
+ `text-tile-${dt.col}-${dt.row}`
3277
3277
  ) : null)
3278
3278
  }
3279
3279
  );
@@ -3303,7 +3303,7 @@ const yr = ({ text: t, frame: n }) => {
3303
3303
  return "";
3304
3304
  }).join(" ");
3305
3305
  }, [a]);
3306
- return /* @__PURE__ */ yt(
3306
+ return /* @__PURE__ */ vt(
3307
3307
  "div",
3308
3308
  {
3309
3309
  style: {
@@ -3341,28 +3341,28 @@ const yr = ({ text: t, frame: n }) => {
3341
3341
  durationInFrames: a
3342
3342
  }) => {
3343
3343
  const d = (y, m, v) => {
3344
- const $ = document.createElement("canvas").getContext("2d");
3345
- if (!$) return [];
3346
- $.font = `${v}px ${r.fontFamily || "Arial, sans-serif"}`;
3344
+ const x = document.createElement("canvas").getContext("2d");
3345
+ if (!x) return [];
3346
+ x.font = `${v}px ${r.fontFamily || "Arial, sans-serif"}`;
3347
3347
  const g = y.split(" ");
3348
- let M = [], x = "";
3348
+ let M = [], $ = "";
3349
3349
  return g.forEach((I) => {
3350
- const k = x ? `${x} ${I}` : I;
3351
- $.measureText(k).width > m ? (M.push(x), x = I) : x = k;
3352
- }), x && M.push(x), M;
3353
- }, o = (a - s) / e, p = r.width || 300, c = d(t, p, r.fontSize), i = s / e, l = 0.5, h = i / c.length, u = c.map((y, m) => {
3354
- const v = o + m * h * (1 - l) * 1.5, b = v + h, $ = v * e, g = Math.min(
3350
+ const k = $ ? `${$} ${I}` : I;
3351
+ x.measureText(k).width > m ? (M.push($), $ = I) : $ = k;
3352
+ }), $ && M.push($), M;
3353
+ }, o = (a - s) / e, p = r.width || 300, c = d(t, p, r.fontSize), h = s / e, l = 0.5, i = h / c.length, u = c.map((y, m) => {
3354
+ const v = o + m * i * (1 - l) * 1.5, b = v + i, x = v * e, g = Math.min(
3355
3355
  b * e,
3356
- (o + i) * e
3357
- ), M = W(n, [$, g], [0, 1], {
3356
+ (o + h) * e
3357
+ ), M = W(n, [x, g], [0, 1], {
3358
3358
  easing: w.in(w.cubic),
3359
3359
  extrapolateLeft: "clamp",
3360
3360
  extrapolateRight: "clamp"
3361
- }), x = W(M, [0, 1], [0, -r.fontSize]);
3361
+ }), $ = W(M, [0, 1], [0, -r.fontSize]);
3362
3362
  return {
3363
3363
  text: y,
3364
3364
  progress: M,
3365
- y: x,
3365
+ y: $,
3366
3366
  opacity: 1 - M
3367
3367
  };
3368
3368
  });
@@ -3410,11 +3410,11 @@ const yr = ({ text: t, frame: n }) => {
3410
3410
  }) => {
3411
3411
  const d = e - r, p = W(n, [d, d + r], [0, 1], {
3412
3412
  extrapolateRight: "clamp"
3413
- }), c = s.width, i = s.height, l = W(
3413
+ }), c = s.width, h = s.height, l = W(
3414
3414
  Math.round(p * 100),
3415
3415
  [0, 100 - a / 10],
3416
3416
  [c, 0]
3417
- ), h = W(p, [0, 1], [0, c * 2]);
3417
+ ), i = W(p, [0, 1], [0, c * 2]);
3418
3418
  return /* @__PURE__ */ f(
3419
3419
  "div",
3420
3420
  {
@@ -3432,7 +3432,7 @@ const yr = ({ text: t, frame: n }) => {
3432
3432
  {
3433
3433
  style: {
3434
3434
  width: l,
3435
- height: i,
3435
+ height: h,
3436
3436
  overflow: "hidden",
3437
3437
  display: "flex",
3438
3438
  position: "relative",
@@ -3452,7 +3452,7 @@ const yr = ({ text: t, frame: n }) => {
3452
3452
  width: s.width,
3453
3453
  height: s.height,
3454
3454
  color: s.color === "white" || s.color.includes("fff") ? "black" : s.color,
3455
- transform: `translateX(${h}px)`
3455
+ transform: `translateX(${i}px)`
3456
3456
  },
3457
3457
  children: t
3458
3458
  }
@@ -3463,18 +3463,18 @@ const yr = ({ text: t, frame: n }) => {
3463
3463
  );
3464
3464
  }, Nr = {
3465
3465
  sunnyMorningsTextAnimationIn: Cn,
3466
- dominoDreamsTextAnimationIn: Ln,
3467
- greatThinkersTextAnimationIn: Gn,
3466
+ dominoDreamsTextAnimationIn: Gn,
3467
+ greatThinkersTextAnimationIn: Ln,
3468
3468
  beautifulQuestionsTextAnimationIn: zn,
3469
3469
  madeWithLoveTextAnimationIn: jn,
3470
- realityIsBrokenTextAnimationIn: An,
3470
+ realityIsBrokenTextAnimationIn: Qn,
3471
3471
  dropTextAnimationIn: tr,
3472
3472
  descompressTextAnimationIn: or
3473
3473
  }, Yr = {
3474
3474
  animatedTextOut: Hn,
3475
3475
  sunnyMorningsTextAnimationOut: _n,
3476
3476
  dominoDreamsTextAnimationOut: Zn,
3477
- beautifulQuestionsTextAnimationOut: Qn,
3477
+ beautifulQuestionsTextAnimationOut: An,
3478
3478
  madeWithLoveTextAnimationOut: Un,
3479
3479
  realityIsBrokenTextAnimationOut: Kn,
3480
3480
  greatThinkersTextAnimationOut: Jn,
@@ -3499,40 +3499,40 @@ const yr = ({ text: t, frame: n }) => {
3499
3499
  textAnimationModeLoop: o = "letter",
3500
3500
  textAnimationModeTimed: p = "all",
3501
3501
  basicCharAnimationsIn: c,
3502
- basicCharAnimationsOut: i,
3502
+ basicCharAnimationsOut: h,
3503
3503
  basicCharAnimationsLoop: l,
3504
- basicCharAnimationsTimed: h,
3504
+ basicCharAnimationsTimed: i,
3505
3505
  loopComposition: u,
3506
3506
  details: y,
3507
3507
  frame: m,
3508
3508
  animationTextInFrames: v,
3509
3509
  animationTextOutFrames: b,
3510
- animationTextLoopFrames: $,
3510
+ animationTextLoopFrames: x,
3511
3511
  animationTextTimedFrames: g = 0,
3512
3512
  durationInFrames: M,
3513
- animationFonts: x
3513
+ animationFonts: $
3514
3514
  }) => {
3515
- var gt, Nt, Yt, Ft, Vt, Ot, Et, Bt, Gt, zt, jt, Ht, j, dt;
3516
- const I = v, k = M - b, S = r ? I >= m : !1, Y = s ? m >= k : !1, N = c && c.length > 0, E = i && i.length > 0, F = l && l.length > 0, X = h && h.length > 0, P = ((gt = c == null ? void 0 : c[0]) == null ? void 0 : gt.durationInFrames) || v, L = ((Nt = c == null ? void 0 : c[0]) == null ? void 0 : Nt.delay) || 0, V = P + L, O = ((Yt = i == null ? void 0 : i[0]) == null ? void 0 : Yt.durationInFrames) || b, C = ((Ft = i == null ? void 0 : i[0]) == null ? void 0 : Ft.delay) || 0, B = O + C, z = Math.max(0, M - B), et = ((Vt = h == null ? void 0 : h[0]) == null ? void 0 : Vt.delay) || 0, q = et, Z = et + (((Ot = h == null ? void 0 : h[0]) == null ? void 0 : Ot.durationInFrames) || g), K = N && !r && (F ? m < V : m < z), T = E && !s && m >= z, ct = X && !K && !T && m >= q && m < Z, lt = F && !e && !K && !T && !ct, D = ((H, _, R) => {
3517
- const rt = document.createElement("canvas").getContext("2d");
3518
- if (!rt) return [];
3519
- rt.font = `${R}px Arial`;
3520
- const kt = [], Rt = H.split(`
3515
+ var $t, Ft, Rt, Xt, Vt, Ct, Bt, Ot, zt, jt, Ht, _t, j, ht;
3516
+ const I = v, k = M - b, S = r ? I >= m : !1, Y = s ? m >= k : !1, N = c && c.length > 0, V = h && h.length > 0, F = l && l.length > 0, X = i && i.length > 0, P = (($t = c == null ? void 0 : c[0]) == null ? void 0 : $t.durationInFrames) || v, G = ((Ft = c == null ? void 0 : c[0]) == null ? void 0 : Ft.delay) || 0, E = P + G, O = ((Rt = h == null ? void 0 : h[0]) == null ? void 0 : Rt.durationInFrames) || b, C = ((Xt = h == null ? void 0 : h[0]) == null ? void 0 : Xt.delay) || 0, B = O + C, z = Math.max(0, M - B), et = ((Vt = i == null ? void 0 : i[0]) == null ? void 0 : Vt.delay) || 0, T = et, Z = et + (((Ct = i == null ? void 0 : i[0]) == null ? void 0 : Ct.durationInFrames) || g), J = N && !r && (F ? m < E : m < z), D = V && !s && m >= z, st = X && !J && !D && m >= T && m <= Z, mt = F && !e && !J && !D && !st, tt = ((H, _, R) => {
3517
+ const at = document.createElement("canvas").getContext("2d");
3518
+ if (!at) return [];
3519
+ at.font = `${R}px Arial`;
3520
+ const ut = [], bt = H.split(`
3521
3521
  `);
3522
- for (const Qt of Rt) {
3523
- if (Qt.trim() === "") {
3524
- kt.push("");
3522
+ for (const ct of bt) {
3523
+ if (ct.trim() === "") {
3524
+ ut.push("");
3525
3525
  continue;
3526
3526
  }
3527
- const _t = Qt.split(" ");
3528
- let Xt = "";
3529
- for (const so of _t) {
3530
- const $o = Xt ? `${Xt} ${so}` : so;
3531
- rt.measureText($o).width > _ ? (Xt && kt.push(Xt), Xt = so) : Xt = $o;
3527
+ const Zt = ct.split(" ");
3528
+ let Pt = "";
3529
+ for (const so of Zt) {
3530
+ const $o = Pt ? `${Pt} ${so}` : so;
3531
+ at.measureText($o).width > _ ? (Pt && ut.push(Pt), Pt = so) : Pt = $o;
3532
3532
  }
3533
- Xt && kt.push(Xt);
3533
+ Pt && ut.push(Pt);
3534
3534
  }
3535
- return kt;
3535
+ return ut;
3536
3536
  })(t, y.width, y.fontSize);
3537
3537
  if (r === "typeWriterTextAnimationIn" && S)
3538
3538
  return /* @__PURE__ */ f(
@@ -3546,7 +3546,7 @@ const yr = ({ text: t, frame: n }) => {
3546
3546
  );
3547
3547
  if (r === "backgroundTextAnimationIn" && S)
3548
3548
  return /* @__PURE__ */ f(
3549
- hr,
3549
+ ir,
3550
3550
  {
3551
3551
  text: t,
3552
3552
  frame: m,
@@ -3556,7 +3556,7 @@ const yr = ({ text: t, frame: n }) => {
3556
3556
  );
3557
3557
  if (r === "soundWaveTextAnimationIn" && S)
3558
3558
  return /* @__PURE__ */ f(
3559
- ir,
3559
+ hr,
3560
3560
  {
3561
3561
  text: t,
3562
3562
  frame: m,
@@ -3604,7 +3604,7 @@ const yr = ({ text: t, frame: n }) => {
3604
3604
  text: t,
3605
3605
  frame: m,
3606
3606
  details: y,
3607
- animationFonts: x
3607
+ animationFonts: $
3608
3608
  }
3609
3609
  );
3610
3610
  if (e === "shakeTextAnimationLoop")
@@ -3615,66 +3615,81 @@ const yr = ({ text: t, frame: n }) => {
3615
3615
  return /* @__PURE__ */ f(gr, { text: t, frame: m });
3616
3616
  if (e === "textGridMarqueeTextAnimationLoop" || e === "textGridMarquee") {
3617
3617
  const R = (u == null ? void 0 : u.find(
3618
- (rt) => rt.property === "textGridMarqueeTextAnimationLoop" || rt.property === "textGridMarquee" || rt.id === "textGridMarquee"
3618
+ (ct) => ct.property === "textGridMarqueeTextAnimationLoop" || ct.property === "textGridMarquee" || ct.id === "textGridMarquee"
3619
3619
  )) || (l == null ? void 0 : l.find(
3620
- (rt) => rt.property === "textGridMarqueeTextAnimationLoop" || rt.property === "textGridMarquee" || rt.id === "textGridMarquee"
3621
- )), ht = R == null ? void 0 : R.details;
3622
- return /* @__PURE__ */ f(
3623
- vr,
3624
- {
3625
- text: t,
3626
- frame: m,
3627
- delay: R == null ? void 0 : R.delay,
3628
- durationInFrames: R == null ? void 0 : R.durationInFrames,
3629
- from: R == null ? void 0 : R.from,
3630
- to: R == null ? void 0 : R.to,
3631
- details: y,
3632
- fps: n,
3633
- marqueeDetails: ht
3634
- }
3635
- );
3620
+ (ct) => ct.property === "textGridMarqueeTextAnimationLoop" || ct.property === "textGridMarquee" || ct.id === "textGridMarquee"
3621
+ )), K = (R == null ? void 0 : R.delay) || 0, at = (R == null ? void 0 : R.durationInFrames) || (x > 0 ? x : M), ut = K + at, bt = m >= K && m <= ut;
3622
+ if (console.log(
3623
+ `[SpecialEffect Marquee] frame: ${m.toFixed(2)}, range: [${K}, ${ut}], active: ${bt}`
3624
+ ), bt) {
3625
+ const ct = R == null ? void 0 : R.details;
3626
+ return /* @__PURE__ */ f(
3627
+ vr,
3628
+ {
3629
+ text: t,
3630
+ frame: m,
3631
+ delay: K,
3632
+ durationInFrames: at,
3633
+ from: R == null ? void 0 : R.from,
3634
+ to: R == null ? void 0 : R.to,
3635
+ details: y,
3636
+ fps: n,
3637
+ marqueeDetails: ct
3638
+ }
3639
+ );
3640
+ }
3636
3641
  }
3637
3642
  if (e === "inwardEchoes") {
3638
3643
  const R = (u == null ? void 0 : u.find(
3639
- (rt) => rt.property === "inwardEchoes" || rt.id === "inwardEchoes"
3644
+ (ct) => ct.property === "inwardEchoes" || ct.id === "inwardEchoes"
3640
3645
  )) || (l == null ? void 0 : l.find(
3641
- (rt) => rt.property === "inwardEchoes" || rt.id === "inwardEchoes"
3642
- )), ht = R == null ? void 0 : R.details;
3643
- return /* @__PURE__ */ f(
3644
- xr,
3645
- {
3646
- text: t,
3647
- frame: m,
3648
- delay: R == null ? void 0 : R.delay,
3649
- durationInFrames: (R == null ? void 0 : R.durationInFrames) || M,
3650
- from: R == null ? void 0 : R.from,
3651
- to: R == null ? void 0 : R.to,
3652
- details: y,
3653
- fps: n,
3654
- echoesDetails: ht
3655
- }
3656
- );
3646
+ (ct) => ct.property === "inwardEchoes" || ct.id === "inwardEchoes"
3647
+ )), K = (R == null ? void 0 : R.delay) || 0, at = (R == null ? void 0 : R.durationInFrames) || (x > 0 ? x : M), ut = K + at, bt = m >= K && m <= ut;
3648
+ if (console.log(
3649
+ `[SpecialEffect InwardEchoes] frame: ${m.toFixed(2)}, range: [${K}, ${ut}], active: ${bt}`
3650
+ ), bt) {
3651
+ const ct = R == null ? void 0 : R.details;
3652
+ return /* @__PURE__ */ f(
3653
+ xr,
3654
+ {
3655
+ text: t,
3656
+ frame: m,
3657
+ delay: K,
3658
+ durationInFrames: at,
3659
+ from: R == null ? void 0 : R.from,
3660
+ to: R == null ? void 0 : R.to,
3661
+ details: y,
3662
+ fps: n,
3663
+ echoesDetails: ct
3664
+ }
3665
+ );
3666
+ }
3657
3667
  }
3658
3668
  if (e === "wiggle") {
3659
3669
  const R = (u == null ? void 0 : u.find(
3660
- (rt) => rt.property === "wiggle" || rt.id === "wiggle"
3670
+ (ct) => ct.property === "wiggle" || ct.id === "wiggle"
3661
3671
  )) || (l == null ? void 0 : l.find(
3662
- (rt) => rt.property === "wiggle" || rt.id === "wiggle"
3663
- )), ht = R == null ? void 0 : R.details;
3664
- return /* @__PURE__ */ f(
3665
- $r,
3666
- {
3667
- text: t,
3668
- frame: m,
3669
- delay: R == null ? void 0 : R.delay,
3670
- durationInFrames: R == null ? void 0 : R.durationInFrames,
3671
- from: R == null ? void 0 : R.from,
3672
- to: R == null ? void 0 : R.to,
3673
- details: y,
3674
- fps: n,
3675
- wiggleDetails: ht
3676
- }
3677
- );
3672
+ (ct) => ct.property === "wiggle" || ct.id === "wiggle"
3673
+ )), K = (R == null ? void 0 : R.delay) || 0, at = (R == null ? void 0 : R.durationInFrames) || (x > 0 ? x : M), ut = K + at, bt = m >= K && m <= ut;
3674
+ if (console.log(
3675
+ `[SpecialEffect Wiggle] frame: ${m.toFixed(2)}, range: [${K}, ${ut}], active: ${bt}`
3676
+ ), bt) {
3677
+ const ct = R == null ? void 0 : R.details;
3678
+ return /* @__PURE__ */ f(
3679
+ $r,
3680
+ {
3681
+ text: t,
3682
+ frame: m,
3683
+ delay: K,
3684
+ durationInFrames: at,
3685
+ from: R == null ? void 0 : R.from,
3686
+ to: R == null ? void 0 : R.to,
3687
+ details: y,
3688
+ fps: n,
3689
+ wiggleDetails: ct
3690
+ }
3691
+ );
3692
+ }
3678
3693
  }
3679
3694
  const H = (u == null ? void 0 : u.find(
3680
3695
  (R) => R.property === "cardFlip" || R.id === "cardFlip"
@@ -3682,21 +3697,26 @@ const yr = ({ text: t, frame: n }) => {
3682
3697
  (R) => R.property === "cardFlip" || R.id === "cardFlip"
3683
3698
  ));
3684
3699
  if (e === "cardFlip" || H) {
3685
- const R = H == null ? void 0 : H.details;
3686
- return /* @__PURE__ */ f(
3687
- Mr,
3688
- {
3689
- text: t,
3690
- frame: m,
3691
- delay: H == null ? void 0 : H.delay,
3692
- durationInFrames: (H == null ? void 0 : H.durationInFrames) || M,
3693
- from: H == null ? void 0 : H.from,
3694
- to: H == null ? void 0 : H.to,
3695
- details: y,
3696
- fps: n,
3697
- cardFlipDetails: R
3698
- }
3699
- );
3700
+ const R = (H == null ? void 0 : H.delay) || 0, K = (H == null ? void 0 : H.durationInFrames) || (x > 0 ? x : M), at = R + K, ut = m >= R && m <= at;
3701
+ if (console.log(
3702
+ `[SpecialEffect CardFlip] frame: ${m.toFixed(2)}, range: [${R}, ${at}], active: ${ut}`
3703
+ ), ut) {
3704
+ const bt = H == null ? void 0 : H.details;
3705
+ return /* @__PURE__ */ f(
3706
+ Mr,
3707
+ {
3708
+ text: t,
3709
+ frame: m,
3710
+ delay: R,
3711
+ durationInFrames: K,
3712
+ from: H == null ? void 0 : H.from,
3713
+ to: H == null ? void 0 : H.to,
3714
+ details: y,
3715
+ fps: n,
3716
+ cardFlipDetails: bt
3717
+ }
3718
+ );
3719
+ }
3700
3720
  }
3701
3721
  const _ = (u == null ? void 0 : u.find(
3702
3722
  (R) => R.property === "noiseTile" || R.id === "noiseTile"
@@ -3704,21 +3724,26 @@ const yr = ({ text: t, frame: n }) => {
3704
3724
  (R) => R.property === "noiseTile" || R.id === "noiseTile"
3705
3725
  ));
3706
3726
  if (e === "noiseTile" || _) {
3707
- const R = _ == null ? void 0 : _.details;
3708
- return /* @__PURE__ */ f(
3709
- Sr,
3710
- {
3711
- text: t,
3712
- frame: m,
3713
- delay: _ == null ? void 0 : _.delay,
3714
- durationInFrames: (_ == null ? void 0 : _.durationInFrames) || M,
3715
- from: _ == null ? void 0 : _.from,
3716
- to: _ == null ? void 0 : _.to,
3717
- details: y,
3718
- fps: n,
3719
- noiseTileDetails: R
3720
- }
3721
- );
3727
+ const R = (_ == null ? void 0 : _.delay) || 0, K = (_ == null ? void 0 : _.durationInFrames) || (x > 0 ? x : M), at = R + K, ut = m >= R && m <= at;
3728
+ if (console.log(
3729
+ `[SpecialEffect NoiseTile] frame: ${m.toFixed(2)}, range: [${R}, ${at}], active: ${ut}`
3730
+ ), ut) {
3731
+ const bt = _ == null ? void 0 : _.details;
3732
+ return /* @__PURE__ */ f(
3733
+ Sr,
3734
+ {
3735
+ text: t,
3736
+ frame: m,
3737
+ delay: R,
3738
+ durationInFrames: K,
3739
+ from: _ == null ? void 0 : _.from,
3740
+ to: _ == null ? void 0 : _.to,
3741
+ details: y,
3742
+ fps: n,
3743
+ noiseTileDetails: bt
3744
+ }
3745
+ );
3746
+ }
3722
3747
  }
3723
3748
  }
3724
3749
  if (s === "typeWriterTextAnimationOut" && Y)
@@ -3756,17 +3781,17 @@ const yr = ({ text: t, frame: n }) => {
3756
3781
  fps: n
3757
3782
  }
3758
3783
  );
3759
- const U = D.reduce(
3784
+ const U = tt.reduce(
3760
3785
  (H, _) => H + (_ === "" ? 1 : _.length),
3761
3786
  0
3762
- ), tt = D.reduce(
3787
+ ), ot = tt.reduce(
3763
3788
  (H, _) => H + (_.trim() === "" ? 0 : _.split(/\s+/).length),
3764
3789
  0
3765
- ), Q = D.length, A = Nr[r], ut = Yr[s], vt = Fr[e], it = ((Et = c == null ? void 0 : c[0]) == null ? void 0 : Et.textAnimationMode) || ((Bt = i == null ? void 0 : i[0]) == null ? void 0 : Bt.textAnimationMode) || ((Gt = l == null ? void 0 : l[0]) == null ? void 0 : Gt.textAnimationMode) || ((zt = h == null ? void 0 : h[0]) == null ? void 0 : zt.textAnimationMode) || (r ? a : void 0) || (s ? d : void 0) || (e ? o : void 0) || a || o || "letter", J = S ? a : Y ? d : K ? c[0].textAnimationMode || it : T ? i[0].textAnimationMode || it : ct ? h[0].textAnimationMode || it : lt && l[0].textAnimationMode || it, nt = K ? c : T ? i : ct ? h : lt ? l : [], ot = (H, _, R, ht) => {
3766
- var rt, kt;
3767
- if (S && A)
3790
+ ), A = tt.length, Q = Nr[r], lt = Yr[s], Mt = Fr[e], pt = ((Bt = c == null ? void 0 : c[0]) == null ? void 0 : Bt.textAnimationMode) || ((Ot = h == null ? void 0 : h[0]) == null ? void 0 : Ot.textAnimationMode) || ((zt = l == null ? void 0 : l[0]) == null ? void 0 : zt.textAnimationMode) || ((jt = i == null ? void 0 : i[0]) == null ? void 0 : jt.textAnimationMode) || (r ? a : void 0) || (s ? d : void 0) || (e ? o : void 0) || a || o || "letter", q = S ? a : Y ? d : J ? c[0].textAnimationMode || pt : D ? h[0].textAnimationMode || pt : st ? i[0].textAnimationMode || pt : mt && l[0].textAnimationMode || pt, rt = J ? c : D ? h : st ? i : mt ? l : [], nt = (H, _, R, K) => {
3791
+ var at, ut;
3792
+ if (S && Q)
3768
3793
  return /* @__PURE__ */ f(
3769
- A,
3794
+ Q,
3770
3795
  {
3771
3796
  char: H,
3772
3797
  index: _,
@@ -3776,11 +3801,11 @@ const yr = ({ text: t, frame: n }) => {
3776
3801
  animationTextInFrames: v,
3777
3802
  details: y
3778
3803
  },
3779
- ht
3804
+ K
3780
3805
  );
3781
- if (Y && ut)
3806
+ if (Y && lt)
3782
3807
  return /* @__PURE__ */ f(
3783
- ut,
3808
+ lt,
3784
3809
  {
3785
3810
  char: H,
3786
3811
  index: _,
@@ -3791,110 +3816,110 @@ const yr = ({ text: t, frame: n }) => {
3791
3816
  durationInFrames: M,
3792
3817
  details: y
3793
3818
  },
3794
- ht
3819
+ K
3795
3820
  );
3796
- if (e && !S && !Y && vt)
3821
+ if (e && !S && !Y && Mt)
3797
3822
  return /* @__PURE__ */ f(
3798
- vt,
3823
+ Mt,
3799
3824
  {
3800
3825
  char: H,
3801
3826
  index: _,
3802
3827
  frame: m,
3803
3828
  textLength: R,
3804
3829
  fps: n,
3805
- animationTextLoopFrames: $,
3830
+ animationTextLoopFrames: x,
3806
3831
  details: y
3807
3832
  },
3808
- ht
3833
+ K
3809
3834
  );
3810
- if (nt.length > 0) {
3811
- const Rt = K ? P : T ? O : ct ? ((rt = h == null ? void 0 : h[0]) == null ? void 0 : rt.durationInFrames) || g : ((kt = l == null ? void 0 : l[0]) == null ? void 0 : kt.durationInFrames) || $, Qt = T ? m - z : ct ? m - q : m, _t = nt[0], Xt = K ? "in" : T ? "out" : ct ? "timed" : "loop";
3835
+ if (rt.length > 0) {
3836
+ const bt = J ? P : D ? O : st ? ((at = i == null ? void 0 : i[0]) == null ? void 0 : at.durationInFrames) || g : ((ut = l == null ? void 0 : l[0]) == null ? void 0 : ut.durationInFrames) || x, ct = D ? m - z : st ? m - T : m, Zt = rt[0], Pt = J ? "in" : D ? "out" : st ? "timed" : "loop";
3812
3837
  return /* @__PURE__ */ f(
3813
3838
  On,
3814
3839
  {
3815
3840
  char: H,
3816
3841
  index: _,
3817
- frame: Qt,
3842
+ frame: ct,
3818
3843
  fps: n,
3819
3844
  textLength: R,
3820
- animationTextFrames: Rt,
3821
- property: _t.property,
3822
- from: _t.from,
3823
- to: _t.to,
3824
- easing: _t.easing,
3825
- delay: T ? 0 : _t.delay,
3845
+ animationTextFrames: bt,
3846
+ property: Zt.property,
3847
+ from: Zt.from,
3848
+ to: Zt.to,
3849
+ easing: Zt.easing,
3850
+ delay: D ? 0 : Zt.delay,
3826
3851
  details: y,
3827
- phase: Xt
3852
+ phase: Pt
3828
3853
  },
3829
- ht
3854
+ K
3830
3855
  );
3831
3856
  }
3832
- return /* @__PURE__ */ f("span", { children: H === "" ? " " : H }, ht);
3857
+ return /* @__PURE__ */ f("span", { children: H === "" ? " " : H }, K);
3833
3858
  };
3834
- let at = (y == null ? void 0 : y.textAlign) === "right";
3835
- const ft = c && c.length > 0 ? c[0] : i && i.length > 0 ? i[0] : h && h.length > 0 ? h[0] : l && l.length > 0 ? l[0] : null, bt = ft != null && ft.order ? ft : (jt = c == null ? void 0 : c[0]) != null && jt.order ? c[0] : (Ht = i == null ? void 0 : i[0]) != null && Ht.order ? i[0] : (j = h == null ? void 0 : h[0]) != null && j.order ? h[0] : (dt = l == null ? void 0 : l[0]) != null && dt.order ? l[0] : null;
3836
- if (bt != null && bt.order)
3837
- at = bt.order === "backward";
3838
- else if (ft && ft.property === "translateX") {
3839
- const H = Number(ft.from), _ = Number(ft.to);
3840
- !isNaN(H) && !isNaN(_) && (at = H < _);
3859
+ let it = (y == null ? void 0 : y.textAlign) === "right";
3860
+ const yt = c && c.length > 0 ? c[0] : h && h.length > 0 ? h[0] : i && i.length > 0 ? i[0] : l && l.length > 0 ? l[0] : null, xt = yt != null && yt.order ? yt : (Ht = c == null ? void 0 : c[0]) != null && Ht.order ? c[0] : (_t = h == null ? void 0 : h[0]) != null && _t.order ? h[0] : (j = i == null ? void 0 : i[0]) != null && j.order ? i[0] : (ht = l == null ? void 0 : l[0]) != null && ht.order ? l[0] : null;
3861
+ if (xt != null && xt.order)
3862
+ it = xt.order === "backward";
3863
+ else if (yt && yt.property === "translateX") {
3864
+ const H = Number(yt.from), _ = Number(yt.to);
3865
+ !isNaN(H) && !isNaN(_) && (it = H < _);
3841
3866
  }
3842
- if (J === "all")
3843
- return /* @__PURE__ */ f(Mt, { children: D.map((H, _) => /* @__PURE__ */ f("div", { children: (H === "" ? [" "] : H.split("")).map(
3844
- (R, ht) => ot(R, 0, 1, `${_}-${ht}`)
3867
+ if (q === "all")
3868
+ return /* @__PURE__ */ f(kt, { children: tt.map((H, _) => /* @__PURE__ */ f("div", { children: (H === "" ? [" "] : H.split("")).map(
3869
+ (R, K) => nt(R, 0, 1, `${_}-${K}`)
3845
3870
  ) }, _)) });
3846
- if (J === "word") {
3871
+ if (q === "word") {
3847
3872
  let H = 0;
3848
- const _ = D.map((R, ht) => {
3873
+ const _ = tt.map((R, K) => {
3849
3874
  if (R.trim() === "")
3850
3875
  return {
3851
- rowIndex: ht,
3876
+ rowIndex: K,
3852
3877
  tokens: []
3853
3878
  };
3854
- const kt = R.split(/(\s+)/).map((Rt) => /^\s+$/.test(Rt) ? { token: Rt, wordIndex: null } : { token: Rt, wordIndex: H++ });
3855
- return { rowIndex: ht, tokens: kt };
3879
+ const ut = R.split(/(\s+)/).map((bt) => /^\s+$/.test(bt) ? { token: bt, wordIndex: null } : { token: bt, wordIndex: H++ });
3880
+ return { rowIndex: K, tokens: ut };
3856
3881
  });
3857
- return /* @__PURE__ */ f(Mt, { children: _.map(({ rowIndex: R, tokens: ht }) => ht.length === 0 ? /* @__PURE__ */ f("div", { children: " " }, R) : /* @__PURE__ */ f("div", { children: ht.map(({ token: rt, wordIndex: kt }, Rt) => {
3858
- if (kt === null)
3882
+ return /* @__PURE__ */ f(kt, { children: _.map(({ rowIndex: R, tokens: K }) => K.length === 0 ? /* @__PURE__ */ f("div", { children: " " }, R) : /* @__PURE__ */ f("div", { children: K.map(({ token: at, wordIndex: ut }, bt) => {
3883
+ if (ut === null)
3859
3884
  return /* @__PURE__ */ f(
3860
3885
  "span",
3861
3886
  {
3862
3887
  style: { display: "inline-block" },
3863
- children: rt.replace(/ /g, " ")
3888
+ children: at.replace(/ /g, " ")
3864
3889
  },
3865
- `space-${R}-${Rt}`
3890
+ `space-${R}-${bt}`
3866
3891
  );
3867
- const Qt = at ? tt - 1 - kt : kt;
3868
- return ot(
3869
- rt,
3870
- Qt,
3871
- tt,
3872
- `word-${R}-${Rt}`
3892
+ const ct = it ? ot - 1 - ut : ut;
3893
+ return nt(
3894
+ at,
3895
+ ct,
3896
+ ot,
3897
+ `word-${R}-${bt}`
3873
3898
  );
3874
3899
  }) }, R)) });
3875
3900
  }
3876
- if (J === "line")
3877
- return /* @__PURE__ */ f(Mt, { children: D.map((H, _) => {
3878
- const R = at ? Q - 1 - _ : _;
3879
- return /* @__PURE__ */ f("div", { children: ot(
3901
+ if (q === "line")
3902
+ return /* @__PURE__ */ f(kt, { children: tt.map((H, _) => {
3903
+ const R = it ? A - 1 - _ : _;
3904
+ return /* @__PURE__ */ f("div", { children: nt(
3880
3905
  H === "" ? " " : H,
3881
3906
  R,
3882
- Q,
3907
+ A,
3883
3908
  `line-${_}`
3884
3909
  ) }, _);
3885
3910
  }) });
3886
- let St = 0;
3887
- const pt = D.map((H) => (H === "" ? [" "] : H.split("")).map((ht) => ({
3888
- char: ht,
3889
- globalIndex: St++
3911
+ let wt = 0;
3912
+ const ft = tt.map((H) => (H === "" ? [" "] : H.split("")).map((K) => ({
3913
+ char: K,
3914
+ globalIndex: wt++
3890
3915
  })));
3891
- return /* @__PURE__ */ f(Mt, { children: pt.map((H, _) => /* @__PURE__ */ f("div", { children: H.map(({ char: R, globalIndex: ht }) => {
3892
- const rt = at ? U - 1 - ht : ht;
3893
- return ot(
3916
+ return /* @__PURE__ */ f(kt, { children: ft.map((H, _) => /* @__PURE__ */ f("div", { children: H.map(({ char: R, globalIndex: K }) => {
3917
+ const at = it ? U - 1 - K : K;
3918
+ return nt(
3894
3919
  R,
3895
- rt,
3920
+ at,
3896
3921
  U,
3897
- `${_}-${ht}`
3922
+ `${_}-${K}`
3898
3923
  );
3899
3924
  }) }, _)) });
3900
3925
  }, No = ({
@@ -3908,42 +3933,42 @@ const yr = ({ text: t, frame: n }) => {
3908
3933
  frame: o,
3909
3934
  textAnimationNameIn: p,
3910
3935
  textAnimationNameOut: c,
3911
- textAnimationNameLoop: i,
3936
+ textAnimationNameLoop: h,
3912
3937
  textAnimationModeIn: l,
3913
- textAnimationModeOut: h,
3938
+ textAnimationModeOut: i,
3914
3939
  textAnimationModeLoop: u,
3915
3940
  textAnimationModeTimed: y,
3916
3941
  basicCharAnimationsIn: m,
3917
3942
  basicCharAnimationsOut: v,
3918
3943
  basicCharAnimationsLoop: b,
3919
- basicCharAnimationsTimed: $,
3944
+ basicCharAnimationsTimed: x,
3920
3945
  loopComposition: g,
3921
3946
  details: M,
3922
- animationTextInFrames: x,
3947
+ animationTextInFrames: $,
3923
3948
  animationTextOutFrames: I,
3924
3949
  animationTextLoopFrames: k,
3925
3950
  animationTextTimedFrames: S,
3926
3951
  durationInFrames: Y,
3927
3952
  animationFonts: N
3928
3953
  }) => {
3929
- const [E, F] = fo(n), X = mo(null);
3954
+ const [V, F] = fo(n), X = mo(null);
3930
3955
  eo(() => {
3931
3956
  if (r && X.current) {
3932
- const V = X.current;
3933
- V.focus();
3957
+ const E = X.current;
3958
+ E.focus();
3934
3959
  const O = window.getSelection(), C = document.createRange();
3935
- C.selectNodeContents(V), O == null || O.removeAllRanges(), O == null || O.addRange(C);
3960
+ C.selectNodeContents(E), O == null || O.removeAllRanges(), O == null || O.addRange(C);
3936
3961
  } else {
3937
- const V = window.getSelection();
3938
- V == null || V.removeAllRanges();
3962
+ const E = window.getSelection();
3963
+ E == null || E.removeAllRanges();
3939
3964
  }
3940
3965
  }, [r]), eo(() => {
3941
- E !== n && F(n);
3966
+ V !== n && F(n);
3942
3967
  }, [n]);
3943
3968
  const P = () => {
3944
3969
  if (X.current) {
3945
- const V = window.getSelection(), O = document.createRange();
3946
- O.selectNodeContents(X.current), O.collapse(!1), V == null || V.removeAllRanges(), V == null || V.addRange(O);
3970
+ const E = window.getSelection(), O = document.createRange();
3971
+ O.selectNodeContents(X.current), O.collapse(!1), E == null || E.removeAllRanges(), E == null || E.addRange(O);
3947
3972
  }
3948
3973
  };
3949
3974
  return /* @__PURE__ */ f(
@@ -3952,19 +3977,19 @@ const yr = ({ text: t, frame: n }) => {
3952
3977
  "data-text-id": t,
3953
3978
  ref: X,
3954
3979
  contentEditable: r,
3955
- onClick: (V) => {
3980
+ onClick: (E) => {
3956
3981
  var B;
3957
- V.stopPropagation();
3982
+ E.stopPropagation();
3958
3983
  const O = window.getSelection(), C = X.current;
3959
3984
  if (O != null && O.rangeCount && C) {
3960
3985
  const z = O.getRangeAt(0);
3961
3986
  z.endOffset - z.startOffset === ((B = C.textContent) == null ? void 0 : B.length) && P();
3962
3987
  }
3963
3988
  },
3964
- onInput: (V) => e(t, V.target.innerText),
3965
- onBlur: (V) => a(t, V.target.innerText),
3989
+ onInput: (E) => e(t, E.target.innerText),
3990
+ onBlur: (E) => a(t, E.target.innerText),
3966
3991
  style: {
3967
- height: i === "textGridMarqueeTextAnimationLoop" || i === "textGridMarquee" ? M != null && M.height ? `${M.height}px` : "100%" : "max-content",
3992
+ height: h === "textGridMarqueeTextAnimationLoop" || h === "textGridMarquee" ? M != null && M.height ? `${M.height}px` : "100%" : "max-content",
3968
3993
  boxShadow: "none",
3969
3994
  outline: "none",
3970
3995
  ...s,
@@ -3979,21 +4004,21 @@ const yr = ({ text: t, frame: n }) => {
3979
4004
  {
3980
4005
  textAnimationNameIn: p,
3981
4006
  textAnimationNameOut: c,
3982
- textAnimationNameLoop: i,
4007
+ textAnimationNameLoop: h,
3983
4008
  textAnimationModeIn: l,
3984
- textAnimationModeOut: h,
4009
+ textAnimationModeOut: i,
3985
4010
  textAnimationModeLoop: u,
3986
4011
  textAnimationModeTimed: y,
3987
4012
  basicCharAnimationsIn: m,
3988
4013
  basicCharAnimationsOut: v,
3989
4014
  basicCharAnimationsLoop: b,
3990
- basicCharAnimationsTimed: $,
4015
+ basicCharAnimationsTimed: x,
3991
4016
  loopComposition: g,
3992
4017
  text: n,
3993
4018
  fps: d,
3994
4019
  details: M,
3995
4020
  frame: o,
3996
- animationTextInFrames: x,
4021
+ animationTextInFrames: $,
3997
4022
  animationTextOutFrames: I,
3998
4023
  animationTextLoopFrames: k,
3999
4024
  animationTextTimedFrames: S,
@@ -4004,27 +4029,27 @@ const yr = ({ text: t, frame: n }) => {
4004
4029
  }
4005
4030
  );
4006
4031
  };
4007
- function Ee({
4032
+ function Ve({
4008
4033
  item: t,
4009
4034
  options: n
4010
4035
  }) {
4011
- var vt, it, J, nt, ot, st, at, ft, bt, St, pt, gt, Nt, Yt, Ft, Vt, Ot, Et, Bt, Gt, zt, jt, Ht;
4012
- const { handleTextChange: r, onTextBlur: s, fps: e, editableTextId: a, frame: d } = n, { id: o, details: p, animations: c } = t, { durationInFrames: i } = $t(t.display, e), l = [
4036
+ var Mt, pt, q, rt, nt, dt, it, yt, xt, wt, ft, $t, Ft, Rt, Xt, Vt, Ct, Bt, Ot, zt, jt, Ht, _t;
4037
+ const { handleTextChange: r, onTextBlur: s, fps: e, editableTextId: a, frame: d } = n, { id: o, details: p, animations: c } = t, { durationInFrames: h } = It(t.display, e), l = [
4013
4038
  "opacity",
4014
4039
  "scale",
4015
4040
  "translateX",
4016
4041
  "translateY",
4017
4042
  "rotateY",
4018
4043
  "rotate"
4019
- ], h = (((vt = c == null ? void 0 : c.in) == null ? void 0 : vt.composition) || []).filter(
4020
- (j) => l.some((dt) => j.property === dt) && j.textAnimationMode && j.textAnimationMode !== "all"
4021
- ), u = (((it = c == null ? void 0 : c.out) == null ? void 0 : it.composition) || []).filter(
4022
- (j) => l.some((dt) => j.property === dt) && j.textAnimationMode && j.textAnimationMode !== "all"
4023
- ), y = (((J = c == null ? void 0 : c.loop) == null ? void 0 : J.composition) || []).filter(
4024
- (j) => l.some((dt) => j.property === dt) && j.textAnimationMode && j.textAnimationMode !== "all"
4025
- ), m = (((nt = c == null ? void 0 : c.timed) == null ? void 0 : nt.composition) || []).filter(
4026
- (j) => l.some((dt) => j.property === dt) && j.textAnimationMode && j.textAnimationMode !== "all"
4027
- ), v = new Set(h.map((j) => j.id)), b = new Set(u.map((j) => j.id)), $ = new Set(
4044
+ ], i = (((Mt = c == null ? void 0 : c.in) == null ? void 0 : Mt.composition) || []).filter(
4045
+ (j) => l.some((ht) => j.property === ht) && j.textAnimationMode && j.textAnimationMode !== "all"
4046
+ ), u = (((pt = c == null ? void 0 : c.out) == null ? void 0 : pt.composition) || []).filter(
4047
+ (j) => l.some((ht) => j.property === ht) && j.textAnimationMode && j.textAnimationMode !== "all"
4048
+ ), y = (((q = c == null ? void 0 : c.loop) == null ? void 0 : q.composition) || []).filter(
4049
+ (j) => l.some((ht) => j.property === ht) && j.textAnimationMode && j.textAnimationMode !== "all"
4050
+ ), m = (((rt = c == null ? void 0 : c.timed) == null ? void 0 : rt.composition) || []).filter(
4051
+ (j) => l.some((ht) => j.property === ht) && j.textAnimationMode && j.textAnimationMode !== "all"
4052
+ ), v = new Set(i.map((j) => j.id)), b = new Set(u.map((j) => j.id)), x = new Set(
4028
4053
  y.map((j) => j.id)
4029
4054
  ), g = new Set(
4030
4055
  m.map((j) => j.id)
@@ -4045,7 +4070,7 @@ function Ee({
4045
4070
  loop: c != null && c.loop ? {
4046
4071
  ...c.loop,
4047
4072
  composition: c.loop.composition.filter(
4048
- (j) => !$.has(j.id)
4073
+ (j) => !x.has(j.id)
4049
4074
  )
4050
4075
  } : void 0,
4051
4076
  timed: c != null && c.timed ? {
@@ -4054,106 +4079,106 @@ function Ee({
4054
4079
  (j) => !g.has(j.id)
4055
4080
  )
4056
4081
  } : void 0
4057
- }, { animationIn: x, animationOut: I, animationTimed: k } = It(
4082
+ }, { animationIn: $, animationOut: I, animationTimed: k } = Nt(
4058
4083
  M,
4059
4084
  t,
4060
4085
  d,
4061
4086
  e
4062
- ), S = (ot = c == null ? void 0 : c.in) == null ? void 0 : ot.composition.find(
4063
- (j) => !l.some((dt) => j.property === dt)
4064
- ), Y = (st = c == null ? void 0 : c.out) == null ? void 0 : st.composition.find(
4065
- (j) => !l.some((dt) => j.property === dt)
4066
- ), N = (at = c == null ? void 0 : c.loop) == null ? void 0 : at.composition.find(
4067
- (j) => !l.some((dt) => j.property === dt)
4068
- ), E = (S == null ? void 0 : S.property) || "", F = (Y == null ? void 0 : Y.property) || "", X = (N == null ? void 0 : N.property) || "", P = (S == null ? void 0 : S.textAnimationMode) || ((ft = h[0]) == null ? void 0 : ft.textAnimationMode) || (S ? "letter" : "all"), L = (Y == null ? void 0 : Y.textAnimationMode) || ((bt = u[0]) == null ? void 0 : bt.textAnimationMode) || (Y ? "letter" : "all"), V = (N == null ? void 0 : N.textAnimationMode) || ((St = y[0]) == null ? void 0 : St.textAnimationMode) || (N ? "letter" : "all"), O = ((pt = m[0]) == null ? void 0 : pt.textAnimationMode) || "all", C = (S == null ? void 0 : S.durationInFrames) || ((Nt = (gt = c == null ? void 0 : c.in) == null ? void 0 : gt.composition[0]) == null ? void 0 : Nt.durationInFrames) || 0, B = (Y == null ? void 0 : Y.durationInFrames) || ((Ft = (Yt = c == null ? void 0 : c.out) == null ? void 0 : Yt.composition[0]) == null ? void 0 : Ft.durationInFrames) || 0, z = (N == null ? void 0 : N.durationInFrames) || ((Ot = (Vt = c == null ? void 0 : c.loop) == null ? void 0 : Vt.composition[0]) == null ? void 0 : Ot.durationInFrames) || 0, et = ((Et = m[0]) == null ? void 0 : Et.durationInFrames) || 0, q = [];
4087
+ ), S = (nt = c == null ? void 0 : c.in) == null ? void 0 : nt.composition.find(
4088
+ (j) => !l.some((ht) => j.property === ht)
4089
+ ), Y = (dt = c == null ? void 0 : c.out) == null ? void 0 : dt.composition.find(
4090
+ (j) => !l.some((ht) => j.property === ht)
4091
+ ), N = (it = c == null ? void 0 : c.loop) == null ? void 0 : it.composition.find(
4092
+ (j) => !l.some((ht) => j.property === ht)
4093
+ ), V = (S == null ? void 0 : S.property) || "", F = (Y == null ? void 0 : Y.property) || "", X = (N == null ? void 0 : N.property) || "", P = (S == null ? void 0 : S.textAnimationMode) || ((yt = i[0]) == null ? void 0 : yt.textAnimationMode) || (S ? "letter" : "all"), G = (Y == null ? void 0 : Y.textAnimationMode) || ((xt = u[0]) == null ? void 0 : xt.textAnimationMode) || (Y ? "letter" : "all"), E = (N == null ? void 0 : N.textAnimationMode) || ((wt = y[0]) == null ? void 0 : wt.textAnimationMode) || (N ? "letter" : "all"), O = ((ft = m[0]) == null ? void 0 : ft.textAnimationMode) || "all", C = (S == null ? void 0 : S.durationInFrames) || ((Ft = ($t = c == null ? void 0 : c.in) == null ? void 0 : $t.composition[0]) == null ? void 0 : Ft.durationInFrames) || 0, B = (Y == null ? void 0 : Y.durationInFrames) || ((Xt = (Rt = c == null ? void 0 : c.out) == null ? void 0 : Rt.composition[0]) == null ? void 0 : Xt.durationInFrames) || 0, z = (N == null ? void 0 : N.durationInFrames) || ((Ct = (Vt = c == null ? void 0 : c.loop) == null ? void 0 : Vt.composition[0]) == null ? void 0 : Ct.durationInFrames) || 0, et = ((Bt = m[0]) == null ? void 0 : Bt.durationInFrames) || 0, T = [];
4069
4094
  c != null && c.loop && c.loop.composition.forEach((j) => {
4070
- var dt;
4071
- (dt = j.details) != null && dt.fonts && q.push(...j.details.fonts);
4095
+ var ht;
4096
+ (ht = j.details) != null && ht.fonts && T.push(...j.details.fonts);
4072
4097
  }), c != null && c.in && c.in.composition.forEach((j) => {
4073
- var dt;
4074
- (dt = j.details) != null && dt.fonts && q.push(...j.details.fonts);
4098
+ var ht;
4099
+ (ht = j.details) != null && ht.fonts && T.push(...j.details.fonts);
4075
4100
  }), c != null && c.out && c.out.composition.forEach((j) => {
4076
- var dt;
4077
- (dt = j.details) != null && dt.fonts && q.push(...j.details.fonts);
4101
+ var ht;
4102
+ (ht = j.details) != null && ht.fonts && T.push(...j.details.fonts);
4078
4103
  });
4079
4104
  let Z = p.text;
4080
- if ((Gt = (Bt = t.animations) == null ? void 0 : Bt.timed) != null && Gt.composition) {
4105
+ if ((zt = (Ot = t.animations) == null ? void 0 : Ot.timed) != null && zt.composition) {
4081
4106
  const j = (n.frame || 0) - t.display.from * e / 1e3;
4082
4107
  if (j >= 0) {
4083
- const dt = (zt = t.animations) == null ? void 0 : zt.timed.composition;
4084
- dt.forEach((H, _) => {
4085
- const R = dt.slice(0, _).reduce((ht, rt) => ht + rt.durationInFrames, 0);
4108
+ const ht = (jt = t.animations) == null ? void 0 : jt.timed.composition;
4109
+ ht.forEach((H, _) => {
4110
+ const R = ht.slice(0, _).reduce((K, at) => K + at.durationInFrames, 0);
4086
4111
  j >= R && H.text && (Z = H.text);
4087
4112
  });
4088
4113
  }
4089
4114
  }
4090
- const K = (d || 0) - t.display.from * e / 1e3, { top: T, left: ct, transform: lt, position: G, ...D } = p, U = vo(
4115
+ const J = (d || 0) - t.display.from * e / 1e3, { top: D, left: st, transform: mt, position: L, ...tt } = p, U = vo(
4091
4116
  p.effects,
4092
4117
  t.animations,
4093
- K
4094
- ), tt = go(U), Q = typeof p.width == "number" ? p.width : parseInt(String(p.width || 300), 10) || 300, A = typeof p.height == "number" ? p.height : parseInt(String(p.height || 100), 10) || 100, ut = /* @__PURE__ */ f(
4095
- Zt,
4118
+ J
4119
+ ), ot = go(U), A = typeof p.width == "number" ? p.width : parseInt(String(p.width || 300), 10) || 300, Q = typeof p.height == "number" ? p.height : parseInt(String(p.height || 100), 10) || 100, lt = /* @__PURE__ */ f(
4120
+ At,
4096
4121
  {
4097
- animationIn: a === o ? null : x,
4122
+ animationIn: a === o ? null : $,
4098
4123
  animationOut: a === o ? null : I,
4099
- frame: K,
4100
- durationInFrames: i,
4124
+ frame: J,
4125
+ durationInFrames: h,
4101
4126
  style: {
4102
- ...D,
4127
+ ...tt,
4103
4128
  display: "flex"
4104
4129
  },
4105
4130
  children: /* @__PURE__ */ f(
4106
4131
  Ut,
4107
4132
  {
4108
4133
  animationTimed: a === o ? null : k,
4109
- durationInFrames: i,
4110
- frame: K,
4134
+ durationInFrames: h,
4135
+ frame: J,
4111
4136
  style: {
4112
- ...D,
4137
+ ...tt,
4113
4138
  display: "flex"
4114
4139
  },
4115
4140
  children: /* @__PURE__ */ f(
4116
4141
  co,
4117
4142
  {
4118
4143
  item: t,
4119
- keyframeAnimations: x,
4120
- frame: K,
4121
- children: tt ? /* @__PURE__ */ f(
4144
+ keyframeAnimations: $,
4145
+ frame: J,
4146
+ children: ot ? /* @__PURE__ */ f(
4122
4147
  yo,
4123
4148
  {
4124
- width: Q,
4125
- height: A,
4126
- effects: tt,
4149
+ width: A,
4150
+ height: Q,
4151
+ effects: ot,
4127
4152
  children: /* @__PURE__ */ f(
4128
4153
  No,
4129
4154
  {
4130
4155
  id: o,
4131
4156
  fps: e,
4132
- frame: K,
4157
+ frame: J,
4133
4158
  content: Z,
4134
4159
  editable: a === o,
4135
4160
  onChange: r,
4136
- textAnimationNameIn: E,
4161
+ textAnimationNameIn: V,
4137
4162
  textAnimationNameOut: F,
4138
4163
  textAnimationNameLoop: X,
4139
4164
  textAnimationModeIn: P,
4140
- textAnimationModeOut: L,
4141
- textAnimationModeLoop: V,
4165
+ textAnimationModeOut: G,
4166
+ textAnimationModeLoop: E,
4142
4167
  textAnimationModeTimed: O,
4143
- basicCharAnimationsIn: h,
4168
+ basicCharAnimationsIn: i,
4144
4169
  basicCharAnimationsOut: u,
4145
4170
  basicCharAnimationsLoop: y,
4146
4171
  basicCharAnimationsTimed: m,
4147
- loopComposition: (jt = c == null ? void 0 : c.loop) == null ? void 0 : jt.composition,
4172
+ loopComposition: (Ht = c == null ? void 0 : c.loop) == null ? void 0 : Ht.composition,
4148
4173
  onBlur: s,
4149
- style: Ct(p),
4174
+ style: Gt(p),
4150
4175
  details: p,
4151
4176
  animationTextInFrames: C,
4152
4177
  animationTextOutFrames: B,
4153
4178
  animationTextLoopFrames: z,
4154
4179
  animationTextTimedFrames: et,
4155
- durationInFrames: i,
4156
- animationFonts: q
4180
+ durationInFrames: h,
4181
+ animationFonts: T
4157
4182
  },
4158
4183
  o
4159
4184
  )
@@ -4163,31 +4188,31 @@ function Ee({
4163
4188
  {
4164
4189
  id: o,
4165
4190
  fps: e,
4166
- frame: K,
4191
+ frame: J,
4167
4192
  content: Z,
4168
4193
  editable: a === o,
4169
4194
  onChange: r,
4170
- textAnimationNameIn: E,
4195
+ textAnimationNameIn: V,
4171
4196
  textAnimationNameOut: F,
4172
4197
  textAnimationNameLoop: X,
4173
4198
  textAnimationModeIn: P,
4174
- textAnimationModeOut: L,
4175
- textAnimationModeLoop: V,
4199
+ textAnimationModeOut: G,
4200
+ textAnimationModeLoop: E,
4176
4201
  textAnimationModeTimed: O,
4177
- basicCharAnimationsIn: h,
4202
+ basicCharAnimationsIn: i,
4178
4203
  basicCharAnimationsOut: u,
4179
4204
  basicCharAnimationsLoop: y,
4180
4205
  basicCharAnimationsTimed: m,
4181
- loopComposition: (Ht = c == null ? void 0 : c.loop) == null ? void 0 : Ht.composition,
4206
+ loopComposition: (_t = c == null ? void 0 : c.loop) == null ? void 0 : _t.composition,
4182
4207
  onBlur: s,
4183
- style: Ct(p),
4208
+ style: Gt(p),
4184
4209
  details: p,
4185
4210
  animationTextInFrames: C,
4186
4211
  animationTextOutFrames: B,
4187
4212
  animationTextLoopFrames: z,
4188
4213
  animationTextTimedFrames: et,
4189
- durationInFrames: i,
4190
- animationFonts: q
4214
+ durationInFrames: h,
4215
+ animationFonts: T
4191
4216
  },
4192
4217
  o
4193
4218
  )
@@ -4197,40 +4222,40 @@ function Ee({
4197
4222
  )
4198
4223
  }
4199
4224
  );
4200
- return mt({ item: t, options: n, children: ut });
4225
+ return gt({ item: t, options: n, children: lt });
4201
4226
  }
4202
4227
  const Be = ({
4203
4228
  item: t,
4204
4229
  options: n
4205
4230
  }) => {
4206
- var L, V, O, C, B, z, et, q, Z, K, T, ct, lt;
4207
- const { fps: r, frame: s } = n, { details: e, animations: a } = t, d = t.playbackRate || 1, { animationIn: o, animationOut: p, animationTimed: c } = It(
4231
+ var G, E, O, C, B, z, et, T, Z, J, D, st, mt;
4232
+ const { fps: r, frame: s } = n, { details: e, animations: a } = t, d = t.playbackRate || 1, { animationIn: o, animationOut: p, animationTimed: c } = Nt(
4208
4233
  a,
4209
4234
  t,
4210
4235
  s,
4211
4236
  r
4212
- ), i = (e == null ? void 0 : e.crop) || {
4237
+ ), h = (e == null ? void 0 : e.crop) || {
4213
4238
  x: 0,
4214
4239
  y: 0,
4215
4240
  width: e.width,
4216
4241
  height: e.height
4217
- }, { durationInFrames: l } = $t(t.display, r), h = (s || 0) - t.display.from * r / 1e3, u = vo(
4242
+ }, { durationInFrames: l } = It(t.display, r), i = (s || 0) - t.display.from * r / 1e3, u = vo(
4218
4243
  e.effects,
4219
4244
  a,
4220
- h
4221
- ), y = go(u), { filter: m, overlays: v } = zo(u), b = (V = (L = a == null ? void 0 : a.loop) == null ? void 0 : L.composition) == null ? void 0 : V.find(
4222
- (G) => G.property === "textGridMarqueeTextAnimationLoop" || G.property === "textGridMarquee" || G.property === "imageGridMarqueeTextAnimationLoop" || G.property === "imageGridMarquee" || G.id === "textGridMarquee" || G.id === "imageGridMarquee"
4223
- ), $ = !!(b && h >= (b.delay || 0) && h <= (b.delay || 0) + (b.durationInFrames || 60)), g = (C = (O = a == null ? void 0 : a.loop) == null ? void 0 : O.composition) == null ? void 0 : C.find(
4224
- (G) => G.property === "inwardEchoes" || G.id === "inwardEchoes"
4225
- ), M = !!(g && h >= (g.delay || 0) && h <= (g.delay || 0) + (g.durationInFrames || 120)), x = (z = (B = a == null ? void 0 : a.loop) == null ? void 0 : B.composition) == null ? void 0 : z.find(
4226
- (G) => G.property === "wiggle" || G.id === "wiggle"
4227
- ), I = !!(x && h >= (x.delay || 0) && h <= (x.delay || 0) + (x.durationInFrames || 120)), k = (q = (et = a == null ? void 0 : a.loop) == null ? void 0 : et.composition) == null ? void 0 : q.find(
4228
- (G) => G.property === "cardFlip" || G.id === "cardFlip"
4229
- ), S = !!(k && h >= (k.delay || 0) && h <= (k.delay || 0) + (k.durationInFrames || 120)), Y = e.width || i.width || 300, N = e.height || i.height || 300, E = /* @__PURE__ */ f(
4245
+ i
4246
+ ), y = go(u), { filter: m, overlays: v } = zo(u), b = (E = (G = a == null ? void 0 : a.loop) == null ? void 0 : G.composition) == null ? void 0 : E.find(
4247
+ (L) => L.property === "textGridMarqueeTextAnimationLoop" || L.property === "textGridMarquee" || L.property === "imageGridMarqueeTextAnimationLoop" || L.property === "imageGridMarquee" || L.id === "textGridMarquee" || L.id === "imageGridMarquee"
4248
+ ), x = !!(b && i >= (b.delay || 0) && i <= (b.delay || 0) + (b.durationInFrames || 60)), g = (C = (O = a == null ? void 0 : a.loop) == null ? void 0 : O.composition) == null ? void 0 : C.find(
4249
+ (L) => L.property === "inwardEchoes" || L.id === "inwardEchoes"
4250
+ ), M = !!(g && i >= (g.delay || 0) && i <= (g.delay || 0) + (g.durationInFrames || 120)), $ = (z = (B = a == null ? void 0 : a.loop) == null ? void 0 : B.composition) == null ? void 0 : z.find(
4251
+ (L) => L.property === "wiggle" || L.id === "wiggle"
4252
+ ), I = !!($ && i >= ($.delay || 0) && i <= ($.delay || 0) + ($.durationInFrames || 120)), k = (T = (et = a == null ? void 0 : a.loop) == null ? void 0 : et.composition) == null ? void 0 : T.find(
4253
+ (L) => L.property === "cardFlip" || L.id === "cardFlip"
4254
+ ), S = !!(k && i >= (k.delay || 0) && i <= (k.delay || 0) + (k.durationInFrames || 120)), Y = e.width || h.width || 300, N = e.height || h.height || 300, V = /* @__PURE__ */ f(
4230
4255
  Dt,
4231
4256
  {
4232
4257
  startFrom: ((Z = t.trim) == null ? void 0 : Z.from) / 1e3 * r,
4233
- endAt: ((K = t.trim) == null ? void 0 : K.to) / 1e3 * r || 1 / r,
4258
+ endAt: ((J = t.trim) == null ? void 0 : J.to) / 1e3 * r || 1 / r,
4234
4259
  playbackRate: d,
4235
4260
  src: e.src,
4236
4261
  volume: (e.volume ?? 100) / 100,
@@ -4246,14 +4271,14 @@ const Be = ({
4246
4271
  width: Y,
4247
4272
  height: N,
4248
4273
  effects: y,
4249
- children: E
4274
+ children: V
4250
4275
  }
4251
- ) : E, X = () => $ ? /* @__PURE__ */ f(
4276
+ ) : V, X = () => x ? /* @__PURE__ */ f(
4252
4277
  Oo,
4253
4278
  {
4254
4279
  src: e.src,
4255
4280
  isVideo: !0,
4256
- frame: h,
4281
+ frame: i,
4257
4282
  delay: b == null ? void 0 : b.delay,
4258
4283
  durationInFrames: b == null ? void 0 : b.durationInFrames,
4259
4284
  from: b == null ? void 0 : b.from,
@@ -4272,7 +4297,7 @@ const Be = ({
4272
4297
  {
4273
4298
  src: e.src,
4274
4299
  isVideo: !0,
4275
- frame: h,
4300
+ frame: i,
4276
4301
  delay: g == null ? void 0 : g.delay,
4277
4302
  durationInFrames: g == null ? void 0 : g.durationInFrames,
4278
4303
  from: g == null ? void 0 : g.from,
@@ -4287,15 +4312,15 @@ const Be = ({
4287
4312
  echoesDetails: g == null ? void 0 : g.details
4288
4313
  }
4289
4314
  ) : I ? /* @__PURE__ */ f(
4290
- Lo,
4315
+ Go,
4291
4316
  {
4292
4317
  src: e.src,
4293
4318
  isVideo: !0,
4294
- frame: h,
4295
- delay: x == null ? void 0 : x.delay,
4296
- durationInFrames: x == null ? void 0 : x.durationInFrames,
4297
- from: x == null ? void 0 : x.from,
4298
- to: x == null ? void 0 : x.to,
4319
+ frame: i,
4320
+ delay: $ == null ? void 0 : $.delay,
4321
+ durationInFrames: $ == null ? void 0 : $.durationInFrames,
4322
+ from: $ == null ? void 0 : $.from,
4323
+ to: $ == null ? void 0 : $.to,
4299
4324
  width: e.width,
4300
4325
  height: e.height,
4301
4326
  borderRadius: e.borderRadius,
@@ -4303,12 +4328,12 @@ const Be = ({
4303
4328
  borderColor: e.borderColor,
4304
4329
  boxShadow: e.boxShadow,
4305
4330
  fps: r,
4306
- wiggleDetails: x == null ? void 0 : x.details
4331
+ wiggleDetails: $ == null ? void 0 : $.details
4307
4332
  }
4308
4333
  ) : S ? /* @__PURE__ */ f(
4309
4334
  bo,
4310
4335
  {
4311
- frame: h,
4336
+ frame: i,
4312
4337
  delay: k == null ? void 0 : k.delay,
4313
4338
  durationInFrames: k == null ? void 0 : k.durationInFrames,
4314
4339
  from: k == null ? void 0 : k.from,
@@ -4321,39 +4346,39 @@ const Be = ({
4321
4346
  children: F
4322
4347
  }
4323
4348
  ) : F, P = /* @__PURE__ */ f(
4324
- Zt,
4349
+ At,
4325
4350
  {
4326
- style: Kt(e, i, {
4351
+ style: Kt(e, h, {
4327
4352
  overflow: "hidden"
4328
4353
  }),
4329
4354
  animationIn: o,
4330
4355
  animationOut: p,
4331
- frame: h,
4356
+ frame: i,
4332
4357
  durationInFrames: l,
4333
4358
  children: /* @__PURE__ */ f(
4334
4359
  Ut,
4335
4360
  {
4336
4361
  animationTimed: c,
4337
4362
  durationInFrames: l,
4338
- frame: h,
4363
+ frame: i,
4339
4364
  children: /* @__PURE__ */ f(
4340
4365
  co,
4341
4366
  {
4342
4367
  item: t,
4343
4368
  keyframeAnimations: [
4344
- ...((T = a == null ? void 0 : a.in) == null ? void 0 : T.composition) || [],
4345
- ...((ct = a == null ? void 0 : a.timed) == null ? void 0 : ct.composition) || [],
4346
- ...((lt = a == null ? void 0 : a.loop) == null ? void 0 : lt.composition) || []
4369
+ ...((D = a == null ? void 0 : a.in) == null ? void 0 : D.composition) || [],
4370
+ ...((st = a == null ? void 0 : a.timed) == null ? void 0 : st.composition) || [],
4371
+ ...((mt = a == null ? void 0 : a.loop) == null ? void 0 : mt.composition) || []
4347
4372
  ],
4348
- frame: h,
4349
- children: /* @__PURE__ */ yt("div", { style: Eo(e, i), children: [
4373
+ frame: i,
4374
+ children: /* @__PURE__ */ vt("div", { style: Vo(e, h), children: [
4350
4375
  X(),
4351
- v.map((G) => /* @__PURE__ */ f("div", { style: G.style }, G.id)),
4376
+ v.map((L) => /* @__PURE__ */ f("div", { style: L.style }, L.id)),
4352
4377
  /* @__PURE__ */ f(
4353
4378
  "div",
4354
4379
  {
4355
4380
  style: {
4356
- ...Bo(e, i),
4381
+ ...Bo(e, h),
4357
4382
  backgroundColor: "transparent"
4358
4383
  }
4359
4384
  }
@@ -4365,13 +4390,13 @@ const Be = ({
4365
4390
  )
4366
4391
  }
4367
4392
  );
4368
- return mt({ item: t, options: n, children: P });
4393
+ return gt({ item: t, options: n, children: P });
4369
4394
  };
4370
4395
  function Oe({
4371
4396
  item: t,
4372
4397
  options: n
4373
4398
  }) {
4374
- const { fps: r, frame: s } = n, { details: e } = t, a = t.playbackRate || 1, { from: d, durationInFrames: o } = $t(
4399
+ const { fps: r, frame: s } = n, { details: e } = t, a = t.playbackRate || 1, { from: d, durationInFrames: o } = It(
4375
4400
  {
4376
4401
  from: t.display.from / a,
4377
4402
  to: t.display.to / a
@@ -4380,13 +4405,13 @@ function Oe({
4380
4405
  );
4381
4406
  let p;
4382
4407
  if (e.inverted) {
4383
- const i = Math.max((s || 0) - d, 0);
4384
- p = 100 - Math.min(i / o * 100, 100);
4408
+ const h = Math.max((s || 0) - d, 0);
4409
+ p = 100 - Math.min(h / o * 100, 100);
4385
4410
  } else {
4386
- const i = Math.max((s || 0) - d, 0);
4387
- p = Math.min(i / o * 100, 100);
4411
+ const h = Math.max((s || 0) - d, 0);
4412
+ p = Math.min(h / o * 100, 100);
4388
4413
  }
4389
- const c = /* @__PURE__ */ yt(Mt, { children: [
4414
+ const c = /* @__PURE__ */ vt(kt, { children: [
4390
4415
  /* @__PURE__ */ f(
4391
4416
  "div",
4392
4417
  {
@@ -4412,16 +4437,16 @@ function Oe({
4412
4437
  }
4413
4438
  )
4414
4439
  ] });
4415
- return mt({ item: t, options: n, children: c });
4440
+ return gt({ item: t, options: n, children: c });
4416
4441
  }
4417
4442
  const Xr = (t) => {
4418
4443
  let n = 0;
4419
4444
  for (let r = 0; r < t.length; r++)
4420
4445
  n += t[r] * t[r];
4421
4446
  return n = n / t.length, n = Math.sqrt(n), n;
4422
- }, Pr = (t) => 20 * Math.log10(t), Wr = (t, n, r) => (t - n) / (r - n), Vr = (t, n, r) => Math.max(Math.min(t, r), n), Er = -100, Br = -30, xo = (t, n = {}) => {
4423
- const { minDb: r = Er, maxDb: s = Br } = n, e = Pr(t);
4424
- return Vr(Wr(e, r, s), 0, 1);
4447
+ }, Pr = (t) => 20 * Math.log10(t), Wr = (t, n, r) => (t - n) / (r - n), Er = (t, n, r) => Math.max(Math.min(t, r), n), Vr = -100, Br = -30, xo = (t, n = {}) => {
4448
+ const { minDb: r = Vr, maxDb: s = Br } = n, e = Pr(t);
4449
+ return Er(Wr(e, r, s), 0, 1);
4425
4450
  }, jo = ({
4426
4451
  totalWidth: t,
4427
4452
  itemWidth: n,
@@ -4430,9 +4455,9 @@ const Xr = (t) => {
4430
4455
  minDb: e = -80
4431
4456
  }) => {
4432
4457
  const a = Math.floor(t / n), d = r, o = Math.floor(d.length / a);
4433
- return Array.from({ length: a }).map((c, i) => {
4458
+ return Array.from({ length: a }).map((c, h) => {
4434
4459
  const l = xo(
4435
- d[i * o % d.length],
4460
+ d[h * o % d.length],
4436
4461
  { maxDb: s, minDb: e }
4437
4462
  );
4438
4463
  return Math.log(1 + l);
@@ -4448,9 +4473,9 @@ const Xr = (t) => {
4448
4473
  color: o = "white",
4449
4474
  maxAmplitude: p = 1
4450
4475
  }) => {
4451
- const c = n, i = r;
4452
- return !t || t.length === 0 ? null : /* @__PURE__ */ f("div", { style: { width: n, height: r }, children: /* @__PURE__ */ f("svg", { width: c, height: i, viewBox: `0 0 ${c} ${i}`, children: t.map((l, h) => {
4453
- const u = l * i / p, y = h * (s + e), m = d === "over" ? 0 : d === "under" ? i - u : 0.5 * (i - u);
4476
+ const c = n, h = r;
4477
+ return !t || t.length === 0 ? null : /* @__PURE__ */ f("div", { style: { width: n, height: r }, children: /* @__PURE__ */ f("svg", { width: c, height: h, viewBox: `0 0 ${c} ${h}`, children: t.map((l, i) => {
4478
+ const u = l * h / p, y = i * (s + e), m = d === "over" ? 0 : d === "under" ? h - u : 0.5 * (h - u);
4454
4479
  return /* @__PURE__ */ f(
4455
4480
  "rect",
4456
4481
  {
@@ -4461,7 +4486,7 @@ const Xr = (t) => {
4461
4486
  height: u || 0,
4462
4487
  rx: a || 0
4463
4488
  },
4464
- h
4489
+ i
4465
4490
  );
4466
4491
  }) }) });
4467
4492
  }, Cr = ({
@@ -4476,24 +4501,24 @@ const Xr = (t) => {
4476
4501
  maxDb: p,
4477
4502
  minDb: c
4478
4503
  }) => {
4479
- const i = mo(null), l = wt(), [h, u] = fo({ width: 400, height: 100 });
4504
+ const h = mo(null), l = Yt(), [i, u] = fo({ width: 400, height: 100 });
4480
4505
  eo(() => {
4481
4506
  u((b) => {
4482
- var $, g;
4507
+ var x, g;
4483
4508
  return {
4484
- width: (($ = i.current) == null ? void 0 : $.offsetWidth) ?? b.width,
4485
- height: ((g = i.current) == null ? void 0 : g.offsetHeight) ?? b.height
4509
+ width: ((x = h.current) == null ? void 0 : x.offsetWidth) ?? b.width,
4510
+ height: ((g = h.current) == null ? void 0 : g.offsetHeight) ?? b.height
4486
4511
  };
4487
4512
  });
4488
4513
  }, [l, u]);
4489
- const { width: y, height: m } = h, v = jo({
4514
+ const { width: y, height: m } = i, v = jo({
4490
4515
  totalWidth: y,
4491
4516
  itemWidth: s + e,
4492
4517
  frequencyData: r,
4493
4518
  maxDb: p,
4494
4519
  minDb: c
4495
4520
  });
4496
- return /* @__PURE__ */ f("div", { ref: i, style: { width: t, height: n }, children: /* @__PURE__ */ f(
4521
+ return /* @__PURE__ */ f("div", { ref: h, style: { width: t, height: n }, children: /* @__PURE__ */ f(
4497
4522
  Or,
4498
4523
  {
4499
4524
  width: y,
@@ -4507,17 +4532,17 @@ const Xr = (t) => {
4507
4532
  }
4508
4533
  ) });
4509
4534
  };
4510
- class Lr {
4535
+ class Gr {
4511
4536
  constructor() {
4512
- Pt(this, "fps", 30);
4513
- Pt(this, "numberOfSamples", 512);
4514
- Pt(this, "dataBars", []);
4515
- Pt(this, "items", []);
4516
- Pt(this, "audioDatas", {});
4517
- Pt(this, "MAX_CACHE_SIZE", 10);
4518
- Pt(this, "frameCache", /* @__PURE__ */ new Map());
4519
- Pt(this, "CACHE_TTL", 1e3 * 60 * 5);
4520
- Pt(this, "combineValues", (n, r) => Array.from({ length: n }).map((s, e) => r.reduce((a, d) => Math.max(a, d[e]), 0)));
4537
+ Wt(this, "fps", 30);
4538
+ Wt(this, "numberOfSamples", 512);
4539
+ Wt(this, "dataBars", []);
4540
+ Wt(this, "items", []);
4541
+ Wt(this, "audioDatas", {});
4542
+ Wt(this, "MAX_CACHE_SIZE", 10);
4543
+ Wt(this, "frameCache", /* @__PURE__ */ new Map());
4544
+ Wt(this, "CACHE_TTL", 1e3 * 60 * 5);
4545
+ Wt(this, "combineValues", (n, r) => Array.from({ length: n }).map((s, e) => r.reduce((a, d) => Math.max(a, d[e]), 0)));
4521
4546
  }
4522
4547
  // 5 minutes
4523
4548
  setAudioDataManager(n) {
@@ -4572,10 +4597,10 @@ class Lr {
4572
4597
  if (r)
4573
4598
  return r;
4574
4599
  const s = this.items.map((a, d) => {
4575
- var i;
4600
+ var h;
4576
4601
  const o = this.audioDatas[a.id];
4577
4602
  if (!o) return Array(this.numberOfSamples).fill(0);
4578
- const p = n - this.items[d].display.from * this.fps / 1e3 + (((i = this.items[d].trim) == null ? void 0 : i.from) || 0) * this.fps / 1e3;
4603
+ const p = n - this.items[d].display.from * this.fps / 1e3 + (((h = this.items[d].trim) == null ? void 0 : h.from) || 0) * this.fps / 1e3;
4579
4604
  if (this.items[d].display.from * this.fps / 1e3 > n || this.items[d].display.to * this.fps / 1e3 < n)
4580
4605
  return Array(this.numberOfSamples).fill(0);
4581
4606
  const c = gn({
@@ -4596,14 +4621,14 @@ class Lr {
4596
4621
  return e;
4597
4622
  }
4598
4623
  }
4599
- const Lt = new Lr(), Gr = ({
4624
+ const Lt = new Gr(), Lr = ({
4600
4625
  item: t,
4601
4626
  options: n
4602
4627
  }) => {
4603
4628
  const { frame: r, fps: s } = n, { details: e } = t;
4604
4629
  Lt.setAudioDataManager(s);
4605
4630
  const o = Lt.getAudioDataForFrame(r || 0).slice(0, 0.7 * 512), c = ["middle", "over", "under"].includes(e.placement);
4606
- return /* @__PURE__ */ f(Mt, { children: /* @__PURE__ */ f(
4631
+ return /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
4607
4632
  Cr,
4608
4633
  {
4609
4634
  frequencyData: o,
@@ -4621,13 +4646,13 @@ function Ce({
4621
4646
  item: t,
4622
4647
  options: n
4623
4648
  }) {
4624
- return mt({ item: t, options: n, children: /* @__PURE__ */ f(Mt, { children: /* @__PURE__ */ f(Gr, { item: t, options: n }) }) });
4649
+ return gt({ item: t, options: n, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Lr, { item: t, options: n }) }) });
4625
4650
  }
4626
- function Le({
4651
+ function Ge({
4627
4652
  item: t,
4628
4653
  options: n
4629
4654
  }) {
4630
- const { fps: r, frame: s } = n, { details: e } = t, a = t.playbackRate || 1, { from: d, durationInFrames: o } = $t(
4655
+ const { fps: r, frame: s } = n, { details: e } = t, a = t.playbackRate || 1, { from: d, durationInFrames: o } = It(
4631
4656
  {
4632
4657
  from: t.display.from / a,
4633
4658
  to: t.display.to / a
@@ -4642,7 +4667,7 @@ function Le({
4642
4667
  const y = Math.max((s || 0) - d, 0);
4643
4668
  p = Math.min(y / o * 100, 100);
4644
4669
  }
4645
- const c = e.width || 100, i = e.height || 100, h = Math.min(c, i) * e.barThickness / 100, u = /* @__PURE__ */ f(Mt, { children: /* @__PURE__ */ f(
4670
+ const c = e.width || 100, h = e.height || 100, i = Math.min(c, h) * e.barThickness / 100, u = /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
4646
4671
  "div",
4647
4672
  {
4648
4673
  style: {
@@ -4652,13 +4677,13 @@ function Le({
4652
4677
  backgroundColor: "transparent",
4653
4678
  scale: `${e.flipX ? -1 : 1} ${e.flipY ? -1 : 1}`
4654
4679
  },
4655
- children: /* @__PURE__ */ yt(
4680
+ children: /* @__PURE__ */ vt(
4656
4681
  "div",
4657
4682
  {
4658
4683
  style: {
4659
4684
  position: "absolute",
4660
4685
  inset: 0,
4661
- clipPath: `polygon(0 0, 100% 0, 100% ${h}px, ${h}px ${h}px, ${h}px 100%, 0 100%)`
4686
+ clipPath: `polygon(0 0, 100% 0, 100% ${i}px, ${i}px ${i}px, ${i}px 100%, 0 100%)`
4662
4687
  },
4663
4688
  children: [
4664
4689
  /* @__PURE__ */ f(
@@ -4690,7 +4715,7 @@ function Le({
4690
4715
  )
4691
4716
  }
4692
4717
  ) });
4693
- return mt({ item: t, options: n, children: u });
4718
+ return gt({ item: t, options: n, children: u });
4694
4719
  }
4695
4720
  const zr = ({
4696
4721
  values: t,
@@ -4711,20 +4736,20 @@ const zr = ({
4711
4736
  width: p,
4712
4737
  height: p,
4713
4738
  viewBox: `0 0 ${p} ${p}`,
4714
- children: t.map((c, i) => {
4715
- const l = c * (n - o) / d, h = n, u = e === "outer" ? n - l : e === "inner" ? n : n - 0.5 * l, y = e === "outer" ? n : e === "inner" ? o : n - 0.5 * (n - o), m = `rotate(${360 * i / t.length} ${n} ${n}) translate(0 ${y})`;
4739
+ children: t.map((c, h) => {
4740
+ const l = c * (n - o) / d, i = n, u = e === "outer" ? n - l : e === "inner" ? n : n - 0.5 * l, y = e === "outer" ? n : e === "inner" ? o : n - 0.5 * (n - o), m = `rotate(${360 * h / t.length} ${n} ${n}) translate(0 ${y})`;
4716
4741
  return /* @__PURE__ */ f(
4717
4742
  "rect",
4718
4743
  {
4719
4744
  fill: a,
4720
- x: h,
4745
+ x: i,
4721
4746
  y: u,
4722
4747
  width: r,
4723
4748
  height: l,
4724
4749
  rx: s,
4725
4750
  transform: m
4726
4751
  },
4727
- i
4752
+ h
4728
4753
  );
4729
4754
  })
4730
4755
  }
@@ -4740,15 +4765,15 @@ const zr = ({
4740
4765
  color: o = "white",
4741
4766
  maxAmplitude: p,
4742
4767
  innerRadius: c = 0,
4743
- gapSize: i = 4
4768
+ gapSize: h = 4
4744
4769
  }) => {
4745
- const l = 0.5 * s, h = jo({
4770
+ const l = 0.5 * s, i = jo({
4746
4771
  totalWidth: 2 * Math.PI * c,
4747
- itemWidth: e + i,
4772
+ itemWidth: e + h,
4748
4773
  frequencyData: t,
4749
4774
  maxDb: n,
4750
4775
  minDb: r
4751
- }), u = h.slice(Math.floor(0.5 * h.length)), y = [...u, ...u.slice().reverse()];
4776
+ }), u = i.slice(Math.floor(0.5 * i.length)), y = [...u, ...u.slice().reverse()];
4752
4777
  return /* @__PURE__ */ f(
4753
4778
  zr,
4754
4779
  {
@@ -4769,7 +4794,7 @@ const zr = ({
4769
4794
  const { fps: r, frame: s } = n, { details: e } = t, a = t.playbackRate || 1;
4770
4795
  Lt.setAudioDataManager(r);
4771
4796
  const p = Lt.getAudioDataForFrame(s || 0).slice(0, 0.7 * 512);
4772
- return /* @__PURE__ */ yt(Mt, { children: [
4797
+ return /* @__PURE__ */ vt(kt, { children: [
4773
4798
  /* @__PURE__ */ f(
4774
4799
  jr,
4775
4800
  {
@@ -4779,14 +4804,14 @@ const zr = ({
4779
4804
  color: e.radialBarColor
4780
4805
  }
4781
4806
  ),
4782
- e.reproduceAudio && e.srcs.map((c, i) => /* @__PURE__ */ f(Wo, { playbackRate: a, src: c }, i))
4807
+ e.reproduceAudio && e.srcs.map((c, h) => /* @__PURE__ */ f(Wo, { playbackRate: a, src: c }, h))
4783
4808
  ] });
4784
4809
  };
4785
- function Ge({
4810
+ function Le({
4786
4811
  item: t,
4787
4812
  options: n
4788
4813
  }) {
4789
- return mt({ item: t, options: n, children: /* @__PURE__ */ f(Mt, { children: /* @__PURE__ */ f(Hr, { item: t, options: n }) }) });
4814
+ return gt({ item: t, options: n, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Hr, { item: t, options: n }) }) });
4790
4815
  }
4791
4816
  const _r = ({
4792
4817
  numberOfPoints: t,
@@ -4797,10 +4822,10 @@ const _r = ({
4797
4822
  const e = 1 / t, a = r / s;
4798
4823
  return Array.from({ length: t }).map((d, o, p) => {
4799
4824
  const c = (o - 0.5) % p.length * e - a;
4800
- let i = (c + 1) % 1;
4801
- i = i * s;
4825
+ let h = (c + 1) % 1;
4826
+ h = h * s;
4802
4827
  let l = Math.sin(Math.abs(c) * Math.PI);
4803
- return l = w.cubic(l), l = l * n, l = l * Math.sin((0.5 + o) * Math.PI), { x: i, y: l };
4828
+ return l = w.cubic(l), l = l * n, l = l * Math.sin((0.5 + o) * Math.PI), { x: h, y: l };
4804
4829
  }).sort((d, o) => d.x > o.x ? 1 : -1);
4805
4830
  }, Zr = ({
4806
4831
  sections: t = 12,
@@ -4813,37 +4838,37 @@ const _r = ({
4813
4838
  lineColor: o = ["darkblue", "lightblue"],
4814
4839
  lineThickness: p = 2,
4815
4840
  topRoundness: c = 0.4,
4816
- bottomRoundness: i = 0.4
4841
+ bottomRoundness: h = 0.4
4817
4842
  }) => {
4818
- const l = s, h = e, u = t, y = n % (2 * s / t), m = Array.from({ length: a }).map((M, x) => {
4819
- const I = x * d;
4843
+ const l = s, i = e, u = t, y = n % (2 * s / t), m = Array.from({ length: a }).map((M, $) => {
4844
+ const I = $ * d;
4820
4845
  return _r({
4821
4846
  width: l,
4822
4847
  numberOfPoints: u,
4823
4848
  offsetPixels: I + y,
4824
4849
  amplitude: 0.5 * r
4825
4850
  });
4826
- }), v = l / u, b = c * v, $ = i * v, g = (M, x) => {
4827
- const I = M.y <= 0, k = I ? b : $, S = I ? $ : b, Y = x.x + S, N = x.y, E = M.x - k, F = M.y, X = M.x, P = M.y;
4828
- return `C ${Y} ${N}, ${E} ${F}, ${X} ${P}`;
4851
+ }), v = l / u, b = c * v, x = h * v, g = (M, $) => {
4852
+ const I = M.y <= 0, k = I ? b : x, S = I ? x : b, Y = $.x + S, N = $.y, V = M.x - k, F = M.y, X = M.x, P = M.y;
4853
+ return `C ${Y} ${N}, ${V} ${F}, ${X} ${P}`;
4829
4854
  };
4830
- return /* @__PURE__ */ f("div", { style: { width: s, height: e }, children: /* @__PURE__ */ f("svg", { width: l, height: h, viewBox: `0 -${0.5 * h} ${l} ${h}`, children: m.map((M, x) => {
4831
- const I = M[M.length - 1], k = Array.isArray(o) ? o[x % o.length] : o;
4855
+ return /* @__PURE__ */ f("div", { style: { width: s, height: e }, children: /* @__PURE__ */ f("svg", { width: l, height: i, viewBox: `0 -${0.5 * i} ${l} ${i}`, children: m.map((M, $) => {
4856
+ const I = M[M.length - 1], k = Array.isArray(o) ? o[$ % o.length] : o;
4832
4857
  return /* @__PURE__ */ f(
4833
4858
  "path",
4834
4859
  {
4835
4860
  d: `M 0 0, ${M.map((S, Y, N) => {
4836
- const E = Y === 0 ? { x: 0, y: 0 } : N[Y - 1];
4837
- return g(S, E);
4861
+ const V = Y === 0 ? { x: 0, y: 0 } : N[Y - 1];
4862
+ return g(S, V);
4838
4863
  }).join(",")}, ${g({ x: l, y: 0 }, I)}`,
4839
4864
  stroke: k,
4840
4865
  strokeWidth: p,
4841
4866
  fill: "none"
4842
4867
  },
4843
- `line-${x}`
4868
+ `line-${$}`
4844
4869
  );
4845
4870
  }) }) });
4846
- }, Qr = ({
4871
+ }, Ar = ({
4847
4872
  frequencyData: t,
4848
4873
  width: n,
4849
4874
  height: r,
@@ -4852,28 +4877,28 @@ const _r = ({
4852
4877
  minDb: a,
4853
4878
  ...d
4854
4879
  }) => {
4855
- const o = wt(), { fps: p } = Jo();
4880
+ const o = Yt(), { fps: p } = Jo();
4856
4881
  if (!t) return null;
4857
- const c = t.slice(0.25 * t.length).map((h) => xo(h, { maxDb: e, minDb: a })), i = r * Xr(c), l = o / p;
4882
+ const c = t.slice(0.25 * t.length).map((i) => xo(i, { maxDb: e, minDb: a })), h = r * Xr(c), l = o / p;
4858
4883
  return /* @__PURE__ */ f("div", { style: { width: n, height: r }, children: /* @__PURE__ */ f(
4859
4884
  Zr,
4860
4885
  {
4861
4886
  width: n,
4862
4887
  height: r,
4863
4888
  offsetPixels: s * l,
4864
- amplitude: i,
4889
+ amplitude: h,
4865
4890
  ...d
4866
4891
  }
4867
4892
  ) });
4868
- }, Ar = ({
4893
+ }, Qr = ({
4869
4894
  item: t,
4870
4895
  options: n
4871
4896
  }) => {
4872
4897
  const { frame: r, fps: s } = n, { details: e } = t;
4873
4898
  Lt.setAudioDataManager(s);
4874
4899
  const o = Lt.getAudioDataForFrame(r || 0).slice(0, 0.7 * 512);
4875
- return /* @__PURE__ */ f(Mt, { children: /* @__PURE__ */ f(
4876
- Qr,
4900
+ return /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
4901
+ Ar,
4877
4902
  {
4878
4903
  frequencyData: o,
4879
4904
  width: e.width,
@@ -4892,7 +4917,7 @@ function ze({
4892
4917
  item: t,
4893
4918
  options: n
4894
4919
  }) {
4895
- return mt({ item: t, options: n, children: /* @__PURE__ */ f(Mt, { children: /* @__PURE__ */ f(Ar, { item: t, options: n }) }) });
4920
+ return gt({ item: t, options: n, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Qr, { item: t, options: n }) }) });
4896
4921
  }
4897
4922
  const Ur = (t, n) => {
4898
4923
  if (!n || n === t.length) return [...t];
@@ -4905,7 +4930,7 @@ const Ur = (t, n) => {
4905
4930
  minDb: s = -80
4906
4931
  }) => {
4907
4932
  const e = t, a = Math.floor(0.2 * n.length), d = Math.floor(0.6 * n.length), o = n.slice(a, d), p = Math.floor(o.length / e);
4908
- return Array.from({ length: e }).map((i, l) => xo(
4933
+ return Array.from({ length: e }).map((h, l) => xo(
4909
4934
  o[l * p % o.length],
4910
4935
  { maxDb: r, minDb: s }
4911
4936
  ));
@@ -4920,42 +4945,42 @@ const Ur = (t, n) => {
4920
4945
  copies: o = 1,
4921
4946
  blendMode: p = "normal"
4922
4947
  }) => {
4923
- const c = n, i = r;
4948
+ const c = n, h = r;
4924
4949
  if (!t || t.length === 0)
4925
4950
  return null;
4926
- const { scaling: l, viewBoxVerticalShift: h } = d === "over" ? {
4927
- viewBoxVerticalShift: -i,
4951
+ const { scaling: l, viewBoxVerticalShift: i } = d === "over" ? {
4952
+ viewBoxVerticalShift: -h,
4928
4953
  scaling: 1
4929
4954
  } : d === "under" ? {
4930
4955
  viewBoxVerticalShift: 0,
4931
4956
  scaling: 1
4932
4957
  } : {
4933
- viewBoxVerticalShift: -0.5 * i,
4958
+ viewBoxVerticalShift: -0.5 * h,
4934
4959
  scaling: 0.5
4935
- }, y = 0.15 * c, m = (c - 2 * y) / (t.length - 1), v = Array.from({ length: o }).map((b, $) => {
4936
- const g = 3 * $;
4937
- return Ur(t, g).map((x, I) => ({
4960
+ }, y = 0.15 * c, m = (c - 2 * y) / (t.length - 1), v = Array.from({ length: o }).map((b, x) => {
4961
+ const g = 3 * x;
4962
+ return Ur(t, g).map(($, I) => ({
4938
4963
  x: y + I * m,
4939
- y: l * i * x * (1.2 - 0.5 * qo($ * t.length + I))
4964
+ y: l * h * $ * (1.2 - 0.5 * qo(x * t.length + I))
4940
4965
  }));
4941
4966
  });
4942
- return /* @__PURE__ */ f("div", { style: { width: n, height: r }, children: /* @__PURE__ */ f("svg", { width: c, height: i, viewBox: `0 ${h} ${c} ${i}`, children: v.map((b, $) => {
4943
- const g = b[b.length - 1], M = Array.isArray(a) ? a[$ % a.length] : a, x = Array.isArray(s) ? s[$ % s.length] : s, I = {
4967
+ return /* @__PURE__ */ f("div", { style: { width: n, height: r }, children: /* @__PURE__ */ f("svg", { width: c, height: h, viewBox: `0 ${i} ${c} ${h}`, children: v.map((b, x) => {
4968
+ const g = b[b.length - 1], M = Array.isArray(a) ? a[x % a.length] : a, $ = Array.isArray(s) ? s[x % s.length] : s, I = {
4944
4969
  stroke: M,
4945
4970
  strokeWidth: e,
4946
- fill: x,
4971
+ fill: $,
4947
4972
  style: {
4948
4973
  mixBlendMode: p
4949
4974
  }
4950
4975
  };
4951
- return /* @__PURE__ */ yt(Wt.Fragment, { children: [
4976
+ return /* @__PURE__ */ vt(Et.Fragment, { children: [
4952
4977
  d !== "over" && /* @__PURE__ */ f(
4953
4978
  "path",
4954
4979
  {
4955
4980
  ...I,
4956
4981
  d: `M 0 0, ${b.map((k, S, Y) => {
4957
- const N = S === 0 ? { x: 0, y: 0 } : Y[S - 1], E = N.x + 0.5 * m, F = N.y, X = k.x - 0.5 * m, P = k.y, L = k.x, V = k.y;
4958
- return `C ${E} ${F}, ${X} ${P}, ${L} ${V}`;
4982
+ const N = S === 0 ? { x: 0, y: 0 } : Y[S - 1], V = N.x + 0.5 * m, F = N.y, X = k.x - 0.5 * m, P = k.y, G = k.x, E = k.y;
4983
+ return `C ${V} ${F}, ${X} ${P}, ${G} ${E}`;
4959
4984
  }).join(",")}, C ${g.x + 0.5 * m} ${g.y}, ${c - 0.5 * m} 0, ${c} 0`
4960
4985
  }
4961
4986
  ),
@@ -4964,12 +4989,12 @@ const Ur = (t, n) => {
4964
4989
  {
4965
4990
  ...I,
4966
4991
  d: `M 0 0, ${b.map((k, S, Y) => {
4967
- const N = S === 0 ? { x: 0, y: 0 } : Y[S - 1], E = N.x + 0.5 * m, F = -N.y, X = k.x - 0.5 * m, P = -k.y, L = k.x, V = -k.y;
4968
- return `C ${E} ${F}, ${X} ${P}, ${L} ${V}`;
4992
+ const N = S === 0 ? { x: 0, y: 0 } : Y[S - 1], V = N.x + 0.5 * m, F = -N.y, X = k.x - 0.5 * m, P = -k.y, G = k.x, E = -k.y;
4993
+ return `C ${V} ${F}, ${X} ${P}, ${G} ${E}`;
4969
4994
  }).join(",")}, C ${g.x + 0.5 * m} ${-g.y}, ${c - 0.5 * m} 0, ${c} 0`
4970
4995
  }
4971
4996
  )
4972
- ] }, $);
4997
+ ] }, x);
4973
4998
  }) }) });
4974
4999
  }, qr = ({
4975
5000
  width: t,
@@ -4983,20 +5008,20 @@ const Ur = (t, n) => {
4983
5008
  maxDb: p,
4984
5009
  minDb: c
4985
5010
  }) => {
4986
- const i = mo(null), l = wt(), [h, u] = fo({ width: 400, height: 100 });
5011
+ const h = mo(null), l = Yt(), [i, u] = fo({ width: 400, height: 100 });
4987
5012
  eo(() => {
4988
5013
  u((b) => {
4989
- var $, g;
5014
+ var x, g;
4990
5015
  return {
4991
- width: (($ = i.current) == null ? void 0 : $.offsetWidth) ?? b.width,
4992
- height: ((g = i.current) == null ? void 0 : g.offsetHeight) ?? b.height
5016
+ width: ((x = h.current) == null ? void 0 : x.offsetWidth) ?? b.width,
5017
+ height: ((g = h.current) == null ? void 0 : g.offsetHeight) ?? b.height
4993
5018
  };
4994
5019
  });
4995
5020
  }, [l, u]);
4996
- const { width: y, height: m } = h;
5021
+ const { width: y, height: m } = i;
4997
5022
  if (!r) return null;
4998
5023
  const v = Kr({ frequencyData: r, minDb: c, maxDb: p });
4999
- return /* @__PURE__ */ f("div", { ref: i, style: { width: t, height: n }, children: /* @__PURE__ */ f(
5024
+ return /* @__PURE__ */ f("div", { ref: h, style: { width: t, height: n }, children: /* @__PURE__ */ f(
5000
5025
  Jr,
5001
5026
  {
5002
5027
  values: v,
@@ -5033,7 +5058,7 @@ const Ur = (t, n) => {
5033
5058
  "color",
5034
5059
  "luminosity"
5035
5060
  ].includes(c);
5036
- return /* @__PURE__ */ f(Mt, { children: /* @__PURE__ */ f(
5061
+ return /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
5037
5062
  qr,
5038
5063
  {
5039
5064
  frequencyData: o,
@@ -5051,7 +5076,7 @@ function je({
5051
5076
  item: t,
5052
5077
  options: n
5053
5078
  }) {
5054
- return mt({ item: t, options: n, children: /* @__PURE__ */ f(Mt, { children: /* @__PURE__ */ f(Tr, { item: t, options: n }) }) });
5079
+ return gt({ item: t, options: n, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Tr, { item: t, options: n }) }) });
5055
5080
  }
5056
5081
  const Ho = () => ({
5057
5082
  scale: (t) => ({ transform: `scale(${t})` }),
@@ -5066,7 +5091,7 @@ const Ho = () => ({
5066
5091
  r.push(e * s + n);
5067
5092
  return r;
5068
5093
  }, Dr = (t, n, r, s = !1) => {
5069
- const { from: e, to: a, ease: d } = n, o = n.durationInFrames || 30, p = Number(e), c = Number(a), i = Math.max(1, Number(o));
5094
+ const { from: e, to: a, ease: d } = n, o = n.durationInFrames || 30, p = Number(e), c = Number(a), h = Math.max(1, Number(o));
5070
5095
  if (isNaN(p) || isNaN(c))
5071
5096
  return console.log(
5072
5097
  "[useAnimation interpolate] NaN safeFrom:",
@@ -5080,12 +5105,12 @@ const Ho = () => ({
5080
5105
  "durationInFrames:",
5081
5106
  r
5082
5107
  ), p;
5083
- const l = n.delay || 0, h = s ? [r - i - l, r - l] : [l, l + i];
5108
+ const l = n.delay || 0, i = s ? [r - h - l, r - l] : [l, l + h];
5084
5109
  if (n.property.includes("shake")) {
5085
5110
  const u = s ? Yo(
5086
- i,
5087
- r - i - l
5088
- ) : Yo(i, l);
5111
+ h,
5112
+ r - h - l
5113
+ ) : Yo(h, l);
5089
5114
  return W(
5090
5115
  t,
5091
5116
  u,
@@ -5097,7 +5122,7 @@ const Ho = () => ({
5097
5122
  }
5098
5123
  );
5099
5124
  }
5100
- return W(t, h, [p, c], {
5125
+ return W(t, i, [p, c], {
5101
5126
  extrapolateLeft: "clamp",
5102
5127
  extrapolateRight: "clamp",
5103
5128
  easing: d
@@ -5105,17 +5130,17 @@ const Ho = () => ({
5105
5130
  }, Fo = (t, n, r, s) => {
5106
5131
  const { property: e } = t, a = Dr(n, t, r, s), d = Ho();
5107
5132
  return (d[e] || d.default)(a);
5108
- }, lo = (t, n, r, s = !1, e = !1) => Wt.useMemo(() => {
5133
+ }, lo = (t, n, r, s = !1, e = !1) => Et.useMemo(() => {
5109
5134
  if (t.length === 0) return {};
5110
5135
  const a = t.filter(
5111
5136
  (d) => d.from !== void 0 && d.to !== void 0
5112
5137
  );
5113
5138
  if (a.length !== t.length && console.error("Some animations are invalid and will be ignored"), e) {
5114
5139
  const d = [], o = {};
5115
- a.reverse().forEach((i) => {
5116
- const l = Fo(i, r, n, !1);
5117
- if (i.persist === !0 && r - (i.delay || 0) >= i.durationInFrames) {
5118
- const u = i.to, y = Ho(), m = (y[i.property] || y.default)(u);
5140
+ a.reverse().forEach((h) => {
5141
+ const l = Fo(h, r, n, !1);
5142
+ if (h.persist === !0 && r - (h.delay || 0) >= h.durationInFrames) {
5143
+ const u = h.to, y = Ho(), m = (y[h.property] || y.default)(u);
5119
5144
  Object.keys(m).forEach((v) => {
5120
5145
  v === "transform" ? o[v] = o[v] ? {
5121
5146
  [v]: `${o[v][v]} ${m[v]}`
@@ -5125,14 +5150,14 @@ const Ho = () => ({
5125
5150
  d.push(l);
5126
5151
  });
5127
5152
  const c = { ...d.reduce(
5128
- (i, l) => (Object.keys(l).forEach((h) => {
5129
- h === "transform" ? i[h] = i[h] ? `${i[h]} ${l[h]}` : l[h] : i[h] = l[h];
5130
- }), i),
5153
+ (h, l) => (Object.keys(l).forEach((i) => {
5154
+ i === "transform" ? h[i] = h[i] ? `${h[i]} ${l[i]}` : l[i] : h[i] = l[i];
5155
+ }), h),
5131
5156
  {}
5132
5157
  ) };
5133
- return Object.keys(o).forEach((i) => {
5134
- const l = o[i];
5135
- i === "transform" && l.transform ? c.transform = c.transform ? `${c.transform} ${l.transform}` : l.transform : l[i] !== void 0 && (c[i] = l[i]);
5158
+ return Object.keys(o).forEach((h) => {
5159
+ const l = o[h];
5160
+ h === "transform" && l.transform ? c.transform = c.transform ? `${c.transform} ${l.transform}` : l.transform : l[h] !== void 0 && (c[h] = l[h]);
5136
5161
  }), c;
5137
5162
  } else
5138
5163
  return a.map((o) => Fo(o, r, n, s)).reduce(
@@ -5149,7 +5174,7 @@ const Ho = () => ({
5149
5174
  style: e = {}
5150
5175
  }) => {
5151
5176
  var b;
5152
- const a = wt(), d = lo(
5177
+ const a = Yt(), d = lo(
5153
5178
  ro(t),
5154
5179
  r,
5155
5180
  a,
@@ -5159,50 +5184,50 @@ const Ho = () => ({
5159
5184
  r,
5160
5185
  a,
5161
5186
  !0
5162
- ), p = Wt.useMemo(() => {
5163
- const $ = Object.keys(d).length > 0, g = t == null ? void 0 : t.reduce(
5164
- (x, I) => Math.min(x, I.delay || 0),
5187
+ ), p = Et.useMemo(() => {
5188
+ const x = Object.keys(d).length > 0, g = t == null ? void 0 : t.reduce(
5189
+ ($, I) => Math.min($, I.delay || 0),
5165
5190
  1 / 0
5166
5191
  ), M = a - (g || 0);
5167
- return $ && M < 0 ? { visibility: "hidden" } : d;
5168
- }, [d, a, t]), c = Wt.useMemo(() => {
5169
- if (a >= r)
5192
+ return x && M < 0 ? { visibility: "hidden" } : d;
5193
+ }, [d, a, t]), c = Et.useMemo(() => {
5194
+ if (a > r)
5170
5195
  return { visibility: "hidden" };
5171
- const $ = ro(n);
5172
- if (!$ || $.length === 0) return {};
5196
+ const x = ro(n);
5197
+ if (!x || x.length === 0) return {};
5173
5198
  let g = 0;
5174
- $.forEach((x) => {
5175
- const I = (x.durationInFrames || 0) + (x.delay || 0);
5199
+ x.forEach(($) => {
5200
+ const I = ($.durationInFrames || 0) + ($.delay || 0);
5176
5201
  I > g && (g = I);
5177
5202
  });
5178
5203
  const M = Math.max(0, r - g);
5179
5204
  return a < M ? {} : o;
5180
- }, [o, a, n, r]), l = ((e == null ? void 0 : e.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), h = l ? parseFloat(l[1]) : 0, u = -h, y = Wt.useMemo(() => {
5181
- const $ = {
5205
+ }, [o, a, n, r]), l = ((e == null ? void 0 : e.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), i = l ? parseFloat(l[1]) : 0, u = -i, y = Et.useMemo(() => {
5206
+ const x = {
5182
5207
  ...p
5183
5208
  // , ...timedStyle
5184
5209
  };
5185
5210
  return Object.entries(c).forEach(([g, M]) => {
5186
- g === "transform" ? $[g] = `${$[g] || ""} ${M || ""}`.trim() : g in $ && typeof $[g] == "number" && typeof M == "number" ? $[g] = $[g] * M : $[g] = M;
5187
- }), $;
5211
+ g === "transform" ? x[g] = `${x[g] || ""} ${M || ""}`.trim() : g in x && typeof x[g] == "number" && typeof M == "number" ? x[g] = x[g] * M : x[g] = M;
5212
+ }), x;
5188
5213
  }, [p, c]);
5189
5214
  if ((b = y.transform) != null && b.includes("rotate")) {
5190
- const $ = y.transform;
5191
- y.transform = $.replace(
5215
+ const x = y.transform;
5216
+ y.transform = x.replace(
5192
5217
  /rotate\(([^)]+)deg\)/,
5193
5218
  (g, M) => `rotate(${parseFloat(M) - u}deg)`
5194
5219
  );
5195
5220
  }
5196
5221
  const m = to(() => {
5197
- const $ = y.transform || "", { translateX: g, translateY: M, scale: x, rotation: I, rotateY: k } = _o($);
5198
- return `${g} ${M} ${x} ${I || `rotate(${h}deg)`} ${k}`.trim();
5199
- }, [y, h]);
5222
+ const x = y.transform || "", { translateX: g, translateY: M, scale: $, rotation: I, rotateY: k } = _o(x);
5223
+ return `${g} ${M} ${$} ${I || `rotate(${i}deg)`} ${k}`.trim();
5224
+ }, [y, i]);
5200
5225
  let v = d;
5201
- return h > 0 && v.transform && v.transform.includes("translateX") && (v = {
5226
+ return i > 0 && v.transform && v.transform.includes("translateX") && (v = {
5202
5227
  ...v,
5203
5228
  transform: v.transform.replace(
5204
5229
  /translateX\(([^)]+)\)/g,
5205
- ($, g) => `translateX(${parseFloat(g)}px)`
5230
+ (x, g) => `translateX(${parseFloat(g)}px)`
5206
5231
  )
5207
5232
  }), /* @__PURE__ */ f(
5208
5233
  "div",
@@ -5241,8 +5266,8 @@ const Ho = () => ({
5241
5266
  p && (s = p[p.length - 1]);
5242
5267
  const c = t.match(/rotate\([^)]+\)/g);
5243
5268
  c && (e = c[c.length - 1]);
5244
- const i = t.match(/rotateY\([^)]+\)/g);
5245
- return i && (a = i[i.length - 1]), { translateX: n, translateY: r, scale: s, rotation: e, rotateY: a };
5269
+ const h = t.match(/rotateY\([^)]+\)/g);
5270
+ return h && (a = h[h.length - 1]), { translateX: n, translateY: r, scale: s, rotation: e, rotateY: a };
5246
5271
  };
5247
5272
  w.linear;
5248
5273
  w.linear;
@@ -5260,28 +5285,28 @@ const te = ({
5260
5285
  children: s,
5261
5286
  style: e = {}
5262
5287
  }) => {
5263
- var h;
5288
+ var i;
5264
5289
  const a = lo(
5265
5290
  ro(t),
5266
5291
  n,
5267
5292
  r,
5268
5293
  !1,
5269
5294
  !0
5270
- ), o = ((e == null ? void 0 : e.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), p = o ? parseFloat(o[1]) : 0, c = -p, i = Wt.useMemo(() => ({
5295
+ ), o = ((e == null ? void 0 : e.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), p = o ? parseFloat(o[1]) : 0, c = -p, h = Et.useMemo(() => ({
5271
5296
  ...a
5272
5297
  }), [a]);
5273
- if ((h = i.transform) != null && h.includes("rotate")) {
5274
- const u = i.transform;
5275
- i.transform = u.replace(
5298
+ if ((i = h.transform) != null && i.includes("rotate")) {
5299
+ const u = h.transform;
5300
+ h.transform = u.replace(
5276
5301
  /rotate\(([^)]+)deg\)/,
5277
5302
  (y, m) => `rotate(${parseFloat(m) - c}deg)`
5278
5303
  );
5279
5304
  }
5280
5305
  to(() => {
5281
- const u = i.transform || "", { translateX: y, translateY: m, scale: v, rotation: b, rotateY: $ } = _o(u);
5282
- return `${y} ${m} ${v} ${b || `rotate(${p}deg)`} ${$}`.trim();
5283
- }, [i, p]);
5284
- let l = i;
5306
+ const u = h.transform || "", { translateX: y, translateY: m, scale: v, rotation: b, rotateY: x } = _o(u);
5307
+ return `${y} ${m} ${v} ${b || `rotate(${p}deg)`} ${x}`.trim();
5308
+ }, [h, p]);
5309
+ let l = h;
5285
5310
  return p > 0 && l.transform && l.transform.includes("translateX") && (l = {
5286
5311
  ...l,
5287
5312
  transform: l.transform.replace(
@@ -5292,7 +5317,7 @@ const te = ({
5292
5317
  "div",
5293
5318
  {
5294
5319
  style: {
5295
- overflow: i.overflow || "visible",
5320
+ overflow: h.overflow || "visible",
5296
5321
  pointerEvents: "none",
5297
5322
  ...l
5298
5323
  },
@@ -5300,7 +5325,7 @@ const te = ({
5300
5325
  "div",
5301
5326
  {
5302
5327
  style: {
5303
- ...i,
5328
+ ...h,
5304
5329
  overflow: "visible",
5305
5330
  pointerEvents: "none",
5306
5331
  height: "max-content"
@@ -5310,7 +5335,7 @@ const te = ({
5310
5335
  )
5311
5336
  }
5312
5337
  );
5313
- }, io = (t) => {
5338
+ }, ho = (t) => {
5314
5339
  if (typeof (t == null ? void 0 : t.ease) == "function") return t.ease;
5315
5340
  switch (t == null ? void 0 : t.easing) {
5316
5341
  case "ease-in":
@@ -5332,8 +5357,8 @@ const te = ({
5332
5357
  keyframeAnimations: a
5333
5358
  }) => {
5334
5359
  const d = a ? [...a].reverse().find((y) => y.property.includes("maskReveal")) : void 0;
5335
- let o = 1, p = o, c = r, i = 0, l = 0, h = n, u;
5336
- return (s || 0) - e.display.from >= 0 && (d == null ? void 0 : d.property) === "maskRevealIn" ? (o = Math.min((s || 0) / d.durationInFrames, 1), p = Math.max(0, Math.min(1, io(d)(o))), c = r * p) : (s || 0) - e.display.from >= 0 && (d == null ? void 0 : d.property) === "maskRevealCenterIn" ? (o = Math.min((s || 0) / d.durationInFrames, 1), p = Math.max(0, Math.min(1, io(d)(o))), h = n, c = r, i = 0, l = 0, u = `circle(${Math.max(n, r) * p}px at 50% 50%)`) : (s || 0) - e.display.from >= 0 && (d == null ? void 0 : d.property) === "maskRevealCornerIn" && (o = Math.min((s || 0) / d.durationInFrames, 1), p = Math.max(0, Math.min(1, io(d)(o))), h = n * p, c = r * p, i = n - h, l = 0), d ? /* @__PURE__ */ f(
5360
+ let o = 1, p = o, c = r, h = 0, l = 0, i = n, u;
5361
+ return (s || 0) - e.display.from >= 0 && (d == null ? void 0 : d.property) === "maskRevealIn" ? (o = Math.min((s || 0) / d.durationInFrames, 1), p = Math.max(0, Math.min(1, ho(d)(o))), c = r * p) : (s || 0) - e.display.from >= 0 && (d == null ? void 0 : d.property) === "maskRevealCenterIn" ? (o = Math.min((s || 0) / d.durationInFrames, 1), p = Math.max(0, Math.min(1, ho(d)(o))), i = n, c = r, h = 0, l = 0, u = `circle(${Math.max(n, r) * p}px at 50% 50%)`) : (s || 0) - e.display.from >= 0 && (d == null ? void 0 : d.property) === "maskRevealCornerIn" && (o = Math.min((s || 0) / d.durationInFrames, 1), p = Math.max(0, Math.min(1, ho(d)(o))), i = n * p, c = r * p, h = n - i, l = 0), d ? /* @__PURE__ */ f(
5337
5362
  "div",
5338
5363
  {
5339
5364
  style: {
@@ -5347,9 +5372,9 @@ const te = ({
5347
5372
  {
5348
5373
  style: {
5349
5374
  position: "absolute",
5350
- left: i,
5375
+ left: h,
5351
5376
  top: l,
5352
- width: h,
5377
+ width: i,
5353
5378
  height: c,
5354
5379
  overflow: "hidden",
5355
5380
  clipPath: u
@@ -5358,33 +5383,33 @@ const te = ({
5358
5383
  }
5359
5384
  )
5360
5385
  }
5361
- ) : /* @__PURE__ */ f(Mt, { children: t });
5386
+ ) : /* @__PURE__ */ f(kt, { children: t });
5362
5387
  }, He = ({
5363
5388
  item: t,
5364
5389
  options: n
5365
5390
  }) => {
5366
5391
  var b;
5367
- const { fps: r, resizeState: s, frame: e } = n, { id: a, details: d, animations: o } = t, { durationInFrames: p } = $t(t.display, r), { animationIn: c, animationOut: i, animationTimed: l } = It(
5392
+ const { fps: r, resizeState: s, frame: e } = n, { id: a, details: d, animations: o } = t, { durationInFrames: p } = It(t.display, r), { animationIn: c, animationOut: h, animationTimed: l } = Nt(
5368
5393
  o,
5369
5394
  t,
5370
5395
  e,
5371
5396
  r
5372
- ), h = [];
5373
- o != null && o.loop && o.loop.composition.forEach(($) => {
5397
+ ), i = [];
5398
+ o != null && o.loop && o.loop.composition.forEach((x) => {
5374
5399
  var g;
5375
- (g = $.details) != null && g.fonts && h.push(...$.details.fonts);
5376
- }), o != null && o.in && o.in.composition.forEach(($) => {
5400
+ (g = x.details) != null && g.fonts && i.push(...x.details.fonts);
5401
+ }), o != null && o.in && o.in.composition.forEach((x) => {
5377
5402
  var g;
5378
- (g = $.details) != null && g.fonts && h.push(...$.details.fonts);
5379
- }), o != null && o.out && o.out.composition.forEach(($) => {
5403
+ (g = x.details) != null && g.fonts && i.push(...x.details.fonts);
5404
+ }), o != null && o.out && o.out.composition.forEach((x) => {
5380
5405
  var g;
5381
- (g = $.details) != null && g.fonts && h.push(...$.details.fonts);
5406
+ (g = x.details) != null && g.fonts && i.push(...x.details.fonts);
5382
5407
  });
5383
5408
  const u = s == null ? void 0 : s[t.id], y = (u == null ? void 0 : u.width) ?? d.width, m = (u == null ? void 0 : u.height) ?? d.height, v = /* @__PURE__ */ f(
5384
5409
  Jt,
5385
5410
  {
5386
5411
  animationIn: c,
5387
- animationOut: i,
5412
+ animationOut: h,
5388
5413
  durationInFrames: p,
5389
5414
  style: d,
5390
5415
  children: /* @__PURE__ */ f(
@@ -5416,17 +5441,17 @@ const te = ({
5416
5441
  )
5417
5442
  }
5418
5443
  );
5419
- return mt({ item: t, options: n, children: v });
5444
+ return gt({ item: t, options: n, children: v });
5420
5445
  }, _e = ({
5421
5446
  item: t,
5422
5447
  options: n
5423
5448
  }) => {
5424
- const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = $t(t.display, r), { animationIn: p, animationOut: c } = It(
5449
+ const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = It(t.display, r), { animationIn: p, animationOut: c } = Nt(
5425
5450
  d,
5426
5451
  t,
5427
5452
  e,
5428
5453
  r
5429
- ), i = s == null ? void 0 : s[t.id], l = (i == null ? void 0 : i.width) ?? a.radius, h = /* @__PURE__ */ f(
5454
+ ), h = s == null ? void 0 : s[t.id], l = (h == null ? void 0 : h.width) ?? a.radius, i = /* @__PURE__ */ f(
5430
5455
  Jt,
5431
5456
  {
5432
5457
  durationInFrames: o,
@@ -5442,20 +5467,20 @@ const te = ({
5442
5467
  )
5443
5468
  }
5444
5469
  );
5445
- return mt({ item: t, options: n, children: h });
5470
+ return gt({ item: t, options: n, children: i });
5446
5471
  }, Ze = ({
5447
5472
  item: t,
5448
5473
  options: n
5449
5474
  }) => {
5450
- const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = $t(t.display, r), { animationIn: p, animationOut: c } = It(
5475
+ const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = It(t.display, r), { animationIn: p, animationOut: c } = Nt(
5451
5476
  d,
5452
5477
  t,
5453
5478
  e,
5454
5479
  r
5455
- ), i = s == null ? void 0 : s[t.id];
5480
+ ), h = s == null ? void 0 : s[t.id];
5456
5481
  let l = a.length;
5457
- i != null && i.width ? l = i.width : i != null && i.height && (l = i.height * 2 / Math.sqrt(3));
5458
- const h = /* @__PURE__ */ f(
5482
+ h != null && h.width ? l = h.width : h != null && h.height && (l = h.height * 2 / Math.sqrt(3));
5483
+ const i = /* @__PURE__ */ f(
5459
5484
  Jt,
5460
5485
  {
5461
5486
  durationInFrames: o,
@@ -5472,36 +5497,36 @@ const te = ({
5472
5497
  )
5473
5498
  }
5474
5499
  );
5475
- return mt({ item: t, options: n, children: h });
5476
- }, Qe = ({
5500
+ return gt({ item: t, options: n, children: i });
5501
+ }, Ae = ({
5477
5502
  item: t,
5478
5503
  options: n
5479
5504
  }) => {
5480
- const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = $t(t.display, r), { animationIn: p, animationOut: c } = It(
5505
+ const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = It(t.display, r), { animationIn: p, animationOut: c } = Nt(
5481
5506
  d,
5482
5507
  t,
5483
5508
  e,
5484
5509
  r
5485
- ), i = s == null ? void 0 : s[t.id], l = (m, v, b) => {
5486
- const $ = b, g = b, M = Math.PI * 2 / (m * 2);
5487
- let x = Number.POSITIVE_INFINITY, I = Number.NEGATIVE_INFINITY, k = Number.POSITIVE_INFINITY, S = Number.NEGATIVE_INFINITY;
5510
+ ), h = s == null ? void 0 : s[t.id], l = (m, v, b) => {
5511
+ const x = b, g = b, M = Math.PI * 2 / (m * 2);
5512
+ let $ = Number.POSITIVE_INFINITY, I = Number.NEGATIVE_INFINITY, k = Number.POSITIVE_INFINITY, S = Number.NEGATIVE_INFINITY;
5488
5513
  for (let Y = 0; Y < m * 2; Y++) {
5489
- const N = Y % 2 === 0 ? b : v, E = M * Y - Math.PI / 2, F = $ + N * Math.cos(E), X = g + N * Math.sin(E);
5490
- x = Math.min(x, F), I = Math.max(I, F), k = Math.min(k, X), S = Math.max(S, X);
5514
+ const N = Y % 2 === 0 ? b : v, V = M * Y - Math.PI / 2, F = x + N * Math.cos(V), X = g + N * Math.sin(V);
5515
+ $ = Math.min($, F), I = Math.max(I, F), k = Math.min(k, X), S = Math.max(S, X);
5491
5516
  }
5492
5517
  return {
5493
- width: I - x,
5518
+ width: I - $,
5494
5519
  height: S - k
5495
5520
  };
5496
5521
  };
5497
- let h = a.outerRadius, u = a.innerRadius;
5498
- if (i != null && i.width || i != null && i.height) {
5522
+ let i = a.outerRadius, u = a.innerRadius;
5523
+ if (h != null && h.width || h != null && h.height) {
5499
5524
  const m = l(
5500
5525
  a.points || 5,
5501
5526
  a.innerRadius || 0,
5502
5527
  a.outerRadius || 0
5503
- ), v = i != null && i.width ? i.width / m.width : 1, b = i != null && i.height ? i.height / m.height : 1, $ = Math.max(v, b);
5504
- h = (a.outerRadius || 0) * $, u = (a.innerRadius || 0) * $;
5528
+ ), v = h != null && h.width ? h.width / m.width : 1, b = h != null && h.height ? h.height / m.height : 1, x = Math.max(v, b);
5529
+ i = (a.outerRadius || 0) * x, u = (a.innerRadius || 0) * x;
5505
5530
  }
5506
5531
  const y = /* @__PURE__ */ f(
5507
5532
  Jt,
@@ -5515,41 +5540,41 @@ const te = ({
5515
5540
  {
5516
5541
  points: a.points || 5,
5517
5542
  innerRadius: u ?? 0,
5518
- outerRadius: h ?? 0,
5543
+ outerRadius: i ?? 0,
5519
5544
  fill: a.backgroundColor
5520
5545
  }
5521
5546
  )
5522
5547
  }
5523
5548
  );
5524
- return mt({ item: t, options: n, children: y });
5525
- }, Ae = ({
5549
+ return gt({ item: t, options: n, children: y });
5550
+ }, Qe = ({
5526
5551
  item: t,
5527
5552
  options: n
5528
5553
  }) => {
5529
- const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { animationIn: o, animationOut: p } = It(
5554
+ const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { animationIn: o, animationOut: p } = Nt(
5530
5555
  d,
5531
5556
  t,
5532
5557
  e,
5533
5558
  r
5534
- ), { durationInFrames: c } = $t(t.display, r), i = s == null ? void 0 : s[t.id], l = (y, m) => {
5535
- const v = m, b = m, $ = Math.PI * 2 / y;
5536
- let g = Number.POSITIVE_INFINITY, M = Number.NEGATIVE_INFINITY, x = Number.POSITIVE_INFINITY, I = Number.NEGATIVE_INFINITY;
5559
+ ), { durationInFrames: c } = It(t.display, r), h = s == null ? void 0 : s[t.id], l = (y, m) => {
5560
+ const v = m, b = m, x = Math.PI * 2 / y;
5561
+ let g = Number.POSITIVE_INFINITY, M = Number.NEGATIVE_INFINITY, $ = Number.POSITIVE_INFINITY, I = Number.NEGATIVE_INFINITY;
5537
5562
  for (let k = 0; k < y; k++) {
5538
- const S = $ * k - Math.PI / 2, Y = v + m * Math.cos(S), N = b + m * Math.sin(S);
5539
- g = Math.min(g, Y), M = Math.max(M, Y), x = Math.min(x, N), I = Math.max(I, N);
5563
+ const S = x * k - Math.PI / 2, Y = v + m * Math.cos(S), N = b + m * Math.sin(S);
5564
+ g = Math.min(g, Y), M = Math.max(M, Y), $ = Math.min($, N), I = Math.max(I, N);
5540
5565
  }
5541
5566
  return {
5542
5567
  width: M - g,
5543
- height: I - x
5568
+ height: I - $
5544
5569
  };
5545
5570
  };
5546
- let h = a.radius;
5547
- if (i != null && i.width || i != null && i.height) {
5571
+ let i = a.radius;
5572
+ if (h != null && h.width || h != null && h.height) {
5548
5573
  const y = l(
5549
5574
  a.points || 3,
5550
5575
  a.radius || 0
5551
- ), m = i != null && i.width ? i.width / y.width : 1, v = i != null && i.height ? i.height / y.height : 1, b = Math.max(m, v);
5552
- h = (a.radius || 0) * b;
5576
+ ), m = h != null && h.width ? h.width / y.width : 1, v = h != null && h.height ? h.height / y.height : 1, b = Math.max(m, v);
5577
+ i = (a.radius || 0) * b;
5553
5578
  }
5554
5579
  const u = /* @__PURE__ */ f(
5555
5580
  Jt,
@@ -5562,23 +5587,23 @@ const te = ({
5562
5587
  In,
5563
5588
  {
5564
5589
  points: a.points || 3,
5565
- radius: h ?? 0,
5590
+ radius: i ?? 0,
5566
5591
  fill: a.backgroundColor
5567
5592
  }
5568
5593
  )
5569
5594
  }
5570
5595
  );
5571
- return mt({ item: t, options: n, children: u });
5596
+ return gt({ item: t, options: n, children: u });
5572
5597
  }, Ue = ({
5573
5598
  item: t,
5574
5599
  options: n
5575
5600
  }) => {
5576
- const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = $t(t.display, r), { animationIn: p, animationOut: c } = It(
5601
+ const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = It(t.display, r), { animationIn: p, animationOut: c } = Nt(
5577
5602
  d,
5578
5603
  t,
5579
5604
  e,
5580
5605
  r
5581
- ), i = s == null ? void 0 : s[t.id], l = i != null && i.width ? i.width / 2 : a.rx, h = i != null && i.height ? i.height / 2 : a.ry, u = /* @__PURE__ */ f(
5606
+ ), h = s == null ? void 0 : s[t.id], l = h != null && h.width ? h.width / 2 : a.rx, i = h != null && h.height ? h.height / 2 : a.ry, u = /* @__PURE__ */ f(
5582
5607
  Jt,
5583
5608
  {
5584
5609
  durationInFrames: o,
@@ -5589,7 +5614,7 @@ const te = ({
5589
5614
  kn,
5590
5615
  {
5591
5616
  rx: l ?? 0,
5592
- ry: h ?? 0,
5617
+ ry: i ?? 0,
5593
5618
  fill: a.backgroundColor,
5594
5619
  stroke: a.stroke,
5595
5620
  strokeWidth: a.strokeWidth
@@ -5597,7 +5622,7 @@ const te = ({
5597
5622
  )
5598
5623
  }
5599
5624
  );
5600
- return mt({ item: t, options: n, children: u });
5625
+ return gt({ item: t, options: n, children: u });
5601
5626
  }, Zo = () => ({
5602
5627
  scale: (t) => ({ transform: `scale(${t})` }),
5603
5628
  opacity: (t) => ({ opacity: t }),
@@ -5650,15 +5675,15 @@ const te = ({
5650
5675
  r.push(e * s + n);
5651
5676
  return r;
5652
5677
  }, ne = (t, n, r, s = !1) => {
5653
- const { from: e, to: a, ease: d } = n, o = n.durationInFrames || 30, p = Number(e), c = Number(a), i = Math.max(1, Number(o));
5678
+ const { from: e, to: a, ease: d } = n, o = n.durationInFrames || 30, p = Number(e), c = Number(a), h = Math.max(1, Number(o));
5654
5679
  if (isNaN(p) || isNaN(c))
5655
5680
  return p;
5656
- const l = n.delay || 0, h = s ? [r - i - l, r - l] : [l, l + i];
5681
+ const l = n.delay || 0, i = s ? [r - h - l, r - l] : [l, l + h];
5657
5682
  if (n.property.includes("shake")) {
5658
5683
  const u = s ? Ro(
5659
- i,
5660
- r - i - l
5661
- ) : Ro(i, l);
5684
+ h,
5685
+ r - h - l
5686
+ ) : Ro(h, l);
5662
5687
  return W(
5663
5688
  t,
5664
5689
  u,
@@ -5670,7 +5695,7 @@ const te = ({
5670
5695
  }
5671
5696
  );
5672
5697
  }
5673
- return W(t, h, [p, c], {
5698
+ return W(t, i, [p, c], {
5674
5699
  extrapolateLeft: "clamp",
5675
5700
  extrapolateRight: "clamp",
5676
5701
  easing: d
@@ -5678,17 +5703,17 @@ const te = ({
5678
5703
  }, Xo = (t, n, r, s) => {
5679
5704
  const { property: e } = t, a = ne(n, t, r, s), d = Zo();
5680
5705
  return (d[e] || d.default)(a);
5681
- }, uo = (t, n, r, s = !1, e = !1) => Wt.useMemo(() => {
5706
+ }, uo = (t, n, r, s = !1, e = !1) => Et.useMemo(() => {
5682
5707
  if (t.length === 0) return {};
5683
5708
  const a = t.filter(
5684
5709
  (d) => d.from !== void 0 && d.to !== void 0
5685
5710
  );
5686
5711
  if (a.length !== t.length && console.error("Some animations are invalid and will be ignored"), e) {
5687
5712
  const d = [], o = {};
5688
- a.reverse().forEach((i) => {
5689
- const l = Xo(i, r, n, !1);
5690
- if (i.persist === !0 && r - (i.delay || 0) >= i.durationInFrames) {
5691
- const u = i.to, y = Zo(), m = (y[i.property] || y.default)(u);
5713
+ a.reverse().forEach((h) => {
5714
+ const l = Xo(h, r, n, !1);
5715
+ if (h.persist === !0 && r - (h.delay || 0) >= h.durationInFrames) {
5716
+ const u = h.to, y = Zo(), m = (y[h.property] || y.default)(u);
5692
5717
  Object.keys(m).forEach((v) => {
5693
5718
  v === "transform" ? o[v] = o[v] ? {
5694
5719
  [v]: `${o[v][v]} ${m[v]}`
@@ -5698,14 +5723,14 @@ const te = ({
5698
5723
  d.push(l);
5699
5724
  });
5700
5725
  const c = { ...d.reduce(
5701
- (i, l) => (Object.keys(l).forEach((h) => {
5702
- h === "transform" || h === "filter" ? i[h] = i[h] ? `${i[h]} ${l[h]}` : l[h] : i[h] = l[h];
5703
- }), i),
5726
+ (h, l) => (Object.keys(l).forEach((i) => {
5727
+ i === "transform" || i === "filter" ? h[i] = h[i] ? `${h[i]} ${l[i]}` : l[i] : h[i] = l[i];
5728
+ }), h),
5704
5729
  {}
5705
5730
  ) };
5706
- return Object.keys(o).forEach((i) => {
5707
- const l = o[i];
5708
- i === "transform" && l.transform ? c.transform = c.transform ? `${c.transform} ${l.transform}` : l.transform : l[i] !== void 0 && (c[i] = l[i]);
5731
+ return Object.keys(o).forEach((h) => {
5732
+ const l = o[h];
5733
+ h === "transform" && l.transform ? c.transform = c.transform ? `${c.transform} ${l.transform}` : l.transform : l[h] !== void 0 && (c[h] = l[h]);
5709
5734
  }), c;
5710
5735
  } else
5711
5736
  return a.map(
@@ -5737,48 +5762,48 @@ const te = ({
5737
5762
  s,
5738
5763
  e,
5739
5764
  !0
5740
- ), i = uo(
5765
+ ), h = uo(
5741
5766
  qt(r),
5742
5767
  s,
5743
5768
  e,
5744
5769
  !1,
5745
5770
  !0
5746
- ), l = Wt.useMemo(() => {
5771
+ ), l = Et.useMemo(() => {
5747
5772
  var k;
5748
- const M = Object.keys(p).length > 0, x = (k = qt(t)) == null ? void 0 : k.reduce(
5773
+ const M = Object.keys(p).length > 0, $ = (k = qt(t)) == null ? void 0 : k.reduce(
5749
5774
  (S, Y) => Math.min(S, Y.delay || 0),
5750
5775
  1 / 0
5751
- ), I = e - (x || 0);
5776
+ ), I = e - ($ || 0);
5752
5777
  return M && I < 0 ? { visibility: a ? "visible" : "hidden" } : p;
5753
- }, [p, e, t, a]), h = Wt.useMemo(() => {
5778
+ }, [p, e, t, a]), i = Et.useMemo(() => {
5754
5779
  const M = qt(n);
5755
5780
  if (!M || M.length === 0) return {};
5756
- let x = 0;
5781
+ let $ = 0;
5757
5782
  M.forEach((k) => {
5758
5783
  const S = (k.durationInFrames || 0) + (k.delay || 0);
5759
- S > x && (x = S);
5784
+ S > $ && ($ = S);
5760
5785
  });
5761
- const I = Math.max(0, s - x);
5762
- return e < I ? {} : e >= s ? { visibility: a ? "visible" : "hidden" } : c;
5763
- }, [c, e, n, s, a]), y = ((o == null ? void 0 : o.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), m = y ? parseFloat(y[1]) : 0, v = -m, b = Wt.useMemo(() => {
5786
+ const I = Math.max(0, s - $);
5787
+ return e < I ? {} : e > s ? { visibility: a ? "visible" : "hidden" } : c;
5788
+ }, [c, e, n, s, a]), y = ((o == null ? void 0 : o.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), m = y ? parseFloat(y[1]) : 0, v = -m, b = Et.useMemo(() => {
5764
5789
  const M = {
5765
5790
  ...l,
5766
- ...i
5791
+ ...h
5767
5792
  };
5768
- return Object.entries(h).forEach(([x, I]) => {
5769
- x === "transform" ? M[x] = `${M[x] || ""} ${I || ""}`.trim() : x in M && typeof M[x] == "number" && typeof I == "number" ? M[x] = M[x] * I : M[x] = I;
5793
+ return Object.entries(i).forEach(([$, I]) => {
5794
+ $ === "transform" ? M[$] = `${M[$] || ""} ${I || ""}`.trim() : $ in M && typeof M[$] == "number" && typeof I == "number" ? M[$] = M[$] * I : M[$] = I;
5770
5795
  }), M;
5771
- }, [l, i, h]);
5796
+ }, [l, h, i]);
5772
5797
  if ((g = b.transform) != null && g.includes("rotate")) {
5773
5798
  const M = b.transform;
5774
5799
  b.transform = M.replace(
5775
5800
  /rotate\(([^)]+)deg\)/,
5776
- (x, I) => `rotate(${parseFloat(I) - v}deg)`
5801
+ ($, I) => `rotate(${parseFloat(I) - v}deg)`
5777
5802
  );
5778
5803
  }
5779
- const $ = to(() => {
5780
- const M = b.transform || "", { translateX: x, translateY: I, scale: k, rotation: S, rotateY: Y } = ee(M);
5781
- return `${x} ${I} ${k} ${S || `rotate(${m}deg)`} ${Y}`.trim();
5804
+ const x = to(() => {
5805
+ const M = b.transform || "", { translateX: $, translateY: I, scale: k, rotation: S, rotateY: Y } = ee(M);
5806
+ return `${$} ${I} ${k} ${S || `rotate(${m}deg)`} ${Y}`.trim();
5782
5807
  }, [b, m]);
5783
5808
  return /* @__PURE__ */ f(
5784
5809
  "div",
@@ -5796,7 +5821,7 @@ const te = ({
5796
5821
  ...b,
5797
5822
  rotate: `${v}deg`,
5798
5823
  overflow: "visible",
5799
- transform: $,
5824
+ transform: x,
5800
5825
  pointerEvents: "none"
5801
5826
  },
5802
5827
  children: d
@@ -5814,35 +5839,35 @@ const te = ({
5814
5839
  p && (s = p[p.length - 1]);
5815
5840
  const c = t.match(/rotate\([^)]+\)/g);
5816
5841
  c && (e = c[c.length - 1]);
5817
- const i = t.match(/rotateY\([^)]+\)/g);
5818
- return i && (a = i[i.length - 1]), { translateX: n, translateY: r, scale: s, rotation: e, rotateY: a };
5842
+ const h = t.match(/rotateY\([^)]+\)/g);
5843
+ return h && (a = h[h.length - 1]), { translateX: n, translateY: r, scale: s, rotation: e, rotateY: a };
5819
5844
  };
5820
5845
  w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.elastic(1), w.elastic(1), w.elastic(1), w.elastic(1), w.linear, w.linear, w.linear, w.linear, w.ease, w.ease, w.ease, w.ease, w.ease, w.ease, w.ease, w.ease, w.ease, w.ease;
5821
5846
  function Ke({
5822
5847
  item: t,
5823
5848
  options: n
5824
5849
  }) {
5825
- var N, E, F, X, P;
5826
- const { fps: r, frame: s } = n, { details: e, animations: a } = t, { width: d, height: o, strokeWidth: p, strokeBackground: c, strokeColors: i } = e, { animationIn: l, animationOut: h } = It(a, t), { durationInFrames: u } = $t(t.display, r), y = d, m = o, v = p, b = y, $ = m, g = y, M = m, x = b + $ + g + M;
5850
+ var N, V, F, X, P;
5851
+ const { fps: r, frame: s } = n, { details: e, animations: a } = t, { width: d, height: o, strokeWidth: p, strokeBackground: c, strokeColors: h } = e, { animationIn: l, animationOut: i } = Nt(a, t), { durationInFrames: u } = It(t.display, r), y = d, m = o, v = p, b = y, x = m, g = y, M = m, $ = b + x + g + M;
5827
5852
  let I = 0;
5828
5853
  if (((N = a == null ? void 0 : a.out) == null ? void 0 : N.name) === "progressSquareAnimationOut") {
5829
- const L = (E = a == null ? void 0 : a.out) == null ? void 0 : E.composition[0].durationInFrames, V = Math.max(
5854
+ const G = (V = a == null ? void 0 : a.out) == null ? void 0 : V.composition[0].durationInFrames, E = Math.max(
5830
5855
  t.display.to * r / 1e3 - (s || 0) - 1,
5831
5856
  0
5832
5857
  );
5833
- I = Math.min(V / L * 100, 100) / 100, V > L && (I = 1);
5858
+ I = Math.min(E / G * 100, 100) / 100, E > G && (I = 1);
5834
5859
  }
5835
5860
  if (((F = a == null ? void 0 : a.in) == null ? void 0 : F.name) === "progressSquareAnimationIn") {
5836
- const { from: L } = $t(
5861
+ const { from: G } = It(
5837
5862
  {
5838
5863
  from: t.display.from,
5839
5864
  to: t.display.to
5840
5865
  },
5841
5866
  r
5842
- ), V = (X = a == null ? void 0 : a.in) == null ? void 0 : X.composition[0].durationInFrames, O = Math.max((s || 0) - L, 0);
5843
- O < V ? I = Math.min(O / V * 100, 100) / 100 : ((P = a == null ? void 0 : a.out) == null ? void 0 : P.name) !== "progressSquareAnimationOut" && (I = 1);
5867
+ ), E = (X = a == null ? void 0 : a.in) == null ? void 0 : X.composition[0].durationInFrames, O = Math.max((s || 0) - G, 0);
5868
+ O < E ? I = Math.min(O / E * 100, 100) / 100 : ((P = a == null ? void 0 : a.out) == null ? void 0 : P.name) !== "progressSquareAnimationOut" && (I = 1);
5844
5869
  }
5845
- const k = I * 100 / 100 * x, S = i[0] || "#4A90E2", Y = /* @__PURE__ */ f(
5870
+ const k = I * 100 / 100 * $, S = h[0] || "#4A90E2", Y = /* @__PURE__ */ f(
5846
5871
  re,
5847
5872
  {
5848
5873
  style: Kt(
@@ -5853,9 +5878,9 @@ function Ke({
5853
5878
  }
5854
5879
  ),
5855
5880
  animationIn: l,
5856
- animationOut: h,
5881
+ animationOut: i,
5857
5882
  durationInFrames: u,
5858
- children: /* @__PURE__ */ yt(
5883
+ children: /* @__PURE__ */ vt(
5859
5884
  "div",
5860
5885
  {
5861
5886
  style: {
@@ -5882,7 +5907,7 @@ function Ke({
5882
5907
  }
5883
5908
  }
5884
5909
  ),
5885
- /* @__PURE__ */ yt("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
5910
+ /* @__PURE__ */ vt("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
5886
5911
  /* @__PURE__ */ f(
5887
5912
  "div",
5888
5913
  {
@@ -5904,12 +5929,12 @@ function Ke({
5904
5929
  top: 0,
5905
5930
  right: 0,
5906
5931
  width: v,
5907
- height: Math.min(k - b, $),
5932
+ height: Math.min(k - b, x),
5908
5933
  backgroundColor: S
5909
5934
  }
5910
5935
  }
5911
5936
  ),
5912
- k > b + $ && /* @__PURE__ */ f(
5937
+ k > b + x && /* @__PURE__ */ f(
5913
5938
  "div",
5914
5939
  {
5915
5940
  style: {
@@ -5917,7 +5942,7 @@ function Ke({
5917
5942
  bottom: 0,
5918
5943
  right: 0,
5919
5944
  width: Math.min(
5920
- k - b - $,
5945
+ k - b - x,
5921
5946
  g
5922
5947
  ),
5923
5948
  height: v,
@@ -5925,7 +5950,7 @@ function Ke({
5925
5950
  }
5926
5951
  }
5927
5952
  ),
5928
- k > b + $ + g && /* @__PURE__ */ f(
5953
+ k > b + x + g && /* @__PURE__ */ f(
5929
5954
  "div",
5930
5955
  {
5931
5956
  style: {
@@ -5934,7 +5959,7 @@ function Ke({
5934
5959
  left: 0,
5935
5960
  width: v,
5936
5961
  height: Math.min(
5937
- k - b - $ - g,
5962
+ k - b - x - g,
5938
5963
  M
5939
5964
  ),
5940
5965
  backgroundColor: S
@@ -5947,39 +5972,39 @@ function Ke({
5947
5972
  )
5948
5973
  }
5949
5974
  );
5950
- return mt({ item: t, options: n, children: Y });
5975
+ return gt({ item: t, options: n, children: Y });
5951
5976
  }
5952
- const Qo = (t) => {
5977
+ const Ao = (t) => {
5953
5978
  const { trackItemIds: n, transitionsMap: r, trackItemsMap: s } = t, e = /* @__PURE__ */ new Map();
5954
5979
  Object.values(r).forEach((c) => {
5955
5980
  var u, y;
5956
- const { fromId: i, toId: l, kind: h } = c;
5957
- h !== "none" && (e.has(i) || e.set(i, []), e.has(l) || e.set(l, []), (u = e.get(i)) == null || u.push(c), (y = e.get(l)) == null || y.push(c));
5981
+ const { fromId: h, toId: l, kind: i } = c;
5982
+ i !== "none" && (e.has(h) || e.set(h, []), e.has(l) || e.set(l, []), (u = e.get(h)) == null || u.push(c), (y = e.get(l)) == null || y.push(c));
5958
5983
  });
5959
5984
  const a = [], d = /* @__PURE__ */ new Set(), o = (c) => {
5960
- const i = [];
5985
+ const h = [];
5961
5986
  let l = c;
5962
5987
  for (; l && !d.has(l); ) {
5963
5988
  d.add(l);
5964
- const h = s[l];
5965
- i.push(h);
5989
+ const i = s[l];
5990
+ h.push(i);
5966
5991
  const u = Object.values(r).find(
5967
5992
  (y) => y.fromId === l && y.kind !== "none"
5968
5993
  );
5969
5994
  if (!u) break;
5970
- i.push(u), l = u.toId;
5995
+ h.push(u), l = u.toId;
5971
5996
  }
5972
- return i;
5997
+ return h;
5973
5998
  }, p = Object.values(r).filter(
5974
5999
  (c) => c.kind !== "none"
5975
6000
  );
5976
6001
  for (const c of n)
5977
- if (!d.has(c) && (!e.has(c) || !p.some((i) => i.toId === c))) {
5978
- const i = o(c);
5979
- i.length > 0 && a.push(i);
6002
+ if (!d.has(c) && (!e.has(c) || !p.some((h) => h.toId === c))) {
6003
+ const h = o(c);
6004
+ h.length > 0 && a.push(h);
5980
6005
  }
5981
6006
  return a.forEach((c) => {
5982
- c.sort((i, l) => "display" in i && "display" in l ? i.display.from - l.display.from : 0);
6007
+ c.sort((h, l) => "display" in h && "display" in l ? h.display.from - l.display.from : 0);
5983
6008
  }), a;
5984
6009
  };
5985
6010
  function Je({
@@ -5995,44 +6020,44 @@ function Je({
5995
6020
  transitionsTemplateMap: o,
5996
6021
  itemsTemplateMap: p,
5997
6022
  size: c,
5998
- fps: i,
6023
+ fps: h,
5999
6024
  structure: l,
6000
- frame: h,
6025
+ frame: i,
6001
6026
  mergedTrackItemsDeatilsMap: u
6002
- } = n, y = Tt(p || {}), { trim: m, display: v } = t, b = Qo({
6027
+ } = n, y = Tt(p || {}), { trim: m, display: v } = t, b = Ao({
6003
6028
  trackItemIds: Tt(d || []),
6004
6029
  transitionsMap: Tt(o || {}),
6005
6030
  trackItemsMap: y || {}
6006
- }), $ = (m == null ? void 0 : m.from) || 0;
6031
+ }), x = (m == null ? void 0 : m.from) || 0;
6007
6032
  d == null || d.filter((M) => !!y[M]).forEach((M) => {
6008
- const x = y[M];
6009
- x != null && x.display && (x.display.from = x.display.from - $, x.display.to = x.display.to - $);
6033
+ const $ = y[M];
6034
+ $ != null && $.display && ($.display.from = $.display.from - x, $.display.to = $.display.to - x);
6010
6035
  });
6011
- const g = b.map((M, x) => {
6012
- var S, Y, N, E;
6036
+ const g = b.map((M, $) => {
6037
+ var S, Y, N, V;
6013
6038
  if (M.length === 1) {
6014
6039
  if (!M[0]) return null;
6015
6040
  const F = y[(S = M[0]) == null ? void 0 : S.id];
6016
6041
  if (!F) return null;
6017
- let X = {}, P = {}, L = [];
6042
+ let X = {}, P = {}, G = [];
6018
6043
  if (F.type === "template") {
6019
6044
  const O = l == null ? void 0 : l.find((C) => C.id === F.id);
6020
- L = (O == null ? void 0 : O.items) || [];
6045
+ G = (O == null ? void 0 : O.items) || [];
6021
6046
  for (const C in u)
6022
6047
  O != null && O.items.includes(C) && (P[C] = {
6023
6048
  ...u[C]
6024
6049
  });
6025
6050
  if (r)
6026
6051
  return r(F, {
6027
- fps: i,
6052
+ fps: h,
6028
6053
  handleTextChange: a,
6029
6054
  onTextBlur: e,
6030
6055
  editableTextId: s,
6031
- itemsTemplateIds: L,
6056
+ itemsTemplateIds: G,
6032
6057
  itemsTemplateMap: P,
6033
6058
  transitionsTemplateMap: X,
6034
6059
  itemStructure: l == null ? void 0 : l.find((C) => C.id === F.id),
6035
- frame: (h ?? 0) - v.from * i / 1e3,
6060
+ frame: (i ?? 0) - v.from * h / 1e3,
6036
6061
  size: {
6037
6062
  width: ((Y = F.details) == null ? void 0 : Y.width) || 0,
6038
6063
  height: ((N = F.details) == null ? void 0 : N.height) || 0
@@ -6042,25 +6067,25 @@ function Je({
6042
6067
  mergedTrackItemsDeatilsMap: u
6043
6068
  });
6044
6069
  }
6045
- let V = !1;
6070
+ let E = !1;
6046
6071
  return r ? r(F, {
6047
6072
  onTextBlur: e,
6048
6073
  handleTextChange: a,
6049
6074
  fps: n.fps,
6050
6075
  editableTextId: s,
6051
- active: V,
6076
+ active: E,
6052
6077
  itemsTemplateIds: d,
6053
6078
  itemsTemplateMap: y,
6054
6079
  transitionsTemplateMap: o,
6055
6080
  isTransition: !1,
6056
6081
  size: c,
6057
- frame: (h ?? 0) - v.from * i / 1e3
6082
+ frame: (i ?? 0) - v.from * h / 1e3
6058
6083
  }) : null;
6059
6084
  }
6060
- const I = y[M[0].id], k = (((E = I == null ? void 0 : I.display) == null ? void 0 : E.from) || 0) / 1e3 * n.fps;
6061
- return /* @__PURE__ */ f(Vo, { from: k, children: M.map((F) => {
6085
+ const I = y[M[0].id], k = (((V = I == null ? void 0 : I.display) == null ? void 0 : V.from) || 0) / 1e3 * n.fps;
6086
+ return /* @__PURE__ */ f(Eo, { from: k, children: M.map((F) => {
6062
6087
  if (F.type === "transition") {
6063
- const X = F.duration / 1e3 * i, P = To[F.kind];
6088
+ const X = F.duration / 1e3 * h, P = To[F.kind];
6064
6089
  return P ? P({
6065
6090
  durationInFrames: X,
6066
6091
  id: F.id,
@@ -6070,16 +6095,16 @@ function Je({
6070
6095
  }) : null;
6071
6096
  }
6072
6097
  return r ? r(F, {
6073
- fps: i,
6098
+ fps: h,
6074
6099
  handleTextChange: a,
6075
6100
  onTextBlur: e,
6076
6101
  editableTextId: s,
6077
6102
  isTransition: !0,
6078
6103
  size: c
6079
6104
  }) : null;
6080
- }) }, x);
6105
+ }) }, $);
6081
6106
  });
6082
- return mt({ children: g, item: t, options: n });
6107
+ return gt({ children: g, item: t, options: n });
6083
6108
  }
6084
6109
  function qe({
6085
6110
  item: t,
@@ -6094,13 +6119,13 @@ function qe({
6094
6119
  frame: o,
6095
6120
  onTextBlur: p,
6096
6121
  handleTextChange: c,
6097
- itemStructure: i
6098
- } = n, { animations: l } = t, { durationInFrames: h } = $t(t.display, d), { animationIn: u, animationOut: y, animationTimed: m } = It(
6122
+ itemStructure: h
6123
+ } = n, { animations: l } = t, { durationInFrames: i } = It(t.display, d), { animationIn: u, animationOut: y, animationTimed: m } = Nt(
6099
6124
  l,
6100
6125
  t,
6101
6126
  o,
6102
6127
  d
6103
- ), v = Tt(a || {}), $ = Qo({
6128
+ ), v = Tt(a || {}), x = Ao({
6104
6129
  trackItemIds: Tt(e || []),
6105
6130
  transitionsMap: {},
6106
6131
  trackItemsMap: v
@@ -6109,9 +6134,9 @@ function qe({
6109
6134
  const S = v[I[0].id];
6110
6135
  if (!S) return null;
6111
6136
  let Y = k;
6112
- if (i) {
6113
- const { tracks: N } = i;
6114
- Y = N.length - N.findIndex((E) => E.items.includes(S.id));
6137
+ if (h) {
6138
+ const { tracks: N } = h;
6139
+ Y = N.length - N.findIndex((V) => V.items.includes(S.id));
6115
6140
  }
6116
6141
  return r ? r(S, {
6117
6142
  fps: d,
@@ -6123,13 +6148,13 @@ function qe({
6123
6148
  }) : null;
6124
6149
  }
6125
6150
  return null;
6126
- }), g = $ && $.map((I) => I), M = (o || 0) - t.display.from * d / 1e3, x = /* @__PURE__ */ f(
6127
- Zt,
6151
+ }), g = x && x.map((I) => I), M = (o || 0) - t.display.from * d / 1e3, $ = /* @__PURE__ */ f(
6152
+ At,
6128
6153
  {
6129
6154
  animationIn: u,
6130
6155
  animationOut: y,
6131
6156
  frame: M,
6132
- durationInFrames: h,
6157
+ durationInFrames: i,
6133
6158
  style: {
6134
6159
  width: t.details.width,
6135
6160
  height: t.details.height
@@ -6138,7 +6163,7 @@ function qe({
6138
6163
  Ut,
6139
6164
  {
6140
6165
  animationTimed: m,
6141
- durationInFrames: h,
6166
+ durationInFrames: i,
6142
6167
  frame: M,
6143
6168
  style: {
6144
6169
  width: t.details.width,
@@ -6149,11 +6174,11 @@ function qe({
6149
6174
  )
6150
6175
  }
6151
6176
  );
6152
- return mt({ item: t, options: n, children: x });
6177
+ return gt({ item: t, options: n, children: $ });
6153
6178
  }
6154
6179
  export {
6155
6180
  Re as Audio,
6156
- mt as BaseSequence,
6181
+ gt as BaseSequence,
6157
6182
  Xe as Caption,
6158
6183
  _e as Circle,
6159
6184
  qe as Composition,
@@ -6162,17 +6187,17 @@ export {
6162
6187
  Pe as Illustration,
6163
6188
  We as Image,
6164
6189
  Ce as LinealAudioBars,
6165
- Ae as Polygon,
6190
+ Qe as Polygon,
6166
6191
  Oe as ProgressBar,
6167
- Le as ProgressFrame,
6192
+ Ge as ProgressFrame,
6168
6193
  Ke as ProgressSquare,
6169
- Ge as RadialAudioBars,
6194
+ Le as RadialAudioBars,
6170
6195
  He as Rect,
6171
6196
  yo as SafeHtmlInCanvas,
6172
- Ve as Shape,
6173
- Qe as Star,
6197
+ Ee as Shape,
6198
+ Ae as Star,
6174
6199
  Je as Template,
6175
- Ee as Text,
6200
+ Ve as Text,
6176
6201
  Ze as Triangle,
6177
6202
  Be as Video,
6178
6203
  ze as WaveAudioBars,
@@ -6180,11 +6205,11 @@ export {
6180
6205
  Fe as calculateContainerFigureStyles,
6181
6206
  Kt as calculateContainerStyles,
6182
6207
  wn as calculateCropStyles,
6183
- Eo as calculateMediaStyles,
6184
- Ct as calculateTextStyles,
6208
+ Vo as calculateMediaStyles,
6209
+ Gt as calculateTextStyles,
6185
6210
  vo as getAnimatedRemotionEffects,
6186
- It as getAnimations,
6211
+ Nt as getAnimations,
6187
6212
  zo as getEffectsCssInfo,
6188
- Qo as groupTrackItems,
6213
+ Ao as groupTrackItems,
6189
6214
  go as mapRemotionEffects
6190
6215
  };