@latte-macchiat-io/latte-vanilla-components 0.0.123 → 0.0.124
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.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
|
+
), Fp = ({ 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 },
|
@@ -1617,13 +1617,13 @@ const $l = D.div(
|
|
1617
1617
|
"&:hover": {
|
1618
1618
|
transform: "scale(1.2)"
|
1619
1619
|
}
|
1620
|
-
}),
|
1620
|
+
}), Ip = ({
|
1621
1621
|
children: t,
|
1622
1622
|
styles: e = {},
|
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(
|
@@ -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 $p = ({
|
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
|
+
}), jp = ({ 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
|
+
), _p = ({
|
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
|
+
), Np = ({
|
2698
2698
|
currentLocale: t,
|
2699
2699
|
handleChange: e,
|
2700
2700
|
locales: n,
|
@@ -2725,14 +2725,14 @@ function Sc(t, e) {
|
|
2725
2725
|
writable: !1
|
2726
2726
|
}), n;
|
2727
2727
|
}
|
2728
|
-
var wc = "var(--_1wp326d0)", Tc = "var(--_1wp326d1)",
|
2729
|
-
const
|
2730
|
-
const { main: { backgroundColor: i, minHeight: r } } =
|
2731
|
-
return /* @__PURE__ */ A("main", { className:
|
2728
|
+
var wc = "var(--_1wp326d0)", Tc = "var(--_1wp326d1)", Up = { display: "flex", backgroundColor: "var(--_1wp326d1)", flex: "1 1 auto", minHeight: "45vh", textAlign: "center", alignItems: "center", flexDirection: "column", justifyContent: "center", "@media": { "(min-width: 768px)": { minHeight: "var(--_1wp326d0)" } } };
|
2729
|
+
const zp = ({ className: t, children: e, theme: n = j }) => {
|
2730
|
+
const { main: { backgroundColor: i, minHeight: r } } = n;
|
2731
|
+
return /* @__PURE__ */ A("main", { className: t, style: Sc({
|
2732
2732
|
[wc]: r,
|
2733
2733
|
[Tc]: i
|
2734
|
-
}), children:
|
2735
|
-
},
|
2734
|
+
}), children: e });
|
2735
|
+
}, Cc = D.div(
|
2736
2736
|
({
|
2737
2737
|
isOpen: t,
|
2738
2738
|
theme: {
|
@@ -2767,9 +2767,9 @@ const Wp = ({ children: t, theme: e = j, styles: n = "" }) => {
|
|
2767
2767
|
gap: e[3]
|
2768
2768
|
}
|
2769
2769
|
})
|
2770
|
-
),
|
2770
|
+
), Pc = ({ isOpen: t, theme: e = j, children: n }) => (ut(() => {
|
2771
2771
|
document.getElementsByTagName("html")[0].style.overflow = "", t && (document.getElementsByTagName("html")[0].style.overflow = "hidden");
|
2772
|
-
}, [t]), /* @__PURE__ */ A(
|
2772
|
+
}, [t]), /* @__PURE__ */ A(Cc, { isOpen: t, theme: e, children: n })), Ac = D.header(
|
2773
2773
|
({
|
2774
2774
|
styles: t,
|
2775
2775
|
isFixed: e,
|
@@ -2825,7 +2825,7 @@ const Wp = ({ children: t, theme: e = j, styles: n = "" }) => {
|
|
2825
2825
|
},
|
2826
2826
|
t
|
2827
2827
|
)
|
2828
|
-
),
|
2828
|
+
), Vc = D.div(
|
2829
2829
|
({
|
2830
2830
|
theme: {
|
2831
2831
|
header: { height: t }
|
@@ -2842,7 +2842,7 @@ const Wp = ({ children: t, theme: e = j, styles: n = "" }) => {
|
|
2842
2842
|
height: t[3]
|
2843
2843
|
}
|
2844
2844
|
})
|
2845
|
-
),
|
2845
|
+
), Ec = D.button(({ displayOnDesktop: t }) => ({
|
2846
2846
|
border: 0,
|
2847
2847
|
width: 25,
|
2848
2848
|
height: 12,
|
@@ -2876,12 +2876,12 @@ const Wp = ({ children: t, theme: e = j, styles: n = "" }) => {
|
|
2876
2876
|
transform: t ? "rotate(-45deg) translate(4px, -3px)" : "none"
|
2877
2877
|
}
|
2878
2878
|
})
|
2879
|
-
),
|
2879
|
+
), Rc = ({ onToggleNav: t, theme: e = j, isNavOpen: n = !1, displayOnDesktop: i }) => /* @__PURE__ */ ht(Ec, { onClick: () => {
|
2880
2880
|
window.scrollTo({ top: 0, behavior: "smooth" }), t();
|
2881
2881
|
}, "aria-label": "Toggle nav", displayOnDesktop: i, children: [
|
2882
2882
|
/* @__PURE__ */ A(cr, { theme: e, isNavOpen: n }),
|
2883
2883
|
/* @__PURE__ */ A(cr, { theme: e, isNavOpen: n })
|
2884
|
-
] }),
|
2884
|
+
] }), Wp = ({
|
2885
2885
|
children: t,
|
2886
2886
|
styles: e = {},
|
2887
2887
|
isFixed: n = !1,
|
@@ -2892,14 +2892,14 @@ const Wp = ({ children: t, theme: e = j, styles: n = "" }) => {
|
|
2892
2892
|
}) => {
|
2893
2893
|
const [a, l] = xt(!1);
|
2894
2894
|
return /* @__PURE__ */ ht(Rl, { children: [
|
2895
|
-
/* @__PURE__ */ ht(
|
2896
|
-
i && /* @__PURE__ */ A(
|
2895
|
+
/* @__PURE__ */ ht(Ac, { theme: r, styles: e, isFixed: n, children: [
|
2896
|
+
i && /* @__PURE__ */ A(Pc, { theme: r, isOpen: a, children: i }),
|
2897
2897
|
t,
|
2898
|
-
!o && /* @__PURE__ */ A(
|
2898
|
+
!o && /* @__PURE__ */ A(Rc, { theme: r, isNavOpen: a, onToggleNav: () => l(!a), displayOnDesktop: s })
|
2899
2899
|
] }),
|
2900
|
-
n && /* @__PURE__ */ A(
|
2900
|
+
n && /* @__PURE__ */ A(Vc, { theme: r })
|
2901
2901
|
] });
|
2902
|
-
},
|
2902
|
+
}, Mc = D.footer(
|
2903
2903
|
({
|
2904
2904
|
styles: t,
|
2905
2905
|
theme: {
|
@@ -2951,9 +2951,9 @@ const Wp = ({ children: t, theme: e = j, styles: n = "" }) => {
|
|
2951
2951
|
},
|
2952
2952
|
t
|
2953
2953
|
)
|
2954
|
-
),
|
2954
|
+
), Gp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(Mc, { theme: n, styles: e, children: t });
|
2955
2955
|
var Se = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(Se || {});
|
2956
|
-
const
|
2956
|
+
const Dc = D.div(({ theme: t, styles: e, align: n, columns: i, isCentered: r, isInverted: o }) => {
|
2957
2957
|
const s = {
|
2958
2958
|
width: "100%",
|
2959
2959
|
display: "flex",
|
@@ -2990,7 +2990,7 @@ const Lc = D.div(({ theme: t, styles: e, align: n, columns: i, isCentered: r, is
|
|
2990
2990
|
}
|
2991
2991
|
}));
|
2992
2992
|
return W(Object.assign(s, ...a), e);
|
2993
|
-
}),
|
2993
|
+
}), Kp = ({
|
2994
2994
|
columns: t,
|
2995
2995
|
children: e,
|
2996
2996
|
styles: n = {},
|
@@ -2998,7 +2998,7 @@ const Lc = D.div(({ theme: t, styles: e, align: n, columns: i, isCentered: r, is
|
|
2998
2998
|
isCentered: r = !1,
|
2999
2999
|
isInverted: o = !1,
|
3000
3000
|
theme: s = j
|
3001
|
-
}) => /* @__PURE__ */ A(
|
3001
|
+
}) => /* @__PURE__ */ A(Dc, { align: i, theme: s, columns: t, isCentered: r, isInverted: o, styles: n, children: e }), Ws = ue({});
|
3002
3002
|
function Gs(t) {
|
3003
3003
|
const e = _t(null);
|
3004
3004
|
return e.current === null && (e.current = t()), e.current;
|
@@ -3008,7 +3008,7 @@ const di = /* @__PURE__ */ ue(null), Ks = ue({
|
|
3008
3008
|
isStatic: !1,
|
3009
3009
|
reducedMotion: "never"
|
3010
3010
|
});
|
3011
|
-
function
|
3011
|
+
function Lc(t = !0) {
|
3012
3012
|
const e = st(di);
|
3013
3013
|
if (e === null)
|
3014
3014
|
return [!0, null];
|
@@ -3036,7 +3036,7 @@ function pi(t) {
|
|
3036
3036
|
const ae = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
3037
3037
|
const i = e - t;
|
3038
3038
|
return i === 0 ? 1 : (n - t) / i;
|
3039
|
-
}, 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, Oc = {
|
3040
3040
|
skipAnimations: !1,
|
3041
3041
|
useManualTiming: !1
|
3042
3042
|
}, Ge = [
|
@@ -3053,7 +3053,7 @@ const ae = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
|
3053
3053
|
"postRender"
|
3054
3054
|
// Compute
|
3055
3055
|
];
|
3056
|
-
function
|
3056
|
+
function kc(t, e) {
|
3057
3057
|
let n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), r = !1, o = !1;
|
3058
3058
|
const s = /* @__PURE__ */ new WeakSet();
|
3059
3059
|
let a = {
|
@@ -3091,16 +3091,16 @@ function Fc(t, e) {
|
|
3091
3091
|
};
|
3092
3092
|
return c;
|
3093
3093
|
}
|
3094
|
-
const
|
3094
|
+
const Fc = 40;
|
3095
3095
|
function Ys(t, e) {
|
3096
3096
|
let n = !1, i = !0;
|
3097
3097
|
const r = {
|
3098
3098
|
delta: 0,
|
3099
3099
|
timestamp: 0,
|
3100
3100
|
isProcessing: !1
|
3101
|
-
}, o = () => n = !0, s = Ge.reduce((v, w) => (v[w] =
|
3101
|
+
}, o = () => n = !0, s = Ge.reduce((v, w) => (v[w] = kc(o), v), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = s, h = () => {
|
3102
3102
|
const v = performance.now();
|
3103
|
-
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, Fc), 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));
|
3104
3104
|
}, p = () => {
|
3105
3105
|
n = !0, i = !0, r.isProcessing || t(h);
|
3106
3106
|
};
|
@@ -3136,7 +3136,7 @@ for (const t in ur)
|
|
3136
3136
|
le[t] = {
|
3137
3137
|
isEnabled: (e) => ur[t].some((n) => !!e[n])
|
3138
3138
|
};
|
3139
|
-
function
|
3139
|
+
function Ic(t) {
|
3140
3140
|
for (const e in t)
|
3141
3141
|
le[e] = {
|
3142
3142
|
...le[e],
|
@@ -3179,14 +3179,14 @@ function sn(t) {
|
|
3179
3179
|
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Bc.has(t);
|
3180
3180
|
}
|
3181
3181
|
let Xs = (t) => !sn(t);
|
3182
|
-
function
|
3182
|
+
function $c(t) {
|
3183
3183
|
t && (Xs = (e) => e.startsWith("on") ? !sn(e) : t(e));
|
3184
3184
|
}
|
3185
3185
|
try {
|
3186
|
-
|
3186
|
+
$c(require("@emotion/is-prop-valid").default);
|
3187
3187
|
} catch {
|
3188
3188
|
}
|
3189
|
-
function
|
3189
|
+
function jc(t, e, n) {
|
3190
3190
|
const i = {};
|
3191
3191
|
for (const r in t)
|
3192
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
|
@@ -3197,7 +3197,7 @@ const fr = /* @__PURE__ */ new Set();
|
|
3197
3197
|
function yn(t, e, n) {
|
3198
3198
|
t || fr.has(e) || (console.warn(e), fr.add(e));
|
3199
3199
|
}
|
3200
|
-
function
|
3200
|
+
function _c(t) {
|
3201
3201
|
if (typeof Proxy > "u")
|
3202
3202
|
return t;
|
3203
3203
|
const e = /* @__PURE__ */ new Map(), n = (...i) => (process.env.NODE_ENV !== "production" && yn(!1, "motion() is deprecated. Use motion.create() instead."), t(...i));
|
@@ -3232,7 +3232,7 @@ function bn(t) {
|
|
3232
3232
|
function Zs(t) {
|
3233
3233
|
return !!(bn(t) || t.variants);
|
3234
3234
|
}
|
3235
|
-
function
|
3235
|
+
function Nc(t, e) {
|
3236
3236
|
if (bn(t)) {
|
3237
3237
|
const { initial: n, animate: i } = t;
|
3238
3238
|
return {
|
@@ -3242,18 +3242,18 @@ function Uc(t, e) {
|
|
3242
3242
|
}
|
3243
3243
|
return t.inherit !== !1 ? e : {};
|
3244
3244
|
}
|
3245
|
-
function
|
3246
|
-
const { initial: e, animate: n } =
|
3245
|
+
function Uc(t) {
|
3246
|
+
const { initial: e, animate: n } = Nc(t, st(vn));
|
3247
3247
|
return dn(() => ({ initial: e, animate: n }), [dr(e), dr(n)]);
|
3248
3248
|
}
|
3249
3249
|
function dr(t) {
|
3250
3250
|
return Array.isArray(t) ? t.join(" ") : t;
|
3251
3251
|
}
|
3252
|
-
const
|
3252
|
+
const zc = Symbol.for("motionComponentSymbol");
|
3253
3253
|
function Jt(t) {
|
3254
3254
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
3255
3255
|
}
|
3256
|
-
function
|
3256
|
+
function Wc(t, e, n) {
|
3257
3257
|
return Es(
|
3258
3258
|
(i) => {
|
3259
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));
|
@@ -3266,8 +3266,8 @@ function Gc(t, e, n) {
|
|
3266
3266
|
[e]
|
3267
3267
|
);
|
3268
3268
|
}
|
3269
|
-
const yi = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(),
|
3270
|
-
function
|
3269
|
+
const yi = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Gc = "framerAppearId", Js = "data-" + yi(Gc), { schedule: vi, cancel: Hp } = Ys(queueMicrotask, !1), Qs = ue({});
|
3270
|
+
function Kc(t, e, n, i, r) {
|
3271
3271
|
var o, s;
|
3272
3272
|
const { visualElement: a } = st(vn), l = st(qs), c = st(di), u = st(Ks).reducedMotion, f = _t(null);
|
3273
3273
|
i = i || l.renderer, !f.current && i && (f.current = i(t, {
|
@@ -3279,7 +3279,7 @@ function Hc(t, e, n, i, r) {
|
|
3279
3279
|
reducedMotionConfig: u
|
3280
3280
|
}));
|
3281
3281
|
const d = f.current, h = st(Qs);
|
3282
|
-
d && !d.projection && r && (d.type === "html" || d.type === "svg") &&
|
3282
|
+
d && !d.projection && r && (d.type === "html" || d.type === "svg") && Hc(f.current, n, r, h);
|
3283
3283
|
const p = _t(!1);
|
3284
3284
|
Va(() => {
|
3285
3285
|
d && p.current && d.update(n, c);
|
@@ -3294,7 +3294,7 @@ function Hc(t, e, n, i, r) {
|
|
3294
3294
|
}), S.current = !1));
|
3295
3295
|
}), d;
|
3296
3296
|
}
|
3297
|
-
function
|
3297
|
+
function Hc(t, e, n, i) {
|
3298
3298
|
const { layoutId: r, layout: o, drag: s, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
|
3299
3299
|
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : to(t.parent)), t.projection.setOptions({
|
3300
3300
|
layoutId: r,
|
@@ -3318,39 +3318,39 @@ function to(t) {
|
|
3318
3318
|
if (t)
|
3319
3319
|
return t.options.allowProjection !== !1 ? t.projection : to(t.parent);
|
3320
3320
|
}
|
3321
|
-
function
|
3321
|
+
function Yc({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: r }) {
|
3322
3322
|
var o, s;
|
3323
|
-
t &&
|
3323
|
+
t && Ic(t);
|
3324
3324
|
function a(c, u) {
|
3325
3325
|
let f;
|
3326
3326
|
const d = {
|
3327
3327
|
...st(Ks),
|
3328
3328
|
...c,
|
3329
|
-
layoutId:
|
3330
|
-
}, { isStatic: h } = d, p =
|
3329
|
+
layoutId: qc(c)
|
3330
|
+
}, { isStatic: h } = d, p = Uc(c), g = i(c, h);
|
3331
3331
|
if (!h && hi) {
|
3332
|
-
|
3333
|
-
const S =
|
3334
|
-
f = S.MeasureLayout, p.visualElement =
|
3332
|
+
Xc(d, t);
|
3333
|
+
const S = Zc(d);
|
3334
|
+
f = S.MeasureLayout, p.visualElement = Kc(r, g, d, e, S.ProjectionNode);
|
3335
3335
|
}
|
3336
|
-
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, Wc(g, p.visualElement, u), g, h, p.visualElement)] });
|
3337
3337
|
}
|
3338
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 : ""})`}`;
|
3339
3339
|
const l = Vs(a);
|
3340
|
-
return l[
|
3340
|
+
return l[zc] = r, l;
|
3341
3341
|
}
|
3342
|
-
function
|
3342
|
+
function qc({ layoutId: t }) {
|
3343
3343
|
const e = st(Ws).id;
|
3344
3344
|
return e && t !== void 0 ? e + "-" + t : t;
|
3345
3345
|
}
|
3346
|
-
function
|
3346
|
+
function Xc(t, e) {
|
3347
3347
|
const n = st(qs).strict;
|
3348
3348
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
3349
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.";
|
3350
3350
|
t.ignoreStrict ? de(!1, i) : Dt(!1, i);
|
3351
3351
|
}
|
3352
3352
|
}
|
3353
|
-
function
|
3353
|
+
function Zc(t) {
|
3354
3354
|
const { drag: e, layout: n } = le;
|
3355
3355
|
if (!e && !n)
|
3356
3356
|
return {};
|
@@ -3360,8 +3360,8 @@ function Jc(t) {
|
|
3360
3360
|
ProjectionNode: i.ProjectionNode
|
3361
3361
|
};
|
3362
3362
|
}
|
3363
|
-
const eo = (t) => (e) => typeof e == "string" && e.startsWith(t), xi = /* @__PURE__ */ eo("--"),
|
3364
|
-
function
|
3363
|
+
const eo = (t) => (e) => typeof e == "string" && e.startsWith(t), xi = /* @__PURE__ */ eo("--"), Jc = /* @__PURE__ */ eo("var(--"), bi = (t) => Jc(t) ? Qc.test(t.split("/*")[0].trim()) : !1, Qc = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, De = {};
|
3364
|
+
function tu(t) {
|
3365
3365
|
for (const e in t)
|
3366
3366
|
De[e] = t[e], xi(e) && (De[e].isCSSVariable = !0);
|
3367
3367
|
}
|
@@ -3397,15 +3397,15 @@ const nt = (t) => !!(t && t.getVelocity), io = (t, e) => e && typeof t == "numbe
|
|
3397
3397
|
}, Ke = {
|
3398
3398
|
...pe,
|
3399
3399
|
default: 1
|
3400
|
-
},
|
3400
|
+
}, $e = (t) => ({
|
3401
3401
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
3402
3402
|
parse: parseFloat,
|
3403
3403
|
transform: (e) => `${e}${t}`
|
3404
|
-
}), jt = /* @__PURE__ */
|
3404
|
+
}), jt = /* @__PURE__ */ $e("deg"), Rt = /* @__PURE__ */ $e("%"), L = /* @__PURE__ */ $e("px"), eu = /* @__PURE__ */ $e("vh"), nu = /* @__PURE__ */ $e("vw"), hr = {
|
3405
3405
|
...Rt,
|
3406
3406
|
parse: (t) => Rt.parse(t) / 100,
|
3407
3407
|
transform: (t) => Rt.transform(t * 100)
|
3408
|
-
},
|
3408
|
+
}, iu = {
|
3409
3409
|
// Border props
|
3410
3410
|
borderWidth: L,
|
3411
3411
|
borderTopWidth: L,
|
@@ -3441,7 +3441,7 @@ const nt = (t) => !!(t && t.getVelocity), io = (t, e) => e && typeof t == "numbe
|
|
3441
3441
|
// Misc
|
3442
3442
|
backgroundPositionX: L,
|
3443
3443
|
backgroundPositionY: L
|
3444
|
-
},
|
3444
|
+
}, ru = {
|
3445
3445
|
rotate: jt,
|
3446
3446
|
rotateX: jt,
|
3447
3447
|
rotateY: jt,
|
@@ -3470,23 +3470,23 @@ const nt = (t) => !!(t && t.getVelocity), io = (t, e) => e && typeof t == "numbe
|
|
3470
3470
|
...pe,
|
3471
3471
|
transform: Math.round
|
3472
3472
|
}, Si = {
|
3473
|
+
...iu,
|
3473
3474
|
...ru,
|
3474
|
-
...su,
|
3475
3475
|
zIndex: pr,
|
3476
3476
|
size: L,
|
3477
3477
|
// SVG
|
3478
3478
|
fillOpacity: Le,
|
3479
3479
|
strokeOpacity: Le,
|
3480
3480
|
numOctaves: pr
|
3481
|
-
},
|
3481
|
+
}, su = {
|
3482
3482
|
x: "translateX",
|
3483
3483
|
y: "translateY",
|
3484
3484
|
z: "translateZ",
|
3485
3485
|
transformPerspective: "perspective"
|
3486
|
-
},
|
3487
|
-
function
|
3486
|
+
}, ou = he.length;
|
3487
|
+
function au(t, e, n) {
|
3488
3488
|
let i = "", r = !0;
|
3489
|
-
for (let o = 0; o <
|
3489
|
+
for (let o = 0; o < ou; o++) {
|
3490
3490
|
const s = he[o], a = t[s];
|
3491
3491
|
if (a === void 0)
|
3492
3492
|
continue;
|
@@ -3495,7 +3495,7 @@ function lu(t, e, n) {
|
|
3495
3495
|
const c = io(a, Si[s]);
|
3496
3496
|
if (!l) {
|
3497
3497
|
r = !1;
|
3498
|
-
const u =
|
3498
|
+
const u = su[s] || s;
|
3499
3499
|
i += `${u}(${c}) `;
|
3500
3500
|
}
|
3501
3501
|
n && (e[s] = c);
|
@@ -3519,7 +3519,7 @@ function wi(t, e, n) {
|
|
3519
3519
|
l.startsWith("origin") ? (a = !0, o[l] = u) : i[l] = u;
|
3520
3520
|
}
|
3521
3521
|
}
|
3522
|
-
if (e.transform || (s || n ? i.transform =
|
3522
|
+
if (e.transform || (s || n ? i.transform = au(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
|
3523
3523
|
const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
|
3524
3524
|
i.transformOrigin = `${l} ${c} ${u}`;
|
3525
3525
|
}
|
@@ -3534,21 +3534,21 @@ function ro(t, e, n) {
|
|
3534
3534
|
for (const i in e)
|
3535
3535
|
!nt(e[i]) && !no(i, n) && (t[i] = e[i]);
|
3536
3536
|
}
|
3537
|
-
function
|
3537
|
+
function lu({ transformTemplate: t }, e) {
|
3538
3538
|
return dn(() => {
|
3539
3539
|
const n = Ti();
|
3540
3540
|
return wi(n, e, t), Object.assign({}, n.vars, n.style);
|
3541
3541
|
}, [e]);
|
3542
3542
|
}
|
3543
|
-
function
|
3543
|
+
function cu(t, e) {
|
3544
3544
|
const n = t.style || {}, i = {};
|
3545
|
-
return ro(i, n, t), Object.assign(i,
|
3545
|
+
return ro(i, n, t), Object.assign(i, lu(t, e)), i;
|
3546
3546
|
}
|
3547
|
-
function
|
3548
|
-
const n = {}, i =
|
3547
|
+
function uu(t, e) {
|
3548
|
+
const n = {}, i = cu(t, e);
|
3549
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;
|
3550
3550
|
}
|
3551
|
-
const
|
3551
|
+
const fu = [
|
3552
3552
|
"animate",
|
3553
3553
|
"circle",
|
3554
3554
|
"defs",
|
@@ -3588,23 +3588,23 @@ function Ci(t) {
|
|
3588
3588
|
/**
|
3589
3589
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
3590
3590
|
*/
|
3591
|
-
!!(
|
3591
|
+
!!(fu.indexOf(t) > -1 || /**
|
3592
3592
|
* If it contains a capital letter, it's an SVG component
|
3593
3593
|
*/
|
3594
3594
|
/[A-Z]/u.test(t))
|
3595
3595
|
)
|
3596
3596
|
);
|
3597
3597
|
}
|
3598
|
-
const
|
3598
|
+
const du = {
|
3599
3599
|
offset: "stroke-dashoffset",
|
3600
3600
|
array: "stroke-dasharray"
|
3601
|
-
},
|
3601
|
+
}, hu = {
|
3602
3602
|
offset: "strokeDashoffset",
|
3603
3603
|
array: "strokeDasharray"
|
3604
3604
|
};
|
3605
|
-
function
|
3605
|
+
function pu(t, e, n = 1, i = 0, r = !0) {
|
3606
3606
|
t.pathLength = 1;
|
3607
|
-
const o = r ?
|
3607
|
+
const o = r ? du : hu;
|
3608
3608
|
t[o.offset] = L.transform(-i);
|
3609
3609
|
const s = L.transform(e), a = L.transform(n);
|
3610
3610
|
t[o.array] = `${s} ${a}`;
|
@@ -3612,7 +3612,7 @@ function mu(t, e, n = 1, i = 0, r = !0) {
|
|
3612
3612
|
function mr(t, e, n) {
|
3613
3613
|
return typeof t == "string" ? t : L.transform(e + n * t);
|
3614
3614
|
}
|
3615
|
-
function
|
3615
|
+
function mu(t, e, n) {
|
3616
3616
|
const i = mr(e, t.x, t.width), r = mr(n, t.y, t.height);
|
3617
3617
|
return `${i} ${r}`;
|
3618
3618
|
}
|
@@ -3634,13 +3634,13 @@ function Pi(t, {
|
|
3634
3634
|
}
|
3635
3635
|
t.attrs = t.style, t.style = {};
|
3636
3636
|
const { attrs: d, style: h, dimensions: p } = t;
|
3637
|
-
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 = mu(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 && pu(d, s, a, l, !1);
|
3638
3638
|
}
|
3639
3639
|
const so = () => ({
|
3640
3640
|
...Ti(),
|
3641
3641
|
attrs: {}
|
3642
3642
|
}), Ai = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
3643
|
-
function
|
3643
|
+
function gu(t, e, n, i) {
|
3644
3644
|
const r = dn(() => {
|
3645
3645
|
const o = so();
|
3646
3646
|
return Pi(o, e, Ai(i), t.transformTemplate), {
|
@@ -3654,9 +3654,9 @@ function yu(t, e, n, i) {
|
|
3654
3654
|
}
|
3655
3655
|
return r;
|
3656
3656
|
}
|
3657
|
-
function
|
3657
|
+
function yu(t = !1) {
|
3658
3658
|
return (n, i, r, { latestValues: o }, s) => {
|
3659
|
-
const l = (Ci(n) ?
|
3659
|
+
const l = (Ci(n) ? gu : uu)(i, o, s, n), c = jc(i, typeof n == "string", t), u = n !== Rs ? { ...c, ...l, ref: r } : {}, { children: f } = i, d = dn(() => nt(f) ? f.get() : f, [f]);
|
3660
3660
|
return Ea(n, {
|
3661
3661
|
...u,
|
3662
3662
|
children: d
|
@@ -3680,23 +3680,23 @@ function Vi(t, e, n, i) {
|
|
3680
3680
|
}
|
3681
3681
|
return e;
|
3682
3682
|
}
|
3683
|
-
const Kn = (t) => Array.isArray(t),
|
3683
|
+
const Kn = (t) => Array.isArray(t), vu = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), xu = (t) => Kn(t) ? t[t.length - 1] || 0 : t;
|
3684
3684
|
function Je(t) {
|
3685
3685
|
const e = nt(t) ? t.get() : t;
|
3686
|
-
return
|
3686
|
+
return vu(e) ? e.toValue() : e;
|
3687
3687
|
}
|
3688
|
-
function
|
3688
|
+
function bu({ scrapeMotionValuesFromProps: t, createRenderState: e, onUpdate: n }, i, r, o) {
|
3689
3689
|
const s = {
|
3690
|
-
latestValues:
|
3690
|
+
latestValues: Su(i, r, o, t),
|
3691
3691
|
renderState: e()
|
3692
3692
|
};
|
3693
3693
|
return n && (s.onMount = (a) => n({ props: i, current: a, ...s }), s.onUpdate = (a) => n(a)), s;
|
3694
3694
|
}
|
3695
3695
|
const oo = (t) => (e, n) => {
|
3696
|
-
const i = st(vn), r = st(di), o = () =>
|
3696
|
+
const i = st(vn), r = st(di), o = () => bu(t, e, i, r);
|
3697
3697
|
return n ? o() : Gs(o);
|
3698
3698
|
};
|
3699
|
-
function
|
3699
|
+
function Su(t, e, n, i) {
|
3700
3700
|
const r = {}, o = i(t, {});
|
3701
3701
|
for (const d in o)
|
3702
3702
|
r[d] = Je(o[d]);
|
@@ -3734,7 +3734,7 @@ function Ei(t, e, n) {
|
|
3734
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]);
|
3735
3735
|
return o;
|
3736
3736
|
}
|
3737
|
-
const
|
3737
|
+
const wu = {
|
3738
3738
|
useVisualState: oo({
|
3739
3739
|
scrapeMotionValuesFromProps: Ei,
|
3740
3740
|
createRenderState: Ti
|
@@ -3796,7 +3796,7 @@ function fo(t, e, n) {
|
|
3796
3796
|
}
|
3797
3797
|
return i;
|
3798
3798
|
}
|
3799
|
-
const yr = ["x", "y", "width", "height", "cx", "cy", "r"],
|
3799
|
+
const yr = ["x", "y", "width", "height", "cx", "cy", "r"], Tu = {
|
3800
3800
|
useVisualState: oo({
|
3801
3801
|
scrapeMotionValuesFromProps: fo,
|
3802
3802
|
createRenderState: so,
|
@@ -3827,24 +3827,24 @@ const yr = ["x", "y", "width", "height", "cx", "cy", "r"], Cu = {
|
|
3827
3827
|
}
|
3828
3828
|
})
|
3829
3829
|
};
|
3830
|
-
function
|
3830
|
+
function Cu(t, e) {
|
3831
3831
|
return function(i, { forwardMotionProps: r } = { forwardMotionProps: !1 }) {
|
3832
3832
|
const s = {
|
3833
|
-
...Ci(i) ?
|
3833
|
+
...Ci(i) ? Tu : wu,
|
3834
3834
|
preloadedFeatures: t,
|
3835
|
-
useRender:
|
3835
|
+
useRender: yu(r),
|
3836
3836
|
createVisualElement: e,
|
3837
3837
|
Component: i
|
3838
3838
|
};
|
3839
|
-
return
|
3839
|
+
return Yc(s);
|
3840
3840
|
};
|
3841
3841
|
}
|
3842
3842
|
function Oe(t, e, n) {
|
3843
3843
|
const i = t.getProps();
|
3844
3844
|
return Vi(i, e, n !== void 0 ? n : i.custom, t);
|
3845
3845
|
}
|
3846
|
-
const
|
3847
|
-
class
|
3846
|
+
const Pu = /* @__PURE__ */ pi(() => window.ScrollTimeline !== void 0);
|
3847
|
+
class Au {
|
3848
3848
|
constructor(e) {
|
3849
3849
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
3850
3850
|
}
|
@@ -3863,7 +3863,7 @@ class Vu {
|
|
3863
3863
|
}
|
3864
3864
|
attachTimeline(e, n) {
|
3865
3865
|
const i = this.animations.map((r) => {
|
3866
|
-
if (
|
3866
|
+
if (Pu() && r.attachTimeline)
|
3867
3867
|
return r.attachTimeline(e);
|
3868
3868
|
if (typeof n == "function")
|
3869
3869
|
return n(r);
|
@@ -3914,7 +3914,7 @@ class Vu {
|
|
3914
3914
|
this.runAll("complete");
|
3915
3915
|
}
|
3916
3916
|
}
|
3917
|
-
class
|
3917
|
+
class Vu extends Au {
|
3918
3918
|
then(e, n) {
|
3919
3919
|
return Promise.all(this.animations).then(e).catch(n);
|
3920
3920
|
}
|
@@ -3937,17 +3937,17 @@ function Mi(t) {
|
|
3937
3937
|
function vr(t, e) {
|
3938
3938
|
t.timeline = e, t.onfinish = null;
|
3939
3939
|
}
|
3940
|
-
const Di = (t) => Array.isArray(t) && typeof t[0] == "number",
|
3940
|
+
const Di = (t) => Array.isArray(t) && typeof t[0] == "number", Eu = {
|
3941
3941
|
linearEasing: void 0
|
3942
3942
|
};
|
3943
|
-
function
|
3943
|
+
function Ru(t, e) {
|
3944
3944
|
const n = /* @__PURE__ */ pi(t);
|
3945
3945
|
return () => {
|
3946
3946
|
var i;
|
3947
|
-
return (i =
|
3947
|
+
return (i = Eu[e]) !== null && i !== void 0 ? i : n();
|
3948
3948
|
};
|
3949
3949
|
}
|
3950
|
-
const on = /* @__PURE__ */
|
3950
|
+
const on = /* @__PURE__ */ Ru(() => {
|
3951
3951
|
try {
|
3952
3952
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
3953
3953
|
} catch {
|
@@ -4008,7 +4008,7 @@ function xo(t, e) {
|
|
4008
4008
|
function xr(t) {
|
4009
4009
|
return !(t.pointerType === "touch" || yo());
|
4010
4010
|
}
|
4011
|
-
function
|
4011
|
+
function Mu(t, e, n = {}) {
|
4012
4012
|
const [i, r, o] = xo(t, n), s = (a) => {
|
4013
4013
|
if (!xr(a))
|
4014
4014
|
return;
|
@@ -4032,15 +4032,15 @@ function an(t, e) {
|
|
4032
4032
|
} catch {
|
4033
4033
|
}
|
4034
4034
|
}
|
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,
|
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, Du = /* @__PURE__ */ new Set([
|
4036
4036
|
"BUTTON",
|
4037
4037
|
"INPUT",
|
4038
4038
|
"SELECT",
|
4039
4039
|
"TEXTAREA",
|
4040
4040
|
"A"
|
4041
4041
|
]);
|
4042
|
-
function
|
4043
|
-
return
|
4042
|
+
function Lu(t) {
|
4043
|
+
return Du.has(t.tagName) || t.tabIndex !== -1;
|
4044
4044
|
}
|
4045
4045
|
const xe = /* @__PURE__ */ new WeakSet();
|
4046
4046
|
function br(t) {
|
@@ -4051,7 +4051,7 @@ function br(t) {
|
|
4051
4051
|
function En(t, e) {
|
4052
4052
|
t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
|
4053
4053
|
}
|
4054
|
-
const
|
4054
|
+
const Ou = (t, e) => {
|
4055
4055
|
const n = t.currentTarget;
|
4056
4056
|
if (!n)
|
4057
4057
|
return;
|
@@ -4069,7 +4069,7 @@ const ku = (t, e) => {
|
|
4069
4069
|
function Sr(t) {
|
4070
4070
|
return Li(t) && !yo();
|
4071
4071
|
}
|
4072
|
-
function
|
4072
|
+
function ku(t, e, n = {}) {
|
4073
4073
|
const [i, r, o] = xo(t, n), s = (a) => {
|
4074
4074
|
const l = a.currentTarget;
|
4075
4075
|
if (!l || !Sr(a) || xe.has(l))
|
@@ -4078,7 +4078,7 @@ function Fu(t, e, n = {}) {
|
|
4078
4078
|
const c = e(l, a), u = (h, p) => {
|
4079
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 }));
|
4080
4080
|
}, f = (h) => {
|
4081
|
-
(h.isTrusted ?
|
4081
|
+
(h.isTrusted ? Fu(h, l instanceof Element ? l.getBoundingClientRect() : {
|
4082
4082
|
left: 0,
|
4083
4083
|
top: 0,
|
4084
4084
|
right: window.innerWidth,
|
@@ -4092,13 +4092,13 @@ function Fu(t, e, n = {}) {
|
|
4092
4092
|
return i.forEach((a) => {
|
4093
4093
|
a = n.useGlobalTarget ? window : a;
|
4094
4094
|
let l = !1;
|
4095
|
-
a instanceof HTMLElement && (l = !0, !
|
4095
|
+
a instanceof HTMLElement && (l = !0, !Lu(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0)), a.addEventListener("pointerdown", s, r), l && a.addEventListener("focus", (c) => Ou(c, r), r);
|
4096
4096
|
}), o;
|
4097
4097
|
}
|
4098
|
-
function
|
4098
|
+
function Fu(t, e) {
|
4099
4099
|
return t.clientX < e.left || t.clientX > e.right || t.clientY < e.top || t.clientY > e.bottom;
|
4100
4100
|
}
|
4101
|
-
function
|
4101
|
+
function Iu(t) {
|
4102
4102
|
return t === "x" || t === "y" ? Tt[t] ? null : (Tt[t] = !0, () => {
|
4103
4103
|
Tt[t] = !1;
|
4104
4104
|
}) : Tt.x || Tt.y ? null : (Tt.x = Tt.y = !0, () => {
|
@@ -4119,7 +4119,7 @@ function Bu() {
|
|
4119
4119
|
Qe = void 0;
|
4120
4120
|
}
|
4121
4121
|
const Mt = {
|
4122
|
-
now: () => (Qe === void 0 && Mt.set(Z.isProcessing ||
|
4122
|
+
now: () => (Qe === void 0 && Mt.set(Z.isProcessing || Oc.useManualTiming ? Z.timestamp : performance.now()), Qe),
|
4123
4123
|
set: (t) => {
|
4124
4124
|
Qe = t, queueMicrotask(Bu);
|
4125
4125
|
}
|
@@ -4159,8 +4159,8 @@ class Fi {
|
|
4159
4159
|
function wo(t, e) {
|
4160
4160
|
return e ? t * (1e3 / e) : 0;
|
4161
4161
|
}
|
4162
|
-
const wr = 30,
|
4163
|
-
class
|
4162
|
+
const wr = 30, $u = (t) => !isNaN(parseFloat(t));
|
4163
|
+
class ju {
|
4164
4164
|
/**
|
4165
4165
|
* @param init - The initiating value
|
4166
4166
|
* @param config - Optional configuration options
|
@@ -4176,7 +4176,7 @@ class _u {
|
|
4176
4176
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
4177
4177
|
}
|
4178
4178
|
setCurrent(e) {
|
4179
|
-
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 = $u(this.current));
|
4180
4180
|
}
|
4181
4181
|
setPrevFrameValue(e = this.current) {
|
4182
4182
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
@@ -4355,9 +4355,9 @@ class _u {
|
|
4355
4355
|
}
|
4356
4356
|
}
|
4357
4357
|
function ke(t, e) {
|
4358
|
-
return new
|
4358
|
+
return new ju(t, e);
|
4359
4359
|
}
|
4360
|
-
function
|
4360
|
+
function _u(t, e, n) {
|
4361
4361
|
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, ke(n));
|
4362
4362
|
}
|
4363
4363
|
function Ii(t, e) {
|
@@ -4365,44 +4365,44 @@ function Ii(t, e) {
|
|
4365
4365
|
let { transitionEnd: i = {}, transition: r = {}, ...o } = n || {};
|
4366
4366
|
o = { ...o, ...i };
|
4367
4367
|
for (const s in o) {
|
4368
|
-
const a =
|
4369
|
-
|
4368
|
+
const a = xu(o[s]);
|
4369
|
+
_u(t, s, a);
|
4370
4370
|
}
|
4371
4371
|
}
|
4372
|
-
function
|
4372
|
+
function Nu(t) {
|
4373
4373
|
return !!(nt(t) && t.add);
|
4374
4374
|
}
|
4375
4375
|
function qn(t, e) {
|
4376
4376
|
const n = t.getValue("willChange");
|
4377
|
-
if (
|
4377
|
+
if (Nu(n))
|
4378
4378
|
return n.add(e);
|
4379
4379
|
}
|
4380
4380
|
function To(t) {
|
4381
4381
|
return t.props[Js];
|
4382
4382
|
}
|
4383
|
-
const Co = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t,
|
4384
|
-
function
|
4383
|
+
const Co = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Uu = 1e-7, zu = 12;
|
4384
|
+
function Wu(t, e, n, i, r) {
|
4385
4385
|
let o, s, a = 0;
|
4386
4386
|
do
|
4387
4387
|
s = e + (n - e) / 2, o = Co(s, i, r) - t, o > 0 ? n = s : e = s;
|
4388
|
-
while (Math.abs(o) >
|
4388
|
+
while (Math.abs(o) > Uu && ++a < zu);
|
4389
4389
|
return s;
|
4390
4390
|
}
|
4391
4391
|
function je(t, e, n, i) {
|
4392
4392
|
if (t === e && n === i)
|
4393
4393
|
return ft;
|
4394
|
-
const r = (o) =>
|
4394
|
+
const r = (o) => Wu(o, 0, 1, t, n);
|
4395
4395
|
return (o) => o === 0 || o === 1 ? o : Co(r(o), e, i);
|
4396
4396
|
}
|
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),
|
4398
|
-
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 Gu(t) {
|
4399
4399
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Lo(t) : !0;
|
4400
4400
|
}
|
4401
4401
|
const we = (t) => Math.round(t * 1e5) / 1e5, ji = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
4402
|
-
function
|
4402
|
+
function Ku(t) {
|
4403
4403
|
return t == null;
|
4404
4404
|
}
|
4405
|
-
const
|
4405
|
+
const Hu = /^(?:#[\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" && Hu.test(n) && n.startsWith(t) || e && !Ku(n) && Object.prototype.hasOwnProperty.call(n, e)), Oo = (t, e, n) => (i) => {
|
4406
4406
|
if (typeof i != "string")
|
4407
4407
|
return i;
|
4408
4408
|
const [r, o, s, a] = i.match(ji);
|
@@ -4412,15 +4412,15 @@ const Yu = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
4412
4412
|
[n]: parseFloat(s),
|
4413
4413
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
4414
4414
|
};
|
4415
|
-
},
|
4415
|
+
}, Yu = (t) => kt(0, 255, t), Rn = {
|
4416
4416
|
...pe,
|
4417
|
-
transform: (t) => Math.round(
|
4417
|
+
transform: (t) => Math.round(Yu(t))
|
4418
4418
|
}, qt = {
|
4419
4419
|
test: /* @__PURE__ */ _i("rgb", "red"),
|
4420
4420
|
parse: /* @__PURE__ */ Oo("red", "green", "blue"),
|
4421
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)) + ")"
|
4422
4422
|
};
|
4423
|
-
function
|
4423
|
+
function qu(t) {
|
4424
4424
|
let e = "", n = "", i = "", r = "";
|
4425
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), {
|
4426
4426
|
red: parseInt(e, 16),
|
@@ -4431,7 +4431,7 @@ function Xu(t) {
|
|
4431
4431
|
}
|
4432
4432
|
const Xn = {
|
4433
4433
|
test: /* @__PURE__ */ _i("#"),
|
4434
|
-
parse:
|
4434
|
+
parse: qu,
|
4435
4435
|
transform: qt.transform
|
4436
4436
|
}, Qt = {
|
4437
4437
|
test: /* @__PURE__ */ _i("hsl", "hue"),
|
@@ -4441,12 +4441,12 @@ const Xn = {
|
|
4441
4441
|
test: (t) => qt.test(t) || Xn.test(t) || Qt.test(t),
|
4442
4442
|
parse: (t) => qt.test(t) ? qt.parse(t) : Qt.test(t) ? Qt.parse(t) : Xn.parse(t),
|
4443
4443
|
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? qt.transform(t) : Qt.transform(t)
|
4444
|
-
},
|
4445
|
-
function
|
4444
|
+
}, Xu = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
4445
|
+
function Zu(t) {
|
4446
4446
|
var e, n;
|
4447
|
-
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(Xu)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
4448
4448
|
}
|
4449
|
-
const ko = "number", Fo = "color",
|
4449
|
+
const ko = "number", Fo = "color", Ju = "var", Qu = "var(", Tr = "${}", tf = /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;
|
4450
4450
|
function Fe(t) {
|
4451
4451
|
const e = t.toString(), n = [], i = {
|
4452
4452
|
color: [],
|
@@ -4454,13 +4454,13 @@ function Fe(t) {
|
|
4454
4454
|
var: []
|
4455
4455
|
}, r = [];
|
4456
4456
|
let o = 0;
|
4457
|
-
const a = e.replace(
|
4457
|
+
const a = e.replace(tf, (l) => (et.test(l) ? (i.color.push(o), r.push(Fo), n.push(et.parse(l))) : l.startsWith(Qu) ? (i.var.push(o), r.push(Ju), n.push(l)) : (i.number.push(o), r.push(ko), n.push(parseFloat(l))), ++o, Tr)).split(Tr);
|
4458
4458
|
return { values: n, split: a, indexes: i, types: r };
|
4459
4459
|
}
|
4460
4460
|
function Io(t) {
|
4461
4461
|
return Fe(t).values;
|
4462
4462
|
}
|
4463
|
-
function
|
4463
|
+
function Bo(t) {
|
4464
4464
|
const { split: e, types: n } = Fe(t), i = e.length;
|
4465
4465
|
return (r) => {
|
4466
4466
|
let o = "";
|
@@ -4472,18 +4472,18 @@ function $o(t) {
|
|
4472
4472
|
return o;
|
4473
4473
|
};
|
4474
4474
|
}
|
4475
|
-
const
|
4476
|
-
function
|
4475
|
+
const ef = (t) => typeof t == "number" ? 0 : t;
|
4476
|
+
function nf(t) {
|
4477
4477
|
const e = Io(t);
|
4478
|
-
return
|
4478
|
+
return Bo(t)(e.map(ef));
|
4479
4479
|
}
|
4480
4480
|
const Ut = {
|
4481
|
-
test:
|
4481
|
+
test: Zu,
|
4482
4482
|
parse: Io,
|
4483
|
-
createTransformer:
|
4484
|
-
getAnimatableNone:
|
4485
|
-
},
|
4486
|
-
function
|
4483
|
+
createTransformer: Bo,
|
4484
|
+
getAnimatableNone: nf
|
4485
|
+
}, rf = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
4486
|
+
function sf(t) {
|
4487
4487
|
const [e, n] = t.slice(0, -1).split("(");
|
4488
4488
|
if (e === "drop-shadow")
|
4489
4489
|
return t;
|
@@ -4491,16 +4491,16 @@ function of(t) {
|
|
4491
4491
|
if (!i)
|
4492
4492
|
return t;
|
4493
4493
|
const r = n.replace(i, "");
|
4494
|
-
let o =
|
4494
|
+
let o = rf.has(e) ? 1 : 0;
|
4495
4495
|
return i !== n && (o *= 100), e + "(" + o + r + ")";
|
4496
4496
|
}
|
4497
|
-
const
|
4497
|
+
const of = /\b([a-z-]*)\(.*?\)/gu, Zn = {
|
4498
4498
|
...Ut,
|
4499
4499
|
getAnimatableNone: (t) => {
|
4500
|
-
const e = t.match(
|
4501
|
-
return e ? e.map(
|
4500
|
+
const e = t.match(of);
|
4501
|
+
return e ? e.map(sf).join(" ") : t;
|
4502
4502
|
}
|
4503
|
-
},
|
4503
|
+
}, af = {
|
4504
4504
|
...Si,
|
4505
4505
|
// Color props
|
4506
4506
|
color: et,
|
@@ -4516,21 +4516,21 @@ const af = /\b([a-z-]*)\(.*?\)/gu, Zn = {
|
|
4516
4516
|
borderLeftColor: et,
|
4517
4517
|
filter: Zn,
|
4518
4518
|
WebkitFilter: Zn
|
4519
|
-
}, Ni = (t) =>
|
4520
|
-
function
|
4519
|
+
}, Ni = (t) => af[t];
|
4520
|
+
function $o(t, e) {
|
4521
4521
|
let n = Ni(t);
|
4522
4522
|
return n !== Zn && (n = Ut), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
4523
4523
|
}
|
4524
|
-
const
|
4525
|
-
function
|
4524
|
+
const lf = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
4525
|
+
function cf(t, e, n) {
|
4526
4526
|
let i = 0, r;
|
4527
4527
|
for (; i < t.length && !r; ) {
|
4528
4528
|
const o = t[i];
|
4529
|
-
typeof o == "string" && !
|
4529
|
+
typeof o == "string" && !lf.has(o) && Fe(o).values.length && (r = t[i]), i++;
|
4530
4530
|
}
|
4531
4531
|
if (r && n)
|
4532
4532
|
for (const o of e)
|
4533
|
-
t[o] =
|
4533
|
+
t[o] = $o(n, r);
|
4534
4534
|
}
|
4535
4535
|
const Cr = (t) => t === pe || t === L, Pr = (t, e) => parseFloat(t.split(", ")[e]), Ar = (t, e) => (n, { transform: i }) => {
|
4536
4536
|
if (i === "none" || !i)
|
@@ -4542,10 +4542,10 @@ const Cr = (t) => t === pe || t === L, Pr = (t, e) => parseFloat(t.split(", ")[e
|
|
4542
4542
|
const o = i.match(/^matrix\((.+)\)$/u);
|
4543
4543
|
return o ? Pr(o[1], t) : 0;
|
4544
4544
|
}
|
4545
|
-
},
|
4546
|
-
function
|
4545
|
+
}, uf = /* @__PURE__ */ new Set(["x", "y", "z"]), ff = he.filter((t) => !uf.has(t));
|
4546
|
+
function df(t) {
|
4547
4547
|
const e = [];
|
4548
|
-
return
|
4548
|
+
return ff.forEach((n) => {
|
4549
4549
|
const i = t.getValue(n);
|
4550
4550
|
i !== void 0 && (e.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
|
4551
4551
|
}), e;
|
@@ -4570,7 +4570,7 @@ function jo() {
|
|
4570
4570
|
if (Qn) {
|
4571
4571
|
const t = Array.from(Xt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
|
4572
4572
|
e.forEach((i) => {
|
4573
|
-
const r =
|
4573
|
+
const r = df(i);
|
4574
4574
|
r.length && (n.set(i, r), i.render());
|
4575
4575
|
}), t.forEach((i) => i.measureInitialState()), e.forEach((i) => {
|
4576
4576
|
i.render();
|
@@ -4590,7 +4590,7 @@ function _o() {
|
|
4590
4590
|
t.readKeyframes(), t.needsMeasurement && (Qn = !0);
|
4591
4591
|
});
|
4592
4592
|
}
|
4593
|
-
function
|
4593
|
+
function hf() {
|
4594
4594
|
_o(), jo();
|
4595
4595
|
}
|
4596
4596
|
class Ui {
|
@@ -4634,21 +4634,21 @@ class Ui {
|
|
4634
4634
|
this.isComplete || this.scheduleResolve();
|
4635
4635
|
}
|
4636
4636
|
}
|
4637
|
-
const No = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),
|
4637
|
+
const No = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), pf = (
|
4638
4638
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
4639
4639
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
4640
4640
|
);
|
4641
|
-
function
|
4642
|
-
const e =
|
4641
|
+
function mf(t) {
|
4642
|
+
const e = pf.exec(t);
|
4643
4643
|
if (!e)
|
4644
4644
|
return [,];
|
4645
4645
|
const [, n, i, r] = e;
|
4646
4646
|
return [`--${n ?? i}`, r];
|
4647
4647
|
}
|
4648
|
-
const
|
4648
|
+
const gf = 4;
|
4649
4649
|
function Uo(t, e, n = 1) {
|
4650
|
-
Dt(n <=
|
4651
|
-
const [i, r] =
|
4650
|
+
Dt(n <= gf, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
|
4651
|
+
const [i, r] = mf(t);
|
4652
4652
|
if (!i)
|
4653
4653
|
return;
|
4654
4654
|
const o = window.getComputedStyle(e).getPropertyValue(i);
|
@@ -4658,10 +4658,10 @@ function Uo(t, e, n = 1) {
|
|
4658
4658
|
}
|
4659
4659
|
return bi(r) ? Uo(r, e, n + 1) : r;
|
4660
4660
|
}
|
4661
|
-
const zo = (t) => (e) => e.test(t),
|
4661
|
+
const zo = (t) => (e) => e.test(t), yf = {
|
4662
4662
|
test: (t) => t === "auto",
|
4663
4663
|
parse: (t) => t
|
4664
|
-
}, Wo = [pe, L, Rt, jt,
|
4664
|
+
}, Wo = [pe, L, Rt, jt, nu, eu, yf], Vr = (t) => Wo.find(zo(t));
|
4665
4665
|
class Go extends Ui {
|
4666
4666
|
constructor(e, n, i, r, o) {
|
4667
4667
|
super(e, n, i, r, o, !0);
|
@@ -4693,8 +4693,8 @@ class Go extends Ui {
|
|
4693
4693
|
resolveNoneKeyframes() {
|
4694
4694
|
const { unresolvedKeyframes: e, name: n } = this, i = [];
|
4695
4695
|
for (let r = 0; r < e.length; r++)
|
4696
|
-
|
4697
|
-
i.length &&
|
4696
|
+
Gu(e[r]) && i.push(r);
|
4697
|
+
i.length && cf(e, i, n);
|
4698
4698
|
}
|
4699
4699
|
measureInitialState() {
|
4700
4700
|
const { element: e, unresolvedKeyframes: n, name: i } = this;
|
@@ -4720,7 +4720,7 @@ class Go extends Ui {
|
|
4720
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
|
4721
4721
|
(Ut.test(t) || t === "0") && // And it contains numbers and/or colors
|
4722
4722
|
!t.startsWith("url("));
|
4723
|
-
function
|
4723
|
+
function vf(t) {
|
4724
4724
|
const e = t[0];
|
4725
4725
|
if (t.length === 1)
|
4726
4726
|
return !0;
|
@@ -4728,21 +4728,21 @@ function xf(t) {
|
|
4728
4728
|
if (t[n] !== e)
|
4729
4729
|
return !0;
|
4730
4730
|
}
|
4731
|
-
function
|
4731
|
+
function xf(t, e, n, i) {
|
4732
4732
|
const r = t[0];
|
4733
4733
|
if (r === null)
|
4734
4734
|
return !1;
|
4735
4735
|
if (e === "display" || e === "visibility")
|
4736
4736
|
return !0;
|
4737
4737
|
const o = t[t.length - 1], s = Er(r, e), a = Er(o, e);
|
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 :
|
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 : vf(t) || (n === "spring" || Mi(n)) && i;
|
4739
4739
|
}
|
4740
|
-
const
|
4740
|
+
const bf = (t) => t !== null;
|
4741
4741
|
function Sn(t, { repeat: e, repeatType: n = "loop" }, i) {
|
4742
|
-
const r = t.filter(
|
4742
|
+
const r = t.filter(bf), o = e && n !== "loop" && e % 2 === 1 ? 0 : r.length - 1;
|
4743
4743
|
return !o || i === void 0 ? r[o] : i;
|
4744
4744
|
}
|
4745
|
-
const
|
4745
|
+
const Sf = 40;
|
4746
4746
|
class Ko {
|
4747
4747
|
constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: s = "loop", ...a }) {
|
4748
4748
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = Mt.now(), this.options = {
|
@@ -4766,7 +4766,7 @@ class Ko {
|
|
4766
4766
|
* to avoid a sudden jump into the animation.
|
4767
4767
|
*/
|
4768
4768
|
calcStartTime() {
|
4769
|
-
return this.resolvedAt ? this.resolvedAt - this.createdAt >
|
4769
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > Sf ? this.resolvedAt : this.createdAt : this.createdAt;
|
4770
4770
|
}
|
4771
4771
|
/**
|
4772
4772
|
* A getter for resolved data. If keyframes are not yet resolved, accessing
|
@@ -4774,7 +4774,7 @@ class Ko {
|
|
4774
4774
|
* This is a deoptimisation, but at its worst still batches read/writes.
|
4775
4775
|
*/
|
4776
4776
|
get resolved() {
|
4777
|
-
return !this._resolved && !this.hasAttemptedResolve &&
|
4777
|
+
return !this._resolved && !this.hasAttemptedResolve && hf(), this._resolved;
|
4778
4778
|
}
|
4779
4779
|
/**
|
4780
4780
|
* A method to be called when the keyframes resolver completes. This method
|
@@ -4784,7 +4784,7 @@ class Ko {
|
|
4784
4784
|
onKeyframesResolved(e, n) {
|
4785
4785
|
this.resolvedAt = Mt.now(), this.hasAttemptedResolve = !0;
|
4786
4786
|
const { name: i, type: r, velocity: o, delay: s, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
|
4787
|
-
if (!c && !
|
4787
|
+
if (!c && !xf(e, i, r, o))
|
4788
4788
|
if (s)
|
4789
4789
|
this.options.duration = 0;
|
4790
4790
|
else {
|
@@ -4821,7 +4821,7 @@ const K = (t, e, n) => t + (e - t) * n;
|
|
4821
4821
|
function Mn(t, e, n) {
|
4822
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;
|
4823
4823
|
}
|
4824
|
-
function
|
4824
|
+
function wf({ hue: t, saturation: e, lightness: n, alpha: i }) {
|
4825
4825
|
t /= 360, e /= 100, n /= 100;
|
4826
4826
|
let r = 0, o = 0, s = 0;
|
4827
4827
|
if (!e)
|
@@ -4843,13 +4843,13 @@ function ln(t, e) {
|
|
4843
4843
|
const Dn = (t, e, n) => {
|
4844
4844
|
const i = t * t, r = n * (e * e - i) + i;
|
4845
4845
|
return r < 0 ? 0 : Math.sqrt(r);
|
4846
|
-
},
|
4846
|
+
}, Tf = [Xn, qt, Qt], Cf = (t) => Tf.find((e) => e.test(t));
|
4847
4847
|
function Rr(t) {
|
4848
|
-
const e =
|
4848
|
+
const e = Cf(t);
|
4849
4849
|
if (de(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
4850
4850
|
return !1;
|
4851
4851
|
let n = e.parse(t);
|
4852
|
-
return e === Qt && (n =
|
4852
|
+
return e === Qt && (n = wf(n)), n;
|
4853
4853
|
}
|
4854
4854
|
const Mr = (t, e) => {
|
4855
4855
|
const n = Rr(t), i = Rr(e);
|
@@ -4857,15 +4857,15 @@ const Mr = (t, e) => {
|
|
4857
4857
|
return ln(t, e);
|
4858
4858
|
const r = { ...n };
|
4859
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));
|
4860
|
-
},
|
4861
|
-
function
|
4860
|
+
}, Pf = (t, e) => (n) => e(t(n)), _e = (...t) => t.reduce(Pf), ti = /* @__PURE__ */ new Set(["none", "hidden"]);
|
4861
|
+
function Af(t, e) {
|
4862
4862
|
return ti.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
4863
4863
|
}
|
4864
|
-
function
|
4864
|
+
function Vf(t, e) {
|
4865
4865
|
return (n) => K(t, e, n);
|
4866
4866
|
}
|
4867
4867
|
function zi(t) {
|
4868
|
-
return typeof t == "number" ?
|
4868
|
+
return typeof t == "number" ? Vf : typeof t == "string" ? bi(t) ? ln : et.test(t) ? Mr : Mf : Array.isArray(t) ? Ho : typeof t == "object" ? et.test(t) ? Mr : Ef : ln;
|
4869
4869
|
}
|
4870
4870
|
function Ho(t, e) {
|
4871
4871
|
const n = [...t], i = n.length, r = t.map((o, s) => zi(o)(o, e[s]));
|
@@ -4875,7 +4875,7 @@ function Ho(t, e) {
|
|
4875
4875
|
return n;
|
4876
4876
|
};
|
4877
4877
|
}
|
4878
|
-
function
|
4878
|
+
function Ef(t, e) {
|
4879
4879
|
const n = { ...t, ...e }, i = {};
|
4880
4880
|
for (const r in n)
|
4881
4881
|
t[r] !== void 0 && e[r] !== void 0 && (i[r] = zi(t[r])(t[r], e[r]));
|
@@ -4885,7 +4885,7 @@ function Rf(t, e) {
|
|
4885
4885
|
return n;
|
4886
4886
|
};
|
4887
4887
|
}
|
4888
|
-
function
|
4888
|
+
function Rf(t, e) {
|
4889
4889
|
var n;
|
4890
4890
|
const i = [], r = { color: 0, var: 0, number: 0 };
|
4891
4891
|
for (let o = 0; o < e.values.length; o++) {
|
@@ -4894,16 +4894,16 @@ function Mf(t, e) {
|
|
4894
4894
|
}
|
4895
4895
|
return i;
|
4896
4896
|
}
|
4897
|
-
const
|
4897
|
+
const Mf = (t, e) => {
|
4898
4898
|
const n = Ut.createTransformer(e), i = Fe(t), r = Fe(e);
|
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 ?
|
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 ? Af(t, e) : _e(Ho(Rf(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));
|
4900
4900
|
};
|
4901
4901
|
function Yo(t, e, n) {
|
4902
4902
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? K(t, e, n) : zi(t)(t, e);
|
4903
4903
|
}
|
4904
|
-
const
|
4904
|
+
const Df = 5;
|
4905
4905
|
function qo(t, e, n) {
|
4906
|
-
const i = Math.max(e -
|
4906
|
+
const i = Math.max(e - Df, 0);
|
4907
4907
|
return wo(n - t(i), e - i);
|
4908
4908
|
}
|
4909
4909
|
const G = {
|
@@ -4935,7 +4935,7 @@ const G = {
|
|
4935
4935
|
minDamping: 0.05,
|
4936
4936
|
maxDamping: 1
|
4937
4937
|
}, Dr = 1e-3;
|
4938
|
-
function
|
4938
|
+
function Lf({ duration: t = G.duration, bounce: e = G.bounce, velocity: n = G.velocity, mass: i = G.mass }) {
|
4939
4939
|
let r, o;
|
4940
4940
|
de(t <= /* @__PURE__ */ Et(G.maxDuration), "Spring duration must be 10 seconds or less");
|
4941
4941
|
let s = 1 - e;
|
@@ -4952,7 +4952,7 @@ function Of({ duration: t = G.duration, bounce: e = G.bounce, velocity: n = G.ve
|
|
4952
4952
|
const u = Math.exp(-c * t), f = (n - c) * (t * t);
|
4953
4953
|
return u * f;
|
4954
4954
|
});
|
4955
|
-
const a = 5 / t, l =
|
4955
|
+
const a = 5 / t, l = kf(r, o, a);
|
4956
4956
|
if (t = /* @__PURE__ */ Et(t), isNaN(l))
|
4957
4957
|
return {
|
4958
4958
|
stiffness: G.stiffness,
|
@@ -4968,17 +4968,17 @@ function Of({ duration: t = G.duration, bounce: e = G.bounce, velocity: n = G.ve
|
|
4968
4968
|
};
|
4969
4969
|
}
|
4970
4970
|
}
|
4971
|
-
const
|
4972
|
-
function
|
4971
|
+
const Of = 12;
|
4972
|
+
function kf(t, e, n) {
|
4973
4973
|
let i = n;
|
4974
|
-
for (let r = 1; r <
|
4974
|
+
for (let r = 1; r < Of; r++)
|
4975
4975
|
i = i - t(i) / e(i);
|
4976
4976
|
return i;
|
4977
4977
|
}
|
4978
4978
|
function ei(t, e) {
|
4979
4979
|
return t * Math.sqrt(1 - e * e);
|
4980
4980
|
}
|
4981
|
-
const
|
4981
|
+
const Ff = ["duration", "bounce"], If = ["stiffness", "damping", "mass"];
|
4982
4982
|
function Lr(t, e) {
|
4983
4983
|
return e.some((n) => t[n] !== void 0);
|
4984
4984
|
}
|
@@ -4991,7 +4991,7 @@ function Bf(t) {
|
|
4991
4991
|
isResolvedFromDuration: !1,
|
4992
4992
|
...t
|
4993
4993
|
};
|
4994
|
-
if (!Lr(t,
|
4994
|
+
if (!Lr(t, If) && Lr(t, Ff))
|
4995
4995
|
if (t.visualDuration) {
|
4996
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);
|
4997
4997
|
e = {
|
@@ -5001,7 +5001,7 @@ function Bf(t) {
|
|
5001
5001
|
damping: o
|
5002
5002
|
};
|
5003
5003
|
} else {
|
5004
|
-
const n =
|
5004
|
+
const n = Lf(t);
|
5005
5005
|
e = {
|
5006
5006
|
...e,
|
5007
5007
|
...n,
|
@@ -5091,15 +5091,15 @@ function Or({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
5091
5091
|
}
|
5092
5092
|
};
|
5093
5093
|
}
|
5094
|
-
const
|
5094
|
+
const $f = /* @__PURE__ */ je(0.42, 0, 1, 1), jf = /* @__PURE__ */ je(0, 0, 0.58, 1), Zo = /* @__PURE__ */ je(0.42, 0, 0.58, 1), _f = (t) => Array.isArray(t) && typeof t[0] != "number", kr = {
|
5095
5095
|
linear: ft,
|
5096
|
-
easeIn:
|
5096
|
+
easeIn: $f,
|
5097
5097
|
easeInOut: Zo,
|
5098
|
-
easeOut:
|
5099
|
-
circIn:
|
5098
|
+
easeOut: jf,
|
5099
|
+
circIn: $i,
|
5100
5100
|
circInOut: Do,
|
5101
5101
|
circOut: Mo,
|
5102
|
-
backIn:
|
5102
|
+
backIn: Bi,
|
5103
5103
|
backInOut: Eo,
|
5104
5104
|
backOut: Vo,
|
5105
5105
|
anticipate: Ro
|
@@ -5112,7 +5112,7 @@ const jf = /* @__PURE__ */ je(0.42, 0, 1, 1), _f = /* @__PURE__ */ je(0, 0, 0.58
|
|
5112
5112
|
return Dt(kr[t] !== void 0, `Invalid easing type '${t}'`), kr[t];
|
5113
5113
|
return t;
|
5114
5114
|
};
|
5115
|
-
function
|
5115
|
+
function Nf(t, e, n) {
|
5116
5116
|
const i = [], r = n || Yo, o = t.length - 1;
|
5117
5117
|
for (let s = 0; s < o; s++) {
|
5118
5118
|
let a = r(t[s], t[s + 1]);
|
@@ -5124,7 +5124,7 @@ function Uf(t, e, n) {
|
|
5124
5124
|
}
|
5125
5125
|
return i;
|
5126
5126
|
}
|
5127
|
-
function
|
5127
|
+
function Uf(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
5128
5128
|
const o = t.length;
|
5129
5129
|
if (Dt(o === e.length, "Both input and output ranges must be the same length"), o === 1)
|
5130
5130
|
return () => e[0];
|
@@ -5132,7 +5132,7 @@ function zf(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
5132
5132
|
return () => e[1];
|
5133
5133
|
const s = t[0] === t[1];
|
5134
5134
|
t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
|
5135
|
-
const a =
|
5135
|
+
const a = Nf(e, i, r), l = a.length, c = (u) => {
|
5136
5136
|
if (s && u < t[0])
|
5137
5137
|
return e[0];
|
5138
5138
|
let f = 0;
|
@@ -5144,41 +5144,41 @@ function zf(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
5144
5144
|
};
|
5145
5145
|
return n ? (u) => c(kt(t[0], t[o - 1], u)) : c;
|
5146
5146
|
}
|
5147
|
-
function
|
5147
|
+
function zf(t, e) {
|
5148
5148
|
const n = t[t.length - 1];
|
5149
5149
|
for (let i = 1; i <= e; i++) {
|
5150
5150
|
const r = /* @__PURE__ */ ae(0, e, i);
|
5151
5151
|
t.push(K(n, 1, r));
|
5152
5152
|
}
|
5153
5153
|
}
|
5154
|
-
function
|
5154
|
+
function Wf(t) {
|
5155
5155
|
const e = [0];
|
5156
|
-
return
|
5156
|
+
return zf(e, t.length - 1), e;
|
5157
5157
|
}
|
5158
|
-
function
|
5158
|
+
function Gf(t, e) {
|
5159
5159
|
return t.map((n) => n * e);
|
5160
5160
|
}
|
5161
|
-
function
|
5161
|
+
function Kf(t, e) {
|
5162
5162
|
return t.map(() => e || Zo).splice(0, t.length - 1);
|
5163
5163
|
}
|
5164
5164
|
function Te({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
|
5165
|
-
const r =
|
5165
|
+
const r = _f(i) ? i.map(Fr) : Fr(i), o = {
|
5166
5166
|
done: !1,
|
5167
5167
|
value: e[0]
|
5168
|
-
}, s =
|
5168
|
+
}, s = Gf(
|
5169
5169
|
// Only use the provided offsets if they're the correct length
|
5170
5170
|
// TODO Maybe we should warn here if there's a length mismatch
|
5171
|
-
n && n.length === e.length ? n :
|
5171
|
+
n && n.length === e.length ? n : Wf(e),
|
5172
5172
|
t
|
5173
|
-
), a =
|
5174
|
-
ease: Array.isArray(r) ? r :
|
5173
|
+
), a = Uf(s, e, {
|
5174
|
+
ease: Array.isArray(r) ? r : Kf(e, r)
|
5175
5175
|
});
|
5176
5176
|
return {
|
5177
5177
|
calculatedDuration: t,
|
5178
5178
|
next: (l) => (o.value = a(l), o.done = l >= t, o)
|
5179
5179
|
};
|
5180
5180
|
}
|
5181
|
-
const
|
5181
|
+
const Hf = (t) => {
|
5182
5182
|
const e = ({ timestamp: n }) => t(n);
|
5183
5183
|
return {
|
5184
5184
|
start: () => N.update(e, !0),
|
@@ -5189,13 +5189,13 @@ const Yf = (t) => {
|
|
5189
5189
|
*/
|
5190
5190
|
now: () => Z.isProcessing ? Z.timestamp : Mt.now()
|
5191
5191
|
};
|
5192
|
-
},
|
5192
|
+
}, Yf = {
|
5193
5193
|
decay: Or,
|
5194
5194
|
inertia: Or,
|
5195
5195
|
tween: Te,
|
5196
5196
|
keyframes: Te,
|
5197
5197
|
spring: Xo
|
5198
|
-
},
|
5198
|
+
}, qf = (t) => t / 100;
|
5199
5199
|
class Wi extends Ko {
|
5200
5200
|
constructor(e) {
|
5201
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 = () => {
|
@@ -5212,9 +5212,9 @@ class Wi extends Ko {
|
|
5212
5212
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
5213
5213
|
}
|
5214
5214
|
initPlayback(e) {
|
5215
|
-
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 : Yf[n] || Te;
|
5216
5216
|
let l, c;
|
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(
|
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(qf, Yo(e[0], e[1])), e = [0, 100]);
|
5218
5218
|
const u = a({ ...this.options, keyframes: e });
|
5219
5219
|
o === "mirror" && (c = a({
|
5220
5220
|
...this.options,
|
@@ -5285,7 +5285,7 @@ class Wi extends Ko {
|
|
5285
5285
|
}
|
5286
5286
|
if (this.isStopped)
|
5287
5287
|
return;
|
5288
|
-
const { driver: e =
|
5288
|
+
const { driver: e = Hf, onPlay: n, startTime: i } = this.options;
|
5289
5289
|
this.driver || (this.driver = e((o) => this.tick(o))), n && n();
|
5290
5290
|
const r = this.driver.now();
|
5291
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();
|
@@ -5319,7 +5319,7 @@ class Wi extends Ko {
|
|
5319
5319
|
return this.startTime = 0, this.tick(e, !0);
|
5320
5320
|
}
|
5321
5321
|
}
|
5322
|
-
const
|
5322
|
+
const Xf = /* @__PURE__ */ new Set([
|
5323
5323
|
"opacity",
|
5324
5324
|
"clipPath",
|
5325
5325
|
"filter",
|
@@ -5328,7 +5328,7 @@ const Zf = /* @__PURE__ */ new Set([
|
|
5328
5328
|
// or until we implement support for linear() easing.
|
5329
5329
|
// "background-color"
|
5330
5330
|
]);
|
5331
|
-
function
|
5331
|
+
function Zf(t, e, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeInOut", times: l } = {}) {
|
5332
5332
|
const c = { [e]: n };
|
5333
5333
|
l && (c.offset = l);
|
5334
5334
|
const u = go(a, r);
|
@@ -5341,11 +5341,11 @@ function Jf(t, e, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatTyp
|
|
5341
5341
|
direction: s === "reverse" ? "alternate" : "normal"
|
5342
5342
|
});
|
5343
5343
|
}
|
5344
|
-
const
|
5345
|
-
function
|
5344
|
+
const Jf = /* @__PURE__ */ pi(() => Object.hasOwnProperty.call(Element.prototype, "animate")), cn = 10, Qf = 2e4;
|
5345
|
+
function td(t) {
|
5346
5346
|
return Mi(t.type) || t.type === "spring" || !mo(t.ease);
|
5347
5347
|
}
|
5348
|
-
function
|
5348
|
+
function ed(t, e) {
|
5349
5349
|
const n = new Wi({
|
5350
5350
|
...e,
|
5351
5351
|
keyframes: t,
|
@@ -5356,7 +5356,7 @@ function nd(t, e) {
|
|
5356
5356
|
let i = { done: !1, value: t[0] };
|
5357
5357
|
const r = [];
|
5358
5358
|
let o = 0;
|
5359
|
-
for (; !i.done && o <
|
5359
|
+
for (; !i.done && o < Qf; )
|
5360
5360
|
i = n.sample(o), r.push(i.value), o += cn;
|
5361
5361
|
return {
|
5362
5362
|
times: void 0,
|
@@ -5370,7 +5370,7 @@ const Jo = {
|
|
5370
5370
|
backInOut: Eo,
|
5371
5371
|
circInOut: Do
|
5372
5372
|
};
|
5373
|
-
function
|
5373
|
+
function nd(t) {
|
5374
5374
|
return t in Jo;
|
5375
5375
|
}
|
5376
5376
|
class Ir extends Ko {
|
@@ -5383,11 +5383,11 @@ class Ir extends Ko {
|
|
5383
5383
|
let { duration: i = 300, times: r, ease: o, type: s, motionValue: a, name: l, startTime: c } = this.options;
|
5384
5384
|
if (!a.owner || !a.owner.current)
|
5385
5385
|
return !1;
|
5386
|
-
if (typeof o == "string" && on() &&
|
5387
|
-
const { onComplete: f, onUpdate: d, motionValue: h, element: p, ...g } = this.options, S =
|
5386
|
+
if (typeof o == "string" && on() && nd(o) && (o = Jo[o]), td(this.options)) {
|
5387
|
+
const { onComplete: f, onUpdate: d, motionValue: h, element: p, ...g } = this.options, S = ed(e, g);
|
5388
5388
|
e = S.keyframes, e.length === 1 && (e[1] = e[0]), i = S.duration, r = S.times, o = S.ease, s = "keyframes";
|
5389
5389
|
}
|
5390
|
-
const u =
|
5390
|
+
const u = Zf(a.owner.current, l, e, { ...this.options, duration: i, times: r, ease: o });
|
5391
5391
|
return u.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (vr(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
|
5392
5392
|
const { onComplete: f } = this.options;
|
5393
5393
|
a.set(Sn(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
|
@@ -5519,32 +5519,32 @@ class Ir extends Ko {
|
|
5519
5519
|
if (!n || !n.owner || !(n.owner.current instanceof HTMLElement))
|
5520
5520
|
return !1;
|
5521
5521
|
const { onUpdate: l, transformTemplate: c } = n.owner.getProps();
|
5522
|
-
return
|
5522
|
+
return Jf() && i && Xf.has(i) && /**
|
5523
5523
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
5524
5524
|
* no way to read the value from WAAPI every frame.
|
5525
5525
|
*/
|
5526
5526
|
!l && !c && !r && o !== "mirror" && s !== 0 && a !== "inertia";
|
5527
5527
|
}
|
5528
5528
|
}
|
5529
|
-
const
|
5529
|
+
const id = {
|
5530
5530
|
type: "spring",
|
5531
5531
|
stiffness: 500,
|
5532
5532
|
damping: 25,
|
5533
5533
|
restSpeed: 10
|
5534
|
-
},
|
5534
|
+
}, rd = (t) => ({
|
5535
5535
|
type: "spring",
|
5536
5536
|
stiffness: 550,
|
5537
5537
|
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
5538
5538
|
restSpeed: 10
|
5539
|
-
}),
|
5539
|
+
}), sd = {
|
5540
5540
|
type: "keyframes",
|
5541
5541
|
duration: 0.8
|
5542
|
-
},
|
5542
|
+
}, od = {
|
5543
5543
|
type: "keyframes",
|
5544
5544
|
ease: [0.25, 0.1, 0.35, 1],
|
5545
5545
|
duration: 0.3
|
5546
|
-
},
|
5547
|
-
function
|
5546
|
+
}, ad = (t, { keyframes: e }) => e.length > 2 ? sd : Zt.has(t) ? t.startsWith("scale") ? rd(e[1]) : id : od;
|
5547
|
+
function ld({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: r, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
5548
5548
|
return !!Object.keys(u).length;
|
5549
5549
|
}
|
5550
5550
|
const Gi = (t, e, n, i = {}, r, o) => (s) => {
|
@@ -5567,9 +5567,9 @@ const Gi = (t, e, n, i = {}, r, o) => (s) => {
|
|
5567
5567
|
motionValue: e,
|
5568
5568
|
element: o ? void 0 : r
|
5569
5569
|
};
|
5570
|
-
|
5570
|
+
ld(a) || (u = {
|
5571
5571
|
...u,
|
5572
|
-
...
|
5572
|
+
...ad(t, u)
|
5573
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);
|
5574
5574
|
let f = !1;
|
5575
5575
|
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (f = !0)), f && !o && e.get() !== void 0) {
|
@@ -5577,11 +5577,11 @@ const Gi = (t, e, n, i = {}, r, o) => (s) => {
|
|
5577
5577
|
if (d !== void 0)
|
5578
5578
|
return N.update(() => {
|
5579
5579
|
u.onUpdate(d), u.onComplete();
|
5580
|
-
}), new
|
5580
|
+
}), new Vu([]);
|
5581
5581
|
}
|
5582
5582
|
return !o && Ir.supports(u) ? new Ir(u) : new Wi(u);
|
5583
5583
|
};
|
5584
|
-
function
|
5584
|
+
function cd({ protectedKeys: t, needsAnimating: e }, n) {
|
5585
5585
|
const i = t.hasOwnProperty(n) && e[n] !== !0;
|
5586
5586
|
return e[n] = !1, i;
|
5587
5587
|
}
|
@@ -5592,7 +5592,7 @@ function Qo(t, e, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
5592
5592
|
const c = [], u = r && t.animationState && t.animationState.getState()[r];
|
5593
5593
|
for (const f in l) {
|
5594
5594
|
const d = t.getValue(f, (o = t.latestValues[f]) !== null && o !== void 0 ? o : null), h = l[f];
|
5595
|
-
if (h === void 0 || u &&
|
5595
|
+
if (h === void 0 || u && cd(u, f))
|
5596
5596
|
continue;
|
5597
5597
|
const p = {
|
5598
5598
|
delay: n,
|
@@ -5623,7 +5623,7 @@ function ni(t, e, n = {}) {
|
|
5623
5623
|
n.transitionOverride && (o = n.transitionOverride);
|
5624
5624
|
const s = r ? () => Promise.all(Qo(t, r, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
|
5625
5625
|
const { delayChildren: u = 0, staggerChildren: f, staggerDirection: d } = o;
|
5626
|
-
return
|
5626
|
+
return ud(t, e, u + c, f, d, n);
|
5627
5627
|
} : () => Promise.resolve(), { when: l } = o;
|
5628
5628
|
if (l) {
|
5629
5629
|
const [c, u] = l === "beforeChildren" ? [s, a] : [a, s];
|
@@ -5631,16 +5631,16 @@ function ni(t, e, n = {}) {
|
|
5631
5631
|
} else
|
5632
5632
|
return Promise.all([s(), a(n.delay)]);
|
5633
5633
|
}
|
5634
|
-
function
|
5634
|
+
function ud(t, e, n = 0, i = 0, r = 1, o) {
|
5635
5635
|
const s = [], a = (t.variantChildren.size - 1) * i, l = r === 1 ? (c = 0) => c * i : (c = 0) => a - c * i;
|
5636
|
-
return Array.from(t.variantChildren).sort(
|
5636
|
+
return Array.from(t.variantChildren).sort(fd).forEach((c, u) => {
|
5637
5637
|
c.notify("AnimationStart", e), s.push(ni(c, e, {
|
5638
5638
|
...o,
|
5639
5639
|
delay: n + l(u)
|
5640
5640
|
}).then(() => c.notify("AnimationComplete", e)));
|
5641
5641
|
}), Promise.all(s);
|
5642
5642
|
}
|
5643
|
-
function
|
5643
|
+
function fd(t, e) {
|
5644
5644
|
return t.sortNodePosition(e);
|
5645
5645
|
}
|
5646
5646
|
function ta(t, e, n = {}) {
|
@@ -5670,7 +5670,7 @@ function ea(t, e) {
|
|
5670
5670
|
return !1;
|
5671
5671
|
return !0;
|
5672
5672
|
}
|
5673
|
-
const
|
5673
|
+
const dd = gi.length;
|
5674
5674
|
function na(t) {
|
5675
5675
|
if (!t)
|
5676
5676
|
return;
|
@@ -5679,18 +5679,18 @@ function na(t) {
|
|
5679
5679
|
return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
|
5680
5680
|
}
|
5681
5681
|
const e = {};
|
5682
|
-
for (let n = 0; n <
|
5682
|
+
for (let n = 0; n < dd; n++) {
|
5683
5683
|
const i = gi[n], r = t.props[i];
|
5684
5684
|
(Me(r) || r === !1) && (e[i] = r);
|
5685
5685
|
}
|
5686
5686
|
return e;
|
5687
5687
|
}
|
5688
|
-
const
|
5689
|
-
function
|
5688
|
+
const hd = [...mi].reverse(), pd = mi.length;
|
5689
|
+
function md(t) {
|
5690
5690
|
return (e) => Promise.all(e.map(({ animation: n, options: i }) => ta(t, n, i)));
|
5691
5691
|
}
|
5692
|
-
function
|
5693
|
-
let e =
|
5692
|
+
function gd(t) {
|
5693
|
+
let e = md(t), n = Br(), i = !0;
|
5694
5694
|
const r = (l) => (c, u) => {
|
5695
5695
|
var f;
|
5696
5696
|
const d = Oe(t, u, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
|
@@ -5706,8 +5706,8 @@ function yd(t) {
|
|
5706
5706
|
function s(l) {
|
5707
5707
|
const { props: c } = t, u = na(t.parent) || {}, f = [], d = /* @__PURE__ */ new Set();
|
5708
5708
|
let h = {}, p = 1 / 0;
|
5709
|
-
for (let S = 0; S <
|
5710
|
-
const v =
|
5709
|
+
for (let S = 0; S < pd; S++) {
|
5710
|
+
const v = hd[S], w = n[v], T = c[v] !== void 0 ? c[v] : u[v], V = Me(T), m = v === l ? w.isActive : null;
|
5711
5711
|
m === !1 && (p = S);
|
5712
5712
|
let E = T === u[v] && T !== c[v] && V;
|
5713
5713
|
if (E && i && t.manuallyAnimateOnMount && (E = !1), w.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
|
@@ -5715,7 +5715,7 @@ function yd(t) {
|
|
5715
5715
|
!T && !w.prevProp || // Or if the prop doesn't define an animation
|
5716
5716
|
xn(T) || typeof T == "boolean")
|
5717
5717
|
continue;
|
5718
|
-
const M =
|
5718
|
+
const M = yd(w.prevProp, T);
|
5719
5719
|
let y = M || // If we're making this variant active, we want to always make it active
|
5720
5720
|
v === l && w.isActive && !E && V || // If we removed a higher-priority variant (i is in reverse order)
|
5721
5721
|
S > p && V, b = !1;
|
@@ -5775,11 +5775,11 @@ function yd(t) {
|
|
5775
5775
|
setAnimateFunction: o,
|
5776
5776
|
getState: () => n,
|
5777
5777
|
reset: () => {
|
5778
|
-
n =
|
5778
|
+
n = Br(), i = !0;
|
5779
5779
|
}
|
5780
5780
|
};
|
5781
5781
|
}
|
5782
|
-
function
|
5782
|
+
function yd(t, e) {
|
5783
5783
|
return typeof e == "string" ? e !== t : Array.isArray(e) ? !ea(e, t) : !1;
|
5784
5784
|
}
|
5785
5785
|
function Ht(t = !1) {
|
@@ -5790,7 +5790,7 @@ function Ht(t = !1) {
|
|
5790
5790
|
prevResolvedValues: {}
|
5791
5791
|
};
|
5792
5792
|
}
|
5793
|
-
function
|
5793
|
+
function Br() {
|
5794
5794
|
return {
|
5795
5795
|
animate: Ht(!0),
|
5796
5796
|
whileInView: Ht(),
|
@@ -5808,14 +5808,14 @@ class zt {
|
|
5808
5808
|
update() {
|
5809
5809
|
}
|
5810
5810
|
}
|
5811
|
-
class
|
5811
|
+
class vd extends zt {
|
5812
5812
|
/**
|
5813
5813
|
* We dynamically generate the AnimationState manager as it contains a reference
|
5814
5814
|
* to the underlying animation library. We only want to load that if we load this,
|
5815
5815
|
* so people can optionally code split it out using the `m` component.
|
5816
5816
|
*/
|
5817
5817
|
constructor(e) {
|
5818
|
-
super(e), e.animationState || (e.animationState =
|
5818
|
+
super(e), e.animationState || (e.animationState = gd(e));
|
5819
5819
|
}
|
5820
5820
|
updateAnimationControlsSubscription() {
|
5821
5821
|
const { animate: e } = this.node.getProps();
|
@@ -5836,10 +5836,10 @@ class xd extends zt {
|
|
5836
5836
|
this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
|
5837
5837
|
}
|
5838
5838
|
}
|
5839
|
-
let
|
5840
|
-
class
|
5839
|
+
let xd = 0;
|
5840
|
+
class bd extends zt {
|
5841
5841
|
constructor() {
|
5842
|
-
super(...arguments), this.id =
|
5842
|
+
super(...arguments), this.id = xd++;
|
5843
5843
|
}
|
5844
5844
|
update() {
|
5845
5845
|
if (!this.node.presenceContext)
|
@@ -5859,12 +5859,12 @@ class Sd extends zt {
|
|
5859
5859
|
unmount() {
|
5860
5860
|
}
|
5861
5861
|
}
|
5862
|
-
const
|
5862
|
+
const Sd = {
|
5863
5863
|
animation: {
|
5864
|
-
Feature:
|
5864
|
+
Feature: vd
|
5865
5865
|
},
|
5866
5866
|
exit: {
|
5867
|
-
Feature:
|
5867
|
+
Feature: bd
|
5868
5868
|
}
|
5869
5869
|
};
|
5870
5870
|
function Ie(t, e, n, i = { passive: !0 }) {
|
@@ -5878,9 +5878,9 @@ function Ne(t) {
|
|
5878
5878
|
}
|
5879
5879
|
};
|
5880
5880
|
}
|
5881
|
-
const
|
5881
|
+
const wd = (t) => (e) => Li(e) && t(e, Ne(e));
|
5882
5882
|
function te(t, e, n, i) {
|
5883
|
-
return Ie(t, e,
|
5883
|
+
return Ie(t, e, wd(n), i);
|
5884
5884
|
}
|
5885
5885
|
function ia({ top: t, left: e, right: n, bottom: i }) {
|
5886
5886
|
return {
|
@@ -5888,10 +5888,10 @@ function ia({ top: t, left: e, right: n, bottom: i }) {
|
|
5888
5888
|
y: { min: t, max: i }
|
5889
5889
|
};
|
5890
5890
|
}
|
5891
|
-
function
|
5891
|
+
function Td({ x: t, y: e }) {
|
5892
5892
|
return { top: e.min, right: t.max, bottom: e.max, left: t.min };
|
5893
5893
|
}
|
5894
|
-
function
|
5894
|
+
function Cd(t, e) {
|
5895
5895
|
if (!e)
|
5896
5896
|
return t;
|
5897
5897
|
const n = e({ x: t.left, y: t.top }), i = e({ x: t.right, y: t.bottom });
|
@@ -5902,23 +5902,23 @@ function Pd(t, e) {
|
|
5902
5902
|
right: i.x
|
5903
5903
|
};
|
5904
5904
|
}
|
5905
|
-
const ra = 1e-4,
|
5905
|
+
const ra = 1e-4, Pd = 1 - ra, Ad = 1 + ra, sa = 0.01, Vd = 0 - sa, Ed = 0 + sa;
|
5906
5906
|
function ot(t) {
|
5907
5907
|
return t.max - t.min;
|
5908
5908
|
}
|
5909
|
-
function
|
5909
|
+
function Rd(t, e, n) {
|
5910
5910
|
return Math.abs(t - e) <= n;
|
5911
5911
|
}
|
5912
|
-
function
|
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 >=
|
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 >= Pd && t.scale <= Ad || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Vd && t.translate <= Ed || isNaN(t.translate)) && (t.translate = 0);
|
5914
5914
|
}
|
5915
5915
|
function Ce(t, e, n, i) {
|
5916
|
-
|
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);
|
5917
5917
|
}
|
5918
5918
|
function jr(t, e, n) {
|
5919
5919
|
t.min = n.min + e.min, t.max = t.min + ot(e);
|
5920
5920
|
}
|
5921
|
-
function
|
5921
|
+
function Md(t, e, n) {
|
5922
5922
|
jr(t.x, e.x, n.x), jr(t.y, e.y, n.y);
|
5923
5923
|
}
|
5924
5924
|
function _r(t, e, n) {
|
@@ -5971,7 +5971,7 @@ function aa(t, { x: e, y: n }) {
|
|
5971
5971
|
ri(t.x, e.translate, e.scale, e.originPoint), ri(t.y, n.translate, n.scale, n.originPoint);
|
5972
5972
|
}
|
5973
5973
|
const Gr = 0.999999999999, Kr = 1.0000000000001;
|
5974
|
-
function
|
5974
|
+
function Dd(t, e, n, i = !1) {
|
5975
5975
|
const r = n.length;
|
5976
5976
|
if (!r)
|
5977
5977
|
return;
|
@@ -5998,14 +5998,14 @@ function ie(t, e) {
|
|
5998
5998
|
Hr(t.x, e.x, e.scaleX, e.scale, e.originX), Hr(t.y, e.y, e.scaleY, e.scale, e.originY);
|
5999
5999
|
}
|
6000
6000
|
function la(t, e) {
|
6001
|
-
return ia(
|
6001
|
+
return ia(Cd(t.getBoundingClientRect(), e));
|
6002
6002
|
}
|
6003
|
-
function
|
6003
|
+
function Ld(t, e, n) {
|
6004
6004
|
const i = la(t, n), { scroll: r } = e;
|
6005
6005
|
return r && (ne(i.x, r.offset.x), ne(i.y, r.offset.y)), i;
|
6006
6006
|
}
|
6007
6007
|
const Yr = (t, e) => Math.abs(t - e);
|
6008
|
-
function
|
6008
|
+
function Od(t, e) {
|
6009
6009
|
const n = Yr(t.x, e.x), i = Yr(t.y, e.y);
|
6010
6010
|
return Math.sqrt(n ** 2 + i ** 2);
|
6011
6011
|
}
|
@@ -6014,7 +6014,7 @@ class ca {
|
|
6014
6014
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = () => {
|
6015
6015
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
6016
6016
|
return;
|
6017
|
-
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 = Od(u.offset, { x: 0, y: 0 }) >= 3;
|
6018
6018
|
if (!f && !d)
|
6019
6019
|
return;
|
6020
6020
|
const { point: h } = u, { timestamp: p } = Z;
|
@@ -6061,17 +6061,17 @@ function kn({ point: t }, e) {
|
|
6061
6061
|
return {
|
6062
6062
|
point: t,
|
6063
6063
|
delta: qr(t, ua(e)),
|
6064
|
-
offset: qr(t,
|
6065
|
-
velocity:
|
6064
|
+
offset: qr(t, kd(e)),
|
6065
|
+
velocity: Fd(e, 0.1)
|
6066
6066
|
};
|
6067
6067
|
}
|
6068
|
-
function
|
6068
|
+
function kd(t) {
|
6069
6069
|
return t[0];
|
6070
6070
|
}
|
6071
6071
|
function ua(t) {
|
6072
6072
|
return t[t.length - 1];
|
6073
6073
|
}
|
6074
|
-
function
|
6074
|
+
function Fd(t, e) {
|
6075
6075
|
if (t.length < 2)
|
6076
6076
|
return { x: 0, y: 0 };
|
6077
6077
|
let n = t.length - 1, i = null;
|
@@ -6089,7 +6089,7 @@ function Id(t, e) {
|
|
6089
6089
|
};
|
6090
6090
|
return s.x === 1 / 0 && (s.x = 0), s.y === 1 / 0 && (s.y = 0), s;
|
6091
6091
|
}
|
6092
|
-
function
|
6092
|
+
function Id(t, { min: e, max: n }, i) {
|
6093
6093
|
return e !== void 0 && t < e ? t = i ? K(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? K(n, t, i.max) : Math.min(t, n)), t;
|
6094
6094
|
}
|
6095
6095
|
function Xr(t, e, n) {
|
@@ -6108,23 +6108,23 @@ function Zr(t, e) {
|
|
6108
6108
|
let n = e.min - t.min, i = e.max - t.max;
|
6109
6109
|
return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
|
6110
6110
|
}
|
6111
|
-
function
|
6111
|
+
function $d(t, e) {
|
6112
6112
|
return {
|
6113
6113
|
x: Zr(t.x, e.x),
|
6114
6114
|
y: Zr(t.y, e.y)
|
6115
6115
|
};
|
6116
6116
|
}
|
6117
|
-
function
|
6117
|
+
function jd(t, e) {
|
6118
6118
|
let n = 0.5;
|
6119
6119
|
const i = ot(t), r = ot(e);
|
6120
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);
|
6121
6121
|
}
|
6122
|
-
function
|
6122
|
+
function _d(t, e) {
|
6123
6123
|
const n = {};
|
6124
6124
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
6125
6125
|
}
|
6126
6126
|
const si = 0.35;
|
6127
|
-
function
|
6127
|
+
function Nd(t = si) {
|
6128
6128
|
return t === !1 ? t = 0 : t === !0 && (t = si), {
|
6129
6129
|
x: Jr(t, "left", "right"),
|
6130
6130
|
y: Jr(t, "top", "bottom")
|
@@ -6139,8 +6139,8 @@ function Jr(t, e, n) {
|
|
6139
6139
|
function Qr(t, e) {
|
6140
6140
|
return typeof t == "number" ? t : t[e] || 0;
|
6141
6141
|
}
|
6142
|
-
const
|
6143
|
-
class
|
6142
|
+
const Ud = /* @__PURE__ */ new WeakMap();
|
6143
|
+
class zd {
|
6144
6144
|
constructor(e) {
|
6145
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;
|
6146
6146
|
}
|
@@ -6153,7 +6153,7 @@ class Wd {
|
|
6153
6153
|
f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ne(u).point);
|
6154
6154
|
}, o = (u, f) => {
|
6155
6155
|
const { drag: d, dragPropagation: h, onDragStart: p } = this.getProps();
|
6156
|
-
if (d && !h && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
6156
|
+
if (d && !h && (this.openDragLock && this.openDragLock(), this.openDragLock = Iu(d), !this.openDragLock))
|
6157
6157
|
return;
|
6158
6158
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), vt((S) => {
|
6159
6159
|
let v = this.getAxisMotionValue(S).get() || 0;
|
@@ -6174,7 +6174,7 @@ class Wd {
|
|
6174
6174
|
return;
|
6175
6175
|
const { offset: S } = f;
|
6176
6176
|
if (h && this.currentDirection === null) {
|
6177
|
-
this.currentDirection =
|
6177
|
+
this.currentDirection = Wd(S), this.currentDirection !== null && p && p(this.currentDirection);
|
6178
6178
|
return;
|
6179
6179
|
}
|
6180
6180
|
this.updateAxis("x", f.point, S), this.updateAxis("y", f.point, S), this.visualElement.render(), g && g(u, f);
|
@@ -6215,13 +6215,13 @@ class Wd {
|
|
6215
6215
|
return;
|
6216
6216
|
const o = this.getAxisMotionValue(e);
|
6217
6217
|
let s = this.originPoint[e] + i[e];
|
6218
|
-
this.constraints && this.constraints[e] && (s =
|
6218
|
+
this.constraints && this.constraints[e] && (s = Id(s, this.constraints[e], this.elastic[e])), o.set(s);
|
6219
6219
|
}
|
6220
6220
|
resolveConstraints() {
|
6221
6221
|
var e;
|
6222
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;
|
6223
|
-
n && Jt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && r ? this.constraints = Bd(r.layoutBox, n) : this.constraints = !1, this.elastic =
|
6224
|
-
this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] =
|
6223
|
+
n && Jt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && r ? this.constraints = Bd(r.layoutBox, n) : this.constraints = !1, this.elastic = Nd(i), o !== this.constraints && r && this.constraints && !this.hasMutatedConstraints && vt((s) => {
|
6224
|
+
this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = _d(r.layoutBox[s], this.constraints[s]));
|
6225
6225
|
});
|
6226
6226
|
}
|
6227
6227
|
resolveRefConstraints() {
|
@@ -6233,10 +6233,10 @@ class Wd {
|
|
6233
6233
|
const { projection: r } = this.visualElement;
|
6234
6234
|
if (!r || !r.layout)
|
6235
6235
|
return !1;
|
6236
|
-
const o =
|
6237
|
-
let s =
|
6236
|
+
const o = Ld(i, r.root, this.visualElement.getTransformPagePoint());
|
6237
|
+
let s = $d(r.layout.layoutBox, o);
|
6238
6238
|
if (n) {
|
6239
|
-
const a = n(
|
6239
|
+
const a = n(Td(s));
|
6240
6240
|
this.hasMutatedConstraints = !!a, a && (s = ia(a));
|
6241
6241
|
}
|
6242
6242
|
return s;
|
@@ -6318,7 +6318,7 @@ class Wd {
|
|
6318
6318
|
const a = this.getAxisMotionValue(s);
|
6319
6319
|
if (a && this.constraints !== !1) {
|
6320
6320
|
const l = a.get();
|
6321
|
-
r[s] =
|
6321
|
+
r[s] = jd({ min: l, max: l }, this.constraints[s]);
|
6322
6322
|
}
|
6323
6323
|
});
|
6324
6324
|
const { transformTemplate: o } = this.visualElement.getProps();
|
@@ -6332,7 +6332,7 @@ class Wd {
|
|
6332
6332
|
addListeners() {
|
6333
6333
|
if (!this.visualElement.current)
|
6334
6334
|
return;
|
6335
|
-
|
6335
|
+
Ud.set(this.visualElement, this);
|
6336
6336
|
const e = this.visualElement.current, n = te(e, "pointerdown", (l) => {
|
6337
6337
|
const { drag: c, dragListener: u = !0 } = this.getProps();
|
6338
6338
|
c && u && this.start(l);
|
@@ -6367,13 +6367,13 @@ class Wd {
|
|
6367
6367
|
function He(t, e, n) {
|
6368
6368
|
return (e === !0 || e === t) && (n === null || n === t);
|
6369
6369
|
}
|
6370
|
-
function
|
6370
|
+
function Wd(t, e = 10) {
|
6371
6371
|
let n = null;
|
6372
6372
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
6373
6373
|
}
|
6374
|
-
class
|
6374
|
+
class Gd extends zt {
|
6375
6375
|
constructor(e) {
|
6376
|
-
super(e), this.removeGroupControls = ft, this.removeListeners = ft, this.controls = new
|
6376
|
+
super(e), this.removeGroupControls = ft, this.removeListeners = ft, this.controls = new zd(e);
|
6377
6377
|
}
|
6378
6378
|
mount() {
|
6379
6379
|
const { dragControls: e } = this.node.getProps();
|
@@ -6386,7 +6386,7 @@ class Kd extends zt {
|
|
6386
6386
|
const ts = (t) => (e, n) => {
|
6387
6387
|
t && N.postRender(() => t(e, n));
|
6388
6388
|
};
|
6389
|
-
class
|
6389
|
+
class Kd extends zt {
|
6390
6390
|
constructor() {
|
6391
6391
|
super(...arguments), this.removePointerDownListener = ft;
|
6392
6392
|
}
|
@@ -6443,7 +6443,7 @@ const ye = {
|
|
6443
6443
|
const n = es(t, e.target.x), i = es(t, e.target.y);
|
6444
6444
|
return `${n}% ${i}%`;
|
6445
6445
|
}
|
6446
|
-
},
|
6446
|
+
}, Hd = {
|
6447
6447
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
6448
6448
|
const i = t, r = Ut.parse(t);
|
6449
6449
|
if (r.length > 5)
|
@@ -6454,7 +6454,7 @@ const ye = {
|
|
6454
6454
|
return typeof r[2 + s] == "number" && (r[2 + s] /= c), typeof r[3 + s] == "number" && (r[3 + s] /= c), o(r);
|
6455
6455
|
}
|
6456
6456
|
};
|
6457
|
-
class
|
6457
|
+
class Yd extends Ra {
|
6458
6458
|
/**
|
6459
6459
|
* This only mounts projection nodes for components that
|
6460
6460
|
* need measuring, we might want to do it for all components
|
@@ -6462,7 +6462,7 @@ class qd extends Ra {
|
|
6462
6462
|
*/
|
6463
6463
|
componentDidMount() {
|
6464
6464
|
const { visualElement: e, layoutGroup: n, switchLayoutGroup: i, layoutId: r } = this.props, { projection: o } = e;
|
6465
|
-
|
6465
|
+
tu(qd), o && (n.group && n.group.add(o), i && i.register && r && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
|
6466
6466
|
this.safeToRemove();
|
6467
6467
|
}), o.setOptions({
|
6468
6468
|
...o.options,
|
@@ -6495,10 +6495,10 @@ class qd extends Ra {
|
|
6495
6495
|
}
|
6496
6496
|
}
|
6497
6497
|
function fa(t) {
|
6498
|
-
const [e, n] =
|
6499
|
-
return As(
|
6498
|
+
const [e, n] = Lc(), i = st(Ws);
|
6499
|
+
return As(Yd, { ...t, layoutGroup: i, switchLayoutGroup: st(Qs), isPresent: e, safeToRemove: n });
|
6500
6500
|
}
|
6501
|
-
const
|
6501
|
+
const qd = {
|
6502
6502
|
borderRadius: {
|
6503
6503
|
...ye,
|
6504
6504
|
applyTo: [
|
@@ -6512,17 +6512,17 @@ const Xd = {
|
|
6512
6512
|
borderTopRightRadius: ye,
|
6513
6513
|
borderBottomLeftRadius: ye,
|
6514
6514
|
borderBottomRightRadius: ye,
|
6515
|
-
boxShadow:
|
6515
|
+
boxShadow: Hd
|
6516
6516
|
};
|
6517
|
-
function
|
6517
|
+
function Xd(t, e, n) {
|
6518
6518
|
const i = nt(t) ? t : ke(t);
|
6519
6519
|
return i.start(Gi("", i, e, n)), i.animation;
|
6520
6520
|
}
|
6521
|
-
function
|
6521
|
+
function Zd(t) {
|
6522
6522
|
return t instanceof SVGElement && t.tagName !== "svg";
|
6523
6523
|
}
|
6524
|
-
const
|
6525
|
-
class
|
6524
|
+
const Jd = (t, e) => t.depth - e.depth;
|
6525
|
+
class Qd {
|
6526
6526
|
constructor() {
|
6527
6527
|
this.children = [], this.isDirty = !1;
|
6528
6528
|
}
|
@@ -6533,25 +6533,25 @@ class th {
|
|
6533
6533
|
ki(this.children, e), this.isDirty = !0;
|
6534
6534
|
}
|
6535
6535
|
forEach(e) {
|
6536
|
-
this.isDirty && this.children.sort(
|
6536
|
+
this.isDirty && this.children.sort(Jd), this.isDirty = !1, this.children.forEach(e);
|
6537
6537
|
}
|
6538
6538
|
}
|
6539
|
-
function
|
6539
|
+
function th(t, e) {
|
6540
6540
|
const n = Mt.now(), i = ({ timestamp: r }) => {
|
6541
6541
|
const o = r - n;
|
6542
6542
|
o >= e && (Nt(i), t(o - e));
|
6543
6543
|
};
|
6544
6544
|
return N.read(i, !0), () => Nt(i);
|
6545
6545
|
}
|
6546
|
-
const da = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"],
|
6547
|
-
function
|
6546
|
+
const da = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], eh = da.length, ns = (t) => typeof t == "string" ? parseFloat(t) : t, is = (t) => typeof t == "number" || L.test(t);
|
6547
|
+
function nh(t, e, n, i, r, o) {
|
6548
6548
|
r ? (t.opacity = K(
|
6549
6549
|
0,
|
6550
6550
|
// TODO Reinstate this if only child
|
6551
6551
|
n.opacity !== void 0 ? n.opacity : 1,
|
6552
|
-
|
6553
|
-
), t.opacityExit = K(e.opacity !== void 0 ? e.opacity : 1, 0,
|
6554
|
-
for (let s = 0; s <
|
6552
|
+
ih(i)
|
6553
|
+
), t.opacityExit = K(e.opacity !== void 0 ? e.opacity : 1, 0, rh(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 < eh; s++) {
|
6555
6555
|
const a = `border${da[s]}Radius`;
|
6556
6556
|
let l = rs(e, a), c = rs(n, a);
|
6557
6557
|
if (l === void 0 && c === void 0)
|
@@ -6563,7 +6563,7 @@ function ih(t, e, n, i, r, o) {
|
|
6563
6563
|
function rs(t, e) {
|
6564
6564
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
6565
6565
|
}
|
6566
|
-
const
|
6566
|
+
const ih = /* @__PURE__ */ ha(0, 0.5, Mo), rh = /* @__PURE__ */ ha(0.5, 0.95, ft);
|
6567
6567
|
function ha(t, e, n) {
|
6568
6568
|
return (i) => i < t ? 0 : i > e ? 1 : n(/* @__PURE__ */ ae(t, e, i));
|
6569
6569
|
}
|
@@ -6579,18 +6579,18 @@ function os(t, e) {
|
|
6579
6579
|
function as(t, e, n, i, r) {
|
6580
6580
|
return t -= e, t = un(t, 1 / n, i), r !== void 0 && (t = un(t, 1 / r, i)), t;
|
6581
6581
|
}
|
6582
|
-
function
|
6582
|
+
function sh(t, e = 0, n = 1, i = 0.5, r, o = t, s = t) {
|
6583
6583
|
if (Rt.test(e) && (e = parseFloat(e), e = K(s.min, s.max, e / 100) - s.min), typeof e != "number")
|
6584
6584
|
return;
|
6585
6585
|
let a = K(o.min, o.max, i);
|
6586
6586
|
t === o && (a -= e), t.min = as(t.min, e, n, a, r), t.max = as(t.max, e, n, a, r);
|
6587
6587
|
}
|
6588
6588
|
function ls(t, e, [n, i, r], o, s) {
|
6589
|
-
|
6589
|
+
sh(t, e[n], e[i], e[r], e.scale, o, s);
|
6590
6590
|
}
|
6591
|
-
const
|
6591
|
+
const oh = ["x", "scaleX", "originX"], ah = ["y", "scaleY", "originY"];
|
6592
6592
|
function cs(t, e, n, i) {
|
6593
|
-
ls(t.x, e,
|
6593
|
+
ls(t.x, e, oh, n ? n.x : void 0, i ? i.x : void 0), ls(t.y, e, ah, n ? n.y : void 0, i ? i.y : void 0);
|
6594
6594
|
}
|
6595
6595
|
function us(t) {
|
6596
6596
|
return t.translate === 0 && t.scale === 1;
|
@@ -6601,7 +6601,7 @@ function pa(t) {
|
|
6601
6601
|
function fs(t, e) {
|
6602
6602
|
return t.min === e.min && t.max === e.max;
|
6603
6603
|
}
|
6604
|
-
function
|
6604
|
+
function lh(t, e) {
|
6605
6605
|
return fs(t.x, e.x) && fs(t.y, e.y);
|
6606
6606
|
}
|
6607
6607
|
function ds(t, e) {
|
@@ -6616,7 +6616,7 @@ function hs(t) {
|
|
6616
6616
|
function ps(t, e) {
|
6617
6617
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
6618
6618
|
}
|
6619
|
-
class
|
6619
|
+
class ch {
|
6620
6620
|
constructor() {
|
6621
6621
|
this.members = [];
|
6622
6622
|
}
|
@@ -6670,7 +6670,7 @@ class uh {
|
|
6670
6670
|
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
6671
6671
|
}
|
6672
6672
|
}
|
6673
|
-
function
|
6673
|
+
function uh(t, e, n) {
|
6674
6674
|
let i = "";
|
6675
6675
|
const r = t.x.translate / e.x, o = t.y.translate / e.y, s = (n == null ? void 0 : n.z) || 0;
|
6676
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) {
|
@@ -6680,8 +6680,8 @@ function fh(t, e, n) {
|
|
6680
6680
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
6681
6681
|
return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
|
6682
6682
|
}
|
6683
|
-
const Fn = ["", "X", "Y", "Z"],
|
6684
|
-
let
|
6683
|
+
const Fn = ["", "X", "Y", "Z"], fh = { visibility: "hidden" }, ms = 1e3;
|
6684
|
+
let dh = 0;
|
6685
6685
|
function In(t, e, n, i) {
|
6686
6686
|
const { latestValues: r } = e;
|
6687
6687
|
r[t] && (n[t] = r[t], e.setStaticValue(t, 0), i && (i[t] = 0));
|
@@ -6703,14 +6703,14 @@ function ga(t) {
|
|
6703
6703
|
function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: r }) {
|
6704
6704
|
return class {
|
6705
6705
|
constructor(s = {}, a = e == null ? void 0 : e()) {
|
6706
|
-
this.id =
|
6706
|
+
this.id = dh++, 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 = () => {
|
6707
6707
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
6708
6708
|
}, this.updateProjection = () => {
|
6709
|
-
this.projectionUpdateScheduled = !1, this.nodes.forEach(
|
6709
|
+
this.projectionUpdateScheduled = !1, this.nodes.forEach(mh), this.nodes.forEach(bh), this.nodes.forEach(Sh), this.nodes.forEach(gh);
|
6710
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;
|
6711
6711
|
for (let l = 0; l < this.path.length; l++)
|
6712
6712
|
this.path[l].shouldResetTransform = !0;
|
6713
|
-
this.root === this && (this.nodes = new
|
6713
|
+
this.root === this && (this.nodes = new Qd());
|
6714
6714
|
}
|
6715
6715
|
addEventListener(s, a) {
|
6716
6716
|
return this.eventHandlers.has(s) || this.eventHandlers.set(s, new Fi()), this.eventHandlers.get(s).add(a);
|
@@ -6728,13 +6728,13 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6728
6728
|
mount(s, a = this.root.hasTreeAnimated) {
|
6729
6729
|
if (this.instance)
|
6730
6730
|
return;
|
6731
|
-
this.isSVG =
|
6731
|
+
this.isSVG = Zd(s), this.instance = s;
|
6732
6732
|
const { layoutId: l, layout: c, visualElement: u } = this.options;
|
6733
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) {
|
6734
6734
|
let f;
|
6735
6735
|
const d = () => this.root.updateBlockedByResize = !1;
|
6736
6736
|
t(s, () => {
|
6737
|
-
this.root.updateBlockedByResize = !0, f && f(), f =
|
6737
|
+
this.root.updateBlockedByResize = !0, f && f(), f = th(d, 250), tn.hasAnimatedSinceResize && (tn.hasAnimatedSinceResize = !1, this.nodes.forEach(ys));
|
6738
6738
|
});
|
6739
6739
|
}
|
6740
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 }) => {
|
@@ -6742,7 +6742,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6742
6742
|
this.target = void 0, this.relativeTarget = void 0;
|
6743
6743
|
return;
|
6744
6744
|
}
|
6745
|
-
const g = this.options.transition || u.getDefaultTransition() ||
|
6745
|
+
const g = this.options.transition || u.getDefaultTransition() || Ah, { onLayoutAnimationStart: S, onLayoutAnimationComplete: v } = u.getProps(), w = !this.targetLayout || !ma(this.targetLayout, p), T = !d && h;
|
6746
6746
|
if (this.options.layoutRoot || this.resumeFrom || T || d && (w || !this.currentAnimation)) {
|
6747
6747
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, T);
|
6748
6748
|
const V = {
|
@@ -6776,7 +6776,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6776
6776
|
}
|
6777
6777
|
// Note: currently only running on root node
|
6778
6778
|
startUpdate() {
|
6779
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
6779
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(wh), this.animationId++);
|
6780
6780
|
}
|
6781
6781
|
getTransformTemplate() {
|
6782
6782
|
const { visualElement: s } = this.options;
|
@@ -6805,7 +6805,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6805
6805
|
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(gs);
|
6806
6806
|
return;
|
6807
6807
|
}
|
6808
|
-
this.isUpdating || this.nodes.forEach(
|
6808
|
+
this.isUpdating || this.nodes.forEach(vh), this.isUpdating = !1, this.nodes.forEach(xh), this.nodes.forEach(hh), this.nodes.forEach(ph), this.clearAllSnapshots();
|
6809
6809
|
const a = Mt.now();
|
6810
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;
|
6811
6811
|
}
|
@@ -6813,7 +6813,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6813
6813
|
this.updateScheduled || (this.updateScheduled = !0, vi.read(this.scheduleUpdate));
|
6814
6814
|
}
|
6815
6815
|
clearAllSnapshots() {
|
6816
|
-
this.nodes.forEach(
|
6816
|
+
this.nodes.forEach(yh), this.sharedNodes.forEach(Th);
|
6817
6817
|
}
|
6818
6818
|
scheduleUpdateProjection() {
|
6819
6819
|
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, N.preRender(this.updateProjection, !1, !0));
|
@@ -6862,7 +6862,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6862
6862
|
measure(s = !0) {
|
6863
6863
|
const a = this.measurePageBox();
|
6864
6864
|
let l = this.removeElementScroll(a);
|
6865
|
-
return s && (l = this.removeTransform(l)),
|
6865
|
+
return s && (l = this.removeTransform(l)), Vh(l), {
|
6866
6866
|
animationId: this.root.animationId,
|
6867
6867
|
measuredBox: a,
|
6868
6868
|
layoutBox: l,
|
@@ -6876,7 +6876,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6876
6876
|
if (!a)
|
6877
6877
|
return H();
|
6878
6878
|
const l = a.measureViewportBox();
|
6879
|
-
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(Eh))) {
|
6880
6880
|
const { scroll: u } = this.root;
|
6881
6881
|
u && (ne(l.x, u.offset.x), ne(l.y, u.offset.y));
|
6882
6882
|
}
|
@@ -6947,7 +6947,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6947
6947
|
const h = this.getClosestProjectingParent();
|
6948
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;
|
6949
6949
|
}
|
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(),
|
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(), Md(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)) {
|
6951
6951
|
this.attemptToResolveRelativeTarget = !1;
|
6952
6952
|
const h = this.getClosestProjectingParent();
|
6953
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;
|
@@ -6972,7 +6972,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6972
6972
|
return;
|
6973
6973
|
yt(this.layoutCorrected, this.layout.layoutBox);
|
6974
6974
|
const d = this.treeScale.x, h = this.treeScale.y;
|
6975
|
-
|
6975
|
+
Dd(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());
|
6976
6976
|
const { target: p } = a;
|
6977
6977
|
if (!p) {
|
6978
6978
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
@@ -7000,17 +7000,17 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
7000
7000
|
setAnimationOrigin(s, a = !1) {
|
7001
7001
|
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = ee();
|
7002
7002
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
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(
|
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(Ph));
|
7004
7004
|
this.animationProgress = 0;
|
7005
7005
|
let T;
|
7006
7006
|
this.mixTargetDelta = (V) => {
|
7007
7007
|
const m = V / 1e3;
|
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),
|
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), Ch(this.relativeTarget, this.relativeTargetOrigin, d, m), T && lh(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = H()), yt(T, this.relativeTarget)), g && (this.animationValues = u, nh(u, c, this.latestValues, m, w, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = m;
|
7009
7009
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
7010
7010
|
}
|
7011
7011
|
startAnimation(s) {
|
7012
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(() => {
|
7013
|
-
tn.hasAnimatedSinceResize = !0, this.currentAnimation =
|
7013
|
+
tn.hasAnimatedSinceResize = !0, this.currentAnimation = Xd(0, ms, {
|
7014
7014
|
...s,
|
7015
7015
|
onUpdate: (a) => {
|
7016
7016
|
this.mixTargetDelta(a), s.onUpdate && s.onUpdate(a);
|
@@ -7046,7 +7046,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
7046
7046
|
}
|
7047
7047
|
}
|
7048
7048
|
registerSharedNode(s, a) {
|
7049
|
-
this.sharedNodes.has(s) || this.sharedNodes.set(s, new
|
7049
|
+
this.sharedNodes.has(s) || this.sharedNodes.set(s, new ch()), this.sharedNodes.get(s).add(a);
|
7050
7050
|
const c = a.options.initialPromotionConfig;
|
7051
7051
|
a.promote({
|
7052
7052
|
transition: c ? c.transition : void 0,
|
@@ -7102,7 +7102,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
7102
7102
|
if (!this.instance || this.isSVG)
|
7103
7103
|
return;
|
7104
7104
|
if (!this.isVisible)
|
7105
|
-
return
|
7105
|
+
return fh;
|
7106
7106
|
const c = {
|
7107
7107
|
visibility: ""
|
7108
7108
|
}, u = this.getTransformTemplate();
|
@@ -7114,7 +7114,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
7114
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;
|
7115
7115
|
}
|
7116
7116
|
const d = f.animationValues || f.latestValues;
|
7117
|
-
this.applyTransformsToTarget(), c.transform =
|
7117
|
+
this.applyTransformsToTarget(), c.transform = uh(this.projectionDeltaWithTransform, this.treeScale, d), u && (c.transform = u(d, c.transform));
|
7118
7118
|
const { x: h, y: p } = this.projectionDelta;
|
7119
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;
|
7120
7120
|
for (const g in De) {
|
@@ -7142,10 +7142,10 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
7142
7142
|
}
|
7143
7143
|
};
|
7144
7144
|
}
|
7145
|
-
function
|
7145
|
+
function hh(t) {
|
7146
7146
|
t.updateLayout();
|
7147
7147
|
}
|
7148
|
-
function
|
7148
|
+
function ph(t) {
|
7149
7149
|
var e;
|
7150
7150
|
const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
|
7151
7151
|
if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
|
@@ -7189,38 +7189,38 @@ function mh(t) {
|
|
7189
7189
|
}
|
7190
7190
|
t.options.transition = void 0;
|
7191
7191
|
}
|
7192
|
-
function
|
7192
|
+
function mh(t) {
|
7193
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));
|
7194
7194
|
}
|
7195
|
-
function
|
7195
|
+
function gh(t) {
|
7196
7196
|
t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
|
7197
7197
|
}
|
7198
|
-
function
|
7198
|
+
function yh(t) {
|
7199
7199
|
t.clearSnapshot();
|
7200
7200
|
}
|
7201
7201
|
function gs(t) {
|
7202
7202
|
t.clearMeasurements();
|
7203
7203
|
}
|
7204
|
-
function
|
7204
|
+
function vh(t) {
|
7205
7205
|
t.isLayoutDirty = !1;
|
7206
7206
|
}
|
7207
|
-
function
|
7207
|
+
function xh(t) {
|
7208
7208
|
const { visualElement: e } = t.options;
|
7209
7209
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
7210
7210
|
}
|
7211
7211
|
function ys(t) {
|
7212
7212
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
7213
7213
|
}
|
7214
|
-
function
|
7214
|
+
function bh(t) {
|
7215
7215
|
t.resolveTargetDelta();
|
7216
7216
|
}
|
7217
|
-
function
|
7217
|
+
function Sh(t) {
|
7218
7218
|
t.calcProjection();
|
7219
7219
|
}
|
7220
|
-
function
|
7220
|
+
function wh(t) {
|
7221
7221
|
t.resetSkewAndRotation();
|
7222
7222
|
}
|
7223
|
-
function
|
7223
|
+
function Th(t) {
|
7224
7224
|
t.removeLeadSnapshot();
|
7225
7225
|
}
|
7226
7226
|
function vs(t, e, n) {
|
@@ -7229,37 +7229,37 @@ function vs(t, e, n) {
|
|
7229
7229
|
function xs(t, e, n, i) {
|
7230
7230
|
t.min = K(e.min, n.min, i), t.max = K(e.max, n.max, i);
|
7231
7231
|
}
|
7232
|
-
function
|
7232
|
+
function Ch(t, e, n, i) {
|
7233
7233
|
xs(t.x, e.x, n.x, i), xs(t.y, e.y, n.y, i);
|
7234
7234
|
}
|
7235
|
-
function
|
7235
|
+
function Ph(t) {
|
7236
7236
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
7237
7237
|
}
|
7238
|
-
const
|
7238
|
+
const Ah = {
|
7239
7239
|
duration: 0.45,
|
7240
7240
|
ease: [0.4, 0, 0.1, 1]
|
7241
7241
|
}, bs = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ss = bs("applewebkit/") && !bs("chrome/") ? Math.round : ft;
|
7242
7242
|
function ws(t) {
|
7243
7243
|
t.min = Ss(t.min), t.max = Ss(t.max);
|
7244
7244
|
}
|
7245
|
-
function
|
7245
|
+
function Vh(t) {
|
7246
7246
|
ws(t.x), ws(t.y);
|
7247
7247
|
}
|
7248
7248
|
function va(t, e, n) {
|
7249
|
-
return t === "position" || t === "preserve-aspect" && !
|
7249
|
+
return t === "position" || t === "preserve-aspect" && !Rd(hs(e), hs(n), 0.2);
|
7250
7250
|
}
|
7251
|
-
function
|
7251
|
+
function Eh(t) {
|
7252
7252
|
var e;
|
7253
7253
|
return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
|
7254
7254
|
}
|
7255
|
-
const
|
7255
|
+
const Rh = ya({
|
7256
7256
|
attachResizeListener: (t, e) => Ie(t, "resize", e),
|
7257
7257
|
measureScroll: () => ({
|
7258
7258
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
7259
7259
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
7260
7260
|
}),
|
7261
7261
|
checkIsScrollRoot: () => !0
|
7262
|
-
}),
|
7262
|
+
}), Bn = {
|
7263
7263
|
current: void 0
|
7264
7264
|
}, xa = ya({
|
7265
7265
|
measureScroll: (t) => ({
|
@@ -7267,22 +7267,22 @@ const Mh = ya({
|
|
7267
7267
|
y: t.scrollTop
|
7268
7268
|
}),
|
7269
7269
|
defaultParent: () => {
|
7270
|
-
if (
|
7271
|
-
const t = new
|
7272
|
-
t.mount(window), t.setOptions({ layoutScroll: !0 }),
|
7270
|
+
if (!Bn.current) {
|
7271
|
+
const t = new Rh({});
|
7272
|
+
t.mount(window), t.setOptions({ layoutScroll: !0 }), Bn.current = t;
|
7273
7273
|
}
|
7274
|
-
return
|
7274
|
+
return Bn.current;
|
7275
7275
|
},
|
7276
7276
|
resetTransform: (t, e) => {
|
7277
7277
|
t.style.transform = e !== void 0 ? e : "none";
|
7278
7278
|
},
|
7279
7279
|
checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
|
7280
|
-
}),
|
7280
|
+
}), Mh = {
|
7281
7281
|
pan: {
|
7282
|
-
Feature:
|
7282
|
+
Feature: Kd
|
7283
7283
|
},
|
7284
7284
|
drag: {
|
7285
|
-
Feature:
|
7285
|
+
Feature: Gd,
|
7286
7286
|
ProjectionNode: xa,
|
7287
7287
|
MeasureLayout: fa
|
7288
7288
|
}
|
@@ -7293,15 +7293,15 @@ function Ts(t, e, n) {
|
|
7293
7293
|
const r = "onHover" + n, o = i[r];
|
7294
7294
|
o && N.postRender(() => o(e, Ne(e)));
|
7295
7295
|
}
|
7296
|
-
class
|
7296
|
+
class Dh extends zt {
|
7297
7297
|
mount() {
|
7298
7298
|
const { current: e } = this.node;
|
7299
|
-
e && (this.unmount =
|
7299
|
+
e && (this.unmount = Mu(e, (n, i) => (Ts(this.node, i, "Start"), (r) => Ts(this.node, r, "End"))));
|
7300
7300
|
}
|
7301
7301
|
unmount() {
|
7302
7302
|
}
|
7303
7303
|
}
|
7304
|
-
class
|
7304
|
+
class Lh extends zt {
|
7305
7305
|
constructor() {
|
7306
7306
|
super(...arguments), this.isActive = !1;
|
7307
7307
|
}
|
@@ -7331,37 +7331,37 @@ function Cs(t, e, n) {
|
|
7331
7331
|
const r = "onTap" + (n === "End" ? "" : n), o = i[r];
|
7332
7332
|
o && N.postRender(() => o(e, Ne(e)));
|
7333
7333
|
}
|
7334
|
-
class
|
7334
|
+
class Oh extends zt {
|
7335
7335
|
mount() {
|
7336
7336
|
const { current: e } = this.node;
|
7337
|
-
e && (this.unmount =
|
7337
|
+
e && (this.unmount = ku(e, (n, i) => (Cs(this.node, i, "Start"), (r, { success: o }) => Cs(this.node, r, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
7338
7338
|
}
|
7339
7339
|
unmount() {
|
7340
7340
|
}
|
7341
7341
|
}
|
7342
|
-
const oi = /* @__PURE__ */ new WeakMap(),
|
7342
|
+
const oi = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), kh = (t) => {
|
7343
7343
|
const e = oi.get(t.target);
|
7344
7344
|
e && e(t);
|
7345
|
-
},
|
7346
|
-
t.forEach(
|
7345
|
+
}, Fh = (t) => {
|
7346
|
+
t.forEach(kh);
|
7347
7347
|
};
|
7348
|
-
function
|
7348
|
+
function Ih({ root: t, ...e }) {
|
7349
7349
|
const n = t || document;
|
7350
|
-
|
7351
|
-
const i =
|
7352
|
-
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(Fh, { root: t, ...e })), i[r];
|
7353
7353
|
}
|
7354
7354
|
function Bh(t, e, n) {
|
7355
|
-
const i =
|
7355
|
+
const i = Ih(e);
|
7356
7356
|
return oi.set(t, n), i.observe(t), () => {
|
7357
7357
|
oi.delete(t), i.unobserve(t);
|
7358
7358
|
};
|
7359
7359
|
}
|
7360
|
-
const
|
7360
|
+
const $h = {
|
7361
7361
|
some: 0,
|
7362
7362
|
all: 1
|
7363
7363
|
};
|
7364
|
-
class
|
7364
|
+
class jh extends zt {
|
7365
7365
|
constructor() {
|
7366
7366
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
7367
7367
|
}
|
@@ -7370,7 +7370,7 @@ class _h extends zt {
|
|
7370
7370
|
const { viewport: e = {} } = this.node.getProps(), { root: n, margin: i, amount: r = "some", once: o } = e, s = {
|
7371
7371
|
root: n ? n.current : void 0,
|
7372
7372
|
rootMargin: i,
|
7373
|
-
threshold: typeof r == "number" ? r :
|
7373
|
+
threshold: typeof r == "number" ? r : $h[r]
|
7374
7374
|
}, a = (l) => {
|
7375
7375
|
const { isIntersecting: c } = l;
|
7376
7376
|
if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
|
@@ -7388,34 +7388,34 @@ class _h extends zt {
|
|
7388
7388
|
if (typeof IntersectionObserver > "u")
|
7389
7389
|
return;
|
7390
7390
|
const { props: e, prevProps: n } = this.node;
|
7391
|
-
["amount", "margin", "root"].some(
|
7391
|
+
["amount", "margin", "root"].some(_h(e, n)) && this.startObserver();
|
7392
7392
|
}
|
7393
7393
|
unmount() {
|
7394
7394
|
}
|
7395
7395
|
}
|
7396
|
-
function
|
7396
|
+
function _h({ viewport: t = {} }, { viewport: e = {} } = {}) {
|
7397
7397
|
return (n) => t[n] !== e[n];
|
7398
7398
|
}
|
7399
|
-
const
|
7399
|
+
const Nh = {
|
7400
7400
|
inView: {
|
7401
|
-
Feature:
|
7401
|
+
Feature: jh
|
7402
7402
|
},
|
7403
7403
|
tap: {
|
7404
|
-
Feature:
|
7404
|
+
Feature: Oh
|
7405
7405
|
},
|
7406
7406
|
focus: {
|
7407
|
-
Feature:
|
7407
|
+
Feature: Lh
|
7408
7408
|
},
|
7409
7409
|
hover: {
|
7410
|
-
Feature:
|
7410
|
+
Feature: Dh
|
7411
7411
|
}
|
7412
|
-
},
|
7412
|
+
}, Uh = {
|
7413
7413
|
layout: {
|
7414
7414
|
ProjectionNode: xa,
|
7415
7415
|
MeasureLayout: fa
|
7416
7416
|
}
|
7417
7417
|
}, ai = { current: null }, ba = { current: !1 };
|
7418
|
-
function
|
7418
|
+
function zh() {
|
7419
7419
|
if (ba.current = !0, !!hi)
|
7420
7420
|
if (window.matchMedia) {
|
7421
7421
|
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => ai.current = t.matches;
|
@@ -7423,8 +7423,8 @@ function Wh() {
|
|
7423
7423
|
} else
|
7424
7424
|
ai.current = !1;
|
7425
7425
|
}
|
7426
|
-
const
|
7427
|
-
function
|
7426
|
+
const Wh = [...Wo, et, Ut], Gh = (t) => Wh.find(zo(t)), Kh = /* @__PURE__ */ new WeakMap();
|
7427
|
+
function Hh(t, e, n) {
|
7428
7428
|
for (const i in e) {
|
7429
7429
|
const r = e[i], o = n[i];
|
7430
7430
|
if (nt(r))
|
@@ -7453,7 +7453,7 @@ const Ps = [
|
|
7453
7453
|
"LayoutAnimationStart",
|
7454
7454
|
"LayoutAnimationComplete"
|
7455
7455
|
];
|
7456
|
-
class
|
7456
|
+
class Yh {
|
7457
7457
|
/**
|
7458
7458
|
* This method takes React props and returns found MotionValues. For example, HTML
|
7459
7459
|
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
@@ -7480,7 +7480,7 @@ class qh {
|
|
7480
7480
|
}
|
7481
7481
|
}
|
7482
7482
|
mount(e) {
|
7483
|
-
this.current = e,
|
7483
|
+
this.current = e, Kh.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 || zh(), 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);
|
7484
7484
|
}
|
7485
7485
|
unmount() {
|
7486
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);
|
@@ -7549,7 +7549,7 @@ class qh {
|
|
7549
7549
|
const o = "on" + r, s = e[o];
|
7550
7550
|
s && (this.propEventSubscriptions[r] = this.on(r, s));
|
7551
7551
|
}
|
7552
|
-
this.prevMotionValues =
|
7552
|
+
this.prevMotionValues = Hh(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
|
7553
7553
|
}
|
7554
7554
|
getProps() {
|
7555
7555
|
return this.props;
|
@@ -7615,7 +7615,7 @@ class qh {
|
|
7615
7615
|
readValue(e, n) {
|
7616
7616
|
var i;
|
7617
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);
|
7618
|
-
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) : !Gh(r) && Ut.test(n) && (r = $o(e, n)), this.setBaseTarget(e, nt(r) ? r.get() : r)), nt(r) ? r.get() : r;
|
7619
7619
|
}
|
7620
7620
|
/**
|
7621
7621
|
* Set the base target to later animate back to. This is currently
|
@@ -7648,7 +7648,7 @@ class qh {
|
|
7648
7648
|
this.events[e] && this.events[e].notify(...n);
|
7649
7649
|
}
|
7650
7650
|
}
|
7651
|
-
class Sa extends
|
7651
|
+
class Sa extends Yh {
|
7652
7652
|
constructor() {
|
7653
7653
|
super(...arguments), this.KeyframeResolver = Go;
|
7654
7654
|
}
|
@@ -7669,10 +7669,10 @@ class Sa extends qh {
|
|
7669
7669
|
}));
|
7670
7670
|
}
|
7671
7671
|
}
|
7672
|
-
function
|
7672
|
+
function qh(t) {
|
7673
7673
|
return window.getComputedStyle(t);
|
7674
7674
|
}
|
7675
|
-
class
|
7675
|
+
class Xh extends Sa {
|
7676
7676
|
constructor() {
|
7677
7677
|
super(...arguments), this.type = "html", this.renderInstance = lo;
|
7678
7678
|
}
|
@@ -7681,7 +7681,7 @@ class Zh extends Sa {
|
|
7681
7681
|
const i = Ni(n);
|
7682
7682
|
return i && i.default || 0;
|
7683
7683
|
} else {
|
7684
|
-
const i =
|
7684
|
+
const i = qh(e), r = (xi(n) ? i.getPropertyValue(n) : i[n]) || 0;
|
7685
7685
|
return typeof r == "string" ? r.trim() : r;
|
7686
7686
|
}
|
7687
7687
|
}
|
@@ -7695,7 +7695,7 @@ class Zh extends Sa {
|
|
7695
7695
|
return Ei(e, n, i);
|
7696
7696
|
}
|
7697
7697
|
}
|
7698
|
-
class
|
7698
|
+
class Zh extends Sa {
|
7699
7699
|
constructor() {
|
7700
7700
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = H, this.updateDimensions = () => {
|
7701
7701
|
this.current && !this.renderState.dimensions && ao(this.current, this.renderState);
|
@@ -7727,15 +7727,15 @@ class Jh extends Sa {
|
|
7727
7727
|
this.isSVGTag = Ai(e.tagName), super.mount(e);
|
7728
7728
|
}
|
7729
7729
|
}
|
7730
|
-
const
|
7730
|
+
const Jh = (t, e) => Ci(t) ? new Zh(e) : new Xh(e, {
|
7731
7731
|
allowProjection: t !== Rs
|
7732
|
-
}),
|
7733
|
-
...
|
7734
|
-
...
|
7735
|
-
...
|
7736
|
-
...
|
7737
|
-
},
|
7738
|
-
function
|
7732
|
+
}), Qh = /* @__PURE__ */ Cu({
|
7733
|
+
...Sd,
|
7734
|
+
...Nh,
|
7735
|
+
...Mh,
|
7736
|
+
...Uh
|
7737
|
+
}, Jh), tp = /* @__PURE__ */ _c(Qh);
|
7738
|
+
function ep(t) {
|
7739
7739
|
t.values.forEach((e) => e.stop());
|
7740
7740
|
}
|
7741
7741
|
function li(t, e) {
|
@@ -7746,14 +7746,14 @@ function li(t, e) {
|
|
7746
7746
|
});
|
7747
7747
|
});
|
7748
7748
|
}
|
7749
|
-
function
|
7749
|
+
function np(t, e) {
|
7750
7750
|
if (Array.isArray(e))
|
7751
7751
|
return li(t, e);
|
7752
7752
|
if (typeof e == "string")
|
7753
7753
|
return li(t, [e]);
|
7754
7754
|
Ii(t, e);
|
7755
7755
|
}
|
7756
|
-
function
|
7756
|
+
function ip() {
|
7757
7757
|
let t = !1;
|
7758
7758
|
const e = /* @__PURE__ */ new Set(), n = {
|
7759
7759
|
subscribe(i) {
|
@@ -7770,12 +7770,12 @@ function rp() {
|
|
7770
7770
|
},
|
7771
7771
|
set(i) {
|
7772
7772
|
return Dt(t, "controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."), e.forEach((r) => {
|
7773
|
-
|
7773
|
+
np(r, i);
|
7774
7774
|
});
|
7775
7775
|
},
|
7776
7776
|
stop() {
|
7777
7777
|
e.forEach((i) => {
|
7778
|
-
|
7778
|
+
ep(i);
|
7779
7779
|
});
|
7780
7780
|
},
|
7781
7781
|
mount() {
|
@@ -7786,15 +7786,15 @@ function rp() {
|
|
7786
7786
|
};
|
7787
7787
|
return n;
|
7788
7788
|
}
|
7789
|
-
function
|
7790
|
-
const t = Gs(
|
7789
|
+
function rp() {
|
7790
|
+
const t = Gs(ip);
|
7791
7791
|
return Hs(t.mount, []), t;
|
7792
7792
|
}
|
7793
|
-
const
|
7793
|
+
const sp = rp, op = {
|
7794
7794
|
some: 0,
|
7795
7795
|
all: 1
|
7796
7796
|
};
|
7797
|
-
function
|
7797
|
+
function ap(t, e, { root: n, margin: i, amount: r = "some" } = {}) {
|
7798
7798
|
const o = vo(t), s = /* @__PURE__ */ new WeakMap(), a = (c) => {
|
7799
7799
|
c.forEach((u) => {
|
7800
7800
|
const f = s.get(u.target);
|
@@ -7807,11 +7807,11 @@ function lp(t, e, { root: n, margin: i, amount: r = "some" } = {}) {
|
|
7807
7807
|
}, l = new IntersectionObserver(a, {
|
7808
7808
|
root: n,
|
7809
7809
|
rootMargin: i,
|
7810
|
-
threshold: typeof r == "number" ? r :
|
7810
|
+
threshold: typeof r == "number" ? r : op[r]
|
7811
7811
|
});
|
7812
7812
|
return o.forEach((c) => l.observe(c)), () => l.disconnect();
|
7813
7813
|
}
|
7814
|
-
function
|
7814
|
+
function lp(t, { root: e, margin: n, amount: i, once: r = !1, initial: o = !1 } = {}) {
|
7815
7815
|
const [s, a] = xt(o);
|
7816
7816
|
return ut(() => {
|
7817
7817
|
if (!t.current || r && s)
|
@@ -7821,11 +7821,11 @@ function cp(t, { root: e, margin: n, amount: i, once: r = !1, initial: o = !1 }
|
|
7821
7821
|
margin: n,
|
7822
7822
|
amount: i
|
7823
7823
|
};
|
7824
|
-
return
|
7824
|
+
return ap(t.current, l, c);
|
7825
7825
|
}, [e, t, n, r, i]), s;
|
7826
7826
|
}
|
7827
7827
|
var re = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(re || {});
|
7828
|
-
const
|
7828
|
+
const cp = D.section(
|
7829
7829
|
({
|
7830
7830
|
styles: t,
|
7831
7831
|
theme: {
|
@@ -7890,13 +7890,13 @@ const up = D.section(
|
|
7890
7890
|
},
|
7891
7891
|
t
|
7892
7892
|
)
|
7893
|
-
),
|
7893
|
+
), up = D(tp.div)({
|
7894
7894
|
gap: 15,
|
7895
7895
|
width: "100%",
|
7896
7896
|
display: "flex",
|
7897
7897
|
flexDirection: "column",
|
7898
7898
|
maxWidth: "var(--max-width)"
|
7899
|
-
}),
|
7899
|
+
}), fp = {
|
7900
7900
|
hidden: {
|
7901
7901
|
opacity: 0
|
7902
7902
|
},
|
@@ -7909,7 +7909,7 @@ const up = D.section(
|
|
7909
7909
|
type: "spring"
|
7910
7910
|
}
|
7911
7911
|
}
|
7912
|
-
},
|
7912
|
+
}, qp = ({
|
7913
7913
|
children: t,
|
7914
7914
|
zIndex: e = 20,
|
7915
7915
|
styles: n = {},
|
@@ -7922,13 +7922,13 @@ const up = D.section(
|
|
7922
7922
|
theme: c = j,
|
7923
7923
|
noPaddingBottom: u = !1
|
7924
7924
|
}) => {
|
7925
|
-
const f =
|
7925
|
+
const f = sp(), d = Ma(), h = lp(d, {
|
7926
7926
|
margin: "0px 0px 0px 0px"
|
7927
7927
|
});
|
7928
7928
|
return ut(() => {
|
7929
7929
|
h && f.start("visible");
|
7930
7930
|
}, [f, h]), /* @__PURE__ */ A(
|
7931
|
-
|
7931
|
+
cp,
|
7932
7932
|
{
|
7933
7933
|
id: i,
|
7934
7934
|
ref: d,
|
@@ -7941,10 +7941,10 @@ const up = D.section(
|
|
7941
7941
|
noPaddingTop: a,
|
7942
7942
|
noPaddingBottom: u,
|
7943
7943
|
backgroundColor: l || c.main.backgroundColor,
|
7944
|
-
children: /* @__PURE__ */ A(
|
7944
|
+
children: /* @__PURE__ */ A(up, { initial: "hidden", animate: f, variants: fp, children: t })
|
7945
7945
|
}
|
7946
7946
|
);
|
7947
|
-
},
|
7947
|
+
}, dp = D.div(
|
7948
7948
|
({
|
7949
7949
|
styles: t,
|
7950
7950
|
theme: {
|
@@ -7968,7 +7968,7 @@ const up = D.section(
|
|
7968
7968
|
},
|
7969
7969
|
t
|
7970
7970
|
)
|
7971
|
-
),
|
7971
|
+
), Xp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(dp, { theme: n, styles: e, children: t }), hp = D.div(
|
7972
7972
|
({
|
7973
7973
|
styles: t,
|
7974
7974
|
theme: {
|
@@ -7993,7 +7993,7 @@ const up = D.section(
|
|
7993
7993
|
},
|
7994
7994
|
t
|
7995
7995
|
)
|
7996
|
-
),
|
7996
|
+
), pp = D.div({
|
7997
7997
|
display: "flex",
|
7998
7998
|
flexDirection: "row",
|
7999
7999
|
a: {
|
@@ -8007,10 +8007,10 @@ const up = D.section(
|
|
8007
8007
|
}
|
8008
8008
|
}
|
8009
8009
|
}
|
8010
|
-
}),
|
8010
|
+
}), Zp = ({ navSocial: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(hp, { theme: n, styles: e, children: t.map(({ name: i, link: r }, o) => {
|
8011
8011
|
const s = i[0].toUpperCase() + i.slice(1);
|
8012
|
-
return /* @__PURE__ */ A(
|
8013
|
-
}) }),
|
8012
|
+
return /* @__PURE__ */ A(pp, { children: /* @__PURE__ */ A("a", { target: "_blank", "aria-label": i, href: r, children: /* @__PURE__ */ A(Lt, { theme: n, icon: `social${s}` }) }) }, `navSocialItem-${o}`);
|
8013
|
+
}) }), mp = D.div(
|
8014
8014
|
({
|
8015
8015
|
styles: t,
|
8016
8016
|
theme: {
|
@@ -8033,7 +8033,7 @@ const up = D.section(
|
|
8033
8033
|
},
|
8034
8034
|
t
|
8035
8035
|
)
|
8036
|
-
),
|
8036
|
+
), Jp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(mp, { theme: n, styles: e, children: t }), gp = D.form(
|
8037
8037
|
({
|
8038
8038
|
styles: t,
|
8039
8039
|
theme: {
|
@@ -8052,9 +8052,9 @@ const up = D.section(
|
|
8052
8052
|
},
|
8053
8053
|
t
|
8054
8054
|
)
|
8055
|
-
),
|
8055
|
+
), Qp = ({ action: t, children: e, styles: n = {}, theme: i = j }) => /* @__PURE__ */ A(gp, { theme: i, styles: n, action: t, children: e });
|
8056
8056
|
var fn = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(fn || {});
|
8057
|
-
const
|
8057
|
+
const yp = D.div(
|
8058
8058
|
({
|
8059
8059
|
theme: {
|
8060
8060
|
form: {
|
@@ -8080,7 +8080,7 @@ const vp = D.div(
|
|
8080
8080
|
},
|
8081
8081
|
i
|
8082
8082
|
)
|
8083
|
-
),
|
8083
|
+
), tm = ({ children: t, theme: e = j, styles: n = {}, isActions: i = !1, isMessage: r = !1, align: o = fn.Left }) => /* @__PURE__ */ A(yp, { align: o, theme: e, styles: n, isActions: i, isMessage: r, children: t }), vp = D.input(
|
8084
8084
|
({
|
8085
8085
|
styles: t,
|
8086
8086
|
theme: {
|
@@ -8126,7 +8126,7 @@ const vp = D.div(
|
|
8126
8126
|
)
|
8127
8127
|
);
|
8128
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 || {});
|
8129
|
-
const
|
8129
|
+
const xp = ({
|
8130
8130
|
name: t,
|
8131
8131
|
value: e = "",
|
8132
8132
|
styles: n = {},
|
@@ -8136,7 +8136,7 @@ const bp = ({
|
|
8136
8136
|
theme: s = j,
|
8137
8137
|
onChange: a = void 0
|
8138
8138
|
}) => /* @__PURE__ */ A(
|
8139
|
-
|
8139
|
+
vp,
|
8140
8140
|
{
|
8141
8141
|
type: i,
|
8142
8142
|
id: t,
|
@@ -8148,7 +8148,7 @@ const bp = ({
|
|
8148
8148
|
defaultValue: e,
|
8149
8149
|
placeholder: o
|
8150
8150
|
}
|
8151
|
-
),
|
8151
|
+
), bp = D.label(
|
8152
8152
|
({
|
8153
8153
|
theme: {
|
8154
8154
|
form: {
|
@@ -8163,10 +8163,10 @@ const bp = ({
|
|
8163
8163
|
textAlign: "left",
|
8164
8164
|
fontFamily: `var(--font-${e})`
|
8165
8165
|
})
|
8166
|
-
),
|
8166
|
+
), Sp = ({ name: t, label: e, required: n = !1, theme: i = j }) => /* @__PURE__ */ ht(bp, { htmlFor: t, theme: i, children: [
|
8167
8167
|
e,
|
8168
8168
|
n ? /* @__PURE__ */ A("span", { children: " *" }) : ""
|
8169
|
-
] }),
|
8169
|
+
] }), wp = D.div(
|
8170
8170
|
({ styles: t }) => W(
|
8171
8171
|
{
|
8172
8172
|
width: "100%",
|
@@ -8177,11 +8177,11 @@ const bp = ({
|
|
8177
8177
|
},
|
8178
8178
|
t
|
8179
8179
|
)
|
8180
|
-
),
|
8180
|
+
), Tp = D.div({
|
8181
8181
|
paddingTop: 5,
|
8182
8182
|
textAlign: "left",
|
8183
8183
|
fontStyle: "italic"
|
8184
|
-
}),
|
8184
|
+
}), Cp = D.span(
|
8185
8185
|
({
|
8186
8186
|
theme: {
|
8187
8187
|
form: {
|
@@ -8194,7 +8194,7 @@ const bp = ({
|
|
8194
8194
|
fontSize: "0.875rem",
|
8195
8195
|
marginTop: "0.25rem"
|
8196
8196
|
})
|
8197
|
-
),
|
8197
|
+
), Pp = D.textarea(
|
8198
8198
|
({
|
8199
8199
|
styles: t,
|
8200
8200
|
theme: {
|
@@ -8238,7 +8238,7 @@ const bp = ({
|
|
8238
8238
|
},
|
8239
8239
|
t
|
8240
8240
|
)
|
8241
|
-
),
|
8241
|
+
), Ap = ({
|
8242
8242
|
name: t,
|
8243
8243
|
value: e,
|
8244
8244
|
rows: n = 2,
|
@@ -8248,7 +8248,7 @@ const bp = ({
|
|
8248
8248
|
onChange: s = void 0,
|
8249
8249
|
theme: a = j
|
8250
8250
|
}) => /* @__PURE__ */ A(
|
8251
|
-
|
8251
|
+
Pp,
|
8252
8252
|
{
|
8253
8253
|
id: t,
|
8254
8254
|
name: t,
|
@@ -8262,7 +8262,7 @@ const bp = ({
|
|
8262
8262
|
}
|
8263
8263
|
);
|
8264
8264
|
var wa = /* @__PURE__ */ ((t) => (t.Textarea = "textarea", t))(wa || {});
|
8265
|
-
const
|
8265
|
+
const em = ({
|
8266
8266
|
name: t,
|
8267
8267
|
label: e = "",
|
8268
8268
|
value: n = "",
|
@@ -8275,11 +8275,11 @@ const nm = ({
|
|
8275
8275
|
theme: c = j,
|
8276
8276
|
onChange: u = void 0,
|
8277
8277
|
type: f = Ki.Text
|
8278
|
-
}) => /* @__PURE__ */ ht(
|
8279
|
-
e && /* @__PURE__ */ A(
|
8280
|
-
f === wa.Textarea ? /* @__PURE__ */ A(
|
8281
|
-
l && /* @__PURE__ */ A(
|
8282
|
-
] }),
|
8278
|
+
}) => /* @__PURE__ */ ht(wp, { styles: i, children: [
|
8279
|
+
e && /* @__PURE__ */ A(Sp, { theme: c, label: e, name: t, required: o }),
|
8280
|
+
f === wa.Textarea ? /* @__PURE__ */ A(Ap, { value: n, rows: r, name: t, theme: c, onChange: u, disabled: s, placeholder: a }) : /* @__PURE__ */ A(xp, { value: n, type: f, name: t, theme: c, onChange: u, disabled: s, placeholder: a }),
|
8281
|
+
l && /* @__PURE__ */ A(Tp, { children: l instanceof Array ? l.map((d, h) => /* @__PURE__ */ A(Cp, { theme: c, children: d }, h)) : l })
|
8282
|
+
] }), Vp = D.div(
|
8283
8283
|
({
|
8284
8284
|
styles: t,
|
8285
8285
|
theme: {
|
@@ -8303,7 +8303,7 @@ const nm = ({
|
|
8303
8303
|
},
|
8304
8304
|
t
|
8305
8305
|
)
|
8306
|
-
),
|
8306
|
+
), Ep = D.div(
|
8307
8307
|
({
|
8308
8308
|
theme: {
|
8309
8309
|
consentCookie: { width: t, borders: e, borderRadius: n, backgroundColor: i, paddingTop: r, paddingLeft: o, paddingRight: s, paddingBottom: a }
|
@@ -8345,7 +8345,7 @@ const nm = ({
|
|
8345
8345
|
paddingBottom: a[3]
|
8346
8346
|
}
|
8347
8347
|
})
|
8348
|
-
),
|
8348
|
+
), Rp = D.div(
|
8349
8349
|
({
|
8350
8350
|
theme: {
|
8351
8351
|
consentCookie: { actionsGap: t, actionsPaddingTop: e }
|
@@ -8368,7 +8368,7 @@ const nm = ({
|
|
8368
8368
|
}
|
8369
8369
|
})
|
8370
8370
|
);
|
8371
|
-
function
|
8371
|
+
function Mp(t) {
|
8372
8372
|
const e = t + "=", i = decodeURIComponent(document.cookie).split(";");
|
8373
8373
|
for (let r = 0; r < i.length; r++) {
|
8374
8374
|
let o = i[r];
|
@@ -8379,13 +8379,13 @@ function Dp(t) {
|
|
8379
8379
|
}
|
8380
8380
|
return "";
|
8381
8381
|
}
|
8382
|
-
function
|
8382
|
+
function Dp(t, e, n) {
|
8383
8383
|
const i = /* @__PURE__ */ new Date();
|
8384
8384
|
i.setTime(i.getTime() + n * 24 * 60 * 60 * 1e3);
|
8385
8385
|
const r = "expires=" + i.toUTCString();
|
8386
8386
|
document.cookie = t + "=" + e + ";" + r + ";path=/";
|
8387
8387
|
}
|
8388
|
-
const
|
8388
|
+
const nm = ({
|
8389
8389
|
styles: t = {},
|
8390
8390
|
children: e = void 0,
|
8391
8391
|
theme: n = j,
|
@@ -8394,57 +8394,57 @@ const im = ({
|
|
8394
8394
|
cookieExpirationDays: o = 365
|
8395
8395
|
}) => {
|
8396
8396
|
const [s, a] = xt(!1), l = (c) => {
|
8397
|
-
a(!1),
|
8397
|
+
a(!1), Dp(i, `${c}`, o);
|
8398
8398
|
};
|
8399
8399
|
return ut(() => {
|
8400
|
-
const c =
|
8400
|
+
const c = Mp(i), u = c !== "true" && c !== "false", f = c === "true";
|
8401
8401
|
u && a(!0);
|
8402
8402
|
const d = f ? "granted" : "denied";
|
8403
8403
|
typeof window.gtag < "u" && window.gtag("consent", "update", {
|
8404
8404
|
analytics_storage: d
|
8405
8405
|
});
|
8406
|
-
}, [s]), s ? /* @__PURE__ */ A(
|
8406
|
+
}, [s]), s ? /* @__PURE__ */ A(Vp, { theme: n, styles: t, children: /* @__PURE__ */ ht(Ep, { theme: n, children: [
|
8407
8407
|
e,
|
8408
|
-
/* @__PURE__ */ ht(
|
8408
|
+
/* @__PURE__ */ ht(Rp, { theme: n, children: [
|
8409
8409
|
/* @__PURE__ */ A(sr, { onClick: () => l(!1), children: (r == null ? void 0 : r.actions.reject) || "Reject" }),
|
8410
8410
|
/* @__PURE__ */ A(sr, { onClick: () => l(!0), children: (r == null ? void 0 : r.actions.accept) || "Accept" })
|
8411
8411
|
] })
|
8412
8412
|
] }) }) : null;
|
8413
8413
|
};
|
8414
8414
|
export {
|
8415
|
-
|
8415
|
+
Fp as Actions,
|
8416
8416
|
be as ActionsAlign,
|
8417
8417
|
sr as Button,
|
8418
8418
|
Ze as ButtonSize,
|
8419
8419
|
Wn as ButtonStyle,
|
8420
8420
|
Us as ButtonType,
|
8421
8421
|
zn as ButtonVariant,
|
8422
|
-
|
8423
|
-
|
8422
|
+
$p as Carousel,
|
8423
|
+
Kp as Columns,
|
8424
8424
|
Se as ColumnsAlign,
|
8425
|
-
|
8426
|
-
|
8427
|
-
|
8428
|
-
|
8425
|
+
nm as ConsentCookie,
|
8426
|
+
Gp as Footer,
|
8427
|
+
Qp as Form,
|
8428
|
+
tm as FormRow,
|
8429
8429
|
fn as FormRowAlign,
|
8430
|
-
|
8430
|
+
Wp as Header,
|
8431
8431
|
Lt as Icon,
|
8432
8432
|
Ki as InputType,
|
8433
|
-
|
8434
|
-
|
8433
|
+
jp as KeyNumber,
|
8434
|
+
Np as LanguageSwitcher,
|
8435
8435
|
Bp as Logo,
|
8436
|
-
|
8437
|
-
|
8438
|
-
|
8439
|
-
|
8440
|
-
|
8441
|
-
|
8442
|
-
|
8443
|
-
|
8444
|
-
|
8445
|
-
|
8446
|
-
|
8436
|
+
zp as Main,
|
8437
|
+
Up as MainStyles,
|
8438
|
+
Ip as Modal,
|
8439
|
+
Xp as Nav,
|
8440
|
+
Jp as NavLegal,
|
8441
|
+
Zp as NavSocial,
|
8442
|
+
qp as Section,
|
8443
|
+
em as TextField,
|
8444
|
+
xp as TextFieldInput,
|
8445
|
+
Sp as TextFieldLabel,
|
8446
|
+
Ap as TextFieldTextarea,
|
8447
8447
|
wa as TextareaType,
|
8448
8448
|
Kl as Video,
|
8449
|
-
|
8449
|
+
_p as VideoFullWidth
|
8450
8450
|
};
|