@marimo-team/islands 0.23.1-dev9 → 0.23.2-dev1

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 (87) hide show
  1. package/dist/{ConnectedDataExplorerComponent-tho8l5GC.js → ConnectedDataExplorerComponent-P92i6wYx.js} +148 -148
  2. package/dist/{ImageComparisonComponent-DY3J_vIU.js → ImageComparisonComponent-HF4AY8_n.js} +2 -2
  3. package/dist/{Plot-BxlSHo0G.js → Plot-CK0oVgQL.js} +2 -2
  4. package/dist/{any-language-editor-Caoda-MR.js → any-language-editor-BCvLfvzI.js} +7 -7
  5. package/dist/{button-Cn59RsBF.js → button-D1C3g5GI.js} +72 -71
  6. package/dist/{capabilities-Bml77Di-.js → capabilities-BwpUgo4S.js} +1 -1
  7. package/dist/{chat-ui-Bs4egzxg.js → chat-ui-CNHw9Osh.js} +2829 -2829
  8. package/dist/{check-C51PA02v.js → check-BgrdTLuv.js} +1 -1
  9. package/dist/{chunk-5FQGJX7Z-C428iZBW.js → chunk-5FQGJX7Z-VIref9gx.js} +4 -4
  10. package/dist/{click-outside-container-vCXhHl-R.js → click-outside-container-D3t6KDni.js} +1 -1
  11. package/dist/{code-block-37QAKDTI-D9EnJeBI.js → code-block-37QAKDTI-FQEoMOU1.js} +2 -2
  12. package/dist/{compiler-runtime-B_OLMU9S.js → compiler-runtime-CEbnTgxf.js} +1 -1
  13. package/dist/{copy-DzOz_Au7.js → copy-Bp6CK_Fg.js} +9 -9
  14. package/dist/{data-grid-overlay-editor-lKF301ME.js → data-grid-overlay-editor-C_sKPpLu.js} +4 -4
  15. package/dist/{dist-CjLQ79mo.js → dist-CTtLBPLZ.js} +11 -11
  16. package/dist/{dist-BoNJsA65.js → dist-DUFd1bhm.js} +1 -1
  17. package/dist/{error-banner-BQcJXy6k.js → error-banner-B_ioHva3.js} +121 -121
  18. package/dist/{esm-hRljRgfG.js → esm-CDHI9cuO.js} +15 -15
  19. package/dist/{glide-data-editor-D2X4D_xi.js → glide-data-editor-BFqEJGJW.js} +948 -948
  20. package/dist/{input-BRN2Mjzx.js → input-CSVEkmaZ.js} +288 -288
  21. package/dist/{label-J1N4mVcg.js → label-BebYlsDV.js} +257 -257
  22. package/dist/{loader-JmfPBSx5.js → loader-ZFbGsMN1.js} +15 -15
  23. package/dist/main.js +7216 -7050
  24. package/dist/mermaid-4DMBBIKO-BjtqcdX4.js +6 -0
  25. package/dist/{mermaid-UMKVHs_g.js → mermaid-BbhZNQeB.js} +18 -18
  26. package/dist/{number-overlay-editor-DxLoVuuE.js → number-overlay-editor-B02-t7Ar.js} +2 -2
  27. package/dist/{process-output-BK6F4vqt.js → process-output-Bekznt_B.js} +865 -864
  28. package/dist/{react-dom-BSUuJjCR.js → react-dom-D5FDLRUB.js} +1 -1
  29. package/dist/{react-vega-DayQmZjG.js → react-vega-BkjdpVsR.js} +2 -2
  30. package/dist/{react-vega-CzRAIHrv.js → react-vega-DBwal82H.js} +1 -1
  31. package/dist/{slides-component-_3tukGh-.js → slides-component-DLxprlqo.js} +26 -26
  32. package/dist/{spec-rP6otrXw.js → spec-3EPbPQZH.js} +4 -4
  33. package/dist/style.css +1 -1
  34. package/dist/{toDate-CfGr2xZ1.js → toDate-B1AzlBoW.js} +15 -15
  35. package/dist/{tooltip-CygUI9oH.js → tooltip-DwNnFsxZ.js} +132 -133
  36. package/dist/{types-D4CFUmPq.js → types-pwjdK009.js} +15 -15
  37. package/dist/{useAsyncData-BzS3Ai32.js → useAsyncData-BL98MPIy.js} +3 -3
  38. package/dist/{useDeepCompareMemoize-AjORjhpL.js → useDeepCompareMemoize-CsyOnnjc.js} +25 -25
  39. package/dist/{useIframeCapabilities---aRgGdv.js → useIframeCapabilities-CsTUYYj7.js} +3 -3
  40. package/dist/{useLifecycle-B90lJH4p.js → useLifecycle-DrGGIsgp.js} +36 -36
  41. package/dist/{useTheme-ytmywQ5O.js → useTheme-CzwDokKe.js} +4 -4
  42. package/dist/{vega-component-1icm1Ykb.js → vega-component-KBJXEDZz.js} +42 -42
  43. package/dist/{zod-D4UoCYGu.js → zod-W5ZEjzaE.js} +23 -23
  44. package/package.json +4 -4
  45. package/src/core/islands/__tests__/bridge.test.ts +2 -12
  46. package/src/core/islands/__tests__/islands-harness.test.ts +348 -0
  47. package/src/core/islands/__tests__/parse.test.ts +466 -24
  48. package/src/core/islands/__tests__/test-utils.tsx +263 -0
  49. package/src/core/islands/bootstrap.ts +265 -0
  50. package/src/core/islands/bridge.ts +154 -75
  51. package/src/core/islands/components/IslandControls.tsx +103 -0
  52. package/src/core/islands/components/__tests__/IslandControls.test.tsx +185 -0
  53. package/src/core/islands/components/__tests__/useIslandControls.test.ts +208 -0
  54. package/src/core/islands/components/output-wrapper.tsx +76 -93
  55. package/src/core/islands/components/useIslandControls.ts +60 -0
  56. package/src/core/islands/components/web-components.tsx +168 -40
  57. package/src/core/islands/constants.ts +28 -0
  58. package/src/core/islands/main.ts +7 -205
  59. package/src/core/islands/parse.ts +73 -26
  60. package/src/core/islands/worker-factory.ts +86 -0
  61. package/src/plugins/core/RenderHTML.tsx +9 -0
  62. package/src/plugins/core/__test__/RenderHTML.test.ts +27 -0
  63. package/src/plugins/core/__test__/trusted-url.test.ts +48 -0
  64. package/src/plugins/core/registerReactComponent.tsx +11 -8
  65. package/src/plugins/core/trusted-url.ts +20 -0
  66. package/src/plugins/impl/ButtonPlugin.tsx +4 -6
  67. package/src/plugins/impl/CodeEditorPlugin.tsx +15 -18
  68. package/src/plugins/impl/DataEditorPlugin.tsx +8 -14
  69. package/src/plugins/impl/DataTablePlugin.tsx +8 -9
  70. package/src/plugins/impl/FileUploadPlugin.tsx +39 -43
  71. package/src/plugins/impl/FormPlugin.tsx +2 -6
  72. package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +27 -1
  73. package/src/plugins/impl/anywidget/widget-binding.ts +13 -0
  74. package/src/plugins/impl/chat/ChatPlugin.tsx +17 -20
  75. package/src/plugins/impl/data-explorer/DataExplorerPlugin.tsx +5 -8
  76. package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +21 -0
  77. package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +119 -0
  78. package/src/plugins/impl/panel/PanelPlugin.tsx +31 -10
  79. package/src/plugins/impl/panel/__tests__/PanelPlugin.test.ts +60 -0
  80. package/src/plugins/impl/plotly/__tests__/PlotlyPlugin.test.tsx +50 -0
  81. package/src/plugins/impl/plotly/__tests__/selection.test.ts +82 -0
  82. package/src/plugins/impl/plotly/selection.ts +62 -3
  83. package/src/plugins/impl/vega/VegaPlugin.tsx +5 -8
  84. package/src/plugins/layout/NavigationMenuPlugin.tsx +2 -6
  85. package/dist/mermaid-4DMBBIKO-Cw46o6DN.js +0 -6
  86. /package/dist/{clsx-yW_RAw0K.js → clsx-CwTY0BxM.js} +0 -0
  87. /package/dist/{react-Bs6Z0kvn.js → react-DA-nE2FX.js} +0 -0
@@ -3,18 +3,18 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  var _a;
5
5
  import { s as __toESM } from "./chunk-BNovOVIE.js";
6
- import { t as require_react } from "./react-Bs6Z0kvn.js";
7
- import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
8
- import { a as createPopperScope, i as Root2$1, n as Arrow, r as Content, t as Anchor, u as createLucideIcon } from "./dist-CjLQ79mo.js";
9
- import { t as Check } from "./check-C51PA02v.js";
10
- import { E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, L as ChevronUp, P as useDirection, R as ChevronDown, T as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, _ as menuControlVariants, b as menuSeparatorVariants, g as menuControlCheckVariants, h as menuContentCommon, k as $b5e257d569688ac6$export$619500959fc48b26, v as menuItemVariants, w as $a916eb452884faea$export$b7a616150fdb9f44, x as menuSubTriggerVariants, y as menuLabelVariants } from "./label-J1N4mVcg.js";
11
- import { n as clsx_default } from "./clsx-yW_RAw0K.js";
12
- import { d as createSlot, g as Logger, h as Events, m as useComposedRefs, p as composeRefs, y as cn } from "./button-Cn59RsBF.js";
13
- import { t as require_react_dom } from "./react-dom-BSUuJjCR.js";
6
+ import { _ as Logger, d as createSlot, g as cn, h as Events, m as useComposedRefs, p as composeRefs } from "./button-D1C3g5GI.js";
7
+ import { t as require_react } from "./react-DA-nE2FX.js";
8
+ import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
9
+ import { a as createPopperScope, i as Root2$1, n as Arrow, r as Content, t as Anchor, u as createLucideIcon } from "./dist-CTtLBPLZ.js";
10
+ import { t as Check } from "./check-BgrdTLuv.js";
11
+ import { E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, L as ChevronUp, P as useDirection, R as ChevronDown, T as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, _ as menuControlVariants, b as menuSeparatorVariants, g as menuControlCheckVariants, h as menuContentCommon, k as $b5e257d569688ac6$export$619500959fc48b26, v as menuItemVariants, w as $a916eb452884faea$export$b7a616150fdb9f44, x as menuSubTriggerVariants, y as menuLabelVariants } from "./label-BebYlsDV.js";
12
+ import { n as clsx_default } from "./clsx-CwTY0BxM.js";
13
+ import { t as require_react_dom } from "./react-dom-D5FDLRUB.js";
14
14
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
15
- import { $ as StyleNamespace, X as withFullScreenAsRoot, Y as MAX_HEIGHT_OFFSET, Z as withSmartCollisionBoundary, _t as Primitive, at as FocusScope, dt as Presence, et as hideOthers, ft as useControllableState, gt as createContextScope, it as Portal, lt as useCallbackRef, mt as composeEventHandlers, rt as useFocusGuards, st as DismissableLayer, tt as Combination_default, ut as useId, vt as dispatchDiscreteCustomEvent } from "./zod-D4UoCYGu.js";
15
+ import { $ as StyleNamespace, X as withFullScreenAsRoot, Y as MAX_HEIGHT_OFFSET, Z as withSmartCollisionBoundary, _t as Primitive, at as FocusScope, dt as Presence, et as hideOthers, ft as useControllableState, gt as createContextScope, it as Portal, lt as useCallbackRef, mt as composeEventHandlers, rt as useFocusGuards, st as DismissableLayer, tt as Combination_default, ut as useId, vt as dispatchDiscreteCustomEvent } from "./zod-W5ZEjzaE.js";
16
16
  import { i as debounce_default } from "./constants-CvyfaCvs.js";
17
- import { w as useEvent_default } from "./useTheme-ytmywQ5O.js";
17
+ import { w as useEvent_default } from "./useTheme-CzwDokKe.js";
18
18
  import { t as memoizeLastValue } from "./once-C_TIu-kR.js";
19
19
  var ChevronRight = createLucideIcon("chevron-right", [["path", {
20
20
  d: "m9 18 6-6-6-6",
@@ -47,16 +47,16 @@ var ChevronRight = createLucideIcon("chevron-right", [["path", {
47
47
  }));
48
48
  RovingFocusGroup.displayName = GROUP_NAME$2;
49
49
  var RovingFocusGroupImpl = import_react.forwardRef((e4, t) => {
50
- let { __scopeRovingFocusGroup: n, orientation: r, loop: i = false, dir: a, currentTabStopId: o, defaultCurrentTabStopId: s, onCurrentTabStopIdChange: c, onEntryFocus: l, preventScrollOnEntryFocus: u = false, ...d } = e4, f = import_react.useRef(null), p = useComposedRefs(t, f), h = useDirection(a), [g, _] = useControllableState({
51
- prop: o,
52
- defaultProp: s ?? null,
53
- onChange: c,
50
+ let { __scopeRovingFocusGroup: n, orientation: r, loop: i = false, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = false, ...f } = e4, p = import_react.useRef(null), m = useComposedRefs(t, p), h = useDirection(o), [g, _] = useControllableState({
51
+ prop: s,
52
+ defaultProp: c ?? null,
53
+ onChange: l,
54
54
  caller: GROUP_NAME$2
55
- }), [v, y] = import_react.useState(false), b = useCallbackRef(l), x = useCollection$1(n), S = import_react.useRef(false), [C, w] = import_react.useState(0);
55
+ }), [v, y] = import_react.useState(false), x = useCallbackRef(u), S = useCollection$1(n), C = import_react.useRef(false), [w, T] = import_react.useState(0);
56
56
  return import_react.useEffect(() => {
57
- let e5 = f.current;
58
- if (e5) return e5.addEventListener(ENTRY_FOCUS, b), () => e5.removeEventListener(ENTRY_FOCUS, b);
59
- }, [b]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RovingFocusProvider, {
57
+ let e5 = p.current;
58
+ if (e5) return e5.addEventListener(ENTRY_FOCUS, x), () => e5.removeEventListener(ENTRY_FOCUS, x);
59
+ }, [x]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RovingFocusProvider, {
60
60
  scope: n,
61
61
  orientation: r,
62
62
  dir: h,
@@ -64,34 +64,34 @@ var RovingFocusGroupImpl = import_react.forwardRef((e4, t) => {
64
64
  currentTabStopId: g,
65
65
  onItemFocus: import_react.useCallback((e5) => _(e5), [_]),
66
66
  onItemShiftTab: import_react.useCallback(() => y(true), []),
67
- onFocusableItemAdd: import_react.useCallback(() => w((e5) => e5 + 1), []),
68
- onFocusableItemRemove: import_react.useCallback(() => w((e5) => e5 - 1), []),
67
+ onFocusableItemAdd: import_react.useCallback(() => T((e5) => e5 + 1), []),
68
+ onFocusableItemRemove: import_react.useCallback(() => T((e5) => e5 - 1), []),
69
69
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
70
- tabIndex: v || C === 0 ? -1 : 0,
70
+ tabIndex: v || w === 0 ? -1 : 0,
71
71
  "data-orientation": r,
72
- ...d,
73
- ref: p,
72
+ ...f,
73
+ ref: m,
74
74
  style: {
75
75
  outline: "none",
76
76
  ...e4.style
77
77
  },
78
78
  onMouseDown: composeEventHandlers(e4.onMouseDown, () => {
79
- S.current = true;
79
+ C.current = true;
80
80
  }),
81
81
  onFocus: composeEventHandlers(e4.onFocus, (e5) => {
82
- let t2 = !S.current;
82
+ let t2 = !C.current;
83
83
  if (e5.target === e5.currentTarget && t2 && !v) {
84
84
  let t3 = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);
85
85
  if (e5.currentTarget.dispatchEvent(t3), !t3.defaultPrevented) {
86
- let e6 = x().filter((e7) => e7.focusable);
86
+ let e6 = S().filter((e7) => e7.focusable);
87
87
  focusFirst$1([
88
88
  e6.find((e7) => e7.active),
89
89
  e6.find((e7) => e7.id === g),
90
90
  ...e6
91
- ].filter(Boolean).map((e7) => e7.ref.current), u);
91
+ ].filter(Boolean).map((e7) => e7.ref.current), d);
92
92
  }
93
93
  }
94
- S.current = false;
94
+ C.current = false;
95
95
  }),
96
96
  onBlur: composeEventHandlers(e4.onBlur, () => y(false))
97
97
  })
@@ -189,7 +189,7 @@ var Root = RovingFocusGroup, Item = RovingFocusGroupItem, SELECTION_KEYS = ["Ent
189
189
  createPopperScope,
190
190
  createRovingFocusGroupScope
191
191
  ]), usePopperScope = createPopperScope(), useRovingFocusGroupScope = createRovingFocusGroupScope(), [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME), [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME), Menu = (e4) => {
192
- let { __scopeMenu: t, open: n = false, children: r, dir: a, onOpenChange: o, modal: s = true } = e4, c = usePopperScope(t), [l, u] = import_react.useState(null), d = import_react.useRef(false), f = useCallbackRef(o), p = useDirection(a);
192
+ let { __scopeMenu: t, open: n = false, children: r, dir: i, onOpenChange: a, modal: o = true } = e4, s = usePopperScope(t), [c, l] = import_react.useState(null), d = import_react.useRef(false), f = useCallbackRef(a), p = useDirection(i);
193
193
  return import_react.useEffect(() => {
194
194
  let e5 = () => {
195
195
  d.current = true, document.addEventListener("pointerdown", t2, {
@@ -204,19 +204,19 @@ var Root = RovingFocusGroup, Item = RovingFocusGroupItem, SELECTION_KEYS = ["Ent
204
204
  document.removeEventListener("keydown", e5, { capture: true }), document.removeEventListener("pointerdown", t2, { capture: true }), document.removeEventListener("pointermove", t2, { capture: true });
205
205
  };
206
206
  }, []), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
207
- ...c,
207
+ ...s,
208
208
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuProvider, {
209
209
  scope: t,
210
210
  open: n,
211
211
  onOpenChange: f,
212
- content: l,
213
- onContentChange: u,
212
+ content: c,
213
+ onContentChange: l,
214
214
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuRootProvider, {
215
215
  scope: t,
216
216
  onClose: import_react.useCallback(() => f(false), [f]),
217
217
  isUsingKeyboardRef: d,
218
218
  dir: p,
219
- modal: s,
219
+ modal: o,
220
220
  children: r
221
221
  })
222
222
  })
@@ -291,46 +291,46 @@ var CONTENT_NAME$1 = "MenuContent", [MenuContentProvider, useMenuContentContext]
291
291
  onDismiss: () => n.onOpenChange(false)
292
292
  });
293
293
  }), Slot = createSlot("MenuContent.ScrollLock"), MenuContentImpl = import_react.forwardRef((e4, t) => {
294
- let { __scopeMenu: n, loop: r = false, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...g } = e4, _ = useMenuContext(CONTENT_NAME$1, n), v = useMenuRootContext(CONTENT_NAME$1, n), y = usePopperScope(n), b = useRovingFocusGroupScope(n), x = useCollection(n), [S, C] = import_react.useState(null), w = import_react.useRef(null), T = useComposedRefs(t, w, _.onContentChange), E = import_react.useRef(0), D = import_react.useRef(""), O = import_react.useRef(0), k = import_react.useRef(null), j = import_react.useRef("right"), M = import_react.useRef(0), N = h ? Combination_default : import_react.Fragment, P = h ? {
294
+ let { __scopeMenu: n, loop: r = false, trapFocus: i, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = e4, v = useMenuContext(CONTENT_NAME$1, n), y = useMenuRootContext(CONTENT_NAME$1, n), b = usePopperScope(n), x = useRovingFocusGroupScope(n), S = useCollection(n), [C, w] = import_react.useState(null), T = import_react.useRef(null), E = useComposedRefs(t, T, v.onContentChange), D = import_react.useRef(0), O = import_react.useRef(""), k = import_react.useRef(0), A = import_react.useRef(null), j = import_react.useRef("right"), M = import_react.useRef(0), N = g ? Combination_default : import_react.Fragment, P = g ? {
295
295
  as: Slot,
296
296
  allowPinchZoom: true
297
297
  } : void 0, F = (e5) => {
298
298
  var _a2, _b;
299
- let t2 = D.current + e5, n2 = x().filter((e6) => !e6.disabled), r2 = document.activeElement, i2 = (_a2 = n2.find((e6) => e6.ref.current === r2)) == null ? void 0 : _a2.textValue, a2 = getNextMatch(n2.map((e6) => e6.textValue), t2, i2), o = (_b = n2.find((e6) => e6.textValue === a2)) == null ? void 0 : _b.ref.current;
299
+ let t2 = O.current + e5, n2 = S().filter((e6) => !e6.disabled), r2 = document.activeElement, i2 = (_a2 = n2.find((e6) => e6.ref.current === r2)) == null ? void 0 : _a2.textValue, a = getNextMatch(n2.map((e6) => e6.textValue), t2, i2), o2 = (_b = n2.find((e6) => e6.textValue === a)) == null ? void 0 : _b.ref.current;
300
300
  (function e6(t3) {
301
- D.current = t3, window.clearTimeout(E.current), t3 !== "" && (E.current = window.setTimeout(() => e6(""), 1e3));
302
- })(t2), o && setTimeout(() => o.focus());
301
+ O.current = t3, window.clearTimeout(D.current), t3 !== "" && (D.current = window.setTimeout(() => e6(""), 1e3));
302
+ })(t2), o2 && setTimeout(() => o2.focus());
303
303
  };
304
- import_react.useEffect(() => () => window.clearTimeout(E.current), []), useFocusGuards();
304
+ import_react.useEffect(() => () => window.clearTimeout(D.current), []), useFocusGuards();
305
305
  let I = import_react.useCallback((e5) => {
306
306
  var _a2, _b;
307
- return j.current === ((_a2 = k.current) == null ? void 0 : _a2.side) && isPointerInGraceArea(e5, (_b = k.current) == null ? void 0 : _b.area);
307
+ return j.current === ((_a2 = A.current) == null ? void 0 : _a2.side) && isPointerInGraceArea(e5, (_b = A.current) == null ? void 0 : _b.area);
308
308
  }, []);
309
309
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuContentProvider, {
310
310
  scope: n,
311
- searchRef: D,
311
+ searchRef: O,
312
312
  onItemEnter: import_react.useCallback((e5) => {
313
313
  I(e5) && e5.preventDefault();
314
314
  }, [I]),
315
315
  onItemLeave: import_react.useCallback((e5) => {
316
316
  var _a2;
317
- I(e5) || ((_a2 = w.current) == null ? void 0 : _a2.focus(), C(null));
317
+ I(e5) || ((_a2 = T.current) == null ? void 0 : _a2.focus(), w(null));
318
318
  }, [I]),
319
319
  onTriggerLeave: import_react.useCallback((e5) => {
320
320
  I(e5) && e5.preventDefault();
321
321
  }, [I]),
322
- pointerGraceTimerRef: O,
322
+ pointerGraceTimerRef: k,
323
323
  onPointerGraceIntentChange: import_react.useCallback((e5) => {
324
- k.current = e5;
324
+ A.current = e5;
325
325
  }, []),
326
326
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(N, {
327
327
  ...P,
328
328
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusScope, {
329
329
  asChild: true,
330
330
  trapped: i,
331
- onMountAutoFocus: composeEventHandlers(a, (e5) => {
331
+ onMountAutoFocus: composeEventHandlers(o, (e5) => {
332
332
  var _a2;
333
- e5.preventDefault(), (_a2 = w.current) == null ? void 0 : _a2.focus({ preventScroll: true });
333
+ e5.preventDefault(), (_a2 = T.current) == null ? void 0 : _a2.focus({ preventScroll: true });
334
334
  }),
335
335
  onUnmountAutoFocus: s,
336
336
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DismissableLayer, {
@@ -338,45 +338,45 @@ var CONTENT_NAME$1 = "MenuContent", [MenuContentProvider, useMenuContentContext]
338
338
  disableOutsidePointerEvents: c,
339
339
  onEscapeKeyDown: u,
340
340
  onPointerDownOutside: d,
341
- onFocusOutside: f,
342
- onInteractOutside: p,
343
- onDismiss: m,
341
+ onFocusOutside: p,
342
+ onInteractOutside: m,
343
+ onDismiss: h,
344
344
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root, {
345
345
  asChild: true,
346
- ...b,
347
- dir: v.dir,
346
+ ...x,
347
+ dir: y.dir,
348
348
  orientation: "vertical",
349
349
  loop: r,
350
- currentTabStopId: S,
351
- onCurrentTabStopIdChange: C,
350
+ currentTabStopId: C,
351
+ onCurrentTabStopIdChange: w,
352
352
  onEntryFocus: composeEventHandlers(l, (e5) => {
353
- v.isUsingKeyboardRef.current || e5.preventDefault();
353
+ y.isUsingKeyboardRef.current || e5.preventDefault();
354
354
  }),
355
355
  preventScrollOnEntryFocus: true,
356
356
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Content, {
357
357
  role: "menu",
358
358
  "aria-orientation": "vertical",
359
- "data-state": getOpenState(_.open),
359
+ "data-state": getOpenState(v.open),
360
360
  "data-radix-menu-content": "",
361
- dir: v.dir,
362
- ...y,
363
- ...g,
364
- ref: T,
361
+ dir: y.dir,
362
+ ...b,
363
+ ..._,
364
+ ref: E,
365
365
  style: {
366
366
  outline: "none",
367
- ...g.style
367
+ ..._.style
368
368
  },
369
- onKeyDown: composeEventHandlers(g.onKeyDown, (e5) => {
369
+ onKeyDown: composeEventHandlers(_.onKeyDown, (e5) => {
370
370
  let t2 = e5.target.closest("[data-radix-menu-content]") === e5.currentTarget, n2 = e5.ctrlKey || e5.altKey || e5.metaKey, r2 = e5.key.length === 1;
371
371
  t2 && (e5.key === "Tab" && e5.preventDefault(), !n2 && r2 && F(e5.key));
372
- let i2 = w.current;
372
+ let i2 = T.current;
373
373
  if (e5.target !== i2 || !FIRST_LAST_KEYS.includes(e5.key)) return;
374
374
  e5.preventDefault();
375
- let a2 = x().filter((e6) => !e6.disabled).map((e6) => e6.ref.current);
376
- LAST_KEYS.includes(e5.key) && a2.reverse(), focusFirst(a2);
375
+ let a = S().filter((e6) => !e6.disabled).map((e6) => e6.ref.current);
376
+ LAST_KEYS.includes(e5.key) && a.reverse(), focusFirst(a);
377
377
  }),
378
378
  onBlur: composeEventHandlers(e4.onBlur, (e5) => {
379
- e5.currentTarget.contains(e5.target) || (window.clearTimeout(E.current), D.current = "");
379
+ e5.currentTarget.contains(e5.target) || (window.clearTimeout(D.current), O.current = "");
380
380
  }),
381
381
  onPointerMove: composeEventHandlers(e4.onPointerMove, whenMouse((e5) => {
382
382
  let t2 = e5.target, n2 = M.current !== e5.clientX;
@@ -408,62 +408,62 @@ var LABEL_NAME$1 = "MenuLabel", MenuLabel = import_react.forwardRef((e4, t) => {
408
408
  });
409
409
  MenuLabel.displayName = LABEL_NAME$1;
410
410
  var ITEM_NAME$1 = "MenuItem", ITEM_SELECT = "menu.itemSelect", MenuItem = import_react.forwardRef((e4, t) => {
411
- let { disabled: n = false, onSelect: r, ...i } = e4, a = import_react.useRef(null), o = useMenuRootContext(ITEM_NAME$1, e4.__scopeMenu), s = useMenuContentContext(ITEM_NAME$1, e4.__scopeMenu), c = useComposedRefs(t, a), l = import_react.useRef(false), u = () => {
412
- let e5 = a.current;
411
+ let { disabled: n = false, onSelect: r, ...i } = e4, o = import_react.useRef(null), s = useMenuRootContext(ITEM_NAME$1, e4.__scopeMenu), c = useMenuContentContext(ITEM_NAME$1, e4.__scopeMenu), l = useComposedRefs(t, o), u = import_react.useRef(false), d = () => {
412
+ let e5 = o.current;
413
413
  if (!n && e5) {
414
414
  let t2 = new CustomEvent(ITEM_SELECT, {
415
415
  bubbles: true,
416
416
  cancelable: true
417
417
  });
418
- e5.addEventListener(ITEM_SELECT, (e6) => r == null ? void 0 : r(e6), { once: true }), dispatchDiscreteCustomEvent(e5, t2), t2.defaultPrevented ? l.current = false : o.onClose();
418
+ e5.addEventListener(ITEM_SELECT, (e6) => r == null ? void 0 : r(e6), { once: true }), dispatchDiscreteCustomEvent(e5, t2), t2.defaultPrevented ? u.current = false : s.onClose();
419
419
  }
420
420
  };
421
421
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuItemImpl, {
422
422
  ...i,
423
- ref: c,
423
+ ref: l,
424
424
  disabled: n,
425
- onClick: composeEventHandlers(e4.onClick, u),
425
+ onClick: composeEventHandlers(e4.onClick, d),
426
426
  onPointerDown: (t2) => {
427
427
  var _a2;
428
- (_a2 = e4.onPointerDown) == null ? void 0 : _a2.call(e4, t2), l.current = true;
428
+ (_a2 = e4.onPointerDown) == null ? void 0 : _a2.call(e4, t2), u.current = true;
429
429
  },
430
430
  onPointerUp: composeEventHandlers(e4.onPointerUp, (e5) => {
431
431
  var _a2;
432
- l.current || ((_a2 = e5.currentTarget) == null ? void 0 : _a2.click());
432
+ u.current || ((_a2 = e5.currentTarget) == null ? void 0 : _a2.click());
433
433
  }),
434
434
  onKeyDown: composeEventHandlers(e4.onKeyDown, (e5) => {
435
- let t2 = s.searchRef.current !== "";
435
+ let t2 = c.searchRef.current !== "";
436
436
  n || t2 && e5.key === " " || SELECTION_KEYS.includes(e5.key) && (e5.currentTarget.click(), e5.preventDefault());
437
437
  })
438
438
  });
439
439
  });
440
440
  MenuItem.displayName = ITEM_NAME$1;
441
441
  var MenuItemImpl = import_react.forwardRef((e4, t) => {
442
- let { __scopeMenu: n, disabled: r = false, textValue: i, ...a } = e4, o = useMenuContentContext(ITEM_NAME$1, n), s = useRovingFocusGroupScope(n), c = import_react.useRef(null), l = useComposedRefs(t, c), [u, d] = import_react.useState(false), [f, p] = import_react.useState("");
442
+ let { __scopeMenu: n, disabled: r = false, textValue: i, ...o } = e4, s = useMenuContentContext(ITEM_NAME$1, n), c = useRovingFocusGroupScope(n), l = import_react.useRef(null), u = useComposedRefs(t, l), [d, f] = import_react.useState(false), [p, m] = import_react.useState("");
443
443
  return import_react.useEffect(() => {
444
- let e5 = c.current;
445
- e5 && p((e5.textContent ?? "").trim());
446
- }, [a.children]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.ItemSlot, {
444
+ let e5 = l.current;
445
+ e5 && m((e5.textContent ?? "").trim());
446
+ }, [o.children]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.ItemSlot, {
447
447
  scope: n,
448
448
  disabled: r,
449
- textValue: i ?? f,
449
+ textValue: i ?? p,
450
450
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Item, {
451
451
  asChild: true,
452
- ...s,
452
+ ...c,
453
453
  focusable: !r,
454
454
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
455
455
  role: "menuitem",
456
- "data-highlighted": u ? "" : void 0,
456
+ "data-highlighted": d ? "" : void 0,
457
457
  "aria-disabled": r || void 0,
458
458
  "data-disabled": r ? "" : void 0,
459
- ...a,
460
- ref: l,
459
+ ...o,
460
+ ref: u,
461
461
  onPointerMove: composeEventHandlers(e4.onPointerMove, whenMouse((e5) => {
462
- r ? o.onItemLeave(e5) : (o.onItemEnter(e5), e5.defaultPrevented || e5.currentTarget.focus({ preventScroll: true }));
462
+ r ? s.onItemLeave(e5) : (s.onItemEnter(e5), e5.defaultPrevented || e5.currentTarget.focus({ preventScroll: true }));
463
463
  })),
464
- onPointerLeave: composeEventHandlers(e4.onPointerLeave, whenMouse((e5) => o.onItemLeave(e5))),
465
- onFocus: composeEventHandlers(e4.onFocus, () => d(true)),
466
- onBlur: composeEventHandlers(e4.onBlur, () => d(false))
464
+ onPointerLeave: composeEventHandlers(e4.onPointerLeave, whenMouse((e5) => s.onItemLeave(e5))),
465
+ onFocus: composeEventHandlers(e4.onFocus, () => f(true)),
466
+ onBlur: composeEventHandlers(e4.onBlur, () => f(false))
467
467
  })
468
468
  })
469
469
  });
@@ -551,21 +551,21 @@ var ARROW_NAME$1 = "MenuArrow", MenuArrow = import_react.forwardRef((e4, t) => {
551
551
  });
552
552
  MenuArrow.displayName = ARROW_NAME$1;
553
553
  var SUB_NAME = "MenuSub", [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME), MenuSub = (e4) => {
554
- let { __scopeMenu: t, children: n, open: r = false, onOpenChange: a } = e4, o = useMenuContext(SUB_NAME, t), s = usePopperScope(t), [c, l] = import_react.useState(null), [u, d] = import_react.useState(null), f = useCallbackRef(a);
555
- return import_react.useEffect(() => (o.open === false && f(false), () => f(false)), [o.open, f]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
556
- ...s,
554
+ let { __scopeMenu: t, children: n, open: r = false, onOpenChange: i } = e4, a = useMenuContext(SUB_NAME, t), o = usePopperScope(t), [s, c] = import_react.useState(null), [l, d] = import_react.useState(null), f = useCallbackRef(i);
555
+ return import_react.useEffect(() => (a.open === false && f(false), () => f(false)), [a.open, f]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
556
+ ...o,
557
557
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuProvider, {
558
558
  scope: t,
559
559
  open: r,
560
560
  onOpenChange: f,
561
- content: u,
561
+ content: l,
562
562
  onContentChange: d,
563
563
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuSubProvider, {
564
564
  scope: t,
565
565
  contentId: useId(),
566
566
  triggerId: useId(),
567
- trigger: c,
568
- onTriggerChange: l,
567
+ trigger: s,
568
+ onTriggerChange: c,
569
569
  children: n
570
570
  })
571
571
  })
@@ -573,17 +573,17 @@ var SUB_NAME = "MenuSub", [MenuSubProvider, useMenuSubContext] = createMenuConte
573
573
  };
574
574
  MenuSub.displayName = SUB_NAME;
575
575
  var SUB_TRIGGER_NAME$1 = "MenuSubTrigger", MenuSubTrigger = import_react.forwardRef((e4, t) => {
576
- let n = useMenuContext(SUB_TRIGGER_NAME$1, e4.__scopeMenu), r = useMenuRootContext(SUB_TRIGGER_NAME$1, e4.__scopeMenu), i = useMenuSubContext(SUB_TRIGGER_NAME$1, e4.__scopeMenu), a = useMenuContentContext(SUB_TRIGGER_NAME$1, e4.__scopeMenu), o = import_react.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: c } = a, l = { __scopeMenu: e4.__scopeMenu }, u = import_react.useCallback(() => {
577
- o.current && window.clearTimeout(o.current), o.current = null;
576
+ let n = useMenuContext(SUB_TRIGGER_NAME$1, e4.__scopeMenu), r = useMenuRootContext(SUB_TRIGGER_NAME$1, e4.__scopeMenu), i = useMenuSubContext(SUB_TRIGGER_NAME$1, e4.__scopeMenu), a = useMenuContentContext(SUB_TRIGGER_NAME$1, e4.__scopeMenu), s = import_react.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = a, u = { __scopeMenu: e4.__scopeMenu }, d = import_react.useCallback(() => {
577
+ s.current && window.clearTimeout(s.current), s.current = null;
578
578
  }, []);
579
- return import_react.useEffect(() => u, [u]), import_react.useEffect(() => {
580
- let e5 = s.current;
579
+ return import_react.useEffect(() => d, [d]), import_react.useEffect(() => {
580
+ let e5 = c.current;
581
581
  return () => {
582
- window.clearTimeout(e5), c(null);
582
+ window.clearTimeout(e5), l(null);
583
583
  };
584
- }, [s, c]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuAnchor, {
584
+ }, [c, l]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuAnchor, {
585
585
  asChild: true,
586
- ...l,
586
+ ...u,
587
587
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuItemImpl, {
588
588
  id: i.triggerId,
589
589
  "aria-haspopup": "menu",
@@ -597,24 +597,24 @@ var SUB_TRIGGER_NAME$1 = "MenuSubTrigger", MenuSubTrigger = import_react.forward
597
597
  (_a2 = e4.onClick) == null ? void 0 : _a2.call(e4, t2), !(e4.disabled || t2.defaultPrevented) && (t2.currentTarget.focus(), n.open || n.onOpenChange(true));
598
598
  },
599
599
  onPointerMove: composeEventHandlers(e4.onPointerMove, whenMouse((t2) => {
600
- a.onItemEnter(t2), !t2.defaultPrevented && !e4.disabled && !n.open && !o.current && (a.onPointerGraceIntentChange(null), o.current = window.setTimeout(() => {
601
- n.onOpenChange(true), u();
600
+ a.onItemEnter(t2), !t2.defaultPrevented && !e4.disabled && !n.open && !s.current && (a.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
601
+ n.onOpenChange(true), d();
602
602
  }, 100));
603
603
  })),
604
604
  onPointerLeave: composeEventHandlers(e4.onPointerLeave, whenMouse((e5) => {
605
605
  var _a2, _b;
606
- u();
606
+ d();
607
607
  let t2 = (_a2 = n.content) == null ? void 0 : _a2.getBoundingClientRect();
608
608
  if (t2) {
609
- let r2 = (_b = n.content) == null ? void 0 : _b.dataset.side, i2 = r2 === "right", o2 = i2 ? -5 : 5, c2 = t2[i2 ? "left" : "right"], l2 = t2[i2 ? "right" : "left"];
609
+ let r2 = (_b = n.content) == null ? void 0 : _b.dataset.side, i2 = r2 === "right", o = i2 ? -5 : 5, s2 = t2[i2 ? "left" : "right"], l2 = t2[i2 ? "right" : "left"];
610
610
  a.onPointerGraceIntentChange({
611
611
  area: [
612
612
  {
613
- x: e5.clientX + o2,
613
+ x: e5.clientX + o,
614
614
  y: e5.clientY
615
615
  },
616
616
  {
617
- x: c2,
617
+ x: s2,
618
618
  y: t2.top
619
619
  },
620
620
  {
@@ -626,12 +626,12 @@ var SUB_TRIGGER_NAME$1 = "MenuSubTrigger", MenuSubTrigger = import_react.forward
626
626
  y: t2.bottom
627
627
  },
628
628
  {
629
- x: c2,
629
+ x: s2,
630
630
  y: t2.bottom
631
631
  }
632
632
  ],
633
633
  side: r2
634
- }), window.clearTimeout(s.current), s.current = window.setTimeout(() => a.onPointerGraceIntentChange(null), 300);
634
+ }), window.clearTimeout(c.current), c.current = window.setTimeout(() => a.onPointerGraceIntentChange(null), 300);
635
635
  } else {
636
636
  if (a.onTriggerLeave(e5), e5.defaultPrevented) return;
637
637
  a.onPointerGraceIntentChange(null);
@@ -647,38 +647,38 @@ var SUB_TRIGGER_NAME$1 = "MenuSubTrigger", MenuSubTrigger = import_react.forward
647
647
  });
648
648
  MenuSubTrigger.displayName = SUB_TRIGGER_NAME$1;
649
649
  var SUB_CONTENT_NAME$1 = "MenuSubContent", MenuSubContent = import_react.forwardRef((e4, t) => {
650
- let n = usePortalContext(CONTENT_NAME$1, e4.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e4, a = useMenuContext(CONTENT_NAME$1, e4.__scopeMenu), o = useMenuRootContext(CONTENT_NAME$1, e4.__scopeMenu), s = useMenuSubContext(SUB_CONTENT_NAME$1, e4.__scopeMenu), c = import_react.useRef(null), l = useComposedRefs(t, c);
650
+ let n = usePortalContext(CONTENT_NAME$1, e4.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e4, o = useMenuContext(CONTENT_NAME$1, e4.__scopeMenu), s = useMenuRootContext(CONTENT_NAME$1, e4.__scopeMenu), c = useMenuSubContext(SUB_CONTENT_NAME$1, e4.__scopeMenu), l = import_react.useRef(null), u = useComposedRefs(t, l);
651
651
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.Provider, {
652
652
  scope: e4.__scopeMenu,
653
653
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
654
- present: r || a.open,
654
+ present: r || o.open,
655
655
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.Slot, {
656
656
  scope: e4.__scopeMenu,
657
657
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuContentImpl, {
658
- id: s.contentId,
659
- "aria-labelledby": s.triggerId,
658
+ id: c.contentId,
659
+ "aria-labelledby": c.triggerId,
660
660
  ...i,
661
- ref: l,
661
+ ref: u,
662
662
  align: "start",
663
- side: o.dir === "rtl" ? "left" : "right",
663
+ side: s.dir === "rtl" ? "left" : "right",
664
664
  disableOutsidePointerEvents: false,
665
665
  disableOutsideScroll: false,
666
666
  trapFocus: false,
667
667
  onOpenAutoFocus: (e5) => {
668
668
  var _a2;
669
- o.isUsingKeyboardRef.current && ((_a2 = c.current) == null ? void 0 : _a2.focus()), e5.preventDefault();
669
+ s.isUsingKeyboardRef.current && ((_a2 = l.current) == null ? void 0 : _a2.focus()), e5.preventDefault();
670
670
  },
671
671
  onCloseAutoFocus: (e5) => e5.preventDefault(),
672
672
  onFocusOutside: composeEventHandlers(e4.onFocusOutside, (e5) => {
673
- e5.target !== s.trigger && a.onOpenChange(false);
673
+ e5.target !== c.trigger && o.onOpenChange(false);
674
674
  }),
675
675
  onEscapeKeyDown: composeEventHandlers(e4.onEscapeKeyDown, (e5) => {
676
- o.onClose(), e5.preventDefault();
676
+ s.onClose(), e5.preventDefault();
677
677
  }),
678
678
  onKeyDown: composeEventHandlers(e4.onKeyDown, (e5) => {
679
679
  var _a2;
680
- let t2 = e5.currentTarget.contains(e5.target), n2 = SUB_CLOSE_KEYS[o.dir].includes(e5.key);
681
- t2 && n2 && (a.onOpenChange(false), (_a2 = s.trigger) == null ? void 0 : _a2.focus(), e5.preventDefault());
680
+ let t2 = e5.currentTarget.contains(e5.target), n2 = SUB_CLOSE_KEYS[s.dir].includes(e5.key);
681
+ t2 && n2 && (o.onOpenChange(false), (_a2 = c.trigger) == null ? void 0 : _a2.focus(), e5.preventDefault());
682
682
  })
683
683
  })
684
684
  })
@@ -753,10 +753,10 @@ var Root3 = Menu, Anchor2 = MenuAnchor, Portal$1 = MenuPortal, Content2$1 = Menu
753
753
  };
754
754
  DropdownMenu$1.displayName = DROPDOWN_MENU_NAME;
755
755
  var TRIGGER_NAME = "DropdownMenuTrigger", DropdownMenuTrigger$1 = import_react.forwardRef((e4, t) => {
756
- let { __scopeDropdownMenu: n, disabled: r = false, ...i } = e4, a = useDropdownMenuContext(TRIGGER_NAME, n), o = useMenuScope(n);
756
+ let { __scopeDropdownMenu: n, disabled: r = false, ...i } = e4, a = useDropdownMenuContext(TRIGGER_NAME, n), s = useMenuScope(n);
757
757
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Anchor2, {
758
758
  asChild: true,
759
- ...o,
759
+ ...s,
760
760
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
761
761
  type: "button",
762
762
  id: a.triggerId,
@@ -2601,32 +2601,32 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(e4) {
2601
2601
  function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(e4) {
2602
2602
  let { minValue: t, maxValue: n, step: r, formatOptions: i, value: a, defaultValue: o = NaN, onChange: s, locale: c, isDisabled: l, isReadOnly: u } = e4;
2603
2603
  a === null && (a = NaN), a !== void 0 && !isNaN(a) && (a = r !== void 0 && !isNaN(r) ? $9446cca9a3875146$export$cb6e0bb50bc19463(a, t, n, r) : $9446cca9a3875146$export$7d15b64cf5a3a4c4(a, t, n)), isNaN(o) || (o = r !== void 0 && !isNaN(r) ? $9446cca9a3875146$export$cb6e0bb50bc19463(o, t, n, r) : $9446cca9a3875146$export$7d15b64cf5a3a4c4(o, t, n));
2604
- let [d, f] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(a, isNaN(o) ? NaN : o, s), [p] = (0, import_react.useState)(d), [m, h] = (0, import_react.useState)(() => isNaN(d) ? "" : new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(c, i).format(d)), _ = (0, import_react.useMemo)(() => new $6c7bd7858deea686$export$cd11ab140839f11d(c, i), [c, i]), v = (0, import_react.useMemo)(() => _.getNumberingSystem(m), [_, m]), y = (0, import_react.useMemo)(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(c, {
2604
+ let [d, f] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(a, isNaN(o) ? NaN : o, s), [p] = (0, import_react.useState)(d), [m, h] = (0, import_react.useState)(() => isNaN(d) ? "" : new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(c, i).format(d)), g = (0, import_react.useMemo)(() => new $6c7bd7858deea686$export$cd11ab140839f11d(c, i), [c, i]), _ = (0, import_react.useMemo)(() => g.getNumberingSystem(m), [g, m]), v = (0, import_react.useMemo)(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(c, {
2605
2605
  ...i,
2606
- numberingSystem: v
2606
+ numberingSystem: _
2607
2607
  }), [
2608
2608
  c,
2609
2609
  i,
2610
- v
2611
- ]), b = (0, import_react.useMemo)(() => y.resolvedOptions(), [y]), x = (0, import_react.useCallback)((e5) => isNaN(e5) || e5 === null ? "" : y.format(e5), [y]), S = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
2610
+ _
2611
+ ]), y = (0, import_react.useMemo)(() => v.resolvedOptions(), [v]), b = (0, import_react.useCallback)((e5) => isNaN(e5) || e5 === null ? "" : v.format(e5), [v]), x = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
2612
2612
  ...e4,
2613
2613
  value: d
2614
2614
  }), C = r !== void 0 && !isNaN(r) ? r : 1;
2615
- b.style === "percent" && (r === void 0 || isNaN(r)) && (C = 0.01);
2615
+ y.style === "percent" && (r === void 0 || isNaN(r)) && (C = 0.01);
2616
2616
  let [w, T] = (0, import_react.useState)(d), [E, D] = (0, import_react.useState)(c), [O, k] = (0, import_react.useState)(i);
2617
- (!Object.is(d, w) || c !== E || i !== O) && (h(x(d)), T(d), D(c), k(i));
2618
- let A = (0, import_react.useMemo)(() => _.parse(m), [_, m]), j = (e5) => {
2617
+ (!Object.is(d, w) || c !== E || i !== O) && (h(b(d)), T(d), D(c), k(i));
2618
+ let A = (0, import_react.useMemo)(() => g.parse(m), [g, m]), j = (e5) => {
2619
2619
  let i2 = e5 === void 0 ? m : e5, o2 = A;
2620
- if (e5 !== void 0 && (o2 = _.parse(i2)), !i2.length) {
2621
- f(NaN), h(a === void 0 ? "" : x(d));
2620
+ if (e5 !== void 0 && (o2 = g.parse(i2)), !i2.length) {
2621
+ f(NaN), h(a === void 0 ? "" : b(d));
2622
2622
  return;
2623
2623
  }
2624
2624
  if (isNaN(o2)) {
2625
- h(x(d));
2625
+ h(b(d));
2626
2626
  return;
2627
2627
  }
2628
2628
  let s2;
2629
- s2 = r === void 0 || isNaN(r) ? $9446cca9a3875146$export$7d15b64cf5a3a4c4(o2, t, n) : $9446cca9a3875146$export$cb6e0bb50bc19463(o2, t, n, r), s2 = _.parse(x(s2)), f(s2), h(x(a === void 0 ? s2 : d)), S.commitValidation();
2629
+ s2 = r === void 0 || isNaN(r) ? $9446cca9a3875146$export$7d15b64cf5a3a4c4(o2, t, n) : $9446cca9a3875146$export$cb6e0bb50bc19463(o2, t, n, r), s2 = g.parse(b(s2)), f(s2), h(b(a === void 0 ? s2 : d)), x.commitValidation();
2630
2630
  }, M = (e5, r2 = 0) => {
2631
2631
  let i2 = A;
2632
2632
  if (isNaN(i2)) return $9446cca9a3875146$export$cb6e0bb50bc19463(isNaN(r2) ? 0 : r2, t, n, C);
@@ -2636,14 +2636,14 @@ function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(e4) {
2636
2636
  }
2637
2637
  }, N = () => {
2638
2638
  let e5 = M("+", t);
2639
- e5 === d && h(x(e5)), f(e5), S.commitValidation();
2639
+ e5 === d && h(b(e5)), f(e5), x.commitValidation();
2640
2640
  }, P = () => {
2641
2641
  let e5 = M("-", n);
2642
- e5 === d && h(x(e5)), f(e5), S.commitValidation();
2642
+ e5 === d && h(b(e5)), f(e5), x.commitValidation();
2643
2643
  }, F = () => {
2644
- n != null && (f($9446cca9a3875146$export$cb6e0bb50bc19463(n, t, n, C)), S.commitValidation());
2644
+ n != null && (f($9446cca9a3875146$export$cb6e0bb50bc19463(n, t, n, C)), x.commitValidation());
2645
2645
  }, I = () => {
2646
- t != null && (f(t), S.commitValidation());
2646
+ t != null && (f(t), x.commitValidation());
2647
2647
  }, L = (0, import_react.useMemo)(() => !l && !u && (isNaN(A) || n === void 0 || isNaN(n) || $9446cca9a3875146$export$cb6e0bb50bc19463(A, t, n, C) > A || $de67e98908f0c6ee$var$handleDecimalOperation("+", A, C) <= n), [
2648
2648
  l,
2649
2649
  u,
@@ -2658,9 +2658,9 @@ function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(e4) {
2658
2658
  n,
2659
2659
  C,
2660
2660
  A
2661
- ]), z = (e5) => _.isValidPartialNumber(e5, t, n);
2661
+ ]), z = (e5) => g.isValidPartialNumber(e5, t, n);
2662
2662
  return {
2663
- ...S,
2663
+ ...x,
2664
2664
  validate: z,
2665
2665
  increment: N,
2666
2666
  incrementToMax: F,
@@ -3273,7 +3273,7 @@ function $parcel$interopDefault(e4) {
3273
3273
  }
3274
3274
  function $81397a9303501bda$export$23f548e970bdf099(e4, t, n) {
3275
3275
  let { id: r, decrementAriaLabel: i, incrementAriaLabel: a, isDisabled: o, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: d, label: f, formatOptions: p, onBlur: m = () => {
3276
- }, onFocus: h, onFocusChange: g, onKeyDown: _, onKeyUp: v, description: y, errorMessage: b, isWheelDisabled: x, ...S } = e4, { increment: w, incrementToMax: T, decrement: E, decrementToMin: D, numberValue: O, inputValue: k, commit: A, commitValidation: j } = t, M = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($280a227d7cb94b92$exports), "@react-aria/numberfield"), N = (0, import_react.useCallback)(() => {
3276
+ }, onFocus: h, onFocusChange: g, onKeyDown: _, onKeyUp: v, description: y, errorMessage: b, isWheelDisabled: x, ...S } = e4, { increment: C, incrementToMax: w, decrement: T, decrementToMin: E, numberValue: D, inputValue: O, commit: A, commitValidation: j } = t, M = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($280a227d7cb94b92$exports), "@react-aria/numberfield"), N = (0, import_react.useCallback)(() => {
3277
3277
  var _a2, _b, _c;
3278
3278
  let e5 = ((_a2 = n.current) == null ? void 0 : _a2.value) ?? "";
3279
3279
  (0, import_react_dom.flushSync)(() => {
@@ -3290,20 +3290,20 @@ function $81397a9303501bda$export$23f548e970bdf099(e4, t, n) {
3290
3290
  isRequired: c,
3291
3291
  maxValue: u,
3292
3292
  minValue: l,
3293
- onIncrement: w,
3294
- onIncrementToMax: T,
3295
- onDecrement: E,
3296
- onDecrementToMin: D,
3297
- value: O,
3298
- textValue: (0, import_react.useMemo)(() => isNaN(O) ? "" : R.format(O), [R, O])
3293
+ onIncrement: C,
3294
+ onIncrementToMax: w,
3295
+ onDecrement: T,
3296
+ onDecrementToMin: E,
3297
+ value: D,
3298
+ textValue: (0, import_react.useMemo)(() => isNaN(D) ? "" : R.format(D), [R, D])
3299
3299
  }), [qu, Ju] = (0, import_react.useState)(false), { focusWithinProps: Yu } = $9ab94262bd0047c7$export$420e68273165f4ec({
3300
3300
  isDisabled: o,
3301
3301
  onFocusWithinChange: Ju
3302
3302
  });
3303
3303
  $7d0a636d7a4dcefd$export$2123ff2b87c81ca({
3304
3304
  onScroll: (0, import_react.useCallback)((e5) => {
3305
- Math.abs(e5.deltaY) <= Math.abs(e5.deltaX) || (e5.deltaY > 0 ? w() : e5.deltaY < 0 && E());
3306
- }, [E, w]),
3305
+ Math.abs(e5.deltaY) <= Math.abs(e5.deltaX) || (e5.deltaY > 0 ? C() : e5.deltaY < 0 && T());
3306
+ }, [T, C]),
3307
3307
  isDisabled: x || o || s || !qu
3308
3308
  }, n);
3309
3309
  let V = (L.maximumFractionDigits ?? 0) > 0, H = t.minValue === void 0 || isNaN(t.minValue) || t.minValue < 0, U = "numeric";
@@ -3333,7 +3333,7 @@ function $81397a9303501bda$export$23f548e970bdf099(e4, t, n) {
3333
3333
  isRequired: c,
3334
3334
  validate: void 0,
3335
3335
  [$e5be200c675c3b3a$export$a763b9476acd3eb]: t,
3336
- value: k,
3336
+ value: O,
3337
3337
  defaultValue: "!",
3338
3338
  autoComplete: "off",
3339
3339
  "aria-label": e4["aria-label"] || void 0,
@@ -5109,7 +5109,7 @@ var $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ (0, import_react
5109
5109
  ...e4,
5110
5110
  locale: i,
5111
5111
  validationBehavior: r
5112
- }), o = (0, import_react.useRef)(null), [s, c] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e4["aria-label"] && !e4["aria-labelledby"]), { labelProps: l, groupProps: d, inputProps: f, incrementButtonProps: p, decrementButtonProps: m, descriptionProps: h, errorMessageProps: g, ..._ } = $81397a9303501bda$export$23f548e970bdf099({
5112
+ }), o = (0, import_react.useRef)(null), [s, c] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e4["aria-label"] && !e4["aria-labelledby"]), { labelProps: l, groupProps: u, inputProps: d, incrementButtonProps: f, decrementButtonProps: p, descriptionProps: m, errorMessageProps: h, ..._ } = $81397a9303501bda$export$23f548e970bdf099({
5113
5113
  ...$64fa3d84918910a7$export$ef03459518577ad4(e4),
5114
5114
  label: c,
5115
5115
  validationBehavior: r
@@ -5125,9 +5125,9 @@ var $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ (0, import_react
5125
5125
  }), y = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(e4, { global: true });
5126
5126
  return delete y.id, /* @__PURE__ */ import_react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
5127
5127
  [$b91743d66a0ed188$export$6cc906c6cff9bec5, a],
5128
- [$a049562f99e7db0e$export$f9c6924e160136d1, d],
5128
+ [$a049562f99e7db0e$export$f9c6924e160136d1, u],
5129
5129
  [$3985021b0ad6602f$export$37fb8590cf2c088c, {
5130
- ...f,
5130
+ ...d,
5131
5131
  ref: o
5132
5132
  }],
5133
5133
  [$01b77f81d0f07f68$export$75b6ee27786ba447, {
@@ -5135,12 +5135,12 @@ var $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ (0, import_react
5135
5135
  ref: s
5136
5136
  }],
5137
5137
  [$d2b4bc8c273e7be6$export$24d547caef80ccd1, { slots: {
5138
- increment: p,
5139
- decrement: m
5138
+ increment: f,
5139
+ decrement: p
5140
5140
  } }],
5141
5141
  [$514c0188e459b4c0$export$9afb8bc826b033ea, { slots: {
5142
- description: h,
5143
- errorMessage: g
5142
+ description: m,
5143
+ errorMessage: h
5144
5144
  } }],
5145
5145
  [$ee014567cb39d3f0$export$ff05c3ac10437e03, _]
5146
5146
  ] }, /* @__PURE__ */ import_react.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
@@ -5178,36 +5178,36 @@ var $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ (0, import_react
5178
5178
  });
5179
5179
  DropdownMenuSubTrigger.displayName = SubTrigger2.displayName;
5180
5180
  var DropdownMenuSubContent = import_react.forwardRef((e4, t) => {
5181
- let n = (0, import_compiler_runtime$2.c)(9), r, i;
5182
- n[0] === e4 ? (r = n[1], i = n[2]) : ({ className: r, ...i } = e4, n[0] = e4, n[1] = r, n[2] = i);
5183
- let a;
5184
- n[3] === r ? a = n[4] : (a = cn(menuContentCommon({ subcontent: true }), "animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1", r), n[3] = r, n[4] = a);
5181
+ let n = (0, import_compiler_runtime$2.c)(9), i, a;
5182
+ n[0] === e4 ? (i = n[1], a = n[2]) : ({ className: i, ...a } = e4, n[0] = e4, n[1] = i, n[2] = a);
5185
5183
  let o;
5186
- return n[5] !== i || n[6] !== t || n[7] !== a ? (o = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InternalDropdownMenuSubContent, {
5184
+ n[3] === i ? o = n[4] : (o = cn(menuContentCommon({ subcontent: true }), "animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1", i), n[3] = i, n[4] = o);
5185
+ let s;
5186
+ return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InternalDropdownMenuSubContent, {
5187
5187
  ref: t,
5188
- className: a,
5189
- ...i
5190
- }), n[5] = i, n[6] = t, n[7] = a, n[8] = o) : o = n[8], o;
5188
+ className: o,
5189
+ ...a
5190
+ }), n[5] = a, n[6] = t, n[7] = o, n[8] = s) : s = n[8], s;
5191
5191
  });
5192
5192
  DropdownMenuSubContent.displayName = SubContent2.displayName;
5193
5193
  var DropdownMenuContent = import_react.forwardRef((e4, t) => {
5194
- let n = (0, import_compiler_runtime$2.c)(17), r, i, a, o;
5195
- n[0] === e4 ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({ className: r, scrollable: a, sideOffset: o, ...i } = e4, n[0] = e4, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
5196
- let s = a === void 0 ? true : a, c = o === void 0 ? 4 : o, l;
5197
- n[5] !== r || n[6] !== s ? (l = cn(menuContentCommon(), "animate-in 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 print:hidden", s && "overflow-auto", r), n[5] = r, n[6] = s, n[7] = l) : l = n[7];
5198
- let u = s ? `calc(var(--radix-dropdown-menu-content-available-height) - ${MAX_HEIGHT_OFFSET}px)` : void 0, d;
5199
- n[8] !== i.style || n[9] !== u ? (d = {
5200
- ...i.style,
5201
- maxHeight: u
5202
- }, n[8] = i.style, n[9] = u, n[10] = d) : d = n[10];
5203
- let f;
5204
- return n[11] !== i || n[12] !== t || n[13] !== c || n[14] !== l || n[15] !== d ? (f = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyleNamespace, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InternalDropdownMenuContent, {
5194
+ let n = (0, import_compiler_runtime$2.c)(17), i, a, o, s;
5195
+ n[0] === e4 ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: i, scrollable: o, sideOffset: s, ...a } = e4, n[0] = e4, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
5196
+ let c = o === void 0 ? true : o, l = s === void 0 ? 4 : s, u;
5197
+ n[5] !== i || n[6] !== c ? (u = cn(menuContentCommon(), "animate-in 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 print:hidden", c && "overflow-auto", i), n[5] = i, n[6] = c, n[7] = u) : u = n[7];
5198
+ let d = c ? `calc(var(--radix-dropdown-menu-content-available-height) - ${MAX_HEIGHT_OFFSET}px)` : void 0, f;
5199
+ n[8] !== a.style || n[9] !== d ? (f = {
5200
+ ...a.style,
5201
+ maxHeight: d
5202
+ }, n[8] = a.style, n[9] = d, n[10] = f) : f = n[10];
5203
+ let p;
5204
+ return n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== u || n[15] !== f ? (p = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyleNamespace, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InternalDropdownMenuContent, {
5205
5205
  ref: t,
5206
- sideOffset: c,
5207
- className: l,
5208
- style: d,
5209
- ...i
5210
- }) }) }), n[11] = i, n[12] = t, n[13] = c, n[14] = l, n[15] = d, n[16] = f) : f = n[16], f;
5206
+ sideOffset: l,
5207
+ className: u,
5208
+ style: f,
5209
+ ...a
5210
+ }) }) }), n[11] = a, n[12] = t, n[13] = l, n[14] = u, n[15] = f, n[16] = p) : p = n[16], p;
5211
5211
  });
5212
5212
  DropdownMenuContent.displayName = Content2.displayName;
5213
5213
  var DropdownMenuItem = import_react.forwardRef((e4, t) => {
@@ -5234,19 +5234,19 @@ var DropdownMenuCheckboxItem = import_react.forwardRef((e4, t) => {
5234
5234
  n[5] === a ? s = n[6] : (s = menuControlVariants({ className: a }), n[5] = a, n[6] = s);
5235
5235
  let c;
5236
5236
  n[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = menuControlCheckVariants(), n[7] = c) : c = n[7];
5237
- let u;
5238
- n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
5237
+ let l;
5238
+ n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
5239
5239
  className: c,
5240
5240
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemIndicator2, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { className: "h-4 w-4" }) })
5241
- }), n[8] = u) : u = n[8];
5242
- let d;
5243
- return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (d = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CheckboxItem2, {
5241
+ }), n[8] = l) : l = n[8];
5242
+ let u;
5243
+ return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (u = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CheckboxItem2, {
5244
5244
  ref: t,
5245
5245
  className: s,
5246
5246
  checked: r,
5247
5247
  ...o,
5248
- children: [u, i]
5249
- }), n[9] = r, n[10] = i, n[11] = o, n[12] = t, n[13] = s, n[14] = d) : d = n[14], d;
5248
+ children: [l, i]
5249
+ }), n[9] = r, n[10] = i, n[11] = o, n[12] = t, n[13] = s, n[14] = u) : u = n[14], u;
5250
5250
  });
5251
5251
  DropdownMenuCheckboxItem.displayName = CheckboxItem2.displayName;
5252
5252
  var DropdownMenuRadioItem = import_react.forwardRef((e4, t) => {
@@ -5300,7 +5300,7 @@ var DropdownMenuSeparator = import_react.forwardRef((e4, t) => {
5300
5300
  });
5301
5301
  DropdownMenuSeparator.displayName = Separator2.displayName;
5302
5302
  const maxFractionalDigits = memoizeLastValue((e4) => {
5303
- for (let t of [
5303
+ for (let n of [
5304
5304
  100,
5305
5305
  20,
5306
5306
  2,
@@ -5308,8 +5308,8 @@ const maxFractionalDigits = memoizeLastValue((e4) => {
5308
5308
  ]) try {
5309
5309
  return new Intl.NumberFormat(e4, {
5310
5310
  minimumFractionDigits: 0,
5311
- maximumFractionDigits: t
5312
- }).format(1), t;
5311
+ maximumFractionDigits: n
5312
+ }).format(1), n;
5313
5313
  } catch (e5) {
5314
5314
  Logger.error(e5);
5315
5315
  }
@@ -5372,136 +5372,136 @@ function prettyEngineeringNumber(e4, t) {
5372
5372
  }
5373
5373
  var import_compiler_runtime$1 = require_compiler_runtime();
5374
5374
  const NumberField = import_react.forwardRef((e4, t) => {
5375
- let n = (0, import_compiler_runtime$1.c)(40), { placeholder: r, variant: i, ...a } = e4, o = i === void 0 ? "default" : i, { locale: s } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), c = $b91743d66a0ed188$export$63c5fa0b2fdccd2e, l;
5376
- n[0] === s ? l = n[1] : (l = maxFractionalDigits(s), n[0] = s, n[1] = l);
5375
+ let n = (0, import_compiler_runtime$1.c)(40), { placeholder: i, variant: a, ...o } = e4, s = a === void 0 ? "default" : a, { locale: c } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), l = $b91743d66a0ed188$export$63c5fa0b2fdccd2e, u;
5376
+ n[0] === c ? u = n[1] : (u = maxFractionalDigits(c), n[0] = c, n[1] = u);
5377
5377
  let d;
5378
- n[2] === l ? d = n[3] : (d = {
5378
+ n[2] === u ? d = n[3] : (d = {
5379
5379
  minimumFractionDigits: 0,
5380
- maximumFractionDigits: l
5381
- }, n[2] = l, n[3] = d);
5382
- let f = cn("shadow-xs-solid hover:shadow-sm-solid hover:focus-within:shadow-md-solid", "flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background", "disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xs-solid", "focus-within:shadow-md-solid focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:border-primary", o === "default" ? "h-6 w-full mb-1" : "h-4 w-full mb-0.5", o === "xs" && "text-xs", a.className), m = a.isDisabled, g = o === "default" ? "px-1.5" : "px-1", _;
5383
- n[4] === g ? _ = n[5] : (_ = cn("flex-1", "w-full", "placeholder:text-muted-foreground", "outline-hidden", "disabled:cursor-not-allowed disabled:opacity-50", g), n[4] = g, n[5] = _);
5384
- let v;
5385
- n[6] !== r || n[7] !== a.isDisabled || n[8] !== t || n[9] !== _ ? (v = /* @__PURE__ */ (0, import_jsx_runtime.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, {
5380
+ maximumFractionDigits: u
5381
+ }, n[2] = u, n[3] = d);
5382
+ let f = cn("shadow-xs-solid hover:shadow-sm-solid hover:focus-within:shadow-md-solid", "flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background", "disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xs-solid", "focus-within:shadow-md-solid focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:border-primary", s === "default" ? "h-6 w-full mb-1" : "h-4 w-full mb-0.5", s === "xs" && "text-xs", o.className), p = o.isDisabled, m = s === "default" ? "px-1.5" : "px-1", h;
5383
+ n[4] === m ? h = n[5] : (h = cn("flex-1", "w-full", "placeholder:text-muted-foreground", "outline-hidden", "disabled:cursor-not-allowed disabled:opacity-50", m), n[4] = m, n[5] = h);
5384
+ let _;
5385
+ n[6] !== i || n[7] !== o.isDisabled || n[8] !== t || n[9] !== h ? (_ = /* @__PURE__ */ (0, import_jsx_runtime.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, {
5386
5386
  ref: t,
5387
- disabled: m,
5388
- placeholder: r,
5387
+ disabled: p,
5388
+ placeholder: i,
5389
5389
  onKeyDown: _temp,
5390
- className: _
5391
- }), n[6] = r, n[7] = a.isDisabled, n[8] = t, n[9] = _, n[10] = v) : v = n[10];
5392
- let y = a.isDisabled, b = o === "xs" && "w-2 h-2", x;
5393
- n[11] === b ? x = n[12] : (x = cn("w-3 h-3 -mb-px", b), n[11] = b, n[12] = x);
5394
- let S;
5395
- n[13] === x ? S = n[14] : (S = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronUp, {
5396
- "aria-hidden": true,
5397
- className: x
5398
- }), n[13] = x, n[14] = S);
5390
+ className: h
5391
+ }), n[6] = i, n[7] = o.isDisabled, n[8] = t, n[9] = h, n[10] = _) : _ = n[10];
5392
+ let v = o.isDisabled, b = s === "xs" && "w-2 h-2", S;
5393
+ n[11] === b ? S = n[12] : (S = cn("w-3 h-3 -mb-px", b), n[11] = b, n[12] = S);
5399
5394
  let C;
5400
- n[15] !== a.isDisabled || n[16] !== S || n[17] !== o ? (C = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StepperButton, {
5401
- slot: "increment",
5402
- isDisabled: y,
5403
- variant: o,
5404
- children: S
5405
- }), n[15] = a.isDisabled, n[16] = S, n[17] = o, n[18] = C) : C = n[18];
5406
- let w;
5407
- n[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-px shrink-0 divider bg-border z-10" }), n[19] = w) : w = n[19];
5408
- let T = a.isDisabled, E = o === "xs" && "w-2 h-2", D;
5409
- n[20] === E ? D = n[21] : (D = cn("w-3 h-3 -mt-px", E), n[20] = E, n[21] = D);
5410
- let O;
5411
- n[22] === D ? O = n[23] : (O = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, {
5395
+ n[13] === S ? C = n[14] : (C = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronUp, {
5412
5396
  "aria-hidden": true,
5413
- className: D
5414
- }), n[22] = D, n[23] = O);
5397
+ className: S
5398
+ }), n[13] = S, n[14] = C);
5399
+ let w;
5400
+ n[15] !== o.isDisabled || n[16] !== C || n[17] !== s ? (w = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StepperButton, {
5401
+ slot: "increment",
5402
+ isDisabled: v,
5403
+ variant: s,
5404
+ children: C
5405
+ }), n[15] = o.isDisabled, n[16] = C, n[17] = s, n[18] = w) : w = n[18];
5406
+ let T;
5407
+ n[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-px shrink-0 divider bg-border z-10" }), n[19] = T) : T = n[19];
5408
+ let E = o.isDisabled, D = s === "xs" && "w-2 h-2", O;
5409
+ n[20] === D ? O = n[21] : (O = cn("w-3 h-3 -mt-px", D), n[20] = D, n[21] = O);
5415
5410
  let k;
5416
- n[24] !== a.isDisabled || n[25] !== O || n[26] !== o ? (k = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StepperButton, {
5417
- slot: "decrement",
5418
- isDisabled: T,
5419
- variant: o,
5420
- children: O
5421
- }), n[24] = a.isDisabled, n[25] = O, n[26] = o, n[27] = k) : k = n[27];
5411
+ n[22] === O ? k = n[23] : (k = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, {
5412
+ "aria-hidden": true,
5413
+ className: O
5414
+ }), n[22] = O, n[23] = k);
5422
5415
  let A;
5423
- n[28] !== C || n[29] !== k ? (A = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
5416
+ n[24] !== o.isDisabled || n[25] !== k || n[26] !== s ? (A = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StepperButton, {
5417
+ slot: "decrement",
5418
+ isDisabled: E,
5419
+ variant: s,
5420
+ children: k
5421
+ }), n[24] = o.isDisabled, n[25] = k, n[26] = s, n[27] = A) : A = n[27];
5422
+ let j;
5423
+ n[28] !== w || n[29] !== A ? (j = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
5424
5424
  className: "flex flex-col border-s-2",
5425
5425
  children: [
5426
- C,
5427
5426
  w,
5428
- k
5427
+ T,
5428
+ A
5429
5429
  ]
5430
- }), n[28] = C, n[29] = k, n[30] = A) : A = n[30];
5431
- let j;
5432
- n[31] !== A || n[32] !== f || n[33] !== v ? (j = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
5430
+ }), n[28] = w, n[29] = A, n[30] = j) : j = n[30];
5431
+ let M;
5432
+ n[31] !== j || n[32] !== f || n[33] !== _ ? (M = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
5433
5433
  className: f,
5434
- children: [v, A]
5435
- }), n[31] = A, n[32] = f, n[33] = v, n[34] = j) : j = n[34];
5434
+ children: [_, j]
5435
+ }), n[31] = j, n[32] = f, n[33] = _, n[34] = M) : M = n[34];
5436
5436
  let N;
5437
- return n[35] !== c || n[36] !== a || n[37] !== j || n[38] !== d ? (N = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(c, {
5438
- ...a,
5437
+ return n[35] !== l || n[36] !== o || n[37] !== M || n[38] !== d ? (N = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(l, {
5438
+ ...o,
5439
5439
  formatOptions: d,
5440
- children: j
5441
- }), n[35] = c, n[36] = a, n[37] = j, n[38] = d, n[39] = N) : N = n[39], N;
5440
+ children: M
5441
+ }), n[35] = l, n[36] = o, n[37] = M, n[38] = d, n[39] = N) : N = n[39], N;
5442
5442
  });
5443
5443
  NumberField.displayName = "NumberField";
5444
5444
  var StepperButton = (e4) => {
5445
- let t = (0, import_compiler_runtime$1.c)(6), n = !e4.isDisabled && "hover:text-primary hover:bg-muted", r = e4.variant === "default" ? "px-0.5" : "px-0.25", i;
5446
- t[0] !== n || t[1] !== r ? (i = cn("cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary", "disabled:cursor-not-allowed disabled:opacity-50", n, r), t[0] = n, t[1] = r, t[2] = i) : i = t[2];
5447
- let a;
5448
- return t[3] !== e4 || t[4] !== i ? (a = /* @__PURE__ */ (0, import_jsx_runtime.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
5445
+ let t = (0, import_compiler_runtime$1.c)(6), n = !e4.isDisabled && "hover:text-primary hover:bg-muted", i = e4.variant === "default" ? "px-0.5" : "px-0.25", a;
5446
+ t[0] !== n || t[1] !== i ? (a = cn("cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary", "disabled:cursor-not-allowed disabled:opacity-50", n, i), t[0] = n, t[1] = i, t[2] = a) : a = t[2];
5447
+ let o;
5448
+ return t[3] !== e4 || t[4] !== a ? (o = /* @__PURE__ */ (0, import_jsx_runtime.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
5449
5449
  ...e4,
5450
- className: i
5451
- }), t[3] = e4, t[4] = i, t[5] = a) : a = t[5], a;
5450
+ className: a
5451
+ }), t[3] = e4, t[4] = a, t[5] = o) : o = t[5], o;
5452
5452
  };
5453
5453
  function _temp(e4) {
5454
5454
  (e4.key === "ArrowUp" || e4.key === "ArrowDown") && e4.stopPropagation();
5455
5455
  }
5456
5456
  var import_compiler_runtime = require_compiler_runtime(), Input = import_react.forwardRef((e4, t) => {
5457
- let n = (0, import_compiler_runtime.c)(28), r, i, a, o, s, c, l;
5457
+ let n = (0, import_compiler_runtime.c)(28), a, o, s, c, l, u, d;
5458
5458
  if (n[0] !== t || n[1] !== e4) {
5459
- c = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
5459
+ u = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
5460
5460
  bb0: {
5461
- if ({ className: r, type: l, endAdornment: i, ...o } = e4, a = o.icon, l === "hidden") {
5462
- c = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
5461
+ if ({ className: a, type: d, endAdornment: o, ...c } = e4, s = c.icon, d === "hidden") {
5462
+ u = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
5463
5463
  type: "hidden",
5464
5464
  ref: t,
5465
- ...o
5465
+ ...c
5466
5466
  });
5467
5467
  break bb0;
5468
5468
  }
5469
- s = cn("relative", o.rootClassName);
5469
+ l = cn("relative", c.rootClassName);
5470
5470
  }
5471
- n[0] = t, n[1] = e4, n[2] = r, n[3] = i, n[4] = a, n[5] = o, n[6] = s, n[7] = c, n[8] = l;
5472
- } else r = n[2], i = n[3], a = n[4], o = n[5], s = n[6], c = n[7], l = n[8];
5473
- if (c !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return c;
5474
- let u;
5475
- n[9] === a ? u = n[10] : (u = a && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
5471
+ n[0] = t, n[1] = e4, n[2] = a, n[3] = o, n[4] = s, n[5] = c, n[6] = l, n[7] = u, n[8] = d;
5472
+ } else a = n[2], o = n[3], s = n[4], c = n[5], l = n[6], u = n[7], d = n[8];
5473
+ if (u !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return u;
5474
+ let f;
5475
+ n[9] === s ? f = n[10] : (f = s && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
5476
5476
  className: "absolute inset-y-0 left-0 flex items-center pl-[6px] pointer-events-none text-muted-foreground",
5477
- children: a
5478
- }), n[9] = a, n[10] = u);
5479
- let d = a && "pl-7", f = i && "pr-10", p;
5480
- n[11] !== r || n[12] !== d || n[13] !== f ? (p = cn("shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid", "flex h-6 w-full mb-1 rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50", d, f, r), n[11] = r, n[12] = d, n[13] = f, n[14] = p) : p = n[14];
5481
- let m;
5482
- n[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = Events.stopPropagation(), n[15] = m) : m = n[15];
5483
- let h;
5484
- n[16] !== o || n[17] !== t || n[18] !== p || n[19] !== l ? (h = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
5485
- type: l,
5486
- className: p,
5487
- ref: t,
5488
- onClick: m,
5489
- ...o
5490
- }), n[16] = o, n[17] = t, n[18] = p, n[19] = l, n[20] = h) : h = n[20];
5477
+ children: s
5478
+ }), n[9] = s, n[10] = f);
5479
+ let p = s && "pl-7", m = o && "pr-10", h;
5480
+ n[11] !== a || n[12] !== p || n[13] !== m ? (h = cn("shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid", "flex h-6 w-full mb-1 rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50", p, m, a), n[11] = a, n[12] = p, n[13] = m, n[14] = h) : h = n[14];
5491
5481
  let g;
5492
- n[21] === i ? g = n[22] : (g = i && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
5493
- className: "absolute inset-y-0 right-0 flex items-center pr-[6px] text-muted-foreground h-6",
5494
- children: i
5495
- }), n[21] = i, n[22] = g);
5482
+ n[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = Events.stopPropagation(), n[15] = g) : g = n[15];
5496
5483
  let _;
5497
- return n[23] !== s || n[24] !== u || n[25] !== h || n[26] !== g ? (_ = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
5498
- className: s,
5484
+ n[16] !== c || n[17] !== t || n[18] !== h || n[19] !== d ? (_ = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
5485
+ type: d,
5486
+ className: h,
5487
+ ref: t,
5488
+ onClick: g,
5489
+ ...c
5490
+ }), n[16] = c, n[17] = t, n[18] = h, n[19] = d, n[20] = _) : _ = n[20];
5491
+ let v;
5492
+ n[21] === o ? v = n[22] : (v = o && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
5493
+ className: "absolute inset-y-0 right-0 flex items-center pr-[6px] text-muted-foreground h-6",
5494
+ children: o
5495
+ }), n[21] = o, n[22] = v);
5496
+ let y;
5497
+ return n[23] !== l || n[24] !== f || n[25] !== _ || n[26] !== v ? (y = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
5498
+ className: l,
5499
5499
  children: [
5500
- u,
5501
- h,
5502
- g
5500
+ f,
5501
+ _,
5502
+ v
5503
5503
  ]
5504
- }), n[23] = s, n[24] = u, n[25] = h, n[26] = g, n[27] = _) : _ = n[27], _;
5504
+ }), n[23] = l, n[24] = f, n[25] = _, n[26] = v, n[27] = y) : y = n[27], y;
5505
5505
  });
5506
5506
  Input.displayName = "Input";
5507
5507
  const DebouncedInput = import_react.forwardRef((e4, t) => {
@@ -5544,24 +5544,24 @@ const DebouncedNumberInput = import_react.forwardRef((e4, t) => {
5544
5544
  }), n[7] = r, n[8] = c, n[9] = a, n[10] = t, n[11] = s, n[12] = l) : l = n[12], l;
5545
5545
  });
5546
5546
  DebouncedNumberInput.displayName = "DebouncedNumberInput";
5547
- const SearchInput = import_react.forwardRef(({ className: e4, rootClassName: t, icon: n = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), clearable: r = true, ...i }, a) => {
5548
- let o = import_react.useId(), s = i.id || o;
5547
+ const SearchInput = import_react.forwardRef(({ className: e4, rootClassName: t, icon: n = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), clearable: i = true, ...a }, o) => {
5548
+ let s = import_react.useId(), c = a.id || s;
5549
5549
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
5550
5550
  className: cn("flex items-center border-b px-3", t),
5551
5551
  children: [
5552
5552
  n,
5553
5553
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
5554
- id: s,
5555
- ref: a,
5554
+ id: c,
5555
+ ref: o,
5556
5556
  className: cn("placeholder:text-foreground-muted flex h-7 m-1 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e4),
5557
- ...i
5557
+ ...a
5558
5558
  }),
5559
- r && i.value && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
5559
+ i && a.value && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
5560
5560
  onPointerDown: (e5) => {
5561
5561
  var _a2;
5562
5562
  e5.preventDefault(), e5.stopPropagation();
5563
- let t2 = document.getElementById(s);
5564
- t2 && t2 instanceof HTMLInputElement && (t2.focus(), t2.value = "", (_a2 = i.onChange) == null ? void 0 : _a2.call(i, {
5563
+ let t2 = document.getElementById(c);
5564
+ t2 && t2 instanceof HTMLInputElement && (t2.focus(), t2.value = "", (_a2 = a.onChange) == null ? void 0 : _a2.call(a, {
5565
5565
  ...e5,
5566
5566
  target: t2,
5567
5567
  currentTarget: t2,