dgz-ui-shared
Version:
Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library
1,294 lines (1,278 loc) • 525 kB
JavaScript
import { a as T, k as Mf, y as Ps, j as Gs, g as Ma, h as Nt, i as Dt, d as Xe, R as yc, b as At, S as Ff, M as Pf, n as Bf } from "./index-BL59b1Bz-C9bJE_xn.js";
import * as O from "react";
import ot, { forwardRef as Vf, useState as kl, useEffect as Uf, useRef as bc, createRef as wl, createElement as Ir, PureComponent as $f, useDebugValue as El, useContext as zf } from "react";
import { o as xc, i as Hf, r as Kf, I as Fa, s as Wf, c as Gf } from "./index-ZsCkaYy6-Cw9HUeiu.js";
import { C as Zf, i as Xf, w as Yf, m as Jf, k as Qf, J as Pa, a as tp, l as _l, b as ze } from "./react-select-DVPHHTAP-D2u3DqGr.js";
import { m as Ct } from "./utils-B6fNqzRf-B1_jG1K7.js";
import { j as Ba, u as ep } from "./button-CdZDBhmr-BT_j3ig5.js";
import * as kc from "react-dom";
import { a as np, n as wc, D as sp, t as rp, b as Ec, F as ip, g as op } from "./index-Cths1nBq-BUfZy21E.js";
import { k as _c, M as ap, R as lp, C as up, d as cp, S as hp } from "./createLucideIcon-B950nf2d-9wLYOF5y.js";
import { s as dp } from "./index-CbK6da4c-d_6FdYZH.js";
function Sl(n, [t, e]) {
return Math.min(e, Math.max(t, 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 fp = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Sc = _c("chevron-down", fp);
var pp = Object.defineProperty, mp = (n, t, e) => t in n ? pp(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, Q = (n, t, e) => mp(n, typeof t != "symbol" ? t + "" : t, e);
/**
* @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 gp = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], vp = _c("chevron-up", gp);
function oi(n) {
const t = O.useRef({ value: n, previous: n });
return O.useMemo(() => (t.current.value !== n && (t.current.previous = t.current.value, t.current.value = n), t.current.previous), [n]);
}
var ai = "Checkbox", [yp, Lw] = Gs(ai), [bp, Va] = yp(ai);
function xp(n) {
const {
__scopeCheckbox: t,
checked: e,
children: s,
defaultChecked: r,
disabled: i,
form: o,
name: a,
onCheckedChange: l,
required: c,
value: f = "on",
// @ts-expect-error
internal_do_not_use_render: v
} = n, [h, d] = Ps({
prop: e,
defaultProp: r ?? !1,
onChange: l,
caller: ai
}), [m, g] = O.useState(null), [x, k] = O.useState(null), w = O.useRef(!1), S = m ? !!o || !!m.closest("form") : (
// We set this to true by default so that events bubble to forms without JS (SSR)
!0
), C = {
checked: h,
disabled: i,
setChecked: d,
control: m,
setControl: g,
name: a,
form: o,
value: f,
hasConsumerStoppedPropagationRef: w,
required: c,
defaultChecked: We(r) ? !1 : r,
isFormControl: S,
bubbleInput: x,
setBubbleInput: k
};
return /* @__PURE__ */ T.jsx(
bp,
{
scope: t,
...C,
children: kp(v) ? v(C) : s
}
);
}
var Ac = "CheckboxTrigger", Cc = O.forwardRef(
({ __scopeCheckbox: n, onKeyDown: t, onClick: e, ...s }, r) => {
const {
control: i,
value: o,
disabled: a,
checked: l,
required: c,
setControl: f,
setChecked: v,
hasConsumerStoppedPropagationRef: h,
isFormControl: d,
bubbleInput: m
} = Va(Ac, n), g = Dt(r, f), x = O.useRef(l);
return O.useEffect(() => {
const k = i == null ? void 0 : i.form;
if (k) {
const w = () => v(x.current);
return k.addEventListener("reset", w), () => k.removeEventListener("reset", w);
}
}, [i, v]), /* @__PURE__ */ T.jsx(
Nt.button,
{
type: "button",
role: "checkbox",
"aria-checked": We(l) ? "mixed" : l,
"aria-required": c,
"data-state": Ic(l),
"data-disabled": a ? "" : void 0,
disabled: a,
value: o,
...s,
ref: g,
onKeyDown: At(t, (k) => {
k.key === "Enter" && k.preventDefault();
}),
onClick: At(e, (k) => {
v((w) => We(w) ? !0 : !w), m && d && (h.current = k.isPropagationStopped(), h.current || k.stopPropagation());
})
}
);
}
);
Cc.displayName = Ac;
var Ua = O.forwardRef(
(n, t) => {
const {
__scopeCheckbox: e,
name: s,
checked: r,
defaultChecked: i,
required: o,
disabled: a,
value: l,
onCheckedChange: c,
form: f,
...v
} = n;
return /* @__PURE__ */ T.jsx(
xp,
{
__scopeCheckbox: e,
checked: r,
defaultChecked: i,
disabled: a,
required: o,
onCheckedChange: c,
name: s,
form: f,
value: l,
internal_do_not_use_render: ({ isFormControl: h }) => /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
/* @__PURE__ */ T.jsx(
Cc,
{
...v,
ref: t,
__scopeCheckbox: e
}
),
h && /* @__PURE__ */ T.jsx(
Rc,
{
__scopeCheckbox: e
}
)
] })
}
);
}
);
Ua.displayName = ai;
var Nc = "CheckboxIndicator", Oc = O.forwardRef(
(n, t) => {
const { __scopeCheckbox: e, forceMount: s, ...r } = n, i = Va(Nc, e);
return /* @__PURE__ */ T.jsx(
yc,
{
present: s || We(i.checked) || i.checked === !0,
children: /* @__PURE__ */ T.jsx(
Nt.span,
{
"data-state": Ic(i.checked),
"data-disabled": i.disabled ? "" : void 0,
...r,
ref: t,
style: { pointerEvents: "none", ...n.style }
}
)
}
);
}
);
Oc.displayName = Nc;
var Tc = "CheckboxBubbleInput", Rc = O.forwardRef(
({ __scopeCheckbox: n, ...t }, e) => {
const {
control: s,
hasConsumerStoppedPropagationRef: r,
checked: i,
defaultChecked: o,
required: a,
disabled: l,
name: c,
value: f,
form: v,
bubbleInput: h,
setBubbleInput: d
} = Va(Tc, n), m = Dt(e, d), g = oi(i), x = Fa(s);
O.useEffect(() => {
const w = h;
if (!w) return;
const S = window.HTMLInputElement.prototype, C = Object.getOwnPropertyDescriptor(
S,
"checked"
).set, E = !r.current;
if (g !== i && C) {
const B = new Event("click", { bubbles: E });
w.indeterminate = We(i), C.call(w, We(i) ? !1 : i), w.dispatchEvent(B);
}
}, [h, g, i, r]);
const k = O.useRef(We(i) ? !1 : i);
return /* @__PURE__ */ T.jsx(
Nt.input,
{
type: "checkbox",
"aria-hidden": !0,
defaultChecked: o ?? k.current,
required: a,
disabled: l,
name: c,
value: f,
form: v,
...t,
tabIndex: -1,
ref: m,
style: {
...t.style,
...x,
position: "absolute",
pointerEvents: "none",
opacity: 0,
margin: 0,
// We transform because the input is absolutely positioned but we have
// rendered it **after** the button. This pulls it back to sit on top
// of the button.
transform: "translateX(-100%)"
}
}
);
}
);
Rc.displayName = Tc;
function kp(n) {
return typeof n == "function";
}
function We(n) {
return n === "indeterminate";
}
function Ic(n) {
return We(n) ? "indeterminate" : n ? "checked" : "unchecked";
}
const wp = O.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ T.jsx(
Ua,
{
ref: e,
className: Ct(
"peer border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:text-primary size-4 shrink-0 rounded-sm border focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
n
),
...t,
children: /* @__PURE__ */ T.jsx(
Oc,
{
className: Ct("flex size-4 items-center justify-center text-current"),
children: t.checked === "indeterminate" ? /* @__PURE__ */ T.jsx(Zf, { className: "text-primary mr-0.5 mb-0.5 size-3.5" }) : /* @__PURE__ */ T.jsx(Xf, { className: "text-primary mr-0.5 mb-0.5 size-3.5" })
}
)
}
));
wp.displayName = Ua.displayName;
const $a = Ba(
"flex h-10 w-full rounded-lg border border-border-alpha-strong px-3 py-2 dark:bg-transparent file:border-0 placeholder:text-secondary placeholder:text-body-sm-regular focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-bg focus-visible:ring-offset-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
{
variants: {
variant: {
default: "focus-visible:ring-item-primary",
failure: "focus-visible:ring-item-destructive bg-item-destructive-focus placeholder:text-item-destructive border-item-destructive text-destructive",
success: "focus-visible:ring-success bg-success/20 placeholder:text-success/80 border-success text-success"
}
},
defaultVariants: {
variant: "default"
}
}
), Ep = O.forwardRef(
({ className: n, type: t, variant: e, ...s }, r) => {
const [i, o] = kl(!1), [a, l] = kl(!1);
return Uf(() => {
o(t === "password");
}, [t]), /* @__PURE__ */ T.jsxs("div", { className: "relative", children: [
/* @__PURE__ */ T.jsx(
"input",
{
type: a ? "text" : t,
className: Ct(
$a({ variant: e }),
n,
i && "pr-10"
),
ref: r,
...s
}
),
i && /* @__PURE__ */ T.jsx(
ep,
{
type: "button",
size: "icon",
variant: "tertiary",
className: "absolute top-1 right-1 size-8 cursor-pointer rounded-md p-2 !ring-0 !ring-offset-0",
onClick: () => {
l(!a);
},
children: a ? /* @__PURE__ */ T.jsx(Yf, {}) : /* @__PURE__ */ T.jsx(Jf, {})
}
)
] });
}
);
Ep.displayName = "Input";
var Gt = function() {
return Gt = Object.assign || function(n) {
for (var t, e = 1, s = arguments.length; e < s; e++) {
t = arguments[e];
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
}
return n;
}, Gt.apply(this, arguments);
};
function ts(n, t, e) {
if (e || arguments.length === 2) for (var s = 0, r = t.length, i; s < r; s++)
(i || !(s in t)) && (i || (i = Array.prototype.slice.call(t, 0, s)), i[s] = t[s]);
return n.concat(i || Array.prototype.slice.call(t));
}
function _p(n) {
var t = /* @__PURE__ */ Object.create(null);
return function(e) {
return t[e] === void 0 && (t[e] = n(e)), t[e];
};
}
var Sp = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Ap = /* @__PURE__ */ _p(
function(n) {
return Sp.test(n) || n.charCodeAt(0) === 111 && n.charCodeAt(1) === 110 && n.charCodeAt(2) < 91;
}
/* Z+1 */
), Et = "-ms-", Ds = "-moz-", bt = "-webkit-", Lc = "comm", li = "rule", za = "decl", Cp = "@import", qc = "@keyframes", Np = "@layer", jc = Math.abs, Ha = String.fromCharCode, Jo = Object.assign;
function Op(n, t) {
return It(n, 0) ^ 45 ? (((t << 2 ^ It(n, 0)) << 2 ^ It(n, 1)) << 2 ^ It(n, 2)) << 2 ^ It(n, 3) : 0;
}
function Dc(n) {
return n.trim();
}
function Te(n, t) {
return (n = t.exec(n)) ? n[0] : n;
}
function dt(n, t, e) {
return n.replace(t, e);
}
function Lr(n, t, e) {
return n.indexOf(t, e);
}
function It(n, t) {
return n.charCodeAt(t) | 0;
}
function es(n, t, e) {
return n.slice(t, e);
}
function ye(n) {
return n.length;
}
function Mc(n) {
return n.length;
}
function Ts(n, t) {
return t.push(n), n;
}
function Tp(n, t) {
return n.map(t).join("");
}
function Al(n, t) {
return n.filter(function(e) {
return !Te(e, t);
});
}
var ui = 1, ns = 1, Fc = 0, ne = 0, Tt = 0, us = "";
function ci(n, t, e, s, r, i, o, a) {
return { value: n, root: t, parent: e, type: s, props: r, children: i, line: ui, column: ns, length: o, return: "", siblings: a };
}
function Ve(n, t) {
return Jo(ci("", null, null, "", null, null, 0, n.siblings), n, { length: -n.length }, t);
}
function Vn(n) {
for (; n.root; )
n = Ve(n.root, { children: [n] });
Ts(n, n.siblings);
}
function Rp() {
return Tt;
}
function Ip() {
return Tt = ne > 0 ? It(us, --ne) : 0, ns--, Tt === 10 && (ns = 1, ui--), Tt;
}
function le() {
return Tt = ne < Fc ? It(us, ne++) : 0, ns++, Tt === 10 && (ns = 1, ui++), Tt;
}
function mn() {
return It(us, ne);
}
function qr() {
return ne;
}
function hi(n, t) {
return es(us, n, t);
}
function Qo(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 Lp(n) {
return ui = ns = 1, Fc = ye(us = n), ne = 0, [];
}
function qp(n) {
return us = "", n;
}
function _o(n) {
return Dc(hi(ne - 1, ta(n === 91 ? n + 2 : n === 40 ? n + 1 : n)));
}
function jp(n) {
for (; (Tt = mn()) && Tt < 33; )
le();
return Qo(n) > 2 || Qo(Tt) > 3 ? "" : " ";
}
function Dp(n, t) {
for (; --t && le() && !(Tt < 48 || Tt > 102 || Tt > 57 && Tt < 65 || Tt > 70 && Tt < 97); )
;
return hi(n, qr() + (t < 6 && mn() == 32 && le() == 32));
}
function ta(n) {
for (; le(); )
switch (Tt) {
// ] ) " '
case n:
return ne;
// " '
case 34:
case 39:
n !== 34 && n !== 39 && ta(Tt);
break;
// (
case 40:
n === 41 && ta(n);
break;
// \
case 92:
le();
break;
}
return ne;
}
function Mp(n, t) {
for (; le() && n + Tt !== 57 && !(n + Tt === 84 && mn() === 47); )
;
return "/*" + hi(t, ne - 1) + "*" + Ha(n === 47 ? n : le());
}
function Fp(n) {
for (; !Qo(mn()); )
le();
return hi(n, ne);
}
function Pp(n) {
return qp(jr("", null, null, null, [""], n = Lp(n), 0, [0], n));
}
function jr(n, t, e, s, r, i, o, a, l) {
for (var c = 0, f = 0, v = o, h = 0, d = 0, m = 0, g = 1, x = 1, k = 1, w = 0, S = "", C = r, E = i, B = s, H = S; x; )
switch (m = w, w = le()) {
// (
case 40:
if (m != 108 && It(H, v - 1) == 58) {
Lr(H += dt(_o(w), "&", "&\f"), "&\f", jc(c ? a[c - 1] : 0)) != -1 && (k = -1);
break;
}
// " ' [
case 34:
case 39:
case 91:
H += _o(w);
break;
// \t \n \r \s
case 9:
case 10:
case 13:
case 32:
H += jp(m);
break;
// \
case 92:
H += Dp(qr() - 1, 7);
continue;
// /
case 47:
switch (mn()) {
case 42:
case 47:
Ts(Bp(Mp(le(), qr()), t, e, l), l);
break;
default:
H += "/";
}
break;
// {
case 123 * g:
a[c++] = ye(H) * k;
// } ; \0
case 125 * g:
case 59:
case 0:
switch (w) {
// \0 }
case 0:
case 125:
x = 0;
// ;
case 59 + f:
k == -1 && (H = dt(H, /\f/g, "")), d > 0 && ye(H) - v && Ts(d > 32 ? Nl(H + ";", s, e, v - 1, l) : Nl(dt(H, " ", "") + ";", s, e, v - 2, l), l);
break;
// @ ;
case 59:
H += ";";
// { rule/at-rule
default:
if (Ts(B = Cl(H, t, e, c, f, r, a, S, C = [], E = [], v, i), i), w === 123)
if (f === 0)
jr(H, t, B, B, C, i, v, a, E);
else
switch (h === 99 && It(H, 3) === 110 ? 100 : h) {
// d l m s
case 100:
case 108:
case 109:
case 115:
jr(n, B, B, s && Ts(Cl(n, B, B, 0, 0, r, a, S, r, C = [], v, E), E), r, E, v, a, s ? C : E);
break;
default:
jr(H, B, B, B, [""], E, 0, a, E);
}
}
c = f = d = 0, g = k = 1, S = H = "", v = o;
break;
// :
case 58:
v = 1 + ye(H), d = m;
default:
if (g < 1) {
if (w == 123)
--g;
else if (w == 125 && g++ == 0 && Ip() == 125)
continue;
}
switch (H += Ha(w), w * g) {
// &
case 38:
k = f > 0 ? 1 : (H += "\f", -1);
break;
// ,
case 44:
a[c++] = (ye(H) - 1) * k, k = 1;
break;
// @
case 64:
mn() === 45 && (H += _o(le())), h = mn(), f = v = ye(S = H += Fp(qr())), w++;
break;
// -
case 45:
m === 45 && ye(H) == 2 && (g = 0);
}
}
return i;
}
function Cl(n, t, e, s, r, i, o, a, l, c, f, v) {
for (var h = r - 1, d = r === 0 ? i : [""], m = Mc(d), g = 0, x = 0, k = 0; g < s; ++g)
for (var w = 0, S = es(n, h + 1, h = jc(x = o[g])), C = n; w < m; ++w)
(C = Dc(x > 0 ? d[w] + " " + S : dt(S, /&\f/g, d[w]))) && (l[k++] = C);
return ci(n, t, e, r === 0 ? li : a, l, c, f, v);
}
function Bp(n, t, e, s) {
return ci(n, t, e, Lc, Ha(Rp()), es(n, 2, -2), 0, s);
}
function Nl(n, t, e, s, r) {
return ci(n, t, e, za, es(n, 0, s), es(n, s + 1, -1), s, r);
}
function Pc(n, t, e) {
switch (Op(n, t)) {
// color-adjust
case 5103:
return bt + "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 bt + n + n;
// tab-size
case 4789:
return Ds + n + n;
// appearance, user-select, transform, hyphens, text-size-adjust
case 5349:
case 4246:
case 4810:
case 6968:
case 2756:
return bt + n + Ds + n + Et + n + n;
// writing-mode
case 5936:
switch (It(n, t + 11)) {
// vertical-l(r)
case 114:
return bt + n + Et + dt(n, /[svh]\w+-[tblr]{2}/, "tb") + n;
// vertical-r(l)
case 108:
return bt + n + Et + dt(n, /[svh]\w+-[tblr]{2}/, "tb-rl") + n;
// horizontal(-)tb
case 45:
return bt + n + Et + dt(n, /[svh]\w+-[tblr]{2}/, "lr") + n;
}
// flex, flex-direction, scroll-snap-type, writing-mode
case 6828:
case 4268:
case 2903:
return bt + n + Et + n + n;
// order
case 6165:
return bt + n + Et + "flex-" + n + n;
// align-items
case 5187:
return bt + n + dt(n, /(\w+).+(:[^]+)/, bt + "box-$1$2" + Et + "flex-$1$2") + n;
// align-self
case 5443:
return bt + n + Et + "flex-item-" + dt(n, /flex-|-self/g, "") + (Te(n, /flex-|baseline/) ? "" : Et + "grid-row-" + dt(n, /flex-|-self/g, "")) + n;
// align-content
case 4675:
return bt + n + Et + "flex-line-pack" + dt(n, /align-content|flex-|-self/g, "") + n;
// flex-shrink
case 5548:
return bt + n + Et + dt(n, "shrink", "negative") + n;
// flex-basis
case 5292:
return bt + n + Et + dt(n, "basis", "preferred-size") + n;
// flex-grow
case 6060:
return bt + "box-" + dt(n, "-grow", "") + bt + n + Et + dt(n, "grow", "positive") + n;
// transition
case 4554:
return bt + dt(n, /([^-])(transform)/g, "$1" + bt + "$2") + n;
// cursor
case 6187:
return dt(dt(dt(n, /(zoom-|grab)/, bt + "$1"), /(image-set)/, bt + "$1"), n, "") + n;
// background, background-image
case 5495:
case 3959:
return dt(n, /(image-set\([^]*)/, bt + "$1$`$1");
// justify-content
case 4968:
return dt(dt(n, /(.+:)(flex-)?(.*)/, bt + "box-pack:$3" + Et + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + bt + n + n;
// justify-self
case 4200:
if (!Te(n, /flex-|baseline/)) return Et + "grid-column-align" + es(n, t) + n;
break;
// grid-template-(columns|rows)
case 2592:
case 3360:
return Et + dt(n, "template-", "") + n;
// grid-(row|column)-start
case 4384:
case 3616:
return e && e.some(function(s, r) {
return t = r, Te(s.props, /grid-\w+-end/);
}) ? ~Lr(n + (e = e[t].value), "span", 0) ? n : Et + dt(n, "-start", "") + n + Et + "grid-row-span:" + (~Lr(e, "span", 0) ? Te(e, /\d+/) : +Te(e, /\d+/) - +Te(n, /\d+/)) + ";" : Et + dt(n, "-start", "") + n;
// grid-(row|column)-end
case 4896:
case 4128:
return e && e.some(function(s) {
return Te(s.props, /grid-\w+-start/);
}) ? n : Et + dt(dt(n, "-end", "-span"), "span ", "") + n;
// (margin|padding)-inline-(start|end)
case 4095:
case 3583:
case 4068:
case 2532:
return dt(n, /(.+)-inline(.+)/, bt + "$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 (ye(n) - 1 - t > 6)
switch (It(n, t + 1)) {
// (m)ax-content, (m)in-content
case 109:
if (It(n, t + 4) !== 45)
break;
// (f)ill-available, (f)it-content
case 102:
return dt(n, /(.+:)(.+)-([^]+)/, "$1" + bt + "$2-$3$1" + Ds + (It(n, t + 3) == 108 ? "$3" : "$2-$3")) + n;
// (s)tretch
case 115:
return ~Lr(n, "stretch", 0) ? Pc(dt(n, "stretch", "fill-available"), t, e) + n : n;
}
break;
// grid-(column|row)
case 5152:
case 5920:
return dt(n, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(s, r, i, o, a, l, c) {
return Et + r + ":" + i + c + (o ? Et + r + "-span:" + (a ? l : +l - +i) + c : "") + n;
});
// position: sticky
case 4949:
if (It(n, t + 6) === 121)
return dt(n, ":", ":" + bt) + n;
break;
// display: (flex|inline-flex|grid|inline-grid)
case 6444:
switch (It(n, It(n, 14) === 45 ? 18 : 11)) {
// (inline-)?fle(x)
case 120:
return dt(n, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + bt + (It(n, 14) === 45 ? "inline-" : "") + "box$3$1" + bt + "$2$3$1" + Et + "$2box$3") + n;
// (inline-)?gri(d)
case 100:
return dt(n, ":", ":" + Et) + n;
}
break;
// scroll-margin, scroll-margin-(top|right|bottom|left)
case 5719:
case 2647:
case 2135:
case 3927:
case 2391:
return dt(n, "scroll-", "scroll-snap-") + n;
}
return n;
}
function Xr(n, t) {
for (var e = "", s = 0; s < n.length; s++)
e += t(n[s], s, n, t) || "";
return e;
}
function Vp(n, t, e, s) {
switch (n.type) {
case Np:
if (n.children.length) break;
case Cp:
case za:
return n.return = n.return || n.value;
case Lc:
return "";
case qc:
return n.return = n.value + "{" + Xr(n.children, s) + "}";
case li:
if (!ye(n.value = n.props.join(","))) return "";
}
return ye(e = Xr(n.children, s)) ? n.return = n.value + "{" + e + "}" : "";
}
function Up(n) {
var t = Mc(n);
return function(e, s, r, i) {
for (var o = "", a = 0; a < t; a++)
o += n[a](e, s, r, i) || "";
return o;
};
}
function $p(n) {
return function(t) {
t.root || (t = t.return) && n(t);
};
}
function zp(n, t, e, s) {
if (n.length > -1 && !n.return)
switch (n.type) {
case za:
n.return = Pc(n.value, n.length, e);
return;
case qc:
return Xr([Ve(n, { value: dt(n.value, "@", "@" + bt) })], s);
case li:
if (n.length)
return Tp(e = n.props, function(r) {
switch (Te(r, s = /(::plac\w+|:read-\w+)/)) {
// :read-(only|write)
case ":read-only":
case ":read-write":
Vn(Ve(n, { props: [dt(r, /:(read-\w+)/, ":" + Ds + "$1")] })), Vn(Ve(n, { props: [r] })), Jo(n, { props: Al(e, s) });
break;
// :placeholder
case "::placeholder":
Vn(Ve(n, { props: [dt(r, /:(plac\w+)/, ":" + bt + "input-$1")] })), Vn(Ve(n, { props: [dt(r, /:(plac\w+)/, ":" + Ds + "$1")] })), Vn(Ve(n, { props: [dt(r, /:(plac\w+)/, Et + "input-$1")] })), Vn(Ve(n, { props: [r] })), Jo(n, { props: Al(e, s) });
break;
}
return "";
});
}
}
var Hp = {
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,
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
}, vn = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Bc = "active", Vc = "data-styled-version", di = "6.1.19", Ka = `/*!sc*/
`, Yr = typeof window < "u" && typeof document < "u", Kp = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Ol = /invalid hook call/i, br = /* @__PURE__ */ new Set(), Wp = function(n, t) {
if (process.env.NODE_ENV !== "production") {
var e = t ? ' with the id of "'.concat(t, '"') : "", s = "The component ".concat(n).concat(e, ` has been created dynamically.
`) + `You may see this warning because you've called styled inside another component.
To resolve this only create new StyledComponents outside of any render method and function component.
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
`, r = console.error;
try {
var i = !0;
console.error = function(o) {
for (var a = [], l = 1; l < arguments.length; l++) a[l - 1] = arguments[l];
Ol.test(o) ? (i = !1, br.delete(s)) : r.apply(void 0, ts([o], a, !1));
}, bc(), i && !br.has(s) && (console.warn(s), br.add(s));
} catch (o) {
Ol.test(o.message) && br.delete(s);
} finally {
console.error = r;
}
}
}, fi = Object.freeze([]), ss = Object.freeze({});
function Gp(n, t, e) {
return e === void 0 && (e = ss), n.theme !== e.theme && n.theme || t || e.theme;
}
var ea = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Zp = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Xp = /(^-|-$)/g;
function Tl(n) {
return n.replace(Zp, "-").replace(Xp, "");
}
var Yp = /(a)(d)/gi, xr = 52, Rl = function(n) {
return String.fromCharCode(n + (n > 25 ? 39 : 97));
};
function na(n) {
var t, e = "";
for (t = Math.abs(n); t > xr; t = t / xr | 0) e = Rl(t % xr) + e;
return (Rl(t % xr) + e).replace(Yp, "$1-$2");
}
var So, Uc = 5381, dn = function(n, t) {
for (var e = t.length; e; ) n = 33 * n ^ t.charCodeAt(--e);
return n;
}, $c = function(n) {
return dn(Uc, n);
};
function Jp(n) {
return na($c(n) >>> 0);
}
function zc(n) {
return process.env.NODE_ENV !== "production" && typeof n == "string" && n || n.displayName || n.name || "Component";
}
function Ao(n) {
return typeof n == "string" && (process.env.NODE_ENV === "production" || n.charAt(0) === n.charAt(0).toLowerCase());
}
var Hc = typeof Symbol == "function" && Symbol.for, Kc = Hc ? Symbol.for("react.memo") : 60115, Qp = Hc ? Symbol.for("react.forward_ref") : 60112, tm = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, em = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Wc = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, nm = ((So = {})[Qp] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, So[Kc] = Wc, So);
function Il(n) {
return ("type" in (t = n) && t.type.$$typeof) === Kc ? Wc : "$$typeof" in n ? nm[n.$$typeof] : tm;
var t;
}
var sm = Object.defineProperty, rm = Object.getOwnPropertyNames, Ll = Object.getOwnPropertySymbols, im = Object.getOwnPropertyDescriptor, om = Object.getPrototypeOf, ql = Object.prototype;
function Gc(n, t, e) {
if (typeof t != "string") {
if (ql) {
var s = om(t);
s && s !== ql && Gc(n, s, e);
}
var r = rm(t);
Ll && (r = r.concat(Ll(t)));
for (var i = Il(n), o = Il(t), a = 0; a < r.length; ++a) {
var l = r[a];
if (!(l in em || e && e[l] || o && l in o || i && l in i)) {
var c = im(t, l);
try {
sm(n, l, c);
} catch {
}
}
}
}
return n;
}
function rs(n) {
return typeof n == "function";
}
function Wa(n) {
return typeof n == "object" && "styledComponentId" in n;
}
function fn(n, t) {
return n && t ? "".concat(n, " ").concat(t) : n || t || "";
}
function jl(n, t) {
if (n.length === 0) return "";
for (var e = n[0], s = 1; s < n.length; s++) e += n[s];
return e;
}
function is(n) {
return n !== null && typeof n == "object" && n.constructor.name === Object.name && !("props" in n && n.$$typeof);
}
function sa(n, t, e) {
if (e === void 0 && (e = !1), !e && !is(n) && !Array.isArray(n)) return t;
if (Array.isArray(t)) for (var s = 0; s < t.length; s++) n[s] = sa(n[s], t[s]);
else if (is(t)) for (var s in t) n[s] = sa(n[s], t[s]);
return n;
}
function Ga(n, t) {
Object.defineProperty(n, "toString", { value: t });
}
var am = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
- Are you trying to reuse it across renders?
- Are you accidentally calling collectStyles twice?
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
- Does this error occur on the client and is your target falsy?
- Does this error occur on the server and is the sheet falsy?
`, 5: `The clone method cannot be used on the client!
- Are you running in a client-like environment on the server?
- Are you trying to run SSR on the client?
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
- Are you using a custom target that isn't mounted?
- Does your document not have a valid head element?
- Have you accidentally removed a style tag manually?
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
`, 14: `ThemeProvider: "theme" prop is required.
`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
as for instance in your render method then you may be running into this limitation.
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
Has styled-components' style tag been unmounted or altered by another script?
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
function lm() {
for (var n = [], t = 0; t < arguments.length; t++) n[t] = arguments[t];
for (var e = n[0], s = [], r = 1, i = n.length; r < i; r += 1) s.push(n[r]);
return s.forEach(function(o) {
e = e.replace(/%[a-z]/, o);
}), e;
}
function cs(n) {
for (var t = [], e = 1; e < arguments.length; e++) t[e - 1] = arguments[e];
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(n, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(lm.apply(void 0, ts([am[n]], t, !1)).trim());
}
var um = function() {
function n(t) {
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
}
return n.prototype.indexOfGroup = function(t) {
for (var e = 0, s = 0; s < t; s++) e += this.groupSizes[s];
return e;
}, n.prototype.insertRules = function(t, e) {
if (t >= this.groupSizes.length) {
for (var s = this.groupSizes, r = s.length, i = r; t >= i; ) if ((i <<= 1) < 0) throw cs(16, "".concat(t));
this.groupSizes = new Uint32Array(i), this.groupSizes.set(s), this.length = i;
for (var o = r; o < i; o++) this.groupSizes[o] = 0;
}
for (var a = this.indexOfGroup(t + 1), l = (o = 0, e.length); o < l; o++) this.tag.insertRule(a, e[o]) && (this.groupSizes[t]++, a++);
}, n.prototype.clearGroup = function(t) {
if (t < this.length) {
var e = this.groupSizes[t], s = this.indexOfGroup(t), r = s + e;
this.groupSizes[t] = 0;
for (var i = s; i < r; i++) this.tag.deleteRule(s);
}
}, n.prototype.getGroup = function(t) {
var e = "";
if (t >= this.length || this.groupSizes[t] === 0) return e;
for (var s = this.groupSizes[t], r = this.indexOfGroup(t), i = r + s, o = r; o < i; o++) e += "".concat(this.tag.getRule(o)).concat(Ka);
return e;
}, n;
}(), cm = 1 << 30, Dr = /* @__PURE__ */ new Map(), Jr = /* @__PURE__ */ new Map(), Mr = 1, kr = function(n) {
if (Dr.has(n)) return Dr.get(n);
for (; Jr.has(Mr); ) Mr++;
var t = Mr++;
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > cm)) throw cs(16, "".concat(t));
return Dr.set(n, t), Jr.set(t, n), t;
}, hm = function(n, t) {
Mr = t + 1, Dr.set(n, t), Jr.set(t, n);
}, dm = "style[".concat(vn, "][").concat(Vc, '="').concat(di, '"]'), fm = new RegExp("^".concat(vn, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), pm = function(n, t, e) {
for (var s, r = e.split(","), i = 0, o = r.length; i < o; i++) (s = r[i]) && n.registerName(t, s);
}, mm = function(n, t) {
for (var e, s = ((e = t.textContent) !== null && e !== void 0 ? e : "").split(Ka), r = [], i = 0, o = s.length; i < o; i++) {
var a = s[i].trim();
if (a) {
var l = a.match(fm);
if (l) {
var c = 0 | parseInt(l[1], 10), f = l[2];
c !== 0 && (hm(f, c), pm(n, f, l[3]), n.getTag().insertRules(c, r)), r.length = 0;
} else r.push(a);
}
}
}, Dl = function(n) {
for (var t = document.querySelectorAll(dm), e = 0, s = t.length; e < s; e++) {
var r = t[e];
r && r.getAttribute(vn) !== Bc && (mm(n, r), r.parentNode && r.parentNode.removeChild(r));
}
};
function gm() {
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
}
var Zc = function(n) {
var t = document.head, e = n || t, s = document.createElement("style"), r = function(a) {
var l = Array.from(a.querySelectorAll("style[".concat(vn, "]")));
return l[l.length - 1];
}(e), i = r !== void 0 ? r.nextSibling : null;
s.setAttribute(vn, Bc), s.setAttribute(Vc, di);
var o = gm();
return o && s.setAttribute("nonce", o), e.insertBefore(s, i), s;
}, vm = function() {
function n(t) {
this.element = Zc(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(e) {
if (e.sheet) return e.sheet;
for (var s = document.styleSheets, r = 0, i = s.length; r < i; r++) {
var o = s[r];
if (o.ownerNode === e) return o;
}
throw cs(17);
}(this.element), this.length = 0;
}
return n.prototype.insertRule = function(t, e) {
try {
return this.sheet.insertRule(e, t), this.length++, !0;
} catch {
return !1;
}
}, n.prototype.deleteRule = function(t) {
this.sheet.deleteRule(t), this.length--;
}, n.prototype.getRule = function(t) {
var e = this.sheet.cssRules[t];
return e && e.cssText ? e.cssText : "";
}, n;
}(), ym = function() {
function n(t) {
this.element = Zc(t), this.nodes = this.element.childNodes, this.length = 0;
}
return n.prototype.insertRule = function(t, e) {
if (t <= this.length && t >= 0) {
var s = document.createTextNode(e);
return this.element.insertBefore(s, this.nodes[t] || null), this.length++, !0;
}
return !1;
}, n.prototype.deleteRule = function(t) {
this.element.removeChild(this.nodes[t]), this.length--;
}, n.prototype.getRule = function(t) {
return t < this.length ? this.nodes[t].textContent : "";
}, n;
}(), bm = function() {
function n(t) {
this.rules = [], this.length = 0;
}
return n.prototype.insertRule = function(t, e) {
return t <= this.length && (this.rules.splice(t, 0, e), this.length++, !0);
}, n.prototype.deleteRule = function(t) {
this.rules.splice(t, 1), this.length--;
}, n.prototype.getRule = function(t) {
return t < this.length ? this.rules[t] : "";
}, n;
}(), Ml = Yr, xm = { isServer: !Yr, useCSSOMInjection: !Kp }, Xc = function() {
function n(t, e, s) {
t === void 0 && (t = ss), e === void 0 && (e = {});
var r = this;
this.options = Gt(Gt({}, xm), t), this.gs = e, this.names = new Map(s), this.server = !!t.isServer, !this.server && Yr && Ml && (Ml = !1, Dl(this)), Ga(this, function() {
return function(i) {
for (var o = i.getTag(), a = o.length, l = "", c = function(v) {
var h = function(k) {
return Jr.get(k);
}(v);
if (h === void 0) return "continue";
var d = i.names.get(h), m = o.getGroup(v);
if (d === void 0 || !d.size || m.length === 0) return "continue";
var g = "".concat(vn, ".g").concat(v, '[id="').concat(h, '"]'), x = "";
d !== void 0 && d.forEach(function(k) {
k.length > 0 && (x += "".concat(k, ","));
}), l += "".concat(m).concat(g, '{content:"').concat(x, '"}').concat(Ka);
}, f = 0; f < a; f++) c(f);
return l;
}(r);
});
}
return n.registerId = function(t) {
return kr(t);
}, n.prototype.rehydrate = function() {
!this.server && Yr && Dl(this);
}, n.prototype.reconstructWithOptions = function(t, e) {
return e === void 0 && (e = !0), new n(Gt(Gt({}, this.options), t), this.gs, e && this.names || void 0);
}, n.prototype.allocateGSInstance = function(t) {
return this.gs[t] = (this.gs[t] || 0) + 1;
}, n.prototype.getTag = function() {
return this.tag || (this.tag = (t = function(e) {
var s = e.useCSSOMInjection, r = e.target;
return e.isServer ? new bm(r) : s ? new vm(r) : new ym(r);
}(this.options), new um(t)));
var t;
}, n.prototype.hasNameForId = function(t, e) {
return this.names.has(t) && this.names.get(t).has(e);
}, n.prototype.registerName = function(t, e) {
if (kr(t), this.names.has(t)) this.names.get(t).add(e);
else {
var s = /* @__PURE__ */ new Set();
s.add(e), this.names.set(t, s);
}
}, n.prototype.insertRules = function(t, e, s) {
this.registerName(t, e), this.getTag().insertRules(kr(t), s);
}, n.prototype.clearNames = function(t) {
this.names.has(t) && this.names.get(t).clear();
}, n.prototype.clearRules = function(t) {
this.getTag().clearGroup(kr(t)), this.clearNames(t);
}, n.prototype.clearTag = function() {
this.tag = void 0;
}, n;
}(), km = /&/g, wm = /^\s*\/\/.*$/gm;
function Yc(n, t) {
return n.map(function(e) {
return e.type === "rule" && (e.value = "".concat(t, " ").concat(e.value), e.value = e.value.replaceAll(",", ",".concat(t, " ")), e.props = e.props.map(function(s) {
return "".concat(t, " ").concat(s);
})), Array.isArray(e.children) && e.type !== "@keyframes" && (e.children = Yc(e.children, t)), e;
});
}
function Em(n) {
var t, e, s, r = ss, i = r.options, o = i === void 0 ? ss : i, a = r.plugins, l = a === void 0 ? fi : a, c = function(h, d, m) {
return m.startsWith(e) && m.endsWith(e) && m.replaceAll(e, "").length > 0 ? ".".concat(t) : h;
}, f = l.slice();
f.push(function(h) {
h.type === li && h.value.includes("&") && (h.props[0] = h.props[0].replace(km, e).replace(s, c));
}), o.prefix && f.push(zp), f.push(Vp);
var v = function(h, d, m, g) {
d === void 0 && (d = ""), m === void 0 && (m = ""), g === void 0 && (g = "&"), t = g, e = d, s = new RegExp("\\".concat(e, "\\b"), "g");
var x = h.replace(wm, ""), k = Pp(m || d ? "".concat(m, " ").concat(d, " { ").concat(x, " }") : x);
o.namespace && (k = Yc(k, o.namespace));
var w = [];
return Xr(k, Up(f.concat($p(function(S) {
return w.push(S);
})))), w;
};
return v.hash = l.length ? l.reduce(function(h, d) {
return d.name || cs(15), dn(h, d.name);
}, Uc).toString() : "", v;
}
var _m = new Xc(), ra = Em(), Jc = ot.createContext({ shouldForwardProp: void 0, styleSheet: _m, stylis: ra });
Jc.Consumer;
ot.createContext(void 0);
function Fl() {
return zf(Jc);
}
var Pl = function() {
function n(t, e) {
var s = this;
this.inject = function(r, i) {
i === void 0 && (i = ra);
var o = s.name + i.hash;
r.hasNameForId(s.id, o) || r.insertRules(s.id, o, i(s.rules, o, "@keyframes"));
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = e, Ga(this, function() {
throw cs(12, String(s.name));
});
}
return n.prototype.getName = function(t)