@stackone/malachite 2.10.0 → 2.11.0

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.
@@ -1593,10 +1593,10 @@ const hl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
1593
1593
  stickyTopOffset: p = 0,
1594
1594
  animate: g = !0
1595
1595
  }) => {
1596
- const m = l === "sunken", C = `${l1()}-body`, [x, y] = Q(s), w = i !== void 0 ? i : x, A = g || w && !!a, [k, I] = Q(!1), B = () => {
1596
+ const m = l === "sunken", C = `${l1()}-body`, [x, y] = Q(s), w = i !== void 0 ? i : x, A = g || w && !!a, [k, B] = Q(!1), S = () => {
1597
1597
  const U = !w;
1598
1598
  i === void 0 && y(U), c == null || c(U);
1599
- }, S = [
1599
+ }, I = [
1600
1600
  "flex flex-col w-full text-left",
1601
1601
  m ? "rounded-xl bg-[var(--malachite-card-dimmed-background)] p-[4px]" : "",
1602
1602
  r
@@ -1611,14 +1611,14 @@ const hl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
1611
1611
  "flex flex-1 items-center min-w-0 appearance-none border-0 bg-transparent text-left cursor-pointer select-none disabled:cursor-not-allowed",
1612
1612
  m ? `gap-[16px] px-[16px] py-[12px] rounded-lg ${e1}` : `gap-[12px] p-[16px] ${Kt}`
1613
1613
  ].join(" "), T = h ? { top: `${p}px`, backgroundColor: "var(--malachite-card-background)" } : {};
1614
- return /* @__PURE__ */ v("div", { className: S, children: [
1614
+ return /* @__PURE__ */ v("div", { className: I, children: [
1615
1615
  /* @__PURE__ */ v("div", { className: L, style: T, "data-accordion-header": "", children: [
1616
1616
  /* @__PURE__ */ v(
1617
1617
  "button",
1618
1618
  {
1619
1619
  type: "button",
1620
1620
  className: N,
1621
- onClick: B,
1621
+ onClick: S,
1622
1622
  "aria-expanded": w,
1623
1623
  "aria-controls": A ? C : void 0,
1624
1624
  disabled: d,
@@ -1643,7 +1643,7 @@ const hl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
1643
1643
  className: "grid grid-cols-[minmax(0,1fr)] w-full transition-[grid-template-rows] duration-200 ease-in-out",
1644
1644
  style: { gridTemplateRows: w ? "1fr" : "0fr" },
1645
1645
  onTransitionEnd: (U) => {
1646
- U.propertyName === "grid-template-rows" && I(w);
1646
+ U.propertyName === "grid-template-rows" && B(w);
1647
1647
  },
1648
1648
  children: /* @__PURE__ */ n(
1649
1649
  "div",
@@ -1769,16 +1769,16 @@ const hl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
1769
1769
  C(!0), y.current !== null && cancelAnimationFrame(y.current), y.current = requestAnimationFrame(() => {
1770
1770
  y.current = null, m(!0);
1771
1771
  });
1772
- }, k = R(null), I = R(null);
1772
+ }, k = R(null), B = R(null);
1773
1773
  Dr(k, g);
1774
- const B = l1(), S = e != null && e !== "" && e !== !1, V = (W) => {
1775
- W.stopPropagation(), !(!S || d && !d()) && (w(), x.current = setTimeout(() => {
1774
+ const S = l1(), I = e != null && e !== "" && e !== !1, V = (W) => {
1775
+ W.stopPropagation(), !(!I || d && !d()) && (w(), x.current = setTimeout(() => {
1776
1776
  A();
1777
1777
  }, r * 1e3));
1778
1778
  }, L = (W) => {
1779
1779
  W.stopPropagation(), w(), m(!1);
1780
1780
  }, N = () => {
1781
- !S || d && !d() || (w(), A());
1781
+ !I || d && !d() || (w(), A());
1782
1782
  }, T = () => {
1783
1783
  w(), m(!1);
1784
1784
  }, [, U] = Q({});
@@ -1795,9 +1795,9 @@ const hl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
1795
1795
  };
1796
1796
  }, [g, w]);
1797
1797
  const ee = () => {
1798
- if (!I.current)
1798
+ if (!B.current)
1799
1799
  return { display: "none" };
1800
- const W = I.current.getBoundingClientRect(), X = {
1800
+ const W = B.current.getBoundingClientRect(), X = {
1801
1801
  position: "fixed",
1802
1802
  display: "flex",
1803
1803
  width: "max-content",
@@ -1857,10 +1857,10 @@ const hl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
1857
1857
  transform: `translate(-50%, -100%) ${g ? "scale(1)" : "scale(0.95)"}`
1858
1858
  };
1859
1859
  }
1860
- }, le = S && b && h ? B : void 0;
1860
+ }, le = I && b && h ? S : void 0;
1861
1861
  Rr(() => {
1862
- S && b && Zr();
1863
- }, [S, b]);
1862
+ I && b && Zr();
1863
+ }, [I, b]);
1864
1864
  const ie = a || !Le.isValidElement(t) ? /* @__PURE__ */ n("span", { "aria-describedby": le, children: t }) : Le.cloneElement(t, {
1865
1865
  "aria-describedby": [t.props["aria-describedby"], le].filter(Boolean).join(" ") || void 0
1866
1866
  });
@@ -1868,7 +1868,7 @@ const hl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
1868
1868
  /* @__PURE__ */ n(
1869
1869
  o,
1870
1870
  {
1871
- ref: I,
1871
+ ref: B,
1872
1872
  className: "relative flex items-center",
1873
1873
  style: p,
1874
1874
  onMouseEnter: V,
@@ -1878,12 +1878,12 @@ const hl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
1878
1878
  children: ie
1879
1879
  }
1880
1880
  ),
1881
- S && b && K1(
1881
+ I && b && K1(
1882
1882
  /* @__PURE__ */ n(
1883
1883
  "div",
1884
1884
  {
1885
1885
  ref: k,
1886
- id: B,
1886
+ id: S,
1887
1887
  role: "tooltip",
1888
1888
  "aria-hidden": h ? void 0 : !0,
1889
1889
  ...G1("tooltip"),
@@ -2057,7 +2057,7 @@ const hl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
2057
2057
  rel: x,
2058
2058
  ...y
2059
2059
  }, w) => {
2060
- const A = r ? Q7(r) : K7(t, p), k = o || a, I = [
2060
+ const A = r ? Q7(r) : K7(t, p), k = o || a, B = [
2061
2061
  "flex items-center justify-center",
2062
2062
  p ? `p-0 ${G7(t)}` : W7(t),
2063
2063
  j7(e, A),
@@ -2066,7 +2066,7 @@ const hl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
2066
2066
  k ? "cursor-not-allowed" : "",
2067
2067
  d && k ? "pointer-events-none" : "",
2068
2068
  m
2069
- ].filter(Boolean).join(" "), B = () => {
2069
+ ].filter(Boolean).join(" "), S = () => {
2070
2070
  if (a)
2071
2071
  return /* @__PURE__ */ v(Ye, { children: [
2072
2072
  /* @__PURE__ */ n(z7, {}),
@@ -2092,28 +2092,28 @@ const hl = (e) => /* @__PURE__ */ u.createElement("svg", { width: 16, height: 17
2092
2092
  }
2093
2093
  )
2094
2094
  ] }) : g;
2095
- }, S = b && !k ? /* @__PURE__ */ n(
2095
+ }, I = b && !k ? /* @__PURE__ */ n(
2096
2096
  "a",
2097
2097
  {
2098
2098
  ref: w,
2099
2099
  href: b,
2100
2100
  target: C,
2101
2101
  rel: Y7(x, C),
2102
- className: I,
2102
+ className: B,
2103
2103
  ...y,
2104
- children: B()
2104
+ children: S()
2105
2105
  }
2106
2106
  ) : /* @__PURE__ */ n(
2107
2107
  "button",
2108
2108
  {
2109
2109
  ref: w,
2110
2110
  disabled: k,
2111
- className: I,
2111
+ className: B,
2112
2112
  ...y,
2113
- children: B()
2113
+ children: S()
2114
2114
  }
2115
2115
  );
2116
- return d ? /* @__PURE__ */ n(u1, { text: d, placement: h, fill: i, children: k ? /* @__PURE__ */ n("span", { className: `inline-flex cursor-not-allowed${i ? " w-full" : ""}`, children: S }) : S }) : S;
2116
+ return d ? /* @__PURE__ */ n(u1, { text: d, placement: h, fill: i, children: k ? /* @__PURE__ */ n("span", { className: `inline-flex cursor-not-allowed${i ? " w-full" : ""}`, children: I }) : I }) : I;
2117
2117
  }
2118
2118
  );
2119
2119
  s1.displayName = "Button";
@@ -2292,20 +2292,20 @@ ${h}` : h;
2292
2292
  `, 1)[0], m = !p.trim(), b = 0;
2293
2293
  if (this.options.pedantic ? (b = 2, h = p.trimStart()) : m ? b = t[1].length + 1 : (b = t[2].search(this.rules.other.nonSpaceChar), b = b > 4 ? 1 : b, h = p.slice(b), b += t[1].length), m && this.rules.other.blankLine.test(g) && (d += g + `
2294
2294
  `, e = e.substring(g.length + 1), c = !0), !c) {
2295
- let y = this.rules.other.nextBulletRegex(b), w = this.rules.other.hrRegex(b), A = this.rules.other.fencesBeginRegex(b), k = this.rules.other.headingBeginRegex(b), I = this.rules.other.htmlBeginRegex(b);
2295
+ let y = this.rules.other.nextBulletRegex(b), w = this.rules.other.hrRegex(b), A = this.rules.other.fencesBeginRegex(b), k = this.rules.other.headingBeginRegex(b), B = this.rules.other.htmlBeginRegex(b);
2296
2296
  for (; e; ) {
2297
- let B = e.split(`
2298
- `, 1)[0], S;
2299
- if (g = B, this.options.pedantic ? (g = g.replace(this.rules.other.listReplaceNesting, " "), S = g) : S = g.replace(this.rules.other.tabCharGlobal, " "), A.test(g) || k.test(g) || I.test(g) || y.test(g) || w.test(g)) break;
2300
- if (S.search(this.rules.other.nonSpaceChar) >= b || !g.trim()) h += `
2301
- ` + S.slice(b);
2297
+ let S = e.split(`
2298
+ `, 1)[0], I;
2299
+ if (g = S, this.options.pedantic ? (g = g.replace(this.rules.other.listReplaceNesting, " "), I = g) : I = g.replace(this.rules.other.tabCharGlobal, " "), A.test(g) || k.test(g) || B.test(g) || y.test(g) || w.test(g)) break;
2300
+ if (I.search(this.rules.other.nonSpaceChar) >= b || !g.trim()) h += `
2301
+ ` + I.slice(b);
2302
2302
  else {
2303
2303
  if (m || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || A.test(p) || k.test(p) || w.test(p)) break;
2304
2304
  h += `
2305
2305
  ` + g;
2306
2306
  }
2307
- !m && !g.trim() && (m = !0), d += B + `
2308
- `, e = e.substring(B.length + 1), p = S.slice(b);
2307
+ !m && !g.trim() && (m = !0), d += S + `
2308
+ `, e = e.substring(S.length + 1), p = I.slice(b);
2309
2309
  }
2310
2310
  }
2311
2311
  o.loose || (s ? o.loose = !0 : this.rules.other.doubleBlankLine.test(d) && (s = !0));
@@ -4349,7 +4349,7 @@ const Gi = (e) => {
4349
4349
  return T.observe(w.current), k(w.current.offsetHeight), () => T.disconnect();
4350
4350
  }
4351
4351
  }, [b, m]);
4352
- const B = [
4352
+ const S = [
4353
4353
  "card-base",
4354
4354
  s ? "card-dimmed" : "",
4355
4355
  h === "rounded" ? "card-rounded" : "",
@@ -4357,14 +4357,14 @@ const Gi = (e) => {
4357
4357
  g ? "flex flex-col" : "",
4358
4358
  a === "small" ? "text-sm" : "",
4359
4359
  C
4360
- ].filter(Boolean).join(" "), S = parseInt(r) || 20, L = {
4360
+ ].filter(Boolean).join(" "), I = parseInt(r) || 20, L = {
4361
4361
  padding: r,
4362
4362
  display: i ? "flex" : void 0,
4363
4363
  flexDirection: i,
4364
4364
  alignItems: c,
4365
4365
  ...g && { overflow: "auto", height: "100%" },
4366
4366
  ...b && m && A > 0 && {
4367
- paddingBottom: `${S + A + 10}px`
4367
+ paddingBottom: `${I + A + 10}px`
4368
4368
  }
4369
4369
  }, N = {
4370
4370
  width: o,
@@ -4376,7 +4376,7 @@ const Gi = (e) => {
4376
4376
  overflow: "hidden",
4377
4377
  ...x
4378
4378
  };
4379
- return /* @__PURE__ */ v("div", { className: B, style: N, children: [
4379
+ return /* @__PURE__ */ v("div", { className: S, style: N, children: [
4380
4380
  e && /* @__PURE__ */ n(
4381
4381
  "div",
4382
4382
  {
@@ -4510,7 +4510,7 @@ const Gi = (e) => {
4510
4510
  onRemove: m,
4511
4511
  className: b = ""
4512
4512
  }) => {
4513
- const C = p ? { color: gt(p) } : void 0, x = R(null), y = R(null), [w, A] = Q(!1), k = typeof e == "string" || typeof e == "number", I = ue((N) => {
4513
+ const C = p ? { color: gt(p) } : void 0, x = R(null), y = R(null), [w, A] = Q(!1), k = typeof e == "string" || typeof e == "number", B = ue((N) => {
4514
4514
  var ee;
4515
4515
  if ((ee = x.current) == null || ee.disconnect(), x.current = null, y.current !== null && (cancelAnimationFrame(y.current), y.current = null), !N || typeof ResizeObserver > "u")
4516
4516
  return;
@@ -4523,9 +4523,9 @@ const Gi = (e) => {
4523
4523
  y.current === null && (y.current = requestAnimationFrame(T));
4524
4524
  };
4525
4525
  U(), x.current = I4(N, U);
4526
- }, []), B = (N) => {
4526
+ }, []), S = (N) => {
4527
4527
  o && (N.stopPropagation(), N.preventDefault(), o());
4528
- }, S = [
4528
+ }, I = [
4529
4529
  y4(i),
4530
4530
  E4(r, c, t),
4531
4531
  s === "uppercase" ? "uppercase" : "normal-case",
@@ -4535,14 +4535,14 @@ const Gi = (e) => {
4535
4535
  ].filter(Boolean).join(" "), V = S4(r, a, l, c), L = /* @__PURE__ */ v(
4536
4536
  "div",
4537
4537
  {
4538
- className: S,
4539
- onClick: B,
4538
+ className: I,
4539
+ onClick: S,
4540
4540
  tabIndex: o ? 0 : void 0,
4541
4541
  onKeyDown: o ? (N) => $2(N, o) : void 0,
4542
4542
  style: V,
4543
4543
  children: [
4544
4544
  d && h === "left" && /* @__PURE__ */ n("span", { className: "mr-1 flex items-center", style: C, children: d }),
4545
- k ? /* @__PURE__ */ n("span", { className: "flex items-center min-w-0", children: /* @__PURE__ */ n("span", { ref: I, className: "block min-w-0 truncate", children: e }, String(e)) }) : /* @__PURE__ */ n("span", { className: "flex items-center", children: e }),
4545
+ k ? /* @__PURE__ */ n("span", { className: "flex items-center min-w-0", children: /* @__PURE__ */ n("span", { ref: B, className: "block min-w-0 truncate", children: e }, String(e)) }) : /* @__PURE__ */ n("span", { className: "flex items-center", children: e }),
4546
4546
  d && h === "right" && /* @__PURE__ */ n("span", { className: "ml-1 flex items-center", style: C, children: d }),
4547
4547
  m && /* @__PURE__ */ n(
4548
4548
  "button",
@@ -4783,10 +4783,10 @@ ${$4}`, o8 = {
4783
4783
  onSelect: w,
4784
4784
  tabIndex: A,
4785
4785
  "aria-label": k,
4786
- className: I = "",
4787
- style: B
4786
+ className: B = "",
4787
+ style: S
4788
4788
  }) => {
4789
- const { pinned: S } = V4(), V = !h && !x, L = R(null);
4789
+ const { pinned: I } = V4(), V = !h && !x, L = R(null);
4790
4790
  et(L, a8, q4);
4791
4791
  const N = `mal-selectable-card-${l1().replace(/[^a-zA-Z0-9_-]/g, "")}`, T = `${N}-outline`, U = `${N}-eyebrow`, ee = `${N}-status`, le = `${N}-title`, ie = `${N}-description`, te = `${N}-count`, W = k ? void 0 : po([l ? U : void 0, le, s ? ee : void 0]), X = po([
4792
4792
  i ? ie : void 0,
@@ -4802,7 +4802,7 @@ ${$4}`, o8 = {
4802
4802
  "aria-live": "polite",
4803
4803
  "data-variant": "editing",
4804
4804
  "data-state": "selected",
4805
- className: `${O1} relative flex shrink-0 flex-col items-center gap-2 px-5 text-center ${I}`.trim(),
4805
+ className: `${O1} relative flex shrink-0 flex-col items-center gap-2 px-5 text-center ${B}`.trim(),
4806
4806
  style: {
4807
4807
  width: to,
4808
4808
  height: ro,
@@ -4813,7 +4813,7 @@ ${$4}`, o8 = {
4813
4813
  justifyContent: "center",
4814
4814
  [it]: d5,
4815
4815
  [st]: en,
4816
- ...B
4816
+ ...S
4817
4817
  },
4818
4818
  children: [
4819
4819
  /* @__PURE__ */ v(
@@ -4861,16 +4861,16 @@ ${$4}`, o8 = {
4861
4861
  {
4862
4862
  ref: L,
4863
4863
  "data-variant": o,
4864
- "data-pinned": S ? "true" : "false",
4864
+ "data-pinned": I ? "true" : "false",
4865
4865
  "data-state": h ? "selected" : "resting",
4866
4866
  "data-hoverable": V ? "" : void 0,
4867
- className: `${O1} group relative grid shrink-0 grid-cols-[minmax(0,1fr)_auto] grid-rows-[1fr_auto] gap-x-2 ${b7} ${I}`.trim(),
4867
+ className: `${O1} group relative grid shrink-0 grid-cols-[minmax(0,1fr)_auto] grid-rows-[1fr_auto] gap-x-2 ${b7} ${B}`.trim(),
4868
4868
  style: {
4869
4869
  width: to,
4870
4870
  height: ro,
4871
4871
  borderRadius: _r,
4872
4872
  boxSizing: "border-box",
4873
- ...B
4873
+ ...S
4874
4874
  },
4875
4875
  children: [
4876
4876
  h ? /* @__PURE__ */ v(
@@ -5234,9 +5234,9 @@ ${$4}`, o8 = {
5234
5234
  }) => {
5235
5235
  const b = R(null), C = R(null), [x, y] = Q({ canScrollLeft: !1, canScrollRight: !1 });
5236
5236
  et(b, P8, O8);
5237
- const w = Le.Children.toArray(a), A = w.filter((D) => !Ba(D)), k = A.some(a9), I = A.length > 0, B = w.filter(Ba).map(
5238
- (D) => D.props.emphasis === void 0 ? Le.cloneElement(D, { emphasis: I ? "secondary" : "primary" }) : D
5239
- ), S = w.length, V = ue(() => {
5237
+ const w = Le.Children.toArray(a), A = w.filter((D) => !Ba(D)), k = A.some(a9), B = A.length > 0, S = w.filter(Ba).map(
5238
+ (D) => D.props.emphasis === void 0 ? Le.cloneElement(D, { emphasis: B ? "secondary" : "primary" }) : D
5239
+ ), I = w.length, V = ue(() => {
5240
5240
  const D = b.current;
5241
5241
  return D ? Array.from(D.querySelectorAll(jt)) : [];
5242
5242
  }, []), L = ue(
@@ -5296,7 +5296,7 @@ ${$4}`, o8 = {
5296
5296
  left: de > ye ? de - D.clientWidth + b1 : Y - b1,
5297
5297
  behavior: "instant"
5298
5298
  });
5299
- }, [V, d, e, S]);
5299
+ }, [V, d, e, I]);
5300
5300
  const le = t ?? U, ie = (m == null ? void 0 : m.background) !== void 0 || (m == null ? void 0 : m.backgroundImage) !== void 0, te = ue(() => {
5301
5301
  var de;
5302
5302
  const D = C.current;
@@ -5327,7 +5327,7 @@ ${$4}`, o8 = {
5327
5327
  return j == null || j.observe(D), () => {
5328
5328
  D.removeEventListener("scroll", G), j == null || j.disconnect();
5329
5329
  };
5330
- }, [te, S]);
5330
+ }, [te, I]);
5331
5331
  const W = ue((D) => {
5332
5332
  const G = C.current;
5333
5333
  !G || typeof G.scrollBy != "function" || G.scrollBy({
@@ -5394,10 +5394,10 @@ ${$4}`, o8 = {
5394
5394
  role: "radiogroup",
5395
5395
  "aria-label": h,
5396
5396
  "aria-labelledby": p,
5397
- className: I ? "flex items-stretch min-w-0" : "flex items-stretch",
5397
+ className: B ? "flex items-stretch min-w-0" : "flex items-stretch",
5398
5398
  children: [
5399
5399
  o ? /* @__PURE__ */ n(Aa.Provider, { value: B4, children: /* @__PURE__ */ n("div", { className: "shrink-0", style: e9, children: o }) }) : null,
5400
- I ? /* @__PURE__ */ v(
5400
+ B ? /* @__PURE__ */ v(
5401
5401
  "div",
5402
5402
  {
5403
5403
  [f8]: "",
@@ -5435,12 +5435,12 @@ ${$4}`, o8 = {
5435
5435
  ]
5436
5436
  }
5437
5437
  ),
5438
- B.length > 0 ? /* @__PURE__ */ n(
5438
+ S.length > 0 ? /* @__PURE__ */ n(
5439
5439
  "div",
5440
5440
  {
5441
5441
  className: "shrink-0",
5442
- style: !I && o ? t9 : void 0,
5443
- children: B
5442
+ style: !B && o ? t9 : void 0,
5443
+ children: S
5444
5444
  }
5445
5445
  ) : null
5446
5446
  ]
@@ -6887,11 +6887,11 @@ var _9 = ["keyName", "value", "parentValue", "expandKey", "keys"], es = ["as", "
6887
6887
  Copied: m = {}
6888
6888
  } = w1();
6889
6889
  if (c === !1 || !h) return null;
6890
- var b = (I) => {
6891
- I.stopPropagation();
6892
- var B = "";
6893
- typeof r == "number" && r === 1 / 0 ? B = "Infinity" : typeof r == "number" && isNaN(r) ? B = "NaN" : typeof r == "bigint" ? B = Na(r) : r instanceof Date ? B = r.toLocaleString() : B = JSON.stringify(r, (V, L) => typeof L == "bigint" ? Na(L) : L, 2), i && i(B, r), g(!0);
6894
- var S = navigator.clipboard || {
6890
+ var b = (B) => {
6891
+ B.stopPropagation();
6892
+ var S = "";
6893
+ typeof r == "number" && r === 1 / 0 ? S = "Infinity" : typeof r == "number" && isNaN(r) ? S = "NaN" : typeof r == "bigint" ? S = Na(r) : r instanceof Date ? S = r.toLocaleString() : S = JSON.stringify(r, (V, L) => typeof L == "bigint" ? Na(L) : L, 2), i && i(S, r), g(!0);
6894
+ var I = navigator.clipboard || {
6895
6895
  writeText(V) {
6896
6896
  return new Promise((L, N) => {
6897
6897
  var T = document.createElement("textarea");
@@ -6899,7 +6899,7 @@ var _9 = ["keyName", "value", "parentValue", "expandKey", "keys"], es = ["as", "
6899
6899
  });
6900
6900
  }
6901
6901
  };
6902
- S.writeText(B).then(() => {
6902
+ I.writeText(S).then(() => {
6903
6903
  var V = setTimeout(() => {
6904
6904
  g(!1), clearTimeout(V);
6905
6905
  }, 3e3);
@@ -6966,11 +6966,11 @@ var Xn = (e) => {
6966
6966
  return null;
6967
6967
  var x = Array.isArray(a), y = x ? Object.entries(a).map((A) => [Number(A[0]), A[1]]) : Object.entries(a);
6968
6968
  d && (y = d === !0 ? y.sort((A, k) => {
6969
- var [I] = A, [B] = k;
6970
- return typeof I == "string" && typeof B == "string" ? I.localeCompare(B) : 0;
6969
+ var [B] = A, [S] = k;
6970
+ return typeof B == "string" && typeof S == "string" ? B.localeCompare(S) : 0;
6971
6971
  }) : y.sort((A, k) => {
6972
- var [I, B] = A, [S, V] = k;
6973
- return typeof I == "string" && typeof S == "string" ? d(I, S, B, V) : 0;
6972
+ var [B, S] = A, [I, V] = k;
6973
+ return typeof B == "string" && typeof I == "string" ? d(B, I, S, V) : 0;
6974
6974
  }));
6975
6975
  var w = {
6976
6976
  borderLeft: "var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",
@@ -6981,12 +6981,12 @@ var Xn = (e) => {
6981
6981
  className: "w-rjv-wrap",
6982
6982
  style: w,
6983
6983
  children: y.map((A, k) => {
6984
- var [I, B] = A;
6984
+ var [B, S] = A;
6985
6985
  return /* @__PURE__ */ n($n, {
6986
6986
  parentValue: a,
6987
- keyName: I,
6988
- keys: [...s, I],
6989
- value: B,
6987
+ keyName: B,
6988
+ keys: [...s, B],
6989
+ value: S,
6990
6990
  level: l
6991
6991
  }, k);
6992
6992
  })
@@ -7203,7 +7203,7 @@ var n0 = (e) => {
7203
7203
  }, A = {
7204
7204
  transform: "rotate(" + (C ? "-90" : "0") + "deg)",
7205
7205
  transition: "all 0.3s"
7206
- }, k = Object.keys(s).length, I = typeof s == "object", B = Array.isArray(s), S = s instanceof Set, V = k !== 0 && (B || S || I), L = {
7206
+ }, k = Object.keys(s).length, B = typeof s == "object", S = Array.isArray(s), I = s instanceof Set, V = k !== 0 && (S || I || B), L = {
7207
7207
  style: w
7208
7208
  };
7209
7209
  V && (L.onClick = y);
@@ -7224,14 +7224,14 @@ var n0 = (e) => {
7224
7224
  value: l,
7225
7225
  keyName: r
7226
7226
  }), /* @__PURE__ */ n(Nn, E({
7227
- isBrackets: B || S
7227
+ isBrackets: S || I
7228
7228
  }, N)), /* @__PURE__ */ n(o0, {
7229
7229
  keyName: r,
7230
7230
  value: s,
7231
7231
  isExpanded: C
7232
7232
  }), /* @__PURE__ */ n(b5, E({
7233
7233
  isVisiable: C || !V,
7234
- isBrackets: B || S
7234
+ isBrackets: S || I
7235
7235
  }, N)), /* @__PURE__ */ n(r0, {
7236
7236
  value: s,
7237
7237
  keyName: r
@@ -7571,7 +7571,7 @@ const Io = {
7571
7571
  children: a
7572
7572
  }
7573
7573
  )
7574
- ] }), ms = Le.lazy(() => import("./CodeBlockHighlighter-D2UohsxL.js")), tp = ({
7574
+ ] }), ms = Le.lazy(() => import("./CodeBlockHighlighter-B04HshyY.js")), tp = ({
7575
7575
  code: e,
7576
7576
  json: t,
7577
7577
  showLineNumbers: r = !0,
@@ -8221,10 +8221,10 @@ const z1 = [], Vo = (e) => {
8221
8221
  describedBy: w,
8222
8222
  required: A = !1,
8223
8223
  ariaLabel: k,
8224
- ariaLabelledBy: I,
8225
- hasCallerId: B = !1
8226
- }, S) => {
8227
- const V = i && !s && !!(r != null && r.subtitle), L = V ? Qs[g] : Hs[g], N = zs[g], T = `${x}-value`, U = `${x}-subtitle`, ee = !y && !k && !B && V, le = I ?? (y && !k ? `${y} ${T}` : void 0) ?? (ee ? T : void 0), ie = (P) => {
8224
+ ariaLabelledBy: B,
8225
+ hasCallerId: S = !1
8226
+ }, I) => {
8227
+ const V = i && !s && !!(r != null && r.subtitle), L = V ? Qs[g] : Hs[g], N = zs[g], T = `${x}-value`, U = `${x}-subtitle`, ee = !y && !k && !S && V, le = B ?? (y && !k ? `${y} ${T}` : void 0) ?? (ee ? T : void 0), ie = (P) => {
8228
8228
  P.key === "ArrowDown" && (P.preventDefault(), p == null || p());
8229
8229
  }, te = R(null), W = R(null), X = N0({ disabled: a, error: o, open: e }), J = !e && !!r, ge = (r == null ? void 0 : r.triggerLabel) ?? (r == null ? void 0 : r.label), ce = V ? r == null ? void 0 : r.subtitle : void 0, De = () => {
8230
8230
  const P = te.current;
@@ -8240,7 +8240,7 @@ const z1 = [], Vo = (e) => {
8240
8240
  return /* @__PURE__ */ v(
8241
8241
  "div",
8242
8242
  {
8243
- ref: S,
8243
+ ref: I,
8244
8244
  className: `
8245
8245
  relative w-full ${L} ${N}
8246
8246
  border border-solid
@@ -8275,7 +8275,7 @@ const z1 = [], Vo = (e) => {
8275
8275
  id: x,
8276
8276
  type: "text",
8277
8277
  "aria-label": k,
8278
- "aria-labelledby": I,
8278
+ "aria-labelledby": B,
8279
8279
  "aria-invalid": o || void 0,
8280
8280
  "aria-required": A || void 0,
8281
8281
  "aria-describedby": w,
@@ -8336,7 +8336,7 @@ const z1 = [], Vo = (e) => {
8336
8336
  const j = /* @__PURE__ */ v(
8337
8337
  "button",
8338
8338
  {
8339
- ref: S,
8339
+ ref: I,
8340
8340
  id: x,
8341
8341
  type: "button",
8342
8342
  "aria-label": k,
@@ -8734,19 +8734,19 @@ const op = ({
8734
8734
  search: w = !1,
8735
8735
  showSubtitleInTrigger: A = !1,
8736
8736
  subtitleLayout: k = "inline",
8737
- clearable: I = !1,
8738
- size: B = "large",
8739
- id: S,
8737
+ clearable: B = !1,
8738
+ size: S = "large",
8739
+ id: I,
8740
8740
  "aria-label": V,
8741
8741
  "aria-labelledby": L
8742
8742
  }) => {
8743
8743
  const { controlId: N, labelId: T, descriptionId: U, hintId: ee, helperTextId: le } = Wr({
8744
- id: S,
8744
+ id: I,
8745
8745
  label: s,
8746
8746
  description: C,
8747
8747
  hint: i,
8748
8748
  helperText: !0
8749
- }), [ie, te] = Q(!1), [W, X] = Q(r), J = a ?? W, ge = e.find((re) => re.id === J), ce = I && J !== void 0 && J !== "" && !o, De = A && !w && !!(ge != null && ge.subtitle), Pe = `Clear ${s ?? y ?? "selection"}`, je = R(r);
8749
+ }), [ie, te] = Q(!1), [W, X] = Q(r), J = a ?? W, ge = e.find((re) => re.id === J), ce = B && J !== void 0 && J !== "" && !o, De = A && !w && !!(ge != null && ge.subtitle), Pe = `Clear ${s ?? y ?? "selection"}`, je = R(r);
8750
8750
  pe(() => {
8751
8751
  je.current !== r && (je.current = r, X(r));
8752
8752
  }, [r]);
@@ -8768,12 +8768,12 @@ const op = ({
8768
8768
  triggerRect: re.getBoundingClientRect(),
8769
8769
  panelWidth: ((Oe = de.current) == null ? void 0 : Oe.offsetWidth) ?? 0,
8770
8770
  panelHeight: ((Ge = de.current) == null ? void 0 : Ge.offsetHeight) ?? 0,
8771
- size: B,
8771
+ size: S,
8772
8772
  viewportWidth: window.innerWidth,
8773
8773
  viewportHeight: window.innerHeight
8774
8774
  })
8775
8775
  );
8776
- }, [B]);
8776
+ }, [S]);
8777
8777
  pe(() => {
8778
8778
  if (!ie) {
8779
8779
  ye(null), P(!1);
@@ -8839,7 +8839,7 @@ const op = ({
8839
8839
  loadingComponent: /* @__PURE__ */ n(
8840
8840
  y5,
8841
8841
  {
8842
- heightClass: Cr[B],
8842
+ heightClass: Cr[S],
8843
8843
  helperText: !!x,
8844
8844
  helperTextMarginTop: !0
8845
8845
  }
@@ -8870,10 +8870,10 @@ const op = ({
8870
8870
  type: "button",
8871
8871
  onClick: se,
8872
8872
  "aria-label": Pe,
8873
- className: `absolute ${De ? js[B] : "top-1/2 -translate-y-1/2"} z-10 flex items-center
8873
+ className: `absolute ${De ? js[S] : "top-1/2 -translate-y-1/2"} z-10 flex items-center
8874
8874
  justify-center rounded-full text-[var(--malachite-text-placeholder)]
8875
8875
  hover:text-[var(--malachite-text-primary)] transition-colors
8876
- focus-visible:[outline:2px_solid_var(--malachite-text-primary)] focus-visible:outline-offset-2 ${Ys[B]}`,
8876
+ focus-visible:[outline:2px_solid_var(--malachite-text-primary)] focus-visible:outline-offset-2 ${Ys[S]}`,
8877
8877
  children: /* @__PURE__ */ n(ae.CloseIcon, { size: 13 })
8878
8878
  }
8879
8879
  ),
@@ -8904,9 +8904,9 @@ const op = ({
8904
8904
  onArrowDown: () => {
8905
8905
  o || m1();
8906
8906
  },
8907
- size: B,
8907
+ size: S,
8908
8908
  controlId: N,
8909
- hasCallerId: !!S,
8909
+ hasCallerId: !!I,
8910
8910
  labelId: T,
8911
8911
  describedBy: ze,
8912
8912
  required: h,
@@ -8923,8 +8923,8 @@ const op = ({
8923
8923
  position: "fixed",
8924
8924
  top: (O == null ? void 0 : O.top) ?? 0,
8925
8925
  left: (O == null ? void 0 : O.left) ?? 0,
8926
- width: Ma.has(B) ? "auto" : O == null ? void 0 : O.width,
8927
- maxWidth: Ma.has(B) ? `calc(100vw - ${j1 * 2}px)` : void 0,
8926
+ width: Ma.has(S) ? "auto" : O == null ? void 0 : O.width,
8927
+ maxWidth: Ma.has(S) ? `calc(100vw - ${j1 * 2}px)` : void 0,
8928
8928
  visibility: O ? "visible" : "hidden",
8929
8929
  opacity: O ? 1 : 0
8930
8930
  },
@@ -8934,7 +8934,7 @@ const op = ({
8934
8934
  menuLoading: m,
8935
8935
  emptyMessage: e.length === 0 ? "No options available" : "No results found",
8936
8936
  subtitleLayout: k,
8937
- size: B,
8937
+ size: S,
8938
8938
  autoFocus: !w || j,
8939
8939
  positioned: O !== null,
8940
8940
  onDismiss: Ae
@@ -9035,19 +9035,19 @@ const op = ({
9035
9035
  var k;
9036
9036
  if (l || !rc.has(C.key))
9037
9037
  return;
9038
- const x = e.reduce((I, B, S) => (B.disabled || I.push({ option: B, index: S }), I), []);
9038
+ const x = e.reduce((B, S, I) => (S.disabled || B.push({ option: S, index: I }), B), []);
9039
9039
  if (x.length === 0)
9040
9040
  return;
9041
9041
  C.preventDefault();
9042
- const y = x.findIndex(({ option: I }) => I.value === t);
9042
+ const y = x.findIndex(({ option: B }) => B.value === t);
9043
9043
  let w;
9044
9044
  if (C.key === "Home")
9045
9045
  w = 0;
9046
9046
  else if (C.key === "End")
9047
9047
  w = x.length - 1;
9048
9048
  else {
9049
- const I = C.key === "ArrowLeft" || C.key === "ArrowUp" ? -1 : 1;
9050
- w = ((y === -1 ? 0 : y) + I + x.length) % x.length;
9049
+ const B = C.key === "ArrowLeft" || C.key === "ArrowUp" ? -1 : 1;
9050
+ w = ((y === -1 ? 0 : y) + B + x.length) % x.length;
9051
9051
  }
9052
9052
  const A = x[w];
9053
9053
  A.option.value !== t && r(A.option.value), (k = d.current[A.index]) == null || k.focus();
@@ -9156,9 +9156,9 @@ const ip = ({
9156
9156
  required: w = !1,
9157
9157
  requiredIndicator: A,
9158
9158
  formControl: k,
9159
- chips: I = !1,
9160
- chipsRemovable: B = !0,
9161
- chipsMax: S = "auto",
9159
+ chips: B = !1,
9160
+ chipsRemovable: S = !0,
9161
+ chipsMax: I = "auto",
9162
9162
  inlineSearch: V = !1,
9163
9163
  onSearchChange: L,
9164
9164
  localFilter: N = !0,
@@ -9180,7 +9180,7 @@ const ip = ({
9180
9180
  const d1 = R([]), Be = y1(() => new Set(j), [j]), Ae = y1(
9181
9181
  () => e.filter((F) => Be.has(F.value)),
9182
9182
  [e, Be]
9183
- ), m1 = typeof S == "number" ? S : void 0, t1 = y1(() => {
9183
+ ), m1 = typeof I == "number" ? I : void 0, t1 = y1(() => {
9184
9184
  if (!N) return e;
9185
9185
  const F = O.trim().toLowerCase();
9186
9186
  return F ? e.filter((q) => (q.searchText ?? (typeof q.label == "string" ? q.label : "")).toLowerCase().includes(F)) : e;
@@ -9343,7 +9343,7 @@ const ip = ({
9343
9343
  ]), K = y1(() => {
9344
9344
  if (l && Ae.length > 0)
9345
9345
  return l(Ae);
9346
- if (I && Ae.length > 0) {
9346
+ if (B && Ae.length > 0) {
9347
9347
  const F = m1 != null ? Ae.slice(0, m1) : Ae, q = Ae.length - F.length;
9348
9348
  return /* @__PURE__ */ v(
9349
9349
  "div",
@@ -9359,7 +9359,7 @@ const ip = ({
9359
9359
  value: Ze.label,
9360
9360
  type: "default",
9361
9361
  textTransform: "none",
9362
- onRemove: B && !h && !Ce ? (f1) => H(Ze.value, f1) : void 0,
9362
+ onRemove: S && !h && !Ce ? (f1) => H(Ze.value, f1) : void 0,
9363
9363
  className: "shrink-0"
9364
9364
  },
9365
9365
  Ze.value
@@ -9378,9 +9378,9 @@ const ip = ({
9378
9378
  }, [
9379
9379
  Ae,
9380
9380
  l,
9381
- I,
9382
- m1,
9383
9381
  B,
9382
+ m1,
9383
+ S,
9384
9384
  h,
9385
9385
  H,
9386
9386
  V,
@@ -9416,7 +9416,7 @@ const ip = ({
9416
9416
  {
9417
9417
  ref: se,
9418
9418
  id: J,
9419
- triggerRole: V ? "combobox" : I && B ? "group" : "button",
9419
+ triggerRole: V ? "combobox" : B && S ? "group" : "button",
9420
9420
  disabled: h || g,
9421
9421
  [La]: "",
9422
9422
  "aria-haspopup": "listbox",
@@ -9936,36 +9936,46 @@ const hc = { small: 16, medium: 24, large: 32 }, uc = (e) => e ? `${gc(e)}px` :
9936
9936
  href: o,
9937
9937
  selected: l,
9938
9938
  trailing: s,
9939
- role: i,
9940
- "aria-label": c,
9941
- "aria-labelledby": d,
9942
- className: h = "",
9943
- style: p
9939
+ tone: i = "default",
9940
+ role: c,
9941
+ "aria-label": d,
9942
+ "aria-labelledby": h,
9943
+ className: p = "",
9944
+ style: g
9944
9945
  }) => {
9945
- const g = !!(a || o), b = [
9946
+ const m = !!(a || o), b = r && m ? "" : "transition-colors hover:bg-[var(--malachite-buttonlist-hover-background)]", C = i === "muted", y = [
9946
9947
  "w-full text-left border-0",
9948
+ C ? "bg-[var(--malachite-card-dimmed-background)]" : "",
9947
9949
  t ? "border-b border-solid border-[var(--malachite-card-border)]" : "",
9948
- r && g ? "" : "transition-colors hover:bg-[var(--malachite-buttonlist-hover-background)]"
9949
- ].filter(Boolean).join(" "), C = [
9950
- g ? `appearance-none bg-transparent p-0 ${Kt}` : "",
9951
- g && !r ? "cursor-pointer" : ""
9952
- ].filter(Boolean).join(" "), x = [b, C, h].filter(Boolean).join(" "), w = { ...l ? {
9950
+ b
9951
+ ].filter(Boolean).join(" "), w = [
9952
+ m ? `appearance-none ${C ? "" : "bg-transparent"} p-0 ${Kt}` : "",
9953
+ m && !r ? "cursor-pointer" : ""
9954
+ ].filter(Boolean).join(" "), A = [y, w, p].filter(Boolean).join(" "), B = { ...l ? {
9953
9955
  backgroundImage: `linear-gradient(${ht}, ${ht})`,
9954
9956
  color: jr,
9955
9957
  boxShadow: `inset 2px 0 0 ${A5}`,
9956
9958
  ...k5
9957
- } : {}, ...p }, A = i === "radio" || i === "checkbox" ? !!l : void 0;
9959
+ } : {}, ...g }, S = c === "radio" || c === "checkbox" ? !!l : void 0, I = S === void 0 && l ? !0 : void 0, V = {
9960
+ role: c,
9961
+ "aria-checked": S,
9962
+ "aria-current": I,
9963
+ "aria-label": d,
9964
+ "aria-labelledby": h,
9965
+ "aria-disabled": c && r ? !0 : void 0
9966
+ };
9958
9967
  if (xr(s)) {
9959
- const k = o && !r ? /* @__PURE__ */ n(
9968
+ const L = o && !r ? /* @__PURE__ */ n(
9960
9969
  "a",
9961
9970
  {
9962
9971
  href: o,
9963
9972
  onClick: a,
9964
- className: `${C} border-0 flex-1 min-w-0 text-left no-underline text-inherit`,
9965
- role: i,
9966
- "aria-checked": A,
9967
- "aria-label": c,
9968
- "aria-labelledby": d,
9973
+ className: `${w} border-0 flex-1 min-w-0 text-left no-underline text-inherit`,
9974
+ role: c,
9975
+ "aria-checked": S,
9976
+ "aria-current": I,
9977
+ "aria-label": d,
9978
+ "aria-labelledby": h,
9969
9979
  children: e
9970
9980
  }
9971
9981
  ) : a ? /* @__PURE__ */ n(
@@ -9974,21 +9984,26 @@ const hc = { small: 16, medium: 24, large: 32 }, uc = (e) => e ? `${gc(e)}px` :
9974
9984
  type: "button",
9975
9985
  onClick: a,
9976
9986
  disabled: r,
9977
- className: `${C} border-0 flex-1 min-w-0 text-left`,
9978
- role: i,
9979
- "aria-checked": A,
9980
- "aria-label": c,
9981
- "aria-labelledby": d,
9987
+ className: `${w} border-0 flex-1 min-w-0 text-left`,
9988
+ role: c,
9989
+ "aria-checked": S,
9990
+ "aria-current": I,
9991
+ "aria-label": d,
9992
+ "aria-labelledby": h,
9982
9993
  children: e
9983
9994
  }
9984
- ) : /* @__PURE__ */ n("div", { className: "flex-1 min-w-0", children: e });
9995
+ ) : (
9996
+ // The set goes here, not on the wrapper: `radio` and `checkbox` make their
9997
+ // descendants presentational, which would bury a control in the trailing slot.
9998
+ /* @__PURE__ */ n("div", { className: "flex-1 min-w-0", ...V, children: e })
9999
+ );
9985
10000
  return /* @__PURE__ */ v(
9986
10001
  "div",
9987
10002
  {
9988
- className: [b, "flex items-center", h].filter(Boolean).join(" "),
9989
- style: w,
10003
+ className: [y, "flex items-center", p].filter(Boolean).join(" "),
10004
+ style: B,
9990
10005
  children: [
9991
- k,
10006
+ L,
9992
10007
  /* @__PURE__ */ n("div", { className: "shrink-0 flex items-center", children: s })
9993
10008
  ]
9994
10009
  }
@@ -9999,12 +10014,13 @@ const hc = { small: 16, medium: 24, large: 32 }, uc = (e) => e ? `${gc(e)}px` :
9999
10014
  {
10000
10015
  href: o,
10001
10016
  onClick: a,
10002
- className: `${x} no-underline text-inherit`,
10003
- style: w,
10004
- role: i,
10005
- "aria-checked": A,
10006
- "aria-label": c,
10007
- "aria-labelledby": d,
10017
+ className: `${A} no-underline text-inherit`,
10018
+ style: B,
10019
+ role: c,
10020
+ "aria-checked": S,
10021
+ "aria-current": I,
10022
+ "aria-label": d,
10023
+ "aria-labelledby": h,
10008
10024
  children: e
10009
10025
  }
10010
10026
  ) : a ? /* @__PURE__ */ n(
@@ -10013,15 +10029,16 @@ const hc = { small: 16, medium: 24, large: 32 }, uc = (e) => e ? `${gc(e)}px` :
10013
10029
  type: "button",
10014
10030
  onClick: a,
10015
10031
  disabled: r,
10016
- className: x,
10017
- style: w,
10018
- role: i,
10019
- "aria-checked": A,
10020
- "aria-label": c,
10021
- "aria-labelledby": d,
10032
+ className: A,
10033
+ style: B,
10034
+ role: c,
10035
+ "aria-checked": S,
10036
+ "aria-current": I,
10037
+ "aria-label": d,
10038
+ "aria-labelledby": h,
10022
10039
  children: e
10023
10040
  }
10024
- ) : /* @__PURE__ */ n("div", { className: x, style: w, children: e });
10041
+ ) : /* @__PURE__ */ n("div", { className: A, style: B, ...V, children: e });
10025
10042
  }, vc = ({
10026
10043
  children: e,
10027
10044
  padding: t = !1,
@@ -12338,7 +12355,7 @@ const rd = () => {
12338
12355
  busy: w = !1,
12339
12356
  children: A
12340
12357
  }) => {
12341
- const k = l1(), [I, B] = Q(!1), [S, V] = Q(!1), [L, N] = Q(!1), T = R(null), U = R(null), ee = R(null), le = R(w), ie = R(t);
12358
+ const k = l1(), [B, S] = Q(!1), [I, V] = Q(!1), [L, N] = Q(!1), T = R(null), U = R(null), ee = R(null), le = R(w), ie = R(t);
12342
12359
  pe(() => {
12343
12360
  le.current = w, ie.current = t;
12344
12361
  }, [w, t]);
@@ -12363,18 +12380,18 @@ const rd = () => {
12363
12380
  var Pe;
12364
12381
  if (e)
12365
12382
  V(!0), N(!1), ee.current && (clearTimeout(ee.current), ee.current = null), U.current = requestAnimationFrame(() => {
12366
- U.current = null, B(!0);
12383
+ U.current = null, S(!0);
12367
12384
  });
12368
12385
  else {
12369
12386
  const je = qt();
12370
- je && ((Pe = T.current) != null && Pe.contains(je)) && je.blur(), N(!0), B(!1), ee.current = setTimeout(() => {
12387
+ je && ((Pe = T.current) != null && Pe.contains(je)) && je.blur(), N(!0), S(!1), ee.current = setTimeout(() => {
12371
12388
  ee.current = null, V(!1);
12372
12389
  }, da);
12373
12390
  }
12374
12391
  return () => {
12375
12392
  U.current !== null && (cancelAnimationFrame(U.current), U.current = null), ee.current && (clearTimeout(ee.current), ee.current = null);
12376
12393
  };
12377
- }, [e]), S ? K1(
12394
+ }, [e]), I ? K1(
12378
12395
  // Host carries the stacking context — ShadowRootWrapper's `isolation` would otherwise
12379
12396
  // flatten our z-index. Not promoted to the top layer, so host dialogs can cover us.
12380
12397
  /* @__PURE__ */ n(
@@ -12393,7 +12410,7 @@ const rd = () => {
12393
12410
  {
12394
12411
  "aria-hidden": "true",
12395
12412
  onClick: g ? te : void 0,
12396
- className: `absolute inset-0 bg-[var(--malachite-overlay-scrim)] transition-opacity duration-200 ease-in-out ${I ? "opacity-100" : "opacity-0"}`
12413
+ className: `absolute inset-0 bg-[var(--malachite-overlay-scrim)] transition-opacity duration-200 ease-in-out ${B ? "opacity-100" : "opacity-0"}`
12397
12414
  }
12398
12415
  ),
12399
12416
  /* @__PURE__ */ v(
@@ -12416,8 +12433,8 @@ const rd = () => {
12416
12433
  } : {},
12417
12434
  // Inline: Tailwind scale/translate utilities silently break inside
12418
12435
  // shadow roots (see CLAUDE.md Shadow DOM caveats).
12419
- transform: I ? "scale(1)" : "scale(0.96)",
12420
- opacity: I ? 1 : 0,
12436
+ transform: B ? "scale(1)" : "scale(0.96)",
12437
+ opacity: B ? 1 : 0,
12421
12438
  transition: `transform ${da}ms ease-out, opacity ${da}ms ease-out`
12422
12439
  },
12423
12440
  children: [
@@ -12585,9 +12602,9 @@ const rd = () => {
12585
12602
  prefixSecondaryValue: w,
12586
12603
  ellipsis: A = !1,
12587
12604
  formControl: k,
12588
- buttons: I,
12589
- onCopyClick: B,
12590
- showCopyButton: S,
12605
+ buttons: B,
12606
+ onCopyClick: S,
12607
+ showCopyButton: I,
12591
12608
  onChange: V,
12592
12609
  value: L,
12593
12610
  onBlur: N,
@@ -12624,9 +12641,9 @@ const rd = () => {
12624
12641
  defaultValue: C,
12625
12642
  bound: !!k,
12626
12643
  uncontrolledValue: je
12627
- }), de = B ? () => {
12644
+ }), de = S ? () => {
12628
12645
  const se = Y(_.current);
12629
- se && (navigator.clipboard.writeText(se), j(!0), B());
12646
+ se && (navigator.clipboard.writeText(se), j(!0), S());
12630
12647
  } : void 0, O = g === "password" ? De ? "text" : "password" : g, ye = o || y || w, me = Uo[m], Ee = (se) => {
12631
12648
  const Se = cd(b, se);
12632
12649
  return [
@@ -12660,7 +12677,7 @@ const rd = () => {
12660
12677
  loadingComponent: /* @__PURE__ */ n(y5, { heightClass: me, helperText: !!T }),
12661
12678
  children: ({ error: se, message: Se, onFieldChange: Ie, onFieldBlur: qe, value: d1 }) => {
12662
12679
  _.current = d1;
12663
- const Be = Y(d1), Ae = S ?? !!(de && x && Be), m1 = c ?? se, t1 = c === !1 ? void 0 : Se, re = m1 && !t1, Oe = re || Ae || (I == null ? void 0 : I.length) || g === "password" && U, Ge = `${ce}-error`, $e = [
12680
+ const Be = Y(d1), Ae = I ?? !!(de && x && Be), m1 = c ?? se, t1 = c === !1 ? void 0 : Se, re = m1 && !t1, Oe = re || Ae || (B == null ? void 0 : B.length) || g === "password" && U, Ge = `${ce}-error`, $e = [
12664
12681
  J,
12665
12682
  ge,
12666
12683
  T ? ce : void 0,
@@ -12719,7 +12736,7 @@ const rd = () => {
12719
12736
  onTogglePassword: () => Pe(!De)
12720
12737
  }
12721
12738
  ),
12722
- /* @__PURE__ */ n(pd, { buttons: I })
12739
+ /* @__PURE__ */ n(pd, { buttons: B })
12723
12740
  ]
12724
12741
  }
12725
12742
  )
@@ -12954,10 +12971,10 @@ const rd = () => {
12954
12971
  size: w = "medium",
12955
12972
  "aria-label": A,
12956
12973
  "aria-labelledby": k,
12957
- children: I
12974
+ children: B
12958
12975
  }) => {
12959
- const [B, S] = Q(""), V = l1(), L = gd[i], [N, T] = Q({ open: e, confirmPhrase: d });
12960
- (N.open !== e || N.confirmPhrase !== d) && (T({ open: e, confirmPhrase: d }), e && S(""));
12976
+ const [S, I] = Q(""), V = l1(), L = gd[i], [N, T] = Q({ open: e, confirmPhrase: d });
12977
+ (N.open !== e || N.confirmPhrase !== d) && (T({ open: e, confirmPhrase: d }), e && I(""));
12961
12978
  const { parts: U, text: ee } = bd(
12962
12979
  h,
12963
12980
  d
@@ -12965,7 +12982,7 @@ const rd = () => {
12965
12982
  outcome: le,
12966
12983
  canCopy: ie,
12967
12984
  copy: te
12968
- } = xd(d, e, x, g), W = !d || B.trim() === d, X = Cd(B, d), J = x || !W, ge = /* @__PURE__ */ v("div", { className: "flex w-full flex-wrap items-center justify-end gap-[8px]", children: [
12985
+ } = xd(d, e, x, g), W = !d || S.trim() === d, X = Cd(S, d), J = x || !W, ge = /* @__PURE__ */ v("div", { className: "flex w-full flex-wrap items-center justify-end gap-[8px]", children: [
12969
12986
  /* @__PURE__ */ n(s1, { variant: "outline", size: "small", onClick: t, disabled: x, children: C }),
12970
12987
  /* @__PURE__ */ n(
12971
12988
  s1,
@@ -13025,7 +13042,7 @@ const rd = () => {
13025
13042
  children: s
13026
13043
  }
13027
13044
  ) : null,
13028
- I,
13045
+ B,
13029
13046
  d ? /* @__PURE__ */ n(
13030
13047
  wd,
13031
13048
  {
@@ -13033,8 +13050,8 @@ const rd = () => {
13033
13050
  parts: U,
13034
13051
  plainLabel: ee,
13035
13052
  placeholder: m,
13036
- value: B,
13037
- onChange: S,
13053
+ value: S,
13054
+ onChange: I,
13038
13055
  disabled: x,
13039
13056
  copyLabel: p,
13040
13057
  copyOutcome: le,
@@ -13066,7 +13083,7 @@ const rd = () => {
13066
13083
  stacking: C = "default",
13067
13084
  children: x
13068
13085
  }) => {
13069
- const [y, w] = Q(!1), [A, k] = Q(!1), I = R(null), B = R(null), S = R(null), {
13086
+ const [y, w] = Q(!1), [A, k] = Q(!1), B = R(null), S = R(null), I = R(null), {
13070
13087
  ref: V,
13071
13088
  isTopmost: L,
13072
13089
  zIndex: N,
@@ -13075,21 +13092,21 @@ const rd = () => {
13075
13092
  open: e,
13076
13093
  onClose: t,
13077
13094
  elevated: C === "above-app-overlays",
13078
- hostRef: S
13095
+ hostRef: I
13079
13096
  });
13080
- return pe(() => (e ? (k(!0), B.current && (clearTimeout(B.current), B.current = null), I.current = requestAnimationFrame(() => {
13081
- I.current = null, w(!0);
13082
- })) : (w(!1), B.current = setTimeout(() => {
13083
- B.current = null, k(!1);
13097
+ return pe(() => (e ? (k(!0), S.current && (clearTimeout(S.current), S.current = null), B.current = requestAnimationFrame(() => {
13098
+ B.current = null, w(!0);
13099
+ })) : (w(!1), S.current = setTimeout(() => {
13100
+ S.current = null, k(!1);
13084
13101
  }, Jo)), () => {
13085
- I.current !== null && (cancelAnimationFrame(I.current), I.current = null), B.current && (clearTimeout(B.current), B.current = null);
13102
+ B.current !== null && (cancelAnimationFrame(B.current), B.current = null), S.current && (clearTimeout(S.current), S.current = null);
13086
13103
  }), [e]), A ? K1(
13087
13104
  // Host carries the stacking context — ShadowRootWrapper's `isolation` would
13088
13105
  // otherwise flatten our z-index and let sticky page elements paint over us.
13089
13106
  /* @__PURE__ */ n(
13090
13107
  zr,
13091
13108
  {
13092
- hostRef: S,
13109
+ hostRef: I,
13093
13110
  hostStyle: { position: "relative", zIndex: N },
13094
13111
  hostProps: T ? { ...G1("sidepanel"), [wr]: "" } : G1("sidepanel"),
13095
13112
  children: /* @__PURE__ */ v("div", { className: "fixed inset-0 z-[1000]", children: [
@@ -13462,9 +13479,9 @@ const _o = (e) => {
13462
13479
  buttons: w,
13463
13480
  onCopyClick: A,
13464
13481
  onChange: k,
13465
- value: I,
13466
- onBlur: B,
13467
- helperText: S,
13482
+ value: B,
13483
+ onBlur: S,
13484
+ helperText: I,
13468
13485
  rows: V = 4,
13469
13486
  maxLength: L,
13470
13487
  resize: N = "vertical",
@@ -13479,10 +13496,10 @@ const _o = (e) => {
13479
13496
  description: d,
13480
13497
  hint: t,
13481
13498
  helperText: !0
13482
- }), [ge, ce] = Q(m || ""), De = I !== void 0, Pe = (Y) => U0({
13499
+ }), [ge, ce] = Q(m || ""), De = B !== void 0, Pe = (Y) => U0({
13483
13500
  component: "TextArea",
13484
13501
  name: l,
13485
- value: I,
13502
+ value: B,
13486
13503
  formValue: Y,
13487
13504
  defaultValue: m,
13488
13505
  bound: !!y,
@@ -13531,7 +13548,7 @@ const _o = (e) => {
13531
13548
  value: se,
13532
13549
  onChange: je(O),
13533
13550
  onBlur: () => {
13534
- B == null || B(), ye == null || ye();
13551
+ S == null || S(), ye == null || ye();
13535
13552
  },
13536
13553
  "aria-label": ee,
13537
13554
  "aria-labelledby": le,
@@ -13571,12 +13588,12 @@ const _o = (e) => {
13571
13588
  /* @__PURE__ */ n(Rd, { buttons: w })
13572
13589
  ] })
13573
13590
  ] });
13574
- }, P = () => S ? /* @__PURE__ */ n(
13591
+ }, P = () => I ? /* @__PURE__ */ n(
13575
13592
  "div",
13576
13593
  {
13577
13594
  id: J,
13578
13595
  className: "text-[length:var(--malachite-font-size-small,13px)] text-left pl-2 text-[var(--malachite-text-dimmed,rgb(161,161,161))]",
13579
- children: S
13596
+ children: I
13580
13597
  }
13581
13598
  ) : null, _ = (Y) => /* @__PURE__ */ n(Yr, { id: G, message: Y, spaced: !0 });
13582
13599
  return /* @__PURE__ */ n(
@@ -13601,7 +13618,7 @@ const _o = (e) => {
13601
13618
  return /* @__PURE__ */ v(Ye, { children: [
13602
13619
  j(
13603
13620
  Ee,
13604
- S,
13621
+ I,
13605
13622
  O,
13606
13623
  ye,
13607
13624
  se,
@@ -14135,8 +14152,8 @@ class zd {
14135
14152
  y = x[A * 2] + x[A * 2 + 1] + b;
14136
14153
  }
14137
14154
  for (let A = p; A < r; A++) {
14138
- const k = l(A), I = h.get(k), B = typeof I == "number" ? I : this.options.estimateSize(A);
14139
- x[A * 2] = y, x[A * 2 + 1] = B, y += B + b;
14155
+ const k = l(A), B = h.get(k), S = typeof B == "number" ? B : this.options.estimateSize(A);
14156
+ x[A * 2] = y, x[A * 2 + 1] = S, y += S + b;
14140
14157
  }
14141
14158
  const w = Td(r, x, l);
14142
14159
  return this.measurementsCache = w, w;
@@ -14154,18 +14171,18 @@ class zd {
14154
14171
  const A = c === "estimate" || h.has(C);
14155
14172
  if (x !== void 0 && this.options.lanes > 1) {
14156
14173
  y = x;
14157
- const S = m[y], V = S !== void 0 ? g[S] : void 0;
14174
+ const I = m[y], V = I !== void 0 ? g[I] : void 0;
14158
14175
  w = V ? V.end + this.options.gap : a + o;
14159
14176
  } else {
14160
- const S = this.options.lanes === 1 ? g[b - 1] : this.getFurthestMeasurement(g, b);
14161
- w = S ? S.end + this.options.gap : a + o, y = S ? S.lane : b % this.options.lanes, this.options.lanes > 1 && A && this.laneAssignments.set(b, y);
14177
+ const I = this.options.lanes === 1 ? g[b - 1] : this.getFurthestMeasurement(g, b);
14178
+ w = I ? I.end + this.options.gap : a + o, y = I ? I.lane : b % this.options.lanes, this.options.lanes > 1 && A && this.laneAssignments.set(b, y);
14162
14179
  }
14163
- const k = h.get(C), I = typeof k == "number" ? k : this.options.estimateSize(b), B = w + I;
14180
+ const k = h.get(C), B = typeof k == "number" ? k : this.options.estimateSize(b), S = w + B;
14164
14181
  g[b] = {
14165
14182
  index: b,
14166
14183
  start: w,
14167
- size: I,
14168
- end: B,
14184
+ size: B,
14185
+ end: S,
14169
14186
  key: C,
14170
14187
  lane: y
14171
14188
  }, m[y] = b;
@@ -14700,8 +14717,8 @@ const S5 = {
14700
14717
  onShowSizeChange: c
14701
14718
  }) => {
14702
14719
  const d = t > 0 ? t : 10, h = Math.max(1, Math.ceil(r / d)), p = Math.min(Math.max(1, e), h), [g, m] = Q(""), b = (k) => {
14703
- const I = Math.min(Math.max(1, k), h);
14704
- I !== p && (i == null || i(I, d));
14720
+ const B = Math.min(Math.max(1, k), h);
14721
+ B !== p && (i == null || i(B, d));
14705
14722
  }, C = r === 0 ? 0 : (p - 1) * d + 1, x = Math.min(p * d, r), y = l ? l(r, [C, x]) : `Total ${r.toLocaleString("en-US")} items`, w = () => {
14706
14723
  const k = parseInt(g, 10);
14707
14724
  Number.isNaN(k) || (b(k), m(""));
@@ -14737,7 +14754,7 @@ const S5 = {
14737
14754
  }
14738
14755
  ),
14739
14756
  A.map(
14740
- (k, I) => k === "ellipsis" ? /* @__PURE__ */ n("span", { style: _d, "aria-hidden": "true", children: "•••" }, `e-${I}`) : /* @__PURE__ */ n(
14757
+ (k, B) => k === "ellipsis" ? /* @__PURE__ */ n("span", { style: _d, "aria-hidden": "true", children: "•••" }, `e-${B}`) : /* @__PURE__ */ n(
14741
14758
  "button",
14742
14759
  {
14743
14760
  type: "button",
@@ -14768,8 +14785,8 @@ const S5 = {
14768
14785
  "aria-label": "Page size",
14769
14786
  value: String(t),
14770
14787
  onChange: (k) => {
14771
- const I = parseInt(k.target.value, 10);
14772
- Number.isNaN(I) || (c == null || c(p, I), i == null || i(p, I));
14788
+ const B = parseInt(k.target.value, 10);
14789
+ Number.isNaN(B) || (c == null || c(p, B), i == null || i(p, B));
14773
14790
  },
14774
14791
  style: eh,
14775
14792
  children: s.map((k) => /* @__PURE__ */ v("option", { value: k, children: [
@@ -14878,26 +14895,26 @@ const S5 = {
14878
14895
  if (!A || !r)
14879
14896
  return;
14880
14897
  const k = () => {
14881
- const S = A.getBoundingClientRect().top - r.getBoundingClientRect().top + r.scrollTop;
14882
- p((V) => Math.abs(V - S) < 1 ? V : S);
14898
+ const I = A.getBoundingClientRect().top - r.getBoundingClientRect().top + r.scrollTop;
14899
+ p((V) => Math.abs(V - I) < 1 ? V : I);
14883
14900
  };
14884
14901
  if (k(), typeof ResizeObserver > "u")
14885
14902
  return;
14886
- const I = new ResizeObserver(k);
14887
- let B = A;
14888
- for (; B && B !== r; ) {
14889
- let S = B.previousElementSibling;
14890
- for (; S; )
14891
- I.observe(S), S = S.previousElementSibling;
14892
- const V = B.parentElement;
14903
+ const B = new ResizeObserver(k);
14904
+ let S = A;
14905
+ for (; S && S !== r; ) {
14906
+ let I = S.previousElementSibling;
14907
+ for (; I; )
14908
+ B.observe(I), I = I.previousElementSibling;
14909
+ const V = S.parentElement;
14893
14910
  if (V)
14894
- B = V;
14911
+ S = V;
14895
14912
  else {
14896
- const L = B.getRootNode();
14897
- B = L instanceof ShadowRoot ? L.host : null;
14913
+ const L = S.getRootNode();
14914
+ S = L instanceof ShadowRoot ? L.host : null;
14898
14915
  }
14899
14916
  }
14900
- return () => I.disconnect();
14917
+ return () => B.disconnect();
14901
14918
  }, [r, e.length, t]);
14902
14919
  const g = Xd({
14903
14920
  count: e.length,
@@ -15127,9 +15144,9 @@ const S5 = {
15127
15144
  onRow: w,
15128
15145
  onClickRow: A,
15129
15146
  selectedRowKey: k,
15130
- scrollSelectedIntoView: I = !0,
15131
- rowSelection: B,
15132
- pagination: S,
15147
+ scrollSelectedIntoView: B = !0,
15148
+ rowSelection: S,
15149
+ pagination: I,
15133
15150
  className: V = "",
15134
15151
  style: L,
15135
15152
  stickyHeaderTop: N,
@@ -15221,7 +15238,7 @@ const S5 = {
15221
15238
  E1.current = void 0;
15222
15239
  return;
15223
15240
  }
15224
- if (!I || Re < 0)
15241
+ if (!B || Re < 0)
15225
15242
  return;
15226
15243
  const M = E1.current;
15227
15244
  if (M && M.key === k && M.index === Re || r || a || _ && !me)
@@ -15268,7 +15285,7 @@ const S5 = {
15268
15285
  r,
15269
15286
  a,
15270
15287
  G,
15271
- I
15288
+ B
15272
15289
  ]);
15273
15290
  const i1 = R(null), r1 = (M, Z) => {
15274
15291
  i1.current = M, P(Math.min(Math.max(0, Z), Be.length - 1));
@@ -15475,7 +15492,7 @@ const S5 = {
15475
15492
  ...p && Ee ? {
15476
15493
  maxHeight: bh(
15477
15494
  p,
15478
- !!S
15495
+ !!I
15479
15496
  )
15480
15497
  } : {}
15481
15498
  },
@@ -15483,7 +15500,7 @@ const S5 = {
15483
15500
  /* @__PURE__ */ n("div", { className: "text-[var(--malachite-text-secondary)] text-[14px] font-medium mb-1", children: o }),
15484
15501
  /* @__PURE__ */ n("div", { className: "text-[var(--malachite-text-secondary)] text-[13px]", children: l })
15485
15502
  ] }) }) : r ? /* @__PURE__ */ n("div", { className: "flex flex-col w-full", style: oe, children: (() => {
15486
- const z = S != null && S.pageSize ? Math.min(S.pageSize, 10) : 5;
15503
+ const z = I != null && I.pageSize ? Math.min(I.pageSize, 10) : 5;
15487
15504
  return Array.from({ length: z }).map(
15488
15505
  ($, ne) => Te(ne, ne === z - 1)
15489
15506
  );
@@ -15550,18 +15567,18 @@ const S5 = {
15550
15567
  ]
15551
15568
  }
15552
15569
  ),
15553
- S && !r && /* @__PURE__ */ n(
15570
+ I && !r && /* @__PURE__ */ n(
15554
15571
  a2,
15555
15572
  {
15556
- current: S.current ?? 1,
15557
- pageSize: S.pageSize ?? 10,
15558
- total: S.total ?? 0,
15559
- showSizeChanger: S.showSizeChanger,
15560
- showQuickJumper: S.showQuickJumper,
15561
- showTotal: S.showTotal,
15562
- pageSizeOptions: S.pageSizeOptions,
15563
- onChange: S.onChange,
15564
- onShowSizeChange: S.onShowSizeChange
15573
+ current: I.current ?? 1,
15574
+ pageSize: I.pageSize ?? 10,
15575
+ total: I.total ?? 0,
15576
+ showSizeChanger: I.showSizeChanger,
15577
+ showQuickJumper: I.showQuickJumper,
15578
+ showTotal: I.showTotal,
15579
+ pageSizeOptions: I.pageSizeOptions,
15580
+ onChange: I.onChange,
15581
+ onShowSizeChange: I.onShowSizeChange
15565
15582
  }
15566
15583
  )
15567
15584
  ]
@@ -15647,7 +15664,7 @@ const S5 = {
15647
15664
  /* @__PURE__ */ n("tbody", { children: /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n(
15648
15665
  "td",
15649
15666
  {
15650
- colSpan: e.length + (B ? 1 : 0),
15667
+ colSpan: e.length + (S ? 1 : 0),
15651
15668
  className: "px-4 py-12 text-center",
15652
15669
  children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center", children: [
15653
15670
  /* @__PURE__ */ n("div", { className: "table-error-icon w-12 h-12 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ n(ae.WarningTriangleIcon, { size: 24 }) }),
@@ -15702,7 +15719,7 @@ const S5 = {
15702
15719
  )) : Be.length === 0 ? /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n(
15703
15720
  "td",
15704
15721
  {
15705
- colSpan: e.length + (B ? 1 : 0),
15722
+ colSpan: e.length + (S ? 1 : 0),
15706
15723
  className: "px-4 py-12 text-center",
15707
15724
  children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center", children: [
15708
15725
  /* @__PURE__ */ n("div", { className: "text-[var(--malachite-text-secondary)] text-[14px] font-medium", children: s }),
@@ -15783,18 +15800,18 @@ const S5 = {
15783
15800
  )
15784
15801
  }
15785
15802
  ),
15786
- S && !r && /* @__PURE__ */ n(
15803
+ I && !r && /* @__PURE__ */ n(
15787
15804
  a2,
15788
15805
  {
15789
- current: S.current ?? 1,
15790
- pageSize: S.pageSize ?? 10,
15791
- total: S.total ?? 0,
15792
- showSizeChanger: S.showSizeChanger,
15793
- showQuickJumper: S.showQuickJumper,
15794
- showTotal: S.showTotal,
15795
- pageSizeOptions: S.pageSizeOptions,
15796
- onChange: S.onChange,
15797
- onShowSizeChange: S.onShowSizeChange
15806
+ current: I.current ?? 1,
15807
+ pageSize: I.pageSize ?? 10,
15808
+ total: I.total ?? 0,
15809
+ showSizeChanger: I.showSizeChanger,
15810
+ showQuickJumper: I.showQuickJumper,
15811
+ showTotal: I.showTotal,
15812
+ pageSizeOptions: I.pageSizeOptions,
15813
+ onChange: I.onChange,
15814
+ onShowSizeChange: I.onShowSizeChange
15798
15815
  }
15799
15816
  )
15800
15817
  ]
@@ -15892,17 +15909,17 @@ const S5 = {
15892
15909
  const C = h.current;
15893
15910
  if (!C)
15894
15911
  return;
15895
- const x = C.getBoundingClientRect(), y = ((L = p.current) == null ? void 0 : L.offsetWidth) || a, w = ((N = p.current) == null ? void 0 : N.offsetHeight) || 0, A = 8, k = x.right - y, I = window.innerWidth - y - A, B = Math.max(A, Math.min(k, I)), S = window.innerHeight - x.bottom, V = w > 0 && S < w + A ? x.top - w - 4 : x.bottom + 4;
15896
- d({ top: V, left: B });
15912
+ const x = C.getBoundingClientRect(), y = ((L = p.current) == null ? void 0 : L.offsetWidth) || a, w = ((N = p.current) == null ? void 0 : N.offsetHeight) || 0, A = 8, k = x.right - y, B = window.innerWidth - y - A, S = Math.max(A, Math.min(k, B)), I = window.innerHeight - x.bottom, V = w > 0 && I < w + A ? x.top - w - 4 : x.bottom + 4;
15913
+ d({ top: V, left: S });
15897
15914
  }, [a]);
15898
15915
  pe(() => {
15899
15916
  if (!s)
15900
15917
  return;
15901
15918
  g();
15902
15919
  const C = () => g(), x = (w) => {
15903
- var k, I;
15920
+ var k, B;
15904
15921
  const A = w.target;
15905
- !((k = h.current) != null && k.contains(A)) && !((I = p.current) != null && I.contains(A)) && i(!1);
15922
+ !((k = h.current) != null && k.contains(A)) && !((B = p.current) != null && B.contains(A)) && i(!1);
15906
15923
  }, y = $t(() => i(!1));
15907
15924
  return window.addEventListener("scroll", C, !0), window.addEventListener("resize", C), document.addEventListener("mousedown", x, !0), () => {
15908
15925
  window.removeEventListener("scroll", C, !0), window.removeEventListener("resize", C), document.removeEventListener("mousedown", x, !0), y();
@@ -16132,7 +16149,7 @@ const S5 = {
16132
16149
  className: p = "",
16133
16150
  id: g
16134
16151
  }, m) => {
16135
- const { track: b, height: C, knob: x } = Mh[a], y = e ? b - x - pa : pa, w = s ?? (i ? "pill" : void 0), A = l1(), k = !!l, I = k && !d ? A : void 0, B = d || I, S = {
16152
+ const { track: b, height: C, knob: x } = Mh[a], y = e ? b - x - pa : pa, w = s ?? (i ? "pill" : void 0), A = l1(), k = !!l, B = k && !d ? A : void 0, S = d || B, I = {
16136
16153
  position: "relative",
16137
16154
  display: "inline-block",
16138
16155
  flexShrink: 0,
@@ -16169,14 +16186,14 @@ const S5 = {
16169
16186
  id: g,
16170
16187
  "aria-checked": e,
16171
16188
  "aria-label": c,
16172
- "aria-labelledby": B,
16189
+ "aria-labelledby": S,
16173
16190
  "aria-describedby": h,
16174
16191
  disabled: r,
16175
16192
  onClick: () => t(!e),
16176
- icon: /* @__PURE__ */ n("span", { style: S, children: V }),
16193
+ icon: /* @__PURE__ */ n("span", { style: I, children: V }),
16177
16194
  iconPosition: "end",
16178
16195
  className: `whitespace-nowrap select-none ${p}`.trim(),
16179
- children: k && /* @__PURE__ */ n("span", { id: I, children: l })
16196
+ children: k && /* @__PURE__ */ n("span", { id: B, children: l })
16180
16197
  }
16181
16198
  );
16182
16199
  const L = !k && !w, N = /* @__PURE__ */ n(
@@ -16188,13 +16205,13 @@ const S5 = {
16188
16205
  id: g,
16189
16206
  "aria-checked": e,
16190
16207
  "aria-label": c,
16191
- "aria-labelledby": B,
16208
+ "aria-labelledby": S,
16192
16209
  "aria-describedby": h,
16193
16210
  disabled: r,
16194
16211
  onClick: () => t(!e),
16195
16212
  className: `${e1} ${k || w ? "" : p}`.trim(),
16196
16213
  style: {
16197
- ...S,
16214
+ ...I,
16198
16215
  padding: 0,
16199
16216
  border: "none",
16200
16217
  cursor: r ? "not-allowed" : "pointer",
@@ -16207,7 +16224,7 @@ const S5 = {
16207
16224
  return N;
16208
16225
  const T = `${Fh}${w === "pill" ? ` ${Th[a]} ${Rh}` : ""} ${p}`.trim();
16209
16226
  return /* @__PURE__ */ v("span", { ref: m, className: T, children: [
16210
- k && /* @__PURE__ */ n("span", { id: I, children: l }),
16227
+ k && /* @__PURE__ */ n("span", { id: B, children: l }),
16211
16228
  N
16212
16229
  ] });
16213
16230
  }
@@ -16421,16 +16438,16 @@ const Xh = () => {
16421
16438
  N !== void 0 && Math.abs(N - C) < 1 || (N !== void 0 && (C = N), w());
16422
16439
  }, k = g ? new ResizeObserver(A) : null;
16423
16440
  k == null || k.observe(h);
16424
- const I = g ? new ResizeObserver(w) : null;
16425
- c2(I, h);
16426
- const B = m ? new MutationObserver(() => {
16427
- c2(I, h), w();
16441
+ const B = g ? new ResizeObserver(w) : null;
16442
+ c2(B, h);
16443
+ const S = m ? new MutationObserver(() => {
16444
+ c2(B, h), w();
16428
16445
  }) : null;
16429
- B == null || B.observe(h, { childList: !0 });
16430
- const S = () => w();
16431
- return window.addEventListener("resize", S), typeof document < "u" && ((V = document.fonts) != null && V.ready) && document.fonts.ready.then(w).catch(() => {
16446
+ S == null || S.observe(h, { childList: !0 });
16447
+ const I = () => w();
16448
+ return window.addEventListener("resize", I), typeof document < "u" && ((V = document.fonts) != null && V.ready) && document.fonts.ready.then(w).catch(() => {
16432
16449
  }), () => {
16433
- b = !0, Fr.delete(y), window.removeEventListener("resize", S), k == null || k.disconnect(), I == null || I.disconnect(), B == null || B.disconnect();
16450
+ b = !0, Fr.delete(y), window.removeEventListener("resize", I), k == null || k.disconnect(), B == null || B.disconnect(), S == null || S.disconnect();
16434
16451
  };
16435
16452
  }, [t, r, a]);
16436
16453
  const d = {
@@ -16948,7 +16965,7 @@ const Xh = () => {
16948
16965
  className: y = "",
16949
16966
  style: w
16950
16967
  }) => {
16951
- const A = Q2(e), k = p ? 0 : h ? "5vh 14vw" : "40px", I = p ? "0px" : h ? "14vw" : "40px", B = !!(c || a || l || s || i.length > 0), S = l ? c ? /* @__PURE__ */ n(ga.Input, { width: 120, height: 24 }) : /* @__PURE__ */ n(Xe, { color: "secondary", size: "small", children: l }) : null, V = c ? /* @__PURE__ */ n(ga.Input, { width: 200, height: 40 }) : a ? /* @__PURE__ */ v("div", { className: "flex items-center", style: { gap: 12 }, children: [
16968
+ const A = Q2(e), k = p ? 0 : h ? "5vh 14vw" : "40px", B = p ? "0px" : h ? "14vw" : "40px", S = !!(c || a || l || s || i.length > 0), I = l ? c ? /* @__PURE__ */ n(ga.Input, { width: 120, height: 24 }) : /* @__PURE__ */ n(Xe, { color: "secondary", size: "small", children: l }) : null, V = c ? /* @__PURE__ */ n(ga.Input, { width: 200, height: 40 }) : a ? /* @__PURE__ */ v("div", { className: "flex items-center", style: { gap: 12 }, children: [
16952
16969
  /* @__PURE__ */ n(a5, { children: a }),
16953
16970
  o
16954
16971
  ] }) : null, L = s ? c ? /* @__PURE__ */ n(ga.Input, { width: 120, height: 24 }) : /* @__PURE__ */ n(Xe, { color: "secondary", style: { lineHeight: 1.6 }, children: s }) : null;
@@ -16991,11 +17008,11 @@ const Xh = () => {
16991
17008
  padding: k,
16992
17009
  minHeight: J2,
16993
17010
  gap: xu[g],
16994
- [X2]: I
17011
+ [X2]: B
16995
17012
  },
16996
17013
  children: [
16997
- B ? /* @__PURE__ */ v("div", { className: "flex flex-col", style: { gap: 12 }, children: [
16998
- V || S || i.length > 0 ? /* @__PURE__ */ v(
17014
+ S ? /* @__PURE__ */ v("div", { className: "flex flex-col", style: { gap: 12 }, children: [
17015
+ V || I || i.length > 0 ? /* @__PURE__ */ v(
16999
17016
  "div",
17000
17017
  {
17001
17018
  className: "flex flex-wrap items-center justify-between",
@@ -17007,7 +17024,7 @@ const Xh = () => {
17007
17024
  className: "flex flex-col flex-auto min-w-0 overflow-hidden",
17008
17025
  style: { gap: 4 },
17009
17026
  children: [
17010
- S,
17027
+ I,
17011
17028
  V
17012
17029
  ]
17013
17030
  }
@@ -17068,11 +17085,11 @@ const Ru = () => /* @__PURE__ */ n(
17068
17085
  }), Qe(() => {
17069
17086
  if (!e)
17070
17087
  return;
17071
- const w = () => x.current(), A = (I) => {
17072
- if (I.button !== 0)
17088
+ const w = () => x.current(), A = (B) => {
17089
+ if (B.button !== 0)
17073
17090
  return;
17074
- const B = I.composedPath(), S = d.current, V = l == null ? void 0 : l.current;
17075
- S && B.includes(S) || V && B.includes(V) || w();
17091
+ const S = B.composedPath(), I = d.current, V = l == null ? void 0 : l.current;
17092
+ I && S.includes(I) || V && S.includes(V) || w();
17076
17093
  };
17077
17094
  ot == null || ot(), ot = w;
17078
17095
  const k = $t(w);
@@ -17087,17 +17104,17 @@ const Ru = () => /* @__PURE__ */ n(
17087
17104
  let w = 0;
17088
17105
  const A = () => {
17089
17106
  var T, U;
17090
- const k = l.current, I = k == null ? void 0 : k.getBoundingClientRect();
17091
- if (!I || Vu(I, window.innerWidth, window.innerHeight)) {
17107
+ const k = l.current, B = k == null ? void 0 : k.getBoundingClientRect();
17108
+ if (!B || Vu(B, window.innerWidth, window.innerHeight)) {
17092
17109
  x.current();
17093
17110
  return;
17094
17111
  }
17095
- const B = ((T = d.current) == null ? void 0 : T.offsetWidth) ?? 0, S = ((U = d.current) == null ? void 0 : U.offsetHeight) ?? 0, { clientWidth: V, clientHeight: L } = document.documentElement, N = Mu(I, B, S, V, L);
17112
+ const S = ((T = d.current) == null ? void 0 : T.offsetWidth) ?? 0, I = ((U = d.current) == null ? void 0 : U.offsetHeight) ?? 0, { clientWidth: V, clientHeight: L } = document.documentElement, N = Mu(B, S, I, V, L);
17096
17113
  N !== C.current && (C.current = N, b(
17097
17114
  Nu({
17098
- anchorRect: I,
17099
- chipWidth: B,
17100
- chipHeight: S,
17115
+ anchorRect: B,
17116
+ chipWidth: S,
17117
+ chipHeight: I,
17101
17118
  viewportWidth: V,
17102
17119
  viewportHeight: L
17103
17120
  })
@@ -17108,8 +17125,8 @@ const Ru = () => /* @__PURE__ */ n(
17108
17125
  var w;
17109
17126
  if (e)
17110
17127
  return p.current = qt(), (w = h.current) == null || w.focus(), () => {
17111
- const A = p.current, k = d.current, I = qt();
17112
- p.current = null, !(!(A != null && A.isConnected) || I && k && !k.contains(I)) && A.focus({ preventScroll: !0 });
17128
+ const A = p.current, k = d.current, B = qt();
17129
+ p.current = null, !(!(A != null && A.isConnected) || B && k && !k.contains(B)) && A.focus({ preventScroll: !0 });
17113
17130
  };
17114
17131
  }, [e]), !e)
17115
17132
  return null;
@@ -17471,4 +17488,4 @@ export {
17471
17488
  sp as y,
17472
17489
  P0 as z
17473
17490
  };
17474
- //# sourceMappingURL=index-B6NoJxaz.js.map
17491
+ //# sourceMappingURL=index-CUPTnbPi.js.map