@arkitektbedriftene/fe-lib 0.3.18 → 0.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,11 +12,11 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
12
12
  const o = ((i) => JSON.stringify(i, Ln))(t);
13
13
  return o in e ? e[o] : e[o] = n(t, ...r);
14
14
  };
15
- }, me = Symbol.for("sxs.internal"), mt = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), Rt = (e) => {
15
+ }, me = Symbol.for("sxs.internal"), ft = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), St = (e) => {
16
16
  for (const t in e)
17
17
  return !0;
18
18
  return !1;
19
- }, { hasOwnProperty: Fn } = Object.prototype, lt = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Wn = /\s+(?![^()]*\))/, we = (e) => (t) => e(...typeof t == "string" ? String(t).split(Wn) : [t]), Et = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: we((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: we((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: we((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: we((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: we((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: we((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, et = /([\d.]+)([^]*)/, Nn = (e, t) => e.length ? e.reduce((n, r) => (n.push(...t.map((o) => o.includes("&") ? o.replace(/&/g, /[ +>|~]/.test(r) && /&.*&/.test(o) ? `:is(${r})` : r) : r + " " + o)), n), []) : t, zn = (e, t) => e in jn && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, r, o, i) => r + (o === "stretch" ? `-moz-available${i};${lt(e)}:${r}-webkit-fill-available` : `-moz-fit-content${i};${lt(e)}:${r}fit-content`) + i) : String(t), jn = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, te = (e) => e ? e + "-" : "", en = (e, t, n) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (r, o, i, s, l) => s == "$" == !!i ? r : (o || s == "--" ? "calc(" : "") + "var(--" + (s === "$" ? te(t) + (l.includes("$") ? "" : te(n)) + l.replace(/\$/g, "-") : l) + ")" + (o || s == "--" ? "*" + (o || "") + (i || "1") + ")" : "")), Hn = /\s*,\s*(?![^()]*\))/, Vn = Object.prototype.toString, Ee = (e, t, n, r, o) => {
19
+ }, { hasOwnProperty: Fn } = Object.prototype, st = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Wn = /\s+(?![^()]*\))/, we = (e) => (t) => e(...typeof t == "string" ? String(t).split(Wn) : [t]), Rt = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: we((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: we((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: we((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: we((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: we((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: we((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, et = /([\d.]+)([^]*)/, Nn = (e, t) => e.length ? e.reduce((n, r) => (n.push(...t.map((o) => o.includes("&") ? o.replace(/&/g, /[ +>|~]/.test(r) && /&.*&/.test(o) ? `:is(${r})` : r) : r + " " + o)), n), []) : t, zn = (e, t) => e in jn && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (n, r, o, i) => r + (o === "stretch" ? `-moz-available${i};${st(e)}:${r}-webkit-fill-available` : `-moz-fit-content${i};${st(e)}:${r}fit-content`) + i) : String(t), jn = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, te = (e) => e ? e + "-" : "", en = (e, t, n) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (r, o, i, s, l) => s == "$" == !!i ? r : (o || s == "--" ? "calc(" : "") + "var(--" + (s === "$" ? te(t) + (l.includes("$") ? "" : te(n)) + l.replace(/\$/g, "-") : l) + ")" + (o || s == "--" ? "*" + (o || "") + (i || "1") + ")" : "")), Hn = /\s*,\s*(?![^()]*\))/, Vn = Object.prototype.toString, Ee = (e, t, n, r, o) => {
20
20
  let i, s, l;
21
21
  const a = (c, m, d) => {
22
22
  let f, u;
@@ -31,8 +31,8 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
31
31
  s = C, g(C(u)), s = null;
32
32
  continue;
33
33
  }
34
- } else if (S in Et) {
35
- const C = Et[S];
34
+ } else if (S in Rt) {
35
+ const C = Rt[S];
36
36
  if (C !== l) {
37
37
  l = C, g(C(u)), l = null;
38
38
  continue;
@@ -43,21 +43,21 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
43
43
  return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(et, (I, R, $) => Number(R) + O * (T === ">" ? 1 : -1) + $) : v) + (D ? ") and (" + (D[0] === ">" ? "min-" : "max-") + b + ":" + (D.length === 1 ? L.replace(et, (I, R, $) => Number(R) + O * (D === ">" ? -1 : 1) + $) : L) : "") + ")";
44
44
  })), k) {
45
45
  const C = x ? d.concat(f) : [...d], A = x ? [...m] : Nn(m, f.split(Hn));
46
- i !== void 0 && o(Ct(...i)), i = void 0, a(u, A, C);
46
+ i !== void 0 && o(Et(...i)), i = void 0, a(u, A, C);
47
47
  } else
48
- i === void 0 && (i = [[], m, d]), f = x || f.charCodeAt(0) !== 36 ? f : `--${te(r.prefix)}${f.slice(1).replace(/\$/g, "-")}`, u = k ? u : typeof u == "number" ? u && S in _n ? String(u) + "px" : String(u) : en(zn(S, u ?? ""), r.prefix, r.themeMap[S]), i[0].push(`${x ? `${f} ` : `${lt(f)}:`}${u}`);
48
+ i === void 0 && (i = [[], m, d]), f = x || f.charCodeAt(0) !== 36 ? f : `--${te(r.prefix)}${f.slice(1).replace(/\$/g, "-")}`, u = k ? u : typeof u == "number" ? u && S in _n ? String(u) + "px" : String(u) : en(zn(S, u ?? ""), r.prefix, r.themeMap[S]), i[0].push(`${x ? `${f} ` : `${st(f)}:`}${u}`);
49
49
  }
50
50
  }
51
51
  var w, h;
52
52
  };
53
- g(c), i !== void 0 && o(Ct(...i)), i = void 0;
53
+ g(c), i !== void 0 && o(Et(...i)), i = void 0;
54
54
  };
55
55
  a(e, t, n);
56
- }, Ct = (e, t, n) => `${n.map((r) => `${r}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, _n = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, kt = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), ge = (e) => ((t) => {
56
+ }, Et = (e, t, n) => `${n.map((r) => `${r}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(n.length ? n.length + 1 : 0).join("}")}`, _n = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, Ct = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), ge = (e) => ((t) => {
57
57
  let n, r = "";
58
58
  for (n = Math.abs(t); n > 52; n = n / 52 | 0)
59
- r = kt(n % 52) + r;
60
- return kt(n % 52) + r;
59
+ r = Ct(n % 52) + r;
60
+ return Ct(n % 52) + r;
61
61
  })(((t, n) => {
62
62
  let r = n.length;
63
63
  for (; r; )
@@ -149,7 +149,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
149
149
  } catch {
150
150
  }
151
151
  };
152
- }, Oe = Symbol(), Gn = Ae(), Tt = (e, t) => Gn(e, () => (...n) => {
152
+ }, Oe = Symbol(), Gn = Ae(), kt = (e, t) => Gn(e, () => (...n) => {
153
153
  let r = { type: null, composers: /* @__PURE__ */ new Set() };
154
154
  for (const o of n)
155
155
  if (o != null)
@@ -171,7 +171,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
171
171
  for (const g in u) {
172
172
  const p = { [f]: String(g) };
173
173
  String(g) === "undefined" && c.push(f);
174
- const w = u[g], h = [p, w, !Rt(w)];
174
+ const w = u[g], h = [p, w, !St(w)];
175
175
  s.push(h);
176
176
  }
177
177
  }
@@ -182,7 +182,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
182
182
  u = typeof u == "object" && u || {};
183
183
  for (const w in g)
184
184
  g[w] = String(g[w]);
185
- const p = [g, u, !Rt(u)];
185
+ const p = [g, u, !St(u)];
186
186
  l.push(p);
187
187
  }
188
188
  return [i, r, s, l, a, c];
@@ -210,7 +210,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
210
210
  n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Ee(x, [`.${h}`], [], e, (A) => {
211
211
  a.styled.apply(A);
212
212
  }));
213
- const k = It(P, g, e.media), C = It(S, g, e.media, !0);
213
+ const k = Tt(P, g, e.media), C = Tt(S, g, e.media, !0);
214
214
  for (const A of k)
215
215
  if (A !== void 0)
216
216
  for (const [T, B, D] of A) {
@@ -241,7 +241,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
241
241
  const w = u.className = [...p].join(" ");
242
242
  return { type: t.type, className: w, selector: c, props: u, toString: () => w, deferredInjector: l };
243
243
  };
244
- return mt(m, { className: r, selector: c, [me]: t, toString: () => (n.rules.styled.cache.has(r) || m(), r) });
244
+ return ft(m, { className: r, selector: c, [me]: t, toString: () => (n.rules.styled.cache.has(r) || m(), r) });
245
245
  }, Zn = (e) => {
246
246
  let t = "";
247
247
  const n = [], r = {}, o = [];
@@ -253,7 +253,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
253
253
  }
254
254
  }
255
255
  return [t, n, r, new Set(o)];
256
- }, It = (e, t, n, r) => {
256
+ }, Tt = (e, t, n, r) => {
257
257
  const o = [];
258
258
  e:
259
259
  for (let [i, s, l] of e) {
@@ -305,7 +305,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
305
305
  }
306
306
  return "";
307
307
  };
308
- return mt(r, { toString: r });
308
+ return ft(r, { toString: r });
309
309
  }), tr = Ae(), nr = (e, t) => tr(e, () => (n) => {
310
310
  const r = `${te(e.prefix)}k-${ge(n)}`, o = () => {
311
311
  if (!t.rules.global.cache.has(r)) {
@@ -317,7 +317,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
317
317
  }
318
318
  return r;
319
319
  };
320
- return mt(o, { get name() {
320
+ return ft(o, { get name() {
321
321
  return o();
322
322
  }, toString: o });
323
323
  }), rr = class {
@@ -359,7 +359,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
359
359
  let r = !1;
360
360
  const o = sr(n, (i) => {
361
361
  r = !0;
362
- const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, m = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...Mn }, utils: typeof i.utils == "object" && i.utils || {} }, d = Kn(a), f = { css: Tt(m, d), globalCss: er(m, d), keyframes: nr(m, d), createTheme: ir(m, d), reset() {
362
+ const s = "prefix" in (i = typeof i == "object" && i || {}) ? String(i.prefix) : "", l = typeof i.media == "object" && i.media || {}, a = typeof i.root == "object" ? i.root || null : globalThis.document || null, c = typeof i.theme == "object" && i.theme || {}, m = { prefix: s, media: l, theme: c, themeMap: typeof i.themeMap == "object" && i.themeMap || { ...Mn }, utils: typeof i.utils == "object" && i.utils || {} }, d = Kn(a), f = { css: kt(m, d), globalCss: er(m, d), keyframes: nr(m, d), createTheme: ir(m, d), reset() {
363
363
  d.reset(), f.theme.toString();
364
364
  }, theme: {}, sheet: d, config: m, prefix: s, getCssText: d.toString, toString: d.toString };
365
365
  return String(f.theme = f.createTheme(c)), f;
@@ -367,7 +367,7 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
367
367
  return r || o.reset(), o;
368
368
  })(e);
369
369
  return t.styled = (({ config: n, sheet: r }) => lr(n, () => {
370
- const o = Tt(n, r);
370
+ const o = kt(n, r);
371
371
  return (...i) => {
372
372
  const s = o(...i), l = s[me].type, a = xe.forwardRef((c, m) => {
373
373
  const d = c && c.as || l, { props: f, deferredInjector: u } = s(c);
@@ -377,8 +377,8 @@ var W = "colors", Y = "sizes", E = "space", Mn = { gap: E, gridGap: E, columnGap
377
377
  };
378
378
  }))(t), t;
379
379
  };
380
- let Pt = 9999;
381
- const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi } = ar({
380
+ let It = 9999;
381
+ const Pt = () => (It--, It), { styled: H, css: mt, keyframes: Be, globalCss: hi } = ar({
382
382
  theme: {
383
383
  colors: {
384
384
  gray50: "#F9FAFA",
@@ -496,9 +496,8 @@ const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi
496
496
  * By using createLayerBelow() we can order the list of layers.
497
497
  * Layers higher up will be on top of layers lower down.
498
498
  */
499
- toast: tt(),
500
- overlayCard: tt(),
501
- modal: tt()
499
+ toast: Pt(),
500
+ overlayCard: Pt()
502
501
  }
503
502
  },
504
503
  media: {
@@ -519,9 +518,9 @@ const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi
519
518
  "100%": {
520
519
  strokeDashoffset: 0
521
520
  }
522
- }), dr = V("svg", {
521
+ }), dr = H("svg", {
523
522
  animation: `${cr} 2s linear infinite`
524
- }), fr = V("circle", {
523
+ }), fr = H("circle", {
525
524
  animation: `${ur} 1.6s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite`,
526
525
  fill: "transparent",
527
526
  stroke: "currentColor",
@@ -530,7 +529,7 @@ const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi
530
529
  strokeLinecap: "round",
531
530
  strokeMiterlimit: 10,
532
531
  strokeWidth: 12
533
- }), mr = V("div", {
532
+ }), mr = H("div", {
534
533
  lineHeight: 0,
535
534
  flexShrink: 0,
536
535
  variants: {
@@ -592,7 +591,7 @@ const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi
592
591
  )
593
592
  }
594
593
  )
595
- ), pr = V("button", {
594
+ ), pr = H("button", {
596
595
  appearance: "none",
597
596
  margin: 0,
598
597
  padding: 0,
@@ -754,7 +753,7 @@ const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi
754
753
  ]
755
754
  }
756
755
  ))
757
- ), br = V("div", {
756
+ ), br = H("div", {
758
757
  padding: "$3",
759
758
  borderRadius: "$md",
760
759
  variants: {
@@ -815,7 +814,7 @@ const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi
815
814
  }), wr = Be({
816
815
  "0%": { opacity: 0, transform: "translateX(0.5rem)" },
817
816
  "100%": { opacity: 1, transform: "translateX(0)" }
818
- }), $r = gt({
817
+ }), $r = mt({
819
818
  backgroundColor: "white",
820
819
  boxShadow: "$overlayCard",
821
820
  borderRadius: "$sm",
@@ -825,7 +824,7 @@ const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi
825
824
  // so for other popups that uses `OverlayCard` to work
826
825
  // we need to explicitly set this.
827
826
  pointerEvents: "auto"
828
- }), Sr = gt({
827
+ }), Sr = mt({
829
828
  animationDuration: "400ms",
830
829
  animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
831
830
  willChange: "transform, opacity",
@@ -835,7 +834,7 @@ const tt = () => (Pt--, Pt), { styled: V, css: gt, keyframes: Be, globalCss: hi
835
834
  '&[data-side="bottom"]': { animationName: yr },
836
835
  '&[data-side="left"]': { animationName: vr }
837
836
  }
838
- }), tn = V(
837
+ }), tn = H(
839
838
  "div",
840
839
  $r,
841
840
  Sr
@@ -860,7 +859,7 @@ function N(e) {
860
859
  function Z(e) {
861
860
  return e instanceof HTMLElement || e instanceof q(e).HTMLElement;
862
861
  }
863
- function at(e) {
862
+ function lt(e) {
864
863
  return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
865
864
  }
866
865
  function Fe(e) {
@@ -875,20 +874,20 @@ function Fe(e) {
875
874
  function Rr(e) {
876
875
  return ["table", "td", "th"].includes(oe(e));
877
876
  }
878
- function pt(e) {
879
- const t = ht(), n = J(e);
877
+ function gt(e) {
878
+ const t = pt(), n = J(e);
880
879
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
881
880
  }
882
881
  function Er(e) {
883
882
  let t = he(e);
884
883
  for (; Z(t) && !Te(t); ) {
885
- if (pt(t))
884
+ if (gt(t))
886
885
  return t;
887
886
  t = he(t);
888
887
  }
889
888
  return null;
890
889
  }
891
- function ht() {
890
+ function pt() {
892
891
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
893
892
  }
894
893
  function Te(e) {
@@ -913,10 +912,10 @@ function he(e) {
913
912
  // Step into the shadow DOM of the parent of a slotted node.
914
913
  e.assignedSlot || // DOM Element detected.
915
914
  e.parentNode || // ShadowRoot detected.
916
- at(e) && e.host || // Fallback.
915
+ lt(e) && e.host || // Fallback.
917
916
  ne(e)
918
917
  );
919
- return at(t) ? t.host : t;
918
+ return lt(t) ? t.host : t;
920
919
  }
921
920
  function rn(e) {
922
921
  const t = he(e);
@@ -942,7 +941,7 @@ function pe(e, t) {
942
941
  const n = t.getRootNode == null ? void 0 : t.getRootNode();
943
942
  if (e.contains(t))
944
943
  return !0;
945
- if (n && at(n)) {
944
+ if (n && lt(n)) {
946
945
  let r = t;
947
946
  for (; r; ) {
948
947
  if (e === r)
@@ -968,7 +967,7 @@ function Ir(e) {
968
967
  function fe(e) {
969
968
  return (e == null ? void 0 : e.ownerDocument) || document;
970
969
  }
971
- function nt(e, t) {
970
+ function tt(e, t) {
972
971
  if (t == null)
973
972
  return !1;
974
973
  if ("composedPath" in e)
@@ -1027,9 +1026,9 @@ function Dr(e, t, n) {
1027
1026
  }
1028
1027
  function Mr(e) {
1029
1028
  const t = Ke(e);
1030
- return [ct(e), t, ct(t)];
1029
+ return [at(e), t, at(t)];
1031
1030
  }
1032
- function ct(e) {
1031
+ function at(e) {
1033
1032
  return e.replace(/start|end/g, (t) => Or[t]);
1034
1033
  }
1035
1034
  function Lr(e, t, n) {
@@ -1048,7 +1047,7 @@ function Lr(e, t, n) {
1048
1047
  function Fr(e, t, n, r) {
1049
1048
  const o = Ne(e);
1050
1049
  let i = Lr(se(e), n === "start", r);
1051
- return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(ct)))), i;
1050
+ return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(at)))), i;
1052
1051
  }
1053
1052
  function Ke(e) {
1054
1053
  return e.replace(/left|right|bottom|top/g, (t) => Br[t]);
@@ -1188,7 +1187,7 @@ const zr = async (e, t, n) => {
1188
1187
  middlewareData: u
1189
1188
  };
1190
1189
  };
1191
- async function bt(e, t) {
1190
+ async function ht(e, t) {
1192
1191
  var n;
1193
1192
  t === void 0 && (t = {});
1194
1193
  const {
@@ -1258,7 +1257,7 @@ const jr = function(e) {
1258
1257
  return {};
1259
1258
  const h = se(o), x = se(l) === l, P = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [Ke(l)] : Mr(l));
1260
1259
  !f && g !== "none" && S.push(...Fr(l, p, g, P));
1261
- const k = [l, ...S], C = await bt(t, w), A = [];
1260
+ const k = [l, ...S], C = await ht(t, w), A = [];
1262
1261
  let T = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1263
1262
  if (m && A.push(C[h]), d) {
1264
1263
  const M = Dr(o, s, P);
@@ -1382,7 +1381,7 @@ const Vr = function(e) {
1382
1381
  } = We(e, t), c = {
1383
1382
  x: n,
1384
1383
  y: r
1385
- }, m = await bt(t, a), d = ze(se(o)), f = on(d);
1384
+ }, m = await ht(t, a), d = ze(se(o)), f = on(d);
1386
1385
  let u = c[f], g = c[d];
1387
1386
  if (i) {
1388
1387
  const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", x = u + m[w], P = u - m[h];
@@ -1420,7 +1419,7 @@ const Vr = function(e) {
1420
1419
  apply: s = () => {
1421
1420
  },
1422
1421
  ...l
1423
- } = We(e, t), a = await bt(t, l), c = se(n), m = Ne(n), d = ze(n) === "y", {
1422
+ } = We(e, t), a = await ht(t, l), c = se(n), m = Ne(n), d = ze(n) === "y", {
1424
1423
  width: f,
1425
1424
  height: u
1426
1425
  } = r.floating;
@@ -1463,11 +1462,11 @@ function an(e) {
1463
1462
  $: l
1464
1463
  };
1465
1464
  }
1466
- function yt(e) {
1465
+ function bt(e) {
1467
1466
  return N(e) ? e : e.contextElement;
1468
1467
  }
1469
1468
  function ke(e) {
1470
- const t = yt(e);
1469
+ const t = bt(e);
1471
1470
  if (!Z(t))
1472
1471
  return ie(1);
1473
1472
  const n = t.getBoundingClientRect(), {
@@ -1484,7 +1483,7 @@ function ke(e) {
1484
1483
  const Kr = /* @__PURE__ */ ie(0);
1485
1484
  function cn(e) {
1486
1485
  const t = q(e);
1487
- return !ht() || !t.visualViewport ? Kr : {
1486
+ return !pt() || !t.visualViewport ? Kr : {
1488
1487
  x: t.visualViewport.offsetLeft,
1489
1488
  y: t.visualViewport.offsetTop
1490
1489
  };
@@ -1494,7 +1493,7 @@ function Xr(e, t, n) {
1494
1493
  }
1495
1494
  function be(e, t, n, r) {
1496
1495
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1497
- const o = e.getBoundingClientRect(), i = yt(e);
1496
+ const o = e.getBoundingClientRect(), i = bt(e);
1498
1497
  let s = ie(1);
1499
1498
  t && (r ? N(r) && (s = ke(r)) : s = ke(e));
1500
1499
  const l = Xr(i, n, r) ? cn(i) : ie(0);
@@ -1572,7 +1571,7 @@ function Jr(e, t) {
1572
1571
  let i = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
1573
1572
  if (o) {
1574
1573
  i = o.width, s = o.height;
1575
- const c = ht();
1574
+ const c = pt();
1576
1575
  (!c || c && t === "fixed") && (l = o.offsetLeft, a = o.offsetTop);
1577
1576
  }
1578
1577
  return {
@@ -1621,7 +1620,7 @@ function eo(e, t) {
1621
1620
  const i = J(e).position === "fixed";
1622
1621
  let s = i ? he(e) : e;
1623
1622
  for (; N(s) && !Te(s); ) {
1624
- const l = J(s), a = pt(s);
1623
+ const l = J(s), a = gt(s);
1625
1624
  !a && l.position === "fixed" && (o = null), (i ? !a && !o : !a && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Fe(s) && !a && fn(e, s)) ? r = r.filter((m) => m !== s) : o = l, s = he(s);
1626
1625
  }
1627
1626
  return t.set(e, r), r;
@@ -1685,7 +1684,7 @@ function mn(e, t) {
1685
1684
  let r = Dt(e, t);
1686
1685
  for (; r && Rr(r) && J(r).position === "static"; )
1687
1686
  r = Dt(r, t);
1688
- return r && (oe(r) === "html" || oe(r) === "body" && J(r).position === "static" && !pt(r)) ? n : r || Er(e) || n;
1687
+ return r && (oe(r) === "html" || oe(r) === "body" && J(r).position === "static" && !gt(r)) ? n : r || Er(e) || n;
1689
1688
  }
1690
1689
  const oo = async function(e) {
1691
1690
  const t = this.getOffsetParent || mn, n = this.getDimensions;
@@ -1767,7 +1766,7 @@ function ao(e, t, n, r) {
1767
1766
  elementResize: s = typeof ResizeObserver == "function",
1768
1767
  layoutShift: l = typeof IntersectionObserver == "function",
1769
1768
  animationFrame: a = !1
1770
- } = r, c = yt(e), m = o || i ? [...c ? re(c) : [], ...re(t)] : [];
1769
+ } = r, c = bt(e), m = o || i ? [...c ? re(c) : [], ...re(t)] : [];
1771
1770
  m.forEach((h) => {
1772
1771
  o && h.addEventListener("scroll", n, {
1773
1772
  passive: !0
@@ -1955,7 +1954,7 @@ function mo(e) {
1955
1954
  * tabbable 6.2.0
1956
1955
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1957
1956
  */
1958
- var go = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ut = /* @__PURE__ */ go.join(","), pn = typeof Element > "u", Me = pn ? function() {
1957
+ var go = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ct = /* @__PURE__ */ go.join(","), pn = typeof Element > "u", Me = pn ? function() {
1959
1958
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ue = !pn && Element.prototype.getRootNode ? function(e) {
1960
1959
  var t;
1961
1960
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
@@ -1972,8 +1971,8 @@ var go = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1972
1971
  }, ho = function(t, n, r) {
1973
1972
  if (qe(t))
1974
1973
  return [];
1975
- var o = Array.prototype.slice.apply(t.querySelectorAll(ut));
1976
- return n && Me.call(t, ut) && o.unshift(t), o = o.filter(r), o;
1974
+ var o = Array.prototype.slice.apply(t.querySelectorAll(ct));
1975
+ return n && Me.call(t, ct) && o.unshift(t), o = o.filter(r), o;
1977
1976
  }, bo = function e(t, n, r) {
1978
1977
  for (var o = [], i = Array.from(t); i.length; ) {
1979
1978
  var s = i.shift();
@@ -1985,7 +1984,7 @@ var go = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
1985
1984
  candidates: c
1986
1985
  });
1987
1986
  } else {
1988
- var m = Me.call(s, ut);
1987
+ var m = Me.call(s, ct);
1989
1988
  m && r.filter(s) && (n || !t.includes(s)) && o.push(s);
1990
1989
  var d = s.shadowRoot || // check for an undisclosed shadow
1991
1990
  typeof r.getShadowRoot == "function" && r.getShadowRoot(s), f = !qe(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
@@ -2145,27 +2144,27 @@ function Re(e) {
2145
2144
  }, []);
2146
2145
  }
2147
2146
  var Q = typeof document < "u" ? Zt : Jt;
2148
- function dt() {
2149
- return dt = Object.assign ? Object.assign.bind() : function(e) {
2147
+ function ut() {
2148
+ return ut = Object.assign ? Object.assign.bind() : function(e) {
2150
2149
  for (var t = 1; t < arguments.length; t++) {
2151
2150
  var n = arguments[t];
2152
2151
  for (var r in n)
2153
2152
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2154
2153
  }
2155
2154
  return e;
2156
- }, dt.apply(this, arguments);
2155
+ }, ut.apply(this, arguments);
2157
2156
  }
2158
- let rt = !1, Do = 0;
2157
+ let nt = !1, Do = 0;
2159
2158
  const Nt = () => "floating-ui-" + Do++;
2160
2159
  function Mo() {
2161
- const [e, t] = y.useState(() => rt ? Nt() : void 0);
2160
+ const [e, t] = y.useState(() => nt ? Nt() : void 0);
2162
2161
  return Q(() => {
2163
2162
  e == null && t(Nt());
2164
2163
  }, []), y.useEffect(() => {
2165
- rt || (rt = !0);
2164
+ nt || (nt = !0);
2166
2165
  }, []), e;
2167
2166
  }
2168
- const Lo = y[/* @__PURE__ */ "useId".toString()], vt = Lo || Mo;
2167
+ const Lo = y[/* @__PURE__ */ "useId".toString()], yt = Lo || Mo;
2169
2168
  function Fo() {
2170
2169
  const e = /* @__PURE__ */ new Map();
2171
2170
  return {
@@ -2182,10 +2181,10 @@ function Fo() {
2182
2181
  }
2183
2182
  };
2184
2183
  }
2185
- const Wo = /* @__PURE__ */ y.createContext(null), No = /* @__PURE__ */ y.createContext(null), xt = () => {
2184
+ const Wo = /* @__PURE__ */ y.createContext(null), No = /* @__PURE__ */ y.createContext(null), vt = () => {
2186
2185
  var e;
2187
2186
  return ((e = y.useContext(Wo)) == null ? void 0 : e.id) || null;
2188
- }, wt = () => y.useContext(No);
2187
+ }, xt = () => y.useContext(No);
2189
2188
  function Qe(e) {
2190
2189
  return "data-floating-ui-" + e;
2191
2190
  }
@@ -2196,7 +2195,7 @@ function Ce(e) {
2196
2195
  }), t;
2197
2196
  }
2198
2197
  const zt = /* @__PURE__ */ Qe("safe-polygon");
2199
- function ot(e, t, n) {
2198
+ function rt(e, t, n) {
2200
2199
  return n && !_e(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
2201
2200
  }
2202
2201
  function zo(e, t) {
@@ -2218,7 +2217,7 @@ function zo(e, t) {
2218
2217
  mouseOnly: f = !1,
2219
2218
  restMs: u = 0,
2220
2219
  move: g = !0
2221
- } = t, p = wt(), w = xt(), h = Ce(d), x = Ce(m), P = y.useRef(), S = y.useRef(), k = y.useRef(), C = y.useRef(), A = y.useRef(!0), T = y.useRef(!1), B = y.useRef(() => {
2220
+ } = t, p = xt(), w = vt(), h = Ce(d), x = Ce(m), P = y.useRef(), S = y.useRef(), k = y.useRef(), C = y.useRef(), A = y.useRef(!0), T = y.useRef(!1), B = y.useRef(() => {
2222
2221
  }), D = y.useCallback(() => {
2223
2222
  var b;
2224
2223
  const v = (b = o.current.openEvent) == null ? void 0 : b.type;
@@ -2249,7 +2248,7 @@ function zo(e, t) {
2249
2248
  }, [l, n, r, c, h, D]);
2250
2249
  const L = y.useCallback(function(b, v, I) {
2251
2250
  v === void 0 && (v = !0), I === void 0 && (I = "hover");
2252
- const R = ot(x.current, "close", P.current);
2251
+ const R = rt(x.current, "close", P.current);
2253
2252
  R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() => r(!1, b, I), R)) : v && (clearTimeout(S.current), r(!1, b, I));
2254
2253
  }, [x, r]), M = y.useCallback(() => {
2255
2254
  B.current(), k.current = void 0;
@@ -2266,9 +2265,9 @@ function zo(e, t) {
2266
2265
  return o.current.openEvent ? ["click", "mousedown"].includes(o.current.openEvent.type) : !1;
2267
2266
  }
2268
2267
  function v($) {
2269
- if (clearTimeout(S.current), A.current = !1, f && !_e(P.current) || u > 0 && ot(x.current, "open") === 0)
2268
+ if (clearTimeout(S.current), A.current = !1, f && !_e(P.current) || u > 0 && rt(x.current, "open") === 0)
2270
2269
  return;
2271
- const F = ot(x.current, "open", P.current);
2270
+ const F = rt(x.current, "open", P.current);
2272
2271
  F ? S.current = setTimeout(() => {
2273
2272
  r(!0, $, "hover");
2274
2273
  }, F) : r(!0, $, "hover");
@@ -2394,7 +2393,7 @@ function jo() {
2394
2393
  function Ho() {
2395
2394
  return wn(document.body, "prev");
2396
2395
  }
2397
- function it(e, t) {
2396
+ function ot(e, t) {
2398
2397
  const n = t || e.currentTarget, r = e.relatedTarget;
2399
2398
  return !r || !pe(n, r);
2400
2399
  }
@@ -2440,14 +2439,14 @@ const Ht = /* @__PURE__ */ y.forwardRef(function(t, n) {
2440
2439
  [Qe("focus-guard")]: "",
2441
2440
  style: $n
2442
2441
  };
2443
- return /* @__PURE__ */ y.createElement("span", dt({}, t, i));
2442
+ return /* @__PURE__ */ y.createElement("span", ut({}, t, i));
2444
2443
  }), Sn = /* @__PURE__ */ y.createContext(null), Vt = /* @__PURE__ */ Qe("portal");
2445
2444
  function Ko(e) {
2446
2445
  let {
2447
2446
  id: t,
2448
2447
  root: n
2449
2448
  } = e === void 0 ? {} : e;
2450
- const [r, o] = y.useState(null), i = vt(), s = Go(), l = y.useRef(null);
2449
+ const [r, o] = y.useState(null), i = yt(), s = Go(), l = y.useRef(null);
2451
2450
  return Q(() => () => {
2452
2451
  r == null || r.remove(), queueMicrotask(() => {
2453
2452
  l.current = null;
@@ -2492,7 +2491,7 @@ function Xo(e) {
2492
2491
  if (!i || !o || s != null && s.modal)
2493
2492
  return;
2494
2493
  function u(g) {
2495
- i && it(g) && (g.type === "focusin" ? _o : Vo)(i);
2494
+ i && ot(g) && (g.type === "focusin" ? _o : Vo)(i);
2496
2495
  }
2497
2496
  return i.addEventListener("focusin", u, !0), i.addEventListener("focusout", u, !0), () => {
2498
2497
  i.removeEventListener("focusin", u, !0), i.removeEventListener("focusout", u, !0);
@@ -2511,7 +2510,7 @@ function Xo(e) {
2511
2510
  "data-type": "outside",
2512
2511
  ref: a,
2513
2512
  onFocus: (u) => {
2514
- if (it(u, i)) {
2513
+ if (ot(u, i)) {
2515
2514
  var g;
2516
2515
  (g = m.current) == null || g.focus();
2517
2516
  } else {
@@ -2526,7 +2525,7 @@ function Xo(e) {
2526
2525
  "data-type": "outside",
2527
2526
  ref: c,
2528
2527
  onFocus: (u) => {
2529
- if (it(u, i)) {
2528
+ if (ot(u, i)) {
2530
2529
  var g;
2531
2530
  (g = d.current) == null || g.focus();
2532
2531
  } else {
@@ -2620,7 +2619,7 @@ function Jo(e, t) {
2620
2619
  ancestorScroll: p = !1,
2621
2620
  bubbles: w,
2622
2621
  capture: h
2623
- } = t, x = wt(), P = Re(typeof d == "function" ? d : () => !1), S = typeof d == "function" ? P : d, k = y.useRef(!1), C = y.useRef(!1), {
2622
+ } = t, x = xt(), P = Re(typeof d == "function" ? d : () => !1), S = typeof d == "function" ? P : d, k = y.useRef(!1), C = y.useRef(!1), {
2624
2623
  escapeKey: A,
2625
2624
  outsidePress: T
2626
2625
  } = Kt(w), {
@@ -2658,38 +2657,38 @@ function Jo(e, t) {
2658
2657
  const $ = Se(v), F = "[" + Qe("inert") + "]", K = fe(l).querySelectorAll(F);
2659
2658
  let G = N($) ? $ : null;
2660
2659
  for (; G && !Te(G); ) {
2661
- const H = he(G);
2662
- if (Te(H) || !N(H))
2660
+ const V = he(G);
2661
+ if (Te(V) || !N(V))
2663
2662
  break;
2664
- G = H;
2663
+ G = V;
2665
2664
  }
2666
2665
  if (K.length && N($) && !Ir($) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
2667
2666
  !pe($, l) && // If the target root element contains none of the markers, then the
2668
2667
  // element was injected after the floating element rendered.
2669
- Array.from(K).every((H) => !pe(G, H)))
2668
+ Array.from(K).every((V) => !pe(G, V)))
2670
2669
  return;
2671
2670
  if (Z($) && l) {
2672
- const H = $.clientWidth > 0 && $.scrollWidth > $.clientWidth, X = $.clientHeight > 0 && $.scrollHeight > $.clientHeight;
2671
+ const V = $.clientWidth > 0 && $.scrollWidth > $.clientWidth, X = $.clientHeight > 0 && $.scrollHeight > $.clientHeight;
2673
2672
  let ae = X && v.offsetX > $.clientWidth;
2674
- if (X && J($).direction === "rtl" && (ae = v.offsetX <= $.offsetWidth - $.clientWidth), ae || H && v.offsetY > $.clientHeight)
2673
+ if (X && J($).direction === "rtl" && (ae = v.offsetX <= $.offsetWidth - $.clientWidth), ae || V && v.offsetY > $.clientHeight)
2675
2674
  return;
2676
2675
  }
2677
- const ye = x && Ve(x.nodesRef.current, o).some((H) => {
2676
+ const ye = x && Ve(x.nodesRef.current, o).some((V) => {
2678
2677
  var X;
2679
- return nt(v, (X = H.context) == null ? void 0 : X.elements.floating);
2678
+ return tt(v, (X = V.context) == null ? void 0 : X.elements.floating);
2680
2679
  });
2681
- if (nt(v, l) || nt(v, s) || ye)
2680
+ if (tt(v, l) || tt(v, s) || ye)
2682
2681
  return;
2683
2682
  const le = x ? Ve(x.nodesRef.current, o) : [];
2684
2683
  if (le.length > 0) {
2685
- let H = !0;
2684
+ let V = !0;
2686
2685
  if (le.forEach((X) => {
2687
2686
  var ae;
2688
2687
  if ((ae = X.context) != null && ae.open && !X.context.dataRef.current.__outsidePressBubbles) {
2689
- H = !1;
2688
+ V = !1;
2690
2689
  return;
2691
2690
  }
2692
- }), !H)
2691
+ }), !V)
2693
2692
  return;
2694
2693
  }
2695
2694
  r(!1, v, "outside-press");
@@ -2746,8 +2745,8 @@ function Jo(e, t) {
2746
2745
  }
2747
2746
  } : {}, [c, u, f, g, r, L]);
2748
2747
  }
2749
- let ft;
2750
- process.env.NODE_ENV !== "production" && (ft = /* @__PURE__ */ new Set());
2748
+ let dt;
2749
+ process.env.NODE_ENV !== "production" && (dt = /* @__PURE__ */ new Set());
2751
2750
  function Qo(e) {
2752
2751
  var t;
2753
2752
  e === void 0 && (e = {});
@@ -2761,20 +2760,20 @@ function Qo(e) {
2761
2760
  const T = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
2762
2761
  if ((i = e.elements) != null && i.reference && !N(e.elements.reference)) {
2763
2762
  var s;
2764
- if (!((s = ft) != null && s.has(T))) {
2763
+ if (!((s = dt) != null && s.has(T))) {
2765
2764
  var l;
2766
- (l = ft) == null || l.add(T), console.error(T);
2765
+ (l = dt) == null || l.add(T), console.error(T);
2767
2766
  }
2768
2767
  }
2769
2768
  }
2770
- const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, d = mo(e), f = wt(), u = xt() != null, g = Re((T, B, D) => {
2769
+ const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, d = mo(e), f = xt(), u = vt() != null, g = Re((T, B, D) => {
2771
2770
  T && (w.current.openEvent = B), h.emit("openchange", {
2772
2771
  open: T,
2773
2772
  event: B,
2774
2773
  reason: D,
2775
2774
  nested: u
2776
2775
  }), r == null || r(T, B, D);
2777
- }), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => Fo())[0], x = vt(), P = y.useCallback((T) => {
2776
+ }), p = y.useRef(null), w = y.useRef({}), h = y.useState(() => Fo())[0], x = yt(), P = y.useCallback((T) => {
2778
2777
  const B = N(T) ? {
2779
2778
  getBoundingClientRect: () => T.getBoundingClientRect(),
2780
2779
  contextElement: T
@@ -2815,7 +2814,7 @@ function Qo(e) {
2815
2814
  }), [d, k, C, A]);
2816
2815
  }
2817
2816
  const Xt = "active", Gt = "selected";
2818
- function st(e, t, n) {
2817
+ function it(e, t, n) {
2819
2818
  const r = /* @__PURE__ */ new Map(), o = n === "item";
2820
2819
  let i = e;
2821
2820
  if (o && e) {
@@ -2853,8 +2852,8 @@ function st(e, t, n) {
2853
2852
  }
2854
2853
  function ei(e) {
2855
2854
  e === void 0 && (e = []);
2856
- const t = e, n = y.useCallback((i) => st(i, e, "reference"), t), r = y.useCallback((i) => st(i, e, "floating"), t), o = y.useCallback(
2857
- (i) => st(i, e, "item"),
2855
+ const t = e, n = y.useCallback((i) => it(i, e, "reference"), t), r = y.useCallback((i) => it(i, e, "floating"), t), o = y.useCallback(
2856
+ (i) => it(i, e, "item"),
2858
2857
  // Granularly check for `item` changes, because the `getItemProps` getter
2859
2858
  // should be as referentially stable as possible since it may be passed as
2860
2859
  // a prop to many components. All `item` key values must therefore be
@@ -2877,7 +2876,7 @@ function ni(e, t) {
2877
2876
  } = e, {
2878
2877
  enabled: i = !0,
2879
2878
  role: s = "dialog"
2880
- } = t, l = (n = ti.get(s)) != null ? n : s, a = vt(), m = xt() != null;
2879
+ } = t, l = (n = ti.get(s)) != null ? n : s, a = yt(), m = vt() != null;
2881
2880
  return y.useMemo(() => {
2882
2881
  if (!i)
2883
2882
  return {};
@@ -3086,7 +3085,7 @@ function li(e) {
3086
3085
  const {
3087
3086
  clientX: C,
3088
3087
  clientY: A
3089
- } = S, T = [C, A], B = Se(S), D = S.type === "mouseleave", L = pe(p.floating, B), M = pe(p.domReference, B), O = p.domReference.getBoundingClientRect(), b = p.floating.getBoundingClientRect(), v = g.split("-")[0], I = f > b.right - b.width / 2, R = u > b.bottom - b.height / 2, $ = si(T, O), F = b.width > O.width, K = b.height > O.height, G = (F ? O : b).left, ye = (F ? O : b).right, le = (K ? O : b).top, H = (K ? O : b).bottom;
3088
+ } = S, T = [C, A], B = Se(S), D = S.type === "mouseleave", L = pe(p.floating, B), M = pe(p.domReference, B), O = p.domReference.getBoundingClientRect(), b = p.floating.getBoundingClientRect(), v = g.split("-")[0], I = f > b.right - b.width / 2, R = u > b.bottom - b.height / 2, $ = si(T, O), F = b.width > O.width, K = b.height > O.height, G = (F ? O : b).left, ye = (F ? O : b).right, le = (K ? O : b).top, V = (K ? O : b).bottom;
3090
3089
  if (L && (i = !0, !D))
3091
3090
  return;
3092
3091
  if (M && (i = !1), M && !D) {
@@ -3111,10 +3110,10 @@ function li(e) {
3111
3110
  X = [[G, b.top + 1], [G, O.bottom - 1], [ye, O.bottom - 1], [ye, b.top + 1]];
3112
3111
  break;
3113
3112
  case "left":
3114
- X = [[b.right - 1, H], [b.right - 1, le], [O.left + 1, le], [O.left + 1, H]];
3113
+ X = [[b.right - 1, V], [b.right - 1, le], [O.left + 1, le], [O.left + 1, V]];
3115
3114
  break;
3116
3115
  case "right":
3117
- X = [[O.right - 1, H], [O.right - 1, le], [b.left + 1, le], [b.left + 1, H]];
3116
+ X = [[O.right - 1, V], [O.right - 1, le], [b.left + 1, le], [b.left + 1, V]];
3118
3117
  break;
3119
3118
  }
3120
3119
  function ae(ce) {
@@ -3154,7 +3153,7 @@ function li(e) {
3154
3153
  blockPointerEvents: n
3155
3154
  }, m;
3156
3155
  }
3157
- const ai = V("div"), $t = kn(
3156
+ const ai = H("div"), wt = kn(
3158
3157
  {}
3159
3158
  ), vi = ({
3160
3159
  children: e,
@@ -3209,9 +3208,9 @@ const ai = V("div"), $t = kn(
3209
3208
  f
3210
3209
  ]
3211
3210
  );
3212
- return /* @__PURE__ */ z($t.Provider, { value: P, children: e });
3211
+ return /* @__PURE__ */ z(wt.Provider, { value: P, children: e });
3213
3212
  }, xi = ({ children: e }) => {
3214
- const { getReferenceProps: t, refs: n } = Qt($t);
3213
+ const { getReferenceProps: t, refs: n } = Qt(wt);
3215
3214
  return /* @__PURE__ */ z(En, { children: In(e) && Pn(e, {
3216
3215
  ref: n.setReference,
3217
3216
  ...t()
@@ -3223,7 +3222,7 @@ const ai = V("div"), $t = kn(
3223
3222
  refs: o,
3224
3223
  floatingStyles: i,
3225
3224
  transitionStyles: s
3226
- } = Qt($t);
3225
+ } = Qt(wt);
3227
3226
  return r ? /* @__PURE__ */ z(Xo, { children: /* @__PURE__ */ z(
3228
3227
  ai,
3229
3228
  {
@@ -3236,7 +3235,7 @@ const ai = V("div"), $t = kn(
3236
3235
  children: /* @__PURE__ */ z(tn, { ...t, style: s, children: e })
3237
3236
  }
3238
3237
  ) }) : null;
3239
- }, $i = V("span", {
3238
+ }, $i = H("span", {
3240
3239
  flex: "0 0 auto",
3241
3240
  display: "inline-flex",
3242
3241
  padding: "$1 $2",
@@ -3273,17 +3272,17 @@ const ai = V("div"), $t = kn(
3273
3272
  defaultVariants: {
3274
3273
  color: "primary"
3275
3274
  }
3276
- }), Si = V(Le.Root, {
3275
+ }), Si = H(Le.Root, {
3277
3276
  backgroundColor: "$gray50",
3278
3277
  display: "flex",
3279
3278
  alignItems: "center",
3280
3279
  padding: "$1",
3281
3280
  gap: "$1"
3282
- }), Ri = V(Le.ToggleGroup, {
3281
+ }), Ri = H(Le.ToggleGroup, {
3283
3282
  display: "flex",
3284
3283
  gap: "$1",
3285
3284
  alignItems: "center"
3286
- }), Ei = V(Le.Separator, {
3285
+ }), Ei = H(Le.Separator, {
3287
3286
  width: "1px",
3288
3287
  height: "1.5rem",
3289
3288
  my: "$1",
@@ -3345,10 +3344,35 @@ const ai = V("div"), $t = kn(
3345
3344
  }
3346
3345
  )
3347
3346
  }
3348
- )), ci = V(tn, {
3347
+ )), Ti = H("div", {
3348
+ color: "$$cardText",
3349
+ backgroundColor: "$$cardBackground",
3350
+ borderRadius: "$md",
3351
+ padding: "$4",
3352
+ variants: {
3353
+ variant: {
3354
+ primary: {
3355
+ $$cardBackground: "white",
3356
+ $$cardText: "$text"
3357
+ }
3358
+ },
3359
+ elevation: {
3360
+ none: {
3361
+ boxShadow: "none"
3362
+ },
3363
+ raised: {
3364
+ boxShadow: "$md"
3365
+ }
3366
+ }
3367
+ },
3368
+ defaultVariants: {
3369
+ variant: "primary",
3370
+ elevation: "raised"
3371
+ }
3372
+ }), ci = H(tn, {
3349
3373
  minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
3350
3374
  padding: "$1"
3351
- }), St = gt({
3375
+ }), $t = mt({
3352
3376
  padding: "$2 $2 $2 1.5rem",
3353
3377
  fontSize: "$sm",
3354
3378
  lineHeight: "1.25",
@@ -3371,7 +3395,7 @@ const ai = V("div"), $t = kn(
3371
3395
  backgroundColor: "transparent"
3372
3396
  }
3373
3397
  }
3374
- }), Ti = ({
3398
+ }), Ii = ({
3375
3399
  side: e = "bottom",
3376
3400
  align: t = "center",
3377
3401
  trigger: n,
@@ -3391,7 +3415,7 @@ const ai = V("div"), $t = kn(
3391
3415
  children: /* @__PURE__ */ z(ci, { children: r })
3392
3416
  }
3393
3417
  ) })
3394
- ] }), ui = V(ee.ItemIndicator, {
3418
+ ] }), ui = H(ee.ItemIndicator, {
3395
3419
  position: "absolute",
3396
3420
  left: 0,
3397
3421
  top: 0,
@@ -3400,16 +3424,16 @@ const ai = V("div"), $t = kn(
3400
3424
  display: "flex",
3401
3425
  justifyContent: "center",
3402
3426
  alignItems: "center"
3403
- }), Ii = V(ee.Separator, {
3427
+ }), Pi = H(ee.Separator, {
3404
3428
  height: 1,
3405
3429
  backgroundColor: "$gray200",
3406
3430
  margin: 1
3407
- }), Pi = V(ee.Item, St), Ai = V(ee.Item, St, {
3431
+ }), Ai = H(ee.Item, $t), Bi = H(ee.Item, $t, {
3408
3432
  padding: "$2",
3409
3433
  display: "flex",
3410
3434
  alignItems: "center",
3411
3435
  gap: "$2"
3412
- }), di = V(ee.CheckboxItem, St), Bi = ({
3436
+ }), di = H(ee.CheckboxItem, $t), Oi = ({
3413
3437
  value: e,
3414
3438
  onChange: t,
3415
3439
  children: n
@@ -3427,16 +3451,17 @@ const ai = V("div"), $t = kn(
3427
3451
  export {
3428
3452
  bi as A,
3429
3453
  ai as B,
3430
- Ti as D,
3454
+ Ti as C,
3455
+ Ii as D,
3431
3456
  Xo as F,
3432
3457
  ci as M,
3433
3458
  tn as O,
3434
3459
  vi as P,
3435
3460
  gr as S,
3436
3461
  Ci as T,
3437
- Ai as a,
3462
+ Bi as a,
3438
3463
  Ri as b,
3439
- gt as c,
3464
+ mt as c,
3440
3465
  ki as d,
3441
3466
  ao as e,
3442
3467
  yi as f,
@@ -3452,12 +3477,12 @@ export {
3452
3477
  Be as p,
3453
3478
  hi as q,
3454
3479
  hr as r,
3455
- V as s,
3480
+ H as s,
3456
3481
  $i as t,
3457
3482
  Qo as u,
3458
3483
  Rn as v,
3459
- St as w,
3460
- Ii as x,
3461
- Pi as y,
3462
- Bi as z
3484
+ $t as w,
3485
+ Pi as x,
3486
+ Ai as y,
3487
+ Oi as z
3463
3488
  };