@arkitektbedriftene/fe-lib 0.4.11 → 0.4.13

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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as F, jsxs as ee, Fragment as On } from "react/jsx-runtime";
2
2
  import * as y from "react";
3
- import Se, { forwardRef as $e, useLayoutEffect as en, useEffect as tn, useRef as Dn, createContext as Mn, useMemo as ct, useContext as nn, isValidElement as Ln, cloneElement as Fn, useId as on } from "react";
3
+ import Re, { forwardRef as $e, useLayoutEffect as en, useEffect as tn, useRef as Dn, createContext as Mn, useMemo as ct, useContext as nn, isValidElement as Ln, cloneElement as Fn, useId as on } from "react";
4
4
  import * as zn from "react-dom";
5
5
  import { createPortal as Wn } from "react-dom";
6
6
  import * as He from "@radix-ui/react-toolbar";
@@ -9,7 +9,7 @@ import * as Ne from "@radix-ui/react-dialog";
9
9
  import * as ne from "@radix-ui/react-dropdown-menu";
10
10
  import Yn from "react-select";
11
11
  import * as rn from "@radix-ui/react-checkbox";
12
- var W = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap: E, gridColumnGap: E, rowGap: E, gridRowGap: E, inset: E, insetBlock: E, insetBlockEnd: E, insetBlockStart: E, insetInline: E, insetInlineEnd: E, insetInlineStart: E, margin: E, marginTop: E, marginRight: E, marginBottom: E, marginLeft: E, marginBlock: E, marginBlockEnd: E, marginBlockStart: E, marginInline: E, marginInlineEnd: E, marginInlineStart: E, padding: E, paddingTop: E, paddingRight: E, paddingBottom: E, paddingLeft: E, paddingBlock: E, paddingBlockEnd: E, paddingBlockStart: E, paddingInline: E, paddingInlineEnd: E, paddingInlineStart: E, top: E, right: E, bottom: E, left: E, scrollMargin: E, scrollMarginTop: E, scrollMarginRight: E, scrollMarginBottom: E, scrollMarginLeft: E, scrollMarginX: E, scrollMarginY: E, scrollMarginBlock: E, scrollMarginBlockEnd: E, scrollMarginBlockStart: E, scrollMarginInline: E, scrollMarginInlineEnd: E, scrollMarginInlineStart: E, scrollPadding: E, scrollPaddingTop: E, scrollPaddingRight: E, scrollPaddingBottom: E, scrollPaddingLeft: E, scrollPaddingX: E, scrollPaddingY: E, scrollPaddingBlock: E, scrollPaddingBlockEnd: E, scrollPaddingBlockStart: E, scrollPaddingInline: E, scrollPaddingInlineEnd: E, scrollPaddingInlineStart: E, fontSize: "fontSizes", background: W, backgroundColor: W, backgroundImage: W, borderImage: W, border: W, borderBlock: W, borderBlockEnd: W, borderBlockStart: W, borderBottom: W, borderBottomColor: W, borderColor: W, borderInline: W, borderInlineEnd: W, borderInlineStart: W, borderLeft: W, borderLeftColor: W, borderRight: W, borderRightColor: W, borderTop: W, borderTopColor: W, caretColor: W, color: W, columnRuleColor: W, fill: W, outline: W, outlineColor: W, stroke: W, textDecorationColor: W, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: X, minBlockSize: X, maxBlockSize: X, inlineSize: X, minInlineSize: X, maxInlineSize: X, width: X, minWidth: X, maxWidth: X, height: X, minHeight: X, maxHeight: X, flexBasis: X, gridTemplateColumns: X, gridTemplateRows: X, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, Kn = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, De = () => {
12
+ var N = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap: E, gridColumnGap: E, rowGap: E, gridRowGap: E, inset: E, insetBlock: E, insetBlockEnd: E, insetBlockStart: E, insetInline: E, insetInlineEnd: E, insetInlineStart: E, margin: E, marginTop: E, marginRight: E, marginBottom: E, marginLeft: E, marginBlock: E, marginBlockEnd: E, marginBlockStart: E, marginInline: E, marginInlineEnd: E, marginInlineStart: E, padding: E, paddingTop: E, paddingRight: E, paddingBottom: E, paddingLeft: E, paddingBlock: E, paddingBlockEnd: E, paddingBlockStart: E, paddingInline: E, paddingInlineEnd: E, paddingInlineStart: E, top: E, right: E, bottom: E, left: E, scrollMargin: E, scrollMarginTop: E, scrollMarginRight: E, scrollMarginBottom: E, scrollMarginLeft: E, scrollMarginX: E, scrollMarginY: E, scrollMarginBlock: E, scrollMarginBlockEnd: E, scrollMarginBlockStart: E, scrollMarginInline: E, scrollMarginInlineEnd: E, scrollMarginInlineStart: E, scrollPadding: E, scrollPaddingTop: E, scrollPaddingRight: E, scrollPaddingBottom: E, scrollPaddingLeft: E, scrollPaddingX: E, scrollPaddingY: E, scrollPaddingBlock: E, scrollPaddingBlockEnd: E, scrollPaddingBlockStart: E, scrollPaddingInline: E, scrollPaddingInlineEnd: E, scrollPaddingInlineStart: E, fontSize: "fontSizes", background: N, backgroundColor: N, backgroundImage: N, borderImage: N, border: N, borderBlock: N, borderBlockEnd: N, borderBlockStart: N, borderBottom: N, borderBottomColor: N, borderColor: N, borderInline: N, borderInlineEnd: N, borderInlineStart: N, borderLeft: N, borderLeftColor: N, borderRight: N, borderRightColor: N, borderTop: N, borderTopColor: N, caretColor: N, color: N, columnRuleColor: N, fill: N, outline: N, outlineColor: N, stroke: N, textDecorationColor: N, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: X, minBlockSize: X, maxBlockSize: X, inlineSize: X, minInlineSize: X, maxInlineSize: X, width: X, minWidth: X, maxWidth: X, height: X, minHeight: X, maxHeight: X, flexBasis: X, gridTemplateColumns: X, gridTemplateRows: X, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, Kn = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, De = () => {
13
13
  const e = /* @__PURE__ */ Object.create(null);
14
14
  return (t, n, ...o) => {
15
15
  const r = ((i) => JSON.stringify(i, Kn))(t);
@@ -27,15 +27,15 @@ var W = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
27
27
  for (f in p) {
28
28
  const x = f.charCodeAt(0) === 64, B = x && Array.isArray(p[f]) ? p[f] : [p[f]];
29
29
  for (d of B) {
30
- const R = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof d == "object" && d && d.toString === eo && (!o.utils[R] || !m.length);
31
- if (R in o.utils && !k) {
32
- const C = o.utils[R];
30
+ const S = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), k = typeof d == "object" && d && d.toString === eo && (!o.utils[S] || !m.length);
31
+ if (S in o.utils && !k) {
32
+ const C = o.utils[S];
33
33
  if (C !== s) {
34
34
  s = C, g(C(d)), s = null;
35
35
  continue;
36
36
  }
37
- } else if (R in kt) {
38
- const C = kt[R];
37
+ } else if (S in kt) {
38
+ const C = kt[S];
39
39
  if (C !== l) {
40
40
  l = C, g(C(d)), l = null;
41
41
  continue;
@@ -43,12 +43,12 @@ var W = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
43
43
  }
44
44
  if (x && ($ = f.slice(1) in o.media ? "@media " + o.media[f.slice(1)] : f, f = $.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (C, P, T, D, A, L) => {
45
45
  const M = ot.test(P), O = 0.0625 * (M ? -1 : 1), [b, v] = M ? [D, P] : [P, D];
46
- return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(ot, (I, S, w) => Number(S) + O * (T === ">" ? 1 : -1) + w) : v) + (A ? ") and (" + (A[0] === ">" ? "min-" : "max-") + b + ":" + (A.length === 1 ? L.replace(ot, (I, S, w) => Number(S) + O * (A === ">" ? -1 : 1) + w) : L) : "") + ")";
46
+ return "(" + (T[0] === "=" ? "" : T[0] === ">" === M ? "max-" : "min-") + b + ":" + (T[0] !== "=" && T.length === 1 ? v.replace(ot, (I, R, w) => Number(R) + O * (T === ">" ? 1 : -1) + w) : v) + (A ? ") and (" + (A[0] === ">" ? "min-" : "max-") + b + ":" + (A.length === 1 ? L.replace(ot, (I, R, w) => Number(R) + O * (A === ">" ? -1 : 1) + w) : L) : "") + ")";
47
47
  })), k) {
48
48
  const C = x ? u.concat(f) : [...u], P = x ? [...m] : qn(m, f.split(Qn));
49
49
  i !== void 0 && r(Tt(...i)), i = void 0, a(d, P, C);
50
50
  } else
51
- i === void 0 && (i = [[], m, u]), f = x || f.charCodeAt(0) !== 36 ? f : `--${oe(o.prefix)}${f.slice(1).replace(/\$/g, "-")}`, d = k ? d : typeof d == "number" ? d && R in to ? String(d) + "px" : String(d) : sn(Zn(R, d ?? ""), o.prefix, o.themeMap[R]), i[0].push(`${x ? `${f} ` : `${ut(f)}:`}${d}`);
51
+ i === void 0 && (i = [[], m, u]), f = x || f.charCodeAt(0) !== 36 ? f : `--${oe(o.prefix)}${f.slice(1).replace(/\$/g, "-")}`, d = k ? d : typeof d == "number" ? d && S in to ? String(d) + "px" : String(d) : sn(Zn(S, d ?? ""), o.prefix, o.themeMap[S]), i[0].push(`${x ? `${f} ` : `${ut(f)}:`}${d}`);
52
52
  }
53
53
  }
54
54
  var $, h;
@@ -209,11 +209,11 @@ var W = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
209
209
  } else
210
210
  g[h] = i[h];
211
211
  const p = /* @__PURE__ */ new Set([...r]);
212
- for (const [h, x, B, R] of t.composers) {
212
+ for (const [h, x, B, S] of t.composers) {
213
213
  n.rules.styled.cache.has(h) || (n.rules.styled.cache.add(h), Ie(x, [`.${h}`], [], e, (P) => {
214
214
  a.styled.apply(P);
215
215
  }));
216
- const k = Pt(B, g, e.media), C = Pt(R, g, e.media, !0);
216
+ const k = Pt(B, g, e.media), C = Pt(S, g, e.media, !0);
217
217
  for (const P of k)
218
218
  if (P !== void 0)
219
219
  for (const [T, D, A] of P) {
@@ -372,16 +372,16 @@ var W = "colors", X = "sizes", E = "space", Xn = { gap: E, gridGap: E, columnGap
372
372
  return t.styled = (({ config: n, sheet: o }) => vo(n, () => {
373
373
  const r = Bt(n, o);
374
374
  return (...i) => {
375
- const s = r(...i), l = s[he].type, a = Se.forwardRef((c, m) => {
375
+ const s = r(...i), l = s[he].type, a = Re.forwardRef((c, m) => {
376
376
  const u = c && c.as || l, { props: f, deferredInjector: d } = s(c);
377
- return delete f.as, f.ref = m, d ? Se.createElement(Se.Fragment, null, Se.createElement(u, f), Se.createElement(d, null)) : Se.createElement(u, f);
377
+ return delete f.as, f.ref = m, d ? Re.createElement(Re.Fragment, null, Re.createElement(u, f), Re.createElement(d, null)) : Re.createElement(u, f);
378
378
  });
379
379
  return a.className = s.className, a.displayName = `Styled.${l.displayName || l.name || l}`, a.selector = s.selector, a.toString = () => s.selector, a[he] = s[he], a;
380
380
  };
381
381
  }))(t), t;
382
382
  };
383
383
  let At = 9999;
384
- const Ot = () => (At--, At), { styled: N, css: Ve, keyframes: Me, globalCss: Ni, getCssText: ji } = xo({
384
+ const Ot = () => (At--, At), { styled: W, css: Ve, keyframes: Me, globalCss: Ni, getCssText: ji } = xo({
385
385
  theme: {
386
386
  colors: {
387
387
  gray50: "#F9FAFA",
@@ -521,9 +521,9 @@ const Ot = () => (At--, At), { styled: N, css: Ve, keyframes: Me, globalCss: Ni,
521
521
  "100%": {
522
522
  strokeDashoffset: 0
523
523
  }
524
- }), Ro = N("svg", {
524
+ }), So = W("svg", {
525
525
  animation: `${$o} 2s linear infinite`
526
- }), So = N("circle", {
526
+ }), Ro = W("circle", {
527
527
  animation: `${wo} 1.6s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite`,
528
528
  fill: "transparent",
529
529
  stroke: "currentColor",
@@ -532,7 +532,7 @@ const Ot = () => (At--, At), { styled: N, css: Ve, keyframes: Me, globalCss: Ni,
532
532
  strokeLinecap: "round",
533
533
  strokeMiterlimit: 10,
534
534
  strokeWidth: 12
535
- }), Eo = N("div", {
535
+ }), Eo = W("div", {
536
536
  lineHeight: 0,
537
537
  flexShrink: 0,
538
538
  variants: {
@@ -577,13 +577,13 @@ const Ot = () => (At--, At), { styled: N, css: Ve, keyframes: Me, globalCss: Ni,
577
577
  ref: t,
578
578
  ...e,
579
579
  children: /* @__PURE__ */ F(
580
- Ro,
580
+ So,
581
581
  {
582
582
  x: "0px",
583
583
  y: "0px",
584
584
  viewBox: "0 0 150 150",
585
585
  children: /* @__PURE__ */ F(
586
- So,
586
+ Ro,
587
587
  {
588
588
  cx: "75",
589
589
  cy: "75",
@@ -594,7 +594,7 @@ const Ot = () => (At--, At), { styled: N, css: Ve, keyframes: Me, globalCss: Ni,
594
594
  )
595
595
  }
596
596
  )
597
- ), ko = N("button", {
597
+ ), ko = W("button", {
598
598
  appearance: "none",
599
599
  margin: 0,
600
600
  padding: 0,
@@ -769,7 +769,7 @@ const Ot = () => (At--, At), { styled: N, css: Ve, keyframes: Me, globalCss: Ni,
769
769
  ]
770
770
  }
771
771
  ))
772
- ), To = N("div", {
772
+ ), To = W("div", {
773
773
  padding: "$3",
774
774
  borderRadius: "$md",
775
775
  variants: {
@@ -850,7 +850,7 @@ const Ot = () => (At--, At), { styled: N, css: Ve, keyframes: Me, globalCss: Ni,
850
850
  '&[data-side="bottom"]': { animationName: Io },
851
851
  '&[data-side="left"]': { animationName: Bo }
852
852
  }
853
- }), an = N(
853
+ }), an = W(
854
854
  "div",
855
855
  Oo,
856
856
  Do
@@ -1164,7 +1164,7 @@ const qo = async (e, t, n) => {
1164
1164
  } = l[p], {
1165
1165
  x,
1166
1166
  y: B,
1167
- data: R,
1167
+ data: S,
1168
1168
  reset: k
1169
1169
  } = await h({
1170
1170
  x: m,
@@ -1184,7 +1184,7 @@ const qo = async (e, t, n) => {
1184
1184
  ...d,
1185
1185
  [$]: {
1186
1186
  ...d[$],
1187
- ...R
1187
+ ...S
1188
1188
  }
1189
1189
  }, k && g <= 50 && (g++, typeof k == "object" && (k.placement && (f = k.placement), k.rects && (c = k.rects === !0 ? await s.getElementRects({
1190
1190
  reference: e,
@@ -1228,7 +1228,7 @@ async function vt(e, t) {
1228
1228
  ...s.floating,
1229
1229
  x: o,
1230
1230
  y: r
1231
- } : s.reference, B = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), R = await (i.isElement == null ? void 0 : i.isElement(B)) ? await (i.getScale == null ? void 0 : i.getScale(B)) || {
1231
+ } : s.reference, B = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), S = await (i.isElement == null ? void 0 : i.isElement(B)) ? await (i.getScale == null ? void 0 : i.getScale(B)) || {
1232
1232
  x: 1,
1233
1233
  y: 1
1234
1234
  } : {
@@ -1241,10 +1241,10 @@ async function vt(e, t) {
1241
1241
  strategy: a
1242
1242
  }) : x);
1243
1243
  return {
1244
- top: (h.top - k.top + g.top) / R.y,
1245
- bottom: (k.bottom - h.bottom + g.bottom) / R.y,
1246
- left: (h.left - k.left + g.left) / R.x,
1247
- right: (k.right - h.right + g.right) / R.x
1244
+ top: (h.top - k.top + g.top) / S.y,
1245
+ bottom: (k.bottom - h.bottom + g.bottom) / S.y,
1246
+ left: (h.left - k.left + g.left) / S.x,
1247
+ right: (k.right - h.right + g.right) / S.x
1248
1248
  };
1249
1249
  }
1250
1250
  const Zo = function(e) {
@@ -1271,9 +1271,9 @@ const Zo = function(e) {
1271
1271
  } = Le(e, t);
1272
1272
  if ((n = i.arrow) != null && n.alignmentOffset)
1273
1273
  return {};
1274
- const h = te(r), x = te(l) === l, B = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), R = f || (x || !p ? [Ze(l)] : Xo(l));
1275
- !f && g !== "none" && R.push(...Go(l, p, g, B));
1276
- const k = [l, ...R], C = await vt(t, $), P = [];
1274
+ const h = te(r), x = te(l) === l, B = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = f || (x || !p ? [Ze(l)] : Xo(l));
1275
+ !f && g !== "none" && S.push(...Go(l, p, g, B));
1276
+ const k = [l, ...S], C = await vt(t, $), P = [];
1277
1277
  let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
1278
1278
  if (m && P.push(C[h]), u) {
1279
1279
  const M = Yo(r, s, B);
@@ -1300,7 +1300,7 @@ const Zo = function(e) {
1300
1300
  switch (d) {
1301
1301
  case "bestFit": {
1302
1302
  var L;
1303
- const v = (L = T.map((I) => [I.placement, I.overflows.filter((S) => S > 0).reduce((S, w) => S + w, 0)]).sort((I, S) => I[1] - S[1])[0]) == null ? void 0 : L[0];
1303
+ const v = (L = T.map((I) => [I.placement, I.overflows.filter((R) => R > 0).reduce((R, w) => R + w, 0)]).sort((I, R) => I[1] - R[1])[0]) == null ? void 0 : L[0];
1304
1304
  v && (b = v);
1305
1305
  break;
1306
1306
  }
@@ -1358,28 +1358,28 @@ const Qo = function(e) {
1358
1358
  return u.find(($) => a > $.left - d.left && a < $.right + d.right && c > $.top - d.top && c < $.bottom + d.bottom) || f;
1359
1359
  if (u.length >= 2) {
1360
1360
  if (Fe(n) === "y") {
1361
- const A = u[0], L = u[u.length - 1], M = te(n) === "top", O = A.top, b = L.bottom, v = M ? A.left : L.left, I = M ? A.right : L.right, S = I - v, w = b - O;
1361
+ const A = u[0], L = u[u.length - 1], M = te(n) === "top", O = A.top, b = L.bottom, v = M ? A.left : L.left, I = M ? A.right : L.right, R = I - v, w = b - O;
1362
1362
  return {
1363
1363
  top: O,
1364
1364
  bottom: b,
1365
1365
  left: v,
1366
1366
  right: I,
1367
- width: S,
1367
+ width: R,
1368
1368
  height: w,
1369
1369
  x: v,
1370
1370
  y: O
1371
1371
  };
1372
1372
  }
1373
- const $ = te(n) === "left", h = Y(...u.map((A) => A.right)), x = re(...u.map((A) => A.left)), B = u.filter((A) => $ ? A.left === x : A.right === h), R = B[0].top, k = B[B.length - 1].bottom, C = x, P = h, T = P - C, D = k - R;
1373
+ const $ = te(n) === "left", h = Y(...u.map((A) => A.right)), x = re(...u.map((A) => A.left)), B = u.filter((A) => $ ? A.left === x : A.right === h), S = B[0].top, k = B[B.length - 1].bottom, C = x, P = h, T = P - C, D = k - S;
1374
1374
  return {
1375
- top: R,
1375
+ top: S,
1376
1376
  bottom: k,
1377
1377
  left: C,
1378
1378
  right: P,
1379
1379
  width: T,
1380
1380
  height: D,
1381
1381
  x: C,
1382
- y: R
1382
+ y: S
1383
1383
  };
1384
1384
  }
1385
1385
  return f;
@@ -1522,21 +1522,21 @@ const tr = function(e) {
1522
1522
  let g, p;
1523
1523
  c === "top" || c === "bottom" ? (g = c, p = m === (await (r.isRTL == null ? void 0 : r.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (p = c, g = m === "end" ? "top" : "bottom");
1524
1524
  const $ = d - a[g], h = f - a[p], x = !t.middlewareData.shift;
1525
- let B = $, R = h;
1525
+ let B = $, S = h;
1526
1526
  if (u) {
1527
1527
  const C = f - a.left - a.right;
1528
- R = m || x ? re(h, C) : C;
1528
+ S = m || x ? re(h, C) : C;
1529
1529
  } else {
1530
1530
  const C = d - a.top - a.bottom;
1531
1531
  B = m || x ? re($, C) : C;
1532
1532
  }
1533
1533
  if (x && !m) {
1534
1534
  const C = Y(a.left, 0), P = Y(a.right, 0), T = Y(a.top, 0), D = Y(a.bottom, 0);
1535
- u ? R = f - 2 * (C !== 0 || P !== 0 ? C + P : Y(a.left, a.right)) : B = d - 2 * (T !== 0 || D !== 0 ? T + D : Y(a.top, a.bottom));
1535
+ u ? S = f - 2 * (C !== 0 || P !== 0 ? C + P : Y(a.left, a.right)) : B = d - 2 * (T !== 0 || D !== 0 ? T + D : Y(a.top, a.bottom));
1536
1536
  }
1537
1537
  await s({
1538
1538
  ...t,
1539
- availableWidth: R,
1539
+ availableWidth: S,
1540
1540
  availableHeight: B
1541
1541
  });
1542
1542
  const k = await r.getDimensions(i.floating);
@@ -1598,8 +1598,8 @@ function xe(e, t, n, o) {
1598
1598
  const f = q(i), d = o && j(o) ? q(o) : o;
1599
1599
  let g = f, p = g.frameElement;
1600
1600
  for (; p && o && d !== g; ) {
1601
- const $ = Pe(p), h = p.getBoundingClientRect(), x = J(p), B = h.left + (p.clientLeft + parseFloat(x.paddingLeft)) * $.x, R = h.top + (p.clientTop + parseFloat(x.paddingTop)) * $.y;
1602
- a *= $.x, c *= $.y, m *= $.x, u *= $.y, a += B, c += R, g = q(p), p = g.frameElement;
1601
+ const $ = Pe(p), h = p.getBoundingClientRect(), x = J(p), B = h.left + (p.clientLeft + parseFloat(x.paddingLeft)) * $.x, S = h.top + (p.clientTop + parseFloat(x.paddingTop)) * $.y;
1602
+ a *= $.x, c *= $.y, m *= $.x, u *= $.y, a += B, c += S, g = q(p), p = g.frameElement;
1603
1603
  }
1604
1604
  }
1605
1605
  return Oe({
@@ -1830,7 +1830,7 @@ function vr(e, t) {
1830
1830
  threshold: Y(0, re(1, a)) || 1
1831
1831
  };
1832
1832
  let B = !0;
1833
- function R(k) {
1833
+ function S(k) {
1834
1834
  const C = k[0].intersectionRatio;
1835
1835
  if (C !== a) {
1836
1836
  if (!B)
@@ -1842,13 +1842,13 @@ function vr(e, t) {
1842
1842
  B = !1;
1843
1843
  }
1844
1844
  try {
1845
- n = new IntersectionObserver(R, {
1845
+ n = new IntersectionObserver(S, {
1846
1846
  ...x,
1847
1847
  // Handle <iframe>s
1848
1848
  root: r.ownerDocument
1849
1849
  });
1850
1850
  } catch {
1851
- n = new IntersectionObserver(R, x);
1851
+ n = new IntersectionObserver(S, x);
1852
1852
  }
1853
1853
  n.observe(e);
1854
1854
  }
@@ -1890,7 +1890,7 @@ function xr(e, t, n, o) {
1890
1890
  }), u == null || u(), (h = d) == null || h.disconnect(), d = null, a && cancelAnimationFrame(g);
1891
1891
  };
1892
1892
  }
1893
- const $r = nr, wr = Zo, Vi = or, _i = Qo, Rr = (e, t, n) => {
1893
+ const $r = nr, wr = Zo, Vi = or, _i = Qo, Sr = (e, t, n) => {
1894
1894
  const o = /* @__PURE__ */ new Map(), r = {
1895
1895
  platform: yr,
1896
1896
  ...n
@@ -1948,7 +1948,7 @@ function Wt(e) {
1948
1948
  t.current = e;
1949
1949
  }), t;
1950
1950
  }
1951
- function Sr(e) {
1951
+ function Rr(e) {
1952
1952
  e === void 0 && (e = {});
1953
1953
  const {
1954
1954
  placement: t = "bottom",
@@ -1971,19 +1971,19 @@ function Sr(e) {
1971
1971
  isPositioned: !1
1972
1972
  }), [f, d] = y.useState(o);
1973
1973
  Je(f, o) || d(o);
1974
- const [g, p] = y.useState(null), [$, h] = y.useState(null), x = y.useCallback((S) => {
1975
- S !== C.current && (C.current = S, p(S));
1976
- }, []), B = y.useCallback((S) => {
1977
- S !== P.current && (P.current = S, h(S));
1978
- }, []), R = i || g, k = s || $, C = y.useRef(null), P = y.useRef(null), T = y.useRef(m), D = a != null, A = Wt(a), L = Wt(r), M = y.useCallback(() => {
1974
+ const [g, p] = y.useState(null), [$, h] = y.useState(null), x = y.useCallback((R) => {
1975
+ R !== C.current && (C.current = R, p(R));
1976
+ }, []), B = y.useCallback((R) => {
1977
+ R !== P.current && (P.current = R, h(R));
1978
+ }, []), S = i || g, k = s || $, C = y.useRef(null), P = y.useRef(null), T = y.useRef(m), D = a != null, A = Wt(a), L = Wt(r), M = y.useCallback(() => {
1979
1979
  if (!C.current || !P.current)
1980
1980
  return;
1981
- const S = {
1981
+ const R = {
1982
1982
  placement: t,
1983
1983
  strategy: n,
1984
1984
  middleware: f
1985
1985
  };
1986
- L.current && (S.platform = L.current), Rr(C.current, P.current, S).then((w) => {
1986
+ L.current && (R.platform = L.current), Sr(C.current, P.current, R).then((w) => {
1987
1987
  const z = {
1988
1988
  ...w,
1989
1989
  isPositioned: !0
@@ -1994,8 +1994,8 @@ function Sr(e) {
1994
1994
  });
1995
1995
  }, [f, t, n, L]);
1996
1996
  Ke(() => {
1997
- c === !1 && T.current.isPositioned && (T.current.isPositioned = !1, u((S) => ({
1998
- ...S,
1997
+ c === !1 && T.current.isPositioned && (T.current.isPositioned = !1, u((R) => ({
1998
+ ...R,
1999
1999
  isPositioned: !1
2000
2000
  })));
2001
2001
  }, [c]);
@@ -2003,31 +2003,31 @@ function Sr(e) {
2003
2003
  Ke(() => (O.current = !0, () => {
2004
2004
  O.current = !1;
2005
2005
  }), []), Ke(() => {
2006
- if (R && (C.current = R), k && (P.current = k), R && k) {
2006
+ if (S && (C.current = S), k && (P.current = k), S && k) {
2007
2007
  if (A.current)
2008
- return A.current(R, k, M);
2008
+ return A.current(S, k, M);
2009
2009
  M();
2010
2010
  }
2011
- }, [R, k, M, A, D]);
2011
+ }, [S, k, M, A, D]);
2012
2012
  const b = y.useMemo(() => ({
2013
2013
  reference: C,
2014
2014
  floating: P,
2015
2015
  setReference: x,
2016
2016
  setFloating: B
2017
2017
  }), [x, B]), v = y.useMemo(() => ({
2018
- reference: R,
2018
+ reference: S,
2019
2019
  floating: k
2020
- }), [R, k]), I = y.useMemo(() => {
2021
- const S = {
2020
+ }), [S, k]), I = y.useMemo(() => {
2021
+ const R = {
2022
2022
  position: n,
2023
2023
  left: 0,
2024
2024
  top: 0
2025
2025
  };
2026
2026
  if (!v.floating)
2027
- return S;
2027
+ return R;
2028
2028
  const w = zt(v.floating, m.x), z = zt(v.floating, m.y);
2029
2029
  return l ? {
2030
- ...S,
2030
+ ...R,
2031
2031
  transform: "translate(" + w + "px, " + z + "px)",
2032
2032
  ...wn(v.floating) >= 1.5 && {
2033
2033
  willChange: "transform"
@@ -2050,8 +2050,8 @@ function Sr(e) {
2050
2050
  * tabbable 6.2.0
2051
2051
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2052
2052
  */
2053
- var Er = ["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])"], mt = /* @__PURE__ */ Er.join(","), Rn = typeof Element > "u", je = Rn ? function() {
2054
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Qe = !Rn && Element.prototype.getRootNode ? function(e) {
2053
+ var Er = ["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])"], mt = /* @__PURE__ */ Er.join(","), Sn = typeof Element > "u", je = Sn ? function() {
2054
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Qe = !Sn && Element.prototype.getRootNode ? function(e) {
2055
2055
  var t;
2056
2056
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
2057
2057
  } : function(e) {
@@ -2095,15 +2095,15 @@ var Er = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
2095
2095
  }
2096
2096
  }
2097
2097
  return r;
2098
- }, Sn = function(t) {
2098
+ }, Rn = function(t) {
2099
2099
  return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
2100
2100
  }, En = function(t) {
2101
2101
  if (!t)
2102
2102
  throw new Error("No node provided");
2103
- return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Cr(t)) && !Sn(t) ? 0 : t.tabIndex;
2103
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Cr(t)) && !Rn(t) ? 0 : t.tabIndex;
2104
2104
  }, Ir = function(t, n) {
2105
2105
  var o = En(t);
2106
- return o < 0 && n && !Sn(t) ? 0 : o;
2106
+ return o < 0 && n && !Rn(t) ? 0 : o;
2107
2107
  }, Br = function(t, n) {
2108
2108
  return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
2109
2109
  }, Cn = function(t) {
@@ -2280,7 +2280,7 @@ function Gr() {
2280
2280
  const Ur = /* @__PURE__ */ y.createContext(null), qr = /* @__PURE__ */ y.createContext(null), wt = () => {
2281
2281
  var e;
2282
2282
  return ((e = y.useContext(Ur)) == null ? void 0 : e.id) || null;
2283
- }, Rt = () => y.useContext(qr);
2283
+ }, St = () => y.useContext(qr);
2284
2284
  function nt(e) {
2285
2285
  return "data-floating-ui-" + e;
2286
2286
  }
@@ -2313,7 +2313,7 @@ function Zr(e, t) {
2313
2313
  mouseOnly: f = !1,
2314
2314
  restMs: d = 0,
2315
2315
  move: g = !0
2316
- } = t, p = Rt(), $ = wt(), h = Be(u), x = Be(m), B = y.useRef(), R = y.useRef(), k = y.useRef(), C = y.useRef(), P = y.useRef(!0), T = y.useRef(!1), D = y.useRef(() => {
2316
+ } = t, p = St(), $ = wt(), h = Be(u), x = Be(m), B = y.useRef(), S = y.useRef(), k = y.useRef(), C = y.useRef(), P = y.useRef(!0), T = y.useRef(!1), D = y.useRef(() => {
2317
2317
  }), A = y.useCallback(() => {
2318
2318
  var b;
2319
2319
  const v = (b = r.current.openEvent) == null ? void 0 : b.type;
@@ -2326,7 +2326,7 @@ function Zr(e, t) {
2326
2326
  let {
2327
2327
  open: I
2328
2328
  } = v;
2329
- I || (clearTimeout(R.current), clearTimeout(C.current), P.current = !0);
2329
+ I || (clearTimeout(S.current), clearTimeout(C.current), P.current = !0);
2330
2330
  }
2331
2331
  return i.on("openchange", b), () => {
2332
2332
  i.off("openchange", b);
@@ -2344,8 +2344,8 @@ function Zr(e, t) {
2344
2344
  }, [l, n, o, c, h, A]);
2345
2345
  const L = y.useCallback(function(b, v, I) {
2346
2346
  v === void 0 && (v = !0), I === void 0 && (I = "hover");
2347
- const S = st(x.current, "close", B.current);
2348
- S && !k.current ? (clearTimeout(R.current), R.current = setTimeout(() => o(!1, b, I), S)) : v && (clearTimeout(R.current), o(!1, b, I));
2347
+ const R = st(x.current, "close", B.current);
2348
+ R && !k.current ? (clearTimeout(S.current), S.current = setTimeout(() => o(!1, b, I), R)) : v && (clearTimeout(S.current), o(!1, b, I));
2349
2349
  }, [x, o]), M = y.useCallback(() => {
2350
2350
  D.current(), k.current = void 0;
2351
2351
  }, []), O = y.useCallback(() => {
@@ -2361,10 +2361,10 @@ function Zr(e, t) {
2361
2361
  return r.current.openEvent ? ["click", "mousedown"].includes(r.current.openEvent.type) : !1;
2362
2362
  }
2363
2363
  function v(w) {
2364
- if (clearTimeout(R.current), P.current = !1, f && !Ue(B.current) || d > 0 && st(x.current, "open") === 0)
2364
+ if (clearTimeout(S.current), P.current = !1, f && !Ue(B.current) || d > 0 && st(x.current, "open") === 0)
2365
2365
  return;
2366
2366
  const z = st(x.current, "open", B.current);
2367
- z ? R.current = setTimeout(() => {
2367
+ z ? S.current = setTimeout(() => {
2368
2368
  o(!0, w, "hover");
2369
2369
  }, z) : o(!0, w, "hover");
2370
2370
  }
@@ -2374,7 +2374,7 @@ function Zr(e, t) {
2374
2374
  D.current();
2375
2375
  const z = pe(l);
2376
2376
  if (clearTimeout(C.current), h.current) {
2377
- n || clearTimeout(R.current), k.current = h.current({
2377
+ n || clearTimeout(S.current), k.current = h.current({
2378
2378
  ...e,
2379
2379
  tree: p,
2380
2380
  x: w.clientX,
@@ -2391,7 +2391,7 @@ function Zr(e, t) {
2391
2391
  }
2392
2392
  (B.current === "touch" ? !ye(l, w.relatedTarget) : !0) && L(w);
2393
2393
  }
2394
- function S(w) {
2394
+ function R(w) {
2395
2395
  b() || h.current == null || h.current({
2396
2396
  ...e,
2397
2397
  tree: p,
@@ -2404,10 +2404,10 @@ function Zr(e, t) {
2404
2404
  }
2405
2405
  if (j(s)) {
2406
2406
  const w = s;
2407
- return n && w.addEventListener("mouseleave", S), l == null || l.addEventListener("mouseleave", S), g && w.addEventListener("mousemove", v, {
2407
+ return n && w.addEventListener("mouseleave", R), l == null || l.addEventListener("mouseleave", R), g && w.addEventListener("mousemove", v, {
2408
2408
  once: !0
2409
2409
  }), w.addEventListener("mouseenter", v), w.addEventListener("mouseleave", I), () => {
2410
- n && w.removeEventListener("mouseleave", S), l == null || l.removeEventListener("mouseleave", S), g && w.removeEventListener("mousemove", v), w.removeEventListener("mouseenter", v), w.removeEventListener("mouseleave", I);
2410
+ n && w.removeEventListener("mouseleave", R), l == null || l.removeEventListener("mouseleave", R), g && w.removeEventListener("mousemove", v), w.removeEventListener("mouseenter", v), w.removeEventListener("mouseleave", I);
2411
2411
  };
2412
2412
  }
2413
2413
  }, [s, l, c, e, f, d, g, L, M, O, o, n, p, x, h, r]), Q(() => {
@@ -2416,16 +2416,16 @@ function Zr(e, t) {
2416
2416
  const I = pe(l).body;
2417
2417
  if (I.setAttribute(Vt, ""), I.style.pointerEvents = "none", T.current = !0, j(s) && l) {
2418
2418
  var v;
2419
- const S = s, w = p == null || (v = p.nodesRef.current.find((z) => z.id === $)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
2420
- return w && (w.style.pointerEvents = ""), S.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
2421
- S.style.pointerEvents = "", l.style.pointerEvents = "";
2419
+ const R = s, w = p == null || (v = p.nodesRef.current.find((z) => z.id === $)) == null || (v = v.context) == null ? void 0 : v.elements.floating;
2420
+ return w && (w.style.pointerEvents = ""), R.style.pointerEvents = "auto", l.style.pointerEvents = "auto", () => {
2421
+ R.style.pointerEvents = "", l.style.pointerEvents = "";
2422
2422
  };
2423
2423
  }
2424
2424
  }
2425
2425
  }, [c, n, $, l, s, p, h, A]), Q(() => {
2426
2426
  n || (B.current = void 0, M(), O());
2427
2427
  }, [n, M, O]), y.useEffect(() => () => {
2428
- M(), clearTimeout(R.current), clearTimeout(C.current), O();
2428
+ M(), clearTimeout(S.current), clearTimeout(C.current), O();
2429
2429
  }, [c, s, M, O]), y.useMemo(() => {
2430
2430
  if (!c)
2431
2431
  return {};
@@ -2444,7 +2444,7 @@ function Zr(e, t) {
2444
2444
  },
2445
2445
  floating: {
2446
2446
  onMouseEnter() {
2447
- clearTimeout(R.current);
2447
+ clearTimeout(S.current);
2448
2448
  },
2449
2449
  onMouseLeave(v) {
2450
2450
  L(v.nativeEvent, !1);
@@ -2715,7 +2715,7 @@ function ci(e, t) {
2715
2715
  ancestorScroll: p = !1,
2716
2716
  bubbles: $,
2717
2717
  capture: h
2718
- } = t, x = Rt(), B = Te(typeof u == "function" ? u : () => !1), R = typeof u == "function" ? B : u, k = y.useRef(!1), C = y.useRef(!1), {
2718
+ } = t, x = St(), B = Te(typeof u == "function" ? u : () => !1), S = typeof u == "function" ? B : u, k = y.useRef(!1), C = y.useRef(!1), {
2719
2719
  escapeKey: P,
2720
2720
  outsidePress: T
2721
2721
  } = Ut($), {
@@ -2726,29 +2726,29 @@ function ci(e, t) {
2726
2726
  return;
2727
2727
  const I = x ? Ge(x.nodesRef.current, r) : [];
2728
2728
  if (!P && (v.stopPropagation(), I.length > 0)) {
2729
- let S = !0;
2729
+ let R = !0;
2730
2730
  if (I.forEach((w) => {
2731
2731
  var z;
2732
2732
  if ((z = w.context) != null && z.open && !w.context.dataRef.current.__escapeKeyBubbles) {
2733
- S = !1;
2733
+ R = !1;
2734
2734
  return;
2735
2735
  }
2736
- }), !S)
2736
+ }), !R)
2737
2737
  return;
2738
2738
  }
2739
2739
  o(!1, Wo(v) ? v.nativeEvent : v, "escape-key");
2740
2740
  }), M = Te((v) => {
2741
2741
  var I;
2742
- const S = () => {
2742
+ const R = () => {
2743
2743
  var w;
2744
- L(v), (w = ke(v)) == null || w.removeEventListener("keydown", S);
2744
+ L(v), (w = ke(v)) == null || w.removeEventListener("keydown", R);
2745
2745
  };
2746
- (I = ke(v)) == null || I.addEventListener("keydown", S);
2746
+ (I = ke(v)) == null || I.addEventListener("keydown", R);
2747
2747
  }), O = Te((v) => {
2748
2748
  const I = k.current;
2749
2749
  k.current = !1;
2750
- const S = C.current;
2751
- if (C.current = !1, f === "click" && S || I || typeof R == "function" && !R(v))
2750
+ const R = C.current;
2751
+ if (C.current = !1, f === "click" && R || I || typeof S == "function" && !S(v))
2752
2752
  return;
2753
2753
  const w = ke(v), z = "[" + nt("inert") + "]", K = pe(l).querySelectorAll(z);
2754
2754
  let U = j(w) ? w : null;
@@ -2790,11 +2790,11 @@ function ci(e, t) {
2790
2790
  o(!1, v, "outside-press");
2791
2791
  }), b = Te((v) => {
2792
2792
  var I;
2793
- const S = () => {
2793
+ const R = () => {
2794
2794
  var w;
2795
- O(v), (w = ke(v)) == null || w.removeEventListener(f, S);
2795
+ O(v), (w = ke(v)) == null || w.removeEventListener(f, R);
2796
2796
  };
2797
- (I = ke(v)) == null || I.addEventListener(f, S);
2797
+ (I = ke(v)) == null || I.addEventListener(f, R);
2798
2798
  });
2799
2799
  return y.useEffect(() => {
2800
2800
  if (!n || !c)
@@ -2804,23 +2804,23 @@ function ci(e, t) {
2804
2804
  o(!1, w, "ancestor-scroll");
2805
2805
  }
2806
2806
  const I = pe(l);
2807
- m && I.addEventListener("keydown", D ? M : L, D), R && I.addEventListener(f, A ? b : O, A);
2808
- let S = [];
2809
- return p && (j(s) && (S = se(s)), j(l) && (S = S.concat(se(l))), !j(i) && i && i.contextElement && (S = S.concat(se(i.contextElement)))), S = S.filter((w) => {
2807
+ m && I.addEventListener("keydown", D ? M : L, D), S && I.addEventListener(f, A ? b : O, A);
2808
+ let R = [];
2809
+ return p && (j(s) && (R = se(s)), j(l) && (R = R.concat(se(l))), !j(i) && i && i.contextElement && (R = R.concat(se(i.contextElement)))), R = R.filter((w) => {
2810
2810
  var z;
2811
2811
  return w !== ((z = I.defaultView) == null ? void 0 : z.visualViewport);
2812
- }), S.forEach((w) => {
2812
+ }), R.forEach((w) => {
2813
2813
  w.addEventListener("scroll", v, {
2814
2814
  passive: !0
2815
2815
  });
2816
2816
  }), () => {
2817
- m && I.removeEventListener("keydown", D ? M : L, D), R && I.removeEventListener(f, A ? b : O, A), S.forEach((w) => {
2817
+ m && I.removeEventListener("keydown", D ? M : L, D), S && I.removeEventListener(f, A ? b : O, A), R.forEach((w) => {
2818
2818
  w.removeEventListener("scroll", v);
2819
2819
  });
2820
2820
  };
2821
- }, [a, l, s, i, m, R, f, n, o, p, c, P, T, L, D, M, O, A, b]), y.useEffect(() => {
2821
+ }, [a, l, s, i, m, S, f, n, o, p, c, P, T, L, D, M, O, A, b]), y.useEffect(() => {
2822
2822
  k.current = !1;
2823
- }, [R, f]), y.useMemo(() => c ? {
2823
+ }, [S, f]), y.useMemo(() => c ? {
2824
2824
  reference: {
2825
2825
  onKeyDown: L,
2826
2826
  [li[g]]: (v) => {
@@ -2862,7 +2862,7 @@ function ui(e) {
2862
2862
  }
2863
2863
  }
2864
2864
  }
2865
- const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, u = Sr(e), f = Rt(), d = wt() != null, g = Te((T, D, A) => {
2865
+ const [a, c] = y.useState(null), m = ((t = e.elements) == null ? void 0 : t.reference) || a, u = Rr(e), f = St(), d = wt() != null, g = Te((T, D, A) => {
2866
2866
  T && ($.current.openEvent = D), h.emit("openchange", {
2867
2867
  open: T,
2868
2868
  event: D,
@@ -2875,17 +2875,17 @@ function ui(e) {
2875
2875
  contextElement: T
2876
2876
  } : T;
2877
2877
  u.refs.setReference(D);
2878
- }, [u.refs]), R = y.useCallback((T) => {
2878
+ }, [u.refs]), S = y.useCallback((T) => {
2879
2879
  (j(T) || T === null) && (p.current = T, c(T)), (j(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
2880
2880
  // `null` to support `positionReference` + an unstable `reference`
2881
2881
  // callback ref.
2882
2882
  T !== null && !j(T)) && u.refs.setReference(T);
2883
2883
  }, [u.refs]), k = y.useMemo(() => ({
2884
2884
  ...u.refs,
2885
- setReference: R,
2885
+ setReference: S,
2886
2886
  setPositionReference: B,
2887
2887
  domReference: p
2888
- }), [u.refs, R, B]), C = y.useMemo(() => ({
2888
+ }), [u.refs, S, B]), C = y.useMemo(() => ({
2889
2889
  ...u.elements,
2890
2890
  domReference: m
2891
2891
  }), [u.elements, m]), P = y.useMemo(() => ({
@@ -3108,9 +3108,9 @@ function hi(e, t) {
3108
3108
  status: $
3109
3109
  } = pi(e, {
3110
3110
  duration: s
3111
- }), h = Be(n), x = Be(o), B = Be(r), R = Be(i);
3111
+ }), h = Be(n), x = Be(o), B = Be(r), S = Be(i);
3112
3112
  return Q(() => {
3113
- const k = Ce(h.current, c), C = Ce(B.current, c), P = Ce(R.current, c), T = Ce(x.current, c) || Object.keys(k).reduce((D, A) => (D[A] = "", D), {});
3113
+ const k = Ce(h.current, c), C = Ce(B.current, c), P = Ce(S.current, c), T = Ce(x.current, c) || Object.keys(k).reduce((D, A) => (D[A] = "", D), {});
3114
3114
  if ($ === "initial" && g((D) => ({
3115
3115
  transitionProperty: D.transitionProperty,
3116
3116
  ...P,
@@ -3129,7 +3129,7 @@ function hi(e, t) {
3129
3129
  ...D
3130
3130
  });
3131
3131
  }
3132
- }, [f, B, h, x, R, u, $, c]), {
3132
+ }, [f, B, h, x, S, u, $, c]), {
3133
3133
  isMounted: p,
3134
3134
  styles: d
3135
3135
  };
@@ -3172,7 +3172,7 @@ function yi(e) {
3172
3172
  nodeId: h,
3173
3173
  tree: x
3174
3174
  } = u;
3175
- return function(R) {
3175
+ return function(S) {
3176
3176
  function k() {
3177
3177
  clearTimeout(r), $();
3178
3178
  }
@@ -3181,14 +3181,14 @@ function yi(e) {
3181
3181
  const {
3182
3182
  clientX: C,
3183
3183
  clientY: P
3184
- } = R, T = [C, P], D = ke(R), A = R.type === "mouseleave", L = ye(p.floating, D), M = ye(p.domReference, D), O = p.domReference.getBoundingClientRect(), b = p.floating.getBoundingClientRect(), v = g.split("-")[0], I = f > b.right - b.width / 2, S = d > b.bottom - b.height / 2, w = bi(T, O), z = b.width > O.width, K = b.height > O.height, U = (z ? O : b).left, we = (z ? O : b).right, ce = (K ? O : b).top, V = (K ? O : b).bottom;
3184
+ } = S, T = [C, P], D = ke(S), A = S.type === "mouseleave", L = ye(p.floating, D), M = ye(p.domReference, D), O = p.domReference.getBoundingClientRect(), b = p.floating.getBoundingClientRect(), v = g.split("-")[0], I = f > b.right - b.width / 2, R = d > b.bottom - b.height / 2, w = bi(T, O), z = b.width > O.width, K = b.height > O.height, U = (z ? O : b).left, we = (z ? O : b).right, ce = (K ? O : b).top, V = (K ? O : b).bottom;
3185
3185
  if (L && (i = !0, !A))
3186
3186
  return;
3187
3187
  if (M && (i = !1), M && !A) {
3188
3188
  i = !0;
3189
3189
  return;
3190
3190
  }
3191
- if (A && j(R.relatedTarget) && ye(p.floating, R.relatedTarget) || x && Ge(x.nodesRef.current, h).some((de) => {
3191
+ if (A && j(S.relatedTarget) && ye(p.floating, S.relatedTarget) || x && Ge(x.nodesRef.current, h).some((de) => {
3192
3192
  let {
3193
3193
  context: H
3194
3194
  } = de;
@@ -3216,20 +3216,20 @@ function yi(e) {
3216
3216
  let [H, _] = de;
3217
3217
  switch (v) {
3218
3218
  case "top": {
3219
- const fe = [z ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], me = [z ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], Re = [[b.left, I || z ? b.bottom - t : b.top], [b.right, I ? z ? b.bottom - t : b.top : b.bottom - t]];
3220
- return [fe, me, ...Re];
3219
+ const fe = [z ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], me = [z ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ + t + 1], Se = [[b.left, I || z ? b.bottom - t : b.top], [b.right, I ? z ? b.bottom - t : b.top : b.bottom - t]];
3220
+ return [fe, me, ...Se];
3221
3221
  }
3222
3222
  case "bottom": {
3223
- const fe = [z ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ - t], me = [z ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ - t], Re = [[b.left, I || z ? b.top + t : b.bottom], [b.right, I ? z ? b.top + t : b.bottom : b.top + t]];
3224
- return [fe, me, ...Re];
3223
+ const fe = [z ? H + t / 2 : I ? H + t * 4 : H - t * 4, _ - t], me = [z ? H - t / 2 : I ? H + t * 4 : H - t * 4, _ - t], Se = [[b.left, I || z ? b.top + t : b.bottom], [b.right, I ? z ? b.top + t : b.bottom : b.top + t]];
3224
+ return [fe, me, ...Se];
3225
3225
  }
3226
3226
  case "left": {
3227
- const fe = [H + t + 1, K ? _ + t / 2 : S ? _ + t * 4 : _ - t * 4], me = [H + t + 1, K ? _ - t / 2 : S ? _ + t * 4 : _ - t * 4];
3228
- return [...[[S || K ? b.right - t : b.left, b.top], [S ? K ? b.right - t : b.left : b.right - t, b.bottom]], fe, me];
3227
+ const fe = [H + t + 1, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], me = [H + t + 1, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4];
3228
+ return [...[[R || K ? b.right - t : b.left, b.top], [R ? K ? b.right - t : b.left : b.right - t, b.bottom]], fe, me];
3229
3229
  }
3230
3230
  case "right": {
3231
- const fe = [H - t, K ? _ + t / 2 : S ? _ + t * 4 : _ - t * 4], me = [H - t, K ? _ - t / 2 : S ? _ + t * 4 : _ - t * 4], Re = [[S || K ? b.left + t : b.right, b.top], [S ? K ? b.left + t : b.right : b.left + t, b.bottom]];
3232
- return [fe, me, ...Re];
3231
+ const fe = [H - t, K ? _ + t / 2 : R ? _ + t * 4 : _ - t * 4], me = [H - t, K ? _ - t / 2 : R ? _ + t * 4 : _ - t * 4], Se = [[R || K ? b.left + t : b.right, b.top], [R ? K ? b.left + t : b.right : b.left + t, b.bottom]];
3232
+ return [fe, me, ...Se];
3233
3233
  }
3234
3234
  }
3235
3235
  }
@@ -3237,7 +3237,7 @@ function yi(e) {
3237
3237
  if (i && !w)
3238
3238
  return k();
3239
3239
  if (!A && o) {
3240
- const de = c(R.clientX, R.clientY);
3240
+ const de = c(S.clientX, S.clientY);
3241
3241
  if (de !== null && de < 0.1)
3242
3242
  return k();
3243
3243
  }
@@ -3249,7 +3249,7 @@ function yi(e) {
3249
3249
  blockPointerEvents: n
3250
3250
  }, m;
3251
3251
  }
3252
- const ge = N("div"), St = Mn(
3252
+ const ge = W("div"), Rt = Mn(
3253
3253
  {}
3254
3254
  ), Yi = ({
3255
3255
  children: e,
@@ -3268,14 +3268,14 @@ const ge = N("div"), St = Mn(
3268
3268
  whileElementsMounted: xr,
3269
3269
  middleware: [tr(t), wr(), $r()]
3270
3270
  }), { isMounted: u, styles: f } = hi(m, {
3271
- initial: ({ side: R }) => ({
3271
+ initial: ({ side: S }) => ({
3272
3272
  opacity: 0,
3273
3273
  transform: {
3274
3274
  top: "translateY(-0.5rem)",
3275
3275
  right: "translateX(0.5rem)",
3276
3276
  bottom: "translateY(0.5rem)",
3277
3277
  left: "translateX(-0.5rem)"
3278
- }[R]
3278
+ }[S]
3279
3279
  })
3280
3280
  }), d = si(m, { enabled: r === "click" }), g = Zr(m, {
3281
3281
  enabled: r === "hover",
@@ -3304,9 +3304,9 @@ const ge = N("div"), St = Mn(
3304
3304
  f
3305
3305
  ]
3306
3306
  );
3307
- return /* @__PURE__ */ F(St.Provider, { value: B, children: e });
3307
+ return /* @__PURE__ */ F(Rt.Provider, { value: B, children: e });
3308
3308
  }, Xi = ({ children: e }) => {
3309
- const { getReferenceProps: t, refs: n } = nn(St);
3309
+ const { getReferenceProps: t, refs: n } = nn(Rt);
3310
3310
  return /* @__PURE__ */ F(On, { children: Ln(e) && Fn(e, {
3311
3311
  ref: n.setReference,
3312
3312
  ...t()
@@ -3318,7 +3318,7 @@ const ge = N("div"), St = Mn(
3318
3318
  refs: r,
3319
3319
  floatingStyles: i,
3320
3320
  transitionStyles: s
3321
- } = nn(St);
3321
+ } = nn(Rt);
3322
3322
  return o ? /* @__PURE__ */ F(ri, { children: /* @__PURE__ */ F(
3323
3323
  ge,
3324
3324
  {
@@ -3331,7 +3331,7 @@ const ge = N("div"), St = Mn(
3331
3331
  children: /* @__PURE__ */ F(an, { ...t, style: s, children: e })
3332
3332
  }
3333
3333
  ) }) : null;
3334
- }, Gi = N("span", {
3334
+ }, Gi = W("span", {
3335
3335
  flex: "0 0 auto",
3336
3336
  display: "inline-flex",
3337
3337
  padding: "$1 $2",
@@ -3368,17 +3368,17 @@ const ge = N("div"), St = Mn(
3368
3368
  defaultVariants: {
3369
3369
  color: "primary"
3370
3370
  }
3371
- }), Ui = N(He.Root, {
3371
+ }), Ui = W(He.Root, {
3372
3372
  backgroundColor: "$gray50",
3373
3373
  display: "flex",
3374
3374
  alignItems: "center",
3375
3375
  padding: "$1",
3376
3376
  gap: "$1"
3377
- }), qi = N(He.ToggleGroup, {
3377
+ }), qi = W(He.ToggleGroup, {
3378
3378
  display: "flex",
3379
3379
  gap: "$1",
3380
3380
  alignItems: "center"
3381
- }), Zi = N(He.Separator, {
3381
+ }), Zi = W(He.Separator, {
3382
3382
  width: "1px",
3383
3383
  height: "1.5rem",
3384
3384
  my: "$1",
@@ -3440,7 +3440,7 @@ const ge = N("div"), St = Mn(
3440
3440
  }
3441
3441
  )
3442
3442
  }
3443
- )), es = N("div", {
3443
+ )), es = W("div", {
3444
3444
  color: "$$cardText",
3445
3445
  backgroundColor: "$$cardBackground",
3446
3446
  borderRadius: "$md",
@@ -3465,7 +3465,7 @@ const ge = N("div"), St = Mn(
3465
3465
  variant: "primary",
3466
3466
  elevation: "raised"
3467
3467
  }
3468
- }), vi = N("div", {
3468
+ }), vi = W("div", {
3469
3469
  borderRadius: "$md",
3470
3470
  padding: "$1",
3471
3471
  border: "2px solid $blue100",
@@ -3491,12 +3491,12 @@ const ge = N("div"), St = Mn(
3491
3491
  ...n,
3492
3492
  children: e
3493
3493
  }
3494
- ), xi = N(Ne.Overlay, {
3494
+ ), xi = W(Ne.Overlay, {
3495
3495
  backgroundColor: "rgba(0, 0, 0, 0.7)",
3496
3496
  position: "fixed",
3497
3497
  zIndex: "$overlayCard",
3498
3498
  inset: 0
3499
- }), $i = N(Ne.Content, {
3499
+ }), $i = W(Ne.Content, {
3500
3500
  backgroundColor: "white",
3501
3501
  borderRadius: "$md",
3502
3502
  position: "fixed",
@@ -3521,11 +3521,11 @@ const ge = N("div"), St = Mn(
3521
3521
  /* @__PURE__ */ F(xi, {}),
3522
3522
  /* @__PURE__ */ F($i, { children: e })
3523
3523
  ] })
3524
- ] }), rs = N("h2", {
3524
+ ] }), rs = W("h2", {
3525
3525
  fontSize: "$xl",
3526
3526
  fontWeight: "$medium",
3527
3527
  marginBottom: "$6"
3528
- }), is = N("div", {
3528
+ }), is = W("div", {
3529
3529
  display: "flex",
3530
3530
  gap: "$2",
3531
3531
  justifyContent: "flex-end",
@@ -3534,7 +3534,42 @@ const ge = N("div"), St = Mn(
3534
3534
  padding: "$4",
3535
3535
  borderBottomRightRadius: "$md",
3536
3536
  borderBottomLeftRadius: "$md"
3537
- }), wi = N(an, {
3537
+ }), ss = W("div", {
3538
+ display: "flex",
3539
+ variants: {
3540
+ direction: {
3541
+ row: {
3542
+ flexDirection: "row"
3543
+ },
3544
+ column: {
3545
+ flexDirection: "column"
3546
+ }
3547
+ },
3548
+ align: {
3549
+ start: {
3550
+ alignItems: "flex-start"
3551
+ },
3552
+ center: {
3553
+ alignItems: "center"
3554
+ }
3555
+ },
3556
+ gap: {
3557
+ 0: { gap: 0 },
3558
+ 1: { gap: "$1" },
3559
+ 2: { gap: "$2" },
3560
+ 3: { gap: "$3" },
3561
+ 4: { gap: "$4" },
3562
+ 5: { gap: "$5" },
3563
+ 6: { gap: "$6" },
3564
+ 7: { gap: "$7" },
3565
+ 8: { gap: "$8" }
3566
+ }
3567
+ },
3568
+ defaultVariants: {
3569
+ direction: "column",
3570
+ gap: 4
3571
+ }
3572
+ }), wi = W(an, {
3538
3573
  minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
3539
3574
  padding: "$1"
3540
3575
  }), Et = Ve({
@@ -3560,7 +3595,7 @@ const ge = N("div"), St = Mn(
3560
3595
  backgroundColor: "transparent"
3561
3596
  }
3562
3597
  }
3563
- }), ss = ({
3598
+ }), ls = ({
3564
3599
  side: e = "bottom",
3565
3600
  align: t = "center",
3566
3601
  trigger: n,
@@ -3580,7 +3615,7 @@ const ge = N("div"), St = Mn(
3580
3615
  children: /* @__PURE__ */ F(wi, { children: o })
3581
3616
  }
3582
3617
  ) })
3583
- ] }), Ri = N(ne.ItemIndicator, {
3618
+ ] }), Si = W(ne.ItemIndicator, {
3584
3619
  position: "absolute",
3585
3620
  left: 0,
3586
3621
  top: 0,
@@ -3589,26 +3624,26 @@ const ge = N("div"), St = Mn(
3589
3624
  display: "flex",
3590
3625
  justifyContent: "center",
3591
3626
  alignItems: "center"
3592
- }), ls = N(ne.Separator, {
3627
+ }), as = W(ne.Separator, {
3593
3628
  height: 1,
3594
3629
  backgroundColor: "$gray200",
3595
3630
  margin: 1
3596
- }), as = N(ne.Item, Et), cs = N(ne.Item, Et, {
3631
+ }), cs = W(ne.Item, Et), us = W(ne.Item, Et, {
3597
3632
  padding: "$2",
3598
3633
  display: "flex",
3599
3634
  alignItems: "center",
3600
3635
  gap: "$2"
3601
- }), Si = N(ne.CheckboxItem, Et), us = ({
3636
+ }), Ri = W(ne.CheckboxItem, Et), ds = ({
3602
3637
  value: e,
3603
3638
  onChange: t,
3604
3639
  children: n
3605
3640
  }) => /* @__PURE__ */ ee(
3606
- Si,
3641
+ Ri,
3607
3642
  {
3608
3643
  checked: e,
3609
3644
  onCheckedChange: t,
3610
3645
  children: [
3611
- /* @__PURE__ */ F(Ri, { children: /* @__PURE__ */ F(jn, { size: "0.75rem" }) }),
3646
+ /* @__PURE__ */ F(Si, { children: /* @__PURE__ */ F(jn, { size: "0.75rem" }) }),
3612
3647
  n
3613
3648
  ]
3614
3649
  }
@@ -3684,7 +3719,7 @@ const ge = N("div"), St = Mn(
3684
3719
  [t]
3685
3720
  );
3686
3721
  return /* @__PURE__ */ F(Yn, { components: r, styles: o, ...n });
3687
- }, ds = ({
3722
+ }, fs = ({
3688
3723
  clearable: e = !0,
3689
3724
  multi: t = !1,
3690
3725
  ...n
@@ -3732,12 +3767,12 @@ const ge = N("div"), St = Mn(
3732
3767
  }
3733
3768
  }
3734
3769
  }
3735
- }), Bi = N("input", Ti), Pi = N("div", Ii, {
3770
+ }), Bi = W("input", Ti), Pi = W("div", Ii, {
3736
3771
  display: "flex",
3737
3772
  alignItems: "center",
3738
3773
  gap: "$2",
3739
3774
  width: "100%"
3740
- }), fs = $e(
3775
+ }), ms = $e(
3741
3776
  ({ type: e = "text", label: t, error: n, style: o, css: r, suffix: i, id: s, ...l }, a) => {
3742
3777
  const c = on();
3743
3778
  return s = s || c, /* @__PURE__ */ ee(ge, { css: r, children: [
@@ -3788,7 +3823,7 @@ const ge = N("div"), St = Mn(
3788
3823
  typeof n == "string" && /* @__PURE__ */ F(ge, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: n })
3789
3824
  ] });
3790
3825
  }
3791
- ), Ai = N(rn.Root, {
3826
+ ), Ai = W(rn.Root, {
3792
3827
  display: "flex",
3793
3828
  alignItems: "center",
3794
3829
  justifyContent: "center",
@@ -3824,14 +3859,14 @@ const ge = N("div"), St = Mn(
3824
3859
  defaultVariants: {
3825
3860
  size: "md"
3826
3861
  }
3827
- }), Oi = N(rn.Indicator, {
3862
+ }), Oi = W(rn.Indicator, {
3828
3863
  "[data-icon]": {
3829
3864
  display: "none"
3830
3865
  },
3831
3866
  "&[data-state=checked] [data-icon=checked], &[data-state=indeterminate] [data-icon=indeterminate]": {
3832
3867
  display: "block"
3833
3868
  }
3834
- }), Di = N("label", {
3869
+ }), Di = W("label", {
3835
3870
  flex: "0 1 auto",
3836
3871
  variants: {
3837
3872
  size: {
@@ -3849,7 +3884,7 @@ const ge = N("div"), St = Mn(
3849
3884
  defaultVariants: {
3850
3885
  size: "md"
3851
3886
  }
3852
- }), ms = ({
3887
+ }), gs = ({
3853
3888
  id: e,
3854
3889
  size: t,
3855
3890
  label: n,
@@ -3867,8 +3902,8 @@ const ge = N("div"), St = Mn(
3867
3902
  export {
3868
3903
  Me as A,
3869
3904
  ge as B,
3870
- ds as C,
3871
- ss as D,
3905
+ fs as C,
3906
+ ls as D,
3872
3907
  Ni as E,
3873
3908
  ri as F,
3874
3909
  ji as G,
@@ -3877,17 +3912,18 @@ export {
3877
3912
  An as J,
3878
3913
  es as K,
3879
3914
  rs as L,
3880
- wi as M,
3915
+ ss as M,
3881
3916
  ts as N,
3882
3917
  an as O,
3883
3918
  Yi as P,
3884
- Et as Q,
3919
+ wi as Q,
3885
3920
  ki as R,
3886
3921
  Co as S,
3887
3922
  Ji as T,
3888
- us as U,
3889
- ms as V,
3890
- cs as a,
3923
+ Et as U,
3924
+ ds as V,
3925
+ gs as W,
3926
+ us as a,
3891
3927
  qi as b,
3892
3928
  Ve as c,
3893
3929
  Qi as d,
@@ -3900,13 +3936,13 @@ export {
3900
3936
  Ui as k,
3901
3937
  Zi as l,
3902
3938
  ln as m,
3903
- as as n,
3939
+ cs as n,
3904
3940
  tr as o,
3905
- ls as p,
3941
+ as as p,
3906
3942
  os as q,
3907
3943
  ns as r,
3908
- N as s,
3909
- fs as t,
3944
+ W as s,
3945
+ ms as t,
3910
3946
  ui as u,
3911
3947
  is as v,
3912
3948
  _i as w,