@cliquify.me/elements-ui 8.0.12 → 8.0.13

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 +566 -550
  2. package/package.json +6 -6
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var qn = Object.defineProperty;
2
2
  var Tn = (t, r, n) => r in t ? qn(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
3
3
  var Bt = (t, r, n) => Tn(t, typeof r != "symbol" ? r + "" : r, n);
4
4
  import { jsx as f, jsxs as bt, Fragment as kt } from "react/jsx-runtime";
5
- import { Sequence as sn, AbsoluteFill as Nr, Audio as an, Easing as I, interpolate as _, HtmlInCanvas as Dn, useCurrentFrame as Nt, OffthreadVideo as sr, Img as qt, useVideoConfig as cn, delayRender as to, continueRender as jr, cancelRender as ro, spring as Mt, random as no } from "remotion";
5
+ import { Sequence as sn, AbsoluteFill as Nr, Audio as an, Easing as k, interpolate as _, HtmlInCanvas as Dn, useCurrentFrame as Nt, OffthreadVideo as sr, Img as qt, useVideoConfig as cn, delayRender as to, continueRender as jr, cancelRender as ro, spring as Mt, random as no } from "remotion";
6
6
  import { TransitionSeries as dn, Transitions as oo } from "@cliquify.me/transitions";
7
7
  import { BoxAnim as Gt, ContentAnim as At, MaskAnim as Tt } from "@cliquify.me/animations";
8
8
  import un from "@emotion/styled";
@@ -150,7 +150,7 @@ const wt = (t, r) => {
150
150
  options: r,
151
151
  children: n
152
152
  }) => {
153
- var y, v, x, g;
153
+ var y, v, $, g;
154
154
  const { details: s } = t, { fps: c, isTransition: a } = r, { from: i, durationInFrames: o } = wt(
155
155
  {
156
156
  from: t.display.from,
@@ -163,8 +163,8 @@ const wt = (t, r) => {
163
163
  }, e = ((y = s == null ? void 0 : s.background) == null ? void 0 : y.type) === "color" ? (v = s == null ? void 0 : s.background) == null ? void 0 : v.value : typeof (s == null ? void 0 : s.background) == "string" ? s == null ? void 0 : s.background : "transparent", l = ["template", "composition"].includes(t.type), p = ["image", "video"].includes(t.type), d = ["text", "caption"].includes(t.type);
164
164
  let u = Ct(s, h, { background: e });
165
165
  if (p) {
166
- const { background: m, ...$ } = u;
167
- u = $;
166
+ const { background: m, ...x } = u;
167
+ u = x;
168
168
  }
169
169
  d && (delete u.boxShadow, delete u.filter);
170
170
  const b = l ? "!pointer-events-auto" : "";
@@ -234,7 +234,7 @@ const wt = (t, r) => {
234
234
  boxShadow: "",
235
235
  overflow: "visible",
236
236
  visibility: s.visibility,
237
- background: t.type === "text" ? "transparent" : t.type === "template" && ((g = (x = t.details) == null ? void 0 : x.background) == null ? void 0 : g.value) || "transparent",
237
+ background: t.type === "text" ? "transparent" : t.type === "template" && ((g = ($ = t.details) == null ? void 0 : $.background) == null ? void 0 : g.value) || "transparent",
238
238
  pointerEvents: t.type === "audio" ? "none" : "auto"
239
239
  },
240
240
  children: n
@@ -263,17 +263,17 @@ function hn({
263
263
  );
264
264
  return gt({ item: t, options: r, children: a });
265
265
  }
266
- const Ft = (t, r, n, s, c) => {
266
+ const Yt = (t, r, n, s, c) => {
267
267
  let a = null, i = null, o = null, h = null;
268
268
  return c != null && c.isAnimationEditor || c != null && c.insideTemplate, t != null && t.in && (a = [], t.in.composition.forEach((e) => {
269
- var b, y, v, x, g;
269
+ var b, y, v, $, g;
270
270
  a.push({
271
271
  id: e.id,
272
272
  property: e.property,
273
273
  from: Number(e.from || 0),
274
274
  to: Number(e.to || 0),
275
275
  durationInFrames: e.durationInFrames,
276
- ease: e.ease || I.linear,
276
+ ease: e.ease || k.linear,
277
277
  delay: e.delay,
278
278
  persist: e.persist,
279
279
  details: e.details
@@ -286,7 +286,7 @@ const Ft = (t, r, n, s, c) => {
286
286
  from: m,
287
287
  to: 0,
288
288
  durationInFrames: e.durationInFrames,
289
- ease: e.ease || I[e.easing] || I.linear,
289
+ ease: e.ease || k[e.easing] || k.linear,
290
290
  delay: e.delay,
291
291
  persist: e.persist
292
292
  });
@@ -298,7 +298,7 @@ const Ft = (t, r, n, s, c) => {
298
298
  from: m,
299
299
  to: 0,
300
300
  durationInFrames: e.durationInFrames,
301
- ease: e.ease || I[e.easing] || I.linear,
301
+ ease: e.ease || k[e.easing] || k.linear,
302
302
  delay: e.delay,
303
303
  persist: e.persist
304
304
  });
@@ -308,18 +308,18 @@ const Ft = (t, r, n, s, c) => {
308
308
  from: 0,
309
309
  to: 1,
310
310
  durationInFrames: e.durationInFrames,
311
- ease: e.ease || I[e.easing] || I.linear,
311
+ ease: e.ease || k[e.easing] || k.linear,
312
312
  delay: e.delay,
313
313
  persist: e.persist
314
314
  }), e.property === "spinIn" || e.property === "spinOut" || e.property === "spin" || e.property === "twistIn" || e.property === "twistOut" || !!(e.id && e.id.includes("spin"))) {
315
- const m = ((x = e.details) == null ? void 0 : x.scale) !== !1, $ = e.property === "twistIn" || e.property === "twistOut";
315
+ const m = (($ = e.details) == null ? void 0 : $.scale) !== !1, x = e.property === "twistIn" || e.property === "twistOut";
316
316
  m && a.push({
317
317
  id: `${e.id}-scale`,
318
318
  property: "scale",
319
- from: $ ? 1.5 : 0,
319
+ from: x ? 1.5 : 0,
320
320
  to: 1,
321
321
  durationInFrames: e.durationInFrames,
322
- ease: e.ease || I[e.easing] || I.linear,
322
+ ease: e.ease || k[e.easing] || k.linear,
323
323
  delay: e.delay,
324
324
  persist: e.persist
325
325
  }), ((g = e.details) == null ? void 0 : g.fade) !== !1 && a.push({
@@ -328,20 +328,20 @@ const Ft = (t, r, n, s, c) => {
328
328
  from: 0,
329
329
  to: 1,
330
330
  durationInFrames: e.durationInFrames,
331
- ease: e.ease || I[e.easing] || I.linear,
331
+ ease: e.ease || k[e.easing] || k.linear,
332
332
  delay: e.delay,
333
333
  persist: e.persist
334
334
  });
335
335
  }
336
336
  })), t != null && t.out && (i = [], t.out.composition.forEach((e) => {
337
- var b, y, v, x, g;
337
+ var b, y, v, $, g;
338
338
  i.push({
339
339
  id: e.id,
340
340
  property: e.property,
341
341
  from: Number(e.from || 0),
342
342
  to: Number(e.to || 0),
343
343
  durationInFrames: e.durationInFrames,
344
- ease: e.ease || I.linear,
344
+ ease: e.ease || k.linear,
345
345
  delay: e.delay,
346
346
  persist: e.persist,
347
347
  details: e.details
@@ -350,7 +350,7 @@ const Ft = (t, r, n, s, c) => {
350
350
  from: 1,
351
351
  to: 0,
352
352
  durationInFrames: e.durationInFrames,
353
- ease: e.ease || I[e.easing] || I.linear,
353
+ ease: e.ease || k[e.easing] || k.linear,
354
354
  delay: e.delay,
355
355
  persist: e.persist
356
356
  });
@@ -362,7 +362,7 @@ const Ft = (t, r, n, s, c) => {
362
362
  from: 0,
363
363
  to: -m,
364
364
  durationInFrames: e.durationInFrames,
365
- ease: e.ease || I[e.easing] || I.linear,
365
+ ease: e.ease || k[e.easing] || k.linear,
366
366
  delay: e.delay,
367
367
  persist: e.persist
368
368
  });
@@ -374,20 +374,20 @@ const Ft = (t, r, n, s, c) => {
374
374
  from: 0,
375
375
  to: -m,
376
376
  durationInFrames: e.durationInFrames,
377
- ease: e.ease || I[e.easing] || I.linear,
377
+ ease: e.ease || k[e.easing] || k.linear,
378
378
  delay: e.delay,
379
379
  persist: e.persist
380
380
  });
381
381
  }
382
382
  if (p) {
383
- const m = ((x = e.details) == null ? void 0 : x.scale) !== !1, $ = e.property === "twistIn" || e.property === "twistOut";
383
+ const m = (($ = e.details) == null ? void 0 : $.scale) !== !1, x = e.property === "twistIn" || e.property === "twistOut";
384
384
  m && i.push({
385
385
  id: `${e.id}-scale`,
386
386
  property: "scale",
387
387
  from: 1,
388
- to: $ ? 1.5 : 0,
388
+ to: x ? 1.5 : 0,
389
389
  durationInFrames: e.durationInFrames,
390
- ease: e.ease || I[e.easing] || I.linear,
390
+ ease: e.ease || k[e.easing] || k.linear,
391
391
  delay: e.delay,
392
392
  persist: e.persist
393
393
  }), ((g = e.details) == null ? void 0 : g.fade) !== !1 && i.push({
@@ -396,7 +396,7 @@ const Ft = (t, r, n, s, c) => {
396
396
  from: 1,
397
397
  to: 0,
398
398
  durationInFrames: e.durationInFrames,
399
- ease: e.ease || I[e.easing] || I.linear,
399
+ ease: e.ease || k[e.easing] || k.linear,
400
400
  delay: e.delay,
401
401
  persist: e.persist
402
402
  });
@@ -408,7 +408,7 @@ const Ft = (t, r, n, s, c) => {
408
408
  from: Number(e.from || 0),
409
409
  to: Number(e.to || 0),
410
410
  durationInFrames: e.durationInFrames,
411
- ease: e.ease || I.linear,
411
+ ease: e.ease || k.linear,
412
412
  delay: e.delay,
413
413
  persist: e.persist,
414
414
  details: e.details
@@ -422,7 +422,7 @@ const Ft = (t, r, n, s, c) => {
422
422
  from: Number(e.from || 0),
423
423
  to: Number(e.to || 0),
424
424
  durationInFrames: e.durationInFrames,
425
- ease: I[e.easing] || e.ease || I.linear,
425
+ ease: k[e.easing] || e.ease || k.linear,
426
426
  delay: e.delay,
427
427
  persist: e.persist,
428
428
  details: e.details
@@ -433,7 +433,7 @@ const Ft = (t, r, n, s, c) => {
433
433
  from: 0,
434
434
  to: 1,
435
435
  durationInFrames: e.durationInFrames,
436
- ease: I[e.easing] || e.ease || I.linear,
436
+ ease: k[e.easing] || e.ease || k.linear,
437
437
  delay: e.delay,
438
438
  persist: e.persist
439
439
  });
@@ -533,21 +533,21 @@ const Ft = (t, r, n, s, c) => {
533
533
  fps: h,
534
534
  textDecoration: e
535
535
  }) => {
536
- const { start: l, end: p } = t, d = (l + r) / 1e3 * h, u = (p + r) / 1e3 * h, b = o >= d && o < u, y = o >= d, v = b ? n : y ? c : a, x = wo.includes(i) && b ? 1.2 : 1, g = t.word.length, m = u - d;
536
+ const { start: l, end: p } = t, d = (l + r) / 1e3 * h, u = (p + r) / 1e3 * h, b = o >= d && o < u, y = o >= d, v = b ? n : y ? c : a, $ = wo.includes(i) && b ? 1.2 : 1, g = t.word.length, m = u - d;
537
537
  return /* @__PURE__ */ f(
538
538
  $o,
539
539
  {
540
540
  isActive: b,
541
541
  activeFillColor: s,
542
- scale: x,
542
+ scale: $,
543
543
  animation: i,
544
544
  textDecoration: e,
545
- children: /* @__PURE__ */ f(So, { wordColor: v, children: t.word.split("").map(($, N) => {
546
- const k = m / g, w = d + N * k, S = w + k;
547
- let M = 1, F = !0;
548
- return Mo.includes(i) && (F = o >= w), i === "letterTracy" && (M = _(
545
+ children: /* @__PURE__ */ f(So, { wordColor: v, children: t.word.split("").map((x, N) => {
546
+ const I = m / g, S = d + N * I, M = S + I;
547
+ let w = 1, Y = !0;
548
+ return Mo.includes(i) && (Y = o >= S), i === "letterTracy" && (w = _(
549
549
  o,
550
- [w, S],
550
+ [S, M],
551
551
  [0, 1],
552
552
  {
553
553
  extrapolateLeft: "clamp",
@@ -557,13 +557,13 @@ const Ft = (t, r, n, s, c) => {
557
557
  "span",
558
558
  {
559
559
  style: {
560
- opacity: M,
561
- visibility: F ? "visible" : "hidden",
560
+ opacity: w,
561
+ visibility: Y ? "visible" : "hidden",
562
562
  display: "inline",
563
563
  textDecoration: "inherit",
564
564
  color: "inherit"
565
565
  },
566
- children: $
566
+ children: x
567
567
  },
568
568
  N
569
569
  );
@@ -575,7 +575,7 @@ function fn({
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: o, animationOut: h, animationTimed: e } = Ft(
578
+ const { fps: n, frame: s } = r, { details: c, display: a, animations: i } = t, { animationIn: o, animationOut: h, animationTimed: e } = Yt(
579
579
  i,
580
580
  t,
581
581
  s,
@@ -603,21 +603,21 @@ function fn({
603
603
  );
604
604
  break;
605
605
  }
606
- const x = {
606
+ const $ = {
607
607
  ...v.translateX !== void 0 && v.translateY !== void 0 && {
608
608
  transform: `translate(${v.translateX}px, ${v.translateY}px)`
609
609
  },
610
610
  ...v.scale !== void 0 && {
611
611
  transform: `scale(${v.scale})`
612
612
  }
613
- }, g = (s || 0) - t.display.from * n / 1e3, { boxShadow: m, ...$ } = Ct(c), { color: N, textShadow: k, ...w } = Dt(c);
613
+ }, g = (s || 0) - t.display.from * n / 1e3, { boxShadow: m, ...x } = Ct(c), { color: N, textShadow: I, ...S } = Dt(c);
614
614
  return gt({
615
615
  item: t,
616
616
  options: r,
617
617
  children: /* @__PURE__ */ f(
618
618
  Gt,
619
619
  {
620
- style: $,
620
+ style: x,
621
621
  animationIn: o,
622
622
  animationOut: h,
623
623
  frame: g,
@@ -633,15 +633,15 @@ function fn({
633
633
  {
634
634
  "data-text-id": t.id,
635
635
  style: {
636
- ...w,
637
- ...x,
636
+ ...S,
637
+ ...$,
638
638
  display: "block",
639
639
  textAlign: c.textAlign || "center",
640
640
  boxShadow: "none",
641
- textShadow: k || "none",
641
+ textShadow: I || "none",
642
642
  transition: "transform 0.2s ease"
643
643
  },
644
- children: d.map((S, M) => /* @__PURE__ */ f(
644
+ children: d.map((M, w) => /* @__PURE__ */ f(
645
645
  Io,
646
646
  {
647
647
  color: c.color,
@@ -650,12 +650,12 @@ function fn({
650
650
  activeFillColor: c.activeFillColor || "transparent",
651
651
  offsetFrom: b,
652
652
  animation: c.animation || "",
653
- word: S,
653
+ word: M,
654
654
  currentFrame: r.frame || 0,
655
655
  fps: n,
656
656
  textDecoration: c.textDecoration
657
657
  },
658
- M
658
+ w
659
659
  ))
660
660
  }
661
661
  )
@@ -670,7 +670,7 @@ const yn = ({
670
670
  options: r
671
671
  }) => {
672
672
  var d, u, b, y;
673
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: o, animationTimed: h } = Ft(
673
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: o, animationTimed: h } = Yt(
674
674
  a,
675
675
  t,
676
676
  s,
@@ -758,7 +758,7 @@ const bn = ({
758
758
  marqueeDetails: u,
759
759
  effects: b
760
760
  }) => {
761
- const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, x = Math.max(0, v - (s || 0)), g = Math.min(1, Math.max(0, x / (c || 1))), m = o || 300, $ = h || 300, N = (u == null ? void 0 : u.direction) || "horizontal", k = N === "static", w = Math.min(15, Math.max(1, Number((u == null ? void 0 : u.repeatX) ?? 5))), S = Math.min(15, Math.max(1, Number((u == null ? void 0 : u.repeatY) ?? 5))), M = (u == null ? void 0 : u.baseSpeed) !== void 0 ? Number(u.baseSpeed) : 2, F = (u == null ? void 0 : u.speedVariation) !== void 0 ? Number(u.speedVariation) : 0.5, R = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialBaseSpeed) !== void 0 ? Number(u.initialBaseSpeed) : M, X = u != null && u.hasInitialValue ? R + (M - R) * g : M, P = k ? 0 : X * 400, B = k ? 0 : X * 400, V = (u == null ? void 0 : u.scaleFactor) !== void 0 ? Number(u.scaleFactor) : 1, Y = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialScaleFactor) !== void 0 ? Number(u.initialScaleFactor) : V, W = u != null && u.hasInitialValue ? Y + (V - Y) * g : V, U = (u == null ? void 0 : u.lineOffset) !== void 0 ? Number(u.lineOffset) : 0.5, z = (u == null ? void 0 : u.gapX) !== void 0 ? Number(u.gapX) : 60, D = (u == null ? void 0 : u.gapY) !== void 0 ? Number(u.gapY) : 60, dt = z / 100 * m, et = D / 100 * $, K = m, nt = $, j = K * W + dt, Q = nt * W + et, pt = d ? typeof d == "string" ? d : `${d.x ?? 0}px ${d.y ?? 0}px ${d.blur ?? 0}px ${d.color ?? ""}` : void 0, C = N === "vertical" || N === "up" || N === "down", G = N === "diagonal", T = (w - 1) / 2, lt = (S - 1) / 2, q = S, Z = w, at = Array.from({ length: q }, (rt, ct) => ct - lt), tt = Array.from({ length: Z }, (rt, ct) => ct - T), yt = (rt, ct, st, ut) => /* @__PURE__ */ f(
761
+ const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, $ = Math.max(0, v - (s || 0)), g = Math.min(1, Math.max(0, $ / (c || 1))), m = o || 300, x = h || 300, N = (u == null ? void 0 : u.direction) || "horizontal", I = N === "static", S = Math.min(15, Math.max(1, Number((u == null ? void 0 : u.repeatX) ?? 5))), M = Math.min(15, Math.max(1, Number((u == null ? void 0 : u.repeatY) ?? 5))), w = (u == null ? void 0 : u.baseSpeed) !== void 0 ? Number(u.baseSpeed) : 2, Y = (u == null ? void 0 : u.speedVariation) !== void 0 ? Number(u.speedVariation) : 0.5, R = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialBaseSpeed) !== void 0 ? Number(u.initialBaseSpeed) : w, X = u != null && u.hasInitialValue ? R + (w - R) * g : w, P = I ? 0 : X * 400, B = I ? 0 : X * 400, V = (u == null ? void 0 : u.scaleFactor) !== void 0 ? Number(u.scaleFactor) : 1, F = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialScaleFactor) !== void 0 ? Number(u.initialScaleFactor) : V, W = u != null && u.hasInitialValue ? F + (V - F) * g : V, U = (u == null ? void 0 : u.lineOffset) !== void 0 ? Number(u.lineOffset) : 0.5, z = (u == null ? void 0 : u.gapX) !== void 0 ? Number(u.gapX) : 60, D = (u == null ? void 0 : u.gapY) !== void 0 ? Number(u.gapY) : 60, dt = z / 100 * m, et = D / 100 * x, K = m, nt = x, j = K * W + dt, Q = nt * W + et, pt = d ? typeof d == "string" ? d : `${d.x ?? 0}px ${d.y ?? 0}px ${d.blur ?? 0}px ${d.color ?? ""}` : void 0, C = N === "vertical" || N === "up" || N === "down", G = N === "diagonal", T = (S - 1) / 2, lt = (M - 1) / 2, q = M, Z = S, at = Array.from({ length: q }, (rt, ct) => ct - lt), tt = Array.from({ length: Z }, (rt, ct) => ct - T), yt = (rt, ct, st, ut) => /* @__PURE__ */ f(
762
762
  "div",
763
763
  {
764
764
  style: {
@@ -837,7 +837,7 @@ const bn = ({
837
837
  children: tt.map((rt, ct) => {
838
838
  let st = ct % 2 === 0 ? 1 : -1;
839
839
  N === "up" && (st = -1), N === "down" && (st = 1);
840
- const ut = 1 + ct % 2 * (F * 0.5), ht = B > 0 && st !== 0 ? st * (x * B * 0.1 * ut) + rt * (Q * U) : rt * (Q * U), vt = B === 0 || st === 0 ? 0 : (ht % Q + Q) % Q - Q / 2;
840
+ const ut = 1 + ct % 2 * (Y * 0.5), ht = B > 0 && st !== 0 ? st * ($ * B * 0.1 * ut) + rt * (Q * U) : rt * (Q * U), vt = B === 0 || st === 0 ? 0 : (ht % Q + Q) % Q - Q / 2;
841
841
  return at.map(($t, It) => {
842
842
  const ft = rt * j, St = $t * Q + vt;
843
843
  return yt(
@@ -860,11 +860,11 @@ const bn = ({
860
860
  borderRadius: e || 0
861
861
  },
862
862
  children: at.map((rt, ct) => {
863
- const st = ct % 2 === 0 ? 1 : -1, ut = ct % 2 === 0 ? 1 : -1, ht = 1 + ct % 2 * (F * 0.5), vt = P > 0 ? st * (x * P * 0.1 * ht) + rt * (j * U) : rt * (j * U), $t = P === 0 ? 0 : (vt % j + j) % j - j / 2, It = B > 0 ? ut * (x * B * 0.1 * ht) + rt * (Q * U) : rt * (Q * U), ft = B === 0 ? 0 : (It % Q + Q) % Q - Q / 2;
864
- return tt.map((St, Yt) => {
863
+ const st = ct % 2 === 0 ? 1 : -1, ut = ct % 2 === 0 ? 1 : -1, ht = 1 + ct % 2 * (Y * 0.5), vt = P > 0 ? st * ($ * P * 0.1 * ht) + rt * (j * U) : rt * (j * U), $t = P === 0 ? 0 : (vt % j + j) % j - j / 2, It = B > 0 ? ut * ($ * B * 0.1 * ht) + rt * (Q * U) : rt * (Q * U), ft = B === 0 ? 0 : (It % Q + Q) % Q - Q / 2;
864
+ return tt.map((St, Ft) => {
865
865
  const Rt = St * j + $t, Xt = rt * Q + ft;
866
866
  return yt(
867
- `d-${ct}-${Yt}`,
867
+ `d-${ct}-${Ft}`,
868
868
  Rt,
869
869
  Xt,
870
870
  St === 0 && rt === 0
@@ -885,7 +885,7 @@ const bn = ({
885
885
  children: at.map((rt, ct) => {
886
886
  let st = ct % 2 === 0 ? 1 : -1;
887
887
  N === "left" && (st = -1), N === "right" && (st = 1);
888
- const ut = 1 + ct % 2 * (F * 0.5), ht = P > 0 && st !== 0 ? st * (x * P * 0.1 * ut) + rt * (j * U) : rt * (j * U), vt = P === 0 || st === 0 ? 0 : (ht % j + j) % j - j / 2;
888
+ const ut = 1 + ct % 2 * (Y * 0.5), ht = P > 0 && st !== 0 ? st * ($ * P * 0.1 * ut) + rt * (j * U) : rt * (j * U), vt = P === 0 || st === 0 ? 0 : (ht % j + j) % j - j / 2;
889
889
  return tt.map(($t, It) => {
890
890
  const ft = $t * j + vt, St = rt * Q;
891
891
  return yt(
@@ -915,10 +915,10 @@ const bn = ({
915
915
  echoesDetails: u,
916
916
  effects: b
917
917
  }) => {
918
- const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, x = o || 300, g = h || 300, m = (u == null ? void 0 : u.keepStill) || "both", $ = Number((u == null ? void 0 : u.toRepeatCount) ?? 5), N = Number((u == null ? void 0 : u.toScaleDown) ?? 0.3), k = Number((u == null ? void 0 : u.toCenterX) ?? 0.5), w = Number((u == null ? void 0 : u.toCenterY) ?? 0.5), S = (u == null ? void 0 : u.initialRepeatCount) !== void 0 ? Number(u.initialRepeatCount) : $, M = (u == null ? void 0 : u.initialScaleDown) !== void 0 ? Number(u.initialScaleDown) : 1, F = (u == null ? void 0 : u.initialCenterX) !== void 0 ? Number(u.initialCenterX) : k, R = (u == null ? void 0 : u.initialCenterY) !== void 0 ? Number(u.initialCenterY) : w, X = Math.max(0, v - (s || 0)), P = Math.min(1, Math.max(0, X / (c || 1)));
918
+ const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, $ = o || 300, g = h || 300, m = (u == null ? void 0 : u.keepStill) || "both", x = Number((u == null ? void 0 : u.toRepeatCount) ?? 5), N = Number((u == null ? void 0 : u.toScaleDown) ?? 0.3), I = Number((u == null ? void 0 : u.toCenterX) ?? 0.5), S = Number((u == null ? void 0 : u.toCenterY) ?? 0.5), M = (u == null ? void 0 : u.initialRepeatCount) !== void 0 ? Number(u.initialRepeatCount) : x, w = (u == null ? void 0 : u.initialScaleDown) !== void 0 ? Number(u.initialScaleDown) : 1, Y = (u == null ? void 0 : u.initialCenterX) !== void 0 ? Number(u.initialCenterX) : I, R = (u == null ? void 0 : u.initialCenterY) !== void 0 ? Number(u.initialCenterY) : S, X = Math.max(0, v - (s || 0)), P = Math.min(1, Math.max(0, X / (c || 1)));
919
919
  let V = a + (i - a) * P;
920
920
  m === "initial" ? V = 0 : m === "final" && (V = 1);
921
- const Y = Math.max(1, Math.round(_(V, [0, 1], [S, $]))), W = _(V, [0, 1], [M, N]), U = _(V, [0, 1], [F, k]), z = _(V, [0, 1], [R, w]), D = d ? typeof d == "string" ? d : `${d.x ?? 0}px ${d.y ?? 0}px ${d.blur ?? 0}px ${d.color ?? ""}` : void 0, dt = Array.from({ length: Y }, (et, K) => K);
921
+ const F = Math.max(1, Math.round(_(V, [0, 1], [M, x]))), W = _(V, [0, 1], [w, N]), U = _(V, [0, 1], [Y, I]), z = _(V, [0, 1], [R, S]), D = d ? typeof d == "string" ? d : `${d.x ?? 0}px ${d.y ?? 0}px ${d.blur ?? 0}px ${d.color ?? ""}` : void 0, dt = Array.from({ length: F }, (et, K) => K);
922
922
  return /* @__PURE__ */ f(
923
923
  "div",
924
924
  {
@@ -930,7 +930,7 @@ const bn = ({
930
930
  borderRadius: e || 0
931
931
  },
932
932
  children: dt.map((et) => {
933
- const K = Y > 1 ? et / (Y - 1) : 0, nt = 1 - K * (1 - Math.max(0.01, W)), j = (U - 0.5) * x * K, Q = (z - 0.5) * g * K;
933
+ const K = F > 1 ? et / (F - 1) : 0, nt = 1 - K * (1 - Math.max(0.01, W)), j = (U - 0.5) * $ * K, Q = (z - 0.5) * g * K;
934
934
  return /* @__PURE__ */ f(
935
935
  "div",
936
936
  {
@@ -938,7 +938,7 @@ const bn = ({
938
938
  position: "absolute",
939
939
  left: "50%",
940
940
  top: "50%",
941
- width: `${x}px`,
941
+ width: `${$}px`,
942
942
  height: `${g}px`,
943
943
  transform: `translate(-50%, -50%) translate(${j}px, ${Q}px) scale(${nt})`,
944
944
  transformOrigin: "center center",
@@ -1017,7 +1017,7 @@ const bn = ({
1017
1017
  wiggleDetails: u,
1018
1018
  effects: b
1019
1019
  }) => {
1020
- const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, x = o || 300, g = h || 300, m = Number((u == null ? void 0 : u.wiggleX) ?? 20), $ = Number((u == null ? void 0 : u.wiggleY) ?? 20), N = Number((u == null ? void 0 : u.speed) ?? 3), k = Number((u == null ? void 0 : u.angle) ?? 10), w = Number((u == null ? void 0 : u.seed) ?? 1), S = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialWiggleX) !== void 0 ? Number(u.initialWiggleX) : m, M = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialWiggleY) !== void 0 ? Number(u.initialWiggleY) : $, F = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialSpeed) !== void 0 ? Number(u.initialSpeed) : N, R = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialAngle) !== void 0 ? Number(u.initialAngle) : k, X = Math.max(0, v - (s || 0)), P = Math.min(1, Math.max(0, X / (c || 1))), B = u != null && u.hasInitialValue ? S + (m - S) * P : m, V = u != null && u.hasInitialValue ? M + ($ - M) * P : $, Y = u != null && u.hasInitialValue ? F + (N - F) * P : N, W = u != null && u.hasInitialValue ? R + (k - R) * P : k, U = v * (Y * 0.08), z = w * 12.345, D = Math.sin(U + z) * Math.cos(U * 0.65 + z) * B, dt = Math.cos(U * 0.85 + z) * Math.sin(U * 1.15 + z) * V, et = Math.sin(U * 0.9 + z * 1.35) * W, K = d ? typeof d == "string" ? d : `${d.x ?? 0}px ${d.y ?? 0}px ${d.blur ?? 0}px ${d.color ?? ""}` : void 0;
1020
+ const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, $ = o || 300, g = h || 300, m = Number((u == null ? void 0 : u.wiggleX) ?? 20), x = Number((u == null ? void 0 : u.wiggleY) ?? 20), N = Number((u == null ? void 0 : u.speed) ?? 3), I = Number((u == null ? void 0 : u.angle) ?? 10), S = Number((u == null ? void 0 : u.seed) ?? 1), M = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialWiggleX) !== void 0 ? Number(u.initialWiggleX) : m, w = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialWiggleY) !== void 0 ? Number(u.initialWiggleY) : x, Y = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialSpeed) !== void 0 ? Number(u.initialSpeed) : N, R = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialAngle) !== void 0 ? Number(u.initialAngle) : I, X = Math.max(0, v - (s || 0)), P = Math.min(1, Math.max(0, X / (c || 1))), B = u != null && u.hasInitialValue ? M + (m - M) * P : m, V = u != null && u.hasInitialValue ? w + (x - w) * P : x, F = u != null && u.hasInitialValue ? Y + (N - Y) * P : N, W = u != null && u.hasInitialValue ? R + (I - R) * P : I, U = v * (F * 0.08), z = S * 12.345, D = Math.sin(U + z) * Math.cos(U * 0.65 + z) * B, dt = Math.cos(U * 0.85 + z) * Math.sin(U * 1.15 + z) * V, et = Math.sin(U * 0.9 + z * 1.35) * W, K = d ? typeof d == "string" ? d : `${d.x ?? 0}px ${d.y ?? 0}px ${d.blur ?? 0}px ${d.color ?? ""}` : void 0;
1021
1021
  return /* @__PURE__ */ f(
1022
1022
  "div",
1023
1023
  {
@@ -1031,7 +1031,7 @@ const bn = ({
1031
1031
  "div",
1032
1032
  {
1033
1033
  style: {
1034
- width: `${x}px`,
1034
+ width: `${$}px`,
1035
1035
  height: `${g}px`,
1036
1036
  position: "absolute",
1037
1037
  left: "50%",
@@ -1096,10 +1096,10 @@ const bn = ({
1096
1096
  children: l,
1097
1097
  style: p = {}
1098
1098
  }) => {
1099
- const d = Nt(), u = typeof t == "number" && !isNaN(t) ? t : d, b = a || 300, y = i || 300, v = (e == null ? void 0 : e.keepStill) || "both", x = Number((e == null ? void 0 : e.toRotationX) ?? 0), g = Number((e == null ? void 0 : e.toRotationY) ?? 360), m = Number((e == null ? void 0 : e.toRotationZ) ?? 0), $ = Number((e == null ? void 0 : e.toPivotX) ?? 0), N = Number((e == null ? void 0 : e.toPivotY) ?? 0), k = Number((e == null ? void 0 : e.toPerspective) ?? 0.45), w = !!(e != null && e.hasInitialValue), S = w ? Number((e == null ? void 0 : e.initialRotationX) ?? 0) : 0, M = w ? Number((e == null ? void 0 : e.initialRotationY) ?? 0) : 0, F = w ? Number((e == null ? void 0 : e.initialRotationZ) ?? 0) : 0, R = w ? Number((e == null ? void 0 : e.initialPivotX) ?? 0) : $, X = w ? Number((e == null ? void 0 : e.initialPivotY) ?? 0) : N, P = w ? Number((e == null ? void 0 : e.initialPerspective) ?? 0.45) : k, B = (e == null ? void 0 : e.frontFace) ?? !0, V = (e == null ? void 0 : e.backFace) ?? !0, Y = Math.max(0, u - (r || 0)), W = Math.min(1, Math.max(0, Y / (n || 1)));
1099
+ const d = Nt(), u = typeof t == "number" && !isNaN(t) ? t : d, b = a || 300, y = i || 300, v = (e == null ? void 0 : e.keepStill) || "both", $ = Number((e == null ? void 0 : e.toRotationX) ?? 0), g = Number((e == null ? void 0 : e.toRotationY) ?? 360), m = Number((e == null ? void 0 : e.toRotationZ) ?? 0), x = Number((e == null ? void 0 : e.toPivotX) ?? 0), N = Number((e == null ? void 0 : e.toPivotY) ?? 0), I = Number((e == null ? void 0 : e.toPerspective) ?? 0.45), S = !!(e != null && e.hasInitialValue), M = S ? Number((e == null ? void 0 : e.initialRotationX) ?? 0) : 0, w = S ? Number((e == null ? void 0 : e.initialRotationY) ?? 0) : 0, Y = S ? Number((e == null ? void 0 : e.initialRotationZ) ?? 0) : 0, R = S ? Number((e == null ? void 0 : e.initialPivotX) ?? 0) : x, X = S ? Number((e == null ? void 0 : e.initialPivotY) ?? 0) : N, P = S ? Number((e == null ? void 0 : e.initialPerspective) ?? 0.45) : I, B = (e == null ? void 0 : e.frontFace) ?? !0, V = (e == null ? void 0 : e.backFace) ?? !0, F = Math.max(0, u - (r || 0)), W = Math.min(1, Math.max(0, F / (n || 1)));
1100
1100
  let z = s + (c - s) * W;
1101
1101
  v === "initial" ? z = 0 : v === "final" && (z = 1);
1102
- const D = _(z, [0, 1], [S, x]), dt = _(z, [0, 1], [M, g]), et = _(z, [0, 1], [F, m]), K = _(z, [0, 1], [R, $]), nt = _(z, [0, 1], [X, N]), j = _(z, [0, 1], [P, k]), Q = Math.max(b, y), pt = Math.max(
1102
+ const D = _(z, [0, 1], [M, $]), dt = _(z, [0, 1], [w, g]), et = _(z, [0, 1], [Y, m]), K = _(z, [0, 1], [R, x]), nt = _(z, [0, 1], [X, N]), j = _(z, [0, 1], [P, I]), Q = Math.max(b, y), pt = Math.max(
1103
1103
  1200,
1104
1104
  Math.round(Q * 2.5 / Math.max(0.05, j))
1105
1105
  ), C = D * Math.PI / 180, G = dt * Math.PI / 180, T = Math.cos(C) * Math.cos(G), lt = T >= 0, q = T < 0;
@@ -1153,11 +1153,11 @@ const bn = ({
1153
1153
  activeEffects: u,
1154
1154
  effects: b
1155
1155
  }) => {
1156
- const y = u == null ? void 0 : u.find((m) => m.type === "vignette"), v = (y == null ? void 0 : y.amount) ?? (y == null ? void 0 : y.intensity) ?? (y ? 0.7 : 0), x = [];
1156
+ const y = u == null ? void 0 : u.find((m) => m.type === "vignette"), v = (y == null ? void 0 : y.amount) ?? (y == null ? void 0 : y.intensity) ?? (y ? 0.7 : 0), $ = [];
1157
1157
  u == null || u.forEach((m) => {
1158
- m.type === "blur" && m.radius && x.push(`blur(${m.radius}px)`), m.type === "grayscale" && m.amount !== void 0 && x.push(`grayscale(${m.amount * 100}%)`), m.type === "contrast" && m.amount !== void 0 && x.push(`contrast(${m.amount * 100}%)`), m.type === "brightness" && m.amount !== void 0 && x.push(`brightness(${100 + m.amount * 100}%)`), m.type === "hue" && m.rotation !== void 0 && x.push(`hue-rotate(${m.rotation}deg)`), m.type === "saturation" && m.amount !== void 0 && x.push(`saturate(${m.amount * 100}%)`);
1158
+ m.type === "blur" && m.radius && $.push(`blur(${m.radius}px)`), m.type === "grayscale" && m.amount !== void 0 && $.push(`grayscale(${m.amount * 100}%)`), m.type === "contrast" && m.amount !== void 0 && $.push(`contrast(${m.amount * 100}%)`), m.type === "brightness" && m.amount !== void 0 && $.push(`brightness(${100 + m.amount * 100}%)`), m.type === "hue" && m.rotation !== void 0 && $.push(`hue-rotate(${m.rotation}deg)`), m.type === "saturation" && m.amount !== void 0 && $.push(`saturate(${m.amount * 100}%)`);
1159
1159
  });
1160
- const g = x.length > 0 ? x.join(" ") : void 0;
1160
+ const g = $.length > 0 ? $.join(" ") : void 0;
1161
1161
  return /* @__PURE__ */ f(
1162
1162
  Or,
1163
1163
  {
@@ -1261,14 +1261,14 @@ function gn(t, r, n, s = 0) {
1261
1261
  i[q] = c[q & 255], o[q] = i[q] % 12;
1262
1262
  const h = 1 / 3, e = 1 / 6;
1263
1263
  let l = 0, p = 0, d = 0, u = 0;
1264
- const b = (t + r + n) * h, y = Math.floor(t + b), v = Math.floor(r + b), x = Math.floor(n + b), g = (y + v + x) * e, m = y - g, $ = v - g, N = x - g, k = t - m, w = r - $, S = n - N;
1265
- let M = 0, F = 0, R = 0, X = 0, P = 0, B = 0;
1266
- k >= w ? w >= S ? (M = 1, F = 0, R = 0, X = 1, P = 1, B = 0) : k >= S ? (M = 1, F = 0, R = 0, X = 1, P = 0, B = 1) : (M = 0, F = 0, R = 1, X = 1, P = 0, B = 1) : w < S ? (M = 0, F = 0, R = 1, X = 0, P = 1, B = 1) : k < S ? (M = 0, F = 1, R = 0, X = 0, P = 1, B = 1) : (M = 0, F = 1, R = 0, X = 1, P = 1, B = 0);
1267
- const V = k - M + e, Y = w - F + e, W = S - R + e, U = k - X + 2 * e, z = w - P + 2 * e, D = S - B + 2 * e, dt = k - 1 + 3 * e, et = w - 1 + 3 * e, K = S - 1 + 3 * e, nt = y & 255, j = v & 255, Q = x & 255;
1268
- let pt = 0.6 - k * k - w * w - S * S;
1269
- pt >= 0 && (pt *= pt, l = pt * pt * ur(dr[o[nt + i[j + i[Q]]]], k, w, S));
1270
- let C = 0.6 - V * V - Y * Y - W * W;
1271
- C >= 0 && (C *= C, p = C * C * ur(dr[o[nt + M + i[j + F + i[Q + R]]]], V, Y, W));
1264
+ const b = (t + r + n) * h, y = Math.floor(t + b), v = Math.floor(r + b), $ = Math.floor(n + b), g = (y + v + $) * e, m = y - g, x = v - g, N = $ - g, I = t - m, S = r - x, M = n - N;
1265
+ let w = 0, Y = 0, R = 0, X = 0, P = 0, B = 0;
1266
+ I >= S ? S >= M ? (w = 1, Y = 0, R = 0, X = 1, P = 1, B = 0) : I >= M ? (w = 1, Y = 0, R = 0, X = 1, P = 0, B = 1) : (w = 0, Y = 0, R = 1, X = 1, P = 0, B = 1) : S < M ? (w = 0, Y = 0, R = 1, X = 0, P = 1, B = 1) : I < M ? (w = 0, Y = 1, R = 0, X = 0, P = 1, B = 1) : (w = 0, Y = 1, R = 0, X = 1, P = 1, B = 0);
1267
+ const V = I - w + e, F = S - Y + e, W = M - R + e, U = I - X + 2 * e, z = S - P + 2 * e, D = M - B + 2 * e, dt = I - 1 + 3 * e, et = S - 1 + 3 * e, K = M - 1 + 3 * e, nt = y & 255, j = v & 255, Q = $ & 255;
1268
+ let pt = 0.6 - I * I - S * S - M * M;
1269
+ pt >= 0 && (pt *= pt, l = pt * pt * ur(dr[o[nt + i[j + i[Q]]]], I, S, M));
1270
+ let C = 0.6 - V * V - F * F - W * W;
1271
+ C >= 0 && (C *= C, p = C * C * ur(dr[o[nt + w + i[j + Y + i[Q + R]]]], V, F, W));
1272
1272
  let G = 0.6 - U * U - z * z - D * D;
1273
1273
  G >= 0 && (G *= G, d = G * G * ur(dr[o[nt + X + i[j + P + i[Q + B]]]], U, z, D));
1274
1274
  let T = 0.6 - dt * dt - et * et - K * K;
@@ -1291,14 +1291,14 @@ const No = ({
1291
1291
  boxShadow: p,
1292
1292
  noiseTileDetails: d
1293
1293
  }) => {
1294
- const u = Nt(), b = typeof r == "number" && !isNaN(r) ? r : u, y = i || 300, v = o || 300, x = (d == null ? void 0 : d.keepStill) || "both", g = Number((d == null ? void 0 : d.toXRepetitions) ?? (d == null ? void 0 : d.xRepetitions) ?? 5), m = Number((d == null ? void 0 : d.toYRepetitions) ?? (d == null ? void 0 : d.yRepetitions) ?? 5), $ = Number((d == null ? void 0 : d.toGapX) ?? (d == null ? void 0 : d.gapX) ?? 12), N = Number((d == null ? void 0 : d.toGapY) ?? (d == null ? void 0 : d.gapY) ?? 12), k = Number((d == null ? void 0 : d.toScale) ?? (d == null ? void 0 : d.scale) ?? 1), w = Number((d == null ? void 0 : d.toNoiseScale) ?? (d == null ? void 0 : d.noiseScale) ?? 1.5), S = Number((d == null ? void 0 : d.toNoiseMoveX) ?? (d == null ? void 0 : d.noiseMoveX) ?? 0.6), M = Number((d == null ? void 0 : d.toNoiseMoveY) ?? (d == null ? void 0 : d.noiseMoveY) ?? 0.4), F = Number((d == null ? void 0 : d.toFps) ?? (d == null ? void 0 : d.fps) ?? 12), R = Number((d == null ? void 0 : d.toThreshold) ?? (d == null ? void 0 : d.threshold) ?? 0.45), X = Number((d == null ? void 0 : d.toSeedOffset) ?? (d == null ? void 0 : d.seedOffset) ?? 0), P = !!(d != null && d.hasInitialValue), B = P ? Number((d == null ? void 0 : d.initialXRepetitions) ?? g) : g, V = P ? Number((d == null ? void 0 : d.initialYRepetitions) ?? m) : m, Y = P ? Number((d == null ? void 0 : d.initialGapX) ?? $) : $, W = P ? Number((d == null ? void 0 : d.initialGapY) ?? N) : N, U = P ? Number((d == null ? void 0 : d.initialScale) ?? k) : k, z = P ? Number((d == null ? void 0 : d.initialNoiseScale) ?? w) : w, D = P ? Number((d == null ? void 0 : d.initialNoiseMoveX) ?? S) : S, dt = P ? Number((d == null ? void 0 : d.initialNoiseMoveY) ?? M) : M, et = P ? Number((d == null ? void 0 : d.initialFps) ?? F) : F, K = P ? Number((d == null ? void 0 : d.initialThreshold) ?? R) : R, nt = P ? Number((d == null ? void 0 : d.initialSeedOffset) ?? X) : X, j = Math.max(0, b - (n || 0)), Q = Math.min(1, Math.max(0, j / (s || 1)));
1294
+ const u = Nt(), b = typeof r == "number" && !isNaN(r) ? r : u, y = i || 300, v = o || 300, $ = (d == null ? void 0 : d.keepStill) || "both", g = Number((d == null ? void 0 : d.toXRepetitions) ?? (d == null ? void 0 : d.xRepetitions) ?? 5), m = Number((d == null ? void 0 : d.toYRepetitions) ?? (d == null ? void 0 : d.yRepetitions) ?? 5), x = Number((d == null ? void 0 : d.toGapX) ?? (d == null ? void 0 : d.gapX) ?? 12), N = Number((d == null ? void 0 : d.toGapY) ?? (d == null ? void 0 : d.gapY) ?? 12), I = Number((d == null ? void 0 : d.toScale) ?? (d == null ? void 0 : d.scale) ?? 1), S = Number((d == null ? void 0 : d.toNoiseScale) ?? (d == null ? void 0 : d.noiseScale) ?? 1.5), M = Number((d == null ? void 0 : d.toNoiseMoveX) ?? (d == null ? void 0 : d.noiseMoveX) ?? 0.6), w = Number((d == null ? void 0 : d.toNoiseMoveY) ?? (d == null ? void 0 : d.noiseMoveY) ?? 0.4), Y = Number((d == null ? void 0 : d.toFps) ?? (d == null ? void 0 : d.fps) ?? 12), R = Number((d == null ? void 0 : d.toThreshold) ?? (d == null ? void 0 : d.threshold) ?? 0.45), X = Number((d == null ? void 0 : d.toSeedOffset) ?? (d == null ? void 0 : d.seedOffset) ?? 0), P = !!(d != null && d.hasInitialValue), B = P ? Number((d == null ? void 0 : d.initialXRepetitions) ?? g) : g, V = P ? Number((d == null ? void 0 : d.initialYRepetitions) ?? m) : m, F = P ? Number((d == null ? void 0 : d.initialGapX) ?? x) : x, W = P ? Number((d == null ? void 0 : d.initialGapY) ?? N) : N, U = P ? Number((d == null ? void 0 : d.initialScale) ?? I) : I, z = P ? Number((d == null ? void 0 : d.initialNoiseScale) ?? S) : S, D = P ? Number((d == null ? void 0 : d.initialNoiseMoveX) ?? M) : M, dt = P ? Number((d == null ? void 0 : d.initialNoiseMoveY) ?? w) : w, et = P ? Number((d == null ? void 0 : d.initialFps) ?? Y) : Y, K = P ? Number((d == null ? void 0 : d.initialThreshold) ?? R) : R, nt = P ? Number((d == null ? void 0 : d.initialSeedOffset) ?? X) : X, j = Math.max(0, b - (n || 0)), Q = Math.min(1, Math.max(0, j / (s || 1)));
1295
1295
  let C = c + (a - c) * Q;
1296
- x === "initial" ? C = 0 : x === "final" && (C = 1);
1297
- const G = Math.max(1, Math.round(_(C, [0, 1], [B, g]))), T = Math.max(1, Math.round(_(C, [0, 1], [V, m]))), lt = _(C, [0, 1], [Y, $]), q = _(C, [0, 1], [W, N]), Z = _(C, [0, 1], [U, k]), at = _(C, [0, 1], [z, w]), tt = _(C, [0, 1], [D, S]), yt = _(C, [0, 1], [dt, M]), rt = Math.max(1, Math.round(_(C, [0, 1], [et, F]))), ct = _(C, [0, 1], [K, R]), st = _(C, [0, 1], [nt, X]), ut = p ? typeof p == "string" ? p : `${p.x ?? 0}px ${p.y ?? 0}px ${p.blur ?? 0}px ${p.color ?? ""}` : void 0, ht = Math.floor(j * (rt / 30)), vt = (G - 1) / 2, $t = (T - 1) / 2, It = [];
1296
+ $ === "initial" ? C = 0 : $ === "final" && (C = 1);
1297
+ const G = Math.max(1, Math.round(_(C, [0, 1], [B, g]))), T = Math.max(1, Math.round(_(C, [0, 1], [V, m]))), lt = _(C, [0, 1], [F, x]), q = _(C, [0, 1], [W, N]), Z = _(C, [0, 1], [U, I]), at = _(C, [0, 1], [z, S]), tt = _(C, [0, 1], [D, M]), yt = _(C, [0, 1], [dt, w]), rt = Math.max(1, Math.round(_(C, [0, 1], [et, Y]))), ct = _(C, [0, 1], [K, R]), st = _(C, [0, 1], [nt, X]), ut = p ? typeof p == "string" ? p : `${p.x ?? 0}px ${p.y ?? 0}px ${p.blur ?? 0}px ${p.color ?? ""}` : void 0, ht = Math.floor(j * (rt / 30)), vt = (G - 1) / 2, $t = (T - 1) / 2, It = [];
1298
1298
  for (let ft = 0; ft < T; ft++)
1299
1299
  for (let St = 0; St < G; St++) {
1300
- const Yt = St / Math.max(1, G) * at, Rt = ft / Math.max(1, T) * at, Xt = ht * 0.1 + st, Pt = gn(
1301
- Yt + ht * tt * 0.05,
1300
+ const Ft = St / Math.max(1, G) * at, Rt = ft / Math.max(1, T) * at, Xt = ht * 0.1 + st, Pt = gn(
1301
+ Ft + ht * tt * 0.05,
1302
1302
  Rt + ht * yt * 0.05,
1303
1303
  Xt,
1304
1304
  st
@@ -1437,16 +1437,16 @@ function Vr(t, r, n = 0) {
1437
1437
  if (!d) return;
1438
1438
  const u = d.property;
1439
1439
  if (p.includes(u)) {
1440
- const b = d.delay ?? 0, y = Math.max(1, d.durationInFrames ?? 30), v = b + y, x = ($) => $ === "contrast" || $ === "brightness" || $ === "saturation" ? 100 : $ === "pixelate" ? 1 : 0;
1441
- let g = !1, m = x(u);
1440
+ const b = d.delay ?? 0, y = Math.max(1, d.durationInFrames ?? 30), v = b + y, $ = (x) => x === "contrast" || x === "brightness" || x === "saturation" ? 100 : x === "pixelate" ? 1 : 0;
1441
+ let g = !1, m = $(u);
1442
1442
  if (n >= b && n <= v) {
1443
1443
  g = !0;
1444
- const $ = Math.min(
1444
+ const x = Math.min(
1445
1445
  1,
1446
1446
  Math.max(0, (n - b) / y)
1447
- ), N = Number(d.from ?? x(u)), k = Number(d.to ?? x(u));
1448
- m = N + (k - N) * $;
1449
- } else n > v && d.persist === !0 && (g = !0, m = Number(d.to ?? x(u)));
1447
+ ), N = Number(d.from ?? $(u)), I = Number(d.to ?? $(u));
1448
+ m = N + (I - N) * x;
1449
+ } else n > v && d.persist === !0 && (g = !0, m = Number(d.to ?? $(u)));
1450
1450
  if (!g) return;
1451
1451
  switch (c.add(u), u) {
1452
1452
  case "blur":
@@ -1495,13 +1495,13 @@ function Vr(t, r, n = 0) {
1495
1495
  });
1496
1496
  break;
1497
1497
  case "duotone": {
1498
- const $ = d.details;
1498
+ const x = d.details;
1499
1499
  a.push({
1500
1500
  type: "duotone",
1501
- color1: ($ == null ? void 0 : $.color1) || "#ff0055",
1502
- color2: ($ == null ? void 0 : $.color2) || "#00eeff",
1503
- darkColor: ($ == null ? void 0 : $.color1) || "#ff0055",
1504
- lightColor: ($ == null ? void 0 : $.color2) || "#00eeff"
1501
+ color1: (x == null ? void 0 : x.color1) || "#ff0055",
1502
+ color2: (x == null ? void 0 : x.color2) || "#00eeff",
1503
+ darkColor: (x == null ? void 0 : x.color1) || "#ff0055",
1504
+ lightColor: (x == null ? void 0 : x.color2) || "#00eeff"
1505
1505
  });
1506
1506
  break;
1507
1507
  }
@@ -1596,7 +1596,7 @@ Object.defineProperty(Wt, "__esModule", {
1596
1596
  value: !0
1597
1597
  });
1598
1598
  Wt.loop = Wt.conditional = Wt.parse = void 0;
1599
- var Fo = function t(r, n) {
1599
+ var Yo = function t(r, n) {
1600
1600
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, c = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : s;
1601
1601
  if (Array.isArray(n))
1602
1602
  n.forEach(function(i) {
@@ -1610,13 +1610,13 @@ var Fo = function t(r, n) {
1610
1610
  }
1611
1611
  return s;
1612
1612
  };
1613
- Wt.parse = Fo;
1614
- var Yo = function(r, n) {
1613
+ Wt.parse = Yo;
1614
+ var Fo = function(r, n) {
1615
1615
  return function(s, c, a, i) {
1616
1616
  n(s, c, a) && i(s, r, c, a);
1617
1617
  };
1618
1618
  };
1619
- Wt.conditional = Yo;
1619
+ Wt.conditional = Fo;
1620
1620
  var Ro = function(r, n) {
1621
1621
  return function(s, c, a, i) {
1622
1622
  for (var o = [], h = s.pos; n(s, c, a); ) {
@@ -1710,16 +1710,16 @@ xt.readBits = Vo;
1710
1710
  }), t.default = void 0;
1711
1711
  var r = Wt, n = xt, s = {
1712
1712
  blocks: function(d) {
1713
- for (var u = 0, b = [], y = d.data.length, v = 0, x = (0, n.readByte)()(d); x !== u && x; x = (0, n.readByte)()(d)) {
1714
- if (d.pos + x >= y) {
1713
+ for (var u = 0, b = [], y = d.data.length, v = 0, $ = (0, n.readByte)()(d); $ !== u && $; $ = (0, n.readByte)()(d)) {
1714
+ if (d.pos + $ >= y) {
1715
1715
  var g = y - d.pos;
1716
1716
  b.push((0, n.readBytes)(g)(d)), v += g;
1717
1717
  break;
1718
1718
  }
1719
- b.push((0, n.readBytes)(x)(d)), v += x;
1719
+ b.push((0, n.readBytes)($)(d)), v += $;
1720
1720
  }
1721
- for (var m = new Uint8Array(v), $ = 0, N = 0; N < b.length; N++)
1722
- m.set(b[N], $), $ += b[N].length;
1721
+ for (var m = new Uint8Array(v), x = 0, N = 0; N < b.length; N++)
1722
+ m.set(b[N], x), x += b[N].length;
1723
1723
  return m;
1724
1724
  }
1725
1725
  }, c = (0, r.conditional)({
@@ -1907,35 +1907,35 @@ Object.defineProperty(mr, "__esModule", {
1907
1907
  });
1908
1908
  mr.lzw = void 0;
1909
1909
  var zo = function(r, n, s) {
1910
- var c = 4096, a = -1, i = s, o, h, e, l, p, d, u, k, b, y, N, v, w, S, F, M, x = new Array(s), g = new Array(c), m = new Array(c), $ = new Array(c + 1);
1910
+ var c = 4096, a = -1, i = s, o, h, e, l, p, d, u, I, b, y, N, v, S, M, Y, w, $ = new Array(s), g = new Array(c), m = new Array(c), x = new Array(c + 1);
1911
1911
  for (v = r, h = 1 << v, p = h + 1, o = h + 2, u = a, l = v + 1, e = (1 << l) - 1, b = 0; b < h; b++)
1912
1912
  g[b] = 0, m[b] = b;
1913
- var N, k, w, S, M, F;
1914
- for (N = k = w = S = M = F = 0, y = 0; y < i; ) {
1915
- if (S === 0) {
1916
- if (k < l) {
1917
- N += n[F] << k, k += 8, F++;
1913
+ var N, I, S, M, w, Y;
1914
+ for (N = I = S = M = w = Y = 0, y = 0; y < i; ) {
1915
+ if (M === 0) {
1916
+ if (I < l) {
1917
+ N += n[Y] << I, I += 8, Y++;
1918
1918
  continue;
1919
1919
  }
1920
- if (b = N & e, N >>= l, k -= l, b > o || b == p)
1920
+ if (b = N & e, N >>= l, I -= l, b > o || b == p)
1921
1921
  break;
1922
1922
  if (b == h) {
1923
1923
  l = v + 1, e = (1 << l) - 1, o = h + 2, u = a;
1924
1924
  continue;
1925
1925
  }
1926
1926
  if (u == a) {
1927
- $[S++] = m[b], u = b, w = b;
1927
+ x[M++] = m[b], u = b, S = b;
1928
1928
  continue;
1929
1929
  }
1930
- for (d = b, b == o && ($[S++] = w, b = u); b > h; )
1931
- $[S++] = m[b], b = g[b];
1932
- w = m[b] & 255, $[S++] = w, o < c && (g[o] = u, m[o] = w, o++, !(o & e) && o < c && (l++, e += o)), u = d;
1930
+ for (d = b, b == o && (x[M++] = S, b = u); b > h; )
1931
+ x[M++] = m[b], b = g[b];
1932
+ S = m[b] & 255, x[M++] = S, o < c && (g[o] = u, m[o] = S, o++, !(o & e) && o < c && (l++, e += o)), u = d;
1933
1933
  }
1934
- S--, x[M++] = $[S], y++;
1934
+ M--, $[w++] = x[M], y++;
1935
1935
  }
1936
- for (y = M; y < i; y++)
1937
- x[y] = 0;
1938
- return x;
1936
+ for (y = w; y < i; y++)
1937
+ $[y] = 0;
1938
+ return $;
1939
1939
  };
1940
1940
  mr.lzw = zo;
1941
1941
  Object.defineProperty(Jt, "__esModule", {
@@ -2058,7 +2058,7 @@ function kn({
2058
2058
  options: r
2059
2059
  }) {
2060
2060
  var dt, et, K, nt, j, Q, pt, C, G, T, lt, q, Z, at;
2061
- const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, o = t.playbackRate || 1, { animationIn: h, animationOut: e, animationTimed: l } = Ft(
2061
+ const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, o = t.playbackRate || 1, { animationIn: h, animationOut: e, animationTimed: l } = Yt(
2062
2062
  i,
2063
2063
  t,
2064
2064
  s,
@@ -2069,34 +2069,34 @@ function kn({
2069
2069
  y: 0,
2070
2070
  width: a.width,
2071
2071
  height: a.height
2072
- }, { durationInFrames: d } = wt(t.display, n), u = (s || 0) - t.display.from * n / 1e3, b = Ct(a, p, {}), { WebkitTextStroke: y } = b, v = ln(a, p), x = Vr(
2072
+ }, { durationInFrames: d } = wt(t.display, n), u = (s || 0) - t.display.from * n / 1e3, b = Ct(a, p, {}), { WebkitTextStroke: y } = b, v = ln(a, p), $ = Vr(
2073
2073
  a.effects,
2074
2074
  i,
2075
2075
  u
2076
- ), g = Wr(x), { filter: m, overlays: $ } = xn(x), N = a.width || p.width || 300, k = a.height || p.height || 300, w = Jo(a.src), S = (et = (dt = i == null ? void 0 : i.loop) == null ? void 0 : dt.composition) == null ? void 0 : et.find(
2076
+ ), g = Wr($), { filter: m, overlays: x } = xn($), N = a.width || p.width || 300, I = a.height || p.height || 300, S = Jo(a.src), M = (et = (dt = i == null ? void 0 : i.loop) == null ? void 0 : dt.composition) == null ? void 0 : et.find(
2077
2077
  (tt) => tt.property === "textGridMarqueeTextAnimationLoop" || tt.property === "textGridMarquee" || tt.property === "imageGridMarqueeTextAnimationLoop" || tt.property === "imageGridMarquee" || tt.id === "textGridMarquee" || tt.id === "imageGridMarquee"
2078
- ), M = !!(S && u >= (S.delay || 0) && u <= (S.delay || 0) + (S.durationInFrames || 60)), F = (nt = (K = i == null ? void 0 : i.loop) == null ? void 0 : K.composition) == null ? void 0 : nt.find(
2078
+ ), w = !!(M && u >= (M.delay || 0) && u <= (M.delay || 0) + (M.durationInFrames || 60)), Y = (nt = (K = i == null ? void 0 : i.loop) == null ? void 0 : K.composition) == null ? void 0 : nt.find(
2079
2079
  (tt) => tt.property === "inwardEchoes" || tt.id === "inwardEchoes"
2080
- ), R = !!(F && u >= (F.delay || 0) && u <= (F.delay || 0) + (F.durationInFrames || 120)), X = (Q = (j = i == null ? void 0 : i.loop) == null ? void 0 : j.composition) == null ? void 0 : Q.find(
2080
+ ), R = !!(Y && u >= (Y.delay || 0) && u <= (Y.delay || 0) + (Y.durationInFrames || 120)), X = (Q = (j = i == null ? void 0 : i.loop) == null ? void 0 : j.composition) == null ? void 0 : Q.find(
2081
2081
  (tt) => tt.property === "wiggle" || tt.id === "wiggle"
2082
2082
  ), P = !!(X && u >= (X.delay || 0) && u <= (X.delay || 0) + (X.durationInFrames || 120)), B = (C = (pt = i == null ? void 0 : i.loop) == null ? void 0 : pt.composition) == null ? void 0 : C.find(
2083
2083
  (tt) => tt.property === "cardFlip" || tt.id === "cardFlip"
2084
- ), V = !!(B && u >= (B.delay || 0) && u <= (B.delay || 0) + (B.durationInFrames || 120)), Y = (T = (G = i == null ? void 0 : i.loop) == null ? void 0 : G.composition) == null ? void 0 : T.find(
2084
+ ), V = !!(B && u >= (B.delay || 0) && u <= (B.delay || 0) + (B.durationInFrames || 120)), F = (T = (G = i == null ? void 0 : i.loop) == null ? void 0 : G.composition) == null ? void 0 : T.find(
2085
2085
  (tt) => tt.property === "noiseTile" || tt.id === "noiseTile"
2086
- ), W = !!(Y && u >= (Y.delay || 0) && u <= (Y.delay || 0) + (Y.durationInFrames || 120)), U = [
2086
+ ), W = !!(F && u >= (F.delay || 0) && u <= (F.delay || 0) + (F.durationInFrames || 120)), U = [
2087
2087
  ...((lt = i == null ? void 0 : i.in) == null ? void 0 : lt.composition) || [],
2088
2088
  ...((q = i == null ? void 0 : i.out) == null ? void 0 : q.composition) || [],
2089
2089
  ...((Z = i == null ? void 0 : i.timed) == null ? void 0 : Z.composition) || [],
2090
2090
  ...((at = i == null ? void 0 : i.loop) == null ? void 0 : at.composition) || []
2091
- ], z = () => M ? /* @__PURE__ */ f(
2091
+ ], z = () => w ? /* @__PURE__ */ f(
2092
2092
  bn,
2093
2093
  {
2094
2094
  src: a.src,
2095
2095
  frame: u,
2096
- delay: S == null ? void 0 : S.delay,
2097
- durationInFrames: S == null ? void 0 : S.durationInFrames,
2098
- from: S == null ? void 0 : S.from,
2099
- to: S == null ? void 0 : S.to,
2096
+ delay: M == null ? void 0 : M.delay,
2097
+ durationInFrames: M == null ? void 0 : M.durationInFrames,
2098
+ from: M == null ? void 0 : M.from,
2099
+ to: M == null ? void 0 : M.to,
2100
2100
  width: a.width,
2101
2101
  height: a.height,
2102
2102
  borderRadius: v.borderRadius,
@@ -2104,17 +2104,17 @@ function kn({
2104
2104
  borderColor: a.borderColor,
2105
2105
  boxShadow: a.boxShadow,
2106
2106
  fps: n,
2107
- marqueeDetails: S == null ? void 0 : S.details
2107
+ marqueeDetails: M == null ? void 0 : M.details
2108
2108
  }
2109
2109
  ) : R ? /* @__PURE__ */ f(
2110
2110
  vn,
2111
2111
  {
2112
2112
  src: a.src,
2113
2113
  frame: u,
2114
- delay: F == null ? void 0 : F.delay,
2115
- durationInFrames: F == null ? void 0 : F.durationInFrames,
2116
- from: F == null ? void 0 : F.from,
2117
- to: F == null ? void 0 : F.to,
2114
+ delay: Y == null ? void 0 : Y.delay,
2115
+ durationInFrames: Y == null ? void 0 : Y.durationInFrames,
2116
+ from: Y == null ? void 0 : Y.from,
2117
+ to: Y == null ? void 0 : Y.to,
2118
2118
  width: a.width,
2119
2119
  height: a.height,
2120
2120
  borderRadius: v.borderRadius,
@@ -2122,7 +2122,7 @@ function kn({
2122
2122
  borderColor: a.borderColor,
2123
2123
  boxShadow: a.boxShadow,
2124
2124
  fps: n,
2125
- echoesDetails: F == null ? void 0 : F.details
2125
+ echoesDetails: Y == null ? void 0 : Y.details
2126
2126
  }
2127
2127
  ) : P ? /* @__PURE__ */ f(
2128
2128
  mn,
@@ -2159,7 +2159,7 @@ function kn({
2159
2159
  boxShadow: a.boxShadow,
2160
2160
  fps: n,
2161
2161
  cardFlipDetails: B == null ? void 0 : B.details,
2162
- activeEffects: x,
2162
+ activeEffects: $,
2163
2163
  effects: g
2164
2164
  }
2165
2165
  ) : W ? /* @__PURE__ */ f(
@@ -2167,10 +2167,10 @@ function kn({
2167
2167
  {
2168
2168
  src: a.src,
2169
2169
  frame: u,
2170
- delay: Y == null ? void 0 : Y.delay,
2171
- durationInFrames: Y == null ? void 0 : Y.durationInFrames,
2172
- from: Y == null ? void 0 : Y.from,
2173
- to: Y == null ? void 0 : Y.to,
2170
+ delay: F == null ? void 0 : F.delay,
2171
+ durationInFrames: F == null ? void 0 : F.durationInFrames,
2172
+ from: F == null ? void 0 : F.from,
2173
+ to: F == null ? void 0 : F.to,
2174
2174
  width: a.width,
2175
2175
  height: a.height,
2176
2176
  borderRadius: v.borderRadius,
@@ -2178,9 +2178,9 @@ function kn({
2178
2178
  borderColor: a.borderColor,
2179
2179
  boxShadow: a.boxShadow,
2180
2180
  fps: n,
2181
- noiseTileDetails: Y == null ? void 0 : Y.details
2181
+ noiseTileDetails: F == null ? void 0 : F.details
2182
2182
  }
2183
- ) : w ? /* @__PURE__ */ f(
2183
+ ) : S ? /* @__PURE__ */ f(
2184
2184
  re,
2185
2185
  {
2186
2186
  src: a.src,
@@ -2258,23 +2258,23 @@ function kn({
2258
2258
  style: {
2259
2259
  ...v,
2260
2260
  overflow: "visible",
2261
- boxShadow: M ? "none" : v.boxShadow
2261
+ boxShadow: w ? "none" : v.boxShadow
2262
2262
  },
2263
2263
  children: [
2264
2264
  g ? /* @__PURE__ */ f(
2265
2265
  _r,
2266
2266
  {
2267
2267
  width: N,
2268
- height: k,
2268
+ height: I,
2269
2269
  effects: g,
2270
2270
  children: z()
2271
2271
  }
2272
2272
  ) : z(),
2273
- $.map((tt) => /* @__PURE__ */ f("div", { style: tt.style }, tt.id))
2273
+ x.map((tt) => /* @__PURE__ */ f("div", { style: tt.style }, tt.id))
2274
2274
  ]
2275
2275
  }
2276
2276
  ),
2277
- !M && !R && !P && !V && !W && /* @__PURE__ */ f(
2277
+ !w && !R && !P && !V && !W && /* @__PURE__ */ f(
2278
2278
  "div",
2279
2279
  {
2280
2280
  style: {
@@ -2299,7 +2299,7 @@ const Nn = ({
2299
2299
  options: r
2300
2300
  }) => {
2301
2301
  var d, u, b, y;
2302
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: o, animationTimed: h } = Ft(
2302
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: o, animationTimed: h } = Yt(
2303
2303
  a,
2304
2304
  t,
2305
2305
  s,
@@ -2358,28 +2358,28 @@ const Nn = ({
2358
2358
  return gt({ item: t, options: r, children: p });
2359
2359
  }, Lr = {
2360
2360
  // Legacy Easings
2361
- linear: I.linear,
2362
- easeIn: I.in(I.quad),
2363
- easeOut: I.out(I.quad),
2364
- easeInOut: I.inOut(I.quad),
2365
- easeInQuad: I.in(I.quad),
2366
- easeOutQuad: I.out(I.quad),
2367
- easeInOutQuad: I.inOut(I.quad),
2368
- easeInCubic: I.in(I.cubic),
2369
- easeOutCubic: I.out(I.cubic),
2370
- easeInOutCubic: I.inOut(I.cubic),
2361
+ linear: k.linear,
2362
+ easeIn: k.in(k.quad),
2363
+ easeOut: k.out(k.quad),
2364
+ easeInOut: k.inOut(k.quad),
2365
+ easeInQuad: k.in(k.quad),
2366
+ easeOutQuad: k.out(k.quad),
2367
+ easeInOutQuad: k.inOut(k.quad),
2368
+ easeInCubic: k.in(k.cubic),
2369
+ easeOutCubic: k.out(k.cubic),
2370
+ easeInOutCubic: k.inOut(k.cubic),
2371
2371
  // New Easing Presets from UI Selection
2372
- smooth: I.inOut(I.cubic),
2373
- natural: I.inOut(I.quad),
2374
- slowDown: I.out(I.cubic),
2375
- accelerate: I.in(I.cubic),
2376
- elastic: I.elastic(1),
2377
- bounce: I.bounce,
2378
- overshoot: I.out(I.back(1.70158)),
2379
- impulse: I.in(I.back(1.70158)),
2380
- swing: I.inOut(I.back(1.70158)),
2381
- none: I.linear,
2382
- custom: I.inOut(I.cubic)
2372
+ smooth: k.inOut(k.cubic),
2373
+ natural: k.inOut(k.quad),
2374
+ slowDown: k.out(k.cubic),
2375
+ accelerate: k.in(k.cubic),
2376
+ elastic: k.elastic(1),
2377
+ bounce: k.bounce,
2378
+ overshoot: k.out(k.back(1.70158)),
2379
+ impulse: k.in(k.back(1.70158)),
2380
+ swing: k.inOut(k.back(1.70158)),
2381
+ none: k.linear,
2382
+ custom: k.inOut(k.cubic)
2383
2383
  }, ne = (t) => Lr[t] || Lr.linear, oe = ({
2384
2384
  char: t,
2385
2385
  index: r,
@@ -2397,12 +2397,12 @@ const Nn = ({
2397
2397
  fade: u = !1
2398
2398
  }) => {
2399
2399
  const b = Math.max(1, a), y = o === h;
2400
- let v, x;
2401
- c <= 1 ? (v = b, x = 0) : y ? (x = b / c, v = x) : (v = Math.min(
2400
+ let v, $;
2401
+ c <= 1 ? (v = b, $ = 0) : y ? ($ = b / c, v = $) : (v = Math.min(
2402
2402
  b * 0.45,
2403
2403
  Math.max(2, b / c * 1.5)
2404
- ), v >= b && (v = b * 0.5), x = (b - v) / (c - 1));
2405
- const g = l + r * x, m = n - g;
2404
+ ), v >= b && (v = b * 0.5), $ = (b - v) / (c - 1));
2405
+ const g = l + r * $, m = n - g;
2406
2406
  if (d === "in" && m < 0)
2407
2407
  return /* @__PURE__ */ f(
2408
2408
  "span",
@@ -2432,54 +2432,54 @@ const Nn = ({
2432
2432
  r
2433
2433
  );
2434
2434
  }
2435
- const $ = y ? 1 : _(m, [0, v], [0, 1], {
2435
+ const x = y ? 1 : _(m, [0, v], [0, 1], {
2436
2436
  extrapolateLeft: "clamp",
2437
2437
  extrapolateRight: "clamp"
2438
- }), N = ne(e), k = y ? 1 : N($), w = o + (h - o) * k;
2439
- let S = {
2438
+ }), N = ne(e), I = y ? 1 : N(x), S = o + (h - o) * I;
2439
+ let M = {
2440
2440
  display: "inline-block",
2441
2441
  transformOrigin: "center"
2442
2442
  };
2443
- const M = [], F = [], R = (X = 50, P = "down") => {
2444
- const B = typeof (p == null ? void 0 : p.translateY) == "number" ? p.translateY : typeof (p == null ? void 0 : p.translateX) == "number" ? p.translateX : typeof (p == null ? void 0 : p.translate) == "number" ? p.translate : X, V = (p == null ? void 0 : p.direction) || P, Y = d === "out" ? 0 : B, U = Y + ((d === "out" ? B : 0) - Y) * k;
2443
+ const w = [], Y = [], R = (X = 50, P = "down") => {
2444
+ const B = typeof (p == null ? void 0 : p.translateY) == "number" ? p.translateY : typeof (p == null ? void 0 : p.translateX) == "number" ? p.translateX : typeof (p == null ? void 0 : p.translate) == "number" ? p.translate : X, V = (p == null ? void 0 : p.direction) || P, F = d === "out" ? 0 : B, U = F + ((d === "out" ? B : 0) - F) * I;
2445
2445
  if (V === "left" || V === "right") {
2446
2446
  const z = V === "left" ? -1 : 1;
2447
- M.push(`translateX(${z * U}%)`);
2447
+ w.push(`translateX(${z * U}%)`);
2448
2448
  } else {
2449
2449
  const z = V === "up" ? -1 : 1;
2450
- M.push(`translateY(${z * U}%)`);
2450
+ w.push(`translateY(${z * U}%)`);
2451
2451
  }
2452
2452
  };
2453
2453
  switch (i) {
2454
2454
  case "opacity":
2455
- S.opacity = w;
2455
+ M.opacity = S;
2456
2456
  break;
2457
2457
  case "scale":
2458
- M.push(`scale(${w})`);
2458
+ w.push(`scale(${S})`);
2459
2459
  break;
2460
2460
  case "growIn": {
2461
2461
  let X;
2462
- if ($ < 0.65) {
2463
- const P = $ / 0.65, B = I.out(I.cubic)(P);
2462
+ if (x < 0.65) {
2463
+ const P = x / 0.65, B = k.out(k.cubic)(P);
2464
2464
  X = o + (h + 0.1 - o) * B;
2465
2465
  } else {
2466
- const P = ($ - 0.65) / 0.35, B = I.out(I.quad)(P);
2466
+ const P = (x - 0.65) / 0.35, B = k.out(k.quad)(P);
2467
2467
  X = h + 0.1 - 0.1 * B;
2468
2468
  }
2469
- M.push(`scale(${X})`), S.opacity = I.out(I.quad)($);
2469
+ w.push(`scale(${X})`), M.opacity = k.out(k.quad)(x);
2470
2470
  break;
2471
2471
  }
2472
2472
  case "growOut": {
2473
- const X = I.out(I.cubic)($), P = o + (h - o) * X;
2474
- M.push(`scale(${P})`), S.opacity = 1 - I.out(I.quad)($);
2473
+ const X = k.out(k.cubic)(x), P = o + (h - o) * X;
2474
+ w.push(`scale(${P})`), M.opacity = 1 - k.out(k.quad)(x);
2475
2475
  break;
2476
2476
  }
2477
2477
  case "shrinkIn": {
2478
- M.push(`scale(${w})`), S.opacity = k;
2478
+ w.push(`scale(${S})`), M.opacity = I;
2479
2479
  break;
2480
2480
  }
2481
2481
  case "shrinkOut": {
2482
- M.push(`scale(${w})`), S.opacity = 1 - k;
2482
+ w.push(`scale(${S})`), M.opacity = 1 - I;
2483
2483
  break;
2484
2484
  }
2485
2485
  case "maskUpIn": {
@@ -2502,11 +2502,11 @@ const Nn = ({
2502
2502
  case "blurIn":
2503
2503
  case "blurOut":
2504
2504
  case "blurV2In": {
2505
- F.push(`blur(${w}px)`), ((p == null ? void 0 : p.translateY) !== void 0 || (p == null ? void 0 : p.translateX) !== void 0 || (p == null ? void 0 : p.translate) !== void 0) && R(50, (p == null ? void 0 : p.direction) || "down"), (u || p != null && p.fade) && (S.opacity = d === "out" ? 1 - k : k);
2505
+ Y.push(`blur(${S}px)`), ((p == null ? void 0 : p.translateY) !== void 0 || (p == null ? void 0 : p.translateX) !== void 0 || (p == null ? void 0 : p.translate) !== void 0) && R(50, (p == null ? void 0 : p.direction) || "down"), (u || p != null && p.fade) && (M.opacity = d === "out" ? 1 - I : I);
2506
2506
  break;
2507
2507
  }
2508
2508
  case "blurSlide": {
2509
- F.push(`blur(${w}px)`), R(50, (p == null ? void 0 : p.direction) || "down"), (u || (p == null ? void 0 : p.fade) !== !1) && (S.opacity = d === "out" ? 1 - k : k);
2509
+ Y.push(`blur(${S}px)`), R(50, (p == null ? void 0 : p.direction) || "down"), (u || (p == null ? void 0 : p.fade) !== !1) && (M.opacity = d === "out" ? 1 - I : I);
2510
2510
  break;
2511
2511
  }
2512
2512
  case "translateX": {
@@ -2515,8 +2515,8 @@ const Nn = ({
2515
2515
  const V = typeof p.width == "number" ? p.width : parseFloat(p.width);
2516
2516
  isNaN(V) || (X = V, P = !0);
2517
2517
  }
2518
- const B = P ? `${w / 100 * X}px` : `${w}%`;
2519
- M.push(`translateX(${B})`), (u || p != null && p.fade) && (S.opacity = d === "out" ? 1 - k : k);
2518
+ const B = P ? `${S / 100 * X}px` : `${S}%`;
2519
+ w.push(`translateX(${B})`), (u || p != null && p.fade) && (M.opacity = d === "out" ? 1 - I : I);
2520
2520
  break;
2521
2521
  }
2522
2522
  case "translateY": {
@@ -2525,41 +2525,41 @@ const Nn = ({
2525
2525
  const V = typeof p.height == "number" ? p.height : parseFloat(p.height);
2526
2526
  isNaN(V) || (X = V, P = !0);
2527
2527
  }
2528
- const B = P ? `${w / 100 * X}px` : `${w}%`;
2529
- M.push(`translateY(${B})`), (u || p != null && p.fade) && (S.opacity = d === "out" ? 1 - k : k);
2528
+ const B = P ? `${S / 100 * X}px` : `${S}%`;
2529
+ w.push(`translateY(${B})`), (u || p != null && p.fade) && (M.opacity = d === "out" ? 1 - I : I);
2530
2530
  break;
2531
2531
  }
2532
2532
  case "rotate":
2533
- M.push(`rotate(${w}deg)`);
2533
+ w.push(`rotate(${S}deg)`);
2534
2534
  break;
2535
2535
  case "spin":
2536
2536
  case "spinIn":
2537
2537
  case "spinOut": {
2538
- M.push(`rotate(${w}deg)`);
2539
- const X = d === "out" ? 1 - k : k;
2540
- M.push(`scale(${X})`), S.opacity = d === "out" ? 1 - k : k;
2538
+ w.push(`rotate(${S}deg)`);
2539
+ const X = d === "out" ? 1 - I : I;
2540
+ w.push(`scale(${X})`), M.opacity = d === "out" ? 1 - I : I;
2541
2541
  break;
2542
2542
  }
2543
2543
  case "rotateX":
2544
- M.push(`rotateX(${w}deg)`);
2544
+ w.push(`rotateX(${S}deg)`);
2545
2545
  break;
2546
2546
  case "rotateY":
2547
- M.push(`rotateY(${w}deg)`);
2547
+ w.push(`rotateY(${S}deg)`);
2548
2548
  break;
2549
2549
  case "brightness":
2550
2550
  case "brightnessIn":
2551
2551
  case "brightnessOut":
2552
- F.push(`brightness(${w}%)`);
2552
+ Y.push(`brightness(${S}%)`);
2553
2553
  break;
2554
2554
  default:
2555
- S.opacity = w;
2555
+ M.opacity = S;
2556
2556
  break;
2557
2557
  }
2558
2558
  if ((p == null ? void 0 : p.scale) !== void 0 && typeof p.scale == "number" && i !== "scale") {
2559
- const X = (d === "out" ? p.scale : 1) + (1 - (d === "out" ? p.scale : 1)) * (1 - k);
2560
- M.push(`scale(${X})`);
2559
+ const X = (d === "out" ? p.scale : 1) + (1 - (d === "out" ? p.scale : 1)) * (1 - I);
2560
+ w.push(`scale(${X})`);
2561
2561
  }
2562
- return M.length > 0 && (S.transform = M.join(" ")), F.length > 0 && (S.filter = F.join(" ")), /* @__PURE__ */ f("span", { style: S, children: t === " " ? " " : t }, r);
2562
+ return w.length > 0 && (M.transform = w.join(" ")), Y.length > 0 && (M.filter = Y.join(" ")), /* @__PURE__ */ f("span", { style: M, children: t === " " ? " " : t }, r);
2563
2563
  }, ee = ({
2564
2564
  char: t,
2565
2565
  index: r,
@@ -3245,7 +3245,7 @@ const ke = ({
3245
3245
  }
3246
3246
  );
3247
3247
  };
3248
- function Fe({
3248
+ function Ye({
3249
3249
  frame: t,
3250
3250
  durationInFrames: r,
3251
3251
  text: n,
@@ -3297,7 +3297,7 @@ function Fe({
3297
3297
  }
3298
3298
  );
3299
3299
  }
3300
- const Ye = ({
3300
+ const Fe = ({
3301
3301
  text: t,
3302
3302
  frame: r,
3303
3303
  details: n,
@@ -3374,7 +3374,7 @@ const Ye = ({
3374
3374
  extrapolateRight: "clamp"
3375
3375
  }), b = [];
3376
3376
  for (let y = i; y > 0; y--) {
3377
- const v = Math.max(r - y * 2, 0), x = _(
3377
+ const v = Math.max(r - y * 2, 0), $ = _(
3378
3378
  v,
3379
3379
  [0, c],
3380
3380
  [0.5, 1],
@@ -3394,7 +3394,7 @@ const Ye = ({
3394
3394
  top: 0,
3395
3395
  left: 0,
3396
3396
  opacity: g,
3397
- transform: `scale(${x * 2})`,
3397
+ transform: `scale(${$ * 2})`,
3398
3398
  pointerEvents: "none"
3399
3399
  },
3400
3400
  children: t
@@ -3510,15 +3510,15 @@ const Ye = ({
3510
3510
  const v = document.createElement("canvas").getContext("2d");
3511
3511
  if (!v) return [];
3512
3512
  v.font = `${b}px ${n.fontFamily || "Arial, sans-serif"}`;
3513
- const x = d.split(" ");
3513
+ const $ = d.split(" ");
3514
3514
  let g = [], m = "";
3515
- return x.forEach(($) => {
3516
- const N = m ? `${m} ${$}` : $;
3517
- v.measureText(N).width > u ? (g.push(m), m = $) : m = N;
3515
+ return $.forEach((x) => {
3516
+ const N = m ? `${m} ${x}` : x;
3517
+ v.measureText(N).width > u ? (g.push(m), m = x) : m = N;
3518
3518
  }), m && g.push(m), g;
3519
3519
  }, i = n.width || 300, o = a(t, i, n.fontSize), h = s / c, e = 0.3, l = h / o.length, p = o.map((d, u) => {
3520
- const b = u * l * (1 - e) * 1.5, y = b + l, v = b * c, x = Math.max(y * c, h * c), g = _(r, [v, x], [0, 1], {
3521
- easing: I.out(I.cubic),
3520
+ const b = u * l * (1 - e) * 1.5, y = b + l, v = b * c, $ = Math.max(y * c, h * c), g = _(r, [v, $], [0, 1], {
3521
+ easing: k.out(k.cubic),
3522
3522
  extrapolateLeft: "clamp",
3523
3523
  extrapolateRight: "clamp"
3524
3524
  }), m = _(g, [0, 1], [-n.fontSize, 0]);
@@ -3758,7 +3758,7 @@ const Oe = ({ text: t, frame: r }) => {
3758
3758
  details: i,
3759
3759
  marqueeDetails: o
3760
3760
  }) => {
3761
- const h = Nt(), e = typeof r == "number" && !isNaN(r) ? r : h, l = Math.max(0, e - (n || 0)), p = Math.min(1, Math.max(0, l / (s || 1))), d = i.width || 300, u = i.height || 100, b = (o == null ? void 0 : o.direction) || "horizontal", y = b === "static", v = Math.min(15, Math.max(1, Number((o == null ? void 0 : o.repeatX) ?? 5))), x = Math.min(15, Math.max(1, Number((o == null ? void 0 : o.repeatY) ?? 5))), g = (o == null ? void 0 : o.baseSpeed) !== void 0 ? Number(o.baseSpeed) : 2, m = (o == null ? void 0 : o.speedVariation) !== void 0 ? Number(o.speedVariation) : 0.5, $ = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialBaseSpeed) !== void 0 ? Number(o.initialBaseSpeed) : g, N = o != null && o.hasInitialValue ? $ + (g - $) * p : g, k = y ? 0 : N * 400, w = y ? 0 : N * 400, S = (o == null ? void 0 : o.scaleFactor) !== void 0 ? Number(o.scaleFactor) : 1, M = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialScaleFactor) !== void 0 ? Number(o.initialScaleFactor) : S, F = o != null && o.hasInitialValue ? M + (S - M) * p : S, R = (o == null ? void 0 : o.lineOffset) !== void 0 ? Number(o.lineOffset) : 0.5, X = (o == null ? void 0 : o.gapX) !== void 0 ? Number(o.gapX) : 60, P = (o == null ? void 0 : o.gapY) !== void 0 ? Number(o.gapY) : 60, B = X / 100 * d, V = P / 100 * u, Y = d * F + B, W = u * F + V, U = Dt(i), z = b === "vertical" || b === "up" || b === "down", D = b === "diagonal", dt = (v - 1) / 2, et = (x - 1) / 2, K = x, nt = v, j = Array.from({ length: K }, (C, G) => G - et), Q = Array.from({ length: nt }, (C, G) => G - dt), pt = (C, G, T, lt) => /* @__PURE__ */ f(
3761
+ const h = Nt(), e = typeof r == "number" && !isNaN(r) ? r : h, l = Math.max(0, e - (n || 0)), p = Math.min(1, Math.max(0, l / (s || 1))), d = i.width || 300, u = i.height || 100, b = (o == null ? void 0 : o.direction) || "horizontal", y = b === "static", v = Math.min(15, Math.max(1, Number((o == null ? void 0 : o.repeatX) ?? 5))), $ = Math.min(15, Math.max(1, Number((o == null ? void 0 : o.repeatY) ?? 5))), g = (o == null ? void 0 : o.baseSpeed) !== void 0 ? Number(o.baseSpeed) : 2, m = (o == null ? void 0 : o.speedVariation) !== void 0 ? Number(o.speedVariation) : 0.5, x = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialBaseSpeed) !== void 0 ? Number(o.initialBaseSpeed) : g, N = o != null && o.hasInitialValue ? x + (g - x) * p : g, I = y ? 0 : N * 400, S = y ? 0 : N * 400, M = (o == null ? void 0 : o.scaleFactor) !== void 0 ? Number(o.scaleFactor) : 1, w = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialScaleFactor) !== void 0 ? Number(o.initialScaleFactor) : M, Y = o != null && o.hasInitialValue ? w + (M - w) * p : M, R = (o == null ? void 0 : o.lineOffset) !== void 0 ? Number(o.lineOffset) : 0.5, X = (o == null ? void 0 : o.gapX) !== void 0 ? Number(o.gapX) : 60, P = (o == null ? void 0 : o.gapY) !== void 0 ? Number(o.gapY) : 60, B = X / 100 * d, V = P / 100 * u, F = d * Y + B, W = u * Y + V, U = Dt(i), z = b === "vertical" || b === "up" || b === "down", D = b === "diagonal", dt = (v - 1) / 2, et = ($ - 1) / 2, K = $, nt = v, j = Array.from({ length: K }, (C, G) => G - et), Q = Array.from({ length: nt }, (C, G) => G - dt), pt = (C, G, T, lt) => /* @__PURE__ */ f(
3762
3762
  "span",
3763
3763
  {
3764
3764
  style: {
@@ -3766,7 +3766,7 @@ const Oe = ({ text: t, frame: r }) => {
3766
3766
  position: "absolute",
3767
3767
  left: `calc(50% + ${G}px)`,
3768
3768
  top: `calc(50% + ${T}px)`,
3769
- transform: `translate(-50%, -50%) scale(${F})`,
3769
+ transform: `translate(-50%, -50%) scale(${Y})`,
3770
3770
  transformOrigin: "center center",
3771
3771
  opacity: lt ? 1 : 0.85,
3772
3772
  whiteSpace: "nowrap"
@@ -3787,9 +3787,9 @@ const Oe = ({ text: t, frame: r }) => {
3787
3787
  children: Q.map((C, G) => {
3788
3788
  let T = G % 2 === 0 ? 1 : -1;
3789
3789
  b === "up" && (T = -1), b === "down" && (T = 1);
3790
- const lt = 1 + G % 2 * (m * 0.5), q = w > 0 && T !== 0 ? T * (l * w * 0.1 * lt) + C * (W * R) : C * (W * R), Z = w === 0 || T === 0 ? 0 : (q % W + W) % W - W / 2;
3790
+ const lt = 1 + G % 2 * (m * 0.5), q = S > 0 && T !== 0 ? T * (l * S * 0.1 * lt) + C * (W * R) : C * (W * R), Z = S === 0 || T === 0 ? 0 : (q % W + W) % W - W / 2;
3791
3791
  return j.map((at, tt) => {
3792
- const yt = C * Y, rt = at * W + Z;
3792
+ const yt = C * F, rt = at * W + Z;
3793
3793
  return pt(
3794
3794
  `v-${G}-${tt}`,
3795
3795
  yt,
@@ -3809,9 +3809,9 @@ const Oe = ({ text: t, frame: r }) => {
3809
3809
  overflow: "visible"
3810
3810
  },
3811
3811
  children: j.map((C, G) => {
3812
- const T = G % 2 === 0 ? 1 : -1, lt = G % 2 === 0 ? 1 : -1, q = 1 + G % 2 * (m * 0.5), Z = k > 0 ? T * (l * k * 0.1 * q) + C * (Y * R) : C * (Y * R), at = k === 0 ? 0 : (Z % Y + Y) % Y - Y / 2, tt = w > 0 ? lt * (l * w * 0.1 * q) + C * (W * R) : C * (W * R), yt = w === 0 ? 0 : (tt % W + W) % W - W / 2;
3812
+ const T = G % 2 === 0 ? 1 : -1, lt = G % 2 === 0 ? 1 : -1, q = 1 + G % 2 * (m * 0.5), Z = I > 0 ? T * (l * I * 0.1 * q) + C * (F * R) : C * (F * R), at = I === 0 ? 0 : (Z % F + F) % F - F / 2, tt = S > 0 ? lt * (l * S * 0.1 * q) + C * (W * R) : C * (W * R), yt = S === 0 ? 0 : (tt % W + W) % W - W / 2;
3813
3813
  return Q.map((rt, ct) => {
3814
- const st = rt * Y + at, ut = C * W + yt;
3814
+ const st = rt * F + at, ut = C * W + yt;
3815
3815
  return pt(
3816
3816
  `d-${G}-${ct}`,
3817
3817
  st,
@@ -3833,9 +3833,9 @@ const Oe = ({ text: t, frame: r }) => {
3833
3833
  children: j.map((C, G) => {
3834
3834
  let T = G % 2 === 0 ? 1 : -1;
3835
3835
  b === "left" && (T = -1), b === "right" && (T = 1);
3836
- const lt = 1 + G % 2 * (m * 0.5), q = k > 0 && T !== 0 ? T * (l * k * 0.1 * lt) + C * (Y * R) : C * (Y * R), Z = k === 0 || T === 0 ? 0 : (q % Y + Y) % Y - Y / 2;
3836
+ const lt = 1 + G % 2 * (m * 0.5), q = I > 0 && T !== 0 ? T * (l * I * 0.1 * lt) + C * (F * R) : C * (F * R), Z = I === 0 || T === 0 ? 0 : (q % F + F) % F - F / 2;
3837
3837
  return Q.map((at, tt) => {
3838
- const yt = at * Y + Z, rt = C * W;
3838
+ const yt = at * F + Z, rt = C * W;
3839
3839
  return pt(
3840
3840
  `h-${G}-${tt}`,
3841
3841
  yt,
@@ -3856,25 +3856,25 @@ const Oe = ({ text: t, frame: r }) => {
3856
3856
  details: i,
3857
3857
  echoesDetails: o
3858
3858
  }) => {
3859
- const h = Nt(), e = typeof r == "number" && !isNaN(r) ? r : h, l = i.width || 300, p = i.height || 100, d = (o == null ? void 0 : o.keepStill) || "both", u = Number((o == null ? void 0 : o.toRepeatCount) ?? 5), b = Number((o == null ? void 0 : o.toScaleDown) ?? 0.3), y = Number((o == null ? void 0 : o.toCenterX) ?? 0.5), v = Number((o == null ? void 0 : o.toCenterY) ?? 0.5), x = (o == null ? void 0 : o.initialRepeatCount) !== void 0 ? Number(o.initialRepeatCount) : u, g = (o == null ? void 0 : o.initialScaleDown) !== void 0 ? Number(o.initialScaleDown) : 1, m = (o == null ? void 0 : o.initialCenterX) !== void 0 ? Number(o.initialCenterX) : y, $ = (o == null ? void 0 : o.initialCenterY) !== void 0 ? Number(o.initialCenterY) : v, N = Math.max(0, e - (n || 0)), k = Math.min(1, Math.max(0, N / (s || 1)));
3860
- let S = c + (a - c) * k;
3861
- d === "initial" ? S = 0 : d === "final" && (S = 1);
3862
- const M = Math.max(
3859
+ const h = Nt(), e = typeof r == "number" && !isNaN(r) ? r : h, l = i.width || 300, p = i.height || 100, d = (o == null ? void 0 : o.keepStill) || "both", u = Number((o == null ? void 0 : o.toRepeatCount) ?? 5), b = Number((o == null ? void 0 : o.toScaleDown) ?? 0.3), y = Number((o == null ? void 0 : o.toCenterX) ?? 0.5), v = Number((o == null ? void 0 : o.toCenterY) ?? 0.5), $ = (o == null ? void 0 : o.initialRepeatCount) !== void 0 ? Number(o.initialRepeatCount) : u, g = (o == null ? void 0 : o.initialScaleDown) !== void 0 ? Number(o.initialScaleDown) : 1, m = (o == null ? void 0 : o.initialCenterX) !== void 0 ? Number(o.initialCenterX) : y, x = (o == null ? void 0 : o.initialCenterY) !== void 0 ? Number(o.initialCenterY) : v, N = Math.max(0, e - (n || 0)), I = Math.min(1, Math.max(0, N / (s || 1)));
3860
+ let M = c + (a - c) * I;
3861
+ d === "initial" ? M = 0 : d === "final" && (M = 1);
3862
+ const w = Math.max(
3863
3863
  1,
3864
- Math.round(_(S, [0, 1], [x, u]))
3865
- ), F = _(
3866
- S,
3864
+ Math.round(_(M, [0, 1], [$, u]))
3865
+ ), Y = _(
3866
+ M,
3867
3867
  [0, 1],
3868
3868
  [g, b]
3869
3869
  ), R = _(
3870
- S,
3870
+ M,
3871
3871
  [0, 1],
3872
3872
  [m, y]
3873
3873
  ), X = _(
3874
- S,
3874
+ M,
3875
3875
  [0, 1],
3876
- [$, v]
3877
- ), P = Dt(i), B = Array.from({ length: M }, (V, Y) => Y);
3876
+ [x, v]
3877
+ ), P = Dt(i), B = Array.from({ length: w }, (V, F) => F);
3878
3878
  return /* @__PURE__ */ f(
3879
3879
  "div",
3880
3880
  {
@@ -3885,7 +3885,7 @@ const Oe = ({ text: t, frame: r }) => {
3885
3885
  overflow: "hidden"
3886
3886
  },
3887
3887
  children: B.map((V) => {
3888
- const Y = M > 1 ? V / (M - 1) : 0, W = 1 - Y * (1 - Math.max(0.01, F)), U = (R - 0.5) * l * Y, z = (X - 0.5) * p * Y;
3888
+ const F = w > 1 ? V / (w - 1) : 0, W = 1 - F * (1 - Math.max(0.01, Y)), U = (R - 0.5) * l * F, z = (X - 0.5) * p * F;
3889
3889
  return /* @__PURE__ */ f(
3890
3890
  "span",
3891
3891
  {
@@ -3918,7 +3918,7 @@ const Oe = ({ text: t, frame: r }) => {
3918
3918
  details: i,
3919
3919
  wiggleDetails: o
3920
3920
  }) => {
3921
- const h = Nt(), e = typeof r == "number" && !isNaN(r) ? r : h, l = Number((o == null ? void 0 : o.wiggleX) ?? 20), p = Number((o == null ? void 0 : o.wiggleY) ?? 20), d = Number((o == null ? void 0 : o.speed) ?? 3), u = Number((o == null ? void 0 : o.angle) ?? 10), b = Number((o == null ? void 0 : o.seed) ?? 1), y = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialWiggleX) !== void 0 ? Number(o.initialWiggleX) : l, v = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialWiggleY) !== void 0 ? Number(o.initialWiggleY) : p, x = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialSpeed) !== void 0 ? Number(o.initialSpeed) : d, g = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialAngle) !== void 0 ? Number(o.initialAngle) : u, m = Math.max(0, e - (n || 0)), $ = Math.min(1, Math.max(0, m / (s || 1))), N = o != null && o.hasInitialValue ? y + (l - y) * $ : l, k = o != null && o.hasInitialValue ? v + (p - v) * $ : p, w = o != null && o.hasInitialValue ? x + (d - x) * $ : d, S = o != null && o.hasInitialValue ? g + (u - g) * $ : u, M = e * (w * 0.08), F = b * 12.345, R = Math.sin(M + F) * Math.cos(M * 0.65 + F) * N, X = Math.cos(M * 0.85 + F) * Math.sin(M * 1.15 + F) * k, P = Math.sin(M * 0.9 + F * 1.35) * S, B = Dt(i);
3921
+ const h = Nt(), e = typeof r == "number" && !isNaN(r) ? r : h, l = Number((o == null ? void 0 : o.wiggleX) ?? 20), p = Number((o == null ? void 0 : o.wiggleY) ?? 20), d = Number((o == null ? void 0 : o.speed) ?? 3), u = Number((o == null ? void 0 : o.angle) ?? 10), b = Number((o == null ? void 0 : o.seed) ?? 1), y = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialWiggleX) !== void 0 ? Number(o.initialWiggleX) : l, v = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialWiggleY) !== void 0 ? Number(o.initialWiggleY) : p, $ = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialSpeed) !== void 0 ? Number(o.initialSpeed) : d, g = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialAngle) !== void 0 ? Number(o.initialAngle) : u, m = Math.max(0, e - (n || 0)), x = Math.min(1, Math.max(0, m / (s || 1))), N = o != null && o.hasInitialValue ? y + (l - y) * x : l, I = o != null && o.hasInitialValue ? v + (p - v) * x : p, S = o != null && o.hasInitialValue ? $ + (d - $) * x : d, M = o != null && o.hasInitialValue ? g + (u - g) * x : u, w = e * (S * 0.08), Y = b * 12.345, R = Math.sin(w + Y) * Math.cos(w * 0.65 + Y) * N, X = Math.cos(w * 0.85 + Y) * Math.sin(w * 1.15 + Y) * I, P = Math.sin(w * 0.9 + Y * 1.35) * M, B = Dt(i);
3922
3922
  return /* @__PURE__ */ f(
3923
3923
  "div",
3924
3924
  {
@@ -3981,10 +3981,10 @@ const Oe = ({ text: t, frame: r }) => {
3981
3981
  details: i,
3982
3982
  noiseTileDetails: o
3983
3983
  }) => {
3984
- const h = Nt(), e = typeof r == "number" && !isNaN(r) ? r : h, l = i.width || 300, p = i.height || 100, d = (o == null ? void 0 : o.keepStill) || "both", u = Number((o == null ? void 0 : o.toXRepetitions) ?? (o == null ? void 0 : o.xRepetitions) ?? 5), b = Number((o == null ? void 0 : o.toYRepetitions) ?? (o == null ? void 0 : o.yRepetitions) ?? 5), y = Number((o == null ? void 0 : o.toGapX) ?? (o == null ? void 0 : o.gapX) ?? 12), v = Number((o == null ? void 0 : o.toGapY) ?? (o == null ? void 0 : o.gapY) ?? 12), x = Number((o == null ? void 0 : o.toScale) ?? (o == null ? void 0 : o.scale) ?? 1), g = Number((o == null ? void 0 : o.toNoiseScale) ?? (o == null ? void 0 : o.noiseScale) ?? 1.5), m = Number((o == null ? void 0 : o.toNoiseMoveX) ?? (o == null ? void 0 : o.noiseMoveX) ?? 0.6), $ = Number((o == null ? void 0 : o.toNoiseMoveY) ?? (o == null ? void 0 : o.noiseMoveY) ?? 0.4), N = Number((o == null ? void 0 : o.toFps) ?? (o == null ? void 0 : o.fps) ?? 12), k = Number((o == null ? void 0 : o.toThreshold) ?? (o == null ? void 0 : o.threshold) ?? 0.45), w = Number((o == null ? void 0 : o.toSeedOffset) ?? (o == null ? void 0 : o.seedOffset) ?? 0), S = !!(o != null && o.hasInitialValue), M = S ? Number((o == null ? void 0 : o.initialXRepetitions) ?? u) : u, F = S ? Number((o == null ? void 0 : o.initialYRepetitions) ?? b) : b, R = S ? Number((o == null ? void 0 : o.initialGapX) ?? y) : y, X = S ? Number((o == null ? void 0 : o.initialGapY) ?? v) : v, P = S ? Number((o == null ? void 0 : o.initialScale) ?? x) : x, B = S ? Number((o == null ? void 0 : o.initialNoiseScale) ?? g) : g, V = S ? Number((o == null ? void 0 : o.initialNoiseMoveX) ?? m) : m, Y = S ? Number((o == null ? void 0 : o.initialNoiseMoveY) ?? $) : $, W = S ? Number((o == null ? void 0 : o.initialFps) ?? N) : N, U = S ? Number((o == null ? void 0 : o.initialThreshold) ?? k) : k, z = S ? Number((o == null ? void 0 : o.initialSeedOffset) ?? w) : w, D = Math.max(0, e - (n || 0)), dt = Math.min(1, Math.max(0, D / (s || 1)));
3984
+ const h = Nt(), e = typeof r == "number" && !isNaN(r) ? r : h, l = i.width || 300, p = i.height || 100, d = (o == null ? void 0 : o.keepStill) || "both", u = Number((o == null ? void 0 : o.toXRepetitions) ?? (o == null ? void 0 : o.xRepetitions) ?? 5), b = Number((o == null ? void 0 : o.toYRepetitions) ?? (o == null ? void 0 : o.yRepetitions) ?? 5), y = Number((o == null ? void 0 : o.toGapX) ?? (o == null ? void 0 : o.gapX) ?? 12), v = Number((o == null ? void 0 : o.toGapY) ?? (o == null ? void 0 : o.gapY) ?? 12), $ = Number((o == null ? void 0 : o.toScale) ?? (o == null ? void 0 : o.scale) ?? 1), g = Number((o == null ? void 0 : o.toNoiseScale) ?? (o == null ? void 0 : o.noiseScale) ?? 1.5), m = Number((o == null ? void 0 : o.toNoiseMoveX) ?? (o == null ? void 0 : o.noiseMoveX) ?? 0.6), x = Number((o == null ? void 0 : o.toNoiseMoveY) ?? (o == null ? void 0 : o.noiseMoveY) ?? 0.4), N = Number((o == null ? void 0 : o.toFps) ?? (o == null ? void 0 : o.fps) ?? 12), I = Number((o == null ? void 0 : o.toThreshold) ?? (o == null ? void 0 : o.threshold) ?? 0.45), S = Number((o == null ? void 0 : o.toSeedOffset) ?? (o == null ? void 0 : o.seedOffset) ?? 0), M = !!(o != null && o.hasInitialValue), w = M ? Number((o == null ? void 0 : o.initialXRepetitions) ?? u) : u, Y = M ? Number((o == null ? void 0 : o.initialYRepetitions) ?? b) : b, R = M ? Number((o == null ? void 0 : o.initialGapX) ?? y) : y, X = M ? Number((o == null ? void 0 : o.initialGapY) ?? v) : v, P = M ? Number((o == null ? void 0 : o.initialScale) ?? $) : $, B = M ? Number((o == null ? void 0 : o.initialNoiseScale) ?? g) : g, V = M ? Number((o == null ? void 0 : o.initialNoiseMoveX) ?? m) : m, F = M ? Number((o == null ? void 0 : o.initialNoiseMoveY) ?? x) : x, W = M ? Number((o == null ? void 0 : o.initialFps) ?? N) : N, U = M ? Number((o == null ? void 0 : o.initialThreshold) ?? I) : I, z = M ? Number((o == null ? void 0 : o.initialSeedOffset) ?? S) : S, D = Math.max(0, e - (n || 0)), dt = Math.min(1, Math.max(0, D / (s || 1)));
3985
3985
  let K = c + (a - c) * dt;
3986
3986
  d === "initial" ? K = 0 : d === "final" && (K = 1);
3987
- const nt = Math.max(1, Math.round(_(K, [0, 1], [M, u]))), j = Math.max(1, Math.round(_(K, [0, 1], [F, b]))), Q = _(K, [0, 1], [R, y]), pt = _(K, [0, 1], [X, v]), C = _(K, [0, 1], [P, x]), G = _(K, [0, 1], [B, g]), T = _(K, [0, 1], [V, m]), lt = _(K, [0, 1], [Y, $]), q = Math.max(1, Math.round(_(K, [0, 1], [W, N]))), Z = _(K, [0, 1], [U, k]), at = _(K, [0, 1], [z, w]), tt = Dt(i), yt = Math.floor(D * (q / 30)), rt = (nt - 1) / 2, ct = (j - 1) / 2, st = [];
3987
+ const nt = Math.max(1, Math.round(_(K, [0, 1], [w, u]))), j = Math.max(1, Math.round(_(K, [0, 1], [Y, b]))), Q = _(K, [0, 1], [R, y]), pt = _(K, [0, 1], [X, v]), C = _(K, [0, 1], [P, $]), G = _(K, [0, 1], [B, g]), T = _(K, [0, 1], [V, m]), lt = _(K, [0, 1], [F, x]), q = Math.max(1, Math.round(_(K, [0, 1], [W, N]))), Z = _(K, [0, 1], [U, I]), at = _(K, [0, 1], [z, S]), tt = Dt(i), yt = Math.floor(D * (q / 30)), rt = (nt - 1) / 2, ct = (j - 1) / 2, st = [];
3988
3988
  for (let ut = 0; ut < j; ut++)
3989
3989
  for (let ht = 0; ht < nt; ht++) {
3990
3990
  const vt = ht / Math.max(1, nt) * G, $t = ut / Math.max(1, j) * G, It = yt * 0.1 + at, ft = gn(
@@ -3992,11 +3992,11 @@ const Oe = ({ text: t, frame: r }) => {
3992
3992
  $t + yt * lt * 0.05,
3993
3993
  It,
3994
3994
  at
3995
- ), Yt = ht === Math.floor(rt) && ut === Math.floor(ct) || ft >= Z, Rt = ht - rt, Xt = ut - ct, Pt = Q / 100 * l, zt = pt / 100 * p, Et = Rt * (l * C + Pt), _t = Xt * (p * C + zt);
3995
+ ), Ft = ht === Math.floor(rt) && ut === Math.floor(ct) || ft >= Z, Rt = ht - rt, Xt = ut - ct, Pt = Q / 100 * l, zt = pt / 100 * p, Et = Rt * (l * C + Pt), _t = Xt * (p * C + zt);
3996
3996
  st.push({
3997
3997
  col: ht,
3998
3998
  row: ut,
3999
- visible: Yt,
3999
+ visible: Ft,
4000
4000
  posX: Et,
4001
4001
  posY: _t
4002
4002
  });
@@ -4097,25 +4097,25 @@ const Oe = ({ text: t, frame: r }) => {
4097
4097
  if (!g) return [];
4098
4098
  g.font = `${v}px ${n.fontFamily || "Arial, sans-serif"}`;
4099
4099
  const m = b.split(" ");
4100
- let $ = [], N = "";
4101
- return m.forEach((k) => {
4102
- const w = N ? `${N} ${k}` : k;
4103
- g.measureText(w).width > y ? ($.push(N), N = k) : N = w;
4104
- }), N && $.push(N), $;
4100
+ let x = [], N = "";
4101
+ return m.forEach((I) => {
4102
+ const S = N ? `${N} ${I}` : I;
4103
+ g.measureText(S).width > y ? (x.push(N), N = I) : N = S;
4104
+ }), N && x.push(N), x;
4105
4105
  }, o = (a - s) / c, h = n.width || 300, e = i(t, h, n.fontSize), l = s / c, p = 0.5, d = l / e.length, u = e.map((b, y) => {
4106
- const v = o + y * d * (1 - p) * 1.5, x = v + d, g = v * c, m = Math.min(
4107
- x * c,
4106
+ const v = o + y * d * (1 - p) * 1.5, $ = v + d, g = v * c, m = Math.min(
4107
+ $ * c,
4108
4108
  (o + l) * c
4109
- ), $ = _(r, [g, m], [0, 1], {
4110
- easing: I.in(I.cubic),
4109
+ ), x = _(r, [g, m], [0, 1], {
4110
+ easing: k.in(k.cubic),
4111
4111
  extrapolateLeft: "clamp",
4112
4112
  extrapolateRight: "clamp"
4113
- }), N = _($, [0, 1], [0, -n.fontSize]);
4113
+ }), N = _(x, [0, 1], [0, -n.fontSize]);
4114
4114
  return {
4115
4115
  text: b,
4116
- progress: $,
4116
+ progress: x,
4117
4117
  y: N,
4118
- opacity: 1 - $
4118
+ opacity: 1 - x
4119
4119
  };
4120
4120
  });
4121
4121
  return /* @__PURE__ */ f(
@@ -4258,14 +4258,14 @@ const Oe = ({ text: t, frame: r }) => {
4258
4258
  details: b,
4259
4259
  frame: y,
4260
4260
  animationTextInFrames: v,
4261
- animationTextOutFrames: x,
4261
+ animationTextOutFrames: $,
4262
4262
  animationTextLoopFrames: g,
4263
4263
  animationTextTimedFrames: m = 0,
4264
- durationInFrames: $,
4264
+ durationInFrames: x,
4265
4265
  animationFonts: N
4266
4266
  }) => {
4267
- var St, Yt, Rt, Xt, Pt, zt, Et, _t, Lt, Ht, Ut, Zt, Qt, tr;
4268
- const k = v, w = $ - x, S = n ? k >= y : !1, M = s ? y >= w : !1, F = e && e.length > 0, R = l && l.length > 0, X = p && p.length > 0, P = d && d.length > 0, B = ((St = e == null ? void 0 : e[0]) == null ? void 0 : St.durationInFrames) || v, V = ((Yt = e == null ? void 0 : e[0]) == null ? void 0 : Yt.delay) || 0, Y = B + V, W = ((Rt = l == null ? void 0 : l[0]) == null ? void 0 : Rt.durationInFrames) || x, U = ((Xt = l == null ? void 0 : l[0]) == null ? void 0 : Xt.delay) || 0, z = W + U, D = Math.max(0, $ - z), dt = ((Pt = d == null ? void 0 : d[0]) == null ? void 0 : Pt.delay) || 0, et = dt, K = dt + (((zt = d == null ? void 0 : d[0]) == null ? void 0 : zt.durationInFrames) || m), nt = F && !n && (X ? y < Y : y < D), j = R && !s && y >= D, Q = P && !nt && !j && y >= et && y <= K, pt = X && !c && !nt && !j && !Q, G = ((H, L, E) => {
4267
+ var St, Ft, Rt, Xt, Pt, zt, Et, _t, Lt, Ht, Ut, Zt, Qt, tr;
4268
+ const I = v, S = x - $, M = n ? I >= y : !1, w = s ? y >= S : !1, Y = e && e.length > 0, R = l && l.length > 0, X = p && p.length > 0, P = d && d.length > 0, B = ((St = e == null ? void 0 : e[0]) == null ? void 0 : St.durationInFrames) || v, V = ((Ft = e == null ? void 0 : e[0]) == null ? void 0 : Ft.delay) || 0, F = B + V, W = ((Rt = l == null ? void 0 : l[0]) == null ? void 0 : Rt.durationInFrames) || $, U = ((Xt = l == null ? void 0 : l[0]) == null ? void 0 : Xt.delay) || 0, z = W + U, D = Math.max(0, x - z), dt = ((Pt = d == null ? void 0 : d[0]) == null ? void 0 : Pt.delay) || 0, et = dt, K = dt + (((zt = d == null ? void 0 : d[0]) == null ? void 0 : zt.durationInFrames) || m), nt = Y && !n && (X ? y < F : y < D), j = R && !s && y >= D, Q = P && !nt && !j && y >= et && y <= K, pt = X && !c && !nt && !j && !Q, G = ((H, L, E) => {
4269
4269
  const it = document.createElement("canvas").getContext("2d");
4270
4270
  if (!it) return [];
4271
4271
  it.font = `${E}px Arial`;
@@ -4286,9 +4286,9 @@ const Oe = ({ text: t, frame: r }) => {
4286
4286
  }
4287
4287
  return O;
4288
4288
  })(t, b.width, b.fontSize);
4289
- if (n === "typeWriterTextAnimationIn" && S)
4289
+ if (n === "typeWriterTextAnimationIn" && M)
4290
4290
  return /* @__PURE__ */ f(
4291
- Fe,
4291
+ Ye,
4292
4292
  {
4293
4293
  frame: y,
4294
4294
  durationInFrames: v,
@@ -4296,9 +4296,9 @@ const Oe = ({ text: t, frame: r }) => {
4296
4296
  style: b
4297
4297
  }
4298
4298
  );
4299
- if (n === "backgroundTextAnimationIn" && S)
4299
+ if (n === "backgroundTextAnimationIn" && M)
4300
4300
  return /* @__PURE__ */ f(
4301
- Ye,
4301
+ Fe,
4302
4302
  {
4303
4303
  text: t,
4304
4304
  frame: y,
@@ -4306,7 +4306,7 @@ const Oe = ({ text: t, frame: r }) => {
4306
4306
  animationTextInFrames: v
4307
4307
  }
4308
4308
  );
4309
- if (n === "soundWaveTextAnimationIn" && S)
4309
+ if (n === "soundWaveTextAnimationIn" && M)
4310
4310
  return /* @__PURE__ */ f(
4311
4311
  Re,
4312
4312
  {
@@ -4316,7 +4316,7 @@ const Oe = ({ text: t, frame: r }) => {
4316
4316
  details: b
4317
4317
  }
4318
4318
  );
4319
- if (n === "countDownTextAnimationIn" && S)
4319
+ if (n === "countDownTextAnimationIn" && M)
4320
4320
  return /* @__PURE__ */ f(
4321
4321
  Xe,
4322
4322
  {
@@ -4326,7 +4326,7 @@ const Oe = ({ text: t, frame: r }) => {
4326
4326
  details: b
4327
4327
  }
4328
4328
  );
4329
- if (n === "partialSlideIn" && S)
4329
+ if (n === "partialSlideIn" && M)
4330
4330
  return /* @__PURE__ */ f(
4331
4331
  Be,
4332
4332
  {
@@ -4337,7 +4337,7 @@ const Oe = ({ text: t, frame: r }) => {
4337
4337
  fps: r
4338
4338
  }
4339
4339
  );
4340
- if (!S && !M) {
4340
+ if (!M && !w) {
4341
4341
  if (c === "spinTextAnimationLoop")
4342
4342
  return /* @__PURE__ */ f(Pe, { text: t, frame: y, fps: r });
4343
4343
  if (c === "rotate3dTextAnimationLoop")
@@ -4346,7 +4346,7 @@ const Oe = ({ text: t, frame: r }) => {
4346
4346
  {
4347
4347
  text: t,
4348
4348
  frame: y,
4349
- durationInFrames: $
4349
+ durationInFrames: x
4350
4350
  }
4351
4351
  );
4352
4352
  if (c === "textFontChangeAnimationLoop")
@@ -4370,7 +4370,7 @@ const Oe = ({ text: t, frame: r }) => {
4370
4370
  (ot) => ot.property === "textGridMarqueeTextAnimationLoop" || ot.property === "textGridMarquee" || ot.id === "textGridMarquee"
4371
4371
  )) || (p == null ? void 0 : p.find(
4372
4372
  (ot) => ot.property === "textGridMarqueeTextAnimationLoop" || ot.property === "textGridMarquee" || ot.id === "textGridMarquee"
4373
- )), J = (E == null ? void 0 : E.delay) || 0, it = (E == null ? void 0 : E.durationInFrames) || (g > 0 ? g : $), O = J + it, A = y >= J && y <= O;
4373
+ )), J = (E == null ? void 0 : E.delay) || 0, it = (E == null ? void 0 : E.durationInFrames) || (g > 0 ? g : x), O = J + it, A = y >= J && y <= O;
4374
4374
  if (console.log(
4375
4375
  `[SpecialEffect Marquee] frame: ${y.toFixed(2)}, range: [${J}, ${O}], active: ${A}`
4376
4376
  ), A) {
@@ -4396,7 +4396,7 @@ const Oe = ({ text: t, frame: r }) => {
4396
4396
  (ot) => ot.property === "inwardEchoes" || ot.id === "inwardEchoes"
4397
4397
  )) || (p == null ? void 0 : p.find(
4398
4398
  (ot) => ot.property === "inwardEchoes" || ot.id === "inwardEchoes"
4399
- )), J = (E == null ? void 0 : E.delay) || 0, it = (E == null ? void 0 : E.durationInFrames) || (g > 0 ? g : $), O = J + it, A = y >= J && y <= O;
4399
+ )), J = (E == null ? void 0 : E.delay) || 0, it = (E == null ? void 0 : E.durationInFrames) || (g > 0 ? g : x), O = J + it, A = y >= J && y <= O;
4400
4400
  if (console.log(
4401
4401
  `[SpecialEffect InwardEchoes] frame: ${y.toFixed(2)}, range: [${J}, ${O}], active: ${A}`
4402
4402
  ), A) {
@@ -4422,7 +4422,7 @@ const Oe = ({ text: t, frame: r }) => {
4422
4422
  (ot) => ot.property === "wiggle" || ot.id === "wiggle"
4423
4423
  )) || (p == null ? void 0 : p.find(
4424
4424
  (ot) => ot.property === "wiggle" || ot.id === "wiggle"
4425
- )), J = (E == null ? void 0 : E.delay) || 0, it = (E == null ? void 0 : E.durationInFrames) || (g > 0 ? g : $), O = J + it, A = y >= J && y <= O;
4425
+ )), J = (E == null ? void 0 : E.delay) || 0, it = (E == null ? void 0 : E.durationInFrames) || (g > 0 ? g : x), O = J + it, A = y >= J && y <= O;
4426
4426
  if (console.log(
4427
4427
  `[SpecialEffect Wiggle] frame: ${y.toFixed(2)}, range: [${J}, ${O}], active: ${A}`
4428
4428
  ), A) {
@@ -4449,7 +4449,7 @@ const Oe = ({ text: t, frame: r }) => {
4449
4449
  (E) => E.property === "cardFlip" || E.id === "cardFlip"
4450
4450
  ));
4451
4451
  if (c === "cardFlip" || H) {
4452
- const E = (H == null ? void 0 : H.delay) || 0, J = (H == null ? void 0 : H.durationInFrames) || (g > 0 ? g : $), it = E + J, O = y >= E && y <= it;
4452
+ const E = (H == null ? void 0 : H.delay) || 0, J = (H == null ? void 0 : H.durationInFrames) || (g > 0 ? g : x), it = E + J, O = y >= E && y <= it;
4453
4453
  if (console.log(
4454
4454
  `[SpecialEffect CardFlip] frame: ${y.toFixed(2)}, range: [${E}, ${it}], active: ${O}`
4455
4455
  ), O) {
@@ -4476,7 +4476,7 @@ const Oe = ({ text: t, frame: r }) => {
4476
4476
  (E) => E.property === "noiseTile" || E.id === "noiseTile"
4477
4477
  ));
4478
4478
  if (c === "noiseTile" || L) {
4479
- const E = (L == null ? void 0 : L.delay) || 0, J = (L == null ? void 0 : L.durationInFrames) || (g > 0 ? g : $), it = E + J, O = y >= E && y <= it;
4479
+ const E = (L == null ? void 0 : L.delay) || 0, J = (L == null ? void 0 : L.durationInFrames) || (g > 0 ? g : x), it = E + J, O = y >= E && y <= it;
4480
4480
  if (console.log(
4481
4481
  `[SpecialEffect NoiseTile] frame: ${y.toFixed(2)}, range: [${E}, ${it}], active: ${O}`
4482
4482
  ), O) {
@@ -4498,38 +4498,38 @@ const Oe = ({ text: t, frame: r }) => {
4498
4498
  }
4499
4499
  }
4500
4500
  }
4501
- if (s === "typeWriterTextAnimationOut" && M)
4501
+ if (s === "typeWriterTextAnimationOut" && w)
4502
4502
  return /* @__PURE__ */ f(
4503
4503
  Le,
4504
4504
  {
4505
4505
  frame: y,
4506
- durationInFrames: $,
4506
+ durationInFrames: x,
4507
4507
  text: t,
4508
4508
  details: b,
4509
- animationDuration: x
4509
+ animationDuration: $
4510
4510
  }
4511
4511
  );
4512
- if (s === "partialSlideOut" && M)
4512
+ if (s === "partialSlideOut" && w)
4513
4513
  return /* @__PURE__ */ f(
4514
4514
  He,
4515
4515
  {
4516
4516
  text: t,
4517
4517
  frame: y,
4518
4518
  details: b,
4519
- animationTextOutFrames: x,
4519
+ animationTextOutFrames: $,
4520
4520
  fps: r,
4521
- durationInFrames: $
4521
+ durationInFrames: x
4522
4522
  }
4523
4523
  );
4524
- if (s === "backgroundTextAnimationOut" && M)
4524
+ if (s === "backgroundTextAnimationOut" && w)
4525
4525
  return /* @__PURE__ */ f(
4526
4526
  Ue,
4527
4527
  {
4528
4528
  text: t,
4529
4529
  frame: y,
4530
- animationTextOutFrames: x,
4530
+ animationTextOutFrames: $,
4531
4531
  details: b,
4532
- durationInFrames: $,
4532
+ durationInFrames: x,
4533
4533
  fps: r
4534
4534
  }
4535
4535
  );
@@ -4539,9 +4539,9 @@ const Oe = ({ text: t, frame: r }) => {
4539
4539
  ), lt = G.reduce(
4540
4540
  (H, L) => H + (L.trim() === "" ? 0 : L.split(/\s+/).length),
4541
4541
  0
4542
- ), q = G.length, Z = Ze[n], at = Qe[s], tt = Ke[c], yt = ((Et = e == null ? void 0 : e[0]) == null ? void 0 : Et.textAnimationMode) || ((_t = l == null ? void 0 : l[0]) == null ? void 0 : _t.textAnimationMode) || ((Lt = p == null ? void 0 : p[0]) == null ? void 0 : Lt.textAnimationMode) || ((Ht = d == null ? void 0 : d[0]) == null ? void 0 : Ht.textAnimationMode) || (n ? a : void 0) || (s ? i : void 0) || (c ? o : void 0) || a || o || "letter", rt = S ? a : M ? i : nt ? e[0].textAnimationMode || yt : j ? l[0].textAnimationMode || yt : Q ? d[0].textAnimationMode || yt : pt && p[0].textAnimationMode || yt, ct = nt ? e : j ? l : Q ? d : pt ? p : [], st = (H, L, E, J) => {
4542
+ ), q = G.length, Z = Ze[n], at = Qe[s], tt = Ke[c], yt = ((Et = e == null ? void 0 : e[0]) == null ? void 0 : Et.textAnimationMode) || ((_t = l == null ? void 0 : l[0]) == null ? void 0 : _t.textAnimationMode) || ((Lt = p == null ? void 0 : p[0]) == null ? void 0 : Lt.textAnimationMode) || ((Ht = d == null ? void 0 : d[0]) == null ? void 0 : Ht.textAnimationMode) || (n ? a : void 0) || (s ? i : void 0) || (c ? o : void 0) || a || o || "letter", rt = M ? a : w ? i : nt ? e[0].textAnimationMode || yt : j ? l[0].textAnimationMode || yt : Q ? d[0].textAnimationMode || yt : pt && p[0].textAnimationMode || yt, ct = nt ? e : j ? l : Q ? d : pt ? p : [], st = (H, L, E, J) => {
4543
4543
  var it, O, A;
4544
- if (S && Z)
4544
+ if (M && Z)
4545
4545
  return /* @__PURE__ */ f(
4546
4546
  Z,
4547
4547
  {
@@ -4555,7 +4555,7 @@ const Oe = ({ text: t, frame: r }) => {
4555
4555
  },
4556
4556
  J
4557
4557
  );
4558
- if (M && at)
4558
+ if (w && at)
4559
4559
  return /* @__PURE__ */ f(
4560
4560
  at,
4561
4561
  {
@@ -4564,13 +4564,13 @@ const Oe = ({ text: t, frame: r }) => {
4564
4564
  frame: y,
4565
4565
  textLength: E,
4566
4566
  fps: r,
4567
- animationTextOutFrames: x,
4568
- durationInFrames: $,
4567
+ animationTextOutFrames: $,
4568
+ durationInFrames: x,
4569
4569
  details: b
4570
4570
  },
4571
4571
  J
4572
4572
  );
4573
- if (c && !S && !M && tt)
4573
+ if (c && !M && !w && tt)
4574
4574
  return /* @__PURE__ */ f(
4575
4575
  tt,
4576
4576
  {
@@ -4693,35 +4693,35 @@ const Oe = ({ text: t, frame: r }) => {
4693
4693
  textAnimationModeTimed: b,
4694
4694
  basicCharAnimationsIn: y,
4695
4695
  basicCharAnimationsOut: v,
4696
- basicCharAnimationsLoop: x,
4696
+ basicCharAnimationsLoop: $,
4697
4697
  basicCharAnimationsTimed: g,
4698
4698
  loopComposition: m,
4699
- details: $,
4699
+ details: x,
4700
4700
  animationTextInFrames: N,
4701
- animationTextOutFrames: k,
4702
- animationTextLoopFrames: w,
4703
- animationTextTimedFrames: S,
4704
- durationInFrames: M,
4705
- animationFonts: F
4701
+ animationTextOutFrames: I,
4702
+ animationTextLoopFrames: S,
4703
+ animationTextTimedFrames: M,
4704
+ durationInFrames: w,
4705
+ animationFonts: Y
4706
4706
  }) => {
4707
4707
  const [R, X] = fr(r), P = Er(null);
4708
4708
  er(() => {
4709
4709
  if (n && P.current) {
4710
- const Y = P.current;
4711
- Y.focus();
4710
+ const F = P.current;
4711
+ F.focus();
4712
4712
  const W = window.getSelection(), U = document.createRange();
4713
- U.selectNodeContents(Y), W == null || W.removeAllRanges(), W == null || W.addRange(U);
4713
+ U.selectNodeContents(F), W == null || W.removeAllRanges(), W == null || W.addRange(U);
4714
4714
  } else {
4715
- const Y = window.getSelection();
4716
- Y == null || Y.removeAllRanges();
4715
+ const F = window.getSelection();
4716
+ F == null || F.removeAllRanges();
4717
4717
  }
4718
4718
  }, [n]), er(() => {
4719
4719
  R !== r && X(r);
4720
4720
  }, [r]);
4721
4721
  const B = () => {
4722
4722
  if (P.current) {
4723
- const Y = window.getSelection(), W = document.createRange();
4724
- W.selectNodeContents(P.current), W.collapse(!1), Y == null || Y.removeAllRanges(), Y == null || Y.addRange(W);
4723
+ const F = window.getSelection(), W = document.createRange();
4724
+ W.selectNodeContents(P.current), W.collapse(!1), F == null || F.removeAllRanges(), F == null || F.addRange(W);
4725
4725
  }
4726
4726
  };
4727
4727
  return /* @__PURE__ */ f(
@@ -4730,19 +4730,19 @@ const Oe = ({ text: t, frame: r }) => {
4730
4730
  "data-text-id": t,
4731
4731
  ref: P,
4732
4732
  contentEditable: n,
4733
- onClick: (Y) => {
4733
+ onClick: (F) => {
4734
4734
  var z;
4735
- Y.stopPropagation();
4735
+ F.stopPropagation();
4736
4736
  const W = window.getSelection(), U = P.current;
4737
4737
  if (W != null && W.rangeCount && U) {
4738
4738
  const D = W.getRangeAt(0);
4739
4739
  D.endOffset - D.startOffset === ((z = U.textContent) == null ? void 0 : z.length) && B();
4740
4740
  }
4741
4741
  },
4742
- onInput: (Y) => c(t, Y.target.innerText),
4743
- onBlur: (Y) => a(t, Y.target.innerText),
4742
+ onInput: (F) => c(t, F.target.innerText),
4743
+ onBlur: (F) => a(t, F.target.innerText),
4744
4744
  style: {
4745
- height: l === "textGridMarqueeTextAnimationLoop" || l === "textGridMarquee" ? $ != null && $.height ? `${$.height}px` : "100%" : "max-content",
4745
+ height: l === "textGridMarqueeTextAnimationLoop" || l === "textGridMarquee" ? x != null && x.height ? `${x.height}px` : "100%" : "max-content",
4746
4746
  boxShadow: "none",
4747
4747
  outline: "none",
4748
4748
  ...s,
@@ -4764,41 +4764,41 @@ const Oe = ({ text: t, frame: r }) => {
4764
4764
  textAnimationModeTimed: b,
4765
4765
  basicCharAnimationsIn: y,
4766
4766
  basicCharAnimationsOut: v,
4767
- basicCharAnimationsLoop: x,
4767
+ basicCharAnimationsLoop: $,
4768
4768
  basicCharAnimationsTimed: g,
4769
4769
  loopComposition: m,
4770
4770
  text: r,
4771
4771
  fps: i,
4772
- details: $,
4772
+ details: x,
4773
4773
  frame: o,
4774
4774
  animationTextInFrames: N,
4775
- animationTextOutFrames: k,
4776
- animationTextLoopFrames: w,
4777
- animationTextTimedFrames: S,
4778
- durationInFrames: M,
4779
- animationFonts: F
4775
+ animationTextOutFrames: I,
4776
+ animationTextLoopFrames: S,
4777
+ animationTextTimedFrames: M,
4778
+ durationInFrames: w,
4779
+ animationFonts: Y
4780
4780
  }
4781
4781
  )
4782
4782
  }
4783
4783
  );
4784
4784
  };
4785
- var Fr = function(t, r) {
4786
- return Fr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) {
4785
+ var Yr = function(t, r) {
4786
+ return Yr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, s) {
4787
4787
  n.__proto__ = s;
4788
4788
  } || function(n, s) {
4789
4789
  for (var c in s) Object.prototype.hasOwnProperty.call(s, c) && (n[c] = s[c]);
4790
- }, Fr(t, r);
4790
+ }, Yr(t, r);
4791
4791
  };
4792
4792
  function ar(t, r) {
4793
4793
  if (typeof r != "function" && r !== null)
4794
4794
  throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
4795
- Fr(t, r);
4795
+ Yr(t, r);
4796
4796
  function n() {
4797
4797
  this.constructor = t;
4798
4798
  }
4799
4799
  t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
4800
4800
  }
4801
- function Yr(t) {
4801
+ function Fr(t) {
4802
4802
  var r = typeof Symbol == "function" && Symbol.iterator, n = r && t[r], s = 0;
4803
4803
  if (n) return n.call(t);
4804
4804
  if (t && typeof t.length == "number") return {
@@ -4833,13 +4833,13 @@ function Xr(t, r, n) {
4833
4833
  function Vt(t) {
4834
4834
  return typeof t == "function";
4835
4835
  }
4836
- function Fn(t) {
4836
+ function Yn(t) {
4837
4837
  var r = function(s) {
4838
4838
  Error.call(s), s.stack = new Error().stack;
4839
4839
  }, n = t(r);
4840
4840
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
4841
4841
  }
4842
- var Mr = Fn(function(t) {
4842
+ var Mr = Yn(function(t) {
4843
4843
  return function(r) {
4844
4844
  t(this), this.message = r ? r.length + ` errors occurred during unsubscription:
4845
4845
  ` + r.map(function(n, s) {
@@ -4866,7 +4866,7 @@ var gr = function() {
4866
4866
  if (i)
4867
4867
  if (this._parentage = null, Array.isArray(i))
4868
4868
  try {
4869
- for (var o = Yr(i), h = o.next(); !h.done; h = o.next()) {
4869
+ for (var o = Fr(i), h = o.next(); !h.done; h = o.next()) {
4870
4870
  var e = h.value;
4871
4871
  e.remove(this);
4872
4872
  }
@@ -4892,7 +4892,7 @@ var gr = function() {
4892
4892
  if (p) {
4893
4893
  this._finalizers = null;
4894
4894
  try {
4895
- for (var d = Yr(p), u = d.next(); !u.done; u = d.next()) {
4895
+ for (var d = Fr(p), u = d.next(); !u.done; u = d.next()) {
4896
4896
  var b = u.value;
4897
4897
  try {
4898
4898
  Qr(b);
@@ -4942,7 +4942,7 @@ var gr = function() {
4942
4942
  var r = new t();
4943
4943
  return r.closed = !0, r;
4944
4944
  }(), t;
4945
- }(), Yn = gr.EMPTY;
4945
+ }(), Fn = gr.EMPTY;
4946
4946
  function Rn(t) {
4947
4947
  return t instanceof gr || t && "closed" in t && Vt(t.remove) && Vt(t.add) && Vt(t.unsubscribe);
4948
4948
  }
@@ -5176,7 +5176,7 @@ function cs(t) {
5176
5176
  }
5177
5177
  }, r;
5178
5178
  })(Cr);
5179
- var is = Fn(function(t) {
5179
+ var is = Yn(function(t) {
5180
5180
  return function() {
5181
5181
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
5182
5182
  };
@@ -5199,7 +5199,7 @@ var is = Fn(function(t) {
5199
5199
  if (s._throwIfClosed(), !s.isStopped) {
5200
5200
  s.currentObservers || (s.currentObservers = Array.from(s.observers));
5201
5201
  try {
5202
- for (var i = Yr(s.currentObservers), o = i.next(); !o.done; o = i.next()) {
5202
+ for (var i = Fr(s.currentObservers), o = i.next(); !o.done; o = i.next()) {
5203
5203
  var h = o.value;
5204
5204
  h.next(n);
5205
5205
  }
@@ -5247,7 +5247,7 @@ var is = Fn(function(t) {
5247
5247
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
5248
5248
  }, r.prototype._innerSubscribe = function(n) {
5249
5249
  var s = this, c = this, a = c.hasError, i = c.isStopped, o = c.observers;
5250
- return a || i ? Yn : (this.currentObservers = null, o.push(n), new gr(function() {
5250
+ return a || i ? Fn : (this.currentObservers = null, o.push(n), new gr(function() {
5251
5251
  s.currentObservers = null, Br(o, n);
5252
5252
  }));
5253
5253
  }, r.prototype._checkFinalizedStatuses = function(n) {
@@ -5276,7 +5276,7 @@ var is = Fn(function(t) {
5276
5276
  (s = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || s === void 0 || s.call(n);
5277
5277
  }, r.prototype._subscribe = function(n) {
5278
5278
  var s, c;
5279
- return (c = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(n)) !== null && c !== void 0 ? c : Yn;
5279
+ return (c = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(n)) !== null && c !== void 0 ? c : Fn;
5280
5280
  }, r;
5281
5281
  }(Xn);
5282
5282
  let wr = null;
@@ -5292,7 +5292,7 @@ function Bn({
5292
5292
  item: t,
5293
5293
  options: r
5294
5294
  }) {
5295
- var st, ut, ht, vt, $t, It, ft, St, Yt, Rt, Xt, Pt, zt, Et, _t, Lt, Ht, Ut, Zt, Qt, tr, H, L, E, J, it;
5295
+ var st, ut, ht, vt, $t, It, ft, St, Ft, Rt, Xt, Pt, zt, Et, _t, Lt, Ht, Ut, Zt, Qt, tr, H, L, E, J, it;
5296
5296
  const { handleTextChange: n, onTextBlur: s, fps: c, editableTextId: a, frame: i } = r, { id: o, details: h, animations: e } = t, { durationInFrames: l } = wt(t.display, c), p = [
5297
5297
  "opacity",
5298
5298
  "scale",
@@ -5328,11 +5328,11 @@ function Bn({
5328
5328
  (O) => p.some((A) => O.property === A) && O.textAnimationMode && O.textAnimationMode !== "all"
5329
5329
  ), y = (((vt = e == null ? void 0 : e.timed) == null ? void 0 : vt.composition) || []).filter(
5330
5330
  (O) => p.some((A) => O.property === A) && O.textAnimationMode && O.textAnimationMode !== "all"
5331
- ), v = new Set(d.map((O) => O.id)), x = new Set(u.map((O) => O.id)), g = new Set(
5331
+ ), v = new Set(d.map((O) => O.id)), $ = new Set(u.map((O) => O.id)), g = new Set(
5332
5332
  b.map((O) => O.id)
5333
5333
  ), m = new Set(
5334
5334
  y.map((O) => O.id)
5335
- ), $ = {
5335
+ ), x = {
5336
5336
  ...e,
5337
5337
  in: e != null && e.in ? {
5338
5338
  ...e.in,
@@ -5343,7 +5343,7 @@ function Bn({
5343
5343
  out: e != null && e.out ? {
5344
5344
  ...e.out,
5345
5345
  composition: e.out.composition.filter(
5346
- (O) => !x.has(O.id)
5346
+ (O) => !$.has(O.id)
5347
5347
  )
5348
5348
  } : void 0,
5349
5349
  loop: e != null && e.loop ? {
@@ -5358,19 +5358,19 @@ function Bn({
5358
5358
  (O) => !m.has(O.id)
5359
5359
  )
5360
5360
  } : void 0
5361
- }, { animationIn: N, animationOut: k, animationTimed: w } = Ft(
5362
- $,
5361
+ }, { animationIn: N, animationOut: I, animationTimed: S } = Yt(
5362
+ x,
5363
5363
  t,
5364
5364
  i,
5365
5365
  c,
5366
5366
  r
5367
- ), S = ($t = e == null ? void 0 : e.in) == null ? void 0 : $t.composition.find(
5367
+ ), M = ($t = e == null ? void 0 : e.in) == null ? void 0 : $t.composition.find(
5368
5368
  (O) => !p.some((A) => O.property === A)
5369
- ), M = (It = e == null ? void 0 : e.out) == null ? void 0 : It.composition.find(
5369
+ ), w = (It = e == null ? void 0 : e.out) == null ? void 0 : It.composition.find(
5370
5370
  (O) => !p.some((A) => O.property === A)
5371
- ), F = (ft = e == null ? void 0 : e.loop) == null ? void 0 : ft.composition.find(
5371
+ ), Y = (ft = e == null ? void 0 : e.loop) == null ? void 0 : ft.composition.find(
5372
5372
  (O) => !p.some((A) => O.property === A)
5373
- ), R = (S == null ? void 0 : S.property) || "", X = (M == null ? void 0 : M.property) || "", P = (F == null ? void 0 : F.property) || "", B = (S == null ? void 0 : S.textAnimationMode) || ((St = d[0]) == null ? void 0 : St.textAnimationMode) || (S ? "letter" : "all"), V = (M == null ? void 0 : M.textAnimationMode) || ((Yt = u[0]) == null ? void 0 : Yt.textAnimationMode) || (M ? "letter" : "all"), Y = (F == null ? void 0 : F.textAnimationMode) || ((Rt = b[0]) == null ? void 0 : Rt.textAnimationMode) || (F ? "letter" : "all"), W = ((Xt = y[0]) == null ? void 0 : Xt.textAnimationMode) || "all", U = (S == null ? void 0 : S.durationInFrames) || ((zt = (Pt = e == null ? void 0 : e.in) == null ? void 0 : Pt.composition[0]) == null ? void 0 : zt.durationInFrames) || 0, z = (M == null ? void 0 : M.durationInFrames) || ((_t = (Et = e == null ? void 0 : e.out) == null ? void 0 : Et.composition[0]) == null ? void 0 : _t.durationInFrames) || 0, D = (F == null ? void 0 : F.durationInFrames) || ((Ht = (Lt = e == null ? void 0 : e.loop) == null ? void 0 : Lt.composition[0]) == null ? void 0 : Ht.durationInFrames) || 0, dt = ((Ut = y[0]) == null ? void 0 : Ut.durationInFrames) || 0, et = [];
5373
+ ), R = (M == null ? void 0 : M.property) || "", X = (w == null ? void 0 : w.property) || "", P = (Y == null ? void 0 : Y.property) || "", B = (M == null ? void 0 : M.textAnimationMode) || ((St = d[0]) == null ? void 0 : St.textAnimationMode) || (M ? "letter" : "all"), V = (w == null ? void 0 : w.textAnimationMode) || ((Ft = u[0]) == null ? void 0 : Ft.textAnimationMode) || (w ? "letter" : "all"), F = (Y == null ? void 0 : Y.textAnimationMode) || ((Rt = b[0]) == null ? void 0 : Rt.textAnimationMode) || (Y ? "letter" : "all"), W = ((Xt = y[0]) == null ? void 0 : Xt.textAnimationMode) || "all", U = (M == null ? void 0 : M.durationInFrames) || ((zt = (Pt = e == null ? void 0 : e.in) == null ? void 0 : Pt.composition[0]) == null ? void 0 : zt.durationInFrames) || 0, z = (w == null ? void 0 : w.durationInFrames) || ((_t = (Et = e == null ? void 0 : e.out) == null ? void 0 : Et.composition[0]) == null ? void 0 : _t.durationInFrames) || 0, D = (Y == null ? void 0 : Y.durationInFrames) || ((Ht = (Lt = e == null ? void 0 : e.loop) == null ? void 0 : Lt.composition[0]) == null ? void 0 : Ht.durationInFrames) || 0, dt = ((Ut = y[0]) == null ? void 0 : Ut.durationInFrames) || 0, et = [];
5374
5374
  e != null && e.loop && e.loop.composition.forEach((O) => {
5375
5375
  var A;
5376
5376
  (A = O.details) != null && A.fonts && et.push(...O.details.fonts);
@@ -5415,7 +5415,7 @@ function Bn({
5415
5415
  textAnimationNameLoop: P,
5416
5416
  textAnimationModeIn: B,
5417
5417
  textAnimationModeOut: V,
5418
- textAnimationModeLoop: Y,
5418
+ textAnimationModeLoop: F,
5419
5419
  textAnimationModeTimed: W,
5420
5420
  basicCharAnimationsIn: d,
5421
5421
  basicCharAnimationsOut: u,
@@ -5436,7 +5436,7 @@ function Bn({
5436
5436
  Gt,
5437
5437
  {
5438
5438
  animationIn: a === o ? null : N,
5439
- animationOut: a === o ? null : k,
5439
+ animationOut: a === o ? null : I,
5440
5440
  basicCharAnimationsIn: d,
5441
5441
  basicCharAnimationsOut: u,
5442
5442
  frame: nt,
@@ -5447,7 +5447,7 @@ function Bn({
5447
5447
  children: /* @__PURE__ */ f(
5448
5448
  At,
5449
5449
  {
5450
- animationTimed: a === o ? null : w,
5450
+ animationTimed: a === o ? null : S,
5451
5451
  durationInFrames: l,
5452
5452
  frame: nt,
5453
5453
  style: {
@@ -5463,8 +5463,8 @@ function Bn({
5463
5463
  ...((J = e == null ? void 0 : e.timed) == null ? void 0 : J.composition) || [],
5464
5464
  ...((it = e == null ? void 0 : e.loop) == null ? void 0 : it.composition) || [],
5465
5465
  ...N || [],
5466
- ...k || [],
5467
- ...w || []
5466
+ ...I || [],
5467
+ ...S || []
5468
5468
  ],
5469
5469
  frame: nt,
5470
5470
  durationInFrames: l,
@@ -5490,7 +5490,7 @@ const Pn = ({
5490
5490
  options: r
5491
5491
  }) => {
5492
5492
  var z, D, dt, et, K, nt, j, Q, pt, C, G, T, lt, q;
5493
- const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, o = t.playbackRate || 1, { animationIn: h, animationOut: e, animationTimed: l } = Ft(
5493
+ const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, o = t.playbackRate || 1, { animationIn: h, animationOut: e, animationTimed: l } = Yt(
5494
5494
  i,
5495
5495
  t,
5496
5496
  s,
@@ -5501,24 +5501,24 @@ const Pn = ({
5501
5501
  y: 0,
5502
5502
  width: a.width,
5503
5503
  height: a.height
5504
- }, { durationInFrames: d } = wt(t.display, n), u = (s || 0) - t.display.from * n / 1e3, b = Ct(a, p, {}), { WebkitTextStroke: y } = b, v = ln(a, p), x = Vr(
5504
+ }, { durationInFrames: d } = wt(t.display, n), u = (s || 0) - t.display.from * n / 1e3, b = Ct(a, p, {}), { WebkitTextStroke: y } = b, v = ln(a, p), $ = Vr(
5505
5505
  a.effects,
5506
5506
  i,
5507
5507
  u
5508
- ), g = Wr(x), { filter: m, overlays: $ } = xn(x), N = (D = (z = i == null ? void 0 : i.loop) == null ? void 0 : z.composition) == null ? void 0 : D.find(
5508
+ ), g = Wr($), { filter: m, overlays: x } = xn($), N = (D = (z = i == null ? void 0 : i.loop) == null ? void 0 : z.composition) == null ? void 0 : D.find(
5509
5509
  (Z) => Z.property === "textGridMarqueeTextAnimationLoop" || Z.property === "textGridMarquee" || Z.property === "imageGridMarqueeTextAnimationLoop" || Z.property === "imageGridMarquee" || Z.id === "textGridMarquee" || Z.id === "imageGridMarquee"
5510
- ), k = !!(N && u >= (N.delay || 0) && u <= (N.delay || 0) + (N.durationInFrames || 60)), w = (et = (dt = i == null ? void 0 : i.loop) == null ? void 0 : dt.composition) == null ? void 0 : et.find(
5510
+ ), I = !!(N && u >= (N.delay || 0) && u <= (N.delay || 0) + (N.durationInFrames || 60)), S = (et = (dt = i == null ? void 0 : i.loop) == null ? void 0 : dt.composition) == null ? void 0 : et.find(
5511
5511
  (Z) => Z.property === "inwardEchoes" || Z.id === "inwardEchoes"
5512
- ), S = !!(w && u >= (w.delay || 0) && u <= (w.delay || 0) + (w.durationInFrames || 120)), M = (nt = (K = i == null ? void 0 : i.loop) == null ? void 0 : K.composition) == null ? void 0 : nt.find(
5512
+ ), M = !!(S && u >= (S.delay || 0) && u <= (S.delay || 0) + (S.durationInFrames || 120)), w = (nt = (K = i == null ? void 0 : i.loop) == null ? void 0 : K.composition) == null ? void 0 : nt.find(
5513
5513
  (Z) => Z.property === "wiggle" || Z.id === "wiggle"
5514
- ), F = !!(M && u >= (M.delay || 0) && u <= (M.delay || 0) + (M.durationInFrames || 120)), R = (Q = (j = i == null ? void 0 : i.loop) == null ? void 0 : j.composition) == null ? void 0 : Q.find(
5514
+ ), Y = !!(w && u >= (w.delay || 0) && u <= (w.delay || 0) + (w.durationInFrames || 120)), R = (Q = (j = i == null ? void 0 : i.loop) == null ? void 0 : j.composition) == null ? void 0 : Q.find(
5515
5515
  (Z) => Z.property === "cardFlip" || Z.id === "cardFlip"
5516
5516
  ), X = !!(R && u >= (R.delay || 0) && u <= (R.delay || 0) + (R.durationInFrames || 120)), P = [
5517
5517
  ...((pt = i == null ? void 0 : i.in) == null ? void 0 : pt.composition) || [],
5518
5518
  ...((C = i == null ? void 0 : i.out) == null ? void 0 : C.composition) || [],
5519
5519
  ...((G = i == null ? void 0 : i.timed) == null ? void 0 : G.composition) || [],
5520
5520
  ...((T = i == null ? void 0 : i.loop) == null ? void 0 : T.composition) || []
5521
- ], B = a.width || p.width || 300, V = a.height || p.height || 300, Y = /* @__PURE__ */ f(
5521
+ ], B = a.width || p.width || 300, V = a.height || p.height || 300, F = /* @__PURE__ */ f(
5522
5522
  sr,
5523
5523
  {
5524
5524
  "data-id": t.id,
@@ -5535,7 +5535,7 @@ const Pn = ({
5535
5535
  filter: m || void 0
5536
5536
  }
5537
5537
  }
5538
- ), W = () => k ? /* @__PURE__ */ f(
5538
+ ), W = () => I ? /* @__PURE__ */ f(
5539
5539
  bn,
5540
5540
  {
5541
5541
  src: a.src,
@@ -5554,16 +5554,16 @@ const Pn = ({
5554
5554
  fps: n,
5555
5555
  marqueeDetails: N == null ? void 0 : N.details
5556
5556
  }
5557
- ) : S ? /* @__PURE__ */ f(
5557
+ ) : M ? /* @__PURE__ */ f(
5558
5558
  vn,
5559
5559
  {
5560
5560
  src: a.src,
5561
5561
  isVideo: !0,
5562
5562
  frame: u,
5563
- delay: w == null ? void 0 : w.delay,
5564
- durationInFrames: w == null ? void 0 : w.durationInFrames,
5565
- from: w == null ? void 0 : w.from,
5566
- to: w == null ? void 0 : w.to,
5563
+ delay: S == null ? void 0 : S.delay,
5564
+ durationInFrames: S == null ? void 0 : S.durationInFrames,
5565
+ from: S == null ? void 0 : S.from,
5566
+ to: S == null ? void 0 : S.to,
5567
5567
  width: a.width,
5568
5568
  height: a.height,
5569
5569
  borderRadius: v.borderRadius,
@@ -5571,18 +5571,18 @@ const Pn = ({
5571
5571
  borderColor: a.borderColor,
5572
5572
  boxShadow: a.boxShadow,
5573
5573
  fps: n,
5574
- echoesDetails: w == null ? void 0 : w.details
5574
+ echoesDetails: S == null ? void 0 : S.details
5575
5575
  }
5576
- ) : F ? /* @__PURE__ */ f(
5576
+ ) : Y ? /* @__PURE__ */ f(
5577
5577
  mn,
5578
5578
  {
5579
5579
  src: a.src,
5580
5580
  isVideo: !0,
5581
5581
  frame: u,
5582
- delay: M == null ? void 0 : M.delay,
5583
- durationInFrames: M == null ? void 0 : M.durationInFrames,
5584
- from: M == null ? void 0 : M.from,
5585
- to: M == null ? void 0 : M.to,
5582
+ delay: w == null ? void 0 : w.delay,
5583
+ durationInFrames: w == null ? void 0 : w.durationInFrames,
5584
+ from: w == null ? void 0 : w.from,
5585
+ to: w == null ? void 0 : w.to,
5586
5586
  width: a.width,
5587
5587
  height: a.height,
5588
5588
  borderRadius: v.borderRadius,
@@ -5590,7 +5590,7 @@ const Pn = ({
5590
5590
  borderColor: a.borderColor,
5591
5591
  boxShadow: a.boxShadow,
5592
5592
  fps: n,
5593
- wiggleDetails: M == null ? void 0 : M.details
5593
+ wiggleDetails: w == null ? void 0 : w.details
5594
5594
  }
5595
5595
  ) : X ? /* @__PURE__ */ f(
5596
5596
  Or,
@@ -5605,9 +5605,9 @@ const Pn = ({
5605
5605
  borderRadius: v.borderRadius,
5606
5606
  boxShadow: a.boxShadow,
5607
5607
  cardFlipDetails: R == null ? void 0 : R.details,
5608
- children: Y
5608
+ children: F
5609
5609
  }
5610
- ) : Y, U = /* @__PURE__ */ f(
5610
+ ) : F, U = /* @__PURE__ */ f(
5611
5611
  Gt,
5612
5612
  {
5613
5613
  style: {
@@ -5660,7 +5660,7 @@ const Pn = ({
5660
5660
  style: {
5661
5661
  ...v,
5662
5662
  overflow: "visible",
5663
- boxShadow: k ? "none" : v.boxShadow
5663
+ boxShadow: I ? "none" : v.boxShadow
5664
5664
  },
5665
5665
  children: [
5666
5666
  g ? /* @__PURE__ */ f(
@@ -5672,11 +5672,11 @@ const Pn = ({
5672
5672
  children: W()
5673
5673
  }
5674
5674
  ) : W(),
5675
- $.map((Z) => /* @__PURE__ */ f("div", { style: Z.style }, Z.id))
5675
+ x.map((Z) => /* @__PURE__ */ f("div", { style: Z.style }, Z.id))
5676
5676
  ]
5677
5677
  }
5678
5678
  ),
5679
- !k && !S && !F && !X && /* @__PURE__ */ f(
5679
+ !I && !M && !Y && !X && /* @__PURE__ */ f(
5680
5680
  "div",
5681
5681
  {
5682
5682
  style: {
@@ -5807,11 +5807,11 @@ const ls = (t) => {
5807
5807
  }) => {
5808
5808
  const l = Er(null), p = Nt(), [d, u] = fr({ width: 400, height: 100 });
5809
5809
  er(() => {
5810
- u((x) => {
5810
+ u(($) => {
5811
5811
  var g, m;
5812
5812
  return {
5813
- width: ((g = l.current) == null ? void 0 : g.offsetWidth) ?? x.width,
5814
- height: ((m = l.current) == null ? void 0 : m.offsetHeight) ?? x.height
5813
+ width: ((g = l.current) == null ? void 0 : g.offsetWidth) ?? $.width,
5814
+ height: ((m = l.current) == null ? void 0 : m.offsetHeight) ?? $.height
5815
5815
  };
5816
5816
  });
5817
5817
  }, [p, u]);
@@ -6129,7 +6129,7 @@ const ws = ({
6129
6129
  let l = (e + 1) % 1;
6130
6130
  l = l * s;
6131
6131
  let p = Math.sin(Math.abs(e) * Math.PI);
6132
- return p = I.cubic(p), p = p * r, p = p * Math.sin((0.5 + o) * Math.PI), { x: l, y: p };
6132
+ return p = k.cubic(p), p = p * r, p = p * Math.sin((0.5 + o) * Math.PI), { x: l, y: p };
6133
6133
  }).sort((i, o) => i.x > o.x ? 1 : -1);
6134
6134
  }, Is = ({
6135
6135
  sections: t = 12,
@@ -6144,28 +6144,28 @@ const ws = ({
6144
6144
  topRoundness: e = 0.4,
6145
6145
  bottomRoundness: l = 0.4
6146
6146
  }) => {
6147
- const p = s, d = c, u = t, b = r % (2 * s / t), y = Array.from({ length: a }).map(($, N) => {
6148
- const k = N * i;
6147
+ const p = s, d = c, u = t, b = r % (2 * s / t), y = Array.from({ length: a }).map((x, N) => {
6148
+ const I = N * i;
6149
6149
  return ws({
6150
6150
  width: p,
6151
6151
  numberOfPoints: u,
6152
- offsetPixels: k + b,
6152
+ offsetPixels: I + b,
6153
6153
  amplitude: 0.5 * n
6154
6154
  });
6155
- }), v = p / u, x = e * v, g = l * v, m = ($, N) => {
6156
- const k = $.y <= 0, w = k ? x : g, S = k ? g : x, M = N.x + S, F = N.y, R = $.x - w, X = $.y, P = $.x, B = $.y;
6157
- return `C ${M} ${F}, ${R} ${X}, ${P} ${B}`;
6155
+ }), v = p / u, $ = e * v, g = l * v, m = (x, N) => {
6156
+ const I = x.y <= 0, S = I ? $ : g, M = I ? g : $, w = N.x + M, Y = N.y, R = x.x - S, X = x.y, P = x.x, B = x.y;
6157
+ return `C ${w} ${Y}, ${R} ${X}, ${P} ${B}`;
6158
6158
  };
6159
- return /* @__PURE__ */ f("div", { style: { width: s, height: c }, children: /* @__PURE__ */ f("svg", { width: p, height: d, viewBox: `0 -${0.5 * d} ${p} ${d}`, children: y.map(($, N) => {
6160
- const k = $[$.length - 1], w = Array.isArray(o) ? o[N % o.length] : o;
6159
+ return /* @__PURE__ */ f("div", { style: { width: s, height: c }, children: /* @__PURE__ */ f("svg", { width: p, height: d, viewBox: `0 -${0.5 * d} ${p} ${d}`, children: y.map((x, N) => {
6160
+ const I = x[x.length - 1], S = Array.isArray(o) ? o[N % o.length] : o;
6161
6161
  return /* @__PURE__ */ f(
6162
6162
  "path",
6163
6163
  {
6164
- d: `M 0 0, ${$.map((S, M, F) => {
6165
- const R = M === 0 ? { x: 0, y: 0 } : F[M - 1];
6166
- return m(S, R);
6167
- }).join(",")}, ${m({ x: p, y: 0 }, k)}`,
6168
- stroke: w,
6164
+ d: `M 0 0, ${x.map((M, w, Y) => {
6165
+ const R = w === 0 ? { x: 0, y: 0 } : Y[w - 1];
6166
+ return m(M, R);
6167
+ }).join(",")}, ${m({ x: p, y: 0 }, I)}`,
6168
+ stroke: S,
6169
6169
  strokeWidth: h,
6170
6170
  fill: "none"
6171
6171
  },
@@ -6223,11 +6223,11 @@ function Cn({
6223
6223
  }) {
6224
6224
  return gt({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Ns, { item: t, options: r }) }) });
6225
6225
  }
6226
- const Fs = (t, r) => {
6226
+ const Ys = (t, r) => {
6227
6227
  if (!r || r === t.length) return [...t];
6228
6228
  const n = r % t.length;
6229
6229
  return [...t.slice(n), ...t.slice(0, n)];
6230
- }, Ys = ({
6230
+ }, Fs = ({
6231
6231
  numberOfBumps: t = 8,
6232
6232
  frequencyData: r,
6233
6233
  maxDb: n = -30,
@@ -6261,16 +6261,16 @@ const Fs = (t, r) => {
6261
6261
  } : {
6262
6262
  viewBoxVerticalShift: -0.5 * l,
6263
6263
  scaling: 0.5
6264
- }, b = 0.15 * e, y = (e - 2 * b) / (t.length - 1), v = Array.from({ length: o }).map((x, g) => {
6264
+ }, b = 0.15 * e, y = (e - 2 * b) / (t.length - 1), v = Array.from({ length: o }).map(($, g) => {
6265
6265
  const m = 3 * g;
6266
- return Fs(t, m).map((N, k) => ({
6267
- x: b + k * y,
6268
- y: p * l * N * (1.2 - 0.5 * no(g * t.length + k))
6266
+ return Ys(t, m).map((N, I) => ({
6267
+ x: b + I * y,
6268
+ y: p * l * N * (1.2 - 0.5 * no(g * t.length + I))
6269
6269
  }));
6270
6270
  });
6271
- return /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f("svg", { width: e, height: l, viewBox: `0 ${d} ${e} ${l}`, children: v.map((x, g) => {
6272
- const m = x[x.length - 1], $ = Array.isArray(a) ? a[g % a.length] : a, N = Array.isArray(s) ? s[g % s.length] : s, k = {
6273
- stroke: $,
6271
+ return /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f("svg", { width: e, height: l, viewBox: `0 ${d} ${e} ${l}`, children: v.map(($, g) => {
6272
+ const m = $[$.length - 1], x = Array.isArray(a) ? a[g % a.length] : a, N = Array.isArray(s) ? s[g % s.length] : s, I = {
6273
+ stroke: x,
6274
6274
  strokeWidth: c,
6275
6275
  fill: N,
6276
6276
  style: {
@@ -6281,20 +6281,20 @@ const Fs = (t, r) => {
6281
6281
  i !== "over" && /* @__PURE__ */ f(
6282
6282
  "path",
6283
6283
  {
6284
- ...k,
6285
- d: `M 0 0, ${x.map((w, S, M) => {
6286
- const F = S === 0 ? { x: 0, y: 0 } : M[S - 1], R = F.x + 0.5 * y, X = F.y, P = w.x - 0.5 * y, B = w.y, V = w.x, Y = w.y;
6287
- return `C ${R} ${X}, ${P} ${B}, ${V} ${Y}`;
6284
+ ...I,
6285
+ d: `M 0 0, ${$.map((S, M, w) => {
6286
+ const Y = M === 0 ? { x: 0, y: 0 } : w[M - 1], R = Y.x + 0.5 * y, X = Y.y, P = S.x - 0.5 * y, B = S.y, V = S.x, F = S.y;
6287
+ return `C ${R} ${X}, ${P} ${B}, ${V} ${F}`;
6288
6288
  }).join(",")}, C ${m.x + 0.5 * y} ${m.y}, ${e - 0.5 * y} 0, ${e} 0`
6289
6289
  }
6290
6290
  ),
6291
6291
  i !== "under" && /* @__PURE__ */ f(
6292
6292
  "path",
6293
6293
  {
6294
- ...k,
6295
- d: `M 0 0, ${x.map((w, S, M) => {
6296
- const F = S === 0 ? { x: 0, y: 0 } : M[S - 1], R = F.x + 0.5 * y, X = -F.y, P = w.x - 0.5 * y, B = -w.y, V = w.x, Y = -w.y;
6297
- return `C ${R} ${X}, ${P} ${B}, ${V} ${Y}`;
6294
+ ...I,
6295
+ d: `M 0 0, ${$.map((S, M, w) => {
6296
+ const Y = M === 0 ? { x: 0, y: 0 } : w[M - 1], R = Y.x + 0.5 * y, X = -Y.y, P = S.x - 0.5 * y, B = -S.y, V = S.x, F = -S.y;
6297
+ return `C ${R} ${X}, ${P} ${B}, ${V} ${F}`;
6298
6298
  }).join(",")}, C ${m.x + 0.5 * y} ${-m.y}, ${e - 0.5 * y} 0, ${e} 0`
6299
6299
  }
6300
6300
  )
@@ -6314,17 +6314,17 @@ const Fs = (t, r) => {
6314
6314
  }) => {
6315
6315
  const l = Er(null), p = Nt(), [d, u] = fr({ width: 400, height: 100 });
6316
6316
  er(() => {
6317
- u((x) => {
6317
+ u(($) => {
6318
6318
  var g, m;
6319
6319
  return {
6320
- width: ((g = l.current) == null ? void 0 : g.offsetWidth) ?? x.width,
6321
- height: ((m = l.current) == null ? void 0 : m.offsetHeight) ?? x.height
6320
+ width: ((g = l.current) == null ? void 0 : g.offsetWidth) ?? $.width,
6321
+ height: ((m = l.current) == null ? void 0 : m.offsetHeight) ?? $.height
6322
6322
  };
6323
6323
  });
6324
6324
  }, [p, u]);
6325
6325
  const { width: b, height: y } = d;
6326
6326
  if (!n) return null;
6327
- const v = Ys({ frequencyData: n, minDb: e, maxDb: h });
6327
+ const v = Fs({ frequencyData: n, minDb: e, maxDb: h });
6328
6328
  return /* @__PURE__ */ f("div", { ref: l, style: { width: t, height: r }, children: /* @__PURE__ */ f(
6329
6329
  Rs,
6330
6330
  {
@@ -6387,7 +6387,7 @@ const jn = ({
6387
6387
  options: r
6388
6388
  }) => {
6389
6389
  var d, u, b, y;
6390
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: o, animationTimed: h } = Ft(
6390
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: o, animationTimed: h } = Yt(
6391
6391
  a,
6392
6392
  t,
6393
6393
  s,
@@ -6477,20 +6477,22 @@ const jn = ({
6477
6477
  easing: i
6478
6478
  });
6479
6479
  }, tn = (t, r, n, s) => {
6480
- var o, h, e, l;
6480
+ var o, h, e, l, p;
6481
6481
  const { property: c } = t;
6482
6482
  if (c === "move") {
6483
- const p = Number(((o = t.details) == null ? void 0 : o.fromX) ?? t.from ?? 0), d = Number(((h = t.details) == null ? void 0 : h.toX) ?? t.to ?? 0), u = Number(((e = t.details) == null ? void 0 : e.fromY) ?? 0), b = Number(((l = t.details) == null ? void 0 : l.toY) ?? 0), y = t.delay || 0, v = t.durationInFrames || 30, x = s ? [n - v - y, n - y] : [y, y + v], g = _(r, x, [p, d], {
6483
+ const d = Number(
6484
+ ((o = t.details) == null ? void 0 : o.fromX) ?? t.from ?? 0
6485
+ ), u = Number(((h = t.details) == null ? void 0 : h.toX) ?? t.to ?? 0), b = Number(((e = t.details) == null ? void 0 : e.fromY) ?? 0), y = Number(((l = t.details) == null ? void 0 : l.toY) ?? 0), v = Number(((p = t.details) == null ? void 0 : p.scale) || 1) || 1, $ = t.delay || 0, g = t.durationInFrames || 30, m = s ? [n - g - $, n - $] : [$, $ + g], x = _(r, m, [d, u], {
6484
6486
  extrapolateLeft: "clamp",
6485
6487
  extrapolateRight: "clamp",
6486
6488
  easing: t.ease
6487
- }), m = _(r, x, [u, b], {
6489
+ }), N = _(r, m, [b, y], {
6488
6490
  extrapolateLeft: "clamp",
6489
6491
  extrapolateRight: "clamp",
6490
6492
  easing: t.ease
6491
- });
6493
+ }), I = x / v, S = N / v;
6492
6494
  return {
6493
- transform: `translateX(${g}%) translateY(${m}%)`
6495
+ transform: `translateX(${I}px) translateY(${S}px)`
6494
6496
  };
6495
6497
  }
6496
6498
  const a = Ps(r, t, n, s), i = Gn();
@@ -6506,12 +6508,18 @@ const jn = ({
6506
6508
  const p = tn(l, n, r, !1);
6507
6509
  if (l.persist === !0 && n - (l.delay || 0) >= l.durationInFrames) {
6508
6510
  const u = l.to, b = Gn(), y = l.property === "move" ? (() => {
6509
- var g, m;
6510
- const v = Number(((g = l.details) == null ? void 0 : g.toX) ?? l.to ?? 0), x = Number(((m = l.details) == null ? void 0 : m.toY) ?? 0);
6511
+ var N, I, S;
6512
+ const v = Number(
6513
+ ((N = l.details) == null ? void 0 : N.toX) ?? l.to ?? 0
6514
+ ), $ = Number(
6515
+ ((I = l.details) == null ? void 0 : I.toY) ?? 0
6516
+ ), g = Number(((S = l.details) == null ? void 0 : S.scale) || 1) || 1, m = v / g, x = $ / g;
6511
6517
  return {
6512
- transform: `translateX(${v}%) translateY(${x}%)`
6518
+ transform: `translateX(${m}px) translateY(${x}px)`
6513
6519
  };
6514
- })() : (b[l.property] || b.default)(u);
6520
+ })() : (b[l.property] || b.default)(
6521
+ u
6522
+ );
6515
6523
  Object.keys(y).forEach((v) => {
6516
6524
  v === "transform" ? o[v] = o[v] ? {
6517
6525
  [v]: `${o[v][v]} ${y[v]}`
@@ -6544,7 +6552,7 @@ const jn = ({
6544
6552
  children: s,
6545
6553
  style: c = {}
6546
6554
  }) => {
6547
- var x;
6555
+ var $;
6548
6556
  const a = Nt(), i = rn(
6549
6557
  Ir(t),
6550
6558
  n,
@@ -6557,10 +6565,10 @@ const jn = ({
6557
6565
  !0
6558
6566
  ), h = Ot.useMemo(() => {
6559
6567
  const g = Object.keys(i).length > 0, m = t == null ? void 0 : t.reduce(
6560
- (N, k) => Math.min(N, k.delay || 0),
6568
+ (N, I) => Math.min(N, I.delay || 0),
6561
6569
  1 / 0
6562
- ), $ = a - (m || 0);
6563
- return g && $ < 0 ? { visibility: "hidden" } : i;
6570
+ ), x = a - (m || 0);
6571
+ return g && x < 0 ? { visibility: "hidden" } : i;
6564
6572
  }, [i, a, t]), e = Ot.useMemo(() => {
6565
6573
  if (a > n)
6566
6574
  return { visibility: "hidden" };
@@ -6568,30 +6576,30 @@ const jn = ({
6568
6576
  if (!g || g.length === 0) return {};
6569
6577
  let m = 0;
6570
6578
  g.forEach((N) => {
6571
- const k = (N.durationInFrames || 0) + (N.delay || 0);
6572
- k > m && (m = k);
6579
+ const I = (N.durationInFrames || 0) + (N.delay || 0);
6580
+ I > m && (m = I);
6573
6581
  });
6574
- const $ = Math.max(0, n - m);
6575
- return a < $ ? {} : o;
6582
+ const x = Math.max(0, n - m);
6583
+ return a < x ? {} : o;
6576
6584
  }, [o, a, r, n]), p = ((c == null ? void 0 : c.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), d = p ? parseFloat(p[1]) : 0, u = -d, b = Ot.useMemo(() => {
6577
6585
  const g = {
6578
6586
  ...h
6579
6587
  // , ...timedStyle
6580
6588
  };
6581
- return Object.entries(e).forEach(([m, $]) => {
6582
- m === "transform" ? g[m] = `${g[m] || ""} ${$ || ""}`.trim() : m in g && typeof g[m] == "number" && typeof $ == "number" ? g[m] = g[m] * $ : g[m] = $;
6589
+ return Object.entries(e).forEach(([m, x]) => {
6590
+ m === "transform" ? g[m] = `${g[m] || ""} ${x || ""}`.trim() : m in g && typeof g[m] == "number" && typeof x == "number" ? g[m] = g[m] * x : g[m] = x;
6583
6591
  }), g;
6584
6592
  }, [h, e]);
6585
- if ((x = b.transform) != null && x.includes("rotate")) {
6593
+ if (($ = b.transform) != null && $.includes("rotate")) {
6586
6594
  const g = b.transform;
6587
6595
  b.transform = g.replace(
6588
6596
  /rotate\(([^)]+)deg\)/,
6589
- (m, $) => `rotate(${parseFloat($) - u}deg)`
6597
+ (m, x) => `rotate(${parseFloat(x) - u}deg)`
6590
6598
  );
6591
6599
  }
6592
6600
  const y = yr(() => {
6593
- const g = b.transform || "", { translateX: m, translateY: $, scale: N, rotation: k, rotateY: w } = Es(g);
6594
- return `${m} ${$} ${N} ${k || `rotate(${d}deg)`} ${w}`.trim();
6601
+ const g = b.transform || "", { translateX: m, translateY: x, scale: N, rotation: I, rotateY: S } = Es(g);
6602
+ return `${m} ${x} ${N} ${I || `rotate(${d}deg)`} ${S}`.trim();
6595
6603
  }, [b, d]);
6596
6604
  let v = i;
6597
6605
  return d > 0 && v.transform && v.transform.includes("translateX") && (v = {
@@ -6640,20 +6648,20 @@ const jn = ({
6640
6648
  const l = t.match(/rotateY\([^)]+\)/g);
6641
6649
  return l && (a = l[l.length - 1]), { translateX: r, translateY: n, scale: s, rotation: c, rotateY: a };
6642
6650
  };
6643
- I.linear;
6644
- I.linear;
6645
- I.ease;
6646
- I.ease;
6647
- I.ease;
6648
- I.ease;
6649
- I.ease;
6650
- I.linear;
6651
- I.linear;
6651
+ k.linear;
6652
+ k.linear;
6653
+ k.ease;
6654
+ k.ease;
6655
+ k.ease;
6656
+ k.ease;
6657
+ k.ease;
6658
+ k.linear;
6659
+ k.linear;
6652
6660
  const An = ({
6653
6661
  item: t,
6654
6662
  options: r
6655
6663
  }) => {
6656
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: o } = wt(t.display, n), { animationIn: h, animationOut: e } = Ft(
6664
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: o } = wt(t.display, n), { animationIn: h, animationOut: e } = Yt(
6657
6665
  i,
6658
6666
  t,
6659
6667
  c,
@@ -6679,7 +6687,7 @@ const An = ({
6679
6687
  item: t,
6680
6688
  options: r
6681
6689
  }) => {
6682
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: o } = wt(t.display, n), { animationIn: h, animationOut: e } = Ft(
6690
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: o } = wt(t.display, n), { animationIn: h, animationOut: e } = Yt(
6683
6691
  i,
6684
6692
  t,
6685
6693
  c,
@@ -6709,21 +6717,21 @@ const An = ({
6709
6717
  item: t,
6710
6718
  options: r
6711
6719
  }) => {
6712
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: o } = wt(t.display, n), { animationIn: h, animationOut: e } = Ft(
6720
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: o } = wt(t.display, n), { animationIn: h, animationOut: e } = Yt(
6713
6721
  i,
6714
6722
  t,
6715
6723
  c,
6716
6724
  n
6717
- ), l = s == null ? void 0 : s[t.id], p = (y, v, x) => {
6718
- const g = x, m = x, $ = Math.PI * 2 / (y * 2);
6719
- let N = Number.POSITIVE_INFINITY, k = Number.NEGATIVE_INFINITY, w = Number.POSITIVE_INFINITY, S = Number.NEGATIVE_INFINITY;
6720
- for (let M = 0; M < y * 2; M++) {
6721
- const F = M % 2 === 0 ? x : v, R = $ * M - Math.PI / 2, X = g + F * Math.cos(R), P = m + F * Math.sin(R);
6722
- N = Math.min(N, X), k = Math.max(k, X), w = Math.min(w, P), S = Math.max(S, P);
6725
+ ), l = s == null ? void 0 : s[t.id], p = (y, v, $) => {
6726
+ const g = $, m = $, x = Math.PI * 2 / (y * 2);
6727
+ let N = Number.POSITIVE_INFINITY, I = Number.NEGATIVE_INFINITY, S = Number.POSITIVE_INFINITY, M = Number.NEGATIVE_INFINITY;
6728
+ for (let w = 0; w < y * 2; w++) {
6729
+ const Y = w % 2 === 0 ? $ : v, R = x * w - Math.PI / 2, X = g + Y * Math.cos(R), P = m + Y * Math.sin(R);
6730
+ N = Math.min(N, X), I = Math.max(I, X), S = Math.min(S, P), M = Math.max(M, P);
6723
6731
  }
6724
6732
  return {
6725
- width: k - N,
6726
- height: S - w
6733
+ width: I - N,
6734
+ height: M - S
6727
6735
  };
6728
6736
  };
6729
6737
  let d = a.outerRadius, u = a.innerRadius;
@@ -6732,7 +6740,7 @@ const An = ({
6732
6740
  a.points || 5,
6733
6741
  a.innerRadius || 0,
6734
6742
  a.outerRadius || 0
6735
- ), v = l != null && l.width ? l.width / y.width : 1, x = l != null && l.height ? l.height / y.height : 1, g = Math.max(v, x);
6743
+ ), v = l != null && l.width ? l.width / y.width : 1, $ = l != null && l.height ? l.height / y.height : 1, g = Math.max(v, $);
6736
6744
  d = (a.outerRadius || 0) * g, u = (a.innerRadius || 0) * g;
6737
6745
  }
6738
6746
  const b = /* @__PURE__ */ f(
@@ -6758,21 +6766,21 @@ const An = ({
6758
6766
  item: t,
6759
6767
  options: r
6760
6768
  }) => {
6761
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { animationIn: o, animationOut: h } = Ft(
6769
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { animationIn: o, animationOut: h } = Yt(
6762
6770
  i,
6763
6771
  t,
6764
6772
  c,
6765
6773
  n
6766
6774
  ), { durationInFrames: e } = wt(t.display, n), l = s == null ? void 0 : s[t.id], p = (b, y) => {
6767
- const v = y, x = y, g = Math.PI * 2 / b;
6768
- let m = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, N = Number.POSITIVE_INFINITY, k = Number.NEGATIVE_INFINITY;
6769
- for (let w = 0; w < b; w++) {
6770
- const S = g * w - Math.PI / 2, M = v + y * Math.cos(S), F = x + y * Math.sin(S);
6771
- m = Math.min(m, M), $ = Math.max($, M), N = Math.min(N, F), k = Math.max(k, F);
6775
+ const v = y, $ = y, g = Math.PI * 2 / b;
6776
+ let m = Number.POSITIVE_INFINITY, x = Number.NEGATIVE_INFINITY, N = Number.POSITIVE_INFINITY, I = Number.NEGATIVE_INFINITY;
6777
+ for (let S = 0; S < b; S++) {
6778
+ const M = g * S - Math.PI / 2, w = v + y * Math.cos(M), Y = $ + y * Math.sin(M);
6779
+ m = Math.min(m, w), x = Math.max(x, w), N = Math.min(N, Y), I = Math.max(I, Y);
6772
6780
  }
6773
6781
  return {
6774
- width: $ - m,
6775
- height: k - N
6782
+ width: x - m,
6783
+ height: I - N
6776
6784
  };
6777
6785
  };
6778
6786
  let d = a.radius;
@@ -6780,8 +6788,8 @@ const An = ({
6780
6788
  const b = p(
6781
6789
  a.points || 3,
6782
6790
  a.radius || 0
6783
- ), y = l != null && l.width ? l.width / b.width : 1, v = l != null && l.height ? l.height / b.height : 1, x = Math.max(y, v);
6784
- d = (a.radius || 0) * x;
6791
+ ), y = l != null && l.width ? l.width / b.width : 1, v = l != null && l.height ? l.height / b.height : 1, $ = Math.max(y, v);
6792
+ d = (a.radius || 0) * $;
6785
6793
  }
6786
6794
  const u = /* @__PURE__ */ f(
6787
6795
  cr,
@@ -6805,7 +6813,7 @@ const An = ({
6805
6813
  item: t,
6806
6814
  options: r
6807
6815
  }) => {
6808
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: o } = wt(t.display, n), { animationIn: h, animationOut: e } = Ft(
6816
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: o } = wt(t.display, n), { animationIn: h, animationOut: e } = Yt(
6809
6817
  i,
6810
6818
  t,
6811
6819
  c,
@@ -6943,20 +6951,22 @@ const An = ({
6943
6951
  easing: i
6944
6952
  });
6945
6953
  }, on = (t, r, n, s) => {
6946
- var o, h, e, l;
6954
+ var o, h, e, l, p;
6947
6955
  const { property: c } = t;
6948
6956
  if (c === "move") {
6949
- const p = Number(((o = t.details) == null ? void 0 : o.fromX) ?? t.from ?? 0), d = Number(((h = t.details) == null ? void 0 : h.toX) ?? t.to ?? 0), u = Number(((e = t.details) == null ? void 0 : e.fromY) ?? 0), b = Number(((l = t.details) == null ? void 0 : l.toY) ?? 0), y = t.delay || 0, v = t.durationInFrames || 30, x = s ? [n - v - y, n - y] : [y, y + v], g = _(r, x, [p, d], {
6957
+ const d = Number(
6958
+ ((o = t.details) == null ? void 0 : o.fromX) ?? t.from ?? 0
6959
+ ), u = Number(((h = t.details) == null ? void 0 : h.toX) ?? t.to ?? 0), b = Number(((e = t.details) == null ? void 0 : e.fromY) ?? 0), y = Number(((l = t.details) == null ? void 0 : l.toY) ?? 0), v = Number(((p = t.details) == null ? void 0 : p.scale) || 1) || 1, $ = t.delay || 0, g = t.durationInFrames || 30, m = s ? [n - g - $, n - $] : [$, $ + g], x = _(r, m, [d, u], {
6950
6960
  extrapolateLeft: "clamp",
6951
6961
  extrapolateRight: "clamp",
6952
6962
  easing: t.ease
6953
- }), m = _(r, x, [u, b], {
6963
+ }), N = _(r, m, [b, y], {
6954
6964
  extrapolateLeft: "clamp",
6955
6965
  extrapolateRight: "clamp",
6956
6966
  easing: t.ease
6957
- });
6967
+ }), I = x / v, S = N / v;
6958
6968
  return {
6959
- transform: `translateX(${g}%) translateY(${m}%)`
6969
+ transform: `translateX(${I}px) translateY(${S}px)`
6960
6970
  };
6961
6971
  }
6962
6972
  const a = _s(r, t, n, s), i = Qn();
@@ -6972,12 +6982,18 @@ const An = ({
6972
6982
  const p = on(l, n, r, !1);
6973
6983
  if (l.persist === !0 && n - (l.delay || 0) >= l.durationInFrames) {
6974
6984
  const u = l.to, b = Qn(), y = l.property === "move" ? (() => {
6975
- var g, m;
6976
- const v = Number(((g = l.details) == null ? void 0 : g.toX) ?? l.to ?? 0), x = Number(((m = l.details) == null ? void 0 : m.toY) ?? 0);
6985
+ var N, I, S;
6986
+ const v = Number(
6987
+ ((N = l.details) == null ? void 0 : N.toX) ?? l.to ?? 0
6988
+ ), $ = Number(
6989
+ ((I = l.details) == null ? void 0 : I.toY) ?? 0
6990
+ ), g = Number(((S = l.details) == null ? void 0 : S.scale) || 1) || 1, m = v / g, x = $ / g;
6977
6991
  return {
6978
- transform: `translateX(${v}%) translateY(${x}%)`
6992
+ transform: `translateX(${m}px) translateY(${x}px)`
6979
6993
  };
6980
- })() : (b[l.property] || b.default)(u);
6994
+ })() : (b[l.property] || b.default)(
6995
+ u
6996
+ );
6981
6997
  Object.keys(y).forEach((v) => {
6982
6998
  v === "transform" ? o[v] = o[v] ? {
6983
6999
  [v]: `${o[v][v]} ${y[v]}`
@@ -7015,7 +7031,7 @@ const An = ({
7015
7031
  children: i,
7016
7032
  style: o = {}
7017
7033
  }) => {
7018
- var S;
7034
+ var M;
7019
7035
  const h = kr(
7020
7036
  nr(t),
7021
7037
  s,
@@ -7034,46 +7050,46 @@ const An = ({
7034
7050
  !0
7035
7051
  ), p = Ot.useMemo(() => {
7036
7052
  var X;
7037
- const M = Object.keys(h).length > 0, F = (X = nr(t)) == null ? void 0 : X.reduce(
7053
+ const w = Object.keys(h).length > 0, Y = (X = nr(t)) == null ? void 0 : X.reduce(
7038
7054
  (P, B) => Math.min(P, B.delay || 0),
7039
7055
  1 / 0
7040
- ), R = c - (F || 0);
7041
- return M && R < 0 ? { visibility: a ? "visible" : "hidden" } : h;
7056
+ ), R = c - (Y || 0);
7057
+ return w && R < 0 ? { visibility: a ? "visible" : "hidden" } : h;
7042
7058
  }, [h, c, t, a]), d = Ot.useMemo(() => {
7043
- const M = nr(r);
7044
- if (!M || M.length === 0) return {};
7045
- let F = 0;
7046
- M.forEach((X) => {
7059
+ const w = nr(r);
7060
+ if (!w || w.length === 0) return {};
7061
+ let Y = 0;
7062
+ w.forEach((X) => {
7047
7063
  const P = (X.durationInFrames || 0) + (X.delay || 0);
7048
- P > F && (F = P);
7064
+ P > Y && (Y = P);
7049
7065
  });
7050
- const R = Math.max(0, s - F);
7066
+ const R = Math.max(0, s - Y);
7051
7067
  return c < R ? {} : c > s ? { visibility: a ? "visible" : "hidden" } : e;
7052
- }, [e, c, r, s, a]), b = ((o == null ? void 0 : o.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), y = b ? parseFloat(b[1]) : 0, v = -y, x = Ot.useMemo(() => {
7053
- const M = {
7068
+ }, [e, c, r, s, a]), b = ((o == null ? void 0 : o.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), y = b ? parseFloat(b[1]) : 0, v = -y, $ = Ot.useMemo(() => {
7069
+ const w = {
7054
7070
  ...p,
7055
7071
  ...l
7056
7072
  };
7057
- return Object.entries(d).forEach(([F, R]) => {
7058
- F === "transform" ? M[F] = `${M[F] || ""} ${R || ""}`.trim() : F in M && typeof M[F] == "number" && typeof R == "number" ? M[F] = M[F] * R : M[F] = R;
7059
- }), M;
7073
+ return Object.entries(d).forEach(([Y, R]) => {
7074
+ Y === "transform" ? w[Y] = `${w[Y] || ""} ${R || ""}`.trim() : Y in w && typeof w[Y] == "number" && typeof R == "number" ? w[Y] = w[Y] * R : w[Y] = R;
7075
+ }), w;
7060
7076
  }, [p, l, d]);
7061
- if ((S = x.transform) != null && S.includes("rotate")) {
7062
- const M = x.transform;
7063
- x.transform = M.replace(
7077
+ if ((M = $.transform) != null && M.includes("rotate")) {
7078
+ const w = $.transform;
7079
+ $.transform = w.replace(
7064
7080
  /rotate\(([^)]+)deg\)/,
7065
- (F, R) => `rotate(${parseFloat(R) - v}deg)`
7081
+ (Y, R) => `rotate(${parseFloat(R) - v}deg)`
7066
7082
  );
7067
7083
  }
7068
7084
  const g = yr(() => {
7069
- const M = x.transform || "", { translateX: F, translateY: R, scale: X, rotation: P, rotateY: B } = Ws(M);
7070
- return `${F} ${R} ${X} ${P || `rotate(${y}deg)`} ${B}`.trim();
7071
- }, [x, y]), {
7085
+ const w = $.transform || "", { translateX: Y, translateY: R, scale: X, rotation: P, rotateY: B } = Ws(w);
7086
+ return `${Y} ${R} ${X} ${P || `rotate(${y}deg)`} ${B}`.trim();
7087
+ }, [$, y]), {
7072
7088
  top: m,
7073
- left: $,
7089
+ left: x,
7074
7090
  position: N,
7075
- transform: k,
7076
- ...w
7091
+ transform: I,
7092
+ ...S
7077
7093
  } = o || {};
7078
7094
  return /* @__PURE__ */ f(
7079
7095
  "div",
@@ -7081,7 +7097,7 @@ const An = ({
7081
7097
  style: {
7082
7098
  width: "100%",
7083
7099
  height: "100%",
7084
- overflow: x.overflow || "visible",
7100
+ overflow: $.overflow || "visible",
7085
7101
  pointerEvents: "none"
7086
7102
  },
7087
7103
  children: /* @__PURE__ */ f(
@@ -7090,8 +7106,8 @@ const An = ({
7090
7106
  style: {
7091
7107
  width: "100%",
7092
7108
  height: "100%",
7093
- ...w,
7094
- ...x,
7109
+ ...S,
7110
+ ...$,
7095
7111
  rotate: `${v}deg`,
7096
7112
  overflow: "visible",
7097
7113
  transform: g,
@@ -7115,20 +7131,20 @@ const An = ({
7115
7131
  const l = t.match(/rotateY\([^)]+\)/g);
7116
7132
  return l && (a = l[l.length - 1]), { translateX: r, translateY: n, scale: s, rotation: c, rotateY: a };
7117
7133
  };
7118
- 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;
7134
+ k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.elastic(1), k.elastic(1), k.elastic(1), k.elastic(1), k.linear, k.linear, k.linear, k.linear, k.ease, k.ease, k.ease, k.ease, k.ease, k.ease, k.ease, k.ease, k.ease, k.ease;
7119
7135
  function Kn({
7120
7136
  item: t,
7121
7137
  options: r
7122
7138
  }) {
7123
- var F, R, X, P, B;
7124
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { width: i, height: o, strokeWidth: h, strokeBackground: e, strokeColors: l } = c, { animationIn: p, animationOut: d } = Ft(a, t), { durationInFrames: u } = wt(t.display, n), b = i, y = o, v = h, x = b, g = y, m = b, $ = y, N = x + g + m + $;
7125
- let k = 0;
7126
- if (((F = a == null ? void 0 : a.out) == null ? void 0 : F.name) === "progressSquareAnimationOut") {
7127
- const V = (R = a == null ? void 0 : a.out) == null ? void 0 : R.composition[0].durationInFrames, Y = Math.max(
7139
+ var Y, R, X, P, B;
7140
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { width: i, height: o, strokeWidth: h, strokeBackground: e, strokeColors: l } = c, { animationIn: p, animationOut: d } = Yt(a, t), { durationInFrames: u } = wt(t.display, n), b = i, y = o, v = h, $ = b, g = y, m = b, x = y, N = $ + g + m + x;
7141
+ let I = 0;
7142
+ if (((Y = a == null ? void 0 : a.out) == null ? void 0 : Y.name) === "progressSquareAnimationOut") {
7143
+ const V = (R = a == null ? void 0 : a.out) == null ? void 0 : R.composition[0].durationInFrames, F = Math.max(
7128
7144
  t.display.to * n / 1e3 - (s || 0) - 1,
7129
7145
  0
7130
7146
  );
7131
- k = Math.min(Y / V * 100, 100) / 100, Y > V && (k = 1);
7147
+ I = Math.min(F / V * 100, 100) / 100, F > V && (I = 1);
7132
7148
  }
7133
7149
  if (((X = a == null ? void 0 : a.in) == null ? void 0 : X.name) === "progressSquareAnimationIn") {
7134
7150
  const { from: V } = wt(
@@ -7137,10 +7153,10 @@ function Kn({
7137
7153
  to: t.display.to
7138
7154
  },
7139
7155
  n
7140
- ), Y = (P = a == null ? void 0 : a.in) == null ? void 0 : P.composition[0].durationInFrames, W = Math.max((s || 0) - V, 0);
7141
- W < Y ? k = Math.min(W / Y * 100, 100) / 100 : ((B = a == null ? void 0 : a.out) == null ? void 0 : B.name) !== "progressSquareAnimationOut" && (k = 1);
7156
+ ), F = (P = a == null ? void 0 : a.in) == null ? void 0 : P.composition[0].durationInFrames, W = Math.max((s || 0) - V, 0);
7157
+ W < F ? I = Math.min(W / F * 100, 100) / 100 : ((B = a == null ? void 0 : a.out) == null ? void 0 : B.name) !== "progressSquareAnimationOut" && (I = 1);
7142
7158
  }
7143
- const w = k * 100 / 100 * N, S = l[0] || "#4A90E2", M = /* @__PURE__ */ f(
7159
+ const S = I * 100 / 100 * N, M = l[0] || "#4A90E2", w = /* @__PURE__ */ f(
7144
7160
  Os,
7145
7161
  {
7146
7162
  style: Ct(
@@ -7188,13 +7204,13 @@ function Kn({
7188
7204
  position: "absolute",
7189
7205
  top: 0,
7190
7206
  left: 0,
7191
- width: Math.min(w, x),
7207
+ width: Math.min(S, $),
7192
7208
  height: v,
7193
- backgroundColor: S
7209
+ backgroundColor: M
7194
7210
  }
7195
7211
  }
7196
7212
  ),
7197
- w > x && /* @__PURE__ */ f(
7213
+ S > $ && /* @__PURE__ */ f(
7198
7214
  "div",
7199
7215
  {
7200
7216
  style: {
@@ -7202,12 +7218,12 @@ function Kn({
7202
7218
  top: 0,
7203
7219
  right: 0,
7204
7220
  width: v,
7205
- height: Math.min(w - x, g),
7206
- backgroundColor: S
7221
+ height: Math.min(S - $, g),
7222
+ backgroundColor: M
7207
7223
  }
7208
7224
  }
7209
7225
  ),
7210
- w > x + g && /* @__PURE__ */ f(
7226
+ S > $ + g && /* @__PURE__ */ f(
7211
7227
  "div",
7212
7228
  {
7213
7229
  style: {
@@ -7215,15 +7231,15 @@ function Kn({
7215
7231
  bottom: 0,
7216
7232
  right: 0,
7217
7233
  width: Math.min(
7218
- w - x - g,
7234
+ S - $ - g,
7219
7235
  m
7220
7236
  ),
7221
7237
  height: v,
7222
- backgroundColor: S
7238
+ backgroundColor: M
7223
7239
  }
7224
7240
  }
7225
7241
  ),
7226
- w > x + g + m && /* @__PURE__ */ f(
7242
+ S > $ + g + m && /* @__PURE__ */ f(
7227
7243
  "div",
7228
7244
  {
7229
7245
  style: {
@@ -7232,10 +7248,10 @@ function Kn({
7232
7248
  left: 0,
7233
7249
  width: v,
7234
7250
  height: Math.min(
7235
- w - x - g - m,
7236
- $
7251
+ S - $ - g - m,
7252
+ x
7237
7253
  ),
7238
- backgroundColor: S
7254
+ backgroundColor: M
7239
7255
  }
7240
7256
  }
7241
7257
  )
@@ -7245,7 +7261,7 @@ function Kn({
7245
7261
  )
7246
7262
  }
7247
7263
  );
7248
- return gt({ item: t, options: r, children: M });
7264
+ return gt({ item: t, options: r, children: w });
7249
7265
  }
7250
7266
  const Jn = (t) => {
7251
7267
  const { trackItemIds: r, transitionsMap: n, trackItemsMap: s } = t, c = /* @__PURE__ */ new Map();
@@ -7342,27 +7358,27 @@ function Cs({
7342
7358
  structure: d,
7343
7359
  frame: u,
7344
7360
  mergedTrackItemsDeatilsMap: b
7345
- } = r, y = or(e || {}), { trim: v, display: x } = t, g = o && o.some((k) => !!y[k]) ? o : Object.keys(y), m = Jn({
7361
+ } = r, y = or(e || {}), { trim: v, display: $ } = t, g = o && o.some((I) => !!y[I]) ? o : Object.keys(y), m = Jn({
7346
7362
  trackItemIds: or(g),
7347
7363
  transitionsMap: or(h || {}),
7348
7364
  trackItemsMap: y || {}
7349
- }), $ = (v == null ? void 0 : v.from) || 0;
7350
- g.filter((k) => !!y[k]).forEach((k) => {
7351
- const w = y[k];
7352
- w != null && w.display && (w.display.from = w.display.from - $, w.display.to = w.display.to - $);
7365
+ }), x = (v == null ? void 0 : v.from) || 0;
7366
+ g.filter((I) => !!y[I]).forEach((I) => {
7367
+ const S = y[I];
7368
+ S != null && S.display && (S.display.from = S.display.from - x, S.display.to = S.display.to - x);
7353
7369
  });
7354
- const N = m.map((k, w) => {
7355
- var F, R, X, P;
7356
- if (k.length === 1) {
7357
- if (!k[0]) return null;
7358
- const B = y[(F = k[0]) == null ? void 0 : F.id];
7370
+ const N = m.map((I, S) => {
7371
+ var Y, R, X, P;
7372
+ if (I.length === 1) {
7373
+ if (!I[0]) return null;
7374
+ const B = y[(Y = I[0]) == null ? void 0 : Y.id];
7359
7375
  if (!B) return null;
7360
- let V = {}, Y = {}, W = [];
7376
+ let V = {}, F = {}, W = [];
7361
7377
  if (B.type === "template") {
7362
7378
  const z = d == null ? void 0 : d.find((D) => D.id === B.id);
7363
7379
  W = (z == null ? void 0 : z.items) || [];
7364
7380
  for (const D in b)
7365
- z != null && z.items.includes(D) && (Y[D] = {
7381
+ z != null && z.items.includes(D) && (F[D] = {
7366
7382
  ...b[D]
7367
7383
  });
7368
7384
  return s(B, {
@@ -7371,10 +7387,10 @@ function Cs({
7371
7387
  onTextBlur: a,
7372
7388
  editableTextId: c,
7373
7389
  itemsTemplateIds: W,
7374
- itemsTemplateMap: Y,
7390
+ itemsTemplateMap: F,
7375
7391
  transitionsTemplateMap: V,
7376
7392
  itemStructure: d == null ? void 0 : d.find((D) => D.id === B.id),
7377
- frame: (u ?? 0) - x.from * p / 1e3,
7393
+ frame: (u ?? 0) - $.from * p / 1e3,
7378
7394
  size: {
7379
7395
  width: ((R = B.details) == null ? void 0 : R.width) || 0,
7380
7396
  height: ((X = B.details) == null ? void 0 : X.height) || 0
@@ -7399,14 +7415,14 @@ function Cs({
7399
7415
  isAnimationEditor: r.isAnimationEditor,
7400
7416
  insideTemplate: !0,
7401
7417
  size: l,
7402
- frame: (u ?? 0) - x.from * p / 1e3
7418
+ frame: (u ?? 0) - $.from * p / 1e3
7403
7419
  });
7404
7420
  }
7405
- const S = y[k[0].id], M = (((P = S == null ? void 0 : S.display) == null ? void 0 : P.from) || 0) / 1e3 * r.fps;
7406
- return /* @__PURE__ */ f(dn, { from: M, children: k.map((B) => {
7421
+ const M = y[I[0].id], w = (((P = M == null ? void 0 : M.display) == null ? void 0 : P.from) || 0) / 1e3 * r.fps;
7422
+ return /* @__PURE__ */ f(dn, { from: w, children: I.map((B) => {
7407
7423
  if (B.type === "transition") {
7408
- const V = B.duration / 1e3 * p, Y = oo[B.kind];
7409
- return Y ? Y({
7424
+ const V = B.duration / 1e3 * p, F = oo[B.kind];
7425
+ return F ? F({
7410
7426
  durationInFrames: V,
7411
7427
  id: B.id,
7412
7428
  direction: B.direction,
@@ -7422,7 +7438,7 @@ function Cs({
7422
7438
  isTransition: !0,
7423
7439
  size: l
7424
7440
  });
7425
- }) }, w);
7441
+ }) }, S);
7426
7442
  });
7427
7443
  return gt({ children: N, item: t, options: r });
7428
7444
  }
@@ -7431,7 +7447,7 @@ function zs({
7431
7447
  options: r,
7432
7448
  renderSequenceItem: n
7433
7449
  }) {
7434
- var k, w, S, M;
7450
+ var I, S, M, w;
7435
7451
  const {
7436
7452
  editableTextId: s,
7437
7453
  itemsTemplateIds: c,
@@ -7441,7 +7457,7 @@ function zs({
7441
7457
  onTextBlur: h,
7442
7458
  handleTextChange: e,
7443
7459
  itemStructure: l
7444
- } = r, { animations: p } = t, { durationInFrames: d } = wt(t.display, i), { animationIn: u, animationOut: b, animationTimed: y } = Ft(
7460
+ } = r, { animations: p } = t, { durationInFrames: d } = wt(t.display, i), { animationIn: u, animationOut: b, animationTimed: y } = Yt(
7445
7461
  p,
7446
7462
  t,
7447
7463
  o,
@@ -7451,9 +7467,9 @@ function zs({
7451
7467
  trackItemIds: or(c || []),
7452
7468
  transitionsMap: {},
7453
7469
  trackItemsMap: v
7454
- }).map((F, R) => {
7455
- if (F.length === 1) {
7456
- const X = v[F[0].id];
7470
+ }).map((Y, R) => {
7471
+ if (Y.length === 1) {
7472
+ const X = v[Y[0].id];
7457
7473
  if (!X) return null;
7458
7474
  let P = R;
7459
7475
  if (l) {
@@ -7472,12 +7488,12 @@ function zs({
7472
7488
  }) : null;
7473
7489
  }
7474
7490
  return null;
7475
- }), m = g && g.map((F) => F), $ = (o || 0) - t.display.from * i / 1e3, N = /* @__PURE__ */ f(
7491
+ }), m = g && g.map((Y) => Y), x = (o || 0) - t.display.from * i / 1e3, N = /* @__PURE__ */ f(
7476
7492
  Gt,
7477
7493
  {
7478
7494
  animationIn: u,
7479
7495
  animationOut: b,
7480
- frame: $,
7496
+ frame: x,
7481
7497
  durationInFrames: d,
7482
7498
  style: {
7483
7499
  width: t.details.width,
@@ -7488,7 +7504,7 @@ function zs({
7488
7504
  {
7489
7505
  animationTimed: y,
7490
7506
  durationInFrames: d,
7491
- frame: $,
7507
+ frame: x,
7492
7508
  style: {
7493
7509
  width: t.details.width,
7494
7510
  height: t.details.height
@@ -7498,15 +7514,15 @@ function zs({
7498
7514
  {
7499
7515
  item: t,
7500
7516
  keyframeAnimations: [
7501
- ...((k = p == null ? void 0 : p.in) == null ? void 0 : k.composition) || [],
7502
- ...((w = p == null ? void 0 : p.out) == null ? void 0 : w.composition) || [],
7503
- ...((S = p == null ? void 0 : p.timed) == null ? void 0 : S.composition) || [],
7504
- ...((M = p == null ? void 0 : p.loop) == null ? void 0 : M.composition) || [],
7517
+ ...((I = p == null ? void 0 : p.in) == null ? void 0 : I.composition) || [],
7518
+ ...((S = p == null ? void 0 : p.out) == null ? void 0 : S.composition) || [],
7519
+ ...((M = p == null ? void 0 : p.timed) == null ? void 0 : M.composition) || [],
7520
+ ...((w = p == null ? void 0 : p.loop) == null ? void 0 : w.composition) || [],
7505
7521
  ...u || [],
7506
7522
  ...b || [],
7507
7523
  ...y || []
7508
7524
  ],
7509
- frame: $,
7525
+ frame: x,
7510
7526
  durationInFrames: d,
7511
7527
  children: m
7512
7528
  }
@@ -7582,7 +7598,7 @@ export {
7582
7598
  ln as calculateMediaStyles,
7583
7599
  Dt as calculateTextStyles,
7584
7600
  Vr as getAnimatedRemotionEffects,
7585
- Ft as getAnimations,
7601
+ Yt as getAnimations,
7586
7602
  xn as getEffectsCssInfo,
7587
7603
  Jn as groupTrackItems,
7588
7604
  Wr as mapRemotionEffects