@contentmunch/contentmunch-ui 1.1.31 → 1.1.32
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/lib/icon/Drawings.d.ts +13 -1
- package/lib/icon/test.svg +8 -0
- package/lib/index.cjs.js +4 -4
- package/lib/index.es.js +481 -380
- package/lib/index.umd.js +5 -5
- package/package.json +1 -1
package/lib/index.es.js
CHANGED
|
@@ -9,10 +9,10 @@ var at = { exports: {} }, $e = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
12
|
+
var Xs;
|
|
13
13
|
function mo() {
|
|
14
|
-
if (
|
|
15
|
-
|
|
14
|
+
if (Xs) return $e;
|
|
15
|
+
Xs = 1;
|
|
16
16
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
17
17
|
function n(i, r, a) {
|
|
18
18
|
var o = null;
|
|
@@ -41,9 +41,9 @@ var Ke = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
44
|
+
var qs;
|
|
45
45
|
function xo() {
|
|
46
|
-
return
|
|
46
|
+
return qs || (qs = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
47
|
function e(j) {
|
|
48
48
|
if (j == null) return null;
|
|
49
49
|
if (typeof j == "function")
|
|
@@ -274,9 +274,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
274
274
|
};
|
|
275
275
|
}()), Ke;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
277
|
+
var Zs;
|
|
278
278
|
function yo() {
|
|
279
|
-
return
|
|
279
|
+
return Zs || (Zs = 1, process.env.NODE_ENV === "production" ? at.exports = mo() : at.exports = xo()), at.exports;
|
|
280
280
|
}
|
|
281
281
|
var s = yo();
|
|
282
282
|
const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
@@ -462,7 +462,6 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
462
462
|
),
|
|
463
463
|
/* @__PURE__ */ s.jsx("polygon", { points: "9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" })
|
|
464
464
|
] }),
|
|
465
|
-
moon: /* @__PURE__ */ s.jsx(p, { children: /* @__PURE__ */ s.jsx("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) }),
|
|
466
465
|
cloud: /* @__PURE__ */ s.jsx(p, { children: /* @__PURE__ */ s.jsx("path", { d: "M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z" }) }),
|
|
467
466
|
"cloud-drizzle": /* @__PURE__ */ s.jsxs(p, { children: [
|
|
468
467
|
/* @__PURE__ */ s.jsx("line", { x1: "8", y1: "19", x2: "8", y2: "21" }),
|
|
@@ -584,6 +583,12 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
584
583
|
)
|
|
585
584
|
] }),
|
|
586
585
|
wind: /* @__PURE__ */ s.jsx(p, { children: /* @__PURE__ */ s.jsx("path", { d: "M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2" }) }),
|
|
586
|
+
water: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
587
|
+
/* @__PURE__ */ s.jsx("path", { d: "m6 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8" }),
|
|
588
|
+
/* @__PURE__ */ s.jsx("path", { d: "M5 8h14" }),
|
|
589
|
+
/* @__PURE__ */ s.jsx("path", { d: "M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0" }),
|
|
590
|
+
/* @__PURE__ */ s.jsx("path", { d: "m12 8 1-6h2" })
|
|
591
|
+
] }),
|
|
587
592
|
zap: /* @__PURE__ */ s.jsx(p, { children: /* @__PURE__ */ s.jsx("polygon", { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" }) }),
|
|
588
593
|
video: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
589
594
|
/* @__PURE__ */ s.jsx("polygon", { points: "23 7 16 12 23 17 23 7" }),
|
|
@@ -763,6 +768,13 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
763
768
|
/* @__PURE__ */ s.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
764
769
|
/* @__PURE__ */ s.jsx("circle", { cx: "12", cy: "12", r: "3" })
|
|
765
770
|
] }),
|
|
771
|
+
scale: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
772
|
+
/* @__PURE__ */ s.jsx("path", { d: "M12 3v18" }),
|
|
773
|
+
/* @__PURE__ */ s.jsx("path", { d: "m19 8 3 8a5 5 0 0 1-6 0zV7" }),
|
|
774
|
+
/* @__PURE__ */ s.jsx("path", { d: "M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1" }),
|
|
775
|
+
/* @__PURE__ */ s.jsx("path", { d: "m5 8 3 8a5 5 0 0 1-6 0zV7" }),
|
|
776
|
+
/* @__PURE__ */ s.jsx("path", { d: "M7 21h10" })
|
|
777
|
+
] }),
|
|
766
778
|
quiz: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
767
779
|
/* @__PURE__ */ s.jsx(
|
|
768
780
|
"path",
|
|
@@ -893,6 +905,60 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
893
905
|
/* @__PURE__ */ s.jsx("line", { x1: "4.22", y1: "19.78", x2: "5.64", y2: "18.36" }),
|
|
894
906
|
/* @__PURE__ */ s.jsx("line", { x1: "18.36", y1: "5.64", x2: "19.78", y2: "4.22" })
|
|
895
907
|
] }),
|
|
908
|
+
sunrise: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
909
|
+
/* @__PURE__ */ s.jsx("path", { d: "M17 18a5 5 0 0 0-10 0" }),
|
|
910
|
+
/* @__PURE__ */ s.jsx("line", { x1: "12", y1: "2", x2: "12", y2: "9" }),
|
|
911
|
+
/* @__PURE__ */ s.jsx("line", { x1: "4.22", y1: "10.22", x2: "5.64", y2: "11.64" }),
|
|
912
|
+
/* @__PURE__ */ s.jsx("line", { x1: "1", y1: "18", x2: "3", y2: "18" }),
|
|
913
|
+
/* @__PURE__ */ s.jsx("line", { x1: "21", y1: "18", x2: "23", y2: "18" }),
|
|
914
|
+
/* @__PURE__ */ s.jsx("line", { x1: "18.36", y1: "11.64", x2: "19.78", y2: "10.22" }),
|
|
915
|
+
/* @__PURE__ */ s.jsx("line", { x1: "23", y1: "22", x2: "1", y2: "22" }),
|
|
916
|
+
/* @__PURE__ */ s.jsx("polyline", { points: "8 6 12 2 16 6" })
|
|
917
|
+
] }),
|
|
918
|
+
sunset: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
919
|
+
/* @__PURE__ */ s.jsx("path", { d: "M17 18a5 5 0 0 0-10 0" }),
|
|
920
|
+
/* @__PURE__ */ s.jsx("line", { x1: "12", y1: "9", x2: "12", y2: "2" }),
|
|
921
|
+
/* @__PURE__ */ s.jsx("line", { x1: "4.22", y1: "10.22", x2: "5.64", y2: "11.64" }),
|
|
922
|
+
/* @__PURE__ */ s.jsx("line", { x1: "1", y1: "18", x2: "3", y2: "18" }),
|
|
923
|
+
/* @__PURE__ */ s.jsx("line", { x1: "21", y1: "18", x2: "23", y2: "18" }),
|
|
924
|
+
/* @__PURE__ */ s.jsx("line", { x1: "18.36", y1: "11.64", x2: "19.78", y2: "10.22" }),
|
|
925
|
+
/* @__PURE__ */ s.jsx("line", { x1: "23", y1: "22", x2: "1", y2: "22" }),
|
|
926
|
+
/* @__PURE__ */ s.jsx("polyline", { points: "16 5 12 9 8 5" })
|
|
927
|
+
] }),
|
|
928
|
+
"sun-moon": /* @__PURE__ */ s.jsxs(p, { children: [
|
|
929
|
+
/* @__PURE__ */ s.jsx("path", { d: "M12 2v2" }),
|
|
930
|
+
/* @__PURE__ */ s.jsx(
|
|
931
|
+
"path",
|
|
932
|
+
{
|
|
933
|
+
d: "M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"
|
|
934
|
+
}
|
|
935
|
+
),
|
|
936
|
+
/* @__PURE__ */ s.jsx("path", { d: "M16 12a4 4 0 0 0-4-4" }),
|
|
937
|
+
/* @__PURE__ */ s.jsx("path", { d: "m19 5-1.256 1.256" }),
|
|
938
|
+
/* @__PURE__ */ s.jsx("path", { d: "M20 12h2" })
|
|
939
|
+
] }),
|
|
940
|
+
moon: /* @__PURE__ */ s.jsx(p, { children: /* @__PURE__ */ s.jsx("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) }),
|
|
941
|
+
"moon-star": /* @__PURE__ */ s.jsxs(p, { children: [
|
|
942
|
+
/* @__PURE__ */ s.jsx("path", { d: "M18 5h4" }),
|
|
943
|
+
/* @__PURE__ */ s.jsx("path", { d: "M20 3v4" }),
|
|
944
|
+
/* @__PURE__ */ s.jsx(
|
|
945
|
+
"path",
|
|
946
|
+
{
|
|
947
|
+
d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"
|
|
948
|
+
}
|
|
949
|
+
)
|
|
950
|
+
] }),
|
|
951
|
+
orbit: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
952
|
+
/* @__PURE__ */ s.jsx("path", { d: "M20.341 6.484A10 10 0 0 1 10.266 21.85" }),
|
|
953
|
+
/* @__PURE__ */ s.jsx("path", { d: "M3.659 17.516A10 10 0 0 1 13.74 2.152" }),
|
|
954
|
+
/* @__PURE__ */ s.jsx("circle", { cx: "12", cy: "12", r: "3" }),
|
|
955
|
+
/* @__PURE__ */ s.jsx("circle", { cx: "19", cy: "5", r: "2" }),
|
|
956
|
+
/* @__PURE__ */ s.jsx("circle", { cx: "5", cy: "19", r: "2" })
|
|
957
|
+
] }),
|
|
958
|
+
eclipse: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
959
|
+
/* @__PURE__ */ s.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
960
|
+
/* @__PURE__ */ s.jsx("path", { d: "M12 2a7 7 0 1 0 10 10" })
|
|
961
|
+
] }),
|
|
896
962
|
"external-link": /* @__PURE__ */ s.jsxs(p, { children: [
|
|
897
963
|
/* @__PURE__ */ s.jsx("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
|
|
898
964
|
/* @__PURE__ */ s.jsx("polyline", { points: "15 3 21 3 21 9" }),
|
|
@@ -1099,10 +1165,45 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1099
1165
|
/* @__PURE__ */ s.jsx("polyline", { points: "9 22 9 12 15 12 15 22" })
|
|
1100
1166
|
] }),
|
|
1101
1167
|
bed: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
1102
|
-
/* @__PURE__ */ s.jsx("path", { d: "M2
|
|
1103
|
-
/* @__PURE__ */ s.jsx("path", { d: "
|
|
1104
|
-
/* @__PURE__ */ s.jsx("path", { d: "
|
|
1105
|
-
/* @__PURE__ */ s.jsx("path", { d: "
|
|
1168
|
+
/* @__PURE__ */ s.jsx("path", { d: "M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8" }),
|
|
1169
|
+
/* @__PURE__ */ s.jsx("path", { d: "M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4" }),
|
|
1170
|
+
/* @__PURE__ */ s.jsx("path", { d: "M12 4v6" }),
|
|
1171
|
+
/* @__PURE__ */ s.jsx("path", { d: "M2 18h20" })
|
|
1172
|
+
] }),
|
|
1173
|
+
awake: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
1174
|
+
/* @__PURE__ */ s.jsx("circle", { cx: "12", cy: "5", r: "1" }),
|
|
1175
|
+
/* @__PURE__ */ s.jsx("path", { d: "m9 20 3-6 3 6" }),
|
|
1176
|
+
/* @__PURE__ */ s.jsx("path", { d: "m6 8 6 2 6-2" }),
|
|
1177
|
+
/* @__PURE__ */ s.jsx("path", { d: "M12 10v4" })
|
|
1178
|
+
] }),
|
|
1179
|
+
food: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
1180
|
+
/* @__PURE__ */ s.jsx("path", { d: "M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z" }),
|
|
1181
|
+
/* @__PURE__ */ s.jsx("path", { d: "M7 21h10" }),
|
|
1182
|
+
/* @__PURE__ */ s.jsx("path", { d: "M19.5 12 22 6" }),
|
|
1183
|
+
/* @__PURE__ */ s.jsx("path", { d: "M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62" }),
|
|
1184
|
+
/* @__PURE__ */ s.jsx("path", { d: "M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62" }),
|
|
1185
|
+
/* @__PURE__ */ s.jsx("path", { d: "M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62" })
|
|
1186
|
+
] }),
|
|
1187
|
+
utensils: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
1188
|
+
/* @__PURE__ */ s.jsx("path", { d: "M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2" }),
|
|
1189
|
+
/* @__PURE__ */ s.jsx("path", { d: "M7 2v20" }),
|
|
1190
|
+
/* @__PURE__ */ s.jsx("path", { d: "M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7" })
|
|
1191
|
+
] }),
|
|
1192
|
+
walk: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
1193
|
+
/* @__PURE__ */ s.jsx(
|
|
1194
|
+
"path",
|
|
1195
|
+
{
|
|
1196
|
+
d: "M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z"
|
|
1197
|
+
}
|
|
1198
|
+
),
|
|
1199
|
+
/* @__PURE__ */ s.jsx(
|
|
1200
|
+
"path",
|
|
1201
|
+
{
|
|
1202
|
+
d: "M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z"
|
|
1203
|
+
}
|
|
1204
|
+
),
|
|
1205
|
+
/* @__PURE__ */ s.jsx("path", { d: "M16 17h4" }),
|
|
1206
|
+
/* @__PURE__ */ s.jsx("path", { d: "M4 13h4" })
|
|
1106
1207
|
] }),
|
|
1107
1208
|
bath: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
1108
1209
|
/* @__PURE__ */ s.jsx("path", { d: "M9 6 6.5 3.5a1.5 1.5 0 0 0-1-.5C4.683 3 4 3.683 4 4.5V17a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5" }),
|
|
@@ -1178,13 +1279,13 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1178
1279
|
/* @__PURE__ */ s.jsx("line", { x1: "7", y1: "18", x2: "17", y2: "18" })
|
|
1179
1280
|
] }),
|
|
1180
1281
|
tithi: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
1181
|
-
/* @__PURE__ */ s.jsx("
|
|
1182
|
-
/* @__PURE__ */ s.jsx("
|
|
1183
|
-
/* @__PURE__ */ s.jsx("line", { x1: "
|
|
1184
|
-
/* @__PURE__ */ s.jsx("line", { x1: "
|
|
1185
|
-
/* @__PURE__ */ s.jsx("line", { x1: "
|
|
1186
|
-
/* @__PURE__ */ s.jsx("line", { x1: "
|
|
1187
|
-
/* @__PURE__ */ s.jsx("line", { x1: "
|
|
1282
|
+
/* @__PURE__ */ s.jsx("path", { d: "M17 18a5 5 0 0 0-10 0" }),
|
|
1283
|
+
/* @__PURE__ */ s.jsx("line", { x1: "12", y1: "6", x2: "12", y2: "9" }),
|
|
1284
|
+
/* @__PURE__ */ s.jsx("line", { x1: "4.22", y1: "10.22", x2: "5.64", y2: "11.64" }),
|
|
1285
|
+
/* @__PURE__ */ s.jsx("line", { x1: "1", y1: "18", x2: "3", y2: "18" }),
|
|
1286
|
+
/* @__PURE__ */ s.jsx("line", { x1: "21", y1: "18", x2: "23", y2: "18" }),
|
|
1287
|
+
/* @__PURE__ */ s.jsx("line", { x1: "18.36", y1: "11.64", x2: "19.78", y2: "10.22" }),
|
|
1288
|
+
/* @__PURE__ */ s.jsx("line", { x1: "23", y1: "22", x2: "1", y2: "22" })
|
|
1188
1289
|
] }),
|
|
1189
1290
|
save: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
1190
1291
|
/* @__PURE__ */ s.jsx("path", { d: "M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" }),
|
|
@@ -1430,7 +1531,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1430
1531
|
n === "" ? "" : /* @__PURE__ */ s.jsx(jo, { variant: e, children: n })
|
|
1431
1532
|
]
|
|
1432
1533
|
}
|
|
1433
|
-
),
|
|
1534
|
+
), se = ({
|
|
1434
1535
|
type: e = "button",
|
|
1435
1536
|
variant: t,
|
|
1436
1537
|
size: n = "medium",
|
|
@@ -1517,7 +1618,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1517
1618
|
};
|
|
1518
1619
|
return /* @__PURE__ */ s.jsxs("div", { className: "muncher-dropdown", ref: y, children: [
|
|
1519
1620
|
/* @__PURE__ */ s.jsxs(
|
|
1520
|
-
|
|
1621
|
+
se,
|
|
1521
1622
|
{
|
|
1522
1623
|
onMouseDown: w,
|
|
1523
1624
|
title: n,
|
|
@@ -1552,7 +1653,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1552
1653
|
...l
|
|
1553
1654
|
}) => /* @__PURE__ */ s.jsxs("div", { className: `muncher-dropdown-nav ${a ? "drop-left" : ""}`, children: [
|
|
1554
1655
|
/* @__PURE__ */ s.jsx(
|
|
1555
|
-
|
|
1656
|
+
se,
|
|
1556
1657
|
{
|
|
1557
1658
|
type: "nav",
|
|
1558
1659
|
title: e,
|
|
@@ -1577,7 +1678,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1577
1678
|
}, 2e3);
|
|
1578
1679
|
};
|
|
1579
1680
|
return /* @__PURE__ */ s.jsx(
|
|
1580
|
-
|
|
1681
|
+
se,
|
|
1581
1682
|
{
|
|
1582
1683
|
size: n,
|
|
1583
1684
|
variant: t,
|
|
@@ -1602,7 +1703,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1602
1703
|
size: t,
|
|
1603
1704
|
element: /* @__PURE__ */ s.jsx(N, { name: "share", orientation: "right", children: "Share" }),
|
|
1604
1705
|
children: [
|
|
1605
|
-
/* @__PURE__ */ s.jsx(
|
|
1706
|
+
/* @__PURE__ */ s.jsx(se, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
|
|
1606
1707
|
"a",
|
|
1607
1708
|
{
|
|
1608
1709
|
href: "https://twitter.com/share?url=" + window.location.href + "&text=" + n,
|
|
@@ -1611,7 +1712,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1611
1712
|
children: /* @__PURE__ */ s.jsx(N, { name: "twitter" })
|
|
1612
1713
|
}
|
|
1613
1714
|
) }),
|
|
1614
|
-
/* @__PURE__ */ s.jsx(
|
|
1715
|
+
/* @__PURE__ */ s.jsx(se, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
|
|
1615
1716
|
"a",
|
|
1616
1717
|
{
|
|
1617
1718
|
href: "https://www.facebook.com/sharer/sharer.php?u=" + window.location.href,
|
|
@@ -1620,7 +1721,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1620
1721
|
children: /* @__PURE__ */ s.jsx(N, { name: "facebook" })
|
|
1621
1722
|
}
|
|
1622
1723
|
) }),
|
|
1623
|
-
/* @__PURE__ */ s.jsx(
|
|
1724
|
+
/* @__PURE__ */ s.jsx(se, { size: "small", variant: e, children: /* @__PURE__ */ s.jsx(
|
|
1624
1725
|
"a",
|
|
1625
1726
|
{
|
|
1626
1727
|
href: "mailto:?subject=" + n + "&body=" + window.location.href,
|
|
@@ -1647,7 +1748,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1647
1748
|
const h = encodeURI("data:text/csv;charset=utf-8," + e.join(",") + `
|
|
1648
1749
|
` + t.map((u) => u.join(",")).join(`
|
|
1649
1750
|
`));
|
|
1650
|
-
return /* @__PURE__ */ s.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ s.jsx(
|
|
1751
|
+
return /* @__PURE__ */ s.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ s.jsx(se, { variant: i, size: r, active: o, disabled: l, rounded: c, children: /* @__PURE__ */ s.jsx("a", { href: h, download: n + ".csv", children: /* @__PURE__ */ s.jsx(N, { name: "download", children: a || "Download" }) }) }) });
|
|
1651
1752
|
}, Mo = ({
|
|
1652
1753
|
variant: e = "transparent",
|
|
1653
1754
|
size: t = "small",
|
|
@@ -1660,7 +1761,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1660
1761
|
}) => {
|
|
1661
1762
|
const [c, h] = $(!1), u = () => !r || r && !c ? i ? /* @__PURE__ */ s.jsx(N, { name: "sort-asc" }) : /* @__PURE__ */ s.jsx(N, { name: "sort-desc" }) : i ? /* @__PURE__ */ s.jsx(N, { name: "sort-desc" }) : /* @__PURE__ */ s.jsx(N, { name: "sort-asc" });
|
|
1662
1763
|
return /* @__PURE__ */ s.jsxs(
|
|
1663
|
-
|
|
1764
|
+
se,
|
|
1664
1765
|
{
|
|
1665
1766
|
variant: e,
|
|
1666
1767
|
size: t,
|
|
@@ -1679,7 +1780,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1679
1780
|
]
|
|
1680
1781
|
}
|
|
1681
1782
|
);
|
|
1682
|
-
},
|
|
1783
|
+
}, Js = ({
|
|
1683
1784
|
direction: e,
|
|
1684
1785
|
size: t = "small",
|
|
1685
1786
|
weight: n,
|
|
@@ -1705,7 +1806,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1705
1806
|
{
|
|
1706
1807
|
className: e === "left" ? "muncher-button--navigate muncher-button--navigate-left" : "muncher-button--navigate muncher-button--navigate-right",
|
|
1707
1808
|
children: /* @__PURE__ */ s.jsx(
|
|
1708
|
-
|
|
1809
|
+
se,
|
|
1709
1810
|
{
|
|
1710
1811
|
onClick: o,
|
|
1711
1812
|
disabled: i,
|
|
@@ -1717,7 +1818,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1717
1818
|
)
|
|
1718
1819
|
}
|
|
1719
1820
|
);
|
|
1720
|
-
},
|
|
1821
|
+
}, st = ({ label: e, onClick: t, id: n, required: i = !1 }) => /* @__PURE__ */ s.jsxs("label", { htmlFor: n, onClick: t, children: [
|
|
1721
1822
|
e,
|
|
1722
1823
|
i ? /* @__PURE__ */ s.jsx("span", { className: "required", children: "*" }) : ""
|
|
1723
1824
|
] }), Eh = ({
|
|
@@ -1745,7 +1846,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1745
1846
|
}
|
|
1746
1847
|
),
|
|
1747
1848
|
r ? /* @__PURE__ */ s.jsx(
|
|
1748
|
-
|
|
1849
|
+
st,
|
|
1749
1850
|
{
|
|
1750
1851
|
label: r,
|
|
1751
1852
|
required: t,
|
|
@@ -1874,7 +1975,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1874
1975
|
const E = () => f && f !== "", D = () => {
|
|
1875
1976
|
let T = "muncher-input";
|
|
1876
1977
|
return (r || a) && (T += " muncher-input-icon"), E() && (T += " muncher-input-error"), u === "side" && (T += " muncher-label-side"), T;
|
|
1877
|
-
}, P = () => t ? /* @__PURE__ */ s.jsx(
|
|
1978
|
+
}, P = () => t ? /* @__PURE__ */ s.jsx(st, { label: t, required: n, id: e }) : "", I = (T) => {
|
|
1878
1979
|
T.key === "Enter" && b && b(), d && d(T);
|
|
1879
1980
|
};
|
|
1880
1981
|
return /* @__PURE__ */ s.jsxs("div", { className: "muncher-input--div", children: [
|
|
@@ -1946,7 +2047,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1946
2047
|
}
|
|
1947
2048
|
),
|
|
1948
2049
|
r ? /* @__PURE__ */ s.jsx(
|
|
1949
|
-
|
|
2050
|
+
st,
|
|
1950
2051
|
{
|
|
1951
2052
|
label: r,
|
|
1952
2053
|
required: t,
|
|
@@ -1971,7 +2072,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
1971
2072
|
return h() && (d += " muncher-input-error"), d;
|
|
1972
2073
|
};
|
|
1973
2074
|
return /* @__PURE__ */ s.jsxs("div", { className: "muncher-input--div", children: [
|
|
1974
|
-
n ? /* @__PURE__ */ s.jsx(
|
|
2075
|
+
n ? /* @__PURE__ */ s.jsx(st, { label: n, required: i, id: e }) : "",
|
|
1975
2076
|
/* @__PURE__ */ s.jsx("div", { className: "muncher-input-element", children: /* @__PURE__ */ s.jsxs(
|
|
1976
2077
|
"select",
|
|
1977
2078
|
{
|
|
@@ -2010,7 +2111,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
2010
2111
|
f(x.target.value), c && c(x);
|
|
2011
2112
|
};
|
|
2012
2113
|
return /* @__PURE__ */ s.jsxs("div", { className: "muncher-input--div", children: [
|
|
2013
|
-
t ? /* @__PURE__ */ s.jsx(
|
|
2114
|
+
t ? /* @__PURE__ */ s.jsx(st, { label: t, required: n, id: e }) : "",
|
|
2014
2115
|
/* @__PURE__ */ s.jsx(
|
|
2015
2116
|
"textarea",
|
|
2016
2117
|
{
|
|
@@ -2142,7 +2243,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
2142
2243
|
return /* @__PURE__ */ s.jsx("hr", { className: i });
|
|
2143
2244
|
}, Uh = ({ sliderItems: e, navButtonSize: t = "large", navButtonWeight: n = 2, variant: i, navIcon: r, navButtonPlacement: a = "inside" }) => {
|
|
2144
2245
|
const [o, l] = $(0), [c, h] = $(0), u = () => e.length > 1 && o > 0 ? /* @__PURE__ */ s.jsx(
|
|
2145
|
-
|
|
2246
|
+
Js,
|
|
2146
2247
|
{
|
|
2147
2248
|
direction: "left",
|
|
2148
2249
|
size: t,
|
|
@@ -2154,7 +2255,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
2154
2255
|
}
|
|
2155
2256
|
}
|
|
2156
2257
|
) : "", d = () => e.length > 1 && o < e.length - 1 ? /* @__PURE__ */ s.jsx(
|
|
2157
|
-
|
|
2258
|
+
Js,
|
|
2158
2259
|
{
|
|
2159
2260
|
direction: "right",
|
|
2160
2261
|
size: t,
|
|
@@ -2281,7 +2382,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
2281
2382
|
/* @__PURE__ */ s.jsx("header", { children: r.map(
|
|
2282
2383
|
(o, l) => /* @__PURE__ */ s.jsxs("div", { className: "muncher-tab-header--item", children: [
|
|
2283
2384
|
/* @__PURE__ */ s.jsx(
|
|
2284
|
-
|
|
2385
|
+
se,
|
|
2285
2386
|
{
|
|
2286
2387
|
variant: "transparent",
|
|
2287
2388
|
active: n === l,
|
|
@@ -2425,7 +2526,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
2425
2526
|
] }),
|
|
2426
2527
|
/* @__PURE__ */ s.jsxs("div", { className: "right", children: [
|
|
2427
2528
|
/* @__PURE__ */ s.jsx(
|
|
2428
|
-
|
|
2529
|
+
se,
|
|
2429
2530
|
{
|
|
2430
2531
|
variant: "transparent",
|
|
2431
2532
|
disabled: v.num === 0,
|
|
@@ -2435,7 +2536,7 @@ const Ah = ({ variant: e, collapsed: t, className: n, children: i }) => {
|
|
|
2435
2536
|
}
|
|
2436
2537
|
),
|
|
2437
2538
|
/* @__PURE__ */ s.jsx(
|
|
2438
|
-
|
|
2539
|
+
se,
|
|
2439
2540
|
{
|
|
2440
2541
|
variant: "transparent",
|
|
2441
2542
|
disabled: (v.num + 1) * v.size >= g.length,
|
|
@@ -2453,8 +2554,8 @@ function Po(e) {
|
|
|
2453
2554
|
const t = fe(null);
|
|
2454
2555
|
return t.current === null && (t.current = e()), t.current;
|
|
2455
2556
|
}
|
|
2456
|
-
const Vo = typeof window < "u", Co = Vo ? co : je,
|
|
2457
|
-
function
|
|
2557
|
+
const Vo = typeof window < "u", Co = Vo ? co : je, bs = /* @__PURE__ */ ze(null);
|
|
2558
|
+
function Ts(e, t) {
|
|
2458
2559
|
e.indexOf(t) === -1 && e.push(t);
|
|
2459
2560
|
}
|
|
2460
2561
|
function vt(e, t) {
|
|
@@ -2485,16 +2586,16 @@ function Ai(e) {
|
|
|
2485
2586
|
let t;
|
|
2486
2587
|
return () => (t === void 0 && (t = e()), t);
|
|
2487
2588
|
}
|
|
2488
|
-
const ie = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Eo = (e, t) => (n) => t(e(n)),
|
|
2589
|
+
const ie = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Eo = (e, t) => (n) => t(e(n)), nt = (...e) => e.reduce(Eo), Je = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
2489
2590
|
const i = t - e;
|
|
2490
2591
|
return i === 0 ? 1 : (n - e) / i;
|
|
2491
2592
|
};
|
|
2492
|
-
class
|
|
2593
|
+
class Ms {
|
|
2493
2594
|
constructor() {
|
|
2494
2595
|
this.subscriptions = [];
|
|
2495
2596
|
}
|
|
2496
2597
|
add(t) {
|
|
2497
|
-
return
|
|
2598
|
+
return Ts(this.subscriptions, t), () => vt(this.subscriptions, t);
|
|
2498
2599
|
}
|
|
2499
2600
|
notify(t, n, i) {
|
|
2500
2601
|
const r = this.subscriptions.length;
|
|
@@ -2514,13 +2615,13 @@ class Sn {
|
|
|
2514
2615
|
this.subscriptions.length = 0;
|
|
2515
2616
|
}
|
|
2516
2617
|
}
|
|
2517
|
-
const te = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3,
|
|
2618
|
+
const te = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, ne = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
|
|
2518
2619
|
function Pi(e, t) {
|
|
2519
2620
|
return t ? e * (1e3 / t) : 0;
|
|
2520
2621
|
}
|
|
2521
|
-
const
|
|
2522
|
-
function
|
|
2523
|
-
e ||
|
|
2622
|
+
const Qs = /* @__PURE__ */ new Set();
|
|
2623
|
+
function Ss(e, t, n) {
|
|
2624
|
+
e || Qs.has(t) || (console.warn(Zt(t, n)), Qs.add(t));
|
|
2524
2625
|
}
|
|
2525
2626
|
const Vi = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, ko = 1e-7, Do = 12;
|
|
2526
2627
|
function Ro(e, t, n, i, r) {
|
|
@@ -2536,25 +2637,25 @@ function it(e, t, n, i) {
|
|
|
2536
2637
|
const r = (a) => Ro(a, 0, 1, e, n);
|
|
2537
2638
|
return (a) => a === 0 || a === 1 ? a : Vi(r(a), t, i);
|
|
2538
2639
|
}
|
|
2539
|
-
const Ci = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ei = (e) => (t) => 1 - e(1 - t), ki = /* @__PURE__ */ it(0.33, 1.53, 0.69, 0.99),
|
|
2640
|
+
const Ci = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ei = (e) => (t) => 1 - e(1 - t), ki = /* @__PURE__ */ it(0.33, 1.53, 0.69, 0.99), As = /* @__PURE__ */ Ei(ki), Di = /* @__PURE__ */ Ci(As), Ri = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? 0.5 * As(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Ps = (e) => 1 - Math.sin(Math.acos(e)), Li = Ei(Ps), Ni = Ci(Ps), Lo = /* @__PURE__ */ it(0.42, 0, 1, 1), No = /* @__PURE__ */ it(0, 0, 0.58, 1), Fi = /* @__PURE__ */ it(0.42, 0, 0.58, 1), Fo = (e) => Array.isArray(e) && typeof e[0] != "number", Ii = (e) => Array.isArray(e) && typeof e[0] == "number", en = {
|
|
2540
2641
|
linear: ie,
|
|
2541
2642
|
easeIn: Lo,
|
|
2542
2643
|
easeInOut: Fi,
|
|
2543
2644
|
easeOut: No,
|
|
2544
|
-
circIn:
|
|
2645
|
+
circIn: Ps,
|
|
2545
2646
|
circInOut: Ni,
|
|
2546
2647
|
circOut: Li,
|
|
2547
|
-
backIn:
|
|
2648
|
+
backIn: As,
|
|
2548
2649
|
backInOut: Di,
|
|
2549
2650
|
backOut: ki,
|
|
2550
2651
|
anticipate: Ri
|
|
2551
|
-
}, Io = (e) => typeof e == "string",
|
|
2652
|
+
}, Io = (e) => typeof e == "string", tn = (e) => {
|
|
2552
2653
|
if (Ii(e)) {
|
|
2553
2654
|
pe(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
2554
2655
|
const [t, n, i, r] = e;
|
|
2555
2656
|
return it(t, n, i, r);
|
|
2556
2657
|
} else if (Io(e))
|
|
2557
|
-
return pe(
|
|
2658
|
+
return pe(en[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), en[e];
|
|
2558
2659
|
return e;
|
|
2559
2660
|
}, ct = [
|
|
2560
2661
|
"setup",
|
|
@@ -2645,8 +2746,8 @@ const Z = {
|
|
|
2645
2746
|
set: (e) => {
|
|
2646
2747
|
ft = e, queueMicrotask(zo);
|
|
2647
2748
|
}
|
|
2648
|
-
}, Bi = (e) => (t) => typeof t == "string" && t.startsWith(e), zi = /* @__PURE__ */ Bi("--"), Ho = /* @__PURE__ */ Bi("var(--"),
|
|
2649
|
-
function
|
|
2749
|
+
}, Bi = (e) => (t) => typeof t == "string" && t.startsWith(e), zi = /* @__PURE__ */ Bi("--"), Ho = /* @__PURE__ */ Bi("var(--"), Vs = (e) => Ho(e) ? _o.test(e.split("/*")[0].trim()) : !1, _o = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
2750
|
+
function sn(e) {
|
|
2650
2751
|
return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
|
|
2651
2752
|
}
|
|
2652
2753
|
const _e = {
|
|
@@ -2659,14 +2760,14 @@ const _e = {
|
|
|
2659
2760
|
}, ut = {
|
|
2660
2761
|
..._e,
|
|
2661
2762
|
default: 1
|
|
2662
|
-
}, Xe = (e) => Math.round(e * 1e5) / 1e5,
|
|
2763
|
+
}, Xe = (e) => Math.round(e * 1e5) / 1e5, Cs = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
2663
2764
|
function Uo(e) {
|
|
2664
2765
|
return e == null;
|
|
2665
2766
|
}
|
|
2666
|
-
const Wo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,
|
|
2767
|
+
const Wo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Es = (e, t) => (n) => !!(typeof n == "string" && Wo.test(n) && n.startsWith(e) || t && !Uo(n) && Object.prototype.hasOwnProperty.call(n, t)), Hi = (e, t, n) => (i) => {
|
|
2667
2768
|
if (typeof i != "string")
|
|
2668
2769
|
return i;
|
|
2669
|
-
const [r, a, o, l] = i.match(
|
|
2770
|
+
const [r, a, o, l] = i.match(Cs);
|
|
2670
2771
|
return {
|
|
2671
2772
|
[e]: parseFloat(r),
|
|
2672
2773
|
[t]: parseFloat(a),
|
|
@@ -2677,7 +2778,7 @@ const Wo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
2677
2778
|
..._e,
|
|
2678
2779
|
transform: (e) => Math.round($o(e))
|
|
2679
2780
|
}, Se = {
|
|
2680
|
-
test: /* @__PURE__ */
|
|
2781
|
+
test: /* @__PURE__ */ Es("rgb", "red"),
|
|
2681
2782
|
parse: /* @__PURE__ */ Hi("red", "green", "blue"),
|
|
2682
2783
|
transform: ({ red: e, green: t, blue: n, alpha: i = 1 }) => "rgba(" + It.transform(e) + ", " + It.transform(t) + ", " + It.transform(n) + ", " + Xe(Qe.transform(i)) + ")"
|
|
2683
2784
|
};
|
|
@@ -2691,19 +2792,19 @@ function Ko(e) {
|
|
|
2691
2792
|
};
|
|
2692
2793
|
}
|
|
2693
2794
|
const Jt = {
|
|
2694
|
-
test: /* @__PURE__ */
|
|
2795
|
+
test: /* @__PURE__ */ Es("#"),
|
|
2695
2796
|
parse: Ko,
|
|
2696
2797
|
transform: Se.transform
|
|
2697
2798
|
}, rt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
2698
2799
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
2699
2800
|
parse: parseFloat,
|
|
2700
2801
|
transform: (t) => `${t}${e}`
|
|
2701
|
-
}), xe = /* @__PURE__ */ rt("deg"), he = /* @__PURE__ */ rt("%"), A = /* @__PURE__ */ rt("px"), Go = /* @__PURE__ */ rt("vh"), Yo = /* @__PURE__ */ rt("vw"),
|
|
2802
|
+
}), xe = /* @__PURE__ */ rt("deg"), he = /* @__PURE__ */ rt("%"), A = /* @__PURE__ */ rt("px"), Go = /* @__PURE__ */ rt("vh"), Yo = /* @__PURE__ */ rt("vw"), nn = {
|
|
2702
2803
|
...he,
|
|
2703
2804
|
parse: (e) => he.parse(e) / 100,
|
|
2704
2805
|
transform: (e) => he.transform(e * 100)
|
|
2705
2806
|
}, Re = {
|
|
2706
|
-
test: /* @__PURE__ */
|
|
2807
|
+
test: /* @__PURE__ */ Es("hsl", "hue"),
|
|
2707
2808
|
parse: /* @__PURE__ */ Hi("hue", "saturation", "lightness"),
|
|
2708
2809
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(e) + ", " + he.transform(Xe(t)) + ", " + he.transform(Xe(n)) + ", " + Xe(Qe.transform(i)) + ")"
|
|
2709
2810
|
}, z = {
|
|
@@ -2717,9 +2818,9 @@ const Jt = {
|
|
|
2717
2818
|
}, Xo = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
2718
2819
|
function qo(e) {
|
|
2719
2820
|
var t, n;
|
|
2720
|
-
return isNaN(e) && typeof e == "string" && (((t = e.match(
|
|
2821
|
+
return isNaN(e) && typeof e == "string" && (((t = e.match(Cs)) == null ? void 0 : t.length) || 0) + (((n = e.match(Xo)) == null ? void 0 : n.length) || 0) > 0;
|
|
2721
2822
|
}
|
|
2722
|
-
const _i = "number", Ui = "color", Zo = "var", Jo = "var(",
|
|
2823
|
+
const _i = "number", Ui = "color", Zo = "var", Jo = "var(", rn = "${}", Qo = /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;
|
|
2723
2824
|
function Oe(e) {
|
|
2724
2825
|
const t = e.toString(), n = [], i = {
|
|
2725
2826
|
color: [],
|
|
@@ -2727,7 +2828,7 @@ function Oe(e) {
|
|
|
2727
2828
|
var: []
|
|
2728
2829
|
}, r = [];
|
|
2729
2830
|
let a = 0;
|
|
2730
|
-
const l = t.replace(Qo, (c) => (z.test(c) ? (i.color.push(a), r.push(Ui), n.push(z.parse(c))) : c.startsWith(Jo) ? (i.var.push(a), r.push(Zo), n.push(c)) : (i.number.push(a), r.push(_i), n.push(parseFloat(c))), ++a,
|
|
2831
|
+
const l = t.replace(Qo, (c) => (z.test(c) ? (i.color.push(a), r.push(Ui), n.push(z.parse(c))) : c.startsWith(Jo) ? (i.var.push(a), r.push(Zo), n.push(c)) : (i.number.push(a), r.push(_i), n.push(parseFloat(c))), ++a, rn)).split(rn);
|
|
2731
2832
|
return { values: n, split: l, indexes: i, types: r };
|
|
2732
2833
|
}
|
|
2733
2834
|
function ea(e) {
|
|
@@ -2748,10 +2849,10 @@ function Wi({ split: e, types: t }) {
|
|
|
2748
2849
|
function ta(e) {
|
|
2749
2850
|
return Wi(Oe(e));
|
|
2750
2851
|
}
|
|
2751
|
-
const
|
|
2852
|
+
const sa = (e) => typeof e == "number" ? 0 : z.test(e) ? z.getAnimatableNone(e) : e, na = (e, t) => typeof e == "number" ? t != null && t.trim().endsWith("/") ? e : 0 : sa(e);
|
|
2752
2853
|
function ia(e) {
|
|
2753
2854
|
const t = Oe(e);
|
|
2754
|
-
return Wi(t)(t.values.map((i, r) =>
|
|
2855
|
+
return Wi(t)(t.values.map((i, r) => na(i, t.split[r])));
|
|
2755
2856
|
}
|
|
2756
2857
|
const ae = {
|
|
2757
2858
|
test: qo,
|
|
@@ -2785,15 +2886,15 @@ const L = (e, t, n) => e + (t - e) * n, Bt = (e, t, n) => {
|
|
|
2785
2886
|
const i = e * e, r = n * (t * t - i) + i;
|
|
2786
2887
|
return r < 0 ? 0 : Math.sqrt(r);
|
|
2787
2888
|
}, oa = [Jt, Se, Re], aa = (e) => oa.find((t) => t.test(e));
|
|
2788
|
-
function
|
|
2889
|
+
function on(e) {
|
|
2789
2890
|
const t = aa(e);
|
|
2790
2891
|
if (He(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
|
|
2791
2892
|
return !1;
|
|
2792
2893
|
let n = t.parse(e);
|
|
2793
2894
|
return t === Re && (n = ra(n)), n;
|
|
2794
2895
|
}
|
|
2795
|
-
const
|
|
2796
|
-
const n =
|
|
2896
|
+
const an = (e, t) => {
|
|
2897
|
+
const n = on(e), i = on(t);
|
|
2797
2898
|
if (!n || !i)
|
|
2798
2899
|
return wt(e, t);
|
|
2799
2900
|
const r = { ...n };
|
|
@@ -2805,11 +2906,11 @@ function la(e, t) {
|
|
|
2805
2906
|
function ca(e, t) {
|
|
2806
2907
|
return (n) => L(e, t, n);
|
|
2807
2908
|
}
|
|
2808
|
-
function
|
|
2809
|
-
return typeof e == "number" ? ca : typeof e == "string" ?
|
|
2909
|
+
function ks(e) {
|
|
2910
|
+
return typeof e == "number" ? ca : typeof e == "string" ? Vs(e) ? wt : z.test(e) ? an : da : Array.isArray(e) ? $i : typeof e == "object" ? z.test(e) ? an : ua : wt;
|
|
2810
2911
|
}
|
|
2811
2912
|
function $i(e, t) {
|
|
2812
|
-
const n = [...e], i = n.length, r = e.map((a, o) =>
|
|
2913
|
+
const n = [...e], i = n.length, r = e.map((a, o) => ks(a)(a, t[o]));
|
|
2813
2914
|
return (a) => {
|
|
2814
2915
|
for (let o = 0; o < i; o++)
|
|
2815
2916
|
n[o] = r[o](a);
|
|
@@ -2819,7 +2920,7 @@ function $i(e, t) {
|
|
|
2819
2920
|
function ua(e, t) {
|
|
2820
2921
|
const n = { ...e, ...t }, i = {};
|
|
2821
2922
|
for (const r in n)
|
|
2822
|
-
e[r] !== void 0 && t[r] !== void 0 && (i[r] =
|
|
2923
|
+
e[r] !== void 0 && t[r] !== void 0 && (i[r] = ks(e[r])(e[r], t[r]));
|
|
2823
2924
|
return (r) => {
|
|
2824
2925
|
for (const a in i)
|
|
2825
2926
|
n[a] = i[a](r);
|
|
@@ -2836,10 +2937,10 @@ function ha(e, t) {
|
|
|
2836
2937
|
}
|
|
2837
2938
|
const da = (e, t) => {
|
|
2838
2939
|
const n = ae.createTransformer(t), i = Oe(e), r = Oe(t);
|
|
2839
|
-
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 ? Qt.has(e) && !r.values.length || Qt.has(t) && !i.values.length ? la(e, t) :
|
|
2940
|
+
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 ? Qt.has(e) && !r.values.length || Qt.has(t) && !i.values.length ? la(e, t) : nt($i(ha(i, r), r.values), n) : (He(!0, `Complex values '${e}' and '${t}' 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.`, "complex-values-different"), wt(e, t));
|
|
2840
2941
|
};
|
|
2841
2942
|
function Ki(e, t, n) {
|
|
2842
|
-
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? L(e, t, n) :
|
|
2943
|
+
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? L(e, t, n) : ks(e)(e, t);
|
|
2843
2944
|
}
|
|
2844
2945
|
const fa = (e) => {
|
|
2845
2946
|
const t = ({ timestamp: n }) => e(n);
|
|
@@ -2859,7 +2960,7 @@ const fa = (e) => {
|
|
|
2859
2960
|
i += Math.round(e(a / (r - 1)) * 1e4) / 1e4 + ", ";
|
|
2860
2961
|
return `linear(${i.substring(0, i.length - 2)})`;
|
|
2861
2962
|
}, bt = 2e4;
|
|
2862
|
-
function
|
|
2963
|
+
function Ds(e) {
|
|
2863
2964
|
let t = 0;
|
|
2864
2965
|
const n = 50;
|
|
2865
2966
|
let i = e.next(t);
|
|
@@ -2868,11 +2969,11 @@ function Rn(e) {
|
|
|
2868
2969
|
return t >= bt ? 1 / 0 : t;
|
|
2869
2970
|
}
|
|
2870
2971
|
function pa(e, t = 100, n) {
|
|
2871
|
-
const i = n({ ...e, keyframes: [0, t] }), r = Math.min(
|
|
2972
|
+
const i = n({ ...e, keyframes: [0, t] }), r = Math.min(Ds(i), bt);
|
|
2872
2973
|
return {
|
|
2873
2974
|
type: "keyframes",
|
|
2874
2975
|
ease: (a) => i.next(r * a).value / t,
|
|
2875
|
-
duration: /* @__PURE__ */
|
|
2976
|
+
duration: /* @__PURE__ */ ne(r)
|
|
2876
2977
|
};
|
|
2877
2978
|
}
|
|
2878
2979
|
const B = {
|
|
@@ -2904,7 +3005,7 @@ const B = {
|
|
|
2904
3005
|
minDamping: 0.05,
|
|
2905
3006
|
maxDamping: 1
|
|
2906
3007
|
};
|
|
2907
|
-
function
|
|
3008
|
+
function es(e, t) {
|
|
2908
3009
|
return e * Math.sqrt(1 - t * t);
|
|
2909
3010
|
}
|
|
2910
3011
|
const ma = 12;
|
|
@@ -2914,17 +3015,17 @@ function xa(e, t, n) {
|
|
|
2914
3015
|
i = i - e(i) / t(i);
|
|
2915
3016
|
return i;
|
|
2916
3017
|
}
|
|
2917
|
-
const
|
|
3018
|
+
const ln = 1e-3;
|
|
2918
3019
|
function ya({ duration: e = B.duration, bounce: t = B.bounce, velocity: n = B.velocity, mass: i = B.mass }) {
|
|
2919
3020
|
let r, a;
|
|
2920
3021
|
He(e <= /* @__PURE__ */ te(B.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
2921
3022
|
let o = 1 - t;
|
|
2922
|
-
o = de(B.minDamping, B.maxDamping, o), e = de(B.minDuration, B.maxDuration, /* @__PURE__ */
|
|
2923
|
-
const u = h * o, d = u * e, f = u - n, m =
|
|
2924
|
-
return
|
|
3023
|
+
o = de(B.minDamping, B.maxDamping, o), e = de(B.minDuration, B.maxDuration, /* @__PURE__ */ ne(e)), o < 1 ? (r = (h) => {
|
|
3024
|
+
const u = h * o, d = u * e, f = u - n, m = es(h, o), x = Math.exp(-d);
|
|
3025
|
+
return ln - f / m * x;
|
|
2925
3026
|
}, a = (h) => {
|
|
2926
|
-
const d = h * o * e, f = d * n + n, m = Math.pow(o, 2) * Math.pow(h, 2) * e, x = Math.exp(-d), g =
|
|
2927
|
-
return (-r(h) +
|
|
3027
|
+
const d = h * o * e, f = d * n + n, m = Math.pow(o, 2) * Math.pow(h, 2) * e, x = Math.exp(-d), g = es(Math.pow(h, 2), o);
|
|
3028
|
+
return (-r(h) + ln > 0 ? -1 : 1) * ((f - m) * x) / g;
|
|
2928
3029
|
}) : (r = (h) => {
|
|
2929
3030
|
const u = Math.exp(-h * e), d = (h - n) * e + 1;
|
|
2930
3031
|
return -1e-3 + u * d;
|
|
@@ -2949,7 +3050,7 @@ function ya({ duration: e = B.duration, bounce: t = B.bounce, velocity: n = B.ve
|
|
|
2949
3050
|
}
|
|
2950
3051
|
}
|
|
2951
3052
|
const ga = ["duration", "bounce"], ja = ["stiffness", "damping", "mass"];
|
|
2952
|
-
function
|
|
3053
|
+
function cn(e, t) {
|
|
2953
3054
|
return t.some((n) => e[n] !== void 0);
|
|
2954
3055
|
}
|
|
2955
3056
|
function va(e) {
|
|
@@ -2961,7 +3062,7 @@ function va(e) {
|
|
|
2961
3062
|
isResolvedFromDuration: !1,
|
|
2962
3063
|
...e
|
|
2963
3064
|
};
|
|
2964
|
-
if (!
|
|
3065
|
+
if (!cn(e, ja) && cn(e, ga))
|
|
2965
3066
|
if (t.velocity = 0, e.visualDuration) {
|
|
2966
3067
|
const n = e.visualDuration, i = 2 * Math.PI / (n * 1.2), r = i * i, a = 2 * de(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(r);
|
|
2967
3068
|
t = {
|
|
@@ -2989,12 +3090,12 @@ function Tt(e = B.visualDuration, t = B.bounce) {
|
|
|
2989
3090
|
let { restSpeed: i, restDelta: r } = n;
|
|
2990
3091
|
const a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], l = { done: !1, value: a }, { stiffness: c, damping: h, mass: u, duration: d, velocity: f, isResolvedFromDuration: m } = va({
|
|
2991
3092
|
...n,
|
|
2992
|
-
velocity: -/* @__PURE__ */
|
|
2993
|
-
}), x = f || 0, g = h / (2 * Math.sqrt(c * u)), y = o - a, w = /* @__PURE__ */
|
|
3093
|
+
velocity: -/* @__PURE__ */ ne(n.velocity || 0)
|
|
3094
|
+
}), x = f || 0, g = h / (2 * Math.sqrt(c * u)), y = o - a, w = /* @__PURE__ */ ne(Math.sqrt(c / u)), v = Math.abs(y) < 5;
|
|
2994
3095
|
i || (i = v ? B.restSpeed.granular : B.restSpeed.default), r || (r = v ? B.restDelta.granular : B.restDelta.default);
|
|
2995
3096
|
let b, M, S, E, D, P;
|
|
2996
3097
|
if (g < 1)
|
|
2997
|
-
S =
|
|
3098
|
+
S = es(w, g), E = (x + g * w * y) / S, b = (T) => {
|
|
2998
3099
|
const C = Math.exp(-g * w * T);
|
|
2999
3100
|
return o - C * (E * Math.sin(S * T) + y * Math.cos(S * T));
|
|
3000
3101
|
}, D = g * w * E + y * S, P = g * w * y - E * S, M = (T) => Math.exp(-g * w * T) * (D * Math.sin(S * T) + P * Math.cos(S * T));
|
|
@@ -3032,7 +3133,7 @@ function Tt(e = B.visualDuration, t = B.bounce) {
|
|
|
3032
3133
|
return l.value = l.done ? o : C, l;
|
|
3033
3134
|
},
|
|
3034
3135
|
toString: () => {
|
|
3035
|
-
const T = Math.min(
|
|
3136
|
+
const T = Math.min(Ds(I), bt), C = Gi((F) => I.next(T * F).value, T, 30);
|
|
3036
3137
|
return T + "ms " + C;
|
|
3037
3138
|
},
|
|
3038
3139
|
toTransition: () => {
|
|
@@ -3049,7 +3150,7 @@ function Yi(e, t, n) {
|
|
|
3049
3150
|
const i = Math.max(t - wa, 0);
|
|
3050
3151
|
return Pi(n - e(i), t - i);
|
|
3051
3152
|
}
|
|
3052
|
-
function
|
|
3153
|
+
function ts({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: r = 10, bounceStiffness: a = 500, modifyTarget: o, min: l, max: c, restDelta: h = 0.5, restSpeed: u }) {
|
|
3053
3154
|
const d = e[0], f = {
|
|
3054
3155
|
done: !1,
|
|
3055
3156
|
value: d
|
|
@@ -3087,7 +3188,7 @@ function ba(e, t, n) {
|
|
|
3087
3188
|
let l = r(e[o], e[o + 1]);
|
|
3088
3189
|
if (t) {
|
|
3089
3190
|
const c = Array.isArray(t) ? t[o] || ie : t;
|
|
3090
|
-
l =
|
|
3191
|
+
l = nt(c, l);
|
|
3091
3192
|
}
|
|
3092
3193
|
i.push(l);
|
|
3093
3194
|
}
|
|
@@ -3131,7 +3232,7 @@ function Pa(e, t) {
|
|
|
3131
3232
|
return e.map(() => t || Fi).splice(0, e.length - 1);
|
|
3132
3233
|
}
|
|
3133
3234
|
function Le({ duration: e = 300, keyframes: t, times: n, ease: i = "easeInOut" }) {
|
|
3134
|
-
const r = Fo(i) ? i.map(
|
|
3235
|
+
const r = Fo(i) ? i.map(tn) : tn(i), a = {
|
|
3135
3236
|
done: !1,
|
|
3136
3237
|
value: t[0]
|
|
3137
3238
|
}, o = Aa(
|
|
@@ -3153,8 +3254,8 @@ function Ct(e, { repeat: t, repeatType: n = "loop" }, i, r = 1) {
|
|
|
3153
3254
|
return !l || i === void 0 ? a[l] : i;
|
|
3154
3255
|
}
|
|
3155
3256
|
const Ca = {
|
|
3156
|
-
decay:
|
|
3157
|
-
inertia:
|
|
3257
|
+
decay: ts,
|
|
3258
|
+
inertia: ts,
|
|
3158
3259
|
tween: Le,
|
|
3159
3260
|
keyframes: Le,
|
|
3160
3261
|
spring: Tt
|
|
@@ -3162,7 +3263,7 @@ const Ca = {
|
|
|
3162
3263
|
function Xi(e) {
|
|
3163
3264
|
typeof e.type == "string" && (e.type = Ca[e.type]);
|
|
3164
3265
|
}
|
|
3165
|
-
class
|
|
3266
|
+
class Rs {
|
|
3166
3267
|
constructor() {
|
|
3167
3268
|
this.updateFinished();
|
|
3168
3269
|
}
|
|
@@ -3187,7 +3288,7 @@ class Ln {
|
|
|
3187
3288
|
}
|
|
3188
3289
|
}
|
|
3189
3290
|
const Ea = (e) => e / 100;
|
|
3190
|
-
class Mt extends
|
|
3291
|
+
class Mt extends Rs {
|
|
3191
3292
|
constructor(t) {
|
|
3192
3293
|
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
|
|
3193
3294
|
done: !1,
|
|
@@ -3204,13 +3305,13 @@ class Mt extends Ln {
|
|
|
3204
3305
|
const { type: n = Le, repeat: i = 0, repeatDelay: r = 0, repeatType: a, velocity: o = 0 } = t;
|
|
3205
3306
|
let { keyframes: l } = t;
|
|
3206
3307
|
const c = n || Le;
|
|
3207
|
-
process.env.NODE_ENV !== "production" && c !== Le && pe(l.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`, "spring-two-frames"), c !== Le && typeof l[0] != "number" && (this.mixKeyframes =
|
|
3308
|
+
process.env.NODE_ENV !== "production" && c !== Le && pe(l.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`, "spring-two-frames"), c !== Le && typeof l[0] != "number" && (this.mixKeyframes = nt(Ea, Ki(l[0], l[1])), l = [0, 100]);
|
|
3208
3309
|
const h = c({ ...t, keyframes: l });
|
|
3209
3310
|
a === "mirror" && (this.mirroredGenerator = c({
|
|
3210
3311
|
...t,
|
|
3211
3312
|
keyframes: [...l].reverse(),
|
|
3212
3313
|
velocity: -o
|
|
3213
|
-
})), h.calculatedDuration === null && (h.calculatedDuration =
|
|
3314
|
+
})), h.calculatedDuration === null && (h.calculatedDuration = Ds(h));
|
|
3214
3315
|
const { calculatedDuration: u } = h;
|
|
3215
3316
|
this.calculatedDuration = u, this.resolvedDuration = u + r, this.totalDuration = this.resolvedDuration * (i + 1) - r, this.generator = h;
|
|
3216
3317
|
}
|
|
@@ -3237,7 +3338,7 @@ class Mt extends Ln {
|
|
|
3237
3338
|
let { done: E } = S;
|
|
3238
3339
|
!v && c !== null && (E = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
|
|
3239
3340
|
const D = this.holdTime === null && (this.state === "finished" || this.state === "running" && E);
|
|
3240
|
-
return D && x !==
|
|
3341
|
+
return D && x !== ts && (S.value = Ct(u, this.options, y, this.speed)), g && g(S.value), D && this.finish(), S;
|
|
3241
3342
|
}
|
|
3242
3343
|
/**
|
|
3243
3344
|
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
@@ -3248,14 +3349,14 @@ class Mt extends Ln {
|
|
|
3248
3349
|
return this.finished.then(t, n);
|
|
3249
3350
|
}
|
|
3250
3351
|
get duration() {
|
|
3251
|
-
return /* @__PURE__ */
|
|
3352
|
+
return /* @__PURE__ */ ne(this.calculatedDuration);
|
|
3252
3353
|
}
|
|
3253
3354
|
get iterationDuration() {
|
|
3254
3355
|
const { delay: t = 0 } = this.options || {};
|
|
3255
|
-
return this.duration + /* @__PURE__ */
|
|
3356
|
+
return this.duration + /* @__PURE__ */ ne(t);
|
|
3256
3357
|
}
|
|
3257
3358
|
get time() {
|
|
3258
|
-
return /* @__PURE__ */
|
|
3359
|
+
return /* @__PURE__ */ ne(this.currentTime);
|
|
3259
3360
|
}
|
|
3260
3361
|
set time(t) {
|
|
3261
3362
|
t = /* @__PURE__ */ te(t), this.currentTime = t, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = t, this.tick(t));
|
|
@@ -3279,7 +3380,7 @@ class Mt extends Ln {
|
|
|
3279
3380
|
}
|
|
3280
3381
|
set speed(t) {
|
|
3281
3382
|
const n = this.playbackSpeed !== t;
|
|
3282
|
-
n && this.driver && this.updateTime(Z.now()), this.playbackSpeed = t, n && this.driver && (this.time = /* @__PURE__ */
|
|
3383
|
+
n && this.driver && this.updateTime(Z.now()), this.playbackSpeed = t, n && this.driver && (this.time = /* @__PURE__ */ ne(this.currentTime));
|
|
3283
3384
|
}
|
|
3284
3385
|
play() {
|
|
3285
3386
|
var r, a;
|
|
@@ -3322,9 +3423,9 @@ function ka(e) {
|
|
|
3322
3423
|
for (let t = 1; t < e.length; t++)
|
|
3323
3424
|
e[t] ?? (e[t] = e[t - 1]);
|
|
3324
3425
|
}
|
|
3325
|
-
const Ae = (e) => e * 180 / Math.PI,
|
|
3426
|
+
const Ae = (e) => e * 180 / Math.PI, ss = (e) => {
|
|
3326
3427
|
const t = Ae(Math.atan2(e[1], e[0]));
|
|
3327
|
-
return
|
|
3428
|
+
return ns(t);
|
|
3328
3429
|
}, Da = {
|
|
3329
3430
|
x: 4,
|
|
3330
3431
|
y: 5,
|
|
@@ -3333,35 +3434,35 @@ const Ae = (e) => e * 180 / Math.PI, nn = (e) => {
|
|
|
3333
3434
|
scaleX: 0,
|
|
3334
3435
|
scaleY: 3,
|
|
3335
3436
|
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
3336
|
-
rotate:
|
|
3337
|
-
rotateZ:
|
|
3437
|
+
rotate: ss,
|
|
3438
|
+
rotateZ: ss,
|
|
3338
3439
|
skewX: (e) => Ae(Math.atan(e[1])),
|
|
3339
3440
|
skewY: (e) => Ae(Math.atan(e[2])),
|
|
3340
3441
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
3341
|
-
},
|
|
3442
|
+
}, ns = (e) => (e = e % 360, e < 0 && (e += 360), e), un = ss, hn = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), dn = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Ra = {
|
|
3342
3443
|
x: 12,
|
|
3343
3444
|
y: 13,
|
|
3344
3445
|
z: 14,
|
|
3345
3446
|
translateX: 12,
|
|
3346
3447
|
translateY: 13,
|
|
3347
3448
|
translateZ: 14,
|
|
3348
|
-
scaleX:
|
|
3349
|
-
scaleY:
|
|
3350
|
-
scale: (e) => (
|
|
3351
|
-
rotateX: (e) =>
|
|
3352
|
-
rotateY: (e) =>
|
|
3353
|
-
rotateZ:
|
|
3354
|
-
rotate:
|
|
3449
|
+
scaleX: hn,
|
|
3450
|
+
scaleY: dn,
|
|
3451
|
+
scale: (e) => (hn(e) + dn(e)) / 2,
|
|
3452
|
+
rotateX: (e) => ns(Ae(Math.atan2(e[6], e[5]))),
|
|
3453
|
+
rotateY: (e) => ns(Ae(Math.atan2(-e[2], e[0]))),
|
|
3454
|
+
rotateZ: un,
|
|
3455
|
+
rotate: un,
|
|
3355
3456
|
skewX: (e) => Ae(Math.atan(e[4])),
|
|
3356
3457
|
skewY: (e) => Ae(Math.atan(e[1])),
|
|
3357
3458
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
3358
3459
|
};
|
|
3359
|
-
function
|
|
3460
|
+
function is(e) {
|
|
3360
3461
|
return e.includes("scale") ? 1 : 0;
|
|
3361
3462
|
}
|
|
3362
|
-
function
|
|
3463
|
+
function rs(e, t) {
|
|
3363
3464
|
if (!e || e === "none")
|
|
3364
|
-
return
|
|
3465
|
+
return is(t);
|
|
3365
3466
|
const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
|
|
3366
3467
|
let i, r;
|
|
3367
3468
|
if (n)
|
|
@@ -3371,13 +3472,13 @@ function on(e, t) {
|
|
|
3371
3472
|
i = Da, r = l;
|
|
3372
3473
|
}
|
|
3373
3474
|
if (!r)
|
|
3374
|
-
return
|
|
3475
|
+
return is(t);
|
|
3375
3476
|
const a = i[t], o = r[1].split(",").map(Na);
|
|
3376
3477
|
return typeof a == "function" ? a(o) : o[a];
|
|
3377
3478
|
}
|
|
3378
3479
|
const La = (e, t) => {
|
|
3379
3480
|
const { transform: n = "none" } = getComputedStyle(e);
|
|
3380
|
-
return
|
|
3481
|
+
return rs(n, t);
|
|
3381
3482
|
};
|
|
3382
3483
|
function Na(e) {
|
|
3383
3484
|
return parseFloat(e.trim());
|
|
@@ -3400,7 +3501,7 @@ const Ue = [
|
|
|
3400
3501
|
"skew",
|
|
3401
3502
|
"skewX",
|
|
3402
3503
|
"skewY"
|
|
3403
|
-
], We = new Set(Ue),
|
|
3504
|
+
], We = new Set(Ue), fn = (e) => e === _e || e === A, Fa = /* @__PURE__ */ new Set(["x", "y", "z"]), Ia = Ue.filter((e) => !Fa.has(e));
|
|
3404
3505
|
function Oa(e) {
|
|
3405
3506
|
const t = [];
|
|
3406
3507
|
return Ia.forEach((n) => {
|
|
@@ -3423,15 +3524,15 @@ const ge = {
|
|
|
3423
3524
|
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
|
|
3424
3525
|
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
|
|
3425
3526
|
// Transform
|
|
3426
|
-
x: (e, { transform: t }) =>
|
|
3427
|
-
y: (e, { transform: t }) =>
|
|
3527
|
+
x: (e, { transform: t }) => rs(t, "x"),
|
|
3528
|
+
y: (e, { transform: t }) => rs(t, "y")
|
|
3428
3529
|
};
|
|
3429
3530
|
ge.translateX = ge.x;
|
|
3430
3531
|
ge.translateY = ge.y;
|
|
3431
3532
|
const Pe = /* @__PURE__ */ new Set();
|
|
3432
|
-
let
|
|
3533
|
+
let os = !1, as = !1, ls = !1;
|
|
3433
3534
|
function qi() {
|
|
3434
|
-
if (
|
|
3535
|
+
if (as) {
|
|
3435
3536
|
const e = Array.from(Pe).filter((i) => i.needsMeasurement), t = new Set(e.map((i) => i.element)), n = /* @__PURE__ */ new Map();
|
|
3436
3537
|
t.forEach((i) => {
|
|
3437
3538
|
const r = Oa(i);
|
|
@@ -3447,22 +3548,22 @@ function qi() {
|
|
|
3447
3548
|
i.suspendedScrollY !== void 0 && window.scrollTo(0, i.suspendedScrollY);
|
|
3448
3549
|
});
|
|
3449
3550
|
}
|
|
3450
|
-
|
|
3551
|
+
as = !1, os = !1, Pe.forEach((e) => e.complete(ls)), Pe.clear();
|
|
3451
3552
|
}
|
|
3452
3553
|
function Zi() {
|
|
3453
3554
|
Pe.forEach((e) => {
|
|
3454
|
-
e.readKeyframes(), e.needsMeasurement && (
|
|
3555
|
+
e.readKeyframes(), e.needsMeasurement && (as = !0);
|
|
3455
3556
|
});
|
|
3456
3557
|
}
|
|
3457
3558
|
function Ba() {
|
|
3458
|
-
|
|
3559
|
+
ls = !0, Zi(), qi(), ls = !1;
|
|
3459
3560
|
}
|
|
3460
|
-
class
|
|
3561
|
+
class Ls {
|
|
3461
3562
|
constructor(t, n, i, r, a, o = !1) {
|
|
3462
3563
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = i, this.motionValue = r, this.element = a, this.isAsync = o;
|
|
3463
3564
|
}
|
|
3464
3565
|
scheduleResolve() {
|
|
3465
|
-
this.state = "scheduled", this.isAsync ? (Pe.add(this),
|
|
3566
|
+
this.state = "scheduled", this.isAsync ? (Pe.add(this), os || (os = !0, k.read(Zi), k.resolveKeyframes(qi))) : (this.readKeyframes(), this.complete());
|
|
3466
3567
|
}
|
|
3467
3568
|
readKeyframes() {
|
|
3468
3569
|
const { unresolvedKeyframes: t, name: n, element: i, motionValue: r } = this;
|
|
@@ -3512,7 +3613,7 @@ const _a = /* @__PURE__ */ Qi(() => window.ScrollTimeline !== void 0, "scrollTim
|
|
|
3512
3613
|
return !1;
|
|
3513
3614
|
}
|
|
3514
3615
|
return !0;
|
|
3515
|
-
}, "linearEasing"), Ye = ([e, t, n, i]) => `cubic-bezier(${e}, ${t}, ${n}, ${i})`,
|
|
3616
|
+
}, "linearEasing"), Ye = ([e, t, n, i]) => `cubic-bezier(${e}, ${t}, ${n}, ${i})`, pn = {
|
|
3516
3617
|
linear: "linear",
|
|
3517
3618
|
ease: "ease",
|
|
3518
3619
|
easeIn: "ease-in",
|
|
@@ -3525,7 +3626,7 @@ const _a = /* @__PURE__ */ Qi(() => window.ScrollTimeline !== void 0, "scrollTim
|
|
|
3525
3626
|
};
|
|
3526
3627
|
function tr(e, t) {
|
|
3527
3628
|
if (e)
|
|
3528
|
-
return typeof e == "function" ? er() ? Gi(e, t) : "ease-out" : Ii(e) ? Ye(e) : Array.isArray(e) ? e.map((n) => tr(n, t) ||
|
|
3629
|
+
return typeof e == "function" ? er() ? Gi(e, t) : "ease-out" : Ii(e) ? Ye(e) : Array.isArray(e) ? e.map((n) => tr(n, t) || pn.easeOut) : pn[e];
|
|
3529
3630
|
}
|
|
3530
3631
|
function Ua(e, t, n, { delay: i = 0, duration: r = 300, repeat: a = 0, repeatType: o = "loop", ease: l = "easeOut", times: c } = {}, h = void 0) {
|
|
3531
3632
|
const u = {
|
|
@@ -3544,13 +3645,13 @@ function Ua(e, t, n, { delay: i = 0, duration: r = 300, repeat: a = 0, repeatTyp
|
|
|
3544
3645
|
};
|
|
3545
3646
|
return h && (f.pseudoElement = h), e.animate(u, f);
|
|
3546
3647
|
}
|
|
3547
|
-
function
|
|
3648
|
+
function sr(e) {
|
|
3548
3649
|
return typeof e == "function" && "applyToOptions" in e;
|
|
3549
3650
|
}
|
|
3550
3651
|
function Wa({ type: e, ...t }) {
|
|
3551
|
-
return
|
|
3652
|
+
return sr(e) && er() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
|
|
3552
3653
|
}
|
|
3553
|
-
class
|
|
3654
|
+
class nr extends Rs {
|
|
3554
3655
|
constructor(t) {
|
|
3555
3656
|
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t)
|
|
3556
3657
|
return;
|
|
@@ -3608,14 +3709,14 @@ class sr extends Ln {
|
|
|
3608
3709
|
get duration() {
|
|
3609
3710
|
var n, i;
|
|
3610
3711
|
const t = ((i = (n = this.animation.effect) == null ? void 0 : n.getComputedTiming) == null ? void 0 : i.call(n).duration) || 0;
|
|
3611
|
-
return /* @__PURE__ */
|
|
3712
|
+
return /* @__PURE__ */ ne(Number(t));
|
|
3612
3713
|
}
|
|
3613
3714
|
get iterationDuration() {
|
|
3614
3715
|
const { delay: t = 0 } = this.options || {};
|
|
3615
|
-
return this.duration + /* @__PURE__ */
|
|
3716
|
+
return this.duration + /* @__PURE__ */ ne(t);
|
|
3616
3717
|
}
|
|
3617
3718
|
get time() {
|
|
3618
|
-
return /* @__PURE__ */
|
|
3719
|
+
return /* @__PURE__ */ ne(Number(this.animation.currentTime) || 0);
|
|
3619
3720
|
}
|
|
3620
3721
|
set time(t) {
|
|
3621
3722
|
const n = this.finishedTime !== null;
|
|
@@ -3660,7 +3761,7 @@ function Ka(e) {
|
|
|
3660
3761
|
typeof e.ease == "string" && $a(e.ease) && (e.ease = ir[e.ease]);
|
|
3661
3762
|
}
|
|
3662
3763
|
const zt = 10;
|
|
3663
|
-
class Ga extends
|
|
3764
|
+
class Ga extends nr {
|
|
3664
3765
|
constructor(t) {
|
|
3665
3766
|
Ka(t), Xi(t), super(t), t.startTime !== void 0 && t.autoplay !== !1 && (this.startTime = t.startTime), this.options = t;
|
|
3666
3767
|
}
|
|
@@ -3687,7 +3788,7 @@ class Ga extends sr {
|
|
|
3687
3788
|
a && d && Ji(a, d, u), n.setWithVelocity(l.sample(Math.max(0, c - h)).value, u, h), l.stop();
|
|
3688
3789
|
}
|
|
3689
3790
|
}
|
|
3690
|
-
const
|
|
3791
|
+
const mn = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
|
|
3691
3792
|
(ae.test(e) || e === "0") && // And it contains numbers and/or colors
|
|
3692
3793
|
!e.startsWith("url("));
|
|
3693
3794
|
function Ya(e) {
|
|
@@ -3704,10 +3805,10 @@ function Xa(e, t, n, i) {
|
|
|
3704
3805
|
return !1;
|
|
3705
3806
|
if (t === "display" || t === "visibility")
|
|
3706
3807
|
return !0;
|
|
3707
|
-
const a = e[e.length - 1], o =
|
|
3708
|
-
return He(o === l, `You are trying to animate ${t} from "${r}" to "${a}". "${o ? a : r}" is not an animatable value.`, "value-not-animatable"), !o || !l ? !1 : Ya(e) || (n === "spring" ||
|
|
3808
|
+
const a = e[e.length - 1], o = mn(r, t), l = mn(a, t);
|
|
3809
|
+
return He(o === l, `You are trying to animate ${t} from "${r}" to "${a}". "${o ? a : r}" is not an animatable value.`, "value-not-animatable"), !o || !l ? !1 : Ya(e) || (n === "spring" || sr(n)) && i;
|
|
3709
3810
|
}
|
|
3710
|
-
function
|
|
3811
|
+
function cs(e) {
|
|
3711
3812
|
e.duration = 0, e.type = "keyframes";
|
|
3712
3813
|
}
|
|
3713
3814
|
const rr = /* @__PURE__ */ new Set([
|
|
@@ -3754,7 +3855,7 @@ function el(e) {
|
|
|
3754
3855
|
!h && !i && r !== "mirror" && a !== 0 && o !== "inertia";
|
|
3755
3856
|
}
|
|
3756
3857
|
const tl = 40;
|
|
3757
|
-
class
|
|
3858
|
+
class sl extends Rs {
|
|
3758
3859
|
constructor({ autoplay: t = !0, delay: n = 0, type: i = "keyframes", repeat: r = 0, repeatDelay: a = 0, repeatType: o = "loop", keyframes: l, name: c, motionValue: h, element: u, ...d }) {
|
|
3759
3860
|
var x;
|
|
3760
3861
|
super(), this.stop = () => {
|
|
@@ -3772,7 +3873,7 @@ class nl extends Ln {
|
|
|
3772
3873
|
motionValue: h,
|
|
3773
3874
|
element: u,
|
|
3774
3875
|
...d
|
|
3775
|
-
}, m = (u == null ? void 0 : u.KeyframeResolver) ||
|
|
3876
|
+
}, m = (u == null ? void 0 : u.KeyframeResolver) || Ls;
|
|
3776
3877
|
this.keyframeResolver = new m(l, (g, y, w) => this.onKeyframesResolved(g, y, f, !w), c, h, u), (x = this.keyframeResolver) == null || x.scheduleResolve();
|
|
3777
3878
|
}
|
|
3778
3879
|
onKeyframesResolved(t, n, i, r) {
|
|
@@ -3781,7 +3882,7 @@ class nl extends Ln {
|
|
|
3781
3882
|
const { name: a, type: o, velocity: l, delay: c, isHandoff: h, onUpdate: u } = i;
|
|
3782
3883
|
this.resolvedAt = Z.now();
|
|
3783
3884
|
let d = !0;
|
|
3784
|
-
Xa(t, a, o, l) || (d = !1, (ve.instantAnimations || !c) && (u == null || u(Ct(t, i, n))), t[0] = t[t.length - 1],
|
|
3885
|
+
Xa(t, a, o, l) || (d = !1, (ve.instantAnimations || !c) && (u == null || u(Ct(t, i, n))), t[0] = t[t.length - 1], cs(i), i.repeat = 0);
|
|
3785
3886
|
const m = {
|
|
3786
3887
|
startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > tl ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
|
|
3787
3888
|
finalKeyframe: n,
|
|
@@ -3860,12 +3961,12 @@ function or(e, t, n, i = 0, r = 1) {
|
|
|
3860
3961
|
const a = Array.from(e).sort((h, u) => h.sortNodePosition(u)).indexOf(t), o = e.size, l = (o - 1) * i;
|
|
3861
3962
|
return typeof n == "function" ? n(a, o) : r === 1 ? a * i : l - a * i;
|
|
3862
3963
|
}
|
|
3863
|
-
const
|
|
3964
|
+
const nl = (
|
|
3864
3965
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
3865
3966
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
3866
3967
|
);
|
|
3867
3968
|
function il(e) {
|
|
3868
|
-
const t =
|
|
3969
|
+
const t = nl.exec(e);
|
|
3869
3970
|
if (!t)
|
|
3870
3971
|
return [,];
|
|
3871
3972
|
const [, n, i, r] = t;
|
|
@@ -3882,7 +3983,7 @@ function ar(e, t, n = 1) {
|
|
|
3882
3983
|
const o = a.trim();
|
|
3883
3984
|
return Ti(o) ? parseFloat(o) : o;
|
|
3884
3985
|
}
|
|
3885
|
-
return
|
|
3986
|
+
return Vs(r) ? ar(r, t, n + 1) : r;
|
|
3886
3987
|
}
|
|
3887
3988
|
const ol = {
|
|
3888
3989
|
type: "spring",
|
|
@@ -3909,7 +4010,7 @@ function lr(e, t) {
|
|
|
3909
4010
|
}
|
|
3910
4011
|
return e;
|
|
3911
4012
|
}
|
|
3912
|
-
function
|
|
4013
|
+
function Ns(e, t) {
|
|
3913
4014
|
const n = (e == null ? void 0 : e[t]) ?? (e == null ? void 0 : e.default) ?? e;
|
|
3914
4015
|
return n !== e ? lr(n, e) : n;
|
|
3915
4016
|
}
|
|
@@ -3931,8 +4032,8 @@ function dl(e) {
|
|
|
3931
4032
|
return !0;
|
|
3932
4033
|
return !1;
|
|
3933
4034
|
}
|
|
3934
|
-
const
|
|
3935
|
-
const l =
|
|
4035
|
+
const Fs = (e, t, n, i = {}, r, a) => (o) => {
|
|
4036
|
+
const l = Ns(i, e) || {}, c = l.delay || i.delay || 0;
|
|
3936
4037
|
let { elapsed: h = 0 } = i;
|
|
3937
4038
|
h = h - /* @__PURE__ */ te(c);
|
|
3938
4039
|
const u = {
|
|
@@ -3953,7 +4054,7 @@ const In = (e, t, n, i = {}, r, a) => (o) => {
|
|
|
3953
4054
|
};
|
|
3954
4055
|
dl(l) || Object.assign(u, ul(e, u)), u.duration && (u.duration = /* @__PURE__ */ te(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ te(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
3955
4056
|
let d = !1;
|
|
3956
|
-
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (
|
|
4057
|
+
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (cs(u), u.delay === 0 && (d = !0)), (ve.instantAnimations || ve.skipAnimations || r != null && r.shouldSkipAnimations) && (d = !0, cs(u), u.delay = 0), u.allowFlatten = !l.type && !l.ease, d && !a && t.get() !== void 0) {
|
|
3957
4058
|
const f = Ct(u.keyframes, l);
|
|
3958
4059
|
if (f !== void 0) {
|
|
3959
4060
|
k.update(() => {
|
|
@@ -3962,28 +4063,28 @@ const In = (e, t, n, i = {}, r, a) => (o) => {
|
|
|
3962
4063
|
return;
|
|
3963
4064
|
}
|
|
3964
4065
|
}
|
|
3965
|
-
return l.isSync ? new Mt(u) : new
|
|
4066
|
+
return l.isSync ? new Mt(u) : new sl(u);
|
|
3966
4067
|
};
|
|
3967
|
-
function
|
|
4068
|
+
function xn(e) {
|
|
3968
4069
|
const t = [{}, {}];
|
|
3969
4070
|
return e == null || e.values.forEach((n, i) => {
|
|
3970
4071
|
t[0][i] = n.get(), t[1][i] = n.getVelocity();
|
|
3971
4072
|
}), t;
|
|
3972
4073
|
}
|
|
3973
|
-
function
|
|
4074
|
+
function Is(e, t, n, i) {
|
|
3974
4075
|
if (typeof t == "function") {
|
|
3975
|
-
const [r, a] =
|
|
4076
|
+
const [r, a] = xn(i);
|
|
3976
4077
|
t = t(n !== void 0 ? n : e.custom, r, a);
|
|
3977
4078
|
}
|
|
3978
4079
|
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
|
|
3979
|
-
const [r, a] =
|
|
4080
|
+
const [r, a] = xn(i);
|
|
3980
4081
|
t = t(n !== void 0 ? n : e.custom, r, a);
|
|
3981
4082
|
}
|
|
3982
4083
|
return t;
|
|
3983
4084
|
}
|
|
3984
4085
|
function Ve(e, t, n) {
|
|
3985
4086
|
const i = e.getProps();
|
|
3986
|
-
return
|
|
4087
|
+
return Is(i, t, n !== void 0 ? n : i.custom, e);
|
|
3987
4088
|
}
|
|
3988
4089
|
const cr = /* @__PURE__ */ new Set([
|
|
3989
4090
|
"width",
|
|
@@ -3993,7 +4094,7 @@ const cr = /* @__PURE__ */ new Set([
|
|
|
3993
4094
|
"right",
|
|
3994
4095
|
"bottom",
|
|
3995
4096
|
...Ue
|
|
3996
|
-
]),
|
|
4097
|
+
]), yn = 30, fl = (e) => !isNaN(parseFloat(e));
|
|
3997
4098
|
class pl {
|
|
3998
4099
|
/**
|
|
3999
4100
|
* @param init - The initiating value
|
|
@@ -4057,10 +4158,10 @@ class pl {
|
|
|
4057
4158
|
* @deprecated
|
|
4058
4159
|
*/
|
|
4059
4160
|
onChange(t) {
|
|
4060
|
-
return process.env.NODE_ENV !== "production" &&
|
|
4161
|
+
return process.env.NODE_ENV !== "production" && Ss(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
|
|
4061
4162
|
}
|
|
4062
4163
|
on(t, n) {
|
|
4063
|
-
this.events[t] || (this.events[t] = new
|
|
4164
|
+
this.events[t] || (this.events[t] = new Ms());
|
|
4064
4165
|
const i = this.events[t].add(n);
|
|
4065
4166
|
return t === "change" ? () => {
|
|
4066
4167
|
i(), k.read(() => {
|
|
@@ -4141,9 +4242,9 @@ class pl {
|
|
|
4141
4242
|
*/
|
|
4142
4243
|
getVelocity() {
|
|
4143
4244
|
const t = Z.now();
|
|
4144
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt >
|
|
4245
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > yn)
|
|
4145
4246
|
return 0;
|
|
4146
|
-
const n = Math.min(this.updatedAt - this.prevUpdatedAt,
|
|
4247
|
+
const n = Math.min(this.updatedAt - this.prevUpdatedAt, yn);
|
|
4147
4248
|
return Pi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
|
|
4148
4249
|
}
|
|
4149
4250
|
/**
|
|
@@ -4199,12 +4300,12 @@ class pl {
|
|
|
4199
4300
|
function Be(e, t) {
|
|
4200
4301
|
return new pl(e, t);
|
|
4201
4302
|
}
|
|
4202
|
-
const
|
|
4303
|
+
const us = (e) => Array.isArray(e);
|
|
4203
4304
|
function ml(e, t, n) {
|
|
4204
4305
|
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Be(n));
|
|
4205
4306
|
}
|
|
4206
4307
|
function xl(e) {
|
|
4207
|
-
return
|
|
4308
|
+
return us(e) ? e[e.length - 1] || 0 : e;
|
|
4208
4309
|
}
|
|
4209
4310
|
function yl(e, t) {
|
|
4210
4311
|
const n = Ve(e, t);
|
|
@@ -4219,7 +4320,7 @@ const W = (e) => !!(e && e.getVelocity);
|
|
|
4219
4320
|
function gl(e) {
|
|
4220
4321
|
return !!(W(e) && e.add);
|
|
4221
4322
|
}
|
|
4222
|
-
function
|
|
4323
|
+
function hs(e, t) {
|
|
4223
4324
|
const n = e.getValue("willChange");
|
|
4224
4325
|
if (gl(n))
|
|
4225
4326
|
return n.add(t);
|
|
@@ -4228,10 +4329,10 @@ function dn(e, t) {
|
|
|
4228
4329
|
e.addValue("willChange", i), i.add(t);
|
|
4229
4330
|
}
|
|
4230
4331
|
}
|
|
4231
|
-
function
|
|
4332
|
+
function Os(e) {
|
|
4232
4333
|
return e.replace(/([A-Z])/g, (t) => `-${t.toLowerCase()}`);
|
|
4233
4334
|
}
|
|
4234
|
-
const jl = "framerAppearId", ur = "data-" +
|
|
4335
|
+
const jl = "framerAppearId", ur = "data-" + Os(jl);
|
|
4235
4336
|
function hr(e) {
|
|
4236
4337
|
return e.props[ur];
|
|
4237
4338
|
}
|
|
@@ -4252,7 +4353,7 @@ function dr(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
|
4252
4353
|
continue;
|
|
4253
4354
|
const g = {
|
|
4254
4355
|
delay: n,
|
|
4255
|
-
...
|
|
4356
|
+
...Ns(a || {}, f)
|
|
4256
4357
|
}, y = m.get();
|
|
4257
4358
|
if (y !== void 0 && !m.isAnimating() && !Array.isArray(x) && x === y && !g.velocity) {
|
|
4258
4359
|
k.update(() => m.set(x));
|
|
@@ -4266,9 +4367,9 @@ function dr(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
|
4266
4367
|
S !== null && (g.startTime = S, w = !0);
|
|
4267
4368
|
}
|
|
4268
4369
|
}
|
|
4269
|
-
|
|
4370
|
+
hs(e, f);
|
|
4270
4371
|
const v = h ?? e.shouldReduceMotion;
|
|
4271
|
-
m.start(
|
|
4372
|
+
m.start(Fs(f, m, x, v && cr.has(f) ? { type: !1 } : g, e, w));
|
|
4272
4373
|
const b = m.animation;
|
|
4273
4374
|
b && u.push(b);
|
|
4274
4375
|
}
|
|
@@ -4280,7 +4381,7 @@ function dr(e, t, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
|
4280
4381
|
}
|
|
4281
4382
|
return u;
|
|
4282
4383
|
}
|
|
4283
|
-
function
|
|
4384
|
+
function ds(e, t, n = {}) {
|
|
4284
4385
|
var c;
|
|
4285
4386
|
const i = Ve(e, t, n.type === "exit" ? (c = e.presenceContext) == null ? void 0 : c.custom : void 0);
|
|
4286
4387
|
let { transition: r = e.getDefaultTransition() || {} } = i || {};
|
|
@@ -4298,7 +4399,7 @@ function fn(e, t, n = {}) {
|
|
|
4298
4399
|
function wl(e, t, n = 0, i = 0, r = 0, a = 1, o) {
|
|
4299
4400
|
const l = [];
|
|
4300
4401
|
for (const c of e.variantChildren)
|
|
4301
|
-
c.notify("AnimationStart", t), l.push(
|
|
4402
|
+
c.notify("AnimationStart", t), l.push(ds(c, t, {
|
|
4302
4403
|
...o,
|
|
4303
4404
|
delay: n + (typeof i == "function" ? 0 : i) + or(e.variantChildren, c, i, r, a)
|
|
4304
4405
|
}).then(() => c.notify("AnimationComplete", t)));
|
|
@@ -4308,10 +4409,10 @@ function bl(e, t, n = {}) {
|
|
|
4308
4409
|
e.notify("AnimationStart", t);
|
|
4309
4410
|
let i;
|
|
4310
4411
|
if (Array.isArray(t)) {
|
|
4311
|
-
const r = t.map((a) =>
|
|
4412
|
+
const r = t.map((a) => ds(e, a, n));
|
|
4312
4413
|
i = Promise.all(r);
|
|
4313
4414
|
} else if (typeof t == "string")
|
|
4314
|
-
i =
|
|
4415
|
+
i = ds(e, t, n);
|
|
4315
4416
|
else {
|
|
4316
4417
|
const r = typeof t == "function" ? Ve(e, t, n.custom) : t;
|
|
4317
4418
|
i = Promise.all(dr(e, r, n));
|
|
@@ -4323,7 +4424,7 @@ function bl(e, t, n = {}) {
|
|
|
4323
4424
|
const Tl = {
|
|
4324
4425
|
test: (e) => e === "auto",
|
|
4325
4426
|
parse: (e) => e
|
|
4326
|
-
}, fr = (e) => (t) => t.test(e), pr = [_e, A, he, xe, Yo, Go, Tl],
|
|
4427
|
+
}, fr = (e) => (t) => t.test(e), pr = [_e, A, he, xe, Yo, Go, Tl], gn = (e) => pr.find(fr(e));
|
|
4327
4428
|
function Ml(e) {
|
|
4328
4429
|
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Si(e) : !0;
|
|
4329
4430
|
}
|
|
@@ -4332,26 +4433,26 @@ function Al(e) {
|
|
|
4332
4433
|
const [t, n] = e.slice(0, -1).split("(");
|
|
4333
4434
|
if (t === "drop-shadow")
|
|
4334
4435
|
return e;
|
|
4335
|
-
const [i] = n.match(
|
|
4436
|
+
const [i] = n.match(Cs) || [];
|
|
4336
4437
|
if (!i)
|
|
4337
4438
|
return e;
|
|
4338
4439
|
const r = n.replace(i, "");
|
|
4339
4440
|
let a = Sl.has(t) ? 1 : 0;
|
|
4340
4441
|
return i !== n && (a *= 100), t + "(" + a + r + ")";
|
|
4341
4442
|
}
|
|
4342
|
-
const Pl = /\b([a-z-]*)\(.*?\)/gu,
|
|
4443
|
+
const Pl = /\b([a-z-]*)\(.*?\)/gu, fs = {
|
|
4343
4444
|
...ae,
|
|
4344
4445
|
getAnimatableNone: (e) => {
|
|
4345
4446
|
const t = e.match(Pl);
|
|
4346
4447
|
return t ? t.map(Al).join(" ") : e;
|
|
4347
4448
|
}
|
|
4348
|
-
},
|
|
4449
|
+
}, ps = {
|
|
4349
4450
|
...ae,
|
|
4350
4451
|
getAnimatableNone: (e) => {
|
|
4351
4452
|
const t = ae.parse(e);
|
|
4352
4453
|
return ae.createTransformer(e)(t.map((i) => typeof i == "number" ? 0 : typeof i == "object" ? { ...i, alpha: 1 } : i));
|
|
4353
4454
|
}
|
|
4354
|
-
},
|
|
4455
|
+
}, jn = {
|
|
4355
4456
|
..._e,
|
|
4356
4457
|
transform: Math.round
|
|
4357
4458
|
}, Vl = {
|
|
@@ -4376,10 +4477,10 @@ const Pl = /\b([a-z-]*)\(.*?\)/gu, pn = {
|
|
|
4376
4477
|
perspective: A,
|
|
4377
4478
|
transformPerspective: A,
|
|
4378
4479
|
opacity: Qe,
|
|
4379
|
-
originX:
|
|
4380
|
-
originY:
|
|
4480
|
+
originX: nn,
|
|
4481
|
+
originY: nn,
|
|
4381
4482
|
originZ: A
|
|
4382
|
-
},
|
|
4483
|
+
}, Bs = {
|
|
4383
4484
|
// Border props
|
|
4384
4485
|
borderWidth: A,
|
|
4385
4486
|
borderTopWidth: A,
|
|
@@ -4436,13 +4537,13 @@ const Pl = /\b([a-z-]*)\(.*?\)/gu, pn = {
|
|
|
4436
4537
|
backgroundPositionX: A,
|
|
4437
4538
|
backgroundPositionY: A,
|
|
4438
4539
|
...Vl,
|
|
4439
|
-
zIndex:
|
|
4540
|
+
zIndex: jn,
|
|
4440
4541
|
// SVG
|
|
4441
4542
|
fillOpacity: Qe,
|
|
4442
4543
|
strokeOpacity: Qe,
|
|
4443
|
-
numOctaves:
|
|
4544
|
+
numOctaves: jn
|
|
4444
4545
|
}, Cl = {
|
|
4445
|
-
...
|
|
4546
|
+
...Bs,
|
|
4446
4547
|
// Color props
|
|
4447
4548
|
color: z,
|
|
4448
4549
|
backgroundColor: z,
|
|
@@ -4455,11 +4556,11 @@ const Pl = /\b([a-z-]*)\(.*?\)/gu, pn = {
|
|
|
4455
4556
|
borderRightColor: z,
|
|
4456
4557
|
borderBottomColor: z,
|
|
4457
4558
|
borderLeftColor: z,
|
|
4458
|
-
filter:
|
|
4459
|
-
WebkitFilter:
|
|
4460
|
-
mask:
|
|
4461
|
-
WebkitMask:
|
|
4462
|
-
}, mr = (e) => Cl[e], El = /* @__PURE__ */ new Set([
|
|
4559
|
+
filter: fs,
|
|
4560
|
+
WebkitFilter: fs,
|
|
4561
|
+
mask: ps,
|
|
4562
|
+
WebkitMask: ps
|
|
4563
|
+
}, mr = (e) => Cl[e], El = /* @__PURE__ */ new Set([fs, ps]);
|
|
4463
4564
|
function xr(e, t) {
|
|
4464
4565
|
let n = mr(e);
|
|
4465
4566
|
return El.has(n) || (n = ae), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
@@ -4475,7 +4576,7 @@ function Dl(e, t, n) {
|
|
|
4475
4576
|
for (const a of t)
|
|
4476
4577
|
e[a] = xr(n, r);
|
|
4477
4578
|
}
|
|
4478
|
-
class Rl extends
|
|
4579
|
+
class Rl extends Ls {
|
|
4479
4580
|
constructor(t, n, i, r, a) {
|
|
4480
4581
|
super(t, n, i, r, a, !0);
|
|
4481
4582
|
}
|
|
@@ -4486,20 +4587,20 @@ class Rl extends Nn {
|
|
|
4486
4587
|
super.readKeyframes();
|
|
4487
4588
|
for (let u = 0; u < t.length; u++) {
|
|
4488
4589
|
let d = t[u];
|
|
4489
|
-
if (typeof d == "string" && (d = d.trim(),
|
|
4590
|
+
if (typeof d == "string" && (d = d.trim(), Vs(d))) {
|
|
4490
4591
|
const f = ar(d, n.current);
|
|
4491
4592
|
f !== void 0 && (t[u] = f), u === t.length - 1 && (this.finalKeyframe = d);
|
|
4492
4593
|
}
|
|
4493
4594
|
}
|
|
4494
4595
|
if (this.resolveNoneKeyframes(), !cr.has(i) || t.length !== 2)
|
|
4495
4596
|
return;
|
|
4496
|
-
const [r, a] = t, o =
|
|
4597
|
+
const [r, a] = t, o = gn(r), l = gn(a), c = sn(r), h = sn(a);
|
|
4497
4598
|
if (c !== h && ge[i]) {
|
|
4498
4599
|
this.needsMeasurement = !0;
|
|
4499
4600
|
return;
|
|
4500
4601
|
}
|
|
4501
4602
|
if (o !== l)
|
|
4502
|
-
if (
|
|
4603
|
+
if (fn(o) && fn(l))
|
|
4503
4604
|
for (let u = 0; u < t.length; u++) {
|
|
4504
4605
|
const d = t[u];
|
|
4505
4606
|
typeof d == "string" && (t[u] = parseFloat(d));
|
|
@@ -4549,7 +4650,7 @@ const gr = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
|
|
|
4549
4650
|
function Ll(e) {
|
|
4550
4651
|
return Mi(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
|
|
4551
4652
|
}
|
|
4552
|
-
const { schedule:
|
|
4653
|
+
const { schedule: zs } = /* @__PURE__ */ Oi(queueMicrotask, !1), oe = {
|
|
4553
4654
|
x: !1,
|
|
4554
4655
|
y: !1
|
|
4555
4656
|
};
|
|
@@ -4604,7 +4705,7 @@ function Il(e, t, n = {}) {
|
|
|
4604
4705
|
o.addEventListener("pointerenter", g, r), o.addEventListener("pointerdown", m, r);
|
|
4605
4706
|
}), a;
|
|
4606
4707
|
}
|
|
4607
|
-
const wr = (e, t) => t ? e === t ? !0 : wr(e, t.parentElement) : !1,
|
|
4708
|
+
const wr = (e, t) => t ? e === t ? !0 : wr(e, t.parentElement) : !1, Hs = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Ol = /* @__PURE__ */ new Set([
|
|
4608
4709
|
"BUTTON",
|
|
4609
4710
|
"INPUT",
|
|
4610
4711
|
"SELECT",
|
|
@@ -4619,7 +4720,7 @@ function Hl(e) {
|
|
|
4619
4720
|
return zl.has(e.tagName) || e.isContentEditable === !0;
|
|
4620
4721
|
}
|
|
4621
4722
|
const pt = /* @__PURE__ */ new WeakSet();
|
|
4622
|
-
function
|
|
4723
|
+
function vn(e) {
|
|
4623
4724
|
return (t) => {
|
|
4624
4725
|
t.key === "Enter" && e(t);
|
|
4625
4726
|
};
|
|
@@ -4631,29 +4732,29 @@ const _l = (e, t) => {
|
|
|
4631
4732
|
const n = e.currentTarget;
|
|
4632
4733
|
if (!n)
|
|
4633
4734
|
return;
|
|
4634
|
-
const i =
|
|
4735
|
+
const i = vn(() => {
|
|
4635
4736
|
if (pt.has(n))
|
|
4636
4737
|
return;
|
|
4637
4738
|
Ht(n, "down");
|
|
4638
|
-
const r =
|
|
4739
|
+
const r = vn(() => {
|
|
4639
4740
|
Ht(n, "up");
|
|
4640
4741
|
}), a = () => Ht(n, "cancel");
|
|
4641
4742
|
n.addEventListener("keyup", r, t), n.addEventListener("blur", a, t);
|
|
4642
4743
|
});
|
|
4643
4744
|
n.addEventListener("keydown", i, t), n.addEventListener("blur", () => n.removeEventListener("keydown", i), t);
|
|
4644
4745
|
};
|
|
4645
|
-
function
|
|
4646
|
-
return
|
|
4746
|
+
function wn(e) {
|
|
4747
|
+
return Hs(e) && !jr();
|
|
4647
4748
|
}
|
|
4648
|
-
const
|
|
4749
|
+
const bn = /* @__PURE__ */ new WeakSet();
|
|
4649
4750
|
function Ul(e, t, n = {}) {
|
|
4650
4751
|
const [i, r, a] = vr(e, n), o = (l) => {
|
|
4651
4752
|
const c = l.currentTarget;
|
|
4652
|
-
if (!
|
|
4753
|
+
if (!wn(l) || bn.has(l))
|
|
4653
4754
|
return;
|
|
4654
|
-
pt.add(c), n.stopPropagation &&
|
|
4755
|
+
pt.add(c), n.stopPropagation && bn.add(l);
|
|
4655
4756
|
const h = t(c, l), u = (m, x) => {
|
|
4656
|
-
window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), pt.has(c) && pt.delete(c),
|
|
4757
|
+
window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), pt.has(c) && pt.delete(c), wn(m) && typeof h == "function" && h(m, { success: x });
|
|
4657
4758
|
}, d = (m) => {
|
|
4658
4759
|
u(m, c === window || c === document || n.useGlobalTarget || wr(c, m.target));
|
|
4659
4760
|
}, f = (m) => {
|
|
@@ -4665,12 +4766,12 @@ function Ul(e, t, n = {}) {
|
|
|
4665
4766
|
(n.useGlobalTarget ? window : l).addEventListener("pointerdown", o, r), Ll(l) && (l.addEventListener("focus", (h) => _l(h, r)), !Bl(l) && !l.hasAttribute("tabindex") && (l.tabIndex = 0));
|
|
4666
4767
|
}), a;
|
|
4667
4768
|
}
|
|
4668
|
-
function
|
|
4769
|
+
function _s(e) {
|
|
4669
4770
|
return Mi(e) && "ownerSVGElement" in e;
|
|
4670
4771
|
}
|
|
4671
4772
|
const mt = /* @__PURE__ */ new WeakMap();
|
|
4672
4773
|
let ye;
|
|
4673
|
-
const br = (e, t, n) => (i, r) => r && r[0] ? r[0][e + "Size"] :
|
|
4774
|
+
const br = (e, t, n) => (i, r) => r && r[0] ? r[0][e + "Size"] : _s(i) && "getBBox" in i ? i.getBBox()[t] : i[n], Wl = /* @__PURE__ */ br("inline", "width", "offsetWidth"), $l = /* @__PURE__ */ br("block", "height", "offsetHeight");
|
|
4674
4775
|
function Kl({ target: e, borderBoxSize: t }) {
|
|
4675
4776
|
var n;
|
|
4676
4777
|
(n = mt.get(e)) == null || n.forEach((i) => {
|
|
@@ -4723,23 +4824,23 @@ function Zl(e) {
|
|
|
4723
4824
|
xt.delete(e), !xt.size && typeof Ne == "function" && (window.removeEventListener("resize", Ne), Ne = void 0);
|
|
4724
4825
|
};
|
|
4725
4826
|
}
|
|
4726
|
-
function
|
|
4827
|
+
function Tn(e, t) {
|
|
4727
4828
|
return typeof e == "function" ? Zl(e) : Xl(e, t);
|
|
4728
4829
|
}
|
|
4729
4830
|
function Jl(e) {
|
|
4730
|
-
return
|
|
4831
|
+
return _s(e) && e.tagName === "svg";
|
|
4731
4832
|
}
|
|
4732
|
-
const Ql = [...pr, z, ae], ec = (e) => Ql.find(fr(e)),
|
|
4833
|
+
const Ql = [...pr, z, ae], ec = (e) => Ql.find(fr(e)), Mn = () => ({
|
|
4733
4834
|
translate: 0,
|
|
4734
4835
|
scale: 1,
|
|
4735
4836
|
origin: 0,
|
|
4736
4837
|
originPoint: 0
|
|
4737
4838
|
}), Fe = () => ({
|
|
4738
|
-
x:
|
|
4739
|
-
y:
|
|
4740
|
-
}),
|
|
4741
|
-
x:
|
|
4742
|
-
y:
|
|
4839
|
+
x: Mn(),
|
|
4840
|
+
y: Mn()
|
|
4841
|
+
}), Sn = () => ({ min: 0, max: 0 }), H = () => ({
|
|
4842
|
+
x: Sn(),
|
|
4843
|
+
y: Sn()
|
|
4743
4844
|
}), tc = /* @__PURE__ */ new WeakMap();
|
|
4744
4845
|
function Et(e) {
|
|
4745
4846
|
return e !== null && typeof e == "object" && typeof e.start == "function";
|
|
@@ -4747,7 +4848,7 @@ function Et(e) {
|
|
|
4747
4848
|
function et(e) {
|
|
4748
4849
|
return typeof e == "string" || Array.isArray(e);
|
|
4749
4850
|
}
|
|
4750
|
-
const
|
|
4851
|
+
const Us = [
|
|
4751
4852
|
"animate",
|
|
4752
4853
|
"whileInView",
|
|
4753
4854
|
"whileFocus",
|
|
@@ -4755,14 +4856,14 @@ const Wn = [
|
|
|
4755
4856
|
"whileTap",
|
|
4756
4857
|
"whileDrag",
|
|
4757
4858
|
"exit"
|
|
4758
|
-
],
|
|
4859
|
+
], Ws = ["initial", ...Us];
|
|
4759
4860
|
function kt(e) {
|
|
4760
|
-
return Et(e.animate) ||
|
|
4861
|
+
return Et(e.animate) || Ws.some((t) => et(e[t]));
|
|
4761
4862
|
}
|
|
4762
4863
|
function Tr(e) {
|
|
4763
4864
|
return !!(kt(e) || e.variants);
|
|
4764
4865
|
}
|
|
4765
|
-
function
|
|
4866
|
+
function sc(e, t, n) {
|
|
4766
4867
|
for (const i in t) {
|
|
4767
4868
|
const r = t[i], a = n[i];
|
|
4768
4869
|
if (W(r))
|
|
@@ -4782,16 +4883,16 @@ function nc(e, t, n) {
|
|
|
4782
4883
|
t[i] === void 0 && e.removeValue(i);
|
|
4783
4884
|
return t;
|
|
4784
4885
|
}
|
|
4785
|
-
const
|
|
4886
|
+
const ms = { current: null }, Mr = { current: !1 }, nc = typeof window < "u";
|
|
4786
4887
|
function ic() {
|
|
4787
|
-
if (Mr.current = !0, !!
|
|
4888
|
+
if (Mr.current = !0, !!nc)
|
|
4788
4889
|
if (window.matchMedia) {
|
|
4789
|
-
const e = window.matchMedia("(prefers-reduced-motion)"), t = () =>
|
|
4890
|
+
const e = window.matchMedia("(prefers-reduced-motion)"), t = () => ms.current = e.matches;
|
|
4790
4891
|
e.addEventListener("change", t), t();
|
|
4791
4892
|
} else
|
|
4792
|
-
|
|
4893
|
+
ms.current = !1;
|
|
4793
4894
|
}
|
|
4794
|
-
const
|
|
4895
|
+
const An = [
|
|
4795
4896
|
"AnimationStart",
|
|
4796
4897
|
"AnimationComplete",
|
|
4797
4898
|
"Update",
|
|
@@ -4819,7 +4920,7 @@ class oc {
|
|
|
4819
4920
|
return {};
|
|
4820
4921
|
}
|
|
4821
4922
|
constructor({ parent: t, props: n, presenceContext: i, reducedMotionConfig: r, skipAnimations: a, blockInitialAnimation: o, visualState: l }, c = {}) {
|
|
4822
|
-
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver =
|
|
4923
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Ls, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
4823
4924
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
4824
4925
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
4825
4926
|
const m = Z.now();
|
|
@@ -4838,7 +4939,7 @@ class oc {
|
|
|
4838
4939
|
if (this.hasBeenMounted)
|
|
4839
4940
|
for (const r in this.initialValues)
|
|
4840
4941
|
(n = this.values.get(r)) == null || n.jump(this.initialValues[r]), this.latestValues[r] = this.initialValues[r];
|
|
4841
|
-
this.current = t, tc.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, a) => this.bindToMotionValue(a, r)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Mr.current || ic(), this.shouldReduceMotion =
|
|
4942
|
+
this.current = t, tc.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, a) => this.bindToMotionValue(a, r)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Mr.current || ic(), this.shouldReduceMotion = ms.current), process.env.NODE_ENV !== "production" && Ss(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, (i = this.parent) == null || i.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
|
|
4842
4943
|
}
|
|
4843
4944
|
unmount() {
|
|
4844
4945
|
var t;
|
|
@@ -4859,7 +4960,7 @@ class oc {
|
|
|
4859
4960
|
}
|
|
4860
4961
|
bindToMotionValue(t, n) {
|
|
4861
4962
|
if (this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(), n.accelerate && rr.has(t) && this.current instanceof HTMLElement) {
|
|
4862
|
-
const { factory: o, keyframes: l, times: c, ease: h, duration: u } = n.accelerate, d = new
|
|
4963
|
+
const { factory: o, keyframes: l, times: c, ease: h, duration: u } = n.accelerate, d = new nr({
|
|
4863
4964
|
element: this.current,
|
|
4864
4965
|
name: t,
|
|
4865
4966
|
keyframes: l,
|
|
@@ -4921,13 +5022,13 @@ class oc {
|
|
|
4921
5022
|
*/
|
|
4922
5023
|
update(t, n) {
|
|
4923
5024
|
(t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
|
|
4924
|
-
for (let i = 0; i <
|
|
4925
|
-
const r =
|
|
5025
|
+
for (let i = 0; i < An.length; i++) {
|
|
5026
|
+
const r = An[i];
|
|
4926
5027
|
this.propEventSubscriptions[r] && (this.propEventSubscriptions[r](), delete this.propEventSubscriptions[r]);
|
|
4927
5028
|
const a = "on" + r, o = t[a];
|
|
4928
5029
|
o && (this.propEventSubscriptions[r] = this.on(r, o));
|
|
4929
5030
|
}
|
|
4930
|
-
this.prevMotionValues =
|
|
5031
|
+
this.prevMotionValues = sc(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
4931
5032
|
}
|
|
4932
5033
|
getProps() {
|
|
4933
5034
|
return this.props;
|
|
@@ -5010,7 +5111,7 @@ class oc {
|
|
|
5010
5111
|
const { initial: n } = this.props;
|
|
5011
5112
|
let i;
|
|
5012
5113
|
if (typeof n == "string" || typeof n == "object") {
|
|
5013
|
-
const o =
|
|
5114
|
+
const o = Is(this.props, n, (a = this.presenceContext) == null ? void 0 : a.custom);
|
|
5014
5115
|
o && (i = o[t]);
|
|
5015
5116
|
}
|
|
5016
5117
|
if (n && i !== void 0)
|
|
@@ -5019,13 +5120,13 @@ class oc {
|
|
|
5019
5120
|
return r !== void 0 && !W(r) ? r : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
|
|
5020
5121
|
}
|
|
5021
5122
|
on(t, n) {
|
|
5022
|
-
return this.events[t] || (this.events[t] = new
|
|
5123
|
+
return this.events[t] || (this.events[t] = new Ms()), this.events[t].add(n);
|
|
5023
5124
|
}
|
|
5024
5125
|
notify(t, ...n) {
|
|
5025
5126
|
this.events[t] && this.events[t].notify(...n);
|
|
5026
5127
|
}
|
|
5027
5128
|
scheduleRenderMicrotask() {
|
|
5028
|
-
|
|
5129
|
+
zs.render(this.render);
|
|
5029
5130
|
}
|
|
5030
5131
|
}
|
|
5031
5132
|
class Ar extends oc {
|
|
@@ -5080,32 +5181,32 @@ function lc(e, t) {
|
|
|
5080
5181
|
function _t(e) {
|
|
5081
5182
|
return e === void 0 || e === 1;
|
|
5082
5183
|
}
|
|
5083
|
-
function
|
|
5184
|
+
function xs({ scale: e, scaleX: t, scaleY: n }) {
|
|
5084
5185
|
return !_t(e) || !_t(t) || !_t(n);
|
|
5085
5186
|
}
|
|
5086
5187
|
function Me(e) {
|
|
5087
|
-
return
|
|
5188
|
+
return xs(e) || Vr(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
|
|
5088
5189
|
}
|
|
5089
5190
|
function Vr(e) {
|
|
5090
|
-
return
|
|
5191
|
+
return Pn(e.x) || Pn(e.y);
|
|
5091
5192
|
}
|
|
5092
|
-
function
|
|
5193
|
+
function Pn(e) {
|
|
5093
5194
|
return e && e !== "0%";
|
|
5094
5195
|
}
|
|
5095
5196
|
function At(e, t, n) {
|
|
5096
5197
|
const i = e - n, r = t * i;
|
|
5097
5198
|
return n + r;
|
|
5098
5199
|
}
|
|
5099
|
-
function
|
|
5200
|
+
function Vn(e, t, n, i, r) {
|
|
5100
5201
|
return r !== void 0 && (e = At(e, r, i)), At(e, n, i) + t;
|
|
5101
5202
|
}
|
|
5102
|
-
function
|
|
5103
|
-
e.min =
|
|
5203
|
+
function ys(e, t = 0, n = 1, i, r) {
|
|
5204
|
+
e.min = Vn(e.min, t, n, i, r), e.max = Vn(e.max, t, n, i, r);
|
|
5104
5205
|
}
|
|
5105
5206
|
function Cr(e, { x: t, y: n }) {
|
|
5106
|
-
|
|
5207
|
+
ys(e.x, t.translate, t.scale, t.originPoint), ys(e.y, n.translate, n.scale, n.originPoint);
|
|
5107
5208
|
}
|
|
5108
|
-
const
|
|
5209
|
+
const Cn = 0.999999999999, En = 1.0000000000001;
|
|
5109
5210
|
function cc(e, t, n, i = !1) {
|
|
5110
5211
|
var l;
|
|
5111
5212
|
const r = n.length;
|
|
@@ -5118,21 +5219,21 @@ function cc(e, t, n, i = !1) {
|
|
|
5118
5219
|
const { visualElement: h } = a.options;
|
|
5119
5220
|
h && h.props.style && h.props.style.display === "contents" || (i && a.options.layoutScroll && a.scroll && a !== a.root && (ue(e.x, -a.scroll.offset.x), ue(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, Cr(e, o)), i && Me(a.latestValues) && yt(e, a.latestValues, (l = a.layout) == null ? void 0 : l.layoutBox));
|
|
5120
5221
|
}
|
|
5121
|
-
t.x <
|
|
5222
|
+
t.x < En && t.x > Cn && (t.x = 1), t.y < En && t.y > Cn && (t.y = 1);
|
|
5122
5223
|
}
|
|
5123
5224
|
function ue(e, t) {
|
|
5124
5225
|
e.min += t, e.max += t;
|
|
5125
5226
|
}
|
|
5126
|
-
function
|
|
5227
|
+
function kn(e, t, n, i, r = 0.5) {
|
|
5127
5228
|
const a = L(e.min, e.max, r);
|
|
5128
|
-
|
|
5229
|
+
ys(e, t, n, a, i);
|
|
5129
5230
|
}
|
|
5130
|
-
function
|
|
5231
|
+
function Dn(e, t) {
|
|
5131
5232
|
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
|
|
5132
5233
|
}
|
|
5133
5234
|
function yt(e, t, n) {
|
|
5134
5235
|
const i = n ?? e;
|
|
5135
|
-
|
|
5236
|
+
kn(e.x, Dn(t.x, i.x), t.scaleX, t.scale, t.originX), kn(e.y, Dn(t.y, i.y), t.scaleY, t.scale, t.originY);
|
|
5136
5237
|
}
|
|
5137
5238
|
function Er(e, t) {
|
|
5138
5239
|
return Pr(lc(e.getBoundingClientRect(), t));
|
|
@@ -5161,7 +5262,7 @@ function fc(e, t, n) {
|
|
|
5161
5262
|
c = o.startsWith("scale") ? h === 1 : h === 0;
|
|
5162
5263
|
}
|
|
5163
5264
|
if (!c || n) {
|
|
5164
|
-
const h = gr(l,
|
|
5265
|
+
const h = gr(l, Bs[o]);
|
|
5165
5266
|
if (!c) {
|
|
5166
5267
|
r = !1;
|
|
5167
5268
|
const u = hc[o] || o;
|
|
@@ -5172,7 +5273,7 @@ function fc(e, t, n) {
|
|
|
5172
5273
|
}
|
|
5173
5274
|
return i = i.trim(), n ? i = n(t, r ? "" : i) : r && (i = "none"), i;
|
|
5174
5275
|
}
|
|
5175
|
-
function
|
|
5276
|
+
function $s(e, t, n) {
|
|
5176
5277
|
const { style: i, vars: r, transformOrigin: a } = e;
|
|
5177
5278
|
let o = !1, l = !1;
|
|
5178
5279
|
for (const c in t) {
|
|
@@ -5184,7 +5285,7 @@ function Kn(e, t, n) {
|
|
|
5184
5285
|
r[c] = h;
|
|
5185
5286
|
continue;
|
|
5186
5287
|
} else {
|
|
5187
|
-
const u = gr(h,
|
|
5288
|
+
const u = gr(h, Bs[c]);
|
|
5188
5289
|
c.startsWith("origin") ? (l = !0, a[c] = u) : i[c] = u;
|
|
5189
5290
|
}
|
|
5190
5291
|
}
|
|
@@ -5202,7 +5303,7 @@ function kr(e, { style: t, vars: n }, i, r) {
|
|
|
5202
5303
|
for (o in n)
|
|
5203
5304
|
a.setProperty(o, n[o]);
|
|
5204
5305
|
}
|
|
5205
|
-
function
|
|
5306
|
+
function Rn(e, t) {
|
|
5206
5307
|
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
|
|
5207
5308
|
}
|
|
5208
5309
|
const Ge = {
|
|
@@ -5214,7 +5315,7 @@ const Ge = {
|
|
|
5214
5315
|
e = parseFloat(e);
|
|
5215
5316
|
else
|
|
5216
5317
|
return e;
|
|
5217
|
-
const n =
|
|
5318
|
+
const n = Rn(e, t.target.x), i = Rn(e, t.target.y);
|
|
5218
5319
|
return `${n}% ${i}%`;
|
|
5219
5320
|
}
|
|
5220
5321
|
}, pc = {
|
|
@@ -5227,7 +5328,7 @@ const Ge = {
|
|
|
5227
5328
|
const h = L(l, c, 0.5);
|
|
5228
5329
|
return typeof r[2 + o] == "number" && (r[2 + o] /= h), typeof r[3 + o] == "number" && (r[3 + o] /= h), a(r);
|
|
5229
5330
|
}
|
|
5230
|
-
},
|
|
5331
|
+
}, gs = {
|
|
5231
5332
|
borderRadius: {
|
|
5232
5333
|
...Ge,
|
|
5233
5334
|
applyTo: [
|
|
@@ -5244,9 +5345,9 @@ const Ge = {
|
|
|
5244
5345
|
boxShadow: pc
|
|
5245
5346
|
};
|
|
5246
5347
|
function Dr(e, { layout: t, layoutId: n }) {
|
|
5247
|
-
return We.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!
|
|
5348
|
+
return We.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!gs[e] || e === "opacity");
|
|
5248
5349
|
}
|
|
5249
|
-
function
|
|
5350
|
+
function Ks(e, t, n) {
|
|
5250
5351
|
var o;
|
|
5251
5352
|
const i = e.style, r = t == null ? void 0 : t.style, a = {};
|
|
5252
5353
|
if (!i)
|
|
@@ -5265,7 +5366,7 @@ class xc extends Ar {
|
|
|
5265
5366
|
readValueFromInstance(t, n) {
|
|
5266
5367
|
var i;
|
|
5267
5368
|
if (We.has(n))
|
|
5268
|
-
return (i = this.projection) != null && i.isProjecting ?
|
|
5369
|
+
return (i = this.projection) != null && i.isProjecting ? is(n) : La(t, n);
|
|
5269
5370
|
{
|
|
5270
5371
|
const r = mc(t), a = (zi(n) ? r.getPropertyValue(n) : r[n]) || 0;
|
|
5271
5372
|
return typeof a == "string" ? a.trim() : a;
|
|
@@ -5275,10 +5376,10 @@ class xc extends Ar {
|
|
|
5275
5376
|
return Er(t, n);
|
|
5276
5377
|
}
|
|
5277
5378
|
build(t, n, i) {
|
|
5278
|
-
|
|
5379
|
+
$s(t, n, i.transformTemplate);
|
|
5279
5380
|
}
|
|
5280
5381
|
scrapeMotionValuesFromProps(t, n, i) {
|
|
5281
|
-
return
|
|
5382
|
+
return Ks(t, n, i);
|
|
5282
5383
|
}
|
|
5283
5384
|
}
|
|
5284
5385
|
const yc = {
|
|
@@ -5309,7 +5410,7 @@ function Rr(e, {
|
|
|
5309
5410
|
// This is object creation, which we try to avoid per-frame.
|
|
5310
5411
|
...l
|
|
5311
5412
|
}, c, h, u) {
|
|
5312
|
-
if (
|
|
5413
|
+
if ($s(e, l, h), c) {
|
|
5313
5414
|
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
5314
5415
|
return;
|
|
5315
5416
|
}
|
|
@@ -5348,10 +5449,10 @@ const Lr = /* @__PURE__ */ new Set([
|
|
|
5348
5449
|
function wc(e, t, n, i) {
|
|
5349
5450
|
kr(e, t, void 0, i);
|
|
5350
5451
|
for (const r in t.attrs)
|
|
5351
|
-
e.setAttribute(Lr.has(r) ? r :
|
|
5452
|
+
e.setAttribute(Lr.has(r) ? r : Os(r), t.attrs[r]);
|
|
5352
5453
|
}
|
|
5353
5454
|
function Fr(e, t, n) {
|
|
5354
|
-
const i =
|
|
5455
|
+
const i = Ks(e, t, n);
|
|
5355
5456
|
for (const r in e)
|
|
5356
5457
|
if (W(e[r]) || W(t[r])) {
|
|
5357
5458
|
const a = Ue.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
|
|
@@ -5371,7 +5472,7 @@ class bc extends Ar {
|
|
|
5371
5472
|
const i = mr(n);
|
|
5372
5473
|
return i && i.default || 0;
|
|
5373
5474
|
}
|
|
5374
|
-
return n = Lr.has(n) ? n :
|
|
5475
|
+
return n = Lr.has(n) ? n : Os(n), t.getAttribute(n);
|
|
5375
5476
|
}
|
|
5376
5477
|
scrapeMotionValuesFromProps(t, n, i) {
|
|
5377
5478
|
return Fr(t, n, i);
|
|
@@ -5386,7 +5487,7 @@ class bc extends Ar {
|
|
|
5386
5487
|
this.isSVGTag = Nr(t.tagName), super.mount(t);
|
|
5387
5488
|
}
|
|
5388
5489
|
}
|
|
5389
|
-
const Tc =
|
|
5490
|
+
const Tc = Ws.length;
|
|
5390
5491
|
function Ir(e) {
|
|
5391
5492
|
if (!e)
|
|
5392
5493
|
return;
|
|
@@ -5396,7 +5497,7 @@ function Ir(e) {
|
|
|
5396
5497
|
}
|
|
5397
5498
|
const t = {};
|
|
5398
5499
|
for (let n = 0; n < Tc; n++) {
|
|
5399
|
-
const i =
|
|
5500
|
+
const i = Ws[n], r = e.props[i];
|
|
5400
5501
|
(et(r) || r === !1) && (t[i] = r);
|
|
5401
5502
|
}
|
|
5402
5503
|
return t;
|
|
@@ -5412,12 +5513,12 @@ function Or(e, t) {
|
|
|
5412
5513
|
return !1;
|
|
5413
5514
|
return !0;
|
|
5414
5515
|
}
|
|
5415
|
-
const Mc = [...
|
|
5516
|
+
const Mc = [...Us].reverse(), Sc = Us.length;
|
|
5416
5517
|
function Ac(e) {
|
|
5417
5518
|
return (t) => Promise.all(t.map(({ animation: n, options: i }) => bl(e, n, i)));
|
|
5418
5519
|
}
|
|
5419
5520
|
function Pc(e) {
|
|
5420
|
-
let t = Ac(e), n =
|
|
5521
|
+
let t = Ac(e), n = Ln(), i = !0, r = !1;
|
|
5421
5522
|
const a = (h) => (u, d) => {
|
|
5422
5523
|
var m;
|
|
5423
5524
|
const f = Ve(e, d, h === "exit" ? (m = e.presenceContext) == null ? void 0 : m.custom : void 0);
|
|
@@ -5469,7 +5570,7 @@ function Pc(e) {
|
|
|
5469
5570
|
if (x.hasOwnProperty(O))
|
|
5470
5571
|
continue;
|
|
5471
5572
|
let V = !1;
|
|
5472
|
-
|
|
5573
|
+
us(_) && us(j) ? V = !Or(_, j) : V = _ !== j, V ? _ != null ? Q(O) : m.add(O) : _ !== void 0 && m.has(O) ? Q(O) : b.protectedKeys[O] = !0;
|
|
5473
5574
|
}
|
|
5474
5575
|
b.prevProp = M, b.prevResolvedValues = F, b.isActive && (x = { ...x, ...F }), (i || r) && e.blockInitialAnimation && (I = !1);
|
|
5475
5576
|
const q = D && P;
|
|
@@ -5521,7 +5622,7 @@ function Pc(e) {
|
|
|
5521
5622
|
setAnimateFunction: o,
|
|
5522
5623
|
getState: () => n,
|
|
5523
5624
|
reset: () => {
|
|
5524
|
-
n =
|
|
5625
|
+
n = Ln(), r = !0;
|
|
5525
5626
|
}
|
|
5526
5627
|
};
|
|
5527
5628
|
}
|
|
@@ -5536,7 +5637,7 @@ function Te(e = !1) {
|
|
|
5536
5637
|
prevResolvedValues: {}
|
|
5537
5638
|
};
|
|
5538
5639
|
}
|
|
5539
|
-
function
|
|
5640
|
+
function Ln() {
|
|
5540
5641
|
return {
|
|
5541
5642
|
animate: Te(!0),
|
|
5542
5643
|
whileInView: Te(),
|
|
@@ -5547,13 +5648,13 @@ function Ls() {
|
|
|
5547
5648
|
exit: Te()
|
|
5548
5649
|
};
|
|
5549
5650
|
}
|
|
5550
|
-
function
|
|
5651
|
+
function js(e, t) {
|
|
5551
5652
|
e.min = t.min, e.max = t.max;
|
|
5552
5653
|
}
|
|
5553
5654
|
function re(e, t) {
|
|
5554
|
-
|
|
5655
|
+
js(e.x, t.x), js(e.y, t.y);
|
|
5555
5656
|
}
|
|
5556
|
-
function
|
|
5657
|
+
function Nn(e, t) {
|
|
5557
5658
|
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
|
|
5558
5659
|
}
|
|
5559
5660
|
const Br = 1e-4, Cc = 1 - Br, Ec = 1 + Br, zr = 0.01, kc = 0 - zr, Dc = 0 + zr;
|
|
@@ -5563,64 +5664,64 @@ function J(e) {
|
|
|
5563
5664
|
function Rc(e, t, n) {
|
|
5564
5665
|
return Math.abs(e - t) <= n;
|
|
5565
5666
|
}
|
|
5566
|
-
function
|
|
5667
|
+
function Fn(e, t, n, i = 0.5) {
|
|
5567
5668
|
e.origin = i, e.originPoint = L(t.min, t.max, e.origin), e.scale = J(n) / J(t), e.translate = L(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Cc && e.scale <= Ec || isNaN(e.scale)) && (e.scale = 1), (e.translate >= kc && e.translate <= Dc || isNaN(e.translate)) && (e.translate = 0);
|
|
5568
5669
|
}
|
|
5569
5670
|
function qe(e, t, n, i) {
|
|
5570
|
-
|
|
5671
|
+
Fn(e.x, t.x, n.x, i ? i.originX : void 0), Fn(e.y, t.y, n.y, i ? i.originY : void 0);
|
|
5571
5672
|
}
|
|
5572
|
-
function
|
|
5673
|
+
function In(e, t, n, i = 0) {
|
|
5573
5674
|
const r = i ? L(n.min, n.max, i) : n.min;
|
|
5574
5675
|
e.min = r + t.min, e.max = e.min + J(t);
|
|
5575
5676
|
}
|
|
5576
5677
|
function Lc(e, t, n, i) {
|
|
5577
|
-
|
|
5678
|
+
In(e.x, t.x, n.x, i == null ? void 0 : i.x), In(e.y, t.y, n.y, i == null ? void 0 : i.y);
|
|
5578
5679
|
}
|
|
5579
|
-
function
|
|
5680
|
+
function On(e, t, n, i = 0) {
|
|
5580
5681
|
const r = i ? L(n.min, n.max, i) : n.min;
|
|
5581
5682
|
e.min = t.min - r, e.max = e.min + J(t);
|
|
5582
5683
|
}
|
|
5583
5684
|
function Pt(e, t, n, i) {
|
|
5584
|
-
|
|
5685
|
+
On(e.x, t.x, n.x, i == null ? void 0 : i.x), On(e.y, t.y, n.y, i == null ? void 0 : i.y);
|
|
5585
5686
|
}
|
|
5586
|
-
function
|
|
5687
|
+
function Bn(e, t, n, i, r) {
|
|
5587
5688
|
return e -= t, e = At(e, 1 / n, i), r !== void 0 && (e = At(e, 1 / r, i)), e;
|
|
5588
5689
|
}
|
|
5589
5690
|
function Nc(e, t = 0, n = 1, i = 0.5, r, a = e, o = e) {
|
|
5590
5691
|
if (he.test(t) && (t = parseFloat(t), t = L(o.min, o.max, t / 100) - o.min), typeof t != "number")
|
|
5591
5692
|
return;
|
|
5592
5693
|
let l = L(a.min, a.max, i);
|
|
5593
|
-
e === a && (l -= t), e.min =
|
|
5694
|
+
e === a && (l -= t), e.min = Bn(e.min, t, n, l, r), e.max = Bn(e.max, t, n, l, r);
|
|
5594
5695
|
}
|
|
5595
|
-
function
|
|
5696
|
+
function zn(e, t, [n, i, r], a, o) {
|
|
5596
5697
|
Nc(e, t[n], t[i], t[r], t.scale, a, o);
|
|
5597
5698
|
}
|
|
5598
5699
|
const Fc = ["x", "scaleX", "originX"], Ic = ["y", "scaleY", "originY"];
|
|
5599
|
-
function
|
|
5600
|
-
|
|
5700
|
+
function Hn(e, t, n, i) {
|
|
5701
|
+
zn(e.x, t, Fc, n ? n.x : void 0, i ? i.x : void 0), zn(e.y, t, Ic, n ? n.y : void 0, i ? i.y : void 0);
|
|
5601
5702
|
}
|
|
5602
|
-
function
|
|
5703
|
+
function _n(e) {
|
|
5603
5704
|
return e.translate === 0 && e.scale === 1;
|
|
5604
5705
|
}
|
|
5605
5706
|
function Hr(e) {
|
|
5606
|
-
return
|
|
5707
|
+
return _n(e.x) && _n(e.y);
|
|
5607
5708
|
}
|
|
5608
|
-
function
|
|
5709
|
+
function Un(e, t) {
|
|
5609
5710
|
return e.min === t.min && e.max === t.max;
|
|
5610
5711
|
}
|
|
5611
5712
|
function Oc(e, t) {
|
|
5612
|
-
return
|
|
5713
|
+
return Un(e.x, t.x) && Un(e.y, t.y);
|
|
5613
5714
|
}
|
|
5614
|
-
function
|
|
5715
|
+
function Wn(e, t) {
|
|
5615
5716
|
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
|
|
5616
5717
|
}
|
|
5617
5718
|
function _r(e, t) {
|
|
5618
|
-
return
|
|
5719
|
+
return Wn(e.x, t.x) && Wn(e.y, t.y);
|
|
5619
5720
|
}
|
|
5620
|
-
function $
|
|
5721
|
+
function $n(e) {
|
|
5621
5722
|
return J(e.x) / J(e.y);
|
|
5622
5723
|
}
|
|
5623
|
-
function
|
|
5724
|
+
function Kn(e, t) {
|
|
5624
5725
|
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
5625
5726
|
}
|
|
5626
5727
|
function ce(e) {
|
|
@@ -5641,19 +5742,19 @@ const Ur = [
|
|
|
5641
5742
|
"borderTopRightRadius",
|
|
5642
5743
|
"borderBottomLeftRadius",
|
|
5643
5744
|
"borderBottomRightRadius"
|
|
5644
|
-
], zc = Ur.length,
|
|
5745
|
+
], zc = Ur.length, Gn = (e) => typeof e == "string" ? parseFloat(e) : e, Yn = (e) => typeof e == "number" || A.test(e);
|
|
5645
5746
|
function Hc(e, t, n, i, r, a) {
|
|
5646
5747
|
r ? (e.opacity = L(0, n.opacity ?? 1, _c(i)), e.opacityExit = L(t.opacity ?? 1, 0, Uc(i))) : a && (e.opacity = L(t.opacity ?? 1, n.opacity ?? 1, i));
|
|
5647
5748
|
for (let o = 0; o < zc; o++) {
|
|
5648
5749
|
const l = Ur[o];
|
|
5649
|
-
let c =
|
|
5750
|
+
let c = Xn(t, l), h = Xn(n, l);
|
|
5650
5751
|
if (c === void 0 && h === void 0)
|
|
5651
5752
|
continue;
|
|
5652
|
-
c || (c = 0), h || (h = 0), c === 0 || h === 0 ||
|
|
5753
|
+
c || (c = 0), h || (h = 0), c === 0 || h === 0 || Yn(c) === Yn(h) ? (e[l] = Math.max(L(Gn(c), Gn(h), i), 0), (he.test(h) || he.test(c)) && (e[l] += "%")) : e[l] = h;
|
|
5653
5754
|
}
|
|
5654
5755
|
(t.rotate || n.rotate) && (e.rotate = L(t.rotate || 0, n.rotate || 0, i));
|
|
5655
5756
|
}
|
|
5656
|
-
function
|
|
5757
|
+
function Xn(e, t) {
|
|
5657
5758
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
5658
5759
|
}
|
|
5659
5760
|
const _c = /* @__PURE__ */ Wr(0, 0.5, Li), Uc = /* @__PURE__ */ Wr(0.5, 0.95, ie);
|
|
@@ -5662,7 +5763,7 @@ function Wr(e, t, n) {
|
|
|
5662
5763
|
}
|
|
5663
5764
|
function Wc(e, t, n) {
|
|
5664
5765
|
const i = W(e) ? e : Be(e);
|
|
5665
|
-
return i.start(
|
|
5766
|
+
return i.start(Fs("", i, t, n)), i.animation;
|
|
5666
5767
|
}
|
|
5667
5768
|
function tt(e, t, n, i = { passive: !0 }) {
|
|
5668
5769
|
return e.addEventListener(t, n, i), () => e.removeEventListener(t, n);
|
|
@@ -5673,7 +5774,7 @@ class Kc {
|
|
|
5673
5774
|
this.children = [], this.isDirty = !1;
|
|
5674
5775
|
}
|
|
5675
5776
|
add(t) {
|
|
5676
|
-
|
|
5777
|
+
Ts(this.children, t), this.isDirty = !0;
|
|
5677
5778
|
}
|
|
5678
5779
|
remove(t) {
|
|
5679
5780
|
vt(this.children, t), this.isDirty = !0;
|
|
@@ -5697,7 +5798,7 @@ class Yc {
|
|
|
5697
5798
|
this.members = [];
|
|
5698
5799
|
}
|
|
5699
5800
|
add(t) {
|
|
5700
|
-
|
|
5801
|
+
Ts(this.members, t);
|
|
5701
5802
|
for (let n = this.members.length - 1; n >= 0; n--) {
|
|
5702
5803
|
const i = this.members[n];
|
|
5703
5804
|
if (i === t || i === this.lead || i === this.prevLead)
|
|
@@ -5789,7 +5890,7 @@ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
5789
5890
|
this.root === this && (this.nodes = new Kc());
|
|
5790
5891
|
}
|
|
5791
5892
|
addEventListener(o, l) {
|
|
5792
|
-
return this.eventHandlers.has(o) || this.eventHandlers.set(o, new
|
|
5893
|
+
return this.eventHandlers.has(o) || this.eventHandlers.set(o, new Ms()), this.eventHandlers.get(o).add(l);
|
|
5793
5894
|
}
|
|
5794
5895
|
notifyListeners(o, ...l) {
|
|
5795
5896
|
const c = this.eventHandlers.get(o);
|
|
@@ -5804,7 +5905,7 @@ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
5804
5905
|
mount(o) {
|
|
5805
5906
|
if (this.instance)
|
|
5806
5907
|
return;
|
|
5807
|
-
this.isSVG =
|
|
5908
|
+
this.isSVG = _s(o) && !Jl(o), this.instance = o;
|
|
5808
5909
|
const { layoutId: l, layout: c, visualElement: h } = this.options;
|
|
5809
5910
|
if (h && !h.current && h.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (c || l) && (this.isLayoutDirty = !0), e) {
|
|
5810
5911
|
let u, d = 0;
|
|
@@ -5813,7 +5914,7 @@ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
5813
5914
|
d = window.innerWidth;
|
|
5814
5915
|
}), e(o, () => {
|
|
5815
5916
|
const m = window.innerWidth;
|
|
5816
|
-
m !== d && (d = m, this.root.updateBlockedByResize = !0, u && u(), u = Gc(f, 250), jt.hasAnimatedSinceResize && (jt.hasAnimatedSinceResize = !1, this.nodes.forEach(
|
|
5917
|
+
m !== d && (d = m, this.root.updateBlockedByResize = !0, u && u(), u = Gc(f, 250), jt.hasAnimatedSinceResize && (jt.hasAnimatedSinceResize = !1, this.nodes.forEach(Jn)));
|
|
5817
5918
|
});
|
|
5818
5919
|
}
|
|
5819
5920
|
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && h && (l || c) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: d, hasRelativeLayoutChanged: f, layout: m }) => {
|
|
@@ -5825,13 +5926,13 @@ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
5825
5926
|
if (this.options.layoutRoot || this.resumeFrom || v || d && (w || !this.currentAnimation)) {
|
|
5826
5927
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
5827
5928
|
const b = {
|
|
5828
|
-
...
|
|
5929
|
+
...Ns(x, "layout"),
|
|
5829
5930
|
onPlay: g,
|
|
5830
5931
|
onComplete: y
|
|
5831
5932
|
};
|
|
5832
5933
|
(h.shouldReduceMotion || this.options.layoutRoot) && (b.delay = 0, b.type = !1), this.startAnimation(b), this.setAnimationOrigin(u, v);
|
|
5833
5934
|
} else
|
|
5834
|
-
d ||
|
|
5935
|
+
d || Jn(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
5835
5936
|
this.targetLayout = m;
|
|
5836
5937
|
});
|
|
5837
5938
|
}
|
|
@@ -5882,19 +5983,19 @@ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
5882
5983
|
update() {
|
|
5883
5984
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
5884
5985
|
const c = this.updateBlockedByResize;
|
|
5885
|
-
this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), c && this.nodes.forEach(
|
|
5986
|
+
this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), c && this.nodes.forEach(su), this.nodes.forEach(qn);
|
|
5886
5987
|
return;
|
|
5887
5988
|
}
|
|
5888
5989
|
if (this.animationId <= this.animationCommitId) {
|
|
5889
|
-
this.nodes.forEach(
|
|
5990
|
+
this.nodes.forEach(Zn);
|
|
5890
5991
|
return;
|
|
5891
5992
|
}
|
|
5892
|
-
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(
|
|
5993
|
+
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(nu), this.nodes.forEach(iu), this.nodes.forEach(Zc), this.nodes.forEach(Jc)) : this.nodes.forEach(Zn), this.clearAllSnapshots();
|
|
5893
5994
|
const l = Z.now();
|
|
5894
5995
|
U.delta = de(0, 1e3 / 60, l - U.timestamp), U.timestamp = l, U.isProcessing = !0, Ft.update.process(U), Ft.preRender.process(U), Ft.render.process(U), U.isProcessing = !1;
|
|
5895
5996
|
}
|
|
5896
5997
|
didUpdate() {
|
|
5897
|
-
this.updateScheduled || (this.updateScheduled = !0,
|
|
5998
|
+
this.updateScheduled || (this.updateScheduled = !0, zs.read(this.scheduleUpdate));
|
|
5898
5999
|
}
|
|
5899
6000
|
clearAllSnapshots() {
|
|
5900
6001
|
this.nodes.forEach(tu), this.sharedNodes.forEach(lu);
|
|
@@ -5996,9 +6097,9 @@ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
5996
6097
|
if (!Me(u.latestValues))
|
|
5997
6098
|
continue;
|
|
5998
6099
|
let d;
|
|
5999
|
-
u.instance && (
|
|
6100
|
+
u.instance && (xs(u.latestValues) && u.updateSnapshot(), d = H(), re(d, u.measurePageBox())), Hn(l, u.latestValues, (c = u.snapshot) == null ? void 0 : c.layoutBox, d);
|
|
6000
6101
|
}
|
|
6001
|
-
return Me(this.latestValues) &&
|
|
6102
|
+
return Me(this.latestValues) && Hn(l, this.latestValues), l;
|
|
6002
6103
|
}
|
|
6003
6104
|
setTargetDelta(o) {
|
|
6004
6105
|
this.targetDelta = o, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -6031,7 +6132,7 @@ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6031
6132
|
f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Lc(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : re(this.target, this.layout.layoutBox), Cr(this.target, this.targetDelta)) : re(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
|
|
6032
6133
|
}
|
|
6033
6134
|
getClosestProjectingParent() {
|
|
6034
|
-
if (!(!this.parent ||
|
|
6135
|
+
if (!(!this.parent || xs(this.parent.latestValues) || Vr(this.parent.latestValues)))
|
|
6035
6136
|
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
6036
6137
|
}
|
|
6037
6138
|
isProjecting() {
|
|
@@ -6060,7 +6161,7 @@ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6060
6161
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
6061
6162
|
return;
|
|
6062
6163
|
}
|
|
6063
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (
|
|
6164
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Nn(this.prevProjectionDelta.x, this.projectionDelta.x), Nn(this.prevProjectionDelta.y, this.projectionDelta.y)), qe(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== f || !Kn(this.projectionDelta.x, this.prevProjectionDelta.x) || !Kn(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m));
|
|
6064
6165
|
}
|
|
6065
6166
|
hide() {
|
|
6066
6167
|
this.isVisible = !1;
|
|
@@ -6087,7 +6188,7 @@ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6087
6188
|
let b;
|
|
6088
6189
|
this.mixTargetDelta = (M) => {
|
|
6089
6190
|
const S = M / 1e3;
|
|
6090
|
-
|
|
6191
|
+
Qn(d.x, o.x, S), Qn(d.y, o.y, S), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Pt(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), cu(this.relativeTarget, this.relativeTargetOrigin, f, S), b && Oc(this.relativeTarget, b) && (this.isProjectionDirty = !1), b || (b = H()), re(b, this.relativeTarget)), g && (this.animationValues = u, Hc(u, h, this.latestValues, S, v, w)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = S;
|
|
6091
6192
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
6092
6193
|
}
|
|
6093
6194
|
startAnimation(o) {
|
|
@@ -6206,10 +6307,10 @@ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6206
6307
|
c && (d = c(u, d)), o.transform = d;
|
|
6207
6308
|
const { x: f, y: m } = this.projectionDelta;
|
|
6208
6309
|
o.transformOrigin = `${f.origin * 100}% ${m.origin * 100}% 0`, h.animationValues ? o.opacity = h === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : o.opacity = h === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
|
|
6209
|
-
for (const x in
|
|
6310
|
+
for (const x in gs) {
|
|
6210
6311
|
if (u[x] === void 0)
|
|
6211
6312
|
continue;
|
|
6212
|
-
const { correct: g, applyTo: y, isCSSVariable: w } =
|
|
6313
|
+
const { correct: g, applyTo: y, isCSSVariable: w } = gs[x], v = d === "none" ? u[x] : g(u[x], h);
|
|
6213
6314
|
if (y) {
|
|
6214
6315
|
const b = y.length;
|
|
6215
6316
|
for (let M = 0; M < b; M++)
|
|
@@ -6227,7 +6328,7 @@ function Kr({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6227
6328
|
this.root.nodes.forEach((o) => {
|
|
6228
6329
|
var l;
|
|
6229
6330
|
return (l = o.currentAnimation) == null ? void 0 : l.stop();
|
|
6230
|
-
}), this.root.nodes.forEach(
|
|
6331
|
+
}), this.root.nodes.forEach(qn), this.root.sharedNodes.clear();
|
|
6231
6332
|
}
|
|
6232
6333
|
};
|
|
6233
6334
|
}
|
|
@@ -6246,7 +6347,7 @@ function Jc(e) {
|
|
|
6246
6347
|
});
|
|
6247
6348
|
else if (a === "x" || a === "y") {
|
|
6248
6349
|
const d = a === "x" ? "y" : "x";
|
|
6249
|
-
|
|
6350
|
+
js(o ? t.measuredBox[d] : t.layoutBox[d], i[d]);
|
|
6250
6351
|
} else Gr(a, t.layoutBox, i) && ce((d) => {
|
|
6251
6352
|
const f = o ? t.measuredBox[d] : t.layoutBox[d], m = J(i[d]);
|
|
6252
6353
|
f.max = f.min + m, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + m);
|
|
@@ -6292,23 +6393,23 @@ function eu(e) {
|
|
|
6292
6393
|
function tu(e) {
|
|
6293
6394
|
e.clearSnapshot();
|
|
6294
6395
|
}
|
|
6295
|
-
function
|
|
6396
|
+
function qn(e) {
|
|
6296
6397
|
e.clearMeasurements();
|
|
6297
6398
|
}
|
|
6298
|
-
function
|
|
6399
|
+
function su(e) {
|
|
6299
6400
|
e.isLayoutDirty = !0, e.updateLayout();
|
|
6300
6401
|
}
|
|
6301
|
-
function
|
|
6402
|
+
function Zn(e) {
|
|
6302
6403
|
e.isLayoutDirty = !1;
|
|
6303
6404
|
}
|
|
6304
|
-
function
|
|
6405
|
+
function nu(e) {
|
|
6305
6406
|
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
|
|
6306
6407
|
}
|
|
6307
6408
|
function iu(e) {
|
|
6308
6409
|
const { visualElement: t } = e.options;
|
|
6309
6410
|
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
|
|
6310
6411
|
}
|
|
6311
|
-
function
|
|
6412
|
+
function Jn(e) {
|
|
6312
6413
|
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
|
|
6313
6414
|
}
|
|
6314
6415
|
function ru(e) {
|
|
@@ -6323,7 +6424,7 @@ function au(e) {
|
|
|
6323
6424
|
function lu(e) {
|
|
6324
6425
|
e.removeLeadSnapshot();
|
|
6325
6426
|
}
|
|
6326
|
-
function
|
|
6427
|
+
function Qn(e, t, n) {
|
|
6327
6428
|
e.translate = L(t.translate, 0, n), e.scale = L(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
6328
6429
|
}
|
|
6329
6430
|
function ei(e, t, n, i) {
|
|
@@ -6338,15 +6439,15 @@ function uu(e) {
|
|
|
6338
6439
|
const hu = {
|
|
6339
6440
|
duration: 0.45,
|
|
6340
6441
|
ease: [0.4, 0, 0.1, 1]
|
|
6341
|
-
}, ti = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e),
|
|
6342
|
-
function
|
|
6343
|
-
e.min =
|
|
6442
|
+
}, ti = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), si = ti("applewebkit/") && !ti("chrome/") ? Math.round : ie;
|
|
6443
|
+
function ni(e) {
|
|
6444
|
+
e.min = si(e.min), e.max = si(e.max);
|
|
6344
6445
|
}
|
|
6345
6446
|
function du(e) {
|
|
6346
|
-
|
|
6447
|
+
ni(e.x), ni(e.y);
|
|
6347
6448
|
}
|
|
6348
6449
|
function Gr(e, t, n) {
|
|
6349
|
-
return e === "position" || e === "preserve-aspect" && !Rc($
|
|
6450
|
+
return e === "position" || e === "preserve-aspect" && !Rc($n(t), $n(n), 0.2);
|
|
6350
6451
|
}
|
|
6351
6452
|
function fu(e) {
|
|
6352
6453
|
var t;
|
|
@@ -6386,7 +6487,7 @@ const pu = Kr({
|
|
|
6386
6487
|
reducedMotion: "never"
|
|
6387
6488
|
});
|
|
6388
6489
|
function mu(e = !0) {
|
|
6389
|
-
const t = ee(
|
|
6490
|
+
const t = ee(bs);
|
|
6390
6491
|
if (t === null)
|
|
6391
6492
|
return [!0, null];
|
|
6392
6493
|
const { isPresent: n, onExitComplete: i, register: r } = t, a = uo();
|
|
@@ -6509,7 +6610,7 @@ function bu(e) {
|
|
|
6509
6610
|
function oi(e) {
|
|
6510
6611
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
6511
6612
|
}
|
|
6512
|
-
const
|
|
6613
|
+
const Gs = () => ({
|
|
6513
6614
|
style: {},
|
|
6514
6615
|
transform: {},
|
|
6515
6616
|
transformOrigin: {},
|
|
@@ -6521,8 +6622,8 @@ function Qr(e, t, n) {
|
|
|
6521
6622
|
}
|
|
6522
6623
|
function Tu({ transformTemplate: e }, t) {
|
|
6523
6624
|
return Ie(() => {
|
|
6524
|
-
const n =
|
|
6525
|
-
return
|
|
6625
|
+
const n = Gs();
|
|
6626
|
+
return $s(n, t, e), Object.assign({}, n.vars, n.style);
|
|
6526
6627
|
}, [t]);
|
|
6527
6628
|
}
|
|
6528
6629
|
function Mu(e, t) {
|
|
@@ -6534,7 +6635,7 @@ function Su(e, t) {
|
|
|
6534
6635
|
return e.drag && e.dragListener !== !1 && (n.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = i, n;
|
|
6535
6636
|
}
|
|
6536
6637
|
const eo = () => ({
|
|
6537
|
-
...
|
|
6638
|
+
...Gs(),
|
|
6538
6639
|
attrs: {}
|
|
6539
6640
|
});
|
|
6540
6641
|
function Au(e, t, n, i) {
|
|
@@ -6578,7 +6679,7 @@ const Pu = [
|
|
|
6578
6679
|
"use",
|
|
6579
6680
|
"view"
|
|
6580
6681
|
];
|
|
6581
|
-
function
|
|
6682
|
+
function Ys(e) {
|
|
6582
6683
|
return (
|
|
6583
6684
|
/**
|
|
6584
6685
|
* If it's not a string, it's a custom React component. Currently we only support
|
|
@@ -6599,7 +6700,7 @@ function Xn(e) {
|
|
|
6599
6700
|
);
|
|
6600
6701
|
}
|
|
6601
6702
|
function Vu(e, t, n, { latestValues: i }, r, a = !1, o) {
|
|
6602
|
-
const c = (o ??
|
|
6703
|
+
const c = (o ?? Ys(e) ? Au : Su)(t, i, r, e), h = vu(t, typeof e == "string", a), u = e !== p ? { ...h, ...c, ref: n } : {}, { children: d } = t, f = Ie(() => W(d) ? d.get() : d, [d]);
|
|
6603
6704
|
return ho(e, {
|
|
6604
6705
|
...u,
|
|
6605
6706
|
children: f
|
|
@@ -6624,7 +6725,7 @@ function Eu(e, t, n, i) {
|
|
|
6624
6725
|
if (d && typeof d != "boolean" && !Et(d)) {
|
|
6625
6726
|
const f = Array.isArray(d) ? d : [d];
|
|
6626
6727
|
for (let m = 0; m < f.length; m++) {
|
|
6627
|
-
const x =
|
|
6728
|
+
const x = Is(e, f[m]);
|
|
6628
6729
|
if (x) {
|
|
6629
6730
|
const { transitionEnd: g, transition: y, ...w } = x;
|
|
6630
6731
|
for (const v in w) {
|
|
@@ -6643,11 +6744,11 @@ function Eu(e, t, n, i) {
|
|
|
6643
6744
|
return r;
|
|
6644
6745
|
}
|
|
6645
6746
|
const to = (e) => (t, n) => {
|
|
6646
|
-
const i = ee(Dt), r = ee(
|
|
6747
|
+
const i = ee(Dt), r = ee(bs), a = () => Cu(e, t, i, r);
|
|
6647
6748
|
return n ? a() : Po(a);
|
|
6648
6749
|
}, ku = /* @__PURE__ */ to({
|
|
6649
|
-
scrapeMotionValuesFromProps:
|
|
6650
|
-
createRenderState:
|
|
6750
|
+
scrapeMotionValuesFromProps: Ks,
|
|
6751
|
+
createRenderState: Gs
|
|
6651
6752
|
}), Du = /* @__PURE__ */ to({
|
|
6652
6753
|
scrapeMotionValuesFromProps: Fr,
|
|
6653
6754
|
createRenderState: eo
|
|
@@ -6671,13 +6772,13 @@ function Lu(e, t, n) {
|
|
|
6671
6772
|
t && (a ? t.mount(a) : t.unmount());
|
|
6672
6773
|
}, [t]);
|
|
6673
6774
|
}
|
|
6674
|
-
const
|
|
6775
|
+
const so = ze({});
|
|
6675
6776
|
function De(e) {
|
|
6676
6777
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
6677
6778
|
}
|
|
6678
6779
|
function Nu(e, t, n, i, r, a) {
|
|
6679
6780
|
var b, M;
|
|
6680
|
-
const { visualElement: o } = ee(Dt), l = ee(qr), c = ee(
|
|
6781
|
+
const { visualElement: o } = ee(Dt), l = ee(qr), c = ee(bs), h = ee(Xr), u = h.reducedMotion, d = h.skipAnimations, f = fe(null), m = fe(!1);
|
|
6681
6782
|
i = i || l.renderer, !f.current && i && (f.current = i(e, {
|
|
6682
6783
|
visualState: t,
|
|
6683
6784
|
parent: o,
|
|
@@ -6688,7 +6789,7 @@ function Nu(e, t, n, i, r, a) {
|
|
|
6688
6789
|
skipAnimations: d,
|
|
6689
6790
|
isSVG: a
|
|
6690
6791
|
}), m.current && f.current && (f.current.manuallyAnimateOnMount = !0));
|
|
6691
|
-
const x = f.current, g = ee(
|
|
6792
|
+
const x = f.current, g = ee(so);
|
|
6692
6793
|
x && !x.projection && r && (x.type === "html" || x.type === "svg") && Fu(f.current, n, r, g);
|
|
6693
6794
|
const y = fe(!1);
|
|
6694
6795
|
ji(() => {
|
|
@@ -6706,7 +6807,7 @@ function Nu(e, t, n, i, r, a) {
|
|
|
6706
6807
|
}
|
|
6707
6808
|
function Fu(e, t, n, i) {
|
|
6708
6809
|
const { layoutId: r, layout: a, drag: o, dragConstraints: l, layoutScroll: c, layoutRoot: h, layoutAnchor: u, layoutCrossfade: d } = t;
|
|
6709
|
-
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 :
|
|
6810
|
+
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : no(e.parent)), e.projection.setOptions({
|
|
6710
6811
|
layoutId: r,
|
|
6711
6812
|
layout: a,
|
|
6712
6813
|
alwaysMeasureLayout: !!o || l && De(l),
|
|
@@ -6726,13 +6827,13 @@ function Fu(e, t, n, i) {
|
|
|
6726
6827
|
layoutAnchor: u
|
|
6727
6828
|
});
|
|
6728
6829
|
}
|
|
6729
|
-
function
|
|
6830
|
+
function no(e) {
|
|
6730
6831
|
if (e)
|
|
6731
|
-
return e.options.allowProjection !== !1 ? e.projection :
|
|
6832
|
+
return e.options.allowProjection !== !1 ? e.projection : no(e.parent);
|
|
6732
6833
|
}
|
|
6733
6834
|
function Kt(e, { forwardMotionProps: t = !1, type: n } = {}, i, r) {
|
|
6734
6835
|
i && yu(i);
|
|
6735
|
-
const a = n ? n === "svg" :
|
|
6836
|
+
const a = n ? n === "svg" : Ys(e), o = a ? Du : ku;
|
|
6736
6837
|
function l(h, u) {
|
|
6737
6838
|
let d;
|
|
6738
6839
|
const f = {
|
|
@@ -6775,7 +6876,7 @@ function Bu(e) {
|
|
|
6775
6876
|
function zu(e, t) {
|
|
6776
6877
|
if (typeof Proxy > "u")
|
|
6777
6878
|
return Kt;
|
|
6778
|
-
const n = /* @__PURE__ */ new Map(), i = (a, o) => Kt(a, o, e, t), r = (a, o) => (process.env.NODE_ENV !== "production" &&
|
|
6879
|
+
const n = /* @__PURE__ */ new Map(), i = (a, o) => Kt(a, o, e, t), r = (a, o) => (process.env.NODE_ENV !== "production" && Ss(!1, "motion() is deprecated. Use motion.create() instead."), i(a, o));
|
|
6779
6880
|
return new Proxy(r, {
|
|
6780
6881
|
/**
|
|
6781
6882
|
* Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
|
|
@@ -6785,7 +6886,7 @@ function zu(e, t) {
|
|
|
6785
6886
|
get: (a, o) => o === "create" ? i : (n.has(o) || n.set(o, Kt(o, void 0, e, t)), n.get(o))
|
|
6786
6887
|
});
|
|
6787
6888
|
}
|
|
6788
|
-
const Hu = (e, t) => t.isSVG ??
|
|
6889
|
+
const Hu = (e, t) => t.isSVG ?? Ys(e) ? new bc(t) : new xc(t, {
|
|
6789
6890
|
allowProjection: e !== p
|
|
6790
6891
|
});
|
|
6791
6892
|
class _u extends be {
|
|
@@ -6873,7 +6974,7 @@ function ot(e) {
|
|
|
6873
6974
|
}
|
|
6874
6975
|
};
|
|
6875
6976
|
}
|
|
6876
|
-
const Ku = (e) => (t) =>
|
|
6977
|
+
const Ku = (e) => (t) => Hs(t) && e(t, ot(t));
|
|
6877
6978
|
function Ze(e, t, n, i) {
|
|
6878
6979
|
return tt(e, t, Ku(n), i);
|
|
6879
6980
|
}
|
|
@@ -6909,13 +7010,13 @@ class ro {
|
|
|
6909
7010
|
return;
|
|
6910
7011
|
const v = Gt(m.type === "pointercancel" ? this.lastMoveEventInfo : ht(x, this.transformPagePoint), this.history);
|
|
6911
7012
|
this.startEvent && g && g(m, v), y && y(m, v);
|
|
6912
|
-
}, !
|
|
7013
|
+
}, !Hs(t))
|
|
6913
7014
|
return;
|
|
6914
7015
|
this.dragSnapToOrigin = a, this.handlers = n, this.transformPagePoint = i, this.distanceThreshold = o, this.contextWindow = r || window;
|
|
6915
7016
|
const c = ot(t), h = ht(c, this.transformPagePoint), { point: u } = h, { timestamp: d } = U;
|
|
6916
7017
|
this.history = [{ ...u, timestamp: d }];
|
|
6917
7018
|
const { onSessionStart: f } = n;
|
|
6918
|
-
f && f(t, Gt(h, this.history)), this.removeListeners =
|
|
7019
|
+
f && f(t, Gt(h, this.history)), this.removeListeners = nt(Ze(this.contextWindow, "pointermove", this.handlePointerMove), Ze(this.contextWindow, "pointerup", this.handlePointerUp), Ze(this.contextWindow, "pointercancel", this.handlePointerUp)), l && this.startScrollTracking(l);
|
|
6919
7020
|
}
|
|
6920
7021
|
/**
|
|
6921
7022
|
* Start tracking scroll on ancestors and window.
|
|
@@ -6993,7 +7094,7 @@ function Xu(e, t) {
|
|
|
6993
7094
|
if (!i)
|
|
6994
7095
|
return { x: 0, y: 0 };
|
|
6995
7096
|
i === e[0] && e.length > 2 && r.timestamp - i.timestamp > /* @__PURE__ */ te(t) * 2 && (i = e[1]);
|
|
6996
|
-
const a = /* @__PURE__ */
|
|
7097
|
+
const a = /* @__PURE__ */ ne(r.timestamp - i.timestamp);
|
|
6997
7098
|
if (a === 0)
|
|
6998
7099
|
return { x: 0, y: 0 };
|
|
6999
7100
|
const o = {
|
|
@@ -7036,9 +7137,9 @@ function eh(e, t) {
|
|
|
7036
7137
|
const n = {};
|
|
7037
7138
|
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
|
|
7038
7139
|
}
|
|
7039
|
-
const
|
|
7040
|
-
function th(e =
|
|
7041
|
-
return e === !1 ? e = 0 : e === !0 && (e =
|
|
7140
|
+
const vs = 0.35;
|
|
7141
|
+
function th(e = vs) {
|
|
7142
|
+
return e === !1 ? e = 0 : e === !0 && (e = vs), {
|
|
7042
7143
|
x: di(e, "left", "right"),
|
|
7043
7144
|
y: di(e, "top", "bottom")
|
|
7044
7145
|
};
|
|
@@ -7052,8 +7153,8 @@ function di(e, t, n) {
|
|
|
7052
7153
|
function fi(e, t) {
|
|
7053
7154
|
return typeof e == "number" ? e : e[t] || 0;
|
|
7054
7155
|
}
|
|
7055
|
-
const
|
|
7056
|
-
class
|
|
7156
|
+
const sh = /* @__PURE__ */ new WeakMap();
|
|
7157
|
+
class nh {
|
|
7057
7158
|
constructor(t) {
|
|
7058
7159
|
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.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = t;
|
|
7059
7160
|
}
|
|
@@ -7077,7 +7178,7 @@ class sh {
|
|
|
7077
7178
|
}
|
|
7078
7179
|
}
|
|
7079
7180
|
this.originPoint[w] = v;
|
|
7080
|
-
}), g && k.update(() => g(d, f), !1, !0),
|
|
7181
|
+
}), g && k.update(() => g(d, f), !1, !0), hs(this.visualElement, "transform");
|
|
7081
7182
|
const { animationState: y } = this.visualElement;
|
|
7082
7183
|
y && y.setActive("whileDrag", !0);
|
|
7083
7184
|
}, l = (d, f) => {
|
|
@@ -7197,7 +7298,7 @@ class sh {
|
|
|
7197
7298
|
}
|
|
7198
7299
|
startAxisValueAnimation(t, n) {
|
|
7199
7300
|
const i = this.getAxisMotionValue(t);
|
|
7200
|
-
return
|
|
7301
|
+
return hs(this.visualElement, t), i.start(Fs(t, i, 0, n, this.visualElement, !1));
|
|
7201
7302
|
}
|
|
7202
7303
|
stopAnimation() {
|
|
7203
7304
|
ce((t) => this.getAxisMotionValue(t).stop());
|
|
@@ -7255,7 +7356,7 @@ class sh {
|
|
|
7255
7356
|
addListeners() {
|
|
7256
7357
|
if (!this.visualElement.current)
|
|
7257
7358
|
return;
|
|
7258
|
-
|
|
7359
|
+
sh.set(this.visualElement, this);
|
|
7259
7360
|
const t = this.visualElement.current, n = Ze(t, "pointerdown", (h) => {
|
|
7260
7361
|
const { drag: u, dragListener: d = !0 } = this.getProps(), f = h.target, m = f !== t && Hl(f);
|
|
7261
7362
|
u && d && !m && this.start(h);
|
|
@@ -7277,7 +7378,7 @@ class sh {
|
|
|
7277
7378
|
};
|
|
7278
7379
|
}
|
|
7279
7380
|
getProps() {
|
|
7280
|
-
const t = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: i = !1, dragPropagation: r = !1, dragConstraints: a = !1, dragElastic: o =
|
|
7381
|
+
const t = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: i = !1, dragPropagation: r = !1, dragConstraints: a = !1, dragElastic: o = vs, dragMomentum: l = !0 } = t;
|
|
7281
7382
|
return {
|
|
7282
7383
|
...t,
|
|
7283
7384
|
drag: n,
|
|
@@ -7300,7 +7401,7 @@ function pi(e) {
|
|
|
7300
7401
|
};
|
|
7301
7402
|
}
|
|
7302
7403
|
function ih(e, t, n) {
|
|
7303
|
-
const i =
|
|
7404
|
+
const i = Tn(e, pi(n)), r = Tn(t, pi(n));
|
|
7304
7405
|
return () => {
|
|
7305
7406
|
i(), r();
|
|
7306
7407
|
};
|
|
@@ -7314,7 +7415,7 @@ function rh(e, t = 10) {
|
|
|
7314
7415
|
}
|
|
7315
7416
|
class oh extends be {
|
|
7316
7417
|
constructor(t) {
|
|
7317
|
-
super(t), this.removeGroupControls = ie, this.removeListeners = ie, this.controls = new
|
|
7418
|
+
super(t), this.removeGroupControls = ie, this.removeListeners = ie, this.controls = new nh(t);
|
|
7318
7419
|
}
|
|
7319
7420
|
mount() {
|
|
7320
7421
|
const { dragControls: t } = this.node.getProps();
|
|
@@ -7391,7 +7492,7 @@ class lh extends po {
|
|
|
7391
7492
|
}
|
|
7392
7493
|
componentDidUpdate() {
|
|
7393
7494
|
const { visualElement: t, layoutAnchor: n } = this.props, { projection: i } = t;
|
|
7394
|
-
i && (i.options.layoutAnchor = n, i.root.didUpdate(),
|
|
7495
|
+
i && (i.options.layoutAnchor = n, i.root.didUpdate(), zs.postRender(() => {
|
|
7395
7496
|
!i.currentAnimation && i.isLead() && this.safeToRemove();
|
|
7396
7497
|
}));
|
|
7397
7498
|
}
|
|
@@ -7409,7 +7510,7 @@ class lh extends po {
|
|
|
7409
7510
|
}
|
|
7410
7511
|
function ao(e) {
|
|
7411
7512
|
const [t, n] = mu(), i = ee(bi);
|
|
7412
|
-
return s.jsx(lh, { ...e, layoutGroup: i, switchLayoutGroup: ee(
|
|
7513
|
+
return s.jsx(lh, { ...e, layoutGroup: i, switchLayoutGroup: ee(so), isPresent: t, safeToRemove: n });
|
|
7413
7514
|
}
|
|
7414
7515
|
const ch = {
|
|
7415
7516
|
pan: {
|
|
@@ -7452,7 +7553,7 @@ class hh extends be {
|
|
|
7452
7553
|
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
7453
7554
|
}
|
|
7454
7555
|
mount() {
|
|
7455
|
-
this.unmount =
|
|
7556
|
+
this.unmount = nt(tt(this.node.current, "focus", () => this.onFocus()), tt(this.node.current, "blur", () => this.onBlur()));
|
|
7456
7557
|
}
|
|
7457
7558
|
unmount() {
|
|
7458
7559
|
}
|
|
@@ -7479,8 +7580,8 @@ class dh extends be {
|
|
|
7479
7580
|
unmount() {
|
|
7480
7581
|
}
|
|
7481
7582
|
}
|
|
7482
|
-
const
|
|
7483
|
-
const t =
|
|
7583
|
+
const ws = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), fh = (e) => {
|
|
7584
|
+
const t = ws.get(e.target);
|
|
7484
7585
|
t && t(e);
|
|
7485
7586
|
}, ph = (e) => {
|
|
7486
7587
|
e.forEach(fh);
|
|
@@ -7493,8 +7594,8 @@ function mh({ root: e, ...t }) {
|
|
|
7493
7594
|
}
|
|
7494
7595
|
function xh(e, t, n) {
|
|
7495
7596
|
const i = mh(t);
|
|
7496
|
-
return
|
|
7497
|
-
|
|
7597
|
+
return ws.set(e, n), i.observe(e), () => {
|
|
7598
|
+
ws.delete(e), i.unobserve(e);
|
|
7498
7599
|
};
|
|
7499
7600
|
}
|
|
7500
7601
|
const yh = {
|
|
@@ -7590,13 +7691,13 @@ const vh = {
|
|
|
7590
7691
|
top: document.documentElement.scrollHeight,
|
|
7591
7692
|
behavior: "smooth"
|
|
7592
7693
|
}), r = t ? "up" : "down";
|
|
7593
|
-
return /* @__PURE__ */ s.jsx("div", { className: "muncher-fab-container", children: /* @__PURE__ */ s.jsx(
|
|
7694
|
+
return /* @__PURE__ */ s.jsx("div", { className: "muncher-fab-container", children: /* @__PURE__ */ s.jsx(se, { variant: e, onClick: r === "up" ? n : i, rounded: !0, children: r === "up" ? /* @__PURE__ */ s.jsx(N, { name: "arrow-up" }) : /* @__PURE__ */ s.jsx(N, { name: "arrow-down" }) }) });
|
|
7594
7695
|
};
|
|
7595
7696
|
export {
|
|
7596
7697
|
Ah as Accordion,
|
|
7597
7698
|
go as Backdrop,
|
|
7598
7699
|
jo as Badge,
|
|
7599
|
-
|
|
7700
|
+
se as Button,
|
|
7600
7701
|
qh as Card,
|
|
7601
7702
|
Eh as Checkbox,
|
|
7602
7703
|
bo as CopyButton,
|
|
@@ -7612,10 +7713,10 @@ export {
|
|
|
7612
7713
|
kh as ImageInput,
|
|
7613
7714
|
wi as Input,
|
|
7614
7715
|
Uh as ItemSlider,
|
|
7615
|
-
|
|
7716
|
+
st as Label,
|
|
7616
7717
|
Ih as Li,
|
|
7617
7718
|
Oh as Modal,
|
|
7618
|
-
|
|
7719
|
+
Js as NavigateButton,
|
|
7619
7720
|
Bh as Paper,
|
|
7620
7721
|
Dh as PasswordInput,
|
|
7621
7722
|
zh as Pill,
|