@js-smart/react-kit
Version:
1,624 lines • 216 kB
JavaScript
var bo = Object.defineProperty;
var vo = (e, t, n) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var Fe = (e, t, n) => vo(e, typeof t != "symbol" ? t + "" : t, n);
import { jsxs as ve, jsx as w, Fragment as Rt } from "react/jsx-runtime";
import { Button as Ae, Tooltip as Cr, IconButton as Te, Snackbar as Et, Alert as it, Slide as Or, CircularProgress as wo, Dialog as So, DialogTitle as ko, DialogContent as To, DialogActions as Eo, Link as Pr, Icon as Ao, Box as xr, Typography as Co } from "@mui/material";
import * as we from "react";
import Oo, { useState as be, useEffect as Ie } from "react";
import Po from "@emotion/styled";
import { ThemeContext as xo } from "@emotion/react";
import { Link as Nr } from "react-router-dom";
import { format as $r, parseISO as No } from "date-fns";
const Rn = (e) => e, $o = () => {
let e = Rn;
return {
configure(t) {
e = t;
},
generate(t) {
return e(t);
},
reset() {
e = Rn;
}
};
}, Io = $o();
function Ne(e, ...t) {
const n = new URL(`https://mui.com/production-error/?code=${e}`);
return t.forEach((r) => n.searchParams.append("args[]", r)), `Minified MUI error #${e}; visit ${n} for the full message.`;
}
function We(e) {
if (typeof e != "string")
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Ne(7));
return e.charAt(0).toUpperCase() + e.slice(1);
}
function Ro(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var mt = { exports: {} }, gt = { exports: {} }, Y = {};
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Dn;
function Do() {
if (Dn) return Y;
Dn = 1;
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, u = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
function N(b) {
if (typeof b == "object" && b !== null) {
var A = b.$$typeof;
switch (A) {
case t:
switch (b = b.type, b) {
case l:
case f:
case r:
case s:
case o:
case h:
return b;
default:
switch (b = b && b.$$typeof, b) {
case a:
case d:
case g:
case p:
case i:
return b;
default:
return A;
}
}
case n:
return A;
}
}
}
function S(b) {
return N(b) === f;
}
return Y.AsyncMode = l, Y.ConcurrentMode = f, Y.ContextConsumer = a, Y.ContextProvider = i, Y.Element = t, Y.ForwardRef = d, Y.Fragment = r, Y.Lazy = g, Y.Memo = p, Y.Portal = n, Y.Profiler = s, Y.StrictMode = o, Y.Suspense = h, Y.isAsyncMode = function(b) {
return S(b) || N(b) === l;
}, Y.isConcurrentMode = S, Y.isContextConsumer = function(b) {
return N(b) === a;
}, Y.isContextProvider = function(b) {
return N(b) === i;
}, Y.isElement = function(b) {
return typeof b == "object" && b !== null && b.$$typeof === t;
}, Y.isForwardRef = function(b) {
return N(b) === d;
}, Y.isFragment = function(b) {
return N(b) === r;
}, Y.isLazy = function(b) {
return N(b) === g;
}, Y.isMemo = function(b) {
return N(b) === p;
}, Y.isPortal = function(b) {
return N(b) === n;
}, Y.isProfiler = function(b) {
return N(b) === s;
}, Y.isStrictMode = function(b) {
return N(b) === o;
}, Y.isSuspense = function(b) {
return N(b) === h;
}, Y.isValidElementType = function(b) {
return typeof b == "string" || typeof b == "function" || b === r || b === f || b === s || b === o || b === h || b === m || typeof b == "object" && b !== null && (b.$$typeof === g || b.$$typeof === p || b.$$typeof === i || b.$$typeof === a || b.$$typeof === d || b.$$typeof === _ || b.$$typeof === E || b.$$typeof === C || b.$$typeof === u);
}, Y.typeOf = N, Y;
}
var q = {};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Mn;
function Mo() {
return Mn || (Mn = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, u = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
function N(O) {
return typeof O == "string" || typeof O == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
O === r || O === f || O === s || O === o || O === h || O === m || typeof O == "object" && O !== null && (O.$$typeof === g || O.$$typeof === p || O.$$typeof === i || O.$$typeof === a || O.$$typeof === d || O.$$typeof === _ || O.$$typeof === E || O.$$typeof === C || O.$$typeof === u);
}
function S(O) {
if (typeof O == "object" && O !== null) {
var ye = O.$$typeof;
switch (ye) {
case t:
var ht = O.type;
switch (ht) {
case l:
case f:
case r:
case s:
case o:
case h:
return ht;
default:
var In = ht && ht.$$typeof;
switch (In) {
case a:
case d:
case g:
case p:
case i:
return In;
default:
return ye;
}
}
case n:
return ye;
}
}
}
var b = l, A = f, k = a, $ = i, ee = t, j = d, B = r, c = g, P = p, T = n, I = s, M = o, se = h, ce = !1;
function Ve(O) {
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.")), v(O) || S(O) === l;
}
function v(O) {
return S(O) === f;
}
function x(O) {
return S(O) === a;
}
function F(O) {
return S(O) === i;
}
function W(O) {
return typeof O == "object" && O !== null && O.$$typeof === t;
}
function R(O) {
return S(O) === d;
}
function U(O) {
return S(O) === r;
}
function L(O) {
return S(O) === g;
}
function V(O) {
return S(O) === p;
}
function z(O) {
return S(O) === n;
}
function G(O) {
return S(O) === s;
}
function K(O) {
return S(O) === o;
}
function le(O) {
return S(O) === h;
}
q.AsyncMode = b, q.ConcurrentMode = A, q.ContextConsumer = k, q.ContextProvider = $, q.Element = ee, q.ForwardRef = j, q.Fragment = B, q.Lazy = c, q.Memo = P, q.Portal = T, q.Profiler = I, q.StrictMode = M, q.Suspense = se, q.isAsyncMode = Ve, q.isConcurrentMode = v, q.isContextConsumer = x, q.isContextProvider = F, q.isElement = W, q.isForwardRef = R, q.isFragment = U, q.isLazy = L, q.isMemo = V, q.isPortal = z, q.isProfiler = G, q.isStrictMode = K, q.isSuspense = le, q.isValidElementType = N, q.typeOf = S;
}()), q;
}
var Ln;
function Ir() {
return Ln || (Ln = 1, process.env.NODE_ENV === "production" ? gt.exports = Do() : gt.exports = Mo()), gt.exports;
}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var qt, Bn;
function Lo() {
if (Bn) return qt;
Bn = 1;
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
function r(s) {
if (s == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(s);
}
function o() {
try {
if (!Object.assign)
return !1;
var s = new String("abc");
if (s[5] = "de", Object.getOwnPropertyNames(s)[0] === "5")
return !1;
for (var i = {}, a = 0; a < 10; a++)
i["_" + String.fromCharCode(a)] = a;
var l = Object.getOwnPropertyNames(i).map(function(d) {
return i[d];
});
if (l.join("") !== "0123456789")
return !1;
var f = {};
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
f[d] = d;
}), Object.keys(Object.assign({}, f)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return qt = o() ? Object.assign : function(s, i) {
for (var a, l = r(s), f, d = 1; d < arguments.length; d++) {
a = Object(arguments[d]);
for (var h in a)
t.call(a, h) && (l[h] = a[h]);
if (e) {
f = e(a);
for (var m = 0; m < f.length; m++)
n.call(a, f[m]) && (l[f[m]] = a[f[m]]);
}
}
return l;
}, qt;
}
var Gt, Wn;
function bn() {
if (Wn) return Gt;
Wn = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return Gt = e, Gt;
}
var Jt, Vn;
function Rr() {
return Vn || (Vn = 1, Jt = Function.call.bind(Object.prototype.hasOwnProperty)), Jt;
}
var Xt, Fn;
function Bo() {
if (Fn) return Xt;
Fn = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "production") {
var t = /* @__PURE__ */ bn(), n = {}, r = /* @__PURE__ */ Rr();
e = function(s) {
var i = "Warning: " + s;
typeof console < "u" && console.error(i);
try {
throw new Error(i);
} catch {
}
};
}
function o(s, i, a, l, f) {
if (process.env.NODE_ENV !== "production") {
for (var d in s)
if (r(s, d)) {
var h;
try {
if (typeof s[d] != "function") {
var m = Error(
(l || "React class") + ": " + a + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
);
throw m.name = "Invariant Violation", m;
}
h = s[d](i, d, l, a, null, t);
} catch (g) {
h = g;
}
if (h && !(h instanceof Error) && e(
(l || "React class") + ": type specification of " + a + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
), h instanceof Error && !(h.message in n)) {
n[h.message] = !0;
var p = f ? f() : "";
e(
"Failed " + a + " type: " + h.message + (p ?? "")
);
}
}
}
}
return o.resetWarningCache = function() {
process.env.NODE_ENV !== "production" && (n = {});
}, Xt = o, Xt;
}
var Qt, jn;
function Wo() {
if (jn) return Qt;
jn = 1;
var e = Ir(), t = Lo(), n = /* @__PURE__ */ bn(), r = /* @__PURE__ */ Rr(), o = /* @__PURE__ */ Bo(), s = function() {
};
process.env.NODE_ENV !== "production" && (s = function(a) {
var l = "Warning: " + a;
typeof console < "u" && console.error(l);
try {
throw new Error(l);
} catch {
}
});
function i() {
return null;
}
return Qt = function(a, l) {
var f = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
function h(v) {
var x = v && (f && v[f] || v[d]);
if (typeof x == "function")
return x;
}
var m = "<<anonymous>>", p = {
array: E("array"),
bigint: E("bigint"),
bool: E("boolean"),
func: E("function"),
number: E("number"),
object: E("object"),
string: E("string"),
symbol: E("symbol"),
any: C(),
arrayOf: N,
element: S(),
elementType: b(),
instanceOf: A,
node: j(),
objectOf: $,
oneOf: k,
oneOfType: ee,
shape: c,
exact: P
};
function g(v, x) {
return v === x ? v !== 0 || 1 / v === 1 / x : v !== v && x !== x;
}
function u(v, x) {
this.message = v, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
}
u.prototype = Error.prototype;
function _(v) {
if (process.env.NODE_ENV !== "production")
var x = {}, F = 0;
function W(U, L, V, z, G, K, le) {
if (z = z || m, K = K || V, le !== n) {
if (l) {
var O = 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 O.name = "Invariant Violation", O;
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
var ye = z + ":" + V;
!x[ye] && // Avoid spamming the console because they are often not actionable except for lib authors
F < 3 && (s(
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + z + "`. 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."
), x[ye] = !0, F++);
}
}
return L[V] == null ? U ? L[V] === null ? new u("The " + G + " `" + K + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new u("The " + G + " `" + K + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : v(L, V, z, G, K);
}
var R = W.bind(null, !1);
return R.isRequired = W.bind(null, !0), R;
}
function E(v) {
function x(F, W, R, U, L, V) {
var z = F[W], G = M(z);
if (G !== v) {
var K = se(z);
return new u(
"Invalid " + U + " `" + L + "` of type " + ("`" + K + "` supplied to `" + R + "`, expected ") + ("`" + v + "`."),
{ expectedType: v }
);
}
return null;
}
return _(x);
}
function C() {
return _(i);
}
function N(v) {
function x(F, W, R, U, L) {
if (typeof v != "function")
return new u("Property `" + L + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
var V = F[W];
if (!Array.isArray(V)) {
var z = M(V);
return new u("Invalid " + U + " `" + L + "` of type " + ("`" + z + "` supplied to `" + R + "`, expected an array."));
}
for (var G = 0; G < V.length; G++) {
var K = v(V, G, R, U, L + "[" + G + "]", n);
if (K instanceof Error)
return K;
}
return null;
}
return _(x);
}
function S() {
function v(x, F, W, R, U) {
var L = x[F];
if (!a(L)) {
var V = M(L);
return new u("Invalid " + R + " `" + U + "` of type " + ("`" + V + "` supplied to `" + W + "`, expected a single ReactElement."));
}
return null;
}
return _(v);
}
function b() {
function v(x, F, W, R, U) {
var L = x[F];
if (!e.isValidElementType(L)) {
var V = M(L);
return new u("Invalid " + R + " `" + U + "` of type " + ("`" + V + "` supplied to `" + W + "`, expected a single ReactElement type."));
}
return null;
}
return _(v);
}
function A(v) {
function x(F, W, R, U, L) {
if (!(F[W] instanceof v)) {
var V = v.name || m, z = Ve(F[W]);
return new u("Invalid " + U + " `" + L + "` of type " + ("`" + z + "` supplied to `" + R + "`, expected ") + ("instance of `" + V + "`."));
}
return null;
}
return _(x);
}
function k(v) {
if (!Array.isArray(v))
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
"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])."
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
function x(F, W, R, U, L) {
for (var V = F[W], z = 0; z < v.length; z++)
if (g(V, v[z]))
return null;
var G = JSON.stringify(v, function(le, O) {
var ye = se(O);
return ye === "symbol" ? String(O) : O;
});
return new u("Invalid " + U + " `" + L + "` of value `" + String(V) + "` " + ("supplied to `" + R + "`, expected one of " + G + "."));
}
return _(x);
}
function $(v) {
function x(F, W, R, U, L) {
if (typeof v != "function")
return new u("Property `" + L + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
var V = F[W], z = M(V);
if (z !== "object")
return new u("Invalid " + U + " `" + L + "` of type " + ("`" + z + "` supplied to `" + R + "`, expected an object."));
for (var G in V)
if (r(V, G)) {
var K = v(V, G, R, U, L + "." + G, n);
if (K instanceof Error)
return K;
}
return null;
}
return _(x);
}
function ee(v) {
if (!Array.isArray(v))
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), i;
for (var x = 0; x < v.length; x++) {
var F = v[x];
if (typeof F != "function")
return s(
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ce(F) + " at index " + x + "."
), i;
}
function W(R, U, L, V, z) {
for (var G = [], K = 0; K < v.length; K++) {
var le = v[K], O = le(R, U, L, V, z, n);
if (O == null)
return null;
O.data && r(O.data, "expectedType") && G.push(O.data.expectedType);
}
var ye = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : "";
return new u("Invalid " + V + " `" + z + "` supplied to " + ("`" + L + "`" + ye + "."));
}
return _(W);
}
function j() {
function v(x, F, W, R, U) {
return T(x[F]) ? null : new u("Invalid " + R + " `" + U + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
}
return _(v);
}
function B(v, x, F, W, R) {
return new u(
(v || "React class") + ": " + x + " type `" + F + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
);
}
function c(v) {
function x(F, W, R, U, L) {
var V = F[W], z = M(V);
if (z !== "object")
return new u("Invalid " + U + " `" + L + "` of type `" + z + "` " + ("supplied to `" + R + "`, expected `object`."));
for (var G in v) {
var K = v[G];
if (typeof K != "function")
return B(R, U, L, G, se(K));
var le = K(V, G, R, U, L + "." + G, n);
if (le)
return le;
}
return null;
}
return _(x);
}
function P(v) {
function x(F, W, R, U, L) {
var V = F[W], z = M(V);
if (z !== "object")
return new u("Invalid " + U + " `" + L + "` of type `" + z + "` " + ("supplied to `" + R + "`, expected `object`."));
var G = t({}, F[W], v);
for (var K in G) {
var le = v[K];
if (r(v, K) && typeof le != "function")
return B(R, U, L, K, se(le));
if (!le)
return new u(
"Invalid " + U + " `" + L + "` key `" + K + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(F[W], null, " ") + `
Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
);
var O = le(V, K, R, U, L + "." + K, n);
if (O)
return O;
}
return null;
}
return _(x);
}
function T(v) {
switch (typeof v) {
case "number":
case "string":
case "undefined":
return !0;
case "boolean":
return !v;
case "object":
if (Array.isArray(v))
return v.every(T);
if (v === null || a(v))
return !0;
var x = h(v);
if (x) {
var F = x.call(v), W;
if (x !== v.entries) {
for (; !(W = F.next()).done; )
if (!T(W.value))
return !1;
} else
for (; !(W = F.next()).done; ) {
var R = W.value;
if (R && !T(R[1]))
return !1;
}
} else
return !1;
return !0;
default:
return !1;
}
}
function I(v, x) {
return v === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
}
function M(v) {
var x = typeof v;
return Array.isArray(v) ? "array" : v instanceof RegExp ? "object" : I(x, v) ? "symbol" : x;
}
function se(v) {
if (typeof v > "u" || v === null)
return "" + v;
var x = M(v);
if (x === "object") {
if (v instanceof Date)
return "date";
if (v instanceof RegExp)
return "regexp";
}
return x;
}
function ce(v) {
var x = se(v);
switch (x) {
case "array":
case "object":
return "an " + x;
case "boolean":
case "date":
case "regexp":
return "a " + x;
default:
return x;
}
}
function Ve(v) {
return !v.constructor || !v.constructor.name ? m : v.constructor.name;
}
return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
}, Qt;
}
var Zt, Un;
function Vo() {
if (Un) return Zt;
Un = 1;
var e = /* @__PURE__ */ bn();
function t() {
}
function n() {
}
return n.resetWarningCache = t, Zt = function() {
function r(i, a, l, f, d, h) {
if (h !== e) {
var m = 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 m.name = "Invariant Violation", m;
}
}
r.isRequired = r;
function o() {
return r;
}
var s = {
array: r,
bigint: r,
bool: r,
func: r,
number: r,
object: r,
string: r,
symbol: r,
any: r,
arrayOf: o,
element: r,
elementType: r,
instanceOf: o,
node: r,
objectOf: o,
oneOf: o,
oneOfType: o,
shape: o,
exact: o,
checkPropTypes: n,
resetWarningCache: t
};
return s.PropTypes = s, s;
}, Zt;
}
var zn;
function Fo() {
if (zn) return mt.exports;
if (zn = 1, process.env.NODE_ENV !== "production") {
var e = Ir(), t = !0;
mt.exports = /* @__PURE__ */ Wo()(e.isElement, t);
} else
mt.exports = /* @__PURE__ */ Vo()();
return mt.exports;
}
var jo = /* @__PURE__ */ Fo();
const H = /* @__PURE__ */ Ro(jo);
function Dr(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") if (Array.isArray(e)) {
var o = e.length;
for (t = 0; t < o; t++) e[t] && (n = Dr(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
return r;
}
function Mr() {
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Dr(e)) && (r && (r += " "), r += t);
return r;
}
function Uo(e, t, n = void 0) {
const r = {};
for (const o in e) {
const s = e[o];
let i = "", a = !0;
for (let l = 0; l < s.length; l += 1) {
const f = s[l];
f && (i += (a === !0 ? "" : " ") + t(f), a = !1, n && n[f] && (i += " " + n[f]));
}
r[o] = i;
}
return r;
}
var pt = { exports: {} }, Q = {};
/**
* @license React
* react-is.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Kn;
function zo() {
if (Kn) return Q;
Kn = 1;
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), i = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), m = Symbol.for("react.view_transition"), p = Symbol.for("react.client.reference");
function g(u) {
if (typeof u == "object" && u !== null) {
var _ = u.$$typeof;
switch (_) {
case e:
switch (u = u.type, u) {
case n:
case o:
case r:
case l:
case f:
case m:
return u;
default:
switch (u = u && u.$$typeof, u) {
case i:
case a:
case h:
case d:
return u;
case s:
return u;
default:
return _;
}
}
case t:
return _;
}
}
}
return Q.ContextConsumer = s, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = a, Q.Fragment = n, Q.Lazy = h, Q.Memo = d, Q.Portal = t, Q.Profiler = o, Q.StrictMode = r, Q.Suspense = l, Q.SuspenseList = f, Q.isContextConsumer = function(u) {
return g(u) === s;
}, Q.isContextProvider = function(u) {
return g(u) === i;
}, Q.isElement = function(u) {
return typeof u == "object" && u !== null && u.$$typeof === e;
}, Q.isForwardRef = function(u) {
return g(u) === a;
}, Q.isFragment = function(u) {
return g(u) === n;
}, Q.isLazy = function(u) {
return g(u) === h;
}, Q.isMemo = function(u) {
return g(u) === d;
}, Q.isPortal = function(u) {
return g(u) === t;
}, Q.isProfiler = function(u) {
return g(u) === o;
}, Q.isStrictMode = function(u) {
return g(u) === r;
}, Q.isSuspense = function(u) {
return g(u) === l;
}, Q.isSuspenseList = function(u) {
return g(u) === f;
}, Q.isValidElementType = function(u) {
return typeof u == "string" || typeof u == "function" || u === n || u === o || u === r || u === l || u === f || typeof u == "object" && u !== null && (u.$$typeof === h || u.$$typeof === d || u.$$typeof === i || u.$$typeof === s || u.$$typeof === a || u.$$typeof === p || u.getModuleId !== void 0);
}, Q.typeOf = g, Q;
}
var Z = {};
/**
* @license React
* react-is.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Hn;
function Ko() {
return Hn || (Hn = 1, process.env.NODE_ENV !== "production" && function() {
function e(u) {
if (typeof u == "object" && u !== null) {
var _ = u.$$typeof;
switch (_) {
case t:
switch (u = u.type, u) {
case r:
case s:
case o:
case f:
case d:
case p:
return u;
default:
switch (u = u && u.$$typeof, u) {
case a:
case l:
case m:
case h:
return u;
case i:
return u;
default:
return _;
}
}
case n:
return _;
}
}
}
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition"), g = Symbol.for("react.client.reference");
Z.ContextConsumer = i, Z.ContextProvider = a, Z.Element = t, Z.ForwardRef = l, Z.Fragment = r, Z.Lazy = m, Z.Memo = h, Z.Portal = n, Z.Profiler = s, Z.StrictMode = o, Z.Suspense = f, Z.SuspenseList = d, Z.isContextConsumer = function(u) {
return e(u) === i;
}, Z.isContextProvider = function(u) {
return e(u) === a;
}, Z.isElement = function(u) {
return typeof u == "object" && u !== null && u.$$typeof === t;
}, Z.isForwardRef = function(u) {
return e(u) === l;
}, Z.isFragment = function(u) {
return e(u) === r;
}, Z.isLazy = function(u) {
return e(u) === m;
}, Z.isMemo = function(u) {
return e(u) === h;
}, Z.isPortal = function(u) {
return e(u) === n;
}, Z.isProfiler = function(u) {
return e(u) === s;
}, Z.isStrictMode = function(u) {
return e(u) === o;
}, Z.isSuspense = function(u) {
return e(u) === f;
}, Z.isSuspenseList = function(u) {
return e(u) === d;
}, Z.isValidElementType = function(u) {
return typeof u == "string" || typeof u == "function" || u === r || u === s || u === o || u === f || u === d || typeof u == "object" && u !== null && (u.$$typeof === m || u.$$typeof === h || u.$$typeof === a || u.$$typeof === i || u.$$typeof === l || u.$$typeof === g || u.getModuleId !== void 0);
}, Z.typeOf = e;
}()), Z;
}
var Yn;
function Ho() {
return Yn || (Yn = 1, process.env.NODE_ENV === "production" ? pt.exports = /* @__PURE__ */ zo() : pt.exports = /* @__PURE__ */ Ko()), pt.exports;
}
var At = /* @__PURE__ */ Ho();
function ke(e) {
if (typeof e != "object" || e === null)
return !1;
const t = Object.getPrototypeOf(e);
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
}
function Lr(e) {
if (/* @__PURE__ */ we.isValidElement(e) || At.isValidElementType(e) || !ke(e))
return e;
const t = {};
return Object.keys(e).forEach((n) => {
t[n] = Lr(e[n]);
}), t;
}
function fe(e, t, n = {
clone: !0
}) {
const r = n.clone ? {
...e
} : e;
return ke(e) && ke(t) && Object.keys(t).forEach((o) => {
/* @__PURE__ */ we.isValidElement(t[o]) || At.isValidElementType(t[o]) ? r[o] = t[o] : ke(t[o]) && // Avoid prototype pollution
Object.prototype.hasOwnProperty.call(e, o) && ke(e[o]) ? r[o] = fe(e[o], t[o], n) : n.clone ? r[o] = ke(t[o]) ? Lr(t[o]) : t[o] : r[o] = t[o];
}), r;
}
function ot(e, t) {
return t ? fe(e, t, {
clone: !1
// No need to clone deep, it's way faster.
}) : e;
}
const Re = process.env.NODE_ENV !== "production" ? H.oneOfType([H.number, H.string, H.object, H.array]) : {};
function qn(e, t) {
if (!e.containerQueries)
return t;
const n = Object.keys(t).filter((r) => r.startsWith("@container")).sort((r, o) => {
var i, a;
const s = /min-width:\s*([0-9.]+)/;
return +(((i = r.match(s)) == null ? void 0 : i[1]) || 0) - +(((a = o.match(s)) == null ? void 0 : a[1]) || 0);
});
return n.length ? n.reduce((r, o) => {
const s = t[o];
return delete r[o], r[o] = s, r;
}, {
...t
}) : t;
}
function Yo(e, t) {
return t === "@" || t.startsWith("@") && (e.some((n) => t.startsWith(`@${n}`)) || !!t.match(/^@\d/));
}
function qo(e, t) {
const n = t.match(/^@([^/]+)?\/?(.+)?$/);
if (!n) {
if (process.env.NODE_ENV !== "production")
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : Ne(18, `(${t})`));
return null;
}
const [, r, o] = n, s = Number.isNaN(+r) ? r || 0 : +r;
return e.containerQueries(o).up(s);
}
function Go(e) {
const t = (s, i) => s.replace("@media", i ? `@container ${i}` : "@container");
function n(s, i) {
s.up = (...a) => t(e.breakpoints.up(...a), i), s.down = (...a) => t(e.breakpoints.down(...a), i), s.between = (...a) => t(e.breakpoints.between(...a), i), s.only = (...a) => t(e.breakpoints.only(...a), i), s.not = (...a) => {
const l = t(e.breakpoints.not(...a), i);
return l.includes("not all and") ? l.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : l;
};
}
const r = {}, o = (s) => (n(r, s), r);
return n(o), {
...e,
containerQueries: o
};
}
const Dt = {
xs: 0,
// phone
sm: 600,
// tablet
md: 900,
// small laptop
lg: 1200,
// desktop
xl: 1536
// large screen
}, Gn = {
// Sorted ASC by size. That's important.
// It can't be configured as it's used statically for propTypes.
keys: ["xs", "sm", "md", "lg", "xl"],
up: (e) => `@media (min-width:${Dt[e]}px)`
}, Jo = {
containerQueries: (e) => ({
up: (t) => {
let n = typeof t == "number" ? t : Dt[t] || t;
return typeof n == "number" && (n = `${n}px`), e ? `@container ${e} (min-width:${n})` : `@container (min-width:${n})`;
}
})
};
function Ce(e, t, n) {
const r = e.theme || {};
if (Array.isArray(t)) {
const s = r.breakpoints || Gn;
return t.reduce((i, a, l) => (i[s.up(s.keys[l])] = n(t[l]), i), {});
}
if (typeof t == "object") {
const s = r.breakpoints || Gn;
return Object.keys(t).reduce((i, a) => {
if (Yo(s.keys, a)) {
const l = qo(r.containerQueries ? r : Jo, a);
l && (i[l] = n(t[a], a));
} else if (Object.keys(s.values || Dt).includes(a)) {
const l = s.up(a);
i[l] = n(t[a], a);
} else {
const l = a;
i[l] = t[l];
}
return i;
}, {});
}
return n(t);
}
function Xo(e = {}) {
var n;
return ((n = e.keys) == null ? void 0 : n.reduce((r, o) => {
const s = e.up(o);
return r[s] = {}, r;
}, {})) || {};
}
function Jn(e, t) {
return e.reduce((n, r) => {
const o = n[r];
return (!o || Object.keys(o).length === 0) && delete n[r], n;
}, t);
}
function Mt(e, t, n = !0) {
if (!t || typeof t != "string")
return null;
if (e && e.vars && n) {
const r = `vars.${t}`.split(".").reduce((o, s) => o && o[s] ? o[s] : null, e);
if (r != null)
return r;
}
return t.split(".").reduce((r, o) => r && r[o] != null ? r[o] : null, e);
}
function Ct(e, t, n, r = n) {
let o;
return typeof e == "function" ? o = e(n) : Array.isArray(e) ? o = e[n] || r : o = Mt(e, n) || r, t && (o = t(o, r, e)), o;
}
function oe(e) {
const {
prop: t,
cssProperty: n = e.prop,
themeKey: r,
transform: o
} = e, s = (i) => {
if (i[t] == null)
return null;
const a = i[t], l = i.theme, f = Mt(l, r) || {};
return Ce(i, a, (h) => {
let m = Ct(f, o, h);
return h === m && typeof h == "string" && (m = Ct(f, o, `${t}${h === "default" ? "" : We(h)}`, h)), n === !1 ? m : {
[n]: m
};
});
};
return s.propTypes = process.env.NODE_ENV !== "production" ? {
[t]: Re
} : {}, s.filterProps = [t], s;
}
function Qo(e) {
const t = {};
return (n) => (t[n] === void 0 && (t[n] = e(n)), t[n]);
}
const Zo = {
m: "margin",
p: "padding"
}, es = {
t: "Top",
r: "Right",
b: "Bottom",
l: "Left",
x: ["Left", "Right"],
y: ["Top", "Bottom"]
}, Xn = {
marginX: "mx",
marginY: "my",
paddingX: "px",
paddingY: "py"
}, ts = Qo((e) => {
if (e.length > 2)
if (Xn[e])
e = Xn[e];
else
return [e];
const [t, n] = e.split(""), r = Zo[t], o = es[n] || "";
return Array.isArray(o) ? o.map((s) => r + s) : [r + o];
}), Lt = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Bt = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], ns = [...Lt, ...Bt];
function ut(e, t, n, r) {
const o = Mt(e, t, !0) ?? n;
return typeof o == "number" || typeof o == "string" ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && typeof s != "number" && console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`), typeof o == "string" ? o.startsWith("var(") && s === 0 ? 0 : o.startsWith("var(") && s === 1 ? o : `calc(${s} * ${o})` : o * s) : Array.isArray(o) ? (s) => {
if (typeof s == "string")
return s;
const i = Math.abs(s);
process.env.NODE_ENV !== "production" && (Number.isInteger(i) ? i > o.length - 1 && console.error([`MUI: The value provided (${i}) overflows.`, `The supported values are: ${JSON.stringify(o)}.`, `${i} > ${o.length - 1}, you need to add the missing values.`].join(`
`)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
`)));
const a = o[i];
return s >= 0 ? a : typeof a == "number" ? -a : typeof a == "string" && a.startsWith("var(") ? `calc(-1 * ${a})` : `-${a}`;
} : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(`
`)), () => {
});
}
function vn(e) {
return ut(e, "spacing", 8, "spacing");
}
function ft(e, t) {
return typeof t == "string" || t == null ? t : e(t);
}
function rs(e, t) {
return (n) => e.reduce((r, o) => (r[o] = ft(t, n), r), {});
}
function os(e, t, n, r) {
if (!t.includes(n))
return null;
const o = ts(n), s = rs(o, r), i = e[n];
return Ce(e, i, s);
}
function Br(e, t) {
const n = vn(e.theme);
return Object.keys(e).map((r) => os(e, t, r, n)).reduce(ot, {});
}
function ne(e) {
return Br(e, Lt);
}
ne.propTypes = process.env.NODE_ENV !== "production" ? Lt.reduce((e, t) => (e[t] = Re, e), {}) : {};
ne.filterProps = Lt;
function re(e) {
return Br(e, Bt);
}
re.propTypes = process.env.NODE_ENV !== "production" ? Bt.reduce((e, t) => (e[t] = Re, e), {}) : {};
re.filterProps = Bt;
process.env.NODE_ENV !== "production" && ns.reduce((e, t) => (e[t] = Re, e), {});
function Wt(...e) {
const t = e.reduce((r, o) => (o.filterProps.forEach((s) => {
r[s] = o;
}), r), {}), n = (r) => Object.keys(r).reduce((o, s) => t[s] ? ot(o, t[s](r)) : o, {});
return n.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((r, o) => Object.assign(r, o.propTypes), {}) : {}, n.filterProps = e.reduce((r, o) => r.concat(o.filterProps), []), n;
}
function he(e) {
return typeof e != "number" ? e : `${e}px solid`;
}
function pe(e, t) {
return oe({
prop: e,
themeKey: "borders",
transform: t
});
}
const ss = pe("border", he), is = pe("borderTop", he), as = pe("borderRight", he), cs = pe("borderBottom", he), ls = pe("borderLeft", he), us = pe("borderColor"), fs = pe("borderTopColor"), ds = pe("borderRightColor"), hs = pe("borderBottomColor"), ms = pe("borderLeftColor"), gs = pe("outline", he), ps = pe("outlineColor"), Vt = (e) => {
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
const t = ut(e.theme, "shape.borderRadius", 4, "borderRadius"), n = (r) => ({
borderRadius: ft(t, r)
});
return Ce(e, e.borderRadius, n);
}
return null;
};
Vt.propTypes = process.env.NODE_ENV !== "production" ? {
borderRadius: Re
} : {};
Vt.filterProps = ["borderRadius"];
Wt(ss, is, as, cs, ls, us, fs, ds, hs, ms, Vt, gs, ps);
const Ft = (e) => {
if (e.gap !== void 0 && e.gap !== null) {
const t = ut(e.theme, "spacing", 8, "gap"), n = (r) => ({
gap: ft(t, r)
});
return Ce(e, e.gap, n);
}
return null;
};
Ft.propTypes = process.env.NODE_ENV !== "production" ? {
gap: Re
} : {};
Ft.filterProps = ["gap"];
const jt = (e) => {
if (e.columnGap !== void 0 && e.columnGap !== null) {
const t = ut(e.theme, "spacing", 8, "columnGap"), n = (r) => ({
columnGap: ft(t, r)
});
return Ce(e, e.columnGap, n);
}
return null;
};
jt.propTypes = process.env.NODE_ENV !== "production" ? {
columnGap: Re
} : {};
jt.filterProps = ["columnGap"];
const Ut = (e) => {
if (e.rowGap !== void 0 && e.rowGap !== null) {
const t = ut(e.theme, "spacing", 8, "rowGap"), n = (r) => ({
rowGap: ft(t, r)
});
return Ce(e, e.rowGap, n);
}
return null;
};
Ut.propTypes = process.env.NODE_ENV !== "production" ? {
rowGap: Re
} : {};
Ut.filterProps = ["rowGap"];
const ys = oe({
prop: "gridColumn"
}), _s = oe({
prop: "gridRow"
}), bs = oe({
prop: "gridAutoFlow"
}), vs = oe({
prop: "gridAutoColumns"
}), ws = oe({
prop: "gridAutoRows"
}), Ss = oe({
prop: "gridTemplateColumns"
}), ks = oe({
prop: "gridTemplateRows"
}), Ts = oe({
prop: "gridTemplateAreas"
}), Es = oe({
prop: "gridArea"
});
Wt(Ft, jt, Ut, ys, _s, bs, vs, ws, Ss, ks, Ts, Es);
function Xe(e, t) {
return t === "grey" ? t : e;
}
const As = oe({
prop: "color",
themeKey: "palette",
transform: Xe
}), Cs = oe({
prop: "bgcolor",
cssProperty: "backgroundColor",
themeKey: "palette",
transform: Xe
}), Os = oe({
prop: "backgroundColor",
themeKey: "palette",
transform: Xe
});
Wt(As, Cs, Os);
function ue(e) {
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
}
const Ps = oe({
prop: "width",
transform: ue
}), wn = (e) => {
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
const t = (n) => {
var o, s, i, a, l;
const r = ((i = (s = (o = e.theme) == null ? void 0 : o.breakpoints) == null ? void 0 : s.values) == null ? void 0 : i[n]) || Dt[n];
return r ? ((l = (a = e.theme) == null ? void 0 : a.breakpoints) == null ? void 0 : l.unit) !== "px" ? {
maxWidth: `${r}${e.theme.breakpoints.unit}`
} : {
maxWidth: r
} : {
maxWidth: ue(n)
};
};
return Ce(e, e.maxWidth, t);
}
return null;
};
wn.filterProps = ["maxWidth"];
const xs = oe({
prop: "minWidth",
transform: ue
}), Ns = oe({
prop: "height",
transform: ue
}), $s = oe({
prop: "maxHeight",
transform: ue
}), Is = oe({
prop: "minHeight",
transform: ue
});
oe({
prop: "size",
cssProperty: "width",
transform: ue
});
oe({
prop: "size",
cssProperty: "height",
transform: ue
});
const Rs = oe({
prop: "boxSizing"
});
Wt(Ps, wn, xs, Ns, $s, Is, Rs);
const zt = {
// borders
border: {
themeKey: "borders",
transform: he
},
borderTop: {
themeKey: "borders",
transform: he
},
borderRight: {
themeKey: "borders",
transform: he
},
borderBottom: {
themeKey: "borders",
transform: he
},
borderLeft: {
themeKey: "borders",
transform: he
},
borderColor: {
themeKey: "palette"
},
borderTopColor: {
themeKey: "palette"
},
borderRightColor: {
themeKey: "palette"
},
borderBottomColor: {
themeKey: "palette"
},
borderLeftColor: {
themeKey: "palette"
},
outline: {
themeKey: "borders",
transform: he
},
outlineColor: {
themeKey: "palette"
},
borderRadius: {
themeKey: "shape.borderRadius",
style: Vt
},
// palette
color: {
themeKey: "palette",
transform: Xe
},
bgcolor: {
themeKey: "palette",
cssProperty: "backgroundColor",
transform: Xe
},
backgroundColor: {
themeKey: "palette",
transform: Xe
},
// spacing
p: {
style: re
},
pt: {
style: re
},
pr: {
style: re
},
pb: {
style: re
},
pl: {
style: re
},
px: {
style: re
},
py: {
style: re
},
padding: {
style: re
},
paddingTop: {
style: re
},
paddingRight: {
style: re
},
paddingBottom: {
style: re
},
paddingLeft: {
style: re
},
paddingX: {
style: re
},
paddingY: {
style: re
},
paddingInline: {
style: re
},
paddingInlineStart: {
style: re
},
paddingInlineEnd: {
style: re
},
paddingBlock: {
style: re
},
paddingBlockStart: {
style: re
},
paddingBlockEnd: {
style: re
},
m: {
style: ne
},
mt: {
style: ne
},
mr: {
style: ne
},
mb: {
style: ne
},
ml: {
style: ne
},
mx: {
style: ne
},
my: {
style: ne
},
margin: {
style: ne
},
marginTop: {
style: ne
},
marginRight: {
style: ne
},
marginBottom: {
style: ne
},
marginLeft: {
style: ne
},
marginX: {
style: ne
},
marginY: {
style: ne
},
marginInline: {
style: ne
},
marginInlineStart: {
style: ne
},
marginInlineEnd: {
style: ne
},
marginBlock: {
style: ne
},
marginBlockStart: {
style: ne
},
marginBlockEnd: {
style: ne
},
// display
displayPrint: {
cssProperty: !1,
transform: (e) => ({
"@media print": {
display: e
}
})
},
display: {},
overflow: {},
textOverflow: {},
visibility: {},
whiteSpace: {},
// flexbox
flexBasis: {},
flexDirection: {},
flexWrap: {},
justifyContent: {},
alignItems: {},
alignContent: {},
order: {},
flex: {},
flexGrow: {},
flexShrink: {},
alignSelf: {},
justifyItems: {},
justifySelf: {},
// grid
gap: {
style: Ft
},
rowGap: {
style: Ut
},
columnGap: {
style: jt
},
gridColumn: {},
gridRow: {},
gridAutoFlow: {},
gridAutoColumns: {},
gridAutoRows: {},
gridTemplateColumns: {},
gridTemplateRows: {},
gridTemplateAreas: {},
gridArea: {},
// positions
position: {},
zIndex: {
themeKey: "zIndex"
},
top: {},
right: {},
bottom: {},
left: {},
// shadows
boxShadow: {
themeKey: "shadows"
},
// sizing
width: {
transform: ue
},
maxWidth: {
style: wn
},
minWidth: {
transform: ue
},
height: {
transform: ue
},
maxHeight: {
transform: ue
},
minHeight: {
transform: ue
},
boxSizing: {},
// typography
font: {
themeKey: "font"
},
fontFamily: {
themeKey: "typography"
},
fontSize: {
themeKey: "typography"
},
fontStyle: {
themeKey: "typography"
},
fontWeight: {
themeKey: "typography"
},
letterSpacing: {},
textTransform: {},
lineHeight: {},
textAlign: {},
typography: {
cssProperty: !1,
themeKey: "typography"
}
};
function Ds(...e) {
const t = e.reduce((r, o) => r.concat(Object.keys(o)), []), n = new Set(t);
return e.every((r) => n.size === Object.keys(r).length);
}
function Ms(e, t) {
return typeof e == "function" ? e(t) : e;
}
function Ls() {
function e(n, r, o, s) {
const i = {
[n]: r,
theme: o
}, a = s[n];
if (!a)
return {
[n]: r
};
const {
cssProperty: l = n,
themeKey: f,
transform: d,
style: h
} = a;
if (r == null)
return null;
if (f === "typography" && r === "inherit")
return {
[n]: r
};
const m = Mt(o, f) || {};
return h ? h(i) : Ce(i, r, (g) => {
let u = Ct(m, d, g);
return g === u && typeof g == "string" && (u = Ct(m, d, `${n}${g === "default" ? "" : We(g)}`, g)), l === !1 ? u : {
[l]: u
};
});
}
function t(n) {
const {
sx: r,
theme: o = {},
nested: s
} = n || {};
if (!r)
return null;
const i = o.unstable_sxConfig ?? zt;
function a(l) {
let f = l;
if (typeof l == "function")
f = l(o);
else if (typeof l != "object")
return l;
if (!f)
return null;
const d =