@lax-wp/design-system 0.3.70 → 0.3.71

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.
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as de from "react";
2
2
  import a, { forwardRef as Ue, useRef as he, useState as ne, useEffect as pe, createContext as X0, useContext as Ns, useCallback as ke, createElement as Z0, useMemo as qe, useLayoutEffect as Ds, Component as kp, Fragment as _o, useSyncExternalStore as Ip, isValidElement as Nr, cloneElement as $o, memo as pr, Suspense as zp, PureComponent as Fp } from "react";
3
3
  import { AnimatePresence as Vt, motion as kt } from "framer-motion";
4
- import { Tooltip as pt, Select as Mp, Skeleton as Ac, Checkbox as Y0, Dropdown as J0, DatePicker as Wo, Modal as Sp, Upload as Ul, Popover as Ap } from "antd";
4
+ import { Tooltip as ht, Select as Mp, Skeleton as Ac, Checkbox as Y0, Dropdown as J0, DatePicker as Wo, Modal as Sp, Upload as Ul, Popover as Ap } from "antd";
5
5
  import * as ga from "@mui/icons-material";
6
- import { BoltOutlined as Gn, NoteAddOutlined as _n, CloseRounded as Ls, TableChartRounded as K0, ChevronLeftRounded as Np, ChevronRightRounded as Dp, OpenInFull as Lp, DescriptionRounded as Tp } from "@mui/icons-material";
6
+ import { BoltOutlined as _n, NoteAddOutlined as gn, CloseRounded as Ls, TableChartRounded as K0, ChevronLeftRounded as Np, ChevronRightRounded as Dp, OpenInFull as Lp, DescriptionRounded as Tp } from "@mui/icons-material";
7
7
  import * as Bp from "react-dom";
8
8
  import Hp, { createPortal as Ts, flushSync as jp } from "react-dom";
9
9
  import { FixedSizeGrid as Pp } from "react-window";
@@ -391,7 +391,7 @@ function Vp() {
391
391
  }
392
392
  return R.ref !== void 0;
393
393
  }
394
- function wn(R) {
394
+ function En(R) {
395
395
  if (oe.call(R, "key")) {
396
396
  var re = Object.getOwnPropertyDescriptor(R, "key").get;
397
397
  if (re && re.isReactWarning)
@@ -456,7 +456,7 @@ function Vp() {
456
456
  function Wn(R, re, me, Fe, _e) {
457
457
  {
458
458
  var Xe, He = {}, Le = null, wt = null;
459
- me !== void 0 && (X(me), Le = "" + me), wn(re) && (X(re.key), Le = "" + re.key), ft(re) && (wt = re.ref, Qt(re, _e));
459
+ me !== void 0 && (X(me), Le = "" + me), En(re) && (X(re.key), Le = "" + re.key), ft(re) && (wt = re.ref, Qt(re, _e));
460
460
  for (Xe in re)
461
461
  oe.call(re, Xe) && !Ee.hasOwnProperty(Xe) && (He[Xe] = re[Xe]);
462
462
  if (R && R.defaultProps) {
@@ -980,7 +980,7 @@ const i6 = (e, t) => {
980
980
  return pe(() => {
981
981
  n.current = e;
982
982
  }, [e, t]), n.current;
983
- }, e2 = (e, t, n, r) => e.getFixedT(t, n, r), l6 = (e, t, n, r) => ke(e2(e, t, n, r), [e, t, n, r]), vn = (e, t = {}) => {
983
+ }, e2 = (e, t, n, r) => e.getFixedT(t, n, r), l6 = (e, t, n, r) => ke(e2(e, t, n, r), [e, t, n, r]), bn = (e, t = {}) => {
984
984
  const {
985
985
  i18n: n
986
986
  } = t, {
@@ -1457,7 +1457,7 @@ var Pc = function(t) {
1457
1457
  }, []), i2 = /* @__PURE__ */ [].concat(Zi, [Bs]).reduce(function(e, t) {
1458
1458
  return e.concat([t, t + "-" + Tr, t + "-" + Ai]);
1459
1459
  }, []), m6 = "beforeRead", p6 = "read", g6 = "afterRead", v6 = "beforeMain", b6 = "main", x6 = "afterMain", y6 = "beforeWrite", w6 = "write", E6 = "afterWrite", C6 = [m6, p6, g6, v6, b6, x6, y6, w6, E6];
1460
- function gn(e) {
1460
+ function vn(e) {
1461
1461
  return e ? (e.nodeName || "").toLowerCase() : null;
1462
1462
  }
1463
1463
  function Gt(e) {
@@ -1487,7 +1487,7 @@ function k6(e) {
1487
1487
  var t = e.state;
1488
1488
  Object.keys(t.elements).forEach(function(n) {
1489
1489
  var r = t.styles[n] || {}, i = t.attributes[n] || {}, l = t.elements[n];
1490
- !Yt(l) || !gn(l) || (Object.assign(l.style, r), Object.keys(i).forEach(function(o) {
1490
+ !Yt(l) || !vn(l) || (Object.assign(l.style, r), Object.keys(i).forEach(function(o) {
1491
1491
  var s = i[o];
1492
1492
  s === !1 ? l.removeAttribute(o) : l.setAttribute(o, s === !0 ? "" : s);
1493
1493
  }));
@@ -1511,7 +1511,7 @@ function I6(e) {
1511
1511
  var i = t.elements[r], l = t.attributes[r] || {}, o = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), s = o.reduce(function(c, u) {
1512
1512
  return c[u] = "", c;
1513
1513
  }, {});
1514
- !Yt(i) || !gn(i) || (Object.assign(i.style, s), Object.keys(l).forEach(function(c) {
1514
+ !Yt(i) || !vn(i) || (Object.assign(i.style, s), Object.keys(l).forEach(function(c) {
1515
1515
  i.removeAttribute(c);
1516
1516
  }));
1517
1517
  });
@@ -1577,11 +1577,11 @@ function a2(e, t) {
1577
1577
  }
1578
1578
  return !1;
1579
1579
  }
1580
- function Rn(e) {
1580
+ function Vn(e) {
1581
1581
  return Gt(e).getComputedStyle(e);
1582
1582
  }
1583
1583
  function F6(e) {
1584
- return ["table", "td", "th"].indexOf(gn(e)) >= 0;
1584
+ return ["table", "td", "th"].indexOf(vn(e)) >= 0;
1585
1585
  }
1586
1586
  function er(e) {
1587
1587
  return ((dr(e) ? e.ownerDocument : (
@@ -1590,7 +1590,7 @@ function er(e) {
1590
1590
  )) || window.document).documentElement;
1591
1591
  }
1592
1592
  function va(e) {
1593
- return gn(e) === "html" ? e : (
1593
+ return vn(e) === "html" ? e : (
1594
1594
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
1595
1595
  // $FlowFixMe[incompatible-return]
1596
1596
  // $FlowFixMe[prop-missing]
@@ -1603,18 +1603,18 @@ function va(e) {
1603
1603
  }
1604
1604
  function Vc(e) {
1605
1605
  return !Yt(e) || // https://github.com/popperjs/popper-core/issues/837
1606
- Rn(e).position === "fixed" ? null : e.offsetParent;
1606
+ Vn(e).position === "fixed" ? null : e.offsetParent;
1607
1607
  }
1608
1608
  function M6(e) {
1609
1609
  var t = /firefox/i.test(Zo()), n = /Trident/i.test(Zo());
1610
1610
  if (n && Yt(e)) {
1611
- var r = Rn(e);
1611
+ var r = Vn(e);
1612
1612
  if (r.position === "fixed")
1613
1613
  return null;
1614
1614
  }
1615
1615
  var i = va(e);
1616
- for (Hs(i) && (i = i.host); Yt(i) && ["html", "body"].indexOf(gn(i)) < 0; ) {
1617
- var l = Rn(i);
1616
+ for (Hs(i) && (i = i.host); Yt(i) && ["html", "body"].indexOf(vn(i)) < 0; ) {
1617
+ var l = Vn(i);
1618
1618
  if (l.transform !== "none" || l.perspective !== "none" || l.contain === "paint" || ["transform", "perspective"].indexOf(l.willChange) !== -1 || t && l.willChange === "filter" || t && l.filter && l.filter !== "none")
1619
1619
  return i;
1620
1620
  i = i.parentNode;
@@ -1622,9 +1622,9 @@ function M6(e) {
1622
1622
  return null;
1623
1623
  }
1624
1624
  function Yi(e) {
1625
- for (var t = Gt(e), n = Vc(e); n && F6(n) && Rn(n).position === "static"; )
1625
+ for (var t = Gt(e), n = Vc(e); n && F6(n) && Vn(n).position === "static"; )
1626
1626
  n = Vc(n);
1627
- return n && (gn(n) === "html" || gn(n) === "body" && Rn(n).position === "static") ? t : n || M6(e) || t;
1627
+ return n && (vn(n) === "html" || vn(n) === "body" && Vn(n).position === "static") ? t : n || M6(e) || t;
1628
1628
  }
1629
1629
  function Ps(e) {
1630
1630
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
@@ -1705,7 +1705,7 @@ function Gc(e) {
1705
1705
  var x = o.hasOwnProperty("x"), w = o.hasOwnProperty("y"), C = At, M = St, E = window;
1706
1706
  if (u) {
1707
1707
  var y = Yi(n), z = "clientHeight", I = "clientWidth";
1708
- if (y === Gt(n) && (y = er(n), Rn(y).position !== "static" && s === "absolute" && (z = "scrollHeight", I = "scrollWidth")), y = y, i === St || (i === At || i === Kt) && l === Ai) {
1708
+ if (y === Gt(n) && (y = er(n), Vn(y).position !== "static" && s === "absolute" && (z = "scrollHeight", I = "scrollWidth")), y = y, i === St || (i === At || i === Kt) && l === Ai) {
1709
1709
  M = Jt;
1710
1710
  var k = h && y === E && E.visualViewport ? E.visualViewport.height : (
1711
1711
  // $FlowFixMe[prop-missing]
@@ -1835,7 +1835,7 @@ function G6(e, t) {
1835
1835
  }
1836
1836
  function _6(e) {
1837
1837
  var t, n = er(e), r = Os(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, l = cr(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = cr(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + Rs(e), c = -r.scrollTop;
1838
- return Rn(i || n).direction === "rtl" && (s += cr(n.clientWidth, i ? i.clientWidth : 0) - l), {
1838
+ return Vn(i || n).direction === "rtl" && (s += cr(n.clientWidth, i ? i.clientWidth : 0) - l), {
1839
1839
  width: l,
1840
1840
  height: o,
1841
1841
  x: s,
@@ -1843,11 +1843,11 @@ function _6(e) {
1843
1843
  };
1844
1844
  }
1845
1845
  function Vs(e) {
1846
- var t = Rn(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
1846
+ var t = Vn(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
1847
1847
  return /auto|scroll|overlay|hidden/.test(n + i + r);
1848
1848
  }
1849
1849
  function u2(e) {
1850
- return ["html", "body", "#document"].indexOf(gn(e)) >= 0 ? e.ownerDocument.body : Yt(e) && Vs(e) ? e : u2(va(e));
1850
+ return ["html", "body", "#document"].indexOf(vn(e)) >= 0 ? e.ownerDocument.body : Yt(e) && Vs(e) ? e : u2(va(e));
1851
1851
  }
1852
1852
  function yi(e, t) {
1853
1853
  var n;
@@ -1874,9 +1874,9 @@ function $c(e, t, n) {
1874
1874
  return t === r2 ? Yo(G6(e, n)) : dr(t) ? $6(t, n) : Yo(_6(er(e)));
1875
1875
  }
1876
1876
  function W6(e) {
1877
- var t = yi(va(e)), n = ["absolute", "fixed"].indexOf(Rn(e).position) >= 0, r = n && Yt(e) ? Yi(e) : e;
1877
+ var t = yi(va(e)), n = ["absolute", "fixed"].indexOf(Vn(e).position) >= 0, r = n && Yt(e) ? Yi(e) : e;
1878
1878
  return dr(r) ? t.filter(function(i) {
1879
- return dr(i) && a2(i, r) && gn(i) !== "body";
1879
+ return dr(i) && a2(i, r) && vn(i) !== "body";
1880
1880
  }) : [];
1881
1881
  }
1882
1882
  function U6(e, t, n, r) {
@@ -2182,7 +2182,7 @@ function ug(e, t, n) {
2182
2182
  x: 0,
2183
2183
  y: 0
2184
2184
  };
2185
- return (r || !r && !n) && ((gn(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
2185
+ return (r || !r && !n) && ((vn(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
2186
2186
  Vs(l)) && (s = sg(t)), Yt(t) ? (c = Hr(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : l && (c.x = Rs(l))), {
2187
2187
  x: o.left + s.scrollLeft - c.x,
2188
2188
  y: o.top + s.scrollTop - c.y,
@@ -2732,7 +2732,7 @@ const st = ({
2732
2732
  fill: t
2733
2733
  }
2734
2734
  )
2735
- ] }), bn = ({
2735
+ ] }), xn = ({
2736
2736
  position: e = "top",
2737
2737
  title: t = "AI Extracted Field"
2738
2738
  }) => /* @__PURE__ */ f.jsx(st, { placement: e, title: t, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(Fg, { size: 12, fill: "#016DCF", fillSecondary: "#54A4EC" }) }) }), $t = ({ isConditional: e }) => /* @__PURE__ */ f.jsx("span", { className: `${e ? "text-yellow-500" : "text-red-500"}`, children: "*" }), Mg = ({ className: e, size: t = 16 }) => /* @__PURE__ */ f.jsxs(
@@ -2839,7 +2839,7 @@ const st = ({
2839
2839
  onAddGTNToDocument: S,
2840
2840
  ...T
2841
2841
  }, V) => {
2842
- const { t: O } = vn(), [G, A] = ne(!1), [_, $] = ne(!1), D = (U) => {
2842
+ const { t: O } = bn(), [G, A] = ne(!1), [_, $] = ne(!1), D = (U) => {
2843
2843
  S && S({
2844
2844
  key: E,
2845
2845
  value: U
@@ -2900,7 +2900,7 @@ const st = ({
2900
2900
  ]
2901
2901
  }
2902
2902
  ),
2903
- v?.length > 0 && v !== T.value && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: v, children: /* @__PURE__ */ f.jsx(
2903
+ v?.length > 0 && v !== T.value && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: v, children: /* @__PURE__ */ f.jsx(
2904
2904
  "button",
2905
2905
  {
2906
2906
  className: "cursor-pointer",
@@ -2916,7 +2916,7 @@ const st = ({
2916
2916
  }
2917
2917
  ) }),
2918
2918
  F && /* @__PURE__ */ f.jsx(
2919
- Gn,
2919
+ _n,
2920
2920
  {
2921
2921
  sx: {
2922
2922
  fontSize: 16,
@@ -2925,9 +2925,9 @@ const st = ({
2925
2925
  }
2926
2926
  }
2927
2927
  ),
2928
- C && /* @__PURE__ */ f.jsx(bn, {}),
2928
+ C && /* @__PURE__ */ f.jsx(xn, {}),
2929
2929
  /* @__PURE__ */ f.jsx(_t, { labels: c }),
2930
- g && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
2930
+ g && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
2931
2931
  ] }),
2932
2932
  M && _ && S ? /* @__PURE__ */ f.jsx(
2933
2933
  "button",
@@ -2936,8 +2936,8 @@ const st = ({
2936
2936
  className: "cursor-pointer",
2937
2937
  onClick: () => D(T?.value),
2938
2938
  type: "button",
2939
- children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
2940
- _n,
2939
+ children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
2940
+ gn,
2941
2941
  {
2942
2942
  className: "text-primary-600",
2943
2943
  sx: {
@@ -3237,7 +3237,7 @@ const HH = Ue(
3237
3237
  onAddGTNToDocument: B,
3238
3238
  ...H
3239
3239
  }, L) => {
3240
- const { t: S } = vn(), [T, V] = ne(!1), O = () => {
3240
+ const { t: S } = bn(), [T, V] = ne(!1), O = () => {
3241
3241
  B && B({
3242
3242
  key: w,
3243
3243
  value: n || ""
@@ -3277,7 +3277,7 @@ const HH = Ue(
3277
3277
  }
3278
3278
  ),
3279
3279
  z && /* @__PURE__ */ f.jsx(
3280
- Gn,
3280
+ _n,
3281
3281
  {
3282
3282
  sx: {
3283
3283
  fontSize: 16,
@@ -3286,9 +3286,9 @@ const HH = Ue(
3286
3286
  }
3287
3287
  }
3288
3288
  ),
3289
- v && /* @__PURE__ */ f.jsx(bn, {}),
3289
+ v && /* @__PURE__ */ f.jsx(xn, {}),
3290
3290
  /* @__PURE__ */ f.jsx(_t, { labels: u || [] }),
3291
- g && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx(
3291
+ g && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx(
3292
3292
  "div",
3293
3293
  {
3294
3294
  className: "cursor-pointer",
@@ -3308,8 +3308,8 @@ const HH = Ue(
3308
3308
  className: "cursor-pointer",
3309
3309
  onClick: O,
3310
3310
  type: "button",
3311
- children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: S("Add to document"), children: /* @__PURE__ */ f.jsx(
3312
- _n,
3311
+ children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: S("Add to document"), children: /* @__PURE__ */ f.jsx(
3312
+ gn,
3313
3313
  {
3314
3314
  className: "text-primary-600",
3315
3315
  sx: { fontSize: 16 }
@@ -3479,7 +3479,7 @@ const Zl = ({
3479
3479
  MasterDataModal: V,
3480
3480
  parseMasterDataFormula: O
3481
3481
  }, G) => {
3482
- const { t: A } = vn(), [_, $] = ne(!1), [D, U] = ne(null), [J, ae] = ne(!1), [Q, ce] = ne(""), [W, Y] = ne(null), fe = he(null), ee = G || fe;
3482
+ const { t: A } = bn(), [_, $] = ne(!1), [D, U] = ne(null), [J, ae] = ne(!1), [Q, ce] = ne(""), [W, Y] = ne(null), fe = he(null), ee = G || fe;
3483
3483
  pe(() => {
3484
3484
  U(r);
3485
3485
  }, [g]), pe(() => {
@@ -3541,7 +3541,7 @@ const Zl = ({
3541
3541
  }
3542
3542
  ),
3543
3543
  I && /* @__PURE__ */ f.jsx(
3544
- Gn,
3544
+ _n,
3545
3545
  {
3546
3546
  sx: {
3547
3547
  fontSize: 16,
@@ -3550,7 +3550,7 @@ const Zl = ({
3550
3550
  }
3551
3551
  }
3552
3552
  ),
3553
- E && /* @__PURE__ */ f.jsx(bn, {}),
3553
+ E && /* @__PURE__ */ f.jsx(xn, {}),
3554
3554
  /* @__PURE__ */ f.jsx(_t, { labels: p }),
3555
3555
  b && /* @__PURE__ */ f.jsx(
3556
3556
  st,
@@ -3568,8 +3568,8 @@ const Zl = ({
3568
3568
  className: "cursor-pointer",
3569
3569
  onClick: () => ze(r?.toString() || ""),
3570
3570
  type: "button",
3571
- children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: A("Add to document"), children: /* @__PURE__ */ f.jsx(
3572
- _n,
3571
+ children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: A("Add to document"), children: /* @__PURE__ */ f.jsx(
3572
+ gn,
3573
3573
  {
3574
3574
  sx: {
3575
3575
  fontSize: 16,
@@ -3971,7 +3971,7 @@ const Xg = /* @__PURE__ */ ln(Ug), Zg = (e) => Array.isArray(e) ? e.map((t) => t
3971
3971
  isLiveField: _ = !1,
3972
3972
  ...$
3973
3973
  }, D) => {
3974
- const { t: U } = vn(), [J, ae] = ne(!1), Q = he(null), [ce, W] = ne(!1), [Y, fe] = ne(""), ee = () => {
3974
+ const { t: U } = bn(), [J, ae] = ne(!1), Q = he(null), [ce, W] = ne(!1), [Y, fe] = ne(""), ee = () => {
3975
3975
  if (G) {
3976
3976
  let be = "";
3977
3977
  ye == null ? be = "" : typeof ye == "string" || typeof ye == "number" ? be = String(ye) : Array.isArray(ye) ? be = ye.map((X) => typeof X == "object" && X !== null && "value" in X ? X.value : X).join(", ") : typeof ye == "object" && "value" in ye && (be = String(ye.value)), G({
@@ -4099,7 +4099,7 @@ const Xg = /* @__PURE__ */ ln(Ug), Zg = (e) => Array.isArray(e) ? e.map((t) => t
4099
4099
  }
4100
4100
  ),
4101
4101
  _ && /* @__PURE__ */ f.jsx(
4102
- Gn,
4102
+ _n,
4103
4103
  {
4104
4104
  sx: {
4105
4105
  fontSize: 16,
@@ -4108,9 +4108,9 @@ const Xg = /* @__PURE__ */ ln(Ug), Zg = (e) => Array.isArray(e) ? e.map((t) => t
4108
4108
  }
4109
4109
  }
4110
4110
  ),
4111
- h && /* @__PURE__ */ f.jsx(bn, {}),
4111
+ h && /* @__PURE__ */ f.jsx(xn, {}),
4112
4112
  /* @__PURE__ */ f.jsx(_t, { labels: o }),
4113
- u && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: u, children: /* @__PURE__ */ f.jsx(
4113
+ u && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: u, children: /* @__PURE__ */ f.jsx(
4114
4114
  "div",
4115
4115
  {
4116
4116
  className: "cursor-pointer",
@@ -4130,7 +4130,7 @@ const Xg = /* @__PURE__ */ ln(Ug), Zg = (e) => Array.isArray(e) ? e.map((t) => t
4130
4130
  className: "cursor-pointer",
4131
4131
  onClick: ee,
4132
4132
  type: "button",
4133
- children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: U("Add to document"), children: /* @__PURE__ */ f.jsx(_n, { className: "text-primary-600", sx: { fontSize: 16 } }) })
4133
+ children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: U("Add to document"), children: /* @__PURE__ */ f.jsx(gn, { className: "text-primary-600", sx: { fontSize: 16 } }) })
4134
4134
  }
4135
4135
  ) : null
4136
4136
  ] })
@@ -4217,7 +4217,7 @@ const Xg = /* @__PURE__ */ ln(Ug), Zg = (e) => Array.isArray(e) ? e.map((t) => t
4217
4217
  onClear: () => g && g(n === "tags" || n === "multiple" ? [] : null),
4218
4218
  maxTagCount: n === "tags" && z ? void 0 : "responsive",
4219
4219
  maxTagPlaceholder: (be) => /* @__PURE__ */ f.jsx(
4220
- pt,
4220
+ ht,
4221
4221
  {
4222
4222
  styles: {
4223
4223
  root: {
@@ -4799,7 +4799,7 @@ var m7 = /* @__PURE__ */ function() {
4799
4799
  }, e;
4800
4800
  }(), gt = "-ms-", Jl = "-moz-", Re = "-webkit-", y2 = "comm", Gs = "rule", _s = "decl", p7 = "@import", w2 = "@keyframes", g7 = "@layer", v7 = Math.abs, ba = String.fromCharCode, b7 = Object.assign;
4801
4801
  function x7(e, t) {
4802
- return ht(e, 0) ^ 45 ? (((t << 2 ^ ht(e, 0)) << 2 ^ ht(e, 1)) << 2 ^ ht(e, 2)) << 2 ^ ht(e, 3) : 0;
4802
+ return mt(e, 0) ^ 45 ? (((t << 2 ^ mt(e, 0)) << 2 ^ mt(e, 1)) << 2 ^ mt(e, 2)) << 2 ^ mt(e, 3) : 0;
4803
4803
  }
4804
4804
  function E2(e) {
4805
4805
  return e.trim();
@@ -4813,7 +4813,7 @@ function Ve(e, t, n) {
4813
4813
  function qo(e, t) {
4814
4814
  return e.indexOf(t);
4815
4815
  }
4816
- function ht(e, t) {
4816
+ function mt(e, t) {
4817
4817
  return e.charCodeAt(t) | 0;
4818
4818
  }
4819
4819
  function Di(e, t, n) {
@@ -4842,13 +4842,13 @@ function E7() {
4842
4842
  return ct;
4843
4843
  }
4844
4844
  function C7() {
4845
- return ct = Nt > 0 ? ht(_r, --Nt) : 0, Pr--, ct === 10 && (Pr = 1, xa--), ct;
4845
+ return ct = Nt > 0 ? mt(_r, --Nt) : 0, Pr--, ct === 10 && (Pr = 1, xa--), ct;
4846
4846
  }
4847
4847
  function Ot() {
4848
- return ct = Nt < C2 ? ht(_r, Nt++) : 0, Pr++, ct === 10 && (Pr = 1, xa++), ct;
4848
+ return ct = Nt < C2 ? mt(_r, Nt++) : 0, Pr++, ct === 10 && (Pr = 1, xa++), ct;
4849
4849
  }
4850
4850
  function mn() {
4851
- return ht(_r, Nt);
4851
+ return mt(_r, Nt);
4852
4852
  }
4853
4853
  function Nl() {
4854
4854
  return Nt;
@@ -4954,7 +4954,7 @@ function Ll(e, t, n, r, i, l, o, s, c) {
4954
4954
  switch (g = w, w = Ot()) {
4955
4955
  // (
4956
4956
  case 40:
4957
- if (g != 108 && ht(z, h - 1) == 58) {
4957
+ if (g != 108 && mt(z, h - 1) == 58) {
4958
4958
  qo(z += Ve(Dl(w), "&", "&\f"), "&\f") != -1 && (x = -1);
4959
4959
  break;
4960
4960
  }
@@ -5011,7 +5011,7 @@ function Ll(e, t, n, r, i, l, o, s, c) {
5011
5011
  if (d === 0)
5012
5012
  Ll(z, t, y, y, M, l, h, s, E);
5013
5013
  else
5014
- switch (m === 99 && ht(z, 3) === 110 ? 100 : m) {
5014
+ switch (m === 99 && mt(z, 3) === 110 ? 100 : m) {
5015
5015
  // d l m s
5016
5016
  case 100:
5017
5017
  case 108:
@@ -5254,13 +5254,13 @@ function z2(e, t) {
5254
5254
  case 5789:
5255
5255
  case 5021:
5256
5256
  case 4765:
5257
- if (cn(e) - 1 - t > 6) switch (ht(e, t + 1)) {
5257
+ if (cn(e) - 1 - t > 6) switch (mt(e, t + 1)) {
5258
5258
  // (m)ax-content, (m)in-content
5259
5259
  case 109:
5260
- if (ht(e, t + 4) !== 45) break;
5260
+ if (mt(e, t + 4) !== 45) break;
5261
5261
  // (f)ill-available, (f)it-content
5262
5262
  case 102:
5263
- return Ve(e, /(.+:)(.+)-([^]+)/, "$1" + Re + "$2-$3$1" + Jl + (ht(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
5263
+ return Ve(e, /(.+:)(.+)-([^]+)/, "$1" + Re + "$2-$3$1" + Jl + (mt(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
5264
5264
  // (s)tretch
5265
5265
  case 115:
5266
5266
  return ~qo(e, "stretch") ? z2(Ve(e, "stretch", "fill-available"), t) + e : e;
@@ -5268,21 +5268,21 @@ function z2(e, t) {
5268
5268
  break;
5269
5269
  // position: sticky
5270
5270
  case 4949:
5271
- if (ht(e, t + 1) !== 115) break;
5271
+ if (mt(e, t + 1) !== 115) break;
5272
5272
  // display: (flex|inline-flex)
5273
5273
  case 6444:
5274
- switch (ht(e, cn(e) - 3 - (~qo(e, "!important") && 10))) {
5274
+ switch (mt(e, cn(e) - 3 - (~qo(e, "!important") && 10))) {
5275
5275
  // stic(k)y
5276
5276
  case 107:
5277
5277
  return Ve(e, ":", ":" + Re) + e;
5278
5278
  // (inline-)?fl(e)x
5279
5279
  case 101:
5280
- return Ve(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Re + (ht(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Re + "$2$3$1" + gt + "$2box$3") + e;
5280
+ return Ve(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Re + (mt(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Re + "$2$3$1" + gt + "$2box$3") + e;
5281
5281
  }
5282
5282
  break;
5283
5283
  // writing-mode
5284
5284
  case 5936:
5285
- switch (ht(e, t + 11)) {
5285
+ switch (mt(e, t + 11)) {
5286
5286
  // vertical-l(r)
5287
5287
  case 114:
5288
5288
  return Re + e + gt + Ve(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
@@ -5933,7 +5933,7 @@ function fv() {
5933
5933
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5934
5934
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
5935
5935
  }
5936
- function On(e, t) {
5936
+ function Rn(e, t) {
5937
5937
  return uv(e) || dv(e, t) || x2(e, t) || fv();
5938
5938
  }
5939
5939
  function gr(e, t) {
@@ -5980,7 +5980,7 @@ function wa() {
5980
5980
  function N2(e) {
5981
5981
  return L2(e) ? (e.nodeName || "").toLowerCase() : "#document";
5982
5982
  }
5983
- function Vn(e) {
5983
+ function Gn(e) {
5984
5984
  var t;
5985
5985
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
5986
5986
  }
@@ -5989,16 +5989,16 @@ function D2(e) {
5989
5989
  return (t = (L2(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
5990
5990
  }
5991
5991
  function L2(e) {
5992
- return wa() ? e instanceof Node || e instanceof Vn(e).Node : !1;
5992
+ return wa() ? e instanceof Node || e instanceof Gn(e).Node : !1;
5993
5993
  }
5994
5994
  function vv(e) {
5995
- return wa() ? e instanceof Element || e instanceof Vn(e).Element : !1;
5995
+ return wa() ? e instanceof Element || e instanceof Gn(e).Element : !1;
5996
5996
  }
5997
5997
  function Xs(e) {
5998
- return wa() ? e instanceof HTMLElement || e instanceof Vn(e).HTMLElement : !1;
5998
+ return wa() ? e instanceof HTMLElement || e instanceof Gn(e).HTMLElement : !1;
5999
5999
  }
6000
6000
  function k1(e) {
6001
- return !wa() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Vn(e).ShadowRoot;
6001
+ return !wa() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Gn(e).ShadowRoot;
6002
6002
  }
6003
6003
  const bv = /* @__PURE__ */ new Set(["inline", "contents"]);
6004
6004
  function T2(e) {
@@ -6018,7 +6018,7 @@ function wv(e) {
6018
6018
  return yv.has(N2(e));
6019
6019
  }
6020
6020
  function Zs(e) {
6021
- return Vn(e).getComputedStyle(e);
6021
+ return Gn(e).getComputedStyle(e);
6022
6022
  }
6023
6023
  function Ev(e) {
6024
6024
  if (N2(e) === "html")
@@ -6039,7 +6039,7 @@ function B2(e) {
6039
6039
  function Ql(e, t, n) {
6040
6040
  var r;
6041
6041
  t === void 0 && (t = []), n === void 0 && (n = !0);
6042
- const i = B2(e), l = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = Vn(i);
6042
+ const i = B2(e), l = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = Gn(i);
6043
6043
  if (l) {
6044
6044
  const s = ts(o);
6045
6045
  return t.concat(o, o.visualViewport || [], T2(i) ? i : [], s && n ? Ql(s) : []);
@@ -6079,7 +6079,7 @@ function I1(e) {
6079
6079
  }
6080
6080
  const kv = /* @__PURE__ */ ql(0);
6081
6081
  function Iv(e) {
6082
- const t = Vn(e);
6082
+ const t = Gn(e);
6083
6083
  return !xv() || !t.visualViewport ? kv : {
6084
6084
  x: t.visualViewport.offsetLeft,
6085
6085
  y: t.visualViewport.offsetTop
@@ -6096,11 +6096,11 @@ function z1(e, t, n, r) {
6096
6096
  const s = zv() ? Iv(l) : ql(0);
6097
6097
  let c = (i.left + s.x) / o.x, u = (i.top + s.y) / o.y, d = i.width / o.x, h = i.height / o.y;
6098
6098
  if (l) {
6099
- const m = Vn(l), p = r;
6099
+ const m = Gn(l), p = r;
6100
6100
  let g = m, b = ts(g);
6101
6101
  for (; b && r && p !== g; ) {
6102
6102
  const v = I1(b), x = b.getBoundingClientRect(), w = Zs(b), C = x.left + (b.clientLeft + parseFloat(w.paddingLeft)) * v.x, M = x.top + (b.clientTop + parseFloat(w.paddingTop)) * v.y;
6103
- c *= v.x, u *= v.y, d *= v.x, h *= v.y, c += C, u += M, g = Vn(b), b = ts(g);
6103
+ c *= v.x, u *= v.y, d *= v.x, h *= v.y, c += C, u += M, g = Gn(b), b = ts(g);
6104
6104
  }
6105
6105
  }
6106
6106
  return gv({
@@ -6311,11 +6311,11 @@ var Vv = function(t) {
6311
6311
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
6312
6312
  r[i - 1] = arguments[i];
6313
6313
  var l = Object.entries(t).filter(function(o) {
6314
- var s = On(o, 1), c = s[0];
6314
+ var s = Rn(o, 1), c = s[0];
6315
6315
  return !r.includes(c);
6316
6316
  });
6317
6317
  return l.reduce(function(o, s) {
6318
- var c = On(s, 2), u = c[0], d = c[1];
6318
+ var c = Rn(s, 2), u = c[0], d = c[1];
6319
6319
  return o[u] = d, o;
6320
6320
  }, {});
6321
6321
  };
@@ -6408,7 +6408,7 @@ var R2 = function(t) {
6408
6408
  marginTop: s.menuGutter
6409
6409
  });
6410
6410
  }, V2 = /* @__PURE__ */ X0(null), Wv = function(t) {
6411
- var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, l = t.menuPlacement, o = t.menuPosition, s = t.menuShouldScrollIntoView, c = t.theme, u = Ns(V2) || {}, d = u.setPortalPlacement, h = he(null), m = ne(i), p = On(m, 2), g = p[0], b = p[1], v = ne(null), x = On(v, 2), w = x[0], C = x[1], M = c.spacing.controlHeight;
6411
+ var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, l = t.menuPlacement, o = t.menuPosition, s = t.menuShouldScrollIntoView, c = t.theme, u = Ns(V2) || {}, d = u.setPortalPlacement, h = he(null), m = ne(i), p = Rn(m, 2), g = p[0], b = p[1], v = ne(null), x = Rn(v, 2), w = x[0], C = x[1], M = c.spacing.controlHeight;
6412
6412
  return ns(function() {
6413
6413
  var E = h.current;
6414
6414
  if (E) {
@@ -6495,11 +6495,11 @@ var qv = function(t) {
6495
6495
  zIndex: 1
6496
6496
  };
6497
6497
  }, Qv = function(t) {
6498
- var n = t.appendTo, r = t.children, i = t.controlElement, l = t.innerProps, o = t.menuPlacement, s = t.menuPosition, c = he(null), u = he(null), d = ne(R2(o)), h = On(d, 2), m = h[0], p = h[1], g = qe(function() {
6498
+ var n = t.appendTo, r = t.children, i = t.controlElement, l = t.innerProps, o = t.menuPlacement, s = t.menuPosition, c = he(null), u = he(null), d = ne(R2(o)), h = Rn(d, 2), m = h[0], p = h[1], g = qe(function() {
6499
6499
  return {
6500
6500
  setPortalPlacement: p
6501
6501
  };
6502
- }, []), b = ne(null), v = On(b, 2), x = v[0], w = v[1], C = ke(function() {
6502
+ }, []), b = ne(null), v = Rn(b, 2), x = v[0], w = v[1], C = ke(function() {
6503
6503
  if (i) {
6504
6504
  var z = Bv(i), I = s === "fixed" ? 0 : window.pageYOffset, k = z[m] + I;
6505
6505
  (k !== x?.offset || z.left !== x?.rect.left || z.width !== x?.rect.width) && w({
@@ -8707,7 +8707,7 @@ var sd = function(t) {
8707
8707
  Ks.defaultProps = A8;
8708
8708
  var B8 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
8709
8709
  function cd(e) {
8710
- var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, l = e.defaultValue, o = l === void 0 ? null : l, s = e.inputValue, c = e.menuIsOpen, u = e.onChange, d = e.onInputChange, h = e.onMenuClose, m = e.onMenuOpen, p = e.value, g = gr(e, B8), b = ne(s !== void 0 ? s : n), v = On(b, 2), x = v[0], w = v[1], C = ne(c !== void 0 ? c : i), M = On(C, 2), E = M[0], y = M[1], z = ne(p !== void 0 ? p : o), I = On(z, 2), k = I[0], F = I[1], N = ke(function(O, G) {
8710
+ var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, l = e.defaultValue, o = l === void 0 ? null : l, s = e.inputValue, c = e.menuIsOpen, u = e.onChange, d = e.onInputChange, h = e.onMenuClose, m = e.onMenuOpen, p = e.value, g = gr(e, B8), b = ne(s !== void 0 ? s : n), v = Rn(b, 2), x = v[0], w = v[1], C = ne(c !== void 0 ? c : i), M = Rn(C, 2), E = M[0], y = M[1], z = ne(p !== void 0 ? p : o), I = Rn(z, 2), k = I[0], F = I[1], N = ke(function(O, G) {
8711
8711
  typeof u == "function" && u(O, G), F(O);
8712
8712
  }, [u]), B = ke(function(O, G) {
8713
8713
  var A;
@@ -8932,7 +8932,7 @@ const R8 = ({
8932
8932
  u && /* @__PURE__ */ f.jsx($t, {})
8933
8933
  ] }),
8934
8934
  /* @__PURE__ */ f.jsx(_t, { labels: p }),
8935
- m && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: m, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
8935
+ m && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: m, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
8936
8936
  ]
8937
8937
  }
8938
8938
  ),
@@ -10029,7 +10029,7 @@ const md = ({
10029
10029
  allowAStarSearch: v = !1,
10030
10030
  isDark: x = !1,
10031
10031
  ...w
10032
- } = e, { t: C } = vn(), [M, E] = ne(!1), [y, z] = ne("search"), I = he(null), { searchCount: k, searchPointer: F, setSearchPointer: N } = g || {}, B = () => {
10032
+ } = e, { t: C } = bn(), [M, E] = ne(!1), [y, z] = ne("search"), I = he(null), { searchCount: k, searchPointer: F, setSearchPointer: N } = g || {}, B = () => {
10033
10033
  E(!0), z(u || n || C("Search"));
10034
10034
  const L = h || I;
10035
10035
  L.current && L.current.focus();
@@ -10193,7 +10193,7 @@ const J8 = (e, t, n, r = "medium") => {
10193
10193
  onAddGTNToDocument: O,
10194
10194
  AddToDocumentIcon: G
10195
10195
  }, A) => {
10196
- const { t: _ } = vn(), $ = u === hi.TOP, D = u === hi.LEFT, U = u === hi.RIGHT, [J, ae] = ne(!1), Q = () => {
10196
+ const { t: _ } = bn(), $ = u === hi.TOP, D = u === hi.LEFT, U = u === hi.RIGHT, [J, ae] = ne(!1), Q = () => {
10197
10197
  O && O({
10198
10198
  key: C,
10199
10199
  value: t ? "Yes" : "No"
@@ -10237,13 +10237,23 @@ const J8 = (e, t, n, r = "medium") => {
10237
10237
  ]
10238
10238
  }
10239
10239
  ),
10240
- y && /* @__PURE__ */ f.jsx(Gn, { sx: { fontSize: 16, color: "var(--color-primary-600)", rotate: "15deg" } }),
10241
- p && /* @__PURE__ */ f.jsx(bn, {}),
10240
+ y && /* @__PURE__ */ f.jsx(_n, { sx: { fontSize: 16, color: "var(--color-primary-600)", rotate: "15deg" } }),
10241
+ p && /* @__PURE__ */ f.jsx(xn, {}),
10242
10242
  /* @__PURE__ */ f.jsx(_t, { labels: m || [] }),
10243
10243
  g && /* @__PURE__ */ f.jsx(st, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
10244
10244
  ]
10245
10245
  }
10246
10246
  ),
10247
+ /* @__PURE__ */ f.jsx(
10248
+ "button",
10249
+ {
10250
+ id: "btn-toggle-add-to-document",
10251
+ className: "cursor-pointer",
10252
+ onClick: Q,
10253
+ type: "button",
10254
+ children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: _("Add to document"), children: /* @__PURE__ */ f.jsx(gn, { className: "text-primary-600", sx: { fontSize: 16 } }) })
10255
+ }
10256
+ ),
10247
10257
  e && J ? V ? V(Q) : /* @__PURE__ */ f.jsx(
10248
10258
  "button",
10249
10259
  {
@@ -10251,7 +10261,7 @@ const J8 = (e, t, n, r = "medium") => {
10251
10261
  className: "cursor-pointer",
10252
10262
  onClick: Q,
10253
10263
  type: "button",
10254
- children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: _("Add to document"), children: /* @__PURE__ */ f.jsx(_n, { className: "text-primary-600", sx: { fontSize: 16 } }) })
10264
+ children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: _("Add to document"), children: /* @__PURE__ */ f.jsx(gn, { className: "text-primary-600", sx: { fontSize: 16 } }) })
10255
10265
  }
10256
10266
  ) : null
10257
10267
  ] }),
@@ -16714,7 +16724,7 @@ const VE = {
16714
16724
  RiskDetailsCard: S,
16715
16725
  ...T
16716
16726
  }, V) => {
16717
- const { t: O } = vn(), [G, A] = ne(!1), [_, $] = ne([]), [D, U] = ne(""), [J, ae] = ne(
16727
+ const { t: O } = bn(), [G, A] = ne(!1), [_, $] = ne([]), [D, U] = ne(""), [J, ae] = ne(
16718
16728
  M || "USD"
16719
16729
  ), [Q, ce] = ne(!1), W = (K) => {
16720
16730
  B && B({
@@ -16870,7 +16880,7 @@ const VE = {
16870
16880
  }
16871
16881
  ),
16872
16882
  z && /* @__PURE__ */ f.jsx(
16873
- Gn,
16883
+ _n,
16874
16884
  {
16875
16885
  sx: {
16876
16886
  fontSize: 16,
@@ -16879,7 +16889,7 @@ const VE = {
16879
16889
  }
16880
16890
  }
16881
16891
  ),
16882
- g && /* @__PURE__ */ f.jsx(bn, {}),
16892
+ g && /* @__PURE__ */ f.jsx(xn, {}),
16883
16893
  /* @__PURE__ */ f.jsx(_t, { labels: c }),
16884
16894
  h && /* @__PURE__ */ f.jsx(st, { placement: "top", title: h, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
16885
16895
  ] }),
@@ -16890,8 +16900,8 @@ const VE = {
16890
16900
  className: "cursor-pointer",
16891
16901
  onClick: () => W(Y(n)),
16892
16902
  type: "button",
16893
- children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
16894
- _n,
16903
+ children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
16904
+ gn,
16895
16905
  {
16896
16906
  className: "text-primary-600",
16897
16907
  sx: {
@@ -18180,7 +18190,7 @@ const CC = "MM/DD/YYYY", ho = "MM/DD/YYYY - hh:mm A", kC = {
18180
18190
  formatDateForGTN: N,
18181
18191
  ...B
18182
18192
  }, H) => {
18183
- const { t: L } = vn(), [S, T] = ne(!1), [V, O] = ne(null), [G, A] = ne(
18193
+ const { t: L } = bn(), [S, T] = ne(!1), [V, O] = ne(null), [G, A] = ne(
18184
18194
  null
18185
18195
  ), _ = p || (c ? ho : CC), $ = B?.id || `date-picker-${zC()}`, D = he(null);
18186
18196
  eu("paste", (W) => {
@@ -18402,7 +18412,7 @@ const CC = "MM/DD/YYYY", ho = "MM/DD/YYYY - hh:mm A", kC = {
18402
18412
  }
18403
18413
  ) }),
18404
18414
  y && /* @__PURE__ */ f.jsx(
18405
- Gn,
18415
+ _n,
18406
18416
  {
18407
18417
  sx: {
18408
18418
  fontSize: 16,
@@ -18411,7 +18421,7 @@ const CC = "MM/DD/YYYY", ho = "MM/DD/YYYY - hh:mm A", kC = {
18411
18421
  }
18412
18422
  }
18413
18423
  ),
18414
- b && /* @__PURE__ */ f.jsx(bn, {}),
18424
+ b && /* @__PURE__ */ f.jsx(xn, {}),
18415
18425
  /* @__PURE__ */ f.jsx(_t, { labels: u }),
18416
18426
  g && /* @__PURE__ */ f.jsx(st, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
18417
18427
  ] }),
@@ -18422,8 +18432,8 @@ const CC = "MM/DD/YYYY", ho = "MM/DD/YYYY - hh:mm A", kC = {
18422
18432
  className: "cursor-pointer",
18423
18433
  onClick: () => U(t),
18424
18434
  type: "button",
18425
- children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: L("Add to document"), children: /* @__PURE__ */ f.jsx(
18426
- _n,
18435
+ children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: L("Add to document"), children: /* @__PURE__ */ f.jsx(
18436
+ gn,
18427
18437
  {
18428
18438
  className: "text-primary-600",
18429
18439
  sx: {
@@ -18613,7 +18623,7 @@ const SC = Ue(
18613
18623
  showDeprecatedFieldWarning: H,
18614
18624
  DynamicDataModal: L
18615
18625
  }, S) => {
18616
- const { t: T } = vn(), [V, O] = ne(!1), [G, A] = ne(r), [_, $] = ne(!1), D = he(null), U = S || D, J = () => {
18626
+ const { t: T } = bn(), [V, O] = ne(!1), [G, A] = ne(r), [_, $] = ne(!1), D = he(null), U = S || D, J = () => {
18617
18627
  B?.(!_), $(!_);
18618
18628
  }, ae = (Y) => {
18619
18629
  if (Y.keyCode === 9 || Y.key === "Enter") {
@@ -18668,7 +18678,7 @@ const SC = Ue(
18668
18678
  }
18669
18679
  ),
18670
18680
  M && /* @__PURE__ */ f.jsx(
18671
- Gn,
18681
+ _n,
18672
18682
  {
18673
18683
  sx: {
18674
18684
  fontSize: 16,
@@ -18677,7 +18687,7 @@ const SC = Ue(
18677
18687
  }
18678
18688
  }
18679
18689
  ),
18680
- x && /* @__PURE__ */ f.jsx(bn, {}),
18690
+ x && /* @__PURE__ */ f.jsx(xn, {}),
18681
18691
  /* @__PURE__ */ f.jsx(_t, { labels: h }),
18682
18692
  m && /* @__PURE__ */ f.jsx(st, { placement: "top", title: m, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
18683
18693
  ] }),
@@ -18688,8 +18698,8 @@ const SC = Ue(
18688
18698
  className: "cursor-pointer",
18689
18699
  onClick: () => ce(r?.toString() || ""),
18690
18700
  type: "button",
18691
- children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: T("Add to document"), children: /* @__PURE__ */ f.jsx(
18692
- _n,
18701
+ children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: T("Add to document"), children: /* @__PURE__ */ f.jsx(
18702
+ gn,
18693
18703
  {
18694
18704
  sx: {
18695
18705
  fontSize: 16,
@@ -18807,7 +18817,7 @@ function i4(e) {
18807
18817
  } else for (n in e) e[n] && (r && (r += " "), r += n);
18808
18818
  return r;
18809
18819
  }
18810
- function In() {
18820
+ function zn() {
18811
18821
  for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = i4(e)) && (r && (r += " "), r += t);
18812
18822
  return r;
18813
18823
  }
@@ -18982,7 +18992,7 @@ function TC(e) {
18982
18992
  let { delay: t, isRunning: n, closeToast: r, type: i = "default", hide: l, className: o, style: s, controlledProgress: c, progress: u, rtl: d, isIn: h, theme: m } = e;
18983
18993
  const p = l || c && u === 0, g = { ...s, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused" };
18984
18994
  c && (g.transform = `scaleX(${u})`);
18985
- const b = In("Toastify__progress-bar", c ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${m}`, `Toastify__progress-bar--${i}`, { "Toastify__progress-bar--rtl": d }), v = Pt(o) ? o({ rtl: d, type: i, defaultClassName: b }) : In(b, o), x = { [c && u >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: c && u < 1 ? null : () => {
18995
+ const b = zn("Toastify__progress-bar", c ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${m}`, `Toastify__progress-bar--${i}`, { "Toastify__progress-bar--rtl": d }), v = Pt(o) ? o({ rtl: d, type: i, defaultClassName: b }) : zn(b, o), x = { [c && u >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: c && u < 1 ? null : () => {
18986
18996
  h && r();
18987
18997
  } };
18988
18998
  return a.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": p }, a.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${m} Toastify__progress-bar--${i}` }), a.createElement("div", { role: "progressbar", "aria-hidden": p ? "true" : "false", "aria-label": "notification timer", className: v, style: g, ...x }));
@@ -19066,7 +19076,7 @@ const jC = typeof window < "u" ? Ds : pe, dl = (e) => {
19066
19076
  }, spinner: function() {
19067
19077
  return a.createElement("div", { className: "Toastify__spinner" });
19068
19078
  } }, PC = (e) => {
19069
- const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: i, playToast: l } = LC(e), { closeButton: o, children: s, autoClose: c, onClick: u, type: d, hideProgressBar: h, closeToast: m, transition: p, position: g, className: b, style: v, bodyClassName: x, bodyStyle: w, progressClassName: C, progressStyle: M, updateId: E, role: y, progress: z, rtl: I, toastId: k, deleteToast: F, isIn: N, isLoading: B, closeOnClick: H, theme: L } = e, S = In("Toastify__toast", `Toastify__toast-theme--${L}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": H }), T = Pt(b) ? b({ rtl: I, position: g, type: d, defaultClassName: S }) : In(S, b), V = function(_) {
19079
+ const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: i, playToast: l } = LC(e), { closeButton: o, children: s, autoClose: c, onClick: u, type: d, hideProgressBar: h, closeToast: m, transition: p, position: g, className: b, style: v, bodyClassName: x, bodyStyle: w, progressClassName: C, progressStyle: M, updateId: E, role: y, progress: z, rtl: I, toastId: k, deleteToast: F, isIn: N, isLoading: B, closeOnClick: H, theme: L } = e, S = zn("Toastify__toast", `Toastify__toast-theme--${L}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": H }), T = Pt(b) ? b({ rtl: I, position: g, type: d, defaultClassName: S }) : zn(S, b), V = function(_) {
19070
19080
  let { theme: $, type: D, isLoading: U, icon: J } = _, ae = null;
19071
19081
  const Q = { theme: $, type: D };
19072
19082
  return J === !1 || (Pt(J) ? ae = J({ ...Q, isLoading: U }) : Nr(J) ? ae = $o(J, Q) : U ? ae = mo.spinner() : ((ce) => ce in mo)(D) && (ae = mo[D](Q))), ae;
@@ -19077,7 +19087,7 @@ const jC = typeof window < "u" ? Ds : pe, dl = (e) => {
19077
19087
  return a.createElement("button", { className: `Toastify__close-button Toastify__close-button--${D}`, type: "button", onClick: (J) => {
19078
19088
  J.stopPropagation(), $(J);
19079
19089
  }, "aria-label": U }, a.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, a.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
19080
- }(G)), a.createElement(p, { isIn: N, done: F, position: g, preventExitTransition: n, nodeRef: r, playToast: l }, a.createElement("div", { id: k, onClick: u, "data-in": N, className: T, ...i, style: v, ref: r }, a.createElement("div", { ...N && { role: y }, className: Pt(x) ? x({ type: d }) : In("Toastify__toast-body", x), style: w }, V != null && a.createElement("div", { className: In("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !B }) }, V), a.createElement("div", null, s)), A, a.createElement(TC, { ...E && !O ? { key: `pb-${E}` } : {}, rtl: I, theme: L, delay: c, isRunning: t, isIn: N, closeToast: m, hide: h, type: d, style: M, className: C, controlledProgress: O, progress: z || 0 })));
19090
+ }(G)), a.createElement(p, { isIn: N, done: F, position: g, preventExitTransition: n, nodeRef: r, playToast: l }, a.createElement("div", { id: k, onClick: u, "data-in": N, className: T, ...i, style: v, ref: r }, a.createElement("div", { ...N && { role: y }, className: Pt(x) ? x({ type: d }) : zn("Toastify__toast-body", x), style: w }, V != null && a.createElement("div", { className: zn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !B }) }, V), a.createElement("div", null, s)), A, a.createElement(TC, { ...E && !O ? { key: `pb-${E}` } : {}, rtl: I, theme: L, delay: c, isRunning: t, isIn: N, closeToast: m, hide: h, type: d, style: M, className: C, controlledProgress: O, progress: z || 0 })));
19081
19091
  }, ka = function(e, t) {
19082
19092
  return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
19083
19093
  }, OC = Ca(ka("bounce", !0)), RC = Ca(ka("slide", !0));
@@ -19088,8 +19098,8 @@ function GC(e) {
19088
19098
  let t = { ...VC, ...e };
19089
19099
  const n = e.stacked, [r, i] = ne(!0), l = he(null), { getToastToRender: o, isToastActive: s, count: c } = DC(t), { className: u, style: d, rtl: h, containerId: m } = t;
19090
19100
  function p(b) {
19091
- const v = In("Toastify__toast-container", `Toastify__toast-container--${b}`, { "Toastify__toast-container--rtl": h });
19092
- return Pt(u) ? u({ position: b, rtl: h, defaultClassName: v }) : In(v, Rl(u));
19101
+ const v = zn("Toastify__toast-container", `Toastify__toast-container--${b}`, { "Toastify__toast-container--rtl": h });
19102
+ return Pt(u) ? u({ position: b, rtl: h, defaultClassName: v }) : zn(v, Rl(u));
19093
19103
  }
19094
19104
  function g() {
19095
19105
  n && (i(!0), Ne.play());
@@ -20458,11 +20468,11 @@ function hk() {
20458
20468
  return n.writeUnknownFields && this.writeUnknownFields(e, t), t;
20459
20469
  } });
20460
20470
  }
20461
- let kn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), Ia = [];
20462
- for (let e = 0; e < kn.length; e++)
20463
- Ia[kn[e].charCodeAt(0)] = e;
20464
- Ia[45] = kn.indexOf("+");
20465
- Ia[95] = kn.indexOf("/");
20471
+ let In = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), Ia = [];
20472
+ for (let e = 0; e < In.length; e++)
20473
+ Ia[In[e].charCodeAt(0)] = e;
20474
+ Ia[45] = In.indexOf("+");
20475
+ Ia[95] = In.indexOf("/");
20466
20476
  const za = {
20467
20477
  /**
20468
20478
  * Decodes a base64 string to a byte array.
@@ -20524,16 +20534,16 @@ const za = {
20524
20534
  for (let l = 0; l < e.length; l++)
20525
20535
  switch (r = e[l], n) {
20526
20536
  case 0:
20527
- t += kn[r >> 2], i = (r & 3) << 4, n = 1;
20537
+ t += In[r >> 2], i = (r & 3) << 4, n = 1;
20528
20538
  break;
20529
20539
  case 1:
20530
- t += kn[i | r >> 4], i = (r & 15) << 2, n = 2;
20540
+ t += In[i | r >> 4], i = (r & 15) << 2, n = 2;
20531
20541
  break;
20532
20542
  case 2:
20533
- t += kn[i | r >> 6], t += kn[r & 63], n = 0;
20543
+ t += In[i | r >> 6], t += In[r & 63], n = 0;
20534
20544
  break;
20535
20545
  }
20536
- return n && (t += kn[i], t += "=", n == 1 && (t += "=")), t;
20546
+ return n && (t += In[i], t += "=", n == 1 && (t += "=")), t;
20537
20547
  }
20538
20548
  }, su = {
20539
20549
  ignoreUnknownFields: !1
@@ -21223,7 +21233,7 @@ function Sk(e) {
21223
21233
  }
21224
21234
  return hl[e];
21225
21235
  }
21226
- class mt extends Error {
21236
+ class pt extends Error {
21227
21237
  /**
21228
21238
  * Create a new ConnectError.
21229
21239
  * If no code is provided, code "unknown" is used.
@@ -21247,7 +21257,7 @@ class mt extends Error {
21247
21257
  * ConnectError.
21248
21258
  */
21249
21259
  static from(t, n = Ge.Unknown) {
21250
- return t instanceof mt ? t : t instanceof Error ? t.name == "AbortError" ? new mt(t.message, Ge.Canceled) : new mt(t.message, n, void 0, void 0, t) : new mt(String(t), n, void 0, void 0, t);
21260
+ return t instanceof pt ? t : t instanceof Error ? t.name == "AbortError" ? new pt(t.message, Ge.Canceled) : new pt(t.message, n, void 0, void 0, t) : new pt(String(t), n, void 0, void 0, t);
21251
21261
  }
21252
21262
  findDetails(t) {
21253
21263
  const n = "typeName" in t ? {
@@ -21321,7 +21331,7 @@ function Lk(e) {
21321
21331
  i.close();
21322
21332
  return;
21323
21333
  }
21324
- i.error(new mt("premature end of stream", Ge.DataLoss));
21334
+ i.error(new pt("premature end of stream", Ge.DataLoss));
21325
21335
  return;
21326
21336
  }
21327
21337
  const o = n.subarray(5, 5 + l.length);
@@ -21520,7 +21530,7 @@ function $k(e, t, n) {
21520
21530
  }
21521
21531
  }
21522
21532
  if (!m)
21523
- throw new mt("protocol error: missing response message", Ge.Internal);
21533
+ throw new pt("protocol error: missing response message", Ge.Internal);
21524
21534
  return (d = i?.onTrailer) === null || d === void 0 || d.call(i, h.trailer), m;
21525
21535
  };
21526
21536
  }
@@ -21561,7 +21571,7 @@ function Uk(...e) {
21561
21571
  }
21562
21572
  function Xk(e) {
21563
21573
  const t = new AbortController(), n = () => {
21564
- t.abort(new mt("the operation timed out", Ge.DeadlineExceeded));
21574
+ t.abort(new pt("the operation timed out", Ge.DeadlineExceeded));
21565
21575
  };
21566
21576
  let r;
21567
21577
  return e !== void 0 && (e <= 0 ? n() : r = setTimeout(n, e)), {
@@ -21629,7 +21639,7 @@ function mu(e, t) {
21629
21639
  return e.fromBinary(n, t);
21630
21640
  } catch (r) {
21631
21641
  const i = r instanceof Error ? r.message : String(r);
21632
- throw new mt(`parse binary: ${i}`, Ge.InvalidArgument);
21642
+ throw new pt(`parse binary: ${i}`, Ge.InvalidArgument);
21633
21643
  }
21634
21644
  },
21635
21645
  serialize(n) {
@@ -21637,7 +21647,7 @@ function mu(e, t) {
21637
21647
  return n.toBinary(t);
21638
21648
  } catch (r) {
21639
21649
  const i = r instanceof Error ? r.message : String(r);
21640
- throw new mt(`serialize binary: ${i}`, Ge.Internal);
21650
+ throw new pt(`serialize binary: ${i}`, Ge.Internal);
21641
21651
  }
21642
21652
  }
21643
21653
  };
@@ -21651,7 +21661,7 @@ function pu(e, t) {
21651
21661
  const c = l.decode(s);
21652
21662
  return e.fromJsonString(c, o);
21653
21663
  } catch (c) {
21654
- throw mt.from(c, Ge.InvalidArgument);
21664
+ throw pt.from(c, Ge.InvalidArgument);
21655
21665
  }
21656
21666
  },
21657
21667
  serialize(s) {
@@ -21659,7 +21669,7 @@ function pu(e, t) {
21659
21669
  const c = s.toJsonString(o);
21660
21670
  return i.encode(c);
21661
21671
  } catch (c) {
21662
- throw mt.from(c, Ge.Internal);
21672
+ throw pt.from(c, Ge.Internal);
21663
21673
  }
21664
21674
  }
21665
21675
  };
@@ -21681,7 +21691,7 @@ function M4(e, t, n) {
21681
21691
  const i = e.message;
21682
21692
  if (i != null && typeof i != "string")
21683
21693
  throw n;
21684
- const l = new mt(i ?? "", r, t);
21694
+ const l = new pt(i ?? "", r, t);
21685
21695
  if ("details" in e && Array.isArray(e.details))
21686
21696
  for (const o of e.details) {
21687
21697
  if (o === null || typeof o != "object" || Array.isArray(o) || typeof o.type != "string" || typeof o.value != "string" || "debug" in o && typeof o.debug != "object")
@@ -21700,7 +21710,7 @@ function M4(e, t, n) {
21700
21710
  }
21701
21711
  const gu = 2;
21702
21712
  function tI(e) {
21703
- const t = new mt("invalid end stream", Ge.InvalidArgument);
21713
+ const t = new pt("invalid end stream", Ge.InvalidArgument);
21704
21714
  let n;
21705
21715
  try {
21706
21716
  n = JSON.parse(typeof e == "string" ? e : new TextDecoder().decode(e));
@@ -21772,7 +21782,7 @@ function xu(e, t, n, r) {
21772
21782
  function yu(e, t, n) {
21773
21783
  const r = n.get("Content-Type"), i = eI(r);
21774
21784
  if (t !== 200) {
21775
- const l = new mt(`HTTP ${t}`, aI(t), n);
21785
+ const l = new pt(`HTTP ${t}`, aI(t), n);
21776
21786
  if (e == Zt.Unary && i && !i.binary)
21777
21787
  return { isUnaryError: !0, unaryError: l };
21778
21788
  throw l;
@@ -21832,7 +21842,7 @@ function N4(e) {
21832
21842
  return [
21833
21843
  r.signal,
21834
21844
  function(l) {
21835
- const o = mt.from(t.aborted ? I4(t) : l);
21845
+ const o = pt.from(t.aborted ? I4(t) : l);
21836
21846
  return r.abort(o), n(), Promise.reject(o);
21837
21847
  },
21838
21848
  function() {
@@ -22665,26 +22675,26 @@ le.util.setEnumType(ue, "exa.codeium_common_pb.Language", [
22665
22675
  { no: 64, name: "LANGUAGE_ADA" },
22666
22676
  { no: 65, name: "LANGUAGE_OCAML_INTERFACE" }
22667
22677
  ]);
22668
- class zn extends Ke {
22678
+ class Fn extends Ke {
22669
22679
  constructor(t) {
22670
22680
  super(), this.completionId = "", this.text = "", this.prefix = "", this.stop = "", this.score = 0, this.tokens = [], this.decodedTokens = [], this.probabilities = [], this.adjustedProbabilities = [], this.generatedLength = Ze.zero, le.util.initPartial(t, this);
22671
22681
  }
22672
22682
  static fromBinary(t, n) {
22673
- return new zn().fromBinary(t, n);
22683
+ return new Fn().fromBinary(t, n);
22674
22684
  }
22675
22685
  static fromJson(t, n) {
22676
- return new zn().fromJson(t, n);
22686
+ return new Fn().fromJson(t, n);
22677
22687
  }
22678
22688
  static fromJsonString(t, n) {
22679
- return new zn().fromJsonString(t, n);
22689
+ return new Fn().fromJsonString(t, n);
22680
22690
  }
22681
22691
  static equals(t, n) {
22682
- return le.util.equals(zn, t, n);
22692
+ return le.util.equals(Fn, t, n);
22683
22693
  }
22684
22694
  }
22685
- zn.runtime = le;
22686
- zn.typeName = "exa.codeium_common_pb.Completion";
22687
- zn.fields = le.util.newFieldList(() => [
22695
+ Fn.runtime = le;
22696
+ Fn.typeName = "exa.codeium_common_pb.Completion";
22697
+ Fn.fields = le.util.newFieldList(() => [
22688
22698
  {
22689
22699
  no: 1,
22690
22700
  name: "completion_id",
@@ -22824,26 +22834,26 @@ tn.fields = le.util.newFieldList(() => [
22824
22834
  },
22825
22835
  { no: 15, name: "auth_source", kind: "enum", T: le.getEnumType(Ri) }
22826
22836
  ]);
22827
- class Fn extends Ke {
22837
+ class Mn extends Ke {
22828
22838
  constructor(t) {
22829
22839
  super(), this.tabSize = Ze.zero, this.insertSpaces = !1, le.util.initPartial(t, this);
22830
22840
  }
22831
22841
  static fromBinary(t, n) {
22832
- return new Fn().fromBinary(t, n);
22842
+ return new Mn().fromBinary(t, n);
22833
22843
  }
22834
22844
  static fromJson(t, n) {
22835
- return new Fn().fromJson(t, n);
22845
+ return new Mn().fromJson(t, n);
22836
22846
  }
22837
22847
  static fromJsonString(t, n) {
22838
- return new Fn().fromJsonString(t, n);
22848
+ return new Mn().fromJsonString(t, n);
22839
22849
  }
22840
22850
  static equals(t, n) {
22841
- return le.util.equals(Fn, t, n);
22851
+ return le.util.equals(Mn, t, n);
22842
22852
  }
22843
22853
  }
22844
- Fn.runtime = le;
22845
- Fn.typeName = "exa.codeium_common_pb.EditorOptions";
22846
- Fn.fields = le.util.newFieldList(() => [
22854
+ Mn.runtime = le;
22855
+ Mn.typeName = "exa.codeium_common_pb.EditorOptions";
22856
+ Mn.fields = le.util.newFieldList(() => [
22847
22857
  {
22848
22858
  no: 1,
22849
22859
  name: "tab_size",
@@ -22954,31 +22964,31 @@ dn.fields = le.util.newFieldList(() => [
22954
22964
  /* ScalarType.FLOAT */
22955
22965
  }
22956
22966
  ]);
22957
- class Mn extends Ke {
22967
+ class Sn extends Ke {
22958
22968
  constructor(t) {
22959
22969
  super(), this.otherDocuments = [], this.modelName = "", le.util.initPartial(t, this);
22960
22970
  }
22961
22971
  static fromBinary(t, n) {
22962
- return new Mn().fromBinary(t, n);
22972
+ return new Sn().fromBinary(t, n);
22963
22973
  }
22964
22974
  static fromJson(t, n) {
22965
- return new Mn().fromJson(t, n);
22975
+ return new Sn().fromJson(t, n);
22966
22976
  }
22967
22977
  static fromJsonString(t, n) {
22968
- return new Mn().fromJsonString(t, n);
22978
+ return new Sn().fromJsonString(t, n);
22969
22979
  }
22970
22980
  static equals(t, n) {
22971
- return le.util.equals(Mn, t, n);
22981
+ return le.util.equals(Sn, t, n);
22972
22982
  }
22973
22983
  }
22974
- Mn.runtime = le;
22975
- Mn.typeName = "exa.language_server_pb.GetCompletionsRequest";
22976
- Mn.fields = le.util.newFieldList(() => [
22984
+ Sn.runtime = le;
22985
+ Sn.typeName = "exa.language_server_pb.GetCompletionsRequest";
22986
+ Sn.fields = le.util.newFieldList(() => [
22977
22987
  { no: 1, name: "metadata", kind: "message", T: tn },
22978
22988
  { no: 2, name: "document", kind: "message", T: Rr },
22979
- { no: 3, name: "editor_options", kind: "message", T: Fn },
22989
+ { no: 3, name: "editor_options", kind: "message", T: Mn },
22980
22990
  { no: 5, name: "other_documents", kind: "message", T: Rr, repeated: !0 },
22981
- { no: 7, name: "experiment_config", kind: "message", T: Tn },
22991
+ { no: 7, name: "experiment_config", kind: "message", T: Bn },
22982
22992
  {
22983
22993
  no: 10,
22984
22994
  name: "model_name",
@@ -22988,32 +22998,9 @@ Mn.fields = le.util.newFieldList(() => [
22988
22998
  },
22989
22999
  { no: 13, name: "multiline_config", kind: "message", T: dn }
22990
23000
  ]);
22991
- class Sn extends Ke {
22992
- constructor(t) {
22993
- super(), this.completionItems = [], le.util.initPartial(t, this);
22994
- }
22995
- static fromBinary(t, n) {
22996
- return new Sn().fromBinary(t, n);
22997
- }
22998
- static fromJson(t, n) {
22999
- return new Sn().fromJson(t, n);
23000
- }
23001
- static fromJsonString(t, n) {
23002
- return new Sn().fromJsonString(t, n);
23003
- }
23004
- static equals(t, n) {
23005
- return le.util.equals(Sn, t, n);
23006
- }
23007
- }
23008
- Sn.runtime = le;
23009
- Sn.typeName = "exa.language_server_pb.GetCompletionsResponse";
23010
- Sn.fields = le.util.newFieldList(() => [
23011
- { no: 1, name: "state", kind: "message", T: Bn },
23012
- { no: 2, name: "completion_items", kind: "message", T: Pn, repeated: !0 }
23013
- ]);
23014
23001
  class An extends Ke {
23015
23002
  constructor(t) {
23016
- super(), this.completionId = "", le.util.initPartial(t, this);
23003
+ super(), this.completionItems = [], le.util.initPartial(t, this);
23017
23004
  }
23018
23005
  static fromBinary(t, n) {
23019
23006
  return new An().fromBinary(t, n);
@@ -23029,20 +23016,14 @@ class An extends Ke {
23029
23016
  }
23030
23017
  }
23031
23018
  An.runtime = le;
23032
- An.typeName = "exa.language_server_pb.AcceptCompletionRequest";
23019
+ An.typeName = "exa.language_server_pb.GetCompletionsResponse";
23033
23020
  An.fields = le.util.newFieldList(() => [
23034
- { no: 1, name: "metadata", kind: "message", T: tn },
23035
- {
23036
- no: 2,
23037
- name: "completion_id",
23038
- kind: "scalar",
23039
- T: 9
23040
- /* ScalarType.STRING */
23041
- }
23021
+ { no: 1, name: "state", kind: "message", T: Hn },
23022
+ { no: 2, name: "completion_items", kind: "message", T: On, repeated: !0 }
23042
23023
  ]);
23043
23024
  class Nn extends Ke {
23044
23025
  constructor(t) {
23045
- super(), le.util.initPartial(t, this);
23026
+ super(), this.completionId = "", le.util.initPartial(t, this);
23046
23027
  }
23047
23028
  static fromBinary(t, n) {
23048
23029
  return new Nn().fromBinary(t, n);
@@ -23058,8 +23039,17 @@ class Nn extends Ke {
23058
23039
  }
23059
23040
  }
23060
23041
  Nn.runtime = le;
23061
- Nn.typeName = "exa.language_server_pb.AcceptCompletionResponse";
23062
- Nn.fields = le.util.newFieldList(() => []);
23042
+ Nn.typeName = "exa.language_server_pb.AcceptCompletionRequest";
23043
+ Nn.fields = le.util.newFieldList(() => [
23044
+ { no: 1, name: "metadata", kind: "message", T: tn },
23045
+ {
23046
+ no: 2,
23047
+ name: "completion_id",
23048
+ kind: "scalar",
23049
+ T: 9
23050
+ /* ScalarType.STRING */
23051
+ }
23052
+ ]);
23063
23053
  class Dn extends Ke {
23064
23054
  constructor(t) {
23065
23055
  super(), le.util.initPartial(t, this);
@@ -23078,11 +23068,11 @@ class Dn extends Ke {
23078
23068
  }
23079
23069
  }
23080
23070
  Dn.runtime = le;
23081
- Dn.typeName = "exa.language_server_pb.GetAuthTokenRequest";
23071
+ Dn.typeName = "exa.language_server_pb.AcceptCompletionResponse";
23082
23072
  Dn.fields = le.util.newFieldList(() => []);
23083
23073
  class Ln extends Ke {
23084
23074
  constructor(t) {
23085
- super(), this.authToken = "", this.uuid = "", le.util.initPartial(t, this);
23075
+ super(), le.util.initPartial(t, this);
23086
23076
  }
23087
23077
  static fromBinary(t, n) {
23088
23078
  return new Ln().fromBinary(t, n);
@@ -23098,8 +23088,28 @@ class Ln extends Ke {
23098
23088
  }
23099
23089
  }
23100
23090
  Ln.runtime = le;
23101
- Ln.typeName = "exa.language_server_pb.GetAuthTokenResponse";
23102
- Ln.fields = le.util.newFieldList(() => [
23091
+ Ln.typeName = "exa.language_server_pb.GetAuthTokenRequest";
23092
+ Ln.fields = le.util.newFieldList(() => []);
23093
+ class Tn extends Ke {
23094
+ constructor(t) {
23095
+ super(), this.authToken = "", this.uuid = "", le.util.initPartial(t, this);
23096
+ }
23097
+ static fromBinary(t, n) {
23098
+ return new Tn().fromBinary(t, n);
23099
+ }
23100
+ static fromJson(t, n) {
23101
+ return new Tn().fromJson(t, n);
23102
+ }
23103
+ static fromJsonString(t, n) {
23104
+ return new Tn().fromJsonString(t, n);
23105
+ }
23106
+ static equals(t, n) {
23107
+ return le.util.equals(Tn, t, n);
23108
+ }
23109
+ }
23110
+ Tn.runtime = le;
23111
+ Tn.typeName = "exa.language_server_pb.GetAuthTokenResponse";
23112
+ Tn.fields = le.util.newFieldList(() => [
23103
23113
  {
23104
23114
  no: 1,
23105
23115
  name: "auth_token",
@@ -23215,48 +23225,48 @@ Rr.fields = le.util.newFieldList(() => [
23215
23225
  /* ScalarType.STRING */
23216
23226
  }
23217
23227
  ]);
23218
- class Tn extends Ke {
23228
+ class Bn extends Ke {
23219
23229
  constructor(t) {
23220
23230
  super(), this.forceEnableExperiments = [], le.util.initPartial(t, this);
23221
23231
  }
23222
23232
  static fromBinary(t, n) {
23223
- return new Tn().fromBinary(t, n);
23233
+ return new Bn().fromBinary(t, n);
23224
23234
  }
23225
23235
  static fromJson(t, n) {
23226
- return new Tn().fromJson(t, n);
23236
+ return new Bn().fromJson(t, n);
23227
23237
  }
23228
23238
  static fromJsonString(t, n) {
23229
- return new Tn().fromJsonString(t, n);
23239
+ return new Bn().fromJsonString(t, n);
23230
23240
  }
23231
23241
  static equals(t, n) {
23232
- return le.util.equals(Tn, t, n);
23242
+ return le.util.equals(Bn, t, n);
23233
23243
  }
23234
23244
  }
23235
- Tn.runtime = le;
23236
- Tn.typeName = "exa.language_server_pb.ExperimentConfig";
23237
- Tn.fields = le.util.newFieldList(() => [
23245
+ Bn.runtime = le;
23246
+ Bn.typeName = "exa.language_server_pb.ExperimentConfig";
23247
+ Bn.fields = le.util.newFieldList(() => [
23238
23248
  { no: 1, name: "force_enable_experiments", kind: "enum", T: le.getEnumType(ca), repeated: !0 }
23239
23249
  ]);
23240
- class Bn extends Ke {
23250
+ class Hn extends Ke {
23241
23251
  constructor(t) {
23242
23252
  super(), this.state = _i.UNSPECIFIED, this.message = "", le.util.initPartial(t, this);
23243
23253
  }
23244
23254
  static fromBinary(t, n) {
23245
- return new Bn().fromBinary(t, n);
23255
+ return new Hn().fromBinary(t, n);
23246
23256
  }
23247
23257
  static fromJson(t, n) {
23248
- return new Bn().fromJson(t, n);
23258
+ return new Hn().fromJson(t, n);
23249
23259
  }
23250
23260
  static fromJsonString(t, n) {
23251
- return new Bn().fromJsonString(t, n);
23261
+ return new Hn().fromJsonString(t, n);
23252
23262
  }
23253
23263
  static equals(t, n) {
23254
- return le.util.equals(Bn, t, n);
23264
+ return le.util.equals(Hn, t, n);
23255
23265
  }
23256
23266
  }
23257
- Bn.runtime = le;
23258
- Bn.typeName = "exa.language_server_pb.State";
23259
- Bn.fields = le.util.newFieldList(() => [
23267
+ Hn.runtime = le;
23268
+ Hn.typeName = "exa.language_server_pb.State";
23269
+ Hn.fields = le.util.newFieldList(() => [
23260
23270
  { no: 1, name: "state", kind: "enum", T: le.getEnumType(_i) },
23261
23271
  {
23262
23272
  no: 2,
@@ -23303,26 +23313,26 @@ Ma.fields = le.util.newFieldList(() => [
23303
23313
  { no: 3, name: "start_position", kind: "message", T: nn },
23304
23314
  { no: 4, name: "end_position", kind: "message", T: nn }
23305
23315
  ]);
23306
- class Hn extends Ke {
23316
+ class jn extends Ke {
23307
23317
  constructor(t) {
23308
23318
  super(), this.text = "", this.deltaCursorOffset = Ze.zero, le.util.initPartial(t, this);
23309
23319
  }
23310
23320
  static fromBinary(t, n) {
23311
- return new Hn().fromBinary(t, n);
23321
+ return new jn().fromBinary(t, n);
23312
23322
  }
23313
23323
  static fromJson(t, n) {
23314
- return new Hn().fromJson(t, n);
23324
+ return new jn().fromJson(t, n);
23315
23325
  }
23316
23326
  static fromJsonString(t, n) {
23317
- return new Hn().fromJsonString(t, n);
23327
+ return new jn().fromJsonString(t, n);
23318
23328
  }
23319
23329
  static equals(t, n) {
23320
- return le.util.equals(Hn, t, n);
23330
+ return le.util.equals(jn, t, n);
23321
23331
  }
23322
23332
  }
23323
- Hn.runtime = le;
23324
- Hn.typeName = "exa.language_server_pb.Suffix";
23325
- Hn.fields = le.util.newFieldList(() => [
23333
+ jn.runtime = le;
23334
+ jn.typeName = "exa.language_server_pb.Suffix";
23335
+ jn.fields = le.util.newFieldList(() => [
23326
23336
  {
23327
23337
  no: 1,
23328
23338
  name: "text",
@@ -23338,26 +23348,26 @@ Hn.fields = le.util.newFieldList(() => [
23338
23348
  /* ScalarType.INT64 */
23339
23349
  }
23340
23350
  ]);
23341
- class jn extends Ke {
23351
+ class Pn extends Ke {
23342
23352
  constructor(t) {
23343
23353
  super(), this.text = "", this.offset = Ze.zero, this.type = $i.UNSPECIFIED, this.prefix = "", this.line = Ze.zero, le.util.initPartial(t, this);
23344
23354
  }
23345
23355
  static fromBinary(t, n) {
23346
- return new jn().fromBinary(t, n);
23356
+ return new Pn().fromBinary(t, n);
23347
23357
  }
23348
23358
  static fromJson(t, n) {
23349
- return new jn().fromJson(t, n);
23359
+ return new Pn().fromJson(t, n);
23350
23360
  }
23351
23361
  static fromJsonString(t, n) {
23352
- return new jn().fromJsonString(t, n);
23362
+ return new Pn().fromJsonString(t, n);
23353
23363
  }
23354
23364
  static equals(t, n) {
23355
- return le.util.equals(jn, t, n);
23365
+ return le.util.equals(Pn, t, n);
23356
23366
  }
23357
23367
  }
23358
- jn.runtime = le;
23359
- jn.typeName = "exa.language_server_pb.CompletionPart";
23360
- jn.fields = le.util.newFieldList(() => [
23368
+ Pn.runtime = le;
23369
+ Pn.typeName = "exa.language_server_pb.CompletionPart";
23370
+ Pn.fields = le.util.newFieldList(() => [
23361
23371
  {
23362
23372
  no: 1,
23363
23373
  name: "text",
@@ -23388,31 +23398,31 @@ jn.fields = le.util.newFieldList(() => [
23388
23398
  /* ScalarType.UINT64 */
23389
23399
  }
23390
23400
  ]);
23391
- class Pn extends Ke {
23401
+ class On extends Ke {
23392
23402
  constructor(t) {
23393
23403
  super(), this.source = Gi.UNSPECIFIED, this.completionParts = [], le.util.initPartial(t, this);
23394
23404
  }
23395
23405
  static fromBinary(t, n) {
23396
- return new Pn().fromBinary(t, n);
23406
+ return new On().fromBinary(t, n);
23397
23407
  }
23398
23408
  static fromJson(t, n) {
23399
- return new Pn().fromJson(t, n);
23409
+ return new On().fromJson(t, n);
23400
23410
  }
23401
23411
  static fromJsonString(t, n) {
23402
- return new Pn().fromJsonString(t, n);
23412
+ return new On().fromJsonString(t, n);
23403
23413
  }
23404
23414
  static equals(t, n) {
23405
- return le.util.equals(Pn, t, n);
23415
+ return le.util.equals(On, t, n);
23406
23416
  }
23407
23417
  }
23408
- Pn.runtime = le;
23409
- Pn.typeName = "exa.language_server_pb.CompletionItem";
23410
- Pn.fields = le.util.newFieldList(() => [
23411
- { no: 1, name: "completion", kind: "message", T: zn },
23412
- { no: 5, name: "suffix", kind: "message", T: Hn },
23418
+ On.runtime = le;
23419
+ On.typeName = "exa.language_server_pb.CompletionItem";
23420
+ On.fields = le.util.newFieldList(() => [
23421
+ { no: 1, name: "completion", kind: "message", T: Fn },
23422
+ { no: 5, name: "suffix", kind: "message", T: jn },
23413
23423
  { no: 2, name: "range", kind: "message", T: Ma },
23414
23424
  { no: 3, name: "source", kind: "enum", T: le.getEnumType(Gi) },
23415
- { no: 8, name: "completion_parts", kind: "message", T: jn, repeated: !0 }
23425
+ { no: 8, name: "completion_parts", kind: "message", T: Pn, repeated: !0 }
23416
23426
  ]);
23417
23427
  const wz = {
23418
23428
  typeName: "exa.language_server_pb.LanguageServerService",
@@ -23422,8 +23432,8 @@ const wz = {
23422
23432
  */
23423
23433
  getCompletions: {
23424
23434
  name: "GetCompletions",
23425
- I: Mn,
23426
- O: Sn,
23435
+ I: Sn,
23436
+ O: An,
23427
23437
  kind: Zt.Unary
23428
23438
  },
23429
23439
  /**
@@ -23431,8 +23441,8 @@ const wz = {
23431
23441
  */
23432
23442
  acceptCompletion: {
23433
23443
  name: "AcceptCompletion",
23434
- I: An,
23435
- O: Nn,
23444
+ I: Nn,
23445
+ O: Dn,
23436
23446
  kind: Zt.Unary
23437
23447
  },
23438
23448
  /**
@@ -23440,8 +23450,8 @@ const wz = {
23440
23450
  */
23441
23451
  getAuthToken: {
23442
23452
  name: "GetAuthToken",
23443
- I: Dn,
23444
- O: Ln,
23453
+ I: Ln,
23454
+ O: Tn,
23445
23455
  kind: Zt.Unary
23446
23456
  }
23447
23457
  }
@@ -23739,7 +23749,7 @@ class Nz {
23739
23749
  headers: this.getAuthHeader()
23740
23750
  });
23741
23751
  } catch (v) {
23742
- v instanceof mt && v.code === Ge.Canceled || (this.setStatus(or.ERROR), this.setMessage("Something went wrong; please try again."));
23752
+ v instanceof pt && v.code === Ge.Canceled || (this.setStatus(or.ERROR), this.setMessage("Something went wrong; please try again."));
23743
23753
  return;
23744
23754
  }
23745
23755
  if (!m.completionItems) {
@@ -24497,7 +24507,7 @@ var Tt = {
24497
24507
  "MSFullscreenChange",
24498
24508
  "MSFullscreenError",
24499
24509
  "-ms-fullscreen"
24500
- ], Ft = typeof window < "u" && typeof window.document < "u" ? window.document : {}, Ut = "fullscreenEnabled" in Ft && Object.keys(Tt) || Bu[0] in Ft && Bu || Hu[0] in Ft && Hu || ju[0] in Ft && ju || [], En = {
24510
+ ], Ft = typeof window < "u" && typeof window.document < "u" ? window.document : {}, Ut = "fullscreenEnabled" in Ft && Object.keys(Tt) || Bu[0] in Ft && Bu || Hu[0] in Ft && Hu || ju[0] in Ft && ju || [], Cn = {
24501
24511
  requestFullscreen: function(e) {
24502
24512
  return e[Ut[Tt.requestFullscreen]]();
24503
24513
  },
@@ -24543,21 +24553,21 @@ function OF() {
24543
24553
  var e = ne(!1), t = e[0], n = e[1], r = he(null);
24544
24554
  pe(function() {
24545
24555
  var o = function() {
24546
- n(En.fullscreenElement === r.current);
24556
+ n(Cn.fullscreenElement === r.current);
24547
24557
  };
24548
- return En.addEventListener("fullscreenchange", o), function() {
24549
- return En.removeEventListener("fullscreenchange", o);
24558
+ return Cn.addEventListener("fullscreenchange", o), function() {
24559
+ return Cn.removeEventListener("fullscreenchange", o);
24550
24560
  };
24551
24561
  }, []);
24552
24562
  var i = ke(function() {
24553
- if (En.fullscreenElement)
24554
- return En.exitFullscreen().then(function() {
24555
- return En.requestFullscreen(r.current);
24563
+ if (Cn.fullscreenElement)
24564
+ return Cn.exitFullscreen().then(function() {
24565
+ return Cn.requestFullscreen(r.current);
24556
24566
  });
24557
24567
  if (r.current)
24558
- return En.requestFullscreen(r.current);
24568
+ return Cn.requestFullscreen(r.current);
24559
24569
  }, []), l = ke(function() {
24560
- return En.fullscreenElement === r.current ? En.exitFullscreen() : Promise.resolve();
24570
+ return Cn.fullscreenElement === r.current ? Cn.exitFullscreen() : Promise.resolve();
24561
24571
  }, []);
24562
24572
  return qe(function() {
24563
24573
  return {
@@ -25280,16 +25290,16 @@ const UF = ({
25280
25290
  ]
25281
25291
  }
25282
25292
  ) }, c);
25283
- }) }) }), xn = Z(
25293
+ }) }) }), yn = Z(
25284
25294
  "text-neutral-600 cursor-pointer hover:text-neutral-800",
25285
25295
  "dark:text-neutral-300 dark:hover:text-neutral-50"
25286
- ), ZF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" }) }), YF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4z" }) }), JF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ f.jsx("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" }) }), KF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z" }) }), qF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M9.5 2c-1.82 0-3.53.5-5 1.35 2.99 1.73 5 4.95 5 8.65s-2.01 6.92-5 8.65c1.47.85 3.18 1.35 5 1.35 5.52 0 10-4.48 10-10S15.02 2 9.5 2z" }) }), QF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-5 5-5-5h3V4h4v7h3z" }) }), eM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" }) }), tM = ({ fontSize: e }) => /* @__PURE__ */ f.jsxs("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: [
25296
+ ), ZF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" }) }), YF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4z" }) }), JF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ f.jsx("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" }) }), KF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z" }) }), qF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M9.5 2c-1.82 0-3.53.5-5 1.35 2.99 1.73 5 4.95 5 8.65s-2.01 6.92-5 8.65c1.47.85 3.18 1.35 5 1.35 5.52 0 10-4.48 10-10S15.02 2 9.5 2z" }) }), QF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-5 5-5-5h3V4h4v7h3z" }) }), eM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" }) }), tM = ({ fontSize: e }) => /* @__PURE__ */ f.jsxs("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: [
25287
25297
  /* @__PURE__ */ f.jsx("path", { d: "M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z" }),
25288
25298
  /* @__PURE__ */ f.jsx("path", { d: "m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z" })
25289
- ] }), nM = ({ fontSize: e }) => /* @__PURE__ */ f.jsxs("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: [
25299
+ ] }), nM = ({ fontSize: e }) => /* @__PURE__ */ f.jsxs("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: [
25290
25300
  /* @__PURE__ */ f.jsx("path", { d: "M6 17.59 7.41 19 12 14.42 16.59 19 18 17.59l-6-6z" }),
25291
25301
  /* @__PURE__ */ f.jsx("path", { d: "m6 11 1.41 1.41L12 7.83l4.59 4.58L18 11l-6-6z" })
25292
- ] }), rM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z" }) }), iM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z" }) }), lM = {
25302
+ ] }), rM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z" }) }), iM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z" }) }), lM = {
25293
25303
  JSON: /* @__PURE__ */ f.jsx(ZF, { fontSize: 16 }),
25294
25304
  Grid: /* @__PURE__ */ f.jsx(YF, { fontSize: 15 })
25295
25305
  }, Pu = ["JSON", "Grid"], aM = ({
@@ -25687,7 +25697,7 @@ const UF = ({
25687
25697
  ]
25688
25698
  }
25689
25699
  ),
25690
- x && /* @__PURE__ */ f.jsx(bn, {}),
25700
+ x && /* @__PURE__ */ f.jsx(xn, {}),
25691
25701
  /* @__PURE__ */ f.jsx(_t, { labels: h }),
25692
25702
  g && /* @__PURE__ */ f.jsx(st, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
25693
25703
  ]
@@ -25788,7 +25798,7 @@ const cM = Ue(
25788
25798
  placeholder: S,
25789
25799
  ...T
25790
25800
  }, V) => {
25791
- const { t: O } = vn(), [G, A] = ne(!1), _ = ($) => {
25801
+ const { t: O } = bn(), [G, A] = ne(!1), _ = ($) => {
25792
25802
  N && N({
25793
25803
  key: E,
25794
25804
  value: $
@@ -25854,7 +25864,7 @@ const cM = Ue(
25854
25864
  }
25855
25865
  ),
25856
25866
  k && /* @__PURE__ */ f.jsx(
25857
- Gn,
25867
+ _n,
25858
25868
  {
25859
25869
  sx: {
25860
25870
  fontSize: 16,
@@ -25863,7 +25873,7 @@ const cM = Ue(
25863
25873
  }
25864
25874
  }
25865
25875
  ),
25866
- C && /* @__PURE__ */ f.jsx(bn, {}),
25876
+ C && /* @__PURE__ */ f.jsx(xn, {}),
25867
25877
  /* @__PURE__ */ f.jsx(_t, { labels: m }),
25868
25878
  v && /* @__PURE__ */ f.jsx(st, { placement: "top", title: v, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
25869
25879
  ] }),
@@ -25874,8 +25884,8 @@ const cM = Ue(
25874
25884
  className: "cursor-pointer",
25875
25885
  onClick: () => _(n?.toString()),
25876
25886
  type: "button",
25877
- children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
25878
- _n,
25887
+ children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
25888
+ gn,
25879
25889
  {
25880
25890
  className: "text-primary-600",
25881
25891
  sx: { fontSize: 16 }
@@ -30126,7 +30136,7 @@ function QA(e) {
30126
30136
  return te;
30127
30137
  }
30128
30138
  function i(X, te, Ee) {
30129
- let Me = te - 1, Be = -1, ft = !1, wn, Qt, nr, rr;
30139
+ let Me = te - 1, Be = -1, ft = !1, En, Qt, nr, rr;
30130
30140
  for (; ++Me <= Ee; ) {
30131
30141
  const yt = X[Me];
30132
30142
  switch (yt[1].type) {
@@ -30137,7 +30147,7 @@ function QA(e) {
30137
30147
  break;
30138
30148
  }
30139
30149
  case "lineEndingBlank": {
30140
- yt[0] === "enter" && (wn && !rr && !Be && !nr && (nr = Me), rr = void 0);
30150
+ yt[0] === "enter" && (En && !rr && !Be && !nr && (nr = Me), rr = void 0);
30141
30151
  break;
30142
30152
  }
30143
30153
  case "linePrefix":
@@ -30150,7 +30160,7 @@ function QA(e) {
30150
30160
  rr = void 0;
30151
30161
  }
30152
30162
  if (!Be && yt[0] === "enter" && yt[1].type === "listItemPrefix" || Be === -1 && yt[0] === "exit" && (yt[1].type === "listUnordered" || yt[1].type === "listOrdered")) {
30153
- if (wn) {
30163
+ if (En) {
30154
30164
  let Wn = Me;
30155
30165
  for (Qt = void 0; Wn--; ) {
30156
30166
  const Lt = X[Wn];
@@ -30159,7 +30169,7 @@ function QA(e) {
30159
30169
  Qt && (X[Qt][1].type = "lineEndingBlank", ft = !0), Lt[1].type = "lineEnding", Qt = Wn;
30160
30170
  } else if (!(Lt[1].type === "linePrefix" || Lt[1].type === "blockQuotePrefix" || Lt[1].type === "blockQuotePrefixWhitespace" || Lt[1].type === "blockQuoteMarker" || Lt[1].type === "listItemIndent")) break;
30161
30171
  }
30162
- nr && (!Qt || nr < Qt) && (wn._spread = !0), wn.end = Object.assign({}, Qt ? X[Qt][1].start : yt[1].end), X.splice(Qt || Me, 0, ["exit", wn, yt[2]]), Me++, Ee++;
30172
+ nr && (!Qt || nr < Qt) && (En._spread = !0), En.end = Object.assign({}, Qt ? X[Qt][1].start : yt[1].end), X.splice(Qt || Me, 0, ["exit", En, yt[2]]), Me++, Ee++;
30163
30173
  }
30164
30174
  if (yt[1].type === "listItemPrefix") {
30165
30175
  const Wn = {
@@ -30169,7 +30179,7 @@ function QA(e) {
30169
30179
  // @ts-expect-error: we’ll add `end` in a second.
30170
30180
  end: void 0
30171
30181
  };
30172
- wn = Wn, X.splice(Me, 0, ["enter", Wn, yt[2]]), Me++, Ee++, nr = void 0, rr = !0;
30182
+ En = Wn, X.splice(Me, 0, ["enter", Wn, yt[2]]), Me++, Ee++, nr = void 0, rr = !0;
30173
30183
  }
30174
30184
  }
30175
30185
  }
@@ -33923,23 +33933,23 @@ const QL = {
33923
33933
  name: "emailAutolink",
33924
33934
  tokenize: nT,
33925
33935
  previous: ep
33926
- }, yn = {};
33936
+ }, wn = {};
33927
33937
  function tT() {
33928
33938
  return {
33929
- text: yn
33939
+ text: wn
33930
33940
  };
33931
33941
  }
33932
33942
  let lr = 48;
33933
33943
  for (; lr < 123; )
33934
- yn[lr] = $n, lr++, lr === 58 ? lr = 65 : lr === 91 && (lr = 97);
33935
- yn[43] = $n;
33936
- yn[45] = $n;
33937
- yn[46] = $n;
33938
- yn[95] = $n;
33939
- yn[72] = [$n, K5];
33940
- yn[104] = [$n, K5];
33941
- yn[87] = [$n, J5];
33942
- yn[119] = [$n, J5];
33944
+ wn[lr] = $n, lr++, lr === 58 ? lr = 65 : lr === 91 && (lr = 97);
33945
+ wn[43] = $n;
33946
+ wn[45] = $n;
33947
+ wn[46] = $n;
33948
+ wn[95] = $n;
33949
+ wn[72] = [$n, K5];
33950
+ wn[104] = [$n, K5];
33951
+ wn[87] = [$n, J5];
33952
+ wn[119] = [$n, J5];
33943
33953
  function nT(e, t, n) {
33944
33954
  const r = this;
33945
33955
  let i, l;
@@ -35177,7 +35187,7 @@ const UT = Object.keys(ga).filter(
35177
35187
  height: 240,
35178
35188
  children: ({ columnIndex: s, rowIndex: c, style: u }) => {
35179
35189
  const d = c * 5 + s, h = l?.[d];
35180
- return h ? /* @__PURE__ */ f.jsx("div", { style: { ...u, padding: "4px" }, children: /* @__PURE__ */ f.jsx(pt, { title: ZT(h), children: /* @__PURE__ */ f.jsx(
35190
+ return h ? /* @__PURE__ */ f.jsx("div", { style: { ...u, padding: "4px" }, children: /* @__PURE__ */ f.jsx(ht, { title: ZT(h), children: /* @__PURE__ */ f.jsx(
35181
35191
  Op,
35182
35192
  {
35183
35193
  className: Z(
@@ -35683,7 +35693,7 @@ const N0 = (e) => e === 1 || e === "1" || typeof e == "string" && e.toLowerCase(
35683
35693
  },
35684
35694
  `${U.label}-${U.value || U.color}`
35685
35695
  )) }),
35686
- l && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: l, children: /* @__PURE__ */ f.jsx(
35696
+ l && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: l, children: /* @__PURE__ */ f.jsx(
35687
35697
  "div",
35688
35698
  {
35689
35699
  className: "cursor-pointer",
@@ -38444,7 +38454,7 @@ function aH(e, ...t) {
38444
38454
  const dt = (e) => {
38445
38455
  const t = (n) => n[e] || [];
38446
38456
  return t.isThemeGetter = !0, t;
38447
- }, ap = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, op = /^\((?:(\w[\w-]*):)?(.+)\)$/i, oH = /^\d+\/\d+$/, sH = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, cH = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, uH = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, dH = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, fH = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, zr = (e) => oH.test(e), Ae = (e) => !!e && !Number.isNaN(Number(e)), Yn = (e) => !!e && Number.isInteger(Number(e)), Vo = (e) => e.endsWith("%") && Ae(e.slice(0, -1)), Cn = (e) => sH.test(e), hH = () => !0, mH = (e) => (
38457
+ }, ap = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, op = /^\((?:(\w[\w-]*):)?(.+)\)$/i, oH = /^\d+\/\d+$/, sH = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, cH = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, uH = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, dH = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, fH = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, zr = (e) => oH.test(e), Ae = (e) => !!e && !Number.isNaN(Number(e)), Yn = (e) => !!e && Number.isInteger(Number(e)), Vo = (e) => e.endsWith("%") && Ae(e.slice(0, -1)), kn = (e) => sH.test(e), hH = () => !0, mH = (e) => (
38448
38458
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
38449
38459
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
38450
38460
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
@@ -38503,22 +38513,22 @@ const dt = (e) => {
38503
38513
  theme: {
38504
38514
  animate: ["spin", "ping", "pulse", "bounce"],
38505
38515
  aspect: ["video"],
38506
- blur: [Cn],
38507
- breakpoint: [Cn],
38516
+ blur: [kn],
38517
+ breakpoint: [kn],
38508
38518
  color: [hH],
38509
- container: [Cn],
38510
- "drop-shadow": [Cn],
38519
+ container: [kn],
38520
+ "drop-shadow": [kn],
38511
38521
  ease: ["in", "out", "in-out"],
38512
38522
  font: [vH],
38513
38523
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
38514
- "inset-shadow": [Cn],
38524
+ "inset-shadow": [kn],
38515
38525
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
38516
38526
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
38517
- radius: [Cn],
38518
- shadow: [Cn],
38527
+ radius: [kn],
38528
+ shadow: [kn],
38519
38529
  spacing: ["px", Ae],
38520
- text: [Cn],
38521
- "text-shadow": [Cn],
38530
+ text: [kn],
38531
+ "text-shadow": [kn],
38522
38532
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
38523
38533
  },
38524
38534
  classGroups: {
@@ -40927,7 +40937,7 @@ const dt = (e) => {
40927
40937
  };
40928
40938
  }, zH = /* @__PURE__ */ aH(IH);
40929
40939
  function U0(...e) {
40930
- return zH(In(e));
40940
+ return zH(zn(e));
40931
40941
  }
40932
40942
  var Wl = /* @__PURE__ */ ((e) => (e.COMPARISON = "comparison", e.EDIT = "edit", e.FOCUS_EDIT = "focusEdit", e))(Wl || {});
40933
40943
  const FH = 500, MH = ({