@ui-sdk/web 0.0.0-stage → 0.1.0-beta.1

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 (467) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +10 -2
  3. package/browser/web/accordion.js +1 -0
  4. package/browser/web/alert-dialog.js +1 -0
  5. package/browser/web/autocomplete.js +1 -0
  6. package/browser/web/avatar.js +1 -0
  7. package/browser/web/button.js +1 -0
  8. package/browser/web/calendar.js +1 -0
  9. package/browser/web/carousel.js +1 -0
  10. package/browser/web/checkbox.js +1 -0
  11. package/browser/web/chunks/0eRGibL6.js +1 -0
  12. package/browser/web/chunks/2bIEUO6_.js +1 -0
  13. package/browser/web/chunks/5A9w2ULz.js +1 -0
  14. package/browser/web/chunks/5RSyydjV.js +1 -0
  15. package/browser/web/chunks/9pWTy2wl.js +1 -0
  16. package/browser/web/chunks/B0f2j6zz.js +1 -0
  17. package/browser/web/chunks/B1rux6br.js +1 -0
  18. package/browser/web/chunks/B3-APaNf.js +1 -0
  19. package/browser/web/chunks/B7EgSgjQ.js +1 -0
  20. package/browser/web/chunks/B8QcOzJU.js +1 -0
  21. package/browser/web/chunks/BFueEkwm.js +3 -0
  22. package/browser/web/chunks/BJj3oS29.js +1 -0
  23. package/browser/web/chunks/BNSvTCpr.js +1 -0
  24. package/browser/web/chunks/BPD0kAZB.js +1 -0
  25. package/browser/web/chunks/BQeduZqT.js +1 -0
  26. package/browser/web/chunks/B_CVFyiz.js +1 -0
  27. package/browser/web/chunks/B_ns1YHO.js +1 -0
  28. package/browser/web/chunks/BcwkVTsR.js +1 -0
  29. package/browser/web/chunks/BeaQ6TYM.js +1 -0
  30. package/browser/web/chunks/BgBB013u.js +1 -0
  31. package/browser/web/chunks/BgsKhHDm.js +1 -0
  32. package/browser/web/chunks/BjMcbuhi.js +9 -0
  33. package/browser/web/chunks/Bjiy_F2N.js +1 -0
  34. package/browser/web/chunks/BqScCLwv.js +1 -0
  35. package/browser/web/chunks/BqX3Utqx.js +1 -0
  36. package/browser/web/chunks/BtVkQf3z.js +1 -0
  37. package/browser/web/chunks/By30h-7B.js +1 -0
  38. package/browser/web/chunks/C1zqYpy2.js +1 -0
  39. package/browser/web/chunks/C436juFf.js +1 -0
  40. package/browser/web/chunks/C4_bULs1.js +1 -0
  41. package/browser/web/chunks/C4omqJEz.js +1 -0
  42. package/browser/web/chunks/C7tt0T3n.js +1 -0
  43. package/browser/web/chunks/C8w7s5dg.js +1 -0
  44. package/browser/web/chunks/CElY4erO.js +1 -0
  45. package/browser/web/chunks/CFODo-m2.js +1 -0
  46. package/browser/web/chunks/CL4wjam9.js +1 -0
  47. package/browser/web/chunks/CMg-8UVf.js +1 -0
  48. package/browser/web/chunks/COWKfakj.js +1 -0
  49. package/browser/web/chunks/CQBU0qZ4.js +1 -0
  50. package/browser/web/chunks/CV6uABgc.js +1 -0
  51. package/browser/web/chunks/C_SWFpWQ.js +1 -0
  52. package/browser/web/chunks/C_Uanbrl.js +1 -0
  53. package/browser/web/chunks/Ce_CSanC.js +1 -0
  54. package/browser/web/chunks/Cg-ZmRhS.js +1 -0
  55. package/browser/web/chunks/Cgf2wPI_.js +1 -0
  56. package/browser/web/chunks/Cuep_3Vf.js +1 -0
  57. package/browser/web/chunks/D02PaHn6.js +1 -0
  58. package/browser/web/chunks/D5LiaI5R.js +1 -0
  59. package/browser/web/chunks/D9UgVYvF.js +1 -0
  60. package/browser/web/chunks/DC08tnkE.js +2 -0
  61. package/browser/web/chunks/DG8YGSvu.js +1 -0
  62. package/browser/web/chunks/DIQd0FYD.js +1 -0
  63. package/browser/web/chunks/DMLqacE8.js +1 -0
  64. package/browser/web/chunks/DSUI3yI-.js +1 -0
  65. package/browser/web/chunks/DT3Hb76X.js +1 -0
  66. package/browser/web/chunks/DY75g3-W.js +1 -0
  67. package/browser/web/chunks/DZpNQKZ9.js +1 -0
  68. package/browser/web/chunks/Db-W1wrC.js +1 -0
  69. package/browser/web/chunks/Dc1xK3Ii.js +1 -0
  70. package/browser/web/chunks/DdF6awFs.js +1 -0
  71. package/browser/web/chunks/DdaCLml8.js +1 -0
  72. package/browser/web/chunks/Dh8MLjQO.js +1 -0
  73. package/browser/web/chunks/DiuslJRy.js +1 -0
  74. package/browser/web/chunks/DjRcw3Y0.js +1 -0
  75. package/browser/web/chunks/Djdv-16J.js +1 -0
  76. package/browser/web/chunks/DnFXe_lF.js +1 -0
  77. package/browser/web/chunks/DneGv1oC.js +1 -0
  78. package/browser/web/chunks/DsVxP-p-.js +1 -0
  79. package/browser/web/chunks/DwDilCo2.js +1 -0
  80. package/browser/web/chunks/DwV48AXv.js +1 -0
  81. package/browser/web/chunks/F37aF4-L.js +1 -0
  82. package/browser/web/chunks/LyB6XIbN.js +1 -0
  83. package/browser/web/chunks/NKnbYGjC.js +1 -0
  84. package/browser/web/chunks/Vk-rVi16.js +1 -0
  85. package/browser/web/chunks/XsM0J1Ex.js +1 -0
  86. package/browser/web/chunks/asSN9iEp.js +1 -0
  87. package/browser/web/chunks/c-AjHfdF.js +1 -0
  88. package/browser/web/chunks/dR-12TPY.js +1 -0
  89. package/browser/web/chunks/hR4xM0EC.js +1 -0
  90. package/browser/web/chunks/hqOaBxAg.js +1 -0
  91. package/browser/web/chunks/kMKqqeG4.js +1 -0
  92. package/browser/web/chunks/kXboBcfi.js +1 -0
  93. package/browser/web/chunks/l4aQIg22.js +1 -0
  94. package/browser/web/chunks/tJC0JSU4.js +1 -0
  95. package/browser/web/chunks/wHdS_QYM.js +1 -0
  96. package/browser/web/chunks/yv8dTvNI.js +1 -0
  97. package/browser/web/chunks/yw9M3nfi.js +1 -0
  98. package/browser/web/collapsible.js +1 -0
  99. package/browser/web/color-picker.js +1 -0
  100. package/browser/web/combobox.js +2 -0
  101. package/browser/web/command.js +1 -0
  102. package/browser/web/core.js +5 -0
  103. package/browser/web/date-input.js +1 -0
  104. package/browser/web/date-picker.js +1 -0
  105. package/browser/web/dialog.js +1 -0
  106. package/browser/web/drawer.js +1 -0
  107. package/browser/web/field.js +1 -0
  108. package/browser/web/file-input.js +1 -0
  109. package/browser/web/hover-card.js +1 -0
  110. package/browser/web/image-cropper.js +1 -0
  111. package/browser/web/input.js +1 -0
  112. package/browser/web/label.js +1 -0
  113. package/browser/web/listbox.js +1 -0
  114. package/browser/web/menu.js +1 -0
  115. package/browser/web/menubar.js +1 -0
  116. package/browser/web/meter.js +1 -0
  117. package/browser/web/navigation-menu.js +1 -0
  118. package/browser/web/number-input.js +1 -0
  119. package/browser/web/otp-input.js +2 -0
  120. package/browser/web/overlays.js +1 -0
  121. package/browser/web/pagination.js +1 -0
  122. package/browser/web/password-input.js +1 -0
  123. package/browser/web/popover.js +1 -0
  124. package/browser/web/preferences.js +1 -0
  125. package/browser/web/progress.js +1 -0
  126. package/browser/web/radio.js +1 -0
  127. package/browser/web/rating.js +1 -0
  128. package/browser/web/resizable.js +1 -0
  129. package/browser/web/scroll-area.js +1 -0
  130. package/browser/web/segmented-control.js +1 -0
  131. package/browser/web/select.js +1 -0
  132. package/browser/web/separator.js +1 -0
  133. package/browser/web/slider.js +1 -0
  134. package/browser/web/switch.js +1 -0
  135. package/browser/web/tabs.js +1 -0
  136. package/browser/web/textarea.js +1 -0
  137. package/browser/web/time-input.js +1 -0
  138. package/browser/web/timeline.js +1 -0
  139. package/browser/web/toast.js +1 -0
  140. package/browser/web/toggle.js +1 -0
  141. package/browser/web/token-input.js +8 -0
  142. package/browser/web/toolbar.js +1 -0
  143. package/browser/web/tooltip.js +1 -0
  144. package/browser/web/tree.js +1 -0
  145. package/browser/web/trigger-menu.js +4 -0
  146. package/browser/web/waterfall.js +1 -0
  147. package/browser/web.css +3378 -0
  148. package/browser/web.js +3 -0
  149. package/custom-elements.json +32315 -0
  150. package/dist/accordion.d.ts +2 -0
  151. package/dist/accordion.js +57 -0
  152. package/dist/action.d.ts +16 -0
  153. package/dist/action.js +39 -0
  154. package/dist/agent.d.ts +2 -0
  155. package/dist/agent.js +7 -0
  156. package/dist/autocomplete.d.ts +2 -0
  157. package/dist/autocomplete.js +120 -0
  158. package/dist/autoload.d.ts +18 -0
  159. package/dist/autoload.js +63 -0
  160. package/dist/avatar.d.ts +2 -0
  161. package/dist/avatar.js +27 -0
  162. package/dist/browser-core.d.ts +2 -0
  163. package/dist/browser-core.js +8 -0
  164. package/dist/button.d.ts +2 -0
  165. package/dist/button.js +35 -0
  166. package/dist/calendar.d.ts +23 -0
  167. package/dist/calendar.js +429 -0
  168. package/dist/carousel.d.ts +2 -0
  169. package/dist/carousel.js +54 -0
  170. package/dist/checkbox.d.ts +4 -0
  171. package/dist/checkbox.js +75 -0
  172. package/dist/collapsible.d.ts +2 -0
  173. package/dist/collapsible.js +28 -0
  174. package/dist/color-picker.d.ts +2 -0
  175. package/dist/color-picker.js +64 -0
  176. package/dist/combobox.d.ts +2 -0
  177. package/dist/combobox.js +334 -0
  178. package/dist/command.d.ts +2 -0
  179. package/dist/command.js +122 -0
  180. package/dist/date-input.d.ts +3 -0
  181. package/dist/date-input.js +87 -0
  182. package/dist/date-picker.d.ts +2 -0
  183. package/dist/date-picker.js +174 -0
  184. package/dist/default-text.d.ts +3 -0
  185. package/dist/default-text.js +24 -0
  186. package/dist/define-element.d.ts +404 -0
  187. package/dist/define-element.js +1489 -0
  188. package/dist/dialog.d.ts +3 -0
  189. package/dist/dialog.js +94 -0
  190. package/dist/drawer.d.ts +2 -0
  191. package/dist/drawer.js +96 -0
  192. package/dist/entries/accordion.d.ts +3 -0
  193. package/dist/entries/accordion.js +7 -0
  194. package/dist/entries/alert-dialog.d.ts +3 -0
  195. package/dist/entries/alert-dialog.js +13 -0
  196. package/dist/entries/autocomplete.d.ts +3 -0
  197. package/dist/entries/autocomplete.js +7 -0
  198. package/dist/entries/avatar.d.ts +2 -0
  199. package/dist/entries/avatar.js +3 -0
  200. package/dist/entries/button.d.ts +2 -0
  201. package/dist/entries/button.js +3 -0
  202. package/dist/entries/calendar.d.ts +3 -0
  203. package/dist/entries/calendar.js +7 -0
  204. package/dist/entries/carousel.d.ts +3 -0
  205. package/dist/entries/carousel.js +7 -0
  206. package/dist/entries/checkbox.d.ts +3 -0
  207. package/dist/entries/checkbox.js +15 -0
  208. package/dist/entries/collapsible.d.ts +3 -0
  209. package/dist/entries/collapsible.js +7 -0
  210. package/dist/entries/color-picker.d.ts +3 -0
  211. package/dist/entries/color-picker.js +7 -0
  212. package/dist/entries/combobox.d.ts +3 -0
  213. package/dist/entries/combobox.js +7 -0
  214. package/dist/entries/command.d.ts +3 -0
  215. package/dist/entries/command.js +7 -0
  216. package/dist/entries/date-input.d.ts +3 -0
  217. package/dist/entries/date-input.js +7 -0
  218. package/dist/entries/date-picker.d.ts +3 -0
  219. package/dist/entries/date-picker.js +7 -0
  220. package/dist/entries/dialog.d.ts +3 -0
  221. package/dist/entries/dialog.js +7 -0
  222. package/dist/entries/drawer.d.ts +3 -0
  223. package/dist/entries/drawer.js +8 -0
  224. package/dist/entries/field.d.ts +2 -0
  225. package/dist/entries/field.js +3 -0
  226. package/dist/entries/file-input.d.ts +3 -0
  227. package/dist/entries/file-input.js +13 -0
  228. package/dist/entries/hover-card.d.ts +3 -0
  229. package/dist/entries/hover-card.js +7 -0
  230. package/dist/entries/image-cropper.d.ts +3 -0
  231. package/dist/entries/image-cropper.js +7 -0
  232. package/dist/entries/input.d.ts +3 -0
  233. package/dist/entries/input.js +8 -0
  234. package/dist/entries/label.d.ts +2 -0
  235. package/dist/entries/label.js +3 -0
  236. package/dist/entries/listbox.d.ts +3 -0
  237. package/dist/entries/listbox.js +7 -0
  238. package/dist/entries/menu.d.ts +3 -0
  239. package/dist/entries/menu.js +7 -0
  240. package/dist/entries/menubar.d.ts +3 -0
  241. package/dist/entries/menubar.js +7 -0
  242. package/dist/entries/meter.d.ts +2 -0
  243. package/dist/entries/meter.js +3 -0
  244. package/dist/entries/navigation-menu.d.ts +3 -0
  245. package/dist/entries/navigation-menu.js +7 -0
  246. package/dist/entries/number-input.d.ts +3 -0
  247. package/dist/entries/number-input.js +7 -0
  248. package/dist/entries/otp-input.d.ts +3 -0
  249. package/dist/entries/otp-input.js +7 -0
  250. package/dist/entries/overlays.d.ts +2 -0
  251. package/dist/entries/overlays.js +3 -0
  252. package/dist/entries/pagination.d.ts +3 -0
  253. package/dist/entries/pagination.js +11 -0
  254. package/dist/entries/password-input.d.ts +3 -0
  255. package/dist/entries/password-input.js +7 -0
  256. package/dist/entries/popover.d.ts +3 -0
  257. package/dist/entries/popover.js +7 -0
  258. package/dist/entries/preferences.d.ts +3 -0
  259. package/dist/entries/preferences.js +13 -0
  260. package/dist/entries/progress.d.ts +2 -0
  261. package/dist/entries/progress.js +3 -0
  262. package/dist/entries/radio.d.ts +3 -0
  263. package/dist/entries/radio.js +7 -0
  264. package/dist/entries/rating.d.ts +3 -0
  265. package/dist/entries/rating.js +8 -0
  266. package/dist/entries/resizable.d.ts +3 -0
  267. package/dist/entries/resizable.js +11 -0
  268. package/dist/entries/scroll-area.d.ts +3 -0
  269. package/dist/entries/scroll-area.js +7 -0
  270. package/dist/entries/segmented-control.d.ts +3 -0
  271. package/dist/entries/segmented-control.js +7 -0
  272. package/dist/entries/select.d.ts +3 -0
  273. package/dist/entries/select.js +7 -0
  274. package/dist/entries/separator.d.ts +2 -0
  275. package/dist/entries/separator.js +3 -0
  276. package/dist/entries/slider.d.ts +3 -0
  277. package/dist/entries/slider.js +7 -0
  278. package/dist/entries/switch.d.ts +3 -0
  279. package/dist/entries/switch.js +7 -0
  280. package/dist/entries/tabs.d.ts +3 -0
  281. package/dist/entries/tabs.js +7 -0
  282. package/dist/entries/textarea.d.ts +3 -0
  283. package/dist/entries/textarea.js +7 -0
  284. package/dist/entries/time-input.d.ts +3 -0
  285. package/dist/entries/time-input.js +7 -0
  286. package/dist/entries/timeline.d.ts +3 -0
  287. package/dist/entries/timeline.js +7 -0
  288. package/dist/entries/toast.d.ts +2 -0
  289. package/dist/entries/toast.js +3 -0
  290. package/dist/entries/toggle.d.ts +3 -0
  291. package/dist/entries/toggle.js +12 -0
  292. package/dist/entries/token-input.d.ts +3 -0
  293. package/dist/entries/token-input.js +17 -0
  294. package/dist/entries/toolbar.d.ts +3 -0
  295. package/dist/entries/toolbar.js +7 -0
  296. package/dist/entries/tooltip.d.ts +3 -0
  297. package/dist/entries/tooltip.js +7 -0
  298. package/dist/entries/tree.d.ts +3 -0
  299. package/dist/entries/tree.js +17 -0
  300. package/dist/entries/trigger-menu.d.ts +3 -0
  301. package/dist/entries/trigger-menu.js +11 -0
  302. package/dist/entries/waterfall.d.ts +3 -0
  303. package/dist/entries/waterfall.js +11 -0
  304. package/dist/events.d.ts +1658 -0
  305. package/dist/events.js +0 -0
  306. package/dist/field.d.ts +2 -0
  307. package/dist/field.js +101 -0
  308. package/dist/file-input.d.ts +2 -0
  309. package/dist/file-input.js +140 -0
  310. package/dist/forward-attributes.d.ts +2 -0
  311. package/dist/forward-attributes.js +22 -0
  312. package/dist/history.d.ts +2 -0
  313. package/dist/history.js +11 -0
  314. package/dist/hover-card.d.ts +2 -0
  315. package/dist/hover-card.js +31 -0
  316. package/dist/image-cropper.d.ts +2 -0
  317. package/dist/image-cropper.js +66 -0
  318. package/dist/index.d.ts +66 -0
  319. package/dist/index.js +269 -0
  320. package/dist/input.d.ts +3 -0
  321. package/dist/input.js +69 -0
  322. package/dist/label.d.ts +2 -0
  323. package/dist/label.js +11 -0
  324. package/dist/list.d.ts +40 -0
  325. package/dist/list.js +192 -0
  326. package/dist/listbox.d.ts +2 -0
  327. package/dist/listbox.js +84 -0
  328. package/dist/menu.d.ts +4 -0
  329. package/dist/menu.js +295 -0
  330. package/dist/menubar.d.ts +4 -0
  331. package/dist/menubar.js +30 -0
  332. package/dist/meter.d.ts +2 -0
  333. package/dist/meter.js +22 -0
  334. package/dist/navigation-menu.d.ts +2 -0
  335. package/dist/navigation-menu.js +114 -0
  336. package/dist/number-input.d.ts +2 -0
  337. package/dist/number-input.js +73 -0
  338. package/dist/observe.d.ts +2 -0
  339. package/dist/observe.js +7 -0
  340. package/dist/otp-input.d.ts +2 -0
  341. package/dist/otp-input.js +72 -0
  342. package/dist/overlays.d.ts +13 -0
  343. package/dist/overlays.js +156 -0
  344. package/dist/pagination.d.ts +2 -0
  345. package/dist/pagination.js +127 -0
  346. package/dist/password-input.d.ts +2 -0
  347. package/dist/password-input.js +57 -0
  348. package/dist/popover.d.ts +2 -0
  349. package/dist/popover.js +64 -0
  350. package/dist/popup.d.ts +40 -0
  351. package/dist/popup.js +112 -0
  352. package/dist/preferences.d.ts +2 -0
  353. package/dist/preferences.js +56 -0
  354. package/dist/progress.d.ts +2 -0
  355. package/dist/progress.js +22 -0
  356. package/dist/radio.d.ts +2 -0
  357. package/dist/radio.js +33 -0
  358. package/dist/rating.d.ts +2 -0
  359. package/dist/rating.js +64 -0
  360. package/dist/resizable.d.ts +2 -0
  361. package/dist/resizable.js +42 -0
  362. package/dist/scroll-area.d.ts +2 -0
  363. package/dist/scroll-area.js +45 -0
  364. package/dist/segmented-control.d.ts +2 -0
  365. package/dist/segmented-control.js +28 -0
  366. package/dist/select.d.ts +2 -0
  367. package/dist/select.js +239 -0
  368. package/dist/separator.d.ts +2 -0
  369. package/dist/separator.js +11 -0
  370. package/dist/slider.d.ts +2 -0
  371. package/dist/slider.js +77 -0
  372. package/dist/tabs.d.ts +2 -0
  373. package/dist/tabs.js +37 -0
  374. package/dist/timeline.d.ts +2 -0
  375. package/dist/timeline.js +27 -0
  376. package/dist/toast.d.ts +20 -0
  377. package/dist/toast.js +177 -0
  378. package/dist/toggle.d.ts +3 -0
  379. package/dist/toggle.js +64 -0
  380. package/dist/token-input.d.ts +2 -0
  381. package/dist/token-input.js +103 -0
  382. package/dist/toolbar.d.ts +2 -0
  383. package/dist/toolbar.js +36 -0
  384. package/dist/tooltip.d.ts +2 -0
  385. package/dist/tooltip.js +35 -0
  386. package/dist/tree.d.ts +2 -0
  387. package/dist/tree.js +147 -0
  388. package/dist/trigger-menu.d.ts +2 -0
  389. package/dist/trigger-menu.js +133 -0
  390. package/dist/waterfall.d.ts +2 -0
  391. package/dist/waterfall.js +140 -0
  392. package/docs/README.md +89 -0
  393. package/docs/agents.md +1523 -0
  394. package/docs/components/accordion.md +1401 -0
  395. package/docs/components/alert-dialog.md +788 -0
  396. package/docs/components/autocomplete.md +1692 -0
  397. package/docs/components/avatar.md +261 -0
  398. package/docs/components/button.md +441 -0
  399. package/docs/components/calendar.md +1536 -0
  400. package/docs/components/carousel.md +1055 -0
  401. package/docs/components/checkbox.md +1045 -0
  402. package/docs/components/collapsible.md +535 -0
  403. package/docs/components/color-picker.md +651 -0
  404. package/docs/components/combobox.md +3274 -0
  405. package/docs/components/command.md +1431 -0
  406. package/docs/components/date-input.md +563 -0
  407. package/docs/components/date-picker.md +1136 -0
  408. package/docs/components/dialog.md +1360 -0
  409. package/docs/components/drawer.md +1201 -0
  410. package/docs/components/field.md +519 -0
  411. package/docs/components/file-input.md +617 -0
  412. package/docs/components/hover-card.md +486 -0
  413. package/docs/components/image-cropper.md +489 -0
  414. package/docs/components/input.md +327 -0
  415. package/docs/components/label.md +208 -0
  416. package/docs/components/listbox.md +1015 -0
  417. package/docs/components/menu.md +1212 -0
  418. package/docs/components/menubar.md +460 -0
  419. package/docs/components/meter.md +298 -0
  420. package/docs/components/navigation-menu.md +1573 -0
  421. package/docs/components/number-input.md +1087 -0
  422. package/docs/components/otp-input.md +558 -0
  423. package/docs/components/pagination.md +639 -0
  424. package/docs/components/password-input.md +649 -0
  425. package/docs/components/popover.md +1433 -0
  426. package/docs/components/preferences.md +243 -0
  427. package/docs/components/progress.md +406 -0
  428. package/docs/components/radio.md +855 -0
  429. package/docs/components/rating.md +431 -0
  430. package/docs/components/resizable.md +866 -0
  431. package/docs/components/scroll-area.md +898 -0
  432. package/docs/components/segmented-control.md +421 -0
  433. package/docs/components/select.md +1957 -0
  434. package/docs/components/separator.md +238 -0
  435. package/docs/components/slider.md +1018 -0
  436. package/docs/components/switch.md +583 -0
  437. package/docs/components/tabs.md +948 -0
  438. package/docs/components/textarea.md +331 -0
  439. package/docs/components/time-input.md +235 -0
  440. package/docs/components/timeline.md +622 -0
  441. package/docs/components/toast.md +1223 -0
  442. package/docs/components/toggle.md +522 -0
  443. package/docs/components/token-input.md +854 -0
  444. package/docs/components/toolbar.md +815 -0
  445. package/docs/components/tooltip.md +860 -0
  446. package/docs/components/tree.md +1243 -0
  447. package/docs/components/trigger-menu.md +1110 -0
  448. package/docs/components/waterfall.md +709 -0
  449. package/docs/controllers.md +66 -0
  450. package/docs/core.md +8027 -0
  451. package/docs/custom-parts.md +91 -0
  452. package/docs/first-component.md +88 -0
  453. package/docs/forms.md +125 -0
  454. package/docs/installation.md +141 -0
  455. package/docs/introduction.md +32 -0
  456. package/docs/lists-and-menus.md +166 -0
  457. package/docs/llms.txt +1566 -0
  458. package/docs/parts-and-composition.md +57 -0
  459. package/docs/popups.md +92 -0
  460. package/docs/rendering.md +71 -0
  461. package/docs/server-rendering.md +118 -0
  462. package/docs/state-and-events.md +134 -0
  463. package/docs/styling-and-animation.md +104 -0
  464. package/docs/utilities/async-options.md +332 -0
  465. package/docs/utilities/shortcuts.md +184 -0
  466. package/html-custom-data.json +14792 -0
  467. package/package.json +302 -3
@@ -0,0 +1 @@
1
+ import{At as e,Gt as t,I as n,Nt as r,Pt as i,Vt as a,Wt as o,Yt as s,zt as c}from"./DC08tnkE.js";import{t as l}from"./BJj3oS29.js";import{n as u,r as d}from"./B7EgSgjQ.js";import{n as f}from"./LyB6XIbN.js";const p=[],m=[`ArrowDown`,`ArrowUp`,`PageDown`,`PageUp`,`ctrl+n`,`ctrl+p`],h=e=>a(e)||e.readOnly,g=e=>({"data-disabled":a(e)?``:void 0,"data-readonly":e.readOnly?``:void 0,"data-required":e.required?``:void 0});function _(e,t,n){let r=e.ownerDocument.createDocumentFragment(),i=()=>{t()&&r.childNodes.length?e.append(r):!t()&&e.childNodes.length&&r.append(...Array.from(e.childNodes))};i();let a=n(i);return()=>{a(),r.childNodes.length&&e.append(r)}}function v(t,r,i,a=()=>!1){n&&setTimeout(()=>{!t.isConnected||a()||t.getAttribute(`aria-labelledby`)||t.getAttribute(`aria-label`)||o(t).length||e(r,i)},300)}function y(e,t){return e===void 0?{}:{"aria-posinset":String(e+1),"aria-setsize":String(t.entries().length)}}function b(e,{api:t,key:n,props:r}){return t.internal.listbox.register(n,e,()=>{let e=t.internal.itemProps(n)??r;return{value:e.value,label:e.label,keywords:e.keywords,disabled:e.disabled,group:e.group,index:e.index}})}function x(e,{api:t,key:n,props:r}){let i=b(e,{api:t,key:n,props:r});return t.internal.selection.isSelected(n,r.value)&&t.internal.selection.queueLabels(),i}function S(){return{props:{id:`id`},role:`group`,attrs:(e,{id:t,key:n,api:r})=>({"aria-labelledby":C(e,t,n),hidden:r.internal.listbox.groupMatches(n)?void 0:``})}}const C=(e,t,n)=>e.groupLabels.includes(n)?`${t}-group-${u(n)}`:void 0;function w(){return{role:`none`,attrs:(e,{api:t})=>({"aria-hidden":`true`,hidden:t.internal.filterQuery()&&!e.items?``:void 0})}}function T(){let e=(e,t)=>t.internal.isEmpty(e);return{props:{stash:`boolean`},state:(t,{api:n})=>({loading:t.status===`loading`,empty:e(t,n),query:t.query}),role:`status`,attrs:(t,{api:n})=>({"aria-live":`polite`,"aria-atomic":`true`,"data-empty":e(t,n)?``:void 0,"data-loading":t.status===`loading`?``:void 0}),bind(t,{api:n,store:r,props:i}){if(i.stash)return _(t,()=>e(r.get(),n),r.subscribe)}}}function E(){return{state:(e,{api:t})=>({status:e.status,loading:e.status===`loading`,count:t.internal.itemCount()}),role:`status`,attrs:e=>({"aria-live":`polite`,"aria-atomic":`true`,"data-loading":e.status===`loading`?``:void 0})}}function D({focusOnSelfClick:e}){return{attrs:e=>({...g(e),...d(e.open)}),bind:(t,n)=>O(t,n,{focusOnSelfClick:e})}}function O(e,{api:n,store:i},{focusOnSelfClick:a}){let{selection:o}=n.internal,c=r(e,{value:()=>{let e=o.keys();return i.get().multiple?e:e[0]??null},name:()=>i.get().name,state:()=>JSON.stringify(o.keys()),restore:n.internal.restore,valueMissing:()=>i.get().required&&o.keys().length===0,message:()=>s(`select`),anchor:n.internal.controlElement,focus:n.focus,reset:n.internal.reset,disabled:n.internal.setFormDisabled,subscribe:i.subscribe}),l=()=>{};queueMicrotask(()=>{let r=n.internal.controlElement();r&&(l=t(e,r))});let u=t=>{t.target===e&&n.focus()};return a&&e.addEventListener(`click`,u),()=>{c(),l(),e.removeEventListener(`click`,u)}}function k(e){return{attrs:(t,{id:n,api:r})=>{let i=r.internal.selection.keysOf(t.value);return{id:`${n}-${e}`,type:`text`,name:t.multiple?void 0:t.name,value:t.multiple?i.join(`,`):i[0]??``,form:t.form,autocomplete:t.autoComplete,required:t.required?``:void 0,disabled:t.disabled?``:void 0,"aria-hidden":`true`,tabindex:`-1`,style:c}},bind:(e,{api:t,store:n})=>i(e,{value:()=>{let e=t.internal.selection.keys();return n.get().multiple?e.join(`,`):e[0]??``},subscribe:n.subscribe,focus:t.focus,autofill:t.internal.autofill,reset:t.internal.reset,disabled:t.internal.setFormDisabled})}}function A(){return{props:{value:`string`},attrs:(e,{props:t})=>({type:`hidden`,name:e.name,value:t.value,form:e.form,disabled:a(e)?``:void 0})}}function j(){return{props:{item:{kind:`string`,from:`item.value`,required:!0},keepMounted:`boolean`,id:`id`},present:(e,{props:t,api:n})=>!!t.keepMounted||n.internal.selection.isSelected(t.item),state:(e,{props:t,api:n})=>({selected:n.internal.selection.isSelected(t.item)}),attrs:(e,{props:t,api:n})=>({"aria-hidden":`true`,"data-selected":n.internal.selection.isSelected(t.item)?``:void 0}),bind:(e,{api:t,props:n})=>t.internal.selection.isSelected(n.item)?l(e):void 0}}function M(){return{props:{id:{kind:`string`,from:`group.id`,required:!0},group:{kind:`string`,from:`group.id`,required:!0}},attrs:(e,{id:t,props:n})=>({id:`${t}-group-${u(n.group)}`}),bind:(e,{store:t,props:n})=>f(t,`groupLabels`,n.group)}}function N(){return{state:e=>({open:e.open}),attrs:e=>({"aria-hidden":`true`,...d(e.open)}),bind(e,{api:t}){t.internal.popup.checkPlacement()}}}export{D as _,g as a,A as b,k as c,m as d,p as f,b as g,y as h,T as i,h as l,w as m,O as n,M as o,S as p,x as r,C as s,N as t,j as u,_ as v,v as x,E as y};
@@ -0,0 +1 @@
1
+ import{S as e,T as t,i as n,o as r,t as i}from"./COWKfakj.js";const a=/[‎‏؜]/g,o={year:`Y`,month:`M`,day:`D`},s={year:`numeric`,month:`2-digit`,day:`2-digit`},c=/* @__PURE__ */ new Map;function l(e){let t=e??``,n=c.get(t);return n||c.set(t,n=u(e)),n}function u(e){let t=(/* @__PURE__ */ new Date()).getFullYear(),n=i(e,s).formatToParts(Date.UTC(t,11,31)),r=d(e),o=[],c=``,l=``;for(let e of n){let t=e.value.replace(a,``);e.type===`year`||e.type===`month`||e.type===`day`?(o.push(e.type),l+=r[e.type].repeat(e.type===`year`?4:2)):(o.length===1&&!c&&(c=t),l+=t)}let u=n.map(e=>e.value.replace(a,``)).join(``);return{fields:o,separator:c,placeholder:l,example:u}}function d(e){try{let t=new Intl.DisplayNames(e,{type:`dateTimeField`}),n=n=>{let r=t.of(n)?.[0]?.toLocaleUpperCase(e);return r&&r!==r.toLocaleLowerCase(e)?r:o[n]};return{year:n(`year`),month:n(`month`),day:n(`day`)}}catch{return o}}function f(n,r,i={}){let o=C(n.replace(a,``).trim(),r);if(!o)return;if(e(o))return o;let{fields:s}=l(r),c=Number((i.referenceDate??``).slice(0,4))||(/* @__PURE__ */ new Date()).getFullYear(),u,d=[];for(let e of o.toLocaleLowerCase(r).match(/\p{N}+|\p{L}+/gu)??[]){if(/^\d+$/.test(e)){d.push(e);continue}let t=v(e,r);if(t!==void 0&&u===void 0)u=t;else if(!x(e,r))return}let f={};if(u!==void 0){let e=s.filter(e=>e!==`month`);if(d.length>2||d.length===0)return;(d.length===1?[`day`]:e).forEach((e,t)=>f[e]=d[t]),f.month=String(u)}else if(d.length===1){let e=d[0];if(e.length!==8&&e.length!==6)return;let t=e.length-4,n=0;for(let r of s){let i=r===`year`?t:2;f[r]=e.slice(n,n+=i)}}else if(d.length===2||d.length===3)(d.length===3?s:s.filter(e=>e!==`year`)).forEach((e,t)=>f[e]=d[t]);else return;let p=m(r),h=f.year===void 0?c:g(f.year,c+p)-p;return t(h,Number(f.month),Number(f.day))}const p=/* @__PURE__ */ new Map;function m(e){let t=e??``,n=p.get(t);return n===void 0&&p.set(t,n=h(e)),n}function h(e){let t=i(e,s),n=t.formatToParts(Date.UTC(2026,11,31)),r=Number(C(n.find(e=>e.type===`year`)?.value??``,e));return!r||t.resolvedOptions().calendar===`japanese`?0:r-2026}function g(e,t){let n=Number(e);if(e.length>2)return n;let r=Math.floor((t+20)/100)*100;return r+n>t+20?r-100+n:r+n}const _=/* @__PURE__ */ new Map;function v(e,t){let n=t??``,r=_.get(n);r||_.set(n,r=y(t));let i=r.get(e);if(i!==void 0||e.length<3)return i;let a;for(let[t,n]of r)if(t.startsWith(e)){if(a!==void 0&&a!==n)return;a=n}return a}function y(e){let t=/* @__PURE__ */ new Map,r=(n,r)=>t.set(n.toLocaleLowerCase(e).replace(/\.$/,``),r);for(let t of[`long`,`short`]){n(e,t).forEach((e,t)=>r(e,t+1));let a=i(e,{day:`numeric`,month:t});for(let e=0;e<12;e++){let t=a.formatToParts(Date.UTC(2026,e,16)).find(e=>e.type===`month`);t&&r(t.value,e+1)}}return t}const b=/* @__PURE__ */ new Map;function x(e,t){let n=t??``,a=b.get(n);if(!a){a=/* @__PURE__ */ new Set;for(let e of[{dateStyle:`short`},{dateStyle:`long`}])for(let n of i(t,e).formatToParts(Date.UTC(2026,9,16)))if(n.type===`literal`)for(let e of n.value.toLocaleLowerCase(t).match(/\p{L}+/gu)??[])a.add(e);for(let e of[`long`,`short`])for(let n of r(t,e))a.add(n.toLocaleLowerCase(t).replace(/\.$/,``));b.set(n,a)}return a.has(e)}const S=/* @__PURE__ */ new Map;function C(e,t){let n=t??``,r=S.get(n);if(!r){let e=new Intl.NumberFormat(t,{useGrouping:!1}).format(9876543210);r=new Map([...e].map((e,t)=>[e,String(9-t)])),S.set(n,r)}let i=r;return e.replace(/\p{Nd}/gu,e=>i.get(e)??e)}export{f as n,l as t};
@@ -0,0 +1 @@
1
+ import{nn as e,q as t}from"./DC08tnkE.js";function n(e){return e.tagName===`BUTTON`?`button`:e.matches(`a[href]`)?`link`:`other`}function r(e){return{role:(t,n)=>e(t,n)===`other`?`button`:void 0,roles:[`button`]}}function i(e,t){let n=e===`button`,r=e===`unknown`,i=n||r,a=t.disabled&&!t.focusable,o=a&&!i?`-1`:e===`other`?`0`:void 0;return{type:i?t.type:void 0,disabled:i&&a?``:void 0,"aria-disabled":t.disabled&&(r||!(n&&a))?`true`:void 0,tabindex:t.tabindex??o}}function a(n,r){e(n)?t(`keyboard`,()=>r.click()):r.click()}function o(e,t){e.target===t&&n(t)===`other`&&(e.key===`Enter`?(e.preventDefault(),e.repeat||a(e,t)):e.key===` `&&e.preventDefault())}function s(e,t){e.target===t&&e.key===` `&&n(t)===`other`&&a(e,t)}function c(e,t){if(!e||!t||!(e instanceof MouseEvent)||!t.matches(`a[href]`))return!1;let n=t.getAttribute(`target`);return e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0||t.hasAttribute(`download`)||!!n&&n!==`_self`}export{r as a,s as i,i as n,c as o,o as r,n as t};
@@ -0,0 +1 @@
1
+ const e=/* @__PURE__ */ new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`]);function t(t){let n=t;for(;n?.shadowRoot?.activeElement;)n=n.shadowRoot.activeElement;return n?.tagName?n.isContentEditable||n.tagName===`TEXTAREA`||n.tagName===`IFRAME`?!0:n.tagName===`INPUT`&&!e.has(n.type):!1}function n(e){let n={width:0,height:0};return(r,i)=>{let a={width:r.width*r.scale,height:r.height*r.scale},o=i?.type===`focusout`&&t(i.relatedTarget);return!t(e.document.activeElement)&&!o?(i?.type.startsWith(`focus`)||(n=a),0):(Math.abs(a.width-n.width)>1&&(n={width:a.width,height:r.layoutHeight*r.scale}),Math.max(0,Math.round((n.height-a.height)/r.scale)))}}const r=/* @__PURE__ */ new WeakMap;function i(e,t,n){let i=Math.max(0,t.layoutHeight-t.offsetTop-t.height);return Math.abs(t.height-t.layoutHeight)<=1&&r.set(e,t.scale),n>0?Math.round(Math.min(n,i)):t.scale>(r.get(e)??1)+.01?0:Math.round(i)}function a(e,t){let n=e.ownerDocument.defaultView,r=n?.visualViewport;if(!n||!r)return()=>{};let a=null,s=r=>{let o=i(n,r,0),s=a!==null&&o!==a;a=o,s&&t?.before(),e.style.setProperty(`--keyboard-inset`,`${o}px`),e.style.setProperty(`--visual-viewport-height`,`${Math.round(r.height)}px`),o>0?e.setAttribute(`data-keyboard`,``):e.removeAttribute(`data-keyboard`),s&&t?.after()};s(u.get(n)??o(n,r));let c=l(n,r,s);return()=>{c(),e.style.removeProperty(`--keyboard-inset`),e.style.removeProperty(`--visual-viewport-height`),e.removeAttribute(`data-keyboard`)}}function o(e,t){return{width:t.width,layoutHeight:e.innerHeight,height:t.height,offsetTop:t.offsetTop,scale:t.scale}}const s=/* @__PURE__ */ new WeakMap;function c(e,t){let n=/* @__PURE__ */ new Set,r=r=>{let i=o(e,t);for(let e of n)e(i,r)};t.addEventListener(`resize`,r),t.addEventListener(`scroll`,r);let i={followers:n,stop:()=>{t.removeEventListener(`resize`,r),t.removeEventListener(`scroll`,r),s.delete(t)}};return s.set(t,i),i}function l(e,t,n){let{followers:r,stop:i}=s.get(t)??c(e,t);return r.add(n),()=>{r.delete(n)&&!r.size&&i()}}const u=/* @__PURE__ */ new WeakMap;function d(e){let t=e?.visualViewport;e&&t&&!u.has(e)&&(u.set(e,o(e,t)),setTimeout(()=>u.delete(e)))}export{d as a,o as i,n,a as o,i as r,l as t};
@@ -0,0 +1,9 @@
1
+ import{r as e,t}from"./B_ns1YHO.js";import{C as n,F as r,H as i,R as a,S as o,W as s,g as c,mt as l,r as u,v as d,w as f,xt as p,y as m,z as h}from"./DC08tnkE.js";import{n as ee,t as te}from"./BJj3oS29.js";import{n as g}from"./B7EgSgjQ.js";import{a as ne,t as _}from"./0eRGibL6.js";import{n as re}from"./XsM0J1Ex.js";import{t as ie}from"./Bjiy_F2N.js";import{a as v}from"./D02PaHn6.js";import{a as ae}from"./Djdv-16J.js";import{u as oe}from"./BQeduZqT.js";import{s as se}from"./DjRcw3Y0.js";import{n as ce}from"./By30h-7B.js";import{t as le}from"./C1zqYpy2.js";import{t as y}from"./DneGv1oC.js";import{o as ue}from"./BgsKhHDm.js";let b=0,x=0;function S(e){return!e||typeof e!=`object`||Object.getPrototypeOf(e)!==Object.prototype?!1:!(`$$typeof`in e)&&!(`__v_isVNode`in e)}const C=/* @__PURE__ */ new WeakMap;function w(e){let t=C.get(e);if(!t)throw Error(`Expected a toaster from createToaster().`);return t}function T({duration:e=5e3,overlays:t=y}={}){let n=[],r=/* @__PURE__ */ new Set,i=0,a=!1,o=()=>r.forEach(e=>e());function c(e,t){return{...S(e)?e:{title:e},...t}}function l(t,n){let r=t.type??n?.type??`default`,i=!!n&&r!==n.type;return{...n,...t,id:t.id??n?.id??`toast-${++b}`,type:r,duration:t.duration??(i?void 0:n?.duration)??(r===`loading`?1/0:e),priority:t.priority??(i?void 0:n?.priority)??(r===`error`?`assertive`:`polite`),version:(n?.version??0)+1,order:n?.order??++x}}function u(e){let r=e.id?n.find(t=>t.id===e.id):void 0;if(r)return d(r.id,e),r.id;let s=l(e);return n=[s,...n],!a&&!i&&(a=!0,t.mount(`toaster`,{toaster:p},()=>i>0)),o(),s.id}function d(e,t){let r=n.findIndex(t=>t.id===e);if(r===-1)return!1;let i=[...n];return i[r]=l({...c(t),id:e},n[r]),n=i,o(),!0}function f(e,t,r){let i=n.find(t=>t.id===e);if(!i)return!1;let a=s({reason:t,event:r},_(t,r));return i.onDismiss?.(a),!a.canceled&&(n=n.filter(e=>e!==i),o(),!0)}function p(e,t){return u(c(e,t))}let m=e=>(t,n)=>u({...c(t,n),type:e}),h={success:m(`success`),error:m(`error`),info:m(`info`),warning:m(`warning`),loading:m(`loading`),promise(e,t,n){let r=u({...c(t.loading,n),type:`loading`}),i=(e,t,n)=>{if(t===void 0)return f(r,`imperative`);let i=typeof t==`function`?t(n):t;d(r,{...c(i),type:e})};return(typeof e==`function`?e():e).then(e=>i(`success`,t.success,e),e=>i(`error`,t.error,e)),r},update:d,dismiss(e){for(let t of e===void 0?n:n.filter(t=>t.id===e))f(t.id,`imperative`)},toasts:()=>n,subscribe(e){return r.add(e),()=>{r.delete(e)}}};return Object.assign(p,h),C.set(p,{close:f,attachRegion(e){if(!e)return()=>{};i++,o();let t=!0;return()=>{t&&(t=!1,i--,o())}},hasPlacedRegion:()=>i>0}),p}const E=globalThis[Symbol.for(`ui-sdk.toast@1`)]??=T();function D(e,t,n){return e===`up`?-n:e===`down`?n:e===`left`?-t:t}function O(e){return Math.sign(e)*4*Math.log1p(Math.abs(e)/4)}function k(e,t,n,r){let i=(e,t,n)=>e<0&&r.includes(t)||e>0&&r.includes(n)?e:O(e);return n===`x`?{x:i(e,`left`,`right`),y:0}:{x:0,y:i(t,`up`,`down`)}}function A({x:e,y:t,velocityX:n,velocityY:r,directions:i,threshold:a=40,flick:o=.3}){for(let s of i){let i=D(s,e,t),c=D(s,n,r);if(i>=a||i>8&&c>=o)return s}return null}function j(e,t,n){if(Math.hypot(e,t)<8)return;let r=Math.abs(e)>Math.abs(t)?`x`:`y`;return(r===`x`?n.some(e=>e===`left`||e===`right`):n.some(e=>e===`up`||e===`down`))?r:null}function de(e,t,n,r,i){let a={x:n.clientX,y:n.clientY},o=[{x:a.x,y:a.y,time:n.timeStamp}],s=`x`;e.startOnMove(t,n,{pick(e){let t=j(e.clientX-a.x,e.clientY-a.y,r);if(t!==void 0)return t!==null&&(s=t,i.onStart(s),!0)},onMove:({x:e,y:t,event:n})=>{o.push({x:e,y:t,time:n.timeStamp}),o.length>2&&o.shift(),i.onMove(k(e-a.x,t-a.y,s,r))},onEnd:(e,t)=>{let[n,c]=o,l=c?Math.max(1,c.time-n.time):1/0,u=e.clientX-a.x,d=e.clientY-a.y,f=t?null:A({x:s===`x`?u:0,y:s===`y`?d:0,velocityX:c?(c.x-n.x)/l:0,velocityY:c?(c.y-n.y)/l:0,directions:r});i.onEnd(f,e)}})}function fe(e){p(e,`ui-sdk-toast-defaults`,`@layer ui-sdk {
2
+ :where([data-slot="toast-region"]) { position: fixed; z-index: 2147483000; display: flex; flex-direction: column; max-width: 100vw }
3
+ :where([data-slot="toast-region"][data-side="bottom"]) { bottom: calc(var(--keyboard-inset, 0px) + env(safe-area-inset-bottom, 0px)) }
4
+ :where([data-slot="toast-region"][data-side="top"]) { top: env(safe-area-inset-top, 0px) }
5
+ :where([data-slot="toast-region"][data-align="start"]) { inset-inline-start: env(safe-area-inset-left, 0px) }
6
+ :where([data-slot="toast-region"][data-align="end"]) { inset-inline-end: env(safe-area-inset-right, 0px) }
7
+ :where([data-slot="toast-region"][data-align="center"]) { left: 50%; translate: -50% 0 }
8
+ :where([data-slot="toast-list"]) { margin: 0; padding: 0; list-style: none }
9
+ }`)}function pe(e,t,n){let r=[e===`top`?`up`:`down`];return t===`end`&&r.push(n?`left`:`right`),t===`start`&&r.push(n?`right`:`left`),r}function me(e,t){let n=0,r=0,i=/* @__PURE__ */ new Map;for(let a of e){if(a.leaving)continue;i.set(a.id,{index:a.index,offset:n});let e=t.get(a.id)??0;n+=e,r+=e}let a=e.find(e=>!e.leaving);return{layout:i,total:r,front:a?t.get(a.id):0}}function he(e){let{style:t}=e,n=t.getPropertyValue(`height`),r=t.getPropertyPriority(`height`);t.setProperty(`height`,`auto`,`important`);let i=getComputedStyle(e),a=parseFloat(i.height);if(i.boxSizing!==`border-box`)for(let e of[`Top`,`Bottom`])a+=parseFloat(i[`padding${e}`])+parseFloat(i[`border${e}Width`]);return t.setProperty(`height`,n,r),getComputedStyle(e).height,a}function ge(e,t,n){let r=e.indexOf(t),i=e.filter(e=>e!==t);return i.length?i[Math.min(Math.max(r,0),i.length-1)]:n}function _e(e){let t=e.target?.ownerDocument;if(!t)return!1;let{clientX:n,clientY:r}=e,i=t.caretPositionFromPoint?.(n,r),a=i?i.offsetNode:t.caretRangeFromPoint?.(n,r)?.startContainer;if(a?.nodeType!==Node.TEXT_NODE)return!1;for(let e=a.parentElement;e;e=e.parentElement){let{userSelect:t,webkitUserSelect:n}=getComputedStyle(e),r=t||n;if(r===`none`)return!1;if(r&&r!==`auto`)break}let o=t.createRange();return o.selectNodeContents(a),Array.from(o.getClientRects()).some(e=>n>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom)}function ve(e,t){let n=e.ownerDocument,r=n.defaultView??window,i=()=>t.away(`page-hide`,n.visibilityState===`hidden`),a=[l(e,`pointerenter`,e=>e.pointerType!==`touch`&&t.hover(!0)),l(e,`pointerleave`,e=>e.pointerType!==`touch`&&t.hover(!1)),l(e,`focusin`,n=>{let r=n.relatedTarget;t.focus(!0,r&&!e.contains(r)?r:void 0)}),l(e,`focusout`,r=>{let i=r.relatedTarget;if(i){!e.contains(i)&&t.focus(!1);return}queueMicrotask(()=>(!n.hasFocus()||!e.contains(n.activeElement))&&t.focus(!1))}),l(r,`blur`,()=>setTimeout(()=>n.activeElement?.tagName!==`IFRAME`&&t.away(`window-blur`,!0))),l(r,`focus`,()=>t.away(`window-blur`,!1))];return n.addEventListener(`visibilitychange`,i),n.visibilityState===`hidden`&&t.away(`page-hide`,!0),()=>{a.forEach(e=>e()),n.removeEventListener(`visibilitychange`,i)}}function ye(e,t=()=>Date.now()){let n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Set,i=[];function a(e){e.startedAt!==void 0&&(clearTimeout(e.timer),e.remaining-=t()-e.startedAt,e.startedAt=void 0,e.timer=void 0)}function o(r,i){i.startedAt===void 0&&Number.isFinite(i.remaining)&&(i.startedAt=t(),i.timer=setTimeout(()=>{i.startedAt=void 0,i.timer=void 0,i.remaining=0,e(r)===!1&&n.get(r)===i&&(i.remaining=i.duration,s())},Math.max(0,i.remaining)))}function s(){let e=new Set(i.map(e=>e.id));for(let[t,r]of n)e.has(t)||a(r);for(let e of i){let t=n.get(e.id);(!t||t.version!==e.version)&&(t&&a(t),t={version:e.version,duration:e.duration,remaining:e.duration},n.set(e.id,t)),r.size||e.held?a(t):o(e.id,t)}}return{update(e,t){i=e;for(let[e,r]of n)t.has(e)||(a(r),n.delete(e));s()},pause(e){r.has(e)||(r.add(e),s())},resume(e){r.delete(e)&&s()},isPaused:()=>r.size>0,remaining(e){let r=n.get(e);if(r)return r.startedAt===void 0?r.remaining:r.remaining-(t()-r.startedAt)},destroy(){for(let e of n.values())a(e);n.clear()}}}const M=(e,t)=>e.find(e=>e.toast.id===t),N=e=>e.alwaysExpanded||e.hovered||e.focused,P=e=>e.some(e=>!e.leaving),F=e=>({items:[],toaster:e.toaster??E,side:e.side??`bottom`,align:e.align??`end`,maxVisible:e.maxVisible??3,alwaysExpanded:!!e.expanded,shortcut:e.shortcut===void 0?`F6`:e.shortcut,label:e.label,hovered:!1,focused:!1,buttons:{}}),I=e=>({toaster:e.toaster??E,side:e.side??`bottom`,align:e.align??`end`,maxVisible:e.maxVisible??3,alwaysExpanded:!!e.expanded,shortcut:e.shortcut===void 0?`F6`:e.shortcut,label:e.label});function L(i){let{store:s,options:c,onDestroy:u,element:d}=i,f=ce(u),p=ne(),g=()=>s.get().toaster,_=c(),y=ye(e=>j(e,`timeout`)),b=/* @__PURE__ */ new Map,x=/* @__PURE__ */ new Set,S,C,T=/* @__PURE__ */ new Map,E=/* @__PURE__ */ new Map,D=/* @__PURE__ */ new Set,O=/* @__PURE__ */ new Map,k=null,A=!1,j=(e,t,n)=>w(g()).close(e,t,n);m(i,()=>{let{buttons:e}=s.get();for(let t in e)if(e[t].pending)return!0;return!1});function N(){let{items:e,maxVisible:t}=s.get(),n=g().toasts(),r=n.slice(0,Math.max(0,t)),i=new Set(r.map(e=>e.id)),a=e.filter(e=>!i.has(e.toast.id)).map(e=>e.leaving?e:{...e,leaving:!0}),o=[...r.map((e,t)=>({toast:e,index:t,leaving:!1})),...a].sort((e,t)=>t.toast.order-e.toast.order);s.set({items:o}),F();for(let e of r)b.get(e.id)!==e.version&&(b.set(e.id,e.version),x.add(e.id));let c=new Set(n.map(e=>e.id));for(let e of b.keys())c.has(e)||b.delete(e);x.size&&L()}function F(){let e=s.get().items.filter(e=>!e.leaving);y.update(e.map(({toast:e})=>({id:e.id,version:e.version,duration:e.duration,held:D.has(e.id)})),new Set(g().toasts().map(e=>e.id)))}function I(e){let t=[d(`title`,e.id),d(`description`,e.id)].filter(e=>!!e&&!e.hidden);if(t.length)return t.map(e=>v(e).trim()).filter(Boolean).join(`. `);let n=d(`root`,e.id);return n?v(n).trim():[e.title,e.description].filter(e=>typeof e==`string`).join(`. `)}function L(){let e=Date.now();C??=e,clearTimeout(S),S=setTimeout(R,Math.max(0,Math.min(100,C+400-e)))}function R(){S=void 0,C=void 0;let e={polite:[],assertive:[]};for(let t of s.get().items){if(t.leaving||!x.has(t.toast.id))continue;let n=I(t.toast);n&&e[t.toast.priority].push(n)}x.clear();for(let n of[`assertive`,`polite`])e[n].length&&t(e[n].join(`. `),{priority:n})}function z(e){T.delete(e);let{items:t}=s.get();t.some(t=>t.leaving&&t.toast.id===e)&&s.set({items:t.filter(t=>!(t.leaving&&t.toast.id===e))}),M(s.get().items,e)||W(e)}function B(){for(let e of s.get().items){let t=e.toast.id,r=T.get(t);if(!e.leaving){r&&(r(),T.delete(t));continue}if(r)continue;let i=d(`root`,t);if(!i){T.set(t,()=>{}),queueMicrotask(()=>z(t));continue}i.contains(n(i.ownerDocument))&&V(i),T.set(t,ee(i,()=>z(t)))}H()}function V(e){let{items:t}=s.get();ge(ie(i,`root`).filter(({el:n,key:r})=>n===e||!M(t,r)?.leaving).map(({el:e})=>e),e,k?.isConnected?k:void 0)?.focus({preventScroll:!0})}function H(){let e=d(`region`);if(!e)return;let{items:t}=s.get(),n=me(t.map(e=>({id:e.toast.id,index:e.index,leaving:e.leaving})),E);n.front!==void 0&&e.style.setProperty(`--toast-front-height`,`${n.front}px`),e.style.setProperty(`--toast-stack-height`,`${n.total}px`),e.style.setProperty(`--toast-count`,String(n.layout.size));for(let[e,t]of n.layout){let n=d(`root`,e);if(!n)continue;n.style.setProperty(`--toast-index`,String(t.index)),n.style.setProperty(`--toast-offset`,`${t.offset}px`);let r=E.get(e);r!==void 0&&n.style.setProperty(`--toast-height`,`${r}px`)}}function U(e,t,n){let r={...s.get().buttons};n?(r[e]=n,O.set(e,t)):(delete r[e],O.delete(e)),s.set({buttons:r})}function W(e){let t=[...O].filter(([,t])=>t===e).map(([e])=>e);if(!t.length)return;let n={...s.get().buttons};for(let e of t)delete n[e],O.delete(e);s.set({buttons:n})}function G(e,t){t?D.add(e):D.delete(e),F()}function K(){let e=d(`region`);if(!e)return!1;let t=n(e.ownerDocument);if(t&&e.contains(t))return q(),!0;let r=ie(i,`root`).find(({key:e})=>!M(s.get().items,e)?.leaving);return r?(k=t,A=!0,r.el.focus({preventScroll:!0}),!0):!1}function q(){A=!1,k?.isConnected&&k.focus({preventScroll:!0})}let J=e=>y.pause(e),Y=e=>y.resume(e);function be(t){let n=t.ownerDocument;oe(n,[`[data-slot="toast-region"]`]),e(n),fe(n);let i=()=>{if(!t.isConnected)return requestAnimationFrame(i);try{t.showPopover()}catch{}};r()&&(t.setAttribute(`popover`,`manual`),i());let a=[Te(),ae(t),ue(t),ve(t,{hover:e=>{s.set({hovered:e}),e?J(`item-hover`):Y(`item-hover`)},focus:(e,t)=>{e&&!s.get().focused&&t&&(k=t),e||(A=!1),s.set({focused:e}),e?J(`focus-in`):Y(`focus-in`)},away:(e,t)=>t?J(e):Y(e)})],o=null,c=()=>{},l=()=>{let e=s.get().shortcut||null;e!==o&&(c(),o=e,c=e?le(e,()=>K(),{layer:t,allowInInput:/^F\d+$/i.test(e),when:()=>P(s.get().items),description:`Move focus to notifications`}):()=>{})};return l(),a.push(s.subscribe(l),()=>c()),H(),()=>{a.forEach(e=>e());for(let e of[`item-hover`,`focus-in`,`window-blur`,`page-hide`])Y(e);s.set({hovered:!1,focused:!1})}}function xe(e,t){if(e.key!==`Tab`||!A)return;let n=se(t),r=e.shiftKey?n[0]:n.at(-1);e.target===r&&k?.isConnected&&(e.preventDefault(),q())}function X(e){let t=d(`root`,e);if(!t)return;let n=t=>{let n=d(t,e);return n&&!n.hidden?n.id:void 0};h(t,{"aria-labelledby":n(`title`),"aria-describedby":n(`description`)},`toast-labels`)}function Se(e,t){let n=[M(s.get().items,t)?.leaving?()=>{}:te(e)];X(t);let r=!0,i,a=!1,o=()=>{let n=M(s.get().items,t);if(!r||a||!n||n.leaving||!e.isConnected)return;let i=e.getAnimations().filter(e=>`transitionProperty`in e&&e.transitionProperty===`height`);if(i.length){a=!0,Promise.allSettled(i.map(e=>e.finished)).then(()=>{a=!1,o()});return}let c=he(e);E.get(t)!==c&&(E.set(t,c),H())},c=new ResizeObserver(t=>{let n=!1;for(let r of t)if(r.target!==e)n=!0;else{let e=r.borderBoxSize?.[0],t=`${e?.inlineSize} ${(e?.blockSize??0)-(r.contentBoxSize?.[0]?.blockSize??0)}`;t!==i&&(n=!0),i=t}n&&o()}),u=()=>{for(let t of e.children)c.observe(t,{box:`border-box`})},d=new MutationObserver(t=>{t.some(t=>t.type!==`attributes`||t.target===e)&&(u(),o())});return c.observe(e),u(),d.observe(e,{subtree:!0,childList:!0,characterData:!0,attributeFilter:[`class`]}),o(),n.push(()=>{r=!1,c.disconnect(),d.disconnect()},l(e,`pointerdown`,n=>Z(e,t,n))),H(),()=>n.forEach(e=>e())}function Z(e,t,n){let r=M(s.get().items,t)?.toast;if(!f.accepts(n)||!r||r.dismissible===!1||n.target?.closest(`input, textarea, select, [contenteditable]:not([contenteditable='false'])`))return;let{side:i,align:o}=s.get(),c=pe(i,o,a(e));n.pointerType===`mouse`&&_e(n)||de(f,e,n,c,{onStart:()=>{e.ownerDocument.getSelection()?.removeAllRanges(),e.setAttribute(`data-swiping`,``),J(`swipe`)},onMove:({x:t,y:n})=>{e.style.setProperty(`--toast-swipe-x`,`${t}px`),e.style.setProperty(`--toast-swipe-y`,`${n}px`)},onEnd:(n,r)=>{if(e.removeAttribute(`data-swiping`),Y(`swipe`),n&&j(t,`swipe`,r)){e.setAttribute(`data-swipe-direction`,n);return}e.style.removeProperty(`--toast-swipe-x`),e.style.removeProperty(`--toast-swipe-y`)}})}function Ce(e,t,n,r,a,c){if(s.get().buttons[e]?.pending)return;let l=p(a,c);o(e=>n?.(c,e),l,{pending:n=>{U(e,t,{pending:n}),G(t,n),re(i,`pending`,n,{reason:a,source:l})},done:()=>{s.get().buttons[e]&&U(e,t,void 0),r&&j(t,a,c)},failed:n=>{U(e,t,{pending:!1,error:n}),re(i,`error`,n,{reason:a,source:l})}})}let Q=0,$=()=>{};y.pause(`detached`);function we(e){let t=e.subscribe(N),n=w(e).attachRegion(_.placed??!0);return()=>{t(),n()}}function Te(){if(Q++===0){let e=g(),t=we(e),n=s.get().maxVisible,r=s.subscribe(()=>{let{maxVisible:r,toaster:i}=s.get();(i!==e||r!==n)&&(i!==e&&(t(),t=we(e=i)),n=r,N()),B()});$=()=>{t(),r()},N(),Y(`detached`)}let e=!0;return()=>{e&&(e=!1,!(--Q>0)&&($(),J(`detached`)))}}return u(()=>{$(),y.destroy(),clearTimeout(S),T.forEach(e=>e())}),{focus:K,pause:J,resume:Y,internal:{bindRegion:be,bindToast:Se,regionKeydown:xe,label:X,press:Ce,close:j,toaster:g,connect:Te}}}const R=L,z=e=>({region:e({role:e=>P(e.items)?`region`:void 0,roles:[`region`],attrs:e=>{let t=P(e.items);return{"aria-label":t?e.label??`Notifications`:void 0,"aria-keyshortcuts":t&&e.shortcut?f(e.shortcut):void 0,"data-side":e.side,"data-align":e.align,"data-expanded":N(e)?``:void 0}},state:e=>({side:e.side,align:e.align,expanded:N(e),toasts:e.items}),on:{keydown:(e,{el:t,api:n})=>t&&n.internal.regionKeydown(e,t)},bind:(e,{api:t})=>t.internal.bindRegion(e)}),list:e({}),root:e({present:(e,{key:t})=>!!M(e.items,t),attrs:(e,{key:t})=>{let n=M(e.items,t);return n?{tabindex:`0`,"data-type":n.toast.type,"data-front":n.index===0?``:void 0,"data-expanded":N(e)?``:void 0,style:n.toast.dismissible===!1?void 0:`touch-action:none`}:{}},state:(e,{key:t})=>{let n=M(e.items,t);return{type:n?.toast.type??`default`,index:n?.index??0,front:!!n&&n.index===0,expanded:N(e),leaving:!n||n.leaving}},on:{keydown:(e,{key:t,api:n})=>{if(e.key!==`Escape`)return;let r=n.internal.toaster().toasts().find(e=>e.id===t);r&&r.dismissible!==!1&&(e.preventDefault(),n.internal.close(t,`escape-key`,e))}},bind:(e,{key:t,api:n})=>n.internal.bindToast(e,t)}),title:e({props:{id:{kind:`string`,from:`root`}},attrs:(e,{id:t,key:n})=>({id:`${t}-${g(n)}-title`}),bind:(e,{key:t,api:n})=>(n.internal.label(t),()=>queueMicrotask(()=>n.internal.label(t)))}),description:e({props:{id:{kind:`string`,from:`root`}},attrs:(e,{id:t,key:n})=>({id:`${t}-${g(n)}-description`}),bind:(e,{key:t,api:n})=>(n.internal.label(t),()=>queueMicrotask(()=>n.internal.label(t)))}),action:e({props:{id:`id`,toast:{kind:`string`,from:`root.id`},onAction:`action`,dismiss:`boolean`},attrs:(e,{key:t})=>B(e.buttons[t]),state:(e,{key:t})=>({pending:!!e.buttons[t]?.pending,error:e.buttons[t]?.error}),press:({key:e,props:t,api:n},r)=>{let i=n.internal.toaster().toasts().find(e=>e.id===t.toast)?.action;n.internal.press(e,t.toast,t.onAction??i?.onAction,t.dismiss??i?.dismiss??!0,`action`,r)}}),close:e({props:{id:`id`,toast:{kind:`string`,from:`root.id`},action:`action`},attrs:(e,{key:t})=>B(e.buttons[t]),state:(e,{key:t})=>({pending:!!e.buttons[t]?.pending,error:e.buttons[t]?.error}),press:({key:e,props:t,api:n},r)=>n.internal.press(e,t.toast,t.action,!0,`close-press`,r)})});function B(e){return{"data-pending":e?.pending?``:void 0,"aria-busy":e?.pending?`true`:void 0,"aria-disabled":e?.pending?`true`:void 0}}function V(e){if(e!==null)return e===`none`||e===``?null:e}const H=/* @__PURE__ */ i({name:`toast`,options:{toaster:`value`,side:`string`,align:`string`,maxVisible:`number`,expanded:`boolean`,shortcut:V,pendingAnnouncement:`string`,placed:`boolean`,label:`string`},state:F,sync:I,controlled:[],api:e=>R(e),slots:e=>z(e),agent:{actions:[`pause`]}}),U=/* @__PURE__ */ new WeakMap,W=/* @__PURE__ */ new WeakMap,G=/* @__PURE__ */ new WeakSet,K=/* @__PURE__ */ new WeakMap,q=/* @__PURE__ */ new WeakMap,J=e=>document.createElement(e);function Y(e){let t=J(e),n=J(`button`);return n.setAttribute(`type`,`button`),t.append(n),t}function be(){let e=J(`ui-toast`),t=J(`div`);t.append(J(`ui-toast-title`),J(`ui-toast-description`)),e.append(t);let n=Y(`ui-toast-close`);return G.add(n),e.append(Y(`ui-toast-action`),n),e}function xe(e){let t=e.content.cloneNode(!0).querySelector(`ui-toast`);for(let e of t.querySelectorAll(`ui-toast-close`))(c(e)??e).childNodes.length||G.add(e);return t}const X=e=>(t,n)=>{let r=e.closest(`ui-toast`);return r?K.get(r)?.cancel?.onCancel?.(t,n):void 0};function Se(e,t){K.set(e,t);let n=[[`ui-toast-title`,t.title],[`ui-toast-description`,t.description],[`ui-toast-action`,t.action?.label],[`ui-toast-close`,t.cancel?.label]];for(let[t,r]of n)for(let n of e.querySelectorAll(t)){if(t===`ui-toast-close`&&!G.has(n))continue;let e=t===`ui-toast-action`||t===`ui-toast-close`?c(n)??n:n;(W.has(e)?W.get(e)===r:e.childNodes.length)||(n.hidden=r==null,e.replaceChildren(...r==null?[]:[r]),W.set(e,r))}}function Z(e,t,n=!1){let r=U.get(e);if(!r)return;let i=e.querySelector(`:scope > template`),a=t.get().items,o=new Set(a.map(e=>e.toast.id));for(let[e,t]of r.toasts)o.has(e)||(r.toasts.delete(e),t.remove());let s=null;for(let{toast:o}of a){let a=r.toasts.get(o.id);a||(a=i?xe(i):be(),a.setAttribute(`toast`,o.id),r.toasts.set(o.id,a)),(n||K.get(a)!==o)&&(Se(a,o),e.renderToast?.(o,a)),t.api.internal.label(o.id);let c=s?s.nextElementSibling:r.list.firstElementChild;c!==a&&r.list.insertBefore(a,c),s=a}}function Ce(e,t){if(!U.has(e)){let t=document.createElement(`ol`);t.setAttribute(`data-slot`,`toast-list`),e.append(t),U.set(e,{list:t,toasts:/* @__PURE__ */ new Map})}return Z(e,t,!0),t.subscribe(()=>Z(e,t))}function Q(){u(H,{root:{tag:`ui-toast-region`,self:`region`,display:`block`,kinds:{placed:null,label:null},properties:[`renderToast`],options:e=>(q.has(e)||q.set(e,e.getAttribute(`aria-label`)??void 0),{placed:!e.hosted,label:q.get(e)}),api:[`focus`,`pause`,`resume`],render:(e,t)=>Ce(e,t)},toast:{tag:`ui-toast`,slot:`root`,display:`block`,context:e=>({id:e.getAttribute(`toast`)??void 0}),render:e=>e.setAttribute(`role`,`listitem`)},title:{tag:`ui-toast-title`,display:`block`},description:{tag:`ui-toast-description`,display:`block`},action:{tag:`ui-toast-action`,defaults:{dismiss:!0},display:`contents`,target:c,context:e=>({onAction:e.hasAttribute(`action`)?d(e):void 0})},close:{tag:`ui-toast-close`,display:`contents`,target:c,context:e=>({action:G.has(e)?X(e):e.hasAttribute(`action`)?d(e):void 0})}})}export{w as n,Q as t};
@@ -0,0 +1 @@
1
+ import{an as e}from"./DC08tnkE.js";function t(t,n){let r=[...t.parts()].filter(e=>e.slot===n&&!!e.el?.isConnected);return e(r).map(({el:e,key:t,props:n})=>({el:e,key:t,props:n}))}export{t};
@@ -0,0 +1 @@
1
+ import{on as e,rn as t}from"./DC08tnkE.js";import{r as n,t as r}from"./D02PaHn6.js";import{r as i,s as a}from"./DwDilCo2.js";function o(e,t){if(e==null)return``;if(t)return t(e);if(typeof e==`string`)return e;if(typeof e==`object`){let t=e.value??e.id;if(t!=null&&typeof t!=`object`)return String(t)}return String(e)}function s(e){return typeof e==`string`?{value:e,label:e}:e}const c=e=>typeof e==`object`&&`type`in e&&e.type===`group`,l=e=>typeof e==`object`&&`type`in e&&e.type===`separator`;function u(e,t){let n=[];return e.forEach((e,r)=>{if(!l(e)){if(c(e)){for(let i of e.items)n.push(d(s(i),t,`group-${r}`));return}n.push(d(s(e),t))}}),n}function d(e,t,n){return{key:t(e.value),value:e.value,label:e.label,keywords:e.keywords,disabled:!!e.disabled,group:n}}function f(e,t){for(let n=e.parentElement;n;n=n.parentElement){let r=getComputedStyle(n);if(/(auto|scroll)/.test(r.overflowY)&&n.scrollHeight>n.clientHeight){let t=e.getBoundingClientRect().top-n.getBoundingClientRect().top-n.clientTop+n.scrollTop,i=parseFloat(r.scrollPaddingTop)||0,o=parseFloat(r.scrollPaddingBottom)||0,s=a(n.scrollTop,n.clientHeight,t,e.offsetHeight,i,o),c=Math.min(s,n.scrollHeight-n.clientHeight);c!==n.scrollTop&&(n.scrollTop=c);return}if(n===t)return}}function p(a,o){let{store:s}=a,c=typeof a.focus==`function`?a.focus:()=>a.focus,l=t(),d=/* @__PURE__ */ new Map,p=r(),m=/* @__PURE__ */ new Set,h,g,_,v,y=0,b=0,x=(e,t)=>{if(t?.data===e)return t;let n=u(e,a.toKey);return{data:e,flat:n,byKey:new Map(n.map(e=>[e.key,e]))}};function S(){let e=a.items();if(e)return h=x(e,h)}function C(){let e=a.emptyItems?.();return e&&(g=x(e,g))}function w(){if(a.items()&&(a.showEmpty?.()??!a.query().trim()))return C()}function T(e){return S()?.byKey.get(e)??C()?.byKey.get(e)}function E(){let e=w()??S();if(!e)return;let t=a.query(),n=a.filter(),r=a.rank?.()??!1;if(_?.data!==e.data||_.query!==t||_.filter!==n||_.rank!==r){let i=o.data(e.data,t,n,{rank:r});_={data:e.data,query:t,filter:n,rank:r,list:i,flat:u(i,a.toKey)}}return _}function D(e,t){let r=t.meta(),i=r.label??n(t.el);if(r.pinned)return i;let a=d.get(e);return a?.label!==i&&(d.set(e,{...a,label:i,value:r.value}),y++),i}function O(e,t){let n=t.meta();return{key:e,value:n.value,label:D(e,t),keywords:n.keywords,get disabled(){return!!t.meta().disabled},group:n.group,pinned:n.pinned}}let k=/* @__PURE__ */ new Map,A=(e,t)=>!!S()||M(e,t);function j(e,t){return k.set(e,t),A(e,t)}function M(e,t){let n=l.get(e),r=t.label??(n?D(e,n):d.get(e)?.label)??(typeof t.value==`string`?t.value:``);return o.matches({value:t.value,label:r,keywords:t.keywords},a.query(),a.filter())}function N(t){if(!m.size)return t;let n=t.length?l.get(t[0].key)?.el:void 0,r=[],i=[];for(let t of m){let a=l.get(t);a?.el.isConnected&&(n?.isConnected&&e(a.el,n)?r:i).push(O(t,a))}return r.length||i.length?[...r,...t,...i]:t}function P(){let e=l.list(),t=a.query(),n=a.filter();if(v?.order===e&&v.query===t&&v.filter===n&&v.version===y)return v.list;let r=e.map(e=>O(e.key,e)).filter((t,n)=>e[n].meta().pinned||M(t.key,t));return v={order:e,query:t,filter:n,version:y,list:r},r}function F(){let e=E();return e?N(e.flat):P()}let I=e=>e.disabled||!!a.blocked?.(e);function L(e){if(e===null)return;let t=T(e);if(t)return t;let n=l.get(e);if(n)return O(e,n);let r=d.get(e);if(r)return{key:e,value:r.value,label:r.label,disabled:!1}}function R(e,t){c()===`real`&&t&&a.active()&&e.focus({preventScroll:!0}),a.keepInView?.()!==!1&&f(e,(a.scrollRoot??a.container)?.())}function z(e,{focus:t=!0,event:n}={}){s.set({highlighted:e});let r=F(),i=e===null?-1:r.findIndex(t=>t.key===e);a.onHighlight?.(e,i,n);let o=r.length-1;if(a.skipDisabled)for(;o>0&&r[o].disabled;)o--;if(i!==-1&&i===o&&a.onLastReached?.(),e===null)return;let c=l.get(e)?.el;c?.isConnected&&R(c,t)}function B(e,{loop:t=a.loop()}={}){let n=F(),r=a.skipDisabled?n.filter(e=>!e.disabled):n;if(!r.length)return;let o=s.get().highlighted,c=r.findIndex(e=>e.key===o);if(c!==-1||typeof e!=`number`)return r[i(c,e,r.length,t)].key;let l=n.findIndex(e=>e.key===o);if(l!==-1){let a=n.slice(0,l).filter(e=>!e.disabled).length;return r[i(e>0?a-1:a,e,r.length,t)].key}return r[e>0?0:r.length-1].key}function V(e,t){let n=B(e);n!==void 0&&z(n,{event:t})}function H(e,t){let n=F().filter(e=>!e.pinned),r=p(e,n.map(e=>I(e)?``:e.label),n.findIndex(e=>e.key===t));return r===-1?void 0:n[r]}function U(e){let t=e.ownerDocument;return!t.activeElement||t.activeElement===t.body}let W=typeof MutationObserver>`u`?void 0:new MutationObserver(G);function G(){let e=s.get().highlighted,t=e===null?void 0:l.get(e)?.el;t?.isConnected&&U(t)&&R(t,!0)}function K(e,t){let n=()=>s.get().highlighted===e&&a.active();c()===`real`&&n()&&t.ownerDocument.activeElement!==t&&queueMicrotask(()=>{n()&&t.isConnected&&R(t,!0)})}function q(e,t,n){b++;let r={key:e,el:t,meta:n},i=l.add(r),o=n();if(o.pinned)m.add(e);else{let t=d.get(e);o.label!==void 0&&t?.label!==o.label&&y++,d.set(e,{...t,label:o.label??t?.label??``,value:o.value,keywords:o.keywords,group:o.group})}return queueMicrotask(()=>{l.get(e)===r&&r.el.isConnected&&(D(e,r),r.el.parentNode&&W?.observe(r.el.parentNode,{childList:!0}))}),a.onRegister?.(e),K(e,t),()=>{l.get(e)===r&&(i(),b++,m.delete(e),l.size()||W?.disconnect(),a.onRegister?.(e),queueMicrotask(()=>J(e,t)))}}function J(e,t){l.get(e)||T(e)||s.get().highlighted!==e||(s.set({highlighted:null}),c()===`real`&&a.active()&&U(t)&&a.container?.()?.focus({preventScroll:!0}))}return{entries:F,visibleData:E,dataItems:()=>S()?.flat,find:L,disabled:I,isItemDisabled:e=>!!L(e)?.disabled,highlight:z,move:V,stepKey:B,firstEnabled:()=>F().find(e=>!e.pinned&&!I(e))?.key,search:H,register:q,typing:()=>p.active(),resetTyping:()=>p.reset(),labelOf(e){let t=T(e);if(t)return t.label;let n=l.get(e);return n?D(e,n):d.get(e)?.label},valueOf(e){let t=T(e);return t?t.value:l.get(e)?.meta().value??d.get(e)?.value},matches:j,listing(e){let t={},n,r=!S()&&a.query().trim()?new Set(P().map(e=>e.key)):void 0,i=(i,a,o)=>{if(typeof t[i]==`string`)return;let s=l.get(i),c=o?a:s?.meta()??a,u=!r||r.has(i)||!s?.el.isConnected&&M(i,c)?``:`-`;c.index!==void 0&&(u+=n??=F().length),e&&(u+=e(i,c.value)),t[i]=u};for(let[e,t]of k)i(e,t,!0);for(let[e,t]of d)i(e,t,!1);for(let e of S()?.flat??[])i(e.key,e,!1);for(let e of C()?.flat??[])i(e.key,e,!1);return t},listingInputs:()=>[a.items()?m.size:b,a.items()?0:y,a.query(),a.filter(),a.items(),a.emptyItems?.(),a.showEmpty?.(),a.rank?.()],selectable(e){let t=[];for(let n of F())n.pinned||n.disabled||(e===void 0||(l.get(n.key)?.meta().group??n.group)===e)&&t.push(n.key);return t},count(){let e=0;for(let t of F())t.pinned||e++;return e},groupMatches(e){return S()?!0:l.list().some(t=>t.meta().group===e&&M(t.key,t.meta()))},element:e=>l.get(e)?.el,labelsVersion:()=>y,remember(e,t,n,r){let i=d.get(e),a=i?.keywords,o=i?.label===t&&(!r||a?.length===r.length&&r.every((e,t)=>e===a[t]));if(i&&o){i.value!==n&&d.set(e,{...i,value:n});return}d.set(e,{...i,label:t,value:n,...r&&{keywords:r}}),y++}}}export{o as a,l as i,u as n,f as o,c as r,s,p as t};
@@ -0,0 +1 @@
1
+ import{Gt as e,It as t,J as n,Jt as r,Mt as i,Nt as a,Rt as o,Vt as s,Yt as c,zt as l}from"./DC08tnkE.js";import{n as u}from"./Dh8MLjQO.js";import{n as d}from"./0eRGibL6.js";import{t as f}from"./Bjiy_F2N.js";import{a as p,r as m}from"./DwDilCo2.js";import{n as h}from"./F37aF4-L.js";function g(e,t={}){let n=e.value===void 0?e.defaultValue??null:e.value;return{value:n,initial:n,disabled:!!e.disabled,readOnly:!!e.readOnly,required:!!e.required,name:e.name,form:e.form,formDisabled:!1,stop:null,exiting:[],...t}}function _(e){return{disabled:!!e.disabled,readOnly:!!e.readOnly,required:!!e.required,name:e.name,form:e.form,...e.defaultValue===void 0?{}:{initial:e.defaultValue},...e.value===void 0?{}:{value:e.value}}}const v=e=>e instanceof HTMLButtonElement;function y(e,i={group:`group`,item:`root`}){let{id:a,store:c,options:l,element:u,props:g}=e,_=d(e),y=!1,b=e=>!e.props?.disabled&&!s(c.get()),x=h(e,{slot:i.item,key:`stop`,remember:!1,disabled:e=>!b(e),focusable:b,preferred:e=>c.get().value===e.key,claims:(e,t)=>(e.value??t.key)===t.key,move(e,{from:t,items:n,rtl:r}){if(e.shiftKey)return;let i=p(e.key,r);if(i!==void 0)return n[m(n.indexOf(t),i,n.length,l().loop??!0)].key}}),S=(e,t,n)=>[...n.filter(e=>e!==t),...e!==null&&w(e)&&!n.includes(e)?[e]:[]];n(e,[`exiting`,`stop`],(e,t)=>{if(!(`value`in e)||e.value===t.value)return;let n=e.value??null,r=x.stopFor(e=>e.key===n);return{exiting:S(t.value,n,t.exiting),...r!==void 0&&{stop:r}}});let C=c.get().value;c.subscribe(()=>{let{value:e,exiting:t}=c.get();if(e===C)return;let n=C;C=e,y=!0,c.set({exiting:S(n,e,t)}),x.check()});let w=e=>!!u(`indicator`,e)?.isConnected,T=()=>{let e=u(i.group);if(o(e))return e;let{value:t}=c.get();return t===null?void 0:u(`input`,t)},E={id:a,getValue:()=>c.get().value,isChanged:()=>y,setValue(e,{reason:n=`imperative`,event:r}={}){let a={reason:n,event:r},o=c.get();if(s(o)||o.readOnly||e!==null&&g(i.item,e)?.disabled)return!1;let l=_(`value`,e,a);return l&&n!==`restore`&&t(T()),l},focus:()=>x.focus(),form:()=>o(u(i.group))?.form??f(e,`input`)[0]?.el?.form??null,internal:{check:(e,t)=>E.setValue(e,t),reset(){_(`value`,c.get().initial,{reason:`reset`})},restore(e){_(`value`,e||null,{reason:`restore`})},setFormDisabled(e){c.set({formDisabled:e})},finishExit(e){c.set({exiting:c.get().exiting.filter(t=>t!==e)})},roving:x,group:()=>u(i.group),radio:e=>u(i.item,e),itemProps:e=>g(i.item,e)??{},anchor:()=>(x.items()[0]??f(e,i.item)[0])?.el,onKeyDown(e,t){if(e.altKey||e.ctrlKey||e.metaKey)return;if(e.key===`Enter`){e.preventDefault(),e.repeat||r(E.form());return}if(e.key===` `){v(t)||e.preventDefault();return}let n=x.keydown(e,t);n&&n.key!==n.from&&!c.get().readOnly&&E.setValue(n.key,{reason:`list-navigation`,event:e})}}};return E}const b=y;function x(e,t,n){return{checked:e.value===t,disabled:!!n.disabled||s(e),readOnly:e.readOnly,required:e.required}}function S(e,t,n){let{checked:r,disabled:i}=x(e,t,n);return{"data-checked":r?``:void 0,"data-unchecked":r?void 0:``,"data-disabled":i?``:void 0,"data-readonly":e.readOnly?``:void 0,"data-required":e.required?``:void 0}}function C(e,t,n){let r=a(e,{value:()=>n.get().value,state:()=>n.get().value??``,restore:t.internal.restore,valueMissing:()=>n.get().required&&n.get().value===null,message:()=>c(`radio`),anchor:t.internal.anchor,focus:t.focus,reset:t.internal.reset,disabled:t.internal.setFormDisabled,subscribe:n.subscribe}),i=n=>{n.target===e&&t.focus()},o=null,l=e=>{o=s(n.get())?e.target?.closest?.(`label`)??null:null},u=t=>{let n=o;o=null;let r=t.target;n?.control===r&&r!==e&&r.blur()},d=e.ownerDocument;return e.addEventListener(`click`,i),e.addEventListener(`focusin`,u),d.addEventListener(`pointerdown`,l,!0),()=>{r(),e.removeEventListener(`click`,i),e.removeEventListener(`focusin`,u),d.removeEventListener(`pointerdown`,l,!0)}}const w=e=>({"aria-orientation":e.orientation,"data-orientation":e.orientation,"aria-required":e.required?`true`:void 0,"aria-readonly":e.readOnly?`true`:void 0,"aria-disabled":s(e)?`true`:void 0,"data-disabled":s(e)?``:void 0,"data-readonly":e.readOnly?``:void 0,"data-required":e.required?``:void 0});function T(t,n,r=()=>({})){return{group:t({role:`radiogroup`,keys:{none:`Focus stays on a radio, whose keydown handles them.`},state:n,attrs:w,bind:(e,{api:t,store:n})=>C(e,t,n)}),item:t({role:`radio`,focus:`roving`,keys:[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Enter`,` `],props:{value:`string`,disabled:`boolean`},selects:u({value:({key:e})=>[e,null],stop:({key:e})=>[e,null],exiting:[]}),state:(e,{key:t,props:n})=>x(e,t,n),attrs:(e,{key:t,props:n,api:i})=>{let{checked:a,disabled:o}=x(e,t,n);return{type:`button`,"aria-checked":String(a),disabled:n.disabled?``:void 0,"aria-disabled":o?`true`:void 0,tabindex:o?n.disabled?void 0:`-1`:i.internal.roving.tabIndex(e,{key:t,props:n}),...S(e,t,n),...r(e,t,i)}},press({api:e,key:t,props:n},r){r?.preventDefault(),!n.disabled&&e.internal.check(t,{reason:`item-press`,event:r})},on:{mousedown:(e,{store:t,key:n,props:r})=>{x(t.get(),n,r).disabled&&e.preventDefault()},keydown:(e,{api:t,el:n})=>t.internal.onKeyDown(e,n),keyup:(e,{api:t,el:n,key:r,props:i})=>{e.key===` `&&!v(n)&&!i.disabled&&t.internal.check(r,{reason:`item-press`,event:e})}},bind(t,n){let r=n.api.internal.roving.bind(t,n),i=e(t);return()=>{i(),r()}}}),input:t({props:{value:`string`,disabled:`boolean`},attrs:(e,{id:t,key:n,props:r})=>({type:`radio`,name:e.name??(e.required?t:void 0),value:n,form:e.form,checked:e.initial===n?``:void 0,required:e.required?``:void 0,disabled:e.disabled||r.disabled?``:void 0,"aria-hidden":`true`,tabindex:`-1`,style:l}),bind:(e,{api:t,store:n,key:r})=>i(e,{checked:()=>n.get().value===r,subscribe:n.subscribe,focus:t.focus,control:()=>t.internal.radio(r),activate:e=>{t.internal.itemProps(r).disabled||t.internal.check(r,{reason:`item-press`,event:e})},reset:t.internal.reset,disabled:t.internal.setFormDisabled})})}}export{x as a,_ as c,S as i,w as n,b as o,T as r,g as s,C as t};
@@ -0,0 +1 @@
1
+ const e=e=>e.transform!==`none`||e.translate!==`none`||e.scale!==`none`||e.rotate!==`none`;function t(t,n){for(let r=t;r&&r!==n;){if(r!==t&&(r.scrollLeft||r.scrollTop)||e(getComputedStyle(r)))return!0;r=r.parentElement}return!1}function n(e,n){let r={x:e.offsetLeft+n.clientLeft,y:e.offsetTop+n.clientTop};if(n===e.ownerDocument.body||t(e,n))return r;let a=e.getBoundingClientRect(),o=n.getBoundingClientRect(),s=i(n),c=(a.left-o.left)*s.width/o.width+n.scrollLeft,l=(a.top-o.top)*s.height/o.height+n.scrollTop;return{x:Math.abs(c-r.x)<1?c:r.x,y:Math.abs(l-r.y)<1?l:r.y}}function r(e){let t=0,r=0;for(let i=e;i;i=i.offsetParent){let e=i.offsetParent;if(!e){t+=i.offsetLeft,r+=i.offsetTop;continue}let a=n(i,e);t+=a.x,r+=a.y}return{x:t,y:r}}function i(e){let t=getComputedStyle(e),n=(...e)=>e.reduce((e,n)=>e+(parseFloat(t.getPropertyValue(n))||0),0),r=t.boxSizing!==`border-box`,i=parseFloat(t.width)+(r?n(`padding-left`,`padding-right`,`border-left-width`,`border-right-width`):0),a=parseFloat(t.height)+(r?n(`padding-top`,`padding-bottom`,`border-top-width`,`border-bottom-width`):0);return{width:Number.isFinite(i)?i:e.offsetWidth,height:Number.isFinite(a)?a:e.offsetHeight}}function a(e,t){let n=r(e),a=r(t),o=n.x-a.x-t.clientLeft,s=n.y-a.y-t.clientTop,{width:c,height:l}=i(e),u={width:t.scrollWidth,height:t.scrollHeight};return{left:o,top:s,width:c,height:l,right:u.width-(o+c),bottom:u.height-(s+l)}}export{r as n,i as r,a as t};
@@ -0,0 +1 @@
1
+ import{mt as e}from"./DC08tnkE.js";function t(e,t,n){let r=e.ownerDocument.defaultView??window,i=t.pointerId,c=0,l=!1,u={x:0,y:0,movementX:0,movementY:0,locked:!1,event:t},d=t.clientX,f=t.clientY,p=!n.threshold&&!n.onStart,m=!1;try{e.setPointerCapture(i)}catch{}let h=()=>e.ownerDocument.pointerLockElement===e,g=()=>{c=0,l&&(l=!1,n.onMove(u),u.movementX=0,u.movementY=0)},_=s=>{if(s.pointerId!==i)return;if(s.pointerType===`mouse`&&s.buttons===0)return C(s,!1);if(!p){let r=n.threshold??0,i=Math.abs(s.clientX-t.clientX),a=Math.abs(s.clientY-t.clientY);if(r&&i<r&&a<r)return;if(p=!0,n.onStart?.(s)===!1)return S();n.cancelOnEscape&&e.ownerDocument.addEventListener(`keydown`,b,!0)}!m&&a(s.clientX-t.clientX,s.clientY-t.clientY)&&(m=!0,n.lock&&t.pointerType===`mouse`&&o(e));let _=h();u.movementX+=_?s.movementX:s.clientX-d,u.movementY+=_?s.movementY:s.clientY-f,u.x=d=s.clientX,u.y=f=s.clientY,u.locked=_,u.event=s,l=!0,c||=r.requestAnimationFrame(g)},v=t=>{t.pointerId===i&&(m&&s(e.ownerDocument),C(t,!1))},y=e=>{e.pointerId===i&&C(e,!0)},b=t=>{t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),m&&s(e.ownerDocument,!0,i),C(u.event,!0))},x=[[`pointermove`,_],[`pointerup`,v],[`pointercancel`,y]];for(let[t,n]of x)e.ownerDocument.addEventListener(t,n);p&&n.cancelOnEscape&&e.ownerDocument.addEventListener(`keydown`,b,!0);function S(){c&&r.cancelAnimationFrame(c),c=0;for(let[t,n]of x)e.ownerDocument.removeEventListener(t,n);e.ownerDocument.removeEventListener(`keydown`,b,!0),e.hasPointerCapture?.(i)&&e.releasePointerCapture(i),h()&&e.ownerDocument.exitPointerLock()}function C(e,t){g(),S(),n.onEnd(e,t)}return S}const n=e=>!e.isPrimary&&e.pointerType!==`mouse`&&e.pointerType!==``;function r(r){let i;r?.(()=>i?.cancel());let o={accepts(e){return e.button!==0||n(e)||e.defaultPrevented?!1:(i&&i.down!==e&&i.down.pointerType===e.pointerType&&i.cancel(),!i)},start(e,n,r){let a=()=>{i===c&&(i=void 0)},o=r.onStart,s=t(e,n,{...r,onStart:o&&(e=>{let t=o(e);return t===!1&&a(),t}),onEnd(e,t){a(),r.onEnd(e,t)}}),c={down:n,cancel(){a(),s(),r.onEnd(n,!0)}};i=c},startOnMove(t,n,{pick:r,onTap:c,...l}){let u=t.ownerDocument,d=e=>e.pointerId===n.pointerId,f=()=>{p.forEach(e=>e()),i===m&&(i=void 0)},p=[e(u,`pointermove`,e=>{if(!d(e))return;let i=r(e);i!==void 0&&(f(),i&&o.start(t,e,{...l,onEnd(t,r){let i=e=>a(t.clientX-e.clientX,t.clientY-e.clientY);!r&&i(n)&&!i(e)&&s(u),l.onEnd(t,r)}}))}),e(u,`pointerup`,e=>{d(e)&&(f(),c?.(e))}),e(u,`pointercancel`,e=>d(e)&&f())],m={down:n,cancel:f};i=m},cancel:()=>i?.cancel()};return o}const i=3;function a(e,t){return Math.abs(e)>=3||Math.abs(t)>=3}function o(e){if(typeof e.requestPointerLock==`function`)try{let t=e.requestPointerLock();t instanceof Promise&&t.catch(()=>{})}catch{}}function s(e,t=!1,n){let r=e.defaultView??window,i=e=>n===void 0||!(`pointerId`in e)||e.pointerId===n,a=t=>{i(t)&&(t.preventDefault(),t.stopPropagation(),e.removeEventListener(`click`,a,!0))},o=()=>{e.removeEventListener(`click`,a,!0),e.removeEventListener(`pointerdown`,s,!0),e.removeEventListener(`pointerup`,c,!0),e.removeEventListener(`pointercancel`,c,!0)},s=e=>i(e)&&o(),c=e=>i(e)&&r.setTimeout(o);if(e.addEventListener(`click`,a,!0),e.addEventListener(`pointerdown`,s,!0),!t)return r.setTimeout(o);e.addEventListener(`pointerup`,c,!0),e.addEventListener(`pointercancel`,c,!0)}function c(e,{delay:t=400,interval:n=60}={}){let r,i=t=>{r=setTimeout(()=>{e()&&i(n)},t)};return e()&&i(t),()=>clearTimeout(r)}export{c as a,a as i,r as n,s as o,i as r,t};
@@ -0,0 +1 @@
1
+ import{Et as e,I as t,M as n,O as r,j as i,k as a,mt as o,pt as s,w as c}from"./DC08tnkE.js";import{i as l,o as u,s as d,t as f}from"./Djdv-16J.js";function p(e,t,n=()=>!1,r=()=>!1){if(!e)return 0;let i=typeof e==`function`?e():e;if(!i||!i.isConnected)return null;if(n(i))return 1/0;let a=t(i);return a?a.order??0:r(i)?null:0}function m(e,t){return e===null?!1:t===void 0||e>=t}function h(e){if(!e||!e.tagName)return!1;let t=e;if(t.isContentEditable||t.tagName===`TEXTAREA`||t.tagName===`SELECT`)return!0;if(t.tagName!==`INPUT`)return!1;let n=t.type;return!/^(button|checkbox|radio|submit|reset|range|color|file|image)$/.test(n)}const g=e=>(typeof e.keys==`function`?e.keys():e.keys)||void 0;function _(e){return c(e,!0).split(`+`).sort().join(`+`)}function v(){let e=[],v=/* @__PURE__ */ new Set,y=0,b;function x(){return l().filter(e=>e.blocking).at(-1)?.order}function S(e,t){let{scope:n,when:r,layer:i}=e.options;if(n!==void 0&&!v.has(n)||r&&!r())return null;let a=p(i,u,d,f);return m(a,t)?a:null}function C(t){if(t.defaultPrevented||t.repeat||s(t))return;let r,o,c=i();for(let i of e){let e=g(i);if(!e||!n(t,e,c)||(r??={typing:h(t.composedPath()[0]),blocking:x()},r.typing&&!i.options.allowInInput&&!a(e)))continue;let s=S(i,r.blocking);s!==null&&(!o||s>o.order||s===o.order&&i.id>o.entry.id)&&(o={entry:i,order:s})}o&&(t.preventDefault(),o.entry.handler(t))}function w(){!b&&t&&(b=o(document,`keydown`,C))}return{register(t,n,r={}){typeof t==`string`&&_(t);let i={keys:t,handler:n,options:r,id:y++};return e.push(i),w(),()=>{let t=e.indexOf(i);t!==-1&&e.splice(t,1),e.length||(b?.(),b=void 0)}},list(){let n=t?x():void 0,a=i();return e.filter(e=>!!g(e)&&S(e,n)!==null).map(e=>({keys:g(e),hint:r(g(e),a),ariaKeyshortcuts:c(g(e),a),description:e.options.description,scope:e.options.scope}))},setScope(e,t){t?v.add(e):v.delete(e)},isScopeActive:e=>v.has(e),destroy(){e.length=0,v.clear(),b?.(),b=void 0}}}function y(e,t,n){return b.register(e,t,n)}const b=globalThis[Symbol.for(`ui-sdk.shortcuts@1`)]??=v();e(()=>b.list());export{b as n,y as t};
@@ -0,0 +1 @@
1
+ import{$t as e,H as t,X as n,Xt as r,_ as i,en as a,j as o,r as s}from"./DC08tnkE.js";import{t as c}from"./Dh8MLjQO.js";import{a as l,n as u}from"./0eRGibL6.js";import{a as d,i as f,n as p,r as m,t as h}from"./DiuslJRy.js";function g(){return n()}function _(e,t){return{filled:e.filled,disabled:!!t.disabled,readOnly:!!t.readOnly,required:!!t.required}}function v(e,t){return{"data-filled":e.filled?``:void 0,"data-disabled":t.disabled?``:void 0,"data-readonly":t.readOnly?``:void 0,"data-required":t.required?``:void 0}}const y=/* @__PURE__ */ t({name:`input`,options:{value:`string`,defaultValue:`string`,onValueChange:`callback`,controller:`value`},state:e=>p(e),live:[`value`],sync:m,api:e=>f(e,u(e),`root`),slots:e=>({root:e({props:{disabled:`boolean`,readOnly:`boolean`,required:`boolean`},state:(e,{props:t})=>_(e,t),attrs:(e,{props:t})=>v(e,t),bind:(e,{api:t})=>t.internal.bind(e)})}),agent:{actions:[`setValue`,`clear`]}});function b(t){if(typeof CSS<`u`&&CSS.supports(`field-sizing`,`content`))return t.style.setProperty(`field-sizing`,`content`),()=>t.style.removeProperty(`field-sizing`);let n=-1,r=()=>{t.style.height=`auto`;let e=t.offsetHeight-t.clientHeight;t.style.height=`${t.scrollHeight+e}px`};r();let i=e(t,r),a=typeof ResizeObserver>`u`?void 0:new ResizeObserver(([e])=>{e.contentRect.width!==n&&(n=e.contentRect.width,r())});return a?.observe(t),()=>{i(),a?.disconnect(),t.style.removeProperty(`height`)}}const x=/* @__PURE__ */ t({name:`textarea`,options:{value:`string`,defaultValue:`string`,onValueChange:`callback`,controller:`value`,autoResize:`boolean`,onSubmit:`callback`,submitShortcut:`string`},state:e=>({...p(e),autoResize:!!e.autoResize}),live:[`value`],sync:e=>({...m(e),autoResize:!!e.autoResize}),api:e=>{let t=f(e,u(e),`root`),{options:n,store:r,element:i}=e;function a(e){let t=n().submitShortcut;if(!t||e.key!==`Enter`)return;let a=o()?e.metaKey:e.ctrlKey;if(!(t===`enter`?!e.shiftKey&&!a&&!e.altKey:a&&!e.shiftKey))return;let{onSubmit:s}=n(),c=i(`root`)?.form;(s||c)&&(e.preventDefault(),s?s(r.get().value,{event:e}):c?.requestSubmit())}return{...t,internal:{...t.internal,submitKey:a}}},slots:e=>({root:e({props:{disabled:`boolean`,readOnly:`boolean`,required:`boolean`},state:(e,{props:t})=>_(e,t),attrs:(e,{props:t})=>v(e,t),on:{keydown:(e,{api:t})=>t.internal.submitKey(e)},bind:(e,{api:t,store:n})=>{let r=t.internal.bind(e),i,a=()=>{let{autoResize:t}=n.get();t&&!i?i=b(e):!t&&i&&(i(),i=void 0)};a();let o=c(n,`autoResize`,!0,a);return()=>{r(),o(),i?.()}}})}),agent:{actions:[`setValue`,`clear`]}});function S(e){return{"data-filled":e.filled?``:void 0,"data-disabled":e.disabled?``:void 0,"data-readonly":e.readOnly?``:void 0}}const C=/* @__PURE__ */ t({name:`input`,state:e=>({filled:!1,disabled:!1,readOnly:!1}),api:({store:e,element:t})=>{l();let n=()=>t(`group`)?.querySelector(`input:not([type="hidden"]), textarea`)??void 0;return{control:n,clear(t){let r=n();if(!r||e.get().disabled||e.get().readOnly)return;let i=d.get(r);i?i.internal.clearPress(t):a(r,``,{asUser:!0}),r.focus()},internal:{update:t=>e.set(t)}}},slots:t=>({group:t({state:e=>e,attrs:e=>S(e),press:({api:e,el:t},n)=>h(n,t,e.control()),bind:(t,{store:n,api:i})=>{let a,o=!1,s=[],c=!0,l=()=>{a&&n.set({filled:a.value!==``,disabled:a.disabled||o,readOnly:a.readOnly})},u=()=>{if(!c)return;let t=i.control();if(t===a||(s.forEach(e=>e()),s=[],a=t,!a))return;let n=new MutationObserver(l);n.observe(a,{attributeFilter:[`disabled`,`readonly`]}),s=[e(a,l),r(a,e=>{o=e,l()}),()=>n.disconnect()],l()};queueMicrotask(u);let d=new MutationObserver(u);return d.observe(t,{childList:!0,subtree:!0}),()=>{c=!1,d.disconnect(),s.forEach(e=>e())}}}),clear:t({present:e=>e.filled&&!e.disabled&&!e.readOnly,state:e=>e,attrs:e=>({type:`button`,...S(e)}),press:({api:e},t)=>e.clear(t)})}),agent:{actions:[`clear`]}}),w=[`getValue`,`setValue`,`clear`,`focus`],T={value:{get:e=>e.getValue(),set:(e,t)=>e.setValue(t??``)}},E={attributes:[`disabled`,`readonly`,`required`],read:e=>{let t=e;return{disabled:t.disabled,readOnly:t.readOnly,required:t.required}}};function D(){s(y,{root:{tag:`ui-input`,display:`contents`,children:{root:e=>e.querySelector(`:scope > input`)},childProps:E,state:T,api:w}}),s(x,{root:{tag:`ui-textarea`,display:`contents`,children:{root:e=>e.querySelector(`:scope > textarea`)},childProps:E,silent:[`onSubmit`],state:T,api:w}})}function O(){s(C,{root:{tag:`ui-input-group`,self:`group`,display:`block`},clear:{tag:`ui-input-clear`,display:`contents`,target:i(`button`)}})}export{O as n,g as r,D as t};
@@ -0,0 +1 @@
1
+ import{H as e,Vt as t,X as n,Zt as r,at as i,c as a,i as o,l as s,n as c,o as l,p as u,r as d,u as f}from"./DC08tnkE.js";import{n as p}from"./Dh8MLjQO.js";import{i as m,n as ee}from"./0eRGibL6.js";import{n as h,t as te}from"./Db-W1wrC.js";import{r as g}from"./C_Uanbrl.js";import{_,a as ne,b as v,c as y,d as b,f as x,g as re,h as S,i as ie,l as ae,m as oe,n as C,o as w,p as se,r as ce,s as T,t as le,u as E,v as D,w as ue,x as O,y as de}from"./COWKfakj.js";import{n as fe}from"./F37aF4-L.js";import{t as pe}from"./Cuep_3Vf.js";const me=/* @__PURE__ */ new Map;for(let[e,t]of[[0,`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN IS JM JP KE KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PT PY SA SG SV TH TT TW UM US VE VI WS YE ZA ZW`],[5,`MV`],[6,`AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY`]])for(let n of t.split(` `))me.set(n,e);const he=[`sun`,`mon`,`tue`,`wed`,`thu`,`fri`,`sat`],ge=/* @__PURE__ */ new Map;function _e(e){let t=e??``,n=ge.get(t);return n===void 0&&ge.set(t,n=ve(e)),n}function ve(e){let t;try{t=new Intl.Locale(e??new Intl.DateTimeFormat().resolvedOptions().locale)}catch{return 1}let n=/-u(?:-[a-z0-9]{2,8})*?-fw-([a-z]{3})\b/i.exec(t.toString())?.[1]?.toLowerCase();if(n&&he.includes(n))return he.indexOf(n);let r=ye(t);return r?r.firstDay%7:me.get(t.maximize().region??``)??1}function ye(e){let t=e;try{return t.getWeekInfo?.()??t.weekInfo}catch{return}}const k=e=>ue(e)?e:null,A=e=>({mode:e.mode??`single`,min:k(e.min),max:k(e.max),unavailable:e.unavailable??null,disabled:!!e.disabled,readOnly:!!e.readOnly,deselectable:!!e.deselectable,months:Number.isFinite(e.months)?Math.max(1,Math.floor(e.months)):1,pageBy:e.pageBy??`month`,locale:e.locale??null,weekStartsOn:e.weekStartsOn===void 0?null:(e.weekStartsOn%7+7)%7,weekdayFormat:e.weekdayFormat??`short`,monthFormat:e.monthFormat??`long`,fixedWeeks:e.fixedWeeks??!1,showOutsideDays:e.showOutsideDays??!0,minDays:e.minDays,maxDays:e.maxDays,allowUnavailable:e.allowUnavailable??!1}),j=e=>e.weekStartsOn??_e(h(e)),M=(e,t)=>b(t,e.unavailable),N=(e,t)=>e.min!==null&&t<e.min||e.max!==null&&t>e.max,P=(e,t)=>N(e,t)||M(e,t),be=(e,t)=>String(e)===String(t),F=(e,t)=>T(e.month,t??0),I=(e,t)=>x(t.value)!==F(e,t.offset),L=e=>({minDays:e.minDays,maxDays:e.maxDays,allowUnavailable:e.allowUnavailable,isUnavailable:t=>M(e,t)});function xe(e,n){if(t(e)||e.readOnly)return!1;let r=D(n);return r.some(t=>P(e,t))?!1:e.mode!==`range`||!r.length||ae(r[0],r[1],L(e))}const Se=(e,t)=>e.mode===`range`&&e.anchor!==null&&t!==e.anchor&&_(e.anchor,t,L(e))===null;function Ce(e,t){if(E(e.month))return e.month;if(E(e.defaultMonth))return e.defaultMonth;let[n]=D(t);if(n)return x(n);let r=k(e.today)??ne(e.timeZone);return x(O(r,k(e.min),k(e.max)))}function we(e){return e.mode===`range`?e.anchor===null?e.value:(e.hover===null?null:_(e.anchor,e.hover,L(e)))??[e.anchor,e.anchor]:null}let R;function z(e){if(R?.state===e)return R.date;let{start:t,end:n}=de(e.month,e.months),r=r=>r>=t&&r<=n&&!P(e,r),i=D(e.value).find(r)??(e.today!==null&&r(e.today)?e.today:void 0);if(i===void 0){let r=O(t,e.min,e.max);i=r;for(let t=r;t<=n;t=v(t,1))if(!P(e,t)){i=t;break}}return R={state:e,date:i},i}function Te(e){let t=h(e),n={month:e.monthFormat,year:`numeric`},r=`${e.month}-01`;return e.months===1?C(r,t,n):ce(r,`${T(e.month,e.months-1)}-01`,t,n)}const B=/* @__PURE__ */ new Map;function V(e,n){let r=h(e),i=`${n}|${e.month}|${r}|${e.monthFormat}|${e.min}|${e.max}|${t(e)}`,a=B.get(i);return a||(B.size>50&&B.clear(),B.set(i,a=Ee(e,n,r))),a}function Ee(e,n,r){let i=Number(e.month.slice(0,4)),a=e.min&&x(e.min),o=e.max&&x(e.max),s=n===`month`,c=s?1:Math.min(i,a?Number(a.slice(0,4)):i-10),l=s?12:Math.max(i,o?Number(o.slice(0,4)):i+10),u=ie(r,e.monthFormat),d=le(r,{year:`numeric`});return{value:s?Number(e.month.slice(5,7)):i,options:Array.from({length:l-c+1},(e,t)=>{let n=c+t,r=`${i}-${String(n).padStart(2,`0`)}`;return{value:n,label:s?u[t]:d.format(Date.UTC(n,0,1)),disabled:s&&(!!a&&r<a||!!o&&r>o)}}),disabled:t(e)}}function De(e,t,n){let[r,i]=e.month.split(`-`),a=t===`month`?`${r}-${String(n).padStart(2,`0`)}`:`${String(n).padStart(4,`0`)}-${i}`;return e.min!==null&&a<x(e.min)?x(e.min):e.max!==null&&a>x(e.max)?x(e.max):a}function H(e,n){let r=e.pageBy===`page`?e.months:1;return{month:T(e.month,n*r),disabled:t(e)||(n<0?e.min!==null&&x(e.min)>=e.month:e.max!==null&&x(e.max)<=T(e.month,e.months-1))}}const U=/* @__PURE__ */ new Map;function Oe(e,t){let n=F(e,t),r=j(e),i=h(e),a=t===0,o=t===e.months-1,s=`${n}|${i}|${e.monthFormat}|${r}|${e.fixedWeeks}|${e.showOutsideDays}|${a}|${o}`,c=U.get(s);return c||(U.size>50&&U.clear(),c={month:n,label:C(`${n}-01`,i,{month:e.monthFormat,year:`numeric`}),weekdays:Array.from({length:7},(e,t)=>(r+t)%7),weeks:y(n,{weekStartsOn:r,fixedWeeks:e.fixedWeeks,showOutsideDays:e.showOutsideDays,first:a,last:o})},U.set(s,c)),c}function W(e,n){let r=n.value,i=we(e),a=i?r>=i[0]&&r<=i[1]:e.mode===`multiple`?e.value.includes(r):e.value===r;return{date:r,label:le(h(e),{day:`numeric`}).format(Date.UTC(2e3,0,Number(r.slice(8)))),selected:a,today:e.today===r,outside:I(e,n),disabled:t(e)||P(e,r)||Se(e,r),unavailable:M(e,r),rangeStart:!!i&&i[0]===r,rangeEnd:!!i&&i[1]===r,inRange:a&&!!i}}function ke(e,n={}){let r=e,{store:i,options:a,element:o}=r,s=ee(r),c=fe(r,{slot:`day`,key:`focused`,disabled:e=>P(i.get(),e.key),focusable:e=>!t(i.get())&&!I(i.get(),e.props),preferred:e=>e.key===z(i.get()),claims:(e,t)=>!I(e,t.props)&&t.key===z(e),move:(e,{from:t,rtl:n})=>{if(e.ctrlKey||e.metaKey)return;let r=i.get(),a=oe(e,t.key,{rtl:n,weekStartsOn:j(r),min:r.min,max:r.max});return a===void 0||p(a,`list-navigation`,e)?a:t.key}}),l=pe({fallback:e=>o(`day`,e.key)}),u=null,d,f=null;function p(e,t,n){return e===i.get().focused||!m(r,`onFocusedChange`,e,{reason:t,event:n})&&(u=e,!0)}function h(e,t){let n=i.get().focused,a=d;d=void 0,e===u?u=null:e!==n&&n!==null&&m(r,`onFocusedChange`,e,a?{reason:`item-press`,event:a}:{reason:`focus-in`,event:t})&&(t.stopImmediatePropagation(),a&&(f=e),c.focus(n))}function g(e,t,n,a){return e!==i.get().anchor&&m(r,`onAnchorChange`,e,{reason:n,event:a})?!1:(i.set({anchor:e,hover:t}),!0)}function _(e,t,n){return E(e)?s(`month`,e,{reason:t,event:n}):!1}function v(e,t,n){let r=i.get();return s(`value`,S(r.mode,e),{reason:t,event:n})}function y(e,t,n){let r=i.get(),a=se(e,r.month,r.months,r.pageBy);a!==r.month&&_(a,t,n)}function b(e,t,n){let r=H(i.get(),e);return!r.disabled&&_(r.month,t,n)}function x(e,r){let a=i.get();if(!(t(a)||a.readOnly||P(a,e))){if(a.mode===`multiple`){let t=a.value;v(t.includes(e)?t.filter(t=>t!==e):[...t,e],`item-press`,r)}else if(a.mode===`range`){let t=re(a.anchor,e,L(a));if(!g(t.anchor,t.anchor===null?null:e,`item-press`,r))return;t.value&&(v(t.value,`item-press`,r)||be(i.get().value,t.value))&&n.picked?.(r)}else a.deselectable&&a.value===e?v(null,`item-press`,r):(v(e,`item-press`,r)||i.get().value===e)&&n.picked?.(r)}}return{getValue:()=>i.get().value,setValue:(e,{reason:t=`imperative`,event:n}={})=>xe(i.get(),S(i.get().mode,e))&&v(e,t,n),getMonth:()=>i.get().month,setMonth:(e,{reason:t=`imperative`,event:n}={})=>_(e,t,n),previous:({reason:e=`imperative`,event:t}={})=>b(-1,e,t),next:({reason:e=`imperative`,event:t}={})=>b(1,e,t),focus(e){if(e===void 0)return c.focus(i.get().focused??void 0);if(!ue(e))return;let t=i.get(),n=O(e,t.min,t.max);p(n,`imperative`)&&(y(n,`imperative`),c.focus(n))},internal:{roving:c,recovery:l,focusLanded:h,setValue:v,setMonth:_,reveal:y,press(e,n,r){let a=i.get();t(a)||(r&&!I(a,e)&&r.ownerDocument.activeElement!==r&&(f!==e.value||!n?.detail)&&r.focus({preventScroll:!0}),d=void 0,f=null,x(e.value,n),I(i.get(),e)&&!N(a,e.value)&&p(e.value,`item-press`,n)&&(y(e.value,`item-press`,n),c.focus(e.value)))},step:(e,t)=>b(e,e<0?`previous-press`:`next-press`,t),select(e,t,n){Number.isInteger(t)&&_(De(i.get(),e,t),`select-change`,n)},keydown(e,t,n){if(e.defaultPrevented)return;let r=i.get();if((e.key===`Enter`||e.key===` `)&&!e.altKey&&!e.ctrlKey&&!e.metaKey){e.preventDefault(),x(n.value,e);return}if(e.key===`Escape`&&r.anchor!==null&&g(null,null,`escape-key`,e)){e.preventDefault();return}let a=c.keydown(e,t);a&&a.key!==a.from&&(y(a.key,`list-navigation`,e),i.get().anchor!==null&&i.set({hover:a.key}))},pointerdown(e){d=e,f=null},mousedown(e,t){let n=i.get();I(n,t)&&N(n,t.value)&&e.preventDefault()},hover(e){i.get().anchor!==null&&i.set({hover:e})},bindRoot(e){te(e,e=>i.set({pageLocale:e})),a().today===void 0&&i.set({today:ne(a().timeZone)})}}}}function Ae(e){let t=e.mode??`single`,n=S(t,e.value??e.defaultValue??null);return{...A(e),value:n,month:Ce(e,n),focused:null,anchor:null,hover:null,today:k(e.today),pageLocale:null,formDisabled:!1}}const je=e=>({...A(e),...e.value===void 0?{}:{value:S(e.mode??`single`,e.value)},...E(e.month)?{month:e.month}:{},...e.today===void 0?{}:{today:k(e.today)}});function Me(e,n){return e({state:e=>V(e,n),attrs:e=>({value:String(V(e,n).value),"aria-label":n===`month`?`Month`:`Year`,disabled:t(e)?``:void 0,"data-disabled":t(e)?``:void 0}),on:{change:(e,{api:t,el:r})=>r&&t.internal.select(n,Number(r.value),e)},bind(e,{store:t}){let r=e,i=()=>{let e=String(V(t.get(),n).value);r.value!==e&&(r.value=e)};return i(),t.subscribe(i)}})}function G(e){return{heading:e({state:e=>({month:e.month,label:Te(e)}),attrs:(e,{id:t})=>({id:`${t}-heading`,"aria-live":`polite`})}),previous:e({state:e=>H(e,-1),attrs:e=>{let{disabled:t}=H(e,-1);return{type:`button`,"aria-label":`Previous month`,"aria-disabled":t?`true`:void 0,"data-disabled":t?``:void 0}},press:({api:e},t)=>e.internal.step(-1,t)}),next:e({state:e=>H(e,1),attrs:e=>{let{disabled:t}=H(e,1);return{type:`button`,"aria-label":`Next month`,"aria-disabled":t?`true`:void 0,"data-disabled":t?``:void 0}},press:({api:e},t)=>e.internal.step(1,t)}),"month-select":Me(e,`month`),"year-select":Me(e,`year`),grid:e({role:`grid`,keys:{none:`Focus stays on a day, whose keydown handles them.`},props:{offset:`number`},state:(e,{props:t})=>Oe(e,t.offset??0),attrs:(e,{props:n})=>{let r=F(e,n.offset);return{"aria-label":C(`${r}-01`,h(e),{month:`long`,year:`numeric`}),"aria-multiselectable":e.mode===`single`?void 0:`true`,"aria-readonly":e.readOnly?`true`:void 0,"aria-disabled":t(e)?`true`:void 0,"data-disabled":t(e)?``:void 0}}}),weekdays:e({role:`row`}),weekday:e({role:`columnheader`,props:{index:`number`},state:(e,{props:t})=>{let n=j(e),r=h(e);return{weekday:(n+t.index)%7,label:w(r,e.weekdayFormat,n)[t.index],name:w(r,`long`,n)[t.index]}},attrs:(e,{props:t})=>({"aria-label":w(h(e),`long`,j(e))[t.index]})}),week:e({role:`row`}),day:e({role:`gridcell`,focus:(e,{props:t})=>W(e,t).outside?{none:`Days of the months around show here, but focus moves through each grid's own.`}:`roving`,props:{value:`string`,offset:{kind:`number`,from:`grid`}},selects:p({focused:({key:e})=>[e,null]}),state:(e,{props:t})=>W(e,t),attrs:(e,n)=>{let{props:r,api:i}=n,a=W(e,r),o=we(e);return{tabindex:t(e)||a.outside?void 0:i.internal.roving.tabIndex(e,n),"aria-label":C(r.value,h(e)),"aria-selected":a.outside?void 0:String(a.selected),"aria-disabled":a.disabled?`true`:void 0,"aria-current":a.today?`date`:void 0,"data-value":r.value,"data-selected":a.selected?``:void 0,"data-today":a.today?``:void 0,"data-outside":a.outside?``:void 0,"data-disabled":a.disabled?``:void 0,"data-unavailable":a.unavailable?``:void 0,"data-range-start":a.rangeStart?``:void 0,"data-range-end":a.rangeEnd?``:void 0,"data-range-middle":a.inRange&&!a.rangeStart&&!a.rangeEnd?``:void 0,"data-preview":o&&e.anchor!==null&&a.inRange?``:void 0}},press:({api:e,props:t,el:n},r)=>e.internal.press(t,r,n),on:{keydown:(e,{api:t,el:n,props:r})=>t.internal.keydown(e,n,r),pointerdown:(e,{api:t})=>t.internal.pointerdown(e),mousedown:(e,{api:t,props:n})=>t.internal.mousedown(e,n),pointerenter:(e,{api:t,props:n})=>t.internal.hover(n.value)},bind:(e,t)=>{let n=e=>t.api.internal.focusLanded(t.props.value,e);e.addEventListener(`focus`,n);let r=[t.api.internal.roving.bind(e,t),t.api.internal.recovery.bind(e,t),()=>e.removeEventListener(`focus`,n)];return()=>r.forEach(e=>e())}})}}function Ne(){return n()}const Pe=/* @__PURE__ */ e({name:`calendar`,options:{mode:`string`,value:`list`,defaultValue:`list`,onValueChange:`callback`,onMonthChange:`callback`,month:`string`,defaultMonth:`string`,min:`string`,max:`string`,unavailable:`list`,disabled:`boolean`,readOnly:`boolean`,deselectable:`boolean`,onFocusedChange:`callback`,onAnchorChange:`callback`,months:`number`,pageBy:`string`,locale:`string`,weekStartsOn:`number`,weekdayFormat:`string`,monthFormat:`string`,fixedWeeks:`boolean`,showOutsideDays:`boolean`,today:`string`,timeZone:`string`,minDays:`number`,maxDays:`number`,allowUnavailable:`boolean`,controller:`value`},state:Ae,controlled:[`value`,`month`],sync:je,api:e=>ke(e),slots:e=>({root:e({state:e=>({value:e.value,month:e.month,mode:e.mode,disabled:t(e),readOnly:e.readOnly,focused:e.focused,anchor:e.anchor}),attrs:e=>({"data-mode":e.mode,"data-disabled":t(e)?``:void 0,"data-readonly":e.readOnly?``:void 0}),bind(e,{api:t,store:n}){let i=[r(e,n),t.internal.bindRoot(e)];return()=>i.forEach(e=>e?.())}}),...G(e)}),agent:{actions:[`setValue`,`setMonth`,`previous`,`next`]}}),Fe=`ui-calendar, ui-date-picker`,Ie={value:{get:e=>e.getValue(),set:(e,t)=>e.setValue(t)},month:{get:e=>e.getMonth(),set:(e,t)=>e.setMonth(t)}};function Le(){d(Pe,{root:{tag:`ui-calendar`,display:`block`,defaults:{showOutsideDays:!0},properties:[`unavailable`],state:Ie,api:[`getValue`,`setValue`,`getMonth`,`setMonth`,`previous`,`next`,`focus`],render(e,t){return Be.has(e)||(Be.add(e),e.firstElementChild||He(e,e)),Ue(e,t)}}}),Re(Pe,`ui-date-picker`)}function Re(e,t){let n=[t];o(e,`heading`,{tag:`ui-calendar-heading`,owners:n,display:`block`,render(e){e.hasAttribute(`role`)||e.setAttribute(`role`,`heading`),e.hasAttribute(`aria-level`)||e.setAttribute(`aria-level`,`2`),Q(e)}}),o(e,`previous`,{tag:`ui-calendar-previous`,owners:n,display:`contents`,target:We(`‹`)}),o(e,`next`,{tag:`ui-calendar-next`,owners:n,display:`contents`,target:We(`›`)});for(let[t,r]of Ke)o(e,r,{tag:t,owners:n,display:`contents`,target:qe,render:Q});o(e,`grid`,{tag:`ui-calendar-grid`,owners:n,display:`table`,context:e=>({id:String(Y(e))}),render(e){e.firstElementChild||e.append(g(`ui-calendar-weekdays`),g(`ui-calendar-weeks`))},changed(e){for(let t of e.querySelectorAll(`ui-calendar-weekdays, ui-calendar-weeks`))Q(t)}}),o(e,`weekdays`,{tag:`ui-calendar-weekdays`,owners:n,display:`table-header-group`,target:Ge,context:e=>({id:String(Y(e))}),render(e){e.setAttribute(`role`,`rowgroup`),Q(e)}}),o(e,`weekday`,{tag:`ui-calendar-weekday`,owners:n,display:`table-cell`,context:e=>({id:`${Y(e)}-${e.getAttribute(`index`)}`})}),ze(),o(e,`week`,{tag:`ui-calendar-week`,owners:n,display:`table-row`}),o(e,`day`,{tag:`ui-calendar-day`,owners:n,display:`table-cell`,context:e=>({offset:Y(e)})})}function ze(){c(`ui-calendar-weeks`)&&(u(`ui-calendar-weeks`,`table-row-group`),u(`ui-calendar-weekdays > :not(template)`,`table-row`),u(`ui-calendar-week > [role=gridcell]`,`table-cell`),customElements.define(`ui-calendar-weeks`,class extends HTMLElement{connectedCallback(){this.setAttribute(`role`,`rowgroup`),Q(this)}}))}const Be=/* @__PURE__ */ new WeakSet,Ve=/* @__PURE__ */ new WeakMap,K=/* @__PURE__ */ new WeakMap,q=/* @__PURE__ */ new WeakMap,J=/* @__PURE__ */ new WeakMap;function He(e,t){Ve.set(t,e);let n=g(`div`);n.append(g(`ui-calendar-previous`),g(`ui-calendar-heading`),g(`ui-calendar-next`)),e.append(n)}function Ue(e,t){let n=()=>Ze(e);return n(),t.subscribe(n)}const We=e=>s(t=>t.textContent=e);function Ge(e){let t=e.querySelector(`:scope > :not(template)`);if(t)return t;let n=g(`div`);return e.append(n),n}const Ke=[[`ui-calendar-month-select`,`month-select`],[`ui-calendar-year-select`,`year-select`]];function qe(e){let t=e.querySelector(`:scope > select`);if(t)return t;let n=g(`select`);return n.append(...e.childNodes),e.append(n),n}const Y=e=>{let t=f(`number`,e.closest(`ui-calendar-grid`)?.getAttribute(`offset`)??null);return typeof t==`number`?t:0},Je=/* @__PURE__ */ new WeakSet;function X(e,t){if(!Je.has(e)){if(e.firstElementChild||e.textContent?.trim())return;Je.add(e)}let n=t();e.textContent!==n&&(e.textContent=n)}function Ye(e,t,n){let r=e.querySelector(`:scope > template`)?.content.firstElementChild,i=r?.localName===t?r.cloneNode(!0):g(t);for(let[e,t]of Object.entries(n))i.setAttribute(e,t);return i}function Xe(e,t,n){(n?n.nextElementSibling:e.firstElementChild)!==t&&(n?n.after(t):e.prepend(t))}const Z=/* @__PURE__ */ new WeakSet;function Q(e){let t=l(e,Fe);if(!t)return;let n=K.get(t);n||K.set(t,n=/* @__PURE__ */ new Set),n.add(e),!Z.has(t)&&(Z.add(t),queueMicrotask(()=>{Z.delete(t),Ze(t)}))}function Ze(e){let t=a(e);if(!t)return;tt(e);let n=K.get(e);if(n)for(let r of n){if(!r.isConnected||l(r,Fe)!==e){n.delete(r);continue}if(r.localName===`ui-calendar-heading`){X(r,()=>i(t.part(`heading`)).label);continue}let a=Ke.find(([e])=>e===r.localName);if(a){et(r,t,a[1]);continue}let o=Y(r),s=i(t.part(`grid`,{offset:o,id:String(o)}));r.localName===`ui-calendar-weeks`?rt(r,t,o,s):nt(r,e,t,o,s)}}const Qe=/* @__PURE__ */ new WeakSet,$e=/* @__PURE__ */ new WeakMap;function et(e,t,n){let r=e.querySelector(`:scope > select`),a=i(t.part(n));if(r&&$e.get(r)!==a){if($e.set(r,a),!Qe.has(r)){if(r.options.length)return;Qe.add(r)}r.replaceChildren(...a.options.map(e=>g(`option`,{value:String(e.value),disabled:e.disabled},e.label))),r.value=String(a.value)}}function tt(e){let t=Ve.get(e);if(!t)return;let n=f(`number`,e.getAttribute(`months`)),r=Number.isFinite(n)?Math.max(1,Math.floor(n)):1,i=t.querySelectorAll(`:scope > ui-calendar-grid`);for(let e=i.length;e<r;e++)t.append(g(`ui-calendar-grid`,{offset:String(e)}));for(let e=r;e<i.length;e++)i[e].remove()}const $=/* @__PURE__ */ new WeakMap;function nt(e,t,n,r,a){let o=e.querySelector(`:scope > :not(template)`),s=t.getAttribute(`weekday-format`);if(!(!o||q.get(e)===a&&$.get(e)===s)){q.set(e,a),$.set(e,s),o.firstElementChild||o.append(...a.weekdays.map((t,n)=>Ye(e,`ui-calendar-weekday`,{index:String(n)})));for(let e of o.querySelectorAll(`:scope > ui-calendar-weekday`)){let t=Number(e.getAttribute(`index`));X(e,()=>i(n.part(`weekday`,{index:t,id:`${r}-${t}`})).label)}}}function rt(e,t,n,r){if(q.get(e)===r)return;q.set(e,r);let i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map;for(let t of e.children){let e=J.get(t);if(e!==void 0){i.set(e,t);for(let e of t.children){let t=J.get(e);t!==void 0&&a.set(t,e)}}}let o=e.querySelector(`:scope > template`);for(let s of r.weeks){let r=s[0].date,c=i.get(r)??g(`ui-calendar-week`);i.delete(r),J.set(c,r),Xe(e,c,o),o=c;let l=null;for(let r of s){let i=r.hidden?`hidden ${r.date}`:r.date,o=a.get(i)??it(e,r);a.delete(i),J.set(o,i),Xe(c,o,l),l=o,r.hidden||X(o,()=>at(t,r.date,n))}}for(let e of a.values())e.remove();for(let e of i.values())e.remove()}function it(e,t){return t.hidden?g(`span`,{role:`gridcell`}):Ye(e,`ui-calendar-day`,{value:t.date})}const at=(e,t,n)=>i(e.part(`day`,{value:t,offset:n})).label;export{Ne as a,A as c,je as d,xe as f,He as i,G as l,L as m,Re as n,P as o,z as p,Ue as r,ke as s,Le as t,Ae as u};
@@ -0,0 +1 @@
1
+ import{t as e}from"./B_ns1YHO.js";import{n as t}from"./By30h-7B.js";import{t as n}from"./DT3Hb76X.js";import{t as r}from"./D5LiaI5R.js";function i({label:e,handle:t,box:n}){return t===`move`?`${e} moved to ${n.x}, ${n.y}.`:`${e} resized to ${n.width} by ${n.height}.`}const a={n:`ns-resize`,s:`ns-resize`,e:`ew-resize`,w:`ew-resize`,ne:`nesw-resize`,sw:`nesw-resize`,nw:`nwse-resize`,se:`nwse-resize`,move:`move`},o={ArrowUp:[0,-1],ArrowDown:[0,1],ArrowLeft:[-1,0],ArrowRight:[1,0]},s=(e,t)=>t===`move`&&!!e.target?.closest?.(`[data-resize-handle]`);function c(e,t,r,i,a={}){let o=a.bounds,s=o?.left??-1/0,c=o?.top??-1/0,l=o?.right??1/0,u=o?.bottom??1/0;if(t===`move`)return{...e,x:n(e.x+r,s,Math.max(s,l-e.width)),y:n(e.y+i,c,Math.max(c,u-e.height))};let d=a.min??{width:1,height:1},f=a.max??{width:1/0,height:1/0},p=t.includes(`w`),m=t.includes(`e`),h=t.includes(`n`),g=t.includes(`s`),_=p?e.x+e.width:e.x,v=h?e.y+e.height:e.y,y=Math.min(f.width,p?_-s:l-_),b=Math.min(f.height,h?v-c:u-v),x=p?e.width-r:m?e.width+r:e.width,S=h?e.height-i:g?e.height+i:e.height,C=a.aspect;if(C){(p||m)&&(h||g)?Math.abs(x/e.width-1)>=Math.abs(S/e.height-1)?S=x/C:x=S*C:p||m?S=x/C:x=S*C;let t=e.y+e.height/2,r=e.x+e.width/2,i=h||g?b:2*Math.min(t-c,u-t,f.height/2),a=p||m?y:2*Math.min(r-s,l-r,f.width/2);x=n(x,Math.max(d.width,d.height*C),Math.min(a,i*C)),S=x/C}else x=n(x,d.width,Math.max(d.width,y)),S=n(S,d.height,Math.max(d.height,b));return{x:p?_-x:m?_:e.x+(e.width-x)/2,y:h?v-S:g?v:e.y+(e.height-S)/2,width:x,height:S}}function l(n,l){let{store:u}=n,d=()=>l.boxes(u.get()),f=e=>u.set({[l.draft]:e}),p=t(n.onDestroy),m=(e,t,n,r,i,a)=>c(t,n,r,i,{bounds:l.bounds?.(e),min:l.min?.(e),max:l.max?.(e),aspect:l.aspect?.(e)??(a?t.width/t.height:void 0)}),h=(e,t)=>({x:Math.round(e.x/t)*t,y:Math.round(e.y/t)*t,width:Math.round(e.width/t)*t,height:Math.round(e.height/t)*t}),g={box(e,t){let n=e[l.draft];return n?.key===t?n.box:l.boxes(e)[t]??null},resizeTo(t,n,r={reason:`imperative`},a=`se`){let o=d()[t];if(o&&o.x===n.x&&o.y===n.y&&o.width===n.width&&o.height===n.height)return!1;let s=l.set({...d(),[t]:n},r);return s&&e((l.message??i)({key:t,label:l.label?.(t)??t,handle:a,box:n}),{priority:`assertive`}),s},resizeBy(e,t,n,r,i={reason:`imperative`}){let a=d()[e];return!a||l.disabled?.(e)?!1:g.resizeTo(e,m(e,a,t,n,r,!1),i,t)},keydown(e,t,n){let r=o[e.key];if(!r||e.altKey||e.metaKey||e.ctrlKey||s(e,n))return!1;let[i,a]=r;if(i&&(n===`n`||n===`s`)||a&&(n===`e`||n===`w`))return!1;e.preventDefault();let c=l.step?.()??1,u=e.shiftKey?l.largeStep?.()??c*10:c;return g.resizeBy(t,n,i*u,a*u,{reason:`resize-key`,event:e}),!0},pointerdown(e,t,n,r){let i=d()[t];if(!i||!p.accepts(e)||l.disabled?.(t)||s(e,n))return;let a=e.clientX,o=e.clientY;p.start(r,e,{threshold:3,cancelOnEscape:!0,onStart:()=>{f({key:t,handle:n,box:i})},onMove:({x:e,y:r,event:s})=>{let c=l.scale?.()??1,u=m(t,i,n,(e-a)/c,(r-o)/c,s.shiftKey);f({key:t,handle:n,box:u})},onEnd:(e,r)=>{let i=u.get()[l.draft];f(null),i&&!r&&g.resizeTo(t,h(i.box,l.step?.()??1),{reason:`drag`,event:e},n)}})},dragging(e,t){let n=e[l.draft];return n?.key===t?n.handle:void 0},boxStyle(e,t){let n=l.boxes(e)[t];if(n)return r({position:`absolute`,left:`var(--resize-x, ${n.x}px)`,top:`var(--resize-y, ${n.y}px)`,width:`var(--resize-width, ${n.width}px)`,height:`var(--resize-height, ${n.height}px)`})},style(e,t){let n=e[l.draft];if(n?.key!==t)return;let{x:r,y:i,width:a,height:o}=n.box;return`--resize-x:${r}px;--resize-y:${i}px;--resize-width:${a}px;--resize-height:${o}px`},handleAttrs(e){return{"data-resize-handle":e,style:r({cursor:a[e],"touch-action":`none`})}}};return g}export{i,c as n,a as r,l as t};
@@ -0,0 +1 @@
1
+ import{G as e,I as t,mt as n}from"./DC08tnkE.js";import{u as r}from"./0eRGibL6.js";import{r as i}from"./Djdv-16J.js";import{c as a,i as o,o as s,r as c,s as l}from"./B3-APaNf.js";import{l as u}from"./CL4wjam9.js";function d(t,n={}){let r=()=>t().dismissible!==!1,i=(e,n)=>t().onDismissAttempt?.({reason:e,event:n});return{allows(t,a){let o=n.refusal?.(t)??(e(t)&&!r()?`attempt`:void 0);return!o||(o===`attempt`&&t!==`focus-out`&&t!==`window-blur`&&(i(t,a),n.refused?.(t)),!1)},sheet:{dismissible:r,onDismissAttempt:e=>i(`swipe`,e)}}}let f;const p=()=>f??=import(`./5RSyydjV.js`),m=e=>t&&matchMedia(e).matches;function h(e,n,r,a,o){let s=()=>{let e=r(),t=e===`auto`&&m(`(max-width: 640px) and (pointer: coarse)`);return e===`sheet`||t?`sheet`:a},c=()=>e.set({presentation:s()}),l=r();return l===`sheet`&&c(),t&&!f&&(l===`sheet`||l===`auto`&&m(`(pointer: coarse)`))&&(window.requestIdleCallback??setTimeout)(()=>p().then(e=>e.prepareVariables())),{open:c,resolve:s,bind(t,a){let s=n();if(r()===`auto`&&s.opener()===`initial`&&e.get().open&&queueMicrotask(c),e.get().presentation!==`sheet`)return s.bind(t,a);let l,u=!1,d=e=>u||(l=e());p().then(({presentSheet:e})=>d(()=>e(t,s,{...o?.sheet,...a})),()=>d(()=>s.bind(t,a))),t.hidden=!0;let f=i(t);return()=>{u=!0,f(),l?.()}}}}const g=(e,t,n)=>t??(e===`sheet`||n),_=[.5,1];function v(e,t){let{store:i}=t;y.get(i)&&i.get().presentation===`sheet`&&r()!==`touch`&&queueMicrotask(()=>e.isConnected&&e.focus({preventScroll:!0})),y.delete(i);let a=[n(e,`touchend`,e=>{!i.get().open&&e.cancelable&&t.presentation.resolve()===`sheet`&&(e.preventDefault(),t.open(e))},{passive:!1}),n(e,`focus`,()=>y.set(i,!0)),n(e,`blur`,e=>e.relatedTarget&&y.set(i,!1))];return()=>{a.forEach(e=>e()),e.ownerDocument.activeElement===e&&y.set(i,!0)}}const y=/* @__PURE__ */ new WeakMap;function b(e,t){let n=e.preset.behavior===`dialog`;return n&&e.store.set({presentation:`dialog`}),h(e.store,()=>e.popup,()=>e.rules?.presentation?e.rules.presentation():e.options().presentation,n?`dialog`:`popover`,t)}const x={payload:u,behavior:`popover`,role:`dialog`,dismissal:d,modal:!1,placement:o,presentation:b,press:s,hover:c,resetStyles:l},S={payload:u,behavior:`dialog`,role:`dialog`,dismissal:d,modal:!0,presentation:b,press:s,triggerName:a,resetStyles:l},C={payload:u,behavior:`dialog`,role:`alertdialog`,dismissal:d,press:s,triggerName:a,resetStyles:l},w={payload:u,behavior:`dialog`,role:`dialog`,dismissal:d,press:s,triggerName:a,resetStyles:l},T={payload:u,behavior:`menu`,role:`menu`,dismissal:d,placement:o,presentation:b},E={behavior:`select`,modal:`pointer`,dismissal:d,placement:o,presentation:b},D={behavior:`combobox`,modal:!1,dismissal:d,placement:o,presentation:b},O={behavior:`popover`,dismissal:d,placement:o,presentation:b},k={behavior:`combobox`,dismissal:d,placement:o};export{w as a,E as c,g as d,_ as f,S as i,k as l,D as n,T as o,O as r,x as s,C as t,v as u};
@@ -0,0 +1 @@
1
+ function e({restTimeout:e=300}={}){let n,r,i=`x`,a,o,s=!1;return{start(e,t,o=`x`){n=e,a=e,r=t,i=o,s=!1},stop(){n=r=a=void 0,clearTimeout(o)},active:()=>!!n&&!s,contains(c,l){if(!n||!r||s)return!1;let u=r.getBoundingClientRect(),d=i===`x`?u.left>=n.x?u.left:u.right:u.top>=n.y?u.top:u.bottom,f=i===`x`?t(c,n,{x:d,y:u.top-8},{x:d,y:u.bottom+8}):t(c,n,{x:u.left-8,y:d},{x:u.right+8,y:d}),p=!a||Math.abs(d-c[i])<=Math.abs(d-a[i])+1;return a=c,clearTimeout(o),!f||!p?!1:(o=setTimeout(()=>{s=!0,l()},e),!0)}}}function t(e,t,n,r){let i=(e,t,n)=>(e.x-n.x)*(t.y-n.y)-(t.x-n.x)*(e.y-n.y),a=i(e,t,n),o=i(e,n,r),s=i(e,r,t);return!((a<0||o<0||s<0)&&(a>0||o>0||s>0))}export{e as t};
@@ -0,0 +1 @@
1
+ import{I as e,W as t}from"./DC08tnkE.js";import{t as n}from"./0eRGibL6.js";const r=`function(k,i){var c=window.__uiSdkStorage||(window.__uiSdkStorage={}),n=k+":"+i;if(!(n in c)){var s=null;try{if(k==="cookie"){var m=("; "+document.cookie).split("; "+encodeURIComponent(i)+"=");if(m.length>1)s=decodeURIComponent(m.pop().split(";")[0])}else s=(k==="local"?localStorage:sessionStorage).getItem(i)}catch(e){}c[n]=s}return c[n]}`,i=`function(k,i,a,v){try{var s=(${r})(k,i),t=document.currentScript,r=t&&t.previousElementSibling;if(r&&s!==null&&v.indexOf(s)>-1)r.setAttribute(a,s)}catch(e){}}`,a=e=>JSON.stringify(e).replace(/</g,`\\u003c`),o=/* @__PURE__ */ new Map,s=(e,t)=>{let n=`${e}:${t}`,r=o.get(n);return r||o.set(n,r=/* @__PURE__ */ new Set),r},c=/* @__PURE__ */ new WeakSet;function l(t){if(e)try{return t===`local`?window.localStorage:window.sessionStorage}catch{return}}function u(e){if(c.has(e))return!0;try{let t=`__ui-sdk-storage__`;return e.setItem(t,t),e.removeItem(t),c.add(e),!0}catch{return!1}}function d(e){if(typeof e!=`string`||e===``)throw Error(`A storage needs an ID, like createLocalStorage("color-scheme").`)}function f(e,t,n){d(t);let r=s(e,t),i=e,a=e=>{if(!n.write(e))return!1;for(let t of[...r])t(e);return!0};return{id:t,kind:i,readsOnServer:n.readsOnServer,script:e=>n.script?.(e),available:n.available,get:n.read,set:e=>a(e),remove:()=>a(null),subscribe(e){let t=t=>e(t);r.add(t);let i=n.watch(()=>e(n.read()));return()=>{r.delete(t),i()}}}}function p(t,n){return f(t,n,{readsOnServer:!1,script:({attribute:e,values:r})=>{if(!/^data-[a-z0-9-]+$/.test(e))throw Error(`A storage script only sets data-* attributes, not "${e}".`);return`(${i})(${[t,n,e,r].map(a).join(`,`)})`},available:()=>{let e=l(t);return!!(e&&u(e))},read:()=>{try{return l(t)?.getItem(n)??null}catch{return null}},write:e=>{let r=l(t);if(!r)return!1;try{return e===null?r.removeItem(n):r.setItem(n,e),!0}catch{return!1}},watch:r=>{if(!e)return()=>{};let i=e=>{(e.key===n||e.key===null)&&e.storageArea===l(t)&&r()};return window.addEventListener(`storage`,i),()=>window.removeEventListener(`storage`,i)}})}function m(e){return p(`local`,e)}function h(e){return p(`session`,e)}const g=(e,t)=>{if(!e)return null;for(let n of e.split(`;`)){let e=n.indexOf(`=`);if(!(e<0||n.slice(0,e).trim()!==t))try{return decodeURIComponent(n.slice(e+1).trim())}catch{return null}}return null},_=()=>{try{return e&&navigator.cookieEnabled!==!1&&typeof document.cookie==`string`}catch{return!1}};function v(t,n={}){let r=encodeURIComponent(t);return f(`cookie`,t,{readsOnServer:!0,available:()=>e?_():n.cookie!=null,read:()=>{if(!e)return g(n.cookie,r);try{return g(document.cookie,r)}catch{return null}},write:e=>{if(!_())return!1;let t=n.secure??location.protocol===`https:`,i=[`${r}=${e===null?``:encodeURIComponent(e)}`,`path=${n.path??`/`}`,`max-age=${e===null?0:n.maxAge??31536e3}`,`samesite=${n.sameSite??`lax`}`];n.domain&&i.push(`domain=${n.domain}`),t&&i.push(`secure`);try{return document.cookie=i.join(`; `),!0}catch{return!1}},watch:t=>{let n=e?window.cookieStore:void 0;if(!n)return()=>{};let i=e=>{let{changed:n=[],deleted:i=[]}=e;[...n,...i].some(e=>e.name===r)&&t()};return n.addEventListener(`change`,i),()=>n.removeEventListener(`change`,i)}})}const y=e=>{if(!/^data-[a-z0-9-]+$/.test(e))throw Error(`A preference only shows itself on data-* attributes, not "${e}".`)};function b(e,t,n){let r=()=>{let r=e.get();t.get()[n]!==r&&t.set({[n]:r})},i=!1,a;return queueMicrotask(()=>{i||(a=e.subscribe(r),r())}),()=>{i=!0,a?.()}}function x(e){y(e.attribute);let{storage:r,values:i}=e,a=e=>e!=null&&i.includes(e);if(!a(e.defaultValue))throw Error(`"${e.defaultValue}" isn't one of the preference's values.`);let o=r?.readsOnServer?r.get():void 0,s=a(o)?o:e.defaultValue,c=s,l={value:s},u=l,d=/* @__PURE__ */ new Set,f,p=!1,m=()=>o!==void 0||p||!r||r.readsOnServer?c:(f??=r.get(),a(f)?f:c),h=()=>{let e=m();return u.value!==e&&(u={value:e}),u},g=(i,s={})=>{if(i===m()||!a(i))return!1;let l=s.reason??`imperative`,u=t({reason:l,event:s.event},n(l,s.event));if(e.onValueChange?.(i,u),u.canceled)return!1;c=i,p=!0,l!==`restore`&&l!==`storage-sync`&&r?.set(i)&&(o=i);let f=h();for(let e of[...d])e(f);return!0},_,v=t=>{let n=e=>t(e);if(d.add(n),d.size===1&&r){let t=r.get();if(t!==o){let n=o===void 0;o=t,a(t)?g(t,{reason:`restore`}):n||g(e.defaultValue,{reason:`restore`})}_=r.subscribe(t=>{o=t,g(a(t)?t:e.defaultValue,{reason:`storage-sync`})})}return()=>{!d.delete(n)||d.size>0||(_?.(),_=void 0)}};return{attribute:e.attribute,global:e.global??!1,values:i,defaultValue:e.defaultValue,storage:r,initialState:l,get:h,set:g,subscribe:v,follow:(e,t)=>b({get:h,subscribe:v},e,t)}}function S(e){let t=e.map(e=>{y(e.attribute);let{storage:t}=e;return[t?.kind??null,t?.id??null,e.attribute,e.global,e.values,e.defaultValue]});return`(function(r,p){var t=document.currentScript,e=t&&t.parentElement;for(var j=0;j<p.length;j++){try{var x=p[j],s=x[0]?r(x[0],x[1]):null;if(x[4].indexOf(s)<0)s=x[5];var o=x[3]?document.documentElement:e;if(o)o.setAttribute(x[2],s)}catch(n){}}})(${r},${a(t)})`}const C=/* @__PURE__ */ new WeakMap;function w(e){if(!e||typeof e.matchMedia!=`function`)return;let t=C.get(e);if(t)return t;let n=e.matchMedia(`(prefers-color-scheme: dark)`),r=/* @__PURE__ */ new Set;return t={query:n,supported:n.media!==`not all`,listeners:r,notify:()=>{for(let e of[...r])e()}},C.set(e,t),t}const T=(e,t)=>e===`system`?t:e;function E(t={}){let n=t.initial??`unknown`,r=x({values:[`system`,`light`,`dark`],defaultValue:t.defaultValue??`system`,attribute:`data-color-scheme`,global:t.global,storage:t.storage,onValueChange:t.onValueChange}),i=()=>w(t.view??(e?window:void 0)),a=/* @__PURE__ */ new Set,o=()=>{let e=i();return e?.supported?e.query.matches?`dark`:`light`:n},s=(e,t)=>({value:e,system:t,resolved:T(e,t)}),c=s(r.initialState.value,n),l=c,u=()=>{let e=r.get().value,t=o();return(l.value!==e||l.system!==t)&&(l=s(e,t)),l},d=()=>{let e=u();for(let t of[...a])t(e)},f,p=()=>{let e=o();e!==f&&(f=e,e!==`unknown`&&t.onSystemValueChange?.(e),d())},m,h=e=>{let t=t=>e(t);a.add(t);let n=i();return a.size===1&&(n?.supported&&(f=o(),n.listeners.size===0&&n.query.addEventListener(`change`,n.notify),n.listeners.add(p)),m=r.subscribe(d)),()=>{!a.delete(t)||a.size>0||(m?.(),m=void 0,n?.listeners.delete(p)&&n.listeners.size===0&&n.query.removeEventListener(`change`,n.notify))}};return{attribute:r.attribute,global:r.global,values:r.values,defaultValue:r.defaultValue,storage:r.storage,initialState:c,get:u,set:r.set,subscribe:h,follow:(e,t)=>b({get:u,subscribe:h},e,t)}}function D(e){let t=e?.trim().replace(/^"(.*)"$/,`$1`);return t===`light`||t===`dark`?t:`unknown`}export{S as a,h as c,b as i,E as n,v as o,x as r,m as s,D as t};
@@ -0,0 +1 @@
1
+ function e(e,t){return e*t/(1-t)}function t(t){let{extent:i,velocity:a,candidates:o}=t;if(Math.abs(a)<t.minFlingVelocity)return n(o,i);let s=i+e(a,t.rate),c=r(o,i,Math.sign(a)),l=n(o,s);return(a>0?o[l]<=i+.5:o[l]>=i-.5)&&c!==-1&&(l=c),!t.skipSnapPoints&&c!==-1&&(l=a>0?Math.min(l,c):Math.max(l,c)),l}function n(e,t){let n=0;for(let r=1;r<e.length;r++)Math.abs(e[r]-t)<Math.abs(e[n]-t)&&(n=r);return n}function r(e,t,n){if(n>0)return e.findIndex(e=>e>t+.5);for(let n=e.length-1;n>=0;n--)if(e[n]<t-.5)return n;return-1}const i=.55;function a(e,t,n=i){return e<=0?0:(1-1/(e*n/t+1))*t}function o(e,t,n=i){return e<=0?0:(1/(1-Math.min(e/t,.999999))-1)*t/n}function s(e,t,n=i){if(e<=0)return 1;let r=e*n/t+1;return n/(r*r)}const c={horizon:70,staleAfter:40,maxSpeed:8,capacity:20};function l(e,t,n=0,r=e.length){let i=r-n;if(i<2)return 0;let a=e[r-1];if(i<4)return u(e,t,n,r);let o=0,s=0,c=0,l=0,d=0,f=0,p=0,m=0;for(let i=n;i<r;i++){let n=e[i]-a,r=t[i],u=n*n;o+=1,s+=n,c+=u,l+=u*n,d+=u*u,f+=r,p+=r*n,m+=r*u}let h=o*(c*d-l*l)-s*(s*d-l*c)+c*(s*l-c*c);return Math.abs(h)<1e-9?u(e,t,n,r):(o*(p*d-l*m)-f*(s*d-l*c)+c*(s*m-p*c))/h}function u(e,t,n,r){let i=0,a=0,o=r-n;for(let s=n;s<r;s++)i+=e[s]/o,a+=t[s]/o;let s=0,c=0;for(let o=n;o<r;o++){let n=e[o]-i;s+=n*(t[o]-a),c+=n*n}return c>0?s/c:0}function d(e={}){let{horizon:t,staleAfter:n,maxSpeed:r,capacity:i}={...c,...e},a=new Float64Array(i),o=new Float64Array(i),s=new Float64Array(i),u=new Float64Array(i),d=0,f=-1;function p(e,t){d>0&&e<=a[f]||(f=(f+1)%i,a[f]=e,o[f]=t,d=Math.min(d+1,i))}function m(e){if(d<2)return 0;let c=a[f];if(e-c>n)return 0;let p=0;for(let e=d-1;e>=0;e--){let n=(f-e+i)%i;c-a[n]>t||(s[p]=a[n],u[p]=o[n],p++)}let m=l(s,u,0,p);return Math.max(-r,Math.min(r,m))}function h(){d=0,f=-1}return{add:p,velocity:m,reset:h}}export{t as a,s as i,a as n,n as o,o as r,e as s,d as t};
@@ -0,0 +1 @@
1
+ import{N as e,a as t,c as n,d as r,ot as i,s as a,tt as o}from"./DC08tnkE.js";function s(e,t){return{opening(n,r,i){let a={trigger:e.get().trigger,payload:e.get().payload};return n!==void 0&&e.set({trigger:n}),t(r,i),()=>e.set(a)},handOver(n,r,i){e.set({trigger:n}),t(r,i)},reopening(e,n){return`payload`in e&&t(e.payload,n)}}}const c={slots:[`content`],container:(e,n)=>{let r=(n?.slot===`content`?n.el?.getAttribute(`container`)??null:null)??e.getAttribute(`container`);return r?t(e,r):a(e)}},l=/* @__PURE__ */ new WeakMap;function u(t,i=c.slots){return{slots:i,container(i,a){let s=c.container(i,a),u=n(i);if(!u||o(u.part(a.slot,a.props))[`data-presentation`]!==`sheet`)return s;let d=l.get(i);if(!d){let e=i.ownerDocument.createElement(t);e.setAttribute(`data-slot`,o(u.part(`viewport`,{}))[`data-slot`]??``),new MutationObserver(()=>e.hasChildNodes()||e.remove()).observe(e,{childList:!0}),l.set(i,e),d=e}let f=e(s),p=f??i;return d.parentNode!==p&&p.append(d),r(d,f),d}}}const d=/* @__PURE__ */ new WeakMap;function f(e){let t=u(e);return{slots:[...t.slots,`input`],container(e,r){if(r.slot!==`input`)return t.container(e,r);let a=n(e),s=d.get(e),c=r.el?.parentElement??null,l=a&&i(a.part(`header`,{}))&&a.api.internal.contentElement?.();if(!a||!l)return s?.remove(),c===s?null:c;let u=s??e.ownerDocument.createElement(`div`);return s||(u.setAttribute(`data-slot`,o(a.part(`header`,{}))[`data-slot`]??``),d.set(e,u)),u.parentElement!==l&&l.prepend(u),u}}}const p={container:`string`},m=[`isOpen`,`setOpen`,`open`,`close`,`toggle`,`getPayload`,`focus`],h={open:{get:e=>e.isOpen(),set:(e,t)=>e.setOpen(!!t)}},g=e=>e.getAttribute(`modal`)!==`false`;function _(e){e.hasAttribute(`as-child`)||e.hasAttribute(`role`)||e.querySelector(`h1, h2, h3, h4, h5, h6, [role=heading]`)||(e.setAttribute(`role`,`heading`),e.setAttribute(`aria-level`,`2`))}export{h as a,u as c,c as i,s as l,m as n,_ as o,p as r,f as s,g as t};
@@ -0,0 +1 @@
1
+ function e(e,t){return()=>{}}function t(e,t,n){}export{e as n,t};
@@ -0,0 +1 @@
1
+ const e=v(1,1,1),t=v(9999,12,31);function n(e){return typeof e==`string`&&r(e)!==void 0}function r(e){let t=e?/^(\d{4})-(\d{2})-(\d{2})$/.exec(e):null;if(!t)return;let n={year:Number(t[1]),month:Number(t[2]),day:Number(t[3])};return T(n)?n:void 0}function i(e,t,n){let r={year:e,month:t,day:n};return T(r)?D(r):void 0}function a(e,t){return t===2&&w(e)?29:o[t-1]??0}const o=[31,28,31,30,31,30,31,31,30,31,30,31];function s(e,t){return b(x(C(e)+t))}function c(n,r){let{year:i,month:o,day:s}=S(n),c=i*12+o-1+r,l=Math.floor(c/12);if(l<1)return D(y(e));if(l>9999)return D(y(t));let u=c-l*12+1;return D({year:l,month:u,day:Math.min(s,a(l,u))})}function l(e,t){return c(e,t*12)}function u(e,t){return C(t)-C(e)}function d(e){return((C(e)+4)%7+7)%7}function f(e,t=0){return s(e,-((d(e)-t+7)%7))}function p(e,t=0){return s(f(e,t),6)}function m(e){return`${e.slice(0,8)}01`}function h(e){let{year:t,month:n}=S(e);return D({year:t,month:n,day:a(t,n)})}function g(e,t,n){return t&&e<t?t:n&&e>n?n:e}function _(e,t={}){let n=m(e),r=C(f(n,t.weekStartsOn??0)),i=C(h(n)),a=t.fixedWeeks===!1?Math.ceil((i-r+1)/7):6,o=[];for(let e=0;e<a;e++){let t=[];for(let n=0;n<7;n++)t.push(b(x(r+e*7+n)));o.push(t)}return o}function v(e,t,n){let r=t<=2?e-1:e,i=Math.floor(r/400),a=r-i*400,o=Math.floor((153*((t+9)%12)+2)/5)+n-1,s=a*365+Math.floor(a/4)-Math.floor(a/100)+o;return i*146097+s-719468}function y(e){let t=e+719468,n=Math.floor(t/146097),r=t-n*146097,i=Math.floor((r-Math.floor(r/1460)+Math.floor(r/36524)-Math.floor(r/146096))/365),a=r-(365*i+Math.floor(i/4)-Math.floor(i/100)),o=Math.floor((5*a+2)/153),s=o<10?o+3:o-9,c=a-Math.floor((153*o+2)/5)+1;return{year:i+n*400+ +(s<=2),month:s,day:c}}const b=e=>D(y(e)),x=n=>Math.min(Math.max(n,e),t);function S(e){let t=r(e);if(!t)throw RangeError(`"${e}" is not an ISO date (YYYY-MM-DD).`);return t}function C(e){let{year:t,month:n,day:r}=S(e);return v(t,n,r)}const w=e=>e%4==0&&(e%100!=0||e%400==0);function T({year:e,month:t,day:n}){return Number.isInteger(e)&&Number.isInteger(t)&&Number.isInteger(n)&&e>=1&&e<=9999&&t>=1&&t<=12&&n>=1&&n<=a(e,t)}const E=(e,t)=>String(e).padStart(t,`0`);function D({year:e,month:t,day:n}){return`${E(e,4)}-${E(t,2)}-${E(n,2)}`}function O(e,t){return t?(Array.isArray(t)?t:[t]).some(t=>k(e,t)):!1}function k(e,t){return typeof t==`string`?e===t:typeof t==`function`?t(e):`from`in t?e>=t.from&&e<=t.to:`weekday`in t?t.weekday.includes(d(e)):`before`in t?e<t.before:e>t.after}const A=e=>e.slice(0,7),j=(e,t)=>A(c(`${e}-01`,t)),M=e=>typeof e==`string`&&/^\d{4}-\d{2}$/.test(e)&&n(`${e}-01`);function N(e){return typeof e==`string`?n(e)?[e]:[]:Array.isArray(e)?e.filter(n).sort():[]}function P(e,t){let n=N(t);return e===`multiple`?[...new Set(n)]:e===`range`?n.length===2?[n[0],n[1]]:null:n[0]??null}function F(e,t,n){let r=u(e,t)+1;if(n.minDays!==void 0&&r<n.minDays||n.maxDays!==void 0&&r>n.maxDays)return!1;if(n.allowUnavailable)return!0;for(let r=e;r<=t;r=s(r,1))if(n.isUnavailable(r))return!1;return!0}function I(e,t,n){let r=t<e?[t,e]:[e,t];return F(r[0],r[1],n)?r:null}function L(e,t,n){if(e===null)return{anchor:t,value:void 0};let r=I(e,t,n);return r?{anchor:null,value:r}:{anchor:e,value:void 0}}function R(e,t,n){let r=n.rtl?1:-1;switch(e.key){case`ArrowLeft`:return s(t,r);case`ArrowRight`:return s(t,-r);case`ArrowUp`:return s(t,-7);case`ArrowDown`:return s(t,7);case`Home`:return f(t,n.weekStartsOn);case`End`:return p(t,n.weekStartsOn);case`PageUp`:return e.shiftKey?l(t,-1):c(t,-1);case`PageDown`:return e.shiftKey?l(t,1):c(t,1)}}function z(e,t,n){let r=R(e,t,n);return r===void 0?void 0:g(r,n.min,n.max)}function B(e,t,n,r){let i=A(e),a=j(t,n-1);if(i>=t&&i<=a)return t;let o=V(t,i);return r===`page`?j(t,Math.floor(o/n)*n):i<t?i:j(i,-(n-1))}function V(e,t){let[n,r]=e.split(`-`).map(Number),[i,a]=t.split(`-`).map(Number);return(i-n)*12+a-r}function H(e,t){return _(`${e}-01`,t).map(n=>n.map(n=>{let r=A(n)!==e;return{date:n,outside:r,hidden:r&&(!t.showOutsideDays||(n<`${e}-01`?!t.first:!t.last))}}))}function U(e,t){return{start:`${e}-01`,end:s(`${j(e,t)}-01`,-1)}}const W=/* @__PURE__ */ new Set([`gregory`,`iso8601`,`buddhist`,`japanese`,`roc`]),G=/* @__PURE__ */ new Map;function K(e,t={}){let n=`${e??``}|${JSON.stringify(t)}`,r=G.get(n);return r||(r=new Intl.DateTimeFormat(e,{...t,timeZone:`UTC`}),W.has(r.resolvedOptions().calendar)||(r=new Intl.DateTimeFormat(e,{...t,calendar:`gregory`,timeZone:`UTC`})),G.set(n,r)),r}function q(e){let t=r(e);if(!t)throw RangeError(`"${e}" is not an ISO date (YYYY-MM-DD).`);let n=/* @__PURE__ */ new Date(0);return n.setUTCFullYear(t.year,t.month-1,t.day),n}function J(e,t,n=te){return K(t,n).format(q(e))}function Y(e,t,n,r=ne){return K(n,r).formatRange(q(e),q(t)).replace(re,` `)}function X(e,t=`long`){let n=K(e,{month:t});return Array.from({length:12},(e,t)=>n.format(Date.UTC(2026,t,1)))}function Z(e,t=`short`,n=0){let r=K(e,{weekday:t});return Array.from({length:7},(e,t)=>r.format(Date.UTC(2026,0,4+(n+t)%7)))}function Q(e){let t=ee(e).formatToParts(Date.now()),n=e=>t.find(t=>t.type===e).value;return`${n(`year`).padStart(4,`0`)}-${n(`month`)}-${n(`day`)}`}const $=/* @__PURE__ */ new Map;function ee(e){let t=e??``,n=$.get(t);return n||(n=new Intl.DateTimeFormat(`en-US-u-ca-gregory-nu-latn`,{timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`}),$.set(t,n)),n}const te={weekday:`long`,year:`numeric`,month:`long`,day:`numeric`},ne={year:`numeric`,month:`short`,day:`numeric`},re=/[\u2009\u202F]/g;export{a as C,r as S,i as T,I as _,Q as a,s as b,H as c,O as d,A as f,L as g,P as h,X as i,F as l,z as m,J as n,Z as o,B as p,Y as r,j as s,K as t,M as u,N as v,n as w,g as x,U as y};
@@ -0,0 +1 @@
1
+ import{pt as e}from"./DC08tnkE.js";import{a as t,n}from"./DT3Hb76X.js";import{r}from"./yw9M3nfi.js";const i=/[\u2212\u2012\u2013\uFE63\uFF0D]/g,a=/[\uFE62\uFF0B]/g,o=/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,s=/[\s\u00A0\u202F]/g,c=/['\u2019]/g,l=/* @__PURE__ */ new Map;function u(e,t){let n=`${e??``}|${JSON.stringify(t)}`,i=l.get(n);if(i)return i;let a=r(e,t),o=[...a.formatToParts(-12345.6),...a.formatToParts(12345.6),...a.formatToParts(1)],s=e=>o.find(t=>t.type===e)?.value,c=a.resolvedOptions().numberingSystem,u=r(e,{numberingSystem:c,minimumFractionDigits:1}).formatToParts(12345.6),d=e=>s(e)??u.find(t=>t.type===e)?.value,f=o.filter(e=>[`currency`,`percentSign`,`unit`,`literal`,`plusSign`].includes(e.type)).map(e=>e.value.trim()).filter(Boolean),p=r(e,{useGrouping:!1,numberingSystem:c}),m=/* @__PURE__ */ new Map;for(let e=0;e<10;e++)m.set(p.format(e),String(e));let h={group:d(`group`)??`,`,decimal:d(`decimal`)??`.`,strip:[...new Set(f)].sort((e,t)=>t.length-e.length),digits:m,divisor:t.style===`percent`?100:1};return l.set(n,h),h}const d=/^\s*\(.*\)\s*$/;function f(e,t){let n=e.replace(o,``).replace(i,`-`).replace(a,`+`),r=d.test(n);n=Array.from(n,e=>t.digits.get(e)??e).join(``);for(let e of t.strip)n=n.split(e).join(``);return n=t.group.trim()===``?n.replace(s,``):n.split(t.group).join(``).replace(s,``),(t.group===`'`||t.group===`’`)&&(n=n.replace(c,``)),t.decimal!==`.`&&(t.group===`.`&&(n=n.split(`.`).join(``)),n=n.split(t.decimal).join(`.`)),/^\d.*-$/.test(n)&&(n=`-${n.slice(0,-1)}`),n=n.replace(/^\+/,``),r?`-${n.replace(/[()]/g,``)}`:n}const p=/^-?(\d+\.?\d*|\.\d+)$/,m=/^-?\d*\.?\d*$/;function h(e,r,i){let a=u(r,i??{}),o=f(e,a);if(!p.test(o))return null;let s=Number(o)/a.divisor;return Number.isFinite(s)?t(s,n(Number(o))+2):null}function g(e,t,n,{allowNegative:r=!0}={}){let i=f(e,u(t,n??{}));return m.test(i)?r||!i.startsWith(`-`):!1}function _(e){let t=e.split(`/`).map(e=>e.trim()===``?NaN:Number(e));return t.every(Number.isFinite)?t:null}function v(t,{orientation:n=`horizontal`,dir:r=`ltr`,arrows:i=`all`}={}){if(e(t))return null;if(t.key===`Home`)return{bound:`min`};if(t.key===`End`)return{bound:`max`};if(t.key===`PageUp`||t.key===`PageDown`)return{direction:t.key===`PageUp`?1:-1,size:`large`};let a=r===`rtl`&&n===`horizontal`?-1:1,o=i===`horizontal`?0:t.key===`ArrowUp`?1:t.key===`ArrowDown`?-1:0,s=i===`vertical`?0:t.key===`ArrowRight`?a:t.key===`ArrowLeft`?-a:0,c=o||s;return c?{direction:c,size:t.shiftKey?`large`:t.altKey?`small`:`step`}:null}export{_ as i,g as n,h as r,v as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./BtVkQf3z.js";function t(t){let n=()=>{let n=t.list(),r=t.active();t.write(r&&n?e(r,n):void 0)},r=typeof ResizeObserver>`u`?void 0:new ResizeObserver(n),i=/* @__PURE__ */ new Set,a=()=>{let e=t.list(),a=new Set(e?[e,...e.querySelectorAll(t.itemSelector)]:[]);for(let e of i)a.has(e)||(i.delete(e),r?.unobserve(e));for(let e of a)i.has(e)||(i.add(e),r?.observe(e));n()},o=t.subscribe(a);return queueMicrotask(a),()=>{o(),r?.disconnect()}}export{t};
@@ -0,0 +1 @@
1
+ import{B as e,V as t,j as n}from"./DC08tnkE.js";import{n as r}from"./B7EgSgjQ.js";import{t as i}from"./Bjiy_F2N.js";import{i as a,u as o}from"./D02PaHn6.js";import{n as s,r as c}from"./DwV48AXv.js";import{t as l}from"./NKnbYGjC.js";import{d as u,g as d,h as f}from"./BcwkVTsR.js";import{a as p,n as m,t as h}from"./dR-12TPY.js";import{n as g}from"./yv8dTvNI.js";const _=(e,t)=>.09*e.length/t.length;function v(e,t,n){for(let r=n;r!==-1;r=e.indexOf(t,r+1))if(o(e,r))return r;return-1}function y(e,t){let n=0,r=-2,i=0,a=0;for(let s of t){if(s===` `)continue;let t=e.indexOf(s,n);if(t===-1)return 0;a++,o(e,t)&&(i+=1),t===r+1&&(i+=1),r=t,n=t+1}return a?.1+.4*i/(2*a):0}function b(e,t){let n=a(t);if(!n)return 1;let r=a(e);if(r===n)return 1;let i=r.indexOf(n);return i===0?.9+_(n,r):i>0?(v(r,n,i)===-1?.6:.75)+_(n,r):y(r,n)}function x(e,t){let n=b(e.label,t);for(let r of e.keywords??[])n=Math.max(n,b(r,t)*.95);return n}const S=e=>e===`fuzzy`?x:e;function C(e,t){let{id:a,store:o,options:u}=e,d=!1,f=null,g=m({count:()=>_.count(),status:()=>o.get().status,onLoadMore:()=>u().onLoadMore}),_=c({store:o,focus:()=>o.get().focusInList?`real`:`virtual`,items:t.items,emptyItems:t.emptyItems,toKey:e=>String(e??``),filter:()=>S(t.filter()),rank:()=>t.filter()===`fuzzy`||typeof t.filter()==`function`,query:t.query,loop:()=>u().loop??!0,skipDisabled:!0,active:()=>o.get().open,onHighlight:t.onHighlight,onLastReached:g.reached,container:t.container,scrollRoot:t.scrollRoot,onRegister(){d||(d=!0,queueMicrotask(()=>{d=!1,o.set({mounts:o.get().mounts+1})}))}});l(o,_);let v=t=>e.props(`item`,t);function y(e){let{highlighted:n,settled:r}=o.get();if(!t.items()&&!r)return n;let i=t.autoHighlight(),a=i===`always`||i===`typing`&&t.query()!==``,s=n!==null&&_.entries().some(e=>e.key===n),c=a?t.preferred?.(_)??_.firstEnabled()??null:null;return e&&a?c:s?n:c}function b(e,n){let r=y(e);r!==o.get().highlighted&&t.highlight(r,n)}function x(e){let r=s(e,{apple:n()});if(r===void 0||e.altKey&&e.key===`ArrowUp`)return!1;if(!o.get().open)return!t.open||r!==1&&r!==-1?!1:(e.preventDefault(),t.open(e,r===-1?`last`:`first`),!0);e.preventDefault();let i=_.stepKey(r);return i!==void 0&&t.highlight(i,{reason:`list-navigation`,event:e}),!0}let C=t.query(),w=o.get();o.subscribe(()=>{let e=o.get(),n=w;w=e;let r=t.query();if(r!==C){C=r;let e=f??{reason:`imperative`};f=null,b(!0,e)}else if(e.mounts!==n.mounts&&!t.settlesMount?.()||e.items!==n.items||e.settled!==n.settled){let r=n.highlighted===null?null:{reason:`item-removed`};e.highlighted===n.highlighted?b(!1,r):t.highlight(e.highlighted,r)}});let T=t.autoHighlight();return e.onOptions(()=>{let e=t.autoHighlight();e!==T&&(T=e,queueMicrotask(()=>b(!1,{reason:`imperative`})))}),h({store:o,query:t.query,count:()=>_.count(),loading:()=>o.get().status===`loading`,shown:()=>o.get().open,silent:()=>i(e,`status`).length>0,announcement:()=>u().announcement}),{listbox:_,itemProps:v,settledHighlight:y,settle:b,navigate:x,loadMore:g,matchQuery:t.query,matchMode:()=>p(t.filter()),cause(e,t){f={reason:e,event:t}},hover(e,n){n.pointerType!==`touch`&&o.get().open&&!v(e)?.disabled&&o.get().highlighted!==e&&t.highlight(e,{reason:`item-hover`,event:n})},isEmpty:e=>(!!t.items()||e.settled)&&_.count()===0,itemCount:()=>_.count(),filterQuery:t.query,activeDescendant(e){let{highlighted:t}=e;if(e.open&&!e.focusInList&&t!==null&&_.element(t)?.isConnected)return`${a}-option-${r(t)}`}}}function w(){let e=(e,t)=>e.internal.text(t);return{role:`combobox`,focus:`native`,keys:u,attrs:(t,{id:n,api:r})=>({id:`${n}-input`,value:e(r,t),autocomplete:`off`,autocapitalize:`none`,spellcheck:`false`,"aria-expanded":String(t.open)}),live:t((e,{api:t})=>({"aria-activedescendant":t.internal.activeDescendant(e)})),on:{input:(e,{api:t,el:n})=>t.internal.typed(n,e),keydown:(e,{api:t})=>t.internal.onInputKeyDown(e)},bind(t,{api:n,store:r}){let i=t,a,o=()=>{let t=e(n,r.get());t!==a&&(a=t,i.value!==t&&(i.value=t))};return o(),r.subscribe(o)}}}function T(){return{props:{value:`string`,label:`string`,keywords:`list`,disabled:`boolean`,index:`number`,group:{kind:`string`,from:`group.id`}},role:`option`,focus:`active-descendant`,attrs:(e,{id:t,key:n,props:i,api:a})=>({id:`${t}-option-${r(n)}`,tabindex:e.focusInList?`-1`:void 0,"aria-disabled":i.disabled?`true`:void 0,"aria-selected":void 0,...f(i.index,a.internal.listbox),hidden:a.internal.listbox.matches(n,i)?void 0:``,"data-disabled":i.disabled?``:void 0}),direct:e([`hidden`]),live:t((e,{key:t})=>({"aria-selected":e.highlighted===t?`true`:`false`,"data-highlighted":e.highlighted===t?``:void 0})),on:{...g,pointermove:(e,{api:t,key:n})=>t.internal.hover(n,e)},press:({api:e,key:t},n)=>e.internal.press(t,n),bind(e,{api:t,key:n,props:r}){let i=d(e,{api:t,key:n,props:r});return()=>{i(),e.removeAttribute(`data-highlighted`),e.setAttribute(`aria-selected`,`false`)}}}}export{w as n,T as r,C as t};
@@ -0,0 +1 @@
1
+ import{a as e,n as t}from"./BqScCLwv.js";const n=e=>e?.querySelector(`:scope > template`)??null;function r(e,t,n=!0){let r=e?.content.querySelector(t);return r?r.cloneNode(n):document.createElement(t)}function i(e,t={},n,i){let a=r(i,e);for(let[e,n]of Object.entries(t))n!==void 0&&n!==!1&&a.setAttribute(e,n===!0?``:n);if(n){let t=a.querySelector(`${e}-text`);t?t.textContent=n:a.prepend(n)}return a}function a(e){return e.split(`,`).map(e=>e.trim()).filter(Boolean)}const o={context:e=>({text:e.textContent??``,write:!0}),kinds:{text:null,write:null}},s={display:`block`,context:()=>({stash:!0}),kinds:{stash:null}};function c(e,t,n=e=>String(e),a){return t.map(t=>{if(typeof t==`string`)return i(`${e}-item`,{value:t,label:t},t,a);if(`type`in t&&t.type===`separator`)return i(`${e}-separator`,{},``,a);if(`type`in t&&t.type===`group`){let o=r(a,`${e}-group`,!1);return t.label&&o.append(i(`${e}-group-label`,{},t.label,a)),o.append(...c(e,t.items,n,a)),o}let o=t,s=i(`${e}-item`,{value:n(o.value),label:o.label,disabled:o.disabled},o.label,a);return o.keywords&&s.setAttribute(`keywords`,o.keywords.join(`,`)),o.shortcut&&s.setAttribute(`shortcut`,o.shortcut),s})}function l(n,r,i){if(!r)return n;let a=new Map(t(r,t=>e(t,i)).map(e=>[e.key,e]));return n.map(e=>a.get(e)?.value??e)}function u(e,t,n){let r=e.getAttribute(`default-value`)??e.getAttribute(`value`);if(r===null||!t||!n)return;let i=e.hasAttribute(`multiple`)&&e.getAttribute(`multiple`)!==`false`,o=i?a(r):[r],s=n.getValue();if(!(i?Array.isArray(s)&&s.length===o.length&&s.every((e,t)=>e===o[t]):s===o[0]))return;let c=l(o,t,n.internal.options().itemToValue);c.every((e,t)=>e===o[t])||n.internal.adoptValue(i?c:c[0])}const d=/* @__PURE__ */ new WeakSet,f=/* @__PURE__ */ new WeakMap,p=e=>d.has(e);function m(e,t,n,r,i){let a=Array.from(e.querySelectorAll(`${t}-item`)).some(e=>!d.has(e));if(!a&&f.get(e)===n)return;if(a){for(let t of Array.from(e.children))d.has(t)&&t.remove();f.delete(e);return}f.set(e,n);let o=c(t,n,i,r);for(let e of o)d.add(e),e.querySelectorAll(`${t}-item`).forEach(e=>d.add(e));g(e,o,p,`${t}-select-all`)}const h=/* @__PURE__ */ new WeakMap;function g(e,t,n,r){let i=/* @__PURE__ */ new Map;for(let t of e.children){let e=h.get(t);e!==void 0&&n(t)&&!i.has(e)&&i.set(e,t)}let a=t.map(e=>{let t=e.outerHTML,n=i.get(t);return n?(i.delete(t),n):(h.set(e,t),e)}),o=new Set(a);for(let t of Array.from(e.children))n(t)&&!o.has(t)&&t.remove();let s=Array.from(e.children).filter(n),c=Array.from(e.children).find(e=>!n(e)&&e.localName!==r)??null,l=/* @__PURE__ */ new Set,u=0;for(let t of a){for(;s[u]&&l.has(s[u]);)u++;s[u]===t?u++:e.insertBefore(t,s[u]??c),l.add(t)}}export{o as a,m as c,n as d,l as f,p as i,c as l,r as n,a as o,i as r,g as s,u as t,s as u};
@@ -0,0 +1 @@
1
+ import{mt as e}from"./DC08tnkE.js";import{o as t}from"./By30h-7B.js";function n(n,r={}){let i=n.ownerDocument,a=i.defaultView??window,{delay:o=500,tolerance:s=10,keys:c=[` `,`Enter`]}=r,l;n.style.setProperty(`--hold-delay`,`${o}ms`),n.style.setProperty(`-webkit-touch-callout`,`none`);function u(e,t,i){if(l||r.disabled?.()||r.onPress?.(e)===!1)return!1;let s=0,c=()=>{let t=l;t&&!r.disabled?.()&&(t.held=!0,n.setAttribute(`data-held`,``),r.onHold?.({...e,count:++s})!==!1&&r.repeat&&l===t&&(t.timer=a.setTimeout(c,r.repeat)))},u=i();return l={input:e.input,...t,held:!1,timer:a.setTimeout(c,o),unlisten:()=>u.forEach(e=>e())},n.setAttribute(`data-holding`,``),!0}function d(){let e=l;if(l=void 0,e)return a.clearTimeout(e.timer),e.unlisten(),n.removeAttribute(`data-holding`),n.removeAttribute(`data-held`),e}function f(e,a){let o=d();if(!o)return;let{input:s,pointerId:c,key:l,held:u}=o;if(c!==void 0&&(u||a)&&e.type!==`pointercancel`){let n=e.type===`pointerup`;t(i,!n,n?void 0:c)}l!==void 0&&a&&i.activeElement===n&&p(l),r.onEnd?.({event:e,input:s,held:u,canceled:a}),l!==void 0&&!u&&!a&&n.click()}function p(t){let r=[e(n,`keydown`,e=>e.key===t&&e.preventDefault()),e(n,`keyup`,e=>{e.key===t&&(e.preventDefault(),r.forEach(e=>e()))}),e(n,`blur`,()=>r.forEach(e=>e()))]}let m=()=>[e(i,`keydown`,e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),f(e,!0))},{capture:!0}),e(n,`blur`,e=>f(e,!0)),e(a,`blur`,e=>f(e,!0))],h=[e(n,`pointerdown`,t=>{let n=!t.isPrimary&&t.pointerType!==`mouse`;if(t.button!==0||n||t.defaultPrevented)return;let r=t.pointerType||`mouse`,a=e=>e.pointerId===t.pointerId;u({event:t,input:r},{pointerId:t.pointerId},()=>[e(i,`pointermove`,e=>{if(!a(e))return;if(e.pointerType===`mouse`&&e.buttons===0)return f(e,!1);let n=Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY);!l?.held&&n>s&&f(e,!0)}),e(i,`pointerup`,e=>a(e)&&f(e,!1)),e(i,`pointercancel`,e=>a(e)&&f(e,!0)),e(i,`contextmenu`,e=>r!==`mouse`&&e.preventDefault()),...m()])}),e(n,`keydown`,t=>{if(t.target===n&&c.includes(t.key)){if(l?.input===`keyboard`)return t.preventDefault();t.repeat||t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey||u({event:t,input:`keyboard`},{key:t.key},()=>[e(n,`keyup`,e=>{e.key===t.key&&(e.preventDefault(),f(e,!1))}),...m()])&&t.preventDefault()}})];return()=>{d(),h.forEach(e=>e()),n.style.removeProperty(`--hold-delay`),n.style.removeProperty(`-webkit-touch-callout`)}}export{n as t};
@@ -0,0 +1 @@
1
+ import{O as e,j as t}from"./DC08tnkE.js";import{t as n}from"./Bjiy_F2N.js";import{n as r}from"./C1zqYpy2.js";function i(t,n){return t?e(t,n):``}function a(e){queueMicrotask(()=>e.get().apple!==t()&&e.set({apple:t()}))}function o(e,t,n,i){let a,o,s=()=>{let i=e()||void 0;i!==a&&(o?.(),a=i,o=i?r.register(i,t,n):void 0)};s();let c=i(s);return()=>{c(),o?.()}}function s(e,t,r,{beside:i=!1}={}){return n(e,t).find(e=>e.el.contains(r)||i&&!!r.parentElement?.contains(e.el))?.props?.shortcut}function c(e,t){return e({props:{shortcut:`string`},state:(e,{props:n,api:r})=>({text:i(n.shortcut??t(e,r),e.apple)}),attrs:()=>({"aria-hidden":`true`,translate:`no`}),bind(e,{store:n,api:r,props:o}){if(a(n),e.childNodes.length)return;let s=()=>{let a=n.get();e.textContent=i(o.shortcut??t(a,r,e),a.apple)};s();let c=n.subscribe(s);return()=>{c(),e.textContent=``}}})}export{c as i,o as n,s as r,a as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./Db-W1wrC.js";import{t}from"./DT3Hb76X.js";import{n}from"./yw9M3nfi.js";import{t as r}from"./D5LiaI5R.js";function i(e){let t=a(e.min,0);return{min:t,max:Math.max(t,a(e.max,100)),format:e.format,locale:e.locale,getValueLabel:e.getValueLabel}}function a(e,t){return typeof e==`number`&&Number.isFinite(e)?e:t}function o(e,n,r){return r<=n?e>=r?100:0:(t(e,n,r)-n)/(r-n)*100}function s(t,r){if(t===null)return``;let{format:i,min:a,max:s}=r,c=e(r);return typeof i==`function`?i(t):i&&i.style!==`percent`?n(t,c,i):n(o(t,a,s)/100,c,i??{style:`percent`})}function c(e,t){let n=s(e,t);if(!t.getValueLabel)return n||void 0;let r=e===null?null:o(e,t.min,t.max);return t.getValueLabel(e,{formatted:n,percent:r,min:t.min,max:t.max})}function l(e,n){return{"aria-valuemin":String(n.min),"aria-valuemax":String(n.max),"aria-valuenow":e===null?void 0:String(t(e,n.min,n.max)),"aria-valuetext":c(e,n)}}function u(e){return e===null?void 0:r({"inset-inline-start":0,width:`${d(e)}%`})}function d(e){return Math.round(e*1e4)/1e4}const f=e=>`${e}-label`;function p(e){return{internal:{label:()=>{e.set({labels:e.get().labels+1});let t=!0;return()=>{t&&(t=!1,e.set({labels:e.get().labels-1}))}}}}}export{i as a,o as c,l as i,d as l,s as n,u as o,p as r,f as s,a as t};
@@ -0,0 +1 @@
1
+ function e(e){let t=/* @__PURE__ */ new WeakMap,n=null,r=e=>{for(let n=e instanceof Element?e:null;n;n=n.parentElement)if(t.has(n))return n;return null};return{bind(i,a){t.set(i,a);let o=e=>{r(e.target)===i&&(n=i)},s=()=>queueMicrotask(()=>{n===i&&i.isConnected&&!i.contains(document.activeElement)&&(n=null)});return i.addEventListener(`focusin`,o),i.addEventListener(`focusout`,s),()=>{i.removeEventListener(`focusin`,o),i.removeEventListener(`focusout`,s),t.delete(i);let r=typeof document>`u`?null:document.activeElement,c=i.contains(r)||n===i&&(!r||r===document.body);if(n===i&&(n=null),!c)return;let l={key:a.key,props:a.props,el:i};queueMicrotask(()=>{let t=document.activeElement;if(t&&t!==document.body&&t.isConnected&&!i.contains(t))return;let n=e.fallback(l);n?.isConnected&&n.focus({preventScroll:!0})})}}}}export{e as t};
@@ -0,0 +1 @@
1
+ import{a as e}from"./Db-W1wrC.js";const t=/\p{Diacritic}/gu,n=/\p{Script=Latin}/u,r=/^[\u0000-\u007f]*$/,i=/^(tr|az|lt)\b/i;function a(e){let a=new Intl.Collator(e,{sensitivity:`base`,usage:`search`}),o=i.test(e??``)?t=>t.toLocaleLowerCase(e):e=>e.toLowerCase(),s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Map;function l(e){let r=s.get(e);if(r!==void 0)return r;let i=o(e);if(e<`€`)return s.set(e,i),i;let c=o(e.normalize(`NFD`).replace(t,``));return c.length===e.length&&c!==i&&a.compare(e,c)===0?r=c:n.test(e)&&(r=[...`abcdefghijklmnopqrstuvwxyz`].find(t=>a.compare(e,t)===0)),r??=i.length===e.length?i:e,s.set(e,r),r}function u(e){let t=c.get(e);if(t!==void 0)return t;if(r.test(e))t=o(e);else{t=``;for(let n of e)t+=l(n)}return c.size>5e4&&c.clear(),c.set(e,t),t}return{locale:e,fold:u}}let o,s=!1;function c(){return o||=(!s&&typeof window<`u`&&(s=!0,window.addEventListener(`languagechange`,()=>o=void 0)),a(e()))}const l=e=>c().fold(e);function u(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return t}const d=/* @__PURE__ */ new Set([` `,`-`,`_`,`/`,`.`,`:`,`,`,`(`,`)`,`[`,`]`,`@`,`#`]),f=(e,t)=>t===0||d.has(e[t-1]);function p(e,t,n){let r=l(t.trim());if(!r)return[];let i=l(e),a=i.indexOf(r);if(n===`startsWith`){let e=u(i);return i.startsWith(r,e)?[{start:e,end:e+r.length}]:[]}if(a!==-1){let e=n===`fuzzy`?m(i,r,a):a;return[{start:e,end:e+r.length}]}return n===`fuzzy`?h(i,r):[]}function m(e,t,n){for(let r=n;r!==-1;r=e.indexOf(t,r+1))if(f(e,r))return r;return n}function h(e,t){let n=[],r=0;for(let i of t){if(i===` `)continue;let t=e.indexOf(i,r);if(t===-1)return[];let a=n.at(-1);a&&a.end===t?a.end=t+1:n.push({start:t,end:t+1}),r=t+1}return n}function g(e,t){if(!t.length)return[{text:e,match:!1}];let n=[],r=0;for(let{start:i,end:a}of t)i>r&&n.push({text:e.slice(r,i),match:!1}),n.push({text:e.slice(i,a),match:!0}),r=a;return r<e.length&&n.push({text:e.slice(r),match:!1}),n}const _=e=>l(e).trim();function v(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function y(e){let t=``,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(;n.nextNode();){let r=n.currentNode,i=r.parentElement?.closest(`[aria-hidden="true"], [hidden]`);(!i||!e.contains(i)||i===e&&i.getAttribute(`aria-hidden`)!==`true`)&&(t+=r.textContent)}return t}function b(e){return y(e).replace(/\s+/g,` `).trim()||(e.getAttribute(`aria-label`)??``)}function x(e,t){return t.length===1?e+1:Math.max(e,0)}function S(e=500){let t=``,n=``,r=!1,i;function a(){t=``,n=``,r=!1,clearTimeout(i)}function o(e,t,n){let r=e.length;for(let i=0;i<r;i++){let a=((n+i)%r+r)%r;if(_(e[a]).startsWith(t))return a}return-1}function s(s,c,l){if(s.length!==1||s===` `&&!t)return-1;clearTimeout(i),i=setTimeout(a,e);let u=_(s)||s;if(r=u===n&&(r||t.length===1),n=u,t+=u,r){let e=o(c,t,Math.max(l,0));return e===-1?o(c,u,x(l,u)):e}return o(c,t,x(l,t))}return Object.assign(s,{reset:a,active:()=>t.length>0})}export{y as a,p as c,_ as i,g as l,v as n,l as o,b as r,u as s,S as t,f as u};
@@ -0,0 +1 @@
1
+ function e(e){let t=``;for(let n in e){let r=e[n];r!==void 0&&(t+=`${t?`;`:``}${n}:${r}`)}return t}export{e as t};
@@ -0,0 +1 @@
1
+ const e=`[data-slot="slider"],[data-slot="color-picker"],[data-slot="date-input"],[data-slot="time-input"],input:not([type="hidden"]):not([aria-hidden="true"]),select,textarea,[data-slot="checkbox-group"],[role="checkbox"],[role="switch"],[role="radiogroup"],[role="radio"],[role="combobox"],[role="slider"],[role="spinbutton"],[role="textbox"],[role="listbox"],[data-slot="file-input-trigger"]`,t=e=>e.matches(`[data-slot="slider"]`)&&!e.querySelector(`[data-slot="slider-thumb"][data-index="1"]`),n=n=>n.matches(e)&&!t(n);function r(r,i=()=>!0){if(n(r))return r;for(let n of Array.from(r.querySelectorAll(e)))if(i(n)&&!t(n))return n}function i(e,t){let n=e.getAttribute(`role`),r=n===`checkbox`||n===`switch`||n===`radio`||e instanceof HTMLInputElement&&(e.type===`checkbox`||e.type===`radio`),i=e instanceof HTMLButtonElement&&!n;r||i||n===`radiogroup`?e.click():n===`group`?(e.querySelector(`input:not([type='hidden'])`)??e.querySelector(`[tabindex="0"]`))?.focus():e.focus(),t?.preventDefault()}export{r as n,i as t};
@@ -0,0 +1,2 @@
1
+ const e=(e,t)=>!!(e.compareDocumentPosition(t)&4),t=(t,n)=>e(t,n)?-1:1;function n(e){let n=e.length<16?null:e[0].el.parentNode;for(;n&&!e.every(({el:e})=>n.contains(e));)n=n.parentNode;if(n){let t=new Map(e.map(e=>[e.el,e])),r=[],i=e[0].el.ownerDocument.createTreeWalker(n,1),a=e.length*32;for(let o=n;o&&a--;o=i.nextNode()){let n=t.get(o);if(n&&r.push(n)===e.length)return r}}return e.sort((e,n)=>t(e.el,n.el))}function r(){let t=/* @__PURE__ */ new Map,r,i=[],a=!1,o,s=/* @__PURE__ */ new Set,c=e=>t.get(e.key)===e;function l(e,t){o??=new MutationObserver(()=>r=void 0);let n=t[t.length-1]?.el;for(let{el:t}of e)for(let e=t.parentNode;e&&!s.has(e)&&(s.add(e),o.observe(e,{childList:!0}),!e.contains(n));e=e.parentNode);}function u(){let e=[...t.values()],i=n(e.filter(e=>e.el.isConnected));return i.length<e.length?i:(typeof MutationObserver<`u`&&(o?.disconnect(),s.clear(),l(i,i)),r=i)}function d(t){let n=i.filter(c);if(n.some(e=>!e.el.isConnected))return;let r=t.filter(c);if(!(n.length*Math.log2(r.length+2)>r.length)){for(let t of n){let n=0,i=r.length;for(;n<i;){let a=n+i>>1;e(r[a].el,t.el)?n=a+1:i=a}r.splice(n,0,t)}return o&&l(n,r),r}}return{list(){return o?.takeRecords().length&&(r=void 0),r&&(i.length||a)&&(r=d(r)),i=[],a=!1,r??u()},add(e){return r&&t.has(e.key)&&(a=!0),t.set(e.key,e),r&&i.push(e),()=>{c(e)&&(t.delete(e.key),a=!0,t.size||(o?.disconnect(),s.clear(),r=void 0))}},get:e=>t.get(e),size:()=>t.size}}let i=e=>e.isTrusted;const a=/* @__PURE__ */ new WeakMap;function o(e){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),`value`)}function s(e,t){setTimeout(()=>{e.defaultPrevented||t()})}const c=/* @__PURE__ */ new Set;function l(e,t){if(c.has(e))return t();c.add(e);try{t()}finally{c.delete(e)}}function u(e){for(let t=e;t;t=t.parentElement)if(c.has(t))return!0;return!1}function d(e,t,n){n?.asUser&&!u(e)?(o(e).set.call(e,t),e.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0}))):e.value!==t&&(e.value=t)}function f(e,t){a.get(e)?.forEach(e=>e(t))}function p(e,t){let n=a.get(e);return n||(n=/* @__PURE__ */ new Set,a.set(e,n),ee(e)),n.add(t),()=>{n.delete(t),!n.size&&(a.delete(e),h(e))}}const m=/* @__PURE__ */ new WeakMap;function ee(e){let t=Object.getOwnPropertyDescriptor(e,`value`),n=t??o(e);Object.defineProperty(e,"value",{configurable:!0,enumerable:n.enumerable,get(){return n.get.call(e)},set(t){n.set.call(e,t),f(e,`write`)}});let r=()=>f(e,`input`),i=t=>{t.target===e.form&&s(t,()=>f(e,`reset`))};e.addEventListener(`input`,r),e.ownerDocument.addEventListener(`reset`,i,!0),m.set(e,()=>{e.removeEventListener(`input`,r),e.ownerDocument.removeEventListener(`reset`,i,!0),t?Object.defineProperty(e,"value",t):delete e.value})}function h(e){m.get(e)?.(),m.delete(e)}const g=/* @__PURE__ */ new WeakMap,_=/* @__PURE__ */ new WeakMap;function te(e,t){return _.set(e,t),()=>{_.get(e)===t&&_.delete(e)}}function v(e){let t=_.get(e);t?t():e.focus()}const y=/* @__PURE__ */ new WeakSet;function b(e,t){let n=t??e.ownerDocument;y.has(n)||(y.add(n),setTimeout(()=>y.delete(n)),v(e))}function ne(e,t){return y.has(t??e.ownerDocument)}function x(e,t,n){g.set(e,{internals:t,bind:n})}function S(e){return e?g.get(e)?.internals:void 0}const re=/* @__PURE__ */ new Map;function ie(e){if(typeof document>`u`)return``;if(!re.has(e)){let t=e===`select`?document.createElement(`select`):Object.assign(document.createElement(`input`),{type:e});t.name=`message`,t.required=!0,re.set(e,t.validationMessage)}return re.get(e)}const ae=/* @__PURE__ */ new Set;function oe(e){ae.forEach(t=>t(e))}function se(e){return ae.add(e),()=>{ae.delete(e)}}const ce=/* @__PURE__ */ new WeakMap;function le(e,t){let n=ce.get(e);(n?.message??``)!==t&&(t?(n?n.message=t:ce.set(e,{message:t,app:e.validity.customError?e.validationMessage:``}),e.setCustomValidity(t)):(ce.delete(e),(!e.willValidate||e.validationMessage===n.message)&&e.setCustomValidity(n.app)),oe(e))}const ue=/* @__PURE__ */ new Set([`text`,`search`,`url`,`tel`,`email`,`password`,`date`,`month`,`week`,`time`,`datetime-local`,`number`]);function de(e){if(!e)return;let t=Array.from(e.elements),n=t.find(e=>e instanceof HTMLButtonElement&&e.type===`submit`||e instanceof HTMLInputElement&&(e.type===`submit`||e.type===`image`));if(n){n.disabled||n.click();return}t.filter(e=>e instanceof HTMLInputElement&&ue.has(e.type)).length<=1&&e.requestSubmit()}function fe(e,t=[`input`,`change`]){e&&!u(e)&&queueMicrotask(()=>{e.isConnected&&(t.includes(`input`)&&e.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0})),t.includes(`change`)&&e.dispatchEvent(new Event(`change`,{bubbles:!0})))})}function pe(e){for(let t=e.parentElement;t;t=t.parentElement)if(t instanceof HTMLFieldSetElement&&t.disabled&&!t.querySelector(`:scope > legend`)?.contains(e))return!0;return!1}const me=`position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;opacity:0;pointer-events:none`;function he(e,t){let n=[],r=n=>{n.target===e.form&&s(n,()=>{t.reset(),t.write()})};e.ownerDocument.addEventListener(`reset`,r,!0),n.push(()=>e.ownerDocument.removeEventListener(`reset`,r,!0));let i=()=>t.focus();return e.addEventListener(`focus`,i),n.push(()=>e.removeEventListener(`focus`,i)),n.push(_e(e,t.disabled)),()=>n.forEach(e=>e())}const ge=/* @__PURE__ */ new WeakMap;function _e(e,t){let n,r,i=!0,a=()=>{if(r){r.disconnect();for(let t=e.parentElement;t?.closest(`fieldset`);t=t.parentElement)r.observe(t,{childList:!0,attributeFilter:[`disabled`]})}let i=pe(e);i!==n&&t(n=i)},o=()=>{i&&(typeof MutationObserver<`u`&&(r=new MutationObserver(a)),a(),ge.set(e,a))};return e.isConnected?o():queueMicrotask(o),()=>{i=!1,r?.disconnect(),ge.delete(e)}}const ve=e=>ge.get(e)?.(),ye=e=>e.disabled||e.formDisabled,be=(e,t)=>_e(e,e=>t.set({formDisabled:e})),xe=e=>e.matches(`:disabled`)||e.getAttribute(`aria-disabled`)===`true`;function Se(e,t){let n=()=>{let n=t.checked();e.checked!==n&&(e.checked=n);let r=t.indeterminate?.()??!1;e.indeterminate!==r&&(e.indeterminate=r)};n();let r=[t.subscribe(n),he(e,{...t,write:n})],i=e=>{let n=t.control?.();n&&!De(n)&&(e.preventDefault(),t.focus(),t.activate?.(e))};return e.addEventListener(`click`,i),r.push(()=>e.removeEventListener(`click`,i)),queueMicrotask(()=>{let n=t.control?.();n&&!De(n)&&r.push(ke(n,()=>C(e)))}),()=>r.forEach(e=>e())}function Ce(e,t){let n=()=>d(e,t.value());n();let r=r=>{i(r)&&e.value!==t.value()&&(t.autofill?.(e.value),n())};e.addEventListener(`change`,r);let a=[t.subscribe(n),he(e,{...t,write:n}),()=>e.removeEventListener(`change`,r)];return()=>a.forEach(e=>e())}function we(e,t){let n=g.get(e);return n?n.bind(e,n.internals,t):()=>{}}let Te=0;const Ee=e=>`${e}-control`;function De(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLMeterElement||e instanceof HTMLOutputElement||e instanceof HTMLProgressElement||g.has(e)}function Oe(e,t=e){return S(e)?ke(t,()=>C(e),e):()=>{}}function C(e){let n=[],r=e.closest(`label`);return r?.control===e&&n.push(r),e.id&&e.getRootNode().querySelectorAll(`label[for="${CSS.escape(e.id)}"]`).forEach(t=>{t!==r&&t.control===e&&n.push(t)}),n.sort(t)}function ke(e,t,n=e){let r,i=()=>{let n=e.getAttribute(`aria-labelledby`);if(e.hasAttribute(`aria-label`)||n!==null&&n!==r)return;let i=t();for(let e of i)e.id||=`ui-sdk-label-${++Te}`;let a=i.map(e=>e.id).join(` `);if(!a){r!==void 0&&e.removeAttribute(`aria-labelledby`),r=void 0;return}r=a,n!==a&&e.setAttribute(`aria-labelledby`,a)};return queueMicrotask(i),n.addEventListener(`focusin`,i),()=>n.removeEventListener(`focusin`,i)}function Ae(e){}function je(e,t,n){}function Me(e){}function Ne(e,t,n){}function Pe(e){}function Fe(e,t){}function Ie(e){e()}function Le(e,t,n){}function Re(e,t,n,r){}function ze(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);e.style.setProperty(t,n);let a=e.style.getPropertyValue(t);return()=>{e.style.getPropertyValue(t)===a&&(r?e.style.setProperty(t,r,i):e.style.removeProperty(t))}}const Be=/* @__PURE__ */ new Set;function Ve(e){if(typeof CSS<`u`&&CSS.registerProperty){for(let t of e)if(!Be.has(t)){Be.add(t);try{CSS.registerProperty({name:t,syntax:`*`,inherits:!1})}catch{}}}}const He=()=>globalThis[Symbol.for(`ui-sdk.styles@1`)]??=/* @__PURE__ */ new WeakMap,Ue=/* @__PURE__ */ new WeakMap;function We(e){if(Ue.has(e))return Ue.get(e);let t;for(let n=e;n&&!t;n=n.defaultView?.frameElement?.ownerDocument)t=n.head?.querySelector(`meta[property="csp-nonce"]`);let n=t?t.nonce||t.getAttribute(`nonce`)||``:null;return Ue.set(e,n),n}function Ge(e,t,n){if(!e.head)return;let r=e.defaultView;We(e)===``&&r&&`adoptedStyleSheets`in e?Je(e,r,t,n):qe(e,t,n)}const Ke=/* @__PURE__ */ new WeakMap;function qe(e,t,n){let r=e.getElementById(t);if(r){if(Ke.get(r)===n)return;r.textContent!==n&&(r.textContent=n),Ke.set(r,n);return}let i=e.createElement(`style`);i.id=t;let a=We(e);a&&(i.nonce=a),i.textContent=n,Ke.set(i,n);let o=e.head.querySelectorAll(`:scope > style[id^="ui-sdk-"]`);o.length?o[o.length-1].after(i):e.head.prepend(i)}function Je(e,t,n,r){let i=He().get(e);i||He().set(e,i=/* @__PURE__ */ new Map);let a=i.get(n);a||i.set(n,a={sheet:new t.CSSStyleSheet,css:``}),a.css!==r&&(a.sheet.replaceSync(r),a.css=r),e.adoptedStyleSheets.includes(a.sheet)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a.sheet])}function Ye(e){Ge(e,`ui-sdk-hidden`,`@layer ui-sdk { :where([data-slot][hidden]:not([hidden="until-found"])) { display: none !important } }`)}let w;function Xe(e){typeof window<`u`&&(performance.getEntriesByType(`paint`).length?w?w.push(e):(w=[e],(window.requestIdleCallback??setTimeout)(()=>{let e=w;w=void 0,e.forEach(e=>e())})):e())}function Ze(e){let t,n=requestAnimationFrame(()=>{t=setTimeout(e)});return()=>{cancelAnimationFrame(n),clearTimeout(t)}}function Qe(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const $e=()=>new Event(`select`,{cancelable:!0});function et(e){let t=`nativeEvent`in e?e.nativeEvent:e;return t.isComposing===!0||t.keyCode===229}const tt=/* @__PURE__ */ new WeakSet;function nt(e,t){return Object.is(e,t)?!0:!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length||tt.has(e)||tt.has(t)?!1:e.every((e,n)=>Object.is(e,t[n]))}function rt(e,t){let n=e,r=0,i=0,a,o,s=!1,c,l=/* @__PURE__ */ new Set,u=/* @__PURE__ */ new Map,d,f={get(){return c??p()},set(e,r=!1){if(a&&!r&&!s){let t=p();if(t!==n){let n={...t};for(let t in e)delete n[t];f.set(n,!0)}}let i=[];for(let t in e)nt(n[t],e[t])||i.push(t);if(!i.length)return;let o=n;n={...n,...e},m(i,o,i.every(e=>t.includes(e)),r)},subscribe(e){return l.add(e),()=>{l.delete(e)}},setFanout(e){d=e},follow(e){a=e},view(e,t){let n=c;c=e;try{return t()}finally{c=n}}};function p(){if(!a||s)return n;s=!0;let e;try{e=a(n)}finally{s=!1}if(!e)return n;if(o?.state===n&&o.over===e)return o.result;let t=n;for(let r in e)if(!nt(n[r],e[r])){t={...n,...e};break}return o={state:n,over:e,result:t},t}function m(e,t,n,a){n||r++,a||i++;let o=t=>t(n,a,e);l.forEach(o);for(let[t,n]of u)(!e.length||e.some(e=>!Object.hasOwn(t,e)))&&n.forEach(o);d?.(e,t,o)}return T.set(f,{state:()=>n,renders:()=>r,writes:()=>i,touch:()=>m([],n,!1,!1),skipping:u}),f}const T=/* @__PURE__ */ new WeakMap;function it(e,t,n){return at(T.get(e).skipping,t,n)}function at(e,t,n){let r=e.get(t);return r||e.set(t,r=/* @__PURE__ */ new Set),r.add(n),()=>{r.delete(n),!r.size&&e.get(t)===r&&e.delete(t)}}const E=e=>T.get(e).state(),ot=e=>T.get(e).renders(),st=(e,t)=>{T.set(e,T.get(t))},ct=e=>T.get(e).touch(),D=e=>e.owner,O=e=>D(e).slots[e.slot],k=(e,t)=>({id:e.id,key:e.key,props:t,api:e.api}),lt=(e,t=e.props)=>({el:e.el,id:e.id,key:e.key,props:t,store:e.store,api:e.api});function ut(e){let{parts:t}=e.owner,n=`${e.slot}:${e.key}`;t.has(n)||t.set(n,e),e.leases++;let r=!0;return()=>{if(!r||(r=!1,--e.leases))return;let{owner:t}=e;t.released.length||queueMicrotask(()=>ft(t)),t.released.push(e)}}function dt(e){let{owner:t}=e;t.released.length||queueMicrotask(()=>ft(t)),t.released.push(e)}function ft(e){for(let t of e.released){let n=`${t.slot}:${t.key}`;!t.leases&&e.parts.get(n)===t&&e.parts.delete(n)}e.released=[]}function A(e,t=e.props,n=e.store.get()){let r=O(e),i=k(e,t),a=r.attrs?.(n,i),o=r.role,s=typeof o==`function`?o(n,i):o,{name:c}=D(e),l={"data-slot":e.slot===`root`?c:`${c}-${e.slot}`,...o===void 0?void 0:{role:s},...a};return o!==void 0&&(l.role=s),jt(e,l)}const pt=/* @__PURE__ */ new Set([`aria-label`,`aria-labelledby`,`aria-description`,`title`,`autocomplete`,`autocapitalize`,`autocorrect`,`spellcheck`,`inputmode`,`enterkeyhint`]),mt=e=>typeof e==`string`&&e.split(/\s+/).every(e=>e.startsWith(`ui-sdk-`));function ht(e,t=e.props,n=e.store.get()){return O(e).state?.(n,k(e,t))??{}}function gt(e,t=e.props,n=e.store.get()){return O(e).present?.(n,k(e,t))??!0}function _t(e){return O(e).present!==void 0}const vt=e=>e.leases>0;function yt(e,t=e.props){return jt(e,O(e).live?.read(e.store.get(),k(e,t))??{})}const bt=(e,t=e.props)=>O(e).selects?.selection(e,t)??``,xt={};function j(e,t,n=e.props){let r=O(e).selects,i=[ut(e),r?r.subscribe(e,t,n):it(e.store,xt,t)];return()=>i.forEach(e=>e())}function St(e){let{on:t,press:n}=O(e),r={};for(let n in t){let i=t[n];r[n]=t=>{t.defaultPrevented||zt(t)||(D(e).sleeping?.wake(),i(t,lt(e)))}}return typeof n==`function`&&!r.click&&(r.click=t=>{t.defaultPrevented||(D(e).sleeping?.wake(),n(lt(e),t))}),r}function Ct(e){e.propsListeners?.forEach(e=>e())}function wt(e,t){let n=e.propsListeners??=/* @__PURE__ */ new Set;return n.add(t),()=>{n.delete(t)}}const Tt=/* @__PURE__ */ new WeakMap;function Et(e){let t=O(e),n=Tt.get(t);return n===void 0&&(n=!!t.attrs&&`hidden`in t.attrs(e.store.get(),k(e,e.props)),Tt.set(t,n)),n}function Dt(e,t,n={by:`core`}){let r=e,{parts:i}=r.owner,a=`${e.slot}:${e.key}`;!e.el&&(i.get(a)??r)===r&&(i.delete(a),i.set(a,r));let o={};e.el=t,r.binding=o;let s=[ut(r)];Et(e)&&Ye(t.ownerDocument);for(let[r,i]of Object.entries(St(e)))(n.by===`core`||n.attaches!==`all`&&!n.attaches.includes(r))&&s.push(Qe(t,r,i));let c=O(e);c.live&&s.push(c.live.attach(e,t)),n.by===`framework`&&c.direct&&s.push(c.direct.attach(e,t));let l=c.asleep?.(t,e);l&&s.push(l);let u=()=>{let n=c.bind?.(t,e);n&&s.push(n)},{sleeping:d}=r.owner;return d&&c.bind?(d.binds.add(u),s.push(()=>d.binds.delete(u))):u(),c.attrs&&typeof MutationObserver<`u`&&s.push(Pt(r,t)),()=>{s.forEach(e=>e()),r.binding===o&&(e.el=r.binding=void 0,r.own!==void 0&&Ft(r))}}const Ot=(e,t)=>O(e).connect?.(t)??(()=>{}),kt=[`aria-activedescendant`,`aria-controls`,`aria-describedby`,`aria-details`,`aria-errormessage`,`aria-flowto`,`aria-labelledby`,`aria-owns`,`for`,`headers`],At=e=>O(e).attrs?.(e.store.get(),k(e,{...e.props,id:void 0})).id;function jt(e,t){let{owner:n}=e;if(!n.named?.size||!kt.some(e=>t[e]))return t;let r=Nt(n,e.store);if(!r.size)return t;let i={...t};for(let e of kt){let t=i[e];t&&(i[e]=t.split(` `).map(e=>r.get(e)??e).join(` `))}return i}function Mt(e,t){for(let n of e.parts())return jt(n,t);return t}function Nt(e,t){let n=ot(t);if(e.aliases?.version===n)return e.aliases.map;let r=/* @__PURE__ */ new Map;for(let t of e.named){let e=At(t);e!==void 0&&e!==t.own&&r.set(e,t.own)}return e.aliases={version:n,map:r},r}function Pt(e,t){(t.hasAttribute(`id`)||e.own!==void 0)&&Ft(e);let n=new MutationObserver(()=>Ft(e));return n.observe(t,{attributeFilter:[`id`]}),()=>n.disconnect()}function Ft(e){let{owner:t}=e;t.unread||(t.unread=/* @__PURE__ */ new Set,queueMicrotask(()=>It(t,e.store))),t.unread.add(e)}function It(e,t){let n=e.unread;e.unread=void 0;let r=e.renamed===!0;e.renamed=void 0;for(let e of n)r=Rt(e,e.el&&Lt(e.el))||r;r&&ct(t)}const Lt=e=>e.localName===`form`?e.getAttribute(`id`):e.id;function Rt(e,t){let n=At(e),r=t&&t!==n?t:void 0;if(r===e.own)return!1;let{owner:i}=e;return e.own=r,i.named??=/* @__PURE__ */ new Set,r===void 0?i.named.delete(e):i.named.add(e),i.aliases=void 0,n!==void 0}function zt(e){return(e.type===`keydown`||e.type===`keyup`)&&et(e)}const M=/* @__PURE__ */ new WeakMap;let N,Bt=0;function Vt(e){Bt++;try{e()}finally{Bt--}}const Ht=()=>Bt>0;function Ut(e){let t=N,n={starts:[]};N=n;let r;try{r=e()}finally{N=t}return M.set(r,n),t?t.starts.push(()=>(Kt(r),()=>qt(r))):typeof document<`u`&&Kt(r),r}function Wt(e){N&&N.starts.push(e)}function Gt(e,t){let n=N,r={starts:[]};N=r;try{t()}finally{N=n}let i=M.get(e);if(i){i.starts.push(...r.starts);for(let e of i.stops?r.starts:[]){let t=e();t&&i.stops.push(t)}}}function Kt(e){let t=M.get(e);if(!t||t.stops)return;let n=t.stops=[];for(let e of t.starts){let t=e();t&&n.push(t)}}function qt(e){let t=M.get(e),n=t?.stops;n&&(t.stops=void 0,n.forEach(e=>e()))}function Jt(e){qt(e),M.delete(e)}const Yt=Symbol.for(`ui-sdk.controller.attach`),Xt=Symbol.for(`ui-sdk.controller.detach`),Zt=Symbol.for(`ui-sdk.controller.attached`);function Qt(e){return!!e?.[Zt]}function $t(e,t){e?.[Yt]?.(t)}function en(e,t){e?.[Xt]?.(t)}const tn=e=>typeof e==`string`&&/^[a-z]/.test(e)&&!/^(internal|then|toJSON)$/.test(e)&&!(e in{});function nn(){let e,t=/* @__PURE__ */ new Map,n=t=>t===`internal`?void 0:e?.[t],r=r=>{let i=t.get(r);return i||(i=(...t)=>{let i=n(r);if(typeof i==`function`)return i.apply(e,t)},t.set(r,i),i)},i=t=>{if(!e)return tn(t)?r(t):void 0;let i=n(t);return typeof i==`function`?r(t):i},a=t=>t!==`internal`&&!!e&&Object.hasOwn(e,t);return new Proxy(Object.create(null),{get(t,n){return n===Yt?t=>{e=t}:n===Zt?e!==void 0:n===Xt?t=>{e===t&&(e=void 0)}:i(n)},has:(e,t)=>a(t),ownKeys:()=>e?Reflect.ownKeys(e).filter(a):[],getOwnPropertyDescriptor:(e,t)=>a(t)?{value:i(t),enumerable:!0,configurable:!0}:void 0})}function rn(e,t){let n=e.options().controller,r=!1;Wt(()=>(r=!0,$t(n,t),()=>{r=!1,en(n,t)})),e.onOptions(({controller:e})=>{e!==n&&(en(n,t),n=e,r&&$t(e,t))})}const an=/* @__PURE__ */ new WeakMap;function on(e,t){let n=an.get(e);n||an.set(e,n=[]),n.push(t)}function sn(e,t,n){on(e.store,{from:`options`,keys:t,derive:n})}function cn(e,t,n,{live:r=!0}={}){let{store:i}=e;on(i,{from:`state`,keys:t,derive:n}),i.subscribe(e=>{if(e&&!r)return;let t=n(i.get());t&&i.set(t)})}function ln(e,t,n,r){let i=an.get(e);if(!i)return n;let a=n??{};for(let o of i){if(!n&&o.from===`state`)continue;let i={...r,...a},s=o.from===`state`?e.view(i,()=>o.derive(i)):o.derive(a,r,t);a={...a};for(let e of o.keys)s&&e in s?a[e]=s[e]:o.from===`state`&&(a[e]=i[e])}return n||Object.keys(a).length?a:void 0}const un=[`escape-key`,`outside-press`,`focus-out`,`window-blur`,`back`,`swipe`];function dn(e){return un.includes(e)}const fn=/* @__PURE__ */ new Set([`image-load`,`image-error`,`imperative`,`item-removed`,`unmount`,`reset`,`restore`,`timeout`,`resize`,`page-hide`]);let P;function pn(e,t){if(P===`agent`)return P;if(fn.has(e))return`programmatic`;if(t){let e=t();return e===`programmatic`&&P?P:e}return P??`programmatic`}function mn(e,t){let n=P;P=e;try{return t()}finally{P=n}}function hn(e,t,n=!0){if(!n)return{...e,source:t};let r=!1;return{...e,source:t,cancel:()=>{r=!0},get canceled(){return r}}}const F={},I=/* @__PURE__ */ new Set,gn=/* @__PURE__ */ new WeakMap;function _n(e,t,n){let r,i,a=()=>{r?.(),r=void 0,i&&I.delete(i),i=void 0};Wt(()=>{if(F.add)r=F.add(e,t,n);else if(typeof document<`u`&&(I.add(i=new WeakRef(e)),gn.set(e,()=>r=F.add?.(e,t,n)),I.size%1e3==0))for(let e of I)e.deref()||I.delete(e);return a})}function vn(e){let t=e.slots(e=>e),n=e.name,r=e.label??n,i=i=>{let a=i,o=i.id,s=rt({...e.state(a),...e.sync?.(a)},e.live??[]),c=[],l=[],u=Object.create(t),d=/* @__PURE__ */ new Set;function f(e){d.has(e)||(d.add(e),Object.assign(u,e.slots),b(),e.extend?.(v))}let p={name:n,label:r,slots:u,parts:/* @__PURE__ */ new Map,released:[]},{parts:m}=p;function ee(e={}){return e.id??(e.value==null?``:String(e.value))}let h;function g(e,t={},n=!1){let r=ee(t),i=`${e}:${r}`,a=m.get(i);if(!a)m.set(i,a={slot:e,key:r,id:o,get api(){return v},store:s,props:t,el:void 0,owner:p,leases:0}),n&&dt(a);else if(n)return a;return a.props=t,Ct(a),a}function _(e,t){if(t===void 0){for(let t of m.values())if(t.slot===e&&t.el?.isConnected)return t.el;return}let n=m.get(`${e}:${t}`)?.el;return n?.isConnected?n:void 0}let te={id:o,label:r,store:s,options:()=>a,onOptions:e=>l.push(e),onDestroy:e=>c.push(e),parts:()=>m.values(),element:_,props:(e,t=``)=>{let n=h?.[e];return n&&ee(n)===t?n:m.get(`${e}:${t}`)?.props}},v;function y(){v=e.api(te),rn(te,v)}function b(){let{sleeping:e}=p;if(e){p.sleeping=void 0,Gt(S,y);for(let t of[...e.binds])t()}}e.asleep?.(a)?p.sleeping={wake:b,binds:/* @__PURE__ */ new Set}:y();let ne=!1,x=(t,n)=>ln(s,t,e.sync?.(t),n),S={types:void 0,name:n,id:o,get:s.get,subscribe:s.subscribe,get api(){return b(),v},part:g,use:f,preview(e){let t=x({...e,id:o},s.get()),n=s.get();for(let e in t)if(!nt(n[e],t[e]))return{...n,...t}},view(e,t,n){let r=h;h=n;try{return s.view(e,t)}finally{h=r}},setOptions(t){let n=E(s);a=t.id===o?t:{...t,id:o},p.sleeping&&!e.asleep(a)&&b();let r=x(a,n),i;try{for(let e of l)i=e(a,r)??i;let e=E(s)===n?r:x(a,E(s));e&&mn(i,()=>s.set(e,!0))}finally{}},startState:t=>e.state({...t,id:o}),follow(e){let t,n,r=(r=E(s),i)=>{if(i)return x({...i,id:o},r);if(ne)return n;let a=e();return(t?.options!==a||t.state!==r)&&(t={options:a,state:r},n=x({...a,id:o},r)),n};return s.follow(r),r},destroy(){ne||(ne=!0,Jt(S),Vt(()=>c.forEach(e=>e())))}};return st(S,s),_n(S,m,e),S},a=e=>Ut(()=>i(e));return Object.defineProperty(a,"name",{value:n}),Object.assign(a,{options:e.options,slots:t})}const yn=/* @__PURE__ */ new WeakMap;function bn(e){let t=yn.get(e);if(!t){let{options:n,slots:r={}}=e;t={options:{debug:`boolean`,...n},slots:Object.fromEntries(Object.entries(r).map(([e,t])=>[e,t.props??{}]))},yn.set(e,t)}return t}const xn=e=>ot(e);function Sn(e){return{read:e,attach(e,t){let n=`live:${e.id}`,r=()=>z(t,yt(e),n);r();let i=j(e,r);return()=>{i(),z(t,{},n)}}}}function Cn(e){let t=/* @__PURE__ */ new WeakMap;return{names:e,attach:(n,r)=>{let i=A(n),a=t.get(r)??/* @__PURE__ */ new Map;t.set(r,a);for(let[e,t]of a)i[e]===void 0&&r.getAttribute(e)===t&&r.removeAttribute(e);return a.clear(),j(n,()=>{let t=A(n);for(let n of e){let e=t[n];if(e===void 0){i[n]!==void 0&&r.getAttribute(n)===i[n]&&r.removeAttribute(n);continue}let o=r.getAttribute(n);o!==e&&(pt.has(n)&&o!==null&&o!==i[n]||(r.setAttribute(n,e),a.set(n,e)))}i=t})}}}const wn=/* @__PURE__ */ new WeakMap,L=/* @__PURE__ */ new WeakMap;let R;function z(e,t,n=`render`){Dn(e,t,n,!1)}function Tn(e,t){Dn(e,{},t,!0)}function En(e,t){if(e!==R){for(let n of Object.values(wn.get(e)??{}))n.delete(t);for(let n of Object.values(L.get(e)??{}))n.delete(t)}}function Dn(e,t,n,r){let i=R;R=e;try{On(e,t,n,r)}finally{R=i}}function On(e,t,n,r){let i=wn.get(e)??{},a=i[n]??/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=t.style===void 0?[]:Nn(t.style);for(let[e,t]of s)o.set(`style:${e}`,t);for(let[e,n]of Object.entries(t))n!==void 0&&e!==`style`&&o.set(e,n);let c=o.has(`id`)||a.has(`id`)?e.getAttribute(`id`):null,l=jn(c,i,n);l&&o.delete(`id`);let u=/* @__PURE__ */ new Set,d=/* @__PURE__ */ new Map;for(let t of/* @__PURE__ */ new Set([...o.keys(),...a.keys()])){if(!pt.has(t))continue;let n=e.getAttribute(t);d.set(t,n),!(n===null||n===o.get(t)||t===`aria-labelledby`&&mt(n))&&(Object.values(i).some(e=>e.get(t)===n)||u.add(t))}for(let e of u)o.delete(e);for(let t of a.keys()){if(o.has(t)||u.has(t)||t===`id`&&l)continue;if(t.startsWith(`style:`)){e.style.removeProperty(t.slice(6));continue}if(!r){e.removeAttribute(t),kn(e,n,t,null);continue}let i=e.getAttribute(t);if(i!==a.get(t))continue;let s=L.get(e)?.[n]?.get(t);s===void 0?e.removeAttribute(t):i!==s&&e.setAttribute(t,s)}for(let[t,n]of s)e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n);for(let[r,i]of Object.entries(t)){if(i===void 0||!o.has(r))continue;r===`value`&&Mn(e)&&e.value!==i&&(e.value=i);let t=r===`id`?c:d.has(r)?d.get(r):e.getAttribute(r);t!==(a.get(r)??null)&&kn(e,n,r,t),t!==i&&e.setAttribute(r,i)}i[n]=o,wn.set(e,i),r&&delete L.get(e)?.[n]}function kn(e,t,n,r){let i=r==null||n===`id`?void 0:kt.includes(n)?An(r):r;if(i===void 0){L.get(e)?.[t]?.delete(n);return}let a=L.get(e);a||L.set(e,a={}),(a[t]??=/* @__PURE__ */ new Map).set(n,i)}const An=e=>e.split(/\s+/).filter(e=>e&&!e.startsWith(`ui-sdk-`)).join(` `)||void 0;function jn(e,t,n){return e===null||e===t[n]?.get(`id`)?!1:!e.startsWith(`ui-sdk-`)||Object.values(t).some(t=>t.get(`id`)===e)}const Mn=e=>e.localName===`textarea`||e.localName===`input`&&e.type!==`file`;function Nn(e){let t=[];for(let n of e.split(`;`)){let e=n.indexOf(`:`);e>0&&t.push([n.slice(0,e).trim(),n.slice(e+1).trim()])}return t}const B=typeof window<`u`&&typeof document<`u`;function Pn(){return B&&(/iP(hone|ad|od)/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)}function Fn(e){return!!e&&B&&getComputedStyle(e).direction===`rtl`}function In(){return B&&typeof HTMLElement.prototype.showPopover==`function`}function Ln(e){return e||(B&&!In()?document.body:null)}function Rn(e=document){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function zn(e){let t=[e],n=e;for(;n;){let e=n.assignedSlot??n.parentNode??n.host;e&&e!==n.parentNode&&t.push(e),n=e}return t}function Bn(e,t){return zn(t).some(t=>e.contains(t))}function Vn(e,t){for(let n of zn(e)){let e=n.closest?.(t);if(e)return e}return null}function Hn(){return typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion: reduce)`).matches}let Un;function V(){return Un??=B&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent)}function Wn(){return!1}const Gn={alt:`Alt`,option:`Alt`,opt:`Alt`,shift:`Shift`,ctrl:`Control`,control:`Control`,cmd:`Meta`,command:`Meta`,meta:`Meta`,backspace:`Backspace`,delete:`Delete`,del:`Delete`,enter:`Enter`,return:`Enter`,escape:`Escape`,esc:`Escape`,tab:`Tab`,space:`Space`,up:`ArrowUp`,down:`ArrowDown`,left:`ArrowLeft`,right:`ArrowRight`,arrowup:`ArrowUp`,arrowdown:`ArrowDown`,arrowleft:`ArrowLeft`,arrowright:`ArrowRight`,home:`Home`,end:`End`,pageup:`PageUp`,pagedown:`PageDown`};function H(e,t=V()){return e.split(`+`).map(e=>{let n=e.toLowerCase();return n===`mod`?t?`Meta`:`Control`:Gn[n]?Gn[n]:e.length===1?e.toUpperCase():e[0].toUpperCase()+e.slice(1)}).join(`+`)}const Kn={Meta:`⌘`,Control:`⌃`,Alt:`⌥`,Shift:`⇧`,Backspace:`⌫`,Delete:`⌦`,Enter:`↩`,Escape:`⎋`,Tab:`⇥`,Space:`␣`,ArrowUp:`↑`,ArrowDown:`↓`,ArrowLeft:`←`,ArrowRight:`→`,PageUp:`⇞`,PageDown:`⇟`,Home:`↖`,End:`↘`},qn={Control:`Ctrl`,Delete:`Del`,Escape:`Esc`,ArrowUp:`Up`,ArrowDown:`Down`,ArrowLeft:`Left`,ArrowRight:`Right`};function Jn(e,t=V()){let n=H(e,t).split(`+`);return`\u2066${t?n.map(e=>Kn[e]??e).join(``):n.map(e=>qn[e]??e).join(`+`)}\u2069`}function Yn(e,t){let n=e.key.length===1?e.key.toLowerCase():e.key;return t===`Space`?n===` `:/^[A-Z0-9]$/.test(t)?n===t.toLowerCase()||!/^[a-z0-9]$/.test(n)&&e.code===(/\d/.test(t)?`Digit${t}`:`Key${t}`):n.toLowerCase()===t.toLowerCase()}const Xn=[/* @__PURE__ */ new Map,/* @__PURE__ */ new Map];function Zn(e,t,n=V()){let r=Xn[+n],i=r.get(t);return i||r.set(t,i=H(t,n).split(`+`)),Yn(e,i.at(-1))&&e.metaKey===i.includes(`Meta`)&&e.ctrlKey===i.includes(`Control`)&&e.altKey===i.includes(`Alt`)&&e.shiftKey===i.includes(`Shift`)}function Qn(e){return/(^|\+)(Meta|Control|Alt)(\+|$)/.test(H(e,!0))}const $n=/* @__PURE__ */ new WeakSet,er=e=>($n.add(e),e),tr=e=>!!e&&typeof e.then==`function`&&!$n.has(e),nr=Symbol(`canceled action`);function rr(e,t,n){let r=e=>{n.failed(e)},i=()=>mn(t,n.done),a;try{a=e({source:t})}catch(e){return r(e)}if(a!==nr){if(!tr(a))return i();n.pending(!0),a.then(()=>{n.pending(!1),i()},e=>{n.pending(!1),r(e)})}}function ir(e,t){let n=()=>{let t=e.options().pendingAnnouncement??`Loading`;import(`./B_ns1YHO.js`).then(e=>e.n).then(({announce:e})=>i&&e(t),()=>{})},r,i=!1,a=e.store.subscribe(()=>{let e=t();e!==i&&(i=e,clearTimeout(r),e&&(r=setTimeout(n,1e3)))});e.onDestroy(()=>{i=!1,clearTimeout(r),a()})}const ar=/* @__PURE__ */ new WeakMap,or=/* @__PURE__ */ new WeakMap;function U(e,t,...n){t===`customValidity`&&or.set(e,n[0]);let r=ar.get(e)?.[t];return r?.(...n),!!r}function sr(e,t,n){let r=``,i=()=>{let i=n.value();if(i instanceof FormData)t.setFormValue(i,n.state());else if(Array.isArray(i)){let e=new FormData,r=n.name?.();if(r)for(let t of i)e.append(r,t);t.setFormValue(e,n.state())}else t.setFormValue(i,n.state());let a=n.valueMissing(),o=or.get(e),s=n.invalid?.();o?t.setValidity({customError:!0},o,n.anchor?.()??e):s?t.setValidity(s.flags,s.message,s.anchor??n.anchor?.()??e):a?t.setValidity({valueMissing:!0},n.message(),n.anchor?.()??e):t.setValidity({}),(s?.message??``)!==r&&(r=s?.message??``,oe(e))};i();let a=n.subscribe(i),o=n.focus?te(e,n.focus):()=>{};e.matches(`:disabled`)&&n.disabled(!0),ar.set(e,{reset:()=>{n.reset(),i()},disabled:e=>n.disabled(e),restore:e=>{typeof e==`string`&&n.restore(e)},customValidity:i});let s=ke(e,()=>C(e)),c=()=>{n.focus&&b(e,t.form)};return e.addEventListener(`invalid`,c),()=>{e.removeEventListener(`invalid`,c),a(),s(),ar.delete(e),o()}}function cr(){let e=[],t=!0;return{waitUntil:n=>{if(!t)throw new DOMException(`waitUntil() can only be called while the event dispatches.`,`InvalidStateError`);e.push(n)},done:()=>(t=!1,e)}}const lr=e=>(t,n)=>{let{waitUntil:r,done:i}=cr(),a=e.dispatchEvent(new CustomEvent(`action`,{cancelable:!0,composed:!0,detail:{...n,waitUntil:r}})),o=i();return a?o.length?Promise.all(o):void 0:nr},ur=/* @__PURE__ */ new WeakMap;let dr=0;const fr=/* @__PURE__ */ new Set;function pr(e){return typeof customElements>`u`||fr.has(e)?!1:customElements.get(e)?(`${e}`,!1):(fr.add(e),!0)}function W(e){return ur.has(e)||ur.set(e,`auto-${++dr}`),ur.get(e)}function mr(e){return e.querySelector(`:scope > button, :scope > a`)??e.firstElementChild}const hr=e=>t=>t.querySelector(`:scope > ${e}`)??t.firstElementChild;function gr(e){return t=>{let n=mr(t);if(n)return n;let r=t.ownerDocument.createElement(`button`);return r.append(...t.childNodes),r.textContent?.trim()||e?.(r),t.append(r),r}}function G(e,t){return t?t(e):e.hasAttribute(`as-child`)?e.firstElementChild:e}const _r=(e,t)=>e.id!==t.id||e.value!==t.value,K=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),vr=[`role`,`aria-disabled`];function yr(e,t){if(t!==null){if(typeof e==`function`)return e(t);if(e===`boolean`)return t!==`false`;if(e===`number`){let e=Number(t);return t.trim()===``||Number.isNaN(e)?void 0:e}return e===`list`?t.split(`,`).map(e=>e.trim()).filter(Boolean):t}}const br=/* @__PURE__ */ new Set([`disabled`,`required`]);function xr(e,t,n){let r=e.getAttribute(K(t));return n===`boolean`&&br.has(t)?r!==null||void 0:yr(n,r)}function Sr(e,t){let n={};for(let[r,i]of Object.entries(t)){let t=xr(e,r,i);t!==void 0&&(n[r]=t)}return n}const Cr=(e,t)=>typeof t==`function`?t(e):t;function wr(e,t,n={}){for(let[r,i]of Object.entries(t)){if(r in e)continue;let t=K(r);Object.defineProperty(e,r,{configurable:!0,get(){return xr(this,r,i)??Cr(this,n[r])??(i!==`boolean`&&void 0)},set(e){let a=e===!1&&i===`boolean`&&!Cr(this,n[r]);e==null||a?this.removeAttribute(t):this.setAttribute(t,e===!0?``:Array.isArray(e)?e.join(`,`):String(e))}})}}function Tr(e,t){for(let n of t){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let t=e[n];delete e[n],e[n]=t}}const q=/* @__PURE__ */ new Set;function Er(e,t,n){q.add(e);try{return U(e,`restore`,t,n)}finally{q.delete(e)}}const J=/* @__PURE__ */ new Map;function Dr(e){for(let t of J.keys())t.contains(e)&&J.delete(t)}function Or(e,t,n){let r={};J.set(e,r),queueMicrotask(()=>{J.get(e)===r&&(J.delete(e),Er(e,t,n))})}function kr(e){let t=X.get(e);if(q.has(e)||t&&q.has(t))return!0;for(let t of q)if(e.contains(t))return!0;return!1}function Ar(e,t){return t===void 0&&!!e&&typeof e==`object`&&`reason`in e&&!(typeof Event<`u`&&e instanceof Event)}function jr(e,t,n=[],r=[],i={}){return new Proxy(t,{get(t,a){if(a in t||typeof a!=`string`||!/^on[A-Z]/.test(a))return t[a];if(!n.includes(a))return(t,n)=>{if(kr(e))return;let o=Ar(t,n),{cancel:s,canceled:c,...l}=(o?t:n)??{},u=o?l:{...l,value:t},d=r.includes(a)?cr():void 0;d&&(u.waitUntil=d.waitUntil);let f=new CustomEvent(i[a]??a.slice(2).toLowerCase(),{detail:u,bubbles:!1,cancelable:typeof s==`function`||typeof t?.preventDefault==`function`,composed:!0}),p=e.dispatchEvent(f),m=d?.done()??[];return p||(typeof s==`function`?s():t&&typeof t.preventDefault==`function`&&t.preventDefault()),m.length>1?Promise.all(m).then(e=>e.at(-1)):m[0]}}})}const Mr=/* @__PURE__ */ new WeakMap;function Nr(e){return e?Mr.get(e):void 0}const Pr=/^(?:get|is|can)[A-Z]|^focus$/;function Fr(e,t,n){let r={};for(let i of n){let n=t[i];typeof n==`function`&&(r[i]=(...r)=>(Pr.test(i)||Dr(e),n.apply(t,r)))}return Object.freeze(r)}const Ir=/* @__PURE__ */ new Map,Lr=/* @__PURE__ */ new Set;let Rr;function zr(){if(Rr)return Rr;let e=globalThis,t=Symbol.for(`ui-sdk.web-styles@1`);return e[t]=(e[t]??0)+1,Rr=`ui-sdk-web-${e[t]}`}let Y=``,Br=0;const Vr=/* @__PURE__ */ new WeakMap;function Hr(e,t,n=!1){n&&Lr.add(e),(t||n)&&(t&&Ir.set(e,t),Y=Ur(),Ge(document,zr(),Y),Br++)}function Ur(){return[`@layer ui-sdk {`,` :where([data-slot][hidden]:not([hidden="until-found"])) { display: none !important }`,...[...Ir].map(([e,t])=>` :where(${e}:not([hidden]), ${e}[hidden="until-found"]) { display: ${t} }`),...[...Lr].map(e=>` :where(${e}[align]) { text-align: inherit }`),` :where([as-child]) { display: contents }`,`}`].join(`
2
+ `)}function Wr(e){let t=e.getRootNode();if(!Gr(t))return qr(e.ownerDocument);let n=Kr(t.ownerDocument);n&&!t.adoptedStyleSheets.includes(n)&&(t.adoptedStyleSheets=[n,...t.adoptedStyleSheets])}const Gr=e=>e.nodeType===11&&`host`in e;function Kr(e){let t=e.defaultView;if(!t)return;let n=Vr.get(e);return n||Vr.set(e,n={sheet:new t.CSSStyleSheet,version:-1}),n.version!==Br&&(n.sheet.replaceSync(Ur()),n.version=Br),n.sheet}function qr(e){Y&&Ge(e,zr(),Y)}const Jr=/* @__PURE__ */ new Set;function Yr(e){for(let t of Jr)t!==e&&e.contains(t)&&t.reconfigure()}const Xr=/* @__PURE__ */ new WeakMap,Zr=/* @__PURE__ */ new WeakMap;function Qr(e,t){Zr.set(e,t)}function $r(e){for(let t=e.parentElement;t;t=t.parentElement){let e=Xr.get(t);if(e)return Zr.has(e)?Zr.get(e):e}return null}const X=/* @__PURE__ */ new WeakMap,Z=/* @__PURE__ */ new WeakMap;function ei(e,t){for(let n=e.el;n&&n!==t;n=n.parentElement){let t=Z.get(n);if(t===e)return;if(t?.el===e.el&&Q.has(t))return t}}function ti(e){e.dataSlot=void 0;let t=[];for(let n=e.el;n;n=n.parentElement){let r=Z.get(n);r&&r!==e&&r.el===e.el&&Q.has(r)&&t.push(r)}if(t.length){e.el.removeAttribute(`data-slot`),En(e.el,`data-slot`);for(let e of t)e.sync?.()}}const Q=/* @__PURE__ */ new WeakSet,ni=/* @__PURE__ */ new WeakMap,ri=e=>e.value!==void 0&&typeof e.value!=`string`;function ii(e,t,n){for(let r=e.parentElement;r;r=r.parentElement){let e=Z.get(r);if(e?.slot===t&&X.get(r)===n)return e.keyed&&ri(e.props)?{...e.props,value:e.props.id}:e.props}}function $(e,t){let n=e.getAttribute(`for`);if(n){let r=e.getRootNode(),i=`getElementById`in r?r.getElementById(n):null;if(i?.matches(t))return i}for(let n=e.parentElement;n;n=n.parentElement){if(n.matches(t))return n;let e=X.get(n);if(e?.matches(t))return e}}const ai=/* @__PURE__ */ new WeakMap;function oi(e,t){for(let n=e.getRootNode();;n=n.host.getRootNode()){let e=n.querySelector(t);if(e)return e;if(!Gr(n))break}return ai.get(e)!==t&&`${e.localName}${t}`,ai.set(e,t),null}function si(e,t){queueMicrotask(()=>{e.isConnected||t()})}const ci=/* @__PURE__ */ new WeakMap,li=(e,t,n)=>(ci.set(e,n.state),sr(e,t,n));function ui(e){return class extends e{static formAssociated=!0;#e;constructor(){super(),this.#e=this.attachInternals(),x(this,this.#e,li)}get form(){return this.#e.form}get labels(){return this.#e.labels}get name(){return this.getAttribute(`name`)??``}set name(e){this.setAttribute(`name`,e)}get validity(){return this.#e.validity}get validationMessage(){return this.#e.validationMessage}get willValidate(){return this.#e.willValidate}checkValidity(){return this.#e.checkValidity()}reportValidity(){return this.#e.reportValidity()}setCustomValidity(e){U(this,`customValidity`,e)||this.#e.setValidity(e?{customError:!0}:{},e)}formResetCallback(){J.delete(this),U(this,`reset`)}formDisabledCallback(e){U(this,`disabled`,e)}formStateRestoreCallback(e,t){J.delete(this),Er(this,e,t)||Or(this,e,t)}}}const di=e=>`default${e[0].toUpperCase()}${e.slice(1)}`;function fi(e,t,r){if(!pr(e))return;Hr(e,r.display);let i={debug:`boolean`,...r.attributes},a=r.state??{},o=(e,t,n)=>{let o=Sr(e,i);for(let e of n)delete o[e];for(let[e,n]of Object.entries(t))n!==void 0&&(o[e]=n);for(let e of Object.keys(a)){if(!(e in o))continue;let t=di(e);t in o||(o[t]=o[e]),delete o[e]}return{...o,...r.options?.(e)}};customElements.define(e,class s extends (r.formAssociated?ui(HTMLElement):HTMLElement){static observedAttributes=[...Object.keys(i).map(K),...vr];#e;get#t(){return Mr.get(this)}get api(){if(this.#t)return this.#e??=Fr(this,this.#t.api,r.api??[])}#n=/* @__PURE__ */ new Set;#r=/* @__PURE__ */ new Set;#i=!1;#a=!1;#o=/* @__PURE__ */ new Set;#s=/* @__PURE__ */ new Set;#c=/* @__PURE__ */ new Set;#l=!1;#u={};#d={};#f;static{for(let[e,{get:t,set:n}]of Object.entries(a))Object.defineProperty(s.prototype,e,{get(){return e in this.#d?this.#d[e]:this.#t?t(this.#t.api):void 0},set(t){Dr(this),this.#t&&!this.#l?this.#m(()=>n(this.#t.api,t)):this.#d[e]=t}});for(let e of r.properties??[])Object.defineProperty(s.prototype,e,{get(){return this.#u[e]},set(t){Object.is(this.#u[e],t)||(this.#u[e]=t,this.#i&&(this.#p(),this.#g()))}});wr(s.prototype,i,r.defaults)}#p(e){this.#t?.setOptions(jr(this,{...o(this,this.#u,this.#o),...e,id:this.#t.id},r.silent,r.actions,r.events))}attributeChangedCallback(e,t,n){if(En(this,e),vr.includes(e))return;let r=e.replace(/-(\w)/g,(e,t)=>t.toUpperCase());if(r in a&&n!==t&&!this.#a&&Dr(this),!this.#a||n===null?this.#o.delete(r):t===null&&this.#o.add(r),!this.#i||(this.#p(),Yr(this),!(r in a)||n===t))return;let o=i[r],s=o===`boolean`?!1:o===`list`?[]:null;this.#m(()=>a[r].set(this.#t.api,n===null?s:yr(o,n)))}#m(e){let t=q.has(this);q.add(this);try{l(this,e)}finally{t||(q.delete(this),oe(this))}}connectedCallback(){if(Wr(this),this.#i){for(let e of this.#n)ve(e.el);r.options&&this.#p();return}Tr(this,[...Object.keys(a),...r.properties??[],...Object.keys(i)]);for(let[e,t]of Object.entries(r.host??{}))this.hasAttribute(e)||this.setAttribute(e,t);let n=this.#l&&!Object.keys(this.#d).length?this.#f:void 0,s={};if(this.#l&&n===void 0)for(let[e,{get:t}]of Object.entries(a))s[e]=t(this.#t.api);Object.assign(s,this.#d),this.#d={};let c=Object.fromEntries(Object.entries(s).map(([e,t])=>[di(e),t]));this.#l&&(Mr.delete(this),this.#e=void 0,this.#l=!1,this.#f=void 0);let l=this.#t;if(l?this.#p():(l=t(jr(this,{...o(this,this.#u,this.#o),...c,id:this.id||`ui-sdk-${e.replace(/^ui-/,``)}-${++dr}`},r.silent,r.actions,r.events)),Mr.set(this,l)),r.formAssociated&&Object.keys(s).length){let e=l.startState(o(this,this.#u,this.#o));this.#p(Object.fromEntries(Object.keys(s).map(t=>[di(t),e[t]])))}if(this.#i=!0,r.options&&Jr.add(this),r.self){let t=G(this,r.target);t?this.#b(t):`${e}`}for(let[t,n]of Object.entries(r.children??{})){let i=n(this);i?this.#S(t,i):r.optionalChildren?.includes(t)||`${e}${t}`}if((r.children||r.target)&&(this.#v=new MutationObserver(()=>{this.#C(),this.#x()}),this.#v.observe(this,{childList:!0})),this.#g(),this.id){let e=this.getRootNode();for(let t of e.querySelectorAll(`[for="${CSS.escape(this.id)}"]`))ni.get(t)?.()}n!==void 0&&Or(this,n,`restore`)}#h;#g(){this.#h?.(),this.#h=r.render?.(this,this.#t)||void 0}reconfigure(){this.#i&&this.#p()}#_=/* @__PURE__ */ new Map;#v;#y;#b(e){this.#y={slot:r.self,el:e,props:{}},this.register(this.#y)}#x(){if(!r.self||!r.target)return;let e=G(this,r.target);e!==this.#y?.el&&(this.#y&&this.unregister(this.#y),this.#y=void 0,this.#p(),e&&this.#b(e))}#S(e,t){let n={slot:e,el:t,props:r.childProps?.read?.(t)??{}};r.childProps&&(n.observer=new MutationObserver(()=>{n.props=r.childProps.read?.(t)??{},this.#p(),this.update(n,!1)}),n.observer.observe(t,{attributeFilter:r.childProps.attributes})),this.#_.set(e,n),this.register(n)}#C(){for(let[e,t]of Object.entries(r.children??{})){let n=t(this),r=this.#_.get(e);r?.el!==n&&(r&&(this.unregister(r),this.#_.delete(e)),n&&this.#S(e,n))}}disconnectedCallback(){si(this,()=>{this.#f=ci.get(this)?.(),this.#h?.(),this.#h=void 0,this.#v?.disconnect(),this.#v=void 0,this.#_.clear(),this.#y=void 0,this.#i=!1,Jr.delete(this);for(let e of this.#n)this.unregister(e);this.#t?.destroy(),this.#l=!0})}register(e){this.#n.add(e),Q.add(e),e.sync=()=>this.#r.has(e)||this.#D(e),this.#r.size||queueMicrotask(()=>this.#w()),this.#r.add(e)}#w(){let e=n([...this.#r]);this.#r.clear();for(let t of e)this.#n.has(t)&&(t.reread&&(t.props=t.reread()),t.feature&&this.#t.use(t.feature),this.#T(t),this.#D(t))}#T(e){let t=this.#t;e.unwatch?.();let n=t.part(e.slot,e.props);e.record=n,e.selected=bt(n),e.version=xn(t),e.unwatch=j(n,r=>{if(gt(n)!==e.shown)return e.version=xn(t),this.#D(e);if(r)return;let i=xn(t);i!==e.version&&(e.version=i,this.#D(e))})}unregister(e){e.unwatch?.(),e.unwatch=void 0,e.observer?.disconnect(),e.observer=void 0,this.#k(e),Tn(e.el,this.#P),e.disconnect?.(),e.disconnect=void 0,this.#F(e),this.#n.delete(e),Q.delete(e),this.#r.delete(e),ti(e)}rebind(){let e=n([...this.#n].filter(e=>!this.#r.has(e)));for(let t of e)this.#k(t);for(let t of e)this.#D(t)}update(e,t){if(!this.#r.has(e)){this.#E(e,t),this.#D(e);for(let t of this.#n)if(!(t===e||this.#r.has(t))){if(t.reread){let e=t.props;t.props=t.reread(),this.#E(t,_r(e,t.props))}this.#D(t)}Yr(e.el)}}#E(e,t){t&&this.#k(e);let n=this.#t.part(e.slot,e.props);(n!==e.record||bt(n)!==e.selected)&&this.#T(e)}#D(e){if(this.#s.has(e)){this.#c.add(e);return}Wr(e.el);let t=this.#t.part(e.slot,e.props);if(e.disconnect??=Ot(t,e.el),e.shown=gt(t),e.shown){let n=this.#A(e);n!==void 0&&this.#j(e,n)&&(this.#k(e),this.#M(e,n));let r=A(t);r.hidden===void 0&&(_t(t)||`hidden`in r)&&e.el.removeAttribute(`hidden`),this.#N(e,r),e.unbind||this.#O(e,t)}else{e.unbind&&(this.#N(e,A(t)),this.#k(e)),e.el.hasAttribute(`hidden`)||e.el.setAttribute(`hidden`,``);let n=A(t)[`data-slot`];n&&!e.el.hasAttribute(`data-slot`)&&e.el.setAttribute(`data-slot`,n),this.#F(e)}}#O(e,t){let n,r=!1;e.unbind=()=>{r=!0,n?.()},n=Dt(t,e.el),r&&n()}#k(e){let t=e.unbind;e.unbind=void 0,t?.()}#A(e){if(r.portal?.slots.includes(e.slot))return Ln(r.portal.container(this,e))}#j(e,t){return t?e.el.parentNode!==t:!!e.placeholder}#M(t,n){this.#F(t),n&&(t.placeholder=document.createComment(`${e} ${t.slot}`),t.el.replaceWith(t.placeholder),n.appendChild(t.el),Xr.set(t.el,n))}#N(e,t){let n=ei(e,this);n?.dataSlot&&(t={...t,"data-slot":n.dataSlot}),e.dataSlot=t[`data-slot`];let r=this.#a;this.#a=e.el===this,this.#s.add(e);try{z(e.el,t,this.#P)}finally{this.#a=r,this.#s.delete(e)}this.#c.delete(e)&&this.#D(e)}get#P(){return`render:${W(this)}`}#F(e){e.placeholder&&(e.placeholder.replaceWith(e.el),e.placeholder=void 0,Xr.delete(e.el))}})}function pi(e,t){if(!pr(e))return;let n=t.props??{};Hr(e,t.display,`align`in n),customElements.define(e,class r extends (t.formAssociated?ui(HTMLElement):HTMLElement){static observedAttributes=[...Object.keys(n).map(K),`for`,...vr];#e;#t;#n={};constructor(){super(),ni.set(this,()=>{this.isConnected&&this.connectedCallback()})}static{for(let e of t.properties??[])Object.defineProperty(r.prototype,e,{get(){return this.#n[e]??(n[e]&&xr(this,e,n[e]))},set(t){this.#n[e]=t,this.attributeChangedCallback(``)}});wr(r.prototype,n,t.defaults)}#r(){let e={...t.context?.(this),...Sr(this,n)};for(let n of t.properties??[])this.#n[n]!==void 0&&(e[n]=this.#n[n]);for(let[n,{slot:r,prop:i}]of Object.entries(t.from??{}))e[n]??=ii(this,r,this.#e)?.[i];for(let n of t.ids??[])e[n]??=W(this);return e.value===void 0&&e.id===void 0&&(e.id=W(this)),t.keyed&&ri(e)&&(e.id??=Nr(this.#e)?.api.internal.keyOf(e.value)),jr(this,e,[],t.actions)}#i;connectedCallback(){Tr(this,[...t.properties??[],...Object.keys(n)]),Wr(this),(t.target||this.hasAttribute(`as-child`))&&!this.#i&&(this.#i=new MutationObserver(()=>this.#o()),this.#i.observe(this,{childList:!0}));let r=$(this,t.owner)??this.#e;if(!r)return queueMicrotask(()=>this.#a());if(!(`register`in r)){customElements.whenDefined(r.localName).then(()=>this.isConnected&&this.connectedCallback());return}if(r===this.#e&&this.#t&&Q.has(this.#t))return;this.#e&&this.#t&&this.#e.unregister(this.#t);let i=G(this,t.target);if(!i)return queueMicrotask(()=>{this.isConnected&&!this.#t&&!G(this,t.target)&&`${e}`});!this.#t&&(t.render?.(this),this.#t)||(this.#e=r,this.#t={slot:t.slot,feature:t.feature,el:i,props:this.#r(),reread:(t.context||t.from)&&(()=>this.#r()),keyed:t.keyed},X.set(this,r),Z.set(this,this.#t),r.register(this.#t))}#a(){!this.isConnected||this.#e||($(this,t.owner)?this.connectedCallback():t.alone?t.alone(G(this,t.target)??this,this):this.hasAttribute(`for`)||`${e}${t.owner}`)}#o(){let e=this.#t?.el;if(!this.isConnected||e&&Xr.has(e))return;let n=G(this,t.target);n!==(e??null)&&(this.#e&&this.#t&&this.#e.unregister(this.#t),this.#e=void 0,this.#t=void 0,n&&this.connectedCallback())}disconnectedCallback(){si(this,()=>{this.#i?.disconnect(),this.#i=void 0,this.#e&&this.#t&&this.#e.unregister(this.#t),X.delete(this),Z.delete(this),this.#e=void 0,this.#t=void 0})}attributeChangedCallback(e){if(En(this,e),vr.includes(e))return;if(e===`for`){if(!this.isConnected)return;!$(this,t.owner)&&this.#e&&this.#t&&(this.#e.unregister(this.#t),this.#e=void 0,X.delete(this)),this.connectedCallback();return}if(!this.#e||!this.#t){t.alone&&this.isConnected&&!$(this,t.owner)&&t.alone(G(this,t.target)??this,this);return}let n=this.#t.props;this.#t.props=this.#r();let r=this.#t.props,i=_r(n,r)||!!t.rebind?.some(e=>n[e]!==r[e]);this.#e.update(this.#t,i),t.changed?.(this)}})}const mi=/* @__PURE__ */ new WeakMap;function hi(e,t,n={}){let r={},i=[],a=[],o=[],s=!1,c={};for(let[l,u]of Object.entries({...e,...n})){if(!u)continue;if(typeof u==`object`){let[e,r=l]=u.from.split(`.`);if(e in t.slots&&(c[l]={slot:e,prop:r}),!(l in n))continue}let e=typeof u==`object`?u.kind:u;e===`value`?i.push(l):e===`action`?o.push(l):e===`id`?a.push(l):e===`key`&&(s=!0),e!==`value`&&e!==`action`&&e!==`callback`&&(l!==`id`||l in n)&&(r[l]=e===`id`||e===`key`?`string`:e)}return{attributes:r,properties:i,ids:a,actions:o,keyed:s,from:Object.keys(c).length?c:void 0}}const gi=e=>typeof e==`string`?{tag:e}:e;function _i(e,t,n,r){let i=bn(e);if(t===`root`){let{tag:r,self:a,kinds:o,properties:s=[],...c}=gi(n);mi.set(e,[.../* @__PURE__ */ new Set([...mi.get(e)??[],r])]);let{debug:l,...u}=i.options,d=hi(u,i,o);return{kind:`owner`,key:t,tagName:r,config:{...c,self:a??(`root`in i.slots&&!c.children?.root?`root`:void 0),attributes:d.attributes,properties:[.../* @__PURE__ */ new Set([...d.properties,...s])].filter(e=>!c.state?.[e]),actions:d.actions}}}let{tag:a,slot:o=t,owners:s=[],kinds:c,properties:l=[],...u}=gi(n),d=mi.get(e);if(!d)throw Error(`<${a}> is a part of ${e.name}: define its root first.`);let f=i.slots[o]??(u.feature?.slots[o]&&(u.feature.slots[o].props??{}));if(!f)throw Error(`<${a}>: ${e.name} has no ${o} slot.`);let{attributes:p,...m}=hi(f,i,c);return{kind:`part`,key:t,tagName:a,config:{...u,slot:o,owner:[.../* @__PURE__ */ new Set([...r?[r]:[],...d,...s])].join(`, `),props:p,...m,properties:[.../* @__PURE__ */ new Set([...m.properties,...l])]}}}function vi(e,t){let{root:n,...r}=t,i=_i(e,`root`,n);return[i,...Object.entries(r).flatMap(([t,n])=>n?[_i(e,t,n,i.tagName)]:[])]}function yi(e,t){t.kind===`owner`?fi(t.tagName,e,t.config):pi(t.tagName,t.config)}const bi=e=>e.replace(/(^|-)(\w)/g,(e,t,n)=>n.toUpperCase());function xi(e,t){let n={};for(let r of vi(e,t))yi(e,r),n[bi(r.key)]=typeof customElements>`u`?void 0:customElements.get(r.tagName);return n}function Si(e,t,n){yi(e,_i(e,t,n))}export{Wt as $,p as $t,Wn as A,je as At,Cn as B,ne as Bt,Rn as C,Re as Ct,zn as D,Pe as Dt,Bn as E,Me as Et,In as F,b as Ft,dn as G,Oe as Gt,vn as H,xe as Ht,B as I,fe as It,sn as J,de as Jt,pn as K,se as Kt,Pn as L,Ee as Lt,Zn as M,Se as Mt,Ln as N,we as Nt,Jn as O,Fe as Ot,Hn as P,Ce as Pt,Ht as Q,s as Qt,Fn as R,S as Rt,rr as S,Le as St,Vn as T,Ne as Tt,F as U,De as Ut,Sn as V,ye as Vt,hn as W,C as Wt,nn as X,_e as Xt,cn as Y,ie as Yt,Qt as Z,be as Zt,hr as _,Xe as _t,oi as a,n as an,ht as at,tr as b,ze as bt,Nr as c,k as ct,Qr as d,nt as dt,d as en,Mt as et,Yr as f,it as ft,mr as g,Ze as gt,si as h,$e as ht,Si as i,t as in,wt as it,V as j,he as jt,Qn as k,Ie as kt,gr as l,E as lt,Tr as m,Qe as mt,pr as n,i as nn,vt as nt,$ as o,e as on,gt as ot,Hr as p,et as pt,mn as q,le as qt,xi as r,r as rn,mt as rt,$r as s,j as st,W as t,u as tn,A as tt,yr as u,at as ut,lr as v,Ye as vt,H as w,Ae as wt,er as x,Ge as xt,ir as y,Ve as yt,z,me as zt};
@@ -0,0 +1 @@
1
+ const e={};function t(t,n=e){let r=()=>(typeof n==`function`?n():n)??e,i=[t],a=0,o=null;return{record(e,{group:t,time:n=Date.now()}={}){let{limit:s=100,groupDelay:c=500}=r();i=i.slice(0,a+1),t&&o?.group===t&&n-o.time<c?i[a]=e:(i.push(e),i.length>s+1&&i.shift(),a=i.length-1),o=t?{group:t,time:n}:null},seal(){o=null},undo(){if(o=null,a!==0)return i[--a]},redo(){if(o=null,a!==i.length-1)return i[++a]},canUndo:()=>a>0,canRedo:()=>a<i.length-1,map(e){i=i.map(e)},reset(e){i=[e],a=0,o=null}}}export{t};
@@ -0,0 +1 @@
1
+ import{a as e}from"./BNSvTCpr.js";const t=`data-findable-layer`;function n(n,r){if(!e())return;let i=r.ownerDocument,a=()=>{let e=i.createElement(`div`);return e.setAttribute(`hidden`,`until-found`),e},o=()=>{let e=i.createElement(`div`);return e.setAttribute(t,``),Object.assign(e.style,{position:`absolute`,left:`0`,top:`0`,width:`0`,height:`0`}),e.addEventListener(`beforematch`,b),e},s={before:o(),after:o(),beforeEdge:a(),afterEdge:a()},c=/* @__PURE__ */ new WeakMap,l=[],u=[],d=[],f=[],p,m=/* @__PURE__ */ new Set,h=/* @__PURE__ */ new Set,g=-1,_=!1,v=-1,y=e=>Math.floor(e/100);function b(e){let t=c.get(e.target);t!==void 0&&j(t)}function x(e,t,n){let r=n.map(e=>i.createTextNode(e)),a=r.slice(1).map(()=>i.createTextNode(` `));e.replaceChildren(),r.forEach((t,n)=>e.append(t,...a[n]?[a[n]]:[])),d[t]=r,f[t]=a}function S(){let e=n.count();A(),c=/* @__PURE__ */ new WeakMap,l=[],u=[],d=[],f=[],p=void 0;for(let t=0;t<e;t+=100){u.push(a());for(let r=t;r<Math.min(e,t+100);r++){let e=i.createElement(`div`);e.setAttribute(`hidden`,`until-found`),x(e,r,n.pieces(r)),c.set(e,r),l.push(e)}}s.before.replaceChildren(s.beforeEdge),s.after.replaceChildren(s.afterEdge);for(let e of n.slots.keys())C(e);T()}function C(e){let t=n.slots.get(e);!t||e>=l.length||e===v||t.forEach((t,n)=>{let r=d[e]?.[n];t&&r&&r.parentNode!==t.el&&t.el.replaceChildren(r)})}function w(e,t){let n=d[e]?.[t],r=l[e];if(!n||!r)return;let i=f[e]?.[t];i?r.insertBefore(n,i):r.append(n)}function T(){if(_)return;if(l.length!==n.count())return S();let[e,t]=n.range(),r=e<0?u.length:y(e),i=e<0?u.length-1:y(t),a=n.items();p&&p.lo===r&&p.hi===i&&p.from>=0&&e>=0&&e<=p.to&&t>=p.from?D(e,t):O(e,t,r,i);let o=new Set(a.map(e=>e.index).filter(n=>n<e||n>t));for(let e of h)o.has(e)||l[e]?.setAttribute(`hidden`,`until-found`);for(let e of o)e!==g&&l[e]?.setAttribute(`hidden`,``);h=o,p={lo:r,hi:i,from:e,to:t},g!==-1&&!a.some(e=>e.index===g)&&A()}let E=(e,t)=>{let n=[];for(let r=e;r<t;r++)r!==g&&l[r]&&n.push(l[r]);return n};function D(e,t){let n=p;if(e>n.from)s.beforeEdge.append(...E(n.from,e));else for(let t of E(e,n.from))t.remove();if(t<n.to)s.afterEdge.prepend(...E(t+1,n.to+1));else for(let e of E(n.to+1,t+1))e.remove()}function O(e,t,n,r){let{beforeEdge:i,afterEdge:a}=s,o=p?Math.min(p.lo,n):0,c=p?Math.max(p.hi,r):u.length-1,d=new Set(m);m.clear();for(let e=o;e<=c;e++)d.add(e);for(let e of d){let t=u[e];t&&(t.replaceChildren(...E(e*100,(e+1)*100)),t.setAttribute(`hidden`,`until-found`))}for(let e=o;e<=c;e++)u[e]?.remove();i.before(...u.slice(o,Math.min(n,c+1))),a.after(...u.slice(Math.max(r+1,o),c+1)),i.replaceChildren(...e<0?[]:E(n*100,e)),a.replaceChildren(...e<0?[]:E(t+1,Math.min(l.length,(r+1)*100))),i.setAttribute(`hidden`,`until-found`),a.setAttribute(`hidden`,`until-found`)}function k(e){let t=l[e];if(!t)return;let n=y(e),r=p;if(!r){t.remove(),m.add(n);return}let i=n<r.lo||n>r.hi?u[n]:e<r.from?s.beforeEdge:e>r.to?s.afterEdge:void 0;if(!i){t.remove();return}let a;for(let t=e+1;t<l.length&&y(t)<=n+1;t++)if(l[t].parentElement===i){a=l[t];break}i.insertBefore(t,a??null)}function A(){if(g===-1)return;let e=g,t=l[e];g=-1,t&&(t.removeAttribute(`style`),t.setAttribute(`hidden`,`until-found`),k(e))}function j(e){let r=l[e],i=n.scroller();if(!i||!r)return;g!==-1&&g!==e&&A(),_=!0,v=e,n.reveal(e);let a=i.getBoundingClientRect(),o=(r.closest(`[${t}]`)??s.after).getBoundingClientRect(),{start:c,size:u}=n.place(e),d=n.horizontal();Object.assign(r.style,{position:`absolute`,left:`${a.left+i.clientLeft-o.left+(d?c:0)}px`,top:`${a.top+i.clientTop-o.top+(d?0:c)}px`,width:`${d?u:i.clientWidth}px`,height:`${d?i.clientHeight:u}px`,overflow:`hidden`,opacity:`0`,pointerEvents:`none`}),g=e;let f=()=>{if(_=!1,v=-1,(n.elements.get(e)??n.slots.get(e)?.find(Boolean)?.el)?.scrollIntoView({block:`nearest`,inline:`nearest`}),n.slots.get(e)?.some(Boolean))return C(e),g===e&&A(),T();let t=n.elements.get(e);g===e&&t&&(Object.assign(r.style,{left:`0`,top:`0`,width:`100%`,height:`100%`}),t.append(r)),T()};typeof requestAnimationFrame>`u`?f():requestAnimationFrame(f)}function M(){if(l.length!==n.count())return S();for(let e=0;e<l.length;e++){let t=n.pieces(e),r=d[e];if(t.length!==r.length){for(let e of r)e.remove();x(l[e],e,t),C(e);continue}for(let e=0;e<t.length;e++)r[e].data!==t[e]&&(r[e].data=t[e])}}return r.prepend(s.before),r.append(s.after),S(),{sync:T,refresh:M,adopt:C,restore(e,t,n){let r=d[e]?.[t];r&&(r.parentNode===n||!r.parentNode)&&w(e,t)},matching:()=>v,release:A,detach(){s.before.remove(),s.after.remove(),A()}}}export{n as attachFindable};
@@ -0,0 +1 @@
1
+ import{A as e,H as t,Z as n,g as r,i,r as a,v as o}from"./DC08tnkE.js";import{t as s}from"./BQeduZqT.js";import{i as c}from"./C7tt0T3n.js";import{a as l,c as u,i as d,n as f,o as p,r as m,t as h}from"./CL4wjam9.js";import{t as g}from"./DneGv1oC.js";import{t as _}from"./DdaCLml8.js";import{d as v}from"./wHdS_QYM.js";import{n as y,t as b}from"./DY75g3-W.js";function x(n,r,i,a){return t({name:n,options:{container:`value`,open:`boolean`,defaultOpen:`boolean`,onOpenChangeComplete:`callback`,dismissible:`boolean`,onDismissAttempt:`callback`,persistentElements:`list`,pendingAnnouncement:`string`,...i},state:t=>({open:t.defaultOpen??!1,mounted:t.open??t.defaultOpen??!1,titled:null,described:!1,trigger:null,payload:void 0,modal:!0,nested:!1,stack:0,pending:null,errors:{},apple:e(),presentation:`dialog`}),sync:e=>({...e.open!==void 0&&{open:e.open},modal:r?!0:e.modal??!0}),api:e=>y(e,r,a?.rules(e.store,e.options)),slots:e=>({...b(e,{name:n}),...a?.slots(e)}),agent:{actions:[`setOpen`]}})}function S(){return s()}function C({overlays:e=g}={}){let t=S(),r=Promise.resolve(),i=0,a=!1,o=()=>n(t)&&!a,s=n=>new Promise(r=>{let i=!1,o=e.mount(`confirm`,{controller:t,payload:n,open:()=>{i||(i=!0,t.open({payload:n}).then(({returnValue:e})=>r(e===`confirm`)))},done:()=>{a=!1,e.unmount(o),i||r(!1)}});a=!0}),c=e=>o()?t.open({payload:e}).then(({returnValue:e})=>e===`confirm`):s(e);return Object.assign(e=>{let t=!i&&o()?c(e):r.then(()=>c(e));return i++,t.then(()=>i--),r=t,t},{controller:t})}const w=/* @__PURE__ */ C(),T=/* @__PURE__ */ x(`alert-dialog`,!0,{onOpenChange:`callback`,onPayloadChange:`callback`,controller:`value`});function E(){return s()}const D=/* @__PURE__ */ x(`dialog`,!1,{onOpenChange:`callback`,onPayloadChange:`callback`,modal:_,closeOnOutsidePress:`boolean`,presentation:`string`,controller:`value`},{rules(){let e;return{preset:c,bind:()=>({onSheet:t=>e=t}),onRefuse:()=>e?.nudge()}},slots:e=>({viewport:v(e)})}),O=[`backdrop`,`content`],k=()=>({container:void 0});function A(e,t){i(e,`trigger`,{tag:`${t}-trigger`,display:`contents`,target:r}),i(e,`close`,{tag:`${t}-close`,display:`contents`,target:r,context:e=>e.hasAttribute(`action`)?{action:o(e)}:{}}),i(e,`shortcut`,{tag:`${t}-shortcut`,context:e=>({shortcut:e.closest(`${t}-trigger`)?.getAttribute(`shortcut`)??void 0})}),i(e,`backdrop`,`${t}-backdrop`),i(e,`content`,{tag:`${t}-content`,kinds:m}),i(e,`title`,{tag:`${t}-title`,display:`block`,render:p}),i(e,`description`,{tag:`${t}-description`,display:`block`,render(e){!e.hasAttribute(`as-child`)&&!e.hasAttribute(`role`)&&e.setAttribute(`role`,`paragraph`)}})}function j(){a(D,{root:{tag:`ui-dialog`,kinds:m,defaults:{modal:!0,dismissible:!0,closeOnOutsidePress:h},properties:[`persistentElements`],options:k,state:l,api:f,portal:u(`ui-dialog-viewport`,O)}}),A(D,`ui-dialog`)}function M(){a(T,{root:{tag:`ui-alert-dialog`,kinds:m,defaults:{dismissible:!0},properties:[`persistentElements`],options:k,state:l,api:f,portal:{...d,slots:O}}}),A(T,`ui-alert-dialog`)}export{S as a,w as i,j as n,C as o,E as r,M as t};
@@ -0,0 +1 @@
1
+ function e(e,t){let{x:n,y:r}=e,{borders:i}=t,a=n>=i.left&&n<t.width-i.right&&r>=i.top&&r<t.height-i.bottom,o=n>=t.clientLeft&&n<t.clientLeft+t.clientWidth&&r>=t.clientTop&&r<t.clientTop+t.clientHeight;return a&&!o}function t(t,n){if(!(n instanceof Element))return!1;if(n===n.ownerDocument.documentElement)return t.clientX>=n.clientWidth||t.clientY>=n.clientHeight;if(n.clientWidth===0&&n.clientHeight===0)return!1;let r=n.getBoundingClientRect(),i=getComputedStyle(n);return e({x:t.clientX-r.left,y:t.clientY-r.top},{width:r.width,height:r.height,clientLeft:n.clientLeft,clientTop:n.clientTop,clientWidth:n.clientWidth,clientHeight:n.clientHeight,borders:{top:parseFloat(i.borderTopWidth)||0,right:parseFloat(i.borderRightWidth)||0,bottom:parseFloat(i.borderBottomWidth)||0,left:parseFloat(i.borderLeftWidth)||0}})}export{t};
@@ -0,0 +1 @@
1
+ function e(e,t,n){return Math.min(Math.max(e,t),n)}function t(e){if(!Number.isFinite(e)||Number.isInteger(e))return 0;let[t,n]=String(e).toLowerCase().split(`e`),r=(t.split(`.`)[1]??``).length;return Math.max(0,r-Number(n??0))}function n(e,t){return Number(e.toFixed(Math.min(t,100)))}function r(e,t){return Number((e/t).toPrecision(15))}function i(e){return Number.isFinite(e.min)?e.min:0}function a(e){return Math.max(t(e.step),t(i(e)))}function o(e){if(!Number.isFinite(e.max)||!(e.step>0))return e.max;let t=i(e);return n(t+Math.floor(r(e.max-t,e.step))*e.step,a(e))}function s(e,t,o=Math.round){if(!(t.step>0))return e;let s=i(t);return n(s+o(r(e-s,t.step))*t.step,a(t))}function c(t,r){return r.step>0?n(e(s(t,r),r.min,o(r)),a(r)):e(t,r.min,r.max)}function l(t,s,c){if(!(c.step>0))return e(t+s,c.min,c.max);let l=i(c),u=r(t-l,c.step);return n(e(l+((Number.isInteger(u)?u:s>0?Math.floor(u):Math.ceil(u))+s)*c.step,c.min,o(c)),a(c))}function u(t,n,r){return n.size===`large`?c(e(t+n.direction*(r.largeStep??r.step*10),r.min,r.max),r):n.size===`small`&&r.smallStep?l(t,n.direction,{...r,step:r.smallStep}):l(t,n.direction,r)}export{n as a,l as c,s as i,t as n,c as o,o as r,u as s,e as t};