@marimo-team/islands 0.25.3-dev170 → 0.25.3-dev173

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 (86) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BbSXV-Xa.js → ConnectedDataExplorerComponent-Le_OBfmt.js} +9 -9
  2. package/dist/{ErrorBoundary-NE86qEWZ.js → ErrorBoundary-wT3f3iJ1.js} +8 -8
  3. package/dist/{abnfDiagram-VCTEODGH-D7n07nXf.js → abnfDiagram-VCTEODGH-Tf1ghyQQ.js} +2 -2
  4. package/dist/{any-language-editor-3E24SnCV.js → any-language-editor-B92WMzoC.js} +2 -2
  5. package/dist/{architectureDiagram-5GKGNRK7-D6CjRib5.js → architectureDiagram-5GKGNRK7-xlnbTG0T.js} +1 -1
  6. package/dist/{chat-ui-CC7GekpG.js → chat-ui-CuORr6fL.js} +70 -70
  7. package/dist/{check-SpOMoCLP.js → check-C9Mp9eCK.js} +1 -1
  8. package/dist/{chunk-IMKFNOWR-6dtPz7uS.js → chunk-IMKFNOWR-Cmd4a5jy.js} +1 -1
  9. package/dist/{chunk-SHT3W25Y-BwnFNKDA.js → chunk-SHT3W25Y-mSNp-WpO.js} +1 -1
  10. package/dist/{chunk-SVP7TREG-D2eV4vBJ.js → chunk-SVP7TREG-CWC49D8X.js} +1 -1
  11. package/dist/{chunk-TICWLB2K-BDs4-_-r.js → chunk-TICWLB2K-De9FINtG.js} +1 -1
  12. package/dist/{classDiagram-ZZMXUADV-DCJnf_8v.js → classDiagram-ZZMXUADV-DweTkYdp.js} +2 -2
  13. package/dist/{classDiagram-v2-VYDZK3BY-BOmSzPBD.js → classDiagram-v2-VYDZK3BY-A6MR2TiE.js} +2 -2
  14. package/dist/{code-visibility-Bzvc6ajl.js → code-visibility-ZReaeMaF.js} +5 -5
  15. package/dist/{common-Ciw4zkh2.js → common-DCevHg1m.js} +231 -231
  16. package/dist/{copy-icon-C1trdvVt.js → copy-icon-De584pZ4.js} +2 -2
  17. package/dist/{cynefinDiagram-5FMLGOSQ-Bln_Soky.js → cynefinDiagram-5FMLGOSQ-BSvo5le-.js} +1 -1
  18. package/dist/{dagre-GXQ25YYZ-D-nf7WzW.js → dagre-GXQ25YYZ-tXRQslO6.js} +1 -1
  19. package/dist/{data-grid-overlay-editor-AQREmxI7.js → data-grid-overlay-editor-CTC-bJus.js} +1 -1
  20. package/dist/{diagram-S7CK7UJ4-PsgSMkY2.js → diagram-S7CK7UJ4-r3t5VtwI.js} +1 -1
  21. package/dist/{diagram-UQ7AKVKN-DfwfUuSw.js → diagram-UQ7AKVKN-qgbC8YnT.js} +1 -1
  22. package/dist/{diagram-VX7I27RA-C9_e-oMc.js → diagram-VX7I27RA-CiHxEwtp.js} +1 -1
  23. package/dist/{diagram-Z3DM3KII-CWLa5tuY.js → diagram-Z3DM3KII-D95u15Ev.js} +1 -1
  24. package/dist/{dialog-DgeqyrEZ.js → dialog-DVRfQuhD.js} +24 -24
  25. package/dist/{dropdown-menu-B6ftyzOg.js → dropdown-menu-DCMbbQ35.js} +691 -691
  26. package/dist/{ebnfDiagram-PWID7BFC-B1QRM58v.js → ebnfDiagram-PWID7BFC-P7e4bryK.js} +2 -2
  27. package/dist/{erDiagram-RLTQ6QDP-DJK_FqvW.js → erDiagram-RLTQ6QDP-CUHZcmRj.js} +1 -1
  28. package/dist/{error-banner-D40pmfQQ.js → error-banner-DxJ3s8YO.js} +57 -57
  29. package/dist/{error-entries-DgK3wUJR.js → error-entries-CmWMEsY_.js} +984 -961
  30. package/dist/{feedback-button-8a6SETmT.js → feedback-button-DwXkmewo.js} +29 -29
  31. package/dist/{flowDiagram-HODETNUW-Uxc25XSJ.js → flowDiagram-HODETNUW-BGZ95AzI.js} +2 -2
  32. package/dist/{formats-DQCyPd5Z.js → formats-DI7HEVv7.js} +1 -1
  33. package/dist/{glide-data-editor-B70oke_v.js → glide-data-editor-BlmcP-lw.js} +10 -10
  34. package/dist/{glide-utils-Dz_F4pAY.js → glide-utils-D98laidb.js} +2 -2
  35. package/dist/{globals-Cxd5hNlI.js → globals-BdRitZ4p.js} +3 -3
  36. package/dist/{html-to-image-D4yG5Ru0.js → html-to-image-bpiQh7ND.js} +55 -55
  37. package/dist/{infoDiagram-27XIBGKW-DmjxqwL0.js → infoDiagram-27XIBGKW-BF0YX70D.js} +1 -1
  38. package/dist/{ishikawaDiagram-5VMMS53U-NgCLHqQi.js → ishikawaDiagram-5VMMS53U-_itsAAn-.js} +1 -1
  39. package/dist/{kanban-definition-UXKFOSKX-CZaG-iam.js → kanban-definition-UXKFOSKX-VNW2Beqh.js} +1 -1
  40. package/dist/{label-D9_-zSg-.js → label-Qvw1E97W.js} +1 -1
  41. package/dist/main.js +8159 -6508
  42. package/dist/{mermaid-CSvw7c71.js → mermaid-CZ6FrClS.js} +35 -35
  43. package/dist/{mindmap-definition-YA3MSWOX-DJYQBDH_.js → mindmap-definition-YA3MSWOX-DR4ripvd.js} +1 -1
  44. package/dist/{number-overlay-editor-ChK-SKUk.js → number-overlay-editor-DQG-hFHT.js} +1 -1
  45. package/dist/{pegDiagram-XKGWAZYB-CHKO_dAe.js → pegDiagram-XKGWAZYB-CFr3XlGl.js} +2 -2
  46. package/dist/{pieDiagram-E7YTZNPT-DVevbMAo.js → pieDiagram-E7YTZNPT-j91XYSLY.js} +1 -1
  47. package/dist/{process-output-DxvBAeL3.js → process-output-BzloOI7F.js} +4 -4
  48. package/dist/{railroadDiagram-O6MQD6OU-Detj1kcB.js → railroadDiagram-O6MQD6OU-Cd47ZV9E.js} +2 -2
  49. package/dist/{requirementDiagram-BXWQKSXE-BLFD0T_Z.js → requirementDiagram-BXWQKSXE-eJH6gLtX.js} +1 -1
  50. package/dist/{reveal-component-CXMXeDZD.js → reveal-component-D3r3vSTK.js} +9 -9
  51. package/dist/{select-CkF_GBxO.js → select-2KOiReNY.js} +324 -324
  52. package/dist/{sequenceDiagram-WJ2MYXX4-BZBgatQV.js → sequenceDiagram-WJ2MYXX4-DdfFEIrm.js} +1 -1
  53. package/dist/{spec-Mnkn3XEr.js → spec-h69nC3SI.js} +4 -4
  54. package/dist/{stateDiagram-D77RDMKH-4BZW9-6_.js → stateDiagram-D77RDMKH-DkjDvip8.js} +2 -2
  55. package/dist/{stateDiagram-v2-MP3YSRHH-C4sKC8Iq.js → stateDiagram-v2-MP3YSRHH-DBHACnOo.js} +2 -2
  56. package/dist/{swimlanes-42K2YHIH-SL5yeGe2.js → swimlanes-42K2YHIH-ogImlOmp.js} +1 -1
  57. package/dist/{swimlanesDiagram-VR7AAH4N-DqPmAYUv.js → swimlanesDiagram-VR7AAH4N-D6x-zsci.js} +2 -2
  58. package/dist/{timeline-definition-24CTP7MA-BfXUMWkq.js → timeline-definition-24CTP7MA-DQpLtsHD.js} +1 -1
  59. package/dist/{toDate-TMubKIVL.js → toDate-CDzoofJo.js} +2 -2
  60. package/dist/{toast-Btbve3Lm.js → toast-B5t9o6s_.js} +47 -47
  61. package/dist/{tooltip-CJ4Rqasp.js → tooltip-s4zZxwKe.js} +67 -67
  62. package/dist/{use-restore-focus-CmGwRNId.js → use-restore-focus-BgDTd2tc.js} +1 -1
  63. package/dist/{useAsyncData-DjMGFzFy.js → useAsyncData-Bn8SxUqM.js} +1 -1
  64. package/dist/{useDateFormatter-eCL_SdeG.js → useDateFormatter-D3Tkfzej.js} +2 -2
  65. package/dist/{useDeepCompareMemoize-BQR5TJot.js → useDeepCompareMemoize-CC2tnPCk.js} +1 -1
  66. package/dist/{useLifecycle-C_GvKWbQ.js → useLifecycle-BJlxHqWa.js} +2 -2
  67. package/dist/{useTheme-Bns2gJZ6.js → useTheme-DMfQYmlG.js} +85 -85
  68. package/dist/{vega-component-BsVptuhz.js → vega-component-CovWHi60.js} +7 -7
  69. package/dist/{vennDiagram-4TSXK5OY-CH65znGa.js → vennDiagram-4TSXK5OY-BD-SL_vq.js} +1 -1
  70. package/dist/{wardleyDiagram-VM6X3IG4-z9pWKb2_.js → wardleyDiagram-VM6X3IG4-BDgJV4ah.js} +1 -1
  71. package/dist/{xychartDiagram-S5SC5T6Z-MxyaWjjq.js → xychartDiagram-S5SC5T6Z-1hIHN6Rl.js} +1 -1
  72. package/package.json +1 -1
  73. package/src/core/cells/__tests__/cells.test.ts +80 -48
  74. package/src/core/cells/__tests__/document.test.ts +37 -3
  75. package/src/core/cells/cells.ts +38 -34
  76. package/src/core/cells/document.ts +31 -2
  77. package/src/core/edit-app.tsx +7 -4
  78. package/src/core/islands/__tests__/bootstrap.test.ts +56 -0
  79. package/src/core/islands/__tests__/bridge.test.ts +42 -0
  80. package/src/core/islands/bootstrap.ts +24 -1
  81. package/src/core/islands/bridge.ts +46 -3
  82. package/src/core/kernel/__tests__/handlers.test.ts +7 -153
  83. package/src/core/kernel/handlers.ts +18 -59
  84. package/src/core/run-app.tsx +1 -7
  85. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +0 -6
  86. package/src/core/session/useNotebookSession.tsx +24 -35
@@ -2,36 +2,36 @@ import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { g as t, h as n, m as r, p as i, r as a, u as o } from "./button-BQRdqQi1.js";
3
3
  import { t as s } from "./react-sHtZdjeP.js";
4
4
  import { t as c } from "./compiler-runtime-CldRdSsv.js";
5
- import { c as l, f as u, l as d, m as f, s as p, u as m } from "./tooltip-CJ4Rqasp.js";
6
- import { t as h } from "./check-SpOMoCLP.js";
5
+ import { c as l, f as u, l as d, m as f, s as p, u as m } from "./tooltip-s4zZxwKe.js";
6
+ import { t as h } from "./check-C9Mp9eCK.js";
7
7
  import { t as g } from "./react-dom-DUmH0GXv.js";
8
8
  import { t as _ } from "./jsx-runtime-3BD1kT0s.js";
9
- import { Ct as v, Et as y, Q as b, St as x, Tt as S, X as C, Y as w, _t as ee, bt as T, ct as te, dt as E, ft as D, lt as O, pt as ne, wt as k, xt as re, yt as A } from "./use-restore-focus-CmGwRNId.js";
10
- import { t as j } from "./invariant-DLmrl-hA.js";
11
- var M = f("chevron-down", [["path", {
9
+ import { $ as v, Ct as y, Dt as b, Et as x, Ot as S, Q as C, St as w, Tt as T, bt as E, dt as ee, ft as D, gt as te, ht as O, kt as k, mt as ne, tt as re, wt as ie } from "./use-restore-focus-BgDTd2tc.js";
10
+ import { t as A } from "./invariant-DLmrl-hA.js";
11
+ var j = f("chevron-down", [["path", {
12
12
  d: "m6 9 6 6 6-6",
13
13
  key: "qrunsl"
14
- }]]), N = f("chevron-up", [["path", {
14
+ }]]), M = f("chevron-up", [["path", {
15
15
  d: "m18 15-6-6-6 6",
16
16
  key: "153udz"
17
- }]]), P = f("x", [["path", {
17
+ }]]), N = f("x", [["path", {
18
18
  d: "M18 6 6 18",
19
19
  key: "1bl5f8"
20
20
  }], ["path", {
21
21
  d: "m6 6 12 12",
22
22
  key: "d8bk6v"
23
- }]]), F = /* @__PURE__ */ e(g(), 1), I = /* @__PURE__ */ e(s(), 1), L = _(), R = Object.defineProperty, z = (e, t) => R(e, "name", {
23
+ }]]), P = /* @__PURE__ */ e(g(), 1), F = /* @__PURE__ */ e(s(), 1), I = _(), L = Object.defineProperty, R = (e, t) => L(e, "name", {
24
24
  value: t,
25
25
  configurable: !0
26
26
  });
27
27
  // @__NO_SIDE_EFFECTS__
28
- function B(e) {
28
+ function z(e) {
29
29
  let t = e + "CollectionProvider", [n, r] = S(t), [a, s] = n(t, {
30
30
  collectionRef: { current: null },
31
31
  itemMap: /* @__PURE__ */ new Map()
32
- }), c = /* @__PURE__ */ z((e) => {
33
- let { scope: t, children: n } = e, r = I.useRef(null), i = I.useRef(/* @__PURE__ */ new Map()).current;
34
- return /* @__PURE__ */ (0, L.jsx)(a, {
32
+ }), c = /* @__PURE__ */ R((e) => {
33
+ let { scope: t, children: n } = e, r = F.useRef(null), i = F.useRef(/* @__PURE__ */ new Map()).current;
34
+ return /* @__PURE__ */ (0, I.jsx)(a, {
35
35
  scope: t,
36
36
  itemMap: i,
37
37
  collectionRef: r,
@@ -39,20 +39,20 @@ function B(e) {
39
39
  });
40
40
  }, "CollectionProvider");
41
41
  c.displayName = t;
42
- let l = e + "CollectionSlot", u = o(l), d = I.forwardRef((e, t) => {
42
+ let l = e + "CollectionSlot", u = o(l), d = F.forwardRef((e, t) => {
43
43
  let { scope: n, children: r } = e, a = s(l, n), o = i(t, a.collectionRef);
44
- return /* @__PURE__ */ (0, L.jsx)(u, {
44
+ return /* @__PURE__ */ (0, I.jsx)(u, {
45
45
  ref: o,
46
46
  children: r
47
47
  });
48
48
  });
49
49
  d.displayName = l;
50
- let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = o(f), h = I.forwardRef((e, t) => {
51
- let { scope: n, children: r, ...a } = e, o = I.useRef(null), c = i(t, o), l = s(f, n);
52
- return I.useEffect(() => (l.itemMap.set(o, {
50
+ let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = o(f), h = F.forwardRef((e, t) => {
51
+ let { scope: n, children: r, ...a } = e, o = F.useRef(null), c = i(t, o), l = s(f, n);
52
+ return F.useEffect(() => (l.itemMap.set(o, {
53
53
  ref: o,
54
54
  ...a
55
- }), () => void l.itemMap.delete(o))), /* @__PURE__ */ (0, L.jsx)(m, {
55
+ }), () => void l.itemMap.delete(o))), /* @__PURE__ */ (0, I.jsx)(m, {
56
56
  [p]: "",
57
57
  ref: c,
58
58
  children: r
@@ -61,14 +61,14 @@ function B(e) {
61
61
  h.displayName = f;
62
62
  function g(t) {
63
63
  let n = s(e + "CollectionConsumer", t);
64
- return I.useCallback(() => {
64
+ return F.useCallback(() => {
65
65
  let e = n.collectionRef.current;
66
66
  if (!e) return [];
67
67
  let t = Array.from(e.querySelectorAll(`[${p}]`));
68
68
  return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
69
69
  }, [n.collectionRef, n.itemMap]);
70
70
  }
71
- return z(g, "useCollection"), [
71
+ return R(g, "useCollection"), [
72
72
  {
73
73
  Provider: c,
74
74
  Slot: d,
@@ -78,20 +78,20 @@ function B(e) {
78
78
  r
79
79
  ];
80
80
  }
81
- z(B, "createCollection");
82
- var V = /* @__PURE__ */ new WeakMap(), H = class e extends Map {
81
+ R(z, "createCollection");
82
+ var B = /* @__PURE__ */ new WeakMap(), V = class e extends Map {
83
83
  static {
84
- z(this, "OrderedDict");
84
+ R(this, "OrderedDict");
85
85
  }
86
86
  #e;
87
87
  constructor(e) {
88
- super(e), this.#e = [...super.keys()], V.set(this, !0);
88
+ super(e), this.#e = [...super.keys()], B.set(this, !0);
89
89
  }
90
90
  set(e, t) {
91
- return V.get(this) && !this.has(e) && this.#e.push(e), super.set(e, t), this;
91
+ return B.get(this) && !this.has(e) && this.#e.push(e), super.set(e, t), this;
92
92
  }
93
93
  insert(e, t, n) {
94
- let r = this.has(t), i = r ? this.size : this.size + 1, a = W(e), o = a >= 0 ? Math.min(a, i - 1) : Math.max(i + a, 0);
94
+ let r = this.has(t), i = r ? this.size : this.size + 1, a = U(e), o = a >= 0 ? Math.min(a, i - 1) : Math.max(i + a, 0);
95
95
  if (r ? this.#e.indexOf(t) === o : o === this.size) return this.set(t, n), this;
96
96
  let s = this.#e.filter((e) => e !== t);
97
97
  s.splice(o, 0, t);
@@ -142,18 +142,18 @@ var V = /* @__PURE__ */ new WeakMap(), H = class e extends Map {
142
142
  return t !== void 0 && this.delete(t);
143
143
  }
144
144
  at(e) {
145
- let t = U(this.#e, e);
145
+ let t = H(this.#e, e);
146
146
  if (t !== void 0) return this.get(t);
147
147
  }
148
148
  entryAt(e) {
149
- let t = U(this.#e, e);
149
+ let t = H(this.#e, e);
150
150
  if (t !== void 0) return [t, this.get(t)];
151
151
  }
152
152
  indexOf(e) {
153
153
  return this.#e.indexOf(e);
154
154
  }
155
155
  keyAt(e) {
156
- return U(this.#e, e);
156
+ return H(this.#e, e);
157
157
  }
158
158
  from(e, t) {
159
159
  let n = this.indexOf(e);
@@ -289,46 +289,46 @@ var V = /* @__PURE__ */ new WeakMap(), H = class e extends Map {
289
289
  return !1;
290
290
  }
291
291
  };
292
- function U(e, t) {
292
+ function H(e, t) {
293
293
  if ("at" in Array.prototype) return Array.prototype.at.call(e, t);
294
- let n = ie(e, t);
294
+ let n = ae(e, t);
295
295
  return n === -1 ? void 0 : e[n];
296
296
  }
297
- z(U, "at");
298
- function ie(e, t) {
299
- let n = e.length, r = W(t), i = r >= 0 ? r : n + r;
297
+ R(H, "at");
298
+ function ae(e, t) {
299
+ let n = e.length, r = U(t), i = r >= 0 ? r : n + r;
300
300
  return i < 0 || i >= n ? -1 : i;
301
301
  }
302
- z(ie, "toSafeIndex");
303
- function W(e) {
302
+ R(ae, "toSafeIndex");
303
+ function U(e) {
304
304
  return e !== e || e === 0 ? 0 : Math.trunc(e);
305
305
  }
306
- z(W, "toSafeInteger");
306
+ R(U, "toSafeInteger");
307
307
  // @__NO_SIDE_EFFECTS__
308
- function ae(e) {
308
+ function oe(e) {
309
309
  let t = e + "CollectionProvider", [n, r] = S(t), [a, s] = n(t);
310
310
  a.displayName = e + "CollectionStableContextProvider";
311
311
  let [c, l] = n(t);
312
312
  c.displayName = e + "CollectionStatefulContextProvider";
313
- let u = /* @__PURE__ */ z(({ state: e, ...t }) => e ? /* @__PURE__ */ (0, L.jsx)(f, {
313
+ let u = /* @__PURE__ */ R(({ state: e, ...t }) => e ? /* @__PURE__ */ (0, I.jsx)(f, {
314
314
  ...t,
315
315
  state: e
316
- }) : /* @__PURE__ */ (0, L.jsx)(d, { ...t }), "CollectionProvider");
316
+ }) : /* @__PURE__ */ (0, I.jsx)(d, { ...t }), "CollectionProvider");
317
317
  u.displayName = t;
318
- let d = /* @__PURE__ */ z((e) => {
318
+ let d = /* @__PURE__ */ R((e) => {
319
319
  let t = y();
320
- return /* @__PURE__ */ (0, L.jsx)(f, {
320
+ return /* @__PURE__ */ (0, I.jsx)(f, {
321
321
  ...e,
322
322
  state: t
323
323
  });
324
324
  }, "CollectionInit");
325
325
  d.displayName = e + "CollectionInit";
326
- let f = /* @__PURE__ */ z((e) => {
327
- let { scope: t, children: n, state: r } = e, o = I.useRef(null), [s, l] = I.useState(null), u = i(o, l), [d, f] = r, p = I.useRef(new H()), m = I.useCallback(() => {
326
+ let f = /* @__PURE__ */ R((e) => {
327
+ let { scope: t, children: n, state: r } = e, o = F.useRef(null), [s, l] = F.useState(null), u = i(o, l), [d, f] = r, p = F.useRef(new V()), m = F.useCallback(() => {
328
328
  let e = p.current;
329
329
  return ce(e) || e.sort(le), e;
330
330
  }, []);
331
- return I.useEffect(() => {
331
+ return F.useEffect(() => {
332
332
  if (!s) return;
333
333
  let e = ue(() => {
334
334
  f((e) => {
@@ -342,14 +342,14 @@ function ae(e) {
342
342
  }), () => {
343
343
  e.disconnect();
344
344
  };
345
- }, [s, f]), /* @__PURE__ */ (0, L.jsx)(a, {
345
+ }, [s, f]), /* @__PURE__ */ (0, I.jsx)(a, {
346
346
  scope: t,
347
347
  collectionElementRef: u,
348
348
  collectionElementRefObject: o,
349
349
  getCollection: m,
350
350
  setCollection: f,
351
351
  registryRef: p,
352
- children: /* @__PURE__ */ (0, L.jsx)(c, {
352
+ children: /* @__PURE__ */ (0, I.jsx)(c, {
353
353
  scope: t,
354
354
  collectionElement: s,
355
355
  collection: d,
@@ -358,52 +358,52 @@ function ae(e) {
358
358
  });
359
359
  }, "CollectionProviderImpl");
360
360
  f.displayName = e + "CollectionProviderImpl";
361
- let p = e + "CollectionSlot", m = o(p), h = I.forwardRef((e, t) => {
361
+ let p = e + "CollectionSlot", m = o(p), h = F.forwardRef((e, t) => {
362
362
  let { scope: n, children: r } = e, a = s(p, n), o = i(t, a.collectionElementRef);
363
- return /* @__PURE__ */ (0, L.jsx)(m, {
363
+ return /* @__PURE__ */ (0, I.jsx)(m, {
364
364
  ref: o,
365
365
  children: r
366
366
  });
367
367
  });
368
368
  h.displayName = p;
369
- let g = e + "CollectionItemSlot", _ = o(g), v = I.forwardRef((e, t) => {
370
- let { scope: n, children: r, ...a } = e, o = I.useRef(null), { setCollection: c, registryRef: l } = s(g, n), u = I.useRef(a);
371
- oe(u.current, a) || (u.current = a);
372
- let d = u.current, f = I.useCallback((e) => {
369
+ let g = e + "CollectionItemSlot", _ = o(g), v = F.forwardRef((e, t) => {
370
+ let { scope: n, children: r, ...a } = e, o = F.useRef(null), { setCollection: c, registryRef: l } = s(g, n), u = F.useRef(a);
371
+ se(u.current, a) || (u.current = a);
372
+ let d = u.current, f = F.useCallback((e) => {
373
373
  let t = l.current;
374
374
  e ? t.set(e, {
375
375
  ...u.current,
376
376
  element: e
377
377
  }) : o.current && t.delete(o.current);
378
378
  }, [l]), p = i(t, f, o);
379
- k(() => {
379
+ b(() => {
380
380
  let e = o.current, t = l.current;
381
381
  e && t.has(e) && t.set(e, {
382
382
  ...d,
383
383
  element: e
384
384
  });
385
385
  }, [d, l]);
386
- let m = I.useRef(null);
387
- return I.useEffect(() => {
386
+ let m = F.useRef(null);
387
+ return F.useEffect(() => {
388
388
  let e = o.current, t = m.current;
389
389
  (t?.element ?? null) === e && (!e || t?.itemData === d) || (m.current = e ? {
390
390
  element: e,
391
391
  itemData: d
392
392
  } : null, c((n) => {
393
- let r = new H(n);
393
+ let r = new V(n);
394
394
  return t && t.element !== e && r.delete(t.element), e && r.set(e, {
395
395
  ...d,
396
396
  element: e
397
397
  }), r.sort(le);
398
398
  }));
399
- }), I.useEffect(() => () => {
399
+ }), F.useEffect(() => () => {
400
400
  let e = m.current;
401
401
  m.current = null, e && c((t) => {
402
402
  if (!t.has(e.element)) return t;
403
- let n = new H(t);
403
+ let n = new V(t);
404
404
  return n.delete(e.element), n;
405
405
  });
406
- }, [c]), /* @__PURE__ */ (0, L.jsx)(_, {
406
+ }, [c]), /* @__PURE__ */ (0, I.jsx)(_, {
407
407
  "data-radix-collection-item": "",
408
408
  ref: p,
409
409
  children: r
@@ -411,31 +411,31 @@ function ae(e) {
411
411
  });
412
412
  v.displayName = g;
413
413
  function y() {
414
- return I.useState(new H());
414
+ return F.useState(new V());
415
415
  }
416
- z(y, "useInitCollection");
417
- function b(t) {
416
+ R(y, "useInitCollection");
417
+ function x(t) {
418
418
  let { collection: n } = l(e + "CollectionConsumer", t);
419
419
  return n;
420
420
  }
421
- z(b, "useCollection");
422
- function x(t) {
421
+ R(x, "useCollection");
422
+ function C(t) {
423
423
  let { getCollection: n } = s(e + "CollectionConsumer", t);
424
424
  return n;
425
425
  }
426
- return z(x, "useGetCollection"), [{
426
+ return R(C, "useGetCollection"), [{
427
427
  Provider: u,
428
428
  Slot: h,
429
429
  ItemSlot: v
430
430
  }, {
431
431
  createCollectionScope: r,
432
- useCollection: b,
433
- useGetCollection: x,
432
+ useCollection: x,
433
+ useGetCollection: C,
434
434
  useInitCollection: y
435
435
  }];
436
436
  }
437
- z(ae, "createCollection");
438
- function oe(e, t) {
437
+ R(oe, "createCollection");
438
+ function se(e, t) {
439
439
  if (e === t) return !0;
440
440
  if (typeof e != "object" || typeof t != "object" || e == null || t == null) return !1;
441
441
  let n = Object.keys(e), r = Object.keys(t);
@@ -443,11 +443,11 @@ function oe(e, t) {
443
443
  for (let r of n) if (!Object.prototype.hasOwnProperty.call(t, r) || e[r] !== t[r]) return !1;
444
444
  return !0;
445
445
  }
446
- z(oe, "shallowEqual");
447
- function se(e, t) {
446
+ R(se, "shallowEqual");
447
+ function W(e, t) {
448
448
  return !!(t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_PRECEDING);
449
449
  }
450
- z(se, "isElementPreceding");
450
+ R(W, "isElementPreceding");
451
451
  function ce(e) {
452
452
  let t;
453
453
  for (let n of e.keys()) {
@@ -459,11 +459,11 @@ function ce(e) {
459
459
  }
460
460
  return !0;
461
461
  }
462
- z(ce, "isInDocumentOrder");
462
+ R(ce, "isInDocumentOrder");
463
463
  function le(e, t) {
464
- return !e[1].element || !t[1].element ? 0 : se(e[1].element, t[1].element) ? -1 : 1;
464
+ return !e[1].element || !t[1].element ? 0 : W(e[1].element, t[1].element) ? -1 : 1;
465
465
  }
466
- z(le, "sortByDocumentPosition");
466
+ R(le, "sortByDocumentPosition");
467
467
  function ue(e) {
468
468
  return new MutationObserver((t) => {
469
469
  for (let n of t) if (n.type === "childList") {
@@ -472,7 +472,7 @@ function ue(e) {
472
472
  }
473
473
  });
474
474
  }
475
- z(ue, "getChildListObserver");
475
+ R(ue, "getChildListObserver");
476
476
  //#endregion
477
477
  //#region ../node_modules/.pnpm/@radix-ui+react-direction@1.2.0_@types+react@19.3.0_react@19.3.0/node_modules/@radix-ui/react-direction/dist/index.mjs
478
478
  var de = Object.defineProperty, fe = (e, t) => de(e, "name", {
@@ -481,9 +481,9 @@ var de = Object.defineProperty, fe = (e, t) => de(e, "name", {
481
481
  }), pe = {
482
482
  LTR: "ltr",
483
483
  RTL: "rtl"
484
- }, me = I.createContext(void 0);
484
+ }, me = F.createContext(void 0);
485
485
  function he(e) {
486
- let t = I.useContext(me);
486
+ let t = F.useContext(me);
487
487
  return e || t || pe.LTR;
488
488
  }
489
489
  fe(he, "useDirection");
@@ -513,28 +513,28 @@ var ye = Object.defineProperty, G = (e, t) => ye(e, "name", {
513
513
  "Enter",
514
514
  "ArrowUp",
515
515
  "ArrowDown"
516
- ], Ce = [" ", "Enter"], K = "Select", [we, Te, Ee] = /* @__PURE__ */ B(K), [q, De] = S(K, [Ee, m]), Oe = m(), [ke, J] = q(K), [Ae, je] = q(K);
516
+ ], Ce = [" ", "Enter"], K = "Select", [we, Te, Ee] = /* @__PURE__ */ z(K), [q, De] = S(K, [Ee, m]), Oe = m(), [ke, J] = q(K), [Ae, je] = q(K);
517
517
  function Me(e) {
518
- let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: m, form: h, internal_do_not_use_render: g } = e, _ = Oe(t), [v, y] = I.useState(null), [b, S] = I.useState(null), [C, w] = I.useState(!1), ee = he(l), [te, E] = x({
518
+ let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: m, form: h, internal_do_not_use_render: g } = e, _ = Oe(t), [v, b] = F.useState(null), [x, S] = F.useState(null), [C, w] = F.useState(!1), E = he(l), [ee, D] = T({
519
519
  prop: r,
520
520
  defaultProp: i ?? !1,
521
521
  onChange: a,
522
522
  caller: K
523
- }), [D, O] = x({
523
+ }), [te, O] = T({
524
524
  prop: o,
525
525
  defaultProp: s,
526
526
  onChange: c,
527
527
  caller: K
528
- }), ne = I.useRef(null), k = I.useRef(!1), [re, A] = I.useState(null), j = /* @__PURE__ */ G((e) => {
529
- A({
528
+ }), k = F.useRef(null), ne = F.useRef(!1), [re, ie] = F.useState(null), A = /* @__PURE__ */ G((e) => {
529
+ ie({
530
530
  value: e,
531
- hasConsumerStoppedPropagation: k.current
531
+ hasConsumerStoppedPropagation: ne.current
532
532
  }), O(e);
533
- }, "handleUserSelect"), M = I.useRef(D);
534
- I.useEffect(() => {
533
+ }, "handleUserSelect"), j = F.useRef(te);
534
+ F.useEffect(() => {
535
535
  let e = h ? v?.ownerDocument.getElementById(h) : v?.form;
536
536
  if (e instanceof HTMLFormElement) {
537
- let t = /* @__PURE__ */ G(() => O(M.current), "reset");
537
+ let t = /* @__PURE__ */ G(() => O(j.current), "reset");
538
538
  return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
539
539
  }
540
540
  }, [
@@ -542,51 +542,51 @@ function Me(e) {
542
542
  v,
543
543
  O
544
544
  ]);
545
- let N = !v || !!h || !!v.closest("form"), [P, F] = I.useState(/* @__PURE__ */ new Set()), R = T(), z = Array.from(P).map((e) => e.props.value).join(";"), B = I.useCallback((e) => {
546
- F((t) => new Set(t).add(e));
547
- }, []), V = I.useCallback((e) => {
548
- F((t) => {
545
+ let M = !v || !!h || !!v.closest("form"), [N, P] = F.useState(/* @__PURE__ */ new Set()), L = y(), R = Array.from(N).map((e) => e.props.value).join(";"), z = F.useCallback((e) => {
546
+ P((t) => new Set(t).add(e));
547
+ }, []), B = F.useCallback((e) => {
548
+ P((t) => {
549
549
  let n = new Set(t);
550
550
  return n.delete(e), n;
551
551
  });
552
- }, []), H = {
552
+ }, []), V = {
553
553
  required: m,
554
554
  trigger: v,
555
- onTriggerChange: y,
556
- valueNode: b,
555
+ onTriggerChange: b,
556
+ valueNode: x,
557
557
  onValueNodeChange: S,
558
558
  valueNodeHasChildren: C,
559
559
  onValueNodeHasChildrenChange: w,
560
- contentId: R,
561
- value: D,
560
+ contentId: L,
561
+ value: te,
562
562
  onValueChange: O,
563
- hasConsumerStoppedPropagationRef: k,
563
+ hasConsumerStoppedPropagationRef: ne,
564
564
  userSelection: re,
565
- onUserSelect: j,
566
- open: te,
567
- onOpenChange: E,
568
- dir: ee,
569
- triggerPointerDownPosRef: ne,
565
+ onUserSelect: A,
566
+ open: ee,
567
+ onOpenChange: D,
568
+ dir: E,
569
+ triggerPointerDownPosRef: k,
570
570
  disabled: f,
571
571
  name: u,
572
572
  autoComplete: d,
573
573
  form: h,
574
- nativeOptions: P,
575
- nativeSelectKey: z,
576
- isFormControl: N
574
+ nativeOptions: N,
575
+ nativeSelectKey: R,
576
+ isFormControl: M
577
577
  };
578
- return /* @__PURE__ */ (0, L.jsx)(p, {
578
+ return /* @__PURE__ */ (0, I.jsx)(p, {
579
579
  ..._,
580
- children: /* @__PURE__ */ (0, L.jsx)(ke, {
580
+ children: /* @__PURE__ */ (0, I.jsx)(ke, {
581
581
  scope: t,
582
- ...H,
583
- children: /* @__PURE__ */ (0, L.jsx)(we.Provider, {
582
+ ...V,
583
+ children: /* @__PURE__ */ (0, I.jsx)(we.Provider, {
584
584
  scope: t,
585
- children: /* @__PURE__ */ (0, L.jsx)(Ae, {
585
+ children: /* @__PURE__ */ (0, I.jsx)(Ae, {
586
586
  scope: t,
587
- onNativeOptionAdd: B,
588
- onNativeOptionRemove: V,
589
- children: bt(g) ? g(H) : n
587
+ onNativeOptionAdd: z,
588
+ onNativeOptionRemove: B,
589
+ children: bt(g) ? g(V) : n
590
590
  })
591
591
  })
592
592
  })
@@ -595,13 +595,13 @@ function Me(e) {
595
595
  G(Me, "SelectProvider");
596
596
  var Ne = /* @__PURE__ */ G((e) => {
597
597
  let { __scopeSelect: t, children: n, ...r } = e;
598
- return /* @__PURE__ */ (0, L.jsx)(Me, {
598
+ return /* @__PURE__ */ (0, I.jsx)(Me, {
599
599
  __scopeSelect: t,
600
600
  ...r,
601
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n, e ? /* @__PURE__ */ (0, L.jsx)(yt, { __scopeSelect: t }) : null] })
601
+ internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n, e ? /* @__PURE__ */ (0, I.jsx)(yt, { __scopeSelect: t }) : null] })
602
602
  });
603
- }, "Select"), Pe = "SelectTrigger", Fe = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
604
- let { __scopeSelect: n, disabled: r = !1, ...a } = e, o = Oe(n), s = J(Pe, n), c = s.disabled || r, u = i(t, s.onTriggerChange), d = Te(n), f = I.useRef("touch"), [p, m, h] = xt((e) => {
603
+ }, "Select"), Pe = "SelectTrigger", Fe = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
604
+ let { __scopeSelect: n, disabled: r = !1, ...a } = e, o = Oe(n), s = J(Pe, n), c = s.disabled || r, u = i(t, s.onTriggerChange), d = Te(n), f = F.useRef("touch"), [p, m, h] = xt((e) => {
605
605
  let t = d().filter((e) => !e.disabled), n = St(t, e, t.find((e) => e.value === s.value));
606
606
  n !== void 0 && s.onUserSelect(n.value);
607
607
  }), g = /* @__PURE__ */ G((e) => {
@@ -610,10 +610,10 @@ var Ne = /* @__PURE__ */ G((e) => {
610
610
  y: Math.round(e.pageY)
611
611
  });
612
612
  }, "handleOpen");
613
- return /* @__PURE__ */ (0, L.jsx)(l, {
613
+ return /* @__PURE__ */ (0, I.jsx)(l, {
614
614
  asChild: !0,
615
615
  ...o,
616
- children: /* @__PURE__ */ (0, L.jsx)(y.button, {
616
+ children: /* @__PURE__ */ (0, I.jsx)(k.button, {
617
617
  type: "button",
618
618
  role: "combobox",
619
619
  "aria-controls": s.open ? s.contentId : void 0,
@@ -627,36 +627,36 @@ var Ne = /* @__PURE__ */ G((e) => {
627
627
  "data-placeholder": Q(s.value) ? "" : void 0,
628
628
  ...a,
629
629
  ref: u,
630
- onClick: v(a.onClick, (e) => {
630
+ onClick: x(a.onClick, (e) => {
631
631
  e.currentTarget.focus(), f.current !== "mouse" && g(e);
632
632
  }),
633
- onPointerDown: v(a.onPointerDown, (e) => {
633
+ onPointerDown: x(a.onPointerDown, (e) => {
634
634
  f.current = e.pointerType;
635
635
  let t = e.target;
636
636
  t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && e.pointerType === "mouse" && (g(e), e.preventDefault());
637
637
  }),
638
- onKeyDown: v(a.onKeyDown, (e) => {
638
+ onKeyDown: x(a.onKeyDown, (e) => {
639
639
  let t = p.current !== "";
640
640
  !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && (s.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), m(e.key)), !(t && e.key === " ") && Se.includes(e.key) && (g(), e.preventDefault());
641
641
  })
642
642
  })
643
643
  });
644
- }, "SelectTrigger")), Ie = "SelectValue", Le = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
644
+ }, "SelectTrigger")), Ie = "SelectValue", Le = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
645
645
  let { __scopeSelect: n, className: r, style: a, children: o, placeholder: s = "", ...c } = e, l = J(Ie, n), { onValueNodeHasChildrenChange: u } = l, d = o !== void 0, f = i(t, l.onValueNodeChange);
646
- k(() => {
646
+ b(() => {
647
647
  u(d);
648
648
  }, [u, d]);
649
649
  let p = Q(l.value);
650
- return /* @__PURE__ */ (0, L.jsx)(y.span, {
650
+ return /* @__PURE__ */ (0, I.jsx)(k.span, {
651
651
  ...c,
652
652
  asChild: !p && c.asChild,
653
653
  ref: f,
654
654
  style: { pointerEvents: "none" },
655
- children: /* @__PURE__ */ (0, L.jsx)(I.Fragment, { children: p ? s : o }, p ? "placeholder" : "value")
655
+ children: /* @__PURE__ */ (0, I.jsx)(F.Fragment, { children: p ? s : o }, p ? "placeholder" : "value")
656
656
  });
657
- }, "SelectValue")), Re = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
657
+ }, "SelectValue")), Re = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
658
658
  let { __scopeSelect: n, children: r, ...i } = e;
659
- return /* @__PURE__ */ (0, L.jsx)(y.span, {
659
+ return /* @__PURE__ */ (0, I.jsx)(k.span, {
660
660
  "aria-hidden": !0,
661
661
  ...i,
662
662
  ref: t,
@@ -664,71 +664,71 @@ var Ne = /* @__PURE__ */ G((e) => {
664
664
  });
665
665
  }, "SelectIcon")), [ze, Be] = q("SelectPortal", { forceMount: void 0 }), Ve = /* @__PURE__ */ G((e) => {
666
666
  let { __scopeSelect: t, forceMount: n, ...r } = e;
667
- return /* @__PURE__ */ (0, L.jsx)(ze, {
667
+ return /* @__PURE__ */ (0, I.jsx)(ze, {
668
668
  scope: e.__scopeSelect,
669
669
  forceMount: n,
670
- children: /* @__PURE__ */ (0, L.jsx)(D, {
670
+ children: /* @__PURE__ */ (0, I.jsx)(O, {
671
671
  asChild: !0,
672
672
  ...r
673
673
  })
674
674
  });
675
- }, "SelectPortal"), Y = "SelectContent", He = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
676
- let n = Be(Y, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = J(Y, e.__scopeSelect), [o, s] = I.useState();
677
- return k(() => {
675
+ }, "SelectPortal"), Y = "SelectContent", He = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
676
+ let n = Be(Y, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = J(Y, e.__scopeSelect), [o, s] = F.useState();
677
+ return b(() => {
678
678
  s(new DocumentFragment());
679
- }, []), /* @__PURE__ */ (0, L.jsx)(re, {
679
+ }, []), /* @__PURE__ */ (0, I.jsx)(ie, {
680
680
  present: r || a.open,
681
- children: ({ present: e }) => e ? /* @__PURE__ */ (0, L.jsx)(Ke, {
681
+ children: ({ present: e }) => e ? /* @__PURE__ */ (0, I.jsx)(Ke, {
682
682
  ...i,
683
683
  ref: t
684
- }) : /* @__PURE__ */ (0, L.jsx)(Ue, {
684
+ }) : /* @__PURE__ */ (0, I.jsx)(Ue, {
685
685
  ...i,
686
686
  fragment: o
687
687
  })
688
688
  });
689
- }, "SelectContent")), Ue = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
689
+ }, "SelectContent")), Ue = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
690
690
  let { __scopeSelect: n, children: r, fragment: i } = e;
691
- return i ? F.createPortal(/* @__PURE__ */ (0, L.jsx)(We, {
691
+ return i ? P.createPortal(/* @__PURE__ */ (0, I.jsx)(We, {
692
692
  scope: n,
693
- children: /* @__PURE__ */ (0, L.jsx)(we.Slot, {
693
+ children: /* @__PURE__ */ (0, I.jsx)(we.Slot, {
694
694
  scope: n,
695
- children: /* @__PURE__ */ (0, L.jsx)("div", {
695
+ children: /* @__PURE__ */ (0, I.jsx)("div", {
696
696
  ref: t,
697
697
  children: r
698
698
  })
699
699
  })
700
700
  }), i) : null;
701
- }, "SelectContentFragment")), X = 10, [We, Z] = q(Y), Ge = o("SelectContent.RemoveScroll"), Ke = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
702
- let { __scopeSelect: n } = e, { position: r = be.ItemAligned, onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: _, ...y } = e, b = J(Y, n), [x, S] = I.useState(null), [C, w] = I.useState(null), T = i(t, S), [D, k] = I.useState(null), [re, A] = I.useState(null), j = Te(n), [M, N] = I.useState(!1), P = I.useRef(!1), F = I.useRef(!1), R = I.useRef(!1);
703
- I.useEffect(() => {
704
- if (x) return te(x);
705
- }, [x]), E();
706
- let z = I.useCallback((e) => {
707
- let [t, ...n] = j().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
701
+ }, "SelectContentFragment")), X = 10, [We, Z] = q(Y), Ge = o("SelectContent.RemoveScroll"), Ke = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
702
+ let { __scopeSelect: n } = e, { position: r = be.ItemAligned, onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: _, ...v } = e, y = J(Y, n), [b, S] = F.useState(null), [C, w] = F.useState(null), T = i(t, S), [O, k] = F.useState(null), [re, ie] = F.useState(null), A = Te(n), [j, M] = F.useState(!1), N = F.useRef(!1), P = F.useRef(!1), L = F.useRef(!1);
703
+ F.useEffect(() => {
704
+ if (b) return ee(b);
705
+ }, [b]), ne();
706
+ let R = F.useCallback((e) => {
707
+ let [t, ...n] = A().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
708
708
  for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && C && (C.scrollTop = 0), n === r && C && (C.scrollTop = C.scrollHeight), n?.focus(), document.activeElement !== i)) return;
709
- }, [j, C]), B = I.useCallback(() => z([D, x]), [
710
- z,
711
- D,
712
- x
709
+ }, [A, C]), z = F.useCallback(() => R([O, b]), [
710
+ R,
711
+ O,
712
+ b
713
713
  ]);
714
- I.useEffect(() => {
715
- M && B();
716
- }, [M, B]);
717
- let { onOpenChange: V, triggerPointerDownPosRef: H } = b;
718
- I.useEffect(() => {
719
- if (x) {
714
+ F.useEffect(() => {
715
+ j && z();
716
+ }, [j, z]);
717
+ let { onOpenChange: B, triggerPointerDownPosRef: V } = y;
718
+ F.useEffect(() => {
719
+ if (b) {
720
720
  let e = {
721
721
  x: 0,
722
722
  y: 0
723
723
  }, t = /* @__PURE__ */ G((t) => {
724
724
  e = {
725
- x: Math.abs(Math.round(t.pageX) - (H.current?.x ?? 0)),
726
- y: Math.abs(Math.round(t.pageY) - (H.current?.y ?? 0))
725
+ x: Math.abs(Math.round(t.pageX) - (V.current?.x ?? 0)),
726
+ y: Math.abs(Math.round(t.pageY) - (V.current?.y ?? 0))
727
727
  };
728
728
  }, "handlePointerMove"), n = /* @__PURE__ */ G((n) => {
729
- e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(x) || V(!1), document.removeEventListener("pointermove", t), H.current = null;
729
+ e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(b) || B(!1), document.removeEventListener("pointermove", t), V.current = null;
730
730
  }, "handlePointerUp");
731
- return H.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
731
+ return V.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
732
732
  capture: !0,
733
733
  once: !0
734
734
  })), () => {
@@ -736,30 +736,30 @@ var Ne = /* @__PURE__ */ G((e) => {
736
736
  };
737
737
  }
738
738
  }, [
739
- x,
740
- V,
741
- H
742
- ]), I.useEffect(() => {
743
- let e = /* @__PURE__ */ G(() => V(!1), "close");
739
+ b,
740
+ B,
741
+ V
742
+ ]), F.useEffect(() => {
743
+ let e = /* @__PURE__ */ G(() => B(!1), "close");
744
744
  return window.addEventListener("blur", e), window.addEventListener("resize", e), () => {
745
745
  window.removeEventListener("blur", e), window.removeEventListener("resize", e);
746
746
  };
747
- }, [V]);
748
- let [U, ie] = xt((e) => {
749
- let t = j().filter((e) => !e.disabled), n = St(t, e, t.find((e) => e.ref.current === document.activeElement));
747
+ }, [B]);
748
+ let [H, ae] = xt((e) => {
749
+ let t = A().filter((e) => !e.disabled), n = St(t, e, t.find((e) => e.ref.current === document.activeElement));
750
750
  n && setTimeout(() => n.ref.current?.focus());
751
- }), W = I.useCallback((e, t, n) => {
752
- let r = !F.current;
753
- r && (F.current = !0);
754
- let i = !P.current && !n;
755
- b.value !== void 0 && b.value === t || i ? (k(e), i && (P.current = !0)) : r && k(e);
756
- }, [b.value]), ae = I.useCallback(() => x?.focus(), [x]), oe = I.useCallback((e, t, n) => {
751
+ }), U = F.useCallback((e, t, n) => {
752
+ let r = !P.current;
753
+ r && (P.current = !0);
754
+ let i = !N.current && !n;
755
+ y.value !== void 0 && y.value === t || i ? (k(e), i && (N.current = !0)) : r && k(e);
756
+ }, [y.value]), oe = F.useCallback(() => b?.focus(), [b]), se = F.useCallback((e, t, n) => {
757
757
  if (!e) return;
758
- let r = !R.current;
759
- r && (R.current = !0);
760
- let i = !P.current && !n;
761
- (b.value !== void 0 && b.value === t || i || r) && A(e);
762
- }, [b.value]), se = r === be.Popper ? Je : qe, ce = se === Je ? {
758
+ let r = !L.current;
759
+ r && (L.current = !0);
760
+ let i = !N.current && !n;
761
+ (y.value !== void 0 && y.value === t || i || r) && ie(e);
762
+ }, [y.value]), W = r === be.Popper ? Je : qe, ce = W === Je ? {
763
763
  side: c,
764
764
  sideOffset: l,
765
765
  align: u,
@@ -771,69 +771,69 @@ var Ne = /* @__PURE__ */ G((e) => {
771
771
  hideWhenDetached: g,
772
772
  avoidCollisions: _
773
773
  } : {};
774
- return /* @__PURE__ */ (0, L.jsx)(We, {
774
+ return /* @__PURE__ */ (0, I.jsx)(We, {
775
775
  scope: n,
776
- content: x,
776
+ content: b,
777
777
  viewport: C,
778
778
  onViewportChange: w,
779
- itemRefCallback: W,
780
- selectedItem: D,
781
- onItemLeave: ae,
782
- itemTextRefCallback: oe,
783
- focusSelectedItem: B,
779
+ itemRefCallback: U,
780
+ selectedItem: O,
781
+ onItemLeave: oe,
782
+ itemTextRefCallback: se,
783
+ focusSelectedItem: z,
784
784
  selectedItemText: re,
785
785
  position: r,
786
- isPositioned: M,
787
- searchRef: U,
788
- children: /* @__PURE__ */ (0, L.jsx)(O, {
786
+ isPositioned: j,
787
+ searchRef: H,
788
+ children: /* @__PURE__ */ (0, I.jsx)(D, {
789
789
  as: Ge,
790
790
  allowPinchZoom: !0,
791
- children: /* @__PURE__ */ (0, L.jsx)(ne, {
791
+ children: /* @__PURE__ */ (0, I.jsx)(te, {
792
792
  asChild: !0,
793
- trapped: b.open,
793
+ trapped: y.open,
794
794
  onMountAutoFocus: (e) => {
795
795
  e.preventDefault();
796
796
  },
797
- onUnmountAutoFocus: v(a, (e) => {
798
- b.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
797
+ onUnmountAutoFocus: x(a, (e) => {
798
+ y.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
799
799
  }),
800
- children: /* @__PURE__ */ (0, L.jsx)(ee, {
800
+ children: /* @__PURE__ */ (0, I.jsx)(E, {
801
801
  asChild: !0,
802
802
  disableOutsidePointerEvents: !0,
803
803
  onEscapeKeyDown: o,
804
804
  onPointerDownOutside: s,
805
805
  onFocusOutside: (e) => e.preventDefault(),
806
- onDismiss: () => b.onOpenChange(!1),
807
- children: /* @__PURE__ */ (0, L.jsx)(se, {
806
+ onDismiss: () => y.onOpenChange(!1),
807
+ children: /* @__PURE__ */ (0, I.jsx)(W, {
808
808
  role: "listbox",
809
- id: b.contentId,
810
- "data-state": b.open ? "open" : "closed",
811
- dir: b.dir,
809
+ id: y.contentId,
810
+ "data-state": y.open ? "open" : "closed",
811
+ dir: y.dir,
812
812
  onContextMenu: (e) => e.preventDefault(),
813
- ...y,
813
+ ...v,
814
814
  ...ce,
815
- onPlaced: () => N(!0),
815
+ onPlaced: () => M(!0),
816
816
  ref: T,
817
817
  style: {
818
818
  display: "flex",
819
819
  flexDirection: "column",
820
820
  outline: "none",
821
- ...y.style
821
+ ...v.style
822
822
  },
823
- onKeyDown: v(y.onKeyDown, (e) => {
823
+ onKeyDown: x(v.onKeyDown, (e) => {
824
824
  let t = e.ctrlKey || e.altKey || e.metaKey;
825
- if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && ie(e.key), [
825
+ if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && ae(e.key), [
826
826
  "ArrowUp",
827
827
  "ArrowDown",
828
828
  "Home",
829
829
  "End"
830
830
  ].includes(e.key)) {
831
- let t = j().filter((e) => !e.disabled).map((e) => e.ref.current);
831
+ let t = A().filter((e) => !e.disabled).map((e) => e.ref.current);
832
832
  if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
833
833
  let n = e.target, r = t.indexOf(n);
834
834
  t = t.slice(r + 1);
835
835
  }
836
- setTimeout(() => z(t)), e.preventDefault();
836
+ setTimeout(() => R(t)), e.preventDefault();
837
837
  }
838
838
  })
839
839
  })
@@ -841,8 +841,8 @@ var Ne = /* @__PURE__ */ G((e) => {
841
841
  })
842
842
  })
843
843
  });
844
- }, "SelectContentImpl")), qe = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
845
- let { __scopeSelect: n, onPlaced: r, ...a } = e, o = J(Y, n), s = Z(Y, n), [c, l] = I.useState(null), [u, d] = I.useState(null), f = i(t, d), p = Te(n), m = I.useRef(!1), h = I.useRef(!0), { viewport: g, selectedItem: _, selectedItemText: v, focusSelectedItem: b } = s, x = I.useCallback(() => {
844
+ }, "SelectContentImpl")), qe = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
845
+ let { __scopeSelect: n, onPlaced: r, ...a } = e, o = J(Y, n), s = Z(Y, n), [c, l] = F.useState(null), [u, d] = F.useState(null), f = i(t, d), p = Te(n), m = F.useRef(!1), h = F.useRef(!0), { viewport: g, selectedItem: _, selectedItemText: v, focusSelectedItem: y } = s, x = F.useCallback(() => {
846
846
  if (o.trigger && o.valueNode && c && u && g && _ && v) {
847
847
  let e = o.trigger.getBoundingClientRect(), t = u.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), i = v.getBoundingClientRect();
848
848
  if (o.dir !== xe.RTL) {
@@ -852,17 +852,17 @@ var Ne = /* @__PURE__ */ G((e) => {
852
852
  let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - X, d = ve(a, [X, Math.max(X, u - l)]);
853
853
  c.style.minWidth = s + "px", c.style.right = d + "px";
854
854
  }
855
- let a = p(), s = window.innerHeight - X * 2, l = g.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + y, S = Math.min(_.offsetHeight * 5, x), C = window.getComputedStyle(g), w = parseInt(C.paddingTop, 10), ee = parseInt(C.paddingBottom, 10), T = e.top + e.height / 2 - X, te = s - T, E = _.offsetHeight / 2, D = _.offsetTop + E, O = f + h + D, ne = x - O;
856
- if (O <= T) {
855
+ let a = p(), s = window.innerHeight - X * 2, l = g.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + y, S = Math.min(_.offsetHeight * 5, x), C = window.getComputedStyle(g), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - X, ee = s - E, D = _.offsetHeight / 2, te = _.offsetTop + D, O = f + h + te, k = x - O;
856
+ if (O <= E) {
857
857
  let e = a.length > 0 && _ === a[a.length - 1].ref.current;
858
858
  c.style.bottom = "0px";
859
- let t = u.clientHeight - g.offsetTop - g.offsetHeight, n = O + Math.max(te, E + (e ? ee : 0) + t + y);
859
+ let t = u.clientHeight - g.offsetTop - g.offsetHeight, n = O + Math.max(ee, D + (e ? T : 0) + t + y);
860
860
  c.style.height = n + "px";
861
861
  } else {
862
862
  let e = a.length > 0 && _ === a[0].ref.current;
863
863
  c.style.top = "0px";
864
- let t = Math.max(T, f + g.offsetTop + (e ? w : 0) + E) + ne;
865
- c.style.height = t + "px", g.scrollTop = O - T + g.offsetTop;
864
+ let t = Math.max(E, f + g.offsetTop + (e ? w : 0) + D) + k;
865
+ c.style.height = t + "px", g.scrollTop = O - E + g.offsetTop;
866
866
  }
867
867
  c.style.margin = `${X}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", r?.(), requestAnimationFrame(() => m.current = !0);
868
868
  }
@@ -878,20 +878,20 @@ var Ne = /* @__PURE__ */ G((e) => {
878
878
  o.dir,
879
879
  r
880
880
  ]);
881
- k(() => x(), [x]);
882
- let [S, C] = I.useState();
883
- k(() => {
881
+ b(() => x(), [x]);
882
+ let [S, C] = F.useState();
883
+ b(() => {
884
884
  u && C(window.getComputedStyle(u).zIndex);
885
885
  }, [u]);
886
- let w = I.useCallback((e) => {
887
- e && h.current === !0 && (x(), b?.(), h.current = !1);
888
- }, [x, b]);
889
- return /* @__PURE__ */ (0, L.jsx)(Ye, {
886
+ let w = F.useCallback((e) => {
887
+ e && h.current === !0 && (x(), y?.(), h.current = !1);
888
+ }, [x, y]);
889
+ return /* @__PURE__ */ (0, I.jsx)(Ye, {
890
890
  scope: n,
891
891
  contentWrapper: c,
892
892
  shouldExpandOnScrollRef: m,
893
893
  onScrollButtonChange: w,
894
- children: /* @__PURE__ */ (0, L.jsx)("div", {
894
+ children: /* @__PURE__ */ (0, I.jsx)("div", {
895
895
  ref: l,
896
896
  style: {
897
897
  display: "flex",
@@ -899,7 +899,7 @@ var Ne = /* @__PURE__ */ G((e) => {
899
899
  position: "fixed",
900
900
  zIndex: S
901
901
  },
902
- children: /* @__PURE__ */ (0, L.jsx)(y.div, {
902
+ children: /* @__PURE__ */ (0, I.jsx)(k.div, {
903
903
  ...a,
904
904
  ref: f,
905
905
  style: {
@@ -910,9 +910,9 @@ var Ne = /* @__PURE__ */ G((e) => {
910
910
  })
911
911
  })
912
912
  });
913
- }, "SelectItemAlignedPosition")), Je = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
913
+ }, "SelectItemAlignedPosition")), Je = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
914
914
  let { __scopeSelect: n, align: r = "start", collisionPadding: i = X, ...a } = e, o = Oe(n);
915
- return /* @__PURE__ */ (0, L.jsx)(d, {
915
+ return /* @__PURE__ */ (0, I.jsx)(d, {
916
916
  ...o,
917
917
  ...a,
918
918
  ref: t,
@@ -928,14 +928,14 @@ var Ne = /* @__PURE__ */ G((e) => {
928
928
  "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
929
929
  }
930
930
  });
931
- }, "SelectPopperPosition")), [Ye, Xe] = q(Y, {}), Ze = "SelectViewport", Qe = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
932
- let { __scopeSelect: n, nonce: r, ...a } = e, o = Z(Ze, n), s = Xe(Ze, n), c = i(t, o.onViewportChange), l = I.useRef(0);
933
- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("style", {
931
+ }, "SelectPopperPosition")), [Ye, Xe] = q(Y, {}), Ze = "SelectViewport", Qe = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
932
+ let { __scopeSelect: n, nonce: r, ...a } = e, o = Z(Ze, n), s = Xe(Ze, n), c = i(t, o.onViewportChange), l = F.useRef(0);
933
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("style", {
934
934
  dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
935
935
  nonce: r
936
- }), /* @__PURE__ */ (0, L.jsx)(we.Slot, {
936
+ }), /* @__PURE__ */ (0, I.jsx)(we.Slot, {
937
937
  scope: n,
938
- children: /* @__PURE__ */ (0, L.jsx)(y.div, {
938
+ children: /* @__PURE__ */ (0, I.jsx)(k.div, {
939
939
  "data-radix-select-viewport": "",
940
940
  role: "presentation",
941
941
  ...a,
@@ -946,7 +946,7 @@ var Ne = /* @__PURE__ */ G((e) => {
946
946
  overflow: "hidden auto",
947
947
  ...a.style
948
948
  },
949
- onScroll: v(a.onScroll, (e) => {
949
+ onScroll: x(a.onScroll, (e) => {
950
950
  let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } = s;
951
951
  if (r?.current && n) {
952
952
  let e = Math.abs(l.current - t.scrollTop);
@@ -962,45 +962,45 @@ var Ne = /* @__PURE__ */ G((e) => {
962
962
  })
963
963
  })
964
964
  })] });
965
- }, "SelectViewport")), [$e, et] = q("SelectGroup"), tt = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
966
- let { __scopeSelect: n, ...r } = e, i = T();
967
- return /* @__PURE__ */ (0, L.jsx)($e, {
965
+ }, "SelectViewport")), [$e, et] = q("SelectGroup"), tt = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
966
+ let { __scopeSelect: n, ...r } = e, i = y();
967
+ return /* @__PURE__ */ (0, I.jsx)($e, {
968
968
  scope: n,
969
969
  id: i,
970
- children: /* @__PURE__ */ (0, L.jsx)(y.div, {
970
+ children: /* @__PURE__ */ (0, I.jsx)(k.div, {
971
971
  role: "group",
972
972
  "aria-labelledby": i,
973
973
  ...r,
974
974
  ref: t
975
975
  })
976
976
  });
977
- }, "SelectGroup")), nt = "SelectLabel", rt = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
977
+ }, "SelectGroup")), nt = "SelectLabel", rt = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
978
978
  let { __scopeSelect: n, ...r } = e, i = et(nt, n);
979
- return /* @__PURE__ */ (0, L.jsx)(y.div, {
979
+ return /* @__PURE__ */ (0, I.jsx)(k.div, {
980
980
  id: i.id,
981
981
  ...r,
982
982
  ref: t
983
983
  });
984
- }, "SelectLabel")), it = "SelectItem", [at, ot] = q(it), st = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
985
- let { __scopeSelect: n, value: r, disabled: a = !1, textValue: o, ...s } = e, c = J(it, n), l = Z(it, n), u = c.value === r, [d, f] = I.useState(o ?? ""), [p, m] = I.useState(!1), h = A((e) => l.itemRefCallback?.(e, r, a)), g = i(t, h), _ = T(), b = I.useRef("touch");
986
- function x(e) {
984
+ }, "SelectLabel")), it = "SelectItem", [at, ot] = q(it), st = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
985
+ let { __scopeSelect: n, value: r, disabled: a = !1, textValue: o, ...s } = e, c = J(it, n), l = Z(it, n), u = c.value === r, [d, f] = F.useState(o ?? ""), [p, m] = F.useState(!1), h = w((e) => l.itemRefCallback?.(e, r, a)), g = i(t, h), _ = y(), v = F.useRef("touch");
986
+ function b(e) {
987
987
  c.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), c.onUserSelect(r), c.onOpenChange(!1);
988
988
  }
989
- return G(x, "handleSelect"), /* @__PURE__ */ (0, L.jsx)(at, {
989
+ return G(b, "handleSelect"), /* @__PURE__ */ (0, I.jsx)(at, {
990
990
  scope: n,
991
991
  value: r,
992
992
  disabled: a,
993
993
  textId: _,
994
994
  isSelected: u,
995
- onItemTextChange: I.useCallback((e) => {
995
+ onItemTextChange: F.useCallback((e) => {
996
996
  f((t) => t || (e?.textContent ?? "").trim());
997
997
  }, []),
998
- children: /* @__PURE__ */ (0, L.jsx)(we.ItemSlot, {
998
+ children: /* @__PURE__ */ (0, I.jsx)(we.ItemSlot, {
999
999
  scope: n,
1000
1000
  value: r,
1001
1001
  disabled: a,
1002
1002
  textValue: d,
1003
- children: /* @__PURE__ */ (0, L.jsx)(y.div, {
1003
+ children: /* @__PURE__ */ (0, I.jsx)(k.div, {
1004
1004
  role: "option",
1005
1005
  "aria-labelledby": _,
1006
1006
  "data-highlighted": p ? "" : void 0,
@@ -1011,31 +1011,31 @@ var Ne = /* @__PURE__ */ G((e) => {
1011
1011
  tabIndex: a ? void 0 : -1,
1012
1012
  ...s,
1013
1013
  ref: g,
1014
- onFocus: v(s.onFocus, () => m(!0)),
1015
- onBlur: v(s.onBlur, () => m(!1)),
1016
- onClick: v(s.onClick, (e) => {
1017
- a || b.current !== "mouse" && x(e);
1014
+ onFocus: x(s.onFocus, () => m(!0)),
1015
+ onBlur: x(s.onBlur, () => m(!1)),
1016
+ onClick: x(s.onClick, (e) => {
1017
+ a || v.current !== "mouse" && b(e);
1018
1018
  }),
1019
- onPointerUp: v(s.onPointerUp, (e) => {
1020
- a || b.current === "mouse" && x(e);
1019
+ onPointerUp: x(s.onPointerUp, (e) => {
1020
+ a || v.current === "mouse" && b(e);
1021
1021
  }),
1022
- onPointerDown: v(s.onPointerDown, (e) => {
1023
- b.current = e.pointerType;
1022
+ onPointerDown: x(s.onPointerDown, (e) => {
1023
+ v.current = e.pointerType;
1024
1024
  }),
1025
- onPointerMove: v(s.onPointerMove, (e) => {
1026
- b.current = e.pointerType, a ? l.onItemLeave?.() : b.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
1025
+ onPointerMove: x(s.onPointerMove, (e) => {
1026
+ v.current = e.pointerType, a ? l.onItemLeave?.() : v.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
1027
1027
  }),
1028
- onPointerLeave: v(s.onPointerLeave, (e) => {
1028
+ onPointerLeave: x(s.onPointerLeave, (e) => {
1029
1029
  e.currentTarget === document.activeElement && l.onItemLeave?.();
1030
1030
  }),
1031
- onKeyDown: v(s.onKeyDown, (e) => {
1032
- a || e.target !== e.currentTarget || (l.searchRef?.current === "" || e.key !== " ") && (Ce.includes(e.key) && x(e), e.key === " " && e.preventDefault());
1031
+ onKeyDown: x(s.onKeyDown, (e) => {
1032
+ a || e.target !== e.currentTarget || (l.searchRef?.current === "" || e.key !== " ") && (Ce.includes(e.key) && b(e), e.key === " " && e.preventDefault());
1033
1033
  })
1034
1034
  })
1035
1035
  })
1036
1036
  });
1037
- }, "SelectItem")), ct = "SelectItemText", lt = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
1038
- let { __scopeSelect: n, className: r, style: a, ...o } = e, s = J(ct, n), c = Z(ct, n), l = ot(ct, n), u = je(ct, n), [d, f] = I.useState(null), p = A((e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), m = i(t, f, l.onItemTextChange, p), h = d?.textContent, g = I.useMemo(() => /* @__PURE__ */ (0, L.jsx)("option", {
1037
+ }, "SelectItem")), ct = "SelectItemText", lt = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
1038
+ let { __scopeSelect: n, className: r, style: a, ...o } = e, s = J(ct, n), c = Z(ct, n), l = ot(ct, n), u = je(ct, n), [d, f] = F.useState(null), p = w((e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), m = i(t, f, l.onItemTextChange, p), h = d?.textContent, g = F.useMemo(() => /* @__PURE__ */ (0, I.jsx)("option", {
1039
1039
  value: l.value,
1040
1040
  disabled: l.disabled,
1041
1041
  children: h
@@ -1044,25 +1044,25 @@ var Ne = /* @__PURE__ */ G((e) => {
1044
1044
  l.value,
1045
1045
  h
1046
1046
  ]), { onNativeOptionAdd: _, onNativeOptionRemove: v } = u;
1047
- return k(() => (_(g), () => v(g)), [
1047
+ return b(() => (_(g), () => v(g)), [
1048
1048
  _,
1049
1049
  v,
1050
1050
  g
1051
- ]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(y.span, {
1051
+ ]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(k.span, {
1052
1052
  id: l.textId,
1053
1053
  ...o,
1054
1054
  ref: m
1055
- }), l.isSelected && s.valueNode && !s.valueNodeHasChildren && !Q(s.value) ? F.createPortal(o.children, s.valueNode) : null] });
1056
- }, "SelectItemText")), ut = "SelectItemIndicator", dt = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
1055
+ }), l.isSelected && s.valueNode && !s.valueNodeHasChildren && !Q(s.value) ? P.createPortal(o.children, s.valueNode) : null] });
1056
+ }, "SelectItemText")), ut = "SelectItemIndicator", dt = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
1057
1057
  let { __scopeSelect: n, ...r } = e;
1058
- return ot(ut, n).isSelected ? /* @__PURE__ */ (0, L.jsx)(y.span, {
1058
+ return ot(ut, n).isSelected ? /* @__PURE__ */ (0, I.jsx)(k.span, {
1059
1059
  "aria-hidden": !0,
1060
1060
  ...r,
1061
1061
  ref: t
1062
1062
  }) : null;
1063
- }, "SelectItemIndicator")), ft = "SelectScrollUpButton", pt = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
1064
- let n = Z(ft, e.__scopeSelect), r = Xe(ft, e.__scopeSelect), [a, o] = I.useState(!1), s = i(t, r.onScrollButtonChange);
1065
- return k(() => {
1063
+ }, "SelectItemIndicator")), ft = "SelectScrollUpButton", pt = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
1064
+ let n = Z(ft, e.__scopeSelect), r = Xe(ft, e.__scopeSelect), [a, o] = F.useState(!1), s = i(t, r.onScrollButtonChange);
1065
+ return b(() => {
1066
1066
  if (n.viewport && n.isPositioned) {
1067
1067
  let e = function() {
1068
1068
  let e = t.scrollTop > 0;
@@ -1072,7 +1072,7 @@ var Ne = /* @__PURE__ */ G((e) => {
1072
1072
  let t = n.viewport;
1073
1073
  return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
1074
1074
  }
1075
- }, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, L.jsx)(gt, {
1075
+ }, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, I.jsx)(gt, {
1076
1076
  ...e,
1077
1077
  ref: s,
1078
1078
  onAutoScroll: () => {
@@ -1080,9 +1080,9 @@ var Ne = /* @__PURE__ */ G((e) => {
1080
1080
  e && t && (e.scrollTop -= t.offsetHeight);
1081
1081
  }
1082
1082
  }) : null;
1083
- }, "SelectScrollUpButton")), mt = "SelectScrollDownButton", ht = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
1084
- let n = Z(mt, e.__scopeSelect), r = Xe(mt, e.__scopeSelect), [a, o] = I.useState(!1), s = i(t, r.onScrollButtonChange);
1085
- return k(() => {
1083
+ }, "SelectScrollUpButton")), mt = "SelectScrollDownButton", ht = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
1084
+ let n = Z(mt, e.__scopeSelect), r = Xe(mt, e.__scopeSelect), [a, o] = F.useState(!1), s = i(t, r.onScrollButtonChange);
1085
+ return b(() => {
1086
1086
  if (n.viewport && n.isPositioned) {
1087
1087
  let e = function() {
1088
1088
  let e = t.scrollHeight - t.clientHeight, n = Math.ceil(t.scrollTop) < e;
@@ -1092,7 +1092,7 @@ var Ne = /* @__PURE__ */ G((e) => {
1092
1092
  let t = n.viewport;
1093
1093
  return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
1094
1094
  }
1095
- }, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, L.jsx)(gt, {
1095
+ }, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, I.jsx)(gt, {
1096
1096
  ...e,
1097
1097
  ref: s,
1098
1098
  onAutoScroll: () => {
@@ -1100,13 +1100,13 @@ var Ne = /* @__PURE__ */ G((e) => {
1100
1100
  e && t && (e.scrollTop += t.offsetHeight);
1101
1101
  }
1102
1102
  }) : null;
1103
- }, "SelectScrollDownButton")), gt = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
1104
- let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = Z("SelectScrollButton", n), o = I.useRef(null), s = Te(n), c = I.useCallback(() => {
1103
+ }, "SelectScrollDownButton")), gt = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
1104
+ let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = Z("SelectScrollButton", n), o = F.useRef(null), s = Te(n), c = F.useCallback(() => {
1105
1105
  o.current !== null && (window.clearInterval(o.current), o.current = null);
1106
1106
  }, []);
1107
- return I.useEffect(() => () => c(), [c]), k(() => {
1107
+ return F.useEffect(() => () => c(), [c]), b(() => {
1108
1108
  s().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
1109
- }, [s]), /* @__PURE__ */ (0, L.jsx)(y.div, {
1109
+ }, [s]), /* @__PURE__ */ (0, I.jsx)(k.div, {
1110
1110
  "aria-hidden": !0,
1111
1111
  ...i,
1112
1112
  ref: t,
@@ -1114,39 +1114,39 @@ var Ne = /* @__PURE__ */ G((e) => {
1114
1114
  flexShrink: 0,
1115
1115
  ...i.style
1116
1116
  },
1117
- onPointerDown: v(i.onPointerDown, () => {
1117
+ onPointerDown: x(i.onPointerDown, () => {
1118
1118
  o.current === null && (o.current = window.setInterval(r, 50));
1119
1119
  }),
1120
- onPointerMove: v(i.onPointerMove, () => {
1120
+ onPointerMove: x(i.onPointerMove, () => {
1121
1121
  a.onItemLeave?.(), o.current === null && (o.current = window.setInterval(r, 50));
1122
1122
  }),
1123
- onPointerLeave: v(i.onPointerLeave, () => {
1123
+ onPointerLeave: x(i.onPointerLeave, () => {
1124
1124
  c();
1125
1125
  })
1126
1126
  });
1127
- }, "SelectScrollButtonImpl")), _t = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
1127
+ }, "SelectScrollButtonImpl")), _t = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function(e, t) {
1128
1128
  let { __scopeSelect: n, ...r } = e;
1129
- return /* @__PURE__ */ (0, L.jsx)(y.div, {
1129
+ return /* @__PURE__ */ (0, I.jsx)(k.div, {
1130
1130
  "aria-hidden": !0,
1131
1131
  ...r,
1132
1132
  ref: t
1133
1133
  });
1134
- }, "SelectSeparator")), vt = "SelectBubbleInput", yt = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function({ __scopeSelect: e, ...t }, n) {
1135
- let r = J(vt, e), { value: a, onValueChange: o, required: s, disabled: c, name: l, autoComplete: d, form: f, userSelection: p } = r, { nativeOptions: m, nativeSelectKey: h } = r, g = I.useRef(null), _ = i(n, g), v = a ?? "", b = I.useRef(v), x = I.useRef(p), S = I.useRef(!1), C = Array.from(m).some((e) => (e.props.value ?? "") === "");
1136
- return I.useEffect(() => {
1134
+ }, "SelectSeparator")), vt = "SelectBubbleInput", yt = /* @__PURE__ */ F.forwardRef(/* @__PURE__ */ G(function({ __scopeSelect: e, ...t }, n) {
1135
+ let r = J(vt, e), { value: a, onValueChange: o, required: s, disabled: c, name: l, autoComplete: d, form: f, userSelection: p } = r, { nativeOptions: m, nativeSelectKey: h } = r, g = F.useRef(null), _ = i(n, g), v = a ?? "", y = F.useRef(v), b = F.useRef(p), x = F.useRef(!1), S = Array.from(m).some((e) => (e.props.value ?? "") === "");
1136
+ return F.useEffect(() => {
1137
1137
  let e = g.current;
1138
1138
  if (!e) return;
1139
- let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set, r = p !== null && p !== x.current;
1140
- x.current = p;
1141
- let i = b.current !== v;
1142
- b.current = v;
1139
+ let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set, r = p !== null && p !== b.current;
1140
+ b.current = p;
1141
+ let i = y.current !== v;
1142
+ y.current = v;
1143
1143
  let a = r && i;
1144
1144
  if (r && !i && p.value !== v && !p.hasConsumerStoppedPropagation && n) {
1145
- S.current = !0;
1145
+ x.current = !0;
1146
1146
  try {
1147
1147
  n.call(e, p.value), e.dispatchEvent(new Event("change", { bubbles: !0 }));
1148
1148
  } finally {
1149
- S.current = !1, n.call(e, v);
1149
+ x.current = !1, n.call(e, v);
1150
1150
  }
1151
1151
  return;
1152
1152
  }
@@ -1155,7 +1155,7 @@ var Ne = /* @__PURE__ */ G((e) => {
1155
1155
  let t = new Event("change", { bubbles: o });
1156
1156
  n.call(e, v), e.dispatchEvent(t);
1157
1157
  }
1158
- }, [v, p]), /* @__PURE__ */ (0, L.jsxs)(y.select, {
1158
+ }, [v, p]), /* @__PURE__ */ (0, I.jsxs)(k.select, {
1159
1159
  "aria-hidden": !0,
1160
1160
  required: s,
1161
1161
  tabIndex: -1,
@@ -1164,7 +1164,7 @@ var Ne = /* @__PURE__ */ G((e) => {
1164
1164
  disabled: c,
1165
1165
  form: f,
1166
1166
  onChange: (e) => {
1167
- S.current || o(e.target.value);
1167
+ x.current || o(e.target.value);
1168
1168
  },
1169
1169
  ...t,
1170
1170
  style: {
@@ -1173,7 +1173,7 @@ var Ne = /* @__PURE__ */ G((e) => {
1173
1173
  },
1174
1174
  ref: _,
1175
1175
  defaultValue: v,
1176
- children: [Q(a) && !C ? /* @__PURE__ */ (0, L.jsx)("option", { value: "" }) : null, Array.from(m)]
1176
+ children: [Q(a) && !S ? /* @__PURE__ */ (0, I.jsx)("option", { value: "" }) : null, Array.from(m)]
1177
1177
  }, h);
1178
1178
  }, "SelectBubbleInput"));
1179
1179
  function bt(e) {
@@ -1185,17 +1185,17 @@ function Q(e) {
1185
1185
  }
1186
1186
  G(Q, "shouldShowPlaceholder");
1187
1187
  function xt(e) {
1188
- let t = A(e), n = I.useRef(""), r = I.useRef(0), i = I.useCallback((e) => {
1188
+ let t = w(e), n = F.useRef(""), r = F.useRef(0), i = F.useCallback((e) => {
1189
1189
  let i = n.current + e;
1190
1190
  t(i);
1191
1191
  function a(e) {
1192
1192
  n.current = e, window.clearTimeout(r.current), e !== "" && (r.current = window.setTimeout(() => a(""), 1e3));
1193
1193
  }
1194
1194
  G(a, "updateSearch"), a(i);
1195
- }, [t]), a = I.useCallback(() => {
1195
+ }, [t]), a = F.useCallback(() => {
1196
1196
  n.current = "", window.clearTimeout(r.current);
1197
1197
  }, []);
1198
- return I.useEffect(() => () => window.clearTimeout(r.current), []), [
1198
+ return F.useEffect(() => () => window.clearTimeout(r.current), []), [
1199
1199
  n,
1200
1200
  i,
1201
1201
  a
@@ -1216,7 +1216,7 @@ G(Ct, "wrapArray");
1216
1216
  //#endregion
1217
1217
  //#region src/utils/assertNever.ts
1218
1218
  function wt(e) {
1219
- j(!1, `Unexpected object: ${e}`);
1219
+ A(!1, `Unexpected object: ${e}`);
1220
1220
  }
1221
1221
  function Tt(e) {
1222
1222
  return t.warn(`Unexpected object: ${JSON.stringify(e)}`), e;
@@ -1269,7 +1269,7 @@ var Ot = {
1269
1269
  let a;
1270
1270
  t[3] === r ? a = t[4] : (a = n("ml-auto text-xs tracking-widest opacity-60", r), t[3] = r, t[4] = a);
1271
1271
  let o;
1272
- return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ (0, L.jsx)("span", {
1272
+ return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ (0, I.jsx)("span", {
1273
1273
  className: a,
1274
1274
  ...i
1275
1275
  }), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
@@ -1283,7 +1283,7 @@ var Rt = a("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-backg
1283
1283
  ghost: "opacity-70 hover:opacity-100 focus:opacity-100"
1284
1284
  } },
1285
1285
  defaultVariants: { variant: "default" }
1286
- }), zt = I.forwardRef((e, t) => {
1286
+ }), zt = F.forwardRef((e, t) => {
1287
1287
  let i = (0, $.c)(12), a, o, s;
1288
1288
  i[0] === e ? (a = i[1], o = i[2], s = i[3]) : ({className: o, children: a, ...s} = e, i[0] = e, i[1] = a, i[2] = o, i[3] = s);
1289
1289
  let c;
@@ -1291,7 +1291,7 @@ var Rt = a("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-backg
1291
1291
  let l;
1292
1292
  i[5] === o ? l = i[6] : (l = n(Rt({}), o), i[5] = o, i[6] = l);
1293
1293
  let u;
1294
- return i[7] !== a || i[8] !== s || i[9] !== t || i[10] !== l ? (u = /* @__PURE__ */ (0, L.jsx)("select", {
1294
+ return i[7] !== a || i[8] !== s || i[9] !== t || i[10] !== l ? (u = /* @__PURE__ */ (0, I.jsx)("select", {
1295
1295
  ref: t,
1296
1296
  onClick: c,
1297
1297
  className: l,
@@ -1302,25 +1302,25 @@ var Rt = a("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-backg
1302
1302
  zt.displayName = "NativeSelect";
1303
1303
  //#endregion
1304
1304
  //#region src/components/ui/select.tsx
1305
- var Bt = Ne, Vt = tt, Ht = w(Ve), Ut = Le, Wt = I.forwardRef((e, t) => {
1305
+ var Bt = Ne, Vt = tt, Ht = C(Ve), Ut = Le, Wt = F.forwardRef((e, t) => {
1306
1306
  let r = (0, $.c)(21), i, a, o, s, c, l;
1307
1307
  r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5], l = r[6]) : ({className: a, children: i, onClear: o, variant: l, hideChevron: c, ...s} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c, r[6] = l);
1308
1308
  let u = c !== void 0 && c, d;
1309
1309
  r[7] !== a || r[8] !== l ? (d = n(Rt({ variant: l }), "mb-0", a), r[7] = a, r[8] = l, r[9] = d) : d = r[9];
1310
1310
  let f;
1311
- r[10] !== u || r[11] !== o ? (f = o ? /* @__PURE__ */ (0, L.jsx)("span", {
1311
+ r[10] !== u || r[11] !== o ? (f = o ? /* @__PURE__ */ (0, I.jsx)("span", {
1312
1312
  onPointerDown: (e) => {
1313
1313
  e.preventDefault(), e.stopPropagation(), o();
1314
1314
  },
1315
- children: /* @__PURE__ */ (0, L.jsx)(P, { className: "h-4 w-4 opacity-50 hover:opacity-90" })
1316
- }) : !u && /* @__PURE__ */ (0, L.jsx)(M, { className: "h-4 w-4 opacity-50" }), r[10] = u, r[11] = o, r[12] = f) : f = r[12];
1315
+ children: /* @__PURE__ */ (0, I.jsx)(N, { className: "h-4 w-4 opacity-50 hover:opacity-90" })
1316
+ }) : !u && /* @__PURE__ */ (0, I.jsx)(j, { className: "h-4 w-4 opacity-50" }), r[10] = u, r[11] = o, r[12] = f) : f = r[12];
1317
1317
  let p;
1318
- r[13] === f ? p = r[14] : (p = /* @__PURE__ */ (0, L.jsx)(Re, {
1318
+ r[13] === f ? p = r[14] : (p = /* @__PURE__ */ (0, I.jsx)(Re, {
1319
1319
  asChild: !0,
1320
1320
  children: f
1321
1321
  }), r[13] = f, r[14] = p);
1322
1322
  let m;
1323
- return r[15] !== i || r[16] !== s || r[17] !== t || r[18] !== d || r[19] !== p ? (m = /* @__PURE__ */ (0, L.jsxs)(Fe, {
1323
+ return r[15] !== i || r[16] !== s || r[17] !== t || r[18] !== d || r[19] !== p ? (m = /* @__PURE__ */ (0, I.jsxs)(Fe, {
1324
1324
  ref: t,
1325
1325
  className: d,
1326
1326
  ...s,
@@ -1328,30 +1328,30 @@ var Bt = Ne, Vt = tt, Ht = w(Ve), Ut = Le, Wt = I.forwardRef((e, t) => {
1328
1328
  }), r[15] = i, r[16] = s, r[17] = t, r[18] = d, r[19] = p, r[20] = m) : m = r[20], m;
1329
1329
  });
1330
1330
  Wt.displayName = Fe.displayName;
1331
- var Gt = C(He), Kt = I.forwardRef((e, t) => {
1331
+ var Gt = v(He), Kt = F.forwardRef((e, t) => {
1332
1332
  let r = (0, $.c)(21), i, a, o, s;
1333
1333
  r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: a, children: i, position: s, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
1334
1334
  let c = s === void 0 ? "popper" : s, l = c === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", u;
1335
1335
  r[5] !== a || r[6] !== l ? (u = n("max-h-[300px] relative z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", l, a), r[5] = a, r[6] = l, r[7] = u) : u = r[7];
1336
1336
  let d;
1337
- r[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, L.jsx)(pt, {
1337
+ r[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, I.jsx)(pt, {
1338
1338
  className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
1339
- children: /* @__PURE__ */ (0, L.jsx)(N, { className: "h-4 w-4" })
1339
+ children: /* @__PURE__ */ (0, I.jsx)(M, { className: "h-4 w-4" })
1340
1340
  }), r[8] = d) : d = r[8];
1341
1341
  let f = c === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)", p;
1342
1342
  r[9] === f ? p = r[10] : (p = n("p-1", f), r[9] = f, r[10] = p);
1343
1343
  let m;
1344
- r[11] !== i || r[12] !== p ? (m = /* @__PURE__ */ (0, L.jsx)(Qe, {
1344
+ r[11] !== i || r[12] !== p ? (m = /* @__PURE__ */ (0, I.jsx)(Qe, {
1345
1345
  className: p,
1346
1346
  children: i
1347
1347
  }), r[11] = i, r[12] = p, r[13] = m) : m = r[13];
1348
1348
  let h;
1349
- r[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, L.jsx)(ht, {
1349
+ r[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, I.jsx)(ht, {
1350
1350
  className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
1351
- children: /* @__PURE__ */ (0, L.jsx)(M, { className: "h-4 w-4 opacity-50" })
1351
+ children: /* @__PURE__ */ (0, I.jsx)(j, { className: "h-4 w-4 opacity-50" })
1352
1352
  }), r[14] = h) : h = r[14];
1353
1353
  let g;
1354
- return r[15] !== c || r[16] !== o || r[17] !== t || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, L.jsx)(Ht, { children: /* @__PURE__ */ (0, L.jsx)(b, { children: /* @__PURE__ */ (0, L.jsxs)(Gt, {
1354
+ return r[15] !== c || r[16] !== o || r[17] !== t || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, I.jsx)(Ht, { children: /* @__PURE__ */ (0, I.jsx)(re, { children: /* @__PURE__ */ (0, I.jsxs)(Gt, {
1355
1355
  ref: t,
1356
1356
  className: u,
1357
1357
  position: c,
@@ -1364,37 +1364,37 @@ var Gt = C(He), Kt = I.forwardRef((e, t) => {
1364
1364
  }) }) }), r[15] = c, r[16] = o, r[17] = t, r[18] = u, r[19] = m, r[20] = g) : g = r[20], g;
1365
1365
  });
1366
1366
  Kt.displayName = He.displayName;
1367
- var qt = I.forwardRef((e, t) => {
1367
+ var qt = F.forwardRef((e, t) => {
1368
1368
  let r = (0, $.c)(9), i, a;
1369
1369
  r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
1370
1370
  let o;
1371
1371
  r[3] === i ? o = r[4] : (o = n("px-2 py-1.5 text-sm font-semibold", i), r[3] = i, r[4] = o);
1372
1372
  let s;
1373
- return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, L.jsx)(rt, {
1373
+ return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, I.jsx)(rt, {
1374
1374
  ref: t,
1375
1375
  className: o,
1376
1376
  ...a
1377
1377
  }), r[5] = a, r[6] = t, r[7] = o, r[8] = s) : s = r[8], s;
1378
1378
  });
1379
1379
  qt.displayName = rt.displayName;
1380
- var Jt = I.forwardRef((e, t) => {
1380
+ var Jt = F.forwardRef((e, t) => {
1381
1381
  let r = (0, $.c)(17), i, a, o, s;
1382
1382
  r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: a, children: i, subtitle: s, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
1383
1383
  let c;
1384
1384
  r[5] === a ? c = r[6] : (c = n("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText]", jt, a), r[5] = a, r[6] = c);
1385
1385
  let l;
1386
- r[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, L.jsx)("span", {
1386
+ r[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, I.jsx)("span", {
1387
1387
  className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
1388
- children: /* @__PURE__ */ (0, L.jsx)(dt, { children: /* @__PURE__ */ (0, L.jsx)(h, { className: "h-3 w-3" }) })
1388
+ children: /* @__PURE__ */ (0, I.jsx)(dt, { children: /* @__PURE__ */ (0, I.jsx)(h, { className: "h-3 w-3" }) })
1389
1389
  }), r[7] = l) : l = r[7];
1390
1390
  let u = typeof i != "string" || void 0, d;
1391
- r[8] !== i || r[9] !== u ? (d = /* @__PURE__ */ (0, L.jsx)(lt, {
1391
+ r[8] !== i || r[9] !== u ? (d = /* @__PURE__ */ (0, I.jsx)(lt, {
1392
1392
  asChild: u,
1393
1393
  className: "flex w-full flex-1",
1394
1394
  children: i
1395
1395
  }), r[8] = i, r[9] = u, r[10] = d) : d = r[10];
1396
1396
  let f;
1397
- return r[11] !== o || r[12] !== t || r[13] !== s || r[14] !== c || r[15] !== d ? (f = /* @__PURE__ */ (0, L.jsxs)(st, {
1397
+ return r[11] !== o || r[12] !== t || r[13] !== s || r[14] !== c || r[15] !== d ? (f = /* @__PURE__ */ (0, I.jsxs)(st, {
1398
1398
  ref: t,
1399
1399
  className: c,
1400
1400
  ...o,
@@ -1406,13 +1406,13 @@ var Jt = I.forwardRef((e, t) => {
1406
1406
  }), r[11] = o, r[12] = t, r[13] = s, r[14] = c, r[15] = d, r[16] = f) : f = r[16], f;
1407
1407
  });
1408
1408
  Jt.displayName = st.displayName;
1409
- var Yt = I.forwardRef((e, t) => {
1409
+ var Yt = F.forwardRef((e, t) => {
1410
1410
  let r = (0, $.c)(9), i, a;
1411
1411
  r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
1412
1412
  let o;
1413
1413
  r[3] === i ? o = r[4] : (o = n("-mx-1 my-1 h-px bg-muted", i), r[3] = i, r[4] = o);
1414
1414
  let s;
1415
- return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, L.jsx)(_t, {
1415
+ return r[5] !== a || r[6] !== t || r[7] !== o ? (s = /* @__PURE__ */ (0, I.jsx)(_t, {
1416
1416
  ref: t,
1417
1417
  className: o,
1418
1418
  ...a
@@ -1420,4 +1420,4 @@ var Yt = I.forwardRef((e, t) => {
1420
1420
  });
1421
1421
  Yt.displayName = _t.displayName;
1422
1422
  //#endregion
1423
- export { P as A, Tt as C, he as D, ve as E, M, B as O, wt as S, Fe as T, Pt as _, qt as a, Ot as b, Ut as c, jt as d, Lt as f, Ft as g, Mt as h, Jt as i, N as j, ae as k, zt as l, Nt as m, Kt as n, Yt as o, kt as p, Vt as r, Wt as s, Bt as t, Rt as u, It as v, Re as w, Et as x, At as y };
1423
+ export { N as A, Tt as C, he as D, ve as E, j as M, z as O, wt as S, Fe as T, Pt as _, qt as a, Ot as b, Ut as c, jt as d, Lt as f, Ft as g, Mt as h, Jt as i, M as j, oe as k, zt as l, Nt as m, Kt as n, Yt as o, kt as p, Vt as r, Wt as s, Bt as t, Rt as u, It as v, Re as w, Et as x, At as y };