dgz-ui
Version:
Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript
1,581 lines (1,580 loc) • 327 kB
JavaScript
import { j as H } from "./jsx-runtime-C5mzlN2N.js";
import * as F from "react";
import { useState as rn, useCallback as tt, forwardRef as Fo, useContext as Kl, useLayoutEffect as sm, useRef as nn, useMemo as tn, createContext as lm, Component as cm, Fragment as Co, useEffect as Ri } from "react";
import * as ql from "react-dom";
import { createPortal as fm } from "react-dom";
import { b as dm, c as ec, R as gm, A as pm, C as hm, a as bm } from "./index-DFLDO_Wj.js";
import { t as hn, c as vn } from "./utils-D0f6bOsw.js";
import { c as Cl } from "./index-rKs9bXHr.js";
import { c as qe } from "./index-D_OzDH1f.js";
import { c as vm } from "./index-DDavTYdK.js";
import { u as Yt, c as mm } from "./index-l1ZGtt0d.js";
import { c as Im, u as mn } from "./index-Dmh__Tgi.js";
import { u as Cm } from "./index-Dz-GVg5i.js";
import { D as Am } from "./index-DqTIeHVj.js";
import { P as xm, h as ym, u as Sm, R as Em, F as wm } from "./index-5wlmkpC2.js";
import { u as Al, a as Vo } from "./index-rSIGk0ww.js";
import { P as yt } from "./index-Do92jweN.js";
import { u as Gm } from "./index-DwYXX2sM.js";
import { V as Rm } from "./index-CYIFqWxx.js";
import { c as tc } from "./createLucideIcon-B950nf2d.js";
import { C as Bm } from "./check-DE-1lGDl.js";
var Ii = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function mx(u) {
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
}
/**
* @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 Tm = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], nc = tc("chevron-down", Tm);
/**
* @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 Pm = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], _m = tc("chevron-up", Pm);
function Fm(u) {
const r = F.useRef({ value: u, previous: u });
return F.useMemo(() => (r.current.value !== u && (r.current.previous = r.current.value, r.current.value = u), r.current.previous), [u]);
}
function Tn(u) {
"@babel/helpers - typeof";
return Tn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
return typeof r;
} : function(r) {
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
}, Tn(u);
}
function Vm(u, r) {
if (Tn(u) != "object" || !u) return u;
var i = u[Symbol.toPrimitive];
if (i !== void 0) {
var s = i.call(u, r);
if (Tn(s) != "object") return s;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (r === "string" ? String : Number)(u);
}
function rc(u) {
var r = Vm(u, "string");
return Tn(r) == "symbol" ? r : r + "";
}
function xr(u, r, i) {
return (r = rc(r)) in u ? Object.defineProperty(u, r, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0
}) : u[r] = i, u;
}
function xl(u, r) {
var i = Object.keys(u);
if (Object.getOwnPropertySymbols) {
var s = Object.getOwnPropertySymbols(u);
r && (s = s.filter(function(o) {
return Object.getOwnPropertyDescriptor(u, o).enumerable;
})), i.push.apply(i, s);
}
return i;
}
function j(u) {
for (var r = 1; r < arguments.length; r++) {
var i = arguments[r] != null ? arguments[r] : {};
r % 2 ? xl(Object(i), !0).forEach(function(s) {
xr(u, s, i[s]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(u, Object.getOwnPropertyDescriptors(i)) : xl(Object(i)).forEach(function(s) {
Object.defineProperty(u, s, Object.getOwnPropertyDescriptor(i, s));
});
}
return u;
}
function Om(u) {
if (Array.isArray(u)) return u;
}
function Nm(u, r) {
var i = u == null ? null : typeof Symbol < "u" && u[Symbol.iterator] || u["@@iterator"];
if (i != null) {
var s, o, f, g, b = [], c = !0, h = !1;
try {
if (f = (i = i.call(u)).next, r === 0) {
if (Object(i) !== i) return;
c = !1;
} else for (; !(c = (s = f.call(i)).done) && (b.push(s.value), b.length !== r); c = !0) ;
} catch (I) {
h = !0, o = I;
} finally {
try {
if (!c && i.return != null && (g = i.return(), Object(g) !== g)) return;
} finally {
if (h) throw o;
}
}
return b;
}
}
function Ao(u, r) {
(r == null || r > u.length) && (r = u.length);
for (var i = 0, s = Array(r); i < r; i++) s[i] = u[i];
return s;
}
function ic(u, r) {
if (u) {
if (typeof u == "string") return Ao(u, r);
var i = {}.toString.call(u).slice(8, -1);
return i === "Object" && u.constructor && (i = u.constructor.name), i === "Map" || i === "Set" ? Array.from(u) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? Ao(u, r) : void 0;
}
}
function Mm() {
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 un(u, r) {
return Om(u) || Nm(u, r) || ic(u, r) || Mm();
}
function Wm(u, r) {
if (u == null) return {};
var i = {};
for (var s in u) if ({}.hasOwnProperty.call(u, s)) {
if (r.indexOf(s) !== -1) continue;
i[s] = u[s];
}
return i;
}
function Jt(u, r) {
if (u == null) return {};
var i, s, o = Wm(u, r);
if (Object.getOwnPropertySymbols) {
var f = Object.getOwnPropertySymbols(u);
for (s = 0; s < f.length; s++) i = f[s], r.indexOf(i) === -1 && {}.propertyIsEnumerable.call(u, i) && (o[i] = u[i]);
}
return o;
}
var Xm = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
function uc(u) {
var r = u.defaultInputValue, i = r === void 0 ? "" : r, s = u.defaultMenuIsOpen, o = s === void 0 ? !1 : s, f = u.defaultValue, g = f === void 0 ? null : f, b = u.inputValue, c = u.menuIsOpen, h = u.onChange, I = u.onInputChange, x = u.onMenuClose, O = u.onMenuOpen, P = u.value, B = Jt(u, Xm), S = rn(b !== void 0 ? b : i), C = un(S, 2), w = C[0], T = C[1], _ = rn(c !== void 0 ? c : o), X = un(_, 2), G = X[0], Z = X[1], W = rn(P !== void 0 ? P : g), J = un(W, 2), ee = J[0], me = J[1], Ie = tt(function(pe, De) {
typeof h == "function" && h(pe, De), me(pe);
}, [h]), le = tt(function(pe, De) {
var Je;
typeof I == "function" && (Je = I(pe, De)), T(Je !== void 0 ? Je : pe);
}, [I]), Te = tt(function() {
typeof O == "function" && O(), Z(!0);
}, [O]), we = tt(function() {
typeof x == "function" && x(), Z(!1);
}, [x]), ce = b !== void 0 ? b : w, ie = c !== void 0 ? c : G, Ee = P !== void 0 ? P : ee;
return j(j({}, B), {}, {
inputValue: ce,
menuIsOpen: ie,
onChange: Ie,
onInputChange: le,
onMenuClose: we,
onMenuOpen: Te,
value: Ee
});
}
function $() {
return $ = Object.assign ? Object.assign.bind() : function(u) {
for (var r = 1; r < arguments.length; r++) {
var i = arguments[r];
for (var s in i) ({}).hasOwnProperty.call(i, s) && (u[s] = i[s]);
}
return u;
}, $.apply(null, arguments);
}
function Lm(u, r) {
if (!(u instanceof r)) throw new TypeError("Cannot call a class as a function");
}
function yl(u, r) {
for (var i = 0; i < r.length; i++) {
var s = r[i];
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(u, rc(s.key), s);
}
}
function Dm(u, r, i) {
return r && yl(u.prototype, r), i && yl(u, i), Object.defineProperty(u, "prototype", {
writable: !1
}), u;
}
function xo(u, r) {
return xo = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, s) {
return i.__proto__ = s, i;
}, xo(u, r);
}
function Hm(u, r) {
if (typeof r != "function" && r !== null) throw new TypeError("Super expression must either be null or a function");
u.prototype = Object.create(r && r.prototype, {
constructor: {
value: u,
writable: !0,
configurable: !0
}
}), Object.defineProperty(u, "prototype", {
writable: !1
}), r && xo(u, r);
}
function Bi(u) {
return Bi = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
return r.__proto__ || Object.getPrototypeOf(r);
}, Bi(u);
}
function oc() {
try {
var u = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
}));
} catch {
}
return (oc = function() {
return !!u;
})();
}
function Zm(u) {
if (u === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return u;
}
function Ym(u, r) {
if (r && (Tn(r) == "object" || typeof r == "function")) return r;
if (r !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
return Zm(u);
}
function Jm(u) {
var r = oc();
return function() {
var i, s = Bi(u);
if (r) {
var o = Bi(this).constructor;
i = Reflect.construct(s, arguments, o);
} else i = s.apply(this, arguments);
return Ym(this, i);
};
}
function zm(u) {
if (Array.isArray(u)) return Ao(u);
}
function km(u) {
if (typeof Symbol < "u" && u[Symbol.iterator] != null || u["@@iterator"] != null) return Array.from(u);
}
function Um() {
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 jn(u) {
return zm(u) || km(u) || ic(u) || Um();
}
function jm(u) {
if (u.sheet)
return u.sheet;
for (var r = 0; r < document.styleSheets.length; r++)
if (document.styleSheets[r].ownerNode === u)
return document.styleSheets[r];
}
function Qm(u) {
var r = document.createElement("style");
return r.setAttribute("data-emotion", u.key), u.nonce !== void 0 && r.setAttribute("nonce", u.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
}
var $m = /* @__PURE__ */ function() {
function u(i) {
var s = this;
this._insertTag = function(o) {
var f;
s.tags.length === 0 ? s.insertionPoint ? f = s.insertionPoint.nextSibling : s.prepend ? f = s.container.firstChild : f = s.before : f = s.tags[s.tags.length - 1].nextSibling, s.container.insertBefore(o, f), s.tags.push(o);
}, this.isSpeedy = i.speedy === void 0 ? !0 : i.speedy, this.tags = [], this.ctr = 0, this.nonce = i.nonce, this.key = i.key, this.container = i.container, this.prepend = i.prepend, this.insertionPoint = i.insertionPoint, this.before = null;
}
var r = u.prototype;
return r.hydrate = function(s) {
s.forEach(this._insertTag);
}, r.insert = function(s) {
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Qm(this));
var o = this.tags[this.tags.length - 1];
if (this.isSpeedy) {
var f = jm(o);
try {
f.insertRule(s, f.cssRules.length);
} catch {
}
} else
o.appendChild(document.createTextNode(s));
this.ctr++;
}, r.flush = function() {
this.tags.forEach(function(s) {
var o;
return (o = s.parentNode) == null ? void 0 : o.removeChild(s);
}), this.tags = [], this.ctr = 0;
}, u;
}(), ut = "-ms-", Ti = "-moz-", be = "-webkit-", ac = "comm", Oo = "rule", No = "decl", Km = "@import", sc = "@keyframes", qm = "@layer", eI = Math.abs, Ni = String.fromCharCode, tI = Object.assign;
function nI(u, r) {
return et(u, 0) ^ 45 ? (((r << 2 ^ et(u, 0)) << 2 ^ et(u, 1)) << 2 ^ et(u, 2)) << 2 ^ et(u, 3) : 0;
}
function lc(u) {
return u.trim();
}
function rI(u, r) {
return (u = r.exec(u)) ? u[0] : u;
}
function ve(u, r, i) {
return u.replace(r, i);
}
function yo(u, r) {
return u.indexOf(r);
}
function et(u, r) {
return u.charCodeAt(r) | 0;
}
function wr(u, r, i) {
return u.slice(r, i);
}
function Dt(u) {
return u.length;
}
function Mo(u) {
return u.length;
}
function Ci(u, r) {
return r.push(u), u;
}
function iI(u, r) {
return u.map(r).join("");
}
var Mi = 1, $n = 1, cc = 0, pt = 0, ke = 0, Kn = "";
function Wi(u, r, i, s, o, f, g) {
return { value: u, root: r, parent: i, type: s, props: o, children: f, line: Mi, column: $n, length: g, return: "" };
}
function Cr(u, r) {
return tI(Wi("", null, null, "", null, null, 0), u, { length: -u.length }, r);
}
function uI() {
return ke;
}
function oI() {
return ke = pt > 0 ? et(Kn, --pt) : 0, $n--, ke === 10 && ($n = 1, Mi--), ke;
}
function xt() {
return ke = pt < cc ? et(Kn, pt++) : 0, $n++, ke === 10 && ($n = 1, Mi++), ke;
}
function Zt() {
return et(Kn, pt);
}
function Si() {
return pt;
}
function Br(u, r) {
return wr(Kn, u, r);
}
function Gr(u) {
switch (u) {
// \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 fc(u) {
return Mi = $n = 1, cc = Dt(Kn = u), pt = 0, [];
}
function dc(u) {
return Kn = "", u;
}
function Ei(u) {
return lc(Br(pt - 1, So(u === 91 ? u + 2 : u === 40 ? u + 1 : u)));
}
function aI(u) {
for (; (ke = Zt()) && ke < 33; )
xt();
return Gr(u) > 2 || Gr(ke) > 3 ? "" : " ";
}
function sI(u, r) {
for (; --r && xt() && !(ke < 48 || ke > 102 || ke > 57 && ke < 65 || ke > 70 && ke < 97); )
;
return Br(u, Si() + (r < 6 && Zt() == 32 && xt() == 32));
}
function So(u) {
for (; xt(); )
switch (ke) {
// ] ) " '
case u:
return pt;
// " '
case 34:
case 39:
u !== 34 && u !== 39 && So(ke);
break;
// (
case 40:
u === 41 && So(u);
break;
// \
case 92:
xt();
break;
}
return pt;
}
function lI(u, r) {
for (; xt() && u + ke !== 57; )
if (u + ke === 84 && Zt() === 47)
break;
return "/*" + Br(r, pt - 1) + "*" + Ni(u === 47 ? u : xt());
}
function cI(u) {
for (; !Gr(Zt()); )
xt();
return Br(u, pt);
}
function fI(u) {
return dc(wi("", null, null, null, [""], u = fc(u), 0, [0], u));
}
function wi(u, r, i, s, o, f, g, b, c) {
for (var h = 0, I = 0, x = g, O = 0, P = 0, B = 0, S = 1, C = 1, w = 1, T = 0, _ = "", X = o, G = f, Z = s, W = _; C; )
switch (B = T, T = xt()) {
// (
case 40:
if (B != 108 && et(W, x - 1) == 58) {
yo(W += ve(Ei(T), "&", "&\f"), "&\f") != -1 && (w = -1);
break;
}
// " ' [
case 34:
case 39:
case 91:
W += Ei(T);
break;
// \t \n \r \s
case 9:
case 10:
case 13:
case 32:
W += aI(B);
break;
// \
case 92:
W += sI(Si() - 1, 7);
continue;
// /
case 47:
switch (Zt()) {
case 42:
case 47:
Ci(dI(lI(xt(), Si()), r, i), c);
break;
default:
W += "/";
}
break;
// {
case 123 * S:
b[h++] = Dt(W) * w;
// } ; \0
case 125 * S:
case 59:
case 0:
switch (T) {
// \0 }
case 0:
case 125:
C = 0;
// ;
case 59 + I:
w == -1 && (W = ve(W, /\f/g, "")), P > 0 && Dt(W) - x && Ci(P > 32 ? El(W + ";", s, i, x - 1) : El(ve(W, " ", "") + ";", s, i, x - 2), c);
break;
// @ ;
case 59:
W += ";";
// { rule/at-rule
default:
if (Ci(Z = Sl(W, r, i, h, I, o, b, _, X = [], G = [], x), f), T === 123)
if (I === 0)
wi(W, r, Z, Z, X, f, x, b, G);
else
switch (O === 99 && et(W, 3) === 110 ? 100 : O) {
// d l m s
case 100:
case 108:
case 109:
case 115:
wi(u, Z, Z, s && Ci(Sl(u, Z, Z, 0, 0, o, b, _, o, X = [], x), G), o, G, x, b, s ? X : G);
break;
default:
wi(W, Z, Z, Z, [""], G, 0, b, G);
}
}
h = I = P = 0, S = w = 1, _ = W = "", x = g;
break;
// :
case 58:
x = 1 + Dt(W), P = B;
default:
if (S < 1) {
if (T == 123)
--S;
else if (T == 125 && S++ == 0 && oI() == 125)
continue;
}
switch (W += Ni(T), T * S) {
// &
case 38:
w = I > 0 ? 1 : (W += "\f", -1);
break;
// ,
case 44:
b[h++] = (Dt(W) - 1) * w, w = 1;
break;
// @
case 64:
Zt() === 45 && (W += Ei(xt())), O = Zt(), I = x = Dt(_ = W += cI(Si())), T++;
break;
// -
case 45:
B === 45 && Dt(W) == 2 && (S = 0);
}
}
return f;
}
function Sl(u, r, i, s, o, f, g, b, c, h, I) {
for (var x = o - 1, O = o === 0 ? f : [""], P = Mo(O), B = 0, S = 0, C = 0; B < s; ++B)
for (var w = 0, T = wr(u, x + 1, x = eI(S = g[B])), _ = u; w < P; ++w)
(_ = lc(S > 0 ? O[w] + " " + T : ve(T, /&\f/g, O[w]))) && (c[C++] = _);
return Wi(u, r, i, o === 0 ? Oo : b, c, h, I);
}
function dI(u, r, i) {
return Wi(u, r, i, ac, Ni(uI()), wr(u, 2, -2), 0);
}
function El(u, r, i, s) {
return Wi(u, r, i, No, wr(u, 0, s), wr(u, s + 1, -1), s);
}
function Qn(u, r) {
for (var i = "", s = Mo(u), o = 0; o < s; o++)
i += r(u[o], o, u, r) || "";
return i;
}
function gI(u, r, i, s) {
switch (u.type) {
case qm:
if (u.children.length) break;
case Km:
case No:
return u.return = u.return || u.value;
case ac:
return "";
case sc:
return u.return = u.value + "{" + Qn(u.children, s) + "}";
case Oo:
u.value = u.props.join(",");
}
return Dt(i = Qn(u.children, s)) ? u.return = u.value + "{" + i + "}" : "";
}
function pI(u) {
var r = Mo(u);
return function(i, s, o, f) {
for (var g = "", b = 0; b < r; b++)
g += u[b](i, s, o, f) || "";
return g;
};
}
function hI(u) {
return function(r) {
r.root || (r = r.return) && u(r);
};
}
var bI = function(r, i, s) {
for (var o = 0, f = 0; o = f, f = Zt(), o === 38 && f === 12 && (i[s] = 1), !Gr(f); )
xt();
return Br(r, pt);
}, vI = function(r, i) {
var s = -1, o = 44;
do
switch (Gr(o)) {
case 0:
o === 38 && Zt() === 12 && (i[s] = 1), r[s] += bI(pt - 1, i, s);
break;
case 2:
r[s] += Ei(o);
break;
case 4:
if (o === 44) {
r[++s] = Zt() === 58 ? "&\f" : "", i[s] = r[s].length;
break;
}
// fallthrough
default:
r[s] += Ni(o);
}
while (o = xt());
return r;
}, mI = function(r, i) {
return dc(vI(fc(r), i));
}, wl = /* @__PURE__ */ new WeakMap(), II = function(r) {
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
r.length < 1)) {
for (var i = r.value, s = r.parent, o = r.column === s.column && r.line === s.line; s.type !== "rule"; )
if (s = s.parent, !s) return;
if (!(r.props.length === 1 && i.charCodeAt(0) !== 58 && !wl.get(s)) && !o) {
wl.set(r, !0);
for (var f = [], g = mI(i, f), b = s.props, c = 0, h = 0; c < g.length; c++)
for (var I = 0; I < b.length; I++, h++)
r.props[h] = f[c] ? g[c].replace(/&\f/g, b[I]) : b[I] + " " + g[c];
}
}
}, CI = function(r) {
if (r.type === "decl") {
var i = r.value;
// charcode for l
i.charCodeAt(0) === 108 && // charcode for b
i.charCodeAt(2) === 98 && (r.return = "", r.value = "");
}
};
function gc(u, r) {
switch (nI(u, r)) {
// color-adjust
case 5103:
return be + "print-" + u + u;
// 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 be + u + u;
// appearance, user-select, transform, hyphens, text-size-adjust
case 5349:
case 4246:
case 4810:
case 6968:
case 2756:
return be + u + Ti + u + ut + u + u;
// flex, flex-direction
case 6828:
case 4268:
return be + u + ut + u + u;
// order
case 6165:
return be + u + ut + "flex-" + u + u;
// align-items
case 5187:
return be + u + ve(u, /(\w+).+(:[^]+)/, be + "box-$1$2" + ut + "flex-$1$2") + u;
// align-self
case 5443:
return be + u + ut + "flex-item-" + ve(u, /flex-|-self/, "") + u;
// align-content
case 4675:
return be + u + ut + "flex-line-pack" + ve(u, /align-content|flex-|-self/, "") + u;
// flex-shrink
case 5548:
return be + u + ut + ve(u, "shrink", "negative") + u;
// flex-basis
case 5292:
return be + u + ut + ve(u, "basis", "preferred-size") + u;
// flex-grow
case 6060:
return be + "box-" + ve(u, "-grow", "") + be + u + ut + ve(u, "grow", "positive") + u;
// transition
case 4554:
return be + ve(u, /([^-])(transform)/g, "$1" + be + "$2") + u;
// cursor
case 6187:
return ve(ve(ve(u, /(zoom-|grab)/, be + "$1"), /(image-set)/, be + "$1"), u, "") + u;
// background, background-image
case 5495:
case 3959:
return ve(u, /(image-set\([^]*)/, be + "$1$`$1");
// justify-content
case 4968:
return ve(ve(u, /(.+:)(flex-)?(.*)/, be + "box-pack:$3" + ut + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + be + u + u;
// (margin|padding)-inline-(start|end)
case 4095:
case 3583:
case 4068:
case 2532:
return ve(u, /(.+)-inline(.+)/, be + "$1$2") + u;
// (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 (Dt(u) - 1 - r > 6) switch (et(u, r + 1)) {
// (m)ax-content, (m)in-content
case 109:
if (et(u, r + 4) !== 45) break;
// (f)ill-available, (f)it-content
case 102:
return ve(u, /(.+:)(.+)-([^]+)/, "$1" + be + "$2-$3$1" + Ti + (et(u, r + 3) == 108 ? "$3" : "$2-$3")) + u;
// (s)tretch
case 115:
return ~yo(u, "stretch") ? gc(ve(u, "stretch", "fill-available"), r) + u : u;
}
break;
// position: sticky
case 4949:
if (et(u, r + 1) !== 115) break;
// display: (flex|inline-flex)
case 6444:
switch (et(u, Dt(u) - 3 - (~yo(u, "!important") && 10))) {
// stic(k)y
case 107:
return ve(u, ":", ":" + be) + u;
// (inline-)?fl(e)x
case 101:
return ve(u, /(.+:)([^;!]+)(;|!.+)?/, "$1" + be + (et(u, 14) === 45 ? "inline-" : "") + "box$3$1" + be + "$2$3$1" + ut + "$2box$3") + u;
}
break;
// writing-mode
case 5936:
switch (et(u, r + 11)) {
// vertical-l(r)
case 114:
return be + u + ut + ve(u, /[svh]\w+-[tblr]{2}/, "tb") + u;
// vertical-r(l)
case 108:
return be + u + ut + ve(u, /[svh]\w+-[tblr]{2}/, "tb-rl") + u;
// horizontal(-)tb
case 45:
return be + u + ut + ve(u, /[svh]\w+-[tblr]{2}/, "lr") + u;
}
return be + u + ut + u + u;
}
return u;
}
var AI = function(r, i, s, o) {
if (r.length > -1 && !r.return) switch (r.type) {
case No:
r.return = gc(r.value, r.length);
break;
case sc:
return Qn([Cr(r, {
value: ve(r.value, "@", "@" + be)
})], o);
case Oo:
if (r.length) return iI(r.props, function(f) {
switch (rI(f, /(::plac\w+|:read-\w+)/)) {
// :read-(only|write)
case ":read-only":
case ":read-write":
return Qn([Cr(r, {
props: [ve(f, /:(read-\w+)/, ":" + Ti + "$1")]
})], o);
// :placeholder
case "::placeholder":
return Qn([Cr(r, {
props: [ve(f, /:(plac\w+)/, ":" + be + "input-$1")]
}), Cr(r, {
props: [ve(f, /:(plac\w+)/, ":" + Ti + "$1")]
}), Cr(r, {
props: [ve(f, /:(plac\w+)/, ut + "input-$1")]
})], o);
}
return "";
});
}
}, xI = [AI], yI = function(r) {
var i = r.key;
if (i === "css") {
var s = document.querySelectorAll("style[data-emotion]:not([data-s])");
Array.prototype.forEach.call(s, function(S) {
var C = S.getAttribute("data-emotion");
C.indexOf(" ") !== -1 && (document.head.appendChild(S), S.setAttribute("data-s", ""));
});
}
var o = r.stylisPlugins || xI, f = {}, g, b = [];
g = r.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^="' + i + ' "]'),
function(S) {
for (var C = S.getAttribute("data-emotion").split(" "), w = 1; w < C.length; w++)
f[C[w]] = !0;
b.push(S);
}
);
var c, h = [II, CI];
{
var I, x = [gI, hI(function(S) {
I.insert(S);
})], O = pI(h.concat(o, x)), P = function(C) {
return Qn(fI(C), O);
};
c = function(C, w, T, _) {
I = T, P(C ? C + "{" + w.styles + "}" : w.styles), _ && (B.inserted[w.name] = !0);
};
}
var B = {
key: i,
sheet: new $m({
key: i,
container: g,
nonce: r.nonce,
speedy: r.speedy,
prepend: r.prepend,
insertionPoint: r.insertionPoint
}),
nonce: r.nonce,
inserted: f,
registered: {},
insert: c
};
return B.sheet.hydrate(b), B;
}, Ai = { 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 Gl;
function SI() {
if (Gl) return Ae;
Gl = 1;
var u = typeof Symbol == "function" && Symbol.for, r = u ? Symbol.for("react.element") : 60103, i = u ? Symbol.for("react.portal") : 60106, s = u ? Symbol.for("react.fragment") : 60107, o = u ? Symbol.for("react.strict_mode") : 60108, f = u ? Symbol.for("react.profiler") : 60114, g = u ? Symbol.for("react.provider") : 60109, b = u ? Symbol.for("react.context") : 60110, c = u ? Symbol.for("react.async_mode") : 60111, h = u ? Symbol.for("react.concurrent_mode") : 60111, I = u ? Symbol.for("react.forward_ref") : 60112, x = u ? Symbol.for("react.suspense") : 60113, O = u ? Symbol.for("react.suspense_list") : 60120, P = u ? Symbol.for("react.memo") : 60115, B = u ? Symbol.for("react.lazy") : 60116, S = u ? Symbol.for("react.block") : 60121, C = u ? Symbol.for("react.fundamental") : 60117, w = u ? Symbol.for("react.responder") : 60118, T = u ? Symbol.for("react.scope") : 60119;
function _(G) {
if (typeof G == "object" && G !== null) {
var Z = G.$$typeof;
switch (Z) {
case r:
switch (G = G.type, G) {
case c:
case h:
case s:
case f:
case o:
case x:
return G;
default:
switch (G = G && G.$$typeof, G) {
case b:
case I:
case B:
case P:
case g:
return G;
default:
return Z;
}
}
case i:
return Z;
}
}
}
function X(G) {
return _(G) === h;
}
return Ae.AsyncMode = c, Ae.ConcurrentMode = h, Ae.ContextConsumer = b, Ae.ContextProvider = g, Ae.Element = r, Ae.ForwardRef = I, Ae.Fragment = s, Ae.Lazy = B, Ae.Memo = P, Ae.Portal = i, Ae.Profiler = f, Ae.StrictMode = o, Ae.Suspense = x, Ae.isAsyncMode = function(G) {
return X(G) || _(G) === c;
}, Ae.isConcurrentMode = X, Ae.isContextConsumer = function(G) {
return _(G) === b;
}, Ae.isContextProvider = function(G) {
return _(G) === g;
}, Ae.isElement = function(G) {
return typeof G == "object" && G !== null && G.$$typeof === r;
}, Ae.isForwardRef = function(G) {
return _(G) === I;
}, Ae.isFragment = function(G) {
return _(G) === s;
}, Ae.isLazy = function(G) {
return _(G) === B;
}, Ae.isMemo = function(G) {
return _(G) === P;
}, Ae.isPortal = function(G) {
return _(G) === i;
}, Ae.isProfiler = function(G) {
return _(G) === f;
}, Ae.isStrictMode = function(G) {
return _(G) === o;
}, Ae.isSuspense = function(G) {
return _(G) === x;
}, Ae.isValidElementType = function(G) {
return typeof G == "string" || typeof G == "function" || G === s || G === h || G === f || G === o || G === x || G === O || typeof G == "object" && G !== null && (G.$$typeof === B || G.$$typeof === P || G.$$typeof === g || G.$$typeof === b || G.$$typeof === I || G.$$typeof === C || G.$$typeof === w || G.$$typeof === T || G.$$typeof === S);
}, Ae.typeOf = _, 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 Rl;
function EI() {
return Rl || (Rl = 1, process.env.NODE_ENV !== "production" && function() {
var u = typeof Symbol == "function" && Symbol.for, r = u ? Symbol.for("react.element") : 60103, i = u ? Symbol.for("react.portal") : 60106, s = u ? Symbol.for("react.fragment") : 60107, o = u ? Symbol.for("react.strict_mode") : 60108, f = u ? Symbol.for("react.profiler") : 60114, g = u ? Symbol.for("react.provider") : 60109, b = u ? Symbol.for("react.context") : 60110, c = u ? Symbol.for("react.async_mode") : 60111, h = u ? Symbol.for("react.concurrent_mode") : 60111, I = u ? Symbol.for("react.forward_ref") : 60112, x = u ? Symbol.for("react.suspense") : 60113, O = u ? Symbol.for("react.suspense_list") : 60120, P = u ? Symbol.for("react.memo") : 60115, B = u ? Symbol.for("react.lazy") : 60116, S = u ? Symbol.for("react.block") : 60121, C = u ? Symbol.for("react.fundamental") : 60117, w = u ? Symbol.for("react.responder") : 60118, T = u ? Symbol.for("react.scope") : 60119;
function _(L) {
return typeof L == "string" || typeof L == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
L === s || L === h || L === f || L === o || L === x || L === O || typeof L == "object" && L !== null && (L.$$typeof === B || L.$$typeof === P || L.$$typeof === g || L.$$typeof === b || L.$$typeof === I || L.$$typeof === C || L.$$typeof === w || L.$$typeof === T || L.$$typeof === S);
}
function X(L) {
if (typeof L == "object" && L !== null) {
var nt = L.$$typeof;
switch (nt) {
case r:
var Re = L.type;
switch (Re) {
case c:
case h:
case s:
case f:
case o:
case x:
return Re;
default:
var lt = Re && Re.$$typeof;
switch (lt) {
case b:
case I:
case B:
case P:
case g:
return lt;
default:
return nt;
}
}
case i:
return nt;
}
}
}
var G = c, Z = h, W = b, J = g, ee = r, me = I, Ie = s, le = B, Te = P, we = i, ce = f, ie = o, Ee = x, pe = !1;
function De(L) {
return pe || (pe = !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.")), Je(L) || X(L) === c;
}
function Je(L) {
return X(L) === h;
}
function Me(L) {
return X(L) === b;
}
function Ge(L) {
return X(L) === g;
}
function He(L) {
return typeof L == "object" && L !== null && L.$$typeof === r;
}
function ze(L) {
return X(L) === I;
}
function We(L) {
return X(L) === s;
}
function Ve(L) {
return X(L) === B;
}
function U(L) {
return X(L) === P;
}
function ue(L) {
return X(L) === i;
}
function Pe(L) {
return X(L) === f;
}
function ye(L) {
return X(L) === o;
}
function de(L) {
return X(L) === x;
}
xe.AsyncMode = G, xe.ConcurrentMode = Z, xe.ContextConsumer = W, xe.ContextProvider = J, xe.Element = ee, xe.ForwardRef = me, xe.Fragment = Ie, xe.Lazy = le, xe.Memo = Te, xe.Portal = we, xe.Profiler = ce, xe.StrictMode = ie, xe.Suspense = Ee, xe.isAsyncMode = De, xe.isConcurrentMode = Je, xe.isContextConsumer = Me, xe.isContextProvider = Ge, xe.isElement = He, xe.isForwardRef = ze, xe.isFragment = We, xe.isLazy = Ve, xe.isMemo = U, xe.isPortal = ue, xe.isProfiler = Pe, xe.isStrictMode = ye, xe.isSuspense = de, xe.isValidElementType = _, xe.typeOf = X;
}()), xe;
}
var Bl;
function wI() {
return Bl || (Bl = 1, process.env.NODE_ENV === "production" ? Ai.exports = SI() : Ai.exports = EI()), Ai.exports;
}
var co, Tl;
function GI() {
if (Tl) return co;
Tl = 1;
var u = wI(), r = {
childContextTypes: !0,
contextType: !0,
contextTypes: !0,
defaultProps: !0,
displayName: !0,
getDefaultProps: !0,
getDerivedStateFromError: !0,
getDerivedStateFromProps: !0,
mixins: !0,
propTypes: !0,
type: !0
}, i = {
name: !0,
length: !0,
prototype: !0,
caller: !0,
callee: !0,
arguments: !0,
arity: !0
}, s = {
$$typeof: !0,
render: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0
}, o = {
$$typeof: !0,
compare: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0,
type: !0
}, f = {};
f[u.ForwardRef] = s, f[u.Memo] = o;
function g(B) {
return u.isMemo(B) ? o : f[B.$$typeof] || r;
}
var b = Object.defineProperty, c = Object.getOwnPropertyNames, h = Object.getOwnPropertySymbols, I = Object.getOwnPropertyDescriptor, x = Object.getPrototypeOf, O = Object.prototype;
function P(B, S, C) {
if (typeof S != "string") {
if (O) {
var w = x(S);
w && w !== O && P(B, w, C);
}
var T = c(S);
h && (T = T.concat(h(S)));
for (var _ = g(B), X = g(S), G = 0; G < T.length; ++G) {
var Z = T[G];
if (!i[Z] && !(C && C[Z]) && !(X && X[Z]) && !(_ && _[Z])) {
var W = I(S, Z);
try {
b(B, Z, W);
} catch {
}
}
}
}
return B;
}
return co = P, co;
}
GI();
var RI = !0;
function BI(u, r, i) {
var s = "";
return i.split(" ").forEach(function(o) {
u[o] !== void 0 ? r.push(u[o] + ";") : o && (s += o + " ");
}), s;
}
var pc = function(r, i, s) {
var o = r.key + "-" + i.name;
// we only need to add the styles to the registered cache if the
// class name could be used further down
// the tree but if it's a string tag, we know it won't
// so we don't have to add it to registered cache.
// this improves memory usage since we can avoid storing the whole style string
(s === !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
RI === !1) && r.registered[o] === void 0 && (r.registered[o] = i.styles);
}, TI = function(r, i, s) {
pc(r, i, s);
var o = r.key + "-" + i.name;
if (r.inserted[i.name] === void 0) {
var f = i;
do
r.insert(i === f ? "." + o : "", f, r.sheet, !0), f = f.next;
while (f !== void 0);
}
};
function PI(u) {
for (var r = 0, i, s = 0, o = u.length; o >= 4; ++s, o -= 4)
i = u.charCodeAt(s) & 255 | (u.charCodeAt(++s) & 255) << 8 | (u.charCodeAt(++s) & 255) << 16 | (u.charCodeAt(++s) & 255) << 24, i = /* Math.imul(k, m): */
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16), i ^= /* k >>> r: */
i >>> 24, r = /* Math.imul(k, m): */
(i & 65535) * 1540483477 + ((i >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
switch (o) {
case 3:
r ^= (u.charCodeAt(s + 2) & 255) << 16;
case 2:
r ^= (u.charCodeAt(s + 1) & 255) << 8;
case 1:
r ^= u.charCodeAt(s) & 255, r = /* Math.imul(h, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
}
return r ^= r >>> 13, r = /* Math.imul(h, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
}
var _I = {
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 FI(u) {
var r = /* @__PURE__ */ Object.create(null);
return function(i) {
return r[i] === void 0 && (r[i] = u(i)), r[i];
};
}
var VI = /[A-Z]|^ms/g, OI = /_EMO_([^_]+?)_([^]*?)_EMO_/g, hc = function(r) {
return r.charCodeAt(1) === 45;
}, Pl = function(r) {
return r != null && typeof r != "boolean";
}, fo = /* @__PURE__ */ FI(function(u) {
return hc(u) ? u : u.replace(VI, "-$&").toLowerCase();
}), _l = function(r, i) {
switch (r) {
case "animation":
case "animationName":
if (typeof i == "string")
return i.replace(OI, function(s, o, f) {
return Ht = {
name: o,
styles: f,
next: Ht
}, o;
});
}
return _I[r] !== 1 && !hc(r) && typeof i == "number" && i !== 0 ? i + "px" : i;
};
function Rr(u, r, i) {
if (i == null)
return "";
var s = i;
if (s.__emotion_styles !== void 0)
return s;
switch (typeof i) {
case "boolean":
return "";
case "object": {
var o = i;
if (o.anim === 1)
return Ht = {
name: o.name,
styles: o.styles,
next: Ht
}, o.name;
var f = i;
if (f.styles !== void 0) {
var g = f.next;
if (g !== void 0)
for (; g !== void 0; )
Ht = {
name: g.name,
styles: g.styles,
next: Ht
}, g = g.next;
var b = f.styles + ";";
return b;
}
return NI(u, r, i);
}
case "function": {
if (u !== void 0) {
var c = Ht, h = i(u);
return Ht = c, Rr(u, r, h);
}
break;
}
}
var I = i;
return I;
}
function NI(u, r, i) {
var s = "";
if (Array.isArray(i))
for (var o = 0; o < i.length; o++)
s += Rr(u, r, i[o]) + ";";
else
for (var f in i) {
var g = i[f];
if (typeof g != "object") {
var b = g;
Pl(b) && (s += fo(f) + ":" + _l(f, b) + ";");
} else if (Array.isArray(g) && typeof g[0] == "string" && r == null)
for (var c = 0; c < g.length; c++)
Pl(g[c]) && (s += fo(f) + ":" + _l(f, g[c]) + ";");
else {
var h = Rr(u, r, g);
switch (f) {
case "animation":
case "animationName": {
s += fo(f) + ":" + h + ";";
break;
}
default:
s += f + "{" + h + "}";
}
}
}
return s;
}
var Fl = /label:\s*([^\s;{]+)\s*(;|$)/g, Ht;
function bc(u, r, i) {
if (u.length === 1 && typeof u[0] == "object" && u[0] !== null && u[0].styles !== void 0)
return u[0];
var s = !0, o = "";
Ht = void 0;
var f = u[0];
if (f == null || f.raw === void 0)
s = !1, o += Rr(i, r, f);
else {
var g = f;
o += g[0];
}
for (var b = 1; b < u.length; b++)
if (o += Rr(i, r, u[b]), s) {
var c = f;
o += c[b];
}
Fl.lastIndex = 0;
for (var h = "", I; (I = Fl.exec(o)) !== null; )
h += "-" + I[1];
var x = PI(o) + h;
return {
name: x,
styles: o,
next: Ht
};
}
var MI = function(r) {
return r();
}, WI = F.useInsertionEffect ? F.useInsertionEffect : !1, XI = WI || MI, vc = /* @__PURE__ */ F.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__ */ yI({
key: "css"
}) : null
);
vc.Provider;
var LI = function(r) {
return /* @__PURE__ */ Fo(function(i, s) {
var o = Kl(vc);
return r(i, o, s);
});
}, DI = /* @__PURE__ */ F.createContext({}), Wo = {}.hasOwnProperty, Eo = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", HI = function(r, i) {
var s = {};
for (var o in i)
Wo.call(i, o) && (s[o] = i[o]);
return s[Eo] = r, s;
}, ZI = function(r) {
var i = r.cache, s = r.serialized, o = r.isStringTag;
return pc(i, s, o), XI(function() {
return TI(i, s, o);
}), null;
}, YI = /* @__PURE__ */ LI(function(u, r, i) {
var s = u.css;
typeof s == "string" && r.registered[s] !== void 0 && (s = r.registered[s]);
var o = u[Eo], f = [s], g = "";
typeof u.className == "string" ? g = BI(r.registered, f, u.className) : u.className != null && (g = u.className + " ");
var b = bc(f, void 0, F.useContext(DI));
g += r.key + "-" + b.name;
var c = {};
for (var h in u)
Wo.call(u, h) && h !== "css" && h !== Eo && (c[h] = u[h]);
return c.className = g, i && (c.ref = i), /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement(ZI, {
cache: r,
serialized: b,
isStringTag: typeof o == "string"
}), /* @__PURE__ */ F.createElement(o, c));
}), JI = YI, k = function(r, i) {
var s = arguments;
if (i == null || !Wo.call(i, "css"))
return F.createElement.apply(void 0, s);
var o = s.length, f = new Array(o);
f[0] = JI, f[1] = HI(r, i);
for (var g = 2; g < o; g++)
f[g] = s[g];
return F.createElement.apply(null, f);
};
(function(u) {
var r;
r || (r = u.JSX || (u.JSX = {}));
})(k || (k = {}));
function Xo() {
for (var u = arguments.length, r = new Array(u), i = 0; i < u; i++)
r[i] = arguments[i];
return bc(r);
}
function zI() {
var u = Xo.apply(void 0, arguments), r = "animation-" + u.name;
return {
name: r,
styles: "@keyframes " + r + "{" + u.styles + "}",
anim: 1,
toString: function() {
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
}
};
}
function kI(u, r) {
return r || (r = u.slice(0)), Object.freeze(Object.defineProperties(u, {
raw: {
value: Object.freeze(r)
}
}));
}
var wo = sm, UI = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Pi = function() {
};
function jI(u, r) {
return r ? r[0] === "-" ? u + r : u + "__" + r : u;
}
function QI(u, r) {
for (var i = arguments.length, s = new Array(i > 2 ? i - 2 : 0), o = 2; o < i; o++)
s[o - 2] = arguments[o];
var f = [].concat(s);
if (r && u)
for (var g in r)
r.hasOwnProperty(g) && r[g] && f.push("".concat(jI(u, g)));
return f.filter(function(b) {
return b;
}).map(function(b) {
return String(b).trim();
}).join(" ");
}
var _i = function(r) {
return u1(r) ? r.filter(Boolean) : Tn(r) === "object" && r !== null ? [r] : [];
}, mc = function(r) {
r.className, r.clearValue, r.cx, r.getStyles, r.getClassNames, r.getValue, r.hasValue, r.isMulti, r.isRtl, r.options, r.selectOption, r.selectProps, r.setValue, r.theme;
var i = Jt(r, UI);
return j({}, i);
}, Le = function(r, i, s) {
var o = r.cx, f = r.getStyles, g = r.getClassNames, b = r.className;
return {
css: f(i, r),
className: o(s ?? {}, g(i, r), b)
};
};
function Xi(u) {
return [document.documentElement, document.body, window].indexOf(u) > -1;
}
function $I(u) {
return Xi(u) ? window.innerHeight : u.clientHeight;
}
function Ic(u) {
return Xi(u) ? window.pageYOffset : u.scrollTop;
}
function Fi(u, r) {
if (Xi(u)) {
window.scrollTo(0, r);
return;
}
u.scrollTop = r;
}
function KI(u) {
var r = getComputedStyle(u), i = r.position === "absolute", s = /(auto|scroll)/;
if (r.position === "fixed") return document.documentElement;
for (var o = u; o = o.parentElement; )
if (r = getComputedStyle(o), !(i && r.position === "static") && s.test(r.overflow + r.overflowY + r.overflowX))
return o;
return document.documentElement;
}
function qI(u, r, i, s) {
return i * ((u = u / s - 1) * u * u + 1) + r;
}
function xi(u, r) {
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Pi, o = Ic(u), f = r - o, g = 10, b = 0;
function c() {
b += g;
var h = qI(b, o, f, i);
Fi(u, h), b < i ? window.requestAnimationFrame(c) : s(u);
}
c();
}
function Vl(u, r) {
var i = u.getBoundingClientRect(), s = r.getBoundingClientRect(), o = r.offsetHeight / 3;
s.bottom + o > i.bottom ? Fi(u, Math.min(r.offsetTop + r.clientHeight - u.offsetHeight + o, u.scrollHeight)) : s.top - o < i.top && Fi(u, Math.max(r.offsetTop - o, 0));
}
function e1(u) {
var r = u.getBoundingClientRect();
return {
bottom: r.bottom,
height: r.height,
left: r.left,
right: r.right,
top: r.top,
width: r.width
};
}
function Ol() {
try {
return document.createEvent("TouchEvent"), !0;
} catch {
return !1;
}
}
function t1() {
try {
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
} catch {
return !1;
}
}
var Cc = !1, n1 = {
get passive() {
return Cc = !0;
}
}, yi = typeof window < "u" ? window : {};
yi.addEventListener && yi.removeEventListener && (yi.addEventListener("p", Pi, n1), yi.removeEventListener("p", Pi, !1));
var r1 = Cc;
function i1(u) {
return u != null;
}
function u1(u) {
return Array.isArray(u);
}
function yr(u, r, i) {
return u ? r : i;
}
var o1 = function(r) {
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), o = 1; o < i; o++)
s[o - 1] = arguments[o];
var f = Object.entries(r).filter(function(g) {
var b = un(g, 1), c = b[0];
return !s.includes(c);
});
return f.reduce(function(g, b) {
var c = un(b, 2), h = c[0], I = c[1];
return g[h] = I, g;
}, {});
}, a1 = ["children", "innerProps"], s1 = ["children", "innerProps"];
function l1(u) {
var r = u.maxHeight, i = u.menuEl, s = u.minHeight, o = u.placement, f = u.shouldScroll, g = u.isFixedPosition, b = u.controlHeight, c = KI(i), h = {
placement: "bottom",
maxHeight: r
};
if (!i || !i.offsetParent) return h;
var I = c.getBoundingClientRect(), x = I.height, O = i.getBoundingClientRect(), P = O.bottom, B = O.height, S = O.top, C = i.offsetParent.getBoundingClientRect(), w = C.top, T = g ? window.innerHeight : $I(c), _ = Ic(c), X = parseInt(getComputedStyle(i).marginBottom, 10), G = parseInt(getComputedStyle(i).marginTop, 10), Z = w - G, W = T - S, J = Z + _, ee = x - _ - S, me = P - T + _ + X, Ie = _ + S - G, le = 160;
switch (o) {
case "auto":
case "bottom":
if (W >= B)
return {
placement: "bottom",
maxHeight: r
};
if (ee >= B && !g)
return f && xi(c, me, le), {
placement: "bottom",
maxHeight: r
};
if (!g && ee >= s || g && W >= s) {
f && xi(c, me, le);
var Te = g ? W - X : ee - X;
return {
placement: "bottom",
maxHeight: Te
};
}
if (o === "auto" || g) {
var we = r, ce = g ? Z : J;
return ce >= s && (we = Math.min(ce - X - b, r)), {
placement: "top",
maxHeight: we
};
}