@latte-macchiat-io/latte-vanilla-components 0.0.155 → 0.0.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
@@ -1447,7 +1447,7 @@ function St() {
|
|
1447
1447
|
return r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
1448
1448
|
}, []), ["mobile", "sm", "md", "lg", "xl", "2xl"].indexOf(t);
|
1449
1449
|
}
|
1450
|
-
var nc = "var(--_1h0tdm50)", rc = "var(--_1h0tdm51)", ic = "var(--_1h0tdm52)", sc = "var(--_1h0tdm53)", oc = "var(--_1h0tdm54)", ac = "var(--_1h0tdm55)", lc = "var(--_1h0tdm56)", cc = "var(--_1h0tdm57)", uc = "var(--_1h0tdm58)", dc = "var(--_1h0tdm59)", fc = "var(--_1h0tdm5a)", hc = "var(--_1h0tdm5b)", pc = "var(--_1h0tdm5c)", mc = "var(--_1h0tdm5d)",
|
1450
|
+
var nc = "var(--_1h0tdm50)", rc = "var(--_1h0tdm51)", ic = "var(--_1h0tdm52)", sc = "var(--_1h0tdm53)", oc = "var(--_1h0tdm54)", ac = "var(--_1h0tdm55)", lc = "var(--_1h0tdm56)", cc = "var(--_1h0tdm57)", uc = "var(--_1h0tdm58)", dc = "var(--_1h0tdm59)", fc = "var(--_1h0tdm5a)", hc = "var(--_1h0tdm5b)", pc = "var(--_1h0tdm5c)", mc = "var(--_1h0tdm5d)", tm = { position: "relative", display: "inline-block", color: "var(--_1h0tdm50)", border: "var(--_1h0tdm52)", cursor: "var(--_1h0tdm51)", minWidth: "var(--_1h0tdm53)", fontWeight: "var(--_1h0tdm54)", transition: "var(--_1h0tdm55)", paddingTop: "var(--_1h0tdm56)", paddingLeft: "var(--_1h0tdm57)", paddingRight: "var(--_1h0tdm58)", paddingBottom: "var(--_1h0tdm59)", pointerEvent: "var(--_1h0tdm5a)", borderRadius: "var(--_1h0tdm5b)", letterSpacing: "var(--_1h0tdm5c)", backgroundColor: "var(--_1h0tdm5d)", selectors: { "&:hover": { opacity: 0.5 } } }, Qn = /* @__PURE__ */ ((t) => (t[t.Primary = 0] = "Primary", t[t.Secondary = 1] = "Secondary", t))(Qn || {}), tr = /* @__PURE__ */ ((t) => (t[t.Fill = 0] = "Fill", t[t.Outline = 1] = "Outline", t))(tr || {}), sn = /* @__PURE__ */ ((t) => (t[t.Small = 0] = "Small", t[t.Medium = 1] = "Medium", t[t.Large = 2] = "Large", t))(sn || {}), eo = /* @__PURE__ */ ((t) => (t.Reset = "reset", t.Button = "button", t.Submit = "submit", t))(eo || {});
|
1451
1451
|
const mi = ({
|
1452
1452
|
children: t,
|
1453
1453
|
className: e,
|
@@ -1488,8 +1488,8 @@ const mi = ({
|
|
1488
1488
|
}
|
1489
1489
|
);
|
1490
1490
|
};
|
1491
|
-
var gc = "var(--_1v7zi9y0)", yc = "var(--_1v7zi9y1)", vc = "var(--_1v7zi9y2)", bc = "var(--_1v7zi9y3)", xc = "var(--_1v7zi9y4)",
|
1492
|
-
const
|
1491
|
+
var gc = "var(--_1v7zi9y0)", yc = "var(--_1v7zi9y1)", vc = "var(--_1v7zi9y2)", bc = "var(--_1v7zi9y3)", xc = "var(--_1v7zi9y4)", em = { width: "100%", display: "flex", flexWrap: "wrap", flexDirection: "row", gap: "var(--_1v7zi9y0)", alignItems: "var(--_1v7zi9y1)", paddingTop: "var(--_1v7zi9y2)", paddingBottom: "var(--_1v7zi9y3)", justifyContent: "var(--_1v7zi9y4)" }, Te = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(Te || {});
|
1492
|
+
const nm = ({ children: t, className: e, theme: n = B, align: r = Te.Left }) => {
|
1493
1493
|
const i = St(), { actions: { gap: s, paddingTop: o, paddingBottom: a } } = n;
|
1494
1494
|
return /* @__PURE__ */ A("div", { className: e, style: F({
|
1495
1495
|
[gc]: `${s[i]}px`,
|
@@ -1499,7 +1499,7 @@ const em = ({ children: t, className: e, theme: n = B, align: r = Te.Left }) =>
|
|
1499
1499
|
[xc]: r === Te.Right ? "flex-end" : r === Te.Left ? "flex-start" : "center"
|
1500
1500
|
}), children: t });
|
1501
1501
|
};
|
1502
|
-
var gi = { iconSize: "var(--_1slxfz50)", iconColor: "var(--_1slxfz51)" },
|
1502
|
+
var gi = { iconSize: "var(--_1slxfz50)", iconColor: "var(--_1slxfz51)" }, rm = { margin: "0 auto", display: "inline-block", verticalAlign: "middle" }, wc = "_1slxfz53";
|
1503
1503
|
const Sc = {
|
1504
1504
|
caret: "M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0",
|
1505
1505
|
close: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4",
|
@@ -1547,8 +1547,8 @@ const Sc = {
|
|
1547
1547
|
)
|
1548
1548
|
}
|
1549
1549
|
);
|
1550
|
-
var at = { overlayOpacity: "var(--_18bqyaq0)", overlayBackgroundColor: "var(--_18bqyaq1)", overlayBlur: "var(--_18bqyaq2)", modalWidth: "var(--_18bqyaq3)", modalPaddingTop: "var(--_18bqyaq4)", modalPaddingBottom: "var(--_18bqyaq5)", modalPaddingLeft: "var(--_18bqyaq6)", modalPaddingRight: "var(--_18bqyaq7)", modalMaxWidth: "var(--_18bqyaq8)", modalMaxHeight: "var(--_18bqyaq9)", modalContentTextAlign: "var(--_18bqyaqa)", modalContentBackgroundColor: "var(--_18bqyaqb)", modalContentBorderRadius: "var(--_18bqyaqc)", modalContentBorders: "var(--_18bqyaqd)" },
|
1551
|
-
const
|
1550
|
+
var at = { overlayOpacity: "var(--_18bqyaq0)", overlayBackgroundColor: "var(--_18bqyaq1)", overlayBlur: "var(--_18bqyaq2)", modalWidth: "var(--_18bqyaq3)", modalPaddingTop: "var(--_18bqyaq4)", modalPaddingBottom: "var(--_18bqyaq5)", modalPaddingLeft: "var(--_18bqyaq6)", modalPaddingRight: "var(--_18bqyaq7)", modalMaxWidth: "var(--_18bqyaq8)", modalMaxHeight: "var(--_18bqyaq9)", modalContentTextAlign: "var(--_18bqyaqa)", modalContentBackgroundColor: "var(--_18bqyaqb)", modalContentBorderRadius: "var(--_18bqyaqc)", modalContentBorders: "var(--_18bqyaqd)" }, im = { zIndex: 100, position: "fixed", width: "100%", height: "100%", selectors: { "&:before": { content: "''", position: "fixed", top: 0, left: 0, right: 0, bottom: 0, opacity: "var(--_18bqyaq0)", backgroundColor: "var(--_18bqyaq1)", backdropFilter: "blur(var(--_18bqyaq2))" } } }, Tc = "_18bqyaqf", Cc = "_18bqyaqg", on = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(on || {});
|
1551
|
+
const sm = ({
|
1552
1552
|
children: t,
|
1553
1553
|
align: e = on.Left,
|
1554
1554
|
theme: n = B,
|
@@ -1587,8 +1587,8 @@ const im = ({
|
|
1587
1587
|
}
|
1588
1588
|
);
|
1589
1589
|
};
|
1590
|
-
var $n = {
|
1591
|
-
const
|
1590
|
+
var $n = { videoOpacity: "var(--_18hbdtx0)", videoMaxHeight: "var(--_18hbdtx1)", videoPointerEvents: "var(--_18hbdtx2)" }, om = {}, Pc = "_18hbdtx3", Ac = "_18hbdtx5", Vc = "_18hbdtx6", Rc = "_18hbdtx7", Ec = "_18hbdtx8", Mc = "_18hbdtx9", kc = "_18hbdtxa";
|
1591
|
+
const Dc = ({
|
1592
1592
|
video: t,
|
1593
1593
|
isAutoPlay: e,
|
1594
1594
|
poster: n = "",
|
@@ -1620,32 +1620,32 @@ const kc = ({
|
|
1620
1620
|
}, E = (y) => {
|
1621
1621
|
y.key === "Escape" && S();
|
1622
1622
|
};
|
1623
|
-
return wt(() => (window.addEventListener("keydown", E), () => window.removeEventListener("keydown", E)), []), /* @__PURE__ */
|
1623
|
+
return wt(() => (window.addEventListener("keydown", E), () => window.removeEventListener("keydown", E)), []), /* @__PURE__ */ ht("div", { className: f, style: F({
|
1624
1624
|
[$n.videoMaxHeight]: u ? "100vw" : "100%",
|
1625
1625
|
[$n.videoOpacity]: p ? "0" : "1",
|
1626
1626
|
[$n.videoPointerEvents]: p ? "none" : "auto"
|
1627
|
-
}), children:
|
1628
|
-
/* @__PURE__ */ A("video", { ref: h, playsInline: !0, onEnded: V, children: /* @__PURE__ */ A("source", { src: t, type: "video/mp4" }) }),
|
1629
|
-
n && /* @__PURE__ */ A("div", { className: Ac, children: /* @__PURE__ */ A("img", { src: n, alt: "" }) }),
|
1630
|
-
(!c || !e) && /* @__PURE__ */ A("button", { className:
|
1631
|
-
d && /* @__PURE__ */ A("button", { className:
|
1632
|
-
p && a && /* @__PURE__ */ A("button", { className:
|
1633
|
-
a && /* @__PURE__ */ A("button", { className:
|
1634
|
-
] })
|
1627
|
+
}), children: [
|
1628
|
+
/* @__PURE__ */ A("video", { ref: h, className: Pc, playsInline: !0, onEnded: V, children: /* @__PURE__ */ A("source", { src: t, type: "video/mp4" }) }),
|
1629
|
+
n && /* @__PURE__ */ A("div", { className: Ac, children: /* @__PURE__ */ A("img", { className: Vc, src: n, alt: "" }) }),
|
1630
|
+
(!c || !e) && /* @__PURE__ */ A("button", { className: Rc, onClick: w, "aria-label": "Play", children: /* @__PURE__ */ A(Xt, { className: "", icon: "play", size: 50, theme: l }) }),
|
1631
|
+
d && /* @__PURE__ */ A("button", { className: Mc, onClick: S, "aria-label": "Close", children: /* @__PURE__ */ A(Xt, { className: "", icon: "close", size: 28, theme: l }) }),
|
1632
|
+
p && a && /* @__PURE__ */ A("button", { className: Ec, onClick: p ? P : w, "aria-label": "Pause", children: /* @__PURE__ */ A(Xt, { className: "", icon: "pause", size: 28, theme: l }) }),
|
1633
|
+
a && /* @__PURE__ */ A("button", { className: kc, onClick: m, "aria-label": "Sound", children: /* @__PURE__ */ A(Xt, { className: "", icon: x ? "volumeUp" : "volumeMute", size: 28, theme: l }) })
|
1634
|
+
] });
|
1635
1635
|
};
|
1636
|
-
var
|
1637
|
-
const
|
1636
|
+
var _c = { imgMaxWidth: "var(--_13pkfbg0)" }, am = {};
|
1637
|
+
const lm = ({ children: t, theme: e = B, className: n }) => /* @__PURE__ */ A(
|
1638
1638
|
"div",
|
1639
1639
|
{
|
1640
1640
|
className: n,
|
1641
1641
|
style: F({
|
1642
|
-
[
|
1642
|
+
[_c.imgMaxWidth]: "100%"
|
1643
1643
|
}),
|
1644
1644
|
children: t
|
1645
1645
|
}
|
1646
1646
|
);
|
1647
|
-
var On = { gap: "var(--_1vea7fs0)", displayItem: "var(--_1vea7fs1)", isFullWidth: "var(--_1vea7fs2)" },
|
1648
|
-
function
|
1647
|
+
var On = { gap: "var(--_1vea7fs0)", displayItem: "var(--_1vea7fs1)", isFullWidth: "var(--_1vea7fs2)" }, cm = { gap: "var(--_1vea7fs0)", display: "flex", flexWrap: "nowrap", overflow: "hidden", width: "var(--_1vea7fs2)" };
|
1648
|
+
function Lc() {
|
1649
1649
|
const [t, e] = _t({
|
1650
1650
|
width: void 0,
|
1651
1651
|
height: void 0
|
@@ -1660,7 +1660,7 @@ function _c() {
|
|
1660
1660
|
return window.addEventListener("resize", n), n(), () => window.removeEventListener("resize", n);
|
1661
1661
|
}, []), t;
|
1662
1662
|
}
|
1663
|
-
const
|
1663
|
+
const um = ({
|
1664
1664
|
data: t,
|
1665
1665
|
theme: e = B,
|
1666
1666
|
displayItem: n = 1,
|
@@ -1669,7 +1669,7 @@ const cm = ({
|
|
1669
1669
|
displayNavButtons: s = !1,
|
1670
1670
|
className: o
|
1671
1671
|
}) => {
|
1672
|
-
const { width: a } =
|
1672
|
+
const { width: a } = Lc(), [l, c] = _t(0), u = le(null), [d, f] = _t(n);
|
1673
1673
|
return wt(() => {
|
1674
1674
|
a && a > 1024 ? f(n) : a && a > 768 ? f(Math.min(n, 2)) : f(1);
|
1675
1675
|
}, [a, n]), /* @__PURE__ */ ht(
|
@@ -1696,7 +1696,7 @@ var we = {}, hn = function() {
|
|
1696
1696
|
for (var e, n = 1, r = arguments.length; n < r; n++) for (var i in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
1697
1697
|
return t;
|
1698
1698
|
}, hn.apply(this, arguments);
|
1699
|
-
},
|
1699
|
+
}, $c = function() {
|
1700
1700
|
function t(e, n, r) {
|
1701
1701
|
var i = this;
|
1702
1702
|
this.endVal = n, this.options = r, this.version = "2.8.0", this.defaults = { startVal: 0, decimalPlaces: 0, duration: 2, useEasing: !0, useGrouping: !0, useIndianSeparators: !1, smartEasingThreshold: 999, smartEasingAmount: 333, separator: ",", decimal: ".", prefix: "", suffix: "", enableScrollSpy: !1, scrollSpyDelay: 200, scrollSpyOnce: !1 }, this.finalEndVal = null, this.useEasing = !0, this.countDown = !1, this.error = "", this.startVal = 0, this.paused = !0, this.once = !1, this.count = function(s) {
|
@@ -1769,15 +1769,15 @@ var we = {}, hn = function() {
|
|
1769
1769
|
this.startTime = null, this.duration = 1e3 * Number(this.options.duration), this.remaining = this.duration;
|
1770
1770
|
}, t;
|
1771
1771
|
}();
|
1772
|
-
const
|
1772
|
+
const Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1773
1773
|
__proto__: null,
|
1774
|
-
CountUp:
|
1775
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1774
|
+
CountUp: $c
|
1775
|
+
}, Symbol.toStringTag, { value: "Module" })), Fc = /* @__PURE__ */ kl(Oc);
|
1776
1776
|
var yi;
|
1777
|
-
function
|
1777
|
+
function Bc() {
|
1778
1778
|
if (yi) return we;
|
1779
1779
|
yi = 1, Object.defineProperty(we, "__esModule", { value: !0 });
|
1780
|
-
var t = Ha, e =
|
1780
|
+
var t = Ha, e = Fc;
|
1781
1781
|
function n(y, b) {
|
1782
1782
|
var T = y == null ? null : typeof Symbol < "u" && y[Symbol.iterator] || y["@@iterator"];
|
1783
1783
|
if (T != null) {
|
@@ -2045,19 +2045,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
2045
2045
|
};
|
2046
2046
|
return we.default = E, we.useCountUp = m, we;
|
2047
2047
|
}
|
2048
|
-
var
|
2049
|
-
const
|
2050
|
-
var er = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new WeakMap(), vi = 0,
|
2051
|
-
function
|
2048
|
+
var Ic = Bc();
|
2049
|
+
const Nc = /* @__PURE__ */ Ml(Ic);
|
2050
|
+
var er = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new WeakMap(), vi = 0, jc = void 0;
|
2051
|
+
function Uc(t) {
|
2052
2052
|
return t ? (Ye.has(t) || (vi += 1, Ye.set(t, vi.toString())), Ye.get(t)) : "0";
|
2053
2053
|
}
|
2054
|
-
function
|
2054
|
+
function zc(t) {
|
2055
2055
|
return Object.keys(t).sort().filter(
|
2056
2056
|
(e) => t[e] !== void 0
|
2057
|
-
).map((e) => `${e}_${e === "root" ?
|
2057
|
+
).map((e) => `${e}_${e === "root" ? Uc(t.root) : t[e]}`).toString();
|
2058
2058
|
}
|
2059
|
-
function
|
2060
|
-
const e =
|
2059
|
+
function Wc(t) {
|
2060
|
+
const e = zc(t);
|
2061
2061
|
let n = er.get(e);
|
2062
2062
|
if (!n) {
|
2063
2063
|
const r = /* @__PURE__ */ new Map();
|
@@ -2079,7 +2079,7 @@ function zc(t) {
|
|
2079
2079
|
}
|
2080
2080
|
return n;
|
2081
2081
|
}
|
2082
|
-
function
|
2082
|
+
function qc(t, e, n = {}, r = jc) {
|
2083
2083
|
if (typeof window.IntersectionObserver > "u" && r !== void 0) {
|
2084
2084
|
const l = t.getBoundingClientRect();
|
2085
2085
|
return e(r, {
|
@@ -2093,12 +2093,12 @@ function Wc(t, e, n = {}, r = Nc) {
|
|
2093
2093
|
}), () => {
|
2094
2094
|
};
|
2095
2095
|
}
|
2096
|
-
const { id: i, observer: s, elements: o } =
|
2096
|
+
const { id: i, observer: s, elements: o } = Wc(n), a = o.get(t) || [];
|
2097
2097
|
return o.has(t) || o.set(t, a), a.push(e), s.observe(t), function() {
|
2098
2098
|
a.splice(a.indexOf(e), 1), a.length === 0 && (o.delete(t), s.unobserve(t)), o.size === 0 && (s.disconnect(), er.delete(i));
|
2099
2099
|
};
|
2100
2100
|
}
|
2101
|
-
function
|
2101
|
+
function Gc({
|
2102
2102
|
threshold: t,
|
2103
2103
|
delay: e,
|
2104
2104
|
trackVisibility: n,
|
@@ -2119,7 +2119,7 @@ function qc({
|
|
2119
2119
|
() => {
|
2120
2120
|
if (o || !d) return;
|
2121
2121
|
let S;
|
2122
|
-
return S =
|
2122
|
+
return S = qc(
|
2123
2123
|
d,
|
2124
2124
|
(P, m) => {
|
2125
2125
|
g({
|
@@ -2164,15 +2164,15 @@ function qc({
|
|
2164
2164
|
const w = [f, p.inView, p.entry];
|
2165
2165
|
return w.ref = w[0], w.inView = w[1], w.entry = w[2], w;
|
2166
2166
|
}
|
2167
|
-
var
|
2168
|
-
const
|
2167
|
+
var Hc = { keyNumberPaddingBottom: "var(--_177g97f0)" }, dm = { display: "flex", flexDirection: "column" }, Kc = "_177g97f1";
|
2168
|
+
const fm = ({
|
2169
2169
|
label: t,
|
2170
2170
|
suffix: e,
|
2171
2171
|
keyNumber: n,
|
2172
2172
|
className: r,
|
2173
2173
|
theme: i = B
|
2174
2174
|
}) => {
|
2175
|
-
const s = St(), [o, a] =
|
2175
|
+
const s = St(), [o, a] = Gc({
|
2176
2176
|
threshold: 0.3,
|
2177
2177
|
triggerOnce: !0
|
2178
2178
|
}), { keyNumber: { paddingBottom: l } } = i;
|
@@ -2182,10 +2182,10 @@ const dm = ({
|
|
2182
2182
|
ref: o,
|
2183
2183
|
className: r,
|
2184
2184
|
children: [
|
2185
|
-
/* @__PURE__ */ ht("div", { className:
|
2186
|
-
[
|
2185
|
+
/* @__PURE__ */ ht("div", { className: Kc, style: F({
|
2186
|
+
[Hc.keyNumberPaddingBottom]: `${l[s]}px`
|
2187
2187
|
}), children: [
|
2188
|
-
/* @__PURE__ */ A("span", { children: /* @__PURE__ */ A(
|
2188
|
+
/* @__PURE__ */ A("span", { children: /* @__PURE__ */ A(Nc, { end: a ? n : 0, duration: 8 }) }),
|
2189
2189
|
e
|
2190
2190
|
] }),
|
2191
2191
|
/* @__PURE__ */ A("p", { children: t })
|
@@ -2193,8 +2193,8 @@ const dm = ({
|
|
2193
2193
|
}
|
2194
2194
|
);
|
2195
2195
|
};
|
2196
|
-
var bi = { videoFullWidthLeft: "var(--_29n9il0)", videoFullWidthRight: "var(--_29n9il1)" },
|
2197
|
-
const
|
2196
|
+
var bi = { videoFullWidthLeft: "var(--_29n9il0)", videoFullWidthRight: "var(--_29n9il1)" }, hm = { height: 0, width: "100vw", overflow: "hidden", position: "relative", paddingBottom: "56.25%", left: "var(--_29n9il0)", right: "var(--_29n9il1)" };
|
2197
|
+
const pm = ({
|
2198
2198
|
video: t,
|
2199
2199
|
poster: e,
|
2200
2200
|
className: n,
|
@@ -2215,7 +2215,7 @@ const hm = ({
|
|
2215
2215
|
[bi.videoFullWidthRight]: `min(calc((100vw - ${l}px) / -2), -${u[a]}px)`
|
2216
2216
|
}),
|
2217
2217
|
children: /* @__PURE__ */ A(
|
2218
|
-
|
2218
|
+
Dc,
|
2219
2219
|
{
|
2220
2220
|
video: t,
|
2221
2221
|
theme: o,
|
@@ -2229,8 +2229,8 @@ const hm = ({
|
|
2229
2229
|
}
|
2230
2230
|
);
|
2231
2231
|
};
|
2232
|
-
var
|
2233
|
-
const
|
2232
|
+
var Yc = { languageSwitcherWidth: "var(--_9kkynw0)" }, mm = { marginLeft: "auto", marginRight: "auto", position: "relative", width: "var(--_9kkynw0)" }, Xc = "_9kkynw1", Zc = "_9kkynw2";
|
2233
|
+
const gm = ({
|
2234
2234
|
currentLocale: t,
|
2235
2235
|
handleChange: e,
|
2236
2236
|
locales: n,
|
@@ -2244,14 +2244,14 @@ const mm = ({
|
|
2244
2244
|
{
|
2245
2245
|
className: i,
|
2246
2246
|
style: F({
|
2247
|
-
[
|
2247
|
+
[Yc.languageSwitcherWidth]: `${a.width[o]}px`
|
2248
2248
|
}),
|
2249
2249
|
children: [
|
2250
|
-
/* @__PURE__ */ A("div", { className:
|
2250
|
+
/* @__PURE__ */ A("div", { className: Xc, children: /* @__PURE__ */ A(Xt, { theme: r, icon: "caret" }) }),
|
2251
2251
|
/* @__PURE__ */ A(
|
2252
2252
|
"select",
|
2253
2253
|
{
|
2254
|
-
className:
|
2254
|
+
className: Zc,
|
2255
2255
|
value: t,
|
2256
2256
|
onChange: e,
|
2257
2257
|
"aria-label": "Switch Language",
|
@@ -2262,16 +2262,16 @@ const mm = ({
|
|
2262
2262
|
}
|
2263
2263
|
);
|
2264
2264
|
};
|
2265
|
-
var
|
2266
|
-
const
|
2265
|
+
var Jc = "var(--_1wp326d0)", Qc = "var(--_1wp326d1)", ym = { display: "flex", backgroundColor: "var(--_1wp326d1)", flex: "1 1 auto", minHeight: "45vh", textAlign: "center", alignItems: "center", flexDirection: "column", justifyContent: "center", "@media": { "screen and (min-width: 768px)": { minHeight: "var(--_1wp326d0)" } } };
|
2266
|
+
const vm = ({ children: t, className: e, theme: n = B }) => {
|
2267
2267
|
const { main: { backgroundColor: r, minHeight: i } } = n;
|
2268
2268
|
return /* @__PURE__ */ A("main", { className: e, style: F({
|
2269
|
-
[
|
2270
|
-
[
|
2269
|
+
[Jc]: i,
|
2270
|
+
[Qc]: r
|
2271
2271
|
}), children: t });
|
2272
2272
|
};
|
2273
|
-
var xi = { overlayBottom: "var(--xr8l1e0)", overlayTransform: "var(--xr8l1e1)" },
|
2274
|
-
const
|
2273
|
+
var xi = { overlayBottom: "var(--xr8l1e0)", overlayTransform: "var(--xr8l1e1)" }, tu = "xr8l1e2";
|
2274
|
+
const eu = ({
|
2275
2275
|
theme: t = B,
|
2276
2276
|
isOpen: e = !1,
|
2277
2277
|
children: n,
|
@@ -2282,7 +2282,7 @@ const tu = ({
|
|
2282
2282
|
}, [e]), /* @__PURE__ */ A(
|
2283
2283
|
"div",
|
2284
2284
|
{
|
2285
|
-
className: `${
|
2285
|
+
className: `${tu} ${r}`,
|
2286
2286
|
style: F({
|
2287
2287
|
[xi.overlayBottom]: e ? "-100vh" : "100%",
|
2288
2288
|
[xi.overlayTransform]: e ? "translate(0, 0)" : "translate(0, -100%)"
|
@@ -2290,8 +2290,8 @@ const tu = ({
|
|
2290
2290
|
children: n
|
2291
2291
|
}
|
2292
2292
|
));
|
2293
|
-
var
|
2294
|
-
const
|
2293
|
+
var nu = { displayOnDesktop: "var(--_1c0ak730)" }, ru = "_1c0ak731", wi = "_1c0ak732";
|
2294
|
+
const iu = ({
|
2295
2295
|
theme: t = B,
|
2296
2296
|
isNavOpen: e = !1,
|
2297
2297
|
onToggleNav: n,
|
@@ -2304,9 +2304,9 @@ const ru = ({
|
|
2304
2304
|
return /* @__PURE__ */ ht(
|
2305
2305
|
"button",
|
2306
2306
|
{
|
2307
|
-
className: `${
|
2307
|
+
className: `${ru} ${i}`,
|
2308
2308
|
style: F({
|
2309
|
-
[
|
2309
|
+
[nu.displayOnDesktop]: r ? "block" : "none"
|
2310
2310
|
}),
|
2311
2311
|
onClick: s,
|
2312
2312
|
"aria-label": "Toggle nav",
|
@@ -2317,8 +2317,8 @@ const ru = ({
|
|
2317
2317
|
}
|
2318
2318
|
);
|
2319
2319
|
};
|
2320
|
-
var
|
2321
|
-
const
|
2320
|
+
var su = { isFixed: "var(--_15wg1hu0)" }, bm = { zIndex: 30, width: "100%", display: "flex", alignItems: "center", justifyContent: "space-between", position: "var(--_15wg1hu0)", backgroundColor: "var(--header-bg, white)" }, ou = "_15wg1hu1", au = "_15wg1hu2";
|
2321
|
+
const xm = ({
|
2322
2322
|
children: t,
|
2323
2323
|
isFixed: e = !1,
|
2324
2324
|
childrenOverlay: n,
|
@@ -2332,15 +2332,15 @@ const bm = ({
|
|
2332
2332
|
/* @__PURE__ */ ht(
|
2333
2333
|
"header",
|
2334
2334
|
{
|
2335
|
-
className: `${
|
2335
|
+
className: `${ou} ${o}`,
|
2336
2336
|
style: F({
|
2337
|
-
[
|
2337
|
+
[su.isFixed]: e ? "fixed" : "relative"
|
2338
2338
|
}),
|
2339
2339
|
children: [
|
2340
|
-
n && /* @__PURE__ */ A(
|
2340
|
+
n && /* @__PURE__ */ A(eu, { className: "", theme: r, isOpen: a, children: n }),
|
2341
2341
|
t,
|
2342
2342
|
!i && /* @__PURE__ */ A(
|
2343
|
-
|
2343
|
+
iu,
|
2344
2344
|
{
|
2345
2345
|
className: "",
|
2346
2346
|
theme: r,
|
@@ -2352,11 +2352,11 @@ const bm = ({
|
|
2352
2352
|
]
|
2353
2353
|
}
|
2354
2354
|
),
|
2355
|
-
e && /* @__PURE__ */ A("div", { className:
|
2355
|
+
e && /* @__PURE__ */ A("div", { className: au })
|
2356
2356
|
] });
|
2357
2357
|
};
|
2358
|
-
var te = { footerGap: "var(--fl7h880)", footerBackgroundColor: "var(--fl7h881)", footerPaddingTop: "var(--fl7h882)", footerPaddingBottom: "var(--fl7h883)", footerPaddingLeft: "var(--fl7h884)", footerPaddingRight: "var(--fl7h885)" },
|
2359
|
-
const
|
2358
|
+
var te = { footerGap: "var(--fl7h880)", footerBackgroundColor: "var(--fl7h881)", footerPaddingTop: "var(--fl7h882)", footerPaddingBottom: "var(--fl7h883)", footerPaddingLeft: "var(--fl7h884)", footerPaddingRight: "var(--fl7h885)" }, wm = { zIndex: 20, display: "flex", fontSize: "0.8em", alignItems: "center", flexDirection: "column", justifyContent: "space-between", gap: "var(--fl7h880)", backgroundColor: "var(--fl7h881)", paddingTop: "var(--fl7h882)", paddingBottom: "var(--fl7h883)", paddingLeft: "var(--fl7h884)", paddingRight: "var(--fl7h885)" };
|
2359
|
+
const Sm = ({ children: t, className: e, theme: n = B }) => {
|
2360
2360
|
const r = St(), {
|
2361
2361
|
global: { paddingLeft: i, paddingRight: s },
|
2362
2362
|
footer: { gap: o, backgroundColor: a, paddingTop: l, paddingBottom: c }
|
@@ -2370,8 +2370,8 @@ const wm = ({ children: t, className: e, theme: n = B }) => {
|
|
2370
2370
|
[te.footerPaddingRight]: `${s[r]}px`
|
2371
2371
|
}), children: t });
|
2372
2372
|
};
|
2373
|
-
var ee = { columnsGap: "var(--mx2tfy0)", columnsTextAlign: "var(--mx2tfy1)", columnsJustifyContent: "var(--mx2tfy2)", isCentered: "var(--mx2tfy3)", isInverted: "var(--mx2tfy4)", column0: "var(--mx2tfy5)", column1: "var(--mx2tfy6)", column2: "var(--mx2tfy7)", column3: "var(--mx2tfy8)" },
|
2374
|
-
const
|
2373
|
+
var ee = { columnsGap: "var(--mx2tfy0)", columnsTextAlign: "var(--mx2tfy1)", columnsJustifyContent: "var(--mx2tfy2)", isCentered: "var(--mx2tfy3)", isInverted: "var(--mx2tfy4)", column0: "var(--mx2tfy5)", column1: "var(--mx2tfy6)", column2: "var(--mx2tfy7)", column3: "var(--mx2tfy8)" }, Tm = {}, Ce = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(Ce || {});
|
2374
|
+
const Cm = ({
|
2375
2375
|
columns: t,
|
2376
2376
|
children: e,
|
2377
2377
|
align: n = Ce.Left,
|
@@ -2406,7 +2406,7 @@ const Sr = /* @__PURE__ */ pe(null), io = pe({
|
|
2406
2406
|
isStatic: !1,
|
2407
2407
|
reducedMotion: "never"
|
2408
2408
|
});
|
2409
|
-
function
|
2409
|
+
function lu(t = !0) {
|
2410
2410
|
const e = rt(Sr);
|
2411
2411
|
if (e === null)
|
2412
2412
|
return [!0, null];
|
@@ -2434,7 +2434,7 @@ function Cr(t) {
|
|
2434
2434
|
const de = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
2435
2435
|
const r = e - t;
|
2436
2436
|
return r === 0 ? 1 : (n - t) / r;
|
2437
|
-
}, Vt = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, Dt = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3,
|
2437
|
+
}, Vt = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, Dt = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3, cu = {
|
2438
2438
|
skipAnimations: !1,
|
2439
2439
|
useManualTiming: !1
|
2440
2440
|
}, Xe = [
|
@@ -2451,7 +2451,7 @@ const de = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
|
2451
2451
|
"postRender"
|
2452
2452
|
// Compute
|
2453
2453
|
];
|
2454
|
-
function
|
2454
|
+
function uu(t, e) {
|
2455
2455
|
let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, s = !1;
|
2456
2456
|
const o = /* @__PURE__ */ new WeakSet();
|
2457
2457
|
let a = {
|
@@ -2489,16 +2489,16 @@ function cu(t, e) {
|
|
2489
2489
|
};
|
2490
2490
|
return c;
|
2491
2491
|
}
|
2492
|
-
const
|
2492
|
+
const du = 40;
|
2493
2493
|
function oo(t, e) {
|
2494
2494
|
let n = !1, r = !0;
|
2495
2495
|
const i = {
|
2496
2496
|
delta: 0,
|
2497
2497
|
timestamp: 0,
|
2498
2498
|
isProcessing: !1
|
2499
|
-
}, s = () => n = !0, o = Xe.reduce((v, w) => (v[w] =
|
2499
|
+
}, s = () => n = !0, o = Xe.reduce((v, w) => (v[w] = uu(s), v), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: d, postRender: f } = o, h = () => {
|
2500
2500
|
const v = performance.now();
|
2501
|
-
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(v - i.timestamp,
|
2501
|
+
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(v - i.timestamp, du), 1), i.timestamp = v, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), d.process(i), f.process(i), i.isProcessing = !1, n && e && (r = !1, t(h));
|
2502
2502
|
}, p = () => {
|
2503
2503
|
n = !0, r = !0, i.isProcessing || t(h);
|
2504
2504
|
};
|
@@ -2534,14 +2534,14 @@ for (const t in Si)
|
|
2534
2534
|
fe[t] = {
|
2535
2535
|
isEnabled: (e) => Si[t].some((n) => !!e[n])
|
2536
2536
|
};
|
2537
|
-
function
|
2537
|
+
function fu(t) {
|
2538
2538
|
for (const e in t)
|
2539
2539
|
fe[e] = {
|
2540
2540
|
...fe[e],
|
2541
2541
|
...t[e]
|
2542
2542
|
};
|
2543
2543
|
}
|
2544
|
-
const
|
2544
|
+
const hu = /* @__PURE__ */ new Set([
|
2545
2545
|
"animate",
|
2546
2546
|
"exit",
|
2547
2547
|
"variants",
|
@@ -2574,17 +2574,17 @@ const fu = /* @__PURE__ */ new Set([
|
|
2574
2574
|
"viewport"
|
2575
2575
|
]);
|
2576
2576
|
function pn(t) {
|
2577
|
-
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") ||
|
2577
|
+
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || hu.has(t);
|
2578
2578
|
}
|
2579
2579
|
let lo = (t) => !pn(t);
|
2580
|
-
function
|
2580
|
+
function pu(t) {
|
2581
2581
|
t && (lo = (e) => e.startsWith("on") ? !pn(e) : t(e));
|
2582
2582
|
}
|
2583
2583
|
try {
|
2584
|
-
|
2584
|
+
pu(require("@emotion/is-prop-valid").default);
|
2585
2585
|
} catch {
|
2586
2586
|
}
|
2587
|
-
function
|
2587
|
+
function mu(t, e, n) {
|
2588
2588
|
const r = {};
|
2589
2589
|
for (const i in t)
|
2590
2590
|
i === "values" && typeof t.values == "object" || (lo(i) || n === !0 && pn(i) || !e && !pn(i) || // If trying to use native HTML drag events, forward drag listeners
|
@@ -2595,7 +2595,7 @@ const Ti = /* @__PURE__ */ new Set();
|
|
2595
2595
|
function Pn(t, e, n) {
|
2596
2596
|
t || Ti.has(e) || (console.warn(e), Ti.add(e));
|
2597
2597
|
}
|
2598
|
-
function
|
2598
|
+
function gu(t) {
|
2599
2599
|
if (typeof Proxy > "u")
|
2600
2600
|
return t;
|
2601
2601
|
const e = /* @__PURE__ */ new Map(), n = (...r) => (process.env.NODE_ENV !== "production" && Pn(!1, "motion() is deprecated. Use motion.create() instead."), t(...r));
|
@@ -2630,7 +2630,7 @@ function Rn(t) {
|
|
2630
2630
|
function co(t) {
|
2631
2631
|
return !!(Rn(t) || t.variants);
|
2632
2632
|
}
|
2633
|
-
function
|
2633
|
+
function yu(t, e) {
|
2634
2634
|
if (Rn(t)) {
|
2635
2635
|
const { initial: n, animate: r } = t;
|
2636
2636
|
return {
|
@@ -2640,18 +2640,18 @@ function gu(t, e) {
|
|
2640
2640
|
}
|
2641
2641
|
return t.inherit !== !1 ? e : {};
|
2642
2642
|
}
|
2643
|
-
function
|
2644
|
-
const { initial: e, animate: n } =
|
2643
|
+
function vu(t) {
|
2644
|
+
const { initial: e, animate: n } = yu(t, rt(An));
|
2645
2645
|
return xn(() => ({ initial: e, animate: n }), [Ci(e), Ci(n)]);
|
2646
2646
|
}
|
2647
2647
|
function Ci(t) {
|
2648
2648
|
return Array.isArray(t) ? t.join(" ") : t;
|
2649
2649
|
}
|
2650
|
-
const
|
2650
|
+
const bu = Symbol.for("motionComponentSymbol");
|
2651
2651
|
function ne(t) {
|
2652
2652
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
2653
2653
|
}
|
2654
|
-
function
|
2654
|
+
function xu(t, e, n) {
|
2655
2655
|
return Ns(
|
2656
2656
|
(r) => {
|
2657
2657
|
r && t.onMount && t.onMount(r), e && (r ? e.mount(r) : e.unmount()), n && (typeof n == "function" ? n(r) : ne(n) && (n.current = r));
|
@@ -2664,8 +2664,8 @@ function bu(t, e, n) {
|
|
2664
2664
|
[e]
|
2665
2665
|
);
|
2666
2666
|
}
|
2667
|
-
const Vr = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(),
|
2668
|
-
function
|
2667
|
+
const Vr = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), wu = "framerAppearId", uo = "data-" + Vr(wu), { schedule: Rr, cancel: Pm } = oo(queueMicrotask, !1), fo = pe({});
|
2668
|
+
function Su(t, e, n, r, i) {
|
2669
2669
|
var s, o;
|
2670
2670
|
const { visualElement: a } = rt(An), l = rt(ao), c = rt(Sr), u = rt(io).reducedMotion, d = le(null);
|
2671
2671
|
r = r || l.renderer, !d.current && r && (d.current = r(t, {
|
@@ -2677,7 +2677,7 @@ function wu(t, e, n, r, i) {
|
|
2677
2677
|
reducedMotionConfig: u
|
2678
2678
|
}));
|
2679
2679
|
const f = d.current, h = rt(fo);
|
2680
|
-
f && !f.projection && i && (f.type === "html" || f.type === "svg") &&
|
2680
|
+
f && !f.projection && i && (f.type === "html" || f.type === "svg") && Tu(d.current, n, i, h);
|
2681
2681
|
const p = le(!1);
|
2682
2682
|
Xa(() => {
|
2683
2683
|
f && p.current && f.update(n, c);
|
@@ -2692,7 +2692,7 @@ function wu(t, e, n, r, i) {
|
|
2692
2692
|
}), x.current = !1));
|
2693
2693
|
}), f;
|
2694
2694
|
}
|
2695
|
-
function
|
2695
|
+
function Tu(t, e, n, r) {
|
2696
2696
|
const { layoutId: i, layout: s, drag: o, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
|
2697
2697
|
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : ho(t.parent)), t.projection.setOptions({
|
2698
2698
|
layoutId: i,
|
@@ -2716,39 +2716,39 @@ function ho(t) {
|
|
2716
2716
|
if (t)
|
2717
2717
|
return t.options.allowProjection !== !1 ? t.projection : ho(t.parent);
|
2718
2718
|
}
|
2719
|
-
function
|
2719
|
+
function Cu({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: r, Component: i }) {
|
2720
2720
|
var s, o;
|
2721
|
-
t &&
|
2721
|
+
t && fu(t);
|
2722
2722
|
function a(c, u) {
|
2723
2723
|
let d;
|
2724
2724
|
const f = {
|
2725
2725
|
...rt(io),
|
2726
2726
|
...c,
|
2727
|
-
layoutId:
|
2728
|
-
}, { isStatic: h } = f, p =
|
2727
|
+
layoutId: Pu(c)
|
2728
|
+
}, { isStatic: h } = f, p = vu(c), g = r(c, h);
|
2729
2729
|
if (!h && Tr) {
|
2730
|
-
|
2731
|
-
const x =
|
2732
|
-
d = x.MeasureLayout, p.visualElement =
|
2730
|
+
Au(f, t);
|
2731
|
+
const x = Vu(f);
|
2732
|
+
d = x.MeasureLayout, p.visualElement = Su(i, g, f, e, x.ProjectionNode);
|
2733
2733
|
}
|
2734
|
-
return Ga(An.Provider, { value: p, children: [d && p.visualElement ? Bs(d, { visualElement: p.visualElement, ...f }) : null, n(i, c,
|
2734
|
+
return Ga(An.Provider, { value: p, children: [d && p.visualElement ? Bs(d, { visualElement: p.visualElement, ...f }) : null, n(i, c, xu(g, p.visualElement, u), g, h, p.visualElement)] });
|
2735
2735
|
}
|
2736
2736
|
a.displayName = `motion.${typeof i == "string" ? i : `create(${(o = (s = i.displayName) !== null && s !== void 0 ? s : i.name) !== null && o !== void 0 ? o : ""})`}`;
|
2737
2737
|
const l = Is(a);
|
2738
|
-
return l[
|
2738
|
+
return l[bu] = i, l;
|
2739
2739
|
}
|
2740
|
-
function
|
2740
|
+
function Pu({ layoutId: t }) {
|
2741
2741
|
const e = rt(no).id;
|
2742
2742
|
return e && t !== void 0 ? e + "-" + t : t;
|
2743
2743
|
}
|
2744
|
-
function
|
2744
|
+
function Au(t, e) {
|
2745
2745
|
const n = rt(ao).strict;
|
2746
2746
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
2747
2747
|
const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
2748
2748
|
t.ignoreStrict ? ge(!1, r) : Mt(!1, r);
|
2749
2749
|
}
|
2750
2750
|
}
|
2751
|
-
function
|
2751
|
+
function Vu(t) {
|
2752
2752
|
const { drag: e, layout: n } = fe;
|
2753
2753
|
if (!e && !n)
|
2754
2754
|
return {};
|
@@ -2758,8 +2758,8 @@ function Au(t) {
|
|
2758
2758
|
ProjectionNode: r.ProjectionNode
|
2759
2759
|
};
|
2760
2760
|
}
|
2761
|
-
const po = (t) => (e) => typeof e == "string" && e.startsWith(t), Er = /* @__PURE__ */ po("--"),
|
2762
|
-
function
|
2761
|
+
const po = (t) => (e) => typeof e == "string" && e.startsWith(t), Er = /* @__PURE__ */ po("--"), Ru = /* @__PURE__ */ po("var(--"), Mr = (t) => Ru(t) ? Eu.test(t.split("/*")[0].trim()) : !1, Eu = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Oe = {};
|
2762
|
+
function Mu(t) {
|
2763
2763
|
for (const e in t)
|
2764
2764
|
Oe[e] = t[e], Er(e) && (Oe[e].isCSSVariable = !0);
|
2765
2765
|
}
|
@@ -2799,11 +2799,11 @@ const J = (t) => !!(t && t.getVelocity), go = (t, e) => e && typeof t == "number
|
|
2799
2799
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
2800
2800
|
parse: parseFloat,
|
2801
2801
|
transform: (e) => `${e}${t}`
|
2802
|
-
}), jt = /* @__PURE__ */ ze("deg"), Rt = /* @__PURE__ */ ze("%"), M = /* @__PURE__ */ ze("px"),
|
2802
|
+
}), jt = /* @__PURE__ */ ze("deg"), Rt = /* @__PURE__ */ ze("%"), M = /* @__PURE__ */ ze("px"), ku = /* @__PURE__ */ ze("vh"), Du = /* @__PURE__ */ ze("vw"), Pi = {
|
2803
2803
|
...Rt,
|
2804
2804
|
parse: (t) => Rt.parse(t) / 100,
|
2805
2805
|
transform: (t) => Rt.transform(t * 100)
|
2806
|
-
},
|
2806
|
+
}, _u = {
|
2807
2807
|
// Border props
|
2808
2808
|
borderWidth: M,
|
2809
2809
|
borderTopWidth: M,
|
@@ -2839,7 +2839,7 @@ const J = (t) => !!(t && t.getVelocity), go = (t, e) => e && typeof t == "number
|
|
2839
2839
|
// Misc
|
2840
2840
|
backgroundPositionX: M,
|
2841
2841
|
backgroundPositionY: M
|
2842
|
-
},
|
2842
|
+
}, Lu = {
|
2843
2843
|
rotate: jt,
|
2844
2844
|
rotateX: jt,
|
2845
2845
|
rotateY: jt,
|
@@ -2868,23 +2868,23 @@ const J = (t) => !!(t && t.getVelocity), go = (t, e) => e && typeof t == "number
|
|
2868
2868
|
...ve,
|
2869
2869
|
transform: Math.round
|
2870
2870
|
}, kr = {
|
2871
|
-
...Du,
|
2872
2871
|
..._u,
|
2872
|
+
...Lu,
|
2873
2873
|
zIndex: Ai,
|
2874
2874
|
size: M,
|
2875
2875
|
// SVG
|
2876
2876
|
fillOpacity: Fe,
|
2877
2877
|
strokeOpacity: Fe,
|
2878
2878
|
numOctaves: Ai
|
2879
|
-
},
|
2879
|
+
}, $u = {
|
2880
2880
|
x: "translateX",
|
2881
2881
|
y: "translateY",
|
2882
2882
|
z: "translateZ",
|
2883
2883
|
transformPerspective: "perspective"
|
2884
|
-
},
|
2885
|
-
function
|
2884
|
+
}, Ou = ye.length;
|
2885
|
+
function Fu(t, e, n) {
|
2886
2886
|
let r = "", i = !0;
|
2887
|
-
for (let s = 0; s <
|
2887
|
+
for (let s = 0; s < Ou; s++) {
|
2888
2888
|
const o = ye[s], a = t[o];
|
2889
2889
|
if (a === void 0)
|
2890
2890
|
continue;
|
@@ -2893,7 +2893,7 @@ function Ou(t, e, n) {
|
|
2893
2893
|
const c = go(a, kr[o]);
|
2894
2894
|
if (!l) {
|
2895
2895
|
i = !1;
|
2896
|
-
const u =
|
2896
|
+
const u = $u[o] || o;
|
2897
2897
|
r += `${u}(${c}) `;
|
2898
2898
|
}
|
2899
2899
|
n && (e[o] = c);
|
@@ -2917,7 +2917,7 @@ function Dr(t, e, n) {
|
|
2917
2917
|
l.startsWith("origin") ? (a = !0, s[l] = u) : r[l] = u;
|
2918
2918
|
}
|
2919
2919
|
}
|
2920
|
-
if (e.transform || (o || n ? r.transform =
|
2920
|
+
if (e.transform || (o || n ? r.transform = Fu(e, t.transform, n) : r.transform && (r.transform = "none")), a) {
|
2921
2921
|
const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = s;
|
2922
2922
|
r.transformOrigin = `${l} ${c} ${u}`;
|
2923
2923
|
}
|
@@ -2932,21 +2932,21 @@ function yo(t, e, n) {
|
|
2932
2932
|
for (const r in e)
|
2933
2933
|
!J(e[r]) && !mo(r, n) && (t[r] = e[r]);
|
2934
2934
|
}
|
2935
|
-
function
|
2935
|
+
function Bu({ transformTemplate: t }, e) {
|
2936
2936
|
return xn(() => {
|
2937
2937
|
const n = _r();
|
2938
2938
|
return Dr(n, e, t), Object.assign({}, n.vars, n.style);
|
2939
2939
|
}, [e]);
|
2940
2940
|
}
|
2941
|
-
function
|
2941
|
+
function Iu(t, e) {
|
2942
2942
|
const n = t.style || {}, r = {};
|
2943
|
-
return yo(r, n, t), Object.assign(r,
|
2943
|
+
return yo(r, n, t), Object.assign(r, Bu(t, e)), r;
|
2944
2944
|
}
|
2945
|
-
function
|
2946
|
-
const n = {}, r =
|
2945
|
+
function Nu(t, e) {
|
2946
|
+
const n = {}, r = Iu(t, e);
|
2947
2947
|
return t.drag && t.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
2948
2948
|
}
|
2949
|
-
const
|
2949
|
+
const ju = [
|
2950
2950
|
"animate",
|
2951
2951
|
"circle",
|
2952
2952
|
"defs",
|
@@ -2986,23 +2986,23 @@ function Lr(t) {
|
|
2986
2986
|
/**
|
2987
2987
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
2988
2988
|
*/
|
2989
|
-
!!(
|
2989
|
+
!!(ju.indexOf(t) > -1 || /**
|
2990
2990
|
* If it contains a capital letter, it's an SVG component
|
2991
2991
|
*/
|
2992
2992
|
/[A-Z]/u.test(t))
|
2993
2993
|
)
|
2994
2994
|
);
|
2995
2995
|
}
|
2996
|
-
const
|
2996
|
+
const Uu = {
|
2997
2997
|
offset: "stroke-dashoffset",
|
2998
2998
|
array: "stroke-dasharray"
|
2999
|
-
},
|
2999
|
+
}, zu = {
|
3000
3000
|
offset: "strokeDashoffset",
|
3001
3001
|
array: "strokeDasharray"
|
3002
3002
|
};
|
3003
|
-
function
|
3003
|
+
function Wu(t, e, n = 1, r = 0, i = !0) {
|
3004
3004
|
t.pathLength = 1;
|
3005
|
-
const s = i ?
|
3005
|
+
const s = i ? Uu : zu;
|
3006
3006
|
t[s.offset] = M.transform(-r);
|
3007
3007
|
const o = M.transform(e), a = M.transform(n);
|
3008
3008
|
t[s.array] = `${o} ${a}`;
|
@@ -3010,7 +3010,7 @@ function zu(t, e, n = 1, r = 0, i = !0) {
|
|
3010
3010
|
function Vi(t, e, n) {
|
3011
3011
|
return typeof t == "string" ? t : M.transform(e + n * t);
|
3012
3012
|
}
|
3013
|
-
function
|
3013
|
+
function qu(t, e, n) {
|
3014
3014
|
const r = Vi(e, t.x, t.width), i = Vi(n, t.y, t.height);
|
3015
3015
|
return `${r} ${i}`;
|
3016
3016
|
}
|
@@ -3032,13 +3032,13 @@ function $r(t, {
|
|
3032
3032
|
}
|
3033
3033
|
t.attrs = t.style, t.style = {};
|
3034
3034
|
const { attrs: f, style: h, dimensions: p } = t;
|
3035
|
-
f.transform && (p && (h.transform = f.transform), delete f.transform), p && (i !== void 0 || s !== void 0 || h.transform) && (h.transformOrigin =
|
3035
|
+
f.transform && (p && (h.transform = f.transform), delete f.transform), p && (i !== void 0 || s !== void 0 || h.transform) && (h.transformOrigin = qu(p, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), r !== void 0 && (f.scale = r), o !== void 0 && Wu(f, o, a, l, !1);
|
3036
3036
|
}
|
3037
3037
|
const vo = () => ({
|
3038
3038
|
..._r(),
|
3039
3039
|
attrs: {}
|
3040
3040
|
}), Or = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
3041
|
-
function
|
3041
|
+
function Gu(t, e, n, r) {
|
3042
3042
|
const i = xn(() => {
|
3043
3043
|
const s = vo();
|
3044
3044
|
return $r(s, e, Or(r), t.transformTemplate), {
|
@@ -3052,9 +3052,9 @@ function qu(t, e, n, r) {
|
|
3052
3052
|
}
|
3053
3053
|
return i;
|
3054
3054
|
}
|
3055
|
-
function
|
3055
|
+
function Hu(t = !1) {
|
3056
3056
|
return (n, r, i, { latestValues: s }, o) => {
|
3057
|
-
const l = (Lr(n) ?
|
3057
|
+
const l = (Lr(n) ? Gu : Nu)(r, s, o, n), c = mu(r, typeof n == "string", t), u = n !== js ? { ...c, ...l, ref: i } : {}, { children: d } = r, f = xn(() => J(d) ? d.get() : d, [d]);
|
3058
3058
|
return Za(n, {
|
3059
3059
|
...u,
|
3060
3060
|
children: f
|
@@ -3078,23 +3078,23 @@ function Fr(t, e, n, r) {
|
|
3078
3078
|
}
|
3079
3079
|
return e;
|
3080
3080
|
}
|
3081
|
-
const nr = (t) => Array.isArray(t),
|
3081
|
+
const nr = (t) => Array.isArray(t), Ku = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Yu = (t) => nr(t) ? t[t.length - 1] || 0 : t;
|
3082
3082
|
function an(t) {
|
3083
3083
|
const e = J(t) ? t.get() : t;
|
3084
|
-
return
|
3084
|
+
return Ku(e) ? e.toValue() : e;
|
3085
3085
|
}
|
3086
|
-
function
|
3086
|
+
function Xu({ scrapeMotionValuesFromProps: t, createRenderState: e, onUpdate: n }, r, i, s) {
|
3087
3087
|
const o = {
|
3088
|
-
latestValues:
|
3088
|
+
latestValues: Zu(r, i, s, t),
|
3089
3089
|
renderState: e()
|
3090
3090
|
};
|
3091
3091
|
return n && (o.onMount = (a) => n({ props: r, current: a, ...o }), o.onUpdate = (a) => n(a)), o;
|
3092
3092
|
}
|
3093
3093
|
const bo = (t) => (e, n) => {
|
3094
|
-
const r = rt(An), i = rt(Sr), s = () =>
|
3094
|
+
const r = rt(An), i = rt(Sr), s = () => Xu(t, e, r, i);
|
3095
3095
|
return n ? s() : ro(s);
|
3096
3096
|
};
|
3097
|
-
function
|
3097
|
+
function Zu(t, e, n, r) {
|
3098
3098
|
const i = {}, s = r(t, {});
|
3099
3099
|
for (const f in s)
|
3100
3100
|
i[f] = an(s[f]);
|
@@ -3132,7 +3132,7 @@ function Br(t, e, n) {
|
|
3132
3132
|
(J(i[o]) || e.style && J(e.style[o]) || mo(o, t) || ((r = n == null ? void 0 : n.getValue(o)) === null || r === void 0 ? void 0 : r.liveStyle) !== void 0) && (s[o] = i[o]);
|
3133
3133
|
return s;
|
3134
3134
|
}
|
3135
|
-
const
|
3135
|
+
const Ju = {
|
3136
3136
|
useVisualState: bo({
|
3137
3137
|
scrapeMotionValuesFromProps: Br,
|
3138
3138
|
createRenderState: _r
|
@@ -3194,7 +3194,7 @@ function Co(t, e, n) {
|
|
3194
3194
|
}
|
3195
3195
|
return r;
|
3196
3196
|
}
|
3197
|
-
const Ei = ["x", "y", "width", "height", "cx", "cy", "r"],
|
3197
|
+
const Ei = ["x", "y", "width", "height", "cx", "cy", "r"], Qu = {
|
3198
3198
|
useVisualState: bo({
|
3199
3199
|
scrapeMotionValuesFromProps: Co,
|
3200
3200
|
createRenderState: vo,
|
@@ -3225,24 +3225,24 @@ const Ei = ["x", "y", "width", "height", "cx", "cy", "r"], Ju = {
|
|
3225
3225
|
}
|
3226
3226
|
})
|
3227
3227
|
};
|
3228
|
-
function
|
3228
|
+
function td(t, e) {
|
3229
3229
|
return function(r, { forwardMotionProps: i } = { forwardMotionProps: !1 }) {
|
3230
3230
|
const o = {
|
3231
|
-
...Lr(r) ?
|
3231
|
+
...Lr(r) ? Qu : Ju,
|
3232
3232
|
preloadedFeatures: t,
|
3233
|
-
useRender:
|
3233
|
+
useRender: Hu(i),
|
3234
3234
|
createVisualElement: e,
|
3235
3235
|
Component: r
|
3236
3236
|
};
|
3237
|
-
return
|
3237
|
+
return Cu(o);
|
3238
3238
|
};
|
3239
3239
|
}
|
3240
3240
|
function Be(t, e, n) {
|
3241
3241
|
const r = t.getProps();
|
3242
3242
|
return Fr(r, e, n !== void 0 ? n : r.custom, t);
|
3243
3243
|
}
|
3244
|
-
const
|
3245
|
-
class
|
3244
|
+
const ed = /* @__PURE__ */ Cr(() => window.ScrollTimeline !== void 0);
|
3245
|
+
class nd {
|
3246
3246
|
constructor(e) {
|
3247
3247
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
3248
3248
|
}
|
@@ -3261,7 +3261,7 @@ class ed {
|
|
3261
3261
|
}
|
3262
3262
|
attachTimeline(e, n) {
|
3263
3263
|
const r = this.animations.map((i) => {
|
3264
|
-
if (
|
3264
|
+
if (ed() && i.attachTimeline)
|
3265
3265
|
return i.attachTimeline(e);
|
3266
3266
|
if (typeof n == "function")
|
3267
3267
|
return n(i);
|
@@ -3312,7 +3312,7 @@ class ed {
|
|
3312
3312
|
this.runAll("complete");
|
3313
3313
|
}
|
3314
3314
|
}
|
3315
|
-
class
|
3315
|
+
class rd extends nd {
|
3316
3316
|
then(e, n) {
|
3317
3317
|
return Promise.all(this.animations).then(e).catch(n);
|
3318
3318
|
}
|
@@ -3335,17 +3335,17 @@ function Nr(t) {
|
|
3335
3335
|
function Mi(t, e) {
|
3336
3336
|
t.timeline = e, t.onfinish = null;
|
3337
3337
|
}
|
3338
|
-
const jr = (t) => Array.isArray(t) && typeof t[0] == "number",
|
3338
|
+
const jr = (t) => Array.isArray(t) && typeof t[0] == "number", id = {
|
3339
3339
|
linearEasing: void 0
|
3340
3340
|
};
|
3341
|
-
function
|
3341
|
+
function sd(t, e) {
|
3342
3342
|
const n = /* @__PURE__ */ Cr(t);
|
3343
3343
|
return () => {
|
3344
3344
|
var r;
|
3345
|
-
return (r =
|
3345
|
+
return (r = id[e]) !== null && r !== void 0 ? r : n();
|
3346
3346
|
};
|
3347
3347
|
}
|
3348
|
-
const mn = /* @__PURE__ */
|
3348
|
+
const mn = /* @__PURE__ */ sd(() => {
|
3349
3349
|
try {
|
3350
3350
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
3351
3351
|
} catch {
|
@@ -3406,7 +3406,7 @@ function ko(t, e) {
|
|
3406
3406
|
function ki(t) {
|
3407
3407
|
return !(t.pointerType === "touch" || Eo());
|
3408
3408
|
}
|
3409
|
-
function
|
3409
|
+
function od(t, e, n = {}) {
|
3410
3410
|
const [r, i, s] = ko(t, n), o = (a) => {
|
3411
3411
|
if (!ki(a))
|
3412
3412
|
return;
|
@@ -3430,15 +3430,15 @@ function gn(t, e) {
|
|
3430
3430
|
} catch {
|
3431
3431
|
}
|
3432
3432
|
}
|
3433
|
-
const Do = (t, e) => e ? t === e ? !0 : Do(t, e.parentElement) : !1, Ur = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1,
|
3433
|
+
const Do = (t, e) => e ? t === e ? !0 : Do(t, e.parentElement) : !1, Ur = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, ad = /* @__PURE__ */ new Set([
|
3434
3434
|
"BUTTON",
|
3435
3435
|
"INPUT",
|
3436
3436
|
"SELECT",
|
3437
3437
|
"TEXTAREA",
|
3438
3438
|
"A"
|
3439
3439
|
]);
|
3440
|
-
function
|
3441
|
-
return
|
3440
|
+
function ld(t) {
|
3441
|
+
return ad.has(t.tagName) || t.tabIndex !== -1;
|
3442
3442
|
}
|
3443
3443
|
const Ae = /* @__PURE__ */ new WeakSet();
|
3444
3444
|
function Di(t) {
|
@@ -3449,7 +3449,7 @@ function Di(t) {
|
|
3449
3449
|
function Bn(t, e) {
|
3450
3450
|
t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
|
3451
3451
|
}
|
3452
|
-
const
|
3452
|
+
const cd = (t, e) => {
|
3453
3453
|
const n = t.currentTarget;
|
3454
3454
|
if (!n)
|
3455
3455
|
return;
|
@@ -3467,7 +3467,7 @@ const ld = (t, e) => {
|
|
3467
3467
|
function _i(t) {
|
3468
3468
|
return Ur(t) && !Eo();
|
3469
3469
|
}
|
3470
|
-
function
|
3470
|
+
function ud(t, e, n = {}) {
|
3471
3471
|
const [r, i, s] = ko(t, n), o = (a) => {
|
3472
3472
|
const l = a.currentTarget;
|
3473
3473
|
if (!l || !_i(a) || Ae.has(l))
|
@@ -3476,7 +3476,7 @@ function cd(t, e, n = {}) {
|
|
3476
3476
|
const c = e(l, a), u = (h, p) => {
|
3477
3477
|
l.removeEventListener("pointerup", d), l.removeEventListener("pointercancel", f), gn(h, "release"), !(!_i(h) || !Ae.has(l)) && (Ae.delete(l), typeof c == "function" && c(h, { success: p }));
|
3478
3478
|
}, d = (h) => {
|
3479
|
-
(h.isTrusted ?
|
3479
|
+
(h.isTrusted ? dd(h, l instanceof Element ? l.getBoundingClientRect() : {
|
3480
3480
|
left: 0,
|
3481
3481
|
top: 0,
|
3482
3482
|
right: window.innerWidth,
|
@@ -3490,13 +3490,13 @@ function cd(t, e, n = {}) {
|
|
3490
3490
|
return r.forEach((a) => {
|
3491
3491
|
a = n.useGlobalTarget ? window : a;
|
3492
3492
|
let l = !1;
|
3493
|
-
a instanceof HTMLElement && (l = !0, !
|
3493
|
+
a instanceof HTMLElement && (l = !0, !ld(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0)), a.addEventListener("pointerdown", o, i), l && a.addEventListener("focus", (c) => cd(c, i), i);
|
3494
3494
|
}), s;
|
3495
3495
|
}
|
3496
|
-
function
|
3496
|
+
function dd(t, e) {
|
3497
3497
|
return t.clientX < e.left || t.clientX > e.right || t.clientY < e.top || t.clientY > e.bottom;
|
3498
3498
|
}
|
3499
|
-
function
|
3499
|
+
function fd(t) {
|
3500
3500
|
return t === "x" || t === "y" ? xt[t] ? null : (xt[t] = !0, () => {
|
3501
3501
|
xt[t] = !1;
|
3502
3502
|
}) : xt.x || xt.y ? null : (xt.x = xt.y = !0, () => {
|
@@ -3513,13 +3513,13 @@ const _o = /* @__PURE__ */ new Set([
|
|
3513
3513
|
...ye
|
3514
3514
|
]);
|
3515
3515
|
let ln;
|
3516
|
-
function
|
3516
|
+
function hd() {
|
3517
3517
|
ln = void 0;
|
3518
3518
|
}
|
3519
3519
|
const Et = {
|
3520
|
-
now: () => (ln === void 0 && Et.set(H.isProcessing ||
|
3520
|
+
now: () => (ln === void 0 && Et.set(H.isProcessing || cu.useManualTiming ? H.timestamp : performance.now()), ln),
|
3521
3521
|
set: (t) => {
|
3522
|
-
ln = t, queueMicrotask(
|
3522
|
+
ln = t, queueMicrotask(hd);
|
3523
3523
|
}
|
3524
3524
|
};
|
3525
3525
|
function zr(t, e) {
|
@@ -3557,8 +3557,8 @@ class qr {
|
|
3557
3557
|
function Lo(t, e) {
|
3558
3558
|
return e ? t * (1e3 / e) : 0;
|
3559
3559
|
}
|
3560
|
-
const Li = 30,
|
3561
|
-
class
|
3560
|
+
const Li = 30, pd = (t) => !isNaN(parseFloat(t));
|
3561
|
+
class md {
|
3562
3562
|
/**
|
3563
3563
|
* @param init - The initiating value
|
3564
3564
|
* @param config - Optional configuration options
|
@@ -3574,7 +3574,7 @@ class pd {
|
|
3574
3574
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
3575
3575
|
}
|
3576
3576
|
setCurrent(e) {
|
3577
|
-
this.current = e, this.updatedAt = Et.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity =
|
3577
|
+
this.current = e, this.updatedAt = Et.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = pd(this.current));
|
3578
3578
|
}
|
3579
3579
|
setPrevFrameValue(e = this.current) {
|
3580
3580
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
@@ -3753,9 +3753,9 @@ class pd {
|
|
3753
3753
|
}
|
3754
3754
|
}
|
3755
3755
|
function Ie(t, e) {
|
3756
|
-
return new
|
3756
|
+
return new md(t, e);
|
3757
3757
|
}
|
3758
|
-
function
|
3758
|
+
function gd(t, e, n) {
|
3759
3759
|
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Ie(n));
|
3760
3760
|
}
|
3761
3761
|
function Gr(t, e) {
|
@@ -3763,44 +3763,44 @@ function Gr(t, e) {
|
|
3763
3763
|
let { transitionEnd: r = {}, transition: i = {}, ...s } = n || {};
|
3764
3764
|
s = { ...s, ...r };
|
3765
3765
|
for (const o in s) {
|
3766
|
-
const a =
|
3767
|
-
|
3766
|
+
const a = Yu(s[o]);
|
3767
|
+
gd(t, o, a);
|
3768
3768
|
}
|
3769
3769
|
}
|
3770
|
-
function
|
3770
|
+
function yd(t) {
|
3771
3771
|
return !!(J(t) && t.add);
|
3772
3772
|
}
|
3773
3773
|
function sr(t, e) {
|
3774
3774
|
const n = t.getValue("willChange");
|
3775
|
-
if (
|
3775
|
+
if (yd(n))
|
3776
3776
|
return n.add(e);
|
3777
3777
|
}
|
3778
3778
|
function $o(t) {
|
3779
3779
|
return t.props[uo];
|
3780
3780
|
}
|
3781
|
-
const Oo = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t,
|
3782
|
-
function
|
3781
|
+
const Oo = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, vd = 1e-7, bd = 12;
|
3782
|
+
function xd(t, e, n, r, i) {
|
3783
3783
|
let s, o, a = 0;
|
3784
3784
|
do
|
3785
3785
|
o = e + (n - e) / 2, s = Oo(o, r, i) - t, s > 0 ? n = o : e = o;
|
3786
|
-
while (Math.abs(s) >
|
3786
|
+
while (Math.abs(s) > vd && ++a < bd);
|
3787
3787
|
return o;
|
3788
3788
|
}
|
3789
3789
|
function We(t, e, n, r) {
|
3790
3790
|
if (t === e && n === r)
|
3791
3791
|
return ct;
|
3792
|
-
const i = (s) =>
|
3792
|
+
const i = (s) => xd(s, 0, 1, t, n);
|
3793
3793
|
return (s) => s === 0 || s === 1 ? s : Oo(i(s), e, r);
|
3794
3794
|
}
|
3795
3795
|
const Fo = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Bo = (t) => (e) => 1 - t(1 - e), Io = /* @__PURE__ */ We(0.33, 1.53, 0.69, 0.99), Hr = /* @__PURE__ */ Bo(Io), No = /* @__PURE__ */ Fo(Hr), jo = (t) => (t *= 2) < 1 ? 0.5 * Hr(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Kr = (t) => 1 - Math.sin(Math.acos(t)), Uo = Bo(Kr), zo = Fo(Kr), Wo = (t) => /^0[^.\s]+$/u.test(t);
|
3796
|
-
function
|
3796
|
+
function wd(t) {
|
3797
3797
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Wo(t) : !0;
|
3798
3798
|
}
|
3799
3799
|
const Ve = (t) => Math.round(t * 1e5) / 1e5, Yr = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
3800
|
-
function
|
3800
|
+
function Sd(t) {
|
3801
3801
|
return t == null;
|
3802
3802
|
}
|
3803
|
-
const
|
3803
|
+
const Td = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Xr = (t, e) => (n) => !!(typeof n == "string" && Td.test(n) && n.startsWith(t) || e && !Sd(n) && Object.prototype.hasOwnProperty.call(n, e)), qo = (t, e, n) => (r) => {
|
3804
3804
|
if (typeof r != "string")
|
3805
3805
|
return r;
|
3806
3806
|
const [i, s, o, a] = r.match(Yr);
|
@@ -3810,15 +3810,15 @@ const Sd = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
3810
3810
|
[n]: parseFloat(o),
|
3811
3811
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
3812
3812
|
};
|
3813
|
-
},
|
3813
|
+
}, Cd = (t) => Lt(0, 255, t), In = {
|
3814
3814
|
...ve,
|
3815
|
-
transform: (t) => Math.round(
|
3815
|
+
transform: (t) => Math.round(Cd(t))
|
3816
3816
|
}, Zt = {
|
3817
3817
|
test: /* @__PURE__ */ Xr("rgb", "red"),
|
3818
3818
|
parse: /* @__PURE__ */ qo("red", "green", "blue"),
|
3819
3819
|
transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + In.transform(t) + ", " + In.transform(e) + ", " + In.transform(n) + ", " + Ve(Fe.transform(r)) + ")"
|
3820
3820
|
};
|
3821
|
-
function
|
3821
|
+
function Pd(t) {
|
3822
3822
|
let e = "", n = "", r = "", i = "";
|
3823
3823
|
return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), r = t.substring(5, 7), i = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), r = t.substring(3, 4), i = t.substring(4, 5), e += e, n += n, r += r, i += i), {
|
3824
3824
|
red: parseInt(e, 16),
|
@@ -3829,7 +3829,7 @@ function Cd(t) {
|
|
3829
3829
|
}
|
3830
3830
|
const or = {
|
3831
3831
|
test: /* @__PURE__ */ Xr("#"),
|
3832
|
-
parse:
|
3832
|
+
parse: Pd,
|
3833
3833
|
transform: Zt.transform
|
3834
3834
|
}, re = {
|
3835
3835
|
test: /* @__PURE__ */ Xr("hsl", "hue"),
|
@@ -3839,12 +3839,12 @@ const or = {
|
|
3839
3839
|
test: (t) => Zt.test(t) || or.test(t) || re.test(t),
|
3840
3840
|
parse: (t) => Zt.test(t) ? Zt.parse(t) : re.test(t) ? re.parse(t) : or.parse(t),
|
3841
3841
|
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Zt.transform(t) : re.transform(t)
|
3842
|
-
},
|
3843
|
-
function
|
3842
|
+
}, Ad = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
3843
|
+
function Vd(t) {
|
3844
3844
|
var e, n;
|
3845
|
-
return isNaN(t) && typeof t == "string" && (((e = t.match(Yr)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(
|
3845
|
+
return isNaN(t) && typeof t == "string" && (((e = t.match(Yr)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Ad)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
3846
3846
|
}
|
3847
|
-
const Go = "number", Ho = "color",
|
3847
|
+
const Go = "number", Ho = "color", Rd = "var", Ed = "var(", $i = "${}", Md = /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;
|
3848
3848
|
function Ne(t) {
|
3849
3849
|
const e = t.toString(), n = [], r = {
|
3850
3850
|
color: [],
|
@@ -3852,7 +3852,7 @@ function Ne(t) {
|
|
3852
3852
|
var: []
|
3853
3853
|
}, i = [];
|
3854
3854
|
let s = 0;
|
3855
|
-
const a = e.replace(
|
3855
|
+
const a = e.replace(Md, (l) => (Z.test(l) ? (r.color.push(s), i.push(Ho), n.push(Z.parse(l))) : l.startsWith(Ed) ? (r.var.push(s), i.push(Rd), n.push(l)) : (r.number.push(s), i.push(Go), n.push(parseFloat(l))), ++s, $i)).split($i);
|
3856
3856
|
return { values: n, split: a, indexes: r, types: i };
|
3857
3857
|
}
|
3858
3858
|
function Ko(t) {
|
@@ -3870,18 +3870,18 @@ function Yo(t) {
|
|
3870
3870
|
return s;
|
3871
3871
|
};
|
3872
3872
|
}
|
3873
|
-
const
|
3874
|
-
function
|
3873
|
+
const kd = (t) => typeof t == "number" ? 0 : t;
|
3874
|
+
function Dd(t) {
|
3875
3875
|
const e = Ko(t);
|
3876
|
-
return Yo(t)(e.map(
|
3876
|
+
return Yo(t)(e.map(kd));
|
3877
3877
|
}
|
3878
3878
|
const zt = {
|
3879
|
-
test:
|
3879
|
+
test: Vd,
|
3880
3880
|
parse: Ko,
|
3881
3881
|
createTransformer: Yo,
|
3882
|
-
getAnimatableNone:
|
3883
|
-
},
|
3884
|
-
function
|
3882
|
+
getAnimatableNone: Dd
|
3883
|
+
}, _d = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
3884
|
+
function Ld(t) {
|
3885
3885
|
const [e, n] = t.slice(0, -1).split("(");
|
3886
3886
|
if (e === "drop-shadow")
|
3887
3887
|
return t;
|
@@ -3889,16 +3889,16 @@ function _d(t) {
|
|
3889
3889
|
if (!r)
|
3890
3890
|
return t;
|
3891
3891
|
const i = n.replace(r, "");
|
3892
|
-
let s =
|
3892
|
+
let s = _d.has(e) ? 1 : 0;
|
3893
3893
|
return r !== n && (s *= 100), e + "(" + s + i + ")";
|
3894
3894
|
}
|
3895
|
-
const
|
3895
|
+
const $d = /\b([a-z-]*)\(.*?\)/gu, ar = {
|
3896
3896
|
...zt,
|
3897
3897
|
getAnimatableNone: (t) => {
|
3898
|
-
const e = t.match(
|
3899
|
-
return e ? e.map(
|
3898
|
+
const e = t.match($d);
|
3899
|
+
return e ? e.map(Ld).join(" ") : t;
|
3900
3900
|
}
|
3901
|
-
},
|
3901
|
+
}, Od = {
|
3902
3902
|
...kr,
|
3903
3903
|
// Color props
|
3904
3904
|
color: Z,
|
@@ -3914,17 +3914,17 @@ const Ld = /\b([a-z-]*)\(.*?\)/gu, ar = {
|
|
3914
3914
|
borderLeftColor: Z,
|
3915
3915
|
filter: ar,
|
3916
3916
|
WebkitFilter: ar
|
3917
|
-
}, Zr = (t) =>
|
3917
|
+
}, Zr = (t) => Od[t];
|
3918
3918
|
function Xo(t, e) {
|
3919
3919
|
let n = Zr(t);
|
3920
3920
|
return n !== ar && (n = zt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
3921
3921
|
}
|
3922
|
-
const
|
3923
|
-
function
|
3922
|
+
const Fd = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
3923
|
+
function Bd(t, e, n) {
|
3924
3924
|
let r = 0, i;
|
3925
3925
|
for (; r < t.length && !i; ) {
|
3926
3926
|
const s = t[r];
|
3927
|
-
typeof s == "string" && !
|
3927
|
+
typeof s == "string" && !Fd.has(s) && Ne(s).values.length && (i = t[r]), r++;
|
3928
3928
|
}
|
3929
3929
|
if (i && n)
|
3930
3930
|
for (const s of e)
|
@@ -3940,10 +3940,10 @@ const Oi = (t) => t === ve || t === M, Fi = (t, e) => parseFloat(t.split(", ")[e
|
|
3940
3940
|
const s = r.match(/^matrix\((.+)\)$/u);
|
3941
3941
|
return s ? Fi(s[1], t) : 0;
|
3942
3942
|
}
|
3943
|
-
},
|
3944
|
-
function
|
3943
|
+
}, Id = /* @__PURE__ */ new Set(["x", "y", "z"]), Nd = ye.filter((t) => !Id.has(t));
|
3944
|
+
function jd(t) {
|
3945
3945
|
const e = [];
|
3946
|
-
return
|
3946
|
+
return Nd.forEach((n) => {
|
3947
3947
|
const r = t.getValue(n);
|
3948
3948
|
r !== void 0 && (e.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
|
3949
3949
|
}), e;
|
@@ -3968,7 +3968,7 @@ function Zo() {
|
|
3968
3968
|
if (cr) {
|
3969
3969
|
const t = Array.from(Jt).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), n = /* @__PURE__ */ new Map();
|
3970
3970
|
e.forEach((r) => {
|
3971
|
-
const i =
|
3971
|
+
const i = jd(r);
|
3972
3972
|
i.length && (n.set(r, i), r.render());
|
3973
3973
|
}), t.forEach((r) => r.measureInitialState()), e.forEach((r) => {
|
3974
3974
|
r.render();
|
@@ -3988,7 +3988,7 @@ function Jo() {
|
|
3988
3988
|
t.readKeyframes(), t.needsMeasurement && (cr = !0);
|
3989
3989
|
});
|
3990
3990
|
}
|
3991
|
-
function
|
3991
|
+
function Ud() {
|
3992
3992
|
Jo(), Zo();
|
3993
3993
|
}
|
3994
3994
|
class Jr {
|
@@ -4032,21 +4032,21 @@ class Jr {
|
|
4032
4032
|
this.isComplete || this.scheduleResolve();
|
4033
4033
|
}
|
4034
4034
|
}
|
4035
|
-
const Qo = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),
|
4035
|
+
const Qo = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), zd = (
|
4036
4036
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
4037
4037
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
4038
4038
|
);
|
4039
|
-
function
|
4040
|
-
const e =
|
4039
|
+
function Wd(t) {
|
4040
|
+
const e = zd.exec(t);
|
4041
4041
|
if (!e)
|
4042
4042
|
return [,];
|
4043
4043
|
const [, n, r, i] = e;
|
4044
4044
|
return [`--${n ?? r}`, i];
|
4045
4045
|
}
|
4046
|
-
const
|
4046
|
+
const qd = 4;
|
4047
4047
|
function ta(t, e, n = 1) {
|
4048
|
-
Mt(n <=
|
4049
|
-
const [r, i] =
|
4048
|
+
Mt(n <= qd, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
|
4049
|
+
const [r, i] = Wd(t);
|
4050
4050
|
if (!r)
|
4051
4051
|
return;
|
4052
4052
|
const s = window.getComputedStyle(e).getPropertyValue(r);
|
@@ -4056,10 +4056,10 @@ function ta(t, e, n = 1) {
|
|
4056
4056
|
}
|
4057
4057
|
return Mr(i) ? ta(i, e, n + 1) : i;
|
4058
4058
|
}
|
4059
|
-
const ea = (t) => (e) => e.test(t),
|
4059
|
+
const ea = (t) => (e) => e.test(t), Gd = {
|
4060
4060
|
test: (t) => t === "auto",
|
4061
4061
|
parse: (t) => t
|
4062
|
-
}, na = [ve, M, Rt, jt,
|
4062
|
+
}, na = [ve, M, Rt, jt, Du, ku, Gd], Ii = (t) => na.find(ea(t));
|
4063
4063
|
class ra extends Jr {
|
4064
4064
|
constructor(e, n, r, i, s) {
|
4065
4065
|
super(e, n, r, i, s, !0);
|
@@ -4091,8 +4091,8 @@ class ra extends Jr {
|
|
4091
4091
|
resolveNoneKeyframes() {
|
4092
4092
|
const { unresolvedKeyframes: e, name: n } = this, r = [];
|
4093
4093
|
for (let i = 0; i < e.length; i++)
|
4094
|
-
|
4095
|
-
r.length &&
|
4094
|
+
wd(e[i]) && r.push(i);
|
4095
|
+
r.length && Bd(e, r, n);
|
4096
4096
|
}
|
4097
4097
|
measureInitialState() {
|
4098
4098
|
const { element: e, unresolvedKeyframes: n, name: r } = this;
|
@@ -4118,7 +4118,7 @@ class ra extends Jr {
|
|
4118
4118
|
const Ni = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
4119
4119
|
(zt.test(t) || t === "0") && // And it contains numbers and/or colors
|
4120
4120
|
!t.startsWith("url("));
|
4121
|
-
function
|
4121
|
+
function Hd(t) {
|
4122
4122
|
const e = t[0];
|
4123
4123
|
if (t.length === 1)
|
4124
4124
|
return !0;
|
@@ -4126,21 +4126,21 @@ function Gd(t) {
|
|
4126
4126
|
if (t[n] !== e)
|
4127
4127
|
return !0;
|
4128
4128
|
}
|
4129
|
-
function
|
4129
|
+
function Kd(t, e, n, r) {
|
4130
4130
|
const i = t[0];
|
4131
4131
|
if (i === null)
|
4132
4132
|
return !1;
|
4133
4133
|
if (e === "display" || e === "visibility")
|
4134
4134
|
return !0;
|
4135
4135
|
const s = t[t.length - 1], o = Ni(i, e), a = Ni(s, e);
|
4136
|
-
return ge(o === a, `You are trying to animate ${e} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`), !o || !a ? !1 :
|
4136
|
+
return ge(o === a, `You are trying to animate ${e} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`), !o || !a ? !1 : Hd(t) || (n === "spring" || Nr(n)) && r;
|
4137
4137
|
}
|
4138
|
-
const
|
4138
|
+
const Yd = (t) => t !== null;
|
4139
4139
|
function En(t, { repeat: e, repeatType: n = "loop" }, r) {
|
4140
|
-
const i = t.filter(
|
4140
|
+
const i = t.filter(Yd), s = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
|
4141
4141
|
return !s || r === void 0 ? i[s] : r;
|
4142
4142
|
}
|
4143
|
-
const
|
4143
|
+
const Xd = 40;
|
4144
4144
|
class ia {
|
4145
4145
|
constructor({ autoplay: e = !0, delay: n = 0, type: r = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o = "loop", ...a }) {
|
4146
4146
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = Et.now(), this.options = {
|
@@ -4164,7 +4164,7 @@ class ia {
|
|
4164
4164
|
* to avoid a sudden jump into the animation.
|
4165
4165
|
*/
|
4166
4166
|
calcStartTime() {
|
4167
|
-
return this.resolvedAt ? this.resolvedAt - this.createdAt >
|
4167
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > Xd ? this.resolvedAt : this.createdAt : this.createdAt;
|
4168
4168
|
}
|
4169
4169
|
/**
|
4170
4170
|
* A getter for resolved data. If keyframes are not yet resolved, accessing
|
@@ -4172,7 +4172,7 @@ class ia {
|
|
4172
4172
|
* This is a deoptimisation, but at its worst still batches read/writes.
|
4173
4173
|
*/
|
4174
4174
|
get resolved() {
|
4175
|
-
return !this._resolved && !this.hasAttemptedResolve &&
|
4175
|
+
return !this._resolved && !this.hasAttemptedResolve && Ud(), this._resolved;
|
4176
4176
|
}
|
4177
4177
|
/**
|
4178
4178
|
* A method to be called when the keyframes resolver completes. This method
|
@@ -4182,7 +4182,7 @@ class ia {
|
|
4182
4182
|
onKeyframesResolved(e, n) {
|
4183
4183
|
this.resolvedAt = Et.now(), this.hasAttemptedResolve = !0;
|
4184
4184
|
const { name: r, type: i, velocity: s, delay: o, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
|
4185
|
-
if (!c && !
|
4185
|
+
if (!c && !Kd(e, r, i, s))
|
4186
4186
|
if (o)
|
4187
4187
|
this.options.duration = 0;
|
4188
4188
|
else {
|
@@ -4219,7 +4219,7 @@ const U = (t, e, n) => t + (e - t) * n;
|
|
4219
4219
|
function Nn(t, e, n) {
|
4220
4220
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
|
4221
4221
|
}
|
4222
|
-
function
|
4222
|
+
function Zd({ hue: t, saturation: e, lightness: n, alpha: r }) {
|
4223
4223
|
t /= 360, e /= 100, n /= 100;
|
4224
4224
|
let i = 0, s = 0, o = 0;
|
4225
4225
|
if (!e)
|
@@ -4241,13 +4241,13 @@ function yn(t, e) {
|
|
4241
4241
|
const jn = (t, e, n) => {
|
4242
4242
|
const r = t * t, i = n * (e * e - r) + r;
|
4243
4243
|
return i < 0 ? 0 : Math.sqrt(i);
|
4244
|
-
},
|
4244
|
+
}, Jd = [or, Zt, re], Qd = (t) => Jd.find((e) => e.test(t));
|
4245
4245
|
function ji(t) {
|
4246
|
-
const e =
|
4246
|
+
const e = Qd(t);
|
4247
4247
|
if (ge(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
4248
4248
|
return !1;
|
4249
4249
|
let n = e.parse(t);
|
4250
|
-
return e === re && (n =
|
4250
|
+
return e === re && (n = Zd(n)), n;
|
4251
4251
|
}
|
4252
4252
|
const Ui = (t, e) => {
|
4253
4253
|
const n = ji(t), r = ji(e);
|
@@ -4255,15 +4255,15 @@ const Ui = (t, e) => {
|
|
4255
4255
|
return yn(t, e);
|
4256
4256
|
const i = { ...n };
|
4257
4257
|
return (s) => (i.red = jn(n.red, r.red, s), i.green = jn(n.green, r.green, s), i.blue = jn(n.blue, r.blue, s), i.alpha = U(n.alpha, r.alpha, s), Zt.transform(i));
|
4258
|
-
},
|
4259
|
-
function
|
4258
|
+
}, tf = (t, e) => (n) => e(t(n)), qe = (...t) => t.reduce(tf), ur = /* @__PURE__ */ new Set(["none", "hidden"]);
|
4259
|
+
function ef(t, e) {
|
4260
4260
|
return ur.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
4261
4261
|
}
|
4262
|
-
function
|
4262
|
+
function nf(t, e) {
|
4263
4263
|
return (n) => U(t, e, n);
|
4264
4264
|
}
|
4265
4265
|
function Qr(t) {
|
4266
|
-
return typeof t == "number" ?
|
4266
|
+
return typeof t == "number" ? nf : typeof t == "string" ? Mr(t) ? yn : Z.test(t) ? Ui : of : Array.isArray(t) ? sa : typeof t == "object" ? Z.test(t) ? Ui : rf : yn;
|
4267
4267
|
}
|
4268
4268
|
function sa(t, e) {
|
4269
4269
|
const n = [...t], r = n.length, i = t.map((s, o) => Qr(s)(s, e[o]));
|
@@ -4273,7 +4273,7 @@ function sa(t, e) {
|
|
4273
4273
|
return n;
|
4274
4274
|
};
|
4275
4275
|
}
|
4276
|
-
function
|
4276
|
+
function rf(t, e) {
|
4277
4277
|
const n = { ...t, ...e }, r = {};
|
4278
4278
|
for (const i in n)
|
4279
4279
|
t[i] !== void 0 && e[i] !== void 0 && (r[i] = Qr(t[i])(t[i], e[i]));
|
@@ -4283,7 +4283,7 @@ function nf(t, e) {
|
|
4283
4283
|
return n;
|
4284
4284
|
};
|
4285
4285
|
}
|
4286
|
-
function
|
4286
|
+
function sf(t, e) {
|
4287
4287
|
var n;
|
4288
4288
|
const r = [], i = { color: 0, var: 0, number: 0 };
|
4289
4289
|
for (let s = 0; s < e.values.length; s++) {
|
@@ -4292,16 +4292,16 @@ function rf(t, e) {
|
|
4292
4292
|
}
|
4293
4293
|
return r;
|
4294
4294
|
}
|
4295
|
-
const
|
4295
|
+
const of = (t, e) => {
|
4296
4296
|
const n = zt.createTransformer(e), r = Ne(t), i = Ne(e);
|
4297
|
-
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? ur.has(t) && !i.values.length || ur.has(e) && !r.values.length ?
|
4297
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? ur.has(t) && !i.values.length || ur.has(e) && !r.values.length ? ef(t, e) : qe(sa(sf(r, i), i.values), n) : (ge(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), yn(t, e));
|
4298
4298
|
};
|
4299
4299
|
function oa(t, e, n) {
|
4300
4300
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? U(t, e, n) : Qr(t)(t, e);
|
4301
4301
|
}
|
4302
|
-
const
|
4302
|
+
const af = 5;
|
4303
4303
|
function aa(t, e, n) {
|
4304
|
-
const r = Math.max(e -
|
4304
|
+
const r = Math.max(e - af, 0);
|
4305
4305
|
return Lo(n - t(r), e - r);
|
4306
4306
|
}
|
4307
4307
|
const j = {
|
@@ -4333,7 +4333,7 @@ const j = {
|
|
4333
4333
|
minDamping: 0.05,
|
4334
4334
|
maxDamping: 1
|
4335
4335
|
}, zi = 1e-3;
|
4336
|
-
function
|
4336
|
+
function lf({ duration: t = j.duration, bounce: e = j.bounce, velocity: n = j.velocity, mass: r = j.mass }) {
|
4337
4337
|
let i, s;
|
4338
4338
|
ge(t <= /* @__PURE__ */ Vt(j.maxDuration), "Spring duration must be 10 seconds or less");
|
4339
4339
|
let o = 1 - e;
|
@@ -4350,7 +4350,7 @@ function af({ duration: t = j.duration, bounce: e = j.bounce, velocity: n = j.ve
|
|
4350
4350
|
const u = Math.exp(-c * t), d = (n - c) * (t * t);
|
4351
4351
|
return u * d;
|
4352
4352
|
});
|
4353
|
-
const a = 5 / t, l =
|
4353
|
+
const a = 5 / t, l = uf(i, s, a);
|
4354
4354
|
if (t = /* @__PURE__ */ Vt(t), isNaN(l))
|
4355
4355
|
return {
|
4356
4356
|
stiffness: j.stiffness,
|
@@ -4366,21 +4366,21 @@ function af({ duration: t = j.duration, bounce: e = j.bounce, velocity: n = j.ve
|
|
4366
4366
|
};
|
4367
4367
|
}
|
4368
4368
|
}
|
4369
|
-
const
|
4370
|
-
function
|
4369
|
+
const cf = 12;
|
4370
|
+
function uf(t, e, n) {
|
4371
4371
|
let r = n;
|
4372
|
-
for (let i = 1; i <
|
4372
|
+
for (let i = 1; i < cf; i++)
|
4373
4373
|
r = r - t(r) / e(r);
|
4374
4374
|
return r;
|
4375
4375
|
}
|
4376
4376
|
function dr(t, e) {
|
4377
4377
|
return t * Math.sqrt(1 - e * e);
|
4378
4378
|
}
|
4379
|
-
const
|
4379
|
+
const df = ["duration", "bounce"], ff = ["stiffness", "damping", "mass"];
|
4380
4380
|
function Wi(t, e) {
|
4381
4381
|
return e.some((n) => t[n] !== void 0);
|
4382
4382
|
}
|
4383
|
-
function
|
4383
|
+
function hf(t) {
|
4384
4384
|
let e = {
|
4385
4385
|
velocity: j.velocity,
|
4386
4386
|
stiffness: j.stiffness,
|
@@ -4389,7 +4389,7 @@ function ff(t) {
|
|
4389
4389
|
isResolvedFromDuration: !1,
|
4390
4390
|
...t
|
4391
4391
|
};
|
4392
|
-
if (!Wi(t,
|
4392
|
+
if (!Wi(t, ff) && Wi(t, df))
|
4393
4393
|
if (t.visualDuration) {
|
4394
4394
|
const n = t.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, s = 2 * Lt(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
|
4395
4395
|
e = {
|
@@ -4399,7 +4399,7 @@ function ff(t) {
|
|
4399
4399
|
damping: s
|
4400
4400
|
};
|
4401
4401
|
} else {
|
4402
|
-
const n =
|
4402
|
+
const n = lf(t);
|
4403
4403
|
e = {
|
4404
4404
|
...e,
|
4405
4405
|
...n,
|
@@ -4415,7 +4415,7 @@ function la(t = j.visualDuration, e = j.bounce) {
|
|
4415
4415
|
bounce: e
|
4416
4416
|
} : t;
|
4417
4417
|
let { restSpeed: r, restDelta: i } = n;
|
4418
|
-
const s = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: s }, { stiffness: l, damping: c, mass: u, duration: d, velocity: f, isResolvedFromDuration: h } =
|
4418
|
+
const s = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: s }, { stiffness: l, damping: c, mass: u, duration: d, velocity: f, isResolvedFromDuration: h } = hf({
|
4419
4419
|
...n,
|
4420
4420
|
velocity: -/* @__PURE__ */ Dt(n.velocity || 0)
|
4421
4421
|
}), p = f || 0, g = c / (2 * Math.sqrt(l * u)), x = o - s, v = /* @__PURE__ */ Dt(Math.sqrt(l / u)), w = Math.abs(x) < 5;
|
@@ -4489,11 +4489,11 @@ function qi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 3
|
|
4489
4489
|
}
|
4490
4490
|
};
|
4491
4491
|
}
|
4492
|
-
const
|
4492
|
+
const pf = /* @__PURE__ */ We(0.42, 0, 1, 1), mf = /* @__PURE__ */ We(0, 0, 0.58, 1), ca = /* @__PURE__ */ We(0.42, 0, 0.58, 1), gf = (t) => Array.isArray(t) && typeof t[0] != "number", Gi = {
|
4493
4493
|
linear: ct,
|
4494
|
-
easeIn:
|
4494
|
+
easeIn: pf,
|
4495
4495
|
easeInOut: ca,
|
4496
|
-
easeOut:
|
4496
|
+
easeOut: mf,
|
4497
4497
|
circIn: Kr,
|
4498
4498
|
circInOut: zo,
|
4499
4499
|
circOut: Uo,
|
@@ -4510,7 +4510,7 @@ const hf = /* @__PURE__ */ We(0.42, 0, 1, 1), pf = /* @__PURE__ */ We(0, 0, 0.58
|
|
4510
4510
|
return Mt(Gi[t] !== void 0, `Invalid easing type '${t}'`), Gi[t];
|
4511
4511
|
return t;
|
4512
4512
|
};
|
4513
|
-
function
|
4513
|
+
function yf(t, e, n) {
|
4514
4514
|
const r = [], i = n || oa, s = t.length - 1;
|
4515
4515
|
for (let o = 0; o < s; o++) {
|
4516
4516
|
let a = i(t[o], t[o + 1]);
|
@@ -4522,7 +4522,7 @@ function gf(t, e, n) {
|
|
4522
4522
|
}
|
4523
4523
|
return r;
|
4524
4524
|
}
|
4525
|
-
function
|
4525
|
+
function vf(t, e, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
4526
4526
|
const s = t.length;
|
4527
4527
|
if (Mt(s === e.length, "Both input and output ranges must be the same length"), s === 1)
|
4528
4528
|
return () => e[0];
|
@@ -4530,7 +4530,7 @@ function yf(t, e, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
4530
4530
|
return () => e[1];
|
4531
4531
|
const o = t[0] === t[1];
|
4532
4532
|
t[0] > t[s - 1] && (t = [...t].reverse(), e = [...e].reverse());
|
4533
|
-
const a =
|
4533
|
+
const a = yf(e, r, i), l = a.length, c = (u) => {
|
4534
4534
|
if (o && u < t[0])
|
4535
4535
|
return e[0];
|
4536
4536
|
let d = 0;
|
@@ -4542,41 +4542,41 @@ function yf(t, e, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
4542
4542
|
};
|
4543
4543
|
return n ? (u) => c(Lt(t[0], t[s - 1], u)) : c;
|
4544
4544
|
}
|
4545
|
-
function
|
4545
|
+
function bf(t, e) {
|
4546
4546
|
const n = t[t.length - 1];
|
4547
4547
|
for (let r = 1; r <= e; r++) {
|
4548
4548
|
const i = /* @__PURE__ */ de(0, e, r);
|
4549
4549
|
t.push(U(n, 1, i));
|
4550
4550
|
}
|
4551
4551
|
}
|
4552
|
-
function
|
4552
|
+
function xf(t) {
|
4553
4553
|
const e = [0];
|
4554
|
-
return
|
4554
|
+
return bf(e, t.length - 1), e;
|
4555
4555
|
}
|
4556
|
-
function
|
4556
|
+
function wf(t, e) {
|
4557
4557
|
return t.map((n) => n * e);
|
4558
4558
|
}
|
4559
|
-
function
|
4559
|
+
function Sf(t, e) {
|
4560
4560
|
return t.map(() => e || ca).splice(0, t.length - 1);
|
4561
4561
|
}
|
4562
4562
|
function Re({ duration: t = 300, keyframes: e, times: n, ease: r = "easeInOut" }) {
|
4563
|
-
const i =
|
4563
|
+
const i = gf(r) ? r.map(Hi) : Hi(r), s = {
|
4564
4564
|
done: !1,
|
4565
4565
|
value: e[0]
|
4566
|
-
}, o =
|
4566
|
+
}, o = wf(
|
4567
4567
|
// Only use the provided offsets if they're the correct length
|
4568
4568
|
// TODO Maybe we should warn here if there's a length mismatch
|
4569
|
-
n && n.length === e.length ? n :
|
4569
|
+
n && n.length === e.length ? n : xf(e),
|
4570
4570
|
t
|
4571
|
-
), a =
|
4572
|
-
ease: Array.isArray(i) ? i :
|
4571
|
+
), a = vf(o, e, {
|
4572
|
+
ease: Array.isArray(i) ? i : Sf(e, i)
|
4573
4573
|
});
|
4574
4574
|
return {
|
4575
4575
|
calculatedDuration: t,
|
4576
4576
|
next: (l) => (s.value = a(l), s.done = l >= t, s)
|
4577
4577
|
};
|
4578
4578
|
}
|
4579
|
-
const
|
4579
|
+
const Tf = (t) => {
|
4580
4580
|
const e = ({ timestamp: n }) => t(n);
|
4581
4581
|
return {
|
4582
4582
|
start: () => N.update(e, !0),
|
@@ -4587,13 +4587,13 @@ const Sf = (t) => {
|
|
4587
4587
|
*/
|
4588
4588
|
now: () => H.isProcessing ? H.timestamp : Et.now()
|
4589
4589
|
};
|
4590
|
-
},
|
4590
|
+
}, Cf = {
|
4591
4591
|
decay: qi,
|
4592
4592
|
inertia: qi,
|
4593
4593
|
tween: Re,
|
4594
4594
|
keyframes: Re,
|
4595
4595
|
spring: la
|
4596
|
-
},
|
4596
|
+
}, Pf = (t) => t / 100;
|
4597
4597
|
class ti extends ia {
|
4598
4598
|
constructor(e) {
|
4599
4599
|
super(e), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
@@ -4610,9 +4610,9 @@ class ti extends ia {
|
|
4610
4610
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
4611
4611
|
}
|
4612
4612
|
initPlayback(e) {
|
4613
|
-
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, a = Nr(n) ? n :
|
4613
|
+
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, a = Nr(n) ? n : Cf[n] || Re;
|
4614
4614
|
let l, c;
|
4615
|
-
process.env.NODE_ENV !== "production" && a !== Re && Mt(e.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), a !== Re && typeof e[0] != "number" && (l = qe(
|
4615
|
+
process.env.NODE_ENV !== "production" && a !== Re && Mt(e.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), a !== Re && typeof e[0] != "number" && (l = qe(Pf, oa(e[0], e[1])), e = [0, 100]);
|
4616
4616
|
const u = a({ ...this.options, keyframes: e });
|
4617
4617
|
s === "mirror" && (c = a({
|
4618
4618
|
...this.options,
|
@@ -4683,7 +4683,7 @@ class ti extends ia {
|
|
4683
4683
|
}
|
4684
4684
|
if (this.isStopped)
|
4685
4685
|
return;
|
4686
|
-
const { driver: e =
|
4686
|
+
const { driver: e = Tf, onPlay: n, startTime: r } = this.options;
|
4687
4687
|
this.driver || (this.driver = e((s) => this.tick(s))), n && n();
|
4688
4688
|
const i = this.driver.now();
|
4689
4689
|
this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = i) : this.startTime = r ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
@@ -4717,7 +4717,7 @@ class ti extends ia {
|
|
4717
4717
|
return this.startTime = 0, this.tick(e, !0);
|
4718
4718
|
}
|
4719
4719
|
}
|
4720
|
-
const
|
4720
|
+
const Af = /* @__PURE__ */ new Set([
|
4721
4721
|
"opacity",
|
4722
4722
|
"clipPath",
|
4723
4723
|
"filter",
|
@@ -4726,7 +4726,7 @@ const Pf = /* @__PURE__ */ new Set([
|
|
4726
4726
|
// or until we implement support for linear() easing.
|
4727
4727
|
// "background-color"
|
4728
4728
|
]);
|
4729
|
-
function
|
4729
|
+
function Vf(t, e, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatType: o = "loop", ease: a = "easeInOut", times: l } = {}) {
|
4730
4730
|
const c = { [e]: n };
|
4731
4731
|
l && (c.offset = l);
|
4732
4732
|
const u = Ro(a, i);
|
@@ -4739,11 +4739,11 @@ function Af(t, e, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatTyp
|
|
4739
4739
|
direction: o === "reverse" ? "alternate" : "normal"
|
4740
4740
|
});
|
4741
4741
|
}
|
4742
|
-
const
|
4743
|
-
function
|
4742
|
+
const Rf = /* @__PURE__ */ Cr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), vn = 10, Ef = 2e4;
|
4743
|
+
function Mf(t) {
|
4744
4744
|
return Nr(t.type) || t.type === "spring" || !Vo(t.ease);
|
4745
4745
|
}
|
4746
|
-
function
|
4746
|
+
function kf(t, e) {
|
4747
4747
|
const n = new ti({
|
4748
4748
|
...e,
|
4749
4749
|
keyframes: t,
|
@@ -4754,7 +4754,7 @@ function Mf(t, e) {
|
|
4754
4754
|
let r = { done: !1, value: t[0] };
|
4755
4755
|
const i = [];
|
4756
4756
|
let s = 0;
|
4757
|
-
for (; !r.done && s <
|
4757
|
+
for (; !r.done && s < Ef; )
|
4758
4758
|
r = n.sample(s), i.push(r.value), s += vn;
|
4759
4759
|
return {
|
4760
4760
|
times: void 0,
|
@@ -4768,7 +4768,7 @@ const ua = {
|
|
4768
4768
|
backInOut: No,
|
4769
4769
|
circInOut: zo
|
4770
4770
|
};
|
4771
|
-
function
|
4771
|
+
function Df(t) {
|
4772
4772
|
return t in ua;
|
4773
4773
|
}
|
4774
4774
|
class Ki extends ia {
|
@@ -4781,11 +4781,11 @@ class Ki extends ia {
|
|
4781
4781
|
let { duration: r = 300, times: i, ease: s, type: o, motionValue: a, name: l, startTime: c } = this.options;
|
4782
4782
|
if (!a.owner || !a.owner.current)
|
4783
4783
|
return !1;
|
4784
|
-
if (typeof s == "string" && mn() &&
|
4785
|
-
const { onComplete: d, onUpdate: f, motionValue: h, element: p, ...g } = this.options, x =
|
4784
|
+
if (typeof s == "string" && mn() && Df(s) && (s = ua[s]), Mf(this.options)) {
|
4785
|
+
const { onComplete: d, onUpdate: f, motionValue: h, element: p, ...g } = this.options, x = kf(e, g);
|
4786
4786
|
e = x.keyframes, e.length === 1 && (e[1] = e[0]), r = x.duration, i = x.times, s = x.ease, o = "keyframes";
|
4787
4787
|
}
|
4788
|
-
const u =
|
4788
|
+
const u = Vf(a.owner.current, l, e, { ...this.options, duration: r, times: i, ease: s });
|
4789
4789
|
return u.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (Mi(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
|
4790
4790
|
const { onComplete: d } = this.options;
|
4791
4791
|
a.set(En(e, this.options, n)), d && d(), this.cancel(), this.resolveFinishedPromise();
|
@@ -4917,32 +4917,32 @@ class Ki extends ia {
|
|
4917
4917
|
if (!n || !n.owner || !(n.owner.current instanceof HTMLElement))
|
4918
4918
|
return !1;
|
4919
4919
|
const { onUpdate: l, transformTemplate: c } = n.owner.getProps();
|
4920
|
-
return
|
4920
|
+
return Rf() && r && Af.has(r) && /**
|
4921
4921
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
4922
4922
|
* no way to read the value from WAAPI every frame.
|
4923
4923
|
*/
|
4924
4924
|
!l && !c && !i && s !== "mirror" && o !== 0 && a !== "inertia";
|
4925
4925
|
}
|
4926
4926
|
}
|
4927
|
-
const
|
4927
|
+
const _f = {
|
4928
4928
|
type: "spring",
|
4929
4929
|
stiffness: 500,
|
4930
4930
|
damping: 25,
|
4931
4931
|
restSpeed: 10
|
4932
|
-
},
|
4932
|
+
}, Lf = (t) => ({
|
4933
4933
|
type: "spring",
|
4934
4934
|
stiffness: 550,
|
4935
4935
|
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
4936
4936
|
restSpeed: 10
|
4937
|
-
}),
|
4937
|
+
}), $f = {
|
4938
4938
|
type: "keyframes",
|
4939
4939
|
duration: 0.8
|
4940
|
-
},
|
4940
|
+
}, Of = {
|
4941
4941
|
type: "keyframes",
|
4942
4942
|
ease: [0.25, 0.1, 0.35, 1],
|
4943
4943
|
duration: 0.3
|
4944
|
-
},
|
4945
|
-
function
|
4944
|
+
}, Ff = (t, { keyframes: e }) => e.length > 2 ? $f : Qt.has(t) ? t.startsWith("scale") ? Lf(e[1]) : _f : Of;
|
4945
|
+
function Bf({ when: t, delay: e, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: s, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
4946
4946
|
return !!Object.keys(u).length;
|
4947
4947
|
}
|
4948
4948
|
const ei = (t, e, n, r = {}, i, s) => (o) => {
|
@@ -4965,9 +4965,9 @@ const ei = (t, e, n, r = {}, i, s) => (o) => {
|
|
4965
4965
|
motionValue: e,
|
4966
4966
|
element: s ? void 0 : i
|
4967
4967
|
};
|
4968
|
-
|
4968
|
+
Bf(a) || (u = {
|
4969
4969
|
...u,
|
4970
|
-
...
|
4970
|
+
...Ff(t, u)
|
4971
4971
|
}), u.duration && (u.duration = /* @__PURE__ */ Vt(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ Vt(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
4972
4972
|
let d = !1;
|
4973
4973
|
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (d = !0)), d && !s && e.get() !== void 0) {
|
@@ -4975,11 +4975,11 @@ const ei = (t, e, n, r = {}, i, s) => (o) => {
|
|
4975
4975
|
if (f !== void 0)
|
4976
4976
|
return N.update(() => {
|
4977
4977
|
u.onUpdate(f), u.onComplete();
|
4978
|
-
}), new
|
4978
|
+
}), new rd([]);
|
4979
4979
|
}
|
4980
4980
|
return !s && Ki.supports(u) ? new Ki(u) : new ti(u);
|
4981
4981
|
};
|
4982
|
-
function
|
4982
|
+
function If({ protectedKeys: t, needsAnimating: e }, n) {
|
4983
4983
|
const r = t.hasOwnProperty(n) && e[n] !== !0;
|
4984
4984
|
return e[n] = !1, r;
|
4985
4985
|
}
|
@@ -4990,7 +4990,7 @@ function da(t, e, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
4990
4990
|
const c = [], u = i && t.animationState && t.animationState.getState()[i];
|
4991
4991
|
for (const d in l) {
|
4992
4992
|
const f = t.getValue(d, (s = t.latestValues[d]) !== null && s !== void 0 ? s : null), h = l[d];
|
4993
|
-
if (h === void 0 || u &&
|
4993
|
+
if (h === void 0 || u && If(u, d))
|
4994
4994
|
continue;
|
4995
4995
|
const p = {
|
4996
4996
|
delay: n,
|
@@ -5021,7 +5021,7 @@ function fr(t, e, n = {}) {
|
|
5021
5021
|
n.transitionOverride && (s = n.transitionOverride);
|
5022
5022
|
const o = i ? () => Promise.all(da(t, i, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
|
5023
5023
|
const { delayChildren: u = 0, staggerChildren: d, staggerDirection: f } = s;
|
5024
|
-
return
|
5024
|
+
return Nf(t, e, u + c, d, f, n);
|
5025
5025
|
} : () => Promise.resolve(), { when: l } = s;
|
5026
5026
|
if (l) {
|
5027
5027
|
const [c, u] = l === "beforeChildren" ? [o, a] : [a, o];
|
@@ -5029,16 +5029,16 @@ function fr(t, e, n = {}) {
|
|
5029
5029
|
} else
|
5030
5030
|
return Promise.all([o(), a(n.delay)]);
|
5031
5031
|
}
|
5032
|
-
function
|
5032
|
+
function Nf(t, e, n = 0, r = 0, i = 1, s) {
|
5033
5033
|
const o = [], a = (t.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => a - c * r;
|
5034
|
-
return Array.from(t.variantChildren).sort(
|
5034
|
+
return Array.from(t.variantChildren).sort(jf).forEach((c, u) => {
|
5035
5035
|
c.notify("AnimationStart", e), o.push(fr(c, e, {
|
5036
5036
|
...s,
|
5037
5037
|
delay: n + l(u)
|
5038
5038
|
}).then(() => c.notify("AnimationComplete", e)));
|
5039
5039
|
}), Promise.all(o);
|
5040
5040
|
}
|
5041
|
-
function
|
5041
|
+
function jf(t, e) {
|
5042
5042
|
return t.sortNodePosition(e);
|
5043
5043
|
}
|
5044
5044
|
function fa(t, e, n = {}) {
|
@@ -5068,7 +5068,7 @@ function ha(t, e) {
|
|
5068
5068
|
return !1;
|
5069
5069
|
return !0;
|
5070
5070
|
}
|
5071
|
-
const
|
5071
|
+
const Uf = Ar.length;
|
5072
5072
|
function pa(t) {
|
5073
5073
|
if (!t)
|
5074
5074
|
return;
|
@@ -5077,18 +5077,18 @@ function pa(t) {
|
|
5077
5077
|
return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
|
5078
5078
|
}
|
5079
5079
|
const e = {};
|
5080
|
-
for (let n = 0; n <
|
5080
|
+
for (let n = 0; n < Uf; n++) {
|
5081
5081
|
const r = Ar[n], i = t.props[r];
|
5082
5082
|
($e(i) || i === !1) && (e[r] = i);
|
5083
5083
|
}
|
5084
5084
|
return e;
|
5085
5085
|
}
|
5086
|
-
const
|
5087
|
-
function
|
5086
|
+
const zf = [...Pr].reverse(), Wf = Pr.length;
|
5087
|
+
function qf(t) {
|
5088
5088
|
return (e) => Promise.all(e.map(({ animation: n, options: r }) => fa(t, n, r)));
|
5089
5089
|
}
|
5090
|
-
function
|
5091
|
-
let e =
|
5090
|
+
function Gf(t) {
|
5091
|
+
let e = qf(t), n = Yi(), r = !0;
|
5092
5092
|
const i = (l) => (c, u) => {
|
5093
5093
|
var d;
|
5094
5094
|
const f = Be(t, u, l === "exit" ? (d = t.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0);
|
@@ -5104,8 +5104,8 @@ function qf(t) {
|
|
5104
5104
|
function o(l) {
|
5105
5105
|
const { props: c } = t, u = pa(t.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
|
5106
5106
|
let h = {}, p = 1 / 0;
|
5107
|
-
for (let x = 0; x <
|
5108
|
-
const v =
|
5107
|
+
for (let x = 0; x < Wf; x++) {
|
5108
|
+
const v = zf[x], w = n[v], S = c[v] !== void 0 ? c[v] : u[v], P = $e(S), m = v === l ? w.isActive : null;
|
5109
5109
|
m === !1 && (p = x);
|
5110
5110
|
let V = S === u[v] && S !== c[v] && P;
|
5111
5111
|
if (V && r && t.manuallyAnimateOnMount && (V = !1), w.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
|
@@ -5113,7 +5113,7 @@ function qf(t) {
|
|
5113
5113
|
!S && !w.prevProp || // Or if the prop doesn't define an animation
|
5114
5114
|
Vn(S) || typeof S == "boolean")
|
5115
5115
|
continue;
|
5116
|
-
const E =
|
5116
|
+
const E = Hf(w.prevProp, S);
|
5117
5117
|
let y = E || // If we're making this variant active, we want to always make it active
|
5118
5118
|
v === l && w.isActive && !V && P || // If we removed a higher-priority variant (i is in reverse order)
|
5119
5119
|
x > p && P, b = !1;
|
@@ -5177,7 +5177,7 @@ function qf(t) {
|
|
5177
5177
|
}
|
5178
5178
|
};
|
5179
5179
|
}
|
5180
|
-
function
|
5180
|
+
function Hf(t, e) {
|
5181
5181
|
return typeof e == "string" ? e !== t : Array.isArray(e) ? !ha(e, t) : !1;
|
5182
5182
|
}
|
5183
5183
|
function Kt(t = !1) {
|
@@ -5206,14 +5206,14 @@ class Wt {
|
|
5206
5206
|
update() {
|
5207
5207
|
}
|
5208
5208
|
}
|
5209
|
-
class
|
5209
|
+
class Kf extends Wt {
|
5210
5210
|
/**
|
5211
5211
|
* We dynamically generate the AnimationState manager as it contains a reference
|
5212
5212
|
* to the underlying animation library. We only want to load that if we load this,
|
5213
5213
|
* so people can optionally code split it out using the `m` component.
|
5214
5214
|
*/
|
5215
5215
|
constructor(e) {
|
5216
|
-
super(e), e.animationState || (e.animationState =
|
5216
|
+
super(e), e.animationState || (e.animationState = Gf(e));
|
5217
5217
|
}
|
5218
5218
|
updateAnimationControlsSubscription() {
|
5219
5219
|
const { animate: e } = this.node.getProps();
|
@@ -5234,10 +5234,10 @@ class Hf extends Wt {
|
|
5234
5234
|
this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
|
5235
5235
|
}
|
5236
5236
|
}
|
5237
|
-
let
|
5238
|
-
class
|
5237
|
+
let Yf = 0;
|
5238
|
+
class Xf extends Wt {
|
5239
5239
|
constructor() {
|
5240
|
-
super(...arguments), this.id =
|
5240
|
+
super(...arguments), this.id = Yf++;
|
5241
5241
|
}
|
5242
5242
|
update() {
|
5243
5243
|
if (!this.node.presenceContext)
|
@@ -5257,12 +5257,12 @@ class Yf extends Wt {
|
|
5257
5257
|
unmount() {
|
5258
5258
|
}
|
5259
5259
|
}
|
5260
|
-
const
|
5260
|
+
const Zf = {
|
5261
5261
|
animation: {
|
5262
|
-
Feature:
|
5262
|
+
Feature: Kf
|
5263
5263
|
},
|
5264
5264
|
exit: {
|
5265
|
-
Feature:
|
5265
|
+
Feature: Xf
|
5266
5266
|
}
|
5267
5267
|
};
|
5268
5268
|
function je(t, e, n, r = { passive: !0 }) {
|
@@ -5276,9 +5276,9 @@ function Ge(t) {
|
|
5276
5276
|
}
|
5277
5277
|
};
|
5278
5278
|
}
|
5279
|
-
const
|
5279
|
+
const Jf = (t) => (e) => Ur(e) && t(e, Ge(e));
|
5280
5280
|
function ie(t, e, n, r) {
|
5281
|
-
return je(t, e,
|
5281
|
+
return je(t, e, Jf(n), r);
|
5282
5282
|
}
|
5283
5283
|
function ma({ top: t, left: e, right: n, bottom: r }) {
|
5284
5284
|
return {
|
@@ -5286,10 +5286,10 @@ function ma({ top: t, left: e, right: n, bottom: r }) {
|
|
5286
5286
|
y: { min: t, max: r }
|
5287
5287
|
};
|
5288
5288
|
}
|
5289
|
-
function
|
5289
|
+
function Qf({ x: t, y: e }) {
|
5290
5290
|
return { top: e.min, right: t.max, bottom: e.max, left: t.min };
|
5291
5291
|
}
|
5292
|
-
function
|
5292
|
+
function th(t, e) {
|
5293
5293
|
if (!e)
|
5294
5294
|
return t;
|
5295
5295
|
const n = e({ x: t.left, y: t.top }), r = e({ x: t.right, y: t.bottom });
|
@@ -5300,15 +5300,15 @@ function Qf(t, e) {
|
|
5300
5300
|
right: r.x
|
5301
5301
|
};
|
5302
5302
|
}
|
5303
|
-
const ga = 1e-4,
|
5303
|
+
const ga = 1e-4, eh = 1 - ga, nh = 1 + ga, ya = 0.01, rh = 0 - ya, ih = 0 + ya;
|
5304
5304
|
function it(t) {
|
5305
5305
|
return t.max - t.min;
|
5306
5306
|
}
|
5307
|
-
function
|
5307
|
+
function sh(t, e, n) {
|
5308
5308
|
return Math.abs(t - e) <= n;
|
5309
5309
|
}
|
5310
5310
|
function Xi(t, e, n, r = 0.5) {
|
5311
|
-
t.origin = r, t.originPoint = U(e.min, e.max, t.origin), t.scale = it(n) / it(e), t.translate = U(n.min, n.max, t.origin) - t.originPoint, (t.scale >=
|
5311
|
+
t.origin = r, t.originPoint = U(e.min, e.max, t.origin), t.scale = it(n) / it(e), t.translate = U(n.min, n.max, t.origin) - t.originPoint, (t.scale >= eh && t.scale <= nh || isNaN(t.scale)) && (t.scale = 1), (t.translate >= rh && t.translate <= ih || isNaN(t.translate)) && (t.translate = 0);
|
5312
5312
|
}
|
5313
5313
|
function Ee(t, e, n, r) {
|
5314
5314
|
Xi(t.x, e.x, n.x, r ? r.originX : void 0), Xi(t.y, e.y, n.y, r ? r.originY : void 0);
|
@@ -5316,7 +5316,7 @@ function Ee(t, e, n, r) {
|
|
5316
5316
|
function Zi(t, e, n) {
|
5317
5317
|
t.min = n.min + e.min, t.max = t.min + it(e);
|
5318
5318
|
}
|
5319
|
-
function
|
5319
|
+
function oh(t, e, n) {
|
5320
5320
|
Zi(t.x, e.x, n.x), Zi(t.y, e.y, n.y);
|
5321
5321
|
}
|
5322
5322
|
function Ji(t, e, n) {
|
@@ -5369,7 +5369,7 @@ function ba(t, { x: e, y: n }) {
|
|
5369
5369
|
pr(t.x, e.translate, e.scale, e.originPoint), pr(t.y, n.translate, n.scale, n.originPoint);
|
5370
5370
|
}
|
5371
5371
|
const rs = 0.999999999999, is = 1.0000000000001;
|
5372
|
-
function
|
5372
|
+
function ah(t, e, n, r = !1) {
|
5373
5373
|
const i = n.length;
|
5374
5374
|
if (!i)
|
5375
5375
|
return;
|
@@ -5396,14 +5396,14 @@ function ae(t, e) {
|
|
5396
5396
|
ss(t.x, e.x, e.scaleX, e.scale, e.originX), ss(t.y, e.y, e.scaleY, e.scale, e.originY);
|
5397
5397
|
}
|
5398
5398
|
function xa(t, e) {
|
5399
|
-
return ma(
|
5399
|
+
return ma(th(t.getBoundingClientRect(), e));
|
5400
5400
|
}
|
5401
|
-
function
|
5401
|
+
function lh(t, e, n) {
|
5402
5402
|
const r = xa(t, n), { scroll: i } = e;
|
5403
5403
|
return i && (oe(r.x, i.offset.x), oe(r.y, i.offset.y)), r;
|
5404
5404
|
}
|
5405
5405
|
const os = (t, e) => Math.abs(t - e);
|
5406
|
-
function
|
5406
|
+
function ch(t, e) {
|
5407
5407
|
const n = os(t.x, e.x), r = os(t.y, e.y);
|
5408
5408
|
return Math.sqrt(n ** 2 + r ** 2);
|
5409
5409
|
}
|
@@ -5412,7 +5412,7 @@ class wa {
|
|
5412
5412
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = () => {
|
5413
5413
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
5414
5414
|
return;
|
5415
|
-
const u = Wn(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, f =
|
5415
|
+
const u = Wn(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, f = ch(u.offset, { x: 0, y: 0 }) >= 3;
|
5416
5416
|
if (!d && !f)
|
5417
5417
|
return;
|
5418
5418
|
const { point: h } = u, { timestamp: p } = H;
|
@@ -5459,17 +5459,17 @@ function Wn({ point: t }, e) {
|
|
5459
5459
|
return {
|
5460
5460
|
point: t,
|
5461
5461
|
delta: as(t, Sa(e)),
|
5462
|
-
offset: as(t,
|
5463
|
-
velocity:
|
5462
|
+
offset: as(t, uh(e)),
|
5463
|
+
velocity: dh(e, 0.1)
|
5464
5464
|
};
|
5465
5465
|
}
|
5466
|
-
function
|
5466
|
+
function uh(t) {
|
5467
5467
|
return t[0];
|
5468
5468
|
}
|
5469
5469
|
function Sa(t) {
|
5470
5470
|
return t[t.length - 1];
|
5471
5471
|
}
|
5472
|
-
function
|
5472
|
+
function dh(t, e) {
|
5473
5473
|
if (t.length < 2)
|
5474
5474
|
return { x: 0, y: 0 };
|
5475
5475
|
let n = t.length - 1, r = null;
|
@@ -5487,7 +5487,7 @@ function uh(t, e) {
|
|
5487
5487
|
};
|
5488
5488
|
return o.x === 1 / 0 && (o.x = 0), o.y === 1 / 0 && (o.y = 0), o;
|
5489
5489
|
}
|
5490
|
-
function
|
5490
|
+
function fh(t, { min: e, max: n }, r) {
|
5491
5491
|
return e !== void 0 && t < e ? t = r ? U(e, t, r.min) : Math.max(t, e) : n !== void 0 && t > n && (t = r ? U(n, t, r.max) : Math.min(t, n)), t;
|
5492
5492
|
}
|
5493
5493
|
function ls(t, e, n) {
|
@@ -5496,7 +5496,7 @@ function ls(t, e, n) {
|
|
5496
5496
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
5497
5497
|
};
|
5498
5498
|
}
|
5499
|
-
function
|
5499
|
+
function hh(t, { top: e, left: n, bottom: r, right: i }) {
|
5500
5500
|
return {
|
5501
5501
|
x: ls(t.x, n, i),
|
5502
5502
|
y: ls(t.y, e, r)
|
@@ -5506,23 +5506,23 @@ function cs(t, e) {
|
|
5506
5506
|
let n = e.min - t.min, r = e.max - t.max;
|
5507
5507
|
return e.max - e.min < t.max - t.min && ([n, r] = [r, n]), { min: n, max: r };
|
5508
5508
|
}
|
5509
|
-
function
|
5509
|
+
function ph(t, e) {
|
5510
5510
|
return {
|
5511
5511
|
x: cs(t.x, e.x),
|
5512
5512
|
y: cs(t.y, e.y)
|
5513
5513
|
};
|
5514
5514
|
}
|
5515
|
-
function
|
5515
|
+
function mh(t, e) {
|
5516
5516
|
let n = 0.5;
|
5517
5517
|
const r = it(t), i = it(e);
|
5518
5518
|
return i > r ? n = /* @__PURE__ */ de(e.min, e.max - r, t.min) : r > i && (n = /* @__PURE__ */ de(t.min, t.max - i, e.min)), Lt(0, 1, n);
|
5519
5519
|
}
|
5520
|
-
function
|
5520
|
+
function gh(t, e) {
|
5521
5521
|
const n = {};
|
5522
5522
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
5523
5523
|
}
|
5524
5524
|
const mr = 0.35;
|
5525
|
-
function
|
5525
|
+
function yh(t = mr) {
|
5526
5526
|
return t === !1 ? t = 0 : t === !0 && (t = mr), {
|
5527
5527
|
x: us(t, "left", "right"),
|
5528
5528
|
y: us(t, "top", "bottom")
|
@@ -5537,8 +5537,8 @@ function us(t, e, n) {
|
|
5537
5537
|
function ds(t, e) {
|
5538
5538
|
return typeof t == "number" ? t : t[e] || 0;
|
5539
5539
|
}
|
5540
|
-
const
|
5541
|
-
class
|
5540
|
+
const vh = /* @__PURE__ */ new WeakMap();
|
5541
|
+
class bh {
|
5542
5542
|
constructor(e) {
|
5543
5543
|
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = W(), this.visualElement = e;
|
5544
5544
|
}
|
@@ -5551,7 +5551,7 @@ class vh {
|
|
5551
5551
|
d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ge(u).point);
|
5552
5552
|
}, s = (u, d) => {
|
5553
5553
|
const { drag: f, dragPropagation: h, onDragStart: p } = this.getProps();
|
5554
|
-
if (f && !h && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
5554
|
+
if (f && !h && (this.openDragLock && this.openDragLock(), this.openDragLock = fd(f), !this.openDragLock))
|
5555
5555
|
return;
|
5556
5556
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), gt((x) => {
|
5557
5557
|
let v = this.getAxisMotionValue(x).get() || 0;
|
@@ -5572,7 +5572,7 @@ class vh {
|
|
5572
5572
|
return;
|
5573
5573
|
const { offset: x } = d;
|
5574
5574
|
if (h && this.currentDirection === null) {
|
5575
|
-
this.currentDirection =
|
5575
|
+
this.currentDirection = xh(x), this.currentDirection !== null && p && p(this.currentDirection);
|
5576
5576
|
return;
|
5577
5577
|
}
|
5578
5578
|
this.updateAxis("x", d.point, x), this.updateAxis("y", d.point, x), this.visualElement.render(), g && g(u, d);
|
@@ -5613,13 +5613,13 @@ class vh {
|
|
5613
5613
|
return;
|
5614
5614
|
const s = this.getAxisMotionValue(e);
|
5615
5615
|
let o = this.originPoint[e] + r[e];
|
5616
|
-
this.constraints && this.constraints[e] && (o =
|
5616
|
+
this.constraints && this.constraints[e] && (o = fh(o, this.constraints[e], this.elastic[e])), s.set(o);
|
5617
5617
|
}
|
5618
5618
|
resolveConstraints() {
|
5619
5619
|
var e;
|
5620
5620
|
const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, s = this.constraints;
|
5621
|
-
n && ne(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints =
|
5622
|
-
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] =
|
5621
|
+
n && ne(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = hh(i.layoutBox, n) : this.constraints = !1, this.elastic = yh(r), s !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && gt((o) => {
|
5622
|
+
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = gh(i.layoutBox[o], this.constraints[o]));
|
5623
5623
|
});
|
5624
5624
|
}
|
5625
5625
|
resolveRefConstraints() {
|
@@ -5631,10 +5631,10 @@ class vh {
|
|
5631
5631
|
const { projection: i } = this.visualElement;
|
5632
5632
|
if (!i || !i.layout)
|
5633
5633
|
return !1;
|
5634
|
-
const s =
|
5635
|
-
let o =
|
5634
|
+
const s = lh(r, i.root, this.visualElement.getTransformPagePoint());
|
5635
|
+
let o = ph(i.layout.layoutBox, s);
|
5636
5636
|
if (n) {
|
5637
|
-
const a = n(
|
5637
|
+
const a = n(Qf(o));
|
5638
5638
|
this.hasMutatedConstraints = !!a, a && (o = ma(a));
|
5639
5639
|
}
|
5640
5640
|
return o;
|
@@ -5716,7 +5716,7 @@ class vh {
|
|
5716
5716
|
const a = this.getAxisMotionValue(o);
|
5717
5717
|
if (a && this.constraints !== !1) {
|
5718
5718
|
const l = a.get();
|
5719
|
-
i[o] =
|
5719
|
+
i[o] = mh({ min: l, max: l }, this.constraints[o]);
|
5720
5720
|
}
|
5721
5721
|
});
|
5722
5722
|
const { transformTemplate: s } = this.visualElement.getProps();
|
@@ -5730,7 +5730,7 @@ class vh {
|
|
5730
5730
|
addListeners() {
|
5731
5731
|
if (!this.visualElement.current)
|
5732
5732
|
return;
|
5733
|
-
|
5733
|
+
vh.set(this.visualElement, this);
|
5734
5734
|
const e = this.visualElement.current, n = ie(e, "pointerdown", (l) => {
|
5735
5735
|
const { drag: c, dragListener: u = !0 } = this.getProps();
|
5736
5736
|
c && u && this.start(l);
|
@@ -5765,13 +5765,13 @@ class vh {
|
|
5765
5765
|
function Je(t, e, n) {
|
5766
5766
|
return (e === !0 || e === t) && (n === null || n === t);
|
5767
5767
|
}
|
5768
|
-
function
|
5768
|
+
function xh(t, e = 10) {
|
5769
5769
|
let n = null;
|
5770
5770
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
5771
5771
|
}
|
5772
|
-
class
|
5772
|
+
class wh extends Wt {
|
5773
5773
|
constructor(e) {
|
5774
|
-
super(e), this.removeGroupControls = ct, this.removeListeners = ct, this.controls = new
|
5774
|
+
super(e), this.removeGroupControls = ct, this.removeListeners = ct, this.controls = new bh(e);
|
5775
5775
|
}
|
5776
5776
|
mount() {
|
5777
5777
|
const { dragControls: e } = this.node.getProps();
|
@@ -5784,7 +5784,7 @@ class xh extends Wt {
|
|
5784
5784
|
const fs = (t) => (e, n) => {
|
5785
5785
|
t && N.postRender(() => t(e, n));
|
5786
5786
|
};
|
5787
|
-
class
|
5787
|
+
class Sh extends Wt {
|
5788
5788
|
constructor() {
|
5789
5789
|
super(...arguments), this.removePointerDownListener = ct;
|
5790
5790
|
}
|
@@ -5841,7 +5841,7 @@ const Se = {
|
|
5841
5841
|
const n = hs(t, e.target.x), r = hs(t, e.target.y);
|
5842
5842
|
return `${n}% ${r}%`;
|
5843
5843
|
}
|
5844
|
-
},
|
5844
|
+
}, Th = {
|
5845
5845
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
5846
5846
|
const r = t, i = zt.parse(t);
|
5847
5847
|
if (i.length > 5)
|
@@ -5852,7 +5852,7 @@ const Se = {
|
|
5852
5852
|
return typeof i[2 + o] == "number" && (i[2 + o] /= c), typeof i[3 + o] == "number" && (i[3 + o] /= c), s(i);
|
5853
5853
|
}
|
5854
5854
|
};
|
5855
|
-
class
|
5855
|
+
class Ch extends Ja {
|
5856
5856
|
/**
|
5857
5857
|
* This only mounts projection nodes for components that
|
5858
5858
|
* need measuring, we might want to do it for all components
|
@@ -5860,7 +5860,7 @@ class Th extends Ja {
|
|
5860
5860
|
*/
|
5861
5861
|
componentDidMount() {
|
5862
5862
|
const { visualElement: e, layoutGroup: n, switchLayoutGroup: r, layoutId: i } = this.props, { projection: s } = e;
|
5863
|
-
|
5863
|
+
Mu(Ph), s && (n.group && n.group.add(s), r && r.register && i && r.register(s), s.root.didUpdate(), s.addEventListener("animationComplete", () => {
|
5864
5864
|
this.safeToRemove();
|
5865
5865
|
}), s.setOptions({
|
5866
5866
|
...s.options,
|
@@ -5893,10 +5893,10 @@ class Th extends Ja {
|
|
5893
5893
|
}
|
5894
5894
|
}
|
5895
5895
|
function Ta(t) {
|
5896
|
-
const [e, n] =
|
5897
|
-
return Bs(
|
5896
|
+
const [e, n] = lu(), r = rt(no);
|
5897
|
+
return Bs(Ch, { ...t, layoutGroup: r, switchLayoutGroup: rt(fo), isPresent: e, safeToRemove: n });
|
5898
5898
|
}
|
5899
|
-
const
|
5899
|
+
const Ph = {
|
5900
5900
|
borderRadius: {
|
5901
5901
|
...Se,
|
5902
5902
|
applyTo: [
|
@@ -5910,17 +5910,17 @@ const Ch = {
|
|
5910
5910
|
borderTopRightRadius: Se,
|
5911
5911
|
borderBottomLeftRadius: Se,
|
5912
5912
|
borderBottomRightRadius: Se,
|
5913
|
-
boxShadow:
|
5913
|
+
boxShadow: Th
|
5914
5914
|
};
|
5915
|
-
function
|
5915
|
+
function Ah(t, e, n) {
|
5916
5916
|
const r = J(t) ? t : Ie(t);
|
5917
5917
|
return r.start(ei("", r, e, n)), r.animation;
|
5918
5918
|
}
|
5919
|
-
function
|
5919
|
+
function Vh(t) {
|
5920
5920
|
return t instanceof SVGElement && t.tagName !== "svg";
|
5921
5921
|
}
|
5922
|
-
const
|
5923
|
-
class
|
5922
|
+
const Rh = (t, e) => t.depth - e.depth;
|
5923
|
+
class Eh {
|
5924
5924
|
constructor() {
|
5925
5925
|
this.children = [], this.isDirty = !1;
|
5926
5926
|
}
|
@@ -5931,25 +5931,25 @@ class Rh {
|
|
5931
5931
|
Wr(this.children, e), this.isDirty = !0;
|
5932
5932
|
}
|
5933
5933
|
forEach(e) {
|
5934
|
-
this.isDirty && this.children.sort(
|
5934
|
+
this.isDirty && this.children.sort(Rh), this.isDirty = !1, this.children.forEach(e);
|
5935
5935
|
}
|
5936
5936
|
}
|
5937
|
-
function
|
5937
|
+
function Mh(t, e) {
|
5938
5938
|
const n = Et.now(), r = ({ timestamp: i }) => {
|
5939
5939
|
const s = i - n;
|
5940
5940
|
s >= e && (Ut(r), t(s - e));
|
5941
5941
|
};
|
5942
5942
|
return N.read(r, !0), () => Ut(r);
|
5943
5943
|
}
|
5944
|
-
const Ca = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"],
|
5945
|
-
function
|
5944
|
+
const Ca = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], kh = Ca.length, ps = (t) => typeof t == "string" ? parseFloat(t) : t, ms = (t) => typeof t == "number" || M.test(t);
|
5945
|
+
function Dh(t, e, n, r, i, s) {
|
5946
5946
|
i ? (t.opacity = U(
|
5947
5947
|
0,
|
5948
5948
|
// TODO Reinstate this if only child
|
5949
5949
|
n.opacity !== void 0 ? n.opacity : 1,
|
5950
|
-
|
5951
|
-
), t.opacityExit = U(e.opacity !== void 0 ? e.opacity : 1, 0,
|
5952
|
-
for (let o = 0; o <
|
5950
|
+
_h(r)
|
5951
|
+
), t.opacityExit = U(e.opacity !== void 0 ? e.opacity : 1, 0, Lh(r))) : s && (t.opacity = U(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
|
5952
|
+
for (let o = 0; o < kh; o++) {
|
5953
5953
|
const a = `border${Ca[o]}Radius`;
|
5954
5954
|
let l = gs(e, a), c = gs(n, a);
|
5955
5955
|
if (l === void 0 && c === void 0)
|
@@ -5961,7 +5961,7 @@ function kh(t, e, n, r, i, s) {
|
|
5961
5961
|
function gs(t, e) {
|
5962
5962
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
5963
5963
|
}
|
5964
|
-
const
|
5964
|
+
const _h = /* @__PURE__ */ Pa(0, 0.5, Uo), Lh = /* @__PURE__ */ Pa(0.5, 0.95, ct);
|
5965
5965
|
function Pa(t, e, n) {
|
5966
5966
|
return (r) => r < t ? 0 : r > e ? 1 : n(/* @__PURE__ */ de(t, e, r));
|
5967
5967
|
}
|
@@ -5977,18 +5977,18 @@ function vs(t, e) {
|
|
5977
5977
|
function bs(t, e, n, r, i) {
|
5978
5978
|
return t -= e, t = bn(t, 1 / n, r), i !== void 0 && (t = bn(t, 1 / i, r)), t;
|
5979
5979
|
}
|
5980
|
-
function
|
5980
|
+
function $h(t, e = 0, n = 1, r = 0.5, i, s = t, o = t) {
|
5981
5981
|
if (Rt.test(e) && (e = parseFloat(e), e = U(o.min, o.max, e / 100) - o.min), typeof e != "number")
|
5982
5982
|
return;
|
5983
5983
|
let a = U(s.min, s.max, r);
|
5984
5984
|
t === s && (a -= e), t.min = bs(t.min, e, n, a, i), t.max = bs(t.max, e, n, a, i);
|
5985
5985
|
}
|
5986
5986
|
function xs(t, e, [n, r, i], s, o) {
|
5987
|
-
|
5987
|
+
$h(t, e[n], e[r], e[i], e.scale, s, o);
|
5988
5988
|
}
|
5989
|
-
const
|
5989
|
+
const Oh = ["x", "scaleX", "originX"], Fh = ["y", "scaleY", "originY"];
|
5990
5990
|
function ws(t, e, n, r) {
|
5991
|
-
xs(t.x, e,
|
5991
|
+
xs(t.x, e, Oh, n ? n.x : void 0, r ? r.x : void 0), xs(t.y, e, Fh, n ? n.y : void 0, r ? r.y : void 0);
|
5992
5992
|
}
|
5993
5993
|
function Ss(t) {
|
5994
5994
|
return t.translate === 0 && t.scale === 1;
|
@@ -5999,7 +5999,7 @@ function Aa(t) {
|
|
5999
5999
|
function Ts(t, e) {
|
6000
6000
|
return t.min === e.min && t.max === e.max;
|
6001
6001
|
}
|
6002
|
-
function
|
6002
|
+
function Bh(t, e) {
|
6003
6003
|
return Ts(t.x, e.x) && Ts(t.y, e.y);
|
6004
6004
|
}
|
6005
6005
|
function Cs(t, e) {
|
@@ -6014,7 +6014,7 @@ function Ps(t) {
|
|
6014
6014
|
function As(t, e) {
|
6015
6015
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
6016
6016
|
}
|
6017
|
-
class
|
6017
|
+
class Ih {
|
6018
6018
|
constructor() {
|
6019
6019
|
this.members = [];
|
6020
6020
|
}
|
@@ -6068,7 +6068,7 @@ class Bh {
|
|
6068
6068
|
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
6069
6069
|
}
|
6070
6070
|
}
|
6071
|
-
function
|
6071
|
+
function Nh(t, e, n) {
|
6072
6072
|
let r = "";
|
6073
6073
|
const i = t.x.translate / e.x, s = t.y.translate / e.y, o = (n == null ? void 0 : n.z) || 0;
|
6074
6074
|
if ((i || s || o) && (r = `translate3d(${i}px, ${s}px, ${o}px) `), (e.x !== 1 || e.y !== 1) && (r += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
|
@@ -6078,8 +6078,8 @@ function Ih(t, e, n) {
|
|
6078
6078
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
6079
6079
|
return (a !== 1 || l !== 1) && (r += `scale(${a}, ${l})`), r || "none";
|
6080
6080
|
}
|
6081
|
-
const qn = ["", "X", "Y", "Z"],
|
6082
|
-
let
|
6081
|
+
const qn = ["", "X", "Y", "Z"], jh = { visibility: "hidden" }, Vs = 1e3;
|
6082
|
+
let Uh = 0;
|
6083
6083
|
function Gn(t, e, n, r) {
|
6084
6084
|
const { latestValues: i } = e;
|
6085
6085
|
i[t] && (n[t] = i[t], e.setStaticValue(t, 0), r && (r[t] = 0));
|
@@ -6101,14 +6101,14 @@ function Ra(t) {
|
|
6101
6101
|
function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
|
6102
6102
|
return class {
|
6103
6103
|
constructor(o = {}, a = e == null ? void 0 : e()) {
|
6104
|
-
this.id =
|
6104
|
+
this.id = Uh++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
6105
6105
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
6106
6106
|
}, this.updateProjection = () => {
|
6107
|
-
this.projectionUpdateScheduled = !1, this.nodes.forEach(
|
6107
|
+
this.projectionUpdateScheduled = !1, this.nodes.forEach(qh), this.nodes.forEach(Xh), this.nodes.forEach(Zh), this.nodes.forEach(Gh);
|
6108
6108
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = o, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
6109
6109
|
for (let l = 0; l < this.path.length; l++)
|
6110
6110
|
this.path[l].shouldResetTransform = !0;
|
6111
|
-
this.root === this && (this.nodes = new
|
6111
|
+
this.root === this && (this.nodes = new Eh());
|
6112
6112
|
}
|
6113
6113
|
addEventListener(o, a) {
|
6114
6114
|
return this.eventHandlers.has(o) || this.eventHandlers.set(o, new qr()), this.eventHandlers.get(o).add(a);
|
@@ -6126,13 +6126,13 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6126
6126
|
mount(o, a = this.root.hasTreeAnimated) {
|
6127
6127
|
if (this.instance)
|
6128
6128
|
return;
|
6129
|
-
this.isSVG =
|
6129
|
+
this.isSVG = Vh(o), this.instance = o;
|
6130
6130
|
const { layoutId: l, layout: c, visualElement: u } = this.options;
|
6131
6131
|
if (u && !u.current && u.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), t) {
|
6132
6132
|
let d;
|
6133
6133
|
const f = () => this.root.updateBlockedByResize = !1;
|
6134
6134
|
t(o, () => {
|
6135
|
-
this.root.updateBlockedByResize = !0, d && d(), d =
|
6135
|
+
this.root.updateBlockedByResize = !0, d && d(), d = Mh(f, 250), cn.hasAnimatedSinceResize && (cn.hasAnimatedSinceResize = !1, this.nodes.forEach(Es));
|
6136
6136
|
});
|
6137
6137
|
}
|
6138
6138
|
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: f, hasRelativeLayoutChanged: h, layout: p }) => {
|
@@ -6140,7 +6140,7 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6140
6140
|
this.target = void 0, this.relativeTarget = void 0;
|
6141
6141
|
return;
|
6142
6142
|
}
|
6143
|
-
const g = this.options.transition || u.getDefaultTransition() ||
|
6143
|
+
const g = this.options.transition || u.getDefaultTransition() || np, { onLayoutAnimationStart: x, onLayoutAnimationComplete: v } = u.getProps(), w = !this.targetLayout || !Va(this.targetLayout, p), S = !f && h;
|
6144
6144
|
if (this.options.layoutRoot || this.resumeFrom || S || f && (w || !this.currentAnimation)) {
|
6145
6145
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, S);
|
6146
6146
|
const P = {
|
@@ -6174,7 +6174,7 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6174
6174
|
}
|
6175
6175
|
// Note: currently only running on root node
|
6176
6176
|
startUpdate() {
|
6177
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
6177
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Jh), this.animationId++);
|
6178
6178
|
}
|
6179
6179
|
getTransformTemplate() {
|
6180
6180
|
const { visualElement: o } = this.options;
|
@@ -6203,7 +6203,7 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6203
6203
|
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Rs);
|
6204
6204
|
return;
|
6205
6205
|
}
|
6206
|
-
this.isUpdating || this.nodes.forEach(
|
6206
|
+
this.isUpdating || this.nodes.forEach(Kh), this.isUpdating = !1, this.nodes.forEach(Yh), this.nodes.forEach(zh), this.nodes.forEach(Wh), this.clearAllSnapshots();
|
6207
6207
|
const a = Et.now();
|
6208
6208
|
H.delta = Lt(0, 1e3 / 60, a - H.timestamp), H.timestamp = a, H.isProcessing = !0, Fn.update.process(H), Fn.preRender.process(H), Fn.render.process(H), H.isProcessing = !1;
|
6209
6209
|
}
|
@@ -6211,7 +6211,7 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6211
6211
|
this.updateScheduled || (this.updateScheduled = !0, Rr.read(this.scheduleUpdate));
|
6212
6212
|
}
|
6213
6213
|
clearAllSnapshots() {
|
6214
|
-
this.nodes.forEach(
|
6214
|
+
this.nodes.forEach(Hh), this.sharedNodes.forEach(Qh);
|
6215
6215
|
}
|
6216
6216
|
scheduleUpdateProjection() {
|
6217
6217
|
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, N.preRender(this.updateProjection, !1, !0));
|
@@ -6260,7 +6260,7 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6260
6260
|
measure(o = !0) {
|
6261
6261
|
const a = this.measurePageBox();
|
6262
6262
|
let l = this.removeElementScroll(a);
|
6263
|
-
return o && (l = this.removeTransform(l)),
|
6263
|
+
return o && (l = this.removeTransform(l)), rp(l), {
|
6264
6264
|
animationId: this.root.animationId,
|
6265
6265
|
measuredBox: a,
|
6266
6266
|
layoutBox: l,
|
@@ -6274,7 +6274,7 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6274
6274
|
if (!a)
|
6275
6275
|
return W();
|
6276
6276
|
const l = a.measureViewportBox();
|
6277
|
-
if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(
|
6277
|
+
if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(ip))) {
|
6278
6278
|
const { scroll: u } = this.root;
|
6279
6279
|
u && (oe(l.x, u.offset.x), oe(l.y, u.offset.y));
|
6280
6280
|
}
|
@@ -6345,7 +6345,7 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6345
6345
|
const h = this.getClosestProjectingParent();
|
6346
6346
|
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = W(), this.relativeTargetOrigin = W(), Me(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), mt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
6347
6347
|
}
|
6348
|
-
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = W(), this.targetWithTransforms = W()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(),
|
6348
|
+
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = W(), this.targetWithTransforms = W()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), oh(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : mt(this.target, this.layout.layoutBox), ba(this.target, this.targetDelta)) : mt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
|
6349
6349
|
this.attemptToResolveRelativeTarget = !1;
|
6350
6350
|
const h = this.getClosestProjectingParent();
|
6351
6351
|
h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = W(), this.relativeTargetOrigin = W(), Me(this.relativeTargetOrigin, this.target, h.target), mt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
@@ -6370,7 +6370,7 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6370
6370
|
return;
|
6371
6371
|
mt(this.layoutCorrected, this.layout.layoutBox);
|
6372
6372
|
const f = this.treeScale.x, h = this.treeScale.y;
|
6373
|
-
|
6373
|
+
ah(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = W());
|
6374
6374
|
const { target: p } = a;
|
6375
6375
|
if (!p) {
|
6376
6376
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
@@ -6398,17 +6398,17 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6398
6398
|
setAnimationOrigin(o, a = !1) {
|
6399
6399
|
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = se();
|
6400
6400
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
6401
|
-
const f = W(), h = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, g = h !== p, x = this.getStack(), v = !x || x.members.length <= 1, w = !!(g && !v && this.options.crossfade === !0 && !this.path.some(
|
6401
|
+
const f = W(), h = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, g = h !== p, x = this.getStack(), v = !x || x.members.length <= 1, w = !!(g && !v && this.options.crossfade === !0 && !this.path.some(ep));
|
6402
6402
|
this.animationProgress = 0;
|
6403
6403
|
let S;
|
6404
6404
|
this.mixTargetDelta = (P) => {
|
6405
6405
|
const m = P / 1e3;
|
6406
|
-
Ms(d.x, o.x, m), Ms(d.y, o.y, m), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Me(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox),
|
6406
|
+
Ms(d.x, o.x, m), Ms(d.y, o.y, m), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Me(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), tp(this.relativeTarget, this.relativeTargetOrigin, f, m), S && Bh(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = W()), mt(S, this.relativeTarget)), g && (this.animationValues = u, Dh(u, c, this.latestValues, m, w, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = m;
|
6407
6407
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
6408
6408
|
}
|
6409
6409
|
startAnimation(o) {
|
6410
6410
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Ut(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = N.update(() => {
|
6411
|
-
cn.hasAnimatedSinceResize = !0, this.currentAnimation =
|
6411
|
+
cn.hasAnimatedSinceResize = !0, this.currentAnimation = Ah(0, Vs, {
|
6412
6412
|
...o,
|
6413
6413
|
onUpdate: (a) => {
|
6414
6414
|
this.mixTargetDelta(a), o.onUpdate && o.onUpdate(a);
|
@@ -6444,7 +6444,7 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6444
6444
|
}
|
6445
6445
|
}
|
6446
6446
|
registerSharedNode(o, a) {
|
6447
|
-
this.sharedNodes.has(o) || this.sharedNodes.set(o, new
|
6447
|
+
this.sharedNodes.has(o) || this.sharedNodes.set(o, new Ih()), this.sharedNodes.get(o).add(a);
|
6448
6448
|
const c = a.options.initialPromotionConfig;
|
6449
6449
|
a.promote({
|
6450
6450
|
transition: c ? c.transition : void 0,
|
@@ -6500,7 +6500,7 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6500
6500
|
if (!this.instance || this.isSVG)
|
6501
6501
|
return;
|
6502
6502
|
if (!this.isVisible)
|
6503
|
-
return
|
6503
|
+
return jh;
|
6504
6504
|
const c = {
|
6505
6505
|
visibility: ""
|
6506
6506
|
}, u = this.getTransformTemplate();
|
@@ -6512,7 +6512,7 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6512
6512
|
return this.options.layoutId && (g.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, g.pointerEvents = an(o == null ? void 0 : o.pointerEvents) || ""), this.hasProjected && !Yt(this.latestValues) && (g.transform = u ? u({}, "") : "none", this.hasProjected = !1), g;
|
6513
6513
|
}
|
6514
6514
|
const f = d.animationValues || d.latestValues;
|
6515
|
-
this.applyTransformsToTarget(), c.transform =
|
6515
|
+
this.applyTransformsToTarget(), c.transform = Nh(this.projectionDeltaWithTransform, this.treeScale, f), u && (c.transform = u(f, c.transform));
|
6516
6516
|
const { x: h, y: p } = this.projectionDelta;
|
6517
6517
|
c.transformOrigin = `${h.origin * 100}% ${p.origin * 100}% 0`, d.animationValues ? c.opacity = d === this ? (l = (a = f.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : f.opacityExit : c.opacity = d === this ? f.opacity !== void 0 ? f.opacity : "" : f.opacityExit !== void 0 ? f.opacityExit : 0;
|
6518
6518
|
for (const g in Oe) {
|
@@ -6540,10 +6540,10 @@ function Ea({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
6540
6540
|
}
|
6541
6541
|
};
|
6542
6542
|
}
|
6543
|
-
function
|
6543
|
+
function zh(t) {
|
6544
6544
|
t.updateLayout();
|
6545
6545
|
}
|
6546
|
-
function
|
6546
|
+
function Wh(t) {
|
6547
6547
|
var e;
|
6548
6548
|
const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
|
6549
6549
|
if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
|
@@ -6587,38 +6587,38 @@ function zh(t) {
|
|
6587
6587
|
}
|
6588
6588
|
t.options.transition = void 0;
|
6589
6589
|
}
|
6590
|
-
function
|
6590
|
+
function qh(t) {
|
6591
6591
|
t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
|
6592
6592
|
}
|
6593
|
-
function
|
6593
|
+
function Gh(t) {
|
6594
6594
|
t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
|
6595
6595
|
}
|
6596
|
-
function
|
6596
|
+
function Hh(t) {
|
6597
6597
|
t.clearSnapshot();
|
6598
6598
|
}
|
6599
6599
|
function Rs(t) {
|
6600
6600
|
t.clearMeasurements();
|
6601
6601
|
}
|
6602
|
-
function
|
6602
|
+
function Kh(t) {
|
6603
6603
|
t.isLayoutDirty = !1;
|
6604
6604
|
}
|
6605
|
-
function
|
6605
|
+
function Yh(t) {
|
6606
6606
|
const { visualElement: e } = t.options;
|
6607
6607
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
6608
6608
|
}
|
6609
6609
|
function Es(t) {
|
6610
6610
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
6611
6611
|
}
|
6612
|
-
function
|
6612
|
+
function Xh(t) {
|
6613
6613
|
t.resolveTargetDelta();
|
6614
6614
|
}
|
6615
|
-
function
|
6615
|
+
function Zh(t) {
|
6616
6616
|
t.calcProjection();
|
6617
6617
|
}
|
6618
|
-
function
|
6618
|
+
function Jh(t) {
|
6619
6619
|
t.resetSkewAndRotation();
|
6620
6620
|
}
|
6621
|
-
function
|
6621
|
+
function Qh(t) {
|
6622
6622
|
t.removeLeadSnapshot();
|
6623
6623
|
}
|
6624
6624
|
function Ms(t, e, n) {
|
@@ -6627,30 +6627,30 @@ function Ms(t, e, n) {
|
|
6627
6627
|
function ks(t, e, n, r) {
|
6628
6628
|
t.min = U(e.min, n.min, r), t.max = U(e.max, n.max, r);
|
6629
6629
|
}
|
6630
|
-
function
|
6630
|
+
function tp(t, e, n, r) {
|
6631
6631
|
ks(t.x, e.x, n.x, r), ks(t.y, e.y, n.y, r);
|
6632
6632
|
}
|
6633
|
-
function
|
6633
|
+
function ep(t) {
|
6634
6634
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
6635
6635
|
}
|
6636
|
-
const
|
6636
|
+
const np = {
|
6637
6637
|
duration: 0.45,
|
6638
6638
|
ease: [0.4, 0, 0.1, 1]
|
6639
6639
|
}, Ds = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), _s = Ds("applewebkit/") && !Ds("chrome/") ? Math.round : ct;
|
6640
6640
|
function Ls(t) {
|
6641
6641
|
t.min = _s(t.min), t.max = _s(t.max);
|
6642
6642
|
}
|
6643
|
-
function
|
6643
|
+
function rp(t) {
|
6644
6644
|
Ls(t.x), Ls(t.y);
|
6645
6645
|
}
|
6646
6646
|
function Ma(t, e, n) {
|
6647
|
-
return t === "position" || t === "preserve-aspect" && !
|
6647
|
+
return t === "position" || t === "preserve-aspect" && !sh(Ps(e), Ps(n), 0.2);
|
6648
6648
|
}
|
6649
|
-
function
|
6649
|
+
function ip(t) {
|
6650
6650
|
var e;
|
6651
6651
|
return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
|
6652
6652
|
}
|
6653
|
-
const
|
6653
|
+
const sp = Ea({
|
6654
6654
|
attachResizeListener: (t, e) => je(t, "resize", e),
|
6655
6655
|
measureScroll: () => ({
|
6656
6656
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
@@ -6666,7 +6666,7 @@ const ip = Ea({
|
|
6666
6666
|
}),
|
6667
6667
|
defaultParent: () => {
|
6668
6668
|
if (!Hn.current) {
|
6669
|
-
const t = new
|
6669
|
+
const t = new sp({});
|
6670
6670
|
t.mount(window), t.setOptions({ layoutScroll: !0 }), Hn.current = t;
|
6671
6671
|
}
|
6672
6672
|
return Hn.current;
|
@@ -6675,12 +6675,12 @@ const ip = Ea({
|
|
6675
6675
|
t.style.transform = e !== void 0 ? e : "none";
|
6676
6676
|
},
|
6677
6677
|
checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
|
6678
|
-
}),
|
6678
|
+
}), op = {
|
6679
6679
|
pan: {
|
6680
|
-
Feature:
|
6680
|
+
Feature: Sh
|
6681
6681
|
},
|
6682
6682
|
drag: {
|
6683
|
-
Feature:
|
6683
|
+
Feature: wh,
|
6684
6684
|
ProjectionNode: ka,
|
6685
6685
|
MeasureLayout: Ta
|
6686
6686
|
}
|
@@ -6691,15 +6691,15 @@ function $s(t, e, n) {
|
|
6691
6691
|
const i = "onHover" + n, s = r[i];
|
6692
6692
|
s && N.postRender(() => s(e, Ge(e)));
|
6693
6693
|
}
|
6694
|
-
class
|
6694
|
+
class ap extends Wt {
|
6695
6695
|
mount() {
|
6696
6696
|
const { current: e } = this.node;
|
6697
|
-
e && (this.unmount =
|
6697
|
+
e && (this.unmount = od(e, (n, r) => ($s(this.node, r, "Start"), (i) => $s(this.node, i, "End"))));
|
6698
6698
|
}
|
6699
6699
|
unmount() {
|
6700
6700
|
}
|
6701
6701
|
}
|
6702
|
-
class
|
6702
|
+
class lp extends Wt {
|
6703
6703
|
constructor() {
|
6704
6704
|
super(...arguments), this.isActive = !1;
|
6705
6705
|
}
|
@@ -6729,37 +6729,37 @@ function Os(t, e, n) {
|
|
6729
6729
|
const i = "onTap" + (n === "End" ? "" : n), s = r[i];
|
6730
6730
|
s && N.postRender(() => s(e, Ge(e)));
|
6731
6731
|
}
|
6732
|
-
class
|
6732
|
+
class cp extends Wt {
|
6733
6733
|
mount() {
|
6734
6734
|
const { current: e } = this.node;
|
6735
|
-
e && (this.unmount =
|
6735
|
+
e && (this.unmount = ud(e, (n, r) => (Os(this.node, r, "Start"), (i, { success: s }) => Os(this.node, i, s ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
6736
6736
|
}
|
6737
6737
|
unmount() {
|
6738
6738
|
}
|
6739
6739
|
}
|
6740
|
-
const gr = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(),
|
6740
|
+
const gr = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(), up = (t) => {
|
6741
6741
|
const e = gr.get(t.target);
|
6742
6742
|
e && e(t);
|
6743
|
-
},
|
6744
|
-
t.forEach(
|
6743
|
+
}, dp = (t) => {
|
6744
|
+
t.forEach(up);
|
6745
6745
|
};
|
6746
|
-
function
|
6746
|
+
function fp({ root: t, ...e }) {
|
6747
6747
|
const n = t || document;
|
6748
6748
|
Kn.has(n) || Kn.set(n, {});
|
6749
6749
|
const r = Kn.get(n), i = JSON.stringify(e);
|
6750
|
-
return r[i] || (r[i] = new IntersectionObserver(
|
6750
|
+
return r[i] || (r[i] = new IntersectionObserver(dp, { root: t, ...e })), r[i];
|
6751
6751
|
}
|
6752
|
-
function
|
6753
|
-
const r =
|
6752
|
+
function hp(t, e, n) {
|
6753
|
+
const r = fp(e);
|
6754
6754
|
return gr.set(t, n), r.observe(t), () => {
|
6755
6755
|
gr.delete(t), r.unobserve(t);
|
6756
6756
|
};
|
6757
6757
|
}
|
6758
|
-
const
|
6758
|
+
const pp = {
|
6759
6759
|
some: 0,
|
6760
6760
|
all: 1
|
6761
6761
|
};
|
6762
|
-
class
|
6762
|
+
class mp extends Wt {
|
6763
6763
|
constructor() {
|
6764
6764
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
6765
6765
|
}
|
@@ -6768,7 +6768,7 @@ class pp extends Wt {
|
|
6768
6768
|
const { viewport: e = {} } = this.node.getProps(), { root: n, margin: r, amount: i = "some", once: s } = e, o = {
|
6769
6769
|
root: n ? n.current : void 0,
|
6770
6770
|
rootMargin: r,
|
6771
|
-
threshold: typeof i == "number" ? i :
|
6771
|
+
threshold: typeof i == "number" ? i : pp[i]
|
6772
6772
|
}, a = (l) => {
|
6773
6773
|
const { isIntersecting: c } = l;
|
6774
6774
|
if (this.isInView === c || (this.isInView = c, s && !c && this.hasEnteredView))
|
@@ -6777,7 +6777,7 @@ class pp extends Wt {
|
|
6777
6777
|
const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), f = c ? u : d;
|
6778
6778
|
f && f(l);
|
6779
6779
|
};
|
6780
|
-
return
|
6780
|
+
return hp(this.node.current, o, a);
|
6781
6781
|
}
|
6782
6782
|
mount() {
|
6783
6783
|
this.startObserver();
|
@@ -6786,34 +6786,34 @@ class pp extends Wt {
|
|
6786
6786
|
if (typeof IntersectionObserver > "u")
|
6787
6787
|
return;
|
6788
6788
|
const { props: e, prevProps: n } = this.node;
|
6789
|
-
["amount", "margin", "root"].some(
|
6789
|
+
["amount", "margin", "root"].some(gp(e, n)) && this.startObserver();
|
6790
6790
|
}
|
6791
6791
|
unmount() {
|
6792
6792
|
}
|
6793
6793
|
}
|
6794
|
-
function
|
6794
|
+
function gp({ viewport: t = {} }, { viewport: e = {} } = {}) {
|
6795
6795
|
return (n) => t[n] !== e[n];
|
6796
6796
|
}
|
6797
|
-
const
|
6797
|
+
const yp = {
|
6798
6798
|
inView: {
|
6799
|
-
Feature:
|
6799
|
+
Feature: mp
|
6800
6800
|
},
|
6801
6801
|
tap: {
|
6802
|
-
Feature:
|
6802
|
+
Feature: cp
|
6803
6803
|
},
|
6804
6804
|
focus: {
|
6805
|
-
Feature:
|
6805
|
+
Feature: lp
|
6806
6806
|
},
|
6807
6807
|
hover: {
|
6808
|
-
Feature:
|
6808
|
+
Feature: ap
|
6809
6809
|
}
|
6810
|
-
},
|
6810
|
+
}, vp = {
|
6811
6811
|
layout: {
|
6812
6812
|
ProjectionNode: ka,
|
6813
6813
|
MeasureLayout: Ta
|
6814
6814
|
}
|
6815
6815
|
}, yr = { current: null }, Da = { current: !1 };
|
6816
|
-
function
|
6816
|
+
function bp() {
|
6817
6817
|
if (Da.current = !0, !!Tr)
|
6818
6818
|
if (window.matchMedia) {
|
6819
6819
|
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => yr.current = t.matches;
|
@@ -6821,8 +6821,8 @@ function vp() {
|
|
6821
6821
|
} else
|
6822
6822
|
yr.current = !1;
|
6823
6823
|
}
|
6824
|
-
const
|
6825
|
-
function
|
6824
|
+
const xp = [...na, Z, zt], wp = (t) => xp.find(ea(t)), Sp = /* @__PURE__ */ new WeakMap();
|
6825
|
+
function Tp(t, e, n) {
|
6826
6826
|
for (const r in e) {
|
6827
6827
|
const i = e[r], s = n[r];
|
6828
6828
|
if (J(i))
|
@@ -6851,7 +6851,7 @@ const Fs = [
|
|
6851
6851
|
"LayoutAnimationStart",
|
6852
6852
|
"LayoutAnimationComplete"
|
6853
6853
|
];
|
6854
|
-
class
|
6854
|
+
class Cp {
|
6855
6855
|
/**
|
6856
6856
|
* This method takes React props and returns found MotionValues. For example, HTML
|
6857
6857
|
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
@@ -6878,7 +6878,7 @@ class Tp {
|
|
6878
6878
|
}
|
6879
6879
|
}
|
6880
6880
|
mount(e) {
|
6881
|
-
this.current = e,
|
6881
|
+
this.current = e, Sp.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Da.current || bp(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : yr.current, process.env.NODE_ENV !== "production" && Pn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
6882
6882
|
}
|
6883
6883
|
unmount() {
|
6884
6884
|
this.projection && this.projection.unmount(), Ut(this.notifyUpdate), Ut(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
@@ -6947,7 +6947,7 @@ class Tp {
|
|
6947
6947
|
const s = "on" + i, o = e[s];
|
6948
6948
|
o && (this.propEventSubscriptions[i] = this.on(i, o));
|
6949
6949
|
}
|
6950
|
-
this.prevMotionValues =
|
6950
|
+
this.prevMotionValues = Tp(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
|
6951
6951
|
}
|
6952
6952
|
getProps() {
|
6953
6953
|
return this.props;
|
@@ -7013,7 +7013,7 @@ class Tp {
|
|
7013
7013
|
readValue(e, n) {
|
7014
7014
|
var r;
|
7015
7015
|
let i = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (r = this.getBaseTargetFromProps(this.props, e)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, e, this.options);
|
7016
|
-
return i != null && (typeof i == "string" && (Qo(i) || Wo(i)) ? i = parseFloat(i) : !
|
7016
|
+
return i != null && (typeof i == "string" && (Qo(i) || Wo(i)) ? i = parseFloat(i) : !wp(i) && zt.test(n) && (i = Xo(e, n)), this.setBaseTarget(e, J(i) ? i.get() : i)), J(i) ? i.get() : i;
|
7017
7017
|
}
|
7018
7018
|
/**
|
7019
7019
|
* Set the base target to later animate back to. This is currently
|
@@ -7046,7 +7046,7 @@ class Tp {
|
|
7046
7046
|
this.events[e] && this.events[e].notify(...n);
|
7047
7047
|
}
|
7048
7048
|
}
|
7049
|
-
class _a extends
|
7049
|
+
class _a extends Cp {
|
7050
7050
|
constructor() {
|
7051
7051
|
super(...arguments), this.KeyframeResolver = ra;
|
7052
7052
|
}
|
@@ -7067,10 +7067,10 @@ class _a extends Tp {
|
|
7067
7067
|
}));
|
7068
7068
|
}
|
7069
7069
|
}
|
7070
|
-
function
|
7070
|
+
function Pp(t) {
|
7071
7071
|
return window.getComputedStyle(t);
|
7072
7072
|
}
|
7073
|
-
class
|
7073
|
+
class Ap extends _a {
|
7074
7074
|
constructor() {
|
7075
7075
|
super(...arguments), this.type = "html", this.renderInstance = wo;
|
7076
7076
|
}
|
@@ -7079,7 +7079,7 @@ class Pp extends _a {
|
|
7079
7079
|
const r = Zr(n);
|
7080
7080
|
return r && r.default || 0;
|
7081
7081
|
} else {
|
7082
|
-
const r =
|
7082
|
+
const r = Pp(e), i = (Er(n) ? r.getPropertyValue(n) : r[n]) || 0;
|
7083
7083
|
return typeof i == "string" ? i.trim() : i;
|
7084
7084
|
}
|
7085
7085
|
}
|
@@ -7093,7 +7093,7 @@ class Pp extends _a {
|
|
7093
7093
|
return Br(e, n, r);
|
7094
7094
|
}
|
7095
7095
|
}
|
7096
|
-
class
|
7096
|
+
class Vp extends _a {
|
7097
7097
|
constructor() {
|
7098
7098
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = W, this.updateDimensions = () => {
|
7099
7099
|
this.current && !this.renderState.dimensions && xo(this.current, this.renderState);
|
@@ -7125,15 +7125,15 @@ class Ap extends _a {
|
|
7125
7125
|
this.isSVGTag = Or(e.tagName), super.mount(e);
|
7126
7126
|
}
|
7127
7127
|
}
|
7128
|
-
const
|
7128
|
+
const Rp = (t, e) => Lr(t) ? new Vp(e) : new Ap(e, {
|
7129
7129
|
allowProjection: t !== js
|
7130
|
-
}),
|
7131
|
-
...
|
7132
|
-
...
|
7133
|
-
...
|
7134
|
-
...
|
7135
|
-
},
|
7136
|
-
function
|
7130
|
+
}), Ep = /* @__PURE__ */ td({
|
7131
|
+
...Zf,
|
7132
|
+
...yp,
|
7133
|
+
...op,
|
7134
|
+
...vp
|
7135
|
+
}, Rp), Mp = /* @__PURE__ */ gu(Ep);
|
7136
|
+
function kp(t) {
|
7137
7137
|
t.values.forEach((e) => e.stop());
|
7138
7138
|
}
|
7139
7139
|
function vr(t, e) {
|
@@ -7144,14 +7144,14 @@ function vr(t, e) {
|
|
7144
7144
|
});
|
7145
7145
|
});
|
7146
7146
|
}
|
7147
|
-
function
|
7147
|
+
function Dp(t, e) {
|
7148
7148
|
if (Array.isArray(e))
|
7149
7149
|
return vr(t, e);
|
7150
7150
|
if (typeof e == "string")
|
7151
7151
|
return vr(t, [e]);
|
7152
7152
|
Gr(t, e);
|
7153
7153
|
}
|
7154
|
-
function
|
7154
|
+
function _p() {
|
7155
7155
|
let t = !1;
|
7156
7156
|
const e = /* @__PURE__ */ new Set(), n = {
|
7157
7157
|
subscribe(r) {
|
@@ -7168,12 +7168,12 @@ function Dp() {
|
|
7168
7168
|
},
|
7169
7169
|
set(r) {
|
7170
7170
|
return Mt(t, "controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."), e.forEach((i) => {
|
7171
|
-
|
7171
|
+
Dp(i, r);
|
7172
7172
|
});
|
7173
7173
|
},
|
7174
7174
|
stop() {
|
7175
7175
|
e.forEach((r) => {
|
7176
|
-
|
7176
|
+
kp(r);
|
7177
7177
|
});
|
7178
7178
|
},
|
7179
7179
|
mount() {
|
@@ -7184,15 +7184,15 @@ function Dp() {
|
|
7184
7184
|
};
|
7185
7185
|
return n;
|
7186
7186
|
}
|
7187
|
-
function
|
7188
|
-
const t = ro(
|
7187
|
+
function Lp() {
|
7188
|
+
const t = ro(_p);
|
7189
7189
|
return so(t.mount, []), t;
|
7190
7190
|
}
|
7191
|
-
const
|
7191
|
+
const $p = Lp, Op = {
|
7192
7192
|
some: 0,
|
7193
7193
|
all: 1
|
7194
7194
|
};
|
7195
|
-
function
|
7195
|
+
function Fp(t, e, { root: n, margin: r, amount: i = "some" } = {}) {
|
7196
7196
|
const s = Mo(t), o = /* @__PURE__ */ new WeakMap(), a = (c) => {
|
7197
7197
|
c.forEach((u) => {
|
7198
7198
|
const d = o.get(u.target);
|
@@ -7205,11 +7205,11 @@ function Op(t, e, { root: n, margin: r, amount: i = "some" } = {}) {
|
|
7205
7205
|
}, l = new IntersectionObserver(a, {
|
7206
7206
|
root: n,
|
7207
7207
|
rootMargin: r,
|
7208
|
-
threshold: typeof i == "number" ? i :
|
7208
|
+
threshold: typeof i == "number" ? i : Op[i]
|
7209
7209
|
});
|
7210
7210
|
return s.forEach((c) => l.observe(c)), () => l.disconnect();
|
7211
7211
|
}
|
7212
|
-
function
|
7212
|
+
function Bp(t, { root: e, margin: n, amount: r, once: i = !1, initial: s = !1 } = {}) {
|
7213
7213
|
const [o, a] = _t(s);
|
7214
7214
|
return wt(() => {
|
7215
7215
|
if (!t.current || i && o)
|
@@ -7219,11 +7219,11 @@ function Fp(t, { root: e, margin: n, amount: r, once: i = !1, initial: s = !1 }
|
|
7219
7219
|
margin: n,
|
7220
7220
|
amount: r
|
7221
7221
|
};
|
7222
|
-
return
|
7222
|
+
return Fp(t.current, l, c);
|
7223
7223
|
}, [e, t, n, i, r]), o;
|
7224
7224
|
}
|
7225
|
-
var La = "var(--_14qm28z0)", $a = "var(--_14qm28z1)", Oa = "var(--_14qm28z2)", Fa = "var(--_14qm28z3)", Ba = "var(--_14qm28z4)", Ia = "var(--_14qm28z5)", Na = "var(--_14qm28z6)", ja = "var(--_14qm28z7)", Ua = "var(--_14qm28z8)", za = "var(--_14qm28z9)",
|
7226
|
-
const
|
7225
|
+
var La = "var(--_14qm28z0)", $a = "var(--_14qm28z1)", Oa = "var(--_14qm28z2)", Fa = "var(--_14qm28z3)", Ba = "var(--_14qm28z4)", Ia = "var(--_14qm28z5)", Na = "var(--_14qm28z6)", ja = "var(--_14qm28z7)", Ua = "var(--_14qm28z8)", za = "var(--_14qm28z9)", Ip = { width: "100%", display: "flex", alignItems: "center", position: "relative", flexDirection: "column", animation: "background 0.5s ease-in-out", color: "var(--_14qm28z2)", zIndex: "var(--_14qm28z1)", minHeight: "var(--_14qm28z7)", paddingTop: "var(--_14qm28z3)", paddingLeft: "var(--_14qm28z4)", paddingRight: "var(--_14qm28z5)", paddingBottom: "var(--_14qm28z6)", background: "var(--_14qm28z9)", justifyContent: "var(--_14qm28z8)" }, Np = "_14qm28za", Wa = "_14qm28zb";
|
7226
|
+
const Vm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
7227
7227
|
__proto__: null,
|
7228
7228
|
sectionAlignVar: La,
|
7229
7229
|
sectionBackgroundColorVar: za,
|
@@ -7235,12 +7235,12 @@ const Am = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7235
7235
|
sectionPaddingLeftVar: Ba,
|
7236
7236
|
sectionPaddingRightVar: Ia,
|
7237
7237
|
sectionPaddingTopVar: Fa,
|
7238
|
-
sectionStyle:
|
7238
|
+
sectionStyle: Np,
|
7239
7239
|
sectionZIndexVar: $a,
|
7240
|
-
styles:
|
7240
|
+
styles: Ip
|
7241
7241
|
}, Symbol.toStringTag, { value: "Module" }));
|
7242
7242
|
var un = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(un || {});
|
7243
|
-
const
|
7243
|
+
const jp = {
|
7244
7244
|
hidden: {
|
7245
7245
|
opacity: 0
|
7246
7246
|
},
|
@@ -7253,7 +7253,7 @@ const Np = {
|
|
7253
7253
|
type: "spring"
|
7254
7254
|
}
|
7255
7255
|
}
|
7256
|
-
},
|
7256
|
+
}, Rm = ({
|
7257
7257
|
children: t,
|
7258
7258
|
className: e,
|
7259
7259
|
zIndex: n = 20,
|
@@ -7266,13 +7266,13 @@ const Np = {
|
|
7266
7266
|
backgroundColor: c = "",
|
7267
7267
|
noPaddingBottom: u = !1
|
7268
7268
|
}) => {
|
7269
|
-
const d =
|
7269
|
+
const d = $p(), f = St(), h = Qa(), {
|
7270
7270
|
colors: p,
|
7271
7271
|
header: { height: g },
|
7272
7272
|
footer: { height: x },
|
7273
7273
|
global: { paddingRight: v, paddingLeft: w },
|
7274
7274
|
section: { paddingTop: S, paddingBottom: P }
|
7275
|
-
} = l, m =
|
7275
|
+
} = l, m = Bp(h, {
|
7276
7276
|
margin: "0px 0px 0px 0px"
|
7277
7277
|
});
|
7278
7278
|
return wt(() => {
|
@@ -7287,26 +7287,26 @@ const Np = {
|
|
7287
7287
|
[Ia]: `${v[f]}px`,
|
7288
7288
|
[Fa]: a ? "0px" : `${S[f]}px`,
|
7289
7289
|
[Na]: u ? "0px" : `${P[f]}px`
|
7290
|
-
}), children: /* @__PURE__ */ A(
|
7290
|
+
}), children: /* @__PURE__ */ A(Mp.div, { className: Wa, initial: "hidden", animate: d, variants: jp, style: F({
|
7291
7291
|
[La]: s === un.Center ? "center" : s === un.Right ? "right" : "left"
|
7292
7292
|
}), children: t }) });
|
7293
7293
|
};
|
7294
|
-
var
|
7295
|
-
const
|
7294
|
+
var Up = { navGap: "var(--_1h6zt340)" }, Em = { display: "flex", flexDirection: "column", gap: "var(--_1h6zt340)" };
|
7295
|
+
const Mm = ({ children: t, theme: e = B, className: n }) => {
|
7296
7296
|
const r = St(), { nav: { gap: i } } = e;
|
7297
7297
|
return /* @__PURE__ */ A(
|
7298
7298
|
"nav",
|
7299
7299
|
{
|
7300
7300
|
className: n,
|
7301
7301
|
style: F({
|
7302
|
-
[
|
7302
|
+
[Up.navGap]: `${i[r]}px`
|
7303
7303
|
}),
|
7304
7304
|
children: t
|
7305
7305
|
}
|
7306
7306
|
);
|
7307
7307
|
};
|
7308
|
-
var
|
7309
|
-
const
|
7308
|
+
var zp = { navSocialGap: "var(--g7q46n0)" }, km = { display: "flex", flexDirection: "row", marginLeft: 0, marginRight: 0, gap: "var(--g7q46n0)" }, Wp = "g7q46n1";
|
7309
|
+
const Dm = ({ navSocial: t, className: e, theme: n = B }) => {
|
7310
7310
|
const r = St(), {
|
7311
7311
|
navSocial: { gap: i }
|
7312
7312
|
} = n;
|
@@ -7315,17 +7315,17 @@ const km = ({ navSocial: t, className: e, theme: n = B }) => {
|
|
7315
7315
|
{
|
7316
7316
|
className: e,
|
7317
7317
|
style: F({
|
7318
|
-
[
|
7318
|
+
[zp.navSocialGap]: `${i[r]}px`
|
7319
7319
|
}),
|
7320
7320
|
children: t.map(({ name: s, link: o }, a) => {
|
7321
7321
|
const l = s[0].toUpperCase() + s.slice(1);
|
7322
|
-
return /* @__PURE__ */ A("div", { className:
|
7322
|
+
return /* @__PURE__ */ A("div", { className: Wp, children: /* @__PURE__ */ A("a", { target: "_blank", rel: "noopener noreferrer", "aria-label": s, href: o, children: /* @__PURE__ */ A(Xt, { theme: n, icon: `social${l}` }) }) }, `navSocialItem-${a}`);
|
7323
7323
|
})
|
7324
7324
|
}
|
7325
7325
|
);
|
7326
7326
|
};
|
7327
|
-
var
|
7328
|
-
const
|
7327
|
+
var qp = { navLegalGap: "var(--vehv9e0)" }, _m = { display: "flex", flexDirection: "row", gap: "var(--vehv9e0)" };
|
7328
|
+
const Lm = ({ children: t, className: e, theme: n = B }) => {
|
7329
7329
|
const r = St(), {
|
7330
7330
|
navLegal: { gap: i }
|
7331
7331
|
} = n;
|
@@ -7334,14 +7334,14 @@ const _m = ({ children: t, className: e, theme: n = B }) => {
|
|
7334
7334
|
{
|
7335
7335
|
className: e,
|
7336
7336
|
style: F({
|
7337
|
-
[
|
7337
|
+
[qp.navLegalGap]: `${i[r]}px`
|
7338
7338
|
}),
|
7339
7339
|
children: t
|
7340
7340
|
}
|
7341
7341
|
);
|
7342
7342
|
};
|
7343
|
-
var Yn = { formWidth: "var(--dvq5w80)", formPadding: "var(--dvq5w81)", formBackgroundColor: "var(--dvq5w82)" },
|
7344
|
-
const
|
7343
|
+
var Yn = { formWidth: "var(--dvq5w80)", formPadding: "var(--dvq5w81)", formBackgroundColor: "var(--dvq5w82)" }, $m = { width: "100%", maxWidth: "var(--dvq5w80)", backgroundColor: "var(--dvq5w82)", padding: "var(--dvq5w81)", position: "relative", "@media": { "(min-width: 768px)": { padding: "var(--formPadding)" } } };
|
7344
|
+
const Om = ({ action: t, children: e, theme: n = B, className: r }) => /* @__PURE__ */ A(
|
7345
7345
|
"form",
|
7346
7346
|
{
|
7347
7347
|
className: r,
|
@@ -7355,7 +7355,7 @@ const $m = ({ action: t, children: e, theme: n = B, className: r }) => /* @__PUR
|
|
7355
7355
|
}
|
7356
7356
|
);
|
7357
7357
|
var Qe = { rowGap: "var(--_223sdz0)", rowPadding: "var(--_223sdz1)", rowFontSize: "var(--_223sdz2)", rowJustifyContent: "var(--_223sdz3)" }, dn = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(dn || {});
|
7358
|
-
const
|
7358
|
+
const Fm = ({
|
7359
7359
|
children: t,
|
7360
7360
|
theme: e = B,
|
7361
7361
|
className: n,
|
@@ -7375,8 +7375,8 @@ const Om = ({
|
|
7375
7375
|
children: t
|
7376
7376
|
}
|
7377
7377
|
);
|
7378
|
-
var It = { font: "var(--k6gj0i0)", color: "var(--k6gj0i1)", border: "var(--k6gj0i2)", borderRadius: "var(--k6gj0i3)", backgroundColor: "var(--k6gj0i4)", padding: "var(--k6gj0i5)", placeholderColor: "var(--k6gj0i6)", placeholderOpacity: "var(--k6gj0i7)" },
|
7379
|
-
const
|
7378
|
+
var It = { font: "var(--k6gj0i0)", color: "var(--k6gj0i1)", border: "var(--k6gj0i2)", borderRadius: "var(--k6gj0i3)", backgroundColor: "var(--k6gj0i4)", padding: "var(--k6gj0i5)", placeholderColor: "var(--k6gj0i6)", placeholderOpacity: "var(--k6gj0i7)" }, Bm = { width: "100%", fontSize: "inherit", lineHeight: "1.5em", fontFamily: "var(--k6gj0i0)", color: "var(--k6gj0i1)", border: "var(--k6gj0i2)", borderRadius: "var(--k6gj0i3)", backgroundColor: "var(--k6gj0i4)", padding: "var(--k6gj0i5)", selectors: { "&:focus": { outline: "var(--k6gj0i2)" } } }, ni = /* @__PURE__ */ ((t) => (t.Text = "text", t.Email = "email", t.Search = "search", t.Number = "number", t.Hidden = "hidden", t.Password = "password", t))(ni || {});
|
7379
|
+
const Gp = ({
|
7380
7380
|
name: t,
|
7381
7381
|
value: e = "",
|
7382
7382
|
type: n = ni.Text,
|
@@ -7408,8 +7408,8 @@ const qp = ({
|
|
7408
7408
|
})
|
7409
7409
|
}
|
7410
7410
|
);
|
7411
|
-
var Nt = { font: "var(--l5ei120)", color: "var(--l5ei121)", border: "var(--l5ei122)", borderRadius: "var(--l5ei123)", padding: "var(--l5ei124)", backgroundColor: "var(--l5ei125)", placeholderColor: "var(--l5ei126)", placeholderOpacity: "var(--l5ei127)" },
|
7412
|
-
const
|
7411
|
+
var Nt = { font: "var(--l5ei120)", color: "var(--l5ei121)", border: "var(--l5ei122)", borderRadius: "var(--l5ei123)", padding: "var(--l5ei124)", backgroundColor: "var(--l5ei125)", placeholderColor: "var(--l5ei126)", placeholderOpacity: "var(--l5ei127)" }, Im = {};
|
7412
|
+
const Hp = ({
|
7413
7413
|
name: t,
|
7414
7414
|
value: e,
|
7415
7415
|
rows: n = 2,
|
@@ -7441,8 +7441,8 @@ const Gp = ({
|
|
7441
7441
|
})
|
7442
7442
|
}
|
7443
7443
|
);
|
7444
|
-
var tn = { font: "var(--_1s956dc0)", color: "var(--_1s956dc1)", fontWeight: "var(--_1s956dc2)", paddingBottom: "var(--_1s956dc3)" },
|
7445
|
-
const
|
7444
|
+
var tn = { font: "var(--_1s956dc0)", color: "var(--_1s956dc1)", fontWeight: "var(--_1s956dc2)", paddingBottom: "var(--_1s956dc3)" }, Nm = { width: "100%", textAlign: "left", fontFamily: "var(--_1s956dc0)", color: "var(--_1s956dc1)", fontWeight: "var(--_1s956dc2)", paddingBottom: "var(--_1s956dc3)" };
|
7445
|
+
const Kp = ({
|
7446
7446
|
name: t,
|
7447
7447
|
label: e,
|
7448
7448
|
required: n = !1,
|
@@ -7465,8 +7465,8 @@ const Hp = ({
|
|
7465
7465
|
]
|
7466
7466
|
}
|
7467
7467
|
);
|
7468
|
-
var
|
7469
|
-
const
|
7468
|
+
var Yp = { errorColor: "var(--_1e95ziv0)" }, jm = {}, qa = /* @__PURE__ */ ((t) => (t.Textarea = "textarea", t))(qa || {});
|
7469
|
+
const Um = ({
|
7470
7470
|
name: t,
|
7471
7471
|
label: e = "",
|
7472
7472
|
value: n = "",
|
@@ -7480,14 +7480,14 @@ const jm = ({
|
|
7480
7480
|
type: u = ni.Text,
|
7481
7481
|
className: d
|
7482
7482
|
}) => /* @__PURE__ */ ht("div", { className: d, style: F({
|
7483
|
-
[
|
7483
|
+
[Yp.errorColor]: l.form.error.color
|
7484
7484
|
}), children: [
|
7485
|
-
e && /* @__PURE__ */ A(
|
7486
|
-
u === qa.Textarea ? /* @__PURE__ */ A(
|
7485
|
+
e && /* @__PURE__ */ A(Kp, { className: "", theme: l, label: e, name: t, required: i }),
|
7486
|
+
u === qa.Textarea ? /* @__PURE__ */ A(Hp, { className: "", value: n, rows: r, name: t, theme: l, onChange: c, disabled: s, placeholder: o }) : /* @__PURE__ */ A(Gp, { className: "", value: n, type: u, name: t, theme: l, onChange: c, disabled: s, placeholder: o }),
|
7487
7487
|
a && /* @__PURE__ */ A("div", { children: a instanceof Array ? a.map((f, h) => /* @__PURE__ */ A("span", { children: f }, h)) : a })
|
7488
7488
|
] });
|
7489
|
-
var kt = { overlayBlur: "var(--pewdww0)", overlayOpacity: "var(--pewdww1)", overlayBackgroundColor: "var(--pewdww2)", width: "var(--pewdww3)", backgroundColor: "var(--pewdww4)", borderRadius: "var(--pewdww5)", borders: "var(--pewdww6)", actionsGap: "var(--pewdww7)", actionsPaddingTop: "var(--pewdww8)" },
|
7490
|
-
function
|
7489
|
+
var kt = { overlayBlur: "var(--pewdww0)", overlayOpacity: "var(--pewdww1)", overlayBackgroundColor: "var(--pewdww2)", width: "var(--pewdww3)", backgroundColor: "var(--pewdww4)", borderRadius: "var(--pewdww5)", borders: "var(--pewdww6)", actionsGap: "var(--pewdww7)", actionsPaddingTop: "var(--pewdww8)" }, zm = {};
|
7490
|
+
function Xp(t) {
|
7491
7491
|
const e = t + "=", r = decodeURIComponent(document.cookie).split(";");
|
7492
7492
|
for (let i = 0; i < r.length; i++) {
|
7493
7493
|
let s = r[i];
|
@@ -7498,13 +7498,13 @@ function Yp(t) {
|
|
7498
7498
|
}
|
7499
7499
|
return "";
|
7500
7500
|
}
|
7501
|
-
function
|
7501
|
+
function Zp(t, e, n) {
|
7502
7502
|
const r = /* @__PURE__ */ new Date();
|
7503
7503
|
r.setTime(r.getTime() + n * 24 * 60 * 60 * 1e3);
|
7504
7504
|
const i = "expires=" + r.toUTCString();
|
7505
7505
|
document.cookie = t + "=" + e + ";" + i + ";path=/";
|
7506
7506
|
}
|
7507
|
-
const
|
7507
|
+
const Wm = ({
|
7508
7508
|
children: t,
|
7509
7509
|
theme: e = B,
|
7510
7510
|
cookieName: n = "consent",
|
@@ -7513,10 +7513,10 @@ const zm = ({
|
|
7513
7513
|
className: s
|
7514
7514
|
}) => {
|
7515
7515
|
const [o, a] = _t(!1), l = (c) => {
|
7516
|
-
a(!1),
|
7516
|
+
a(!1), Zp(n, `${c}`, i);
|
7517
7517
|
};
|
7518
7518
|
return wt(() => {
|
7519
|
-
const c =
|
7519
|
+
const c = Xp(n), u = c !== "true" && c !== "false", d = c === "true";
|
7520
7520
|
u && a(!0);
|
7521
7521
|
const f = d ? "granted" : "denied";
|
7522
7522
|
typeof window.gtag < "u" && window.gtag("consent", "update", { analytics_storage: f });
|
@@ -7546,64 +7546,64 @@ const zm = ({
|
|
7546
7546
|
) : null;
|
7547
7547
|
};
|
7548
7548
|
export {
|
7549
|
-
|
7549
|
+
nm as Actions,
|
7550
7550
|
Te as ActionsAlign,
|
7551
|
-
|
7551
|
+
em as ActionsStyles,
|
7552
7552
|
mi as Button,
|
7553
7553
|
sn as ButtonSize,
|
7554
7554
|
tr as ButtonStyle,
|
7555
|
-
|
7555
|
+
tm as ButtonStyles,
|
7556
7556
|
eo as ButtonType,
|
7557
7557
|
Qn as ButtonVariant,
|
7558
|
-
|
7559
|
-
|
7560
|
-
|
7558
|
+
um as Carousel,
|
7559
|
+
cm as CarouselStyles,
|
7560
|
+
Cm as Columns,
|
7561
7561
|
Ce as ColumnsAlign,
|
7562
|
-
|
7563
|
-
|
7564
|
-
|
7565
|
-
|
7566
|
-
|
7567
|
-
|
7568
|
-
|
7562
|
+
Tm as ColumnsStyles,
|
7563
|
+
Wm as ConsentCookie,
|
7564
|
+
zm as ConsentCookieStyles,
|
7565
|
+
Sm as Footer,
|
7566
|
+
wm as FooterStyles,
|
7567
|
+
Om as Form,
|
7568
|
+
Fm as FormRow,
|
7569
7569
|
dn as FormRowAlign,
|
7570
|
-
|
7571
|
-
|
7572
|
-
|
7570
|
+
$m as FormStyles,
|
7571
|
+
xm as Header,
|
7572
|
+
bm as HeaderStyles,
|
7573
7573
|
Xt as Icon,
|
7574
|
-
|
7575
|
-
|
7574
|
+
rm as IconStyles,
|
7575
|
+
Bm as InputStyles,
|
7576
7576
|
ni as InputType,
|
7577
|
-
|
7578
|
-
|
7579
|
-
|
7580
|
-
|
7581
|
-
|
7582
|
-
|
7583
|
-
|
7584
|
-
|
7585
|
-
|
7586
|
-
|
7587
|
-
|
7588
|
-
|
7589
|
-
|
7590
|
-
|
7591
|
-
|
7592
|
-
|
7593
|
-
|
7577
|
+
fm as KeyNumber,
|
7578
|
+
dm as KeyNumberStyles,
|
7579
|
+
gm as LanguageSwitcher,
|
7580
|
+
mm as LanguageSwitcherStyles,
|
7581
|
+
lm as Logo,
|
7582
|
+
am as LogoStyles,
|
7583
|
+
vm as Main,
|
7584
|
+
ym as MainStyles,
|
7585
|
+
sm as Modal,
|
7586
|
+
im as ModalStyles,
|
7587
|
+
Mm as Nav,
|
7588
|
+
Lm as NavLegal,
|
7589
|
+
_m as NavLegalStyles,
|
7590
|
+
Dm as NavSocial,
|
7591
|
+
km as NavSocialStyles,
|
7592
|
+
Em as NavStyles,
|
7593
|
+
Rm as Section,
|
7594
7594
|
un as SectionAlign,
|
7595
|
-
|
7596
|
-
|
7597
|
-
|
7598
|
-
|
7599
|
-
|
7600
|
-
|
7601
|
-
|
7602
|
-
|
7595
|
+
Ip as SectionStyles,
|
7596
|
+
Um as TextField,
|
7597
|
+
Gp as TextFieldInput,
|
7598
|
+
Kp as TextFieldLabel,
|
7599
|
+
Nm as TextFieldLabelStyles,
|
7600
|
+
jm as TextFieldStyles,
|
7601
|
+
Hp as TextFieldTextarea,
|
7602
|
+
Im as TextareaStyles,
|
7603
7603
|
qa as TextareaType,
|
7604
|
-
|
7605
|
-
|
7606
|
-
|
7607
|
-
|
7608
|
-
|
7604
|
+
Dc as Video,
|
7605
|
+
pm as VideoFullWidth,
|
7606
|
+
hm as VideoFullWidthStyles,
|
7607
|
+
om as VideoStyles,
|
7608
|
+
Vm as allStyles
|
7609
7609
|
};
|