diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 922f7d4c0..98baa1ffb 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -9,13 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🗒️
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
## install node and dependancies
- uses: actions/setup-node@v3
name: Setup Node.js
with:
- node-version: '18.x'
+ node-version: '20.x'
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ff44995ad..78d565ff5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
@@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-node@v3
name: Setup Node.js
with:
- node-version: '18.x'
+ node-version: '20.x'
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml
index d7d476378..36775b3ba 100644
--- a/.github/workflows/ui-tests.yml
+++ b/.github/workflows/ui-tests.yml
@@ -7,12 +7,12 @@ jobs:
interaction-and-accessibility:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
## install node and dependancies
- uses: actions/setup-node@v3
name: Setup Node.js
with:
- node-version: '18.x'
+ node-version: '20.x'
- uses: pnpm/action-setup@v2
name: Install pnpm
diff --git a/dist/Flex-3dc5ee69.mjs b/dist/Flex-ad3a4da0.mjs
similarity index 71%
rename from dist/Flex-3dc5ee69.mjs
rename to dist/Flex-ad3a4da0.mjs
index 7c7ecb595..456e88456 100644
--- a/dist/Flex-3dc5ee69.mjs
+++ b/dist/Flex-ad3a4da0.mjs
@@ -1,11 +1,11 @@
import * as U from "react";
-import It, { createContext as Cr, forwardRef as At, createElement as ir, Fragment as ku, useContext as ft, useLayoutEffect as Ds, useEffect as Fe, useState as Ye, useRef as be, useMemo as gt, useReducer as _0, useCallback as q, useInsertionEffect as ym, useId as _r, cloneElement as Ka, Children as Ms, isValidElement as Eu, PureComponent as k0 } from "react";
-import { createPortal as xm } from "react-dom";
+import It, { createContext as Cr, forwardRef as At, createElement as ir, Fragment as wu, useContext as ft, useLayoutEffect as $s, useEffect as Fe, useState as Ye, useRef as be, useMemo as gt, useReducer as S0, useCallback as q, useInsertionEffect as bm, useId as _r, cloneElement as Ka, Children as Ds, isValidElement as Cu, PureComponent as w0 } from "react";
+import { createPortal as ym } from "react-dom";
var yi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
-function Is(e) {
+function Ms(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
-function Fs(e) {
+function Is(e) {
if (e.__esModule)
return e;
var t = e.default;
@@ -32,7 +32,7 @@ function Fs(e) {
});
}), r;
}
-var Ec = { exports: {} }, Yo = {};
+var _c = { exports: {} }, qo = {};
/**
* @license React
* react-jsx-runtime.production.min.js
@@ -42,11 +42,11 @@ var Ec = { exports: {} }, Yo = {};
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
-var qd;
-function E0() {
- if (qd)
- return Yo;
- qd = 1;
+var Yd;
+function C0() {
+ if (Yd)
+ return qo;
+ Yd = 1;
var e = It, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
function i(s, l, c) {
var u, d = {}, f = null, p = null;
@@ -58,9 +58,9 @@ function E0() {
d[u] === void 0 && (d[u] = l[u]);
return { $$typeof: t, type: s, key: f, ref: p, props: d, _owner: o.current };
}
- return Yo.Fragment = r, Yo.jsx = i, Yo.jsxs = i, Yo;
+ return qo.Fragment = r, qo.jsx = i, qo.jsxs = i, qo;
}
-var qo = {};
+var Go = {};
/**
* @license React
* react-jsx-runtime.development.js
@@ -70,9 +70,9 @@ var qo = {};
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
-var Gd;
-function P0() {
- return Gd || (Gd = 1, process.env.NODE_ENV !== "production" && function() {
+var qd;
+function _0() {
+ return qd || (qd = 1, process.env.NODE_ENV !== "production" && function() {
var e = It, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, h = "@@iterator";
function v(x) {
if (x === null || typeof x != "object")
@@ -90,18 +90,18 @@ function P0() {
}
function S(x, W, K) {
{
- var me = b.ReactDebugCurrentFrame, De = me.getStackAddendum();
- De !== "" && (W += "%s", K = K.concat([De]));
- var Oe = K.map(function(Pe) {
+ var me = b.ReactDebugCurrentFrame, Me = me.getStackAddendum();
+ Me !== "" && (W += "%s", K = K.concat([Me]));
+ var Re = K.map(function(Pe) {
return String(Pe);
});
- Oe.unshift("Warning: " + W), Function.prototype.apply.call(console[x], console, Oe);
+ Re.unshift("Warning: " + W), Function.prototype.apply.call(console[x], console, Re);
}
}
- var k = !1, w = !1, M = !1, P = !1, I = !1, z;
+ var _ = !1, w = !1, M = !1, P = !1, I = !1, z;
z = Symbol.for("react.module.reference");
function j(x) {
- return !!(typeof x == "string" || typeof x == "function" || x === n || x === a || I || x === o || x === c || x === u || P || x === p || k || w || M || typeof x == "object" && x !== null && (x.$$typeof === f || x.$$typeof === d || x.$$typeof === i || x.$$typeof === s || x.$$typeof === l || // This needs to include all possible module reference object
+ return !!(typeof x == "string" || typeof x == "function" || x === n || x === a || I || x === o || x === c || x === u || P || x === p || _ || w || M || typeof x == "object" && x !== null && (x.$$typeof === f || x.$$typeof === d || x.$$typeof === i || x.$$typeof === s || x.$$typeof === l || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
@@ -111,8 +111,8 @@ function P0() {
var me = x.displayName;
if (me)
return me;
- var De = W.displayName || W.name || "";
- return De !== "" ? K + "(" + De + ")" : K;
+ var Me = W.displayName || W.name || "";
+ return Me !== "" ? K + "(" + Me + ")" : K;
}
function ne(x) {
return x.displayName || "Context";
@@ -152,9 +152,9 @@ function P0() {
var me = x.displayName || null;
return me !== null ? me : J(x.type) || "Memo";
case f: {
- var De = x, Oe = De._payload, Pe = De._init;
+ var Me = x, Re = Me._payload, Pe = Me._init;
try {
- return J(Pe(Oe));
+ return J(Pe(Re));
} catch {
return null;
}
@@ -166,7 +166,7 @@ function P0() {
function T() {
}
T.__reactDisabledLog = !0;
- function O() {
+ function A() {
{
if (ee === 0) {
oe = console.log, D = console.info, ce = console.warn, fe = console.error, F = console.group, N = console.groupCollapsed, V = console.groupEnd;
@@ -225,13 +225,13 @@ function P0() {
}
}
var C = b.ReactCurrentDispatcher, H;
- function A(x, W, K) {
+ function O(x, W, K) {
{
if (H === void 0)
try {
throw Error();
- } catch (De) {
- var me = De.stack.trim().match(/\n( *(at )?)/);
+ } catch (Me) {
+ var me = Me.stack.trim().match(/\n( *(at )?)/);
H = me && me[1] || "";
}
return `
@@ -243,7 +243,7 @@ function P0() {
var ae = typeof WeakMap == "function" ? WeakMap : Map;
Y = new ae();
}
- function $(x, W) {
+ function R(x, W) {
if (!x || Z)
return "";
{
@@ -253,10 +253,10 @@ function P0() {
}
var me;
Z = !0;
- var De = Error.prepareStackTrace;
+ var Me = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
- var Oe;
- Oe = C.current, C.current = null, O();
+ var Re;
+ Re = C.current, C.current = null, A();
try {
if (W) {
var Pe = function() {
@@ -309,13 +309,13 @@ function P0() {
}
}
} finally {
- Z = !1, C.current = Oe, B(), Error.prepareStackTrace = De;
+ Z = !1, C.current = Re, B(), Error.prepareStackTrace = Me;
}
- var Pr = x ? x.displayName || x.name : "", hi = Pr ? A(Pr) : "";
+ var Pr = x ? x.displayName || x.name : "", hi = Pr ? O(Pr) : "";
return typeof x == "function" && Y.set(x, hi), hi;
}
function Se(x, W, K) {
- return $(x, !1);
+ return R(x, !1);
}
function he(x) {
var W = x.prototype;
@@ -325,14 +325,14 @@ function P0() {
if (x == null)
return "";
if (typeof x == "function")
- return $(x, he(x));
+ return R(x, he(x));
if (typeof x == "string")
- return A(x);
+ return O(x);
switch (x) {
case c:
- return A("Suspense");
+ return O("Suspense");
case u:
- return A("SuspenseList");
+ return O("SuspenseList");
}
if (typeof x == "object")
switch (x.$$typeof) {
@@ -341,16 +341,16 @@ function P0() {
case d:
return le(x.type, W, K);
case f: {
- var me = x, De = me._payload, Oe = me._init;
+ var me = x, Me = me._payload, Re = me._init;
try {
- return le(Oe(De), W, K);
+ return le(Re(Me), W, K);
} catch {
}
}
}
return "";
}
- var Re = Object.prototype.hasOwnProperty, ye = {}, we = b.ReactDebugCurrentFrame;
+ var De = Object.prototype.hasOwnProperty, ye = {}, we = b.ReactDebugCurrentFrame;
function ht(x) {
if (x) {
var W = x._owner, K = le(x.type, x._source, W ? W.type : null);
@@ -358,11 +358,11 @@ function P0() {
} else
we.setExtraStackFrame(null);
}
- function ke(x, W, K, me, De) {
+ function ke(x, W, K, me, Me) {
{
- var Oe = Function.call.bind(Re);
+ var Re = Function.call.bind(De);
for (var Pe in x)
- if (Oe(x, Pe)) {
+ if (Re(x, Pe)) {
var Ee = void 0;
try {
if (typeof x[Pe] != "function") {
@@ -373,7 +373,7 @@ function P0() {
} catch (ot) {
Ee = ot;
}
- Ee && !(Ee instanceof Error) && (ht(De), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", me || "React class", K, Pe, typeof Ee), ht(null)), Ee instanceof Error && !(Ee.message in ye) && (ye[Ee.message] = !0, ht(De), y("Failed %s type: %s", K, Ee.message), ht(null));
+ Ee && !(Ee instanceof Error) && (ht(Me), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", me || "React class", K, Pe, typeof Ee), ht(null)), Ee instanceof Error && !(Ee.message in ye) && (ye[Ee.message] = !0, ht(Me), y("Failed %s type: %s", K, Ee.message), ht(null));
}
}
}
@@ -381,7 +381,7 @@ function P0() {
function rt(x) {
return dt(x);
}
- function Me(x) {
+ function Ie(x) {
{
var W = typeof Symbol == "function" && Symbol.toStringTag, K = W && x[Symbol.toStringTag] || x.constructor.name || "Object";
return K;
@@ -389,27 +389,27 @@ function P0() {
}
function se(x) {
try {
- return Ae(x), !1;
+ return Oe(x), !1;
} catch {
return !0;
}
}
- function Ae(x) {
+ function Oe(x) {
return "" + x;
}
function Ot(x) {
if (se(x))
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(x)), Ae(x);
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ie(x)), Oe(x);
}
var xt = b.ReactCurrentOwner, lt = {
key: !0,
ref: !0,
__self: !0,
__source: !0
- }, zr, Vr, Lr;
- Lr = {};
+ }, Vr, Lr, Wr;
+ Wr = {};
function te(x) {
- if (Re.call(x, "ref")) {
+ if (De.call(x, "ref")) {
var W = Object.getOwnPropertyDescriptor(x, "ref").get;
if (W && W.isReactWarning)
return !1;
@@ -417,7 +417,7 @@ function P0() {
return x.ref !== void 0;
}
function ve(x) {
- if (Re.call(x, "key")) {
+ if (De.call(x, "key")) {
var W = Object.getOwnPropertyDescriptor(x, "key").get;
if (W && W.isReactWarning)
return !1;
@@ -427,13 +427,13 @@ function P0() {
function kr(x, W) {
if (typeof x.ref == "string" && xt.current && W && xt.current.stateNode !== W) {
var K = J(xt.current.type);
- Lr[K] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', J(xt.current.type), x.ref), Lr[K] = !0);
+ Wr[K] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', J(xt.current.type), x.ref), Wr[K] = !0);
}
}
function G(x, W) {
{
var K = function() {
- zr || (zr = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", W));
+ Vr || (Vr = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", W));
};
K.isReactWarning = !0, Object.defineProperty(x, "key", {
get: K,
@@ -444,7 +444,7 @@ function P0() {
function ie(x, W) {
{
var K = function() {
- Vr || (Vr = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", W));
+ Lr || (Lr = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", W));
};
K.isReactWarning = !0, Object.defineProperty(x, "ref", {
get: K,
@@ -452,7 +452,7 @@ function P0() {
});
}
}
- var xe = function(x, W, K, me, De, Oe, Pe) {
+ var xe = function(x, W, K, me, Me, Re, Pe) {
var Ee = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
@@ -462,7 +462,7 @@ function P0() {
ref: K,
props: Pe,
// Record the component responsible for creating this element.
- _owner: Oe
+ _owner: Re
};
return Ee._store = {}, Object.defineProperty(Ee._store, "validated", {
configurable: !1,
@@ -478,25 +478,25 @@ function P0() {
configurable: !1,
enumerable: !1,
writable: !1,
- value: De
+ value: Me
}), Object.freeze && (Object.freeze(Ee.props), Object.freeze(Ee)), Ee;
};
- function Ce(x, W, K, me, De) {
+ function Ce(x, W, K, me, Me) {
{
- var Oe, Pe = {}, Ee = null, Ct = null;
- K !== void 0 && (Ot(K), Ee = "" + K), ve(W) && (Ot(W.key), Ee = "" + W.key), te(W) && (Ct = W.ref, kr(W, De));
- for (Oe in W)
- Re.call(W, Oe) && !lt.hasOwnProperty(Oe) && (Pe[Oe] = W[Oe]);
+ var Re, Pe = {}, Ee = null, Ct = null;
+ K !== void 0 && (Ot(K), Ee = "" + K), ve(W) && (Ot(W.key), Ee = "" + W.key), te(W) && (Ct = W.ref, kr(W, Me));
+ for (Re in W)
+ De.call(W, Re) && !lt.hasOwnProperty(Re) && (Pe[Re] = W[Re]);
if (x && x.defaultProps) {
var ot = x.defaultProps;
- for (Oe in ot)
- Pe[Oe] === void 0 && (Pe[Oe] = ot[Oe]);
+ for (Re in ot)
+ Pe[Re] === void 0 && (Pe[Re] = ot[Re]);
}
if (Ee || Ct) {
var ct = typeof x == "function" ? x.displayName || x.name || "Unknown" : x;
Ee && G(Pe, ct), Ct && ie(Pe, ct);
}
- return xe(x, Ee, Ct, De, me, xt.current, Pe);
+ return xe(x, Ee, Ct, Me, me, xt.current, Pe);
}
}
var He = b.ReactCurrentOwner, wt = b.ReactDebugCurrentFrame;
@@ -509,7 +509,7 @@ function P0() {
}
var nt;
nt = !1;
- function Wr(x) {
+ function Ur(x) {
return typeof x == "object" && x !== null && x.$$typeof === t;
}
function Er() {
@@ -524,7 +524,7 @@ Check the render method of \`` + x + "`.";
return "";
}
}
- function dl(x) {
+ function cl(x) {
{
if (x !== void 0) {
var W = x.fileName.replace(/^.*[\\\/]/, ""), K = x.lineNumber;
@@ -536,7 +536,7 @@ Check your code at ` + W + ":" + K + ".";
}
}
var ui = {};
- function fl(x) {
+ function ul(x) {
{
var W = Er();
if (!W) {
@@ -553,7 +553,7 @@ Check the top-level render call using <` + K + ">.");
if (!x._store || x._store.validated || x.key != null)
return;
x._store.validated = !0;
- var K = fl(W);
+ var K = ul(W);
if (ui[K])
return;
ui[K] = !0;
@@ -568,15 +568,15 @@ Check the top-level render call using <` + K + ">.");
if (rt(x))
for (var K = 0; K < x.length; K++) {
var me = x[K];
- Wr(me) && di(me, W);
+ Ur(me) && di(me, W);
}
- else if (Wr(x))
+ else if (Ur(x))
x._store && (x._store.validated = !0);
else if (x) {
- var De = v(x);
- if (typeof De == "function" && De !== x.entries)
- for (var Oe = De.call(x), Pe; !(Pe = Oe.next()).done; )
- Wr(Pe.value) && di(Pe.value, W);
+ var Me = v(x);
+ if (typeof Me == "function" && Me !== x.entries)
+ for (var Re = Me.call(x), Pe; !(Pe = Re.next()).done; )
+ Ur(Pe.value) && di(Pe.value, W);
}
}
}
@@ -599,13 +599,13 @@ Check the top-level render call using <` + K + ">.");
ke(K, x.props, "prop", me, x);
} else if (W.PropTypes !== void 0 && !nt) {
nt = !0;
- var De = J(W);
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", De || "Unknown");
+ var Me = J(W);
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Me || "Unknown");
}
typeof W.getDefaultProps == "function" && !W.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
- function pl(x) {
+ function dl(x) {
{
for (var W = Object.keys(x.props), K = 0; K < W.length; K++) {
var me = W[K];
@@ -617,18 +617,18 @@ Check the top-level render call using <` + K + ">.");
x.ref !== null && (Ze(x), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ze(null));
}
}
- function pi(x, W, K, me, De, Oe) {
+ function pi(x, W, K, me, Me, Re) {
{
var Pe = j(x);
if (!Pe) {
var Ee = "";
(x === void 0 || typeof x == "object" && x !== null && Object.keys(x).length === 0) && (Ee += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
- var Ct = dl(De);
+ var Ct = cl(Me);
Ct ? Ee += Ct : Ee += Er();
var ot;
x === null ? ot = "null" : rt(x) ? ot = "array" : x !== void 0 && x.$$typeof === t ? (ot = "<" + (J(x.type) || "Unknown") + " />", Ee = " Did you accidentally export a JSX literal instead of a component?") : ot = typeof x, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ot, Ee);
}
- var ct = Ce(x, W, K, De, Oe);
+ var ct = Ce(x, W, K, Me, Re);
if (ct == null)
return ct;
if (Pe) {
@@ -644,89 +644,97 @@ Check the top-level render call using <` + K + ">.");
else
fi(jt, x);
}
- return x === n ? pl(ct) : fr(ct), ct;
+ return x === n ? dl(ct) : fr(ct), ct;
}
}
- function hl(x, W, K) {
+ function fl(x, W, K) {
return pi(x, W, K, !0);
}
- function ml(x, W, K) {
+ function pl(x, W, K) {
return pi(x, W, K, !1);
}
- var vl = ml, sn = hl;
- qo.Fragment = n, qo.jsx = vl, qo.jsxs = sn;
- }()), qo;
+ var hl = pl, ln = fl;
+ Go.Fragment = n, Go.jsx = hl, Go.jsxs = ln;
+ }()), Go;
}
-process.env.NODE_ENV === "production" ? Ec.exports = E0() : Ec.exports = P0();
-var L = Ec.exports, ka = {};
-function Ea(e) {
+process.env.NODE_ENV === "production" ? _c.exports = C0() : _c.exports = _0();
+var L = _c.exports, Pa = {};
+function Ta(e) {
"@babel/helpers - typeof";
- return Ea = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
+ return Ta = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
- }, Ea(e);
+ }, Ta(e);
}
-function T0(e, t) {
- if (Ea(e) !== "object" || e === null)
+function k0(e, t) {
+ if (Ta(e) !== "object" || e === null)
return e;
var r = e[Symbol.toPrimitive];
if (r !== void 0) {
var n = r.call(e, t || "default");
- if (Ea(n) !== "object")
+ if (Ta(n) !== "object")
return n;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}
-function A0(e) {
- var t = T0(e, "string");
- return Ea(t) === "symbol" ? t : String(t);
+function E0(e) {
+ var t = k0(e, "string");
+ return Ta(t) === "symbol" ? t : String(t);
}
-function Sm(e, t, r) {
- return t = A0(t), t in e ? Object.defineProperty(e, t, {
+function _u(e, t, r) {
+ return t = E0(t), t in e ? Object.defineProperty(e, t, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = r, e;
}
-function wm(e) {
+function xm(e) {
var t = {};
return function(r) {
return t[r] === void 0 && (t[r] = e(r)), t[r];
};
}
-var O0 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Cm = wm(
+var P0 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Sm = xm(
function(e) {
- return O0.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
+ return P0.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
}
/* Z+1 */
);
-function $0(e) {
+function kc(e, t) {
+ return kc = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
+ return n.__proto__ = o, n;
+ }, kc(e, t);
+}
+function T0(e, t) {
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, kc(e, t);
+}
+function A0(e) {
if (e.sheet)
return e.sheet;
for (var t = 0; t < document.styleSheets.length; t++)
if (document.styleSheets[t].ownerNode === e)
return document.styleSheets[t];
}
-function R0(e) {
+function O0(e) {
var t = document.createElement("style");
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t;
}
-var D0 = /* @__PURE__ */ function() {
+var R0 = /* @__PURE__ */ function() {
function e(r) {
this.isSpeedy = r.speedy === void 0 ? process.env.NODE_ENV === "production" : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.before = null;
}
var t = e.prototype;
return t.insert = function(n) {
if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
- var o = R0(this), a;
+ var o = O0(this), a;
this.tags.length === 0 ? a = this.before : a = this.tags[this.tags.length - 1].nextSibling, this.container.insertBefore(o, a), this.tags.push(o);
}
var i = this.tags[this.tags.length - 1];
if (this.isSpeedy) {
- var s = $0(i);
+ var s = A0(i);
try {
var l = n.charCodeAt(1) === 105 && n.charCodeAt(0) === 64;
s.insertRule(
@@ -754,12 +762,12 @@ var D0 = /* @__PURE__ */ function() {
}), this.tags = [], this.ctr = 0;
}, e;
}();
-function M0(e) {
- function t(V, T, O, B, C) {
- for (var H = 0, A = 0, Z = 0, Y = 0, ae, $, Se = 0, he = 0, le, Re = le = ae = 0, ye = 0, we = 0, ht = 0, ke = 0, dt = O.length, rt = dt - 1, Me, se = "", Ae = "", Ot = "", xt = "", lt; ye < dt; ) {
- if ($ = O.charCodeAt(ye), ye === rt && A + Y + Z + H !== 0 && (A !== 0 && ($ = A === 47 ? 10 : 47), Y = Z = H = 0, dt++, rt++), A + Y + Z + H === 0) {
+function $0(e) {
+ function t(V, T, A, B, C) {
+ for (var H = 0, O = 0, Z = 0, Y = 0, ae, R, Se = 0, he = 0, le, De = le = ae = 0, ye = 0, we = 0, ht = 0, ke = 0, dt = A.length, rt = dt - 1, Ie, se = "", Oe = "", Ot = "", xt = "", lt; ye < dt; ) {
+ if (R = A.charCodeAt(ye), ye === rt && O + Y + Z + H !== 0 && (O !== 0 && (R = O === 47 ? 10 : 47), Y = Z = H = 0, dt++, rt++), O + Y + Z + H === 0) {
if (ye === rt && (0 < we && (se = se.replace(f, "")), 0 < se.trim().length)) {
- switch ($) {
+ switch (R) {
case 32:
case 9:
case 59:
@@ -767,14 +775,14 @@ function M0(e) {
case 10:
break;
default:
- se += O.charAt(ye);
+ se += A.charAt(ye);
}
- $ = 59;
+ R = 59;
}
- switch ($) {
+ switch (R) {
case 123:
for (se = se.trim(), ae = se.charCodeAt(0), le = 1, ke = ++ye; ye < dt; ) {
- switch ($ = O.charCodeAt(ye)) {
+ switch (R = A.charCodeAt(ye)) {
case 123:
le++;
break;
@@ -782,44 +790,44 @@ function M0(e) {
le--;
break;
case 47:
- switch ($ = O.charCodeAt(ye + 1)) {
+ switch (R = A.charCodeAt(ye + 1)) {
case 42:
case 47:
e: {
- for (Re = ye + 1; Re < rt; ++Re)
- switch (O.charCodeAt(Re)) {
+ for (De = ye + 1; De < rt; ++De)
+ switch (A.charCodeAt(De)) {
case 47:
- if ($ === 42 && O.charCodeAt(Re - 1) === 42 && ye + 2 !== Re) {
- ye = Re + 1;
+ if (R === 42 && A.charCodeAt(De - 1) === 42 && ye + 2 !== De) {
+ ye = De + 1;
break e;
}
break;
case 10:
- if ($ === 47) {
- ye = Re + 1;
+ if (R === 47) {
+ ye = De + 1;
break e;
}
}
- ye = Re;
+ ye = De;
}
}
break;
case 91:
- $++;
+ R++;
case 40:
- $++;
+ R++;
case 34:
case 39:
- for (; ye++ < rt && O.charCodeAt(ye) !== $; )
+ for (; ye++ < rt && A.charCodeAt(ye) !== R; )
;
}
if (le === 0)
break;
ye++;
}
- switch (le = O.substring(ke, ye), ae === 0 && (ae = (se = se.replace(d, "").trim()).charCodeAt(0)), ae) {
+ switch (le = A.substring(ke, ye), ae === 0 && (ae = (se = se.replace(d, "").trim()).charCodeAt(0)), ae) {
case 64:
- switch (0 < we && (se = se.replace(f, "")), $ = se.charCodeAt(1), $) {
+ switch (0 < we && (se = se.replace(f, "")), R = se.charCodeAt(1), R) {
case 100:
case 109:
case 115:
@@ -829,8 +837,8 @@ function M0(e) {
default:
we = oe;
}
- if (le = t(T, we, le, $, C + 1), ke = le.length, 0 < ce && (we = r(oe, se, ht), lt = s(3, le, we, T, J, ne, ke, $, C, B), se = we.join(""), lt !== void 0 && (ke = (le = lt.trim()).length) === 0 && ($ = 0, le = "")), 0 < ke)
- switch ($) {
+ if (le = t(T, we, le, R, C + 1), ke = le.length, 0 < ce && (we = r(oe, se, ht), lt = s(3, le, we, T, J, ne, ke, R, C, B), se = we.join(""), lt !== void 0 && (ke = (le = lt.trim()).length) === 0 && (R = 0, le = "")), 0 < ke)
+ switch (R) {
case 115:
se = se.replace(M, i);
case 100:
@@ -842,7 +850,7 @@ function M0(e) {
se = se.replace(y, "$1 $2"), le = se + "{" + le + "}", le = ee === 1 || ee === 2 && a("@" + le, 3) ? "@-webkit-" + le + "@" + le : "@" + le;
break;
default:
- le = se + le, B === 112 && (le = (Ae += le, ""));
+ le = se + le, B === 112 && (le = (Oe += le, ""));
}
else
le = "";
@@ -850,94 +858,94 @@ function M0(e) {
default:
le = t(T, r(T, se, ht), le, B, C + 1);
}
- Ot += le, le = ht = we = Re = ae = 0, se = "", $ = O.charCodeAt(++ye);
+ Ot += le, le = ht = we = De = ae = 0, se = "", R = A.charCodeAt(++ye);
break;
case 125:
case 59:
if (se = (0 < we ? se.replace(f, "") : se).trim(), 1 < (ke = se.length))
- switch (Re === 0 && (ae = se.charCodeAt(0), ae === 45 || 96 < ae && 123 > ae) && (ke = (se = se.replace(" ", ":")).length), 0 < ce && (lt = s(1, se, T, V, J, ne, Ae.length, B, C, B)) !== void 0 && (ke = (se = lt.trim()).length) === 0 && (se = "\0\0"), ae = se.charCodeAt(0), $ = se.charCodeAt(1), ae) {
+ switch (De === 0 && (ae = se.charCodeAt(0), ae === 45 || 96 < ae && 123 > ae) && (ke = (se = se.replace(" ", ":")).length), 0 < ce && (lt = s(1, se, T, V, J, ne, Oe.length, B, C, B)) !== void 0 && (ke = (se = lt.trim()).length) === 0 && (se = "\0\0"), ae = se.charCodeAt(0), R = se.charCodeAt(1), ae) {
case 0:
break;
case 64:
- if ($ === 105 || $ === 99) {
- xt += se + O.charAt(ye);
+ if (R === 105 || R === 99) {
+ xt += se + A.charAt(ye);
break;
}
default:
- se.charCodeAt(ke - 1) !== 58 && (Ae += o(se, ae, $, se.charCodeAt(2)));
+ se.charCodeAt(ke - 1) !== 58 && (Oe += o(se, ae, R, se.charCodeAt(2)));
}
- ht = we = Re = ae = 0, se = "", $ = O.charCodeAt(++ye);
+ ht = we = De = ae = 0, se = "", R = A.charCodeAt(++ye);
}
}
- switch ($) {
+ switch (R) {
case 13:
case 10:
- A === 47 ? A = 0 : 1 + ae === 0 && B !== 107 && 0 < se.length && (we = 1, se += "\0"), 0 < ce * F && s(0, se, T, V, J, ne, Ae.length, B, C, B), ne = 1, J++;
+ O === 47 ? O = 0 : 1 + ae === 0 && B !== 107 && 0 < se.length && (we = 1, se += "\0"), 0 < ce * F && s(0, se, T, V, J, ne, Oe.length, B, C, B), ne = 1, J++;
break;
case 59:
case 125:
- if (A + Y + Z + H === 0) {
+ if (O + Y + Z + H === 0) {
ne++;
break;
}
default:
- switch (ne++, Me = O.charAt(ye), $) {
+ switch (ne++, Ie = A.charAt(ye), R) {
case 9:
case 32:
- if (Y + H + A === 0)
+ if (Y + H + O === 0)
switch (Se) {
case 44:
case 58:
case 9:
case 32:
- Me = "";
+ Ie = "";
break;
default:
- $ !== 32 && (Me = " ");
+ R !== 32 && (Ie = " ");
}
break;
case 0:
- Me = "\\0";
+ Ie = "\\0";
break;
case 12:
- Me = "\\f";
+ Ie = "\\f";
break;
case 11:
- Me = "\\v";
+ Ie = "\\v";
break;
case 38:
- Y + A + H === 0 && (we = ht = 1, Me = "\f" + Me);
+ Y + O + H === 0 && (we = ht = 1, Ie = "\f" + Ie);
break;
case 108:
- if (Y + A + H + Q === 0 && 0 < Re)
- switch (ye - Re) {
+ if (Y + O + H + Q === 0 && 0 < De)
+ switch (ye - De) {
case 2:
- Se === 112 && O.charCodeAt(ye - 3) === 58 && (Q = Se);
+ Se === 112 && A.charCodeAt(ye - 3) === 58 && (Q = Se);
case 8:
he === 111 && (Q = he);
}
break;
case 58:
- Y + A + H === 0 && (Re = ye);
+ Y + O + H === 0 && (De = ye);
break;
case 44:
- A + Z + Y + H === 0 && (we = 1, Me += "\r");
+ O + Z + Y + H === 0 && (we = 1, Ie += "\r");
break;
case 34:
case 39:
- A === 0 && (Y = Y === $ ? 0 : Y === 0 ? $ : Y);
+ O === 0 && (Y = Y === R ? 0 : Y === 0 ? R : Y);
break;
case 91:
- Y + A + Z === 0 && H++;
+ Y + O + Z === 0 && H++;
break;
case 93:
- Y + A + Z === 0 && H--;
+ Y + O + Z === 0 && H--;
break;
case 41:
- Y + A + H === 0 && Z--;
+ Y + O + H === 0 && Z--;
break;
case 40:
- if (Y + A + H === 0) {
+ if (Y + O + H === 0) {
if (ae === 0)
switch (2 * Se + 3 * he) {
case 533:
@@ -949,65 +957,65 @@ function M0(e) {
}
break;
case 64:
- A + Z + Y + H + Re + le === 0 && (le = 1);
+ O + Z + Y + H + De + le === 0 && (le = 1);
break;
case 42:
case 47:
if (!(0 < Y + H + Z))
- switch (A) {
+ switch (O) {
case 0:
- switch (2 * $ + 3 * O.charCodeAt(ye + 1)) {
+ switch (2 * R + 3 * A.charCodeAt(ye + 1)) {
case 235:
- A = 47;
+ O = 47;
break;
case 220:
- ke = ye, A = 42;
+ ke = ye, O = 42;
}
break;
case 42:
- $ === 47 && Se === 42 && ke + 2 !== ye && (O.charCodeAt(ke + 2) === 33 && (Ae += O.substring(ke, ye + 1)), Me = "", A = 0);
+ R === 47 && Se === 42 && ke + 2 !== ye && (A.charCodeAt(ke + 2) === 33 && (Oe += A.substring(ke, ye + 1)), Ie = "", O = 0);
}
}
- A === 0 && (se += Me);
+ O === 0 && (se += Ie);
}
- he = Se, Se = $, ye++;
+ he = Se, Se = R, ye++;
}
- if (ke = Ae.length, 0 < ke) {
- if (we = T, 0 < ce && (lt = s(2, Ae, we, V, J, ne, ke, B, C, B), lt !== void 0 && (Ae = lt).length === 0))
- return xt + Ae + Ot;
- if (Ae = we.join(",") + "{" + Ae + "}", ee * Q !== 0) {
- switch (ee !== 2 || a(Ae, 2) || (Q = 0), Q) {
+ if (ke = Oe.length, 0 < ke) {
+ if (we = T, 0 < ce && (lt = s(2, Oe, we, V, J, ne, ke, B, C, B), lt !== void 0 && (Oe = lt).length === 0))
+ return xt + Oe + Ot;
+ if (Oe = we.join(",") + "{" + Oe + "}", ee * Q !== 0) {
+ switch (ee !== 2 || a(Oe, 2) || (Q = 0), Q) {
case 111:
- Ae = Ae.replace(k, ":-moz-$1") + Ae;
+ Oe = Oe.replace(_, ":-moz-$1") + Oe;
break;
case 112:
- Ae = Ae.replace(S, "::-webkit-input-$1") + Ae.replace(S, "::-moz-$1") + Ae.replace(S, ":-ms-input-$1") + Ae;
+ Oe = Oe.replace(S, "::-webkit-input-$1") + Oe.replace(S, "::-moz-$1") + Oe.replace(S, ":-ms-input-$1") + Oe;
}
Q = 0;
}
}
- return xt + Ae + Ot;
+ return xt + Oe + Ot;
}
- function r(V, T, O) {
+ function r(V, T, A) {
var B = T.trim().split(v);
T = B;
var C = B.length, H = V.length;
switch (H) {
case 0:
case 1:
- var A = 0;
- for (V = H === 0 ? "" : V[0] + " "; A < C; ++A)
- T[A] = n(V, T[A], O).trim();
+ var O = 0;
+ for (V = H === 0 ? "" : V[0] + " "; O < C; ++O)
+ T[O] = n(V, T[O], A).trim();
break;
default:
- var Z = A = 0;
- for (T = []; A < C; ++A)
+ var Z = O = 0;
+ for (T = []; O < C; ++O)
for (var Y = 0; Y < H; ++Y)
- T[Z++] = n(V[Y] + " ", B[A], O).trim();
+ T[Z++] = n(V[Y] + " ", B[O], A).trim();
}
return T;
}
- function n(V, T, O) {
+ function n(V, T, A) {
var B = T.charCodeAt(0);
switch (33 > B && (B = (T = T.trim()).charCodeAt(0)), B) {
case 38:
@@ -1015,17 +1023,17 @@ function M0(e) {
case 58:
return V.trim() + T.replace(b, "$1" + V.trim());
default:
- if (0 < 1 * O && 0 < T.indexOf("\f"))
+ if (0 < 1 * A && 0 < T.indexOf("\f"))
return T.replace(b, (V.charCodeAt(0) === 58 ? "" : "$1") + V.trim());
}
return V + T;
}
- function o(V, T, O, B) {
- var C = V + ";", H = 2 * T + 3 * O + 4 * B;
+ function o(V, T, A, B) {
+ var C = V + ";", H = 2 * T + 3 * A + 4 * B;
if (H === 944) {
V = C.indexOf(":", 9) + 1;
- var A = C.substring(V, C.length - 1).trim();
- return A = C.substring(0, V).trim() + A + ";", ee === 1 || ee === 2 && a(A, 1) ? "-webkit-" + A + A : A;
+ var O = C.substring(V, C.length - 1).trim();
+ return O = C.substring(0, V).trim() + O + ";", ee === 1 || ee === 2 && a(O, 1) ? "-webkit-" + O + O : O;
}
if (ee === 0 || ee === 2 && !a(C, 1))
return C;
@@ -1069,45 +1077,45 @@ function M0(e) {
case 1023:
if (C.charCodeAt(8) !== 99)
break;
- return A = C.substring(C.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + A + "-webkit-" + C + "-ms-flex-pack" + A + C;
+ return O = C.substring(C.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + O + "-webkit-" + C + "-ms-flex-pack" + O + C;
case 1005:
return m.test(C) ? C.replace(p, ":-webkit-") + C.replace(p, ":-moz-") + C : C;
case 1e3:
- switch (A = C.substring(13).trim(), T = A.indexOf("-") + 1, A.charCodeAt(0) + A.charCodeAt(T)) {
+ switch (O = C.substring(13).trim(), T = O.indexOf("-") + 1, O.charCodeAt(0) + O.charCodeAt(T)) {
case 226:
- A = C.replace(w, "tb");
+ O = C.replace(w, "tb");
break;
case 232:
- A = C.replace(w, "tb-rl");
+ O = C.replace(w, "tb-rl");
break;
case 220:
- A = C.replace(w, "lr");
+ O = C.replace(w, "lr");
break;
default:
return C;
}
- return "-webkit-" + C + "-ms-" + A + C;
+ return "-webkit-" + C + "-ms-" + O + C;
case 1017:
if (C.indexOf("sticky", 9) === -1)
break;
case 975:
- switch (T = (C = V).length - 10, A = (C.charCodeAt(T) === 33 ? C.substring(0, T) : C).substring(V.indexOf(":", 7) + 1).trim(), H = A.charCodeAt(0) + (A.charCodeAt(7) | 0)) {
+ switch (T = (C = V).length - 10, O = (C.charCodeAt(T) === 33 ? C.substring(0, T) : C).substring(V.indexOf(":", 7) + 1).trim(), H = O.charCodeAt(0) + (O.charCodeAt(7) | 0)) {
case 203:
- if (111 > A.charCodeAt(8))
+ if (111 > O.charCodeAt(8))
break;
case 115:
- C = C.replace(A, "-webkit-" + A) + ";" + C;
+ C = C.replace(O, "-webkit-" + O) + ";" + C;
break;
case 207:
case 102:
- C = C.replace(A, "-webkit-" + (102 < H ? "inline-" : "") + "box") + ";" + C.replace(A, "-webkit-" + A) + ";" + C.replace(A, "-ms-" + A + "box") + ";" + C;
+ C = C.replace(O, "-webkit-" + (102 < H ? "inline-" : "") + "box") + ";" + C.replace(O, "-webkit-" + O) + ";" + C.replace(O, "-ms-" + O + "box") + ";" + C;
}
return C + ";";
case 938:
if (C.charCodeAt(5) === 45)
switch (C.charCodeAt(6)) {
case 105:
- return A = C.replace("-items", ""), "-webkit-" + C + "-webkit-box-" + A + "-ms-flex-" + A + C;
+ return O = C.replace("-items", ""), "-webkit-" + C + "-webkit-box-" + O + "-ms-flex-" + O + C;
case 115:
return "-webkit-" + C + "-ms-flex-item-" + C.replace(I, "") + C;
default:
@@ -1121,25 +1129,25 @@ function M0(e) {
case 931:
case 953:
if (j.test(V) === !0)
- return (A = V.substring(V.indexOf(":") + 1)).charCodeAt(0) === 115 ? o(V.replace("stretch", "fill-available"), T, O, B).replace(":fill-available", ":stretch") : C.replace(A, "-webkit-" + A) + C.replace(A, "-moz-" + A.replace("fill-", "")) + C;
+ return (O = V.substring(V.indexOf(":") + 1)).charCodeAt(0) === 115 ? o(V.replace("stretch", "fill-available"), T, A, B).replace(":fill-available", ":stretch") : C.replace(O, "-webkit-" + O) + C.replace(O, "-moz-" + O.replace("fill-", "")) + C;
break;
case 962:
- if (C = "-webkit-" + C + (C.charCodeAt(5) === 102 ? "-ms-" + C : "") + C, O + B === 211 && C.charCodeAt(13) === 105 && 0 < C.indexOf("transform", 10))
+ if (C = "-webkit-" + C + (C.charCodeAt(5) === 102 ? "-ms-" + C : "") + C, A + B === 211 && C.charCodeAt(13) === 105 && 0 < C.indexOf("transform", 10))
return C.substring(0, C.indexOf(";", 27) + 1).replace(h, "$1-webkit-$2") + C;
}
return C;
}
function a(V, T) {
- var O = V.indexOf(T === 1 ? ":" : "{"), B = V.substring(0, T !== 3 ? O : 10);
- return O = V.substring(O + 1, V.length - 1), fe(T !== 2 ? B : B.replace(z, "$1"), O, T);
+ var A = V.indexOf(T === 1 ? ":" : "{"), B = V.substring(0, T !== 3 ? A : 10);
+ return A = V.substring(A + 1, V.length - 1), fe(T !== 2 ? B : B.replace(z, "$1"), A, T);
}
function i(V, T) {
- var O = o(T, T.charCodeAt(0), T.charCodeAt(1), T.charCodeAt(2));
- return O !== T + ";" ? O.replace(P, " or ($1)").substring(4) : "(" + T + ")";
+ var A = o(T, T.charCodeAt(0), T.charCodeAt(1), T.charCodeAt(2));
+ return A !== T + ";" ? A.replace(P, " or ($1)").substring(4) : "(" + T + ")";
}
- function s(V, T, O, B, C, H, A, Z, Y, ae) {
- for (var $ = 0, Se = T, he; $ < ce; ++$)
- switch (he = D[$].call(u, V, Se, O, B, C, H, A, Z, Y, ae)) {
+ function s(V, T, A, B, C, H, O, Z, Y, ae) {
+ for (var R = 0, Se = T, he; R < ce; ++R)
+ switch (he = D[R].call(u, V, Se, A, B, C, H, O, Z, Y, ae)) {
case void 0:
case !1:
case !0:
@@ -1161,7 +1169,7 @@ function M0(e) {
if (typeof V == "function")
D[ce++] = V;
else if (typeof V == "object")
- for (var T = 0, O = V.length; T < O; ++T)
+ for (var T = 0, A = V.length; T < A; ++T)
l(V[T]);
else
F = !!V | 0;
@@ -1172,18 +1180,18 @@ function M0(e) {
return V = V.prefix, V !== void 0 && (fe = null, V ? typeof V != "function" ? ee = 1 : (ee = 2, fe = V) : ee = 0), c;
}
function u(V, T) {
- var O = V;
- if (33 > O.charCodeAt(0) && (O = O.trim()), N = O, O = [N], 0 < ce) {
- var B = s(-1, T, O, O, J, ne, 0, 0, 0, 0);
+ var A = V;
+ if (33 > A.charCodeAt(0) && (A = A.trim()), N = A, A = [N], 0 < ce) {
+ var B = s(-1, T, A, A, J, ne, 0, 0, 0, 0);
B !== void 0 && typeof B == "string" && (T = B);
}
- var C = t(oe, O, T, 0, 0);
- return 0 < ce && (B = s(-2, C, O, O, J, ne, C.length, 0, 0, 0), B !== void 0 && (C = B)), N = "", Q = 0, ne = J = 1, C;
+ var C = t(oe, A, T, 0, 0);
+ return 0 < ce && (B = s(-2, C, A, A, J, ne, C.length, 0, 0, 0), B !== void 0 && (C = B)), N = "", Q = 0, ne = J = 1, C;
}
- var d = /^\0+/g, f = /[\0\r\f]/g, p = /: */g, m = /zoo|gra/, h = /([,: ])(transform)/g, v = /,\r+?/g, b = /([\t\r\n ])*\f?&/g, y = /@(k\w+)\s*(\S*)\s*/, S = /::(place)/g, k = /:(read-only)/g, w = /[svh]\w+-[tblr]{2}/, M = /\(\s*(.*)\s*\)/g, P = /([\s\S]*?);/g, I = /-self|flex-/g, z = /[^]*?(:[rp][el]a[\w-]+)[^]*/, j = /stretch|:\s*\w+\-(?:conte|avail)/, X = /([^-])(image-set\()/, ne = 1, J = 1, Q = 0, ee = 1, oe = [], D = [], ce = 0, fe = null, F = 0, N = "";
+ var d = /^\0+/g, f = /[\0\r\f]/g, p = /: */g, m = /zoo|gra/, h = /([,: ])(transform)/g, v = /,\r+?/g, b = /([\t\r\n ])*\f?&/g, y = /@(k\w+)\s*(\S*)\s*/, S = /::(place)/g, _ = /:(read-only)/g, w = /[svh]\w+-[tblr]{2}/, M = /\(\s*(.*)\s*\)/g, P = /([\s\S]*?);/g, I = /-self|flex-/g, z = /[^]*?(:[rp][el]a[\w-]+)[^]*/, j = /stretch|:\s*\w+\-(?:conte|avail)/, X = /([^-])(image-set\()/, ne = 1, J = 1, Q = 0, ee = 1, oe = [], D = [], ce = 0, fe = null, F = 0, N = "";
return u.use = l, u.set = c, e !== void 0 && c(e), u;
}
-var Xd = function(t) {
+var Gd = function(t) {
var r = /* @__PURE__ */ new WeakMap();
return function(n) {
if (r.has(n))
@@ -1191,18 +1199,18 @@ var Xd = function(t) {
var o = t(n);
return r.set(n, o), o;
};
-}, Pc = "/*|*/", I0 = Pc + "}";
-function F0(e) {
- e && Pa.current.insert(e + "}");
+}, Ec = "/*|*/", D0 = Ec + "}";
+function M0(e) {
+ e && Aa.current.insert(e + "}");
}
-var Pa = {
+var Aa = {
current: null
-}, N0 = function(t, r, n, o, a, i, s, l, c, u) {
+}, I0 = function(t, r, n, o, a, i, s, l, c, u) {
switch (t) {
case 1: {
switch (r.charCodeAt(0)) {
case 64:
- return Pa.current.insert(r + ";"), "";
+ return Aa.current.insert(r + ";"), "";
case 108:
if (r.charCodeAt(2) === 98)
return "";
@@ -1211,27 +1219,27 @@ var Pa = {
}
case 2: {
if (l === 0)
- return r + Pc;
+ return r + Ec;
break;
}
case 3:
switch (l) {
case 102:
case 112:
- return Pa.current.insert(n[0] + r), "";
+ return Aa.current.insert(n[0] + r), "";
default:
- return r + (u === 0 ? Pc : "");
+ return r + (u === 0 ? Ec : "");
}
case -2:
- r.split(I0).forEach(F0);
+ r.split(D0).forEach(M0);
}
-}, j0 = function(t) {
+}, F0 = function(t) {
t === void 0 && (t = {});
var r = t.key || "css", n;
t.prefix !== void 0 && (n = {
prefix: t.prefix
});
- var o = new M0(n);
+ var o = new $0(n);
if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(r))
throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + r + '" was passed');
var a = {}, i;
@@ -1246,13 +1254,13 @@ var Pa = {
});
}
var l;
- if (o.use(t.stylisPlugins)(N0), l = function(p, m, h, v) {
+ if (o.use(t.stylisPlugins)(I0), l = function(p, m, h, v) {
var b = m.name;
- if (Pa.current = h, process.env.NODE_ENV !== "production" && m.map !== void 0) {
+ if (Aa.current = h, process.env.NODE_ENV !== "production" && m.map !== void 0) {
var y = m.map;
- Pa.current = {
- insert: function(k) {
- h.insert(k + y);
+ Aa.current = {
+ insert: function(_) {
+ h.insert(_ + y);
}
};
}
@@ -1288,7 +1296,7 @@ var Pa = {
}
var d = {
key: r,
- sheet: new D0({
+ sheet: new R0({
key: r,
container: i,
nonce: t.nonce,
@@ -1300,14 +1308,14 @@ var Pa = {
insert: l
};
return d;
-}, B0 = !0;
-function _m(e, t, r) {
+}, N0 = !0;
+function wm(e, t, r) {
var n = "";
return r.split(" ").forEach(function(o) {
e[o] !== void 0 ? t.push(e[o]) : n += o + " ";
}), n;
}
-var km = function(t, r, n) {
+var Cm = function(t, r, n) {
var o = t.key + "-" + r.name;
if (
// we only need to add the styles to the registered cache if the
@@ -1319,7 +1327,7 @@ var km = function(t, r, n) {
// in node since emotion-server relies on whether a style is in
// the registered cache to know whether a style is global or not
// also, note that this check will be dead code eliminated in the browser
- B0 === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles), t.inserted[r.name] === void 0
+ N0 === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles), t.inserted[r.name] === void 0
) {
var a = r;
do
@@ -1327,7 +1335,7 @@ var km = function(t, r, n) {
while (a !== void 0);
}
};
-function z0(e) {
+function j0(e) {
for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
@@ -1346,7 +1354,7 @@ function z0(e) {
return t ^= t >>> 13, t = /* Math.imul(h, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
}
-var V0 = {
+var B0 = {
animationIterationCount: 1,
borderImageOutset: 1,
borderImageSlice: 1,
@@ -1393,21 +1401,21 @@ var V0 = {
strokeMiterlimit: 1,
strokeOpacity: 1,
strokeWidth: 1
-}, Kd = `You have illegal escape sequence in your template literal, most likely inside content's property value.
+}, Xd = `You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
-https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, L0 = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", W0 = /[A-Z]|^ms/g, Em = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Pu = function(t) {
+https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, z0 = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", V0 = /[A-Z]|^ms/g, _m = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ku = function(t) {
return t.charCodeAt(1) === 45;
-}, Zd = function(t) {
+}, Kd = function(t) {
return t != null && typeof t != "boolean";
-}, El = wm(function(e) {
- return Pu(e) ? e : e.replace(W0, "-$&").toLowerCase();
+}, _l = xm(function(e) {
+ return ku(e) ? e : e.replace(V0, "-$&").toLowerCase();
}), ss = function(t, r) {
switch (t) {
case "animation":
case "animationName":
if (typeof r == "string")
- return r.replace(Em, function(n, o, a) {
+ return r.replace(_m, function(n, o, a) {
return vr = {
name: o,
styles: a,
@@ -1415,20 +1423,20 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
}, o;
});
}
- return V0[t] !== 1 && !Pu(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
+ return B0[t] !== 1 && !ku(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
};
if (process.env.NODE_ENV !== "production") {
- var U0 = /(attr|calc|counters?|url)\(/, H0 = ["normal", "none", "counter", "open-quote", "close-quote", "no-open-quote", "no-close-quote", "initial", "inherit", "unset"], Y0 = ss, q0 = /^-ms-/, G0 = /-(.)/g, Jd = {};
+ var L0 = /(attr|calc|counters?|url)\(/, W0 = ["normal", "none", "counter", "open-quote", "close-quote", "no-open-quote", "no-close-quote", "initial", "inherit", "unset"], U0 = ss, H0 = /^-ms-/, Y0 = /-(.)/g, Zd = {};
ss = function(t, r) {
- t === "content" && (typeof r != "string" || H0.indexOf(r) === -1 && !U0.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`");
- var n = Y0(t, r);
- return n !== "" && !Pu(t) && t.indexOf("-") !== -1 && Jd[t] === void 0 && (Jd[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(q0, "ms-").replace(G0, function(o, a) {
+ t === "content" && (typeof r != "string" || W0.indexOf(r) === -1 && !L0.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`");
+ var n = U0(t, r);
+ return n !== "" && !ku(t) && t.indexOf("-") !== -1 && Zd[t] === void 0 && (Zd[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(H0, "ms-").replace(Y0, function(o, a) {
return a.toUpperCase();
}) + "?")), n;
};
}
-var Qd = !0;
-function Ta(e, t, r, n) {
+var Jd = !0;
+function Oa(e, t, r, n) {
if (r == null)
return "";
if (r.__emotion_styles !== void 0) {
@@ -1458,19 +1466,19 @@ function Ta(e, t, r, n) {
var a = r.styles + ";";
return process.env.NODE_ENV !== "production" && r.map !== void 0 && (a += r.map), a;
}
- return X0(e, t, r);
+ return q0(e, t, r);
}
case "function": {
if (e !== void 0) {
var i = vr, s = r(e);
- return vr = i, Ta(e, t, s, n);
+ return vr = i, Oa(e, t, s, n);
} else
process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
break;
}
case "string":
if (process.env.NODE_ENV !== "production") {
- var l = [], c = r.replace(Em, function(d, f, p) {
+ var l = [], c = r.replace(_m, function(d, f, p) {
var m = "animation" + l.length;
return l.push("const " + m + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + m + "}";
});
@@ -1486,59 +1494,59 @@ You should wrap it with \`css\` like this:
if (t == null)
return r;
var u = t[r];
- return process.env.NODE_ENV !== "production" && n && Qd && u !== void 0 && (console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"), Qd = !1), u !== void 0 && !n ? u : r;
+ return process.env.NODE_ENV !== "production" && n && Jd && u !== void 0 && (console.error("Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion"), Jd = !1), u !== void 0 && !n ? u : r;
}
-function X0(e, t, r) {
+function q0(e, t, r) {
var n = "";
if (Array.isArray(r))
for (var o = 0; o < r.length; o++)
- n += Ta(e, t, r[o], !1);
+ n += Oa(e, t, r[o], !1);
else
for (var a in r) {
var i = r[a];
if (typeof i != "object")
- t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : Zd(i) && (n += El(a) + ":" + ss(a, i) + ";");
+ t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : Kd(i) && (n += _l(a) + ":" + ss(a, i) + ";");
else {
if (a === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");
if (Array.isArray(i) && typeof i[0] == "string" && (t == null || t[i[0]] === void 0))
for (var s = 0; s < i.length; s++)
- Zd(i[s]) && (n += El(a) + ":" + ss(a, i[s]) + ";");
+ Kd(i[s]) && (n += _l(a) + ":" + ss(a, i[s]) + ";");
else {
- var l = Ta(e, t, i, !1);
+ var l = Oa(e, t, i, !1);
switch (a) {
case "animation":
case "animationName": {
- n += El(a) + ":" + l + ";";
+ n += _l(a) + ":" + l + ";";
break;
}
default:
- process.env.NODE_ENV !== "production" && a === "undefined" && console.error(L0), n += a + "{" + l + "}";
+ process.env.NODE_ENV !== "production" && a === "undefined" && console.error(z0), n += a + "{" + l + "}";
}
}
}
}
return n;
}
-var ef = /label:\s*([^\s;\n{]+)\s*;/g, Pm;
-process.env.NODE_ENV !== "production" && (Pm = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);
-var vr, Tc = function(t, r, n) {
+var Qd = /label:\s*([^\s;\n{]+)\s*;/g, km;
+process.env.NODE_ENV !== "production" && (km = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);
+var vr, Pc = function(t, r, n) {
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
return t[0];
var o = !0, a = "";
vr = void 0;
var i = t[0];
- i == null || i.raw === void 0 ? (o = !1, a += Ta(n, r, i, !1)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Kd), a += i[0]);
+ i == null || i.raw === void 0 ? (o = !1, a += Oa(n, r, i, !1)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Xd), a += i[0]);
for (var s = 1; s < t.length; s++)
- a += Ta(n, r, t[s], a.charCodeAt(a.length - 1) === 46), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Kd), a += i[s]);
+ a += Oa(n, r, t[s], a.charCodeAt(a.length - 1) === 46), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Xd), a += i[s]);
var l;
- process.env.NODE_ENV !== "production" && (a = a.replace(Pm, function(f) {
+ process.env.NODE_ENV !== "production" && (a = a.replace(km, function(f) {
return l = f, "";
- })), ef.lastIndex = 0;
- for (var c = "", u; (u = ef.exec(a)) !== null; )
+ })), Qd.lastIndex = 0;
+ for (var c = "", u; (u = Qd.exec(a)) !== null; )
c += "-" + // $FlowFixMe we know it's not null
u[1];
- var d = z0(a) + c;
+ var d = j0(a) + c;
return process.env.NODE_ENV !== "production" ? {
name: d,
styles: a,
@@ -1552,57 +1560,57 @@ var vr, Tc = function(t, r, n) {
styles: a,
next: vr
};
-}, K0 = Object.prototype.hasOwnProperty, Tm = /* @__PURE__ */ Cr(
+}, G0 = Object.prototype.hasOwnProperty, Em = /* @__PURE__ */ Cr(
// we're doing this to avoid preconstruct's dead code elimination in this one case
// because this module is primarily intended for the browser and node
// but it's also required in react native and similar environments sometimes
// and we could have a special build just for that
// but this is much easier and the native packages
// might use a different theme context in the future anyway
- typeof HTMLElement < "u" ? j0() : null
-), Aa = /* @__PURE__ */ Cr({});
-Tm.Provider;
-var Am = function(t) {
+ typeof HTMLElement < "u" ? F0() : null
+), Ra = /* @__PURE__ */ Cr({});
+Em.Provider;
+var Pm = function(t) {
var r = function(o, a) {
- return /* @__PURE__ */ ir(Tm.Consumer, null, function(i) {
+ return /* @__PURE__ */ ir(Em.Consumer, null, function(i) {
return t(o, i, a);
});
};
return /* @__PURE__ */ At(r);
-}, tf = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", rf = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", Z0 = function() {
+}, ef = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", tf = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", X0 = function() {
return null;
-}, nf = function(t, r, n, o) {
+}, rf = function(t, r, n, o) {
var a = n === null ? r.css : r.css(n);
typeof a == "string" && t.registered[a] !== void 0 && (a = t.registered[a]);
- var i = r[tf], s = [a], l = "";
- typeof r.className == "string" ? l = _m(t.registered, s, r.className) : r.className != null && (l = r.className + " ");
- var c = Tc(s);
+ var i = r[ef], s = [a], l = "";
+ typeof r.className == "string" ? l = wm(t.registered, s, r.className) : r.className != null && (l = r.className + " ");
+ var c = Pc(s);
if (process.env.NODE_ENV !== "production" && c.name.indexOf("-") === -1) {
- var u = r[rf];
- u && (c = Tc([c, "label:" + u + ";"]));
+ var u = r[tf];
+ u && (c = Pc([c, "label:" + u + ";"]));
}
- km(t, c, typeof i == "string"), l += t.key + "-" + c.name;
+ Cm(t, c, typeof i == "string"), l += t.key + "-" + c.name;
var d = {};
for (var f in r)
- K0.call(r, f) && f !== "css" && f !== tf && (process.env.NODE_ENV === "production" || f !== rf) && (d[f] = r[f]);
+ G0.call(r, f) && f !== "css" && f !== ef && (process.env.NODE_ENV === "production" || f !== tf) && (d[f] = r[f]);
d.ref = o, d.className = l;
- var p = /* @__PURE__ */ ir(i, d), m = /* @__PURE__ */ ir(Z0, null);
- return /* @__PURE__ */ ir(ku, null, m, p);
-}, J0 = /* @__PURE__ */ Am(function(e, t, r) {
- return typeof e.css == "function" ? /* @__PURE__ */ ir(Aa.Consumer, null, function(n) {
- return nf(t, e, n, r);
- }) : nf(t, e, null, r);
+ var p = /* @__PURE__ */ ir(i, d), m = /* @__PURE__ */ ir(X0, null);
+ return /* @__PURE__ */ ir(wu, null, m, p);
+}, K0 = /* @__PURE__ */ Pm(function(e, t, r) {
+ return typeof e.css == "function" ? /* @__PURE__ */ ir(Ra.Consumer, null, function(n) {
+ return rf(t, e, n, r);
+ }) : rf(t, e, null, r);
});
-process.env.NODE_ENV !== "production" && (J0.displayName = "EmotionCssPropInternal");
-var Q0 = Cm, ex = function(t) {
+process.env.NODE_ENV !== "production" && (K0.displayName = "EmotionCssPropInternal");
+var Z0 = Sm, J0 = function(t) {
return t !== "theme" && t !== "innerRef";
-}, of = function(t) {
+}, nf = function(t) {
return typeof t == "string" && // 96 is one less than the char code
// for "a" so this is checking that
// it's a lowercase character
- t.charCodeAt(0) > 96 ? Q0 : ex;
+ t.charCodeAt(0) > 96 ? Z0 : J0;
};
-function af(e, t) {
+function of(e, t) {
var r = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
@@ -1612,23 +1620,23 @@ function af(e, t) {
}
return r;
}
-function tx(e) {
+function Q0(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t] != null ? arguments[t] : {};
- t % 2 ? af(Object(r), !0).forEach(function(n) {
- Sm(e, n, r[n]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : af(Object(r)).forEach(function(n) {
+ t % 2 ? of(Object(r), !0).forEach(function(n) {
+ _u(e, n, r[n]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : of(Object(r)).forEach(function(n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
});
}
return e;
}
-var sf = `You have illegal escape sequence in your template literal, most likely inside content's property value.
+var af = `You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
-https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, rx = function() {
+https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, ex = function() {
return null;
-}, nx = function e(t, r) {
+}, tx = function e(t, r) {
if (process.env.NODE_ENV !== "production" && t === void 0)
throw new Error(`You are trying to create a styled element with an undefined component.
You may have forgotten to import it.`);
@@ -1639,35 +1647,35 @@ You may have forgotten to import it.`);
} : r.shouldForwardProp);
var i = t.__emotion_real === t, s = i && t.__emotion_base || t;
typeof o != "function" && i && (o = t.__emotion_forwardProp);
- var l = o || of(s), c = !l("as");
+ var l = o || nf(s), c = !l("as");
return function() {
var u = arguments, d = i && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
if (n !== void 0 && d.push("label:" + n + ";"), u[0] == null || u[0].raw === void 0)
d.push.apply(d, u);
else {
- process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(sf), d.push(u[0][0]);
+ process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(af), d.push(u[0][0]);
for (var f = u.length, p = 1; p < f; p++)
- process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error(sf), d.push(u[p], u[0][p]);
+ process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error(af), d.push(u[p], u[0][p]);
}
- var m = Am(function(h, v, b) {
- return /* @__PURE__ */ ir(Aa.Consumer, null, function(y) {
- var S = c && h.as || s, k = "", w = [], M = h;
+ var m = Pm(function(h, v, b) {
+ return /* @__PURE__ */ ir(Ra.Consumer, null, function(y) {
+ var S = c && h.as || s, _ = "", w = [], M = h;
if (h.theme == null) {
M = {};
for (var P in h)
M[P] = h[P];
M.theme = y;
}
- typeof h.className == "string" ? k = _m(v.registered, w, h.className) : h.className != null && (k = h.className + " ");
- var I = Tc(d.concat(w), v.registered, M);
- km(v, I, typeof S == "string"), k += v.key + "-" + I.name, a !== void 0 && (k += " " + a);
- var z = c && o === void 0 ? of(S) : l, j = {};
+ typeof h.className == "string" ? _ = wm(v.registered, w, h.className) : h.className != null && (_ = h.className + " ");
+ var I = Pc(d.concat(w), v.registered, M);
+ Cm(v, I, typeof S == "string"), _ += v.key + "-" + I.name, a !== void 0 && (_ += " " + a);
+ var z = c && o === void 0 ? nf(S) : l, j = {};
for (var X in h)
c && X === "as" || // $FlowFixMe
z(X) && (j[X] = h[X]);
- j.className = k, j.ref = b || h.innerRef, process.env.NODE_ENV !== "production" && h.innerRef && console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead" + (n === void 0 ? "" : " in the usage of `" + n + "`"));
- var ne = /* @__PURE__ */ ir(S, j), J = /* @__PURE__ */ ir(rx, null);
- return /* @__PURE__ */ ir(ku, null, J, ne);
+ j.className = _, j.ref = b || h.innerRef, process.env.NODE_ENV !== "production" && h.innerRef && console.error("`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead" + (n === void 0 ? "" : " in the usage of `" + n + "`"));
+ var ne = /* @__PURE__ */ ir(S, j), J = /* @__PURE__ */ ir(ex, null);
+ return /* @__PURE__ */ ir(wu, null, J, ne);
});
});
return m.displayName = n !== void 0 ? n : "Styled(" + (typeof s == "string" ? s : s.displayName || s.name || "Component") + ")", m.defaultProps = t.defaultProps, m.__emotion_real = m, m.__emotion_base = s, m.__emotion_styles = d, m.__emotion_forwardProp = o, Object.defineProperty(m, "toString", {
@@ -1675,10 +1683,10 @@ You may have forgotten to import it.`);
return a === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + a;
}
}), m.withComponent = function(h, v) {
- return e(h, v !== void 0 ? tx({}, r || {}, {}, v) : r).apply(void 0, d);
+ return e(h, v !== void 0 ? Q0({}, r || {}, {}, v) : r).apply(void 0, d);
}, m;
};
-}, ox = [
+}, rx = [
"a",
"abbr",
"address",
@@ -1814,24 +1822,24 @@ You may have forgotten to import it.`);
"svg",
"text",
"tspan"
-], Ac = nx.bind();
-ox.forEach(function(e) {
- Ac[e] = Ac(e);
+], Tc = tx.bind();
+rx.forEach(function(e) {
+ Tc[e] = Tc(e);
});
-const ax = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
+const nx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
- default: Ac
-}, Symbol.toStringTag, { value: "Module" })), ix = /* @__PURE__ */ Fs(ax);
+ default: Tc
+}, Symbol.toStringTag, { value: "Module" })), ox = /* @__PURE__ */ Is(nx);
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
-var Pl, lf;
-function Om() {
- if (lf)
- return Pl;
- lf = 1;
+var kl, sf;
+function Tm() {
+ if (sf)
+ return kl;
+ sf = 1;
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
function n(a) {
if (a == null)
@@ -1860,7 +1868,7 @@ function Om() {
return !1;
}
}
- return Pl = o() ? Object.assign : function(a, i) {
+ return kl = o() ? Object.assign : function(a, i) {
for (var s, l = n(a), c, u = 1; u < arguments.length; u++) {
s = Object(arguments[u]);
for (var d in s)
@@ -1872,18 +1880,18 @@ function Om() {
}
}
return l;
- }, Pl;
+ }, kl;
}
-var sx = Om();
-const xr = /* @__PURE__ */ Is(sx);
-var cf = function(t, r) {
+var ax = Tm();
+const xr = /* @__PURE__ */ Ms(ax);
+var lf = function(t, r) {
var n = xr({}, t, r);
for (var o in t) {
var a;
!t[o] || typeof r[o] != "object" || xr(n, (a = {}, a[o] = xr(t[o], r[o]), a));
}
return n;
-}, lx = function(t) {
+}, ix = function(t) {
var r = {};
return Object.keys(t).sort(function(n, o) {
return n.localeCompare(o, void 0, {
@@ -1893,15 +1901,15 @@ var cf = function(t, r) {
}).forEach(function(n) {
r[n] = t[n];
}), r;
-}, cx = {
+}, sx = {
breakpoints: [40, 52, 64].map(function(e) {
return e + "em";
})
-}, $m = function(t) {
+}, Am = function(t) {
return "@media screen and (min-width: " + t + ")";
-}, ux = function(t, r) {
- return Qr(r, t, t);
-}, Qr = function(t, r, n, o, a) {
+}, lx = function(t, r) {
+ return en(r, t, t);
+}, en = function(t, r, n, o, a) {
for (r = r && r.split ? r.split(".") : [r], o = 0; o < r.length; o++)
t = t ? t[r[o]] : a;
return t === a ? n : t;
@@ -1910,18 +1918,18 @@ var cf = function(t, r) {
var s = {}, l = !1, c = i.theme && i.theme.disableStyledSystemCache;
for (var u in i)
if (t[u]) {
- var d = t[u], f = i[u], p = Qr(i.theme, d.scale, d.defaults);
+ var d = t[u], f = i[u], p = en(i.theme, d.scale, d.defaults);
if (typeof f == "object") {
- if (r.breakpoints = !c && r.breakpoints || Qr(i.theme, "breakpoints", cx.breakpoints), Array.isArray(f)) {
- r.media = !c && r.media || [null].concat(r.breakpoints.map($m)), s = cf(s, dx(r.media, d, p, f, i));
+ if (r.breakpoints = !c && r.breakpoints || en(i.theme, "breakpoints", sx.breakpoints), Array.isArray(f)) {
+ r.media = !c && r.media || [null].concat(r.breakpoints.map(Am)), s = lf(s, cx(r.media, d, p, f, i));
continue;
}
- f !== null && (s = cf(s, fx(r.breakpoints, d, p, f, i)), l = !0);
+ f !== null && (s = lf(s, ux(r.breakpoints, d, p, f, i)), l = !0);
continue;
}
xr(s, d(f, p, i));
}
- return l && (s = lx(s)), s;
+ return l && (s = ix(s)), s;
};
n.config = t, n.propNames = Object.keys(t), n.cache = r;
var o = Object.keys(t).filter(function(a) {
@@ -1931,7 +1939,7 @@ var cf = function(t, r) {
var i;
n[a] = e((i = {}, i[a] = t[a], i));
}), n;
-}, dx = function(t, r, n, o, a) {
+}, cx = function(t, r, n, o, a) {
var i = {};
return o.slice(0, t.length).forEach(function(s, l) {
var c = t[l], u = r(s, n, a);
@@ -1942,20 +1950,20 @@ var cf = function(t, r) {
xr(i, (d = {}, d[c] = xr({}, i[c], u), d));
}
}), i;
-}, fx = function(t, r, n, o, a) {
+}, ux = function(t, r, n, o, a) {
var i = {};
for (var s in o) {
var l = t[s], c = o[s], u = r(c, n, a);
if (!l)
xr(i, u);
else {
- var d, f = $m(l);
+ var d, f = Am(l);
xr(i, (d = {}, d[f] = xr({}, i[f], u), d));
}
}
return i;
}, ls = function(t) {
- var r = t.properties, n = t.property, o = t.scale, a = t.transform, i = a === void 0 ? ux : a, s = t.defaultScale;
+ var r = t.properties, n = t.property, o = t.scale, a = t.transform, i = a === void 0 ? lx : a, s = t.defaultScale;
r = r || [n];
var l = function(u, d, f) {
var p = {}, m = i(u, d, f);
@@ -1985,7 +1993,7 @@ var cf = function(t, r) {
});
var n = Za(r);
return n;
-}, Tu = function() {
+}, Eu = function() {
for (var t = {}, r = arguments.length, n = new Array(r), o = 0; o < r; o++)
n[o] = arguments[o];
n.forEach(function(i) {
@@ -1993,15 +2001,15 @@ var cf = function(t, r) {
});
var a = Za(t);
return a;
-}, px = function(t) {
+}, dx = function(t) {
return typeof t == "number" && !isNaN(t);
-}, hx = function(t, r) {
- return Qr(r, t, !px(t) || t > 1 ? t : t * 100 + "%");
-}, mx = {
+}, fx = function(t, r) {
+ return en(r, t, !dx(t) || t > 1 ? t : t * 100 + "%");
+}, px = {
width: {
property: "width",
scale: "sizes",
- transform: hx
+ transform: fx
},
height: {
property: "height",
@@ -2032,7 +2040,7 @@ var cf = function(t, r) {
overflowY: !0,
display: !0,
verticalAlign: !0
-}, qt = dr(mx), Oc = {
+}, qt = dr(px), Ac = {
color: {
property: "color",
scale: "colors"
@@ -2043,10 +2051,10 @@ var cf = function(t, r) {
},
opacity: !0
};
-Oc.bg = Oc.backgroundColor;
-var Au = dr(Oc), vx = {
+Ac.bg = Ac.backgroundColor;
+var Pu = dr(Ac), hx = {
fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
-}, gx = {
+}, mx = {
fontFamily: {
property: "fontFamily",
scale: "fonts"
@@ -2054,7 +2062,7 @@ var Au = dr(Oc), vx = {
fontSize: {
property: "fontSize",
scale: "fontSizes",
- defaultScale: vx.fontSizes
+ defaultScale: hx.fontSizes
},
fontWeight: {
property: "fontWeight",
@@ -2070,7 +2078,7 @@ var Au = dr(Oc), vx = {
},
textAlign: !0,
fontStyle: !0
-}, on = dr(gx), bx = {
+}, an = dr(mx), vx = {
alignItems: !0,
alignContent: !0,
justifyItems: !0,
@@ -2085,23 +2093,23 @@ var Au = dr(Oc), vx = {
justifySelf: !0,
alignSelf: !0,
order: !0
-}, Ft = dr(bx), Tl = {
+}, Ft = dr(vx), El = {
space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
-}, yx = {
+}, gx = {
gridGap: {
property: "gridGap",
scale: "space",
- defaultScale: Tl.space
+ defaultScale: El.space
},
gridColumnGap: {
property: "gridColumnGap",
scale: "space",
- defaultScale: Tl.space
+ defaultScale: El.space
},
gridRowGap: {
property: "gridRowGap",
scale: "space",
- defaultScale: Tl.space
+ defaultScale: El.space
},
gridColumn: !0,
gridRow: !0,
@@ -2112,7 +2120,7 @@ var Au = dr(Oc), vx = {
gridTemplateRows: !0,
gridTemplateAreas: !0,
gridArea: !0
-}, Gt = dr(yx), Pt = {
+}, Gt = dr(gx), Pt = {
border: {
property: "border",
scale: "borders"
@@ -2238,20 +2246,20 @@ Pt.borderRightStyle = {
property: "borderRightStyle",
scale: "borderStyles"
};
-var Sr = dr(Pt), en = {
+var Sr = dr(Pt), tn = {
background: !0,
backgroundImage: !0,
backgroundSize: !0,
backgroundPosition: !0,
backgroundRepeat: !0
};
-en.bgImage = en.backgroundImage;
-en.bgSize = en.backgroundSize;
-en.bgPosition = en.backgroundPosition;
-en.bgRepeat = en.backgroundRepeat;
-var Io = dr(en), xi = {
+tn.bgImage = tn.backgroundImage;
+tn.bgSize = tn.backgroundSize;
+tn.bgPosition = tn.backgroundPosition;
+tn.bgRepeat = tn.backgroundRepeat;
+var Fo = dr(tn), xi = {
space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
-}, xx = {
+}, bx = {
position: !0,
zIndex: {
property: "zIndex",
@@ -2277,57 +2285,57 @@ var Io = dr(en), xi = {
scale: "space",
defaultScale: xi.space
}
-}, Wn = dr(xx), zt = {
+}, Hn = dr(bx), zt = {
space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
-}, uf = function(t) {
+}, cf = function(t) {
return typeof t == "number" && !isNaN(t);
-}, Pn = function(t, r) {
- if (!uf(t))
- return Qr(r, t, t);
- var n = t < 0, o = Math.abs(t), a = Qr(r, o, o);
- return uf(a) ? a * (n ? -1 : 1) : n ? "-" + a : a;
+}, Tn = function(t, r) {
+ if (!cf(t))
+ return en(r, t, t);
+ var n = t < 0, o = Math.abs(t), a = en(r, o, o);
+ return cf(a) ? a * (n ? -1 : 1) : n ? "-" + a : a;
}, Ne = {};
Ne.margin = {
margin: {
property: "margin",
scale: "space",
- transform: Pn,
+ transform: Tn,
defaultScale: zt.space
},
marginTop: {
property: "marginTop",
scale: "space",
- transform: Pn,
+ transform: Tn,
defaultScale: zt.space
},
marginRight: {
property: "marginRight",
scale: "space",
- transform: Pn,
+ transform: Tn,
defaultScale: zt.space
},
marginBottom: {
property: "marginBottom",
scale: "space",
- transform: Pn,
+ transform: Tn,
defaultScale: zt.space
},
marginLeft: {
property: "marginLeft",
scale: "space",
- transform: Pn,
+ transform: Tn,
defaultScale: zt.space
},
marginX: {
properties: ["marginLeft", "marginRight"],
scale: "space",
- transform: Pn,
+ transform: Tn,
defaultScale: zt.space
},
marginY: {
properties: ["marginTop", "marginBottom"],
scale: "space",
- transform: Pn,
+ transform: Tn,
defaultScale: zt.space
}
};
@@ -2382,7 +2390,7 @@ Ne.padding.pb = Ne.padding.paddingBottom;
Ne.padding.pl = Ne.padding.paddingLeft;
Ne.padding.px = Ne.padding.paddingX;
Ne.padding.py = Ne.padding.paddingY;
-var Rm = dr(Ne.margin), Dm = dr(Ne.padding), Mm = Tu(Rm, Dm), Bi = dr({
+var Om = dr(Ne.margin), Rm = dr(Ne.padding), $m = Eu(Om, Rm), Bi = dr({
boxShadow: {
property: "boxShadow",
scale: "shadows"
@@ -2392,26 +2400,26 @@ var Rm = dr(Ne.margin), Dm = dr(Ne.padding), Mm = Tu(Rm, Dm), Bi = dr({
scale: "shadows"
}
});
-function Oa() {
- return Oa = Object.assign || function(e) {
+function $a() {
+ return $a = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t];
for (var n in r)
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
}
return e;
- }, Oa.apply(this, arguments);
+ }, $a.apply(this, arguments);
}
var mr = function(t, r, n, o, a) {
for (r = r && r.split ? r.split(".") : [r], o = 0; o < r.length; o++)
t = t ? t[r[o]] : a;
return t === a ? n : t;
-}, Sx = [40, 52, 64].map(function(e) {
+}, yx = [40, 52, 64].map(function(e) {
return e + "em";
-}), wx = {
+}), xx = {
space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
-}, Cx = {
+}, Sx = {
bg: "backgroundColor",
m: "margin",
mt: "marginTop",
@@ -2427,13 +2435,13 @@ var mr = function(t, r, n, o, a) {
pl: "paddingLeft",
px: "paddingX",
py: "paddingY"
-}, df = {
+}, uf = {
marginX: ["marginLeft", "marginRight"],
marginY: ["marginTop", "marginBottom"],
paddingX: ["paddingLeft", "paddingRight"],
paddingY: ["paddingTop", "paddingBottom"],
size: ["width", "height"]
-}, _x = {
+}, wx = {
color: "colors",
backgroundColor: "colors",
borderColor: "colors",
@@ -2505,17 +2513,17 @@ var mr = function(t, r, n, o, a) {
// svg
fill: "colors",
stroke: "colors"
-}, kx = function(t, r) {
+}, Cx = function(t, r) {
if (typeof r != "number" || r >= 0)
return mr(t, r, r);
var n = Math.abs(r), o = mr(t, n, n);
return typeof o == "string" ? "-" + o : o * -1;
-}, Ex = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(e, t) {
+}, _x = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(e, t) {
var r;
- return Oa({}, e, (r = {}, r[t] = kx, r));
-}, {}), Im = function(t) {
+ return $a({}, e, (r = {}, r[t] = Cx, r));
+}, {}), Dm = function(t) {
return function(r) {
- var n = {}, o = mr(r, "breakpoints", Sx), a = [null].concat(o.map(function(u) {
+ var n = {}, o = mr(r, "breakpoints", yx), a = [null].concat(o.map(function(u) {
return "@media screen and (min-width: " + u + ")";
}));
for (var i in t) {
@@ -2537,24 +2545,24 @@ var mr = function(t, r, n, o, a) {
}
return n;
};
-}, Fm = function e(t) {
+}, Mm = function e(t) {
return function(r) {
r === void 0 && (r = {});
- var n = Oa({}, wx, {}, r.theme || r), o = {}, a = typeof t == "function" ? t(n) : t, i = Im(a)(n);
+ var n = $a({}, xx, {}, r.theme || r), o = {}, a = typeof t == "function" ? t(n) : t, i = Dm(a)(n);
for (var s in i) {
var l = i[s], c = typeof l == "function" ? l(n) : l;
if (s === "variant") {
var u = e(mr(n, c))(n);
- o = Oa({}, o, {}, u);
+ o = $a({}, o, {}, u);
continue;
}
if (c && typeof c == "object") {
o[s] = e(c)(n);
continue;
}
- var d = mr(Cx, s, s), f = mr(_x, d), p = mr(n, f, mr(n, d, {})), m = mr(Ex, d, mr), h = m(p, c, c);
- if (df[d])
- for (var v = df[d], b = 0; b < v.length; b++)
+ var d = mr(Sx, s, s), f = mr(wx, d), p = mr(n, f, mr(n, d, {})), m = mr(_x, d, mr), h = m(p, c, c);
+ if (uf[d])
+ for (var v = uf[d], b = 0; b < v.length; b++)
o[v[b]] = h;
else
o[d] = h;
@@ -2562,31 +2570,31 @@ var mr = function(t, r, n, o, a) {
return o;
};
};
-const Nm = Fm, Px = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
+const Im = Mm, kx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
- css: Fm,
- default: Nm,
+ css: Mm,
+ default: Im,
get: mr,
- responsive: Im
+ responsive: Dm
}, Symbol.toStringTag, { value: "Module" }));
-var Ns = function(t) {
+var Fs = function(t) {
var r, n = t.scale, o = t.prop, a = o === void 0 ? "variant" : o, i = t.variants, s = i === void 0 ? {} : i, l = t.key, c;
Object.keys(s).length ? c = function(p, m, h) {
- return Nm(Qr(m, p, null))(h.theme);
+ return Im(en(m, p, null))(h.theme);
} : c = function(p, m) {
- return Qr(m, p, null);
+ return en(m, p, null);
}, c.scale = n || l, c.defaults = s;
var u = (r = {}, r[a] = c, r), d = Za(u);
return d;
-}, jm = Ns({
+}, Fm = Fs({
key: "buttons"
-}), Bm = Ns({
+}), Nm = Fs({
key: "textStyles",
prop: "textStyle"
-}), zm = Ns({
+}), jm = Fs({
key: "colorStyles",
prop: "colors"
-}), Tx = qt.width, Ax = qt.height, Ox = qt.minWidth, $x = qt.minHeight, Rx = qt.maxWidth, Dx = qt.maxHeight, Mx = qt.size, Ix = qt.verticalAlign, Fx = qt.display, Nx = qt.overflow, jx = qt.overflowX, Bx = qt.overflowY, zx = Au.opacity, Vx = on.fontSize, Lx = on.fontFamily, Wx = on.fontWeight, Ux = on.lineHeight, Hx = on.textAlign, Yx = on.fontStyle, qx = on.letterSpacing, Gx = Ft.alignItems, Xx = Ft.alignContent, Kx = Ft.justifyItems, Zx = Ft.justifyContent, Jx = Ft.flexWrap, Qx = Ft.flexDirection, eS = Ft.flex, tS = Ft.flexGrow, rS = Ft.flexShrink, nS = Ft.flexBasis, oS = Ft.justifySelf, aS = Ft.alignSelf, iS = Ft.order, sS = Gt.gridGap, lS = Gt.gridColumnGap, cS = Gt.gridRowGap, uS = Gt.gridColumn, dS = Gt.gridRow, fS = Gt.gridAutoFlow, pS = Gt.gridAutoColumns, hS = Gt.gridAutoRows, mS = Gt.gridTemplateColumns, vS = Gt.gridTemplateRows, gS = Gt.gridTemplateAreas, bS = Gt.gridArea, yS = Sr.borderWidth, xS = Sr.borderStyle, SS = Sr.borderColor, wS = Sr.borderTop, CS = Sr.borderRight, _S = Sr.borderBottom, kS = Sr.borderLeft, ES = Sr.borderRadius, PS = Io.backgroundImage, TS = Io.backgroundSize, AS = Io.backgroundPosition, OS = Io.backgroundRepeat, $S = Wn.zIndex, RS = Wn.top, DS = Wn.right, MS = Wn.bottom, IS = Wn.left, FS = function(t) {
+}), Ex = qt.width, Px = qt.height, Tx = qt.minWidth, Ax = qt.minHeight, Ox = qt.maxWidth, Rx = qt.maxHeight, $x = qt.size, Dx = qt.verticalAlign, Mx = qt.display, Ix = qt.overflow, Fx = qt.overflowX, Nx = qt.overflowY, jx = Pu.opacity, Bx = an.fontSize, zx = an.fontFamily, Vx = an.fontWeight, Lx = an.lineHeight, Wx = an.textAlign, Ux = an.fontStyle, Hx = an.letterSpacing, Yx = Ft.alignItems, qx = Ft.alignContent, Gx = Ft.justifyItems, Xx = Ft.justifyContent, Kx = Ft.flexWrap, Zx = Ft.flexDirection, Jx = Ft.flex, Qx = Ft.flexGrow, eS = Ft.flexShrink, tS = Ft.flexBasis, rS = Ft.justifySelf, nS = Ft.alignSelf, oS = Ft.order, aS = Gt.gridGap, iS = Gt.gridColumnGap, sS = Gt.gridRowGap, lS = Gt.gridColumn, cS = Gt.gridRow, uS = Gt.gridAutoFlow, dS = Gt.gridAutoColumns, fS = Gt.gridAutoRows, pS = Gt.gridTemplateColumns, hS = Gt.gridTemplateRows, mS = Gt.gridTemplateAreas, vS = Gt.gridArea, gS = Sr.borderWidth, bS = Sr.borderStyle, yS = Sr.borderColor, xS = Sr.borderTop, SS = Sr.borderRight, wS = Sr.borderBottom, CS = Sr.borderLeft, _S = Sr.borderRadius, kS = Fo.backgroundImage, ES = Fo.backgroundSize, PS = Fo.backgroundPosition, TS = Fo.backgroundRepeat, AS = Hn.zIndex, OS = Hn.top, RS = Hn.right, $S = Hn.bottom, DS = Hn.left, MS = function(t) {
var r = t.prop, n = t.cssProperty, o = t.alias, a = t.key, i = t.transformValue, s = t.scale, l = t.properties, c = {};
c[r] = ls({
properties: l,
@@ -2598,132 +2606,132 @@ var Ns = function(t) {
var u = Za(c);
return u;
};
-const NS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
+const IS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
- alignContent: Xx,
- alignItems: Gx,
- alignSelf: aS,
- background: Io,
- backgroundImage: PS,
- backgroundPosition: AS,
- backgroundRepeat: OS,
- backgroundSize: TS,
+ alignContent: qx,
+ alignItems: Yx,
+ alignSelf: nS,
+ background: Fo,
+ backgroundImage: kS,
+ backgroundPosition: PS,
+ backgroundRepeat: TS,
+ backgroundSize: ES,
border: Sr,
- borderBottom: _S,
- borderColor: SS,
- borderLeft: kS,
- borderRadius: ES,
- borderRight: CS,
- borderStyle: xS,
- borderTop: wS,
- borderWidth: yS,
+ borderBottom: wS,
+ borderColor: yS,
+ borderLeft: CS,
+ borderRadius: _S,
+ borderRight: SS,
+ borderStyle: bS,
+ borderTop: xS,
+ borderWidth: gS,
borders: Sr,
- bottom: MS,
+ bottom: $S,
boxShadow: Bi,
- buttonStyle: jm,
- color: Au,
- colorStyle: zm,
- compose: Tu,
+ buttonStyle: Fm,
+ color: Pu,
+ colorStyle: jm,
+ compose: Eu,
createParser: Za,
createStyleFunction: ls,
- display: Fx,
- flex: eS,
- flexBasis: nS,
- flexDirection: Qx,
- flexGrow: tS,
- flexShrink: rS,
- flexWrap: Jx,
+ display: Mx,
+ flex: Jx,
+ flexBasis: tS,
+ flexDirection: Zx,
+ flexGrow: Qx,
+ flexShrink: eS,
+ flexWrap: Kx,
flexbox: Ft,
- fontFamily: Lx,
- fontSize: Vx,
- fontStyle: Yx,
- fontWeight: Wx,
- get: Qr,
+ fontFamily: zx,
+ fontSize: Bx,
+ fontStyle: Ux,
+ fontWeight: Vx,
+ get: en,
grid: Gt,
- gridArea: bS,
- gridAutoColumns: pS,
- gridAutoFlow: fS,
- gridAutoRows: hS,
- gridColumn: uS,
- gridColumnGap: lS,
- gridGap: sS,
- gridRow: dS,
- gridRowGap: cS,
- gridTemplateAreas: gS,
- gridTemplateColumns: mS,
- gridTemplateRows: vS,
- height: Ax,
- justifyContent: Zx,
- justifyItems: Kx,
- justifySelf: oS,
+ gridArea: vS,
+ gridAutoColumns: dS,
+ gridAutoFlow: uS,
+ gridAutoRows: fS,
+ gridColumn: lS,
+ gridColumnGap: iS,
+ gridGap: aS,
+ gridRow: cS,
+ gridRowGap: sS,
+ gridTemplateAreas: mS,
+ gridTemplateColumns: pS,
+ gridTemplateRows: hS,
+ height: Px,
+ justifyContent: Xx,
+ justifyItems: Gx,
+ justifySelf: rS,
layout: qt,
- left: IS,
- letterSpacing: qx,
- lineHeight: Ux,
- margin: Rm,
- maxHeight: Dx,
- maxWidth: Rx,
- minHeight: $x,
- minWidth: Ox,
- opacity: zx,
- order: iS,
- overflow: Nx,
- overflowX: jx,
- overflowY: Bx,
- padding: Dm,
- position: Wn,
- right: DS,
+ left: DS,
+ letterSpacing: Hx,
+ lineHeight: Lx,
+ margin: Om,
+ maxHeight: Rx,
+ maxWidth: Ox,
+ minHeight: Ax,
+ minWidth: Tx,
+ opacity: jx,
+ order: oS,
+ overflow: Ix,
+ overflowX: Fx,
+ overflowY: Nx,
+ padding: Rm,
+ position: Hn,
+ right: RS,
shadow: Bi,
- size: Mx,
- space: Mm,
- style: FS,
+ size: $x,
+ space: $m,
+ style: MS,
system: dr,
- textAlign: Hx,
+ textAlign: Wx,
textShadow: Bi,
- textStyle: Bm,
- top: RS,
- typography: on,
- variant: Ns,
- verticalAlign: Ix,
- width: Tx,
- zIndex: $S
-}, Symbol.toStringTag, { value: "Module" })), jS = /* @__PURE__ */ Fs(NS), BS = /* @__PURE__ */ Fs(Px);
-function zS(e) {
+ textStyle: Nm,
+ top: OS,
+ typography: an,
+ variant: Fs,
+ verticalAlign: Dx,
+ width: Ex,
+ zIndex: AS
+}, Symbol.toStringTag, { value: "Module" })), FS = /* @__PURE__ */ Is(IS), NS = /* @__PURE__ */ Is(kx);
+function jS(e) {
var t = /* @__PURE__ */ Object.create(null);
return function(r) {
return t[r] === void 0 && (t[r] = e(r)), t[r];
};
}
-var VS = Tu(Mm, on, Au, qt, Ft, Sr, Io, Wn, Gt, Bi, jm, Bm, zm), Vm = VS.propNames, Lm = function(t) {
+var BS = Eu($m, an, Pu, qt, Ft, Sr, Fo, Hn, Gt, Bi, Fm, Nm, jm), Bm = BS.propNames, zm = function(t) {
var r = new RegExp("^(" + t.join("|") + ")$");
- return zS(function(n) {
- return Cm(n) && !r.test(n);
+ return jS(function(n) {
+ return Sm(n) && !r.test(n);
});
};
-const LS = Lm(Vm), WS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
+const zS = zm(Bm), VS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
- createShouldForwardProp: Lm,
- default: LS,
- props: Vm
-}, Symbol.toStringTag, { value: "Module" })), US = /* @__PURE__ */ Fs(WS);
-Object.defineProperty(ka, "__esModule", {
+ createShouldForwardProp: zm,
+ default: zS,
+ props: Bm
+}, Symbol.toStringTag, { value: "Module" })), LS = /* @__PURE__ */ Is(VS);
+Object.defineProperty(Pa, "__esModule", {
value: !0
});
-var Wm = ka.Flex = Un = ka.Box = void 0;
-Ou(It);
-var Um = Ou(ix), Gn = jS, ua = YS(BS), HS = Ou(US);
-function Hm() {
+var Vm = Pa.Flex = Yn = Pa.Box = void 0;
+Tu(It);
+var Lm = Tu(ox), Kn = FS, fa = US(NS), WS = Tu(LS);
+function Wm() {
if (typeof WeakMap != "function")
return null;
var e = /* @__PURE__ */ new WeakMap();
- return Hm = function() {
+ return Wm = function() {
return e;
}, e;
}
-function YS(e) {
+function US(e) {
if (e && e.__esModule)
return e;
- var t = Hm();
+ var t = Wm();
if (t && t.has(e))
return t.get(e);
var r = {};
@@ -2737,46 +2745,46 @@ function YS(e) {
}
return r.default = e, t && t.set(e, r), r;
}
-function Ou(e) {
+function Tu(e) {
return e && e.__esModule ? e : { default: e };
}
-var qS = function(t) {
- return (0, ua.default)(t.sx)(t.theme);
-}, GS = function(t) {
- return (0, ua.default)(t.__css)(t.theme);
-}, XS = function(t) {
+var HS = function(t) {
+ return (0, fa.default)(t.sx)(t.theme);
+}, YS = function(t) {
+ return (0, fa.default)(t.__css)(t.theme);
+}, qS = function(t) {
var r = t.theme, n = t.variant, o = t.tx, a = o === void 0 ? "variants" : o;
- return (0, ua.default)((0, ua.get)(r, a + "." + n, (0, ua.get)(r, n)))(r);
-}, Ym = (0, Um.default)("div", {
- shouldForwardProp: HS.default
+ return (0, fa.default)((0, fa.get)(r, a + "." + n, (0, fa.get)(r, n)))(r);
+}, Um = (0, Lm.default)("div", {
+ shouldForwardProp: WS.default
})({
boxSizing: "border-box",
margin: 0,
minWidth: 0
-}, GS, XS, qS, function(e) {
+}, YS, qS, HS, function(e) {
return e.css;
-}, (0, Gn.compose)(Gn.space, Gn.layout, Gn.typography, Gn.color, Gn.flexbox)), Un = ka.Box = Ym, KS = (0, Um.default)(Ym)({
+}, (0, Kn.compose)(Kn.space, Kn.layout, Kn.typography, Kn.color, Kn.flexbox)), Yn = Pa.Box = Um, GS = (0, Lm.default)(Um)({
display: "flex"
});
-Wm = ka.Flex = KS;
-function gn() {
- return gn = Object.assign || function(e) {
+Vm = Pa.Flex = GS;
+function bn() {
+ return bn = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t];
for (var n in r)
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
}
return e;
- }, gn.apply(this, arguments);
+ }, bn.apply(this, arguments);
}
-var bV = At(function(e, t) {
- return It.createElement(Un, gn({
+var fV = At(function(e, t) {
+ return It.createElement(Yn, bn({
ref: t,
tx: "text"
}, e));
});
At(function(e, t) {
- return It.createElement(Un, gn({
+ return It.createElement(Yn, bn({
ref: t,
as: "h2",
tx: "text",
@@ -2790,14 +2798,14 @@ At(function(e, t) {
}
}));
});
-var yV = At(function(e, t) {
- return It.createElement(Un, gn({
+var pV = At(function(e, t) {
+ return It.createElement(Yn, bn({
ref: t,
as: "a",
variant: "link"
}, e));
-}), xV = At(function(e, t) {
- return It.createElement(Un, gn({
+}), hV = At(function(e, t) {
+ return It.createElement(Yn, bn({
ref: t,
as: "button",
tx: "buttons",
@@ -2820,7 +2828,7 @@ var yV = At(function(e, t) {
}));
});
At(function(e, t) {
- return It.createElement(Un, gn({
+ return It.createElement(Yn, bn({
ref: t,
as: "img"
}, e, {
@@ -2830,8 +2838,8 @@ At(function(e, t) {
}
}));
});
-var SV = At(function(e, t) {
- return It.createElement(Un, gn({
+var mV = At(function(e, t) {
+ return It.createElement(Yn, bn({
ref: t,
variant: "card"
}, e));
@@ -2844,7 +2852,7 @@ function yr(e) {
return arguments.length === 0 || at(r) ? t : e.apply(this, arguments);
};
}
-function An(e) {
+function On(e) {
return function t(r, n) {
switch (arguments.length) {
case 0:
@@ -2862,7 +2870,7 @@ function An(e) {
}
};
}
-function ZS(e, t) {
+function XS(e, t) {
switch (e) {
case 0:
return function() {
@@ -2912,29 +2920,29 @@ function ZS(e, t) {
throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
}
}
-function qm(e) {
+function Hm(e) {
return function t(r, n, o) {
switch (arguments.length) {
case 0:
return t;
case 1:
- return at(r) ? t : An(function(a, i) {
+ return at(r) ? t : On(function(a, i) {
return e(r, a, i);
});
case 2:
- return at(r) && at(n) ? t : at(r) ? An(function(a, i) {
+ return at(r) && at(n) ? t : at(r) ? On(function(a, i) {
return e(a, n, i);
- }) : at(n) ? An(function(a, i) {
+ }) : at(n) ? On(function(a, i) {
return e(r, a, i);
}) : yr(function(a) {
return e(r, n, a);
});
default:
- return at(r) && at(n) && at(o) ? t : at(r) && at(n) ? An(function(a, i) {
+ return at(r) && at(n) && at(o) ? t : at(r) && at(n) ? On(function(a, i) {
return e(a, i, o);
- }) : at(r) && at(o) ? An(function(a, i) {
+ }) : at(r) && at(o) ? On(function(a, i) {
return e(a, n, i);
- }) : at(n) && at(o) ? An(function(a, i) {
+ }) : at(n) && at(o) ? On(function(a, i) {
return e(r, a, i);
}) : at(r) ? yr(function(a) {
return e(a, n, o);
@@ -2946,15 +2954,15 @@ function qm(e) {
}
};
}
-const JS = Array.isArray || function(t) {
+const KS = Array.isArray || function(t) {
return t != null && t.length >= 0 && Object.prototype.toString.call(t) === "[object Array]";
};
-function QS(e) {
+function ZS(e) {
return Object.prototype.toString.call(e) === "[object String]";
}
-var e1 = /* @__PURE__ */ yr(function(t) {
- return JS(t) ? !0 : !t || typeof t != "object" || QS(t) ? !1 : t.length === 0 ? !0 : t.length > 0 ? t.hasOwnProperty(0) && t.hasOwnProperty(t.length - 1) : !1;
-}), t1 = /* @__PURE__ */ function() {
+var JS = /* @__PURE__ */ yr(function(t) {
+ return KS(t) ? !0 : !t || typeof t != "object" || ZS(t) ? !1 : t.length === 0 ? !0 : t.length > 0 ? t.hasOwnProperty(0) && t.hasOwnProperty(t.length - 1) : !1;
+}), QS = /* @__PURE__ */ function() {
function e(t) {
this.f = t;
}
@@ -2966,15 +2974,15 @@ var e1 = /* @__PURE__ */ yr(function(t) {
return this.f(t, r);
}, e;
}();
-function r1(e) {
- return new t1(e);
+function e1(e) {
+ return new QS(e);
}
-var n1 = /* @__PURE__ */ An(function(t, r) {
- return ZS(t.length, function() {
+var t1 = /* @__PURE__ */ On(function(t, r) {
+ return XS(t.length, function() {
return t.apply(r, arguments);
});
});
-function o1(e, t, r) {
+function r1(e, t, r) {
for (var n = 0, o = r.length; n < o; ) {
if (t = e["@@transducer/step"](t, r[n]), t && t["@@transducer/reduced"]) {
t = t["@@transducer/value"];
@@ -2984,7 +2992,7 @@ function o1(e, t, r) {
}
return e["@@transducer/result"](t);
}
-function ff(e, t, r) {
+function df(e, t, r) {
for (var n = r.next(); !n.done; ) {
if (t = e["@@transducer/step"](t, n.value), t && t["@@transducer/reduced"]) {
t = t["@@transducer/value"];
@@ -2994,116 +3002,84 @@ function ff(e, t, r) {
}
return e["@@transducer/result"](t);
}
-function pf(e, t, r, n) {
- return e["@@transducer/result"](r[n](n1(e["@@transducer/step"], e), t));
+function ff(e, t, r, n) {
+ return e["@@transducer/result"](r[n](t1(e["@@transducer/step"], e), t));
}
-var hf = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
-function wV(e, t, r) {
- if (typeof e == "function" && (e = r1(e)), e1(r))
- return o1(e, t, r);
+var pf = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
+function vV(e, t, r) {
+ if (typeof e == "function" && (e = e1(e)), JS(r))
+ return r1(e, t, r);
if (typeof r["fantasy-land/reduce"] == "function")
- return pf(e, t, r, "fantasy-land/reduce");
- if (r[hf] != null)
- return ff(e, t, r[hf]());
+ return ff(e, t, r, "fantasy-land/reduce");
+ if (r[pf] != null)
+ return df(e, t, r[pf]());
if (typeof r.next == "function")
- return ff(e, t, r);
+ return df(e, t, r);
if (typeof r.reduce == "function")
- return pf(e, t, r, "reduce");
+ return ff(e, t, r, "reduce");
throw new TypeError("reduce: list must be array or iterable");
}
-function Mn(e, t) {
+function In(e, t) {
return Object.prototype.hasOwnProperty.call(t, e);
}
-var mf = Object.prototype.toString, a1 = /* @__PURE__ */ function() {
- return mf.call(arguments) === "[object Arguments]" ? function(t) {
- return mf.call(t) === "[object Arguments]";
+var hf = Object.prototype.toString, n1 = /* @__PURE__ */ function() {
+ return hf.call(arguments) === "[object Arguments]" ? function(t) {
+ return hf.call(t) === "[object Arguments]";
} : function(t) {
- return Mn("callee", t);
+ return In("callee", t);
};
-}(), i1 = !/* @__PURE__ */ {
+}(), o1 = !/* @__PURE__ */ {
toString: null
-}.propertyIsEnumerable("toString"), vf = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], gf = /* @__PURE__ */ function() {
+}.propertyIsEnumerable("toString"), mf = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], vf = /* @__PURE__ */ function() {
return arguments.propertyIsEnumerable("length");
-}(), s1 = function(t, r) {
+}(), a1 = function(t, r) {
for (var n = 0; n < t.length; ) {
if (t[n] === r)
return !0;
n += 1;
}
return !1;
-}, CV = /* @__PURE__ */ yr(typeof Object.keys == "function" && !gf ? function(t) {
+}, gV = /* @__PURE__ */ yr(typeof Object.keys == "function" && !vf ? function(t) {
return Object(t) !== t ? [] : Object.keys(t);
} : function(t) {
if (Object(t) !== t)
return [];
- var r, n, o = [], a = gf && a1(t);
+ var r, n, o = [], a = vf && n1(t);
for (r in t)
- Mn(r, t) && (!a || r !== "length") && (o[o.length] = r);
- if (i1)
- for (n = vf.length - 1; n >= 0; )
- r = vf[n], Mn(r, t) && !s1(o, r) && (o[o.length] = r), n -= 1;
+ In(r, t) && (!a || r !== "length") && (o[o.length] = r);
+ if (o1)
+ for (n = mf.length - 1; n >= 0; )
+ r = mf[n], In(r, t) && !a1(o, r) && (o[o.length] = r), n -= 1;
return o;
-}), _V = /* @__PURE__ */ yr(function(t) {
+}), bV = /* @__PURE__ */ yr(function(t) {
return t === null ? "Null" : t === void 0 ? "Undefined" : Object.prototype.toString.call(t).slice(8, -1);
});
-function bf(e) {
+function gf(e) {
return Object.prototype.toString.call(e) === "[object Object]";
}
-var l1 = /* @__PURE__ */ qm(function(t, r, n) {
+var i1 = /* @__PURE__ */ Hm(function(t, r, n) {
var o = {}, a;
for (a in r)
- Mn(a, r) && (o[a] = Mn(a, n) ? t(a, r[a], n[a]) : r[a]);
+ In(a, r) && (o[a] = In(a, n) ? t(a, r[a], n[a]) : r[a]);
for (a in n)
- Mn(a, n) && !Mn(a, o) && (o[a] = n[a]);
+ In(a, n) && !In(a, o) && (o[a] = n[a]);
return o;
-}), kV = /* @__PURE__ */ qm(function e(t, r, n) {
- return l1(function(o, a, i) {
- return bf(a) && bf(i) ? e(t, a, i) : t(o, a, i);
+}), yV = /* @__PURE__ */ Hm(function e(t, r, n) {
+ return i1(function(o, a, i) {
+ return gf(a) && gf(i) ? e(t, a, i) : t(o, a, i);
}, r, n);
});
-function $a(e) {
- "@babel/helpers - typeof";
- return $a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
- return typeof t;
- } : function(t) {
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
- }, $a(e);
-}
-function c1(e, t) {
- if ($a(e) !== "object" || e === null)
- return e;
- var r = e[Symbol.toPrimitive];
- if (r !== void 0) {
- var n = r.call(e, t || "default");
- if ($a(n) !== "object")
- return n;
- throw new TypeError("@@toPrimitive must return a primitive value.");
- }
- return (t === "string" ? String : Number)(e);
-}
-function u1(e) {
- var t = c1(e, "string");
- return $a(t) === "symbol" ? t : String(t);
-}
-function d1(e, t, r) {
- return t = u1(t), t in e ? Object.defineProperty(e, t, {
- value: r,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }) : e[t] = r, e;
-}
-function cs() {
- return cs = Object.assign ? Object.assign.bind() : function(e) {
+function Wn() {
+ return Wn = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t];
for (var n in r)
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
}
return e;
- }, cs.apply(this, arguments);
+ }, Wn.apply(this, arguments);
}
-var $c = { exports: {} }, Le = {};
+var Oc = { exports: {} }, We = {};
/** @license React v16.13.1
* react-is.production.min.js
*
@@ -3112,11 +3088,11 @@ var $c = { exports: {} }, Le = {};
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
-var yf;
-function f1() {
- if (yf)
- return Le;
- yf = 1;
+var bf;
+function s1() {
+ if (bf)
+ return We;
+ bf = 1;
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
function S(w) {
if (typeof w == "object" && w !== null) {
@@ -3148,38 +3124,38 @@ function f1() {
}
}
}
- function k(w) {
+ function _(w) {
return S(w) === c;
}
- return Le.AsyncMode = l, Le.ConcurrentMode = c, Le.ContextConsumer = s, Le.ContextProvider = i, Le.Element = t, Le.ForwardRef = u, Le.Fragment = n, Le.Lazy = m, Le.Memo = p, Le.Portal = r, Le.Profiler = a, Le.StrictMode = o, Le.Suspense = d, Le.isAsyncMode = function(w) {
- return k(w) || S(w) === l;
- }, Le.isConcurrentMode = k, Le.isContextConsumer = function(w) {
+ return We.AsyncMode = l, We.ConcurrentMode = c, We.ContextConsumer = s, We.ContextProvider = i, We.Element = t, We.ForwardRef = u, We.Fragment = n, We.Lazy = m, We.Memo = p, We.Portal = r, We.Profiler = a, We.StrictMode = o, We.Suspense = d, We.isAsyncMode = function(w) {
+ return _(w) || S(w) === l;
+ }, We.isConcurrentMode = _, We.isContextConsumer = function(w) {
return S(w) === s;
- }, Le.isContextProvider = function(w) {
+ }, We.isContextProvider = function(w) {
return S(w) === i;
- }, Le.isElement = function(w) {
+ }, We.isElement = function(w) {
return typeof w == "object" && w !== null && w.$$typeof === t;
- }, Le.isForwardRef = function(w) {
+ }, We.isForwardRef = function(w) {
return S(w) === u;
- }, Le.isFragment = function(w) {
+ }, We.isFragment = function(w) {
return S(w) === n;
- }, Le.isLazy = function(w) {
+ }, We.isLazy = function(w) {
return S(w) === m;
- }, Le.isMemo = function(w) {
+ }, We.isMemo = function(w) {
return S(w) === p;
- }, Le.isPortal = function(w) {
+ }, We.isPortal = function(w) {
return S(w) === r;
- }, Le.isProfiler = function(w) {
+ }, We.isProfiler = function(w) {
return S(w) === a;
- }, Le.isStrictMode = function(w) {
+ }, We.isStrictMode = function(w) {
return S(w) === o;
- }, Le.isSuspense = function(w) {
+ }, We.isSuspense = function(w) {
return S(w) === d;
- }, Le.isValidElementType = function(w) {
+ }, We.isValidElementType = function(w) {
return typeof w == "string" || typeof w == "function" || w === n || w === c || w === a || w === o || w === d || w === f || typeof w == "object" && w !== null && (w.$$typeof === m || w.$$typeof === p || w.$$typeof === i || w.$$typeof === s || w.$$typeof === u || w.$$typeof === v || w.$$typeof === b || w.$$typeof === y || w.$$typeof === h);
- }, Le.typeOf = S, Le;
+ }, We.typeOf = S, We;
}
-var We = {};
+var Ue = {};
/** @license React v16.13.1
* react-is.development.js
*
@@ -3188,20 +3164,20 @@ var We = {};
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
-var xf;
-function p1() {
- return xf || (xf = 1, process.env.NODE_ENV !== "production" && function() {
+var yf;
+function l1() {
+ return yf || (yf = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
- function S($) {
- return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
- $ === n || $ === c || $ === a || $ === o || $ === d || $ === f || typeof $ == "object" && $ !== null && ($.$$typeof === m || $.$$typeof === p || $.$$typeof === i || $.$$typeof === s || $.$$typeof === u || $.$$typeof === v || $.$$typeof === b || $.$$typeof === y || $.$$typeof === h);
+ function S(R) {
+ return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
+ R === n || R === c || R === a || R === o || R === d || R === f || typeof R == "object" && R !== null && (R.$$typeof === m || R.$$typeof === p || R.$$typeof === i || R.$$typeof === s || R.$$typeof === u || R.$$typeof === v || R.$$typeof === b || R.$$typeof === y || R.$$typeof === h);
}
- function k($) {
- if (typeof $ == "object" && $ !== null) {
- var Se = $.$$typeof;
+ function _(R) {
+ if (typeof R == "object" && R !== null) {
+ var Se = R.$$typeof;
switch (Se) {
case t:
- var he = $.type;
+ var he = R.type;
switch (he) {
case l:
case c:
@@ -3229,66 +3205,66 @@ function p1() {
}
}
var w = l, M = c, P = s, I = i, z = t, j = u, X = n, ne = m, J = p, Q = r, ee = a, oe = o, D = d, ce = !1;
- function fe($) {
- return ce || (ce = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F($) || k($) === l;
+ function fe(R) {
+ return ce || (ce = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F(R) || _(R) === l;
}
- function F($) {
- return k($) === c;
+ function F(R) {
+ return _(R) === c;
}
- function N($) {
- return k($) === s;
+ function N(R) {
+ return _(R) === s;
}
- function V($) {
- return k($) === i;
+ function V(R) {
+ return _(R) === i;
}
- function T($) {
- return typeof $ == "object" && $ !== null && $.$$typeof === t;
+ function T(R) {
+ return typeof R == "object" && R !== null && R.$$typeof === t;
}
- function O($) {
- return k($) === u;
+ function A(R) {
+ return _(R) === u;
}
- function B($) {
- return k($) === n;
+ function B(R) {
+ return _(R) === n;
}
- function C($) {
- return k($) === m;
+ function C(R) {
+ return _(R) === m;
}
- function H($) {
- return k($) === p;
+ function H(R) {
+ return _(R) === p;
}
- function A($) {
- return k($) === r;
+ function O(R) {
+ return _(R) === r;
}
- function Z($) {
- return k($) === a;
+ function Z(R) {
+ return _(R) === a;
}
- function Y($) {
- return k($) === o;
+ function Y(R) {
+ return _(R) === o;
}
- function ae($) {
- return k($) === d;
+ function ae(R) {
+ return _(R) === d;
}
- We.AsyncMode = w, We.ConcurrentMode = M, We.ContextConsumer = P, We.ContextProvider = I, We.Element = z, We.ForwardRef = j, We.Fragment = X, We.Lazy = ne, We.Memo = J, We.Portal = Q, We.Profiler = ee, We.StrictMode = oe, We.Suspense = D, We.isAsyncMode = fe, We.isConcurrentMode = F, We.isContextConsumer = N, We.isContextProvider = V, We.isElement = T, We.isForwardRef = O, We.isFragment = B, We.isLazy = C, We.isMemo = H, We.isPortal = A, We.isProfiler = Z, We.isStrictMode = Y, We.isSuspense = ae, We.isValidElementType = S, We.typeOf = k;
- }()), We;
+ Ue.AsyncMode = w, Ue.ConcurrentMode = M, Ue.ContextConsumer = P, Ue.ContextProvider = I, Ue.Element = z, Ue.ForwardRef = j, Ue.Fragment = X, Ue.Lazy = ne, Ue.Memo = J, Ue.Portal = Q, Ue.Profiler = ee, Ue.StrictMode = oe, Ue.Suspense = D, Ue.isAsyncMode = fe, Ue.isConcurrentMode = F, Ue.isContextConsumer = N, Ue.isContextProvider = V, Ue.isElement = T, Ue.isForwardRef = A, Ue.isFragment = B, Ue.isLazy = C, Ue.isMemo = H, Ue.isPortal = O, Ue.isProfiler = Z, Ue.isStrictMode = Y, Ue.isSuspense = ae, Ue.isValidElementType = S, Ue.typeOf = _;
+ }()), Ue;
}
-process.env.NODE_ENV === "production" ? $c.exports = f1() : $c.exports = p1();
-var $u = $c.exports, Gm = $u, h1 = {
+process.env.NODE_ENV === "production" ? Oc.exports = s1() : Oc.exports = l1();
+var Au = Oc.exports, Ym = Au, c1 = {
$$typeof: !0,
render: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0
-}, m1 = {
+}, u1 = {
$$typeof: !0,
compare: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0,
type: !0
-}, Xm = {};
-Xm[Gm.ForwardRef] = h1;
-Xm[Gm.Memo] = m1;
-function Sf(e, t) {
+}, qm = {};
+qm[Ym.ForwardRef] = c1;
+qm[Ym.Memo] = u1;
+function xf(e, t) {
var r = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
@@ -3298,18 +3274,18 @@ function Sf(e, t) {
}
return r;
}
-function v1(e) {
+function d1(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t] != null ? arguments[t] : {};
- t % 2 ? Sf(Object(r), !0).forEach(function(n) {
- d1(e, n, r[n]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Sf(Object(r)).forEach(function(n) {
+ t % 2 ? xf(Object(r), !0).forEach(function(n) {
+ _u(e, n, r[n]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : xf(Object(r)).forEach(function(n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
});
}
return e;
}
-var g1 = function(t, r) {
+var f1 = function(t, r) {
if (typeof r == "function") {
var n = r(t);
if (process.env.NODE_ENV !== "production" && (n == null || typeof n != "object" || Array.isArray(n)))
@@ -3318,22 +3294,22 @@ var g1 = function(t, r) {
}
if (process.env.NODE_ENV !== "production" && (r == null || typeof r != "object" || Array.isArray(r)))
throw new Error("[ThemeProvider] Please make your theme prop a plain object");
- return v1({}, t, {}, r);
-}, b1 = Xd(function(e) {
- return Xd(function(t) {
- return g1(e, t);
+ return d1({}, t, {}, r);
+}, p1 = Gd(function(e) {
+ return Gd(function(t) {
+ return f1(e, t);
});
-}), EV = function(t) {
- return /* @__PURE__ */ ir(Aa.Consumer, null, function(r) {
- return t.theme !== r && (r = b1(r)(t.theme)), /* @__PURE__ */ ir(Aa.Provider, {
+}), xV = function(t) {
+ return /* @__PURE__ */ ir(Ra.Consumer, null, function(r) {
+ return t.theme !== r && (r = p1(r)(t.theme)), /* @__PURE__ */ ir(Ra.Provider, {
value: r
}, t.children);
});
};
-function y1() {
- return It.useContext(Aa);
+function h1() {
+ return It.useContext(Ra);
}
-const x1 = {
+const m1 = {
color: "primary",
bg: "transparent",
borderWidth: "1px",
@@ -3357,7 +3333,7 @@ const x1 = {
bg: "unset",
color: "gray"
}
-}, S1 = {
+}, v1 = {
color: "primary",
bg: "unset",
textDecoration: "underline",
@@ -3372,7 +3348,7 @@ const x1 = {
color: "gray",
textDecoration: "none"
}
-}, w1 = {
+}, g1 = {
color: "white",
bg: "primary",
borderWidth: "1px",
@@ -3399,7 +3375,7 @@ const x1 = {
borderColor: "gray",
boxShadow: "disabled"
}
-}, C1 = {
+}, b1 = {
color: "primary",
bg: "white",
borderWidth: "1px",
@@ -3424,7 +3400,7 @@ const x1 = {
borderColor: "grayShade1",
boxShadow: "disabled"
}
-}, _1 = {
+}, y1 = {
variant: "buttons.secondary",
color: "labels.red",
borderColor: "grayShade2",
@@ -3445,13 +3421,13 @@ const x1 = {
borderColor: "grayShade1",
boxShadow: "disabled"
}
-}, k1 = {
- ghost: x1,
- alert: _1,
- inline: S1,
- primary: w1,
- secondary: C1
-}, E1 = {
+}, x1 = {
+ ghost: m1,
+ alert: y1,
+ inline: v1,
+ primary: g1,
+ secondary: b1
+}, S1 = {
bg: "white",
boxShadow: "secondary",
borderColor: "grayShade2",
@@ -3469,7 +3445,7 @@ const x1 = {
"& path": {
fill: "black"
}
-}, P1 = {
+}, w1 = {
bg: "white",
borderColor: "white",
":hover": {
@@ -3487,7 +3463,7 @@ const x1 = {
"& path": {
fill: "black"
}
-}, T1 = {
+}, C1 = {
bg: "transparent",
borderColor: "transparent",
":hover": {
@@ -3506,11 +3482,11 @@ const x1 = {
"& path": {
fill: "black"
}
-}, A1 = {
- "icon-primary": E1,
- "icon-ghost": P1,
- "icon-ghost-white": T1
-}, O1 = {
+}, _1 = {
+ "icon-primary": S1,
+ "icon-ghost": w1,
+ "icon-ghost-white": C1
+}, k1 = {
color: "black",
bg: "grayShade3",
borderTopColor: "primary",
@@ -3526,9 +3502,9 @@ const x1 = {
color: "black",
bg: "grayShade3"
}
-}, $1 = {
- "footer-primary": O1
-}, R1 = {
+}, E1 = {
+ "footer-primary": k1
+}, P1 = {
color: "primary",
bg: "white",
borderWidth: "1px",
@@ -3552,9 +3528,9 @@ const x1 = {
borderColor: "grayShade1",
boxShadow: "disabled"
}
-}, D1 = {
- "file-secondary": R1
-}, M1 = {
+}, T1 = {
+ "file-secondary": P1
+}, A1 = {
primary: {
div: {
bg: "grayShade3",
@@ -3589,9 +3565,9 @@ const x1 = {
borderColor: "transparent"
}
}
-}, I1 = {
+}, O1 = {
color: "black"
-}, F1 = {
+}, R1 = {
bg: "black",
color: "white",
// Arrow
@@ -3603,25 +3579,25 @@ const x1 = {
pl: "10px",
color: "gray"
}
-}, N1 = {
+}, $1 = {
bg: "white",
color: "black",
borderColor: "grayShade2"
-}, j1 = {
+}, D1 = {
bg: "white",
color: "black",
borderColor: "gray"
-}, B1 = {
- card: N1,
- readOnly: j1
-}, z1 = {
+}, M1 = {
+ card: $1,
+ readOnly: D1
+}, I1 = {
color: "labels.red"
-}, V1 = {
+}, F1 = {
color: "darkGray"
-}, L1 = {
- error: z1,
- default: V1
-}, W1 = {
+}, N1 = {
+ error: I1,
+ default: F1
+}, j1 = {
color: "black",
bg: "grayShade3",
":hover": {
@@ -3650,27 +3626,27 @@ const x1 = {
"~ svg path": {
fill: "gray"
}
-}, U1 = {
+}, B1 = {
variant: "inputs.primary",
bg: "white",
":focus": {
borderColor: "gray"
}
-}, H1 = {
+}, z1 = {
variant: "inputs.primary",
bg: "grayShade2",
borderColor: "grayShade2",
":focus": {
borderColor: "grayShade2"
}
-}, Y1 = {
- disabled: H1,
- primary: W1,
- white: U1
-}, q1 = {
+}, V1 = {
+ disabled: z1,
+ primary: j1,
+ white: B1
+}, L1 = {
default: "transparent",
error: "labels.red"
-}, G1 = {
+}, W1 = {
bg: "white",
borderLeftColor: "grayShade2",
"> div:first-of-type": {
@@ -3685,7 +3661,7 @@ const x1 = {
"~ div": {
borderTopColor: "grayShade3"
}
-}, X1 = {
+}, U1 = {
bg: "white",
borderRightColor: "grayShade2",
"> div": {
@@ -3694,7 +3670,7 @@ const x1 = {
fill: "gray"
}
}
-}, K1 = {
+}, H1 = {
color: "black",
bg: "white",
cursor: "pointer",
@@ -3718,7 +3694,7 @@ const x1 = {
"~ div": {
borderTopColor: "grayShade3"
}
-}, Z1 = {
+}, Y1 = {
bg: "primaryShade2",
color: "primary",
path: {
@@ -3728,44 +3704,44 @@ const x1 = {
"~ div": {
borderTopColor: "primaryShade2"
}
-}, J1 = {
+}, q1 = {
variant: "navigation.item.default",
cursor: "default",
":hover": {},
":active": {}
-}, Q1 = {
- default: K1,
- active: Z1,
- disabled: J1
-}, ew = {
+}, G1 = {
+ default: H1,
+ active: Y1,
+ disabled: q1
+}, X1 = {
variant: "navigation.subItem.default",
cursor: "default",
":hover": {},
":active": {}
-}, tw = {
+}, K1 = {
variant: "navigation.item.default",
borderLeftWidth: "2px",
borderLeftStyle: "solid",
borderLeftColor: "grayShade2"
-}, rw = {
+}, Z1 = {
variant: "navigation.subItem.default",
color: "primary",
cursor: "default",
borderLeftColor: "primary",
":hover": {}
-}, nw = {
- default: tw,
- active: rw,
- disabled: ew
-}, ow = {
- container: X1,
- item: Q1,
- subItem: nw,
- category: G1
-}, aw = {
+}, J1 = {
+ default: K1,
+ active: Z1,
+ disabled: X1
+}, Q1 = {
+ container: U1,
+ item: G1,
+ subItem: J1,
+ category: W1
+}, ew = {
bg: "white",
boxShadow: "list"
-}, iw = {
+}, tw = {
color: "black",
bg: "white",
fontWeight: "label",
@@ -3776,16 +3752,16 @@ const x1 = {
":hover": {
bg: "grayShade3"
}
-}, sw = {
+}, rw = {
variant: "variants.list.item.primary",
bg: "grayShade3"
-}, lw = {
- primary: iw,
- active: sw
-}, cw = {
- container: aw,
- item: lw
-}, uw = {
+}, nw = {
+ primary: tw,
+ active: rw
+}, ow = {
+ container: ew,
+ item: nw
+}, aw = {
bg: "white",
borderBottomColor: "grayShade2",
zIndex: "modals",
@@ -3799,79 +3775,79 @@ const x1 = {
}
}
}
-}, dw = {
+}, iw = {
fontFamily: "title",
fontSize: "title",
fontWeight: "title",
color: "black"
-}, fw = {
+}, sw = {
fontFamily: "subtitle",
fontSize: "subtitle",
fontWeight: "subtitle",
color: "black"
-}, pw = {
+}, lw = {
fontFamily: "label",
fontSize: "label",
fontWeight: 500,
color: "black"
-}, hw = {
+}, cw = {
fontFamily: "microlabel",
fontSize: "microlabel",
fontWeight: "microlabel",
color: "black"
-}, mw = {
+}, uw = {
variant: "text.microlabeling",
color: "gray"
-}, vw = {
+}, dw = {
fontFamily: "value",
fontSize: "value",
fontWeight: "value",
color: "black"
-}, gw = {
+}, fw = {
variant: "text.value",
color: "primary"
-}, bw = {
+}, pw = {
fontFamily: "text",
fontSize: "text",
fontWeight: "text",
color: "black"
-}, yw = {
+}, hw = {
variant: "text.labeling",
color: "gray"
-}, xw = {
+}, mw = {
color: "gray"
-}, Sw = {
+}, vw = {
color: "primary"
-}, ww = {
+}, gw = {
color: "labels.orange"
-}, wf = {
- title: dw,
- text: bw,
- subtitle: fw,
- labeling: pw,
- value: vw,
- valuePrimary: gw,
- labelingGray: yw,
- microlabeling: hw,
- microlabelingGray: mw,
- inputValidationneutral: xw,
- inputValidationsuccess: Sw,
- inputValidationwarning: ww
-}, Cw = {
+}, Sf = {
+ title: iw,
+ text: pw,
+ subtitle: sw,
+ labeling: lw,
+ value: dw,
+ valuePrimary: fw,
+ labelingGray: hw,
+ microlabeling: cw,
+ microlabelingGray: uw,
+ inputValidationneutral: mw,
+ inputValidationsuccess: vw,
+ inputValidationwarning: gw
+}, bw = {
bg: "white",
borderTopColor: "primary",
boxShadow: "popup"
-}, _w = {
+}, yw = {
bg: "white",
":not(:last-of-type)": {
borderBottomColor: "grayShade3",
borderBottomWidth: "2px",
borderBottomStyle: "solid"
}
-}, kw = {
- drawerSection: _w,
- primary: Cw
-}, Ew = {
+}, xw = {
+ drawerSection: yw,
+ primary: bw
+}, Sw = {
black: {
bg: "black",
color: "white"
@@ -3880,7 +3856,7 @@ const x1 = {
bg: "labels.green",
color: "white"
}
-}, Pw = {
+}, ww = {
red: {
bg: "labels.red"
},
@@ -3890,7 +3866,7 @@ const x1 = {
gray: {
bg: "gray"
}
-}, Tw = {
+}, Cw = {
bg: "grayShade2",
borderColor: "gray",
"> span": {
@@ -3898,7 +3874,7 @@ const x1 = {
bg: "white"
}
}
-}, Aw = {
+}, _w = {
bg: "white",
borderColor: "gray",
"> span": {
@@ -3906,10 +3882,10 @@ const x1 = {
bg: "grayShade2"
}
}
-}, Ow = {
- gray: Tw,
- white: Aw
-}, $w = {
+}, kw = {
+ gray: Cw,
+ white: _w
+}, Ew = {
default: {
"> span": {
color: "grayShade3"
@@ -3952,7 +3928,7 @@ const x1 = {
},
bg: "labels.yellow"
}
-}, Rw = {
+}, Pw = {
default: {
"> span": {
color: "black"
@@ -4009,13 +3985,13 @@ const x1 = {
border: "1px solid",
borderColor: "labels.yellow"
}
-}, Dw = {
- keyValue: Ow,
- primary: $w,
- bordered: Rw,
- dot: Ew,
- blink: Pw
-}, Mw = {
+}, Tw = {
+ keyValue: kw,
+ primary: Ew,
+ bordered: Pw,
+ dot: Sw,
+ blink: ww
+}, Aw = {
primary: {
span: {
bg: "grayShade3",
@@ -4032,7 +4008,7 @@ const x1 = {
bg: "grayShade1"
}
}
-}, Iw = {
+}, Ow = {
primary: {
span: {
bg: "grayShade3",
@@ -4049,7 +4025,7 @@ const x1 = {
bg: "grayShade1"
}
}
-}, Fw = {
+}, Rw = {
bg: "grayShade3",
borderColor: "transparent",
cursor: "pointer",
@@ -4059,26 +4035,26 @@ const x1 = {
":focus": {
borderColor: "gray"
}
-}, Nw = {
+}, $w = {
variant: "variants.select.primary",
bg: "white"
-}, jw = {
+}, Dw = {
bg: "grayShade2",
borderColor: "transparent",
cursor: "default",
pointerEvents: "none"
-}, Bw = {
- disabled: jw,
- primary: Fw,
- white: Nw
-}, zw = {
+}, Mw = {
+ disabled: Dw,
+ primary: Rw,
+ white: $w
+}, Iw = {
color: "labels.red"
-}, Vw = {
+}, Fw = {
color: "darkGray"
-}, Lw = {
- error: zw,
- default: Vw
-}, Ww = {
+}, Nw = {
+ error: Iw,
+ default: Fw
+}, jw = {
progress: {
bg: "labels.green",
"> span": {
@@ -4091,7 +4067,7 @@ const x1 = {
bg: "#EBEBEB"
}
}
-}, Uw = {
+}, Bw = {
black: {
bg: "grayShade2",
"> div": {
@@ -4116,7 +4092,7 @@ const x1 = {
bg: "labels.orange"
}
}
-}, Hw = {
+}, zw = {
bg: "primaryShade2",
whiteSpace: "pre-wrap",
pre: {
@@ -4125,7 +4101,7 @@ const x1 = {
fontSize: "value",
whiteSpace: "pre-wrap"
}
-}, Yw = {
+}, Vw = {
color: "labels.green",
bg: "primaryShade2",
borderLeftWidth: 0,
@@ -4141,7 +4117,7 @@ const x1 = {
}
}
}
-}, qw = {
+}, Lw = {
color: "labels.red",
bg: "labels.redShade2",
borderLeftWidth: 0,
@@ -4157,7 +4133,7 @@ const x1 = {
}
}
}
-}, Gw = {
+}, Ww = {
color: "labels.orange",
bg: "labels.orangeShade2",
borderLeftWidth: 0,
@@ -4173,7 +4149,7 @@ const x1 = {
}
}
}
-}, Xw = {
+}, Uw = {
color: "black",
bg: "grayShade2",
borderLeftWidth: 0,
@@ -4189,18 +4165,18 @@ const x1 = {
}
}
}
-}, Kw = {
- valid: Yw,
- error: qw,
- warning: Gw,
- neutral: Xw
-}, Zw = {
+}, Hw = {
+ valid: Vw,
+ error: Lw,
+ warning: Ww,
+ neutral: Uw
+}, Yw = {
primary: {
path: {
fill: "black"
}
}
-}, Jw = {
+}, qw = {
bg: "transparent",
label: {
color: "black",
@@ -4216,7 +4192,7 @@ const x1 = {
"& > div > button:disabled > svg > path": {
fill: "grayShade1"
}
-}, Qw = {
+}, Gw = {
variant: "pagination.primary",
label: {
color: "black",
@@ -4229,7 +4205,7 @@ const x1 = {
borderColor: "gray"
}
}
-}, eC = {
+}, Xw = {
variant: "pagination.primary",
label: {
color: "black",
@@ -4240,18 +4216,18 @@ const x1 = {
"& > div > button:disabled > svg > path": {
fill: "grayShade1"
}
-}, tC = {
- primary: Jw,
- white: Qw,
- disabled: eC
-}, rC = {
+}, Kw = {
+ primary: qw,
+ white: Gw,
+ disabled: Xw
+}, Zw = {
secondary: {
notification: {
bg: "white",
borderColor: "grayShade2"
}
}
-}, nC = {
+}, Jw = {
primary: "#21B182",
primaryShade1: "#65D3AF",
primaryShade2: "#E6F2EE",
@@ -4275,8 +4251,8 @@ const x1 = {
orangeShade2: "#FDF0E4",
redShade2: "#F8DEDE"
}
-}, oC = {
- colors: nC,
+}, Qw = {
+ colors: Jw,
fonts: {
text: "Inter",
title: "Inter",
@@ -4326,27 +4302,27 @@ const x1 = {
focused: "0 0 0 2px rgba(33, 177, 130, 0.6)"
},
variants: {
- ...B1,
- tooltip: F1,
- label: I1,
- list: cw,
- header: uw,
- checkbox: Mw,
- radio: Iw,
- badges: Dw,
- popup: kw,
- bar: Ww,
- perf: Uw,
- code: Hw,
- select: Bw,
- callout: Kw,
- icon: Zw,
- ...wf
+ ...M1,
+ tooltip: R1,
+ label: O1,
+ list: ow,
+ header: aw,
+ checkbox: Aw,
+ radio: Ow,
+ badges: Tw,
+ popup: xw,
+ bar: jw,
+ perf: Bw,
+ code: zw,
+ select: Mw,
+ callout: Hw,
+ icon: Yw,
+ ...Sf
},
text: {
- inputInfo: L1,
- selectInfo: Lw,
- ...wf
+ inputInfo: N1,
+ selectInfo: Nw,
+ ...Sf
},
zIndices: {
default: 10,
@@ -4356,18 +4332,18 @@ const x1 = {
notifications: 50
},
buttons: {
- ...k1,
- ...A1,
- ...$1,
- ...D1,
- toggleButton: M1
- },
- navigation: ow,
- inputs: Y1,
- inputIntents: q1,
- pagination: tC,
- notification: rC
-}, aC = {
+ ...x1,
+ ..._1,
+ ...E1,
+ ...T1,
+ toggleButton: A1
+ },
+ navigation: Q1,
+ inputs: V1,
+ inputIntents: L1,
+ pagination: Kw,
+ notification: Zw
+}, eC = {
white: "#181a1b",
gray: "#A6A6A6",
grayShade1: "#707070",
@@ -4391,7 +4367,7 @@ const x1 = {
redShade2: "#4E3131",
purpleShade2: "#8449BB"
}
-}, iC = {
+}, tC = {
primary: "0 0 1px 2px rgba(160, 160, 160, 0.1)",
secondary: "0 0 1px 2px rgba(160, 160, 160, 0.1)",
explorer: "0 0 1px 2px rgba(160, 160, 160, 0.1)",
@@ -4403,23 +4379,23 @@ const x1 = {
popup: "0 0 1px 2px rgba(160, 160, 160, 0.1)",
notification: "0 0 1px 2px rgba(160, 160, 160, 0.1)",
focused: "0 0 0 2px rgba(33, 177, 130, 0.6)"
-}, PV = () => y1(), TV = {
- ...oC,
- colors: aC,
- shadows: iC
+}, SV = () => h1(), wV = {
+ ...Qw,
+ colors: eC,
+ shadows: tC
};
-function sC(e) {
+function rC(e) {
if (e.sheet)
return e.sheet;
for (var t = 0; t < document.styleSheets.length; t++)
if (document.styleSheets[t].ownerNode === e)
return document.styleSheets[t];
}
-function lC(e) {
+function nC(e) {
var t = document.createElement("style");
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
}
-var cC = /* @__PURE__ */ function() {
+var oC = /* @__PURE__ */ function() {
function e(r) {
var n = this;
this._insertTag = function(o) {
@@ -4431,7 +4407,7 @@ var cC = /* @__PURE__ */ function() {
return t.hydrate = function(n) {
n.forEach(this._insertTag);
}, t.insert = function(n) {
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(lC(this));
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(nC(this));
var o = this.tags[this.tags.length - 1];
if (process.env.NODE_ENV !== "production") {
var a = n.charCodeAt(0) === 64 && n.charCodeAt(1) === 105;
@@ -4439,7 +4415,7 @@ var cC = /* @__PURE__ */ function() {
` + n + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !a;
}
if (this.isSpeedy) {
- var i = sC(o);
+ var i = rC(o);
try {
i.insertRule(n, i.cssRules.length);
} catch (s) {
@@ -4453,14 +4429,14 @@ var cC = /* @__PURE__ */ function() {
return n.parentNode && n.parentNode.removeChild(n);
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
}, e;
-}(), Tt = "-ms-", us = "-moz-", Be = "-webkit-", Ru = "comm", Du = "rule", Mu = "decl", uC = "@import", Km = "@keyframes", dC = "@layer", fC = Math.abs, js = String.fromCharCode, pC = Object.assign;
-function hC(e, t) {
+}(), Tt = "-ms-", cs = "-moz-", Be = "-webkit-", Ou = "comm", Ru = "rule", $u = "decl", aC = "@import", Gm = "@keyframes", iC = "@layer", sC = Math.abs, Ns = String.fromCharCode, lC = Object.assign;
+function cC(e, t) {
return kt(e, 0) ^ 45 ? (((t << 2 ^ kt(e, 0)) << 2 ^ kt(e, 1)) << 2 ^ kt(e, 2)) << 2 ^ kt(e, 3) : 0;
}
-function Zm(e) {
+function Xm(e) {
return e.trim();
}
-function mC(e, t) {
+function uC(e, t) {
return (e = t.exec(e)) ? e[0] : e;
}
function ze(e, t, r) {
@@ -4472,47 +4448,47 @@ function Rc(e, t) {
function kt(e, t) {
return e.charCodeAt(t) | 0;
}
-function Ra(e, t, r) {
+function Da(e, t, r) {
return e.slice(t, r);
}
function $r(e) {
return e.length;
}
-function Iu(e) {
+function Du(e) {
return e.length;
}
function Si(e, t) {
return t.push(e), e;
}
-function vC(e, t) {
+function dC(e, t) {
return e.map(t).join("");
}
-var Bs = 1, Eo = 1, Jm = 0, Ht = 0, vt = 0, Fo = "";
-function zs(e, t, r, n, o, a, i) {
- return { value: e, root: t, parent: r, type: n, props: o, children: a, line: Bs, column: Eo, length: i, return: "" };
+var js = 1, Po = 1, Km = 0, Ht = 0, vt = 0, No = "";
+function Bs(e, t, r, n, o, a, i) {
+ return { value: e, root: t, parent: r, type: n, props: o, children: a, line: js, column: Po, length: i, return: "" };
}
-function Go(e, t) {
- return pC(zs("", null, null, "", null, null, 0), e, { length: -e.length }, t);
+function Xo(e, t) {
+ return lC(Bs("", null, null, "", null, null, 0), e, { length: -e.length }, t);
}
-function gC() {
+function fC() {
return vt;
}
-function bC() {
- return vt = Ht > 0 ? kt(Fo, --Ht) : 0, Eo--, vt === 10 && (Eo = 1, Bs--), vt;
+function pC() {
+ return vt = Ht > 0 ? kt(No, --Ht) : 0, Po--, vt === 10 && (Po = 1, js--), vt;
}
function Kt() {
- return vt = Ht < Jm ? kt(Fo, Ht++) : 0, Eo++, vt === 10 && (Eo = 1, Bs++), vt;
+ return vt = Ht < Km ? kt(No, Ht++) : 0, Po++, vt === 10 && (Po = 1, js++), vt;
}
-function Dr() {
- return kt(Fo, Ht);
+function Mr() {
+ return kt(No, Ht);
}
function zi() {
return Ht;
}
function Ja(e, t) {
- return Ra(Fo, e, t);
+ return Da(No, e, t);
}
-function Da(e) {
+function Ma(e) {
switch (e) {
case 0:
case 9:
@@ -4544,36 +4520,36 @@ function Da(e) {
}
return 0;
}
-function Qm(e) {
- return Bs = Eo = 1, Jm = $r(Fo = e), Ht = 0, [];
+function Zm(e) {
+ return js = Po = 1, Km = $r(No = e), Ht = 0, [];
}
-function ev(e) {
- return Fo = "", e;
+function Jm(e) {
+ return No = "", e;
}
function Vi(e) {
- return Zm(Ja(Ht - 1, Dc(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
+ return Xm(Ja(Ht - 1, $c(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
-function yC(e) {
- for (; (vt = Dr()) && vt < 33; )
+function hC(e) {
+ for (; (vt = Mr()) && vt < 33; )
Kt();
- return Da(e) > 2 || Da(vt) > 3 ? "" : " ";
+ return Ma(e) > 2 || Ma(vt) > 3 ? "" : " ";
}
-function xC(e, t) {
+function mC(e, t) {
for (; --t && Kt() && !(vt < 48 || vt > 102 || vt > 57 && vt < 65 || vt > 70 && vt < 97); )
;
- return Ja(e, zi() + (t < 6 && Dr() == 32 && Kt() == 32));
+ return Ja(e, zi() + (t < 6 && Mr() == 32 && Kt() == 32));
}
-function Dc(e) {
+function $c(e) {
for (; Kt(); )
switch (vt) {
case e:
return Ht;
case 34:
case 39:
- e !== 34 && e !== 39 && Dc(vt);
+ e !== 34 && e !== 39 && $c(vt);
break;
case 40:
- e === 41 && Dc(e);
+ e === 41 && $c(e);
break;
case 92:
Kt();
@@ -4581,22 +4557,22 @@ function Dc(e) {
}
return Ht;
}
-function SC(e, t) {
+function vC(e, t) {
for (; Kt() && e + vt !== 47 + 10; )
- if (e + vt === 42 + 42 && Dr() === 47)
+ if (e + vt === 42 + 42 && Mr() === 47)
break;
- return "/*" + Ja(t, Ht - 1) + "*" + js(e === 47 ? e : Kt());
+ return "/*" + Ja(t, Ht - 1) + "*" + Ns(e === 47 ? e : Kt());
}
-function wC(e) {
- for (; !Da(Dr()); )
+function gC(e) {
+ for (; !Ma(Mr()); )
Kt();
return Ja(e, Ht);
}
-function CC(e) {
- return ev(Li("", null, null, null, [""], e = Qm(e), 0, [0], e));
+function bC(e) {
+ return Jm(Li("", null, null, null, [""], e = Zm(e), 0, [0], e));
}
function Li(e, t, r, n, o, a, i, s, l) {
- for (var c = 0, u = 0, d = i, f = 0, p = 0, m = 0, h = 1, v = 1, b = 1, y = 0, S = "", k = o, w = a, M = n, P = S; v; )
+ for (var c = 0, u = 0, d = i, f = 0, p = 0, m = 0, h = 1, v = 1, b = 1, y = 0, S = "", _ = o, w = a, M = n, P = S; v; )
switch (m = y, y = Kt()) {
case 40:
if (m != 108 && kt(P, d - 1) == 58) {
@@ -4612,16 +4588,16 @@ function Li(e, t, r, n, o, a, i, s, l) {
case 10:
case 13:
case 32:
- P += yC(m);
+ P += hC(m);
break;
case 92:
- P += xC(zi() - 1, 7);
+ P += mC(zi() - 1, 7);
continue;
case 47:
- switch (Dr()) {
+ switch (Mr()) {
case 42:
case 47:
- Si(_C(SC(Kt(), zi()), t, r), l);
+ Si(yC(vC(Kt(), zi()), t, r), l);
break;
default:
P += "/";
@@ -4637,21 +4613,21 @@ function Li(e, t, r, n, o, a, i, s, l) {
case 125:
v = 0;
case 59 + u:
- b == -1 && (P = ze(P, /\f/g, "")), p > 0 && $r(P) - d && Si(p > 32 ? _f(P + ";", n, r, d - 1) : _f(ze(P, " ", "") + ";", n, r, d - 2), l);
+ b == -1 && (P = ze(P, /\f/g, "")), p > 0 && $r(P) - d && Si(p > 32 ? Cf(P + ";", n, r, d - 1) : Cf(ze(P, " ", "") + ";", n, r, d - 2), l);
break;
case 59:
P += ";";
default:
- if (Si(M = Cf(P, t, r, c, u, o, s, S, k = [], w = [], d), a), y === 123)
+ if (Si(M = wf(P, t, r, c, u, o, s, S, _ = [], w = [], d), a), y === 123)
if (u === 0)
- Li(P, t, M, M, k, a, d, s, w);
+ Li(P, t, M, M, _, a, d, s, w);
else
switch (f === 99 && kt(P, 3) === 110 ? 100 : f) {
case 100:
case 108:
case 109:
case 115:
- Li(e, M, M, n && Si(Cf(e, M, M, 0, 0, o, s, S, o, k = [], d), w), o, w, d, s, n ? k : w);
+ Li(e, M, M, n && Si(wf(e, M, M, 0, 0, o, s, S, o, _ = [], d), w), o, w, d, s, n ? _ : w);
break;
default:
Li(P, M, M, M, [""], w, 0, s, w);
@@ -4665,10 +4641,10 @@ function Li(e, t, r, n, o, a, i, s, l) {
if (h < 1) {
if (y == 123)
--h;
- else if (y == 125 && h++ == 0 && bC() == 125)
+ else if (y == 125 && h++ == 0 && pC() == 125)
continue;
}
- switch (P += js(y), y * h) {
+ switch (P += Ns(y), y * h) {
case 38:
b = u > 0 ? 1 : (P += "\f", -1);
break;
@@ -4676,7 +4652,7 @@ function Li(e, t, r, n, o, a, i, s, l) {
s[c++] = ($r(P) - 1) * b, b = 1;
break;
case 64:
- Dr() === 45 && (P += Vi(Kt())), f = Dr(), u = d = $r(S = P += wC(zi())), y++;
+ Mr() === 45 && (P += Vi(Kt())), f = Mr(), u = d = $r(S = P += gC(zi())), y++;
break;
case 45:
m === 45 && $r(P) == 2 && (h = 0);
@@ -4684,54 +4660,54 @@ function Li(e, t, r, n, o, a, i, s, l) {
}
return a;
}
-function Cf(e, t, r, n, o, a, i, s, l, c, u) {
- for (var d = o - 1, f = o === 0 ? a : [""], p = Iu(f), m = 0, h = 0, v = 0; m < n; ++m)
- for (var b = 0, y = Ra(e, d + 1, d = fC(h = i[m])), S = e; b < p; ++b)
- (S = Zm(h > 0 ? f[b] + " " + y : ze(y, /&\f/g, f[b]))) && (l[v++] = S);
- return zs(e, t, r, o === 0 ? Du : s, l, c, u);
+function wf(e, t, r, n, o, a, i, s, l, c, u) {
+ for (var d = o - 1, f = o === 0 ? a : [""], p = Du(f), m = 0, h = 0, v = 0; m < n; ++m)
+ for (var b = 0, y = Da(e, d + 1, d = sC(h = i[m])), S = e; b < p; ++b)
+ (S = Xm(h > 0 ? f[b] + " " + y : ze(y, /&\f/g, f[b]))) && (l[v++] = S);
+ return Bs(e, t, r, o === 0 ? Ru : s, l, c, u);
}
-function _C(e, t, r) {
- return zs(e, t, r, Ru, js(gC()), Ra(e, 2, -2), 0);
+function yC(e, t, r) {
+ return Bs(e, t, r, Ou, Ns(fC()), Da(e, 2, -2), 0);
}
-function _f(e, t, r, n) {
- return zs(e, t, r, Mu, Ra(e, 0, n), Ra(e, n + 1, -1), n);
+function Cf(e, t, r, n) {
+ return Bs(e, t, r, $u, Da(e, 0, n), Da(e, n + 1, -1), n);
}
-function ho(e, t) {
- for (var r = "", n = Iu(e), o = 0; o < n; o++)
+function mo(e, t) {
+ for (var r = "", n = Du(e), o = 0; o < n; o++)
r += t(e[o], o, e, t) || "";
return r;
}
-function kC(e, t, r, n) {
+function xC(e, t, r, n) {
switch (e.type) {
- case dC:
+ case iC:
if (e.children.length)
break;
- case uC:
- case Mu:
+ case aC:
+ case $u:
return e.return = e.return || e.value;
- case Ru:
+ case Ou:
return "";
- case Km:
- return e.return = e.value + "{" + ho(e.children, n) + "}";
- case Du:
+ case Gm:
+ return e.return = e.value + "{" + mo(e.children, n) + "}";
+ case Ru:
e.value = e.props.join(",");
}
- return $r(r = ho(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
+ return $r(r = mo(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
}
-function EC(e) {
- var t = Iu(e);
+function SC(e) {
+ var t = Du(e);
return function(r, n, o, a) {
for (var i = "", s = 0; s < t; s++)
i += e[s](r, n, o, a) || "";
return i;
};
}
-function PC(e) {
+function wC(e) {
return function(t) {
t.root || (t = t.return) && e(t);
};
}
-var kf = function(t) {
+var _f = function(t) {
var r = /* @__PURE__ */ new WeakMap();
return function(n) {
if (r.has(n))
@@ -4740,62 +4716,62 @@ var kf = function(t) {
return r.set(n, o), o;
};
};
-function tv(e) {
+function Qm(e) {
var t = /* @__PURE__ */ Object.create(null);
return function(r) {
return t[r] === void 0 && (t[r] = e(r)), t[r];
};
}
-var TC = function(t, r, n) {
- for (var o = 0, a = 0; o = a, a = Dr(), o === 38 && a === 12 && (r[n] = 1), !Da(a); )
+var CC = function(t, r, n) {
+ for (var o = 0, a = 0; o = a, a = Mr(), o === 38 && a === 12 && (r[n] = 1), !Ma(a); )
Kt();
return Ja(t, Ht);
-}, AC = function(t, r) {
+}, _C = function(t, r) {
var n = -1, o = 44;
do
- switch (Da(o)) {
+ switch (Ma(o)) {
case 0:
- o === 38 && Dr() === 12 && (r[n] = 1), t[n] += TC(Ht - 1, r, n);
+ o === 38 && Mr() === 12 && (r[n] = 1), t[n] += CC(Ht - 1, r, n);
break;
case 2:
t[n] += Vi(o);
break;
case 4:
if (o === 44) {
- t[++n] = Dr() === 58 ? "&\f" : "", r[n] = t[n].length;
+ t[++n] = Mr() === 58 ? "&\f" : "", r[n] = t[n].length;
break;
}
default:
- t[n] += js(o);
+ t[n] += Ns(o);
}
while (o = Kt());
return t;
-}, OC = function(t, r) {
- return ev(AC(Qm(t), r));
-}, Ef = /* @__PURE__ */ new WeakMap(), $C = function(t) {
+}, kC = function(t, r) {
+ return Jm(_C(Zm(t), r));
+}, kf = /* @__PURE__ */ new WeakMap(), EC = function(t) {
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
t.length < 1)) {
for (var r = t.value, n = t.parent, o = t.column === n.column && t.line === n.line; n.type !== "rule"; )
if (n = n.parent, !n)
return;
- if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Ef.get(n)) && !o) {
- Ef.set(t, !0);
- for (var a = [], i = OC(r, a), s = n.props, l = 0, c = 0; l < i.length; l++)
+ if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !kf.get(n)) && !o) {
+ kf.set(t, !0);
+ for (var a = [], i = kC(r, a), s = n.props, l = 0, c = 0; l < i.length; l++)
for (var u = 0; u < s.length; u++, c++)
t.props[c] = a[l] ? i[l].replace(/&\f/g, s[u]) : s[u] + " " + i[l];
}
}
-}, RC = function(t) {
+}, PC = function(t) {
if (t.type === "decl") {
var r = t.value;
// charcode for l
r.charCodeAt(0) === 108 && // charcode for b
r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
}
-}, DC = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", MC = function(t) {
- return t.type === "comm" && t.children.indexOf(DC) > -1;
-}, IC = function(t) {
+}, TC = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", AC = function(t) {
+ return t.type === "comm" && t.children.indexOf(TC) > -1;
+}, OC = function(t) {
return function(r, n, o) {
if (!(r.type !== "rule" || t.compat)) {
var a = r.value.match(/(:first|:nth|:nth-last)-child/g);
@@ -4808,7 +4784,7 @@ var TC = function(t, r, n) {
if (c.line < r.line)
break;
if (c.column < r.column) {
- if (MC(c))
+ if (AC(c))
return;
break;
}
@@ -4819,20 +4795,20 @@ var TC = function(t, r, n) {
}
}
};
-}, rv = function(t) {
+}, ev = function(t) {
return t.type.charCodeAt(1) === 105 && t.type.charCodeAt(0) === 64;
-}, FC = function(t, r) {
+}, RC = function(t, r) {
for (var n = t - 1; n >= 0; n--)
- if (!rv(r[n]))
+ if (!ev(r[n]))
return !0;
return !1;
-}, Pf = function(t) {
+}, Ef = function(t) {
t.type = "", t.value = "", t.return = "", t.children = "", t.props = "";
-}, NC = function(t, r, n) {
- rv(t) && (t.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), Pf(t)) : FC(r, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), Pf(t)));
+}, $C = function(t, r, n) {
+ ev(t) && (t.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), Ef(t)) : RC(r, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), Ef(t)));
};
-function nv(e, t) {
- switch (hC(e, t)) {
+function tv(e, t) {
+ switch (cC(e, t)) {
case 5103:
return Be + "print-" + e + e;
case 5737:
@@ -4866,7 +4842,7 @@ function nv(e, t) {
case 4810:
case 6968:
case 2756:
- return Be + e + us + e + Tt + e + e;
+ return Be + e + cs + e + Tt + e + e;
case 6828:
case 4268:
return Be + e + Tt + e + e;
@@ -4916,9 +4892,9 @@ function nv(e, t) {
if (kt(e, t + 4) !== 45)
break;
case 102:
- return ze(e, /(.+:)(.+)-([^]+)/, "$1" + Be + "$2-$3$1" + us + (kt(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
+ return ze(e, /(.+:)(.+)-([^]+)/, "$1" + Be + "$2-$3$1" + cs + (kt(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
case 115:
- return ~Rc(e, "stretch") ? nv(ze(e, "stretch", "fill-available"), t) + e : e;
+ return ~Rc(e, "stretch") ? tv(ze(e, "stretch", "fill-available"), t) + e : e;
}
break;
case 4949:
@@ -4945,38 +4921,38 @@ function nv(e, t) {
}
return e;
}
-var jC = function(t, r, n, o) {
+var DC = function(t, r, n, o) {
if (t.length > -1 && !t.return)
switch (t.type) {
- case Mu:
- t.return = nv(t.value, t.length);
+ case $u:
+ t.return = tv(t.value, t.length);
break;
- case Km:
- return ho([Go(t, {
+ case Gm:
+ return mo([Xo(t, {
value: ze(t.value, "@", "@" + Be)
})], o);
- case Du:
+ case Ru:
if (t.length)
- return vC(t.props, function(a) {
- switch (mC(a, /(::plac\w+|:read-\w+)/)) {
+ return dC(t.props, function(a) {
+ switch (uC(a, /(::plac\w+|:read-\w+)/)) {
case ":read-only":
case ":read-write":
- return ho([Go(t, {
- props: [ze(a, /:(read-\w+)/, ":" + us + "$1")]
+ return mo([Xo(t, {
+ props: [ze(a, /:(read-\w+)/, ":" + cs + "$1")]
})], o);
case "::placeholder":
- return ho([Go(t, {
+ return mo([Xo(t, {
props: [ze(a, /:(plac\w+)/, ":" + Be + "input-$1")]
- }), Go(t, {
- props: [ze(a, /:(plac\w+)/, ":" + us + "$1")]
- }), Go(t, {
+ }), Xo(t, {
+ props: [ze(a, /:(plac\w+)/, ":" + cs + "$1")]
+ }), Xo(t, {
props: [ze(a, /:(plac\w+)/, Tt + "input-$1")]
})], o);
}
return "";
});
}
-}, BC = [jC], zC = function(t) {
+}, MC = [DC], IC = function(t) {
var r = t.key;
if (process.env.NODE_ENV !== "production" && !r)
throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
@@ -4988,7 +4964,7 @@ If multiple caches share the same key they might "fight" for each other's style
v.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
});
}
- var o = t.stylisPlugins || BC;
+ var o = t.stylisPlugins || MC;
if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(r))
throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + r + '" was passed');
var a = {}, i, s = [];
@@ -5002,19 +4978,19 @@ If multiple caches share the same key they might "fight" for each other's style
s.push(h);
}
);
- var l, c = [$C, RC];
- process.env.NODE_ENV !== "production" && c.push(IC({
+ var l, c = [EC, PC];
+ process.env.NODE_ENV !== "production" && c.push(OC({
get compat() {
return m.compat;
}
- }), NC);
+ }), $C);
{
- var u, d = [kC, process.env.NODE_ENV !== "production" ? function(h) {
- h.root || (h.return ? u.insert(h.return) : h.value && h.type !== Ru && u.insert(h.value + "{}"));
- } : PC(function(h) {
+ var u, d = [xC, process.env.NODE_ENV !== "production" ? function(h) {
+ h.root || (h.return ? u.insert(h.return) : h.value && h.type !== Ou && u.insert(h.value + "{}"));
+ } : wC(function(h) {
u.insert(h);
- })], f = EC(c.concat(o, d)), p = function(v) {
- return ho(CC(v), f);
+ })], f = SC(c.concat(o, d)), p = function(v) {
+ return mo(bC(v), f);
};
l = function(v, b, y, S) {
u = y, process.env.NODE_ENV !== "production" && b.map !== void 0 && (u = {
@@ -5026,7 +5002,7 @@ If multiple caches share the same key they might "fight" for each other's style
}
var m = {
key: r,
- sheet: new cC({
+ sheet: new oC({
key: r,
container: i,
nonce: t.nonce,
@@ -5040,14 +5016,14 @@ If multiple caches share the same key they might "fight" for each other's style
insert: l
};
return m.sheet.hydrate(s), m;
-}, VC = !0;
-function Fu(e, t, r) {
+}, FC = !0;
+function Mu(e, t, r) {
var n = "";
return r.split(" ").forEach(function(o) {
e[o] !== void 0 ? t.push(e[o] + ";") : n += o + " ";
}), n;
}
-var Vs = function(t, r, n) {
+var zs = function(t, r, n) {
var o = t.key + "-" + r.name;
// we only need to add the styles to the registered cache if the
// class name could be used further down
@@ -5058,9 +5034,9 @@ var Vs = function(t, r, n) {
// in node since emotion-server relies on whether a style is in
// the registered cache to know whether a style is global or not
// also, note that this check will be dead code eliminated in the browser
- VC === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles);
-}, Ls = function(t, r, n) {
- Vs(t, r, n);
+ FC === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles);
+}, Vs = function(t, r, n) {
+ zs(t, r, n);
var o = t.key + "-" + r.name;
if (t.inserted[r.name] === void 0) {
var a = r;
@@ -5069,7 +5045,7 @@ var Vs = function(t, r, n) {
while (a !== void 0);
}
};
-function LC(e) {
+function NC(e) {
for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
@@ -5088,7 +5064,7 @@ function LC(e) {
return t ^= t >>> 13, t = /* Math.imul(h, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
}
-var WC = {
+var jC = {
animationIterationCount: 1,
aspectRatio: 1,
borderImageOutset: 1,
@@ -5136,21 +5112,21 @@ var WC = {
strokeMiterlimit: 1,
strokeOpacity: 1,
strokeWidth: 1
-}, Tf = `You have illegal escape sequence in your template literal, most likely inside content's property value.
+}, Pf = `You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
-https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, UC = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", HC = /[A-Z]|^ms/g, ov = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Nu = function(t) {
+https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, BC = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", zC = /[A-Z]|^ms/g, rv = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Iu = function(t) {
return t.charCodeAt(1) === 45;
-}, Af = function(t) {
+}, Tf = function(t) {
return t != null && typeof t != "boolean";
-}, Al = /* @__PURE__ */ tv(function(e) {
- return Nu(e) ? e : e.replace(HC, "-$&").toLowerCase();
-}), ds = function(t, r) {
+}, Pl = /* @__PURE__ */ Qm(function(e) {
+ return Iu(e) ? e : e.replace(zC, "-$&").toLowerCase();
+}), us = function(t, r) {
switch (t) {
case "animation":
case "animationName":
if (typeof r == "string")
- return r.replace(ov, function(n, o, a) {
+ return r.replace(rv, function(n, o, a) {
return gr = {
name: o,
styles: a,
@@ -5158,26 +5134,26 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
}, o;
});
}
- return WC[t] !== 1 && !Nu(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
+ return jC[t] !== 1 && !Iu(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
};
if (process.env.NODE_ENV !== "production") {
- var YC = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, qC = ["normal", "none", "initial", "inherit", "unset"], GC = ds, XC = /^-ms-/, KC = /-(.)/g, Of = {};
- ds = function(t, r) {
- if (t === "content" && (typeof r != "string" || qC.indexOf(r) === -1 && !YC.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")))
+ var VC = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, LC = ["normal", "none", "initial", "inherit", "unset"], WC = us, UC = /^-ms-/, HC = /-(.)/g, Af = {};
+ us = function(t, r) {
+ if (t === "content" && (typeof r != "string" || LC.indexOf(r) === -1 && !VC.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")))
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`");
- var n = GC(t, r);
- return n !== "" && !Nu(t) && t.indexOf("-") !== -1 && Of[t] === void 0 && (Of[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(XC, "ms-").replace(KC, function(o, a) {
+ var n = WC(t, r);
+ return n !== "" && !Iu(t) && t.indexOf("-") !== -1 && Af[t] === void 0 && (Af[t] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + t.replace(UC, "ms-").replace(HC, function(o, a) {
return a.toUpperCase();
}) + "?")), n;
};
}
-var av = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
-function Ma(e, t, r) {
+var nv = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
+function Ia(e, t, r) {
if (r == null)
return "";
if (r.__emotion_styles !== void 0) {
if (process.env.NODE_ENV !== "production" && r.toString() === "NO_COMPONENT_SELECTOR")
- throw new Error(av);
+ throw new Error(nv);
return r;
}
switch (typeof r) {
@@ -5202,19 +5178,19 @@ function Ma(e, t, r) {
var o = r.styles + ";";
return process.env.NODE_ENV !== "production" && r.map !== void 0 && (o += r.map), o;
}
- return ZC(e, t, r);
+ return YC(e, t, r);
}
case "function": {
if (e !== void 0) {
var a = gr, i = r(e);
- return gr = a, Ma(e, t, i);
+ return gr = a, Ia(e, t, i);
} else
process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
break;
}
case "string":
if (process.env.NODE_ENV !== "production") {
- var s = [], l = r.replace(ov, function(u, d, f) {
+ var s = [], l = r.replace(rv, function(u, d, f) {
var p = "animation" + s.length;
return s.push("const " + p + " = keyframes`" + f.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + p + "}";
});
@@ -5232,57 +5208,57 @@ You should wrap it with \`css\` like this:
var c = t[r];
return c !== void 0 ? c : r;
}
-function ZC(e, t, r) {
+function YC(e, t, r) {
var n = "";
if (Array.isArray(r))
for (var o = 0; o < r.length; o++)
- n += Ma(e, t, r[o]) + ";";
+ n += Ia(e, t, r[o]) + ";";
else
for (var a in r) {
var i = r[a];
if (typeof i != "object")
- t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : Af(i) && (n += Al(a) + ":" + ds(a, i) + ";");
+ t != null && t[i] !== void 0 ? n += a + "{" + t[i] + "}" : Tf(i) && (n += Pl(a) + ":" + us(a, i) + ";");
else {
if (a === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
- throw new Error(av);
+ throw new Error(nv);
if (Array.isArray(i) && typeof i[0] == "string" && (t == null || t[i[0]] === void 0))
for (var s = 0; s < i.length; s++)
- Af(i[s]) && (n += Al(a) + ":" + ds(a, i[s]) + ";");
+ Tf(i[s]) && (n += Pl(a) + ":" + us(a, i[s]) + ";");
else {
- var l = Ma(e, t, i);
+ var l = Ia(e, t, i);
switch (a) {
case "animation":
case "animationName": {
- n += Al(a) + ":" + l + ";";
+ n += Pl(a) + ":" + l + ";";
break;
}
default:
- process.env.NODE_ENV !== "production" && a === "undefined" && console.error(UC), n += a + "{" + l + "}";
+ process.env.NODE_ENV !== "production" && a === "undefined" && console.error(BC), n += a + "{" + l + "}";
}
}
}
}
return n;
}
-var $f = /label:\s*([^\s;\n{]+)\s*(;|$)/g, iv;
-process.env.NODE_ENV !== "production" && (iv = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
-var gr, Po = function(t, r, n) {
+var Of = /label:\s*([^\s;\n{]+)\s*(;|$)/g, ov;
+process.env.NODE_ENV !== "production" && (ov = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
+var gr, To = function(t, r, n) {
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
return t[0];
var o = !0, a = "";
gr = void 0;
var i = t[0];
- i == null || i.raw === void 0 ? (o = !1, a += Ma(n, r, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Tf), a += i[0]);
+ i == null || i.raw === void 0 ? (o = !1, a += Ia(n, r, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(Pf), a += i[0]);
for (var s = 1; s < t.length; s++)
- a += Ma(n, r, t[s]), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Tf), a += i[s]);
+ a += Ia(n, r, t[s]), o && (process.env.NODE_ENV !== "production" && i[s] === void 0 && console.error(Pf), a += i[s]);
var l;
- process.env.NODE_ENV !== "production" && (a = a.replace(iv, function(f) {
+ process.env.NODE_ENV !== "production" && (a = a.replace(ov, function(f) {
return l = f, "";
- })), $f.lastIndex = 0;
- for (var c = "", u; (u = $f.exec(a)) !== null; )
+ })), Of.lastIndex = 0;
+ for (var c = "", u; (u = Of.exec(a)) !== null; )
c += "-" + // $FlowFixMe we know it's not null
u[1];
- var d = LC(a) + c;
+ var d = NC(a) + c;
return process.env.NODE_ENV !== "production" ? {
name: d,
styles: a,
@@ -5296,29 +5272,29 @@ var gr, Po = function(t, r, n) {
styles: a,
next: gr
};
-}, JC = function(t) {
+}, qC = function(t) {
return t();
-}, sv = U["useInsertionEffect"] ? U["useInsertionEffect"] : !1, ju = sv || JC, Rf = sv || U.useLayoutEffect, Bu = {}.hasOwnProperty, zu = /* @__PURE__ */ U.createContext(
+}, av = U["useInsertionEffect"] ? U["useInsertionEffect"] : !1, Fu = av || qC, Rf = av || U.useLayoutEffect, Nu = {}.hasOwnProperty, ju = /* @__PURE__ */ U.createContext(
// we're doing this to avoid preconstruct's dead code elimination in this one case
// because this module is primarily intended for the browser and node
// but it's also required in react native and similar environments sometimes
// and we could have a special build just for that
// but this is much easier and the native packages
// might use a different theme context in the future anyway
- typeof HTMLElement < "u" ? /* @__PURE__ */ zC({
+ typeof HTMLElement < "u" ? /* @__PURE__ */ IC({
key: "css"
}) : null
);
-process.env.NODE_ENV !== "production" && (zu.displayName = "EmotionCacheContext");
-zu.Provider;
-var Ws = function(t) {
+process.env.NODE_ENV !== "production" && (ju.displayName = "EmotionCacheContext");
+ju.Provider;
+var Ls = function(t) {
return /* @__PURE__ */ At(function(r, n) {
- var o = ft(zu);
+ var o = ft(ju);
return t(r, o, n);
});
-}, bn = /* @__PURE__ */ U.createContext({});
-process.env.NODE_ENV !== "production" && (bn.displayName = "EmotionThemeContext");
-var QC = function(t, r) {
+}, yn = /* @__PURE__ */ U.createContext({});
+process.env.NODE_ENV !== "production" && (yn.displayName = "EmotionThemeContext");
+var GC = function(t, r) {
if (typeof r == "function") {
var n = r(t);
if (process.env.NODE_ENV !== "production" && (n == null || typeof n != "object" || Array.isArray(n)))
@@ -5327,76 +5303,76 @@ var QC = function(t, r) {
}
if (process.env.NODE_ENV !== "production" && (r == null || typeof r != "object" || Array.isArray(r)))
throw new Error("[ThemeProvider] Please make your theme prop a plain object");
- return cs({}, t, r);
-}, e_ = /* @__PURE__ */ kf(function(e) {
- return kf(function(t) {
- return QC(e, t);
+ return Wn({}, t, r);
+}, XC = /* @__PURE__ */ _f(function(e) {
+ return _f(function(t) {
+ return GC(e, t);
});
-}), AV = function(t) {
- var r = U.useContext(bn);
- return t.theme !== r && (r = e_(r)(t.theme)), /* @__PURE__ */ U.createElement(bn.Provider, {
+}), CV = function(t) {
+ var r = U.useContext(yn);
+ return t.theme !== r && (r = XC(r)(t.theme)), /* @__PURE__ */ U.createElement(yn.Provider, {
value: r
}, t.children);
-}, Df = function(t) {
+}, $f = function(t) {
var r = t.split(".");
return r[r.length - 1];
-}, t_ = function(t) {
+}, KC = function(t) {
var r = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);
if (r || (r = /^([A-Za-z0-9$.]+)@/.exec(t), r))
- return Df(r[1]);
-}, r_ = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), n_ = function(t) {
+ return $f(r[1]);
+}, ZC = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), JC = function(t) {
return t.replace(/\$/g, "-");
-}, o_ = function(t) {
+}, QC = function(t) {
if (t)
for (var r = t.split(`
`), n = 0; n < r.length; n++) {
- var o = t_(r[n]);
+ var o = KC(r[n]);
if (o) {
- if (r_.has(o))
+ if (ZC.has(o))
break;
if (/^[A-Z]/.test(o))
- return n_(o);
+ return JC(o);
}
}
-}, Mc = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Ic = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", a_ = function(t, r) {
+}, Dc = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Mc = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", e_ = function(t, r) {
if (process.env.NODE_ENV !== "production" && typeof r.css == "string" && // check if there is a css declaration
r.css.indexOf(":") !== -1)
throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + r.css + "`");
var n = {};
for (var o in r)
- Bu.call(r, o) && (n[o] = r[o]);
- if (n[Mc] = t, process.env.NODE_ENV !== "production" && r.css && (typeof r.css != "object" || typeof r.css.name != "string" || r.css.name.indexOf("-") === -1)) {
- var a = o_(new Error().stack);
- a && (n[Ic] = a);
+ Nu.call(r, o) && (n[o] = r[o]);
+ if (n[Dc] = t, process.env.NODE_ENV !== "production" && r.css && (typeof r.css != "object" || typeof r.css.name != "string" || r.css.name.indexOf("-") === -1)) {
+ var a = QC(new Error().stack);
+ a && (n[Mc] = a);
}
return n;
-}, i_ = function(t) {
+}, t_ = function(t) {
var r = t.cache, n = t.serialized, o = t.isStringTag;
- return Vs(r, n, o), ju(function() {
- return Ls(r, n, o);
+ return zs(r, n, o), Fu(function() {
+ return Vs(r, n, o);
}), null;
-}, lv = /* @__PURE__ */ Ws(function(e, t, r) {
+}, iv = /* @__PURE__ */ Ls(function(e, t, r) {
var n = e.css;
typeof n == "string" && t.registered[n] !== void 0 && (n = t.registered[n]);
- var o = e[Mc], a = [n], i = "";
- typeof e.className == "string" ? i = Fu(t.registered, a, e.className) : e.className != null && (i = e.className + " ");
- var s = Po(a, void 0, U.useContext(bn));
+ var o = e[Dc], a = [n], i = "";
+ typeof e.className == "string" ? i = Mu(t.registered, a, e.className) : e.className != null && (i = e.className + " ");
+ var s = To(a, void 0, U.useContext(yn));
if (process.env.NODE_ENV !== "production" && s.name.indexOf("-") === -1) {
- var l = e[Ic];
- l && (s = Po([s, "label:" + l + ";"]));
+ var l = e[Mc];
+ l && (s = To([s, "label:" + l + ";"]));
}
i += t.key + "-" + s.name;
var c = {};
for (var u in e)
- Bu.call(e, u) && u !== "css" && u !== Mc && (process.env.NODE_ENV === "production" || u !== Ic) && (c[u] = e[u]);
- return c.ref = r, c.className = i, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(i_, {
+ Nu.call(e, u) && u !== "css" && u !== Dc && (process.env.NODE_ENV === "production" || u !== Mc) && (c[u] = e[u]);
+ return c.ref = r, c.className = i, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(t_, {
cache: t,
serialized: s,
isStringTag: typeof o == "string"
}), /* @__PURE__ */ U.createElement(o, c));
});
-process.env.NODE_ENV !== "production" && (lv.displayName = "EmotionCssPropInternal");
-var s_ = lv, l_ = {
+process.env.NODE_ENV !== "production" && (iv.displayName = "EmotionCssPropInternal");
+var r_ = iv, n_ = {
name: "@emotion/react",
version: "11.11.1",
main: "dist/emotion-react.cjs.js",
@@ -5526,22 +5502,22 @@ var s_ = lv, l_ = {
}
}
}
-}, OV = function(t, r) {
+}, _V = function(t, r) {
var n = arguments;
- if (r == null || !Bu.call(r, "css"))
+ if (r == null || !Nu.call(r, "css"))
return U.createElement.apply(void 0, n);
var o = n.length, a = new Array(o);
- a[0] = s_, a[1] = a_(t, r);
+ a[0] = r_, a[1] = e_(t, r);
for (var i = 2; i < o; i++)
a[i] = n[i];
return U.createElement.apply(null, a);
-}, Mf = !1, c_ = /* @__PURE__ */ Ws(function(e, t) {
- process.env.NODE_ENV !== "production" && !Mf && // check for className as well since the user is
+}, Df = !1, o_ = /* @__PURE__ */ Ls(function(e, t) {
+ process.env.NODE_ENV !== "production" && !Df && // check for className as well since the user is
// probably using the custom createElement which
// means it will be turned into a className prop
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
- (e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Mf = !0);
- var r = e.styles, n = Po([r], void 0, U.useContext(bn)), o = U.useRef();
+ (e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Df = !0);
+ var r = e.styles, n = To([r], void 0, U.useContext(yn)), o = U.useRef();
return Rf(function() {
var a = t.key + "-global", i = new t.sheet.constructor({
key: a,
@@ -5558,21 +5534,21 @@ var s_ = lv, l_ = {
a[1] = !1;
return;
}
- if (n.next !== void 0 && Ls(t, n.next, !0), i.tags.length) {
+ if (n.next !== void 0 && Vs(t, n.next, !0), i.tags.length) {
var l = i.tags[i.tags.length - 1].nextElementSibling;
i.before = l, i.flush();
}
t.insert("", n, i, !1);
}, [t, n.name]), null;
});
-process.env.NODE_ENV !== "production" && (c_.displayName = "EmotionGlobal");
-function u_() {
+process.env.NODE_ENV !== "production" && (o_.displayName = "EmotionGlobal");
+function a_() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
t[r] = arguments[r];
- return Po(t);
+ return To(t);
}
-var d_ = function() {
- var t = u_.apply(void 0, arguments), r = "animation-" + t.name;
+var i_ = function() {
+ var t = a_.apply(void 0, arguments), r = "animation-" + t.name;
return {
name: r,
styles: "@keyframes " + r + "{" + t.styles + "}",
@@ -5581,7 +5557,7 @@ var d_ = function() {
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
}
};
-}, f_ = function e(t) {
+}, s_ = function e(t) {
for (var r = t.length, n = 0, o = ""; n < r; n++) {
var a = t[n];
if (a != null) {
@@ -5607,52 +5583,52 @@ var d_ = function() {
}
return o;
};
-function p_(e, t, r) {
- var n = [], o = Fu(e, n, r);
+function l_(e, t, r) {
+ var n = [], o = Mu(e, n, r);
return n.length < 2 ? r : o + t(n);
}
-var h_ = function(t) {
+var c_ = function(t) {
var r = t.cache, n = t.serializedArr;
- return ju(function() {
+ return Fu(function() {
for (var o = 0; o < n.length; o++)
- Ls(r, n[o], !1);
+ Vs(r, n[o], !1);
}), null;
-}, m_ = /* @__PURE__ */ Ws(function(e, t) {
+}, u_ = /* @__PURE__ */ Ls(function(e, t) {
var r = !1, n = [], o = function() {
if (r && process.env.NODE_ENV !== "production")
throw new Error("css can only be used during render");
for (var c = arguments.length, u = new Array(c), d = 0; d < c; d++)
u[d] = arguments[d];
- var f = Po(u, t.registered);
- return n.push(f), Vs(t, f, !1), t.key + "-" + f.name;
+ var f = To(u, t.registered);
+ return n.push(f), zs(t, f, !1), t.key + "-" + f.name;
}, a = function() {
if (r && process.env.NODE_ENV !== "production")
throw new Error("cx can only be used during render");
for (var c = arguments.length, u = new Array(c), d = 0; d < c; d++)
u[d] = arguments[d];
- return p_(t.registered, o, f_(u));
+ return l_(t.registered, o, s_(u));
}, i = {
css: o,
cx: a,
- theme: U.useContext(bn)
+ theme: U.useContext(yn)
}, s = e.children(i);
- return r = !0, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(h_, {
+ return r = !0, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(c_, {
cache: t,
serializedArr: n
}), s);
});
-process.env.NODE_ENV !== "production" && (m_.displayName = "EmotionClassNames");
+process.env.NODE_ENV !== "production" && (u_.displayName = "EmotionClassNames");
if (process.env.NODE_ENV !== "production") {
- var If = !0, v_ = typeof jest < "u" || typeof vi < "u";
- if (If && !v_) {
- var Ff = (
+ var Mf = !0, d_ = typeof jest < "u" || typeof vi < "u";
+ if (Mf && !d_) {
+ var If = (
// $FlowIgnore
- typeof globalThis < "u" ? globalThis : If ? window : global
- ), Nf = "__EMOTION_REACT_" + l_.version.split(".")[0] + "__";
- Ff[Nf] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), Ff[Nf] = !0;
+ typeof globalThis < "u" ? globalThis : Mf ? window : global
+ ), Ff = "__EMOTION_REACT_" + n_.version.split(".")[0] + "__";
+ If[Ff] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), If[Ff] = !0;
}
}
-function g_(e, t) {
+function f_(e, t) {
return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`;
}
function Nt(e = {}) {
@@ -5670,7 +5646,7 @@ function Nt(e = {}) {
const u = ft(s);
if (!u && r) {
const d = new Error(
- a ?? g_(n, o)
+ a ?? f_(n, o)
);
throw d.name = "ContextError", (c = Error.captureStackTrace) == null || c.call(Error, d, l), d;
}
@@ -5678,19 +5654,19 @@ function Nt(e = {}) {
}
return [s.Provider, l, s];
}
-var [b_, y_] = Nt({
+var [p_, h_] = Nt({
strict: !1,
name: "PortalManagerContext"
});
-function x_(e) {
+function m_(e) {
const { children: t, zIndex: r } = e;
- return /* @__PURE__ */ L.jsx(b_, { value: { zIndex: r }, children: t });
+ return /* @__PURE__ */ L.jsx(p_, { value: { zIndex: r }, children: t });
}
-x_.displayName = "PortalManager";
-var Ia = globalThis != null && globalThis.document ? Ds : Fe, [cv, S_] = Nt({
+m_.displayName = "PortalManager";
+var Fa = globalThis != null && globalThis.document ? $s : Fe, [sv, v_] = Nt({
strict: !1,
name: "PortalContext"
-}), Vu = "chakra-portal", w_ = ".chakra-portal", C_ = (e) => /* @__PURE__ */ L.jsx(
+}), Bu = "chakra-portal", g_ = ".chakra-portal", b_ = (e) => /* @__PURE__ */ L.jsx(
"div",
{
className: "chakra-portal-zIndex",
@@ -5705,25 +5681,25 @@ var Ia = globalThis != null && globalThis.document ? Ds : Fe, [cv, S_] = Nt({
},
children: e.children
}
-), __ = (e) => {
+), y_ = (e) => {
const { appendToParentPortal: t, children: r } = e, [n, o] = Ye(null), a = be(null), [, i] = Ye({});
Fe(() => i({}), []);
- const s = S_(), l = y_();
- Ia(() => {
+ const s = v_(), l = h_();
+ Fa(() => {
if (!n)
return;
const u = n.ownerDocument, d = t ? s ?? u.body : u.body;
if (!d)
return;
- a.current = u.createElement("div"), a.current.className = Vu, d.appendChild(a.current), i({});
+ a.current = u.createElement("div"), a.current.className = Bu, d.appendChild(a.current), i({});
const f = a.current;
return () => {
d.contains(f) && d.removeChild(f);
};
}, [n]);
- const c = l != null && l.zIndex ? /* @__PURE__ */ L.jsx(C_, { zIndex: l == null ? void 0 : l.zIndex, children: r }) : r;
- return a.current ? xm(
- /* @__PURE__ */ L.jsx(cv, { value: a.current, children: c }),
+ const c = l != null && l.zIndex ? /* @__PURE__ */ L.jsx(b_, { zIndex: l == null ? void 0 : l.zIndex, children: r }) : r;
+ return a.current ? ym(
+ /* @__PURE__ */ L.jsx(sv, { value: a.current, children: c }),
a.current
) : /* @__PURE__ */ L.jsx(
"span",
@@ -5733,18 +5709,18 @@ var Ia = globalThis != null && globalThis.document ? Ds : Fe, [cv, S_] = Nt({
}
}
);
-}, k_ = (e) => {
+}, x_ = (e) => {
const { children: t, containerRef: r, appendToParentPortal: n } = e, o = r.current, a = o ?? (typeof window < "u" ? document.body : void 0), i = gt(() => {
const l = o == null ? void 0 : o.ownerDocument.createElement("div");
- return l && (l.className = Vu), l;
+ return l && (l.className = Bu), l;
}, [o]), [, s] = Ye({});
- return Ia(() => s({}), []), Ia(() => {
+ return Fa(() => s({}), []), Fa(() => {
if (!(!i || !a))
return a.appendChild(i), () => {
a.removeChild(i);
};
- }, [i, a]), a && i ? xm(
- /* @__PURE__ */ L.jsx(cv, { value: n ? i : null, children: t }),
+ }, [i, a]), a && i ? ym(
+ /* @__PURE__ */ L.jsx(sv, { value: n ? i : null, children: t }),
i
) : null;
};
@@ -5753,14 +5729,14 @@ function Qa(e) {
appendToParentPortal: !0,
...e
}, { containerRef: r, ...n } = t;
- return r ? /* @__PURE__ */ L.jsx(k_, { containerRef: r, ...n }) : /* @__PURE__ */ L.jsx(__, { ...n });
+ return r ? /* @__PURE__ */ L.jsx(x_, { containerRef: r, ...n }) : /* @__PURE__ */ L.jsx(y_, { ...n });
}
-Qa.className = Vu;
-Qa.selector = w_;
+Qa.className = Bu;
+Qa.selector = g_;
Qa.displayName = "Portal";
-function an() {
+function sn() {
const e = ft(
- bn
+ yn
);
if (!e)
throw Error(
@@ -5768,23 +5744,23 @@ function an() {
);
return e;
}
-var uv = Cr({});
-uv.displayName = "ColorModeContext";
-function Lu() {
- const e = ft(uv);
+var lv = Cr({});
+lv.displayName = "ColorModeContext";
+function zu() {
+ const e = ft(lv);
if (e === void 0)
throw new Error("useColorMode must be used within a ColorModeProvider");
return e;
}
-function $V(e, t) {
- const { colorMode: r } = Lu();
+function kV(e, t) {
+ const { colorMode: r } = zu();
return r === "dark" ? t : e;
}
-function dv() {
- const e = Lu(), t = an();
+function cv() {
+ const e = zu(), t = sn();
return { ...e, theme: t };
}
-function E_(e, t, r) {
+function S_(e, t, r) {
var n, o;
if (t == null)
return t;
@@ -5794,7 +5770,7 @@ function E_(e, t, r) {
};
return (o = (n = a(t)) != null ? n : a(r)) != null ? o : r;
}
-function P_(e, t, r) {
+function w_(e, t, r) {
var n, o;
if (t == null)
return t;
@@ -5804,182 +5780,182 @@ function P_(e, t, r) {
};
return (o = (n = a(t)) != null ? n : a(r)) != null ? o : r;
}
-function RV(e, t, r) {
- const n = an();
- return T_(e, t, r)(n);
+function EV(e, t, r) {
+ const n = sn();
+ return C_(e, t, r)(n);
}
-function T_(e, t, r) {
+function C_(e, t, r) {
const n = Array.isArray(t) ? t : [t], o = Array.isArray(r) ? r : [r];
return (a) => {
const i = o.filter(Boolean), s = n.map((l, c) => {
var u, d;
if (e === "breakpoints")
- return E_(a, l, (u = i[c]) != null ? u : l);
+ return S_(a, l, (u = i[c]) != null ? u : l);
const f = `${e}.${l}`;
- return P_(a, f, (d = i[c]) != null ? d : l);
+ return w_(a, f, (d = i[c]) != null ? d : l);
});
return Array.isArray(t) ? s : s[0];
};
}
var Xe = (...e) => e.filter(Boolean).join(" ");
-function A_() {
+function __() {
return process.env.NODE_ENV !== "production";
}
function Lt(e) {
const t = typeof e;
return e != null && (t === "object" || t === "function") && !Array.isArray(e);
}
-var DV = (e) => {
+var PV = (e) => {
const { condition: t, message: r } = e;
- t && A_() && console.warn(r);
+ t && __() && console.warn(r);
};
-function hn(e, ...t) {
- return O_(e) ? e(...t) : e;
+function mn(e, ...t) {
+ return k_(e) ? e(...t) : e;
}
-var O_ = (e) => typeof e == "function", to = (e) => e ? "" : void 0, Ol = (e) => e ? !0 : void 0;
-function Rt(...e) {
+var k_ = (e) => typeof e == "function", Ar = (e) => e ? "" : void 0, Tl = (e) => e ? !0 : void 0;
+function $t(...e) {
return function(r) {
e.some((n) => (n == null || n(r), r == null ? void 0 : r.defaultPrevented));
};
}
-function $_(...e) {
+function E_(...e) {
return function(r) {
e.forEach((n) => {
n == null || n(r);
});
};
}
-var fs = { exports: {} };
-fs.exports;
+var ds = { exports: {} };
+ds.exports;
(function(e, t) {
- var r = 200, n = "__lodash_hash_undefined__", o = 800, a = 16, i = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", h = "[object Map]", v = "[object Number]", b = "[object Null]", y = "[object Object]", S = "[object Proxy]", k = "[object RegExp]", w = "[object Set]", M = "[object String]", P = "[object Undefined]", I = "[object WeakMap]", z = "[object ArrayBuffer]", j = "[object DataView]", X = "[object Float32Array]", ne = "[object Float64Array]", J = "[object Int8Array]", Q = "[object Int16Array]", ee = "[object Int32Array]", oe = "[object Uint8Array]", D = "[object Uint8ClampedArray]", ce = "[object Uint16Array]", fe = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, N = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, T = {};
- T[X] = T[ne] = T[J] = T[Q] = T[ee] = T[oe] = T[D] = T[ce] = T[fe] = !0, T[s] = T[l] = T[z] = T[u] = T[j] = T[d] = T[f] = T[p] = T[h] = T[v] = T[y] = T[k] = T[w] = T[M] = T[I] = !1;
- var O = typeof yi == "object" && yi && yi.Object === Object && yi, B = typeof self == "object" && self && self.Object === Object && self, C = O || B || Function("return this")(), H = t && !t.nodeType && t, A = H && !0 && e && !e.nodeType && e, Z = A && A.exports === H, Y = Z && O.process, ae = function() {
+ var r = 200, n = "__lodash_hash_undefined__", o = 800, a = 16, i = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", h = "[object Map]", v = "[object Number]", b = "[object Null]", y = "[object Object]", S = "[object Proxy]", _ = "[object RegExp]", w = "[object Set]", M = "[object String]", P = "[object Undefined]", I = "[object WeakMap]", z = "[object ArrayBuffer]", j = "[object DataView]", X = "[object Float32Array]", ne = "[object Float64Array]", J = "[object Int8Array]", Q = "[object Int16Array]", ee = "[object Int32Array]", oe = "[object Uint8Array]", D = "[object Uint8ClampedArray]", ce = "[object Uint16Array]", fe = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, N = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, T = {};
+ T[X] = T[ne] = T[J] = T[Q] = T[ee] = T[oe] = T[D] = T[ce] = T[fe] = !0, T[s] = T[l] = T[z] = T[u] = T[j] = T[d] = T[f] = T[p] = T[h] = T[v] = T[y] = T[_] = T[w] = T[M] = T[I] = !1;
+ var A = typeof yi == "object" && yi && yi.Object === Object && yi, B = typeof self == "object" && self && self.Object === Object && self, C = A || B || Function("return this")(), H = t && !t.nodeType && t, O = H && !0 && e && !e.nodeType && e, Z = O && O.exports === H, Y = Z && A.process, ae = function() {
try {
- var g = A && A.require && A.require("util").types;
+ var g = O && O.require && O.require("util").types;
return g || Y && Y.binding && Y.binding("util");
} catch {
}
- }(), $ = ae && ae.isTypedArray;
- function Se(g, _, R) {
- switch (R.length) {
+ }(), R = ae && ae.isTypedArray;
+ function Se(g, k, $) {
+ switch ($.length) {
case 0:
- return g.call(_);
+ return g.call(k);
case 1:
- return g.call(_, R[0]);
+ return g.call(k, $[0]);
case 2:
- return g.call(_, R[0], R[1]);
+ return g.call(k, $[0], $[1]);
case 3:
- return g.call(_, R[0], R[1], R[2]);
+ return g.call(k, $[0], $[1], $[2]);
}
- return g.apply(_, R);
+ return g.apply(k, $);
}
- function he(g, _) {
- for (var R = -1, re = Array(g); ++R < g; )
- re[R] = _(R);
+ function he(g, k) {
+ for (var $ = -1, re = Array(g); ++$ < g; )
+ re[$] = k($);
return re;
}
function le(g) {
- return function(_) {
- return g(_);
+ return function(k) {
+ return g(k);
};
}
- function Re(g, _) {
- return g == null ? void 0 : g[_];
+ function De(g, k) {
+ return g == null ? void 0 : g[k];
}
- function ye(g, _) {
- return function(R) {
- return g(_(R));
+ function ye(g, k) {
+ return function($) {
+ return g(k($));
};
}
- var we = Array.prototype, ht = Function.prototype, ke = Object.prototype, dt = C["__core-js_shared__"], rt = ht.toString, Me = ke.hasOwnProperty, se = function() {
+ var we = Array.prototype, ht = Function.prototype, ke = Object.prototype, dt = C["__core-js_shared__"], rt = ht.toString, Ie = ke.hasOwnProperty, se = function() {
var g = /[^.]+$/.exec(dt && dt.keys && dt.keys.IE_PROTO || "");
return g ? "Symbol(src)_1." + g : "";
- }(), Ae = ke.toString, Ot = rt.call(Object), xt = RegExp(
- "^" + rt.call(Me).replace(F, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
- ), lt = Z ? C.Buffer : void 0, zr = C.Symbol, Vr = C.Uint8Array, Lr = lt ? lt.allocUnsafe : void 0, te = ye(Object.getPrototypeOf, Object), ve = Object.create, kr = ke.propertyIsEnumerable, G = we.splice, ie = zr ? zr.toStringTag : void 0, xe = function() {
+ }(), Oe = ke.toString, Ot = rt.call(Object), xt = RegExp(
+ "^" + rt.call(Ie).replace(F, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
+ ), lt = Z ? C.Buffer : void 0, Vr = C.Symbol, Lr = C.Uint8Array, Wr = lt ? lt.allocUnsafe : void 0, te = ye(Object.getPrototypeOf, Object), ve = Object.create, kr = ke.propertyIsEnumerable, G = we.splice, ie = Vr ? Vr.toStringTag : void 0, xe = function() {
try {
- var g = bl(Object, "defineProperty");
+ var g = vl(Object, "defineProperty");
return g({}, "", {}), g;
} catch {
}
- }(), Ce = lt ? lt.isBuffer : void 0, He = Math.max, wt = Date.now, Ze = bl(C, "Map"), nt = bl(Object, "create"), Wr = function() {
+ }(), Ce = lt ? lt.isBuffer : void 0, He = Math.max, wt = Date.now, Ze = vl(C, "Map"), nt = vl(Object, "create"), Ur = function() {
function g() {
}
- return function(_) {
- if (!En(_))
+ return function(k) {
+ if (!Pn(k))
return {};
if (ve)
- return ve(_);
- g.prototype = _;
- var R = new g();
- return g.prototype = void 0, R;
+ return ve(k);
+ g.prototype = k;
+ var $ = new g();
+ return g.prototype = void 0, $;
};
}();
function Er(g) {
- var _ = -1, R = g == null ? 0 : g.length;
- for (this.clear(); ++_ < R; ) {
- var re = g[_];
+ var k = -1, $ = g == null ? 0 : g.length;
+ for (this.clear(); ++k < $; ) {
+ var re = g[k];
this.set(re[0], re[1]);
}
}
- function dl() {
+ function cl() {
this.__data__ = nt ? nt(null) : {}, this.size = 0;
}
function ui(g) {
- var _ = this.has(g) && delete this.__data__[g];
- return this.size -= _ ? 1 : 0, _;
+ var k = this.has(g) && delete this.__data__[g];
+ return this.size -= k ? 1 : 0, k;
}
- function fl(g) {
- var _ = this.__data__;
+ function ul(g) {
+ var k = this.__data__;
if (nt) {
- var R = _[g];
- return R === n ? void 0 : R;
+ var $ = k[g];
+ return $ === n ? void 0 : $;
}
- return Me.call(_, g) ? _[g] : void 0;
+ return Ie.call(k, g) ? k[g] : void 0;
}
function di(g) {
- var _ = this.__data__;
- return nt ? _[g] !== void 0 : Me.call(_, g);
+ var k = this.__data__;
+ return nt ? k[g] !== void 0 : Ie.call(k, g);
}
- function fi(g, _) {
- var R = this.__data__;
- return this.size += this.has(g) ? 0 : 1, R[g] = nt && _ === void 0 ? n : _, this;
+ function fi(g, k) {
+ var $ = this.__data__;
+ return this.size += this.has(g) ? 0 : 1, $[g] = nt && k === void 0 ? n : k, this;
}
- Er.prototype.clear = dl, Er.prototype.delete = ui, Er.prototype.get = fl, Er.prototype.has = di, Er.prototype.set = fi;
+ Er.prototype.clear = cl, Er.prototype.delete = ui, Er.prototype.get = ul, Er.prototype.has = di, Er.prototype.set = fi;
function fr(g) {
- var _ = -1, R = g == null ? 0 : g.length;
- for (this.clear(); ++_ < R; ) {
- var re = g[_];
+ var k = -1, $ = g == null ? 0 : g.length;
+ for (this.clear(); ++k < $; ) {
+ var re = g[k];
this.set(re[0], re[1]);
}
}
- function pl() {
+ function dl() {
this.__data__ = [], this.size = 0;
}
function pi(g) {
- var _ = this.__data__, R = Bt(_, g);
- if (R < 0)
+ var k = this.__data__, $ = Bt(k, g);
+ if ($ < 0)
return !1;
- var re = _.length - 1;
- return R == re ? _.pop() : G.call(_, R, 1), --this.size, !0;
+ var re = k.length - 1;
+ return $ == re ? k.pop() : G.call(k, $, 1), --this.size, !0;
}
- function hl(g) {
- var _ = this.__data__, R = Bt(_, g);
- return R < 0 ? void 0 : _[R][1];
+ function fl(g) {
+ var k = this.__data__, $ = Bt(k, g);
+ return $ < 0 ? void 0 : k[$][1];
}
- function ml(g) {
+ function pl(g) {
return Bt(this.__data__, g) > -1;
}
- function vl(g, _) {
- var R = this.__data__, re = Bt(R, g);
- return re < 0 ? (++this.size, R.push([g, _])) : R[re][1] = _, this;
+ function hl(g, k) {
+ var $ = this.__data__, re = Bt($, g);
+ return re < 0 ? (++this.size, $.push([g, k])) : $[re][1] = k, this;
}
- fr.prototype.clear = pl, fr.prototype.delete = pi, fr.prototype.get = hl, fr.prototype.has = ml, fr.prototype.set = vl;
- function sn(g) {
- var _ = -1, R = g == null ? 0 : g.length;
- for (this.clear(); ++_ < R; ) {
- var re = g[_];
+ fr.prototype.clear = dl, fr.prototype.delete = pi, fr.prototype.get = fl, fr.prototype.has = pl, fr.prototype.set = hl;
+ function ln(g) {
+ var k = -1, $ = g == null ? 0 : g.length;
+ for (this.clear(); ++k < $; ) {
+ var re = g[k];
this.set(re[0], re[1]);
}
}
@@ -5991,8 +5967,8 @@ fs.exports;
};
}
function W(g) {
- var _ = gi(this, g).delete(g);
- return this.size -= _ ? 1 : 0, _;
+ var k = gi(this, g).delete(g);
+ return this.size -= k ? 1 : 0, k;
}
function K(g) {
return gi(this, g).get(g);
@@ -6000,21 +5976,21 @@ fs.exports;
function me(g) {
return gi(this, g).has(g);
}
- function De(g, _) {
- var R = gi(this, g), re = R.size;
- return R.set(g, _), this.size += R.size == re ? 0 : 1, this;
+ function Me(g, k) {
+ var $ = gi(this, g), re = $.size;
+ return $.set(g, k), this.size += $.size == re ? 0 : 1, this;
}
- sn.prototype.clear = x, sn.prototype.delete = W, sn.prototype.get = K, sn.prototype.has = me, sn.prototype.set = De;
- function Oe(g) {
- var _ = this.__data__ = new fr(g);
- this.size = _.size;
+ ln.prototype.clear = x, ln.prototype.delete = W, ln.prototype.get = K, ln.prototype.has = me, ln.prototype.set = Me;
+ function Re(g) {
+ var k = this.__data__ = new fr(g);
+ this.size = k.size;
}
function Pe() {
this.__data__ = new fr(), this.size = 0;
}
function Ee(g) {
- var _ = this.__data__, R = _.delete(g);
- return this.size = _.size, R;
+ var k = this.__data__, $ = k.delete(g);
+ return this.size = k.size, $;
}
function Ct(g) {
return this.__data__.get(g);
@@ -6022,235 +5998,235 @@ fs.exports;
function ot(g) {
return this.__data__.has(g);
}
- function ct(g, _) {
- var R = this.__data__;
- if (R instanceof fr) {
- var re = R.__data__;
+ function ct(g, k) {
+ var $ = this.__data__;
+ if ($ instanceof fr) {
+ var re = $.__data__;
if (!Ze || re.length < r - 1)
- return re.push([g, _]), this.size = ++R.size, this;
- R = this.__data__ = new sn(re);
+ return re.push([g, k]), this.size = ++$.size, this;
+ $ = this.__data__ = new ln(re);
}
- return R.set(g, _), this.size = R.size, this;
+ return $.set(g, k), this.size = $.size, this;
}
- Oe.prototype.clear = Pe, Oe.prototype.delete = Ee, Oe.prototype.get = Ct, Oe.prototype.has = ot, Oe.prototype.set = ct;
- function jt(g, _) {
- var R = Sl(g), re = !R && xl(g), $e = !R && !re && Vd(g), qe = !R && !re && !$e && Wd(g), Qe = R || re || $e || qe, Te = Qe ? he(g.length, String) : [], et = Te.length;
+ Re.prototype.clear = Pe, Re.prototype.delete = Ee, Re.prototype.get = Ct, Re.prototype.has = ot, Re.prototype.set = ct;
+ function jt(g, k) {
+ var $ = yl(g), re = !$ && bl(g), $e = !$ && !re && zd(g), qe = !$ && !re && !$e && Ld(g), Qe = $ || re || $e || qe, Te = Qe ? he(g.length, String) : [], et = Te.length;
for (var tr in g)
- (_ || Me.call(g, tr)) && !(Qe && // Safari 9 has enumerable `arguments.length` in strict mode.
+ (k || Ie.call(g, tr)) && !(Qe && // Safari 9 has enumerable `arguments.length` in strict mode.
(tr == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
$e && (tr == "offset" || tr == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
qe && (tr == "buffer" || tr == "byteLength" || tr == "byteOffset") || // Skip index properties.
- Bd(tr, et))) && Te.push(tr);
+ jd(tr, et))) && Te.push(tr);
return Te;
}
- function Pr(g, _, R) {
- (R !== void 0 && !bi(g[_], R) || R === void 0 && !(_ in g)) && gl(g, _, R);
+ function Pr(g, k, $) {
+ ($ !== void 0 && !bi(g[k], $) || $ === void 0 && !(k in g)) && ml(g, k, $);
}
- function hi(g, _, R) {
- var re = g[_];
- (!(Me.call(g, _) && bi(re, R)) || R === void 0 && !(_ in g)) && gl(g, _, R);
+ function hi(g, k, $) {
+ var re = g[k];
+ (!(Ie.call(g, k) && bi(re, $)) || $ === void 0 && !(k in g)) && ml(g, k, $);
}
- function Bt(g, _) {
- for (var R = g.length; R--; )
- if (bi(g[R][0], _))
- return R;
+ function Bt(g, k) {
+ for (var $ = g.length; $--; )
+ if (bi(g[$][0], k))
+ return $;
return -1;
}
- function gl(g, _, R) {
- _ == "__proto__" && xe ? xe(g, _, {
+ function ml(g, k, $) {
+ k == "__proto__" && xe ? xe(g, k, {
configurable: !0,
enumerable: !0,
- value: R,
+ value: $,
writable: !0
- }) : g[_] = R;
+ }) : g[k] = $;
}
- var qy = i0();
+ var Uy = n0();
function mi(g) {
- return g == null ? g === void 0 ? P : b : ie && ie in Object(g) ? s0(g) : p0(g);
+ return g == null ? g === void 0 ? P : b : ie && ie in Object(g) ? o0(g) : u0(g);
}
- function Nd(g) {
- return Uo(g) && mi(g) == s;
+ function Fd(g) {
+ return Ho(g) && mi(g) == s;
}
- function Gy(g) {
- if (!En(g) || d0(g))
+ function Hy(g) {
+ if (!Pn(g) || l0(g))
return !1;
- var _ = Cl(g) ? xt : N;
- return _.test(g0(g));
+ var k = Sl(g) ? xt : N;
+ return k.test(h0(g));
}
- function Xy(g) {
- return Uo(g) && Ld(g.length) && !!T[mi(g)];
+ function Yy(g) {
+ return Ho(g) && Vd(g.length) && !!T[mi(g)];
}
- function Ky(g) {
- if (!En(g))
- return f0(g);
- var _ = zd(g), R = [];
+ function qy(g) {
+ if (!Pn(g))
+ return c0(g);
+ var k = Bd(g), $ = [];
for (var re in g)
- re == "constructor" && (_ || !Me.call(g, re)) || R.push(re);
- return R;
+ re == "constructor" && (k || !Ie.call(g, re)) || $.push(re);
+ return $;
}
- function jd(g, _, R, re, $e) {
- g !== _ && qy(_, function(qe, Qe) {
- if ($e || ($e = new Oe()), En(qe))
- Zy(g, _, Qe, R, jd, re, $e);
+ function Nd(g, k, $, re, $e) {
+ g !== k && Uy(k, function(qe, Qe) {
+ if ($e || ($e = new Re()), Pn(qe))
+ Gy(g, k, Qe, $, Nd, re, $e);
else {
- var Te = re ? re(yl(g, Qe), qe, Qe + "", g, _, $e) : void 0;
+ var Te = re ? re(gl(g, Qe), qe, Qe + "", g, k, $e) : void 0;
Te === void 0 && (Te = qe), Pr(g, Qe, Te);
}
- }, Ud);
+ }, Wd);
}
- function Zy(g, _, R, re, $e, qe, Qe) {
- var Te = yl(g, R), et = yl(_, R), tr = Qe.get(et);
+ function Gy(g, k, $, re, $e, qe, Qe) {
+ var Te = gl(g, $), et = gl(k, $), tr = Qe.get(et);
if (tr) {
- Pr(g, R, tr);
+ Pr(g, $, tr);
return;
}
- var Xt = qe ? qe(Te, et, R + "", g, _, Qe) : void 0, Ho = Xt === void 0;
- if (Ho) {
- var _l = Sl(et), kl = !_l && Vd(et), Yd = !_l && !kl && Wd(et);
- Xt = et, _l || kl || Yd ? Sl(Te) ? Xt = Te : b0(Te) ? Xt = n0(Te) : kl ? (Ho = !1, Xt = e0(et, !0)) : Yd ? (Ho = !1, Xt = r0(et, !0)) : Xt = [] : y0(et) || xl(et) ? (Xt = Te, xl(Te) ? Xt = x0(Te) : (!En(Te) || Cl(Te)) && (Xt = l0(et))) : Ho = !1;
+ var Xt = qe ? qe(Te, et, $ + "", g, k, Qe) : void 0, Yo = Xt === void 0;
+ if (Yo) {
+ var wl = yl(et), Cl = !wl && zd(et), Hd = !wl && !Cl && Ld(et);
+ Xt = et, wl || Cl || Hd ? yl(Te) ? Xt = Te : m0(Te) ? Xt = e0(Te) : Cl ? (Yo = !1, Xt = Zy(et, !0)) : Hd ? (Yo = !1, Xt = Qy(et, !0)) : Xt = [] : v0(et) || bl(et) ? (Xt = Te, bl(Te) ? Xt = g0(Te) : (!Pn(Te) || Sl(Te)) && (Xt = a0(et))) : Yo = !1;
}
- Ho && (Qe.set(et, Xt), $e(Xt, et, re, qe, Qe), Qe.delete(et)), Pr(g, R, Xt);
+ Yo && (Qe.set(et, Xt), $e(Xt, et, re, qe, Qe), Qe.delete(et)), Pr(g, $, Xt);
}
- function Jy(g, _) {
- return m0(h0(g, _, Hd), g + "");
+ function Xy(g, k) {
+ return f0(d0(g, k, Ud), g + "");
}
- var Qy = xe ? function(g, _) {
+ var Ky = xe ? function(g, k) {
return xe(g, "toString", {
configurable: !0,
enumerable: !1,
- value: w0(_),
+ value: y0(k),
writable: !0
});
- } : Hd;
- function e0(g, _) {
- if (_)
+ } : Ud;
+ function Zy(g, k) {
+ if (k)
return g.slice();
- var R = g.length, re = Lr ? Lr(R) : new g.constructor(R);
+ var $ = g.length, re = Wr ? Wr($) : new g.constructor($);
return g.copy(re), re;
}
- function t0(g) {
- var _ = new g.constructor(g.byteLength);
- return new Vr(_).set(new Vr(g)), _;
- }
- function r0(g, _) {
- var R = _ ? t0(g.buffer) : g.buffer;
- return new g.constructor(R, g.byteOffset, g.length);
- }
- function n0(g, _) {
- var R = -1, re = g.length;
- for (_ || (_ = Array(re)); ++R < re; )
- _[R] = g[R];
- return _;
- }
- function o0(g, _, R, re) {
- var $e = !R;
- R || (R = {});
- for (var qe = -1, Qe = _.length; ++qe < Qe; ) {
- var Te = _[qe], et = re ? re(R[Te], g[Te], Te, R, g) : void 0;
- et === void 0 && (et = g[Te]), $e ? gl(R, Te, et) : hi(R, Te, et);
- }
- return R;
- }
- function a0(g) {
- return Jy(function(_, R) {
- var re = -1, $e = R.length, qe = $e > 1 ? R[$e - 1] : void 0, Qe = $e > 2 ? R[2] : void 0;
- for (qe = g.length > 3 && typeof qe == "function" ? ($e--, qe) : void 0, Qe && c0(R[0], R[1], Qe) && (qe = $e < 3 ? void 0 : qe, $e = 1), _ = Object(_); ++re < $e; ) {
- var Te = R[re];
- Te && g(_, Te, re, qe);
+ function Jy(g) {
+ var k = new g.constructor(g.byteLength);
+ return new Lr(k).set(new Lr(g)), k;
+ }
+ function Qy(g, k) {
+ var $ = k ? Jy(g.buffer) : g.buffer;
+ return new g.constructor($, g.byteOffset, g.length);
+ }
+ function e0(g, k) {
+ var $ = -1, re = g.length;
+ for (k || (k = Array(re)); ++$ < re; )
+ k[$] = g[$];
+ return k;
+ }
+ function t0(g, k, $, re) {
+ var $e = !$;
+ $ || ($ = {});
+ for (var qe = -1, Qe = k.length; ++qe < Qe; ) {
+ var Te = k[qe], et = re ? re($[Te], g[Te], Te, $, g) : void 0;
+ et === void 0 && (et = g[Te]), $e ? ml($, Te, et) : hi($, Te, et);
+ }
+ return $;
+ }
+ function r0(g) {
+ return Xy(function(k, $) {
+ var re = -1, $e = $.length, qe = $e > 1 ? $[$e - 1] : void 0, Qe = $e > 2 ? $[2] : void 0;
+ for (qe = g.length > 3 && typeof qe == "function" ? ($e--, qe) : void 0, Qe && i0($[0], $[1], Qe) && (qe = $e < 3 ? void 0 : qe, $e = 1), k = Object(k); ++re < $e; ) {
+ var Te = $[re];
+ Te && g(k, Te, re, qe);
}
- return _;
+ return k;
});
}
- function i0(g) {
- return function(_, R, re) {
- for (var $e = -1, qe = Object(_), Qe = re(_), Te = Qe.length; Te--; ) {
+ function n0(g) {
+ return function(k, $, re) {
+ for (var $e = -1, qe = Object(k), Qe = re(k), Te = Qe.length; Te--; ) {
var et = Qe[g ? Te : ++$e];
- if (R(qe[et], et, qe) === !1)
+ if ($(qe[et], et, qe) === !1)
break;
}
- return _;
+ return k;
};
}
- function gi(g, _) {
- var R = g.__data__;
- return u0(_) ? R[typeof _ == "string" ? "string" : "hash"] : R.map;
+ function gi(g, k) {
+ var $ = g.__data__;
+ return s0(k) ? $[typeof k == "string" ? "string" : "hash"] : $.map;
}
- function bl(g, _) {
- var R = Re(g, _);
- return Gy(R) ? R : void 0;
+ function vl(g, k) {
+ var $ = De(g, k);
+ return Hy($) ? $ : void 0;
}
- function s0(g) {
- var _ = Me.call(g, ie), R = g[ie];
+ function o0(g) {
+ var k = Ie.call(g, ie), $ = g[ie];
try {
g[ie] = void 0;
var re = !0;
} catch {
}
- var $e = Ae.call(g);
- return re && (_ ? g[ie] = R : delete g[ie]), $e;
+ var $e = Oe.call(g);
+ return re && (k ? g[ie] = $ : delete g[ie]), $e;
}
- function l0(g) {
- return typeof g.constructor == "function" && !zd(g) ? Wr(te(g)) : {};
+ function a0(g) {
+ return typeof g.constructor == "function" && !Bd(g) ? Ur(te(g)) : {};
}
- function Bd(g, _) {
- var R = typeof g;
- return _ = _ ?? i, !!_ && (R == "number" || R != "symbol" && V.test(g)) && g > -1 && g % 1 == 0 && g < _;
+ function jd(g, k) {
+ var $ = typeof g;
+ return k = k ?? i, !!k && ($ == "number" || $ != "symbol" && V.test(g)) && g > -1 && g % 1 == 0 && g < k;
}
- function c0(g, _, R) {
- if (!En(R))
+ function i0(g, k, $) {
+ if (!Pn($))
return !1;
- var re = typeof _;
- return (re == "number" ? wl(R) && Bd(_, R.length) : re == "string" && _ in R) ? bi(R[_], g) : !1;
+ var re = typeof k;
+ return (re == "number" ? xl($) && jd(k, $.length) : re == "string" && k in $) ? bi($[k], g) : !1;
}
- function u0(g) {
- var _ = typeof g;
- return _ == "string" || _ == "number" || _ == "symbol" || _ == "boolean" ? g !== "__proto__" : g === null;
+ function s0(g) {
+ var k = typeof g;
+ return k == "string" || k == "number" || k == "symbol" || k == "boolean" ? g !== "__proto__" : g === null;
}
- function d0(g) {
+ function l0(g) {
return !!se && se in g;
}
- function zd(g) {
- var _ = g && g.constructor, R = typeof _ == "function" && _.prototype || ke;
- return g === R;
+ function Bd(g) {
+ var k = g && g.constructor, $ = typeof k == "function" && k.prototype || ke;
+ return g === $;
}
- function f0(g) {
- var _ = [];
+ function c0(g) {
+ var k = [];
if (g != null)
- for (var R in Object(g))
- _.push(R);
- return _;
+ for (var $ in Object(g))
+ k.push($);
+ return k;
}
- function p0(g) {
- return Ae.call(g);
+ function u0(g) {
+ return Oe.call(g);
}
- function h0(g, _, R) {
- return _ = He(_ === void 0 ? g.length - 1 : _, 0), function() {
- for (var re = arguments, $e = -1, qe = He(re.length - _, 0), Qe = Array(qe); ++$e < qe; )
- Qe[$e] = re[_ + $e];
+ function d0(g, k, $) {
+ return k = He(k === void 0 ? g.length - 1 : k, 0), function() {
+ for (var re = arguments, $e = -1, qe = He(re.length - k, 0), Qe = Array(qe); ++$e < qe; )
+ Qe[$e] = re[k + $e];
$e = -1;
- for (var Te = Array(_ + 1); ++$e < _; )
+ for (var Te = Array(k + 1); ++$e < k; )
Te[$e] = re[$e];
- return Te[_] = R(Qe), Se(g, this, Te);
+ return Te[k] = $(Qe), Se(g, this, Te);
};
}
- function yl(g, _) {
- if (!(_ === "constructor" && typeof g[_] == "function") && _ != "__proto__")
- return g[_];
+ function gl(g, k) {
+ if (!(k === "constructor" && typeof g[k] == "function") && k != "__proto__")
+ return g[k];
}
- var m0 = v0(Qy);
- function v0(g) {
- var _ = 0, R = 0;
+ var f0 = p0(Ky);
+ function p0(g) {
+ var k = 0, $ = 0;
return function() {
- var re = wt(), $e = a - (re - R);
- if (R = re, $e > 0) {
- if (++_ >= o)
+ var re = wt(), $e = a - (re - $);
+ if ($ = re, $e > 0) {
+ if (++k >= o)
return arguments[0];
} else
- _ = 0;
+ k = 0;
return g.apply(void 0, arguments);
};
}
- function g0(g) {
+ function h0(g) {
if (g != null) {
try {
return rt.call(g);
@@ -6263,81 +6239,81 @@ fs.exports;
}
return "";
}
- function bi(g, _) {
- return g === _ || g !== g && _ !== _;
+ function bi(g, k) {
+ return g === k || g !== g && k !== k;
}
- var xl = Nd(function() {
+ var bl = Fd(function() {
return arguments;
- }()) ? Nd : function(g) {
- return Uo(g) && Me.call(g, "callee") && !kr.call(g, "callee");
- }, Sl = Array.isArray;
- function wl(g) {
- return g != null && Ld(g.length) && !Cl(g);
- }
- function b0(g) {
- return Uo(g) && wl(g);
- }
- var Vd = Ce || C0;
- function Cl(g) {
- if (!En(g))
+ }()) ? Fd : function(g) {
+ return Ho(g) && Ie.call(g, "callee") && !kr.call(g, "callee");
+ }, yl = Array.isArray;
+ function xl(g) {
+ return g != null && Vd(g.length) && !Sl(g);
+ }
+ function m0(g) {
+ return Ho(g) && xl(g);
+ }
+ var zd = Ce || x0;
+ function Sl(g) {
+ if (!Pn(g))
return !1;
- var _ = mi(g);
- return _ == p || _ == m || _ == c || _ == S;
+ var k = mi(g);
+ return k == p || k == m || k == c || k == S;
}
- function Ld(g) {
+ function Vd(g) {
return typeof g == "number" && g > -1 && g % 1 == 0 && g <= i;
}
- function En(g) {
- var _ = typeof g;
- return g != null && (_ == "object" || _ == "function");
+ function Pn(g) {
+ var k = typeof g;
+ return g != null && (k == "object" || k == "function");
}
- function Uo(g) {
+ function Ho(g) {
return g != null && typeof g == "object";
}
- function y0(g) {
- if (!Uo(g) || mi(g) != y)
+ function v0(g) {
+ if (!Ho(g) || mi(g) != y)
return !1;
- var _ = te(g);
- if (_ === null)
+ var k = te(g);
+ if (k === null)
return !0;
- var R = Me.call(_, "constructor") && _.constructor;
- return typeof R == "function" && R instanceof R && rt.call(R) == Ot;
+ var $ = Ie.call(k, "constructor") && k.constructor;
+ return typeof $ == "function" && $ instanceof $ && rt.call($) == Ot;
}
- var Wd = $ ? le($) : Xy;
- function x0(g) {
- return o0(g, Ud(g));
+ var Ld = R ? le(R) : Yy;
+ function g0(g) {
+ return t0(g, Wd(g));
}
- function Ud(g) {
- return wl(g) ? jt(g, !0) : Ky(g);
+ function Wd(g) {
+ return xl(g) ? jt(g, !0) : qy(g);
}
- var S0 = a0(function(g, _, R, re) {
- jd(g, _, R, re);
+ var b0 = r0(function(g, k, $, re) {
+ Nd(g, k, $, re);
});
- function w0(g) {
+ function y0(g) {
return function() {
return g;
};
}
- function Hd(g) {
+ function Ud(g) {
return g;
}
- function C0() {
+ function x0() {
return !1;
}
- e.exports = S0;
-})(fs, fs.exports);
-var R_ = fs.exports;
-const sr = /* @__PURE__ */ Is(R_);
-var D_ = (e) => /!(important)?$/.test(e), jf = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, M_ = (e, t) => (r) => {
- const n = String(t), o = D_(n), a = jf(n), i = e ? `${e}.${a}` : a;
+ e.exports = b0;
+})(ds, ds.exports);
+var P_ = ds.exports;
+const sr = /* @__PURE__ */ Ms(P_);
+var T_ = (e) => /!(important)?$/.test(e), Nf = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, A_ = (e, t) => (r) => {
+ const n = String(t), o = T_(n), a = Nf(n), i = e ? `${e}.${a}` : a;
let s = Lt(r.__cssMap) && i in r.__cssMap ? r.__cssMap[i].varRef : t;
- return s = jf(s), o ? `${s} !important` : s;
+ return s = Nf(s), o ? `${s} !important` : s;
};
-function Wu(e) {
+function Vu(e) {
const { scale: t, transform: r, compose: n } = e;
return (a, i) => {
var s;
- const l = M_(t, a)(i);
+ const l = A_(t, a)(i);
let c = (s = r == null ? void 0 : r(l, i)) != null ? s : l;
return n && (c = n(c, i)), c;
};
@@ -6346,45 +6322,45 @@ var wi = (...e) => (t) => e.reduce((r, n) => n(r), t);
function rr(e, t) {
return (r) => {
const n = { property: r, scale: e };
- return n.transform = Wu({
+ return n.transform = Vu({
scale: e,
transform: t
}), n;
};
}
-var I_ = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t;
-function F_(e) {
+var O_ = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t;
+function R_(e) {
const { property: t, scale: r, transform: n } = e;
return {
scale: r,
- property: I_(t),
- transform: r ? Wu({
+ property: O_(t),
+ transform: r ? Vu({
scale: r,
compose: n
}) : n
};
}
-var fv = [
+var uv = [
"rotate(var(--chakra-rotate, 0))",
"scaleX(var(--chakra-scale-x, 1))",
"scaleY(var(--chakra-scale-y, 1))",
"skewX(var(--chakra-skew-x, 0))",
"skewY(var(--chakra-skew-y, 0))"
];
-function N_() {
+function $_() {
return [
"translateX(var(--chakra-translate-x, 0))",
"translateY(var(--chakra-translate-y, 0))",
- ...fv
+ ...uv
].join(" ");
}
-function j_() {
+function D_() {
return [
"translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",
- ...fv
+ ...uv
].join(" ");
}
-var B_ = {
+var M_ = {
"--chakra-blur": "var(--chakra-empty,/*!*/ /*!*/)",
"--chakra-brightness": "var(--chakra-empty,/*!*/ /*!*/)",
"--chakra-contrast": "var(--chakra-empty,/*!*/ /*!*/)",
@@ -6405,7 +6381,7 @@ var B_ = {
"var(--chakra-sepia)",
"var(--chakra-drop-shadow)"
].join(" ")
-}, z_ = {
+}, I_ = {
backdropFilter: [
"var(--chakra-backdrop-blur)",
"var(--chakra-backdrop-brightness)",
@@ -6427,7 +6403,7 @@ var B_ = {
"--chakra-backdrop-saturate": "var(--chakra-empty,/*!*/ /*!*/)",
"--chakra-backdrop-sepia": "var(--chakra-empty,/*!*/ /*!*/)"
};
-function V_(e) {
+function F_(e) {
return {
"--chakra-ring-offset-shadow": "var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)",
"--chakra-ring-shadow": "var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)",
@@ -6439,7 +6415,7 @@ function V_(e) {
].join(", ")
};
}
-var L_ = {
+var N_ = {
"row-reverse": {
space: "--chakra-space-x-reverse",
divide: "--chakra-divide-x-reverse"
@@ -6448,7 +6424,7 @@ var L_ = {
space: "--chakra-space-y-reverse",
divide: "--chakra-divide-y-reverse"
}
-}, Fc = {
+}, Ic = {
"to-t": "to top",
"to-tr": "to top right",
"to-r": "to right",
@@ -6457,31 +6433,31 @@ var L_ = {
"to-bl": "to bottom left",
"to-l": "to left",
"to-tl": "to top left"
-}, W_ = new Set(Object.values(Fc)), Nc = /* @__PURE__ */ new Set([
+}, j_ = new Set(Object.values(Ic)), Fc = /* @__PURE__ */ new Set([
"none",
"-moz-initial",
"inherit",
"initial",
"revert",
"unset"
-]), U_ = (e) => e.trim();
-function H_(e, t) {
- if (e == null || Nc.has(e))
+]), B_ = (e) => e.trim();
+function z_(e, t) {
+ if (e == null || Fc.has(e))
return e;
- if (!(jc(e) || Nc.has(e)))
+ if (!(Nc(e) || Fc.has(e)))
return `url('${e}')`;
const o = /(^[a-z-A-Z]+)\((.*)\)/g.exec(e), a = o == null ? void 0 : o[1], i = o == null ? void 0 : o[2];
if (!a || !i)
return e;
- const s = a.includes("-gradient") ? a : `${a}-gradient`, [l, ...c] = i.split(",").map(U_).filter(Boolean);
+ const s = a.includes("-gradient") ? a : `${a}-gradient`, [l, ...c] = i.split(",").map(B_).filter(Boolean);
if ((c == null ? void 0 : c.length) === 0)
return e;
- const u = l in Fc ? Fc[l] : l;
+ const u = l in Ic ? Ic[l] : l;
c.unshift(u);
const d = c.map((f) => {
- if (W_.has(f))
+ if (j_.has(f))
return f;
- const p = f.indexOf(" "), [m, h] = p !== -1 ? [f.substr(0, p), f.substr(p + 1)] : [f], v = jc(h) ? h : h && h.split(" "), b = `colors.${m}`, y = b in t.__cssMap ? t.__cssMap[b].varRef : m;
+ const p = f.indexOf(" "), [m, h] = p !== -1 ? [f.substr(0, p), f.substr(p + 1)] : [f], v = Nc(h) ? h : h && h.split(" "), b = `colors.${m}`, y = b in t.__cssMap ? t.__cssMap[b].varRef : m;
return v ? [
y,
...Array.isArray(v) ? v : [v]
@@ -6489,28 +6465,28 @@ function H_(e, t) {
});
return `${s}(${d.join(", ")})`;
}
-var jc = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), Y_ = (e, t) => H_(e, t ?? {});
-function q_(e) {
+var Nc = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), V_ = (e, t) => z_(e, t ?? {});
+function L_(e) {
return /^var\(--.+\)$/.test(e);
}
-var G_ = (e) => {
+var W_ = (e) => {
const t = parseFloat(e.toString()), r = e.toString().replace(String(t), "");
return { unitless: !r, value: t, unit: r };
-}, Tr = (e) => (t) => `${e}(${t})`, Ie = {
+}, Tr = (e) => (t) => `${e}(${t})`, Ae = {
filter(e) {
- return e !== "auto" ? e : B_;
+ return e !== "auto" ? e : M_;
},
backdropFilter(e) {
- return e !== "auto" ? e : z_;
+ return e !== "auto" ? e : I_;
},
ring(e) {
- return V_(Ie.px(e));
+ return F_(Ae.px(e));
},
bgClip(e) {
return e === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: e };
},
transform(e) {
- return e === "auto" ? N_() : e === "auto-gpu" ? j_() : e;
+ return e === "auto" ? $_() : e === "auto-gpu" ? D_() : e;
},
vh(e) {
return e === "$100vh" ? "var(--chakra-vh)" : e;
@@ -6518,7 +6494,7 @@ var G_ = (e) => {
px(e) {
if (e == null)
return e;
- const { unitless: t } = G_(e);
+ const { unitless: t } = W_(e);
return t || typeof e == "number" ? `${e}px` : e;
},
fraction(e) {
@@ -6529,24 +6505,24 @@ var G_ = (e) => {
return t.direction === "rtl" ? r[e] : e;
},
degree(e) {
- if (q_(e) || e == null)
+ if (L_(e) || e == null)
return e;
const t = typeof e == "string" && !e.endsWith("deg");
return typeof e == "number" || t ? `${e}deg` : e;
},
- gradient: Y_,
+ gradient: V_,
blur: Tr("blur"),
opacity: Tr("opacity"),
brightness: Tr("brightness"),
contrast: Tr("contrast"),
dropShadow: Tr("drop-shadow"),
grayscale: Tr("grayscale"),
- hueRotate: Tr("hue-rotate"),
+ hueRotate: (e) => Tr("hue-rotate")(Ae.degree(e)),
invert: Tr("invert"),
saturate: Tr("saturate"),
sepia: Tr("sepia"),
bgImage(e) {
- return e == null || jc(e) || Nc.has(e) ? e : `url(${e})`;
+ return e == null || Nc(e) || Fc.has(e) ? e : `url(${e})`;
},
outline(e) {
const t = String(e) === "0" || String(e) === "none";
@@ -6554,7 +6530,7 @@ var G_ = (e) => {
},
flexDirection(e) {
var t;
- const { space: r, divide: n } = (t = L_[e]) != null ? t : {}, o = { flexDirection: e };
+ const { space: r, divide: n } = (t = N_[e]) != null ? t : {}, o = { flexDirection: e };
return r && (o[r] = 1), n && (o[n] = 1), o;
}
}, E = {
@@ -6562,30 +6538,30 @@ var G_ = (e) => {
borderStyles: rr("borderStyles"),
colors: rr("colors"),
borders: rr("borders"),
- gradients: rr("gradients", Ie.gradient),
- radii: rr("radii", Ie.px),
- space: rr("space", wi(Ie.vh, Ie.px)),
- spaceT: rr("space", wi(Ie.vh, Ie.px)),
+ gradients: rr("gradients", Ae.gradient),
+ radii: rr("radii", Ae.px),
+ space: rr("space", wi(Ae.vh, Ae.px)),
+ spaceT: rr("space", wi(Ae.vh, Ae.px)),
degreeT(e) {
- return { property: e, transform: Ie.degree };
+ return { property: e, transform: Ae.degree };
},
prop(e, t, r) {
return {
property: e,
scale: t,
...t && {
- transform: Wu({ scale: t, transform: r })
+ transform: Vu({ scale: t, transform: r })
}
};
},
propT(e, t) {
return { property: e, transform: t };
},
- sizes: rr("sizes", wi(Ie.vh, Ie.px)),
- sizesT: rr("sizes", wi(Ie.vh, Ie.fraction)),
+ sizes: rr("sizes", wi(Ae.vh, Ae.px)),
+ sizesT: rr("sizes", wi(Ae.vh, Ae.fraction)),
shadows: rr("shadows"),
- logical: F_,
- blur: rr("blur", Ie.blur)
+ logical: R_,
+ blur: rr("blur", Ae.blur)
}, Wi = {
background: E.colors("background"),
backgroundColor: E.colors("backgroundColor"),
@@ -6594,7 +6570,7 @@ var G_ = (e) => {
backgroundPosition: !0,
backgroundRepeat: !0,
backgroundAttachment: !0,
- backgroundClip: { transform: Ie.bgClip },
+ backgroundClip: { transform: Ae.bgClip },
bgSize: E.prop("backgroundSize"),
bgPosition: E.prop("backgroundPosition"),
bg: E.colors("background"),
@@ -6603,7 +6579,7 @@ var G_ = (e) => {
bgRepeat: E.prop("backgroundRepeat"),
bgAttachment: E.prop("backgroundAttachment"),
bgGradient: E.gradients("backgroundImage"),
- bgClip: { transform: Ie.bgClip }
+ bgClip: { transform: Ae.bgClip }
};
Object.assign(Wi, {
bgImage: Wi.backgroundImage,
@@ -6742,12 +6718,12 @@ Object.assign(je, {
borderStartStyle: je.borderInlineStartStyle,
borderEndStyle: je.borderInlineEndStyle
});
-var X_ = {
+var U_ = {
color: E.colors("color"),
textColor: E.colors("color"),
fill: E.colors("fill"),
stroke: E.colors("stroke")
-}, Bc = {
+}, jc = {
boxShadow: E.shadows("boxShadow"),
mixBlendMode: !0,
blendMode: E.prop("mixBlendMode"),
@@ -6755,35 +6731,38 @@ var X_ = {
bgBlendMode: E.prop("backgroundBlendMode"),
opacity: !0
};
-Object.assign(Bc, {
- shadow: Bc.boxShadow
+Object.assign(jc, {
+ shadow: jc.boxShadow
});
-var K_ = {
- filter: { transform: Ie.filter },
+var H_ = {
+ filter: { transform: Ae.filter },
blur: E.blur("--chakra-blur"),
- brightness: E.propT("--chakra-brightness", Ie.brightness),
- contrast: E.propT("--chakra-contrast", Ie.contrast),
- hueRotate: E.degreeT("--chakra-hue-rotate"),
- invert: E.propT("--chakra-invert", Ie.invert),
- saturate: E.propT("--chakra-saturate", Ie.saturate),
- dropShadow: E.propT("--chakra-drop-shadow", Ie.dropShadow),
- backdropFilter: { transform: Ie.backdropFilter },
+ brightness: E.propT("--chakra-brightness", Ae.brightness),
+ contrast: E.propT("--chakra-contrast", Ae.contrast),
+ hueRotate: E.propT("--chakra-hue-rotate", Ae.hueRotate),
+ invert: E.propT("--chakra-invert", Ae.invert),
+ saturate: E.propT("--chakra-saturate", Ae.saturate),
+ dropShadow: E.propT("--chakra-drop-shadow", Ae.dropShadow),
+ backdropFilter: { transform: Ae.backdropFilter },
backdropBlur: E.blur("--chakra-backdrop-blur"),
backdropBrightness: E.propT(
"--chakra-backdrop-brightness",
- Ie.brightness
+ Ae.brightness
),
- backdropContrast: E.propT("--chakra-backdrop-contrast", Ie.contrast),
- backdropHueRotate: E.degreeT("--chakra-backdrop-hue-rotate"),
- backdropInvert: E.propT("--chakra-backdrop-invert", Ie.invert),
- backdropSaturate: E.propT("--chakra-backdrop-saturate", Ie.saturate)
-}, ps = {
+ backdropContrast: E.propT("--chakra-backdrop-contrast", Ae.contrast),
+ backdropHueRotate: E.propT(
+ "--chakra-backdrop-hue-rotate",
+ Ae.hueRotate
+ ),
+ backdropInvert: E.propT("--chakra-backdrop-invert", Ae.invert),
+ backdropSaturate: E.propT("--chakra-backdrop-saturate", Ae.saturate)
+}, fs = {
alignItems: !0,
alignContent: !0,
justifyItems: !0,
justifyContent: !0,
flexWrap: !0,
- flexDirection: { transform: Ie.flexDirection },
+ flexDirection: { transform: Ae.flexDirection },
flex: !0,
flexFlow: !0,
flexGrow: !0,
@@ -6799,10 +6778,10 @@ var K_ = {
rowGap: E.space("rowGap"),
columnGap: E.space("columnGap")
};
-Object.assign(ps, {
- flexDir: ps.flexDirection
+Object.assign(fs, {
+ flexDir: fs.flexDirection
});
-var pv = {
+var dv = {
gridGap: E.space("gridGap"),
gridColumnGap: E.space("gridColumnGap"),
gridRowGap: E.space("gridRowGap"),
@@ -6820,13 +6799,13 @@ var pv = {
gridTemplateRows: !0,
gridTemplateAreas: !0,
gridArea: !0
-}, Z_ = {
+}, Y_ = {
appearance: !0,
cursor: !0,
resize: !0,
userSelect: !0,
pointerEvents: !0,
- outline: { transform: Ie.outline },
+ outline: { transform: Ae.outline },
outlineOffset: !0,
outlineColor: E.colors("outlineColor")
}, or = {
@@ -6868,7 +6847,7 @@ var pv = {
verticalAlign: !0,
boxSizing: !0,
boxDecorationBreak: !0,
- float: E.propT("float", Ie.float),
+ float: E.propT("float", Ae.float),
objectFit: !0,
objectPosition: !0,
visibility: !0,
@@ -6885,20 +6864,20 @@ Object.assign(or, {
overscrollX: or.overscrollBehaviorX,
overscrollY: or.overscrollBehaviorY
});
-var J_ = {
+var q_ = {
listStyleType: !0,
listStylePosition: !0,
listStylePos: E.prop("listStylePosition"),
listStyleImage: !0,
listStyleImg: E.prop("listStyleImage")
};
-function Q_(e, t, r, n) {
+function G_(e, t, r, n) {
const o = typeof t == "string" ? t.split(".") : [t];
for (n = 0; n < o.length && e; n += 1)
e = e[o[n]];
return e === void 0 ? r : e;
}
-var ek = (e) => {
+var X_ = (e) => {
const t = /* @__PURE__ */ new WeakMap();
return (n, o, a, i) => {
if (typeof n > "u")
@@ -6910,7 +6889,7 @@ var ek = (e) => {
const l = e(n, o, a, i);
return s.set(o, l), l;
};
-}, tk = ek(Q_), rk = {
+}, K_ = X_(G_), Z_ = {
border: "0px",
clip: "rect(0, 0, 0, 0)",
width: "1px",
@@ -6920,7 +6899,7 @@ var ek = (e) => {
overflow: "hidden",
whiteSpace: "nowrap",
position: "absolute"
-}, nk = {
+}, J_ = {
position: "static",
width: "auto",
height: "auto",
@@ -6929,30 +6908,30 @@ var ek = (e) => {
margin: "0",
overflow: "visible",
whiteSpace: "normal"
-}, $l = (e, t, r) => {
- const n = {}, o = tk(e, t, {});
+}, Al = (e, t, r) => {
+ const n = {}, o = K_(e, t, {});
for (const a in o)
a in r && r[a] != null || (n[a] = o[a]);
return n;
-}, ok = {
+}, Q_ = {
srOnly: {
transform(e) {
- return e === !0 ? rk : e === "focusable" ? nk : {};
+ return e === !0 ? Z_ : e === "focusable" ? J_ : {};
}
},
layerStyle: {
processResult: !0,
- transform: (e, t, r) => $l(t, `layerStyles.${e}`, r)
+ transform: (e, t, r) => Al(t, `layerStyles.${e}`, r)
},
textStyle: {
processResult: !0,
- transform: (e, t, r) => $l(t, `textStyles.${e}`, r)
+ transform: (e, t, r) => Al(t, `textStyles.${e}`, r)
},
apply: {
processResult: !0,
- transform: (e, t, r) => $l(t, e, r)
+ transform: (e, t, r) => Al(t, e, r)
}
-}, da = {
+}, pa = {
position: !0,
pos: E.prop("position"),
zIndex: E.prop("zIndex", "zIndices"),
@@ -6976,12 +6955,12 @@ var ek = (e) => {
property: { ltr: "right", rtl: "left" }
})
};
-Object.assign(da, {
- insetStart: da.insetInlineStart,
- insetEnd: da.insetInlineEnd
+Object.assign(pa, {
+ insetStart: pa.insetInlineStart,
+ insetEnd: pa.insetInlineEnd
});
-var ak = {
- ring: { transform: Ie.ring },
+var ek = {
+ ring: { transform: Ae.ring },
ringColor: E.colors("--chakra-ring-color"),
ringOffset: E.prop("--chakra-ring-offset-width"),
ringOffsetColor: E.colors("--chakra-ring-offset-color"),
@@ -7038,7 +7017,7 @@ Object.assign(Je, {
pe: Je.paddingInlineEnd,
paddingEnd: Je.paddingInlineEnd
});
-var ik = {
+var tk = {
textDecorationColor: E.colors("textDecorationColor"),
textDecoration: !0,
textDecor: { property: "textDecoration" },
@@ -7047,9 +7026,9 @@ var ik = {
textDecorationThickness: !0,
textUnderlineOffset: !0,
textShadow: E.shadows("textShadow")
-}, sk = {
+}, rk = {
clipPath: !0,
- transform: E.propT("transform", Ie.transform),
+ transform: E.propT("transform", Ae.transform),
transformOrigin: !0,
translateX: E.spaceT("--chakra-translate-x"),
translateY: E.spaceT("--chakra-translate-y"),
@@ -7059,7 +7038,7 @@ var ik = {
scaleY: E.prop("--chakra-scale-y"),
scale: E.prop(["--chakra-scale-x", "--chakra-scale-y"]),
rotate: E.degreeT("--chakra-rotate")
-}, lk = {
+}, nk = {
transition: !0,
transitionDelay: !0,
animation: !0,
@@ -7070,9 +7049,9 @@ var ik = {
"transitionTimingFunction",
"transition.easing"
)
-}, ck = {
+}, ok = {
fontFamily: E.prop("fontFamily", "fonts"),
- fontSize: E.prop("fontSize", "fontSizes", Ie.px),
+ fontSize: E.prop("fontSize", "fontSizes", Ae.px),
fontWeight: E.prop("fontWeight", "fontWeights"),
lineHeight: E.prop("lineHeight", "lineHeights"),
letterSpacing: E.prop("letterSpacing", "letterSpacings"),
@@ -7100,15 +7079,17 @@ var ik = {
textOverflow: "ellipsis",
display: "-webkit-box",
WebkitBoxOrient: "vertical",
+ //@ts-ignore
WebkitLineClamp: "var(--chakra-line-clamp)"
},
property: "--chakra-line-clamp"
}
-}, uk = {
+}, ak = {
scrollBehavior: !0,
scrollSnapAlign: !0,
scrollSnapStop: !0,
scrollSnapType: !0,
+ // scroll margin
scrollMargin: E.spaceT("scrollMargin"),
scrollMarginTop: E.spaceT("scrollMarginTop"),
scrollMarginBottom: E.spaceT("scrollMarginBottom"),
@@ -7116,6 +7097,7 @@ var ik = {
scrollMarginRight: E.spaceT("scrollMarginRight"),
scrollMarginX: E.spaceT(["scrollMarginLeft", "scrollMarginRight"]),
scrollMarginY: E.spaceT(["scrollMarginTop", "scrollMarginBottom"]),
+ // scroll padding
scrollPadding: E.spaceT("scrollPadding"),
scrollPaddingTop: E.spaceT("scrollPaddingTop"),
scrollPaddingBottom: E.spaceT("scrollPaddingBottom"),
@@ -7124,59 +7106,59 @@ var ik = {
scrollPaddingX: E.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]),
scrollPaddingY: E.spaceT(["scrollPaddingTop", "scrollPaddingBottom"])
};
-function hv(e) {
+function fv(e) {
return Lt(e) && e.reference ? e.reference : String(e);
}
-var Us = (e, ...t) => t.map(hv).join(` ${e} `).replace(/calc/g, ""), Bf = (...e) => `calc(${Us("+", ...e)})`, zf = (...e) => `calc(${Us("-", ...e)})`, zc = (...e) => `calc(${Us("*", ...e)})`, Vf = (...e) => `calc(${Us("/", ...e)})`, Lf = (e) => {
- const t = hv(e);
- return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : zc(t, -1);
-}, Rn = Object.assign(
+var Ws = (e, ...t) => t.map(fv).join(` ${e} `).replace(/calc/g, ""), jf = (...e) => `calc(${Ws("+", ...e)})`, Bf = (...e) => `calc(${Ws("-", ...e)})`, Bc = (...e) => `calc(${Ws("*", ...e)})`, zf = (...e) => `calc(${Ws("/", ...e)})`, Vf = (e) => {
+ const t = fv(e);
+ return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : Bc(t, -1);
+}, Dn = Object.assign(
(e) => ({
- add: (...t) => Rn(Bf(e, ...t)),
- subtract: (...t) => Rn(zf(e, ...t)),
- multiply: (...t) => Rn(zc(e, ...t)),
- divide: (...t) => Rn(Vf(e, ...t)),
- negate: () => Rn(Lf(e)),
+ add: (...t) => Dn(jf(e, ...t)),
+ subtract: (...t) => Dn(Bf(e, ...t)),
+ multiply: (...t) => Dn(Bc(e, ...t)),
+ divide: (...t) => Dn(zf(e, ...t)),
+ negate: () => Dn(Vf(e)),
toString: () => e.toString()
}),
{
- add: Bf,
- subtract: zf,
- multiply: zc,
- divide: Vf,
- negate: Lf
+ add: jf,
+ subtract: Bf,
+ multiply: Bc,
+ divide: zf,
+ negate: Vf
}
);
-function dk(e, t = "-") {
+function ik(e, t = "-") {
return e.replace(/\s+/g, t);
}
-function fk(e) {
- const t = dk(e.toString());
- return hk(pk(t));
+function sk(e) {
+ const t = ik(e.toString());
+ return ck(lk(t));
}
-function pk(e) {
+function lk(e) {
return e.includes("\\.") ? e : !Number.isInteger(parseFloat(e.toString())) ? e.replace(".", "\\.") : e;
}
-function hk(e) {
+function ck(e) {
return e.replace(/[!-,/:-@[-^`{-~]/g, "\\$&");
}
-function mk(e, t = "") {
+function uk(e, t = "") {
return [t, e].filter(Boolean).join("-");
}
-function vk(e, t) {
+function dk(e, t) {
return `var(${e}${t ? `, ${t}` : ""})`;
}
-function gk(e, t = "") {
- return fk(`--${mk(e, t)}`);
+function fk(e, t = "") {
+ return sk(`--${uk(e, t)}`);
}
function de(e, t, r) {
- const n = gk(e, r);
+ const n = fk(e, r);
return {
variable: n,
- reference: vk(n, t)
+ reference: dk(n, t)
};
}
-function bk(e, t) {
+function pk(e, t) {
const r = {};
for (const n of t) {
if (Array.isArray(n)) {
@@ -7188,59 +7170,59 @@ function bk(e, t) {
}
return r;
}
-function yk(e) {
+function hk(e) {
const t = e == null ? 0 : e.length;
return t ? e[t - 1] : void 0;
}
-function xk(e) {
+function mk(e) {
const t = parseFloat(e.toString()), r = e.toString().replace(String(t), "");
return { unitless: !r, value: t, unit: r };
}
-function Vc(e) {
+function zc(e) {
if (e == null)
return e;
- const { unitless: t } = xk(e);
+ const { unitless: t } = mk(e);
return t || typeof e == "number" ? `${e}px` : e;
}
-var mv = (e, t) => parseInt(e[1], 10) > parseInt(t[1], 10) ? 1 : -1, Uu = (e) => Object.fromEntries(Object.entries(e).sort(mv));
-function Wf(e) {
- const t = Uu(e);
+var pv = (e, t) => parseInt(e[1], 10) > parseInt(t[1], 10) ? 1 : -1, Lu = (e) => Object.fromEntries(Object.entries(e).sort(pv));
+function Lf(e) {
+ const t = Lu(e);
return Object.assign(Object.values(t), t);
}
-function Sk(e) {
- const t = Object.keys(Uu(e));
+function vk(e) {
+ const t = Object.keys(Lu(e));
return new Set(t);
}
-function Uf(e) {
+function Wf(e) {
var t;
if (!e)
return e;
- e = (t = Vc(e)) != null ? t : e;
+ e = (t = zc(e)) != null ? t : e;
const r = -0.02;
return typeof e == "number" ? `${e + r}` : e.replace(/(\d+\.?\d*)/u, (n) => `${parseFloat(n) + r}`);
}
-function ra(e, t) {
+function na(e, t) {
const r = ["@media screen"];
- return e && r.push("and", `(min-width: ${Vc(e)})`), t && r.push("and", `(max-width: ${Vc(t)})`), r.join(" ");
+ return e && r.push("and", `(min-width: ${zc(e)})`), t && r.push("and", `(max-width: ${zc(t)})`), r.join(" ");
}
-function wk(e) {
+function gk(e) {
var t;
if (!e)
return null;
e.base = (t = e.base) != null ? t : "0px";
- const r = Wf(e), n = Object.entries(e).sort(mv).map(([i, s], l, c) => {
+ const r = Lf(e), n = Object.entries(e).sort(pv).map(([i, s], l, c) => {
var u;
let [, d] = (u = c[l + 1]) != null ? u : [];
- return d = parseFloat(d) > 0 ? Uf(d) : void 0, {
- _minW: Uf(s),
+ return d = parseFloat(d) > 0 ? Wf(d) : void 0, {
+ _minW: Wf(s),
breakpoint: i,
minW: s,
maxW: d,
- maxWQuery: ra(null, d),
- minWQuery: ra(s),
- minMaxQuery: ra(s, d)
+ maxWQuery: na(null, d),
+ minWQuery: na(s),
+ minMaxQuery: na(s, d)
};
- }), o = Sk(e), a = Array.from(o.values());
+ }), o = vk(e), a = Array.from(o.values());
return {
keys: o,
normalized: r,
@@ -7248,16 +7230,22 @@ function wk(e) {
const s = Object.keys(i);
return s.length > 0 && s.every((l) => o.has(l));
},
- asObject: Uu(e),
- asArray: Wf(e),
+ asObject: Lu(e),
+ asArray: Lf(e),
details: n,
get(i) {
return n.find((s) => s.breakpoint === i);
},
media: [
null,
- ...r.map((i) => ra(i)).slice(1)
+ ...r.map((i) => na(i)).slice(1)
],
+ /**
+ * Converts the object responsive syntax to array syntax
+ *
+ * @example
+ * toArrayValue({ base: 1, sm: 2, md: 3 }) // => [1, 2, 3]
+ */
toArrayValue(i) {
if (!Lt(i))
throw new Error("toArrayValue: value must be an object");
@@ -7265,10 +7253,16 @@ function wk(e) {
var c;
return (c = i[l]) != null ? c : null;
});
- for (; yk(s) === null; )
+ for (; hk(s) === null; )
s.pop();
return s;
},
+ /**
+ * Converts the array responsive syntax to object syntax
+ *
+ * @example
+ * toObjectValue([1, 2, 3]) // => { base: 1, sm: 2, md: 3 }
+ */
toObjectValue(i) {
if (!Array.isArray(i))
throw new Error("toObjectValue: value must be an array");
@@ -7292,82 +7286,308 @@ var _t = {
readOnly: (e, t) => `${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,
expanded: (e, t) => `${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,
placeholderShown: (e, t) => `${e}:placeholder-shown ${t}`
-}, ln = (e) => vv((t) => e(t, "&"), "[role=group]", "[data-group]", ".group"), Ur = (e) => vv((t) => e(t, "~ &"), "[data-peer]", ".peer"), vv = (e, ...t) => t.map(e).join(", "), Hs = {
+}, cn = (e) => hv((t) => e(t, "&"), "[role=group]", "[data-group]", ".group"), Hr = (e) => hv((t) => e(t, "~ &"), "[data-peer]", ".peer"), hv = (e, ...t) => t.map(e).join(", "), Us = {
+ /**
+ * Styles for CSS selector `&:hover`
+ */
_hover: "&:hover, &[data-hover]",
+ /**
+ * Styles for CSS Selector `&:active`
+ */
_active: "&:active, &[data-active]",
+ /**
+ * Styles for CSS selector `&:focus`
+ *
+ */
_focus: "&:focus, &[data-focus]",
+ /**
+ * Styles for the highlighted state.
+ */
_highlighted: "&[data-highlighted]",
+ /**
+ * Styles to apply when a child of this element has received focus
+ * - CSS Selector `&:focus-within`
+ */
_focusWithin: "&:focus-within",
+ /**
+ * Styles to apply when this element has received focus via tabbing
+ * - CSS Selector `&:focus-visible`
+ */
_focusVisible: "&:focus-visible, &[data-focus-visible]",
+ /**
+ * Styles to apply when this element is disabled. The passed styles are applied to these CSS selectors:
+ * - `&[aria-disabled=true]`
+ * - `&:disabled`
+ * - `&[data-disabled]`
+ * - `&[disabled]`
+ */
_disabled: "&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",
+ /**
+ * Styles for CSS Selector `&:readonly`
+ */
_readOnly: "&[aria-readonly=true], &[readonly], &[data-readonly]",
+ /**
+ * Styles for CSS selector `&::before`
+ *
+ * NOTE:When using this, ensure the `content` is wrapped in a backtick.
+ * @example
+ * ```jsx
+ *
+ * ```
+ */
_before: "&::before",
+ /**
+ * Styles for CSS selector `&::after`
+ *
+ * NOTE:When using this, ensure the `content` is wrapped in a backtick.
+ * @example
+ * ```jsx
+ *
+ * ```
+ */
_after: "&::after",
+ /**
+ * Styles for CSS selector `&:empty`
+ */
_empty: "&:empty",
+ /**
+ * Styles to apply when the ARIA attribute `aria-expanded` is `true`
+ * - CSS selector `&[aria-expanded=true]`
+ */
_expanded: "&[aria-expanded=true], &[data-expanded]",
+ /**
+ * Styles to apply when the ARIA attribute `aria-checked` is `true`
+ * - CSS selector `&[aria-checked=true]`
+ */
_checked: "&[aria-checked=true], &[data-checked]",
+ /**
+ * Styles to apply when the ARIA attribute `aria-grabbed` is `true`
+ * - CSS selector `&[aria-grabbed=true]`
+ */
_grabbed: "&[aria-grabbed=true], &[data-grabbed]",
+ /**
+ * Styles for CSS Selector `&[aria-pressed=true]`
+ * Typically used to style the current "pressed" state of toggle buttons
+ */
_pressed: "&[aria-pressed=true], &[data-pressed]",
+ /**
+ * Styles to apply when the ARIA attribute `aria-invalid` is `true`
+ * - CSS selector `&[aria-invalid=true]`
+ */
_invalid: "&[aria-invalid=true], &[data-invalid]",
+ /**
+ * Styles for the valid state
+ * - CSS selector `&[data-valid], &[data-state=valid]`
+ */
_valid: "&[data-valid], &[data-state=valid]",
+ /**
+ * Styles for CSS Selector `&[aria-busy=true]` or `&[data-loading=true]`.
+ * Useful for styling loading states
+ */
_loading: "&[data-loading], &[aria-busy=true]",
+ /**
+ * Styles to apply when the ARIA attribute `aria-selected` is `true`
+ *
+ * - CSS selector `&[aria-selected=true]`
+ */
_selected: "&[aria-selected=true], &[data-selected]",
+ /**
+ * Styles for CSS Selector `[hidden=true]`
+ */
_hidden: "&[hidden], &[data-hidden]",
+ /**
+ * Styles for CSS Selector `&:-webkit-autofill`
+ */
_autofill: "&:-webkit-autofill",
+ /**
+ * Styles for CSS Selector `&:nth-child(even)`
+ */
_even: "&:nth-of-type(even)",
+ /**
+ * Styles for CSS Selector `&:nth-child(odd)`
+ */
_odd: "&:nth-of-type(odd)",
+ /**
+ * Styles for CSS Selector `&:first-of-type`
+ */
_first: "&:first-of-type",
+ /**
+ * Styles for CSS selector `&::first-letter`
+ *
+ * NOTE: This selector is only applied for block-level elements and not preceded by an image or table.
+ * @example
+ * ```jsx
+ * Once upon a time
+ * ```
+ */
_firstLetter: "&::first-letter",
+ /**
+ * Styles for CSS Selector `&:last-of-type`
+ */
_last: "&:last-of-type",
+ /**
+ * Styles for CSS Selector `&:not(:first-of-type)`
+ */
_notFirst: "&:not(:first-of-type)",
+ /**
+ * Styles for CSS Selector `&:not(:last-of-type)`
+ */
_notLast: "&:not(:last-of-type)",
+ /**
+ * Styles for CSS Selector `&:visited`
+ */
_visited: "&:visited",
+ /**
+ * Used to style the active link in a navigation
+ * Styles for CSS Selector `&[aria-current=page]`
+ */
_activeLink: "&[aria-current=page]",
+ /**
+ * Used to style the current step within a process
+ * Styles for CSS Selector `&[aria-current=step]`
+ */
_activeStep: "&[aria-current=step]",
+ /**
+ * Styles to apply when the ARIA attribute `aria-checked` is `mixed`
+ * - CSS selector `&[aria-checked=mixed]`
+ */
_indeterminate: "&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",
- _groupHover: ln(_t.hover),
- _peerHover: Ur(_t.hover),
- _groupFocus: ln(_t.focus),
- _peerFocus: Ur(_t.focus),
- _groupFocusVisible: ln(_t.focusVisible),
- _peerFocusVisible: Ur(_t.focusVisible),
- _groupActive: ln(_t.active),
- _peerActive: Ur(_t.active),
- _groupDisabled: ln(_t.disabled),
- _peerDisabled: Ur(_t.disabled),
- _groupInvalid: ln(_t.invalid),
- _peerInvalid: Ur(_t.invalid),
- _groupChecked: ln(_t.checked),
- _peerChecked: Ur(_t.checked),
- _groupFocusWithin: ln(_t.focusWithin),
- _peerFocusWithin: Ur(_t.focusWithin),
- _peerPlaceholderShown: Ur(_t.placeholderShown),
+ /**
+ * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is hovered
+ */
+ _groupHover: cn(_t.hover),
+ /**
+ * Styles to apply when a sibling element with `.peer` or `data-peer` is hovered
+ */
+ _peerHover: Hr(_t.hover),
+ /**
+ * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is focused
+ */
+ _groupFocus: cn(_t.focus),
+ /**
+ * Styles to apply when a sibling element with `.peer` or `data-peer` is focused
+ */
+ _peerFocus: Hr(_t.focus),
+ /**
+ * Styles to apply when a parent element with `.group`, `data-group` or `role=group` has visible focus
+ */
+ _groupFocusVisible: cn(_t.focusVisible),
+ /**
+ * Styles to apply when a sibling element with `.peer`or `data-peer` has visible focus
+ */
+ _peerFocusVisible: Hr(_t.focusVisible),
+ /**
+ * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is active
+ */
+ _groupActive: cn(_t.active),
+ /**
+ * Styles to apply when a sibling element with `.peer` or `data-peer` is active
+ */
+ _peerActive: Hr(_t.active),
+ /**
+ * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is disabled
+ */
+ _groupDisabled: cn(_t.disabled),
+ /**
+ * Styles to apply when a sibling element with `.peer` or `data-peer` is disabled
+ */
+ _peerDisabled: Hr(_t.disabled),
+ /**
+ * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is invalid
+ */
+ _groupInvalid: cn(_t.invalid),
+ /**
+ * Styles to apply when a sibling element with `.peer` or `data-peer` is invalid
+ */
+ _peerInvalid: Hr(_t.invalid),
+ /**
+ * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is checked
+ */
+ _groupChecked: cn(_t.checked),
+ /**
+ * Styles to apply when a sibling element with `.peer` or `data-peer` is checked
+ */
+ _peerChecked: Hr(_t.checked),
+ /**
+ * Styles to apply when a parent element with `.group`, `data-group` or `role=group` has focus within
+ */
+ _groupFocusWithin: cn(_t.focusWithin),
+ /**
+ * Styles to apply when a sibling element with `.peer` or `data-peer` has focus within
+ */
+ _peerFocusWithin: Hr(_t.focusWithin),
+ /**
+ * Styles to apply when a sibling element with `.peer` or `data-peer` has placeholder shown
+ */
+ _peerPlaceholderShown: Hr(_t.placeholderShown),
+ /**
+ * Styles for CSS Selector `&::placeholder`.
+ */
_placeholder: "&::placeholder",
+ /**
+ * Styles for CSS Selector `&:placeholder-shown`.
+ */
_placeholderShown: "&:placeholder-shown",
+ /**
+ * Styles for CSS Selector `&:fullscreen`.
+ */
_fullScreen: "&:fullscreen",
+ /**
+ * Styles for CSS Selector `&::selection`
+ */
_selection: "&::selection",
+ /**
+ * Styles for CSS Selector `[dir=rtl] &`
+ * It is applied when a parent element or this element has `dir="rtl"`
+ */
_rtl: "[dir=rtl] &, &[dir=rtl]",
+ /**
+ * Styles for CSS Selector `[dir=ltr] &`
+ * It is applied when a parent element or this element has `dir="ltr"`
+ */
_ltr: "[dir=ltr] &, &[dir=ltr]",
+ /**
+ * Styles for CSS Selector `@media (prefers-color-scheme: dark)`
+ * It is used when the user has requested the system use a light or dark color theme.
+ */
_mediaDark: "@media (prefers-color-scheme: dark)",
+ /**
+ * Styles for CSS Selector `@media (prefers-reduced-motion: reduce)`
+ * It is used when the user has requested the system to reduce the amount of animations.
+ */
_mediaReduceMotion: "@media (prefers-reduced-motion: reduce)",
+ /**
+ * Styles for when `data-theme` is applied to any parent of
+ * this component or element.
+ */
_dark: ".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",
+ /**
+ * Styles for when `data-theme` is applied to any parent of
+ * this component or element.
+ */
_light: ".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",
+ /**
+ * Styles for the CSS Selector `&[data-orientation=horizontal]`
+ */
_horizontal: "&[data-orientation=horizontal]",
+ /**
+ * Styles for the CSS Selector `&[data-orientation=vertical]`
+ */
_vertical: "&[data-orientation=vertical]"
-}, gv = Object.keys(
- Hs
+}, mv = Object.keys(
+ Us
);
-function Hf(e, t) {
+function Uf(e, t) {
return de(String(e).replace(/\./g, "-"), void 0, t);
}
-function Ck(e, t) {
+function bk(e, t) {
let r = {};
const n = {};
for (const [o, a] of Object.entries(e)) {
- const { isSemantic: i, value: s } = a, { variable: l, reference: c } = Hf(o, t == null ? void 0 : t.cssVarPrefix);
+ const { isSemantic: i, value: s } = a, { variable: l, reference: c } = Uf(o, t == null ? void 0 : t.cssVarPrefix);
if (!i) {
if (o.startsWith("space")) {
- const f = o.split("."), [p, ...m] = f, h = `${p}.-${m.join(".")}`, v = Rn.negate(s), b = Rn.negate(c);
+ const f = o.split("."), [p, ...m] = f, h = `${p}.-${m.join(".")}`, v = Dn.negate(s), b = Dn.negate(c);
n[h] = {
value: v,
var: l,
@@ -7385,7 +7605,7 @@ function Ck(e, t) {
const m = [String(o).split(".")[0], f].join(".");
if (!e[m])
return f;
- const { reference: v } = Hf(m, t == null ? void 0 : t.cssVarPrefix);
+ const { reference: v } = Uf(m, t == null ? void 0 : t.cssVarPrefix);
return v;
}, d = Lt(s) ? s : { default: s };
r = sr(
@@ -7398,7 +7618,7 @@ function Ck(e, t) {
const b = u(`${m}`);
if (p === "default")
return f[l] = b, f;
- const y = (v = (h = Hs) == null ? void 0 : h[p]) != null ? v : p;
+ const y = (v = (h = Us) == null ? void 0 : h[p]) != null ? v : p;
return f[y] = { [l]: b }, f;
},
{}
@@ -7414,26 +7634,26 @@ function Ck(e, t) {
cssMap: n
};
}
-function _k(e, t = []) {
+function yk(e, t = []) {
const r = Object.assign({}, e);
for (const n of t)
n in r && delete r[n];
return r;
}
-function kk(e, t) {
+function xk(e, t) {
const r = {};
for (const n of t)
n in e && (r[n] = e[n]);
return r;
}
-function Ek(e) {
+function Sk(e) {
return typeof e == "object" && e != null && !Array.isArray(e);
}
-function Yf(e, t, r = {}) {
+function Hf(e, t, r = {}) {
const { stop: n, getKey: o } = r;
function a(i, s = []) {
var l;
- if (Ek(i) || Array.isArray(i)) {
+ if (Sk(i) || Array.isArray(i)) {
const c = {};
for (const [u, d] of Object.entries(i)) {
const f = (l = o == null ? void 0 : o(u)) != null ? l : u, p = [...s, f];
@@ -7447,7 +7667,7 @@ function Yf(e, t, r = {}) {
}
return a(e);
}
-var Pk = [
+var wk = [
"colors",
"borders",
"borderWidths",
@@ -7467,40 +7687,48 @@ var Pk = [
"blur",
"breakpoints"
];
-function Tk(e) {
- return kk(e, Pk);
+function Ck(e) {
+ return xk(e, wk);
}
-function Ak(e) {
+function _k(e) {
return e.semanticTokens;
}
-function Ok(e) {
+function kk(e) {
const { __cssMap: t, __cssVars: r, __breakpoints: n, ...o } = e;
return o;
}
-var $k = (e) => gv.includes(e) || e === "default";
-function Rk({
+var Ek = (e) => mv.includes(e) || e === "default";
+function Pk({
tokens: e,
semanticTokens: t
}) {
const r = {};
- return Yf(e, (n, o) => {
+ return Hf(e, (n, o) => {
n != null && (r[o.join(".")] = { isSemantic: !1, value: n });
- }), Yf(
+ }), Hf(
t,
(n, o) => {
n != null && (r[o.join(".")] = { isSemantic: !0, value: n });
},
{
- stop: (n) => Object.keys(n).every($k)
+ stop: (n) => Object.keys(n).every(Ek)
}
), r;
}
-function MV(e) {
+function TV(e) {
var t;
- const r = Ok(e), n = Tk(r), o = Ak(r), a = Rk({ tokens: n, semanticTokens: o }), i = (t = r.config) == null ? void 0 : t.cssVarPrefix, {
+ const r = kk(e), n = Ck(r), o = _k(r), a = Pk({ tokens: n, semanticTokens: o }), i = (t = r.config) == null ? void 0 : t.cssVarPrefix, {
+ /**
+ * This is more like a dictionary of tokens users will type `green.500`,
+ * and their equivalent css variable.
+ */
cssMap: s,
+ /**
+ * The extracted css variables will be stored here, and used in
+ * the emotion's component to attach variables to `:root`
+ */
cssVars: l
- } = Ck(a, { cssVarPrefix: i });
+ } = bk(a, { cssVarPrefix: i });
return Object.assign(r, {
__cssVars: { ...{
"--chakra-ring-inset": "var(--chakra-empty,/*!*/ /*!*/)",
@@ -7513,38 +7741,38 @@ function MV(e) {
"--chakra-space-y-reverse": "0"
}, ...l },
__cssMap: s,
- __breakpoints: wk(r.breakpoints)
+ __breakpoints: gk(r.breakpoints)
}), r;
}
-var Hu = sr(
+var Wu = sr(
{},
Wi,
je,
- X_,
- ps,
+ U_,
+ fs,
or,
- K_,
+ H_,
+ ek,
+ Y_,
+ dv,
+ Q_,
+ pa,
+ jc,
+ Je,
ak,
- Z_,
- pv,
ok,
- da,
- Bc,
- Je,
- uk,
- ck,
- ik,
- sk,
- J_,
- lk
-), Dk = Object.assign({}, Je, or, ps, pv, da), IV = Object.keys(
- Dk
-), Mk = [...Object.keys(Hu), ...gv], Ik = { ...Hu, ...Hs }, Fk = (e) => e in Ik, Nk = (e) => (t) => {
+ tk,
+ rk,
+ q_,
+ nk
+), Tk = Object.assign({}, Je, or, fs, dv, pa), AV = Object.keys(
+ Tk
+), Ak = [...Object.keys(Wu), ...mv], Ok = { ...Wu, ...Us }, Rk = (e) => e in Ok, $k = (e) => (t) => {
if (!t.__breakpoints)
return e;
const { isResponsive: r, toArrayValue: n, media: o } = t.__breakpoints, a = {};
for (const i in e) {
- let s = hn(e[i], t);
+ let s = mn(e[i], t);
if (s == null)
continue;
if (s = Lt(s) && r(s) ? n(s) : s, !Array.isArray(s)) {
@@ -7563,7 +7791,7 @@ var Hu = sr(
}
return a;
};
-function jk(e) {
+function Dk(e) {
const t = [];
let r = "", n = !1;
for (let o = 0; o < e.length; o++) {
@@ -7572,10 +7800,10 @@ function jk(e) {
}
return r = r.trim(), r && t.push(r), t;
}
-function Bk(e) {
+function Mk(e) {
return /^var\(--.+\)$/.test(e);
}
-var zk = (e, t) => e.startsWith("--") && typeof t == "string" && !Bk(t), Vk = (e, t) => {
+var Ik = (e, t) => e.startsWith("--") && typeof t == "string" && !Mk(t), Fk = (e, t) => {
var r, n;
if (t == null)
return t;
@@ -7585,18 +7813,18 @@ var zk = (e, t) => e.startsWith("--") && typeof t == "string" && !Bk(t), Vk = (e
}, a = (l) => {
var c;
return (c = o(l)) != null ? c : l;
- }, [i, s] = jk(t);
+ }, [i, s] = Dk(t);
return t = (n = (r = o(i)) != null ? r : a(s)) != null ? n : a(t), t;
};
-function Lk(e) {
+function Nk(e) {
const { configs: t = {}, pseudos: r = {}, theme: n } = e, o = (a, i = !1) => {
var s, l, c;
- const u = hn(a, n), d = Nk(u)(n);
+ const u = mn(a, n), d = $k(u)(n);
let f = {};
for (let p in d) {
const m = d[p];
- let h = hn(m, n);
- p in r && (p = r[p]), zk(p, h) && (h = Vk(n, h));
+ let h = mn(m, n);
+ p in r && (p = r[p]), Ik(p, h) && (h = Fk(n, h));
let v = t[p];
if (v === !0 && (v = { property: p }), Lt(h)) {
f[p] = (s = f[p]) != null ? s : {}, f[p] = sr(
@@ -7608,9 +7836,9 @@ function Lk(e) {
}
let b = (c = (l = v == null ? void 0 : v.transform) == null ? void 0 : l.call(v, h, n, u)) != null ? c : h;
b = v != null && v.processResult ? o(b, !0) : b;
- const y = hn(v == null ? void 0 : v.property, n);
+ const y = mn(v == null ? void 0 : v.property, n);
if (!i && (v != null && v.static)) {
- const S = hn(v.static, n);
+ const S = mn(v.static, n);
f = sr({}, f, S);
}
if (y && Array.isArray(y)) {
@@ -7632,15 +7860,15 @@ function Lk(e) {
};
return o;
}
-var Wk = (e) => (t) => Lk({
+var jk = (e) => (t) => Nk({
theme: t,
- pseudos: Hs,
- configs: Hu
+ pseudos: Us,
+ configs: Wu
})(e);
-function FV(e) {
+function OV(e) {
return e;
}
-function NV(e) {
+function RV(e) {
return e;
}
function Ke(e) {
@@ -7653,7 +7881,7 @@ function Ke(e) {
}
};
}
-function Uk(e, t) {
+function Bk(e, t) {
if (Array.isArray(e))
return e;
if (Lt(e))
@@ -7661,24 +7889,24 @@ function Uk(e, t) {
if (e != null)
return [e];
}
-function Hk(e, t) {
+function zk(e, t) {
for (let r = t + 1; r < e.length; r++)
if (e[r] != null)
return r;
return -1;
}
-function Yk(e) {
+function Vk(e) {
const t = e.__breakpoints;
return function(n, o, a, i) {
var s, l;
if (!t)
return;
- const c = {}, u = Uk(a, t.toArrayValue);
+ const c = {}, u = Bk(a, t.toArrayValue);
if (!u)
return c;
const d = u.length, f = d === 1, p = !!n.parts;
for (let m = 0; m < d; m++) {
- const h = t.details[m], v = t.details[Hk(u, m)], b = ra(h.minW, v == null ? void 0 : v._minW), y = hn((s = n[o]) == null ? void 0 : s[u[m]], i);
+ const h = t.details[m], v = t.details[zk(u, m)], b = na(h.minW, v == null ? void 0 : v._minW), y = mn((s = n[o]) == null ? void 0 : s[u[m]], i);
if (y) {
if (p) {
(l = n.parts) == null || l.forEach((S) => {
@@ -7698,26 +7926,26 @@ function Yk(e) {
return c;
};
}
-function qk(e) {
+function Lk(e) {
return (t) => {
var r;
- const { variant: n, size: o, theme: a } = t, i = Yk(a);
+ const { variant: n, size: o, theme: a } = t, i = Vk(a);
return sr(
{},
- hn((r = e.baseStyle) != null ? r : {}, t),
+ mn((r = e.baseStyle) != null ? r : {}, t),
i(e, "sizes", o, t),
i(e, "variants", n, t)
);
};
}
-function Gk(e, t, r) {
+function Wk(e, t, r) {
var n, o, a;
return (a = (o = (n = e.__cssMap) == null ? void 0 : n[`${t}.${r}`]) == null ? void 0 : o.varRef) != null ? a : r;
}
-function jr(e) {
- return _k(e, ["styleConfig", "size", "variant", "colorScheme"]);
+function Br(e) {
+ return yk(e, ["styleConfig", "size", "variant", "colorScheme"]);
}
-var Xk = [
+var Uk = [
"borders",
"breakpoints",
"colors",
@@ -7737,22 +7965,22 @@ var Xk = [
"transition",
"zIndices"
];
-function Kk(e) {
- return Lt(e) ? Xk.every(
+function Hk(e) {
+ return Lt(e) ? Uk.every(
(t) => Object.prototype.hasOwnProperty.call(e, t)
) : !1;
}
-var Zk = {
+var Yk = {
common: "background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",
colors: "background-color, border-color, color, fill, stroke",
dimensions: "width, height",
position: "left, right, top, bottom",
background: "background-color, background-image, background-position"
-}, Jk = {
+}, qk = {
"ease-in": "cubic-bezier(0.4, 0, 1, 1)",
"ease-out": "cubic-bezier(0, 0, 0.2, 1)",
"ease-in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
-}, Qk = {
+}, Gk = {
"ultra-fast": "50ms",
faster: "100ms",
fast: "150ms",
@@ -7760,11 +7988,11 @@ var Zk = {
slow: "300ms",
slower: "400ms",
"ultra-slow": "500ms"
-}, eE = {
- property: Zk,
- easing: Jk,
- duration: Qk
-}, tE = eE, rE = {
+}, Xk = {
+ property: Yk,
+ easing: qk,
+ duration: Gk
+}, Kk = Xk, Zk = {
hide: -1,
auto: "auto",
base: 0,
@@ -7778,20 +8006,20 @@ var Zk = {
skipLink: 1600,
toast: 1700,
tooltip: 1800
-}, nE = rE, oE = {
+}, Jk = Zk, Qk = {
none: 0,
"1px": "1px solid",
"2px": "2px solid",
"4px": "4px solid",
"8px": "8px solid"
-}, aE = oE, iE = {
+}, eE = Qk, tE = {
base: "0em",
sm: "30em",
md: "48em",
lg: "62em",
xl: "80em",
"2xl": "96em"
-}, sE = iE, lE = {
+}, rE = tE, nE = {
transparent: "transparent",
current: "currentColor",
black: "#000000",
@@ -8012,7 +8240,7 @@ var Zk = {
800: "#005885",
900: "#003F5E"
}
-}, cE = lE, uE = {
+}, oE = nE, aE = {
none: "0",
sm: "0.125rem",
base: "0.25rem",
@@ -8022,7 +8250,7 @@ var Zk = {
"2xl": "1rem",
"3xl": "1.5rem",
full: "9999px"
-}, dE = uE, fE = {
+}, iE = aE, sE = {
xs: "0 0 0 1px rgba(0, 0, 0, 0.05)",
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
@@ -8034,7 +8262,7 @@ var Zk = {
inner: "inset 0 2px 4px 0 rgba(0,0,0,0.06)",
none: "none",
"dark-lg": "rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"
-}, pE = fE, hE = {
+}, lE = sE, cE = {
none: 0,
sm: "4px",
base: "8px",
@@ -8043,7 +8271,7 @@ var Zk = {
xl: "24px",
"2xl": "40px",
"3xl": "64px"
-}, mE = hE, vE = {
+}, uE = cE, dE = {
letterSpacings: {
tighter: "-0.05em",
tight: "-0.025em",
@@ -8102,7 +8330,7 @@ var Zk = {
"8xl": "6rem",
"9xl": "8rem"
}
-}, bv = vE, yv = {
+}, vv = dE, gv = {
px: "1px",
0.5: "0.125rem",
1: "0.25rem",
@@ -8136,7 +8364,7 @@ var Zk = {
72: "18rem",
80: "20rem",
96: "24rem"
-}, gE = {
+}, fE = {
max: "max-content",
min: "min-content",
full: "100%",
@@ -8155,28 +8383,28 @@ var Zk = {
"7xl": "80rem",
"8xl": "90rem",
prose: "60ch"
-}, bE = {
+}, pE = {
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px"
-}, yE = {
- ...yv,
- ...gE,
- container: bE
-}, xv = yE, Sv = {
- breakpoints: sE,
- zIndices: nE,
- radii: dE,
- blur: mE,
- colors: cE,
- ...bv,
- sizes: xv,
- shadows: pE,
- space: yv,
- borders: aE,
- transition: tE
-}, { defineMultiStyleConfig: xE, definePartsStyle: na } = Ke([
+}, hE = {
+ ...gv,
+ ...fE,
+ container: pE
+}, bv = hE, yv = {
+ breakpoints: rE,
+ zIndices: Jk,
+ radii: iE,
+ blur: uE,
+ colors: oE,
+ ...vv,
+ sizes: bv,
+ shadows: lE,
+ space: gv,
+ borders: eE,
+ transition: Kk
+}, { defineMultiStyleConfig: mE, definePartsStyle: oa } = Ke([
"stepper",
"step",
"title",
@@ -8185,7 +8413,7 @@ var Zk = {
"separator",
"icon",
"number"
-]), Hr = de("stepper-indicator-size"), ro = de("stepper-icon-size"), no = de("stepper-title-font-size"), oa = de("stepper-description-font-size"), Xo = de("stepper-accent-color"), SE = na(({ colorScheme: e }) => ({
+]), Yr = de("stepper-indicator-size"), no = de("stepper-icon-size"), oo = de("stepper-title-font-size"), aa = de("stepper-description-font-size"), Ko = de("stepper-accent-color"), vE = oa(({ colorScheme: e }) => ({
stepper: {
display: "flex",
justifyContent: "space-between",
@@ -8198,21 +8426,21 @@ var Zk = {
flexDirection: "row",
alignItems: "center"
},
- [Xo.variable]: `colors.${e}.500`,
+ [Ko.variable]: `colors.${e}.500`,
_dark: {
- [Xo.variable]: `colors.${e}.200`
+ [Ko.variable]: `colors.${e}.200`
}
},
title: {
- fontSize: no.reference,
+ fontSize: oo.reference,
fontWeight: "medium"
},
description: {
- fontSize: oa.reference,
+ fontSize: aa.reference,
color: "chakra-subtle-text"
},
number: {
- fontSize: no.reference
+ fontSize: oo.reference
},
step: {
flexShrink: 0,
@@ -8229,23 +8457,23 @@ var Zk = {
},
icon: {
flexShrink: 0,
- width: ro.reference,
- height: ro.reference
+ width: no.reference,
+ height: no.reference
},
indicator: {
flexShrink: 0,
borderRadius: "full",
- width: Hr.reference,
- height: Hr.reference,
+ width: Yr.reference,
+ height: Yr.reference,
display: "flex",
justifyContent: "center",
alignItems: "center",
"&[data-status=active]": {
borderWidth: "2px",
- borderColor: Xo.reference
+ borderColor: Ko.reference
},
"&[data-status=complete]": {
- bg: Xo.reference,
+ bg: Ko.reference,
color: "chakra-inverse-text"
},
"&[data-status=incomplete]": {
@@ -8256,7 +8484,7 @@ var Zk = {
bg: "chakra-border-color",
flex: "1",
"&[data-status=complete]": {
- bg: Xo.reference
+ bg: Ko.reference
},
"&[data-orientation=horizontal]": {
width: "100%",
@@ -8267,44 +8495,44 @@ var Zk = {
width: "2px",
position: "absolute",
height: "100%",
- maxHeight: `calc(100% - ${Hr.reference} - 8px)`,
- top: `calc(${Hr.reference} + 4px)`,
- insetStart: `calc(${Hr.reference} / 2 - 1px)`
+ maxHeight: `calc(100% - ${Yr.reference} - 8px)`,
+ top: `calc(${Yr.reference} + 4px)`,
+ insetStart: `calc(${Yr.reference} / 2 - 1px)`
}
}
-})), wE = xE({
- baseStyle: SE,
+})), gE = mE({
+ baseStyle: vE,
sizes: {
- xs: na({
+ xs: oa({
stepper: {
- [Hr.variable]: "sizes.4",
- [ro.variable]: "sizes.3",
- [no.variable]: "fontSizes.xs",
- [oa.variable]: "fontSizes.xs"
+ [Yr.variable]: "sizes.4",
+ [no.variable]: "sizes.3",
+ [oo.variable]: "fontSizes.xs",
+ [aa.variable]: "fontSizes.xs"
}
}),
- sm: na({
+ sm: oa({
stepper: {
- [Hr.variable]: "sizes.6",
- [ro.variable]: "sizes.4",
- [no.variable]: "fontSizes.sm",
- [oa.variable]: "fontSizes.xs"
+ [Yr.variable]: "sizes.6",
+ [no.variable]: "sizes.4",
+ [oo.variable]: "fontSizes.sm",
+ [aa.variable]: "fontSizes.xs"
}
}),
- md: na({
+ md: oa({
stepper: {
- [Hr.variable]: "sizes.8",
- [ro.variable]: "sizes.5",
- [no.variable]: "fontSizes.md",
- [oa.variable]: "fontSizes.sm"
+ [Yr.variable]: "sizes.8",
+ [no.variable]: "sizes.5",
+ [oo.variable]: "fontSizes.md",
+ [aa.variable]: "fontSizes.sm"
}
}),
- lg: na({
+ lg: oa({
stepper: {
- [Hr.variable]: "sizes.10",
- [ro.variable]: "sizes.6",
- [no.variable]: "fontSizes.lg",
- [oa.variable]: "fontSizes.md"
+ [Yr.variable]: "sizes.10",
+ [no.variable]: "sizes.6",
+ [oo.variable]: "fontSizes.lg",
+ [aa.variable]: "fontSizes.md"
}
})
},
@@ -8313,7 +8541,7 @@ var Zk = {
colorScheme: "blue"
}
});
-function Ue(e, t = {}) {
+function Le(e, t = {}) {
let r = !1;
function n() {
if (!r) {
@@ -8328,12 +8556,12 @@ function Ue(e, t = {}) {
n();
for (const d of u)
t[d] = l(d);
- return Ue(e, t);
+ return Le(e, t);
}
function a(...u) {
for (const d of u)
d in t || (t[d] = l(d));
- return Ue(e, t);
+ return Le(e, t);
}
function i() {
return Object.fromEntries(
@@ -8365,55 +8593,56 @@ function Ue(e, t = {}) {
__type: {}
};
}
-var CE = Ue("accordion").parts("root", "container", "button", "panel").extend("icon"), _E = Ue("alert").parts("title", "description", "container").extend("icon", "spinner"), kE = Ue("avatar").parts("label", "badge", "container").extend("excessLabel", "group"), EE = Ue("breadcrumb").parts("link", "item", "container").extend("separator");
-Ue("button").parts();
-var PE = Ue("checkbox").parts("control", "icon", "container").extend("label");
-Ue("progress").parts("track", "filledTrack").extend("label");
-var TE = Ue("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), AE = Ue("editable").parts(
+var bE = Le("accordion").parts("root", "container", "button", "panel").extend("icon"), yE = Le("alert").parts("title", "description", "container").extend("icon", "spinner"), xE = Le("avatar").parts("label", "badge", "container").extend("excessLabel", "group"), SE = Le("breadcrumb").parts("link", "item", "container").extend("separator");
+Le("button").parts();
+var wE = Le("checkbox").parts("control", "icon", "container").extend("label");
+Le("progress").parts("track", "filledTrack").extend("label");
+var CE = Le("drawer").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), _E = Le("editable").parts(
"preview",
"input",
"textarea"
-), OE = Ue("form").parts(
+), kE = Le("form").parts(
"container",
"requiredIndicator",
"helperText"
-), $E = Ue("formError").parts("text", "icon"), RE = Ue("input").parts(
+), EE = Le("formError").parts("text", "icon"), PE = Le("input").parts(
"addon",
"field",
"element",
"group"
-), DE = Ue("list").parts("container", "item", "icon"), ME = Ue("menu").parts("button", "list", "item").extend("groupTitle", "icon", "command", "divider"), IE = Ue("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), FE = Ue("numberinput").parts(
+), TE = Le("list").parts("container", "item", "icon"), AE = Le("menu").parts("button", "list", "item").extend("groupTitle", "icon", "command", "divider"), OE = Le("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"), RE = Le("numberinput").parts(
"root",
"field",
"stepperGroup",
"stepper"
);
-Ue("pininput").parts("field");
-var NE = Ue("popover").parts("content", "header", "body", "footer").extend("popper", "arrow", "closeButton"), jE = Ue("progress").parts(
+Le("pininput").parts("field");
+var $E = Le("popover").parts("content", "header", "body", "footer").extend("popper", "arrow", "closeButton"), DE = Le("progress").parts(
"label",
"filledTrack",
"track"
-), BE = Ue("radio").parts(
+), ME = Le("radio").parts(
"container",
"control",
"label"
-), zE = Ue("select").parts("field", "icon"), VE = Ue("slider").parts(
+), IE = Le("select").parts("field", "icon"), FE = Le("slider").parts(
"container",
"track",
"thumb",
"filledTrack",
"mark"
-), LE = Ue("stat").parts(
+), NE = Le("stat").parts(
"container",
"label",
"helpText",
"number",
"icon"
-), WE = Ue("switch").parts(
+), jE = Le("switch").parts(
"container",
"track",
- "thumb"
-), UE = Ue("table").parts(
+ "thumb",
+ "label"
+), BE = Le("table").parts(
"table",
"thead",
"tbody",
@@ -8422,132 +8651,142 @@ var NE = Ue("popover").parts("content", "header", "body", "footer").extend("popp
"td",
"tfoot",
"caption"
-), HE = Ue("tabs").parts(
+), zE = Le("tabs").parts(
"root",
"tab",
"tablist",
"tabpanel",
"tabpanels",
"indicator"
-), YE = Ue("tag").parts(
+), VE = Le("tag").parts(
"container",
"label",
"closeButton"
-), qE = Ue("card").parts(
+), LE = Le("card").parts(
"container",
"header",
"body",
"footer"
);
-function In(e, t, r) {
+Le("stepper").parts(
+ "stepper",
+ "step",
+ "title",
+ "description",
+ "indicator",
+ "separator",
+ "icon",
+ "number"
+);
+function Fn(e, t, r) {
return Math.min(Math.max(e, r), t);
}
-class GE extends Error {
+class WE extends Error {
constructor(t) {
super(`Failed to parse color: "${t}"`);
}
}
-var aa = GE;
-function Yu(e) {
+var ia = WE;
+function Uu(e) {
if (typeof e != "string")
- throw new aa(e);
+ throw new ia(e);
if (e.trim().toLowerCase() === "transparent")
return [0, 0, 0, 0];
let t = e.trim();
- t = rP.test(e) ? ZE(e) : e;
- const r = JE.exec(t);
+ t = ZE.test(e) ? YE(e) : e;
+ const r = qE.exec(t);
if (r) {
const i = Array.from(r).slice(1);
- return [...i.slice(0, 3).map((s) => parseInt(Fa(s, 2), 16)), parseInt(Fa(i[3] || "f", 2), 16) / 255];
+ return [...i.slice(0, 3).map((s) => parseInt(Na(s, 2), 16)), parseInt(Na(i[3] || "f", 2), 16) / 255];
}
- const n = QE.exec(t);
+ const n = GE.exec(t);
if (n) {
const i = Array.from(n).slice(1);
return [...i.slice(0, 3).map((s) => parseInt(s, 16)), parseInt(i[3] || "ff", 16) / 255];
}
- const o = eP.exec(t);
+ const o = XE.exec(t);
if (o) {
const i = Array.from(o).slice(1);
return [...i.slice(0, 3).map((s) => parseInt(s, 10)), parseFloat(i[3] || "1")];
}
- const a = tP.exec(t);
+ const a = KE.exec(t);
if (a) {
const [i, s, l, c] = Array.from(a).slice(1).map(parseFloat);
- if (In(0, 100, s) !== s)
- throw new aa(e);
- if (In(0, 100, l) !== l)
- throw new aa(e);
- return [...nP(i, s, l), Number.isNaN(c) ? 1 : c];
+ if (Fn(0, 100, s) !== s)
+ throw new ia(e);
+ if (Fn(0, 100, l) !== l)
+ throw new ia(e);
+ return [...JE(i, s, l), Number.isNaN(c) ? 1 : c];
}
- throw new aa(e);
+ throw new ia(e);
}
-function XE(e) {
+function UE(e) {
let t = 5381, r = e.length;
for (; r; )
t = t * 33 ^ e.charCodeAt(--r);
return (t >>> 0) % 2341;
}
-const qf = (e) => parseInt(e.replace(/_/g, ""), 36), KE = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e, t) => {
- const r = qf(t.substring(0, 3)), n = qf(t.substring(3)).toString(16);
+const Yf = (e) => parseInt(e.replace(/_/g, ""), 36), HE = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e, t) => {
+ const r = Yf(t.substring(0, 3)), n = Yf(t.substring(3)).toString(16);
let o = "";
for (let a = 0; a < 6 - n.length; a++)
o += "0";
return e[r] = `${o}${n}`, e;
}, {});
-function ZE(e) {
- const t = e.toLowerCase().trim(), r = KE[XE(t)];
+function YE(e) {
+ const t = e.toLowerCase().trim(), r = HE[UE(t)];
if (!r)
- throw new aa(e);
+ throw new ia(e);
return `#${r}`;
}
-const Fa = (e, t) => Array.from(Array(t)).map(() => e).join(""), JE = new RegExp(`^#${Fa("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), QE = new RegExp(`^#${Fa("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), eP = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Fa(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), tP = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, rP = /^[a-z]+$/i, Gf = (e) => Math.round(e * 255), nP = (e, t, r) => {
+const Na = (e, t) => Array.from(Array(t)).map(() => e).join(""), qE = new RegExp(`^#${Na("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), GE = new RegExp(`^#${Na("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), XE = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Na(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), KE = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, ZE = /^[a-z]+$/i, qf = (e) => Math.round(e * 255), JE = (e, t, r) => {
let n = r / 100;
if (t === 0)
- return [n, n, n].map(Gf);
+ return [n, n, n].map(qf);
const o = (e % 360 + 360) % 360 / 60, a = (1 - Math.abs(2 * n - 1)) * (t / 100), i = a * (1 - Math.abs(o % 2 - 1));
let s = 0, l = 0, c = 0;
o >= 0 && o < 1 ? (s = a, l = i) : o >= 1 && o < 2 ? (s = i, l = a) : o >= 2 && o < 3 ? (l = a, c = i) : o >= 3 && o < 4 ? (l = i, c = a) : o >= 4 && o < 5 ? (s = i, c = a) : o >= 5 && o < 6 && (s = a, c = i);
const u = n - a / 2, d = s + u, f = l + u, p = c + u;
- return [d, f, p].map(Gf);
+ return [d, f, p].map(qf);
};
-function oP(e, t, r, n) {
- return `rgba(${In(0, 255, e).toFixed()}, ${In(0, 255, t).toFixed()}, ${In(0, 255, r).toFixed()}, ${parseFloat(In(0, 1, n).toFixed(3))})`;
+function QE(e, t, r, n) {
+ return `rgba(${Fn(0, 255, e).toFixed()}, ${Fn(0, 255, t).toFixed()}, ${Fn(0, 255, r).toFixed()}, ${parseFloat(Fn(0, 1, n).toFixed(3))})`;
}
-function aP(e, t) {
- const [r, n, o, a] = Yu(e);
- return oP(r, n, o, a - t);
+function eP(e, t) {
+ const [r, n, o, a] = Uu(e);
+ return QE(r, n, o, a - t);
}
-function iP(e) {
- const [t, r, n, o] = Yu(e);
+function tP(e) {
+ const [t, r, n, o] = Uu(e);
let a = (i) => {
- const s = In(0, 255, i).toString(16);
+ const s = Fn(0, 255, i).toString(16);
return s.length === 1 ? `0${s}` : s;
};
return `#${a(t)}${a(r)}${a(n)}${o < 1 ? a(Math.round(o * 255)) : ""}`;
}
-function sP(e, t, r, n, o) {
+function rP(e, t, r, n, o) {
for (t = t.split ? t.split(".") : t, n = 0; n < t.length; n++)
e = e ? e[t[n]] : o;
return e === o ? r : e;
}
-var lP = (e) => Object.keys(e).length === 0, Dt = (e, t, r) => {
- const n = sP(e, `colors.${t}`, t);
+var nP = (e) => Object.keys(e).length === 0, Dt = (e, t, r) => {
+ const n = rP(e, `colors.${t}`, t);
try {
- return iP(n), n;
+ return tP(n), n;
} catch {
return r ?? "#000000";
}
-}, cP = (e) => {
- const [t, r, n] = Yu(e);
+}, oP = (e) => {
+ const [t, r, n] = Uu(e);
return (t * 299 + r * 587 + n * 114) / 1e3;
-}, uP = (e) => (t) => {
+}, aP = (e) => (t) => {
const r = Dt(t, e);
- return cP(r) < 128 ? "dark" : "light";
-}, dP = (e) => (t) => uP(e)(t) === "dark", To = (e, t) => (r) => {
+ return oP(r) < 128 ? "dark" : "light";
+}, iP = (e) => (t) => aP(e)(t) === "dark", Ao = (e, t) => (r) => {
const n = Dt(r, e);
- return aP(n, 1 - t);
+ return eP(n, 1 - t);
};
-function Xf(e = "1rem", t = "rgba(255, 255, 255, 0.15)") {
+function Gf(e = "1rem", t = "rgba(255, 255, 255, 0.15)") {
return {
backgroundImage: `linear-gradient(
45deg,
@@ -8562,12 +8801,12 @@ function Xf(e = "1rem", t = "rgba(255, 255, 255, 0.15)") {
backgroundSize: `${e} ${e}`
};
}
-var fP = () => `#${Math.floor(Math.random() * 16777215).toString(16).padEnd(6, "0")}`;
-function pP(e) {
- const t = fP();
- return !e || lP(e) ? t : e.string && e.colors ? mP(e.string, e.colors) : e.string && !e.colors ? hP(e.string) : e.colors && !e.string ? vP(e.colors) : t;
+var sP = () => `#${Math.floor(Math.random() * 16777215).toString(16).padEnd(6, "0")}`;
+function lP(e) {
+ const t = sP();
+ return !e || nP(e) ? t : e.string && e.colors ? uP(e.string, e.colors) : e.string && !e.colors ? cP(e.string) : e.colors && !e.string ? dP(e.colors) : t;
}
-function hP(e) {
+function cP(e) {
let t = 0;
if (e.length === 0)
return t.toString();
@@ -8580,7 +8819,7 @@ function hP(e) {
}
return r;
}
-function mP(e, t) {
+function uP(e, t) {
let r = 0;
if (e.length === 0)
return t[0];
@@ -8588,80 +8827,80 @@ function mP(e, t) {
r = e.charCodeAt(n) + ((r << 5) - r), r = r & r;
return r = (r % t.length + t.length) % t.length, t[r];
}
-function vP(e) {
+function dP(e) {
return e[Math.floor(Math.random() * e.length)];
}
function ue(e, t) {
return (r) => r.colorMode === "dark" ? t : e;
}
-function qu(e) {
+function Hu(e) {
const { orientation: t, vertical: r, horizontal: n } = e;
return t ? t === "vertical" ? r : n : {};
}
-function wv(e) {
+function xv(e) {
return Lt(e) && e.reference ? e.reference : String(e);
}
-var Ys = (e, ...t) => t.map(wv).join(` ${e} `).replace(/calc/g, ""), Kf = (...e) => `calc(${Ys("+", ...e)})`, Zf = (...e) => `calc(${Ys("-", ...e)})`, Lc = (...e) => `calc(${Ys("*", ...e)})`, Jf = (...e) => `calc(${Ys("/", ...e)})`, Qf = (e) => {
- const t = wv(e);
- return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : Lc(t, -1);
-}, Yr = Object.assign(
+var Hs = (e, ...t) => t.map(xv).join(` ${e} `).replace(/calc/g, ""), Xf = (...e) => `calc(${Hs("+", ...e)})`, Kf = (...e) => `calc(${Hs("-", ...e)})`, Vc = (...e) => `calc(${Hs("*", ...e)})`, Zf = (...e) => `calc(${Hs("/", ...e)})`, Jf = (e) => {
+ const t = xv(e);
+ return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : Vc(t, -1);
+}, qr = Object.assign(
(e) => ({
- add: (...t) => Yr(Kf(e, ...t)),
- subtract: (...t) => Yr(Zf(e, ...t)),
- multiply: (...t) => Yr(Lc(e, ...t)),
- divide: (...t) => Yr(Jf(e, ...t)),
- negate: () => Yr(Qf(e)),
+ add: (...t) => qr(Xf(e, ...t)),
+ subtract: (...t) => qr(Kf(e, ...t)),
+ multiply: (...t) => qr(Vc(e, ...t)),
+ divide: (...t) => qr(Zf(e, ...t)),
+ negate: () => qr(Jf(e)),
toString: () => e.toString()
}),
{
- add: Kf,
- subtract: Zf,
- multiply: Lc,
- divide: Jf,
- negate: Qf
+ add: Xf,
+ subtract: Kf,
+ multiply: Vc,
+ divide: Zf,
+ negate: Jf
}
);
-function gP(e) {
+function fP(e) {
return !Number.isInteger(parseFloat(e.toString()));
}
-function bP(e, t = "-") {
+function pP(e, t = "-") {
return e.replace(/\s+/g, t);
}
-function Cv(e) {
- const t = bP(e.toString());
- return t.includes("\\.") ? e : gP(e) ? t.replace(".", "\\.") : e;
+function Sv(e) {
+ const t = pP(e.toString());
+ return t.includes("\\.") ? e : fP(e) ? t.replace(".", "\\.") : e;
}
-function yP(e, t = "") {
- return [t, Cv(e)].filter(Boolean).join("-");
+function hP(e, t = "") {
+ return [t, Sv(e)].filter(Boolean).join("-");
}
-function xP(e, t) {
- return `var(${Cv(e)}${t ? `, ${t}` : ""})`;
+function mP(e, t) {
+ return `var(${Sv(e)}${t ? `, ${t}` : ""})`;
}
-function SP(e, t = "") {
- return `--${yP(e, t)}`;
+function vP(e, t = "") {
+ return `--${hP(e, t)}`;
}
function yt(e, t) {
- const r = SP(e, t == null ? void 0 : t.prefix);
+ const r = vP(e, t == null ? void 0 : t.prefix);
return {
variable: r,
- reference: xP(r, wP(t == null ? void 0 : t.fallback))
+ reference: mP(r, gP(t == null ? void 0 : t.fallback))
};
}
-function wP(e) {
+function gP(e) {
return typeof e == "string" ? e : e == null ? void 0 : e.reference;
}
-var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt("switch-track-width"), Nn = yt("switch-track-height"), Rl = yt("switch-track-diff"), _P = Yr.subtract(fa, Nn), Wc = yt("switch-thumb-x"), Ko = yt("switch-bg"), kP = (e) => {
+var { defineMultiStyleConfig: bP, definePartsStyle: Ui } = Ke(jE.keys), ha = yt("switch-track-width"), jn = yt("switch-track-height"), Ol = yt("switch-track-diff"), yP = qr.subtract(ha, jn), Lc = yt("switch-thumb-x"), Zo = yt("switch-bg"), xP = (e) => {
const { colorScheme: t } = e;
return {
borderRadius: "full",
p: "0.5",
- width: [fa.reference],
- height: [Nn.reference],
+ width: [ha.reference],
+ height: [jn.reference],
transitionProperty: "common",
transitionDuration: "fast",
- [Ko.variable]: "colors.gray.300",
+ [Zo.variable]: "colors.gray.300",
_dark: {
- [Ko.variable]: "colors.whiteAlpha.400"
+ [Zo.variable]: "colors.whiteAlpha.400"
},
_focusVisible: {
boxShadow: "outline"
@@ -8671,60 +8910,60 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
cursor: "not-allowed"
},
_checked: {
- [Ko.variable]: `colors.${t}.500`,
+ [Zo.variable]: `colors.${t}.500`,
_dark: {
- [Ko.variable]: `colors.${t}.200`
+ [Zo.variable]: `colors.${t}.200`
}
},
- bg: Ko.reference
+ bg: Zo.reference
};
-}, EP = {
+}, SP = {
bg: "white",
transitionProperty: "transform",
transitionDuration: "normal",
borderRadius: "inherit",
- width: [Nn.reference],
- height: [Nn.reference],
+ width: [jn.reference],
+ height: [jn.reference],
_checked: {
- transform: `translateX(${Wc.reference})`
+ transform: `translateX(${Lc.reference})`
}
-}, PP = Ui((e) => ({
+}, wP = Ui((e) => ({
container: {
- [Rl.variable]: _P,
- [Wc.variable]: Rl.reference,
+ [Ol.variable]: yP,
+ [Lc.variable]: Ol.reference,
_rtl: {
- [Wc.variable]: Yr(Rl).negate().toString()
+ [Lc.variable]: qr(Ol).negate().toString()
}
},
- track: kP(e),
- thumb: EP
-})), TP = {
+ track: xP(e),
+ thumb: SP
+})), CP = {
sm: Ui({
container: {
- [fa.variable]: "1.375rem",
- [Nn.variable]: "sizes.3"
+ [ha.variable]: "1.375rem",
+ [jn.variable]: "sizes.3"
}
}),
md: Ui({
container: {
- [fa.variable]: "1.875rem",
- [Nn.variable]: "sizes.4"
+ [ha.variable]: "1.875rem",
+ [jn.variable]: "sizes.4"
}
}),
lg: Ui({
container: {
- [fa.variable]: "2.875rem",
- [Nn.variable]: "sizes.6"
+ [ha.variable]: "2.875rem",
+ [jn.variable]: "sizes.6"
}
})
-}, AP = CP({
- baseStyle: PP,
- sizes: TP,
+}, _P = bP({
+ baseStyle: wP,
+ sizes: CP,
defaultProps: {
size: "md",
colorScheme: "blue"
}
-}), { defineMultiStyleConfig: OP, definePartsStyle: mo } = Ke(UE.keys), $P = mo({
+}), { defineMultiStyleConfig: kP, definePartsStyle: vo } = Ke(BE.keys), EP = vo({
table: {
fontVariantNumeric: "lining-nums tabular-nums",
borderCollapse: "collapse",
@@ -8746,23 +8985,23 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
textAlign: "center",
fontWeight: "medium"
}
-}), hs = {
+}), ps = {
"&[data-is-numeric=true]": {
textAlign: "end"
}
-}, RP = mo((e) => {
+}, PP = vo((e) => {
const { colorScheme: t } = e;
return {
th: {
color: ue("gray.600", "gray.400")(e),
borderBottom: "1px",
borderColor: ue(`${t}.100`, `${t}.700`)(e),
- ...hs
+ ...ps
},
td: {
borderBottom: "1px",
borderColor: ue(`${t}.100`, `${t}.700`)(e),
- ...hs
+ ...ps
},
caption: {
color: ue("gray.600", "gray.100")(e)
@@ -8775,19 +9014,19 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
}
}
};
-}), DP = mo((e) => {
+}), TP = vo((e) => {
const { colorScheme: t } = e;
return {
th: {
color: ue("gray.600", "gray.400")(e),
borderBottom: "1px",
borderColor: ue(`${t}.100`, `${t}.700`)(e),
- ...hs
+ ...ps
},
td: {
borderBottom: "1px",
borderColor: ue(`${t}.100`, `${t}.700`)(e),
- ...hs
+ ...ps
},
caption: {
color: ue("gray.600", "gray.100")(e)
@@ -8813,12 +9052,12 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
}
}
};
-}), MP = {
- simple: RP,
- striped: DP,
+}), AP = {
+ simple: PP,
+ striped: TP,
unstyled: {}
-}, IP = {
- sm: mo({
+}, OP = {
+ sm: vo({
th: {
px: "4",
py: "1",
@@ -8837,7 +9076,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
fontSize: "xs"
}
}),
- md: mo({
+ md: vo({
th: {
px: "6",
py: "3",
@@ -8855,7 +9094,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
fontSize: "sm"
}
}),
- lg: mo({
+ lg: vo({
th: {
px: "8",
py: "4",
@@ -8873,21 +9112,21 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
fontSize: "md"
}
})
-}, FP = OP({
- baseStyle: $P,
- variants: MP,
- sizes: IP,
+}, RP = kP({
+ baseStyle: EP,
+ variants: AP,
+ sizes: OP,
defaultProps: {
variant: "simple",
size: "md",
colorScheme: "gray"
}
-}), Vt = de("tabs-color"), br = de("tabs-bg"), Ci = de("tabs-border-color"), { defineMultiStyleConfig: NP, definePartsStyle: Mr } = Ke(HE.keys), jP = (e) => {
+}), Vt = de("tabs-color"), br = de("tabs-bg"), Ci = de("tabs-border-color"), { defineMultiStyleConfig: $P, definePartsStyle: Ir } = Ke(zE.keys), DP = (e) => {
const { orientation: t } = e;
return {
display: t === "vertical" ? "flex" : "block"
};
-}, BP = (e) => {
+}, MP = (e) => {
const { isFitted: t } = e;
return {
flex: t ? 1 : void 0,
@@ -8902,7 +9141,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
opacity: 0.4
}
};
-}, zP = (e) => {
+}, IP = (e) => {
const { align: t = "start", orientation: r } = e;
return {
justifyContent: {
@@ -8912,36 +9151,36 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
}[t],
flexDirection: r === "vertical" ? "column" : "row"
};
-}, VP = {
+}, FP = {
p: 4
-}, LP = Mr((e) => ({
- root: jP(e),
- tab: BP(e),
- tablist: zP(e),
- tabpanel: VP
-})), WP = {
- sm: Mr({
+}, NP = Ir((e) => ({
+ root: DP(e),
+ tab: MP(e),
+ tablist: IP(e),
+ tabpanel: FP
+})), jP = {
+ sm: Ir({
tab: {
py: 1,
px: 4,
fontSize: "sm"
}
}),
- md: Mr({
+ md: Ir({
tab: {
fontSize: "md",
py: 2,
px: 4
}
}),
- lg: Mr({
+ lg: Ir({
tab: {
fontSize: "lg",
py: 3,
px: 4
}
})
-}, UP = Mr((e) => {
+}, BP = Ir((e) => {
const { colorScheme: t, orientation: r } = e, n = r === "vertical", o = n ? "borderStart" : "borderBottom", a = n ? "marginStart" : "marginBottom";
return {
tablist: {
@@ -8972,7 +9211,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
bg: br.reference
}
};
-}), HP = Mr((e) => {
+}), zP = Ir((e) => {
const { colorScheme: t } = e;
return {
tab: {
@@ -8999,7 +9238,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
borderColor: "inherit"
}
};
-}), YP = Mr((e) => {
+}), VP = Ir((e) => {
const { colorScheme: t } = e;
return {
tab: {
@@ -9033,7 +9272,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
borderColor: "inherit"
}
};
-}), qP = Mr((e) => {
+}), LP = Ir((e) => {
const { colorScheme: t, theme: r } = e;
return {
tab: {
@@ -9046,7 +9285,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
}
}
};
-}), GP = Mr((e) => {
+}), WP = Ir((e) => {
const { colorScheme: t } = e;
return {
tab: {
@@ -9068,23 +9307,23 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
bg: br.reference
}
};
-}), XP = Mr({}), KP = {
- line: UP,
- enclosed: HP,
- "enclosed-colored": YP,
- "soft-rounded": qP,
- "solid-rounded": GP,
- unstyled: XP
-}, ZP = NP({
- baseStyle: LP,
- sizes: WP,
- variants: KP,
+}), UP = Ir({}), HP = {
+ line: BP,
+ enclosed: zP,
+ "enclosed-colored": VP,
+ "soft-rounded": LP,
+ "solid-rounded": WP,
+ unstyled: UP
+}, YP = $P({
+ baseStyle: NP,
+ sizes: jP,
+ variants: HP,
defaultProps: {
size: "md",
variant: "line",
colorScheme: "blue"
}
-}), pt = bk("badge", ["bg", "color", "shadow"]), JP = {
+}), pt = pk("badge", ["bg", "color", "shadow"]), qP = {
px: 1,
textTransform: "uppercase",
fontSize: "xs",
@@ -9093,8 +9332,8 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
bg: pt.bg.reference,
color: pt.color.reference,
boxShadow: pt.shadow.reference
-}, QP = (e) => {
- const { colorScheme: t, theme: r } = e, n = To(`${t}.500`, 0.6)(r);
+}, GP = (e) => {
+ const { colorScheme: t, theme: r } = e, n = Ao(`${t}.500`, 0.6)(r);
return {
[pt.bg.variable]: `colors.${t}.500`,
[pt.color.variable]: "colors.white",
@@ -9103,8 +9342,8 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
[pt.color.variable]: "colors.whiteAlpha.800"
}
};
-}, eT = (e) => {
- const { colorScheme: t, theme: r } = e, n = To(`${t}.200`, 0.16)(r);
+}, XP = (e) => {
+ const { colorScheme: t, theme: r } = e, n = Ao(`${t}.200`, 0.16)(r);
return {
[pt.bg.variable]: `colors.${t}.100`,
[pt.color.variable]: `colors.${t}.800`,
@@ -9113,8 +9352,8 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
[pt.color.variable]: `colors.${t}.200`
}
};
-}, tT = (e) => {
- const { colorScheme: t, theme: r } = e, n = To(`${t}.200`, 0.8)(r);
+}, KP = (e) => {
+ const { colorScheme: t, theme: r } = e, n = Ao(`${t}.200`, 0.8)(r);
return {
[pt.color.variable]: `colors.${t}.500`,
_dark: {
@@ -9122,39 +9361,39 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
},
[pt.shadow.variable]: `inset 0 0 0px 1px ${pt.color.reference}`
};
-}, rT = {
- solid: QP,
- subtle: eT,
- outline: tT
-}, pa = {
- baseStyle: JP,
- variants: rT,
+}, ZP = {
+ solid: GP,
+ subtle: XP,
+ outline: KP
+}, ma = {
+ baseStyle: qP,
+ variants: ZP,
defaultProps: {
variant: "subtle",
colorScheme: "gray"
}
-}, { defineMultiStyleConfig: nT, definePartsStyle: jn } = Ke(YE.keys), ep = de("tag-bg"), tp = de("tag-color"), Dl = de("tag-shadow"), Hi = de("tag-min-height"), Yi = de("tag-min-width"), qi = de("tag-font-size"), Gi = de("tag-padding-inline"), oT = {
+}, { defineMultiStyleConfig: JP, definePartsStyle: Bn } = Ke(VE.keys), Qf = de("tag-bg"), ep = de("tag-color"), Rl = de("tag-shadow"), Hi = de("tag-min-height"), Yi = de("tag-min-width"), qi = de("tag-font-size"), Gi = de("tag-padding-inline"), QP = {
fontWeight: "medium",
lineHeight: 1.2,
outline: 0,
- [tp.variable]: pt.color.reference,
- [ep.variable]: pt.bg.reference,
- [Dl.variable]: pt.shadow.reference,
- color: tp.reference,
- bg: ep.reference,
- boxShadow: Dl.reference,
+ [ep.variable]: pt.color.reference,
+ [Qf.variable]: pt.bg.reference,
+ [Rl.variable]: pt.shadow.reference,
+ color: ep.reference,
+ bg: Qf.reference,
+ boxShadow: Rl.reference,
borderRadius: "md",
minH: Hi.reference,
minW: Yi.reference,
fontSize: qi.reference,
px: Gi.reference,
_focusVisible: {
- [Dl.variable]: "shadows.outline"
+ [Rl.variable]: "shadows.outline"
}
-}, aT = {
+}, eT = {
lineHeight: 1.2,
overflow: "visible"
-}, iT = {
+}, tT = {
fontSize: "lg",
w: "5",
h: "5",
@@ -9177,12 +9416,12 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
_active: {
opacity: 1
}
-}, sT = jn({
- container: oT,
- label: aT,
- closeButton: iT
-}), lT = {
- sm: jn({
+}, rT = Bn({
+ container: QP,
+ label: eT,
+ closeButton: tT
+}), nT = {
+ sm: Bn({
container: {
[Hi.variable]: "sizes.5",
[Yi.variable]: "sizes.5",
@@ -9194,7 +9433,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
marginStart: "0.35rem"
}
}),
- md: jn({
+ md: Bn({
container: {
[Hi.variable]: "sizes.6",
[Yi.variable]: "sizes.6",
@@ -9202,7 +9441,7 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
[Gi.variable]: "space.2"
}
}),
- lg: jn({
+ lg: Bn({
container: {
[Hi.variable]: "sizes.8",
[Yi.variable]: "sizes.8",
@@ -9210,47 +9449,47 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
[Gi.variable]: "space.3"
}
})
-}, cT = {
- subtle: jn((e) => {
+}, oT = {
+ subtle: Bn((e) => {
var t;
return {
- container: (t = pa.variants) == null ? void 0 : t.subtle(e)
+ container: (t = ma.variants) == null ? void 0 : t.subtle(e)
};
}),
- solid: jn((e) => {
+ solid: Bn((e) => {
var t;
return {
- container: (t = pa.variants) == null ? void 0 : t.solid(e)
+ container: (t = ma.variants) == null ? void 0 : t.solid(e)
};
}),
- outline: jn((e) => {
+ outline: Bn((e) => {
var t;
return {
- container: (t = pa.variants) == null ? void 0 : t.outline(e)
+ container: (t = ma.variants) == null ? void 0 : t.outline(e)
};
})
-}, uT = nT({
- variants: cT,
- baseStyle: sT,
- sizes: lT,
+}, aT = JP({
+ variants: oT,
+ baseStyle: rT,
+ sizes: nT,
defaultProps: {
size: "md",
variant: "subtle",
colorScheme: "gray"
}
-}), { definePartsStyle: qr, defineMultiStyleConfig: dT } = Ke(RE.keys), oo = de("input-height"), ao = de("input-font-size"), io = de("input-padding"), so = de("input-border-radius"), fT = qr({
+}), { definePartsStyle: Gr, defineMultiStyleConfig: iT } = Ke(PE.keys), ao = de("input-height"), io = de("input-font-size"), so = de("input-padding"), lo = de("input-border-radius"), sT = Gr({
addon: {
- height: oo.reference,
- fontSize: ao.reference,
- px: io.reference,
- borderRadius: so.reference
+ height: ao.reference,
+ fontSize: io.reference,
+ px: so.reference,
+ borderRadius: lo.reference
},
field: {
width: "100%",
- height: oo.reference,
- fontSize: ao.reference,
- px: io.reference,
- borderRadius: so.reference,
+ height: ao.reference,
+ fontSize: io.reference,
+ px: so.reference,
+ borderRadius: lo.reference,
minWidth: 0,
outline: 0,
position: "relative",
@@ -9262,58 +9501,58 @@ var { defineMultiStyleConfig: CP, definePartsStyle: Ui } = Ke(WE.keys), fa = yt(
cursor: "not-allowed"
}
}
-}), cn = {
+}), un = {
lg: {
- [ao.variable]: "fontSizes.lg",
- [io.variable]: "space.4",
- [so.variable]: "radii.md",
- [oo.variable]: "sizes.12"
+ [io.variable]: "fontSizes.lg",
+ [so.variable]: "space.4",
+ [lo.variable]: "radii.md",
+ [ao.variable]: "sizes.12"
},
md: {
- [ao.variable]: "fontSizes.md",
- [io.variable]: "space.4",
- [so.variable]: "radii.md",
- [oo.variable]: "sizes.10"
+ [io.variable]: "fontSizes.md",
+ [so.variable]: "space.4",
+ [lo.variable]: "radii.md",
+ [ao.variable]: "sizes.10"
},
sm: {
- [ao.variable]: "fontSizes.sm",
- [io.variable]: "space.3",
- [so.variable]: "radii.sm",
- [oo.variable]: "sizes.8"
+ [io.variable]: "fontSizes.sm",
+ [so.variable]: "space.3",
+ [lo.variable]: "radii.sm",
+ [ao.variable]: "sizes.8"
},
xs: {
- [ao.variable]: "fontSizes.xs",
- [io.variable]: "space.2",
- [so.variable]: "radii.sm",
- [oo.variable]: "sizes.6"
- }
-}, pT = {
- lg: qr({
- field: cn.lg,
- group: cn.lg
+ [io.variable]: "fontSizes.xs",
+ [so.variable]: "space.2",
+ [lo.variable]: "radii.sm",
+ [ao.variable]: "sizes.6"
+ }
+}, lT = {
+ lg: Gr({
+ field: un.lg,
+ group: un.lg
}),
- md: qr({
- field: cn.md,
- group: cn.md
+ md: Gr({
+ field: un.md,
+ group: un.md
}),
- sm: qr({
- field: cn.sm,
- group: cn.sm
+ sm: Gr({
+ field: un.sm,
+ group: un.sm
}),
- xs: qr({
- field: cn.xs,
- group: cn.xs
+ xs: Gr({
+ field: un.xs,
+ group: un.xs
})
};
-function Gu(e) {
+function Yu(e) {
const { focusBorderColor: t, errorBorderColor: r } = e;
return {
focusBorderColor: t || ue("blue.500", "blue.300")(e),
errorBorderColor: r || ue("red.500", "red.300")(e)
};
}
-var hT = qr((e) => {
- const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Gu(e);
+var cT = Gr((e) => {
+ const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Yu(e);
return {
field: {
border: "1px solid",
@@ -9342,8 +9581,8 @@ var hT = qr((e) => {
bg: ue("gray.100", "whiteAlpha.300")(e)
}
};
-}), mT = qr((e) => {
- const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Gu(e);
+}), uT = Gr((e) => {
+ const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Yu(e);
return {
field: {
border: "2px solid",
@@ -9370,8 +9609,8 @@ var hT = qr((e) => {
bg: ue("gray.100", "whiteAlpha.50")(e)
}
};
-}), vT = qr((e) => {
- const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Gu(e);
+}), dT = Gr((e) => {
+ const { theme: t } = e, { focusBorderColor: r, errorBorderColor: n } = Yu(e);
return {
field: {
borderBottom: "1px solid",
@@ -9400,7 +9639,7 @@ var hT = qr((e) => {
bg: "transparent"
}
};
-}), gT = qr({
+}), fT = Gr({
field: {
bg: "transparent",
px: "0",
@@ -9411,26 +9650,26 @@ var hT = qr((e) => {
px: "0",
height: "auto"
}
-}), bT = {
- outline: hT,
- filled: mT,
- flushed: vT,
- unstyled: gT
-}, Ve = dT({
- baseStyle: fT,
- sizes: pT,
- variants: bT,
+}), pT = {
+ outline: cT,
+ filled: uT,
+ flushed: dT,
+ unstyled: fT
+}, Ve = iT({
+ baseStyle: sT,
+ sizes: lT,
+ variants: pT,
defaultProps: {
size: "md",
variant: "outline"
}
-}), rp, yT = {
- ...(rp = Ve.baseStyle) == null ? void 0 : rp.field,
+}), tp, hT = {
+ ...(tp = Ve.baseStyle) == null ? void 0 : tp.field,
paddingY: "2",
minHeight: "20",
lineHeight: "short",
verticalAlign: "top"
-}, np, op, xT = {
+}, rp, np, mT = {
outline: (e) => {
var t, r;
return (r = (t = Ve.variants) == null ? void 0 : t.outline(e).field) != null ? r : {};
@@ -9443,30 +9682,30 @@ var hT = qr((e) => {
var t, r;
return (r = (t = Ve.variants) == null ? void 0 : t.filled(e).field) != null ? r : {};
},
- unstyled: (op = (np = Ve.variants) == null ? void 0 : np.unstyled.field) != null ? op : {}
-}, ap, ip, sp, lp, cp, up, dp, fp, ST = {
- xs: (ip = (ap = Ve.sizes) == null ? void 0 : ap.xs.field) != null ? ip : {},
- sm: (lp = (sp = Ve.sizes) == null ? void 0 : sp.sm.field) != null ? lp : {},
- md: (up = (cp = Ve.sizes) == null ? void 0 : cp.md.field) != null ? up : {},
- lg: (fp = (dp = Ve.sizes) == null ? void 0 : dp.lg.field) != null ? fp : {}
-}, wT = {
- baseStyle: yT,
- sizes: ST,
- variants: xT,
+ unstyled: (np = (rp = Ve.variants) == null ? void 0 : rp.unstyled.field) != null ? np : {}
+}, op, ap, ip, sp, lp, cp, up, dp, vT = {
+ xs: (ap = (op = Ve.sizes) == null ? void 0 : op.xs.field) != null ? ap : {},
+ sm: (sp = (ip = Ve.sizes) == null ? void 0 : ip.sm.field) != null ? sp : {},
+ md: (cp = (lp = Ve.sizes) == null ? void 0 : lp.md.field) != null ? cp : {},
+ lg: (dp = (up = Ve.sizes) == null ? void 0 : up.lg.field) != null ? dp : {}
+}, gT = {
+ baseStyle: hT,
+ sizes: vT,
+ variants: mT,
defaultProps: {
size: "md",
variant: "outline"
}
-}, _i = yt("tooltip-bg"), Ml = yt("tooltip-fg"), CT = yt("popper-arrow-bg"), _T = {
+}, _i = yt("tooltip-bg"), $l = yt("tooltip-fg"), bT = yt("popper-arrow-bg"), yT = {
bg: _i.reference,
- color: Ml.reference,
+ color: $l.reference,
[_i.variable]: "colors.gray.700",
- [Ml.variable]: "colors.whiteAlpha.900",
+ [$l.variable]: "colors.whiteAlpha.900",
_dark: {
[_i.variable]: "colors.gray.300",
- [Ml.variable]: "colors.gray.900"
+ [$l.variable]: "colors.gray.900"
},
- [CT.variable]: _i.reference,
+ [bT.variable]: _i.reference,
px: "2",
py: "0.5",
borderRadius: "sm",
@@ -9475,12 +9714,12 @@ var hT = qr((e) => {
boxShadow: "md",
maxW: "xs",
zIndex: "tooltip"
-}, kT = {
- baseStyle: _T
-}, { defineMultiStyleConfig: ET, definePartsStyle: ia } = Ke(jE.keys), PT = (e) => {
+}, xT = {
+ baseStyle: yT
+}, { defineMultiStyleConfig: ST, definePartsStyle: sa } = Ke(DE.keys), wT = (e) => {
const { colorScheme: t, theme: r, isIndeterminate: n, hasStripe: o } = e, a = ue(
- Xf(),
- Xf("1rem", "rgba(0,0,0,0.1)")
+ Gf(),
+ Gf("1rem", "rgba(0,0,0,0.1)")
)(e), i = ue(`${t}.500`, `${t}.200`)(e), s = `linear-gradient(
to right,
transparent 0%,
@@ -9491,50 +9730,50 @@ var hT = qr((e) => {
...!n && o && a,
...n ? { bgImage: s } : { bgColor: i }
};
-}, TT = {
+}, CT = {
lineHeight: "1",
fontSize: "0.25em",
fontWeight: "bold",
color: "white"
-}, AT = (e) => ({
+}, _T = (e) => ({
bg: ue("gray.100", "whiteAlpha.300")(e)
-}), OT = (e) => ({
+}), kT = (e) => ({
transitionProperty: "common",
transitionDuration: "slow",
- ...PT(e)
-}), $T = ia((e) => ({
- label: TT,
- filledTrack: OT(e),
- track: AT(e)
-})), RT = {
- xs: ia({
+ ...wT(e)
+}), ET = sa((e) => ({
+ label: CT,
+ filledTrack: kT(e),
+ track: _T(e)
+})), PT = {
+ xs: sa({
track: { h: "1" }
}),
- sm: ia({
+ sm: sa({
track: { h: "2" }
}),
- md: ia({
+ md: sa({
track: { h: "3" }
}),
- lg: ia({
+ lg: sa({
track: { h: "4" }
})
-}, DT = ET({
- sizes: RT,
- baseStyle: $T,
+}, TT = ST({
+ sizes: PT,
+ baseStyle: ET,
defaultProps: {
size: "md",
colorScheme: "blue"
}
-}), MT = (e) => typeof e == "function";
+}), AT = (e) => typeof e == "function";
function Mt(e, ...t) {
- return MT(e) ? e(...t) : e;
+ return AT(e) ? e(...t) : e;
}
-var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de("checkbox-size"), FT = (e) => {
+var { definePartsStyle: Xi, defineMultiStyleConfig: OT } = Ke(wE.keys), va = de("checkbox-size"), RT = (e) => {
const { colorScheme: t } = e;
return {
- w: ha.reference,
- h: ha.reference,
+ w: va.reference,
+ h: va.reference,
transitionProperty: "box-shadow",
transitionDuration: "normal",
border: "2px solid",
@@ -9571,45 +9810,45 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
borderColor: ue("red.500", "red.300")(e)
}
};
-}, NT = {
+}, $T = {
_disabled: { cursor: "not-allowed" }
-}, jT = {
+}, DT = {
userSelect: "none",
_disabled: { opacity: 0.4 }
-}, BT = {
+}, MT = {
transitionProperty: "transform",
transitionDuration: "normal"
-}, zT = Xi((e) => ({
- icon: BT,
- container: NT,
- control: Mt(FT, e),
- label: jT
-})), VT = {
+}, IT = Xi((e) => ({
+ icon: MT,
+ container: $T,
+ control: Mt(RT, e),
+ label: DT
+})), FT = {
sm: Xi({
- control: { [ha.variable]: "sizes.3" },
+ control: { [va.variable]: "sizes.3" },
label: { fontSize: "sm" },
icon: { fontSize: "3xs" }
}),
md: Xi({
- control: { [ha.variable]: "sizes.4" },
+ control: { [va.variable]: "sizes.4" },
label: { fontSize: "md" },
icon: { fontSize: "2xs" }
}),
lg: Xi({
- control: { [ha.variable]: "sizes.5" },
+ control: { [va.variable]: "sizes.5" },
label: { fontSize: "lg" },
icon: { fontSize: "2xs" }
})
-}, ms = IT({
- baseStyle: zT,
- sizes: VT,
+}, hs = OT({
+ baseStyle: IT,
+ sizes: FT,
defaultProps: {
size: "md",
colorScheme: "blue"
}
-}), { defineMultiStyleConfig: LT, definePartsStyle: Ki } = Ke(BE.keys), WT = (e) => {
+}), { defineMultiStyleConfig: NT, definePartsStyle: Ki } = Ke(ME.keys), jT = (e) => {
var t;
- const r = (t = Mt(ms.baseStyle, e)) == null ? void 0 : t.control;
+ const r = (t = Mt(hs.baseStyle, e)) == null ? void 0 : t.control;
return {
...r,
borderRadius: "full",
@@ -9626,14 +9865,14 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
}
}
};
-}, UT = Ki((e) => {
+}, BT = Ki((e) => {
var t, r, n, o;
return {
- label: (r = (t = ms).baseStyle) == null ? void 0 : r.call(t, e).label,
- container: (o = (n = ms).baseStyle) == null ? void 0 : o.call(n, e).container,
- control: WT(e)
+ label: (r = (t = hs).baseStyle) == null ? void 0 : r.call(t, e).label,
+ container: (o = (n = hs).baseStyle) == null ? void 0 : o.call(n, e).container,
+ control: jT(e)
};
-}), HT = {
+}), zT = {
md: Ki({
control: { w: "4", h: "4" },
label: { fontSize: "md" }
@@ -9646,15 +9885,15 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
control: { width: "3", height: "3" },
label: { fontSize: "sm" }
})
-}, YT = LT({
- baseStyle: UT,
- sizes: HT,
+}, VT = NT({
+ baseStyle: BT,
+ sizes: zT,
defaultProps: {
size: "md",
colorScheme: "blue"
}
-}), { defineMultiStyleConfig: qT, definePartsStyle: GT } = Ke(zE.keys), ki = de("select-bg"), pp, XT = {
- ...(pp = Ve.baseStyle) == null ? void 0 : pp.field,
+}), { defineMultiStyleConfig: LT, definePartsStyle: WT } = Ke(IE.keys), ki = de("select-bg"), fp, UT = {
+ ...(fp = Ve.baseStyle) == null ? void 0 : fp.field,
appearance: "none",
paddingBottom: "1px",
lineHeight: "normal",
@@ -9666,7 +9905,7 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
"> option, > optgroup": {
bg: ki.reference
}
-}, KT = {
+}, HT = {
width: "6",
height: "100%",
insetEnd: "2",
@@ -9676,62 +9915,62 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
_disabled: {
opacity: 0.5
}
-}, ZT = GT({
- field: XT,
- icon: KT
+}, YT = WT({
+ field: UT,
+ icon: HT
}), Ei = {
paddingInlineEnd: "8"
-}, hp, mp, vp, gp, bp, yp, xp, Sp, JT = {
+}, pp, hp, mp, vp, gp, bp, yp, xp, qT = {
lg: {
- ...(hp = Ve.sizes) == null ? void 0 : hp.lg,
+ ...(pp = Ve.sizes) == null ? void 0 : pp.lg,
field: {
- ...(mp = Ve.sizes) == null ? void 0 : mp.lg.field,
+ ...(hp = Ve.sizes) == null ? void 0 : hp.lg.field,
...Ei
}
},
md: {
- ...(vp = Ve.sizes) == null ? void 0 : vp.md,
+ ...(mp = Ve.sizes) == null ? void 0 : mp.md,
field: {
- ...(gp = Ve.sizes) == null ? void 0 : gp.md.field,
+ ...(vp = Ve.sizes) == null ? void 0 : vp.md.field,
...Ei
}
},
sm: {
- ...(bp = Ve.sizes) == null ? void 0 : bp.sm,
+ ...(gp = Ve.sizes) == null ? void 0 : gp.sm,
field: {
- ...(yp = Ve.sizes) == null ? void 0 : yp.sm.field,
+ ...(bp = Ve.sizes) == null ? void 0 : bp.sm.field,
...Ei
}
},
xs: {
- ...(xp = Ve.sizes) == null ? void 0 : xp.xs,
+ ...(yp = Ve.sizes) == null ? void 0 : yp.xs,
field: {
- ...(Sp = Ve.sizes) == null ? void 0 : Sp.xs.field,
+ ...(xp = Ve.sizes) == null ? void 0 : xp.xs.field,
...Ei
},
icon: {
insetEnd: "1"
}
}
-}, QT = qT({
- baseStyle: ZT,
- sizes: JT,
+}, GT = LT({
+ baseStyle: YT,
+ sizes: qT,
variants: Ve.variants,
defaultProps: Ve.defaultProps
-}), Il = de("skeleton-start-color"), Fl = de("skeleton-end-color"), eA = {
- [Il.variable]: "colors.gray.100",
- [Fl.variable]: "colors.gray.400",
+}), Dl = de("skeleton-start-color"), Ml = de("skeleton-end-color"), XT = {
+ [Dl.variable]: "colors.gray.100",
+ [Ml.variable]: "colors.gray.400",
_dark: {
- [Il.variable]: "colors.gray.800",
- [Fl.variable]: "colors.gray.600"
+ [Dl.variable]: "colors.gray.800",
+ [Ml.variable]: "colors.gray.600"
},
- background: Il.reference,
- borderColor: Fl.reference,
+ background: Dl.reference,
+ borderColor: Ml.reference,
opacity: 0.7,
borderRadius: "sm"
-}, tA = {
- baseStyle: eA
-}, Nl = de("skip-link-bg"), rA = {
+}, KT = {
+ baseStyle: XT
+}, Il = de("skip-link-bg"), ZT = {
borderRadius: "md",
fontWeight: "semibold",
_focusVisible: {
@@ -9740,15 +9979,15 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
position: "fixed",
top: "6",
insetStart: "6",
- [Nl.variable]: "colors.white",
+ [Il.variable]: "colors.white",
_dark: {
- [Nl.variable]: "colors.gray.700"
+ [Il.variable]: "colors.gray.700"
},
- bg: Nl.reference
+ bg: Il.reference
}
-}, nA = {
- baseStyle: rA
-}, { defineMultiStyleConfig: oA, definePartsStyle: qs } = Ke(VE.keys), Na = de("slider-thumb-size"), ja = de("slider-track-size"), pn = de("slider-bg"), aA = (e) => {
+}, JT = {
+ baseStyle: ZT
+}, { defineMultiStyleConfig: QT, definePartsStyle: Ys } = Ke(FE.keys), ja = de("slider-thumb-size"), Ba = de("slider-track-size"), hn = de("slider-bg"), eA = (e) => {
const { orientation: t } = e;
return {
display: "inline-block",
@@ -9759,35 +9998,35 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
cursor: "default",
pointerEvents: "none"
},
- ...qu({
+ ...Hu({
orientation: t,
vertical: { h: "100%" },
horizontal: { w: "100%" }
})
};
-}, iA = (e) => ({
- ...qu({
+}, tA = (e) => ({
+ ...Hu({
orientation: e.orientation,
- horizontal: { h: ja.reference },
- vertical: { w: ja.reference }
+ horizontal: { h: Ba.reference },
+ vertical: { w: Ba.reference }
}),
overflow: "hidden",
borderRadius: "sm",
- [pn.variable]: "colors.gray.200",
+ [hn.variable]: "colors.gray.200",
_dark: {
- [pn.variable]: "colors.whiteAlpha.200"
+ [hn.variable]: "colors.whiteAlpha.200"
},
_disabled: {
- [pn.variable]: "colors.gray.300",
+ [hn.variable]: "colors.gray.300",
_dark: {
- [pn.variable]: "colors.whiteAlpha.300"
+ [hn.variable]: "colors.whiteAlpha.300"
}
},
- bg: pn.reference
-}), sA = (e) => {
+ bg: hn.reference
+}), rA = (e) => {
const { orientation: t } = e;
return {
- ...qu({
+ ...Hu({
orientation: t,
vertical: {
left: "50%",
@@ -9804,8 +10043,8 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
}
}
}),
- w: Na.reference,
- h: Na.reference,
+ w: ja.reference,
+ h: ja.reference,
display: "flex",
alignItems: "center",
justifyContent: "center",
@@ -9826,110 +10065,110 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
bg: "gray.300"
}
};
-}, lA = (e) => {
+}, nA = (e) => {
const { colorScheme: t } = e;
return {
width: "inherit",
height: "inherit",
- [pn.variable]: `colors.${t}.500`,
+ [hn.variable]: `colors.${t}.500`,
_dark: {
- [pn.variable]: `colors.${t}.200`
+ [hn.variable]: `colors.${t}.200`
},
- bg: pn.reference
+ bg: hn.reference
};
-}, cA = qs((e) => ({
- container: aA(e),
- track: iA(e),
- thumb: sA(e),
- filledTrack: lA(e)
-})), uA = qs({
+}, oA = Ys((e) => ({
+ container: eA(e),
+ track: tA(e),
+ thumb: rA(e),
+ filledTrack: nA(e)
+})), aA = Ys({
container: {
- [Na.variable]: "sizes.4",
- [ja.variable]: "sizes.1"
+ [ja.variable]: "sizes.4",
+ [Ba.variable]: "sizes.1"
}
-}), dA = qs({
+}), iA = Ys({
container: {
- [Na.variable]: "sizes.3.5",
- [ja.variable]: "sizes.1"
+ [ja.variable]: "sizes.3.5",
+ [Ba.variable]: "sizes.1"
}
-}), fA = qs({
+}), sA = Ys({
container: {
- [Na.variable]: "sizes.2.5",
- [ja.variable]: "sizes.0.5"
- }
-}), pA = {
- lg: uA,
- md: dA,
- sm: fA
-}, hA = oA({
- baseStyle: cA,
- sizes: pA,
+ [ja.variable]: "sizes.2.5",
+ [Ba.variable]: "sizes.0.5"
+ }
+}), lA = {
+ lg: aA,
+ md: iA,
+ sm: sA
+}, cA = QT({
+ baseStyle: oA,
+ sizes: lA,
defaultProps: {
size: "md",
colorScheme: "blue"
}
-}), Dn = yt("spinner-size"), mA = {
- width: [Dn.reference],
- height: [Dn.reference]
-}, vA = {
+}), Mn = yt("spinner-size"), uA = {
+ width: [Mn.reference],
+ height: [Mn.reference]
+}, dA = {
xs: {
- [Dn.variable]: "sizes.3"
+ [Mn.variable]: "sizes.3"
},
sm: {
- [Dn.variable]: "sizes.4"
+ [Mn.variable]: "sizes.4"
},
md: {
- [Dn.variable]: "sizes.6"
+ [Mn.variable]: "sizes.6"
},
lg: {
- [Dn.variable]: "sizes.8"
+ [Mn.variable]: "sizes.8"
},
xl: {
- [Dn.variable]: "sizes.12"
+ [Mn.variable]: "sizes.12"
}
-}, gA = {
- baseStyle: mA,
- sizes: vA,
+}, fA = {
+ baseStyle: uA,
+ sizes: dA,
defaultProps: {
size: "md"
}
-}, { defineMultiStyleConfig: bA, definePartsStyle: _v } = Ke(LE.keys), yA = {
+}, { defineMultiStyleConfig: pA, definePartsStyle: wv } = Ke(NE.keys), hA = {
fontWeight: "medium"
-}, xA = {
+}, mA = {
opacity: 0.8,
marginBottom: "2"
-}, SA = {
+}, vA = {
verticalAlign: "baseline",
fontWeight: "semibold"
-}, wA = {
+}, gA = {
marginEnd: 1,
w: "3.5",
h: "3.5",
verticalAlign: "middle"
-}, CA = _v({
+}, bA = wv({
container: {},
- label: yA,
- helpText: xA,
- number: SA,
- icon: wA
-}), _A = {
- md: _v({
+ label: hA,
+ helpText: mA,
+ number: vA,
+ icon: gA
+}), yA = {
+ md: wv({
label: { fontSize: "sm" },
helpText: { fontSize: "sm" },
number: { fontSize: "2xl" }
})
-}, kA = bA({
- baseStyle: CA,
- sizes: _A,
+}, xA = pA({
+ baseStyle: bA,
+ sizes: yA,
defaultProps: {
size: "md"
}
-}), jl = de("kbd-bg"), EA = {
- [jl.variable]: "colors.gray.100",
+}), Fl = de("kbd-bg"), SA = {
+ [Fl.variable]: "colors.gray.100",
_dark: {
- [jl.variable]: "colors.whiteAlpha.100"
+ [Fl.variable]: "colors.whiteAlpha.100"
},
- bg: jl.reference,
+ bg: Fl.reference,
borderRadius: "md",
borderWidth: "1px",
borderBottomWidth: "3px",
@@ -9938,9 +10177,9 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
lineHeight: "normal",
px: "0.4em",
whiteSpace: "nowrap"
-}, PA = {
- baseStyle: EA
-}, TA = {
+}, wA = {
+ baseStyle: SA
+}, CA = {
transitionProperty: "common",
transitionDuration: "fast",
transitionTimingFunction: "ease-out",
@@ -9954,22 +10193,22 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
_focusVisible: {
boxShadow: "outline"
}
-}, AA = {
- baseStyle: TA
-}, { defineMultiStyleConfig: OA, definePartsStyle: $A } = Ke(DE.keys), RA = {
+}, _A = {
+ baseStyle: CA
+}, { defineMultiStyleConfig: kA, definePartsStyle: EA } = Ke(TE.keys), PA = {
marginEnd: "2",
display: "inline",
verticalAlign: "text-bottom"
-}, DA = $A({
- icon: RA
-}), MA = OA({
- baseStyle: DA
-}), { defineMultiStyleConfig: IA, definePartsStyle: FA } = Ke(ME.keys), Or = de("menu-bg"), Bl = de("menu-shadow"), NA = {
- [Or.variable]: "#fff",
- [Bl.variable]: "shadows.sm",
+}, TA = EA({
+ icon: PA
+}), AA = kA({
+ baseStyle: TA
+}), { defineMultiStyleConfig: OA, definePartsStyle: RA } = Ke(AE.keys), Rr = de("menu-bg"), Nl = de("menu-shadow"), $A = {
+ [Rr.variable]: "#fff",
+ [Nl.variable]: "shadows.sm",
_dark: {
- [Or.variable]: "colors.gray.700",
- [Bl.variable]: "shadows.dark-lg"
+ [Rr.variable]: "colors.gray.700",
+ [Nl.variable]: "shadows.dark-lg"
},
color: "inherit",
minW: "3xs",
@@ -9977,72 +10216,72 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
zIndex: 1,
borderRadius: "md",
borderWidth: "1px",
- bg: Or.reference,
- boxShadow: Bl.reference
-}, jA = {
+ bg: Rr.reference,
+ boxShadow: Nl.reference
+}, DA = {
py: "1.5",
px: "3",
transitionProperty: "background",
transitionDuration: "ultra-fast",
transitionTimingFunction: "ease-in",
_focus: {
- [Or.variable]: "colors.gray.100",
+ [Rr.variable]: "colors.gray.100",
_dark: {
- [Or.variable]: "colors.whiteAlpha.100"
+ [Rr.variable]: "colors.whiteAlpha.100"
}
},
_active: {
- [Or.variable]: "colors.gray.200",
+ [Rr.variable]: "colors.gray.200",
_dark: {
- [Or.variable]: "colors.whiteAlpha.200"
+ [Rr.variable]: "colors.whiteAlpha.200"
}
},
_expanded: {
- [Or.variable]: "colors.gray.100",
+ [Rr.variable]: "colors.gray.100",
_dark: {
- [Or.variable]: "colors.whiteAlpha.100"
+ [Rr.variable]: "colors.whiteAlpha.100"
}
},
_disabled: {
opacity: 0.4,
cursor: "not-allowed"
},
- bg: Or.reference
-}, BA = {
+ bg: Rr.reference
+}, MA = {
mx: 4,
my: 2,
fontWeight: "semibold",
fontSize: "sm"
-}, zA = {
+}, IA = {
display: "inline-flex",
alignItems: "center",
justifyContent: "center",
flexShrink: 0
-}, VA = {
+}, FA = {
opacity: 0.6
-}, LA = {
+}, NA = {
border: 0,
borderBottom: "1px solid",
borderColor: "inherit",
my: "2",
opacity: 0.6
-}, WA = {
+}, jA = {
transitionProperty: "common",
transitionDuration: "normal"
-}, UA = FA({
- button: WA,
- list: NA,
- item: jA,
- groupTitle: BA,
- icon: zA,
- command: VA,
- divider: LA
-}), HA = IA({
- baseStyle: UA
-}), { defineMultiStyleConfig: YA, definePartsStyle: Uc } = Ke(IE.keys), zl = de("modal-bg"), Vl = de("modal-shadow"), qA = {
+}, BA = RA({
+ button: jA,
+ list: $A,
+ item: DA,
+ groupTitle: MA,
+ icon: IA,
+ command: FA,
+ divider: NA
+}), zA = OA({
+ baseStyle: BA
+}), { defineMultiStyleConfig: VA, definePartsStyle: Wc } = Ke(OE.keys), jl = de("modal-bg"), Bl = de("modal-shadow"), LA = {
bg: "blackAlpha.600",
zIndex: "modal"
-}, GA = (e) => {
+}, WA = (e) => {
const { isCentered: t, scrollBehavior: r } = e;
return {
display: "flex",
@@ -10052,7 +10291,7 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
overflow: r === "inside" ? "hidden" : "auto",
overscrollBehaviorY: "none"
};
-}, XA = (e) => {
+}, UA = (e) => {
const { isCentered: t, scrollBehavior: r } = e;
return {
borderRadius: "md",
@@ -10061,25 +10300,25 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
mx: t ? "auto" : void 0,
zIndex: "modal",
maxH: r === "inside" ? "calc(100% - 7.5rem)" : void 0,
- [zl.variable]: "colors.white",
- [Vl.variable]: "shadows.lg",
+ [jl.variable]: "colors.white",
+ [Bl.variable]: "shadows.lg",
_dark: {
- [zl.variable]: "colors.gray.700",
- [Vl.variable]: "shadows.dark-lg"
+ [jl.variable]: "colors.gray.700",
+ [Bl.variable]: "shadows.dark-lg"
},
- bg: zl.reference,
- boxShadow: Vl.reference
+ bg: jl.reference,
+ boxShadow: Bl.reference
};
-}, KA = {
+}, HA = {
px: "6",
py: "4",
fontSize: "xl",
fontWeight: "semibold"
-}, ZA = {
+}, YA = {
position: "absolute",
top: "2",
insetEnd: "3"
-}, JA = (e) => {
+}, qA = (e) => {
const { scrollBehavior: t } = e;
return {
px: "6",
@@ -10087,20 +10326,20 @@ var { definePartsStyle: Xi, defineMultiStyleConfig: IT } = Ke(PE.keys), ha = de(
flex: "1",
overflow: t === "inside" ? "auto" : void 0
};
-}, QA = {
+}, GA = {
px: "6",
py: "4"
-}, eO = Uc((e) => ({
- overlay: qA,
- dialogContainer: Mt(GA, e),
- dialog: Mt(XA, e),
- header: KA,
- closeButton: ZA,
- body: Mt(JA, e),
- footer: QA
+}, XA = Wc((e) => ({
+ overlay: LA,
+ dialogContainer: Mt(WA, e),
+ dialog: Mt(UA, e),
+ header: HA,
+ closeButton: YA,
+ body: Mt(qA, e),
+ footer: GA
}));
function pr(e) {
- return Uc(e === "full" ? {
+ return Wc(e === "full" ? {
dialog: {
maxW: "100vw",
minH: "$100vh",
@@ -10111,7 +10350,7 @@ function pr(e) {
dialog: { maxW: e }
});
}
-var tO = {
+var KA = {
xs: pr("xs"),
sm: pr("sm"),
md: pr("md"),
@@ -10123,46 +10362,46 @@ var tO = {
"5xl": pr("5xl"),
"6xl": pr("6xl"),
full: pr("full")
-}, rO = YA({
- baseStyle: eO,
- sizes: tO,
+}, ZA = VA({
+ baseStyle: XA,
+ sizes: KA,
defaultProps: { size: "md" }
-}), { defineMultiStyleConfig: nO, definePartsStyle: kv } = Ke(FE.keys), Xu = yt("number-input-stepper-width"), Ev = yt("number-input-input-padding"), oO = Yr(Xu).add("0.5rem").toString(), Ll = yt("number-input-bg"), Wl = yt("number-input-color"), Ul = yt("number-input-border-color"), aO = {
- [Xu.variable]: "sizes.6",
- [Ev.variable]: oO
-}, iO = (e) => {
+}), { defineMultiStyleConfig: JA, definePartsStyle: Cv } = Ke(RE.keys), qu = yt("number-input-stepper-width"), _v = yt("number-input-input-padding"), QA = qr(qu).add("0.5rem").toString(), zl = yt("number-input-bg"), Vl = yt("number-input-color"), Ll = yt("number-input-border-color"), eO = {
+ [qu.variable]: "sizes.6",
+ [_v.variable]: QA
+}, tO = (e) => {
var t, r;
return (r = (t = Mt(Ve.baseStyle, e)) == null ? void 0 : t.field) != null ? r : {};
-}, sO = {
- width: Xu.reference
-}, lO = {
+}, rO = {
+ width: qu.reference
+}, nO = {
borderStart: "1px solid",
- borderStartColor: Ul.reference,
- color: Wl.reference,
- bg: Ll.reference,
- [Wl.variable]: "colors.chakra-body-text",
- [Ul.variable]: "colors.chakra-border-color",
+ borderStartColor: Ll.reference,
+ color: Vl.reference,
+ bg: zl.reference,
+ [Vl.variable]: "colors.chakra-body-text",
+ [Ll.variable]: "colors.chakra-border-color",
_dark: {
- [Wl.variable]: "colors.whiteAlpha.800",
- [Ul.variable]: "colors.whiteAlpha.300"
+ [Vl.variable]: "colors.whiteAlpha.800",
+ [Ll.variable]: "colors.whiteAlpha.300"
},
_active: {
- [Ll.variable]: "colors.gray.200",
+ [zl.variable]: "colors.gray.200",
_dark: {
- [Ll.variable]: "colors.whiteAlpha.300"
+ [zl.variable]: "colors.whiteAlpha.300"
}
},
_disabled: {
opacity: 0.4,
cursor: "not-allowed"
}
-}, cO = kv((e) => {
+}, oO = Cv((e) => {
var t;
return {
- root: aO,
- field: (t = Mt(iO, e)) != null ? t : {},
- stepperGroup: sO,
- stepper: lO
+ root: eO,
+ field: (t = Mt(tO, e)) != null ? t : {},
+ stepperGroup: rO,
+ stepper: nO
};
});
function Pi(e) {
@@ -10172,15 +10411,15 @@ function Pi(e) {
md: "md",
sm: "sm",
xs: "sm"
- }, i = (n = (r = o.field) == null ? void 0 : r.fontSize) != null ? n : "md", s = bv.fontSizes[i];
- return kv({
+ }, i = (n = (r = o.field) == null ? void 0 : r.fontSize) != null ? n : "md", s = vv.fontSizes[i];
+ return Cv({
field: {
...o.field,
- paddingInlineEnd: Ev.reference,
+ paddingInlineEnd: _v.reference,
verticalAlign: "top"
},
stepper: {
- fontSize: Yr(s).multiply(0.75).toString(),
+ fontSize: qr(s).multiply(0.75).toString(),
_first: {
borderTopEndRadius: a[e]
},
@@ -10192,20 +10431,20 @@ function Pi(e) {
}
});
}
-var uO = {
+var aO = {
xs: Pi("xs"),
sm: Pi("sm"),
md: Pi("md"),
lg: Pi("lg")
-}, dO = nO({
- baseStyle: cO,
- sizes: uO,
+}, iO = JA({
+ baseStyle: oO,
+ sizes: aO,
variants: Ve.variants,
defaultProps: Ve.defaultProps
-}), wp, fO = {
- ...(wp = Ve.baseStyle) == null ? void 0 : wp.field,
+}), Sp, sO = {
+ ...(Sp = Ve.baseStyle) == null ? void 0 : Sp.field,
textAlign: "center"
-}, pO = {
+}, lO = {
lg: {
fontSize: "lg",
w: 12,
@@ -10230,7 +10469,7 @@ var uO = {
h: 6,
borderRadius: "sm"
}
-}, Cp, _p, hO = {
+}, wp, Cp, cO = {
outline: (e) => {
var t, r, n;
return (n = (r = Mt((t = Ve.variants) == null ? void 0 : t.outline, e)) == null ? void 0 : r.field) != null ? n : {};
@@ -10243,20 +10482,20 @@ var uO = {
var t, r, n;
return (n = (r = Mt((t = Ve.variants) == null ? void 0 : t.filled, e)) == null ? void 0 : r.field) != null ? n : {};
},
- unstyled: (_p = (Cp = Ve.variants) == null ? void 0 : Cp.unstyled.field) != null ? _p : {}
-}, mO = {
- baseStyle: fO,
- sizes: pO,
- variants: hO,
+ unstyled: (Cp = (wp = Ve.variants) == null ? void 0 : wp.unstyled.field) != null ? Cp : {}
+}, uO = {
+ baseStyle: sO,
+ sizes: lO,
+ variants: cO,
defaultProps: Ve.defaultProps
-}, { defineMultiStyleConfig: vO, definePartsStyle: gO } = Ke(NE.keys), Ti = yt("popper-bg"), bO = yt("popper-arrow-bg"), kp = yt("popper-arrow-shadow-color"), yO = { zIndex: 10 }, xO = {
+}, { defineMultiStyleConfig: dO, definePartsStyle: fO } = Ke($E.keys), Ti = yt("popper-bg"), pO = yt("popper-arrow-bg"), _p = yt("popper-arrow-shadow-color"), hO = { zIndex: 10 }, mO = {
[Ti.variable]: "colors.white",
bg: Ti.reference,
- [bO.variable]: Ti.reference,
- [kp.variable]: "colors.gray.200",
+ [pO.variable]: Ti.reference,
+ [_p.variable]: "colors.gray.200",
_dark: {
[Ti.variable]: "colors.gray.700",
- [kp.variable]: "colors.whiteAlpha.300"
+ [_p.variable]: "colors.whiteAlpha.300"
},
width: "xs",
border: "1px solid",
@@ -10268,107 +10507,107 @@ var uO = {
outline: 0,
boxShadow: "outline"
}
-}, SO = {
+}, vO = {
px: 3,
py: 2,
borderBottomWidth: "1px"
-}, wO = {
+}, gO = {
px: 3,
py: 2
-}, CO = {
+}, bO = {
px: 3,
py: 2,
borderTopWidth: "1px"
-}, _O = {
+}, yO = {
position: "absolute",
borderRadius: "md",
top: 1,
insetEnd: 2,
padding: 2
-}, kO = gO({
- popper: yO,
- content: xO,
- header: SO,
- body: wO,
- footer: CO,
- closeButton: _O
-}), EO = vO({
- baseStyle: kO
-}), { definePartsStyle: Hc, defineMultiStyleConfig: PO } = Ke(TE.keys), Hl = de("drawer-bg"), Yl = de("drawer-box-shadow");
-function Xn(e) {
- return Hc(e === "full" ? {
+}, xO = fO({
+ popper: hO,
+ content: mO,
+ header: vO,
+ body: gO,
+ footer: bO,
+ closeButton: yO
+}), SO = dO({
+ baseStyle: xO
+}), { definePartsStyle: Uc, defineMultiStyleConfig: wO } = Ke(CE.keys), Wl = de("drawer-bg"), Ul = de("drawer-box-shadow");
+function Zn(e) {
+ return Uc(e === "full" ? {
dialog: { maxW: "100vw", h: "100vh" }
} : {
dialog: { maxW: e }
});
}
-var TO = {
+var CO = {
bg: "blackAlpha.600",
- zIndex: "overlay"
-}, AO = {
+ zIndex: "modal"
+}, _O = {
display: "flex",
zIndex: "modal",
justifyContent: "center"
-}, OO = (e) => {
+}, kO = (e) => {
const { isFullHeight: t } = e;
return {
...t && { height: "100vh" },
zIndex: "modal",
maxH: "100vh",
color: "inherit",
- [Hl.variable]: "colors.white",
- [Yl.variable]: "shadows.lg",
+ [Wl.variable]: "colors.white",
+ [Ul.variable]: "shadows.lg",
_dark: {
- [Hl.variable]: "colors.gray.700",
- [Yl.variable]: "shadows.dark-lg"
+ [Wl.variable]: "colors.gray.700",
+ [Ul.variable]: "shadows.dark-lg"
},
- bg: Hl.reference,
- boxShadow: Yl.reference
+ bg: Wl.reference,
+ boxShadow: Ul.reference
};
-}, $O = {
+}, EO = {
px: "6",
py: "4",
fontSize: "xl",
fontWeight: "semibold"
-}, RO = {
+}, PO = {
position: "absolute",
top: "2",
insetEnd: "3"
-}, DO = {
+}, TO = {
px: "6",
py: "2",
flex: "1",
overflow: "auto"
-}, MO = {
+}, AO = {
px: "6",
py: "4"
-}, IO = Hc((e) => ({
- overlay: TO,
- dialogContainer: AO,
- dialog: Mt(OO, e),
- header: $O,
- closeButton: RO,
- body: DO,
- footer: MO
-})), FO = {
- xs: Xn("xs"),
- sm: Xn("md"),
- md: Xn("lg"),
- lg: Xn("2xl"),
- xl: Xn("4xl"),
- full: Xn("full")
-}, NO = PO({
- baseStyle: IO,
- sizes: FO,
+}, OO = Uc((e) => ({
+ overlay: CO,
+ dialogContainer: _O,
+ dialog: Mt(kO, e),
+ header: EO,
+ closeButton: PO,
+ body: TO,
+ footer: AO
+})), RO = {
+ xs: Zn("xs"),
+ sm: Zn("md"),
+ md: Zn("lg"),
+ lg: Zn("2xl"),
+ xl: Zn("4xl"),
+ full: Zn("full")
+}, $O = wO({
+ baseStyle: OO,
+ sizes: RO,
defaultProps: {
size: "xs"
}
-}), { definePartsStyle: jO, defineMultiStyleConfig: BO } = Ke(AE.keys), zO = {
+}), { definePartsStyle: DO, defineMultiStyleConfig: MO } = Ke(_E.keys), IO = {
borderRadius: "md",
py: "1",
transitionProperty: "common",
transitionDuration: "normal"
-}, VO = {
+}, FO = {
borderRadius: "md",
py: "1",
transitionProperty: "common",
@@ -10376,7 +10615,7 @@ var TO = {
width: "full",
_focusVisible: { boxShadow: "outline" },
_placeholder: { opacity: 0.6 }
-}, LO = {
+}, NO = {
borderRadius: "md",
py: "1",
transitionProperty: "common",
@@ -10384,59 +10623,59 @@ var TO = {
width: "full",
_focusVisible: { boxShadow: "outline" },
_placeholder: { opacity: 0.6 }
-}, WO = jO({
- preview: zO,
- input: VO,
- textarea: LO
-}), UO = BO({
- baseStyle: WO
-}), { definePartsStyle: HO, defineMultiStyleConfig: YO } = Ke(OE.keys), vo = de("form-control-color"), qO = {
+}, jO = DO({
+ preview: IO,
+ input: FO,
+ textarea: NO
+}), BO = MO({
+ baseStyle: jO
+}), { definePartsStyle: zO, defineMultiStyleConfig: VO } = Ke(kE.keys), go = de("form-control-color"), LO = {
marginStart: "1",
- [vo.variable]: "colors.red.500",
+ [go.variable]: "colors.red.500",
_dark: {
- [vo.variable]: "colors.red.300"
+ [go.variable]: "colors.red.300"
},
- color: vo.reference
-}, GO = {
+ color: go.reference
+}, WO = {
mt: "2",
- [vo.variable]: "colors.gray.600",
+ [go.variable]: "colors.gray.600",
_dark: {
- [vo.variable]: "colors.whiteAlpha.600"
+ [go.variable]: "colors.whiteAlpha.600"
},
- color: vo.reference,
+ color: go.reference,
lineHeight: "normal",
fontSize: "sm"
-}, XO = HO({
+}, UO = zO({
container: {
width: "100%",
position: "relative"
},
- requiredIndicator: qO,
- helperText: GO
-}), KO = YO({
- baseStyle: XO
-}), { definePartsStyle: ZO, defineMultiStyleConfig: JO } = Ke($E.keys), go = de("form-error-color"), QO = {
- [go.variable]: "colors.red.500",
+ requiredIndicator: LO,
+ helperText: WO
+}), HO = VO({
+ baseStyle: UO
+}), { definePartsStyle: YO, defineMultiStyleConfig: qO } = Ke(EE.keys), bo = de("form-error-color"), GO = {
+ [bo.variable]: "colors.red.500",
_dark: {
- [go.variable]: "colors.red.300"
+ [bo.variable]: "colors.red.300"
},
- color: go.reference,
+ color: bo.reference,
mt: "2",
fontSize: "sm",
lineHeight: "normal"
-}, e$ = {
+}, XO = {
marginEnd: "0.5em",
- [go.variable]: "colors.red.500",
+ [bo.variable]: "colors.red.500",
_dark: {
- [go.variable]: "colors.red.300"
- },
- color: go.reference
-}, t$ = ZO({
- text: QO,
- icon: e$
-}), r$ = JO({
- baseStyle: t$
-}), n$ = {
+ [bo.variable]: "colors.red.300"
+ },
+ color: bo.reference
+}, KO = YO({
+ text: GO,
+ icon: XO
+}), ZO = qO({
+ baseStyle: KO
+}), JO = {
fontSize: "md",
marginEnd: "3",
mb: "2",
@@ -10447,12 +10686,12 @@ var TO = {
_disabled: {
opacity: 0.4
}
-}, o$ = {
- baseStyle: n$
-}, a$ = {
+}, QO = {
+ baseStyle: JO
+}, eR = {
fontFamily: "heading",
fontWeight: "bold"
-}, i$ = {
+}, tR = {
"4xl": {
fontSize: ["6xl", null, "7xl"],
lineHeight: 1
@@ -10485,34 +10724,34 @@ var TO = {
fontSize: "sm",
lineHeight: 1.2
}
-}, s$ = {
- baseStyle: a$,
- sizes: i$,
+}, rR = {
+ baseStyle: eR,
+ sizes: tR,
defaultProps: {
size: "xl"
}
-}, { defineMultiStyleConfig: l$, definePartsStyle: c$ } = Ke(EE.keys), ql = de("breadcrumb-link-decor"), u$ = {
+}, { defineMultiStyleConfig: nR, definePartsStyle: oR } = Ke(SE.keys), Hl = de("breadcrumb-link-decor"), aR = {
transitionProperty: "common",
transitionDuration: "fast",
transitionTimingFunction: "ease-out",
outline: "none",
color: "inherit",
- textDecoration: ql.reference,
- [ql.variable]: "none",
+ textDecoration: Hl.reference,
+ [Hl.variable]: "none",
"&:not([aria-current=page])": {
cursor: "pointer",
_hover: {
- [ql.variable]: "underline"
+ [Hl.variable]: "underline"
},
_focusVisible: {
boxShadow: "outline"
}
}
-}, d$ = c$({
- link: u$
-}), f$ = l$({
- baseStyle: d$
-}), p$ = {
+}, iR = oR({
+ link: aR
+}), sR = nR({
+ baseStyle: iR
+}), lR = {
lineHeight: "1.2",
borderRadius: "md",
fontWeight: "semibold",
@@ -10531,7 +10770,7 @@ var TO = {
bg: "initial"
}
}
-}, Pv = (e) => {
+}, kv = (e) => {
const { colorScheme: t, theme: r } = e;
if (t === "gray")
return {
@@ -10541,7 +10780,7 @@ var TO = {
},
_active: { bg: ue("gray.200", "whiteAlpha.300")(e) }
};
- const n = To(`${t}.200`, 0.12)(r), o = To(`${t}.200`, 0.24)(r);
+ const n = Ao(`${t}.200`, 0.12)(r), o = Ao(`${t}.200`, 0.24)(r);
return {
color: ue(`${t}.600`, `${t}.200`)(e),
bg: "transparent",
@@ -10552,16 +10791,16 @@ var TO = {
bg: ue(`${t}.100`, o)(e)
}
};
-}, h$ = (e) => {
+}, cR = (e) => {
const { colorScheme: t } = e, r = ue("gray.200", "whiteAlpha.300")(e);
return {
border: "1px solid",
borderColor: t === "gray" ? r : "currentColor",
".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)": { marginEnd: "-1px" },
".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)": { marginBottom: "-1px" },
- ...Mt(Pv, e)
+ ...Mt(kv, e)
};
-}, m$ = {
+}, uR = {
yellow: {
bg: "yellow.400",
color: "black",
@@ -10574,7 +10813,7 @@ var TO = {
hoverBg: "cyan.500",
activeBg: "cyan.600"
}
-}, v$ = (e) => {
+}, dR = (e) => {
var t;
const { colorScheme: r } = e;
if (r === "gray") {
@@ -10596,7 +10835,7 @@ var TO = {
color: o = "white",
hoverBg: a = `${r}.600`,
activeBg: i = `${r}.700`
- } = (t = m$[r]) != null ? t : {}, s = ue(n, `${r}.200`)(e);
+ } = (t = uR[r]) != null ? t : {}, s = ue(n, `${r}.200`)(e);
return {
bg: s,
color: ue(o, "gray.800")(e),
@@ -10608,7 +10847,7 @@ var TO = {
},
_active: { bg: ue(i, `${r}.400`)(e) }
};
-}, g$ = (e) => {
+}, fR = (e) => {
const { colorScheme: t } = e;
return {
padding: 0,
@@ -10626,20 +10865,20 @@ var TO = {
color: ue(`${t}.700`, `${t}.500`)(e)
}
};
-}, b$ = {
+}, pR = {
bg: "none",
color: "inherit",
display: "inline",
lineHeight: "inherit",
m: "0",
p: "0"
-}, y$ = {
- ghost: Pv,
- outline: h$,
- solid: v$,
- link: g$,
- unstyled: b$
-}, x$ = {
+}, hR = {
+ ghost: kv,
+ outline: cR,
+ solid: dR,
+ link: fR,
+ unstyled: pR
+}, mR = {
lg: {
h: "12",
minW: "12",
@@ -10664,96 +10903,96 @@ var TO = {
fontSize: "xs",
px: "2"
}
-}, S$ = {
- baseStyle: p$,
- variants: y$,
- sizes: x$,
+}, vR = {
+ baseStyle: lR,
+ variants: hR,
+ sizes: mR,
defaultProps: {
variant: "solid",
size: "md",
colorScheme: "gray"
}
-}, { definePartsStyle: Bn, defineMultiStyleConfig: w$ } = Ke(qE.keys), vs = de("card-bg"), Xr = de("card-padding"), Tv = de("card-shadow"), Zi = de("card-radius"), Av = de("card-border-width", "0"), Ov = de("card-border-color"), C$ = Bn({
+}, { definePartsStyle: zn, defineMultiStyleConfig: gR } = Ke(LE.keys), ms = de("card-bg"), Kr = de("card-padding"), Ev = de("card-shadow"), Zi = de("card-radius"), Pv = de("card-border-width", "0"), Tv = de("card-border-color"), bR = zn({
container: {
- [vs.variable]: "colors.chakra-body-bg",
- backgroundColor: vs.reference,
- boxShadow: Tv.reference,
+ [ms.variable]: "colors.chakra-body-bg",
+ backgroundColor: ms.reference,
+ boxShadow: Ev.reference,
borderRadius: Zi.reference,
color: "chakra-body-text",
- borderWidth: Av.reference,
- borderColor: Ov.reference
+ borderWidth: Pv.reference,
+ borderColor: Tv.reference
},
body: {
- padding: Xr.reference,
+ padding: Kr.reference,
flex: "1 1 0%"
},
header: {
- padding: Xr.reference
+ padding: Kr.reference
},
footer: {
- padding: Xr.reference
+ padding: Kr.reference
}
-}), _$ = {
- sm: Bn({
+}), yR = {
+ sm: zn({
container: {
[Zi.variable]: "radii.base",
- [Xr.variable]: "space.3"
+ [Kr.variable]: "space.3"
}
}),
- md: Bn({
+ md: zn({
container: {
[Zi.variable]: "radii.md",
- [Xr.variable]: "space.5"
+ [Kr.variable]: "space.5"
}
}),
- lg: Bn({
+ lg: zn({
container: {
[Zi.variable]: "radii.xl",
- [Xr.variable]: "space.7"
+ [Kr.variable]: "space.7"
}
})
-}, k$ = {
- elevated: Bn({
+}, xR = {
+ elevated: zn({
container: {
- [Tv.variable]: "shadows.base",
+ [Ev.variable]: "shadows.base",
_dark: {
- [vs.variable]: "colors.gray.700"
+ [ms.variable]: "colors.gray.700"
}
}
}),
- outline: Bn({
+ outline: zn({
container: {
- [Av.variable]: "1px",
- [Ov.variable]: "colors.chakra-border-color"
+ [Pv.variable]: "1px",
+ [Tv.variable]: "colors.chakra-border-color"
}
}),
- filled: Bn({
+ filled: zn({
container: {
- [vs.variable]: "colors.chakra-subtle-bg"
+ [ms.variable]: "colors.chakra-subtle-bg"
}
}),
unstyled: {
body: {
- [Xr.variable]: 0
+ [Kr.variable]: 0
},
header: {
- [Xr.variable]: 0
+ [Kr.variable]: 0
},
footer: {
- [Xr.variable]: 0
+ [Kr.variable]: 0
}
}
-}, E$ = w$({
- baseStyle: C$,
- variants: k$,
- sizes: _$,
+}, SR = gR({
+ baseStyle: bR,
+ variants: xR,
+ sizes: yR,
defaultProps: {
variant: "elevated",
size: "md"
}
-}), ma = yt("close-button-size"), Zo = yt("close-button-bg"), P$ = {
- w: [ma.reference],
- h: [ma.reference],
+}), ga = yt("close-button-size"), Jo = yt("close-button-bg"), wR = {
+ w: [ga.reference],
+ h: [ga.reference],
borderRadius: "md",
transitionProperty: "common",
transitionDuration: "normal",
@@ -10763,41 +11002,41 @@ var TO = {
boxShadow: "none"
},
_hover: {
- [Zo.variable]: "colors.blackAlpha.100",
+ [Jo.variable]: "colors.blackAlpha.100",
_dark: {
- [Zo.variable]: "colors.whiteAlpha.100"
+ [Jo.variable]: "colors.whiteAlpha.100"
}
},
_active: {
- [Zo.variable]: "colors.blackAlpha.200",
+ [Jo.variable]: "colors.blackAlpha.200",
_dark: {
- [Zo.variable]: "colors.whiteAlpha.200"
+ [Jo.variable]: "colors.whiteAlpha.200"
}
},
_focusVisible: {
boxShadow: "outline"
},
- bg: Zo.reference
-}, T$ = {
+ bg: Jo.reference
+}, CR = {
lg: {
- [ma.variable]: "sizes.10",
+ [ga.variable]: "sizes.10",
fontSize: "md"
},
md: {
- [ma.variable]: "sizes.8",
+ [ga.variable]: "sizes.8",
fontSize: "xs"
},
sm: {
- [ma.variable]: "sizes.6",
+ [ga.variable]: "sizes.6",
fontSize: "2xs"
}
-}, A$ = {
- baseStyle: P$,
- sizes: T$,
+}, _R = {
+ baseStyle: wR,
+ sizes: CR,
defaultProps: {
size: "md"
}
-}, { variants: O$, defaultProps: $$ } = pa, R$ = {
+}, { variants: kR, defaultProps: ER } = ma, PR = {
fontFamily: "mono",
fontSize: "sm",
px: "0.2em",
@@ -10805,40 +11044,40 @@ var TO = {
bg: pt.bg.reference,
color: pt.color.reference,
boxShadow: pt.shadow.reference
-}, D$ = {
- baseStyle: R$,
- variants: O$,
- defaultProps: $$
-}, M$ = {
+}, TR = {
+ baseStyle: PR,
+ variants: kR,
+ defaultProps: ER
+}, AR = {
w: "100%",
mx: "auto",
maxW: "prose",
px: "4"
-}, I$ = {
- baseStyle: M$
-}, F$ = {
+}, OR = {
+ baseStyle: AR
+}, RR = {
opacity: 0.6,
borderColor: "inherit"
-}, N$ = {
+}, $R = {
borderStyle: "solid"
-}, j$ = {
+}, DR = {
borderStyle: "dashed"
-}, B$ = {
- solid: N$,
- dashed: j$
-}, z$ = {
- baseStyle: F$,
- variants: B$,
+}, MR = {
+ solid: $R,
+ dashed: DR
+}, IR = {
+ baseStyle: RR,
+ variants: MR,
defaultProps: {
variant: "solid"
}
-}, { definePartsStyle: V$, defineMultiStyleConfig: L$ } = Ke(CE.keys), W$ = {
+}, { definePartsStyle: FR, defineMultiStyleConfig: NR } = Ke(bE.keys), jR = {
borderTopWidth: "1px",
borderColor: "inherit",
_last: {
borderBottomWidth: "1px"
}
-}, U$ = {
+}, BR = {
transitionProperty: "common",
transitionDuration: "normal",
fontSize: "md",
@@ -10854,20 +11093,20 @@ var TO = {
},
px: "4",
py: "2"
-}, H$ = {
+}, zR = {
pt: "2",
px: "4",
pb: "5"
-}, Y$ = {
+}, VR = {
fontSize: "1.25em"
-}, q$ = V$({
- container: W$,
- button: U$,
- panel: H$,
- icon: Y$
-}), G$ = L$({ baseStyle: q$ }), { definePartsStyle: ei, defineMultiStyleConfig: X$ } = Ke(_E.keys), Zt = de("alert-fg"), tn = de("alert-bg"), K$ = ei({
+}, LR = FR({
+ container: jR,
+ button: BR,
+ panel: zR,
+ icon: VR
+}), WR = NR({ baseStyle: LR }), { definePartsStyle: ei, defineMultiStyleConfig: UR } = Ke(yE.keys), Zt = de("alert-fg"), rn = de("alert-bg"), HR = ei({
container: {
- bg: tn.reference,
+ bg: rn.reference,
px: "4",
py: "3"
},
@@ -10894,198 +11133,198 @@ var TO = {
h: "5"
}
});
-function Ku(e) {
- const { theme: t, colorScheme: r } = e, n = To(`${r}.200`, 0.16)(t);
+function Gu(e) {
+ const { theme: t, colorScheme: r } = e, n = Ao(`${r}.200`, 0.16)(t);
return {
light: `colors.${r}.100`,
dark: n
};
}
-var Z$ = ei((e) => {
- const { colorScheme: t } = e, r = Ku(e);
+var YR = ei((e) => {
+ const { colorScheme: t } = e, r = Gu(e);
return {
container: {
- [Zt.variable]: `colors.${t}.500`,
- [tn.variable]: r.light,
+ [Zt.variable]: `colors.${t}.600`,
+ [rn.variable]: r.light,
_dark: {
[Zt.variable]: `colors.${t}.200`,
- [tn.variable]: r.dark
+ [rn.variable]: r.dark
}
}
};
-}), J$ = ei((e) => {
- const { colorScheme: t } = e, r = Ku(e);
+}), qR = ei((e) => {
+ const { colorScheme: t } = e, r = Gu(e);
return {
container: {
- [Zt.variable]: `colors.${t}.500`,
- [tn.variable]: r.light,
+ [Zt.variable]: `colors.${t}.600`,
+ [rn.variable]: r.light,
_dark: {
[Zt.variable]: `colors.${t}.200`,
- [tn.variable]: r.dark
+ [rn.variable]: r.dark
},
paddingStart: "3",
borderStartWidth: "4px",
borderStartColor: Zt.reference
}
};
-}), Q$ = ei((e) => {
- const { colorScheme: t } = e, r = Ku(e);
+}), GR = ei((e) => {
+ const { colorScheme: t } = e, r = Gu(e);
return {
container: {
- [Zt.variable]: `colors.${t}.500`,
- [tn.variable]: r.light,
+ [Zt.variable]: `colors.${t}.600`,
+ [rn.variable]: r.light,
_dark: {
[Zt.variable]: `colors.${t}.200`,
- [tn.variable]: r.dark
+ [rn.variable]: r.dark
},
pt: "2",
borderTopWidth: "4px",
borderTopColor: Zt.reference
}
};
-}), eR = ei((e) => {
+}), XR = ei((e) => {
const { colorScheme: t } = e;
return {
container: {
[Zt.variable]: "colors.white",
- [tn.variable]: `colors.${t}.500`,
+ [rn.variable]: `colors.${t}.600`,
_dark: {
[Zt.variable]: "colors.gray.900",
- [tn.variable]: `colors.${t}.200`
+ [rn.variable]: `colors.${t}.200`
},
color: Zt.reference
}
};
-}), tR = {
- subtle: Z$,
- "left-accent": J$,
- "top-accent": Q$,
- solid: eR
-}, rR = X$({
- baseStyle: K$,
- variants: tR,
+}), KR = {
+ subtle: YR,
+ "left-accent": qR,
+ "top-accent": GR,
+ solid: XR
+}, ZR = UR({
+ baseStyle: HR,
+ variants: KR,
defaultProps: {
variant: "subtle",
colorScheme: "blue"
}
-}), { definePartsStyle: $v, defineMultiStyleConfig: nR } = Ke(kE.keys), bo = de("avatar-border-color"), va = de("avatar-bg"), Ba = de("avatar-font-size"), Ao = de("avatar-size"), oR = {
+}), { definePartsStyle: Av, defineMultiStyleConfig: JR } = Ke(xE.keys), yo = de("avatar-border-color"), ba = de("avatar-bg"), za = de("avatar-font-size"), Oo = de("avatar-size"), QR = {
borderRadius: "full",
border: "0.2em solid",
- borderColor: bo.reference,
- [bo.variable]: "white",
+ borderColor: yo.reference,
+ [yo.variable]: "white",
_dark: {
- [bo.variable]: "colors.gray.800"
+ [yo.variable]: "colors.gray.800"
}
-}, aR = {
- bg: va.reference,
- fontSize: Ba.reference,
- width: Ao.reference,
- height: Ao.reference,
+}, e$ = {
+ bg: ba.reference,
+ fontSize: za.reference,
+ width: Oo.reference,
+ height: Oo.reference,
lineHeight: "1",
- [va.variable]: "colors.gray.200",
+ [ba.variable]: "colors.gray.200",
_dark: {
- [va.variable]: "colors.whiteAlpha.400"
+ [ba.variable]: "colors.whiteAlpha.400"
}
-}, iR = (e) => {
- const { name: t, theme: r } = e, n = t ? pP({ string: t }) : "colors.gray.400", o = dP(n)(r);
+}, t$ = (e) => {
+ const { name: t, theme: r } = e, n = t ? lP({ string: t }) : "colors.gray.400", o = iP(n)(r);
let a = "white";
return o || (a = "gray.800"), {
- bg: va.reference,
- fontSize: Ba.reference,
+ bg: ba.reference,
+ fontSize: za.reference,
color: a,
- borderColor: bo.reference,
+ borderColor: yo.reference,
verticalAlign: "top",
- width: Ao.reference,
- height: Ao.reference,
+ width: Oo.reference,
+ height: Oo.reference,
"&:not([data-loaded])": {
- [va.variable]: n
+ [ba.variable]: n
},
- [bo.variable]: "colors.white",
+ [yo.variable]: "colors.white",
_dark: {
- [bo.variable]: "colors.gray.800"
+ [yo.variable]: "colors.gray.800"
}
};
-}, sR = {
- fontSize: Ba.reference,
+}, r$ = {
+ fontSize: za.reference,
lineHeight: "1"
-}, lR = $v((e) => ({
- badge: Mt(oR, e),
- excessLabel: Mt(aR, e),
- container: Mt(iR, e),
- label: sR
+}, n$ = Av((e) => ({
+ badge: Mt(QR, e),
+ excessLabel: Mt(e$, e),
+ container: Mt(t$, e),
+ label: r$
}));
-function un(e) {
- const t = e !== "100%" ? xv[e] : void 0;
- return $v({
+function dn(e) {
+ const t = e !== "100%" ? bv[e] : void 0;
+ return Av({
container: {
- [Ao.variable]: t ?? e,
- [Ba.variable]: `calc(${t ?? e} / 2.5)`
+ [Oo.variable]: t ?? e,
+ [za.variable]: `calc(${t ?? e} / 2.5)`
},
excessLabel: {
- [Ao.variable]: t ?? e,
- [Ba.variable]: `calc(${t ?? e} / 2.5)`
+ [Oo.variable]: t ?? e,
+ [za.variable]: `calc(${t ?? e} / 2.5)`
}
});
}
-var cR = {
- "2xs": un(4),
- xs: un(6),
- sm: un(8),
- md: un(12),
- lg: un(16),
- xl: un(24),
- "2xl": un(32),
- full: un("100%")
-}, uR = nR({
- baseStyle: lR,
- sizes: cR,
+var o$ = {
+ "2xs": dn(4),
+ xs: dn(6),
+ sm: dn(8),
+ md: dn(12),
+ lg: dn(16),
+ xl: dn(24),
+ "2xl": dn(32),
+ full: dn("100%")
+}, a$ = JR({
+ baseStyle: n$,
+ sizes: o$,
defaultProps: {
size: "md"
}
-}), dR = {
- Accordion: G$,
- Alert: rR,
- Avatar: uR,
- Badge: pa,
- Breadcrumb: f$,
- Button: S$,
- Checkbox: ms,
- CloseButton: A$,
- Code: D$,
- Container: I$,
- Divider: z$,
- Drawer: NO,
- Editable: UO,
- Form: KO,
- FormError: r$,
- FormLabel: o$,
- Heading: s$,
+}), i$ = {
+ Accordion: WR,
+ Alert: ZR,
+ Avatar: a$,
+ Badge: ma,
+ Breadcrumb: sR,
+ Button: vR,
+ Checkbox: hs,
+ CloseButton: _R,
+ Code: TR,
+ Container: OR,
+ Divider: IR,
+ Drawer: $O,
+ Editable: BO,
+ Form: HO,
+ FormError: ZO,
+ FormLabel: QO,
+ Heading: rR,
Input: Ve,
- Kbd: PA,
- Link: AA,
- List: MA,
- Menu: HA,
- Modal: rO,
- NumberInput: dO,
- PinInput: mO,
- Popover: EO,
- Progress: DT,
- Radio: YT,
- Select: QT,
- Skeleton: tA,
- SkipLink: nA,
- Slider: hA,
- Spinner: gA,
- Stat: kA,
- Switch: AP,
- Table: FP,
- Tabs: ZP,
- Tag: uT,
- Textarea: wT,
- Tooltip: kT,
- Card: E$,
- Stepper: wE
-}, Rv = {
+ Kbd: wA,
+ Link: _A,
+ List: AA,
+ Menu: zA,
+ Modal: ZA,
+ NumberInput: iO,
+ PinInput: uO,
+ Popover: SO,
+ Progress: TT,
+ Radio: VT,
+ Select: GT,
+ Skeleton: KT,
+ SkipLink: JT,
+ Slider: cA,
+ Spinner: fA,
+ Stat: xA,
+ Switch: _P,
+ Table: RP,
+ Tabs: YP,
+ Tag: aT,
+ Textarea: gT,
+ Tooltip: xT,
+ Card: SR,
+ Stepper: gE
+}, Ov = {
colors: {
"chakra-body-text": { _light: "gray.800", _dark: "whiteAlpha.900" },
"chakra-body-bg": { _light: "white", _dark: "gray.800" },
@@ -11095,7 +11334,7 @@ var cR = {
"chakra-subtle-text": { _light: "gray.600", _dark: "gray.400" },
"chakra-placeholder-color": { _light: "gray.500", _dark: "whiteAlpha.400" }
}
-}, Dv = {
+}, Rv = {
global: {
body: {
fontFamily: "body",
@@ -11112,64 +11351,64 @@ var cR = {
borderColor: "chakra-border-color"
}
}
-}, Mv = "ltr", Iv = {
+}, $v = "ltr", Dv = {
useSystemColorMode: !1,
initialColorMode: "light",
cssVarPrefix: "chakra"
-}, Fv = {
- semanticTokens: Rv,
- direction: Mv,
- ...Sv,
- components: dR,
- styles: Dv,
- config: Iv
-}, jV = Fv, fR = {
- semanticTokens: Rv,
- direction: Mv,
+}, s$ = {
+ semanticTokens: Ov,
+ direction: $v,
+ ...yv,
+ components: i$,
+ styles: Rv,
+ config: Dv
+}, l$ = {
+ semanticTokens: Ov,
+ direction: $v,
components: {},
- ...Sv,
- styles: Dv,
- config: Iv
+ ...yv,
+ styles: Rv,
+ config: Dv
};
-function sa(e) {
+function la(e) {
return typeof e == "function";
}
-function pR(...e) {
+function c$(...e) {
return (t) => e.reduce((r, n) => n(r), t);
}
-var Nv = (e) => function(...r) {
+var Mv = (e) => function(...r) {
let n = [...r], o = r[r.length - 1];
- return Kk(o) && // this ensures backward compatibility
+ return Hk(o) && // this ensures backward compatibility
// previously only `extendTheme(override, activeTheme?)` was allowed
- n.length > 1 ? n = n.slice(0, n.length - 1) : o = e, pR(
+ n.length > 1 ? n = n.slice(0, n.length - 1) : o = e, c$(
...n.map(
- (a) => (i) => sa(a) ? a(i) : jv(i, a)
+ (a) => (i) => la(a) ? a(i) : Iv(i, a)
)
)(o);
-}, BV = Nv(Fv), zV = Nv(fR);
-function jv(...e) {
- return sr({}, ...e, Bv);
+}, $V = Mv(s$), DV = Mv(l$);
+function Iv(...e) {
+ return sr({}, ...e, Fv);
}
-function Bv(e, t, r, n) {
- if ((sa(e) || sa(t)) && Object.prototype.hasOwnProperty.call(n, r))
+function Fv(e, t, r, n) {
+ if ((la(e) || la(t)) && Object.prototype.hasOwnProperty.call(n, r))
return (...o) => {
- const a = sa(e) ? e(...o) : e, i = sa(t) ? t(...o) : t;
- return sr({}, a, i, Bv);
+ const a = la(e) ? e(...o) : e, i = la(t) ? t(...o) : t;
+ return sr({}, a, i, Fv);
};
}
-function hR(e, t) {
+function u$(e, t) {
const r = {};
return Object.keys(e).forEach((n) => {
t.includes(n) || (r[n] = e[n]);
}), r;
}
-function mR(e, t, r, n) {
+function d$(e, t, r, n) {
const o = typeof t == "string" ? t.split(".") : [t];
for (n = 0; n < o.length && e; n += 1)
e = e[o[n]];
return e === void 0 ? r : e;
}
-var vR = (e) => {
+var f$ = (e) => {
const t = /* @__PURE__ */ new WeakMap();
return (n, o, a, i) => {
if (typeof n > "u")
@@ -11181,56 +11420,56 @@ var vR = (e) => {
const l = e(n, o, a, i);
return s.set(o, l), l;
};
-}, gR = vR(mR);
-function zv(e, t) {
+}, p$ = f$(d$);
+function Nv(e, t) {
const r = {};
return Object.keys(e).forEach((n) => {
const o = e[n];
t(o, n, e) && (r[n] = o);
}), r;
}
-var Vv = (e) => zv(e, (t) => t != null);
-function Ep(e) {
+var jv = (e) => Nv(e, (t) => t != null);
+function kp(e) {
return typeof e == "number";
}
-function bR(e) {
+function h$(e) {
return typeof e == "function";
}
-var yR = process.env.NODE_ENV !== "production";
+var m$ = process.env.NODE_ENV !== "production";
process.env.NODE_ENV;
-function VV(e) {
+function MV(e) {
return "current" in e;
}
-function xR(e, ...t) {
- return bR(e) ? e(...t) : e;
+function v$(e, ...t) {
+ return h$(e) ? e(...t) : e;
}
-function LV(...e) {
+function IV(...e) {
return function(r) {
e.some((n) => (n == null || n(r), r == null ? void 0 : r.defaultPrevented));
};
}
-function SR(e) {
+function g$(e) {
let t;
return function(...n) {
return e && (t = e.apply(this, n), e = null), t;
};
}
-var WV = () => {
-}, UV = /* @__PURE__ */ SR((e) => () => {
+var FV = () => {
+}, NV = /* @__PURE__ */ g$((e) => () => {
const { condition: t, message: r } = e;
- t && yR && console.warn(r);
-}), HV = (...e) => (t) => e.reduce((r, n) => n(r), t), Gl = (e, t) => Math.abs(e - t), Pp = (e) => "x" in e && "y" in e;
-function YV(e, t) {
- if (Ep(e) && Ep(t))
- return Gl(e, t);
- if (Pp(e) && Pp(t)) {
- const r = Gl(e.x, t.x), n = Gl(e.y, t.y);
+ t && m$ && console.warn(r);
+}), jV = (...e) => (t) => e.reduce((r, n) => n(r), t), Yl = (e, t) => Math.abs(e - t), Ep = (e) => "x" in e && "y" in e;
+function BV(e, t) {
+ if (kp(e) && kp(t))
+ return Yl(e, t);
+ if (Ep(e) && Ep(t)) {
+ const r = Yl(e.x, t.x), n = Yl(e.y, t.y);
return Math.sqrt(r ** 2 + n ** 2);
}
return 0;
}
-const Lv = 1 / 60 * 1e3, wR = typeof performance < "u" ? () => performance.now() : () => Date.now(), Wv = typeof window < "u" ? (e) => window.requestAnimationFrame(e) : (e) => setTimeout(() => e(wR()), Lv);
-function CR(e) {
+const Bv = 1 / 60 * 1e3, b$ = typeof performance < "u" ? () => performance.now() : () => Date.now(), zv = typeof window < "u" ? (e) => window.requestAnimationFrame(e) : (e) => setTimeout(() => e(b$()), Bv);
+function y$(e) {
let t = [], r = [], n = 0, o = !1, a = !1;
const i = /* @__PURE__ */ new WeakSet(), s = {
schedule: (l, c = !1, u = !1) => {
@@ -11256,9 +11495,9 @@ function CR(e) {
};
return s;
}
-const _R = 40;
-let Yc = !0, za = !1, qc = !1;
-const yo = {
+const x$ = 40;
+let Hc = !0, Va = !1, Yc = !1;
+const xo = {
delta: 0,
timestamp: 0
}, ti = [
@@ -11267,17 +11506,17 @@ const yo = {
"preRender",
"render",
"postRender"
-], Gs = ti.reduce((e, t) => (e[t] = CR(() => za = !0), e), {}), kR = ti.reduce((e, t) => {
- const r = Gs[t];
- return e[t] = (n, o = !1, a = !1) => (za || TR(), r.schedule(n, o, a)), e;
-}, {}), ER = ti.reduce((e, t) => (e[t] = Gs[t].cancel, e), {});
-ti.reduce((e, t) => (e[t] = () => Gs[t].process(yo), e), {});
-const PR = (e) => Gs[e].process(yo), Uv = (e) => {
- za = !1, yo.delta = Yc ? Lv : Math.max(Math.min(e - yo.timestamp, _R), 1), yo.timestamp = e, qc = !0, ti.forEach(PR), qc = !1, za && (Yc = !1, Wv(Uv));
-}, TR = () => {
- za = !0, Yc = !0, qc || Wv(Uv);
-}, Tp = () => yo;
-var AR = typeof Element < "u", OR = typeof Map == "function", $R = typeof Set == "function", RR = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
+], qs = ti.reduce((e, t) => (e[t] = y$(() => Va = !0), e), {}), S$ = ti.reduce((e, t) => {
+ const r = qs[t];
+ return e[t] = (n, o = !1, a = !1) => (Va || _$(), r.schedule(n, o, a)), e;
+}, {}), w$ = ti.reduce((e, t) => (e[t] = qs[t].cancel, e), {});
+ti.reduce((e, t) => (e[t] = () => qs[t].process(xo), e), {});
+const C$ = (e) => qs[e].process(xo), Vv = (e) => {
+ Va = !1, xo.delta = Hc ? Bv : Math.max(Math.min(e - xo.timestamp, x$), 1), xo.timestamp = e, Yc = !0, ti.forEach(C$), Yc = !1, Va && (Hc = !1, zv(Vv));
+}, _$ = () => {
+ Va = !0, Hc = !0, Yc || zv(Vv);
+}, Pp = () => xo;
+var k$ = typeof Element < "u", E$ = typeof Map == "function", P$ = typeof Set == "function", T$ = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
function Ji(e, t) {
if (e === t)
return !0;
@@ -11294,7 +11533,7 @@ function Ji(e, t) {
return !0;
}
var a;
- if (OR && e instanceof Map && t instanceof Map) {
+ if (E$ && e instanceof Map && t instanceof Map) {
if (e.size !== t.size)
return !1;
for (a = e.entries(); !(n = a.next()).done; )
@@ -11305,7 +11544,7 @@ function Ji(e, t) {
return !1;
return !0;
}
- if ($R && e instanceof Set && t instanceof Set) {
+ if (P$ && e instanceof Set && t instanceof Set) {
if (e.size !== t.size)
return !1;
for (a = e.entries(); !(n = a.next()).done; )
@@ -11313,7 +11552,7 @@ function Ji(e, t) {
return !1;
return !0;
}
- if (RR && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
+ if (T$ && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
if (r = e.length, r != t.length)
return !1;
for (n = r; n-- !== 0; )
@@ -11332,7 +11571,7 @@ function Ji(e, t) {
for (n = r; n-- !== 0; )
if (!Object.prototype.hasOwnProperty.call(t, o[n]))
return !1;
- if (AR && e instanceof Element)
+ if (k$ && e instanceof Element)
return !1;
for (n = r; n-- !== 0; )
if (!((o[n] === "_owner" || o[n] === "__v" || o[n] === "__o") && e.$$typeof) && !Ji(e[o[n]], t[o[n]]))
@@ -11341,7 +11580,7 @@ function Ji(e, t) {
}
return e !== e && t !== t;
}
-var DR = function(t, r) {
+var A$ = function(t, r) {
try {
return Ji(t, r);
} catch (n) {
@@ -11350,36 +11589,36 @@ var DR = function(t, r) {
throw n;
}
};
-const MR = /* @__PURE__ */ Is(DR);
-function Zu(e, t = {}) {
+const O$ = /* @__PURE__ */ Ms(A$);
+function Xu(e, t = {}) {
var r;
- const { styleConfig: n, ...o } = t, { theme: a, colorMode: i } = dv(), s = e ? gR(a, `components.${e}`) : void 0, l = n || s, c = sr(
+ const { styleConfig: n, ...o } = t, { theme: a, colorMode: i } = cv(), s = e ? p$(a, `components.${e}`) : void 0, l = n || s, c = sr(
{ theme: a, colorMode: i },
(r = l == null ? void 0 : l.defaultProps) != null ? r : {},
- Vv(hR(o, ["children"]))
+ jv(u$(o, ["children"]))
), u = be({});
if (l) {
- const f = qk(l)(c);
- MR(u.current, f) || (u.current = f);
+ const f = Lk(l)(c);
+ O$(u.current, f) || (u.current = f);
}
return u.current;
}
-function No(e, t = {}) {
- return Zu(e, t);
-}
function jo(e, t = {}) {
- return Zu(e, t);
+ return Xu(e, t);
}
-function qV(e, t) {
+function Bo(e, t = {}) {
+ return Xu(e, t);
+}
+function zV(e, t) {
var r;
- const { baseConfig: n, ...o } = t, { theme: a } = dv(), i = (r = a.components) == null ? void 0 : r[e], s = i ? jv(i, n) : n;
- return Zu(null, {
+ const { baseConfig: n, ...o } = t, { theme: a } = cv(), i = (r = a.components) == null ? void 0 : r[e], s = i ? Iv(i, n) : n;
+ return Xu(null, {
...o,
styleConfig: s
});
}
-var IR = /* @__PURE__ */ new Set([
- ...Mk,
+var R$ = /* @__PURE__ */ new Set([
+ ...Ak,
"textStyle",
"layerStyle",
"apply",
@@ -11390,16 +11629,16 @@ var IR = /* @__PURE__ */ new Set([
"__css",
"css",
"sx"
-]), FR = /* @__PURE__ */ new Set([
+]), $$ = /* @__PURE__ */ new Set([
"htmlWidth",
"htmlHeight",
"htmlSize",
"htmlTranslate"
]);
-function NR(e) {
- return FR.has(e) || !IR.has(e);
+function D$(e) {
+ return $$.has(e) || !R$.has(e);
}
-function jR(e, ...t) {
+function M$(e, ...t) {
if (e == null)
throw new TypeError("Cannot convert undefined or null to object");
const r = { ...e };
@@ -11409,19 +11648,19 @@ function jR(e, ...t) {
Object.prototype.hasOwnProperty.call(n, o) && (o in r && delete r[o], r[o] = n[o]);
return r;
}
-var BR = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, zR = /* @__PURE__ */ tv(
+var I$ = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, F$ = /* @__PURE__ */ Qm(
function(e) {
- return BR.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
+ return I$.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
}
/* Z+1 */
-), VR = zR, LR = function(t) {
+), N$ = F$, j$ = function(t) {
return t !== "theme";
-}, Ap = function(t) {
+}, Tp = function(t) {
return typeof t == "string" && // 96 is one less than the char code
// for "a" so this is checking that
// it's a lowercase character
- t.charCodeAt(0) > 96 ? VR : LR;
-}, Op = function(t, r, n) {
+ t.charCodeAt(0) > 96 ? N$ : j$;
+}, Ap = function(t, r, n) {
var o;
if (r) {
var a = r.shouldForwardProp;
@@ -11430,46 +11669,46 @@ var BR = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
} : a;
}
return typeof o != "function" && n && (o = t.__emotion_forwardProp), o;
-}, $p = `You have illegal escape sequence in your template literal, most likely inside content's property value.
+}, Op = `You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
-https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, WR = function(t) {
+https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, B$ = function(t) {
var r = t.cache, n = t.serialized, o = t.isStringTag;
- return Vs(r, n, o), ju(function() {
- return Ls(r, n, o);
+ return zs(r, n, o), Fu(function() {
+ return Vs(r, n, o);
}), null;
-}, UR = function e(t, r) {
+}, z$ = function e(t, r) {
if (process.env.NODE_ENV !== "production" && t === void 0)
throw new Error(`You are trying to create a styled element with an undefined component.
You may have forgotten to import it.`);
var n = t.__emotion_real === t, o = n && t.__emotion_base || t, a, i;
r !== void 0 && (a = r.label, i = r.target);
- var s = Op(t, r, n), l = s || Ap(o), c = !l("as");
+ var s = Ap(t, r, n), l = s || Tp(o), c = !l("as");
return function() {
var u = arguments, d = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
if (a !== void 0 && d.push("label:" + a + ";"), u[0] == null || u[0].raw === void 0)
d.push.apply(d, u);
else {
- process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error($p), d.push(u[0][0]);
+ process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(Op), d.push(u[0][0]);
for (var f = u.length, p = 1; p < f; p++)
- process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error($p), d.push(u[p], u[0][p]);
+ process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error(Op), d.push(u[p], u[0][p]);
}
- var m = Ws(function(h, v, b) {
- var y = c && h.as || o, S = "", k = [], w = h;
+ var m = Ls(function(h, v, b) {
+ var y = c && h.as || o, S = "", _ = [], w = h;
if (h.theme == null) {
w = {};
for (var M in h)
w[M] = h[M];
- w.theme = U.useContext(bn);
+ w.theme = U.useContext(yn);
}
- typeof h.className == "string" ? S = Fu(v.registered, k, h.className) : h.className != null && (S = h.className + " ");
- var P = Po(d.concat(k), v.registered, w);
+ typeof h.className == "string" ? S = Mu(v.registered, _, h.className) : h.className != null && (S = h.className + " ");
+ var P = To(d.concat(_), v.registered, w);
S += v.key + "-" + P.name, i !== void 0 && (S += " " + i);
- var I = c && s === void 0 ? Ap(y) : l, z = {};
+ var I = c && s === void 0 ? Tp(y) : l, z = {};
for (var j in h)
c && j === "as" || // $FlowFixMe
I(j) && (z[j] = h[j]);
- return z.className = S, z.ref = b, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(WR, {
+ return z.className = S, z.ref = b, /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement(B$, {
cache: v,
serialized: P,
isStringTag: typeof y == "string"
@@ -11480,12 +11719,12 @@ You may have forgotten to import it.`);
return i === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + i;
}
}), m.withComponent = function(h, v) {
- return e(h, cs({}, r, v, {
- shouldForwardProp: Op(m, v, !0)
+ return e(h, Wn({}, r, v, {
+ shouldForwardProp: Ap(m, v, !0)
})).apply(void 0, d);
}, m;
};
-}, HR = [
+}, V$ = [
"a",
"abbr",
"address",
@@ -11621,29 +11860,29 @@ You may have forgotten to import it.`);
"svg",
"text",
"tspan"
-], gs = UR.bind();
-HR.forEach(function(e) {
- gs[e] = gs(e);
+], vs = z$.bind();
+V$.forEach(function(e) {
+ vs[e] = vs(e);
});
-var Rp, YR = (Rp = gs.default) != null ? Rp : gs, qR = ({ baseStyle: e }) => (t) => {
- const { theme: r, css: n, __css: o, sx: a, ...i } = t, s = zv(i, (d, f) => Fk(f)), l = xR(e, t), c = jR(
+var Rp, L$ = (Rp = vs.default) != null ? Rp : vs, W$ = ({ baseStyle: e }) => (t) => {
+ const { theme: r, css: n, __css: o, sx: a, ...i } = t, s = Nv(i, (d, f) => Rk(f)), l = v$(e, t), c = M$(
{},
o,
l,
- Vv(s),
+ jv(s),
a
- ), u = Wk(c)(t.theme);
+ ), u = jk(c)(t.theme);
return n ? [u, n] : u;
};
-function Xl(e, t) {
+function ql(e, t) {
const { baseStyle: r, ...n } = t ?? {};
- n.shouldForwardProp || (n.shouldForwardProp = NR);
- const o = qR({ baseStyle: r }), a = YR(
+ n.shouldForwardProp || (n.shouldForwardProp = D$);
+ const o = W$({ baseStyle: r }), a = L$(
e,
n
)(o);
return It.forwardRef(function(l, c) {
- const { colorMode: u, forced: d } = Lu();
+ const { colorMode: u, forced: d } = zu();
return It.createElement(a, {
ref: c,
"data-theme": d ? u : void 0,
@@ -11651,31 +11890,31 @@ function Xl(e, t) {
});
});
}
-function GR() {
+function U$() {
const e = /* @__PURE__ */ new Map();
- return new Proxy(Xl, {
+ return new Proxy(ql, {
/**
* @example
* const Div = chakra("div")
* const WithChakra = chakra(AnotherComponent)
*/
apply(t, r, n) {
- return Xl(...n);
+ return ql(...n);
},
/**
* @example
*
*/
get(t, r) {
- return e.has(r) || e.set(r, Xl(r)), e.get(r);
+ return e.has(r) || e.set(r, ql(r)), e.get(r);
}
});
}
-var ge = GR();
+var ge = U$();
function _e(e) {
return At(e);
}
-var Ju = Cr({
+var Ku = Cr({
getDocument() {
return document;
},
@@ -11683,14 +11922,14 @@ var Ju = Cr({
return window;
}
});
-Ju.displayName = "EnvironmentContext";
-function XR({ defer: e } = {}) {
- const [, t] = _0((r) => r + 1, 0);
- return Ia(() => {
+Ku.displayName = "EnvironmentContext";
+function H$({ defer: e } = {}) {
+ const [, t] = S0((r) => r + 1, 0);
+ return Fa(() => {
e && t();
- }, [e]), ft(Ju);
+ }, [e]), ft(Ku);
}
-function KR(e) {
+function Y$(e) {
const { children: t, environment: r, disabled: n } = e, o = be(null), a = gt(() => r || {
getDocument: () => {
var s, l;
@@ -11701,12 +11940,12 @@ function KR(e) {
return (l = (s = o.current) == null ? void 0 : s.ownerDocument.defaultView) != null ? l : window;
}
}, [r]), i = !n || !r;
- return /* @__PURE__ */ L.jsxs(Ju.Provider, { value: a, children: [
+ return /* @__PURE__ */ L.jsxs(Ku.Provider, { value: a, children: [
t,
i && /* @__PURE__ */ L.jsx("span", { id: "__chakra_env", hidden: !0, ref: o })
] });
}
-KR.displayName = "EnvironmentProvider";
+Y$.displayName = "EnvironmentProvider";
function Jt(e, t = []) {
const r = be(e);
return Fe(() => {
@@ -11716,7 +11955,7 @@ function Jt(e, t = []) {
return (o = r.current) == null ? void 0 : o.call(r, ...n);
}, t);
}
-function Bo(e, t) {
+function zo(e, t) {
const r = be(!1), n = be(!1);
Fe(() => {
if (r.current && n.current)
@@ -11726,13 +11965,13 @@ function Bo(e, t) {
r.current = !1;
}), []);
}
-const Hv = Cr({
+const Lv = Cr({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
-}), Xs = Cr({}), ri = Cr(null), Ks = typeof document < "u", bs = Ks ? Ds : Fe, Yv = Cr({ strict: !1 });
-function ZR(e, t, r, n) {
- const { visualElement: o } = ft(Xs), a = ft(Yv), i = ft(ri), s = ft(Hv).reducedMotion, l = be();
+}), Gs = Cr({}), ri = Cr(null), Xs = typeof document < "u", gs = Xs ? $s : Fe, Wv = Cr({ strict: !1 });
+function q$(e, t, r, n) {
+ const { visualElement: o } = ft(Gs), a = ft(Wv), i = ft(ri), s = ft(Lv).reducedMotion, l = be();
n = n || a.renderer, !l.current && n && (l.current = n(e, {
visualState: t,
parent: o,
@@ -11742,23 +11981,23 @@ function ZR(e, t, r, n) {
reducedMotionConfig: s
}));
const c = l.current;
- return ym(() => {
+ return bm(() => {
c && c.update(r, i);
- }), bs(() => {
+ }), gs(() => {
c && c.render();
}), Fe(() => {
c && c.updateFeatures();
- }), (window.HandoffAppearAnimations ? bs : Fe)(() => {
+ }), (window.HandoffAppearAnimations ? gs : Fe)(() => {
c && c.animationState && c.animationState.animateChanges();
}), c;
}
-function lo(e) {
+function co(e) {
return typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
-function JR(e, t, r) {
+function G$(e, t, r) {
return q(
(n) => {
- n && e.mount && e.mount(n), t && (n ? t.mount(n) : t.unmount()), r && (typeof r == "function" ? r(n) : lo(r) && (r.current = n));
+ n && e.mount && e.mount(n), t && (n ? t.mount(n) : t.unmount()), r && (typeof r == "function" ? r(n) : co(r) && (r.current = n));
},
/**
* Only pass a new ref callback to React if we've received a visual element
@@ -11768,13 +12007,13 @@ function JR(e, t, r) {
[t]
);
}
-function Va(e) {
+function La(e) {
return typeof e == "string" || Array.isArray(e);
}
-function Zs(e) {
+function Ks(e) {
return typeof e == "object" && typeof e.start == "function";
}
-const Qu = [
+const Zu = [
"animate",
"whileInView",
"whileFocus",
@@ -11782,31 +12021,31 @@ const Qu = [
"whileTap",
"whileDrag",
"exit"
-], ed = ["initial", ...Qu];
-function Js(e) {
- return Zs(e.animate) || ed.some((t) => Va(e[t]));
+], Ju = ["initial", ...Zu];
+function Zs(e) {
+ return Ks(e.animate) || Ju.some((t) => La(e[t]));
}
-function qv(e) {
- return !!(Js(e) || e.variants);
+function Uv(e) {
+ return !!(Zs(e) || e.variants);
}
-function QR(e, t) {
- if (Js(e)) {
+function X$(e, t) {
+ if (Zs(e)) {
const { initial: r, animate: n } = e;
return {
- initial: r === !1 || Va(r) ? r : void 0,
- animate: Va(n) ? n : void 0
+ initial: r === !1 || La(r) ? r : void 0,
+ animate: La(n) ? n : void 0
};
}
return e.inherit !== !1 ? t : {};
}
-function e2(e) {
- const { initial: t, animate: r } = QR(e, ft(Xs));
- return gt(() => ({ initial: t, animate: r }), [Dp(t), Dp(r)]);
+function K$(e) {
+ const { initial: t, animate: r } = X$(e, ft(Gs));
+ return gt(() => ({ initial: t, animate: r }), [$p(t), $p(r)]);
}
-function Dp(e) {
+function $p(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
-const Mp = {
+const Dp = {
animation: [
"animate",
"variants",
@@ -11825,31 +12064,31 @@ const Mp = {
pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
layout: ["layout", "layoutId"]
-}, La = {};
-for (const e in Mp)
- La[e] = {
- isEnabled: (t) => Mp[e].some((r) => !!t[r])
+}, Wa = {};
+for (const e in Dp)
+ Wa[e] = {
+ isEnabled: (t) => Dp[e].some((r) => !!t[r])
};
-function t2(e) {
+function Z$(e) {
for (const t in e)
- La[t] = {
- ...La[t],
+ Wa[t] = {
+ ...Wa[t],
...e[t]
};
}
-const td = Cr({}), Gv = Cr({}), r2 = Symbol.for("motionComponentSymbol");
-function n2({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVisualState: n, Component: o }) {
- e && t2(e);
+const Qu = Cr({}), Hv = Cr({}), J$ = Symbol.for("motionComponentSymbol");
+function Q$({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVisualState: n, Component: o }) {
+ e && Z$(e);
function a(s, l) {
let c;
const u = {
- ...ft(Hv),
+ ...ft(Lv),
...s,
- layoutId: o2(s)
- }, { isStatic: d } = u, f = e2(s), p = n(s, d);
- if (!d && Ks) {
- f.visualElement = ZR(o, p, u, t);
- const m = ft(Gv), h = ft(Yv).strict;
+ layoutId: e2(s)
+ }, { isStatic: d } = u, f = K$(s), p = n(s, d);
+ if (!d && Xs) {
+ f.visualElement = q$(o, p, u, t);
+ const m = ft(Hv), h = ft(Wv).strict;
f.visualElement && (c = f.visualElement.loadFeatures(
// Note: Pass the full new combined props to correctly re-render dynamic feature components.
u,
@@ -11859,22 +12098,22 @@ function n2({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVis
));
}
return U.createElement(
- Xs.Provider,
+ Gs.Provider,
{ value: f },
c && f.visualElement ? U.createElement(c, { visualElement: f.visualElement, ...u }) : null,
- r(o, s, JR(p, f.visualElement, l), p, d, f.visualElement)
+ r(o, s, G$(p, f.visualElement, l), p, d, f.visualElement)
);
}
const i = At(a);
- return i[r2] = o, i;
+ return i[J$] = o, i;
}
-function o2({ layoutId: e }) {
- const t = ft(td).id;
+function e2({ layoutId: e }) {
+ const t = ft(Qu).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function a2(e) {
+function t2(e) {
function t(n, o = {}) {
- return n2(e(n, o));
+ return Q$(e(n, o));
}
if (typeof Proxy > "u")
return t;
@@ -11888,7 +12127,7 @@ function a2(e) {
get: (n, o) => (r.has(o) || r.set(o, t(o)), r.get(o))
});
}
-const i2 = [
+const r2 = [
"animate",
"circle",
"defs",
@@ -11915,7 +12154,7 @@ const i2 = [
"use",
"view"
];
-function rd(e) {
+function ed(e) {
return (
/**
* If it's not a string, it's a custom React component. Currently we only support
@@ -11928,16 +12167,16 @@ function rd(e) {
/**
* If it's in our list of lowercase SVG tags, it's an SVG component
*/
- !!(i2.indexOf(e) > -1 || /**
+ !!(r2.indexOf(e) > -1 || /**
* If it contains a capital letter, it's an SVG component
*/
/[A-Z]/.test(e))
)
);
}
-const ys = {};
-function s2(e) {
- Object.assign(ys, e);
+const bs = {};
+function n2(e) {
+ Object.assign(bs, e);
}
const ni = [
"transformPerspective",
@@ -11957,38 +12196,38 @@ const ni = [
"skew",
"skewX",
"skewY"
-], Hn = new Set(ni);
-function Xv(e, { layout: t, layoutId: r }) {
- return Hn.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!ys[e] || e === "opacity");
+], qn = new Set(ni);
+function Yv(e, { layout: t, layoutId: r }) {
+ return qn.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!bs[e] || e === "opacity");
}
-const Yt = (e) => !!(e && e.getVelocity), l2 = {
+const Yt = (e) => !!(e && e.getVelocity), o2 = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, c2 = ni.length;
-function u2(e, { enableHardwareAcceleration: t = !0, allowTransformNone: r = !0 }, n, o) {
+}, a2 = ni.length;
+function i2(e, { enableHardwareAcceleration: t = !0, allowTransformNone: r = !0 }, n, o) {
let a = "";
- for (let i = 0; i < c2; i++) {
+ for (let i = 0; i < a2; i++) {
const s = ni[i];
if (e[s] !== void 0) {
- const l = l2[s] || s;
+ const l = o2[s] || s;
a += `${l}(${e[s]}) `;
}
}
return t && !e.z && (a += "translateZ(0)"), a = a.trim(), o ? a = o(e, n ? "" : a) : r && n && (a = "none"), a;
}
-const Kv = (e) => (t) => typeof t == "string" && t.startsWith(e), Zv = Kv("--"), Gc = Kv("var(--"), d2 = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, f2 = (e, t) => t && typeof e == "number" ? t.transform(e) : e, yn = (e, t, r) => Math.min(Math.max(r, e), t), Yn = {
+const qv = (e) => (t) => typeof t == "string" && t.startsWith(e), Gv = qv("--"), qc = qv("var(--"), s2 = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, l2 = (e, t) => t && typeof e == "number" ? t.transform(e) : e, xn = (e, t, r) => Math.min(Math.max(r, e), t), Gn = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
-}, ga = {
- ...Yn,
- transform: (e) => yn(0, 1, e)
+}, ya = {
+ ...Gn,
+ transform: (e) => xn(0, 1, e)
}, Ai = {
- ...Yn,
+ ...Gn,
default: 1
-}, ba = (e) => Math.round(e * 1e5) / 1e5, Qs = /(-)?([\d]*\.?[\d])+/g, Jv = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, p2 = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
+}, xa = (e) => Math.round(e * 1e5) / 1e5, Js = /(-)?([\d]*\.?[\d])+/g, Xv = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, c2 = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
function oi(e) {
return typeof e == "string";
}
@@ -11996,14 +12235,14 @@ const ai = (e) => ({
test: (t) => oi(t) && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), dn = ai("deg"), Ir = ai("%"), pe = ai("px"), h2 = ai("vh"), m2 = ai("vw"), Ip = {
- ...Ir,
- parse: (e) => Ir.parse(e) / 100,
- transform: (e) => Ir.transform(e * 100)
-}, Fp = {
- ...Yn,
+}), fn = ai("deg"), Fr = ai("%"), pe = ai("px"), u2 = ai("vh"), d2 = ai("vw"), Mp = {
+ ...Fr,
+ parse: (e) => Fr.parse(e) / 100,
+ transform: (e) => Fr.transform(e * 100)
+}, Ip = {
+ ...Gn,
transform: Math.round
-}, Qv = {
+}, Kv = {
// Border props
borderWidth: pe,
borderTopWidth: pe,
@@ -12038,17 +12277,17 @@ const ai = (e) => ({
marginBottom: pe,
marginLeft: pe,
// Transform props
- rotate: dn,
- rotateX: dn,
- rotateY: dn,
- rotateZ: dn,
+ rotate: fn,
+ rotateX: fn,
+ rotateY: fn,
+ rotateZ: fn,
scale: Ai,
scaleX: Ai,
scaleY: Ai,
scaleZ: Ai,
- skew: dn,
- skewX: dn,
- skewY: dn,
+ skew: fn,
+ skewX: fn,
+ skewY: fn,
distance: pe,
translateX: pe,
translateY: pe,
@@ -12058,64 +12297,64 @@ const ai = (e) => ({
z: pe,
perspective: pe,
transformPerspective: pe,
- opacity: ga,
- originX: Ip,
- originY: Ip,
+ opacity: ya,
+ originX: Mp,
+ originY: Mp,
originZ: pe,
// Misc
- zIndex: Fp,
+ zIndex: Ip,
// SVG
- fillOpacity: ga,
- strokeOpacity: ga,
- numOctaves: Fp
+ fillOpacity: ya,
+ strokeOpacity: ya,
+ numOctaves: Ip
};
-function nd(e, t, r, n) {
+function td(e, t, r, n) {
const { style: o, vars: a, transform: i, transformOrigin: s } = e;
let l = !1, c = !1, u = !0;
for (const d in t) {
const f = t[d];
- if (Zv(d)) {
+ if (Gv(d)) {
a[d] = f;
continue;
}
- const p = Qv[d], m = f2(f, p);
- if (Hn.has(d)) {
+ const p = Kv[d], m = l2(f, p);
+ if (qn.has(d)) {
if (l = !0, i[d] = m, !u)
continue;
f !== (p.default || 0) && (u = !1);
} else
d.startsWith("origin") ? (c = !0, s[d] = m) : o[d] = m;
}
- if (t.transform || (l || n ? o.transform = u2(e.transform, r, u, n) : o.transform && (o.transform = "none")), c) {
+ if (t.transform || (l || n ? o.transform = i2(e.transform, r, u, n) : o.transform && (o.transform = "none")), c) {
const { originX: d = "50%", originY: f = "50%", originZ: p = 0 } = s;
o.transformOrigin = `${d} ${f} ${p}`;
}
}
-const od = () => ({
+const rd = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
-function eg(e, t, r) {
+function Zv(e, t, r) {
for (const n in t)
- !Yt(t[n]) && !Xv(n, r) && (e[n] = t[n]);
+ !Yt(t[n]) && !Yv(n, r) && (e[n] = t[n]);
}
-function v2({ transformTemplate: e }, t, r) {
+function f2({ transformTemplate: e }, t, r) {
return gt(() => {
- const n = od();
- return nd(n, t, { enableHardwareAcceleration: !r }, e), Object.assign({}, n.vars, n.style);
+ const n = rd();
+ return td(n, t, { enableHardwareAcceleration: !r }, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function g2(e, t, r) {
+function p2(e, t, r) {
const n = e.style || {}, o = {};
- return eg(o, n, e), Object.assign(o, v2(e, t, r)), e.transformValues ? e.transformValues(o) : o;
+ return Zv(o, n, e), Object.assign(o, f2(e, t, r)), e.transformValues ? e.transformValues(o) : o;
}
-function b2(e, t, r) {
- const n = {}, o = g2(e, t, r);
+function h2(e, t, r) {
+ const n = {}, o = p2(e, t, r);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, o.userSelect = o.WebkitUserSelect = o.WebkitTouchCallout = "none", o.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = o, n;
}
-const y2 = /* @__PURE__ */ new Set([
+const m2 = /* @__PURE__ */ new Set([
"animate",
"exit",
"variants",
@@ -12150,46 +12389,46 @@ const y2 = /* @__PURE__ */ new Set([
"ignoreStrict",
"viewport"
]);
-function xs(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || y2.has(e);
+function ys(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || m2.has(e);
}
-let tg = (e) => !xs(e);
-function x2(e) {
- e && (tg = (t) => t.startsWith("on") ? !xs(t) : e(t));
+let Jv = (e) => !ys(e);
+function v2(e) {
+ e && (Jv = (t) => t.startsWith("on") ? !ys(t) : e(t));
}
try {
- x2(require("@emotion/is-prop-valid").default);
+ v2(require("@emotion/is-prop-valid").default);
} catch {
}
-function S2(e, t, r) {
+function g2(e, t, r) {
const n = {};
for (const o in e)
- o === "values" && typeof e.values == "object" || (tg(o) || r === !0 && xs(o) || !t && !xs(o) || // If trying to use native HTML drag events, forward drag listeners
+ o === "values" && typeof e.values == "object" || (Jv(o) || r === !0 && ys(o) || !t && !ys(o) || // If trying to use native HTML drag events, forward drag listeners
e.draggable && o.startsWith("onDrag")) && (n[o] = e[o]);
return n;
}
-function Np(e, t, r) {
+function Fp(e, t, r) {
return typeof e == "string" ? e : pe.transform(t + r * e);
}
-function w2(e, t, r) {
- const n = Np(t, e.x, e.width), o = Np(r, e.y, e.height);
+function b2(e, t, r) {
+ const n = Fp(t, e.x, e.width), o = Fp(r, e.y, e.height);
return `${n} ${o}`;
}
-const C2 = {
+const y2 = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, _2 = {
+}, x2 = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function k2(e, t, r = 1, n = 0, o = !0) {
+function S2(e, t, r = 1, n = 0, o = !0) {
e.pathLength = 1;
- const a = o ? C2 : _2;
+ const a = o ? y2 : x2;
e[a.offset] = pe.transform(-n);
const i = pe.transform(t), s = pe.transform(r);
e[a.array] = `${i} ${s}`;
}
-function ad(e, {
+function nd(e, {
attrX: t,
attrY: r,
attrScale: n,
@@ -12201,36 +12440,36 @@ function ad(e, {
// This is object creation, which we try to avoid per-frame.
...c
}, u, d, f) {
- if (nd(e, c, u, f), d) {
+ if (td(e, c, u, f), d) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
const { attrs: p, style: m, dimensions: h } = e;
- p.transform && (h && (m.transform = p.transform), delete p.transform), h && (o !== void 0 || a !== void 0 || m.transform) && (m.transformOrigin = w2(h, o !== void 0 ? o : 0.5, a !== void 0 ? a : 0.5)), t !== void 0 && (p.x = t), r !== void 0 && (p.y = r), n !== void 0 && (p.scale = n), i !== void 0 && k2(p, i, s, l, !1);
+ p.transform && (h && (m.transform = p.transform), delete p.transform), h && (o !== void 0 || a !== void 0 || m.transform) && (m.transformOrigin = b2(h, o !== void 0 ? o : 0.5, a !== void 0 ? a : 0.5)), t !== void 0 && (p.x = t), r !== void 0 && (p.y = r), n !== void 0 && (p.scale = n), i !== void 0 && S2(p, i, s, l, !1);
}
-const rg = () => ({
- ...od(),
+const Qv = () => ({
+ ...rd(),
attrs: {}
-}), id = (e) => typeof e == "string" && e.toLowerCase() === "svg";
-function E2(e, t, r, n) {
+}), od = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+function w2(e, t, r, n) {
const o = gt(() => {
- const a = rg();
- return ad(a, t, { enableHardwareAcceleration: !1 }, id(n), e.transformTemplate), {
+ const a = Qv();
+ return nd(a, t, { enableHardwareAcceleration: !1 }, od(n), e.transformTemplate), {
...a.attrs,
style: { ...a.style }
};
}, [t]);
if (e.style) {
const a = {};
- eg(a, e.style, e), o.style = { ...a, ...o.style };
+ Zv(a, e.style, e), o.style = { ...a, ...o.style };
}
return o;
}
-function P2(e = !1) {
+function C2(e = !1) {
return (r, n, o, { latestValues: a }, i) => {
- const l = (rd(r) ? E2 : b2)(n, a, i, r), u = {
- ...S2(n, typeof r == "string", e),
+ const l = (ed(r) ? w2 : h2)(n, a, i, r), u = {
+ ...g2(n, typeof r == "string", e),
...l,
ref: o
}, { children: d } = n, f = gt(() => Yt(d) ? d.get() : d, [d]);
@@ -12240,13 +12479,13 @@ function P2(e = !1) {
});
};
}
-const sd = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
-function ng(e, { style: t, vars: r }, n, o) {
+const ad = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
+function eg(e, { style: t, vars: r }, n, o) {
Object.assign(e.style, t, o && o.getProjectionStyles(n));
for (const a in r)
e.style.setProperty(a, r[a]);
}
-const og = /* @__PURE__ */ new Set([
+const tg = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -12271,19 +12510,19 @@ const og = /* @__PURE__ */ new Set([
"textLength",
"lengthAdjust"
]);
-function ag(e, t, r, n) {
- ng(e, t, void 0, n);
+function rg(e, t, r, n) {
+ eg(e, t, void 0, n);
for (const o in t.attrs)
- e.setAttribute(og.has(o) ? o : sd(o), t.attrs[o]);
+ e.setAttribute(tg.has(o) ? o : ad(o), t.attrs[o]);
}
-function ld(e, t) {
+function id(e, t) {
const { style: r } = e, n = {};
for (const o in r)
- (Yt(r[o]) || t.style && Yt(t.style[o]) || Xv(o, e)) && (n[o] = r[o]);
+ (Yt(r[o]) || t.style && Yt(t.style[o]) || Yv(o, e)) && (n[o] = r[o]);
return n;
}
-function ig(e, t) {
- const r = ld(e, t);
+function ng(e, t) {
+ const r = id(e, t);
for (const n in e)
if (Yt(e[n]) || Yt(t[n])) {
const o = ni.indexOf(n) !== -1 ? "attr" + n.charAt(0).toUpperCase() + n.substring(1) : n;
@@ -12291,49 +12530,49 @@ function ig(e, t) {
}
return r;
}
-function cd(e, t, r, n = {}, o = {}) {
+function sd(e, t, r, n = {}, o = {}) {
return typeof t == "function" && (t = t(r !== void 0 ? r : e.custom, n, o)), typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function" && (t = t(r !== void 0 ? r : e.custom, n, o)), t;
}
-function sg(e) {
+function og(e) {
const t = be(null);
return t.current === null && (t.current = e()), t.current;
}
-const Ss = (e) => Array.isArray(e), T2 = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), A2 = (e) => Ss(e) ? e[e.length - 1] || 0 : e;
+const xs = (e) => Array.isArray(e), _2 = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), k2 = (e) => xs(e) ? e[e.length - 1] || 0 : e;
function Qi(e) {
const t = Yt(e) ? e.get() : e;
- return T2(t) ? t.toValue() : t;
+ return _2(t) ? t.toValue() : t;
}
-function O2({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: r }, n, o, a) {
+function E2({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: r }, n, o, a) {
const i = {
- latestValues: $2(n, o, a, e),
+ latestValues: P2(n, o, a, e),
renderState: t()
};
return r && (i.mount = (s) => r(n, s, i)), i;
}
-const lg = (e) => (t, r) => {
- const n = ft(Xs), o = ft(ri), a = () => O2(e, t, n, o);
- return r ? a() : sg(a);
+const ag = (e) => (t, r) => {
+ const n = ft(Gs), o = ft(ri), a = () => E2(e, t, n, o);
+ return r ? a() : og(a);
};
-function $2(e, t, r, n) {
+function P2(e, t, r, n) {
const o = {}, a = n(e, {});
for (const f in a)
o[f] = Qi(a[f]);
let { initial: i, animate: s } = e;
- const l = Js(e), c = qv(e);
+ const l = Zs(e), c = Uv(e);
t && c && !l && e.inherit !== !1 && (i === void 0 && (i = t.initial), s === void 0 && (s = t.animate));
let u = r ? r.initial === !1 : !1;
u = u || i === !1;
const d = u ? s : i;
- return d && typeof d != "boolean" && !Zs(d) && (Array.isArray(d) ? d : [d]).forEach((p) => {
- const m = cd(e, p);
+ return d && typeof d != "boolean" && !Ks(d) && (Array.isArray(d) ? d : [d]).forEach((p) => {
+ const m = sd(e, p);
if (!m)
return;
const { transitionEnd: h, transition: v, ...b } = m;
for (const y in b) {
let S = b[y];
if (Array.isArray(S)) {
- const k = u ? S.length - 1 : 0;
- S = S[k];
+ const _ = u ? S.length - 1 : 0;
+ S = S[_];
}
S !== null && (o[y] = S);
}
@@ -12341,10 +12580,10 @@ function $2(e, t, r, n) {
o[y] = h[y];
}), o;
}
-const R2 = {
- useVisualState: lg({
- scrapeMotionValuesFromProps: ig,
- createRenderState: rg,
+const T2 = {
+ useVisualState: ag({
+ scrapeMotionValuesFromProps: ng,
+ createRenderState: Qv,
onMount: (e, t, { renderState: r, latestValues: n }) => {
try {
r.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect();
@@ -12356,29 +12595,29 @@ const R2 = {
height: 0
};
}
- ad(r, n, { enableHardwareAcceleration: !1 }, id(t.tagName), e.transformTemplate), ag(t, r);
+ nd(r, n, { enableHardwareAcceleration: !1 }, od(t.tagName), e.transformTemplate), rg(t, r);
}
})
-}, D2 = {
- useVisualState: lg({
- scrapeMotionValuesFromProps: ld,
- createRenderState: od
+}, A2 = {
+ useVisualState: ag({
+ scrapeMotionValuesFromProps: id,
+ createRenderState: rd
})
};
-function M2(e, { forwardMotionProps: t = !1 }, r, n) {
+function O2(e, { forwardMotionProps: t = !1 }, r, n) {
return {
- ...rd(e) ? R2 : D2,
+ ...ed(e) ? T2 : A2,
preloadedFeatures: r,
- useRender: P2(t),
+ useRender: C2(t),
createVisualElement: n,
Component: e
};
}
-function Gr(e, t, r, n = { passive: !0 }) {
+function Xr(e, t, r, n = { passive: !0 }) {
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r);
}
-const cg = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
-function el(e, t = "page") {
+const ig = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
+function Qs(e, t = "page") {
return {
point: {
x: e[t + "X"],
@@ -12386,12 +12625,12 @@ function el(e, t = "page") {
}
};
}
-const I2 = (e) => (t) => cg(t) && e(t, el(t));
-function Kr(e, t, r, n) {
- return Gr(e, t, I2(r), n);
+const R2 = (e) => (t) => ig(t) && e(t, Qs(t));
+function Zr(e, t, r, n) {
+ return Xr(e, t, R2(r), n);
}
-const F2 = (e, t) => (r) => t(e(r)), mn = (...e) => e.reduce(F2);
-function ug(e) {
+const $2 = (e, t) => (r) => t(e(r)), vn = (...e) => e.reduce($2);
+function sg(e) {
let t = null;
return () => {
const r = () => {
@@ -12400,33 +12639,33 @@ function ug(e) {
return t === null ? (t = e, r) : !1;
};
}
-const jp = ug("dragHorizontal"), Bp = ug("dragVertical");
-function dg(e) {
+const Np = sg("dragHorizontal"), jp = sg("dragVertical");
+function lg(e) {
let t = !1;
if (e === "y")
- t = Bp();
- else if (e === "x")
t = jp();
+ else if (e === "x")
+ t = Np();
else {
- const r = jp(), n = Bp();
+ const r = Np(), n = jp();
r && n ? t = () => {
r(), n();
} : (r && r(), n && n());
}
return t;
}
-function fg() {
- const e = dg(!0);
+function cg() {
+ const e = lg(!0);
return e ? (e(), !1) : !0;
}
-class wn {
+class Cn {
constructor(t) {
this.isMounted = !1, this.node = t;
}
update() {
}
}
-function N2(e) {
+function D2(e) {
let t = [], r = [], n = 0, o = !1, a = !1;
const i = /* @__PURE__ */ new WeakSet(), s = {
/**
@@ -12465,44 +12704,44 @@ const it = {
delta: 0,
timestamp: 0,
isProcessing: !1
-}, j2 = 40;
-let Xc = !0, Wa = !1;
-const tl = [
+}, M2 = 40;
+let Gc = !0, Ua = !1;
+const el = [
"read",
"update",
"preRender",
"render",
"postRender"
-], xo = tl.reduce((e, t) => (e[t] = N2(() => Wa = !0), e), {}), B2 = (e) => xo[e].process(it), pg = (e) => {
- Wa = !1, it.delta = Xc ? 1e3 / 60 : Math.max(Math.min(e - it.timestamp, j2), 1), it.timestamp = e, it.isProcessing = !0, tl.forEach(B2), it.isProcessing = !1, Wa && (Xc = !1, requestAnimationFrame(pg));
-}, z2 = () => {
- Wa = !0, Xc = !0, it.isProcessing || requestAnimationFrame(pg);
-}, tt = tl.reduce((e, t) => {
- const r = xo[t];
- return e[t] = (n, o = !1, a = !1) => (Wa || z2(), r.schedule(n, o, a)), e;
+], So = el.reduce((e, t) => (e[t] = D2(() => Ua = !0), e), {}), I2 = (e) => So[e].process(it), ug = (e) => {
+ Ua = !1, it.delta = Gc ? 1e3 / 60 : Math.max(Math.min(e - it.timestamp, M2), 1), it.timestamp = e, it.isProcessing = !0, el.forEach(I2), it.isProcessing = !1, Ua && (Gc = !1, requestAnimationFrame(ug));
+}, F2 = () => {
+ Ua = !0, Gc = !0, it.isProcessing || requestAnimationFrame(ug);
+}, tt = el.reduce((e, t) => {
+ const r = So[t];
+ return e[t] = (n, o = !1, a = !1) => (Ua || F2(), r.schedule(n, o, a)), e;
}, {});
-function rn(e) {
- tl.forEach((t) => xo[t].cancel(e));
+function nn(e) {
+ el.forEach((t) => So[t].cancel(e));
}
-function zp(e, t) {
+function Bp(e, t) {
const r = "pointer" + (t ? "enter" : "leave"), n = "onHover" + (t ? "Start" : "End"), o = (a, i) => {
- if (a.type === "touch" || fg())
+ if (a.type === "touch" || cg())
return;
const s = e.getProps();
e.animationState && s.whileHover && e.animationState.setActive("whileHover", t), s[n] && tt.update(() => s[n](a, i));
};
- return Kr(e.current, r, o, {
+ return Zr(e.current, r, o, {
passive: !e.getProps()[n]
});
}
-class V2 extends wn {
+class N2 extends Cn {
mount() {
- this.unmount = mn(zp(this.node, !0), zp(this.node, !1));
+ this.unmount = vn(Bp(this.node, !0), Bp(this.node, !1));
}
unmount() {
}
}
-class L2 extends wn {
+class j2 extends Cn {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -12519,49 +12758,49 @@ class L2 extends wn {
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = mn(Gr(this.node.current, "focus", () => this.onFocus()), Gr(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = vn(Xr(this.node.current, "focus", () => this.onFocus()), Xr(this.node.current, "blur", () => this.onBlur()));
}
unmount() {
}
}
-const hg = (e, t) => t ? e === t ? !0 : hg(e, t.parentElement) : !1, bt = (e) => e;
-function Kl(e, t) {
+const dg = (e, t) => t ? e === t ? !0 : dg(e, t.parentElement) : !1, bt = (e) => e;
+function Gl(e, t) {
if (!t)
return;
const r = new PointerEvent("pointer" + e);
- t(r, el(r));
+ t(r, Qs(r));
}
-class W2 extends wn {
+class B2 extends Cn {
constructor() {
super(...arguments), this.removeStartListeners = bt, this.removeEndListeners = bt, this.removeAccessibleListeners = bt, this.startPointerPress = (t, r) => {
if (this.removeEndListeners(), this.isPressing)
return;
- const n = this.node.getProps(), a = Kr(window, "pointerup", (s, l) => {
+ const n = this.node.getProps(), a = Zr(window, "pointerup", (s, l) => {
if (!this.checkPressEnd())
return;
const { onTap: c, onTapCancel: u } = this.node.getProps();
tt.update(() => {
- hg(this.node.current, s.target) ? c && c(s, l) : u && u(s, l);
+ dg(this.node.current, s.target) ? c && c(s, l) : u && u(s, l);
});
- }, { passive: !(n.onTap || n.onPointerUp) }), i = Kr(window, "pointercancel", (s, l) => this.cancelPress(s, l), { passive: !(n.onTapCancel || n.onPointerCancel) });
- this.removeEndListeners = mn(a, i), this.startPress(t, r);
+ }, { passive: !(n.onTap || n.onPointerUp) }), i = Zr(window, "pointercancel", (s, l) => this.cancelPress(s, l), { passive: !(n.onTapCancel || n.onPointerCancel) });
+ this.removeEndListeners = vn(a, i), this.startPress(t, r);
}, this.startAccessiblePress = () => {
const t = (a) => {
if (a.key !== "Enter" || this.isPressing)
return;
const i = (s) => {
- s.key !== "Enter" || !this.checkPressEnd() || Kl("up", (l, c) => {
+ s.key !== "Enter" || !this.checkPressEnd() || Gl("up", (l, c) => {
const { onTap: u } = this.node.getProps();
u && tt.update(() => u(l, c));
});
};
- this.removeEndListeners(), this.removeEndListeners = Gr(this.node.current, "keyup", i), Kl("down", (s, l) => {
+ this.removeEndListeners(), this.removeEndListeners = Xr(this.node.current, "keyup", i), Gl("down", (s, l) => {
this.startPress(s, l);
});
- }, r = Gr(this.node.current, "keydown", t), n = () => {
- this.isPressing && Kl("cancel", (a, i) => this.cancelPress(a, i));
- }, o = Gr(this.node.current, "blur", n);
- this.removeAccessibleListeners = mn(r, o);
+ }, r = Xr(this.node.current, "keydown", t), n = () => {
+ this.isPressing && Gl("cancel", (a, i) => this.cancelPress(a, i));
+ }, o = Xr(this.node.current, "blur", n);
+ this.removeAccessibleListeners = vn(r, o);
};
}
startPress(t, r) {
@@ -12570,7 +12809,7 @@ class W2 extends wn {
o && this.node.animationState && this.node.animationState.setActive("whileTap", !0), n && tt.update(() => n(t, r));
}
checkPressEnd() {
- return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !fg();
+ return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !cg();
}
cancelPress(t, r) {
if (!this.checkPressEnd())
@@ -12579,36 +12818,36 @@ class W2 extends wn {
n && tt.update(() => n(t, r));
}
mount() {
- const t = this.node.getProps(), r = Kr(this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), n = Gr(this.node.current, "focus", this.startAccessiblePress);
- this.removeStartListeners = mn(r, n);
+ const t = this.node.getProps(), r = Zr(this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), n = Xr(this.node.current, "focus", this.startAccessiblePress);
+ this.removeStartListeners = vn(r, n);
}
unmount() {
this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
}
}
-const Kc = /* @__PURE__ */ new WeakMap(), Zl = /* @__PURE__ */ new WeakMap(), U2 = (e) => {
- const t = Kc.get(e.target);
+const Xc = /* @__PURE__ */ new WeakMap(), Xl = /* @__PURE__ */ new WeakMap(), z2 = (e) => {
+ const t = Xc.get(e.target);
t && t(e);
-}, H2 = (e) => {
- e.forEach(U2);
+}, V2 = (e) => {
+ e.forEach(z2);
};
-function Y2({ root: e, ...t }) {
+function L2({ root: e, ...t }) {
const r = e || document;
- Zl.has(r) || Zl.set(r, {});
- const n = Zl.get(r), o = JSON.stringify(t);
- return n[o] || (n[o] = new IntersectionObserver(H2, { root: e, ...t })), n[o];
-}
-function q2(e, t, r) {
- const n = Y2(t);
- return Kc.set(e, r), n.observe(e), () => {
- Kc.delete(e), n.unobserve(e);
+ Xl.has(r) || Xl.set(r, {});
+ const n = Xl.get(r), o = JSON.stringify(t);
+ return n[o] || (n[o] = new IntersectionObserver(V2, { root: e, ...t })), n[o];
+}
+function W2(e, t, r) {
+ const n = L2(t);
+ return Xc.set(e, r), n.observe(e), () => {
+ Xc.delete(e), n.unobserve(e);
};
}
-const G2 = {
+const U2 = {
some: 0,
all: 1
};
-class X2 extends wn {
+class H2 extends Cn {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -12617,7 +12856,7 @@ class X2 extends wn {
const { viewport: t = {} } = this.node.getProps(), { root: r, margin: n, amount: o = "some", once: a } = t, i = {
root: r ? r.current : void 0,
rootMargin: n,
- threshold: typeof o == "number" ? o : G2[o]
+ threshold: typeof o == "number" ? o : U2[o]
}, s = (l) => {
const { isIntersecting: c } = l;
if (this.isInView === c || (this.isInView = c, a && !c && this.hasEnteredView))
@@ -12626,7 +12865,7 @@ class X2 extends wn {
const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), f = c ? u : d;
f && f(l);
};
- return q2(this.node.current, i, s);
+ return W2(this.node.current, i, s);
}
mount() {
this.startObserver();
@@ -12635,29 +12874,29 @@ class X2 extends wn {
if (typeof IntersectionObserver > "u")
return;
const { props: t, prevProps: r } = this.node;
- ["amount", "margin", "root"].some(K2(t, r)) && this.startObserver();
+ ["amount", "margin", "root"].some(Y2(t, r)) && this.startObserver();
}
unmount() {
}
}
-function K2({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Y2({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (r) => e[r] !== t[r];
}
-const Z2 = {
+const q2 = {
inView: {
- Feature: X2
+ Feature: H2
},
tap: {
- Feature: W2
+ Feature: B2
},
focus: {
- Feature: L2
+ Feature: j2
},
hover: {
- Feature: V2
+ Feature: N2
}
};
-function mg(e, t) {
+function fg(e, t) {
if (!Array.isArray(t))
return !1;
const r = t.length;
@@ -12668,19 +12907,19 @@ function mg(e, t) {
return !1;
return !0;
}
-function J2(e) {
+function G2(e) {
const t = {};
return e.values.forEach((r, n) => t[n] = r.get()), t;
}
-function Q2(e) {
+function X2(e) {
const t = {};
return e.values.forEach((r, n) => t[n] = r.getVelocity()), t;
}
-function rl(e, t, r) {
+function tl(e, t, r) {
const n = e.getProps();
- return cd(n, t, r !== void 0 ? r : n.custom, J2(e), Q2(e));
+ return sd(n, t, r !== void 0 ? r : n.custom, G2(e), X2(e));
}
-const eD = "framerAppearId", tD = "data-" + sd(eD);
+const K2 = "framerAppearId", Z2 = "data-" + ad(K2);
let ii = bt, wr = bt;
process.env.NODE_ENV !== "production" && (ii = (e, t) => {
!e && typeof console < "u" && console.warn(t);
@@ -12688,31 +12927,31 @@ process.env.NODE_ENV !== "production" && (ii = (e, t) => {
if (!e)
throw new Error(t);
});
-const vn = (e) => e * 1e3, Zr = (e) => e / 1e3, rD = {
+const gn = (e) => e * 1e3, Jr = (e) => e / 1e3, J2 = {
current: !1
-}, vg = (e) => Array.isArray(e) && typeof e[0] == "number";
-function gg(e) {
- return !!(!e || typeof e == "string" && bg[e] || vg(e) || Array.isArray(e) && e.every(gg));
+}, pg = (e) => Array.isArray(e) && typeof e[0] == "number";
+function hg(e) {
+ return !!(!e || typeof e == "string" && mg[e] || pg(e) || Array.isArray(e) && e.every(hg));
}
-const la = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`, bg = {
+const ca = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`, mg = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: la([0, 0.65, 0.55, 1]),
- circOut: la([0.55, 0, 1, 0.45]),
- backIn: la([0.31, 0.01, 0.66, -0.59]),
- backOut: la([0.33, 1.53, 0.69, 0.99])
+ circIn: ca([0, 0.65, 0.55, 1]),
+ circOut: ca([0.55, 0, 1, 0.45]),
+ backIn: ca([0.31, 0.01, 0.66, -0.59]),
+ backOut: ca([0.33, 1.53, 0.69, 0.99])
};
-function yg(e) {
+function vg(e) {
if (e)
- return vg(e) ? la(e) : Array.isArray(e) ? e.map(yg) : bg[e];
+ return pg(e) ? ca(e) : Array.isArray(e) ? e.map(vg) : mg[e];
}
-function nD(e, t, r, { delay: n = 0, duration: o, repeat: a = 0, repeatType: i = "loop", ease: s, times: l } = {}) {
+function Q2(e, t, r, { delay: n = 0, duration: o, repeat: a = 0, repeatType: i = "loop", ease: s, times: l } = {}) {
const c = { [t]: r };
l && (c.offset = l);
- const u = yg(s);
+ const u = vg(s);
return Array.isArray(u) && (c.easing = u), e.animate(c, {
delay: n,
duration: o,
@@ -12722,68 +12961,68 @@ function nD(e, t, r, { delay: n = 0, duration: o, repeat: a = 0, repeatType: i =
direction: i === "reverse" ? "alternate" : "normal"
});
}
-const Vp = {
+const zp = {
waapi: () => Object.hasOwnProperty.call(Element.prototype, "animate")
-}, Jl = {}, xg = {};
-for (const e in Vp)
- xg[e] = () => (Jl[e] === void 0 && (Jl[e] = Vp[e]()), Jl[e]);
-function oD(e, { repeat: t, repeatType: r = "loop" }) {
+}, Kl = {}, gg = {};
+for (const e in zp)
+ gg[e] = () => (Kl[e] === void 0 && (Kl[e] = zp[e]()), Kl[e]);
+function eD(e, { repeat: t, repeatType: r = "loop" }) {
const n = t && r !== "loop" && t % 2 === 1 ? 0 : e.length - 1;
return e[n];
}
-const Sg = (e, t, r) => (((1 - 3 * r + 3 * t) * e + (3 * r - 6 * t)) * e + 3 * t) * e, aD = 1e-7, iD = 12;
-function sD(e, t, r, n, o) {
+const bg = (e, t, r) => (((1 - 3 * r + 3 * t) * e + (3 * r - 6 * t)) * e + 3 * t) * e, tD = 1e-7, rD = 12;
+function nD(e, t, r, n, o) {
let a, i, s = 0;
do
- i = t + (r - t) / 2, a = Sg(i, n, o) - e, a > 0 ? r = i : t = i;
- while (Math.abs(a) > aD && ++s < iD);
+ i = t + (r - t) / 2, a = bg(i, n, o) - e, a > 0 ? r = i : t = i;
+ while (Math.abs(a) > tD && ++s < rD);
return i;
}
function si(e, t, r, n) {
if (e === t && r === n)
return bt;
- const o = (a) => sD(a, 0, 1, e, r);
- return (a) => a === 0 || a === 1 ? a : Sg(o(a), t, n);
+ const o = (a) => nD(a, 0, 1, e, r);
+ return (a) => a === 0 || a === 1 ? a : bg(o(a), t, n);
}
-const lD = si(0.42, 0, 1, 1), cD = si(0, 0, 0.58, 1), wg = si(0.42, 0, 0.58, 1), uD = (e) => Array.isArray(e) && typeof e[0] != "number", Cg = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, _g = (e) => (t) => 1 - e(1 - t), kg = (e) => 1 - Math.sin(Math.acos(e)), ud = _g(kg), dD = Cg(ud), Eg = si(0.33, 1.53, 0.69, 0.99), dd = _g(Eg), fD = Cg(dd), pD = (e) => (e *= 2) < 1 ? 0.5 * dd(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Lp = {
+const oD = si(0.42, 0, 1, 1), aD = si(0, 0, 0.58, 1), yg = si(0.42, 0, 0.58, 1), iD = (e) => Array.isArray(e) && typeof e[0] != "number", xg = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Sg = (e) => (t) => 1 - e(1 - t), wg = (e) => 1 - Math.sin(Math.acos(e)), ld = Sg(wg), sD = xg(ld), Cg = si(0.33, 1.53, 0.69, 0.99), cd = Sg(Cg), lD = xg(cd), cD = (e) => (e *= 2) < 1 ? 0.5 * cd(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Vp = {
linear: bt,
- easeIn: lD,
- easeInOut: wg,
- easeOut: cD,
- circIn: kg,
- circInOut: dD,
- circOut: ud,
- backIn: dd,
- backInOut: fD,
- backOut: Eg,
- anticipate: pD
-}, Wp = (e) => {
+ easeIn: oD,
+ easeInOut: yg,
+ easeOut: aD,
+ circIn: wg,
+ circInOut: sD,
+ circOut: ld,
+ backIn: cd,
+ backInOut: lD,
+ backOut: Cg,
+ anticipate: cD
+}, Lp = (e) => {
if (Array.isArray(e)) {
wr(e.length === 4, "Cubic bezier arrays must contain four numerical values.");
const [t, r, n, o] = e;
return si(t, r, n, o);
} else if (typeof e == "string")
- return wr(Lp[e] !== void 0, `Invalid easing type '${e}'`), Lp[e];
+ return wr(Vp[e] !== void 0, `Invalid easing type '${e}'`), Vp[e];
return e;
-}, fd = (e, t) => (r) => !!(oi(r) && p2.test(r) && r.startsWith(e) || t && Object.prototype.hasOwnProperty.call(r, t)), Pg = (e, t, r) => (n) => {
+}, ud = (e, t) => (r) => !!(oi(r) && c2.test(r) && r.startsWith(e) || t && Object.prototype.hasOwnProperty.call(r, t)), _g = (e, t, r) => (n) => {
if (!oi(n))
return n;
- const [o, a, i, s] = n.match(Qs);
+ const [o, a, i, s] = n.match(Js);
return {
[e]: parseFloat(o),
[t]: parseFloat(a),
[r]: parseFloat(i),
alpha: s !== void 0 ? parseFloat(s) : 1
};
-}, hD = (e) => yn(0, 255, e), Ql = {
- ...Yn,
- transform: (e) => Math.round(hD(e))
-}, Fn = {
- test: fd("rgb", "red"),
- parse: Pg("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: r, alpha: n = 1 }) => "rgba(" + Ql.transform(e) + ", " + Ql.transform(t) + ", " + Ql.transform(r) + ", " + ba(ga.transform(n)) + ")"
+}, uD = (e) => xn(0, 255, e), Zl = {
+ ...Gn,
+ transform: (e) => Math.round(uD(e))
+}, Nn = {
+ test: ud("rgb", "red"),
+ parse: _g("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: r, alpha: n = 1 }) => "rgba(" + Zl.transform(e) + ", " + Zl.transform(t) + ", " + Zl.transform(r) + ", " + xa(ya.transform(n)) + ")"
};
-function mD(e) {
+function dD(e) {
let t = "", r = "", n = "", o = "";
return e.length > 5 ? (t = e.substring(1, 3), r = e.substring(3, 5), n = e.substring(5, 7), o = e.substring(7, 9)) : (t = e.substring(1, 2), r = e.substring(2, 3), n = e.substring(3, 4), o = e.substring(4, 5), t += t, r += r, n += n, o += o), {
red: parseInt(t, 16),
@@ -12792,30 +13031,30 @@ function mD(e) {
alpha: o ? parseInt(o, 16) / 255 : 1
};
}
-const Zc = {
- test: fd("#"),
- parse: mD,
- transform: Fn.transform
-}, co = {
- test: fd("hsl", "hue"),
- parse: Pg("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: r, alpha: n = 1 }) => "hsla(" + Math.round(e) + ", " + Ir.transform(ba(t)) + ", " + Ir.transform(ba(r)) + ", " + ba(ga.transform(n)) + ")"
-}, $t = {
- test: (e) => Fn.test(e) || Zc.test(e) || co.test(e),
- parse: (e) => Fn.test(e) ? Fn.parse(e) : co.test(e) ? co.parse(e) : Zc.parse(e),
- transform: (e) => oi(e) ? e : e.hasOwnProperty("red") ? Fn.transform(e) : co.transform(e)
+const Kc = {
+ test: ud("#"),
+ parse: dD,
+ transform: Nn.transform
+}, uo = {
+ test: ud("hsl", "hue"),
+ parse: _g("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: r, alpha: n = 1 }) => "hsla(" + Math.round(e) + ", " + Fr.transform(xa(t)) + ", " + Fr.transform(xa(r)) + ", " + xa(ya.transform(n)) + ")"
+}, Rt = {
+ test: (e) => Nn.test(e) || Kc.test(e) || uo.test(e),
+ parse: (e) => Nn.test(e) ? Nn.parse(e) : uo.test(e) ? uo.parse(e) : Kc.parse(e),
+ transform: (e) => oi(e) ? e : e.hasOwnProperty("red") ? Nn.transform(e) : uo.transform(e)
}, st = (e, t, r) => -r * e + r * t + e;
-function ec(e, t, r) {
+function Jl(e, t, r) {
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
}
-function vD({ hue: e, saturation: t, lightness: r, alpha: n }) {
+function fD({ hue: e, saturation: t, lightness: r, alpha: n }) {
e /= 360, t /= 100, r /= 100;
let o = 0, a = 0, i = 0;
if (!t)
o = a = i = r;
else {
const s = r < 0.5 ? r * (1 + t) : r + t - r * t, l = 2 * r - s;
- o = ec(l, s, e + 1 / 3), a = ec(l, s, e), i = ec(l, s, e - 1 / 3);
+ o = Jl(l, s, e + 1 / 3), a = Jl(l, s, e), i = Jl(l, s, e - 1 / 3);
}
return {
red: Math.round(o * 255),
@@ -12824,45 +13063,45 @@ function vD({ hue: e, saturation: t, lightness: r, alpha: n }) {
alpha: n
};
}
-const tc = (e, t, r) => {
+const Ql = (e, t, r) => {
const n = e * e;
return Math.sqrt(Math.max(0, r * (t * t - n) + n));
-}, gD = [Zc, Fn, co], bD = (e) => gD.find((t) => t.test(e));
-function Up(e) {
- const t = bD(e);
+}, pD = [Kc, Nn, uo], hD = (e) => pD.find((t) => t.test(e));
+function Wp(e) {
+ const t = hD(e);
wr(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`);
let r = t.parse(e);
- return t === co && (r = vD(r)), r;
+ return t === uo && (r = fD(r)), r;
}
-const Tg = (e, t) => {
- const r = Up(e), n = Up(t), o = { ...r };
- return (a) => (o.red = tc(r.red, n.red, a), o.green = tc(r.green, n.green, a), o.blue = tc(r.blue, n.blue, a), o.alpha = st(r.alpha, n.alpha, a), Fn.transform(o));
+const kg = (e, t) => {
+ const r = Wp(e), n = Wp(t), o = { ...r };
+ return (a) => (o.red = Ql(r.red, n.red, a), o.green = Ql(r.green, n.green, a), o.blue = Ql(r.blue, n.blue, a), o.alpha = st(r.alpha, n.alpha, a), Nn.transform(o));
};
-function yD(e) {
+function mD(e) {
var t, r;
- return isNaN(e) && oi(e) && (((t = e.match(Qs)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(Jv)) === null || r === void 0 ? void 0 : r.length) || 0) > 0;
+ return isNaN(e) && oi(e) && (((t = e.match(Js)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(Xv)) === null || r === void 0 ? void 0 : r.length) || 0) > 0;
}
-const Ag = {
- regex: d2,
+const Eg = {
+ regex: s2,
countKey: "Vars",
token: "${v}",
parse: bt
-}, Og = {
- regex: Jv,
+}, Pg = {
+ regex: Xv,
countKey: "Colors",
token: "${c}",
- parse: $t.parse
-}, $g = {
- regex: Qs,
+ parse: Rt.parse
+}, Tg = {
+ regex: Js,
countKey: "Numbers",
token: "${n}",
- parse: Yn.parse
+ parse: Gn.parse
};
-function rc(e, { regex: t, countKey: r, token: n, parse: o }) {
+function ec(e, { regex: t, countKey: r, token: n, parse: o }) {
const a = e.tokenised.match(t);
a && (e["num" + r] = a.length, e.tokenised = e.tokenised.replace(t, n), e.values.push(...a.map(o)));
}
-function ws(e) {
+function Ss(e) {
const t = e.toString(), r = {
value: t,
tokenised: t,
@@ -12871,149 +13110,149 @@ function ws(e) {
numColors: 0,
numNumbers: 0
};
- return r.value.includes("var(--") && rc(r, Ag), rc(r, Og), rc(r, $g), r;
+ return r.value.includes("var(--") && ec(r, Eg), ec(r, Pg), ec(r, Tg), r;
}
-function Rg(e) {
- return ws(e).values;
+function Ag(e) {
+ return Ss(e).values;
}
-function Dg(e) {
- const { values: t, numColors: r, numVars: n, tokenised: o } = ws(e), a = t.length;
+function Og(e) {
+ const { values: t, numColors: r, numVars: n, tokenised: o } = Ss(e), a = t.length;
return (i) => {
let s = o;
for (let l = 0; l < a; l++)
- l < n ? s = s.replace(Ag.token, i[l]) : l < n + r ? s = s.replace(Og.token, $t.transform(i[l])) : s = s.replace($g.token, ba(i[l]));
+ l < n ? s = s.replace(Eg.token, i[l]) : l < n + r ? s = s.replace(Pg.token, Rt.transform(i[l])) : s = s.replace(Tg.token, xa(i[l]));
return s;
};
}
-const xD = (e) => typeof e == "number" ? 0 : e;
-function SD(e) {
- const t = Rg(e);
- return Dg(e)(t.map(xD));
-}
-const xn = {
- test: yD,
- parse: Rg,
- createTransformer: Dg,
- getAnimatableNone: SD
-}, Mg = (e, t) => (r) => `${r > 0 ? t : e}`;
-function Ig(e, t) {
- return typeof e == "number" ? (r) => st(e, t, r) : $t.test(e) ? Tg(e, t) : e.startsWith("var(") ? Mg(e, t) : Ng(e, t);
-}
-const Fg = (e, t) => {
- const r = [...e], n = r.length, o = e.map((a, i) => Ig(a, t[i]));
+const vD = (e) => typeof e == "number" ? 0 : e;
+function gD(e) {
+ const t = Ag(e);
+ return Og(e)(t.map(vD));
+}
+const Sn = {
+ test: mD,
+ parse: Ag,
+ createTransformer: Og,
+ getAnimatableNone: gD
+}, Rg = (e, t) => (r) => `${r > 0 ? t : e}`;
+function $g(e, t) {
+ return typeof e == "number" ? (r) => st(e, t, r) : Rt.test(e) ? kg(e, t) : e.startsWith("var(") ? Rg(e, t) : Mg(e, t);
+}
+const Dg = (e, t) => {
+ const r = [...e], n = r.length, o = e.map((a, i) => $g(a, t[i]));
return (a) => {
for (let i = 0; i < n; i++)
r[i] = o[i](a);
return r;
};
-}, wD = (e, t) => {
+}, bD = (e, t) => {
const r = { ...e, ...t }, n = {};
for (const o in r)
- e[o] !== void 0 && t[o] !== void 0 && (n[o] = Ig(e[o], t[o]));
+ e[o] !== void 0 && t[o] !== void 0 && (n[o] = $g(e[o], t[o]));
return (o) => {
for (const a in n)
r[a] = n[a](o);
return r;
};
-}, Ng = (e, t) => {
- const r = xn.createTransformer(t), n = ws(e), o = ws(t);
- return n.numVars === o.numVars && n.numColors === o.numColors && n.numNumbers >= o.numNumbers ? mn(Fg(n.values, o.values), r) : (ii(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Mg(e, t));
-}, Ua = (e, t, r) => {
+}, Mg = (e, t) => {
+ const r = Sn.createTransformer(t), n = Ss(e), o = Ss(t);
+ return n.numVars === o.numVars && n.numColors === o.numColors && n.numNumbers >= o.numNumbers ? vn(Dg(n.values, o.values), r) : (ii(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Rg(e, t));
+}, Ha = (e, t, r) => {
const n = t - e;
return n === 0 ? 1 : (r - e) / n;
-}, Hp = (e, t) => (r) => st(e, t, r);
-function CD(e) {
- return typeof e == "number" ? Hp : typeof e == "string" ? $t.test(e) ? Tg : Ng : Array.isArray(e) ? Fg : typeof e == "object" ? wD : Hp;
+}, Up = (e, t) => (r) => st(e, t, r);
+function yD(e) {
+ return typeof e == "number" ? Up : typeof e == "string" ? Rt.test(e) ? kg : Mg : Array.isArray(e) ? Dg : typeof e == "object" ? bD : Up;
}
-function _D(e, t, r) {
- const n = [], o = r || CD(e[0]), a = e.length - 1;
+function xD(e, t, r) {
+ const n = [], o = r || yD(e[0]), a = e.length - 1;
for (let i = 0; i < a; i++) {
let s = o(e[i], e[i + 1]);
if (t) {
const l = Array.isArray(t) ? t[i] || bt : t;
- s = mn(l, s);
+ s = vn(l, s);
}
n.push(s);
}
return n;
}
-function jg(e, t, { clamp: r = !0, ease: n, mixer: o } = {}) {
+function Ig(e, t, { clamp: r = !0, ease: n, mixer: o } = {}) {
const a = e.length;
if (wr(a === t.length, "Both input and output ranges must be the same length"), a === 1)
return () => t[0];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- const i = _D(t, n, o), s = i.length, l = (c) => {
+ const i = xD(t, n, o), s = i.length, l = (c) => {
let u = 0;
if (s > 1)
for (; u < e.length - 2 && !(c < e[u + 1]); u++)
;
- const d = Ua(e[u], e[u + 1], c);
+ const d = Ha(e[u], e[u + 1], c);
return i[u](d);
};
- return r ? (c) => l(yn(e[0], e[a - 1], c)) : l;
+ return r ? (c) => l(xn(e[0], e[a - 1], c)) : l;
}
-function kD(e, t) {
+function SD(e, t) {
const r = e[e.length - 1];
for (let n = 1; n <= t; n++) {
- const o = Ua(0, t, n);
+ const o = Ha(0, t, n);
e.push(st(r, 1, o));
}
}
-function ED(e) {
+function wD(e) {
const t = [0];
- return kD(t, e.length - 1), t;
+ return SD(t, e.length - 1), t;
}
-function PD(e, t) {
+function CD(e, t) {
return e.map((r) => r * t);
}
-function TD(e, t) {
- return e.map(() => t || wg).splice(0, e.length - 1);
+function _D(e, t) {
+ return e.map(() => t || yg).splice(0, e.length - 1);
}
-function Cs({ duration: e = 300, keyframes: t, times: r, ease: n = "easeInOut" }) {
- const o = uD(n) ? n.map(Wp) : Wp(n), a = {
+function ws({ duration: e = 300, keyframes: t, times: r, ease: n = "easeInOut" }) {
+ const o = iD(n) ? n.map(Lp) : Lp(n), a = {
done: !1,
value: t[0]
- }, i = PD(
+ }, i = CD(
// Only use the provided offsets if they're the correct length
// TODO Maybe we should warn here if there's a length mismatch
- r && r.length === t.length ? r : ED(t),
+ r && r.length === t.length ? r : wD(t),
e
- ), s = jg(i, t, {
- ease: Array.isArray(o) ? o : TD(t, o)
+ ), s = Ig(i, t, {
+ ease: Array.isArray(o) ? o : _D(t, o)
});
return {
calculatedDuration: e,
next: (l) => (a.value = s(l), a.done = l >= e, a)
};
}
-function Bg(e, t) {
+function Fg(e, t) {
return t ? e * (1e3 / t) : 0;
}
-const AD = 5;
-function zg(e, t, r) {
- const n = Math.max(t - AD, 0);
- return Bg(r - e(n), t - n);
+const kD = 5;
+function Ng(e, t, r) {
+ const n = Math.max(t - kD, 0);
+ return Fg(r - e(n), t - n);
}
-const nc = 1e-3, OD = 0.01, Yp = 10, $D = 0.05, RD = 1;
-function DD({ duration: e = 800, bounce: t = 0.25, velocity: r = 0, mass: n = 1 }) {
+const tc = 1e-3, ED = 0.01, Hp = 10, PD = 0.05, TD = 1;
+function AD({ duration: e = 800, bounce: t = 0.25, velocity: r = 0, mass: n = 1 }) {
let o, a;
- ii(e <= vn(Yp), "Spring duration must be 10 seconds or less");
+ ii(e <= gn(Hp), "Spring duration must be 10 seconds or less");
let i = 1 - t;
- i = yn($D, RD, i), e = yn(OD, Yp, Zr(e)), i < 1 ? (o = (c) => {
- const u = c * i, d = u * e, f = u - r, p = Jc(c, i), m = Math.exp(-d);
- return nc - f / p * m;
+ i = xn(PD, TD, i), e = xn(ED, Hp, Jr(e)), i < 1 ? (o = (c) => {
+ const u = c * i, d = u * e, f = u - r, p = Zc(c, i), m = Math.exp(-d);
+ return tc - f / p * m;
}, a = (c) => {
- const d = c * i * e, f = d * r + r, p = Math.pow(i, 2) * Math.pow(c, 2) * e, m = Math.exp(-d), h = Jc(Math.pow(c, 2), i);
- return (-o(c) + nc > 0 ? -1 : 1) * ((f - p) * m) / h;
+ const d = c * i * e, f = d * r + r, p = Math.pow(i, 2) * Math.pow(c, 2) * e, m = Math.exp(-d), h = Zc(Math.pow(c, 2), i);
+ return (-o(c) + tc > 0 ? -1 : 1) * ((f - p) * m) / h;
}) : (o = (c) => {
const u = Math.exp(-c * e), d = (c - r) * e + 1;
- return -nc + u * d;
+ return -tc + u * d;
}, a = (c) => {
const u = Math.exp(-c * e), d = (r - c) * (e * e);
return u * d;
});
- const s = 5 / e, l = ID(o, a, s);
- if (e = vn(e), isNaN(l))
+ const s = 5 / e, l = RD(o, a, s);
+ if (e = gn(e), isNaN(l))
return {
stiffness: 100,
damping: 10,
@@ -13028,21 +13267,21 @@ function DD({ duration: e = 800, bounce: t = 0.25, velocity: r = 0, mass: n = 1
};
}
}
-const MD = 12;
-function ID(e, t, r) {
+const OD = 12;
+function RD(e, t, r) {
let n = r;
- for (let o = 1; o < MD; o++)
+ for (let o = 1; o < OD; o++)
n = n - e(n) / t(n);
return n;
}
-function Jc(e, t) {
+function Zc(e, t) {
return e * Math.sqrt(1 - t * t);
}
-const FD = ["duration", "bounce"], ND = ["stiffness", "damping", "mass"];
-function qp(e, t) {
+const $D = ["duration", "bounce"], DD = ["stiffness", "damping", "mass"];
+function Yp(e, t) {
return t.some((r) => e[r] !== void 0);
}
-function jD(e) {
+function MD(e) {
let t = {
velocity: 0,
stiffness: 100,
@@ -13051,8 +13290,8 @@ function jD(e) {
isResolvedFromDuration: !1,
...e
};
- if (!qp(e, ND) && qp(e, FD)) {
- const r = DD(e);
+ if (!Yp(e, DD) && Yp(e, $D)) {
+ const r = AD(e);
t = {
...t,
...r,
@@ -13062,42 +13301,42 @@ function jD(e) {
}
return t;
}
-function Vg({ keyframes: e, restDelta: t, restSpeed: r, ...n }) {
- const o = e[0], a = e[e.length - 1], i = { done: !1, value: o }, { stiffness: s, damping: l, mass: c, velocity: u, duration: d, isResolvedFromDuration: f } = jD(n), p = u ? -Zr(u) : 0, m = l / (2 * Math.sqrt(s * c)), h = a - o, v = Zr(Math.sqrt(s / c)), b = Math.abs(h) < 5;
+function jg({ keyframes: e, restDelta: t, restSpeed: r, ...n }) {
+ const o = e[0], a = e[e.length - 1], i = { done: !1, value: o }, { stiffness: s, damping: l, mass: c, velocity: u, duration: d, isResolvedFromDuration: f } = MD(n), p = u ? -Jr(u) : 0, m = l / (2 * Math.sqrt(s * c)), h = a - o, v = Jr(Math.sqrt(s / c)), b = Math.abs(h) < 5;
r || (r = b ? 0.01 : 2), t || (t = b ? 5e-3 : 0.5);
let y;
if (m < 1) {
- const S = Jc(v, m);
- y = (k) => {
- const w = Math.exp(-m * v * k);
- return a - w * ((p + m * v * h) / S * Math.sin(S * k) + h * Math.cos(S * k));
+ const S = Zc(v, m);
+ y = (_) => {
+ const w = Math.exp(-m * v * _);
+ return a - w * ((p + m * v * h) / S * Math.sin(S * _) + h * Math.cos(S * _));
};
} else if (m === 1)
y = (S) => a - Math.exp(-v * S) * (h + (p + v * h) * S);
else {
const S = v * Math.sqrt(m * m - 1);
- y = (k) => {
- const w = Math.exp(-m * v * k), M = Math.min(S * k, 300);
+ y = (_) => {
+ const w = Math.exp(-m * v * _), M = Math.min(S * _, 300);
return a - w * ((p + m * v * h) * Math.sinh(M) + S * h * Math.cosh(M)) / S;
};
}
return {
calculatedDuration: f && d || null,
next: (S) => {
- const k = y(S);
+ const _ = y(S);
if (f)
i.done = S >= d;
else {
let w = p;
- S !== 0 && (m < 1 ? w = zg(y, S, k) : w = 0);
- const M = Math.abs(w) <= r, P = Math.abs(a - k) <= t;
+ S !== 0 && (m < 1 ? w = Ng(y, S, _) : w = 0);
+ const M = Math.abs(w) <= r, P = Math.abs(a - _) <= t;
i.done = M && P;
}
- return i.value = i.done ? a : k, i;
+ return i.value = i.done ? a : _, i;
}
};
}
-function Gp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 325, bounceDamping: o = 10, bounceStiffness: a = 500, modifyTarget: i, min: s, max: l, restDelta: c = 0.5, restSpeed: u }) {
+function qp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 325, bounceDamping: o = 10, bounceStiffness: a = 500, modifyTarget: i, min: s, max: l, restDelta: c = 0.5, restSpeed: u }) {
const d = e[0], f = {
done: !1,
value: d
@@ -13105,15 +13344,15 @@ function Gp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3
let h = r * t;
const v = d + h, b = i === void 0 ? v : i(v);
b !== v && (h = b - d);
- const y = (I) => -h * Math.exp(-I / n), S = (I) => b + y(I), k = (I) => {
+ const y = (I) => -h * Math.exp(-I / n), S = (I) => b + y(I), _ = (I) => {
const z = y(I), j = S(I);
f.done = Math.abs(z) <= c, f.value = f.done ? b : j;
};
let w, M;
const P = (I) => {
- p(f.value) && (w = I, M = Vg({
+ p(f.value) && (w = I, M = jg({
keyframes: [f.value, m(f.value)],
- velocity: zg(S, I, f.value),
+ velocity: Ng(S, I, f.value),
damping: o,
stiffness: a,
restDelta: c,
@@ -13124,38 +13363,38 @@ function Gp({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3
calculatedDuration: null,
next: (I) => {
let z = !1;
- return !M && w === void 0 && (z = !0, k(I), P(I)), w !== void 0 && I > w ? M.next(I - w) : (!z && k(I), f);
+ return !M && w === void 0 && (z = !0, _(I), P(I)), w !== void 0 && I > w ? M.next(I - w) : (!z && _(I), f);
}
};
}
-const BD = (e) => {
+const ID = (e) => {
const t = ({ timestamp: r }) => e(r);
return {
start: () => tt.update(t, !0),
- stop: () => rn(t),
+ stop: () => nn(t),
/**
* If we're processing this frame we can use the
* framelocked timestamp to keep things in sync.
*/
now: () => it.isProcessing ? it.timestamp : performance.now()
};
-}, Xp = 2e4;
-function Kp(e) {
+}, Gp = 2e4;
+function Xp(e) {
let t = 0;
const r = 50;
let n = e.next(t);
- for (; !n.done && t < Xp; )
+ for (; !n.done && t < Gp; )
t += r, n = e.next(t);
- return t >= Xp ? 1 / 0 : t;
-}
-const zD = {
- decay: Gp,
- inertia: Gp,
- tween: Cs,
- keyframes: Cs,
- spring: Vg
+ return t >= Gp ? 1 / 0 : t;
+}
+const FD = {
+ decay: qp,
+ inertia: qp,
+ tween: ws,
+ keyframes: ws,
+ spring: jg
};
-function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type: o = "keyframes", repeat: a = 0, repeatDelay: i = 0, repeatType: s = "loop", onPlay: l, onStop: c, onComplete: u, onUpdate: d, ...f }) {
+function Cs({ autoplay: e = !0, delay: t = 0, driver: r = ID, keyframes: n, type: o = "keyframes", repeat: a = 0, repeatDelay: i = 0, repeatType: s = "loop", onPlay: l, onStop: c, onComplete: u, onUpdate: d, ...f }) {
let p = 1, m = !1, h, v;
const b = () => {
h && h(), v = new Promise((N) => {
@@ -13164,9 +13403,9 @@ function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type
};
b();
let y;
- const S = zD[o] || Cs;
- let k;
- S !== Cs && typeof n[0] != "number" && (k = jg([0, 100], n, {
+ const S = FD[o] || ws;
+ let _;
+ S !== ws && typeof n[0] != "number" && (_ = Ig([0, 100], n, {
clamp: !1
}), n = [0, 100]);
const w = S({ ...f, keyframes: n });
@@ -13177,7 +13416,7 @@ function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type
velocity: -(f.velocity || 0)
}));
let P = "idle", I = null, z = null, j = null;
- w.calculatedDuration === null && a && (w.calculatedDuration = Kp(w));
+ w.calculatedDuration === null && a && (w.calculatedDuration = Xp(w));
const { calculatedDuration: X } = w;
let ne = 1 / 0, J = 1 / 0;
X !== null && (ne = X + i, J = ne * (a + 1) - i);
@@ -13188,22 +13427,22 @@ function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type
p > 0 && (z = Math.min(z, N)), p < 0 && (z = Math.min(N - J / p, z)), I !== null ? Q = I : Q = Math.round(N - z) * p;
const V = Q - t * (p >= 0 ? 1 : -1), T = p >= 0 ? V < 0 : V > J;
Q = Math.max(V, 0), P === "finished" && I === null && (Q = J);
- let O = Q, B = w;
+ let A = Q, B = w;
if (a) {
const Z = Q / ne;
let Y = Math.floor(Z), ae = Z % 1;
!ae && Z >= 1 && (ae = 1), ae === 1 && Y--, Y = Math.min(Y, a + 1);
- const $ = !!(Y % 2);
- $ && (s === "reverse" ? (ae = 1 - ae, i && (ae -= i / ne)) : s === "mirror" && (B = M));
- let Se = yn(0, 1, ae);
- Q > J && (Se = s === "reverse" && $ ? 1 : 0), O = Se * ne;
+ const R = !!(Y % 2);
+ R && (s === "reverse" ? (ae = 1 - ae, i && (ae -= i / ne)) : s === "mirror" && (B = M));
+ let Se = xn(0, 1, ae);
+ Q > J && (Se = s === "reverse" && R ? 1 : 0), A = Se * ne;
}
- const C = T ? { done: !1, value: n[0] } : B.next(O);
- k && (C.value = k(C.value));
+ const C = T ? { done: !1, value: n[0] } : B.next(A);
+ _ && (C.value = _(C.value));
let { done: H } = C;
!T && X !== null && (H = p >= 0 ? Q >= J : Q <= 0);
- const A = I === null && (P === "finished" || P === "running" && H);
- return d && d(C.value), A && ce(), C;
+ const O = I === null && (P === "finished" || P === "running" && H);
+ return d && d(C.value), O && ce(), C;
}, oe = () => {
y && y.stop(), y = void 0;
}, D = () => {
@@ -13223,20 +13462,20 @@ function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type
return v.then(N, V);
},
get time() {
- return Zr(Q);
+ return Jr(Q);
},
set time(N) {
- N = vn(N), Q = N, I !== null || !y || p === 0 ? I = N : z = y.now() - N / p;
+ N = gn(N), Q = N, I !== null || !y || p === 0 ? I = N : z = y.now() - N / p;
},
get duration() {
- const N = w.calculatedDuration === null ? Kp(w) : w.calculatedDuration;
- return Zr(N);
+ const N = w.calculatedDuration === null ? Xp(w) : w.calculatedDuration;
+ return Jr(N);
},
get speed() {
return p;
},
set speed(N) {
- N === p || !y || (p = N, F.time = Zr(Q));
+ N === p || !y || (p = N, F.time = Jr(Q));
},
get state() {
return P;
@@ -13258,15 +13497,15 @@ function _s({ autoplay: e = !0, delay: t = 0, driver: r = BD, keyframes: n, type
};
return F;
}
-const VD = /* @__PURE__ */ new Set([
+const ND = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform",
"backgroundColor"
-]), Oi = 10, LD = 2e4, WD = (e, t) => t.type === "spring" || e === "backgroundColor" || !gg(t.ease);
-function UD(e, t, { onUpdate: r, onComplete: n, ...o }) {
- if (!(xg.waapi() && VD.has(t) && !o.repeatDelay && o.repeatType !== "mirror" && o.damping !== 0 && o.type !== "inertia"))
+]), Oi = 10, jD = 2e4, BD = (e, t) => t.type === "spring" || e === "backgroundColor" || !hg(t.ease);
+function zD(e, t, { onUpdate: r, onComplete: n, ...o }) {
+ if (!(gg.waapi() && ND.has(t) && !o.repeatDelay && o.repeatType !== "mirror" && o.damping !== 0 && o.type !== "inertia"))
return !1;
let i = !1, s, l;
const c = () => {
@@ -13276,20 +13515,20 @@ function UD(e, t, { onUpdate: r, onComplete: n, ...o }) {
};
c();
let { keyframes: u, duration: d = 300, ease: f, times: p } = o;
- if (WD(t, o)) {
- const b = _s({
+ if (BD(t, o)) {
+ const b = Cs({
...o,
repeat: 0,
delay: 0
});
let y = { done: !1, value: u[0] };
const S = [];
- let k = 0;
- for (; !y.done && k < LD; )
- y = b.sample(k), S.push(y.value), k += Oi;
- p = void 0, u = S, d = k - Oi, f = "linear";
+ let _ = 0;
+ for (; !y.done && _ < jD; )
+ y = b.sample(_), S.push(y.value), _ += Oi;
+ p = void 0, u = S, d = _ - Oi, f = "linear";
}
- const m = nD(e.owner.current, t, u, {
+ const m = Q2(e.owner.current, t, u, {
...o,
duration: d,
/**
@@ -13306,16 +13545,16 @@ function UD(e, t, { onUpdate: r, onComplete: n, ...o }) {
tt.update(h), s(), c();
};
return m.onfinish = () => {
- e.set(oD(u, o)), n && n(), v();
+ e.set(eD(u, o)), n && n(), v();
}, {
then(b, y) {
return l.then(b, y);
},
get time() {
- return Zr(m.currentTime || 0);
+ return Jr(m.currentTime || 0);
},
set time(b) {
- m.currentTime = vn(b);
+ m.currentTime = gn(b);
},
get speed() {
return m.playbackRate;
@@ -13324,10 +13563,10 @@ function UD(e, t, { onUpdate: r, onComplete: n, ...o }) {
m.playbackRate = b;
},
get duration() {
- return Zr(d);
+ return Jr(d);
},
play: () => {
- i || (m.play(), rn(h));
+ i || (m.play(), nn(h));
},
pause: () => m.pause(),
stop: () => {
@@ -13335,7 +13574,7 @@ function UD(e, t, { onUpdate: r, onComplete: n, ...o }) {
return;
const { currentTime: b } = m;
if (b) {
- const y = _s({
+ const y = Cs({
...o,
autoplay: !1
});
@@ -13347,7 +13586,7 @@ function UD(e, t, { onUpdate: r, onComplete: n, ...o }) {
cancel: v
};
}
-function HD({ keyframes: e, delay: t, onUpdate: r, onComplete: n }) {
+function VD({ keyframes: e, delay: t, onUpdate: r, onComplete: n }) {
const o = () => (r && r(e[e.length - 1]), n && n(), {
time: 0,
speed: 1,
@@ -13359,105 +13598,105 @@ function HD({ keyframes: e, delay: t, onUpdate: r, onComplete: n }) {
cancel: bt,
complete: bt
});
- return t ? _s({
+ return t ? Cs({
keyframes: [0, 1],
duration: 0,
delay: t,
onComplete: o
}) : o();
}
-const YD = {
+const LD = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, qD = (e) => ({
+}, WD = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), GD = {
+}), UD = {
type: "keyframes",
duration: 0.8
-}, XD = {
+}, HD = {
type: "keyframes",
ease: [0.25, 0.1, 0.35, 1],
duration: 0.3
-}, KD = (e, { keyframes: t }) => t.length > 2 ? GD : Hn.has(e) ? e.startsWith("scale") ? qD(t[1]) : YD : XD, Qc = (e, t) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
-(xn.test(t) || t === "0") && // And it contains numbers and/or colors
-!t.startsWith("url(")), ZD = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
-function JD(e) {
+}, YD = (e, { keyframes: t }) => t.length > 2 ? UD : qn.has(e) ? e.startsWith("scale") ? WD(t[1]) : LD : HD, Jc = (e, t) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
+(Sn.test(t) || t === "0") && // And it contains numbers and/or colors
+!t.startsWith("url(")), qD = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
+function GD(e) {
const [t, r] = e.slice(0, -1).split("(");
if (t === "drop-shadow")
return e;
- const [n] = r.match(Qs) || [];
+ const [n] = r.match(Js) || [];
if (!n)
return e;
const o = r.replace(n, "");
- let a = ZD.has(t) ? 1 : 0;
+ let a = qD.has(t) ? 1 : 0;
return n !== r && (a *= 100), t + "(" + a + o + ")";
}
-const QD = /([a-z-]*)\(.*?\)/g, eu = {
- ...xn,
+const XD = /([a-z-]*)\(.*?\)/g, Qc = {
+ ...Sn,
getAnimatableNone: (e) => {
- const t = e.match(QD);
- return t ? t.map(JD).join(" ") : e;
+ const t = e.match(XD);
+ return t ? t.map(GD).join(" ") : e;
}
-}, eM = {
- ...Qv,
+}, KD = {
+ ...Kv,
// Color props
- color: $t,
- backgroundColor: $t,
- outlineColor: $t,
- fill: $t,
- stroke: $t,
+ color: Rt,
+ backgroundColor: Rt,
+ outlineColor: Rt,
+ fill: Rt,
+ stroke: Rt,
// Border props
- borderColor: $t,
- borderTopColor: $t,
- borderRightColor: $t,
- borderBottomColor: $t,
- borderLeftColor: $t,
- filter: eu,
- WebkitFilter: eu
-}, pd = (e) => eM[e];
-function Lg(e, t) {
- let r = pd(e);
- return r !== eu && (r = xn), r.getAnimatableNone ? r.getAnimatableNone(t) : void 0;
-}
-const Wg = (e) => /^0[^.\s]+$/.test(e);
-function tM(e) {
+ borderColor: Rt,
+ borderTopColor: Rt,
+ borderRightColor: Rt,
+ borderBottomColor: Rt,
+ borderLeftColor: Rt,
+ filter: Qc,
+ WebkitFilter: Qc
+}, dd = (e) => KD[e];
+function Bg(e, t) {
+ let r = dd(e);
+ return r !== Qc && (r = Sn), r.getAnimatableNone ? r.getAnimatableNone(t) : void 0;
+}
+const zg = (e) => /^0[^.\s]+$/.test(e);
+function ZD(e) {
if (typeof e == "number")
return e === 0;
if (e !== null)
- return e === "none" || e === "0" || Wg(e);
+ return e === "none" || e === "0" || zg(e);
}
-function rM(e, t, r, n) {
- const o = Qc(t, r);
+function JD(e, t, r, n) {
+ const o = Jc(t, r);
let a;
Array.isArray(r) ? a = [...r] : a = [null, r];
const i = n.from !== void 0 ? n.from : e.get();
let s;
const l = [];
for (let c = 0; c < a.length; c++)
- a[c] === null && (a[c] = c === 0 ? i : a[c - 1]), tM(a[c]) && l.push(c), typeof a[c] == "string" && a[c] !== "none" && a[c] !== "0" && (s = a[c]);
+ a[c] === null && (a[c] = c === 0 ? i : a[c - 1]), ZD(a[c]) && l.push(c), typeof a[c] == "string" && a[c] !== "none" && a[c] !== "0" && (s = a[c]);
if (o && l.length && s)
for (let c = 0; c < l.length; c++) {
const u = l[c];
- a[u] = Lg(t, s);
+ a[u] = Bg(t, s);
}
return a;
}
-function nM({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDirection: o, repeat: a, repeatType: i, repeatDelay: s, from: l, elapsed: c, ...u }) {
+function QD({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDirection: o, repeat: a, repeatType: i, repeatDelay: s, from: l, elapsed: c, ...u }) {
return !!Object.keys(u).length;
}
-function Ug(e, t) {
+function Vg(e, t) {
return e[t] || e.default || e;
}
-const hd = (e, t, r, n = {}) => (o) => {
- const a = Ug(n, e) || {}, i = a.delay || n.delay || 0;
+const fd = (e, t, r, n = {}) => (o) => {
+ const a = Vg(n, e) || {}, i = a.delay || n.delay || 0;
let { elapsed: s = 0 } = n;
- s = s - vn(i);
- const l = rM(t, e, r, a), c = l[0], u = l[l.length - 1], d = Qc(e, c), f = Qc(e, u);
+ s = s - gn(i);
+ const l = JD(t, e, r, a), c = l[0], u = l[l.length - 1], d = Jc(e, c), f = Jc(e, u);
ii(d === f, `You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);
let p = {
keyframes: l,
@@ -13472,35 +13711,35 @@ const hd = (e, t, r, n = {}) => (o) => {
o(), a.onComplete && a.onComplete();
}
};
- if (nM(a) || (p = {
+ if (QD(a) || (p = {
...p,
- ...KD(e, p)
- }), p.duration && (p.duration = vn(p.duration)), p.repeatDelay && (p.repeatDelay = vn(p.repeatDelay)), !d || !f || rD.current || a.type === !1)
- return HD(p);
+ ...YD(e, p)
+ }), p.duration && (p.duration = gn(p.duration)), p.repeatDelay && (p.repeatDelay = gn(p.repeatDelay)), !d || !f || J2.current || a.type === !1)
+ return VD(p);
if (t.owner && t.owner.current instanceof HTMLElement && !t.owner.getProps().onUpdate) {
- const m = UD(t, e, p);
+ const m = zD(t, e, p);
if (m)
return m;
}
- return _s(p);
+ return Cs(p);
};
-function ks(e) {
+function _s(e) {
return !!(Yt(e) && e.add);
}
-const oM = (e) => /^\-?\d*\.?\d+$/.test(e);
-function md(e, t) {
+const eM = (e) => /^\-?\d*\.?\d+$/.test(e);
+function pd(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function vd(e, t) {
+function hd(e, t) {
const r = e.indexOf(t);
r > -1 && e.splice(r, 1);
}
-class gd {
+class md {
constructor() {
this.subscriptions = [];
}
add(t) {
- return md(this.subscriptions, t), () => vd(this.subscriptions, t);
+ return pd(this.subscriptions, t), () => hd(this.subscriptions, t);
}
notify(t, r, n) {
const o = this.subscriptions.length;
@@ -13520,12 +13759,12 @@ class gd {
this.subscriptions.length = 0;
}
}
-const Zp = /* @__PURE__ */ new Set();
-function bd(e, t, r) {
- e || Zp.has(t) || (console.warn(t), r && console.warn(r), Zp.add(t));
+const Kp = /* @__PURE__ */ new Set();
+function vd(e, t, r) {
+ e || Kp.has(t) || (console.warn(t), r && console.warn(r), Kp.add(t));
}
-const aM = (e) => !isNaN(parseFloat(e));
-class iM {
+const tM = (e) => !isNaN(parseFloat(e));
+class rM {
/**
* @param init - The initiating value
* @param config - Optional configuration options
@@ -13541,7 +13780,7 @@ class iM {
this.lastUpdated !== i && (this.timeDelta = a, this.lastUpdated = i, tt.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), o && this.events.renderRequest && this.events.renderRequest.notify(this.current);
}, this.scheduleVelocityCheck = () => tt.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: n }) => {
n !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
- }, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = aM(this.current), this.owner = r.owner;
+ }, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = tM(this.current), this.owner = r.owner;
}
/**
* Adds a function that will be notified when the `MotionValue` is updated.
@@ -13584,10 +13823,10 @@ class iM {
* @deprecated
*/
onChange(t) {
- return process.env.NODE_ENV !== "production" && bd(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
+ return process.env.NODE_ENV !== "production" && vd(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
}
on(t, r) {
- this.events[t] || (this.events[t] = new gd());
+ this.events[t] || (this.events[t] = new md());
const n = this.events[t].add(r);
return t === "change" ? () => {
n(), tt.read(() => {
@@ -13661,7 +13900,7 @@ class iM {
getVelocity() {
return this.canTrackVelocity ? (
// These casts could be avoided if parseFloat would be typed better
- Bg(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
+ Fg(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
) : 0;
}
/**
@@ -13715,42 +13954,42 @@ class iM {
this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
}
}
-function Oo(e, t) {
- return new iM(e, t);
+function Ro(e, t) {
+ return new rM(e, t);
}
-const Hg = (e) => (t) => t.test(e), sM = {
+const Lg = (e) => (t) => t.test(e), nM = {
test: (e) => e === "auto",
parse: (e) => e
-}, Yg = [Yn, pe, Ir, dn, m2, h2, sM], Jo = (e) => Yg.find(Hg(e)), lM = [...Yg, $t, xn], cM = (e) => lM.find(Hg(e));
-function uM(e, t, r) {
- e.hasValue(t) ? e.getValue(t).set(r) : e.addValue(t, Oo(r));
+}, Wg = [Gn, pe, Fr, fn, d2, u2, nM], Qo = (e) => Wg.find(Lg(e)), oM = [...Wg, Rt, Sn], aM = (e) => oM.find(Lg(e));
+function iM(e, t, r) {
+ e.hasValue(t) ? e.getValue(t).set(r) : e.addValue(t, Ro(r));
}
-function dM(e, t) {
- const r = rl(e, t);
+function sM(e, t) {
+ const r = tl(e, t);
let { transitionEnd: n = {}, transition: o = {}, ...a } = r ? e.makeTargetAnimatable(r, !1) : {};
a = { ...a, ...n };
for (const i in a) {
- const s = A2(a[i]);
- uM(e, i, s);
+ const s = k2(a[i]);
+ iM(e, i, s);
}
}
-function fM(e, t, r) {
+function lM(e, t, r) {
var n, o;
const a = Object.keys(t).filter((s) => !e.hasValue(s)), i = a.length;
if (i)
for (let s = 0; s < i; s++) {
const l = a[s], c = t[l];
let u = null;
- Array.isArray(c) && (u = c[0]), u === null && (u = (o = (n = r[l]) !== null && n !== void 0 ? n : e.readValue(l)) !== null && o !== void 0 ? o : t[l]), u != null && (typeof u == "string" && (oM(u) || Wg(u)) ? u = parseFloat(u) : !cM(u) && xn.test(c) && (u = Lg(l, c)), e.addValue(l, Oo(u, { owner: e })), r[l] === void 0 && (r[l] = u), u !== null && e.setBaseTarget(l, u));
+ Array.isArray(c) && (u = c[0]), u === null && (u = (o = (n = r[l]) !== null && n !== void 0 ? n : e.readValue(l)) !== null && o !== void 0 ? o : t[l]), u != null && (typeof u == "string" && (eM(u) || zg(u)) ? u = parseFloat(u) : !aM(u) && Sn.test(c) && (u = Bg(l, c)), e.addValue(l, Ro(u, { owner: e })), r[l] === void 0 && (r[l] = u), u !== null && e.setBaseTarget(l, u));
}
}
-function pM(e, t) {
+function cM(e, t) {
return t ? (t[e] || t.default || t).from : void 0;
}
-function hM(e, t, r) {
+function uM(e, t, r) {
const n = {};
for (const o in e) {
- const a = pM(o, t);
+ const a = cM(o, t);
if (a !== void 0)
n[o] = a;
else {
@@ -13760,39 +13999,39 @@ function hM(e, t, r) {
}
return n;
}
-function mM({ protectedKeys: e, needsAnimating: t }, r) {
+function dM({ protectedKeys: e, needsAnimating: t }, r) {
const n = e.hasOwnProperty(r) && t[r] !== !0;
return t[r] = !1, n;
}
-function qg(e, t, { delay: r = 0, transitionOverride: n, type: o } = {}) {
+function Ug(e, t, { delay: r = 0, transitionOverride: n, type: o } = {}) {
let { transition: a = e.getDefaultTransition(), transitionEnd: i, ...s } = e.makeTargetAnimatable(t);
const l = e.getValue("willChange");
n && (a = n);
const c = [], u = o && e.animationState && e.animationState.getState()[o];
for (const d in s) {
const f = e.getValue(d), p = s[d];
- if (!f || p === void 0 || u && mM(u, d))
+ if (!f || p === void 0 || u && dM(u, d))
continue;
const m = { delay: r, elapsed: 0, ...a };
if (window.HandoffAppearAnimations && !f.hasAnimated) {
- const v = e.getProps()[tD];
+ const v = e.getProps()[Z2];
v && (m.elapsed = window.HandoffAppearAnimations(v, d, f, tt));
}
- f.start(hd(d, f, p, e.shouldReduceMotion && Hn.has(d) ? { type: !1 } : m));
+ f.start(fd(d, f, p, e.shouldReduceMotion && qn.has(d) ? { type: !1 } : m));
const h = f.animation;
- ks(l) && (l.add(d), h.then(() => l.remove(d))), c.push(h);
+ _s(l) && (l.add(d), h.then(() => l.remove(d))), c.push(h);
}
return i && Promise.all(c).then(() => {
- i && dM(e, i);
+ i && sM(e, i);
}), c;
}
-function tu(e, t, r = {}) {
- const n = rl(e, t, r.custom);
+function eu(e, t, r = {}) {
+ const n = tl(e, t, r.custom);
let { transition: o = e.getDefaultTransition() || {} } = n || {};
r.transitionOverride && (o = r.transitionOverride);
- const a = n ? () => Promise.all(qg(e, n, r)) : () => Promise.resolve(), i = e.variantChildren && e.variantChildren.size ? (l = 0) => {
+ const a = n ? () => Promise.all(Ug(e, n, r)) : () => Promise.resolve(), i = e.variantChildren && e.variantChildren.size ? (l = 0) => {
const { delayChildren: c = 0, staggerChildren: u, staggerDirection: d } = o;
- return vM(e, t, c + l, u, d, r);
+ return fM(e, t, c + l, u, d, r);
} : () => Promise.resolve(), { when: s } = o;
if (s) {
const [l, c] = s === "beforeChildren" ? [a, i] : [i, a];
@@ -13800,42 +14039,42 @@ function tu(e, t, r = {}) {
} else
return Promise.all([a(), i(r.delay)]);
}
-function vM(e, t, r = 0, n = 0, o = 1, a) {
+function fM(e, t, r = 0, n = 0, o = 1, a) {
const i = [], s = (e.variantChildren.size - 1) * n, l = o === 1 ? (c = 0) => c * n : (c = 0) => s - c * n;
- return Array.from(e.variantChildren).sort(gM).forEach((c, u) => {
- c.notify("AnimationStart", t), i.push(tu(c, t, {
+ return Array.from(e.variantChildren).sort(pM).forEach((c, u) => {
+ c.notify("AnimationStart", t), i.push(eu(c, t, {
...a,
delay: r + l(u)
}).then(() => c.notify("AnimationComplete", t)));
}), Promise.all(i);
}
-function gM(e, t) {
+function pM(e, t) {
return e.sortNodePosition(t);
}
-function bM(e, t, r = {}) {
+function hM(e, t, r = {}) {
e.notify("AnimationStart", t);
let n;
if (Array.isArray(t)) {
- const o = t.map((a) => tu(e, a, r));
+ const o = t.map((a) => eu(e, a, r));
n = Promise.all(o);
} else if (typeof t == "string")
- n = tu(e, t, r);
+ n = eu(e, t, r);
else {
- const o = typeof t == "function" ? rl(e, t, r.custom) : t;
- n = Promise.all(qg(e, o, r));
+ const o = typeof t == "function" ? tl(e, t, r.custom) : t;
+ n = Promise.all(Ug(e, o, r));
}
return n.then(() => e.notify("AnimationComplete", t));
}
-const yM = [...Qu].reverse(), xM = Qu.length;
-function SM(e) {
- return (t) => Promise.all(t.map(({ animation: r, options: n }) => bM(e, r, n)));
+const mM = [...Zu].reverse(), vM = Zu.length;
+function gM(e) {
+ return (t) => Promise.all(t.map(({ animation: r, options: n }) => hM(e, r, n)));
}
-function wM(e) {
- let t = SM(e);
- const r = _M();
+function bM(e) {
+ let t = gM(e);
+ const r = xM();
let n = !0;
const o = (l, c) => {
- const u = rl(e, c);
+ const u = tl(e, c);
if (u) {
const { transition: d, transitionEnd: f, ...p } = u;
l = { ...l, ...p, ...f };
@@ -13848,20 +14087,20 @@ function wM(e) {
function i(l, c) {
const u = e.getProps(), d = e.getVariantContext(!0) || {}, f = [], p = /* @__PURE__ */ new Set();
let m = {}, h = 1 / 0;
- for (let b = 0; b < xM; b++) {
- const y = yM[b], S = r[y], k = u[y] !== void 0 ? u[y] : d[y], w = Va(k), M = y === c ? S.isActive : null;
+ for (let b = 0; b < vM; b++) {
+ const y = mM[b], S = r[y], _ = u[y] !== void 0 ? u[y] : d[y], w = La(_), M = y === c ? S.isActive : null;
M === !1 && (h = b);
- let P = k === d[y] && k !== u[y] && w;
+ let P = _ === d[y] && _ !== u[y] && w;
if (P && n && e.manuallyAnimateOnMount && (P = !1), S.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive
!S.isActive && M === null || // If we didn't and don't have any defined prop for this animation type
- !k && !S.prevProp || // Or if the prop doesn't define an animation
- Zs(k) || typeof k == "boolean")
+ !_ && !S.prevProp || // Or if the prop doesn't define an animation
+ Ks(_) || typeof _ == "boolean")
continue;
- const I = CM(S.prevProp, k);
+ const I = yM(S.prevProp, _);
let z = I || // If we're making this variant active, we want to always make it active
y === c && S.isActive && !P && w || // If we removed a higher-priority variant (i is in reverse order)
b > h && w;
- const j = Array.isArray(k) ? k : [k];
+ const j = Array.isArray(_) ? _ : [_];
let X = j.reduce(o, {});
M === !1 && (X = {});
const { prevResolvedValues: ne = {} } = S, J = {
@@ -13872,9 +14111,9 @@ function wM(e) {
};
for (const ee in J) {
const oe = X[ee], D = ne[ee];
- m.hasOwnProperty(ee) || (oe !== D ? Ss(oe) && Ss(D) ? !mg(oe, D) || I ? Q(ee) : S.protectedKeys[ee] = !0 : oe !== void 0 ? Q(ee) : p.add(ee) : oe !== void 0 && p.has(ee) ? Q(ee) : S.protectedKeys[ee] = !0);
+ m.hasOwnProperty(ee) || (oe !== D ? xs(oe) && xs(D) ? !fg(oe, D) || I ? Q(ee) : S.protectedKeys[ee] = !0 : oe !== void 0 ? Q(ee) : p.add(ee) : oe !== void 0 && p.has(ee) ? Q(ee) : S.protectedKeys[ee] = !0);
}
- S.prevProp = k, S.prevResolvedValues = X, S.isActive && (m = { ...m, ...X }), n && e.blockInitialAnimation && (z = !1), z && !P && f.push(...j.map((ee) => ({
+ S.prevProp = _, S.prevResolvedValues = X, S.isActive && (m = { ...m, ...X }), n && e.blockInitialAnimation && (z = !1), z && !P && f.push(...j.map((ee) => ({
animation: ee,
options: { type: y, ...l }
})));
@@ -13909,10 +14148,10 @@ function wM(e) {
getState: () => r
};
}
-function CM(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !mg(t, e) : !1;
+function yM(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !fg(t, e) : !1;
}
-function Tn(e = !1) {
+function An(e = !1) {
return {
isActive: e,
protectedKeys: {},
@@ -13920,29 +14159,29 @@ function Tn(e = !1) {
prevResolvedValues: {}
};
}
-function _M() {
+function xM() {
return {
- animate: Tn(!0),
- whileInView: Tn(),
- whileHover: Tn(),
- whileTap: Tn(),
- whileDrag: Tn(),
- whileFocus: Tn(),
- exit: Tn()
+ animate: An(!0),
+ whileInView: An(),
+ whileHover: An(),
+ whileTap: An(),
+ whileDrag: An(),
+ whileFocus: An(),
+ exit: An()
};
}
-class kM extends wn {
+class SM extends Cn {
/**
* We dynamically generate the AnimationState manager as it contains a reference
* to the underlying animation library. We only want to load that if we load this,
* so people can optionally code split it out using the `m` component.
*/
constructor(t) {
- super(t), t.animationState || (t.animationState = wM(t));
+ super(t), t.animationState || (t.animationState = bM(t));
}
updateAnimationControlsSubscription() {
const { animate: t } = this.node.getProps();
- this.unmount(), Zs(t) && (this.unmount = t.subscribe(this.node));
+ this.unmount(), Ks(t) && (this.unmount = t.subscribe(this.node));
}
/**
* Subscribe any provided AnimationControls to the component's VisualElement
@@ -13957,10 +14196,10 @@ class kM extends wn {
unmount() {
}
}
-let EM = 0;
-class PM extends wn {
+let wM = 0;
+class CM extends Cn {
constructor() {
- super(...arguments), this.id = EM++;
+ super(...arguments), this.id = wM++;
}
update() {
if (!this.node.presenceContext)
@@ -13978,24 +14217,24 @@ class PM extends wn {
unmount() {
}
}
-const TM = {
+const _M = {
animation: {
- Feature: kM
+ Feature: SM
},
exit: {
- Feature: PM
+ Feature: CM
}
-}, Jp = (e, t) => Math.abs(e - t);
-function AM(e, t) {
- const r = Jp(e.x, t.x), n = Jp(e.y, t.y);
+}, Zp = (e, t) => Math.abs(e - t);
+function kM(e, t) {
+ const r = Zp(e.x, t.x), n = Zp(e.y, t.y);
return Math.sqrt(r ** 2 + n ** 2);
}
-class Gg {
+class Hg {
constructor(t, r, { transformPagePoint: n } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
return;
- const c = ac(this.lastMoveEventInfo, this.history), u = this.startEvent !== null, d = AM(c.offset, { x: 0, y: 0 }) >= 3;
+ const c = nc(this.lastMoveEventInfo, this.history), u = this.startEvent !== null, d = kM(c.offset, { x: 0, y: 0 }) >= 3;
if (!u && !d)
return;
const { point: f } = c, { timestamp: p } = it;
@@ -14003,57 +14242,57 @@ class Gg {
const { onStart: m, onMove: h } = this.handlers;
u || (m && m(this.lastMoveEvent, c), this.startEvent = this.lastMoveEvent), h && h(this.lastMoveEvent, c);
}, this.handlePointerMove = (c, u) => {
- this.lastMoveEvent = c, this.lastMoveEventInfo = oc(u, this.transformPagePoint), tt.update(this.updatePoint, !0);
+ this.lastMoveEvent = c, this.lastMoveEventInfo = rc(u, this.transformPagePoint), tt.update(this.updatePoint, !0);
}, this.handlePointerUp = (c, u) => {
if (this.end(), !(this.lastMoveEvent && this.lastMoveEventInfo))
return;
- const { onEnd: d, onSessionEnd: f } = this.handlers, p = ac(c.type === "pointercancel" ? this.lastMoveEventInfo : oc(u, this.transformPagePoint), this.history);
+ const { onEnd: d, onSessionEnd: f } = this.handlers, p = nc(c.type === "pointercancel" ? this.lastMoveEventInfo : rc(u, this.transformPagePoint), this.history);
this.startEvent && d && d(c, p), f && f(c, p);
- }, !cg(t))
+ }, !ig(t))
return;
this.handlers = r, this.transformPagePoint = n;
- const o = el(t), a = oc(o, this.transformPagePoint), { point: i } = a, { timestamp: s } = it;
+ const o = Qs(t), a = rc(o, this.transformPagePoint), { point: i } = a, { timestamp: s } = it;
this.history = [{ ...i, timestamp: s }];
const { onSessionStart: l } = r;
- l && l(t, ac(a, this.history)), this.removeListeners = mn(Kr(window, "pointermove", this.handlePointerMove), Kr(window, "pointerup", this.handlePointerUp), Kr(window, "pointercancel", this.handlePointerUp));
+ l && l(t, nc(a, this.history)), this.removeListeners = vn(Zr(window, "pointermove", this.handlePointerMove), Zr(window, "pointerup", this.handlePointerUp), Zr(window, "pointercancel", this.handlePointerUp));
}
updateHandlers(t) {
this.handlers = t;
}
end() {
- this.removeListeners && this.removeListeners(), rn(this.updatePoint);
+ this.removeListeners && this.removeListeners(), nn(this.updatePoint);
}
}
-function oc(e, t) {
+function rc(e, t) {
return t ? { point: t(e.point) } : e;
}
-function Qp(e, t) {
+function Jp(e, t) {
return { x: e.x - t.x, y: e.y - t.y };
}
-function ac({ point: e }, t) {
+function nc({ point: e }, t) {
return {
point: e,
- delta: Qp(e, Xg(t)),
- offset: Qp(e, OM(t)),
- velocity: $M(t, 0.1)
+ delta: Jp(e, Yg(t)),
+ offset: Jp(e, EM(t)),
+ velocity: PM(t, 0.1)
};
}
-function OM(e) {
+function EM(e) {
return e[0];
}
-function Xg(e) {
+function Yg(e) {
return e[e.length - 1];
}
-function $M(e, t) {
+function PM(e, t) {
if (e.length < 2)
return { x: 0, y: 0 };
let r = e.length - 1, n = null;
- const o = Xg(e);
- for (; r >= 0 && (n = e[r], !(o.timestamp - n.timestamp > vn(t))); )
+ const o = Yg(e);
+ for (; r >= 0 && (n = e[r], !(o.timestamp - n.timestamp > gn(t))); )
r--;
if (!n)
return { x: 0, y: 0 };
- const a = Zr(o.timestamp - n.timestamp);
+ const a = Jr(o.timestamp - n.timestamp);
if (a === 0)
return { x: 0, y: 0 };
const i = {
@@ -14065,102 +14304,102 @@ function $M(e, t) {
function Qt(e) {
return e.max - e.min;
}
-function ru(e, t = 0, r = 0.01) {
+function tu(e, t = 0, r = 0.01) {
return Math.abs(e - t) <= r;
}
-function eh(e, t, r, n = 0.5) {
- e.origin = n, e.originPoint = st(t.min, t.max, e.origin), e.scale = Qt(r) / Qt(t), (ru(e.scale, 1, 1e-4) || isNaN(e.scale)) && (e.scale = 1), e.translate = st(r.min, r.max, e.origin) - e.originPoint, (ru(e.translate) || isNaN(e.translate)) && (e.translate = 0);
+function Qp(e, t, r, n = 0.5) {
+ e.origin = n, e.originPoint = st(t.min, t.max, e.origin), e.scale = Qt(r) / Qt(t), (tu(e.scale, 1, 1e-4) || isNaN(e.scale)) && (e.scale = 1), e.translate = st(r.min, r.max, e.origin) - e.originPoint, (tu(e.translate) || isNaN(e.translate)) && (e.translate = 0);
}
-function ya(e, t, r, n) {
- eh(e.x, t.x, r.x, n ? n.originX : void 0), eh(e.y, t.y, r.y, n ? n.originY : void 0);
+function Sa(e, t, r, n) {
+ Qp(e.x, t.x, r.x, n ? n.originX : void 0), Qp(e.y, t.y, r.y, n ? n.originY : void 0);
}
-function th(e, t, r) {
+function eh(e, t, r) {
e.min = r.min + t.min, e.max = e.min + Qt(t);
}
-function RM(e, t, r) {
- th(e.x, t.x, r.x), th(e.y, t.y, r.y);
+function TM(e, t, r) {
+ eh(e.x, t.x, r.x), eh(e.y, t.y, r.y);
}
-function rh(e, t, r) {
+function th(e, t, r) {
e.min = t.min - r.min, e.max = e.min + Qt(t);
}
-function xa(e, t, r) {
- rh(e.x, t.x, r.x), rh(e.y, t.y, r.y);
+function wa(e, t, r) {
+ th(e.x, t.x, r.x), th(e.y, t.y, r.y);
}
-function DM(e, { min: t, max: r }, n) {
+function AM(e, { min: t, max: r }, n) {
return t !== void 0 && e < t ? e = n ? st(t, e, n.min) : Math.max(e, t) : r !== void 0 && e > r && (e = n ? st(r, e, n.max) : Math.min(e, r)), e;
}
-function nh(e, t, r) {
+function rh(e, t, r) {
return {
min: t !== void 0 ? e.min + t : void 0,
max: r !== void 0 ? e.max + r - (e.max - e.min) : void 0
};
}
-function MM(e, { top: t, left: r, bottom: n, right: o }) {
+function OM(e, { top: t, left: r, bottom: n, right: o }) {
return {
- x: nh(e.x, r, o),
- y: nh(e.y, t, n)
+ x: rh(e.x, r, o),
+ y: rh(e.y, t, n)
};
}
-function oh(e, t) {
+function nh(e, t) {
let r = t.min - e.min, n = t.max - e.max;
return t.max - t.min < e.max - e.min && ([r, n] = [n, r]), { min: r, max: n };
}
-function IM(e, t) {
+function RM(e, t) {
return {
- x: oh(e.x, t.x),
- y: oh(e.y, t.y)
+ x: nh(e.x, t.x),
+ y: nh(e.y, t.y)
};
}
-function FM(e, t) {
+function $M(e, t) {
let r = 0.5;
const n = Qt(e), o = Qt(t);
- return o > n ? r = Ua(t.min, t.max - n, e.min) : n > o && (r = Ua(e.min, e.max - o, t.min)), yn(0, 1, r);
+ return o > n ? r = Ha(t.min, t.max - n, e.min) : n > o && (r = Ha(e.min, e.max - o, t.min)), xn(0, 1, r);
}
-function NM(e, t) {
+function DM(e, t) {
const r = {};
return t.min !== void 0 && (r.min = t.min - e.min), t.max !== void 0 && (r.max = t.max - e.min), r;
}
-const nu = 0.35;
-function jM(e = nu) {
- return e === !1 ? e = 0 : e === !0 && (e = nu), {
- x: ah(e, "left", "right"),
- y: ah(e, "top", "bottom")
+const ru = 0.35;
+function MM(e = ru) {
+ return e === !1 ? e = 0 : e === !0 && (e = ru), {
+ x: oh(e, "left", "right"),
+ y: oh(e, "top", "bottom")
};
}
-function ah(e, t, r) {
+function oh(e, t, r) {
return {
- min: ih(e, t),
- max: ih(e, r)
+ min: ah(e, t),
+ max: ah(e, r)
};
}
-function ih(e, t) {
+function ah(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
-const sh = () => ({
+const ih = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), uo = () => ({
+}), fo = () => ({
+ x: ih(),
+ y: ih()
+}), sh = () => ({ min: 0, max: 0 }), mt = () => ({
x: sh(),
y: sh()
-}), lh = () => ({ min: 0, max: 0 }), mt = () => ({
- x: lh(),
- y: lh()
});
-function Ar(e) {
+function Or(e) {
return [e("x"), e("y")];
}
-function Kg({ top: e, left: t, right: r, bottom: n }) {
+function qg({ top: e, left: t, right: r, bottom: n }) {
return {
x: { min: t, max: r },
y: { min: e, max: n }
};
}
-function BM({ x: e, y: t }) {
+function IM({ x: e, y: t }) {
return { top: t.min, right: e.max, bottom: t.max, left: e.min };
}
-function zM(e, t) {
+function FM(e, t) {
if (!t)
return e;
const r = t({ x: e.left, y: e.top }), n = t({ x: e.right, y: e.bottom });
@@ -14171,35 +14410,35 @@ function zM(e, t) {
right: n.x
};
}
-function ic(e) {
+function oc(e) {
return e === void 0 || e === 1;
}
-function ou({ scale: e, scaleX: t, scaleY: r }) {
- return !ic(e) || !ic(t) || !ic(r);
+function nu({ scale: e, scaleX: t, scaleY: r }) {
+ return !oc(e) || !oc(t) || !oc(r);
}
-function On(e) {
- return ou(e) || Zg(e) || e.z || e.rotate || e.rotateX || e.rotateY;
+function Rn(e) {
+ return nu(e) || Gg(e) || e.z || e.rotate || e.rotateX || e.rotateY;
}
-function Zg(e) {
- return ch(e.x) || ch(e.y);
+function Gg(e) {
+ return lh(e.x) || lh(e.y);
}
-function ch(e) {
+function lh(e) {
return e && e !== "0%";
}
-function Es(e, t, r) {
+function ks(e, t, r) {
const n = e - r, o = t * n;
return r + o;
}
-function uh(e, t, r, n, o) {
- return o !== void 0 && (e = Es(e, o, n)), Es(e, r, n) + t;
+function ch(e, t, r, n, o) {
+ return o !== void 0 && (e = ks(e, o, n)), ks(e, r, n) + t;
}
-function au(e, t = 0, r = 1, n, o) {
- e.min = uh(e.min, t, r, n, o), e.max = uh(e.max, t, r, n, o);
+function ou(e, t = 0, r = 1, n, o) {
+ e.min = ch(e.min, t, r, n, o), e.max = ch(e.max, t, r, n, o);
}
-function Jg(e, { x: t, y: r }) {
- au(e.x, t.translate, t.scale, t.originPoint), au(e.y, r.translate, r.scale, r.originPoint);
+function Xg(e, { x: t, y: r }) {
+ ou(e.x, t.translate, t.scale, t.originPoint), ou(e.y, r.translate, r.scale, r.originPoint);
}
-function VM(e, t, r, n = !1) {
+function NM(e, t, r, n = !1) {
const o = r.length;
if (!o)
return;
@@ -14208,36 +14447,36 @@ function VM(e, t, r, n = !1) {
for (let s = 0; s < o; s++) {
a = r[s], i = a.projectionDelta;
const l = a.instance;
- l && l.style && l.style.display === "contents" || (n && a.options.layoutScroll && a.scroll && a !== a.root && fo(e, {
+ l && l.style && l.style.display === "contents" || (n && a.options.layoutScroll && a.scroll && a !== a.root && po(e, {
x: -a.scroll.offset.x,
y: -a.scroll.offset.y
- }), i && (t.x *= i.x.scale, t.y *= i.y.scale, Jg(e, i)), n && On(a.latestValues) && fo(e, a.latestValues));
+ }), i && (t.x *= i.x.scale, t.y *= i.y.scale, Xg(e, i)), n && Rn(a.latestValues) && po(e, a.latestValues));
}
- t.x = dh(t.x), t.y = dh(t.y);
+ t.x = uh(t.x), t.y = uh(t.y);
}
-function dh(e) {
+function uh(e) {
return Number.isInteger(e) || e > 1.0000000000001 || e < 0.999999999999 ? e : 1;
}
-function fn(e, t) {
+function pn(e, t) {
e.min = e.min + t, e.max = e.max + t;
}
-function fh(e, t, [r, n, o]) {
+function dh(e, t, [r, n, o]) {
const a = t[o] !== void 0 ? t[o] : 0.5, i = st(e.min, e.max, a);
- au(e, t[r], t[n], i, t.scale);
+ ou(e, t[r], t[n], i, t.scale);
}
-const LM = ["x", "scaleX", "originX"], WM = ["y", "scaleY", "originY"];
-function fo(e, t) {
- fh(e.x, t, LM), fh(e.y, t, WM);
+const jM = ["x", "scaleX", "originX"], BM = ["y", "scaleY", "originY"];
+function po(e, t) {
+ dh(e.x, t, jM), dh(e.y, t, BM);
}
-function Qg(e, t) {
- return Kg(zM(e.getBoundingClientRect(), t));
+function Kg(e, t) {
+ return qg(FM(e.getBoundingClientRect(), t));
}
-function UM(e, t, r) {
- const n = Qg(e, r), { scroll: o } = t;
- return o && (fn(n.x, o.offset.x), fn(n.y, o.offset.y)), n;
+function zM(e, t, r) {
+ const n = Kg(e, r), { scroll: o } = t;
+ return o && (pn(n.x, o.offset.x), pn(n.y, o.offset.y)), n;
}
-const HM = /* @__PURE__ */ new WeakMap();
-class YM {
+const VM = /* @__PURE__ */ new WeakMap();
+class LM {
constructor(t) {
this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = mt(), this.visualElement = t;
}
@@ -14246,14 +14485,14 @@ class YM {
if (n && n.isPresent === !1)
return;
const o = (l) => {
- this.stopAnimation(), r && this.snapToCursor(el(l, "page").point);
+ this.stopAnimation(), r && this.snapToCursor(Qs(l, "page").point);
}, a = (l, c) => {
const { drag: u, dragPropagation: d, onDragStart: f } = this.getProps();
- if (u && !d && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = dg(u), !this.openGlobalLock))
+ if (u && !d && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = lg(u), !this.openGlobalLock))
return;
- this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Ar((m) => {
+ this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Or((m) => {
let h = this.getAxisMotionValue(m).get() || 0;
- if (Ir.test(h)) {
+ if (Fr.test(h)) {
const { projection: v } = this.visualElement;
if (v && v.layout) {
const b = v.layout.layoutBox[m];
@@ -14270,12 +14509,12 @@ class YM {
return;
const { offset: m } = c;
if (d && this.currentDirection === null) {
- this.currentDirection = qM(m), this.currentDirection !== null && f && f(this.currentDirection);
+ this.currentDirection = WM(m), this.currentDirection !== null && f && f(this.currentDirection);
return;
}
this.updateAxis("x", c.point, m), this.updateAxis("y", c.point, m), this.visualElement.render(), p && p(l, c);
}, s = (l, c) => this.stop(l, c);
- this.panSession = new Gg(t, {
+ this.panSession = new Hg(t, {
onSessionStart: o,
onStart: a,
onMove: i,
@@ -14300,38 +14539,38 @@ class YM {
}
updateAxis(t, r, n) {
const { drag: o } = this.getProps();
- if (!n || !$i(t, o, this.currentDirection))
+ if (!n || !Ri(t, o, this.currentDirection))
return;
const a = this.getAxisMotionValue(t);
let i = this.originPoint[t] + n[t];
- this.constraints && this.constraints[t] && (i = DM(i, this.constraints[t], this.elastic[t])), a.set(i);
+ this.constraints && this.constraints[t] && (i = AM(i, this.constraints[t], this.elastic[t])), a.set(i);
}
resolveConstraints() {
const { dragConstraints: t, dragElastic: r } = this.getProps(), { layout: n } = this.visualElement.projection || {}, o = this.constraints;
- t && lo(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && n ? this.constraints = MM(n.layoutBox, t) : this.constraints = !1, this.elastic = jM(r), o !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && Ar((a) => {
- this.getAxisMotionValue(a) && (this.constraints[a] = NM(n.layoutBox[a], this.constraints[a]));
+ t && co(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && n ? this.constraints = OM(n.layoutBox, t) : this.constraints = !1, this.elastic = MM(r), o !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && Or((a) => {
+ this.getAxisMotionValue(a) && (this.constraints[a] = DM(n.layoutBox[a], this.constraints[a]));
});
}
resolveRefConstraints() {
const { dragConstraints: t, onMeasureDragConstraints: r } = this.getProps();
- if (!t || !lo(t))
+ if (!t || !co(t))
return !1;
const n = t.current;
wr(n !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
const { projection: o } = this.visualElement;
if (!o || !o.layout)
return !1;
- const a = UM(n, o.root, this.visualElement.getTransformPagePoint());
- let i = IM(o.layout.layoutBox, a);
+ const a = zM(n, o.root, this.visualElement.getTransformPagePoint());
+ let i = RM(o.layout.layoutBox, a);
if (r) {
- const s = r(BM(i));
- this.hasMutatedConstraints = !!s, s && (i = Kg(s));
+ const s = r(IM(i));
+ this.hasMutatedConstraints = !!s, s && (i = qg(s));
}
return i;
}
startAnimation(t) {
- const { drag: r, dragMomentum: n, dragElastic: o, dragTransition: a, dragSnapToOrigin: i, onDragTransitionEnd: s } = this.getProps(), l = this.constraints || {}, c = Ar((u) => {
- if (!$i(u, r, this.currentDirection))
+ const { drag: r, dragMomentum: n, dragElastic: o, dragTransition: a, dragSnapToOrigin: i, onDragTransitionEnd: s } = this.getProps(), l = this.constraints || {}, c = Or((u) => {
+ if (!Ri(u, r, this.currentDirection))
return;
let d = l && l[u] || {};
i && (d = { min: 0, max: 0 });
@@ -14352,10 +14591,10 @@ class YM {
}
startAxisValueAnimation(t, r) {
const n = this.getAxisMotionValue(t);
- return n.start(hd(t, n, 0, r));
+ return n.start(fd(t, n, 0, r));
}
stopAnimation() {
- Ar((t) => this.getAxisMotionValue(t).stop());
+ Or((t) => this.getAxisMotionValue(t).stop());
}
/**
* Drag works differently depending on which props are provided.
@@ -14368,9 +14607,9 @@ class YM {
return o || this.visualElement.getValue(t, (n.initial ? n.initial[t] : void 0) || 0);
}
snapToCursor(t) {
- Ar((r) => {
+ Or((r) => {
const { drag: n } = this.getProps();
- if (!$i(r, n, this.currentDirection))
+ if (!Ri(r, n, this.currentDirection))
return;
const { projection: o } = this.visualElement, a = this.getAxisMotionValue(r);
if (o && o.layout) {
@@ -14388,20 +14627,20 @@ class YM {
if (!this.visualElement.current)
return;
const { drag: t, dragConstraints: r } = this.getProps(), { projection: n } = this.visualElement;
- if (!lo(r) || !n || !this.constraints)
+ if (!co(r) || !n || !this.constraints)
return;
this.stopAnimation();
const o = { x: 0, y: 0 };
- Ar((i) => {
+ Or((i) => {
const s = this.getAxisMotionValue(i);
if (s) {
const l = s.get();
- o[i] = FM({ min: l, max: l }, this.constraints[i]);
+ o[i] = $M({ min: l, max: l }, this.constraints[i]);
}
});
const { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.resolveConstraints(), Ar((i) => {
- if (!$i(i, t, null))
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.resolveConstraints(), Or((i) => {
+ if (!Ri(i, t, null))
return;
const s = this.getAxisMotionValue(i), { min: l, max: c } = this.constraints[i];
s.set(st(l, c, o[i]));
@@ -14410,17 +14649,17 @@ class YM {
addListeners() {
if (!this.visualElement.current)
return;
- HM.set(this.visualElement, this);
- const t = this.visualElement.current, r = Kr(t, "pointerdown", (l) => {
+ VM.set(this.visualElement, this);
+ const t = this.visualElement.current, r = Zr(t, "pointerdown", (l) => {
const { drag: c, dragListener: u = !0 } = this.getProps();
c && u && this.start(l);
}), n = () => {
const { dragConstraints: l } = this.getProps();
- lo(l) && (this.constraints = this.resolveRefConstraints());
+ co(l) && (this.constraints = this.resolveRefConstraints());
}, { projection: o } = this.visualElement, a = o.addEventListener("measure", n);
o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), n();
- const i = Gr(window, "resize", () => this.scalePositionWithinConstraints()), s = o.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
- this.isDragging && c && (Ar((u) => {
+ const i = Xr(window, "resize", () => this.scalePositionWithinConstraints()), s = o.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
+ this.isDragging && c && (Or((u) => {
const d = this.getAxisMotionValue(u);
d && (this.originPoint[u] += l[u].translate, d.set(d.get() + l[u].translate));
}), this.visualElement.render());
@@ -14430,7 +14669,7 @@ class YM {
};
}
getProps() {
- const t = this.visualElement.getProps(), { drag: r = !1, dragDirectionLock: n = !1, dragPropagation: o = !1, dragConstraints: a = !1, dragElastic: i = nu, dragMomentum: s = !0 } = t;
+ const t = this.visualElement.getProps(), { drag: r = !1, dragDirectionLock: n = !1, dragPropagation: o = !1, dragConstraints: a = !1, dragElastic: i = ru, dragMomentum: s = !0 } = t;
return {
...t,
drag: r,
@@ -14442,16 +14681,16 @@ class YM {
};
}
}
-function $i(e, t, r) {
+function Ri(e, t, r) {
return (t === !0 || t === e) && (r === null || r === e);
}
-function qM(e, t = 10) {
+function WM(e, t = 10) {
let r = null;
return Math.abs(e.y) > t ? r = "y" : Math.abs(e.x) > t && (r = "x"), r;
}
-class GM extends wn {
+class UM extends Cn {
constructor(t) {
- super(t), this.removeGroupControls = bt, this.removeListeners = bt, this.controls = new YM(t);
+ super(t), this.removeGroupControls = bt, this.removeListeners = bt, this.controls = new LM(t);
}
mount() {
const { dragControls: t } = this.node.getProps();
@@ -14461,21 +14700,21 @@ class GM extends wn {
this.removeGroupControls(), this.removeListeners();
}
}
-const ph = (e) => (t, r) => {
+const fh = (e) => (t, r) => {
e && tt.update(() => e(t, r));
};
-class XM extends wn {
+class HM extends Cn {
constructor() {
super(...arguments), this.removePointerDownListener = bt;
}
onPointerDown(t) {
- this.session = new Gg(t, this.createPanHandlers(), { transformPagePoint: this.node.getTransformPagePoint() });
+ this.session = new Hg(t, this.createPanHandlers(), { transformPagePoint: this.node.getTransformPagePoint() });
}
createPanHandlers() {
const { onPanSessionStart: t, onPanStart: r, onPan: n, onPanEnd: o } = this.node.getProps();
return {
- onSessionStart: ph(t),
- onStart: ph(r),
+ onSessionStart: fh(t),
+ onStart: fh(r),
onMove: n,
onEnd: (a, i) => {
delete this.session, o && tt.update(() => o(a, i));
@@ -14483,7 +14722,7 @@ class XM extends wn {
};
}
mount() {
- this.removePointerDownListener = Kr(this.node.current, "pointerdown", (t) => this.onPointerDown(t));
+ this.removePointerDownListener = Zr(this.node.current, "pointerdown", (t) => this.onPointerDown(t));
}
update() {
this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -14492,17 +14731,17 @@ class XM extends wn {
this.removePointerDownListener(), this.session && this.session.end();
}
}
-function eb() {
+function Zg() {
const e = ft(ri);
if (e === null)
return [!0, null];
const { isPresent: t, onExitComplete: r, register: n } = e, o = _r();
return Fe(() => n(o), []), !t && r ? [!1, () => r && r(o)] : [!0];
}
-function GV() {
- return KM(ft(ri));
+function VV() {
+ return YM(ft(ri));
}
-function KM(e) {
+function YM(e) {
return e === null ? !0 : e.isPresent;
}
const es = {
@@ -14517,10 +14756,10 @@ const es = {
*/
hasEverUpdated: !1
};
-function hh(e, t) {
+function ph(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-const Qo = {
+const ea = {
correct: (e, t) => {
if (!t.target)
return e;
@@ -14529,21 +14768,21 @@ const Qo = {
e = parseFloat(e);
else
return e;
- const r = hh(e, t.target.x), n = hh(e, t.target.y);
+ const r = ph(e, t.target.x), n = ph(e, t.target.y);
return `${r}% ${n}%`;
}
-}, ZM = {
+}, qM = {
correct: (e, { treeScale: t, projectionDelta: r }) => {
- const n = e, o = xn.parse(e);
+ const n = e, o = Sn.parse(e);
if (o.length > 5)
return n;
- const a = xn.createTransformer(e), i = typeof o[0] != "number" ? 1 : 0, s = r.x.scale * t.x, l = r.y.scale * t.y;
+ const a = Sn.createTransformer(e), i = typeof o[0] != "number" ? 1 : 0, s = r.x.scale * t.x, l = r.y.scale * t.y;
o[0 + i] /= s, o[1 + i] /= l;
const c = st(s, l, 0.5);
return typeof o[2 + i] == "number" && (o[2 + i] /= c), typeof o[3 + i] == "number" && (o[3 + i] /= c), a(o);
}
};
-class JM extends It.Component {
+class GM extends It.Component {
/**
* This only mounts projection nodes for components that
* need measuring, we might want to do it for all components
@@ -14551,7 +14790,7 @@ class JM extends It.Component {
*/
componentDidMount() {
const { visualElement: t, layoutGroup: r, switchLayoutGroup: n, layoutId: o } = this.props, { projection: a } = t;
- s2(QM), a && (r.group && r.group.add(a), n && n.register && o && n.register(a), a.root.didUpdate(), a.addEventListener("animationComplete", () => {
+ n2(XM), a && (r.group && r.group.add(a), n && n.register && o && n.register(a), a.root.didUpdate(), a.addEventListener("animationComplete", () => {
this.safeToRemove();
}), a.setOptions({
...a.options,
@@ -14583,13 +14822,13 @@ class JM extends It.Component {
return null;
}
}
-function tb(e) {
- const [t, r] = eb(), n = ft(td);
- return It.createElement(JM, { ...e, layoutGroup: n, switchLayoutGroup: ft(Gv), isPresent: t, safeToRemove: r });
+function Jg(e) {
+ const [t, r] = Zg(), n = ft(Qu);
+ return It.createElement(GM, { ...e, layoutGroup: n, switchLayoutGroup: ft(Hv), isPresent: t, safeToRemove: r });
}
-const QM = {
+const XM = {
borderRadius: {
- ...Qo,
+ ...ea,
applyTo: [
"borderTopLeftRadius",
"borderTopRightRadius",
@@ -14597,78 +14836,78 @@ const QM = {
"borderBottomRightRadius"
]
},
- borderTopLeftRadius: Qo,
- borderTopRightRadius: Qo,
- borderBottomLeftRadius: Qo,
- borderBottomRightRadius: Qo,
- boxShadow: ZM
-}, rb = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], eI = rb.length, mh = (e) => typeof e == "string" ? parseFloat(e) : e, vh = (e) => typeof e == "number" || pe.test(e);
-function tI(e, t, r, n, o, a) {
+ borderTopLeftRadius: ea,
+ borderTopRightRadius: ea,
+ borderBottomLeftRadius: ea,
+ borderBottomRightRadius: ea,
+ boxShadow: qM
+}, Qg = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], KM = Qg.length, hh = (e) => typeof e == "string" ? parseFloat(e) : e, mh = (e) => typeof e == "number" || pe.test(e);
+function ZM(e, t, r, n, o, a) {
o ? (e.opacity = st(
0,
// TODO Reinstate this if only child
r.opacity !== void 0 ? r.opacity : 1,
- rI(n)
- ), e.opacityExit = st(t.opacity !== void 0 ? t.opacity : 1, 0, nI(n))) : a && (e.opacity = st(t.opacity !== void 0 ? t.opacity : 1, r.opacity !== void 0 ? r.opacity : 1, n));
- for (let i = 0; i < eI; i++) {
- const s = `border${rb[i]}Radius`;
- let l = gh(t, s), c = gh(r, s);
+ JM(n)
+ ), e.opacityExit = st(t.opacity !== void 0 ? t.opacity : 1, 0, QM(n))) : a && (e.opacity = st(t.opacity !== void 0 ? t.opacity : 1, r.opacity !== void 0 ? r.opacity : 1, n));
+ for (let i = 0; i < KM; i++) {
+ const s = `border${Qg[i]}Radius`;
+ let l = vh(t, s), c = vh(r, s);
if (l === void 0 && c === void 0)
continue;
- l || (l = 0), c || (c = 0), l === 0 || c === 0 || vh(l) === vh(c) ? (e[s] = Math.max(st(mh(l), mh(c), n), 0), (Ir.test(c) || Ir.test(l)) && (e[s] += "%")) : e[s] = c;
+ l || (l = 0), c || (c = 0), l === 0 || c === 0 || mh(l) === mh(c) ? (e[s] = Math.max(st(hh(l), hh(c), n), 0), (Fr.test(c) || Fr.test(l)) && (e[s] += "%")) : e[s] = c;
}
(t.rotate || r.rotate) && (e.rotate = st(t.rotate || 0, r.rotate || 0, n));
}
-function gh(e, t) {
+function vh(e, t) {
return e[t] !== void 0 ? e[t] : e.borderRadius;
}
-const rI = nb(0, 0.5, ud), nI = nb(0.5, 0.95, bt);
-function nb(e, t, r) {
- return (n) => n < e ? 0 : n > t ? 1 : r(Ua(e, t, n));
+const JM = eb(0, 0.5, ld), QM = eb(0.5, 0.95, bt);
+function eb(e, t, r) {
+ return (n) => n < e ? 0 : n > t ? 1 : r(Ha(e, t, n));
}
-function bh(e, t) {
+function gh(e, t) {
e.min = t.min, e.max = t.max;
}
function nr(e, t) {
- bh(e.x, t.x), bh(e.y, t.y);
+ gh(e.x, t.x), gh(e.y, t.y);
}
-function yh(e, t, r, n, o) {
- return e -= t, e = Es(e, 1 / r, n), o !== void 0 && (e = Es(e, 1 / o, n)), e;
+function bh(e, t, r, n, o) {
+ return e -= t, e = ks(e, 1 / r, n), o !== void 0 && (e = ks(e, 1 / o, n)), e;
}
-function oI(e, t = 0, r = 1, n = 0.5, o, a = e, i = e) {
- if (Ir.test(t) && (t = parseFloat(t), t = st(i.min, i.max, t / 100) - i.min), typeof t != "number")
+function eI(e, t = 0, r = 1, n = 0.5, o, a = e, i = e) {
+ if (Fr.test(t) && (t = parseFloat(t), t = st(i.min, i.max, t / 100) - i.min), typeof t != "number")
return;
let s = st(a.min, a.max, n);
- e === a && (s -= t), e.min = yh(e.min, t, r, s, o), e.max = yh(e.max, t, r, s, o);
+ e === a && (s -= t), e.min = bh(e.min, t, r, s, o), e.max = bh(e.max, t, r, s, o);
}
-function xh(e, t, [r, n, o], a, i) {
- oI(e, t[r], t[n], t[o], t.scale, a, i);
+function yh(e, t, [r, n, o], a, i) {
+ eI(e, t[r], t[n], t[o], t.scale, a, i);
}
-const aI = ["x", "scaleX", "originX"], iI = ["y", "scaleY", "originY"];
-function Sh(e, t, r, n) {
- xh(e.x, t, aI, r ? r.x : void 0, n ? n.x : void 0), xh(e.y, t, iI, r ? r.y : void 0, n ? n.y : void 0);
+const tI = ["x", "scaleX", "originX"], rI = ["y", "scaleY", "originY"];
+function xh(e, t, r, n) {
+ yh(e.x, t, tI, r ? r.x : void 0, n ? n.x : void 0), yh(e.y, t, rI, r ? r.y : void 0, n ? n.y : void 0);
}
-function wh(e) {
+function Sh(e) {
return e.translate === 0 && e.scale === 1;
}
-function ob(e) {
- return wh(e.x) && wh(e.y);
+function tb(e) {
+ return Sh(e.x) && Sh(e.y);
}
-function iu(e, t) {
+function au(e, t) {
return e.x.min === t.x.min && e.x.max === t.x.max && e.y.min === t.y.min && e.y.max === t.y.max;
}
-function Ch(e) {
+function wh(e) {
return Qt(e.x) / Qt(e.y);
}
-class sI {
+class nI {
constructor() {
this.members = [];
}
add(t) {
- md(this.members, t), t.scheduleRender();
+ pd(this.members, t), t.scheduleRender();
}
remove(t) {
- if (vd(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) {
+ if (hd(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) {
const r = this.members[this.members.length - 1];
r && this.promote(r);
}
@@ -14714,7 +14953,7 @@ class sI {
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
}
}
-function _h(e, t, r) {
+function Ch(e, t, r) {
let n = "";
const o = e.x.translate / t.x, a = e.y.translate / t.y;
if ((o || a) && (n = `translate3d(${o}px, ${a}px, 0) `), (t.x !== 1 || t.y !== 1) && (n += `scale(${1 / t.x}, ${1 / t.y}) `), r) {
@@ -14724,60 +14963,60 @@ function _h(e, t, r) {
const i = e.x.scale * t.x, s = e.y.scale * t.y;
return (i !== 1 || s !== 1) && (n += `scale(${i}, ${s})`), n || "none";
}
-const lI = (e, t) => e.depth - t.depth;
-class cI {
+const oI = (e, t) => e.depth - t.depth;
+class aI {
constructor() {
this.children = [], this.isDirty = !1;
}
add(t) {
- md(this.children, t), this.isDirty = !0;
+ pd(this.children, t), this.isDirty = !0;
}
remove(t) {
- vd(this.children, t), this.isDirty = !0;
+ hd(this.children, t), this.isDirty = !0;
}
forEach(t) {
- this.isDirty && this.children.sort(lI), this.isDirty = !1, this.children.forEach(t);
+ this.isDirty && this.children.sort(oI), this.isDirty = !1, this.children.forEach(t);
}
}
-function uI(e, t) {
+function iI(e, t) {
const r = performance.now(), n = ({ timestamp: o }) => {
const a = o - r;
- a >= t && (rn(n), e(a - t));
+ a >= t && (nn(n), e(a - t));
};
- return tt.read(n, !0), () => rn(n);
+ return tt.read(n, !0), () => nn(n);
}
-function dI(e) {
+function sI(e) {
window.MotionDebug && window.MotionDebug.record(e);
}
-function fI(e) {
+function lI(e) {
return e instanceof SVGElement && e.tagName !== "svg";
}
-function pI(e, t, r) {
- const n = Yt(e) ? e : Oo(e);
- return n.start(hd("", n, t, r)), n.animation;
+function cI(e, t, r) {
+ const n = Yt(e) ? e : Ro(e);
+ return n.start(fd("", n, t, r)), n.animation;
}
-const kh = ["", "X", "Y", "Z"], Eh = 1e3;
-let hI = 0;
+const _h = ["", "X", "Y", "Z"], kh = 1e3;
+let uI = 0;
const $n = {
type: "projectionFrame",
totalNodes: 0,
resolvedTargetDeltas: 0,
recalculatedProjection: 0
};
-function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, checkIsScrollRoot: n, resetTransform: o }) {
+function rb({ attachResizeListener: e, defaultParent: t, measureScroll: r, checkIsScrollRoot: n, resetTransform: o }) {
return class {
constructor(i = {}, s = t == null ? void 0 : t()) {
- this.id = hI++, 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.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.checkUpdateFailed = () => {
+ this.id = uI++, 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.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- $n.totalNodes = $n.resolvedTargetDeltas = $n.recalculatedProjection = 0, this.nodes.forEach(gI), this.nodes.forEach(wI), this.nodes.forEach(CI), this.nodes.forEach(bI), dI($n);
+ $n.totalNodes = $n.resolvedTargetDeltas = $n.recalculatedProjection = 0, this.nodes.forEach(pI), this.nodes.forEach(bI), this.nodes.forEach(yI), this.nodes.forEach(hI), sI($n);
}, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = i, this.root = s ? s.root || s : this, this.path = s ? [...s.path, s] : [], this.parent = s, this.depth = s ? s.depth + 1 : 0;
for (let l = 0; l < this.path.length; l++)
this.path[l].shouldResetTransform = !0;
- this.root === this && (this.nodes = new cI());
+ this.root === this && (this.nodes = new aI());
}
addEventListener(i, s) {
- return this.eventHandlers.has(i) || this.eventHandlers.set(i, new gd()), this.eventHandlers.get(i).add(s);
+ return this.eventHandlers.has(i) || this.eventHandlers.set(i, new md()), this.eventHandlers.get(i).add(s);
}
notifyListeners(i, ...s) {
const l = this.eventHandlers.get(i);
@@ -14792,13 +15031,13 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
mount(i, s = this.root.hasTreeAnimated) {
if (this.instance)
return;
- this.isSVG = fI(i), this.instance = i;
+ this.isSVG = lI(i), this.instance = i;
const { layoutId: l, layout: c, visualElement: u } = this.options;
if (u && !u.current && u.mount(i), this.root.nodes.add(this), this.parent && this.parent.children.add(this), s && (c || l) && (this.isLayoutDirty = !0), e) {
let d;
const f = () => this.root.updateBlockedByResize = !1;
e(i, () => {
- this.root.updateBlockedByResize = !0, d && d(), d = uI(f, 250), es.hasAnimatedSinceResize && (es.hasAnimatedSinceResize = !1, this.nodes.forEach(Th));
+ this.root.updateBlockedByResize = !0, d && d(), d = iI(f, 250), es.hasAnimatedSinceResize && (es.hasAnimatedSinceResize = !1, this.nodes.forEach(Ph));
});
}
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: f, hasRelativeTargetChanged: p, layout: m }) => {
@@ -14806,24 +15045,24 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- const h = this.options.transition || u.getDefaultTransition() || TI, { onLayoutAnimationStart: v, onLayoutAnimationComplete: b } = u.getProps(), y = !this.targetLayout || !iu(this.targetLayout, m) || p, S = !f && p;
+ const h = this.options.transition || u.getDefaultTransition() || _I, { onLayoutAnimationStart: v, onLayoutAnimationComplete: b } = u.getProps(), y = !this.targetLayout || !au(this.targetLayout, m) || p, S = !f && p;
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || S || f && (y || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, S);
- const k = {
- ...Ug(h, "layout"),
+ const _ = {
+ ...Vg(h, "layout"),
onPlay: v,
onComplete: b
};
- (u.shouldReduceMotion || this.options.layoutRoot) && (k.delay = 0, k.type = !1), this.startAnimation(k);
+ (u.shouldReduceMotion || this.options.layoutRoot) && (_.delay = 0, _.type = !1), this.startAnimation(_);
} else
- f || Th(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
+ f || Ph(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
this.targetLayout = m;
});
}
unmount() {
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
const i = this.getStack();
- i && i.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, rn(this.updateProjection);
+ i && i.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, nn(this.updateProjection);
}
// only on the root
blockUpdate() {
@@ -14840,7 +15079,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
}
// Note: currently only running on root node
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(_I), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(xI), this.animationId++);
}
getTransformTemplate() {
const { visualElement: i } = this.options;
@@ -14866,18 +15105,18 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
}
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Ph);
+ this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Eh);
return;
}
- this.isUpdating || this.nodes.forEach(xI), this.isUpdating = !1, this.nodes.forEach(SI), this.nodes.forEach(mI), this.nodes.forEach(vI), this.clearAllSnapshots();
+ this.isUpdating || this.nodes.forEach(vI), this.isUpdating = !1, this.nodes.forEach(gI), this.nodes.forEach(dI), this.nodes.forEach(fI), this.clearAllSnapshots();
const s = performance.now();
- it.delta = yn(0, 1e3 / 60, s - it.timestamp), it.timestamp = s, it.isProcessing = !0, xo.update.process(it), xo.preRender.process(it), xo.render.process(it), it.isProcessing = !1;
+ it.delta = xn(0, 1e3 / 60, s - it.timestamp), it.timestamp = s, it.isProcessing = !0, So.update.process(it), So.preRender.process(it), So.render.process(it), it.isProcessing = !1;
}
didUpdate() {
this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update()));
}
clearAllSnapshots() {
- this.nodes.forEach(yI), this.sharedNodes.forEach(kI);
+ this.nodes.forEach(mI), this.sharedNodes.forEach(SI);
}
scheduleUpdateProjection() {
tt.preRender(this.updateProjection, !1, !0);
@@ -14916,13 +15155,13 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
resetTransform() {
if (!o)
return;
- const i = this.isLayoutDirty || this.shouldResetTransform, s = this.projectionDelta && !ob(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
- i && (s || On(this.latestValues) || u) && (o(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
+ const i = this.isLayoutDirty || this.shouldResetTransform, s = this.projectionDelta && !tb(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
+ i && (s || Rn(this.latestValues) || u) && (o(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(i = !0) {
const s = this.measurePageBox();
let l = this.removeElementScroll(s);
- return i && (l = this.removeTransform(l)), AI(l), {
+ return i && (l = this.removeTransform(l)), kI(l), {
animationId: this.root.animationId,
measuredBox: s,
layoutBox: l,
@@ -14935,7 +15174,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
if (!i)
return mt();
const s = i.measureViewportBox(), { scroll: l } = this.root;
- return l && (fn(s.x, l.offset.x), fn(s.y, l.offset.y)), s;
+ return l && (pn(s.x, l.offset.x), pn(s.y, l.offset.y)), s;
}
removeElementScroll(i) {
const s = mt();
@@ -14946,9 +15185,9 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
if (u.isRoot) {
nr(s, i);
const { scroll: f } = this.root;
- f && (fn(s.x, -f.offset.x), fn(s.y, -f.offset.y));
+ f && (pn(s.x, -f.offset.x), pn(s.y, -f.offset.y));
}
- fn(s.x, u.offset.x), fn(s.y, u.offset.y);
+ pn(s.x, u.offset.x), pn(s.y, u.offset.y);
}
}
return s;
@@ -14958,25 +15197,25 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
nr(l, i);
for (let c = 0; c < this.path.length; c++) {
const u = this.path[c];
- !s && u.options.layoutScroll && u.scroll && u !== u.root && fo(l, {
+ !s && u.options.layoutScroll && u.scroll && u !== u.root && po(l, {
x: -u.scroll.offset.x,
y: -u.scroll.offset.y
- }), On(u.latestValues) && fo(l, u.latestValues);
+ }), Rn(u.latestValues) && po(l, u.latestValues);
}
- return On(this.latestValues) && fo(l, this.latestValues), l;
+ return Rn(this.latestValues) && po(l, this.latestValues), l;
}
removeTransform(i) {
const s = mt();
nr(s, i);
for (let l = 0; l < this.path.length; l++) {
const c = this.path[l];
- if (!c.instance || !On(c.latestValues))
+ if (!c.instance || !Rn(c.latestValues))
continue;
- ou(c.latestValues) && c.updateSnapshot();
+ nu(c.latestValues) && c.updateSnapshot();
const u = mt(), d = c.measurePageBox();
- nr(u, d), Sh(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
+ nr(u, d), xh(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
}
- return On(this.latestValues) && Sh(s, this.latestValues), s;
+ return Rn(this.latestValues) && xh(s, this.latestValues), s;
}
setTargetDelta(i) {
this.targetDelta = i, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -15005,20 +15244,20 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
if (!(!this.layout || !(d || f))) {
if (this.resolvedRelativeTargetAt = it.timestamp, !this.targetDelta && !this.relativeTarget) {
const p = this.getClosestProjectingParent();
- p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), xa(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), nr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
+ p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), wa(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), nr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
}
if (!(!this.relativeTarget && !this.targetDelta)) {
- if (this.target || (this.target = mt(), this.targetWithTransforms = mt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), RM(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nr(this.target, this.layout.layoutBox), Jg(this.target, this.targetDelta)) : nr(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
+ if (this.target || (this.target = mt(), this.targetWithTransforms = mt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), TM(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nr(this.target, this.layout.layoutBox), Xg(this.target, this.targetDelta)) : nr(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
this.attemptToResolveRelativeTarget = !1;
const p = this.getClosestProjectingParent();
- p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), xa(this.relativeTargetOrigin, this.target, p.target), nr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
+ p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = mt(), this.relativeTargetOrigin = mt(), wa(this.relativeTargetOrigin, this.target, p.target), nr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
}
$n.resolvedTargetDeltas++;
}
}
}
getClosestProjectingParent() {
- if (!(!this.parent || ou(this.parent.latestValues) || Zg(this.parent.latestValues)))
+ if (!(!this.parent || nu(this.parent.latestValues) || Gg(this.parent.latestValues)))
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
@@ -15035,15 +15274,15 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
return;
nr(this.layoutCorrected, this.layout.layoutBox);
const f = this.treeScale.x, p = this.treeScale.y;
- VM(this.layoutCorrected, this.treeScale, this.path, l), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox);
+ NM(this.layoutCorrected, this.treeScale, this.path, l), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox);
const { target: m } = s;
if (!m) {
- this.projectionTransform && (this.projectionDelta = uo(), this.projectionTransform = "none", this.scheduleRender());
+ this.projectionTransform && (this.projectionDelta = fo(), this.projectionTransform = "none", this.scheduleRender());
return;
}
- this.projectionDelta || (this.projectionDelta = uo(), this.projectionDeltaWithTransform = uo());
+ this.projectionDelta || (this.projectionDelta = fo(), this.projectionDeltaWithTransform = fo());
const h = this.projectionTransform;
- ya(this.projectionDelta, this.layoutCorrected, m, this.latestValues), this.projectionTransform = _h(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== f || this.treeScale.y !== p) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), $n.recalculatedProjection++;
+ Sa(this.projectionDelta, this.layoutCorrected, m, this.latestValues), this.projectionTransform = Ch(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== f || this.treeScale.y !== p) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), $n.recalculatedProjection++;
}
hide() {
this.isVisible = !1;
@@ -15059,19 +15298,19 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
setAnimationOrigin(i, s = !1) {
- const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = uo();
+ const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = fo();
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !s;
- const f = mt(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, h = p !== m, v = this.getStack(), b = !v || v.members.length <= 1, y = !!(h && !b && this.options.crossfade === !0 && !this.path.some(PI));
+ const f = mt(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, h = p !== m, v = this.getStack(), b = !v || v.members.length <= 1, y = !!(h && !b && this.options.crossfade === !0 && !this.path.some(CI));
this.animationProgress = 0;
let S;
- this.mixTargetDelta = (k) => {
- const w = k / 1e3;
- Ah(d.x, i.x, w), Ah(d.y, i.y, w), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (xa(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), EI(this.relativeTarget, this.relativeTargetOrigin, f, w), S && iu(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = mt()), nr(S, this.relativeTarget)), h && (this.animationValues = u, tI(u, c, this.latestValues, w, y, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
+ this.mixTargetDelta = (_) => {
+ const w = _ / 1e3;
+ Th(d.x, i.x, w), Th(d.y, i.y, w), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (wa(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), wI(this.relativeTarget, this.relativeTargetOrigin, f, w), S && au(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = mt()), nr(S, this.relativeTarget)), h && (this.animationValues = u, ZM(u, c, this.latestValues, w, y, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(i) {
- this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (rn(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = tt.update(() => {
- es.hasAnimatedSinceResize = !0, this.currentAnimation = pI(0, Eh, {
+ this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (nn(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = tt.update(() => {
+ es.hasAnimatedSinceResize = !0, this.currentAnimation = cI(0, kh, {
...i,
onUpdate: (s) => {
this.mixTargetDelta(s), i.onUpdate && i.onUpdate(s);
@@ -15088,24 +15327,24 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
i && i.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Eh), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(kh), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
const i = this.getLead();
let { targetWithTransforms: s, target: l, layout: c, latestValues: u } = i;
if (!(!s || !l || !c)) {
- if (this !== i && this.layout && c && ib(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
+ if (this !== i && this.layout && c && nb(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
l = this.target || mt();
const d = Qt(this.layout.layoutBox.x);
l.x.min = i.target.x.min, l.x.max = l.x.min + d;
const f = Qt(this.layout.layoutBox.y);
l.y.min = i.target.y.min, l.y.max = l.y.min + f;
}
- nr(s, l), fo(s, u), ya(this.projectionDeltaWithTransform, this.layoutCorrected, s, u);
+ nr(s, l), po(s, u), Sa(this.projectionDeltaWithTransform, this.layoutCorrected, s, u);
}
}
registerSharedNode(i, s) {
- this.sharedNodes.has(i) || this.sharedNodes.set(i, new sI()), this.sharedNodes.get(i).add(s);
+ this.sharedNodes.has(i) || this.sharedNodes.set(i, new nI()), this.sharedNodes.get(i).add(s);
const c = s.options.initialPromotionConfig;
s.promote({
transition: c ? c.transition : void 0,
@@ -15148,8 +15387,8 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
if ((l.rotate || l.rotateX || l.rotateY || l.rotateZ) && (s = !0), !s)
return;
const c = {};
- for (let u = 0; u < kh.length; u++) {
- const d = "rotate" + kh[u];
+ for (let u = 0; u < _h.length; u++) {
+ const d = "rotate" + _h[u];
l[d] && (c[d] = l[d], i.setStaticValue(d, 0));
}
i.render();
@@ -15172,20 +15411,20 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
const d = this.getLead();
if (!this.projectionDelta || !this.layout || !d.target) {
const h = {};
- return this.options.layoutId && (h.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, h.pointerEvents = Qi(i.pointerEvents) || ""), this.hasProjected && !On(this.latestValues) && (h.transform = u ? u({}, "") : "none", this.hasProjected = !1), h;
+ return this.options.layoutId && (h.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, h.pointerEvents = Qi(i.pointerEvents) || ""), this.hasProjected && !Rn(this.latestValues) && (h.transform = u ? u({}, "") : "none", this.hasProjected = !1), h;
}
const f = d.animationValues || d.latestValues;
- this.applyTransformsToTarget(), c.transform = _h(this.projectionDeltaWithTransform, this.treeScale, f), u && (c.transform = u(f, c.transform));
+ this.applyTransformsToTarget(), c.transform = Ch(this.projectionDeltaWithTransform, this.treeScale, f), u && (c.transform = u(f, c.transform));
const { x: p, y: m } = this.projectionDelta;
c.transformOrigin = `${p.origin * 100}% ${m.origin * 100}% 0`, d.animationValues ? c.opacity = d === this ? (l = (s = f.opacity) !== null && s !== void 0 ? s : 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;
- for (const h in ys) {
+ for (const h in bs) {
if (f[h] === void 0)
continue;
- const { correct: v, applyTo: b } = ys[h], y = c.transform === "none" ? f[h] : v(f[h], d);
+ const { correct: v, applyTo: b } = bs[h], y = c.transform === "none" ? f[h] : v(f[h], d);
if (b) {
const S = b.length;
- for (let k = 0; k < S; k++)
- c[b[k]] = y;
+ for (let _ = 0; _ < S; _++)
+ c[b[_]] = y;
} else
c[h] = y;
}
@@ -15199,30 +15438,30 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
this.root.nodes.forEach((i) => {
var s;
return (s = i.currentAnimation) === null || s === void 0 ? void 0 : s.stop();
- }), this.root.nodes.forEach(Ph), this.root.sharedNodes.clear();
+ }), this.root.nodes.forEach(Eh), this.root.sharedNodes.clear();
}
};
}
-function mI(e) {
+function dI(e) {
e.updateLayout();
}
-function vI(e) {
+function fI(e) {
var t;
const r = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
if (e.isLead() && e.layout && r && e.hasListeners("didUpdate")) {
const { layoutBox: n, measuredBox: o } = e.layout, { animationType: a } = e.options, i = r.source !== e.layout.source;
- a === "size" ? Ar((d) => {
+ a === "size" ? Or((d) => {
const f = i ? r.measuredBox[d] : r.layoutBox[d], p = Qt(f);
f.min = n[d].min, f.max = f.min + p;
- }) : ib(a, r.layoutBox, n) && Ar((d) => {
+ }) : nb(a, r.layoutBox, n) && Or((d) => {
const f = i ? r.measuredBox[d] : r.layoutBox[d], p = Qt(n[d]);
f.max = f.min + p, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + p);
});
- const s = uo();
- ya(s, n, r.layoutBox);
- const l = uo();
- i ? ya(l, e.applyTransform(o, !0), r.measuredBox) : ya(l, n, r.layoutBox);
- const c = !ob(s);
+ const s = fo();
+ Sa(s, n, r.layoutBox);
+ const l = fo();
+ i ? Sa(l, e.applyTransform(o, !0), r.measuredBox) : Sa(l, n, r.layoutBox);
+ const c = !tb(s);
let u = !1;
if (!e.resumeFrom) {
const d = e.getClosestProjectingParent();
@@ -15230,9 +15469,9 @@ function vI(e) {
const { snapshot: f, layout: p } = d;
if (f && p) {
const m = mt();
- xa(m, r.layoutBox, f.layoutBox);
+ wa(m, r.layoutBox, f.layoutBox);
const h = mt();
- xa(h, n, p.layoutBox), iu(m, h) || (u = !0), d.options.layoutRoot && (e.relativeTarget = h, e.relativeTargetOrigin = m, e.relativeParent = d);
+ wa(h, n, p.layoutBox), au(m, h) || (u = !0), d.options.layoutRoot && (e.relativeTarget = h, e.relativeTargetOrigin = m, e.relativeParent = d);
}
}
}
@@ -15250,137 +15489,137 @@ function vI(e) {
}
e.options.transition = void 0;
}
-function gI(e) {
+function pI(e) {
$n.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
}
-function bI(e) {
+function hI(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function yI(e) {
+function mI(e) {
e.clearSnapshot();
}
-function Ph(e) {
+function Eh(e) {
e.clearMeasurements();
}
-function xI(e) {
+function vI(e) {
e.isLayoutDirty = !1;
}
-function SI(e) {
+function gI(e) {
const { visualElement: t } = e.options;
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function Th(e) {
+function Ph(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function wI(e) {
+function bI(e) {
e.resolveTargetDelta();
}
-function CI(e) {
+function yI(e) {
e.calcProjection();
}
-function _I(e) {
+function xI(e) {
e.resetRotation();
}
-function kI(e) {
+function SI(e) {
e.removeLeadSnapshot();
}
-function Ah(e, t, r) {
+function Th(e, t, r) {
e.translate = st(t.translate, 0, r), e.scale = st(t.scale, 1, r), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function Oh(e, t, r, n) {
+function Ah(e, t, r, n) {
e.min = st(t.min, r.min, n), e.max = st(t.max, r.max, n);
}
-function EI(e, t, r, n) {
- Oh(e.x, t.x, r.x, n), Oh(e.y, t.y, r.y, n);
+function wI(e, t, r, n) {
+ Ah(e.x, t.x, r.x, n), Ah(e.y, t.y, r.y, n);
}
-function PI(e) {
+function CI(e) {
return e.animationValues && e.animationValues.opacityExit !== void 0;
}
-const TI = {
+const _I = {
duration: 0.45,
ease: [0.4, 0, 0.1, 1]
};
-function $h(e) {
+function Oh(e) {
e.min = Math.round(e.min), e.max = Math.round(e.max);
}
-function AI(e) {
- $h(e.x), $h(e.y);
+function kI(e) {
+ Oh(e.x), Oh(e.y);
}
-function ib(e, t, r) {
- return e === "position" || e === "preserve-aspect" && !ru(Ch(t), Ch(r), 0.2);
+function nb(e, t, r) {
+ return e === "position" || e === "preserve-aspect" && !tu(wh(t), wh(r), 0.2);
}
-const OI = ab({
- attachResizeListener: (e, t) => Gr(e, "resize", t),
+const EI = rb({
+ attachResizeListener: (e, t) => Xr(e, "resize", t),
measureScroll: () => ({
x: document.documentElement.scrollLeft || document.body.scrollLeft,
y: document.documentElement.scrollTop || document.body.scrollTop
}),
checkIsScrollRoot: () => !0
-}), sc = {
+}), ac = {
current: void 0
-}, sb = ab({
+}, ob = rb({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!sc.current) {
- const e = new OI({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), sc.current = e;
+ if (!ac.current) {
+ const e = new EI({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), ac.current = e;
}
- return sc.current;
+ return ac.current;
},
resetTransform: (e, t) => {
e.style.transform = t !== void 0 ? t : "none";
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), $I = {
+}), PI = {
pan: {
- Feature: XM
+ Feature: HM
},
drag: {
- Feature: GM,
- ProjectionNode: sb,
- MeasureLayout: tb
+ Feature: UM,
+ ProjectionNode: ob,
+ MeasureLayout: Jg
}
-}, RI = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
-function DI(e) {
- const t = RI.exec(e);
+}, TI = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
+function AI(e) {
+ const t = TI.exec(e);
if (!t)
return [,];
const [, r, n] = t;
return [r, n];
}
-const MI = 4;
-function su(e, t, r = 1) {
- wr(r <= MI, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
- const [n, o] = DI(e);
+const OI = 4;
+function iu(e, t, r = 1) {
+ wr(r <= OI, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
+ const [n, o] = AI(e);
if (!n)
return;
const a = window.getComputedStyle(t).getPropertyValue(n);
- return a ? a.trim() : Gc(o) ? su(o, t, r + 1) : o;
+ return a ? a.trim() : qc(o) ? iu(o, t, r + 1) : o;
}
-function II(e, { ...t }, r) {
+function RI(e, { ...t }, r) {
const n = e.current;
if (!(n instanceof Element))
return { target: t, transitionEnd: r };
r && (r = { ...r }), e.values.forEach((o) => {
const a = o.get();
- if (!Gc(a))
+ if (!qc(a))
return;
- const i = su(a, n);
+ const i = iu(a, n);
i && o.set(i);
});
for (const o in t) {
const a = t[o];
- if (!Gc(a))
+ if (!qc(a))
continue;
- const i = su(a, n);
+ const i = iu(a, n);
i && (t[o] = i, r || (r = {}), r[o] === void 0 && (r[o] = a));
}
return { target: t, transitionEnd: r };
}
-const FI = /* @__PURE__ */ new Set([
+const $I = /* @__PURE__ */ new Set([
"width",
"height",
"top",
@@ -15391,7 +15630,7 @@ const FI = /* @__PURE__ */ new Set([
"y",
"translateX",
"translateY"
-]), lb = (e) => FI.has(e), NI = (e) => Object.keys(e).some(lb), Ri = (e) => e === Yn || e === pe, Rh = (e, t) => parseFloat(e.split(", ")[t]), Dh = (e, t) => (r, { transform: n }) => {
+]), ab = (e) => $I.has(e), DI = (e) => Object.keys(e).some(ab), $i = (e) => e === Gn || e === pe, Rh = (e, t) => parseFloat(e.split(", ")[t]), $h = (e, t) => (r, { transform: n }) => {
if (n === "none" || !n)
return 0;
const o = n.match(/^matrix3d\((.+)\)$/);
@@ -15401,15 +15640,15 @@ const FI = /* @__PURE__ */ new Set([
const a = n.match(/^matrix\((.+)\)$/);
return a ? Rh(a[1], e) : 0;
}
-}, jI = /* @__PURE__ */ new Set(["x", "y", "z"]), BI = ni.filter((e) => !jI.has(e));
-function zI(e) {
+}, MI = /* @__PURE__ */ new Set(["x", "y", "z"]), II = ni.filter((e) => !MI.has(e));
+function FI(e) {
const t = [];
- return BI.forEach((r) => {
+ return II.forEach((r) => {
const n = e.getValue(r);
n !== void 0 && (t.push([r, n.get()]), n.set(r.startsWith("scale") ? 1 : 0));
}), t.length && e.render(), t;
}
-const Mh = {
+const Dh = {
// Dimensions
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: r = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(r),
height: ({ y: e }, { paddingTop: t = "0", paddingBottom: r = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(r),
@@ -15418,88 +15657,88 @@ const Mh = {
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
// Transform
- x: Dh(4, 13),
- y: Dh(5, 14)
-}, VI = (e, t, r) => {
+ x: $h(4, 13),
+ y: $h(5, 14)
+}, NI = (e, t, r) => {
const n = t.measureViewportBox(), o = t.current, a = getComputedStyle(o), { display: i } = a, s = {};
i === "none" && t.setStaticValue("display", e.display || "block"), r.forEach((c) => {
- s[c] = Mh[c](n, a);
+ s[c] = Dh[c](n, a);
}), t.render();
const l = t.measureViewportBox();
return r.forEach((c) => {
const u = t.getValue(c);
- u && u.jump(s[c]), e[c] = Mh[c](l, a);
+ u && u.jump(s[c]), e[c] = Dh[c](l, a);
}), e;
-}, LI = (e, t, r = {}, n = {}) => {
+}, jI = (e, t, r = {}, n = {}) => {
t = { ...t }, n = { ...n };
- const o = Object.keys(t).filter(lb);
+ const o = Object.keys(t).filter(ab);
let a = [], i = !1;
const s = [];
if (o.forEach((l) => {
const c = e.getValue(l);
if (!e.hasValue(l))
return;
- let u = r[l], d = Jo(u);
+ let u = r[l], d = Qo(u);
const f = t[l];
let p;
- if (Ss(f)) {
+ if (xs(f)) {
const m = f.length, h = f[0] === null ? 1 : 0;
- u = f[h], d = Jo(u);
+ u = f[h], d = Qo(u);
for (let v = h; v < m && f[v] !== null; v++)
- p ? wr(Jo(f[v]) === p, "All keyframes must be of the same type") : (p = Jo(f[v]), wr(p === d || Ri(d) && Ri(p), "Keyframes must be of the same dimension as the current value"));
+ p ? wr(Qo(f[v]) === p, "All keyframes must be of the same type") : (p = Qo(f[v]), wr(p === d || $i(d) && $i(p), "Keyframes must be of the same dimension as the current value"));
} else
- p = Jo(f);
+ p = Qo(f);
if (d !== p)
- if (Ri(d) && Ri(p)) {
+ if ($i(d) && $i(p)) {
const m = c.get();
typeof m == "string" && c.set(parseFloat(m)), typeof f == "string" ? t[l] = parseFloat(f) : Array.isArray(f) && p === pe && (t[l] = f.map(parseFloat));
} else
- d != null && d.transform && (p != null && p.transform) && (u === 0 || f === 0) ? u === 0 ? c.set(p.transform(u)) : t[l] = d.transform(f) : (i || (a = zI(e), i = !0), s.push(l), n[l] = n[l] !== void 0 ? n[l] : t[l], c.jump(f));
+ d != null && d.transform && (p != null && p.transform) && (u === 0 || f === 0) ? u === 0 ? c.set(p.transform(u)) : t[l] = d.transform(f) : (i || (a = FI(e), i = !0), s.push(l), n[l] = n[l] !== void 0 ? n[l] : t[l], c.jump(f));
}), s.length) {
- const l = s.indexOf("height") >= 0 ? window.pageYOffset : null, c = VI(t, e, s);
+ const l = s.indexOf("height") >= 0 ? window.pageYOffset : null, c = NI(t, e, s);
return a.length && a.forEach(([u, d]) => {
e.getValue(u).set(d);
- }), e.render(), Ks && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: n };
+ }), e.render(), Xs && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: n };
} else
return { target: t, transitionEnd: n };
};
-function WI(e, t, r, n) {
- return NI(t) ? LI(e, t, r, n) : { target: t, transitionEnd: n };
-}
-const UI = (e, t, r, n) => {
- const o = II(e, t, n);
- return t = o.target, n = o.transitionEnd, WI(e, t, r, n);
-}, lu = { current: null }, cb = { current: !1 };
-function HI() {
- if (cb.current = !0, !!Ks)
+function BI(e, t, r, n) {
+ return DI(t) ? jI(e, t, r, n) : { target: t, transitionEnd: n };
+}
+const zI = (e, t, r, n) => {
+ const o = RI(e, t, n);
+ return t = o.target, n = o.transitionEnd, BI(e, t, r, n);
+}, su = { current: null }, ib = { current: !1 };
+function VI() {
+ if (ib.current = !0, !!Xs)
if (window.matchMedia) {
- const e = window.matchMedia("(prefers-reduced-motion)"), t = () => lu.current = e.matches;
+ const e = window.matchMedia("(prefers-reduced-motion)"), t = () => su.current = e.matches;
e.addListener(t), t();
} else
- lu.current = !1;
+ su.current = !1;
}
-function YI(e, t, r) {
+function LI(e, t, r) {
const { willChange: n } = t;
for (const o in t) {
const a = t[o], i = r[o];
if (Yt(a))
- e.addValue(o, a), ks(n) && n.add(o), process.env.NODE_ENV === "development" && bd(a.version === "10.12.18", `Attempting to mix Framer Motion versions ${a.version} with 10.12.18 may not work as expected.`);
+ e.addValue(o, a), _s(n) && n.add(o), process.env.NODE_ENV === "development" && vd(a.version === "10.12.18", `Attempting to mix Framer Motion versions ${a.version} with 10.12.18 may not work as expected.`);
else if (Yt(i))
- e.addValue(o, Oo(a, { owner: e })), ks(n) && n.remove(o);
+ e.addValue(o, Ro(a, { owner: e })), _s(n) && n.remove(o);
else if (i !== a)
if (e.hasValue(o)) {
const s = e.getValue(o);
!s.hasAnimated && s.set(a);
} else {
const s = e.getStaticValue(o);
- e.addValue(o, Oo(s !== void 0 ? s : a, { owner: e }));
+ e.addValue(o, Ro(s !== void 0 ? s : a, { owner: e }));
}
}
for (const o in r)
t[o] === void 0 && e.removeValue(o);
return t;
}
-const Ih = /* @__PURE__ */ new WeakMap(), ub = Object.keys(La), qI = ub.length, Fh = [
+const Mh = /* @__PURE__ */ new WeakMap(), sb = Object.keys(Wa), WI = sb.length, Ih = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -15507,18 +15746,18 @@ const Ih = /* @__PURE__ */ new WeakMap(), ub = Object.keys(La), qI = ub.length,
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], GI = ed.length;
-class XI {
+], UI = Ju.length;
+class HI {
constructor({ parent: t, props: r, presenceContext: n, reducedMotionConfig: o, visualState: a }, i = {}) {
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.scheduleRender = () => tt.render(this.render, !1, !0);
const { latestValues: s, renderState: l } = a;
- this.latestValues = s, this.baseTarget = { ...s }, this.initialValues = r.initial ? { ...s } : {}, this.renderState = l, this.parent = t, this.props = r, this.presenceContext = n, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = o, this.options = i, this.isControllingVariants = Js(r), this.isVariantNode = qv(r), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
+ this.latestValues = s, this.baseTarget = { ...s }, this.initialValues = r.initial ? { ...s } : {}, this.renderState = l, this.parent = t, this.props = r, this.presenceContext = n, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = o, this.options = i, this.isControllingVariants = Zs(r), this.isVariantNode = Uv(r), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
const { willChange: c, ...u } = this.scrapeMotionValuesFromProps(r, {});
for (const d in u) {
const f = u[d];
- s[d] !== void 0 && Yt(f) && (f.set(s[d], !1), ks(c) && c.add(d));
+ s[d] !== void 0 && Yt(f) && (f.set(s[d], !1), _s(c) && c.add(d));
}
}
/**
@@ -15532,10 +15771,10 @@ class XI {
return {};
}
mount(t) {
- this.current = t, Ih.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)), cb.current || HI(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : lu.current, process.env.NODE_ENV !== "production" && bd(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);
+ this.current = t, Mh.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)), ib.current || VI(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : su.current, process.env.NODE_ENV !== "production" && vd(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);
}
unmount() {
- Ih.delete(this.current), this.projection && this.projection.unmount(), rn(this.notifyUpdate), rn(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
+ Mh.delete(this.current), this.projection && this.projection.unmount(), nn(this.notifyUpdate), nn(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
for (const t in this.events)
this.events[t].clear();
for (const t in this.features)
@@ -15543,7 +15782,7 @@ class XI {
this.current = null;
}
bindToMotionValue(t, r) {
- const n = Hn.has(t), o = r.on("change", (i) => {
+ const n = qn.has(t), o = r.on("change", (i) => {
this.latestValues[t] = i, this.props.onUpdate && tt.update(this.notifyUpdate, !1, !0), n && this.projection && (this.projection.isTransformDirty = !0);
}), a = r.on("renderRequest", this.scheduleRender);
this.valueSubscriptions.set(t, () => {
@@ -15559,8 +15798,8 @@ class XI {
const l = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
r.ignoreStrict ? ii(!1, l) : wr(!1, l);
}
- for (let l = 0; l < qI; l++) {
- const c = ub[l], { isEnabled: u, Feature: d, ProjectionNode: f, MeasureLayout: p } = La[c];
+ for (let l = 0; l < WI; l++) {
+ const c = sb[l], { isEnabled: u, Feature: d, ProjectionNode: f, MeasureLayout: p } = Wa[c];
f && (i = f), u(r) && (!this.features[c] && d && (this.features[c] = new d(this)), p && (s = p));
}
if (!this.projection && i) {
@@ -15569,7 +15808,7 @@ class XI {
this.projection.setOptions({
layoutId: l,
layout: c,
- alwaysMeasureLayout: !!u || d && lo(d),
+ alwaysMeasureLayout: !!u || d && co(d),
visualElement: this,
scheduleRender: () => this.scheduleRender(),
/**
@@ -15626,13 +15865,13 @@ class XI {
*/
update(t, r) {
(t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = r;
- for (let n = 0; n < Fh.length; n++) {
- const o = Fh[n];
+ for (let n = 0; n < Ih.length; n++) {
+ const o = Ih[n];
this.propEventSubscriptions[o] && (this.propEventSubscriptions[o](), delete this.propEventSubscriptions[o]);
const a = t["on" + o];
a && (this.propEventSubscriptions[o] = this.on(o, a));
}
- this.prevMotionValues = YI(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
+ this.prevMotionValues = LI(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
}
getProps() {
return this.props;
@@ -15663,9 +15902,9 @@ class XI {
return this.props.initial !== void 0 && (n.initial = this.props.initial), n;
}
const r = {};
- for (let n = 0; n < GI; n++) {
- const o = ed[n], a = this.props[o];
- (Va(a) || a === !1) && (r[o] = a);
+ for (let n = 0; n < UI; n++) {
+ const o = Ju[n], a = this.props[o];
+ (La(a) || a === !1) && (r[o] = a);
}
return r;
}
@@ -15701,7 +15940,7 @@ class XI {
if (this.props.values && this.props.values[t])
return this.props.values[t];
let n = this.values.get(t);
- return n === void 0 && r !== void 0 && (n = Oo(r, { owner: this }), this.addValue(t, n)), n;
+ return n === void 0 && r !== void 0 && (n = Ro(r, { owner: this }), this.addValue(t, n)), n;
}
/**
* If we're trying to animate to a previously unencountered value,
@@ -15724,20 +15963,20 @@ class XI {
*/
getBaseTarget(t) {
var r;
- const { initial: n } = this.props, o = typeof n == "string" || typeof n == "object" ? (r = cd(this.props, n)) === null || r === void 0 ? void 0 : r[t] : void 0;
+ const { initial: n } = this.props, o = typeof n == "string" || typeof n == "object" ? (r = sd(this.props, n)) === null || r === void 0 ? void 0 : r[t] : void 0;
if (n && o !== void 0)
return o;
const a = this.getBaseTargetFromProps(this.props, t);
return a !== void 0 && !Yt(a) ? a : this.initialValues[t] !== void 0 && o === void 0 ? void 0 : this.baseTarget[t];
}
on(t, r) {
- return this.events[t] || (this.events[t] = new gd()), this.events[t].add(r);
+ return this.events[t] || (this.events[t] = new md()), this.events[t].add(r);
}
notify(t, ...r) {
this.events[t] && this.events[t].notify(...r);
}
}
-class db extends XI {
+class lb extends HI {
sortInstanceNodePosition(t, r) {
return t.compareDocumentPosition(r) & 2 ? 1 : -1;
}
@@ -15748,10 +15987,10 @@ class db extends XI {
delete r[t], delete n[t];
}
makeTargetAnimatableFromInstance({ transition: t, transitionEnd: r, ...n }, { transformValues: o }, a) {
- let i = hM(n, t || {}, this);
+ let i = uM(n, t || {}, this);
if (o && (r && (r = o(r)), n && (n = o(n)), i && (i = o(i))), a) {
- fM(this, n, i);
- const s = UI(this, n, i, r);
+ lM(this, n, i);
+ const s = zI(this, n, i, r);
r = s.transitionEnd, n = s.target;
}
return {
@@ -15761,27 +16000,27 @@ class db extends XI {
};
}
}
-function KI(e) {
+function YI(e) {
return window.getComputedStyle(e);
}
-class ZI extends db {
+class qI extends lb {
readValueFromInstance(t, r) {
- if (Hn.has(r)) {
- const n = pd(r);
+ if (qn.has(r)) {
+ const n = dd(r);
return n && n.default || 0;
} else {
- const n = KI(t), o = (Zv(r) ? n.getPropertyValue(r) : n[r]) || 0;
+ const n = YI(t), o = (Gv(r) ? n.getPropertyValue(r) : n[r]) || 0;
return typeof o == "string" ? o.trim() : o;
}
}
measureInstanceViewportBox(t, { transformPagePoint: r }) {
- return Qg(t, r);
+ return Kg(t, r);
}
build(t, r, n, o) {
- nd(t, r, n, o.transformTemplate);
+ td(t, r, n, o.transformTemplate);
}
scrapeMotionValuesFromProps(t, r) {
- return ld(t, r);
+ return id(t, r);
}
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
@@ -15791,10 +16030,10 @@ class ZI extends db {
}));
}
renderInstance(t, r, n, o) {
- ng(t, r, n, o);
+ eg(t, r, n, o);
}
}
-class JI extends db {
+class GI extends lb {
constructor() {
super(...arguments), this.isSVGTag = !1;
}
@@ -15802,52 +16041,52 @@ class JI extends db {
return t[r];
}
readValueFromInstance(t, r) {
- if (Hn.has(r)) {
- const n = pd(r);
+ if (qn.has(r)) {
+ const n = dd(r);
return n && n.default || 0;
}
- return r = og.has(r) ? r : sd(r), t.getAttribute(r);
+ return r = tg.has(r) ? r : ad(r), t.getAttribute(r);
}
measureInstanceViewportBox() {
return mt();
}
scrapeMotionValuesFromProps(t, r) {
- return ig(t, r);
+ return ng(t, r);
}
build(t, r, n, o) {
- ad(t, r, n, this.isSVGTag, o.transformTemplate);
+ nd(t, r, n, this.isSVGTag, o.transformTemplate);
}
renderInstance(t, r, n, o) {
- ag(t, r, n, o);
+ rg(t, r, n, o);
}
mount(t) {
- this.isSVGTag = id(t.tagName), super.mount(t);
+ this.isSVGTag = od(t.tagName), super.mount(t);
}
}
-const QI = (e, t) => rd(e) ? new JI(t, { enableHardwareAcceleration: !1 }) : new ZI(t, { enableHardwareAcceleration: !0 }), eF = {
+const XI = (e, t) => ed(e) ? new GI(t, { enableHardwareAcceleration: !1 }) : new qI(t, { enableHardwareAcceleration: !0 }), KI = {
layout: {
- ProjectionNode: sb,
- MeasureLayout: tb
- }
-}, tF = {
- ...TM,
- ...Z2,
- ...$I,
- ...eF
-}, Cn = /* @__PURE__ */ a2((e, t) => M2(e, t, tF, QI));
-function fb() {
+ ProjectionNode: ob,
+ MeasureLayout: Jg
+ }
+}, ZI = {
+ ..._M,
+ ...q2,
+ ...PI,
+ ...KI
+}, _n = /* @__PURE__ */ t2((e, t) => O2(e, t, ZI, XI));
+function cb() {
const e = be(!1);
- return bs(() => (e.current = !0, () => {
+ return gs(() => (e.current = !0, () => {
e.current = !1;
}), []), e;
}
-function rF() {
- const e = fb(), [t, r] = Ye(0), n = q(() => {
+function JI() {
+ const e = cb(), [t, r] = Ye(0), n = q(() => {
e.current && r(t + 1);
}, [t]);
return [q(() => tt.postRender(n), [n]), t];
}
-class nF extends U.Component {
+class QI extends U.Component {
getSnapshotBeforeUpdate(t) {
const r = this.props.childRef.current;
if (r && t.isPresent && !this.props.isPresent) {
@@ -15865,14 +16104,14 @@ class nF extends U.Component {
return this.props.children;
}
}
-function oF({ children: e, isPresent: t }) {
+function eF({ children: e, isPresent: t }) {
const r = _r(), n = be(null), o = be({
width: 0,
height: 0,
top: 0,
left: 0
});
- return ym(() => {
+ return bm(() => {
const { width: a, height: i, top: s, left: l } = o.current;
if (t || !n.current || !a || !i)
return;
@@ -15889,10 +16128,10 @@ function oF({ children: e, isPresent: t }) {
`), () => {
document.head.removeChild(c);
};
- }, [t]), U.createElement(nF, { isPresent: t, childRef: n, sizeRef: o }, U.cloneElement(e, { ref: n }));
+ }, [t]), U.createElement(QI, { isPresent: t, childRef: n, sizeRef: o }, U.cloneElement(e, { ref: n }));
}
-const lc = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom: o, presenceAffectsLayout: a, mode: i }) => {
- const s = sg(aF), l = _r(), c = gt(
+const ic = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom: o, presenceAffectsLayout: a, mode: i }) => {
+ const s = og(tF), l = _r(), c = gt(
() => ({
id: l,
initial: t,
@@ -15918,40 +16157,40 @@ const lc = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom:
s.forEach((u, d) => s.set(d, !1));
}, [r]), U.useEffect(() => {
!r && !s.size && n && n();
- }, [r]), i === "popLayout" && (e = U.createElement(oF, { isPresent: r }, e)), U.createElement(ri.Provider, { value: c }, e);
+ }, [r]), i === "popLayout" && (e = U.createElement(eF, { isPresent: r }, e)), U.createElement(ri.Provider, { value: c }, e);
};
-function aF() {
+function tF() {
return /* @__PURE__ */ new Map();
}
-function iF(e) {
+function rF(e) {
return Fe(() => () => e(), []);
}
-const eo = (e) => e.key || "";
-function sF(e, t) {
+const ro = (e) => e.key || "";
+function nF(e, t) {
e.forEach((r) => {
- const n = eo(r);
+ const n = ro(r);
t.set(n, r);
});
}
-function lF(e) {
+function oF(e) {
const t = [];
- return Ms.forEach(e, (r) => {
- Eu(r) && t.push(r);
+ return Ds.forEach(e, (r) => {
+ Cu(r) && t.push(r);
}), t;
}
-const zo = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBeforeEnter: o, presenceAffectsLayout: a = !0, mode: i = "sync" }) => {
+const Vo = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBeforeEnter: o, presenceAffectsLayout: a = !0, mode: i = "sync" }) => {
wr(!o, "Replace exitBeforeEnter with mode='wait'");
- const s = ft(td).forceRender || rF()[0], l = fb(), c = lF(e);
+ const s = ft(Qu).forceRender || JI()[0], l = cb(), c = oF(e);
let u = c;
const d = be(/* @__PURE__ */ new Map()).current, f = be(u), p = be(/* @__PURE__ */ new Map()).current, m = be(!0);
- if (bs(() => {
- m.current = !1, sF(c, p), f.current = u;
- }), iF(() => {
+ if (gs(() => {
+ m.current = !1, nF(c, p), f.current = u;
+ }), rF(() => {
m.current = !0, p.clear(), d.clear();
}), m.current)
- return U.createElement(U.Fragment, null, u.map((y) => U.createElement(lc, { key: eo(y), isPresent: !0, initial: r ? void 0 : !1, presenceAffectsLayout: a, mode: i }, y)));
+ return U.createElement(U.Fragment, null, u.map((y) => U.createElement(ic, { key: ro(y), isPresent: !0, initial: r ? void 0 : !1, presenceAffectsLayout: a, mode: i }, y)));
u = [...u];
- const h = f.current.map(eo), v = c.map(eo), b = h.length;
+ const h = f.current.map(ro), v = c.map(ro), b = h.length;
for (let y = 0; y < b; y++) {
const S = h[y];
v.indexOf(S) === -1 && !d.has(S) && d.set(S, void 0);
@@ -15959,8 +16198,8 @@ const zo = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBe
return i === "wait" && d.size && (u = []), d.forEach((y, S) => {
if (v.indexOf(S) !== -1)
return;
- const k = p.get(S);
- if (!k)
+ const _ = p.get(S);
+ if (!_)
return;
const w = h.indexOf(S);
let M = y;
@@ -15974,15 +16213,15 @@ const zo = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBe
s(), n && n();
}
};
- M = U.createElement(lc, { key: eo(k), isPresent: !1, onExitComplete: P, custom: t, presenceAffectsLayout: a, mode: i }, k), d.set(S, M);
+ M = U.createElement(ic, { key: ro(_), isPresent: !1, onExitComplete: P, custom: t, presenceAffectsLayout: a, mode: i }, _), d.set(S, M);
}
u.splice(w, 0, M);
}), u = u.map((y) => {
const S = y.key;
- return d.has(S) ? y : U.createElement(lc, { key: eo(y), isPresent: !0, presenceAffectsLayout: a, mode: i }, y);
+ return d.has(S) ? y : U.createElement(ic, { key: ro(y), isPresent: !0, presenceAffectsLayout: a, mode: i }, y);
}), process.env.NODE_ENV !== "production" && i === "wait" && u.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`), U.createElement(U.Fragment, null, d.size ? u : u.map((y) => Ka(y)));
};
-var Nh = {
+var Fh = {
path: /* @__PURE__ */ L.jsxs("g", { stroke: "currentColor", strokeWidth: "1.5", children: [
/* @__PURE__ */ L.jsx(
"path",
@@ -16003,7 +16242,7 @@ var Nh = {
/* @__PURE__ */ L.jsx("circle", { fill: "none", strokeMiterlimit: "10", cx: "12", cy: "12", r: "11.25" })
] }),
viewBox: "0 0 24 24"
-}, nl = _e((e, t) => {
+}, gd = _e((e, t) => {
const {
as: r,
viewBox: n,
@@ -16013,7 +16252,7 @@ var Nh = {
className: s,
__css: l,
...c
- } = e, u = Xe("chakra-icon", s), d = No("Icon", e), f = {
+ } = e, u = Xe("chakra-icon", s), d = jo("Icon", e), f = {
w: "1em",
h: "1em",
display: "inline-block",
@@ -16027,29 +16266,29 @@ var Nh = {
focusable: a,
className: u,
__css: f
- }, m = n ?? Nh.viewBox;
+ }, m = n ?? Fh.viewBox;
if (r && typeof r != "string")
return /* @__PURE__ */ L.jsx(ge.svg, { as: r, ...p, ...c });
- const h = i ?? Nh.path;
+ const h = i ?? Fh.path;
return /* @__PURE__ */ L.jsx(ge.svg, { verticalAlign: "middle", viewBox: m, ...p, ...c, children: h });
});
-nl.displayName = "Icon";
-var KV = nl, cF = d_({
+gd.displayName = "Icon";
+var aF = i_({
"0%": {
transform: "rotate(0deg)"
},
"100%": {
transform: "rotate(360deg)"
}
-}), uF = _e((e, t) => {
- const r = No("Spinner", e), {
+}), iF = _e((e, t) => {
+ const r = jo("Spinner", e), {
label: n = "Loading...",
thickness: o = "2px",
speed: a = "0.45s",
emptyColor: i = "transparent",
className: s,
...l
- } = jr(e), c = Xe("chakra-spinner", s), u = {
+ } = Br(e), c = Xe("chakra-spinner", s), u = {
display: "inline-block",
borderColor: "currentColor",
borderStyle: "solid",
@@ -16057,7 +16296,7 @@ var KV = nl, cF = d_({
borderWidth: o,
borderBottomColor: i,
borderLeftColor: i,
- animation: `${cF} ${a} linear infinite`,
+ animation: `${aF} ${a} linear infinite`,
...r
};
return /* @__PURE__ */ L.jsx(
@@ -16071,9 +16310,9 @@ var KV = nl, cF = d_({
}
);
});
-uF.displayName = "Spinner";
-function dF(e) {
- return /* @__PURE__ */ L.jsx(nl, { focusable: "false", "aria-hidden": !0, ...e, children: /* @__PURE__ */ L.jsx(
+iF.displayName = "Spinner";
+function sF(e) {
+ return /* @__PURE__ */ L.jsx(gd, { focusable: "false", "aria-hidden": !0, ...e, children: /* @__PURE__ */ L.jsx(
"path",
{
fill: "currentColor",
@@ -16081,9 +16320,9 @@ function dF(e) {
}
) });
}
-var pb = _e(
+var ub = _e(
function(t, r) {
- const n = No("CloseButton", t), { children: o, isDisabled: a, __css: i, ...s } = jr(t), l = {
+ const n = jo("CloseButton", t), { children: o, isDisabled: a, __css: i, ...s } = Br(t), l = {
outline: 0,
display: "flex",
alignItems: "center",
@@ -16103,14 +16342,14 @@ var pb = _e(
...i
},
...s,
- children: o || /* @__PURE__ */ L.jsx(dF, { width: "1em", height: "1em" })
+ children: o || /* @__PURE__ */ L.jsx(sF, { width: "1em", height: "1em" })
}
);
}
);
-pb.displayName = "CloseButton";
-var fF = Object.defineProperty, pF = (e, t, r) => t in e ? fF(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t, r) => (pF(e, typeof t != "symbol" ? t + "" : t, r), r);
-function jh(e) {
+ub.displayName = "CloseButton";
+var lF = Object.defineProperty, cF = (e, t, r) => t in e ? lF(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t, r) => (cF(e, typeof t != "symbol" ? t + "" : t, r), r);
+function Nh(e) {
return e.sort((t, r) => {
const n = t.compareDocumentPosition(r);
if (n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY)
@@ -16122,25 +16361,25 @@ function jh(e) {
return 0;
});
}
-var hF = (e) => typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
-function Bh(e, t, r) {
+var uF = (e) => typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
+function jh(e, t, r) {
let n = e + 1;
return r && n >= t && (n = 0), n;
}
-function zh(e, t, r) {
+function Bh(e, t, r) {
let n = e - 1;
return r && n < 0 && (n = t), n;
}
-var cu = typeof window < "u" ? Ds : Fe, Ps = (e) => e, mF = class {
+var lu = typeof window < "u" ? $s : Fe, Es = (e) => e, dF = class {
constructor() {
ut(this, "descendants", /* @__PURE__ */ new Map()), ut(this, "register", (e) => {
if (e != null)
- return hF(e) ? this.registerNode(e) : (t) => {
+ return uF(e) ? this.registerNode(e) : (t) => {
this.registerNode(t, e);
};
}), ut(this, "unregister", (e) => {
this.descendants.delete(e);
- const t = jh(Array.from(this.descendants.keys()));
+ const t = Nh(Array.from(this.descendants.keys()));
this.assignIndex(t);
}), ut(this, "destroy", () => {
this.descendants.clear();
@@ -16162,26 +16401,26 @@ var cu = typeof window < "u" ? Ds : Fe, Ps = (e) => e, mF = class {
var t, r;
return e && (r = (t = this.descendants.get(e)) == null ? void 0 : t.index) != null ? r : -1;
}), ut(this, "enabledIndexOf", (e) => e == null ? -1 : this.enabledValues().findIndex((t) => t.node.isSameNode(e))), ut(this, "next", (e, t = !0) => {
- const r = Bh(e, this.count(), t);
+ const r = jh(e, this.count(), t);
return this.item(r);
}), ut(this, "nextEnabled", (e, t = !0) => {
const r = this.item(e);
if (!r)
return;
- const n = this.enabledIndexOf(r.node), o = Bh(
+ const n = this.enabledIndexOf(r.node), o = jh(
n,
this.enabledCount(),
t
);
return this.enabledItem(o);
}), ut(this, "prev", (e, t = !0) => {
- const r = zh(e, this.count() - 1, t);
+ const r = Bh(e, this.count() - 1, t);
return this.item(r);
}), ut(this, "prevEnabled", (e, t = !0) => {
const r = this.item(e);
if (!r)
return;
- const n = this.enabledIndexOf(r.node), o = zh(
+ const n = this.enabledIndexOf(r.node), o = Bh(
n,
this.enabledCount() - 1,
t
@@ -16190,14 +16429,14 @@ var cu = typeof window < "u" ? Ds : Fe, Ps = (e) => e, mF = class {
}), ut(this, "registerNode", (e, t) => {
if (!e || this.descendants.has(e))
return;
- const r = Array.from(this.descendants.keys()).concat(e), n = jh(r);
+ const r = Array.from(this.descendants.keys()).concat(e), n = Nh(r);
t != null && t.disabled && (t.disabled = !!t.disabled);
const o = { node: e, index: -1, ...t };
this.descendants.set(e, o), this.assignIndex(n);
});
}
};
-function vF(e, t) {
+function fF(e, t) {
if (e != null) {
if (typeof e == "function") {
e(t);
@@ -16213,32 +16452,32 @@ function vF(e, t) {
function St(...e) {
return (t) => {
e.forEach((r) => {
- vF(r, t);
+ fF(r, t);
});
};
}
-function ZV(...e) {
+function WV(...e) {
return gt(() => St(...e), e);
}
-function gF() {
- const e = be(new mF());
- return cu(() => () => e.current.destroy()), e.current;
+function pF() {
+ const e = be(new dF());
+ return lu(() => () => e.current.destroy()), e.current;
}
-var [bF, hb] = Nt({
+var [hF, db] = Nt({
name: "DescendantsProvider",
errorMessage: "useDescendantsContext must be used within DescendantsProvider"
});
-function yF(e) {
- const t = hb(), [r, n] = Ye(-1), o = be(null);
- cu(() => () => {
+function mF(e) {
+ const t = db(), [r, n] = Ye(-1), o = be(null);
+ lu(() => () => {
o.current && t.unregister(o.current);
- }, []), cu(() => {
+ }, []), lu(() => {
if (!o.current)
return;
const i = Number(o.current.dataset.index);
r != i && !Number.isNaN(i) && n(i);
});
- const a = Ps(e ? t.register(e) : t.register);
+ const a = Es(e ? t.register(e) : t.register);
return {
descendants: t,
index: r,
@@ -16246,15 +16485,15 @@ function yF(e) {
register: St(a, o)
};
}
-function xF() {
+function vF() {
return [
- Ps(bF),
- () => Ps(hb()),
- () => gF(),
- (o) => yF(o)
+ Es(hF),
+ () => Es(db()),
+ () => pF(),
+ (o) => mF(o)
];
}
-function yd(e) {
+function bd(e) {
const {
value: t,
defaultValue: r,
@@ -16269,12 +16508,12 @@ function yd(e) {
);
return [u, d];
}
-var uu = {
+var cu = {
ease: [0.25, 0.1, 0.25, 1],
easeIn: [0.4, 0, 1, 1],
easeOut: [0, 0, 0.2, 1],
easeInOut: [0.4, 0, 0.2, 1]
-}, ea = {
+}, ta = {
scale: {
enter: { scale: 1 },
exit: { scale: 0.95 }
@@ -16320,31 +16559,31 @@ var uu = {
exit: { x: 0, y: "100%" }
}
};
-function du(e) {
+function uu(e) {
var t;
switch ((t = e == null ? void 0 : e.direction) != null ? t : "right") {
case "right":
- return ea.slideRight;
+ return ta.slideRight;
case "left":
- return ea.slideLeft;
+ return ta.slideLeft;
case "bottom":
- return ea.slideDown;
+ return ta.slideDown;
case "top":
- return ea.slideUp;
+ return ta.slideUp;
default:
- return ea.slideRight;
+ return ta.slideRight;
}
}
-var zn = {
+var Vn = {
enter: {
duration: 0.2,
- ease: uu.easeOut
+ ease: cu.easeOut
},
exit: {
duration: 0.1,
- ease: uu.easeIn
+ ease: cu.easeIn
}
-}, Jr = {
+}, Qr = {
enter: (e, t) => ({
...e,
delay: typeof t == "number" ? t : t == null ? void 0 : t.enter
@@ -16353,12 +16592,12 @@ var zn = {
...e,
delay: typeof t == "number" ? t : t == null ? void 0 : t.exit
})
-}, SF = {
+}, gF = {
enter: ({ transition: e, transitionEnd: t, delay: r } = {}) => {
var n;
return {
opacity: 1,
- transition: (n = e == null ? void 0 : e.enter) != null ? n : Jr.enter(zn.enter, r),
+ transition: (n = e == null ? void 0 : e.enter) != null ? n : Qr.enter(Vn.enter, r),
transitionEnd: t == null ? void 0 : t.enter
};
},
@@ -16366,16 +16605,16 @@ var zn = {
var n;
return {
opacity: 0,
- transition: (n = e == null ? void 0 : e.exit) != null ? n : Jr.exit(zn.exit, r),
+ transition: (n = e == null ? void 0 : e.exit) != null ? n : Qr.exit(Vn.exit, r),
transitionEnd: t == null ? void 0 : t.exit
};
}
-}, mb = {
+}, fb = {
initial: "exit",
animate: "enter",
exit: "exit",
- variants: SF
-}, wF = At(function(t, r) {
+ variants: gF
+}, bF = At(function(t, r) {
const {
unmountOnExit: n,
in: o,
@@ -16385,26 +16624,26 @@ var zn = {
delay: l,
...c
} = t, u = o || n ? "enter" : "exit", d = n ? o && n : !0, f = { transition: i, transitionEnd: s, delay: l };
- return /* @__PURE__ */ L.jsx(zo, { custom: f, children: d && /* @__PURE__ */ L.jsx(
- Cn.div,
+ return /* @__PURE__ */ L.jsx(Vo, { custom: f, children: d && /* @__PURE__ */ L.jsx(
+ _n.div,
{
ref: r,
className: Xe("chakra-fade", a),
custom: f,
- ...mb,
+ ...fb,
animate: u,
...c
}
) });
});
-wF.displayName = "Fade";
-var CF = {
+bF.displayName = "Fade";
+var yF = {
exit: ({ reverse: e, initialScale: t, transition: r, transitionEnd: n, delay: o }) => {
var a;
return {
opacity: 0,
...e ? { scale: t, transitionEnd: n == null ? void 0 : n.exit } : { transitionEnd: { scale: t, ...n == null ? void 0 : n.exit } },
- transition: (a = r == null ? void 0 : r.exit) != null ? a : Jr.exit(zn.exit, o)
+ transition: (a = r == null ? void 0 : r.exit) != null ? a : Qr.exit(Vn.exit, o)
};
},
enter: ({ transitionEnd: e, transition: t, delay: r }) => {
@@ -16412,16 +16651,16 @@ var CF = {
return {
opacity: 1,
scale: 1,
- transition: (n = t == null ? void 0 : t.enter) != null ? n : Jr.enter(zn.enter, r),
+ transition: (n = t == null ? void 0 : t.enter) != null ? n : Qr.enter(Vn.enter, r),
transitionEnd: e == null ? void 0 : e.enter
};
}
-}, vb = {
+}, pb = {
initial: "exit",
animate: "enter",
exit: "exit",
- variants: CF
-}, _F = At(
+ variants: yF
+}, xF = At(
function(t, r) {
const {
unmountOnExit: n,
@@ -16434,12 +16673,12 @@ var CF = {
delay: u,
...d
} = t, f = n ? o && n : !0, p = o || n ? "enter" : "exit", m = { initialScale: i, reverse: a, transition: l, transitionEnd: c, delay: u };
- return /* @__PURE__ */ L.jsx(zo, { custom: m, children: f && /* @__PURE__ */ L.jsx(
- Cn.div,
+ return /* @__PURE__ */ L.jsx(Vo, { custom: m, children: f && /* @__PURE__ */ L.jsx(
+ _n.div,
{
ref: r,
className: Xe("chakra-offset-slide", s),
- ...vb,
+ ...pb,
animate: p,
custom: m,
...d
@@ -16447,15 +16686,15 @@ var CF = {
) });
}
);
-_F.displayName = "ScaleFade";
-var kF = {
+xF.displayName = "ScaleFade";
+var SF = {
initial: ({ offsetX: e, offsetY: t, transition: r, transitionEnd: n, delay: o }) => {
var a;
return {
opacity: 0,
x: e,
y: t,
- transition: (a = r == null ? void 0 : r.exit) != null ? a : Jr.exit(zn.exit, o),
+ transition: (a = r == null ? void 0 : r.exit) != null ? a : Qr.exit(Vn.exit, o),
transitionEnd: n == null ? void 0 : n.exit
};
},
@@ -16465,7 +16704,7 @@ var kF = {
opacity: 1,
x: 0,
y: 0,
- transition: (n = e == null ? void 0 : e.enter) != null ? n : Jr.enter(zn.enter, r),
+ transition: (n = e == null ? void 0 : e.enter) != null ? n : Qr.enter(Vn.enter, r),
transitionEnd: t == null ? void 0 : t.enter
};
},
@@ -16474,16 +16713,16 @@ var kF = {
const s = { x: t, y: e };
return {
opacity: 0,
- transition: (i = r == null ? void 0 : r.exit) != null ? i : Jr.exit(zn.exit, a),
+ transition: (i = r == null ? void 0 : r.exit) != null ? i : Qr.exit(Vn.exit, a),
...o ? { ...s, transitionEnd: n == null ? void 0 : n.exit } : { transitionEnd: { ...s, ...n == null ? void 0 : n.exit } }
};
}
-}, fu = {
+}, ua = {
initial: "initial",
animate: "enter",
exit: "exit",
- variants: kF
-}, EF = At(
+ variants: SF
+}, wF = At(
function(t, r) {
const {
unmountOnExit: n,
@@ -16504,50 +16743,50 @@ var kF = {
transitionEnd: u,
delay: d
};
- return /* @__PURE__ */ L.jsx(zo, { custom: h, children: p && /* @__PURE__ */ L.jsx(
- Cn.div,
+ return /* @__PURE__ */ L.jsx(Vo, { custom: h, children: p && /* @__PURE__ */ L.jsx(
+ _n.div,
{
ref: r,
className: Xe("chakra-offset-slide", i),
custom: h,
- ...fu,
+ ...ua,
animate: m,
...f
}
) });
}
);
-EF.displayName = "SlideFade";
-var Vh = {
+wF.displayName = "SlideFade";
+var zh = {
exit: {
duration: 0.15,
- ease: uu.easeInOut
+ ease: cu.easeInOut
},
enter: {
type: "spring",
damping: 25,
stiffness: 180
}
-}, PF = {
+}, CF = {
exit: ({ direction: e, transition: t, transitionEnd: r, delay: n }) => {
var o;
- const { exit: a } = du({ direction: e });
+ const { exit: a } = uu({ direction: e });
return {
...a,
- transition: (o = t == null ? void 0 : t.exit) != null ? o : Jr.exit(Vh.exit, n),
+ transition: (o = t == null ? void 0 : t.exit) != null ? o : Qr.exit(zh.exit, n),
transitionEnd: r == null ? void 0 : r.exit
};
},
enter: ({ direction: e, transitionEnd: t, transition: r, delay: n }) => {
var o;
- const { enter: a } = du({ direction: e });
+ const { enter: a } = uu({ direction: e });
return {
...a,
- transition: (o = r == null ? void 0 : r.enter) != null ? o : Jr.enter(Vh.enter, n),
+ transition: (o = r == null ? void 0 : r.enter) != null ? o : Qr.enter(zh.enter, n),
transitionEnd: t == null ? void 0 : t.enter
};
}
-}, gb = At(function(t, r) {
+}, hb = At(function(t, r) {
const {
direction: n = "right",
style: o,
@@ -16559,13 +16798,13 @@ var Vh = {
delay: u,
motionProps: d,
...f
- } = t, p = du({ direction: n }), m = Object.assign(
+ } = t, p = uu({ direction: n }), m = Object.assign(
{ position: "fixed" },
p.position,
o
), h = a ? i && a : !0, v = i || a ? "enter" : "exit", b = { transitionEnd: c, transition: l, direction: n, delay: u };
- return /* @__PURE__ */ L.jsx(zo, { custom: b, children: h && /* @__PURE__ */ L.jsx(
- Cn.div,
+ return /* @__PURE__ */ L.jsx(Vo, { custom: b, children: h && /* @__PURE__ */ L.jsx(
+ _n.div,
{
...f,
ref: r,
@@ -16574,26 +16813,26 @@ var Vh = {
animate: v,
exit: "exit",
custom: b,
- variants: PF,
+ variants: CF,
style: m,
...d
}
) });
});
-gb.displayName = "Slide";
-function bb(e) {
- return Ms.toArray(e).filter(
- (t) => Eu(t)
+hb.displayName = "Slide";
+function mb(e) {
+ return Ds.toArray(e).filter(
+ (t) => Cu(t)
);
}
-var [TF, yb] = Nt({
+var [_F, vb] = Nt({
name: "FormControlStylesContext",
errorMessage: `useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `
-}), [AF, Vo] = Nt({
+}), [kF, Lo] = Nt({
strict: !1,
name: "FormControlContext"
});
-function OF(e) {
+function EF(e) {
const {
id: t,
isRequired: r,
@@ -16618,15 +16857,15 @@ function OF(e) {
(P = {}, I = null) => ({
...P,
ref: I,
- "data-focus": to(v),
- "data-disabled": to(o),
- "data-invalid": to(n),
- "data-readonly": to(a),
+ "data-focus": Ar(v),
+ "data-disabled": Ar(o),
+ "data-invalid": Ar(n),
+ "data-readonly": Ar(a),
id: P.id !== void 0 ? P.id : c,
htmlFor: P.htmlFor !== void 0 ? P.htmlFor : l
}),
[l, o, v, n, a, c]
- ), k = q(
+ ), _ = q(
(P = {}, I = null) => ({
id: u,
...P,
@@ -16645,9 +16884,13 @@ function OF(e) {
...P,
...i,
ref: I,
- role: "group"
+ role: "group",
+ "data-focus": Ar(v),
+ "data-disabled": Ar(o),
+ "data-invalid": Ar(n),
+ "data-readonly": Ar(a)
}),
- [i]
+ [i, o, v, n, a]
), M = q(
(P = {}, I = null) => ({
...P,
@@ -16676,20 +16919,20 @@ function OF(e) {
helpTextId: d,
htmlProps: i,
getHelpTextProps: y,
- getErrorMessageProps: k,
+ getErrorMessageProps: _,
getRootProps: w,
getLabelProps: S,
getRequiredIndicatorProps: M
};
}
-var $F = _e(
+var PF = _e(
function(t, r) {
- const n = jo("Form", t), o = jr(t), {
+ const n = Bo("Form", t), o = Br(t), {
getRootProps: a,
htmlProps: i,
...s
- } = OF(o), l = Xe("chakra-form-control", t.className);
- return /* @__PURE__ */ L.jsx(AF, { value: s, children: /* @__PURE__ */ L.jsx(TF, { value: n, children: /* @__PURE__ */ L.jsx(
+ } = EF(o), l = Xe("chakra-form-control", t.className);
+ return /* @__PURE__ */ L.jsx(kF, { value: s, children: /* @__PURE__ */ L.jsx(_F, { value: n, children: /* @__PURE__ */ L.jsx(
ge.div,
{
...a({}, r),
@@ -16699,10 +16942,10 @@ var $F = _e(
) }) });
}
);
-$F.displayName = "FormControl";
-var RF = _e(
+PF.displayName = "FormControl";
+var TF = _e(
function(t, r) {
- const n = Vo(), o = yb(), a = Xe("chakra-form__helper-text", t.className);
+ const n = Lo(), o = vb(), a = Xe("chakra-form__helper-text", t.className);
return /* @__PURE__ */ L.jsx(
ge.div,
{
@@ -16713,14 +16956,14 @@ var RF = _e(
);
}
);
-RF.displayName = "FormHelperText";
-var [DF, MF] = Nt({
+TF.displayName = "FormHelperText";
+var [AF, OF] = Nt({
name: "FormErrorStylesContext",
errorMessage: `useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `
-}), IF = _e(
+}), RF = _e(
(e, t) => {
- const r = jo("FormError", e), n = jr(e), o = Vo();
- return o != null && o.isInvalid ? /* @__PURE__ */ L.jsx(DF, { value: r, children: /* @__PURE__ */ L.jsx(
+ const r = Bo("FormError", e), n = Br(e), o = Lo();
+ return o != null && o.isInvalid ? /* @__PURE__ */ L.jsx(AF, { value: r, children: /* @__PURE__ */ L.jsx(
ge.div,
{
...o == null ? void 0 : o.getErrorMessageProps(n, t),
@@ -16734,14 +16977,14 @@ var [DF, MF] = Nt({
) }) : null;
}
);
-IF.displayName = "FormErrorMessage";
-var FF = _e((e, t) => {
- const r = MF(), n = Vo();
+RF.displayName = "FormErrorMessage";
+var $F = _e((e, t) => {
+ const r = OF(), n = Lo();
if (!(n != null && n.isInvalid))
return null;
const o = Xe("chakra-form__error-icon", e.className);
return /* @__PURE__ */ L.jsx(
- nl,
+ gd,
{
ref: t,
"aria-hidden": !0,
@@ -16758,16 +17001,16 @@ var FF = _e((e, t) => {
}
);
});
-FF.displayName = "FormErrorIcon";
-var NF = _e(function(t, r) {
+$F.displayName = "FormErrorIcon";
+var DF = _e(function(t, r) {
var n;
- const o = No("FormLabel", t), a = jr(t), {
+ const o = jo("FormLabel", t), a = Br(t), {
className: i,
children: s,
- requiredIndicator: l = /* @__PURE__ */ L.jsx(xb, {}),
+ requiredIndicator: l = /* @__PURE__ */ L.jsx(gb, {}),
optionalIndicator: c = null,
...u
- } = a, d = Vo(), f = (n = d == null ? void 0 : d.getLabelProps(u, r)) != null ? n : { ref: r, ...u };
+ } = a, d = Lo(), f = (n = d == null ? void 0 : d.getLabelProps(u, r)) != null ? n : { ref: r, ...u };
return /* @__PURE__ */ L.jsxs(
ge.label,
{
@@ -16785,10 +17028,10 @@ var NF = _e(function(t, r) {
}
);
});
-NF.displayName = "FormLabel";
-var xb = _e(
+DF.displayName = "FormLabel";
+var gb = _e(
function(t, r) {
- const n = Vo(), o = yb();
+ const n = Lo(), o = vb();
if (!(n != null && n.isRequired))
return null;
const a = Xe("chakra-form__required-indicator", t.className);
@@ -16802,22 +17045,22 @@ var xb = _e(
);
}
);
-xb.displayName = "RequiredIndicator";
-function JV(e) {
- const { isDisabled: t, isInvalid: r, isReadOnly: n, isRequired: o, ...a } = jF(e);
+gb.displayName = "RequiredIndicator";
+function UV(e) {
+ const { isDisabled: t, isInvalid: r, isReadOnly: n, isRequired: o, ...a } = MF(e);
return {
...a,
disabled: t,
readOnly: n,
required: o,
- "aria-invalid": Ol(r),
- "aria-required": Ol(o),
- "aria-readonly": Ol(n)
+ "aria-invalid": Tl(r),
+ "aria-required": Tl(o),
+ "aria-readonly": Tl(n)
};
}
-function jF(e) {
+function MF(e) {
var t, r, n;
- const o = Vo(), {
+ const o = Lo(), {
id: a,
disabled: i,
readOnly: s,
@@ -16838,20 +17081,20 @@ function jF(e) {
isReadOnly: (r = s ?? d) != null ? r : o == null ? void 0 : o.isReadOnly,
isRequired: (n = l ?? c) != null ? n : o == null ? void 0 : o.isRequired,
isInvalid: u ?? (o == null ? void 0 : o.isInvalid),
- onFocus: Rt(o == null ? void 0 : o.onFocus, p),
- onBlur: Rt(o == null ? void 0 : o.onBlur, m)
+ onFocus: $t(o == null ? void 0 : o.onFocus, p),
+ onBlur: $t(o == null ? void 0 : o.onBlur, m)
};
}
-function BF(e) {
+function IF(e) {
const t = parseFloat(e);
return typeof t != "number" || Number.isNaN(t) ? 0 : t;
}
-function zF(e, t) {
- let r = BF(e);
+function FF(e, t) {
+ let r = IF(e);
const n = 10 ** (t ?? 10);
return r = Math.round(r * n) / n, t ? r.toFixed(t) : r.toString();
}
-function VF(e) {
+function NF(e) {
if (!Number.isFinite(e))
return 0;
let t = 1, r = 0;
@@ -16859,20 +17102,20 @@ function VF(e) {
t *= 10, r += 1;
return r;
}
-function Ts(e, t, r) {
+function Ps(e, t, r) {
return (e - t) * 100 / (r - t);
}
-function Sb(e, t, r) {
+function bb(e, t, r) {
return (r - t) * e + t;
}
-function pu(e, t, r) {
- const n = Math.round((e - t) / r) * r + t, o = VF(r);
- return zF(n, o);
+function du(e, t, r) {
+ const n = Math.round((e - t) / r) * r + t, o = NF(r);
+ return FF(n, o);
}
-function Sa(e, t, r) {
+function Ca(e, t, r) {
return e == null ? e : (r < t && console.warn("clamp: max cannot be less than min"), Math.min(Math.max(e, t), r));
}
-function wa(e, t, r, n) {
+function _a(e, t, r, n) {
const o = Jt(r);
return Fe(() => {
const a = typeof e == "function" ? e() : e ?? document;
@@ -16885,7 +17128,7 @@ function wa(e, t, r, n) {
a == null || a.removeEventListener(t, o, n);
};
}
-function LF(e, t) {
+function jF(e, t) {
if (e == null)
return {};
var r = {}, n = Object.keys(e), o, a;
@@ -16893,37 +17136,27 @@ function LF(e, t) {
o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
return r;
}
-function Ha() {
- return Ha = Object.assign ? Object.assign.bind() : function(e) {
- for (var t = 1; t < arguments.length; t++) {
- var r = arguments[t];
- for (var n in r)
- Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
- }
- return e;
- }, Ha.apply(this, arguments);
-}
-var hu = { exports: {} }, cc, Lh;
-function xd() {
- if (Lh)
- return cc;
- Lh = 1;
+var fu = { exports: {} }, sc, Vh;
+function yd() {
+ if (Vh)
+ return sc;
+ Vh = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
- return cc = e, cc;
+ return sc = e, sc;
}
-var uc, Wh;
-function wb() {
- return Wh || (Wh = 1, uc = Function.call.bind(Object.prototype.hasOwnProperty)), uc;
+var lc, Lh;
+function yb() {
+ return Lh || (Lh = 1, lc = Function.call.bind(Object.prototype.hasOwnProperty)), lc;
}
-var dc, Uh;
-function WF() {
- if (Uh)
- return dc;
- Uh = 1;
+var cc, Wh;
+function BF() {
+ if (Wh)
+ return cc;
+ Wh = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
- var t = xd(), r = {}, n = wb();
+ var t = yd(), r = {}, n = yb();
e = function(a) {
var i = "Warning: " + a;
typeof console < "u" && console.error(i);
@@ -16963,14 +17196,14 @@ function WF() {
}
return o.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (r = {});
- }, dc = o, dc;
+ }, cc = o, cc;
}
-var fc, Hh;
-function UF() {
- if (Hh)
- return fc;
- Hh = 1;
- var e = $u, t = Om(), r = xd(), n = wb(), o = WF(), a = function() {
+var uc, Uh;
+function zF() {
+ if (Uh)
+ return uc;
+ Uh = 1;
+ var e = Au, t = Tm(), r = yd(), n = yb(), o = BF(), a = function() {
};
process.env.NODE_ENV !== "production" && (a = function(s) {
var l = "Warning: " + s;
@@ -16983,7 +17216,7 @@ function UF() {
function i() {
return null;
}
- return fc = function(s, l) {
+ return uc = function(s, l) {
var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
function d(F) {
var N = F && (c && F[c] || F[u]);
@@ -17001,7 +17234,7 @@ function UF() {
symbol: b("symbol"),
any: y(),
arrayOf: S,
- element: k(),
+ element: _(),
elementType: w(),
instanceOf: M,
node: j(),
@@ -17021,33 +17254,33 @@ function UF() {
function v(F) {
if (process.env.NODE_ENV !== "production")
var N = {}, V = 0;
- function T(B, C, H, A, Z, Y, ae) {
- if (A = A || f, Y = Y || H, ae !== r) {
+ function T(B, C, H, O, Z, Y, ae) {
+ if (O = O || f, Y = Y || H, ae !== r) {
if (l) {
- var $ = new Error(
+ var R = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
);
- throw $.name = "Invariant Violation", $;
+ throw R.name = "Invariant Violation", R;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
- var Se = A + ":" + H;
+ var Se = O + ":" + H;
!N[Se] && // Avoid spamming the console because they are often not actionable except for lib authors
V < 3 && (a(
- "You are manually calling a React.PropTypes validation function for the `" + Y + "` prop on `" + A + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
+ "You are manually calling a React.PropTypes validation function for the `" + Y + "` prop on `" + O + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
), N[Se] = !0, V++);
}
}
- return C[H] == null ? B ? C[H] === null ? new h("The " + Z + " `" + Y + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new h("The " + Z + " `" + Y + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : F(C, H, A, Z, Y);
+ return C[H] == null ? B ? C[H] === null ? new h("The " + Z + " `" + Y + "` is marked as required " + ("in `" + O + "`, but its value is `null`.")) : new h("The " + Z + " `" + Y + "` is marked as required in " + ("`" + O + "`, but its value is `undefined`.")) : null : F(C, H, O, Z, Y);
}
- var O = T.bind(null, !1);
- return O.isRequired = T.bind(null, !0), O;
+ var A = T.bind(null, !1);
+ return A.isRequired = T.bind(null, !0), A;
}
function b(F) {
- function N(V, T, O, B, C, H) {
- var A = V[T], Z = oe(A);
+ function N(V, T, A, B, C, H) {
+ var O = V[T], Z = oe(O);
if (Z !== F) {
- var Y = D(A);
+ var Y = D(O);
return new h(
- "Invalid " + B + " `" + C + "` of type " + ("`" + Y + "` supplied to `" + O + "`, expected ") + ("`" + F + "`."),
+ "Invalid " + B + " `" + C + "` of type " + ("`" + Y + "` supplied to `" + A + "`, expected ") + ("`" + F + "`."),
{ expectedType: F }
);
}
@@ -17059,16 +17292,16 @@ function UF() {
return v(i);
}
function S(F) {
- function N(V, T, O, B, C) {
+ function N(V, T, A, B, C) {
if (typeof F != "function")
- return new h("Property `" + C + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
+ return new h("Property `" + C + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
var H = V[T];
if (!Array.isArray(H)) {
- var A = oe(H);
- return new h("Invalid " + B + " `" + C + "` of type " + ("`" + A + "` supplied to `" + O + "`, expected an array."));
+ var O = oe(H);
+ return new h("Invalid " + B + " `" + C + "` of type " + ("`" + O + "` supplied to `" + A + "`, expected an array."));
}
for (var Z = 0; Z < H.length; Z++) {
- var Y = F(H, Z, O, B, C + "[" + Z + "]", r);
+ var Y = F(H, Z, A, B, C + "[" + Z + "]", r);
if (Y instanceof Error)
return Y;
}
@@ -17076,33 +17309,33 @@ function UF() {
}
return v(N);
}
- function k() {
- function F(N, V, T, O, B) {
+ function _() {
+ function F(N, V, T, A, B) {
var C = N[V];
if (!s(C)) {
var H = oe(C);
- return new h("Invalid " + O + " `" + B + "` of type " + ("`" + H + "` supplied to `" + T + "`, expected a single ReactElement."));
+ return new h("Invalid " + A + " `" + B + "` of type " + ("`" + H + "` supplied to `" + T + "`, expected a single ReactElement."));
}
return null;
}
return v(F);
}
function w() {
- function F(N, V, T, O, B) {
+ function F(N, V, T, A, B) {
var C = N[V];
if (!e.isValidElementType(C)) {
var H = oe(C);
- return new h("Invalid " + O + " `" + B + "` of type " + ("`" + H + "` supplied to `" + T + "`, expected a single ReactElement type."));
+ return new h("Invalid " + A + " `" + B + "` of type " + ("`" + H + "` supplied to `" + T + "`, expected a single ReactElement type."));
}
return null;
}
return v(F);
}
function M(F) {
- function N(V, T, O, B, C) {
+ function N(V, T, A, B, C) {
if (!(V[T] instanceof F)) {
- var H = F.name || f, A = fe(V[T]);
- return new h("Invalid " + B + " `" + C + "` of type " + ("`" + A + "` supplied to `" + O + "`, expected ") + ("instance of `" + H + "`."));
+ var H = F.name || f, O = fe(V[T]);
+ return new h("Invalid " + B + " `" + C + "` of type " + ("`" + O + "` supplied to `" + A + "`, expected ") + ("instance of `" + H + "`."));
}
return null;
}
@@ -17113,28 +17346,28 @@ function UF() {
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
- function N(V, T, O, B, C) {
- for (var H = V[T], A = 0; A < F.length; A++)
- if (m(H, F[A]))
+ function N(V, T, A, B, C) {
+ for (var H = V[T], O = 0; O < F.length; O++)
+ if (m(H, F[O]))
return null;
- var Z = JSON.stringify(F, function(ae, $) {
- var Se = D($);
- return Se === "symbol" ? String($) : $;
+ var Z = JSON.stringify(F, function(ae, R) {
+ var Se = D(R);
+ return Se === "symbol" ? String(R) : R;
});
- return new h("Invalid " + B + " `" + C + "` of value `" + String(H) + "` " + ("supplied to `" + O + "`, expected one of " + Z + "."));
+ return new h("Invalid " + B + " `" + C + "` of value `" + String(H) + "` " + ("supplied to `" + A + "`, expected one of " + Z + "."));
}
return v(N);
}
function I(F) {
- function N(V, T, O, B, C) {
+ function N(V, T, A, B, C) {
if (typeof F != "function")
- return new h("Property `" + C + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
- var H = V[T], A = oe(H);
- if (A !== "object")
- return new h("Invalid " + B + " `" + C + "` of type " + ("`" + A + "` supplied to `" + O + "`, expected an object."));
+ return new h("Property `" + C + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
+ var H = V[T], O = oe(H);
+ if (O !== "object")
+ return new h("Invalid " + B + " `" + C + "` of type " + ("`" + O + "` supplied to `" + A + "`, expected an object."));
for (var Z in H)
if (n(H, Z)) {
- var Y = F(H, Z, O, B, C + "." + Z, r);
+ var Y = F(H, Z, A, B, C + "." + Z, r);
if (Y instanceof Error)
return Y;
}
@@ -17152,39 +17385,39 @@ function UF() {
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ce(V) + " at index " + N + "."
), i;
}
- function T(O, B, C, H, A) {
+ function T(A, B, C, H, O) {
for (var Z = [], Y = 0; Y < F.length; Y++) {
- var ae = F[Y], $ = ae(O, B, C, H, A, r);
- if ($ == null)
+ var ae = F[Y], R = ae(A, B, C, H, O, r);
+ if (R == null)
return null;
- $.data && n($.data, "expectedType") && Z.push($.data.expectedType);
+ R.data && n(R.data, "expectedType") && Z.push(R.data.expectedType);
}
var Se = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
- return new h("Invalid " + H + " `" + A + "` supplied to " + ("`" + C + "`" + Se + "."));
+ return new h("Invalid " + H + " `" + O + "` supplied to " + ("`" + C + "`" + Se + "."));
}
return v(T);
}
function j() {
- function F(N, V, T, O, B) {
- return Q(N[V]) ? null : new h("Invalid " + O + " `" + B + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
+ function F(N, V, T, A, B) {
+ return Q(N[V]) ? null : new h("Invalid " + A + " `" + B + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
}
return v(F);
}
- function X(F, N, V, T, O) {
+ function X(F, N, V, T, A) {
return new h(
- (F || "React class") + ": " + N + " type `" + V + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
+ (F || "React class") + ": " + N + " type `" + V + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
);
}
function ne(F) {
- function N(V, T, O, B, C) {
- var H = V[T], A = oe(H);
- if (A !== "object")
- return new h("Invalid " + B + " `" + C + "` of type `" + A + "` " + ("supplied to `" + O + "`, expected `object`."));
+ function N(V, T, A, B, C) {
+ var H = V[T], O = oe(H);
+ if (O !== "object")
+ return new h("Invalid " + B + " `" + C + "` of type `" + O + "` " + ("supplied to `" + A + "`, expected `object`."));
for (var Z in F) {
var Y = F[Z];
if (typeof Y != "function")
- return X(O, B, C, Z, D(Y));
- var ae = Y(H, Z, O, B, C + "." + Z, r);
+ return X(A, B, C, Z, D(Y));
+ var ae = Y(H, Z, A, B, C + "." + Z, r);
if (ae)
return ae;
}
@@ -17193,23 +17426,23 @@ function UF() {
return v(N);
}
function J(F) {
- function N(V, T, O, B, C) {
- var H = V[T], A = oe(H);
- if (A !== "object")
- return new h("Invalid " + B + " `" + C + "` of type `" + A + "` " + ("supplied to `" + O + "`, expected `object`."));
+ function N(V, T, A, B, C) {
+ var H = V[T], O = oe(H);
+ if (O !== "object")
+ return new h("Invalid " + B + " `" + C + "` of type `" + O + "` " + ("supplied to `" + A + "`, expected `object`."));
var Z = t({}, V[T], F);
for (var Y in Z) {
var ae = F[Y];
if (n(F, Y) && typeof ae != "function")
- return X(O, B, C, Y, D(ae));
+ return X(A, B, C, Y, D(ae));
if (!ae)
return new h(
- "Invalid " + B + " `" + C + "` key `" + Y + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(V[T], null, " ") + `
+ "Invalid " + B + " `" + C + "` key `" + Y + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(V[T], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(F), null, " ")
);
- var $ = ae(H, Y, O, B, C + "." + Y, r);
- if ($)
- return $;
+ var R = ae(H, Y, A, B, C + "." + Y, r);
+ if (R)
+ return R;
}
return null;
}
@@ -17237,8 +17470,8 @@ Valid keys: ` + JSON.stringify(Object.keys(F), null, " ")
return !1;
} else
for (; !(T = V.next()).done; ) {
- var O = T.value;
- if (O && !Q(O[1]))
+ var A = T.value;
+ if (A && !Q(A[1]))
return !1;
}
} else
@@ -17285,19 +17518,19 @@ Valid keys: ` + JSON.stringify(Object.keys(F), null, " ")
return !F.constructor || !F.constructor.name ? f : F.constructor.name;
}
return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
- }, fc;
-}
-var pc, Yh;
-function HF() {
- if (Yh)
- return pc;
- Yh = 1;
- var e = xd();
+ }, uc;
+}
+var dc, Hh;
+function VF() {
+ if (Hh)
+ return dc;
+ Hh = 1;
+ var e = yd();
function t() {
}
function r() {
}
- return r.resetWarningCache = t, pc = function() {
+ return r.resetWarningCache = t, dc = function() {
function n(i, s, l, c, u, d) {
if (d !== e) {
var f = new Error(
@@ -17334,20 +17567,20 @@ function HF() {
resetWarningCache: t
};
return a.PropTypes = a, a;
- }, pc;
+ }, dc;
}
if (process.env.NODE_ENV !== "production") {
- var YF = $u, qF = !0;
- hu.exports = UF()(YF.isElement, qF);
+ var LF = Au, WF = !0;
+ fu.exports = zF()(LF.isElement, WF);
} else
- hu.exports = HF()();
-var Ge = hu.exports;
-const Cb = /* @__PURE__ */ Is(Ge);
-var mu = "data-focus-lock", _b = "data-focus-lock-disabled", GF = "data-no-focus-lock", XF = "data-autofocus-inside", KF = "data-no-autofocus";
-function ZF(e, t) {
+ fu.exports = VF()();
+var Ge = fu.exports;
+const xb = /* @__PURE__ */ Ms(Ge);
+var pu = "data-focus-lock", Sb = "data-focus-lock-disabled", UF = "data-no-focus-lock", HF = "data-autofocus-inside", YF = "data-no-autofocus";
+function qF(e, t) {
return typeof e == "function" ? e(t) : e && (e.current = t), e;
}
-function JF(e, t) {
+function GF(e, t) {
var r = Ye(function() {
return {
// value
@@ -17368,14 +17601,14 @@ function JF(e, t) {
})[0];
return r.callback = t, r.facade;
}
-function kb(e, t) {
- return JF(t || null, function(r) {
+function wb(e, t) {
+ return GF(t || null, function(r) {
return e.forEach(function(n) {
- return ZF(n, r);
+ return qF(n, r);
});
});
}
-var hc = {
+var fc = {
width: "1px",
height: "0px",
padding: 0,
@@ -17384,18 +17617,18 @@ var hc = {
top: "1px",
left: "1px"
};
-process.env.NODE_ENV !== "production" && Cb.node;
-var Rr = function() {
- return Rr = Object.assign || function(t) {
+process.env.NODE_ENV !== "production" && xb.node;
+var Dr = function() {
+ return Dr = Object.assign || function(t) {
for (var r, n = 1, o = arguments.length; n < o; n++) {
r = arguments[n];
for (var a in r)
Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
}
return t;
- }, Rr.apply(this, arguments);
+ }, Dr.apply(this, arguments);
};
-function Eb(e, t) {
+function Cb(e, t) {
var r = {};
for (var n in e)
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -17404,17 +17637,17 @@ function Eb(e, t) {
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
return r;
}
-function QF(e, t, r) {
+function XF(e, t, r) {
if (r || arguments.length === 2)
for (var n = 0, o = t.length, a; n < o; n++)
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
return e.concat(a || Array.prototype.slice.call(t));
}
-function Pb(e) {
+function _b(e) {
return e;
}
-function Tb(e, t) {
- t === void 0 && (t = Pb);
+function kb(e, t) {
+ t === void 0 && (t = _b);
var r = [], n = !1, o = {
read: function() {
if (n)
@@ -17468,40 +17701,40 @@ function Tb(e, t) {
};
return o;
}
-function Sd(e, t) {
- return t === void 0 && (t = Pb), Tb(e, t);
+function xd(e, t) {
+ return t === void 0 && (t = _b), kb(e, t);
}
-function Ab(e) {
+function Eb(e) {
e === void 0 && (e = {});
- var t = Tb(null);
- return t.options = Rr({ async: !0, ssr: !1 }, e), t;
+ var t = kb(null);
+ return t.options = Dr({ async: !0, ssr: !1 }, e), t;
}
-var Ob = function(e) {
- var t = e.sideCar, r = Eb(e, ["sideCar"]);
+var Pb = function(e) {
+ var t = e.sideCar, r = Cb(e, ["sideCar"]);
if (!t)
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
var n = t.read();
if (!n)
throw new Error("Sidecar medium not found");
- return U.createElement(n, Rr({}, r));
+ return U.createElement(n, Dr({}, r));
};
-Ob.isSideCarExport = !0;
-function e5(e, t) {
- return e.useMedium(t), Ob;
+Pb.isSideCarExport = !0;
+function KF(e, t) {
+ return e.useMedium(t), Pb;
}
-var $b = Sd({}, function(e) {
+var Tb = xd({}, function(e) {
var t = e.target, r = e.currentTarget;
return {
target: t,
currentTarget: r
};
-}), Rb = Sd(), t5 = Sd(), r5 = Ab({
+}), Ab = xd(), ZF = xd(), JF = Eb({
async: !0
// focus-lock sidecar is not required on the server
// however, it might be required for JSDOM tests
// ssr: true,
-}), n5 = [], wd = /* @__PURE__ */ U.forwardRef(function(t, r) {
- var n, o = U.useState(), a = o[0], i = o[1], s = U.useRef(), l = U.useRef(!1), c = U.useRef(null), u = t.children, d = t.disabled, f = t.noFocusGuards, p = t.persistentFocus, m = t.crossFrame, h = t.autoFocus, v = t.allowTextSelection, b = t.group, y = t.className, S = t.whiteList, k = t.hasPositiveIndices, w = t.shards, M = w === void 0 ? n5 : w, P = t.as, I = P === void 0 ? "div" : P, z = t.lockProps, j = z === void 0 ? {} : z, X = t.sideCar, ne = t.returnFocus, J = t.focusOptions, Q = t.onActivation, ee = t.onDeactivation, oe = U.useState({}), D = oe[0], ce = U.useCallback(function() {
+}), QF = [], Sd = /* @__PURE__ */ U.forwardRef(function(t, r) {
+ var n, o = U.useState(), a = o[0], i = o[1], s = U.useRef(), l = U.useRef(!1), c = U.useRef(null), u = t.children, d = t.disabled, f = t.noFocusGuards, p = t.persistentFocus, m = t.crossFrame, h = t.autoFocus, v = t.allowTextSelection, b = t.group, y = t.className, S = t.whiteList, _ = t.hasPositiveIndices, w = t.shards, M = w === void 0 ? QF : w, P = t.as, I = P === void 0 ? "div" : P, z = t.lockProps, j = z === void 0 ? {} : z, X = t.sideCar, ne = t.returnFocus, J = t.focusOptions, Q = t.onActivation, ee = t.onDeactivation, oe = U.useState({}), D = oe[0], ce = U.useCallback(function() {
c.current = c.current || document && document.activeElement, s.current && Q && Q(s.current), l.current = !0;
}, [Q]), fe = U.useCallback(function() {
l.current = !1, ee && ee(s.current);
@@ -17509,44 +17742,44 @@ var $b = Sd({}, function(e) {
Fe(function() {
d || (c.current = null);
}, []);
- var F = U.useCallback(function(A) {
+ var F = U.useCallback(function(O) {
var Z = c.current;
if (Z && Z.focus) {
var Y = typeof ne == "function" ? ne(Z) : ne;
if (Y) {
var ae = typeof Y == "object" ? Y : void 0;
- c.current = null, A ? Promise.resolve().then(function() {
+ c.current = null, O ? Promise.resolve().then(function() {
return Z.focus(ae);
}) : Z.focus(ae);
}
}
- }, [ne]), N = U.useCallback(function(A) {
- l.current && $b.useMedium(A);
- }, []), V = Rb.useMedium, T = U.useCallback(function(A) {
- s.current !== A && (s.current = A, i(A));
+ }, [ne]), N = U.useCallback(function(O) {
+ l.current && Tb.useMedium(O);
+ }, []), V = Ab.useMedium, T = U.useCallback(function(O) {
+ s.current !== O && (s.current = O, i(O));
}, []);
process.env.NODE_ENV !== "production" && (typeof v < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), U.useEffect(function() {
!s.current && typeof I != "string" && console.error("FocusLock: could not obtain ref to internal node");
}, []));
- var O = Ha((n = {}, n[_b] = d && "disabled", n[mu] = b, n), j), B = f !== !0, C = B && f !== "tail", H = kb([r, T]);
+ var A = Wn((n = {}, n[Sb] = d && "disabled", n[pu] = b, n), j), B = f !== !0, C = B && f !== "tail", H = wb([r, T]);
return /* @__PURE__ */ U.createElement(U.Fragment, null, B && [
// nearest focus guard
/* @__PURE__ */ U.createElement("div", {
key: "guard-first",
"data-focus-guard": !0,
tabIndex: d ? -1 : 0,
- style: hc
+ style: fc
}),
// first tabbed element guard
- k ? /* @__PURE__ */ U.createElement("div", {
+ _ ? /* @__PURE__ */ U.createElement("div", {
key: "guard-nearest",
"data-focus-guard": !0,
tabIndex: d ? -1 : 1,
- style: hc
+ style: fc
}) : null
], !d && /* @__PURE__ */ U.createElement(X, {
id: D,
- sideCar: r5,
+ sideCar: JF,
observed: a,
disabled: d,
persistentFocus: p,
@@ -17558,19 +17791,19 @@ var $b = Sd({}, function(e) {
onDeactivation: fe,
returnFocus: F,
focusOptions: J
- }), /* @__PURE__ */ U.createElement(I, Ha({
+ }), /* @__PURE__ */ U.createElement(I, Wn({
ref: H
- }, O, {
+ }, A, {
className: y,
onBlur: V,
onFocus: N
}), u), C && /* @__PURE__ */ U.createElement("div", {
"data-focus-guard": !0,
tabIndex: d ? -1 : 0,
- style: hc
+ style: fc
}));
});
-wd.propTypes = process.env.NODE_ENV !== "production" ? {
+Sd.propTypes = process.env.NODE_ENV !== "production" ? {
children: Ge.node,
disabled: Ge.bool,
returnFocus: Ge.oneOfType([Ge.bool, Ge.object, Ge.func]),
@@ -17591,7 +17824,7 @@ wd.propTypes = process.env.NODE_ENV !== "production" ? {
onDeactivation: Ge.func,
sideCar: Ge.any.isRequired
} : {};
-wd.defaultProps = {
+Sd.defaultProps = {
children: void 0,
disabled: !1,
returnFocus: !1,
@@ -17611,16 +17844,8 @@ wd.defaultProps = {
onActivation: void 0,
onDeactivation: void 0
};
-const Db = wd;
-function vu(e, t) {
- return vu = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
- return n.__proto__ = o, n;
- }, vu(e, t);
-}
-function o5(e, t) {
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, vu(e, t);
-}
-function a5(e, t) {
+const Ob = Sd;
+function e5(e, t) {
if (process.env.NODE_ENV !== "production") {
if (typeof e != "function")
throw new Error("Expected reducePropsToState to be a function.");
@@ -17640,7 +17865,7 @@ function a5(e, t) {
})), t(i);
}
var l = /* @__PURE__ */ function(c) {
- o5(u, c);
+ T0(u, c);
function u() {
return c.apply(this, arguments) || this;
}
@@ -17658,67 +17883,67 @@ function a5(e, t) {
}, d.render = function() {
return /* @__PURE__ */ It.createElement(o, this.props);
}, u;
- }(k0);
- return Sm(l, "displayName", "SideEffect(" + r(o) + ")"), l;
+ }(w0);
+ return _u(l, "displayName", "SideEffect(" + r(o) + ")"), l;
};
}
-var Br = function(e) {
+var zr = function(e) {
for (var t = Array(e.length), r = 0; r < e.length; ++r)
t[r] = e[r];
return t;
-}, As = function(e) {
+}, Ts = function(e) {
return Array.isArray(e) ? e : [e];
-}, Mb = function(e) {
+}, Rb = function(e) {
return Array.isArray(e) ? e[0] : e;
-}, i5 = function(e) {
+}, t5 = function(e) {
if (e.nodeType !== Node.ELEMENT_NODE)
return !1;
var t = window.getComputedStyle(e, null);
return !t || !t.getPropertyValue ? !1 : t.getPropertyValue("display") === "none" || t.getPropertyValue("visibility") === "hidden";
-}, Ib = function(e) {
+}, $b = function(e) {
return e.parentNode && e.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
e.parentNode.host
) : e.parentNode;
-}, Fb = function(e) {
+}, Db = function(e) {
return e === document || e && e.nodeType === Node.DOCUMENT_NODE;
-}, s5 = function(e, t) {
- return !e || Fb(e) || !i5(e) && t(Ib(e));
-}, Nb = function(e, t) {
+}, r5 = function(e, t) {
+ return !e || Db(e) || !t5(e) && t($b(e));
+}, Mb = function(e, t) {
var r = e.get(t);
if (r !== void 0)
return r;
- var n = s5(t, Nb.bind(void 0, e));
+ var n = r5(t, Mb.bind(void 0, e));
return e.set(t, n), n;
-}, l5 = function(e, t) {
- return e && !Fb(e) ? d5(e) ? t(Ib(e)) : !1 : !0;
-}, jb = function(e, t) {
+}, n5 = function(e, t) {
+ return e && !Db(e) ? i5(e) ? t($b(e)) : !1 : !0;
+}, Ib = function(e, t) {
var r = e.get(t);
if (r !== void 0)
return r;
- var n = l5(t, jb.bind(void 0, e));
+ var n = n5(t, Ib.bind(void 0, e));
return e.set(t, n), n;
-}, Bb = function(e) {
+}, Fb = function(e) {
return e.dataset;
-}, c5 = function(e) {
+}, o5 = function(e) {
return e.tagName === "BUTTON";
-}, zb = function(e) {
+}, Nb = function(e) {
return e.tagName === "INPUT";
-}, Vb = function(e) {
- return zb(e) && e.type === "radio";
-}, u5 = function(e) {
- return !((zb(e) || c5(e)) && (e.type === "hidden" || e.disabled));
-}, d5 = function(e) {
- var t = e.getAttribute(KF);
+}, jb = function(e) {
+ return Nb(e) && e.type === "radio";
+}, a5 = function(e) {
+ return !((Nb(e) || o5(e)) && (e.type === "hidden" || e.disabled));
+}, i5 = function(e) {
+ var t = e.getAttribute(YF);
return ![!0, "true", ""].includes(t);
-}, Cd = function(e) {
+}, wd = function(e) {
var t;
- return !!(e && (!((t = Bb(e)) === null || t === void 0) && t.focusGuard));
-}, Os = function(e) {
- return !Cd(e);
-}, f5 = function(e) {
+ return !!(e && (!((t = Fb(e)) === null || t === void 0) && t.focusGuard));
+}, As = function(e) {
+ return !wd(e);
+}, s5 = function(e) {
return !!e;
-}, p5 = function(e, t) {
+}, l5 = function(e, t) {
var r = e.tabIndex - t.tabIndex, n = e.index - t.index;
if (r) {
if (!e.tabIndex)
@@ -17727,8 +17952,8 @@ var Br = function(e) {
return -1;
}
return r || n;
-}, Lb = function(e, t, r) {
- return Br(e).map(function(n, o) {
+}, Bb = function(e, t, r) {
+ return zr(e).map(function(n, o) {
return {
node: n,
index: o,
@@ -17736,8 +17961,8 @@ var Br = function(e) {
};
}).filter(function(n) {
return !t || n.tabIndex >= 0;
- }).sort(p5);
-}, h5 = [
+ }).sort(l5);
+}, c5 = [
"button:enabled",
"select:enabled",
"textarea:enabled",
@@ -17755,60 +17980,60 @@ var Br = function(e) {
"[tabindex]",
"[contenteditable]",
"[autofocus]"
-], _d = h5.join(","), m5 = "".concat(_d, ", [data-focus-guard]"), Wb = function(e, t) {
- return Br((e.shadowRoot || e).children).reduce(function(r, n) {
- return r.concat(n.matches(t ? m5 : _d) ? [n] : [], Wb(n));
+], Cd = c5.join(","), u5 = "".concat(Cd, ", [data-focus-guard]"), zb = function(e, t) {
+ return zr((e.shadowRoot || e).children).reduce(function(r, n) {
+ return r.concat(n.matches(t ? u5 : Cd) ? [n] : [], zb(n));
}, []);
-}, v5 = function(e, t) {
+}, d5 = function(e, t) {
var r;
- return e instanceof HTMLIFrameElement && (!((r = e.contentDocument) === null || r === void 0) && r.body) ? ol([e.contentDocument.body], t) : [e];
-}, ol = function(e, t) {
+ return e instanceof HTMLIFrameElement && (!((r = e.contentDocument) === null || r === void 0) && r.body) ? rl([e.contentDocument.body], t) : [e];
+}, rl = function(e, t) {
return e.reduce(function(r, n) {
- var o, a = Wb(n, t), i = (o = []).concat.apply(o, a.map(function(s) {
- return v5(s, t);
+ var o, a = zb(n, t), i = (o = []).concat.apply(o, a.map(function(s) {
+ return d5(s, t);
}));
return r.concat(
// add all tabbables inside and within shadow DOMs in DOM order
i,
// add if node is tabbable itself
- n.parentNode ? Br(n.parentNode.querySelectorAll(_d)).filter(function(s) {
+ n.parentNode ? zr(n.parentNode.querySelectorAll(Cd)).filter(function(s) {
return s === n;
}) : []
);
}, []);
-}, g5 = function(e) {
- var t = e.querySelectorAll("[".concat(XF, "]"));
- return Br(t).map(function(r) {
- return ol([r]);
+}, f5 = function(e) {
+ var t = e.querySelectorAll("[".concat(HF, "]"));
+ return zr(t).map(function(r) {
+ return rl([r]);
}).reduce(function(r, n) {
return r.concat(n);
}, []);
-}, kd = function(e, t) {
- return Br(e).filter(function(r) {
- return Nb(t, r);
+}, _d = function(e, t) {
+ return zr(e).filter(function(r) {
+ return Mb(t, r);
}).filter(function(r) {
- return u5(r);
+ return a5(r);
});
-}, qh = function(e, t) {
- return t === void 0 && (t = /* @__PURE__ */ new Map()), Br(e).filter(function(r) {
- return jb(t, r);
+}, Yh = function(e, t) {
+ return t === void 0 && (t = /* @__PURE__ */ new Map()), zr(e).filter(function(r) {
+ return Ib(t, r);
});
-}, gu = function(e, t, r) {
- return Lb(kd(ol(e, r), t), !0, r);
-}, Gh = function(e, t) {
- return Lb(kd(ol(e), t), !1);
-}, b5 = function(e, t) {
- return kd(g5(e), t);
-}, So = function(e, t) {
- return e.shadowRoot ? So(e.shadowRoot, t) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, t) ? !0 : Br(e.children).some(function(r) {
+}, hu = function(e, t, r) {
+ return Bb(_d(rl(e, r), t), !0, r);
+}, qh = function(e, t) {
+ return Bb(_d(rl(e), t), !1);
+}, p5 = function(e, t) {
+ return _d(f5(e), t);
+}, wo = function(e, t) {
+ return e.shadowRoot ? wo(e.shadowRoot, t) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, t) ? !0 : zr(e.children).some(function(r) {
var n;
if (r instanceof HTMLIFrameElement) {
var o = (n = r.contentDocument) === null || n === void 0 ? void 0 : n.body;
- return o ? So(o, t) : !1;
+ return o ? wo(o, t) : !1;
}
- return So(r, t);
+ return wo(r, t);
});
-}, y5 = function(e) {
+}, h5 = function(e) {
for (var t = /* @__PURE__ */ new Set(), r = e.length, n = 0; n < r; n += 1)
for (var o = n + 1; o < r; o += 1) {
var a = e[n].compareDocumentPosition(e[o]);
@@ -17817,15 +18042,15 @@ var Br = function(e) {
return e.filter(function(i, s) {
return !t.has(s);
});
-}, Ub = function(e) {
- return e.parentNode ? Ub(e.parentNode) : e;
-}, Ed = function(e) {
- var t = As(e);
+}, Vb = function(e) {
+ return e.parentNode ? Vb(e.parentNode) : e;
+}, kd = function(e) {
+ var t = Ts(e);
return t.filter(Boolean).reduce(function(r, n) {
- var o = n.getAttribute(mu);
- return r.push.apply(r, o ? y5(Br(Ub(n).querySelectorAll("[".concat(mu, '="').concat(o, '"]:not([').concat(_b, '="disabled"])')))) : [n]), r;
+ var o = n.getAttribute(pu);
+ return r.push.apply(r, o ? h5(zr(Vb(n).querySelectorAll("[".concat(pu, '="').concat(o, '"]:not([').concat(Sb, '="disabled"])')))) : [n]), r;
}, []);
-}, x5 = function(e) {
+}, m5 = function(e) {
try {
return e();
} catch {
@@ -17834,51 +18059,51 @@ var Br = function(e) {
}, Ya = function(e) {
if (e === void 0 && (e = document), !(!e || !e.activeElement)) {
var t = e.activeElement;
- return t.shadowRoot ? Ya(t.shadowRoot) : t instanceof HTMLIFrameElement && x5(function() {
+ return t.shadowRoot ? Ya(t.shadowRoot) : t instanceof HTMLIFrameElement && m5(function() {
return t.contentWindow.document;
}) ? Ya(t.contentWindow.document) : t;
}
-}, S5 = function(e, t) {
+}, v5 = function(e, t) {
return e === t;
-}, w5 = function(e, t) {
- return !!Br(e.querySelectorAll("iframe")).some(function(r) {
- return S5(r, t);
+}, g5 = function(e, t) {
+ return !!zr(e.querySelectorAll("iframe")).some(function(r) {
+ return v5(r, t);
});
-}, Hb = function(e, t) {
- return t === void 0 && (t = Ya(Mb(e).ownerDocument)), !t || t.dataset && t.dataset.focusGuard ? !1 : Ed(e).some(function(r) {
- return So(r, t) || w5(r, t);
+}, Lb = function(e, t) {
+ return t === void 0 && (t = Ya(Rb(e).ownerDocument)), !t || t.dataset && t.dataset.focusGuard ? !1 : kd(e).some(function(r) {
+ return wo(r, t) || g5(r, t);
});
-}, C5 = function(e) {
+}, b5 = function(e) {
e === void 0 && (e = document);
var t = Ya(e);
- return t ? Br(e.querySelectorAll("[".concat(GF, "]"))).some(function(r) {
- return So(r, t);
+ return t ? zr(e.querySelectorAll("[".concat(UF, "]"))).some(function(r) {
+ return wo(r, t);
}) : !1;
-}, _5 = function(e, t) {
- return t.filter(Vb).filter(function(r) {
+}, y5 = function(e, t) {
+ return t.filter(jb).filter(function(r) {
return r.name === e.name;
}).filter(function(r) {
return r.checked;
})[0] || e;
-}, Pd = function(e, t) {
- return Vb(e) && e.name ? _5(e, t) : e;
-}, k5 = function(e) {
+}, Ed = function(e, t) {
+ return jb(e) && e.name ? y5(e, t) : e;
+}, x5 = function(e) {
var t = /* @__PURE__ */ new Set();
return e.forEach(function(r) {
- return t.add(Pd(r, e));
+ return t.add(Ed(r, e));
}), e.filter(function(r) {
return t.has(r);
});
-}, Xh = function(e) {
- return e[0] && e.length > 1 ? Pd(e[0], e) : e[0];
-}, Kh = function(e, t) {
- return e.length > 1 ? e.indexOf(Pd(e[t], e)) : t;
-}, Yb = "NEW_FOCUS", E5 = function(e, t, r, n) {
- var o = e.length, a = e[0], i = e[o - 1], s = Cd(r);
+}, Gh = function(e) {
+ return e[0] && e.length > 1 ? Ed(e[0], e) : e[0];
+}, Xh = function(e, t) {
+ return e.length > 1 ? e.indexOf(Ed(e[t], e)) : t;
+}, Wb = "NEW_FOCUS", S5 = function(e, t, r, n) {
+ var o = e.length, a = e[0], i = e[o - 1], s = wd(r);
if (!(r && e.indexOf(r) >= 0)) {
- var l = r !== void 0 ? t.indexOf(r) : -1, c = n ? t.indexOf(n) : l, u = n ? e.indexOf(n) : -1, d = l - c, f = t.indexOf(a), p = t.indexOf(i), m = k5(t), h = r !== void 0 ? m.indexOf(r) : -1, v = h - (n ? m.indexOf(n) : l), b = Kh(e, 0), y = Kh(e, o - 1);
+ var l = r !== void 0 ? t.indexOf(r) : -1, c = n ? t.indexOf(n) : l, u = n ? e.indexOf(n) : -1, d = l - c, f = t.indexOf(a), p = t.indexOf(i), m = x5(t), h = r !== void 0 ? m.indexOf(r) : -1, v = h - (n ? m.indexOf(n) : l), b = Xh(e, 0), y = Xh(e, o - 1);
if (l === -1 || u === -1)
- return Yb;
+ return Wb;
if (!d && u >= 0)
return u;
if (l <= f && s && Math.abs(d) > 1)
@@ -17894,9 +18119,9 @@ var Br = function(e) {
if (d)
return Math.abs(d) > 1 ? u : (o + u + d) % o;
}
-}, P5 = function(e) {
+}, w5 = function(e) {
return function(t) {
- var r, n = (r = Bb(t)) === null || r === void 0 ? void 0 : r.autofocus;
+ var r, n = (r = Fb(t)) === null || r === void 0 ? void 0 : r.autofocus;
return (
// @ts-expect-error
t.autofocus || //
@@ -17904,55 +18129,55 @@ var Br = function(e) {
e.indexOf(t) >= 0
);
};
-}, T5 = function(e, t, r) {
+}, C5 = function(e, t, r) {
var n = e.map(function(a) {
var i = a.node;
return i;
- }), o = qh(n.filter(P5(r)));
- return o && o.length ? Xh(o) : Xh(qh(t));
-}, bu = function(e, t) {
- return t === void 0 && (t = []), t.push(e), e.parentNode && bu(e.parentNode.host || e.parentNode, t), t;
-}, mc = function(e, t) {
- for (var r = bu(e), n = bu(t), o = 0; o < r.length; o += 1) {
+ }), o = Yh(n.filter(w5(r)));
+ return o && o.length ? Gh(o) : Gh(Yh(t));
+}, mu = function(e, t) {
+ return t === void 0 && (t = []), t.push(e), e.parentNode && mu(e.parentNode.host || e.parentNode, t), t;
+}, pc = function(e, t) {
+ for (var r = mu(e), n = mu(t), o = 0; o < r.length; o += 1) {
var a = r[o];
if (n.indexOf(a) >= 0)
return a;
}
return !1;
-}, qb = function(e, t, r) {
- var n = As(e), o = As(t), a = n[0], i = !1;
+}, Ub = function(e, t, r) {
+ var n = Ts(e), o = Ts(t), a = n[0], i = !1;
return o.filter(Boolean).forEach(function(s) {
- i = mc(i || s, s) || i, r.filter(Boolean).forEach(function(l) {
- var c = mc(a, l);
- c && (!i || So(c, i) ? i = c : i = mc(c, i));
+ i = pc(i || s, s) || i, r.filter(Boolean).forEach(function(l) {
+ var c = pc(a, l);
+ c && (!i || wo(c, i) ? i = c : i = pc(c, i));
});
}), i;
-}, A5 = function(e, t) {
+}, _5 = function(e, t) {
return e.reduce(function(r, n) {
- return r.concat(b5(n, t));
+ return r.concat(p5(n, t));
}, []);
-}, O5 = function(e, t) {
+}, k5 = function(e, t) {
var r = /* @__PURE__ */ new Map();
return t.forEach(function(n) {
return r.set(n.node, n);
}), e.map(function(n) {
return r.get(n);
- }).filter(f5);
-}, $5 = function(e, t) {
- var r = Ya(As(e).length > 0 ? document : Mb(e).ownerDocument), n = Ed(e).filter(Os), o = qb(r || e, e, n), a = /* @__PURE__ */ new Map(), i = Gh(n, a), s = gu(n, a).filter(function(p) {
+ }).filter(s5);
+}, E5 = function(e, t) {
+ var r = Ya(Ts(e).length > 0 ? document : Rb(e).ownerDocument), n = kd(e).filter(As), o = Ub(r || e, e, n), a = /* @__PURE__ */ new Map(), i = qh(n, a), s = hu(n, a).filter(function(p) {
var m = p.node;
- return Os(m);
+ return As(m);
});
if (!(!s[0] && (s = i, !s[0]))) {
- var l = Gh([o], a).map(function(p) {
+ var l = qh([o], a).map(function(p) {
var m = p.node;
return m;
- }), c = O5(l, s), u = c.map(function(p) {
+ }), c = k5(l, s), u = c.map(function(p) {
var m = p.node;
return m;
- }), d = E5(u, l, r, t);
- if (d === Yb) {
- var f = T5(i, u, A5(n, a));
+ }), d = S5(u, l, r, t);
+ if (d === Wb) {
+ var f = C5(i, u, _5(n, a));
if (f)
return { node: f };
console.warn("focus-lock: cannot find any node to move focus into");
@@ -17960,10 +18185,10 @@ var Br = function(e) {
}
return d === void 0 ? d : c[d];
}
-}, R5 = function(e) {
- var t = Ed(e).filter(Os), r = qb(e, e, t), n = /* @__PURE__ */ new Map(), o = gu([r], n, !0), a = gu(t, n).filter(function(i) {
+}, P5 = function(e) {
+ var t = kd(e).filter(As), r = Ub(e, e, t), n = /* @__PURE__ */ new Map(), o = hu([r], n, !0), a = hu(t, n).filter(function(i) {
var s = i.node;
- return Os(s);
+ return As(s);
}).map(function(i) {
var s = i.node;
return s;
@@ -17974,45 +18199,45 @@ var Br = function(e) {
node: s,
index: l,
lockItem: a.indexOf(s) >= 0,
- guard: Cd(s)
+ guard: wd(s)
};
});
-}, D5 = function(e, t) {
+}, T5 = function(e, t) {
"focus" in e && e.focus(t), "contentWindow" in e && e.contentWindow && e.contentWindow.focus();
-}, vc = 0, gc = !1, Gb = function(e, t, r) {
+}, hc = 0, mc = !1, Hb = function(e, t, r) {
r === void 0 && (r = {});
- var n = $5(e, t);
- if (!gc && n) {
- if (vc > 2) {
- console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), gc = !0, setTimeout(function() {
- gc = !1;
+ var n = E5(e, t);
+ if (!mc && n) {
+ if (hc > 2) {
+ console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), mc = !0, setTimeout(function() {
+ mc = !1;
}, 1);
return;
}
- vc++, D5(n.node, r.focusOptions), vc--;
+ hc++, T5(n.node, r.focusOptions), hc--;
}
};
-function Xb(e) {
+function Yb(e) {
var t = window, r = t.setImmediate;
typeof r < "u" ? r(e) : setTimeout(e, 1);
}
-var M5 = function() {
+var A5 = function() {
return document && document.activeElement === document.body;
-}, I5 = function() {
- return M5() || C5();
-}, wo = null, po = null, Co = null, qa = !1, F5 = function() {
+}, O5 = function() {
+ return A5() || b5();
+}, Co = null, ho = null, _o = null, qa = !1, R5 = function() {
return !0;
-}, N5 = function(t) {
- return (wo.whiteList || F5)(t);
-}, j5 = function(t, r) {
- Co = {
+}, $5 = function(t) {
+ return (Co.whiteList || R5)(t);
+}, D5 = function(t, r) {
+ _o = {
observerNode: t,
portaledElement: r
};
-}, B5 = function(t) {
- return Co && Co.portaledElement === t;
+}, M5 = function(t) {
+ return _o && _o.portaledElement === t;
};
-function Zh(e, t, r, n) {
+function Kh(e, t, r, n) {
var o = null, a = e;
do {
var i = n[a];
@@ -18027,29 +18252,29 @@ function Zh(e, t, r, n) {
} while ((a += r) !== t);
o && (o.node.tabIndex = 0);
}
-var z5 = function(t) {
+var I5 = function(t) {
return t && "current" in t ? t.current : t;
-}, V5 = function(t) {
+}, F5 = function(t) {
return t ? !!qa : qa === "meanwhile";
-}, L5 = function e(t, r, n) {
+}, N5 = function e(t, r, n) {
return r && // find host equal to active element and check nested active element
(r.host === t && (!r.activeElement || n.contains(r.activeElement)) || r.parentNode && e(t, r.parentNode, n));
-}, W5 = function(t, r) {
+}, j5 = function(t, r) {
return r.some(function(n) {
- return L5(t, n, n);
+ return N5(t, n, n);
});
-}, $s = function() {
+}, Os = function() {
var t = !1;
- if (wo) {
- var r = wo, n = r.observed, o = r.persistentFocus, a = r.autoFocus, i = r.shards, s = r.crossFrame, l = r.focusOptions, c = n || Co && Co.portaledElement, u = document && document.activeElement;
+ if (Co) {
+ var r = Co, n = r.observed, o = r.persistentFocus, a = r.autoFocus, i = r.shards, s = r.crossFrame, l = r.focusOptions, c = n || _o && _o.portaledElement, u = document && document.activeElement;
if (c) {
- var d = [c].concat(i.map(z5).filter(Boolean));
- if ((!u || N5(u)) && (o || V5(s) || !I5() || !po && a) && (c && !// active element is "inside" working area
- (Hb(d) || // check for shadow-dom contained elements
- u && W5(u, d) || B5(u)) && (document && !po && u && !a ? (u.blur && u.blur(), document.body.focus()) : (t = Gb(d, po, {
+ var d = [c].concat(i.map(I5).filter(Boolean));
+ if ((!u || $5(u)) && (o || F5(s) || !O5() || !ho && a) && (c && !// active element is "inside" working area
+ (Lb(d) || // check for shadow-dom contained elements
+ u && j5(u, d) || M5(u)) && (document && !ho && u && !a ? (u.blur && u.blur(), document.body.focus()) : (t = Hb(d, ho, {
focusOptions: l
- }), Co = {})), qa = !1, po = document && document.activeElement), document) {
- var f = document && document.activeElement, p = R5(d), m = p.map(function(h) {
+ }), _o = {})), qa = !1, ho = document && document.activeElement), document) {
+ var f = document && document.activeElement, p = P5(d), m = p.map(function(h) {
var v = h.node;
return v;
}).indexOf(f);
@@ -18059,108 +18284,108 @@ var z5 = function(t) {
}).forEach(function(h) {
var v = h.node;
return v.removeAttribute("tabIndex");
- }), Zh(m, p.length, 1, p), Zh(m, -1, -1, p));
+ }), Kh(m, p.length, 1, p), Kh(m, -1, -1, p));
}
}
}
return t;
-}, Kb = function(t) {
- $s() && t && (t.stopPropagation(), t.preventDefault());
-}, Td = function() {
- return Xb($s);
-}, U5 = function(t) {
+}, qb = function(t) {
+ Os() && t && (t.stopPropagation(), t.preventDefault());
+}, Pd = function() {
+ return Yb(Os);
+}, B5 = function(t) {
var r = t.target, n = t.currentTarget;
- n.contains(r) || j5(n, r);
-}, H5 = function() {
+ n.contains(r) || D5(n, r);
+}, z5 = function() {
return null;
};
-process.env.NODE_ENV !== "production" && Cb.node.isRequired;
-var Zb = function() {
+process.env.NODE_ENV !== "production" && xb.node.isRequired;
+var Gb = function() {
qa = "just", setTimeout(function() {
qa = "meanwhile";
}, 0);
-}, Y5 = function() {
- document.addEventListener("focusin", Kb), document.addEventListener("focusout", Td), window.addEventListener("blur", Zb);
-}, q5 = function() {
- document.removeEventListener("focusin", Kb), document.removeEventListener("focusout", Td), window.removeEventListener("blur", Zb);
+}, V5 = function() {
+ document.addEventListener("focusin", qb), document.addEventListener("focusout", Pd), window.addEventListener("blur", Gb);
+}, L5 = function() {
+ document.removeEventListener("focusin", qb), document.removeEventListener("focusout", Pd), window.removeEventListener("blur", Gb);
};
-function G5(e) {
+function W5(e) {
return e.filter(function(t) {
var r = t.disabled;
return !r;
});
}
-function X5(e) {
+function U5(e) {
var t = e.slice(-1)[0];
- t && !wo && Y5();
- var r = wo, n = r && t && t.id === r.id;
- wo = t, r && !n && (r.onDeactivation(), e.filter(function(o) {
+ t && !Co && V5();
+ var r = Co, n = r && t && t.id === r.id;
+ Co = t, r && !n && (r.onDeactivation(), e.filter(function(o) {
var a = o.id;
return a === r.id;
- }).length || r.returnFocus(!t)), t ? (po = null, (!n || r.observed !== t.observed) && t.onActivation(), $s(), Xb($s)) : (q5(), po = null);
+ }).length || r.returnFocus(!t)), t ? (ho = null, (!n || r.observed !== t.observed) && t.onActivation(), Os(), Yb(Os)) : (L5(), ho = null);
}
-$b.assignSyncMedium(U5);
-Rb.assignMedium(Td);
-t5.assignMedium(function(e) {
+Tb.assignSyncMedium(B5);
+Ab.assignMedium(Pd);
+ZF.assignMedium(function(e) {
return e({
- moveFocusInside: Gb,
- focusInside: Hb
+ moveFocusInside: Hb,
+ focusInside: Lb
});
});
-const K5 = a5(G5, X5)(H5);
-var Jb = /* @__PURE__ */ U.forwardRef(function(t, r) {
- return /* @__PURE__ */ U.createElement(Db, Ha({
- sideCar: K5,
+const H5 = e5(W5, U5)(z5);
+var Xb = /* @__PURE__ */ U.forwardRef(function(t, r) {
+ return /* @__PURE__ */ U.createElement(Ob, Wn({
+ sideCar: H5,
ref: r
}, t));
-}), Qb = Db.propTypes || {};
-Qb.sideCar;
-var Z5 = LF(Qb, ["sideCar"]);
-Jb.propTypes = process.env.NODE_ENV !== "production" ? Z5 : {};
-const Jh = Jb;
-function ey(e) {
+}), Kb = Ob.propTypes || {};
+Kb.sideCar;
+var Y5 = jF(Kb, ["sideCar"]);
+Xb.propTypes = process.env.NODE_ENV !== "production" ? Y5 : {};
+const Zh = Xb;
+function Zb(e) {
return e != null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
}
-function Ad(e) {
+function Td(e) {
var t;
- if (!ey(e))
+ if (!Zb(e))
return !1;
const r = (t = e.ownerDocument.defaultView) != null ? t : window;
return e instanceof r.HTMLElement;
}
-function J5(e) {
+function q5(e) {
var t, r;
- return (r = (t = ty(e)) == null ? void 0 : t.defaultView) != null ? r : window;
+ return (r = (t = Jb(e)) == null ? void 0 : t.defaultView) != null ? r : window;
}
-function ty(e) {
- return ey(e) ? e.ownerDocument : document;
+function Jb(e) {
+ return Zb(e) ? e.ownerDocument : document;
}
-function Q5(e) {
- return ty(e).activeElement;
+function G5(e) {
+ return Jb(e).activeElement;
}
-function eN(e) {
+function X5(e) {
const t = e.ownerDocument.defaultView || window, { overflow: r, overflowX: n, overflowY: o } = t.getComputedStyle(e);
return /auto|scroll|overlay|hidden/.test(r + o + n);
}
-function tN(e) {
+function K5(e) {
return e.localName === "html" ? e : e.assignedSlot || e.parentElement || e.ownerDocument.documentElement;
}
-function ry(e) {
- return ["html", "body", "#document"].includes(e.localName) ? e.ownerDocument.body : Ad(e) && eN(e) ? e : ry(tN(e));
+function Qb(e) {
+ return ["html", "body", "#document"].includes(e.localName) ? e.ownerDocument.body : Td(e) && X5(e) ? e : Qb(K5(e));
}
-var ny = (e) => e.hasAttribute("tabindex"), rN = (e) => ny(e) && e.tabIndex === -1;
-function nN(e) {
+var ey = (e) => e.hasAttribute("tabindex"), Z5 = (e) => ey(e) && e.tabIndex === -1;
+function J5(e) {
return !!e.getAttribute("disabled") || !!e.getAttribute("aria-disabled");
}
-function oy(e) {
- return e.parentElement && oy(e.parentElement) ? !0 : e.hidden;
+function ty(e) {
+ return e.parentElement && ty(e.parentElement) ? !0 : e.hidden;
}
-function oN(e) {
+function Q5(e) {
const t = e.getAttribute("contenteditable");
return t !== "false" && t != null;
}
-function ay(e) {
- if (!Ad(e) || oy(e) || nN(e))
+function ry(e) {
+ if (!Td(e) || ty(e) || J5(e))
return !1;
const { localName: t } = e;
if (["input", "select", "textarea", "button"].indexOf(t) >= 0)
@@ -18170,12 +18395,12 @@ function ay(e) {
audio: () => e.hasAttribute("controls"),
video: () => e.hasAttribute("controls")
};
- return t in n ? n[t]() : oN(e) ? !0 : ny(e);
+ return t in n ? n[t]() : Q5(e) ? !0 : ey(e);
}
-function aN(e) {
- return e ? Ad(e) && ay(e) && !rN(e) : !1;
+function eN(e) {
+ return e ? Td(e) && ry(e) && !Z5(e) : !1;
}
-var iN = [
+var tN = [
"input:not(:disabled):not([disabled])",
"select:not(:disabled):not([disabled])",
"textarea:not(:disabled):not([disabled])",
@@ -18190,14 +18415,14 @@ var iN = [
"video[controls]",
"*[tabindex]:not([aria-disabled])",
"*[contenteditable]"
-], sN = iN.join(), lN = (e) => e.offsetWidth > 0 && e.offsetHeight > 0;
-function iy(e) {
+], rN = tN.join(), nN = (e) => e.offsetWidth > 0 && e.offsetHeight > 0;
+function ny(e) {
const t = Array.from(
- e.querySelectorAll(sN)
+ e.querySelectorAll(rN)
);
- return t.unshift(e), t.filter((r) => ay(r) && lN(r));
+ return t.unshift(e), t.filter((r) => ry(r) && nN(r));
}
-var Qh, cN = (Qh = Jh.default) != null ? Qh : Jh, sy = (e) => {
+var Jh, oN = (Jh = Zh.default) != null ? Jh : Zh, oy = (e) => {
const {
initialFocusRef: t,
finalFocusRef: r,
@@ -18209,7 +18434,7 @@ var Qh, cN = (Qh = Jh.default) != null ? Qh : Jh, sy = (e) => {
persistentFocus: l,
lockFocusAcrossFrames: c
} = e, u = q(() => {
- t != null && t.current ? t.current.focus() : n != null && n.current && iy(n.current).length === 0 && requestAnimationFrame(() => {
+ t != null && t.current ? t.current.focus() : n != null && n.current && ny(n.current).length === 0 && requestAnimationFrame(() => {
var m;
(m = n.current) == null || m.focus();
});
@@ -18218,7 +18443,7 @@ var Qh, cN = (Qh = Jh.default) != null ? Qh : Jh, sy = (e) => {
(p = r == null ? void 0 : r.current) == null || p.focus();
}, [r]), f = o && !r;
return /* @__PURE__ */ L.jsx(
- cN,
+ oN,
{
crossFrame: c,
persistentFocus: l,
@@ -18231,8 +18456,8 @@ var Qh, cN = (Qh = Jh.default) != null ? Qh : Jh, sy = (e) => {
}
);
};
-sy.displayName = "FocusLock";
-var ly = Object.freeze([
+oy.displayName = "FocusLock";
+var ay = Object.freeze([
"base",
"sm",
"md",
@@ -18240,17 +18465,17 @@ var ly = Object.freeze([
"xl",
"2xl"
]);
-function uN(e, t) {
+function aN(e, t) {
return Array.isArray(e) ? e.map((r) => r === null ? null : t(r)) : Lt(e) ? Object.keys(e).reduce((r, n) => (r[n] = t(e[n]), r), {}) : e != null ? t(e) : null;
}
-function dN(e, t = ly) {
+function iN(e, t = ay) {
const r = {};
return e.forEach((n, o) => {
const a = t[o];
n != null && (r[a] = n);
}), r;
}
-var cy = (e) => /* @__PURE__ */ L.jsx(
+var iy = (e) => /* @__PURE__ */ L.jsx(
ge.div,
{
className: "chakra-stack__item",
@@ -18263,8 +18488,8 @@ var cy = (e) => /* @__PURE__ */ L.jsx(
}
}
);
-cy.displayName = "StackItem";
-function fN(e) {
+iy.displayName = "StackItem";
+function sN(e) {
const { spacing: t, direction: r } = e, n = {
column: {
my: t,
@@ -18292,13 +18517,13 @@ function fN(e) {
}
};
return {
- "&": uN(
+ "&": aN(
r,
(o) => n[o]
)
};
}
-var uy = _e((e, t) => {
+var sy = _e((e, t) => {
const {
isInline: r,
direction: n,
@@ -18312,12 +18537,12 @@ var uy = _e((e, t) => {
shouldWrapChildren: d,
...f
} = e, p = r ? "row" : n ?? "column", m = gt(
- () => fN({ spacing: i, direction: p }),
+ () => sN({ spacing: i, direction: p }),
[i, p]
), h = !!c, v = !d && !h, b = gt(() => {
- const S = bb(l);
- return v ? S : S.map((k, w) => {
- const M = typeof k.key < "u" ? k.key : w, P = w + 1 === S.length, z = d ? /* @__PURE__ */ L.jsx(cy, { children: k }, M) : k;
+ const S = mb(l);
+ return v ? S : S.map((_, w) => {
+ const M = typeof _.key < "u" ? _.key : w, P = w + 1 === S.length, z = d ? /* @__PURE__ */ L.jsx(iy, { children: _ }, M) : _;
if (!h)
return z;
const j = Ka(
@@ -18326,7 +18551,7 @@ var uy = _e((e, t) => {
__css: m
}
), X = P ? null : j;
- return /* @__PURE__ */ L.jsxs(ku, { children: [
+ return /* @__PURE__ */ L.jsxs(wu, { children: [
z,
X
] }, M);
@@ -18355,15 +18580,15 @@ var uy = _e((e, t) => {
}
);
});
-uy.displayName = "Stack";
-var pN = _e((e, t) => /* @__PURE__ */ L.jsx(uy, { align: "center", ...e, direction: "row", ref: t }));
-pN.displayName = "HStack";
-var dy = ge("div");
-dy.displayName = "Box";
-var fy = _e(function(t, r) {
+sy.displayName = "Stack";
+var lN = _e((e, t) => /* @__PURE__ */ L.jsx(sy, { align: "center", ...e, direction: "row", ref: t }));
+lN.displayName = "HStack";
+var ly = ge("div");
+ly.displayName = "Box";
+var cy = _e(function(t, r) {
const { size: n, centerContent: o = !0, ...a } = t, i = o ? { display: "flex", alignItems: "center", justifyContent: "center" } : {};
return /* @__PURE__ */ L.jsx(
- dy,
+ ly,
{
ref: r,
boxSize: n,
@@ -18376,13 +18601,13 @@ var fy = _e(function(t, r) {
}
);
});
-fy.displayName = "Square";
-var hN = _e(function(t, r) {
+cy.displayName = "Square";
+var cN = _e(function(t, r) {
const { size: n, ...o } = t;
- return /* @__PURE__ */ L.jsx(fy, { size: n, ref: r, borderRadius: "9999px", ...o });
+ return /* @__PURE__ */ L.jsx(cy, { size: n, ref: r, borderRadius: "9999px", ...o });
});
-hN.displayName = "Circle";
-var mN = _e(function(t, r) {
+cN.displayName = "Circle";
+var uN = _e(function(t, r) {
const {
borderLeftWidth: n,
borderBottomWidth: o,
@@ -18392,12 +18617,12 @@ var mN = _e(function(t, r) {
borderStyle: l,
borderColor: c,
...u
- } = No("Divider", t), {
+ } = jo("Divider", t), {
className: d,
orientation: f = "horizontal",
__css: p,
...m
- } = jr(t), h = {
+ } = Br(t), h = {
vertical: {
borderLeftWidth: n || i || s || "1px",
height: "100%"
@@ -18425,8 +18650,8 @@ var mN = _e(function(t, r) {
}
);
});
-mN.displayName = "Divider";
-var vN = _e(function(t, r) {
+uN.displayName = "Divider";
+var dN = _e(function(t, r) {
const { direction: n, align: o, justify: a, wrap: i, basis: s, grow: l, shrink: c, ...u } = t, d = {
display: "flex",
flexDirection: n,
@@ -18439,9 +18664,9 @@ var vN = _e(function(t, r) {
};
return /* @__PURE__ */ L.jsx(ge.div, { ref: r, __css: d, ...u });
});
-vN.displayName = "Flex";
-function gN(e, t = {}) {
- const { ssr: r = !0, fallback: n } = t, { getWindow: o } = XR(), a = Array.isArray(e) ? e : [e];
+dN.displayName = "Flex";
+function fN(e, t = {}) {
+ const { ssr: r = !0, fallback: n } = t, { getWindow: o } = H$(), a = Array.isArray(e) ? e : [e];
let i = Array.isArray(n) ? n : [n];
i = i.filter((c) => c != null);
const [s, l] = Ye(() => a.map((c, u) => ({
@@ -18468,7 +18693,7 @@ function gN(e, t = {}) {
};
}, [o]), s.map((c) => c.matches);
}
-function bN(e, t, r = ly) {
+function pN(e, t, r = ay) {
let n = Object.keys(e).indexOf(t);
if (n !== -1)
return e[t];
@@ -18486,36 +18711,36 @@ function bN(e, t, r = ly) {
return e[a];
}
}
-function yN(e) {
+function hN(e) {
var t, r;
- const n = Lt(e) ? e : { fallback: e ?? "base" }, a = an().__breakpoints.details.map(
+ const n = Lt(e) ? e : { fallback: e ?? "base" }, a = sn().__breakpoints.details.map(
({ minMaxQuery: c, breakpoint: u }) => ({
breakpoint: u,
query: c.replace("@media screen and ", "")
})
- ), i = a.map((c) => c.breakpoint === n.fallback), l = gN(
+ ), i = a.map((c) => c.breakpoint === n.fallback), l = fN(
a.map((c) => c.query),
{ fallback: i, ssr: n.ssr }
).findIndex((c) => c == !0);
return (r = (t = a[l]) == null ? void 0 : t.breakpoint) != null ? r : n.fallback;
}
-function QV(e, t) {
+function HV(e, t) {
var r;
- const n = Lt(t) ? t : { fallback: t ?? "base" }, o = yN(n), a = an();
+ const n = Lt(t) ? t : { fallback: t ?? "base" }, o = hN(n), a = sn();
if (!o)
return;
const i = Array.from(((r = a.__breakpoints) == null ? void 0 : r.keys) || []), s = Array.isArray(e) ? Object.fromEntries(
- Object.entries(dN(e, i)).map(
+ Object.entries(iN(e, i)).map(
([l, c]) => [l, c]
)
) : e;
- return bN(s, o, i);
+ return pN(s, o, i);
}
-function xN(e) {
+function mN(e) {
const { key: t } = e;
return t.length === 1 || t.length > 1 && /[^a-zA-Z0-9]/.test(t);
}
-function SN(e = {}) {
+function vN(e = {}) {
const { timeout: t = 300, preventDefault: r = () => !0 } = e, [n, o] = Ye([]), a = be(), i = () => {
a.current && (clearTimeout(a.current), a.current = null);
}, s = () => {
@@ -18531,7 +18756,7 @@ function SN(e = {}) {
d.pop(), o(d);
return;
}
- if (xN(u)) {
+ if (mN(u)) {
const d = n.concat(u.key);
r(u) && (u.preventDefault(), u.stopPropagation()), o(d), c(d.join("")), s();
}
@@ -18539,7 +18764,7 @@ function SN(e = {}) {
}
return l;
}
-function wN(e, t, r, n) {
+function gN(e, t, r, n) {
if (t == null)
return n;
if (!n)
@@ -18555,7 +18780,7 @@ function wN(e, t, r, n) {
}
return n;
}
-function CN() {
+function bN() {
const e = be(/* @__PURE__ */ new Map()), t = e.current, r = q((o, a, i, s) => {
e.current.set(i, { type: a, el: o, options: s }), o.addEventListener(a, i, s);
}, []), n = q(
@@ -18573,11 +18798,11 @@ function CN() {
[n, t]
), { add: r, remove: n };
}
-function bc(e) {
+function vc(e) {
const t = e.target, { tagName: r, isContentEditable: n } = t;
return r !== "INPUT" && r !== "TEXTAREA" && n !== !0;
}
-function _N(e = {}) {
+function yN(e = {}) {
const {
ref: t,
isDisabled: r,
@@ -18593,7 +18818,7 @@ function _N(e = {}) {
onMouseOver: f,
onMouseLeave: p,
...m
- } = e, [h, v] = Ye(!0), [b, y] = Ye(!1), S = CN(), k = (D) => {
+ } = e, [h, v] = Ye(!0), [b, y] = Ye(!1), S = bN(), _ = (D) => {
D && D.tagName !== "BUTTON" && v(!1);
}, w = h ? d : d || 0, M = r && !n, P = q(
(D) => {
@@ -18606,12 +18831,12 @@ function _N(e = {}) {
[r, l]
), I = q(
(D) => {
- b && bc(D) && (D.preventDefault(), D.stopPropagation(), y(!1), S.remove(document, "keyup", I, !1));
+ b && vc(D) && (D.preventDefault(), D.stopPropagation(), y(!1), S.remove(document, "keyup", I, !1));
},
[b, S]
), z = q(
(D) => {
- if (c == null || c(D), r || D.defaultPrevented || D.metaKey || !bc(D.nativeEvent) || h)
+ if (c == null || c(D), r || D.defaultPrevented || D.metaKey || !vc(D.nativeEvent) || h)
return;
const ce = o && D.key === "Enter";
a && D.key === " " && (D.preventDefault(), y(!0)), ce && (D.preventDefault(), D.currentTarget.click()), S.add(document, "keyup", I, !1);
@@ -18627,7 +18852,7 @@ function _N(e = {}) {
]
), j = q(
(D) => {
- if (u == null || u(D), r || D.defaultPrevented || D.metaKey || !bc(D.nativeEvent) || h)
+ if (u == null || u(D), r || D.defaultPrevented || D.metaKey || !vc(D.nativeEvent) || h)
return;
a && D.key === " " && (D.preventDefault(), y(!1), D.currentTarget.click());
},
@@ -18667,7 +18892,7 @@ function _N(e = {}) {
b && (D.preventDefault(), y(!1)), p == null || p(D);
},
[b, p]
- ), oe = St(t, k);
+ ), oe = St(t, _);
return h ? {
...m,
ref: oe,
@@ -18685,7 +18910,7 @@ function _N(e = {}) {
...m,
ref: oe,
role: "button",
- "data-active": to(b),
+ "data-active": Ar(b),
"aria-disabled": r ? "true" : void 0,
tabIndex: M ? void 0 : w,
onClick: P,
@@ -18697,17 +18922,17 @@ function _N(e = {}) {
onMouseLeave: ee
};
}
-function kN(e) {
+function xN(e) {
const t = e.current;
if (!t)
return !1;
- const r = Q5(t);
- return !r || t.contains(r) ? !1 : !!aN(r);
+ const r = G5(t);
+ return !r || t.contains(r) ? !1 : !!eN(r);
}
-function EN(e, t) {
+function SN(e, t) {
const { shouldFocus: r, visible: n, focusRef: o } = t, a = r && !n;
- Bo(() => {
- if (!a || kN(e))
+ zo(() => {
+ if (!a || xN(e))
return;
const i = (o == null ? void 0 : o.current) || e.current;
let s;
@@ -18719,13 +18944,13 @@ function EN(e, t) {
};
}, [a, e, o]);
}
-var PN = {
+var wN = {
preventScroll: !0,
shouldFocus: !1
};
-function eL(e, t = PN) {
- const { focusRef: r, preventScroll: n, shouldFocus: o, visible: a } = t, i = TN(e) ? e.current : e, s = o && a, l = be(s), c = be(a);
- Ia(() => {
+function YV(e, t = wN) {
+ const { focusRef: r, preventScroll: n, shouldFocus: o, visible: a } = t, i = CN(e) ? e.current : e, s = o && a, l = be(s), c = be(a);
+ Fa(() => {
!c.current && a && (l.current = s), c.current = a;
}, [a, s]);
const u = q(() => {
@@ -18736,31 +18961,31 @@ function eL(e, t = PN) {
(d = r.current) == null || d.focus({ preventScroll: n });
});
else {
- const d = iy(i);
+ const d = ny(i);
d.length > 0 && requestAnimationFrame(() => {
d[0].focus({ preventScroll: n });
});
}
}, [a, n, i, r]);
- Bo(() => {
+ zo(() => {
u();
- }, [u]), wa(i, "transitionend", u);
+ }, [u]), _a(i, "transitionend", u);
}
-function TN(e) {
+function CN(e) {
return "current" in e;
}
-var Kn = (e, t) => ({
+var Jn = (e, t) => ({
var: e,
varRef: t ? `var(${e}, ${t})` : `var(${e})`
}), Et = {
- arrowShadowColor: Kn("--popper-arrow-shadow-color"),
- arrowSize: Kn("--popper-arrow-size", "8px"),
- arrowSizeHalf: Kn("--popper-arrow-size-half"),
- arrowBg: Kn("--popper-arrow-bg"),
- transformOrigin: Kn("--popper-transform-origin"),
- arrowOffset: Kn("--popper-arrow-offset")
+ arrowShadowColor: Jn("--popper-arrow-shadow-color"),
+ arrowSize: Jn("--popper-arrow-size", "8px"),
+ arrowSizeHalf: Jn("--popper-arrow-size-half"),
+ arrowBg: Jn("--popper-arrow-bg"),
+ transformOrigin: Jn("--popper-transform-origin"),
+ arrowOffset: Jn("--popper-arrow-offset")
};
-function AN(e) {
+function _N(e) {
if (e.includes("top"))
return "1px 1px 0px 0 var(--popper-arrow-shadow-color)";
if (e.includes("bottom"))
@@ -18770,7 +18995,7 @@ function AN(e) {
if (e.includes("left"))
return "1px -1px 0px 0 var(--popper-arrow-shadow-color)";
}
-var ON = {
+var kN = {
top: "bottom center",
"top-start": "bottom left",
"top-end": "bottom right",
@@ -18783,21 +19008,21 @@ var ON = {
right: "left center",
"right-start": "left top",
"right-end": "left bottom"
-}, $N = (e) => ON[e], em = {
+}, EN = (e) => kN[e], Qh = {
scroll: !0,
resize: !0
};
-function RN(e) {
+function PN(e) {
let t;
return typeof e == "object" ? t = {
enabled: !0,
- options: { ...em, ...e }
+ options: { ...Qh, ...e }
} : t = {
enabled: e,
- options: em
+ options: Qh
}, t;
}
-var DN = {
+var TN = {
name: "matchWidth",
enabled: !0,
phase: "beforeWrite",
@@ -18809,33 +19034,33 @@ var DN = {
const t = e.elements.reference;
e.elements.popper.style.width = `${t.offsetWidth}px`;
}
-}, MN = {
+}, AN = {
name: "transformOrigin",
enabled: !0,
phase: "write",
fn: ({ state: e }) => {
- tm(e);
+ em(e);
},
effect: ({ state: e }) => () => {
- tm(e);
+ em(e);
}
-}, tm = (e) => {
+}, em = (e) => {
e.elements.popper.style.setProperty(
Et.transformOrigin.var,
- $N(e.placement)
+ EN(e.placement)
);
-}, IN = {
+}, ON = {
name: "positionArrow",
enabled: !0,
phase: "afterWrite",
fn: ({ state: e }) => {
- FN(e);
+ RN(e);
}
-}, FN = (e) => {
+}, RN = (e) => {
var t;
if (!e.placement)
return;
- const r = NN(e.placement);
+ const r = $N(e.placement);
if ((t = e.elements) != null && t.arrow && r) {
Object.assign(e.elements.arrow.style, {
[r.property]: r.value,
@@ -18850,7 +19075,7 @@ var DN = {
for (const o in n)
e.elements.arrow.style.setProperty(o, n[o]);
}
-}, NN = (e) => {
+}, $N = (e) => {
if (e.startsWith("top"))
return { property: "bottom", value: Et.arrowOffset.varRef };
if (e.startsWith("bottom"))
@@ -18859,18 +19084,18 @@ var DN = {
return { property: "right", value: Et.arrowOffset.varRef };
if (e.startsWith("right"))
return { property: "left", value: Et.arrowOffset.varRef };
-}, jN = {
+}, DN = {
name: "innerArrow",
enabled: !0,
phase: "main",
requires: ["arrow"],
fn: ({ state: e }) => {
- rm(e);
+ tm(e);
},
effect: ({ state: e }) => () => {
- rm(e);
+ tm(e);
}
-}, rm = (e) => {
+}, tm = (e) => {
if (!e.elements.arrow)
return;
const t = e.elements.arrow.querySelector(
@@ -18878,7 +19103,7 @@ var DN = {
);
if (!t)
return;
- const r = AN(e.placement);
+ const r = _N(e.placement);
r && t.style.setProperty("--popper-arrow-default-shadow", r), Object.assign(t.style, {
transform: "rotate(45deg)",
background: Et.arrowBg.varRef,
@@ -18890,14 +19115,14 @@ var DN = {
zIndex: "inherit",
boxShadow: "var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"
});
-}, BN = {
+}, MN = {
"start-start": { ltr: "left-start", rtl: "right-start" },
"start-end": { ltr: "left-end", rtl: "right-end" },
"end-start": { ltr: "right-start", rtl: "left-start" },
"end-end": { ltr: "right-end", rtl: "left-end" },
start: { ltr: "left", rtl: "right" },
end: { ltr: "right", rtl: "left" }
-}, zN = {
+}, IN = {
"auto-start": "auto-end",
"auto-end": "auto-start",
"top-start": "top-end",
@@ -18905,17 +19130,17 @@ var DN = {
"bottom-start": "bottom-end",
"bottom-end": "bottom-start"
};
-function VN(e, t = "ltr") {
+function FN(e, t = "ltr") {
var r, n;
- const o = ((r = BN[e]) == null ? void 0 : r[t]) || e;
- return t === "ltr" ? o : (n = zN[e]) != null ? n : o;
+ const o = ((r = MN[e]) == null ? void 0 : r[t]) || e;
+ return t === "ltr" ? o : (n = IN[e]) != null ? n : o;
}
-var Wt = "top", cr = "bottom", ur = "right", Ut = "left", Od = "auto", li = [Wt, cr, ur, Ut], $o = "start", Ga = "end", LN = "clippingParents", py = "viewport", ta = "popper", WN = "reference", nm = /* @__PURE__ */ li.reduce(function(e, t) {
+var Wt = "top", cr = "bottom", ur = "right", Ut = "left", Ad = "auto", li = [Wt, cr, ur, Ut], $o = "start", Ga = "end", NN = "clippingParents", uy = "viewport", ra = "popper", jN = "reference", rm = /* @__PURE__ */ li.reduce(function(e, t) {
return e.concat([t + "-" + $o, t + "-" + Ga]);
-}, []), hy = /* @__PURE__ */ [].concat(li, [Od]).reduce(function(e, t) {
+}, []), dy = /* @__PURE__ */ [].concat(li, [Ad]).reduce(function(e, t) {
return e.concat([t, t + "-" + $o, t + "-" + Ga]);
-}, []), UN = "beforeRead", HN = "read", YN = "afterRead", qN = "beforeMain", GN = "main", XN = "afterMain", KN = "beforeWrite", ZN = "write", JN = "afterWrite", QN = [UN, HN, YN, qN, GN, XN, KN, ZN, JN];
-function Nr(e) {
+}, []), BN = "beforeRead", zN = "read", VN = "afterRead", LN = "beforeMain", WN = "main", UN = "afterMain", HN = "beforeWrite", YN = "write", qN = "afterWrite", GN = [BN, zN, VN, LN, WN, UN, HN, YN, qN];
+function jr(e) {
return e ? (e.nodeName || "").toLowerCase() : null;
}
function er(e) {
@@ -18927,7 +19152,7 @@ function er(e) {
}
return e;
}
-function Ln(e) {
+function Un(e) {
var t = er(e).Element;
return e instanceof t || e instanceof Element;
}
@@ -18935,23 +19160,23 @@ function lr(e) {
var t = er(e).HTMLElement;
return e instanceof t || e instanceof HTMLElement;
}
-function $d(e) {
+function Od(e) {
if (typeof ShadowRoot > "u")
return !1;
var t = er(e).ShadowRoot;
return e instanceof t || e instanceof ShadowRoot;
}
-function ej(e) {
+function XN(e) {
var t = e.state;
Object.keys(t.elements).forEach(function(r) {
var n = t.styles[r] || {}, o = t.attributes[r] || {}, a = t.elements[r];
- !lr(a) || !Nr(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(i) {
+ !lr(a) || !jr(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(i) {
var s = o[i];
s === !1 ? a.removeAttribute(i) : a.setAttribute(i, s === !0 ? "" : s);
}));
});
}
-function tj(e) {
+function KN(e) {
var t = e.state, r = {
popper: {
position: t.options.strategy,
@@ -18969,38 +19194,38 @@ function tj(e) {
var o = t.elements[n], a = t.attributes[n] || {}, i = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), s = i.reduce(function(l, c) {
return l[c] = "", l;
}, {});
- !lr(o) || !Nr(o) || (Object.assign(o.style, s), Object.keys(a).forEach(function(l) {
+ !lr(o) || !jr(o) || (Object.assign(o.style, s), Object.keys(a).forEach(function(l) {
o.removeAttribute(l);
}));
});
};
}
-const rj = {
+const ZN = {
name: "applyStyles",
enabled: !0,
phase: "write",
- fn: ej,
- effect: tj,
+ fn: XN,
+ effect: KN,
requires: ["computeStyles"]
};
-function Fr(e) {
+function Nr(e) {
return e.split("-")[0];
}
-var Vn = Math.max, Rs = Math.min, Ro = Math.round;
-function yu() {
+var Ln = Math.max, Rs = Math.min, Do = Math.round;
+function vu() {
var e = navigator.userAgentData;
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
return t.brand + "/" + t.version;
}).join(" ") : navigator.userAgent;
}
-function my() {
- return !/^((?!chrome|android).)*safari/i.test(yu());
+function fy() {
+ return !/^((?!chrome|android).)*safari/i.test(vu());
}
-function Do(e, t, r) {
+function Mo(e, t, r) {
t === void 0 && (t = !1), r === void 0 && (r = !1);
var n = e.getBoundingClientRect(), o = 1, a = 1;
- t && lr(e) && (o = e.offsetWidth > 0 && Ro(n.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Ro(n.height) / e.offsetHeight || 1);
- var i = Ln(e) ? er(e) : window, s = i.visualViewport, l = !my() && r, c = (n.left + (l && s ? s.offsetLeft : 0)) / o, u = (n.top + (l && s ? s.offsetTop : 0)) / a, d = n.width / o, f = n.height / a;
+ t && lr(e) && (o = e.offsetWidth > 0 && Do(n.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Do(n.height) / e.offsetHeight || 1);
+ var i = Un(e) ? er(e) : window, s = i.visualViewport, l = !fy() && r, c = (n.left + (l && s ? s.offsetLeft : 0)) / o, u = (n.top + (l && s ? s.offsetTop : 0)) / a, d = n.width / o, f = n.height / a;
return {
width: d,
height: f,
@@ -19013,7 +19238,7 @@ function Do(e, t, r) {
};
}
function Rd(e) {
- var t = Do(e), r = e.offsetWidth, n = e.offsetHeight;
+ var t = Mo(e), r = e.offsetWidth, n = e.offsetHeight;
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
x: e.offsetLeft,
y: e.offsetTop,
@@ -19021,11 +19246,11 @@ function Rd(e) {
height: n
};
}
-function vy(e, t) {
+function py(e, t) {
var r = t.getRootNode && t.getRootNode();
if (e.contains(t))
return !0;
- if (r && $d(r)) {
+ if (r && Od(r)) {
var n = t;
do {
if (n && e.isSameNode(n))
@@ -19035,44 +19260,44 @@ function vy(e, t) {
}
return !1;
}
-function nn(e) {
+function on(e) {
return er(e).getComputedStyle(e);
}
-function nj(e) {
- return ["table", "td", "th"].indexOf(Nr(e)) >= 0;
+function JN(e) {
+ return ["table", "td", "th"].indexOf(jr(e)) >= 0;
}
-function _n(e) {
- return ((Ln(e) ? e.ownerDocument : (
+function kn(e) {
+ return ((Un(e) ? e.ownerDocument : (
// $FlowFixMe[prop-missing]
e.document
)) || window.document).documentElement;
}
-function al(e) {
- return Nr(e) === "html" ? e : (
+function nl(e) {
+ return jr(e) === "html" ? e : (
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
// $FlowFixMe[incompatible-return]
// $FlowFixMe[prop-missing]
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
e.parentNode || // DOM Element detected
- ($d(e) ? e.host : null) || // ShadowRoot detected
+ (Od(e) ? e.host : null) || // ShadowRoot detected
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
- _n(e)
+ kn(e)
);
}
-function om(e) {
+function nm(e) {
return !lr(e) || // https://github.com/popperjs/popper-core/issues/837
- nn(e).position === "fixed" ? null : e.offsetParent;
+ on(e).position === "fixed" ? null : e.offsetParent;
}
-function oj(e) {
- var t = /firefox/i.test(yu()), r = /Trident/i.test(yu());
+function QN(e) {
+ var t = /firefox/i.test(vu()), r = /Trident/i.test(vu());
if (r && lr(e)) {
- var n = nn(e);
+ var n = on(e);
if (n.position === "fixed")
return null;
}
- var o = al(e);
- for ($d(o) && (o = o.host); lr(o) && ["html", "body"].indexOf(Nr(o)) < 0; ) {
- var a = nn(o);
+ var o = nl(e);
+ for (Od(o) && (o = o.host); lr(o) && ["html", "body"].indexOf(jr(o)) < 0; ) {
+ var a = on(o);
if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none")
return o;
o = o.parentNode;
@@ -19080,21 +19305,21 @@ function oj(e) {
return null;
}
function ci(e) {
- for (var t = er(e), r = om(e); r && nj(r) && nn(r).position === "static"; )
- r = om(r);
- return r && (Nr(r) === "html" || Nr(r) === "body" && nn(r).position === "static") ? t : r || oj(e) || t;
+ for (var t = er(e), r = nm(e); r && JN(r) && on(r).position === "static"; )
+ r = nm(r);
+ return r && (jr(r) === "html" || jr(r) === "body" && on(r).position === "static") ? t : r || QN(e) || t;
}
-function Dd(e) {
+function $d(e) {
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
}
-function Ca(e, t, r) {
- return Vn(e, Rs(t, r));
+function ka(e, t, r) {
+ return Ln(e, Rs(t, r));
}
-function aj(e, t, r) {
- var n = Ca(e, t, r);
+function ej(e, t, r) {
+ var n = ka(e, t, r);
return n > r ? r : n;
}
-function gy() {
+function hy() {
return {
top: 0,
right: 0,
@@ -19102,56 +19327,56 @@ function gy() {
left: 0
};
}
-function by(e) {
- return Object.assign({}, gy(), e);
+function my(e) {
+ return Object.assign({}, hy(), e);
}
-function yy(e, t) {
+function vy(e, t) {
return t.reduce(function(r, n) {
return r[n] = e, r;
}, {});
}
-var ij = function(t, r) {
+var tj = function(t, r) {
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
placement: r.placement
- })) : t, by(typeof t != "number" ? t : yy(t, li));
+ })) : t, my(typeof t != "number" ? t : vy(t, li));
};
-function sj(e) {
- var t, r = e.state, n = e.name, o = e.options, a = r.elements.arrow, i = r.modifiersData.popperOffsets, s = Fr(r.placement), l = Dd(s), c = [Ut, ur].indexOf(s) >= 0, u = c ? "height" : "width";
+function rj(e) {
+ var t, r = e.state, n = e.name, o = e.options, a = r.elements.arrow, i = r.modifiersData.popperOffsets, s = Nr(r.placement), l = $d(s), c = [Ut, ur].indexOf(s) >= 0, u = c ? "height" : "width";
if (!(!a || !i)) {
- var d = ij(o.padding, r), f = Rd(a), p = l === "y" ? Wt : Ut, m = l === "y" ? cr : ur, h = r.rects.reference[u] + r.rects.reference[l] - i[l] - r.rects.popper[u], v = i[l] - r.rects.reference[l], b = ci(a), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, S = h / 2 - v / 2, k = d[p], w = y - f[u] - d[m], M = y / 2 - f[u] / 2 + S, P = Ca(k, M, w), I = l;
+ var d = tj(o.padding, r), f = Rd(a), p = l === "y" ? Wt : Ut, m = l === "y" ? cr : ur, h = r.rects.reference[u] + r.rects.reference[l] - i[l] - r.rects.popper[u], v = i[l] - r.rects.reference[l], b = ci(a), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, S = h / 2 - v / 2, _ = d[p], w = y - f[u] - d[m], M = y / 2 - f[u] / 2 + S, P = ka(_, M, w), I = l;
r.modifiersData[n] = (t = {}, t[I] = P, t.centerOffset = P - M, t);
}
}
-function lj(e) {
+function nj(e) {
var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
- o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || vy(t.elements.popper, o) && (t.elements.arrow = o));
+ o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || py(t.elements.popper, o) && (t.elements.arrow = o));
}
-const cj = {
+const oj = {
name: "arrow",
enabled: !0,
phase: "main",
- fn: sj,
- effect: lj,
+ fn: rj,
+ effect: nj,
requires: ["popperOffsets"],
requiresIfExists: ["preventOverflow"]
};
-function Mo(e) {
+function Io(e) {
return e.split("-")[1];
}
-var uj = {
+var aj = {
top: "auto",
right: "auto",
bottom: "auto",
left: "auto"
};
-function dj(e, t) {
+function ij(e, t) {
var r = e.x, n = e.y, o = t.devicePixelRatio || 1;
return {
- x: Ro(r * o) / o || 0,
- y: Ro(n * o) / o || 0
+ x: Do(r * o) / o || 0,
+ y: Do(n * o) / o || 0
};
}
-function am(e) {
+function om(e) {
var t, r = e.popper, n = e.popperRect, o = e.placement, a = e.variation, i = e.offsets, s = e.position, l = e.gpuAcceleration, c = e.adaptive, u = e.roundOffsets, d = e.isFixed, f = i.x, p = f === void 0 ? 0 : f, m = i.y, h = m === void 0 ? 0 : m, v = typeof u == "function" ? u({
x: p,
y: h
@@ -19160,11 +19385,11 @@ function am(e) {
y: h
};
p = v.x, h = v.y;
- var b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), S = Ut, k = Wt, w = window;
+ var b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), S = Ut, _ = Wt, w = window;
if (c) {
var M = ci(r), P = "clientHeight", I = "clientWidth";
- if (M === er(r) && (M = _n(r), nn(M).position !== "static" && s === "absolute" && (P = "scrollHeight", I = "scrollWidth")), M = M, o === Wt || (o === Ut || o === ur) && a === Ga) {
- k = cr;
+ if (M === er(r) && (M = kn(r), on(M).position !== "static" && s === "absolute" && (P = "scrollHeight", I = "scrollWidth")), M = M, o === Wt || (o === Ut || o === ur) && a === Ga) {
+ _ = cr;
var z = d && M === w && w.visualViewport ? w.visualViewport.height : (
// $FlowFixMe[prop-missing]
M[P]
@@ -19182,7 +19407,7 @@ function am(e) {
}
var X = Object.assign({
position: s
- }, c && uj), ne = u === !0 ? dj({
+ }, c && aj), ne = u === !0 ? ij({
x: p,
y: h
}, er(r)) : {
@@ -19191,25 +19416,25 @@ function am(e) {
};
if (p = ne.x, h = ne.y, l) {
var J;
- return Object.assign({}, X, (J = {}, J[k] = y ? "0" : "", J[S] = b ? "0" : "", J.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", J));
+ return Object.assign({}, X, (J = {}, J[_] = y ? "0" : "", J[S] = b ? "0" : "", J.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", J));
}
- return Object.assign({}, X, (t = {}, t[k] = y ? h + "px" : "", t[S] = b ? p + "px" : "", t.transform = "", t));
+ return Object.assign({}, X, (t = {}, t[_] = y ? h + "px" : "", t[S] = b ? p + "px" : "", t.transform = "", t));
}
-function fj(e) {
+function sj(e) {
var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, i = a === void 0 ? !0 : a, s = r.roundOffsets, l = s === void 0 ? !0 : s, c = {
- placement: Fr(t.placement),
- variation: Mo(t.placement),
+ placement: Nr(t.placement),
+ variation: Io(t.placement),
popper: t.elements.popper,
popperRect: t.rects.popper,
gpuAcceleration: o,
isFixed: t.options.strategy === "fixed"
};
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, am(Object.assign({}, c, {
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, om(Object.assign({}, c, {
offsets: t.modifiersData.popperOffsets,
position: t.options.strategy,
adaptive: i,
roundOffsets: l
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, am(Object.assign({}, c, {
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, om(Object.assign({}, c, {
offsets: t.modifiersData.arrow,
position: "absolute",
adaptive: !1,
@@ -19218,17 +19443,17 @@ function fj(e) {
"data-popper-placement": t.placement
});
}
-const pj = {
+const lj = {
name: "computeStyles",
enabled: !0,
phase: "beforeWrite",
- fn: fj,
+ fn: sj,
data: {}
};
var Di = {
passive: !0
};
-function hj(e) {
+function cj(e) {
var t = e.state, r = e.instance, n = e.options, o = n.scroll, a = o === void 0 ? !0 : o, i = n.resize, s = i === void 0 ? !0 : i, l = er(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
return a && c.forEach(function(u) {
u.addEventListener("scroll", r.update, Di);
@@ -19238,16 +19463,16 @@ function hj(e) {
}), s && l.removeEventListener("resize", r.update, Di);
};
}
-const mj = {
+const uj = {
name: "eventListeners",
enabled: !0,
phase: "write",
fn: function() {
},
- effect: hj,
+ effect: cj,
data: {}
};
-var vj = {
+var dj = {
left: "right",
right: "left",
bottom: "top",
@@ -19255,68 +19480,68 @@ var vj = {
};
function ts(e) {
return e.replace(/left|right|bottom|top/g, function(t) {
- return vj[t];
+ return dj[t];
});
}
-var gj = {
+var fj = {
start: "end",
end: "start"
};
-function im(e) {
+function am(e) {
return e.replace(/start|end/g, function(t) {
- return gj[t];
+ return fj[t];
});
}
-function Md(e) {
+function Dd(e) {
var t = er(e), r = t.pageXOffset, n = t.pageYOffset;
return {
scrollLeft: r,
scrollTop: n
};
}
-function Id(e) {
- return Do(_n(e)).left + Md(e).scrollLeft;
+function Md(e) {
+ return Mo(kn(e)).left + Dd(e).scrollLeft;
}
-function bj(e, t) {
- var r = er(e), n = _n(e), o = r.visualViewport, a = n.clientWidth, i = n.clientHeight, s = 0, l = 0;
+function pj(e, t) {
+ var r = er(e), n = kn(e), o = r.visualViewport, a = n.clientWidth, i = n.clientHeight, s = 0, l = 0;
if (o) {
a = o.width, i = o.height;
- var c = my();
+ var c = fy();
(c || !c && t === "fixed") && (s = o.offsetLeft, l = o.offsetTop);
}
return {
width: a,
height: i,
- x: s + Id(e),
+ x: s + Md(e),
y: l
};
}
-function yj(e) {
- var t, r = _n(e), n = Md(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = Vn(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), i = Vn(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + Id(e), l = -n.scrollTop;
- return nn(o || r).direction === "rtl" && (s += Vn(r.clientWidth, o ? o.clientWidth : 0) - a), {
+function hj(e) {
+ var t, r = kn(e), n = Dd(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = Ln(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), i = Ln(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + Md(e), l = -n.scrollTop;
+ return on(o || r).direction === "rtl" && (s += Ln(r.clientWidth, o ? o.clientWidth : 0) - a), {
width: a,
height: i,
x: s,
y: l
};
}
-function Fd(e) {
- var t = nn(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
+function Id(e) {
+ var t = on(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
return /auto|scroll|overlay|hidden/.test(r + o + n);
}
-function xy(e) {
- return ["html", "body", "#document"].indexOf(Nr(e)) >= 0 ? e.ownerDocument.body : lr(e) && Fd(e) ? e : xy(al(e));
+function gy(e) {
+ return ["html", "body", "#document"].indexOf(jr(e)) >= 0 ? e.ownerDocument.body : lr(e) && Id(e) ? e : gy(nl(e));
}
-function _a(e, t) {
+function Ea(e, t) {
var r;
t === void 0 && (t = []);
- var n = xy(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = er(n), i = o ? [a].concat(a.visualViewport || [], Fd(n) ? n : []) : n, s = t.concat(i);
+ var n = gy(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = er(n), i = o ? [a].concat(a.visualViewport || [], Id(n) ? n : []) : n, s = t.concat(i);
return o ? s : (
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
- s.concat(_a(al(i)))
+ s.concat(Ea(nl(i)))
);
}
-function xu(e) {
+function gu(e) {
return Object.assign({}, e, {
left: e.x,
top: e.y,
@@ -19324,28 +19549,28 @@ function xu(e) {
bottom: e.y + e.height
});
}
-function xj(e, t) {
- var r = Do(e, !1, t === "fixed");
+function mj(e, t) {
+ var r = Mo(e, !1, t === "fixed");
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
}
-function sm(e, t, r) {
- return t === py ? xu(bj(e, r)) : Ln(t) ? xj(t, r) : xu(yj(_n(e)));
+function im(e, t, r) {
+ return t === uy ? gu(pj(e, r)) : Un(t) ? mj(t, r) : gu(hj(kn(e)));
}
-function Sj(e) {
- var t = _a(al(e)), r = ["absolute", "fixed"].indexOf(nn(e).position) >= 0, n = r && lr(e) ? ci(e) : e;
- return Ln(n) ? t.filter(function(o) {
- return Ln(o) && vy(o, n) && Nr(o) !== "body";
+function vj(e) {
+ var t = Ea(nl(e)), r = ["absolute", "fixed"].indexOf(on(e).position) >= 0, n = r && lr(e) ? ci(e) : e;
+ return Un(n) ? t.filter(function(o) {
+ return Un(o) && py(o, n) && jr(o) !== "body";
}) : [];
}
-function wj(e, t, r, n) {
- var o = t === "clippingParents" ? Sj(e) : [].concat(t), a = [].concat(o, [r]), i = a[0], s = a.reduce(function(l, c) {
- var u = sm(e, c, n);
- return l.top = Vn(u.top, l.top), l.right = Rs(u.right, l.right), l.bottom = Rs(u.bottom, l.bottom), l.left = Vn(u.left, l.left), l;
- }, sm(e, i, n));
+function gj(e, t, r, n) {
+ var o = t === "clippingParents" ? vj(e) : [].concat(t), a = [].concat(o, [r]), i = a[0], s = a.reduce(function(l, c) {
+ var u = im(e, c, n);
+ return l.top = Ln(u.top, l.top), l.right = Rs(u.right, l.right), l.bottom = Rs(u.bottom, l.bottom), l.left = Ln(u.left, l.left), l;
+ }, im(e, i, n));
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
}
-function Sy(e) {
- var t = e.reference, r = e.element, n = e.placement, o = n ? Fr(n) : null, a = n ? Mo(n) : null, i = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, l;
+function by(e) {
+ var t = e.reference, r = e.element, n = e.placement, o = n ? Nr(n) : null, a = n ? Io(n) : null, i = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, l;
switch (o) {
case Wt:
l = {
@@ -19377,7 +19602,7 @@ function Sy(e) {
y: t.y
};
}
- var c = o ? Dd(o) : null;
+ var c = o ? $d(o) : null;
if (c != null) {
var u = c === "y" ? "height" : "width";
switch (a) {
@@ -19393,18 +19618,18 @@ function Sy(e) {
}
function Xa(e, t) {
t === void 0 && (t = {});
- var r = t, n = r.placement, o = n === void 0 ? e.placement : n, a = r.strategy, i = a === void 0 ? e.strategy : a, s = r.boundary, l = s === void 0 ? LN : s, c = r.rootBoundary, u = c === void 0 ? py : c, d = r.elementContext, f = d === void 0 ? ta : d, p = r.altBoundary, m = p === void 0 ? !1 : p, h = r.padding, v = h === void 0 ? 0 : h, b = by(typeof v != "number" ? v : yy(v, li)), y = f === ta ? WN : ta, S = e.rects.popper, k = e.elements[m ? y : f], w = wj(Ln(k) ? k : k.contextElement || _n(e.elements.popper), l, u, i), M = Do(e.elements.reference), P = Sy({
+ var r = t, n = r.placement, o = n === void 0 ? e.placement : n, a = r.strategy, i = a === void 0 ? e.strategy : a, s = r.boundary, l = s === void 0 ? NN : s, c = r.rootBoundary, u = c === void 0 ? uy : c, d = r.elementContext, f = d === void 0 ? ra : d, p = r.altBoundary, m = p === void 0 ? !1 : p, h = r.padding, v = h === void 0 ? 0 : h, b = my(typeof v != "number" ? v : vy(v, li)), y = f === ra ? jN : ra, S = e.rects.popper, _ = e.elements[m ? y : f], w = gj(Un(_) ? _ : _.contextElement || kn(e.elements.popper), l, u, i), M = Mo(e.elements.reference), P = by({
reference: M,
element: S,
strategy: "absolute",
placement: o
- }), I = xu(Object.assign({}, S, P)), z = f === ta ? I : M, j = {
+ }), I = gu(Object.assign({}, S, P)), z = f === ra ? I : M, j = {
top: w.top - z.top + b.top,
bottom: z.bottom - w.bottom + b.bottom,
left: w.left - z.left + b.left,
right: z.right - w.right + b.right
}, X = e.modifiersData.offset;
- if (f === ta && X) {
+ if (f === ra && X) {
var ne = X[o];
Object.keys(j).forEach(function(J) {
var Q = [ur, cr].indexOf(J) >= 0 ? 1 : -1, ee = [Wt, cr].indexOf(J) >= 0 ? "y" : "x";
@@ -19413,10 +19638,10 @@ function Xa(e, t) {
}
return j;
}
-function Cj(e, t) {
+function bj(e, t) {
t === void 0 && (t = {});
- var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, i = r.padding, s = r.flipVariations, l = r.allowedAutoPlacements, c = l === void 0 ? hy : l, u = Mo(n), d = u ? s ? nm : nm.filter(function(m) {
- return Mo(m) === u;
+ var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, i = r.padding, s = r.flipVariations, l = r.allowedAutoPlacements, c = l === void 0 ? dy : l, u = Io(n), d = u ? s ? rm : rm.filter(function(m) {
+ return Io(m) === u;
}) : li, f = d.filter(function(m) {
return c.indexOf(m) >= 0;
});
@@ -19427,23 +19652,23 @@ function Cj(e, t) {
boundary: o,
rootBoundary: a,
padding: i
- })[Fr(h)], m;
+ })[Nr(h)], m;
}, {});
return Object.keys(p).sort(function(m, h) {
return p[m] - p[h];
});
}
-function _j(e) {
- if (Fr(e) === Od)
+function yj(e) {
+ if (Nr(e) === Ad)
return [];
var t = ts(e);
- return [im(e), t, im(t)];
+ return [am(e), t, am(t)];
}
-function kj(e) {
+function xj(e) {
var t = e.state, r = e.options, n = e.name;
if (!t.modifiersData[n]._skip) {
- for (var o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !0 : i, l = r.fallbackPlacements, c = r.padding, u = r.boundary, d = r.rootBoundary, f = r.altBoundary, p = r.flipVariations, m = p === void 0 ? !0 : p, h = r.allowedAutoPlacements, v = t.options.placement, b = Fr(v), y = b === v, S = l || (y || !m ? [ts(v)] : _j(v)), k = [v].concat(S).reduce(function(O, B) {
- return O.concat(Fr(B) === Od ? Cj(t, {
+ for (var o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !0 : i, l = r.fallbackPlacements, c = r.padding, u = r.boundary, d = r.rootBoundary, f = r.altBoundary, p = r.flipVariations, m = p === void 0 ? !0 : p, h = r.allowedAutoPlacements, v = t.options.placement, b = Nr(v), y = b === v, S = l || (y || !m ? [ts(v)] : yj(v)), _ = [v].concat(S).reduce(function(A, B) {
+ return A.concat(Nr(B) === Ad ? bj(t, {
placement: B,
boundary: u,
rootBoundary: d,
@@ -19451,8 +19676,8 @@ function kj(e) {
flipVariations: m,
allowedAutoPlacements: h
}) : B);
- }, []), w = t.rects.reference, M = t.rects.popper, P = /* @__PURE__ */ new Map(), I = !0, z = k[0], j = 0; j < k.length; j++) {
- var X = k[j], ne = Fr(X), J = Mo(X) === $o, Q = [Wt, cr].indexOf(ne) >= 0, ee = Q ? "width" : "height", oe = Xa(t, {
+ }, []), w = t.rects.reference, M = t.rects.popper, P = /* @__PURE__ */ new Map(), I = !0, z = _[0], j = 0; j < _.length; j++) {
+ var X = _[j], ne = Nr(X), J = Io(X) === $o, Q = [Wt, cr].indexOf(ne) >= 0, ee = Q ? "width" : "height", oe = Xa(t, {
placement: X,
boundary: u,
rootBoundary: d,
@@ -19461,8 +19686,8 @@ function kj(e) {
}), D = Q ? J ? ur : Ut : J ? cr : Wt;
w[ee] > M[ee] && (D = ts(D));
var ce = ts(D), fe = [];
- if (a && fe.push(oe[ne] <= 0), s && fe.push(oe[D] <= 0, oe[ce] <= 0), fe.every(function(O) {
- return O;
+ if (a && fe.push(oe[ne] <= 0), s && fe.push(oe[D] <= 0, oe[ce] <= 0), fe.every(function(A) {
+ return A;
})) {
z = X, I = !1;
break;
@@ -19471,10 +19696,10 @@ function kj(e) {
}
if (I)
for (var F = m ? 3 : 1, N = function(B) {
- var C = k.find(function(H) {
- var A = P.get(H);
- if (A)
- return A.slice(0, B).every(function(Z) {
+ var C = _.find(function(H) {
+ var O = P.get(H);
+ if (O)
+ return O.slice(0, B).every(function(Z) {
return Z;
});
});
@@ -19488,17 +19713,17 @@ function kj(e) {
t.placement !== z && (t.modifiersData[n]._skip = !0, t.placement = z, t.reset = !0);
}
}
-const Ej = {
+const Sj = {
name: "flip",
enabled: !0,
phase: "main",
- fn: kj,
+ fn: xj,
requiresIfExists: ["offset"],
data: {
_skip: !1
}
};
-function lm(e, t, r) {
+function sm(e, t, r) {
return r === void 0 && (r = {
x: 0,
y: 0
@@ -19509,17 +19734,17 @@ function lm(e, t, r) {
left: e.left - t.width - r.x
};
}
-function cm(e) {
+function lm(e) {
return [Wt, ur, cr, Ut].some(function(t) {
return e[t] >= 0;
});
}
-function Pj(e) {
+function wj(e) {
var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, i = Xa(t, {
elementContext: "reference"
}), s = Xa(t, {
altBoundary: !0
- }), l = lm(i, n), c = lm(s, o, a), u = cm(l), d = cm(c);
+ }), l = sm(i, n), c = sm(s, o, a), u = lm(l), d = lm(c);
t.modifiersData[r] = {
referenceClippingOffsets: l,
popperEscapeOffsets: c,
@@ -19530,15 +19755,15 @@ function Pj(e) {
"data-popper-escaped": d
});
}
-const Tj = {
+const Cj = {
name: "hide",
enabled: !0,
phase: "main",
requiresIfExists: ["preventOverflow"],
- fn: Pj
+ fn: wj
};
-function Aj(e, t, r) {
- var n = Fr(e), o = [Ut, Wt].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, {
+function _j(e, t, r) {
+ var n = Nr(e), o = [Ut, Wt].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, {
placement: e
})) : r, i = a[0], s = a[1];
return i = i || 0, s = (s || 0) * o, [Ut, ur].indexOf(n) >= 0 ? {
@@ -19549,45 +19774,45 @@ function Aj(e, t, r) {
y: s
};
}
-function Oj(e) {
- var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, i = hy.reduce(function(u, d) {
- return u[d] = Aj(d, t.rects, a), u;
+function kj(e) {
+ var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, i = dy.reduce(function(u, d) {
+ return u[d] = _j(d, t.rects, a), u;
}, {}), s = i[t.placement], l = s.x, c = s.y;
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += c), t.modifiersData[n] = i;
}
-const $j = {
+const Ej = {
name: "offset",
enabled: !0,
phase: "main",
requires: ["popperOffsets"],
- fn: Oj
+ fn: kj
};
-function Rj(e) {
+function Pj(e) {
var t = e.state, r = e.name;
- t.modifiersData[r] = Sy({
+ t.modifiersData[r] = by({
reference: t.rects.reference,
element: t.rects.popper,
strategy: "absolute",
placement: t.placement
});
}
-const Dj = {
+const Tj = {
name: "popperOffsets",
enabled: !0,
phase: "read",
- fn: Rj,
+ fn: Pj,
data: {}
};
-function Mj(e) {
+function Aj(e) {
return e === "x" ? "y" : "x";
}
-function Ij(e) {
+function Oj(e) {
var t = e.state, r = e.options, n = e.name, o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !1 : i, l = r.boundary, c = r.rootBoundary, u = r.altBoundary, d = r.padding, f = r.tether, p = f === void 0 ? !0 : f, m = r.tetherOffset, h = m === void 0 ? 0 : m, v = Xa(t, {
boundary: l,
rootBoundary: c,
padding: d,
altBoundary: u
- }), b = Fr(t.placement), y = Mo(t.placement), S = !y, k = Dd(b), w = Mj(k), M = t.modifiersData.popperOffsets, P = t.rects.reference, I = t.rects.popper, z = typeof h == "function" ? h(Object.assign({}, t.rects, {
+ }), b = Nr(t.placement), y = Io(t.placement), S = !y, _ = $d(b), w = Aj(_), M = t.modifiersData.popperOffsets, P = t.rects.reference, I = t.rects.popper, z = typeof h == "function" ? h(Object.assign({}, t.rects, {
placement: t.placement
})) : h, j = typeof z == "number" ? {
mainAxis: z,
@@ -19601,57 +19826,57 @@ function Ij(e) {
};
if (M) {
if (a) {
- var J, Q = k === "y" ? Wt : Ut, ee = k === "y" ? cr : ur, oe = k === "y" ? "height" : "width", D = M[k], ce = D + v[Q], fe = D - v[ee], F = p ? -I[oe] / 2 : 0, N = y === $o ? P[oe] : I[oe], V = y === $o ? -I[oe] : -P[oe], T = t.elements.arrow, O = p && T ? Rd(T) : {
+ var J, Q = _ === "y" ? Wt : Ut, ee = _ === "y" ? cr : ur, oe = _ === "y" ? "height" : "width", D = M[_], ce = D + v[Q], fe = D - v[ee], F = p ? -I[oe] / 2 : 0, N = y === $o ? P[oe] : I[oe], V = y === $o ? -I[oe] : -P[oe], T = t.elements.arrow, A = p && T ? Rd(T) : {
width: 0,
height: 0
- }, B = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : gy(), C = B[Q], H = B[ee], A = Ca(0, P[oe], O[oe]), Z = S ? P[oe] / 2 - F - A - C - j.mainAxis : N - A - C - j.mainAxis, Y = S ? -P[oe] / 2 + F + A + H + j.mainAxis : V + A + H + j.mainAxis, ae = t.elements.arrow && ci(t.elements.arrow), $ = ae ? k === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, Se = (J = X == null ? void 0 : X[k]) != null ? J : 0, he = D + Z - Se - $, le = D + Y - Se, Re = Ca(p ? Rs(ce, he) : ce, D, p ? Vn(fe, le) : fe);
- M[k] = Re, ne[k] = Re - D;
+ }, B = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : hy(), C = B[Q], H = B[ee], O = ka(0, P[oe], A[oe]), Z = S ? P[oe] / 2 - F - O - C - j.mainAxis : N - O - C - j.mainAxis, Y = S ? -P[oe] / 2 + F + O + H + j.mainAxis : V + O + H + j.mainAxis, ae = t.elements.arrow && ci(t.elements.arrow), R = ae ? _ === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, Se = (J = X == null ? void 0 : X[_]) != null ? J : 0, he = D + Z - Se - R, le = D + Y - Se, De = ka(p ? Rs(ce, he) : ce, D, p ? Ln(fe, le) : fe);
+ M[_] = De, ne[_] = De - D;
}
if (s) {
- var ye, we = k === "x" ? Wt : Ut, ht = k === "x" ? cr : ur, ke = M[w], dt = w === "y" ? "height" : "width", rt = ke + v[we], Me = ke - v[ht], se = [Wt, Ut].indexOf(b) !== -1, Ae = (ye = X == null ? void 0 : X[w]) != null ? ye : 0, Ot = se ? rt : ke - P[dt] - I[dt] - Ae + j.altAxis, xt = se ? ke + P[dt] + I[dt] - Ae - j.altAxis : Me, lt = p && se ? aj(Ot, ke, xt) : Ca(p ? Ot : rt, ke, p ? xt : Me);
+ var ye, we = _ === "x" ? Wt : Ut, ht = _ === "x" ? cr : ur, ke = M[w], dt = w === "y" ? "height" : "width", rt = ke + v[we], Ie = ke - v[ht], se = [Wt, Ut].indexOf(b) !== -1, Oe = (ye = X == null ? void 0 : X[w]) != null ? ye : 0, Ot = se ? rt : ke - P[dt] - I[dt] - Oe + j.altAxis, xt = se ? ke + P[dt] + I[dt] - Oe - j.altAxis : Ie, lt = p && se ? ej(Ot, ke, xt) : ka(p ? Ot : rt, ke, p ? xt : Ie);
M[w] = lt, ne[w] = lt - ke;
}
t.modifiersData[n] = ne;
}
}
-const Fj = {
+const Rj = {
name: "preventOverflow",
enabled: !0,
phase: "main",
- fn: Ij,
+ fn: Oj,
requiresIfExists: ["offset"]
};
-function Nj(e) {
+function $j(e) {
return {
scrollLeft: e.scrollLeft,
scrollTop: e.scrollTop
};
}
-function jj(e) {
- return e === er(e) || !lr(e) ? Md(e) : Nj(e);
+function Dj(e) {
+ return e === er(e) || !lr(e) ? Dd(e) : $j(e);
}
-function Bj(e) {
- var t = e.getBoundingClientRect(), r = Ro(t.width) / e.offsetWidth || 1, n = Ro(t.height) / e.offsetHeight || 1;
+function Mj(e) {
+ var t = e.getBoundingClientRect(), r = Do(t.width) / e.offsetWidth || 1, n = Do(t.height) / e.offsetHeight || 1;
return r !== 1 || n !== 1;
}
-function zj(e, t, r) {
+function Ij(e, t, r) {
r === void 0 && (r = !1);
- var n = lr(t), o = lr(t) && Bj(t), a = _n(t), i = Do(e, o, r), s = {
+ var n = lr(t), o = lr(t) && Mj(t), a = kn(t), i = Mo(e, o, r), s = {
scrollLeft: 0,
scrollTop: 0
}, l = {
x: 0,
y: 0
};
- return (n || !n && !r) && ((Nr(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
- Fd(a)) && (s = jj(t)), lr(t) ? (l = Do(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : a && (l.x = Id(a))), {
+ return (n || !n && !r) && ((jr(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
+ Id(a)) && (s = Dj(t)), lr(t) ? (l = Mo(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : a && (l.x = Md(a))), {
x: i.left + s.scrollLeft - l.x,
y: i.top + s.scrollTop - l.y,
width: i.width,
height: i.height
};
}
-function Vj(e) {
+function Fj(e) {
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
e.forEach(function(a) {
t.set(a.name, a);
@@ -19670,15 +19895,15 @@ function Vj(e) {
r.has(a.name) || o(a);
}), n;
}
-function Lj(e) {
- var t = Vj(e);
- return QN.reduce(function(r, n) {
+function Nj(e) {
+ var t = Fj(e);
+ return GN.reduce(function(r, n) {
return r.concat(t.filter(function(o) {
return o.phase === n;
}));
}, []);
}
-function Wj(e) {
+function jj(e) {
var t;
return function() {
return t || (t = new Promise(function(r) {
@@ -19688,7 +19913,7 @@ function Wj(e) {
})), t;
};
}
-function Uj(e) {
+function Bj(e) {
var t = e.reduce(function(r, n) {
var o = r[n.name];
return r[n.name] = o ? Object.assign({}, o, n, {
@@ -19700,27 +19925,27 @@ function Uj(e) {
return t[r];
});
}
-var um = {
+var cm = {
placement: "bottom",
modifiers: [],
strategy: "absolute"
};
-function dm() {
+function um() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
t[r] = arguments[r];
return !t.some(function(n) {
return !(n && typeof n.getBoundingClientRect == "function");
});
}
-function Hj(e) {
+function zj(e) {
e === void 0 && (e = {});
- var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? um : o;
+ var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? cm : o;
return function(s, l, c) {
c === void 0 && (c = a);
var u = {
placement: "bottom",
orderedModifiers: [],
- options: Object.assign({}, um, a),
+ options: Object.assign({}, cm, a),
modifiersData: {},
elements: {
reference: s,
@@ -19733,12 +19958,12 @@ function Hj(e) {
setOptions: function(b) {
var y = typeof b == "function" ? b(u.options) : b;
h(), u.options = Object.assign({}, a, u.options, y), u.scrollParents = {
- reference: Ln(s) ? _a(s) : s.contextElement ? _a(s.contextElement) : [],
- popper: _a(l)
+ reference: Un(s) ? Ea(s) : s.contextElement ? Ea(s.contextElement) : [],
+ popper: Ea(l)
};
- var S = Lj(Uj([].concat(n, u.options.modifiers)));
- return u.orderedModifiers = S.filter(function(k) {
- return k.enabled;
+ var S = Nj(Bj([].concat(n, u.options.modifiers)));
+ return u.orderedModifiers = S.filter(function(_) {
+ return _.enabled;
}), m(), p.update();
},
// Sync update – it will always be executed, even if not necessary. This
@@ -19749,19 +19974,19 @@ function Hj(e) {
forceUpdate: function() {
if (!f) {
var b = u.elements, y = b.reference, S = b.popper;
- if (dm(y, S)) {
+ if (um(y, S)) {
u.rects = {
- reference: zj(y, ci(S), u.options.strategy === "fixed"),
+ reference: Ij(y, ci(S), u.options.strategy === "fixed"),
popper: Rd(S)
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(j) {
return u.modifiersData[j.name] = Object.assign({}, j.data);
});
- for (var k = 0; k < u.orderedModifiers.length; k++) {
+ for (var _ = 0; _ < u.orderedModifiers.length; _++) {
if (u.reset === !0) {
- u.reset = !1, k = -1;
+ u.reset = !1, _ = -1;
continue;
}
- var w = u.orderedModifiers[k], M = w.fn, P = w.options, I = P === void 0 ? {} : P, z = w.name;
+ var w = u.orderedModifiers[_], M = w.fn, P = w.options, I = P === void 0 ? {} : P, z = w.name;
typeof M == "function" && (u = M({
state: u,
options: I,
@@ -19774,7 +19999,7 @@ function Hj(e) {
},
// Async and optimistically optimized update – it will not be executed if
// not necessary (debounced to run at most once-per-tick)
- update: Wj(function() {
+ update: jj(function() {
return new Promise(function(v) {
p.forceUpdate(), v(u);
});
@@ -19783,16 +20008,16 @@ function Hj(e) {
h(), f = !0;
}
};
- if (!dm(s, l))
+ if (!um(s, l))
return p;
p.setOptions(c).then(function(v) {
!f && c.onFirstUpdate && c.onFirstUpdate(v);
});
function m() {
u.orderedModifiers.forEach(function(v) {
- var b = v.name, y = v.options, S = y === void 0 ? {} : y, k = v.effect;
- if (typeof k == "function") {
- var w = k({
+ var b = v.name, y = v.options, S = y === void 0 ? {} : y, _ = v.effect;
+ if (typeof _ == "function") {
+ var w = _({
state: u,
name: b,
instance: p,
@@ -19811,10 +20036,10 @@ function Hj(e) {
return p;
};
}
-var Yj = [mj, Dj, pj, rj, $j, Ej, Fj, cj, Tj], qj = /* @__PURE__ */ Hj({
- defaultModifiers: Yj
+var Vj = [uj, Tj, lj, ZN, Ej, Sj, Rj, oj, Cj], Lj = /* @__PURE__ */ zj({
+ defaultModifiers: Vj
});
-function wy(e = {}) {
+function yy(e = {}) {
const {
enabled: t = !0,
modifiers: r,
@@ -19829,22 +20054,22 @@ function wy(e = {}) {
preventOverflow: d = !0,
matchWidth: f,
direction: p = "ltr"
- } = e, m = be(null), h = be(null), v = be(null), b = VN(n, p), y = be(() => {
+ } = e, m = be(null), h = be(null), v = be(null), b = FN(n, p), y = be(() => {
}), S = q(() => {
var j;
- !t || !m.current || !h.current || ((j = y.current) == null || j.call(y), v.current = qj(m.current, h.current, {
+ !t || !m.current || !h.current || ((j = y.current) == null || j.call(y), v.current = Lj(m.current, h.current, {
placement: b,
modifiers: [
- jN,
- IN,
- MN,
+ DN,
+ ON,
+ AN,
{
- ...DN,
+ ...TN,
enabled: !!f
},
{
name: "eventListeners",
- ...RN(i)
+ ...PN(i)
},
{
name: "arrow",
@@ -19889,7 +20114,7 @@ function wy(e = {}) {
var j;
!m.current && !h.current && ((j = v.current) == null || j.destroy(), v.current = null);
}, []);
- const k = q(
+ const _ = q(
(j) => {
m.current = j, S();
},
@@ -19897,9 +20122,9 @@ function wy(e = {}) {
), w = q(
(j = {}, X = null) => ({
...j,
- ref: St(k, X)
+ ref: St(_, X)
}),
- [k]
+ [_]
), M = q(
(j) => {
h.current = j, S();
@@ -19923,7 +20148,7 @@ function wy(e = {}) {
...oe,
ref: X,
"data-popper-arrow": "",
- style: Gj(j)
+ style: Wj(j)
};
}, []), z = q(
(j = {}, X = null) => ({
@@ -19943,7 +20168,7 @@ function wy(e = {}) {
(j = v.current) == null || j.forceUpdate();
},
transformOrigin: Et.transformOrigin.varRef,
- referenceRef: k,
+ referenceRef: _,
popperRef: M,
getPopperProps: P,
getArrowProps: I,
@@ -19951,11 +20176,11 @@ function wy(e = {}) {
getReferenceProps: w
};
}
-function Gj(e) {
+function Wj(e) {
const { size: t, shadowColor: r, bg: n, style: o } = e, a = { ...o, position: "absolute" };
return t && (a["--popper-arrow-size"] = t), r && (a["--popper-arrow-shadow-color"] = r), n && (a["--popper-arrow-bg"] = n), a;
}
-function Cy(e = {}) {
+function xy(e = {}) {
const {
onClose: t,
onOpen: r,
@@ -19974,8 +20199,8 @@ function Cy(e = {}) {
"aria-expanded": c,
"aria-controls": f,
onClick(S) {
- var k;
- (k = y.onClick) == null || k.call(y, S), h();
+ var _;
+ (_ = y.onClick) == null || _.call(y, S), h();
}
};
}
@@ -19996,7 +20221,7 @@ function Cy(e = {}) {
getDisclosureProps: b
};
}
-function Xj(e) {
+function Uj(e) {
const { ref: t, handler: r, enabled: n = !0 } = e, o = Jt(r), i = be({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
@@ -20005,35 +20230,35 @@ function Xj(e) {
if (!n)
return;
const s = (d) => {
- yc(d, t) && (i.isPointerDown = !0);
+ gc(d, t) && (i.isPointerDown = !0);
}, l = (d) => {
if (i.ignoreEmulatedMouseEvents) {
i.ignoreEmulatedMouseEvents = !1;
return;
}
- i.isPointerDown && r && yc(d, t) && (i.isPointerDown = !1, o(d));
+ i.isPointerDown && r && gc(d, t) && (i.isPointerDown = !1, o(d));
}, c = (d) => {
- i.ignoreEmulatedMouseEvents = !0, r && i.isPointerDown && yc(d, t) && (i.isPointerDown = !1, o(d));
- }, u = _y(t.current);
+ i.ignoreEmulatedMouseEvents = !0, r && i.isPointerDown && gc(d, t) && (i.isPointerDown = !1, o(d));
+ }, u = Sy(t.current);
return u.addEventListener("mousedown", s, !0), u.addEventListener("mouseup", l, !0), u.addEventListener("touchstart", s, !0), u.addEventListener("touchend", c, !0), () => {
u.removeEventListener("mousedown", s, !0), u.removeEventListener("mouseup", l, !0), u.removeEventListener("touchstart", s, !0), u.removeEventListener("touchend", c, !0);
};
}, [r, t, o, i, n]);
}
-function yc(e, t) {
+function gc(e, t) {
var r;
const n = e.target;
- return n && !_y(n).contains(n) ? !1 : !((r = t.current) != null && r.contains(n));
+ return n && !Sy(n).contains(n) ? !1 : !((r = t.current) != null && r.contains(n));
}
-function _y(e) {
+function Sy(e) {
var t;
return (t = e == null ? void 0 : e.ownerDocument) != null ? t : document;
}
-function Kj(e) {
+function Hj(e) {
const { isOpen: t, ref: r } = e, [n, o] = Ye(t), [a, i] = Ye(!1);
return Fe(() => {
a || (o(t), i(!0));
- }, [t, a, n]), wa(
+ }, [t, a, n]), _a(
() => r.current,
"animationend",
() => {
@@ -20043,36 +20268,36 @@ function Kj(e) {
present: !(t ? !1 : !n),
onComplete() {
var l;
- const c = J5(r.current), u = new c.CustomEvent("animationend", { bubbles: !0 });
+ const c = q5(r.current), u = new c.CustomEvent("animationend", { bubbles: !0 });
(l = r.current) == null || l.dispatchEvent(u);
}
};
}
-function Zj(e) {
+function Yj(e) {
const { wasSelected: t, enabled: r, isSelected: n, mode: o = "unmount" } = e;
return !!(!r || n || o === "keepMounted" && t);
}
var [
- Jj,
- Qj,
- eB,
- tB
-] = xF(), [rB, Lo] = Nt({
+ qj,
+ Gj,
+ Xj,
+ Kj
+] = vF(), [Zj, Wo] = Nt({
strict: !1,
name: "MenuContext"
});
-function nB(e, ...t) {
+function Jj(e, ...t) {
const r = _r(), n = e || r;
return gt(() => t.map((o) => `${o}-${n}`), [n, t]);
}
-function ky(e) {
+function wy(e) {
var t;
return (t = e == null ? void 0 : e.ownerDocument) != null ? t : document;
}
-function fm(e) {
- return ky(e).activeElement === e;
+function dm(e) {
+ return wy(e).activeElement === e;
}
-function oB(e = {}) {
+function Qj(e = {}) {
const {
id: t,
closeOnSelect: r = !0,
@@ -20089,16 +20314,16 @@ function oB(e = {}) {
direction: p,
computePositionOnMount: m = !1,
...h
- } = e, v = be(null), b = be(null), y = eB(), S = q(() => {
+ } = e, v = be(null), b = be(null), y = Xj(), S = q(() => {
requestAnimationFrame(() => {
var T;
(T = v.current) == null || T.focus({ preventScroll: !1 });
});
- }, []), k = q(() => {
+ }, []), _ = q(() => {
const T = setTimeout(() => {
- var O;
+ var A;
if (o)
- (O = o.current) == null || O.focus();
+ (A = o.current) == null || A.focus();
else {
const B = y.firstEnabled();
B && J(B.index);
@@ -20107,56 +20332,59 @@ function oB(e = {}) {
ce.current.add(T);
}, [y, o]), w = q(() => {
const T = setTimeout(() => {
- const O = y.lastEnabled();
- O && J(O.index);
+ const A = y.lastEnabled();
+ A && J(A.index);
});
ce.current.add(T);
}, [y]), M = q(() => {
- u == null || u(), a ? k() : S();
- }, [a, k, S, u]), { isOpen: P, onOpen: I, onClose: z, onToggle: j } = Cy({
+ u == null || u(), a ? _() : S();
+ }, [a, _, S, u]), { isOpen: P, onOpen: I, onClose: z, onToggle: j } = xy({
isOpen: s,
defaultIsOpen: l,
onClose: c,
onOpen: M
});
- Xj({
+ Uj({
enabled: P && n,
ref: v,
handler: (T) => {
- var O;
- (O = b.current) != null && O.contains(T.target) || z();
+ var A;
+ (A = b.current) != null && A.contains(T.target) || z();
}
});
- const X = wy({
+ const X = yy({
...h,
enabled: P || m,
placement: d,
direction: p
}), [ne, J] = Ye(-1);
- Bo(() => {
+ zo(() => {
P || J(-1);
- }, [P]), EN(v, {
+ }, [P]), SN(v, {
focusRef: b,
visible: P,
shouldFocus: !0
});
- const Q = Kj({ isOpen: P, ref: v }), [ee, oe] = nB(t, "menu-button", "menu-list"), D = q(() => {
+ const Q = Hj({ isOpen: P, ref: v }), [ee, oe] = Jj(t, "menu-button", "menu-list"), D = q(() => {
I(), S();
}, [I, S]), ce = be(/* @__PURE__ */ new Set([]));
- uB(() => {
- ce.current.forEach((T) => clearTimeout(T)), ce.current.clear();
- });
+ Fe(() => {
+ const T = ce.current;
+ return () => {
+ T.forEach((A) => clearTimeout(A)), T.clear();
+ };
+ }, []);
const fe = q(() => {
- I(), k();
- }, [k, I]), F = q(() => {
+ I(), _();
+ }, [_, I]), F = q(() => {
I(), w();
}, [I, w]), N = q(() => {
- var T, O;
- const B = ky(v.current), C = (T = v.current) == null ? void 0 : T.contains(B.activeElement);
+ var T, A;
+ const B = wy(v.current), C = (T = v.current) == null ? void 0 : T.contains(B.activeElement);
if (!(P && !C))
return;
- const A = (O = y.item(ne)) == null ? void 0 : O.node;
- A == null || A.focus();
+ const O = (A = y.item(ne)) == null ? void 0 : A.node;
+ O == null || O.focus({ preventScroll: !0 });
}, [P, ne, y]), V = be(null);
return {
openAndFocusMenu: D,
@@ -20187,8 +20415,8 @@ function oB(e = {}) {
rafId: V
};
}
-function aB(e = {}, t = null) {
- const r = Lo(), { onToggle: n, popper: o, openAndFocusFirstItem: a, openAndFocusLastItem: i } = r, s = q(
+function eB(e = {}, t = null) {
+ const r = Wo(), { onToggle: n, popper: o, openAndFocusFirstItem: a, openAndFocusLastItem: i } = r, s = q(
(l) => {
const c = l.key, d = {
Enter: a,
@@ -20203,20 +20431,20 @@ function aB(e = {}, t = null) {
...e,
ref: St(r.buttonRef, t, o.referenceRef),
id: r.buttonId,
- "data-active": to(r.isOpen),
+ "data-active": Ar(r.isOpen),
"aria-expanded": r.isOpen,
"aria-haspopup": "menu",
"aria-controls": r.menuId,
- onClick: Rt(e.onClick, n),
- onKeyDown: Rt(e.onKeyDown, s)
+ onClick: $t(e.onClick, n),
+ onKeyDown: $t(e.onKeyDown, s)
};
}
-function Su(e) {
+function bu(e) {
var t;
- return lB(e) && !!((t = e == null ? void 0 : e.getAttribute("role")) != null && t.startsWith("menuitem"));
+ return nB(e) && !!((t = e == null ? void 0 : e.getAttribute("role")) != null && t.startsWith("menuitem"));
}
-function iB(e = {}, t = null) {
- const r = Lo();
+function tB(e = {}, t = null) {
+ const r = Wo();
if (!r)
throw new Error(
"useMenuContext: context is undefined. Seems you forgot to wrap component within