@fde-desktop/fde-core 0.4.8 → 0.4.9

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 (250) hide show
  1. package/dist/{AccordionChevron-CJXAq5o5.js → AccordionChevron-DxpOyInK.js} +1 -1
  2. package/dist/AccordionChevron-kn5kSrEc.cjs +1 -0
  3. package/dist/{ActionIcon-CtVbYlGY.js → ActionIcon-Drh4p6Fv.js} +32 -32
  4. package/dist/ActionIcon-alk2zZD6.cjs +1 -0
  5. package/dist/AppEmptyState-BWCUbf-B.cjs +1 -0
  6. package/dist/AppEmptyState-Bxpit0JV.js +49 -0
  7. package/dist/AppIcon-BU7a3ZNH.cjs +1 -0
  8. package/dist/{AppIcon-DCDuaU-t.js → AppIcon-XumS3bIG.js} +4 -4
  9. package/dist/AppMenuBar-B9U0n1Vv.cjs +1 -0
  10. package/dist/AppMenuBar-CnIEVjr8.js +2049 -0
  11. package/dist/{Box-DRm8EabO.js → Box-DSKR_qaa.js} +257 -271
  12. package/dist/Box-zW6Twge8.cjs +1 -0
  13. package/dist/Button-DMlnrqyx.cjs +1 -0
  14. package/dist/{Button-k7SxX1Xl.js → Button-wTOTQKxF.js} +38 -38
  15. package/dist/CalendarApp-B_e1B1Yn.cjs +1 -0
  16. package/dist/CalendarApp-C-l9D6nd.cjs +1 -0
  17. package/dist/CalendarApp-D0ftTCTG.js +1399 -0
  18. package/dist/{Center-CyryG5zn.js → Center-CmxXB9ql.js} +1 -1
  19. package/dist/Center-DKUE2pER.cjs +1 -0
  20. package/dist/CheckIcon-CZhtJD1O.cjs +1 -0
  21. package/dist/{CheckIcon-C3WjIR2i.js → CheckIcon-N5qBqXQJ.js} +1 -1
  22. package/dist/CodeServerApp-BOoGwZ7r.cjs +1 -0
  23. package/dist/CodeServerApp-Be3I5EGg.cjs +1 -0
  24. package/dist/{CodeServerApp-DY94cy1a.js → CodeServerApp-DW18EZxa.js} +48 -47
  25. package/dist/{ColorPicker-DvRR-wlQ.js → ColorPicker-BCNqi02x.js} +364 -364
  26. package/dist/ColorPicker-BrDE7tMO.cjs +1 -0
  27. package/dist/CreateItemApp-B12M1E_1.cjs +1 -0
  28. package/dist/{CreateItemApp-CtdH1K1g.js → CreateItemApp-TAAprby3.js} +13 -13
  29. package/dist/CreateItemApp-ePB6ujNl.cjs +1 -0
  30. package/dist/DeviceInfoApp-BMF18BGo.cjs +1 -0
  31. package/dist/DeviceInfoApp-DRy0H3aT.cjs +1 -0
  32. package/dist/{DeviceInfoApp-C306YvtZ.js → DeviceInfoApp-lgpwkeRR.js} +7 -7
  33. package/dist/{DownloadProgress-hdupSUBT.js → DownloadProgress-EoyCaD5O.js} +15 -15
  34. package/dist/DownloadProgress-VNdj22U8.cjs +1 -0
  35. package/dist/{FileIcon-BCpGMI5U.js → FileIcon-7JaSR3Gn.js} +26 -25
  36. package/dist/FileIcon-CIXopWLv.cjs +1 -0
  37. package/dist/{FilePickerApp-DMGuvahM.js → FilePickerApp-DaMgEqKh.js} +115 -115
  38. package/dist/FilePickerApp-DjmuSFqa.cjs +1 -0
  39. package/dist/FilesApp-Bp7wfrBZ.cjs +1 -0
  40. package/dist/FilesApp-BpJJRKhi.cjs +1 -0
  41. package/dist/{FilesApp-VXrmtt63.js → FilesApp-Cj94QG5o.js} +21 -21
  42. package/dist/{Group-BzwlMeob.js → Group-CtBJSfCo.js} +1 -1
  43. package/dist/Group-Dsrf6lEK.cjs +1 -0
  44. package/dist/{ImageViewerApp-CWiP6zx-.js → ImageViewerApp-BaLP3gkO.js} +18 -17
  45. package/dist/ImageViewerApp-DlHGeB3S.cjs +1 -0
  46. package/dist/ImageViewerApp-DoXd_Swu.cjs +1 -0
  47. package/dist/{ImageViewerMenuBar-BULkh_Ku.js → ImageViewerMenuBar-CabGSi9r.js} +15 -14
  48. package/dist/ImageViewerMenuBar-SAI7UNz7.cjs +1 -0
  49. package/dist/ImageViewerMenuBar-_Jr29gii.cjs +1 -0
  50. package/dist/MenuEditApp-BJjlPTOa.cjs +1 -0
  51. package/dist/MenuEditApp-BTRppYnD.js +497 -0
  52. package/dist/MenuEditApp-JPsGT-S3.cjs +1 -0
  53. package/dist/MenuEditMenuBar-BydGkqMw.cjs +1 -0
  54. package/dist/MenuEditMenuBar-DptlwVPQ.cjs +1 -0
  55. package/dist/{MenuEditMenuBar-B94z4Umw.js → MenuEditMenuBar-x1IQrHP2.js} +13 -12
  56. package/dist/NotesApp-BOcRGO7w.cjs +1 -0
  57. package/dist/NotesApp-CQe7UfBC.js +364 -0
  58. package/dist/NotesApp-OL07JXRE.cjs +1 -0
  59. package/dist/NotesMenuBar-BSI_2Y7p.cjs +1 -0
  60. package/dist/NotesMenuBar-Df6aW85J.cjs +1 -0
  61. package/dist/{NotesMenuBar-BB4NkKGf.js → NotesMenuBar-VhpIe68v.js} +10 -9
  62. package/dist/{Paper-DtUYKmYn.js → Paper-BX_9odR6.js} +3 -3
  63. package/dist/Paper-D8-BaBx2.cjs +1 -0
  64. package/dist/PdfApp-CNEbty5v.cjs +1 -0
  65. package/dist/PdfApp-CVv3ZCaM.cjs +1 -0
  66. package/dist/PdfApp-DL_R9-Nc.js +39 -0
  67. package/dist/PdfMenuBar--E6kDyrT.cjs +1 -0
  68. package/dist/PdfMenuBar-DZCLSOpR.js +39 -0
  69. package/dist/PdfMenuBar-Dj5cJUkg.cjs +1 -0
  70. package/dist/SettingsApp-BlmHuAjT.js +1831 -0
  71. package/dist/SettingsApp-CNvIgf5B.cjs +1 -0
  72. package/dist/SettingsApp-DWxanNE4.cjs +1 -0
  73. package/dist/SettingsMenuBar-CBoOBCfx.cjs +1 -0
  74. package/dist/SettingsMenuBar-DQooFkZN.cjs +1 -0
  75. package/dist/SettingsMenuBar-YWiJHaxq.js +42 -0
  76. package/dist/Slider-BUiHxjKO.cjs +1 -0
  77. package/dist/{Slider-BNO-vDFn.js → Slider-t-NcD60t.js} +148 -147
  78. package/dist/{Stack-CuDEaP7e.js → Stack-Bp1Ek2Gp.js} +1 -1
  79. package/dist/Stack-D4jAiRfc.cjs +1 -0
  80. package/dist/StorybookApp-CDLV_kja.cjs +1 -0
  81. package/dist/{StorybookApp-WYninkJo.js → StorybookApp-DKwlPCmo.js} +1 -1
  82. package/dist/TerminalApp-BCB7i1lR.cjs +1 -0
  83. package/dist/TerminalApp-BYc_gHLe.js +326 -0
  84. package/dist/TerminalApp-Dviz6aP2.cjs +1 -0
  85. package/dist/{TerminalMenuBar-iKLydNda.js → TerminalMenuBar-D5tPmgR_.js} +15 -14
  86. package/dist/TerminalMenuBar-DNshPmCa.cjs +1 -0
  87. package/dist/TerminalMenuBar-HzMSR7XP.cjs +1 -0
  88. package/dist/{TextInput-C3qfxxWI.js → TextInput-C-JtGWn1.js} +264 -263
  89. package/dist/TextInput-CrsmcOip.cjs +1 -0
  90. package/dist/Tooltip-D5Cd9wtz.cjs +1 -0
  91. package/dist/Tooltip-DOeIvhrO.js +1142 -0
  92. package/dist/{UnstyledButton-CI3kyRck.js → UnstyledButton-DGaG-e_G.js} +1 -1
  93. package/dist/UnstyledButton-DX2pTahr.cjs +1 -0
  94. package/dist/UploaderApp-C6xA5Rrf2.cjs +1 -0
  95. package/dist/UploaderApp-DnHIRxB_.cjs +1 -0
  96. package/dist/{UploaderApp-C9W_yCT-.js → UploaderApp-qBfpukR_.js} +118 -117
  97. package/dist/VscIcon-CcMdrFoJ.cjs +1 -0
  98. package/dist/{VscIcon-DueRJVTe.js → VscIcon-DBfVnArE.js} +1 -1
  99. package/dist/create-safe-context-Bboj0GWC.cjs +1 -0
  100. package/dist/desktopStore-CZoA9VHO.cjs +1 -0
  101. package/dist/{desktopStore-B0R1-BeA.js → desktopStore-F8bgLqFl.js} +256 -393
  102. package/dist/getRuntime-BFK0-8R1.cjs +1 -0
  103. package/dist/{getRuntime-CCRXVzJH.js → getRuntime-DAPqFH2W.js} +5 -5
  104. package/dist/imageViewerStore-BB_tssZR.cjs +1 -0
  105. package/dist/{imageViewerStore-CJMRXaQh.js → imageViewerStore-C5kWz0o7.js} +1 -1
  106. package/dist/index.cjs +1 -53
  107. package/dist/index.css +1 -1
  108. package/dist/index.js +1293 -5468
  109. package/dist/is-element-CdV0xajp.cjs +1 -0
  110. package/dist/menuEditStore-CTeM_dns.cjs +1 -0
  111. package/dist/{menuEditStore-C8S_EedM.js → menuEditStore-Cj1zAwxQ.js} +1 -1
  112. package/dist/notesStore-BCEl1D_v.cjs +1 -0
  113. package/dist/{notesStore-DKRgTTFn.js → notesStore-BPyRTHEc.js} +1 -1
  114. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  115. package/dist/{settingsAppStore-KOeWRO6h.js → settingsAppStore-BDQ3ts1y.js} +1 -1
  116. package/dist/settingsAppStore-CMBc13VU.cjs +1 -0
  117. package/dist/{terminalStore-LWWjCvCe.js → terminalStore-IWdf4Mm6.js} +1 -1
  118. package/dist/terminalStore-iIuyodfK.cjs +1 -0
  119. package/dist/use-merged-ref-n9Gw9LNn.cjs +1 -0
  120. package/dist/{use-resolved-styles-api-AVDygMKo.cjs → use-resolved-styles-api-8OXE2oRq.cjs} +1 -1
  121. package/dist/{use-resolved-styles-api-pEOi2wiK.js → use-resolved-styles-api-DNUlJJZf.js} +1 -1
  122. package/dist/use-uncontrolled-DDJVQiM_.cjs +1 -0
  123. package/dist/{useAdaptiveDimensions-CunsU0mn.js → useAdaptiveDimensions-AVDc_qPa.js} +1 -1
  124. package/dist/useAdaptiveDimensions-CfITBJ_m.cjs +1 -0
  125. package/dist/{useCloseInterceptor-CuKAAFnj.js → useCloseInterceptor-BZd3VILp.js} +12 -12
  126. package/dist/useCloseInterceptor-yntBEzNc.cjs +1 -0
  127. package/dist/{useDynamicIcon-GJg3vWsJ.js → useDynamicIcon-Bf0t2foA.js} +1 -1
  128. package/dist/useDynamicIcon-DJ_il30E.cjs +1 -0
  129. package/dist/{useOpenApp-JHCPTBWa.js → useOpenApp-CBIm7Gzl.js} +3 -3
  130. package/dist/useOpenApp-DW4x79Zg.cjs +1 -0
  131. package/dist/useResolvedUrl-BkMPM1fM.cjs +1 -0
  132. package/dist/{useResolvedUrl-DFKXq598.js → useResolvedUrl-DQpLqOoL.js} +2 -2
  133. package/package.json +1 -1
  134. package/dist/AccordionChevron-DBXp38Lm.cjs +0 -1
  135. package/dist/ActionIcon-C_SfdBfx.cjs +0 -1
  136. package/dist/AppEmptyState-BTujnL_b.js +0 -4962
  137. package/dist/AppEmptyState-Dc4GaDfu.cjs +0 -1
  138. package/dist/AppIcon--qzR4sgf.cjs +0 -1
  139. package/dist/AppMenuBar-BiHbNg9V.cjs +0 -9
  140. package/dist/AppMenuBar-CHJy8OF0.js +0 -2639
  141. package/dist/Box-D_64wv6n.cjs +0 -1
  142. package/dist/Button-D0FXpkur.cjs +0 -1
  143. package/dist/CalendarApp-C1HvuJoa.cjs +0 -1
  144. package/dist/CalendarApp-DBEQqsS_.js +0 -1721
  145. package/dist/Center-T4No_FAa.cjs +0 -1
  146. package/dist/CheckIcon-CBMLR6Gc.cjs +0 -1
  147. package/dist/CodeServerApp-B3l5QPuG.cjs +0 -1
  148. package/dist/CodeServerApp-BpeALSaX.js +0 -2
  149. package/dist/CodeServerApp-CRjCngFv.cjs +0 -1
  150. package/dist/ColorPicker-BL4UbKCV.cjs +0 -1
  151. package/dist/CreateItemApp-BU9wmjKM.cjs +0 -1
  152. package/dist/CreateItemApp-t9F-a6wD.cjs +0 -1
  153. package/dist/DeviceInfoApp-Cdju_LIB.cjs +0 -1
  154. package/dist/DeviceInfoApp-CyB01v4D.cjs +0 -1
  155. package/dist/DownloadProgress-IRw1dzLX.cjs +0 -1
  156. package/dist/FileIcon-BCrsxmtt.cjs +0 -1
  157. package/dist/FilePickerApp-Eu0cr2Cm.cjs +0 -1
  158. package/dist/FilesApp-30OjnOuP.cjs +0 -1
  159. package/dist/FilesApp-BvlzPNuO.cjs +0 -1
  160. package/dist/Group-DhwePB84.cjs +0 -1
  161. package/dist/ImageViewerApp-BOz59TGc.cjs +0 -1
  162. package/dist/ImageViewerApp-BeqY6voE.cjs +0 -1
  163. package/dist/ImageViewerApp-DBAfJPSo.js +0 -2
  164. package/dist/ImageViewerMenuBar-Cb0Nr5-M.js +0 -2
  165. package/dist/ImageViewerMenuBar-CoEp0RxK.cjs +0 -1
  166. package/dist/ImageViewerMenuBar-zOkJtqKo.cjs +0 -1
  167. package/dist/MenuEditApp-BoKtj2GH.js +0 -2
  168. package/dist/MenuEditApp-D21sEp86.js +0 -2615
  169. package/dist/MenuEditApp-k3cPfTG9.cjs +0 -1
  170. package/dist/MenuEditApp-sz9GlLVH.cjs +0 -5
  171. package/dist/MenuEditMenuBar-6QxlIDpl.cjs +0 -1
  172. package/dist/MenuEditMenuBar-Bv6R42lf.js +0 -2
  173. package/dist/MenuEditMenuBar-CBsmH_-T.cjs +0 -1
  174. package/dist/NotesApp-BtR55Hva.cjs +0 -207
  175. package/dist/NotesApp-C59exz_9.js +0 -16154
  176. package/dist/NotesApp-D47I5LS_.js +0 -2
  177. package/dist/NotesApp-lOwsi2sg.cjs +0 -1
  178. package/dist/NotesMenuBar-BZITC74y.cjs +0 -1
  179. package/dist/NotesMenuBar-Bp0sPqyR.cjs +0 -1
  180. package/dist/NotesMenuBar-xlfODmMA.js +0 -2
  181. package/dist/Paper-DwCpwWwH.cjs +0 -1
  182. package/dist/PdfApp-1XbFGfoY.cjs +0 -1
  183. package/dist/PdfApp-BhIoJWeK.cjs +0 -1
  184. package/dist/PdfApp-C5Rt1Zaw.js +0 -2
  185. package/dist/PdfApp-C8Hwxxqh.js +0 -38
  186. package/dist/PdfMenuBar-BA9rKuMP.cjs +0 -1
  187. package/dist/PdfMenuBar-JXHqwxhZ.cjs +0 -1
  188. package/dist/PdfMenuBar-R0fu7oYF.js +0 -2
  189. package/dist/PdfMenuBar-sd-9Vk3h.js +0 -38
  190. package/dist/SettingsApp-BA-5B4RA.cjs +0 -1
  191. package/dist/SettingsApp-B_rev1xh.cjs +0 -1
  192. package/dist/SettingsApp-Ck4aUXs5.js +0 -2
  193. package/dist/SettingsApp-DUMKSA3K.js +0 -2425
  194. package/dist/SettingsMenuBar-BPwv8JQK.js +0 -41
  195. package/dist/SettingsMenuBar-D8R7hOik.js +0 -2
  196. package/dist/SettingsMenuBar-DDrjZLmg.cjs +0 -1
  197. package/dist/SettingsMenuBar-DQjUa8g1.cjs +0 -1
  198. package/dist/Slider-Bg_EIBg6.cjs +0 -1
  199. package/dist/Stack-BOaJgV3N.cjs +0 -1
  200. package/dist/StorybookApp-Bkr-7mXp.cjs +0 -1
  201. package/dist/TerminalApp-8XbsKAWa.js +0 -10041
  202. package/dist/TerminalApp-Bq2e7QQu.cjs +0 -1
  203. package/dist/TerminalApp-CVu3Axc9.js +0 -2
  204. package/dist/TerminalApp-b7_d0jRO.cjs +0 -36
  205. package/dist/TerminalMenuBar-Cb8x9laS.js +0 -2
  206. package/dist/TerminalMenuBar-De-FH5AE.cjs +0 -1
  207. package/dist/TerminalMenuBar-yOaWd-hn.cjs +0 -1
  208. package/dist/TextInput-DcYns3hz.cjs +0 -1
  209. package/dist/Tooltip-CAOO-qdx.js +0 -3185
  210. package/dist/Tooltip-DDh_x-CB.cjs +0 -1
  211. package/dist/UnstyledButton-Cl5RuIid.cjs +0 -1
  212. package/dist/UploaderApp-BZXW75A0.cjs +0 -1
  213. package/dist/UploaderApp-CPpStgP5.cjs +0 -1
  214. package/dist/UploaderApp-DHsMQN-f.js +0 -2
  215. package/dist/VscIcon-CxEmqD80.cjs +0 -1
  216. package/dist/chunk-BQCxAhux.js +0 -23
  217. package/dist/chunk-CiTBaPhY.cjs +0 -1
  218. package/dist/create-safe-context-95P-Bfg3.cjs +0 -1
  219. package/dist/desktopStore-Cox-Og1z.cjs +0 -1
  220. package/dist/fc-DejOsQyD.cjs +0 -1
  221. package/dist/fc-kd8WzIER.js +0 -20536
  222. package/dist/fc-xJ_v2ayq.cjs +0 -184
  223. package/dist/fi-BahYsbim.js +0 -9993
  224. package/dist/fi-BkhyTcZo.cjs +0 -1
  225. package/dist/getRuntime-BLXyQZBB.cjs +0 -1
  226. package/dist/iconBase-B4UCuSvv.cjs +0 -1
  227. package/dist/iconBase-D7iPes7B.js +0 -108
  228. package/dist/imageViewerStore-CH1qW6md.cjs +0 -1
  229. package/dist/is-element-BocgicRg.cjs +0 -1
  230. package/dist/menuEditStore-CU7IAg3L.cjs +0 -1
  231. package/dist/notesStore-zKmChTfF.cjs +0 -1
  232. package/dist/react-DYmzHD0X.js +0 -27
  233. package/dist/react-Dldg32sN.cjs +0 -1
  234. package/dist/settingsAppStore-BrlImdAH.cjs +0 -1
  235. package/dist/terminalStore-fZe5t7Ty.cjs +0 -1
  236. package/dist/use-merged-ref-BI9n1hUK.cjs +0 -1
  237. package/dist/use-uncontrolled-BPrfGv0W.cjs +0 -1
  238. package/dist/useAdaptiveDimensions-Btp0m5Pm.cjs +0 -1
  239. package/dist/useCloseInterceptor-a_6Lcuqj.cjs +0 -1
  240. package/dist/useDynamicIcon-SytdL1Tu.cjs +0 -1
  241. package/dist/useOpenApp-BdarhIgl.cjs +0 -1
  242. package/dist/useResolvedUrl-Be5ZlCX7.cjs +0 -1
  243. package/dist/useTranslation-DMRGdqZi.js +0 -279
  244. package/dist/useTranslation-D_O7S4RJ.cjs +0 -1
  245. package/dist/vsc-Ciibqbxo.cjs +0 -1
  246. package/dist/vsc-DGKSpOAR.js +0 -9574
  247. /package/dist/{Colors-hca6raEG.js → Colors-ClnDxnyA.js} +0 -0
  248. /package/dist/{Colors-BxX4G8kX.cjs → Colors-zP2AFgU3.cjs} +0 -0
  249. /package/dist/{useMenuBarUtils-Bp5PiztD.cjs → useMenuBarUtils-nJIPJGIQ.cjs} +0 -0
  250. /package/dist/{useMenuBarUtils-ChmpZjwu.js → useMenuBarUtils-nmu9yehT.js} +0 -0
@@ -1,3185 +0,0 @@
1
- import { D as e, L as t, M as n, O as r, c as i, d as a, h as o, j as s, l as c, n as l, r as u, t as d, v as f, x as p } from "./Box-DRm8EabO.js";
2
- import { t as m } from "./is-element-Bu_JY8Qy.js";
3
- import { t as h } from "./create-safe-context-XT2cxc14.js";
4
- import { n as g, t as _ } from "./use-uncontrolled-A4hm9ATM.js";
5
- import { c as v, d as y, f as b, u as x } from "./TextInput-C3qfxxWI.js";
6
- import { r as S, t as C } from "./use-merged-ref-BT8_u6vW.js";
7
- import { t as w } from "./use-resolved-styles-api-pEOi2wiK.js";
8
- import * as T from "react";
9
- import E, { Children as D, cloneElement as O, createContext as k, use as A, useCallback as j, useEffect as M, useEffectEvent as N, useLayoutEffect as P, useRef as F, useState as ee } from "react";
10
- import { Fragment as te, jsx as I, jsxs as ne } from "react/jsx-runtime";
11
- import * as re from "react-dom";
12
- import { createPortal as ie } from "react-dom";
13
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/get-default-z-index/get-default-z-index.mjs
14
- var ae = {
15
- app: 100,
16
- modal: 200,
17
- popover: 300,
18
- overlay: 400,
19
- max: 9999
20
- };
21
- function L(e) {
22
- return ae[e];
23
- }
24
- //#endregion
25
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/noop/noop.mjs
26
- var oe = () => {};
27
- //#endregion
28
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/close-on-escape/close-on-escape.mjs
29
- function se(e, t = { active: !0 }) {
30
- return typeof e != "function" || !t.active ? t.onKeyDown || oe : (n) => {
31
- n.key === "Escape" && (e(n), t.onTrigger?.());
32
- };
33
- }
34
- //#endregion
35
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-click-outside/use-click-outside.mjs
36
- var ce = ["mousedown", "touchstart"];
37
- function le(e, t, n) {
38
- let r = F(null), i = t || ce, a = N((t) => {
39
- let { target: i } = t ?? {};
40
- if (Array.isArray(n)) {
41
- let r = !document.body.contains(i) && i?.tagName !== "HTML";
42
- n.every((e) => !!e && !t.composedPath().includes(e)) && !r && e(t);
43
- } else r.current && !r.current.contains(i) && e(t);
44
- });
45
- return M(() => (i.forEach((e) => document.addEventListener(e, a)), () => {
46
- i.forEach((e) => document.removeEventListener(e, a));
47
- }), []), r;
48
- }
49
- //#endregion
50
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-focus-return/use-focus-return.mjs
51
- function ue({ opened: e, shouldReturnFocus: t = !0 }) {
52
- let n = F(null), r = () => {
53
- n.current && "focus" in n.current && typeof n.current.focus == "function" && n.current?.focus({ preventScroll: !0 });
54
- };
55
- return y(() => {
56
- let i = -1, a = (e) => {
57
- e.key === "Tab" && window.clearTimeout(i);
58
- };
59
- return document.addEventListener("keydown", a), e ? n.current = document.activeElement : t && (i = window.setTimeout(r, 10)), () => {
60
- window.clearTimeout(i), document.removeEventListener("keydown", a);
61
- };
62
- }, [e, t]), r;
63
- }
64
- //#endregion
65
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-focus-trap/tabbable.mjs
66
- var de = /input|select|textarea|button|object/, fe = "a, input, select, textarea, button, object, [tabindex]";
67
- function pe(e) {
68
- return e.style.display === "none";
69
- }
70
- function me(e) {
71
- if (e.getAttribute("aria-hidden") || e.getAttribute("hidden") || e.getAttribute("type") === "hidden") return !1;
72
- let t = e;
73
- for (; t && !(t === document.body || t.nodeType === 11);) {
74
- if (pe(t)) return !1;
75
- t = t.parentNode;
76
- }
77
- return !0;
78
- }
79
- function he(e) {
80
- let t = e.getAttribute("tabindex");
81
- return t === null && (t = void 0), parseInt(t, 10);
82
- }
83
- function ge(e) {
84
- let t = e.nodeName.toLowerCase(), n = !Number.isNaN(he(e));
85
- return (de.test(t) && !e.disabled || e instanceof HTMLAnchorElement && e.href || n) && me(e);
86
- }
87
- function R(e) {
88
- let t = he(e);
89
- return (Number.isNaN(t) || t >= 0) && ge(e);
90
- }
91
- function _e(e) {
92
- return Array.from(e.querySelectorAll(fe)).filter(R);
93
- }
94
- //#endregion
95
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-focus-trap/scope-tab.mjs
96
- function ve(e, t) {
97
- let n = _e(e);
98
- if (!n.length) {
99
- t.preventDefault();
100
- return;
101
- }
102
- let r = n[t.shiftKey ? 0 : n.length - 1], i = e.getRootNode(), a = r === i.activeElement || e === i.activeElement, o = i.activeElement;
103
- if (o.tagName === "INPUT" && o.getAttribute("type") === "radio" && (a = n.filter((e) => e.getAttribute("type") === "radio" && e.getAttribute("name") === o.getAttribute("name")).includes(r)), !a) return;
104
- t.preventDefault();
105
- let s = n[t.shiftKey ? n.length - 1 : 0];
106
- s && s.focus();
107
- }
108
- //#endregion
109
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-focus-trap/use-focus-trap.mjs
110
- function ye(e = !0) {
111
- let t = F(null), n = (e) => {
112
- let t = e.querySelector("[data-autofocus]");
113
- if (!t) {
114
- let n = Array.from(e.querySelectorAll(fe));
115
- t = n.find(R) || n.find(ge) || null, !t && ge(e) && (t = e);
116
- }
117
- t ? t.focus({ preventScroll: !0 }) : console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node", e);
118
- }, r = j((r) => {
119
- e && r !== null && t.current !== r && (r ? (setTimeout(() => {
120
- r.getRootNode() ? n(r) : console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom", r);
121
- }), t.current = r) : t.current = null);
122
- }, [e]);
123
- return M(() => {
124
- if (!e) return;
125
- t.current && setTimeout(() => n(t.current));
126
- let r = (e) => {
127
- e.key === "Tab" && t.current && ve(t.current, e);
128
- };
129
- return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
130
- }, [e]), r;
131
- }
132
- //#endregion
133
- //#region ../../node_modules/.bun/@mantine+hooks@9.0.0+b1ab299f0a400331/node_modules/@mantine/hooks/esm/use-move/use-move.mjs
134
- function be(e) {
135
- return {
136
- x: g(e.x, 0, 1),
137
- y: g(e.y, 0, 1)
138
- };
139
- }
140
- function z(e, t, n = "ltr") {
141
- let r = F(!1), i = F(!1), a = F(0), [o, s] = ee(!1);
142
- return M(() => {
143
- r.current = !0;
144
- }, []), {
145
- ref: j((o) => {
146
- let c = ({ x: t, y: i }) => {
147
- cancelAnimationFrame(a.current), a.current = requestAnimationFrame(() => {
148
- if (r.current && o) {
149
- o.style.userSelect = "none";
150
- let r = o.getBoundingClientRect();
151
- if (r.width && r.height) {
152
- let a = g((t - r.left) / r.width, 0, 1);
153
- e({
154
- x: n === "ltr" ? a : 1 - a,
155
- y: g((i - r.top) / r.height, 0, 1)
156
- });
157
- }
158
- }
159
- });
160
- }, l = () => {
161
- document.addEventListener("mousemove", m), document.addEventListener("mouseup", f), document.addEventListener("touchmove", _, { passive: !1 }), document.addEventListener("touchend", f);
162
- }, u = () => {
163
- document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", f), document.removeEventListener("touchmove", _), document.removeEventListener("touchend", f);
164
- }, d = () => {
165
- !i.current && r.current && (i.current = !0, typeof t?.onScrubStart == "function" && t.onScrubStart(), s(!0), l());
166
- }, f = () => {
167
- i.current && r.current && (i.current = !1, s(!1), u(), setTimeout(() => {
168
- typeof t?.onScrubEnd == "function" && t.onScrubEnd();
169
- }, 0));
170
- }, p = (e) => {
171
- d(), e.preventDefault(), m(e);
172
- }, m = (e) => c({
173
- x: e.clientX,
174
- y: e.clientY
175
- }), h = (e) => {
176
- e.cancelable && e.preventDefault(), d(), _(e);
177
- }, _ = (e) => {
178
- e.cancelable && e.preventDefault(), c({
179
- x: e.changedTouches[0].clientX,
180
- y: e.changedTouches[0].clientY
181
- });
182
- };
183
- return o?.addEventListener("mousedown", p), o?.addEventListener("touchstart", h, { passive: !1 }), () => {
184
- o && (o.removeEventListener("mousedown", p), o.removeEventListener("touchstart", h));
185
- };
186
- }, [n, e]),
187
- active: o
188
- };
189
- }
190
- //#endregion
191
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/get-ref-prop/get-ref-prop.mjs
192
- function xe(e) {
193
- let t = E.version;
194
- return typeof E.version != "string" || t.startsWith("18.") ? e?.ref : e?.props?.ref;
195
- }
196
- //#endregion
197
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/utils/get-single-element-child/get-single-element-child.mjs
198
- function Se(e) {
199
- let t = D.toArray(e);
200
- return t.length !== 1 || !m(t[0]) ? null : t[0];
201
- }
202
- //#endregion
203
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/Box/get-style-object/get-style-object.mjs
204
- function Ce(e, t) {
205
- return Array.isArray(e) ? [...e].reduce((e, n) => ({
206
- ...e,
207
- ...Ce(n, t)
208
- }), {}) : typeof e == "function" ? e(t) : e ?? {};
209
- }
210
- //#endregion
211
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/core/DirectionProvider/DirectionProvider.mjs
212
- var we = k({
213
- dir: "ltr",
214
- toggleDirection: () => {},
215
- setDirection: () => {}
216
- });
217
- function Te() {
218
- return A(we);
219
- }
220
- //#endregion
221
- //#region ../../node_modules/.bun/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
222
- function Ee() {
223
- return typeof window < "u";
224
- }
225
- function B(e) {
226
- return De(e) ? (e.nodeName || "").toLowerCase() : "#document";
227
- }
228
- function V(e) {
229
- var t;
230
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
231
- }
232
- function H(e) {
233
- return ((De(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
234
- }
235
- function De(e) {
236
- return Ee() ? e instanceof Node || e instanceof V(e).Node : !1;
237
- }
238
- function U(e) {
239
- return Ee() ? e instanceof Element || e instanceof V(e).Element : !1;
240
- }
241
- function W(e) {
242
- return Ee() ? e instanceof HTMLElement || e instanceof V(e).HTMLElement : !1;
243
- }
244
- function Oe(e) {
245
- return !Ee() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof V(e).ShadowRoot;
246
- }
247
- function ke(e) {
248
- let { overflow: t, overflowX: n, overflowY: r, display: i } = K(e);
249
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
250
- }
251
- function G(e) {
252
- return /^(table|td|th)$/.test(B(e));
253
- }
254
- function Ae(e) {
255
- try {
256
- if (e.matches(":popover-open")) return !0;
257
- } catch {}
258
- try {
259
- return e.matches(":modal");
260
- } catch {
261
- return !1;
262
- }
263
- }
264
- var je = /transform|translate|scale|rotate|perspective|filter/, Me = /paint|layout|strict|content/, Ne = (e) => !!e && e !== "none", Pe;
265
- function Fe(e) {
266
- let t = U(e) ? K(e) : e;
267
- return Ne(t.transform) || Ne(t.translate) || Ne(t.scale) || Ne(t.rotate) || Ne(t.perspective) || !Le() && (Ne(t.backdropFilter) || Ne(t.filter)) || je.test(t.willChange || "") || Me.test(t.contain || "");
268
- }
269
- function Ie(e) {
270
- let t = Be(e);
271
- for (; W(t) && !Re(t);) {
272
- if (Fe(t)) return t;
273
- if (Ae(t)) return null;
274
- t = Be(t);
275
- }
276
- return null;
277
- }
278
- function Le() {
279
- return Pe ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Pe;
280
- }
281
- function Re(e) {
282
- return /^(html|body|#document)$/.test(B(e));
283
- }
284
- function K(e) {
285
- return V(e).getComputedStyle(e);
286
- }
287
- function ze(e) {
288
- return U(e) ? {
289
- scrollLeft: e.scrollLeft,
290
- scrollTop: e.scrollTop
291
- } : {
292
- scrollLeft: e.scrollX,
293
- scrollTop: e.scrollY
294
- };
295
- }
296
- function Be(e) {
297
- if (B(e) === "html") return e;
298
- let t = e.assignedSlot || e.parentNode || Oe(e) && e.host || H(e);
299
- return Oe(t) ? t.host : t;
300
- }
301
- function Ve(e) {
302
- let t = Be(e);
303
- return Re(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : W(t) && ke(t) ? t : Ve(t);
304
- }
305
- function He(e, t, n) {
306
- t === void 0 && (t = []), n === void 0 && (n = !0);
307
- let r = Ve(e), i = r === e.ownerDocument?.body, a = V(r);
308
- if (i) {
309
- let e = Ue(a);
310
- return t.concat(a, a.visualViewport || [], ke(r) ? r : [], e && n ? He(e) : []);
311
- } else return t.concat(r, He(r, [], n));
312
- }
313
- function Ue(e) {
314
- return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
315
- }
316
- //#endregion
317
- //#region ../../node_modules/.bun/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
318
- var We = [
319
- "top",
320
- "right",
321
- "bottom",
322
- "left"
323
- ], q = Math.min, J = Math.max, Ge = Math.round, Ke = Math.floor, Y = (e) => ({
324
- x: e,
325
- y: e
326
- }), qe = {
327
- left: "right",
328
- right: "left",
329
- bottom: "top",
330
- top: "bottom"
331
- };
332
- function Je(e, t, n) {
333
- return J(e, q(t, n));
334
- }
335
- function X(e, t) {
336
- return typeof e == "function" ? e(t) : e;
337
- }
338
- function Z(e) {
339
- return e.split("-")[0];
340
- }
341
- function Ye(e) {
342
- return e.split("-")[1];
343
- }
344
- function Xe(e) {
345
- return e === "x" ? "y" : "x";
346
- }
347
- function Ze(e) {
348
- return e === "y" ? "height" : "width";
349
- }
350
- function Q(e) {
351
- let t = e[0];
352
- return t === "t" || t === "b" ? "y" : "x";
353
- }
354
- function Qe(e) {
355
- return Xe(Q(e));
356
- }
357
- function $e(e, t, n) {
358
- n === void 0 && (n = !1);
359
- let r = Ye(e), i = Qe(e), a = Ze(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
360
- return t.reference[a] > t.floating[a] && (o = ct(o)), [o, ct(o)];
361
- }
362
- function et(e) {
363
- let t = ct(e);
364
- return [
365
- tt(e),
366
- t,
367
- tt(t)
368
- ];
369
- }
370
- function tt(e) {
371
- return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
372
- }
373
- var nt = ["left", "right"], rt = ["right", "left"], it = ["top", "bottom"], at = ["bottom", "top"];
374
- function ot(e, t, n) {
375
- switch (e) {
376
- case "top":
377
- case "bottom": return n ? t ? rt : nt : t ? nt : rt;
378
- case "left":
379
- case "right": return t ? it : at;
380
- default: return [];
381
- }
382
- }
383
- function st(e, t, n, r) {
384
- let i = Ye(e), a = ot(Z(e), n === "start", r);
385
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(tt)))), a;
386
- }
387
- function ct(e) {
388
- let t = Z(e);
389
- return qe[t] + e.slice(t.length);
390
- }
391
- function lt(e) {
392
- return {
393
- top: 0,
394
- right: 0,
395
- bottom: 0,
396
- left: 0,
397
- ...e
398
- };
399
- }
400
- function ut(e) {
401
- return typeof e == "number" ? {
402
- top: e,
403
- right: e,
404
- bottom: e,
405
- left: e
406
- } : lt(e);
407
- }
408
- function dt(e) {
409
- let { x: t, y: n, width: r, height: i } = e;
410
- return {
411
- width: r,
412
- height: i,
413
- top: n,
414
- left: t,
415
- right: t + r,
416
- bottom: n + i,
417
- x: t,
418
- y: n
419
- };
420
- }
421
- //#endregion
422
- //#region ../../node_modules/.bun/@floating-ui+react@0.27.19+bf16f8eded5e12ee/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs
423
- function ft() {
424
- let e = navigator.userAgentData;
425
- return e != null && e.platform ? e.platform : navigator.platform;
426
- }
427
- function pt() {
428
- let e = navigator.userAgentData;
429
- return e && Array.isArray(e.brands) ? e.brands.map((e) => {
430
- let { brand: t, version: n } = e;
431
- return t + "/" + n;
432
- }).join(" ") : navigator.userAgent;
433
- }
434
- function mt() {
435
- return /apple/i.test(navigator.vendor);
436
- }
437
- function ht() {
438
- return ft().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
439
- }
440
- function gt() {
441
- return pt().includes("jsdom/");
442
- }
443
- var _t = "data-floating-ui-focusable", vt = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
444
- function yt(e) {
445
- let t = e.activeElement;
446
- for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null;) {
447
- var n;
448
- t = t.shadowRoot.activeElement;
449
- }
450
- return t;
451
- }
452
- function bt(e, t) {
453
- if (!e || !t) return !1;
454
- let n = t.getRootNode == null ? void 0 : t.getRootNode();
455
- if (e.contains(t)) return !0;
456
- if (n && Oe(n)) {
457
- let n = t;
458
- for (; n;) {
459
- if (e === n) return !0;
460
- n = n.parentNode || n.host;
461
- }
462
- }
463
- return !1;
464
- }
465
- function xt(e) {
466
- return "composedPath" in e ? e.composedPath()[0] : e.target;
467
- }
468
- function St(e, t) {
469
- if (t == null) return !1;
470
- if ("composedPath" in e) return e.composedPath().includes(t);
471
- let n = e;
472
- return n.target != null && t.contains(n.target);
473
- }
474
- function Ct(e) {
475
- return e.matches("html,body");
476
- }
477
- function wt(e) {
478
- return e?.ownerDocument || document;
479
- }
480
- function Tt(e) {
481
- return W(e) && e.matches(vt);
482
- }
483
- function Et(e) {
484
- if (!e || gt()) return !0;
485
- try {
486
- return e.matches(":focus-visible");
487
- } catch {
488
- return !0;
489
- }
490
- }
491
- function Dt(e) {
492
- return e ? e.hasAttribute(_t) ? e : e.querySelector("[" + _t + "]") || e : null;
493
- }
494
- function Ot(e, t, n) {
495
- return n === void 0 && (n = !0), e.filter((e) => e.parentId === t && (!n || e.context?.open)).flatMap((t) => [t, ...Ot(e, t.id, n)]);
496
- }
497
- function kt(e) {
498
- return "nativeEvent" in e;
499
- }
500
- function At(e, t) {
501
- let n = ["mouse", "pen"];
502
- return t || n.push("", void 0), n.includes(e);
503
- }
504
- var jt = typeof document < "u" ? P : function() {}, Mt = { ...T };
505
- function Nt(e) {
506
- let t = T.useRef(e);
507
- return jt(() => {
508
- t.current = e;
509
- }), t;
510
- }
511
- var Pt = Mt.useInsertionEffect || ((e) => e());
512
- function Ft(e) {
513
- let t = T.useRef(() => {
514
- if (process.env.NODE_ENV !== "production") throw Error("Cannot call an event handler while rendering.");
515
- });
516
- return Pt(() => {
517
- t.current = e;
518
- }), T.useCallback(function() {
519
- var e = [...arguments];
520
- return t.current == null ? void 0 : t.current(...e);
521
- }, []);
522
- }
523
- //#endregion
524
- //#region ../../node_modules/.bun/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
525
- function It(e, t, n) {
526
- let { reference: r, floating: i } = e, a = Q(t), o = Qe(t), s = Ze(o), c = Z(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
527
- switch (c) {
528
- case "top":
529
- p = {
530
- x: u,
531
- y: r.y - i.height
532
- };
533
- break;
534
- case "bottom":
535
- p = {
536
- x: u,
537
- y: r.y + r.height
538
- };
539
- break;
540
- case "right":
541
- p = {
542
- x: r.x + r.width,
543
- y: d
544
- };
545
- break;
546
- case "left":
547
- p = {
548
- x: r.x - i.width,
549
- y: d
550
- };
551
- break;
552
- default: p = {
553
- x: r.x,
554
- y: r.y
555
- };
556
- }
557
- switch (Ye(t)) {
558
- case "start":
559
- p[o] -= f * (n && l ? -1 : 1);
560
- break;
561
- case "end":
562
- p[o] += f * (n && l ? -1 : 1);
563
- break;
564
- }
565
- return p;
566
- }
567
- async function Lt(e, t) {
568
- t === void 0 && (t = {});
569
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = X(t, e), p = ut(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = dt(await i.getClippingRect({
570
- element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
571
- boundary: c,
572
- rootBoundary: l,
573
- strategy: s
574
- })), g = u === "floating" ? {
575
- x: n,
576
- y: r,
577
- width: a.floating.width,
578
- height: a.floating.height
579
- } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
580
- x: 1,
581
- y: 1
582
- }, y = dt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
583
- elements: o,
584
- rect: g,
585
- offsetParent: _,
586
- strategy: s
587
- }) : g);
588
- return {
589
- top: (h.top - y.top + p.top) / v.y,
590
- bottom: (y.bottom - h.bottom + p.bottom) / v.y,
591
- left: (h.left - y.left + p.left) / v.x,
592
- right: (y.right - h.right + p.right) / v.x
593
- };
594
- }
595
- var Rt = 50, zt = async (e, t, n) => {
596
- let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
597
- ...o,
598
- detectOverflow: Lt
599
- }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
600
- reference: e,
601
- floating: t,
602
- strategy: i
603
- }), { x: u, y: d } = It(l, r, c), f = r, p = 0, m = {};
604
- for (let n = 0; n < a.length; n++) {
605
- let h = a[n];
606
- if (!h) continue;
607
- let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
608
- x: u,
609
- y: d,
610
- initialPlacement: r,
611
- placement: f,
612
- strategy: i,
613
- middlewareData: m,
614
- rects: l,
615
- platform: s,
616
- elements: {
617
- reference: e,
618
- floating: t
619
- }
620
- });
621
- u = v ?? u, d = y ?? d, m[g] = {
622
- ...m[g],
623
- ...b
624
- }, x && p < Rt && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
625
- reference: e,
626
- floating: t,
627
- strategy: i
628
- }) : x.rects), {x: u, y: d} = It(l, f, c)), n = -1);
629
- }
630
- return {
631
- x: u,
632
- y: d,
633
- placement: f,
634
- strategy: i,
635
- middlewareData: m
636
- };
637
- }, Bt = (e) => ({
638
- name: "arrow",
639
- options: e,
640
- async fn(t) {
641
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = X(e, t) || {};
642
- if (l == null) return {};
643
- let d = ut(u), f = {
644
- x: n,
645
- y: r
646
- }, p = Qe(i), m = Ze(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
647
- (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
648
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = q(d[_], T), D = q(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, j = Je(O, A, k), M = !c.arrow && Ye(i) != null && A !== j && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, N = M ? A < O ? A - O : A - k : 0;
649
- return {
650
- [p]: f[p] + N,
651
- data: {
652
- [p]: j,
653
- centerOffset: A - j - N,
654
- ...M && { alignmentOffset: N }
655
- },
656
- reset: M
657
- };
658
- }
659
- }), Vt = function(e) {
660
- return e === void 0 && (e = {}), {
661
- name: "flip",
662
- options: e,
663
- async fn(t) {
664
- var n;
665
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = X(e, t);
666
- if ((n = i.arrow) != null && n.alignmentOffset) return {};
667
- let g = Z(r), _ = Q(o), v = Z(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [ct(o)] : et(o)), x = p !== "none";
668
- !d && x && b.push(...st(o, m, p, y));
669
- let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
670
- if (l && w.push(C[g]), u) {
671
- let e = $e(r, a, y);
672
- w.push(C[e[0]], C[e[1]]);
673
- }
674
- if (T = [...T, {
675
- placement: r,
676
- overflows: w
677
- }], !w.every((e) => e <= 0)) {
678
- let e = (i.flip?.index || 0) + 1, t = S[e];
679
- if (t && (!(u === "alignment" && _ !== Q(t)) || T.every((e) => Q(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
680
- data: {
681
- index: e,
682
- overflows: T
683
- },
684
- reset: { placement: t }
685
- };
686
- let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
687
- if (!n) switch (f) {
688
- case "bestFit": {
689
- let e = T.filter((e) => {
690
- if (x) {
691
- let t = Q(e.placement);
692
- return t === _ || t === "y";
693
- }
694
- return !0;
695
- }).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
696
- e && (n = e);
697
- break;
698
- }
699
- case "initialPlacement":
700
- n = o;
701
- break;
702
- }
703
- if (r !== n) return { reset: { placement: n } };
704
- }
705
- return {};
706
- }
707
- };
708
- };
709
- function Ht(e, t) {
710
- return {
711
- top: e.top - t.height,
712
- right: e.right - t.width,
713
- bottom: e.bottom - t.height,
714
- left: e.left - t.width
715
- };
716
- }
717
- function Ut(e) {
718
- return We.some((t) => e[t] >= 0);
719
- }
720
- var Wt = function(e) {
721
- return e === void 0 && (e = {}), {
722
- name: "hide",
723
- options: e,
724
- async fn(t) {
725
- let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = X(e, t);
726
- switch (i) {
727
- case "referenceHidden": {
728
- let e = Ht(await r.detectOverflow(t, {
729
- ...a,
730
- elementContext: "reference"
731
- }), n.reference);
732
- return { data: {
733
- referenceHiddenOffsets: e,
734
- referenceHidden: Ut(e)
735
- } };
736
- }
737
- case "escaped": {
738
- let e = Ht(await r.detectOverflow(t, {
739
- ...a,
740
- altBoundary: !0
741
- }), n.floating);
742
- return { data: {
743
- escapedOffsets: e,
744
- escaped: Ut(e)
745
- } };
746
- }
747
- default: return {};
748
- }
749
- }
750
- };
751
- };
752
- function Gt(e) {
753
- let t = q(...e.map((e) => e.left)), n = q(...e.map((e) => e.top)), r = J(...e.map((e) => e.right)), i = J(...e.map((e) => e.bottom));
754
- return {
755
- x: t,
756
- y: n,
757
- width: r - t,
758
- height: i - n
759
- };
760
- }
761
- function Kt(e) {
762
- let t = e.slice().sort((e, t) => e.y - t.y), n = [], r = null;
763
- for (let e = 0; e < t.length; e++) {
764
- let i = t[e];
765
- !r || i.y - r.y > r.height / 2 ? n.push([i]) : n[n.length - 1].push(i), r = i;
766
- }
767
- return n.map((e) => dt(Gt(e)));
768
- }
769
- var qt = function(e) {
770
- return e === void 0 && (e = {}), {
771
- name: "inline",
772
- options: e,
773
- async fn(t) {
774
- let { placement: n, elements: r, rects: i, platform: a, strategy: o } = t, { padding: s = 2, x: c, y: l } = X(e, t), u = Array.from(await (a.getClientRects == null ? void 0 : a.getClientRects(r.reference)) || []), d = Kt(u), f = dt(Gt(u)), p = ut(s);
775
- function m() {
776
- if (d.length === 2 && d[0].left > d[1].right && c != null && l != null) return d.find((e) => c > e.left - p.left && c < e.right + p.right && l > e.top - p.top && l < e.bottom + p.bottom) || f;
777
- if (d.length >= 2) {
778
- if (Q(n) === "y") {
779
- let e = d[0], t = d[d.length - 1], r = Z(n) === "top", i = e.top, a = t.bottom, o = r ? e.left : t.left, s = r ? e.right : t.right;
780
- return {
781
- top: i,
782
- bottom: a,
783
- left: o,
784
- right: s,
785
- width: s - o,
786
- height: a - i,
787
- x: o,
788
- y: i
789
- };
790
- }
791
- let e = Z(n) === "left", t = J(...d.map((e) => e.right)), r = q(...d.map((e) => e.left)), i = d.filter((n) => e ? n.left === r : n.right === t), a = i[0].top, o = i[i.length - 1].bottom, s = r, c = t;
792
- return {
793
- top: a,
794
- bottom: o,
795
- left: s,
796
- right: c,
797
- width: c - s,
798
- height: o - a,
799
- x: s,
800
- y: a
801
- };
802
- }
803
- return f;
804
- }
805
- let h = await a.getElementRects({
806
- reference: { getBoundingClientRect: m },
807
- floating: r.floating,
808
- strategy: o
809
- });
810
- return i.reference.x !== h.reference.x || i.reference.y !== h.reference.y || i.reference.width !== h.reference.width || i.reference.height !== h.reference.height ? { reset: { rects: h } } : {};
811
- }
812
- };
813
- }, Jt = /* @__PURE__ */ new Set(["left", "top"]);
814
- async function Yt(e, t) {
815
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Z(n), s = Ye(n), c = Q(n) === "y", l = Jt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = X(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
816
- mainAxis: d,
817
- crossAxis: 0,
818
- alignmentAxis: null
819
- } : {
820
- mainAxis: d.mainAxis || 0,
821
- crossAxis: d.crossAxis || 0,
822
- alignmentAxis: d.alignmentAxis
823
- };
824
- return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
825
- x: p * u,
826
- y: f * l
827
- } : {
828
- x: f * l,
829
- y: p * u
830
- };
831
- }
832
- var Xt = function(e) {
833
- return e === void 0 && (e = 0), {
834
- name: "offset",
835
- options: e,
836
- async fn(t) {
837
- var n;
838
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Yt(t, e);
839
- return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
840
- x: r + s.x,
841
- y: i + s.y,
842
- data: {
843
- ...s,
844
- placement: a
845
- }
846
- };
847
- }
848
- };
849
- }, Zt = function(e) {
850
- return e === void 0 && (e = {}), {
851
- name: "shift",
852
- options: e,
853
- async fn(t) {
854
- let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
855
- let { x: t, y: n } = e;
856
- return {
857
- x: t,
858
- y: n
859
- };
860
- } }, ...l } = X(e, t), u = {
861
- x: n,
862
- y: r
863
- }, d = await a.detectOverflow(t, l), f = Q(Z(i)), p = Xe(f), m = u[p], h = u[f];
864
- if (o) {
865
- let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
866
- m = Je(n, m, r);
867
- }
868
- if (s) {
869
- let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
870
- h = Je(n, h, r);
871
- }
872
- let g = c.fn({
873
- ...t,
874
- [p]: m,
875
- [f]: h
876
- });
877
- return {
878
- ...g,
879
- data: {
880
- x: g.x - n,
881
- y: g.y - r,
882
- enabled: {
883
- [p]: o,
884
- [f]: s
885
- }
886
- }
887
- };
888
- }
889
- };
890
- }, Qt = function(e) {
891
- return e === void 0 && (e = {}), {
892
- options: e,
893
- fn(t) {
894
- let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = X(e, t), u = {
895
- x: n,
896
- y: r
897
- }, d = Q(i), f = Xe(d), p = u[f], m = u[d], h = X(s, t), g = typeof h == "number" ? {
898
- mainAxis: h,
899
- crossAxis: 0
900
- } : {
901
- mainAxis: 0,
902
- crossAxis: 0,
903
- ...h
904
- };
905
- if (c) {
906
- let e = f === "y" ? "height" : "width", t = a.reference[f] - a.floating[e] + g.mainAxis, n = a.reference[f] + a.reference[e] - g.mainAxis;
907
- p < t ? p = t : p > n && (p = n);
908
- }
909
- if (l) {
910
- let e = f === "y" ? "width" : "height", t = Jt.has(Z(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
911
- m < n ? m = n : m > r && (m = r);
912
- }
913
- return {
914
- [f]: p,
915
- [d]: m
916
- };
917
- }
918
- };
919
- }, $t = function(e) {
920
- return e === void 0 && (e = {}), {
921
- name: "size",
922
- options: e,
923
- async fn(t) {
924
- var n, r;
925
- let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = X(e, t), u = await o.detectOverflow(t, l), d = Z(i), f = Ye(i), p = Q(i) === "y", { width: m, height: h } = a.floating, g, _;
926
- d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
927
- let v = h - u.top - u.bottom, y = m - u.left - u.right, b = q(h - u[g], v), x = q(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
928
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
929
- let e = J(u.left, 0), t = J(u.right, 0), n = J(u.top, 0), r = J(u.bottom, 0);
930
- p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : J(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : J(u.top, u.bottom));
931
- }
932
- await c({
933
- ...t,
934
- availableWidth: w,
935
- availableHeight: C
936
- });
937
- let T = await o.getDimensions(s.floating);
938
- return m !== T.width || h !== T.height ? { reset: { rects: !0 } } : {};
939
- }
940
- };
941
- };
942
- //#endregion
943
- //#region ../../node_modules/.bun/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
944
- function en(e) {
945
- let t = K(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = W(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Ge(n) !== a || Ge(r) !== o;
946
- return s && (n = a, r = o), {
947
- width: n,
948
- height: r,
949
- $: s
950
- };
951
- }
952
- function tn(e) {
953
- return U(e) ? e : e.contextElement;
954
- }
955
- function nn(e) {
956
- let t = tn(e);
957
- if (!W(t)) return Y(1);
958
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = en(t), o = (a ? Ge(n.width) : n.width) / r, s = (a ? Ge(n.height) : n.height) / i;
959
- return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
960
- x: o,
961
- y: s
962
- };
963
- }
964
- var rn = /* @__PURE__ */ Y(0);
965
- function an(e) {
966
- let t = V(e);
967
- return !Le() || !t.visualViewport ? rn : {
968
- x: t.visualViewport.offsetLeft,
969
- y: t.visualViewport.offsetTop
970
- };
971
- }
972
- function on(e, t, n) {
973
- return t === void 0 && (t = !1), !n || t && n !== V(e) ? !1 : t;
974
- }
975
- function sn(e, t, n, r) {
976
- t === void 0 && (t = !1), n === void 0 && (n = !1);
977
- let i = e.getBoundingClientRect(), a = tn(e), o = Y(1);
978
- t && (r ? U(r) && (o = nn(r)) : o = nn(e));
979
- let s = on(a, n, r) ? an(a) : Y(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
980
- if (a) {
981
- let e = V(a), t = r && U(r) ? V(r) : r, n = e, i = Ue(n);
982
- for (; i && r && t !== n;) {
983
- let e = nn(i), t = i.getBoundingClientRect(), r = K(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
984
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = V(i), i = Ue(n);
985
- }
986
- }
987
- return dt({
988
- width: u,
989
- height: d,
990
- x: c,
991
- y: l
992
- });
993
- }
994
- function cn(e, t) {
995
- let n = ze(e).scrollLeft;
996
- return t ? t.left + n : sn(H(e)).left + n;
997
- }
998
- function ln(e, t) {
999
- let n = e.getBoundingClientRect();
1000
- return {
1001
- x: n.left + t.scrollLeft - cn(e, n),
1002
- y: n.top + t.scrollTop
1003
- };
1004
- }
1005
- function un(e) {
1006
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = H(r), s = t ? Ae(t.floating) : !1;
1007
- if (r === o || s && a) return n;
1008
- let c = {
1009
- scrollLeft: 0,
1010
- scrollTop: 0
1011
- }, l = Y(1), u = Y(0), d = W(r);
1012
- if ((d || !d && !a) && ((B(r) !== "body" || ke(o)) && (c = ze(r)), d)) {
1013
- let e = sn(r);
1014
- l = nn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
1015
- }
1016
- let f = o && !d && !a ? ln(o, c) : Y(0);
1017
- return {
1018
- width: n.width * l.x,
1019
- height: n.height * l.y,
1020
- x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
1021
- y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
1022
- };
1023
- }
1024
- function dn(e) {
1025
- return Array.from(e.getClientRects());
1026
- }
1027
- function fn(e) {
1028
- let t = H(e), n = ze(e), r = e.ownerDocument.body, i = J(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = J(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + cn(e), s = -n.scrollTop;
1029
- return K(r).direction === "rtl" && (o += J(t.clientWidth, r.clientWidth) - i), {
1030
- width: i,
1031
- height: a,
1032
- x: o,
1033
- y: s
1034
- };
1035
- }
1036
- var pn = 25;
1037
- function mn(e, t) {
1038
- let n = V(e), r = H(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
1039
- if (i) {
1040
- a = i.width, o = i.height;
1041
- let e = Le();
1042
- (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
1043
- }
1044
- let l = cn(r);
1045
- if (l <= 0) {
1046
- let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
1047
- o <= pn && (a -= o);
1048
- } else l <= pn && (a += l);
1049
- return {
1050
- width: a,
1051
- height: o,
1052
- x: s,
1053
- y: c
1054
- };
1055
- }
1056
- function hn(e, t) {
1057
- let n = sn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = W(e) ? nn(e) : Y(1);
1058
- return {
1059
- width: e.clientWidth * a.x,
1060
- height: e.clientHeight * a.y,
1061
- x: i * a.x,
1062
- y: r * a.y
1063
- };
1064
- }
1065
- function gn(e, t, n) {
1066
- let r;
1067
- if (t === "viewport") r = mn(e, n);
1068
- else if (t === "document") r = fn(H(e));
1069
- else if (U(t)) r = hn(t, n);
1070
- else {
1071
- let n = an(e);
1072
- r = {
1073
- x: t.x - n.x,
1074
- y: t.y - n.y,
1075
- width: t.width,
1076
- height: t.height
1077
- };
1078
- }
1079
- return dt(r);
1080
- }
1081
- function _n(e, t) {
1082
- let n = Be(e);
1083
- return n === t || !U(n) || Re(n) ? !1 : K(n).position === "fixed" || _n(n, t);
1084
- }
1085
- function vn(e, t) {
1086
- let n = t.get(e);
1087
- if (n) return n;
1088
- let r = He(e, [], !1).filter((e) => U(e) && B(e) !== "body"), i = null, a = K(e).position === "fixed", o = a ? Be(e) : e;
1089
- for (; U(o) && !Re(o);) {
1090
- let t = K(o), n = Fe(o);
1091
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || ke(o) && !n && _n(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Be(o);
1092
- }
1093
- return t.set(e, r), r;
1094
- }
1095
- function yn(e) {
1096
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Ae(t) ? [] : vn(t, this._c) : [].concat(n), r], o = gn(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
1097
- for (let e = 1; e < a.length; e++) {
1098
- let n = gn(t, a[e], i);
1099
- s = J(n.top, s), c = q(n.right, c), l = q(n.bottom, l), u = J(n.left, u);
1100
- }
1101
- return {
1102
- width: c - u,
1103
- height: l - s,
1104
- x: u,
1105
- y: s
1106
- };
1107
- }
1108
- function bn(e) {
1109
- let { width: t, height: n } = en(e);
1110
- return {
1111
- width: t,
1112
- height: n
1113
- };
1114
- }
1115
- function xn(e, t, n) {
1116
- let r = W(t), i = H(t), a = n === "fixed", o = sn(e, !0, a, t), s = {
1117
- scrollLeft: 0,
1118
- scrollTop: 0
1119
- }, c = Y(0);
1120
- function l() {
1121
- c.x = cn(i);
1122
- }
1123
- if (r || !r && !a) if ((B(t) !== "body" || ke(i)) && (s = ze(t)), r) {
1124
- let e = sn(t, !0, a, t);
1125
- c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
1126
- } else i && l();
1127
- a && !r && i && l();
1128
- let u = i && !r && !a ? ln(i, s) : Y(0);
1129
- return {
1130
- x: o.left + s.scrollLeft - c.x - u.x,
1131
- y: o.top + s.scrollTop - c.y - u.y,
1132
- width: o.width,
1133
- height: o.height
1134
- };
1135
- }
1136
- function Sn(e) {
1137
- return K(e).position === "static";
1138
- }
1139
- function Cn(e, t) {
1140
- if (!W(e) || K(e).position === "fixed") return null;
1141
- if (t) return t(e);
1142
- let n = e.offsetParent;
1143
- return H(e) === n && (n = n.ownerDocument.body), n;
1144
- }
1145
- function wn(e, t) {
1146
- let n = V(e);
1147
- if (Ae(e)) return n;
1148
- if (!W(e)) {
1149
- let t = Be(e);
1150
- for (; t && !Re(t);) {
1151
- if (U(t) && !Sn(t)) return t;
1152
- t = Be(t);
1153
- }
1154
- return n;
1155
- }
1156
- let r = Cn(e, t);
1157
- for (; r && G(r) && Sn(r);) r = Cn(r, t);
1158
- return r && Re(r) && Sn(r) && !Fe(r) ? n : r || Ie(e) || n;
1159
- }
1160
- var Tn = async function(e) {
1161
- let t = this.getOffsetParent || wn, n = this.getDimensions, r = await n(e.floating);
1162
- return {
1163
- reference: xn(e.reference, await t(e.floating), e.strategy),
1164
- floating: {
1165
- x: 0,
1166
- y: 0,
1167
- width: r.width,
1168
- height: r.height
1169
- }
1170
- };
1171
- };
1172
- function En(e) {
1173
- return K(e).direction === "rtl";
1174
- }
1175
- var Dn = {
1176
- convertOffsetParentRelativeRectToViewportRelativeRect: un,
1177
- getDocumentElement: H,
1178
- getClippingRect: yn,
1179
- getOffsetParent: wn,
1180
- getElementRects: Tn,
1181
- getClientRects: dn,
1182
- getDimensions: bn,
1183
- getScale: nn,
1184
- isElement: U,
1185
- isRTL: En
1186
- };
1187
- function On(e, t) {
1188
- return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1189
- }
1190
- function kn(e, t) {
1191
- let n = null, r, i = H(e);
1192
- function a() {
1193
- var e;
1194
- clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
1195
- }
1196
- function o(s, c) {
1197
- s === void 0 && (s = !1), c === void 0 && (c = 1), a();
1198
- let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
1199
- if (s || t(), !f || !p) return;
1200
- let m = Ke(d), h = Ke(i.clientWidth - (u + f)), g = Ke(i.clientHeight - (d + p)), _ = Ke(u), v = {
1201
- rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
1202
- threshold: J(0, q(1, c)) || 1
1203
- }, y = !0;
1204
- function b(t) {
1205
- let n = t[0].intersectionRatio;
1206
- if (n !== c) {
1207
- if (!y) return o();
1208
- n ? o(!1, n) : r = setTimeout(() => {
1209
- o(!1, 1e-7);
1210
- }, 1e3);
1211
- }
1212
- n === 1 && !On(l, e.getBoundingClientRect()) && o(), y = !1;
1213
- }
1214
- try {
1215
- n = new IntersectionObserver(b, {
1216
- ...v,
1217
- root: i.ownerDocument
1218
- });
1219
- } catch {
1220
- n = new IntersectionObserver(b, v);
1221
- }
1222
- n.observe(e);
1223
- }
1224
- return o(!0), a;
1225
- }
1226
- function An(e, t, n, r) {
1227
- r === void 0 && (r = {});
1228
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = tn(e), u = i || a ? [...l ? He(l) : [], ...t ? He(t) : []] : [];
1229
- u.forEach((e) => {
1230
- i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
1231
- });
1232
- let d = l && s ? kn(l, n) : null, f = -1, p = null;
1233
- o && (p = new ResizeObserver((e) => {
1234
- let [r] = e;
1235
- r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
1236
- var e;
1237
- (e = p) == null || e.observe(t);
1238
- })), n();
1239
- }), l && !c && p.observe(l), t && p.observe(t));
1240
- let m, h = c ? sn(e) : null;
1241
- c && g();
1242
- function g() {
1243
- let t = sn(e);
1244
- h && !On(h, t) && n(), h = t, m = requestAnimationFrame(g);
1245
- }
1246
- return n(), () => {
1247
- var e;
1248
- u.forEach((e) => {
1249
- i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
1250
- }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
1251
- };
1252
- }
1253
- var jn = Xt, Mn = Zt, Nn = Vt, Pn = $t, Fn = Wt, In = Bt, Ln = qt, Rn = Qt, zn = (e, t, n) => {
1254
- let r = /* @__PURE__ */ new Map(), i = {
1255
- platform: Dn,
1256
- ...n
1257
- }, a = {
1258
- ...i.platform,
1259
- _c: r
1260
- };
1261
- return zt(e, t, {
1262
- ...i,
1263
- platform: a
1264
- });
1265
- }, Bn = typeof document < "u" ? P : function() {};
1266
- function Vn(e, t) {
1267
- if (e === t) return !0;
1268
- if (typeof e != typeof t) return !1;
1269
- if (typeof e == "function" && e.toString() === t.toString()) return !0;
1270
- let n, r, i;
1271
- if (e && t && typeof e == "object") {
1272
- if (Array.isArray(e)) {
1273
- if (n = e.length, n !== t.length) return !1;
1274
- for (r = n; r-- !== 0;) if (!Vn(e[r], t[r])) return !1;
1275
- return !0;
1276
- }
1277
- if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
1278
- for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
1279
- for (r = n; r-- !== 0;) {
1280
- let n = i[r];
1281
- if (!(n === "_owner" && e.$$typeof) && !Vn(e[n], t[n])) return !1;
1282
- }
1283
- return !0;
1284
- }
1285
- return e !== e && t !== t;
1286
- }
1287
- function Hn(e) {
1288
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1289
- }
1290
- function Un(e, t) {
1291
- let n = Hn(e);
1292
- return Math.round(t * n) / n;
1293
- }
1294
- function Wn(e) {
1295
- let t = T.useRef(e);
1296
- return Bn(() => {
1297
- t.current = e;
1298
- }), t;
1299
- }
1300
- function Gn(e) {
1301
- e === void 0 && (e = {});
1302
- let { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: a, floating: o } = {}, transform: s = !0, whileElementsMounted: c, open: l } = e, [u, d] = T.useState({
1303
- x: 0,
1304
- y: 0,
1305
- strategy: n,
1306
- placement: t,
1307
- middlewareData: {},
1308
- isPositioned: !1
1309
- }), [f, p] = T.useState(r);
1310
- Vn(f, r) || p(r);
1311
- let [m, h] = T.useState(null), [g, _] = T.useState(null), v = T.useCallback((e) => {
1312
- e !== S.current && (S.current = e, h(e));
1313
- }, []), y = T.useCallback((e) => {
1314
- e !== C.current && (C.current = e, _(e));
1315
- }, []), b = a || m, x = o || g, S = T.useRef(null), C = T.useRef(null), w = T.useRef(u), E = c != null, D = Wn(c), O = Wn(i), k = Wn(l), A = T.useCallback(() => {
1316
- if (!S.current || !C.current) return;
1317
- let e = {
1318
- placement: t,
1319
- strategy: n,
1320
- middleware: f
1321
- };
1322
- O.current && (e.platform = O.current), zn(S.current, C.current, e).then((e) => {
1323
- let t = {
1324
- ...e,
1325
- isPositioned: k.current !== !1
1326
- };
1327
- j.current && !Vn(w.current, t) && (w.current = t, re.flushSync(() => {
1328
- d(t);
1329
- }));
1330
- });
1331
- }, [
1332
- f,
1333
- t,
1334
- n,
1335
- O,
1336
- k
1337
- ]);
1338
- Bn(() => {
1339
- l === !1 && w.current.isPositioned && (w.current.isPositioned = !1, d((e) => ({
1340
- ...e,
1341
- isPositioned: !1
1342
- })));
1343
- }, [l]);
1344
- let j = T.useRef(!1);
1345
- Bn(() => (j.current = !0, () => {
1346
- j.current = !1;
1347
- }), []), Bn(() => {
1348
- if (b && (S.current = b), x && (C.current = x), b && x) {
1349
- if (D.current) return D.current(b, x, A);
1350
- A();
1351
- }
1352
- }, [
1353
- b,
1354
- x,
1355
- A,
1356
- D,
1357
- E
1358
- ]);
1359
- let M = T.useMemo(() => ({
1360
- reference: S,
1361
- floating: C,
1362
- setReference: v,
1363
- setFloating: y
1364
- }), [v, y]), N = T.useMemo(() => ({
1365
- reference: b,
1366
- floating: x
1367
- }), [b, x]), P = T.useMemo(() => {
1368
- let e = {
1369
- position: n,
1370
- left: 0,
1371
- top: 0
1372
- };
1373
- if (!N.floating) return e;
1374
- let t = Un(N.floating, u.x), r = Un(N.floating, u.y);
1375
- return s ? {
1376
- ...e,
1377
- transform: "translate(" + t + "px, " + r + "px)",
1378
- ...Hn(N.floating) >= 1.5 && { willChange: "transform" }
1379
- } : {
1380
- position: n,
1381
- left: t,
1382
- top: r
1383
- };
1384
- }, [
1385
- n,
1386
- s,
1387
- N.floating,
1388
- u.x,
1389
- u.y
1390
- ]);
1391
- return T.useMemo(() => ({
1392
- ...u,
1393
- update: A,
1394
- refs: M,
1395
- elements: N,
1396
- floatingStyles: P
1397
- }), [
1398
- u,
1399
- A,
1400
- M,
1401
- N,
1402
- P
1403
- ]);
1404
- }
1405
- var Kn = (e) => {
1406
- function t(e) {
1407
- return {}.hasOwnProperty.call(e, "current");
1408
- }
1409
- return {
1410
- name: "arrow",
1411
- options: e,
1412
- fn(n) {
1413
- let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
1414
- return r && t(r) ? r.current == null ? {} : In({
1415
- element: r.current,
1416
- padding: i
1417
- }).fn(n) : r ? In({
1418
- element: r,
1419
- padding: i
1420
- }).fn(n) : {};
1421
- }
1422
- };
1423
- }, qn = (e, t) => {
1424
- let n = jn(e);
1425
- return {
1426
- name: n.name,
1427
- fn: n.fn,
1428
- options: [e, t]
1429
- };
1430
- }, Jn = (e, t) => {
1431
- let n = Mn(e);
1432
- return {
1433
- name: n.name,
1434
- fn: n.fn,
1435
- options: [e, t]
1436
- };
1437
- }, Yn = (e, t) => ({
1438
- fn: Rn(e).fn,
1439
- options: [e, t]
1440
- }), Xn = (e, t) => {
1441
- let n = Nn(e);
1442
- return {
1443
- name: n.name,
1444
- fn: n.fn,
1445
- options: [e, t]
1446
- };
1447
- }, Zn = (e, t) => {
1448
- let n = Pn(e);
1449
- return {
1450
- name: n.name,
1451
- fn: n.fn,
1452
- options: [e, t]
1453
- };
1454
- }, Qn = (e, t) => {
1455
- let n = Fn(e);
1456
- return {
1457
- name: n.name,
1458
- fn: n.fn,
1459
- options: [e, t]
1460
- };
1461
- }, $n = (e, t) => {
1462
- let n = Ln(e);
1463
- return {
1464
- name: n.name,
1465
- fn: n.fn,
1466
- options: [e, t]
1467
- };
1468
- }, er = (e, t) => {
1469
- let n = Kn(e);
1470
- return {
1471
- name: n.name,
1472
- fn: n.fn,
1473
- options: [e, t]
1474
- };
1475
- };
1476
- //#endregion
1477
- //#region ../../node_modules/.bun/@floating-ui+react@0.27.19+bf16f8eded5e12ee/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
1478
- function tr(e) {
1479
- let t = T.useRef(void 0), n = T.useCallback((t) => {
1480
- let n = e.map((e) => {
1481
- if (e != null) {
1482
- if (typeof e == "function") {
1483
- let n = e, r = n(t);
1484
- return typeof r == "function" ? r : () => {
1485
- n(null);
1486
- };
1487
- }
1488
- return e.current = t, () => {
1489
- e.current = null;
1490
- };
1491
- }
1492
- });
1493
- return () => {
1494
- n.forEach((e) => e?.());
1495
- };
1496
- }, e);
1497
- return T.useMemo(() => e.every((e) => e == null) ? null : (e) => {
1498
- t.current &&= (t.current(), void 0), e != null && (t.current = n(e));
1499
- }, e);
1500
- }
1501
- var nr = "data-floating-ui-focusable", rr = "active", ir = "selected", ar = "ArrowLeft", or = "ArrowRight", sr = "ArrowUp", cr = "ArrowDown", lr = [ar, or], ur = [sr, cr];
1502
- [...lr, ...ur];
1503
- var dr = { ...T }, fr = !1, pr = 0, mr = () => "floating-ui-" + Math.random().toString(36).slice(2, 6) + pr++;
1504
- function hr() {
1505
- let [e, t] = T.useState(() => fr ? mr() : void 0);
1506
- return jt(() => {
1507
- e ?? t(mr());
1508
- }, []), T.useEffect(() => {
1509
- fr = !0;
1510
- }, []), e;
1511
- }
1512
- var gr = dr.useId || hr, _r;
1513
- process.env.NODE_ENV !== "production" && (_r = /* @__PURE__ */ new Set());
1514
- function vr() {
1515
- var e;
1516
- let t = "Floating UI: " + [...arguments].join(" ");
1517
- if (!((e = _r) != null && e.has(t))) {
1518
- var n;
1519
- (n = _r) == null || n.add(t), console.error(t);
1520
- }
1521
- }
1522
- function yr() {
1523
- let e = /* @__PURE__ */ new Map();
1524
- return {
1525
- emit(t, n) {
1526
- var r;
1527
- (r = e.get(t)) == null || r.forEach((e) => e(n));
1528
- },
1529
- on(t, n) {
1530
- e.has(t) || e.set(t, /* @__PURE__ */ new Set()), e.get(t).add(n);
1531
- },
1532
- off(t, n) {
1533
- var r;
1534
- (r = e.get(t)) == null || r.delete(n);
1535
- }
1536
- };
1537
- }
1538
- var br = /* @__PURE__ */ T.createContext(null), xr = /* @__PURE__ */ T.createContext(null), Sr = () => T.useContext(br)?.id || null, Cr = () => T.useContext(xr);
1539
- function wr(e) {
1540
- return "data-floating-ui-" + e;
1541
- }
1542
- function $(e) {
1543
- e.current !== -1 && (clearTimeout(e.current), e.current = -1);
1544
- }
1545
- var Tr = /* @__PURE__ */ wr("safe-polygon");
1546
- function Er(e, t, n) {
1547
- if (n && !At(n)) return 0;
1548
- if (typeof e == "number") return e;
1549
- if (typeof e == "function") {
1550
- let n = e();
1551
- return typeof n == "number" ? n : n?.[t];
1552
- }
1553
- return e?.[t];
1554
- }
1555
- function Dr(e) {
1556
- return typeof e == "function" ? e() : e;
1557
- }
1558
- function Or(e, t) {
1559
- t === void 0 && (t = {});
1560
- let { open: n, onOpenChange: r, dataRef: i, events: a, elements: o } = e, { enabled: s = !0, delay: c = 0, handleClose: l = null, mouseOnly: u = !1, restMs: d = 0, move: f = !0 } = t, p = Cr(), m = Sr(), h = Nt(l), g = Nt(c), _ = Nt(n), v = Nt(d), y = T.useRef(), b = T.useRef(-1), x = T.useRef(), S = T.useRef(-1), C = T.useRef(!0), w = T.useRef(!1), E = T.useRef(() => {}), D = T.useRef(!1), O = Ft(() => {
1561
- let e = i.current.openEvent?.type;
1562
- return e?.includes("mouse") && e !== "mousedown";
1563
- });
1564
- T.useEffect(() => {
1565
- if (!s) return;
1566
- function e(e) {
1567
- let { open: t } = e;
1568
- t || ($(b), $(S), C.current = !0, D.current = !1);
1569
- }
1570
- return a.on("openchange", e), () => {
1571
- a.off("openchange", e);
1572
- };
1573
- }, [s, a]), T.useEffect(() => {
1574
- if (!s || !h.current || !n) return;
1575
- function e(e) {
1576
- O() && r(!1, e, "hover");
1577
- }
1578
- let t = wt(o.floating).documentElement;
1579
- return t.addEventListener("mouseleave", e), () => {
1580
- t.removeEventListener("mouseleave", e);
1581
- };
1582
- }, [
1583
- o.floating,
1584
- n,
1585
- r,
1586
- s,
1587
- h,
1588
- O
1589
- ]);
1590
- let k = T.useCallback(function(e, t, n) {
1591
- t === void 0 && (t = !0), n === void 0 && (n = "hover");
1592
- let i = Er(g.current, "close", y.current);
1593
- i && !x.current ? ($(b), b.current = window.setTimeout(() => r(!1, e, n), i)) : t && ($(b), r(!1, e, n));
1594
- }, [g, r]), A = Ft(() => {
1595
- E.current(), x.current = void 0;
1596
- }), j = Ft(() => {
1597
- if (w.current) {
1598
- let e = wt(o.floating).body;
1599
- e.style.pointerEvents = "", e.removeAttribute(Tr), w.current = !1;
1600
- }
1601
- }), M = Ft(() => i.current.openEvent ? ["click", "mousedown"].includes(i.current.openEvent.type) : !1);
1602
- T.useEffect(() => {
1603
- if (!s) return;
1604
- function e(e) {
1605
- if ($(b), C.current = !1, u && !At(y.current) || Dr(v.current) > 0 && !Er(g.current, "open")) return;
1606
- let t = Er(g.current, "open", y.current);
1607
- t ? b.current = window.setTimeout(() => {
1608
- _.current || r(!0, e, "hover");
1609
- }, t) : n || r(!0, e, "hover");
1610
- }
1611
- function t(e) {
1612
- if (M()) {
1613
- j();
1614
- return;
1615
- }
1616
- E.current();
1617
- let t = wt(o.floating);
1618
- if ($(S), D.current = !1, h.current && i.current.floatingContext) {
1619
- n || $(b), x.current = h.current({
1620
- ...i.current.floatingContext,
1621
- tree: p,
1622
- x: e.clientX,
1623
- y: e.clientY,
1624
- onClose() {
1625
- j(), A(), M() || k(e, !0, "safe-polygon");
1626
- }
1627
- });
1628
- let r = x.current;
1629
- t.addEventListener("mousemove", r), E.current = () => {
1630
- t.removeEventListener("mousemove", r);
1631
- };
1632
- return;
1633
- }
1634
- (y.current !== "touch" || !bt(o.floating, e.relatedTarget)) && k(e);
1635
- }
1636
- function a(e) {
1637
- M() || i.current.floatingContext && (h.current == null || h.current({
1638
- ...i.current.floatingContext,
1639
- tree: p,
1640
- x: e.clientX,
1641
- y: e.clientY,
1642
- onClose() {
1643
- j(), A(), M() || k(e);
1644
- }
1645
- })(e));
1646
- }
1647
- function c() {
1648
- $(b);
1649
- }
1650
- function l(e) {
1651
- M() || k(e, !1);
1652
- }
1653
- if (U(o.domReference)) {
1654
- let r = o.domReference, i = o.floating;
1655
- return n && r.addEventListener("mouseleave", a), f && r.addEventListener("mousemove", e, { once: !0 }), r.addEventListener("mouseenter", e), r.addEventListener("mouseleave", t), i && (i.addEventListener("mouseleave", a), i.addEventListener("mouseenter", c), i.addEventListener("mouseleave", l)), () => {
1656
- n && r.removeEventListener("mouseleave", a), f && r.removeEventListener("mousemove", e), r.removeEventListener("mouseenter", e), r.removeEventListener("mouseleave", t), i && (i.removeEventListener("mouseleave", a), i.removeEventListener("mouseenter", c), i.removeEventListener("mouseleave", l));
1657
- };
1658
- }
1659
- }, [
1660
- o,
1661
- s,
1662
- e,
1663
- u,
1664
- f,
1665
- k,
1666
- A,
1667
- j,
1668
- r,
1669
- n,
1670
- _,
1671
- p,
1672
- g,
1673
- h,
1674
- i,
1675
- M,
1676
- v
1677
- ]), jt(() => {
1678
- var e;
1679
- if (s && n && (e = h.current) != null && (e = e.__options) != null && e.blockPointerEvents && O()) {
1680
- w.current = !0;
1681
- let e = o.floating;
1682
- if (U(o.domReference) && e) {
1683
- var t;
1684
- let n = wt(o.floating).body;
1685
- n.setAttribute(Tr, "");
1686
- let r = o.domReference, i = p == null || (t = p.nodesRef.current.find((e) => e.id === m)) == null || (t = t.context) == null ? void 0 : t.elements.floating;
1687
- return i && (i.style.pointerEvents = ""), n.style.pointerEvents = "none", r.style.pointerEvents = "auto", e.style.pointerEvents = "auto", () => {
1688
- n.style.pointerEvents = "", r.style.pointerEvents = "", e.style.pointerEvents = "";
1689
- };
1690
- }
1691
- }
1692
- }, [
1693
- s,
1694
- n,
1695
- m,
1696
- o,
1697
- p,
1698
- h,
1699
- O
1700
- ]), jt(() => {
1701
- n || (y.current = void 0, D.current = !1, A(), j());
1702
- }, [
1703
- n,
1704
- A,
1705
- j
1706
- ]), T.useEffect(() => () => {
1707
- A(), $(b), $(S), j();
1708
- }, [
1709
- s,
1710
- o.domReference,
1711
- A,
1712
- j
1713
- ]);
1714
- let N = T.useMemo(() => {
1715
- function e(e) {
1716
- y.current = e.pointerType;
1717
- }
1718
- return {
1719
- onPointerDown: e,
1720
- onPointerEnter: e,
1721
- onMouseMove(e) {
1722
- let { nativeEvent: t } = e;
1723
- function i() {
1724
- !C.current && !_.current && r(!0, t, "hover");
1725
- }
1726
- u && !At(y.current) || n || Dr(v.current) === 0 || D.current && e.movementX ** 2 + e.movementY ** 2 < 2 || ($(S), y.current === "touch" ? i() : (D.current = !0, S.current = window.setTimeout(i, Dr(v.current))));
1727
- }
1728
- };
1729
- }, [
1730
- u,
1731
- r,
1732
- n,
1733
- _,
1734
- v
1735
- ]);
1736
- return T.useMemo(() => s ? { reference: N } : {}, [s, N]);
1737
- }
1738
- var kr = () => {}, Ar = /* @__PURE__ */ T.createContext({
1739
- delay: 0,
1740
- initialDelay: 0,
1741
- timeoutMs: 0,
1742
- currentId: null,
1743
- setCurrentId: kr,
1744
- setState: kr,
1745
- isInstantPhase: !1
1746
- }), jr = () => T.useContext(Ar);
1747
- function Mr(e) {
1748
- let { children: t, delay: n, timeoutMs: r = 0 } = e, [i, a] = T.useReducer((e, t) => ({
1749
- ...e,
1750
- ...t
1751
- }), {
1752
- delay: n,
1753
- timeoutMs: r,
1754
- initialDelay: n,
1755
- currentId: null,
1756
- isInstantPhase: !1
1757
- }), o = T.useRef(null), s = T.useCallback((e) => {
1758
- a({ currentId: e });
1759
- }, []);
1760
- return jt(() => {
1761
- i.currentId ? o.current === null ? o.current = i.currentId : i.isInstantPhase || a({ isInstantPhase: !0 }) : (i.isInstantPhase && a({ isInstantPhase: !1 }), o.current = null);
1762
- }, [i.currentId, i.isInstantPhase]), /* @__PURE__ */ I(Ar.Provider, {
1763
- value: T.useMemo(() => ({
1764
- ...i,
1765
- setState: a,
1766
- setCurrentId: s
1767
- }), [i, s]),
1768
- children: t
1769
- });
1770
- }
1771
- function Nr(e, t) {
1772
- t === void 0 && (t = {});
1773
- let { open: n, onOpenChange: r, floatingId: i } = e, { id: a, enabled: o = !0 } = t, s = a ?? i, c = jr(), { currentId: l, setCurrentId: u, initialDelay: d, setState: f, timeoutMs: p } = c;
1774
- return jt(() => {
1775
- o && l && (f({ delay: {
1776
- open: 1,
1777
- close: Er(d, "close")
1778
- } }), l !== s && r(!1));
1779
- }, [
1780
- o,
1781
- s,
1782
- r,
1783
- f,
1784
- l,
1785
- d
1786
- ]), jt(() => {
1787
- function e() {
1788
- r(!1), f({
1789
- delay: d,
1790
- currentId: null
1791
- });
1792
- }
1793
- if (o && l && !n && l === s) {
1794
- if (p) {
1795
- let t = window.setTimeout(e, p);
1796
- return () => {
1797
- clearTimeout(t);
1798
- };
1799
- }
1800
- e();
1801
- }
1802
- }, [
1803
- o,
1804
- n,
1805
- f,
1806
- l,
1807
- s,
1808
- r,
1809
- d,
1810
- p
1811
- ]), jt(() => {
1812
- o && (u === kr || !n || u(s));
1813
- }, [
1814
- o,
1815
- n,
1816
- u,
1817
- s
1818
- ]), c;
1819
- }
1820
- var Pr = {
1821
- pointerdown: "onPointerDown",
1822
- mousedown: "onMouseDown",
1823
- click: "onClick"
1824
- }, Fr = {
1825
- pointerdown: "onPointerDownCapture",
1826
- mousedown: "onMouseDownCapture",
1827
- click: "onClickCapture"
1828
- }, Ir = (e) => ({
1829
- escapeKey: typeof e == "boolean" ? e : e?.escapeKey ?? !1,
1830
- outsidePress: typeof e == "boolean" ? e : e?.outsidePress ?? !0
1831
- });
1832
- function Lr(e, t) {
1833
- t === void 0 && (t = {});
1834
- let { open: n, onOpenChange: r, elements: i, dataRef: a } = e, { enabled: o = !0, escapeKey: s = !0, outsidePress: c = !0, outsidePressEvent: l = "pointerdown", referencePress: u = !1, referencePressEvent: d = "pointerdown", ancestorScroll: f = !1, bubbles: p, capture: m } = t, h = Cr(), g = Ft(typeof c == "function" ? c : () => !1), _ = typeof c == "function" ? g : c, v = T.useRef(!1), { escapeKey: y, outsidePress: b } = Ir(p), { escapeKey: x, outsidePress: S } = Ir(m), C = T.useRef(!1), w = Ft((e) => {
1835
- if (!n || !o || !s || e.key !== "Escape" || C.current) return;
1836
- let t = a.current.floatingContext?.nodeId, i = h ? Ot(h.nodesRef.current, t) : [];
1837
- if (!y && (e.stopPropagation(), i.length > 0)) {
1838
- let e = !0;
1839
- if (i.forEach((t) => {
1840
- var n;
1841
- if ((n = t.context) != null && n.open && !t.context.dataRef.current.__escapeKeyBubbles) {
1842
- e = !1;
1843
- return;
1844
- }
1845
- }), !e) return;
1846
- }
1847
- r(!1, kt(e) ? e.nativeEvent : e, "escape-key");
1848
- }), E = Ft((e) => {
1849
- var t;
1850
- let n = () => {
1851
- var t;
1852
- w(e), (t = xt(e)) == null || t.removeEventListener("keydown", n);
1853
- };
1854
- (t = xt(e)) == null || t.addEventListener("keydown", n);
1855
- }), D = Ft((e) => {
1856
- let t = a.current.insideReactTree;
1857
- a.current.insideReactTree = !1;
1858
- let n = v.current;
1859
- if (v.current = !1, l === "click" && n || t || typeof _ == "function" && !_(e)) return;
1860
- let o = xt(e), s = "[" + wr("inert") + "]", c = wt(i.floating).querySelectorAll(s), u = U(o) ? o : null;
1861
- for (; u && !Re(u);) {
1862
- let e = Be(u);
1863
- if (Re(e) || !U(e)) break;
1864
- u = e;
1865
- }
1866
- if (c.length && U(o) && !Ct(o) && !bt(o, i.floating) && Array.from(c).every((e) => !bt(u, e))) return;
1867
- if (W(o) && A) {
1868
- let t = Re(o), n = K(o), r = /auto|scroll/, i = t || r.test(n.overflowX), a = t || r.test(n.overflowY), s = i && o.clientWidth > 0 && o.scrollWidth > o.clientWidth, c = a && o.clientHeight > 0 && o.scrollHeight > o.clientHeight, l = n.direction === "rtl", u = c && (l ? e.offsetX <= o.offsetWidth - o.clientWidth : e.offsetX > o.clientWidth), d = s && e.offsetY > o.clientHeight;
1869
- if (u || d) return;
1870
- }
1871
- let d = a.current.floatingContext?.nodeId, f = h && Ot(h.nodesRef.current, d).some((t) => St(e, t.context?.elements.floating));
1872
- if (St(e, i.floating) || St(e, i.domReference) || f) return;
1873
- let p = h ? Ot(h.nodesRef.current, d) : [];
1874
- if (p.length > 0) {
1875
- let e = !0;
1876
- if (p.forEach((t) => {
1877
- var n;
1878
- if ((n = t.context) != null && n.open && !t.context.dataRef.current.__outsidePressBubbles) {
1879
- e = !1;
1880
- return;
1881
- }
1882
- }), !e) return;
1883
- }
1884
- r(!1, e, "outside-press");
1885
- }), O = Ft((e) => {
1886
- var t;
1887
- let n = () => {
1888
- var t;
1889
- D(e), (t = xt(e)) == null || t.removeEventListener(l, n);
1890
- };
1891
- (t = xt(e)) == null || t.addEventListener(l, n);
1892
- });
1893
- T.useEffect(() => {
1894
- if (!n || !o) return;
1895
- a.current.__escapeKeyBubbles = y, a.current.__outsidePressBubbles = b;
1896
- let e = -1;
1897
- function t(e) {
1898
- r(!1, e, "ancestor-scroll");
1899
- }
1900
- function c() {
1901
- window.clearTimeout(e), C.current = !0;
1902
- }
1903
- function u() {
1904
- e = window.setTimeout(() => {
1905
- C.current = !1;
1906
- }, Le() ? 5 : 0);
1907
- }
1908
- let d = wt(i.floating);
1909
- s && (d.addEventListener("keydown", x ? E : w, x), d.addEventListener("compositionstart", c), d.addEventListener("compositionend", u)), _ && d.addEventListener(l, S ? O : D, S);
1910
- let p = [];
1911
- return f && (U(i.domReference) && (p = He(i.domReference)), U(i.floating) && (p = p.concat(He(i.floating))), !U(i.reference) && i.reference && i.reference.contextElement && (p = p.concat(He(i.reference.contextElement)))), p = p.filter((e) => e !== d.defaultView?.visualViewport), p.forEach((e) => {
1912
- e.addEventListener("scroll", t, { passive: !0 });
1913
- }), () => {
1914
- s && (d.removeEventListener("keydown", x ? E : w, x), d.removeEventListener("compositionstart", c), d.removeEventListener("compositionend", u)), _ && d.removeEventListener(l, S ? O : D, S), p.forEach((e) => {
1915
- e.removeEventListener("scroll", t);
1916
- }), window.clearTimeout(e);
1917
- };
1918
- }, [
1919
- a,
1920
- i,
1921
- s,
1922
- _,
1923
- l,
1924
- n,
1925
- r,
1926
- f,
1927
- o,
1928
- y,
1929
- b,
1930
- w,
1931
- x,
1932
- E,
1933
- D,
1934
- S,
1935
- O
1936
- ]), T.useEffect(() => {
1937
- a.current.insideReactTree = !1;
1938
- }, [
1939
- a,
1940
- _,
1941
- l
1942
- ]);
1943
- let k = T.useMemo(() => ({
1944
- onKeyDown: w,
1945
- ...u && {
1946
- [Pr[d]]: (e) => {
1947
- r(!1, e.nativeEvent, "reference-press");
1948
- },
1949
- ...d !== "click" && { onClick(e) {
1950
- r(!1, e.nativeEvent, "reference-press");
1951
- } }
1952
- }
1953
- }), [
1954
- w,
1955
- r,
1956
- u,
1957
- d
1958
- ]), A = T.useMemo(() => {
1959
- function e(e) {
1960
- e.button === 0 && (v.current = !0);
1961
- }
1962
- return {
1963
- onKeyDown: w,
1964
- onMouseDown: e,
1965
- onMouseUp: e,
1966
- [Fr[l]]: () => {
1967
- a.current.insideReactTree = !0;
1968
- }
1969
- };
1970
- }, [
1971
- w,
1972
- l,
1973
- a
1974
- ]);
1975
- return T.useMemo(() => o ? {
1976
- reference: k,
1977
- floating: A
1978
- } : {}, [
1979
- o,
1980
- k,
1981
- A
1982
- ]);
1983
- }
1984
- function Rr(e) {
1985
- let { open: t = !1, onOpenChange: n, elements: r } = e, i = gr(), a = T.useRef({}), [o] = T.useState(() => yr()), s = Sr() != null;
1986
- if (process.env.NODE_ENV !== "production") {
1987
- let e = r.reference;
1988
- e && !U(e) && vr("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
1989
- }
1990
- let [c, l] = T.useState(r.reference), u = Ft((e, t, r) => {
1991
- a.current.openEvent = e ? t : void 0, o.emit("openchange", {
1992
- open: e,
1993
- event: t,
1994
- reason: r,
1995
- nested: s
1996
- }), n?.(e, t, r);
1997
- }), d = T.useMemo(() => ({ setPositionReference: l }), []), f = T.useMemo(() => ({
1998
- reference: c || r.reference || null,
1999
- floating: r.floating || null,
2000
- domReference: r.reference
2001
- }), [
2002
- c,
2003
- r.reference,
2004
- r.floating
2005
- ]);
2006
- return T.useMemo(() => ({
2007
- dataRef: a,
2008
- open: t,
2009
- onOpenChange: u,
2010
- elements: f,
2011
- events: o,
2012
- floatingId: i,
2013
- refs: d
2014
- }), [
2015
- t,
2016
- u,
2017
- f,
2018
- o,
2019
- i,
2020
- d
2021
- ]);
2022
- }
2023
- function zr(e) {
2024
- e === void 0 && (e = {});
2025
- let { nodeId: t } = e, n = Rr({
2026
- ...e,
2027
- elements: {
2028
- reference: null,
2029
- floating: null,
2030
- ...e.elements
2031
- }
2032
- }), r = e.rootContext || n, i = r.elements, [a, o] = T.useState(null), [s, c] = T.useState(null), l = i?.domReference || a, u = T.useRef(null), d = Cr();
2033
- jt(() => {
2034
- l && (u.current = l);
2035
- }, [l]);
2036
- let f = Gn({
2037
- ...e,
2038
- elements: {
2039
- ...i,
2040
- ...s && { reference: s }
2041
- }
2042
- }), p = T.useCallback((e) => {
2043
- let t = U(e) ? {
2044
- getBoundingClientRect: () => e.getBoundingClientRect(),
2045
- getClientRects: () => e.getClientRects(),
2046
- contextElement: e
2047
- } : e;
2048
- c(t), f.refs.setReference(t);
2049
- }, [f.refs]), m = T.useCallback((e) => {
2050
- (U(e) || e === null) && (u.current = e, o(e)), (U(f.refs.reference.current) || f.refs.reference.current === null || e !== null && !U(e)) && f.refs.setReference(e);
2051
- }, [f.refs]), h = T.useMemo(() => ({
2052
- ...f.refs,
2053
- setReference: m,
2054
- setPositionReference: p,
2055
- domReference: u
2056
- }), [
2057
- f.refs,
2058
- m,
2059
- p
2060
- ]), g = T.useMemo(() => ({
2061
- ...f.elements,
2062
- domReference: l
2063
- }), [f.elements, l]), _ = T.useMemo(() => ({
2064
- ...f,
2065
- ...r,
2066
- refs: h,
2067
- elements: g,
2068
- nodeId: t
2069
- }), [
2070
- f,
2071
- h,
2072
- g,
2073
- t,
2074
- r
2075
- ]);
2076
- return jt(() => {
2077
- r.dataRef.current.floatingContext = _;
2078
- let e = d?.nodesRef.current.find((e) => e.id === t);
2079
- e && (e.context = _);
2080
- }), T.useMemo(() => ({
2081
- ...f,
2082
- context: _,
2083
- refs: h,
2084
- elements: g
2085
- }), [
2086
- f,
2087
- h,
2088
- g,
2089
- _
2090
- ]);
2091
- }
2092
- function Br() {
2093
- return ht() && mt();
2094
- }
2095
- function Vr(e, t) {
2096
- t === void 0 && (t = {});
2097
- let { open: n, onOpenChange: r, events: i, dataRef: a, elements: o } = e, { enabled: s = !0, visibleOnly: c = !0 } = t, l = T.useRef(!1), u = T.useRef(-1), d = T.useRef(!0);
2098
- T.useEffect(() => {
2099
- if (!s) return;
2100
- let e = V(o.domReference);
2101
- function t() {
2102
- !n && W(o.domReference) && o.domReference === yt(wt(o.domReference)) && (l.current = !0);
2103
- }
2104
- function r() {
2105
- d.current = !0;
2106
- }
2107
- function i() {
2108
- d.current = !1;
2109
- }
2110
- return e.addEventListener("blur", t), Br() && (e.addEventListener("keydown", r, !0), e.addEventListener("pointerdown", i, !0)), () => {
2111
- e.removeEventListener("blur", t), Br() && (e.removeEventListener("keydown", r, !0), e.removeEventListener("pointerdown", i, !0));
2112
- };
2113
- }, [
2114
- o.domReference,
2115
- n,
2116
- s
2117
- ]), T.useEffect(() => {
2118
- if (!s) return;
2119
- function e(e) {
2120
- let { reason: t } = e;
2121
- (t === "reference-press" || t === "escape-key") && (l.current = !0);
2122
- }
2123
- return i.on("openchange", e), () => {
2124
- i.off("openchange", e);
2125
- };
2126
- }, [i, s]), T.useEffect(() => () => {
2127
- $(u);
2128
- }, []);
2129
- let f = T.useMemo(() => ({
2130
- onMouseLeave() {
2131
- l.current = !1;
2132
- },
2133
- onFocus(e) {
2134
- if (l.current) return;
2135
- let t = xt(e.nativeEvent);
2136
- if (c && U(t)) {
2137
- if (Br() && !e.relatedTarget) {
2138
- if (!d.current && !Tt(t)) return;
2139
- } else if (!Et(t)) return;
2140
- }
2141
- r(!0, e.nativeEvent, "focus");
2142
- },
2143
- onBlur(e) {
2144
- l.current = !1;
2145
- let t = e.relatedTarget, n = e.nativeEvent, i = U(t) && t.hasAttribute(wr("focus-guard")) && t.getAttribute("data-type") === "outside";
2146
- u.current = window.setTimeout(() => {
2147
- let e = yt(o.domReference ? o.domReference.ownerDocument : document);
2148
- !t && e === o.domReference || bt(a.current.floatingContext?.refs.floating.current, e) || bt(o.domReference, e) || i || r(!1, n, "focus");
2149
- });
2150
- }
2151
- }), [
2152
- a,
2153
- o.domReference,
2154
- r,
2155
- c
2156
- ]);
2157
- return T.useMemo(() => s ? { reference: f } : {}, [s, f]);
2158
- }
2159
- function Hr(e, t, n) {
2160
- let r = /* @__PURE__ */ new Map(), i = n === "item", a = e;
2161
- if (i && e) {
2162
- let { [rr]: t, [ir]: n, ...r } = e;
2163
- a = r;
2164
- }
2165
- return {
2166
- ...n === "floating" && {
2167
- tabIndex: -1,
2168
- [nr]: ""
2169
- },
2170
- ...a,
2171
- ...t.map((t) => {
2172
- let r = t ? t[n] : null;
2173
- return typeof r == "function" ? e ? r(e) : null : r;
2174
- }).concat(e).reduce((e, t) => (t && Object.entries(t).forEach((t) => {
2175
- let [n, a] = t;
2176
- if (!(i && [rr, ir].includes(n))) if (n.indexOf("on") === 0) {
2177
- if (r.has(n) || r.set(n, []), typeof a == "function") {
2178
- var o;
2179
- (o = r.get(n)) == null || o.push(a), e[n] = function() {
2180
- var e = [...arguments];
2181
- return r.get(n)?.map((t) => t(...e)).find((e) => e !== void 0);
2182
- };
2183
- }
2184
- } else e[n] = a;
2185
- }), e), {})
2186
- };
2187
- }
2188
- function Ur(e) {
2189
- e === void 0 && (e = []);
2190
- let t = e.map((e) => e?.reference), n = e.map((e) => e?.floating), r = e.map((e) => e?.item), i = T.useCallback((t) => Hr(t, e, "reference"), t), a = T.useCallback((t) => Hr(t, e, "floating"), n), o = T.useCallback((t) => Hr(t, e, "item"), r);
2191
- return T.useMemo(() => ({
2192
- getReferenceProps: i,
2193
- getFloatingProps: a,
2194
- getItemProps: o
2195
- }), [
2196
- i,
2197
- a,
2198
- o
2199
- ]);
2200
- }
2201
- var Wr = /* @__PURE__ */ new Map([
2202
- ["select", "listbox"],
2203
- ["combobox", "listbox"],
2204
- ["label", !1]
2205
- ]);
2206
- function Gr(e, t) {
2207
- t === void 0 && (t = {});
2208
- let { open: n, elements: r, floatingId: i } = e, { enabled: a = !0, role: o = "dialog" } = t, s = gr(), c = r.domReference?.id || s, l = T.useMemo(() => Dt(r.floating)?.id || i, [r.floating, i]), u = Wr.get(o) ?? o, d = Sr() != null, f = T.useMemo(() => u === "tooltip" || o === "label" ? { ["aria-" + (o === "label" ? "labelledby" : "describedby")]: n ? l : void 0 } : {
2209
- "aria-expanded": n ? "true" : "false",
2210
- "aria-haspopup": u === "alertdialog" ? "dialog" : u,
2211
- "aria-controls": n ? l : void 0,
2212
- ...u === "listbox" && { role: "combobox" },
2213
- ...u === "menu" && { id: c },
2214
- ...u === "menu" && d && { role: "menuitem" },
2215
- ...o === "select" && { "aria-autocomplete": "none" },
2216
- ...o === "combobox" && { "aria-autocomplete": "list" }
2217
- }, [
2218
- u,
2219
- l,
2220
- d,
2221
- n,
2222
- c,
2223
- o
2224
- ]), p = T.useMemo(() => {
2225
- let e = {
2226
- id: l,
2227
- ...u && { role: u }
2228
- };
2229
- return u === "tooltip" || o === "label" ? e : {
2230
- ...e,
2231
- ...u === "menu" && { "aria-labelledby": c }
2232
- };
2233
- }, [
2234
- u,
2235
- l,
2236
- c,
2237
- o
2238
- ]), m = T.useCallback((e) => {
2239
- let { active: t, selected: n } = e, r = {
2240
- role: "option",
2241
- ...t && { id: l + "-fui-option" }
2242
- };
2243
- switch (o) {
2244
- case "select":
2245
- case "combobox": return {
2246
- ...r,
2247
- "aria-selected": n
2248
- };
2249
- }
2250
- return {};
2251
- }, [l, o]);
2252
- return T.useMemo(() => a ? {
2253
- reference: f,
2254
- floating: p,
2255
- item: m
2256
- } : {}, [
2257
- a,
2258
- f,
2259
- p,
2260
- m
2261
- ]);
2262
- }
2263
- //#endregion
2264
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/VisuallyHidden/VisuallyHidden.module.mjs
2265
- var Kr = { root: "m_515a97f8" }, qr = u((e) => {
2266
- let t = c("VisuallyHidden", null, e), { classNames: n, className: r, style: a, styles: o, unstyled: s, vars: l, attributes: u, ...f } = t;
2267
- return /* @__PURE__ */ I(d, {
2268
- component: "span",
2269
- ...i({
2270
- name: "VisuallyHidden",
2271
- classes: Kr,
2272
- props: t,
2273
- className: r,
2274
- style: a,
2275
- classNames: n,
2276
- styles: o,
2277
- unstyled: s,
2278
- attributes: u
2279
- })("root"),
2280
- ...f
2281
- });
2282
- });
2283
- qr.classes = Kr, qr.displayName = "@mantine/core/VisuallyHidden";
2284
- //#endregion
2285
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/utils/Floating/FloatingArrow/get-arrow-position-styles.mjs
2286
- function Jr(e, t, n, r) {
2287
- return e === "center" || r === "center" ? { top: t } : e === "end" ? { bottom: n } : e === "start" ? { top: n } : {};
2288
- }
2289
- function Yr(e, t, n, r, i) {
2290
- return e === "center" || r === "center" ? { left: t } : e === "end" ? { [i === "ltr" ? "right" : "left"]: n } : e === "start" ? { [i === "ltr" ? "left" : "right"]: n } : {};
2291
- }
2292
- var Xr = {
2293
- bottom: "borderTopLeftRadius",
2294
- left: "borderTopRightRadius",
2295
- right: "borderBottomLeftRadius",
2296
- top: "borderBottomRightRadius"
2297
- };
2298
- function Zr({ position: e, arrowSize: t, arrowOffset: n, arrowRadius: r, arrowPosition: i, arrowX: a, arrowY: o, dir: s }) {
2299
- let [c, l = "center"] = e.split("-"), u = {
2300
- width: t,
2301
- height: t,
2302
- transform: "rotate(45deg)",
2303
- position: "absolute",
2304
- [Xr[c]]: r
2305
- }, d = -t / 2;
2306
- return c === "left" ? {
2307
- ...u,
2308
- ...Jr(l, o, n, i),
2309
- right: d,
2310
- borderLeftColor: "transparent",
2311
- borderBottomColor: "transparent",
2312
- clipPath: "polygon(100% 0, 0 0, 100% 100%)"
2313
- } : c === "right" ? {
2314
- ...u,
2315
- ...Jr(l, o, n, i),
2316
- left: d,
2317
- borderRightColor: "transparent",
2318
- borderTopColor: "transparent",
2319
- clipPath: "polygon(0 100%, 0 0, 100% 100%)"
2320
- } : c === "top" ? {
2321
- ...u,
2322
- ...Yr(l, a, n, i, s),
2323
- bottom: d,
2324
- borderTopColor: "transparent",
2325
- borderLeftColor: "transparent",
2326
- clipPath: "polygon(0 100%, 100% 100%, 100% 0)"
2327
- } : c === "bottom" ? {
2328
- ...u,
2329
- ...Yr(l, a, n, i, s),
2330
- top: d,
2331
- borderBottomColor: "transparent",
2332
- borderRightColor: "transparent",
2333
- clipPath: "polygon(0 100%, 0 0, 100% 0)"
2334
- } : {};
2335
- }
2336
- //#endregion
2337
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/utils/Floating/FloatingArrow/FloatingArrow.mjs
2338
- function Qr({ position: e, arrowSize: t, arrowOffset: n, arrowRadius: r, arrowPosition: i, visible: a, arrowX: o, arrowY: s, style: c, ...l }) {
2339
- let { dir: u } = Te();
2340
- return a ? /* @__PURE__ */ I("div", {
2341
- ...l,
2342
- style: {
2343
- ...c,
2344
- ...Zr({
2345
- position: e,
2346
- arrowSize: t,
2347
- arrowOffset: n,
2348
- arrowRadius: r,
2349
- arrowPosition: i,
2350
- dir: u,
2351
- arrowX: o,
2352
- arrowY: s
2353
- })
2354
- }
2355
- }) : null;
2356
- }
2357
- Qr.displayName = "@mantine/core/FloatingArrow";
2358
- //#endregion
2359
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/utils/Floating/get-floating-position/get-floating-position.mjs
2360
- function $r(e, t) {
2361
- if (e === "rtl" && (t.includes("right") || t.includes("left"))) {
2362
- let [e, n] = t.split("-"), r = e === "right" ? "left" : "right";
2363
- return n === void 0 ? r : `${r}-${n}`;
2364
- }
2365
- return t;
2366
- }
2367
- //#endregion
2368
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Overlay/Overlay.module.mjs
2369
- var ei = { root: "m_9814e45f" }, ti = { zIndex: L("modal") }, ni = r((e, { gradient: n, color: r, backgroundOpacity: i, blur: a, radius: o, zIndex: c }) => ({ root: {
2370
- "--overlay-bg": n || (r !== void 0 || i !== void 0) && f(r || "#000", i ?? .6) || void 0,
2371
- "--overlay-filter": a ? `blur(${t(a)})` : void 0,
2372
- "--overlay-radius": o === void 0 ? void 0 : s(o),
2373
- "--overlay-z-index": c?.toString()
2374
- } })), ri = l((e) => {
2375
- let t = c("Overlay", ti, e), { classNames: n, className: r, style: a, styles: o, unstyled: s, vars: l, fixed: u, center: f, children: p, radius: m, zIndex: h, gradient: g, blur: _, color: v, backgroundOpacity: y, mod: b, attributes: x, ...S } = t;
2376
- return /* @__PURE__ */ I(d, {
2377
- ...i({
2378
- name: "Overlay",
2379
- props: t,
2380
- classes: ei,
2381
- className: r,
2382
- style: a,
2383
- classNames: n,
2384
- styles: o,
2385
- unstyled: s,
2386
- attributes: x,
2387
- vars: l,
2388
- varsResolver: ni
2389
- })("root"),
2390
- mod: [{
2391
- center: f,
2392
- fixed: u
2393
- }, b],
2394
- ...S,
2395
- children: p
2396
- });
2397
- });
2398
- ri.classes = ei, ri.varsResolver = ni, ri.displayName = "@mantine/core/Overlay";
2399
- //#endregion
2400
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Portal/Portal.mjs
2401
- function ii(e) {
2402
- let t = document.createElement("div");
2403
- return t.setAttribute("data-portal", "true"), typeof e.className == "string" && t.classList.add(...e.className.split(" ").filter(Boolean)), typeof e.style == "object" && Object.assign(t.style, e.style), typeof e.id == "string" && t.setAttribute("id", e.id), t;
2404
- }
2405
- function ai({ target: e, reuseTargetNode: t, ...n }) {
2406
- if (e) return typeof e == "string" ? document.querySelector(e) || ii(n) : e;
2407
- if (t) {
2408
- let e = document.querySelector("[data-mantine-shared-portal-node]");
2409
- if (e) return e;
2410
- let t = ii(n);
2411
- return t.setAttribute("data-mantine-shared-portal-node", "true"), document.body.appendChild(t), t;
2412
- }
2413
- return ii(n);
2414
- }
2415
- var oi = { reuseTargetNode: !0 }, si = u((e) => {
2416
- let { children: t, target: n, reuseTargetNode: r, ref: i, ...a } = c("Portal", oi, e), [o, s] = ee(!1), l = F(null);
2417
- return b(() => (s(!0), l.current = ai({
2418
- target: n,
2419
- reuseTargetNode: r,
2420
- ...a
2421
- }), C(i, l.current), !n && !r && l.current && document.body.appendChild(l.current), () => {
2422
- !n && !r && l.current && document.body.removeChild(l.current);
2423
- }), [n]), !o || !l.current ? null : ie(/* @__PURE__ */ I(te, { children: t }), l.current);
2424
- });
2425
- si.displayName = "@mantine/core/Portal";
2426
- //#endregion
2427
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Portal/OptionalPortal.mjs
2428
- var ci = u(({ withinPortal: e = !0, children: t, ...n }) => o() === "test" || !e ? /* @__PURE__ */ I(te, { children: t }) : /* @__PURE__ */ I(si, {
2429
- ...n,
2430
- children: t
2431
- }));
2432
- ci.displayName = "@mantine/core/OptionalPortal";
2433
- //#endregion
2434
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Transition/get-transition-props/get-transition-props.mjs
2435
- var li = {
2436
- duration: 100,
2437
- transition: "fade"
2438
- };
2439
- function ui(e, t) {
2440
- return {
2441
- ...li,
2442
- ...t,
2443
- ...e
2444
- };
2445
- }
2446
- //#endregion
2447
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Popover/Popover.context.mjs
2448
- var [di, fi] = h("Popover component was not found in the tree");
2449
- //#endregion
2450
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/FocusTrap/FocusTrap.mjs
2451
- function pi({ children: e, active: t = !0, refProp: n = "ref", innerRef: r }) {
2452
- let i = S(ye(t), r), a = Se(e);
2453
- return a ? O(a, { [n]: i }) : e;
2454
- }
2455
- function mi(e) {
2456
- return /* @__PURE__ */ I(qr, {
2457
- tabIndex: -1,
2458
- "data-autofocus": !0,
2459
- ...e
2460
- });
2461
- }
2462
- pi.displayName = "@mantine/core/FocusTrap", mi.displayName = "@mantine/core/FocusTrapInitialFocus", pi.InitialFocus = mi;
2463
- //#endregion
2464
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Popover/Popover.module.mjs
2465
- var hi = {
2466
- dropdown: "m_38a85659",
2467
- arrow: "m_a31dc6c1",
2468
- overlay: "m_3d7bc908"
2469
- }, gi = u((e) => {
2470
- let n = c("PopoverDropdown", null, e), { className: r, style: i, vars: a, children: o, onKeyDownCapture: s, variant: l, classNames: u, styles: f, ref: p, ...m } = n, h = fi(), g = ue({
2471
- opened: h.opened,
2472
- shouldReturnFocus: h.returnFocus
2473
- }), _ = h.withRoles ? {
2474
- "aria-labelledby": h.getTargetId(),
2475
- id: h.getDropdownId(),
2476
- role: "dialog",
2477
- tabIndex: -1
2478
- } : {}, y = S(p, h.floating);
2479
- return h.disabled ? null : /* @__PURE__ */ I(ci, {
2480
- ...h.portalProps,
2481
- withinPortal: h.withinPortal,
2482
- children: /* @__PURE__ */ I(v, {
2483
- mounted: h.opened,
2484
- ...h.transitionProps,
2485
- transition: h.transitionProps?.transition || "fade",
2486
- duration: h.transitionProps?.duration ?? 150,
2487
- keepMounted: h.keepMounted,
2488
- exitDuration: typeof h.transitionProps?.exitDuration == "number" ? h.transitionProps.exitDuration : h.transitionProps?.duration,
2489
- children: (e) => /* @__PURE__ */ I(pi, {
2490
- active: h.trapFocus && h.opened,
2491
- innerRef: y,
2492
- children: /* @__PURE__ */ ne(d, {
2493
- ..._,
2494
- ...m,
2495
- variant: l,
2496
- onKeyDownCapture: se(() => {
2497
- h.onClose?.(), h.onDismiss?.();
2498
- }, {
2499
- active: h.closeOnEscape,
2500
- onTrigger: g,
2501
- onKeyDown: s
2502
- }),
2503
- "data-position": h.placement,
2504
- "data-fixed": h.floatingStrategy === "fixed" || void 0,
2505
- ...h.getStyles("dropdown", {
2506
- className: r,
2507
- props: n,
2508
- classNames: u,
2509
- styles: f,
2510
- style: [
2511
- {
2512
- ...e,
2513
- zIndex: h.zIndex,
2514
- top: h.y ?? 0,
2515
- left: h.x ?? 0,
2516
- width: h.width === "target" ? void 0 : t(h.width),
2517
- ...h.referenceHidden ? { display: "none" } : null
2518
- },
2519
- h.resolvedStyles.dropdown,
2520
- f?.dropdown,
2521
- i
2522
- ]
2523
- }),
2524
- children: [o, /* @__PURE__ */ I(Qr, {
2525
- ref: h.arrowRef,
2526
- arrowX: h.arrowX,
2527
- arrowY: h.arrowY,
2528
- visible: h.withArrow,
2529
- position: h.placement,
2530
- arrowSize: h.arrowSize,
2531
- arrowRadius: h.arrowRadius,
2532
- arrowOffset: h.arrowOffset,
2533
- arrowPosition: h.arrowPosition,
2534
- ...h.getStyles("arrow", {
2535
- props: n,
2536
- classNames: u,
2537
- styles: f
2538
- })
2539
- })]
2540
- })
2541
- })
2542
- })
2543
- });
2544
- });
2545
- gi.classes = hi, gi.displayName = "@mantine/core/PopoverDropdown";
2546
- //#endregion
2547
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Popover/PopoverTarget/PopoverTarget.mjs
2548
- var _i = {
2549
- refProp: "ref",
2550
- popupType: "dialog"
2551
- }, vi = u((t) => {
2552
- let { children: n, refProp: r, popupType: i, ref: a, ...o } = c("PopoverTarget", _i, t), s = Se(n);
2553
- if (!s) throw Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");
2554
- let l = o, u = fi(), d = S(u.reference, xe(s), a), f = u.withRoles ? {
2555
- "aria-haspopup": i,
2556
- "aria-expanded": u.opened,
2557
- "aria-controls": u.opened ? u.getDropdownId() : void 0,
2558
- id: u.getTargetId()
2559
- } : {}, p = s.props;
2560
- return O(s, {
2561
- ...l,
2562
- ...f,
2563
- ...u.targetProps,
2564
- className: e(u.targetProps.className, l.className, p.className),
2565
- [r]: d,
2566
- ...u.controlled ? null : { onClick: (e) => {
2567
- u.onToggle(), p.onClick?.(e);
2568
- } }
2569
- });
2570
- });
2571
- vi.displayName = "@mantine/core/PopoverTarget";
2572
- //#endregion
2573
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Popover/use-popover.mjs
2574
- function yi(e) {
2575
- if (e === void 0) return {
2576
- shift: !0,
2577
- flip: !0
2578
- };
2579
- let t = { ...e };
2580
- return e.shift === void 0 && (t.shift = !0), e.flip === void 0 && (t.flip = !0), t;
2581
- }
2582
- function bi(e, t, n) {
2583
- let r = yi(e.middlewares), i = [qn(e.offset), Qn()];
2584
- return e.dropdownVisible && n !== "test" && e.preventPositionChangeWhenVisible && (r.flip = !1), r.flip && i.push(typeof r.flip == "boolean" ? Xn() : Xn(r.flip)), r.shift && i.push(Jn(typeof r.shift == "boolean" ? {
2585
- limiter: Yn(),
2586
- padding: 5
2587
- } : {
2588
- limiter: Yn(),
2589
- padding: 5,
2590
- ...r.shift
2591
- })), r.inline && i.push(typeof r.inline == "boolean" ? $n() : $n(r.inline)), i.push(er({
2592
- element: e.arrowRef,
2593
- padding: e.arrowOffset
2594
- })), (r.size || e.width === "target") && i.push(Zn({
2595
- ...typeof r.size == "boolean" ? {} : r.size,
2596
- apply({ rects: n, availableWidth: i, availableHeight: a, ...o }) {
2597
- let s = t().refs.floating.current?.style ?? {};
2598
- r.size && (typeof r.size == "object" && r.size.apply ? r.size.apply({
2599
- rects: n,
2600
- availableWidth: i,
2601
- availableHeight: a,
2602
- ...o
2603
- }) : Object.assign(s, {
2604
- maxWidth: `${i}px`,
2605
- maxHeight: `${a}px`
2606
- })), e.width === "target" && Object.assign(s, { width: `${n.reference.width}px` });
2607
- }
2608
- })), i;
2609
- }
2610
- function xi(e) {
2611
- let t = o(), [n, r] = _({
2612
- value: e.opened,
2613
- defaultValue: e.defaultOpened,
2614
- finalValue: !1,
2615
- onChange: e.onChange
2616
- }), i = F(n), a = () => {
2617
- n && !e.disabled && r(!1);
2618
- }, s = () => {
2619
- e.disabled || r(!n);
2620
- }, c = zr({
2621
- strategy: e.strategy,
2622
- placement: e.preventPositionChangeWhenVisible ? e.positionRef.current : e.position,
2623
- middleware: bi(e, () => c, t),
2624
- whileElementsMounted: e.keepMounted ? void 0 : An
2625
- });
2626
- return M(() => {
2627
- if (!(!c.refs.reference.current || !c.refs.floating.current) && n) return An(c.refs.reference.current, c.refs.floating.current, c.update);
2628
- }, [n, c.update]), y(() => {
2629
- e.onPositionChange?.(c.placement), e.positionRef.current = c.placement;
2630
- }, [c.placement, e.preventPositionChangeWhenVisible]), y(() => {
2631
- n !== i.current && (n ? e.onOpen?.() : e.onClose?.()), i.current = n;
2632
- }, [
2633
- n,
2634
- e.onClose,
2635
- e.onOpen
2636
- ]), b(() => {
2637
- let t = -1;
2638
- return n && (t = window.setTimeout(() => e.setDropdownVisible(!0), 4)), () => {
2639
- window.clearTimeout(t);
2640
- };
2641
- }, [n, e.position]), {
2642
- floating: c,
2643
- controlled: typeof e.opened == "boolean",
2644
- opened: n,
2645
- onClose: a,
2646
- onToggle: s
2647
- };
2648
- }
2649
- //#endregion
2650
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Popover/Popover.mjs
2651
- var Si = {
2652
- position: "bottom",
2653
- offset: 8,
2654
- transitionProps: {
2655
- transition: "fade",
2656
- duration: 150
2657
- },
2658
- middlewares: {
2659
- flip: !0,
2660
- shift: !0,
2661
- inline: !1
2662
- },
2663
- arrowSize: 7,
2664
- arrowOffset: 5,
2665
- arrowRadius: 0,
2666
- arrowPosition: "side",
2667
- closeOnClickOutside: !0,
2668
- withinPortal: !0,
2669
- closeOnEscape: !0,
2670
- trapFocus: !1,
2671
- withRoles: !0,
2672
- returnFocus: !1,
2673
- withOverlay: !1,
2674
- hideDetached: !0,
2675
- clickOutsideEvents: ["mousedown", "touchstart"],
2676
- zIndex: L("popover"),
2677
- __staticSelector: "Popover",
2678
- width: "max-content"
2679
- }, Ci = r((e, { radius: t, shadow: r }) => ({ dropdown: {
2680
- "--popover-radius": t === void 0 ? void 0 : s(t),
2681
- "--popover-shadow": n(r)
2682
- } }));
2683
- function wi(e) {
2684
- let t = c("Popover", Si, e), { children: n, position: r, offset: a, onPositionChange: s, opened: l, transitionProps: u, onExitTransitionEnd: d, onEnterTransitionEnd: f, width: p, middlewares: m, withArrow: h, arrowSize: g, arrowOffset: _, arrowRadius: y, arrowPosition: b, unstyled: S, classNames: C, styles: T, closeOnClickOutside: E, withinPortal: D, portalProps: O, closeOnEscape: k, clickOutsideEvents: A, trapFocus: M, onClose: N, onDismiss: P, onOpen: te, onChange: re, zIndex: ie, radius: ae, shadow: L, id: oe, defaultOpened: se, __staticSelector: ce, withRoles: ue, disabled: de, returnFocus: fe, variant: pe, keepMounted: me, vars: he, floatingStrategy: ge, withOverlay: R, overlayProps: _e, hideDetached: ve, attributes: ye, preventPositionChangeWhenVisible: be, ...z } = t, xe = i({
2685
- name: ce,
2686
- props: t,
2687
- classes: hi,
2688
- classNames: C,
2689
- styles: T,
2690
- unstyled: S,
2691
- attributes: ye,
2692
- rootSelector: "dropdown",
2693
- vars: he,
2694
- varsResolver: Ci
2695
- }), { resolvedStyles: Se } = w({
2696
- classNames: C,
2697
- styles: T,
2698
- props: t
2699
- }), [Ce, we] = ee(l ?? se ?? !1), Ee = F(r), B = F(null), [V, H] = ee(null), [De, U] = ee(null), { dir: W } = Te(), Oe = o(), ke = x(oe), G = xi({
2700
- middlewares: m,
2701
- width: p,
2702
- position: $r(W, r),
2703
- offset: typeof a == "number" ? a + (h ? g / 2 : 0) : a,
2704
- arrowRef: B,
2705
- arrowOffset: _,
2706
- onPositionChange: s,
2707
- opened: l,
2708
- defaultOpened: se,
2709
- onChange: re,
2710
- onOpen: te,
2711
- onClose: N,
2712
- onDismiss: P,
2713
- strategy: ge,
2714
- dropdownVisible: Ce,
2715
- setDropdownVisible: we,
2716
- positionRef: Ee,
2717
- disabled: de,
2718
- preventPositionChangeWhenVisible: be,
2719
- keepMounted: me
2720
- });
2721
- le(() => {
2722
- E && (G.onClose(), P?.());
2723
- }, A, [V, De]);
2724
- let Ae = j((e) => {
2725
- H(e), G.floating.refs.setReference(e);
2726
- }, [G.floating.refs.setReference]), je = j((e) => {
2727
- U(e), G.floating.refs.setFloating(e);
2728
- }, [G.floating.refs.setFloating]), Me = j(() => {
2729
- u?.onExited?.(), d?.(), we(!1), be || (Ee.current = r);
2730
- }, [
2731
- u?.onExited,
2732
- d,
2733
- be,
2734
- r
2735
- ]), Ne = j(() => {
2736
- u?.onEntered?.(), f?.();
2737
- }, [u?.onEntered, f]);
2738
- return /* @__PURE__ */ ne(di, {
2739
- value: {
2740
- returnFocus: fe,
2741
- disabled: de,
2742
- controlled: G.controlled,
2743
- reference: Ae,
2744
- floating: je,
2745
- x: G.floating.x,
2746
- y: G.floating.y,
2747
- arrowX: G.floating?.middlewareData?.arrow?.x,
2748
- arrowY: G.floating?.middlewareData?.arrow?.y,
2749
- opened: G.opened,
2750
- arrowRef: B,
2751
- transitionProps: {
2752
- ...u,
2753
- onExited: Me,
2754
- onEntered: Ne
2755
- },
2756
- width: p,
2757
- withArrow: h,
2758
- arrowSize: g,
2759
- arrowOffset: _,
2760
- arrowRadius: y,
2761
- arrowPosition: b,
2762
- placement: G.floating.placement,
2763
- trapFocus: M,
2764
- withinPortal: D,
2765
- portalProps: O,
2766
- zIndex: ie,
2767
- radius: ae,
2768
- shadow: L,
2769
- closeOnEscape: k,
2770
- onDismiss: P,
2771
- onClose: G.onClose,
2772
- onToggle: G.onToggle,
2773
- getTargetId: () => ke,
2774
- getDropdownId: () => `${ke}-dropdown`,
2775
- withRoles: ue,
2776
- targetProps: z,
2777
- __staticSelector: ce,
2778
- classNames: C,
2779
- styles: T,
2780
- unstyled: S,
2781
- variant: pe,
2782
- keepMounted: me,
2783
- getStyles: xe,
2784
- resolvedStyles: Se,
2785
- floatingStrategy: ge,
2786
- referenceHidden: ve && Oe !== "test" ? G.floating.middlewareData.hide?.referenceHidden : !1
2787
- },
2788
- children: [n, R && /* @__PURE__ */ I(v, {
2789
- transition: "fade",
2790
- mounted: G.opened,
2791
- duration: u?.duration || 250,
2792
- exitDuration: u?.exitDuration || 250,
2793
- children: (e) => /* @__PURE__ */ I(ci, {
2794
- withinPortal: D,
2795
- children: /* @__PURE__ */ I(ri, {
2796
- ..._e,
2797
- ...xe("overlay", {
2798
- className: _e?.className,
2799
- style: [e, _e?.style]
2800
- })
2801
- })
2802
- })
2803
- })]
2804
- });
2805
- }
2806
- wi.Target = vi, wi.Dropdown = gi, wi.varsResolver = Ci, wi.displayName = "@mantine/core/Popover", wi.extend = (e) => e;
2807
- //#endregion
2808
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Tooltip/TooltipFloating/use-floating-tooltip.mjs
2809
- function Ti({ offset: e, position: t, defaultOpened: n }) {
2810
- let [r, i] = ee(n), a = F(null), { x: o, y: s, elements: c, refs: l, update: u, placement: d } = zr({
2811
- placement: t,
2812
- middleware: [Jn({
2813
- crossAxis: !0,
2814
- padding: 5,
2815
- rootBoundary: "document"
2816
- })]
2817
- }), f = d.includes("right") ? e : t.includes("left") ? e * -1 : 0, p = d.includes("bottom") ? e : t.includes("top") ? e * -1 : 0, m = j(({ clientX: e, clientY: t }) => {
2818
- l.setPositionReference({ getBoundingClientRect() {
2819
- return {
2820
- width: 0,
2821
- height: 0,
2822
- x: e,
2823
- y: t,
2824
- left: e + f,
2825
- top: t + p,
2826
- right: e,
2827
- bottom: t
2828
- };
2829
- } });
2830
- }, [c.reference]);
2831
- return M(() => {
2832
- if (l.floating.current) {
2833
- let e = a.current;
2834
- e.addEventListener("mousemove", m);
2835
- let t = He(l.floating.current);
2836
- return t.forEach((e) => {
2837
- e.addEventListener("scroll", u);
2838
- }), () => {
2839
- e.removeEventListener("mousemove", m), t.forEach((e) => {
2840
- e.removeEventListener("scroll", u);
2841
- });
2842
- };
2843
- }
2844
- }, [
2845
- c.reference,
2846
- l.floating.current,
2847
- u,
2848
- m,
2849
- r
2850
- ]), {
2851
- handleMouseMove: m,
2852
- x: o,
2853
- y: s,
2854
- opened: r,
2855
- setOpened: i,
2856
- boundaryRef: a,
2857
- floating: l.setFloating
2858
- };
2859
- }
2860
- //#endregion
2861
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.module.mjs
2862
- var Ei = {
2863
- tooltip: "m_1b3c8819",
2864
- arrow: "m_f898399f"
2865
- }, Di = {
2866
- refProp: "ref",
2867
- withinPortal: !0,
2868
- offset: 10,
2869
- position: "right",
2870
- zIndex: L("popover")
2871
- }, Oi = r((e, { radius: t, color: n }) => ({ tooltip: {
2872
- "--tooltip-radius": t === void 0 ? void 0 : s(t),
2873
- "--tooltip-bg": n ? p(n, e) : void 0,
2874
- "--tooltip-color": n ? "var(--mantine-color-white)" : void 0
2875
- } })), ki = u((e) => {
2876
- let t = c("TooltipFloating", Di, e), { children: n, refProp: r, withinPortal: o, style: s, className: l, classNames: u, styles: f, unstyled: p, radius: m, color: h, label: g, offset: _, position: v, multiline: y, zIndex: b, disabled: x, defaultOpened: C, variant: w, vars: T, portalProps: E, attributes: D, ref: k, ...A } = t, j = a(), M = i({
2877
- name: "TooltipFloating",
2878
- props: t,
2879
- classes: Ei,
2880
- className: l,
2881
- style: s,
2882
- classNames: u,
2883
- styles: f,
2884
- unstyled: p,
2885
- attributes: D,
2886
- rootSelector: "tooltip",
2887
- vars: T,
2888
- varsResolver: Oi
2889
- }), { handleMouseMove: N, x: P, y: F, opened: ee, boundaryRef: re, floating: ie, setOpened: ae } = Ti({
2890
- offset: _,
2891
- position: v,
2892
- defaultOpened: C
2893
- }), L = Se(n);
2894
- if (!L) throw Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");
2895
- let oe = S(re, xe(L), k), se = L.props, ce = (e) => {
2896
- se.onMouseEnter?.(e), N(e), ae(!0);
2897
- }, le = (e) => {
2898
- se.onMouseLeave?.(e), ae(!1);
2899
- };
2900
- return /* @__PURE__ */ ne(te, { children: [/* @__PURE__ */ I(ci, {
2901
- ...E,
2902
- withinPortal: o,
2903
- children: /* @__PURE__ */ I(d, {
2904
- ...A,
2905
- ...M("tooltip", { style: {
2906
- ...Ce(s, j),
2907
- zIndex: b,
2908
- display: !x && ee ? "block" : "none",
2909
- top: (F && Math.round(F)) ?? "",
2910
- left: (P && Math.round(P)) ?? ""
2911
- } }),
2912
- variant: w,
2913
- ref: ie,
2914
- mod: { multiline: y },
2915
- children: g
2916
- })
2917
- }), O(L, {
2918
- ...se,
2919
- [r]: oe,
2920
- onMouseEnter: ce,
2921
- onMouseLeave: le
2922
- })] });
2923
- });
2924
- ki.classes = Ei, ki.varsResolver = Oi, ki.displayName = "@mantine/core/TooltipFloating";
2925
- //#endregion
2926
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Tooltip/TooltipGroup/TooltipGroup.mjs
2927
- var Ai = k({ withinGroup: !1 }), ji = {
2928
- openDelay: 0,
2929
- closeDelay: 0
2930
- };
2931
- function Mi(e) {
2932
- let { openDelay: t, closeDelay: n, children: r } = c("TooltipGroup", ji, e);
2933
- return /* @__PURE__ */ I(Ai, {
2934
- value: { withinGroup: !0 },
2935
- children: /* @__PURE__ */ I(Mr, {
2936
- delay: {
2937
- open: t,
2938
- close: n
2939
- },
2940
- children: r
2941
- })
2942
- });
2943
- }
2944
- Mi.displayName = "@mantine/core/TooltipGroup", Mi.extend = (e) => e;
2945
- //#endregion
2946
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Tooltip/use-tooltip.mjs
2947
- function Ni(e) {
2948
- if (e === void 0) return {
2949
- shift: !0,
2950
- flip: !0
2951
- };
2952
- let t = { ...e };
2953
- return e.shift === void 0 && (t.shift = !0), e.flip === void 0 && (t.flip = !0), t;
2954
- }
2955
- function Pi(e) {
2956
- let t = Ni(e.middlewares), n = [qn(e.offset)];
2957
- return t.shift && n.push(Jn(typeof t.shift == "boolean" ? { padding: 8 } : {
2958
- padding: 8,
2959
- ...t.shift
2960
- })), t.flip && n.push(typeof t.flip == "boolean" ? Xn() : Xn(t.flip)), n.push(er({
2961
- element: e.arrowRef,
2962
- padding: e.arrowOffset
2963
- })), t.inline ? n.push(typeof t.inline == "boolean" ? $n() : $n(t.inline)) : e.inline && n.push($n()), n;
2964
- }
2965
- function Fi(e) {
2966
- let [t, n] = ee(e.defaultOpened), r = typeof e.opened == "boolean" ? e.opened : t, i = A(Ai).withinGroup, a = x(), o = j((e) => {
2967
- n(e), e && g(a);
2968
- }, [a]), { x: s, y: c, context: l, refs: u, placement: d, middlewareData: { arrow: { x: f, y: p } = {} } } = zr({
2969
- strategy: e.strategy,
2970
- placement: e.position,
2971
- open: r,
2972
- onOpenChange: o,
2973
- middleware: Pi(e),
2974
- whileElementsMounted: An
2975
- }), { delay: m, currentId: h, setCurrentId: g } = Nr(l, { id: a }), { getReferenceProps: _, getFloatingProps: v } = Ur([
2976
- Or(l, {
2977
- enabled: e.events?.hover,
2978
- delay: i ? m : {
2979
- open: e.openDelay,
2980
- close: e.closeDelay
2981
- },
2982
- mouseOnly: !e.events?.touch
2983
- }),
2984
- Vr(l, {
2985
- enabled: e.events?.focus,
2986
- visibleOnly: !0
2987
- }),
2988
- Gr(l, { role: "tooltip" }),
2989
- Lr(l, { enabled: e.opened === void 0 })
2990
- ]);
2991
- y(() => {
2992
- e.onPositionChange?.(d);
2993
- }, [d]);
2994
- let b = r && h && h !== a;
2995
- return {
2996
- x: s,
2997
- y: c,
2998
- arrowX: f,
2999
- arrowY: p,
3000
- reference: u.setReference,
3001
- floating: u.setFloating,
3002
- getFloatingProps: v,
3003
- getReferenceProps: _,
3004
- isGroupPhase: b,
3005
- opened: r,
3006
- placement: d
3007
- };
3008
- }
3009
- //#endregion
3010
- //#region ../../node_modules/.bun/@mantine+core@9.0.0+9dd69a0af178a974/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.mjs
3011
- var Ii = {
3012
- position: "top",
3013
- refProp: "ref",
3014
- withinPortal: !0,
3015
- arrowSize: 4,
3016
- arrowOffset: 5,
3017
- arrowRadius: 0,
3018
- arrowPosition: "side",
3019
- offset: 5,
3020
- transitionProps: {
3021
- duration: 100,
3022
- transition: "fade"
3023
- },
3024
- events: {
3025
- hover: !0,
3026
- focus: !1,
3027
- touch: !1
3028
- },
3029
- zIndex: L("popover"),
3030
- middlewares: {
3031
- flip: !0,
3032
- shift: !0,
3033
- inline: !1
3034
- }
3035
- }, Li = r((e, { radius: t, color: n, variant: r, autoContrast: i }) => {
3036
- let a = e.variantColorResolver({
3037
- theme: e,
3038
- color: n || e.primaryColor,
3039
- autoContrast: i,
3040
- variant: r || "filled"
3041
- });
3042
- return { tooltip: {
3043
- "--tooltip-radius": t === void 0 ? void 0 : s(t),
3044
- "--tooltip-bg": n ? a.background : void 0,
3045
- "--tooltip-color": n ? a.color : void 0
3046
- } };
3047
- }), Ri = u((t) => {
3048
- let n = c("Tooltip", Ii, t), { children: r, position: a, refProp: o, label: s, openDelay: l, closeDelay: u, onPositionChange: f, opened: p, defaultOpened: m, withinPortal: h, radius: g, color: _, classNames: y, styles: b, unstyled: x, style: C, className: w, withArrow: T, arrowSize: E, arrowOffset: D, arrowRadius: k, arrowPosition: A, offset: j, transitionProps: N, multiline: P, events: ee, zIndex: re, disabled: ie, onClick: ae, onMouseEnter: L, onMouseLeave: oe, inline: se, variant: ce, keepMounted: le, vars: ue, portalProps: de, mod: fe, floatingStrategy: pe, middlewares: me, autoContrast: he, attributes: ge, target: R, ref: _e, ...ve } = n, { dir: ye } = Te(), be = F(null), z = Fi({
3049
- position: $r(ye, a),
3050
- closeDelay: u,
3051
- openDelay: l,
3052
- onPositionChange: f,
3053
- opened: p,
3054
- defaultOpened: m,
3055
- events: ee,
3056
- arrowRef: be,
3057
- arrowOffset: D,
3058
- offset: typeof j == "number" ? j + (T ? E / 2 : 0) : j,
3059
- inline: se,
3060
- strategy: pe,
3061
- middlewares: me
3062
- });
3063
- M(() => {
3064
- let e = R instanceof HTMLElement ? R : typeof R == "string" ? document.querySelector(R) : R?.current || null;
3065
- e && z.reference(e);
3066
- }, [R, z]);
3067
- let Ce = i({
3068
- name: "Tooltip",
3069
- props: n,
3070
- classes: Ei,
3071
- className: w,
3072
- style: C,
3073
- classNames: y,
3074
- styles: b,
3075
- unstyled: x,
3076
- attributes: ge,
3077
- rootSelector: "tooltip",
3078
- vars: ue,
3079
- varsResolver: Li
3080
- }), we = Se(r);
3081
- if (!R && !we) throw Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");
3082
- let Ee = Ce("tooltip");
3083
- if (R) {
3084
- let e = ui(N, {
3085
- duration: 100,
3086
- transition: "fade"
3087
- });
3088
- return /* @__PURE__ */ I(te, { children: /* @__PURE__ */ I(ci, {
3089
- ...de,
3090
- withinPortal: h,
3091
- children: /* @__PURE__ */ I(v, {
3092
- ...e,
3093
- keepMounted: le,
3094
- mounted: !ie && !!z.opened,
3095
- duration: z.isGroupPhase ? 10 : e.duration,
3096
- children: (e) => /* @__PURE__ */ ne(d, {
3097
- ...ve,
3098
- "data-fixed": pe === "fixed" || void 0,
3099
- variant: ce,
3100
- mod: [{ multiline: P }, fe],
3101
- ...Ee,
3102
- ...z.getFloatingProps({
3103
- ref: z.floating,
3104
- className: Ee.className,
3105
- style: {
3106
- ...Ee.style,
3107
- ...e,
3108
- zIndex: re,
3109
- top: z.y ?? 0,
3110
- left: z.x ?? 0
3111
- }
3112
- }),
3113
- children: [s, /* @__PURE__ */ I(Qr, {
3114
- ref: be,
3115
- arrowX: z.arrowX,
3116
- arrowY: z.arrowY,
3117
- visible: T,
3118
- position: z.placement,
3119
- arrowSize: E,
3120
- arrowOffset: D,
3121
- arrowRadius: k,
3122
- arrowPosition: A,
3123
- ...Ce("arrow")
3124
- })]
3125
- })
3126
- })
3127
- }) });
3128
- }
3129
- let B = we.props, V = S(z.reference, xe(we), _e), H = ui(N, {
3130
- duration: 100,
3131
- transition: "fade"
3132
- });
3133
- return /* @__PURE__ */ ne(te, { children: [/* @__PURE__ */ I(ci, {
3134
- ...de,
3135
- withinPortal: h,
3136
- children: /* @__PURE__ */ I(v, {
3137
- ...H,
3138
- keepMounted: le,
3139
- mounted: !ie && !!z.opened,
3140
- duration: z.isGroupPhase ? 10 : H.duration,
3141
- children: (e) => /* @__PURE__ */ ne(d, {
3142
- ...ve,
3143
- "data-fixed": pe === "fixed" || void 0,
3144
- variant: ce,
3145
- mod: [{ multiline: P }, fe],
3146
- ...z.getFloatingProps({
3147
- ref: z.floating,
3148
- className: Ce("tooltip").className,
3149
- style: {
3150
- ...Ce("tooltip").style,
3151
- ...e,
3152
- zIndex: re,
3153
- top: z.y ?? 0,
3154
- left: z.x ?? 0
3155
- }
3156
- }),
3157
- children: [s, /* @__PURE__ */ I(Qr, {
3158
- ref: be,
3159
- arrowX: z.arrowX,
3160
- arrowY: z.arrowY,
3161
- visible: T,
3162
- position: z.placement,
3163
- arrowSize: E,
3164
- arrowOffset: D,
3165
- arrowRadius: k,
3166
- arrowPosition: A,
3167
- ...Ce("arrow")
3168
- })]
3169
- })
3170
- })
3171
- }), O(we, z.getReferenceProps({
3172
- onClick: ae,
3173
- onMouseEnter: L,
3174
- onMouseLeave: oe,
3175
- onMouseMove: n.onMouseMove,
3176
- onPointerDown: n.onPointerDown,
3177
- onPointerEnter: n.onPointerEnter,
3178
- ...B,
3179
- className: e(w, B.className),
3180
- [o]: V
3181
- }))] });
3182
- });
3183
- Ri.classes = Ei, Ri.varsResolver = Li, Ri.displayName = "@mantine/core/Tooltip", Ri.Floating = ki, Ri.Group = Mi;
3184
- //#endregion
3185
- export { ri as a, Ce as c, be as d, z as f, L as h, ci as i, Se as l, oe as m, wi as n, tr as o, ue as p, pi as r, Te as s, Ri as t, xe as u };