UNPKG

dgz-ui-shared

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library

1,592 lines 326 kB
import { a as F, y as yl, j as cI, g as _u, h as Ct, x as zt, w as hn, b as Ke, c as lI, M as sI, n as fI } from "./index-DqTIeHVj-CYOpXZHK.js"; import * as W from "react"; import { useState as rn, useMemo as tn, forwardRef as Zu, useEffect as Vo, useCallback as et, useContext as Kl, useRef as nn, useLayoutEffect as dI, createContext as pI, Component as gI, Fragment as yu } from "react"; import * as ql from "react-dom"; import { createPortal as bI } from "react-dom"; import { j as es, V as vI, I as hI, Y as mI, u as II, X as yI } from "./index-DFLDO_Wj-BDd-yI_U.js"; import { c as bn, m as mn } from "./utils-D0f6bOsw-HrLsble-.js"; import { n as CI, h as xI, t as AI } from "./check-DE-1lGDl-24KCJ29m.js"; import { k as ts, M as GI, R as wI, C as BI, d as XI, S as VI } from "./createLucideIcon-B950nf2d-WasJb88J.js"; import { s as RI } from "./index-CYIFqWxx-DtNoIOjh.js"; function Cl(n, [u, o]) { return Math.min(o, Math.max(u, n)); } var Io = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function ax(n) { return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n; } /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const NI = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ns = ts("chevron-down", NI); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const WI = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], SI = ts("chevron-up", WI); function _I(n) { const u = W.useRef({ value: n, previous: n }); return W.useMemo(() => (u.current.value !== n && (u.current.previous = u.current.value, u.current.value = n), u.current.previous), [n]); } function Nn(n) { "@babel/helpers - typeof"; return Nn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) { return typeof u; } : function(u) { return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u; }, Nn(n); } function ZI(n, u) { if (Nn(n) != "object" || !n) return n; var o = n[Symbol.toPrimitive]; if (o !== void 0) { var c = o.call(n, u); if (Nn(c) != "object") return c; throw new TypeError("@@toPrimitive must return a primitive value."); } return (u === "string" ? String : Number)(n); } function rs(n) { var u = ZI(n, "string"); return Nn(u) == "symbol" ? u : u + ""; } function xr(n, u, o) { return (u = rs(u)) in n ? Object.defineProperty(n, u, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : n[u] = o, n; } function xl(n, u) { var o = Object.keys(n); if (Object.getOwnPropertySymbols) { var c = Object.getOwnPropertySymbols(n); u && (c = c.filter(function(i) { return Object.getOwnPropertyDescriptor(n, i).enumerable; })), o.push.apply(o, c); } return o; } function E(n) { for (var u = 1; u < arguments.length; u++) { var o = arguments[u] != null ? arguments[u] : {}; u % 2 ? xl(Object(o), !0).forEach(function(c) { xr(n, c, o[c]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(o)) : xl(Object(o)).forEach(function(c) { Object.defineProperty(n, c, Object.getOwnPropertyDescriptor(o, c)); }); } return n; } function PI(n) { if (Array.isArray(n)) return n; } function OI(n, u) { var o = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"]; if (o != null) { var c, i, p, g, b = [], f = !0, v = !1; try { if (p = (o = o.call(n)).next, u === 0) { if (Object(o) !== o) return; f = !1; } else for (; !(f = (c = p.call(o)).done) && (b.push(c.value), b.length !== u); f = !0) ; } catch (I) { v = !0, i = I; } finally { try { if (!f && o.return != null && (g = o.return(), Object(g) !== g)) return; } finally { if (v) throw i; } } return b; } } function Cu(n, u) { (u == null || u > n.length) && (u = n.length); for (var o = 0, c = Array(u); o < u; o++) c[o] = n[o]; return c; } function os(n, u) { if (n) { if (typeof n == "string") return Cu(n, u); var o = {}.toString.call(n).slice(8, -1); return o === "Object" && n.constructor && (o = n.constructor.name), o === "Map" || o === "Set" ? Array.from(n) : o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o) ? Cu(n, u) : void 0; } } function TI() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function on(n, u) { return PI(n) || OI(n, u) || os(n, u) || TI(); } function HI(n, u) { if (n == null) return {}; var o = {}; for (var c in n) if ({}.hasOwnProperty.call(n, c)) { if (u.indexOf(c) !== -1) continue; o[c] = n[c]; } return o; } function kt(n, u) { if (n == null) return {}; var o, c, i = HI(n, u); if (Object.getOwnPropertySymbols) { var p = Object.getOwnPropertySymbols(n); for (c = 0; c < p.length; c++) o = p[c], u.indexOf(o) === -1 && {}.propertyIsEnumerable.call(n, o) && (i[o] = n[o]); } return i; } var jI = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"]; function is(n) { var u = n.defaultInputValue, o = u === void 0 ? "" : u, c = n.defaultMenuIsOpen, i = c === void 0 ? !1 : c, p = n.defaultValue, g = p === void 0 ? null : p, b = n.inputValue, f = n.menuIsOpen, v = n.onChange, I = n.onInputChange, A = n.onMenuClose, O = n.onMenuOpen, V = n.value, B = kt(n, jI), G = rn(b !== void 0 ? b : o), y = on(G, 2), P = y[0], N = y[1], S = rn(f !== void 0 ? f : i), M = on(S, 2), X = M[0], z = M[1], T = rn(V !== void 0 ? V : g), q = on(T, 2), re = q[0], Ge = q[1], we = et(function(Ie, Me) { typeof v == "function" && v(Ie, Me), Ge(Ie); }, [v]), me = et(function(Ie, Me) { var ze; typeof I == "function" && (ze = I(Ie, Me)), N(ze !== void 0 ? ze : Ie); }, [I]), We = et(function() { typeof O == "function" && O(), z(!0); }, [O]), le = et(function() { typeof A == "function" && A(), z(!1); }, [A]), ae = b !== void 0 ? b : P, pe = f !== void 0 ? f : X, Re = V !== void 0 ? V : re; return E(E({}, B), {}, { inputValue: ae, menuIsOpen: pe, onChange: we, onInputChange: me, onMenuClose: le, onMenuOpen: We, value: Re }); } function Q() { return Q = Object.assign ? Object.assign.bind() : function(n) { for (var u = 1; u < arguments.length; u++) { var o = arguments[u]; for (var c in o) ({}).hasOwnProperty.call(o, c) && (n[c] = o[c]); } return n; }, Q.apply(null, arguments); } function MI(n, u) { if (!(n instanceof u)) throw new TypeError("Cannot call a class as a function"); } function Al(n, u) { for (var o = 0; o < u.length; o++) { var c = u[o]; c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(n, rs(c.key), c); } } function JI(n, u, o) { return u && Al(n.prototype, u), o && Al(n, o), Object.defineProperty(n, "prototype", { writable: !1 }), n; } function xu(n, u) { return xu = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, c) { return o.__proto__ = c, o; }, xu(n, u); } function FI(n, u) { if (typeof u != "function" && u !== null) throw new TypeError("Super expression must either be null or a function"); n.prototype = Object.create(u && u.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), u && xu(n, u); } function Ro(n) { return Ro = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(u) { return u.__proto__ || Object.getPrototypeOf(u); }, Ro(n); } function us() { try { var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (us = function() { return !!n; })(); } function zI(n) { if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return n; } function kI(n, u) { if (u && (Nn(u) == "object" || typeof u == "function")) return u; if (u !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return zI(n); } function LI(n) { var u = us(); return function() { var o, c = Ro(n); if (u) { var i = Ro(this).constructor; o = Reflect.construct(c, arguments, i); } else o = c.apply(this, arguments); return kI(this, o); }; } function YI(n) { if (Array.isArray(n)) return Cu(n); } function EI(n) { if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n); } function DI() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function Un(n) { return YI(n) || EI(n) || os(n) || DI(); } function UI(n) { if (n.sheet) return n.sheet; for (var u = 0; u < document.styleSheets.length; u++) if (document.styleSheets[u].ownerNode === n) return document.styleSheets[u]; } function QI(n) { var u = document.createElement("style"); return u.setAttribute("data-emotion", n.key), n.nonce !== void 0 && u.setAttribute("nonce", n.nonce), u.appendChild(document.createTextNode("")), u.setAttribute("data-s", ""), u; } var $I = /* @__PURE__ */ function() { function n(o) { var c = this; this._insertTag = function(i) { var p; c.tags.length === 0 ? c.insertionPoint ? p = c.insertionPoint.nextSibling : c.prepend ? p = c.container.firstChild : p = c.before : p = c.tags[c.tags.length - 1].nextSibling, c.container.insertBefore(i, p), c.tags.push(i); }, this.isSpeedy = o.speedy === void 0 ? !0 : o.speedy, this.tags = [], this.ctr = 0, this.nonce = o.nonce, this.key = o.key, this.container = o.container, this.prepend = o.prepend, this.insertionPoint = o.insertionPoint, this.before = null; } var u = n.prototype; return u.hydrate = function(o) { o.forEach(this._insertTag); }, u.insert = function(o) { this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(QI(this)); var c = this.tags[this.tags.length - 1]; if (this.isSpeedy) { var i = UI(c); try { i.insertRule(o, i.cssRules.length); } catch { } } else c.appendChild(document.createTextNode(o)); this.ctr++; }, u.flush = function() { this.tags.forEach(function(o) { var c; return (c = o.parentNode) == null ? void 0 : c.removeChild(o); }), this.tags = [], this.ctr = 0; }, n; }(), ot = "-ms-", No = "-moz-", ve = "-webkit-", as = "comm", Pu = "rule", Ou = "decl", KI = "@import", cs = "@keyframes", qI = "@layer", e0 = Math.abs, Oo = String.fromCharCode, t0 = Object.assign; function n0(n, u) { return qe(n, 0) ^ 45 ? (((u << 2 ^ qe(n, 0)) << 2 ^ qe(n, 1)) << 2 ^ qe(n, 2)) << 2 ^ qe(n, 3) : 0; } function ls(n) { return n.trim(); } function r0(n, u) { return (n = u.exec(n)) ? n[0] : n; } function he(n, u, o) { return n.replace(u, o); } function Au(n, u) { return n.indexOf(u); } function qe(n, u) { return n.charCodeAt(u) | 0; } function wr(n, u, o) { return n.slice(u, o); } function Mt(n) { return n.length; } function Tu(n) { return n.length; } function yo(n, u) { return u.push(n), n; } function o0(n, u) { return n.map(u).join(""); } var To = 1, $n = 1, ss = 0, pt = 0, Le = 0, Kn = ""; function Ho(n, u, o, c, i, p, g) { return { value: n, root: u, parent: o, type: c, props: i, children: p, line: To, column: $n, length: g, return: "" }; } function yr(n, u) { return t0(Ho("", null, null, "", null, null, 0), n, { length: -n.length }, u); } function i0() { return Le; } function u0() { return Le = pt > 0 ? qe(Kn, --pt) : 0, $n--, Le === 10 && ($n = 1, To--), Le; } function yt() { return Le = pt < ss ? qe(Kn, pt++) : 0, $n++, Le === 10 && ($n = 1, To++), Le; } function Ft() { return qe(Kn, pt); } function Ao() { return pt; } function Vr(n, u) { return wr(Kn, n, u); } function Br(n) { switch (n) { // \0 \t \n \r \s whitespace token case 0: case 9: case 10: case 13: case 32: return 5; // ! + , / > @ ~ isolate token case 33: case 43: case 44: case 47: case 62: case 64: case 126: // ; { } breakpoint token case 59: case 123: case 125: return 4; // : accompanied token case 58: return 3; // " ' ( [ opening delimit token case 34: case 39: case 40: case 91: return 2; // ) ] closing delimit token case 41: case 93: return 1; } return 0; } function fs(n) { return To = $n = 1, ss = Mt(Kn = n), pt = 0, []; } function ds(n) { return Kn = "", n; } function Go(n) { return ls(Vr(pt - 1, Gu(n === 91 ? n + 2 : n === 40 ? n + 1 : n))); } function a0(n) { for (; (Le = Ft()) && Le < 33; ) yt(); return Br(n) > 2 || Br(Le) > 3 ? "" : " "; } function c0(n, u) { for (; --u && yt() && !(Le < 48 || Le > 102 || Le > 57 && Le < 65 || Le > 70 && Le < 97); ) ; return Vr(n, Ao() + (u < 6 && Ft() == 32 && yt() == 32)); } function Gu(n) { for (; yt(); ) switch (Le) { // ] ) " ' case n: return pt; // " ' case 34: case 39: n !== 34 && n !== 39 && Gu(Le); break; // ( case 40: n === 41 && Gu(n); break; // \ case 92: yt(); break; } return pt; } function l0(n, u) { for (; yt() && n + Le !== 57 && !(n + Le === 84 && Ft() === 47); ) ; return "/*" + Vr(u, pt - 1) + "*" + Oo(n === 47 ? n : yt()); } function s0(n) { for (; !Br(Ft()); ) yt(); return Vr(n, pt); } function f0(n) { return ds(wo("", null, null, null, [""], n = fs(n), 0, [0], n)); } function wo(n, u, o, c, i, p, g, b, f) { for (var v = 0, I = 0, A = g, O = 0, V = 0, B = 0, G = 1, y = 1, P = 1, N = 0, S = "", M = i, X = p, z = c, T = S; y; ) switch (B = N, N = yt()) { // ( case 40: if (B != 108 && qe(T, A - 1) == 58) { Au(T += he(Go(N), "&", "&\f"), "&\f") != -1 && (P = -1); break; } // " ' [ case 34: case 39: case 91: T += Go(N); break; // \t \n \r \s case 9: case 10: case 13: case 32: T += a0(B); break; // \ case 92: T += c0(Ao() - 1, 7); continue; // / case 47: switch (Ft()) { case 42: case 47: yo(d0(l0(yt(), Ao()), u, o), f); break; default: T += "/"; } break; // { case 123 * G: b[v++] = Mt(T) * P; // } ; \0 case 125 * G: case 59: case 0: switch (N) { // \0 } case 0: case 125: y = 0; // ; case 59 + I: P == -1 && (T = he(T, /\f/g, "")), V > 0 && Mt(T) - A && yo(V > 32 ? wl(T + ";", c, o, A - 1) : wl(he(T, " ", "") + ";", c, o, A - 2), f); break; // @ ; case 59: T += ";"; // { rule/at-rule default: if (yo(z = Gl(T, u, o, v, I, i, b, S, M = [], X = [], A), p), N === 123) if (I === 0) wo(T, u, z, z, M, p, A, b, X); else switch (O === 99 && qe(T, 3) === 110 ? 100 : O) { // d l m s case 100: case 108: case 109: case 115: wo(n, z, z, c && yo(Gl(n, z, z, 0, 0, i, b, S, i, M = [], A), X), i, X, A, b, c ? M : X); break; default: wo(T, z, z, z, [""], X, 0, b, X); } } v = I = V = 0, G = P = 1, S = T = "", A = g; break; // : case 58: A = 1 + Mt(T), V = B; default: if (G < 1) { if (N == 123) --G; else if (N == 125 && G++ == 0 && u0() == 125) continue; } switch (T += Oo(N), N * G) { // & case 38: P = I > 0 ? 1 : (T += "\f", -1); break; // , case 44: b[v++] = (Mt(T) - 1) * P, P = 1; break; // @ case 64: Ft() === 45 && (T += Go(yt())), O = Ft(), I = A = Mt(S = T += s0(Ao())), N++; break; // - case 45: B === 45 && Mt(T) == 2 && (G = 0); } } return p; } function Gl(n, u, o, c, i, p, g, b, f, v, I) { for (var A = i - 1, O = i === 0 ? p : [""], V = Tu(O), B = 0, G = 0, y = 0; B < c; ++B) for (var P = 0, N = wr(n, A + 1, A = e0(G = g[B])), S = n; P < V; ++P) (S = ls(G > 0 ? O[P] + " " + N : he(N, /&\f/g, O[P]))) && (f[y++] = S); return Ho(n, u, o, i === 0 ? Pu : b, f, v, I); } function d0(n, u, o) { return Ho(n, u, o, as, Oo(i0()), wr(n, 2, -2), 0); } function wl(n, u, o, c) { return Ho(n, u, o, Ou, wr(n, 0, c), wr(n, c + 1, -1), c); } function Qn(n, u) { for (var o = "", c = Tu(n), i = 0; i < c; i++) o += u(n[i], i, n, u) || ""; return o; } function p0(n, u, o, c) { switch (n.type) { case qI: if (n.children.length) break; case KI: case Ou: return n.return = n.return || n.value; case as: return ""; case cs: return n.return = n.value + "{" + Qn(n.children, c) + "}"; case Pu: n.value = n.props.join(","); } return Mt(o = Qn(n.children, c)) ? n.return = n.value + "{" + o + "}" : ""; } function g0(n) { var u = Tu(n); return function(o, c, i, p) { for (var g = "", b = 0; b < u; b++) g += n[b](o, c, i, p) || ""; return g; }; } function b0(n) { return function(u) { u.root || (u = u.return) && n(u); }; } var v0 = function(n, u, o) { for (var c = 0, i = 0; c = i, i = Ft(), c === 38 && i === 12 && (u[o] = 1), !Br(i); ) yt(); return Vr(n, pt); }, h0 = function(n, u) { var o = -1, c = 44; do switch (Br(c)) { case 0: c === 38 && Ft() === 12 && (u[o] = 1), n[o] += v0(pt - 1, u, o); break; case 2: n[o] += Go(c); break; case 4: if (c === 44) { n[++o] = Ft() === 58 ? "&\f" : "", u[o] = n[o].length; break; } // fallthrough default: n[o] += Oo(c); } while (c = yt()); return n; }, m0 = function(n, u) { return ds(h0(fs(n), u)); }, Bl = /* @__PURE__ */ new WeakMap(), I0 = function(n) { if (!(n.type !== "rule" || !n.parent || // positive .length indicates that this rule contains pseudo // negative .length indicates that this rule has been already prefixed n.length < 1)) { for (var u = n.value, o = n.parent, c = n.column === o.column && n.line === o.line; o.type !== "rule"; ) if (o = o.parent, !o) return; if (!(n.props.length === 1 && u.charCodeAt(0) !== 58 && !Bl.get(o)) && !c) { Bl.set(n, !0); for (var i = [], p = m0(u, i), g = o.props, b = 0, f = 0; b < p.length; b++) for (var v = 0; v < g.length; v++, f++) n.props[f] = i[b] ? p[b].replace(/&\f/g, g[v]) : g[v] + " " + p[b]; } } }, y0 = function(n) { if (n.type === "decl") { var u = n.value; u.charCodeAt(0) === 108 && // charcode for b u.charCodeAt(2) === 98 && (n.return = "", n.value = ""); } }; function ps(n, u) { switch (n0(n, u)) { // color-adjust case 5103: return ve + "print-" + n + n; // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite, case 6391: case 5879: case 5623: case 6135: case 4599: case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: return ve + n + n; // appearance, user-select, transform, hyphens, text-size-adjust case 5349: case 4246: case 4810: case 6968: case 2756: return ve + n + No + n + ot + n + n; // flex, flex-direction case 6828: case 4268: return ve + n + ot + n + n; // order case 6165: return ve + n + ot + "flex-" + n + n; // align-items case 5187: return ve + n + he(n, /(\w+).+(:[^]+)/, ve + "box-$1$2" + ot + "flex-$1$2") + n; // align-self case 5443: return ve + n + ot + "flex-item-" + he(n, /flex-|-self/, "") + n; // align-content case 4675: return ve + n + ot + "flex-line-pack" + he(n, /align-content|flex-|-self/, "") + n; // flex-shrink case 5548: return ve + n + ot + he(n, "shrink", "negative") + n; // flex-basis case 5292: return ve + n + ot + he(n, "basis", "preferred-size") + n; // flex-grow case 6060: return ve + "box-" + he(n, "-grow", "") + ve + n + ot + he(n, "grow", "positive") + n; // transition case 4554: return ve + he(n, /([^-])(transform)/g, "$1" + ve + "$2") + n; // cursor case 6187: return he(he(he(n, /(zoom-|grab)/, ve + "$1"), /(image-set)/, ve + "$1"), n, "") + n; // background, background-image case 5495: case 3959: return he(n, /(image-set\([^]*)/, ve + "$1$`$1"); // justify-content case 4968: return he(he(n, /(.+:)(flex-)?(.*)/, ve + "box-pack:$3" + ot + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + ve + n + n; // (margin|padding)-inline-(start|end) case 4095: case 3583: case 4068: case 2532: return he(n, /(.+)-inline(.+)/, ve + "$1$2") + n; // (min|max)?(width|height|inline-size|block-size) case 8116: case 7059: case 5753: case 5535: case 5445: case 5701: case 4933: case 4677: case 5533: case 5789: case 5021: case 4765: if (Mt(n) - 1 - u > 6) switch (qe(n, u + 1)) { // (m)ax-content, (m)in-content case 109: if (qe(n, u + 4) !== 45) break; // (f)ill-available, (f)it-content case 102: return he(n, /(.+:)(.+)-([^]+)/, "$1" + ve + "$2-$3$1" + No + (qe(n, u + 3) == 108 ? "$3" : "$2-$3")) + n; // (s)tretch case 115: return ~Au(n, "stretch") ? ps(he(n, "stretch", "fill-available"), u) + n : n; } break; // position: sticky case 4949: if (qe(n, u + 1) !== 115) break; // display: (flex|inline-flex) case 6444: switch (qe(n, Mt(n) - 3 - (~Au(n, "!important") && 10))) { // stic(k)y case 107: return he(n, ":", ":" + ve) + n; // (inline-)?fl(e)x case 101: return he(n, /(.+:)([^;!]+)(;|!.+)?/, "$1" + ve + (qe(n, 14) === 45 ? "inline-" : "") + "box$3$1" + ve + "$2$3$1" + ot + "$2box$3") + n; } break; // writing-mode case 5936: switch (qe(n, u + 11)) { // vertical-l(r) case 114: return ve + n + ot + he(n, /[svh]\w+-[tblr]{2}/, "tb") + n; // vertical-r(l) case 108: return ve + n + ot + he(n, /[svh]\w+-[tblr]{2}/, "tb-rl") + n; // horizontal(-)tb case 45: return ve + n + ot + he(n, /[svh]\w+-[tblr]{2}/, "lr") + n; } return ve + n + ot + n + n; } return n; } var C0 = function(n, u, o, c) { if (n.length > -1 && !n.return) switch (n.type) { case Ou: n.return = ps(n.value, n.length); break; case cs: return Qn([yr(n, { value: he(n.value, "@", "@" + ve) })], c); case Pu: if (n.length) return o0(n.props, function(i) { switch (r0(i, /(::plac\w+|:read-\w+)/)) { // :read-(only|write) case ":read-only": case ":read-write": return Qn([yr(n, { props: [he(i, /:(read-\w+)/, ":" + No + "$1")] })], c); // :placeholder case "::placeholder": return Qn([yr(n, { props: [he(i, /:(plac\w+)/, ":" + ve + "input-$1")] }), yr(n, { props: [he(i, /:(plac\w+)/, ":" + No + "$1")] }), yr(n, { props: [he(i, /:(plac\w+)/, ot + "input-$1")] })], c); } return ""; }); } }, x0 = [C0], A0 = function(n) { var u = n.key; if (u === "css") { var o = document.querySelectorAll("style[data-emotion]:not([data-s])"); Array.prototype.forEach.call(o, function(B) { var G = B.getAttribute("data-emotion"); G.indexOf(" ") !== -1 && (document.head.appendChild(B), B.setAttribute("data-s", "")); }); } var c = n.stylisPlugins || x0, i = {}, p, g = []; p = n.container || document.head, Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which // means that the style elements we're looking at are only Emotion 11 server-rendered style elements document.querySelectorAll('style[data-emotion^="' + u + ' "]'), function(B) { for (var G = B.getAttribute("data-emotion").split(" "), y = 1; y < G.length; y++) i[G[y]] = !0; g.push(B); } ); var b, f = [I0, y0]; { var v, I = [p0, b0(function(B) { v.insert(B); })], A = g0(f.concat(c, I)), O = function(B) { return Qn(f0(B), A); }; b = function(B, G, y, P) { v = y, O(B ? B + "{" + G.styles + "}" : G.styles), P && (V.inserted[G.name] = !0); }; } var V = { key: u, sheet: new $I({ key: u, container: p, nonce: n.nonce, speedy: n.speedy, prepend: n.prepend, insertionPoint: n.insertionPoint }), nonce: n.nonce, inserted: i, registered: {}, insert: b }; return V.sheet.hydrate(g), V; }, su = { exports: {} }, Ae = {}; /** @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 Xl; function G0() { if (Xl) return Ae; Xl = 1; var n = typeof Symbol == "function" && Symbol.for, u = n ? Symbol.for("react.element") : 60103, o = n ? Symbol.for("react.portal") : 60106, c = n ? Symbol.for("react.fragment") : 60107, i = n ? Symbol.for("react.strict_mode") : 60108, p = n ? Symbol.for("react.profiler") : 60114, g = n ? Symbol.for("react.provider") : 60109, b = n ? Symbol.for("react.context") : 60110, f = n ? Symbol.for("react.async_mode") : 60111, v = n ? Symbol.for("react.concurrent_mode") : 60111, I = n ? Symbol.for("react.forward_ref") : 60112, A = n ? Symbol.for("react.suspense") : 60113, O = n ? Symbol.for("react.suspense_list") : 60120, V = n ? Symbol.for("react.memo") : 60115, B = n ? Symbol.for("react.lazy") : 60116, G = n ? Symbol.for("react.block") : 60121, y = n ? Symbol.for("react.fundamental") : 60117, P = n ? Symbol.for("react.responder") : 60118, N = n ? Symbol.for("react.scope") : 60119; function S(X) { if (typeof X == "object" && X !== null) { var z = X.$$typeof; switch (z) { case u: switch (X = X.type, X) { case f: case v: case c: case p: case i: case A: return X; default: switch (X = X && X.$$typeof, X) { case b: case I: case B: case V: case g: return X; default: return z; } } case o: return z; } } } function M(X) { return S(X) === v; } return Ae.AsyncMode = f, Ae.ConcurrentMode = v, Ae.ContextConsumer = b, Ae.ContextProvider = g, Ae.Element = u, Ae.ForwardRef = I, Ae.Fragment = c, Ae.Lazy = B, Ae.Memo = V, Ae.Portal = o, Ae.Profiler = p, Ae.StrictMode = i, Ae.Suspense = A, Ae.isAsyncMode = function(X) { return M(X) || S(X) === f; }, Ae.isConcurrentMode = M, Ae.isContextConsumer = function(X) { return S(X) === b; }, Ae.isContextProvider = function(X) { return S(X) === g; }, Ae.isElement = function(X) { return typeof X == "object" && X !== null && X.$$typeof === u; }, Ae.isForwardRef = function(X) { return S(X) === I; }, Ae.isFragment = function(X) { return S(X) === c; }, Ae.isLazy = function(X) { return S(X) === B; }, Ae.isMemo = function(X) { return S(X) === V; }, Ae.isPortal = function(X) { return S(X) === o; }, Ae.isProfiler = function(X) { return S(X) === p; }, Ae.isStrictMode = function(X) { return S(X) === i; }, Ae.isSuspense = function(X) { return S(X) === A; }, Ae.isValidElementType = function(X) { return typeof X == "string" || typeof X == "function" || X === c || X === v || X === p || X === i || X === A || X === O || typeof X == "object" && X !== null && (X.$$typeof === B || X.$$typeof === V || X.$$typeof === g || X.$$typeof === b || X.$$typeof === I || X.$$typeof === y || X.$$typeof === P || X.$$typeof === N || X.$$typeof === G); }, Ae.typeOf = S, Ae; } var Xe = {}; /** @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 Vl; function w0() { return Vl || (Vl = 1, process.env.NODE_ENV !== "production" && function() { var n = typeof Symbol == "function" && Symbol.for, u = n ? Symbol.for("react.element") : 60103, o = n ? Symbol.for("react.portal") : 60106, c = n ? Symbol.for("react.fragment") : 60107, i = n ? Symbol.for("react.strict_mode") : 60108, p = n ? Symbol.for("react.profiler") : 60114, g = n ? Symbol.for("react.provider") : 60109, b = n ? Symbol.for("react.context") : 60110, f = n ? Symbol.for("react.async_mode") : 60111, v = n ? Symbol.for("react.concurrent_mode") : 60111, I = n ? Symbol.for("react.forward_ref") : 60112, A = n ? Symbol.for("react.suspense") : 60113, O = n ? Symbol.for("react.suspense_list") : 60120, V = n ? Symbol.for("react.memo") : 60115, B = n ? Symbol.for("react.lazy") : 60116, G = n ? Symbol.for("react.block") : 60121, y = n ? Symbol.for("react.fundamental") : 60117, P = n ? Symbol.for("react.responder") : 60118, N = n ? Symbol.for("react.scope") : 60119; function S(j) { return typeof j == "string" || typeof j == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. j === c || j === v || j === p || j === i || j === A || j === O || typeof j == "object" && j !== null && (j.$$typeof === B || j.$$typeof === V || j.$$typeof === g || j.$$typeof === b || j.$$typeof === I || j.$$typeof === y || j.$$typeof === P || j.$$typeof === N || j.$$typeof === G); } function M(j) { if (typeof j == "object" && j !== null) { var tt = j.$$typeof; switch (tt) { case u: var ke = j.type; switch (ke) { case f: case v: case c: case p: case i: case A: return ke; default: var xt = ke && ke.$$typeof; switch (xt) { case b: case I: case B: case V: case g: return xt; default: return tt; } } case o: return tt; } } } var X = f, z = v, T = b, q = g, re = u, Ge = I, we = c, me = B, We = V, le = o, ae = p, pe = i, Re = A, Ie = !1; function Me(j) { return Ie || (Ie = !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.")), ze(j) || M(j) === f; } function ze(j) { return M(j) === v; } function ee(j) { return M(j) === b; } function it(j) { return M(j) === g; } function Ue(j) { return typeof j == "object" && j !== null && j.$$typeof === u; } function Oe(j) { return M(j) === I; } function _e(j) { return M(j) === c; } function Te(j) { return M(j) === B; } function D(j) { return M(j) === V; } function ge(j) { return M(j) === o; } function ye(j) { return M(j) === p; } function se(j) { return M(j) === i; } function Ce(j) { return M(j) === A; } Xe.AsyncMode = X, Xe.ConcurrentMode = z, Xe.ContextConsumer = T, Xe.ContextProvider = q, Xe.Element = re, Xe.ForwardRef = Ge, Xe.Fragment = we, Xe.Lazy = me, Xe.Memo = We, Xe.Portal = le, Xe.Profiler = ae, Xe.StrictMode = pe, Xe.Suspense = Re, Xe.isAsyncMode = Me, Xe.isConcurrentMode = ze, Xe.isContextConsumer = ee, Xe.isContextProvider = it, Xe.isElement = Ue, Xe.isForwardRef = Oe, Xe.isFragment = _e, Xe.isLazy = Te, Xe.isMemo = D, Xe.isPortal = ge, Xe.isProfiler = ye, Xe.isStrictMode = se, Xe.isSuspense = Ce, Xe.isValidElementType = S, Xe.typeOf = M; }()), Xe; } var Rl; function B0() { return Rl || (Rl = 1, process.env.NODE_ENV === "production" ? su.exports = G0() : su.exports = w0()), su.exports; } var fu, Nl; function X0() { if (Nl) return fu; Nl = 1; var n = B0(), u = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, o = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, c = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, i = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, p = {}; p[n.ForwardRef] = c, p[n.Memo] = i; function g(B) { return n.isMemo(B) ? i : p[B.$$typeof] || u; } var b = Object.defineProperty, f = Object.getOwnPropertyNames, v = Object.getOwnPropertySymbols, I = Object.getOwnPropertyDescriptor, A = Object.getPrototypeOf, O = Object.prototype; function V(B, G, y) { if (typeof G != "string") { if (O) { var P = A(G); P && P !== O && V(B, P, y); } var N = f(G); v && (N = N.concat(v(G))); for (var S = g(B), M = g(G), X = 0; X < N.length; ++X) { var z = N[X]; if (!o[z] && !(y && y[z]) && !(M && M[z]) && !(S && S[z])) { var T = I(G, z); try { b(B, z, T); } catch { } } } } return B; } return fu = V, fu; } X0(); var V0 = !0; function R0(n, u, o) { var c = ""; return o.split(" ").forEach(function(i) { n[i] !== void 0 ? u.push(n[i] + ";") : i && (c += i + " "); }), c; } var gs = function(n, u, o) { var c = n.key + "-" + u.name; (o === !1 || // we need to always store it if we're in compat mode and // in node since emotion-server relies on whether a style is in // the registered cache to know whether a style is global or not // also, note that this check will be dead code eliminated in the browser V0 === !1) && n.registered[c] === void 0 && (n.registered[c] = u.styles); }, N0 = function(n, u, o) { gs(n, u, o); var c = n.key + "-" + u.name; if (n.inserted[u.name] === void 0) { var i = u; do n.insert(u === i ? "." + c : "", i, n.sheet, !0), i = i.next; while (i !== void 0); } }; function W0(n) { for (var u = 0, o, c = 0, i = n.length; i >= 4; ++c, i -= 4) o = n.charCodeAt(c) & 255 | (n.charCodeAt(++c) & 255) << 8 | (n.charCodeAt(++c) & 255) << 16 | (n.charCodeAt(++c) & 255) << 24, o = /* Math.imul(k, m): */ (o & 65535) * 1540483477 + ((o >>> 16) * 59797 << 16), o ^= /* k >>> r: */ o >>> 24, u = /* Math.imul(k, m): */ (o & 65535) * 1540483477 + ((o >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ (u & 65535) * 1540483477 + ((u >>> 16) * 59797 << 16); switch (i) { case 3: u ^= (n.charCodeAt(c + 2) & 255) << 16; case 2: u ^= (n.charCodeAt(c + 1) & 255) << 8; case 1: u ^= n.charCodeAt(c) & 255, u = /* Math.imul(h, m): */ (u & 65535) * 1540483477 + ((u >>> 16) * 59797 << 16); } return u ^= u >>> 13, u = /* Math.imul(h, m): */ (u & 65535) * 1540483477 + ((u >>> 16) * 59797 << 16), ((u ^ u >>> 15) >>> 0).toString(36); } var S0 = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, // SVG-related properties fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 }; function _0(n) { var u = /* @__PURE__ */ Object.create(null); return function(o) { return u[o] === void 0 && (u[o] = n(o)), u[o]; }; } var Z0 = /[A-Z]|^ms/g, P0 = /_EMO_([^_]+?)_([^]*?)_EMO_/g, bs = function(n) { return n.charCodeAt(1) === 45; }, Wl = function(n) { return n != null && typeof n != "boolean"; }, du = /* @__PURE__ */ _0(function(n) { return bs(n) ? n : n.replace(Z0, "-$&").toLowerCase(); }), Sl = function(n, u) { switch (n) { case "animation": case "animationName": if (typeof u == "string") return u.replace(P0, function(o, c, i) { return Jt = { name: c, styles: i, next: Jt }, c; }); } return S0[n] !== 1 && !bs(n) && typeof u == "number" && u !== 0 ? u + "px" : u; }; function Xr(n, u, o) { if (o == null) return ""; var c = o; if (c.__emotion_styles !== void 0) return c; switch (typeof o) { case "boolean": return ""; case "object": { var i = o; if (i.anim === 1) return Jt = { name: i.name, styles: i.styles, next: Jt }, i.name; var p = o; if (p.styles !== void 0) { var g = p.next; if (g !== void 0) for (; g !== void 0; ) Jt = { name: g.name, styles: g.styles, next: Jt }, g = g.next; var b = p.styles + ";"; return b; } return O0(n, u, o); } case "function": { if (n !== void 0) { var f = Jt, v = o(n); return Jt = f, Xr(n, u, v); } break; } } var I = o; return I; } function O0(n, u, o) { var c = ""; if (Array.isArray(o)) for (var i = 0; i < o.length; i++) c += Xr(n, u, o[i]) + ";"; else for (var p in o) { var g = o[p]; if (typeof g != "object") { var b = g; Wl(b) && (c += du(p) + ":" + Sl(p, b) + ";"); } else if (Array.isArray(g) && typeof g[0] == "string" && u == null) for (var f = 0; f < g.length; f++) Wl(g[f]) && (c += du(p) + ":" + Sl(p, g[f]) + ";"); else { var v = Xr(n, u, g); switch (p) { case "animation": case "animationName": { c += du(p) + ":" + v + ";"; break; } default: c += p + "{" + v + "}"; } } } return c; } var _l = /label:\s*([^\s;{]+)\s*(;|$)/g, Jt; function vs(n, u, o) { if (n.length === 1 && typeof n[0] == "object" && n[0] !== null && n[0].styles !== void 0) return n[0]; var c = !0, i = ""; Jt = void 0; var p = n[0]; if (p == null || p.raw === void 0) c = !1, i += Xr(o, u, p); else { var g = p; i += g[0]; } for (var b = 1; b < n.length; b++) if (i += Xr(o, u, n[b]), c) { var f = p; i += f[b]; } _l.lastIndex = 0; for (var v = "", I; (I = _l.exec(i)) !== null; ) v += "-" + I[1]; var A = W0(i) + v; return { name: A, styles: i, next: Jt }; } var T0 = function(n) { return n(); }, H0 = W.useInsertionEffect ? W.useInsertionEffect : !1, j0 = H0 || T0, hs = /* @__PURE__ */ W.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case // because this module is primarily intended for the browser and node // but it's also required in react native and similar environments sometimes // and we could have a special build just for that // but this is much easier and the native packages // might use a different theme context in the future anyway typeof HTMLElement < "u" ? /* @__PURE__ */ A0({ key: "css" }) : null ); hs.Provider; var M0 = function(n) { return /* @__PURE__ */ Zu(function(u, o) { var c = Kl(hs); return n(u, c, o); }); }, J0 = /* @__PURE__ */ W.createContext({}), Hu = {}.hasOwnProperty, wu = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", F0 = function(n, u) { var o = {}; for (var c in u) Hu.call(u, c) && (o[c] = u[c]); return o[wu] = n, o; }, z0 = function(n) { var u = n.cache, o = n.serialized, c = n.isStringTag; return gs(u, o, c), j0(function() { return N0(u, o, c); }), null; }, k0 = /* @__PURE__ */ M0(function(n, u, o) { var c = n.css; typeof c == "string" && u.registered[c] !== void 0 && (c = u.registered[c]); var i = n[wu], p = [c], g = ""; typeof n.className == "string" ? g = R0(u.registered, p, n.className) : n.className != null && (g = n.className + " "); var b = vs(p, void 0, W.useContext(J0)); g += u.key + "-" + b.name; var f = {}; for (var v in n) Hu.call(n, v) && v !== "css" && v !== wu && (f[v] = n[v]); return f.className = g, o && (f.ref = o), /* @__PURE__ */ W.createElement(W.Fragment, null, /* @__PURE__ */ W.createElement(z0, { cache: u, serialized: b, isStringTag: typeof i == "string" }), /* @__PURE__ */ W.createElement(i, f)); }), L0 = k0, Y = function(n, u) { var o = arguments; if (u == null || !Hu.call(u, "css")) return W.createElement.apply(void 0, o); var c = o.length, i = new Array(c); i[0] = L0, i[1] = F0(n, u); for (var p = 2; p < c; p++) i[p] = o[p]; return W.createElement.apply(null, i); }; (function(n) { var u; u || (u = n.JSX || (n.JSX = {})); })(Y || (Y = {})); function ju() { for (var n = arguments.length, u = new Array(n), o = 0; o < n; o++) u[o] = arguments[o]; return vs(u); } function Y0() { var n = ju.apply(void 0, arguments), u = "animation-" + n.name; return { name: u, styles: "@keyframes " + u + "{" + n.styles + "}", anim: 1, toString: function() { return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; } }; } function E0(n, u) { return u || (u = n.slice(0)), Object.freeze(Object.defineProperties(n, { raw: { value: Object.freeze(u) } })); } var Bu = dI, D0 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Wo = function() { }; function U0(n, u) { return u ? u[0] === "-" ? n + u : n + "__" + u : n; } function Q0(n, u) { for (var o = arguments.length, c = new Array(o > 2 ? o - 2 : 0), i = 2; i < o; i++) c[i - 2] = arguments[i]; var p = [].concat(c); if (u && n) for (var g in u) u.hasOwnProperty(g) && u[g] && p.push("".concat(U0(n, g))); return p.filter(function(b) { return b; }).map(function(b) { return String(b).trim(); }).join(" "); } var So = function(n) { return iy(n) ? n.filter(Boolean) : Nn(n) === "object" && n !== null ? [n] : []; }, ms = function(n) { n.className, n.clearValue, n.cx, n.getStyles, n.getClassNames, n.getValue, n.hasValue, n.isMulti, n.isRtl, n.options, n.selectOption, n.selectProps, n.setValue, n.theme; var u = kt(n, D0); return E({}, u); }, je = function(n, u, o) { var c = n.cx, i = n.getStyles, p = n.getClassNames, g = n.className; return { css: i(u, n), className: c(o ?? {}, p(u, n), g) }; }; function jo(n) { return [document.documentElement, document.body, window].indexOf(n) > -1; } function $0(n) { return jo(n) ? window.innerHeight : n.clientHeight; } function Is(n) { return jo(n) ? window.pageYOffset : n.scrollTop; } function _o(n, u) { if (jo(n)) { window.scrollTo(0, u); return; } n.scrollTop = u; } function K0(n) { var u = getComputedStyle(n), o = u.position === "absolute", c = /(auto|scroll)/; if (u.position === "fixed") return document.documentElement; for (var i = n; i = i.parentElement; ) if (u = getComputedStyle(i), !(o && u.position === "static") && c.test(u.overflow + u.overflowY + u.overflowX)) return i; return document.documentElement; } function q0(n, u, o, c) { return o * ((n = n / c - 1) * n * n + 1) + u; } function Co(n, u) { var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, c = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Wo, i = Is(n), p = u - i, g = 10, b = 0; function f() { b += g; var v = q0(b, i, p, o); _o(n, v), b < o ? window.requestAnimationFrame(f) : c(n); } f(); } function Zl(n, u) { var o = n.getBoundingClientRect(), c = u.getBoundingClientRect(), i = u.offsetHeight / 3; c.bottom + i > o.bottom ? _o(n, Math.min(u.offsetTop + u.clientHeight - n.offsetHeight + i, n.scrollHeight)) : c.top - i < o.top && _o(n, Math.max(u.offsetTop - i, 0)); } function ey(n) { var u = n.getBoundingClientRect(); return { bottom: u.bottom, height: u.height, left: u.left, right: u.right, top: u.top, width: u.width }; } function Pl() { try { return document.createEvent("TouchEvent"), !0; } catch { return !1; } } function ty() { try { return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); } catch { return !1; } } var ys = !1, ny = { get passive() { return ys = !0; } }, xo = typeof window < "u" ? window : {}; xo.addEventListener && xo.removeEventListener && (xo.addEventListener("p", Wo, ny), xo.removeEventListener("p", Wo, !1)); var ry = ys; function oy(n) { return n != null; } function iy(n) { return Array.isArray(n); } function Ar(n, u, o) { return n ? u : o; } var uy = function(n) { for (var u = arguments.length, o = new Array(u > 1 ? u - 1 : 0), c = 1; c < u; c++) o[c - 1] = arguments[c]; var i = Object.entries(n).filter(function(p) { var g = on(p, 1), b = g[0]; return !o.includes(b); }); return i.reduce(function(p, g) { var b = on(g, 2), f = b[0], v = b[1]; return p[f] = v, p; }, {}); }, ay = ["children", "innerProps"], cy = ["children", "innerProps"]; function ly(n) { var u = n.maxHeight, o = n.menuEl, c = n.minHeight, i = n.placement, p = n.shouldScroll, g = n.isFixedPosition, b = n.controlHeight, f = K0(o), v = { placement: "bottom", maxHeight: u }; if (!o || !o.offsetParent) return v; var I = f.getBoundingClientRect(), A = I.height, O = o.getBoundingClientRect(), V = O.bottom, B = O.height, G = O.top, y = o.offsetParent.getBoundingClientRect(), P = y.top, N = g ? window.innerHeight : $0(f), S = Is(f), M = parseInt(getComputedStyle(o).marginBottom, 10), X = parseInt(getComputedStyle(o).marginTop, 10), z = P - X, T = N - G, q = z + S, re = A - S - G, Ge = V - N + S + M, we = S + G - X, me = 160; switch (i) { case "auto": case "bottom": if (T >= B) return { placement: "bottom", maxHeight: u }; if (re >= B && !g) return p && Co(f, Ge, me), { placement: "bottom", maxHeight: u }; if (!g && re >= c || g && T >= c) { p && Co(f, Ge, me); var We = g ? T - M : re - M; return { placement: "bottom", maxHeight: We }; } if (i === "auto" || g) { var le = u, ae = g ? z : q; return ae >= c && (le = Math.min(ae - M - b, u)), { placement: "top", maxHeight: le }; } if (i === "bottom") return p && _o(f, Ge), { placement: "bottom", maxHeight: u }; break; case "top": if (z >= B) return { placement: "top", maxHeight: u }; if (q >= B && !g) return p && Co(f, we, me), { placement: "top", maxHeight: u }; if (!g && q >= c || g && z >= c) { var pe = u; return (!g && q >= c || g && z >= c) && (pe = g ? z - X : q - X), p && Co(f, we, me), { placement: "top", maxHeight: pe }; } return { placement: "bottom", m