@cliquify.me/elements-ui 9.0.1 → 9.0.3

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 +876 -896
  2. package/package.json +3 -3
package/dist/index.es.js CHANGED
@@ -1,24 +1,24 @@
1
- var qn = Object.defineProperty;
2
- var Tn = (t, r, n) => r in t ? qn(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
3
- var Bt = (t, r, n) => Tn(t, typeof r != "symbol" ? r + "" : r, n);
4
- import { jsx as f, jsxs as gt, Fragment as kt } from "react/jsx-runtime";
5
- import { Sequence as sn, AbsoluteFill as Nr, Audio as an, Easing as I, interpolate as W, HtmlInCanvas as Dn, useCurrentFrame as Nt, OffthreadVideo as sr, Img as qt, useVideoConfig as cn, delayRender as to, continueRender as Gr, cancelRender as ro, spring as wt, random as no } from "remotion";
6
- import { TransitionSeries as dn, Transitions as oo } from "@cliquify.me/transitions";
1
+ var Jn = Object.defineProperty;
2
+ var qn = (t, r, n) => r in t ? Jn(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
3
+ var Bt = (t, r, n) => qn(t, typeof r != "symbol" ? r + "" : r, n);
4
+ import { jsx as f, jsxs as xt, Fragment as Nt } from "react/jsx-runtime";
5
+ import { Sequence as sn, AbsoluteFill as Nr, Audio as an, Easing as I, interpolate as W, HtmlInCanvas as Tn, useCurrentFrame as Rt, OffthreadVideo as sr, Img as qt, useVideoConfig as cn, delayRender as Dn, continueRender as Gr, cancelRender as to, spring as It, random as ro } from "remotion";
6
+ import { TransitionSeries as dn, Transitions as no } from "@cliquify.me/transitions";
7
7
  import { BoxAnim as jt, ContentAnim as At, MaskAnim as Tt } from "@cliquify.me/animations";
8
8
  import un from "@emotion/styled";
9
9
  import { css as pr } from "@emotion/react";
10
- import Vt, { Component as eo, useState as fr, useEffect as er, useMemo as yr, useRef as Er } from "react";
11
- import { chromaticAberration as so } from "@remotion/effects/chromatic-aberration";
12
- import { noise as ao } from "@remotion/effects/noise";
13
- import { pixelate as co } from "@remotion/effects/pixelate";
14
- import { ENTER_EDIT_MODE as io } from "@cliquify.me/state";
15
- import { getAudioData as uo, visualizeAudio as lo } from "@remotion/media-utils";
16
- import { isEqual as ho, cloneDeep as or } from "lodash";
17
- import { Circle as po, Triangle as fo, Star as yo, Polygon as bo, Ellipse as vo } from "@remotion/shapes";
18
- const It = (t, r) => {
10
+ import Vt, { Component as oo, useState as fr, useEffect as er, useMemo as yr, useRef as Er } from "react";
11
+ import { chromaticAberration as eo } from "@remotion/effects/chromatic-aberration";
12
+ import { noise as so } from "@remotion/effects/noise";
13
+ import { pixelate as ao } from "@remotion/effects/pixelate";
14
+ import { ENTER_EDIT_MODE as co } from "@cliquify.me/state";
15
+ import { getAudioData as io, visualizeAudio as uo } from "@remotion/media-utils";
16
+ import { isEqual as lo, cloneDeep as or } from "lodash";
17
+ import { Circle as ho, Triangle as po, Star as fo, Polygon as yo, Ellipse as bo } from "@remotion/shapes";
18
+ const kt = (t, r) => {
19
19
  const n = t.from / 1e3 * r, s = t.to / 1e3 * r - n;
20
20
  return { from: n, durationInFrames: s };
21
- }, go = (t, r) => ({
21
+ }, vo = (t, r) => ({
22
22
  width: t.width || "100%",
23
23
  height: t.height || "auto",
24
24
  top: -(r.y || 0),
@@ -31,12 +31,12 @@ const It = (t, r) => {
31
31
  ) * ((t.borderRadius || 0) / 100)}px`;
32
32
  return {
33
33
  pointerEvents: "none",
34
- ...go(t, r),
34
+ ...vo(t, r),
35
35
  borderRadius: s,
36
36
  overflow: "hidden",
37
37
  ...n
38
38
  };
39
- }, hn = (t, r) => {
39
+ }, ea = (t, r) => {
40
40
  const n = `${Math.min(
41
41
  r.width || t.width || 0,
42
42
  r.height || t.height || 0
@@ -92,7 +92,7 @@ const It = (t, r) => {
92
92
  boxShadow: t.boxShadow ? `${t.boxShadow.x}px ${t.boxShadow.y}px ${t.boxShadow.blur}px ${t.boxShadow.color}` : "",
93
93
  ...n
94
94
  };
95
- }, mo = (t, r = {}) => ({
95
+ }, go = (t, r = {}) => ({
96
96
  pointerEvents: "auto",
97
97
  top: t.top || 0,
98
98
  left: t.left || 0,
@@ -145,13 +145,13 @@ const It = (t, r) => {
145
145
  }
146
146
  )
147
147
  }
148
- ), $t = ({
148
+ ), St = ({
149
149
  item: t,
150
150
  options: r,
151
151
  children: n
152
152
  }) => {
153
153
  var y, x, m, M;
154
- const { details: s } = t, { fps: c, isTransition: a } = r, { from: i, durationInFrames: e } = It(
154
+ const { details: s } = t, { fps: c, isTransition: a } = r, { from: i, durationInFrames: e } = kt(
155
155
  {
156
156
  from: t.display.from,
157
157
  to: t.display.to
@@ -168,7 +168,7 @@ const It = (t, r) => {
168
168
  }
169
169
  u && (delete l.boxShadow, delete l.filter);
170
170
  const b = h ? "!pointer-events-auto" : "";
171
- return a ? /* @__PURE__ */ gt(
171
+ return a ? /* @__PURE__ */ xt(
172
172
  dn.Sequence,
173
173
  {
174
174
  durationInFrames: e,
@@ -204,7 +204,7 @@ const It = (t, r) => {
204
204
  ]
205
205
  },
206
206
  t.id
207
- ) : /* @__PURE__ */ gt(
207
+ ) : /* @__PURE__ */ xt(
208
208
  sn,
209
209
  {
210
210
  from: i,
@@ -245,7 +245,7 @@ const It = (t, r) => {
245
245
  t.id
246
246
  );
247
247
  };
248
- function pn({
248
+ function hn({
249
249
  item: t,
250
250
  options: r
251
251
  }) {
@@ -261,9 +261,9 @@ function pn({
261
261
  pauseWhenBuffering: !0
262
262
  }
263
263
  );
264
- return $t({ item: t, options: r, children: a });
264
+ return St({ item: t, options: r, children: a });
265
265
  }
266
- const Rt = (t, r, n, s, c) => {
266
+ const Ft = (t, r, n, s, c) => {
267
267
  let a = null, i = null, e = null, p = null;
268
268
  return c != null && c.isAnimationEditor || c != null && c.insideTemplate, t != null && t.in && (a = [], t.in.composition.forEach((o) => {
269
269
  var b, y, x, m, M;
@@ -443,7 +443,7 @@ const Rt = (t, r, n, s, c) => {
443
443
  animationLoop: e,
444
444
  animationTimed: p
445
445
  };
446
- }, xo = (t) => {
446
+ }, mo = (t) => {
447
447
  const c = t % 30;
448
448
  let a = 0, i = 0;
449
449
  if (c < 15)
@@ -456,7 +456,7 @@ const Rt = (t, r, n, s, c) => {
456
456
  }, Ar = (t, r, n, s = 10) => {
457
457
  const c = r / (1e3 * s), i = Math.min(t / n, c) / c;
458
458
  return i >= 1 ? 1 : 0.5 + 0.5 * i;
459
- }, $o = un.span`
459
+ }, xo = un.span`
460
460
  position: relative;
461
461
  display: inline-block;
462
462
  padding: 0 0.15em;
@@ -497,7 +497,7 @@ const Rt = (t, r, n, s, c) => {
497
497
  background: ${t.activeFillColor};
498
498
  }
499
499
  `}
500
- `, So = un.span`
500
+ `, $o = un.span`
501
501
  display: inline-block;
502
502
  position: relative;
503
503
  margin: 0;
@@ -521,7 +521,7 @@ const Rt = (t, r, n, s, c) => {
521
521
  ` : pr`
522
522
  color: ${t.wordColor};
523
523
  `}
524
- `, Mo = ["letter", "letterUmi", "letterTracy"], wo = ["letterKaraoke", "letterPopline"], Io = ({
524
+ `, So = ["letter", "letterUmi", "letterTracy"], Mo = ["letterKaraoke", "letterPopline"], wo = ({
525
525
  word: t,
526
526
  offsetFrom: r,
527
527
  activeColor: n,
@@ -533,19 +533,19 @@ const Rt = (t, r, n, s, c) => {
533
533
  fps: p,
534
534
  textDecoration: o
535
535
  }) => {
536
- const { start: h, end: d } = t, u = (h + r) / 1e3 * p, l = (d + r) / 1e3 * p, b = e >= u && e < l, y = e >= u, x = b ? n : y ? c : a, m = wo.includes(i) && b ? 1.2 : 1, M = t.word.length, S = l - u;
536
+ const { start: h, end: d } = t, u = (h + r) / 1e3 * p, l = (d + r) / 1e3 * p, b = e >= u && e < l, y = e >= u, x = b ? n : y ? c : a, m = Mo.includes(i) && b ? 1.2 : 1, M = t.word.length, S = l - u;
537
537
  return /* @__PURE__ */ f(
538
- $o,
538
+ xo,
539
539
  {
540
540
  isActive: b,
541
541
  activeFillColor: s,
542
542
  scale: m,
543
543
  animation: i,
544
544
  textDecoration: o,
545
- children: /* @__PURE__ */ f(So, { wordColor: x, children: t.word.split("").map(($, k) => {
545
+ children: /* @__PURE__ */ f($o, { wordColor: x, children: t.word.split("").map(($, k) => {
546
546
  const g = S / M, v = u + k * g, w = v + g;
547
547
  let N = 1, R = !0;
548
- return Mo.includes(i) && (R = e >= v), i === "letterTracy" && (N = W(
548
+ return So.includes(i) && (R = e >= v), i === "letterTracy" && (N = W(
549
549
  e,
550
550
  [v, w],
551
551
  [0, 1],
@@ -571,21 +571,21 @@ const Rt = (t, r, n, s, c) => {
571
571
  }
572
572
  );
573
573
  };
574
- function fn({
574
+ function pn({
575
575
  item: t,
576
576
  options: r
577
577
  }) {
578
- const { fps: n, frame: s } = r, { details: c, display: a, animations: i } = t, { animationIn: e, animationOut: p, animationTimed: o } = Rt(
578
+ const { fps: n, frame: s } = r, { details: c, display: a, animations: i } = t, { animationIn: e, animationOut: p, animationTimed: o } = Ft(
579
579
  i,
580
580
  t,
581
581
  s,
582
582
  n,
583
583
  r
584
- ), { from: h, durationInFrames: d } = It(t.display, n), u = Array.isArray(c.words) ? c.words : [], [l] = u, b = a.from - ((l == null ? void 0 : l.start) || 0);
584
+ ), { from: h, durationInFrames: d } = kt(t.display, n), u = Array.isArray(c.words) ? c.words : [], [l] = u, b = a.from - ((l == null ? void 0 : l.start) || 0);
585
585
  let y = Math.max((s ?? 0) - h, 0), x = {};
586
586
  switch (c == null ? void 0 : c.animation) {
587
587
  case "letterElla":
588
- x = xo(y);
588
+ x = mo(y);
589
589
  break;
590
590
  case "letterHormozi":
591
591
  x.scale = Ar(
@@ -611,7 +611,7 @@ function fn({
611
611
  transform: `scale(${x.scale})`
612
612
  }
613
613
  }, M = (s || 0) - t.display.from * n / 1e3, { boxShadow: S, ...$ } = Pt(c), { color: k, textShadow: g, ...v } = Dt(c);
614
- return $t({
614
+ return St({
615
615
  item: t,
616
616
  options: r,
617
617
  children: /* @__PURE__ */ f(
@@ -643,7 +643,7 @@ function fn({
643
643
  transition: "transform 0.2s ease"
644
644
  },
645
645
  children: u.map((w, N) => /* @__PURE__ */ f(
646
- Io,
646
+ wo,
647
647
  {
648
648
  color: c.color,
649
649
  appearedColor: c.appearedColor || c.color,
@@ -666,18 +666,18 @@ function fn({
666
666
  )
667
667
  });
668
668
  }
669
- const yn = ({
669
+ const fn = ({
670
670
  item: t,
671
671
  options: r
672
672
  }) => {
673
673
  var u, l, b, y;
674
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Rt(
674
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Ft(
675
675
  a,
676
676
  t,
677
677
  s,
678
678
  n,
679
679
  r
680
- ), { durationInFrames: o } = It(t.display, n), h = (s || 0) - t.display.from * n / 1e3, d = /* @__PURE__ */ f(
680
+ ), { durationInFrames: o } = kt(t.display, n), h = (s || 0) - t.display.from * n / 1e3, d = /* @__PURE__ */ f(
681
681
  jt,
682
682
  {
683
683
  style: Pt(c),
@@ -714,9 +714,9 @@ const yn = ({
714
714
  )
715
715
  }
716
716
  );
717
- return $t({ item: t, options: r, children: d });
717
+ return St({ item: t, options: r, children: d });
718
718
  };
719
- class _r extends eo {
719
+ class _r extends oo {
720
720
  constructor(r) {
721
721
  super(r), this.state = { hasError: !1 };
722
722
  }
@@ -731,8 +731,8 @@ class _r extends eo {
731
731
  );
732
732
  }
733
733
  render() {
734
- return this.state.hasError || !this.props.effects ? /* @__PURE__ */ f(kt, { children: this.props.children }) : /* @__PURE__ */ f(
735
- Dn,
734
+ return this.state.hasError || !this.props.effects ? /* @__PURE__ */ f(Nt, { children: this.props.children }) : /* @__PURE__ */ f(
735
+ Tn,
736
736
  {
737
737
  width: this.props.width,
738
738
  height: this.props.height,
@@ -742,7 +742,7 @@ class _r extends eo {
742
742
  );
743
743
  }
744
744
  }
745
- const bn = ({
745
+ const yn = ({
746
746
  src: t,
747
747
  isVideo: r,
748
748
  frame: n,
@@ -759,7 +759,7 @@ const bn = ({
759
759
  marqueeDetails: l,
760
760
  effects: b
761
761
  }) => {
762
- const y = Nt(), x = typeof n == "number" && !isNaN(n) ? n : y, m = Math.max(0, x - (s || 0)), M = Math.min(1, Math.max(0, m / (c || 1))), S = e || 300, $ = p || 300, k = (l == null ? void 0 : l.direction) || "horizontal", g = k === "static", v = Math.min(15, Math.max(1, Number((l == null ? void 0 : l.repeatX) ?? 5))), w = Math.min(15, Math.max(1, Number((l == null ? void 0 : l.repeatY) ?? 5))), N = (l == null ? void 0 : l.baseSpeed) !== void 0 ? Number(l.baseSpeed) : 2, R = (l == null ? void 0 : l.speedVariation) !== void 0 ? Number(l.speedVariation) : 0.5, C = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialBaseSpeed) !== void 0 ? Number(l.initialBaseSpeed) : N, E = l != null && l.hasInitialValue ? C + (N - C) * M : N, Y = g ? 0 : E * 400, _ = g ? 0 : E * 400, F = (l == null ? void 0 : l.scaleFactor) !== void 0 ? Number(l.scaleFactor) : 1, X = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialScaleFactor) !== void 0 ? Number(l.initialScaleFactor) : F, P = l != null && l.hasInitialValue ? X + (F - X) * M : F, z = (l == null ? void 0 : l.lineOffset) !== void 0 ? Number(l.lineOffset) : 0.5, O = (l == null ? void 0 : l.gapX) !== void 0 ? Number(l.gapX) : 60, A = (l == null ? void 0 : l.gapY) !== void 0 ? Number(l.gapY) : 60, J = O / 100 * S, Z = A / 100 * $, D = S, L = $, H = D * P + J, G = L * P + Z, ft = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0, U = k === "vertical" || k === "up" || k === "down", q = k === "diagonal", ot = (v - 1) / 2, vt = (w - 1) / 2, nt = w, ut = v, it = Array.from({ length: nt }, (tt, st) => st - vt), mt = Array.from({ length: ut }, (tt, st) => st - ot), pt = (tt, st, et, ct) => /* @__PURE__ */ f(
762
+ const y = Rt(), x = typeof n == "number" && !isNaN(n) ? n : y, m = Math.max(0, x - (s || 0)), M = Math.min(1, Math.max(0, m / (c || 1))), S = e || 300, $ = p || 300, k = (l == null ? void 0 : l.direction) || "horizontal", g = k === "static", v = Math.min(15, Math.max(1, Number((l == null ? void 0 : l.repeatX) ?? 5))), w = Math.min(15, Math.max(1, Number((l == null ? void 0 : l.repeatY) ?? 5))), N = (l == null ? void 0 : l.baseSpeed) !== void 0 ? Number(l.baseSpeed) : 2, R = (l == null ? void 0 : l.speedVariation) !== void 0 ? Number(l.speedVariation) : 0.5, C = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialBaseSpeed) !== void 0 ? Number(l.initialBaseSpeed) : N, E = l != null && l.hasInitialValue ? C + (N - C) * M : N, Y = g ? 0 : E * 400, _ = g ? 0 : E * 400, F = (l == null ? void 0 : l.scaleFactor) !== void 0 ? Number(l.scaleFactor) : 1, X = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialScaleFactor) !== void 0 ? Number(l.initialScaleFactor) : F, P = l != null && l.hasInitialValue ? X + (F - X) * M : F, z = (l == null ? void 0 : l.lineOffset) !== void 0 ? Number(l.lineOffset) : 0.5, O = (l == null ? void 0 : l.gapX) !== void 0 ? Number(l.gapX) : 60, j = (l == null ? void 0 : l.gapY) !== void 0 ? Number(l.gapY) : 60, q = O / 100 * S, U = j / 100 * $, T = S, A = $, H = T * P + q, G = A * P + U, bt = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0, L = k === "vertical" || k === "up" || k === "down", K = k === "diagonal", ot = (v - 1) / 2, gt = (w - 1) / 2, nt = w, ut = v, it = Array.from({ length: nt }, (D, st) => st - gt), mt = Array.from({ length: ut }, (D, st) => st - ot), ft = (D, st, et, ct) => /* @__PURE__ */ f(
763
763
  "div",
764
764
  {
765
765
  style: {
@@ -768,13 +768,13 @@ const bn = ({
768
768
  top: `calc(50% + ${et}px)`,
769
769
  transform: `translate(-50%, -50%) scale(${P})`,
770
770
  transformOrigin: "center center",
771
- width: `${D}px`,
772
- height: `${L}px`,
771
+ width: `${T}px`,
772
+ height: `${A}px`,
773
773
  borderRadius: o || 0,
774
- boxShadow: ft,
774
+ boxShadow: bt,
775
775
  opacity: ct ? 1 : 0.85
776
776
  },
777
- children: /* @__PURE__ */ gt(
777
+ children: /* @__PURE__ */ xt(
778
778
  "div",
779
779
  {
780
780
  style: {
@@ -823,9 +823,9 @@ const bn = ({
823
823
  }
824
824
  )
825
825
  },
826
- tt
826
+ D
827
827
  );
828
- return U ? /* @__PURE__ */ f(
828
+ return L ? /* @__PURE__ */ f(
829
829
  "div",
830
830
  {
831
831
  style: {
@@ -835,22 +835,22 @@ const bn = ({
835
835
  overflow: "visible",
836
836
  borderRadius: o || 0
837
837
  },
838
- children: mt.map((tt, st) => {
838
+ children: mt.map((D, st) => {
839
839
  let et = st % 2 === 0 ? 1 : -1;
840
840
  k === "up" && (et = -1), k === "down" && (et = 1);
841
- const ct = 1 + st % 2 * (R * 0.5), dt = _ > 0 && et !== 0 ? et * (m * _ * 0.1 * ct) + tt * (G * z) : tt * (G * z), yt = _ === 0 || et === 0 ? 0 : (dt % G + G) % G - G / 2;
842
- return it.map((bt, St) => {
843
- const lt = tt * H, j = bt * G + yt;
844
- return pt(
845
- `v-${st}-${St}`,
841
+ const ct = 1 + st % 2 * (R * 0.5), dt = _ > 0 && et !== 0 ? et * (m * _ * 0.1 * ct) + D * (G * z) : D * (G * z), yt = _ === 0 || et === 0 ? 0 : (dt % G + G) % G - G / 2;
842
+ return it.map((vt, Mt) => {
843
+ const lt = D * H, tt = vt * G + yt;
844
+ return ft(
845
+ `v-${st}-${Mt}`,
846
846
  lt,
847
- j,
848
- tt === 0 && bt === 0
847
+ tt,
848
+ D === 0 && vt === 0
849
849
  );
850
850
  });
851
851
  })
852
852
  }
853
- ) : q ? /* @__PURE__ */ f(
853
+ ) : K ? /* @__PURE__ */ f(
854
854
  "div",
855
855
  {
856
856
  style: {
@@ -860,15 +860,15 @@ const bn = ({
860
860
  overflow: "visible",
861
861
  borderRadius: o || 0
862
862
  },
863
- children: it.map((tt, st) => {
864
- const et = st % 2 === 0 ? 1 : -1, ct = st % 2 === 0 ? 1 : -1, dt = 1 + st % 2 * (R * 0.5), yt = Y > 0 ? et * (m * Y * 0.1 * dt) + tt * (H * z) : tt * (H * z), bt = Y === 0 ? 0 : (yt % H + H) % H - H / 2, St = _ > 0 ? ct * (m * _ * 0.1 * dt) + tt * (G * z) : tt * (G * z), lt = _ === 0 ? 0 : (St % G + G) % G - G / 2;
865
- return mt.map((j, Ft) => {
866
- const Yt = j * H + bt, Xt = tt * G + lt;
867
- return pt(
868
- `d-${st}-${Ft}`,
863
+ children: it.map((D, st) => {
864
+ const et = st % 2 === 0 ? 1 : -1, ct = st % 2 === 0 ? 1 : -1, dt = 1 + st % 2 * (R * 0.5), yt = Y > 0 ? et * (m * Y * 0.1 * dt) + D * (H * z) : D * (H * z), vt = Y === 0 ? 0 : (yt % H + H) % H - H / 2, Mt = _ > 0 ? ct * (m * _ * 0.1 * dt) + D * (G * z) : D * (G * z), lt = _ === 0 ? 0 : (Mt % G + G) % G - G / 2;
865
+ return mt.map((tt, ht) => {
866
+ const Yt = tt * H + vt, Xt = D * G + lt;
867
+ return ft(
868
+ `d-${st}-${ht}`,
869
869
  Yt,
870
870
  Xt,
871
- j === 0 && tt === 0
871
+ tt === 0 && D === 0
872
872
  );
873
873
  });
874
874
  })
@@ -883,23 +883,23 @@ const bn = ({
883
883
  overflow: "visible",
884
884
  borderRadius: o || 0
885
885
  },
886
- children: it.map((tt, st) => {
886
+ children: it.map((D, st) => {
887
887
  let et = st % 2 === 0 ? 1 : -1;
888
888
  k === "left" && (et = -1), k === "right" && (et = 1);
889
- const ct = 1 + st % 2 * (R * 0.5), dt = Y > 0 && et !== 0 ? et * (m * Y * 0.1 * ct) + tt * (H * z) : tt * (H * z), yt = Y === 0 || et === 0 ? 0 : (dt % H + H) % H - H / 2;
890
- return mt.map((bt, St) => {
891
- const lt = bt * H + yt, j = tt * G;
892
- return pt(
893
- `h-${st}-${St}`,
889
+ const ct = 1 + st % 2 * (R * 0.5), dt = Y > 0 && et !== 0 ? et * (m * Y * 0.1 * ct) + D * (H * z) : D * (H * z), yt = Y === 0 || et === 0 ? 0 : (dt % H + H) % H - H / 2;
890
+ return mt.map((vt, Mt) => {
891
+ const lt = vt * H + yt, tt = D * G;
892
+ return ft(
893
+ `h-${st}-${Mt}`,
894
894
  lt,
895
- j,
896
- bt === 0 && tt === 0
895
+ tt,
896
+ vt === 0 && D === 0
897
897
  );
898
898
  });
899
899
  })
900
900
  }
901
901
  );
902
- }, vn = ({
902
+ }, bn = ({
903
903
  src: t,
904
904
  isVideo: r,
905
905
  frame: n,
@@ -916,10 +916,10 @@ const bn = ({
916
916
  echoesDetails: l,
917
917
  effects: b
918
918
  }) => {
919
- const y = Nt(), x = typeof n == "number" && !isNaN(n) ? n : y, m = e || 300, M = p || 300, S = (l == null ? void 0 : l.keepStill) || "both", $ = Number((l == null ? void 0 : l.toRepeatCount) ?? 5), k = Number((l == null ? void 0 : l.toScaleDown) ?? 0.3), g = Number((l == null ? void 0 : l.toCenterX) ?? 0.5), v = Number((l == null ? void 0 : l.toCenterY) ?? 0.5), w = (l == null ? void 0 : l.initialRepeatCount) !== void 0 ? Number(l.initialRepeatCount) : $, N = (l == null ? void 0 : l.initialScaleDown) !== void 0 ? Number(l.initialScaleDown) : 1, R = (l == null ? void 0 : l.initialCenterX) !== void 0 ? Number(l.initialCenterX) : g, C = (l == null ? void 0 : l.initialCenterY) !== void 0 ? Number(l.initialCenterY) : v, E = Math.max(0, x - (s || 0)), Y = Math.min(1, Math.max(0, E / (c || 1)));
919
+ const y = Rt(), x = typeof n == "number" && !isNaN(n) ? n : y, m = e || 300, M = p || 300, S = (l == null ? void 0 : l.keepStill) || "both", $ = Number((l == null ? void 0 : l.toRepeatCount) ?? 5), k = Number((l == null ? void 0 : l.toScaleDown) ?? 0.3), g = Number((l == null ? void 0 : l.toCenterX) ?? 0.5), v = Number((l == null ? void 0 : l.toCenterY) ?? 0.5), w = (l == null ? void 0 : l.initialRepeatCount) !== void 0 ? Number(l.initialRepeatCount) : $, N = (l == null ? void 0 : l.initialScaleDown) !== void 0 ? Number(l.initialScaleDown) : 1, R = (l == null ? void 0 : l.initialCenterX) !== void 0 ? Number(l.initialCenterX) : g, C = (l == null ? void 0 : l.initialCenterY) !== void 0 ? Number(l.initialCenterY) : v, E = Math.max(0, x - (s || 0)), Y = Math.min(1, Math.max(0, E / (c || 1)));
920
920
  let F = a + (i - a) * Y;
921
921
  S === "initial" ? F = 0 : S === "final" && (F = 1);
922
- const X = Math.max(1, Math.round(W(F, [0, 1], [w, $]))), P = W(F, [0, 1], [N, k]), z = W(F, [0, 1], [R, g]), O = W(F, [0, 1], [C, v]), A = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0, J = Array.from({ length: X }, (Z, D) => D);
922
+ const X = Math.max(1, Math.round(W(F, [0, 1], [w, $]))), P = W(F, [0, 1], [N, k]), z = W(F, [0, 1], [R, g]), O = W(F, [0, 1], [C, v]), j = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0, q = Array.from({ length: X }, (U, T) => T);
923
923
  return /* @__PURE__ */ f(
924
924
  "div",
925
925
  {
@@ -930,8 +930,8 @@ const bn = ({
930
930
  overflow: "hidden",
931
931
  borderRadius: o || 0
932
932
  },
933
- children: J.map((Z) => {
934
- const D = X > 1 ? Z / (X - 1) : 0, L = 1 - D * (1 - Math.max(0.01, P)), H = (z - 0.5) * m * D, G = (O - 0.5) * M * D;
933
+ children: q.map((U) => {
934
+ const T = X > 1 ? U / (X - 1) : 0, A = 1 - T * (1 - Math.max(0.01, P)), H = (z - 0.5) * m * T, G = (O - 0.5) * M * T;
935
935
  return /* @__PURE__ */ f(
936
936
  "div",
937
937
  {
@@ -941,13 +941,13 @@ const bn = ({
941
941
  top: "50%",
942
942
  width: `${m}px`,
943
943
  height: `${M}px`,
944
- transform: `translate(-50%, -50%) translate(${H}px, ${G}px) scale(${L})`,
944
+ transform: `translate(-50%, -50%) translate(${H}px, ${G}px) scale(${A})`,
945
945
  transformOrigin: "center center",
946
946
  borderRadius: o || 0,
947
- boxShadow: A,
948
- zIndex: Z + 1
947
+ boxShadow: j,
948
+ zIndex: U + 1
949
949
  },
950
- children: /* @__PURE__ */ gt(
950
+ children: /* @__PURE__ */ xt(
951
951
  "div",
952
952
  {
953
953
  style: {
@@ -996,12 +996,12 @@ const bn = ({
996
996
  }
997
997
  )
998
998
  },
999
- `echo-${Z}`
999
+ `echo-${U}`
1000
1000
  );
1001
1001
  })
1002
1002
  }
1003
1003
  );
1004
- }, gn = ({
1004
+ }, vn = ({
1005
1005
  src: t,
1006
1006
  isVideo: r,
1007
1007
  frame: n,
@@ -1018,7 +1018,7 @@ const bn = ({
1018
1018
  wiggleDetails: l,
1019
1019
  effects: b
1020
1020
  }) => {
1021
- const y = Nt(), x = typeof n == "number" && !isNaN(n) ? n : y, m = e || 300, M = p || 300, S = Number((l == null ? void 0 : l.wiggleX) ?? 20), $ = Number((l == null ? void 0 : l.wiggleY) ?? 20), k = Number((l == null ? void 0 : l.speed) ?? 3), g = Number((l == null ? void 0 : l.angle) ?? 10), v = Number((l == null ? void 0 : l.seed) ?? 1), w = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialWiggleX) !== void 0 ? Number(l.initialWiggleX) : S, N = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialWiggleY) !== void 0 ? Number(l.initialWiggleY) : $, R = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialSpeed) !== void 0 ? Number(l.initialSpeed) : k, C = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialAngle) !== void 0 ? Number(l.initialAngle) : g, E = Math.max(0, x - (s || 0)), Y = Math.min(1, Math.max(0, E / (c || 1))), _ = l != null && l.hasInitialValue ? w + (S - w) * Y : S, F = l != null && l.hasInitialValue ? N + ($ - N) * Y : $, X = l != null && l.hasInitialValue ? R + (k - R) * Y : k, P = l != null && l.hasInitialValue ? C + (g - C) * Y : g, z = x * (X * 0.08), O = v * 12.345, A = Math.sin(z + O) * Math.cos(z * 0.65 + O) * _, J = Math.cos(z * 0.85 + O) * Math.sin(z * 1.15 + O) * F, Z = Math.sin(z * 0.9 + O * 1.35) * P, D = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0;
1021
+ const y = Rt(), x = typeof n == "number" && !isNaN(n) ? n : y, m = e || 300, M = p || 300, S = Number((l == null ? void 0 : l.wiggleX) ?? 20), $ = Number((l == null ? void 0 : l.wiggleY) ?? 20), k = Number((l == null ? void 0 : l.speed) ?? 3), g = Number((l == null ? void 0 : l.angle) ?? 10), v = Number((l == null ? void 0 : l.seed) ?? 1), w = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialWiggleX) !== void 0 ? Number(l.initialWiggleX) : S, N = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialWiggleY) !== void 0 ? Number(l.initialWiggleY) : $, R = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialSpeed) !== void 0 ? Number(l.initialSpeed) : k, C = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialAngle) !== void 0 ? Number(l.initialAngle) : g, E = Math.max(0, x - (s || 0)), Y = Math.min(1, Math.max(0, E / (c || 1))), _ = l != null && l.hasInitialValue ? w + (S - w) * Y : S, F = l != null && l.hasInitialValue ? N + ($ - N) * Y : $, X = l != null && l.hasInitialValue ? R + (k - R) * Y : k, P = l != null && l.hasInitialValue ? C + (g - C) * Y : g, z = x * (X * 0.08), O = v * 12.345, j = Math.sin(z + O) * Math.cos(z * 0.65 + O) * _, q = Math.cos(z * 0.85 + O) * Math.sin(z * 1.15 + O) * F, U = Math.sin(z * 0.9 + O * 1.35) * P, T = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0;
1022
1022
  return /* @__PURE__ */ f(
1023
1023
  "div",
1024
1024
  {
@@ -1028,7 +1028,7 @@ const bn = ({
1028
1028
  position: "relative",
1029
1029
  overflow: "visible"
1030
1030
  },
1031
- children: /* @__PURE__ */ gt(
1031
+ children: /* @__PURE__ */ xt(
1032
1032
  "div",
1033
1033
  {
1034
1034
  style: {
@@ -1037,10 +1037,10 @@ const bn = ({
1037
1037
  position: "absolute",
1038
1038
  left: "50%",
1039
1039
  top: "50%",
1040
- transform: `translate(-50%, -50%) translate(${A}px, ${J}px) rotate(${Z}deg)`,
1040
+ transform: `translate(-50%, -50%) translate(${j}px, ${q}px) rotate(${U}deg)`,
1041
1041
  transformOrigin: "center center",
1042
1042
  borderRadius: o || 0,
1043
- boxShadow: D,
1043
+ boxShadow: T,
1044
1044
  overflow: "hidden"
1045
1045
  },
1046
1046
  children: [
@@ -1097,15 +1097,15 @@ const bn = ({
1097
1097
  children: h,
1098
1098
  style: d = {}
1099
1099
  }) => {
1100
- const u = Nt(), l = typeof t == "number" && !isNaN(t) ? t : u, b = a || 300, y = i || 300, x = (o == null ? void 0 : o.keepStill) || "both", m = Number((o == null ? void 0 : o.toRotationX) ?? 0), M = Number((o == null ? void 0 : o.toRotationY) ?? 360), S = Number((o == null ? void 0 : o.toRotationZ) ?? 0), $ = Number((o == null ? void 0 : o.toPivotX) ?? 0), k = Number((o == null ? void 0 : o.toPivotY) ?? 0), g = Number((o == null ? void 0 : o.toPerspective) ?? 0.45), v = !!(o != null && o.hasInitialValue), w = v ? Number((o == null ? void 0 : o.initialRotationX) ?? 0) : 0, N = v ? Number((o == null ? void 0 : o.initialRotationY) ?? 0) : 0, R = v ? Number((o == null ? void 0 : o.initialRotationZ) ?? 0) : 0, C = v ? Number((o == null ? void 0 : o.initialPivotX) ?? 0) : $, E = v ? Number((o == null ? void 0 : o.initialPivotY) ?? 0) : k, Y = v ? Number((o == null ? void 0 : o.initialPerspective) ?? 0.45) : g, _ = (o == null ? void 0 : o.frontFace) ?? !0, F = (o == null ? void 0 : o.backFace) ?? !0, X = Math.max(0, l - (r || 0)), P = Math.min(1, Math.max(0, X / (n || 1)));
1100
+ const u = Rt(), l = typeof t == "number" && !isNaN(t) ? t : u, b = a || 300, y = i || 300, x = (o == null ? void 0 : o.keepStill) || "both", m = Number((o == null ? void 0 : o.toRotationX) ?? 0), M = Number((o == null ? void 0 : o.toRotationY) ?? 360), S = Number((o == null ? void 0 : o.toRotationZ) ?? 0), $ = Number((o == null ? void 0 : o.toPivotX) ?? 0), k = Number((o == null ? void 0 : o.toPivotY) ?? 0), g = Number((o == null ? void 0 : o.toPerspective) ?? 0.45), v = !!(o != null && o.hasInitialValue), w = v ? Number((o == null ? void 0 : o.initialRotationX) ?? 0) : 0, N = v ? Number((o == null ? void 0 : o.initialRotationY) ?? 0) : 0, R = v ? Number((o == null ? void 0 : o.initialRotationZ) ?? 0) : 0, C = v ? Number((o == null ? void 0 : o.initialPivotX) ?? 0) : $, E = v ? Number((o == null ? void 0 : o.initialPivotY) ?? 0) : k, Y = v ? Number((o == null ? void 0 : o.initialPerspective) ?? 0.45) : g, _ = (o == null ? void 0 : o.frontFace) ?? !0, F = (o == null ? void 0 : o.backFace) ?? !0, X = Math.max(0, l - (r || 0)), P = Math.min(1, Math.max(0, X / (n || 1)));
1101
1101
  let O = s + (c - s) * P;
1102
1102
  x === "initial" ? O = 0 : x === "final" && (O = 1);
1103
- const A = W(O, [0, 1], [w, m]), J = W(O, [0, 1], [N, M]), Z = W(O, [0, 1], [R, S]), D = W(O, [0, 1], [C, $]), L = W(O, [0, 1], [E, k]), H = W(O, [0, 1], [Y, g]), G = Math.max(b, y), ft = Math.max(
1103
+ const j = W(O, [0, 1], [w, m]), q = W(O, [0, 1], [N, M]), U = W(O, [0, 1], [R, S]), T = W(O, [0, 1], [C, $]), A = W(O, [0, 1], [E, k]), H = W(O, [0, 1], [Y, g]), G = Math.max(b, y), bt = Math.max(
1104
1104
  1200,
1105
1105
  Math.round(G * 2.5 / Math.max(0.05, H))
1106
- ), U = A * Math.PI / 180, q = J * Math.PI / 180, ot = Math.cos(U) * Math.cos(q), vt = ot >= 0, nt = ot < 0;
1106
+ ), L = j * Math.PI / 180, K = q * Math.PI / 180, ot = Math.cos(L) * Math.cos(K), gt = ot >= 0, nt = ot < 0;
1107
1107
  let ut = !0;
1108
- vt && !_ && (ut = !1), nt && !F && (ut = !1);
1108
+ gt && !_ && (ut = !1), nt && !F && (ut = !1);
1109
1109
  const it = p ? typeof p == "string" ? p : `${p.x ?? 0}px ${p.y ?? 0}px ${p.blur ?? 0}px ${p.color ?? ""}` : void 0;
1110
1110
  return /* @__PURE__ */ f(
1111
1111
  "div",
@@ -1113,7 +1113,7 @@ const bn = ({
1113
1113
  style: {
1114
1114
  width: "100%",
1115
1115
  height: "100%",
1116
- perspective: `${ft}px`,
1116
+ perspective: `${bt}px`,
1117
1117
  transformStyle: "preserve-3d",
1118
1118
  position: "relative",
1119
1119
  ...d
@@ -1124,8 +1124,8 @@ const bn = ({
1124
1124
  style: {
1125
1125
  width: "100%",
1126
1126
  height: "100%",
1127
- transformOrigin: `${50 + D}% ${50 + L}%`,
1128
- transform: `rotateX(${A}deg) rotateY(${J}deg) rotateZ(${Z}deg)`,
1127
+ transformOrigin: `${50 + T}% ${50 + A}%`,
1128
+ transform: `rotateX(${j}deg) rotateY(${q}deg) rotateZ(${U}deg)`,
1129
1129
  backfaceVisibility: F ? "visible" : "hidden",
1130
1130
  visibility: ut ? "visible" : "hidden",
1131
1131
  borderRadius: e || 0,
@@ -1137,7 +1137,7 @@ const bn = ({
1137
1137
  )
1138
1138
  }
1139
1139
  );
1140
- }, ko = ({
1140
+ }, Io = ({
1141
1141
  src: t,
1142
1142
  frame: r,
1143
1143
  delay: n = 0,
@@ -1172,7 +1172,7 @@ const bn = ({
1172
1172
  borderRadius: p,
1173
1173
  boxShadow: d,
1174
1174
  cardFlipDetails: u,
1175
- children: /* @__PURE__ */ gt(
1175
+ children: /* @__PURE__ */ xt(
1176
1176
  "div",
1177
1177
  {
1178
1178
  style: {
@@ -1248,7 +1248,7 @@ const bn = ({
1248
1248
  function ur(t, r, n, s) {
1249
1249
  return t[0] * r + t[1] * n + t[2] * s;
1250
1250
  }
1251
- function mn(t, r, n, s = 0) {
1251
+ function gn(t, r, n, s = 0) {
1252
1252
  const c = [];
1253
1253
  for (let nt = 0; nt < 256; nt++) c[nt] = nt;
1254
1254
  let a = Math.floor(Math.abs(s) * 1e3) % 2147483647 + 1;
@@ -1265,19 +1265,19 @@ function mn(t, r, n, s = 0) {
1265
1265
  const b = (t + r + n) * p, y = Math.floor(t + b), x = Math.floor(r + b), m = Math.floor(n + b), M = (y + x + m) * o, S = y - M, $ = x - M, k = m - M, g = t - S, v = r - $, w = n - k;
1266
1266
  let N = 0, R = 0, C = 0, E = 0, Y = 0, _ = 0;
1267
1267
  g >= v ? v >= w ? (N = 1, R = 0, C = 0, E = 1, Y = 1, _ = 0) : g >= w ? (N = 1, R = 0, C = 0, E = 1, Y = 0, _ = 1) : (N = 0, R = 0, C = 1, E = 1, Y = 0, _ = 1) : v < w ? (N = 0, R = 0, C = 1, E = 0, Y = 1, _ = 1) : g < w ? (N = 0, R = 1, C = 0, E = 0, Y = 1, _ = 1) : (N = 0, R = 1, C = 0, E = 1, Y = 1, _ = 0);
1268
- const F = g - N + o, X = v - R + o, P = w - C + o, z = g - E + 2 * o, O = v - Y + 2 * o, A = w - _ + 2 * o, J = g - 1 + 3 * o, Z = v - 1 + 3 * o, D = w - 1 + 3 * o, L = y & 255, H = x & 255, G = m & 255;
1269
- let ft = 0.6 - g * g - v * v - w * w;
1270
- ft >= 0 && (ft *= ft, h = ft * ft * ur(dr[e[L + i[H + i[G]]]], g, v, w));
1271
- let U = 0.6 - F * F - X * X - P * P;
1272
- U >= 0 && (U *= U, d = U * U * ur(dr[e[L + N + i[H + R + i[G + C]]]], F, X, P));
1273
- let q = 0.6 - z * z - O * O - A * A;
1274
- q >= 0 && (q *= q, u = q * q * ur(dr[e[L + E + i[H + Y + i[G + _]]]], z, O, A));
1275
- let ot = 0.6 - J * J - Z * Z - D * D;
1276
- ot >= 0 && (ot *= ot, l = ot * ot * ur(dr[e[L + 1 + i[H + 1 + i[G + 1]]]], J, Z, D));
1277
- const vt = 32 * (h + d + u + l);
1278
- return Math.min(1, Math.max(0, (vt + 1) / 2));
1268
+ const F = g - N + o, X = v - R + o, P = w - C + o, z = g - E + 2 * o, O = v - Y + 2 * o, j = w - _ + 2 * o, q = g - 1 + 3 * o, U = v - 1 + 3 * o, T = w - 1 + 3 * o, A = y & 255, H = x & 255, G = m & 255;
1269
+ let bt = 0.6 - g * g - v * v - w * w;
1270
+ bt >= 0 && (bt *= bt, h = bt * bt * ur(dr[e[A + i[H + i[G]]]], g, v, w));
1271
+ let L = 0.6 - F * F - X * X - P * P;
1272
+ L >= 0 && (L *= L, d = L * L * ur(dr[e[A + N + i[H + R + i[G + C]]]], F, X, P));
1273
+ let K = 0.6 - z * z - O * O - j * j;
1274
+ K >= 0 && (K *= K, u = K * K * ur(dr[e[A + E + i[H + Y + i[G + _]]]], z, O, j));
1275
+ let ot = 0.6 - q * q - U * U - T * T;
1276
+ ot >= 0 && (ot *= ot, l = ot * ot * ur(dr[e[A + 1 + i[H + 1 + i[G + 1]]]], q, U, T));
1277
+ const gt = 32 * (h + d + u + l);
1278
+ return Math.min(1, Math.max(0, (gt + 1) / 2));
1279
1279
  }
1280
- const No = ({
1280
+ const ko = ({
1281
1281
  src: t,
1282
1282
  frame: r,
1283
1283
  delay: n = 0,
@@ -1292,20 +1292,20 @@ const No = ({
1292
1292
  boxShadow: d,
1293
1293
  noiseTileDetails: u
1294
1294
  }) => {
1295
- const l = Nt(), b = typeof r == "number" && !isNaN(r) ? r : l, y = i || 300, x = e || 300, m = (u == null ? void 0 : u.keepStill) || "both", M = Number((u == null ? void 0 : u.toXRepetitions) ?? (u == null ? void 0 : u.xRepetitions) ?? 5), S = Number((u == null ? void 0 : u.toYRepetitions) ?? (u == null ? void 0 : u.yRepetitions) ?? 5), $ = Number((u == null ? void 0 : u.toGapX) ?? (u == null ? void 0 : u.gapX) ?? 12), k = Number((u == null ? void 0 : u.toGapY) ?? (u == null ? void 0 : u.gapY) ?? 12), g = Number((u == null ? void 0 : u.toScale) ?? (u == null ? void 0 : u.scale) ?? 1), v = Number((u == null ? void 0 : u.toNoiseScale) ?? (u == null ? void 0 : u.noiseScale) ?? 1.5), w = Number((u == null ? void 0 : u.toNoiseMoveX) ?? (u == null ? void 0 : u.noiseMoveX) ?? 0.6), N = Number((u == null ? void 0 : u.toNoiseMoveY) ?? (u == null ? void 0 : u.noiseMoveY) ?? 0.4), R = Number((u == null ? void 0 : u.toFps) ?? (u == null ? void 0 : u.fps) ?? 12), C = Number((u == null ? void 0 : u.toThreshold) ?? (u == null ? void 0 : u.threshold) ?? 0.45), E = Number((u == null ? void 0 : u.toSeedOffset) ?? (u == null ? void 0 : u.seedOffset) ?? 0), Y = !!(u != null && u.hasInitialValue), _ = Y ? Number((u == null ? void 0 : u.initialXRepetitions) ?? M) : M, F = Y ? Number((u == null ? void 0 : u.initialYRepetitions) ?? S) : S, X = Y ? Number((u == null ? void 0 : u.initialGapX) ?? $) : $, P = Y ? Number((u == null ? void 0 : u.initialGapY) ?? k) : k, z = Y ? Number((u == null ? void 0 : u.initialScale) ?? g) : g, O = Y ? Number((u == null ? void 0 : u.initialNoiseScale) ?? v) : v, A = Y ? Number((u == null ? void 0 : u.initialNoiseMoveX) ?? w) : w, J = Y ? Number((u == null ? void 0 : u.initialNoiseMoveY) ?? N) : N, Z = Y ? Number((u == null ? void 0 : u.initialFps) ?? R) : R, D = Y ? Number((u == null ? void 0 : u.initialThreshold) ?? C) : C, L = Y ? Number((u == null ? void 0 : u.initialSeedOffset) ?? E) : E, H = Math.max(0, b - (n || 0)), G = Math.min(1, Math.max(0, H / (s || 1)));
1296
- let U = c + (a - c) * G;
1297
- m === "initial" ? U = 0 : m === "final" && (U = 1);
1298
- const q = Math.max(1, Math.round(W(U, [0, 1], [_, M]))), ot = Math.max(1, Math.round(W(U, [0, 1], [F, S]))), vt = W(U, [0, 1], [X, $]), nt = W(U, [0, 1], [P, k]), ut = W(U, [0, 1], [z, g]), it = W(U, [0, 1], [O, v]), mt = W(U, [0, 1], [A, w]), pt = W(U, [0, 1], [J, N]), tt = Math.max(1, Math.round(W(U, [0, 1], [Z, R]))), st = W(U, [0, 1], [D, C]), et = W(U, [0, 1], [L, E]), ct = d ? typeof d == "string" ? d : `${d.x ?? 0}px ${d.y ?? 0}px ${d.blur ?? 0}px ${d.color ?? ""}` : void 0, dt = Math.floor(H * (tt / 30)), yt = (q - 1) / 2, bt = (ot - 1) / 2, St = [];
1295
+ const l = Rt(), b = typeof r == "number" && !isNaN(r) ? r : l, y = i || 300, x = e || 300, m = (u == null ? void 0 : u.keepStill) || "both", M = Number((u == null ? void 0 : u.toXRepetitions) ?? (u == null ? void 0 : u.xRepetitions) ?? 5), S = Number((u == null ? void 0 : u.toYRepetitions) ?? (u == null ? void 0 : u.yRepetitions) ?? 5), $ = Number((u == null ? void 0 : u.toGapX) ?? (u == null ? void 0 : u.gapX) ?? 12), k = Number((u == null ? void 0 : u.toGapY) ?? (u == null ? void 0 : u.gapY) ?? 12), g = Number((u == null ? void 0 : u.toScale) ?? (u == null ? void 0 : u.scale) ?? 1), v = Number((u == null ? void 0 : u.toNoiseScale) ?? (u == null ? void 0 : u.noiseScale) ?? 1.5), w = Number((u == null ? void 0 : u.toNoiseMoveX) ?? (u == null ? void 0 : u.noiseMoveX) ?? 0.6), N = Number((u == null ? void 0 : u.toNoiseMoveY) ?? (u == null ? void 0 : u.noiseMoveY) ?? 0.4), R = Number((u == null ? void 0 : u.toFps) ?? (u == null ? void 0 : u.fps) ?? 12), C = Number((u == null ? void 0 : u.toThreshold) ?? (u == null ? void 0 : u.threshold) ?? 0.45), E = Number((u == null ? void 0 : u.toSeedOffset) ?? (u == null ? void 0 : u.seedOffset) ?? 0), Y = !!(u != null && u.hasInitialValue), _ = Y ? Number((u == null ? void 0 : u.initialXRepetitions) ?? M) : M, F = Y ? Number((u == null ? void 0 : u.initialYRepetitions) ?? S) : S, X = Y ? Number((u == null ? void 0 : u.initialGapX) ?? $) : $, P = Y ? Number((u == null ? void 0 : u.initialGapY) ?? k) : k, z = Y ? Number((u == null ? void 0 : u.initialScale) ?? g) : g, O = Y ? Number((u == null ? void 0 : u.initialNoiseScale) ?? v) : v, j = Y ? Number((u == null ? void 0 : u.initialNoiseMoveX) ?? w) : w, q = Y ? Number((u == null ? void 0 : u.initialNoiseMoveY) ?? N) : N, U = Y ? Number((u == null ? void 0 : u.initialFps) ?? R) : R, T = Y ? Number((u == null ? void 0 : u.initialThreshold) ?? C) : C, A = Y ? Number((u == null ? void 0 : u.initialSeedOffset) ?? E) : E, H = Math.max(0, b - (n || 0)), G = Math.min(1, Math.max(0, H / (s || 1)));
1296
+ let L = c + (a - c) * G;
1297
+ m === "initial" ? L = 0 : m === "final" && (L = 1);
1298
+ const K = Math.max(1, Math.round(W(L, [0, 1], [_, M]))), ot = Math.max(1, Math.round(W(L, [0, 1], [F, S]))), gt = W(L, [0, 1], [X, $]), nt = W(L, [0, 1], [P, k]), ut = W(L, [0, 1], [z, g]), it = W(L, [0, 1], [O, v]), mt = W(L, [0, 1], [j, w]), ft = W(L, [0, 1], [q, N]), D = Math.max(1, Math.round(W(L, [0, 1], [U, R]))), st = W(L, [0, 1], [T, C]), et = W(L, [0, 1], [A, E]), ct = d ? typeof d == "string" ? d : `${d.x ?? 0}px ${d.y ?? 0}px ${d.blur ?? 0}px ${d.color ?? ""}` : void 0, dt = Math.floor(H * (D / 30)), yt = (K - 1) / 2, vt = (ot - 1) / 2, Mt = [];
1299
1299
  for (let lt = 0; lt < ot; lt++)
1300
- for (let j = 0; j < q; j++) {
1301
- const Ft = j / Math.max(1, q) * it, Yt = lt / Math.max(1, ot) * it, Xt = dt * 0.1 + et, Et = mn(
1302
- Ft + dt * mt * 0.05,
1303
- Yt + dt * pt * 0.05,
1300
+ for (let tt = 0; tt < K; tt++) {
1301
+ const ht = tt / Math.max(1, K) * it, Yt = lt / Math.max(1, ot) * it, Xt = dt * 0.1 + et, Et = gn(
1302
+ ht + dt * mt * 0.05,
1303
+ Yt + dt * ft * 0.05,
1304
1304
  Xt,
1305
1305
  et
1306
- ), _t = j === Math.floor(yt) && lt === Math.floor(bt) || Et >= st, Wt = j - yt, Lt = lt - bt, Ht = vt / 100 * y, Ut = nt / 100 * x, Zt = Wt * (y * ut + Ht), Qt = Lt * (x * ut + Ut);
1307
- St.push({
1308
- col: j,
1306
+ ), _t = tt === Math.floor(yt) && lt === Math.floor(vt) || Et >= st, Wt = tt - yt, Lt = lt - vt, Ht = gt / 100 * y, Ut = nt / 100 * x, Zt = Wt * (y * ut + Ht), Qt = Lt * (x * ut + Ut);
1307
+ Mt.push({
1308
+ col: tt,
1309
1309
  row: lt,
1310
1310
  visible: _t,
1311
1311
  posX: Zt,
@@ -1321,7 +1321,7 @@ const No = ({
1321
1321
  position: "relative",
1322
1322
  overflow: "visible"
1323
1323
  },
1324
- children: St.map((lt) => lt.visible ? /* @__PURE__ */ f(
1324
+ children: Mt.map((lt) => lt.visible ? /* @__PURE__ */ f(
1325
1325
  "div",
1326
1326
  {
1327
1327
  style: {
@@ -1335,7 +1335,7 @@ const No = ({
1335
1335
  borderRadius: p || 0,
1336
1336
  boxShadow: ct
1337
1337
  },
1338
- children: /* @__PURE__ */ gt(
1338
+ children: /* @__PURE__ */ xt(
1339
1339
  "div",
1340
1340
  {
1341
1341
  style: {
@@ -1395,16 +1395,16 @@ function Vr(t) {
1395
1395
  const r = t.map((n) => {
1396
1396
  switch (n.type) {
1397
1397
  case "chromaticAberration":
1398
- return so({
1398
+ return eo({
1399
1399
  amount: n.offset ?? 5
1400
1400
  });
1401
1401
  case "noise":
1402
- return ao({
1402
+ return so({
1403
1403
  seed: n.seed ?? n.speed ?? 1,
1404
1404
  amount: n.amount ?? 0.15
1405
1405
  });
1406
1406
  case "pixelate":
1407
- return co({ blockSize: n.size });
1407
+ return ao({ blockSize: n.size });
1408
1408
  default:
1409
1409
  return null;
1410
1410
  }
@@ -1514,7 +1514,7 @@ function Cr(t, r, n = 0, s = 0) {
1514
1514
  !d || !d.type || a.has(d.type) || c.push(d);
1515
1515
  }), c.push(...i), c;
1516
1516
  }
1517
- function xn(t) {
1517
+ function mn(t) {
1518
1518
  if (!t || !Array.isArray(t) || t.length === 0)
1519
1519
  return { filter: "", overlays: [] };
1520
1520
  const r = [], n = [];
@@ -1592,12 +1592,12 @@ function xn(t) {
1592
1592
  overlays: n
1593
1593
  };
1594
1594
  }
1595
- var Jt = {}, $n = {}, Ct = {};
1595
+ var Jt = {}, xn = {}, Ct = {};
1596
1596
  Object.defineProperty(Ct, "__esModule", {
1597
1597
  value: !0
1598
1598
  });
1599
1599
  Ct.loop = Ct.conditional = Ct.parse = void 0;
1600
- var Ro = function t(r, n) {
1600
+ var No = function t(r, n) {
1601
1601
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, c = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : s;
1602
1602
  if (Array.isArray(n))
1603
1603
  n.forEach(function(i) {
@@ -1611,14 +1611,14 @@ var Ro = function t(r, n) {
1611
1611
  }
1612
1612
  return s;
1613
1613
  };
1614
- Ct.parse = Ro;
1615
- var Fo = function(r, n) {
1614
+ Ct.parse = No;
1615
+ var Ro = function(r, n) {
1616
1616
  return function(s, c, a, i) {
1617
1617
  n(s, c, a) && i(s, r, c, a);
1618
1618
  };
1619
1619
  };
1620
- Ct.conditional = Fo;
1621
- var Yo = function(r, n) {
1620
+ Ct.conditional = Ro;
1621
+ var Fo = function(r, n) {
1622
1622
  return function(s, c, a, i) {
1623
1623
  for (var e = [], p = s.pos; n(s, c, a); ) {
1624
1624
  var o = {};
@@ -1629,87 +1629,87 @@ var Yo = function(r, n) {
1629
1629
  return e;
1630
1630
  };
1631
1631
  };
1632
- Ct.loop = Yo;
1633
- var Mt = {};
1634
- Object.defineProperty(Mt, "__esModule", {
1632
+ Ct.loop = Fo;
1633
+ var wt = {};
1634
+ Object.defineProperty(wt, "__esModule", {
1635
1635
  value: !0
1636
1636
  });
1637
- Mt.readBits = Mt.readArray = Mt.readUnsigned = Mt.readString = Mt.peekBytes = Mt.readBytes = Mt.peekByte = Mt.readByte = Mt.buildStream = void 0;
1638
- var Xo = function(r) {
1637
+ wt.readBits = wt.readArray = wt.readUnsigned = wt.readString = wt.peekBytes = wt.readBytes = wt.peekByte = wt.readByte = wt.buildStream = void 0;
1638
+ var Yo = function(r) {
1639
1639
  return {
1640
1640
  data: r,
1641
1641
  pos: 0
1642
1642
  };
1643
1643
  };
1644
- Mt.buildStream = Xo;
1645
- var Sn = function() {
1644
+ wt.buildStream = Yo;
1645
+ var $n = function() {
1646
1646
  return function(r) {
1647
1647
  return r.data[r.pos++];
1648
1648
  };
1649
1649
  };
1650
- Mt.readByte = Sn;
1651
- var Bo = function() {
1650
+ wt.readByte = $n;
1651
+ var Xo = function() {
1652
1652
  var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1653
1653
  return function(n) {
1654
1654
  return n.data[n.pos + r];
1655
1655
  };
1656
1656
  };
1657
- Mt.peekByte = Bo;
1657
+ wt.peekByte = Xo;
1658
1658
  var br = function(r) {
1659
1659
  return function(n) {
1660
1660
  return n.data.subarray(n.pos, n.pos += r);
1661
1661
  };
1662
1662
  };
1663
- Mt.readBytes = br;
1664
- var Po = function(r) {
1663
+ wt.readBytes = br;
1664
+ var Bo = function(r) {
1665
1665
  return function(n) {
1666
1666
  return n.data.subarray(n.pos, n.pos + r);
1667
1667
  };
1668
1668
  };
1669
- Mt.peekBytes = Po;
1670
- var Eo = function(r) {
1669
+ wt.peekBytes = Bo;
1670
+ var Po = function(r) {
1671
1671
  return function(n) {
1672
1672
  return Array.from(br(r)(n)).map(function(s) {
1673
1673
  return String.fromCharCode(s);
1674
1674
  }).join("");
1675
1675
  };
1676
1676
  };
1677
- Mt.readString = Eo;
1678
- var _o = function(r) {
1677
+ wt.readString = Po;
1678
+ var Eo = function(r) {
1679
1679
  return function(n) {
1680
1680
  var s = br(2)(n);
1681
1681
  return r ? (s[1] << 8) + s[0] : (s[0] << 8) + s[1];
1682
1682
  };
1683
1683
  };
1684
- Mt.readUnsigned = _o;
1685
- var Wo = function(r, n) {
1684
+ wt.readUnsigned = Eo;
1685
+ var _o = function(r, n) {
1686
1686
  return function(s, c, a) {
1687
1687
  for (var i = typeof n == "function" ? n(s, c, a) : n, e = br(r), p = new Array(i), o = 0; o < i; o++)
1688
1688
  p[o] = e(s);
1689
1689
  return p;
1690
1690
  };
1691
1691
  };
1692
- Mt.readArray = Wo;
1693
- var Vo = function(r, n, s) {
1692
+ wt.readArray = _o;
1693
+ var Wo = function(r, n, s) {
1694
1694
  for (var c = 0, a = 0; a < s; a++)
1695
1695
  c += r[n + a] && Math.pow(2, s - a - 1);
1696
1696
  return c;
1697
- }, Co = function(r) {
1697
+ }, Vo = function(r) {
1698
1698
  return function(n) {
1699
- for (var s = Sn()(n), c = new Array(8), a = 0; a < 8; a++)
1699
+ for (var s = $n()(n), c = new Array(8), a = 0; a < 8; a++)
1700
1700
  c[7 - a] = !!(s & 1 << a);
1701
1701
  return Object.keys(r).reduce(function(i, e) {
1702
1702
  var p = r[e];
1703
- return p.length ? i[e] = Vo(c, p.index, p.length) : i[e] = c[p.index], i;
1703
+ return p.length ? i[e] = Wo(c, p.index, p.length) : i[e] = c[p.index], i;
1704
1704
  }, {});
1705
1705
  };
1706
1706
  };
1707
- Mt.readBits = Co;
1707
+ wt.readBits = Vo;
1708
1708
  (function(t) {
1709
1709
  Object.defineProperty(t, "__esModule", {
1710
1710
  value: !0
1711
1711
  }), t.default = void 0;
1712
- var r = Ct, n = Mt, s = {
1712
+ var r = Ct, n = wt, s = {
1713
1713
  blocks: function(u) {
1714
1714
  for (var l = 0, b = [], y = u.data.length, x = 0, m = (0, n.readByte)()(u); m !== l && m; m = (0, n.readByte)()(u)) {
1715
1715
  if (u.pos + m >= y) {
@@ -1886,13 +1886,13 @@ Mt.readBits = Co;
1886
1886
  }
1887
1887
  ], h = o;
1888
1888
  t.default = h;
1889
- })($n);
1889
+ })(xn);
1890
1890
  var vr = {};
1891
1891
  Object.defineProperty(vr, "__esModule", {
1892
1892
  value: !0
1893
1893
  });
1894
1894
  vr.deinterlace = void 0;
1895
- var Oo = function(r, n) {
1895
+ var Co = function(r, n) {
1896
1896
  for (var s = new Array(r.length), c = r.length / n, a = function(u, l) {
1897
1897
  var b = r.slice(l * n, (l + 1) * n);
1898
1898
  s.splice.apply(s, [u * n, n].concat(b));
@@ -1901,13 +1901,13 @@ var Oo = function(r, n) {
1901
1901
  a(h, p), p++;
1902
1902
  return s;
1903
1903
  };
1904
- vr.deinterlace = Oo;
1904
+ vr.deinterlace = Co;
1905
1905
  var gr = {};
1906
1906
  Object.defineProperty(gr, "__esModule", {
1907
1907
  value: !0
1908
1908
  });
1909
1909
  gr.lzw = void 0;
1910
- var zo = function(r, n, s) {
1910
+ var Oo = function(r, n, s) {
1911
1911
  var c = 4096, a = -1, i = s, e, p, o, h, d, u, l, g, b, y, k, x, v, w, R, N, m = new Array(s), M = new Array(c), S = new Array(c), $ = new Array(c + 1);
1912
1912
  for (x = r, p = 1 << x, d = p + 1, e = p + 2, l = a, h = x + 1, o = (1 << h) - 1, b = 0; b < p; b++)
1913
1913
  M[b] = 0, S[b] = b;
@@ -1938,30 +1938,30 @@ var zo = function(r, n, s) {
1938
1938
  m[y] = 0;
1939
1939
  return m;
1940
1940
  };
1941
- gr.lzw = zo;
1941
+ gr.lzw = Oo;
1942
1942
  Object.defineProperty(Jt, "__esModule", {
1943
1943
  value: !0
1944
1944
  });
1945
- var Mn = Jt.decompressFrames = Jt.decompressFrame = wn = Jt.parseGIF = void 0, Go = Uo($n), jo = Ct, Ao = Mt, Lo = vr, Ho = gr;
1946
- function Uo(t) {
1945
+ var Sn = Jt.decompressFrames = Jt.decompressFrame = Mn = Jt.parseGIF = void 0, zo = Ho(xn), Go = Ct, jo = wt, Ao = vr, Lo = gr;
1946
+ function Ho(t) {
1947
1947
  return t && t.__esModule ? t : { default: t };
1948
1948
  }
1949
- var Zo = function(r) {
1949
+ var Uo = function(r) {
1950
1950
  var n = new Uint8Array(r);
1951
- return (0, jo.parse)((0, Ao.buildStream)(n), Go.default);
1952
- }, wn = Jt.parseGIF = Zo, Qo = function(r) {
1951
+ return (0, Go.parse)((0, jo.buildStream)(n), zo.default);
1952
+ }, Mn = Jt.parseGIF = Uo, Zo = function(r) {
1953
1953
  for (var n = r.pixels.length, s = new Uint8ClampedArray(n * 4), c = 0; c < n; c++) {
1954
1954
  var a = c * 4, i = r.pixels[c], e = r.colorTable[i] || [0, 0, 0];
1955
1955
  s[a] = e[0], s[a + 1] = e[1], s[a + 2] = e[2], s[a + 3] = i !== r.transparentIndex ? 255 : 0;
1956
1956
  }
1957
1957
  return s;
1958
- }, In = function(r, n, s) {
1958
+ }, wn = function(r, n, s) {
1959
1959
  if (!r.image) {
1960
1960
  console.warn("gif frame does not have associated image.");
1961
1961
  return;
1962
1962
  }
1963
- var c = r.image, a = c.descriptor.width * c.descriptor.height, i = (0, Ho.lzw)(c.data.minCodeSize, c.data.blocks, a);
1964
- c.descriptor.lct.interlaced && (i = (0, Lo.deinterlace)(i, c.descriptor.width));
1963
+ var c = r.image, a = c.descriptor.width * c.descriptor.height, i = (0, Lo.lzw)(c.data.minCodeSize, c.data.blocks, a);
1964
+ c.descriptor.lct.interlaced && (i = (0, Ao.deinterlace)(i, c.descriptor.width));
1965
1965
  var e = {
1966
1966
  pixels: i,
1967
1967
  dims: {
@@ -1971,22 +1971,22 @@ var Zo = function(r) {
1971
1971
  height: r.image.descriptor.height
1972
1972
  }
1973
1973
  };
1974
- return c.descriptor.lct && c.descriptor.lct.exists ? e.colorTable = c.lct : e.colorTable = n, r.gce && (e.delay = (r.gce.delay || 10) * 10, e.disposalType = r.gce.extras.disposal, r.gce.extras.transparentColorGiven && (e.transparentIndex = r.gce.transparentColorIndex)), s && (e.patch = Qo(e)), e;
1974
+ return c.descriptor.lct && c.descriptor.lct.exists ? e.colorTable = c.lct : e.colorTable = n, r.gce && (e.delay = (r.gce.delay || 10) * 10, e.disposalType = r.gce.extras.disposal, r.gce.extras.transparentColorGiven && (e.transparentIndex = r.gce.transparentColorIndex)), s && (e.patch = Zo(e)), e;
1975
1975
  };
1976
- Jt.decompressFrame = In;
1977
- var Ko = function(r, n) {
1976
+ Jt.decompressFrame = wn;
1977
+ var Qo = function(r, n) {
1978
1978
  return r.frames.filter(function(s) {
1979
1979
  return s.image;
1980
1980
  }).map(function(s) {
1981
- return In(s, r.gct, n);
1981
+ return wn(s, r.gct, n);
1982
1982
  });
1983
1983
  };
1984
- Mn = Jt.decompressFrames = Ko;
1985
- const xr = /* @__PURE__ */ new Map(), Jo = (t) => !!t && t.split("?")[0].toLowerCase().endsWith(".gif"), qo = (t) => t <= 10 ? 100 : t, To = async (t) => {
1984
+ Sn = Jt.decompressFrames = Qo;
1985
+ const xr = /* @__PURE__ */ new Map(), Ko = (t) => !!t && t.split("?")[0].toLowerCase().endsWith(".gif"), Jo = (t) => t <= 10 ? 100 : t, qo = async (t) => {
1986
1986
  const r = await fetch(t);
1987
1987
  if (!r.ok)
1988
1988
  throw new Error(`Could not fetch GIF: ${t}`);
1989
- const n = await r.arrayBuffer(), s = wn(n), c = Mn(s, !0), a = s.lsd.width, i = s.lsd.height;
1989
+ const n = await r.arrayBuffer(), s = Mn(n), c = Sn(s, !0), a = s.lsd.width, i = s.lsd.height;
1990
1990
  if (!c.length)
1991
1991
  throw new Error(`GIF has no frames: ${t}`);
1992
1992
  const e = document.createElement("canvas");
@@ -2007,7 +2007,7 @@ const xr = /* @__PURE__ */ new Map(), Jo = (t) => !!t && t.split("?")[0].toLower
2007
2007
  l.dims.width,
2008
2008
  l.dims.height
2009
2009
  );
2010
- h.putImageData(y, 0, 0), p.drawImage(o, l.dims.left, l.dims.top), d.push(e.toDataURL("image/png")), u.push(qo(l.delay || 0)), l.disposalType === 2 ? p.clearRect(
2010
+ h.putImageData(y, 0, 0), p.drawImage(o, l.dims.left, l.dims.top), d.push(e.toDataURL("image/png")), u.push(Jo(l.delay || 0)), l.disposalType === 2 ? p.clearRect(
2011
2011
  l.dims.left,
2012
2012
  l.dims.top,
2013
2013
  l.dims.width,
@@ -2020,15 +2020,15 @@ const xr = /* @__PURE__ */ new Map(), Jo = (t) => !!t && t.split("?")[0].toLower
2020
2020
  frames: d,
2021
2021
  delaysMs: u
2022
2022
  };
2023
- }, Do = (t) => {
2023
+ }, To = (t) => {
2024
2024
  const r = xr.get(t);
2025
2025
  if (r)
2026
2026
  return r;
2027
- const n = To(t).catch((s) => {
2027
+ const n = qo(t).catch((s) => {
2028
2028
  throw xr.delete(t), s;
2029
2029
  });
2030
2030
  return xr.set(t, n), n;
2031
- }, te = (t, r) => {
2031
+ }, Do = (t, r) => {
2032
2032
  if (r.frames.length === 1 || r.durationMs <= 0)
2033
2033
  return 0;
2034
2034
  const n = (t % r.durationMs + r.durationMs) % r.durationMs;
@@ -2037,29 +2037,29 @@ const xr = /* @__PURE__ */ new Map(), Jo = (t) => !!t && t.split("?")[0].toLower
2037
2037
  if (s += r.delaysMs[c], n < s)
2038
2038
  return c;
2039
2039
  return r.delaysMs.length - 1;
2040
- }, re = ({ src: t, alt: r = "gif", style: n, playbackRate: s }) => {
2041
- const c = Nt(), { fps: a } = cn(), [i, e] = fr(null);
2040
+ }, te = ({ src: t, alt: r = "gif", style: n, playbackRate: s }) => {
2041
+ const c = Rt(), { fps: a } = cn(), [i, e] = fr(null);
2042
2042
  if (er(() => {
2043
- const h = to(`Decoding GIF ${t}`);
2043
+ const h = Dn(`Decoding GIF ${t}`);
2044
2044
  let d = !1;
2045
- return Do(t).then((u) => {
2045
+ return To(t).then((u) => {
2046
2046
  d || (e(u), Gr(h));
2047
2047
  }).catch((u) => {
2048
- d || ro(u instanceof Error ? u : new Error(String(u)));
2048
+ d || to(u instanceof Error ? u : new Error(String(u)));
2049
2049
  }), () => {
2050
2050
  d = !0, Gr(h);
2051
2051
  };
2052
2052
  }, [t]), !i)
2053
2053
  return null;
2054
- const p = c / a * 1e3 * s, o = te(p, i);
2054
+ const p = c / a * 1e3 * s, o = Do(p, i);
2055
2055
  return /* @__PURE__ */ f(qt, { src: i.frames[o], alt: r, style: n });
2056
2056
  };
2057
- function kn({
2057
+ function In({
2058
2058
  item: t,
2059
2059
  options: r
2060
2060
  }) {
2061
- var nt, ut, it, mt, pt, tt, st, et, ct, dt, yt, bt, St, lt;
2062
- const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn: p, animationOut: o, animationTimed: h } = Rt(
2061
+ var nt, ut, it, mt, ft, D, st, et, ct, dt, yt, vt, Mt, lt;
2062
+ const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn: p, animationOut: o, animationTimed: h } = Ft(
2063
2063
  i,
2064
2064
  t,
2065
2065
  s,
@@ -2075,28 +2075,28 @@ function kn({
2075
2075
  ${m}px
2076
2076
  ${M}px
2077
2077
  ${y}px round ${$}px
2078
- )`, { durationInFrames: g } = It(t.display, n), v = (s || 0) - t.display.from * n / 1e3, w = Pt(a, d, {}), { WebkitTextStroke: N } = w, R = ln(a, d), C = Cr(
2078
+ )`, { durationInFrames: g } = kt(t.display, n), v = (s || 0) - t.display.from * n / 1e3, w = Pt(a, d, {}), { WebkitTextStroke: N } = w, R = ln(a, d), C = Cr(
2079
2079
  a.effects,
2080
2080
  i,
2081
2081
  v,
2082
2082
  g
2083
- ), E = Vr(C), { filter: Y, overlays: _ } = xn(C), F = a.width || d.width || 300, X = a.height || d.height || 300, P = Jo(a.src), z = (ut = (nt = i == null ? void 0 : i.loop) == null ? void 0 : nt.composition) == null ? void 0 : ut.find(
2084
- (j) => j.property === "textGridMarqueeTextAnimationLoop" || j.property === "textGridMarquee" || j.property === "imageGridMarqueeTextAnimationLoop" || j.property === "imageGridMarquee" || j.id === "textGridMarquee" || j.id === "imageGridMarquee"
2085
- ), O = !!(z && v >= (z.delay || 0) && v <= (z.delay || 0) + (z.durationInFrames || 60)), A = (mt = (it = i == null ? void 0 : i.loop) == null ? void 0 : it.composition) == null ? void 0 : mt.find(
2086
- (j) => j.property === "inwardEchoes" || j.id === "inwardEchoes"
2087
- ), J = !!(A && v >= (A.delay || 0) && v <= (A.delay || 0) + (A.durationInFrames || 120)), Z = (tt = (pt = i == null ? void 0 : i.loop) == null ? void 0 : pt.composition) == null ? void 0 : tt.find(
2088
- (j) => j.property === "wiggle" || j.id === "wiggle"
2089
- ), D = !!(Z && v >= (Z.delay || 0) && v <= (Z.delay || 0) + (Z.durationInFrames || 120)), L = (et = (st = i == null ? void 0 : i.loop) == null ? void 0 : st.composition) == null ? void 0 : et.find(
2090
- (j) => j.property === "cardFlip" || j.id === "cardFlip"
2091
- ), H = !!(L && v >= (L.delay || 0) && v <= (L.delay || 0) + (L.durationInFrames || 120)), G = (dt = (ct = i == null ? void 0 : i.loop) == null ? void 0 : ct.composition) == null ? void 0 : dt.find(
2092
- (j) => j.property === "noiseTile" || j.id === "noiseTile"
2093
- ), ft = !!(G && v >= (G.delay || 0) && v <= (G.delay || 0) + (G.durationInFrames || 120)), U = [
2083
+ ), E = Vr(C), { filter: Y, overlays: _ } = mn(C), F = a.width || d.width || 300, X = a.height || d.height || 300, P = Ko(a.src), z = (ut = (nt = i == null ? void 0 : i.loop) == null ? void 0 : nt.composition) == null ? void 0 : ut.find(
2084
+ (tt) => tt.property === "textGridMarqueeTextAnimationLoop" || tt.property === "textGridMarquee" || tt.property === "imageGridMarqueeTextAnimationLoop" || tt.property === "imageGridMarquee" || tt.id === "textGridMarquee" || tt.id === "imageGridMarquee"
2085
+ ), O = !!(z && v >= (z.delay || 0) && v <= (z.delay || 0) + (z.durationInFrames || 60)), j = (mt = (it = i == null ? void 0 : i.loop) == null ? void 0 : it.composition) == null ? void 0 : mt.find(
2086
+ (tt) => tt.property === "inwardEchoes" || tt.id === "inwardEchoes"
2087
+ ), q = !!(j && v >= (j.delay || 0) && v <= (j.delay || 0) + (j.durationInFrames || 120)), U = (D = (ft = i == null ? void 0 : i.loop) == null ? void 0 : ft.composition) == null ? void 0 : D.find(
2088
+ (tt) => tt.property === "wiggle" || tt.id === "wiggle"
2089
+ ), T = !!(U && v >= (U.delay || 0) && v <= (U.delay || 0) + (U.durationInFrames || 120)), A = (et = (st = i == null ? void 0 : i.loop) == null ? void 0 : st.composition) == null ? void 0 : et.find(
2090
+ (tt) => tt.property === "cardFlip" || tt.id === "cardFlip"
2091
+ ), H = !!(A && v >= (A.delay || 0) && v <= (A.delay || 0) + (A.durationInFrames || 120)), G = (dt = (ct = i == null ? void 0 : i.loop) == null ? void 0 : ct.composition) == null ? void 0 : dt.find(
2092
+ (tt) => tt.property === "noiseTile" || tt.id === "noiseTile"
2093
+ ), bt = !!(G && v >= (G.delay || 0) && v <= (G.delay || 0) + (G.durationInFrames || 120)), L = [
2094
2094
  ...((yt = i == null ? void 0 : i.in) == null ? void 0 : yt.composition) || [],
2095
- ...((bt = i == null ? void 0 : i.out) == null ? void 0 : bt.composition) || [],
2096
- ...((St = i == null ? void 0 : i.timed) == null ? void 0 : St.composition) || [],
2095
+ ...((vt = i == null ? void 0 : i.out) == null ? void 0 : vt.composition) || [],
2096
+ ...((Mt = i == null ? void 0 : i.timed) == null ? void 0 : Mt.composition) || [],
2097
2097
  ...((lt = i == null ? void 0 : i.loop) == null ? void 0 : lt.composition) || []
2098
- ], q = () => O ? /* @__PURE__ */ f(
2099
- bn,
2098
+ ], K = () => O ? /* @__PURE__ */ f(
2099
+ yn,
2100
2100
  {
2101
2101
  src: a.src,
2102
2102
  frame: v,
@@ -2113,15 +2113,15 @@ function kn({
2113
2113
  fps: n,
2114
2114
  marqueeDetails: z == null ? void 0 : z.details
2115
2115
  }
2116
- ) : J ? /* @__PURE__ */ f(
2117
- vn,
2116
+ ) : q ? /* @__PURE__ */ f(
2117
+ bn,
2118
2118
  {
2119
2119
  src: a.src,
2120
2120
  frame: v,
2121
- delay: A == null ? void 0 : A.delay,
2122
- durationInFrames: A == null ? void 0 : A.durationInFrames,
2123
- from: A == null ? void 0 : A.from,
2124
- to: A == null ? void 0 : A.to,
2121
+ delay: j == null ? void 0 : j.delay,
2122
+ durationInFrames: j == null ? void 0 : j.durationInFrames,
2123
+ from: j == null ? void 0 : j.from,
2124
+ to: j == null ? void 0 : j.to,
2125
2125
  width: F,
2126
2126
  height: X,
2127
2127
  borderRadius: R.borderRadius,
@@ -2129,17 +2129,17 @@ function kn({
2129
2129
  borderColor: a.borderColor,
2130
2130
  boxShadow: a.boxShadow,
2131
2131
  fps: n,
2132
- echoesDetails: A == null ? void 0 : A.details
2132
+ echoesDetails: j == null ? void 0 : j.details
2133
2133
  }
2134
- ) : D ? /* @__PURE__ */ f(
2135
- gn,
2134
+ ) : T ? /* @__PURE__ */ f(
2135
+ vn,
2136
2136
  {
2137
2137
  src: a.src,
2138
2138
  frame: v,
2139
- delay: Z == null ? void 0 : Z.delay,
2140
- durationInFrames: Z == null ? void 0 : Z.durationInFrames,
2141
- from: Z == null ? void 0 : Z.from,
2142
- to: Z == null ? void 0 : Z.to,
2139
+ delay: U == null ? void 0 : U.delay,
2140
+ durationInFrames: U == null ? void 0 : U.durationInFrames,
2141
+ from: U == null ? void 0 : U.from,
2142
+ to: U == null ? void 0 : U.to,
2143
2143
  width: F,
2144
2144
  height: X,
2145
2145
  borderRadius: R.borderRadius,
@@ -2147,17 +2147,17 @@ function kn({
2147
2147
  borderColor: a.borderColor,
2148
2148
  boxShadow: a.boxShadow,
2149
2149
  fps: n,
2150
- wiggleDetails: Z == null ? void 0 : Z.details
2150
+ wiggleDetails: U == null ? void 0 : U.details
2151
2151
  }
2152
2152
  ) : H ? /* @__PURE__ */ f(
2153
- ko,
2153
+ Io,
2154
2154
  {
2155
2155
  src: a.src,
2156
2156
  frame: v,
2157
- delay: L == null ? void 0 : L.delay,
2158
- durationInFrames: L == null ? void 0 : L.durationInFrames,
2159
- from: L == null ? void 0 : L.from,
2160
- to: L == null ? void 0 : L.to,
2157
+ delay: A == null ? void 0 : A.delay,
2158
+ durationInFrames: A == null ? void 0 : A.durationInFrames,
2159
+ from: A == null ? void 0 : A.from,
2160
+ to: A == null ? void 0 : A.to,
2161
2161
  width: F,
2162
2162
  height: X,
2163
2163
  borderRadius: R.borderRadius,
@@ -2165,12 +2165,12 @@ function kn({
2165
2165
  borderColor: a.borderColor,
2166
2166
  boxShadow: a.boxShadow,
2167
2167
  fps: n,
2168
- cardFlipDetails: L == null ? void 0 : L.details,
2168
+ cardFlipDetails: A == null ? void 0 : A.details,
2169
2169
  activeEffects: C,
2170
2170
  effects: E
2171
2171
  }
2172
- ) : ft ? /* @__PURE__ */ f(
2173
- No,
2172
+ ) : bt ? /* @__PURE__ */ f(
2173
+ ko,
2174
2174
  {
2175
2175
  src: a.src,
2176
2176
  frame: v,
@@ -2188,7 +2188,7 @@ function kn({
2188
2188
  noiseTileDetails: G == null ? void 0 : G.details
2189
2189
  }
2190
2190
  ) : P ? /* @__PURE__ */ f(
2191
- re,
2191
+ te,
2192
2192
  {
2193
2193
  src: a.src,
2194
2194
  playbackRate: e,
@@ -2210,10 +2210,10 @@ function kn({
2210
2210
  objectFit: "cover",
2211
2211
  borderRadius: R.borderRadius,
2212
2212
  filter: Y || void 0,
2213
- clipPath: u > 0 || d.x || d.y ? k : void 0
2213
+ clipPath: k
2214
2214
  }
2215
2215
  }
2216
- ), ot = O || J || D || H || ft, vt = /* @__PURE__ */ f(
2216
+ ), ot = O || q || T || H || bt, gt = /* @__PURE__ */ f(
2217
2217
  jt,
2218
2218
  {
2219
2219
  style: {
@@ -2242,10 +2242,10 @@ function kn({
2242
2242
  Tt,
2243
2243
  {
2244
2244
  item: t,
2245
- keyframeAnimations: U,
2245
+ keyframeAnimations: L,
2246
2246
  frame: v,
2247
2247
  durationInFrames: g,
2248
- children: /* @__PURE__ */ gt(
2248
+ children: /* @__PURE__ */ xt(
2249
2249
  "div",
2250
2250
  {
2251
2251
  style: {
@@ -2254,7 +2254,7 @@ function kn({
2254
2254
  height: "100%"
2255
2255
  },
2256
2256
  children: [
2257
- !O && !J && !D && !H && !ft && a.boxShadow && /* @__PURE__ */ f(
2257
+ !O && !q && !T && !H && !bt && a.boxShadow && /* @__PURE__ */ f(
2258
2258
  "div",
2259
2259
  {
2260
2260
  style: {
@@ -2269,7 +2269,7 @@ function kn({
2269
2269
  }
2270
2270
  }
2271
2271
  ),
2272
- /* @__PURE__ */ gt(
2272
+ /* @__PURE__ */ f(
2273
2273
  "div",
2274
2274
  {
2275
2275
  id: `${t.id}-reveal-mask`,
@@ -2284,39 +2284,29 @@ function kn({
2284
2284
  overflow: ot ? "visible" : "hidden",
2285
2285
  borderRadius: R.borderRadius
2286
2286
  },
2287
- children: [
2288
- /* @__PURE__ */ gt(
2289
- "div",
2290
- {
2291
- style: {
2292
- ...R,
2293
- overflow: "visible",
2294
- boxShadow: O ? "none" : R.boxShadow
2295
- },
2296
- children: [
2297
- E ? /* @__PURE__ */ f(
2298
- _r,
2299
- {
2300
- width: F,
2301
- height: X,
2302
- effects: E,
2303
- children: q()
2304
- }
2305
- ) : q(),
2306
- _.map((j) => /* @__PURE__ */ f("div", { style: j.style }, j.id))
2307
- ]
2308
- }
2309
- ),
2310
- !O && !J && !D && !H && !ft && !!a.borderWidth && /* @__PURE__ */ f(
2311
- "div",
2312
- {
2313
- style: {
2314
- ...hn(a, d),
2315
- backgroundColor: "transparent"
2316
- }
2317
- }
2318
- )
2319
- ]
2287
+ children: /* @__PURE__ */ xt(
2288
+ "div",
2289
+ {
2290
+ style: {
2291
+ ...R,
2292
+ overflow: "visible",
2293
+ boxShadow: O ? "none" : R.boxShadow,
2294
+ background: ot ? "transparent" : a.borderColor
2295
+ },
2296
+ children: [
2297
+ E ? /* @__PURE__ */ f(
2298
+ _r,
2299
+ {
2300
+ width: F,
2301
+ height: X,
2302
+ effects: E,
2303
+ children: K()
2304
+ }
2305
+ ) : K(),
2306
+ _.map((tt) => /* @__PURE__ */ f("div", { style: tt.style }, tt.id))
2307
+ ]
2308
+ }
2309
+ )
2320
2310
  }
2321
2311
  )
2322
2312
  ]
@@ -2328,20 +2318,20 @@ function kn({
2328
2318
  )
2329
2319
  }
2330
2320
  );
2331
- return $t({ item: t, options: r, children: vt });
2321
+ return St({ item: t, options: r, children: gt });
2332
2322
  }
2333
- const Nn = ({
2323
+ const kn = ({
2334
2324
  item: t,
2335
2325
  options: r
2336
2326
  }) => {
2337
2327
  var u, l, b, y;
2338
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Rt(
2328
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Ft(
2339
2329
  a,
2340
2330
  t,
2341
2331
  s,
2342
2332
  n,
2343
2333
  r
2344
- ), { durationInFrames: o } = It(t.display, n), h = (s || 0) - t.display.from * n / 1e3, d = /* @__PURE__ */ f(
2334
+ ), { durationInFrames: o } = kt(t.display, n), h = (s || 0) - t.display.from * n / 1e3, d = /* @__PURE__ */ f(
2345
2335
  jt,
2346
2336
  {
2347
2337
  style: Pt(c),
@@ -2391,7 +2381,7 @@ const Nn = ({
2391
2381
  )
2392
2382
  }
2393
2383
  );
2394
- return $t({ item: t, options: r, children: d });
2384
+ return St({ item: t, options: r, children: d });
2395
2385
  }, Lr = {
2396
2386
  // Legacy Easings
2397
2387
  linear: I.linear,
@@ -2416,7 +2406,7 @@ const Nn = ({
2416
2406
  swing: I.inOut(I.back(1.70158)),
2417
2407
  none: I.linear,
2418
2408
  custom: I.inOut(I.cubic)
2419
- }, ne = (t) => Lr[t] || Lr.linear, oe = ({
2409
+ }, re = (t) => Lr[t] || Lr.linear, ne = ({
2420
2410
  char: t,
2421
2411
  index: r,
2422
2412
  frame: n,
@@ -2471,7 +2461,7 @@ const Nn = ({
2471
2461
  const $ = y ? 1 : W(S, [0, x], [0, 1], {
2472
2462
  extrapolateLeft: "clamp",
2473
2463
  extrapolateRight: "clamp"
2474
- }), k = ne(o), g = y ? 1 : k($), v = e + (p - e) * g;
2464
+ }), k = re(o), g = y ? 1 : k($), v = e + (p - e) * g;
2475
2465
  let w = {
2476
2466
  display: "inline-block",
2477
2467
  transformOrigin: "center"
@@ -2596,7 +2586,7 @@ const Nn = ({
2596
2586
  N.push(`scale(${E})`);
2597
2587
  }
2598
2588
  return N.length > 0 && (w.transform = N.join(" ")), R.length > 0 && (w.filter = R.join(" ")), /* @__PURE__ */ f("span", { style: w, children: t === " " ? " " : t }, r);
2599
- }, ee = ({
2589
+ }, oe = ({
2600
2590
  char: t,
2601
2591
  index: r,
2602
2592
  frame: n,
@@ -2604,7 +2594,7 @@ const Nn = ({
2604
2594
  textLength: c,
2605
2595
  animationTextInFrames: a
2606
2596
  }) => {
2607
- const i = a, e = i / (c + 1), p = r * e, o = wt({
2597
+ const i = a, e = i / (c + 1), p = r * e, o = It({
2608
2598
  frame: n - p,
2609
2599
  fps: s,
2610
2600
  from: 4,
@@ -2629,7 +2619,7 @@ const Nn = ({
2629
2619
  },
2630
2620
  r
2631
2621
  );
2632
- }, se = ({
2622
+ }, ee = ({
2633
2623
  char: t,
2634
2624
  index: r,
2635
2625
  frame: n,
@@ -2637,7 +2627,7 @@ const Nn = ({
2637
2627
  textLength: c,
2638
2628
  animationTextInFrames: a
2639
2629
  }) => {
2640
- const e = a / c, p = r * e, o = wt({
2630
+ const e = a / c, p = r * e, o = It({
2641
2631
  frame: n - p,
2642
2632
  fps: s,
2643
2633
  from: -90,
@@ -2655,7 +2645,7 @@ const Nn = ({
2655
2645
  },
2656
2646
  r
2657
2647
  );
2658
- }, ae = ({
2648
+ }, se = ({
2659
2649
  char: t,
2660
2650
  index: r,
2661
2651
  frame: n,
@@ -2663,7 +2653,7 @@ const Nn = ({
2663
2653
  textLength: c,
2664
2654
  animationTextInFrames: a
2665
2655
  }) => {
2666
- const e = a / c, p = r * e, o = wt({
2656
+ const e = a / c, p = r * e, o = It({
2667
2657
  frame: n - p,
2668
2658
  fps: s,
2669
2659
  from: 0,
@@ -2681,7 +2671,7 @@ const Nn = ({
2681
2671
  },
2682
2672
  r
2683
2673
  );
2684
- }, ce = ({
2674
+ }, ae = ({
2685
2675
  char: t,
2686
2676
  index: r,
2687
2677
  frame: n,
@@ -2689,7 +2679,7 @@ const Nn = ({
2689
2679
  textLength: c,
2690
2680
  animationTextInFrames: a
2691
2681
  }) => {
2692
- const i = a, e = i / c, p = r * e, o = wt({
2682
+ const i = a, e = i / c, p = r * e, o = It({
2693
2683
  frame: n - p,
2694
2684
  fps: s,
2695
2685
  from: 1.1,
@@ -2711,7 +2701,7 @@ const Nn = ({
2711
2701
  },
2712
2702
  r
2713
2703
  );
2714
- }, ie = ({
2704
+ }, ce = ({
2715
2705
  char: t,
2716
2706
  index: r,
2717
2707
  frame: n,
@@ -2719,7 +2709,7 @@ const Nn = ({
2719
2709
  textLength: c,
2720
2710
  animationTextInFrames: a
2721
2711
  }) => {
2722
- const i = a, e = i / c, p = r * e, o = wt({
2712
+ const i = a, e = i / c, p = r * e, o = It({
2723
2713
  frame: n - p,
2724
2714
  fps: s,
2725
2715
  from: -100,
@@ -2747,7 +2737,7 @@ const Nn = ({
2747
2737
  },
2748
2738
  r
2749
2739
  );
2750
- }, de = ({
2740
+ }, ie = ({
2751
2741
  char: t,
2752
2742
  index: r,
2753
2743
  frame: n,
@@ -2756,19 +2746,19 @@ const Nn = ({
2756
2746
  animationTextOutFrames: a,
2757
2747
  durationInFrames: i
2758
2748
  }) => {
2759
- const e = i - a, p = r / c * (i - e), o = wt({
2749
+ const e = i - a, p = r / c * (i - e), o = It({
2760
2750
  frame: n - e - p,
2761
2751
  fps: s,
2762
2752
  from: 1,
2763
2753
  to: 0,
2764
2754
  config: { mass: 0.5, damping: 10 }
2765
- }), h = wt({
2755
+ }), h = It({
2766
2756
  frame: n - e - p,
2767
2757
  fps: s,
2768
2758
  from: 0,
2769
2759
  to: 50,
2770
2760
  config: { mass: 0.5, damping: 10 }
2771
- }), d = wt({
2761
+ }), d = It({
2772
2762
  frame: n - e - p,
2773
2763
  fps: s,
2774
2764
  from: 0,
@@ -2787,7 +2777,7 @@ const Nn = ({
2787
2777
  },
2788
2778
  r
2789
2779
  );
2790
- }, ue = ({
2780
+ }, de = ({
2791
2781
  char: t,
2792
2782
  index: r,
2793
2783
  frame: n,
@@ -2796,7 +2786,7 @@ const Nn = ({
2796
2786
  animationTextOutFrames: a,
2797
2787
  durationInFrames: i
2798
2788
  }) => {
2799
- const e = i - a, p = a / c, o = e + r * p, h = n - o, d = wt({
2789
+ const e = i - a, p = a / c, o = e + r * p, h = n - o, d = It({
2800
2790
  frame: h,
2801
2791
  fps: s,
2802
2792
  from: 1,
@@ -2818,7 +2808,7 @@ const Nn = ({
2818
2808
  },
2819
2809
  r
2820
2810
  );
2821
- }, le = ({
2811
+ }, ue = ({
2822
2812
  char: t,
2823
2813
  index: r,
2824
2814
  frame: n,
@@ -2827,7 +2817,7 @@ const Nn = ({
2827
2817
  animationTextOutFrames: a,
2828
2818
  durationInFrames: i
2829
2819
  }) => {
2830
- const p = a / c, h = i - a + r * p, d = n - h, u = wt({
2820
+ const p = a / c, h = i - a + r * p, d = n - h, u = It({
2831
2821
  frame: d,
2832
2822
  fps: s,
2833
2823
  from: 0,
@@ -2845,7 +2835,7 @@ const Nn = ({
2845
2835
  },
2846
2836
  r
2847
2837
  );
2848
- }, he = ({
2838
+ }, le = ({
2849
2839
  char: t,
2850
2840
  index: r,
2851
2841
  frame: n,
@@ -2854,7 +2844,7 @@ const Nn = ({
2854
2844
  animationTextOutFrames: a,
2855
2845
  durationInFrames: i
2856
2846
  }) => {
2857
- const p = a / c, h = i - a + r * p, d = n - h, u = wt({
2847
+ const p = a / c, h = i - a + r * p, d = n - h, u = It({
2858
2848
  frame: d,
2859
2849
  fps: s,
2860
2850
  from: 0,
@@ -2876,7 +2866,7 @@ const Nn = ({
2876
2866
  },
2877
2867
  r
2878
2868
  );
2879
- }, pe = ({
2869
+ }, he = ({
2880
2870
  char: t,
2881
2871
  index: r,
2882
2872
  frame: n,
@@ -2884,19 +2874,19 @@ const Nn = ({
2884
2874
  textLength: c,
2885
2875
  animationTextInFrames: a
2886
2876
  }) => {
2887
- const e = a / c, p = r * e, o = wt({
2877
+ const e = a / c, p = r * e, o = It({
2888
2878
  frame: n - p,
2889
2879
  fps: s,
2890
2880
  from: 1.1,
2891
2881
  to: 0,
2892
2882
  config: { damping: 10 }
2893
- }), h = wt({
2883
+ }), h = It({
2894
2884
  frame: n - p,
2895
2885
  fps: s,
2896
2886
  from: 0.55,
2897
2887
  to: 0,
2898
2888
  config: { damping: 10 }
2899
- }), d = wt({
2889
+ }), d = It({
2900
2890
  frame: n - p,
2901
2891
  fps: s,
2902
2892
  from: 180,
@@ -2925,7 +2915,7 @@ const Nn = ({
2925
2915
  },
2926
2916
  r
2927
2917
  );
2928
- }, fe = ({
2918
+ }, pe = ({
2929
2919
  char: t,
2930
2920
  index: r,
2931
2921
  frame: n,
@@ -2934,7 +2924,7 @@ const Nn = ({
2934
2924
  animationTextOutFrames: a,
2935
2925
  durationInFrames: i
2936
2926
  }) => {
2937
- const e = i - a, p = a / c, o = e + r * p, h = n - o, d = wt({
2927
+ const e = i - a, p = a / c, o = e + r * p, h = n - o, d = It({
2938
2928
  frame: h,
2939
2929
  fps: s,
2940
2930
  from: 0,
@@ -2963,7 +2953,7 @@ const Nn = ({
2963
2953
  },
2964
2954
  r
2965
2955
  );
2966
- }, ye = ({
2956
+ }, fe = ({
2967
2957
  char: t,
2968
2958
  index: r,
2969
2959
  frame: n,
@@ -2972,19 +2962,19 @@ const Nn = ({
2972
2962
  animationTextOutFrames: a,
2973
2963
  durationInFrames: i
2974
2964
  }) => {
2975
- const e = i - a, p = a / c, o = e + r * p, h = n - o, d = wt({
2965
+ const e = i - a, p = a / c, o = e + r * p, h = n - o, d = It({
2976
2966
  frame: h,
2977
2967
  fps: s,
2978
2968
  from: 0,
2979
2969
  to: 1,
2980
2970
  config: { mass: 1, damping: 10 }
2981
- }), u = wt({
2971
+ }), u = It({
2982
2972
  frame: h,
2983
2973
  fps: s,
2984
2974
  from: 0,
2985
2975
  to: 0.55,
2986
2976
  config: { mass: 1, damping: 10 }
2987
- }), l = wt({
2977
+ }), l = It({
2988
2978
  frame: h,
2989
2979
  fps: s,
2990
2980
  from: 0,
@@ -3007,7 +2997,7 @@ const Nn = ({
3007
2997
  },
3008
2998
  r
3009
2999
  );
3010
- }, be = ({
3000
+ }, ye = ({
3011
3001
  char: t,
3012
3002
  index: r,
3013
3003
  frame: n,
@@ -3016,7 +3006,7 @@ const Nn = ({
3016
3006
  animationTextOutFrames: a,
3017
3007
  durationInFrames: i
3018
3008
  }) => {
3019
- const e = i - a, p = a / c, o = e + r * p, h = n - o, d = wt({
3009
+ const e = i - a, p = a / c, o = e + r * p, h = n - o, d = It({
3020
3010
  frame: h,
3021
3011
  fps: s,
3022
3012
  from: 1,
@@ -3034,7 +3024,7 @@ const Nn = ({
3034
3024
  },
3035
3025
  r
3036
3026
  );
3037
- }, ve = ({
3027
+ }, be = ({
3038
3028
  char: t,
3039
3029
  frame: r,
3040
3030
  fps: n,
@@ -3051,7 +3041,7 @@ const Nn = ({
3051
3041
  children: t
3052
3042
  }
3053
3043
  );
3054
- }, ge = ({
3044
+ }, ve = ({
3055
3045
  char: t,
3056
3046
  frame: r,
3057
3047
  fps: n
@@ -3068,7 +3058,7 @@ const Nn = ({
3068
3058
  children: t
3069
3059
  }
3070
3060
  );
3071
- }, me = ({
3061
+ }, ge = ({
3072
3062
  frame: t,
3073
3063
  fps: r,
3074
3064
  char: n
@@ -3084,7 +3074,7 @@ const Nn = ({
3084
3074
  children: n
3085
3075
  }
3086
3076
  );
3087
- }, xe = ({
3077
+ }, me = ({
3088
3078
  char: t,
3089
3079
  index: r,
3090
3080
  frame: n,
@@ -3104,7 +3094,7 @@ const Nn = ({
3104
3094
  },
3105
3095
  r
3106
3096
  );
3107
- }, $e = ({
3097
+ }, xe = ({
3108
3098
  char: t,
3109
3099
  index: r,
3110
3100
  frame: n,
@@ -3124,7 +3114,7 @@ const Nn = ({
3124
3114
  },
3125
3115
  r
3126
3116
  );
3127
- }, Se = ({
3117
+ }, $e = ({
3128
3118
  char: t,
3129
3119
  index: r,
3130
3120
  frame: n,
@@ -3148,7 +3138,7 @@ const Nn = ({
3148
3138
  },
3149
3139
  r
3150
3140
  );
3151
- }, Me = ({
3141
+ }, Se = ({
3152
3142
  char: t,
3153
3143
  index: r,
3154
3144
  frame: n,
@@ -3172,7 +3162,7 @@ const Nn = ({
3172
3162
  },
3173
3163
  r
3174
3164
  );
3175
- }, we = ({
3165
+ }, Me = ({
3176
3166
  char: t,
3177
3167
  frame: r,
3178
3168
  fps: n
@@ -3189,7 +3179,7 @@ const Nn = ({
3189
3179
  children: t
3190
3180
  }
3191
3181
  );
3192
- }, Ie = ({
3182
+ }, we = ({
3193
3183
  char: t,
3194
3184
  frame: r,
3195
3185
  fps: n,
@@ -3211,7 +3201,7 @@ function $r(t) {
3211
3201
  const r = Math.sin(t) * 1e4;
3212
3202
  return r - Math.floor(r);
3213
3203
  }
3214
- const ke = ({
3204
+ const Ie = ({
3215
3205
  char: t,
3216
3206
  index: r,
3217
3207
  frame: n
@@ -3228,7 +3218,7 @@ const ke = ({
3228
3218
  },
3229
3219
  r
3230
3220
  );
3231
- }, Ne = ({
3221
+ }, ke = ({
3232
3222
  char: t,
3233
3223
  index: r,
3234
3224
  frame: n,
@@ -3249,7 +3239,7 @@ const ke = ({
3249
3239
  extrapolateRight: "clamp"
3250
3240
  }
3251
3241
  );
3252
- return /* @__PURE__ */ gt(
3242
+ return /* @__PURE__ */ xt(
3253
3243
  "span",
3254
3244
  {
3255
3245
  style: {
@@ -3281,7 +3271,7 @@ const ke = ({
3281
3271
  }
3282
3272
  );
3283
3273
  };
3284
- function Re({
3274
+ function Ne({
3285
3275
  frame: t,
3286
3276
  durationInFrames: r,
3287
3277
  text: n,
@@ -3303,7 +3293,7 @@ function Re({
3303
3293
  return "";
3304
3294
  }).join(" ");
3305
3295
  }, [c]);
3306
- return /* @__PURE__ */ gt(
3296
+ return /* @__PURE__ */ xt(
3307
3297
  "div",
3308
3298
  {
3309
3299
  style: {
@@ -3333,7 +3323,7 @@ function Re({
3333
3323
  }
3334
3324
  );
3335
3325
  }
3336
- const Fe = ({
3326
+ const Re = ({
3337
3327
  text: t,
3338
3328
  frame: r,
3339
3329
  details: n,
@@ -3388,7 +3378,7 @@ const Fe = ({
3388
3378
  )
3389
3379
  }
3390
3380
  );
3391
- }, Ye = ({
3381
+ }, Fe = ({
3392
3382
  text: t,
3393
3383
  frame: r,
3394
3384
  animationTextInFrames: n,
@@ -3439,7 +3429,7 @@ const Fe = ({
3439
3429
  )
3440
3430
  );
3441
3431
  }
3442
- return /* @__PURE__ */ gt(
3432
+ return /* @__PURE__ */ xt(
3443
3433
  "div",
3444
3434
  {
3445
3435
  style: {
@@ -3504,7 +3494,7 @@ const Fe = ({
3504
3494
  ]
3505
3495
  }
3506
3496
  );
3507
- }, Hr = ["3", "2", "1"], Xe = ({
3497
+ }, Hr = ["3", "2", "1"], Ye = ({
3508
3498
  text: t,
3509
3499
  frame: r,
3510
3500
  animationTextInFrames: n,
@@ -3535,7 +3525,7 @@ const Fe = ({
3535
3525
  children: i
3536
3526
  }
3537
3527
  );
3538
- }, Be = ({
3528
+ }, Xe = ({
3539
3529
  text: t,
3540
3530
  frame: r,
3541
3531
  details: n,
@@ -3599,7 +3589,7 @@ const Fe = ({
3599
3589
  ))
3600
3590
  }
3601
3591
  );
3602
- }, Pe = ({
3592
+ }, Be = ({
3603
3593
  text: t,
3604
3594
  frame: r,
3605
3595
  fps: n
@@ -3615,13 +3605,13 @@ const Fe = ({
3615
3605
  children: t
3616
3606
  }
3617
3607
  );
3618
- }, Ee = ({
3608
+ }, Pe = ({
3619
3609
  frame: t,
3620
3610
  durationInFrames: r,
3621
3611
  text: n
3622
3612
  }) => {
3623
3613
  const s = W(t, [0, r / 2], [0, 360]), c = s - 90;
3624
- return /* @__PURE__ */ gt(
3614
+ return /* @__PURE__ */ xt(
3625
3615
  "div",
3626
3616
  {
3627
3617
  style: {
@@ -3660,7 +3650,7 @@ const Fe = ({
3660
3650
  ]
3661
3651
  }
3662
3652
  );
3663
- }, _e = ({
3653
+ }, Ee = ({
3664
3654
  frame: t,
3665
3655
  text: r,
3666
3656
  details: n,
@@ -3694,7 +3684,7 @@ function Sr(t) {
3694
3684
  const r = Math.sin(t) * 1e4;
3695
3685
  return r - Math.floor(r);
3696
3686
  }
3697
- const We = ({ text: t, frame: r }) => {
3687
+ const _e = ({ text: t, frame: r }) => {
3698
3688
  const n = (Sr(r) - 0.5) * 8, s = (Sr(r + 999) - 0.5) * 8, c = (Sr(r + 500) - 0.5) * 6;
3699
3689
  return /* @__PURE__ */ f(
3700
3690
  "span",
@@ -3706,7 +3696,7 @@ const We = ({ text: t, frame: r }) => {
3706
3696
  children: t
3707
3697
  }
3708
3698
  );
3709
- }, Ur = 9, Ve = ({
3699
+ }, Ur = 9, We = ({
3710
3700
  text: t,
3711
3701
  frame: r,
3712
3702
  details: n,
@@ -3745,9 +3735,9 @@ const We = ({ text: t, frame: r }) => {
3745
3735
  })
3746
3736
  }
3747
3737
  );
3748
- }, Ce = ({ text: t, frame: r }) => {
3738
+ }, Ve = ({ text: t, frame: r }) => {
3749
3739
  const n = Math.sin(r / 10) * 10, s = Math.sin(r / 5) * 10;
3750
- return /* @__PURE__ */ gt(
3740
+ return /* @__PURE__ */ xt(
3751
3741
  "span",
3752
3742
  {
3753
3743
  style: {
@@ -3784,7 +3774,7 @@ const We = ({ text: t, frame: r }) => {
3784
3774
  ]
3785
3775
  }
3786
3776
  );
3787
- }, Oe = ({
3777
+ }, Ce = ({
3788
3778
  text: t,
3789
3779
  frame: r,
3790
3780
  delay: n = 0,
@@ -3794,22 +3784,22 @@ const We = ({ text: t, frame: r }) => {
3794
3784
  details: i,
3795
3785
  marqueeDetails: e
3796
3786
  }) => {
3797
- const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = Math.max(0, o - (n || 0)), d = Math.min(1, Math.max(0, h / (s || 1))), u = i.width || 300, l = i.height || 100, b = (e == null ? void 0 : e.direction) || "horizontal", y = b === "static", x = Math.min(15, Math.max(1, Number((e == null ? void 0 : e.repeatX) ?? 5))), m = Math.min(15, Math.max(1, Number((e == null ? void 0 : e.repeatY) ?? 5))), M = (e == null ? void 0 : e.baseSpeed) !== void 0 ? Number(e.baseSpeed) : 2, S = (e == null ? void 0 : e.speedVariation) !== void 0 ? Number(e.speedVariation) : 0.5, $ = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialBaseSpeed) !== void 0 ? Number(e.initialBaseSpeed) : M, k = e != null && e.hasInitialValue ? $ + (M - $) * d : M, g = y ? 0 : k * 400, v = y ? 0 : k * 400, w = (e == null ? void 0 : e.scaleFactor) !== void 0 ? Number(e.scaleFactor) : 1, N = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialScaleFactor) !== void 0 ? Number(e.initialScaleFactor) : w, R = e != null && e.hasInitialValue ? N + (w - N) * d : w, C = (e == null ? void 0 : e.lineOffset) !== void 0 ? Number(e.lineOffset) : 0.5, E = (e == null ? void 0 : e.gapX) !== void 0 ? Number(e.gapX) : 60, Y = (e == null ? void 0 : e.gapY) !== void 0 ? Number(e.gapY) : 60, _ = E / 100 * u, F = Y / 100 * l, X = u * R + _, P = l * R + F, z = Dt(i), O = b === "vertical" || b === "up" || b === "down", A = b === "diagonal", J = (x - 1) / 2, Z = (m - 1) / 2, D = m, L = x, H = Array.from({ length: D }, (U, q) => q - Z), G = Array.from({ length: L }, (U, q) => q - J), ft = (U, q, ot, vt) => /* @__PURE__ */ f(
3787
+ const p = Rt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = Math.max(0, o - (n || 0)), d = Math.min(1, Math.max(0, h / (s || 1))), u = i.width || 300, l = i.height || 100, b = (e == null ? void 0 : e.direction) || "horizontal", y = b === "static", x = Math.min(15, Math.max(1, Number((e == null ? void 0 : e.repeatX) ?? 5))), m = Math.min(15, Math.max(1, Number((e == null ? void 0 : e.repeatY) ?? 5))), M = (e == null ? void 0 : e.baseSpeed) !== void 0 ? Number(e.baseSpeed) : 2, S = (e == null ? void 0 : e.speedVariation) !== void 0 ? Number(e.speedVariation) : 0.5, $ = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialBaseSpeed) !== void 0 ? Number(e.initialBaseSpeed) : M, k = e != null && e.hasInitialValue ? $ + (M - $) * d : M, g = y ? 0 : k * 400, v = y ? 0 : k * 400, w = (e == null ? void 0 : e.scaleFactor) !== void 0 ? Number(e.scaleFactor) : 1, N = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialScaleFactor) !== void 0 ? Number(e.initialScaleFactor) : w, R = e != null && e.hasInitialValue ? N + (w - N) * d : w, C = (e == null ? void 0 : e.lineOffset) !== void 0 ? Number(e.lineOffset) : 0.5, E = (e == null ? void 0 : e.gapX) !== void 0 ? Number(e.gapX) : 60, Y = (e == null ? void 0 : e.gapY) !== void 0 ? Number(e.gapY) : 60, _ = E / 100 * u, F = Y / 100 * l, X = u * R + _, P = l * R + F, z = Dt(i), O = b === "vertical" || b === "up" || b === "down", j = b === "diagonal", q = (x - 1) / 2, U = (m - 1) / 2, T = m, A = x, H = Array.from({ length: T }, (L, K) => K - U), G = Array.from({ length: A }, (L, K) => K - q), bt = (L, K, ot, gt) => /* @__PURE__ */ f(
3798
3788
  "span",
3799
3789
  {
3800
3790
  style: {
3801
3791
  ...z,
3802
3792
  position: "absolute",
3803
- left: `calc(50% + ${q}px)`,
3793
+ left: `calc(50% + ${K}px)`,
3804
3794
  top: `calc(50% + ${ot}px)`,
3805
3795
  transform: `translate(-50%, -50%) scale(${R})`,
3806
3796
  transformOrigin: "center center",
3807
- opacity: vt ? 1 : 0.85,
3797
+ opacity: gt ? 1 : 0.85,
3808
3798
  whiteSpace: "nowrap"
3809
3799
  },
3810
3800
  children: t
3811
3801
  },
3812
- U
3802
+ L
3813
3803
  );
3814
3804
  return O ? /* @__PURE__ */ f(
3815
3805
  "div",
@@ -3820,22 +3810,22 @@ const We = ({ text: t, frame: r }) => {
3820
3810
  position: "relative",
3821
3811
  overflow: "visible"
3822
3812
  },
3823
- children: G.map((U, q) => {
3824
- let ot = q % 2 === 0 ? 1 : -1;
3813
+ children: G.map((L, K) => {
3814
+ let ot = K % 2 === 0 ? 1 : -1;
3825
3815
  b === "up" && (ot = -1), b === "down" && (ot = 1);
3826
- const vt = 1 + q % 2 * (S * 0.5), nt = v > 0 && ot !== 0 ? ot * (h * v * 0.1 * vt) + U * (P * C) : U * (P * C), ut = v === 0 || ot === 0 ? 0 : (nt % P + P) % P - P / 2;
3816
+ const gt = 1 + K % 2 * (S * 0.5), nt = v > 0 && ot !== 0 ? ot * (h * v * 0.1 * gt) + L * (P * C) : L * (P * C), ut = v === 0 || ot === 0 ? 0 : (nt % P + P) % P - P / 2;
3827
3817
  return H.map((it, mt) => {
3828
- const pt = U * X, tt = it * P + ut;
3829
- return ft(
3830
- `v-${q}-${mt}`,
3831
- pt,
3832
- tt,
3833
- U === 0 && it === 0
3818
+ const ft = L * X, D = it * P + ut;
3819
+ return bt(
3820
+ `v-${K}-${mt}`,
3821
+ ft,
3822
+ D,
3823
+ L === 0 && it === 0
3834
3824
  );
3835
3825
  });
3836
3826
  })
3837
3827
  }
3838
- ) : A ? /* @__PURE__ */ f(
3828
+ ) : j ? /* @__PURE__ */ f(
3839
3829
  "div",
3840
3830
  {
3841
3831
  style: {
@@ -3844,15 +3834,15 @@ const We = ({ text: t, frame: r }) => {
3844
3834
  position: "relative",
3845
3835
  overflow: "visible"
3846
3836
  },
3847
- children: H.map((U, q) => {
3848
- const ot = q % 2 === 0 ? 1 : -1, vt = q % 2 === 0 ? 1 : -1, nt = 1 + q % 2 * (S * 0.5), ut = g > 0 ? ot * (h * g * 0.1 * nt) + U * (X * C) : U * (X * C), it = g === 0 ? 0 : (ut % X + X) % X - X / 2, mt = v > 0 ? vt * (h * v * 0.1 * nt) + U * (P * C) : U * (P * C), pt = v === 0 ? 0 : (mt % P + P) % P - P / 2;
3849
- return G.map((tt, st) => {
3850
- const et = tt * X + it, ct = U * P + pt;
3851
- return ft(
3852
- `d-${q}-${st}`,
3837
+ children: H.map((L, K) => {
3838
+ const ot = K % 2 === 0 ? 1 : -1, gt = K % 2 === 0 ? 1 : -1, nt = 1 + K % 2 * (S * 0.5), ut = g > 0 ? ot * (h * g * 0.1 * nt) + L * (X * C) : L * (X * C), it = g === 0 ? 0 : (ut % X + X) % X - X / 2, mt = v > 0 ? gt * (h * v * 0.1 * nt) + L * (P * C) : L * (P * C), ft = v === 0 ? 0 : (mt % P + P) % P - P / 2;
3839
+ return G.map((D, st) => {
3840
+ const et = D * X + it, ct = L * P + ft;
3841
+ return bt(
3842
+ `d-${K}-${st}`,
3853
3843
  et,
3854
3844
  ct,
3855
- U === 0 && tt === 0
3845
+ L === 0 && D === 0
3856
3846
  );
3857
3847
  });
3858
3848
  })
@@ -3866,23 +3856,23 @@ const We = ({ text: t, frame: r }) => {
3866
3856
  position: "relative",
3867
3857
  overflow: "visible"
3868
3858
  },
3869
- children: H.map((U, q) => {
3870
- let ot = q % 2 === 0 ? 1 : -1;
3859
+ children: H.map((L, K) => {
3860
+ let ot = K % 2 === 0 ? 1 : -1;
3871
3861
  b === "left" && (ot = -1), b === "right" && (ot = 1);
3872
- const vt = 1 + q % 2 * (S * 0.5), nt = g > 0 && ot !== 0 ? ot * (h * g * 0.1 * vt) + U * (X * C) : U * (X * C), ut = g === 0 || ot === 0 ? 0 : (nt % X + X) % X - X / 2;
3862
+ const gt = 1 + K % 2 * (S * 0.5), nt = g > 0 && ot !== 0 ? ot * (h * g * 0.1 * gt) + L * (X * C) : L * (X * C), ut = g === 0 || ot === 0 ? 0 : (nt % X + X) % X - X / 2;
3873
3863
  return G.map((it, mt) => {
3874
- const pt = it * X + ut, tt = U * P;
3875
- return ft(
3876
- `h-${q}-${mt}`,
3877
- pt,
3878
- tt,
3879
- U === 0 && it === 0
3864
+ const ft = it * X + ut, D = L * P;
3865
+ return bt(
3866
+ `h-${K}-${mt}`,
3867
+ ft,
3868
+ D,
3869
+ L === 0 && it === 0
3880
3870
  );
3881
3871
  });
3882
3872
  })
3883
3873
  }
3884
3874
  );
3885
- }, ze = ({
3875
+ }, Oe = ({
3886
3876
  text: t,
3887
3877
  frame: r,
3888
3878
  delay: n = 0,
@@ -3892,7 +3882,7 @@ const We = ({ text: t, frame: r }) => {
3892
3882
  details: i,
3893
3883
  echoesDetails: e
3894
3884
  }) => {
3895
- const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = i.width || 300, d = i.height || 100, u = (e == null ? void 0 : e.keepStill) || "both", l = Number((e == null ? void 0 : e.toRepeatCount) ?? 5), b = Number((e == null ? void 0 : e.toScaleDown) ?? 0.3), y = Number((e == null ? void 0 : e.toCenterX) ?? 0.5), x = Number((e == null ? void 0 : e.toCenterY) ?? 0.5), m = (e == null ? void 0 : e.initialRepeatCount) !== void 0 ? Number(e.initialRepeatCount) : l, M = (e == null ? void 0 : e.initialScaleDown) !== void 0 ? Number(e.initialScaleDown) : 1, S = (e == null ? void 0 : e.initialCenterX) !== void 0 ? Number(e.initialCenterX) : y, $ = (e == null ? void 0 : e.initialCenterY) !== void 0 ? Number(e.initialCenterY) : x, k = Math.max(0, o - (n || 0)), g = Math.min(1, Math.max(0, k / (s || 1)));
3885
+ const p = Rt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = i.width || 300, d = i.height || 100, u = (e == null ? void 0 : e.keepStill) || "both", l = Number((e == null ? void 0 : e.toRepeatCount) ?? 5), b = Number((e == null ? void 0 : e.toScaleDown) ?? 0.3), y = Number((e == null ? void 0 : e.toCenterX) ?? 0.5), x = Number((e == null ? void 0 : e.toCenterY) ?? 0.5), m = (e == null ? void 0 : e.initialRepeatCount) !== void 0 ? Number(e.initialRepeatCount) : l, M = (e == null ? void 0 : e.initialScaleDown) !== void 0 ? Number(e.initialScaleDown) : 1, S = (e == null ? void 0 : e.initialCenterX) !== void 0 ? Number(e.initialCenterX) : y, $ = (e == null ? void 0 : e.initialCenterY) !== void 0 ? Number(e.initialCenterY) : x, k = Math.max(0, o - (n || 0)), g = Math.min(1, Math.max(0, k / (s || 1)));
3896
3886
  let w = c + (a - c) * g;
3897
3887
  u === "initial" ? w = 0 : u === "final" && (w = 1);
3898
3888
  const N = Math.max(
@@ -3944,7 +3934,7 @@ const We = ({ text: t, frame: r }) => {
3944
3934
  })
3945
3935
  }
3946
3936
  );
3947
- }, Ge = ({
3937
+ }, ze = ({
3948
3938
  text: t,
3949
3939
  frame: r,
3950
3940
  delay: n = 0,
@@ -3954,7 +3944,7 @@ const We = ({ text: t, frame: r }) => {
3954
3944
  details: i,
3955
3945
  wiggleDetails: e
3956
3946
  }) => {
3957
- const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = Number((e == null ? void 0 : e.wiggleX) ?? 20), d = Number((e == null ? void 0 : e.wiggleY) ?? 20), u = Number((e == null ? void 0 : e.speed) ?? 3), l = Number((e == null ? void 0 : e.angle) ?? 10), b = Number((e == null ? void 0 : e.seed) ?? 1), y = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialWiggleX) !== void 0 ? Number(e.initialWiggleX) : h, x = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialWiggleY) !== void 0 ? Number(e.initialWiggleY) : d, m = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialSpeed) !== void 0 ? Number(e.initialSpeed) : u, M = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialAngle) !== void 0 ? Number(e.initialAngle) : l, S = Math.max(0, o - (n || 0)), $ = Math.min(1, Math.max(0, S / (s || 1))), k = e != null && e.hasInitialValue ? y + (h - y) * $ : h, g = e != null && e.hasInitialValue ? x + (d - x) * $ : d, v = e != null && e.hasInitialValue ? m + (u - m) * $ : u, w = e != null && e.hasInitialValue ? M + (l - M) * $ : l, N = o * (v * 0.08), R = b * 12.345, C = Math.sin(N + R) * Math.cos(N * 0.65 + R) * k, E = Math.cos(N * 0.85 + R) * Math.sin(N * 1.15 + R) * g, Y = Math.sin(N * 0.9 + R * 1.35) * w, _ = Dt(i);
3947
+ const p = Rt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = Number((e == null ? void 0 : e.wiggleX) ?? 20), d = Number((e == null ? void 0 : e.wiggleY) ?? 20), u = Number((e == null ? void 0 : e.speed) ?? 3), l = Number((e == null ? void 0 : e.angle) ?? 10), b = Number((e == null ? void 0 : e.seed) ?? 1), y = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialWiggleX) !== void 0 ? Number(e.initialWiggleX) : h, x = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialWiggleY) !== void 0 ? Number(e.initialWiggleY) : d, m = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialSpeed) !== void 0 ? Number(e.initialSpeed) : u, M = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialAngle) !== void 0 ? Number(e.initialAngle) : l, S = Math.max(0, o - (n || 0)), $ = Math.min(1, Math.max(0, S / (s || 1))), k = e != null && e.hasInitialValue ? y + (h - y) * $ : h, g = e != null && e.hasInitialValue ? x + (d - x) * $ : d, v = e != null && e.hasInitialValue ? m + (u - m) * $ : u, w = e != null && e.hasInitialValue ? M + (l - M) * $ : l, N = o * (v * 0.08), R = b * 12.345, C = Math.sin(N + R) * Math.cos(N * 0.65 + R) * k, E = Math.cos(N * 0.85 + R) * Math.sin(N * 1.15 + R) * g, Y = Math.sin(N * 0.9 + R * 1.35) * w, _ = Dt(i);
3958
3948
  return /* @__PURE__ */ f(
3959
3949
  "div",
3960
3950
  {
@@ -3982,7 +3972,7 @@ const We = ({ text: t, frame: r }) => {
3982
3972
  )
3983
3973
  }
3984
3974
  );
3985
- }, je = ({
3975
+ }, Ge = ({
3986
3976
  text: t,
3987
3977
  frame: r,
3988
3978
  delay: n = 0,
@@ -4007,7 +3997,7 @@ const We = ({ text: t, frame: r }) => {
4007
3997
  children: /* @__PURE__ */ f("span", { style: p, children: t })
4008
3998
  }
4009
3999
  );
4010
- }, Ae = ({
4000
+ }, je = ({
4011
4001
  text: t,
4012
4002
  frame: r,
4013
4003
  delay: n = 0,
@@ -4017,22 +4007,22 @@ const We = ({ text: t, frame: r }) => {
4017
4007
  details: i,
4018
4008
  noiseTileDetails: e
4019
4009
  }) => {
4020
- const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = i.width || 300, d = i.height || 100, u = (e == null ? void 0 : e.keepStill) || "both", l = Number((e == null ? void 0 : e.toXRepetitions) ?? (e == null ? void 0 : e.xRepetitions) ?? 5), b = Number((e == null ? void 0 : e.toYRepetitions) ?? (e == null ? void 0 : e.yRepetitions) ?? 5), y = Number((e == null ? void 0 : e.toGapX) ?? (e == null ? void 0 : e.gapX) ?? 12), x = Number((e == null ? void 0 : e.toGapY) ?? (e == null ? void 0 : e.gapY) ?? 12), m = Number((e == null ? void 0 : e.toScale) ?? (e == null ? void 0 : e.scale) ?? 1), M = Number((e == null ? void 0 : e.toNoiseScale) ?? (e == null ? void 0 : e.noiseScale) ?? 1.5), S = Number((e == null ? void 0 : e.toNoiseMoveX) ?? (e == null ? void 0 : e.noiseMoveX) ?? 0.6), $ = Number((e == null ? void 0 : e.toNoiseMoveY) ?? (e == null ? void 0 : e.noiseMoveY) ?? 0.4), k = Number((e == null ? void 0 : e.toFps) ?? (e == null ? void 0 : e.fps) ?? 12), g = Number((e == null ? void 0 : e.toThreshold) ?? (e == null ? void 0 : e.threshold) ?? 0.45), v = Number((e == null ? void 0 : e.toSeedOffset) ?? (e == null ? void 0 : e.seedOffset) ?? 0), w = !!(e != null && e.hasInitialValue), N = w ? Number((e == null ? void 0 : e.initialXRepetitions) ?? l) : l, R = w ? Number((e == null ? void 0 : e.initialYRepetitions) ?? b) : b, C = w ? Number((e == null ? void 0 : e.initialGapX) ?? y) : y, E = w ? Number((e == null ? void 0 : e.initialGapY) ?? x) : x, Y = w ? Number((e == null ? void 0 : e.initialScale) ?? m) : m, _ = w ? Number((e == null ? void 0 : e.initialNoiseScale) ?? M) : M, F = w ? Number((e == null ? void 0 : e.initialNoiseMoveX) ?? S) : S, X = w ? Number((e == null ? void 0 : e.initialNoiseMoveY) ?? $) : $, P = w ? Number((e == null ? void 0 : e.initialFps) ?? k) : k, z = w ? Number((e == null ? void 0 : e.initialThreshold) ?? g) : g, O = w ? Number((e == null ? void 0 : e.initialSeedOffset) ?? v) : v, A = Math.max(0, o - (n || 0)), J = Math.min(1, Math.max(0, A / (s || 1)));
4021
- let D = c + (a - c) * J;
4022
- u === "initial" ? D = 0 : u === "final" && (D = 1);
4023
- const L = Math.max(1, Math.round(W(D, [0, 1], [N, l]))), H = Math.max(1, Math.round(W(D, [0, 1], [R, b]))), G = W(D, [0, 1], [C, y]), ft = W(D, [0, 1], [E, x]), U = W(D, [0, 1], [Y, m]), q = W(D, [0, 1], [_, M]), ot = W(D, [0, 1], [F, S]), vt = W(D, [0, 1], [X, $]), nt = Math.max(1, Math.round(W(D, [0, 1], [P, k]))), ut = W(D, [0, 1], [z, g]), it = W(D, [0, 1], [O, v]), mt = Dt(i), pt = Math.floor(A * (nt / 30)), tt = (L - 1) / 2, st = (H - 1) / 2, et = [];
4010
+ const p = Rt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = i.width || 300, d = i.height || 100, u = (e == null ? void 0 : e.keepStill) || "both", l = Number((e == null ? void 0 : e.toXRepetitions) ?? (e == null ? void 0 : e.xRepetitions) ?? 5), b = Number((e == null ? void 0 : e.toYRepetitions) ?? (e == null ? void 0 : e.yRepetitions) ?? 5), y = Number((e == null ? void 0 : e.toGapX) ?? (e == null ? void 0 : e.gapX) ?? 12), x = Number((e == null ? void 0 : e.toGapY) ?? (e == null ? void 0 : e.gapY) ?? 12), m = Number((e == null ? void 0 : e.toScale) ?? (e == null ? void 0 : e.scale) ?? 1), M = Number((e == null ? void 0 : e.toNoiseScale) ?? (e == null ? void 0 : e.noiseScale) ?? 1.5), S = Number((e == null ? void 0 : e.toNoiseMoveX) ?? (e == null ? void 0 : e.noiseMoveX) ?? 0.6), $ = Number((e == null ? void 0 : e.toNoiseMoveY) ?? (e == null ? void 0 : e.noiseMoveY) ?? 0.4), k = Number((e == null ? void 0 : e.toFps) ?? (e == null ? void 0 : e.fps) ?? 12), g = Number((e == null ? void 0 : e.toThreshold) ?? (e == null ? void 0 : e.threshold) ?? 0.45), v = Number((e == null ? void 0 : e.toSeedOffset) ?? (e == null ? void 0 : e.seedOffset) ?? 0), w = !!(e != null && e.hasInitialValue), N = w ? Number((e == null ? void 0 : e.initialXRepetitions) ?? l) : l, R = w ? Number((e == null ? void 0 : e.initialYRepetitions) ?? b) : b, C = w ? Number((e == null ? void 0 : e.initialGapX) ?? y) : y, E = w ? Number((e == null ? void 0 : e.initialGapY) ?? x) : x, Y = w ? Number((e == null ? void 0 : e.initialScale) ?? m) : m, _ = w ? Number((e == null ? void 0 : e.initialNoiseScale) ?? M) : M, F = w ? Number((e == null ? void 0 : e.initialNoiseMoveX) ?? S) : S, X = w ? Number((e == null ? void 0 : e.initialNoiseMoveY) ?? $) : $, P = w ? Number((e == null ? void 0 : e.initialFps) ?? k) : k, z = w ? Number((e == null ? void 0 : e.initialThreshold) ?? g) : g, O = w ? Number((e == null ? void 0 : e.initialSeedOffset) ?? v) : v, j = Math.max(0, o - (n || 0)), q = Math.min(1, Math.max(0, j / (s || 1)));
4011
+ let T = c + (a - c) * q;
4012
+ u === "initial" ? T = 0 : u === "final" && (T = 1);
4013
+ const A = Math.max(1, Math.round(W(T, [0, 1], [N, l]))), H = Math.max(1, Math.round(W(T, [0, 1], [R, b]))), G = W(T, [0, 1], [C, y]), bt = W(T, [0, 1], [E, x]), L = W(T, [0, 1], [Y, m]), K = W(T, [0, 1], [_, M]), ot = W(T, [0, 1], [F, S]), gt = W(T, [0, 1], [X, $]), nt = Math.max(1, Math.round(W(T, [0, 1], [P, k]))), ut = W(T, [0, 1], [z, g]), it = W(T, [0, 1], [O, v]), mt = Dt(i), ft = Math.floor(j * (nt / 30)), D = (A - 1) / 2, st = (H - 1) / 2, et = [];
4024
4014
  for (let ct = 0; ct < H; ct++)
4025
- for (let dt = 0; dt < L; dt++) {
4026
- const yt = dt / Math.max(1, L) * q, bt = ct / Math.max(1, H) * q, St = pt * 0.1 + it, lt = mn(
4027
- yt + pt * ot * 0.05,
4028
- bt + pt * vt * 0.05,
4029
- St,
4015
+ for (let dt = 0; dt < A; dt++) {
4016
+ const yt = dt / Math.max(1, A) * K, vt = ct / Math.max(1, H) * K, Mt = ft * 0.1 + it, lt = gn(
4017
+ yt + ft * ot * 0.05,
4018
+ vt + ft * gt * 0.05,
4019
+ Mt,
4030
4020
  it
4031
- ), Ft = dt === Math.floor(tt) && ct === Math.floor(st) || lt >= ut, Yt = dt - tt, Xt = ct - st, Et = G / 100 * h, zt = ft / 100 * d, _t = Yt * (h * U + Et), Wt = Xt * (d * U + zt);
4021
+ ), ht = dt === Math.floor(D) && ct === Math.floor(st) || lt >= ut, Yt = dt - D, Xt = ct - st, Et = G / 100 * h, zt = bt / 100 * d, _t = Yt * (h * L + Et), Wt = Xt * (d * L + zt);
4032
4022
  et.push({
4033
4023
  col: dt,
4034
4024
  row: ct,
4035
- visible: Ft,
4025
+ visible: ht,
4036
4026
  posX: _t,
4037
4027
  posY: Wt
4038
4028
  });
@@ -4054,7 +4044,7 @@ const We = ({ text: t, frame: r }) => {
4054
4044
  position: "absolute",
4055
4045
  left: `calc(50% + ${ct.posX}px)`,
4056
4046
  top: `calc(50% + ${ct.posY}px)`,
4057
- transform: `translate(-50%, -50%) scale(${U})`,
4047
+ transform: `translate(-50%, -50%) scale(${L})`,
4058
4048
  transformOrigin: "center center",
4059
4049
  lineHeight: 1,
4060
4050
  whiteSpace: "nowrap"
@@ -4065,7 +4055,7 @@ const We = ({ text: t, frame: r }) => {
4065
4055
  ) : null)
4066
4056
  }
4067
4057
  );
4068
- }, Le = ({
4058
+ }, Ae = ({
4069
4059
  animationDuration: t,
4070
4060
  text: r,
4071
4061
  details: n,
@@ -4091,7 +4081,7 @@ const We = ({ text: t, frame: r }) => {
4091
4081
  return "";
4092
4082
  }).join(" ");
4093
4083
  }, [a]);
4094
- return /* @__PURE__ */ gt(
4084
+ return /* @__PURE__ */ xt(
4095
4085
  "div",
4096
4086
  {
4097
4087
  style: {
@@ -4120,7 +4110,7 @@ const We = ({ text: t, frame: r }) => {
4120
4110
  ]
4121
4111
  }
4122
4112
  );
4123
- }, He = ({
4113
+ }, Le = ({
4124
4114
  text: t,
4125
4115
  frame: r,
4126
4116
  details: n,
@@ -4188,7 +4178,7 @@ const We = ({ text: t, frame: r }) => {
4188
4178
  ))
4189
4179
  }
4190
4180
  );
4191
- }, Ue = ({
4181
+ }, He = ({
4192
4182
  text: t,
4193
4183
  frame: r,
4194
4184
  animationTextOutFrames: n,
@@ -4249,34 +4239,34 @@ const We = ({ text: t, frame: r }) => {
4249
4239
  )
4250
4240
  }
4251
4241
  );
4242
+ }, Ue = {
4243
+ sunnyMorningsTextAnimationIn: oe,
4244
+ dominoDreamsTextAnimationIn: ee,
4245
+ greatThinkersTextAnimationIn: se,
4246
+ beautifulQuestionsTextAnimationIn: ae,
4247
+ madeWithLoveTextAnimationIn: ce,
4248
+ realityIsBrokenTextAnimationIn: he,
4249
+ dropTextAnimationIn: me,
4250
+ descompressTextAnimationIn: xe
4252
4251
  }, Ze = {
4253
- sunnyMorningsTextAnimationIn: ee,
4254
- dominoDreamsTextAnimationIn: se,
4255
- greatThinkersTextAnimationIn: ae,
4256
- beautifulQuestionsTextAnimationIn: ce,
4257
- madeWithLoveTextAnimationIn: ie,
4258
- realityIsBrokenTextAnimationIn: pe,
4259
- dropTextAnimationIn: xe,
4260
- descompressTextAnimationIn: $e
4252
+ animatedTextOut: ie,
4253
+ sunnyMorningsTextAnimationOut: de,
4254
+ dominoDreamsTextAnimationOut: ue,
4255
+ beautifulQuestionsTextAnimationOut: le,
4256
+ madeWithLoveTextAnimationOut: pe,
4257
+ realityIsBrokenTextAnimationOut: fe,
4258
+ greatThinkersTextAnimationOut: ye,
4259
+ descompressTextAnimationOut: $e,
4260
+ dropTextAnimationOut: Se
4261
4261
  }, Qe = {
4262
- animatedTextOut: de,
4263
- sunnyMorningsTextAnimationOut: ue,
4264
- dominoDreamsTextAnimationOut: le,
4265
- beautifulQuestionsTextAnimationOut: he,
4266
- madeWithLoveTextAnimationOut: fe,
4267
- realityIsBrokenTextAnimationOut: ye,
4268
- greatThinkersTextAnimationOut: be,
4269
- descompressTextAnimationOut: Se,
4270
- dropTextAnimationOut: Me
4271
- }, Ke = {
4272
- vogueTextAnimationLoop: ve,
4273
- dragonFlyTextAnimationLoop: ge,
4274
- billboardTextAnimationLoop: me,
4275
- heartbeatTextAnimationLoop: we,
4276
- waveTextAnimationLoop: Ie,
4277
- shakyLettersTextAnimationLoop: ke,
4278
- pulseTextAnimationLoop: Ne
4279
- }, Je = ({
4262
+ vogueTextAnimationLoop: be,
4263
+ dragonFlyTextAnimationLoop: ve,
4264
+ billboardTextAnimationLoop: ge,
4265
+ heartbeatTextAnimationLoop: Me,
4266
+ waveTextAnimationLoop: we,
4267
+ shakyLettersTextAnimationLoop: Ie,
4268
+ pulseTextAnimationLoop: ke
4269
+ }, Ke = ({
4280
4270
  text: t,
4281
4271
  fps: r,
4282
4272
  textAnimationNameIn: n,
@@ -4300,31 +4290,31 @@ const We = ({ text: t, frame: r }) => {
4300
4290
  durationInFrames: $,
4301
4291
  animationFonts: k
4302
4292
  }) => {
4303
- var j, Ft, Yt, Xt, Et, zt, _t, Wt, Lt, Ht, Ut, Zt, Qt, tr;
4304
- const g = x, v = $ - m, w = n ? g >= y : !1, N = s ? y >= v : !1, R = o && o.length > 0, C = h && h.length > 0, E = d && d.length > 0, Y = u && u.length > 0, _ = ((j = o == null ? void 0 : o[0]) == null ? void 0 : j.durationInFrames) || x, F = ((Ft = o == null ? void 0 : o[0]) == null ? void 0 : Ft.delay) || 0, X = _ + F, P = ((Yt = h == null ? void 0 : h[0]) == null ? void 0 : Yt.durationInFrames) || m, z = ((Xt = h == null ? void 0 : h[0]) == null ? void 0 : Xt.delay) || 0, O = P + z, A = Math.max(0, $ - O), J = ((Et = u == null ? void 0 : u[0]) == null ? void 0 : Et.delay) || 0, Z = J, D = J + (((zt = u == null ? void 0 : u[0]) == null ? void 0 : zt.durationInFrames) || S), L = R && !n && (E ? y < X : y < A), H = C && !s && y >= A, G = Y && !L && !H && y >= Z && y <= D, ft = E && !c && !L && !H && !G, q = ((T, K, B) => {
4305
- const ht = document.createElement("canvas").getContext("2d");
4306
- if (!ht) return [];
4307
- ht.font = `${B}px Arial`;
4308
- const V = [], Q = T.split(`
4293
+ var tt, ht, Yt, Xt, Et, zt, _t, Wt, Lt, Ht, Ut, Zt, Qt, tr;
4294
+ const g = x, v = $ - m, w = n ? g >= y : !1, N = s ? y >= v : !1, R = o && o.length > 0, C = h && h.length > 0, E = d && d.length > 0, Y = u && u.length > 0, _ = ((tt = o == null ? void 0 : o[0]) == null ? void 0 : tt.durationInFrames) || x, F = ((ht = o == null ? void 0 : o[0]) == null ? void 0 : ht.delay) || 0, X = _ + F, P = ((Yt = h == null ? void 0 : h[0]) == null ? void 0 : Yt.durationInFrames) || m, z = ((Xt = h == null ? void 0 : h[0]) == null ? void 0 : Xt.delay) || 0, O = P + z, j = Math.max(0, $ - O), q = ((Et = u == null ? void 0 : u[0]) == null ? void 0 : Et.delay) || 0, U = q, T = q + (((zt = u == null ? void 0 : u[0]) == null ? void 0 : zt.durationInFrames) || S), A = R && !n && (E ? y < X : y < j), H = C && !s && y >= j, G = Y && !A && !H && y >= U && y <= T, bt = E && !c && !A && !H && !G, K = ((J, Q, B) => {
4295
+ const pt = document.createElement("canvas").getContext("2d");
4296
+ if (!pt) return [];
4297
+ pt.font = `${B}px Arial`;
4298
+ const V = [], Z = J.split(`
4309
4299
  `);
4310
- for (const at of Q) {
4300
+ for (const at of Z) {
4311
4301
  if (at.trim() === "") {
4312
4302
  V.push("");
4313
4303
  continue;
4314
4304
  }
4315
4305
  const rr = at.split(" ");
4316
- let xt = "";
4306
+ let $t = "";
4317
4307
  for (const Kt of rr) {
4318
- const ir = xt ? `${xt} ${Kt}` : Kt;
4319
- ht.measureText(ir).width > K ? (xt && V.push(xt), xt = Kt) : xt = ir;
4308
+ const ir = $t ? `${$t} ${Kt}` : Kt;
4309
+ pt.measureText(ir).width > Q ? ($t && V.push($t), $t = Kt) : $t = ir;
4320
4310
  }
4321
- xt && V.push(xt);
4311
+ $t && V.push($t);
4322
4312
  }
4323
4313
  return V;
4324
4314
  })(t, b.width, b.fontSize);
4325
4315
  if (n === "typeWriterTextAnimationIn" && w)
4326
4316
  return /* @__PURE__ */ f(
4327
- Re,
4317
+ Ne,
4328
4318
  {
4329
4319
  frame: y,
4330
4320
  durationInFrames: x,
@@ -4334,7 +4324,7 @@ const We = ({ text: t, frame: r }) => {
4334
4324
  );
4335
4325
  if (n === "backgroundTextAnimationIn" && w)
4336
4326
  return /* @__PURE__ */ f(
4337
- Fe,
4327
+ Re,
4338
4328
  {
4339
4329
  text: t,
4340
4330
  frame: y,
@@ -4344,7 +4334,7 @@ const We = ({ text: t, frame: r }) => {
4344
4334
  );
4345
4335
  if (n === "soundWaveTextAnimationIn" && w)
4346
4336
  return /* @__PURE__ */ f(
4347
- Ye,
4337
+ Fe,
4348
4338
  {
4349
4339
  text: t,
4350
4340
  frame: y,
@@ -4354,7 +4344,7 @@ const We = ({ text: t, frame: r }) => {
4354
4344
  );
4355
4345
  if (n === "countDownTextAnimationIn" && w)
4356
4346
  return /* @__PURE__ */ f(
4357
- Xe,
4347
+ Ye,
4358
4348
  {
4359
4349
  text: t,
4360
4350
  frame: y,
@@ -4364,7 +4354,7 @@ const We = ({ text: t, frame: r }) => {
4364
4354
  );
4365
4355
  if (n === "partialSlideIn" && w)
4366
4356
  return /* @__PURE__ */ f(
4367
- Be,
4357
+ Xe,
4368
4358
  {
4369
4359
  text: t,
4370
4360
  frame: y,
@@ -4375,10 +4365,10 @@ const We = ({ text: t, frame: r }) => {
4375
4365
  );
4376
4366
  if (!w && !N) {
4377
4367
  if (c === "spinTextAnimationLoop")
4378
- return /* @__PURE__ */ f(Pe, { text: t, frame: y, fps: r });
4368
+ return /* @__PURE__ */ f(Be, { text: t, frame: y, fps: r });
4379
4369
  if (c === "rotate3dTextAnimationLoop")
4380
4370
  return /* @__PURE__ */ f(
4381
- Ee,
4371
+ Pe,
4382
4372
  {
4383
4373
  text: t,
4384
4374
  frame: y,
@@ -4387,7 +4377,7 @@ const We = ({ text: t, frame: r }) => {
4387
4377
  );
4388
4378
  if (c === "textFontChangeAnimationLoop")
4389
4379
  return /* @__PURE__ */ f(
4390
- _e,
4380
+ Ee,
4391
4381
  {
4392
4382
  text: t,
4393
4383
  frame: y,
@@ -4396,28 +4386,28 @@ const We = ({ text: t, frame: r }) => {
4396
4386
  }
4397
4387
  );
4398
4388
  if (c === "shakeTextAnimationLoop")
4399
- return /* @__PURE__ */ f(We, { text: t, frame: y });
4389
+ return /* @__PURE__ */ f(_e, { text: t, frame: y });
4400
4390
  if (c === "vintageTextAnimationLoop")
4401
- return /* @__PURE__ */ f(Ve, { text: t, frame: y, details: b, fps: r });
4391
+ return /* @__PURE__ */ f(We, { text: t, frame: y, details: b, fps: r });
4402
4392
  if (c === "glitchTextAnimationLoop")
4403
- return /* @__PURE__ */ f(Ce, { text: t, frame: y });
4393
+ return /* @__PURE__ */ f(Ve, { text: t, frame: y });
4404
4394
  if (c === "textGridMarqueeTextAnimationLoop" || c === "textGridMarquee") {
4405
4395
  const B = (l == null ? void 0 : l.find(
4406
4396
  (at) => at.property === "textGridMarqueeTextAnimationLoop" || at.property === "textGridMarquee" || at.id === "textGridMarquee"
4407
4397
  )) || (d == null ? void 0 : d.find(
4408
4398
  (at) => at.property === "textGridMarqueeTextAnimationLoop" || at.property === "textGridMarquee" || at.id === "textGridMarquee"
4409
- )), rt = (B == null ? void 0 : B.delay) || 0, ht = (B == null ? void 0 : B.durationInFrames) || (M > 0 ? M : $), V = rt + ht, Q = y >= rt && y <= V;
4399
+ )), rt = (B == null ? void 0 : B.delay) || 0, pt = (B == null ? void 0 : B.durationInFrames) || (M > 0 ? M : $), V = rt + pt, Z = y >= rt && y <= V;
4410
4400
  if (console.log(
4411
- `[SpecialEffect Marquee] frame: ${y.toFixed(2)}, range: [${rt}, ${V}], active: ${Q}`
4412
- ), Q) {
4401
+ `[SpecialEffect Marquee] frame: ${y.toFixed(2)}, range: [${rt}, ${V}], active: ${Z}`
4402
+ ), Z) {
4413
4403
  const at = B == null ? void 0 : B.details;
4414
4404
  return /* @__PURE__ */ f(
4415
- Oe,
4405
+ Ce,
4416
4406
  {
4417
4407
  text: t,
4418
4408
  frame: y,
4419
4409
  delay: rt,
4420
- durationInFrames: ht,
4410
+ durationInFrames: pt,
4421
4411
  from: B == null ? void 0 : B.from,
4422
4412
  to: B == null ? void 0 : B.to,
4423
4413
  details: b,
@@ -4432,18 +4422,18 @@ const We = ({ text: t, frame: r }) => {
4432
4422
  (at) => at.property === "inwardEchoes" || at.id === "inwardEchoes"
4433
4423
  )) || (d == null ? void 0 : d.find(
4434
4424
  (at) => at.property === "inwardEchoes" || at.id === "inwardEchoes"
4435
- )), rt = (B == null ? void 0 : B.delay) || 0, ht = (B == null ? void 0 : B.durationInFrames) || (M > 0 ? M : $), V = rt + ht, Q = y >= rt && y <= V;
4425
+ )), rt = (B == null ? void 0 : B.delay) || 0, pt = (B == null ? void 0 : B.durationInFrames) || (M > 0 ? M : $), V = rt + pt, Z = y >= rt && y <= V;
4436
4426
  if (console.log(
4437
- `[SpecialEffect InwardEchoes] frame: ${y.toFixed(2)}, range: [${rt}, ${V}], active: ${Q}`
4438
- ), Q) {
4427
+ `[SpecialEffect InwardEchoes] frame: ${y.toFixed(2)}, range: [${rt}, ${V}], active: ${Z}`
4428
+ ), Z) {
4439
4429
  const at = B == null ? void 0 : B.details;
4440
4430
  return /* @__PURE__ */ f(
4441
- ze,
4431
+ Oe,
4442
4432
  {
4443
4433
  text: t,
4444
4434
  frame: y,
4445
4435
  delay: rt,
4446
- durationInFrames: ht,
4436
+ durationInFrames: pt,
4447
4437
  from: B == null ? void 0 : B.from,
4448
4438
  to: B == null ? void 0 : B.to,
4449
4439
  details: b,
@@ -4458,18 +4448,18 @@ const We = ({ text: t, frame: r }) => {
4458
4448
  (at) => at.property === "wiggle" || at.id === "wiggle"
4459
4449
  )) || (d == null ? void 0 : d.find(
4460
4450
  (at) => at.property === "wiggle" || at.id === "wiggle"
4461
- )), rt = (B == null ? void 0 : B.delay) || 0, ht = (B == null ? void 0 : B.durationInFrames) || (M > 0 ? M : $), V = rt + ht, Q = y >= rt && y <= V;
4451
+ )), rt = (B == null ? void 0 : B.delay) || 0, pt = (B == null ? void 0 : B.durationInFrames) || (M > 0 ? M : $), V = rt + pt, Z = y >= rt && y <= V;
4462
4452
  if (console.log(
4463
- `[SpecialEffect Wiggle] frame: ${y.toFixed(2)}, range: [${rt}, ${V}], active: ${Q}`
4464
- ), Q) {
4453
+ `[SpecialEffect Wiggle] frame: ${y.toFixed(2)}, range: [${rt}, ${V}], active: ${Z}`
4454
+ ), Z) {
4465
4455
  const at = B == null ? void 0 : B.details;
4466
4456
  return /* @__PURE__ */ f(
4467
- Ge,
4457
+ ze,
4468
4458
  {
4469
4459
  text: t,
4470
4460
  frame: y,
4471
4461
  delay: rt,
4472
- durationInFrames: ht,
4462
+ durationInFrames: pt,
4473
4463
  from: B == null ? void 0 : B.from,
4474
4464
  to: B == null ? void 0 : B.to,
4475
4465
  details: b,
@@ -4479,56 +4469,56 @@ const We = ({ text: t, frame: r }) => {
4479
4469
  );
4480
4470
  }
4481
4471
  }
4482
- const T = (l == null ? void 0 : l.find(
4472
+ const J = (l == null ? void 0 : l.find(
4483
4473
  (B) => B.property === "cardFlip" || B.id === "cardFlip"
4484
4474
  )) || (d == null ? void 0 : d.find(
4485
4475
  (B) => B.property === "cardFlip" || B.id === "cardFlip"
4486
4476
  ));
4487
- if (c === "cardFlip" || T) {
4488
- const B = (T == null ? void 0 : T.delay) || 0, rt = (T == null ? void 0 : T.durationInFrames) || (M > 0 ? M : $), ht = B + rt, V = y >= B && y <= ht;
4477
+ if (c === "cardFlip" || J) {
4478
+ const B = (J == null ? void 0 : J.delay) || 0, rt = (J == null ? void 0 : J.durationInFrames) || (M > 0 ? M : $), pt = B + rt, V = y >= B && y <= pt;
4489
4479
  if (console.log(
4490
- `[SpecialEffect CardFlip] frame: ${y.toFixed(2)}, range: [${B}, ${ht}], active: ${V}`
4480
+ `[SpecialEffect CardFlip] frame: ${y.toFixed(2)}, range: [${B}, ${pt}], active: ${V}`
4491
4481
  ), V) {
4492
- const Q = T == null ? void 0 : T.details;
4482
+ const Z = J == null ? void 0 : J.details;
4493
4483
  return /* @__PURE__ */ f(
4494
- je,
4484
+ Ge,
4495
4485
  {
4496
4486
  text: t,
4497
4487
  frame: y,
4498
4488
  delay: B,
4499
4489
  durationInFrames: rt,
4500
- from: T == null ? void 0 : T.from,
4501
- to: T == null ? void 0 : T.to,
4490
+ from: J == null ? void 0 : J.from,
4491
+ to: J == null ? void 0 : J.to,
4502
4492
  details: b,
4503
4493
  fps: r,
4504
- cardFlipDetails: Q
4494
+ cardFlipDetails: Z
4505
4495
  }
4506
4496
  );
4507
4497
  }
4508
4498
  }
4509
- const K = (l == null ? void 0 : l.find(
4499
+ const Q = (l == null ? void 0 : l.find(
4510
4500
  (B) => B.property === "noiseTile" || B.id === "noiseTile"
4511
4501
  )) || (d == null ? void 0 : d.find(
4512
4502
  (B) => B.property === "noiseTile" || B.id === "noiseTile"
4513
4503
  ));
4514
- if (c === "noiseTile" || K) {
4515
- const B = (K == null ? void 0 : K.delay) || 0, rt = (K == null ? void 0 : K.durationInFrames) || (M > 0 ? M : $), ht = B + rt, V = y >= B && y <= ht;
4504
+ if (c === "noiseTile" || Q) {
4505
+ const B = (Q == null ? void 0 : Q.delay) || 0, rt = (Q == null ? void 0 : Q.durationInFrames) || (M > 0 ? M : $), pt = B + rt, V = y >= B && y <= pt;
4516
4506
  if (console.log(
4517
- `[SpecialEffect NoiseTile] frame: ${y.toFixed(2)}, range: [${B}, ${ht}], active: ${V}`
4507
+ `[SpecialEffect NoiseTile] frame: ${y.toFixed(2)}, range: [${B}, ${pt}], active: ${V}`
4518
4508
  ), V) {
4519
- const Q = K == null ? void 0 : K.details;
4509
+ const Z = Q == null ? void 0 : Q.details;
4520
4510
  return /* @__PURE__ */ f(
4521
- Ae,
4511
+ je,
4522
4512
  {
4523
4513
  text: t,
4524
4514
  frame: y,
4525
4515
  delay: B,
4526
4516
  durationInFrames: rt,
4527
- from: K == null ? void 0 : K.from,
4528
- to: K == null ? void 0 : K.to,
4517
+ from: Q == null ? void 0 : Q.from,
4518
+ to: Q == null ? void 0 : Q.to,
4529
4519
  details: b,
4530
4520
  fps: r,
4531
- noiseTileDetails: Q
4521
+ noiseTileDetails: Z
4532
4522
  }
4533
4523
  );
4534
4524
  }
@@ -4536,7 +4526,7 @@ const We = ({ text: t, frame: r }) => {
4536
4526
  }
4537
4527
  if (s === "typeWriterTextAnimationOut" && N)
4538
4528
  return /* @__PURE__ */ f(
4539
- Le,
4529
+ Ae,
4540
4530
  {
4541
4531
  frame: y,
4542
4532
  durationInFrames: $,
@@ -4547,7 +4537,7 @@ const We = ({ text: t, frame: r }) => {
4547
4537
  );
4548
4538
  if (s === "partialSlideOut" && N)
4549
4539
  return /* @__PURE__ */ f(
4550
- He,
4540
+ Le,
4551
4541
  {
4552
4542
  text: t,
4553
4543
  frame: y,
@@ -4559,7 +4549,7 @@ const We = ({ text: t, frame: r }) => {
4559
4549
  );
4560
4550
  if (s === "backgroundTextAnimationOut" && N)
4561
4551
  return /* @__PURE__ */ f(
4562
- Ue,
4552
+ He,
4563
4553
  {
4564
4554
  text: t,
4565
4555
  frame: y,
@@ -4569,20 +4559,20 @@ const We = ({ text: t, frame: r }) => {
4569
4559
  fps: r
4570
4560
  }
4571
4561
  );
4572
- const ot = q.reduce(
4573
- (T, K) => T + (K === "" ? 1 : K.length),
4562
+ const ot = K.reduce(
4563
+ (J, Q) => J + (Q === "" ? 1 : Q.length),
4574
4564
  0
4575
- ), vt = q.reduce(
4576
- (T, K) => T + (K.trim() === "" ? 0 : K.split(/\s+/).length),
4565
+ ), gt = K.reduce(
4566
+ (J, Q) => J + (Q.trim() === "" ? 0 : Q.split(/\s+/).length),
4577
4567
  0
4578
- ), nt = q.length, ut = Ze[n], it = Qe[s], mt = Ke[c], pt = ((_t = o == null ? void 0 : o[0]) == null ? void 0 : _t.textAnimationMode) || ((Wt = h == null ? void 0 : h[0]) == null ? void 0 : Wt.textAnimationMode) || ((Lt = d == null ? void 0 : d[0]) == null ? void 0 : Lt.textAnimationMode) || ((Ht = u == null ? void 0 : u[0]) == null ? void 0 : Ht.textAnimationMode) || (n ? a : void 0) || (s ? i : void 0) || (c ? e : void 0) || a || e || "letter", tt = w ? a : N ? i : L ? o[0].textAnimationMode || pt : H ? h[0].textAnimationMode || pt : G ? u[0].textAnimationMode || pt : ft && d[0].textAnimationMode || pt, st = L ? o : H ? h : G ? u : ft ? d : [], et = (T, K, B, rt) => {
4579
- var ht, V, Q;
4568
+ ), nt = K.length, ut = Ue[n], it = Ze[s], mt = Qe[c], ft = ((_t = o == null ? void 0 : o[0]) == null ? void 0 : _t.textAnimationMode) || ((Wt = h == null ? void 0 : h[0]) == null ? void 0 : Wt.textAnimationMode) || ((Lt = d == null ? void 0 : d[0]) == null ? void 0 : Lt.textAnimationMode) || ((Ht = u == null ? void 0 : u[0]) == null ? void 0 : Ht.textAnimationMode) || (n ? a : void 0) || (s ? i : void 0) || (c ? e : void 0) || a || e || "letter", D = w ? a : N ? i : A ? o[0].textAnimationMode || ft : H ? h[0].textAnimationMode || ft : G ? u[0].textAnimationMode || ft : bt && d[0].textAnimationMode || ft, st = A ? o : H ? h : G ? u : bt ? d : [], et = (J, Q, B, rt) => {
4569
+ var pt, V, Z;
4580
4570
  if (w && ut)
4581
4571
  return /* @__PURE__ */ f(
4582
4572
  ut,
4583
4573
  {
4584
- char: T,
4585
- index: K,
4574
+ char: J,
4575
+ index: Q,
4586
4576
  frame: y,
4587
4577
  textLength: B,
4588
4578
  fps: r,
@@ -4595,8 +4585,8 @@ const We = ({ text: t, frame: r }) => {
4595
4585
  return /* @__PURE__ */ f(
4596
4586
  it,
4597
4587
  {
4598
- char: T,
4599
- index: K,
4588
+ char: J,
4589
+ index: Q,
4600
4590
  frame: y,
4601
4591
  textLength: B,
4602
4592
  fps: r,
@@ -4610,8 +4600,8 @@ const We = ({ text: t, frame: r }) => {
4610
4600
  return /* @__PURE__ */ f(
4611
4601
  mt,
4612
4602
  {
4613
- char: T,
4614
- index: K,
4603
+ char: J,
4604
+ index: Q,
4615
4605
  frame: y,
4616
4606
  textLength: B,
4617
4607
  fps: r,
@@ -4621,96 +4611,96 @@ const We = ({ text: t, frame: r }) => {
4621
4611
  rt
4622
4612
  );
4623
4613
  if (st.length > 0) {
4624
- const at = L ? _ : H ? P : G ? ((ht = u == null ? void 0 : u[0]) == null ? void 0 : ht.durationInFrames) || S : ((V = d == null ? void 0 : d[0]) == null ? void 0 : V.durationInFrames) || M, rr = H ? y - A : G ? y - Z : y, xt = st[0], Kt = L ? "in" : H ? "out" : G ? "timed" : "loop";
4614
+ const at = A ? _ : H ? P : G ? ((pt = u == null ? void 0 : u[0]) == null ? void 0 : pt.durationInFrames) || S : ((V = d == null ? void 0 : d[0]) == null ? void 0 : V.durationInFrames) || M, rr = H ? y - j : G ? y - U : y, $t = st[0], Kt = A ? "in" : H ? "out" : G ? "timed" : "loop";
4625
4615
  return /* @__PURE__ */ f(
4626
- oe,
4616
+ ne,
4627
4617
  {
4628
- char: T,
4629
- index: K,
4618
+ char: J,
4619
+ index: Q,
4630
4620
  frame: rr,
4631
4621
  fps: r,
4632
4622
  textLength: B,
4633
4623
  animationTextFrames: at,
4634
- property: xt.property,
4635
- from: xt.from,
4636
- to: xt.to,
4637
- easing: xt.easing,
4638
- delay: H ? 0 : xt.delay,
4624
+ property: $t.property,
4625
+ from: $t.from,
4626
+ to: $t.to,
4627
+ easing: $t.easing,
4628
+ delay: H ? 0 : $t.delay,
4639
4629
  details: b,
4640
4630
  phase: Kt,
4641
- fade: !!((Q = xt == null ? void 0 : xt.details) != null && Q.fade || xt != null && xt.fade)
4631
+ fade: !!((Z = $t == null ? void 0 : $t.details) != null && Z.fade || $t != null && $t.fade)
4642
4632
  },
4643
4633
  rt
4644
4634
  );
4645
4635
  }
4646
- return /* @__PURE__ */ f("span", { children: T === "" ? " " : T }, rt);
4636
+ return /* @__PURE__ */ f("span", { children: J === "" ? " " : J }, rt);
4647
4637
  };
4648
4638
  let dt = (b == null ? void 0 : b.textAlign) === "right";
4649
- const yt = o && o.length > 0 ? o[0] : h && h.length > 0 ? h[0] : u && u.length > 0 ? u[0] : d && d.length > 0 ? d[0] : null, bt = yt != null && yt.order ? yt : (Ut = o == null ? void 0 : o[0]) != null && Ut.order ? o[0] : (Zt = h == null ? void 0 : h[0]) != null && Zt.order ? h[0] : (Qt = u == null ? void 0 : u[0]) != null && Qt.order ? u[0] : (tr = d == null ? void 0 : d[0]) != null && tr.order ? d[0] : null;
4650
- if (bt != null && bt.order)
4651
- dt = bt.order === "backward";
4639
+ const yt = o && o.length > 0 ? o[0] : h && h.length > 0 ? h[0] : u && u.length > 0 ? u[0] : d && d.length > 0 ? d[0] : null, vt = yt != null && yt.order ? yt : (Ut = o == null ? void 0 : o[0]) != null && Ut.order ? o[0] : (Zt = h == null ? void 0 : h[0]) != null && Zt.order ? h[0] : (Qt = u == null ? void 0 : u[0]) != null && Qt.order ? u[0] : (tr = d == null ? void 0 : d[0]) != null && tr.order ? d[0] : null;
4640
+ if (vt != null && vt.order)
4641
+ dt = vt.order === "backward";
4652
4642
  else if (yt && yt.property === "translateX") {
4653
- const T = Number(yt.from), K = Number(yt.to);
4654
- !isNaN(T) && !isNaN(K) && (dt = T < K);
4643
+ const J = Number(yt.from), Q = Number(yt.to);
4644
+ !isNaN(J) && !isNaN(Q) && (dt = J < Q);
4655
4645
  }
4656
- if (tt === "all")
4657
- return /* @__PURE__ */ f(kt, { children: q.map((T, K) => /* @__PURE__ */ f("div", { children: (T === "" ? [" "] : T.split("")).map(
4658
- (B, rt) => et(B, 0, 1, `${K}-${rt}`)
4659
- ) }, K)) });
4660
- if (tt === "word") {
4661
- let T = 0;
4662
- const K = q.map((B, rt) => {
4646
+ if (D === "all")
4647
+ return /* @__PURE__ */ f(Nt, { children: K.map((J, Q) => /* @__PURE__ */ f("div", { children: (J === "" ? [" "] : J.split("")).map(
4648
+ (B, rt) => et(B, 0, 1, `${Q}-${rt}`)
4649
+ ) }, Q)) });
4650
+ if (D === "word") {
4651
+ let J = 0;
4652
+ const Q = K.map((B, rt) => {
4663
4653
  if (B.trim() === "")
4664
4654
  return {
4665
4655
  rowIndex: rt,
4666
4656
  tokens: []
4667
4657
  };
4668
- const V = B.split(/(\s+)/).map((Q) => /^\s+$/.test(Q) ? { token: Q, wordIndex: null } : { token: Q, wordIndex: T++ });
4658
+ const V = B.split(/(\s+)/).map((Z) => /^\s+$/.test(Z) ? { token: Z, wordIndex: null } : { token: Z, wordIndex: J++ });
4669
4659
  return { rowIndex: rt, tokens: V };
4670
4660
  });
4671
- return /* @__PURE__ */ f(kt, { children: K.map(({ rowIndex: B, tokens: rt }) => rt.length === 0 ? /* @__PURE__ */ f("div", { children: " " }, B) : /* @__PURE__ */ f("div", { children: rt.map(({ token: ht, wordIndex: V }, Q) => {
4661
+ return /* @__PURE__ */ f(Nt, { children: Q.map(({ rowIndex: B, tokens: rt }) => rt.length === 0 ? /* @__PURE__ */ f("div", { children: " " }, B) : /* @__PURE__ */ f("div", { children: rt.map(({ token: pt, wordIndex: V }, Z) => {
4672
4662
  if (V === null)
4673
4663
  return /* @__PURE__ */ f(
4674
4664
  "span",
4675
4665
  {
4676
4666
  style: { display: "inline-block" },
4677
- children: ht.replace(/ /g, " ")
4667
+ children: pt.replace(/ /g, " ")
4678
4668
  },
4679
- `space-${B}-${Q}`
4669
+ `space-${B}-${Z}`
4680
4670
  );
4681
- const at = dt ? vt - 1 - V : V;
4671
+ const at = dt ? gt - 1 - V : V;
4682
4672
  return et(
4683
- ht,
4673
+ pt,
4684
4674
  at,
4685
- vt,
4686
- `word-${B}-${Q}`
4675
+ gt,
4676
+ `word-${B}-${Z}`
4687
4677
  );
4688
4678
  }) }, B)) });
4689
4679
  }
4690
- if (tt === "line")
4691
- return /* @__PURE__ */ f(kt, { children: q.map((T, K) => {
4692
- const B = dt ? nt - 1 - K : K;
4680
+ if (D === "line")
4681
+ return /* @__PURE__ */ f(Nt, { children: K.map((J, Q) => {
4682
+ const B = dt ? nt - 1 - Q : Q;
4693
4683
  return /* @__PURE__ */ f("div", { children: et(
4694
- T === "" ? " " : T,
4684
+ J === "" ? " " : J,
4695
4685
  B,
4696
4686
  nt,
4697
- `line-${K}`
4698
- ) }, K);
4687
+ `line-${Q}`
4688
+ ) }, Q);
4699
4689
  }) });
4700
- let St = 0;
4701
- const lt = q.map((T) => (T === "" ? [" "] : T.split("")).map((rt) => ({
4690
+ let Mt = 0;
4691
+ const lt = K.map((J) => (J === "" ? [" "] : J.split("")).map((rt) => ({
4702
4692
  char: rt,
4703
- globalIndex: St++
4693
+ globalIndex: Mt++
4704
4694
  })));
4705
- return /* @__PURE__ */ f(kt, { children: lt.map((T, K) => /* @__PURE__ */ f("div", { children: T.map(({ char: B, globalIndex: rt }) => {
4706
- const ht = dt ? ot - 1 - rt : rt;
4695
+ return /* @__PURE__ */ f(Nt, { children: lt.map((J, Q) => /* @__PURE__ */ f("div", { children: J.map(({ char: B, globalIndex: rt }) => {
4696
+ const pt = dt ? ot - 1 - rt : rt;
4707
4697
  return et(
4708
4698
  B,
4709
- ht,
4699
+ pt,
4710
4700
  ot,
4711
- `${K}-${rt}`
4701
+ `${Q}-${rt}`
4712
4702
  );
4713
- }) }, K)) });
4703
+ }) }, Q)) });
4714
4704
  }, Zr = ({
4715
4705
  id: t,
4716
4706
  content: r,
@@ -4771,8 +4761,8 @@ const We = ({ text: t, frame: r }) => {
4771
4761
  X.stopPropagation();
4772
4762
  const P = window.getSelection(), z = Y.current;
4773
4763
  if (P != null && P.rangeCount && z) {
4774
- const A = P.getRangeAt(0);
4775
- A.endOffset - A.startOffset === ((O = z.textContent) == null ? void 0 : O.length) && _();
4764
+ const j = P.getRangeAt(0);
4765
+ j.endOffset - j.startOffset === ((O = z.textContent) == null ? void 0 : O.length) && _();
4776
4766
  }
4777
4767
  },
4778
4768
  onInput: (X) => c(t, X.target.innerText),
@@ -4789,7 +4779,7 @@ const We = ({ text: t, frame: r }) => {
4789
4779
  suppressContentEditableWarning: !0,
4790
4780
  className: "designcombo_textLayer",
4791
4781
  children: n ? r : /* @__PURE__ */ f(
4792
- Je,
4782
+ Ke,
4793
4783
  {
4794
4784
  textAnimationNameIn: p,
4795
4785
  textAnimationNameOut: o,
@@ -4869,13 +4859,13 @@ function Xr(t, r, n) {
4869
4859
  function Ot(t) {
4870
4860
  return typeof t == "function";
4871
4861
  }
4872
- function Rn(t) {
4862
+ function Nn(t) {
4873
4863
  var r = function(s) {
4874
4864
  Error.call(s), s.stack = new Error().stack;
4875
4865
  }, n = t(r);
4876
4866
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
4877
4867
  }
4878
- var Mr = Rn(function(t) {
4868
+ var Mr = Nn(function(t) {
4879
4869
  return function(r) {
4880
4870
  t(this), this.message = r ? r.length + ` errors occurred during unsubscription:
4881
4871
  ` + r.map(function(n, s) {
@@ -4978,16 +4968,16 @@ var mr = function() {
4978
4968
  var r = new t();
4979
4969
  return r.closed = !0, r;
4980
4970
  }(), t;
4981
- }(), Fn = mr.EMPTY;
4982
- function Yn(t) {
4971
+ }(), Rn = mr.EMPTY;
4972
+ function Fn(t) {
4983
4973
  return t instanceof mr || t && "closed" in t && Ot(t.remove) && Ot(t.add) && Ot(t.unsubscribe);
4984
4974
  }
4985
4975
  function Qr(t) {
4986
4976
  Ot(t) ? t() : t.unsubscribe();
4987
4977
  }
4988
- var qe = {
4978
+ var Je = {
4989
4979
  Promise: void 0
4990
- }, Te = {
4980
+ }, qe = {
4991
4981
  setTimeout: function(t, r) {
4992
4982
  for (var n = [], s = 2; s < arguments.length; s++)
4993
4983
  n[s - 2] = arguments[s];
@@ -4998,8 +4988,8 @@ var qe = {
4998
4988
  },
4999
4989
  delegate: void 0
5000
4990
  };
5001
- function De(t) {
5002
- Te.setTimeout(function() {
4991
+ function Te(t) {
4992
+ qe.setTimeout(function() {
5003
4993
  throw t;
5004
4994
  });
5005
4995
  }
@@ -5012,7 +5002,7 @@ var Or = function(t) {
5012
5002
  ar(r, t);
5013
5003
  function r(n) {
5014
5004
  var s = t.call(this) || this;
5015
- return s.isStopped = !1, n ? (s.destination = n, Yn(n) && n.add(s)) : s.destination = ns, s;
5005
+ return s.isStopped = !1, n ? (s.destination = n, Fn(n) && n.add(s)) : s.destination = rs, s;
5016
5006
  }
5017
5007
  return r.create = function(n, s, c) {
5018
5008
  return new Pr(n, s, c);
@@ -5039,7 +5029,7 @@ var Or = function(t) {
5039
5029
  this.unsubscribe();
5040
5030
  }
5041
5031
  }, r;
5042
- }(mr), ts = function() {
5032
+ }(mr), De = function() {
5043
5033
  function t(r) {
5044
5034
  this.partialObserver = r;
5045
5035
  }
@@ -5078,29 +5068,29 @@ var Or = function(t) {
5078
5068
  next: n ?? void 0,
5079
5069
  error: s ?? void 0,
5080
5070
  complete: c ?? void 0
5081
- } : i = n, a.destination = new ts(i), a;
5071
+ } : i = n, a.destination = new De(i), a;
5082
5072
  }
5083
5073
  return r;
5084
5074
  }(Or);
5085
5075
  function lr(t) {
5086
- De(t);
5076
+ Te(t);
5087
5077
  }
5088
- function rs(t) {
5078
+ function ts(t) {
5089
5079
  throw t;
5090
5080
  }
5091
- var ns = {
5081
+ var rs = {
5092
5082
  closed: !0,
5093
5083
  next: Kr,
5094
- error: rs,
5084
+ error: ts,
5095
5085
  complete: Kr
5096
- }, os = function() {
5086
+ }, ns = function() {
5097
5087
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
5098
5088
  }();
5099
- function es(t) {
5089
+ function os(t) {
5100
5090
  return t;
5101
5091
  }
5102
- function ss(t) {
5103
- return t.length === 0 ? es : t.length === 1 ? t[0] : function(r) {
5092
+ function es(t) {
5093
+ return t.length === 0 ? os : t.length === 1 ? t[0] : function(r) {
5104
5094
  return t.reduce(function(n, s) {
5105
5095
  return s(n);
5106
5096
  }, r);
@@ -5114,7 +5104,7 @@ var Jr = function() {
5114
5104
  var n = new t();
5115
5105
  return n.source = this, n.operator = r, n;
5116
5106
  }, t.prototype.subscribe = function(r, n, s) {
5117
- var c = this, a = cs(r) ? r : new Pr(r, n, s);
5107
+ var c = this, a = as(r) ? r : new Pr(r, n, s);
5118
5108
  return hr(function() {
5119
5109
  var i = c, e = i.operator, p = i.source;
5120
5110
  a.add(e ? e.call(a, p) : p ? c._subscribe(a) : c._trySubscribe(a));
@@ -5144,12 +5134,12 @@ var Jr = function() {
5144
5134
  }, t.prototype._subscribe = function(r) {
5145
5135
  var n;
5146
5136
  return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r);
5147
- }, t.prototype[os] = function() {
5137
+ }, t.prototype[ns] = function() {
5148
5138
  return this;
5149
5139
  }, t.prototype.pipe = function() {
5150
5140
  for (var r = [], n = 0; n < arguments.length; n++)
5151
5141
  r[n] = arguments[n];
5152
- return ss(r)(this);
5142
+ return es(r)(this);
5153
5143
  }, t.prototype.toPromise = function(r) {
5154
5144
  var n = this;
5155
5145
  return r = qr(r), new r(function(s, c) {
@@ -5168,13 +5158,13 @@ var Jr = function() {
5168
5158
  }();
5169
5159
  function qr(t) {
5170
5160
  var r;
5171
- return (r = t ?? qe.Promise) !== null && r !== void 0 ? r : Promise;
5161
+ return (r = t ?? Je.Promise) !== null && r !== void 0 ? r : Promise;
5172
5162
  }
5173
- function as(t) {
5163
+ function ss(t) {
5174
5164
  return t && Ot(t.next) && Ot(t.error) && Ot(t.complete);
5175
5165
  }
5176
- function cs(t) {
5177
- return t && t instanceof Or || as(t) && Yn(t);
5166
+ function as(t) {
5167
+ return t && t instanceof Or || ss(t) && Fn(t);
5178
5168
  }
5179
5169
  (function(t) {
5180
5170
  ar(r, t);
@@ -5212,11 +5202,11 @@ function cs(t) {
5212
5202
  }
5213
5203
  }, r;
5214
5204
  })(Or);
5215
- var is = Rn(function(t) {
5205
+ var cs = Nn(function(t) {
5216
5206
  return function() {
5217
5207
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
5218
5208
  };
5219
- }), Xn = function(t) {
5209
+ }), Yn = function(t) {
5220
5210
  ar(r, t);
5221
5211
  function r() {
5222
5212
  var n = t.call(this) || this;
@@ -5227,7 +5217,7 @@ var is = Rn(function(t) {
5227
5217
  return s.operator = n, s;
5228
5218
  }, r.prototype._throwIfClosed = function() {
5229
5219
  if (this.closed)
5230
- throw new is();
5220
+ throw new cs();
5231
5221
  }, r.prototype.next = function(n) {
5232
5222
  var s = this;
5233
5223
  hr(function() {
@@ -5283,7 +5273,7 @@ var is = Rn(function(t) {
5283
5273
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
5284
5274
  }, r.prototype._innerSubscribe = function(n) {
5285
5275
  var s = this, c = this, a = c.hasError, i = c.isStopped, e = c.observers;
5286
- return a || i ? Fn : (this.currentObservers = null, e.push(n), new mr(function() {
5276
+ return a || i ? Rn : (this.currentObservers = null, e.push(n), new mr(function() {
5287
5277
  s.currentObservers = null, Br(e, n);
5288
5278
  }));
5289
5279
  }, r.prototype._checkFinalizedStatuses = function(n) {
@@ -5312,24 +5302,24 @@ var is = Rn(function(t) {
5312
5302
  (s = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || s === void 0 || s.call(n);
5313
5303
  }, r.prototype._subscribe = function(n) {
5314
5304
  var s, c;
5315
- return (c = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(n)) !== null && c !== void 0 ? c : Fn;
5305
+ return (c = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(n)) !== null && c !== void 0 ? c : Rn;
5316
5306
  }, r;
5317
- }(Xn);
5307
+ }(Yn);
5318
5308
  let wr = null;
5319
- function ds() {
5309
+ function is() {
5320
5310
  if (!wr) {
5321
- const t = new Xn();
5311
+ const t = new Yn();
5322
5312
  wr = { subject: t, dispatch: (r, n) => t.next({ key: r, value: n }) };
5323
5313
  }
5324
5314
  return wr;
5325
5315
  }
5326
- const { subject: sa, dispatch: us } = ds();
5327
- function Bn({
5316
+ const { subject: sa, dispatch: ds } = is();
5317
+ function Xn({
5328
5318
  item: t,
5329
5319
  options: r
5330
5320
  }) {
5331
- var et, ct, dt, yt, bt, St, lt, j, Ft, Yt, Xt, Et, zt, _t, Wt, Lt, Ht, Ut, Zt, Qt, tr, T, K, B, rt, ht;
5332
- const { handleTextChange: n, onTextBlur: s, fps: c, editableTextId: a, frame: i } = r, { id: e, details: p, animations: o } = t, { durationInFrames: h } = It(t.display, c), d = [
5321
+ var et, ct, dt, yt, vt, Mt, lt, tt, ht, Yt, Xt, Et, zt, _t, Wt, Lt, Ht, Ut, Zt, Qt, tr, J, Q, B, rt, pt;
5322
+ const { handleTextChange: n, onTextBlur: s, fps: c, editableTextId: a, frame: i } = r, { id: e, details: p, animations: o } = t, { durationInFrames: h } = kt(t.display, c), d = [
5333
5323
  "opacity",
5334
5324
  "scale",
5335
5325
  "translateX",
@@ -5357,13 +5347,13 @@ function Bn({
5357
5347
  "maskDownIn",
5358
5348
  "maskDownOut"
5359
5349
  ], u = (((et = o == null ? void 0 : o.in) == null ? void 0 : et.composition) || []).filter(
5360
- (V) => d.some((Q) => V.property === Q) && V.textAnimationMode && V.textAnimationMode !== "all"
5350
+ (V) => d.some((Z) => V.property === Z) && V.textAnimationMode && V.textAnimationMode !== "all"
5361
5351
  ), l = (((ct = o == null ? void 0 : o.out) == null ? void 0 : ct.composition) || []).filter(
5362
- (V) => d.some((Q) => V.property === Q) && V.textAnimationMode && V.textAnimationMode !== "all"
5352
+ (V) => d.some((Z) => V.property === Z) && V.textAnimationMode && V.textAnimationMode !== "all"
5363
5353
  ), b = (((dt = o == null ? void 0 : o.loop) == null ? void 0 : dt.composition) || []).filter(
5364
- (V) => d.some((Q) => V.property === Q) && V.textAnimationMode && V.textAnimationMode !== "all"
5354
+ (V) => d.some((Z) => V.property === Z) && V.textAnimationMode && V.textAnimationMode !== "all"
5365
5355
  ), y = (((yt = o == null ? void 0 : o.timed) == null ? void 0 : yt.composition) || []).filter(
5366
- (V) => d.some((Q) => V.property === Q) && V.textAnimationMode && V.textAnimationMode !== "all"
5356
+ (V) => d.some((Z) => V.property === Z) && V.textAnimationMode && V.textAnimationMode !== "all"
5367
5357
  ), x = new Set(u.map((V) => V.id)), m = new Set(l.map((V) => V.id)), M = new Set(
5368
5358
  b.map((V) => V.id)
5369
5359
  ), S = new Set(
@@ -5394,42 +5384,42 @@ function Bn({
5394
5384
  (V) => !S.has(V.id)
5395
5385
  )
5396
5386
  } : void 0
5397
- }, { animationIn: k, animationOut: g, animationTimed: v } = Rt(
5387
+ }, { animationIn: k, animationOut: g, animationTimed: v } = Ft(
5398
5388
  $,
5399
5389
  t,
5400
5390
  i,
5401
5391
  c,
5402
5392
  r
5403
- ), w = (bt = o == null ? void 0 : o.in) == null ? void 0 : bt.composition.find(
5404
- (V) => !d.some((Q) => V.property === Q)
5405
- ), N = (St = o == null ? void 0 : o.out) == null ? void 0 : St.composition.find(
5406
- (V) => !d.some((Q) => V.property === Q)
5393
+ ), w = (vt = o == null ? void 0 : o.in) == null ? void 0 : vt.composition.find(
5394
+ (V) => !d.some((Z) => V.property === Z)
5395
+ ), N = (Mt = o == null ? void 0 : o.out) == null ? void 0 : Mt.composition.find(
5396
+ (V) => !d.some((Z) => V.property === Z)
5407
5397
  ), R = (lt = o == null ? void 0 : o.loop) == null ? void 0 : lt.composition.find(
5408
- (V) => !d.some((Q) => V.property === Q)
5409
- ), C = (w == null ? void 0 : w.property) || "", E = (N == null ? void 0 : N.property) || "", Y = (R == null ? void 0 : R.property) || "", _ = (w == null ? void 0 : w.textAnimationMode) || ((j = u[0]) == null ? void 0 : j.textAnimationMode) || (w ? "letter" : "all"), F = (N == null ? void 0 : N.textAnimationMode) || ((Ft = l[0]) == null ? void 0 : Ft.textAnimationMode) || (N ? "letter" : "all"), X = (R == null ? void 0 : R.textAnimationMode) || ((Yt = b[0]) == null ? void 0 : Yt.textAnimationMode) || (R ? "letter" : "all"), P = ((Xt = y[0]) == null ? void 0 : Xt.textAnimationMode) || "all", z = (w == null ? void 0 : w.durationInFrames) || ((zt = (Et = o == null ? void 0 : o.in) == null ? void 0 : Et.composition[0]) == null ? void 0 : zt.durationInFrames) || 0, O = (N == null ? void 0 : N.durationInFrames) || ((Wt = (_t = o == null ? void 0 : o.out) == null ? void 0 : _t.composition[0]) == null ? void 0 : Wt.durationInFrames) || 0, A = (R == null ? void 0 : R.durationInFrames) || ((Ht = (Lt = o == null ? void 0 : o.loop) == null ? void 0 : Lt.composition[0]) == null ? void 0 : Ht.durationInFrames) || 0, J = ((Ut = y[0]) == null ? void 0 : Ut.durationInFrames) || 0, Z = [];
5398
+ (V) => !d.some((Z) => V.property === Z)
5399
+ ), C = (w == null ? void 0 : w.property) || "", E = (N == null ? void 0 : N.property) || "", Y = (R == null ? void 0 : R.property) || "", _ = (w == null ? void 0 : w.textAnimationMode) || ((tt = u[0]) == null ? void 0 : tt.textAnimationMode) || (w ? "letter" : "all"), F = (N == null ? void 0 : N.textAnimationMode) || ((ht = l[0]) == null ? void 0 : ht.textAnimationMode) || (N ? "letter" : "all"), X = (R == null ? void 0 : R.textAnimationMode) || ((Yt = b[0]) == null ? void 0 : Yt.textAnimationMode) || (R ? "letter" : "all"), P = ((Xt = y[0]) == null ? void 0 : Xt.textAnimationMode) || "all", z = (w == null ? void 0 : w.durationInFrames) || ((zt = (Et = o == null ? void 0 : o.in) == null ? void 0 : Et.composition[0]) == null ? void 0 : zt.durationInFrames) || 0, O = (N == null ? void 0 : N.durationInFrames) || ((Wt = (_t = o == null ? void 0 : o.out) == null ? void 0 : _t.composition[0]) == null ? void 0 : Wt.durationInFrames) || 0, j = (R == null ? void 0 : R.durationInFrames) || ((Ht = (Lt = o == null ? void 0 : o.loop) == null ? void 0 : Lt.composition[0]) == null ? void 0 : Ht.durationInFrames) || 0, q = ((Ut = y[0]) == null ? void 0 : Ut.durationInFrames) || 0, U = [];
5410
5400
  o != null && o.loop && o.loop.composition.forEach((V) => {
5411
- var Q;
5412
- (Q = V.details) != null && Q.fonts && Z.push(...V.details.fonts);
5401
+ var Z;
5402
+ (Z = V.details) != null && Z.fonts && U.push(...V.details.fonts);
5413
5403
  }), o != null && o.in && o.in.composition.forEach((V) => {
5414
- var Q;
5415
- (Q = V.details) != null && Q.fonts && Z.push(...V.details.fonts);
5404
+ var Z;
5405
+ (Z = V.details) != null && Z.fonts && U.push(...V.details.fonts);
5416
5406
  }), o != null && o.out && o.out.composition.forEach((V) => {
5417
- var Q;
5418
- (Q = V.details) != null && Q.fonts && Z.push(...V.details.fonts);
5407
+ var Z;
5408
+ (Z = V.details) != null && Z.fonts && U.push(...V.details.fonts);
5419
5409
  });
5420
- let D = p.text;
5410
+ let T = p.text;
5421
5411
  if ((Qt = (Zt = t.animations) == null ? void 0 : Zt.timed) != null && Qt.composition) {
5422
5412
  const V = (r.frame || 0) - t.display.from * c / 1e3;
5423
5413
  if (V >= 0) {
5424
- const Q = (tr = t.animations) == null ? void 0 : tr.timed.composition;
5425
- Q.forEach((at, rr) => {
5426
- const xt = Q.slice(0, rr).reduce((Kt, ir) => Kt + ir.durationInFrames, 0);
5427
- V >= xt && at.text && (D = at.text);
5414
+ const Z = (tr = t.animations) == null ? void 0 : tr.timed.composition;
5415
+ Z.forEach((at, rr) => {
5416
+ const $t = Z.slice(0, rr).reduce((Kt, ir) => Kt + ir.durationInFrames, 0);
5417
+ V >= $t && at.text && (T = at.text);
5428
5418
  });
5429
5419
  }
5430
5420
  }
5431
- const L = (i || 0) - t.display.from * c / 1e3, H = p || {}, { top: G, left: ft, transform: U, position: q, boxShadow: ot, ...vt } = H, nt = (V) => {
5432
- V.stopPropagation(), V.preventDefault(), us(io, {
5421
+ const A = (i || 0) - t.display.from * c / 1e3, H = p || {}, { top: G, left: bt, transform: L, position: K, boxShadow: ot, ...gt } = H, nt = (V) => {
5422
+ V.stopPropagation(), V.preventDefault(), ds(co, {
5433
5423
  payload: {
5434
5424
  id: e
5435
5425
  }
@@ -5437,14 +5427,14 @@ function Bn({
5437
5427
  }, ut = Cr(
5438
5428
  p.effects,
5439
5429
  t.animations,
5440
- L,
5430
+ A,
5441
5431
  h
5442
- ), it = Vr(ut), mt = typeof p.width == "number" ? p.width : parseInt(String(p.width || 300), 10) || 300, pt = typeof p.height == "number" ? p.height : parseInt(String(p.height || 100), 10) || 100, tt = {
5432
+ ), it = Vr(ut), mt = typeof p.width == "number" ? p.width : parseInt(String(p.width || 300), 10) || 300, ft = typeof p.height == "number" ? p.height : parseInt(String(p.height || 100), 10) || 100, D = {
5443
5433
  key: e,
5444
5434
  id: e,
5445
5435
  fps: c,
5446
- frame: L,
5447
- content: D,
5436
+ frame: A,
5437
+ content: T,
5448
5438
  editable: a === e,
5449
5439
  onChange: n,
5450
5440
  textAnimationNameIn: C,
@@ -5458,17 +5448,17 @@ function Bn({
5458
5448
  basicCharAnimationsOut: l,
5459
5449
  basicCharAnimationsLoop: b,
5460
5450
  basicCharAnimationsTimed: y,
5461
- loopComposition: (T = o == null ? void 0 : o.loop) == null ? void 0 : T.composition,
5451
+ loopComposition: (J = o == null ? void 0 : o.loop) == null ? void 0 : J.composition,
5462
5452
  onBlur: s,
5463
5453
  onDoubleClick: nt,
5464
5454
  style: Dt(p),
5465
5455
  details: p,
5466
5456
  animationTextInFrames: z,
5467
5457
  animationTextOutFrames: O,
5468
- animationTextLoopFrames: A,
5469
- animationTextTimedFrames: J,
5458
+ animationTextLoopFrames: j,
5459
+ animationTextTimedFrames: q,
5470
5460
  durationInFrames: h,
5471
- animationFonts: Z
5461
+ animationFonts: U
5472
5462
  }, st = /* @__PURE__ */ f(
5473
5463
  jt,
5474
5464
  {
@@ -5476,7 +5466,7 @@ function Bn({
5476
5466
  animationOut: a === e ? null : g,
5477
5467
  basicCharAnimationsIn: u,
5478
5468
  basicCharAnimationsOut: l,
5479
- frame: L,
5469
+ frame: A,
5480
5470
  durationInFrames: h,
5481
5471
  style: {
5482
5472
  transform: p.transform,
@@ -5488,7 +5478,7 @@ function Bn({
5488
5478
  {
5489
5479
  animationTimed: a === e ? null : v,
5490
5480
  durationInFrames: h,
5491
- frame: L,
5481
+ frame: A,
5492
5482
  style: {
5493
5483
  transform: p.transform,
5494
5484
  rotate: p == null ? void 0 : p.rotate,
@@ -5499,39 +5489,39 @@ function Bn({
5499
5489
  {
5500
5490
  item: t,
5501
5491
  keyframeAnimations: [
5502
- ...((K = o == null ? void 0 : o.in) == null ? void 0 : K.composition) || [],
5492
+ ...((Q = o == null ? void 0 : o.in) == null ? void 0 : Q.composition) || [],
5503
5493
  ...((B = o == null ? void 0 : o.out) == null ? void 0 : B.composition) || [],
5504
5494
  ...((rt = o == null ? void 0 : o.timed) == null ? void 0 : rt.composition) || [],
5505
- ...((ht = o == null ? void 0 : o.loop) == null ? void 0 : ht.composition) || [],
5495
+ ...((pt = o == null ? void 0 : o.loop) == null ? void 0 : pt.composition) || [],
5506
5496
  ...k || [],
5507
5497
  ...g || [],
5508
5498
  ...v || []
5509
5499
  ],
5510
- frame: L,
5500
+ frame: A,
5511
5501
  durationInFrames: h,
5512
5502
  children: it ? /* @__PURE__ */ f(
5513
5503
  _r,
5514
5504
  {
5515
5505
  width: mt,
5516
- height: pt,
5506
+ height: ft,
5517
5507
  effects: it,
5518
- children: /* @__PURE__ */ f(Zr, { ...tt })
5508
+ children: /* @__PURE__ */ f(Zr, { ...D })
5519
5509
  }
5520
- ) : /* @__PURE__ */ f(Zr, { ...tt })
5510
+ ) : /* @__PURE__ */ f(Zr, { ...D })
5521
5511
  }
5522
5512
  )
5523
5513
  }
5524
5514
  )
5525
5515
  }
5526
5516
  );
5527
- return $t({ item: t, options: r, children: st });
5517
+ return St({ item: t, options: r, children: st });
5528
5518
  }
5529
- const Pn = ({
5519
+ const Bn = ({
5530
5520
  item: t,
5531
5521
  options: r
5532
5522
  }) => {
5533
- var nt, ut, it, mt, pt, tt, st, et, ct, dt, yt, bt, St, lt;
5534
- const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn: p, animationOut: o, animationTimed: h } = Rt(
5523
+ var ut, it, mt, ft, D, st, et, ct, dt, yt, vt, Mt, lt, tt;
5524
+ const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn: p, animationOut: o, animationTimed: h } = Ft(
5535
5525
  i,
5536
5526
  t,
5537
5527
  s,
@@ -5550,30 +5540,30 @@ const Pn = ({
5550
5540
  ${m}px
5551
5541
  ${M}px
5552
5542
  ${y}px round ${$}px
5553
- )`, { durationInFrames: g } = It(t.display, n), v = (s || 0) - t.display.from * n / 1e3, w = Pt(a, d, {}), { WebkitTextStroke: N } = w, R = ln(a, d), C = Cr(
5543
+ )`, { durationInFrames: g } = kt(t.display, n), v = (s || 0) - t.display.from * n / 1e3, w = Pt(a, d, {}), { WebkitTextStroke: N } = w, R = ln(a, d), C = Cr(
5554
5544
  a.effects,
5555
5545
  i,
5556
5546
  v,
5557
5547
  g
5558
- ), E = Vr(C), { filter: Y, overlays: _ } = xn(C), F = (ut = (nt = i == null ? void 0 : i.loop) == null ? void 0 : nt.composition) == null ? void 0 : ut.find(
5559
- (j) => j.property === "textGridMarqueeTextAnimationLoop" || j.property === "textGridMarquee" || j.property === "imageGridMarqueeTextAnimationLoop" || j.property === "imageGridMarquee" || j.id === "textGridMarquee" || j.id === "imageGridMarquee"
5560
- ), X = !!(F && v >= (F.delay || 0) && v <= (F.delay || 0) + (F.durationInFrames || 60)), P = (mt = (it = i == null ? void 0 : i.loop) == null ? void 0 : it.composition) == null ? void 0 : mt.find(
5561
- (j) => j.property === "inwardEchoes" || j.id === "inwardEchoes"
5562
- ), z = !!(P && v >= (P.delay || 0) && v <= (P.delay || 0) + (P.durationInFrames || 120)), O = (tt = (pt = i == null ? void 0 : i.loop) == null ? void 0 : pt.composition) == null ? void 0 : tt.find(
5563
- (j) => j.property === "wiggle" || j.id === "wiggle"
5564
- ), A = !!(O && v >= (O.delay || 0) && v <= (O.delay || 0) + (O.durationInFrames || 120)), J = (et = (st = i == null ? void 0 : i.loop) == null ? void 0 : st.composition) == null ? void 0 : et.find(
5565
- (j) => j.property === "cardFlip" || j.id === "cardFlip"
5566
- ), Z = !!(J && v >= (J.delay || 0) && v <= (J.delay || 0) + (J.durationInFrames || 120)), D = [
5567
- ...((ct = i == null ? void 0 : i.in) == null ? void 0 : ct.composition) || [],
5568
- ...((dt = i == null ? void 0 : i.out) == null ? void 0 : dt.composition) || [],
5569
- ...((yt = i == null ? void 0 : i.timed) == null ? void 0 : yt.composition) || [],
5570
- ...((bt = i == null ? void 0 : i.loop) == null ? void 0 : bt.composition) || []
5571
- ], L = a.width || d.width || 300, H = a.height || d.height || 300, G = /* @__PURE__ */ f(
5548
+ ), E = Vr(C), { filter: Y, overlays: _ } = mn(C), F = (it = (ut = i == null ? void 0 : i.loop) == null ? void 0 : ut.composition) == null ? void 0 : it.find(
5549
+ (ht) => ht.property === "textGridMarqueeTextAnimationLoop" || ht.property === "textGridMarquee" || ht.property === "imageGridMarqueeTextAnimationLoop" || ht.property === "imageGridMarquee" || ht.id === "textGridMarquee" || ht.id === "imageGridMarquee"
5550
+ ), X = !!(F && v >= (F.delay || 0) && v <= (F.delay || 0) + (F.durationInFrames || 60)), P = (ft = (mt = i == null ? void 0 : i.loop) == null ? void 0 : mt.composition) == null ? void 0 : ft.find(
5551
+ (ht) => ht.property === "inwardEchoes" || ht.id === "inwardEchoes"
5552
+ ), z = !!(P && v >= (P.delay || 0) && v <= (P.delay || 0) + (P.durationInFrames || 120)), O = (st = (D = i == null ? void 0 : i.loop) == null ? void 0 : D.composition) == null ? void 0 : st.find(
5553
+ (ht) => ht.property === "wiggle" || ht.id === "wiggle"
5554
+ ), j = !!(O && v >= (O.delay || 0) && v <= (O.delay || 0) + (O.durationInFrames || 120)), q = (ct = (et = i == null ? void 0 : i.loop) == null ? void 0 : et.composition) == null ? void 0 : ct.find(
5555
+ (ht) => ht.property === "cardFlip" || ht.id === "cardFlip"
5556
+ ), U = !!(q && v >= (q.delay || 0) && v <= (q.delay || 0) + (q.durationInFrames || 120)), T = [
5557
+ ...((dt = i == null ? void 0 : i.in) == null ? void 0 : dt.composition) || [],
5558
+ ...((yt = i == null ? void 0 : i.out) == null ? void 0 : yt.composition) || [],
5559
+ ...((vt = i == null ? void 0 : i.timed) == null ? void 0 : vt.composition) || [],
5560
+ ...((Mt = i == null ? void 0 : i.loop) == null ? void 0 : Mt.composition) || []
5561
+ ], A = a.width || d.width || 300, H = a.height || d.height || 300, G = /* @__PURE__ */ f(
5572
5562
  sr,
5573
5563
  {
5574
5564
  "data-id": t.id,
5575
- startFrom: ((St = t.trim) == null ? void 0 : St.from) / 1e3 * n,
5576
- endAt: (((lt = t.trim) == null ? void 0 : lt.to) / 1e3 * n || 1 / n) / e,
5565
+ startFrom: ((lt = t.trim) == null ? void 0 : lt.from) / 1e3 * n,
5566
+ endAt: (((tt = t.trim) == null ? void 0 : tt.to) / 1e3 * n || 1 / n) / e,
5577
5567
  playbackRate: e,
5578
5568
  src: a.src,
5579
5569
  volume: (a.volume || 0) / 100,
@@ -5583,11 +5573,11 @@ const Pn = ({
5583
5573
  width: "100%",
5584
5574
  height: "100%",
5585
5575
  filter: Y || void 0,
5586
- clipPath: u > 0 || d.x || d.y ? k : void 0
5576
+ clipPath: k
5587
5577
  }
5588
5578
  }
5589
- ), ft = () => X ? /* @__PURE__ */ f(
5590
- bn,
5579
+ ), bt = () => X ? /* @__PURE__ */ f(
5580
+ yn,
5591
5581
  {
5592
5582
  src: a.src,
5593
5583
  isVideo: !0,
@@ -5606,7 +5596,7 @@ const Pn = ({
5606
5596
  marqueeDetails: F == null ? void 0 : F.details
5607
5597
  }
5608
5598
  ) : z ? /* @__PURE__ */ f(
5609
- vn,
5599
+ bn,
5610
5600
  {
5611
5601
  src: a.src,
5612
5602
  isVideo: !0,
@@ -5624,8 +5614,8 @@ const Pn = ({
5624
5614
  fps: n,
5625
5615
  echoesDetails: P == null ? void 0 : P.details
5626
5616
  }
5627
- ) : A ? /* @__PURE__ */ f(
5628
- gn,
5617
+ ) : j ? /* @__PURE__ */ f(
5618
+ vn,
5629
5619
  {
5630
5620
  src: a.src,
5631
5621
  isVideo: !0,
@@ -5643,30 +5633,30 @@ const Pn = ({
5643
5633
  fps: n,
5644
5634
  wiggleDetails: O == null ? void 0 : O.details
5645
5635
  }
5646
- ) : Z ? /* @__PURE__ */ f(
5636
+ ) : U ? /* @__PURE__ */ f(
5647
5637
  Wr,
5648
5638
  {
5649
5639
  frame: v,
5650
- delay: J == null ? void 0 : J.delay,
5651
- durationInFrames: J == null ? void 0 : J.durationInFrames,
5652
- from: J == null ? void 0 : J.from,
5653
- to: J == null ? void 0 : J.to,
5654
- width: L,
5640
+ delay: q == null ? void 0 : q.delay,
5641
+ durationInFrames: q == null ? void 0 : q.durationInFrames,
5642
+ from: q == null ? void 0 : q.from,
5643
+ to: q == null ? void 0 : q.to,
5644
+ width: A,
5655
5645
  height: H,
5656
5646
  borderRadius: R.borderRadius,
5657
5647
  boxShadow: a.boxShadow,
5658
- cardFlipDetails: J == null ? void 0 : J.details,
5648
+ cardFlipDetails: q == null ? void 0 : q.details,
5659
5649
  children: G
5660
5650
  }
5661
- ) : G, {
5662
- borderWidth: U,
5663
- borderColor: q,
5664
- ...ot
5665
- } = a, vt = /* @__PURE__ */ f(
5651
+ ) : G, L = X || z || j || U, {
5652
+ borderWidth: K,
5653
+ borderColor: ot,
5654
+ ...gt
5655
+ } = a, nt = /* @__PURE__ */ f(
5666
5656
  jt,
5667
5657
  {
5668
5658
  style: {
5669
- ...ot,
5659
+ ...gt,
5670
5660
  ...w,
5671
5661
  boxShadow: void 0,
5672
5662
  WebkitTextStroke: N
@@ -5691,10 +5681,10 @@ const Pn = ({
5691
5681
  Tt,
5692
5682
  {
5693
5683
  item: t,
5694
- keyframeAnimations: D,
5684
+ keyframeAnimations: T,
5695
5685
  frame: v,
5696
5686
  durationInFrames: g,
5697
- children: /* @__PURE__ */ gt(
5687
+ children: /* @__PURE__ */ xt(
5698
5688
  "div",
5699
5689
  {
5700
5690
  style: {
@@ -5703,7 +5693,7 @@ const Pn = ({
5703
5693
  height: "100%"
5704
5694
  },
5705
5695
  children: [
5706
- !X && !z && !A && !Z && a.boxShadow && /* @__PURE__ */ f(
5696
+ !X && !z && !j && !U && a.boxShadow && /* @__PURE__ */ f(
5707
5697
  "div",
5708
5698
  {
5709
5699
  style: {
@@ -5718,7 +5708,7 @@ const Pn = ({
5718
5708
  }
5719
5709
  }
5720
5710
  ),
5721
- /* @__PURE__ */ gt(
5711
+ /* @__PURE__ */ f(
5722
5712
  "div",
5723
5713
  {
5724
5714
  id: `${t.id}-reveal-mask`,
@@ -5733,39 +5723,29 @@ const Pn = ({
5733
5723
  overflow: "hidden",
5734
5724
  borderRadius: R.borderRadius
5735
5725
  },
5736
- children: [
5737
- /* @__PURE__ */ gt(
5738
- "div",
5739
- {
5740
- style: {
5741
- ...R,
5742
- overflow: "visible",
5743
- boxShadow: X ? "none" : R.boxShadow
5744
- },
5745
- children: [
5746
- E ? /* @__PURE__ */ f(
5747
- _r,
5748
- {
5749
- width: L,
5750
- height: H,
5751
- effects: E,
5752
- children: ft()
5753
- }
5754
- ) : ft(),
5755
- _.map((j) => /* @__PURE__ */ f("div", { style: j.style }, j.id))
5756
- ]
5757
- }
5758
- ),
5759
- !X && !z && !A && !Z && !!a.borderWidth && /* @__PURE__ */ f(
5760
- "div",
5761
- {
5762
- style: {
5763
- ...hn(a, d),
5764
- backgroundColor: "transparent"
5765
- }
5766
- }
5767
- )
5768
- ]
5726
+ children: /* @__PURE__ */ xt(
5727
+ "div",
5728
+ {
5729
+ style: {
5730
+ ...R,
5731
+ overflow: "visible",
5732
+ boxShadow: X ? "none" : R.boxShadow,
5733
+ background: L ? "transparent" : a.borderColor
5734
+ },
5735
+ children: [
5736
+ E ? /* @__PURE__ */ f(
5737
+ _r,
5738
+ {
5739
+ width: A,
5740
+ height: H,
5741
+ effects: E,
5742
+ children: bt()
5743
+ }
5744
+ ) : bt(),
5745
+ _.map((ht) => /* @__PURE__ */ f("div", { style: ht.style }, ht.id))
5746
+ ]
5747
+ }
5748
+ )
5769
5749
  }
5770
5750
  )
5771
5751
  ]
@@ -5777,13 +5757,13 @@ const Pn = ({
5777
5757
  )
5778
5758
  }
5779
5759
  );
5780
- return $t({ item: t, options: r, children: vt });
5760
+ return St({ item: t, options: r, children: nt });
5781
5761
  };
5782
- function En({
5762
+ function Pn({
5783
5763
  item: t,
5784
5764
  options: r
5785
5765
  }) {
5786
- const { fps: n, frame: s } = r, { details: c } = t, a = t.playbackRate || 1, { from: i, durationInFrames: e } = It(
5766
+ const { fps: n, frame: s } = r, { details: c } = t, a = t.playbackRate || 1, { from: i, durationInFrames: e } = kt(
5787
5767
  {
5788
5768
  from: t.display.from / a,
5789
5769
  to: t.display.to / a
@@ -5798,7 +5778,7 @@ function En({
5798
5778
  const h = Math.max((s || 0) - i, 0);
5799
5779
  p = Math.min(h / e * 100, 100);
5800
5780
  }
5801
- const o = /* @__PURE__ */ gt(kt, { children: [
5781
+ const o = /* @__PURE__ */ xt(Nt, { children: [
5802
5782
  /* @__PURE__ */ f(
5803
5783
  "div",
5804
5784
  {
@@ -5824,17 +5804,17 @@ function En({
5824
5804
  }
5825
5805
  )
5826
5806
  ] });
5827
- return $t({ item: t, options: r, children: o });
5807
+ return St({ item: t, options: r, children: o });
5828
5808
  }
5829
- const ls = (t) => {
5809
+ const us = (t) => {
5830
5810
  let r = 0;
5831
5811
  for (let n = 0; n < t.length; n++)
5832
5812
  r += t[n] * t[n];
5833
5813
  return r = r / t.length, r = Math.sqrt(r), r;
5834
- }, hs = (t) => 20 * Math.log10(t), ps = (t, r, n) => (t - r) / (n - r), fs = (t, r, n) => Math.max(Math.min(t, n), r), ys = -100, bs = -30, zr = (t, r = {}) => {
5835
- const { minDb: n = ys, maxDb: s = bs } = r, c = hs(t);
5836
- return fs(ps(c, n, s), 0, 1);
5837
- }, _n = ({
5814
+ }, ls = (t) => 20 * Math.log10(t), hs = (t, r, n) => (t - r) / (n - r), ps = (t, r, n) => Math.max(Math.min(t, n), r), fs = -100, ys = -30, zr = (t, r = {}) => {
5815
+ const { minDb: n = fs, maxDb: s = ys } = r, c = ls(t);
5816
+ return ps(hs(c, n, s), 0, 1);
5817
+ }, En = ({
5838
5818
  totalWidth: t,
5839
5819
  itemWidth: r,
5840
5820
  frequencyData: n,
@@ -5849,7 +5829,7 @@ const ls = (t) => {
5849
5829
  );
5850
5830
  return Math.log(1 + d);
5851
5831
  });
5852
- }, vs = ({
5832
+ }, bs = ({
5853
5833
  values: t,
5854
5834
  width: r = 400,
5855
5835
  height: n = 100,
@@ -5876,7 +5856,7 @@ const ls = (t) => {
5876
5856
  u
5877
5857
  );
5878
5858
  }) }) });
5879
- }, gs = ({
5859
+ }, vs = ({
5880
5860
  width: t,
5881
5861
  height: r,
5882
5862
  frequencyData: n,
@@ -5888,7 +5868,7 @@ const ls = (t) => {
5888
5868
  maxDb: p,
5889
5869
  minDb: o
5890
5870
  }) => {
5891
- const h = Er(null), d = Nt(), [u, l] = fr({ width: 400, height: 100 });
5871
+ const h = Er(null), d = Rt(), [u, l] = fr({ width: 400, height: 100 });
5892
5872
  er(() => {
5893
5873
  l((m) => {
5894
5874
  var M, S;
@@ -5898,7 +5878,7 @@ const ls = (t) => {
5898
5878
  };
5899
5879
  });
5900
5880
  }, [d, l]);
5901
- const { width: b, height: y } = u, x = _n({
5881
+ const { width: b, height: y } = u, x = En({
5902
5882
  totalWidth: b,
5903
5883
  itemWidth: s + c,
5904
5884
  frequencyData: n,
@@ -5906,7 +5886,7 @@ const ls = (t) => {
5906
5886
  minDb: o
5907
5887
  });
5908
5888
  return /* @__PURE__ */ f("div", { ref: h, style: { width: t, height: r }, children: /* @__PURE__ */ f(
5909
- vs,
5889
+ bs,
5910
5890
  {
5911
5891
  width: b,
5912
5892
  height: y,
@@ -5919,7 +5899,7 @@ const ls = (t) => {
5919
5899
  }
5920
5900
  ) });
5921
5901
  };
5922
- class ms {
5902
+ class gs {
5923
5903
  constructor() {
5924
5904
  Bt(this, "fps", 30);
5925
5905
  Bt(this, "numberOfSamples", 512);
@@ -5937,7 +5917,7 @@ class ms {
5937
5917
  }
5938
5918
  async loadAudioData(r, n) {
5939
5919
  try {
5940
- const s = await uo(r);
5920
+ const s = await io(r);
5941
5921
  this.audioDatas[n] = {
5942
5922
  data: s,
5943
5923
  lastAccessed: Date.now()
@@ -5968,7 +5948,7 @@ class ms {
5968
5948
  validateUpdateItems(r) {
5969
5949
  r.forEach((n) => {
5970
5950
  this.items.forEach((s) => {
5971
- !ho(s, n) && s.id === n.id && this.updateItem(n);
5951
+ !lo(s, n) && s.id === n.id && this.updateItem(n);
5972
5952
  });
5973
5953
  });
5974
5954
  }
@@ -5990,7 +5970,7 @@ class ms {
5990
5970
  const p = r - this.items[i].display.from * this.fps / 1e3 + (((h = this.items[i].trim) == null ? void 0 : h.from) || 0) * this.fps / 1e3;
5991
5971
  if (this.items[i].display.from * this.fps / 1e3 > r || this.items[i].display.to * this.fps / 1e3 < r)
5992
5972
  return Array(this.numberOfSamples).fill(0);
5993
- const o = lo({
5973
+ const o = uo({
5994
5974
  audioData: e.data,
5995
5975
  frame: p,
5996
5976
  fps: this.fps,
@@ -6008,15 +5988,15 @@ class ms {
6008
5988
  return c;
6009
5989
  }
6010
5990
  }
6011
- const Gt = new ms(), xs = ({
5991
+ const Gt = new gs(), ms = ({
6012
5992
  item: t,
6013
5993
  options: r
6014
5994
  }) => {
6015
5995
  const { frame: n, fps: s } = r, { details: c } = t;
6016
5996
  Gt.setAudioDataManager(s);
6017
5997
  const e = Gt.getAudioDataForFrame(n || 0).slice(0, 0.7 * 512), o = ["middle", "over", "under"].includes(c.placement);
6018
- return /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
6019
- gs,
5998
+ return /* @__PURE__ */ f(Nt, { children: /* @__PURE__ */ f(
5999
+ vs,
6020
6000
  {
6021
6001
  frequencyData: e,
6022
6002
  width: c.width,
@@ -6029,17 +6009,17 @@ const Gt = new ms(), xs = ({
6029
6009
  }
6030
6010
  ) });
6031
6011
  };
6032
- function Wn({
6012
+ function _n({
6033
6013
  item: t,
6034
6014
  options: r
6035
6015
  }) {
6036
- return $t({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(xs, { item: t, options: r }) }) });
6016
+ return St({ item: t, options: r, children: /* @__PURE__ */ f(Nt, { children: /* @__PURE__ */ f(ms, { item: t, options: r }) }) });
6037
6017
  }
6038
- function Vn({
6018
+ function Wn({
6039
6019
  item: t,
6040
6020
  options: r
6041
6021
  }) {
6042
- const { fps: n, frame: s } = r, { details: c } = t, a = t.playbackRate || 1, { from: i, durationInFrames: e } = It(
6022
+ const { fps: n, frame: s } = r, { details: c } = t, a = t.playbackRate || 1, { from: i, durationInFrames: e } = kt(
6043
6023
  {
6044
6024
  from: t.display.from / a,
6045
6025
  to: t.display.to / a
@@ -6054,7 +6034,7 @@ function Vn({
6054
6034
  const b = Math.max((s || 0) - i, 0);
6055
6035
  p = Math.min(b / e * 100, 100);
6056
6036
  }
6057
- const o = c.width || 100, h = c.height || 100, u = Math.min(o, h) * c.barThickness / 100, l = /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
6037
+ const o = c.width || 100, h = c.height || 100, u = Math.min(o, h) * c.barThickness / 100, l = /* @__PURE__ */ f(Nt, { children: /* @__PURE__ */ f(
6058
6038
  "div",
6059
6039
  {
6060
6040
  style: {
@@ -6064,7 +6044,7 @@ function Vn({
6064
6044
  backgroundColor: "transparent",
6065
6045
  scale: `${c.flipX ? -1 : 1} ${c.flipY ? -1 : 1}`
6066
6046
  },
6067
- children: /* @__PURE__ */ gt(
6047
+ children: /* @__PURE__ */ xt(
6068
6048
  "div",
6069
6049
  {
6070
6050
  style: {
@@ -6102,9 +6082,9 @@ function Vn({
6102
6082
  )
6103
6083
  }
6104
6084
  ) });
6105
- return $t({ item: t, options: r, children: l });
6085
+ return St({ item: t, options: r, children: l });
6106
6086
  }
6107
- const $s = ({
6087
+ const xs = ({
6108
6088
  values: t,
6109
6089
  radius: r,
6110
6090
  lineThickness: n,
@@ -6141,7 +6121,7 @@ const $s = ({
6141
6121
  })
6142
6122
  }
6143
6123
  ) });
6144
- }, Ss = ({
6124
+ }, $s = ({
6145
6125
  frequencyData: t,
6146
6126
  maxDb: r,
6147
6127
  minDb: n,
@@ -6154,7 +6134,7 @@ const $s = ({
6154
6134
  innerRadius: o = 0,
6155
6135
  gapSize: h = 4
6156
6136
  }) => {
6157
- const d = 0.5 * s, u = _n({
6137
+ const d = 0.5 * s, u = En({
6158
6138
  totalWidth: 2 * Math.PI * o,
6159
6139
  itemWidth: c + h,
6160
6140
  frequencyData: t,
@@ -6162,7 +6142,7 @@ const $s = ({
6162
6142
  minDb: n
6163
6143
  }), l = u.slice(Math.floor(0.5 * u.length)), b = [...l, ...l.slice().reverse()];
6164
6144
  return /* @__PURE__ */ f(
6165
- $s,
6145
+ xs,
6166
6146
  {
6167
6147
  values: b,
6168
6148
  radius: d,
@@ -6174,16 +6154,16 @@ const $s = ({
6174
6154
  innerRadius: o
6175
6155
  }
6176
6156
  );
6177
- }, Ms = ({
6157
+ }, Ss = ({
6178
6158
  item: t,
6179
6159
  options: r
6180
6160
  }) => {
6181
6161
  const { fps: n, frame: s } = r, { details: c } = t, a = t.playbackRate || 1;
6182
6162
  Gt.setAudioDataManager(n);
6183
6163
  const p = Gt.getAudioDataForFrame(s || 0).slice(0, 0.7 * 512);
6184
- return /* @__PURE__ */ gt(kt, { children: [
6164
+ return /* @__PURE__ */ xt(Nt, { children: [
6185
6165
  /* @__PURE__ */ f(
6186
- Ss,
6166
+ $s,
6187
6167
  {
6188
6168
  frequencyData: p,
6189
6169
  diameter: c.width,
@@ -6194,13 +6174,13 @@ const $s = ({
6194
6174
  c.reproduceAudio && c.srcs.map((o, h) => /* @__PURE__ */ f(an, { playbackRate: a, src: o }, h))
6195
6175
  ] });
6196
6176
  };
6197
- function Cn({
6177
+ function Vn({
6198
6178
  item: t,
6199
6179
  options: r
6200
6180
  }) {
6201
- return $t({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Ms, { item: t, options: r }) }) });
6181
+ return St({ item: t, options: r, children: /* @__PURE__ */ f(Nt, { children: /* @__PURE__ */ f(Ss, { item: t, options: r }) }) });
6202
6182
  }
6203
- const ws = ({
6183
+ const Ms = ({
6204
6184
  numberOfPoints: t,
6205
6185
  amplitude: r,
6206
6186
  offsetPixels: n,
@@ -6214,7 +6194,7 @@ const ws = ({
6214
6194
  let d = Math.sin(Math.abs(o) * Math.PI);
6215
6195
  return d = I.cubic(d), d = d * r, d = d * Math.sin((0.5 + e) * Math.PI), { x: h, y: d };
6216
6196
  }).sort((i, e) => i.x > e.x ? 1 : -1);
6217
- }, Is = ({
6197
+ }, ws = ({
6218
6198
  sections: t = 12,
6219
6199
  offsetPixels: r,
6220
6200
  amplitude: n,
@@ -6229,7 +6209,7 @@ const ws = ({
6229
6209
  }) => {
6230
6210
  const d = s, u = c, l = t, b = r % (2 * s / t), y = Array.from({ length: a }).map(($, k) => {
6231
6211
  const g = k * i;
6232
- return ws({
6212
+ return Ms({
6233
6213
  width: d,
6234
6214
  numberOfPoints: l,
6235
6215
  offsetPixels: g + b,
@@ -6255,7 +6235,7 @@ const ws = ({
6255
6235
  `line-${k}`
6256
6236
  );
6257
6237
  }) }) });
6258
- }, ks = ({
6238
+ }, Is = ({
6259
6239
  frequencyData: t,
6260
6240
  width: r,
6261
6241
  height: n,
@@ -6264,11 +6244,11 @@ const ws = ({
6264
6244
  minDb: a,
6265
6245
  ...i
6266
6246
  }) => {
6267
- const e = Nt(), { fps: p } = cn();
6247
+ const e = Rt(), { fps: p } = cn();
6268
6248
  if (!t) return null;
6269
- const o = t.slice(0.25 * t.length).map((u) => zr(u, { maxDb: c, minDb: a })), h = n * ls(o), d = e / p;
6249
+ const o = t.slice(0.25 * t.length).map((u) => zr(u, { maxDb: c, minDb: a })), h = n * us(o), d = e / p;
6270
6250
  return /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f(
6271
- Is,
6251
+ ws,
6272
6252
  {
6273
6253
  width: r,
6274
6254
  height: n,
@@ -6277,15 +6257,15 @@ const ws = ({
6277
6257
  ...i
6278
6258
  }
6279
6259
  ) });
6280
- }, Ns = ({
6260
+ }, ks = ({
6281
6261
  item: t,
6282
6262
  options: r
6283
6263
  }) => {
6284
6264
  const { frame: n, fps: s } = r, { details: c } = t;
6285
6265
  Gt.setAudioDataManager(s);
6286
6266
  const e = Gt.getAudioDataForFrame(n || 0).slice(0, 0.7 * 512);
6287
- return /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
6288
- ks,
6267
+ return /* @__PURE__ */ f(Nt, { children: /* @__PURE__ */ f(
6268
+ Is,
6289
6269
  {
6290
6270
  frequencyData: e,
6291
6271
  width: c.width,
@@ -6300,17 +6280,17 @@ const ws = ({
6300
6280
  }
6301
6281
  ) });
6302
6282
  };
6303
- function On({
6283
+ function Cn({
6304
6284
  item: t,
6305
6285
  options: r
6306
6286
  }) {
6307
- return $t({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Ns, { item: t, options: r }) }) });
6287
+ return St({ item: t, options: r, children: /* @__PURE__ */ f(Nt, { children: /* @__PURE__ */ f(ks, { item: t, options: r }) }) });
6308
6288
  }
6309
- const Rs = (t, r) => {
6289
+ const Ns = (t, r) => {
6310
6290
  if (!r || r === t.length) return [...t];
6311
6291
  const n = r % t.length;
6312
6292
  return [...t.slice(n), ...t.slice(0, n)];
6313
- }, Fs = ({
6293
+ }, Rs = ({
6314
6294
  numberOfBumps: t = 8,
6315
6295
  frequencyData: r,
6316
6296
  maxDb: n = -30,
@@ -6321,7 +6301,7 @@ const Rs = (t, r) => {
6321
6301
  e[d * p % e.length],
6322
6302
  { maxDb: n, minDb: s }
6323
6303
  ));
6324
- }, Ys = ({
6304
+ }, Fs = ({
6325
6305
  values: t,
6326
6306
  width: r = 400,
6327
6307
  height: n = 100,
@@ -6346,9 +6326,9 @@ const Rs = (t, r) => {
6346
6326
  scaling: 0.5
6347
6327
  }, b = 0.15 * o, y = (o - 2 * b) / (t.length - 1), x = Array.from({ length: e }).map((m, M) => {
6348
6328
  const S = 3 * M;
6349
- return Rs(t, S).map((k, g) => ({
6329
+ return Ns(t, S).map((k, g) => ({
6350
6330
  x: b + g * y,
6351
- y: d * h * k * (1.2 - 0.5 * no(M * t.length + g))
6331
+ y: d * h * k * (1.2 - 0.5 * ro(M * t.length + g))
6352
6332
  }));
6353
6333
  });
6354
6334
  return /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f("svg", { width: o, height: h, viewBox: `0 ${u} ${o} ${h}`, children: x.map((m, M) => {
@@ -6360,7 +6340,7 @@ const Rs = (t, r) => {
6360
6340
  mixBlendMode: p
6361
6341
  }
6362
6342
  };
6363
- return /* @__PURE__ */ gt(Vt.Fragment, { children: [
6343
+ return /* @__PURE__ */ xt(Vt.Fragment, { children: [
6364
6344
  i !== "over" && /* @__PURE__ */ f(
6365
6345
  "path",
6366
6346
  {
@@ -6383,7 +6363,7 @@ const Rs = (t, r) => {
6383
6363
  )
6384
6364
  ] }, M);
6385
6365
  }) }) });
6386
- }, Xs = ({
6366
+ }, Ys = ({
6387
6367
  width: t,
6388
6368
  height: r,
6389
6369
  frequencyData: n,
@@ -6395,7 +6375,7 @@ const Rs = (t, r) => {
6395
6375
  maxDb: p,
6396
6376
  minDb: o
6397
6377
  }) => {
6398
- const h = Er(null), d = Nt(), [u, l] = fr({ width: 400, height: 100 });
6378
+ const h = Er(null), d = Rt(), [u, l] = fr({ width: 400, height: 100 });
6399
6379
  er(() => {
6400
6380
  l((m) => {
6401
6381
  var M, S;
@@ -6407,9 +6387,9 @@ const Rs = (t, r) => {
6407
6387
  }, [d, l]);
6408
6388
  const { width: b, height: y } = u;
6409
6389
  if (!n) return null;
6410
- const x = Fs({ frequencyData: n, minDb: o, maxDb: p });
6390
+ const x = Rs({ frequencyData: n, minDb: o, maxDb: p });
6411
6391
  return /* @__PURE__ */ f("div", { ref: h, style: { width: t, height: r }, children: /* @__PURE__ */ f(
6412
- Ys,
6392
+ Fs,
6413
6393
  {
6414
6394
  values: x,
6415
6395
  width: b,
@@ -6421,7 +6401,7 @@ const Rs = (t, r) => {
6421
6401
  blendMode: i
6422
6402
  }
6423
6403
  ) });
6424
- }, Bs = ({
6404
+ }, Xs = ({
6425
6405
  item: t,
6426
6406
  options: r
6427
6407
  }) => {
@@ -6445,8 +6425,8 @@ const Rs = (t, r) => {
6445
6425
  "color",
6446
6426
  "luminosity"
6447
6427
  ].includes(o);
6448
- return /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
6449
- Xs,
6428
+ return /* @__PURE__ */ f(Nt, { children: /* @__PURE__ */ f(
6429
+ Ys,
6450
6430
  {
6451
6431
  frequencyData: e,
6452
6432
  width: c.width,
@@ -6459,24 +6439,24 @@ const Rs = (t, r) => {
6459
6439
  }
6460
6440
  ) });
6461
6441
  };
6462
- function zn({
6442
+ function On({
6463
6443
  item: t,
6464
6444
  options: r
6465
6445
  }) {
6466
- return $t({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Bs, { item: t, options: r }) }) });
6446
+ return St({ item: t, options: r, children: /* @__PURE__ */ f(Nt, { children: /* @__PURE__ */ f(Xs, { item: t, options: r }) }) });
6467
6447
  }
6468
- const Gn = ({
6448
+ const zn = ({
6469
6449
  item: t,
6470
6450
  options: r
6471
6451
  }) => {
6472
6452
  var u, l, b, y;
6473
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Rt(
6453
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Ft(
6474
6454
  a,
6475
6455
  t,
6476
6456
  s,
6477
6457
  n,
6478
6458
  r
6479
- ), { durationInFrames: o } = It(t.display, n), h = (s || 0) - t.display.from * n / 1e3, d = /* @__PURE__ */ f(
6459
+ ), { durationInFrames: o } = kt(t.display, n), h = (s || 0) - t.display.from * n / 1e3, d = /* @__PURE__ */ f(
6480
6460
  jt,
6481
6461
  {
6482
6462
  style: Pt(c),
@@ -6506,15 +6486,15 @@ const Gn = ({
6506
6486
  ],
6507
6487
  frame: h,
6508
6488
  durationInFrames: o,
6509
- children: /* @__PURE__ */ f("div", { style: mo(c) })
6489
+ children: /* @__PURE__ */ f("div", { style: go(c) })
6510
6490
  }
6511
6491
  )
6512
6492
  }
6513
6493
  )
6514
6494
  }
6515
6495
  );
6516
- return $t({ item: t, options: r, children: d });
6517
- }, Ps = () => ({
6496
+ return St({ item: t, options: r, children: d });
6497
+ }, Bs = () => ({
6518
6498
  scale: (t) => ({ transform: `scale(${t})` }),
6519
6499
  opacity: (t) => ({ opacity: t }),
6520
6500
  translateX: (t) => ({ transform: `translateX(${t}%)` }),
@@ -6545,7 +6525,7 @@ const Gn = ({
6545
6525
  for (let c = 0; c < 6; c += 1)
6546
6526
  n.push(c * s + r);
6547
6527
  return n;
6548
- }, Es = (t, r, n, s = !1) => {
6528
+ }, Ps = (t, r, n, s = !1) => {
6549
6529
  const { from: c, to: a, ease: i } = r, e = r.durationInFrames || 30, p = Number(c), o = Number(a), h = Math.max(1, Number(e));
6550
6530
  if (isNaN(p) || isNaN(o))
6551
6531
  return p;
@@ -6574,7 +6554,7 @@ const Gn = ({
6574
6554
  extrapolateRight: "clamp",
6575
6555
  easing: i
6576
6556
  });
6577
- }, jn = (t) => {
6557
+ }, Gn = (t) => {
6578
6558
  if (t == null) return 0;
6579
6559
  if (typeof t == "number")
6580
6560
  return Number.isNaN(t) ? 0 : t;
@@ -6587,7 +6567,7 @@ const Gn = ({
6587
6567
  const c = parseFloat(String(t.rotation));
6588
6568
  if (!Number.isNaN(c)) return c;
6589
6569
  }
6590
- return t.transform ? jn(t.transform) : 0;
6570
+ return t.transform ? Gn(t.transform) : 0;
6591
6571
  }
6592
6572
  const r = String(t), n = /rotate\((-?[\d.]+)deg\)/.exec(r);
6593
6573
  if (n)
@@ -6611,7 +6591,7 @@ const Gn = ({
6611
6591
  let M = c;
6612
6592
  if (M == null || Number.isNaN(M)) {
6613
6593
  const F = t.details;
6614
- M = jn((F == null ? void 0 : F.rotate) ?? (F == null ? void 0 : F.rotation) ?? (F == null ? void 0 : F.transform));
6594
+ M = Gn((F == null ? void 0 : F.rotate) ?? (F == null ? void 0 : F.rotation) ?? (F == null ? void 0 : F.transform));
6615
6595
  }
6616
6596
  const S = t.delay || 0, $ = t.durationInFrames || 30, k = s ? [n - $ - S, n - S] : [S, S + $], g = W(r, k, [l, b], {
6617
6597
  extrapolateLeft: "clamp",
@@ -6626,7 +6606,7 @@ const Gn = ({
6626
6606
  transform: `translateX(${Y}px) translateY(${_}px)`
6627
6607
  };
6628
6608
  }
6629
- const i = Es(r, t, n, s), e = Ps();
6609
+ const i = Ps(r, t, n, s), e = Bs();
6630
6610
  return (e[a] || e.default)(i);
6631
6611
  }, rn = (t, r, n, s = !1, c = !1, a) => Vt.useMemo(() => {
6632
6612
  if (t.length === 0) return {};
@@ -6664,7 +6644,7 @@ const Gn = ({
6664
6644
  children: s,
6665
6645
  style: c = {}
6666
6646
  }) => {
6667
- const a = Nt(), i = rn(
6647
+ const a = Rt(), i = rn(
6668
6648
  Ir(t),
6669
6649
  n,
6670
6650
  a,
@@ -6701,7 +6681,7 @@ const Gn = ({
6701
6681
  m === "transform" ? x[m] = `${x[m] || ""} ${M || ""}`.trim() : m in x && typeof x[m] == "number" && typeof M == "number" ? x[m] = x[m] * M : x[m] = M;
6702
6682
  }), x;
6703
6683
  }, [p, o]), b = yr(() => {
6704
- const x = l.transform || "", { translateX: m, translateY: M, scale: S, rotation: $, rotateY: k } = _s(x);
6684
+ const x = l.transform || "", { translateX: m, translateY: M, scale: S, rotation: $, rotateY: k } = Es(x);
6705
6685
  return `${$} ${m} ${M} ${S} ${k}`.trim();
6706
6686
  }, [l]);
6707
6687
  let y = i;
@@ -6737,7 +6717,7 @@ const Gn = ({
6737
6717
  )
6738
6718
  }
6739
6719
  );
6740
- }, _s = (t) => {
6720
+ }, Es = (t) => {
6741
6721
  let r = "", n = "", s = "scale(1)", c = "", a = "";
6742
6722
  const i = t.match(/translateX\([^)]+\)/g);
6743
6723
  i && (r = i[i.length - 1]);
@@ -6759,11 +6739,11 @@ I.ease;
6759
6739
  I.ease;
6760
6740
  I.linear;
6761
6741
  I.linear;
6762
- const An = ({
6742
+ const jn = ({
6763
6743
  item: t,
6764
6744
  options: r
6765
6745
  }) => {
6766
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = It(t.display, n), { animationIn: p, animationOut: o } = Rt(
6746
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = kt(t.display, n), { animationIn: p, animationOut: o } = Ft(
6767
6747
  i,
6768
6748
  t,
6769
6749
  c,
@@ -6776,7 +6756,7 @@ const An = ({
6776
6756
  animationOut: o,
6777
6757
  style: a,
6778
6758
  children: /* @__PURE__ */ f(
6779
- po,
6759
+ ho,
6780
6760
  {
6781
6761
  radius: d,
6782
6762
  fill: a.backgroundColor
@@ -6784,12 +6764,12 @@ const An = ({
6784
6764
  )
6785
6765
  }
6786
6766
  );
6787
- return $t({ item: t, options: r, children: u });
6788
- }, Ln = ({
6767
+ return St({ item: t, options: r, children: u });
6768
+ }, An = ({
6789
6769
  item: t,
6790
6770
  options: r
6791
6771
  }) => {
6792
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = It(t.display, n), { animationIn: p, animationOut: o } = Rt(
6772
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = kt(t.display, n), { animationIn: p, animationOut: o } = Ft(
6793
6773
  i,
6794
6774
  t,
6795
6775
  c,
@@ -6805,7 +6785,7 @@ const An = ({
6805
6785
  animationOut: o,
6806
6786
  style: {},
6807
6787
  children: /* @__PURE__ */ f(
6808
- fo,
6788
+ po,
6809
6789
  {
6810
6790
  length: d ?? 0,
6811
6791
  fill: a.backgroundColor,
@@ -6814,12 +6794,12 @@ const An = ({
6814
6794
  )
6815
6795
  }
6816
6796
  );
6817
- return $t({ item: t, options: r, children: u });
6818
- }, Hn = ({
6797
+ return St({ item: t, options: r, children: u });
6798
+ }, Ln = ({
6819
6799
  item: t,
6820
6800
  options: r
6821
6801
  }) => {
6822
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = It(t.display, n), { animationIn: p, animationOut: o } = Rt(
6802
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = kt(t.display, n), { animationIn: p, animationOut: o } = Ft(
6823
6803
  i,
6824
6804
  t,
6825
6805
  c,
@@ -6853,7 +6833,7 @@ const An = ({
6853
6833
  animationOut: o,
6854
6834
  style: a,
6855
6835
  children: /* @__PURE__ */ f(
6856
- yo,
6836
+ fo,
6857
6837
  {
6858
6838
  points: a.points || 5,
6859
6839
  innerRadius: l ?? 0,
@@ -6863,17 +6843,17 @@ const An = ({
6863
6843
  )
6864
6844
  }
6865
6845
  );
6866
- return $t({ item: t, options: r, children: b });
6867
- }, Un = ({
6846
+ return St({ item: t, options: r, children: b });
6847
+ }, Hn = ({
6868
6848
  item: t,
6869
6849
  options: r
6870
6850
  }) => {
6871
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { animationIn: e, animationOut: p } = Rt(
6851
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { animationIn: e, animationOut: p } = Ft(
6872
6852
  i,
6873
6853
  t,
6874
6854
  c,
6875
6855
  n
6876
- ), { durationInFrames: o } = It(t.display, n), h = s == null ? void 0 : s[t.id], d = (b, y) => {
6856
+ ), { durationInFrames: o } = kt(t.display, n), h = s == null ? void 0 : s[t.id], d = (b, y) => {
6877
6857
  const x = y, m = y, M = Math.PI * 2 / b;
6878
6858
  let S = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, k = Number.POSITIVE_INFINITY, g = Number.NEGATIVE_INFINITY;
6879
6859
  for (let v = 0; v < b; v++) {
@@ -6901,7 +6881,7 @@ const An = ({
6901
6881
  animationOut: p,
6902
6882
  style: a,
6903
6883
  children: /* @__PURE__ */ f(
6904
- bo,
6884
+ yo,
6905
6885
  {
6906
6886
  points: a.points || 3,
6907
6887
  radius: u ?? 0,
@@ -6910,12 +6890,12 @@ const An = ({
6910
6890
  )
6911
6891
  }
6912
6892
  );
6913
- return $t({ item: t, options: r, children: l });
6914
- }, Zn = ({
6893
+ return St({ item: t, options: r, children: l });
6894
+ }, Un = ({
6915
6895
  item: t,
6916
6896
  options: r
6917
6897
  }) => {
6918
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = It(t.display, n), { animationIn: p, animationOut: o } = Rt(
6898
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = kt(t.display, n), { animationIn: p, animationOut: o } = Ft(
6919
6899
  i,
6920
6900
  t,
6921
6901
  c,
@@ -6928,7 +6908,7 @@ const An = ({
6928
6908
  animationOut: o,
6929
6909
  style: a,
6930
6910
  children: /* @__PURE__ */ f(
6931
- vo,
6911
+ bo,
6932
6912
  {
6933
6913
  rx: d ?? 0,
6934
6914
  ry: u ?? 0,
@@ -6939,8 +6919,8 @@ const An = ({
6939
6919
  )
6940
6920
  }
6941
6921
  );
6942
- return $t({ item: t, options: r, children: l });
6943
- }, Ws = () => ({
6922
+ return St({ item: t, options: r, children: l });
6923
+ }, _s = () => ({
6944
6924
  scale: (t) => ({ transform: `scale(${t})` }),
6945
6925
  opacity: (t) => ({ opacity: t }),
6946
6926
  translateX: (t) => ({ transform: `translateX(${t}%)` }),
@@ -7023,7 +7003,7 @@ const An = ({
7023
7003
  for (let c = 0; c < 6; c += 1)
7024
7004
  n.push(c * s + r);
7025
7005
  return n;
7026
- }, Vs = (t, r, n, s = !1) => {
7006
+ }, Ws = (t, r, n, s = !1) => {
7027
7007
  const { from: c, to: a, ease: i } = r, e = r.durationInFrames || 30, p = Number(c), o = Number(a), h = Math.max(1, Number(e));
7028
7008
  if (isNaN(p) || isNaN(o))
7029
7009
  return p;
@@ -7052,7 +7032,7 @@ const An = ({
7052
7032
  extrapolateRight: "clamp",
7053
7033
  easing: i
7054
7034
  });
7055
- }, Qn = (t) => {
7035
+ }, Zn = (t) => {
7056
7036
  if (t == null) return 0;
7057
7037
  if (typeof t == "number")
7058
7038
  return Number.isNaN(t) ? 0 : t;
@@ -7065,7 +7045,7 @@ const An = ({
7065
7045
  const c = parseFloat(String(t.rotation));
7066
7046
  if (!Number.isNaN(c)) return c;
7067
7047
  }
7068
- return t.transform ? Qn(t.transform) : 0;
7048
+ return t.transform ? Zn(t.transform) : 0;
7069
7049
  }
7070
7050
  const r = String(t), n = /rotate\((-?[\d.]+)deg\)/.exec(r);
7071
7051
  if (n)
@@ -7089,7 +7069,7 @@ const An = ({
7089
7069
  let M = c;
7090
7070
  if (M == null || Number.isNaN(M)) {
7091
7071
  const F = t.details;
7092
- M = Qn((F == null ? void 0 : F.rotate) ?? (F == null ? void 0 : F.rotation) ?? (F == null ? void 0 : F.transform));
7072
+ M = Zn((F == null ? void 0 : F.rotate) ?? (F == null ? void 0 : F.rotation) ?? (F == null ? void 0 : F.transform));
7093
7073
  }
7094
7074
  const S = t.delay || 0, $ = t.durationInFrames || 30, k = s ? [n - $ - S, n - S] : [S, S + $], g = W(r, k, [l, b], {
7095
7075
  extrapolateLeft: "clamp",
@@ -7104,7 +7084,7 @@ const An = ({
7104
7084
  transform: `translateX(${Y}px) translateY(${_}px)`
7105
7085
  };
7106
7086
  }
7107
- const i = Vs(r, t, n, s), e = Ws();
7087
+ const i = Ws(r, t, n, s), e = _s();
7108
7088
  return (e[a] || e.default)(i);
7109
7089
  }, kr = (t, r, n, s = !1, c = !1, a) => Vt.useMemo(() => {
7110
7090
  if (t.length === 0) return {};
@@ -7137,7 +7117,7 @@ const An = ({
7137
7117
  }), p),
7138
7118
  {}
7139
7119
  );
7140
- }, [t, n, r, s, a]), nr = (t) => t ? Array.isArray(t) ? t : [t] : [], Cs = ({
7120
+ }, [t, n, r, s, a]), nr = (t) => t ? Array.isArray(t) ? t : [t] : [], Vs = ({
7141
7121
  animationIn: t,
7142
7122
  animationOut: r,
7143
7123
  animationTimed: n,
@@ -7189,7 +7169,7 @@ const An = ({
7189
7169
  k === "transform" ? $[k] = `${$[k] || ""} ${g || ""}`.trim() : k in $ && typeof $[k] == "number" && typeof g == "number" ? $[k] = $[k] * g : $[k] = g;
7190
7170
  }), $;
7191
7171
  }, [d, h, u]), b = yr(() => {
7192
- const $ = l.transform || "", { translateX: k, translateY: g, scale: v, rotation: w, rotateY: N } = Os($);
7172
+ const $ = l.transform || "", { translateX: k, translateY: g, scale: v, rotation: w, rotateY: N } = Cs($);
7193
7173
  return `${w} ${k} ${g} ${v} ${N}`.trim();
7194
7174
  }, [l]), {
7195
7175
  top: y,
@@ -7224,7 +7204,7 @@ const An = ({
7224
7204
  )
7225
7205
  }
7226
7206
  );
7227
- }, Os = (t) => {
7207
+ }, Cs = (t) => {
7228
7208
  let r = "", n = "", s = "scale(1)", c = "", a = "";
7229
7209
  const i = t.match(/translateX\([^)]+\)/g);
7230
7210
  i && (r = i[i.length - 1]);
@@ -7238,12 +7218,12 @@ const An = ({
7238
7218
  return h && (a = h[h.length - 1]), { translateX: r, translateY: n, scale: s, rotation: c, rotateY: a };
7239
7219
  };
7240
7220
  I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.elastic(1), I.elastic(1), I.elastic(1), I.elastic(1), I.linear, I.linear, I.linear, I.linear, I.ease, I.ease, I.ease, I.ease, I.ease, I.ease, I.ease, I.ease, I.ease, I.ease;
7241
- function Kn({
7221
+ function Qn({
7242
7222
  item: t,
7243
7223
  options: r
7244
7224
  }) {
7245
7225
  var R, C, E, Y, _;
7246
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { width: i, height: e, strokeWidth: p, strokeBackground: o, strokeColors: h } = c, { animationIn: d, animationOut: u } = Rt(a, t), { durationInFrames: l } = It(t.display, n), b = i, y = e, x = p, m = b, M = y, S = b, $ = y, k = m + M + S + $;
7226
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { width: i, height: e, strokeWidth: p, strokeBackground: o, strokeColors: h } = c, { animationIn: d, animationOut: u } = Ft(a, t), { durationInFrames: l } = kt(t.display, n), b = i, y = e, x = p, m = b, M = y, S = b, $ = y, k = m + M + S + $;
7247
7227
  let g = 0;
7248
7228
  if (((R = a == null ? void 0 : a.out) == null ? void 0 : R.name) === "progressSquareAnimationOut") {
7249
7229
  const F = (C = a == null ? void 0 : a.out) == null ? void 0 : C.composition[0].durationInFrames, X = Math.max(
@@ -7253,7 +7233,7 @@ function Kn({
7253
7233
  g = Math.min(X / F * 100, 100) / 100, X > F && (g = 1);
7254
7234
  }
7255
7235
  if (((E = a == null ? void 0 : a.in) == null ? void 0 : E.name) === "progressSquareAnimationIn") {
7256
- const { from: F } = It(
7236
+ const { from: F } = kt(
7257
7237
  {
7258
7238
  from: t.display.from,
7259
7239
  to: t.display.to
@@ -7263,7 +7243,7 @@ function Kn({
7263
7243
  P < X ? g = Math.min(P / X * 100, 100) / 100 : ((_ = a == null ? void 0 : a.out) == null ? void 0 : _.name) !== "progressSquareAnimationOut" && (g = 1);
7264
7244
  }
7265
7245
  const v = g * 100 / 100 * k, w = h[0] || "#4A90E2", N = /* @__PURE__ */ f(
7266
- Cs,
7246
+ Vs,
7267
7247
  {
7268
7248
  style: Pt(
7269
7249
  c,
@@ -7275,7 +7255,7 @@ function Kn({
7275
7255
  animationIn: d,
7276
7256
  animationOut: u,
7277
7257
  durationInFrames: l,
7278
- children: /* @__PURE__ */ gt(
7258
+ children: /* @__PURE__ */ xt(
7279
7259
  "div",
7280
7260
  {
7281
7261
  style: {
@@ -7302,7 +7282,7 @@ function Kn({
7302
7282
  }
7303
7283
  }
7304
7284
  ),
7305
- /* @__PURE__ */ gt("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
7285
+ /* @__PURE__ */ xt("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
7306
7286
  /* @__PURE__ */ f(
7307
7287
  "div",
7308
7288
  {
@@ -7367,9 +7347,9 @@ function Kn({
7367
7347
  )
7368
7348
  }
7369
7349
  );
7370
- return $t({ item: t, options: r, children: N });
7350
+ return St({ item: t, options: r, children: N });
7371
7351
  }
7372
- const Jn = (t) => {
7352
+ const Kn = (t) => {
7373
7353
  const { trackItemIds: r, transitionsMap: n, trackItemsMap: s } = t, c = /* @__PURE__ */ new Map();
7374
7354
  Object.values(n).forEach((o) => {
7375
7355
  var l, b;
@@ -7401,58 +7381,58 @@ const Jn = (t) => {
7401
7381
  return a.forEach((o) => {
7402
7382
  o.sort((h, d) => "display" in h && "display" in d ? h.display.from - d.display.from : 0);
7403
7383
  }), a;
7404
- }, zs = (t, r) => {
7384
+ }, Os = (t, r) => {
7405
7385
  switch (t.type) {
7406
7386
  case "text":
7407
- return Bn({ item: t, options: r });
7387
+ return Xn({ item: t, options: r });
7408
7388
  case "caption":
7409
- return fn({ item: t, options: r });
7389
+ return pn({ item: t, options: r });
7410
7390
  case "shape":
7411
- return Nn({ item: t, options: r });
7391
+ return kn({ item: t, options: r });
7412
7392
  case "rect":
7413
- return Gn({ item: t, options: r });
7393
+ return zn({ item: t, options: r });
7414
7394
  case "circle":
7415
- return An({ item: t, options: r });
7395
+ return jn({ item: t, options: r });
7416
7396
  case "triangle":
7417
- return Ln({ item: t, options: r });
7397
+ return An({ item: t, options: r });
7418
7398
  case "star":
7419
- return Hn({ item: t, options: r });
7399
+ return Ln({ item: t, options: r });
7420
7400
  case "polygon":
7421
- return Un({ item: t, options: r });
7401
+ return Hn({ item: t, options: r });
7422
7402
  case "ellipse":
7423
- return Zn({ item: t, options: r });
7403
+ return Un({ item: t, options: r });
7424
7404
  case "video":
7425
- return Pn({ item: t, options: r });
7405
+ return Bn({ item: t, options: r });
7426
7406
  case "audio":
7427
- return pn({ item: t, options: r });
7407
+ return hn({ item: t, options: r });
7428
7408
  case "image":
7429
- return kn({ item: t, options: r });
7409
+ return In({ item: t, options: r });
7430
7410
  case "illustration":
7431
- return yn({ item: t, options: r });
7411
+ return fn({ item: t, options: r });
7432
7412
  case "progressBar":
7433
- return En({ item: t, options: r });
7413
+ return Pn({ item: t, options: r });
7434
7414
  case "linealAudioBars":
7435
- return Wn({ item: t, options: r });
7415
+ return _n({ item: t, options: r });
7436
7416
  case "waveAudioBars":
7437
- return On({ item: t, options: r });
7417
+ return Cn({ item: t, options: r });
7438
7418
  case "hillAudioBars":
7439
- return zn({ item: t, options: r });
7419
+ return On({ item: t, options: r });
7440
7420
  case "progressFrame":
7441
- return Vn({ item: t, options: r });
7421
+ return Wn({ item: t, options: r });
7442
7422
  case "radialAudioBars":
7443
- return Cn({ item: t, options: r });
7423
+ return Vn({ item: t, options: r });
7444
7424
  case "progressSquare":
7445
- return Kn({ item: t, options: r });
7425
+ return Qn({ item: t, options: r });
7446
7426
  default:
7447
7427
  return null;
7448
7428
  }
7449
7429
  };
7450
- function Gs({
7430
+ function zs({
7451
7431
  item: t,
7452
7432
  options: r,
7453
7433
  renderSequenceItem: n
7454
7434
  }) {
7455
- const s = n || zs, {
7435
+ const s = n || Os, {
7456
7436
  editableTextId: c,
7457
7437
  onTextBlur: a,
7458
7438
  handleTextChange: i,
@@ -7464,7 +7444,7 @@ function Gs({
7464
7444
  structure: u,
7465
7445
  frame: l,
7466
7446
  mergedTrackItemsDeatilsMap: b
7467
- } = r, y = or(o || {}), { trim: x, display: m } = t, M = e && e.some((g) => !!y[g]) ? e : Object.keys(y), S = Jn({
7447
+ } = r, y = or(o || {}), { trim: x, display: m } = t, M = e && e.some((g) => !!y[g]) ? e : Object.keys(y), S = Kn({
7468
7448
  trackItemIds: or(M),
7469
7449
  transitionsMap: or(p || {}),
7470
7450
  trackItemsMap: y || {}
@@ -7481,11 +7461,11 @@ function Gs({
7481
7461
  if (!_) return null;
7482
7462
  let F = {}, X = {}, P = [];
7483
7463
  if (_.type === "template") {
7484
- const O = u == null ? void 0 : u.find((A) => A.id === _.id);
7464
+ const O = u == null ? void 0 : u.find((j) => j.id === _.id);
7485
7465
  P = (O == null ? void 0 : O.items) || [];
7486
- for (const A in b)
7487
- O != null && O.items.includes(A) && (X[A] = {
7488
- ...b[A]
7466
+ for (const j in b)
7467
+ O != null && O.items.includes(j) && (X[j] = {
7468
+ ...b[j]
7489
7469
  });
7490
7470
  return s(_, {
7491
7471
  fps: d,
@@ -7495,7 +7475,7 @@ function Gs({
7495
7475
  itemsTemplateIds: P,
7496
7476
  itemsTemplateMap: X,
7497
7477
  transitionsTemplateMap: F,
7498
- itemStructure: u == null ? void 0 : u.find((A) => A.id === _.id),
7478
+ itemStructure: u == null ? void 0 : u.find((j) => j.id === _.id),
7499
7479
  frame: (l ?? 0) - m.from * d / 1e3,
7500
7480
  size: {
7501
7481
  width: ((C = _.details) == null ? void 0 : C.width) || 0,
@@ -7527,7 +7507,7 @@ function Gs({
7527
7507
  const w = y[g[0].id], N = (((Y = w == null ? void 0 : w.display) == null ? void 0 : Y.from) || 0) / 1e3 * r.fps;
7528
7508
  return /* @__PURE__ */ f(dn, { from: N, children: g.map((_) => {
7529
7509
  if (_.type === "transition") {
7530
- const F = _.duration / 1e3 * d, X = oo[_.kind];
7510
+ const F = _.duration / 1e3 * d, X = no[_.kind];
7531
7511
  return X ? X({
7532
7512
  durationInFrames: F,
7533
7513
  id: _.id,
@@ -7546,9 +7526,9 @@ function Gs({
7546
7526
  });
7547
7527
  }) }, v);
7548
7528
  });
7549
- return $t({ children: k, item: t, options: r });
7529
+ return St({ children: k, item: t, options: r });
7550
7530
  }
7551
- function js({
7531
+ function Gs({
7552
7532
  item: t,
7553
7533
  options: r,
7554
7534
  renderSequenceItem: n
@@ -7563,13 +7543,13 @@ function js({
7563
7543
  onTextBlur: p,
7564
7544
  handleTextChange: o,
7565
7545
  itemStructure: h
7566
- } = r, { animations: d } = t, { durationInFrames: u } = It(t.display, i), { animationIn: l, animationOut: b, animationTimed: y } = Rt(
7546
+ } = r, { animations: d } = t, { durationInFrames: u } = kt(t.display, i), { animationIn: l, animationOut: b, animationTimed: y } = Ft(
7567
7547
  d,
7568
7548
  t,
7569
7549
  e,
7570
7550
  i,
7571
7551
  r
7572
- ), x = or(a || {}), M = Jn({
7552
+ ), x = or(a || {}), M = Kn({
7573
7553
  trackItemIds: or(c || []),
7574
7554
  transitionsMap: {},
7575
7555
  trackItemsMap: x
@@ -7639,75 +7619,75 @@ function js({
7639
7619
  )
7640
7620
  }
7641
7621
  );
7642
- return $t({ item: t, options: r, children: k });
7622
+ return St({ item: t, options: r, children: k });
7643
7623
  }
7644
7624
  const en = {
7645
- text: (t, r) => Bn({ item: t, options: r }),
7646
- caption: (t, r) => fn({ item: t, options: r }),
7647
- shape: (t, r) => Nn({ item: t, options: r }),
7648
- rect: (t, r) => Gn({ item: t, options: r }),
7649
- circle: (t, r) => An({ item: t, options: r }),
7650
- triangle: (t, r) => Ln({ item: t, options: r }),
7651
- star: (t, r) => Hn({ item: t, options: r }),
7652
- polygon: (t, r) => Un({ item: t, options: r }),
7653
- ellipse: (t, r) => Zn({ item: t, options: r }),
7654
- video: (t, r) => Pn({ item: t, options: r }),
7655
- audio: (t, r) => pn({ item: t, options: r }),
7656
- image: (t, r) => kn({ item: t, options: r }),
7657
- template: (t, r) => Gs({
7625
+ text: (t, r) => Xn({ item: t, options: r }),
7626
+ caption: (t, r) => pn({ item: t, options: r }),
7627
+ shape: (t, r) => kn({ item: t, options: r }),
7628
+ rect: (t, r) => zn({ item: t, options: r }),
7629
+ circle: (t, r) => jn({ item: t, options: r }),
7630
+ triangle: (t, r) => An({ item: t, options: r }),
7631
+ star: (t, r) => Ln({ item: t, options: r }),
7632
+ polygon: (t, r) => Hn({ item: t, options: r }),
7633
+ ellipse: (t, r) => Un({ item: t, options: r }),
7634
+ video: (t, r) => Bn({ item: t, options: r }),
7635
+ audio: (t, r) => hn({ item: t, options: r }),
7636
+ image: (t, r) => In({ item: t, options: r }),
7637
+ template: (t, r) => zs({
7658
7638
  item: t,
7659
7639
  options: r,
7660
7640
  renderSequenceItem: (n, s) => en[n.type](n, s)
7661
7641
  }),
7662
- illustration: (t, r) => yn({ item: t, options: r }),
7663
- progressBar: (t, r) => En({ item: t, options: r }),
7664
- linealAudioBars: (t, r) => Wn({ item: t, options: r }),
7665
- waveAudioBars: (t, r) => On({ item: t, options: r }),
7666
- hillAudioBars: (t, r) => zn({ item: t, options: r }),
7667
- progressFrame: (t, r) => Vn({ item: t, options: r }),
7668
- radialAudioBars: (t, r) => Cn({ item: t, options: r }),
7669
- progressSquare: (t, r) => Kn({ item: t, options: r }),
7670
- composition: (t, r) => js({
7642
+ illustration: (t, r) => fn({ item: t, options: r }),
7643
+ progressBar: (t, r) => Pn({ item: t, options: r }),
7644
+ linealAudioBars: (t, r) => _n({ item: t, options: r }),
7645
+ waveAudioBars: (t, r) => Cn({ item: t, options: r }),
7646
+ hillAudioBars: (t, r) => On({ item: t, options: r }),
7647
+ progressFrame: (t, r) => Wn({ item: t, options: r }),
7648
+ radialAudioBars: (t, r) => Vn({ item: t, options: r }),
7649
+ progressSquare: (t, r) => Qn({ item: t, options: r }),
7650
+ composition: (t, r) => Gs({
7671
7651
  item: t,
7672
7652
  options: r,
7673
7653
  renderSequenceItem: (n, s) => en[n.type](n, s)
7674
7654
  })
7675
7655
  };
7676
7656
  export {
7677
- pn as Audio,
7678
- $t as BaseSequence,
7679
- fn as Caption,
7680
- An as Circle,
7681
- js as Composition,
7682
- Zn as Ellipse,
7683
- zn as HillAudioBars,
7684
- yn as Illustration,
7685
- kn as Image,
7686
- Wn as LinealAudioBars,
7687
- Un as Polygon,
7688
- En as ProgressBar,
7689
- Vn as ProgressFrame,
7690
- Kn as ProgressSquare,
7691
- Cn as RadialAudioBars,
7692
- Gn as Rect,
7657
+ hn as Audio,
7658
+ St as BaseSequence,
7659
+ pn as Caption,
7660
+ jn as Circle,
7661
+ Gs as Composition,
7662
+ Un as Ellipse,
7663
+ On as HillAudioBars,
7664
+ fn as Illustration,
7665
+ In as Image,
7666
+ _n as LinealAudioBars,
7667
+ Hn as Polygon,
7668
+ Pn as ProgressBar,
7669
+ Wn as ProgressFrame,
7670
+ Qn as ProgressSquare,
7671
+ Vn as RadialAudioBars,
7672
+ zn as Rect,
7693
7673
  _r as SafeHtmlInCanvas,
7694
7674
  en as SequenceItem,
7695
- Nn as Shape,
7696
- Hn as Star,
7697
- Gs as Template,
7698
- Bn as Text,
7699
- Ln as Triangle,
7700
- Pn as Video,
7701
- On as WaveAudioBars,
7702
- hn as calculateBorderOverlayStyles,
7703
- mo as calculateContainerFigureStyles,
7675
+ kn as Shape,
7676
+ Ln as Star,
7677
+ zs as Template,
7678
+ Xn as Text,
7679
+ An as Triangle,
7680
+ Bn as Video,
7681
+ Cn as WaveAudioBars,
7682
+ ea as calculateBorderOverlayStyles,
7683
+ go as calculateContainerFigureStyles,
7704
7684
  Pt as calculateContainerStyles,
7705
- go as calculateCropStyles,
7685
+ vo as calculateCropStyles,
7706
7686
  ln as calculateMediaStyles,
7707
7687
  Dt as calculateTextStyles,
7708
7688
  Cr as getAnimatedRemotionEffects,
7709
- Rt as getAnimations,
7710
- xn as getEffectsCssInfo,
7711
- Jn as groupTrackItems,
7689
+ Ft as getAnimations,
7690
+ mn as getEffectsCssInfo,
7691
+ Kn as groupTrackItems,
7712
7692
  Vr as mapRemotionEffects
7713
7693
  };