@gardenfi/garden-book 0.2.0 → 0.2.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/Icons/SearchIconThin.d.ts +5 -0
- package/dist/components/atoms/Icons/index.d.ts +1 -0
- package/dist/components/molecules/TokenNetworkLogos/TokenNetworkLogos.d.ts +2 -0
- package/dist/components/molecules/TokenNetworkLogos/TokenNetworkLogos.stories.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +269 -234
- package/dist/ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -371,7 +371,7 @@ function isImage(e) {
|
|
|
371
371
|
return imageRegex.test(e);
|
|
372
372
|
}
|
|
373
373
|
function getDefaultConfig() {
|
|
374
|
-
const e = fromTheme("colors"), t = fromTheme("spacing"), i = fromTheme("blur"), n = fromTheme("brightness"), s = fromTheme("borderColor"), a = fromTheme("borderRadius"), o = fromTheme("borderSpacing"), l = fromTheme("borderWidth"), c = fromTheme("contrast"), f = fromTheme("grayscale"), u = fromTheme("hueRotate"), p = fromTheme("invert"), d = fromTheme("gap"), b = fromTheme("gradientColorStops"), C = fromTheme("gradientColorStopPositions"), g = fromTheme("inset"), E = fromTheme("margin"), m = fromTheme("opacity"), x = fromTheme("padding"), y = fromTheme("saturate"), S = fromTheme("scale"), T = fromTheme("sepia"), L = fromTheme("skew"), A = fromTheme("space"), V = fromTheme("translate"),
|
|
374
|
+
const e = fromTheme("colors"), t = fromTheme("spacing"), i = fromTheme("blur"), n = fromTheme("brightness"), s = fromTheme("borderColor"), a = fromTheme("borderRadius"), o = fromTheme("borderSpacing"), l = fromTheme("borderWidth"), c = fromTheme("contrast"), f = fromTheme("grayscale"), u = fromTheme("hueRotate"), p = fromTheme("invert"), d = fromTheme("gap"), b = fromTheme("gradientColorStops"), C = fromTheme("gradientColorStopPositions"), g = fromTheme("inset"), E = fromTheme("margin"), m = fromTheme("opacity"), x = fromTheme("padding"), y = fromTheme("saturate"), S = fromTheme("scale"), T = fromTheme("sepia"), L = fromTheme("skew"), A = fromTheme("space"), V = fromTheme("translate"), I = () => ["auto", "contain", "none"], U = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", isArbitraryValue, t], j = () => [isArbitraryValue, t], G = () => ["", isLength, isArbitraryLength], q = () => ["auto", isNumber, isArbitraryValue], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], _ = () => ["solid", "dashed", "dotted", "double", "none"], R = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], M = () => ["", "0", isArbitraryValue], F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [isNumber, isArbitraryNumber], W = () => [isNumber, isArbitraryValue];
|
|
375
375
|
return {
|
|
376
376
|
cacheSize: 500,
|
|
377
377
|
separator: ":",
|
|
@@ -379,12 +379,12 @@ function getDefaultConfig() {
|
|
|
379
379
|
colors: [isAny],
|
|
380
380
|
spacing: [isLength, isArbitraryLength],
|
|
381
381
|
blur: ["none", "", isTshirtSize, isArbitraryValue],
|
|
382
|
-
brightness:
|
|
382
|
+
brightness: k(),
|
|
383
383
|
borderColor: [e],
|
|
384
384
|
borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
|
|
385
385
|
borderSpacing: j(),
|
|
386
386
|
borderWidth: G(),
|
|
387
|
-
contrast:
|
|
387
|
+
contrast: k(),
|
|
388
388
|
grayscale: M(),
|
|
389
389
|
hueRotate: W(),
|
|
390
390
|
invert: M(),
|
|
@@ -393,10 +393,10 @@ function getDefaultConfig() {
|
|
|
393
393
|
gradientColorStopPositions: [isPercent, isArbitraryLength],
|
|
394
394
|
inset: z(),
|
|
395
395
|
margin: z(),
|
|
396
|
-
opacity:
|
|
396
|
+
opacity: k(),
|
|
397
397
|
padding: j(),
|
|
398
|
-
saturate:
|
|
399
|
-
scale:
|
|
398
|
+
saturate: k(),
|
|
399
|
+
scale: k(),
|
|
400
400
|
sepia: M(),
|
|
401
401
|
skew: W(),
|
|
402
402
|
space: j(),
|
|
@@ -522,21 +522,21 @@ function getDefaultConfig() {
|
|
|
522
522
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
523
523
|
*/
|
|
524
524
|
overscroll: [{
|
|
525
|
-
overscroll:
|
|
525
|
+
overscroll: I()
|
|
526
526
|
}],
|
|
527
527
|
/**
|
|
528
528
|
* Overscroll Behavior X
|
|
529
529
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
530
530
|
*/
|
|
531
531
|
"overscroll-x": [{
|
|
532
|
-
"overscroll-x":
|
|
532
|
+
"overscroll-x": I()
|
|
533
533
|
}],
|
|
534
534
|
/**
|
|
535
535
|
* Overscroll Behavior Y
|
|
536
536
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
537
537
|
*/
|
|
538
538
|
"overscroll-y": [{
|
|
539
|
-
"overscroll-y":
|
|
539
|
+
"overscroll-y": I()
|
|
540
540
|
}],
|
|
541
541
|
/**
|
|
542
542
|
* Position
|
|
@@ -2689,12 +2689,12 @@ var lottie$1 = { exports: {} };
|
|
|
2689
2689
|
n || (n = o(function(b) {
|
|
2690
2690
|
function C() {
|
|
2691
2691
|
function E(B, _) {
|
|
2692
|
-
var R, P, M = B.length, F,
|
|
2692
|
+
var R, P, M = B.length, F, k, W, K;
|
|
2693
2693
|
for (P = 0; P < M; P += 1)
|
|
2694
2694
|
if (R = B[P], "ks" in R && !R.completed) {
|
|
2695
2695
|
if (R.completed = !0, R.hasMask) {
|
|
2696
2696
|
var X = R.masksProperties;
|
|
2697
|
-
for (
|
|
2697
|
+
for (k = X.length, F = 0; F < k; F += 1)
|
|
2698
2698
|
if (X[F].pt.k.i)
|
|
2699
2699
|
T(X[F].pt.k);
|
|
2700
2700
|
else
|
|
@@ -2830,7 +2830,7 @@ var lottie$1 = { exports: {} };
|
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
};
|
|
2833
|
-
}(),
|
|
2833
|
+
}(), I = /* @__PURE__ */ function() {
|
|
2834
2834
|
var B = [5, 7, 15];
|
|
2835
2835
|
function _(P) {
|
|
2836
2836
|
var M = P.t.p;
|
|
@@ -2860,14 +2860,14 @@ var lottie$1 = { exports: {} };
|
|
|
2860
2860
|
}(), U = /* @__PURE__ */ function() {
|
|
2861
2861
|
var B = [4, 1, 9];
|
|
2862
2862
|
function _(P) {
|
|
2863
|
-
var M, F = P.length,
|
|
2863
|
+
var M, F = P.length, k, W;
|
|
2864
2864
|
for (M = 0; M < F; M += 1)
|
|
2865
2865
|
if (P[M].ty === "gr")
|
|
2866
2866
|
_(P[M].it);
|
|
2867
2867
|
else if (P[M].ty === "fl" || P[M].ty === "st")
|
|
2868
2868
|
if (P[M].c.k && P[M].c.k[0].i)
|
|
2869
|
-
for (W = P[M].c.k.length,
|
|
2870
|
-
P[M].c.k[
|
|
2869
|
+
for (W = P[M].c.k.length, k = 0; k < W; k += 1)
|
|
2870
|
+
P[M].c.k[k].s && (P[M].c.k[k].s[0] /= 255, P[M].c.k[k].s[1] /= 255, P[M].c.k[k].s[2] /= 255, P[M].c.k[k].s[3] /= 255), P[M].c.k[k].e && (P[M].c.k[k].e[0] /= 255, P[M].c.k[k].e[1] /= 255, P[M].c.k[k].e[2] /= 255, P[M].c.k[k].e[3] /= 255);
|
|
2871
2871
|
else
|
|
2872
2872
|
P[M].c.k[0] /= 255, P[M].c.k[1] /= 255, P[M].c.k[2] /= 255, P[M].c.k[3] /= 255;
|
|
2873
2873
|
}
|
|
@@ -2886,19 +2886,19 @@ var lottie$1 = { exports: {} };
|
|
|
2886
2886
|
}(), z = /* @__PURE__ */ function() {
|
|
2887
2887
|
var B = [4, 4, 18];
|
|
2888
2888
|
function _(P) {
|
|
2889
|
-
var M, F = P.length,
|
|
2889
|
+
var M, F = P.length, k, W;
|
|
2890
2890
|
for (M = F - 1; M >= 0; M -= 1)
|
|
2891
2891
|
if (P[M].ty === "sh")
|
|
2892
2892
|
if (P[M].ks.k.i)
|
|
2893
2893
|
P[M].ks.k.c = P[M].closed;
|
|
2894
2894
|
else
|
|
2895
|
-
for (W = P[M].ks.k.length,
|
|
2896
|
-
P[M].ks.k[
|
|
2895
|
+
for (W = P[M].ks.k.length, k = 0; k < W; k += 1)
|
|
2896
|
+
P[M].ks.k[k].s && (P[M].ks.k[k].s[0].c = P[M].closed), P[M].ks.k[k].e && (P[M].ks.k[k].e[0].c = P[M].closed);
|
|
2897
2897
|
else P[M].ty === "gr" && _(P[M].it);
|
|
2898
2898
|
}
|
|
2899
2899
|
function R(P) {
|
|
2900
|
-
var M, F,
|
|
2901
|
-
for (F = 0; F <
|
|
2900
|
+
var M, F, k = P.length, W, K, X, ee;
|
|
2901
|
+
for (F = 0; F < k; F += 1) {
|
|
2902
2902
|
if (M = P[F], M.hasMask) {
|
|
2903
2903
|
var re = M.masksProperties;
|
|
2904
2904
|
for (K = re.length, W = 0; W < K; W += 1)
|
|
@@ -2920,13 +2920,13 @@ var lottie$1 = { exports: {} };
|
|
|
2920
2920
|
};
|
|
2921
2921
|
}();
|
|
2922
2922
|
function j(B) {
|
|
2923
|
-
B.__complete || (U(B), A(B), V(B),
|
|
2923
|
+
B.__complete || (U(B), A(B), V(B), I(B), z(B), E(B.layers, B.assets), m(B.chars, B.assets), B.__complete = !0);
|
|
2924
2924
|
}
|
|
2925
2925
|
function G(B) {
|
|
2926
2926
|
B.t.a.length === 0 && "m" in B.t.p;
|
|
2927
2927
|
}
|
|
2928
2928
|
var q = {};
|
|
2929
|
-
return q.completeData = j, q.checkColors = U, q.checkChars = V, q.checkPathProperties =
|
|
2929
|
+
return q.completeData = j, q.checkColors = U, q.checkChars = V, q.checkPathProperties = I, q.checkShapes = z, q.completeLayers = E, q;
|
|
2930
2930
|
}
|
|
2931
2931
|
if (a.dataManager || (a.dataManager = C()), a.assetLoader || (a.assetLoader = /* @__PURE__ */ function() {
|
|
2932
2932
|
function E(x) {
|
|
@@ -3562,10 +3562,10 @@ var lottie$1 = { exports: {} };
|
|
|
3562
3562
|
t[R].animation.destroy(_);
|
|
3563
3563
|
}
|
|
3564
3564
|
function V(_, R, P) {
|
|
3565
|
-
var M = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), F,
|
|
3566
|
-
for (F = 0; F <
|
|
3565
|
+
var M = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), F, k = M.length;
|
|
3566
|
+
for (F = 0; F < k; F += 1)
|
|
3567
3567
|
P && M[F].setAttribute("data-bm-type", P), c(M[F], _);
|
|
3568
|
-
if (R &&
|
|
3568
|
+
if (R && k === 0) {
|
|
3569
3569
|
P || (P = "svg");
|
|
3570
3570
|
var W = document.getElementsByTagName("body")[0];
|
|
3571
3571
|
W.innerText = "";
|
|
@@ -3573,7 +3573,7 @@ var lottie$1 = { exports: {} };
|
|
|
3573
3573
|
K.style.width = "100%", K.style.height = "100%", K.setAttribute("data-bm-type", P), W.appendChild(K), c(K, _);
|
|
3574
3574
|
}
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3576
|
+
function I() {
|
|
3577
3577
|
var _;
|
|
3578
3578
|
for (_ = 0; _ < n; _ += 1)
|
|
3579
3579
|
t[_].animation.resize();
|
|
@@ -3602,7 +3602,7 @@ var lottie$1 = { exports: {} };
|
|
|
3602
3602
|
for (R = 0; R < n; R += 1)
|
|
3603
3603
|
t[R].animation.unmute(_);
|
|
3604
3604
|
}
|
|
3605
|
-
return e.registerAnimation = c, e.loadAnimation = b, e.setSpeed = C, e.setDirection = g, e.play = E, e.pause = y, e.stop = T, e.togglePause = L, e.searchAnimations = V, e.resize =
|
|
3605
|
+
return e.registerAnimation = c, e.loadAnimation = b, e.setSpeed = C, e.setDirection = g, e.play = E, e.pause = y, e.stop = T, e.togglePause = L, e.searchAnimations = V, e.resize = I, e.goToAndStop = S, e.destroy = A, e.freeze = z, e.unfreeze = j, e.setVolume = G, e.mute = q, e.unmute = B, e.getRegisteredAnimations = f, e;
|
|
3606
3606
|
}(), BezierFactory = function() {
|
|
3607
3607
|
var e = {};
|
|
3608
3608
|
e.getBezierEasing = i;
|
|
@@ -3631,10 +3631,10 @@ var lottie$1 = { exports: {} };
|
|
|
3631
3631
|
return 3 * u(y, S) * x * x + 2 * p(y, S) * x + d(y);
|
|
3632
3632
|
}
|
|
3633
3633
|
function g(x, y, S, T, L) {
|
|
3634
|
-
var A, V,
|
|
3634
|
+
var A, V, I = 0;
|
|
3635
3635
|
do
|
|
3636
3636
|
V = y + (S - y) / 2, A = b(V, T, L) - x, A > 0 ? S = V : y = V;
|
|
3637
|
-
while (Math.abs(A) > a && ++
|
|
3637
|
+
while (Math.abs(A) > a && ++I < o);
|
|
3638
3638
|
return V;
|
|
3639
3639
|
}
|
|
3640
3640
|
function E(x, y, S, T) {
|
|
@@ -3667,7 +3667,7 @@ var lottie$1 = { exports: {} };
|
|
|
3667
3667
|
* getTForX chose the fastest heuristic to determine the percentage value precisely from a given X projection.
|
|
3668
3668
|
*/
|
|
3669
3669
|
_getTForX: function(y) {
|
|
3670
|
-
for (var S = this._p[0], T = this._p[2], L = this._mSampleValues, A = 0, V = 1,
|
|
3670
|
+
for (var S = this._p[0], T = this._p[2], L = this._mSampleValues, A = 0, V = 1, I = l - 1; V !== I && L[V] <= y; ++V)
|
|
3671
3671
|
A += c;
|
|
3672
3672
|
--V;
|
|
3673
3673
|
var U = (y - L[V]) / (L[V + 1] - L[V]), z = A + U * c, j = C(z, S, T);
|
|
@@ -3734,10 +3734,10 @@ var lottie$1 = { exports: {} };
|
|
|
3734
3734
|
}
|
|
3735
3735
|
var n = /* @__PURE__ */ function() {
|
|
3736
3736
|
return function(d, b, C, g) {
|
|
3737
|
-
var E = getDefaultCurveSegments(), m, x, y, S, T, L = 0, A, V = [],
|
|
3737
|
+
var E = getDefaultCurveSegments(), m, x, y, S, T, L = 0, A, V = [], I = [], U = bezierLengthPool.newElement();
|
|
3738
3738
|
for (y = C.length, m = 0; m < E; m += 1) {
|
|
3739
3739
|
for (T = m / (E - 1), A = 0, x = 0; x < y; x += 1)
|
|
3740
|
-
S = bmPow(1 - T, 3) * d[x] + 3 * bmPow(1 - T, 2) * T * C[x] + 3 * (1 - T) * bmPow(T, 2) * g[x] + bmPow(T, 3) * b[x], V[x] = S,
|
|
3740
|
+
S = bmPow(1 - T, 3) * d[x] + 3 * bmPow(1 - T, 2) * T * C[x] + 3 * (1 - T) * bmPow(T, 2) * g[x] + bmPow(T, 3) * b[x], V[x] = S, I[x] !== null && (A += bmPow(V[x] - I[x], 2)), I[x] = V[x];
|
|
3741
3741
|
A && (A = bmSqrt(A), L += A), U.percents[m] = T, U.lengths[m] = L;
|
|
3742
3742
|
}
|
|
3743
3743
|
return U.addedLength = L, U;
|
|
@@ -3760,13 +3760,13 @@ var lottie$1 = { exports: {} };
|
|
|
3760
3760
|
return function(b, C, g, E) {
|
|
3761
3761
|
var m = (b[0] + "_" + b[1] + "_" + C[0] + "_" + C[1] + "_" + g[0] + "_" + g[1] + "_" + E[0] + "_" + E[1]).replace(/\./g, "p");
|
|
3762
3762
|
if (!d[m]) {
|
|
3763
|
-
var x = getDefaultCurveSegments(), y, S, T, L, A, V = 0,
|
|
3763
|
+
var x = getDefaultCurveSegments(), y, S, T, L, A, V = 0, I, U, z = null;
|
|
3764
3764
|
b.length === 2 && (b[0] !== C[0] || b[1] !== C[1]) && t(b[0], b[1], C[0], C[1], b[0] + g[0], b[1] + g[1]) && t(b[0], b[1], C[0], C[1], C[0] + E[0], C[1] + E[1]) && (x = 2);
|
|
3765
3765
|
var j = new a(x);
|
|
3766
3766
|
for (T = g.length, y = 0; y < x; y += 1) {
|
|
3767
|
-
for (U = createSizedArray(T), A = y / (x - 1),
|
|
3768
|
-
L = bmPow(1 - A, 3) * b[S] + 3 * bmPow(1 - A, 2) * A * (b[S] + g[S]) + 3 * (1 - A) * bmPow(A, 2) * (C[S] + E[S]) + bmPow(A, 3) * C[S], U[S] = L, z !== null && (
|
|
3769
|
-
|
|
3767
|
+
for (U = createSizedArray(T), A = y / (x - 1), I = 0, S = 0; S < T; S += 1)
|
|
3768
|
+
L = bmPow(1 - A, 3) * b[S] + 3 * bmPow(1 - A, 2) * A * (b[S] + g[S]) + 3 * (1 - A) * bmPow(A, 2) * (C[S] + E[S]) + bmPow(A, 3) * C[S], U[S] = L, z !== null && (I += bmPow(U[S] - z[S], 2));
|
|
3769
|
+
I = bmSqrt(I), V += I, j.points[y] = new o(I, U), z = U;
|
|
3770
3770
|
}
|
|
3771
3771
|
j.segmentLength = V, d[m] = j;
|
|
3772
3772
|
}
|
|
@@ -3794,9 +3794,9 @@ var lottie$1 = { exports: {} };
|
|
|
3794
3794
|
E < 0 ? E = 0 : E > 1 && (E = 1);
|
|
3795
3795
|
var y = c(E, x);
|
|
3796
3796
|
m = m > 1 ? 1 : m;
|
|
3797
|
-
var S = c(m, x), T, L = d.length, A = 1 - y, V = 1 - S,
|
|
3797
|
+
var S = c(m, x), T, L = d.length, A = 1 - y, V = 1 - S, I = A * A * A, U = y * A * A * 3, z = y * y * A * 3, j = y * y * y, G = A * A * V, q = y * A * V + A * y * V + A * A * S, B = y * y * V + A * y * S + y * A * S, _ = y * y * S, R = A * V * V, P = y * V * V + A * S * V + A * V * S, M = y * S * V + A * S * S + y * V * S, F = y * S * S, k = V * V * V, W = S * V * V + V * S * V + V * V * S, K = S * S * V + V * S * S + S * V * S, X = S * S * S;
|
|
3798
3798
|
for (T = 0; T < L; T += 1)
|
|
3799
|
-
u[T * 4] = e.round((
|
|
3799
|
+
u[T * 4] = e.round((I * d[T] + U * C[T] + z * g[T] + j * b[T]) * 1e3) / 1e3, u[T * 4 + 1] = e.round((G * d[T] + q * C[T] + B * g[T] + _ * b[T]) * 1e3) / 1e3, u[T * 4 + 2] = e.round((R * d[T] + P * C[T] + M * g[T] + F * b[T]) * 1e3) / 1e3, u[T * 4 + 3] = e.round((k * d[T] + W * C[T] + K * g[T] + X * b[T]) * 1e3) / 1e3;
|
|
3800
3800
|
return u;
|
|
3801
3801
|
}
|
|
3802
3802
|
return {
|
|
@@ -3850,7 +3850,7 @@ var lottie$1 = { exports: {} };
|
|
|
3850
3850
|
t._lastPoint = g, t._lastAddedLength = V - S.points[g].partialLength, t._lastKeyframeIndex = a;
|
|
3851
3851
|
}
|
|
3852
3852
|
} else {
|
|
3853
|
-
var
|
|
3853
|
+
var I, U, z, j, G;
|
|
3854
3854
|
if (o = c.s.length, y = f.s || c.e, this.sh && c.h !== 1)
|
|
3855
3855
|
if (e >= m)
|
|
3856
3856
|
n[0] = y[0], n[1] = y[1], n[2] = y[2];
|
|
@@ -3862,7 +3862,7 @@ var lottie$1 = { exports: {} };
|
|
|
3862
3862
|
}
|
|
3863
3863
|
else
|
|
3864
3864
|
for (a = 0; a < o; a += 1)
|
|
3865
|
-
c.h !== 1 && (e >= m ? b = 1 : e < x ? b = 0 : (c.o.x.constructor === Array ? (u.__fnct || (u.__fnct = []), u.__fnct[a] ? E = u.__fnct[a] : (
|
|
3865
|
+
c.h !== 1 && (e >= m ? b = 1 : e < x ? b = 0 : (c.o.x.constructor === Array ? (u.__fnct || (u.__fnct = []), u.__fnct[a] ? E = u.__fnct[a] : (I = c.o.x[a] === void 0 ? c.o.x[0] : c.o.x[a], U = c.o.y[a] === void 0 ? c.o.y[0] : c.o.y[a], z = c.i.x[a] === void 0 ? c.i.x[0] : c.i.x[a], j = c.i.y[a] === void 0 ? c.i.y[0] : c.i.y[a], E = BezierFactory.getBezierEasing(I, U, z, j).get, u.__fnct[a] = E)) : u.__fnct ? E = u.__fnct : (I = c.o.x, U = c.o.y, z = c.i.x, j = c.i.y, E = BezierFactory.getBezierEasing(I, U, z, j).get, c.keyframeMetadata = E), b = E((e - x) / (m - x)))), y = f.s || c.e, G = c.h === 1 ? c.s[a] : c.s[a] + (y[a] - c.s[a]) * b, this.propType === "multidimensional" ? n[a] = G : n = G;
|
|
3866
3866
|
}
|
|
3867
3867
|
return t.lastIndex = s, n;
|
|
3868
3868
|
}
|
|
@@ -4083,7 +4083,7 @@ var lottie$1 = { exports: {} };
|
|
|
4083
4083
|
}(), ShapePropertyFactory = function() {
|
|
4084
4084
|
var e = -999999;
|
|
4085
4085
|
function t(m, x, y) {
|
|
4086
|
-
var S = y.lastIndex, T, L, A, V,
|
|
4086
|
+
var S = y.lastIndex, T, L, A, V, I, U, z, j, G, q = this.keyframes;
|
|
4087
4087
|
if (m < q[0].t - this.offsetTime)
|
|
4088
4088
|
T = q[0].s[0], A = !0, S = 0;
|
|
4089
4089
|
else if (m >= q[q.length - 1].t - this.offsetTime)
|
|
@@ -4097,16 +4097,16 @@ var lottie$1 = { exports: {} };
|
|
|
4097
4097
|
else if (m < P.t - this.offsetTime)
|
|
4098
4098
|
j = 0;
|
|
4099
4099
|
else {
|
|
4100
|
-
var
|
|
4101
|
-
F.__fnct ?
|
|
4100
|
+
var k;
|
|
4101
|
+
F.__fnct ? k = F.__fnct : (k = BezierFactory.getBezierEasing(P.o.x, P.o.y, P.i.x, P.i.y).get, F.__fnct = k), j = k((m - (P.t - this.offsetTime)) / (M.t - this.offsetTime - (P.t - this.offsetTime)));
|
|
4102
4102
|
}
|
|
4103
4103
|
L = M.s ? M.s[0] : P.e[0];
|
|
4104
4104
|
}
|
|
4105
4105
|
T = P.s[0];
|
|
4106
4106
|
}
|
|
4107
4107
|
for (U = x._length, z = T.i[0].length, y.lastIndex = S, V = 0; V < U; V += 1)
|
|
4108
|
-
for (
|
|
4109
|
-
G = A ? T.i[V][
|
|
4108
|
+
for (I = 0; I < z; I += 1)
|
|
4109
|
+
G = A ? T.i[V][I] : T.i[V][I] + (L.i[V][I] - T.i[V][I]) * j, x.i[V][I] = G, G = A ? T.o[V][I] : T.o[V][I] + (L.o[V][I] - T.o[V][I]) * j, x.o[V][I] = G, G = A ? T.v[V][I] : T.v[V][I] + (L.v[V][I] - T.v[V][I]) * j, x.v[V][I] = G;
|
|
4110
4110
|
}
|
|
4111
4111
|
function i() {
|
|
4112
4112
|
var m = this.comp.renderedFrame - this.offsetTime, x = this.keyframes[0].t - this.offsetTime, y = this.keyframes[this.keyframes.length - 1].t - this.offsetTime, S = this._caching.lastFrame;
|
|
@@ -4175,8 +4175,8 @@ var lottie$1 = { exports: {} };
|
|
|
4175
4175
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertEllToPath());
|
|
4176
4176
|
},
|
|
4177
4177
|
convertEllToPath: function() {
|
|
4178
|
-
var S = this.p.v[0], T = this.p.v[1], L = this.s.v[0] / 2, A = this.s.v[1] / 2, V = this.d !== 3,
|
|
4179
|
-
|
|
4178
|
+
var S = this.p.v[0], T = this.p.v[1], L = this.s.v[0] / 2, A = this.s.v[1] / 2, V = this.d !== 3, I = this.v;
|
|
4179
|
+
I.v[0][0] = S, I.v[0][1] = T - A, I.v[1][0] = V ? S + L : S - L, I.v[1][1] = T, I.v[2][0] = S, I.v[2][1] = T + A, I.v[3][0] = V ? S - L : S + L, I.v[3][1] = T, I.i[0][0] = V ? S - L * m : S + L * m, I.i[0][1] = T - A, I.i[1][0] = V ? S + L : S - L, I.i[1][1] = T - A * m, I.i[2][0] = V ? S + L * m : S - L * m, I.i[2][1] = T + A, I.i[3][0] = V ? S - L : S + L, I.i[3][1] = T + A * m, I.o[0][0] = V ? S + L * m : S - L * m, I.o[0][1] = T - A, I.o[1][0] = V ? S + L : S - L, I.o[1][1] = T + A * m, I.o[2][0] = V ? S - L * m : S + L * m, I.o[2][1] = T + A, I.o[3][0] = V ? S - L : S + L, I.o[3][1] = T - A * m;
|
|
4180
4180
|
}
|
|
4181
4181
|
}, extendPrototype([DynamicPropertyContainer], x), x;
|
|
4182
4182
|
}(), p = function() {
|
|
@@ -4189,20 +4189,20 @@ var lottie$1 = { exports: {} };
|
|
|
4189
4189
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
4190
4190
|
},
|
|
4191
4191
|
convertStarToPath: function() {
|
|
4192
|
-
var y = Math.floor(this.pt.v) * 2, S = Math.PI * 2 / y, T = !0, L = this.or.v, A = this.ir.v, V = this.os.v,
|
|
4192
|
+
var y = Math.floor(this.pt.v) * 2, S = Math.PI * 2 / y, T = !0, L = this.or.v, A = this.ir.v, V = this.os.v, I = this.is.v, U = 2 * Math.PI * L / (y * 2), z = 2 * Math.PI * A / (y * 2), j, G, q, B, _ = -Math.PI / 2;
|
|
4193
4193
|
_ += this.r.v;
|
|
4194
4194
|
var R = this.data.d === 3 ? -1 : 1;
|
|
4195
4195
|
for (this.v._length = 0, j = 0; j < y; j += 1) {
|
|
4196
|
-
G = T ? L : A, q = T ? V :
|
|
4197
|
-
var P = G * Math.cos(_), M = G * Math.sin(_), F = P === 0 && M === 0 ? 0 : M / Math.sqrt(P * P + M * M),
|
|
4198
|
-
P += +this.p.v[0], M += +this.p.v[1], this.v.setTripleAt(P, M, P - F * B * q * R, M -
|
|
4196
|
+
G = T ? L : A, q = T ? V : I, B = T ? U : z;
|
|
4197
|
+
var P = G * Math.cos(_), M = G * Math.sin(_), F = P === 0 && M === 0 ? 0 : M / Math.sqrt(P * P + M * M), k = P === 0 && M === 0 ? 0 : -P / Math.sqrt(P * P + M * M);
|
|
4198
|
+
P += +this.p.v[0], M += +this.p.v[1], this.v.setTripleAt(P, M, P - F * B * q * R, M - k * B * q * R, P + F * B * q * R, M + k * B * q * R, j, !0), T = !T, _ += S * R;
|
|
4199
4199
|
}
|
|
4200
4200
|
},
|
|
4201
4201
|
convertPolygonToPath: function() {
|
|
4202
|
-
var y = Math.floor(this.pt.v), S = Math.PI * 2 / y, T = this.or.v, L = this.os.v, A = 2 * Math.PI * T / (y * 4), V,
|
|
4203
|
-
for (
|
|
4204
|
-
var z = T * Math.cos(
|
|
4205
|
-
z += +this.p.v[0], j += +this.p.v[1], this.v.setTripleAt(z, j, z - G * A * L * U, j - q * A * L * U, z + G * A * L * U, j + q * A * L * U, V, !0),
|
|
4202
|
+
var y = Math.floor(this.pt.v), S = Math.PI * 2 / y, T = this.or.v, L = this.os.v, A = 2 * Math.PI * T / (y * 4), V, I = -Math.PI * 0.5, U = this.data.d === 3 ? -1 : 1;
|
|
4203
|
+
for (I += this.r.v, this.v._length = 0, V = 0; V < y; V += 1) {
|
|
4204
|
+
var z = T * Math.cos(I), j = T * Math.sin(I), G = z === 0 && j === 0 ? 0 : j / Math.sqrt(z * z + j * j), q = z === 0 && j === 0 ? 0 : -z / Math.sqrt(z * z + j * j);
|
|
4205
|
+
z += +this.p.v[0], j += +this.p.v[1], this.v.setTripleAt(z, j, z - G * A * L * U, j - q * A * L * U, z + G * A * L * U, j + q * A * L * U, V, !0), I += S * U;
|
|
4206
4206
|
}
|
|
4207
4207
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
4208
4208
|
}
|
|
@@ -4283,24 +4283,24 @@ var lottie$1 = { exports: {} };
|
|
|
4283
4283
|
return this.shear(i(P), i(M));
|
|
4284
4284
|
}
|
|
4285
4285
|
function p(P, M) {
|
|
4286
|
-
var F = e(M),
|
|
4287
|
-
return this._t(F,
|
|
4286
|
+
var F = e(M), k = t(M);
|
|
4287
|
+
return this._t(F, k, 0, 0, -k, F, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, i(P), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(F, -k, 0, 0, k, F, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
4288
4288
|
}
|
|
4289
4289
|
function d(P, M, F) {
|
|
4290
4290
|
return !F && F !== 0 && (F = 1), P === 1 && M === 1 && F === 1 ? this : this._t(P, 0, 0, 0, 0, M, 0, 0, 0, 0, F, 0, 0, 0, 0, 1);
|
|
4291
4291
|
}
|
|
4292
|
-
function b(P, M, F,
|
|
4293
|
-
return this.props[0] = P, this.props[1] = M, this.props[2] = F, this.props[3] =
|
|
4292
|
+
function b(P, M, F, k, W, K, X, ee, re, ce, fe, me, de, se, ue, ie) {
|
|
4293
|
+
return this.props[0] = P, this.props[1] = M, this.props[2] = F, this.props[3] = k, this.props[4] = W, this.props[5] = K, this.props[6] = X, this.props[7] = ee, this.props[8] = re, this.props[9] = ce, this.props[10] = fe, this.props[11] = me, this.props[12] = de, this.props[13] = se, this.props[14] = ue, this.props[15] = ie, this;
|
|
4294
4294
|
}
|
|
4295
4295
|
function C(P, M, F) {
|
|
4296
4296
|
return F = F || 0, P !== 0 || M !== 0 || F !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, P, M, F, 1) : this;
|
|
4297
4297
|
}
|
|
4298
|
-
function g(P, M, F,
|
|
4298
|
+
function g(P, M, F, k, W, K, X, ee, re, ce, fe, me, de, se, ue, ie) {
|
|
4299
4299
|
var Y = this.props;
|
|
4300
|
-
if (P === 1 && M === 0 && F === 0 &&
|
|
4300
|
+
if (P === 1 && M === 0 && F === 0 && k === 0 && W === 0 && K === 1 && X === 0 && ee === 0 && re === 0 && ce === 0 && fe === 1 && me === 0)
|
|
4301
4301
|
return Y[12] = Y[12] * P + Y[15] * de, Y[13] = Y[13] * K + Y[15] * se, Y[14] = Y[14] * fe + Y[15] * ue, Y[15] *= ie, this._identityCalculated = !1, this;
|
|
4302
|
-
var Te = Y[0], Ae = Y[1], be = Y[2], Ce = Y[3], Pe = Y[4], ve = Y[5], ye = Y[6], xe = Y[7], we = Y[8], Se = Y[9], Me = Y[10], Ee = Y[11], Le = Y[12], _e = Y[13], Re = Y[14],
|
|
4303
|
-
return Y[0] = Te * P + Ae * W + be * re + Ce * de, Y[1] = Te * M + Ae * K + be * ce + Ce * se, Y[2] = Te * F + Ae * X + be * fe + Ce * ue, Y[3] = Te *
|
|
4302
|
+
var Te = Y[0], Ae = Y[1], be = Y[2], Ce = Y[3], Pe = Y[4], ve = Y[5], ye = Y[6], xe = Y[7], we = Y[8], Se = Y[9], Me = Y[10], Ee = Y[11], Le = Y[12], _e = Y[13], Re = Y[14], ke = Y[15];
|
|
4303
|
+
return Y[0] = Te * P + Ae * W + be * re + Ce * de, Y[1] = Te * M + Ae * K + be * ce + Ce * se, Y[2] = Te * F + Ae * X + be * fe + Ce * ue, Y[3] = Te * k + Ae * ee + be * me + Ce * ie, Y[4] = Pe * P + ve * W + ye * re + xe * de, Y[5] = Pe * M + ve * K + ye * ce + xe * se, Y[6] = Pe * F + ve * X + ye * fe + xe * ue, Y[7] = Pe * k + ve * ee + ye * me + xe * ie, Y[8] = we * P + Se * W + Me * re + Ee * de, Y[9] = we * M + Se * K + Me * ce + Ee * se, Y[10] = we * F + Se * X + Me * fe + Ee * ue, Y[11] = we * k + Se * ee + Me * me + Ee * ie, Y[12] = Le * P + _e * W + Re * re + ke * de, Y[13] = Le * M + _e * K + Re * ce + ke * se, Y[14] = Le * F + _e * X + Re * fe + ke * ue, Y[15] = Le * k + _e * ee + Re * me + ke * ie, this._identityCalculated = !1, this;
|
|
4304
4304
|
}
|
|
4305
4305
|
function E(P) {
|
|
4306
4306
|
var M = P.props;
|
|
@@ -4344,33 +4344,33 @@ var lottie$1 = { exports: {} };
|
|
|
4344
4344
|
function V(P, M, F) {
|
|
4345
4345
|
return P * this.props[2] + M * this.props[6] + F * this.props[10] + this.props[14];
|
|
4346
4346
|
}
|
|
4347
|
-
function
|
|
4348
|
-
var P = this.props[0] * this.props[5] - this.props[1] * this.props[4], M = this.props[5] / P, F = -this.props[1] / P,
|
|
4349
|
-
return ee.props[0] = M, ee.props[1] = F, ee.props[4] =
|
|
4347
|
+
function I() {
|
|
4348
|
+
var P = this.props[0] * this.props[5] - this.props[1] * this.props[4], M = this.props[5] / P, F = -this.props[1] / P, k = -this.props[4] / P, W = this.props[0] / P, K = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / P, X = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / P, ee = new Matrix();
|
|
4349
|
+
return ee.props[0] = M, ee.props[1] = F, ee.props[4] = k, ee.props[5] = W, ee.props[12] = K, ee.props[13] = X, ee;
|
|
4350
4350
|
}
|
|
4351
4351
|
function U(P) {
|
|
4352
4352
|
var M = this.getInverseMatrix();
|
|
4353
4353
|
return M.applyToPointArray(P[0], P[1], P[2] || 0);
|
|
4354
4354
|
}
|
|
4355
4355
|
function z(P) {
|
|
4356
|
-
var M, F = P.length,
|
|
4356
|
+
var M, F = P.length, k = [];
|
|
4357
4357
|
for (M = 0; M < F; M += 1)
|
|
4358
|
-
|
|
4359
|
-
return
|
|
4358
|
+
k[M] = U(P[M]);
|
|
4359
|
+
return k;
|
|
4360
4360
|
}
|
|
4361
4361
|
function j(P, M, F) {
|
|
4362
|
-
var
|
|
4362
|
+
var k = createTypedArray("float32", 6);
|
|
4363
4363
|
if (this.isIdentity())
|
|
4364
|
-
|
|
4364
|
+
k[0] = P[0], k[1] = P[1], k[2] = M[0], k[3] = M[1], k[4] = F[0], k[5] = F[1];
|
|
4365
4365
|
else {
|
|
4366
4366
|
var W = this.props[0], K = this.props[1], X = this.props[4], ee = this.props[5], re = this.props[12], ce = this.props[13];
|
|
4367
|
-
|
|
4367
|
+
k[0] = P[0] * W + P[1] * X + re, k[1] = P[0] * K + P[1] * ee + ce, k[2] = M[0] * W + M[1] * X + re, k[3] = M[0] * K + M[1] * ee + ce, k[4] = F[0] * W + F[1] * X + re, k[5] = F[0] * K + F[1] * ee + ce;
|
|
4368
4368
|
}
|
|
4369
|
-
return
|
|
4369
|
+
return k;
|
|
4370
4370
|
}
|
|
4371
4371
|
function G(P, M, F) {
|
|
4372
|
-
var
|
|
4373
|
-
return this.isIdentity() ?
|
|
4372
|
+
var k;
|
|
4373
|
+
return this.isIdentity() ? k = [P, M, F] : k = [P * this.props[0] + M * this.props[4] + F * this.props[8] + this.props[12], P * this.props[1] + M * this.props[5] + F * this.props[9] + this.props[13], P * this.props[2] + M * this.props[6] + F * this.props[10] + this.props[14]], k;
|
|
4374
4374
|
}
|
|
4375
4375
|
function q(P, M) {
|
|
4376
4376
|
if (this.isIdentity())
|
|
@@ -4379,8 +4379,8 @@ var lottie$1 = { exports: {} };
|
|
|
4379
4379
|
return Math.round((P * F[0] + M * F[4] + F[12]) * 100) / 100 + "," + Math.round((P * F[1] + M * F[5] + F[13]) * 100) / 100;
|
|
4380
4380
|
}
|
|
4381
4381
|
function B() {
|
|
4382
|
-
for (var P = 0, M = this.props, F = "matrix3d(",
|
|
4383
|
-
F += n(M[P] *
|
|
4382
|
+
for (var P = 0, M = this.props, F = "matrix3d(", k = 1e4; P < 16; )
|
|
4383
|
+
F += n(M[P] * k) / k, F += P === 15 ? ")" : ",", P += 1;
|
|
4384
4384
|
return F;
|
|
4385
4385
|
}
|
|
4386
4386
|
function _(P) {
|
|
@@ -4388,11 +4388,11 @@ var lottie$1 = { exports: {} };
|
|
|
4388
4388
|
return P < 1e-6 && P > 0 || P > -1e-6 && P < 0 ? n(P * M) / M : P;
|
|
4389
4389
|
}
|
|
4390
4390
|
function R() {
|
|
4391
|
-
var P = this.props, M = _(P[0]), F = _(P[1]),
|
|
4392
|
-
return "matrix(" + M + "," + F + "," +
|
|
4391
|
+
var P = this.props, M = _(P[0]), F = _(P[1]), k = _(P[4]), W = _(P[5]), K = _(P[12]), X = _(P[13]);
|
|
4392
|
+
return "matrix(" + M + "," + F + "," + k + "," + W + "," + K + "," + X + ")";
|
|
4393
4393
|
}
|
|
4394
4394
|
return function() {
|
|
4395
|
-
this.reset = s, this.rotate = a, this.rotateX = o, this.rotateY = l, this.rotateZ = c, this.skew = u, this.skewFromAxis = p, this.shear = f, this.scale = d, this.setTransform = b, this.translate = C, this.transform = g, this.multiply = E, this.applyToPoint = T, this.applyToX = L, this.applyToY = A, this.applyToZ = V, this.applyToPointArray = G, this.applyToTriplePoints = j, this.applyToPointStringified = q, this.toCSS = B, this.to2dCSS = R, this.clone = y, this.cloneFromProps = S, this.equals = x, this.inversePoints = z, this.inversePoint = U, this.getInverseMatrix =
|
|
4395
|
+
this.reset = s, this.rotate = a, this.rotateX = o, this.rotateY = l, this.rotateZ = c, this.skew = u, this.skewFromAxis = p, this.shear = f, this.scale = d, this.setTransform = b, this.translate = C, this.transform = g, this.multiply = E, this.applyToPoint = T, this.applyToX = L, this.applyToY = A, this.applyToZ = V, this.applyToPointArray = G, this.applyToTriplePoints = j, this.applyToPointStringified = q, this.toCSS = B, this.to2dCSS = R, this.clone = y, this.cloneFromProps = S, this.equals = x, this.inversePoints = z, this.inversePoint = U, this.getInverseMatrix = I, this._t = this.transform, this.isIdentity = m, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
4396
4396
|
};
|
|
4397
4397
|
}();
|
|
4398
4398
|
function _typeof$3(e) {
|
|
@@ -5242,8 +5242,8 @@ var lottie$1 = { exports: {} };
|
|
|
5242
5242
|
function g(_, R) {
|
|
5243
5243
|
var P = document.body && R ? "svg" : "canvas", M, F = getFontProperties(_);
|
|
5244
5244
|
if (P === "svg") {
|
|
5245
|
-
var
|
|
5246
|
-
|
|
5245
|
+
var k = createNS("text");
|
|
5246
|
+
k.style.fontSize = "100px", k.setAttribute("font-family", _.fFamily), k.setAttribute("font-style", F.style), k.setAttribute("font-weight", F.weight), k.textContent = "1", _.fClass ? (k.style.fontFamily = "inherit", k.setAttribute("class", _.fClass)) : k.style.fontFamily = _.fFamily, R.appendChild(k), M = k;
|
|
5247
5247
|
} else {
|
|
5248
5248
|
var W = new OffscreenCanvas(500, 500).getContext("2d");
|
|
5249
5249
|
W.font = F.style + " " + F.weight + " 100px " + _.fFamily, M = W;
|
|
@@ -5270,11 +5270,11 @@ var lottie$1 = { exports: {} };
|
|
|
5270
5270
|
}), this.fonts = _.list;
|
|
5271
5271
|
return;
|
|
5272
5272
|
}
|
|
5273
|
-
var P = _.list, M, F = P.length,
|
|
5273
|
+
var P = _.list, M, F = P.length, k = F;
|
|
5274
5274
|
for (M = 0; M < F; M += 1) {
|
|
5275
5275
|
var W = !0, K, X;
|
|
5276
5276
|
if (P[M].loaded = !1, P[M].monoCase = b(P[M].fFamily, "monospace"), P[M].sansCase = b(P[M].fFamily, "sans-serif"), !P[M].fPath)
|
|
5277
|
-
P[M].loaded = !0,
|
|
5277
|
+
P[M].loaded = !0, k -= 1;
|
|
5278
5278
|
else if (P[M].fOrigin === "p" || P[M].origin === 3) {
|
|
5279
5279
|
if (K = document.querySelectorAll('style[f-forigin="p"][f-family="' + P[M].fFamily + '"], style[f-origin="3"][f-family="' + P[M].fFamily + '"]'), K.length > 0 && (W = !1), W) {
|
|
5280
5280
|
var ee = createTag("style");
|
|
@@ -5297,16 +5297,16 @@ var lottie$1 = { exports: {} };
|
|
|
5297
5297
|
}
|
|
5298
5298
|
P[M].helper = g(P[M], R), P[M].cache = {}, this.fonts.push(P[M]);
|
|
5299
5299
|
}
|
|
5300
|
-
|
|
5300
|
+
k === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
|
|
5301
5301
|
}
|
|
5302
5302
|
function m(_) {
|
|
5303
5303
|
if (_) {
|
|
5304
5304
|
this.chars || (this.chars = []);
|
|
5305
|
-
var R, P = _.length, M, F = this.chars.length,
|
|
5305
|
+
var R, P = _.length, M, F = this.chars.length, k;
|
|
5306
5306
|
for (R = 0; R < P; R += 1) {
|
|
5307
|
-
for (M = 0,
|
|
5308
|
-
this.chars[M].style === _[R].style && this.chars[M].fFamily === _[R].fFamily && this.chars[M].ch === _[R].ch && (
|
|
5309
|
-
|
|
5307
|
+
for (M = 0, k = !1; M < F; )
|
|
5308
|
+
this.chars[M].style === _[R].style && this.chars[M].fFamily === _[R].fFamily && this.chars[M].ch === _[R].ch && (k = !0), M += 1;
|
|
5309
|
+
k || (this.chars.push(_[R]), F += 1);
|
|
5310
5310
|
}
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
@@ -5321,12 +5321,12 @@ var lottie$1 = { exports: {} };
|
|
|
5321
5321
|
function y(_, R, P) {
|
|
5322
5322
|
var M = this.getFontByName(R), F = _;
|
|
5323
5323
|
if (!M.cache[F]) {
|
|
5324
|
-
var
|
|
5324
|
+
var k = M.helper;
|
|
5325
5325
|
if (_ === " ") {
|
|
5326
|
-
var W =
|
|
5326
|
+
var W = k.measureText("|" + _ + "|"), K = k.measureText("||");
|
|
5327
5327
|
M.cache[F] = (W - K) / 100;
|
|
5328
5328
|
} else
|
|
5329
|
-
M.cache[F] =
|
|
5329
|
+
M.cache[F] = k.measureText(_) / 100;
|
|
5330
5330
|
}
|
|
5331
5331
|
return M.cache[F] * P;
|
|
5332
5332
|
}
|
|
@@ -5356,12 +5356,12 @@ var lottie$1 = { exports: {} };
|
|
|
5356
5356
|
function V(_) {
|
|
5357
5357
|
return _ === l;
|
|
5358
5358
|
}
|
|
5359
|
-
function
|
|
5359
|
+
function I(_) {
|
|
5360
5360
|
var R = T(_);
|
|
5361
5361
|
return R >= f && R <= u;
|
|
5362
5362
|
}
|
|
5363
5363
|
function U(_) {
|
|
5364
|
-
return
|
|
5364
|
+
return I(_.substr(0, 2)) && I(_.substr(2, 2));
|
|
5365
5365
|
}
|
|
5366
5366
|
function z(_) {
|
|
5367
5367
|
return i.indexOf(_) !== -1;
|
|
@@ -5384,7 +5384,7 @@ var lottie$1 = { exports: {} };
|
|
|
5384
5384
|
var q = function() {
|
|
5385
5385
|
this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
|
|
5386
5386
|
};
|
|
5387
|
-
q.isModifier = L, q.isZeroWidthJoiner = A, q.isFlagEmoji = U, q.isRegionalCode =
|
|
5387
|
+
q.isModifier = L, q.isZeroWidthJoiner = A, q.isFlagEmoji = U, q.isRegionalCode = I, q.isCombinedCharacter = z, q.isRegionalFlag = j, q.isVariationSelector = V, q.BLACK_FLAG_CODE_POINT = n;
|
|
5388
5388
|
var B = {
|
|
5389
5389
|
addChars: m,
|
|
5390
5390
|
addFonts: E,
|
|
@@ -6343,14 +6343,14 @@ var lottie$1 = { exports: {} };
|
|
|
6343
6343
|
function a() {
|
|
6344
6344
|
}
|
|
6345
6345
|
function o(p, d, b) {
|
|
6346
|
-
var C, g, E, m, x, y, S = d.styles.length, T = d.lvl, L, A, V,
|
|
6346
|
+
var C, g, E, m, x, y, S = d.styles.length, T = d.lvl, L, A, V, I;
|
|
6347
6347
|
for (y = 0; y < S; y += 1) {
|
|
6348
6348
|
if (m = d.sh._mdf || b, d.styles[y].lvl < T) {
|
|
6349
|
-
for (A = t.reset(), V = T - d.styles[y].lvl,
|
|
6350
|
-
m = d.transformers[
|
|
6349
|
+
for (A = t.reset(), V = T - d.styles[y].lvl, I = d.transformers.length - 1; !m && V > 0; )
|
|
6350
|
+
m = d.transformers[I].mProps._mdf || m, V -= 1, I -= 1;
|
|
6351
6351
|
if (m)
|
|
6352
|
-
for (V = T - d.styles[y].lvl,
|
|
6353
|
-
A.multiply(d.transformers[
|
|
6352
|
+
for (V = T - d.styles[y].lvl, I = d.transformers.length - 1; V > 0; )
|
|
6353
|
+
A.multiply(d.transformers[I].mProps.v), V -= 1, I -= 1;
|
|
6354
6354
|
} else
|
|
6355
6355
|
A = e;
|
|
6356
6356
|
if (L = d.sh.paths, g = L._length, m) {
|
|
@@ -6382,9 +6382,9 @@ var lottie$1 = { exports: {} };
|
|
|
6382
6382
|
var T, L, A, V;
|
|
6383
6383
|
if (d.g._cmdf || b) {
|
|
6384
6384
|
T = d.cst;
|
|
6385
|
-
var
|
|
6385
|
+
var I = d.g.c;
|
|
6386
6386
|
for (A = T.length, L = 0; L < A; L += 1)
|
|
6387
|
-
V = T[L], V.setAttribute("offset",
|
|
6387
|
+
V = T[L], V.setAttribute("offset", I[L * 4] + "%"), V.setAttribute("stop-color", "rgb(" + I[L * 4 + 1] + "," + I[L * 4 + 2] + "," + I[L * 4 + 3] + ")");
|
|
6388
6388
|
}
|
|
6389
6389
|
if (g && (d.g._omdf || b)) {
|
|
6390
6390
|
var U = d.g.o;
|
|
@@ -6593,11 +6593,11 @@ var lottie$1 = { exports: {} };
|
|
|
6593
6593
|
e.fWeight = T.weight, e.fStyle = T.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), a = e.finalText.length, e.finalLineHeight = e.lh;
|
|
6594
6594
|
var L = e.tr / 1e3 * e.finalSize, A;
|
|
6595
6595
|
if (e.sz)
|
|
6596
|
-
for (var V = !0,
|
|
6596
|
+
for (var V = !0, I = e.sz[0], U = e.sz[1], z, j; V; ) {
|
|
6597
6597
|
j = this.buildFinalText(e.t), z = 0, C = 0, a = j.length, L = e.tr / 1e3 * e.finalSize;
|
|
6598
6598
|
var G = -1;
|
|
6599
6599
|
for (s = 0; s < a; s += 1)
|
|
6600
|
-
A = j[s].charCodeAt(0), o = !1, j[s] === " " ? G = s : (A === 13 || A === 3) && (C = 0, o = !0, z += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (y = t.getCharData(j[s], x.fStyle, x.fFamily), S = o ? 0 : y.w * e.finalSize / 100) : S = t.measureText(j[s], e.f, e.finalSize), C + S >
|
|
6600
|
+
A = j[s].charCodeAt(0), o = !1, j[s] === " " ? G = s : (A === 13 || A === 3) && (C = 0, o = !0, z += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (y = t.getCharData(j[s], x.fStyle, x.fFamily), S = o ? 0 : y.w * e.finalSize / 100) : S = t.measureText(j[s], e.f, e.finalSize), C + S > I && j[s] !== " " ? (G === -1 ? a += 1 : s = G, z += e.finalLineHeight || e.finalSize * 1.2, j.splice(s, G === s ? 1 : 0, "\r"), G = -1, C = 0) : (C += S, C += L);
|
|
6601
6601
|
z += x.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && U < z ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = j, a = e.finalText.length, V = !1);
|
|
6602
6602
|
}
|
|
6603
6603
|
C = -L, S = 0;
|
|
@@ -6642,15 +6642,15 @@ var lottie$1 = { exports: {} };
|
|
|
6642
6642
|
e.lineWidths = b;
|
|
6643
6643
|
var _ = i.a, R, P;
|
|
6644
6644
|
m = _.length;
|
|
6645
|
-
var M, F,
|
|
6645
|
+
var M, F, k = [];
|
|
6646
6646
|
for (E = 0; E < m; E += 1) {
|
|
6647
6647
|
for (R = _[E], R.a.sc && (e.strokeColorAnim = !0), R.a.sw && (e.strokeWidthAnim = !0), (R.a.fc || R.a.fh || R.a.fs || R.a.fb) && (e.fillColorAnim = !0), F = 0, M = R.s.b, s = 0; s < a; s += 1)
|
|
6648
|
-
P = n[s], P.anIndexes[E] = F, (M == 1 && P.val !== "" || M == 2 && P.val !== "" && P.val !== " " || M == 3 && (P.n || P.val == " " || s == a - 1) || M == 4 && (P.n || s == a - 1)) && (R.s.rn === 1 &&
|
|
6648
|
+
P = n[s], P.anIndexes[E] = F, (M == 1 && P.val !== "" || M == 2 && P.val !== "" && P.val !== " " || M == 3 && (P.n || P.val == " " || s == a - 1) || M == 4 && (P.n || s == a - 1)) && (R.s.rn === 1 && k.push(F), F += 1);
|
|
6649
6649
|
i.a[E].s.totalChars = F;
|
|
6650
6650
|
var W = -1, K;
|
|
6651
6651
|
if (R.s.rn === 1)
|
|
6652
6652
|
for (s = 0; s < a; s += 1)
|
|
6653
|
-
P = n[s], W != P.anIndexes[E] && (W = P.anIndexes[E], K =
|
|
6653
|
+
P = n[s], W != P.anIndexes[E] && (W = P.anIndexes[E], K = k.splice(Math.floor(Math.random() * k.length), 1)[0]), P.anIndexes[E] = K;
|
|
6654
6654
|
}
|
|
6655
6655
|
e.yOffset = e.finalLineHeight || e.finalSize * 1.2, e.ls = e.ls || 0, e.ascent = x.ascent * e.finalSize / 100;
|
|
6656
6656
|
}, TextProperty.prototype.updateDocumentData = function(e, t) {
|
|
@@ -6773,7 +6773,7 @@ var lottie$1 = { exports: {} };
|
|
|
6773
6773
|
}, TextAnimatorProperty.prototype.getMeasures = function(e, t) {
|
|
6774
6774
|
if (this.lettersChangedFlag = t, !(!this._mdf && !this._isFirstFrame && !t && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
6775
6775
|
this._isFirstFrame = !1;
|
|
6776
|
-
var i = this._moreOptions.alignment.v, n = this._animatorsData, s = this._textData, a = this.mHelper, o = this._renderType, l = this.renderedLetters.length, c, f, u, p, d = e.l, b, C, g, E, m, x, y, S, T, L, A, V,
|
|
6776
|
+
var i = this._moreOptions.alignment.v, n = this._animatorsData, s = this._textData, a = this.mHelper, o = this._renderType, l = this.renderedLetters.length, c, f, u, p, d = e.l, b, C, g, E, m, x, y, S, T, L, A, V, I, U, z;
|
|
6777
6777
|
if (this._hasMaskedPath) {
|
|
6778
6778
|
if (z = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
6779
6779
|
var j = z.v;
|
|
@@ -6794,7 +6794,7 @@ var lottie$1 = { exports: {} };
|
|
|
6794
6794
|
p = d.length, c = 0, f = 0;
|
|
6795
6795
|
var q = e.finalSize * 1.2 * 0.714, B = !0, _, R, P, M, F;
|
|
6796
6796
|
M = n.length;
|
|
6797
|
-
var
|
|
6797
|
+
var k, W = -1, K, X, ee, re = C, ce = y, fe = x, me = -1, de, se, ue, ie, Y, Te, Ae, be, Ce = "", Pe = this.defaultPropsArray, ve;
|
|
6798
6798
|
if (e.j === 2 || e.j === 1) {
|
|
6799
6799
|
var ye = 0, xe = 0, we = e.j === 2 ? -0.5 : -1, Se = 0, Me = !0;
|
|
6800
6800
|
for (u = 0; u < p; u += 1)
|
|
@@ -6804,7 +6804,7 @@ var lottie$1 = { exports: {} };
|
|
|
6804
6804
|
ye = 0, Me = !0;
|
|
6805
6805
|
} else {
|
|
6806
6806
|
for (P = 0; P < M; P += 1)
|
|
6807
|
-
_ = n[P].a, _.t.propType && (Me && e.j === 2 && (xe += _.t.v * we), R = n[P].s,
|
|
6807
|
+
_ = n[P].a, _.t.propType && (Me && e.j === 2 && (xe += _.t.v * we), R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), k.length ? ye += _.t.v * k[0] * we : ye += _.t.v * k * we);
|
|
6808
6808
|
Me = !1;
|
|
6809
6809
|
}
|
|
6810
6810
|
for (ye && (ye += xe); Se < u; )
|
|
@@ -6829,31 +6829,31 @@ var lottie$1 = { exports: {} };
|
|
|
6829
6829
|
W !== d[u].ind && (d[W] && (C += d[W].extra), C += d[u].an / 2, W = d[u].ind), C += i[0] * d[u].an * 5e-3;
|
|
6830
6830
|
var Ee = 0;
|
|
6831
6831
|
for (P = 0; P < M; P += 1)
|
|
6832
|
-
_ = n[P].a, _.p.propType && (R = n[P].s,
|
|
6832
|
+
_ = n[P].a, _.p.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), k.length ? Ee += _.p.v[0] * k[0] : Ee += _.p.v[0] * k), _.a.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), k.length ? Ee += _.a.v[0] * k[0] : Ee += _.a.v[0] * k);
|
|
6833
6833
|
for (m = !0, this._pathData.a.v && (C = d[0].an * 0.5 + (V - this._pathData.f.v - d[0].an * 0.5 - d[d.length - 1].an * 0.5) * W / (p - 1), C += this._pathData.f.v); m; )
|
|
6834
|
-
E + A >= C + Ee || !T ? (
|
|
6834
|
+
E + A >= C + Ee || !T ? (I = (C + Ee - E) / g.partialLength, X = S.point[0] + (g.point[0] - S.point[0]) * I, ee = S.point[1] + (g.point[1] - S.point[1]) * I, a.translate(-i[0] * d[u].an * 5e-3, -(i[1] * q) * 0.01), m = !1) : T && (E += g.partialLength, x += 1, x >= T.length && (x = 0, y += 1, L[y] ? T = L[y].points : z.v.c ? (x = 0, y = 0, T = L[y].points) : (E -= g.partialLength, T = null)), T && (S = g, g = T[x], A = g.partialLength));
|
|
6835
6835
|
K = d[u].an / 2 - d[u].add, a.translate(-K, 0, 0);
|
|
6836
6836
|
} else
|
|
6837
6837
|
K = d[u].an / 2 - d[u].add, a.translate(-K, 0, 0), a.translate(-i[0] * d[u].an * 5e-3, -i[1] * q * 0.01, 0);
|
|
6838
6838
|
for (P = 0; P < M; P += 1)
|
|
6839
|
-
_ = n[P].a, _.t.propType && (R = n[P].s,
|
|
6839
|
+
_ = n[P].a, _.t.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), (c !== 0 || e.j !== 0) && (this._hasMaskedPath ? k.length ? C += _.t.v * k[0] : C += _.t.v * k : k.length ? c += _.t.v * k[0] : c += _.t.v * k));
|
|
6840
6840
|
for (e.strokeWidthAnim && (ue = e.sw || 0), e.strokeColorAnim && (e.sc ? se = [e.sc[0], e.sc[1], e.sc[2]] : se = [0, 0, 0]), e.fillColorAnim && e.fc && (ie = [e.fc[0], e.fc[1], e.fc[2]]), P = 0; P < M; P += 1)
|
|
6841
|
-
_ = n[P].a, _.a.propType && (R = n[P].s,
|
|
6841
|
+
_ = n[P].a, _.a.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), k.length ? a.translate(-_.a.v[0] * k[0], -_.a.v[1] * k[1], _.a.v[2] * k[2]) : a.translate(-_.a.v[0] * k, -_.a.v[1] * k, _.a.v[2] * k));
|
|
6842
6842
|
for (P = 0; P < M; P += 1)
|
|
6843
|
-
_ = n[P].a, _.s.propType && (R = n[P].s,
|
|
6843
|
+
_ = n[P].a, _.s.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), k.length ? a.scale(1 + (_.s.v[0] - 1) * k[0], 1 + (_.s.v[1] - 1) * k[1], 1) : a.scale(1 + (_.s.v[0] - 1) * k, 1 + (_.s.v[1] - 1) * k, 1));
|
|
6844
6844
|
for (P = 0; P < M; P += 1) {
|
|
6845
|
-
if (_ = n[P].a, R = n[P].s,
|
|
6845
|
+
if (_ = n[P].a, R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), _.sk.propType && (k.length ? a.skewFromAxis(-_.sk.v * k[0], _.sa.v * k[1]) : a.skewFromAxis(-_.sk.v * k, _.sa.v * k)), _.r.propType && (k.length ? a.rotateZ(-_.r.v * k[2]) : a.rotateZ(-_.r.v * k)), _.ry.propType && (k.length ? a.rotateY(_.ry.v * k[1]) : a.rotateY(_.ry.v * k)), _.rx.propType && (k.length ? a.rotateX(_.rx.v * k[0]) : a.rotateX(_.rx.v * k)), _.o.propType && (k.length ? de += (_.o.v * k[0] - de) * k[0] : de += (_.o.v * k - de) * k), e.strokeWidthAnim && _.sw.propType && (k.length ? ue += _.sw.v * k[0] : ue += _.sw.v * k), e.strokeColorAnim && _.sc.propType)
|
|
6846
6846
|
for (Y = 0; Y < 3; Y += 1)
|
|
6847
|
-
|
|
6847
|
+
k.length ? se[Y] += (_.sc.v[Y] - se[Y]) * k[0] : se[Y] += (_.sc.v[Y] - se[Y]) * k;
|
|
6848
6848
|
if (e.fillColorAnim && e.fc) {
|
|
6849
6849
|
if (_.fc.propType)
|
|
6850
6850
|
for (Y = 0; Y < 3; Y += 1)
|
|
6851
|
-
|
|
6852
|
-
_.fh.propType && (
|
|
6851
|
+
k.length ? ie[Y] += (_.fc.v[Y] - ie[Y]) * k[0] : ie[Y] += (_.fc.v[Y] - ie[Y]) * k;
|
|
6852
|
+
_.fh.propType && (k.length ? ie = addHueToRGB(ie, _.fh.v * k[0]) : ie = addHueToRGB(ie, _.fh.v * k)), _.fs.propType && (k.length ? ie = addSaturationToRGB(ie, _.fs.v * k[0]) : ie = addSaturationToRGB(ie, _.fs.v * k)), _.fb.propType && (k.length ? ie = addBrightnessToRGB(ie, _.fb.v * k[0]) : ie = addBrightnessToRGB(ie, _.fb.v * k));
|
|
6853
6853
|
}
|
|
6854
6854
|
}
|
|
6855
6855
|
for (P = 0; P < M; P += 1)
|
|
6856
|
-
_ = n[P].a, _.p.propType && (R = n[P].s,
|
|
6856
|
+
_ = n[P].a, _.p.propType && (R = n[P].s, k = R.getMult(d[u].anIndexes[P], s.a[P].s.totalChars), this._hasMaskedPath ? k.length ? a.translate(0, _.p.v[1] * k[0], -_.p.v[2] * k[1]) : a.translate(0, _.p.v[1] * k, -_.p.v[2] * k) : k.length ? a.translate(_.p.v[0] * k[0], _.p.v[1] * k[1], -_.p.v[2] * k[2]) : a.translate(_.p.v[0] * k, _.p.v[1] * k, -_.p.v[2] * k));
|
|
6857
6857
|
if (e.strokeWidthAnim && (Te = ue < 0 ? 0 : ue), e.strokeColorAnim && (Ae = "rgb(" + Math.round(se[0] * 255) + "," + Math.round(se[1] * 255) + "," + Math.round(se[2] * 255) + ")"), e.fillColorAnim && e.fc && (be = "rgb(" + Math.round(ie[0] * 255) + "," + Math.round(ie[1] * 255) + "," + Math.round(ie[2] * 255) + ")"), this._hasMaskedPath) {
|
|
6858
6858
|
if (a.translate(0, -e.ls), a.translate(0, i[1] * q * 0.01 + f, 0), this._pathData.p.v) {
|
|
6859
6859
|
U = (g.point[1] - S.point[1]) / (g.point[0] - S.point[0]);
|
|
@@ -8370,30 +8370,30 @@ var lottie$1 = { exports: {} };
|
|
|
8370
8370
|
S = S === !0 ? {
|
|
8371
8371
|
entropy: !0
|
|
8372
8372
|
} : S || {};
|
|
8373
|
-
var A = E(g(S.entropy ? [y, x(e)] : y === null ? m() : y, 3), L), V = new b(L),
|
|
8373
|
+
var A = E(g(S.entropy ? [y, x(e)] : y === null ? m() : y, 3), L), V = new b(L), I = function() {
|
|
8374
8374
|
for (var z = V.g(s), j = l, G = 0; z < c; )
|
|
8375
8375
|
z = (z + G) * n, j *= n, G = V.g(1);
|
|
8376
8376
|
for (; z >= f; )
|
|
8377
8377
|
z /= 2, j /= 2, G >>>= 1;
|
|
8378
8378
|
return (z + G) / j;
|
|
8379
8379
|
};
|
|
8380
|
-
return
|
|
8380
|
+
return I.int32 = function() {
|
|
8381
8381
|
return V.g(4) | 0;
|
|
8382
|
-
},
|
|
8382
|
+
}, I.quick = function() {
|
|
8383
8383
|
return V.g(4) / 4294967296;
|
|
8384
|
-
},
|
|
8384
|
+
}, I.double = I, E(x(V.S), e), (S.pass || T || function(U, z, j, G) {
|
|
8385
8385
|
return G && (G.S && C(G, V), U.state = function() {
|
|
8386
8386
|
return C(V, {});
|
|
8387
8387
|
}), j ? (t[o] = U, z) : U;
|
|
8388
|
-
})(
|
|
8388
|
+
})(I, A, "global" in S ? S.global : this == t, S.state);
|
|
8389
8389
|
}
|
|
8390
8390
|
t["seed" + o] = d;
|
|
8391
8391
|
function b(y) {
|
|
8392
|
-
var S, T = y.length, L = this, A = 0, V = L.i = L.j = 0,
|
|
8392
|
+
var S, T = y.length, L = this, A = 0, V = L.i = L.j = 0, I = L.S = [];
|
|
8393
8393
|
for (T || (y = [T++]); A < n; )
|
|
8394
|
-
|
|
8394
|
+
I[A] = A++;
|
|
8395
8395
|
for (A = 0; A < n; A++)
|
|
8396
|
-
|
|
8396
|
+
I[A] = I[V = u & V + y[A % T] + (S = I[A])], I[V] = S;
|
|
8397
8397
|
L.g = function(U) {
|
|
8398
8398
|
for (var z, j = 0, G = L.i, q = L.j, B = L.S; U--; )
|
|
8399
8399
|
z = B[G = u & G + 1], j = j * n + B[u & (B[G] = B[q = u & q + z]) + (B[q] = z)];
|
|
@@ -9605,13 +9605,13 @@ var lottie$1 = { exports: {} };
|
|
|
9605
9605
|
if (A % 2 !== 0)
|
|
9606
9606
|
return this.getValueAtTime((x - (g - y) % x + y) / this.comp.globalData.frameRate, 0);
|
|
9607
9607
|
} else if (d === "offset") {
|
|
9608
|
-
var V = this.getValueAtTime(y / this.comp.globalData.frameRate, 0),
|
|
9608
|
+
var V = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), I = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), U = this.getValueAtTime(((g - y) % x + y) / this.comp.globalData.frameRate, 0), z = Math.floor((g - y) / x);
|
|
9609
9609
|
if (this.pv.length) {
|
|
9610
9610
|
for (L = new Array(V.length), T = L.length, S = 0; S < T; S += 1)
|
|
9611
|
-
L[S] = (
|
|
9611
|
+
L[S] = (I[S] - V[S]) * z + U[S];
|
|
9612
9612
|
return L;
|
|
9613
9613
|
}
|
|
9614
|
-
return (
|
|
9614
|
+
return (I - V) * z + U;
|
|
9615
9615
|
} else if (d === "continue") {
|
|
9616
9616
|
var j = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), G = this.getValueAtTime((m - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
9617
9617
|
if (this.pv.length) {
|
|
@@ -9638,13 +9638,13 @@ var lottie$1 = { exports: {} };
|
|
|
9638
9638
|
if (A % 2 === 0)
|
|
9639
9639
|
return this.getValueAtTime(((m - g) % x + m) / this.comp.globalData.frameRate, 0);
|
|
9640
9640
|
} else if (d === "offset") {
|
|
9641
|
-
var V = this.getValueAtTime(m / this.comp.globalData.frameRate, 0),
|
|
9641
|
+
var V = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), I = this.getValueAtTime(y / this.comp.globalData.frameRate, 0), U = this.getValueAtTime((x - (m - g) % x + m) / this.comp.globalData.frameRate, 0), z = Math.floor((m - g) / x) + 1;
|
|
9642
9642
|
if (this.pv.length) {
|
|
9643
9643
|
for (L = new Array(V.length), T = L.length, S = 0; S < T; S += 1)
|
|
9644
|
-
L[S] = U[S] - (
|
|
9644
|
+
L[S] = U[S] - (I[S] - V[S]) * z;
|
|
9645
9645
|
return L;
|
|
9646
9646
|
}
|
|
9647
|
-
return U - (
|
|
9647
|
+
return U - (I - V) * z;
|
|
9648
9648
|
} else if (d === "continue") {
|
|
9649
9649
|
var j = this.getValueAtTime(m / this.comp.globalData.frameRate, 0), G = this.getValueAtTime((m + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
9650
9650
|
if (this.pv.length) {
|
|
@@ -9705,8 +9705,8 @@ var lottie$1 = { exports: {} };
|
|
|
9705
9705
|
if (this.data.p && this.data.p.s) {
|
|
9706
9706
|
var A = this.px.getValueAtTime(d), V = this.py.getValueAtTime(d);
|
|
9707
9707
|
if (this.data.p.z) {
|
|
9708
|
-
var
|
|
9709
|
-
b.translate(A * this.px.mult, V * this.py.mult, -
|
|
9708
|
+
var I = this.pz.getValueAtTime(d);
|
|
9709
|
+
b.translate(A * this.px.mult, V * this.py.mult, -I * this.pz.mult);
|
|
9710
9710
|
} else
|
|
9711
9711
|
b.translate(A * this.px.mult, V * this.py.mult, 0);
|
|
9712
9712
|
} else {
|
|
@@ -9771,8 +9771,8 @@ var lottie$1 = { exports: {} };
|
|
|
9771
9771
|
C !== void 0 && (g = this.getValueAtTime(C, 0)), this._segmentsLength || (this._segmentsLength = bez.getSegmentsLength(g));
|
|
9772
9772
|
for (var E = this._segmentsLength, m = E.lengths, x = E.totalLength * b, y = 0, S = m.length, T = 0, L; y < S; ) {
|
|
9773
9773
|
if (T + m[y].addedLength > x) {
|
|
9774
|
-
var A = y, V = g.c && y === S - 1 ? 0 : y + 1,
|
|
9775
|
-
L = bez.getPointInSegment(g.v[A], g.v[V], g.o[A], g.i[V],
|
|
9774
|
+
var A = y, V = g.c && y === S - 1 ? 0 : y + 1, I = (x - T) / m[y].addedLength;
|
|
9775
|
+
L = bez.getPointInSegment(g.v[A], g.v[V], g.o[A], g.i[V], I, m[y]);
|
|
9776
9776
|
break;
|
|
9777
9777
|
} else
|
|
9778
9778
|
T += m[y].addedLength;
|
|
@@ -10155,7 +10155,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10155
10155
|
var m = _objectWithoutProperties(t, _excluded$1), x = useState(!1), y = _slicedToArray(x, 2), S = y[0], T = y[1], L = useRef(), A = useRef(null), V = function() {
|
|
10156
10156
|
var W;
|
|
10157
10157
|
(W = L.current) === null || W === void 0 || W.play();
|
|
10158
|
-
},
|
|
10158
|
+
}, I = function() {
|
|
10159
10159
|
var W;
|
|
10160
10160
|
(W = L.current) === null || W === void 0 || W.stop();
|
|
10161
10161
|
}, U = function() {
|
|
@@ -10199,9 +10199,9 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10199
10199
|
}
|
|
10200
10200
|
};
|
|
10201
10201
|
useEffect(function() {
|
|
10202
|
-
var
|
|
10202
|
+
var k = M();
|
|
10203
10203
|
return function() {
|
|
10204
|
-
return
|
|
10204
|
+
return k == null ? void 0 : k();
|
|
10205
10205
|
};
|
|
10206
10206
|
}, [n, s]), useEffect(function() {
|
|
10207
10207
|
L.current && (L.current.autoplay = !!a);
|
|
@@ -10214,7 +10214,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10214
10214
|
!Array.isArray(o) || !o.length || ((L.current.currentRawFrame < o[0] || L.current.currentRawFrame > o[1]) && (L.current.currentRawFrame = o[0]), L.current.setSegment(o[0], o[1]));
|
|
10215
10215
|
}
|
|
10216
10216
|
}, [o]), useEffect(function() {
|
|
10217
|
-
var
|
|
10217
|
+
var k = [{
|
|
10218
10218
|
name: "complete",
|
|
10219
10219
|
handler: l
|
|
10220
10220
|
}, {
|
|
@@ -10244,7 +10244,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10244
10244
|
}, {
|
|
10245
10245
|
name: "destroy",
|
|
10246
10246
|
handler: E
|
|
10247
|
-
}], W =
|
|
10247
|
+
}], W = k.filter(function(X) {
|
|
10248
10248
|
return X.handler != null;
|
|
10249
10249
|
});
|
|
10250
10250
|
if (W.length) {
|
|
@@ -10276,7 +10276,7 @@ var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onCom
|
|
|
10276
10276
|
return {
|
|
10277
10277
|
View: F,
|
|
10278
10278
|
play: V,
|
|
10279
|
-
stop:
|
|
10279
|
+
stop: I,
|
|
10280
10280
|
pause: U,
|
|
10281
10281
|
setSpeed: z,
|
|
10282
10282
|
goToAndStop: G,
|
|
@@ -11380,8 +11380,8 @@ function RemoveScrollSideCar(e) {
|
|
|
11380
11380
|
return !1;
|
|
11381
11381
|
if (!n.current && "changedTouches" in g && (y || S) && (n.current = T), !T)
|
|
11382
11382
|
return !0;
|
|
11383
|
-
var
|
|
11384
|
-
return handleScroll(
|
|
11383
|
+
var I = n.current || T;
|
|
11384
|
+
return handleScroll(I, E, g, I === "h" ? y : S, !0);
|
|
11385
11385
|
}, []), c = React.useCallback(function(g) {
|
|
11386
11386
|
var E = g;
|
|
11387
11387
|
if (!(!lockStack.length || lockStack[lockStack.length - 1] !== a)) {
|
|
@@ -11785,8 +11785,8 @@ var DISMISSABLE_LAYER_NAME = "DismissableLayer", CONTEXT_UPDATE = "dismissableLa
|
|
|
11785
11785
|
onDismiss: l,
|
|
11786
11786
|
...c
|
|
11787
11787
|
} = e, f = React.useContext(DismissableLayerContext), [u, p] = React.useState(null), d = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, b] = React.useState({}), C = useComposedRefs$1(t, (A) => p(A)), g = Array.from(f.layers), [E] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), m = g.indexOf(E), x = u ? g.indexOf(u) : -1, y = f.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= m, T = usePointerDownOutside((A) => {
|
|
11788
|
-
const V = A.target,
|
|
11789
|
-
!S ||
|
|
11788
|
+
const V = A.target, I = [...f.branches].some((U) => U.contains(V));
|
|
11789
|
+
!S || I || (s == null || s(A), o == null || o(A), A.defaultPrevented || l == null || l());
|
|
11790
11790
|
}, d), L = useFocusOutside((A) => {
|
|
11791
11791
|
const V = A.target;
|
|
11792
11792
|
[...f.branches].some((U) => U.contains(V)) || (a == null || a(A), o == null || o(A), A.defaultPrevented || l == null || l());
|
|
@@ -12719,14 +12719,14 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12719
12719
|
height: 0
|
|
12720
12720
|
};
|
|
12721
12721
|
var V;
|
|
12722
|
-
return (V = i == null ? void 0 : i.map((
|
|
12723
|
-
const U = typeof
|
|
12722
|
+
return (V = i == null ? void 0 : i.map((I) => {
|
|
12723
|
+
const U = typeof I == "string";
|
|
12724
12724
|
let z = 0;
|
|
12725
|
-
if (U && (z = parseInt(
|
|
12726
|
-
const G = U ? z : d ?
|
|
12725
|
+
if (U && (z = parseInt(I, 10)), isVertical(l)) {
|
|
12726
|
+
const G = U ? z : d ? I * A.height : 0;
|
|
12727
12727
|
return d ? l === "bottom" ? A.height - G : -A.height + G : G;
|
|
12728
12728
|
}
|
|
12729
|
-
const j = U ? z : d ?
|
|
12729
|
+
const j = U ? z : d ? I * A.width : 0;
|
|
12730
12730
|
return d ? l === "right" ? A.width - j : -A.width + j : j;
|
|
12731
12731
|
})) != null ? V : [];
|
|
12732
12732
|
}, [
|
|
@@ -12738,17 +12738,17 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12738
12738
|
g
|
|
12739
12739
|
]), y = React__default.useCallback((A) => {
|
|
12740
12740
|
var V;
|
|
12741
|
-
const
|
|
12742
|
-
o(
|
|
12741
|
+
const I = (V = m == null ? void 0 : m.findIndex((U) => U === A)) != null ? V : null;
|
|
12742
|
+
o(I), set(n.current, {
|
|
12743
12743
|
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
12744
12744
|
transform: isVertical(l) ? `translate3d(0, ${A}px, 0)` : `translate3d(${A}px, 0, 0)`
|
|
12745
|
-
}), m &&
|
|
12745
|
+
}), m && I !== m.length - 1 && a !== void 0 && I !== a && I < a ? set(s.current, {
|
|
12746
12746
|
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
12747
12747
|
opacity: "0"
|
|
12748
12748
|
}) : set(s.current, {
|
|
12749
12749
|
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
12750
12750
|
opacity: "1"
|
|
12751
|
-
}), p(i == null ? void 0 : i[Math.max(
|
|
12751
|
+
}), p(i == null ? void 0 : i[Math.max(I, 0)]);
|
|
12752
12752
|
}, [
|
|
12753
12753
|
n.current,
|
|
12754
12754
|
i,
|
|
@@ -12760,7 +12760,7 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12760
12760
|
React__default.useEffect(() => {
|
|
12761
12761
|
if (u || e) {
|
|
12762
12762
|
var A;
|
|
12763
|
-
const V = (A = i == null ? void 0 : i.findIndex((
|
|
12763
|
+
const V = (A = i == null ? void 0 : i.findIndex((I) => I === e || I === u)) != null ? A : -1;
|
|
12764
12764
|
m && V !== -1 && typeof m[V] == "number" && y(m[V]);
|
|
12765
12765
|
}
|
|
12766
12766
|
}, [
|
|
@@ -12770,21 +12770,21 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12770
12770
|
m,
|
|
12771
12771
|
y
|
|
12772
12772
|
]);
|
|
12773
|
-
function S({ draggedDistance: A, closeDrawer: V, velocity:
|
|
12773
|
+
function S({ draggedDistance: A, closeDrawer: V, velocity: I, dismissible: U }) {
|
|
12774
12774
|
if (a === void 0) return;
|
|
12775
12775
|
const z = l === "bottom" || l === "right" ? (x ?? 0) - A : (x ?? 0) + A, j = g === a - 1, G = g === 0, q = A > 0;
|
|
12776
12776
|
if (j && set(s.current, {
|
|
12777
12777
|
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`
|
|
12778
|
-
}), !f &&
|
|
12778
|
+
}), !f && I > 2 && !q) {
|
|
12779
12779
|
U ? V() : y(m[0]);
|
|
12780
12780
|
return;
|
|
12781
12781
|
}
|
|
12782
|
-
if (!f &&
|
|
12782
|
+
if (!f && I > 2 && q && m && i) {
|
|
12783
12783
|
y(m[i.length - 1]);
|
|
12784
12784
|
return;
|
|
12785
12785
|
}
|
|
12786
12786
|
const B = m == null ? void 0 : m.reduce((R, P) => typeof R != "number" || typeof P != "number" ? R : Math.abs(P - z) < Math.abs(R - z) ? P : R), _ = isVertical(l) ? window.innerHeight : window.innerWidth;
|
|
12787
|
-
if (
|
|
12787
|
+
if (I > VELOCITY_THRESHOLD && Math.abs(A) < _ * 0.4) {
|
|
12788
12788
|
const R = q ? 1 : -1;
|
|
12789
12789
|
if (R > 0 && C && i) {
|
|
12790
12790
|
y(m[i.length - 1]);
|
|
@@ -12805,13 +12805,13 @@ function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: t, snap
|
|
|
12805
12805
|
}
|
|
12806
12806
|
function L(A, V) {
|
|
12807
12807
|
if (!i || typeof g != "number" || !m || a === void 0) return null;
|
|
12808
|
-
const
|
|
12808
|
+
const I = g === a - 1;
|
|
12809
12809
|
if (g >= a && V)
|
|
12810
12810
|
return 0;
|
|
12811
|
-
if (
|
|
12812
|
-
if (!E && !
|
|
12813
|
-
const z =
|
|
12814
|
-
return
|
|
12811
|
+
if (I && !V) return 1;
|
|
12812
|
+
if (!E && !I) return null;
|
|
12813
|
+
const z = I ? g + 1 : g - 1, j = I ? m[z] - m[z - 1] : m[z + 1] - m[z], G = A / Math.abs(j);
|
|
12814
|
+
return I ? 1 - G : G;
|
|
12815
12815
|
}
|
|
12816
12816
|
return {
|
|
12817
12817
|
isLastSnapPoint: C,
|
|
@@ -12935,7 +12935,7 @@ function usePositionFixed({ isOpen: e, modal: t, nested: i, hasBeenOpened: n, pr
|
|
|
12935
12935
|
restorePositionSetting: u
|
|
12936
12936
|
};
|
|
12937
12937
|
}
|
|
12938
|
-
function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s, snapPoints: a, shouldScaleBackground: o = !1, setBackgroundColorOnScale: l = !0, closeThreshold: c = CLOSE_THRESHOLD, scrollLockTimeout: f = SCROLL_LOCK_TIMEOUT, dismissible: u = !0, handleOnly: p = !1, fadeFromIndex: d = a && a.length - 1, activeSnapPoint: b, setActiveSnapPoint: C, fixed: g, modal: E = !0, onClose: m, nested: x, noBodyStyles: y = !1, direction: S = "bottom", defaultOpen: T = !1, disablePreventScroll: L = !0, snapToSequentialPoint: A = !1, preventScrollRestoration: V = !1, repositionInputs:
|
|
12938
|
+
function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s, snapPoints: a, shouldScaleBackground: o = !1, setBackgroundColorOnScale: l = !0, closeThreshold: c = CLOSE_THRESHOLD, scrollLockTimeout: f = SCROLL_LOCK_TIMEOUT, dismissible: u = !0, handleOnly: p = !1, fadeFromIndex: d = a && a.length - 1, activeSnapPoint: b, setActiveSnapPoint: C, fixed: g, modal: E = !0, onClose: m, nested: x, noBodyStyles: y = !1, direction: S = "bottom", defaultOpen: T = !1, disablePreventScroll: L = !0, snapToSequentialPoint: A = !1, preventScrollRestoration: V = !1, repositionInputs: I = !0, onAnimationEnd: U, container: z, autoFocus: j = !1 }) {
|
|
12939
12939
|
var G, q;
|
|
12940
12940
|
const [B = !1, _] = useControllableState({
|
|
12941
12941
|
defaultProp: T,
|
|
@@ -12947,7 +12947,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
12947
12947
|
document.body.style.pointerEvents = "auto";
|
|
12948
12948
|
}), H || (document.body.style.pointerEvents = "auto");
|
|
12949
12949
|
}
|
|
12950
|
-
}), [R, P] = React__default.useState(!1), [M, F] = React__default.useState(!1), [
|
|
12950
|
+
}), [R, P] = React__default.useState(!1), [M, F] = React__default.useState(!1), [k, W] = React__default.useState(!1), K = React__default.useRef(null), X = React__default.useRef(null), ee = React__default.useRef(null), re = React__default.useRef(null), ce = React__default.useRef(null), fe = React__default.useRef(!1), me = React__default.useRef(null), de = React__default.useRef(0), se = React__default.useRef(!1), ue = React__default.useRef(!T), ie = React__default.useRef(0), Y = React__default.useRef(null), Te = React__default.useRef(((G = Y.current) == null ? void 0 : G.getBoundingClientRect().height) || 0), Ae = React__default.useRef(((q = Y.current) == null ? void 0 : q.getBoundingClientRect().width) || 0), be = React__default.useRef(0), Ce = React__default.useCallback((H) => {
|
|
12951
12951
|
a && H === we.length - 1 && (X.current = /* @__PURE__ */ new Date());
|
|
12952
12952
|
}, []), { activeSnapPoint: Pe, activeSnapPointIndex: ve, setActiveSnapPoint: ye, onRelease: xe, snapPointsOffset: we, onDrag: Se, shouldFade: Me, getPercentageDragged: Ee } = useSnapPoints({
|
|
12953
12953
|
snapPoints: a,
|
|
@@ -12962,7 +12962,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
12962
12962
|
snapToSequentialPoint: A
|
|
12963
12963
|
});
|
|
12964
12964
|
usePreventScroll({
|
|
12965
|
-
isDisabled: !B || M || !E ||
|
|
12965
|
+
isDisabled: !B || M || !E || k || !R || !I || !L
|
|
12966
12966
|
});
|
|
12967
12967
|
const { restorePositionSetting: Le } = usePositionFixed({
|
|
12968
12968
|
isOpen: B,
|
|
@@ -12981,7 +12981,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
12981
12981
|
once: !0
|
|
12982
12982
|
}), H.target.setPointerCapture(H.pointerId), de.current = isVertical(S) ? H.pageY : H.pageX);
|
|
12983
12983
|
}
|
|
12984
|
-
function
|
|
12984
|
+
function ke(H, O) {
|
|
12985
12985
|
var N;
|
|
12986
12986
|
let J = H;
|
|
12987
12987
|
const Q = (N = window.getSelection()) == null ? void 0 : N.toString(), te = Y.current ? getTranslate(Y.current, S) : null, ne = /* @__PURE__ */ new Date();
|
|
@@ -13015,7 +13015,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13015
13015
|
const te = Math.abs(N), ne = document.querySelector("[data-vaul-drawer-wrapper]"), le = S === "bottom" || S === "top" ? Te.current : Ae.current;
|
|
13016
13016
|
let ae = te / le;
|
|
13017
13017
|
const oe = Ee(te, J);
|
|
13018
|
-
if (oe !== null && (ae = oe), Q && ae >= 1 || !fe.current && !
|
|
13018
|
+
if (oe !== null && (ae = oe), Q && ae >= 1 || !fe.current && !ke(H.target, J)) return;
|
|
13019
13019
|
if (Y.current.classList.add(DRAG_CLASS), fe.current = !0, set(Y.current, {
|
|
13020
13020
|
transition: "none"
|
|
13021
13021
|
}), set(K.current, {
|
|
@@ -13056,7 +13056,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13056
13056
|
}, []), React__default.useEffect(() => {
|
|
13057
13057
|
var H;
|
|
13058
13058
|
function O() {
|
|
13059
|
-
if (!Y.current || !
|
|
13059
|
+
if (!Y.current || !I) return;
|
|
13060
13060
|
const N = document.activeElement;
|
|
13061
13061
|
if (isInput(N) || se.current) {
|
|
13062
13062
|
var J;
|
|
@@ -13091,7 +13091,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13091
13091
|
a && ye(a[0]);
|
|
13092
13092
|
}, TRANSITIONS.DURATION * 1e3);
|
|
13093
13093
|
}
|
|
13094
|
-
function
|
|
13094
|
+
function Ie() {
|
|
13095
13095
|
if (!Y.current) return;
|
|
13096
13096
|
const H = document.querySelector("[data-vaul-drawer-wrapper]"), O = getTranslate(Y.current, S);
|
|
13097
13097
|
set(Y.current, {
|
|
@@ -13122,7 +13122,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13122
13122
|
if (!M || !Y.current) return;
|
|
13123
13123
|
Y.current.classList.remove(DRAG_CLASS), fe.current = !1, F(!1), re.current = /* @__PURE__ */ new Date();
|
|
13124
13124
|
const O = getTranslate(Y.current, S);
|
|
13125
|
-
if (!H || !
|
|
13125
|
+
if (!H || !ke(H.target, !1) || !O || Number.isNaN(O) || ee.current === null) return;
|
|
13126
13126
|
const N = re.current.getTime() - ee.current.getTime(), J = de.current - (isVertical(S) ? H.pageY : H.pageX), Q = Math.abs(J) / N;
|
|
13127
13127
|
if (Q > 0.05 && (W(!0), setTimeout(() => {
|
|
13128
13128
|
W(!1);
|
|
@@ -13136,7 +13136,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13136
13136
|
return;
|
|
13137
13137
|
}
|
|
13138
13138
|
if (S === "bottom" || S === "right" ? J > 0 : J < 0) {
|
|
13139
|
-
|
|
13139
|
+
Ie(), s == null || s(H, !0);
|
|
13140
13140
|
return;
|
|
13141
13141
|
}
|
|
13142
13142
|
if (Q > VELOCITY_THRESHOLD) {
|
|
@@ -13151,7 +13151,7 @@ function Root({ open: e, onOpenChange: t, children: i, onDrag: n, onRelease: s,
|
|
|
13151
13151
|
Ve(), s == null || s(H, !1);
|
|
13152
13152
|
return;
|
|
13153
13153
|
}
|
|
13154
|
-
s == null || s(H, !0),
|
|
13154
|
+
s == null || s(H, !0), Ie();
|
|
13155
13155
|
}
|
|
13156
13156
|
React__default.useEffect(() => (B && (set(document.documentElement, {
|
|
13157
13157
|
scrollBehavior: "auto"
|
|
@@ -13253,10 +13253,10 @@ const Overlay = /* @__PURE__ */ React__default.forwardRef(function({ ...e }, t)
|
|
|
13253
13253
|
});
|
|
13254
13254
|
Overlay.displayName = "Drawer.Overlay";
|
|
13255
13255
|
const Content = /* @__PURE__ */ React__default.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: i, ...n }, s) {
|
|
13256
|
-
const { drawerRef: a, onPress: o, onRelease: l, onDrag: c, keyboardIsOpen: f, snapPointsOffset: u, activeSnapPointIndex: p, modal: d, isOpen: b, direction: C, snapPoints: g, container: E, handleOnly: m, shouldAnimate: x, autoFocus: y } = useDrawerContext(), [S, T] = React__default.useState(!1), L = useComposedRefs(s, a), A = React__default.useRef(null), V = React__default.useRef(null),
|
|
13256
|
+
const { drawerRef: a, onPress: o, onRelease: l, onDrag: c, keyboardIsOpen: f, snapPointsOffset: u, activeSnapPointIndex: p, modal: d, isOpen: b, direction: C, snapPoints: g, container: E, handleOnly: m, shouldAnimate: x, autoFocus: y } = useDrawerContext(), [S, T] = React__default.useState(!1), L = useComposedRefs(s, a), A = React__default.useRef(null), V = React__default.useRef(null), I = React__default.useRef(!1), U = g && g.length > 0;
|
|
13257
13257
|
useScaleBackground();
|
|
13258
13258
|
const z = (G, q, B = 0) => {
|
|
13259
|
-
if (
|
|
13259
|
+
if (I.current) return !0;
|
|
13260
13260
|
const _ = Math.abs(G.y), R = Math.abs(G.x), P = R > _, M = [
|
|
13261
13261
|
"bottom",
|
|
13262
13262
|
"right"
|
|
@@ -13266,7 +13266,7 @@ const Content = /* @__PURE__ */ React__default.forwardRef(function({ onPointerDo
|
|
|
13266
13266
|
return P;
|
|
13267
13267
|
} else if (!(G.y * M < 0) && _ >= 0 && _ <= B)
|
|
13268
13268
|
return !P;
|
|
13269
|
-
return
|
|
13269
|
+
return I.current = !0, !0;
|
|
13270
13270
|
};
|
|
13271
13271
|
React__default.useEffect(() => {
|
|
13272
13272
|
U && window.requestAnimationFrame(() => {
|
|
@@ -13274,7 +13274,7 @@ const Content = /* @__PURE__ */ React__default.forwardRef(function({ onPointerDo
|
|
|
13274
13274
|
});
|
|
13275
13275
|
}, []);
|
|
13276
13276
|
function j(G) {
|
|
13277
|
-
A.current = null,
|
|
13277
|
+
A.current = null, I.current = !1, l(G);
|
|
13278
13278
|
}
|
|
13279
13279
|
return /* @__PURE__ */ React__default.createElement(Content$1, {
|
|
13280
13280
|
"data-vaul-drawer-direction": C,
|
|
@@ -13320,7 +13320,7 @@ const Content = /* @__PURE__ */ React__default.forwardRef(function({ onPointerDo
|
|
|
13320
13320
|
}, C, _) ? c(G) : (Math.abs(B) > _ || Math.abs(q) > _) && (A.current = null);
|
|
13321
13321
|
},
|
|
13322
13322
|
onPointerUp: (G) => {
|
|
13323
|
-
n.onPointerUp == null || n.onPointerUp.call(n, G), A.current = null,
|
|
13323
|
+
n.onPointerUp == null || n.onPointerUp.call(n, G), A.current = null, I.current = !1, l(G);
|
|
13324
13324
|
},
|
|
13325
13325
|
onPointerOut: (G) => {
|
|
13326
13326
|
n.onPointerOut == null || n.onPointerOut.call(n, G), j(V.current);
|
|
@@ -14849,6 +14849,38 @@ const Drawer = {
|
|
|
14849
14849
|
)
|
|
14850
14850
|
]
|
|
14851
14851
|
}
|
|
14852
|
+
), SearchIconThin = (e) => /* @__PURE__ */ jsxs(
|
|
14853
|
+
"svg",
|
|
14854
|
+
{
|
|
14855
|
+
width: "16",
|
|
14856
|
+
height: "16",
|
|
14857
|
+
viewBox: "0 0 16 16",
|
|
14858
|
+
fill: "none",
|
|
14859
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14860
|
+
...e,
|
|
14861
|
+
children: [
|
|
14862
|
+
/* @__PURE__ */ jsx(
|
|
14863
|
+
"mask",
|
|
14864
|
+
{
|
|
14865
|
+
id: "mask0_25526_70195",
|
|
14866
|
+
style: { maskType: "alpha" },
|
|
14867
|
+
maskUnits: "userSpaceOnUse",
|
|
14868
|
+
x: "0",
|
|
14869
|
+
y: "0",
|
|
14870
|
+
width: "16",
|
|
14871
|
+
height: "16",
|
|
14872
|
+
children: /* @__PURE__ */ jsx("rect", { width: "16", height: "16", fill: "#D9D9D9" })
|
|
14873
|
+
}
|
|
14874
|
+
),
|
|
14875
|
+
/* @__PURE__ */ jsx("g", { mask: "url(#mask0_25526_70195)", children: /* @__PURE__ */ jsx(
|
|
14876
|
+
"path",
|
|
14877
|
+
{
|
|
14878
|
+
d: "M13.0245 13.7178L8.83729 9.53051C8.50396 9.80574 8.12063 10.0211 7.68729 10.1767C7.25396 10.3322 6.80568 10.41 6.34246 10.41C5.20301 10.41 4.23868 10.0155 3.44946 9.22651C2.66024 8.43751 2.26562 7.4734 2.26562 6.33418C2.26562 5.19507 2.66012 4.23063 3.44912 3.44085C4.23812 2.65118 5.20224 2.25635 6.34146 2.25635C7.48057 2.25635 8.44501 2.65096 9.23479 3.44018C10.0245 4.2294 10.4193 5.19374 10.4193 6.33318C10.4193 6.80929 10.3394 7.26402 10.1796 7.69735C10.0197 8.13068 9.80646 8.50757 9.53979 8.82802L13.727 13.0152L13.0245 13.7178ZM6.34246 9.41018C7.20146 9.41018 7.92901 9.11207 8.52513 8.51585C9.12135 7.91974 9.41946 7.19218 9.41946 6.33318C9.41946 5.47418 9.12135 4.74662 8.52513 4.15051C7.92901 3.55429 7.20146 3.25618 6.34246 3.25618C5.48346 3.25618 4.7559 3.55429 4.15979 4.15051C3.56357 4.74662 3.26546 5.47418 3.26546 6.33318C3.26546 7.19218 3.56357 7.91974 4.15979 8.51585C4.7559 9.11207 5.48346 9.41018 6.34246 9.41018Z",
|
|
14879
|
+
fill: "currentColor"
|
|
14880
|
+
}
|
|
14881
|
+
) })
|
|
14882
|
+
]
|
|
14883
|
+
}
|
|
14852
14884
|
), ArbitrumLogo = (e) => /* @__PURE__ */ jsxs(
|
|
14853
14885
|
"svg",
|
|
14854
14886
|
{
|
|
@@ -15064,7 +15096,7 @@ const Drawer = {
|
|
|
15064
15096
|
"path",
|
|
15065
15097
|
{
|
|
15066
15098
|
d: "M16 0C20.3629 7.69251e-06 23.9732 3.2176 24.5898 7.40918C28.782 8.02537 32 11.6367 32 16C32 20.3632 28.7819 23.9736 24.5898 24.5898C23.9736 28.7819 20.3632 32 16 32C11.6367 32 8.02536 28.782 7.40918 24.5898C3.2176 23.9732 1.64107e-06 20.3629 0 16C0 11.6371 3.21753 8.02577 7.40918 7.40918C8.02577 3.21753 11.6371 -1.9071e-07 16 0ZM13.5596 7.79395V9.6084H11.1152V11.7129H12.2012V20.2041H11.1152V22.3086H13.5596V24.25H15.2227V22.3086H16.1602V24.25H17.8389V22.2891C18.0718 22.2782 18.3057 22.2608 18.4941 22.2354C19.5069 22.066 20.3152 21.6551 20.918 21.002C21.5326 20.3368 21.8398 19.5265 21.8398 18.5713C21.8398 17.8214 21.6049 17.1557 21.1348 16.5752C20.6647 15.9948 20.0799 15.6141 19.3809 15.4326C19.8871 15.2391 20.3145 14.8997 20.6641 14.416C21.0136 13.9202 21.1884 13.3822 21.1885 12.8018C21.1885 12.0035 20.9416 11.3314 20.4473 10.7871C19.965 10.2309 19.3138 9.86853 18.4941 9.69922C18.31 9.66671 18.0747 9.64539 17.8389 9.63184V7.79395H16.1602V9.6084H15.2227V7.79395H13.5596ZM17.3008 16.6113C17.9033 16.6114 18.3975 16.7807 18.7832 17.1191C19.1811 17.4457 19.3809 17.8695 19.3809 18.3896C19.3808 18.9218 19.181 19.3577 18.7832 19.6963C18.3975 20.0347 17.9033 20.2041 17.3008 20.2041H14.6602V16.6113H17.3008ZM17.1201 11.7129C17.6141 11.7129 18.0177 11.8519 18.3311 12.1299C18.6565 12.3959 18.8193 12.7408 18.8193 13.1641C18.8193 13.5995 18.6566 13.9562 18.3311 14.2344C18.0177 14.5004 17.6142 14.6337 17.1201 14.6338H14.6602V11.7129H17.1201Z",
|
|
15067
|
-
fill: "#
|
|
15099
|
+
fill: "#473C75"
|
|
15068
15100
|
}
|
|
15069
15101
|
),
|
|
15070
15102
|
/* @__PURE__ */ jsx(
|
|
@@ -15113,7 +15145,7 @@ const Drawer = {
|
|
|
15113
15145
|
"path",
|
|
15114
15146
|
{
|
|
15115
15147
|
d: "M121.655 22.2947C118.241 22.2947 115.982 19.8391 115.982 16.1312C115.982 12.4478 118.217 9.91857 121.507 9.91857C124.577 9.91857 126.689 12.1286 126.689 15.3454V16.1312H117.112C117.21 19.348 118.88 21.2633 121.655 21.2633C123.742 21.2633 125.068 20.3548 125.534 18.6113H126.689C126.001 21.0423 124.307 22.2947 121.655 22.2947ZM121.507 10.9499C119.101 10.9499 117.406 12.6197 117.136 15.1981H125.534C125.534 12.6443 123.938 10.9499 121.507 10.9499ZM128.923 22H127.547L131.82 16.0575L127.572 10.2132H128.947L132.606 15.2717L136.265 10.2132H137.615L133.343 16.1066L137.615 22H136.24L132.557 16.917L128.923 22ZM139.719 26.9848V10.2132H140.628L140.8 12.8653C141.684 10.8517 143.378 9.91857 145.416 9.91857C148.879 9.91857 150.843 12.6197 150.843 16.1066C150.843 19.5935 148.879 22.2947 145.416 22.2947C143.329 22.2947 141.708 21.3616 140.849 19.4462V26.9848H139.719ZM140.874 16.1066C140.874 19.0779 142.47 21.2633 145.294 21.2633C148.093 21.2633 149.689 19.0779 149.689 16.1066C149.689 13.1108 148.093 10.9499 145.294 10.9499C142.47 10.9499 140.874 13.1108 140.874 16.1066ZM154.928 22H153.798V4.27074H154.928V22ZM157.876 16.1066C157.876 12.546 160.356 9.91857 163.72 9.91857C167.084 9.91857 169.564 12.546 169.564 16.1066C169.564 19.6672 167.084 22.2947 163.72 22.2947C160.356 22.2947 157.876 19.6672 157.876 16.1066ZM159.03 16.1066C159.03 19.127 160.97 21.2633 163.72 21.2633C166.47 21.2633 168.41 19.127 168.41 16.1066C168.41 13.0863 166.47 10.9499 163.72 10.9499C160.97 10.9499 159.03 13.0863 159.03 16.1066ZM178.028 10.0413V11.0236H177.144C174.958 11.0236 173.534 12.6197 173.534 14.8297V22H172.404V10.2132H173.46L173.559 12.104C174.025 10.778 175.327 9.91857 176.996 9.91857C177.365 9.91857 177.635 9.94312 178.028 10.0413ZM184.699 22.2947C181.285 22.2947 179.026 19.8391 179.026 16.1312C179.026 12.4478 181.261 9.91857 184.551 9.91857C187.621 9.91857 189.733 12.1286 189.733 15.3454V16.1312H180.156C180.254 19.348 181.924 21.2633 184.699 21.2633C186.786 21.2633 188.112 20.3548 188.578 18.6113H189.733C189.045 21.0423 187.351 22.2947 184.699 22.2947ZM184.551 10.9499C182.145 10.9499 180.45 12.6197 180.18 15.1981H188.578C188.578 12.6443 186.982 10.9499 184.551 10.9499ZM198.195 10.0413V11.0236H197.311C195.126 11.0236 193.701 12.6197 193.701 14.8297V22H192.572V10.2132H193.628L193.726 12.104C194.193 10.778 195.494 9.91857 197.164 9.91857C197.532 9.91857 197.802 9.94312 198.195 10.0413Z",
|
|
15116
|
-
fill: "#
|
|
15148
|
+
fill: "#473C75"
|
|
15117
15149
|
}
|
|
15118
15150
|
)
|
|
15119
15151
|
]
|
|
@@ -16473,25 +16505,27 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
|
|
|
16473
16505
|
), TokenNetworkLogos = ({
|
|
16474
16506
|
tokenLogo: e,
|
|
16475
16507
|
chainLogo: t,
|
|
16476
|
-
|
|
16508
|
+
className: i,
|
|
16509
|
+
iconStyle: n,
|
|
16510
|
+
...s
|
|
16477
16511
|
}) => /* @__PURE__ */ jsxs(
|
|
16478
16512
|
"div",
|
|
16479
16513
|
{
|
|
16480
|
-
className: `gf-relative gf-flex gf-h-5 gf-items-center gf-justify-between ${t && t !== e ? "gf-w-[36px]" : "gf-w-5"}`,
|
|
16481
|
-
...
|
|
16514
|
+
className: `gf-relative gf-flex gf-h-5 gf-items-center gf-justify-between ${t && t !== e ? "gf-w-[36px]" : "gf-w-5"} ${i ?? ""}`,
|
|
16515
|
+
...s,
|
|
16482
16516
|
children: [
|
|
16483
16517
|
/* @__PURE__ */ jsx(
|
|
16484
16518
|
"img",
|
|
16485
16519
|
{
|
|
16486
16520
|
src: e,
|
|
16487
|
-
className:
|
|
16521
|
+
className: `gf-absolute gf-left-0 gf-z-30 gf-h-5 gf-w-5 gf-rounded-full ${n ?? ""}`
|
|
16488
16522
|
}
|
|
16489
16523
|
),
|
|
16490
16524
|
t && t !== e && /* @__PURE__ */ jsx(
|
|
16491
16525
|
"img",
|
|
16492
16526
|
{
|
|
16493
16527
|
src: t,
|
|
16494
|
-
className:
|
|
16528
|
+
className: `gf-absolute gf-right-0 gf-z-20 gf-h-5 gf-w-5 gf-rounded-full ${n ?? ""}`
|
|
16495
16529
|
}
|
|
16496
16530
|
)
|
|
16497
16531
|
]
|
|
@@ -16761,8 +16795,8 @@ var build = { exports: {} };
|
|
|
16761
16795
|
function S(T) {
|
|
16762
16796
|
if (typeof T == "number") return T;
|
|
16763
16797
|
if (function(V) {
|
|
16764
|
-
return typeof V == "symbol" || /* @__PURE__ */ function(
|
|
16765
|
-
return !!
|
|
16798
|
+
return typeof V == "symbol" || /* @__PURE__ */ function(I) {
|
|
16799
|
+
return !!I && typeof I == "object";
|
|
16766
16800
|
}(V) && g.call(V) == "[object Symbol]";
|
|
16767
16801
|
}(T)) return NaN;
|
|
16768
16802
|
if (y(T)) {
|
|
@@ -16775,11 +16809,11 @@ var build = { exports: {} };
|
|
|
16775
16809
|
return A || u.test(T) ? p(T.slice(2), A ? 2 : 8) : c.test(T) ? NaN : +T;
|
|
16776
16810
|
}
|
|
16777
16811
|
s.exports = function(T, L, A) {
|
|
16778
|
-
var V,
|
|
16812
|
+
var V, I, U, z, j, G, q = 0, B = !1, _ = !1, R = !0;
|
|
16779
16813
|
if (typeof T != "function") throw new TypeError("Expected a function");
|
|
16780
16814
|
function P(K) {
|
|
16781
|
-
var X = V, ee =
|
|
16782
|
-
return V =
|
|
16815
|
+
var X = V, ee = I;
|
|
16816
|
+
return V = I = void 0, q = K, z = T.apply(ee, X);
|
|
16783
16817
|
}
|
|
16784
16818
|
function M(K) {
|
|
16785
16819
|
var X = K - G;
|
|
@@ -16787,18 +16821,18 @@ var build = { exports: {} };
|
|
|
16787
16821
|
}
|
|
16788
16822
|
function F() {
|
|
16789
16823
|
var K = x();
|
|
16790
|
-
if (M(K)) return
|
|
16824
|
+
if (M(K)) return k(K);
|
|
16791
16825
|
j = setTimeout(F, function(X) {
|
|
16792
16826
|
var ee = L - (X - G);
|
|
16793
16827
|
return _ ? m(ee, U - (X - q)) : ee;
|
|
16794
16828
|
}(K));
|
|
16795
16829
|
}
|
|
16796
|
-
function
|
|
16797
|
-
return j = void 0, R && V ? P(K) : (V =
|
|
16830
|
+
function k(K) {
|
|
16831
|
+
return j = void 0, R && V ? P(K) : (V = I = void 0, z);
|
|
16798
16832
|
}
|
|
16799
16833
|
function W() {
|
|
16800
16834
|
var K = x(), X = M(K);
|
|
16801
|
-
if (V = arguments,
|
|
16835
|
+
if (V = arguments, I = this, G = K, X) {
|
|
16802
16836
|
if (j === void 0) return function(ee) {
|
|
16803
16837
|
return q = ee, j = setTimeout(F, L), B ? P(ee) : z;
|
|
16804
16838
|
}(G);
|
|
@@ -16807,9 +16841,9 @@ var build = { exports: {} };
|
|
|
16807
16841
|
return j === void 0 && (j = setTimeout(F, L)), z;
|
|
16808
16842
|
}
|
|
16809
16843
|
return L = S(L) || 0, y(A) && (B = !!A.leading, U = (_ = "maxWait" in A) ? E(S(A.maxWait) || 0, L) : U, R = "trailing" in A ? !!A.trailing : R), W.cancel = function() {
|
|
16810
|
-
j !== void 0 && clearTimeout(j), q = 0, V = G =
|
|
16844
|
+
j !== void 0 && clearTimeout(j), q = 0, V = G = I = j = void 0;
|
|
16811
16845
|
}, W.flush = function() {
|
|
16812
|
-
return j === void 0 ? z :
|
|
16846
|
+
return j === void 0 ? z : k(x());
|
|
16813
16847
|
}, W;
|
|
16814
16848
|
};
|
|
16815
16849
|
}, 858: (s, a, o) => {
|
|
@@ -16817,8 +16851,8 @@ var build = { exports: {} };
|
|
|
16817
16851
|
return m.Date.now();
|
|
16818
16852
|
};
|
|
16819
16853
|
function L(V) {
|
|
16820
|
-
var
|
|
16821
|
-
return !!V && (
|
|
16854
|
+
var I = typeof V;
|
|
16855
|
+
return !!V && (I == "object" || I == "function");
|
|
16822
16856
|
}
|
|
16823
16857
|
function A(V) {
|
|
16824
16858
|
if (typeof V == "number") return V;
|
|
@@ -16828,33 +16862,33 @@ var build = { exports: {} };
|
|
|
16828
16862
|
}(z) && x.call(z) == f;
|
|
16829
16863
|
}(V)) return c;
|
|
16830
16864
|
if (L(V)) {
|
|
16831
|
-
var
|
|
16832
|
-
V = L(
|
|
16865
|
+
var I = typeof V.valueOf == "function" ? V.valueOf() : V;
|
|
16866
|
+
V = L(I) ? I + "" : I;
|
|
16833
16867
|
}
|
|
16834
16868
|
if (typeof V != "string") return V === 0 ? V : +V;
|
|
16835
16869
|
V = V.replace(u, "");
|
|
16836
16870
|
var U = d.test(V);
|
|
16837
16871
|
return U || b.test(V) ? C(V.slice(2), U ? 2 : 8) : p.test(V) ? c : +V;
|
|
16838
16872
|
}
|
|
16839
|
-
s.exports = function(V,
|
|
16873
|
+
s.exports = function(V, I, U) {
|
|
16840
16874
|
var z = !0, j = !0;
|
|
16841
16875
|
if (typeof V != "function") throw new TypeError(l);
|
|
16842
16876
|
return L(U) && (z = "leading" in U ? !!U.leading : z, j = "trailing" in U ? !!U.trailing : j), function(G, q, B) {
|
|
16843
|
-
var _, R, P, M, F,
|
|
16877
|
+
var _, R, P, M, F, k, W = 0, K = !1, X = !1, ee = !0;
|
|
16844
16878
|
if (typeof G != "function") throw new TypeError(l);
|
|
16845
16879
|
function re(se) {
|
|
16846
16880
|
var ue = _, ie = R;
|
|
16847
16881
|
return _ = R = void 0, W = se, M = G.apply(ie, ue);
|
|
16848
16882
|
}
|
|
16849
16883
|
function ce(se) {
|
|
16850
|
-
var ue = se -
|
|
16851
|
-
return
|
|
16884
|
+
var ue = se - k;
|
|
16885
|
+
return k === void 0 || ue >= q || ue < 0 || X && se - W >= P;
|
|
16852
16886
|
}
|
|
16853
16887
|
function fe() {
|
|
16854
16888
|
var se = T();
|
|
16855
16889
|
if (ce(se)) return me(se);
|
|
16856
16890
|
F = setTimeout(fe, function(ue) {
|
|
16857
|
-
var ie = q - (ue -
|
|
16891
|
+
var ie = q - (ue - k);
|
|
16858
16892
|
return X ? S(ie, P - (ue - W)) : ie;
|
|
16859
16893
|
}(se));
|
|
16860
16894
|
}
|
|
@@ -16863,20 +16897,20 @@ var build = { exports: {} };
|
|
|
16863
16897
|
}
|
|
16864
16898
|
function de() {
|
|
16865
16899
|
var se = T(), ue = ce(se);
|
|
16866
|
-
if (_ = arguments, R = this,
|
|
16900
|
+
if (_ = arguments, R = this, k = se, ue) {
|
|
16867
16901
|
if (F === void 0) return function(ie) {
|
|
16868
16902
|
return W = ie, F = setTimeout(fe, q), K ? re(ie) : M;
|
|
16869
|
-
}(
|
|
16870
|
-
if (X) return F = setTimeout(fe, q), re(
|
|
16903
|
+
}(k);
|
|
16904
|
+
if (X) return F = setTimeout(fe, q), re(k);
|
|
16871
16905
|
}
|
|
16872
16906
|
return F === void 0 && (F = setTimeout(fe, q)), M;
|
|
16873
16907
|
}
|
|
16874
16908
|
return q = A(q) || 0, L(B) && (K = !!B.leading, P = (X = "maxWait" in B) ? y(A(B.maxWait) || 0, q) : P, ee = "trailing" in B ? !!B.trailing : ee), de.cancel = function() {
|
|
16875
|
-
F !== void 0 && clearTimeout(F), W = 0, _ =
|
|
16909
|
+
F !== void 0 && clearTimeout(F), W = 0, _ = k = R = F = void 0;
|
|
16876
16910
|
}, de.flush = function() {
|
|
16877
16911
|
return F === void 0 ? M : me(T());
|
|
16878
16912
|
}, de;
|
|
16879
|
-
}(V,
|
|
16913
|
+
}(V, I, { leading: z, maxWait: I, trailing: j });
|
|
16880
16914
|
};
|
|
16881
16915
|
}, 694: (s, a, o) => {
|
|
16882
16916
|
var l = o(925);
|
|
@@ -17060,14 +17094,14 @@ var build = { exports: {} };
|
|
|
17060
17094
|
}(a().Component);
|
|
17061
17095
|
y.propTypes = { onVisible: o.PropTypes.func.isRequired, className: o.PropTypes.string, height: o.PropTypes.oneOfType([o.PropTypes.number, o.PropTypes.string]), placeholder: o.PropTypes.element, threshold: o.PropTypes.number, useIntersectionObserver: o.PropTypes.bool, scrollPosition: o.PropTypes.shape({ x: o.PropTypes.number.isRequired, y: o.PropTypes.number.isRequired }), width: o.PropTypes.oneOfType([o.PropTypes.number, o.PropTypes.string]) }, y.defaultProps = { className: "", placeholder: null, threshold: 100, useIntersectionObserver: !0 };
|
|
17062
17096
|
const S = y;
|
|
17063
|
-
var T = i(181), L = i.n(T), A = i(858), V = i.n(A),
|
|
17097
|
+
var T = i(181), L = i.n(T), A = i(858), V = i.n(A), I = function($) {
|
|
17064
17098
|
var D = getComputedStyle($, null);
|
|
17065
17099
|
return D.getPropertyValue("overflow") + D.getPropertyValue("overflow-y") + D.getPropertyValue("overflow-x");
|
|
17066
17100
|
};
|
|
17067
17101
|
const U = function($) {
|
|
17068
17102
|
if (!($ instanceof HTMLElement)) return window;
|
|
17069
17103
|
for (var D = $; D && D instanceof HTMLElement; ) {
|
|
17070
|
-
if (/(scroll|auto)/.test(
|
|
17104
|
+
if (/(scroll|auto)/.test(I(D))) return D;
|
|
17071
17105
|
D = D.parentNode;
|
|
17072
17106
|
}
|
|
17073
17107
|
return window;
|
|
@@ -17139,7 +17173,7 @@ var build = { exports: {} };
|
|
|
17139
17173
|
return Z.__proto__ = H, Z;
|
|
17140
17174
|
}, F($, D);
|
|
17141
17175
|
}
|
|
17142
|
-
var
|
|
17176
|
+
var k = function() {
|
|
17143
17177
|
return typeof window > "u" ? 0 : window.scrollX || window.pageXOffset;
|
|
17144
17178
|
}, W = function() {
|
|
17145
17179
|
return typeof window > "u" ? 0 : window.scrollY || window.pageYOffset;
|
|
@@ -17152,7 +17186,7 @@ var build = { exports: {} };
|
|
|
17152
17186
|
if (!(ne instanceof le)) throw new TypeError("Cannot call a class as a function");
|
|
17153
17187
|
}(this, H), (Q = _(this, H, [J])).useIntersectionObserver = J.useIntersectionObserver && l(), Q.useIntersectionObserver) return R(Q);
|
|
17154
17188
|
var te = Q.onChangeScroll.bind(Q);
|
|
17155
|
-
return J.delayMethod === "debounce" ? Q.delayedScroll = L()(te, J.delayTime) : J.delayMethod === "throttle" && (Q.delayedScroll = V()(te, J.delayTime)), Q.state = { scrollPosition: { x:
|
|
17189
|
+
return J.delayMethod === "debounce" ? Q.delayedScroll = L()(te, J.delayTime) : J.delayMethod === "throttle" && (Q.delayedScroll = V()(te, J.delayTime)), Q.state = { scrollPosition: { x: k(), y: W() } }, Q.baseComponentRef = a().createRef(), Q;
|
|
17156
17190
|
}
|
|
17157
17191
|
return function(J, Q) {
|
|
17158
17192
|
if (typeof Q != "function" && Q !== null) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -17168,7 +17202,7 @@ var build = { exports: {} };
|
|
|
17168
17202
|
} }, { key: "removeListeners", value: function() {
|
|
17169
17203
|
typeof window > "u" || this.useIntersectionObserver || (this.scrollElement.removeEventListener("scroll", this.delayedScroll), window.removeEventListener("resize", this.delayedScroll), this.scrollElement !== window && window.removeEventListener("scroll", this.delayedScroll));
|
|
17170
17204
|
} }, { key: "onChangeScroll", value: function() {
|
|
17171
|
-
this.useIntersectionObserver || this.setState({ scrollPosition: { x:
|
|
17205
|
+
this.useIntersectionObserver || this.setState({ scrollPosition: { x: k(), y: W() } });
|
|
17172
17206
|
} }, { key: "render", value: function() {
|
|
17173
17207
|
var J = this.props, Q = (J.delayMethod, J.delayTime, function(ne, le) {
|
|
17174
17208
|
if (ne == null) return {};
|
|
@@ -17409,7 +17443,7 @@ var build = { exports: {} };
|
|
|
17409
17443
|
}($);
|
|
17410
17444
|
return xe(D) == "symbol" ? D : D + "";
|
|
17411
17445
|
}
|
|
17412
|
-
function
|
|
17446
|
+
function ke($, D, Z) {
|
|
17413
17447
|
return D = Ve(D), function(H, O) {
|
|
17414
17448
|
if (O && (xe(O) == "object" || typeof O == "function")) return O;
|
|
17415
17449
|
if (O !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -17434,21 +17468,21 @@ var build = { exports: {} };
|
|
|
17434
17468
|
return D.__proto__ || Object.getPrototypeOf(D);
|
|
17435
17469
|
}, Ve($);
|
|
17436
17470
|
}
|
|
17437
|
-
function
|
|
17438
|
-
return
|
|
17471
|
+
function Ie($, D) {
|
|
17472
|
+
return Ie = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(Z, H) {
|
|
17439
17473
|
return Z.__proto__ = H, Z;
|
|
17440
|
-
},
|
|
17474
|
+
}, Ie($, D);
|
|
17441
17475
|
}
|
|
17442
17476
|
var De = function($) {
|
|
17443
17477
|
function D(O) {
|
|
17444
17478
|
var N;
|
|
17445
17479
|
return function(J, Q) {
|
|
17446
17480
|
if (!(J instanceof Q)) throw new TypeError("Cannot call a class as a function");
|
|
17447
|
-
}(this, D), (N =
|
|
17481
|
+
}(this, D), (N = ke(this, D, [O])).state = { loaded: !1 }, N;
|
|
17448
17482
|
}
|
|
17449
17483
|
return function(O, N) {
|
|
17450
17484
|
if (typeof N != "function" && N !== null) throw new TypeError("Super expression must either be null or a function");
|
|
17451
|
-
O.prototype = Object.create(N && N.prototype, { constructor: { value: O, writable: !0, configurable: !0 } }), Object.defineProperty(O, "prototype", { writable: !1 }), N &&
|
|
17485
|
+
O.prototype = Object.create(N && N.prototype, { constructor: { value: O, writable: !0, configurable: !0 } }), Object.defineProperty(O, "prototype", { writable: !1 }), N && Ie(O, N);
|
|
17452
17486
|
}(D, $), Z = D, H = [{ key: "onImageLoad", value: function() {
|
|
17453
17487
|
var O = this;
|
|
17454
17488
|
return this.state.loaded ? null : function(N) {
|
|
@@ -18434,8 +18468,8 @@ function inertia({ keyframes: e, velocity: t = 0, power: i = 0.8, timeConstant:
|
|
|
18434
18468
|
const E = p + g, m = o === void 0 ? E : o(E);
|
|
18435
18469
|
m !== E && (g = m - p);
|
|
18436
18470
|
const x = (V) => -g * Math.exp(-V / n), y = (V) => m + x(V), S = (V) => {
|
|
18437
|
-
const
|
|
18438
|
-
d.done = Math.abs(
|
|
18471
|
+
const I = x(V), U = y(V);
|
|
18472
|
+
d.done = Math.abs(I) <= f, d.value = d.done ? m : U;
|
|
18439
18473
|
};
|
|
18440
18474
|
let T, L;
|
|
18441
18475
|
const A = (V) => {
|
|
@@ -18452,8 +18486,8 @@ function inertia({ keyframes: e, velocity: t = 0, power: i = 0.8, timeConstant:
|
|
|
18452
18486
|
return A(0), {
|
|
18453
18487
|
calculatedDuration: null,
|
|
18454
18488
|
next: (V) => {
|
|
18455
|
-
let
|
|
18456
|
-
return !L && T === void 0 && (
|
|
18489
|
+
let I = !1;
|
|
18490
|
+
return !L && T === void 0 && (I = !0, S(V), A(V)), T !== void 0 && V >= T ? L.next(V - T) : (!I && S(V), d);
|
|
18457
18491
|
}
|
|
18458
18492
|
};
|
|
18459
18493
|
}
|
|
@@ -18720,8 +18754,8 @@ class MainThreadAnimation extends BaseAnimation {
|
|
|
18720
18754
|
let y = this.currentTime, S = a;
|
|
18721
18755
|
if (b) {
|
|
18722
18756
|
const V = Math.min(this.currentTime, u) / p;
|
|
18723
|
-
let
|
|
18724
|
-
!U && V >= 1 && (U = 1), U === 1 &&
|
|
18757
|
+
let I = Math.floor(V), U = V % 1;
|
|
18758
|
+
!U && V >= 1 && (U = 1), U === 1 && I--, I = Math.min(I, b + 1), !!(I % 2) && (C === "reverse" ? (U = 1 - U, g && (U -= g / p)) : C === "mirror" && (S = o)), y = clamp(0, 1, U) * p;
|
|
18725
18759
|
}
|
|
18726
18760
|
const T = x ? { done: !1, value: c[0] } : S.next(y);
|
|
18727
18761
|
l && (T.value = l(T.value));
|
|
@@ -19532,7 +19566,7 @@ function createAnimationState(e) {
|
|
|
19532
19566
|
const A = checkVariantsDidChange(x.prevProp, y);
|
|
19533
19567
|
let V = A || // If we're making this variant active, we want to always make it active
|
|
19534
19568
|
m === c && x.isActive && !L && S || // If we removed a higher-priority variant (i is in reverse order)
|
|
19535
|
-
E > C && S,
|
|
19569
|
+
E > C && S, I = !1;
|
|
19536
19570
|
const U = Array.isArray(y) ? y : [y];
|
|
19537
19571
|
let z = U.reduce(s(m), {});
|
|
19538
19572
|
T === !1 && (z = {});
|
|
@@ -19540,7 +19574,7 @@ function createAnimationState(e) {
|
|
|
19540
19574
|
...j,
|
|
19541
19575
|
...z
|
|
19542
19576
|
}, q = (R) => {
|
|
19543
|
-
V = !0, d.has(R) && (
|
|
19577
|
+
V = !0, d.has(R) && (I = !0, d.delete(R)), x.needsAnimating[R] = !0;
|
|
19544
19578
|
const P = e.getValue(R);
|
|
19545
19579
|
P && (P.liveStyle = !1);
|
|
19546
19580
|
};
|
|
@@ -19551,7 +19585,7 @@ function createAnimationState(e) {
|
|
|
19551
19585
|
let F = !1;
|
|
19552
19586
|
isKeyframesTarget(P) && isKeyframesTarget(M) ? F = !shallowCompare(P, M) : F = P !== M, F ? P != null ? q(R) : d.add(R) : P !== void 0 && d.has(R) ? q(R) : x.protectedKeys[R] = !0;
|
|
19553
19587
|
}
|
|
19554
|
-
x.prevProp = y, x.prevResolvedValues = z, x.isActive && (b = { ...b, ...z }), n && e.blockInitialAnimation && (V = !1), V && (!(L && A) ||
|
|
19588
|
+
x.prevProp = y, x.prevResolvedValues = z, x.isActive && (b = { ...b, ...z }), n && e.blockInitialAnimation && (V = !1), V && (!(L && A) || I) && p.push(...U.map((R) => ({
|
|
19555
19589
|
animation: R,
|
|
19556
19590
|
options: { type: m }
|
|
19557
19591
|
})));
|
|
@@ -22319,6 +22353,7 @@ export {
|
|
|
22319
22353
|
SDKIcon,
|
|
22320
22354
|
ScaleY,
|
|
22321
22355
|
SearchIcon,
|
|
22356
|
+
SearchIconThin,
|
|
22322
22357
|
Share,
|
|
22323
22358
|
Shine,
|
|
22324
22359
|
Sidebar,
|