@marimo-team/islands 0.19.12-dev1 → 0.20.0

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 (202) hide show
  1. package/dist/Combination-Du-o_hC9.js +11897 -0
  2. package/dist/{ConnectedDataExplorerComponent-CkXO-pKy.js → ConnectedDataExplorerComponent-BMiGWK57.js} +19 -18
  3. package/dist/{_baseIsEqual-CBSjxu-D.js → _baseIsEqual-DN5YkPnl.js} +1 -1
  4. package/dist/{_baseProperty-BVGrW_NZ.js → _baseProperty-6juuyX7Z.js} +5 -5
  5. package/dist/{_baseUniq-4lqa8rDi.js → _baseUniq-BlF21ach.js} +1 -1
  6. package/dist/{any-language-editor-t_VsTNa-.js → any-language-editor-1OMbohwD.js} +19 -19
  7. package/dist/architecture-U656AL7Q-Jd2CvPgJ.js +6 -0
  8. package/dist/{architectureDiagram-VXUJARFQ-DmJQhcJb.js → architectureDiagram-VXUJARFQ-DhN0C3Xf.js} +15 -15
  9. package/dist/{blockDiagram-VD42YOAC-CRofISJs.js → blockDiagram-VD42YOAC-DrBkIcbV.js} +7 -7
  10. package/dist/{button-Cy0ElmIm.js → button-KYalaJYu.js} +783 -200
  11. package/dist/{c4Diagram-YG6GDRKO-Deqoag4I.js → c4Diagram-YG6GDRKO-pWt4zmu0.js} +4 -4
  12. package/dist/{channel-CMsnebrL.js → channel-C56Jz8EL.js} +1 -1
  13. package/dist/{check-DkNR52Mm.js → check-C50jsehH.js} +1 -1
  14. package/dist/{chunk-76Q3JFCE-jPuajZH_.js → chunk-76Q3JFCE-CQ6a2yGJ.js} +1 -1
  15. package/dist/{chunk-ABZYJK2D-BGWvKte3.js → chunk-ABZYJK2D-BwNsaa1P.js} +1 -1
  16. package/dist/{chunk-ATLVNIR6-BYZB6C5T.js → chunk-ATLVNIR6-DtFMAawc.js} +1 -1
  17. package/dist/{chunk-B4BG7PRW-CwYUp6Uj.js → chunk-B4BG7PRW-lfWcLlzS.js} +4 -4
  18. package/dist/{chunk-DI55MBZ5-Gyro6dvN.js → chunk-DI55MBZ5-RhhAimfG.js} +4 -4
  19. package/dist/{chunk-EXTU4WIE-BlA7aWEw.js → chunk-EXTU4WIE-Bmo660a9.js} +1 -1
  20. package/dist/{chunk-FPAJGGOC-CduL34ft.js → chunk-FPAJGGOC-quWdfNUB.js} +7 -7
  21. package/dist/{chunk-FWNWRKHM-C-2TI4gt.js → chunk-FWNWRKHM-DmrwhAQr.js} +1 -1
  22. package/dist/{chunk-JA3XYJ7Z-Cm-pccR-.js → chunk-JA3XYJ7Z-n8UTzfok.js} +2 -2
  23. package/dist/{chunk-JZLCHNYA-CoLqqXMe.js → chunk-JZLCHNYA-ChKqHUdB.js} +4 -4
  24. package/dist/{chunk-LBM3YZW2-DWgQiioW.js → chunk-LBM3YZW2-BkxsqkNK.js} +1 -1
  25. package/dist/{chunk-LHMN2FUI-Dj_AHSvI.js → chunk-LHMN2FUI-CgYPnxfN.js} +1 -1
  26. package/dist/{chunk-N4CR4FBY-ByLbY9L-.js → chunk-N4CR4FBY-BxOHGL3P.js} +5 -5
  27. package/dist/{chunk-O7ZBX7Z2-CRZ8i1rP.js → chunk-O7ZBX7Z2-CdpLwOP0.js} +1 -1
  28. package/dist/{chunk-QN33PNHL-eodIiY9F.js → chunk-QN33PNHL-Dda-55xY.js} +1 -1
  29. package/dist/{chunk-QXUST7PY-CuJlDW6A.js → chunk-QXUST7PY-ClIEpoCT.js} +5 -5
  30. package/dist/{chunk-S3R3BYOJ-CwDGYMVf.js → chunk-S3R3BYOJ-C_1SJcWo.js} +3 -3
  31. package/dist/{chunk-S6J4BHB3-DNVMr0_v.js → chunk-S6J4BHB3-zfWjyfUg.js} +1 -1
  32. package/dist/{chunk-T53DSG4Q-BFWkpOX5.js → chunk-T53DSG4Q-Bewz1tiU.js} +1 -1
  33. package/dist/{chunk-TZMSLE5B-DFDr5FCr.js → chunk-TZMSLE5B-XW3duOft.js} +1 -1
  34. package/dist/{classDiagram-2ON5EDUG-BDBX9etk.js → classDiagram-2ON5EDUG-CUJlS_eo.js} +10 -10
  35. package/dist/{classDiagram-v2-WZHVMYZB-Bzj_L_BF.js → classDiagram-v2-WZHVMYZB-BhSPpbkE.js} +10 -10
  36. package/dist/{clone-Cc_6PW77.js → clone-V9hndNcj.js} +1 -1
  37. package/dist/{constants-DrOu5vvd.js → constants-BGRTDzdW.js} +2 -2
  38. package/dist/{copy-DRaXIb_a.js → copy-oc-FcZzt.js} +2 -2
  39. package/dist/{dagre-6UL2VRFP-r2rSdJYL.js → dagre-6UL2VRFP-BArPH353.js} +11 -11
  40. package/dist/{dagre-D2F8UdM6.js → dagre-Dcgyn_Uy.js} +15 -15
  41. package/dist/{diagram-PSM6KHXK-BpxVUe9U.js → diagram-PSM6KHXK-B1xAkr9y.js} +16 -16
  42. package/dist/{diagram-QEK2KX5R-q3dHUcp6.js → diagram-QEK2KX5R-CaoqwzPb.js} +14 -14
  43. package/dist/{diagram-S2PKOQOG-MDBKrxSC.js → diagram-S2PKOQOG-NXCsFLvR.js} +14 -14
  44. package/dist/dist-B8Y11RWn.js +1381 -0
  45. package/dist/dist-BA-HK7pI.js +5 -0
  46. package/dist/dist-BD5GU948.js +5 -0
  47. package/dist/{dist-BfactX3G.js → dist-BGzkWRSl.js} +4 -4
  48. package/dist/dist-BIYmAsND.js +5 -0
  49. package/dist/{dist-CmZYrgd_.js → dist-BUEi7EKT.js} +1 -1
  50. package/dist/{dist-B94MxrQS.js → dist-B_i29Q6L.js} +2 -2
  51. package/dist/dist-BcKTJXJi.js +5 -0
  52. package/dist/dist-BgnrtcWg.js +8 -0
  53. package/dist/{dist-glA_fIK_.js → dist-BoagoQQw.js} +2 -2
  54. package/dist/{dist-C2-m5aEk.js → dist-BswsDM4k.js} +2 -2
  55. package/dist/dist-C1njTlBq.js +5 -0
  56. package/dist/{dist-B2-r9y-0.js → dist-C5QB1NtD.js} +3 -3
  57. package/dist/{dist-Crk9ejOy.js → dist-CD7uLx0M.js} +2 -2
  58. package/dist/{dist-B4tYJP_i.js → dist-CMOy93xY.js} +2 -2
  59. package/dist/dist-CSKHwJYH.js +5 -0
  60. package/dist/dist-CSKKyiIq.js +5 -0
  61. package/dist/{dist-iiugPhCC.js → dist-C_9IMrtt.js} +1 -1
  62. package/dist/{dist-CE43BRmt.js → dist-Cb3iqED3.js} +1 -1
  63. package/dist/{dist-Dit9tk8a.js → dist-CoZ8kKKW.js} +1 -1
  64. package/dist/{dist-B5ATpkxy.js → dist-CrAYcS_4.js} +2 -2
  65. package/dist/dist-CrQ_pOuK.js +6 -0
  66. package/dist/dist-Cskx1daf.js +5 -0
  67. package/dist/dist-D4i0Ef34.js +8 -0
  68. package/dist/{dist-T4g7Sr6e.js → dist-D8EhXZ4S.js} +3 -3
  69. package/dist/{dist-CJrHMxlI.js → dist-DOLQQtWK.js} +3 -3
  70. package/dist/dist-DOcn61TX.js +8 -0
  71. package/dist/{dist-DqJdzAYM.js → dist-Dmr_nXF6.js} +2 -2
  72. package/dist/{dist-yVJ4xE5n.js → dist-DpAbrLuF.js} +5 -5
  73. package/dist/{dist-CcOGT46m.js → dist-DrC0QKFK.js} +1 -1
  74. package/dist/{dist-BYmtF1W6.js → dist-Dv2Phbh5.js} +2 -2
  75. package/dist/dist-DwMejAPB.js +6 -0
  76. package/dist/dist-DzSe1wby.js +8 -0
  77. package/dist/{dist-BbBnU4tG.js → dist-EZFqUJhh.js} +1 -1
  78. package/dist/{dist-Cgf353Ki.js → dist-Ey9hP8-j.js} +1 -1
  79. package/dist/{dist-BLwfpZD-.js → dist-IlWGXVjO.js} +2 -2
  80. package/dist/{dist-DOil6y-3.js → dist-LNp8svLl.js} +4 -4
  81. package/dist/{dist-CPTE45iS.js → dist-W6TdeACj.js} +1 -1
  82. package/dist/{dist-Dc1SFk5I.js → dist-a6Obzr07.js} +2 -2
  83. package/dist/{dist-Bsv_ARko.js → dist-bz6WguLy.js} +2 -2
  84. package/dist/{dist-CC9VUnXd.js → dist-iDeoXzdN.js} +1 -1
  85. package/dist/{dist-BoAHOW2l.js → dist-iyBCcLRa.js} +2 -2
  86. package/dist/{dist-CkEUrAus.js → dist-xCB683Dh.js} +2 -2
  87. package/dist/{erDiagram-Q2GNP2WA-CX1XdqVD.js → erDiagram-Q2GNP2WA-DWCa11g5.js} +10 -10
  88. package/dist/error-banner-vCG-EbUQ.js +619 -0
  89. package/dist/{esm-BAS2d2Ad.js → esm-DZSk8vt3.js} +27 -27
  90. package/dist/{flatten-eGRGXrC3.js → flatten-CWZjF1fc.js} +1 -1
  91. package/dist/{flowDiagram-NV44I4VS-BCj-ONTw.js → flowDiagram-NV44I4VS-BQ5PQs4L.js} +10 -10
  92. package/dist/{ganttDiagram-JELNMOA3-D1l5ewiQ.js → ganttDiagram-JELNMOA3-NTOuNWeT.js} +3 -3
  93. package/dist/{gitGraph-F6HP7TQM-CDM3aU-T.js → gitGraph-F6HP7TQM-DfRNsaDw.js} +3 -3
  94. package/dist/{gitGraphDiagram-NY62KEGX-KdZh0iiW.js → gitGraphDiagram-NY62KEGX-CYke62Ot.js} +13 -13
  95. package/dist/{glide-data-editor-2RvcPqmc.js → glide-data-editor-DttqGjrT.js} +571 -572
  96. package/dist/{graphlib-7UgfJadv.js → graphlib-CwMnCnQ9.js} +8 -8
  97. package/dist/{info-NVLQJR56-CoL1x1Fy.js → info-NVLQJR56-CUaoPtis.js} +3 -3
  98. package/dist/{infoDiagram-WHAUD3N6-PSH7lQ0D.js → infoDiagram-WHAUD3N6-B42WjAPh.js} +13 -13
  99. package/dist/{isEmpty-DQXRKNtW.js → isEmpty-6z2uv6gM.js} +2 -2
  100. package/dist/{isString-Clqvtgmo.js → isString-D6abkXrl.js} +1 -1
  101. package/dist/{isSymbol-TWXhTa8k.js → isSymbol-hk7foJ70.js} +1 -1
  102. package/dist/{journeyDiagram-XKPGCS4Q-BrTAxQ1J.js → journeyDiagram-XKPGCS4Q-ahXD97kr.js} +3 -3
  103. package/dist/{kanban-definition-3W4ZIXB7-BoYCDp_9.js → kanban-definition-3W4ZIXB7-CiTIpnhy.js} +7 -7
  104. package/dist/{label-CxU5JNBW.js → label-Cc5tEavt.js} +250 -250
  105. package/dist/{loader-C0-eIoas.js → loader-Cob3XFOw.js} +2 -2
  106. package/dist/main.js +1791 -1056
  107. package/dist/{memoize-Bag7B41I.js → memoize-Ckyqzyu_.js} +1 -1
  108. package/dist/{merge-Dl1bfxsj.js → merge-Db4Uulx4.js} +1 -1
  109. package/dist/{mermaid-C2cSe5YL.js → mermaid-B5xl_2hx.js} +73 -62
  110. package/dist/{mermaid-parser.core-D20zFbMa.js → mermaid-parser.core-BXj7Il0J.js} +8 -8
  111. package/dist/{min-Bg4bqmiD.js → min-ypdVXicC.js} +4 -4
  112. package/dist/{mindmap-definition-VGOIOE7T-CmRjsKEt.js → mindmap-definition-VGOIOE7T-Mni766A_.js} +9 -9
  113. package/dist/{now-mivqkCIv.js → now-Dwu5ou19.js} +2 -2
  114. package/dist/{once-BqS42WgZ.js → once-C9dA9qgQ.js} +1 -1
  115. package/dist/{packet-BFZMPI3H-C6aZmgV-.js → packet-BFZMPI3H-DHtQCusE.js} +3 -3
  116. package/dist/{pie-7BOR55EZ-NB6xYwcB.js → pie-7BOR55EZ-2sVLYbpR.js} +3 -3
  117. package/dist/{pieDiagram-ADFJNKIX-CtxQlnsU.js → pieDiagram-ADFJNKIX-PbXpgT8_.js} +14 -14
  118. package/dist/{quadrantDiagram-AYHSOK5B-DllnB2Hl.js → quadrantDiagram-AYHSOK5B-BtXGnx8i.js} +2 -2
  119. package/dist/{radar-NHE76QYJ-RKhErikV.js → radar-NHE76QYJ-Be0pEUux.js} +3 -3
  120. package/dist/{range-LoQMRQIX.js → range-D9jxVFd_.js} +5 -5
  121. package/dist/{reduce-B9mZDxPo.js → reduce-C6NEPj6s.js} +4 -4
  122. package/dist/{requirementDiagram-UZGBJVZJ-D36MI1k0.js → requirementDiagram-UZGBJVZJ-DxzXQRgq.js} +9 -9
  123. package/dist/{sankeyDiagram-TZEHDZUN-D1mygNPC.js → sankeyDiagram-TZEHDZUN-D-I7dJ0_.js} +2 -2
  124. package/dist/{sequenceDiagram-WL72ISMW-CWdn91Rf.js → sequenceDiagram-WL72ISMW-VDme2ljw.js} +4 -4
  125. package/dist/{slides-component-DfwLApNr.js → slides-component-ql7-5GDI.js} +2 -2
  126. package/dist/{spec-HoYHAQo2.js → spec-GwhMEXwK.js} +8 -9
  127. package/dist/{stateDiagram-FKZM4ZOC-CPxroWXd.js → stateDiagram-FKZM4ZOC-g3GI1EcK.js} +12 -12
  128. package/dist/{stateDiagram-v2-4FDKWEC3-BpM9Q54b.js → stateDiagram-v2-4FDKWEC3-7i6jBXe6.js} +10 -10
  129. package/dist/stex-D2rme5UG.js +4 -0
  130. package/dist/style.css +1 -1
  131. package/dist/{timeline-definition-IT6M3QCI-CVnRHx_t.js → timeline-definition-IT6M3QCI-bhvLlX_b.js} +2 -2
  132. package/dist/{toString-C4TLO6FA.js → toString-BwTJvlyD.js} +2 -2
  133. package/dist/tooltip-CL8m4f9y.js +404 -0
  134. package/dist/{treemap-KMMF4GRG-B37ugcLd.js → treemap-KMMF4GRG-Ba9ifjpG.js} +3 -3
  135. package/dist/{types-Ckva8JJq.js → types-Dsh6yC4B.js} +412 -413
  136. package/dist/{useAsyncData-dr8GazGv.js → useAsyncData-BPpyKjTJ.js} +2 -2
  137. package/dist/{useDeepCompareMemoize-ChviuF5n.js → useDeepCompareMemoize-C8Ms87P-.js} +18 -19
  138. package/dist/{useIframeCapabilities-DurI5SJh.js → useIframeCapabilities-C7z8VrZ1.js} +2 -2
  139. package/dist/{useTheme-SlKl8MlS.js → useTheme-Cq-gIssy.js} +299 -300
  140. package/dist/{vega-component-CnG0vAjf.js → vega-component-B5sxdjMq.js} +10 -10
  141. package/dist/{xychartDiagram-PRI3JC2R-BltwMWKC.js → xychartDiagram-PRI3JC2R-CFxuifYY.js} +5 -5
  142. package/package.json +1 -1
  143. package/src/components/editor/Output.tsx +8 -6
  144. package/src/components/editor/__tests__/Output.test.tsx +59 -0
  145. package/src/components/editor/chrome/__tests__/state.test.ts +321 -0
  146. package/src/components/editor/chrome/state.ts +27 -2
  147. package/src/components/editor/file-tree/upload.tsx +46 -23
  148. package/src/components/editor/links/cell-link.tsx +3 -2
  149. package/src/components/editor/output/console/ConsoleOutput.tsx +13 -3
  150. package/src/components/pages/gallery-page.tsx +1 -1
  151. package/src/components/pages/home-page.tsx +5 -3
  152. package/src/components/tracing/tracing.tsx +50 -39
  153. package/src/core/documentation/DocHoverTarget.tsx +23 -0
  154. package/src/core/documentation/doc-lookup.ts +50 -0
  155. package/src/core/islands/main.ts +1 -0
  156. package/src/core/websocket/useMarimoKernelConnection.tsx +3 -0
  157. package/src/css/app/Cell.css +5 -0
  158. package/src/mount.tsx +2 -2
  159. package/src/plugins/core/RenderHTML.tsx +15 -0
  160. package/src/plugins/core/__test__/registerReactComponent.test.ts +204 -0
  161. package/src/plugins/core/registerReactComponent.tsx +33 -0
  162. package/src/plugins/impl/MatrixPlugin.tsx +275 -0
  163. package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +415 -0
  164. package/src/plugins/impl/anywidget/model.ts +1 -2
  165. package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +70 -0
  166. package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +152 -0
  167. package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +781 -0
  168. package/src/plugins/impl/matrix.css +45 -0
  169. package/src/plugins/layout/mermaid/mermaid.tsx +11 -3
  170. package/src/plugins/plugins.ts +4 -0
  171. package/src/utils/__tests__/download.test.tsx +47 -0
  172. package/src/utils/download.ts +13 -1
  173. package/src/utils/links.ts +1 -1
  174. package/src/utils/urls.ts +1 -1
  175. package/dist/Combination-BTMrlhzT.js +0 -2611
  176. package/dist/architecture-U656AL7Q-COfwZju8.js +0 -6
  177. package/dist/dist-4YNZxwMI.js +0 -8
  178. package/dist/dist-7nR3r2kG.js +0 -5
  179. package/dist/dist-B2gkyT3r.js +0 -5
  180. package/dist/dist-B8G3I6vJ.js +0 -8
  181. package/dist/dist-BJ96Ykfp.js +0 -8
  182. package/dist/dist-BKLIWGw4.js +0 -5
  183. package/dist/dist-Bf3ou00A.js +0 -6
  184. package/dist/dist-BvkKXuPm.js +0 -5
  185. package/dist/dist-C6NJ3n6r.js +0 -5
  186. package/dist/dist-CecLPYY5.js +0 -5
  187. package/dist/dist-Ch0SwRzK.js +0 -5
  188. package/dist/dist-D6eWHiFh.js +0 -6
  189. package/dist/dist-DCQ710Bv.js +0 -5
  190. package/dist/dist-P_pkS5f-.js +0 -8
  191. package/dist/error-banner-D2zjeN_a.js +0 -1015
  192. package/dist/hotkeys-B5WnGZXF.js +0 -587
  193. package/dist/stex-ChDHQs3R.js +0 -4
  194. package/dist/zod-bjADtMKr.js +0 -10663
  195. /package/dist/{_arrayReduce-DlK7U3Q6.js → _arrayReduce-REKcIEj3.js} +0 -0
  196. /package/dist/{_baseFor-DSVmVciX.js → _baseFor-B69PDbIz.js} +0 -0
  197. /package/dist/{_hasUnicode-Bz2x6u6r.js → _hasUnicode-DrSAc5A5.js} +0 -0
  198. /package/dist/{dist-r8ecBV-v.js → dist-CUOuFgHt.js} +0 -0
  199. /package/dist/{invariant-D9QLJ4SZ.js → invariant-D-K49MfV.js} +0 -0
  200. /package/dist/{main-DhFbkwoC.js → main-DmxVpB19.js} +0 -0
  201. /package/dist/{purify.es-Brw-U87Q.js → purify.es-D4vaFt5N.js} +0 -0
  202. /package/dist/{stex-DrxP7bb3.js → stex-DIvyJfNO.js} +0 -0
@@ -5,18 +5,18 @@ var _a;
5
5
  import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
6
6
  import { t as require_react } from "./react-Bs6Z0kvn.js";
7
7
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
8
- import { D as dispatchDiscreteCustomEvent, E as Primitive, M as composeEventHandlers, N as createLucideIcon, O as createSlot, S as useId, T as useCallbackRef, _ as Arrow, b as createPopperScope, c as withSmartCollisionBoundary, g as Anchor, h as Portal, i as useFocusGuards, j as createContextScope, m as Presence, n as hideOthers, o as MAX_HEIGHT_OFFSET, p as useControllableState, r as FocusScope, s as withFullScreenAsRoot, t as Combination_default, u as StyleNamespace, v as Content, w as DismissableLayer, y as Root2$1 } from "./Combination-BTMrlhzT.js";
9
- import { t as Check } from "./check-DkNR52Mm.js";
10
- import { A as $a916eb452884faea$export$b7a616150fdb9f44, C as useDirection, F as $b5e257d569688ac6$export$619500959fc48b26, I as X, L as ChevronUp, M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, R as ChevronDown, _ as menuItemVariants, b as menuSubTriggerVariants, g as menuControlVariants, h as menuControlCheckVariants, j as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, k as upperFirst_default, m as menuContentCommon, v as menuLabelVariants, w as createCollection, y as menuSeparatorVariants } from "./label-CxU5JNBW.js";
8
+ import { a as Content, i as Arrow, l as createLucideIcon, o as Root2$1, r as Anchor, s as createPopperScope } from "./dist-B8Y11RWn.js";
9
+ import { t as Check } from "./check-C50jsehH.js";
10
+ import { A as $a916eb452884faea$export$b7a616150fdb9f44, C as useDirection, F as $b5e257d569688ac6$export$619500959fc48b26, I as X, L as ChevronUp, M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, R as ChevronDown, _ as menuItemVariants, b as menuSubTriggerVariants, g as menuControlVariants, h as menuControlCheckVariants, j as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, k as upperFirst_default, m as menuContentCommon, v as menuLabelVariants, w as createCollection, y as menuSeparatorVariants } from "./label-Cc5tEavt.js";
11
11
  import { n as clsx_default } from "./clsx-D2KVTYnW.js";
12
- import { c as useComposedRefs, l as Events, s as composeRefs, t as Button, u as cn } from "./button-Cy0ElmIm.js";
13
- import { s as Logger } from "./hotkeys-B5WnGZXF.js";
12
+ import { g as Logger, h as Events, m as useComposedRefs, p as composeRefs, t as Button, y as cn } from "./button-KYalaJYu.js";
13
+ import { _t as createContextScope, at as useControllableState, ct as useId, dt as useCallbackRef, et as MAX_HEIGHT_OFFSET, ft as Primitive, i as useFocusGuards, it as StyleNamespace, mt as createSlot, n as hideOthers, nt as withSmartCollisionBoundary, ot as Presence, pt as dispatchDiscreteCustomEvent, r as FocusScope, st as Portal, t as Combination_default, tt as withFullScreenAsRoot, ut as DismissableLayer, vt as composeEventHandlers } from "./Combination-Du-o_hC9.js";
14
14
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
15
15
  import { t as require_react_dom } from "./react-dom-CqtLRVZP.js";
16
- import { h as useEvent_default } from "./useTheme-SlKl8MlS.js";
17
- import { t as toString_default } from "./toString-C4TLO6FA.js";
18
- import { i as debounce_default, n as Constants } from "./constants-DrOu5vvd.js";
19
- import { t as memoizeLastValue } from "./once-BqS42WgZ.js";
16
+ import { t as toString_default } from "./toString-BwTJvlyD.js";
17
+ import { i as debounce_default, n as Constants } from "./constants-BGRTDzdW.js";
18
+ import { C as useEvent_default } from "./useTheme-Cq-gIssy.js";
19
+ import { t as memoizeLastValue } from "./once-C9dA9qgQ.js";
20
20
  var ChevronRight = createLucideIcon("chevron-right", [["path", {
21
21
  d: "m9 18 6-6-6-6",
22
22
  key: "mthhwq"
@@ -1686,70 +1686,70 @@ function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(e4) {
1686
1686
  ]), 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({
1687
1687
  ...e4,
1688
1688
  value: d
1689
- }), S = r !== void 0 && !isNaN(r) ? r : 1;
1690
- y.style === "percent" && (r === void 0 || isNaN(r)) && (S = 0.01);
1691
- let [C, w] = (0, import_react.useState)(d), [T, E] = (0, import_react.useState)(c), [D, O] = (0, import_react.useState)(i);
1692
- (!Object.is(d, C) || c !== T || i !== D) && (h(b(d)), w(d), E(c), O(i));
1693
- let k = (0, import_react.useMemo)(() => g.parse(m), [g, m]), A = () => {
1689
+ }), C = r !== void 0 && !isNaN(r) ? r : 1;
1690
+ y.style === "percent" && (r === void 0 || isNaN(r)) && (C = 0.01);
1691
+ let [w, T] = (0, import_react.useState)(d), [E, D] = (0, import_react.useState)(c), [O, k] = (0, import_react.useState)(i);
1692
+ (!Object.is(d, w) || c !== E || i !== O) && (h(b(d)), T(d), D(c), k(i));
1693
+ let A = (0, import_react.useMemo)(() => g.parse(m), [g, m]), j = () => {
1694
1694
  if (!m.length) {
1695
1695
  f(NaN), h(a === void 0 ? "" : b(d));
1696
1696
  return;
1697
1697
  }
1698
- if (isNaN(k)) {
1698
+ if (isNaN(A)) {
1699
1699
  h(b(d));
1700
1700
  return;
1701
1701
  }
1702
1702
  let e5;
1703
- e5 = r === void 0 || isNaN(r) ? $9446cca9a3875146$export$7d15b64cf5a3a4c4(k, t, n) : $9446cca9a3875146$export$cb6e0bb50bc19463(k, t, n, r), e5 = g.parse(b(e5)), f(e5), h(b(a === void 0 ? e5 : d)), x.commitValidation();
1704
- }, j = (e5, r2 = 0) => {
1705
- let i2 = k;
1706
- if (isNaN(i2)) return $9446cca9a3875146$export$cb6e0bb50bc19463(isNaN(r2) ? 0 : r2, t, n, S);
1703
+ e5 = r === void 0 || isNaN(r) ? $9446cca9a3875146$export$7d15b64cf5a3a4c4(A, t, n) : $9446cca9a3875146$export$cb6e0bb50bc19463(A, t, n, r), e5 = g.parse(b(e5)), f(e5), h(b(a === void 0 ? e5 : d)), x.commitValidation();
1704
+ }, M = (e5, r2 = 0) => {
1705
+ let i2 = A;
1706
+ if (isNaN(i2)) return $9446cca9a3875146$export$cb6e0bb50bc19463(isNaN(r2) ? 0 : r2, t, n, C);
1707
1707
  {
1708
- let r3 = $9446cca9a3875146$export$cb6e0bb50bc19463(i2, t, n, S);
1709
- return e5 === "+" && r3 > i2 || e5 === "-" && r3 < i2 ? r3 : $9446cca9a3875146$export$cb6e0bb50bc19463($de67e98908f0c6ee$var$handleDecimalOperation(e5, i2, S), t, n, S);
1708
+ let r3 = $9446cca9a3875146$export$cb6e0bb50bc19463(i2, t, n, C);
1709
+ return e5 === "+" && r3 > i2 || e5 === "-" && r3 < i2 ? r3 : $9446cca9a3875146$export$cb6e0bb50bc19463($de67e98908f0c6ee$var$handleDecimalOperation(e5, i2, C), t, n, C);
1710
1710
  }
1711
- }, M = () => {
1712
- let e5 = j("+", t);
1713
- e5 === d && h(b(e5)), f(e5), x.commitValidation();
1714
1711
  }, N = () => {
1715
- let e5 = j("-", n);
1712
+ let e5 = M("+", t);
1716
1713
  e5 === d && h(b(e5)), f(e5), x.commitValidation();
1717
1714
  }, P = () => {
1718
- n != null && (f($9446cca9a3875146$export$cb6e0bb50bc19463(n, t, n, S)), x.commitValidation());
1715
+ let e5 = M("-", n);
1716
+ e5 === d && h(b(e5)), f(e5), x.commitValidation();
1719
1717
  }, F = () => {
1718
+ n != null && (f($9446cca9a3875146$export$cb6e0bb50bc19463(n, t, n, C)), x.commitValidation());
1719
+ }, I = () => {
1720
1720
  t != null && (f(t), x.commitValidation());
1721
- }, I = (0, import_react.useMemo)(() => !l && !u && (isNaN(k) || n === void 0 || isNaN(n) || $9446cca9a3875146$export$cb6e0bb50bc19463(k, t, n, S) > k || $de67e98908f0c6ee$var$handleDecimalOperation("+", k, S) <= n), [
1721
+ }, 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), [
1722
1722
  l,
1723
1723
  u,
1724
1724
  t,
1725
1725
  n,
1726
- S,
1727
- k
1728
- ]), L = (0, import_react.useMemo)(() => !l && !u && (isNaN(k) || t === void 0 || isNaN(t) || $9446cca9a3875146$export$cb6e0bb50bc19463(k, t, n, S) < k || $de67e98908f0c6ee$var$handleDecimalOperation("-", k, S) >= t), [
1726
+ C,
1727
+ A
1728
+ ]), R = (0, import_react.useMemo)(() => !l && !u && (isNaN(A) || t === void 0 || isNaN(t) || $9446cca9a3875146$export$cb6e0bb50bc19463(A, t, n, C) < A || $de67e98908f0c6ee$var$handleDecimalOperation("-", A, C) >= t), [
1729
1729
  l,
1730
1730
  u,
1731
1731
  t,
1732
1732
  n,
1733
- S,
1734
- k
1735
- ]), R = (e5) => g.isValidPartialNumber(e5, t, n);
1733
+ C,
1734
+ A
1735
+ ]), z = (e5) => g.isValidPartialNumber(e5, t, n);
1736
1736
  return {
1737
1737
  ...x,
1738
- validate: R,
1739
- increment: M,
1740
- incrementToMax: P,
1741
- decrement: N,
1742
- decrementToMin: F,
1743
- canIncrement: I,
1744
- canDecrement: L,
1738
+ validate: z,
1739
+ increment: N,
1740
+ incrementToMax: F,
1741
+ decrement: P,
1742
+ decrementToMin: I,
1743
+ canIncrement: L,
1744
+ canDecrement: R,
1745
1745
  minValue: t,
1746
1746
  maxValue: n,
1747
- numberValue: k,
1747
+ numberValue: A,
1748
1748
  defaultNumberValue: isNaN(o) ? p : o,
1749
1749
  setNumberValue: f,
1750
1750
  setInputValue: h,
1751
1751
  inputValue: m,
1752
- commit: A
1752
+ commit: j
1753
1753
  };
1754
1754
  }
1755
1755
  function $de67e98908f0c6ee$var$handleDecimalOperation(e4, t, n) {
@@ -2335,11 +2335,11 @@ function $parcel$interopDefault(e4) {
2335
2335
  return e4 && e4.__esModule ? e4.default : e4;
2336
2336
  }
2337
2337
  function $81397a9303501bda$export$23f548e970bdf099(e4, t, n) {
2338
- 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 = () => {
2339
- }, 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: k, commitValidation: j } = t, M = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($280a227d7cb94b92$exports), "@react-aria/numberfield"), N = $bdb11010cef70236$export$f680877a34711e37(r), { focusProps: P } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({ onBlur() {
2340
- k();
2341
- } }), F = $a916eb452884faea$export$b7a616150fdb9f44(p), I = (0, import_react.useMemo)(() => F.resolvedOptions(), [F]), L = $a916eb452884faea$export$b7a616150fdb9f44({
2342
- ...p,
2338
+ let { id: r, decrementAriaLabel: i, incrementAriaLabel: a, isDisabled: o, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: f, label: p, formatOptions: m, onBlur: h = () => {
2339
+ }, onFocus: g, onFocusChange: _, onKeyDown: v, onKeyUp: y, description: b, errorMessage: x, isWheelDisabled: S, ...C } = 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 = $bdb11010cef70236$export$f680877a34711e37(r), { focusProps: P } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({ onBlur() {
2340
+ A();
2341
+ } }), F = $a916eb452884faea$export$b7a616150fdb9f44(m), I = (0, import_react.useMemo)(() => F.resolvedOptions(), [F]), L = $a916eb452884faea$export$b7a616150fdb9f44({
2342
+ ...m,
2343
2343
  currencySign: void 0
2344
2344
  }), { spinButtonProps: R, incrementButtonProps: z, decrementButtonProps: B } = $d2e8511e6f209edf$export$e908e06f4b8e3402({
2345
2345
  isDisabled: o,
@@ -2347,41 +2347,41 @@ function $81397a9303501bda$export$23f548e970bdf099(e4, t, n) {
2347
2347
  isRequired: c,
2348
2348
  maxValue: u,
2349
2349
  minValue: l,
2350
- onIncrement: C,
2351
- onIncrementToMax: w,
2352
- onDecrement: T,
2353
- onDecrementToMin: E,
2354
- value: D,
2355
- textValue: (0, import_react.useMemo)(() => isNaN(D) ? "" : L.format(D), [L, D])
2350
+ onIncrement: w,
2351
+ onIncrementToMax: T,
2352
+ onDecrement: E,
2353
+ onDecrementToMin: D,
2354
+ value: O,
2355
+ textValue: (0, import_react.useMemo)(() => isNaN(O) ? "" : L.format(O), [L, O])
2356
2356
  }), [cd, ld] = (0, import_react.useState)(false), { focusWithinProps: ud } = $9ab94262bd0047c7$export$420e68273165f4ec({
2357
2357
  isDisabled: o,
2358
2358
  onFocusWithinChange: ld
2359
2359
  });
2360
2360
  $7d0a636d7a4dcefd$export$2123ff2b87c81ca({
2361
2361
  onScroll: (0, import_react.useCallback)((e5) => {
2362
- Math.abs(e5.deltaY) <= Math.abs(e5.deltaX) || (e5.deltaY > 0 ? C() : e5.deltaY < 0 && T());
2363
- }, [T, C]),
2364
- isDisabled: x || o || s || !cd
2362
+ Math.abs(e5.deltaY) <= Math.abs(e5.deltaX) || (e5.deltaY > 0 ? w() : e5.deltaY < 0 && E());
2363
+ }, [E, w]),
2364
+ isDisabled: S || o || s || !cd
2365
2365
  }, n);
2366
2366
  let V = (I.maximumFractionDigits ?? 0) > 0, H = t.minValue === void 0 || isNaN(t.minValue) || t.minValue < 0, U = "numeric";
2367
2367
  $c87311424ea30a05$export$186c6964ca17d99() ? H ? U = "text" : V && (U = "decimal") : $c87311424ea30a05$export$a11b0059900ceec8() && (H ? U = "numeric" : V && (U = "decimal"));
2368
2368
  let dd = (e5) => {
2369
2369
  t.validate(e5) && t.setInputValue(e5);
2370
2370
  }, fd = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(e4), W = (0, import_react.useCallback)((e5) => {
2371
- e5.nativeEvent.isComposing || (e5.key === "Enter" ? (k(), j()) : e5.continuePropagation());
2372
- }, [k, j]), { isInvalid: G, validationErrors: pd, validationDetails: md } = t.displayValidation, { labelProps: K, inputProps: hd, descriptionProps: gd, errorMessageProps: _d } = $d841c8010a73d545$export$4f384c9210e583c3({
2373
- ...S,
2371
+ e5.nativeEvent.isComposing || (e5.key === "Enter" ? (A(), j()) : e5.continuePropagation());
2372
+ }, [A, j]), { isInvalid: G, validationErrors: pd, validationDetails: md } = t.displayValidation, { labelProps: K, inputProps: hd, descriptionProps: gd, errorMessageProps: _d } = $d841c8010a73d545$export$4f384c9210e583c3({
2373
+ ...C,
2374
2374
  ...fd,
2375
2375
  name: void 0,
2376
2376
  form: void 0,
2377
- label: f,
2378
- autoFocus: d,
2377
+ label: p,
2378
+ autoFocus: f,
2379
2379
  isDisabled: o,
2380
2380
  isReadOnly: s,
2381
2381
  isRequired: c,
2382
2382
  validate: void 0,
2383
2383
  [$e5be200c675c3b3a$export$a763b9476acd3eb]: t,
2384
- value: O,
2384
+ value: k,
2385
2385
  defaultValue: "!",
2386
2386
  autoComplete: "off",
2387
2387
  "aria-label": e4["aria-label"] || void 0,
@@ -2390,13 +2390,13 @@ function $81397a9303501bda$export$23f548e970bdf099(e4, t, n) {
2390
2390
  type: "text",
2391
2391
  inputMode: U,
2392
2392
  onChange: dd,
2393
- onBlur: m,
2394
- onFocus: h,
2395
- onFocusChange: g,
2396
- onKeyDown: (0, import_react.useMemo)(() => $ff5963eb1fccf552$export$e08e3b67e392101e(W, _), [W, _]),
2397
- onKeyUp: v,
2398
- description: y,
2399
- errorMessage: b
2393
+ onBlur: h,
2394
+ onFocus: g,
2395
+ onFocusChange: _,
2396
+ onKeyDown: (0, import_react.useMemo)(() => $ff5963eb1fccf552$export$e08e3b67e392101e(W, v), [W, v]),
2397
+ onKeyUp: y,
2398
+ description: b,
2399
+ errorMessage: x
2400
2400
  }, t, n);
2401
2401
  $99facab73266f662$export$5add1d006293d136(n, t.defaultNumberValue, t.setNumberValue);
2402
2402
  let q = $3ef42575df84b30b$export$9d1611c77c2fe928(R, P, hd, {
@@ -2457,7 +2457,49 @@ function $81397a9303501bda$export$23f548e970bdf099(e4, t, n) {
2457
2457
  function capitalize(e4) {
2458
2458
  return upperFirst_default(toString_default(e4).toLowerCase());
2459
2459
  }
2460
- var capitalize_default = capitalize;
2460
+ var capitalize_default = capitalize, import_compiler_runtime$5 = require_compiler_runtime();
2461
+ function useDebounce(e4, t) {
2462
+ let n = (0, import_compiler_runtime$5.c)(4), [r, i] = (0, import_react.useState)(e4), a, o;
2463
+ return n[0] !== t || n[1] !== e4 ? (a = () => {
2464
+ let n2 = setTimeout(() => i(e4), t);
2465
+ return () => {
2466
+ clearTimeout(n2);
2467
+ };
2468
+ }, o = [e4, t], n[0] = t, n[1] = e4, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, import_react.useEffect)(a, o), r;
2469
+ }
2470
+ function useDebounceControlledState(e4) {
2471
+ let t = (0, import_compiler_runtime$5.c)(18), { initialValue: n, onChange: r, delay: i, disabled: a } = e4, [o, s] = (0, import_react.useState)(n), c = useDebounce(o, i || 200), l = useEvent_default(r), u, d;
2472
+ t[0] === n ? (u = t[1], d = t[2]) : (u = () => {
2473
+ s(n);
2474
+ }, d = [n], t[0] = n, t[1] = u, t[2] = d), (0, import_react.useEffect)(u, d);
2475
+ let f;
2476
+ t[3] !== c || t[4] !== a || t[5] !== n || t[6] !== l ? (f = () => {
2477
+ a || c !== n && l(c);
2478
+ }, t[3] = c, t[4] = a, t[5] = n, t[6] = l, t[7] = f) : f = t[7];
2479
+ let p;
2480
+ if (t[8] !== c || t[9] !== a || t[10] !== l ? (p = [
2481
+ c,
2482
+ a,
2483
+ l
2484
+ ], t[8] = c, t[9] = a, t[10] = l, t[11] = p) : p = t[11], (0, import_react.useEffect)(f, p), a) {
2485
+ let e5;
2486
+ return t[12] !== o || t[13] !== r ? (e5 = {
2487
+ value: o,
2488
+ debouncedValue: o,
2489
+ onChange: r
2490
+ }, t[12] = o, t[13] = r, t[14] = e5) : e5 = t[14], e5;
2491
+ }
2492
+ let m;
2493
+ return t[15] !== c || t[16] !== o ? (m = {
2494
+ value: o,
2495
+ debouncedValue: c,
2496
+ onChange: s
2497
+ }, t[15] = c, t[16] = o, t[17] = m) : m = t[17], m;
2498
+ }
2499
+ function useDebouncedCallback(e4, t) {
2500
+ let n = (0, import_compiler_runtime$5.c)(3), r = useEvent_default(e4), i;
2501
+ return n[0] !== t || n[1] !== r ? (i = debounce_default(r, t), n[0] = t, n[1] = r, n[2] = i) : i = n[2], i;
2502
+ }
2461
2503
  function _getDefaults() {
2462
2504
  return {
2463
2505
  async: false,
@@ -3816,9 +3858,9 @@ marked.options = marked.setOptions = function(e4) {
3816
3858
  }, marked.walkTokens = function(e4, t) {
3817
3859
  return markedInstance.walkTokens(e4, t);
3818
3860
  }, marked.parseInline = markedInstance.parseInline, marked.Parser = _Parser, marked.parser = _Parser.parse, marked.Renderer = _Renderer, marked.TextRenderer = _TextRenderer, marked.Lexer = _Lexer, marked.lexer = _Lexer.lex, marked.Tokenizer = _Tokenizer, marked.Hooks = _Hooks, marked.parse = marked, marked.options, marked.setOptions, marked.use, marked.walkTokens, marked.parseInline, _Parser.parse, _Lexer.lex;
3819
- var import_compiler_runtime$5 = require_compiler_runtime();
3861
+ var import_compiler_runtime$4 = require_compiler_runtime();
3820
3862
  function useNonce() {
3821
- let e4 = (0, import_compiler_runtime$5.c)(2), [t, n] = (0, import_react.useState)(0), r;
3863
+ let e4 = (0, import_compiler_runtime$4.c)(2), [t, n] = (0, import_react.useState)(0), r;
3822
3864
  return e4[0] === t ? r = e4[1] : (r = () => {
3823
3865
  n(t + 1);
3824
3866
  }, e4[0] = t, e4[1] = r), r;
@@ -4083,21 +4125,21 @@ var $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ (0, import_react
4083
4125
  ...e4,
4084
4126
  locale: i,
4085
4127
  validationBehavior: r
4086
- }), 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, ...g } = $81397a9303501bda$export$23f548e970bdf099({
4128
+ }), 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({
4087
4129
  ...$64fa3d84918910a7$export$ef03459518577ad4(e4),
4088
4130
  label: c,
4089
4131
  validationBehavior: r
4090
- }, a, o), _ = $64fa3d84918910a7$export$4d86445c2cf5e3({
4132
+ }, a, o), v = $64fa3d84918910a7$export$4d86445c2cf5e3({
4091
4133
  ...e4,
4092
4134
  values: {
4093
4135
  state: a,
4094
4136
  isDisabled: e4.isDisabled || false,
4095
- isInvalid: g.isInvalid || false,
4137
+ isInvalid: _.isInvalid || false,
4096
4138
  isRequired: e4.isRequired || false
4097
4139
  },
4098
4140
  defaultClassName: "react-aria-NumberField"
4099
- }), v = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(e4, { global: true });
4100
- return delete v.id, /* @__PURE__ */ import_react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
4141
+ }), y = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(e4, { global: true });
4142
+ return delete y.id, /* @__PURE__ */ import_react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
4101
4143
  [$b91743d66a0ed188$export$6cc906c6cff9bec5, a],
4102
4144
  [$a049562f99e7db0e$export$f9c6924e160136d1, u],
4103
4145
  [$3985021b0ad6602f$export$37fb8590cf2c088c, {
@@ -4116,15 +4158,15 @@ var $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ (0, import_react
4116
4158
  description: m,
4117
4159
  errorMessage: h
4118
4160
  } }],
4119
- [$ee014567cb39d3f0$export$ff05c3ac10437e03, g]
4161
+ [$ee014567cb39d3f0$export$ff05c3ac10437e03, _]
4120
4162
  ] }, /* @__PURE__ */ import_react.createElement("div", {
4163
+ ...y,
4121
4164
  ...v,
4122
- ..._,
4123
4165
  ref: t,
4124
4166
  slot: e4.slot || void 0,
4125
4167
  "data-disabled": e4.isDisabled || void 0,
4126
4168
  "data-required": e4.isRequired || void 0,
4127
- "data-invalid": g.isInvalid || void 0
4169
+ "data-invalid": _.isInvalid || void 0
4128
4170
  }), e4.name && /* @__PURE__ */ import_react.createElement("input", {
4129
4171
  type: "hidden",
4130
4172
  name: e4.name,
@@ -4239,9 +4281,9 @@ function hasArrayChanged() {
4239
4281
  let e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
4240
4282
  return e4.length !== t.length || e4.some((e5, n) => !Object.is(e5, t[n]));
4241
4283
  }
4242
- var import_compiler_runtime$4 = require_compiler_runtime(), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
4284
+ var import_compiler_runtime$3 = require_compiler_runtime(), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
4243
4285
  const ErrorBoundary$1 = (e4) => {
4244
- let t = (0, import_compiler_runtime$4.c)(2), n;
4286
+ let t = (0, import_compiler_runtime$3.c)(2), n;
4245
4287
  return t[0] === e4.children ? n = t[1] : (n = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorBoundary, {
4246
4288
  FallbackComponent,
4247
4289
  children: e4.children
@@ -4249,7 +4291,7 @@ const ErrorBoundary$1 = (e4) => {
4249
4291
  };
4250
4292
  var FallbackComponent = (e4) => {
4251
4293
  var _a2;
4252
- let t = (0, import_compiler_runtime$4.c)(9), n;
4294
+ let t = (0, import_compiler_runtime$3.c)(9), n;
4253
4295
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
4254
4296
  className: "text-2xl font-bold",
4255
4297
  children: "Something went wrong"
@@ -4303,101 +4345,101 @@ var FallbackComponent = (e4) => {
4303
4345
  }));
4304
4346
  RovingFocusGroup.displayName = GROUP_NAME$2;
4305
4347
  var RovingFocusGroupImpl = import_react.forwardRef((e4, t) => {
4306
- let { __scopeRovingFocusGroup: n, orientation: r, loop: i = false, dir: s, currentTabStopId: c, defaultCurrentTabStopId: l, onCurrentTabStopIdChange: d, onEntryFocus: f, preventScrollOnEntryFocus: p = false, ...m } = e4, h = import_react.useRef(null), g = useComposedRefs(t, h), _ = useDirection(s), [v, y] = useControllableState({
4307
- prop: c,
4308
- defaultProp: l ?? null,
4309
- onChange: d,
4348
+ let { __scopeRovingFocusGroup: n, orientation: r, loop: i = false, dir: a, currentTabStopId: o, defaultCurrentTabStopId: s, onCurrentTabStopIdChange: c, onEntryFocus: l, preventScrollOnEntryFocus: u = false, ...d } = e4, p = import_react.useRef(null), m = useComposedRefs(t, p), h = useDirection(a), [g, _] = useControllableState({
4349
+ prop: o,
4350
+ defaultProp: s ?? null,
4351
+ onChange: c,
4310
4352
  caller: GROUP_NAME$2
4311
- }), [b, S] = import_react.useState(false), C = useCallbackRef(f), w = useCollection$1(n), T = import_react.useRef(false), [E, D] = import_react.useState(0);
4353
+ }), [v, y] = import_react.useState(false), b = useCallbackRef(l), x = useCollection$1(n), S = import_react.useRef(false), [C, w] = import_react.useState(0);
4312
4354
  return import_react.useEffect(() => {
4313
- let e5 = h.current;
4314
- if (e5) return e5.addEventListener(ENTRY_FOCUS, C), () => e5.removeEventListener(ENTRY_FOCUS, C);
4315
- }, [C]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RovingFocusProvider, {
4355
+ let e5 = p.current;
4356
+ if (e5) return e5.addEventListener(ENTRY_FOCUS, b), () => e5.removeEventListener(ENTRY_FOCUS, b);
4357
+ }, [b]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RovingFocusProvider, {
4316
4358
  scope: n,
4317
4359
  orientation: r,
4318
- dir: _,
4360
+ dir: h,
4319
4361
  loop: i,
4320
- currentTabStopId: v,
4321
- onItemFocus: import_react.useCallback((e5) => y(e5), [y]),
4322
- onItemShiftTab: import_react.useCallback(() => S(true), []),
4323
- onFocusableItemAdd: import_react.useCallback(() => D((e5) => e5 + 1), []),
4324
- onFocusableItemRemove: import_react.useCallback(() => D((e5) => e5 - 1), []),
4362
+ currentTabStopId: g,
4363
+ onItemFocus: import_react.useCallback((e5) => _(e5), [_]),
4364
+ onItemShiftTab: import_react.useCallback(() => y(true), []),
4365
+ onFocusableItemAdd: import_react.useCallback(() => w((e5) => e5 + 1), []),
4366
+ onFocusableItemRemove: import_react.useCallback(() => w((e5) => e5 - 1), []),
4325
4367
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
4326
- tabIndex: b || E === 0 ? -1 : 0,
4368
+ tabIndex: v || C === 0 ? -1 : 0,
4327
4369
  "data-orientation": r,
4328
- ...m,
4329
- ref: g,
4370
+ ...d,
4371
+ ref: m,
4330
4372
  style: {
4331
4373
  outline: "none",
4332
4374
  ...e4.style
4333
4375
  },
4334
4376
  onMouseDown: composeEventHandlers(e4.onMouseDown, () => {
4335
- T.current = true;
4377
+ S.current = true;
4336
4378
  }),
4337
4379
  onFocus: composeEventHandlers(e4.onFocus, (e5) => {
4338
- let t2 = !T.current;
4339
- if (e5.target === e5.currentTarget && t2 && !b) {
4380
+ let t2 = !S.current;
4381
+ if (e5.target === e5.currentTarget && t2 && !v) {
4340
4382
  let t3 = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);
4341
4383
  if (e5.currentTarget.dispatchEvent(t3), !t3.defaultPrevented) {
4342
- let e6 = w().filter((e7) => e7.focusable);
4384
+ let e6 = x().filter((e7) => e7.focusable);
4343
4385
  focusFirst$1([
4344
4386
  e6.find((e7) => e7.active),
4345
- e6.find((e7) => e7.id === v),
4387
+ e6.find((e7) => e7.id === g),
4346
4388
  ...e6
4347
- ].filter(Boolean).map((e7) => e7.ref.current), p);
4389
+ ].filter(Boolean).map((e7) => e7.ref.current), u);
4348
4390
  }
4349
4391
  }
4350
- T.current = false;
4392
+ S.current = false;
4351
4393
  }),
4352
- onBlur: composeEventHandlers(e4.onBlur, () => S(false))
4394
+ onBlur: composeEventHandlers(e4.onBlur, () => y(false))
4353
4395
  })
4354
4396
  });
4355
4397
  }), ITEM_NAME$2 = "RovingFocusGroupItem", RovingFocusGroupItem = import_react.forwardRef((e4, t) => {
4356
- let { __scopeRovingFocusGroup: n, focusable: r = true, active: i = false, tabStopId: s, children: c, ...u } = e4, d = useId(), f = s || d, p = useRovingFocusContext(ITEM_NAME$2, n), m = p.currentTabStopId === f, h = useCollection$1(n), { onFocusableItemAdd: g, onFocusableItemRemove: _, currentTabStopId: v } = p;
4398
+ let { __scopeRovingFocusGroup: n, focusable: r = true, active: i = false, tabStopId: a, children: o, ...s } = e4, c = useId(), l = a || c, u = useRovingFocusContext(ITEM_NAME$2, n), d = u.currentTabStopId === l, f = useCollection$1(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u;
4357
4399
  return import_react.useEffect(() => {
4358
- if (r) return g(), () => _();
4400
+ if (r) return p(), () => m();
4359
4401
  }, [
4360
4402
  r,
4361
- g,
4362
- _
4403
+ p,
4404
+ m
4363
4405
  ]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection$1.ItemSlot, {
4364
4406
  scope: n,
4365
- id: f,
4407
+ id: l,
4366
4408
  focusable: r,
4367
4409
  active: i,
4368
4410
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
4369
- tabIndex: m ? 0 : -1,
4370
- "data-orientation": p.orientation,
4371
- ...u,
4411
+ tabIndex: d ? 0 : -1,
4412
+ "data-orientation": u.orientation,
4413
+ ...s,
4372
4414
  ref: t,
4373
4415
  onMouseDown: composeEventHandlers(e4.onMouseDown, (e5) => {
4374
- r ? p.onItemFocus(f) : e5.preventDefault();
4416
+ r ? u.onItemFocus(l) : e5.preventDefault();
4375
4417
  }),
4376
- onFocus: composeEventHandlers(e4.onFocus, () => p.onItemFocus(f)),
4418
+ onFocus: composeEventHandlers(e4.onFocus, () => u.onItemFocus(l)),
4377
4419
  onKeyDown: composeEventHandlers(e4.onKeyDown, (e5) => {
4378
4420
  if (e5.key === "Tab" && e5.shiftKey) {
4379
- p.onItemShiftTab();
4421
+ u.onItemShiftTab();
4380
4422
  return;
4381
4423
  }
4382
4424
  if (e5.target !== e5.currentTarget) return;
4383
- let t2 = getFocusIntent(e5, p.orientation, p.dir);
4425
+ let t2 = getFocusIntent(e5, u.orientation, u.dir);
4384
4426
  if (t2 !== void 0) {
4385
4427
  if (e5.metaKey || e5.ctrlKey || e5.altKey || e5.shiftKey) return;
4386
4428
  e5.preventDefault();
4387
- let n2 = h().filter((e6) => e6.focusable).map((e6) => e6.ref.current);
4429
+ let n2 = f().filter((e6) => e6.focusable).map((e6) => e6.ref.current);
4388
4430
  if (t2 === "last") n2.reverse();
4389
4431
  else if (t2 === "prev" || t2 === "next") {
4390
4432
  t2 === "prev" && n2.reverse();
4391
4433
  let r2 = n2.indexOf(e5.currentTarget);
4392
- n2 = p.loop ? wrapArray$1(n2, r2 + 1) : n2.slice(r2 + 1);
4434
+ n2 = u.loop ? wrapArray$1(n2, r2 + 1) : n2.slice(r2 + 1);
4393
4435
  }
4394
4436
  setTimeout(() => focusFirst$1(n2));
4395
4437
  }
4396
4438
  }),
4397
- children: typeof c == "function" ? c({
4398
- isCurrentTabStop: m,
4399
- hasTabStop: v != null
4400
- }) : c
4439
+ children: typeof o == "function" ? o({
4440
+ isCurrentTabStop: d,
4441
+ hasTabStop: h != null
4442
+ }) : o
4401
4443
  })
4402
4444
  });
4403
4445
  });
@@ -4445,7 +4487,7 @@ var Root = RovingFocusGroup, Item = RovingFocusGroupItem, SELECTION_KEYS = ["Ent
4445
4487
  createPopperScope,
4446
4488
  createRovingFocusGroupScope
4447
4489
  ]), usePopperScope = createPopperScope(), useRovingFocusGroupScope = createRovingFocusGroupScope(), [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME), [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME), Menu = (e4) => {
4448
- 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);
4490
+ let { __scopeMenu: t, open: n = false, children: r, dir: i, onOpenChange: a, modal: o = true } = e4, c = usePopperScope(t), [l, u] = import_react.useState(null), d = import_react.useRef(false), p = useCallbackRef(a), m = useDirection(i);
4449
4491
  return import_react.useEffect(() => {
4450
4492
  let e5 = () => {
4451
4493
  d.current = true, document.addEventListener("pointerdown", t2, {
@@ -4460,18 +4502,18 @@ var Root = RovingFocusGroup, Item = RovingFocusGroupItem, SELECTION_KEYS = ["Ent
4460
4502
  document.removeEventListener("keydown", e5, { capture: true }), document.removeEventListener("pointerdown", t2, { capture: true }), document.removeEventListener("pointermove", t2, { capture: true });
4461
4503
  };
4462
4504
  }, []), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
4463
- ...s,
4505
+ ...c,
4464
4506
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuProvider, {
4465
4507
  scope: t,
4466
4508
  open: n,
4467
- onOpenChange: f,
4468
- content: c,
4469
- onContentChange: l,
4509
+ onOpenChange: p,
4510
+ content: l,
4511
+ onContentChange: u,
4470
4512
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuRootProvider, {
4471
4513
  scope: t,
4472
- onClose: import_react.useCallback(() => f(false), [f]),
4514
+ onClose: import_react.useCallback(() => p(false), [p]),
4473
4515
  isUsingKeyboardRef: d,
4474
- dir: p,
4516
+ dir: m,
4475
4517
  modal: o,
4476
4518
  children: r
4477
4519
  })
@@ -4547,46 +4589,46 @@ var CONTENT_NAME$1 = "MenuContent", [MenuContentProvider, useMenuContentContext]
4547
4589
  onDismiss: () => n.onOpenChange(false)
4548
4590
  });
4549
4591
  }), Slot = createSlot("MenuContent.ScrollLock"), MenuContentImpl = import_react.forwardRef((e4, t) => {
4550
- 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, ..._ } = e4, v = useMenuContext(CONTENT_NAME$1, n), y = useMenuRootContext(CONTENT_NAME$1, n), b = usePopperScope(n), x = useRovingFocusGroupScope(n), C = useCollection(n), [T, O] = import_react.useState(null), k = import_react.useRef(null), A = useComposedRefs(t, k, v.onContentChange), j = import_react.useRef(0), M = import_react.useRef(""), N = import_react.useRef(0), P = import_react.useRef(null), F = import_react.useRef("right"), I = import_react.useRef(0), L = h ? Combination_default : import_react.Fragment, R = h ? {
4592
+ let { __scopeMenu: n, loop: r = false, trapFocus: a, onOpenAutoFocus: o, 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), A = import_react.useRef("right"), M = import_react.useRef(0), N = h ? Combination_default : import_react.Fragment, P = h ? {
4551
4593
  as: Slot,
4552
4594
  allowPinchZoom: true
4553
- } : void 0, z = (e5) => {
4595
+ } : void 0, F = (e5) => {
4554
4596
  var _a2, _b;
4555
- let t2 = M.current + e5, n2 = C().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;
4597
+ let t2 = D.current + e5, n2 = x().filter((e6) => !e6.disabled), r2 = document.activeElement, i = (_a2 = n2.find((e6) => e6.ref.current === r2)) == null ? void 0 : _a2.textValue, a2 = getNextMatch(n2.map((e6) => e6.textValue), t2, i), o2 = (_b = n2.find((e6) => e6.textValue === a2)) == null ? void 0 : _b.ref.current;
4556
4598
  (function e6(t3) {
4557
- M.current = t3, window.clearTimeout(j.current), t3 !== "" && (j.current = window.setTimeout(() => e6(""), 1e3));
4558
- })(t2), o && setTimeout(() => o.focus());
4599
+ D.current = t3, window.clearTimeout(E.current), t3 !== "" && (E.current = window.setTimeout(() => e6(""), 1e3));
4600
+ })(t2), o2 && setTimeout(() => o2.focus());
4559
4601
  };
4560
- import_react.useEffect(() => () => window.clearTimeout(j.current), []), useFocusGuards();
4561
- let B = import_react.useCallback((e5) => {
4602
+ import_react.useEffect(() => () => window.clearTimeout(E.current), []), useFocusGuards();
4603
+ let I = import_react.useCallback((e5) => {
4562
4604
  var _a2, _b;
4563
- return F.current === ((_a2 = P.current) == null ? void 0 : _a2.side) && isPointerInGraceArea(e5, (_b = P.current) == null ? void 0 : _b.area);
4605
+ return A.current === ((_a2 = k.current) == null ? void 0 : _a2.side) && isPointerInGraceArea(e5, (_b = k.current) == null ? void 0 : _b.area);
4564
4606
  }, []);
4565
4607
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuContentProvider, {
4566
4608
  scope: n,
4567
- searchRef: M,
4609
+ searchRef: D,
4568
4610
  onItemEnter: import_react.useCallback((e5) => {
4569
- B(e5) && e5.preventDefault();
4570
- }, [B]),
4611
+ I(e5) && e5.preventDefault();
4612
+ }, [I]),
4571
4613
  onItemLeave: import_react.useCallback((e5) => {
4572
4614
  var _a2;
4573
- B(e5) || ((_a2 = k.current) == null ? void 0 : _a2.focus(), O(null));
4574
- }, [B]),
4615
+ I(e5) || ((_a2 = w.current) == null ? void 0 : _a2.focus(), C(null));
4616
+ }, [I]),
4575
4617
  onTriggerLeave: import_react.useCallback((e5) => {
4576
- B(e5) && e5.preventDefault();
4577
- }, [B]),
4578
- pointerGraceTimerRef: N,
4618
+ I(e5) && e5.preventDefault();
4619
+ }, [I]),
4620
+ pointerGraceTimerRef: O,
4579
4621
  onPointerGraceIntentChange: import_react.useCallback((e5) => {
4580
- P.current = e5;
4622
+ k.current = e5;
4581
4623
  }, []),
4582
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(L, {
4583
- ...R,
4624
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(N, {
4625
+ ...P,
4584
4626
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusScope, {
4585
4627
  asChild: true,
4586
- trapped: i,
4587
- onMountAutoFocus: composeEventHandlers(a, (e5) => {
4628
+ trapped: a,
4629
+ onMountAutoFocus: composeEventHandlers(o, (e5) => {
4588
4630
  var _a2;
4589
- e5.preventDefault(), (_a2 = k.current) == null ? void 0 : _a2.focus({ preventScroll: true });
4631
+ e5.preventDefault(), (_a2 = w.current) == null ? void 0 : _a2.focus({ preventScroll: true });
4590
4632
  }),
4591
4633
  onUnmountAutoFocus: s,
4592
4634
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DismissableLayer, {
@@ -4599,44 +4641,44 @@ var CONTENT_NAME$1 = "MenuContent", [MenuContentProvider, useMenuContentContext]
4599
4641
  onDismiss: m,
4600
4642
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root, {
4601
4643
  asChild: true,
4602
- ...x,
4603
- dir: y.dir,
4644
+ ...b,
4645
+ dir: v.dir,
4604
4646
  orientation: "vertical",
4605
4647
  loop: r,
4606
- currentTabStopId: T,
4607
- onCurrentTabStopIdChange: O,
4648
+ currentTabStopId: S,
4649
+ onCurrentTabStopIdChange: C,
4608
4650
  onEntryFocus: composeEventHandlers(l, (e5) => {
4609
- y.isUsingKeyboardRef.current || e5.preventDefault();
4651
+ v.isUsingKeyboardRef.current || e5.preventDefault();
4610
4652
  }),
4611
4653
  preventScrollOnEntryFocus: true,
4612
4654
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Content, {
4613
4655
  role: "menu",
4614
4656
  "aria-orientation": "vertical",
4615
- "data-state": getOpenState(v.open),
4657
+ "data-state": getOpenState(_.open),
4616
4658
  "data-radix-menu-content": "",
4617
- dir: y.dir,
4618
- ...b,
4619
- ..._,
4620
- ref: A,
4659
+ dir: v.dir,
4660
+ ...y,
4661
+ ...g,
4662
+ ref: T,
4621
4663
  style: {
4622
4664
  outline: "none",
4623
- ..._.style
4665
+ ...g.style
4624
4666
  },
4625
- onKeyDown: composeEventHandlers(_.onKeyDown, (e5) => {
4667
+ onKeyDown: composeEventHandlers(g.onKeyDown, (e5) => {
4626
4668
  let t2 = e5.target.closest("[data-radix-menu-content]") === e5.currentTarget, n2 = e5.ctrlKey || e5.altKey || e5.metaKey, r2 = e5.key.length === 1;
4627
- t2 && (e5.key === "Tab" && e5.preventDefault(), !n2 && r2 && z(e5.key));
4628
- let i2 = k.current;
4629
- if (e5.target !== i2 || !FIRST_LAST_KEYS.includes(e5.key)) return;
4669
+ t2 && (e5.key === "Tab" && e5.preventDefault(), !n2 && r2 && F(e5.key));
4670
+ let i = w.current;
4671
+ if (e5.target !== i || !FIRST_LAST_KEYS.includes(e5.key)) return;
4630
4672
  e5.preventDefault();
4631
- let a2 = C().filter((e6) => !e6.disabled).map((e6) => e6.ref.current);
4673
+ let a2 = x().filter((e6) => !e6.disabled).map((e6) => e6.ref.current);
4632
4674
  LAST_KEYS.includes(e5.key) && a2.reverse(), focusFirst(a2);
4633
4675
  }),
4634
4676
  onBlur: composeEventHandlers(e4.onBlur, (e5) => {
4635
- e5.currentTarget.contains(e5.target) || (window.clearTimeout(j.current), M.current = "");
4677
+ e5.currentTarget.contains(e5.target) || (window.clearTimeout(E.current), D.current = "");
4636
4678
  }),
4637
4679
  onPointerMove: composeEventHandlers(e4.onPointerMove, whenMouse((e5) => {
4638
- let t2 = e5.target, n2 = I.current !== e5.clientX;
4639
- e5.currentTarget.contains(t2) && n2 && (F.current = e5.clientX > I.current ? "right" : "left", I.current = e5.clientX);
4680
+ let t2 = e5.target, n2 = M.current !== e5.clientX;
4681
+ e5.currentTarget.contains(t2) && n2 && (A.current = e5.clientX > M.current ? "right" : "left", M.current = e5.clientX);
4640
4682
  }))
4641
4683
  })
4642
4684
  })
@@ -4664,62 +4706,62 @@ var LABEL_NAME$1 = "MenuLabel", MenuLabel = import_react.forwardRef((e4, t) => {
4664
4706
  });
4665
4707
  MenuLabel.displayName = LABEL_NAME$1;
4666
4708
  var ITEM_NAME$1 = "MenuItem", ITEM_SELECT = "menu.itemSelect", MenuItem = import_react.forwardRef((e4, t) => {
4667
- let { disabled: n = false, onSelect: r, ...a } = e4, s = import_react.useRef(null), c = useMenuRootContext(ITEM_NAME$1, e4.__scopeMenu), l = useMenuContentContext(ITEM_NAME$1, e4.__scopeMenu), u = useComposedRefs(t, s), d = import_react.useRef(false), f = () => {
4668
- let e5 = s.current;
4709
+ 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 = () => {
4710
+ let e5 = a.current;
4669
4711
  if (!n && e5) {
4670
4712
  let t2 = new CustomEvent(ITEM_SELECT, {
4671
4713
  bubbles: true,
4672
4714
  cancelable: true
4673
4715
  });
4674
- e5.addEventListener(ITEM_SELECT, (e6) => r == null ? void 0 : r(e6), { once: true }), dispatchDiscreteCustomEvent(e5, t2), t2.defaultPrevented ? d.current = false : c.onClose();
4716
+ e5.addEventListener(ITEM_SELECT, (e6) => r == null ? void 0 : r(e6), { once: true }), dispatchDiscreteCustomEvent(e5, t2), t2.defaultPrevented ? l.current = false : o.onClose();
4675
4717
  }
4676
4718
  };
4677
4719
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuItemImpl, {
4678
- ...a,
4679
- ref: u,
4720
+ ...i,
4721
+ ref: c,
4680
4722
  disabled: n,
4681
- onClick: composeEventHandlers(e4.onClick, f),
4723
+ onClick: composeEventHandlers(e4.onClick, u),
4682
4724
  onPointerDown: (t2) => {
4683
4725
  var _a2;
4684
- (_a2 = e4.onPointerDown) == null ? void 0 : _a2.call(e4, t2), d.current = true;
4726
+ (_a2 = e4.onPointerDown) == null ? void 0 : _a2.call(e4, t2), l.current = true;
4685
4727
  },
4686
4728
  onPointerUp: composeEventHandlers(e4.onPointerUp, (e5) => {
4687
4729
  var _a2;
4688
- d.current || ((_a2 = e5.currentTarget) == null ? void 0 : _a2.click());
4730
+ l.current || ((_a2 = e5.currentTarget) == null ? void 0 : _a2.click());
4689
4731
  }),
4690
4732
  onKeyDown: composeEventHandlers(e4.onKeyDown, (e5) => {
4691
- let t2 = l.searchRef.current !== "";
4733
+ let t2 = s.searchRef.current !== "";
4692
4734
  n || t2 && e5.key === " " || SELECTION_KEYS.includes(e5.key) && (e5.currentTarget.click(), e5.preventDefault());
4693
4735
  })
4694
4736
  });
4695
4737
  });
4696
4738
  MenuItem.displayName = ITEM_NAME$1;
4697
4739
  var MenuItemImpl = import_react.forwardRef((e4, t) => {
4698
- let { __scopeMenu: n, disabled: r = false, textValue: i, ...s } = e4, c = useMenuContentContext(ITEM_NAME$1, n), l = useRovingFocusGroupScope(n), u = import_react.useRef(null), d = useComposedRefs(t, u), [f, p] = import_react.useState(false), [m, h] = import_react.useState("");
4740
+ 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("");
4699
4741
  return import_react.useEffect(() => {
4700
- let e5 = u.current;
4701
- e5 && h((e5.textContent ?? "").trim());
4702
- }, [s.children]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.ItemSlot, {
4742
+ let e5 = c.current;
4743
+ e5 && p((e5.textContent ?? "").trim());
4744
+ }, [a.children]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.ItemSlot, {
4703
4745
  scope: n,
4704
4746
  disabled: r,
4705
- textValue: i ?? m,
4747
+ textValue: i ?? f,
4706
4748
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Item, {
4707
4749
  asChild: true,
4708
- ...l,
4750
+ ...s,
4709
4751
  focusable: !r,
4710
4752
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
4711
4753
  role: "menuitem",
4712
- "data-highlighted": f ? "" : void 0,
4754
+ "data-highlighted": u ? "" : void 0,
4713
4755
  "aria-disabled": r || void 0,
4714
4756
  "data-disabled": r ? "" : void 0,
4715
- ...s,
4716
- ref: d,
4757
+ ...a,
4758
+ ref: l,
4717
4759
  onPointerMove: composeEventHandlers(e4.onPointerMove, whenMouse((e5) => {
4718
- r ? c.onItemLeave(e5) : (c.onItemEnter(e5), e5.defaultPrevented || e5.currentTarget.focus({ preventScroll: true }));
4760
+ r ? o.onItemLeave(e5) : (o.onItemEnter(e5), e5.defaultPrevented || e5.currentTarget.focus({ preventScroll: true }));
4719
4761
  })),
4720
- onPointerLeave: composeEventHandlers(e4.onPointerLeave, whenMouse((e5) => c.onItemLeave(e5))),
4721
- onFocus: composeEventHandlers(e4.onFocus, () => p(true)),
4722
- onBlur: composeEventHandlers(e4.onBlur, () => p(false))
4762
+ onPointerLeave: composeEventHandlers(e4.onPointerLeave, whenMouse((e5) => o.onItemLeave(e5))),
4763
+ onFocus: composeEventHandlers(e4.onFocus, () => d(true)),
4764
+ onBlur: composeEventHandlers(e4.onBlur, () => d(false))
4723
4765
  })
4724
4766
  })
4725
4767
  });
@@ -4776,13 +4818,13 @@ var RADIO_ITEM_NAME$1 = "MenuRadioItem", MenuRadioItem = import_react.forwardRef
4776
4818
  });
4777
4819
  MenuRadioItem.displayName = RADIO_ITEM_NAME$1;
4778
4820
  var ITEM_INDICATOR_NAME = "MenuItemIndicator", [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(ITEM_INDICATOR_NAME, { checked: false }), MenuItemIndicator = import_react.forwardRef((e4, t) => {
4779
- let { __scopeMenu: n, forceMount: r, ...i } = e4, o = useItemIndicatorContext(ITEM_INDICATOR_NAME, n);
4821
+ let { __scopeMenu: n, forceMount: r, ...i } = e4, a = useItemIndicatorContext(ITEM_INDICATOR_NAME, n);
4780
4822
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
4781
- present: r || isIndeterminate(o.checked) || o.checked === true,
4823
+ present: r || isIndeterminate(a.checked) || a.checked === true,
4782
4824
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
4783
4825
  ...i,
4784
4826
  ref: t,
4785
- "data-state": getCheckedState(o.checked)
4827
+ "data-state": getCheckedState(a.checked)
4786
4828
  })
4787
4829
  });
4788
4830
  });
@@ -4807,21 +4849,21 @@ var ARROW_NAME$1 = "MenuArrow", MenuArrow = import_react.forwardRef((e4, t) => {
4807
4849
  });
4808
4850
  MenuArrow.displayName = ARROW_NAME$1;
4809
4851
  var SUB_NAME = "MenuSub", [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME), MenuSub = (e4) => {
4810
- 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), [d, f] = import_react.useState(null), p = useCallbackRef(i);
4811
- return import_react.useEffect(() => (a.open === false && p(false), () => p(false)), [a.open, p]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
4852
+ let { __scopeMenu: t, children: n, open: r = false, onOpenChange: i } = e4, a = useMenuContext(SUB_NAME, t), o = usePopperScope(t), [c, l] = import_react.useState(null), [u, d] = import_react.useState(null), f = useCallbackRef(i);
4853
+ return import_react.useEffect(() => (a.open === false && f(false), () => f(false)), [a.open, f]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
4812
4854
  ...o,
4813
4855
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuProvider, {
4814
4856
  scope: t,
4815
4857
  open: r,
4816
- onOpenChange: p,
4817
- content: d,
4818
- onContentChange: f,
4858
+ onOpenChange: f,
4859
+ content: u,
4860
+ onContentChange: d,
4819
4861
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuSubProvider, {
4820
4862
  scope: t,
4821
4863
  contentId: useId(),
4822
4864
  triggerId: useId(),
4823
- trigger: s,
4824
- onTriggerChange: c,
4865
+ trigger: c,
4866
+ onTriggerChange: l,
4825
4867
  children: n
4826
4868
  })
4827
4869
  })
@@ -4829,17 +4871,17 @@ var SUB_NAME = "MenuSub", [MenuSubProvider, useMenuSubContext] = createMenuConte
4829
4871
  };
4830
4872
  MenuSub.displayName = SUB_NAME;
4831
4873
  var SUB_TRIGGER_NAME$1 = "MenuSubTrigger", MenuSubTrigger = import_react.forwardRef((e4, t) => {
4832
- 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(() => {
4833
- s.current && window.clearTimeout(s.current), s.current = null;
4874
+ 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(() => {
4875
+ o.current && window.clearTimeout(o.current), o.current = null;
4834
4876
  }, []);
4835
- return import_react.useEffect(() => d, [d]), import_react.useEffect(() => {
4836
- let e5 = c.current;
4877
+ return import_react.useEffect(() => u, [u]), import_react.useEffect(() => {
4878
+ let e5 = s.current;
4837
4879
  return () => {
4838
- window.clearTimeout(e5), l(null);
4880
+ window.clearTimeout(e5), c(null);
4839
4881
  };
4840
- }, [c, l]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuAnchor, {
4882
+ }, [s, c]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuAnchor, {
4841
4883
  asChild: true,
4842
- ...u,
4884
+ ...l,
4843
4885
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuItemImpl, {
4844
4886
  id: i.triggerId,
4845
4887
  "aria-haspopup": "menu",
@@ -4853,24 +4895,24 @@ var SUB_TRIGGER_NAME$1 = "MenuSubTrigger", MenuSubTrigger = import_react.forward
4853
4895
  (_a2 = e4.onClick) == null ? void 0 : _a2.call(e4, t2), !(e4.disabled || t2.defaultPrevented) && (t2.currentTarget.focus(), n.open || n.onOpenChange(true));
4854
4896
  },
4855
4897
  onPointerMove: composeEventHandlers(e4.onPointerMove, whenMouse((t2) => {
4856
- a.onItemEnter(t2), !t2.defaultPrevented && !e4.disabled && !n.open && !s.current && (a.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
4857
- n.onOpenChange(true), d();
4898
+ a.onItemEnter(t2), !t2.defaultPrevented && !e4.disabled && !n.open && !o.current && (a.onPointerGraceIntentChange(null), o.current = window.setTimeout(() => {
4899
+ n.onOpenChange(true), u();
4858
4900
  }, 100));
4859
4901
  })),
4860
4902
  onPointerLeave: composeEventHandlers(e4.onPointerLeave, whenMouse((e5) => {
4861
4903
  var _a2, _b;
4862
- d();
4904
+ u();
4863
4905
  let t2 = (_a2 = n.content) == null ? void 0 : _a2.getBoundingClientRect();
4864
4906
  if (t2) {
4865
- 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"];
4907
+ 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"];
4866
4908
  a.onPointerGraceIntentChange({
4867
4909
  area: [
4868
4910
  {
4869
- x: e5.clientX + o,
4911
+ x: e5.clientX + o2,
4870
4912
  y: e5.clientY
4871
4913
  },
4872
4914
  {
4873
- x: s2,
4915
+ x: c2,
4874
4916
  y: t2.top
4875
4917
  },
4876
4918
  {
@@ -4882,12 +4924,12 @@ var SUB_TRIGGER_NAME$1 = "MenuSubTrigger", MenuSubTrigger = import_react.forward
4882
4924
  y: t2.bottom
4883
4925
  },
4884
4926
  {
4885
- x: s2,
4927
+ x: c2,
4886
4928
  y: t2.bottom
4887
4929
  }
4888
4930
  ],
4889
4931
  side: r2
4890
- }), window.clearTimeout(c.current), c.current = window.setTimeout(() => a.onPointerGraceIntentChange(null), 300);
4932
+ }), window.clearTimeout(s.current), s.current = window.setTimeout(() => a.onPointerGraceIntentChange(null), 300);
4891
4933
  } else {
4892
4934
  if (a.onTriggerLeave(e5), e5.defaultPrevented) return;
4893
4935
  a.onPointerGraceIntentChange(null);
@@ -4903,7 +4945,7 @@ var SUB_TRIGGER_NAME$1 = "MenuSubTrigger", MenuSubTrigger = import_react.forward
4903
4945
  });
4904
4946
  MenuSubTrigger.displayName = SUB_TRIGGER_NAME$1;
4905
4947
  var SUB_CONTENT_NAME$1 = "MenuSubContent", MenuSubContent = import_react.forwardRef((e4, t) => {
4906
- let n = usePortalContext(CONTENT_NAME$1, e4.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e4, a = 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);
4948
+ 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);
4907
4949
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.Provider, {
4908
4950
  scope: e4.__scopeMenu,
4909
4951
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Presence, {
@@ -4911,30 +4953,30 @@ var SUB_CONTENT_NAME$1 = "MenuSubContent", MenuSubContent = import_react.forward
4911
4953
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.Slot, {
4912
4954
  scope: e4.__scopeMenu,
4913
4955
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuContentImpl, {
4914
- id: c.contentId,
4915
- "aria-labelledby": c.triggerId,
4956
+ id: s.contentId,
4957
+ "aria-labelledby": s.triggerId,
4916
4958
  ...i,
4917
- ref: u,
4959
+ ref: l,
4918
4960
  align: "start",
4919
- side: s.dir === "rtl" ? "left" : "right",
4961
+ side: o.dir === "rtl" ? "left" : "right",
4920
4962
  disableOutsidePointerEvents: false,
4921
4963
  disableOutsideScroll: false,
4922
4964
  trapFocus: false,
4923
4965
  onOpenAutoFocus: (e5) => {
4924
4966
  var _a2;
4925
- s.isUsingKeyboardRef.current && ((_a2 = l.current) == null ? void 0 : _a2.focus()), e5.preventDefault();
4967
+ o.isUsingKeyboardRef.current && ((_a2 = c.current) == null ? void 0 : _a2.focus()), e5.preventDefault();
4926
4968
  },
4927
4969
  onCloseAutoFocus: (e5) => e5.preventDefault(),
4928
4970
  onFocusOutside: composeEventHandlers(e4.onFocusOutside, (e5) => {
4929
- e5.target !== c.trigger && a.onOpenChange(false);
4971
+ e5.target !== s.trigger && a.onOpenChange(false);
4930
4972
  }),
4931
4973
  onEscapeKeyDown: composeEventHandlers(e4.onEscapeKeyDown, (e5) => {
4932
- s.onClose(), e5.preventDefault();
4974
+ o.onClose(), e5.preventDefault();
4933
4975
  }),
4934
4976
  onKeyDown: composeEventHandlers(e4.onKeyDown, (e5) => {
4935
4977
  var _a2;
4936
- let t2 = e5.currentTarget.contains(e5.target), n2 = SUB_CLOSE_KEYS[s.dir].includes(e5.key);
4937
- t2 && n2 && (a.onOpenChange(false), (_a2 = c.trigger) == null ? void 0 : _a2.focus(), e5.preventDefault());
4978
+ let t2 = e5.currentTarget.contains(e5.target), n2 = SUB_CLOSE_KEYS[o.dir].includes(e5.key);
4979
+ t2 && n2 && (a.onOpenChange(false), (_a2 = s.trigger) == null ? void 0 : _a2.focus(), e5.preventDefault());
4938
4980
  })
4939
4981
  })
4940
4982
  })
@@ -4982,7 +5024,7 @@ function whenMouse(e4) {
4982
5024
  return (t) => t.pointerType === "mouse" ? e4(t) : void 0;
4983
5025
  }
4984
5026
  var Root3 = Menu, Anchor2 = MenuAnchor, Portal$1 = MenuPortal, Content2$1 = MenuContent, Group = MenuGroup, Label = MenuLabel, Item2$1 = MenuItem, CheckboxItem = MenuCheckboxItem, RadioGroup = MenuRadioGroup, RadioItem = MenuRadioItem, ItemIndicator = MenuItemIndicator, Separator = MenuSeparator, Arrow2 = MenuArrow, Sub = MenuSub, SubTrigger = MenuSubTrigger, SubContent = MenuSubContent, DROPDOWN_MENU_NAME = "DropdownMenu", [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(DROPDOWN_MENU_NAME, [createMenuScope]), useMenuScope = createMenuScope(), [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME), DropdownMenu$1 = (e4) => {
4985
- let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = true } = e4, c = useMenuScope(t), u = import_react.useRef(null), [d, f] = useControllableState({
5027
+ let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = true } = e4, c = useMenuScope(t), l = import_react.useRef(null), [u, d] = useControllableState({
4986
5028
  prop: i,
4987
5029
  defaultProp: a ?? false,
4988
5030
  onChange: o,
@@ -4991,16 +5033,16 @@ var Root3 = Menu, Anchor2 = MenuAnchor, Portal$1 = MenuPortal, Content2$1 = Menu
4991
5033
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuProvider, {
4992
5034
  scope: t,
4993
5035
  triggerId: useId(),
4994
- triggerRef: u,
5036
+ triggerRef: l,
4995
5037
  contentId: useId(),
4996
- open: d,
4997
- onOpenChange: f,
4998
- onOpenToggle: import_react.useCallback(() => f((e5) => !e5), [f]),
5038
+ open: u,
5039
+ onOpenChange: d,
5040
+ onOpenToggle: import_react.useCallback(() => d((e5) => !e5), [d]),
4999
5041
  modal: s,
5000
5042
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root3, {
5001
5043
  ...c,
5002
- open: d,
5003
- onOpenChange: f,
5044
+ open: u,
5045
+ onOpenChange: d,
5004
5046
  dir: r,
5005
5047
  modal: s,
5006
5048
  children: n
@@ -5009,26 +5051,26 @@ var Root3 = Menu, Anchor2 = MenuAnchor, Portal$1 = MenuPortal, Content2$1 = Menu
5009
5051
  };
5010
5052
  DropdownMenu$1.displayName = DROPDOWN_MENU_NAME;
5011
5053
  var TRIGGER_NAME = "DropdownMenuTrigger", DropdownMenuTrigger$1 = import_react.forwardRef((e4, t) => {
5012
- let { __scopeDropdownMenu: n, disabled: r = false, ...i } = e4, s = useDropdownMenuContext(TRIGGER_NAME, n), c = useMenuScope(n);
5054
+ let { __scopeDropdownMenu: n, disabled: r = false, ...i } = e4, a = useDropdownMenuContext(TRIGGER_NAME, n), o = useMenuScope(n);
5013
5055
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Anchor2, {
5014
5056
  asChild: true,
5015
- ...c,
5057
+ ...o,
5016
5058
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
5017
5059
  type: "button",
5018
- id: s.triggerId,
5060
+ id: a.triggerId,
5019
5061
  "aria-haspopup": "menu",
5020
- "aria-expanded": s.open,
5021
- "aria-controls": s.open ? s.contentId : void 0,
5022
- "data-state": s.open ? "open" : "closed",
5062
+ "aria-expanded": a.open,
5063
+ "aria-controls": a.open ? a.contentId : void 0,
5064
+ "data-state": a.open ? "open" : "closed",
5023
5065
  "data-disabled": r ? "" : void 0,
5024
5066
  disabled: r,
5025
5067
  ...i,
5026
- ref: composeRefs(t, s.triggerRef),
5068
+ ref: composeRefs(t, a.triggerRef),
5027
5069
  onPointerDown: composeEventHandlers(e4.onPointerDown, (e5) => {
5028
- !r && e5.button === 0 && e5.ctrlKey === false && (s.onOpenToggle(), s.open || e5.preventDefault());
5070
+ !r && e5.button === 0 && e5.ctrlKey === false && (a.onOpenToggle(), a.open || e5.preventDefault());
5029
5071
  }),
5030
5072
  onKeyDown: composeEventHandlers(e4.onKeyDown, (e5) => {
5031
- r || (["Enter", " "].includes(e5.key) && s.onOpenToggle(), e5.key === "ArrowDown" && s.onOpenChange(true), [
5073
+ r || (["Enter", " "].includes(e5.key) && a.onOpenToggle(), e5.key === "ArrowDown" && a.onOpenChange(true), [
5032
5074
  "Enter",
5033
5075
  " ",
5034
5076
  "ArrowDown"
@@ -5047,7 +5089,7 @@ var PORTAL_NAME = "DropdownMenuPortal", DropdownMenuPortal$1 = (e4) => {
5047
5089
  };
5048
5090
  DropdownMenuPortal$1.displayName = PORTAL_NAME;
5049
5091
  var CONTENT_NAME = "DropdownMenuContent", DropdownMenuContent$1 = import_react.forwardRef((e4, t) => {
5050
- let { __scopeDropdownMenu: n, ...r } = e4, i = useDropdownMenuContext(CONTENT_NAME, n), a = useMenuScope(n), s = import_react.useRef(false);
5092
+ let { __scopeDropdownMenu: n, ...r } = e4, i = useDropdownMenuContext(CONTENT_NAME, n), a = useMenuScope(n), o = import_react.useRef(false);
5051
5093
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Content2$1, {
5052
5094
  id: i.contentId,
5053
5095
  "aria-labelledby": i.triggerId,
@@ -5056,11 +5098,11 @@ var CONTENT_NAME = "DropdownMenuContent", DropdownMenuContent$1 = import_react.f
5056
5098
  ref: t,
5057
5099
  onCloseAutoFocus: composeEventHandlers(e4.onCloseAutoFocus, (e5) => {
5058
5100
  var _a2;
5059
- s.current || ((_a2 = i.triggerRef.current) == null ? void 0 : _a2.focus()), s.current = false, e5.preventDefault();
5101
+ o.current || ((_a2 = i.triggerRef.current) == null ? void 0 : _a2.focus()), o.current = false, e5.preventDefault();
5060
5102
  }),
5061
5103
  onInteractOutside: composeEventHandlers(e4.onInteractOutside, (e5) => {
5062
5104
  let t2 = e5.detail.originalEvent, n2 = t2.button === 0 && t2.ctrlKey === true, r2 = t2.button === 2 || n2;
5063
- (!i.modal || r2) && (s.current = true);
5105
+ (!i.modal || r2) && (o.current = true);
5064
5106
  }),
5065
5107
  style: {
5066
5108
  ...e4.style,
@@ -5193,8 +5235,8 @@ var SUB_CONTENT_NAME = "DropdownMenuSubContent", DropdownMenuSubContent$1 = impo
5193
5235
  });
5194
5236
  });
5195
5237
  DropdownMenuSubContent$1.displayName = SUB_CONTENT_NAME;
5196
- var Root2 = DropdownMenu$1, Trigger = DropdownMenuTrigger$1, Portal2 = DropdownMenuPortal$1, Content2 = DropdownMenuContent$1, Group2 = DropdownMenuGroup$1, Label2 = DropdownMenuLabel$1, Item2 = DropdownMenuItem$1, CheckboxItem2 = DropdownMenuCheckboxItem$1, RadioItem2 = DropdownMenuRadioItem$1, ItemIndicator2 = DropdownMenuItemIndicator, Separator2 = DropdownMenuSeparator$1, Sub2 = DropdownMenuSub$1, SubTrigger2 = DropdownMenuSubTrigger$1, SubContent2 = DropdownMenuSubContent$1, import_compiler_runtime$3 = require_compiler_runtime(), DropdownMenu = Root2, DropdownMenuTrigger = Trigger, DropdownMenuGroup = Group2, DropdownMenuPortal = withFullScreenAsRoot(Portal2), InternalDropdownMenuContent = withSmartCollisionBoundary(Content2), InternalDropdownMenuSubContent = withSmartCollisionBoundary(SubContent2), DropdownMenuSub = Sub2, DropdownMenuSubTrigger = import_react.forwardRef((e4, t) => {
5197
- let n = (0, import_compiler_runtime$3.c)(17), r, i, a, o, s;
5238
+ var Root2 = DropdownMenu$1, Trigger = DropdownMenuTrigger$1, Portal2 = DropdownMenuPortal$1, Content2 = DropdownMenuContent$1, Group2 = DropdownMenuGroup$1, Label2 = DropdownMenuLabel$1, Item2 = DropdownMenuItem$1, CheckboxItem2 = DropdownMenuCheckboxItem$1, RadioItem2 = DropdownMenuRadioItem$1, ItemIndicator2 = DropdownMenuItemIndicator, Separator2 = DropdownMenuSeparator$1, Sub2 = DropdownMenuSub$1, SubTrigger2 = DropdownMenuSubTrigger$1, SubContent2 = DropdownMenuSubContent$1, import_compiler_runtime$2 = require_compiler_runtime(), DropdownMenu = Root2, DropdownMenuTrigger = Trigger, DropdownMenuGroup = Group2, DropdownMenuPortal = withFullScreenAsRoot(Portal2), InternalDropdownMenuContent = withSmartCollisionBoundary(Content2), InternalDropdownMenuSubContent = withSmartCollisionBoundary(SubContent2), DropdownMenuSub = Sub2, DropdownMenuSubTrigger = import_react.forwardRef((e4, t) => {
5239
+ let n = (0, import_compiler_runtime$2.c)(17), r, i, a, o, s;
5198
5240
  n[0] === e4 ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({ className: i, inset: a, showChevron: s, children: r, ...o } = e4, n[0] = e4, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
5199
5241
  let c = s === void 0 ? true : s, l;
5200
5242
  n[6] !== i || n[7] !== a ? (l = menuSubTriggerVariants({
@@ -5213,7 +5255,7 @@ var Root2 = DropdownMenu$1, Trigger = DropdownMenuTrigger$1, Portal2 = DropdownM
5213
5255
  });
5214
5256
  DropdownMenuSubTrigger.displayName = SubTrigger2.displayName;
5215
5257
  var DropdownMenuSubContent = import_react.forwardRef((e4, t) => {
5216
- let n = (0, import_compiler_runtime$3.c)(9), r, i;
5258
+ let n = (0, import_compiler_runtime$2.c)(9), r, i;
5217
5259
  n[0] === e4 ? (r = n[1], i = n[2]) : ({ className: r, ...i } = e4, n[0] = e4, n[1] = r, n[2] = i);
5218
5260
  let a;
5219
5261
  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);
@@ -5226,7 +5268,7 @@ var DropdownMenuSubContent = import_react.forwardRef((e4, t) => {
5226
5268
  });
5227
5269
  DropdownMenuSubContent.displayName = SubContent2.displayName;
5228
5270
  var DropdownMenuContent = import_react.forwardRef((e4, t) => {
5229
- let n = (0, import_compiler_runtime$3.c)(17), r, i, a, o;
5271
+ let n = (0, import_compiler_runtime$2.c)(17), r, i, a, o;
5230
5272
  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);
5231
5273
  let s = a === void 0 ? true : a, c = o === void 0 ? 4 : o, l;
5232
5274
  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];
@@ -5246,7 +5288,7 @@ var DropdownMenuContent = import_react.forwardRef((e4, t) => {
5246
5288
  });
5247
5289
  DropdownMenuContent.displayName = Content2.displayName;
5248
5290
  var DropdownMenuItem = import_react.forwardRef((e4, t) => {
5249
- let n = (0, import_compiler_runtime$3.c)(13), r, i, a, o;
5291
+ let n = (0, import_compiler_runtime$2.c)(13), r, i, a, o;
5250
5292
  n[0] === e4 ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({ className: r, inset: i, variant: o, ...a } = e4, n[0] = e4, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
5251
5293
  let s;
5252
5294
  n[5] !== r || n[6] !== i || n[7] !== o ? (s = menuItemVariants({
@@ -5263,7 +5305,7 @@ var DropdownMenuItem = import_react.forwardRef((e4, t) => {
5263
5305
  });
5264
5306
  DropdownMenuItem.displayName = Item2.displayName;
5265
5307
  var DropdownMenuCheckboxItem = import_react.forwardRef((e4, t) => {
5266
- let n = (0, import_compiler_runtime$3.c)(15), r, i, a, o;
5308
+ let n = (0, import_compiler_runtime$2.c)(15), r, i, a, o;
5267
5309
  n[0] === e4 ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({ className: a, children: i, checked: r, ...o } = e4, n[0] = e4, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
5268
5310
  let s;
5269
5311
  n[5] === a ? s = n[6] : (s = menuControlVariants({ className: a }), n[5] = a, n[6] = s);
@@ -5274,18 +5316,18 @@ var DropdownMenuCheckboxItem = import_react.forwardRef((e4, t) => {
5274
5316
  className: c,
5275
5317
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemIndicator2, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { className: "h-4 w-4" }) })
5276
5318
  }), n[8] = l) : l = n[8];
5277
- let u;
5278
- return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (u = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CheckboxItem2, {
5319
+ let d;
5320
+ return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (d = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CheckboxItem2, {
5279
5321
  ref: t,
5280
5322
  className: s,
5281
5323
  checked: r,
5282
5324
  ...o,
5283
5325
  children: [l, i]
5284
- }), n[9] = r, n[10] = i, n[11] = o, n[12] = t, n[13] = s, n[14] = u) : u = n[14], u;
5326
+ }), n[9] = r, n[10] = i, n[11] = o, n[12] = t, n[13] = s, n[14] = d) : d = n[14], d;
5285
5327
  });
5286
5328
  DropdownMenuCheckboxItem.displayName = CheckboxItem2.displayName;
5287
5329
  var DropdownMenuRadioItem = import_react.forwardRef((e4, t) => {
5288
- let n = (0, import_compiler_runtime$3.c)(13), r, i, a;
5330
+ let n = (0, import_compiler_runtime$2.c)(13), r, i, a;
5289
5331
  n[0] === e4 ? (r = n[1], i = n[2], a = n[3]) : ({ className: i, children: r, ...a } = e4, n[0] = e4, n[1] = r, n[2] = i, n[3] = a);
5290
5332
  let o;
5291
5333
  n[4] === i ? o = n[5] : (o = menuControlVariants({ className: i }), n[4] = i, n[5] = o);
@@ -5306,7 +5348,7 @@ var DropdownMenuRadioItem = import_react.forwardRef((e4, t) => {
5306
5348
  });
5307
5349
  DropdownMenuRadioItem.displayName = RadioItem2.displayName;
5308
5350
  var DropdownMenuLabel = import_react.forwardRef((e4, t) => {
5309
- let n = (0, import_compiler_runtime$3.c)(11), r, i, a;
5351
+ let n = (0, import_compiler_runtime$2.c)(11), r, i, a;
5310
5352
  n[0] === e4 ? (r = n[1], i = n[2], a = n[3]) : ({ className: r, inset: i, ...a } = e4, n[0] = e4, n[1] = r, n[2] = i, n[3] = a);
5311
5353
  let o;
5312
5354
  n[4] !== r || n[5] !== i ? (o = menuLabelVariants({
@@ -5322,7 +5364,7 @@ var DropdownMenuLabel = import_react.forwardRef((e4, t) => {
5322
5364
  });
5323
5365
  DropdownMenuLabel.displayName = Label2.displayName;
5324
5366
  var DropdownMenuSeparator = import_react.forwardRef((e4, t) => {
5325
- let n = (0, import_compiler_runtime$3.c)(9), r, i;
5367
+ let n = (0, import_compiler_runtime$2.c)(9), r, i;
5326
5368
  n[0] === e4 ? (r = n[1], i = n[2]) : ({ className: r, ...i } = e4, n[0] = e4, n[1] = r, n[2] = i);
5327
5369
  let a;
5328
5370
  n[3] === r ? a = n[4] : (a = menuSeparatorVariants({ className: r }), n[3] = r, n[4] = a);
@@ -5405,9 +5447,9 @@ function prettyEngineeringNumber(e4, t) {
5405
5447
  }).format(e4).split("E");
5406
5448
  return i in prefixes ? r + prefixes[i] : `${r}E${i}`;
5407
5449
  }
5408
- var import_compiler_runtime$2 = require_compiler_runtime();
5450
+ var import_compiler_runtime$1 = require_compiler_runtime();
5409
5451
  const NumberField = import_react.forwardRef((e4, t) => {
5410
- let n = (0, import_compiler_runtime$2.c)(40), { placeholder: r, variant: i, ...a } = e4, o = i === void 0 ? "default" : i, { locale: s } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), c = $b91743d66a0ed188$export$63c5fa0b2fdccd2e, l;
5452
+ 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;
5411
5453
  n[0] === s ? l = n[1] : (l = maxFractionalDigits(s), n[0] = s, n[1] = l);
5412
5454
  let u;
5413
5455
  n[2] === l ? u = n[3] : (u = {
@@ -5416,68 +5458,68 @@ const NumberField = import_react.forwardRef((e4, t) => {
5416
5458
  }, n[2] = l, n[3] = u);
5417
5459
  let d = 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), f = a.isDisabled, p = o === "default" ? "px-1.5" : "px-1", m;
5418
5460
  n[4] === p ? m = n[5] : (m = cn("flex-1", "w-full", "placeholder:text-muted-foreground", "outline-hidden", "disabled:cursor-not-allowed disabled:opacity-50", p), n[4] = p, n[5] = m);
5419
- let h;
5420
- n[6] !== r || n[7] !== a.isDisabled || n[8] !== t || n[9] !== m ? (h = /* @__PURE__ */ (0, import_jsx_runtime.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, {
5461
+ let v;
5462
+ n[6] !== r || n[7] !== a.isDisabled || n[8] !== t || n[9] !== m ? (v = /* @__PURE__ */ (0, import_jsx_runtime.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, {
5421
5463
  ref: t,
5422
5464
  disabled: f,
5423
5465
  placeholder: r,
5424
5466
  onKeyDown: _temp,
5425
5467
  className: m
5426
- }), n[6] = r, n[7] = a.isDisabled, n[8] = t, n[9] = m, n[10] = h) : h = n[10];
5427
- let g = a.isDisabled, _ = o === "xs" && "w-2 h-2", v;
5428
- n[11] === _ ? v = n[12] : (v = cn("w-3 h-3 -mb-px", _), n[11] = _, n[12] = v);
5429
- let y;
5430
- n[13] === v ? y = n[14] : (y = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronUp, {
5468
+ }), n[6] = r, n[7] = a.isDisabled, n[8] = t, n[9] = m, n[10] = v) : v = n[10];
5469
+ let y = a.isDisabled, b = o === "xs" && "w-2 h-2", x;
5470
+ n[11] === b ? x = n[12] : (x = cn("w-3 h-3 -mb-px", b), n[11] = b, n[12] = x);
5471
+ let S;
5472
+ n[13] === x ? S = n[14] : (S = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronUp, {
5431
5473
  "aria-hidden": true,
5432
- className: v
5433
- }), n[13] = v, n[14] = y);
5434
- let b;
5435
- n[15] !== a.isDisabled || n[16] !== y || n[17] !== o ? (b = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StepperButton, {
5474
+ className: x
5475
+ }), n[13] = x, n[14] = S);
5476
+ let C;
5477
+ n[15] !== a.isDisabled || n[16] !== S || n[17] !== o ? (C = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StepperButton, {
5436
5478
  slot: "increment",
5437
- isDisabled: g,
5479
+ isDisabled: y,
5438
5480
  variant: o,
5439
- children: y
5440
- }), n[15] = a.isDisabled, n[16] = y, n[17] = o, n[18] = b) : b = n[18];
5441
- let x;
5442
- n[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-px shrink-0 divider bg-border z-10" }), n[19] = x) : x = n[19];
5443
- let S = a.isDisabled, C = o === "xs" && "w-2 h-2", w;
5444
- n[20] === C ? w = n[21] : (w = cn("w-3 h-3 -mt-px", C), n[20] = C, n[21] = w);
5445
- let T;
5446
- n[22] === w ? T = n[23] : (T = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, {
5481
+ children: S
5482
+ }), n[15] = a.isDisabled, n[16] = S, n[17] = o, n[18] = C) : C = n[18];
5483
+ let w;
5484
+ 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];
5485
+ let T = a.isDisabled, E = o === "xs" && "w-2 h-2", D;
5486
+ n[20] === E ? D = n[21] : (D = cn("w-3 h-3 -mt-px", E), n[20] = E, n[21] = D);
5487
+ let O;
5488
+ n[22] === D ? O = n[23] : (O = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, {
5447
5489
  "aria-hidden": true,
5448
- className: w
5449
- }), n[22] = w, n[23] = T);
5450
- let E;
5451
- n[24] !== a.isDisabled || n[25] !== T || n[26] !== o ? (E = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StepperButton, {
5490
+ className: D
5491
+ }), n[22] = D, n[23] = O);
5492
+ let k;
5493
+ n[24] !== a.isDisabled || n[25] !== O || n[26] !== o ? (k = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StepperButton, {
5452
5494
  slot: "decrement",
5453
- isDisabled: S,
5495
+ isDisabled: T,
5454
5496
  variant: o,
5455
- children: T
5456
- }), n[24] = a.isDisabled, n[25] = T, n[26] = o, n[27] = E) : E = n[27];
5457
- let D;
5458
- n[28] !== b || n[29] !== E ? (D = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
5497
+ children: O
5498
+ }), n[24] = a.isDisabled, n[25] = O, n[26] = o, n[27] = k) : k = n[27];
5499
+ let A;
5500
+ n[28] !== C || n[29] !== k ? (A = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
5459
5501
  className: "flex flex-col border-s-2",
5460
5502
  children: [
5461
- b,
5462
- x,
5463
- E
5503
+ C,
5504
+ w,
5505
+ k
5464
5506
  ]
5465
- }), n[28] = b, n[29] = E, n[30] = D) : D = n[30];
5466
- let O;
5467
- n[31] !== D || n[32] !== d || n[33] !== h ? (O = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
5507
+ }), n[28] = C, n[29] = k, n[30] = A) : A = n[30];
5508
+ let j;
5509
+ n[31] !== A || n[32] !== d || n[33] !== v ? (j = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
5468
5510
  className: d,
5469
- children: [h, D]
5470
- }), n[31] = D, n[32] = d, n[33] = h, n[34] = O) : O = n[34];
5471
- let k;
5472
- return n[35] !== c || n[36] !== a || n[37] !== O || n[38] !== u ? (k = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(c, {
5511
+ children: [v, A]
5512
+ }), n[31] = A, n[32] = d, n[33] = v, n[34] = j) : j = n[34];
5513
+ let M;
5514
+ return n[35] !== c || n[36] !== a || n[37] !== j || n[38] !== u ? (M = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(c, {
5473
5515
  ...a,
5474
5516
  formatOptions: u,
5475
- children: O
5476
- }), n[35] = c, n[36] = a, n[37] = O, n[38] = u, n[39] = k) : k = n[39], k;
5517
+ children: j
5518
+ }), n[35] = c, n[36] = a, n[37] = j, n[38] = u, n[39] = M) : M = n[39], M;
5477
5519
  });
5478
5520
  NumberField.displayName = "NumberField";
5479
5521
  var StepperButton = (e4) => {
5480
- let t = (0, import_compiler_runtime$2.c)(6), n = !e4.isDisabled && "hover:text-primary hover:bg-muted", r = e4.variant === "default" ? "px-0.5" : "px-0.25", i;
5522
+ 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;
5481
5523
  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];
5482
5524
  let a;
5483
5525
  return t[3] !== e4 || t[4] !== i ? (a = /* @__PURE__ */ (0, import_jsx_runtime.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
@@ -5488,49 +5530,6 @@ var StepperButton = (e4) => {
5488
5530
  function _temp(e4) {
5489
5531
  (e4.key === "ArrowUp" || e4.key === "ArrowDown") && e4.stopPropagation();
5490
5532
  }
5491
- var import_compiler_runtime$1 = require_compiler_runtime();
5492
- function useDebounce(e4, t) {
5493
- let n = (0, import_compiler_runtime$1.c)(4), [r, i] = (0, import_react.useState)(e4), a, o;
5494
- return n[0] !== t || n[1] !== e4 ? (a = () => {
5495
- let n2 = setTimeout(() => i(e4), t);
5496
- return () => {
5497
- clearTimeout(n2);
5498
- };
5499
- }, o = [e4, t], n[0] = t, n[1] = e4, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, import_react.useEffect)(a, o), r;
5500
- }
5501
- function useDebounceControlledState(e4) {
5502
- let t = (0, import_compiler_runtime$1.c)(18), { initialValue: n, onChange: r, delay: i, disabled: a } = e4, [o, s] = (0, import_react.useState)(n), c = useDebounce(o, i || 200), l = useEvent_default(r), u, d;
5503
- t[0] === n ? (u = t[1], d = t[2]) : (u = () => {
5504
- s(n);
5505
- }, d = [n], t[0] = n, t[1] = u, t[2] = d), (0, import_react.useEffect)(u, d);
5506
- let f;
5507
- t[3] !== c || t[4] !== a || t[5] !== n || t[6] !== l ? (f = () => {
5508
- a || c !== n && l(c);
5509
- }, t[3] = c, t[4] = a, t[5] = n, t[6] = l, t[7] = f) : f = t[7];
5510
- let p;
5511
- if (t[8] !== c || t[9] !== a || t[10] !== l ? (p = [
5512
- c,
5513
- a,
5514
- l
5515
- ], t[8] = c, t[9] = a, t[10] = l, t[11] = p) : p = t[11], (0, import_react.useEffect)(f, p), a) {
5516
- let e5;
5517
- return t[12] !== o || t[13] !== r ? (e5 = {
5518
- value: o,
5519
- debouncedValue: o,
5520
- onChange: r
5521
- }, t[12] = o, t[13] = r, t[14] = e5) : e5 = t[14], e5;
5522
- }
5523
- let m;
5524
- return t[15] !== c || t[16] !== o ? (m = {
5525
- value: o,
5526
- debouncedValue: c,
5527
- onChange: s
5528
- }, t[15] = c, t[16] = o, t[17] = m) : m = t[17], m;
5529
- }
5530
- function useDebouncedCallback(e4, t) {
5531
- let n = (0, import_compiler_runtime$1.c)(3), r = useEvent_default(e4), i;
5532
- return n[0] !== t || n[1] !== r ? (i = debounce_default(r, t), n[0] = t, n[1] = r, n[2] = i) : i = n[2], i;
5533
- }
5534
5533
  var import_compiler_runtime = require_compiler_runtime(), Input = import_react.forwardRef((e4, t) => {
5535
5534
  let n = (0, import_compiler_runtime.c)(28), r, i, a, o, s, c, l;
5536
5535
  if (n[0] !== t || n[1] !== e4) {
@@ -5689,130 +5688,130 @@ const BulkEdit = {
5689
5688
  Rename: "rename"
5690
5689
  };
5691
5690
  export {
5692
- $514c0188e459b4c0$export$5f1af8db9871e1d6 as $,
5691
+ $d2b4bc8c273e7be6$export$24d547caef80ccd1 as $,
5693
5692
  $7215afc6de606d6b$export$de79e2c695e052f3 as $t,
5694
- ItemIndicator as A,
5693
+ Portal$1 as A,
5695
5694
  $fca6afa0e843324b$export$f12b703ca79dfbb1 as At,
5696
- createMenuScope as B,
5695
+ Root as B,
5697
5696
  $9446cca9a3875146$export$7d15b64cf5a3a4c4 as Bt,
5698
- DropdownMenuTrigger as C,
5697
+ Arrow2 as C,
5699
5698
  $e5be200c675c3b3a$export$dad6ae84456c676a as Ct,
5700
- Content2$1 as D,
5699
+ Item2$1 as D,
5701
5700
  $701a24aa0da5b062$export$ea18c227d4417cc3 as Dt,
5702
- CheckboxItem as E,
5701
+ Group as E,
5703
5702
  $f7dceffc5ad7768b$export$4e328f61c538687f as Et,
5704
- Root3 as F,
5703
+ Sub as F,
5705
5704
  $3ad3f6e1647bc98d$export$80f3e147d781571c as Ft,
5706
- require_prop_types as G,
5705
+ $3985021b0ad6602f$export$f5b8910cec6cf069 as G,
5707
5706
  $e9faafb641e167db$export$90fc3a17d93f704c as Gt,
5708
- Root as H,
5707
+ ErrorBoundary$1 as H,
5709
5708
  $b4b717babfbb907b$export$4c063cf1350e6fed as Ht,
5710
- Separator as I,
5709
+ SubContent as I,
5711
5710
  $507fabe10e71c6fb$export$630ff653c5ada6a9 as It,
5712
- $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 as J,
5711
+ $d3e0e05bdfcf66bd$export$c24727297075ec6a as J,
5713
5712
  $c87311424ea30a05$export$6446a186d09e379e as Jt,
5714
- $3985021b0ad6602f$export$37fb8590cf2c088c as K,
5713
+ $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 as K,
5715
5714
  $df56164dff5785e2$export$4338b53315abf666 as Kt,
5716
- Sub as L,
5715
+ SubTrigger as L,
5717
5716
  $f6c31cce2adf654f$export$45712eceda6fad21 as Lt,
5718
- Portal$1 as M,
5717
+ RadioItem as M,
5719
5718
  $5b160d28a433310d$export$c17fa47878dc55b6 as Mt,
5720
- RadioGroup as N,
5719
+ Root3 as N,
5721
5720
  $6179b936705e76d3$export$ae780daf29e6d456 as Nt,
5722
- Group as O,
5721
+ ItemIndicator as O,
5723
5722
  $6c7bd7858deea686$export$cd11ab140839f11d as Ot,
5724
- RadioItem as P,
5723
+ Separator as P,
5725
5724
  $9ab94262bd0047c7$export$420e68273165f4ec as Pt,
5726
- $ee014567cb39d3f0$export$ff05c3ac10437e03 as Q,
5725
+ $514c0188e459b4c0$export$9afb8bc826b033ea as Q,
5727
5726
  $c87311424ea30a05$export$fedb369cb70207f1 as Qt,
5728
- SubContent as R,
5727
+ createMenuScope as R,
5729
5728
  _class_private_field_init as Rt,
5730
- DropdownMenuSubTrigger as S,
5729
+ Anchor2 as S,
5731
5730
  $e5be200c675c3b3a$export$aca958c65c314e6c as St,
5732
- Arrow2 as T,
5731
+ Content2$1 as T,
5733
5732
  $319e236875307eab$export$a9b970dcc4ae71a9 as Tt,
5734
- createRovingFocusGroupScope as U,
5733
+ require_prop_types as U,
5735
5734
  $b4b717babfbb907b$export$bebd5a1431fec25d as Ut,
5736
- Item as V,
5735
+ createRovingFocusGroupScope as V,
5737
5736
  $458b0a5536c1a7cf$export$40bfa8c7b0832715 as Vt,
5738
- ErrorBoundary$1 as W,
5737
+ $3985021b0ad6602f$export$37fb8590cf2c088c as W,
5739
5738
  $99facab73266f662$export$5add1d006293d136 as Wt,
5740
- $d3e0e05bdfcf66bd$export$c24727297075ec6a as X,
5739
+ $ee014567cb39d3f0$export$ff05c3ac10437e03 as X,
5741
5740
  $c87311424ea30a05$export$9ac100e40613ea10 as Xt,
5742
- $a049562f99e7db0e$export$f9c6924e160136d1 as Y,
5741
+ $ee014567cb39d3f0$export$f551688fc98f2e09 as Y,
5743
5742
  $c87311424ea30a05$export$78551043582a6a98 as Yt,
5744
- $ee014567cb39d3f0$export$f551688fc98f2e09 as Z,
5743
+ $514c0188e459b4c0$export$5f1af8db9871e1d6 as Z,
5745
5744
  $c87311424ea30a05$export$a11b0059900ceec8 as Zt,
5746
- DropdownMenuLabel as _,
5745
+ DropdownMenuSeparator as _,
5747
5746
  Circle as _n,
5748
5747
  $d2e8511e6f209edf$export$e908e06f4b8e3402 as _t,
5749
5748
  OnBlurredInput as a,
5750
5749
  $f4e2df6bd15f8569$export$98658e8c59125e6a as an,
5751
- $f39a9eba43920ace$export$b5d7cc18bb8d2b59 as at,
5752
- DropdownMenuSub as b,
5750
+ $64fa3d84918910a7$export$29f1550f4b0d4415 as at,
5751
+ DropdownMenuSubTrigger as b,
5753
5752
  $e5be200c675c3b3a$export$75ee7c75d68f5b0e as bt,
5754
- NumberField as c,
5753
+ prettyEngineeringNumber as c,
5755
5754
  $ff5963eb1fccf552$export$e08e3b67e392101e as cn,
5756
- $64fa3d84918910a7$export$4d86445c2cf5e3 as ct,
5757
- prettyNumber as d,
5755
+ $64fa3d84918910a7$export$c245e6201fed2f75 as ct,
5756
+ DropdownMenu as d,
5758
5757
  $8ae05eaa5c114e9c$export$7f54fc3180508a52 as dn,
5759
- $64fa3d84918910a7$export$c62b8e45d58ddad9 as dt,
5758
+ $64fa3d84918910a7$export$fabf2dc03a41866e as dt,
5760
5759
  $65484d02dcb7eb3e$export$457c3d6518dd4c6f as en,
5761
- $514c0188e459b4c0$export$9afb8bc826b033ea as et,
5762
- prettyScientificNumber as f,
5760
+ $d2b4bc8c273e7be6$export$353f5b6fc5456de1 as et,
5761
+ DropdownMenuContent as f,
5763
5762
  $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as fn,
5764
- $64fa3d84918910a7$export$ef03459518577ad4 as ft,
5765
- DropdownMenuItem as g,
5763
+ useNonce as ft,
5764
+ DropdownMenuPortal as g,
5766
5765
  Pencil as gn,
5767
5766
  capitalize_default as gt,
5768
- DropdownMenuGroup as h,
5767
+ DropdownMenuLabel as h,
5769
5768
  Plus as hn,
5770
- marked as ht,
5769
+ useDebouncedCallback as ht,
5771
5770
  Input as i,
5772
5771
  $d4ee10de306f2510$export$e58f029f0fbfdb29 as in,
5773
- $01b77f81d0f07f68$export$b04be29aa201d4f5 as it,
5774
- Label as j,
5772
+ $64fa3d84918910a7$export$2881499e37b75b9a as it,
5773
+ RadioGroup as j,
5775
5774
  $6db58dc88e78b024$export$2f817fcdc4b89ae0 as jt,
5776
- Item2$1 as k,
5775
+ Label as k,
5777
5776
  $fca6afa0e843324b$export$87b761675e8eaa10 as kt,
5778
- maxFractionalDigits as l,
5777
+ prettyNumber as l,
5779
5778
  $bdb11010cef70236$export$b4cc09c592e8fdb8 as ln,
5780
- $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as lt,
5781
- DropdownMenuContent as m,
5779
+ $64fa3d84918910a7$export$c62b8e45d58ddad9 as lt,
5780
+ DropdownMenuItem as m,
5782
5781
  Search as mn,
5783
- useNonce as mt,
5782
+ useDebounceControlledState as mt,
5784
5783
  DebouncedInput as n,
5785
5784
  $d4ee10de306f2510$export$4282f70798064fe0 as nn,
5786
- $d2b4bc8c273e7be6$export$353f5b6fc5456de1 as nt,
5787
- useDebounceControlledState as o,
5785
+ $01b77f81d0f07f68$export$b04be29aa201d4f5 as nt,
5786
+ NumberField as o,
5788
5787
  $431fbd86ca7dc216$export$b204af158042fbac as on,
5789
- $64fa3d84918910a7$export$2881499e37b75b9a as ot,
5790
- DropdownMenu as p,
5788
+ $64fa3d84918910a7$export$4d86445c2cf5e3 as ot,
5789
+ DropdownMenuGroup as p,
5791
5790
  Trash as pn,
5792
- $64fa3d84918910a7$export$fabf2dc03a41866e as pt,
5793
- $3985021b0ad6602f$export$f5b8910cec6cf069 as q,
5791
+ marked as pt,
5792
+ $a049562f99e7db0e$export$f9c6924e160136d1 as q,
5794
5793
  $313b98861ee5dd6c$export$d6875122194c7b44 as qt,
5795
5794
  DebouncedNumberInput as r,
5796
5795
  $d4ee10de306f2510$export$cd4e5573fbe2b576 as rn,
5797
- $01b77f81d0f07f68$export$75b6ee27786ba447 as rt,
5798
- useDebouncedCallback as s,
5796
+ $f39a9eba43920ace$export$b5d7cc18bb8d2b59 as rt,
5797
+ maxFractionalDigits as s,
5799
5798
  $431fbd86ca7dc216$export$f21a1ffae260145a as sn,
5800
- $64fa3d84918910a7$export$29f1550f4b0d4415 as st,
5799
+ $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as st,
5801
5800
  BulkEdit as t,
5802
5801
  $3ef42575df84b30b$export$9d1611c77c2fe928 as tn,
5803
- $d2b4bc8c273e7be6$export$24d547caef80ccd1 as tt,
5804
- prettyEngineeringNumber as u,
5802
+ $01b77f81d0f07f68$export$75b6ee27786ba447 as tt,
5803
+ prettyScientificNumber as u,
5805
5804
  $bdb11010cef70236$export$f680877a34711e37 as un,
5806
- $64fa3d84918910a7$export$c245e6201fed2f75 as ut,
5807
- DropdownMenuPortal as v,
5805
+ $64fa3d84918910a7$export$ef03459518577ad4 as ut,
5806
+ DropdownMenuSub as v,
5808
5807
  ChevronRight as vn,
5809
5808
  $2baaea4c71418dea$export$294aa081a6c6f55d as vt,
5810
- Anchor2 as w,
5809
+ CheckboxItem as w,
5811
5810
  $e5be200c675c3b3a$export$fc1a364ae1f3ff10 as wt,
5812
- DropdownMenuSubContent as x,
5811
+ DropdownMenuTrigger as x,
5813
5812
  $e5be200c675c3b3a$export$a763b9476acd3eb as xt,
5814
- DropdownMenuSeparator as y,
5813
+ DropdownMenuSubContent as y,
5815
5814
  $e93e671b31057976$export$b8473d3665f3a75a as yt,
5816
- SubTrigger as z,
5815
+ Item as z,
5817
5816
  $ae1eeba8b9eafd08$export$5165eccb35aaadb5 as zt
5818
5817
  };