animot-presenter 0.6.8 → 0.6.9
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.
|
@@ -1699,7 +1699,9 @@
|
|
|
1699
1699
|
if (currentSlideIndex < slides.length - 1) animateToSlide(currentSlideIndex + 1);
|
|
1700
1700
|
else if (loop) {
|
|
1701
1701
|
const loopMode = project?.settings?.loopMode ?? ((project as any)?.mode === 'flow' ? 'reset' : 'transition');
|
|
1702
|
-
|
|
1702
|
+
// Single-slide decks can't transition to a different index
|
|
1703
|
+
// (animateToSlide early-returns), so reset to replay the entrance.
|
|
1704
|
+
if (loopMode === 'transition' && slides.length > 1) animateToSlide(0);
|
|
1703
1705
|
else resetToFirstSlide();
|
|
1704
1706
|
}
|
|
1705
1707
|
else isAutoplay = false;
|
|
@@ -1713,7 +1715,9 @@
|
|
|
1713
1715
|
animateToSlide(currentSlideIndex + 1);
|
|
1714
1716
|
} else if (loop) {
|
|
1715
1717
|
const loopMode = project?.settings?.loopMode ?? ((project as any)?.mode === 'flow' ? 'reset' : 'transition');
|
|
1716
|
-
|
|
1718
|
+
// Single-slide decks can't transition to a different index
|
|
1719
|
+
// (animateToSlide early-returns), so reset to replay the entrance.
|
|
1720
|
+
if (loopMode === 'transition' && slides.length > 1) {
|
|
1717
1721
|
animateToSlide(0);
|
|
1718
1722
|
} else {
|
|
1719
1723
|
resetToFirstSlide();
|
|
@@ -10737,7 +10737,7 @@ function Sh(t, e) {
|
|
|
10737
10737
|
const cA = /* @__PURE__ */ R(() => y(gn, Ke)), Fn = /* @__PURE__ */ R(() => o($)), Xn = /* @__PURE__ */ R(() => S(o(cA))), nn = /* @__PURE__ */ R(() => Math.min(o(Fn), o(Xn))), sn = /* @__PURE__ */ R(() => Math.abs(o(Fn) - o(Xn)));
|
|
10738
10738
|
var na = ih(), RA = Ht(na), Aa = lt(RA);
|
|
10739
10739
|
{
|
|
10740
|
-
var
|
|
10740
|
+
var Vt = (Ct) => {
|
|
10741
10741
|
var kA = rh(), $A = At(kA);
|
|
10742
10742
|
Re(
|
|
10743
10743
|
(ba) => {
|
|
@@ -10747,7 +10747,7 @@ function Sh(t, e) {
|
|
|
10747
10747
|
), ae(Ct, kA);
|
|
10748
10748
|
};
|
|
10749
10749
|
ot(Aa, (Ct) => {
|
|
10750
|
-
e.element.showValues && Ct(
|
|
10750
|
+
e.element.showValues && Ct(Vt);
|
|
10751
10751
|
});
|
|
10752
10752
|
}
|
|
10753
10753
|
Re(
|
|
@@ -13257,7 +13257,7 @@ var rc = { exports: {} };
|
|
|
13257
13257
|
function F(i, u, c, l, m, h, C, _, Q, w) {
|
|
13258
13258
|
var j = w * (i - c) / 2 + Q * (u - l) / 2, k = -Q * (i - c) / 2 + w * (u - l) / 2, J = C * C, Ee = _ * _, Ze = j * j, qe = k * k, ct = J * Ee - J * qe - Ee * Ze;
|
|
13259
13259
|
ct < 0 && (ct = 0), ct /= J * qe + Ee * Ze, ct = Math.sqrt(ct) * (m === h ? -1 : 1);
|
|
13260
|
-
var nt = ct * C / _ * k, Ye = ct * -_ / C * j, Ne = w * nt - Q * Ye + (i + c) / 2, G = Q * nt + w * Ye + (u + l) / 2, U = (j - nt) / C, Dt = (k - Ye) / _,
|
|
13260
|
+
var nt = ct * C / _ * k, Ye = ct * -_ / C * j, Ne = w * nt - Q * Ye + (i + c) / 2, G = Q * nt + w * Ye + (u + l) / 2, U = (j - nt) / C, Dt = (k - Ye) / _, Xt = (-j - nt) / C, mt = (-k - Ye) / _, me = y(1, 0, U, Dt), it = y(U, Dt, Xt, mt);
|
|
13261
13261
|
return h === 0 && it > 0 && (it -= _A), h === 1 && it < 0 && (it += _A), [Ne, G, me, it];
|
|
13262
13262
|
}
|
|
13263
13263
|
function I(i, u) {
|
|
@@ -13335,7 +13335,7 @@ var rc = { exports: {} };
|
|
|
13335
13335
|
function ke(i, u, c, l, m, h, C, _, Q, w) {
|
|
13336
13336
|
var j = w * (i - c) / 2 + Q * (u - l) / 2, k = -Q * (i - c) / 2 + w * (u - l) / 2, J = C * C, Ee = _ * _, Ze = j * j, qe = k * k, ct = J * Ee - J * qe - Ee * Ze;
|
|
13337
13337
|
ct < 0 && (ct = 0), ct /= J * qe + Ee * Ze, ct = Math.sqrt(ct) * (m === h ? -1 : 1);
|
|
13338
|
-
var nt = ct * C / _ * k, Ye = ct * -_ / C * j, Ne = w * nt - Q * Ye + (i + c) / 2, G = Q * nt + w * Ye + (u + l) / 2, U = (j - nt) / C, Dt = (k - Ye) / _,
|
|
13338
|
+
var nt = ct * C / _ * k, Ye = ct * -_ / C * j, Ne = w * nt - Q * Ye + (i + c) / 2, G = Q * nt + w * Ye + (u + l) / 2, U = (j - nt) / C, Dt = (k - Ye) / _, Xt = (-j - nt) / C, mt = (-k - Ye) / _, me = be(1, 0, U, Dt), it = be(U, Dt, Xt, mt);
|
|
13339
13339
|
return h === 0 && it > 0 && (it -= Y), h === 1 && it < 0 && (it += Y), [Ne, G, me, it];
|
|
13340
13340
|
}
|
|
13341
13341
|
function ve(i, u) {
|
|
@@ -13626,7 +13626,7 @@ var rc = { exports: {} };
|
|
|
13626
13626
|
return (m - C) * (u - _) - (i - C) * (h - _) >= 0 && (i - C) * (l - _) - (c - C) * (u - _) >= 0 && (c - C) * (h - _) - (m - C) * (l - _) >= 0;
|
|
13627
13627
|
}
|
|
13628
13628
|
function Xn(i, u) {
|
|
13629
|
-
return i.next.i !== u.i && i.prev.i !== u.i && !RA(i, u) && Aa(i, u) && Aa(u, i) &&
|
|
13629
|
+
return i.next.i !== u.i && i.prev.i !== u.i && !RA(i, u) && Aa(i, u) && Aa(u, i) && Vt(i, u);
|
|
13630
13630
|
}
|
|
13631
13631
|
function nn(i, u, c) {
|
|
13632
13632
|
return (u.y - i.y) * (c.x - u.x) - (u.x - i.x) * (c.y - u.y);
|
|
@@ -13648,7 +13648,7 @@ var rc = { exports: {} };
|
|
|
13648
13648
|
function Aa(i, u) {
|
|
13649
13649
|
return nn(i.prev, i, i.next) < 0 ? nn(i, u, i.next) >= 0 && nn(i, i.prev, u) >= 0 : nn(i, u, i.prev) < 0 || nn(i, i.next, u) < 0;
|
|
13650
13650
|
}
|
|
13651
|
-
function
|
|
13651
|
+
function Vt(i, u) {
|
|
13652
13652
|
var c = i, l = !1, m = (i.x + u.x) / 2, h = (i.y + u.y) / 2;
|
|
13653
13653
|
do
|
|
13654
13654
|
c.y > h != c.next.y > h && m < (c.next.x - c.x) * (h - c.y) / (c.next.y - c.y) + c.x && (l = !l), c = c.next;
|
|
@@ -14055,9 +14055,9 @@ var rc = { exports: {} };
|
|
|
14055
14055
|
for (var Ne = 0; Ne < Ye; Ne++) qe.push(I(ct, nt)), ct += nt;
|
|
14056
14056
|
return qe.map(function(G) {
|
|
14057
14057
|
for (var U = 0; U < G.length; U += 2) {
|
|
14058
|
-
var Dt = G[U + 0],
|
|
14059
|
-
Dt *= C,
|
|
14060
|
-
var mt = j * Dt - w *
|
|
14058
|
+
var Dt = G[U + 0], Xt = G[U + 1];
|
|
14059
|
+
Dt *= C, Xt *= _;
|
|
14060
|
+
var mt = j * Dt - w * Xt, me = w * Dt + j * Xt;
|
|
14061
14061
|
G[U + 0] = mt + Ze[0], G[U + 1] = me + Ze[1];
|
|
14062
14062
|
}
|
|
14063
14063
|
return G;
|
|
@@ -14268,9 +14268,9 @@ var rc = { exports: {} };
|
|
|
14268
14268
|
for (var Ne = 0; Ne < Ye; Ne++) qe.push(ve(ct, nt)), ct += nt;
|
|
14269
14269
|
return qe.map(function(G) {
|
|
14270
14270
|
for (var U = 0; U < G.length; U += 2) {
|
|
14271
|
-
var Dt = G[U + 0],
|
|
14272
|
-
Dt *= c,
|
|
14273
|
-
var mt = j * Dt - w *
|
|
14271
|
+
var Dt = G[U + 0], Xt = G[U + 1];
|
|
14272
|
+
Dt *= c, Xt *= l;
|
|
14273
|
+
var mt = j * Dt - w * Xt, me = w * Dt + j * Xt;
|
|
14274
14274
|
G[U + 0] = mt + Ze[0], G[U + 1] = me + Ze[1];
|
|
14275
14275
|
}
|
|
14276
14276
|
return G;
|
|
@@ -15129,10 +15129,10 @@ function tw(t, e) {
|
|
|
15129
15129
|
w.path && (Q = w.path);
|
|
15130
15130
|
const k = u.indexOf(w), J = k <= 1 ? u[0].time : u[k - 1].time, Ee = setTimeout(
|
|
15131
15131
|
() => {
|
|
15132
|
-
var Ye, Ne, G, U, Dt,
|
|
15132
|
+
var Ye, Ne, G, U, Dt, Xt, mt, me, it, tn, je, cn, Se, dA, PA, tA, Ra, we, v, Ve;
|
|
15133
15133
|
if (H.aborted) return;
|
|
15134
15134
|
const Ze = M(w.easing), qe = u.indexOf(w), ct = qe === 0 ? 0 : u[qe - 1].time, nt = Math.max(50, w.time - ct);
|
|
15135
|
-
w.position && ((Ye = i.x) == null || Ye.to(w.position.x, { duration: nt, easing: Ze }), (Ne = i.y) == null || Ne.to(w.position.y, { duration: nt, easing: Ze })), w.size && ((G = i.width) == null || G.to(w.size.width, { duration: nt, easing: Ze }), (U = i.height) == null || U.to(w.size.height, { duration: nt, easing: Ze })), w.rotation !== void 0 && ((Dt = i.rotation) == null || Dt.to(w.rotation, { duration: nt, easing: Ze })), w.opacity !== void 0 && ((
|
|
15135
|
+
w.position && ((Ye = i.x) == null || Ye.to(w.position.x, { duration: nt, easing: Ze }), (Ne = i.y) == null || Ne.to(w.position.y, { duration: nt, easing: Ze })), w.size && ((G = i.width) == null || G.to(w.size.width, { duration: nt, easing: Ze }), (U = i.height) == null || U.to(w.size.height, { duration: nt, easing: Ze })), w.rotation !== void 0 && ((Dt = i.rotation) == null || Dt.to(w.rotation, { duration: nt, easing: Ze })), w.opacity !== void 0 && ((Xt = i.opacity) == null || Xt.to(w.opacity, { duration: nt, easing: Ze })), w.skewX !== void 0 && ((mt = i.skewX) == null || mt.to(w.skewX, { duration: nt, easing: Ze })), w.skewY !== void 0 && ((me = i.skewY) == null || me.to(w.skewY, { duration: nt, easing: Ze })), w.tiltX !== void 0 && ((it = i.tiltX) == null || it.to(w.tiltX, { duration: nt, easing: Ze })), w.tiltY !== void 0 && ((tn = i.tiltY) == null || tn.to(w.tiltY, { duration: nt, easing: Ze })), w.borderRadius !== void 0 && ((je = i.borderRadius) == null || je.to(w.borderRadius, { duration: nt, easing: Ze })), w.fontSize !== void 0 && ((cn = i.fontSize) == null || cn.to(w.fontSize, { duration: nt, easing: Ze })), w.fillColor !== void 0 && ((Se = i.fillColor) == null || Se.to(w.fillColor, { duration: nt, easing: Ze })), w.strokeColor !== void 0 && ((dA = i.strokeColor) == null || dA.to(w.strokeColor, { duration: nt, easing: Ze })), w.strokeWidth !== void 0 && ((PA = i.strokeWidth) == null || PA.to(w.strokeWidth, { duration: nt, easing: Ze })), w.blur !== void 0 && ((tA = i.blur) == null || tA.to(w.blur, { duration: nt, easing: Ze })), w.brightness !== void 0 && ((Ra = i.brightness) == null || Ra.to(w.brightness, { duration: nt, easing: Ze })), w.contrast !== void 0 && ((we = i.contrast) == null || we.to(w.contrast, { duration: nt, easing: Ze })), w.saturate !== void 0 && ((v = i.saturate) == null || v.to(w.saturate, { duration: nt, easing: Ze })), w.grayscale !== void 0 && ((Ve = i.grayscale) == null || Ve.to(w.grayscale, { duration: nt, easing: Ze })), w.backgroundColor !== void 0 && I(kt.id, "backgroundColor", w.backgroundColor), w.color !== void 0 && I(kt.id, "color", w.color), w.path && j && w.path !== j && i.pathMorph && (o(Gt).set(kt.id, {
|
|
15136
15136
|
interp: Xu(j, w.path),
|
|
15137
15137
|
fromColor: C,
|
|
15138
15138
|
toColor: C,
|
|
@@ -15290,10 +15290,10 @@ function tw(t, e) {
|
|
|
15290
15290
|
function Aa() {
|
|
15291
15291
|
sn && (sn.pause(), sn = null);
|
|
15292
15292
|
}
|
|
15293
|
-
const
|
|
15293
|
+
const Vt = /* @__PURE__ */ R(() => {
|
|
15294
15294
|
var x;
|
|
15295
15295
|
return ((x = o(z)) == null ? void 0 : x.slides) ?? [];
|
|
15296
|
-
}), Ct = /* @__PURE__ */ R(() => o(
|
|
15296
|
+
}), Ct = /* @__PURE__ */ R(() => o(Vt)[o(de)]), kA = /* @__PURE__ */ R(() => {
|
|
15297
15297
|
var x;
|
|
15298
15298
|
return ((x = o(z)) == null ? void 0 : x.mode) === "cinema";
|
|
15299
15299
|
}), $A = /* @__PURE__ */ R(() => {
|
|
@@ -15321,7 +15321,7 @@ function tw(t, e) {
|
|
|
15321
15321
|
return Math.min(x, P);
|
|
15322
15322
|
}), Ni = /* @__PURE__ */ R(() => o(Ct) ? Uh(o(Ct).canvas.background) : "background: transparent"), uA = /* @__PURE__ */ R(() => {
|
|
15323
15323
|
const x = /* @__PURE__ */ new Set();
|
|
15324
|
-
return o(
|
|
15324
|
+
return o(Vt).forEach((P) => P.canvas.elements.forEach((te) => x.add(te.id))), x;
|
|
15325
15325
|
}), Si = /* @__PURE__ */ R(() => {
|
|
15326
15326
|
const x = [];
|
|
15327
15327
|
for (const P of o(uA)) {
|
|
@@ -15366,7 +15366,7 @@ function tw(t, e) {
|
|
|
15366
15366
|
}
|
|
15367
15367
|
function Gi() {
|
|
15368
15368
|
var P;
|
|
15369
|
-
const x = o(
|
|
15369
|
+
const x = o(Vt)[0];
|
|
15370
15370
|
if (x) {
|
|
15371
15371
|
for (const te of x.canvas.elements)
|
|
15372
15372
|
if (te.type === "code" && o(Le).set(te.id, te.code), te.type === "text") {
|
|
@@ -15374,7 +15374,7 @@ function tw(t, e) {
|
|
|
15374
15374
|
((P = H.animation) == null ? void 0 : P.mode) === "typewriter" && co(te.id, H.content, H.animation.typewriterSpeed || 50);
|
|
15375
15375
|
}
|
|
15376
15376
|
}
|
|
15377
|
-
for (const te of o(
|
|
15377
|
+
for (const te of o(Vt))
|
|
15378
15378
|
for (const H of te.canvas.elements)
|
|
15379
15379
|
if (!o(Be).has(H.id)) {
|
|
15380
15380
|
const ne = Mn(o(Ct), H.id);
|
|
@@ -15451,7 +15451,7 @@ function tw(t, e) {
|
|
|
15451
15451
|
var te, H;
|
|
15452
15452
|
if (o(Fe)) return;
|
|
15453
15453
|
V(Fe, !0), uo(), B(), F(), ue();
|
|
15454
|
-
const x = o(
|
|
15454
|
+
const x = o(Vt)[0];
|
|
15455
15455
|
if (!x) {
|
|
15456
15456
|
V(Fe, !1);
|
|
15457
15457
|
return;
|
|
@@ -15489,13 +15489,13 @@ function tw(t, e) {
|
|
|
15489
15489
|
const Y = ne;
|
|
15490
15490
|
((te = Y.animation) == null ? void 0 : te.mode) === "typewriter" && co(ne.id, Y.content, Y.animation.typewriterSpeed || 50);
|
|
15491
15491
|
}
|
|
15492
|
-
re(x), ja(x), Ko(0), (H = e.onslidechange) == null || H.call(e, 0, o(
|
|
15492
|
+
re(x), ja(x), Ko(0), (H = e.onslidechange) == null || H.call(e, 0, o(Vt).length);
|
|
15493
15493
|
}
|
|
15494
15494
|
async function eA(x) {
|
|
15495
15495
|
var wt, Jt, pn, Nn, Wn, Ot, Bt, _e, Xe, mn, kt, i, u, c, l, m, h, C, _, Q, w, j, k, J, Ee, Ze, qe, ct, nt;
|
|
15496
|
-
if (o(Fe) || x < 0 || x >= o(
|
|
15496
|
+
if (o(Fe) || x < 0 || x >= o(Vt).length || x === o(de)) return;
|
|
15497
15497
|
V(Fe, !0), V(De, x > o(de) ? "forward" : "backward", !0);
|
|
15498
|
-
const P = o(
|
|
15498
|
+
const P = o(Vt)[x], te = o(Vt)[o(de)];
|
|
15499
15499
|
uo(), B(), F(), ue(), na(x);
|
|
15500
15500
|
const H = P.transition, ne = e.duration ?? H.duration;
|
|
15501
15501
|
V(Me, ne, !0);
|
|
@@ -15513,7 +15513,7 @@ function tw(t, e) {
|
|
|
15513
15513
|
Se && setTimeout(() => Se.opacity.to(0, { duration: 0 }), je);
|
|
15514
15514
|
}
|
|
15515
15515
|
Ye > 0 && await new Promise((mt) => setTimeout(mt, Ye)), V(Ce, `transition-${H.type}-out`), await new Promise((mt) => setTimeout(mt, ne * 0.4));
|
|
15516
|
-
const Ne = new Map(o(pe)), G = new Map(o(Ke)), U = new Map(o(Le)), Dt = new Map(o(ze)),
|
|
15516
|
+
const Ne = new Map(o(pe)), G = new Map(o(Ke)), U = new Map(o(Le)), Dt = new Map(o(ze)), Xt = new Map(o(Pe));
|
|
15517
15517
|
for (const mt of o(uA)) {
|
|
15518
15518
|
const me = Mn(P, mt), it = o(Be).get(mt);
|
|
15519
15519
|
if (me) {
|
|
@@ -15533,7 +15533,7 @@ function tw(t, e) {
|
|
|
15533
15533
|
}
|
|
15534
15534
|
if (me.type === "progress") {
|
|
15535
15535
|
const tn = o(pe).get(mt);
|
|
15536
|
-
tn && tn.type === "progress" &&
|
|
15536
|
+
tn && tn.type === "progress" && Xt.set(mt, JSON.parse(JSON.stringify(tn)));
|
|
15537
15537
|
}
|
|
15538
15538
|
if (Ne.set(mt, JSON.parse(JSON.stringify(me))), it) {
|
|
15539
15539
|
if (it.x.to(me.position.x, { duration: 0 }), it.y.to(me.position.y, { duration: 0 }), it.width.to(me.size.width, { duration: 0 }), it.height.to(me.size.height, { duration: 0 }), it.rotation.to(me.rotation, { duration: 0 }), it.skewX.to(me.skewX ?? 0, { duration: 0 }), it.skewY.to(me.skewY ?? 0, { duration: 0 }), it.tiltX.to(me.tiltX ?? 0, { duration: 0 }), it.tiltY.to(me.tiltY ?? 0, { duration: 0 }), it.perspective.to(me.perspective ?? 1e3, { duration: 0 }), it.opacity.to(me.opacity ?? 1, { duration: 0 }), it.borderRadius.to(me.borderRadius ?? 0, { duration: 0 }), it.blur.to(me.blur ?? 0, { duration: 0 }), it.brightness.to(me.brightness ?? 100, { duration: 0 }), it.contrast.to(me.contrast ?? 100, { duration: 0 }), it.saturate.to(me.saturate ?? 100, { duration: 0 }), it.grayscale.to(me.grayscale ?? 0, { duration: 0 }), me.type === "text" && ((Bt = it.fontSize) == null || Bt.to(me.fontSize, { duration: 0 })), me.type === "shape") {
|
|
@@ -15555,7 +15555,7 @@ function tw(t, e) {
|
|
|
15555
15555
|
o(W).set(it, tn);
|
|
15556
15556
|
}
|
|
15557
15557
|
}
|
|
15558
|
-
V(W, new Map(o(W)), !0), V(Yt, /* @__PURE__ */ new Map(), !0), V(Ke, G, !0), V(Le, U, !0), V(ze, Dt, !0), V(Pe,
|
|
15558
|
+
V(W, new Map(o(W)), !0), V(Yt, /* @__PURE__ */ new Map(), !0), V(Ke, G, !0), V(Le, U, !0), V(ze, Dt, !0), V(Pe, Xt, !0), V(pe, Ne, !0), V(Be, new Map(o(Be)), !0), V(de, x, !0), se();
|
|
15559
15559
|
for (const mt of o(uA)) {
|
|
15560
15560
|
const me = Mn(P, mt);
|
|
15561
15561
|
if ((me == null ? void 0 : me.type) === "text") {
|
|
@@ -15563,7 +15563,7 @@ function tw(t, e) {
|
|
|
15563
15563
|
((i = it.animation) == null ? void 0 : i.mode) === "typewriter" && co(mt, it.content, it.animation.typewriterSpeed || 50);
|
|
15564
15564
|
}
|
|
15565
15565
|
}
|
|
15566
|
-
V(Ce, `transition-${H.type}-in`), Ko(x), await new Promise((mt) => setTimeout(mt, ne * 0.6)), V(Ce, ""), re(P, te), ja(P), V(Fe, !1), (u = e.onslidechange) == null || u.call(e, x, o(
|
|
15566
|
+
V(Ce, `transition-${H.type}-in`), Ko(x), await new Promise((mt) => setTimeout(mt, ne * 0.6)), V(Ce, ""), re(P, te), ja(P), V(Fe, !1), (u = e.onslidechange) == null || u.call(e, x, o(Vt).length), x === o(Vt).length - 1 && !ge() && ((c = e.oncomplete) == null || c.call(e));
|
|
15567
15567
|
return;
|
|
15568
15568
|
}
|
|
15569
15569
|
const le = [];
|
|
@@ -15593,12 +15593,12 @@ function tw(t, e) {
|
|
|
15593
15593
|
for (const Ye of o(uA)) {
|
|
15594
15594
|
const Ne = Mn(o(Ct), Ye), G = Mn(P, Ye), U = o(Be).get(Ye);
|
|
15595
15595
|
if (!U) continue;
|
|
15596
|
-
const Dt = (G == null ? void 0 : G.animationConfig) || (Ne == null ? void 0 : Ne.animationConfig),
|
|
15596
|
+
const Dt = (G == null ? void 0 : G.animationConfig) || (Ne == null ? void 0 : Ne.animationConfig), Xt = (Dt == null ? void 0 : Dt.order) ?? 0, mt = (Dt == null ? void 0 : Dt.delay) ?? 0, me = (Dt == null ? void 0 : Dt.duration) ?? ne, it = (l = Ne == null ? void 0 : Ne.animationConfig) == null ? void 0 : l.exit;
|
|
15597
15597
|
if (!!Ne && !!G && it && it !== "none" && it !== "fade") {
|
|
15598
15598
|
const je = Bs(it), cn = ((m = Ne.animationConfig) == null ? void 0 : m.exitDuration) ?? me, Se = (h = G.animationConfig) == null ? void 0 : h.entrance, dA = Se ? bs(Se) : null, PA = Se && Se !== "none" && Se !== "fade" ? ((C = G.animationConfig) == null ? void 0 : C.entranceDuration) ?? ((_ = G.animationConfig) == null ? void 0 : _.duration) ?? 600 : 0;
|
|
15599
15599
|
je && L(Ne.id, "exit", je, cn), He.push({
|
|
15600
15600
|
elementId: Ye,
|
|
15601
|
-
order:
|
|
15601
|
+
order: Xt,
|
|
15602
15602
|
delay: mt,
|
|
15603
15603
|
elementDuration: cn + PA,
|
|
15604
15604
|
run: () => [
|
|
@@ -15621,7 +15621,7 @@ function tw(t, e) {
|
|
|
15621
15621
|
}
|
|
15622
15622
|
He.push({
|
|
15623
15623
|
elementId: Ye,
|
|
15624
|
-
order:
|
|
15624
|
+
order: Xt,
|
|
15625
15625
|
delay: mt,
|
|
15626
15626
|
elementDuration: me,
|
|
15627
15627
|
run: () => {
|
|
@@ -15639,7 +15639,7 @@ function tw(t, e) {
|
|
|
15639
15639
|
const xt = Ve + We.delay, Je = We.duration;
|
|
15640
15640
|
setTimeout(
|
|
15641
15641
|
() => {
|
|
15642
|
-
var
|
|
15642
|
+
var en, ht, Tt;
|
|
15643
15643
|
if (We.property === "position")
|
|
15644
15644
|
U.x.to(G.position.x, { duration: Je, easing: je }), U.y.to(G.position.y, { duration: Je, easing: je });
|
|
15645
15645
|
else if (We.property === "rotation") U.rotation.to(G.rotation, { duration: Je, easing: je });
|
|
@@ -15654,7 +15654,7 @@ function tw(t, e) {
|
|
|
15654
15654
|
U.blur.to(G.blur ?? 0, { duration: Je, easing: je }), U.brightness.to(G.brightness ?? 100, { duration: Je, easing: je }), U.contrast.to(G.contrast ?? 100, { duration: Je, easing: je }), U.saturate.to(G.saturate ?? 100, { duration: Je, easing: je }), U.grayscale.to(G.grayscale ?? 0, { duration: Je, easing: je });
|
|
15655
15655
|
else if (We.property === "color" && G.type === "shape") {
|
|
15656
15656
|
const Ut = G;
|
|
15657
|
-
(
|
|
15657
|
+
(en = U.fillColor) == null || en.to(Ut.fillColor, { duration: Je, easing: je }), (ht = U.strokeColor) == null || ht.to(Ut.strokeColor, { duration: Je, easing: je }), (Tt = U.strokeWidth) == null || Tt.to(Ut.strokeWidth, { duration: Je, easing: je });
|
|
15658
15658
|
} else We.property === "perspective" ? U.perspective.to(G.perspective ?? 1e3, { duration: Je, easing: je }) : We.property === "opacity" && U.opacity.to(G.opacity ?? 1, { duration: Je, easing: je });
|
|
15659
15659
|
},
|
|
15660
15660
|
xt
|
|
@@ -15681,7 +15681,7 @@ function tw(t, e) {
|
|
|
15681
15681
|
U.fillColor && Se.push(U.fillColor.to(We.fillColor, { duration: 0 })), U.strokeColor && Se.push(U.strokeColor.to(We.strokeColor, { duration: 0 })), U.strokeWidth && Se.push(U.strokeWidth.to(We.strokeWidth, { duration: 0 }));
|
|
15682
15682
|
}
|
|
15683
15683
|
const we = ((tA = G.animationConfig) == null ? void 0 : tA.entrance) ?? "fade", v = G.opacity ?? 1, Ve = bs(we);
|
|
15684
|
-
Ve && we !== "fade" && we !== "none" ? L(G.id, "entrance", Ve, ((Ra = G.animationConfig) == null ? void 0 : Ra.entranceDuration) ?? me,
|
|
15684
|
+
Ve && we !== "fade" && we !== "none" ? L(G.id, "entrance", Ve, ((Ra = G.animationConfig) == null ? void 0 : Ra.entranceDuration) ?? me, Xt * 100 + mt) : we === "fade" ? Se.push(U.opacity.to(v, { duration: me / 2, easing: je })) : Se.push(U.opacity.to(v, { duration: 0 }));
|
|
15685
15685
|
}
|
|
15686
15686
|
return Se;
|
|
15687
15687
|
}
|
|
@@ -15692,7 +15692,7 @@ function tw(t, e) {
|
|
|
15692
15692
|
const Se = ((k = Ne.animationConfig) == null ? void 0 : k.exitDuration) ?? me;
|
|
15693
15693
|
L(Ne.id, "exit", cn, Se), He.push({
|
|
15694
15694
|
elementId: Ye,
|
|
15695
|
-
order:
|
|
15695
|
+
order: Xt,
|
|
15696
15696
|
delay: mt,
|
|
15697
15697
|
elementDuration: Se,
|
|
15698
15698
|
run: () => [
|
|
@@ -15705,7 +15705,7 @@ function tw(t, e) {
|
|
|
15705
15705
|
const Se = Math.min(me / 2, 300);
|
|
15706
15706
|
He.push({
|
|
15707
15707
|
elementId: Ye,
|
|
15708
|
-
order:
|
|
15708
|
+
order: Xt,
|
|
15709
15709
|
delay: mt,
|
|
15710
15710
|
elementDuration: me,
|
|
15711
15711
|
run: () => [
|
|
@@ -15715,7 +15715,7 @@ function tw(t, e) {
|
|
|
15715
15715
|
} else
|
|
15716
15716
|
He.push({
|
|
15717
15717
|
elementId: Ye,
|
|
15718
|
-
order:
|
|
15718
|
+
order: Xt,
|
|
15719
15719
|
delay: 0,
|
|
15720
15720
|
elementDuration: 0,
|
|
15721
15721
|
run: () => [U.opacity.to(0, { duration: 0 })]
|
|
@@ -15732,13 +15732,13 @@ function tw(t, e) {
|
|
|
15732
15732
|
for (const Dt of G)
|
|
15733
15733
|
Dt.delay > 0 ? setTimeout(
|
|
15734
15734
|
() => {
|
|
15735
|
-
Dt.run().forEach((
|
|
15735
|
+
Dt.run().forEach((Xt) => le.push(Xt));
|
|
15736
15736
|
},
|
|
15737
15737
|
Dt.delay
|
|
15738
15738
|
) : U.push(...Dt.run());
|
|
15739
15739
|
if (le.push(...U), Ye < Et.length - 1) {
|
|
15740
|
-
const Dt = Math.max(...G.map((
|
|
15741
|
-
await new Promise((
|
|
15740
|
+
const Dt = Math.max(...G.map((Xt) => Xt.elementDuration));
|
|
15741
|
+
await new Promise((Xt) => setTimeout(Xt, Dt * 0.3));
|
|
15742
15742
|
}
|
|
15743
15743
|
}
|
|
15744
15744
|
const ft = new Map(o(pe)), Mt = new Map(o(Ke)), ie = new Map(o(Le));
|
|
@@ -15767,12 +15767,12 @@ function tw(t, e) {
|
|
|
15767
15767
|
}
|
|
15768
15768
|
}
|
|
15769
15769
|
V(W, new Map(o(W)), !0), V(Yt, /* @__PURE__ */ new Map(), !0), V(Ke, Mt, !0), V(Le, ie, !0), V(pe, ft, !0), V(de, x, !0), se(), V(Fe, !1);
|
|
15770
|
-
const Pt = o(
|
|
15770
|
+
const Pt = o(Vt)[x], et = typeof window < "u" ? window.__animotPresenterRuntime : void 0;
|
|
15771
15771
|
for (const Ye of o(uA)) {
|
|
15772
15772
|
const Ne = Mn(Pt, Ye), G = o(Be).get(Ye), U = !!((qe = et == null ? void 0 : et.get(Ye)) != null && qe.exit);
|
|
15773
15773
|
!Ne && G && !U && G.opacity.to(0, { duration: 0 });
|
|
15774
15774
|
}
|
|
15775
|
-
re(o(
|
|
15775
|
+
re(o(Vt)[x], te), ja(o(Vt)[x]), (ct = e.onslidechange) == null || ct.call(e, x, o(Vt).length), x === o(Vt).length - 1 && !ge() && ((nt = e.oncomplete) == null || nt.call(e));
|
|
15776
15776
|
}
|
|
15777
15777
|
function aa() {
|
|
15778
15778
|
Fn && (clearTimeout(Fn), Fn = null);
|
|
@@ -15784,7 +15784,7 @@ function tw(t, e) {
|
|
|
15784
15784
|
Fn = setTimeout(
|
|
15785
15785
|
() => {
|
|
15786
15786
|
var te, H, ne;
|
|
15787
|
-
o(de) < o(
|
|
15787
|
+
o(de) < o(Vt).length - 1 ? eA(o(de) + 1) : ge() ? (((H = (te = o(z)) == null ? void 0 : te.settings) == null ? void 0 : H.loopMode) ?? (((ne = o(z)) == null ? void 0 : ne.mode) === "flow" ? "reset" : "transition")) === "transition" && o(Vt).length > 1 ? eA(0) : Oo() : V(Ae, !1);
|
|
15788
15788
|
},
|
|
15789
15789
|
x
|
|
15790
15790
|
);
|
|
@@ -15794,10 +15794,10 @@ function tw(t, e) {
|
|
|
15794
15794
|
}), qn(() => () => aa());
|
|
15795
15795
|
function Ga() {
|
|
15796
15796
|
var x, P, te;
|
|
15797
|
-
o(de) < o(
|
|
15797
|
+
o(de) < o(Vt).length - 1 ? eA(o(de) + 1) : ge() && ((((P = (x = o(z)) == null ? void 0 : x.settings) == null ? void 0 : P.loopMode) ?? (((te = o(z)) == null ? void 0 : te.mode) === "flow" ? "reset" : "transition")) === "transition" && o(Vt).length > 1 ? eA(0) : Oo());
|
|
15798
15798
|
}
|
|
15799
15799
|
function Ri(x) {
|
|
15800
|
-
Te() && (x.key === "ArrowRight" || x.key === " " || x.key === "Enter" ? (x.preventDefault(), Ga()) : x.key === "ArrowLeft" || x.key === "Backspace" ? (x.preventDefault(), eA(o(de) - 1)) : x.key === "Home" ? eA(0) : x.key === "End" ? eA(o(
|
|
15800
|
+
Te() && (x.key === "ArrowRight" || x.key === " " || x.key === "Enter" ? (x.preventDefault(), Ga()) : x.key === "ArrowLeft" || x.key === "Backspace" ? (x.preventDefault(), eA(o(de) - 1)) : x.key === "Home" ? eA(0) : x.key === "End" ? eA(o(Vt).length - 1) : (x.key === "p" || x.key === "P") && (V(Ae, !o(Ae)), o(Ae) || aa()));
|
|
15801
15801
|
}
|
|
15802
15802
|
function vr() {
|
|
15803
15803
|
V(Xn, !0), nn && clearTimeout(nn), nn = setTimeout(
|
|
@@ -15808,7 +15808,7 @@ function tw(t, e) {
|
|
|
15808
15808
|
);
|
|
15809
15809
|
}
|
|
15810
15810
|
async function $i() {
|
|
15811
|
-
for (const x of o(
|
|
15811
|
+
for (const x of o(Vt))
|
|
15812
15812
|
for (const P of x.canvas.elements)
|
|
15813
15813
|
if (P.type === "code") {
|
|
15814
15814
|
const te = P, H = `${te.id}-${te.code}-${te.language}-${te.showLineNumbers}`;
|
|
@@ -15846,7 +15846,7 @@ function tw(t, e) {
|
|
|
15846
15846
|
return o(de);
|
|
15847
15847
|
}
|
|
15848
15848
|
function Yi() {
|
|
15849
|
-
return o(
|
|
15849
|
+
return o(Vt).length;
|
|
15850
15850
|
}
|
|
15851
15851
|
function HA() {
|
|
15852
15852
|
return o(Ae);
|
|
@@ -15914,7 +15914,7 @@ function tw(t, e) {
|
|
|
15914
15914
|
let _A;
|
|
15915
15915
|
function Ko(x) {
|
|
15916
15916
|
var te, H, ne, Y, le;
|
|
15917
|
-
const P = o(
|
|
15917
|
+
const P = o(Vt)[x];
|
|
15918
15918
|
if (P)
|
|
15919
15919
|
for (const He of P.canvas.elements) {
|
|
15920
15920
|
const Ue = (te = He.animationConfig) == null ? void 0 : te.entrance;
|
|
@@ -16054,7 +16054,7 @@ function tw(t, e) {
|
|
|
16054
16054
|
const v = /* @__PURE__ */ R(() => Ba(o(_e))), Ve = /* @__PURE__ */ R(() => o(Ke).get(o(v).id));
|
|
16055
16055
|
var We = kE();
|
|
16056
16056
|
let xt, Je;
|
|
16057
|
-
var
|
|
16057
|
+
var en = At(We);
|
|
16058
16058
|
{
|
|
16059
16059
|
var ht = ($t) => {
|
|
16060
16060
|
var dt = QE();
|
|
@@ -16095,11 +16095,11 @@ function tw(t, e) {
|
|
|
16095
16095
|
qt.classList.add("copied"), setTimeout(() => qt.classList.remove("copied"), 1500);
|
|
16096
16096
|
}), ae($t, dt);
|
|
16097
16097
|
};
|
|
16098
|
-
ot(
|
|
16098
|
+
ot(en, ($t) => {
|
|
16099
16099
|
o(v).showHeader ? $t(ht) : $t(Tt, -1);
|
|
16100
16100
|
});
|
|
16101
16101
|
}
|
|
16102
|
-
var Ut = lt(
|
|
16102
|
+
var Ut = lt(en, 2), un = At(Ut), Nt = At(un);
|
|
16103
16103
|
{
|
|
16104
16104
|
var Kt = ($t) => {
|
|
16105
16105
|
var dt = ln(), st = Ht(dt);
|
|
@@ -16185,7 +16185,7 @@ function tw(t, e) {
|
|
|
16185
16185
|
}), Je = /* @__PURE__ */ R(() => {
|
|
16186
16186
|
var Nt;
|
|
16187
16187
|
return ((Nt = o(v).animation) == null ? void 0 : Nt.mode) ?? "instant";
|
|
16188
|
-
}),
|
|
16188
|
+
}), en = /* @__PURE__ */ R(() => o(Je) === "fade-letters" || o(Je) === "bounce-in" || o(Je) === "handwriting" || o(Je) === "scramble-in" || o(Je) === "slot-machine" || o(Je) === "drop" || o(Je) === "glitch" || o(Je) === "marquee" || o(Je) === "blur-in" || o(Je) === "stretch" || o(Je) === "slide-words" || o(Je) === "wave" || o(Je) === "typewriter-erase");
|
|
16189
16189
|
var ht = DE();
|
|
16190
16190
|
let Tt;
|
|
16191
16191
|
var Ut = At(ht);
|
|
@@ -16205,13 +16205,13 @@ function tw(t, e) {
|
|
|
16205
16205
|
Re(() => An(St, o(xt))), ae(Nt, Kt);
|
|
16206
16206
|
};
|
|
16207
16207
|
ot(Ut, (Nt) => {
|
|
16208
|
-
o(
|
|
16208
|
+
o(en) || Nt(un);
|
|
16209
16209
|
});
|
|
16210
16210
|
}
|
|
16211
16211
|
go(ht, (Nt, Kt) => Es == null ? void 0 : Es(Nt, Kt), () => {
|
|
16212
16212
|
var Nt, Kt, St, $t;
|
|
16213
16213
|
return {
|
|
16214
|
-
enabled: o(
|
|
16214
|
+
enabled: o(en),
|
|
16215
16215
|
mode: o(Je),
|
|
16216
16216
|
content: o(v).content,
|
|
16217
16217
|
duration: ((Nt = o(v).animation) == null ? void 0 : Nt.duration) ?? 1500,
|
|
@@ -16252,7 +16252,7 @@ function tw(t, e) {
|
|
|
16252
16252
|
}
|
|
16253
16253
|
]), ae(we, ht);
|
|
16254
16254
|
}, Dt = (we) => {
|
|
16255
|
-
const v = /* @__PURE__ */ R(() => Ba(o(_e))), Ve = /* @__PURE__ */ R(() => o(v).controlPoints || []), We = /* @__PURE__ */ R(() => o(Ve).length === 0 ? `M ${o(v).startPoint.x} ${o(v).startPoint.y} L ${o(v).endPoint.x} ${o(v).endPoint.y}` : o(Ve).length === 1 ? `M ${o(v).startPoint.x} ${o(v).startPoint.y} Q ${o(Ve)[0].x} ${o(Ve)[0].y} ${o(v).endPoint.x} ${o(v).endPoint.y}` : o(Ve).length === 2 ? `M ${o(v).startPoint.x} ${o(v).startPoint.y} C ${o(Ve)[0].x} ${o(Ve)[0].y} ${o(Ve)[1].x} ${o(Ve)[1].y} ${o(v).endPoint.x} ${o(v).endPoint.y}` : ji(o(v).startPoint, o(Ve), o(v).endPoint)), xt = /* @__PURE__ */ R(() => o(Ve).length > 0 ? o(Ve)[o(Ve).length - 1] : o(v).startPoint), Je = /* @__PURE__ */ R(() => Math.atan2(o(v).endPoint.y - o(xt).y, o(v).endPoint.x - o(xt).x)),
|
|
16255
|
+
const v = /* @__PURE__ */ R(() => Ba(o(_e))), Ve = /* @__PURE__ */ R(() => o(v).controlPoints || []), We = /* @__PURE__ */ R(() => o(Ve).length === 0 ? `M ${o(v).startPoint.x} ${o(v).startPoint.y} L ${o(v).endPoint.x} ${o(v).endPoint.y}` : o(Ve).length === 1 ? `M ${o(v).startPoint.x} ${o(v).startPoint.y} Q ${o(Ve)[0].x} ${o(Ve)[0].y} ${o(v).endPoint.x} ${o(v).endPoint.y}` : o(Ve).length === 2 ? `M ${o(v).startPoint.x} ${o(v).startPoint.y} C ${o(Ve)[0].x} ${o(Ve)[0].y} ${o(Ve)[1].x} ${o(Ve)[1].y} ${o(v).endPoint.x} ${o(v).endPoint.y}` : ji(o(v).startPoint, o(Ve), o(v).endPoint)), xt = /* @__PURE__ */ R(() => o(Ve).length > 0 ? o(Ve)[o(Ve).length - 1] : o(v).startPoint), Je = /* @__PURE__ */ R(() => Math.atan2(o(v).endPoint.y - o(xt).y, o(v).endPoint.x - o(xt).x)), en = /* @__PURE__ */ R(() => Math.PI / 6), ht = /* @__PURE__ */ R(() => o(v).headSize), Tt = /* @__PURE__ */ R(() => `M ${o(v).endPoint.x - o(ht) * Math.cos(o(Je) - o(en))} ${o(v).endPoint.y - o(ht) * Math.sin(o(Je) - o(en))} L ${o(v).endPoint.x} ${o(v).endPoint.y} L ${o(v).endPoint.x - o(ht) * Math.cos(o(Je) + o(en))} ${o(v).endPoint.y - o(ht) * Math.sin(o(Je) + o(en))}`), Ut = /* @__PURE__ */ R(() => {
|
|
16256
16256
|
var _t;
|
|
16257
16257
|
return ((_t = o(v).animation) == null ? void 0 : _t.mode) ?? "none";
|
|
16258
16258
|
}), un = /* @__PURE__ */ R(() => {
|
|
@@ -16323,7 +16323,7 @@ function tw(t, e) {
|
|
|
16323
16323
|
}), Re(() => {
|
|
16324
16324
|
$t = bA(St, 0, "animot-arrow-element svelte-16ocdv9", null, $t, { "arrow-animate-grow": o(Ut) === "grow" }), K(St, "viewBox", `0 0 ${o(v).size.width ?? ""} ${o(v).size.height ?? ""}`), zt(St, `--arrow-anim-duration: ${o(un) ?? ""}ms;`), K(dt, "d", o(We)), K(dt, "stroke", o(v).color), K(dt, "stroke-width", o(v).strokeWidth), K(dt, "stroke-dasharray", o(Kt));
|
|
16325
16325
|
}), ae(we, St);
|
|
16326
|
-
},
|
|
16326
|
+
}, Xt = (we) => {
|
|
16327
16327
|
const v = /* @__PURE__ */ R(() => Ba(o(_e))), Ve = /* @__PURE__ */ R(() => {
|
|
16328
16328
|
var Je;
|
|
16329
16329
|
return (Je = o(v).clipMask) != null && Je.enabled ? o(v).clipMask.shapeType === "circle" ? "circle(50% at 50% 50%)" : o(v).clipMask.shapeType === "ellipse" ? "ellipse(50% 50% at 50% 50%)" : o(v).clipMask.shapeType === "triangle" ? "polygon(50% 0%, 0% 100%, 100% 100%)" : o(v).clipMask.shapeType === "star" ? "polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)" : o(v).clipMask.shapeType === "hexagon" ? "polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%)" : (o(v).clipMask.borderRadius ?? 0) > 0 ? `inset(0 round ${o(v).clipMask.borderRadius}px)` : "none" : "none";
|
|
@@ -16362,7 +16362,7 @@ function tw(t, e) {
|
|
|
16362
16362
|
"border-radius": `${o(v).borderRadius ?? ""}px`,
|
|
16363
16363
|
opacity: o(v).opacity
|
|
16364
16364
|
})), ae(ht, Tt);
|
|
16365
|
-
},
|
|
16365
|
+
}, en = (ht) => {
|
|
16366
16366
|
var Tt = NE();
|
|
16367
16367
|
let Ut;
|
|
16368
16368
|
Re(() => {
|
|
@@ -16374,7 +16374,7 @@ function tw(t, e) {
|
|
|
16374
16374
|
}), ae(ht, Tt);
|
|
16375
16375
|
};
|
|
16376
16376
|
ot(xt, (ht) => {
|
|
16377
|
-
o(Ve) ? ht(Je) : ht(
|
|
16377
|
+
o(Ve) ? ht(Je) : ht(en, -1);
|
|
16378
16378
|
});
|
|
16379
16379
|
}
|
|
16380
16380
|
ae(we, We);
|
|
@@ -16388,13 +16388,13 @@ function tw(t, e) {
|
|
|
16388
16388
|
}), xt = /* @__PURE__ */ R(() => {
|
|
16389
16389
|
var dt;
|
|
16390
16390
|
return ((dt = o(Xe).strokeWidth) == null ? void 0 : dt.current) ?? o(v).strokeWidth;
|
|
16391
|
-
}), Je = /* @__PURE__ */ R(() => o(Gt).get(o(_e).id)),
|
|
16391
|
+
}), Je = /* @__PURE__ */ R(() => o(Gt).get(o(_e).id)), en = /* @__PURE__ */ R(() => o(Ft).get(o(_e).id)), ht = /* @__PURE__ */ R(() => {
|
|
16392
16392
|
var dt;
|
|
16393
16393
|
return o(Lt).get(o(Bt)) ?? ((dt = o(Xe).pathMorph) == null ? void 0 : dt.current) ?? 1;
|
|
16394
16394
|
}), Tt = /* @__PURE__ */ R(() => {
|
|
16395
16395
|
var dt;
|
|
16396
16396
|
return o(tt).get(o(Bt)) ?? ((dt = o(Xe).pathMorph) == null ? void 0 : dt.current) ?? 1;
|
|
16397
|
-
}), Ut = /* @__PURE__ */ R(() => o(Je) ? o(Tt) : o(ht)), un = /* @__PURE__ */ R(() => o(Je) ?? (o(
|
|
16397
|
+
}), Ut = /* @__PURE__ */ R(() => o(Je) ? o(Tt) : o(ht)), un = /* @__PURE__ */ R(() => o(Je) ?? (o(en) && o(ht) < 1 ? o(en) : r(o(_e))));
|
|
16398
16398
|
var Nt = ln(), Kt = Ht(Nt);
|
|
16399
16399
|
{
|
|
16400
16400
|
var St = (dt) => {
|
|
@@ -16523,7 +16523,7 @@ function tw(t, e) {
|
|
|
16523
16523
|
}), Je = /* @__PURE__ */ R(() => {
|
|
16524
16524
|
var Kt;
|
|
16525
16525
|
return o(tt).get(o(Bt)) ?? ((Kt = o(Xe).pathMorph) == null ? void 0 : Kt.current) ?? 1;
|
|
16526
|
-
}),
|
|
16526
|
+
}), en = /* @__PURE__ */ R(() => o(Ve) ? o(Je) : o(xt)), ht = /* @__PURE__ */ R(() => o(Ve) ?? (o(We) && o(xt) < 1 ? o(We) : r(o(_e))));
|
|
16527
16527
|
var Tt = ln(), Ut = Ht(Tt);
|
|
16528
16528
|
{
|
|
16529
16529
|
var un = (Kt) => {
|
|
@@ -16546,7 +16546,7 @@ function tw(t, e) {
|
|
|
16546
16546
|
K(st, "d", qt), K(st, "fill", o(_e).morphColor ?? o(dt).toColor);
|
|
16547
16547
|
},
|
|
16548
16548
|
[
|
|
16549
|
-
() => o(dt).interp(Math.max(0, Math.min(1, o(
|
|
16549
|
+
() => o(dt).interp(Math.max(0, Math.min(1, o(en))))
|
|
16550
16550
|
]
|
|
16551
16551
|
), ae($t, st);
|
|
16552
16552
|
}
|
|
@@ -16596,17 +16596,17 @@ function tw(t, e) {
|
|
|
16596
16596
|
var Ve = ln(), We = Ht(Ve);
|
|
16597
16597
|
{
|
|
16598
16598
|
var xt = (Je) => {
|
|
16599
|
-
var
|
|
16599
|
+
var en = PE(), ht = At(en);
|
|
16600
16600
|
Re(
|
|
16601
16601
|
(Tt, Ut, un) => {
|
|
16602
|
-
K(
|
|
16602
|
+
K(en, "viewBox", `0 0 ${Tt ?? ""} ${Ut ?? ""}`), K(ht, "d", un), K(ht, "stroke", o(v).pathColor), K(ht, "stroke-width", o(v).pathWidth);
|
|
16603
16603
|
},
|
|
16604
16604
|
[
|
|
16605
16605
|
() => Math.max(0, o(Xe).width.current),
|
|
16606
16606
|
() => Math.max(0, o(Xe).height.current),
|
|
16607
16607
|
() => Qe(o(v).points, o(v).closed)
|
|
16608
16608
|
]
|
|
16609
|
-
), ae(Je,
|
|
16609
|
+
), ae(Je, en);
|
|
16610
16610
|
};
|
|
16611
16611
|
ot(We, (Je) => {
|
|
16612
16612
|
o(v).showInPresentation && Je(xt);
|
|
@@ -16620,7 +16620,7 @@ function tw(t, e) {
|
|
|
16620
16620
|
}), Je = /* @__PURE__ */ R(() => {
|
|
16621
16621
|
var st;
|
|
16622
16622
|
return o(tt).get(o(Bt)) ?? ((st = o(Xe).pathMorph) == null ? void 0 : st.current) ?? 1;
|
|
16623
|
-
}),
|
|
16623
|
+
}), en = /* @__PURE__ */ R(() => o(Ve) ? o(Je) : o(xt)), ht = /* @__PURE__ */ R(() => o(Ve) ?? (o(We) && o(xt) < 1 ? o(We) : r(o(_e)))), Tt = /* @__PURE__ */ R(() => xi(o(v))), Ut = /* @__PURE__ */ R(() => {
|
|
16624
16624
|
var st;
|
|
16625
16625
|
return ((st = o(v).animation) == null ? void 0 : st.mode) ?? "none";
|
|
16626
16626
|
}), un = /* @__PURE__ */ R(() => !o(ht) && (o(Ut) === "draw" || o(Ut) === "undraw" || o(Ut) === "draw-undraw"));
|
|
@@ -16646,7 +16646,7 @@ function tw(t, e) {
|
|
|
16646
16646
|
K(ut, "d", dn), K(ut, "fill", o(_e).morphColor ?? o(_t).toColor);
|
|
16647
16647
|
},
|
|
16648
16648
|
[
|
|
16649
|
-
() => o(_t).interp(Math.max(0, Math.min(1, o(
|
|
16649
|
+
() => o(_t).interp(Math.max(0, Math.min(1, o(en))))
|
|
16650
16650
|
]
|
|
16651
16651
|
), ae(yn, ut);
|
|
16652
16652
|
}
|
|
@@ -16686,7 +16686,7 @@ function tw(t, e) {
|
|
|
16686
16686
|
let We;
|
|
16687
16687
|
var xt = lt(At(Ve), 4);
|
|
16688
16688
|
let Je;
|
|
16689
|
-
var
|
|
16689
|
+
var en = At(xt);
|
|
16690
16690
|
Re(() => {
|
|
16691
16691
|
We = zt(Ve, "", We, {
|
|
16692
16692
|
background: o(v).bgColor,
|
|
@@ -16699,11 +16699,11 @@ function tw(t, e) {
|
|
|
16699
16699
|
"font-family": `'${o(v).fontFamily ?? ""}', sans-serif`,
|
|
16700
16700
|
"font-weight": o(v).fontWeight,
|
|
16701
16701
|
"text-align": o(v).textAlign
|
|
16702
|
-
}), An(
|
|
16702
|
+
}), An(en, o(v).text);
|
|
16703
16703
|
}), ae(we, Ve);
|
|
16704
16704
|
};
|
|
16705
16705
|
ot(Ne, (we) => {
|
|
16706
|
-
o(_e).type === "code" ? we(G) : o(_e).type === "text" ? we(U, 1) : o(_e).type === "arrow" ? we(Dt, 2) : o(_e).type === "image" ? we(
|
|
16706
|
+
o(_e).type === "code" ? we(G) : o(_e).type === "text" ? we(U, 1) : o(_e).type === "arrow" ? we(Dt, 2) : o(_e).type === "image" ? we(Xt, 3) : o(_e).type === "video" ? we(mt, 4) : o(_e).type === "shape" ? we(me, 5) : o(_e).type === "counter" ? we(it, 6) : o(_e).type === "chart" ? we(tn, 7) : o(_e).type === "progress" ? we(je, 8) : o(_e).type === "container" ? we(cn, 9) : o(_e).type === "icon" ? we(Se, 10) : o(_e).type === "svg" ? we(dA, 11) : o(_e).type === "motionPath" ? we(PA, 12) : o(_e).type === "draw" ? we(tA, 13) : o(_e).type === "sticky" && we(Ra, 14);
|
|
16707
16707
|
});
|
|
16708
16708
|
}
|
|
16709
16709
|
go(ct, (we, v) => ws == null ? void 0 : ws(we, v), () => {
|
|
@@ -16739,7 +16739,7 @@ function tw(t, e) {
|
|
|
16739
16739
|
"--float-speed": `${(o(kt) ? vu(o(mn), o(i) || o(Bt)) : 3) ?? ""}s`,
|
|
16740
16740
|
"--float-delay": `${Di(o(i) || o(Bt), 3) * 2}s`,
|
|
16741
16741
|
animation: (() => {
|
|
16742
|
-
var We, xt, Je,
|
|
16742
|
+
var We, xt, Je, en, ht, Tt, Ut, un, Nt, Kt;
|
|
16743
16743
|
o(ee);
|
|
16744
16744
|
const we = [], v = typeof window < "u" && window.__animotPresenterRuntime ? window.__animotPresenterRuntime.get(o(Bt)) : null;
|
|
16745
16745
|
if (v != null && v.exit) {
|
|
@@ -16752,7 +16752,7 @@ function tw(t, e) {
|
|
|
16752
16752
|
}
|
|
16753
16753
|
const Ve = $h((xt = (We = o(_e)) == null ? void 0 : We.animationConfig) == null ? void 0 : xt.emphasis);
|
|
16754
16754
|
if (Ve) {
|
|
16755
|
-
const St = ((
|
|
16755
|
+
const St = ((en = (Je = o(_e)) == null ? void 0 : Je.animationConfig) == null ? void 0 : en.emphasis) === "tada" || ((Tt = (ht = o(_e)) == null ? void 0 : ht.animationConfig) == null ? void 0 : Tt.emphasis) === "bob-once", $t = (un = (Ut = o(_e)) == null ? void 0 : Ut.animationConfig) == null ? void 0 : un.emphasisDuration, dt = St ? 1200 : 2200, st = typeof $t == "number" && $t > 0 ? $t : dt, qt = ((Kt = (Nt = o(_e)) == null ? void 0 : Nt.animationConfig) == null ? void 0 : Kt.emphasisDelay) ?? 0;
|
|
16756
16756
|
we.push(`${st}ms ease-in-out ${qt}ms ${St ? "1" : "infinite"} ${St ? "both" : "none"} ${Ve}`);
|
|
16757
16757
|
}
|
|
16758
16758
|
if (o(kt)) {
|
|
@@ -16780,7 +16780,7 @@ function tw(t, e) {
|
|
|
16780
16780
|
var wt = (Ot) => {
|
|
16781
16781
|
var Bt = WE(), _e = Ht(Bt), Xe = lt(_e, 2);
|
|
16782
16782
|
Re(() => {
|
|
16783
|
-
_e.disabled = o(de) === 0 || o(Fe), Xe.disabled = !ge() && o(de) === o(
|
|
16783
|
+
_e.disabled = o(de) === 0 || o(Fe), Xe.disabled = !ge() && o(de) === o(Vt).length - 1 || o(Fe);
|
|
16784
16784
|
}), xA("click", _e, () => eA(o(de) - 1)), xA("click", Xe, () => Ga()), ae(Ot, Bt);
|
|
16785
16785
|
};
|
|
16786
16786
|
ot(et, (Ot) => {
|
|
@@ -16806,7 +16806,7 @@ function tw(t, e) {
|
|
|
16806
16806
|
});
|
|
16807
16807
|
}
|
|
16808
16808
|
Re(() => {
|
|
16809
|
-
_e.disabled = o(de) === 0 || o(Fe), An(mn, `${o(de) + 1} / ${o(
|
|
16809
|
+
_e.disabled = o(de) === 0 || o(Fe), An(mn, `${o(de) + 1} / ${o(Vt).length ?? ""}`), kt.disabled = !ge() && o(de) === o(Vt).length - 1 || o(Fe), K(i, "aria-label", o(Ae) ? "Pause" : "Play"), u = bA(i, 1, "svelte-16ocdv9", null, u, { active: o(Ae) });
|
|
16810
16810
|
}), xA("click", _e, () => eA(o(de) - 1)), xA("click", kt, () => Ga()), xA("click", i, () => {
|
|
16811
16811
|
V(Ae, !o(Ae)), o(Ae) || aa();
|
|
16812
16812
|
}), ae(Ot, Bt);
|
|
@@ -16821,7 +16821,7 @@ function tw(t, e) {
|
|
|
16821
16821
|
var Bt = VE(), _e = At(Bt);
|
|
16822
16822
|
let Xe;
|
|
16823
16823
|
Re(() => Xe = zt(_e, "", Xe, {
|
|
16824
|
-
width: `${(o(de) + 1) / o(
|
|
16824
|
+
width: `${(o(de) + 1) / o(Vt).length * 100}%`
|
|
16825
16825
|
})), ae(Ot, Bt);
|
|
16826
16826
|
};
|
|
16827
16827
|
ot(Nn, (Ot) => {
|