UNPKG

data-table-material

Version:

A dynamic and customizable table component for React, built with Material UI & TypeScript.

1,364 lines (1,362 loc) 163 kB
import * as me from "react"; import wn, { useState as Jt, useRef as On, useEffect as qr, useCallback as dt, useMemo as _n } from "react"; import { Typography as Kr, TablePagination as Rn, TableCell as xe, IconButton as Xr, Switch as $n, TableRow as mt, Collapse as An, Box as Pn, useTheme as St, TableHead as Jr, Paper as kn, Toolbar as Nn, Stack as jn, Button as lr, Checkbox as In } from "@mui/material"; import Mn from "@emotion/styled"; import "@emotion/react"; function Bn(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var st = { exports: {} }, qe = {}; /** * @license React * react-jsx-runtime.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 ur; function Dn() { if (ur) return qe; ur = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment"); function r(n, o, i) { var s = null; if (i !== void 0 && (s = "" + i), o.key !== void 0 && (s = "" + o.key), "key" in o) { i = {}; for (var c in o) c !== "key" && (i[c] = o[c]); } else i = o; return o = i.ref, { $$typeof: e, type: n, key: s, ref: o !== void 0 ? o : null, props: i }; } return qe.Fragment = t, qe.jsx = r, qe.jsxs = r, qe; } var Ke = {}; /** * @license React * react-jsx-runtime.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 fr; function Vn() { return fr || (fr = 1, process.env.NODE_ENV !== "production" && function() { function e(u) { if (u == null) return null; if (typeof u == "function") return u.$$typeof === he ? null : u.displayName || u.name || null; if (typeof u == "string") return u; switch (u) { case F: return "Fragment"; case v: return "Portal"; case ie: return "Profiler"; case te: return "StrictMode"; case k: return "Suspense"; case V: return "SuspenseList"; } if (typeof u == "object") switch (typeof u.tag == "number" && console.error( "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." ), u.$$typeof) { case a: return (u.displayName || "Context") + ".Provider"; case se: return (u._context.displayName || "Context") + ".Consumer"; case w: var A = u.render; return u = u.displayName, u || (u = A.displayName || A.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u; case W: return A = u.displayName || null, A !== null ? A : e(u.type) || "Memo"; case ee: A = u._payload, u = u._init; try { return e(u(A)); } catch { } } return null; } function t(u) { return "" + u; } function r(u) { try { t(u); var A = !1; } catch { A = !0; } if (A) { A = console; var P = A.error, G = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object"; return P.call( A, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", G ), t(u); } } function n() { } function o() { if (N === 0) { z = console.log, I = console.info, B = console.warn, U = console.error, H = console.group, L = console.groupCollapsed, ue = console.groupEnd; var u = { configurable: !0, enumerable: !0, value: n, writable: !0 }; Object.defineProperties(console, { info: u, log: u, warn: u, error: u, group: u, groupCollapsed: u, groupEnd: u }); } N++; } function i() { if (N--, N === 0) { var u = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: T({}, u, { value: z }), info: T({}, u, { value: I }), warn: T({}, u, { value: B }), error: T({}, u, { value: U }), group: T({}, u, { value: H }), groupCollapsed: T({}, u, { value: L }), groupEnd: T({}, u, { value: ue }) }); } 0 > N && console.error( "disabledDepth fell below zero. This is a bug in React. Please file an issue." ); } function s(u) { if (C === void 0) try { throw Error(); } catch (P) { var A = P.stack.trim().match(/\n( *(at )?)/); C = A && A[1] || "", ge = -1 < P.stack.indexOf(` at`) ? " (<anonymous>)" : -1 < P.stack.indexOf("@") ? "@unknown:0:0" : ""; } return ` ` + C + u + ge; } function c(u, A) { if (!u || $e) return ""; var P = Be.get(u); if (P !== void 0) return P; $e = !0, P = Error.prepareStackTrace, Error.prepareStackTrace = void 0; var G = null; G = Ee.H, Ee.H = null, o(); try { var fe = { DetermineComponentFrameRoot: function() { try { if (A) { var Ae = function() { throw Error(); }; if (Object.defineProperty(Ae.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(Ae, []); } catch (we) { var it = we; } Reflect.construct(u, [], Ae); } else { try { Ae.call(); } catch (we) { it = we; } u.call(Ae.prototype); } } else { try { throw Error(); } catch (we) { it = we; } (Ae = u()) && typeof Ae.catch == "function" && Ae.catch(function() { }); } } catch (we) { if (we && it && typeof we.stack == "string") return [we.stack, it.stack]; } return [null, null]; } }; fe.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot"; var oe = Object.getOwnPropertyDescriptor( fe.DetermineComponentFrameRoot, "name" ); oe && oe.configurable && Object.defineProperty( fe.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" } ); var M = fe.DetermineComponentFrameRoot(), Te = M[0], De = M[1]; if (Te && De) { var pe = Te.split(` `), Ie = De.split(` `); for (M = oe = 0; oe < pe.length && !pe[oe].includes( "DetermineComponentFrameRoot" ); ) oe++; for (; M < Ie.length && !Ie[M].includes( "DetermineComponentFrameRoot" ); ) M++; if (oe === pe.length || M === Ie.length) for (oe = pe.length - 1, M = Ie.length - 1; 1 <= oe && 0 <= M && pe[oe] !== Ie[M]; ) M--; for (; 1 <= oe && 0 <= M; oe--, M--) if (pe[oe] !== Ie[M]) { if (oe !== 1 || M !== 1) do if (oe--, M--, 0 > M || pe[oe] !== Ie[M]) { var Ge = ` ` + pe[oe].replace( " at new ", " at " ); return u.displayName && Ge.includes("<anonymous>") && (Ge = Ge.replace("<anonymous>", u.displayName)), typeof u == "function" && Be.set(u, Ge), Ge; } while (1 <= oe && 0 <= M); break; } } } finally { $e = !1, Ee.H = G, i(), Error.prepareStackTrace = P; } return pe = (pe = u ? u.displayName || u.name : "") ? s(pe) : "", typeof u == "function" && Be.set(u, pe), pe; } function f(u) { if (u == null) return ""; if (typeof u == "function") { var A = u.prototype; return c( u, !(!A || !A.isReactComponent) ); } if (typeof u == "string") return s(u); switch (u) { case k: return s("Suspense"); case V: return s("SuspenseList"); } if (typeof u == "object") switch (u.$$typeof) { case w: return u = c(u.render, !1), u; case W: return f(u.type); case ee: A = u._payload, u = u._init; try { return f(u(A)); } catch { } } return ""; } function p() { var u = Ee.A; return u === null ? null : u.getOwner(); } function m(u) { if (S.call(u, "key")) { var A = Object.getOwnPropertyDescriptor(u, "key").get; if (A && A.isReactWarning) return !1; } return u.key !== void 0; } function d(u, A) { function P() { ir || (ir = !0, console.error( "%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://react.dev/link/special-props)", A )); } P.isReactWarning = !0, Object.defineProperty(u, "key", { get: P, configurable: !0 }); } function h() { var u = e(this.type); return sr[u] || (sr[u] = !0, console.error( "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." )), u = this.props.ref, u !== void 0 ? u : null; } function b(u, A, P, G, fe, oe) { return P = oe.ref, u = { $$typeof: R, type: u, key: A, props: oe, _owner: fe }, (P !== void 0 ? P : null) !== null ? Object.defineProperty(u, "ref", { enumerable: !1, get: h }) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty(u, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u; } function y(u, A, P, G, fe, oe) { if (typeof u == "string" || typeof u == "function" || u === F || u === ie || u === te || u === k || u === V || u === ne || typeof u == "object" && u !== null && (u.$$typeof === ee || u.$$typeof === W || u.$$typeof === a || u.$$typeof === se || u.$$typeof === w || u.$$typeof === D || u.getModuleId !== void 0)) { var M = A.children; if (M !== void 0) if (G) if (j(M)) { for (G = 0; G < M.length; G++) l(M[G], u); Object.freeze && Object.freeze(M); } else console.error( "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." ); else l(M, u); } else M = "", (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), u === null ? G = "null" : j(u) ? G = "array" : u !== void 0 && u.$$typeof === R ? (G = "<" + (e(u.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : G = typeof u, console.error( "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, M ); if (S.call(A, "key")) { M = e(u); var Te = Object.keys(A).filter(function(pe) { return pe !== "key"; }); G = 0 < Te.length ? "{key: someKey, " + Te.join(": ..., ") + ": ...}" : "{key: someKey}", ar[M + G] || (Te = 0 < Te.length ? "{" + Te.join(": ..., ") + ": ...}" : "{}", console.error( `A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, G, M, Te, M ), ar[M + G] = !0); } if (M = null, P !== void 0 && (r(P), M = "" + P), m(A) && (r(A.key), M = "" + A.key), "key" in A) { P = {}; for (var De in A) De !== "key" && (P[De] = A[De]); } else P = A; return M && d( P, typeof u == "function" ? u.displayName || u.name || "Unknown" : u ), b(u, M, oe, fe, p(), P); } function l(u, A) { if (typeof u == "object" && u && u.$$typeof !== Tn) { if (j(u)) for (var P = 0; P < u.length; P++) { var G = u[P]; E(G) && O(G, A); } else if (E(u)) u._store && (u._store.validated = 1); else if (u === null || typeof u != "object" ? P = null : (P = de && u[de] || u["@@iterator"], P = typeof P == "function" ? P : null), typeof P == "function" && P !== u.entries && (P = P.call(u), P !== u)) for (; !(u = P.next()).done; ) E(u.value) && O(u.value, A); } } function E(u) { return typeof u == "object" && u !== null && u.$$typeof === R; } function O(u, A) { if (u._store && !u._store.validated && u.key == null && (u._store.validated = 1, A = Y(A), !cr[A])) { cr[A] = !0; var P = ""; u && u._owner != null && u._owner !== p() && (P = null, typeof u._owner.tag == "number" ? P = e(u._owner.type) : typeof u._owner.name == "string" && (P = u._owner.name), P = " It was passed a child from " + P + "."); var G = Ee.getCurrentStack; Ee.getCurrentStack = function() { var fe = f(u.type); return G && (fe += G() || ""), fe; }, console.error( 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', A, P ), Ee.getCurrentStack = G; } } function Y(u) { var A = "", P = p(); return P && (P = e(P.type)) && (A = ` Check the render method of \`` + P + "`."), A || (u = e(u)) && (A = ` Check the top-level render call using <` + u + ">."), A; } var $ = wn, R = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), F = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), ie = Symbol.for("react.profiler"), se = Symbol.for("react.consumer"), a = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), V = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), ee = Symbol.for("react.lazy"), ne = Symbol.for("react.offscreen"), de = Symbol.iterator, he = Symbol.for("react.client.reference"), Ee = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, S = Object.prototype.hasOwnProperty, T = Object.assign, D = Symbol.for("react.client.reference"), j = Array.isArray, N = 0, z, I, B, U, H, L, ue; n.__reactDisabledLog = !0; var C, ge, $e = !1, Be = new (typeof WeakMap == "function" ? WeakMap : Map)(), Tn = Symbol.for("react.client.reference"), ir, sr = {}, ar = {}, cr = {}; Ke.Fragment = F, Ke.jsx = function(u, A, P, G, fe) { return y(u, A, P, !1, G, fe); }, Ke.jsxs = function(u, A, P, G, fe) { return y(u, A, P, !0, G, fe); }; }()), Ke; } var dr; function Wn() { return dr || (dr = 1, process.env.NODE_ENV === "production" ? st.exports = Dn() : st.exports = Vn()), st.exports; } var _ = Wn(), at = { exports: {} }, ct = { exports: {} }, q = {}; /** @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 pr; function Fn() { if (pr) return q; pr = 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, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119; function $(v) { if (typeof v == "object" && v !== null) { var F = v.$$typeof; switch (F) { case t: switch (v = v.type, v) { case f: case p: case n: case i: case o: case d: return v; default: switch (v = v && v.$$typeof, v) { case c: case m: case y: case b: case s: return v; default: return F; } } case r: return F; } } } function R(v) { return $(v) === p; } return q.AsyncMode = f, q.ConcurrentMode = p, q.ContextConsumer = c, q.ContextProvider = s, q.Element = t, q.ForwardRef = m, q.Fragment = n, q.Lazy = y, q.Memo = b, q.Portal = r, q.Profiler = i, q.StrictMode = o, q.Suspense = d, q.isAsyncMode = function(v) { return R(v) || $(v) === f; }, q.isConcurrentMode = R, q.isContextConsumer = function(v) { return $(v) === c; }, q.isContextProvider = function(v) { return $(v) === s; }, q.isElement = function(v) { return typeof v == "object" && v !== null && v.$$typeof === t; }, q.isForwardRef = function(v) { return $(v) === m; }, q.isFragment = function(v) { return $(v) === n; }, q.isLazy = function(v) { return $(v) === y; }, q.isMemo = function(v) { return $(v) === b; }, q.isPortal = function(v) { return $(v) === r; }, q.isProfiler = function(v) { return $(v) === i; }, q.isStrictMode = function(v) { return $(v) === o; }, q.isSuspense = function(v) { return $(v) === d; }, q.isValidElementType = function(v) { return typeof v == "string" || typeof v == "function" || v === n || v === p || v === i || v === o || v === d || v === h || typeof v == "object" && v !== null && (v.$$typeof === y || v.$$typeof === b || v.$$typeof === s || v.$$typeof === c || v.$$typeof === m || v.$$typeof === E || v.$$typeof === O || v.$$typeof === Y || v.$$typeof === l); }, q.typeOf = $, q; } var K = {}; /** @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 mr; function zn() { return mr || (mr = 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, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, O = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119; function $(C) { return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. C === n || C === p || C === i || C === o || C === d || C === h || typeof C == "object" && C !== null && (C.$$typeof === y || C.$$typeof === b || C.$$typeof === s || C.$$typeof === c || C.$$typeof === m || C.$$typeof === E || C.$$typeof === O || C.$$typeof === Y || C.$$typeof === l); } function R(C) { if (typeof C == "object" && C !== null) { var ge = C.$$typeof; switch (ge) { case t: var $e = C.type; switch ($e) { case f: case p: case n: case i: case o: case d: return $e; default: var Be = $e && $e.$$typeof; switch (Be) { case c: case m: case y: case b: case s: return Be; default: return ge; } } case r: return ge; } } } var v = f, F = p, te = c, ie = s, se = t, a = m, w = n, k = y, V = b, W = r, ee = i, ne = o, de = d, he = !1; function Ee(C) { return he || (he = !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.")), S(C) || R(C) === f; } function S(C) { return R(C) === p; } function T(C) { return R(C) === c; } function D(C) { return R(C) === s; } function j(C) { return typeof C == "object" && C !== null && C.$$typeof === t; } function N(C) { return R(C) === m; } function z(C) { return R(C) === n; } function I(C) { return R(C) === y; } function B(C) { return R(C) === b; } function U(C) { return R(C) === r; } function H(C) { return R(C) === i; } function L(C) { return R(C) === o; } function ue(C) { return R(C) === d; } K.AsyncMode = v, K.ConcurrentMode = F, K.ContextConsumer = te, K.ContextProvider = ie, K.Element = se, K.ForwardRef = a, K.Fragment = w, K.Lazy = k, K.Memo = V, K.Portal = W, K.Profiler = ee, K.StrictMode = ne, K.Suspense = de, K.isAsyncMode = Ee, K.isConcurrentMode = S, K.isContextConsumer = T, K.isContextProvider = D, K.isElement = j, K.isForwardRef = N, K.isFragment = z, K.isLazy = I, K.isMemo = B, K.isPortal = U, K.isProfiler = H, K.isStrictMode = L, K.isSuspense = ue, K.isValidElementType = $, K.typeOf = R; }()), K; } var hr; function Qr() { return hr || (hr = 1, process.env.NODE_ENV === "production" ? ct.exports = Fn() : ct.exports = zn()), ct.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ var Dt, gr; function Un() { if (gr) return Dt; gr = 1; var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable; function n(i) { if (i == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(i); } function o() { try { if (!Object.assign) return !1; var i = new String("abc"); if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5") return !1; for (var s = {}, c = 0; c < 10; c++) s["_" + String.fromCharCode(c)] = c; var f = Object.getOwnPropertyNames(s).map(function(m) { return s[m]; }); if (f.join("") !== "0123456789") return !1; var p = {}; return "abcdefghijklmnopqrst".split("").forEach(function(m) { p[m] = m; }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } } return Dt = o() ? Object.assign : function(i, s) { for (var c, f = n(i), p, m = 1; m < arguments.length; m++) { c = Object(arguments[m]); for (var d in c) t.call(c, d) && (f[d] = c[d]); if (e) { p = e(c); for (var h = 0; h < p.length; h++) r.call(c, p[h]) && (f[p[h]] = c[p[h]]); } } return f; }, Dt; } var Vt, yr; function Qt() { if (yr) return Vt; yr = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; return Vt = e, Vt; } var Wt, br; function Zr() { return br || (br = 1, Wt = Function.call.bind(Object.prototype.hasOwnProperty)), Wt; } var Ft, vr; function Ln() { if (vr) return Ft; vr = 1; var e = function() { }; if (process.env.NODE_ENV !== "production") { var t = /* @__PURE__ */ Qt(), r = {}, n = /* @__PURE__ */ Zr(); e = function(i) { var s = "Warning: " + i; typeof console < "u" && console.error(s); try { throw new Error(s); } catch { } }; } function o(i, s, c, f, p) { if (process.env.NODE_ENV !== "production") { for (var m in i) if (n(i, m)) { var d; try { if (typeof i[m] != "function") { var h = Error( (f || "React class") + ": " + c + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." ); throw h.name = "Invariant Violation", h; } d = i[m](s, m, f, c, null, t); } catch (y) { d = y; } if (d && !(d instanceof Error) && e( (f || "React class") + ": type specification of " + c + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." ), d instanceof Error && !(d.message in r)) { r[d.message] = !0; var b = p ? p() : ""; e( "Failed " + c + " type: " + d.message + (b ?? "") ); } } } } return o.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (r = {}); }, Ft = o, Ft; } var zt, Sr; function Yn() { if (Sr) return zt; Sr = 1; var e = Qr(), t = Un(), r = /* @__PURE__ */ Qt(), n = /* @__PURE__ */ Zr(), o = /* @__PURE__ */ Ln(), i = function() { }; process.env.NODE_ENV !== "production" && (i = function(c) { var f = "Warning: " + c; typeof console < "u" && console.error(f); try { throw new Error(f); } catch { } }); function s() { return null; } return zt = function(c, f) { var p = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator"; function d(S) { var T = S && (p && S[p] || S[m]); if (typeof T == "function") return T; } var h = "<<anonymous>>", b = { array: O("array"), bigint: O("bigint"), bool: O("boolean"), func: O("function"), number: O("number"), object: O("object"), string: O("string"), symbol: O("symbol"), any: Y(), arrayOf: $, element: R(), elementType: v(), instanceOf: F, node: a(), objectOf: ie, oneOf: te, oneOfType: se, shape: k, exact: V }; function y(S, T) { return S === T ? S !== 0 || 1 / S === 1 / T : S !== S && T !== T; } function l(S, T) { this.message = S, this.data = T && typeof T == "object" ? T : {}, this.stack = ""; } l.prototype = Error.prototype; function E(S) { if (process.env.NODE_ENV !== "production") var T = {}, D = 0; function j(z, I, B, U, H, L, ue) { if (U = U || h, L = L || B, ue !== r) { if (f) { var C = 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 C.name = "Invariant Violation", C; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { var ge = U + ":" + B; !T[ge] && // Avoid spamming the console because they are often not actionable except for lib authors D < 3 && (i( "You are manually calling a React.PropTypes validation function for the `" + L + "` prop on `" + U + "`. 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." ), T[ge] = !0, D++); } } return I[B] == null ? z ? I[B] === null ? new l("The " + H + " `" + L + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new l("The " + H + " `" + L + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : S(I, B, U, H, L); } var N = j.bind(null, !1); return N.isRequired = j.bind(null, !0), N; } function O(S) { function T(D, j, N, z, I, B) { var U = D[j], H = ne(U); if (H !== S) { var L = de(U); return new l( "Invalid " + z + " `" + I + "` of type " + ("`" + L + "` supplied to `" + N + "`, expected ") + ("`" + S + "`."), { expectedType: S } ); } return null; } return E(T); } function Y() { return E(s); } function $(S) { function T(D, j, N, z, I) { if (typeof S != "function") return new l("Property `" + I + "` of component `" + N + "` has invalid PropType notation inside arrayOf."); var B = D[j]; if (!Array.isArray(B)) { var U = ne(B); return new l("Invalid " + z + " `" + I + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected an array.")); } for (var H = 0; H < B.length; H++) { var L = S(B, H, N, z, I + "[" + H + "]", r); if (L instanceof Error) return L; } return null; } return E(T); } function R() { function S(T, D, j, N, z) { var I = T[D]; if (!c(I)) { var B = ne(I); return new l("Invalid " + N + " `" + z + "` of type " + ("`" + B + "` supplied to `" + j + "`, expected a single ReactElement.")); } return null; } return E(S); } function v() { function S(T, D, j, N, z) { var I = T[D]; if (!e.isValidElementType(I)) { var B = ne(I); return new l("Invalid " + N + " `" + z + "` of type " + ("`" + B + "` supplied to `" + j + "`, expected a single ReactElement type.")); } return null; } return E(S); } function F(S) { function T(D, j, N, z, I) { if (!(D[j] instanceof S)) { var B = S.name || h, U = Ee(D[j]); return new l("Invalid " + z + " `" + I + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected ") + ("instance of `" + B + "`.")); } return null; } return E(T); } function te(S) { if (!Array.isArray(S)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i( "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])." ) : i("Invalid argument supplied to oneOf, expected an array.")), s; function T(D, j, N, z, I) { for (var B = D[j], U = 0; U < S.length; U++) if (y(B, S[U])) return null; var H = JSON.stringify(S, function(ue, C) { var ge = de(C); return ge === "symbol" ? String(C) : C; }); return new l("Invalid " + z + " `" + I + "` of value `" + String(B) + "` " + ("supplied to `" + N + "`, expected one of " + H + ".")); } return E(T); } function ie(S) { function T(D, j, N, z, I) { if (typeof S != "function") return new l("Property `" + I + "` of component `" + N + "` has invalid PropType notation inside objectOf."); var B = D[j], U = ne(B); if (U !== "object") return new l("Invalid " + z + " `" + I + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected an object.")); for (var H in B) if (n(B, H)) { var L = S(B, H, N, z, I + "." + H, r); if (L instanceof Error) return L; } return null; } return E(T); } function se(S) { if (!Array.isArray(S)) return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s; for (var T = 0; T < S.length; T++) { var D = S[T]; if (typeof D != "function") return i( "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + he(D) + " at index " + T + "." ), s; } function j(N, z, I, B, U) { for (var H = [], L = 0; L < S.length; L++) { var ue = S[L], C = ue(N, z, I, B, U, r); if (C == null) return null; C.data && n(C.data, "expectedType") && H.push(C.data.expectedType); } var ge = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : ""; return new l("Invalid " + B + " `" + U + "` supplied to " + ("`" + I + "`" + ge + ".")); } return E(j); } function a() { function S(T, D, j, N, z) { return W(T[D]) ? null : new l("Invalid " + N + " `" + z + "` supplied to " + ("`" + j + "`, expected a ReactNode.")); } return E(S); } function w(S, T, D, j, N) { return new l( (S || "React class") + ": " + T + " type `" + D + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + N + "`." ); } function k(S) { function T(D, j, N, z, I) { var B = D[j], U = ne(B); if (U !== "object") return new l("Invalid " + z + " `" + I + "` of type `" + U + "` " + ("supplied to `" + N + "`, expected `object`.")); for (var H in S) { var L = S[H]; if (typeof L != "function") return w(N, z, I, H, de(L)); var ue = L(B, H, N, z, I + "." + H, r); if (ue) return ue; } return null; } return E(T); } function V(S) { function T(D, j, N, z, I) { var B = D[j], U = ne(B); if (U !== "object") return new l("Invalid " + z + " `" + I + "` of type `" + U + "` " + ("supplied to `" + N + "`, expected `object`.")); var H = t({}, D[j], S); for (var L in H) { var ue = S[L]; if (n(S, L) && typeof ue != "function") return w(N, z, I, L, de(ue)); if (!ue) return new l( "Invalid " + z + " `" + I + "` key `" + L + "` supplied to `" + N + "`.\nBad object: " + JSON.stringify(D[j], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(S), null, " ") ); var C = ue(B, L, N, z, I + "." + L, r); if (C) return C; } return null; } return E(T); } function W(S) { switch (typeof S) { case "number": case "string": case "undefined": return !0; case "boolean": return !S; case "object": if (Array.isArray(S)) return S.every(W); if (S === null || c(S)) return !0; var T = d(S); if (T) { var D = T.call(S), j; if (T !== S.entries) { for (; !(j = D.next()).done; ) if (!W(j.value)) return !1; } else for (; !(j = D.next()).done; ) { var N = j.value; if (N && !W(N[1])) return !1; } } else return !1; return !0; default: return !1; } } function ee(S, T) { return S === "symbol" ? !0 : T ? T["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && T instanceof Symbol : !1; } function ne(S) { var T = typeof S; return Array.isArray(S) ? "array" : S instanceof RegExp ? "object" : ee(T, S) ? "symbol" : T; } function de(S) { if (typeof S > "u" || S === null) return "" + S; var T = ne(S); if (T === "object") { if (S instanceof Date) return "date"; if (S instanceof RegExp) return "regexp"; } return T; } function he(S) { var T = de(S); switch (T) { case "array": case "object": return "an " + T; case "boolean": case "date": case "regexp": return "a " + T; default: return T; } } function Ee(S) { return !S.constructor || !S.constructor.name ? h : S.constructor.name; } return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b; }, zt; } var Ut, Er; function Hn() { if (Er) return Ut; Er = 1; var e = /* @__PURE__ */ Qt(); function t() { } function r() { } return r.resetWarningCache = t, Ut = function() { function n(s, c, f, p, m, d) { if (d !== e) { var h = 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 h.name = "Invariant Violation", h; } } n.isRequired = n; function o() { return n; } var i = { array: n, bigint: n, bool: n, func: n, number: n, object: n, string: n, symbol: n, any: n, arrayOf: o, element: n, elementType: n, instanceOf: o, node: n, objectOf: o, oneOf: o, oneOfType: o, shape: o, exact: o, checkPropTypes: r, resetWarningCache: t }; return i.PropTypes = i, i; }, Ut; } var xr; function Gn() { if (xr) return at.exports; if (xr = 1, process.env.NODE_ENV !== "production") { var e = Qr(), t = !0; at.exports = /* @__PURE__ */ Yn()(e.isElement, t); } else at.exports = /* @__PURE__ */ Hn()(); return at.exports; } var qn = /* @__PURE__ */ Gn(); const x = /* @__PURE__ */ Bn(qn); function en(e) { var t, r, n = ""; if (typeof e == "string" || typeof e == "number") n += e; else if (typeof e == "object") if (Array.isArray(e)) { var o = e.length; for (t = 0; t < o; t++) e[t] && (r = en(e[t])) && (n && (n += " "), n += r); } else for (r in e) e[r] && (n && (n += " "), n += r); return n; } function Et() { for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = en(e)) && (n && (n += " "), n += t); return n; } function xt(e, t, r = void 0) { const n = {}; for (const o in e) { const i = e[o]; let s = "", c = !0; for (let f = 0; f < i.length; f += 1) { const p = i[f]; p && (s += (c === !0 ? "" : " ") + t(p), c = !1, r && r[p] && (s += " " + r[p])); } n[o] = s; } return n; } const tn = /* @__PURE__ */ me.createContext(); process.env.NODE_ENV !== "production" && (tn.displayName = "TableContext"); function ke(e, ...t) { const r = new URL(`https://mui.com/production-error/?code=${e}`); return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`; } function Me(e) { if (typeof e != "string") throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ke(7)); return e.charAt(0).toUpperCase() + e.slice(1); } var lt = { exports: {} }, X = {}; /** * @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 Cr; function Kn() { if (Cr) return X; Cr = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = Symbol.for("react.client.reference"); function y(l) { if (typeof l == "object" && l !== null) { var E = l.$$typeof; switch (E) { case e: switch (l = l.type, l) { case r: case o: case n: case f: case p: return l; default: switch (l = l && l.$$typeof, l) { case s: case c: case d: case m: return l; case i: return l; default: return E; } } case t: return E; } } } return X.ContextConsumer = i, X.ContextProvider = s, X.Element = e, X.ForwardRef = c, X.Fragment = r, X.Lazy = d, X.Memo = m, X.Portal = t, X.Profiler = o, X.StrictMode = n, X.Suspense = f, X.SuspenseList = p, X.isContextConsumer = function(l) { return y(l) === i; }, X.isContextProvider = function(l) { return y(l) === s; }, X.isElement = function(l) { return typeof l == "object" && l !== null && l.$$typeof === e; }, X.isForwardRef = function(l) { return y(l) === c; }, X.isFragment = function(l) { return y(l) === r; }, X.isLazy = function(l) { return y(l) === d; }, X.isMemo = function(l) { return y(l) === m; }, X.isPortal = function(l) { return y(l) === t; }, X.isProfiler = function(l) { return y(l) === o; }, X.isStrictMode = function(l) { return y(l) === n; }, X.isSuspense = function(l) { return y(l) === f; }, X.isSuspenseList = function(l) { return y(l) === p; }, X.isValidElementType = function(l) { return typeof l == "string" || typeof l == "function" || l === r || l === o || l === n || l === f || l === p || l === h || typeof l == "object" && l !== null && (l.$$typeof === d || l.$$typeof === m || l.$$typeof === s || l.$$typeof === i || l.$$typeof === c || l.$$typeof === b || l.getModuleId !== void 0); }, X.typeOf = y, X; } var J = {}; /** * @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 Tr; function Xn() { return Tr || (Tr = 1, process.env.NODE_ENV !== "production" && function() { function e(l) { if (typeof l == "object" && l !== null) { var E = l.$$typeof; switch (E) { case t: switch (l = l.type, l) { case n: case i: case o: case p: case m: return l; default: switch (l = l && l.$$typeof, l) { case c: case f: case h: case d: return l; case s: return l; default: return E; } } case r: return E; } } } var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), y = Symbol.for("react.client.reference"); J.ContextConsumer = s, J.ContextProvider = c, J.Element = t, J.ForwardRef = f, J.Fragment = n, J.Lazy = h, J.Memo = d, J.Portal = r, J.Profiler = i, J.StrictMode = o, J.Suspense = p, J.SuspenseList = m, J.isContextConsumer = function(l) { return e(l) === s; }, J.isContextProvider = function(l) { return e(l) === c; }, J.isElement = function(l) { return typeof l == "object" && l !== null && l.$$typeof === t; }, J.isForwardRef = function(l) { return e(l) === f; }, J.isFragment = function(l) { return e(l) === n; }, J.isLazy = function(l) { return e(l) === h; }, J.isMemo = function(l) { return e(l) === d; }, J.isPortal = function(l) { return e(l) === r; }, J.isProfiler = function(l) { return e(l) === i; }, J.isStrictMode = function(l) { return e(l) === o; }, J.isSuspense = function(l) { return e(l) === p; }, J.isSuspenseList = function(l) { return e(l) === m; }, J.isValidElementType = function(l) { return typeof l == "string" || typeof l == "function" || l === n || l === i || l === o || l === p || l === m || l === b || typeof l == "object" && l !== null && (l.$$typeof === h || l.$$typeof === d || l.$$typeof === c || l.$$typeof === s || l.$$typeof === f || l.$$typeof === y || l.getModuleId !== void 0); }, J.typeOf = e; }()), J; } var wr; function Jn() { return wr || (wr = 1, process.env.NODE_ENV === "production" ? lt.exports = /* @__PURE__ */ Kn() : lt.exports = /* @__PURE__ */ Xn()), lt.exports; } var ht = /* @__PURE__ */ Jn(); function _e(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 rn(e) { if (/* @__PURE__ */ me.isValidElement(e) || ht.isValidElementType(e) || !_e(e)) return e; const t = {}; return Object.keys(e).forEach((r) => { t[r] = rn(e[r]); }), t; } function be(e, t, r = { clone: !0 }) { const n = r.clone ? { ...e } : e; return _e(e) && _e(t) && Object.keys(t).forEach((o) => { /* @__PURE__ */ me.isValidElement(t[o]) || ht.isValidElementType(t[o]) ? n[o] = t[o] : _e(t[o]) && // Avoid prototype pollution Object.prototype.hasOwnProperty.call(e, o) && _e(e[o]) ? n[o] = be(e[o], t[o], r) : r.clone ? n[o] = _e(t[o]) ? rn(t[o]) : t[o] : n[o] = t[o]; }), n; } function Ze(e, t) { return t ? be(e, t, { clone: !1 // No need to clone deep, it's way faster. }) : e; } const je = process.env.NODE_ENV !== "production" ? x.oneOfType([x.number, x.string, x.object, x.array]) : {}; function Qn(e, t) { if (!e.containerQueries) return t; const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, o) => { var s, c; const i = /min-width:\s*([0-9.]+)/; return +(((s = n.match(i)) == null ? void 0 : s[1]) || 0) - +(((c = o.match(i)) == null ? void 0 : c[1]) || 0); }); return r.length ? r.reduce((n, o) => { const i = t[o]; return delete n[o], n[o] = i, n; }, { ...t }) : t; } function Zn(e, t) { return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/)); } function eo(e, t) { const r = t.match(/^@([^/]+)?\/?(.+)?$/); if (!r) { 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\`.` : ke(18, `(${t})`)); return null; } const [, n, o] = r, i = Number.isNaN(+n) ? n || 0 : +n; return e.containerQueries(o).up(i); } function to(e) { const t = (i, s) => i.replace("@media", s ? `@container ${s}` : "@container"); function r(i, s) { i.up = (...c) => t(e.breakpoints.up(...c), s), i.down = (...c) => t(e.breakpoints.down(...c), s), i.between = (...c) => t(e