dgz-ui-shared
Version:
Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library
1,300 lines (1,284 loc) • 428 kB
JavaScript
import { j as Ut } from "./jsx-runtime-C5mzlN2N.js";
import { a as _e, f as eI, j as _d, R as tI, h as xn, x as Di, y as Ed, b as Aa } from "./index-DqTIeHVj-CYOpXZHK.js";
import * as ye from "react";
import Ce, { useState as Qc, useEffect as rI, createElement as Da, useDebugValue as Zc, useRef as nI, useContext as oI } from "react";
import { F as vd } from "./select-BehdTDP2-BxIxRb2_.js";
import { D as yd } from "./index-DFLDO_Wj-BDd-yI_U.js";
import { C as iI, i as sI, w as aI, m as lI, a as ri } from "./index-Br4MVOGV-CUrOsbmR.js";
import { m as Vt } from "./utils-D0f6bOsw-HrLsble-.js";
import { j as Td, u as uI } from "./check-DE-1lGDl-24KCJ29m.js";
var xi = "Checkbox", [cI, ZS] = _d(xi), [fI, Ja] = cI(xi);
function dI(e) {
const {
__scopeCheckbox: o,
checked: n,
children: s,
defaultChecked: a,
disabled: c,
form: u,
name: p,
onCheckedChange: d,
required: m,
value: E = "on",
// @ts-expect-error
internal_do_not_use_render: y
} = e, [I, O] = Ed({
prop: n,
defaultProp: a ?? !1,
onChange: d,
caller: xi
}), [b, w] = ye.useState(null), [N, A] = ye.useState(null), L = ye.useRef(!1), B = b ? !!u || !!b.closest("form") : (
// We set this to true by default so that events bubble to forms without JS (SSR)
!0
), V = {
checked: I,
disabled: c,
setChecked: O,
control: b,
setControl: w,
name: p,
form: u,
value: E,
hasConsumerStoppedPropagationRef: L,
required: m,
defaultChecked: xr(a) ? !1 : a,
isFormControl: B,
bubbleInput: N,
setBubbleInput: A
};
return /* @__PURE__ */ _e.jsx(
fI,
{
scope: o,
...V,
children: pI(y) ? y(V) : s
}
);
}
var Id = "CheckboxTrigger", bd = ye.forwardRef(
({ __scopeCheckbox: e, onKeyDown: o, onClick: n, ...s }, a) => {
const {
control: c,
value: u,
disabled: p,
checked: d,
required: m,
setControl: E,
setChecked: y,
hasConsumerStoppedPropagationRef: I,
isFormControl: O,
bubbleInput: b
} = Ja(Id, e), w = Di(a, E), N = ye.useRef(d);
return ye.useEffect(() => {
const A = c == null ? void 0 : c.form;
if (A) {
const L = () => y(N.current);
return A.addEventListener("reset", L), () => A.removeEventListener("reset", L);
}
}, [c, y]), /* @__PURE__ */ _e.jsx(
xn.button,
{
type: "button",
role: "checkbox",
"aria-checked": xr(d) ? "mixed" : d,
"aria-required": m,
"data-state": Ad(d),
"data-disabled": p ? "" : void 0,
disabled: p,
value: u,
...s,
ref: w,
onKeyDown: Aa(o, (A) => {
A.key === "Enter" && A.preventDefault();
}),
onClick: Aa(n, (A) => {
y((L) => xr(L) ? !0 : !L), b && O && (I.current = A.isPropagationStopped(), I.current || A.stopPropagation());
})
}
);
}
);
bd.displayName = Id;
var el = ye.forwardRef(
(e, o) => {
const {
__scopeCheckbox: n,
name: s,
checked: a,
defaultChecked: c,
required: u,
disabled: p,
value: d,
onCheckedChange: m,
form: E,
...y
} = e;
return /* @__PURE__ */ _e.jsx(
dI,
{
__scopeCheckbox: n,
checked: a,
defaultChecked: c,
disabled: p,
required: u,
onCheckedChange: m,
name: s,
form: E,
value: d,
internal_do_not_use_render: ({ isFormControl: I }) => /* @__PURE__ */ _e.jsxs(_e.Fragment, { children: [
/* @__PURE__ */ _e.jsx(
bd,
{
...y,
ref: o,
__scopeCheckbox: n
}
),
I && /* @__PURE__ */ _e.jsx(
Od,
{
__scopeCheckbox: n
}
)
] })
}
);
}
);
el.displayName = xi;
var Rd = "CheckboxIndicator", wd = ye.forwardRef(
(e, o) => {
const { __scopeCheckbox: n, forceMount: s, ...a } = e, c = Ja(Rd, n);
return /* @__PURE__ */ _e.jsx(
tI,
{
present: s || xr(c.checked) || c.checked === !0,
children: /* @__PURE__ */ _e.jsx(
xn.span,
{
"data-state": Ad(c.checked),
"data-disabled": c.disabled ? "" : void 0,
...a,
ref: o,
style: { pointerEvents: "none", ...e.style }
}
)
}
);
}
);
wd.displayName = Rd;
var Sd = "CheckboxBubbleInput", Od = ye.forwardRef(
({ __scopeCheckbox: e, ...o }, n) => {
const {
control: s,
hasConsumerStoppedPropagationRef: a,
checked: c,
defaultChecked: u,
required: p,
disabled: d,
name: m,
value: E,
form: y,
bubbleInput: I,
setBubbleInput: O
} = Ja(Sd, e), b = Di(n, O), w = vd(c), N = yd(s);
ye.useEffect(() => {
const L = I;
if (!L) return;
const B = window.HTMLInputElement.prototype, V = Object.getOwnPropertyDescriptor(
B,
"checked"
).set, q = !a.current;
if (w !== c && V) {
const $ = new Event("click", { bubbles: q });
L.indeterminate = xr(c), V.call(L, xr(c) ? !1 : c), L.dispatchEvent($);
}
}, [I, w, c, a]);
const A = ye.useRef(xr(c) ? !1 : c);
return /* @__PURE__ */ _e.jsx(
xn.input,
{
type: "checkbox",
"aria-hidden": !0,
defaultChecked: u ?? A.current,
required: p,
disabled: d,
name: m,
value: E,
form: y,
...o,
tabIndex: -1,
ref: b,
style: {
...o.style,
...N,
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%)"
}
}
);
}
);
Od.displayName = Sd;
function pI(e) {
return typeof e == "function";
}
function xr(e) {
return e === "indeterminate";
}
function Ad(e) {
return xr(e) ? "indeterminate" : e ? "checked" : "unchecked";
}
const hI = ye.forwardRef(({ className: e, ...o }, n) => /* @__PURE__ */ _e.jsx(
el,
{
ref: n,
className: Vt(
"peer size-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
e
),
...o,
children: /* @__PURE__ */ _e.jsx(
wd,
{
className: Vt("flex items-center justify-center text-current size-4"),
children: o.checked === "indeterminate" ? /* @__PURE__ */ _e.jsx(iI, { className: "size-3.5 text-primary mb-0.5 mr-0.5" }) : /* @__PURE__ */ _e.jsx(sI, { className: "size-3.5 text-primary mb-0.5 mr-0.5" })
}
)
}
));
hI.displayName = el.displayName;
const Dd = Td(
"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"
}
}
), xa = ye.forwardRef(
({ className: e, type: o, variant: n, ...s }, a) => {
const [c, u] = Qc(!1), [p, d] = Qc(!1);
return rI(() => {
u(o === "password");
}, [o]), /* @__PURE__ */ _e.jsxs("div", { className: "relative", children: [
/* @__PURE__ */ _e.jsx(
"input",
{
type: p ? "text" : o,
className: Vt(
Dd({ variant: n }),
e,
c && "pr-10"
),
ref: a,
...s
}
),
c && /* @__PURE__ */ _e.jsx(
uI,
{
type: "button",
size: "icon",
variant: "tertiary",
className: "cursor-pointer absolute top-1 right-1 rounded-md p-2 size-8 !ring-0 !ring-offset-0",
onClick: () => {
d(!p);
},
children: p ? /* @__PURE__ */ _e.jsx(aI, {}) : /* @__PURE__ */ _e.jsx(lI, {})
}
)
] });
}
);
xa.displayName = "Input";
var It = function() {
return It = Object.assign || function(e) {
for (var o, n = 1, s = arguments.length; n < s; n++) {
o = arguments[n];
for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (e[a] = o[a]);
}
return e;
}, It.apply(this, arguments);
};
function bn(e, o, n) {
if (n || arguments.length === 2) for (var s = 0, a = o.length, c; s < a; s++)
(c || !(s in o)) && (c || (c = Array.prototype.slice.call(o, 0, s)), c[s] = o[s]);
return e.concat(c || Array.prototype.slice.call(o));
}
function gI(e) {
var o = /* @__PURE__ */ Object.create(null);
return function(n) {
return o[n] === void 0 && (o[n] = e(n)), o[n];
};
}
var mI = /^((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)-.*))$/, _I = /* @__PURE__ */ gI(
function(e) {
return mI.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
}
/* Z+1 */
), Ne = "-ms-", lo = "-moz-", Re = "-webkit-", xd = "comm", Ci = "rule", tl = "decl", EI = "@import", Cd = "@keyframes", vI = "@layer", Ld = Math.abs, rl = String.fromCharCode, Ca = Object.assign;
function yI(e, o) {
return nt(e, 0) ^ 45 ? (((o << 2 ^ nt(e, 0)) << 2 ^ nt(e, 1)) << 2 ^ nt(e, 2)) << 2 ^ nt(e, 3) : 0;
}
function Pd(e) {
return e.trim();
}
function gr(e, o) {
return (e = o.exec(e)) ? e[0] : e;
}
function pe(e, o, n) {
return e.replace(o, n);
}
function gi(e, o, n) {
return e.indexOf(o, n);
}
function nt(e, o) {
return e.charCodeAt(o) | 0;
}
function Rn(e, o, n) {
return e.slice(o, n);
}
function nr(e) {
return e.length;
}
function Md(e) {
return e.length;
}
function so(e, o) {
return o.push(e), e;
}
function TI(e, o) {
return e.map(o).join("");
}
function Jc(e, o) {
return e.filter(function(n) {
return !gr(n, o);
});
}
var Li = 1, wn = 1, Nd = 0, Wt = 0, He = 0, Cn = "";
function Pi(e, o, n, s, a, c, u, p) {
return { value: e, root: o, parent: n, type: s, props: a, children: c, line: Li, column: wn, length: u, return: "", siblings: p };
}
function Dr(e, o) {
return Ca(Pi("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, o);
}
function En(e) {
for (; e.root; )
e = Dr(e.root, { children: [e] });
so(e, e.siblings);
}
function II() {
return He;
}
function bI() {
return He = Wt > 0 ? nt(Cn, --Wt) : 0, wn--, He === 10 && (wn = 1, Li--), He;
}
function Jt() {
return He = Wt < Nd ? nt(Cn, Wt++) : 0, wn++, He === 10 && (wn = 1, Li++), He;
}
function Hr() {
return nt(Cn, Wt);
}
function mi() {
return Wt;
}
function Mi(e, o) {
return Rn(Cn, e, o);
}
function La(e) {
switch (e) {
// \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 RI(e) {
return Li = wn = 1, Nd = nr(Cn = e), Wt = 0, [];
}
function wI(e) {
return Cn = "", e;
}
function ha(e) {
return Pd(Mi(Wt - 1, Pa(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
function SI(e) {
for (; (He = Hr()) && He < 33; )
Jt();
return La(e) > 2 || La(He) > 3 ? "" : " ";
}
function OI(e, o) {
for (; --o && Jt() && !(He < 48 || He > 102 || He > 57 && He < 65 || He > 70 && He < 97); )
;
return Mi(e, mi() + (o < 6 && Hr() == 32 && Jt() == 32));
}
function Pa(e) {
for (; Jt(); )
switch (He) {
// ] ) " '
case e:
return Wt;
// " '
case 34:
case 39:
e !== 34 && e !== 39 && Pa(He);
break;
// (
case 40:
e === 41 && Pa(e);
break;
// \
case 92:
Jt();
break;
}
return Wt;
}
function AI(e, o) {
for (; Jt() && e + He !== 57 && !(e + He === 84 && Hr() === 47); )
;
return "/*" + Mi(o, Wt - 1) + "*" + rl(e === 47 ? e : Jt());
}
function DI(e) {
for (; !La(Hr()); )
Jt();
return Mi(e, Wt);
}
function xI(e) {
return wI(_i("", null, null, null, [""], e = RI(e), 0, [0], e));
}
function _i(e, o, n, s, a, c, u, p, d) {
for (var m = 0, E = 0, y = u, I = 0, O = 0, b = 0, w = 1, N = 1, A = 1, L = 0, B = "", V = a, q = c, $ = s, x = B; N; )
switch (b = L, L = Jt()) {
// (
case 40:
if (b != 108 && nt(x, y - 1) == 58) {
gi(x += pe(ha(L), "&", "&\f"), "&\f", Ld(m ? p[m - 1] : 0)) != -1 && (A = -1);
break;
}
// " ' [
case 34:
case 39:
case 91:
x += ha(L);
break;
// \t \n \r \s
case 9:
case 10:
case 13:
case 32:
x += SI(b);
break;
// \
case 92:
x += OI(mi() - 1, 7);
continue;
// /
case 47:
switch (Hr()) {
case 42:
case 47:
so(CI(AI(Jt(), mi()), o, n, d), d);
break;
default:
x += "/";
}
break;
// {
case 123 * w:
p[m++] = nr(x) * A;
// } ; \0
case 125 * w:
case 59:
case 0:
switch (L) {
// \0 }
case 0:
case 125:
N = 0;
// ;
case 59 + E:
A == -1 && (x = pe(x, /\f/g, "")), O > 0 && nr(x) - y && so(O > 32 ? tf(x + ";", s, n, y - 1, d) : tf(pe(x, " ", "") + ";", s, n, y - 2, d), d);
break;
// @ ;
case 59:
x += ";";
// { rule/at-rule
default:
if (so($ = ef(x, o, n, m, E, a, p, B, V = [], q = [], y, c), c), L === 123)
if (E === 0)
_i(x, o, $, $, V, c, y, p, q);
else
switch (I === 99 && nt(x, 3) === 110 ? 100 : I) {
// d l m s
case 100:
case 108:
case 109:
case 115:
_i(e, $, $, s && so(ef(e, $, $, 0, 0, a, p, B, a, V = [], y, q), q), a, q, y, p, s ? V : q);
break;
default:
_i(x, $, $, $, [""], q, 0, p, q);
}
}
m = E = O = 0, w = A = 1, B = x = "", y = u;
break;
// :
case 58:
y = 1 + nr(x), O = b;
default:
if (w < 1) {
if (L == 123)
--w;
else if (L == 125 && w++ == 0 && bI() == 125)
continue;
}
switch (x += rl(L), L * w) {
// &
case 38:
A = E > 0 ? 1 : (x += "\f", -1);
break;
// ,
case 44:
p[m++] = (nr(x) - 1) * A, A = 1;
break;
// @
case 64:
Hr() === 45 && (x += ha(Jt())), I = Hr(), E = y = nr(B = x += DI(mi())), L++;
break;
// -
case 45:
b === 45 && nr(x) == 2 && (w = 0);
}
}
return c;
}
function ef(e, o, n, s, a, c, u, p, d, m, E, y) {
for (var I = a - 1, O = a === 0 ? c : [""], b = Md(O), w = 0, N = 0, A = 0; w < s; ++w)
for (var L = 0, B = Rn(e, I + 1, I = Ld(N = u[w])), V = e; L < b; ++L)
(V = Pd(N > 0 ? O[L] + " " + B : pe(B, /&\f/g, O[L]))) && (d[A++] = V);
return Pi(e, o, n, a === 0 ? Ci : p, d, m, E, y);
}
function CI(e, o, n, s) {
return Pi(e, o, n, xd, rl(II()), Rn(e, 2, -2), 0, s);
}
function tf(e, o, n, s, a) {
return Pi(e, o, n, tl, Rn(e, 0, s), Rn(e, s + 1, -1), s, a);
}
function Gd(e, o, n) {
switch (yI(e, o)) {
// color-adjust
case 5103:
return Re + "print-" + e + e;
// 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 Re + e + e;
// tab-size
case 4789:
return lo + e + e;
// appearance, user-select, transform, hyphens, text-size-adjust
case 5349:
case 4246:
case 4810:
case 6968:
case 2756:
return Re + e + lo + e + Ne + e + e;
// writing-mode
case 5936:
switch (nt(e, o + 11)) {
// vertical-l(r)
case 114:
return Re + e + Ne + pe(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
// vertical-r(l)
case 108:
return Re + e + Ne + pe(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
// horizontal(-)tb
case 45:
return Re + e + Ne + pe(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
}
// flex, flex-direction, scroll-snap-type, writing-mode
case 6828:
case 4268:
case 2903:
return Re + e + Ne + e + e;
// order
case 6165:
return Re + e + Ne + "flex-" + e + e;
// align-items
case 5187:
return Re + e + pe(e, /(\w+).+(:[^]+)/, Re + "box-$1$2" + Ne + "flex-$1$2") + e;
// align-self
case 5443:
return Re + e + Ne + "flex-item-" + pe(e, /flex-|-self/g, "") + (gr(e, /flex-|baseline/) ? "" : Ne + "grid-row-" + pe(e, /flex-|-self/g, "")) + e;
// align-content
case 4675:
return Re + e + Ne + "flex-line-pack" + pe(e, /align-content|flex-|-self/g, "") + e;
// flex-shrink
case 5548:
return Re + e + Ne + pe(e, "shrink", "negative") + e;
// flex-basis
case 5292:
return Re + e + Ne + pe(e, "basis", "preferred-size") + e;
// flex-grow
case 6060:
return Re + "box-" + pe(e, "-grow", "") + Re + e + Ne + pe(e, "grow", "positive") + e;
// transition
case 4554:
return Re + pe(e, /([^-])(transform)/g, "$1" + Re + "$2") + e;
// cursor
case 6187:
return pe(pe(pe(e, /(zoom-|grab)/, Re + "$1"), /(image-set)/, Re + "$1"), e, "") + e;
// background, background-image
case 5495:
case 3959:
return pe(e, /(image-set\([^]*)/, Re + "$1$`$1");
// justify-content
case 4968:
return pe(pe(e, /(.+:)(flex-)?(.*)/, Re + "box-pack:$3" + Ne + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Re + e + e;
// justify-self
case 4200:
if (!gr(e, /flex-|baseline/)) return Ne + "grid-column-align" + Rn(e, o) + e;
break;
// grid-template-(columns|rows)
case 2592:
case 3360:
return Ne + pe(e, "template-", "") + e;
// grid-(row|column)-start
case 4384:
case 3616:
return n && n.some(function(s, a) {
return o = a, gr(s.props, /grid-\w+-end/);
}) ? ~gi(e + (n = n[o].value), "span", 0) ? e : Ne + pe(e, "-start", "") + e + Ne + "grid-row-span:" + (~gi(n, "span", 0) ? gr(n, /\d+/) : +gr(n, /\d+/) - +gr(e, /\d+/)) + ";" : Ne + pe(e, "-start", "") + e;
// grid-(row|column)-end
case 4896:
case 4128:
return n && n.some(function(s) {
return gr(s.props, /grid-\w+-start/);
}) ? e : Ne + pe(pe(e, "-end", "-span"), "span ", "") + e;
// (margin|padding)-inline-(start|end)
case 4095:
case 3583:
case 4068:
case 2532:
return pe(e, /(.+)-inline(.+)/, Re + "$1$2") + e;
// (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 (nr(e) - 1 - o > 6)
switch (nt(e, o + 1)) {
// (m)ax-content, (m)in-content
case 109:
if (nt(e, o + 4) !== 45)
break;
// (f)ill-available, (f)it-content
case 102:
return pe(e, /(.+:)(.+)-([^]+)/, "$1" + Re + "$2-$3$1" + lo + (nt(e, o + 3) == 108 ? "$3" : "$2-$3")) + e;
// (s)tretch
case 115:
return ~gi(e, "stretch", 0) ? Gd(pe(e, "stretch", "fill-available"), o, n) + e : e;
}
break;
// grid-(column|row)
case 5152:
case 5920:
return pe(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(s, a, c, u, p, d, m) {
return Ne + a + ":" + c + m + (u ? Ne + a + "-span:" + (p ? d : +d - +c) + m : "") + e;
});
// position: sticky
case 4949:
if (nt(e, o + 6) === 121)
return pe(e, ":", ":" + Re) + e;
break;
// display: (flex|inline-flex|grid|inline-grid)
case 6444:
switch (nt(e, nt(e, 14) === 45 ? 18 : 11)) {
// (inline-)?fle(x)
case 120:
return pe(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + Re + (nt(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Re + "$2$3$1" + Ne + "$2box$3") + e;
// (inline-)?gri(d)
case 100:
return pe(e, ":", ":" + Ne) + e;
}
break;
// scroll-margin, scroll-margin-(top|right|bottom|left)
case 5719:
case 2647:
case 2135:
case 3927:
case 2391:
return pe(e, "scroll-", "scroll-snap-") + e;
}
return e;
}
function Ii(e, o) {
for (var n = "", s = 0; s < e.length; s++)
n += o(e[s], s, e, o) || "";
return n;
}
function LI(e, o, n, s) {
switch (e.type) {
case vI:
if (e.children.length) break;
case EI:
case tl:
return e.return = e.return || e.value;
case xd:
return "";
case Cd:
return e.return = e.value + "{" + Ii(e.children, s) + "}";
case Ci:
if (!nr(e.value = e.props.join(","))) return "";
}
return nr(n = Ii(e.children, s)) ? e.return = e.value + "{" + n + "}" : "";
}
function PI(e) {
var o = Md(e);
return function(n, s, a, c) {
for (var u = "", p = 0; p < o; p++)
u += e[p](n, s, a, c) || "";
return u;
};
}
function MI(e) {
return function(o) {
o.root || (o = o.return) && e(o);
};
}
function NI(e, o, n, s) {
if (e.length > -1 && !e.return)
switch (e.type) {
case tl:
e.return = Gd(e.value, e.length, n);
return;
case Cd:
return Ii([Dr(e, { value: pe(e.value, "@", "@" + Re) })], s);
case Ci:
if (e.length)
return TI(n = e.props, function(a) {
switch (gr(a, s = /(::plac\w+|:read-\w+)/)) {
// :read-(only|write)
case ":read-only":
case ":read-write":
En(Dr(e, { props: [pe(a, /:(read-\w+)/, ":" + lo + "$1")] })), En(Dr(e, { props: [a] })), Ca(e, { props: Jc(n, s) });
break;
// :placeholder
case "::placeholder":
En(Dr(e, { props: [pe(a, /:(plac\w+)/, ":" + Re + "input-$1")] })), En(Dr(e, { props: [pe(a, /:(plac\w+)/, ":" + lo + "$1")] })), En(Dr(e, { props: [pe(a, /:(plac\w+)/, Ne + "input-$1")] })), En(Dr(e, { props: [a] })), Ca(e, { props: Jc(n, s) });
break;
}
return "";
});
}
}
var GI = {
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
}, Jr = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", kd = "active", Ud = "data-styled-version", Ni = "6.1.18", nl = `/*!sc*/
`, bi = typeof window < "u" && typeof document < "u", kI = !!(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"), rf = /invalid hook call/i, ni = /* @__PURE__ */ new Set(), UI = function(e, o) {
if (process.env.NODE_ENV !== "production") {
var n = o ? ' with the id of "'.concat(o, '"') : "", s = "The component ".concat(e).concat(n, ` 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.
`, a = console.error;
try {
var c = !0;
console.error = function(u) {
for (var p = [], d = 1; d < arguments.length; d++) p[d - 1] = arguments[d];
rf.test(u) ? (c = !1, ni.delete(s)) : a.apply(void 0, bn([u], p, !1));
}, nI(), c && !ni.has(s) && (console.warn(s), ni.add(s));
} catch (u) {
rf.test(u.message) && ni.delete(s);
} finally {
console.error = a;
}
}
}, Gi = Object.freeze([]), Sn = Object.freeze({});
function FI(e, o, n) {
return n === void 0 && (n = Sn), e.theme !== n.theme && e.theme || o || n.theme;
}
var Ma = /* @__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"]), BI = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, qI = /(^-|-$)/g;
function nf(e) {
return e.replace(BI, "-").replace(qI, "");
}
var VI = /(a)(d)/gi, oi = 52, of = function(e) {
return String.fromCharCode(e + (e > 25 ? 39 : 97));
};
function Na(e) {
var o, n = "";
for (o = Math.abs(e); o > oi; o = o / oi | 0) n = of(o % oi) + n;
return (of(o % oi) + n).replace(VI, "$1-$2");
}
var ga, Fd = 5381, Vr = function(e, o) {
for (var n = o.length; n; ) e = 33 * e ^ o.charCodeAt(--n);
return e;
}, Bd = function(e) {
return Vr(Fd, e);
};
function WI(e) {
return Na(Bd(e) >>> 0);
}
function qd(e) {
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
}
function ma(e) {
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
}
var Vd = typeof Symbol == "function" && Symbol.for, Wd = Vd ? Symbol.for("react.memo") : 60115, $I = Vd ? Symbol.for("react.forward_ref") : 60112, zI = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, YI = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, $d = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, HI = ((ga = {})[$I] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, ga[Wd] = $d, ga);
function sf(e) {
return ("type" in (o = e) && o.type.$$typeof) === Wd ? $d : "$$typeof" in e ? HI[e.$$typeof] : zI;
var o;
}
var XI = Object.defineProperty, jI = Object.getOwnPropertyNames, af = Object.getOwnPropertySymbols, KI = Object.getOwnPropertyDescriptor, QI = Object.getPrototypeOf, lf = Object.prototype;
function zd(e, o, n) {
if (typeof o != "string") {
if (lf) {
var s = QI(o);
s && s !== lf && zd(e, s, n);
}
var a = jI(o);
af && (a = a.concat(af(o)));
for (var c = sf(e), u = sf(o), p = 0; p < a.length; ++p) {
var d = a[p];
if (!(d in YI || n && n[d] || u && d in u || c && d in c)) {
var m = KI(o, d);
try {
XI(e, d, m);
} catch {
}
}
}
}
return e;
}
function On(e) {
return typeof e == "function";
}
function ol(e) {
return typeof e == "object" && "styledComponentId" in e;
}
function Wr(e, o) {
return e && o ? "".concat(e, " ").concat(o) : e || o || "";
}
function uf(e, o) {
if (e.length === 0) return "";
for (var n = e[0], s = 1; s < e.length; s++) n += e[s];
return n;
}
function An(e) {
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
}
function Ga(e, o, n) {
if (n === void 0 && (n = !1), !n && !An(e) && !Array.isArray(e)) return o;
if (Array.isArray(o)) for (var s = 0; s < o.length; s++) e[s] = Ga(e[s], o[s]);
else if (An(o)) for (var s in o) e[s] = Ga(e[s], o[s]);
return e;
}
function il(e, o) {
Object.defineProperty(e, "toString", { value: o });
}
var ZI = 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 JI() {
for (var e = [], o = 0; o < arguments.length; o++) e[o] = arguments[o];
for (var n = e[0], s = [], a = 1, c = e.length; a < c; a += 1) s.push(e[a]);
return s.forEach(function(u) {
n = n.replace(/%[a-z]/, u);
}), n;
}
function Ln(e) {
for (var o = [], n = 1; n < arguments.length; n++) o[n - 1] = arguments[n];
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(e, " for more information.").concat(o.length > 0 ? " Args: ".concat(o.join(", ")) : "")) : new Error(JI.apply(void 0, bn([ZI[e]], o, !1)).trim());
}
var e0 = function() {
function e(o) {
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = o;
}
return e.prototype.indexOfGroup = function(o) {
for (var n = 0, s = 0; s < o; s++) n += this.groupSizes[s];
return n;
}, e.prototype.insertRules = function(o, n) {
if (o >= this.groupSizes.length) {
for (var s = this.groupSizes, a = s.length, c = a; o >= c; ) if ((c <<= 1) < 0) throw Ln(16, "".concat(o));
this.groupSizes = new Uint32Array(c), this.groupSizes.set(s), this.length = c;
for (var u = a; u < c; u++) this.groupSizes[u] = 0;
}
for (var p = this.indexOfGroup(o + 1), d = (u = 0, n.length); u < d; u++) this.tag.insertRule(p, n[u]) && (this.groupSizes[o]++, p++);
}, e.prototype.clearGroup = function(o) {
if (o < this.length) {
var n = this.groupSizes[o], s = this.indexOfGroup(o), a = s + n;
this.groupSizes[o] = 0;
for (var c = s; c < a; c++) this.tag.deleteRule(s);
}
}, e.prototype.getGroup = function(o) {
var n = "";
if (o >= this.length || this.groupSizes[o] === 0) return n;
for (var s = this.groupSizes[o], a = this.indexOfGroup(o), c = a + s, u = a; u < c; u++) n += "".concat(this.tag.getRule(u)).concat(nl);
return n;
}, e;
}(), t0 = 1 << 30, Ei = /* @__PURE__ */ new Map(), Ri = /* @__PURE__ */ new Map(), vi = 1, ii = function(e) {
if (Ei.has(e)) return Ei.get(e);
for (; Ri.has(vi); ) vi++;
var o = vi++;
if (process.env.NODE_ENV !== "production" && ((0 | o) < 0 || o > t0)) throw Ln(16, "".concat(o));
return Ei.set(e, o), Ri.set(o, e), o;
}, r0 = function(e, o) {
vi = o + 1, Ei.set(e, o), Ri.set(o, e);
}, n0 = "style[".concat(Jr, "][").concat(Ud, '="').concat(Ni, '"]'), o0 = new RegExp("^".concat(Jr, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), i0 = function(e, o, n) {
for (var s, a = n.split(","), c = 0, u = a.length; c < u; c++) (s = a[c]) && e.registerName(o, s);
}, s0 = function(e, o) {
for (var n, s = ((n = o.textContent) !== null && n !== void 0 ? n : "").split(nl), a = [], c = 0, u = s.length; c < u; c++) {
var p = s[c].trim();
if (p) {
var d = p.match(o0);
if (d) {
var m = 0 | parseInt(d[1], 10), E = d[2];
m !== 0 && (r0(E, m), i0(e, E, d[3]), e.getTag().insertRules(m, a)), a.length = 0;
} else a.push(p);
}
}
}, cf = function(e) {
for (var o = document.querySelectorAll(n0), n = 0, s = o.length; n < s; n++) {
var a = o[n];
a && a.getAttribute(Jr) !== kd && (s0(e, a), a.parentNode && a.parentNode.removeChild(a));
}
};
function a0() {
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
}
var Yd = function(e) {
var o = document.head, n = e || o, s = document.createElement("style"), a = function(p) {
var d = Array.from(p.querySelectorAll("style[".concat(Jr, "]")));
return d[d.length - 1];
}(n), c = a !== void 0 ? a.nextSibling : null;
s.setAttribute(Jr, kd), s.setAttribute(Ud, Ni);
var u = a0();
return u && s.setAttribute("nonce", u), n.insertBefore(s, c), s;
}, l0 = function() {
function e(o) {
this.element = Yd(o), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
if (n.sheet) return n.sheet;
for (var s = document.styleSheets, a = 0, c = s.length; a < c; a++) {
var u = s[a];
if (u.ownerNode === n) return u;
}
throw Ln(17);
}(this.element), this.length = 0;
}
return e.prototype.insertRule = function(o, n) {
try {
return this.sheet.insertRule(n, o), this.length++, !0;
} catch {
return !1;
}
}, e.prototype.deleteRule = function(o) {
this.sheet.deleteRule(o), this.length--;
}, e.prototype.getRule = function(o) {
var n = this.sheet.cssRules[o];
return n && n.cssText ? n.cssText : "";
}, e;
}(), u0 = function() {
function e(o) {
this.element = Yd(o), this.nodes = this.element.childNodes, this.length = 0;
}
return e.prototype.insertRule = function(o, n) {
if (o <= this.length && o >= 0) {
var s = document.createTextNode(n);
return this.element.insertBefore(s, this.nodes[o] || null), this.length++, !0;
}
return !1;
}, e.prototype.deleteRule = function(o) {
this.element.removeChild(this.nodes[o]), this.length--;
}, e.prototype.getRule = function(o) {
return o < this.length ? this.nodes[o].textContent : "";
}, e;
}(), c0 = function() {
function e(o) {
this.rules = [], this.length = 0;
}
return e.prototype.insertRule = function(o, n) {
return o <= this.length && (this.rules.splice(o, 0, n), this.length++, !0);
}, e.prototype.deleteRule = function(o) {
this.rules.splice(o, 1), this.length--;
}, e.prototype.getRule = function(o) {
return o < this.length ? this.rules[o] : "";
}, e;
}(), ff = bi, f0 = { isServer: !bi, useCSSOMInjection: !kI }, Hd = function() {
function e(o, n, s) {
o === void 0 && (o = Sn), n === void 0 && (n = {});
var a = this;
this.options = It(It({}, f0), o), this.gs = n, this.names = new Map(s), this.server = !!o.isServer, !this.server && bi && ff && (ff = !1, cf(this)), il(this, function() {
return function(c) {
for (var u = c.getTag(), p = u.length, d = "", m = function(y) {
var I = function(A) {
return Ri.get(A);
}(y);
if (I === void 0) return "continue";
var O = c.names.get(I), b = u.getGroup(y);
if (O === void 0 || !O.size || b.length === 0) return "continue";
var w = "".concat(Jr, ".g").concat(y, '[id="').concat(I, '"]'), N = "";
O !== void 0 && O.forEach(function(A) {
A.length > 0 && (N += "".concat(A, ","));
}), d += "".concat(b).concat(w, '{content:"').concat(N, '"}').concat(nl);
}, E = 0; E < p; E++) m(E);
return d;
}(a);
});
}
return e.registerId = function(o) {
return ii(o);
}, e.prototype.rehydrate = function() {
!this.server && bi && cf(this);
}, e.prototype.reconstructWithOptions = function(o, n) {
return n === void 0 && (n = !0), new e(It(It({}, this.options), o), this.gs, n && this.names || void 0);
}, e.prototype.allocateGSInstance = function(o) {
return this.gs[o] = (this.gs[o] || 0) + 1;
}, e.prototype.getTag = function() {
return this.tag || (this.tag = (o = function(n) {
var s = n.useCSSOMInjection, a = n.target;
return n.isServer ? new c0(a) : s ? new l0(a) : new u0(a);
}(this.options), new e0(o)));
var o;
}, e.prototype.hasNameForId = function(o, n) {
return this.names.has(o) && this.names.get(o).has(n);
}, e.prototype.registerName = function(o, n) {
if (ii(o), this.names.has(o)) this.names.get(o).add(n);
else {
var s = /* @__PURE__ */ new Set();
s.add(n), this.names.set(o, s);
}
}, e.prototype.insertRules = function(o, n, s) {
this.registerName(o, n), this.getTag().insertRules(ii(o), s);
}, e.prototype.clearNames = function(o) {
this.names.has(o) && this.names.get(o).clear();
}, e.prototype.clearRules = function(o) {
this.getTag().clearGroup(ii(o)), this.clearNames(o);
}, e.prototype.clearTag = function() {
this.tag = void 0;
}, e;
}(), d0 = /&/g, p0 = /^\s*\/\/.*$/gm;
function Xd(e, o) {
return e.map(function(n) {
return n.type === "rule" && (n.value = "".concat(o, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(o, " ")), n.props = n.props.map(function(s) {
return "".concat(o, " ").concat(s);
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = Xd(n.children, o)), n;
});
}
function h0(e) {
var o, n, s, a = Sn, c = a.options, u = c === void 0 ? Sn : c, p = a.plugins, d = p === void 0 ? Gi : p, m = function(I, O, b) {
return b.startsWith(n) && b.endsWith(n) && b.replaceAll(n, "").length > 0 ? ".".concat(o) : I;
}, E = d.slice();
E.push(function(I) {
I.type === Ci && I.value.includes("&") && (I.props[0] = I.props[0].replace(d0, n).replace(s, m));
}), u.prefix && E.push(NI), E.push(LI);
var y = function(I, O, b, w) {
O === void 0 && (O = ""), b === void 0 && (b = ""), w === void 0 && (w = "&"), o = w, n = O, s = new RegExp("\\".concat(n, "\\b"), "g");
var N = I.replace(p0, ""), A = xI(b || O ? "".concat(b, " ").concat(O, " { ").concat(N, " }") : N);
u.namespace && (A = Xd(A, u.namespace));
var L = [];
return Ii(A, PI(E.concat(MI(function(B) {
return L.push(B);
})))), L;
};
return y.hash = d.length ? d.reduce(function(I, O) {
return O.name || Ln(15), Vr(I, O.name);
}, Fd).toString() : "", y;
}
var g0 = new Hd(), ka = h0(), jd = Ce.createContext({ shouldForwardProp: void 0, styleSheet: g0, stylis: ka });
jd.Consumer;
Ce.createContext(void 0);
function df() {
return oI(jd);
}
var pf = function() {
function e(o, n) {
var s = this;
this.inject = function(a, c) {
c === void 0 && (c = ka);
var u = s.name + c.hash;
a.hasNameForId(s.id, u) || a.insertRules(s.id, u, c(s.rules, u, "@keyframes"));
}, this.name = o, this.id = "sc-keyframes-".concat(o), this.rules = n, il(this, function() {
throw Ln(12, String(s.name));
});
}
return e.prototype.getName = function(o) {
return o === void 0 && (o = ka), this.name + o.hash;
}, e;
}(), m0 = function(e) {
return e >= "A" && e <= "Z";
};
function hf(e) {
for (var o = "", n = 0; n < e.length; n++) {
var s = e[n];
if (n === 1 && s === "-" && e[0] === "-") return e;
m0(s) ? o += "-" + s.toLowerCase() : o += s;
}
return o.startsWith("ms-") ? "-" + o : o;
}
var Kd = function(e) {
return e == null || e === !1 || e === "";
}, Qd = function(e) {
var o, n, s = [];
for (var a in e) {
var c = e[a];
e.hasOwnProperty(a) && !Kd(c) && (Array.isArray(c) && c.isCss || On(c) ? s.push("".concat(hf(a), ":"), c, ";") : An(c) ? s.push.apply(s, bn(bn(["".concat(a, " {")], Qd(c), !1), ["}"], !1)) : s.push("".concat(hf(a), ": ").concat((o = a, (n = c) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || o in GI || o.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
}
return s;
};
function Xr(e, o, n, s) {
if (Kd(e)) return [];
if (ol(e)) return [".".concat(e.styledComponentId)];
if (On(e)) {
if (!On(c = e) || c.prototype && c.prototype.isReactComponent || !o) return [e];
var a = e(o);
return process.env.NODE_ENV === "production" || typeof a != "object" || Array.isArray(a) || a instanceof pf || An(a) || a === null || console.error("".concat(qd(e), " is not a styled comp