@latte-macchiat-io/latte-vanilla-components 0.0.118 → 0.0.119
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/index.cjs.js +1 -1
- package/dist/index.es.js +568 -566
- package/dist/latte-vanilla-components.css +1 -1
- package/dist/types/components/Main/index.d.ts +1 -3
- package/dist/types/components/Main/stories.d.ts +1 -1
- package/dist/types/components/Main/styles.css.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -43,8 +43,8 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
43
43
|
return (r = i.parentNode) == null ? void 0 : r.removeChild(i);
|
|
44
44
|
}), this.tags = [], this.ctr = 0;
|
|
45
45
|
}, t;
|
|
46
|
-
}(), tt = "-ms-", en = "-moz-", F = "-webkit-", Ms = "comm", ci = "rule", ui = "decl", ka = "@import", Ds = "@keyframes", Fa = "@layer", Ia = Math.abs, hn = String.fromCharCode,
|
|
47
|
-
function
|
|
46
|
+
}(), tt = "-ms-", en = "-moz-", F = "-webkit-", Ms = "comm", ci = "rule", ui = "decl", ka = "@import", Ds = "@keyframes", Fa = "@layer", Ia = Math.abs, hn = String.fromCharCode, Ba = Object.assign;
|
|
47
|
+
function $a(t, e) {
|
|
48
48
|
return J(t, 0) ^ 45 ? (((e << 2 ^ J(t, 0)) << 2 ^ J(t, 1)) << 2 ^ J(t, 2)) << 2 ^ J(t, 3) : 0;
|
|
49
49
|
}
|
|
50
50
|
function Ls(t) {
|
|
@@ -82,7 +82,7 @@ function mn(t, e, n, i, r, o, s) {
|
|
|
82
82
|
return { value: t, root: e, parent: n, type: i, props: r, children: o, line: pn, column: oe, length: s, return: "" };
|
|
83
83
|
}
|
|
84
84
|
function me(t, e) {
|
|
85
|
-
return
|
|
85
|
+
return Ba(mn("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
86
86
|
}
|
|
87
87
|
function Na() {
|
|
88
88
|
return Y;
|
|
@@ -99,7 +99,7 @@ function Vt() {
|
|
|
99
99
|
function Ye() {
|
|
100
100
|
return dt;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Be(t, e) {
|
|
103
103
|
return Ve(fe, t, e);
|
|
104
104
|
}
|
|
105
105
|
function Ee(t) {
|
|
@@ -147,7 +147,7 @@ function Fs(t) {
|
|
|
147
147
|
return fe = "", t;
|
|
148
148
|
}
|
|
149
149
|
function qe(t) {
|
|
150
|
-
return Ls(
|
|
150
|
+
return Ls(Be(dt - 1, _n(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
151
151
|
}
|
|
152
152
|
function za(t) {
|
|
153
153
|
for (; (Y = Vt()) && Y < 33; )
|
|
@@ -157,7 +157,7 @@ function za(t) {
|
|
|
157
157
|
function Wa(t, e) {
|
|
158
158
|
for (; --e && mt() && !(Y < 48 || Y > 102 || Y > 57 && Y < 65 || Y > 70 && Y < 97); )
|
|
159
159
|
;
|
|
160
|
-
return
|
|
160
|
+
return Be(t, Ye() + (e < 6 && Vt() == 32 && mt() == 32));
|
|
161
161
|
}
|
|
162
162
|
function _n(t) {
|
|
163
163
|
for (; mt(); )
|
|
@@ -185,12 +185,12 @@ function Ga(t, e) {
|
|
|
185
185
|
for (; mt() && t + Y !== 57; )
|
|
186
186
|
if (t + Y === 84 && Vt() === 47)
|
|
187
187
|
break;
|
|
188
|
-
return "/*" +
|
|
188
|
+
return "/*" + Be(e, dt - 1) + "*" + hn(t === 47 ? t : mt());
|
|
189
189
|
}
|
|
190
190
|
function Ka(t) {
|
|
191
191
|
for (; !Ee(Vt()); )
|
|
192
192
|
mt();
|
|
193
|
-
return
|
|
193
|
+
return Be(t, dt);
|
|
194
194
|
}
|
|
195
195
|
function Ha(t) {
|
|
196
196
|
return Fs(Xe("", null, null, null, [""], t = ks(t), 0, [0], t));
|
|
@@ -356,7 +356,7 @@ function Ja(t) {
|
|
|
356
356
|
var Qa = function(e, n, i) {
|
|
357
357
|
for (var r = 0, o = 0; r = o, o = Vt(), r === 38 && o === 12 && (n[i] = 1), !Ee(o); )
|
|
358
358
|
mt();
|
|
359
|
-
return
|
|
359
|
+
return Be(e, dt);
|
|
360
360
|
}, tl = function(e, n) {
|
|
361
361
|
var i = -1, r = 44;
|
|
362
362
|
do
|
|
@@ -402,7 +402,7 @@ var Qa = function(e, n, i) {
|
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
404
|
function Is(t, e) {
|
|
405
|
-
switch (
|
|
405
|
+
switch ($a(t, e)) {
|
|
406
406
|
// color-adjust
|
|
407
407
|
case 5103:
|
|
408
408
|
return F + "print-" + t + t;
|
|
@@ -644,7 +644,7 @@ function ll(t) {
|
|
|
644
644
|
});
|
|
645
645
|
}), n;
|
|
646
646
|
}
|
|
647
|
-
var ze = { exports: {} },
|
|
647
|
+
var ze = { exports: {} }, B = {};
|
|
648
648
|
/** @license React v16.13.1
|
|
649
649
|
* react-is.production.min.js
|
|
650
650
|
*
|
|
@@ -655,7 +655,7 @@ var ze = { exports: {} }, $ = {};
|
|
|
655
655
|
*/
|
|
656
656
|
var Xi;
|
|
657
657
|
function cl() {
|
|
658
|
-
if (Xi) return
|
|
658
|
+
if (Xi) return B;
|
|
659
659
|
Xi = 1;
|
|
660
660
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, d = t ? Symbol.for("react.suspense_list") : 60120, h = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, S = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
|
661
661
|
function T(m) {
|
|
@@ -691,35 +691,35 @@ function cl() {
|
|
|
691
691
|
function V(m) {
|
|
692
692
|
return T(m) === c;
|
|
693
693
|
}
|
|
694
|
-
return
|
|
694
|
+
return B.AsyncMode = l, B.ConcurrentMode = c, B.ContextConsumer = a, B.ContextProvider = s, B.Element = e, B.ForwardRef = u, B.Fragment = i, B.Lazy = p, B.Memo = h, B.Portal = n, B.Profiler = o, B.StrictMode = r, B.Suspense = f, B.isAsyncMode = function(m) {
|
|
695
695
|
return V(m) || T(m) === l;
|
|
696
|
-
},
|
|
696
|
+
}, B.isConcurrentMode = V, B.isContextConsumer = function(m) {
|
|
697
697
|
return T(m) === a;
|
|
698
|
-
},
|
|
698
|
+
}, B.isContextProvider = function(m) {
|
|
699
699
|
return T(m) === s;
|
|
700
|
-
},
|
|
700
|
+
}, B.isElement = function(m) {
|
|
701
701
|
return typeof m == "object" && m !== null && m.$$typeof === e;
|
|
702
|
-
},
|
|
702
|
+
}, B.isForwardRef = function(m) {
|
|
703
703
|
return T(m) === u;
|
|
704
|
-
},
|
|
704
|
+
}, B.isFragment = function(m) {
|
|
705
705
|
return T(m) === i;
|
|
706
|
-
},
|
|
706
|
+
}, B.isLazy = function(m) {
|
|
707
707
|
return T(m) === p;
|
|
708
|
-
},
|
|
708
|
+
}, B.isMemo = function(m) {
|
|
709
709
|
return T(m) === h;
|
|
710
|
-
},
|
|
710
|
+
}, B.isPortal = function(m) {
|
|
711
711
|
return T(m) === n;
|
|
712
|
-
},
|
|
712
|
+
}, B.isProfiler = function(m) {
|
|
713
713
|
return T(m) === o;
|
|
714
|
-
},
|
|
714
|
+
}, B.isStrictMode = function(m) {
|
|
715
715
|
return T(m) === r;
|
|
716
|
-
},
|
|
716
|
+
}, B.isSuspense = function(m) {
|
|
717
717
|
return T(m) === f;
|
|
718
|
-
},
|
|
718
|
+
}, B.isValidElementType = function(m) {
|
|
719
719
|
return typeof m == "string" || typeof m == "function" || m === i || m === c || m === o || m === r || m === f || m === d || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === h || m.$$typeof === s || m.$$typeof === a || m.$$typeof === u || m.$$typeof === S || m.$$typeof === v || m.$$typeof === w || m.$$typeof === g);
|
|
720
|
-
},
|
|
720
|
+
}, B.typeOf = T, B;
|
|
721
721
|
}
|
|
722
|
-
var
|
|
722
|
+
var $ = {};
|
|
723
723
|
/** @license React v16.13.1
|
|
724
724
|
* react-is.development.js
|
|
725
725
|
*
|
|
@@ -787,13 +787,13 @@ function ul() {
|
|
|
787
787
|
function gt(R) {
|
|
788
788
|
return V(R) === u;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Bt(R) {
|
|
791
791
|
return V(R) === i;
|
|
792
792
|
}
|
|
793
793
|
function pt(R) {
|
|
794
794
|
return V(R) === p;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function $t(R) {
|
|
797
797
|
return V(R) === h;
|
|
798
798
|
}
|
|
799
799
|
function St(R) {
|
|
@@ -808,8 +808,8 @@ function ul() {
|
|
|
808
808
|
function Gt(R) {
|
|
809
809
|
return V(R) === f;
|
|
810
810
|
}
|
|
811
|
-
|
|
812
|
-
}()),
|
|
811
|
+
$.AsyncMode = m, $.ConcurrentMode = E, $.ContextConsumer = M, $.ContextProvider = y, $.Element = b, $.ForwardRef = x, $.Fragment = C, $.Lazy = O, $.Memo = z, $.Portal = q, $.Profiler = X, $.StrictMode = U, $.Suspense = k, $.isAsyncMode = at, $.isConcurrentMode = it, $.isContextConsumer = Ft, $.isContextProvider = It, $.isElement = bt, $.isForwardRef = gt, $.isFragment = Bt, $.isLazy = pt, $.isMemo = $t, $.isPortal = St, $.isProfiler = wt, $.isStrictMode = Wt, $.isSuspense = Gt, $.isValidElementType = T, $.typeOf = V;
|
|
812
|
+
}()), $;
|
|
813
813
|
}
|
|
814
814
|
var Ji;
|
|
815
815
|
function fl() {
|
|
@@ -889,7 +889,7 @@ function pl(t, e, n) {
|
|
|
889
889
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (i += r + " ");
|
|
890
890
|
}), i;
|
|
891
891
|
}
|
|
892
|
-
var
|
|
892
|
+
var Bs = function(e, n, i) {
|
|
893
893
|
var r = e.key + "-" + n.name;
|
|
894
894
|
// we only need to add the styles to the registered cache if the
|
|
895
895
|
// class name could be used further down
|
|
@@ -902,7 +902,7 @@ var $s = function(e, n, i) {
|
|
|
902
902
|
// also, note that this check will be dead code eliminated in the browser
|
|
903
903
|
hl === !1) && e.registered[r] === void 0 && (e.registered[r] = n.styles);
|
|
904
904
|
}, ml = function(e, n, i) {
|
|
905
|
-
|
|
905
|
+
Bs(e, n, i);
|
|
906
906
|
var r = e.key + "-" + n.name;
|
|
907
907
|
if (e.inserted[n.name] === void 0) {
|
|
908
908
|
var o = n;
|
|
@@ -979,12 +979,12 @@ var yl = {
|
|
|
979
979
|
strokeMiterlimit: 1,
|
|
980
980
|
strokeOpacity: 1,
|
|
981
981
|
strokeWidth: 1
|
|
982
|
-
}, vl = /[A-Z]|^ms/g, xl = /_EMO_([^_]+?)_([^]*?)_EMO_/g,
|
|
982
|
+
}, vl = /[A-Z]|^ms/g, xl = /_EMO_([^_]+?)_([^]*?)_EMO_/g, $s = function(e) {
|
|
983
983
|
return e.charCodeAt(1) === 45;
|
|
984
984
|
}, tr = function(e) {
|
|
985
985
|
return e != null && typeof e != "boolean";
|
|
986
986
|
}, Tn = /* @__PURE__ */ Ja(function(t) {
|
|
987
|
-
return
|
|
987
|
+
return $s(t) ? t : t.replace(vl, "-$&").toLowerCase();
|
|
988
988
|
}), er = function(e, n) {
|
|
989
989
|
switch (e) {
|
|
990
990
|
case "animation":
|
|
@@ -998,7 +998,7 @@ var yl = {
|
|
|
998
998
|
}, r;
|
|
999
999
|
});
|
|
1000
1000
|
}
|
|
1001
|
-
return yl[e] !== 1 &&
|
|
1001
|
+
return yl[e] !== 1 && !$s(e) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
1002
1002
|
};
|
|
1003
1003
|
function Re(t, e, n) {
|
|
1004
1004
|
if (n == null)
|
|
@@ -1126,7 +1126,7 @@ var Pl = function(e) {
|
|
|
1126
1126
|
return i[Nn] = e, i;
|
|
1127
1127
|
}, Vl = function(e) {
|
|
1128
1128
|
var n = e.cache, i = e.serialized, r = e.isStringTag;
|
|
1129
|
-
return
|
|
1129
|
+
return Bs(n, i, r), Cl(function() {
|
|
1130
1130
|
return ml(n, i, r);
|
|
1131
1131
|
}), null;
|
|
1132
1132
|
}, El = /* @__PURE__ */ Pl(function(t, e, n) {
|
|
@@ -1485,7 +1485,7 @@ const Ol = D.div(
|
|
|
1485
1485
|
},
|
|
1486
1486
|
e
|
|
1487
1487
|
)
|
|
1488
|
-
),
|
|
1488
|
+
), Ip = ({ children: t, styles: e = {}, theme: n = j, align: i = be.Left }) => /* @__PURE__ */ A(Ol, { theme: n, align: i, styles: e, children: t }), kl = {
|
|
1489
1489
|
caret: "M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0",
|
|
1490
1490
|
close: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4",
|
|
1491
1491
|
arrowBack: "M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1",
|
|
@@ -1526,7 +1526,7 @@ const Ol = D.div(
|
|
|
1526
1526
|
viewBox: s = "0 0 24 24"
|
|
1527
1527
|
}) => /* @__PURE__ */ A(Fl, { viewBox: s, width: `${e}px`, height: `${e}px`, styles: n, children: /* @__PURE__ */ A(Il, { d: i || kl[t], fill: r || o.colors.defaultIcon }) });
|
|
1528
1528
|
var nn = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(nn || {});
|
|
1529
|
-
const
|
|
1529
|
+
const Bl = D.div(
|
|
1530
1530
|
({
|
|
1531
1531
|
theme: {
|
|
1532
1532
|
modal: { overlayBlur: t, overlayOpacity: e, overlayBackgroundColor: n }
|
|
@@ -1550,7 +1550,7 @@ const $l = D.div(
|
|
|
1550
1550
|
},
|
|
1551
1551
|
i
|
|
1552
1552
|
)
|
|
1553
|
-
),
|
|
1553
|
+
), $l = D.div(
|
|
1554
1554
|
({
|
|
1555
1555
|
theme: {
|
|
1556
1556
|
global: { paddingLeft: t, paddingRight: e },
|
|
@@ -1623,7 +1623,7 @@ const $l = D.div(
|
|
|
1623
1623
|
align: n = nn.Left,
|
|
1624
1624
|
theme: i = j,
|
|
1625
1625
|
onModalHide: r = void 0
|
|
1626
|
-
}) => /* @__PURE__ */ A(
|
|
1626
|
+
}) => /* @__PURE__ */ A(Bl, { theme: i, styles: e, children: /* @__PURE__ */ ht($l, { theme: i, align: n, children: [
|
|
1627
1627
|
r && /* @__PURE__ */ A(jl, { onClick: r, children: /* @__PURE__ */ A(Lt, { theme: i, icon: "close" }) }),
|
|
1628
1628
|
t
|
|
1629
1629
|
] }) }), _l = D.div(
|
|
@@ -1862,7 +1862,7 @@ const $l = D.div(
|
|
|
1862
1862
|
},
|
|
1863
1863
|
t
|
|
1864
1864
|
)
|
|
1865
|
-
),
|
|
1865
|
+
), $p = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(Hl, { theme: n, styles: e, children: t }), Yl = D.div(
|
|
1866
1866
|
({
|
|
1867
1867
|
styles: t,
|
|
1868
1868
|
isFullWidth: e,
|
|
@@ -1987,7 +1987,7 @@ function ec() {
|
|
|
1987
1987
|
return window.addEventListener("resize", n), n(), () => window.removeEventListener("resize", n);
|
|
1988
1988
|
}, []), t;
|
|
1989
1989
|
}
|
|
1990
|
-
const
|
|
1990
|
+
const jp = ({
|
|
1991
1991
|
data: t,
|
|
1992
1992
|
styles: e = {},
|
|
1993
1993
|
displayItem: n = 1,
|
|
@@ -2293,7 +2293,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2293
2293
|
}, []);
|
|
2294
2294
|
}
|
|
2295
2295
|
var w = function(b, x) {
|
|
2296
|
-
var C = x.decimal, O = x.decimals, z = x.duration, q = x.easingFn, X = x.end, U = x.formattingFn, k = x.numerals, _ = x.prefix, at = x.separator, it = x.start, Ft = x.suffix, It = x.useEasing, bt = x.useGrouping, gt = x.useIndianSeparators,
|
|
2296
|
+
var C = x.decimal, O = x.decimals, z = x.duration, q = x.easingFn, X = x.end, U = x.formattingFn, k = x.numerals, _ = x.prefix, at = x.separator, it = x.start, Ft = x.suffix, It = x.useEasing, bt = x.useGrouping, gt = x.useIndianSeparators, Bt = x.enableScrollSpy, pt = x.scrollSpyDelay, $t = x.scrollSpyOnce, St = x.plugin;
|
|
2297
2297
|
return new e.CountUp(b, X, {
|
|
2298
2298
|
startVal: it,
|
|
2299
2299
|
duration: z,
|
|
@@ -2309,9 +2309,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2309
2309
|
useEasing: It,
|
|
2310
2310
|
useIndianSeparators: gt,
|
|
2311
2311
|
useGrouping: bt,
|
|
2312
|
-
enableScrollSpy:
|
|
2312
|
+
enableScrollSpy: Bt,
|
|
2313
2313
|
scrollSpyDelay: pt,
|
|
2314
|
-
scrollSpyOnce:
|
|
2314
|
+
scrollSpyOnce: $t
|
|
2315
2315
|
});
|
|
2316
2316
|
}, T = ["ref", "startOnMount", "enableReinitialize", "delay", "onEnd", "onStart", "onPauseResume", "onReset", "onUpdate"], V = {
|
|
2317
2317
|
decimal: ".",
|
|
@@ -2333,15 +2333,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2333
2333
|
return Kt !== void 0;
|
|
2334
2334
|
})), C = t.useMemo(function() {
|
|
2335
2335
|
return r(r({}, V), x);
|
|
2336
|
-
}, [b]), O = C.ref, z = C.startOnMount, q = C.enableReinitialize, X = C.delay, U = C.onEnd, k = C.onStart, _ = C.onPauseResume, at = C.onReset, it = C.onUpdate, Ft = u(C, T), It = t.useRef(), bt = t.useRef(), gt = t.useRef(!1),
|
|
2336
|
+
}, [b]), O = C.ref, z = C.startOnMount, q = C.enableReinitialize, X = C.delay, U = C.onEnd, k = C.onStart, _ = C.onPauseResume, at = C.onReset, it = C.onUpdate, Ft = u(C, T), It = t.useRef(), bt = t.useRef(), gt = t.useRef(!1), Bt = v(function() {
|
|
2337
2337
|
return w(typeof O == "string" ? O : O.current, Ft);
|
|
2338
2338
|
}), pt = v(function(lt) {
|
|
2339
2339
|
var Ct = It.current;
|
|
2340
2340
|
if (Ct && !lt)
|
|
2341
2341
|
return Ct;
|
|
2342
|
-
var Kt =
|
|
2342
|
+
var Kt = Bt();
|
|
2343
2343
|
return It.current = Kt, Kt;
|
|
2344
|
-
}),
|
|
2344
|
+
}), $t = v(function() {
|
|
2345
2345
|
var lt = function() {
|
|
2346
2346
|
return pt(!0).start(function() {
|
|
2347
2347
|
U == null || U({
|
|
@@ -2376,9 +2376,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2376
2376
|
start: Gt
|
|
2377
2377
|
});
|
|
2378
2378
|
}), Gt = v(function() {
|
|
2379
|
-
wt(),
|
|
2379
|
+
wt(), $t();
|
|
2380
2380
|
}), R = v(function(lt) {
|
|
2381
|
-
z && (lt && wt(),
|
|
2381
|
+
z && (lt && wt(), $t());
|
|
2382
2382
|
});
|
|
2383
2383
|
return t.useEffect(function() {
|
|
2384
2384
|
gt.current ? q && R(!0) : (gt.current = !0, R());
|
|
@@ -2401,7 +2401,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2401
2401
|
enableReinitialize: !1
|
|
2402
2402
|
})), at = _.start, it = _.reset, Ft = _.update, It = _.pauseResume, bt = _.getCountUp, gt = v(function() {
|
|
2403
2403
|
at();
|
|
2404
|
-
}),
|
|
2404
|
+
}), Bt = v(function(St) {
|
|
2405
2405
|
b.preserveValue || it(), Ft(St);
|
|
2406
2406
|
}), pt = v(function() {
|
|
2407
2407
|
if (typeof b.children == "function" && !(U.current instanceof Element)) {
|
|
@@ -2413,12 +2413,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2413
2413
|
t.useEffect(function() {
|
|
2414
2414
|
pt();
|
|
2415
2415
|
}, [pt]), t.useEffect(function() {
|
|
2416
|
-
k.current &&
|
|
2417
|
-
}, [b.end,
|
|
2418
|
-
var
|
|
2416
|
+
k.current && Bt(b.end);
|
|
2417
|
+
}, [b.end, Bt]);
|
|
2418
|
+
var $t = C && b;
|
|
2419
2419
|
return t.useEffect(function() {
|
|
2420
2420
|
C && k.current && gt();
|
|
2421
|
-
}, [gt, C,
|
|
2421
|
+
}, [gt, C, $t]), t.useEffect(function() {
|
|
2422
2422
|
!C && k.current && gt();
|
|
2423
2423
|
}, [gt, C, b.start, b.suffix, b.prefix, b.duration, b.separator, b.decimals, b.decimal, b.className, b.formattingFn]), t.useEffect(function() {
|
|
2424
2424
|
k.current = !0;
|
|
@@ -2574,7 +2574,7 @@ const pc = D.div(
|
|
|
2574
2574
|
fontSize: "2.5em",
|
|
2575
2575
|
lineHeight: "1em"
|
|
2576
2576
|
}
|
|
2577
|
-
}),
|
|
2577
|
+
}), _p = ({ label: t, suffix: e, keyNumber: n, styles: i = {}, theme: r = j }) => {
|
|
2578
2578
|
const [o, s] = hc({
|
|
2579
2579
|
threshold: 0.3,
|
|
2580
2580
|
triggerOnce: !0
|
|
@@ -2616,7 +2616,7 @@ const pc = D.div(
|
|
|
2616
2616
|
},
|
|
2617
2617
|
t
|
|
2618
2618
|
)
|
|
2619
|
-
),
|
|
2619
|
+
), Np = ({
|
|
2620
2620
|
video: t,
|
|
2621
2621
|
poster: e,
|
|
2622
2622
|
isAutoPlay: n,
|
|
@@ -2694,7 +2694,7 @@ const pc = D.div(
|
|
|
2694
2694
|
outline: "none"
|
|
2695
2695
|
}
|
|
2696
2696
|
})
|
|
2697
|
-
),
|
|
2697
|
+
), Up = ({
|
|
2698
2698
|
currentLocale: t,
|
|
2699
2699
|
handleChange: e,
|
|
2700
2700
|
locales: n,
|
|
@@ -2725,12 +2725,14 @@ function Sc(t, e) {
|
|
|
2725
2725
|
writable: !1
|
|
2726
2726
|
}), n;
|
|
2727
2727
|
}
|
|
2728
|
-
var wc = "var(--_1wp326d0)", Tc = "var(--_1wp326d1)", Cc = "
|
|
2729
|
-
const
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2728
|
+
var wc = "var(--_1wp326d0)", Tc = "var(--_1wp326d1)", Cc = "_1wp326d2";
|
|
2729
|
+
const zp = ({ children: t, theme: e = j }) => {
|
|
2730
|
+
const { main: { backgroundColor: n, minHeight: i } } = e;
|
|
2731
|
+
return /* @__PURE__ */ A("main", { className: Cc, style: Sc({
|
|
2732
|
+
[wc]: i,
|
|
2733
|
+
[Tc]: n
|
|
2734
|
+
}), children: t });
|
|
2735
|
+
}, Pc = D.div(
|
|
2734
2736
|
({
|
|
2735
2737
|
isOpen: t,
|
|
2736
2738
|
theme: {
|
|
@@ -2765,9 +2767,9 @@ const Wp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(
|
|
|
2765
2767
|
gap: e[3]
|
|
2766
2768
|
}
|
|
2767
2769
|
})
|
|
2768
|
-
),
|
|
2770
|
+
), Ac = ({ isOpen: t, theme: e = j, children: n }) => (ut(() => {
|
|
2769
2771
|
document.getElementsByTagName("html")[0].style.overflow = "", t && (document.getElementsByTagName("html")[0].style.overflow = "hidden");
|
|
2770
|
-
}, [t]), /* @__PURE__ */ A(
|
|
2772
|
+
}, [t]), /* @__PURE__ */ A(Pc, { isOpen: t, theme: e, children: n })), Vc = D.header(
|
|
2771
2773
|
({
|
|
2772
2774
|
styles: t,
|
|
2773
2775
|
isFixed: e,
|
|
@@ -2823,7 +2825,7 @@ const Wp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(
|
|
|
2823
2825
|
},
|
|
2824
2826
|
t
|
|
2825
2827
|
)
|
|
2826
|
-
),
|
|
2828
|
+
), Ec = D.div(
|
|
2827
2829
|
({
|
|
2828
2830
|
theme: {
|
|
2829
2831
|
header: { height: t }
|
|
@@ -2840,7 +2842,7 @@ const Wp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(
|
|
|
2840
2842
|
height: t[3]
|
|
2841
2843
|
}
|
|
2842
2844
|
})
|
|
2843
|
-
),
|
|
2845
|
+
), Rc = D.button(({ displayOnDesktop: t }) => ({
|
|
2844
2846
|
border: 0,
|
|
2845
2847
|
width: 25,
|
|
2846
2848
|
height: 12,
|
|
@@ -2874,12 +2876,12 @@ const Wp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(
|
|
|
2874
2876
|
transform: t ? "rotate(-45deg) translate(4px, -3px)" : "none"
|
|
2875
2877
|
}
|
|
2876
2878
|
})
|
|
2877
|
-
),
|
|
2879
|
+
), Mc = ({ onToggleNav: t, theme: e = j, isNavOpen: n = !1, displayOnDesktop: i }) => /* @__PURE__ */ ht(Rc, { onClick: () => {
|
|
2878
2880
|
window.scrollTo({ top: 0, behavior: "smooth" }), t();
|
|
2879
2881
|
}, "aria-label": "Toggle nav", displayOnDesktop: i, children: [
|
|
2880
2882
|
/* @__PURE__ */ A(cr, { theme: e, isNavOpen: n }),
|
|
2881
2883
|
/* @__PURE__ */ A(cr, { theme: e, isNavOpen: n })
|
|
2882
|
-
] }),
|
|
2884
|
+
] }), Wp = ({
|
|
2883
2885
|
children: t,
|
|
2884
2886
|
styles: e = {},
|
|
2885
2887
|
isFixed: n = !1,
|
|
@@ -2890,14 +2892,14 @@ const Wp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(
|
|
|
2890
2892
|
}) => {
|
|
2891
2893
|
const [a, l] = xt(!1);
|
|
2892
2894
|
return /* @__PURE__ */ ht(Rl, { children: [
|
|
2893
|
-
/* @__PURE__ */ ht(
|
|
2894
|
-
i && /* @__PURE__ */ A(
|
|
2895
|
+
/* @__PURE__ */ ht(Vc, { theme: r, styles: e, isFixed: n, children: [
|
|
2896
|
+
i && /* @__PURE__ */ A(Ac, { theme: r, isOpen: a, children: i }),
|
|
2895
2897
|
t,
|
|
2896
|
-
!o && /* @__PURE__ */ A(
|
|
2898
|
+
!o && /* @__PURE__ */ A(Mc, { theme: r, isNavOpen: a, onToggleNav: () => l(!a), displayOnDesktop: s })
|
|
2897
2899
|
] }),
|
|
2898
|
-
n && /* @__PURE__ */ A(
|
|
2900
|
+
n && /* @__PURE__ */ A(Ec, { theme: r })
|
|
2899
2901
|
] });
|
|
2900
|
-
},
|
|
2902
|
+
}, Dc = D.footer(
|
|
2901
2903
|
({
|
|
2902
2904
|
styles: t,
|
|
2903
2905
|
theme: {
|
|
@@ -2949,9 +2951,9 @@ const Wp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(
|
|
|
2949
2951
|
},
|
|
2950
2952
|
t
|
|
2951
2953
|
)
|
|
2952
|
-
),
|
|
2954
|
+
), Gp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(Dc, { theme: n, styles: e, children: t });
|
|
2953
2955
|
var Se = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(Se || {});
|
|
2954
|
-
const
|
|
2956
|
+
const Lc = D.div(({ theme: t, styles: e, align: n, columns: i, isCentered: r, isInverted: o }) => {
|
|
2955
2957
|
const s = {
|
|
2956
2958
|
width: "100%",
|
|
2957
2959
|
display: "flex",
|
|
@@ -2988,7 +2990,7 @@ const Oc = D.div(({ theme: t, styles: e, align: n, columns: i, isCentered: r, is
|
|
|
2988
2990
|
}
|
|
2989
2991
|
}));
|
|
2990
2992
|
return W(Object.assign(s, ...a), e);
|
|
2991
|
-
}),
|
|
2993
|
+
}), Kp = ({
|
|
2992
2994
|
columns: t,
|
|
2993
2995
|
children: e,
|
|
2994
2996
|
styles: n = {},
|
|
@@ -2996,7 +2998,7 @@ const Oc = D.div(({ theme: t, styles: e, align: n, columns: i, isCentered: r, is
|
|
|
2996
2998
|
isCentered: r = !1,
|
|
2997
2999
|
isInverted: o = !1,
|
|
2998
3000
|
theme: s = j
|
|
2999
|
-
}) => /* @__PURE__ */ A(
|
|
3001
|
+
}) => /* @__PURE__ */ A(Lc, { align: i, theme: s, columns: t, isCentered: r, isInverted: o, styles: n, children: e }), Ws = ue({});
|
|
3000
3002
|
function Gs(t) {
|
|
3001
3003
|
const e = _t(null);
|
|
3002
3004
|
return e.current === null && (e.current = t()), e.current;
|
|
@@ -3006,7 +3008,7 @@ const di = /* @__PURE__ */ ue(null), Ks = ue({
|
|
|
3006
3008
|
isStatic: !1,
|
|
3007
3009
|
reducedMotion: "never"
|
|
3008
3010
|
});
|
|
3009
|
-
function
|
|
3011
|
+
function Oc(t = !0) {
|
|
3010
3012
|
const e = st(di);
|
|
3011
3013
|
if (e === null)
|
|
3012
3014
|
return [!0, null];
|
|
@@ -3034,7 +3036,7 @@ function pi(t) {
|
|
|
3034
3036
|
const ae = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
|
3035
3037
|
const i = e - t;
|
|
3036
3038
|
return i === 0 ? 1 : (n - t) / i;
|
|
3037
|
-
}, Et = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, Ot = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3,
|
|
3039
|
+
}, Et = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, Ot = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3, kc = {
|
|
3038
3040
|
skipAnimations: !1,
|
|
3039
3041
|
useManualTiming: !1
|
|
3040
3042
|
}, Ge = [
|
|
@@ -3051,7 +3053,7 @@ const ae = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
|
|
3051
3053
|
"postRender"
|
|
3052
3054
|
// Compute
|
|
3053
3055
|
];
|
|
3054
|
-
function
|
|
3056
|
+
function Fc(t, e) {
|
|
3055
3057
|
let n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), r = !1, o = !1;
|
|
3056
3058
|
const s = /* @__PURE__ */ new WeakSet();
|
|
3057
3059
|
let a = {
|
|
@@ -3089,16 +3091,16 @@ function Ic(t, e) {
|
|
|
3089
3091
|
};
|
|
3090
3092
|
return c;
|
|
3091
3093
|
}
|
|
3092
|
-
const
|
|
3094
|
+
const Ic = 40;
|
|
3093
3095
|
function Ys(t, e) {
|
|
3094
3096
|
let n = !1, i = !0;
|
|
3095
3097
|
const r = {
|
|
3096
3098
|
delta: 0,
|
|
3097
3099
|
timestamp: 0,
|
|
3098
3100
|
isProcessing: !1
|
|
3099
|
-
}, o = () => n = !0, s = Ge.reduce((v, w) => (v[w] =
|
|
3101
|
+
}, o = () => n = !0, s = Ge.reduce((v, w) => (v[w] = Fc(o), v), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = s, h = () => {
|
|
3100
3102
|
const v = performance.now();
|
|
3101
|
-
n = !1, r.delta = i ? 1e3 / 60 : Math.max(Math.min(v - r.timestamp,
|
|
3103
|
+
n = !1, r.delta = i ? 1e3 / 60 : Math.max(Math.min(v - r.timestamp, Ic), 1), r.timestamp = v, r.isProcessing = !0, a.process(r), l.process(r), c.process(r), u.process(r), f.process(r), d.process(r), r.isProcessing = !1, n && e && (i = !1, t(h));
|
|
3102
3104
|
}, p = () => {
|
|
3103
3105
|
n = !0, i = !0, r.isProcessing || t(h);
|
|
3104
3106
|
};
|
|
@@ -3141,7 +3143,7 @@ function Bc(t) {
|
|
|
3141
3143
|
...t[e]
|
|
3142
3144
|
};
|
|
3143
3145
|
}
|
|
3144
|
-
const
|
|
3146
|
+
const $c = /* @__PURE__ */ new Set([
|
|
3145
3147
|
"animate",
|
|
3146
3148
|
"exit",
|
|
3147
3149
|
"variants",
|
|
@@ -3174,17 +3176,17 @@ const jc = /* @__PURE__ */ new Set([
|
|
|
3174
3176
|
"viewport"
|
|
3175
3177
|
]);
|
|
3176
3178
|
function sn(t) {
|
|
3177
|
-
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") ||
|
|
3179
|
+
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || $c.has(t);
|
|
3178
3180
|
}
|
|
3179
3181
|
let Xs = (t) => !sn(t);
|
|
3180
|
-
function
|
|
3182
|
+
function jc(t) {
|
|
3181
3183
|
t && (Xs = (e) => e.startsWith("on") ? !sn(e) : t(e));
|
|
3182
3184
|
}
|
|
3183
3185
|
try {
|
|
3184
|
-
|
|
3186
|
+
jc(require("@emotion/is-prop-valid").default);
|
|
3185
3187
|
} catch {
|
|
3186
3188
|
}
|
|
3187
|
-
function
|
|
3189
|
+
function _c(t, e, n) {
|
|
3188
3190
|
const i = {};
|
|
3189
3191
|
for (const r in t)
|
|
3190
3192
|
r === "values" && typeof t.values == "object" || (Xs(r) || n === !0 && sn(r) || !e && !sn(r) || // If trying to use native HTML drag events, forward drag listeners
|
|
@@ -3195,7 +3197,7 @@ const fr = /* @__PURE__ */ new Set();
|
|
|
3195
3197
|
function yn(t, e, n) {
|
|
3196
3198
|
t || fr.has(e) || (console.warn(e), fr.add(e));
|
|
3197
3199
|
}
|
|
3198
|
-
function
|
|
3200
|
+
function Nc(t) {
|
|
3199
3201
|
if (typeof Proxy > "u")
|
|
3200
3202
|
return t;
|
|
3201
3203
|
const e = /* @__PURE__ */ new Map(), n = (...i) => (process.env.NODE_ENV !== "production" && yn(!1, "motion() is deprecated. Use motion.create() instead."), t(...i));
|
|
@@ -3230,7 +3232,7 @@ function bn(t) {
|
|
|
3230
3232
|
function Zs(t) {
|
|
3231
3233
|
return !!(bn(t) || t.variants);
|
|
3232
3234
|
}
|
|
3233
|
-
function
|
|
3235
|
+
function Uc(t, e) {
|
|
3234
3236
|
if (bn(t)) {
|
|
3235
3237
|
const { initial: n, animate: i } = t;
|
|
3236
3238
|
return {
|
|
@@ -3240,18 +3242,18 @@ function zc(t, e) {
|
|
|
3240
3242
|
}
|
|
3241
3243
|
return t.inherit !== !1 ? e : {};
|
|
3242
3244
|
}
|
|
3243
|
-
function
|
|
3244
|
-
const { initial: e, animate: n } =
|
|
3245
|
+
function zc(t) {
|
|
3246
|
+
const { initial: e, animate: n } = Uc(t, st(vn));
|
|
3245
3247
|
return dn(() => ({ initial: e, animate: n }), [dr(e), dr(n)]);
|
|
3246
3248
|
}
|
|
3247
3249
|
function dr(t) {
|
|
3248
3250
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
3249
3251
|
}
|
|
3250
|
-
const
|
|
3252
|
+
const Wc = Symbol.for("motionComponentSymbol");
|
|
3251
3253
|
function Jt(t) {
|
|
3252
3254
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
3253
3255
|
}
|
|
3254
|
-
function
|
|
3256
|
+
function Gc(t, e, n) {
|
|
3255
3257
|
return Es(
|
|
3256
3258
|
(i) => {
|
|
3257
3259
|
i && t.onMount && t.onMount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Jt(n) && (n.current = i));
|
|
@@ -3264,8 +3266,8 @@ function Kc(t, e, n) {
|
|
|
3264
3266
|
[e]
|
|
3265
3267
|
);
|
|
3266
3268
|
}
|
|
3267
|
-
const yi = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(),
|
|
3268
|
-
function
|
|
3269
|
+
const yi = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Kc = "framerAppearId", Js = "data-" + yi(Kc), { schedule: vi, cancel: Hp } = Ys(queueMicrotask, !1), Qs = ue({});
|
|
3270
|
+
function Hc(t, e, n, i, r) {
|
|
3269
3271
|
var o, s;
|
|
3270
3272
|
const { visualElement: a } = st(vn), l = st(qs), c = st(di), u = st(Ks).reducedMotion, f = _t(null);
|
|
3271
3273
|
i = i || l.renderer, !f.current && i && (f.current = i(t, {
|
|
@@ -3277,7 +3279,7 @@ function Yc(t, e, n, i, r) {
|
|
|
3277
3279
|
reducedMotionConfig: u
|
|
3278
3280
|
}));
|
|
3279
3281
|
const d = f.current, h = st(Qs);
|
|
3280
|
-
d && !d.projection && r && (d.type === "html" || d.type === "svg") &&
|
|
3282
|
+
d && !d.projection && r && (d.type === "html" || d.type === "svg") && Yc(f.current, n, r, h);
|
|
3281
3283
|
const p = _t(!1);
|
|
3282
3284
|
Va(() => {
|
|
3283
3285
|
d && p.current && d.update(n, c);
|
|
@@ -3292,7 +3294,7 @@ function Yc(t, e, n, i, r) {
|
|
|
3292
3294
|
}), S.current = !1));
|
|
3293
3295
|
}), d;
|
|
3294
3296
|
}
|
|
3295
|
-
function
|
|
3297
|
+
function Yc(t, e, n, i) {
|
|
3296
3298
|
const { layoutId: r, layout: o, drag: s, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
|
|
3297
3299
|
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : to(t.parent)), t.projection.setOptions({
|
|
3298
3300
|
layoutId: r,
|
|
@@ -3316,7 +3318,7 @@ function to(t) {
|
|
|
3316
3318
|
if (t)
|
|
3317
3319
|
return t.options.allowProjection !== !1 ? t.projection : to(t.parent);
|
|
3318
3320
|
}
|
|
3319
|
-
function
|
|
3321
|
+
function qc({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: r }) {
|
|
3320
3322
|
var o, s;
|
|
3321
3323
|
t && Bc(t);
|
|
3322
3324
|
function a(c, u) {
|
|
@@ -3324,31 +3326,31 @@ function Xc({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
|
|
|
3324
3326
|
const d = {
|
|
3325
3327
|
...st(Ks),
|
|
3326
3328
|
...c,
|
|
3327
|
-
layoutId:
|
|
3328
|
-
}, { isStatic: h } = d, p =
|
|
3329
|
+
layoutId: Xc(c)
|
|
3330
|
+
}, { isStatic: h } = d, p = zc(c), g = i(c, h);
|
|
3329
3331
|
if (!h && hi) {
|
|
3330
|
-
|
|
3331
|
-
const S =
|
|
3332
|
-
f = S.MeasureLayout, p.visualElement =
|
|
3332
|
+
Zc(d, t);
|
|
3333
|
+
const S = Jc(d);
|
|
3334
|
+
f = S.MeasureLayout, p.visualElement = Hc(r, g, d, e, S.ProjectionNode);
|
|
3333
3335
|
}
|
|
3334
|
-
return Ta(vn.Provider, { value: p, children: [f && p.visualElement ? As(f, { visualElement: p.visualElement, ...d }) : null, n(r, c,
|
|
3336
|
+
return Ta(vn.Provider, { value: p, children: [f && p.visualElement ? As(f, { visualElement: p.visualElement, ...d }) : null, n(r, c, Gc(g, p.visualElement, u), g, h, p.visualElement)] });
|
|
3335
3337
|
}
|
|
3336
3338
|
a.displayName = `motion.${typeof r == "string" ? r : `create(${(s = (o = r.displayName) !== null && o !== void 0 ? o : r.name) !== null && s !== void 0 ? s : ""})`}`;
|
|
3337
3339
|
const l = Vs(a);
|
|
3338
|
-
return l[
|
|
3340
|
+
return l[Wc] = r, l;
|
|
3339
3341
|
}
|
|
3340
|
-
function
|
|
3342
|
+
function Xc({ layoutId: t }) {
|
|
3341
3343
|
const e = st(Ws).id;
|
|
3342
3344
|
return e && t !== void 0 ? e + "-" + t : t;
|
|
3343
3345
|
}
|
|
3344
|
-
function
|
|
3346
|
+
function Zc(t, e) {
|
|
3345
3347
|
const n = st(qs).strict;
|
|
3346
3348
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
3347
3349
|
const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
3348
3350
|
t.ignoreStrict ? de(!1, i) : Dt(!1, i);
|
|
3349
3351
|
}
|
|
3350
3352
|
}
|
|
3351
|
-
function
|
|
3353
|
+
function Jc(t) {
|
|
3352
3354
|
const { drag: e, layout: n } = le;
|
|
3353
3355
|
if (!e && !n)
|
|
3354
3356
|
return {};
|
|
@@ -3358,8 +3360,8 @@ function Qc(t) {
|
|
|
3358
3360
|
ProjectionNode: i.ProjectionNode
|
|
3359
3361
|
};
|
|
3360
3362
|
}
|
|
3361
|
-
const eo = (t) => (e) => typeof e == "string" && e.startsWith(t), xi = /* @__PURE__ */ eo("--"),
|
|
3362
|
-
function
|
|
3363
|
+
const eo = (t) => (e) => typeof e == "string" && e.startsWith(t), xi = /* @__PURE__ */ eo("--"), Qc = /* @__PURE__ */ eo("var(--"), bi = (t) => Qc(t) ? tu.test(t.split("/*")[0].trim()) : !1, tu = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, De = {};
|
|
3364
|
+
function eu(t) {
|
|
3363
3365
|
for (const e in t)
|
|
3364
3366
|
De[e] = t[e], xi(e) && (De[e].isCSSVariable = !0);
|
|
3365
3367
|
}
|
|
@@ -3395,15 +3397,15 @@ const nt = (t) => !!(t && t.getVelocity), io = (t, e) => e && typeof t == "numbe
|
|
|
3395
3397
|
}, Ke = {
|
|
3396
3398
|
...pe,
|
|
3397
3399
|
default: 1
|
|
3398
|
-
},
|
|
3400
|
+
}, $e = (t) => ({
|
|
3399
3401
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
3400
3402
|
parse: parseFloat,
|
|
3401
3403
|
transform: (e) => `${e}${t}`
|
|
3402
|
-
}), jt = /* @__PURE__ */
|
|
3404
|
+
}), jt = /* @__PURE__ */ $e("deg"), Rt = /* @__PURE__ */ $e("%"), L = /* @__PURE__ */ $e("px"), nu = /* @__PURE__ */ $e("vh"), iu = /* @__PURE__ */ $e("vw"), hr = {
|
|
3403
3405
|
...Rt,
|
|
3404
3406
|
parse: (t) => Rt.parse(t) / 100,
|
|
3405
3407
|
transform: (t) => Rt.transform(t * 100)
|
|
3406
|
-
},
|
|
3408
|
+
}, ru = {
|
|
3407
3409
|
// Border props
|
|
3408
3410
|
borderWidth: L,
|
|
3409
3411
|
borderTopWidth: L,
|
|
@@ -3439,7 +3441,7 @@ const nt = (t) => !!(t && t.getVelocity), io = (t, e) => e && typeof t == "numbe
|
|
|
3439
3441
|
// Misc
|
|
3440
3442
|
backgroundPositionX: L,
|
|
3441
3443
|
backgroundPositionY: L
|
|
3442
|
-
},
|
|
3444
|
+
}, su = {
|
|
3443
3445
|
rotate: jt,
|
|
3444
3446
|
rotateX: jt,
|
|
3445
3447
|
rotateY: jt,
|
|
@@ -3468,23 +3470,23 @@ const nt = (t) => !!(t && t.getVelocity), io = (t, e) => e && typeof t == "numbe
|
|
|
3468
3470
|
...pe,
|
|
3469
3471
|
transform: Math.round
|
|
3470
3472
|
}, Si = {
|
|
3473
|
+
...ru,
|
|
3471
3474
|
...su,
|
|
3472
|
-
...ou,
|
|
3473
3475
|
zIndex: pr,
|
|
3474
3476
|
size: L,
|
|
3475
3477
|
// SVG
|
|
3476
3478
|
fillOpacity: Le,
|
|
3477
3479
|
strokeOpacity: Le,
|
|
3478
3480
|
numOctaves: pr
|
|
3479
|
-
},
|
|
3481
|
+
}, ou = {
|
|
3480
3482
|
x: "translateX",
|
|
3481
3483
|
y: "translateY",
|
|
3482
3484
|
z: "translateZ",
|
|
3483
3485
|
transformPerspective: "perspective"
|
|
3484
|
-
},
|
|
3485
|
-
function
|
|
3486
|
+
}, au = he.length;
|
|
3487
|
+
function lu(t, e, n) {
|
|
3486
3488
|
let i = "", r = !0;
|
|
3487
|
-
for (let o = 0; o <
|
|
3489
|
+
for (let o = 0; o < au; o++) {
|
|
3488
3490
|
const s = he[o], a = t[s];
|
|
3489
3491
|
if (a === void 0)
|
|
3490
3492
|
continue;
|
|
@@ -3493,7 +3495,7 @@ function cu(t, e, n) {
|
|
|
3493
3495
|
const c = io(a, Si[s]);
|
|
3494
3496
|
if (!l) {
|
|
3495
3497
|
r = !1;
|
|
3496
|
-
const u =
|
|
3498
|
+
const u = ou[s] || s;
|
|
3497
3499
|
i += `${u}(${c}) `;
|
|
3498
3500
|
}
|
|
3499
3501
|
n && (e[s] = c);
|
|
@@ -3517,7 +3519,7 @@ function wi(t, e, n) {
|
|
|
3517
3519
|
l.startsWith("origin") ? (a = !0, o[l] = u) : i[l] = u;
|
|
3518
3520
|
}
|
|
3519
3521
|
}
|
|
3520
|
-
if (e.transform || (s || n ? i.transform =
|
|
3522
|
+
if (e.transform || (s || n ? i.transform = lu(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
|
|
3521
3523
|
const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
|
|
3522
3524
|
i.transformOrigin = `${l} ${c} ${u}`;
|
|
3523
3525
|
}
|
|
@@ -3532,21 +3534,21 @@ function ro(t, e, n) {
|
|
|
3532
3534
|
for (const i in e)
|
|
3533
3535
|
!nt(e[i]) && !no(i, n) && (t[i] = e[i]);
|
|
3534
3536
|
}
|
|
3535
|
-
function
|
|
3537
|
+
function cu({ transformTemplate: t }, e) {
|
|
3536
3538
|
return dn(() => {
|
|
3537
3539
|
const n = Ti();
|
|
3538
3540
|
return wi(n, e, t), Object.assign({}, n.vars, n.style);
|
|
3539
3541
|
}, [e]);
|
|
3540
3542
|
}
|
|
3541
|
-
function
|
|
3543
|
+
function uu(t, e) {
|
|
3542
3544
|
const n = t.style || {}, i = {};
|
|
3543
|
-
return ro(i, n, t), Object.assign(i,
|
|
3545
|
+
return ro(i, n, t), Object.assign(i, cu(t, e)), i;
|
|
3544
3546
|
}
|
|
3545
|
-
function
|
|
3546
|
-
const n = {}, i =
|
|
3547
|
+
function fu(t, e) {
|
|
3548
|
+
const n = {}, i = uu(t, e);
|
|
3547
3549
|
return t.drag && t.dragListener !== !1 && (n.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = i, n;
|
|
3548
3550
|
}
|
|
3549
|
-
const
|
|
3551
|
+
const du = [
|
|
3550
3552
|
"animate",
|
|
3551
3553
|
"circle",
|
|
3552
3554
|
"defs",
|
|
@@ -3586,23 +3588,23 @@ function Ci(t) {
|
|
|
3586
3588
|
/**
|
|
3587
3589
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
3588
3590
|
*/
|
|
3589
|
-
!!(
|
|
3591
|
+
!!(du.indexOf(t) > -1 || /**
|
|
3590
3592
|
* If it contains a capital letter, it's an SVG component
|
|
3591
3593
|
*/
|
|
3592
3594
|
/[A-Z]/u.test(t))
|
|
3593
3595
|
)
|
|
3594
3596
|
);
|
|
3595
3597
|
}
|
|
3596
|
-
const
|
|
3598
|
+
const hu = {
|
|
3597
3599
|
offset: "stroke-dashoffset",
|
|
3598
3600
|
array: "stroke-dasharray"
|
|
3599
|
-
},
|
|
3601
|
+
}, pu = {
|
|
3600
3602
|
offset: "strokeDashoffset",
|
|
3601
3603
|
array: "strokeDasharray"
|
|
3602
3604
|
};
|
|
3603
|
-
function
|
|
3605
|
+
function mu(t, e, n = 1, i = 0, r = !0) {
|
|
3604
3606
|
t.pathLength = 1;
|
|
3605
|
-
const o = r ?
|
|
3607
|
+
const o = r ? hu : pu;
|
|
3606
3608
|
t[o.offset] = L.transform(-i);
|
|
3607
3609
|
const s = L.transform(e), a = L.transform(n);
|
|
3608
3610
|
t[o.array] = `${s} ${a}`;
|
|
@@ -3610,7 +3612,7 @@ function gu(t, e, n = 1, i = 0, r = !0) {
|
|
|
3610
3612
|
function mr(t, e, n) {
|
|
3611
3613
|
return typeof t == "string" ? t : L.transform(e + n * t);
|
|
3612
3614
|
}
|
|
3613
|
-
function
|
|
3615
|
+
function gu(t, e, n) {
|
|
3614
3616
|
const i = mr(e, t.x, t.width), r = mr(n, t.y, t.height);
|
|
3615
3617
|
return `${i} ${r}`;
|
|
3616
3618
|
}
|
|
@@ -3632,13 +3634,13 @@ function Pi(t, {
|
|
|
3632
3634
|
}
|
|
3633
3635
|
t.attrs = t.style, t.style = {};
|
|
3634
3636
|
const { attrs: d, style: h, dimensions: p } = t;
|
|
3635
|
-
d.transform && (p && (h.transform = d.transform), delete d.transform), p && (r !== void 0 || o !== void 0 || h.transform) && (h.transformOrigin =
|
|
3637
|
+
d.transform && (p && (h.transform = d.transform), delete d.transform), p && (r !== void 0 || o !== void 0 || h.transform) && (h.transformOrigin = gu(p, r !== void 0 ? r : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), s !== void 0 && mu(d, s, a, l, !1);
|
|
3636
3638
|
}
|
|
3637
3639
|
const so = () => ({
|
|
3638
3640
|
...Ti(),
|
|
3639
3641
|
attrs: {}
|
|
3640
3642
|
}), Ai = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
3641
|
-
function
|
|
3643
|
+
function yu(t, e, n, i) {
|
|
3642
3644
|
const r = dn(() => {
|
|
3643
3645
|
const o = so();
|
|
3644
3646
|
return Pi(o, e, Ai(i), t.transformTemplate), {
|
|
@@ -3652,9 +3654,9 @@ function vu(t, e, n, i) {
|
|
|
3652
3654
|
}
|
|
3653
3655
|
return r;
|
|
3654
3656
|
}
|
|
3655
|
-
function
|
|
3657
|
+
function vu(t = !1) {
|
|
3656
3658
|
return (n, i, r, { latestValues: o }, s) => {
|
|
3657
|
-
const l = (Ci(n) ?
|
|
3659
|
+
const l = (Ci(n) ? yu : fu)(i, o, s, n), c = _c(i, typeof n == "string", t), u = n !== Rs ? { ...c, ...l, ref: r } : {}, { children: f } = i, d = dn(() => nt(f) ? f.get() : f, [f]);
|
|
3658
3660
|
return Ea(n, {
|
|
3659
3661
|
...u,
|
|
3660
3662
|
children: d
|
|
@@ -3678,23 +3680,23 @@ function Vi(t, e, n, i) {
|
|
|
3678
3680
|
}
|
|
3679
3681
|
return e;
|
|
3680
3682
|
}
|
|
3681
|
-
const Kn = (t) => Array.isArray(t),
|
|
3683
|
+
const Kn = (t) => Array.isArray(t), xu = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), bu = (t) => Kn(t) ? t[t.length - 1] || 0 : t;
|
|
3682
3684
|
function Je(t) {
|
|
3683
3685
|
const e = nt(t) ? t.get() : t;
|
|
3684
|
-
return
|
|
3686
|
+
return xu(e) ? e.toValue() : e;
|
|
3685
3687
|
}
|
|
3686
|
-
function
|
|
3688
|
+
function Su({ scrapeMotionValuesFromProps: t, createRenderState: e, onUpdate: n }, i, r, o) {
|
|
3687
3689
|
const s = {
|
|
3688
|
-
latestValues:
|
|
3690
|
+
latestValues: wu(i, r, o, t),
|
|
3689
3691
|
renderState: e()
|
|
3690
3692
|
};
|
|
3691
3693
|
return n && (s.onMount = (a) => n({ props: i, current: a, ...s }), s.onUpdate = (a) => n(a)), s;
|
|
3692
3694
|
}
|
|
3693
3695
|
const oo = (t) => (e, n) => {
|
|
3694
|
-
const i = st(vn), r = st(di), o = () =>
|
|
3696
|
+
const i = st(vn), r = st(di), o = () => Su(t, e, i, r);
|
|
3695
3697
|
return n ? o() : Gs(o);
|
|
3696
3698
|
};
|
|
3697
|
-
function
|
|
3699
|
+
function wu(t, e, n, i) {
|
|
3698
3700
|
const r = {}, o = i(t, {});
|
|
3699
3701
|
for (const d in o)
|
|
3700
3702
|
r[d] = Je(o[d]);
|
|
@@ -3732,7 +3734,7 @@ function Ei(t, e, n) {
|
|
|
3732
3734
|
(nt(r[s]) || e.style && nt(e.style[s]) || no(s, t) || ((i = n == null ? void 0 : n.getValue(s)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[s] = r[s]);
|
|
3733
3735
|
return o;
|
|
3734
3736
|
}
|
|
3735
|
-
const
|
|
3737
|
+
const Tu = {
|
|
3736
3738
|
useVisualState: oo({
|
|
3737
3739
|
scrapeMotionValuesFromProps: Ei,
|
|
3738
3740
|
createRenderState: Ti
|
|
@@ -3794,7 +3796,7 @@ function fo(t, e, n) {
|
|
|
3794
3796
|
}
|
|
3795
3797
|
return i;
|
|
3796
3798
|
}
|
|
3797
|
-
const yr = ["x", "y", "width", "height", "cx", "cy", "r"],
|
|
3799
|
+
const yr = ["x", "y", "width", "height", "cx", "cy", "r"], Cu = {
|
|
3798
3800
|
useVisualState: oo({
|
|
3799
3801
|
scrapeMotionValuesFromProps: fo,
|
|
3800
3802
|
createRenderState: so,
|
|
@@ -3825,24 +3827,24 @@ const yr = ["x", "y", "width", "height", "cx", "cy", "r"], Pu = {
|
|
|
3825
3827
|
}
|
|
3826
3828
|
})
|
|
3827
3829
|
};
|
|
3828
|
-
function
|
|
3830
|
+
function Pu(t, e) {
|
|
3829
3831
|
return function(i, { forwardMotionProps: r } = { forwardMotionProps: !1 }) {
|
|
3830
3832
|
const s = {
|
|
3831
|
-
...Ci(i) ?
|
|
3833
|
+
...Ci(i) ? Cu : Tu,
|
|
3832
3834
|
preloadedFeatures: t,
|
|
3833
|
-
useRender:
|
|
3835
|
+
useRender: vu(r),
|
|
3834
3836
|
createVisualElement: e,
|
|
3835
3837
|
Component: i
|
|
3836
3838
|
};
|
|
3837
|
-
return
|
|
3839
|
+
return qc(s);
|
|
3838
3840
|
};
|
|
3839
3841
|
}
|
|
3840
3842
|
function Oe(t, e, n) {
|
|
3841
3843
|
const i = t.getProps();
|
|
3842
3844
|
return Vi(i, e, n !== void 0 ? n : i.custom, t);
|
|
3843
3845
|
}
|
|
3844
|
-
const
|
|
3845
|
-
class
|
|
3846
|
+
const Au = /* @__PURE__ */ pi(() => window.ScrollTimeline !== void 0);
|
|
3847
|
+
class Vu {
|
|
3846
3848
|
constructor(e) {
|
|
3847
3849
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
3848
3850
|
}
|
|
@@ -3861,7 +3863,7 @@ class Eu {
|
|
|
3861
3863
|
}
|
|
3862
3864
|
attachTimeline(e, n) {
|
|
3863
3865
|
const i = this.animations.map((r) => {
|
|
3864
|
-
if (
|
|
3866
|
+
if (Au() && r.attachTimeline)
|
|
3865
3867
|
return r.attachTimeline(e);
|
|
3866
3868
|
if (typeof n == "function")
|
|
3867
3869
|
return n(r);
|
|
@@ -3912,7 +3914,7 @@ class Eu {
|
|
|
3912
3914
|
this.runAll("complete");
|
|
3913
3915
|
}
|
|
3914
3916
|
}
|
|
3915
|
-
class
|
|
3917
|
+
class Eu extends Vu {
|
|
3916
3918
|
then(e, n) {
|
|
3917
3919
|
return Promise.all(this.animations).then(e).catch(n);
|
|
3918
3920
|
}
|
|
@@ -3935,17 +3937,17 @@ function Mi(t) {
|
|
|
3935
3937
|
function vr(t, e) {
|
|
3936
3938
|
t.timeline = e, t.onfinish = null;
|
|
3937
3939
|
}
|
|
3938
|
-
const Di = (t) => Array.isArray(t) && typeof t[0] == "number",
|
|
3940
|
+
const Di = (t) => Array.isArray(t) && typeof t[0] == "number", Ru = {
|
|
3939
3941
|
linearEasing: void 0
|
|
3940
3942
|
};
|
|
3941
|
-
function
|
|
3943
|
+
function Mu(t, e) {
|
|
3942
3944
|
const n = /* @__PURE__ */ pi(t);
|
|
3943
3945
|
return () => {
|
|
3944
3946
|
var i;
|
|
3945
|
-
return (i =
|
|
3947
|
+
return (i = Ru[e]) !== null && i !== void 0 ? i : n();
|
|
3946
3948
|
};
|
|
3947
3949
|
}
|
|
3948
|
-
const on = /* @__PURE__ */
|
|
3950
|
+
const on = /* @__PURE__ */ Mu(() => {
|
|
3949
3951
|
try {
|
|
3950
3952
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
3951
3953
|
} catch {
|
|
@@ -4006,7 +4008,7 @@ function xo(t, e) {
|
|
|
4006
4008
|
function xr(t) {
|
|
4007
4009
|
return !(t.pointerType === "touch" || yo());
|
|
4008
4010
|
}
|
|
4009
|
-
function
|
|
4011
|
+
function Du(t, e, n = {}) {
|
|
4010
4012
|
const [i, r, o] = xo(t, n), s = (a) => {
|
|
4011
4013
|
if (!xr(a))
|
|
4012
4014
|
return;
|
|
@@ -4030,15 +4032,15 @@ function an(t, e) {
|
|
|
4030
4032
|
} catch {
|
|
4031
4033
|
}
|
|
4032
4034
|
}
|
|
4033
|
-
const bo = (t, e) => e ? t === e ? !0 : bo(t, e.parentElement) : !1, Li = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1,
|
|
4035
|
+
const bo = (t, e) => e ? t === e ? !0 : bo(t, e.parentElement) : !1, Li = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Lu = /* @__PURE__ */ new Set([
|
|
4034
4036
|
"BUTTON",
|
|
4035
4037
|
"INPUT",
|
|
4036
4038
|
"SELECT",
|
|
4037
4039
|
"TEXTAREA",
|
|
4038
4040
|
"A"
|
|
4039
4041
|
]);
|
|
4040
|
-
function
|
|
4041
|
-
return
|
|
4042
|
+
function Ou(t) {
|
|
4043
|
+
return Lu.has(t.tagName) || t.tabIndex !== -1;
|
|
4042
4044
|
}
|
|
4043
4045
|
const xe = /* @__PURE__ */ new WeakSet();
|
|
4044
4046
|
function br(t) {
|
|
@@ -4049,7 +4051,7 @@ function br(t) {
|
|
|
4049
4051
|
function En(t, e) {
|
|
4050
4052
|
t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
|
|
4051
4053
|
}
|
|
4052
|
-
const
|
|
4054
|
+
const ku = (t, e) => {
|
|
4053
4055
|
const n = t.currentTarget;
|
|
4054
4056
|
if (!n)
|
|
4055
4057
|
return;
|
|
@@ -4067,7 +4069,7 @@ const Fu = (t, e) => {
|
|
|
4067
4069
|
function Sr(t) {
|
|
4068
4070
|
return Li(t) && !yo();
|
|
4069
4071
|
}
|
|
4070
|
-
function
|
|
4072
|
+
function Fu(t, e, n = {}) {
|
|
4071
4073
|
const [i, r, o] = xo(t, n), s = (a) => {
|
|
4072
4074
|
const l = a.currentTarget;
|
|
4073
4075
|
if (!l || !Sr(a) || xe.has(l))
|
|
@@ -4076,7 +4078,7 @@ function Iu(t, e, n = {}) {
|
|
|
4076
4078
|
const c = e(l, a), u = (h, p) => {
|
|
4077
4079
|
l.removeEventListener("pointerup", f), l.removeEventListener("pointercancel", d), an(h, "release"), !(!Sr(h) || !xe.has(l)) && (xe.delete(l), typeof c == "function" && c(h, { success: p }));
|
|
4078
4080
|
}, f = (h) => {
|
|
4079
|
-
(h.isTrusted ?
|
|
4081
|
+
(h.isTrusted ? Iu(h, l instanceof Element ? l.getBoundingClientRect() : {
|
|
4080
4082
|
left: 0,
|
|
4081
4083
|
top: 0,
|
|
4082
4084
|
right: window.innerWidth,
|
|
@@ -4090,10 +4092,10 @@ function Iu(t, e, n = {}) {
|
|
|
4090
4092
|
return i.forEach((a) => {
|
|
4091
4093
|
a = n.useGlobalTarget ? window : a;
|
|
4092
4094
|
let l = !1;
|
|
4093
|
-
a instanceof HTMLElement && (l = !0, !
|
|
4095
|
+
a instanceof HTMLElement && (l = !0, !Ou(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0)), a.addEventListener("pointerdown", s, r), l && a.addEventListener("focus", (c) => ku(c, r), r);
|
|
4094
4096
|
}), o;
|
|
4095
4097
|
}
|
|
4096
|
-
function
|
|
4098
|
+
function Iu(t, e) {
|
|
4097
4099
|
return t.clientX < e.left || t.clientX > e.right || t.clientY < e.top || t.clientY > e.bottom;
|
|
4098
4100
|
}
|
|
4099
4101
|
function Bu(t) {
|
|
@@ -4113,13 +4115,13 @@ const So = /* @__PURE__ */ new Set([
|
|
|
4113
4115
|
...he
|
|
4114
4116
|
]);
|
|
4115
4117
|
let Qe;
|
|
4116
|
-
function
|
|
4118
|
+
function $u() {
|
|
4117
4119
|
Qe = void 0;
|
|
4118
4120
|
}
|
|
4119
4121
|
const Mt = {
|
|
4120
|
-
now: () => (Qe === void 0 && Mt.set(Z.isProcessing ||
|
|
4122
|
+
now: () => (Qe === void 0 && Mt.set(Z.isProcessing || kc.useManualTiming ? Z.timestamp : performance.now()), Qe),
|
|
4121
4123
|
set: (t) => {
|
|
4122
|
-
Qe = t, queueMicrotask(
|
|
4124
|
+
Qe = t, queueMicrotask($u);
|
|
4123
4125
|
}
|
|
4124
4126
|
};
|
|
4125
4127
|
function Oi(t, e) {
|
|
@@ -4157,8 +4159,8 @@ class Fi {
|
|
|
4157
4159
|
function wo(t, e) {
|
|
4158
4160
|
return e ? t * (1e3 / e) : 0;
|
|
4159
4161
|
}
|
|
4160
|
-
const wr = 30,
|
|
4161
|
-
class
|
|
4162
|
+
const wr = 30, ju = (t) => !isNaN(parseFloat(t));
|
|
4163
|
+
class _u {
|
|
4162
4164
|
/**
|
|
4163
4165
|
* @param init - The initiating value
|
|
4164
4166
|
* @param config - Optional configuration options
|
|
@@ -4174,7 +4176,7 @@ class Nu {
|
|
|
4174
4176
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
|
4175
4177
|
}
|
|
4176
4178
|
setCurrent(e) {
|
|
4177
|
-
this.current = e, this.updatedAt = Mt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity =
|
|
4179
|
+
this.current = e, this.updatedAt = Mt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = ju(this.current));
|
|
4178
4180
|
}
|
|
4179
4181
|
setPrevFrameValue(e = this.current) {
|
|
4180
4182
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -4353,9 +4355,9 @@ class Nu {
|
|
|
4353
4355
|
}
|
|
4354
4356
|
}
|
|
4355
4357
|
function ke(t, e) {
|
|
4356
|
-
return new
|
|
4358
|
+
return new _u(t, e);
|
|
4357
4359
|
}
|
|
4358
|
-
function
|
|
4360
|
+
function Nu(t, e, n) {
|
|
4359
4361
|
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, ke(n));
|
|
4360
4362
|
}
|
|
4361
4363
|
function Ii(t, e) {
|
|
@@ -4363,44 +4365,44 @@ function Ii(t, e) {
|
|
|
4363
4365
|
let { transitionEnd: i = {}, transition: r = {}, ...o } = n || {};
|
|
4364
4366
|
o = { ...o, ...i };
|
|
4365
4367
|
for (const s in o) {
|
|
4366
|
-
const a =
|
|
4367
|
-
|
|
4368
|
+
const a = bu(o[s]);
|
|
4369
|
+
Nu(t, s, a);
|
|
4368
4370
|
}
|
|
4369
4371
|
}
|
|
4370
|
-
function
|
|
4372
|
+
function Uu(t) {
|
|
4371
4373
|
return !!(nt(t) && t.add);
|
|
4372
4374
|
}
|
|
4373
4375
|
function qn(t, e) {
|
|
4374
4376
|
const n = t.getValue("willChange");
|
|
4375
|
-
if (
|
|
4377
|
+
if (Uu(n))
|
|
4376
4378
|
return n.add(e);
|
|
4377
4379
|
}
|
|
4378
4380
|
function To(t) {
|
|
4379
4381
|
return t.props[Js];
|
|
4380
4382
|
}
|
|
4381
|
-
const Co = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t,
|
|
4382
|
-
function
|
|
4383
|
+
const Co = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, zu = 1e-7, Wu = 12;
|
|
4384
|
+
function Gu(t, e, n, i, r) {
|
|
4383
4385
|
let o, s, a = 0;
|
|
4384
4386
|
do
|
|
4385
4387
|
s = e + (n - e) / 2, o = Co(s, i, r) - t, o > 0 ? n = s : e = s;
|
|
4386
|
-
while (Math.abs(o) >
|
|
4388
|
+
while (Math.abs(o) > zu && ++a < Wu);
|
|
4387
4389
|
return s;
|
|
4388
4390
|
}
|
|
4389
4391
|
function je(t, e, n, i) {
|
|
4390
4392
|
if (t === e && n === i)
|
|
4391
4393
|
return ft;
|
|
4392
|
-
const r = (o) =>
|
|
4394
|
+
const r = (o) => Gu(o, 0, 1, t, n);
|
|
4393
4395
|
return (o) => o === 0 || o === 1 ? o : Co(r(o), e, i);
|
|
4394
4396
|
}
|
|
4395
|
-
const Po = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ao = (t) => (e) => 1 - t(1 - e), Vo = /* @__PURE__ */ je(0.33, 1.53, 0.69, 0.99),
|
|
4396
|
-
function
|
|
4397
|
+
const Po = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ao = (t) => (e) => 1 - t(1 - e), Vo = /* @__PURE__ */ je(0.33, 1.53, 0.69, 0.99), Bi = /* @__PURE__ */ Ao(Vo), Eo = /* @__PURE__ */ Po(Bi), Ro = (t) => (t *= 2) < 1 ? 0.5 * Bi(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), $i = (t) => 1 - Math.sin(Math.acos(t)), Mo = Ao($i), Do = Po($i), Lo = (t) => /^0[^.\s]+$/u.test(t);
|
|
4398
|
+
function Ku(t) {
|
|
4397
4399
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Lo(t) : !0;
|
|
4398
4400
|
}
|
|
4399
4401
|
const we = (t) => Math.round(t * 1e5) / 1e5, ji = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
4400
|
-
function
|
|
4402
|
+
function Hu(t) {
|
|
4401
4403
|
return t == null;
|
|
4402
4404
|
}
|
|
4403
|
-
const
|
|
4405
|
+
const Yu = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, _i = (t, e) => (n) => !!(typeof n == "string" && Yu.test(n) && n.startsWith(t) || e && !Hu(n) && Object.prototype.hasOwnProperty.call(n, e)), Oo = (t, e, n) => (i) => {
|
|
4404
4406
|
if (typeof i != "string")
|
|
4405
4407
|
return i;
|
|
4406
4408
|
const [r, o, s, a] = i.match(ji);
|
|
@@ -4410,15 +4412,15 @@ const qu = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
4410
4412
|
[n]: parseFloat(s),
|
|
4411
4413
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
4412
4414
|
};
|
|
4413
|
-
},
|
|
4415
|
+
}, qu = (t) => kt(0, 255, t), Rn = {
|
|
4414
4416
|
...pe,
|
|
4415
|
-
transform: (t) => Math.round(
|
|
4417
|
+
transform: (t) => Math.round(qu(t))
|
|
4416
4418
|
}, qt = {
|
|
4417
4419
|
test: /* @__PURE__ */ _i("rgb", "red"),
|
|
4418
4420
|
parse: /* @__PURE__ */ Oo("red", "green", "blue"),
|
|
4419
4421
|
transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + Rn.transform(t) + ", " + Rn.transform(e) + ", " + Rn.transform(n) + ", " + we(Le.transform(i)) + ")"
|
|
4420
4422
|
};
|
|
4421
|
-
function
|
|
4423
|
+
function Xu(t) {
|
|
4422
4424
|
let e = "", n = "", i = "", r = "";
|
|
4423
4425
|
return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), i = t.substring(5, 7), r = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), i = t.substring(3, 4), r = t.substring(4, 5), e += e, n += n, i += i, r += r), {
|
|
4424
4426
|
red: parseInt(e, 16),
|
|
@@ -4429,7 +4431,7 @@ function Zu(t) {
|
|
|
4429
4431
|
}
|
|
4430
4432
|
const Xn = {
|
|
4431
4433
|
test: /* @__PURE__ */ _i("#"),
|
|
4432
|
-
parse:
|
|
4434
|
+
parse: Xu,
|
|
4433
4435
|
transform: qt.transform
|
|
4434
4436
|
}, Qt = {
|
|
4435
4437
|
test: /* @__PURE__ */ _i("hsl", "hue"),
|
|
@@ -4439,12 +4441,12 @@ const Xn = {
|
|
|
4439
4441
|
test: (t) => qt.test(t) || Xn.test(t) || Qt.test(t),
|
|
4440
4442
|
parse: (t) => qt.test(t) ? qt.parse(t) : Qt.test(t) ? Qt.parse(t) : Xn.parse(t),
|
|
4441
4443
|
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? qt.transform(t) : Qt.transform(t)
|
|
4442
|
-
},
|
|
4443
|
-
function
|
|
4444
|
+
}, Zu = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
4445
|
+
function Ju(t) {
|
|
4444
4446
|
var e, n;
|
|
4445
|
-
return isNaN(t) && typeof t == "string" && (((e = t.match(ji)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(
|
|
4447
|
+
return isNaN(t) && typeof t == "string" && (((e = t.match(ji)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Zu)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
4446
4448
|
}
|
|
4447
|
-
const ko = "number", Fo = "color",
|
|
4449
|
+
const ko = "number", Fo = "color", Qu = "var", tf = "var(", Tr = "${}", ef = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
4448
4450
|
function Fe(t) {
|
|
4449
4451
|
const e = t.toString(), n = [], i = {
|
|
4450
4452
|
color: [],
|
|
@@ -4452,13 +4454,13 @@ function Fe(t) {
|
|
|
4452
4454
|
var: []
|
|
4453
4455
|
}, r = [];
|
|
4454
4456
|
let o = 0;
|
|
4455
|
-
const a = e.replace(
|
|
4457
|
+
const a = e.replace(ef, (l) => (et.test(l) ? (i.color.push(o), r.push(Fo), n.push(et.parse(l))) : l.startsWith(tf) ? (i.var.push(o), r.push(Qu), n.push(l)) : (i.number.push(o), r.push(ko), n.push(parseFloat(l))), ++o, Tr)).split(Tr);
|
|
4456
4458
|
return { values: n, split: a, indexes: i, types: r };
|
|
4457
4459
|
}
|
|
4458
4460
|
function Io(t) {
|
|
4459
4461
|
return Fe(t).values;
|
|
4460
4462
|
}
|
|
4461
|
-
function
|
|
4463
|
+
function Bo(t) {
|
|
4462
4464
|
const { split: e, types: n } = Fe(t), i = e.length;
|
|
4463
4465
|
return (r) => {
|
|
4464
4466
|
let o = "";
|
|
@@ -4470,18 +4472,18 @@ function $o(t) {
|
|
|
4470
4472
|
return o;
|
|
4471
4473
|
};
|
|
4472
4474
|
}
|
|
4473
|
-
const
|
|
4474
|
-
function
|
|
4475
|
+
const nf = (t) => typeof t == "number" ? 0 : t;
|
|
4476
|
+
function rf(t) {
|
|
4475
4477
|
const e = Io(t);
|
|
4476
|
-
return
|
|
4478
|
+
return Bo(t)(e.map(nf));
|
|
4477
4479
|
}
|
|
4478
4480
|
const Ut = {
|
|
4479
|
-
test:
|
|
4481
|
+
test: Ju,
|
|
4480
4482
|
parse: Io,
|
|
4481
|
-
createTransformer:
|
|
4482
|
-
getAnimatableNone:
|
|
4483
|
-
},
|
|
4484
|
-
function
|
|
4483
|
+
createTransformer: Bo,
|
|
4484
|
+
getAnimatableNone: rf
|
|
4485
|
+
}, sf = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
4486
|
+
function of(t) {
|
|
4485
4487
|
const [e, n] = t.slice(0, -1).split("(");
|
|
4486
4488
|
if (e === "drop-shadow")
|
|
4487
4489
|
return t;
|
|
@@ -4489,16 +4491,16 @@ function af(t) {
|
|
|
4489
4491
|
if (!i)
|
|
4490
4492
|
return t;
|
|
4491
4493
|
const r = n.replace(i, "");
|
|
4492
|
-
let o =
|
|
4494
|
+
let o = sf.has(e) ? 1 : 0;
|
|
4493
4495
|
return i !== n && (o *= 100), e + "(" + o + r + ")";
|
|
4494
4496
|
}
|
|
4495
|
-
const
|
|
4497
|
+
const af = /\b([a-z-]*)\(.*?\)/gu, Zn = {
|
|
4496
4498
|
...Ut,
|
|
4497
4499
|
getAnimatableNone: (t) => {
|
|
4498
|
-
const e = t.match(
|
|
4499
|
-
return e ? e.map(
|
|
4500
|
+
const e = t.match(af);
|
|
4501
|
+
return e ? e.map(of).join(" ") : t;
|
|
4500
4502
|
}
|
|
4501
|
-
},
|
|
4503
|
+
}, lf = {
|
|
4502
4504
|
...Si,
|
|
4503
4505
|
// Color props
|
|
4504
4506
|
color: et,
|
|
@@ -4514,21 +4516,21 @@ const lf = /\b([a-z-]*)\(.*?\)/gu, Zn = {
|
|
|
4514
4516
|
borderLeftColor: et,
|
|
4515
4517
|
filter: Zn,
|
|
4516
4518
|
WebkitFilter: Zn
|
|
4517
|
-
}, Ni = (t) =>
|
|
4518
|
-
function
|
|
4519
|
+
}, Ni = (t) => lf[t];
|
|
4520
|
+
function $o(t, e) {
|
|
4519
4521
|
let n = Ni(t);
|
|
4520
4522
|
return n !== Zn && (n = Ut), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
4521
4523
|
}
|
|
4522
|
-
const
|
|
4523
|
-
function
|
|
4524
|
+
const cf = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
4525
|
+
function uf(t, e, n) {
|
|
4524
4526
|
let i = 0, r;
|
|
4525
4527
|
for (; i < t.length && !r; ) {
|
|
4526
4528
|
const o = t[i];
|
|
4527
|
-
typeof o == "string" && !
|
|
4529
|
+
typeof o == "string" && !cf.has(o) && Fe(o).values.length && (r = t[i]), i++;
|
|
4528
4530
|
}
|
|
4529
4531
|
if (r && n)
|
|
4530
4532
|
for (const o of e)
|
|
4531
|
-
t[o] =
|
|
4533
|
+
t[o] = $o(n, r);
|
|
4532
4534
|
}
|
|
4533
4535
|
const Cr = (t) => t === pe || t === L, Pr = (t, e) => parseFloat(t.split(", ")[e]), Ar = (t, e) => (n, { transform: i }) => {
|
|
4534
4536
|
if (i === "none" || !i)
|
|
@@ -4540,10 +4542,10 @@ const Cr = (t) => t === pe || t === L, Pr = (t, e) => parseFloat(t.split(", ")[e
|
|
|
4540
4542
|
const o = i.match(/^matrix\((.+)\)$/u);
|
|
4541
4543
|
return o ? Pr(o[1], t) : 0;
|
|
4542
4544
|
}
|
|
4543
|
-
},
|
|
4544
|
-
function
|
|
4545
|
+
}, ff = /* @__PURE__ */ new Set(["x", "y", "z"]), df = he.filter((t) => !ff.has(t));
|
|
4546
|
+
function hf(t) {
|
|
4545
4547
|
const e = [];
|
|
4546
|
-
return
|
|
4548
|
+
return df.forEach((n) => {
|
|
4547
4549
|
const i = t.getValue(n);
|
|
4548
4550
|
i !== void 0 && (e.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
|
|
4549
4551
|
}), e;
|
|
@@ -4568,7 +4570,7 @@ function jo() {
|
|
|
4568
4570
|
if (Qn) {
|
|
4569
4571
|
const t = Array.from(Xt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
|
|
4570
4572
|
e.forEach((i) => {
|
|
4571
|
-
const r =
|
|
4573
|
+
const r = hf(i);
|
|
4572
4574
|
r.length && (n.set(i, r), i.render());
|
|
4573
4575
|
}), t.forEach((i) => i.measureInitialState()), e.forEach((i) => {
|
|
4574
4576
|
i.render();
|
|
@@ -4588,7 +4590,7 @@ function _o() {
|
|
|
4588
4590
|
t.readKeyframes(), t.needsMeasurement && (Qn = !0);
|
|
4589
4591
|
});
|
|
4590
4592
|
}
|
|
4591
|
-
function
|
|
4593
|
+
function pf() {
|
|
4592
4594
|
_o(), jo();
|
|
4593
4595
|
}
|
|
4594
4596
|
class Ui {
|
|
@@ -4632,21 +4634,21 @@ class Ui {
|
|
|
4632
4634
|
this.isComplete || this.scheduleResolve();
|
|
4633
4635
|
}
|
|
4634
4636
|
}
|
|
4635
|
-
const No = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),
|
|
4637
|
+
const No = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), mf = (
|
|
4636
4638
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
4637
4639
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
4638
4640
|
);
|
|
4639
|
-
function
|
|
4640
|
-
const e =
|
|
4641
|
+
function gf(t) {
|
|
4642
|
+
const e = mf.exec(t);
|
|
4641
4643
|
if (!e)
|
|
4642
4644
|
return [,];
|
|
4643
4645
|
const [, n, i, r] = e;
|
|
4644
4646
|
return [`--${n ?? i}`, r];
|
|
4645
4647
|
}
|
|
4646
|
-
const
|
|
4648
|
+
const yf = 4;
|
|
4647
4649
|
function Uo(t, e, n = 1) {
|
|
4648
|
-
Dt(n <=
|
|
4649
|
-
const [i, r] =
|
|
4650
|
+
Dt(n <= yf, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
|
|
4651
|
+
const [i, r] = gf(t);
|
|
4650
4652
|
if (!i)
|
|
4651
4653
|
return;
|
|
4652
4654
|
const o = window.getComputedStyle(e).getPropertyValue(i);
|
|
@@ -4656,10 +4658,10 @@ function Uo(t, e, n = 1) {
|
|
|
4656
4658
|
}
|
|
4657
4659
|
return bi(r) ? Uo(r, e, n + 1) : r;
|
|
4658
4660
|
}
|
|
4659
|
-
const zo = (t) => (e) => e.test(t),
|
|
4661
|
+
const zo = (t) => (e) => e.test(t), vf = {
|
|
4660
4662
|
test: (t) => t === "auto",
|
|
4661
4663
|
parse: (t) => t
|
|
4662
|
-
}, Wo = [pe, L, Rt, jt,
|
|
4664
|
+
}, Wo = [pe, L, Rt, jt, iu, nu, vf], Vr = (t) => Wo.find(zo(t));
|
|
4663
4665
|
class Go extends Ui {
|
|
4664
4666
|
constructor(e, n, i, r, o) {
|
|
4665
4667
|
super(e, n, i, r, o, !0);
|
|
@@ -4691,8 +4693,8 @@ class Go extends Ui {
|
|
|
4691
4693
|
resolveNoneKeyframes() {
|
|
4692
4694
|
const { unresolvedKeyframes: e, name: n } = this, i = [];
|
|
4693
4695
|
for (let r = 0; r < e.length; r++)
|
|
4694
|
-
|
|
4695
|
-
i.length &&
|
|
4696
|
+
Ku(e[r]) && i.push(r);
|
|
4697
|
+
i.length && uf(e, i, n);
|
|
4696
4698
|
}
|
|
4697
4699
|
measureInitialState() {
|
|
4698
4700
|
const { element: e, unresolvedKeyframes: n, name: i } = this;
|
|
@@ -4718,7 +4720,7 @@ class Go extends Ui {
|
|
|
4718
4720
|
const Er = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
4719
4721
|
(Ut.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
4720
4722
|
!t.startsWith("url("));
|
|
4721
|
-
function
|
|
4723
|
+
function xf(t) {
|
|
4722
4724
|
const e = t[0];
|
|
4723
4725
|
if (t.length === 1)
|
|
4724
4726
|
return !0;
|
|
@@ -4726,21 +4728,21 @@ function bf(t) {
|
|
|
4726
4728
|
if (t[n] !== e)
|
|
4727
4729
|
return !0;
|
|
4728
4730
|
}
|
|
4729
|
-
function
|
|
4731
|
+
function bf(t, e, n, i) {
|
|
4730
4732
|
const r = t[0];
|
|
4731
4733
|
if (r === null)
|
|
4732
4734
|
return !1;
|
|
4733
4735
|
if (e === "display" || e === "visibility")
|
|
4734
4736
|
return !0;
|
|
4735
4737
|
const o = t[t.length - 1], s = Er(r, e), a = Er(o, e);
|
|
4736
|
-
return de(s === a, `You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`), !s || !a ? !1 :
|
|
4738
|
+
return de(s === a, `You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`), !s || !a ? !1 : xf(t) || (n === "spring" || Mi(n)) && i;
|
|
4737
4739
|
}
|
|
4738
|
-
const
|
|
4740
|
+
const Sf = (t) => t !== null;
|
|
4739
4741
|
function Sn(t, { repeat: e, repeatType: n = "loop" }, i) {
|
|
4740
|
-
const r = t.filter(
|
|
4742
|
+
const r = t.filter(Sf), o = e && n !== "loop" && e % 2 === 1 ? 0 : r.length - 1;
|
|
4741
4743
|
return !o || i === void 0 ? r[o] : i;
|
|
4742
4744
|
}
|
|
4743
|
-
const
|
|
4745
|
+
const wf = 40;
|
|
4744
4746
|
class Ko {
|
|
4745
4747
|
constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: s = "loop", ...a }) {
|
|
4746
4748
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = Mt.now(), this.options = {
|
|
@@ -4764,7 +4766,7 @@ class Ko {
|
|
|
4764
4766
|
* to avoid a sudden jump into the animation.
|
|
4765
4767
|
*/
|
|
4766
4768
|
calcStartTime() {
|
|
4767
|
-
return this.resolvedAt ? this.resolvedAt - this.createdAt >
|
|
4769
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > wf ? this.resolvedAt : this.createdAt : this.createdAt;
|
|
4768
4770
|
}
|
|
4769
4771
|
/**
|
|
4770
4772
|
* A getter for resolved data. If keyframes are not yet resolved, accessing
|
|
@@ -4772,7 +4774,7 @@ class Ko {
|
|
|
4772
4774
|
* This is a deoptimisation, but at its worst still batches read/writes.
|
|
4773
4775
|
*/
|
|
4774
4776
|
get resolved() {
|
|
4775
|
-
return !this._resolved && !this.hasAttemptedResolve &&
|
|
4777
|
+
return !this._resolved && !this.hasAttemptedResolve && pf(), this._resolved;
|
|
4776
4778
|
}
|
|
4777
4779
|
/**
|
|
4778
4780
|
* A method to be called when the keyframes resolver completes. This method
|
|
@@ -4782,7 +4784,7 @@ class Ko {
|
|
|
4782
4784
|
onKeyframesResolved(e, n) {
|
|
4783
4785
|
this.resolvedAt = Mt.now(), this.hasAttemptedResolve = !0;
|
|
4784
4786
|
const { name: i, type: r, velocity: o, delay: s, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
|
|
4785
|
-
if (!c && !
|
|
4787
|
+
if (!c && !bf(e, i, r, o))
|
|
4786
4788
|
if (s)
|
|
4787
4789
|
this.options.duration = 0;
|
|
4788
4790
|
else {
|
|
@@ -4819,7 +4821,7 @@ const K = (t, e, n) => t + (e - t) * n;
|
|
|
4819
4821
|
function Mn(t, e, n) {
|
|
4820
4822
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
|
|
4821
4823
|
}
|
|
4822
|
-
function
|
|
4824
|
+
function Tf({ hue: t, saturation: e, lightness: n, alpha: i }) {
|
|
4823
4825
|
t /= 360, e /= 100, n /= 100;
|
|
4824
4826
|
let r = 0, o = 0, s = 0;
|
|
4825
4827
|
if (!e)
|
|
@@ -4841,13 +4843,13 @@ function ln(t, e) {
|
|
|
4841
4843
|
const Dn = (t, e, n) => {
|
|
4842
4844
|
const i = t * t, r = n * (e * e - i) + i;
|
|
4843
4845
|
return r < 0 ? 0 : Math.sqrt(r);
|
|
4844
|
-
},
|
|
4846
|
+
}, Cf = [Xn, qt, Qt], Pf = (t) => Cf.find((e) => e.test(t));
|
|
4845
4847
|
function Rr(t) {
|
|
4846
|
-
const e =
|
|
4848
|
+
const e = Pf(t);
|
|
4847
4849
|
if (de(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
4848
4850
|
return !1;
|
|
4849
4851
|
let n = e.parse(t);
|
|
4850
|
-
return e === Qt && (n =
|
|
4852
|
+
return e === Qt && (n = Tf(n)), n;
|
|
4851
4853
|
}
|
|
4852
4854
|
const Mr = (t, e) => {
|
|
4853
4855
|
const n = Rr(t), i = Rr(e);
|
|
@@ -4855,15 +4857,15 @@ const Mr = (t, e) => {
|
|
|
4855
4857
|
return ln(t, e);
|
|
4856
4858
|
const r = { ...n };
|
|
4857
4859
|
return (o) => (r.red = Dn(n.red, i.red, o), r.green = Dn(n.green, i.green, o), r.blue = Dn(n.blue, i.blue, o), r.alpha = K(n.alpha, i.alpha, o), qt.transform(r));
|
|
4858
|
-
},
|
|
4859
|
-
function
|
|
4860
|
+
}, Af = (t, e) => (n) => e(t(n)), _e = (...t) => t.reduce(Af), ti = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
4861
|
+
function Vf(t, e) {
|
|
4860
4862
|
return ti.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
4861
4863
|
}
|
|
4862
|
-
function
|
|
4864
|
+
function Ef(t, e) {
|
|
4863
4865
|
return (n) => K(t, e, n);
|
|
4864
4866
|
}
|
|
4865
4867
|
function zi(t) {
|
|
4866
|
-
return typeof t == "number" ?
|
|
4868
|
+
return typeof t == "number" ? Ef : typeof t == "string" ? bi(t) ? ln : et.test(t) ? Mr : Df : Array.isArray(t) ? Ho : typeof t == "object" ? et.test(t) ? Mr : Rf : ln;
|
|
4867
4869
|
}
|
|
4868
4870
|
function Ho(t, e) {
|
|
4869
4871
|
const n = [...t], i = n.length, r = t.map((o, s) => zi(o)(o, e[s]));
|
|
@@ -4873,7 +4875,7 @@ function Ho(t, e) {
|
|
|
4873
4875
|
return n;
|
|
4874
4876
|
};
|
|
4875
4877
|
}
|
|
4876
|
-
function
|
|
4878
|
+
function Rf(t, e) {
|
|
4877
4879
|
const n = { ...t, ...e }, i = {};
|
|
4878
4880
|
for (const r in n)
|
|
4879
4881
|
t[r] !== void 0 && e[r] !== void 0 && (i[r] = zi(t[r])(t[r], e[r]));
|
|
@@ -4883,7 +4885,7 @@ function Mf(t, e) {
|
|
|
4883
4885
|
return n;
|
|
4884
4886
|
};
|
|
4885
4887
|
}
|
|
4886
|
-
function
|
|
4888
|
+
function Mf(t, e) {
|
|
4887
4889
|
var n;
|
|
4888
4890
|
const i = [], r = { color: 0, var: 0, number: 0 };
|
|
4889
4891
|
for (let o = 0; o < e.values.length; o++) {
|
|
@@ -4892,16 +4894,16 @@ function Df(t, e) {
|
|
|
4892
4894
|
}
|
|
4893
4895
|
return i;
|
|
4894
4896
|
}
|
|
4895
|
-
const
|
|
4897
|
+
const Df = (t, e) => {
|
|
4896
4898
|
const n = Ut.createTransformer(e), i = Fe(t), r = Fe(e);
|
|
4897
|
-
return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? ti.has(t) && !r.values.length || ti.has(e) && !i.values.length ?
|
|
4899
|
+
return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? ti.has(t) && !r.values.length || ti.has(e) && !i.values.length ? Vf(t, e) : _e(Ho(Mf(i, r), r.values), n) : (de(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), ln(t, e));
|
|
4898
4900
|
};
|
|
4899
4901
|
function Yo(t, e, n) {
|
|
4900
4902
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? K(t, e, n) : zi(t)(t, e);
|
|
4901
4903
|
}
|
|
4902
|
-
const
|
|
4904
|
+
const Lf = 5;
|
|
4903
4905
|
function qo(t, e, n) {
|
|
4904
|
-
const i = Math.max(e -
|
|
4906
|
+
const i = Math.max(e - Lf, 0);
|
|
4905
4907
|
return wo(n - t(i), e - i);
|
|
4906
4908
|
}
|
|
4907
4909
|
const G = {
|
|
@@ -4933,7 +4935,7 @@ const G = {
|
|
|
4933
4935
|
minDamping: 0.05,
|
|
4934
4936
|
maxDamping: 1
|
|
4935
4937
|
}, Dr = 1e-3;
|
|
4936
|
-
function
|
|
4938
|
+
function Of({ duration: t = G.duration, bounce: e = G.bounce, velocity: n = G.velocity, mass: i = G.mass }) {
|
|
4937
4939
|
let r, o;
|
|
4938
4940
|
de(t <= /* @__PURE__ */ Et(G.maxDuration), "Spring duration must be 10 seconds or less");
|
|
4939
4941
|
let s = 1 - e;
|
|
@@ -4950,7 +4952,7 @@ function kf({ duration: t = G.duration, bounce: e = G.bounce, velocity: n = G.ve
|
|
|
4950
4952
|
const u = Math.exp(-c * t), f = (n - c) * (t * t);
|
|
4951
4953
|
return u * f;
|
|
4952
4954
|
});
|
|
4953
|
-
const a = 5 / t, l =
|
|
4955
|
+
const a = 5 / t, l = Ff(r, o, a);
|
|
4954
4956
|
if (t = /* @__PURE__ */ Et(t), isNaN(l))
|
|
4955
4957
|
return {
|
|
4956
4958
|
stiffness: G.stiffness,
|
|
@@ -4966,21 +4968,21 @@ function kf({ duration: t = G.duration, bounce: e = G.bounce, velocity: n = G.ve
|
|
|
4966
4968
|
};
|
|
4967
4969
|
}
|
|
4968
4970
|
}
|
|
4969
|
-
const
|
|
4970
|
-
function
|
|
4971
|
+
const kf = 12;
|
|
4972
|
+
function Ff(t, e, n) {
|
|
4971
4973
|
let i = n;
|
|
4972
|
-
for (let r = 1; r <
|
|
4974
|
+
for (let r = 1; r < kf; r++)
|
|
4973
4975
|
i = i - t(i) / e(i);
|
|
4974
4976
|
return i;
|
|
4975
4977
|
}
|
|
4976
4978
|
function ei(t, e) {
|
|
4977
4979
|
return t * Math.sqrt(1 - e * e);
|
|
4978
4980
|
}
|
|
4979
|
-
const
|
|
4981
|
+
const If = ["duration", "bounce"], Bf = ["stiffness", "damping", "mass"];
|
|
4980
4982
|
function Lr(t, e) {
|
|
4981
4983
|
return e.some((n) => t[n] !== void 0);
|
|
4982
4984
|
}
|
|
4983
|
-
function
|
|
4985
|
+
function $f(t) {
|
|
4984
4986
|
let e = {
|
|
4985
4987
|
velocity: G.velocity,
|
|
4986
4988
|
stiffness: G.stiffness,
|
|
@@ -4989,7 +4991,7 @@ function jf(t) {
|
|
|
4989
4991
|
isResolvedFromDuration: !1,
|
|
4990
4992
|
...t
|
|
4991
4993
|
};
|
|
4992
|
-
if (!Lr(t, Bf) && Lr(t,
|
|
4994
|
+
if (!Lr(t, Bf) && Lr(t, If))
|
|
4993
4995
|
if (t.visualDuration) {
|
|
4994
4996
|
const n = t.visualDuration, i = 2 * Math.PI / (n * 1.2), r = i * i, o = 2 * kt(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(r);
|
|
4995
4997
|
e = {
|
|
@@ -4999,7 +5001,7 @@ function jf(t) {
|
|
|
4999
5001
|
damping: o
|
|
5000
5002
|
};
|
|
5001
5003
|
} else {
|
|
5002
|
-
const n =
|
|
5004
|
+
const n = Of(t);
|
|
5003
5005
|
e = {
|
|
5004
5006
|
...e,
|
|
5005
5007
|
...n,
|
|
@@ -5015,7 +5017,7 @@ function Xo(t = G.visualDuration, e = G.bounce) {
|
|
|
5015
5017
|
bounce: e
|
|
5016
5018
|
} : t;
|
|
5017
5019
|
let { restSpeed: i, restDelta: r } = n;
|
|
5018
|
-
const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: f, velocity: d, isResolvedFromDuration: h } =
|
|
5020
|
+
const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: f, velocity: d, isResolvedFromDuration: h } = $f({
|
|
5019
5021
|
...n,
|
|
5020
5022
|
velocity: -/* @__PURE__ */ Ot(n.velocity || 0)
|
|
5021
5023
|
}), p = d || 0, g = c / (2 * Math.sqrt(l * u)), S = s - o, v = /* @__PURE__ */ Ot(Math.sqrt(l / u)), w = Math.abs(S) < 5;
|
|
@@ -5089,15 +5091,15 @@ function Or({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
5089
5091
|
}
|
|
5090
5092
|
};
|
|
5091
5093
|
}
|
|
5092
|
-
const
|
|
5094
|
+
const jf = /* @__PURE__ */ je(0.42, 0, 1, 1), _f = /* @__PURE__ */ je(0, 0, 0.58, 1), Zo = /* @__PURE__ */ je(0.42, 0, 0.58, 1), Nf = (t) => Array.isArray(t) && typeof t[0] != "number", kr = {
|
|
5093
5095
|
linear: ft,
|
|
5094
|
-
easeIn:
|
|
5096
|
+
easeIn: jf,
|
|
5095
5097
|
easeInOut: Zo,
|
|
5096
|
-
easeOut:
|
|
5097
|
-
circIn:
|
|
5098
|
+
easeOut: _f,
|
|
5099
|
+
circIn: $i,
|
|
5098
5100
|
circInOut: Do,
|
|
5099
5101
|
circOut: Mo,
|
|
5100
|
-
backIn:
|
|
5102
|
+
backIn: Bi,
|
|
5101
5103
|
backInOut: Eo,
|
|
5102
5104
|
backOut: Vo,
|
|
5103
5105
|
anticipate: Ro
|
|
@@ -5110,7 +5112,7 @@ const _f = /* @__PURE__ */ je(0.42, 0, 1, 1), Nf = /* @__PURE__ */ je(0, 0, 0.58
|
|
|
5110
5112
|
return Dt(kr[t] !== void 0, `Invalid easing type '${t}'`), kr[t];
|
|
5111
5113
|
return t;
|
|
5112
5114
|
};
|
|
5113
|
-
function
|
|
5115
|
+
function Uf(t, e, n) {
|
|
5114
5116
|
const i = [], r = n || Yo, o = t.length - 1;
|
|
5115
5117
|
for (let s = 0; s < o; s++) {
|
|
5116
5118
|
let a = r(t[s], t[s + 1]);
|
|
@@ -5122,7 +5124,7 @@ function zf(t, e, n) {
|
|
|
5122
5124
|
}
|
|
5123
5125
|
return i;
|
|
5124
5126
|
}
|
|
5125
|
-
function
|
|
5127
|
+
function zf(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
5126
5128
|
const o = t.length;
|
|
5127
5129
|
if (Dt(o === e.length, "Both input and output ranges must be the same length"), o === 1)
|
|
5128
5130
|
return () => e[0];
|
|
@@ -5130,7 +5132,7 @@ function Wf(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
|
5130
5132
|
return () => e[1];
|
|
5131
5133
|
const s = t[0] === t[1];
|
|
5132
5134
|
t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
|
|
5133
|
-
const a =
|
|
5135
|
+
const a = Uf(e, i, r), l = a.length, c = (u) => {
|
|
5134
5136
|
if (s && u < t[0])
|
|
5135
5137
|
return e[0];
|
|
5136
5138
|
let f = 0;
|
|
@@ -5142,41 +5144,41 @@ function Wf(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
|
5142
5144
|
};
|
|
5143
5145
|
return n ? (u) => c(kt(t[0], t[o - 1], u)) : c;
|
|
5144
5146
|
}
|
|
5145
|
-
function
|
|
5147
|
+
function Wf(t, e) {
|
|
5146
5148
|
const n = t[t.length - 1];
|
|
5147
5149
|
for (let i = 1; i <= e; i++) {
|
|
5148
5150
|
const r = /* @__PURE__ */ ae(0, e, i);
|
|
5149
5151
|
t.push(K(n, 1, r));
|
|
5150
5152
|
}
|
|
5151
5153
|
}
|
|
5152
|
-
function
|
|
5154
|
+
function Gf(t) {
|
|
5153
5155
|
const e = [0];
|
|
5154
|
-
return
|
|
5156
|
+
return Wf(e, t.length - 1), e;
|
|
5155
5157
|
}
|
|
5156
|
-
function
|
|
5158
|
+
function Kf(t, e) {
|
|
5157
5159
|
return t.map((n) => n * e);
|
|
5158
5160
|
}
|
|
5159
|
-
function
|
|
5161
|
+
function Hf(t, e) {
|
|
5160
5162
|
return t.map(() => e || Zo).splice(0, t.length - 1);
|
|
5161
5163
|
}
|
|
5162
5164
|
function Te({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
|
|
5163
|
-
const r =
|
|
5165
|
+
const r = Nf(i) ? i.map(Fr) : Fr(i), o = {
|
|
5164
5166
|
done: !1,
|
|
5165
5167
|
value: e[0]
|
|
5166
|
-
}, s =
|
|
5168
|
+
}, s = Kf(
|
|
5167
5169
|
// Only use the provided offsets if they're the correct length
|
|
5168
5170
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
5169
|
-
n && n.length === e.length ? n :
|
|
5171
|
+
n && n.length === e.length ? n : Gf(e),
|
|
5170
5172
|
t
|
|
5171
|
-
), a =
|
|
5172
|
-
ease: Array.isArray(r) ? r :
|
|
5173
|
+
), a = zf(s, e, {
|
|
5174
|
+
ease: Array.isArray(r) ? r : Hf(e, r)
|
|
5173
5175
|
});
|
|
5174
5176
|
return {
|
|
5175
5177
|
calculatedDuration: t,
|
|
5176
5178
|
next: (l) => (o.value = a(l), o.done = l >= t, o)
|
|
5177
5179
|
};
|
|
5178
5180
|
}
|
|
5179
|
-
const
|
|
5181
|
+
const Yf = (t) => {
|
|
5180
5182
|
const e = ({ timestamp: n }) => t(n);
|
|
5181
5183
|
return {
|
|
5182
5184
|
start: () => N.update(e, !0),
|
|
@@ -5187,13 +5189,13 @@ const qf = (t) => {
|
|
|
5187
5189
|
*/
|
|
5188
5190
|
now: () => Z.isProcessing ? Z.timestamp : Mt.now()
|
|
5189
5191
|
};
|
|
5190
|
-
},
|
|
5192
|
+
}, qf = {
|
|
5191
5193
|
decay: Or,
|
|
5192
5194
|
inertia: Or,
|
|
5193
5195
|
tween: Te,
|
|
5194
5196
|
keyframes: Te,
|
|
5195
5197
|
spring: Xo
|
|
5196
|
-
},
|
|
5198
|
+
}, Xf = (t) => t / 100;
|
|
5197
5199
|
class Wi extends Ko {
|
|
5198
5200
|
constructor(e) {
|
|
5199
5201
|
super(e), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
@@ -5210,9 +5212,9 @@ class Wi extends Ko {
|
|
|
5210
5212
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
5211
5213
|
}
|
|
5212
5214
|
initPlayback(e) {
|
|
5213
|
-
const { type: n = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o, velocity: s = 0 } = this.options, a = Mi(n) ? n :
|
|
5215
|
+
const { type: n = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o, velocity: s = 0 } = this.options, a = Mi(n) ? n : qf[n] || Te;
|
|
5214
5216
|
let l, c;
|
|
5215
|
-
process.env.NODE_ENV !== "production" && a !== Te && Dt(e.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), a !== Te && typeof e[0] != "number" && (l = _e(
|
|
5217
|
+
process.env.NODE_ENV !== "production" && a !== Te && Dt(e.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), a !== Te && typeof e[0] != "number" && (l = _e(Xf, Yo(e[0], e[1])), e = [0, 100]);
|
|
5216
5218
|
const u = a({ ...this.options, keyframes: e });
|
|
5217
5219
|
o === "mirror" && (c = a({
|
|
5218
5220
|
...this.options,
|
|
@@ -5283,7 +5285,7 @@ class Wi extends Ko {
|
|
|
5283
5285
|
}
|
|
5284
5286
|
if (this.isStopped)
|
|
5285
5287
|
return;
|
|
5286
|
-
const { driver: e =
|
|
5288
|
+
const { driver: e = Yf, onPlay: n, startTime: i } = this.options;
|
|
5287
5289
|
this.driver || (this.driver = e((o) => this.tick(o))), n && n();
|
|
5288
5290
|
const r = this.driver.now();
|
|
5289
5291
|
this.holdTime !== null ? this.startTime = r - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = r) : this.startTime = i ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
@@ -5317,7 +5319,7 @@ class Wi extends Ko {
|
|
|
5317
5319
|
return this.startTime = 0, this.tick(e, !0);
|
|
5318
5320
|
}
|
|
5319
5321
|
}
|
|
5320
|
-
const
|
|
5322
|
+
const Zf = /* @__PURE__ */ new Set([
|
|
5321
5323
|
"opacity",
|
|
5322
5324
|
"clipPath",
|
|
5323
5325
|
"filter",
|
|
@@ -5326,7 +5328,7 @@ const Jf = /* @__PURE__ */ new Set([
|
|
|
5326
5328
|
// or until we implement support for linear() easing.
|
|
5327
5329
|
// "background-color"
|
|
5328
5330
|
]);
|
|
5329
|
-
function
|
|
5331
|
+
function Jf(t, e, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeInOut", times: l } = {}) {
|
|
5330
5332
|
const c = { [e]: n };
|
|
5331
5333
|
l && (c.offset = l);
|
|
5332
5334
|
const u = go(a, r);
|
|
@@ -5339,11 +5341,11 @@ function Qf(t, e, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatTyp
|
|
|
5339
5341
|
direction: s === "reverse" ? "alternate" : "normal"
|
|
5340
5342
|
});
|
|
5341
5343
|
}
|
|
5342
|
-
const
|
|
5343
|
-
function
|
|
5344
|
+
const Qf = /* @__PURE__ */ pi(() => Object.hasOwnProperty.call(Element.prototype, "animate")), cn = 10, td = 2e4;
|
|
5345
|
+
function ed(t) {
|
|
5344
5346
|
return Mi(t.type) || t.type === "spring" || !mo(t.ease);
|
|
5345
5347
|
}
|
|
5346
|
-
function
|
|
5348
|
+
function nd(t, e) {
|
|
5347
5349
|
const n = new Wi({
|
|
5348
5350
|
...e,
|
|
5349
5351
|
keyframes: t,
|
|
@@ -5354,7 +5356,7 @@ function id(t, e) {
|
|
|
5354
5356
|
let i = { done: !1, value: t[0] };
|
|
5355
5357
|
const r = [];
|
|
5356
5358
|
let o = 0;
|
|
5357
|
-
for (; !i.done && o <
|
|
5359
|
+
for (; !i.done && o < td; )
|
|
5358
5360
|
i = n.sample(o), r.push(i.value), o += cn;
|
|
5359
5361
|
return {
|
|
5360
5362
|
times: void 0,
|
|
@@ -5368,7 +5370,7 @@ const Jo = {
|
|
|
5368
5370
|
backInOut: Eo,
|
|
5369
5371
|
circInOut: Do
|
|
5370
5372
|
};
|
|
5371
|
-
function
|
|
5373
|
+
function id(t) {
|
|
5372
5374
|
return t in Jo;
|
|
5373
5375
|
}
|
|
5374
5376
|
class Ir extends Ko {
|
|
@@ -5381,11 +5383,11 @@ class Ir extends Ko {
|
|
|
5381
5383
|
let { duration: i = 300, times: r, ease: o, type: s, motionValue: a, name: l, startTime: c } = this.options;
|
|
5382
5384
|
if (!a.owner || !a.owner.current)
|
|
5383
5385
|
return !1;
|
|
5384
|
-
if (typeof o == "string" && on() &&
|
|
5385
|
-
const { onComplete: f, onUpdate: d, motionValue: h, element: p, ...g } = this.options, S =
|
|
5386
|
+
if (typeof o == "string" && on() && id(o) && (o = Jo[o]), ed(this.options)) {
|
|
5387
|
+
const { onComplete: f, onUpdate: d, motionValue: h, element: p, ...g } = this.options, S = nd(e, g);
|
|
5386
5388
|
e = S.keyframes, e.length === 1 && (e[1] = e[0]), i = S.duration, r = S.times, o = S.ease, s = "keyframes";
|
|
5387
5389
|
}
|
|
5388
|
-
const u =
|
|
5390
|
+
const u = Jf(a.owner.current, l, e, { ...this.options, duration: i, times: r, ease: o });
|
|
5389
5391
|
return u.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (vr(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
|
|
5390
5392
|
const { onComplete: f } = this.options;
|
|
5391
5393
|
a.set(Sn(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
|
|
@@ -5517,32 +5519,32 @@ class Ir extends Ko {
|
|
|
5517
5519
|
if (!n || !n.owner || !(n.owner.current instanceof HTMLElement))
|
|
5518
5520
|
return !1;
|
|
5519
5521
|
const { onUpdate: l, transformTemplate: c } = n.owner.getProps();
|
|
5520
|
-
return
|
|
5522
|
+
return Qf() && i && Zf.has(i) && /**
|
|
5521
5523
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
5522
5524
|
* no way to read the value from WAAPI every frame.
|
|
5523
5525
|
*/
|
|
5524
5526
|
!l && !c && !r && o !== "mirror" && s !== 0 && a !== "inertia";
|
|
5525
5527
|
}
|
|
5526
5528
|
}
|
|
5527
|
-
const
|
|
5529
|
+
const rd = {
|
|
5528
5530
|
type: "spring",
|
|
5529
5531
|
stiffness: 500,
|
|
5530
5532
|
damping: 25,
|
|
5531
5533
|
restSpeed: 10
|
|
5532
|
-
},
|
|
5534
|
+
}, sd = (t) => ({
|
|
5533
5535
|
type: "spring",
|
|
5534
5536
|
stiffness: 550,
|
|
5535
5537
|
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
5536
5538
|
restSpeed: 10
|
|
5537
|
-
}),
|
|
5539
|
+
}), od = {
|
|
5538
5540
|
type: "keyframes",
|
|
5539
5541
|
duration: 0.8
|
|
5540
|
-
},
|
|
5542
|
+
}, ad = {
|
|
5541
5543
|
type: "keyframes",
|
|
5542
5544
|
ease: [0.25, 0.1, 0.35, 1],
|
|
5543
5545
|
duration: 0.3
|
|
5544
|
-
},
|
|
5545
|
-
function
|
|
5546
|
+
}, ld = (t, { keyframes: e }) => e.length > 2 ? od : Zt.has(t) ? t.startsWith("scale") ? sd(e[1]) : rd : ad;
|
|
5547
|
+
function cd({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: r, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
5546
5548
|
return !!Object.keys(u).length;
|
|
5547
5549
|
}
|
|
5548
5550
|
const Gi = (t, e, n, i = {}, r, o) => (s) => {
|
|
@@ -5565,9 +5567,9 @@ const Gi = (t, e, n, i = {}, r, o) => (s) => {
|
|
|
5565
5567
|
motionValue: e,
|
|
5566
5568
|
element: o ? void 0 : r
|
|
5567
5569
|
};
|
|
5568
|
-
|
|
5570
|
+
cd(a) || (u = {
|
|
5569
5571
|
...u,
|
|
5570
|
-
...
|
|
5572
|
+
...ld(t, u)
|
|
5571
5573
|
}), u.duration && (u.duration = /* @__PURE__ */ Et(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ Et(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
5572
5574
|
let f = !1;
|
|
5573
5575
|
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (f = !0)), f && !o && e.get() !== void 0) {
|
|
@@ -5575,11 +5577,11 @@ const Gi = (t, e, n, i = {}, r, o) => (s) => {
|
|
|
5575
5577
|
if (d !== void 0)
|
|
5576
5578
|
return N.update(() => {
|
|
5577
5579
|
u.onUpdate(d), u.onComplete();
|
|
5578
|
-
}), new
|
|
5580
|
+
}), new Eu([]);
|
|
5579
5581
|
}
|
|
5580
5582
|
return !o && Ir.supports(u) ? new Ir(u) : new Wi(u);
|
|
5581
5583
|
};
|
|
5582
|
-
function
|
|
5584
|
+
function ud({ protectedKeys: t, needsAnimating: e }, n) {
|
|
5583
5585
|
const i = t.hasOwnProperty(n) && e[n] !== !0;
|
|
5584
5586
|
return e[n] = !1, i;
|
|
5585
5587
|
}
|
|
@@ -5590,7 +5592,7 @@ function Qo(t, e, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
|
5590
5592
|
const c = [], u = r && t.animationState && t.animationState.getState()[r];
|
|
5591
5593
|
for (const f in l) {
|
|
5592
5594
|
const d = t.getValue(f, (o = t.latestValues[f]) !== null && o !== void 0 ? o : null), h = l[f];
|
|
5593
|
-
if (h === void 0 || u &&
|
|
5595
|
+
if (h === void 0 || u && ud(u, f))
|
|
5594
5596
|
continue;
|
|
5595
5597
|
const p = {
|
|
5596
5598
|
delay: n,
|
|
@@ -5621,7 +5623,7 @@ function ni(t, e, n = {}) {
|
|
|
5621
5623
|
n.transitionOverride && (o = n.transitionOverride);
|
|
5622
5624
|
const s = r ? () => Promise.all(Qo(t, r, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
|
|
5623
5625
|
const { delayChildren: u = 0, staggerChildren: f, staggerDirection: d } = o;
|
|
5624
|
-
return
|
|
5626
|
+
return fd(t, e, u + c, f, d, n);
|
|
5625
5627
|
} : () => Promise.resolve(), { when: l } = o;
|
|
5626
5628
|
if (l) {
|
|
5627
5629
|
const [c, u] = l === "beforeChildren" ? [s, a] : [a, s];
|
|
@@ -5629,16 +5631,16 @@ function ni(t, e, n = {}) {
|
|
|
5629
5631
|
} else
|
|
5630
5632
|
return Promise.all([s(), a(n.delay)]);
|
|
5631
5633
|
}
|
|
5632
|
-
function
|
|
5634
|
+
function fd(t, e, n = 0, i = 0, r = 1, o) {
|
|
5633
5635
|
const s = [], a = (t.variantChildren.size - 1) * i, l = r === 1 ? (c = 0) => c * i : (c = 0) => a - c * i;
|
|
5634
|
-
return Array.from(t.variantChildren).sort(
|
|
5636
|
+
return Array.from(t.variantChildren).sort(dd).forEach((c, u) => {
|
|
5635
5637
|
c.notify("AnimationStart", e), s.push(ni(c, e, {
|
|
5636
5638
|
...o,
|
|
5637
5639
|
delay: n + l(u)
|
|
5638
5640
|
}).then(() => c.notify("AnimationComplete", e)));
|
|
5639
5641
|
}), Promise.all(s);
|
|
5640
5642
|
}
|
|
5641
|
-
function
|
|
5643
|
+
function dd(t, e) {
|
|
5642
5644
|
return t.sortNodePosition(e);
|
|
5643
5645
|
}
|
|
5644
5646
|
function ta(t, e, n = {}) {
|
|
@@ -5668,7 +5670,7 @@ function ea(t, e) {
|
|
|
5668
5670
|
return !1;
|
|
5669
5671
|
return !0;
|
|
5670
5672
|
}
|
|
5671
|
-
const
|
|
5673
|
+
const hd = gi.length;
|
|
5672
5674
|
function na(t) {
|
|
5673
5675
|
if (!t)
|
|
5674
5676
|
return;
|
|
@@ -5677,18 +5679,18 @@ function na(t) {
|
|
|
5677
5679
|
return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
|
|
5678
5680
|
}
|
|
5679
5681
|
const e = {};
|
|
5680
|
-
for (let n = 0; n <
|
|
5682
|
+
for (let n = 0; n < hd; n++) {
|
|
5681
5683
|
const i = gi[n], r = t.props[i];
|
|
5682
5684
|
(Me(r) || r === !1) && (e[i] = r);
|
|
5683
5685
|
}
|
|
5684
5686
|
return e;
|
|
5685
5687
|
}
|
|
5686
|
-
const
|
|
5687
|
-
function
|
|
5688
|
+
const pd = [...mi].reverse(), md = mi.length;
|
|
5689
|
+
function gd(t) {
|
|
5688
5690
|
return (e) => Promise.all(e.map(({ animation: n, options: i }) => ta(t, n, i)));
|
|
5689
5691
|
}
|
|
5690
|
-
function
|
|
5691
|
-
let e =
|
|
5692
|
+
function yd(t) {
|
|
5693
|
+
let e = gd(t), n = Br(), i = !0;
|
|
5692
5694
|
const r = (l) => (c, u) => {
|
|
5693
5695
|
var f;
|
|
5694
5696
|
const d = Oe(t, u, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
|
|
@@ -5704,8 +5706,8 @@ function vd(t) {
|
|
|
5704
5706
|
function s(l) {
|
|
5705
5707
|
const { props: c } = t, u = na(t.parent) || {}, f = [], d = /* @__PURE__ */ new Set();
|
|
5706
5708
|
let h = {}, p = 1 / 0;
|
|
5707
|
-
for (let S = 0; S <
|
|
5708
|
-
const v =
|
|
5709
|
+
for (let S = 0; S < md; S++) {
|
|
5710
|
+
const v = pd[S], w = n[v], T = c[v] !== void 0 ? c[v] : u[v], V = Me(T), m = v === l ? w.isActive : null;
|
|
5709
5711
|
m === !1 && (p = S);
|
|
5710
5712
|
let E = T === u[v] && T !== c[v] && V;
|
|
5711
5713
|
if (E && i && t.manuallyAnimateOnMount && (E = !1), w.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
|
|
@@ -5713,7 +5715,7 @@ function vd(t) {
|
|
|
5713
5715
|
!T && !w.prevProp || // Or if the prop doesn't define an animation
|
|
5714
5716
|
xn(T) || typeof T == "boolean")
|
|
5715
5717
|
continue;
|
|
5716
|
-
const M =
|
|
5718
|
+
const M = vd(w.prevProp, T);
|
|
5717
5719
|
let y = M || // If we're making this variant active, we want to always make it active
|
|
5718
5720
|
v === l && w.isActive && !E && V || // If we removed a higher-priority variant (i is in reverse order)
|
|
5719
5721
|
S > p && V, b = !1;
|
|
@@ -5773,11 +5775,11 @@ function vd(t) {
|
|
|
5773
5775
|
setAnimateFunction: o,
|
|
5774
5776
|
getState: () => n,
|
|
5775
5777
|
reset: () => {
|
|
5776
|
-
n =
|
|
5778
|
+
n = Br(), i = !0;
|
|
5777
5779
|
}
|
|
5778
5780
|
};
|
|
5779
5781
|
}
|
|
5780
|
-
function
|
|
5782
|
+
function vd(t, e) {
|
|
5781
5783
|
return typeof e == "string" ? e !== t : Array.isArray(e) ? !ea(e, t) : !1;
|
|
5782
5784
|
}
|
|
5783
5785
|
function Ht(t = !1) {
|
|
@@ -5788,7 +5790,7 @@ function Ht(t = !1) {
|
|
|
5788
5790
|
prevResolvedValues: {}
|
|
5789
5791
|
};
|
|
5790
5792
|
}
|
|
5791
|
-
function
|
|
5793
|
+
function Br() {
|
|
5792
5794
|
return {
|
|
5793
5795
|
animate: Ht(!0),
|
|
5794
5796
|
whileInView: Ht(),
|
|
@@ -5806,14 +5808,14 @@ class zt {
|
|
|
5806
5808
|
update() {
|
|
5807
5809
|
}
|
|
5808
5810
|
}
|
|
5809
|
-
class
|
|
5811
|
+
class xd extends zt {
|
|
5810
5812
|
/**
|
|
5811
5813
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
5812
5814
|
* to the underlying animation library. We only want to load that if we load this,
|
|
5813
5815
|
* so people can optionally code split it out using the `m` component.
|
|
5814
5816
|
*/
|
|
5815
5817
|
constructor(e) {
|
|
5816
|
-
super(e), e.animationState || (e.animationState =
|
|
5818
|
+
super(e), e.animationState || (e.animationState = yd(e));
|
|
5817
5819
|
}
|
|
5818
5820
|
updateAnimationControlsSubscription() {
|
|
5819
5821
|
const { animate: e } = this.node.getProps();
|
|
@@ -5834,10 +5836,10 @@ class bd extends zt {
|
|
|
5834
5836
|
this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
|
|
5835
5837
|
}
|
|
5836
5838
|
}
|
|
5837
|
-
let
|
|
5838
|
-
class
|
|
5839
|
+
let bd = 0;
|
|
5840
|
+
class Sd extends zt {
|
|
5839
5841
|
constructor() {
|
|
5840
|
-
super(...arguments), this.id =
|
|
5842
|
+
super(...arguments), this.id = bd++;
|
|
5841
5843
|
}
|
|
5842
5844
|
update() {
|
|
5843
5845
|
if (!this.node.presenceContext)
|
|
@@ -5857,12 +5859,12 @@ class wd extends zt {
|
|
|
5857
5859
|
unmount() {
|
|
5858
5860
|
}
|
|
5859
5861
|
}
|
|
5860
|
-
const
|
|
5862
|
+
const wd = {
|
|
5861
5863
|
animation: {
|
|
5862
|
-
Feature:
|
|
5864
|
+
Feature: xd
|
|
5863
5865
|
},
|
|
5864
5866
|
exit: {
|
|
5865
|
-
Feature:
|
|
5867
|
+
Feature: Sd
|
|
5866
5868
|
}
|
|
5867
5869
|
};
|
|
5868
5870
|
function Ie(t, e, n, i = { passive: !0 }) {
|
|
@@ -5876,9 +5878,9 @@ function Ne(t) {
|
|
|
5876
5878
|
}
|
|
5877
5879
|
};
|
|
5878
5880
|
}
|
|
5879
|
-
const
|
|
5881
|
+
const Td = (t) => (e) => Li(e) && t(e, Ne(e));
|
|
5880
5882
|
function te(t, e, n, i) {
|
|
5881
|
-
return Ie(t, e,
|
|
5883
|
+
return Ie(t, e, Td(n), i);
|
|
5882
5884
|
}
|
|
5883
5885
|
function ia({ top: t, left: e, right: n, bottom: i }) {
|
|
5884
5886
|
return {
|
|
@@ -5886,10 +5888,10 @@ function ia({ top: t, left: e, right: n, bottom: i }) {
|
|
|
5886
5888
|
y: { min: t, max: i }
|
|
5887
5889
|
};
|
|
5888
5890
|
}
|
|
5889
|
-
function
|
|
5891
|
+
function Cd({ x: t, y: e }) {
|
|
5890
5892
|
return { top: e.min, right: t.max, bottom: e.max, left: t.min };
|
|
5891
5893
|
}
|
|
5892
|
-
function
|
|
5894
|
+
function Pd(t, e) {
|
|
5893
5895
|
if (!e)
|
|
5894
5896
|
return t;
|
|
5895
5897
|
const n = e({ x: t.left, y: t.top }), i = e({ x: t.right, y: t.bottom });
|
|
@@ -5900,23 +5902,23 @@ function Ad(t, e) {
|
|
|
5900
5902
|
right: i.x
|
|
5901
5903
|
};
|
|
5902
5904
|
}
|
|
5903
|
-
const ra = 1e-4,
|
|
5905
|
+
const ra = 1e-4, Ad = 1 - ra, Vd = 1 + ra, sa = 0.01, Ed = 0 - sa, Rd = 0 + sa;
|
|
5904
5906
|
function ot(t) {
|
|
5905
5907
|
return t.max - t.min;
|
|
5906
5908
|
}
|
|
5907
|
-
function
|
|
5909
|
+
function Md(t, e, n) {
|
|
5908
5910
|
return Math.abs(t - e) <= n;
|
|
5909
5911
|
}
|
|
5910
|
-
function
|
|
5911
|
-
t.origin = i, t.originPoint = K(e.min, e.max, t.origin), t.scale = ot(n) / ot(e), t.translate = K(n.min, n.max, t.origin) - t.originPoint, (t.scale >=
|
|
5912
|
+
function $r(t, e, n, i = 0.5) {
|
|
5913
|
+
t.origin = i, t.originPoint = K(e.min, e.max, t.origin), t.scale = ot(n) / ot(e), t.translate = K(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Ad && t.scale <= Vd || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Ed && t.translate <= Rd || isNaN(t.translate)) && (t.translate = 0);
|
|
5912
5914
|
}
|
|
5913
5915
|
function Ce(t, e, n, i) {
|
|
5914
|
-
|
|
5916
|
+
$r(t.x, e.x, n.x, i ? i.originX : void 0), $r(t.y, e.y, n.y, i ? i.originY : void 0);
|
|
5915
5917
|
}
|
|
5916
5918
|
function jr(t, e, n) {
|
|
5917
5919
|
t.min = n.min + e.min, t.max = t.min + ot(e);
|
|
5918
5920
|
}
|
|
5919
|
-
function
|
|
5921
|
+
function Dd(t, e, n) {
|
|
5920
5922
|
jr(t.x, e.x, n.x), jr(t.y, e.y, n.y);
|
|
5921
5923
|
}
|
|
5922
5924
|
function _r(t, e, n) {
|
|
@@ -5969,7 +5971,7 @@ function aa(t, { x: e, y: n }) {
|
|
|
5969
5971
|
ri(t.x, e.translate, e.scale, e.originPoint), ri(t.y, n.translate, n.scale, n.originPoint);
|
|
5970
5972
|
}
|
|
5971
5973
|
const Gr = 0.999999999999, Kr = 1.0000000000001;
|
|
5972
|
-
function
|
|
5974
|
+
function Ld(t, e, n, i = !1) {
|
|
5973
5975
|
const r = n.length;
|
|
5974
5976
|
if (!r)
|
|
5975
5977
|
return;
|
|
@@ -5996,14 +5998,14 @@ function ie(t, e) {
|
|
|
5996
5998
|
Hr(t.x, e.x, e.scaleX, e.scale, e.originX), Hr(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
5997
5999
|
}
|
|
5998
6000
|
function la(t, e) {
|
|
5999
|
-
return ia(
|
|
6001
|
+
return ia(Pd(t.getBoundingClientRect(), e));
|
|
6000
6002
|
}
|
|
6001
|
-
function
|
|
6003
|
+
function Od(t, e, n) {
|
|
6002
6004
|
const i = la(t, n), { scroll: r } = e;
|
|
6003
6005
|
return r && (ne(i.x, r.offset.x), ne(i.y, r.offset.y)), i;
|
|
6004
6006
|
}
|
|
6005
6007
|
const Yr = (t, e) => Math.abs(t - e);
|
|
6006
|
-
function
|
|
6008
|
+
function kd(t, e) {
|
|
6007
6009
|
const n = Yr(t.x, e.x), i = Yr(t.y, e.y);
|
|
6008
6010
|
return Math.sqrt(n ** 2 + i ** 2);
|
|
6009
6011
|
}
|
|
@@ -6012,7 +6014,7 @@ class ca {
|
|
|
6012
6014
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = () => {
|
|
6013
6015
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
6014
6016
|
return;
|
|
6015
|
-
const u = kn(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, d =
|
|
6017
|
+
const u = kn(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, d = kd(u.offset, { x: 0, y: 0 }) >= 3;
|
|
6016
6018
|
if (!f && !d)
|
|
6017
6019
|
return;
|
|
6018
6020
|
const { point: h } = u, { timestamp: p } = Z;
|
|
@@ -6059,17 +6061,17 @@ function kn({ point: t }, e) {
|
|
|
6059
6061
|
return {
|
|
6060
6062
|
point: t,
|
|
6061
6063
|
delta: qr(t, ua(e)),
|
|
6062
|
-
offset: qr(t,
|
|
6063
|
-
velocity:
|
|
6064
|
+
offset: qr(t, Fd(e)),
|
|
6065
|
+
velocity: Id(e, 0.1)
|
|
6064
6066
|
};
|
|
6065
6067
|
}
|
|
6066
|
-
function
|
|
6068
|
+
function Fd(t) {
|
|
6067
6069
|
return t[0];
|
|
6068
6070
|
}
|
|
6069
6071
|
function ua(t) {
|
|
6070
6072
|
return t[t.length - 1];
|
|
6071
6073
|
}
|
|
6072
|
-
function
|
|
6074
|
+
function Id(t, e) {
|
|
6073
6075
|
if (t.length < 2)
|
|
6074
6076
|
return { x: 0, y: 0 };
|
|
6075
6077
|
let n = t.length - 1, i = null;
|
|
@@ -6096,7 +6098,7 @@ function Xr(t, e, n) {
|
|
|
6096
6098
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
|
6097
6099
|
};
|
|
6098
6100
|
}
|
|
6099
|
-
function
|
|
6101
|
+
function $d(t, { top: e, left: n, bottom: i, right: r }) {
|
|
6100
6102
|
return {
|
|
6101
6103
|
x: Xr(t.x, n, r),
|
|
6102
6104
|
y: Xr(t.y, e, i)
|
|
@@ -6106,23 +6108,23 @@ function Zr(t, e) {
|
|
|
6106
6108
|
let n = e.min - t.min, i = e.max - t.max;
|
|
6107
6109
|
return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
|
|
6108
6110
|
}
|
|
6109
|
-
function
|
|
6111
|
+
function jd(t, e) {
|
|
6110
6112
|
return {
|
|
6111
6113
|
x: Zr(t.x, e.x),
|
|
6112
6114
|
y: Zr(t.y, e.y)
|
|
6113
6115
|
};
|
|
6114
6116
|
}
|
|
6115
|
-
function
|
|
6117
|
+
function _d(t, e) {
|
|
6116
6118
|
let n = 0.5;
|
|
6117
6119
|
const i = ot(t), r = ot(e);
|
|
6118
6120
|
return r > i ? n = /* @__PURE__ */ ae(e.min, e.max - i, t.min) : i > r && (n = /* @__PURE__ */ ae(t.min, t.max - r, e.min)), kt(0, 1, n);
|
|
6119
6121
|
}
|
|
6120
|
-
function
|
|
6122
|
+
function Nd(t, e) {
|
|
6121
6123
|
const n = {};
|
|
6122
6124
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
6123
6125
|
}
|
|
6124
6126
|
const si = 0.35;
|
|
6125
|
-
function
|
|
6127
|
+
function Ud(t = si) {
|
|
6126
6128
|
return t === !1 ? t = 0 : t === !0 && (t = si), {
|
|
6127
6129
|
x: Jr(t, "left", "right"),
|
|
6128
6130
|
y: Jr(t, "top", "bottom")
|
|
@@ -6137,8 +6139,8 @@ function Jr(t, e, n) {
|
|
|
6137
6139
|
function Qr(t, e) {
|
|
6138
6140
|
return typeof t == "number" ? t : t[e] || 0;
|
|
6139
6141
|
}
|
|
6140
|
-
const
|
|
6141
|
-
class
|
|
6142
|
+
const zd = /* @__PURE__ */ new WeakMap();
|
|
6143
|
+
class Wd {
|
|
6142
6144
|
constructor(e) {
|
|
6143
6145
|
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = H(), this.visualElement = e;
|
|
6144
6146
|
}
|
|
@@ -6172,7 +6174,7 @@ class Gd {
|
|
|
6172
6174
|
return;
|
|
6173
6175
|
const { offset: S } = f;
|
|
6174
6176
|
if (h && this.currentDirection === null) {
|
|
6175
|
-
this.currentDirection =
|
|
6177
|
+
this.currentDirection = Gd(S), this.currentDirection !== null && p && p(this.currentDirection);
|
|
6176
6178
|
return;
|
|
6177
6179
|
}
|
|
6178
6180
|
this.updateAxis("x", f.point, S), this.updateAxis("y", f.point, S), this.visualElement.render(), g && g(u, f);
|
|
@@ -6218,8 +6220,8 @@ class Gd {
|
|
|
6218
6220
|
resolveConstraints() {
|
|
6219
6221
|
var e;
|
|
6220
6222
|
const { dragConstraints: n, dragElastic: i } = this.getProps(), r = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
|
|
6221
|
-
n && Jt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && r ? this.constraints =
|
|
6222
|
-
this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] =
|
|
6223
|
+
n && Jt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && r ? this.constraints = $d(r.layoutBox, n) : this.constraints = !1, this.elastic = Ud(i), o !== this.constraints && r && this.constraints && !this.hasMutatedConstraints && vt((s) => {
|
|
6224
|
+
this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = Nd(r.layoutBox[s], this.constraints[s]));
|
|
6223
6225
|
});
|
|
6224
6226
|
}
|
|
6225
6227
|
resolveRefConstraints() {
|
|
@@ -6231,10 +6233,10 @@ class Gd {
|
|
|
6231
6233
|
const { projection: r } = this.visualElement;
|
|
6232
6234
|
if (!r || !r.layout)
|
|
6233
6235
|
return !1;
|
|
6234
|
-
const o =
|
|
6235
|
-
let s =
|
|
6236
|
+
const o = Od(i, r.root, this.visualElement.getTransformPagePoint());
|
|
6237
|
+
let s = jd(r.layout.layoutBox, o);
|
|
6236
6238
|
if (n) {
|
|
6237
|
-
const a = n(
|
|
6239
|
+
const a = n(Cd(s));
|
|
6238
6240
|
this.hasMutatedConstraints = !!a, a && (s = ia(a));
|
|
6239
6241
|
}
|
|
6240
6242
|
return s;
|
|
@@ -6316,7 +6318,7 @@ class Gd {
|
|
|
6316
6318
|
const a = this.getAxisMotionValue(s);
|
|
6317
6319
|
if (a && this.constraints !== !1) {
|
|
6318
6320
|
const l = a.get();
|
|
6319
|
-
r[s] =
|
|
6321
|
+
r[s] = _d({ min: l, max: l }, this.constraints[s]);
|
|
6320
6322
|
}
|
|
6321
6323
|
});
|
|
6322
6324
|
const { transformTemplate: o } = this.visualElement.getProps();
|
|
@@ -6330,7 +6332,7 @@ class Gd {
|
|
|
6330
6332
|
addListeners() {
|
|
6331
6333
|
if (!this.visualElement.current)
|
|
6332
6334
|
return;
|
|
6333
|
-
|
|
6335
|
+
zd.set(this.visualElement, this);
|
|
6334
6336
|
const e = this.visualElement.current, n = te(e, "pointerdown", (l) => {
|
|
6335
6337
|
const { drag: c, dragListener: u = !0 } = this.getProps();
|
|
6336
6338
|
c && u && this.start(l);
|
|
@@ -6365,13 +6367,13 @@ class Gd {
|
|
|
6365
6367
|
function He(t, e, n) {
|
|
6366
6368
|
return (e === !0 || e === t) && (n === null || n === t);
|
|
6367
6369
|
}
|
|
6368
|
-
function
|
|
6370
|
+
function Gd(t, e = 10) {
|
|
6369
6371
|
let n = null;
|
|
6370
6372
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
|
6371
6373
|
}
|
|
6372
|
-
class
|
|
6374
|
+
class Kd extends zt {
|
|
6373
6375
|
constructor(e) {
|
|
6374
|
-
super(e), this.removeGroupControls = ft, this.removeListeners = ft, this.controls = new
|
|
6376
|
+
super(e), this.removeGroupControls = ft, this.removeListeners = ft, this.controls = new Wd(e);
|
|
6375
6377
|
}
|
|
6376
6378
|
mount() {
|
|
6377
6379
|
const { dragControls: e } = this.node.getProps();
|
|
@@ -6384,7 +6386,7 @@ class Hd extends zt {
|
|
|
6384
6386
|
const ts = (t) => (e, n) => {
|
|
6385
6387
|
t && N.postRender(() => t(e, n));
|
|
6386
6388
|
};
|
|
6387
|
-
class
|
|
6389
|
+
class Hd extends zt {
|
|
6388
6390
|
constructor() {
|
|
6389
6391
|
super(...arguments), this.removePointerDownListener = ft;
|
|
6390
6392
|
}
|
|
@@ -6441,7 +6443,7 @@ const ye = {
|
|
|
6441
6443
|
const n = es(t, e.target.x), i = es(t, e.target.y);
|
|
6442
6444
|
return `${n}% ${i}%`;
|
|
6443
6445
|
}
|
|
6444
|
-
},
|
|
6446
|
+
}, Yd = {
|
|
6445
6447
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
|
6446
6448
|
const i = t, r = Ut.parse(t);
|
|
6447
6449
|
if (r.length > 5)
|
|
@@ -6452,7 +6454,7 @@ const ye = {
|
|
|
6452
6454
|
return typeof r[2 + s] == "number" && (r[2 + s] /= c), typeof r[3 + s] == "number" && (r[3 + s] /= c), o(r);
|
|
6453
6455
|
}
|
|
6454
6456
|
};
|
|
6455
|
-
class
|
|
6457
|
+
class qd extends Ra {
|
|
6456
6458
|
/**
|
|
6457
6459
|
* This only mounts projection nodes for components that
|
|
6458
6460
|
* need measuring, we might want to do it for all components
|
|
@@ -6460,7 +6462,7 @@ class Xd extends Ra {
|
|
|
6460
6462
|
*/
|
|
6461
6463
|
componentDidMount() {
|
|
6462
6464
|
const { visualElement: e, layoutGroup: n, switchLayoutGroup: i, layoutId: r } = this.props, { projection: o } = e;
|
|
6463
|
-
|
|
6465
|
+
eu(Xd), o && (n.group && n.group.add(o), i && i.register && r && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
|
|
6464
6466
|
this.safeToRemove();
|
|
6465
6467
|
}), o.setOptions({
|
|
6466
6468
|
...o.options,
|
|
@@ -6493,10 +6495,10 @@ class Xd extends Ra {
|
|
|
6493
6495
|
}
|
|
6494
6496
|
}
|
|
6495
6497
|
function fa(t) {
|
|
6496
|
-
const [e, n] =
|
|
6497
|
-
return As(
|
|
6498
|
+
const [e, n] = Oc(), i = st(Ws);
|
|
6499
|
+
return As(qd, { ...t, layoutGroup: i, switchLayoutGroup: st(Qs), isPresent: e, safeToRemove: n });
|
|
6498
6500
|
}
|
|
6499
|
-
const
|
|
6501
|
+
const Xd = {
|
|
6500
6502
|
borderRadius: {
|
|
6501
6503
|
...ye,
|
|
6502
6504
|
applyTo: [
|
|
@@ -6510,17 +6512,17 @@ const Zd = {
|
|
|
6510
6512
|
borderTopRightRadius: ye,
|
|
6511
6513
|
borderBottomLeftRadius: ye,
|
|
6512
6514
|
borderBottomRightRadius: ye,
|
|
6513
|
-
boxShadow:
|
|
6515
|
+
boxShadow: Yd
|
|
6514
6516
|
};
|
|
6515
|
-
function
|
|
6517
|
+
function Zd(t, e, n) {
|
|
6516
6518
|
const i = nt(t) ? t : ke(t);
|
|
6517
6519
|
return i.start(Gi("", i, e, n)), i.animation;
|
|
6518
6520
|
}
|
|
6519
|
-
function
|
|
6521
|
+
function Jd(t) {
|
|
6520
6522
|
return t instanceof SVGElement && t.tagName !== "svg";
|
|
6521
6523
|
}
|
|
6522
|
-
const
|
|
6523
|
-
class
|
|
6524
|
+
const Qd = (t, e) => t.depth - e.depth;
|
|
6525
|
+
class th {
|
|
6524
6526
|
constructor() {
|
|
6525
6527
|
this.children = [], this.isDirty = !1;
|
|
6526
6528
|
}
|
|
@@ -6531,25 +6533,25 @@ class eh {
|
|
|
6531
6533
|
ki(this.children, e), this.isDirty = !0;
|
|
6532
6534
|
}
|
|
6533
6535
|
forEach(e) {
|
|
6534
|
-
this.isDirty && this.children.sort(
|
|
6536
|
+
this.isDirty && this.children.sort(Qd), this.isDirty = !1, this.children.forEach(e);
|
|
6535
6537
|
}
|
|
6536
6538
|
}
|
|
6537
|
-
function
|
|
6539
|
+
function eh(t, e) {
|
|
6538
6540
|
const n = Mt.now(), i = ({ timestamp: r }) => {
|
|
6539
6541
|
const o = r - n;
|
|
6540
6542
|
o >= e && (Nt(i), t(o - e));
|
|
6541
6543
|
};
|
|
6542
6544
|
return N.read(i, !0), () => Nt(i);
|
|
6543
6545
|
}
|
|
6544
|
-
const da = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"],
|
|
6545
|
-
function
|
|
6546
|
+
const da = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], nh = da.length, ns = (t) => typeof t == "string" ? parseFloat(t) : t, is = (t) => typeof t == "number" || L.test(t);
|
|
6547
|
+
function ih(t, e, n, i, r, o) {
|
|
6546
6548
|
r ? (t.opacity = K(
|
|
6547
6549
|
0,
|
|
6548
6550
|
// TODO Reinstate this if only child
|
|
6549
6551
|
n.opacity !== void 0 ? n.opacity : 1,
|
|
6550
|
-
|
|
6551
|
-
), t.opacityExit = K(e.opacity !== void 0 ? e.opacity : 1, 0,
|
|
6552
|
-
for (let s = 0; s <
|
|
6552
|
+
rh(i)
|
|
6553
|
+
), t.opacityExit = K(e.opacity !== void 0 ? e.opacity : 1, 0, sh(i))) : o && (t.opacity = K(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
|
|
6554
|
+
for (let s = 0; s < nh; s++) {
|
|
6553
6555
|
const a = `border${da[s]}Radius`;
|
|
6554
6556
|
let l = rs(e, a), c = rs(n, a);
|
|
6555
6557
|
if (l === void 0 && c === void 0)
|
|
@@ -6561,7 +6563,7 @@ function rh(t, e, n, i, r, o) {
|
|
|
6561
6563
|
function rs(t, e) {
|
|
6562
6564
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
6563
6565
|
}
|
|
6564
|
-
const
|
|
6566
|
+
const rh = /* @__PURE__ */ ha(0, 0.5, Mo), sh = /* @__PURE__ */ ha(0.5, 0.95, ft);
|
|
6565
6567
|
function ha(t, e, n) {
|
|
6566
6568
|
return (i) => i < t ? 0 : i > e ? 1 : n(/* @__PURE__ */ ae(t, e, i));
|
|
6567
6569
|
}
|
|
@@ -6577,18 +6579,18 @@ function os(t, e) {
|
|
|
6577
6579
|
function as(t, e, n, i, r) {
|
|
6578
6580
|
return t -= e, t = un(t, 1 / n, i), r !== void 0 && (t = un(t, 1 / r, i)), t;
|
|
6579
6581
|
}
|
|
6580
|
-
function
|
|
6582
|
+
function oh(t, e = 0, n = 1, i = 0.5, r, o = t, s = t) {
|
|
6581
6583
|
if (Rt.test(e) && (e = parseFloat(e), e = K(s.min, s.max, e / 100) - s.min), typeof e != "number")
|
|
6582
6584
|
return;
|
|
6583
6585
|
let a = K(o.min, o.max, i);
|
|
6584
6586
|
t === o && (a -= e), t.min = as(t.min, e, n, a, r), t.max = as(t.max, e, n, a, r);
|
|
6585
6587
|
}
|
|
6586
6588
|
function ls(t, e, [n, i, r], o, s) {
|
|
6587
|
-
|
|
6589
|
+
oh(t, e[n], e[i], e[r], e.scale, o, s);
|
|
6588
6590
|
}
|
|
6589
|
-
const
|
|
6591
|
+
const ah = ["x", "scaleX", "originX"], lh = ["y", "scaleY", "originY"];
|
|
6590
6592
|
function cs(t, e, n, i) {
|
|
6591
|
-
ls(t.x, e,
|
|
6593
|
+
ls(t.x, e, ah, n ? n.x : void 0, i ? i.x : void 0), ls(t.y, e, lh, n ? n.y : void 0, i ? i.y : void 0);
|
|
6592
6594
|
}
|
|
6593
6595
|
function us(t) {
|
|
6594
6596
|
return t.translate === 0 && t.scale === 1;
|
|
@@ -6599,7 +6601,7 @@ function pa(t) {
|
|
|
6599
6601
|
function fs(t, e) {
|
|
6600
6602
|
return t.min === e.min && t.max === e.max;
|
|
6601
6603
|
}
|
|
6602
|
-
function
|
|
6604
|
+
function ch(t, e) {
|
|
6603
6605
|
return fs(t.x, e.x) && fs(t.y, e.y);
|
|
6604
6606
|
}
|
|
6605
6607
|
function ds(t, e) {
|
|
@@ -6614,7 +6616,7 @@ function hs(t) {
|
|
|
6614
6616
|
function ps(t, e) {
|
|
6615
6617
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
6616
6618
|
}
|
|
6617
|
-
class
|
|
6619
|
+
class uh {
|
|
6618
6620
|
constructor() {
|
|
6619
6621
|
this.members = [];
|
|
6620
6622
|
}
|
|
@@ -6668,7 +6670,7 @@ class fh {
|
|
|
6668
6670
|
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
|
6669
6671
|
}
|
|
6670
6672
|
}
|
|
6671
|
-
function
|
|
6673
|
+
function fh(t, e, n) {
|
|
6672
6674
|
let i = "";
|
|
6673
6675
|
const r = t.x.translate / e.x, o = t.y.translate / e.y, s = (n == null ? void 0 : n.z) || 0;
|
|
6674
6676
|
if ((r || o || s) && (i = `translate3d(${r}px, ${o}px, ${s}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
|
|
@@ -6678,8 +6680,8 @@ function dh(t, e, n) {
|
|
|
6678
6680
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
6679
6681
|
return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
|
|
6680
6682
|
}
|
|
6681
|
-
const Fn = ["", "X", "Y", "Z"],
|
|
6682
|
-
let
|
|
6683
|
+
const Fn = ["", "X", "Y", "Z"], dh = { visibility: "hidden" }, ms = 1e3;
|
|
6684
|
+
let hh = 0;
|
|
6683
6685
|
function In(t, e, n, i) {
|
|
6684
6686
|
const { latestValues: r } = e;
|
|
6685
6687
|
r[t] && (n[t] = r[t], e.setStaticValue(t, 0), i && (i[t] = 0));
|
|
@@ -6701,14 +6703,14 @@ function ga(t) {
|
|
|
6701
6703
|
function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: r }) {
|
|
6702
6704
|
return class {
|
|
6703
6705
|
constructor(s = {}, a = e == null ? void 0 : e()) {
|
|
6704
|
-
this.id =
|
|
6706
|
+
this.id = hh++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
6705
6707
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
6706
6708
|
}, this.updateProjection = () => {
|
|
6707
|
-
this.projectionUpdateScheduled = !1, this.nodes.forEach(
|
|
6709
|
+
this.projectionUpdateScheduled = !1, this.nodes.forEach(gh), this.nodes.forEach(Sh), this.nodes.forEach(wh), this.nodes.forEach(yh);
|
|
6708
6710
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = s, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
6709
6711
|
for (let l = 0; l < this.path.length; l++)
|
|
6710
6712
|
this.path[l].shouldResetTransform = !0;
|
|
6711
|
-
this.root === this && (this.nodes = new
|
|
6713
|
+
this.root === this && (this.nodes = new th());
|
|
6712
6714
|
}
|
|
6713
6715
|
addEventListener(s, a) {
|
|
6714
6716
|
return this.eventHandlers.has(s) || this.eventHandlers.set(s, new Fi()), this.eventHandlers.get(s).add(a);
|
|
@@ -6726,13 +6728,13 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6726
6728
|
mount(s, a = this.root.hasTreeAnimated) {
|
|
6727
6729
|
if (this.instance)
|
|
6728
6730
|
return;
|
|
6729
|
-
this.isSVG =
|
|
6731
|
+
this.isSVG = Jd(s), this.instance = s;
|
|
6730
6732
|
const { layoutId: l, layout: c, visualElement: u } = this.options;
|
|
6731
6733
|
if (u && !u.current && u.mount(s), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), t) {
|
|
6732
6734
|
let f;
|
|
6733
6735
|
const d = () => this.root.updateBlockedByResize = !1;
|
|
6734
6736
|
t(s, () => {
|
|
6735
|
-
this.root.updateBlockedByResize = !0, f && f(), f =
|
|
6737
|
+
this.root.updateBlockedByResize = !0, f && f(), f = eh(d, 250), tn.hasAnimatedSinceResize && (tn.hasAnimatedSinceResize = !1, this.nodes.forEach(ys));
|
|
6736
6738
|
});
|
|
6737
6739
|
}
|
|
6738
6740
|
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeLayoutChanged: h, layout: p }) => {
|
|
@@ -6740,7 +6742,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6740
6742
|
this.target = void 0, this.relativeTarget = void 0;
|
|
6741
6743
|
return;
|
|
6742
6744
|
}
|
|
6743
|
-
const g = this.options.transition || u.getDefaultTransition() ||
|
|
6745
|
+
const g = this.options.transition || u.getDefaultTransition() || Vh, { onLayoutAnimationStart: S, onLayoutAnimationComplete: v } = u.getProps(), w = !this.targetLayout || !ma(this.targetLayout, p), T = !d && h;
|
|
6744
6746
|
if (this.options.layoutRoot || this.resumeFrom || T || d && (w || !this.currentAnimation)) {
|
|
6745
6747
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, T);
|
|
6746
6748
|
const V = {
|
|
@@ -6774,7 +6776,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6774
6776
|
}
|
|
6775
6777
|
// Note: currently only running on root node
|
|
6776
6778
|
startUpdate() {
|
|
6777
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
|
6779
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Th), this.animationId++);
|
|
6778
6780
|
}
|
|
6779
6781
|
getTransformTemplate() {
|
|
6780
6782
|
const { visualElement: s } = this.options;
|
|
@@ -6803,7 +6805,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6803
6805
|
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(gs);
|
|
6804
6806
|
return;
|
|
6805
6807
|
}
|
|
6806
|
-
this.isUpdating || this.nodes.forEach(
|
|
6808
|
+
this.isUpdating || this.nodes.forEach(xh), this.isUpdating = !1, this.nodes.forEach(bh), this.nodes.forEach(ph), this.nodes.forEach(mh), this.clearAllSnapshots();
|
|
6807
6809
|
const a = Mt.now();
|
|
6808
6810
|
Z.delta = kt(0, 1e3 / 60, a - Z.timestamp), Z.timestamp = a, Z.isProcessing = !0, Vn.update.process(Z), Vn.preRender.process(Z), Vn.render.process(Z), Z.isProcessing = !1;
|
|
6809
6811
|
}
|
|
@@ -6811,7 +6813,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6811
6813
|
this.updateScheduled || (this.updateScheduled = !0, vi.read(this.scheduleUpdate));
|
|
6812
6814
|
}
|
|
6813
6815
|
clearAllSnapshots() {
|
|
6814
|
-
this.nodes.forEach(
|
|
6816
|
+
this.nodes.forEach(vh), this.sharedNodes.forEach(Ch);
|
|
6815
6817
|
}
|
|
6816
6818
|
scheduleUpdateProjection() {
|
|
6817
6819
|
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, N.preRender(this.updateProjection, !1, !0));
|
|
@@ -6860,7 +6862,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6860
6862
|
measure(s = !0) {
|
|
6861
6863
|
const a = this.measurePageBox();
|
|
6862
6864
|
let l = this.removeElementScroll(a);
|
|
6863
|
-
return s && (l = this.removeTransform(l)),
|
|
6865
|
+
return s && (l = this.removeTransform(l)), Eh(l), {
|
|
6864
6866
|
animationId: this.root.animationId,
|
|
6865
6867
|
measuredBox: a,
|
|
6866
6868
|
layoutBox: l,
|
|
@@ -6874,7 +6876,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6874
6876
|
if (!a)
|
|
6875
6877
|
return H();
|
|
6876
6878
|
const l = a.measureViewportBox();
|
|
6877
|
-
if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(
|
|
6879
|
+
if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(Rh))) {
|
|
6878
6880
|
const { scroll: u } = this.root;
|
|
6879
6881
|
u && (ne(l.x, u.offset.x), ne(l.y, u.offset.y));
|
|
6880
6882
|
}
|
|
@@ -6945,7 +6947,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6945
6947
|
const h = this.getClosestProjectingParent();
|
|
6946
6948
|
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = H(), this.relativeTargetOrigin = H(), Pe(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), yt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
6947
6949
|
}
|
|
6948
|
-
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(),
|
|
6950
|
+
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Dd(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : yt(this.target, this.layout.layoutBox), aa(this.target, this.targetDelta)) : yt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
|
|
6949
6951
|
this.attemptToResolveRelativeTarget = !1;
|
|
6950
6952
|
const h = this.getClosestProjectingParent();
|
|
6951
6953
|
h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = H(), this.relativeTargetOrigin = H(), Pe(this.relativeTargetOrigin, this.target, h.target), yt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -6970,7 +6972,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6970
6972
|
return;
|
|
6971
6973
|
yt(this.layoutCorrected, this.layout.layoutBox);
|
|
6972
6974
|
const d = this.treeScale.x, h = this.treeScale.y;
|
|
6973
|
-
|
|
6975
|
+
Ld(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = H());
|
|
6974
6976
|
const { target: p } = a;
|
|
6975
6977
|
if (!p) {
|
|
6976
6978
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -6998,17 +7000,17 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6998
7000
|
setAnimationOrigin(s, a = !1) {
|
|
6999
7001
|
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = ee();
|
|
7000
7002
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
7001
|
-
const d = H(), h = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, g = h !== p, S = this.getStack(), v = !S || S.members.length <= 1, w = !!(g && !v && this.options.crossfade === !0 && !this.path.some(
|
|
7003
|
+
const d = H(), h = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, g = h !== p, S = this.getStack(), v = !S || S.members.length <= 1, w = !!(g && !v && this.options.crossfade === !0 && !this.path.some(Ah));
|
|
7002
7004
|
this.animationProgress = 0;
|
|
7003
7005
|
let T;
|
|
7004
7006
|
this.mixTargetDelta = (V) => {
|
|
7005
7007
|
const m = V / 1e3;
|
|
7006
|
-
vs(f.x, s.x, m), vs(f.y, s.y, m), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Pe(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox),
|
|
7008
|
+
vs(f.x, s.x, m), vs(f.y, s.y, m), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Pe(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Ph(this.relativeTarget, this.relativeTargetOrigin, d, m), T && ch(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = H()), yt(T, this.relativeTarget)), g && (this.animationValues = u, ih(u, c, this.latestValues, m, w, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = m;
|
|
7007
7009
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
7008
7010
|
}
|
|
7009
7011
|
startAnimation(s) {
|
|
7010
7012
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Nt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = N.update(() => {
|
|
7011
|
-
tn.hasAnimatedSinceResize = !0, this.currentAnimation =
|
|
7013
|
+
tn.hasAnimatedSinceResize = !0, this.currentAnimation = Zd(0, ms, {
|
|
7012
7014
|
...s,
|
|
7013
7015
|
onUpdate: (a) => {
|
|
7014
7016
|
this.mixTargetDelta(a), s.onUpdate && s.onUpdate(a);
|
|
@@ -7044,7 +7046,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7044
7046
|
}
|
|
7045
7047
|
}
|
|
7046
7048
|
registerSharedNode(s, a) {
|
|
7047
|
-
this.sharedNodes.has(s) || this.sharedNodes.set(s, new
|
|
7049
|
+
this.sharedNodes.has(s) || this.sharedNodes.set(s, new uh()), this.sharedNodes.get(s).add(a);
|
|
7048
7050
|
const c = a.options.initialPromotionConfig;
|
|
7049
7051
|
a.promote({
|
|
7050
7052
|
transition: c ? c.transition : void 0,
|
|
@@ -7100,7 +7102,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7100
7102
|
if (!this.instance || this.isSVG)
|
|
7101
7103
|
return;
|
|
7102
7104
|
if (!this.isVisible)
|
|
7103
|
-
return
|
|
7105
|
+
return dh;
|
|
7104
7106
|
const c = {
|
|
7105
7107
|
visibility: ""
|
|
7106
7108
|
}, u = this.getTransformTemplate();
|
|
@@ -7112,7 +7114,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7112
7114
|
return this.options.layoutId && (g.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, g.pointerEvents = Je(s == null ? void 0 : s.pointerEvents) || ""), this.hasProjected && !Yt(this.latestValues) && (g.transform = u ? u({}, "") : "none", this.hasProjected = !1), g;
|
|
7113
7115
|
}
|
|
7114
7116
|
const d = f.animationValues || f.latestValues;
|
|
7115
|
-
this.applyTransformsToTarget(), c.transform =
|
|
7117
|
+
this.applyTransformsToTarget(), c.transform = fh(this.projectionDeltaWithTransform, this.treeScale, d), u && (c.transform = u(d, c.transform));
|
|
7116
7118
|
const { x: h, y: p } = this.projectionDelta;
|
|
7117
7119
|
c.transformOrigin = `${h.origin * 100}% ${p.origin * 100}% 0`, f.animationValues ? c.opacity = f === this ? (l = (a = d.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : c.opacity = f === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
|
|
7118
7120
|
for (const g in De) {
|
|
@@ -7140,10 +7142,10 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7140
7142
|
}
|
|
7141
7143
|
};
|
|
7142
7144
|
}
|
|
7143
|
-
function
|
|
7145
|
+
function ph(t) {
|
|
7144
7146
|
t.updateLayout();
|
|
7145
7147
|
}
|
|
7146
|
-
function
|
|
7148
|
+
function mh(t) {
|
|
7147
7149
|
var e;
|
|
7148
7150
|
const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
|
|
7149
7151
|
if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
|
|
@@ -7187,38 +7189,38 @@ function gh(t) {
|
|
|
7187
7189
|
}
|
|
7188
7190
|
t.options.transition = void 0;
|
|
7189
7191
|
}
|
|
7190
|
-
function
|
|
7192
|
+
function gh(t) {
|
|
7191
7193
|
t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
|
|
7192
7194
|
}
|
|
7193
|
-
function
|
|
7195
|
+
function yh(t) {
|
|
7194
7196
|
t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
|
|
7195
7197
|
}
|
|
7196
|
-
function
|
|
7198
|
+
function vh(t) {
|
|
7197
7199
|
t.clearSnapshot();
|
|
7198
7200
|
}
|
|
7199
7201
|
function gs(t) {
|
|
7200
7202
|
t.clearMeasurements();
|
|
7201
7203
|
}
|
|
7202
|
-
function
|
|
7204
|
+
function xh(t) {
|
|
7203
7205
|
t.isLayoutDirty = !1;
|
|
7204
7206
|
}
|
|
7205
|
-
function
|
|
7207
|
+
function bh(t) {
|
|
7206
7208
|
const { visualElement: e } = t.options;
|
|
7207
7209
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
|
7208
7210
|
}
|
|
7209
7211
|
function ys(t) {
|
|
7210
7212
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
|
7211
7213
|
}
|
|
7212
|
-
function
|
|
7214
|
+
function Sh(t) {
|
|
7213
7215
|
t.resolveTargetDelta();
|
|
7214
7216
|
}
|
|
7215
|
-
function
|
|
7217
|
+
function wh(t) {
|
|
7216
7218
|
t.calcProjection();
|
|
7217
7219
|
}
|
|
7218
|
-
function
|
|
7220
|
+
function Th(t) {
|
|
7219
7221
|
t.resetSkewAndRotation();
|
|
7220
7222
|
}
|
|
7221
|
-
function
|
|
7223
|
+
function Ch(t) {
|
|
7222
7224
|
t.removeLeadSnapshot();
|
|
7223
7225
|
}
|
|
7224
7226
|
function vs(t, e, n) {
|
|
@@ -7227,37 +7229,37 @@ function vs(t, e, n) {
|
|
|
7227
7229
|
function xs(t, e, n, i) {
|
|
7228
7230
|
t.min = K(e.min, n.min, i), t.max = K(e.max, n.max, i);
|
|
7229
7231
|
}
|
|
7230
|
-
function
|
|
7232
|
+
function Ph(t, e, n, i) {
|
|
7231
7233
|
xs(t.x, e.x, n.x, i), xs(t.y, e.y, n.y, i);
|
|
7232
7234
|
}
|
|
7233
|
-
function
|
|
7235
|
+
function Ah(t) {
|
|
7234
7236
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
7235
7237
|
}
|
|
7236
|
-
const
|
|
7238
|
+
const Vh = {
|
|
7237
7239
|
duration: 0.45,
|
|
7238
7240
|
ease: [0.4, 0, 0.1, 1]
|
|
7239
7241
|
}, bs = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ss = bs("applewebkit/") && !bs("chrome/") ? Math.round : ft;
|
|
7240
7242
|
function ws(t) {
|
|
7241
7243
|
t.min = Ss(t.min), t.max = Ss(t.max);
|
|
7242
7244
|
}
|
|
7243
|
-
function
|
|
7245
|
+
function Eh(t) {
|
|
7244
7246
|
ws(t.x), ws(t.y);
|
|
7245
7247
|
}
|
|
7246
7248
|
function va(t, e, n) {
|
|
7247
|
-
return t === "position" || t === "preserve-aspect" && !
|
|
7249
|
+
return t === "position" || t === "preserve-aspect" && !Md(hs(e), hs(n), 0.2);
|
|
7248
7250
|
}
|
|
7249
|
-
function
|
|
7251
|
+
function Rh(t) {
|
|
7250
7252
|
var e;
|
|
7251
7253
|
return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
|
|
7252
7254
|
}
|
|
7253
|
-
const
|
|
7255
|
+
const Mh = ya({
|
|
7254
7256
|
attachResizeListener: (t, e) => Ie(t, "resize", e),
|
|
7255
7257
|
measureScroll: () => ({
|
|
7256
7258
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
7257
7259
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
7258
7260
|
}),
|
|
7259
7261
|
checkIsScrollRoot: () => !0
|
|
7260
|
-
}),
|
|
7262
|
+
}), Bn = {
|
|
7261
7263
|
current: void 0
|
|
7262
7264
|
}, xa = ya({
|
|
7263
7265
|
measureScroll: (t) => ({
|
|
@@ -7265,22 +7267,22 @@ const Dh = ya({
|
|
|
7265
7267
|
y: t.scrollTop
|
|
7266
7268
|
}),
|
|
7267
7269
|
defaultParent: () => {
|
|
7268
|
-
if (
|
|
7269
|
-
const t = new
|
|
7270
|
-
t.mount(window), t.setOptions({ layoutScroll: !0 }),
|
|
7270
|
+
if (!Bn.current) {
|
|
7271
|
+
const t = new Mh({});
|
|
7272
|
+
t.mount(window), t.setOptions({ layoutScroll: !0 }), Bn.current = t;
|
|
7271
7273
|
}
|
|
7272
|
-
return
|
|
7274
|
+
return Bn.current;
|
|
7273
7275
|
},
|
|
7274
7276
|
resetTransform: (t, e) => {
|
|
7275
7277
|
t.style.transform = e !== void 0 ? e : "none";
|
|
7276
7278
|
},
|
|
7277
7279
|
checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
|
|
7278
|
-
}),
|
|
7280
|
+
}), Dh = {
|
|
7279
7281
|
pan: {
|
|
7280
|
-
Feature:
|
|
7282
|
+
Feature: Hd
|
|
7281
7283
|
},
|
|
7282
7284
|
drag: {
|
|
7283
|
-
Feature:
|
|
7285
|
+
Feature: Kd,
|
|
7284
7286
|
ProjectionNode: xa,
|
|
7285
7287
|
MeasureLayout: fa
|
|
7286
7288
|
}
|
|
@@ -7291,15 +7293,15 @@ function Ts(t, e, n) {
|
|
|
7291
7293
|
const r = "onHover" + n, o = i[r];
|
|
7292
7294
|
o && N.postRender(() => o(e, Ne(e)));
|
|
7293
7295
|
}
|
|
7294
|
-
class
|
|
7296
|
+
class Lh extends zt {
|
|
7295
7297
|
mount() {
|
|
7296
7298
|
const { current: e } = this.node;
|
|
7297
|
-
e && (this.unmount =
|
|
7299
|
+
e && (this.unmount = Du(e, (n, i) => (Ts(this.node, i, "Start"), (r) => Ts(this.node, r, "End"))));
|
|
7298
7300
|
}
|
|
7299
7301
|
unmount() {
|
|
7300
7302
|
}
|
|
7301
7303
|
}
|
|
7302
|
-
class
|
|
7304
|
+
class Oh extends zt {
|
|
7303
7305
|
constructor() {
|
|
7304
7306
|
super(...arguments), this.isActive = !1;
|
|
7305
7307
|
}
|
|
@@ -7329,37 +7331,37 @@ function Cs(t, e, n) {
|
|
|
7329
7331
|
const r = "onTap" + (n === "End" ? "" : n), o = i[r];
|
|
7330
7332
|
o && N.postRender(() => o(e, Ne(e)));
|
|
7331
7333
|
}
|
|
7332
|
-
class
|
|
7334
|
+
class kh extends zt {
|
|
7333
7335
|
mount() {
|
|
7334
7336
|
const { current: e } = this.node;
|
|
7335
|
-
e && (this.unmount =
|
|
7337
|
+
e && (this.unmount = Fu(e, (n, i) => (Cs(this.node, i, "Start"), (r, { success: o }) => Cs(this.node, r, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
7336
7338
|
}
|
|
7337
7339
|
unmount() {
|
|
7338
7340
|
}
|
|
7339
7341
|
}
|
|
7340
|
-
const oi = /* @__PURE__ */ new WeakMap(),
|
|
7342
|
+
const oi = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Fh = (t) => {
|
|
7341
7343
|
const e = oi.get(t.target);
|
|
7342
7344
|
e && e(t);
|
|
7343
|
-
},
|
|
7344
|
-
t.forEach(
|
|
7345
|
+
}, Ih = (t) => {
|
|
7346
|
+
t.forEach(Fh);
|
|
7345
7347
|
};
|
|
7346
7348
|
function Bh({ root: t, ...e }) {
|
|
7347
7349
|
const n = t || document;
|
|
7348
|
-
|
|
7349
|
-
const i =
|
|
7350
|
-
return i[r] || (i[r] = new IntersectionObserver(
|
|
7350
|
+
$n.has(n) || $n.set(n, {});
|
|
7351
|
+
const i = $n.get(n), r = JSON.stringify(e);
|
|
7352
|
+
return i[r] || (i[r] = new IntersectionObserver(Ih, { root: t, ...e })), i[r];
|
|
7351
7353
|
}
|
|
7352
|
-
function
|
|
7354
|
+
function $h(t, e, n) {
|
|
7353
7355
|
const i = Bh(e);
|
|
7354
7356
|
return oi.set(t, n), i.observe(t), () => {
|
|
7355
7357
|
oi.delete(t), i.unobserve(t);
|
|
7356
7358
|
};
|
|
7357
7359
|
}
|
|
7358
|
-
const
|
|
7360
|
+
const jh = {
|
|
7359
7361
|
some: 0,
|
|
7360
7362
|
all: 1
|
|
7361
7363
|
};
|
|
7362
|
-
class
|
|
7364
|
+
class _h extends zt {
|
|
7363
7365
|
constructor() {
|
|
7364
7366
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
7365
7367
|
}
|
|
@@ -7368,7 +7370,7 @@ class Nh extends zt {
|
|
|
7368
7370
|
const { viewport: e = {} } = this.node.getProps(), { root: n, margin: i, amount: r = "some", once: o } = e, s = {
|
|
7369
7371
|
root: n ? n.current : void 0,
|
|
7370
7372
|
rootMargin: i,
|
|
7371
|
-
threshold: typeof r == "number" ? r :
|
|
7373
|
+
threshold: typeof r == "number" ? r : jh[r]
|
|
7372
7374
|
}, a = (l) => {
|
|
7373
7375
|
const { isIntersecting: c } = l;
|
|
7374
7376
|
if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
|
|
@@ -7377,7 +7379,7 @@ class Nh extends zt {
|
|
|
7377
7379
|
const { onViewportEnter: u, onViewportLeave: f } = this.node.getProps(), d = c ? u : f;
|
|
7378
7380
|
d && d(l);
|
|
7379
7381
|
};
|
|
7380
|
-
return
|
|
7382
|
+
return $h(this.node.current, s, a);
|
|
7381
7383
|
}
|
|
7382
7384
|
mount() {
|
|
7383
7385
|
this.startObserver();
|
|
@@ -7386,34 +7388,34 @@ class Nh extends zt {
|
|
|
7386
7388
|
if (typeof IntersectionObserver > "u")
|
|
7387
7389
|
return;
|
|
7388
7390
|
const { props: e, prevProps: n } = this.node;
|
|
7389
|
-
["amount", "margin", "root"].some(
|
|
7391
|
+
["amount", "margin", "root"].some(Nh(e, n)) && this.startObserver();
|
|
7390
7392
|
}
|
|
7391
7393
|
unmount() {
|
|
7392
7394
|
}
|
|
7393
7395
|
}
|
|
7394
|
-
function
|
|
7396
|
+
function Nh({ viewport: t = {} }, { viewport: e = {} } = {}) {
|
|
7395
7397
|
return (n) => t[n] !== e[n];
|
|
7396
7398
|
}
|
|
7397
|
-
const
|
|
7399
|
+
const Uh = {
|
|
7398
7400
|
inView: {
|
|
7399
|
-
Feature:
|
|
7401
|
+
Feature: _h
|
|
7400
7402
|
},
|
|
7401
7403
|
tap: {
|
|
7402
|
-
Feature:
|
|
7404
|
+
Feature: kh
|
|
7403
7405
|
},
|
|
7404
7406
|
focus: {
|
|
7405
|
-
Feature:
|
|
7407
|
+
Feature: Oh
|
|
7406
7408
|
},
|
|
7407
7409
|
hover: {
|
|
7408
|
-
Feature:
|
|
7410
|
+
Feature: Lh
|
|
7409
7411
|
}
|
|
7410
|
-
},
|
|
7412
|
+
}, zh = {
|
|
7411
7413
|
layout: {
|
|
7412
7414
|
ProjectionNode: xa,
|
|
7413
7415
|
MeasureLayout: fa
|
|
7414
7416
|
}
|
|
7415
7417
|
}, ai = { current: null }, ba = { current: !1 };
|
|
7416
|
-
function
|
|
7418
|
+
function Wh() {
|
|
7417
7419
|
if (ba.current = !0, !!hi)
|
|
7418
7420
|
if (window.matchMedia) {
|
|
7419
7421
|
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => ai.current = t.matches;
|
|
@@ -7421,8 +7423,8 @@ function Gh() {
|
|
|
7421
7423
|
} else
|
|
7422
7424
|
ai.current = !1;
|
|
7423
7425
|
}
|
|
7424
|
-
const
|
|
7425
|
-
function
|
|
7426
|
+
const Gh = [...Wo, et, Ut], Kh = (t) => Gh.find(zo(t)), Hh = /* @__PURE__ */ new WeakMap();
|
|
7427
|
+
function Yh(t, e, n) {
|
|
7426
7428
|
for (const i in e) {
|
|
7427
7429
|
const r = e[i], o = n[i];
|
|
7428
7430
|
if (nt(r))
|
|
@@ -7451,7 +7453,7 @@ const Ps = [
|
|
|
7451
7453
|
"LayoutAnimationStart",
|
|
7452
7454
|
"LayoutAnimationComplete"
|
|
7453
7455
|
];
|
|
7454
|
-
class
|
|
7456
|
+
class qh {
|
|
7455
7457
|
/**
|
|
7456
7458
|
* This method takes React props and returns found MotionValues. For example, HTML
|
|
7457
7459
|
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
|
@@ -7478,7 +7480,7 @@ class Xh {
|
|
|
7478
7480
|
}
|
|
7479
7481
|
}
|
|
7480
7482
|
mount(e) {
|
|
7481
|
-
this.current = e,
|
|
7483
|
+
this.current = e, Hh.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), ba.current || Wh(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : ai.current, process.env.NODE_ENV !== "production" && yn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
7482
7484
|
}
|
|
7483
7485
|
unmount() {
|
|
7484
7486
|
this.projection && this.projection.unmount(), Nt(this.notifyUpdate), Nt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
@@ -7547,7 +7549,7 @@ class Xh {
|
|
|
7547
7549
|
const o = "on" + r, s = e[o];
|
|
7548
7550
|
s && (this.propEventSubscriptions[r] = this.on(r, s));
|
|
7549
7551
|
}
|
|
7550
|
-
this.prevMotionValues =
|
|
7552
|
+
this.prevMotionValues = Yh(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
|
|
7551
7553
|
}
|
|
7552
7554
|
getProps() {
|
|
7553
7555
|
return this.props;
|
|
@@ -7613,7 +7615,7 @@ class Xh {
|
|
|
7613
7615
|
readValue(e, n) {
|
|
7614
7616
|
var i;
|
|
7615
7617
|
let r = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, e, this.options);
|
|
7616
|
-
return r != null && (typeof r == "string" && (No(r) || Lo(r)) ? r = parseFloat(r) : !
|
|
7618
|
+
return r != null && (typeof r == "string" && (No(r) || Lo(r)) ? r = parseFloat(r) : !Kh(r) && Ut.test(n) && (r = $o(e, n)), this.setBaseTarget(e, nt(r) ? r.get() : r)), nt(r) ? r.get() : r;
|
|
7617
7619
|
}
|
|
7618
7620
|
/**
|
|
7619
7621
|
* Set the base target to later animate back to. This is currently
|
|
@@ -7646,7 +7648,7 @@ class Xh {
|
|
|
7646
7648
|
this.events[e] && this.events[e].notify(...n);
|
|
7647
7649
|
}
|
|
7648
7650
|
}
|
|
7649
|
-
class Sa extends
|
|
7651
|
+
class Sa extends qh {
|
|
7650
7652
|
constructor() {
|
|
7651
7653
|
super(...arguments), this.KeyframeResolver = Go;
|
|
7652
7654
|
}
|
|
@@ -7667,10 +7669,10 @@ class Sa extends Xh {
|
|
|
7667
7669
|
}));
|
|
7668
7670
|
}
|
|
7669
7671
|
}
|
|
7670
|
-
function
|
|
7672
|
+
function Xh(t) {
|
|
7671
7673
|
return window.getComputedStyle(t);
|
|
7672
7674
|
}
|
|
7673
|
-
class
|
|
7675
|
+
class Zh extends Sa {
|
|
7674
7676
|
constructor() {
|
|
7675
7677
|
super(...arguments), this.type = "html", this.renderInstance = lo;
|
|
7676
7678
|
}
|
|
@@ -7679,7 +7681,7 @@ class Jh extends Sa {
|
|
|
7679
7681
|
const i = Ni(n);
|
|
7680
7682
|
return i && i.default || 0;
|
|
7681
7683
|
} else {
|
|
7682
|
-
const i =
|
|
7684
|
+
const i = Xh(e), r = (xi(n) ? i.getPropertyValue(n) : i[n]) || 0;
|
|
7683
7685
|
return typeof r == "string" ? r.trim() : r;
|
|
7684
7686
|
}
|
|
7685
7687
|
}
|
|
@@ -7693,7 +7695,7 @@ class Jh extends Sa {
|
|
|
7693
7695
|
return Ei(e, n, i);
|
|
7694
7696
|
}
|
|
7695
7697
|
}
|
|
7696
|
-
class
|
|
7698
|
+
class Jh extends Sa {
|
|
7697
7699
|
constructor() {
|
|
7698
7700
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = H, this.updateDimensions = () => {
|
|
7699
7701
|
this.current && !this.renderState.dimensions && ao(this.current, this.renderState);
|
|
@@ -7725,15 +7727,15 @@ class Qh extends Sa {
|
|
|
7725
7727
|
this.isSVGTag = Ai(e.tagName), super.mount(e);
|
|
7726
7728
|
}
|
|
7727
7729
|
}
|
|
7728
|
-
const
|
|
7730
|
+
const Qh = (t, e) => Ci(t) ? new Jh(e) : new Zh(e, {
|
|
7729
7731
|
allowProjection: t !== Rs
|
|
7730
|
-
}),
|
|
7731
|
-
...
|
|
7732
|
-
...
|
|
7733
|
-
...
|
|
7734
|
-
...
|
|
7735
|
-
},
|
|
7736
|
-
function
|
|
7732
|
+
}), tp = /* @__PURE__ */ Pu({
|
|
7733
|
+
...wd,
|
|
7734
|
+
...Uh,
|
|
7735
|
+
...Dh,
|
|
7736
|
+
...zh
|
|
7737
|
+
}, Qh), ep = /* @__PURE__ */ Nc(tp);
|
|
7738
|
+
function np(t) {
|
|
7737
7739
|
t.values.forEach((e) => e.stop());
|
|
7738
7740
|
}
|
|
7739
7741
|
function li(t, e) {
|
|
@@ -7744,14 +7746,14 @@ function li(t, e) {
|
|
|
7744
7746
|
});
|
|
7745
7747
|
});
|
|
7746
7748
|
}
|
|
7747
|
-
function
|
|
7749
|
+
function ip(t, e) {
|
|
7748
7750
|
if (Array.isArray(e))
|
|
7749
7751
|
return li(t, e);
|
|
7750
7752
|
if (typeof e == "string")
|
|
7751
7753
|
return li(t, [e]);
|
|
7752
7754
|
Ii(t, e);
|
|
7753
7755
|
}
|
|
7754
|
-
function
|
|
7756
|
+
function rp() {
|
|
7755
7757
|
let t = !1;
|
|
7756
7758
|
const e = /* @__PURE__ */ new Set(), n = {
|
|
7757
7759
|
subscribe(i) {
|
|
@@ -7768,12 +7770,12 @@ function sp() {
|
|
|
7768
7770
|
},
|
|
7769
7771
|
set(i) {
|
|
7770
7772
|
return Dt(t, "controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."), e.forEach((r) => {
|
|
7771
|
-
|
|
7773
|
+
ip(r, i);
|
|
7772
7774
|
});
|
|
7773
7775
|
},
|
|
7774
7776
|
stop() {
|
|
7775
7777
|
e.forEach((i) => {
|
|
7776
|
-
|
|
7778
|
+
np(i);
|
|
7777
7779
|
});
|
|
7778
7780
|
},
|
|
7779
7781
|
mount() {
|
|
@@ -7784,15 +7786,15 @@ function sp() {
|
|
|
7784
7786
|
};
|
|
7785
7787
|
return n;
|
|
7786
7788
|
}
|
|
7787
|
-
function
|
|
7788
|
-
const t = Gs(
|
|
7789
|
+
function sp() {
|
|
7790
|
+
const t = Gs(rp);
|
|
7789
7791
|
return Hs(t.mount, []), t;
|
|
7790
7792
|
}
|
|
7791
|
-
const
|
|
7793
|
+
const op = sp, ap = {
|
|
7792
7794
|
some: 0,
|
|
7793
7795
|
all: 1
|
|
7794
7796
|
};
|
|
7795
|
-
function
|
|
7797
|
+
function lp(t, e, { root: n, margin: i, amount: r = "some" } = {}) {
|
|
7796
7798
|
const o = vo(t), s = /* @__PURE__ */ new WeakMap(), a = (c) => {
|
|
7797
7799
|
c.forEach((u) => {
|
|
7798
7800
|
const f = s.get(u.target);
|
|
@@ -7805,11 +7807,11 @@ function cp(t, e, { root: n, margin: i, amount: r = "some" } = {}) {
|
|
|
7805
7807
|
}, l = new IntersectionObserver(a, {
|
|
7806
7808
|
root: n,
|
|
7807
7809
|
rootMargin: i,
|
|
7808
|
-
threshold: typeof r == "number" ? r :
|
|
7810
|
+
threshold: typeof r == "number" ? r : ap[r]
|
|
7809
7811
|
});
|
|
7810
7812
|
return o.forEach((c) => l.observe(c)), () => l.disconnect();
|
|
7811
7813
|
}
|
|
7812
|
-
function
|
|
7814
|
+
function cp(t, { root: e, margin: n, amount: i, once: r = !1, initial: o = !1 } = {}) {
|
|
7813
7815
|
const [s, a] = xt(o);
|
|
7814
7816
|
return ut(() => {
|
|
7815
7817
|
if (!t.current || r && s)
|
|
@@ -7819,11 +7821,11 @@ function up(t, { root: e, margin: n, amount: i, once: r = !1, initial: o = !1 }
|
|
|
7819
7821
|
margin: n,
|
|
7820
7822
|
amount: i
|
|
7821
7823
|
};
|
|
7822
|
-
return
|
|
7824
|
+
return lp(t.current, l, c);
|
|
7823
7825
|
}, [e, t, n, r, i]), s;
|
|
7824
7826
|
}
|
|
7825
7827
|
var re = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(re || {});
|
|
7826
|
-
const
|
|
7828
|
+
const up = D.section(
|
|
7827
7829
|
({
|
|
7828
7830
|
styles: t,
|
|
7829
7831
|
theme: {
|
|
@@ -7888,13 +7890,13 @@ const fp = D.section(
|
|
|
7888
7890
|
},
|
|
7889
7891
|
t
|
|
7890
7892
|
)
|
|
7891
|
-
),
|
|
7893
|
+
), fp = D(ep.div)({
|
|
7892
7894
|
gap: 15,
|
|
7893
7895
|
width: "100%",
|
|
7894
7896
|
display: "flex",
|
|
7895
7897
|
flexDirection: "column",
|
|
7896
7898
|
maxWidth: "var(--max-width)"
|
|
7897
|
-
}),
|
|
7899
|
+
}), dp = {
|
|
7898
7900
|
hidden: {
|
|
7899
7901
|
opacity: 0
|
|
7900
7902
|
},
|
|
@@ -7907,7 +7909,7 @@ const fp = D.section(
|
|
|
7907
7909
|
type: "spring"
|
|
7908
7910
|
}
|
|
7909
7911
|
}
|
|
7910
|
-
},
|
|
7912
|
+
}, qp = ({
|
|
7911
7913
|
children: t,
|
|
7912
7914
|
zIndex: e = 20,
|
|
7913
7915
|
styles: n = {},
|
|
@@ -7920,13 +7922,13 @@ const fp = D.section(
|
|
|
7920
7922
|
theme: c = j,
|
|
7921
7923
|
noPaddingBottom: u = !1
|
|
7922
7924
|
}) => {
|
|
7923
|
-
const f =
|
|
7925
|
+
const f = op(), d = Ma(), h = cp(d, {
|
|
7924
7926
|
margin: "0px 0px 0px 0px"
|
|
7925
7927
|
});
|
|
7926
7928
|
return ut(() => {
|
|
7927
7929
|
h && f.start("visible");
|
|
7928
7930
|
}, [f, h]), /* @__PURE__ */ A(
|
|
7929
|
-
|
|
7931
|
+
up,
|
|
7930
7932
|
{
|
|
7931
7933
|
id: i,
|
|
7932
7934
|
ref: d,
|
|
@@ -7939,10 +7941,10 @@ const fp = D.section(
|
|
|
7939
7941
|
noPaddingTop: a,
|
|
7940
7942
|
noPaddingBottom: u,
|
|
7941
7943
|
backgroundColor: l || c.main.backgroundColor,
|
|
7942
|
-
children: /* @__PURE__ */ A(
|
|
7944
|
+
children: /* @__PURE__ */ A(fp, { initial: "hidden", animate: f, variants: dp, children: t })
|
|
7943
7945
|
}
|
|
7944
7946
|
);
|
|
7945
|
-
},
|
|
7947
|
+
}, hp = D.div(
|
|
7946
7948
|
({
|
|
7947
7949
|
styles: t,
|
|
7948
7950
|
theme: {
|
|
@@ -7966,7 +7968,7 @@ const fp = D.section(
|
|
|
7966
7968
|
},
|
|
7967
7969
|
t
|
|
7968
7970
|
)
|
|
7969
|
-
),
|
|
7971
|
+
), Xp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(hp, { theme: n, styles: e, children: t }), pp = D.div(
|
|
7970
7972
|
({
|
|
7971
7973
|
styles: t,
|
|
7972
7974
|
theme: {
|
|
@@ -7991,7 +7993,7 @@ const fp = D.section(
|
|
|
7991
7993
|
},
|
|
7992
7994
|
t
|
|
7993
7995
|
)
|
|
7994
|
-
),
|
|
7996
|
+
), mp = D.div({
|
|
7995
7997
|
display: "flex",
|
|
7996
7998
|
flexDirection: "row",
|
|
7997
7999
|
a: {
|
|
@@ -8005,10 +8007,10 @@ const fp = D.section(
|
|
|
8005
8007
|
}
|
|
8006
8008
|
}
|
|
8007
8009
|
}
|
|
8008
|
-
}),
|
|
8010
|
+
}), Zp = ({ navSocial: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(pp, { theme: n, styles: e, children: t.map(({ name: i, link: r }, o) => {
|
|
8009
8011
|
const s = i[0].toUpperCase() + i.slice(1);
|
|
8010
|
-
return /* @__PURE__ */ A(
|
|
8011
|
-
}) }),
|
|
8012
|
+
return /* @__PURE__ */ A(mp, { children: /* @__PURE__ */ A("a", { target: "_blank", "aria-label": i, href: r, children: /* @__PURE__ */ A(Lt, { theme: n, icon: `social${s}` }) }) }, `navSocialItem-${o}`);
|
|
8013
|
+
}) }), gp = D.div(
|
|
8012
8014
|
({
|
|
8013
8015
|
styles: t,
|
|
8014
8016
|
theme: {
|
|
@@ -8031,7 +8033,7 @@ const fp = D.section(
|
|
|
8031
8033
|
},
|
|
8032
8034
|
t
|
|
8033
8035
|
)
|
|
8034
|
-
),
|
|
8036
|
+
), Jp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(gp, { theme: n, styles: e, children: t }), yp = D.form(
|
|
8035
8037
|
({
|
|
8036
8038
|
styles: t,
|
|
8037
8039
|
theme: {
|
|
@@ -8050,9 +8052,9 @@ const fp = D.section(
|
|
|
8050
8052
|
},
|
|
8051
8053
|
t
|
|
8052
8054
|
)
|
|
8053
|
-
),
|
|
8055
|
+
), Qp = ({ action: t, children: e, styles: n = {}, theme: i = j }) => /* @__PURE__ */ A(yp, { theme: i, styles: n, action: t, children: e });
|
|
8054
8056
|
var fn = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(fn || {});
|
|
8055
|
-
const
|
|
8057
|
+
const vp = D.div(
|
|
8056
8058
|
({
|
|
8057
8059
|
theme: {
|
|
8058
8060
|
form: {
|
|
@@ -8078,7 +8080,7 @@ const xp = D.div(
|
|
|
8078
8080
|
},
|
|
8079
8081
|
i
|
|
8080
8082
|
)
|
|
8081
|
-
),
|
|
8083
|
+
), tm = ({ children: t, theme: e = j, styles: n = {}, isActions: i = !1, isMessage: r = !1, align: o = fn.Left }) => /* @__PURE__ */ A(vp, { align: o, theme: e, styles: n, isActions: i, isMessage: r, children: t }), xp = D.input(
|
|
8082
8084
|
({
|
|
8083
8085
|
styles: t,
|
|
8084
8086
|
theme: {
|
|
@@ -8124,7 +8126,7 @@ const xp = D.div(
|
|
|
8124
8126
|
)
|
|
8125
8127
|
);
|
|
8126
8128
|
var Ki = /* @__PURE__ */ ((t) => (t.Text = "text", t.Email = "email", t.Search = "search", t.Number = "number", t.Hidden = "hidden", t.Password = "password", t))(Ki || {});
|
|
8127
|
-
const
|
|
8129
|
+
const bp = ({
|
|
8128
8130
|
name: t,
|
|
8129
8131
|
value: e = "",
|
|
8130
8132
|
styles: n = {},
|
|
@@ -8134,7 +8136,7 @@ const Sp = ({
|
|
|
8134
8136
|
theme: s = j,
|
|
8135
8137
|
onChange: a = void 0
|
|
8136
8138
|
}) => /* @__PURE__ */ A(
|
|
8137
|
-
|
|
8139
|
+
xp,
|
|
8138
8140
|
{
|
|
8139
8141
|
type: i,
|
|
8140
8142
|
id: t,
|
|
@@ -8146,7 +8148,7 @@ const Sp = ({
|
|
|
8146
8148
|
defaultValue: e,
|
|
8147
8149
|
placeholder: o
|
|
8148
8150
|
}
|
|
8149
|
-
),
|
|
8151
|
+
), Sp = D.label(
|
|
8150
8152
|
({
|
|
8151
8153
|
theme: {
|
|
8152
8154
|
form: {
|
|
@@ -8161,10 +8163,10 @@ const Sp = ({
|
|
|
8161
8163
|
textAlign: "left",
|
|
8162
8164
|
fontFamily: `var(--font-${e})`
|
|
8163
8165
|
})
|
|
8164
|
-
),
|
|
8166
|
+
), wp = ({ name: t, label: e, required: n = !1, theme: i = j }) => /* @__PURE__ */ ht(Sp, { htmlFor: t, theme: i, children: [
|
|
8165
8167
|
e,
|
|
8166
8168
|
n ? /* @__PURE__ */ A("span", { children: " *" }) : ""
|
|
8167
|
-
] }),
|
|
8169
|
+
] }), Tp = D.div(
|
|
8168
8170
|
({ styles: t }) => W(
|
|
8169
8171
|
{
|
|
8170
8172
|
width: "100%",
|
|
@@ -8175,11 +8177,11 @@ const Sp = ({
|
|
|
8175
8177
|
},
|
|
8176
8178
|
t
|
|
8177
8179
|
)
|
|
8178
|
-
),
|
|
8180
|
+
), Cp = D.div({
|
|
8179
8181
|
paddingTop: 5,
|
|
8180
8182
|
textAlign: "left",
|
|
8181
8183
|
fontStyle: "italic"
|
|
8182
|
-
}),
|
|
8184
|
+
}), Pp = D.span(
|
|
8183
8185
|
({
|
|
8184
8186
|
theme: {
|
|
8185
8187
|
form: {
|
|
@@ -8192,7 +8194,7 @@ const Sp = ({
|
|
|
8192
8194
|
fontSize: "0.875rem",
|
|
8193
8195
|
marginTop: "0.25rem"
|
|
8194
8196
|
})
|
|
8195
|
-
),
|
|
8197
|
+
), Ap = D.textarea(
|
|
8196
8198
|
({
|
|
8197
8199
|
styles: t,
|
|
8198
8200
|
theme: {
|
|
@@ -8236,7 +8238,7 @@ const Sp = ({
|
|
|
8236
8238
|
},
|
|
8237
8239
|
t
|
|
8238
8240
|
)
|
|
8239
|
-
),
|
|
8241
|
+
), Vp = ({
|
|
8240
8242
|
name: t,
|
|
8241
8243
|
value: e,
|
|
8242
8244
|
rows: n = 2,
|
|
@@ -8246,7 +8248,7 @@ const Sp = ({
|
|
|
8246
8248
|
onChange: s = void 0,
|
|
8247
8249
|
theme: a = j
|
|
8248
8250
|
}) => /* @__PURE__ */ A(
|
|
8249
|
-
|
|
8251
|
+
Ap,
|
|
8250
8252
|
{
|
|
8251
8253
|
id: t,
|
|
8252
8254
|
name: t,
|
|
@@ -8260,7 +8262,7 @@ const Sp = ({
|
|
|
8260
8262
|
}
|
|
8261
8263
|
);
|
|
8262
8264
|
var wa = /* @__PURE__ */ ((t) => (t.Textarea = "textarea", t))(wa || {});
|
|
8263
|
-
const
|
|
8265
|
+
const em = ({
|
|
8264
8266
|
name: t,
|
|
8265
8267
|
label: e = "",
|
|
8266
8268
|
value: n = "",
|
|
@@ -8273,11 +8275,11 @@ const nm = ({
|
|
|
8273
8275
|
theme: c = j,
|
|
8274
8276
|
onChange: u = void 0,
|
|
8275
8277
|
type: f = Ki.Text
|
|
8276
|
-
}) => /* @__PURE__ */ ht(
|
|
8277
|
-
e && /* @__PURE__ */ A(
|
|
8278
|
-
f === wa.Textarea ? /* @__PURE__ */ A(
|
|
8279
|
-
l && /* @__PURE__ */ A(
|
|
8280
|
-
] }),
|
|
8278
|
+
}) => /* @__PURE__ */ ht(Tp, { styles: i, children: [
|
|
8279
|
+
e && /* @__PURE__ */ A(wp, { theme: c, label: e, name: t, required: o }),
|
|
8280
|
+
f === wa.Textarea ? /* @__PURE__ */ A(Vp, { value: n, rows: r, name: t, theme: c, onChange: u, disabled: s, placeholder: a }) : /* @__PURE__ */ A(bp, { value: n, type: f, name: t, theme: c, onChange: u, disabled: s, placeholder: a }),
|
|
8281
|
+
l && /* @__PURE__ */ A(Cp, { children: l instanceof Array ? l.map((d, h) => /* @__PURE__ */ A(Pp, { theme: c, children: d }, h)) : l })
|
|
8282
|
+
] }), Ep = D.div(
|
|
8281
8283
|
({
|
|
8282
8284
|
styles: t,
|
|
8283
8285
|
theme: {
|
|
@@ -8301,7 +8303,7 @@ const nm = ({
|
|
|
8301
8303
|
},
|
|
8302
8304
|
t
|
|
8303
8305
|
)
|
|
8304
|
-
),
|
|
8306
|
+
), Rp = D.div(
|
|
8305
8307
|
({
|
|
8306
8308
|
theme: {
|
|
8307
8309
|
consentCookie: { width: t, borders: e, borderRadius: n, backgroundColor: i, paddingTop: r, paddingLeft: o, paddingRight: s, paddingBottom: a }
|
|
@@ -8343,7 +8345,7 @@ const nm = ({
|
|
|
8343
8345
|
paddingBottom: a[3]
|
|
8344
8346
|
}
|
|
8345
8347
|
})
|
|
8346
|
-
),
|
|
8348
|
+
), Mp = D.div(
|
|
8347
8349
|
({
|
|
8348
8350
|
theme: {
|
|
8349
8351
|
consentCookie: { actionsGap: t, actionsPaddingTop: e }
|
|
@@ -8366,7 +8368,7 @@ const nm = ({
|
|
|
8366
8368
|
}
|
|
8367
8369
|
})
|
|
8368
8370
|
);
|
|
8369
|
-
function
|
|
8371
|
+
function Dp(t) {
|
|
8370
8372
|
const e = t + "=", i = decodeURIComponent(document.cookie).split(";");
|
|
8371
8373
|
for (let r = 0; r < i.length; r++) {
|
|
8372
8374
|
let o = i[r];
|
|
@@ -8377,13 +8379,13 @@ function Lp(t) {
|
|
|
8377
8379
|
}
|
|
8378
8380
|
return "";
|
|
8379
8381
|
}
|
|
8380
|
-
function
|
|
8382
|
+
function Lp(t, e, n) {
|
|
8381
8383
|
const i = /* @__PURE__ */ new Date();
|
|
8382
8384
|
i.setTime(i.getTime() + n * 24 * 60 * 60 * 1e3);
|
|
8383
8385
|
const r = "expires=" + i.toUTCString();
|
|
8384
8386
|
document.cookie = t + "=" + e + ";" + r + ";path=/";
|
|
8385
8387
|
}
|
|
8386
|
-
const
|
|
8388
|
+
const nm = ({
|
|
8387
8389
|
styles: t = {},
|
|
8388
8390
|
children: e = void 0,
|
|
8389
8391
|
theme: n = j,
|
|
@@ -8392,56 +8394,56 @@ const im = ({
|
|
|
8392
8394
|
cookieExpirationDays: o = 365
|
|
8393
8395
|
}) => {
|
|
8394
8396
|
const [s, a] = xt(!1), l = (c) => {
|
|
8395
|
-
a(!1),
|
|
8397
|
+
a(!1), Lp(i, `${c}`, o);
|
|
8396
8398
|
};
|
|
8397
8399
|
return ut(() => {
|
|
8398
|
-
const c =
|
|
8400
|
+
const c = Dp(i), u = c !== "true" && c !== "false", f = c === "true";
|
|
8399
8401
|
u && a(!0);
|
|
8400
8402
|
const d = f ? "granted" : "denied";
|
|
8401
8403
|
typeof window.gtag < "u" && window.gtag("consent", "update", {
|
|
8402
8404
|
analytics_storage: d
|
|
8403
8405
|
});
|
|
8404
|
-
}, [s]), s ? /* @__PURE__ */ A(
|
|
8406
|
+
}, [s]), s ? /* @__PURE__ */ A(Ep, { theme: n, styles: t, children: /* @__PURE__ */ ht(Rp, { theme: n, children: [
|
|
8405
8407
|
e,
|
|
8406
|
-
/* @__PURE__ */ ht(
|
|
8408
|
+
/* @__PURE__ */ ht(Mp, { theme: n, children: [
|
|
8407
8409
|
/* @__PURE__ */ A(sr, { onClick: () => l(!1), children: (r == null ? void 0 : r.actions.reject) || "Reject" }),
|
|
8408
8410
|
/* @__PURE__ */ A(sr, { onClick: () => l(!0), children: (r == null ? void 0 : r.actions.accept) || "Accept" })
|
|
8409
8411
|
] })
|
|
8410
8412
|
] }) }) : null;
|
|
8411
8413
|
};
|
|
8412
8414
|
export {
|
|
8413
|
-
|
|
8415
|
+
Ip as Actions,
|
|
8414
8416
|
be as ActionsAlign,
|
|
8415
8417
|
sr as Button,
|
|
8416
8418
|
Ze as ButtonSize,
|
|
8417
8419
|
Wn as ButtonStyle,
|
|
8418
8420
|
Us as ButtonType,
|
|
8419
8421
|
zn as ButtonVariant,
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
+
jp as Carousel,
|
|
8423
|
+
Kp as Columns,
|
|
8422
8424
|
Se as ColumnsAlign,
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8425
|
+
nm as ConsentCookie,
|
|
8426
|
+
Gp as Footer,
|
|
8427
|
+
Qp as Form,
|
|
8428
|
+
tm as FormRow,
|
|
8427
8429
|
fn as FormRowAlign,
|
|
8428
|
-
|
|
8430
|
+
Wp as Header,
|
|
8429
8431
|
Lt as Icon,
|
|
8430
8432
|
Ki as InputType,
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8433
|
+
_p as KeyNumber,
|
|
8434
|
+
Up as LanguageSwitcher,
|
|
8435
|
+
$p as Logo,
|
|
8436
|
+
zp as Main,
|
|
8435
8437
|
Bp as Modal,
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8438
|
+
Xp as Nav,
|
|
8439
|
+
Jp as NavLegal,
|
|
8440
|
+
Zp as NavSocial,
|
|
8441
|
+
qp as Section,
|
|
8442
|
+
em as TextField,
|
|
8443
|
+
bp as TextFieldInput,
|
|
8444
|
+
wp as TextFieldLabel,
|
|
8445
|
+
Vp as TextFieldTextarea,
|
|
8444
8446
|
wa as TextareaType,
|
|
8445
8447
|
Kl as Video,
|
|
8446
|
-
|
|
8448
|
+
Np as VideoFullWidth
|
|
8447
8449
|
};
|