@marimo-team/islands 0.25.3-dev437 → 0.25.3-dev439

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 (96) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CoEU9snz.js → ConnectedDataExplorerComponent-LA5OtjAG.js} +11 -11
  2. package/dist/{ErrorBoundary-LQpWaaaj.js → ErrorBoundary-B4npV6Uy.js} +18 -18
  3. package/dist/{abnfDiagram-VCTEODGH-RbfxpmIE.js → abnfDiagram-VCTEODGH-CBntFgCZ.js} +2 -2
  4. package/dist/{any-language-editor-Cw4VtZvb.js → any-language-editor-gzDRWdCH.js} +2 -2
  5. package/dist/{architectureDiagram-5GKGNRK7-DzzNVRo4.js → architectureDiagram-5GKGNRK7-Bz6ouXl-.js} +1 -1
  6. package/dist/{assertNever-ChGm2jYv.js → assertNever-DOTNJ2Y4.js} +2 -2
  7. package/dist/{chat-ui-BEMyRpmS.js → chat-ui-2c_3M6FX.js} +45 -45
  8. package/dist/{check-BHRB6N0I.js → check-CApwK1fD.js} +1 -1
  9. package/dist/{chunk-IMKFNOWR-1Zy6M_oP.js → chunk-IMKFNOWR-DK_M66Dt.js} +1 -1
  10. package/dist/{chunk-SHT3W25Y-yAttqZEk.js → chunk-SHT3W25Y-C7Cg6zGL.js} +1 -1
  11. package/dist/{chunk-SVP7TREG-MKJpuJHR.js → chunk-SVP7TREG-K0lWia53.js} +1 -1
  12. package/dist/{chunk-TICWLB2K-BOC0OebH.js → chunk-TICWLB2K-DiKpryGp.js} +1 -1
  13. package/dist/{classDiagram-ZZMXUADV-BOlD7kH9.js → classDiagram-ZZMXUADV-CXX5eaxi.js} +2 -2
  14. package/dist/{classDiagram-v2-VYDZK3BY-C3p3seuT.js → classDiagram-v2-VYDZK3BY-Bjyy4iKL.js} +2 -2
  15. package/dist/{code-visibility-Cl2Z5Y2R.js → code-visibility-Dx3sTl1s.js} +17 -17
  16. package/dist/{common-DVxtA3e0.js → common-Cx3bd6pm.js} +4881 -4842
  17. package/dist/{config-EJnOxh0i.js → config-C8TXSDmC.js} +18 -18
  18. package/dist/{copy-icon-Bv5SAA0w.js → copy-icon-CDvvlY90.js} +2 -2
  19. package/dist/{createReducer-BJJ0K5Tu.js → createReducer-CXqSak4H.js} +1 -1
  20. package/dist/{cynefinDiagram-5FMLGOSQ-BKnxm64C.js → cynefinDiagram-5FMLGOSQ-C-MlCYj4.js} +1 -1
  21. package/dist/{dagre-GXQ25YYZ-COBTexAI.js → dagre-GXQ25YYZ-C6e9vEKZ.js} +1 -1
  22. package/dist/{data-grid-overlay-editor-FI3lYcm3.js → data-grid-overlay-editor-CqMKHPcR.js} +1 -1
  23. package/dist/{diagram-S7CK7UJ4-Dyt3J6ek.js → diagram-S7CK7UJ4-DgXNq_At.js} +1 -1
  24. package/dist/{diagram-UQ7AKVKN-CJCsT4fA.js → diagram-UQ7AKVKN-BG5NExCt.js} +1 -1
  25. package/dist/{diagram-VX7I27RA-BboxCtbh.js → diagram-VX7I27RA-Da7VYCfC.js} +1 -1
  26. package/dist/{diagram-Z3DM3KII-DfRWWQ5t.js → diagram-Z3DM3KII-DHk6GaR5.js} +1 -1
  27. package/dist/{dialog-B8vU2hHC.js → dialog-rgayPemF.js} +20 -20
  28. package/dist/{dropdown-menu-DzhAnAhr.js → dropdown-menu-B12Nf3Zf.js} +703 -703
  29. package/dist/{ebnfDiagram-PWID7BFC-DYxwv-nl.js → ebnfDiagram-PWID7BFC-DdSjinXr.js} +2 -2
  30. package/dist/{erDiagram-RLTQ6QDP-D9e5WUw7.js → erDiagram-RLTQ6QDP-BgcwfZct.js} +1 -1
  31. package/dist/{error-banner-BRkKwvku.js → error-banner-DXHIN-63.js} +58 -58
  32. package/dist/{error-entries-BbxtqUQ4.js → error-entries-CNB7O2yS.js} +455 -455
  33. package/dist/{feedback-button-1MiN6gfS.js → feedback-button-CUPrIFyj.js} +7 -7
  34. package/dist/{flowDiagram-HODETNUW-tt7EepxX.js → flowDiagram-HODETNUW-CVwzkmUF.js} +2 -2
  35. package/dist/{formats-HRSqKdFt.js → formats-BWuAsLfw.js} +1 -1
  36. package/dist/{glide-data-editor-Kt7kYQLq.js → glide-data-editor-T1r8b4Cr.js} +11 -11
  37. package/dist/{glide-utils-BzjESEmr.js → glide-utils-D1McS0Pn.js} +2 -2
  38. package/dist/{globals-BjpSYd8i.js → globals-BweO1Da5.js} +3 -3
  39. package/dist/{html-to-image-DuNAF8H5.js → html-to-image-B0UiwmMu.js} +774 -774
  40. package/dist/{infoDiagram-27XIBGKW-CpQH_joy.js → infoDiagram-27XIBGKW-CHkU2P-8.js} +1 -1
  41. package/dist/{ishikawaDiagram-5VMMS53U-d-it4xqm.js → ishikawaDiagram-5VMMS53U-B0k5UyY5.js} +1 -1
  42. package/dist/{kanban-definition-UXKFOSKX-DItpqTFY.js → kanban-definition-UXKFOSKX-DwQvOV0x.js} +1 -1
  43. package/dist/main.js +4958 -4980
  44. package/dist/{mermaid-BugOVfeH.js → mermaid-Bqy6f_NU.js} +34 -34
  45. package/dist/{mindmap-definition-YA3MSWOX-D6IpF-_J.js → mindmap-definition-YA3MSWOX-CqvvAm8I.js} +1 -1
  46. package/dist/{number-overlay-editor-BG707U9t.js → number-overlay-editor-eynzhDoK.js} +1 -1
  47. package/dist/{pegDiagram-XKGWAZYB-CXUu3QwE.js → pegDiagram-XKGWAZYB-Befnx4Ry.js} +2 -2
  48. package/dist/{pencil-DWRFEz2B.js → pencil-BC7pOv9g.js} +1 -1
  49. package/dist/{pieDiagram-E7YTZNPT-DoUJF0yj.js → pieDiagram-E7YTZNPT-6rYFbF7p.js} +1 -1
  50. package/dist/{process-output-Cl97_Reh.js → process-output-3Epq3rw6.js} +4 -4
  51. package/dist/{railroadDiagram-O6MQD6OU-BsGDhtLL.js → railroadDiagram-O6MQD6OU-SSniwYC8.js} +2 -2
  52. package/dist/{requirementDiagram-BXWQKSXE-BHW0qW2Z.js → requirementDiagram-BXWQKSXE-3L_xNfQr.js} +1 -1
  53. package/dist/{reveal-component-C8L9okWw.js → reveal-component-C-ZgAhoP.js} +900 -900
  54. package/dist/{select-Brvb-RwP.js → select-PQHWLm64.js} +99 -99
  55. package/dist/{sequenceDiagram-WJ2MYXX4-DpgYJzLl.js → sequenceDiagram-WJ2MYXX4-DvzIRlWu.js} +1 -1
  56. package/dist/{spec-BWpscSQi.js → spec-6shN7lEe.js} +4 -4
  57. package/dist/{stateDiagram-D77RDMKH-Btf1jiYb.js → stateDiagram-D77RDMKH-VsHup-Ig.js} +2 -2
  58. package/dist/{stateDiagram-v2-MP3YSRHH-DN9FyEf3.js → stateDiagram-v2-MP3YSRHH-BwIIR8nk.js} +2 -2
  59. package/dist/{static-state-BhCfPRoz.js → static-state-CWXd6dYX.js} +9 -9
  60. package/dist/{swimlanes-42K2YHIH-2l_tR9qL.js → swimlanes-42K2YHIH-DhSDCIWI.js} +1 -1
  61. package/dist/{swimlanesDiagram-VR7AAH4N-BAkmv8kE.js → swimlanesDiagram-VR7AAH4N-C2WGVm-W.js} +2 -2
  62. package/dist/{timeline-definition-24CTP7MA-AxSxEOhx.js → timeline-definition-24CTP7MA-DhUhNinO.js} +1 -1
  63. package/dist/{toast-DOWc3HtU.js → toast-BGvv7tKS.js} +153 -153
  64. package/dist/{tooltip-DsQZP310.js → tooltip-CiJ919pg.js} +62 -62
  65. package/dist/{use-restore-focus-CTa7IRP6.js → use-restore-focus-BLj45Ibw.js} +75 -75
  66. package/dist/{useDateFormatter-CRuBYwR6.js → useDateFormatter-C659lkax.js} +2 -2
  67. package/dist/{useDeepCompareMemoize-B2RNcTmn.js → useDeepCompareMemoize-CDhinwm7.js} +1 -1
  68. package/dist/{useLifecycle-Bw0JtmoB.js → useLifecycle-mKiMNa4V.js} +1 -1
  69. package/dist/{vega-component-BV9sYHhU.js → vega-component-CWvQ7wBJ.js} +6 -6
  70. package/dist/{vennDiagram-4TSXK5OY-oHztO7MH.js → vennDiagram-4TSXK5OY-exvBF8P5.js} +1 -1
  71. package/dist/{wardleyDiagram-VM6X3IG4-DWeEjZSc.js → wardleyDiagram-VM6X3IG4-BFhJmnXo.js} +1 -1
  72. package/dist/{xychartDiagram-S5SC5T6Z-ESBlsY9i.js → xychartDiagram-S5SC5T6Z-D_xAdG6u.js} +1 -1
  73. package/package.json +1 -1
  74. package/src/__mocks__/executions.ts +1 -0
  75. package/src/components/editor/controls/Controls.tsx +5 -2
  76. package/src/components/editor/notebook-cell.tsx +7 -21
  77. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +2 -7
  78. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -4
  79. package/src/components/slides/minimap.tsx +2 -3
  80. package/src/components/slides/reveal-component.tsx +2 -3
  81. package/src/components/slides/slide-cell-view.tsx +5 -12
  82. package/src/core/cells/__tests__/cell.test.ts +8 -51
  83. package/src/core/cells/__tests__/utils.test.ts +27 -18
  84. package/src/core/cells/cell.ts +6 -12
  85. package/src/core/cells/cells.ts +5 -3
  86. package/src/core/cells/utils.ts +61 -55
  87. package/src/core/config/config.ts +4 -0
  88. package/src/core/executions/__tests__/atoms.test.ts +0 -18
  89. package/src/core/executions/__tests__/hooks.test.tsx +48 -2
  90. package/src/core/executions/__tests__/output-lifecycle.test.ts +90 -22
  91. package/src/core/executions/__tests__/select.test.ts +0 -17
  92. package/src/core/executions/atoms.ts +51 -65
  93. package/src/core/executions/hooks.ts +24 -0
  94. package/src/core/executions/index.ts +2 -0
  95. package/src/core/executions/select.ts +0 -5
  96. package/src/core/notebook/replica/replica.ts +8 -0
@@ -2,12 +2,12 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { h as t, m as n, p as r, r as i, u as a } from "./button-qQhINE7z.js";
3
3
  import { t as o } from "./react-Bgs_wQh3.js";
4
4
  import { t as s } from "./compiler-runtime-C5KHtL5D.js";
5
- import { c, h as l, l as u, p as d, s as f, u as p } from "./tooltip-DsQZP310.js";
6
- import { t as m } from "./check-BHRB6N0I.js";
7
- import { a as h, s as g } from "./assertNever-ChGm2jYv.js";
5
+ import { c, h as l, l as u, p as d, s as f, u as p } from "./tooltip-CiJ919pg.js";
6
+ import { t as m } from "./check-CApwK1fD.js";
7
+ import { a as h, s as g } from "./assertNever-DOTNJ2Y4.js";
8
8
  import { t as _ } from "./react-dom-DdqGVp5N.js";
9
9
  import { t as v } from "./jsx-runtime-D8btoEHk.js";
10
- import { $t as y, Qt as b, dn as x, fn as S, gn as C, hn as w, l as ee, ln as T, mn as E, nn as D, o as O, pn as k, rn as A, s as te, sn as ne, tn as re, un as j } from "./use-restore-focus-CTa7IRP6.js";
10
+ import { $t as y, _n as b, cn as x, dn as S, en as C, fn as w, gn as T, hn as E, in as ee, l as D, mn as O, nn as k, o as A, pn as te, rn as ne, s as re, un as j } from "./use-restore-focus-BLj45Ibw.js";
11
11
  var M = l("chevron-down", [["path", {
12
12
  d: "m6 9 6 6 6-6",
13
13
  key: "qrunsl"
@@ -32,7 +32,7 @@ var B = Object.defineProperty, V = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */
32
32
  value: t,
33
33
  configurable: !0
34
34
  }))(function(e, t) {
35
- return /* @__PURE__ */ (0, F.jsx)(C.label, {
35
+ return /* @__PURE__ */ (0, F.jsx)(b.label, {
36
36
  ...e,
37
37
  ref: t,
38
38
  onMouseDown: (t) => {
@@ -63,20 +63,20 @@ var ce = Object.defineProperty, U = (e, t) => ce(e, "name", {
63
63
  "Enter",
64
64
  "ArrowUp",
65
65
  "ArrowDown"
66
- ], fe = [" ", "Enter"], W = "Select", [G, pe, me] = h(W), [K, he] = w(W, [me, p]), ge = p(), [_e, q] = K(W), [ve, ye] = K(W);
66
+ ], fe = [" ", "Enter"], W = "Select", [G, pe, me] = h(W), [K, he] = T(W, [me, p]), ge = p(), [_e, q] = K(W), [ve, ye] = K(W);
67
67
  function be(e) {
68
- let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: p, required: m, form: h, internal_do_not_use_render: g } = e, _ = ge(t), [v, y] = P.useState(null), [b, x] = P.useState(null), [C, w] = P.useState(!1), ee = z(l), [T, E] = S({
68
+ let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: p, required: m, form: h, internal_do_not_use_render: g } = e, _ = ge(t), [v, y] = P.useState(null), [b, x] = P.useState(null), [C, w] = P.useState(!1), T = z(l), [E, ee] = te({
69
69
  prop: r,
70
70
  defaultProp: i ?? !1,
71
71
  onChange: a,
72
72
  caller: W
73
- }), [D, O] = S({
73
+ }), [D, O] = te({
74
74
  prop: o,
75
75
  defaultProp: s,
76
76
  onChange: c,
77
77
  caller: W
78
- }), k = P.useRef(null), A = P.useRef(!1), [te, ne] = P.useState(null), re = /* @__PURE__ */ U((e) => {
79
- ne({
78
+ }), k = P.useRef(null), A = P.useRef(!1), [ne, re] = P.useState(null), j = /* @__PURE__ */ U((e) => {
79
+ re({
80
80
  value: e,
81
81
  hasConsumerStoppedPropagation: A.current
82
82
  }), O(e);
@@ -92,7 +92,7 @@ function be(e) {
92
92
  v,
93
93
  O
94
94
  ]);
95
- let ie = !v || !!h || !!v.closest("form"), [N, I] = P.useState(/* @__PURE__ */ new Set()), ae = j(), L = Array.from(N).map((e) => e.props.value).join(";"), R = P.useCallback((e) => {
95
+ let ie = !v || !!h || !!v.closest("form"), [N, I] = P.useState(/* @__PURE__ */ new Set()), ae = S(), L = Array.from(N).map((e) => e.props.value).join(";"), R = P.useCallback((e) => {
96
96
  I((t) => new Set(t).add(e));
97
97
  }, []), B = P.useCallback((e) => {
98
98
  I((t) => {
@@ -111,11 +111,11 @@ function be(e) {
111
111
  value: D,
112
112
  onValueChange: O,
113
113
  hasConsumerStoppedPropagationRef: A,
114
- userSelection: te,
115
- onUserSelect: re,
116
- open: T,
117
- onOpenChange: E,
118
- dir: ee,
114
+ userSelection: ne,
115
+ onUserSelect: j,
116
+ open: E,
117
+ onOpenChange: ee,
118
+ dir: T,
119
119
  triggerPointerDownPosRef: k,
120
120
  disabled: p,
121
121
  name: u,
@@ -163,7 +163,7 @@ var xe = /* @__PURE__ */ U((e) => {
163
163
  return /* @__PURE__ */ (0, F.jsx)(c, {
164
164
  asChild: !0,
165
165
  ...o,
166
- children: /* @__PURE__ */ (0, F.jsx)(C.button, {
166
+ children: /* @__PURE__ */ (0, F.jsx)(b.button, {
167
167
  type: "button",
168
168
  role: "combobox",
169
169
  "aria-controls": s.open ? s.contentId : void 0,
@@ -177,15 +177,15 @@ var xe = /* @__PURE__ */ U((e) => {
177
177
  "data-placeholder": Z(s.value) ? "" : void 0,
178
178
  ...a,
179
179
  ref: u,
180
- onClick: k(a.onClick, (e) => {
180
+ onClick: O(a.onClick, (e) => {
181
181
  e.currentTarget.focus(), f.current !== "mouse" && g(e);
182
182
  }),
183
- onPointerDown: k(a.onPointerDown, (e) => {
183
+ onPointerDown: O(a.onPointerDown, (e) => {
184
184
  f.current = e.pointerType;
185
185
  let t = e.target;
186
186
  t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && e.pointerType === "mouse" && (g(e), e.preventDefault());
187
187
  }),
188
- onKeyDown: k(a.onKeyDown, (e) => {
188
+ onKeyDown: O(a.onKeyDown, (e) => {
189
189
  let t = p.current !== "";
190
190
  !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && (s.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), m(e.key)), !(t && e.key === " ") && de.includes(e.key) && (g(), e.preventDefault());
191
191
  })
@@ -197,7 +197,7 @@ var xe = /* @__PURE__ */ U((e) => {
197
197
  u(d);
198
198
  }, [u, d]);
199
199
  let p = Z(l.value);
200
- return /* @__PURE__ */ (0, F.jsx)(C.span, {
200
+ return /* @__PURE__ */ (0, F.jsx)(b.span, {
201
201
  ...c,
202
202
  asChild: !p && c.asChild,
203
203
  ref: f,
@@ -206,7 +206,7 @@ var xe = /* @__PURE__ */ U((e) => {
206
206
  });
207
207
  }, "SelectValue")), Ee = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
208
208
  let { __scopeSelect: n, children: r, ...i } = e;
209
- return /* @__PURE__ */ (0, F.jsx)(C.span, {
209
+ return /* @__PURE__ */ (0, F.jsx)(b.span, {
210
210
  "aria-hidden": !0,
211
211
  ...i,
212
212
  ref: t,
@@ -217,7 +217,7 @@ var xe = /* @__PURE__ */ U((e) => {
217
217
  return /* @__PURE__ */ (0, F.jsx)(De, {
218
218
  scope: e.__scopeSelect,
219
219
  forceMount: n,
220
- children: /* @__PURE__ */ (0, F.jsx)(D, {
220
+ children: /* @__PURE__ */ (0, F.jsx)(ne, {
221
221
  asChild: !0,
222
222
  ...r
223
223
  })
@@ -226,7 +226,7 @@ var xe = /* @__PURE__ */ U((e) => {
226
226
  let n = Oe(J, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = q(J, e.__scopeSelect), [o, s] = P.useState();
227
227
  return E(() => {
228
228
  s(new DocumentFragment());
229
- }, []), /* @__PURE__ */ (0, F.jsx)(x, {
229
+ }, []), /* @__PURE__ */ (0, F.jsx)(w, {
230
230
  present: r || a.open,
231
231
  children: ({ present: e }) => e ? /* @__PURE__ */ (0, F.jsx)(Pe, {
232
232
  ...i,
@@ -249,22 +249,22 @@ var xe = /* @__PURE__ */ U((e) => {
249
249
  })
250
250
  }), i) : null;
251
251
  }, "SelectContentFragment")), Y = 10, [Me, X] = K(J), Ne = a("SelectContent.RemoveScroll"), Pe = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
252
- let { __scopeSelect: n } = e, { position: i = le.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, x = q(J, n), [S, C] = P.useState(null), [w, ee] = P.useState(null), T = r(t, C), [E, D] = P.useState(null), [O, te] = P.useState(null), j = pe(n), [M, ie] = P.useState(!1), N = P.useRef(!1), I = P.useRef(!1), ae = P.useRef(!1);
252
+ let { __scopeSelect: n } = e, { position: i = le.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, b = q(J, n), [S, w] = P.useState(null), [T, E] = P.useState(null), D = r(t, w), [A, te] = P.useState(null), [ne, re] = P.useState(null), j = pe(n), [M, ie] = P.useState(!1), N = P.useRef(!1), I = P.useRef(!1), ae = P.useRef(!1);
253
253
  P.useEffect(() => {
254
- if (S) return b(S);
255
- }, [S]), re();
254
+ if (S) return y(S);
255
+ }, [S]), k();
256
256
  let L = P.useCallback((e) => {
257
257
  let [t, ...n] = j().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
258
- for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && w && (w.scrollTop = 0), n === r && w && (w.scrollTop = w.scrollHeight), n?.focus(), document.activeElement !== i)) return;
259
- }, [j, w]), R = P.useCallback(() => L([E, S]), [
258
+ for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && T && (T.scrollTop = 0), n === r && T && (T.scrollTop = T.scrollHeight), n?.focus(), document.activeElement !== i)) return;
259
+ }, [j, T]), R = P.useCallback(() => L([A, S]), [
260
260
  L,
261
- E,
261
+ A,
262
262
  S
263
263
  ]);
264
264
  P.useEffect(() => {
265
265
  M && R();
266
266
  }, [M, R]);
267
- let { onOpenChange: z, triggerPointerDownPosRef: B } = x;
267
+ let { onOpenChange: z, triggerPointerDownPosRef: B } = b;
268
268
  P.useEffect(() => {
269
269
  if (S) {
270
270
  let e = {
@@ -302,14 +302,14 @@ var xe = /* @__PURE__ */ U((e) => {
302
302
  let r = !I.current;
303
303
  r && (I.current = !0);
304
304
  let i = !N.current && !n;
305
- x.value !== void 0 && x.value === t || i ? (D(e), i && (N.current = !0)) : r && D(e);
306
- }, [x.value]), H = P.useCallback(() => S?.focus(), [S]), ce = P.useCallback((e, t, n) => {
305
+ b.value !== void 0 && b.value === t || i ? (te(e), i && (N.current = !0)) : r && te(e);
306
+ }, [b.value]), H = P.useCallback(() => S?.focus(), [S]), ce = P.useCallback((e, t, n) => {
307
307
  if (!e) return;
308
308
  let r = !ae.current;
309
309
  r && (ae.current = !0);
310
310
  let i = !N.current && !n;
311
- (x.value !== void 0 && x.value === t || i || r) && te(e);
312
- }, [x.value]), ue = i === le.Popper ? Ie : Fe, de = ue === Ie ? {
311
+ (b.value !== void 0 && b.value === t || i || r) && re(e);
312
+ }, [b.value]), ue = i === le.Popper ? Ie : Fe, de = ue === Ie ? {
313
313
  side: c,
314
314
  sideOffset: l,
315
315
  align: u,
@@ -324,53 +324,53 @@ var xe = /* @__PURE__ */ U((e) => {
324
324
  return /* @__PURE__ */ (0, F.jsx)(Me, {
325
325
  scope: n,
326
326
  content: S,
327
- viewport: w,
328
- onViewportChange: ee,
327
+ viewport: T,
328
+ onViewportChange: E,
329
329
  itemRefCallback: se,
330
- selectedItem: E,
330
+ selectedItem: A,
331
331
  onItemLeave: H,
332
332
  itemTextRefCallback: ce,
333
333
  focusSelectedItem: R,
334
- selectedItemText: O,
334
+ selectedItemText: ne,
335
335
  position: i,
336
336
  isPositioned: M,
337
337
  searchRef: V,
338
- children: /* @__PURE__ */ (0, F.jsx)(y, {
338
+ children: /* @__PURE__ */ (0, F.jsx)(C, {
339
339
  as: Ne,
340
340
  allowPinchZoom: !0,
341
- children: /* @__PURE__ */ (0, F.jsx)(A, {
341
+ children: /* @__PURE__ */ (0, F.jsx)(ee, {
342
342
  asChild: !0,
343
- trapped: x.open,
343
+ trapped: b.open,
344
344
  onMountAutoFocus: (e) => {
345
345
  e.preventDefault();
346
346
  },
347
- onUnmountAutoFocus: k(a, (e) => {
348
- x.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
347
+ onUnmountAutoFocus: O(a, (e) => {
348
+ b.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
349
349
  }),
350
- children: /* @__PURE__ */ (0, F.jsx)(ne, {
350
+ children: /* @__PURE__ */ (0, F.jsx)(x, {
351
351
  asChild: !0,
352
352
  disableOutsidePointerEvents: !0,
353
353
  onEscapeKeyDown: o,
354
354
  onPointerDownOutside: s,
355
355
  onFocusOutside: (e) => e.preventDefault(),
356
- onDismiss: () => x.onOpenChange(!1),
356
+ onDismiss: () => b.onOpenChange(!1),
357
357
  children: /* @__PURE__ */ (0, F.jsx)(ue, {
358
358
  role: "listbox",
359
- id: x.contentId,
360
- "data-state": x.open ? "open" : "closed",
361
- dir: x.dir,
359
+ id: b.contentId,
360
+ "data-state": b.open ? "open" : "closed",
361
+ dir: b.dir,
362
362
  onContextMenu: (e) => e.preventDefault(),
363
363
  ...v,
364
364
  ...de,
365
365
  onPlaced: () => ie(!0),
366
- ref: T,
366
+ ref: D,
367
367
  style: {
368
368
  display: "flex",
369
369
  flexDirection: "column",
370
370
  outline: "none",
371
371
  ...v.style
372
372
  },
373
- onKeyDown: k(v.onKeyDown, (e) => {
373
+ onKeyDown: O(v.onKeyDown, (e) => {
374
374
  let t = e.ctrlKey || e.altKey || e.metaKey;
375
375
  if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && oe(e.key), [
376
376
  "ArrowUp",
@@ -392,7 +392,7 @@ var xe = /* @__PURE__ */ U((e) => {
392
392
  })
393
393
  });
394
394
  }, "SelectContentImpl")), Fe = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
395
- let { __scopeSelect: n, onPlaced: i, ...a } = e, o = q(J, n), s = X(J, n), [c, l] = P.useState(null), [u, d] = P.useState(null), f = r(t, d), p = pe(n), m = P.useRef(!1), h = P.useRef(!0), { viewport: g, selectedItem: _, selectedItemText: v, focusSelectedItem: y } = s, b = P.useCallback(() => {
395
+ let { __scopeSelect: n, onPlaced: i, ...a } = e, o = q(J, n), s = X(J, n), [c, l] = P.useState(null), [u, d] = P.useState(null), f = r(t, d), p = pe(n), m = P.useRef(!1), h = P.useRef(!0), { viewport: g, selectedItem: _, selectedItemText: v, focusSelectedItem: y } = s, x = P.useCallback(() => {
396
396
  if (o.trigger && o.valueNode && c && u && g && _ && v) {
397
397
  let e = o.trigger.getBoundingClientRect(), t = u.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), r = v.getBoundingClientRect();
398
398
  if (o.dir !== ue.RTL) {
@@ -402,17 +402,17 @@ var xe = /* @__PURE__ */ U((e) => {
402
402
  let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - Y, d = H(a, [Y, Math.max(Y, u - l)]);
403
403
  c.style.minWidth = s + "px", c.style.right = d + "px";
404
404
  }
405
- let a = p(), s = window.innerHeight - Y * 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 - Y, E = s - T, D = _.offsetHeight / 2, O = _.offsetTop + D, k = f + h + O, A = x - k;
406
- if (k <= T) {
405
+ let a = p(), s = window.innerHeight - Y * 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 - Y, ee = s - E, D = _.offsetHeight / 2, O = _.offsetTop + D, k = f + h + O, A = x - k;
406
+ if (k <= E) {
407
407
  let e = a.length > 0 && _ === a[a.length - 1].ref.current;
408
408
  c.style.bottom = "0px";
409
- let t = u.clientHeight - g.offsetTop - g.offsetHeight, n = k + Math.max(E, D + (e ? ee : 0) + t + y);
409
+ let t = u.clientHeight - g.offsetTop - g.offsetHeight, n = k + Math.max(ee, D + (e ? T : 0) + t + y);
410
410
  c.style.height = n + "px";
411
411
  } else {
412
412
  let e = a.length > 0 && _ === a[0].ref.current;
413
413
  c.style.top = "0px";
414
- let t = Math.max(T, f + g.offsetTop + (e ? w : 0) + D) + A;
415
- c.style.height = t + "px", g.scrollTop = k - T + g.offsetTop;
414
+ let t = Math.max(E, f + g.offsetTop + (e ? w : 0) + D) + A;
415
+ c.style.height = t + "px", g.scrollTop = k - E + g.offsetTop;
416
416
  }
417
417
  c.style.margin = `${Y}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => m.current = !0);
418
418
  }
@@ -428,14 +428,14 @@ var xe = /* @__PURE__ */ U((e) => {
428
428
  o.dir,
429
429
  i
430
430
  ]);
431
- E(() => b(), [b]);
432
- let [x, S] = P.useState();
431
+ E(() => x(), [x]);
432
+ let [S, C] = P.useState();
433
433
  E(() => {
434
- u && S(window.getComputedStyle(u).zIndex);
434
+ u && C(window.getComputedStyle(u).zIndex);
435
435
  }, [u]);
436
436
  let w = P.useCallback((e) => {
437
- e && h.current === !0 && (b(), y?.(), h.current = !1);
438
- }, [b, y]);
437
+ e && h.current === !0 && (x(), y?.(), h.current = !1);
438
+ }, [x, y]);
439
439
  return /* @__PURE__ */ (0, F.jsx)(Le, {
440
440
  scope: n,
441
441
  contentWrapper: c,
@@ -447,9 +447,9 @@ var xe = /* @__PURE__ */ U((e) => {
447
447
  display: "flex",
448
448
  flexDirection: "column",
449
449
  position: "fixed",
450
- zIndex: x
450
+ zIndex: S
451
451
  },
452
- children: /* @__PURE__ */ (0, F.jsx)(C.div, {
452
+ children: /* @__PURE__ */ (0, F.jsx)(b.div, {
453
453
  ...a,
454
454
  ref: f,
455
455
  style: {
@@ -485,7 +485,7 @@ var xe = /* @__PURE__ */ U((e) => {
485
485
  nonce: i
486
486
  }), /* @__PURE__ */ (0, F.jsx)(G.Slot, {
487
487
  scope: n,
488
- children: /* @__PURE__ */ (0, F.jsx)(C.div, {
488
+ children: /* @__PURE__ */ (0, F.jsx)(b.div, {
489
489
  "data-radix-select-viewport": "",
490
490
  role: "presentation",
491
491
  ...a,
@@ -496,7 +496,7 @@ var xe = /* @__PURE__ */ U((e) => {
496
496
  overflow: "hidden auto",
497
497
  ...a.style
498
498
  },
499
- onScroll: k(a.onScroll, (e) => {
499
+ onScroll: O(a.onScroll, (e) => {
500
500
  let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } = s;
501
501
  if (r?.current && n) {
502
502
  let e = Math.abs(l.current - t.scrollTop);
@@ -513,11 +513,11 @@ var xe = /* @__PURE__ */ U((e) => {
513
513
  })
514
514
  })] });
515
515
  }, "SelectViewport")), [Ve, He] = K("SelectGroup"), Ue = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
516
- let { __scopeSelect: n, ...r } = e, i = j();
516
+ let { __scopeSelect: n, ...r } = e, i = S();
517
517
  return /* @__PURE__ */ (0, F.jsx)(Ve, {
518
518
  scope: n,
519
519
  id: i,
520
- children: /* @__PURE__ */ (0, F.jsx)(C.div, {
520
+ children: /* @__PURE__ */ (0, F.jsx)(b.div, {
521
521
  role: "group",
522
522
  "aria-labelledby": i,
523
523
  ...r,
@@ -526,13 +526,13 @@ var xe = /* @__PURE__ */ U((e) => {
526
526
  });
527
527
  }, "SelectGroup")), We = "SelectLabel", Ge = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
528
528
  let { __scopeSelect: n, ...r } = e, i = He(We, n);
529
- return /* @__PURE__ */ (0, F.jsx)(C.div, {
529
+ return /* @__PURE__ */ (0, F.jsx)(b.div, {
530
530
  id: i.id,
531
531
  ...r,
532
532
  ref: t
533
533
  });
534
534
  }, "SelectLabel")), Ke = "SelectItem", [qe, Je] = K(Ke), Ye = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
535
- let { __scopeSelect: n, value: i, disabled: a = !1, textValue: o, ...s } = e, c = q(Ke, n), l = X(Ke, n), u = c.value === i, [d, f] = P.useState(o ?? ""), [p, m] = P.useState(!1), h = T((e) => l.itemRefCallback?.(e, i, a)), g = r(t, h), _ = j(), v = P.useRef("touch");
535
+ let { __scopeSelect: n, value: i, disabled: a = !1, textValue: o, ...s } = e, c = q(Ke, n), l = X(Ke, n), u = c.value === i, [d, f] = P.useState(o ?? ""), [p, m] = P.useState(!1), h = j((e) => l.itemRefCallback?.(e, i, a)), g = r(t, h), _ = S(), v = P.useRef("touch");
536
536
  function y(e) {
537
537
  c.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), c.onUserSelect(i), c.onOpenChange(!1);
538
538
  }
@@ -550,7 +550,7 @@ var xe = /* @__PURE__ */ U((e) => {
550
550
  value: i,
551
551
  disabled: a,
552
552
  textValue: d,
553
- children: /* @__PURE__ */ (0, F.jsx)(C.div, {
553
+ children: /* @__PURE__ */ (0, F.jsx)(b.div, {
554
554
  role: "option",
555
555
  "aria-labelledby": _,
556
556
  "data-highlighted": p ? "" : void 0,
@@ -561,31 +561,31 @@ var xe = /* @__PURE__ */ U((e) => {
561
561
  tabIndex: a ? void 0 : -1,
562
562
  ...s,
563
563
  ref: g,
564
- onFocus: k(s.onFocus, () => m(!0)),
565
- onBlur: k(s.onBlur, () => m(!1)),
566
- onClick: k(s.onClick, (e) => {
564
+ onFocus: O(s.onFocus, () => m(!0)),
565
+ onBlur: O(s.onBlur, () => m(!1)),
566
+ onClick: O(s.onClick, (e) => {
567
567
  a || v.current !== "mouse" && y(e);
568
568
  }),
569
- onPointerUp: k(s.onPointerUp, (e) => {
569
+ onPointerUp: O(s.onPointerUp, (e) => {
570
570
  a || v.current === "mouse" && y(e);
571
571
  }),
572
- onPointerDown: k(s.onPointerDown, (e) => {
572
+ onPointerDown: O(s.onPointerDown, (e) => {
573
573
  v.current = e.pointerType;
574
574
  }),
575
- onPointerMove: k(s.onPointerMove, (e) => {
575
+ onPointerMove: O(s.onPointerMove, (e) => {
576
576
  v.current = e.pointerType, a ? l.onItemLeave?.() : v.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
577
577
  }),
578
- onPointerLeave: k(s.onPointerLeave, (e) => {
578
+ onPointerLeave: O(s.onPointerLeave, (e) => {
579
579
  e.currentTarget === document.activeElement && l.onItemLeave?.();
580
580
  }),
581
- onKeyDown: k(s.onKeyDown, (e) => {
581
+ onKeyDown: O(s.onKeyDown, (e) => {
582
582
  a || e.target !== e.currentTarget || (l.searchRef?.current === "" || e.key !== " ") && (fe.includes(e.key) && y(e), e.key === " " && e.preventDefault());
583
583
  })
584
584
  })
585
585
  })
586
586
  });
587
587
  }, "SelectItem")), Xe = "SelectItemText", Ze = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
588
- let { __scopeSelect: n, className: i, style: a, ...o } = e, s = q(Xe, n), c = X(Xe, n), l = Je(Xe, n), u = ye(Xe, n), [d, f] = P.useState(null), p = T((e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), m = r(t, f, l.onItemTextChange, p), h = d?.textContent, g = P.useMemo(() => /* @__PURE__ */ (0, F.jsx)("option", {
588
+ let { __scopeSelect: n, className: i, style: a, ...o } = e, s = q(Xe, n), c = X(Xe, n), l = Je(Xe, n), u = ye(Xe, n), [d, f] = P.useState(null), p = j((e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), m = r(t, f, l.onItemTextChange, p), h = d?.textContent, g = P.useMemo(() => /* @__PURE__ */ (0, F.jsx)("option", {
589
589
  value: l.value,
590
590
  disabled: l.disabled,
591
591
  children: h
@@ -598,14 +598,14 @@ var xe = /* @__PURE__ */ U((e) => {
598
598
  _,
599
599
  v,
600
600
  g
601
- ]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(C.span, {
601
+ ]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(b.span, {
602
602
  id: l.textId,
603
603
  ...o,
604
604
  ref: m
605
605
  }), l.isSelected && s.valueNode && !s.valueNodeHasChildren && !Z(s.value) ? N.createPortal(o.children, s.valueNode) : null] });
606
606
  }, "SelectItemText")), Qe = "SelectItemIndicator", $e = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
607
607
  let { __scopeSelect: n, ...r } = e;
608
- return Je(Qe, n).isSelected ? /* @__PURE__ */ (0, F.jsx)(C.span, {
608
+ return Je(Qe, n).isSelected ? /* @__PURE__ */ (0, F.jsx)(b.span, {
609
609
  "aria-hidden": !0,
610
610
  ...r,
611
611
  ref: t
@@ -656,7 +656,7 @@ var xe = /* @__PURE__ */ U((e) => {
656
656
  }, []);
657
657
  return P.useEffect(() => () => c(), [c]), E(() => {
658
658
  s().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
659
- }, [s]), /* @__PURE__ */ (0, F.jsx)(C.div, {
659
+ }, [s]), /* @__PURE__ */ (0, F.jsx)(b.div, {
660
660
  "aria-hidden": !0,
661
661
  ...i,
662
662
  ref: t,
@@ -664,39 +664,39 @@ var xe = /* @__PURE__ */ U((e) => {
664
664
  flexShrink: 0,
665
665
  ...i.style
666
666
  },
667
- onPointerDown: k(i.onPointerDown, () => {
667
+ onPointerDown: O(i.onPointerDown, () => {
668
668
  o.current === null && (o.current = window.setInterval(r, 50));
669
669
  }),
670
- onPointerMove: k(i.onPointerMove, () => {
670
+ onPointerMove: O(i.onPointerMove, () => {
671
671
  a.onItemLeave?.(), o.current === null && (o.current = window.setInterval(r, 50));
672
672
  }),
673
- onPointerLeave: k(i.onPointerLeave, () => {
673
+ onPointerLeave: O(i.onPointerLeave, () => {
674
674
  c();
675
675
  })
676
676
  });
677
677
  }, "SelectScrollButtonImpl")), at = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
678
678
  let { __scopeSelect: n, ...r } = e;
679
- return /* @__PURE__ */ (0, F.jsx)(C.div, {
679
+ return /* @__PURE__ */ (0, F.jsx)(b.div, {
680
680
  "aria-hidden": !0,
681
681
  ...r,
682
682
  ref: t
683
683
  });
684
684
  }, "SelectSeparator")), ot = "SelectBubbleInput", st = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function({ __scopeSelect: e, ...t }, n) {
685
- let i = q(ot, e), { value: a, onValueChange: o, required: s, disabled: c, name: l, autoComplete: u, form: f, userSelection: p } = i, { nativeOptions: m, nativeSelectKey: h } = i, g = P.useRef(null), _ = r(n, g), v = a ?? "", y = P.useRef(v), b = P.useRef(p), x = P.useRef(!1), S = Array.from(m).some((e) => (e.props.value ?? "") === "");
685
+ let i = q(ot, e), { value: a, onValueChange: o, required: s, disabled: c, name: l, autoComplete: u, form: f, userSelection: p } = i, { nativeOptions: m, nativeSelectKey: h } = i, g = P.useRef(null), _ = r(n, g), v = a ?? "", y = P.useRef(v), x = P.useRef(p), S = P.useRef(!1), C = Array.from(m).some((e) => (e.props.value ?? "") === "");
686
686
  return P.useEffect(() => {
687
687
  let e = g.current;
688
688
  if (!e) return;
689
- let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set, r = p !== null && p !== b.current;
690
- b.current = p;
689
+ let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set, r = p !== null && p !== x.current;
690
+ x.current = p;
691
691
  let i = y.current !== v;
692
692
  y.current = v;
693
693
  let a = r && i;
694
694
  if (r && !i && p.value !== v && !p.hasConsumerStoppedPropagation && n) {
695
- x.current = !0;
695
+ S.current = !0;
696
696
  try {
697
697
  n.call(e, p.value), e.dispatchEvent(new Event("change", { bubbles: !0 }));
698
698
  } finally {
699
- x.current = !1, n.call(e, v);
699
+ S.current = !1, n.call(e, v);
700
700
  }
701
701
  return;
702
702
  }
@@ -705,7 +705,7 @@ var xe = /* @__PURE__ */ U((e) => {
705
705
  let t = new Event("change", { bubbles: o });
706
706
  n.call(e, v), e.dispatchEvent(t);
707
707
  }
708
- }, [v, p]), /* @__PURE__ */ (0, F.jsxs)(C.select, {
708
+ }, [v, p]), /* @__PURE__ */ (0, F.jsxs)(b.select, {
709
709
  "aria-hidden": !0,
710
710
  required: s,
711
711
  tabIndex: -1,
@@ -714,7 +714,7 @@ var xe = /* @__PURE__ */ U((e) => {
714
714
  disabled: c,
715
715
  form: f,
716
716
  onChange: (e) => {
717
- x.current || o(e.target.value);
717
+ S.current || o(e.target.value);
718
718
  },
719
719
  ...t,
720
720
  style: {
@@ -723,7 +723,7 @@ var xe = /* @__PURE__ */ U((e) => {
723
723
  },
724
724
  ref: _,
725
725
  defaultValue: v,
726
- children: [Z(a) && !S ? /* @__PURE__ */ (0, F.jsx)("option", { value: "" }) : null, Array.from(m)]
726
+ children: [Z(a) && !C ? /* @__PURE__ */ (0, F.jsx)("option", { value: "" }) : null, Array.from(m)]
727
727
  }, h);
728
728
  }, "SelectBubbleInput"));
729
729
  function ct(e) {
@@ -735,7 +735,7 @@ function Z(e) {
735
735
  }
736
736
  U(Z, "shouldShowPlaceholder");
737
737
  function lt(e) {
738
- let t = T(e), n = P.useRef(""), r = P.useRef(0), i = P.useCallback((e) => {
738
+ let t = j(e), n = P.useRef(""), r = P.useRef(0), i = P.useCallback((e) => {
739
739
  let i = n.current + e;
740
740
  t(i);
741
741
  function a(e) {
@@ -1079,7 +1079,7 @@ var nn = i("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-backg
1079
1079
  rn.displayName = "NativeSelect";
1080
1080
  //#endregion
1081
1081
  //#region src/components/ui/select.tsx
1082
- var an = xe, on = Ue, sn = O(ke), cn = Te, ln = P.forwardRef((e, n) => {
1082
+ var an = xe, on = Ue, sn = A(ke), cn = Te, ln = P.forwardRef((e, n) => {
1083
1083
  let r = (0, $.c)(19), i, a, o, s, c, l;
1084
1084
  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);
1085
1085
  let u = c !== void 0 && c, d;
@@ -1103,7 +1103,7 @@ var an = xe, on = Ue, sn = O(ke), cn = Te, ln = P.forwardRef((e, n) => {
1103
1103
  }), r[13] = i, r[14] = s, r[15] = n, r[16] = d, r[17] = f, r[18] = p) : p = r[18], p;
1104
1104
  });
1105
1105
  ln.displayName = Ce.displayName;
1106
- var un = te(Ae), dn = P.forwardRef((e, n) => {
1106
+ var un = re(Ae), dn = P.forwardRef((e, n) => {
1107
1107
  let r = (0, $.c)(21), i, a, o, s;
1108
1108
  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);
1109
1109
  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;
@@ -1126,7 +1126,7 @@ var un = te(Ae), dn = P.forwardRef((e, n) => {
1126
1126
  children: /* @__PURE__ */ (0, F.jsx)(M, { className: "h-4 w-4 opacity-50" })
1127
1127
  }), r[14] = h) : h = r[14];
1128
1128
  let g;
1129
- return r[15] !== c || r[16] !== o || r[17] !== n || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, F.jsx)(sn, { children: /* @__PURE__ */ (0, F.jsx)(ee, { children: /* @__PURE__ */ (0, F.jsxs)(un, {
1129
+ return r[15] !== c || r[16] !== o || r[17] !== n || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, F.jsx)(sn, { children: /* @__PURE__ */ (0, F.jsx)(D, { children: /* @__PURE__ */ (0, F.jsxs)(un, {
1130
1130
  ref: n,
1131
1131
  className: u,
1132
1132
  position: c,
@@ -3,7 +3,7 @@ import { n, t as r } from "./src-D5uZaZib.js";
3
3
  import { n as i } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
4
  import { A as a, F as o, G as s, H as c, K as l, O as u, U as d, a as f, b as p, c as m, i as h, r as g, s as _, v, w as y, x as b, y as x, z as S } from "./chunk-DU6HZSFF-4SDIhUTY.js";
5
5
  import { t as C } from "./dist-CB9MzCXv.js";
6
- import { a as w, i as T } from "./mermaid-BugOVfeH.js";
6
+ import { a as w, i as T } from "./mermaid-Bqy6f_NU.js";
7
7
  import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-F27PBJKO-COH2t-FO.js";
8
8
  import { t as M } from "./chunk-2Q5K7J3B-BMkUkeuy.js";
9
9
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WJ2MYXX4.mjs
@@ -1,7 +1,7 @@
1
- import { h as e } from "./tooltip-DsQZP310.js";
2
- import { o as t } from "./useLifecycle-Bw0JtmoB.js";
3
- import { i as n, o as r } from "./useDateFormatter-CRuBYwR6.js";
4
- import { n as i } from "./assertNever-ChGm2jYv.js";
1
+ import { h as e } from "./tooltip-CiJ919pg.js";
2
+ import { o as t } from "./useLifecycle-mKiMNa4V.js";
3
+ import { i as n, o as r } from "./useDateFormatter-C659lkax.js";
4
+ import { n as i } from "./assertNever-DOTNJ2Y4.js";
5
5
  var a = e("align-center-vertical", [
6
6
  ["path", {
7
7
  d: "M12 2v20",
@@ -12,11 +12,11 @@ import "./chunk-4HAMMTFA-qKgadZwy.js";
12
12
  import "./chunk-GVQU2GXP-BkolpSXU.js";
13
13
  import "./chunk-L3NEJ4N5-B-BFQp9t.js";
14
14
  import "./chunk-OSK3NFVY-BzfZ4VBG.js";
15
- import "./mermaid-BugOVfeH.js";
15
+ import "./mermaid-Bqy6f_NU.js";
16
16
  import "./chunk-F27PBJKO-COH2t-FO.js";
17
17
  import "./chunk-XXDRQBXY-BM-YIt-_.js";
18
18
  import "./chunk-POPQ4Y6H-BFSZel4w.js";
19
- import { i as f, n as p, t as m } from "./chunk-IMKFNOWR-1Zy6M_oP.js";
19
+ import { i as f, n as p, t as m } from "./chunk-IMKFNOWR-DK_M66Dt.js";
20
20
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-D77RDMKH.mjs
21
21
  var h = /* @__PURE__ */ s((e) => e.append("circle").attr("class", "start-state").attr("r", d().state.sizeUnit).attr("cx", d().state.padding + d().state.sizeUnit).attr("cy", d().state.padding + d().state.sizeUnit), "drawStartState"), g = /* @__PURE__ */ s((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", d().state.textHeight).attr("class", "divider").attr("x2", d().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), _ = /* @__PURE__ */ s((e, t) => {
22
22
  let n = e.append("text").attr("x", 2 * d().state.padding).attr("y", d().state.textHeight + 2 * d().state.padding).attr("font-size", d().state.fontSize).attr("class", "state-title").text(t.id), r = n.node().getBBox();
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-qKgadZwy.js";
9
9
  import "./chunk-GVQU2GXP-BkolpSXU.js";
10
10
  import "./chunk-L3NEJ4N5-B-BFQp9t.js";
11
11
  import "./chunk-OSK3NFVY-BzfZ4VBG.js";
12
- import "./mermaid-BugOVfeH.js";
12
+ import "./mermaid-Bqy6f_NU.js";
13
13
  import "./chunk-F27PBJKO-COH2t-FO.js";
14
14
  import "./chunk-XXDRQBXY-BM-YIt-_.js";
15
15
  import "./chunk-POPQ4Y6H-BFSZel4w.js";
16
- import { i as t, n, r, t as i } from "./chunk-IMKFNOWR-1Zy6M_oP.js";
16
+ import { i as t, n, r, t as i } from "./chunk-IMKFNOWR-DK_M66Dt.js";
17
17
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-MP3YSRHH.mjs
18
18
  var a = {
19
19
  parser: n,
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./compiler-runtime-C5KHtL5D.js";
2
- import { Bt as t, Lt as n, f as r, h as i, xt as a } from "./use-restore-focus-CTa7IRP6.js";
2
+ import { Rt as t, St as n, Vt as r, f as i, h as a } from "./use-restore-focus-BLj45Ibw.js";
3
3
  import { t as o } from "./invariant-DLmrl-hA.js";
4
4
  //#region src/core/wasm/utils.ts
5
5
  function s() {
@@ -25,21 +25,21 @@ function m(e, t) {
25
25
  //#endregion
26
26
  //#region src/core/mode.ts
27
27
  function h() {
28
- let e = a.get(_);
28
+ let e = n.get(_);
29
29
  return m(e, "internal-error: initial mode not found"), o(e !== "present", "internal-error: initial mode cannot be 'present'"), e;
30
30
  }
31
- var g = t({
32
- mode: r() ? "read" : "not-set",
31
+ var g = r({
32
+ mode: i() ? "read" : "not-set",
33
33
  cellAnchor: null
34
- }), _ = t(void 0);
34
+ }), _ = r(void 0);
35
35
  function v() {
36
- let e = a.get(_);
36
+ let e = n.get(_);
37
37
  return e !== "home" && e !== "gallery";
38
38
  }
39
- var y = t(!1);
39
+ var y = r(!1);
40
40
  function b() {
41
- let e = (0, p.c)(1), { mode: t } = n(g), r = n(y), a;
42
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = new URLSearchParams(window.location.search).get(i.kiosk), e[0] = a) : a = e[0], t !== "read" && !r && a !== "true";
41
+ let e = (0, p.c)(1), { mode: n } = t(g), r = t(y), i;
42
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = new URLSearchParams(window.location.search).get(a.kiosk), e[0] = i) : i = e[0], n !== "read" && !r && i !== "true";
43
43
  }
44
44
  //#endregion
45
45
  //#region src/core/static/static-state.ts