chordia-ui 3.3.2 → 3.3.3

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.
Files changed (33) hide show
  1. package/README.md +4 -0
  2. package/dist/SmallButton.cjs.js +1 -1
  3. package/dist/SmallButton.cjs.js.map +1 -1
  4. package/dist/SmallButton.es.js +170 -162
  5. package/dist/SmallButton.es.js.map +1 -1
  6. package/dist/components/chat.cjs.js +8 -8
  7. package/dist/components/chat.cjs.js.map +1 -1
  8. package/dist/components/chat.es.js +329 -335
  9. package/dist/components/chat.es.js.map +1 -1
  10. package/dist/components/data.cjs.js +1 -1
  11. package/dist/components/data.cjs.js.map +1 -1
  12. package/dist/components/data.es.js +83 -80
  13. package/dist/components/data.es.js.map +1 -1
  14. package/dist/components/layout.cjs.js +1 -1
  15. package/dist/components/layout.cjs.js.map +1 -1
  16. package/dist/components/layout.es.js +3 -1
  17. package/dist/components/layout.es.js.map +1 -1
  18. package/dist/index.cjs2.js +1 -1
  19. package/dist/index.cjs2.js.map +1 -1
  20. package/dist/index.es2.js +4 -4
  21. package/dist/index.es2.js.map +1 -1
  22. package/dist/pages/interactionDetails.cjs.js +2 -2
  23. package/dist/pages/interactionDetails.cjs.js.map +1 -1
  24. package/dist/pages/interactionDetails.es.js +117 -123
  25. package/dist/pages/interactionDetails.es.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/components/chat/ChatHistoryPanel.jsx +3 -3
  28. package/src/components/chat/ChatInterface.jsx +14 -14
  29. package/src/components/common/MessageThread.jsx +19 -19
  30. package/src/components/data/DataTable.jsx +18 -15
  31. package/src/components/layout/SplitPane.jsx +2 -0
  32. package/src/components/login/LoginPage.jsx +4 -4
  33. package/src/components/primitives/SmallButton.jsx +14 -6
@@ -1,4 +1,4 @@
1
- import { jsx as b, Fragment as pn, jsxs as H } from "react/jsx-runtime";
1
+ import { jsx as b, Fragment as pn, jsxs as B } from "react/jsx-runtime";
2
2
  import * as f from "react";
3
3
  import { useLayoutEffect as mn } from "react";
4
4
  import "lucide-react";
@@ -173,7 +173,7 @@ function Ee(e) {
173
173
  return (o = t.current) == null ? void 0 : o.call(t, ...n);
174
174
  }, []);
175
175
  }
176
- function Pn(e, t = globalThis == null ? void 0 : globalThis.document) {
176
+ function Sn(e, t = globalThis == null ? void 0 : globalThis.document) {
177
177
  const n = Ee(e);
178
178
  f.useEffect(() => {
179
179
  const o = (r) => {
@@ -182,7 +182,7 @@ function Pn(e, t = globalThis == null ? void 0 : globalThis.document) {
182
182
  return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
183
183
  }, [n, t]);
184
184
  }
185
- var Sn = "DismissableLayer", Me = "dismissableLayer.update", An = "dismissableLayer.pointerDownOutside", Tn = "dismissableLayer.focusOutside", rt, bt = f.createContext({
185
+ var Pn = "DismissableLayer", Me = "dismissableLayer.update", An = "dismissableLayer.pointerDownOutside", Tn = "dismissableLayer.focusOutside", rt, bt = f.createContext({
186
186
  layers: /* @__PURE__ */ new Set(),
187
187
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
188
188
  branches: /* @__PURE__ */ new Set()
@@ -196,14 +196,14 @@ var Sn = "DismissableLayer", Me = "dismissableLayer.update", An = "dismissableLa
196
196
  onInteractOutside: s,
197
197
  onDismiss: c,
198
198
  ...a
199
- } = e, l = f.useContext(bt), [u, d] = f.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = f.useState({}), h = oe(t, (E) => d(E)), g = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(v), w = u ? g.indexOf(u) : -1, C = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, P = Ln((E) => {
199
+ } = e, l = f.useContext(bt), [u, d] = f.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = f.useState({}), h = oe(t, (E) => d(E)), g = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(v), w = u ? g.indexOf(u) : -1, C = l.layersWithOutsidePointerEventsDisabled.size > 0, x = w >= y, S = Ln((E) => {
200
200
  const A = E.target, M = [...l.branches].some((T) => T.contains(A));
201
201
  !x || M || (r == null || r(E), s == null || s(E), E.defaultPrevented || c == null || c());
202
202
  }, m), R = Nn((E) => {
203
203
  const A = E.target;
204
204
  [...l.branches].some((T) => T.contains(A)) || (i == null || i(E), s == null || s(E), E.defaultPrevented || c == null || c());
205
205
  }, m);
206
- return Pn((E) => {
206
+ return Sn((E) => {
207
207
  w === l.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && c && (E.preventDefault(), c()));
208
208
  }, m), f.useEffect(() => {
209
209
  if (u)
@@ -228,13 +228,13 @@ var Sn = "DismissableLayer", Me = "dismissableLayer.update", An = "dismissableLa
228
228
  onBlurCapture: X(e.onBlurCapture, R.onBlurCapture),
229
229
  onPointerDownCapture: X(
230
230
  e.onPointerDownCapture,
231
- P.onPointerDownCapture
231
+ S.onPointerDownCapture
232
232
  )
233
233
  }
234
234
  );
235
235
  }
236
236
  );
237
- Ct.displayName = Sn;
237
+ Ct.displayName = Pn;
238
238
  var On = "DismissableLayerBranch", Dn = f.forwardRef((e, t) => {
239
239
  const n = f.useContext(bt), o = f.useRef(null), r = oe(t, o);
240
240
  return f.useEffect(() => {
@@ -307,17 +307,17 @@ function kn(e) {
307
307
  e || n((o) => o ?? String(_n++));
308
308
  }, [e]), e || (t ? `radix-${t}` : "");
309
309
  }
310
- const $n = ["top", "right", "bottom", "left"], J = Math.min, W = Math.max, xe = Math.round, ge = Math.floor, U = (e) => ({
310
+ const $n = ["top", "right", "bottom", "left"], J = Math.min, I = Math.max, xe = Math.round, ge = Math.floor, U = (e) => ({
311
311
  x: e,
312
312
  y: e
313
- }), In = {
313
+ }), Wn = {
314
314
  left: "right",
315
315
  right: "left",
316
316
  bottom: "top",
317
317
  top: "bottom"
318
318
  };
319
319
  function _e(e, t, n) {
320
- return W(e, J(t, n));
320
+ return I(e, J(t, n));
321
321
  }
322
322
  function G(e, t) {
323
323
  return typeof e == "function" ? e(t) : e;
@@ -331,19 +331,19 @@ function ce(e) {
331
331
  function Fe(e) {
332
332
  return e === "x" ? "y" : "x";
333
333
  }
334
- function He(e) {
334
+ function Be(e) {
335
335
  return e === "y" ? "height" : "width";
336
336
  }
337
337
  function j(e) {
338
338
  const t = e[0];
339
339
  return t === "t" || t === "b" ? "y" : "x";
340
340
  }
341
- function Be(e) {
341
+ function He(e) {
342
342
  return Fe(j(e));
343
343
  }
344
- function Wn(e, t, n) {
344
+ function In(e, t, n) {
345
345
  n === void 0 && (n = !1);
346
- const o = ce(e), r = Be(e), i = He(r);
346
+ const o = ce(e), r = He(e), i = Be(r);
347
347
  let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
348
348
  return t.reference[i] > t.floating[i] && (s = we(s)), [s, we(s)];
349
349
  }
@@ -354,7 +354,7 @@ function Fn(e) {
354
354
  function ke(e) {
355
355
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
356
356
  }
357
- const st = ["left", "right"], ct = ["right", "left"], Hn = ["top", "bottom"], Bn = ["bottom", "top"];
357
+ const st = ["left", "right"], ct = ["right", "left"], Bn = ["top", "bottom"], Hn = ["bottom", "top"];
358
358
  function zn(e, t, n) {
359
359
  switch (e) {
360
360
  case "top":
@@ -362,7 +362,7 @@ function zn(e, t, n) {
362
362
  return n ? t ? ct : st : t ? st : ct;
363
363
  case "left":
364
364
  case "right":
365
- return t ? Hn : Bn;
365
+ return t ? Bn : Hn;
366
366
  default:
367
367
  return [];
368
368
  }
@@ -374,7 +374,7 @@ function Vn(e, t, n, o) {
374
374
  }
375
375
  function we(e) {
376
376
  const t = q(e);
377
- return In[t] + e.slice(t.length);
377
+ return Wn[t] + e.slice(t.length);
378
378
  }
379
379
  function jn(e) {
380
380
  return {
@@ -416,7 +416,7 @@ function at(e, t, n) {
416
416
  reference: o,
417
417
  floating: r
418
418
  } = e;
419
- const i = j(t), s = Be(t), c = He(s), a = q(t), l = i === "y", u = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, m = o[c] / 2 - r[c] / 2;
419
+ const i = j(t), s = He(t), c = Be(s), a = q(t), l = i === "y", u = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, m = o[c] / 2 - r[c] / 2;
420
420
  let p;
421
421
  switch (a) {
422
422
  case "top":
@@ -491,17 +491,17 @@ async function Un(e, t) {
491
491
  } : {
492
492
  x: 1,
493
493
  y: 1
494
- }, P = be(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
494
+ }, S = be(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
495
495
  elements: c,
496
496
  rect: w,
497
497
  offsetParent: C,
498
498
  strategy: a
499
499
  }) : w);
500
500
  return {
501
- top: (y.top - P.top + h.top) / x.y,
502
- bottom: (P.bottom - y.bottom + h.bottom) / x.y,
503
- left: (y.left - P.left + h.left) / x.x,
504
- right: (P.right - y.right + h.right) / x.x
501
+ top: (y.top - S.top + h.top) / x.y,
502
+ bottom: (S.bottom - y.bottom + h.bottom) / x.y,
503
+ left: (y.left - S.left + h.left) / x.x,
504
+ right: (S.right - y.right + h.right) / x.x
505
505
  };
506
506
  }
507
507
  const Yn = 50, Xn = async (e, t, n) => {
@@ -533,7 +533,7 @@ const Yn = 50, Xn = async (e, t, n) => {
533
533
  } = v, {
534
534
  x: C,
535
535
  y: x,
536
- data: P,
536
+ data: S,
537
537
  reset: R
538
538
  } = await w({
539
539
  x: u,
@@ -551,7 +551,7 @@ const Yn = 50, Xn = async (e, t, n) => {
551
551
  });
552
552
  u = C ?? u, d = x ?? d, h[y] = {
553
553
  ...h[y],
554
- ...P
554
+ ...S
555
555
  }, R && p < Yn && (p++, typeof R == "object" && (R.placement && (m = R.placement), R.rects && (l = R.rects === !0 ? await s.getElementRects({
556
556
  reference: e,
557
557
  floating: t,
@@ -589,15 +589,15 @@ const Yn = 50, Xn = async (e, t, n) => {
589
589
  const d = Rt(u), m = {
590
590
  x: n,
591
591
  y: o
592
- }, p = Be(r), h = He(p), g = await s.getDimensions(l), v = p === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", C = v ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[p] - m[p] - i.floating[h], P = m[p] - i.reference[p], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
592
+ }, p = He(r), h = Be(p), g = await s.getDimensions(l), v = p === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", C = v ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[p] - m[p] - i.floating[h], S = m[p] - i.reference[p], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
593
593
  let E = R ? R[C] : 0;
594
594
  (!E || !await (s.isElement == null ? void 0 : s.isElement(R))) && (E = c.floating[C] || i.floating[h]);
595
- const A = x / 2 - P / 2, M = E / 2 - g[h] / 2 - 1, T = J(d[y], M), k = J(d[w], M), $ = T, D = E - g[h] - k, O = E / 2 - g[h] / 2 + A, I = _e($, O, D), L = !a.arrow && ce(r) != null && O !== I && i.reference[h] / 2 - (O < $ ? T : k) - g[h] / 2 < 0, N = L ? O < $ ? O - $ : O - D : 0;
595
+ const A = x / 2 - S / 2, M = E / 2 - g[h] / 2 - 1, T = J(d[y], M), k = J(d[w], M), $ = T, D = E - g[h] - k, O = E / 2 - g[h] / 2 + A, W = _e($, O, D), L = !a.arrow && ce(r) != null && O !== W && i.reference[h] / 2 - (O < $ ? T : k) - g[h] / 2 < 0, N = L ? O < $ ? O - $ : O - D : 0;
596
596
  return {
597
597
  [p]: m[p] + N,
598
598
  data: {
599
- [p]: I,
600
- centerOffset: O - I - N,
599
+ [p]: W,
600
+ centerOffset: O - W - N,
601
601
  ...L && {
602
602
  alignmentOffset: N
603
603
  }
@@ -629,12 +629,12 @@ const Yn = 50, Xn = async (e, t, n) => {
629
629
  } = G(e, t);
630
630
  if ((n = i.arrow) != null && n.alignmentOffset)
631
631
  return {};
632
- const y = q(r), w = j(c), C = q(c) === c, x = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), P = m || (C || !g ? [we(c)] : Fn(c)), R = h !== "none";
633
- !m && R && P.push(...Vn(c, g, h, x));
634
- const E = [c, ...P], A = await a.detectOverflow(t, v), M = [];
632
+ const y = q(r), w = j(c), C = q(c) === c, x = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), S = m || (C || !g ? [we(c)] : Fn(c)), R = h !== "none";
633
+ !m && R && S.push(...Vn(c, g, h, x));
634
+ const E = [c, ...S], A = await a.detectOverflow(t, v), M = [];
635
635
  let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
636
636
  if (u && M.push(A[y]), d) {
637
- const O = Wn(r, s, x);
637
+ const O = In(r, s, x);
638
638
  M.push(A[O[0]], A[O[1]]);
639
639
  }
640
640
  if (T = [...T, {
@@ -642,33 +642,33 @@ const Yn = 50, Xn = async (e, t, n) => {
642
642
  overflows: M
643
643
  }], !M.every((O) => O <= 0)) {
644
644
  var k, $;
645
- const O = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, I = E[O];
646
- if (I && (!(d === "alignment" ? w !== j(I) : !1) || // We leave the current main axis only if every placement on that axis
645
+ const O = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, W = E[O];
646
+ if (W && (!(d === "alignment" ? w !== j(W) : !1) || // We leave the current main axis only if every placement on that axis
647
647
  // overflows the main axis.
648
- T.every((S) => j(S.placement) === w ? S.overflows[0] > 0 : !0)))
648
+ T.every((P) => j(P.placement) === w ? P.overflows[0] > 0 : !0)))
649
649
  return {
650
650
  data: {
651
651
  index: O,
652
652
  overflows: T
653
653
  },
654
654
  reset: {
655
- placement: I
655
+ placement: W
656
656
  }
657
657
  };
658
- let L = ($ = T.filter((N) => N.overflows[0] <= 0).sort((N, S) => N.overflows[1] - S.overflows[1])[0]) == null ? void 0 : $.placement;
658
+ let L = ($ = T.filter((N) => N.overflows[0] <= 0).sort((N, P) => N.overflows[1] - P.overflows[1])[0]) == null ? void 0 : $.placement;
659
659
  if (!L)
660
660
  switch (p) {
661
661
  case "bestFit": {
662
662
  var D;
663
- const N = (D = T.filter((S) => {
663
+ const N = (D = T.filter((P) => {
664
664
  if (R) {
665
- const _ = j(S.placement);
665
+ const _ = j(P.placement);
666
666
  return _ === w || // Create a bias to the `y` side axis due to horizontal
667
667
  // reading directions favoring greater width.
668
668
  _ === "y";
669
669
  }
670
670
  return !0;
671
- }).map((S) => [S.placement, S.overflows.filter((_) => _ > 0).reduce((_, V) => _ + V, 0)]).sort((S, _) => S[1] - _[1])[0]) == null ? void 0 : D[0];
671
+ }).map((P) => [P.placement, P.overflows.filter((_) => _ > 0).reduce((_, V) => _ + V, 0)]).sort((P, _) => P[1] - _[1])[0]) == null ? void 0 : D[0];
672
672
  N && (L = N);
673
673
  break;
674
674
  }
@@ -740,13 +740,13 @@ const Kn = function(e) {
740
740
  }
741
741
  }
742
742
  };
743
- }, Pt = /* @__PURE__ */ new Set(["left", "top"]);
743
+ }, St = /* @__PURE__ */ new Set(["left", "top"]);
744
744
  async function Zn(e, t) {
745
745
  const {
746
746
  placement: n,
747
747
  platform: o,
748
748
  elements: r
749
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = q(n), c = ce(n), a = j(n) === "y", l = Pt.has(s) ? -1 : 1, u = i && a ? -1 : 1, d = G(t, e);
749
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = q(n), c = ce(n), a = j(n) === "y", l = St.has(s) ? -1 : 1, u = i && a ? -1 : 1, d = G(t, e);
750
750
  let {
751
751
  mainAxis: m,
752
752
  crossAxis: p,
@@ -875,13 +875,13 @@ const Jn = function(e) {
875
875
  ...g
876
876
  };
877
877
  if (a) {
878
- const C = m === "y" ? "height" : "width", x = i.reference[m] - i.floating[C] + v.mainAxis, P = i.reference[m] + i.reference[C] - v.mainAxis;
879
- p < x ? p = x : p > P && (p = P);
878
+ const C = m === "y" ? "height" : "width", x = i.reference[m] - i.floating[C] + v.mainAxis, S = i.reference[m] + i.reference[C] - v.mainAxis;
879
+ p < x ? p = x : p > S && (p = S);
880
880
  }
881
881
  if (l) {
882
882
  var y, w;
883
- const C = m === "y" ? "width" : "height", x = Pt.has(q(r)), P = i.reference[d] - i.floating[C] + (x && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : v.crossAxis), R = i.reference[d] + i.reference[C] + (x ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (x ? v.crossAxis : 0);
884
- h < P ? h = P : h > R && (h = R);
883
+ const C = m === "y" ? "width" : "height", x = St.has(q(r)), S = i.reference[d] - i.floating[C] + (x && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : v.crossAxis), R = i.reference[d] + i.reference[C] + (x ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (x ? v.crossAxis : 0);
884
+ h < S ? h = S : h > R && (h = R);
885
885
  }
886
886
  return {
887
887
  [m]: p,
@@ -910,11 +910,11 @@ const Jn = function(e) {
910
910
  } = i.floating;
911
911
  let v, y;
912
912
  d === "top" || d === "bottom" ? (v = d, y = m === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = d, v = m === "end" ? "top" : "bottom");
913
- const w = g - u.top - u.bottom, C = h - u.left - u.right, x = J(g - u[v], w), P = J(h - u[y], C), R = !t.middlewareData.shift;
914
- let E = x, A = P;
913
+ const w = g - u.top - u.bottom, C = h - u.left - u.right, x = J(g - u[v], w), S = J(h - u[y], C), R = !t.middlewareData.shift;
914
+ let E = x, A = S;
915
915
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = C), (o = t.middlewareData.shift) != null && o.enabled.y && (E = w), R && !m) {
916
- const T = W(u.left, 0), k = W(u.right, 0), $ = W(u.top, 0), D = W(u.bottom, 0);
917
- p ? A = h - 2 * (T !== 0 || k !== 0 ? T + k : W(u.left, u.right)) : E = g - 2 * ($ !== 0 || D !== 0 ? $ + D : W(u.top, u.bottom));
916
+ const T = I(u.left, 0), k = I(u.right, 0), $ = I(u.top, 0), D = I(u.bottom, 0);
917
+ p ? A = h - 2 * (T !== 0 || k !== 0 ? T + k : I(u.left, u.right)) : E = g - 2 * ($ !== 0 || D !== 0 ? $ + D : I(u.top, u.bottom));
918
918
  }
919
919
  await a({
920
920
  ...t,
@@ -934,7 +934,7 @@ function Re() {
934
934
  return typeof window < "u";
935
935
  }
936
936
  function ae(e) {
937
- return St(e) ? (e.nodeName || "").toLowerCase() : "#document";
937
+ return Pt(e) ? (e.nodeName || "").toLowerCase() : "#document";
938
938
  }
939
939
  function F(e) {
940
940
  var t;
@@ -942,12 +942,12 @@ function F(e) {
942
942
  }
943
943
  function Y(e) {
944
944
  var t;
945
- return (t = (St(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
945
+ return (t = (Pt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
946
946
  }
947
- function St(e) {
947
+ function Pt(e) {
948
948
  return Re() ? e instanceof Node || e instanceof F(e).Node : !1;
949
949
  }
950
- function B(e) {
950
+ function H(e) {
951
951
  return Re() ? e instanceof Element || e instanceof F(e).Element : !1;
952
952
  }
953
953
  function K(e) {
@@ -968,7 +968,7 @@ function de(e) {
968
968
  function no(e) {
969
969
  return /^(table|td|th)$/.test(ae(e));
970
970
  }
971
- function Pe(e) {
971
+ function Se(e) {
972
972
  try {
973
973
  if (e.matches(":popover-open"))
974
974
  return !0;
@@ -983,7 +983,7 @@ function Pe(e) {
983
983
  const oo = /transform|translate|scale|rotate|perspective|filter/, ro = /paint|layout|strict|content/, te = (e) => !!e && e !== "none";
984
984
  let De;
985
985
  function ze(e) {
986
- const t = B(e) ? z(e) : e;
986
+ const t = H(e) ? z(e) : e;
987
987
  return te(t.transform) || te(t.translate) || te(t.scale) || te(t.rotate) || te(t.perspective) || !Ve() && (te(t.backdropFilter) || te(t.filter)) || oo.test(t.willChange || "") || ro.test(t.contain || "");
988
988
  }
989
989
  function io(e) {
@@ -991,7 +991,7 @@ function io(e) {
991
991
  for (; K(t) && !ie(t); ) {
992
992
  if (ze(t))
993
993
  return t;
994
- if (Pe(t))
994
+ if (Se(t))
995
995
  return null;
996
996
  t = Q(t);
997
997
  }
@@ -1006,8 +1006,8 @@ function ie(e) {
1006
1006
  function z(e) {
1007
1007
  return F(e).getComputedStyle(e);
1008
1008
  }
1009
- function Se(e) {
1010
- return B(e) ? {
1009
+ function Pe(e) {
1010
+ return H(e) ? {
1011
1011
  scrollLeft: e.scrollLeft,
1012
1012
  scrollTop: e.scrollTop
1013
1013
  } : {
@@ -1055,7 +1055,7 @@ function Tt(e) {
1055
1055
  };
1056
1056
  }
1057
1057
  function je(e) {
1058
- return B(e) ? e : e.contextElement;
1058
+ return H(e) ? e : e.contextElement;
1059
1059
  }
1060
1060
  function re(e) {
1061
1061
  const t = je(e);
@@ -1087,11 +1087,11 @@ function ne(e, t, n, o) {
1087
1087
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1088
1088
  const r = e.getBoundingClientRect(), i = je(e);
1089
1089
  let s = U(1);
1090
- t && (o ? B(o) && (s = re(o)) : s = re(e));
1090
+ t && (o ? H(o) && (s = re(o)) : s = re(e));
1091
1091
  const c = co(i, n, o) ? Ot(i) : U(0);
1092
1092
  let a = (r.left + c.x) / s.x, l = (r.top + c.y) / s.y, u = r.width / s.x, d = r.height / s.y;
1093
1093
  if (i) {
1094
- const m = F(i), p = o && B(o) ? F(o) : o;
1094
+ const m = F(i), p = o && H(o) ? F(o) : o;
1095
1095
  let h = m, g = $e(h);
1096
1096
  for (; g && o && p !== h; ) {
1097
1097
  const v = re(g), y = g.getBoundingClientRect(), w = z(g), C = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, x = y.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
@@ -1106,7 +1106,7 @@ function ne(e, t, n, o) {
1106
1106
  });
1107
1107
  }
1108
1108
  function Ae(e, t) {
1109
- const n = Se(e).scrollLeft;
1109
+ const n = Pe(e).scrollLeft;
1110
1110
  return t ? t.left + n : ne(Y(e)).left + n;
1111
1111
  }
1112
1112
  function Dt(e, t) {
@@ -1123,7 +1123,7 @@ function ao(e) {
1123
1123
  offsetParent: o,
1124
1124
  strategy: r
1125
1125
  } = e;
1126
- const i = r === "fixed", s = Y(o), c = t ? Pe(t.floating) : !1;
1126
+ const i = r === "fixed", s = Y(o), c = t ? Se(t.floating) : !1;
1127
1127
  if (o === s || c && i)
1128
1128
  return n;
1129
1129
  let a = {
@@ -1131,7 +1131,7 @@ function ao(e) {
1131
1131
  scrollTop: 0
1132
1132
  }, l = U(1);
1133
1133
  const u = U(0), d = K(o);
1134
- if ((d || !d && !i) && ((ae(o) !== "body" || de(s)) && (a = Se(o)), d)) {
1134
+ if ((d || !d && !i) && ((ae(o) !== "body" || de(s)) && (a = Pe(o)), d)) {
1135
1135
  const p = ne(o);
1136
1136
  l = re(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
1137
1137
  }
@@ -1147,10 +1147,10 @@ function lo(e) {
1147
1147
  return Array.from(e.getClientRects());
1148
1148
  }
1149
1149
  function uo(e) {
1150
- const t = Y(e), n = Se(e), o = e.ownerDocument.body, r = W(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = W(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1150
+ const t = Y(e), n = Pe(e), o = e.ownerDocument.body, r = I(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = I(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
1151
1151
  let s = -n.scrollLeft + Ae(e);
1152
1152
  const c = -n.scrollTop;
1153
- return z(o).direction === "rtl" && (s += W(t.clientWidth, o.clientWidth) - r), {
1153
+ return z(o).direction === "rtl" && (s += I(t.clientWidth, o.clientWidth) - r), {
1154
1154
  width: r,
1155
1155
  height: i,
1156
1156
  x: s,
@@ -1194,7 +1194,7 @@ function pt(e, t, n) {
1194
1194
  o = fo(e, n);
1195
1195
  else if (t === "document")
1196
1196
  o = uo(Y(e));
1197
- else if (B(t))
1197
+ else if (H(t))
1198
1198
  o = po(t, n);
1199
1199
  else {
1200
1200
  const r = Ot(e);
@@ -1209,16 +1209,16 @@ function pt(e, t, n) {
1209
1209
  }
1210
1210
  function Lt(e, t) {
1211
1211
  const n = Q(e);
1212
- return n === t || !B(n) || ie(n) ? !1 : z(n).position === "fixed" || Lt(n, t);
1212
+ return n === t || !H(n) || ie(n) ? !1 : z(n).position === "fixed" || Lt(n, t);
1213
1213
  }
1214
1214
  function mo(e, t) {
1215
1215
  const n = t.get(e);
1216
1216
  if (n)
1217
1217
  return n;
1218
- let o = ue(e, [], !1).filter((c) => B(c) && ae(c) !== "body"), r = null;
1218
+ let o = ue(e, [], !1).filter((c) => H(c) && ae(c) !== "body"), r = null;
1219
1219
  const i = z(e).position === "fixed";
1220
1220
  let s = i ? Q(e) : e;
1221
- for (; B(s) && !ie(s); ) {
1221
+ for (; H(s) && !ie(s); ) {
1222
1222
  const c = z(s), a = ze(s);
1223
1223
  !a && c.position === "fixed" && (r = null), (i ? !a && !r : !a && c.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || de(s) && !a && Lt(e, s)) ? o = o.filter((u) => u !== s) : r = c, s = Q(s);
1224
1224
  }
@@ -1231,11 +1231,11 @@ function ho(e) {
1231
1231
  rootBoundary: o,
1232
1232
  strategy: r
1233
1233
  } = e;
1234
- const s = [...n === "clippingAncestors" ? Pe(t) ? [] : mo(t, this._c) : [].concat(n), o], c = pt(t, s[0], r);
1234
+ const s = [...n === "clippingAncestors" ? Se(t) ? [] : mo(t, this._c) : [].concat(n), o], c = pt(t, s[0], r);
1235
1235
  let a = c.top, l = c.right, u = c.bottom, d = c.left;
1236
1236
  for (let m = 1; m < s.length; m++) {
1237
1237
  const p = pt(t, s[m], r);
1238
- a = W(p.top, a), l = J(p.right, l), u = J(p.bottom, u), d = W(p.left, d);
1238
+ a = I(p.top, a), l = J(p.right, l), u = J(p.bottom, u), d = I(p.left, d);
1239
1239
  }
1240
1240
  return {
1241
1241
  width: l - d,
@@ -1265,7 +1265,7 @@ function vo(e, t, n) {
1265
1265
  a.x = Ae(r);
1266
1266
  }
1267
1267
  if (o || !o && !i)
1268
- if ((ae(t) !== "body" || de(r)) && (c = Se(t)), o) {
1268
+ if ((ae(t) !== "body" || de(r)) && (c = Pe(t)), o) {
1269
1269
  const p = ne(t, !0, i, t);
1270
1270
  a.x = p.x + t.clientLeft, a.y = p.y + t.clientTop;
1271
1271
  } else
@@ -1292,12 +1292,12 @@ function mt(e, t) {
1292
1292
  }
1293
1293
  function Nt(e, t) {
1294
1294
  const n = F(e);
1295
- if (Pe(e))
1295
+ if (Se(e))
1296
1296
  return n;
1297
1297
  if (!K(e)) {
1298
1298
  let r = Q(e);
1299
1299
  for (; r && !ie(r); ) {
1300
- if (B(r) && !Le(r))
1300
+ if (H(r) && !Le(r))
1301
1301
  return r;
1302
1302
  r = Q(r);
1303
1303
  }
@@ -1332,7 +1332,7 @@ const wo = {
1332
1332
  getClientRects: lo,
1333
1333
  getDimensions: go,
1334
1334
  getScale: re,
1335
- isElement: B,
1335
+ isElement: H,
1336
1336
  isRTL: xo
1337
1337
  };
1338
1338
  function Mt(e, t) {
@@ -1357,10 +1357,10 @@ function bo(e, t) {
1357
1357
  return;
1358
1358
  const h = ge(d), g = ge(r.clientWidth - (u + m)), v = ge(r.clientHeight - (d + p)), y = ge(u), C = {
1359
1359
  rootMargin: -h + "px " + -g + "px " + -v + "px " + -y + "px",
1360
- threshold: W(0, J(1, a)) || 1
1360
+ threshold: I(0, J(1, a)) || 1
1361
1361
  };
1362
1362
  let x = !0;
1363
- function P(R) {
1363
+ function S(R) {
1364
1364
  const E = R[0].intersectionRatio;
1365
1365
  if (E !== a) {
1366
1366
  if (!x)
@@ -1372,13 +1372,13 @@ function bo(e, t) {
1372
1372
  E === 1 && !Mt(l, e.getBoundingClientRect()) && s(), x = !1;
1373
1373
  }
1374
1374
  try {
1375
- n = new IntersectionObserver(P, {
1375
+ n = new IntersectionObserver(S, {
1376
1376
  ...C,
1377
1377
  // Handle <iframe>s
1378
1378
  root: r.ownerDocument
1379
1379
  });
1380
1380
  } catch {
1381
- n = new IntersectionObserver(P, C);
1381
+ n = new IntersectionObserver(S, C);
1382
1382
  }
1383
1383
  n.observe(e);
1384
1384
  }
@@ -1420,7 +1420,7 @@ function Co(e, t, n, o) {
1420
1420
  }), d == null || d(), (y = p) == null || y.disconnect(), p = null, a && cancelAnimationFrame(h);
1421
1421
  };
1422
1422
  }
1423
- const Eo = Jn, Ro = Qn, Po = qn, So = to, Ao = Kn, ht = Gn, To = eo, Oo = (e, t, n) => {
1423
+ const Eo = Jn, Ro = Qn, So = qn, Po = to, Ao = Kn, ht = Gn, To = eo, Oo = (e, t, n) => {
1424
1424
  const o = /* @__PURE__ */ new Map(), r = {
1425
1425
  platform: wo,
1426
1426
  ...n
@@ -1502,19 +1502,19 @@ function No(e) {
1502
1502
  isPositioned: !1
1503
1503
  }), [m, p] = f.useState(o);
1504
1504
  Ce(m, o) || p(o);
1505
- const [h, g] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((S) => {
1506
- S !== R.current && (R.current = S, g(S));
1507
- }, []), C = f.useCallback((S) => {
1508
- S !== E.current && (E.current = S, y(S));
1509
- }, []), x = i || h, P = s || v, R = f.useRef(null), E = f.useRef(null), A = f.useRef(u), M = a != null, T = Ne(a), k = Ne(r), $ = Ne(l), D = f.useCallback(() => {
1505
+ const [h, g] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((P) => {
1506
+ P !== R.current && (R.current = P, g(P));
1507
+ }, []), C = f.useCallback((P) => {
1508
+ P !== E.current && (E.current = P, y(P));
1509
+ }, []), x = i || h, S = s || v, R = f.useRef(null), E = f.useRef(null), A = f.useRef(u), M = a != null, T = Ne(a), k = Ne(r), $ = Ne(l), D = f.useCallback(() => {
1510
1510
  if (!R.current || !E.current)
1511
1511
  return;
1512
- const S = {
1512
+ const P = {
1513
1513
  placement: t,
1514
1514
  strategy: n,
1515
1515
  middleware: m
1516
1516
  };
1517
- k.current && (S.platform = k.current), Oo(R.current, E.current, S).then((_) => {
1517
+ k.current && (P.platform = k.current), Oo(R.current, E.current, P).then((_) => {
1518
1518
  const V = {
1519
1519
  ..._,
1520
1520
  // The floating element's position may be recomputed while it's closed
@@ -1529,8 +1529,8 @@ function No(e) {
1529
1529
  });
1530
1530
  }, [m, t, n, k, $]);
1531
1531
  ye(() => {
1532
- l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, d((S) => ({
1533
- ...S,
1532
+ l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, d((P) => ({
1533
+ ...P,
1534
1534
  isPositioned: !1
1535
1535
  })));
1536
1536
  }, [l]);
@@ -1538,31 +1538,31 @@ function No(e) {
1538
1538
  ye(() => (O.current = !0, () => {
1539
1539
  O.current = !1;
1540
1540
  }), []), ye(() => {
1541
- if (x && (R.current = x), P && (E.current = P), x && P) {
1541
+ if (x && (R.current = x), S && (E.current = S), x && S) {
1542
1542
  if (T.current)
1543
- return T.current(x, P, D);
1543
+ return T.current(x, S, D);
1544
1544
  D();
1545
1545
  }
1546
- }, [x, P, D, T, M]);
1547
- const I = f.useMemo(() => ({
1546
+ }, [x, S, D, T, M]);
1547
+ const W = f.useMemo(() => ({
1548
1548
  reference: R,
1549
1549
  floating: E,
1550
1550
  setReference: w,
1551
1551
  setFloating: C
1552
1552
  }), [w, C]), L = f.useMemo(() => ({
1553
1553
  reference: x,
1554
- floating: P
1555
- }), [x, P]), N = f.useMemo(() => {
1556
- const S = {
1554
+ floating: S
1555
+ }), [x, S]), N = f.useMemo(() => {
1556
+ const P = {
1557
1557
  position: n,
1558
1558
  left: 0,
1559
1559
  top: 0
1560
1560
  };
1561
1561
  if (!L.floating)
1562
- return S;
1562
+ return P;
1563
1563
  const _ = gt(L.floating, u.x), V = gt(L.floating, u.y);
1564
1564
  return c ? {
1565
- ...S,
1565
+ ...P,
1566
1566
  transform: "translate(" + _ + "px, " + V + "px)",
1567
1567
  ..._t(L.floating) >= 1.5 && {
1568
1568
  willChange: "transform"
@@ -1576,10 +1576,10 @@ function No(e) {
1576
1576
  return f.useMemo(() => ({
1577
1577
  ...u,
1578
1578
  update: D,
1579
- refs: I,
1579
+ refs: W,
1580
1580
  elements: L,
1581
1581
  floatingStyles: N
1582
- }), [u, D, I, L, N]);
1582
+ }), [u, D, W, L, N]);
1583
1583
  }
1584
1584
  const Mo = (e) => {
1585
1585
  function t(n) {
@@ -1619,15 +1619,15 @@ const Mo = (e) => {
1619
1619
  }, $o = (e, t) => ({
1620
1620
  fn: To(e).fn,
1621
1621
  options: [e, t]
1622
- }), Io = (e, t) => {
1623
- const n = Po(e);
1622
+ }), Wo = (e, t) => {
1623
+ const n = So(e);
1624
1624
  return {
1625
1625
  name: n.name,
1626
1626
  fn: n.fn,
1627
1627
  options: [e, t]
1628
1628
  };
1629
- }, Wo = (e, t) => {
1630
- const n = So(e);
1629
+ }, Io = (e, t) => {
1630
+ const n = Po(e);
1631
1631
  return {
1632
1632
  name: n.name,
1633
1633
  fn: n.fn,
@@ -1640,7 +1640,7 @@ const Mo = (e) => {
1640
1640
  fn: n.fn,
1641
1641
  options: [e, t]
1642
1642
  };
1643
- }, Ho = (e, t) => {
1643
+ }, Bo = (e, t) => {
1644
1644
  const n = Mo(e);
1645
1645
  return {
1646
1646
  name: n.name,
@@ -1648,7 +1648,7 @@ const Mo = (e) => {
1648
1648
  options: [e, t]
1649
1649
  };
1650
1650
  };
1651
- var Bo = "Arrow", kt = f.forwardRef((e, t) => {
1651
+ var Ho = "Arrow", kt = f.forwardRef((e, t) => {
1652
1652
  const { children: n, width: o = 10, height: r = 5, ...i } = e;
1653
1653
  return /* @__PURE__ */ b(
1654
1654
  ee.svg,
@@ -1663,7 +1663,7 @@ var Bo = "Arrow", kt = f.forwardRef((e, t) => {
1663
1663
  }
1664
1664
  );
1665
1665
  });
1666
- kt.displayName = Bo;
1666
+ kt.displayName = Ho;
1667
1667
  var zo = kt;
1668
1668
  function Vo(e) {
1669
1669
  const [t, n] = f.useState(void 0);
@@ -1687,21 +1687,21 @@ function Vo(e) {
1687
1687
  n(void 0);
1688
1688
  }, [e]), t;
1689
1689
  }
1690
- var Ue = "Popper", [$t, It] = xt(Ue), [jo, Wt] = $t(Ue), Ft = (e) => {
1690
+ var Ue = "Popper", [$t, Wt] = xt(Ue), [jo, It] = $t(Ue), Ft = (e) => {
1691
1691
  const { __scopePopper: t, children: n } = e, [o, r] = f.useState(null);
1692
1692
  return /* @__PURE__ */ b(jo, { scope: t, anchor: o, onAnchorChange: r, children: n });
1693
1693
  };
1694
1694
  Ft.displayName = Ue;
1695
- var Ht = "PopperAnchor", Bt = f.forwardRef(
1695
+ var Bt = "PopperAnchor", Ht = f.forwardRef(
1696
1696
  (e, t) => {
1697
- const { __scopePopper: n, virtualRef: o, ...r } = e, i = Wt(Ht, n), s = f.useRef(null), c = oe(t, s), a = f.useRef(null);
1697
+ const { __scopePopper: n, virtualRef: o, ...r } = e, i = It(Bt, n), s = f.useRef(null), c = oe(t, s), a = f.useRef(null);
1698
1698
  return f.useEffect(() => {
1699
1699
  const l = a.current;
1700
1700
  a.current = (o == null ? void 0 : o.current) || s.current, l !== a.current && i.onAnchorChange(a.current);
1701
1701
  }), o ? null : /* @__PURE__ */ b(ee.div, { ...r, ref: c });
1702
1702
  }
1703
1703
  );
1704
- Bt.displayName = Ht;
1704
+ Ht.displayName = Bt;
1705
1705
  var Ye = "PopperContent", [Uo, Yo] = $t(Ye), zt = f.forwardRef(
1706
1706
  (e, t) => {
1707
1707
  var Ke, Ze, Je, Qe, et, tt;
@@ -1720,12 +1720,12 @@ var Ye = "PopperContent", [Uo, Yo] = $t(Ye), zt = f.forwardRef(
1720
1720
  updatePositionStrategy: p = "optimized",
1721
1721
  onPlaced: h,
1722
1722
  ...g
1723
- } = e, v = Wt(Ye, n), [y, w] = f.useState(null), C = oe(t, (le) => w(le)), [x, P] = f.useState(null), R = Vo(x), E = (R == null ? void 0 : R.width) ?? 0, A = (R == null ? void 0 : R.height) ?? 0, M = o + (i !== "center" ? "-" + i : ""), T = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, k = Array.isArray(l) ? l : [l], $ = k.length > 0, D = {
1723
+ } = e, v = It(Ye, n), [y, w] = f.useState(null), C = oe(t, (le) => w(le)), [x, S] = f.useState(null), R = Vo(x), E = (R == null ? void 0 : R.width) ?? 0, A = (R == null ? void 0 : R.height) ?? 0, M = o + (i !== "center" ? "-" + i : ""), T = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, k = Array.isArray(l) ? l : [l], $ = k.length > 0, D = {
1724
1724
  padding: T,
1725
1725
  boundary: k.filter(Go),
1726
1726
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1727
1727
  altBoundary: $
1728
- }, { refs: O, floatingStyles: I, placement: L, isPositioned: N, middlewareData: S } = No({
1728
+ }, { refs: O, floatingStyles: W, placement: L, isPositioned: N, middlewareData: P } = No({
1729
1729
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1730
1730
  strategy: "fixed",
1731
1731
  placement: M,
@@ -1743,15 +1743,15 @@ var Ye = "PopperContent", [Uo, Yo] = $t(Ye), zt = f.forwardRef(
1743
1743
  limiter: d === "partial" ? $o() : void 0,
1744
1744
  ...D
1745
1745
  }),
1746
- a && Io({ ...D }),
1747
- Wo({
1746
+ a && Wo({ ...D }),
1747
+ Io({
1748
1748
  ...D,
1749
1749
  apply: ({ elements: le, rects: nt, availableWidth: ln, availableHeight: un }) => {
1750
1750
  const { width: fn, height: dn } = nt.reference, he = le.floating.style;
1751
1751
  he.setProperty("--radix-popper-available-width", `${ln}px`), he.setProperty("--radix-popper-available-height", `${un}px`), he.setProperty("--radix-popper-anchor-width", `${fn}px`), he.setProperty("--radix-popper-anchor-height", `${dn}px`);
1752
1752
  }
1753
1753
  }),
1754
- x && Ho({ element: x, padding: c }),
1754
+ x && Bo({ element: x, padding: c }),
1755
1755
  qo({ arrowWidth: E, arrowHeight: A }),
1756
1756
  m && Fo({ strategy: "referenceHidden", ...D })
1757
1757
  ]
@@ -1759,7 +1759,7 @@ var Ye = "PopperContent", [Uo, Yo] = $t(Ye), zt = f.forwardRef(
1759
1759
  Z(() => {
1760
1760
  N && (me == null || me());
1761
1761
  }, [N, me]);
1762
- const on = (Ke = S.arrow) == null ? void 0 : Ke.x, rn = (Ze = S.arrow) == null ? void 0 : Ze.y, sn = ((Je = S.arrow) == null ? void 0 : Je.centerOffset) !== 0, [cn, an] = f.useState();
1762
+ const on = (Ke = P.arrow) == null ? void 0 : Ke.x, rn = (Ze = P.arrow) == null ? void 0 : Ze.y, sn = ((Je = P.arrow) == null ? void 0 : Je.centerOffset) !== 0, [cn, an] = f.useState();
1763
1763
  return Z(() => {
1764
1764
  y && an(window.getComputedStyle(y).zIndex);
1765
1765
  }, [y]), /* @__PURE__ */ b(
@@ -1768,19 +1768,19 @@ var Ye = "PopperContent", [Uo, Yo] = $t(Ye), zt = f.forwardRef(
1768
1768
  ref: O.setFloating,
1769
1769
  "data-radix-popper-content-wrapper": "",
1770
1770
  style: {
1771
- ...I,
1772
- transform: N ? I.transform : "translate(0, -200%)",
1771
+ ...W,
1772
+ transform: N ? W.transform : "translate(0, -200%)",
1773
1773
  // keep off the page when measuring
1774
1774
  minWidth: "max-content",
1775
1775
  zIndex: cn,
1776
1776
  "--radix-popper-transform-origin": [
1777
- (Qe = S.transformOrigin) == null ? void 0 : Qe.x,
1778
- (et = S.transformOrigin) == null ? void 0 : et.y
1777
+ (Qe = P.transformOrigin) == null ? void 0 : Qe.x,
1778
+ (et = P.transformOrigin) == null ? void 0 : et.y
1779
1779
  ].join(" "),
1780
1780
  // hide the content if using the hide middleware and should be hidden
1781
1781
  // set visibility to hidden and disable pointer events so the UI behaves
1782
1782
  // as if the PopperContent isn't there at all
1783
- ...((tt = S.hide) == null ? void 0 : tt.referenceHidden) && {
1783
+ ...((tt = P.hide) == null ? void 0 : tt.referenceHidden) && {
1784
1784
  visibility: "hidden",
1785
1785
  pointerEvents: "none"
1786
1786
  }
@@ -1791,7 +1791,7 @@ var Ye = "PopperContent", [Uo, Yo] = $t(Ye), zt = f.forwardRef(
1791
1791
  {
1792
1792
  scope: n,
1793
1793
  placedSide: _,
1794
- onArrowChange: P,
1794
+ onArrowChange: S,
1795
1795
  arrowX: on,
1796
1796
  arrowY: rn,
1797
1797
  shouldHideArrow: sn,
@@ -1885,7 +1885,7 @@ function Ut(e) {
1885
1885
  const [t, n = "center"] = e.split("-");
1886
1886
  return [t, n];
1887
1887
  }
1888
- var Ko = Ft, Zo = Bt, Jo = zt, Qo = jt, er = "Portal", Yt = f.forwardRef((e, t) => {
1888
+ var Ko = Ft, Zo = Ht, Jo = zt, Qo = jt, er = "Portal", Yt = f.forwardRef((e, t) => {
1889
1889
  var c;
1890
1890
  const { container: n, ...o } = e, [r, i] = f.useState(!1);
1891
1891
  Z(() => i(!0), []);
@@ -2030,9 +2030,9 @@ var ar = Object.freeze({
2030
2030
  )
2031
2031
  );
2032
2032
  Xt.displayName = lr;
2033
- var ur = Xt, [Te, Br] = xt("Tooltip", [
2034
- It
2035
- ]), Oe = It(), Gt = "TooltipProvider", fr = 700, Ie = "tooltip.open", [dr, Ge] = Te(Gt), qt = (e) => {
2033
+ var ur = Xt, [Te, Hr] = xt("Tooltip", [
2034
+ Wt
2035
+ ]), Oe = Wt(), Gt = "TooltipProvider", fr = 700, We = "tooltip.open", [dr, Ge] = Te(Gt), qt = (e) => {
2036
2036
  const {
2037
2037
  __scopeTooltip: t,
2038
2038
  delayDuration: n = fr,
@@ -2081,12 +2081,12 @@ var fe = "Tooltip", [pr, pe] = Te(fe), Kt = (e) => {
2081
2081
  prop: o,
2082
2082
  defaultProp: r ?? !1,
2083
2083
  onChange: (E) => {
2084
- E ? (a.onOpen(), document.dispatchEvent(new CustomEvent(Ie))) : a.onClose(), i == null || i(E);
2084
+ E ? (a.onOpen(), document.dispatchEvent(new CustomEvent(We))) : a.onClose(), i == null || i(E);
2085
2085
  },
2086
2086
  caller: fe
2087
2087
  }), C = f.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), x = f.useCallback(() => {
2088
2088
  window.clearTimeout(p.current), p.current = 0, v.current = !1, w(!0);
2089
- }, [w]), P = f.useCallback(() => {
2089
+ }, [w]), S = f.useCallback(() => {
2090
2090
  window.clearTimeout(p.current), p.current = 0, w(!1);
2091
2091
  }, [w]), R = f.useCallback(() => {
2092
2092
  window.clearTimeout(p.current), p.current = window.setTimeout(() => {
@@ -2108,19 +2108,19 @@ var fe = "Tooltip", [pr, pe] = Te(fe), Kt = (e) => {
2108
2108
  a.isOpenDelayedRef.current ? R() : x();
2109
2109
  }, [a.isOpenDelayedRef, R, x]),
2110
2110
  onTriggerLeave: f.useCallback(() => {
2111
- h ? P() : (window.clearTimeout(p.current), p.current = 0);
2112
- }, [P, h]),
2111
+ h ? S() : (window.clearTimeout(p.current), p.current = 0);
2112
+ }, [S, h]),
2113
2113
  onOpen: x,
2114
- onClose: P,
2114
+ onClose: S,
2115
2115
  disableHoverableContent: h,
2116
2116
  children: n
2117
2117
  }
2118
2118
  ) });
2119
2119
  };
2120
2120
  Kt.displayName = fe;
2121
- var We = "TooltipTrigger", Zt = f.forwardRef(
2121
+ var Ie = "TooltipTrigger", Zt = f.forwardRef(
2122
2122
  (e, t) => {
2123
- const { __scopeTooltip: n, ...o } = e, r = pe(We, n), i = Ge(We, n), s = Oe(n), c = f.useRef(null), a = oe(t, c, r.onTriggerChange), l = f.useRef(!1), u = f.useRef(!1), d = f.useCallback(() => l.current = !1, []);
2123
+ const { __scopeTooltip: n, ...o } = e, r = pe(Ie, n), i = Ge(Ie, n), s = Oe(n), c = f.useRef(null), a = oe(t, c, r.onTriggerChange), l = f.useRef(!1), u = f.useRef(!1), d = f.useCallback(() => l.current = !1, []);
2124
2124
  return f.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ b(Zo, { asChild: !0, ...s, children: /* @__PURE__ */ b(
2125
2125
  ee.button,
2126
2126
  {
@@ -2146,7 +2146,7 @@ var We = "TooltipTrigger", Zt = f.forwardRef(
2146
2146
  ) });
2147
2147
  }
2148
2148
  );
2149
- Zt.displayName = We;
2149
+ Zt.displayName = Ie;
2150
2150
  var qe = "TooltipPortal", [mr, hr] = Te(qe, {
2151
2151
  forceMount: void 0
2152
2152
  }), Jt = (e) => {
@@ -2164,8 +2164,8 @@ var se = "TooltipContent", Qt = f.forwardRef(
2164
2164
  c(null), d(!1);
2165
2165
  }, [d]), p = f.useCallback(
2166
2166
  (h, g) => {
2167
- const v = h.currentTarget, y = { x: h.clientX, y: h.clientY }, w = wr(y, v.getBoundingClientRect()), C = br(y, w), x = Cr(g.getBoundingClientRect()), P = Rr([...C, ...x]);
2168
- c(P), d(!0);
2167
+ const v = h.currentTarget, y = { x: h.clientX, y: h.clientY }, w = wr(y, v.getBoundingClientRect()), C = br(y, w), x = Cr(g.getBoundingClientRect()), S = Rr([...C, ...x]);
2168
+ c(S), d(!0);
2169
2169
  },
2170
2170
  [d]
2171
2171
  );
@@ -2195,7 +2195,7 @@ var se = "TooltipContent", Qt = f.forwardRef(
2195
2195
  onPointerDownOutside: s,
2196
2196
  ...c
2197
2197
  } = e, a = pe(se, n), l = Oe(n), { onClose: u } = a;
2198
- return f.useEffect(() => (document.addEventListener(Ie, u), () => document.removeEventListener(Ie, u)), [u]), f.useEffect(() => {
2198
+ return f.useEffect(() => (document.addEventListener(We, u), () => document.removeEventListener(We, u)), [u]), f.useEffect(() => {
2199
2199
  if (a.trigger) {
2200
2200
  const d = (m) => {
2201
2201
  const p = m.target;
@@ -2212,7 +2212,7 @@ var se = "TooltipContent", Qt = f.forwardRef(
2212
2212
  onPointerDownOutside: s,
2213
2213
  onFocusOutside: (d) => d.preventDefault(),
2214
2214
  onDismiss: u,
2215
- children: /* @__PURE__ */ H(
2215
+ children: /* @__PURE__ */ B(
2216
2216
  Jo,
2217
2217
  {
2218
2218
  "data-state": a.stateAttribute,
@@ -2313,9 +2313,9 @@ function Er(e, t) {
2313
2313
  }
2314
2314
  function Rr(e) {
2315
2315
  const t = e.slice();
2316
- return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), Pr(t);
2316
+ return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), Sr(t);
2317
2317
  }
2318
- function Pr(e) {
2318
+ function Sr(e) {
2319
2319
  if (e.length <= 1)
2320
2320
  return e.slice();
2321
2321
  const t = [];
@@ -2345,10 +2345,10 @@ function Pr(e) {
2345
2345
  }
2346
2346
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
2347
2347
  }
2348
- var Sr = qt, Ar = Kt, Tr = Zt, Or = Jt, Dr = Qt, Lr = nn;
2348
+ var Pr = qt, Ar = Kt, Tr = Zt, Or = Jt, Dr = Qt, Lr = nn;
2349
2349
  function Nr({ delayDuration: e = 0, ...t }) {
2350
2350
  return /* @__PURE__ */ b(
2351
- Sr,
2351
+ Pr,
2352
2352
  {
2353
2353
  "data-slot": "tooltip-provider",
2354
2354
  delayDuration: e,
@@ -2363,7 +2363,7 @@ function _r({ ...e }) {
2363
2363
  return /* @__PURE__ */ b(Tr, { "data-slot": "tooltip-trigger", ...e });
2364
2364
  }
2365
2365
  function kr({ sideOffset: e = 8, children: t, style: n, ...o }) {
2366
- return /* @__PURE__ */ b(Or, { children: /* @__PURE__ */ H(
2366
+ return /* @__PURE__ */ b(Or, { children: /* @__PURE__ */ B(
2367
2367
  Dr,
2368
2368
  {
2369
2369
  "data-slot": "tooltip-content",
@@ -2412,7 +2412,7 @@ function zr({
2412
2412
  { dots: "●●●○○", text: "Notable", level: 3 },
2413
2413
  { dots: "●●●●○", text: "Atypical", level: 4 },
2414
2414
  { dots: "●●●●●", text: "Highly atypical — very uncommon", level: 5 }
2415
- ], c = s.find((l) => l.level === e), a = /* @__PURE__ */ H("div", { style: { minWidth: "260px" }, children: [
2415
+ ], c = s.find((l) => l.level === e), a = /* @__PURE__ */ B("div", { style: { minWidth: "260px" }, children: [
2416
2416
  /* @__PURE__ */ b("div", { style: { fontWeight: 650, marginBottom: "6px", fontSize: "12px" }, children: "Deviation from the norm" }),
2417
2417
  /* @__PURE__ */ b(
2418
2418
  "div",
@@ -2426,7 +2426,7 @@ function zr({
2426
2426
  children: "Highlights how common or uncommon this behavior is relative to similar calls."
2427
2427
  }
2428
2428
  ),
2429
- c && /* @__PURE__ */ H(
2429
+ c && /* @__PURE__ */ B(
2430
2430
  "div",
2431
2431
  {
2432
2432
  style: {
@@ -2440,7 +2440,7 @@ function zr({
2440
2440
  fontWeight: 600
2441
2441
  },
2442
2442
  children: [
2443
- /* @__PURE__ */ b("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: /* @__PURE__ */ H("span", { children: [
2443
+ /* @__PURE__ */ b("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: /* @__PURE__ */ B("span", { children: [
2444
2444
  c.dots,
2445
2445
  " ",
2446
2446
  c.text
@@ -2449,7 +2449,7 @@ function zr({
2449
2449
  ]
2450
2450
  }
2451
2451
  ),
2452
- /* @__PURE__ */ H(
2452
+ /* @__PURE__ */ B(
2453
2453
  "div",
2454
2454
  {
2455
2455
  style: {
@@ -2472,7 +2472,7 @@ function zr({
2472
2472
  children: "Full scale:"
2473
2473
  }
2474
2474
  ),
2475
- s.slice().reverse().map((l) => /* @__PURE__ */ H(
2475
+ s.slice().reverse().map((l) => /* @__PURE__ */ B(
2476
2476
  "div",
2477
2477
  {
2478
2478
  style: {
@@ -2491,8 +2491,8 @@ function zr({
2491
2491
  }
2492
2492
  )
2493
2493
  ] });
2494
- return /* @__PURE__ */ H(Mr, { children: [
2495
- /* @__PURE__ */ b(_r, { asChild: !0, children: /* @__PURE__ */ H(
2494
+ return /* @__PURE__ */ B(Mr, { children: [
2495
+ /* @__PURE__ */ b(_r, { asChild: !0, children: /* @__PURE__ */ B(
2496
2496
  "div",
2497
2497
  {
2498
2498
  style: {
@@ -2613,7 +2613,7 @@ function $r({
2613
2613
  },
2614
2614
  ...s
2615
2615
  }, y = ["custom-thin-scrollbar-library", c].filter(Boolean).join(" ");
2616
- return /* @__PURE__ */ H(
2616
+ return /* @__PURE__ */ B(
2617
2617
  "div",
2618
2618
  {
2619
2619
  style: v,
@@ -2646,7 +2646,7 @@ function $r({
2646
2646
  );
2647
2647
  }
2648
2648
  function Vr({ title: e, children: t, borderRadius: n }) {
2649
- return /* @__PURE__ */ H($r, { variant: "elevated", padding: "sm", borderRadius: n, children: [
2649
+ return /* @__PURE__ */ B($r, { variant: "elevated", padding: "sm", borderRadius: n, children: [
2650
2650
  /* @__PURE__ */ b("div", { style: { fontSize: 11, fontWeight: 600, color: "var(--text-strong)", textTransform: "uppercase", letterSpacing: "0.04em", marginBottom: 8, marginTop: 4 }, children: e }),
2651
2651
  t
2652
2652
  ] });
@@ -2715,24 +2715,32 @@ function Ur({
2715
2715
  }) {
2716
2716
  const s = {
2717
2717
  primary: {
2718
- backgroundColor: "var(--rail-tone)",
2718
+ backgroundColor: "var(--Base-Strong, #0B0B0B)",
2719
2719
  color: "white",
2720
- border: "none"
2720
+ border: "none",
2721
+ fontSize: "16px",
2722
+ fontWeight: 600
2721
2723
  },
2722
2724
  secondary: {
2723
2725
  backgroundColor: "transparent",
2724
2726
  border: "1px solid var(--border)",
2725
- color: "var(--text-base)"
2727
+ color: "var(--text-base)",
2728
+ fontSize: "16px",
2729
+ fontWeight: 600
2726
2730
  },
2727
2731
  ghost: {
2728
2732
  backgroundColor: "transparent",
2729
2733
  border: "none",
2730
- color: "var(--text-muted)"
2734
+ color: "var(--text-muted)",
2735
+ fontSize: "16px",
2736
+ fontWeight: 600
2731
2737
  },
2732
2738
  danger: {
2733
2739
  backgroundColor: "var(--rail-signal-churn)",
2734
2740
  color: "white",
2735
- border: "none"
2741
+ border: "none",
2742
+ fontSize: "16px",
2743
+ fontWeight: 600
2736
2744
  }
2737
2745
  }, c = {
2738
2746
  sm: {
@@ -2756,7 +2764,7 @@ function Ur({
2756
2764
  textDecoration: "none",
2757
2765
  userSelect: "none"
2758
2766
  }, l = (g) => {
2759
- o || (n === "secondary" || n === "ghost" ? g.currentTarget.style.backgroundColor = "var(--hover-warm)" : n === "danger" && (g.currentTarget.style.opacity = "0.85"));
2767
+ o || (n === "secondary" || n === "ghost" ? g.currentTarget.style.backgroundColor = "#ECEEF2" : n === "danger" && (g.currentTarget.style.opacity = "0.85"));
2760
2768
  }, u = (g) => {
2761
2769
  o || (n === "secondary" || n === "ghost" ? g.currentTarget.style.backgroundColor = "transparent" : n === "danger" && (g.currentTarget.style.opacity = "1"));
2762
2770
  }, d = s[n] || s.secondary, m = c[r] || c.md, { style: p, ...h } = i;