UNPKG

table-pagination-chakra-ui

Version:
1,556 lines (1,554 loc) 147 kB
import * as le from "react"; import Kn, { Children as Jn, isValidElement as bt, createContext as Zn, useContext as yt, useMemo as Mr, forwardRef as cn, createElement as uo, useRef as fo, cloneElement as vt, useState as st, useCallback as yr, useId as po, Fragment as ho } from "react"; var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Qn(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var Ht = { exports: {} }, Or = {}; /** * @license React * react-jsx-runtime.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 An; function mo() { if (An) return Or; An = 1; var e = Kn, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 }; function d(u, p, h) { var m, g = {}, T = null, k = null; h !== void 0 && (T = "" + h), p.key !== void 0 && (T = "" + p.key), p.ref !== void 0 && (k = p.ref); for (m in p) n.call(p, m) && !i.hasOwnProperty(m) && (g[m] = p[m]); if (u && u.defaultProps) for (m in p = u.defaultProps, p) g[m] === void 0 && (g[m] = p[m]); return { $$typeof: r, type: u, key: T, ref: k, props: g, _owner: a.current }; } return Or.Fragment = t, Or.jsx = d, Or.jsxs = d, Or; } var Ar = {}; /** * @license React * react-jsx-runtime.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 $n; function go() { return $n || ($n = 1, process.env.NODE_ENV !== "production" && function() { var e = Kn, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), v = Symbol.iterator, S = "@@iterator"; function _(s) { if (s === null || typeof s != "object") return null; var b = v && s[v] || s[S]; return typeof b == "function" ? b : null; } var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function w(s) { { for (var b = arguments.length, x = new Array(b > 1 ? b - 1 : 0), A = 1; A < b; A++) x[A - 1] = arguments[A]; O("error", s, x); } } function O(s, b, x) { { var A = C.ReactDebugCurrentFrame, F = A.getStackAddendum(); F !== "" && (b += "%s", x = x.concat([F])); var q = x.map(function(M) { return String(M); }); q.unshift("Warning: " + b), Function.prototype.apply.call(console[s], console, q); } } var $ = !1, y = !1, j = !1, I = !1, re = !1, de; de = Symbol.for("react.module.reference"); function me(s) { return !!(typeof s == "string" || typeof s == "function" || s === n || s === i || re || s === a || s === h || s === m || I || s === k || $ || y || j || typeof s == "object" && s !== null && (s.$$typeof === T || s.$$typeof === g || s.$$typeof === d || s.$$typeof === u || s.$$typeof === p || // 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. s.$$typeof === de || s.getModuleId !== void 0)); } function ke(s, b, x) { var A = s.displayName; if (A) return A; var F = b.displayName || b.name || ""; return F !== "" ? x + "(" + F + ")" : x; } function ar(s) { return s.displayName || "Context"; } function ge(s) { if (s == null) return null; if (typeof s.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function") return s.displayName || s.name || null; if (typeof s == "string") return s; switch (s) { case n: return "Fragment"; case t: return "Portal"; case i: return "Profiler"; case a: return "StrictMode"; case h: return "Suspense"; case m: return "SuspenseList"; } if (typeof s == "object") switch (s.$$typeof) { case u: var b = s; return ar(b) + ".Consumer"; case d: var x = s; return ar(x._context) + ".Provider"; case p: return ke(s, s.render, "ForwardRef"); case g: var A = s.displayName || null; return A !== null ? A : ge(s.type) || "Memo"; case T: { var F = s, q = F._payload, M = F._init; try { return ge(M(q)); } catch { return null; } } } return null; } var xe = Object.assign, Ne = 0, or, ir, Ze, sr, Qe, cr, lr; function V() { } V.__reactDisabledLog = !0; function dr() { { if (Ne === 0) { or = console.log, ir = console.info, Ze = console.warn, sr = console.error, Qe = console.group, cr = console.groupCollapsed, lr = console.groupEnd; var s = { configurable: !0, enumerable: !0, value: V, writable: !0 }; Object.defineProperties(console, { info: s, log: s, warn: s, error: s, group: s, groupCollapsed: s, groupEnd: s }); } Ne++; } } function kr() { { if (Ne--, Ne === 0) { var s = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: xe({}, s, { value: or }), info: xe({}, s, { value: ir }), warn: xe({}, s, { value: Ze }), error: xe({}, s, { value: sr }), group: xe({}, s, { value: Qe }), groupCollapsed: xe({}, s, { value: cr }), groupEnd: xe({}, s, { value: lr }) }); } Ne < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var Te = C.ReactCurrentDispatcher, He; function be(s, b, x) { { if (He === void 0) try { throw Error(); } catch (F) { var A = F.stack.trim().match(/\n( *(at )?)/); He = A && A[1] || ""; } return ` ` + He + s; } } var Ue = !1, Ee; { var ur = typeof WeakMap == "function" ? WeakMap : Map; Ee = new ur(); } function E(s, b) { if (!s || Ue) return ""; { var x = Ee.get(s); if (x !== void 0) return x; } var A; Ue = !0; var F = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var q; q = Te.current, Te.current = null, dr(); try { if (b) { var M = function() { throw Error(); }; if (Object.defineProperty(M.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(M, []); } catch (ne) { A = ne; } Reflect.construct(s, [], M); } else { try { M.call(); } catch (ne) { A = ne; } s.call(M.prototype); } } else { try { throw Error(); } catch (ne) { A = ne; } s(); } } catch (ne) { if (ne && A && typeof ne.stack == "string") { for (var B = ne.stack.split(` `), ae = A.stack.split(` `), Z = B.length - 1, Q = ae.length - 1; Z >= 1 && Q >= 0 && B[Z] !== ae[Q]; ) Q--; for (; Z >= 1 && Q >= 0; Z--, Q--) if (B[Z] !== ae[Q]) { if (Z !== 1 || Q !== 1) do if (Z--, Q--, Q < 0 || B[Z] !== ae[Q]) { var se = ` ` + B[Z].replace(" at new ", " at "); return s.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", s.displayName)), typeof s == "function" && Ee.set(s, se), se; } while (Z >= 1 && Q >= 0); break; } } } finally { Ue = !1, Te.current = q, kr(), Error.prepareStackTrace = F; } var Ke = s ? s.displayName || s.name : "", ye = Ke ? be(Ke) : ""; return typeof s == "function" && Ee.set(s, ye), ye; } function er(s, b, x) { return E(s, !1); } function qe(s) { var b = s.prototype; return !!(b && b.isReactComponent); } function Le(s, b, x) { if (s == null) return ""; if (typeof s == "function") return E(s, qe(s)); if (typeof s == "string") return be(s); switch (s) { case h: return be("Suspense"); case m: return be("SuspenseList"); } if (typeof s == "object") switch (s.$$typeof) { case p: return er(s.render); case g: return Le(s.type, b, x); case T: { var A = s, F = A._payload, q = A._init; try { return Le(q(F), b, x); } catch { } } } return ""; } var rr = Object.prototype.hasOwnProperty, Wr = {}, Yr = C.ReactDebugCurrentFrame; function fr(s) { if (s) { var b = s._owner, x = Le(s.type, s._source, b ? b.type : null); Yr.setExtraStackFrame(x); } else Yr.setExtraStackFrame(null); } function pr(s, b, x, A, F) { { var q = Function.call.bind(rr); for (var M in s) if (q(s, M)) { var B = void 0; try { if (typeof s[M] != "function") { var ae = Error((A || "React class") + ": " + x + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw ae.name = "Invariant Violation", ae; } B = s[M](b, M, A, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (Z) { B = Z; } B && !(B instanceof Error) && (fr(F), w("%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).", A || "React class", x, M, typeof B), fr(null)), B instanceof Error && !(B.message in Wr) && (Wr[B.message] = !0, fr(F), w("Failed %s type: %s", x, B.message), fr(null)); } } } var xr = Array.isArray; function Ge(s) { return xr(s); } function Pe(s) { { var b = typeof Symbol == "function" && Symbol.toStringTag, x = b && s[Symbol.toStringTag] || s.constructor.name || "Object"; return x; } } function Vr(s) { try { return Tr(s), !1; } catch { return !0; } } function Tr(s) { return "" + s; } function Hr(s) { if (Vr(s)) return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pe(s)), Tr(s); } var Ur = C.ReactCurrentOwner, hr = { key: !0, ref: !0, __self: !0, __source: !0 }, wr, Rr; function qr(s) { if (rr.call(s, "ref")) { var b = Object.getOwnPropertyDescriptor(s, "ref").get; if (b && b.isReactWarning) return !1; } return s.ref !== void 0; } function Gr(s) { if (rr.call(s, "key")) { var b = Object.getOwnPropertyDescriptor(s, "key").get; if (b && b.isReactWarning) return !1; } return s.key !== void 0; } function Tt(s, b) { typeof s.ref == "string" && Ur.current; } function wt(s, b) { { var x = function() { wr || (wr = !0, w("%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)", b)); }; x.isReactWarning = !0, Object.defineProperty(s, "key", { get: x, configurable: !0 }); } } function je(s, b) { { var x = function() { Rr || (Rr = !0, w("%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)", b)); }; x.isReactWarning = !0, Object.defineProperty(s, "ref", { get: x, configurable: !0 }); } } var mr = function(s, b, x, A, F, q, M) { var B = { // This tag allows us to uniquely identify this as a React Element $$typeof: r, // Built-in properties that belong on the element type: s, key: b, ref: x, props: M, // Record the component responsible for creating this element. _owner: q }; return B._store = {}, Object.defineProperty(B._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(B, "_self", { configurable: !1, enumerable: !1, writable: !1, value: A }), Object.defineProperty(B, "_source", { configurable: !1, enumerable: !1, writable: !1, value: F }), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B; }; function Rt(s, b, x, A, F) { { var q, M = {}, B = null, ae = null; x !== void 0 && (Hr(x), B = "" + x), Gr(b) && (Hr(b.key), B = "" + b.key), qr(b) && (ae = b.ref, Tt(b, F)); for (q in b) rr.call(b, q) && !hr.hasOwnProperty(q) && (M[q] = b[q]); if (s && s.defaultProps) { var Z = s.defaultProps; for (q in Z) M[q] === void 0 && (M[q] = Z[q]); } if (B || ae) { var Q = typeof s == "function" ? s.displayName || s.name || "Unknown" : s; B && wt(M, Q), ae && je(M, Q); } return mr(s, B, ae, F, A, Ur.current, M); } } var gr = C.ReactCurrentOwner, Xr = C.ReactDebugCurrentFrame; function ze(s) { if (s) { var b = s._owner, x = Le(s.type, s._source, b ? b.type : null); Xr.setExtraStackFrame(x); } else Xr.setExtraStackFrame(null); } var De; De = !1; function Cr(s) { return typeof s == "object" && s !== null && s.$$typeof === r; } function Ie() { { if (gr.current) { var s = ge(gr.current.type); if (s) return ` Check the render method of \`` + s + "`."; } return ""; } } function Ct(s) { return ""; } var Kr = {}; function Et(s) { { var b = Ie(); if (!b) { var x = typeof s == "string" ? s : s.displayName || s.name; x && (b = ` Check the top-level render call using <` + x + ">."); } return b; } } function Jr(s, b) { { if (!s._store || s._store.validated || s.key != null) return; s._store.validated = !0; var x = Et(b); if (Kr[x]) return; Kr[x] = !0; var A = ""; s && s._owner && s._owner !== gr.current && (A = " It was passed a child from " + ge(s._owner.type) + "."), ze(s), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, A), ze(null); } } function Zr(s, b) { { if (typeof s != "object") return; if (Ge(s)) for (var x = 0; x < s.length; x++) { var A = s[x]; Cr(A) && Jr(A, b); } else if (Cr(s)) s._store && (s._store.validated = !0); else if (s) { var F = _(s); if (typeof F == "function" && F !== s.entries) for (var q = F.call(s), M; !(M = q.next()).done; ) Cr(M.value) && Jr(M.value, b); } } } function we(s) { { var b = s.type; if (b == null || typeof b == "string") return; var x; if (typeof b == "function") x = b.propTypes; else if (typeof b == "object" && (b.$$typeof === p || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. b.$$typeof === g)) x = b.propTypes; else return; if (x) { var A = ge(b); pr(x, s.props, "prop", A, s); } else if (b.PropTypes !== void 0 && !De) { De = !0; var F = ge(b); w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", F || "Unknown"); } typeof b.getDefaultProps == "function" && !b.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function Pt(s) { { for (var b = Object.keys(s.props), x = 0; x < b.length; x++) { var A = b[x]; if (A !== "children" && A !== "key") { ze(s), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), ze(null); break; } } s.ref !== null && (ze(s), w("Invalid attribute `ref` supplied to `React.Fragment`."), ze(null)); } } var Qr = {}; function et(s, b, x, A, F, q) { { var M = me(s); if (!M) { var B = ""; (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (B += " 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 ae = Ct(); ae ? B += ae : B += Ie(); var Z; s === null ? Z = "null" : Ge(s) ? Z = "array" : s !== void 0 && s.$$typeof === r ? (Z = "<" + (ge(s.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof s, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, B); } var Q = Rt(s, b, x, F, q); if (Q == null) return Q; if (M) { var se = b.children; if (se !== void 0) if (A) if (Ge(se)) { for (var Ke = 0; Ke < se.length; Ke++) Zr(se[Ke], s); Object.freeze && Object.freeze(se); } else w("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 Zr(se, s); } if (rr.call(b, "key")) { var ye = ge(s), ne = Object.keys(b).filter(function(rt) { return rt !== "key"; }), Er = ne.length > 0 ? "{key: someKey, " + ne.join(": ..., ") + ": ...}" : "{key: someKey}"; if (!Qr[ye + Er]) { var br = ne.length > 0 ? "{" + ne.join(": ..., ") + ": ...}" : "{}"; w(`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} />`, Er, ye, br, ye), Qr[ye + Er] = !0; } } return s === n ? Pt(Q) : we(Q), Q; } } function It(s, b, x) { return et(s, b, x, !0); } function Ot(s, b, x) { return et(s, b, x, !1); } var Xe = Ot, At = It; Ar.Fragment = n, Ar.jsx = Xe, Ar.jsxs = At; }()), Ar; } process.env.NODE_ENV === "production" ? Ht.exports = mo() : Ht.exports = go(); var ln = Ht.exports; const Ut = ln.Fragment, P = ln.jsx, pe = ln.jsxs; function bo(e, ...r) { if (e == null) throw new TypeError("Cannot convert undefined or null to object"); const t = { ...e }; for (const n of r) if (n != null) for (const a in n) Object.prototype.hasOwnProperty.call(n, a) && (a in t && delete t[a], t[a] = n[a]); return t; } const Ce = (e) => e ? "" : void 0, Dt = (e) => e ? !0 : void 0; function yo(e) { return Array.isArray(e); } function nr(e) { const r = typeof e; return e != null && (r === "object" || r === "function") && !yo(e); } function vo(e) { const r = parseFloat(e.toString()), t = e.toString().replace(String(r), ""); return { unitless: !t, value: r, unit: t }; } function Bn(e) { if (e == null) return e; const { unitless: r } = vo(e); return r || typeof e == "number" ? `${e}px` : e; } function So(e, r) { const t = ["@media screen"]; return e && t.push("and", `(min-width: ${Bn(e)})`), r && t.push("and", `(max-width: ${Bn(r)})`), t.join(" "); } function Fn(...e) { return function(t) { e.some((n) => (n == null || n(t), t == null ? void 0 : t.defaultPrevented)); }; } function _o(e) { return Jn.toArray(e).filter( (r) => bt(r) ); } function dn(e) { const r = Object.assign({}, e); for (let t in r) r[t] === void 0 && delete r[t]; return r; } function ko(e, r) { return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${r}`; } function un(e = {}) { const { name: r, strict: t = !0, hookName: n = "useContext", providerName: a = "Provider", errorMessage: i, defaultValue: d } = e, u = Zn(d); u.displayName = r; function p() { var m; const h = yt(u); if (!h && t) { const g = new Error( i ?? ko(n, a) ); throw g.name = "ContextError", (m = Error.captureStackTrace) == null || m.call(Error, g, p), g; } return h; } return [u.Provider, p, u]; } const Me = (...e) => e.filter(Boolean).join(" "); function xo(e, r, t, n) { const a = typeof r == "string" ? r.split(".") : [r]; for (n = 0; n < a.length && e; n += 1) e = e[a[n]]; return e === void 0 ? t : e; } const To = (e) => { const r = /* @__PURE__ */ new WeakMap(); return (n, a, i, d) => { if (typeof n > "u") return e(n, a, i); r.has(n) || r.set(n, /* @__PURE__ */ new Map()); const u = r.get(n); if (u.has(a)) return u.get(a); const p = e(n, a, i, d); return u.set(a, p), p; }; }, wo = To(xo), Ro = (e) => e.default || e; function ea(e, r = []) { const t = Object.assign({}, e); for (const n of r) n in t && delete t[n]; return t; } function Co(e, r) { return Array.isArray(e) ? e.map((t) => t === null ? null : r(t)) : nr(e) ? Object.keys(e).reduce((t, n) => (t[n] = r(e[n]), t), {}) : e != null ? r(e) : null; } const Eo = (e) => typeof e == "function"; function Je(e, ...r) { return Eo(e) ? e(...r) : e; } function Po(e, r) { const t = {}, n = {}; for (const [a, i] of Object.entries(e)) r.includes(a) ? t[a] = i : n[a] = i; return [t, n]; } function Io(e, ...r) { const t = Object.getOwnPropertyDescriptors(e), n = Object.keys(t), a = (d) => { const u = {}; for (let p = 0; p < d.length; p++) { const h = d[p]; t[h] && (Object.defineProperty(u, h, t[h]), delete t[h]); } return u; }, i = (d) => a(Array.isArray(d) ? d : n.filter(d)); return r.map(i).concat(a(n)); } var ht = { exports: {} }; ht.exports; (function(e, r) { var t = 200, n = "__lodash_hash_undefined__", a = 800, i = 16, d = 9007199254740991, u = "[object Arguments]", p = "[object Array]", h = "[object AsyncFunction]", m = "[object Boolean]", g = "[object Date]", T = "[object Error]", k = "[object Function]", v = "[object GeneratorFunction]", S = "[object Map]", _ = "[object Number]", C = "[object Null]", w = "[object Object]", O = "[object Proxy]", $ = "[object RegExp]", y = "[object Set]", j = "[object String]", I = "[object Undefined]", re = "[object WeakMap]", de = "[object ArrayBuffer]", me = "[object DataView]", ke = "[object Float32Array]", ar = "[object Float64Array]", ge = "[object Int8Array]", xe = "[object Int16Array]", Ne = "[object Int32Array]", or = "[object Uint8Array]", ir = "[object Uint8ClampedArray]", Ze = "[object Uint16Array]", sr = "[object Uint32Array]", Qe = /[\\^$.*+?()[\]{}|]/g, cr = /^\[object .+?Constructor\]$/, lr = /^(?:0|[1-9]\d*)$/, V = {}; V[ke] = V[ar] = V[ge] = V[xe] = V[Ne] = V[or] = V[ir] = V[Ze] = V[sr] = !0, V[u] = V[p] = V[de] = V[m] = V[me] = V[g] = V[T] = V[k] = V[S] = V[_] = V[w] = V[$] = V[y] = V[j] = V[re] = !1; var dr = typeof at == "object" && at && at.Object === Object && at, kr = typeof self == "object" && self && self.Object === Object && self, Te = dr || kr || Function("return this")(), He = r && !r.nodeType && r, be = He && !0 && e && !e.nodeType && e, Ue = be && be.exports === He, Ee = Ue && dr.process, ur = function() { try { var o = be && be.require && be.require("util").types; return o || Ee && Ee.binding && Ee.binding("util"); } catch { } }(), E = ur && ur.isTypedArray; function er(o, l, f) { switch (f.length) { case 0: return o.call(l); case 1: return o.call(l, f[0]); case 2: return o.call(l, f[0], f[1]); case 3: return o.call(l, f[0], f[1], f[2]); } return o.apply(l, f); } function qe(o, l) { for (var f = -1, R = Array(o); ++f < o; ) R[f] = l(f); return R; } function Le(o) { return function(l) { return o(l); }; } function rr(o, l) { return o == null ? void 0 : o[l]; } function Wr(o, l) { return function(f) { return o(l(f)); }; } var Yr = Array.prototype, fr = Function.prototype, pr = Object.prototype, xr = Te["__core-js_shared__"], Ge = fr.toString, Pe = pr.hasOwnProperty, Vr = function() { var o = /[^.]+$/.exec(xr && xr.keys && xr.keys.IE_PROTO || ""); return o ? "Symbol(src)_1." + o : ""; }(), Tr = pr.toString, Hr = Ge.call(Object), Ur = RegExp( "^" + Ge.call(Pe).replace(Qe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ), hr = Ue ? Te.Buffer : void 0, wr = Te.Symbol, Rr = Te.Uint8Array; hr && hr.allocUnsafe; var qr = Wr(Object.getPrototypeOf, Object), Gr = Object.create, Tt = pr.propertyIsEnumerable, wt = Yr.splice, je = wr ? wr.toStringTag : void 0, mr = function() { try { var o = $t(Object, "defineProperty"); return o({}, "", {}), o; } catch { } }(), Rt = hr ? hr.isBuffer : void 0, gr = Math.max, Xr = Date.now, ze = $t(Te, "Map"), De = $t(Object, "create"), Cr = /* @__PURE__ */ function() { function o() { } return function(l) { if (!tr(l)) return {}; if (Gr) return Gr(l); o.prototype = l; var f = new o(); return o.prototype = void 0, f; }; }(); function Ie(o) { var l = -1, f = o == null ? 0 : o.length; for (this.clear(); ++l < f; ) { var R = o[l]; this.set(R[0], R[1]); } } function Ct() { this.__data__ = De ? De(null) : {}, this.size = 0; } function Kr(o) { var l = this.has(o) && delete this.__data__[o]; return this.size -= l ? 1 : 0, l; } function Et(o) { var l = this.__data__; if (De) { var f = l[o]; return f === n ? void 0 : f; } return Pe.call(l, o) ? l[o] : void 0; } function Jr(o) { var l = this.__data__; return De ? l[o] !== void 0 : Pe.call(l, o); } function Zr(o, l) { var f = this.__data__; return this.size += this.has(o) ? 0 : 1, f[o] = De && l === void 0 ? n : l, this; } Ie.prototype.clear = Ct, Ie.prototype.delete = Kr, Ie.prototype.get = Et, Ie.prototype.has = Jr, Ie.prototype.set = Zr; function we(o) { var l = -1, f = o == null ? 0 : o.length; for (this.clear(); ++l < f; ) { var R = o[l]; this.set(R[0], R[1]); } } function Pt() { this.__data__ = [], this.size = 0; } function Qr(o) { var l = this.__data__, f = ye(l, o); if (f < 0) return !1; var R = l.length - 1; return f == R ? l.pop() : wt.call(l, f, 1), --this.size, !0; } function et(o) { var l = this.__data__, f = ye(l, o); return f < 0 ? void 0 : l[f][1]; } function It(o) { return ye(this.__data__, o) > -1; } function Ot(o, l) { var f = this.__data__, R = ye(f, o); return R < 0 ? (++this.size, f.push([o, l])) : f[R][1] = l, this; } we.prototype.clear = Pt, we.prototype.delete = Qr, we.prototype.get = et, we.prototype.has = It, we.prototype.set = Ot; function Xe(o) { var l = -1, f = o == null ? 0 : o.length; for (this.clear(); ++l < f; ) { var R = o[l]; this.set(R[0], R[1]); } } function At() { this.size = 0, this.__data__ = { hash: new Ie(), map: new (ze || we)(), string: new Ie() }; } function s(o) { var l = tt(this, o).delete(o); return this.size -= l ? 1 : 0, l; } function b(o) { return tt(this, o).get(o); } function x(o) { return tt(this, o).has(o); } function A(o, l) { var f = tt(this, o), R = f.size; return f.set(o, l), this.size += f.size == R ? 0 : 1, this; } Xe.prototype.clear = At, Xe.prototype.delete = s, Xe.prototype.get = b, Xe.prototype.has = x, Xe.prototype.set = A; function F(o) { var l = this.__data__ = new we(o); this.size = l.size; } function q() { this.__data__ = new we(), this.size = 0; } function M(o) { var l = this.__data__, f = l.delete(o); return this.size = l.size, f; } function B(o) { return this.__data__.get(o); } function ae(o) { return this.__data__.has(o); } function Z(o, l) { var f = this.__data__; if (f instanceof we) { var R = f.__data__; if (!ze || R.length < t - 1) return R.push([o, l]), this.size = ++f.size, this; f = this.__data__ = new Xe(R); } return f.set(o, l), this.size = f.size, this; } F.prototype.clear = q, F.prototype.delete = M, F.prototype.get = B, F.prototype.has = ae, F.prototype.set = Z; function Q(o, l) { var f = Mt(o), R = !f && Ft(o), L = !f && !R && Rn(o), G = !f && !R && !L && En(o), K = f || R || L || G, z = K ? qe(o.length, String) : [], J = z.length; for (var Re in o) K && // Safari 9 has enumerable `arguments.length` in strict mode. (Re == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. L && (Re == "offset" || Re == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. G && (Re == "buffer" || Re == "byteLength" || Re == "byteOffset") || // Skip index properties. Tn(Re, J)) || z.push(Re); return z; } function se(o, l, f) { (f !== void 0 && !nt(o[l], f) || f === void 0 && !(l in o)) && ne(o, l, f); } function Ke(o, l, f) { var R = o[l]; (!(Pe.call(o, l) && nt(R, f)) || f === void 0 && !(l in o)) && ne(o, l, f); } function ye(o, l) { for (var f = o.length; f--; ) if (nt(o[f][0], l)) return f; return -1; } function ne(o, l, f) { l == "__proto__" && mr ? mr(o, l, { configurable: !0, enumerable: !0, value: f, writable: !0 }) : o[l] = f; } var Er = Ua(); function br(o) { return o == null ? o === void 0 ? I : C : je && je in Object(o) ? qa(o) : Qa(o); } function rt(o) { return Pr(o) && br(o) == u; } function Ba(o) { if (!tr(o) || Ja(o)) return !1; var l = Lt(o) ? Ur : cr; return l.test(no(o)); } function Fa(o) { return Pr(o) && Cn(o.length) && !!V[br(o)]; } function Ma(o) { if (!tr(o)) return Za(o); var l = wn(o), f = []; for (var R in o) R == "constructor" && (l || !Pe.call(o, R)) || f.push(R); return f; } function xn(o, l, f, R, L) { o !== l && Er(l, function(G, K) { if (L || (L = new F()), tr(G)) Na(o, l, K, f, xn, R, L); else { var z = R ? R(Bt(o, K), G, K + "", o, l, L) : void 0; z === void 0 && (z = G), se(o, K, z); } }, Pn); } function Na(o, l, f, R, L, G, K) { var z = Bt(o, f), J = Bt(l, f), Re = K.get(J); if (Re) { se(o, f, Re); return; } var fe = G ? G(z, J, f + "", o, l, K) : void 0, Ir = fe === void 0; if (Ir) { var jt = Mt(J), zt = !jt && Rn(J), On = !jt && !zt && En(J); fe = J, jt || zt || On ? Mt(z) ? fe = z : ao(z) ? fe = Ya(z) : zt ? (Ir = !1, fe = za(J)) : On ? (Ir = !1, fe = Wa(J)) : fe = [] : oo(J) || Ft(J) ? (fe = z, Ft(z) ? fe = io(z) : (!tr(z) || Lt(z)) && (fe = Ga(J))) : Ir = !1; } Ir && (K.set(J, fe), L(fe, J, R, G, K), K.delete(J)), se(o, f, fe); } function La(o, l) { return ro(eo(o, l, In), o + ""); } var ja = mr ? function(o, l) { return mr(o, "toString", { configurable: !0, enumerable: !1, value: co(l), writable: !0 }); } : In; function za(o, l) { return o.slice(); } function Da(o) { var l = new o.constructor(o.byteLength); return new Rr(l).set(new Rr(o)), l; } function Wa(o, l) { var f = Da(o.buffer); return new o.constructor(f, o.byteOffset, o.length); } function Ya(o, l) { var f = -1, R = o.length; for (l || (l = Array(R)); ++f < R; ) l[f] = o[f]; return l; } function Va(o, l, f, R) { var L = !f; f || (f = {}); for (var G = -1, K = l.length; ++G < K; ) { var z = l[G], J = void 0; J === void 0 && (J = o[z]), L ? ne(f, z, J) : Ke(f, z, J); } return f; } function Ha(o) { return La(function(l, f) { var R = -1, L = f.length, G = L > 1 ? f[L - 1] : void 0, K = L > 2 ? f[2] : void 0; for (G = o.length > 3 && typeof G == "function" ? (L--, G) : void 0, K && Xa(f[0], f[1], K) && (G = L < 3 ? void 0 : G, L = 1), l = Object(l); ++R < L; ) { var z = f[R]; z && o(l, z, R, G); } return l; }); } function Ua(o) { return function(l, f, R) { for (var L = -1, G = Object(l), K = R(l), z = K.length; z--; ) { var J = K[++L]; if (f(G[J], J, G) === !1) break; } return l; }; } function tt(o, l) { var f = o.__data__; return Ka(l) ? f[typeof l == "string" ? "string" : "hash"] : f.map; } function $t(o, l) { var f = rr(o, l); return Ba(f) ? f : void 0; } function qa(o) { var l = Pe.call(o, je), f = o[je]; try { o[je] = void 0; var R = !0; } catch { } var L = Tr.call(o); return R && (l ? o[je] = f : delete o[je]), L; } function Ga(o) { return typeof o.constructor == "function" && !wn(o) ? Cr(qr(o)) : {}; } function Tn(o, l) { var f = typeof o; return l = l ?? d, !!l && (f == "number" || f != "symbol" && lr.test(o)) && o > -1 && o % 1 == 0 && o < l; } function Xa(o, l, f) { if (!tr(f)) return !1; var R = typeof l; return (R == "number" ? Nt(f) && Tn(l, f.length) : R == "string" && l in f) ? nt(f[l], o) : !1; } function Ka(o) { var l = typeof o; return l == "string" || l == "number" || l == "symbol" || l == "boolean" ? o !== "__proto__" : o === null; } function Ja(o) { return !!Vr && Vr in o; } function wn(o) { var l = o && o.constructor, f = typeof l == "function" && l.prototype || pr; return o === f; } function Za(o) { var l = []; if (o != null) for (var f in Object(o)) l.push(f); return l; } function Qa(o) { return Tr.call(o); } function eo(o, l, f) { return l = gr(l === void 0 ? o.length - 1 : l, 0), function() { for (var R = arguments, L = -1, G = gr(R.length - l, 0), K = Array(G); ++L < G; ) K[L] = R[l + L]; L = -1; for (var z = Array(l + 1); ++L < l; ) z[L] = R[L]; return z[l] = f(K), er(o, this, z); }; } function Bt(o, l) { if (!(l === "constructor" && typeof o[l] == "function") && l != "__proto__") return o[l]; } var ro = to(ja); function to(o) { var l = 0, f = 0; return function() { var R = Xr(), L = i - (R - f); if (f = R, L > 0) { if (++l >= a) return arguments[0]; } else l = 0; return o.apply(void 0, arguments); }; } function no(o) { if (o != null) { try { return Ge.call(o); } catch { } try { return o + ""; } catch { } } return ""; } function nt(o, l) { return o === l || o !== o && l !== l; } var Ft = rt(/* @__PURE__ */ function() { return arguments; }()) ? rt : function(o) { return Pr(o) && Pe.call(o, "callee") && !Tt.call(o, "callee"); }, Mt = Array.isArray; function Nt(o) { return o != null && Cn(o.length) && !Lt(o); } function ao(o) { return Pr(o) && Nt(o); } var Rn = Rt || lo; function Lt(o) { if (!tr(o)) return !1; var l = br(o); return l == k || l == v || l == h || l == O; } function Cn(o) { return typeof o == "number" && o > -1 && o % 1 == 0 && o <= d; } function tr(o) { var l = typeof o; return o != null && (l == "object" || l == "function"); } function Pr(o) { return o != null && typeof o == "object"; } function oo(o) { if (!Pr(o) || br(o) != w) return !1; var l = qr(o); if (l === null) return !0; var f = Pe.call(l, "constructor") && l.constructor; return typeof f == "function" && f instanceof f && Ge.call(f) == Hr; } var En = E ? Le(E) : Fa; function io(o) { return Va(o, Pn(o)); } function Pn(o) { return Nt(o) ? Q(o) : Ma(o); } var so = Ha(function(o, l, f, R) { xn(o, l, f, R); }); function co(o) { return function() { return o; }; } function In(o) { return o; } function lo() { return !1; } e.exports = so; })(ht, ht.exports); var Oo = ht.exports; const Ve = /* @__PURE__ */ Qn(Oo); function Ao(e, r) { if (e != null) { if (typeof e == "function") { e(r); return; } try { e.current = r; } catch { throw new Error(`Cannot assign value '${r}' to ref '${e}'`); } } } function qt(...e) { return (r) => { e.forEach((t) => { Ao(t, r); }); }; } function $o(...e) { return Mr(() => qt(...e), e); } const te = { open: (e, r) => `${e}[data-open], ${e}[open], ${e}[data-state=open] ${r}`, closed: (e, r) => `${e}[data-closed], ${e}[data-state=closed] ${r}`, hover: (e, r) => `${e}:hover ${r}, ${e}[data-hover] ${r}`, focus: (e, r) => `${e}:focus ${r}, ${e}[data-focus] ${r}`, focusVisible: (e, r) => `${e}:focus-visible ${r}`, focusWithin: (e, r) => `${e}:focus-within ${r}`, active: (e, r) => `${e}:active ${r}, ${e}[data-active] ${r}`, disabled: (e, r) => `${e}:disabled ${r}, ${e}[data-disabled] ${r}`, invalid: (e, r) => `${e}:invalid ${r}, ${e}[data-invalid] ${r}`, checked: (e, r) => `${e}:checked ${r}, ${e}[data-checked] ${r}`, indeterminate: (e, r) => `${e}:indeterminate ${r}, ${e}[aria-checked=mixed] ${r}, ${e}[data-indeterminate] ${r}`, readOnly: (e, r) => `${e}:read-only ${r}, ${e}[readonly] ${r}, ${e}[data-read-only] ${r}`, expanded: (e, r) => `${e}:read-only ${r}, ${e}[aria-expanded=true] ${r}, ${e}[data-expanded] ${r}`, placeholderShown: (e, r) => `${e}:placeholder-shown ${r}` }, Oe = (e) => ra((r) => e(r, "&"), "[role=group]", "[data-group]", ".group"), We = (e) => ra((r) => e(r, "~ &"), "[data-peer]", ".peer"), ra = (e, ...r) => r.map(e).join(", "), fn = { /** * 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, &[data-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 * <Box _before={{content:`""` }}/> * ``` */ _before: "&::before", /** * Styles for CSS selector `&::after` * * NOTE:When using this, ensure the `content` is wrapped in a backtick. * @example * ```jsx * <Box _after={{content:`""` }}/> * ``` */ _after: "&::after", /** * Styles for CSS selector `&:empty` */ _empty: "&:empty, &[data-empty]", /** * Styles to apply when the ARIA attribute `aria-expanded` is `true` * - CSS selector `&[aria-expanded=true]` */ _expanded: "&[aria-expanded=true], &[data-expanded], &[data-state=expanded]", /** * Styles to apply when the ARIA attribute `aria-checked` is `true` * - CSS selector `&[aria-checked=true]` */ _checked: "&[aria-checked=true], &[data-checked], &[data-state=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 * <Text _firstLetter={{ textDecoration: 'underline' }}>Once upon a time</Text> * ``` */ _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], &[data-state=indeterminate]", /** * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is open */ _groupOpen: Oe(te.open), /** * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is closed */ _groupClosed: Oe(te.closed), /** * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is hovered */ _groupHover: Oe(te.hover), /** * Styles to apply when a sibling element with `.peer` or `data-peer` is hovered */ _peerHover: We(te.hover), /** * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is focused */ _groupFocus: Oe(te.focus), /** * Styles to apply when a sibling element with `.peer` or `data-peer` is focused */ _peerFocus: We(te.focus), /** * Styles to apply when a parent element with `.group`, `data-group` or `role=group` has visible focus */ _groupFocusVisible: Oe(te.focusVisible), /** * Styles to apply when a sibling element with `.peer`or `data-peer` has visible focus */ _peerFocusVisible: We(te.focusVisible), /** * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is active */ _groupActive: Oe(te.active), /** * Styles to apply when a sibling element with `.peer` or `data-peer` is active */ _peerActive: We(te.active), /** * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is disabled */ _groupDisabled: Oe(te.disabled), /** * Styles to apply when a sibling element with `.peer` or `data-peer` is disabled */ _peerDisabled: We(te.disabled), /** * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is invalid */ _groupInvalid: Oe(te.invalid), /** * Styles to apply when a sibling element with `.peer` or `data-peer` is invalid */ _peerInvalid: We(te.invalid), /** * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is checked */ _groupChecked: Oe(te.checked), /** * Styles to apply when a sibling element with `.peer` or `data-peer` is checked */ _peerChecked: We(te.checked), /** * Styles to apply when a parent element with `.group`, `data-group` or `role=group` has focus within */ _groupFocusWithin: Oe(te.focusWithin), /** * Styles to apply when a sibling element with `.peer` or `data-peer` has focus within */ _peerFocusWithin: We(te.focusWithin), /** * Styles to apply when a sibling element with `.peer` or `data-peer` has placeholder shown */ _peerPlaceholderShown: We(te.placeholderShown), /** * Styles for CSS Selector `&::placeholder`. */ _placeholder: "&::placeholder, &[data-placeholder]", /** * Styles for CSS Selector `&:placeholder-shown`. */ _placeholderShown: "&:placeholder-shown, &[data-placeholder-shown]", /** * Styles for CSS Selector `&:fullscreen`. */ _fullScreen: "&:fullscreen, &[data-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. */ _dar