@hiai-gg/docsmint 2.2.3 → 2.2.5

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 (259) hide show
  1. package/README.md +10 -8
  2. package/dist/backend/index.js +60080 -40793
  3. package/dist/frontend/CategoryDialog-CtBDBrmR.js +603 -0
  4. package/dist/frontend/ConfirmDialog-B7rUgX7M.js +219 -0
  5. package/dist/frontend/CreateSnapshotDialog-bUKdc0Zb.js +219 -0
  6. package/dist/frontend/DatePicker-CKTDDpVx.js +291 -0
  7. package/dist/frontend/DeleteDialog-D28HGxN7.js +175 -0
  8. package/dist/frontend/FolderNode-CVd22MJS.js +291 -0
  9. package/dist/frontend/FolderTreeSelector-DObSptCD.js +102 -0
  10. package/dist/frontend/HiAiEditor--V0-gKwv.js +3266 -0
  11. package/dist/frontend/HiaiDocsExtensionProvider-B1bCAtpa.js +13 -0
  12. package/dist/frontend/{Icon-CiHcxcpv.js → Icon-DNapb_KY.js} +3 -2
  13. package/dist/frontend/SettingsDialog-CN-PrNpM.js +979 -0
  14. package/dist/frontend/ShareDialog-UO_6vvoT.js +272 -0
  15. package/dist/frontend/Sidebar-CAxrqTAQ.js +2169 -0
  16. package/dist/frontend/TagCreateDialog-BdWu4bPX.js +268 -0
  17. package/dist/frontend/{action_cancel-BdsWzQKU.js → action_cancel-DxbRD-bG.js} +1 -1
  18. package/dist/frontend/{action_close-CVhfLPRQ.js → action_close-Ct6lVumm.js} +1 -1
  19. package/dist/frontend/{action_create-ByaroO1_.js → action_create-DKOlnVyX.js} +1 -1
  20. package/dist/frontend/{action_delete-SRloglWY.js → action_delete-DRb7fBnB.js} +1 -1
  21. package/dist/frontend/{action_go_to-DO1bicF-.js → action_go_to-D0fF5t1d.js} +1 -1
  22. package/dist/frontend/{action_loading-iQ0KsN6i.js → action_loading-YGvDyzYG.js} +1 -1
  23. package/dist/frontend/{action_save-DeqrZQwV.js → action_save-BHYTeFmm.js} +1 -1
  24. package/dist/frontend/api/categories.js +1 -1
  25. package/dist/frontend/api/settings.js +1 -1
  26. package/dist/frontend/api/tags.js +1 -1
  27. package/dist/frontend/app-shell.js +177 -176
  28. package/dist/frontend/{auth-client-Dx7d9Tzo.js → auth-client-DahfoSYo.js} +297 -277
  29. package/dist/frontend/{bundle-mjs-clTO1WW-.js → bundle-mjs-654jE5XN.js} +397 -300
  30. package/dist/frontend/{camera-DsdOPOcD.js → camera-C6JuKKhr.js} +9 -8
  31. package/dist/frontend/{categories-CusvHb5Y.js → categories-CUfKlgrs.js} +1 -1
  32. package/dist/frontend/{categories_update_error-Cn8DBBHv.js → categories_update_error-BrLD-j9s.js} +1 -1
  33. package/dist/frontend/check-B_e1XqT2.js +25 -0
  34. package/dist/frontend/chevron-down-BsnN2mp2.js +25 -0
  35. package/dist/frontend/circle-check-CJH5zxd9.js +29 -0
  36. package/dist/frontend/clock-CU0gCiiM.js +29 -0
  37. package/dist/frontend/collaboration.js +113 -113
  38. package/dist/frontend/components/category-dialog.js +1 -1
  39. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  40. package/dist/frontend/components/delete-dialog.js +1 -1
  41. package/dist/frontend/components/editor/compact-editor.js +5 -4
  42. package/dist/frontend/components/editor/document-editor.js +1 -1
  43. package/dist/frontend/components/editor/document-title.js +3 -2
  44. package/dist/frontend/components/editor/docx-serializer.js +8359 -12358
  45. package/dist/frontend/components/editor/extensions.js +1 -1
  46. package/dist/frontend/components/editor/markdown-toggle.js +33 -32
  47. package/dist/frontend/components/editor/markdown.js +1 -1
  48. package/dist/frontend/components/folder-node.js +1 -1
  49. package/dist/frontend/components/folder-tree-selector.js +1 -1
  50. package/dist/frontend/components/save-as-dialog.js +168 -167
  51. package/dist/frontend/components/settings.js +1 -1
  52. package/dist/frontend/components/share-dialog.js +1 -1
  53. package/dist/frontend/components/sidebar.js +1 -1
  54. package/dist/frontend/components/tag-create-dialog.js +1 -1
  55. package/dist/frontend/components/version-history.js +252 -251
  56. package/dist/frontend/{copy-Bag46YaR.js → copy-DYNRCHgk.js} +9 -8
  57. package/dist/frontend/dashboard.js +1301 -1300
  58. package/dist/frontend/db-yN0Vve_2.js +4296 -0
  59. package/dist/frontend/{dialog-C0Bpok1d.js → dialog-Dqp04jso.js} +11 -10
  60. package/dist/frontend/dist-4xBCgXNT.js +40 -0
  61. package/dist/frontend/{dist-DjId3RKL.js → dist-BaAULhmK.js} +3 -9
  62. package/dist/frontend/dist-C1oIyJLI.js +302 -0
  63. package/dist/frontend/dndzone-CWg1kmdZ.js +1483 -0
  64. package/dist/frontend/{doc_title_label-BOuZzvqv.js → doc_title_label-BPlghiRM.js} +1 -1
  65. package/dist/frontend/{doc_title_placeholder-ZxpdWWEn.js → doc_title_placeholder-D-LfSoC5.js} +1 -1
  66. package/dist/frontend/dropdown-menu-HePwCxoQ.js +1429 -0
  67. package/dist/frontend/{editorExtensions-DbiFj4tn.js → editorExtensions-QKIFSqEG.js} +9 -9
  68. package/dist/frontend/{editor_markdown_placeholder-BztIY9Ci.js → editor_markdown_placeholder-BXRPm7JG.js} +1 -1
  69. package/dist/frontend/{ellipsis-vertical-Oymsv1R4.js → ellipsis-vertical-CR25MyeP.js} +9 -8
  70. package/dist/frontend/{error_dismiss-C651ZdWI.js → error_dismiss-Ckia7GQe.js} +1 -1
  71. package/dist/frontend/{error_generic-BlWqOE-a.js → error_generic-gyQMdET_.js} +1 -1
  72. package/dist/frontend/extension.js +1 -1
  73. package/dist/frontend/{folder-BpmB_sAy.js → folder-BpA690ie.js} +4 -3
  74. package/dist/frontend/{folders_rename-Cxbg5GIw.js → folders_rename-BHa_gSXw.js} +1 -1
  75. package/dist/frontend/frontend.css +1 -1
  76. package/dist/frontend/i18n.js +29 -29
  77. package/dist/frontend/{identity-B7HeOzDJ.js → identity-ndFYB8Nt.js} +1 -1
  78. package/dist/frontend/{input-CbeB9220.js → input-Cv3qF4J3.js} +9 -8
  79. package/dist/frontend/label-DXjefKfF.js +30 -0
  80. package/dist/frontend/{lib-CITdCbKa.js → lib-DJthN0w9.js} +7108 -5196
  81. package/dist/frontend/loader-circle-CvWX1HHL.js +25 -0
  82. package/dist/frontend/{markdown-6E9TWC6V.js → markdown-CksQVQ6a.js} +2 -2
  83. package/dist/frontend/offline/identity.js +1 -1
  84. package/dist/frontend/popper-layer-force-mount-DS--Cvfo.js +3493 -0
  85. package/dist/frontend/rolldown-runtime-DKYsOz5J.js +19 -0
  86. package/dist/frontend/{rotate-ccw-DAUX7np7.js → rotate-ccw-Box7QP5X.js} +9 -8
  87. package/dist/frontend/{runtime-CGUiMzK6.js → runtime-CJv8UGYl.js} +1 -4
  88. package/dist/frontend/{schemas-YXxhj5o8.js → schemas-BYbeR0Ky.js} +11 -11
  89. package/dist/frontend/{scroll_to_top_aria-lJc2RSx_.js → scroll_to_top_aria-CP7_oyCo.js} +1 -1
  90. package/dist/frontend/search.js +650 -649
  91. package/dist/frontend/{search_title-BETwQYJq.js → search_title-C2aOzN_J.js} +1 -1
  92. package/dist/frontend/select-value-DAMTi0zc.js +1473 -0
  93. package/dist/frontend/{settings-DyePuqjp.js → settings-DTsCVJEi.js} +1 -1
  94. package/dist/frontend/{share-context-C2xyVP9M.js → share-context-CtRMIIhL.js} +15 -14
  95. package/dist/frontend/{share_copied-BuAnmpbz.js → share_copied-BHb_9sOo.js} +1 -1
  96. package/dist/frontend/{share_toggle_password-LEYUeHWr.js → share_toggle_password-DjCMq4Eq.js} +1 -1
  97. package/dist/frontend/shared-document.js +49 -48
  98. package/dist/frontend/{sidebar_uncategorized-C5PGOflV.js → sidebar_uncategorized-BJSB_sc9.js} +1 -1
  99. package/dist/frontend/{sort_relevance-DpCVLby_.js → sort_relevance-CXuNTq6L.js} +1 -1
  100. package/dist/frontend/{tag-Wdfe0rKU.js → tag-BPOFgBQw.js} +4 -3
  101. package/dist/frontend/tag-store.svelte-DyqQNx7H.js +28 -0
  102. package/dist/frontend/{tags-DlDVothf.js → tags-DwilrkrM.js} +1 -1
  103. package/dist/frontend/{tags_load_error-BINNpPPV.js → tags_load_error-BOyuQEGc.js} +1 -1
  104. package/dist/frontend/{tags_new-Dw0Uy43-.js → tags_new-CGF3Hi1j.js} +1 -1
  105. package/dist/frontend/textarea-DDdgNvnf.js +23 -0
  106. package/dist/frontend/theme.js +1 -1
  107. package/dist/frontend/{theme.svelte-BiXvrqwh.js → theme.svelte-Dx01qWc3.js} +2 -2
  108. package/dist/frontend/{theme_system-YIfa_2Xt.js → theme_system-Bt9ItDgj.js} +1 -1
  109. package/dist/frontend/utils/dndzone.js +1 -1
  110. package/dist/frontend/{utils-CnAmIMwr.js → utils-BQMesoNf.js} +1 -1
  111. package/dist/frontend/utils-BavN35Bw.js +6 -0
  112. package/dist/frontend/utils.js +1 -1
  113. package/dist/frontend/{version_create_snapshot-D8xjbuCq.js → version_create_snapshot-BvoOuUeh.js} +1 -1
  114. package/dist/frontend/{version_restored_from-DYFFSuQj.js → version_restored_from-BIEEKFbx.js} +1 -1
  115. package/dist/frontend/{version_snapshot_label_placeholder-BhKq1NQ7.js → version_snapshot_label_placeholder-h9r2_0u3.js} +1 -1
  116. package/dist/frontend/{weekday_we-BxbzNVWR.js → weekday_we-DsuVW6rh.js} +1 -1
  117. package/dist/frontend/x-hIpDH7DU.js +25 -0
  118. package/dist/frontend/{yjs-BbwnvxgY.js → yjs--VgxqIlB.js} +607 -628
  119. package/dist/frontend-ssr/api/categories.js +1 -1
  120. package/dist/frontend-ssr/api/settings.js +1 -1
  121. package/dist/frontend-ssr/api/tags.js +1 -1
  122. package/dist/frontend-ssr/app-shell.js +11 -11
  123. package/dist/frontend-ssr/assets/{CategoryDialog-2CCX508O.js → CategoryDialog-DRItbO_9.js} +13 -13
  124. package/dist/frontend-ssr/assets/{ConfirmDialog-Cc6lcY1N.js → ConfirmDialog-B0NXRrel.js} +8 -8
  125. package/dist/frontend-ssr/assets/{CreateSnapshotDialog-BB8fXF9W.js → CreateSnapshotDialog-nj8PjuON.js} +7 -7
  126. package/dist/frontend-ssr/assets/{DatePicker-CfzKzipR.js → DatePicker-CdUKLPtP.js} +8 -8
  127. package/dist/frontend-ssr/assets/{DeleteDialog-DRU4UgOW.js → DeleteDialog-B83NoxAg.js} +3 -3
  128. package/dist/frontend-ssr/assets/{FolderNode-CyOrLJ2Y.js → FolderNode-CSeC3051.js} +10 -10
  129. package/dist/frontend-ssr/assets/{FolderTreeSelector-D0reTdFS.js → FolderTreeSelector-Dh-ViJPU.js} +4 -4
  130. package/dist/frontend-ssr/assets/{HiAiEditor-BQGlGd3z.js → HiAiEditor-DB2PjHm9.js} +41 -41
  131. package/dist/frontend-ssr/assets/{Icon-CrIRbT5O.js → Icon-CBEeswQ2.js} +4 -4
  132. package/dist/frontend-ssr/assets/{SettingsDialog-BpHY3IMb.js → SettingsDialog-kc3O9PXG.js} +21 -21
  133. package/dist/frontend-ssr/assets/{ShareDialog-CY40nWZJ.js → ShareDialog-Dmrj55QP.js} +4 -4
  134. package/dist/frontend-ssr/assets/{Sidebar-dTp4DyW4.js → Sidebar-CDQcIuyv.js} +45 -45
  135. package/dist/frontend-ssr/assets/{TagCreateDialog-C2tpdEuj.js → TagCreateDialog-CP-yYfpQ.js} +11 -11
  136. package/dist/frontend-ssr/assets/{action_cancel-CsBbxW0m.js → action_cancel-B8i5P3wt.js} +1 -1
  137. package/dist/frontend-ssr/assets/{action_close-lFKBqBwg.js → action_close-DPgIB-cY.js} +1 -1
  138. package/dist/frontend-ssr/assets/{action_create-BV4ZOcQW.js → action_create-DAlNPFeN.js} +1 -1
  139. package/dist/frontend-ssr/assets/{action_delete-CNmRhKQP.js → action_delete-C6lsQCtY.js} +1 -1
  140. package/dist/frontend-ssr/assets/{action_go_to-tN5I26xM.js → action_go_to-C6tegi-k.js} +1 -1
  141. package/dist/frontend-ssr/assets/{action_save-YCfMiKb4.js → action_save-BQCej1sh.js} +1 -1
  142. package/dist/frontend-ssr/assets/{auth-client-BnnnJDAb.js → auth-client-CwXGsJIQ.js} +44 -38
  143. package/dist/frontend-ssr/assets/{camera-OYNSMvMd.js → camera-kjjsHmQu.js} +2 -2
  144. package/dist/frontend-ssr/assets/{categories_update_error-Bfx5vtvt.js → categories_update_error-Kq8q_FJp.js} +1 -1
  145. package/dist/frontend-ssr/assets/{chevron-down-DB6YsSbQ.js → chevron-down-DPc-Owbl.js} +2 -2
  146. package/dist/frontend-ssr/assets/{chevron-right-DOt2uY6b.js → chevron-right-C-jY4mqk.js} +2 -2
  147. package/dist/frontend-ssr/assets/{circle-check-DQhTm9YR.js → circle-check-CnueRXrc.js} +2 -2
  148. package/dist/frontend-ssr/assets/{clock-B08dVWtf.js → clock-CoRtIDhT.js} +2 -2
  149. package/dist/frontend-ssr/assets/{copy-2jsznHar.js → copy-CDNZIGVg.js} +2 -2
  150. package/dist/frontend-ssr/assets/{db-BEKLU5Fc.js → db-NhMsSg1f.js} +1 -1
  151. package/dist/frontend-ssr/assets/{dialog-C6U-DqLr.js → dialog-B09MN2S-.js} +9 -9
  152. package/dist/frontend-ssr/assets/{dist-DqXTz_zE.js → dist-D4MAfF0i.js} +13 -13
  153. package/dist/frontend-ssr/assets/{dist-ip9bPdma.js → dist-cDG_u5EF.js} +8 -8
  154. package/dist/frontend-ssr/assets/{dndzone-C7KnICM0.js → dndzone-DyM8UtoT.js} +378 -216
  155. package/dist/frontend-ssr/assets/{doc_title_label-CE_l-Gum.js → doc_title_label-BqCuH3eY.js} +1 -1
  156. package/dist/frontend-ssr/assets/{doc_title_placeholder-7_i7PtG6.js → doc_title_placeholder-C3tGSpRB.js} +1 -1
  157. package/dist/frontend-ssr/assets/dropdown-menu-C9H45F9X.js +1721 -0
  158. package/dist/frontend-ssr/assets/{editor_markdown_placeholder-CAeLJjFT.js → editor_markdown_placeholder-Cxa5uq87.js} +1 -1
  159. package/dist/frontend-ssr/assets/{editor_toolbar_undo-CVCfQIS1.js → editor_toolbar_undo-D-gLz88j.js} +1 -1
  160. package/dist/frontend-ssr/assets/{ellipsis-vertical-IFHt2NM1.js → ellipsis-vertical-oBvMj3Jm.js} +2 -2
  161. package/dist/frontend-ssr/assets/{error_generic-BB80i0Vk.js → error_generic-BSoVZ_4p.js} +1 -1
  162. package/dist/frontend-ssr/assets/{folder-CXa1_bm5.js → folder-Ptjeaody.js} +2 -2
  163. package/dist/frontend-ssr/assets/{folders_rename-ydbfwQlj.js → folders_rename-DBtQcf2R.js} +1 -1
  164. package/dist/frontend-ssr/assets/{identity-DTz1SQwC.js → identity-CigCqYEA.js} +1 -1
  165. package/dist/frontend-ssr/assets/{input-Bxw9sFF0.js → input-Cc45dG_S.js} +2 -2
  166. package/dist/frontend-ssr/assets/{label-CMWedjs6.js → label-C1_J2397.js} +2 -2
  167. package/dist/frontend-ssr/assets/{loader-circle-zbKj9Qb-.js → loader-circle-CK3McH5n.js} +2 -2
  168. package/dist/frontend-ssr/assets/{markdown-BmIhDQp7.js → markdown-WQsa_gay.js} +1 -1
  169. package/dist/frontend-ssr/assets/{popper-layer-force-mount-CSHZsG2E.js → popper-layer-force-mount-CGKwdZaZ.js} +1448 -2402
  170. package/dist/frontend-ssr/assets/{rotate-ccw-B7SaTFWf.js → rotate-ccw-B1lCxJ5d.js} +2 -2
  171. package/dist/frontend-ssr/assets/{runtime-BX6-jTn_.js → runtime-CoxALrm1.js} +2 -28
  172. package/dist/frontend-ssr/assets/{scroll_to_top_aria-CAYSiGHO.js → scroll_to_top_aria-CmLwsPln.js} +1 -1
  173. package/dist/frontend-ssr/assets/{search_title-C7NVXXq3.js → search_title-CZIl0wkq.js} +1 -1
  174. package/dist/frontend-ssr/assets/{search_toggle_filters-Bq_YVD8s.js → search_toggle_filters-BG-CRM9G.js} +1 -1
  175. package/dist/frontend-ssr/assets/{select-value-TgslfiUB.js → select-value-BeUHHkLq.js} +157 -66
  176. package/dist/frontend-ssr/assets/{settings-B1MA_FjO.js → settings-BqyemuQv.js} +1 -1
  177. package/dist/frontend-ssr/assets/{share-context-RVh8AExX.js → share-context-BM1sUnlP.js} +15 -15
  178. package/dist/frontend-ssr/assets/{share_copied-CrwEwkb3.js → share_copied-BVGtm9Ud.js} +1 -1
  179. package/dist/frontend-ssr/assets/{share_toggle_password-Co56z0Ha.js → share_toggle_password-z0gwy0TG.js} +1 -1
  180. package/dist/frontend-ssr/assets/{sidebar_uncategorized-COWdmZ3d.js → sidebar_uncategorized-rpbsgLVr.js} +1 -1
  181. package/dist/frontend-ssr/assets/{tag-BGhtDKpP.js → tag-D_ZqINN3.js} +3 -3
  182. package/dist/frontend-ssr/assets/{tags_load_error-DW4FbHvr.js → tags_load_error-DvhlyMMY.js} +1 -1
  183. package/dist/frontend-ssr/assets/{tags_new-Dr3ByMPZ.js → tags_new-DStxzBII.js} +1 -1
  184. package/dist/frontend-ssr/assets/{textarea-Bz5Tz4rw.js → textarea-S9uzw6je.js} +2 -2
  185. package/dist/frontend-ssr/assets/{theme.svelte-CdHah46l.js → theme.svelte-CqAzqvik.js} +2 -2
  186. package/dist/frontend-ssr/assets/{theme_system-E97FASeq.js → theme_system-DjbsL0RQ.js} +1 -1
  187. package/dist/frontend-ssr/assets/{utils-DF6CmRDX.js → utils-DF93j6z-.js} +1 -1
  188. package/dist/frontend-ssr/assets/{version_create_snapshot-DeeYB7bb.js → version_create_snapshot-SwYsTZ56.js} +1 -1
  189. package/dist/frontend-ssr/assets/{version_restored_from-CTt2LM4A.js → version_restored_from-pYBnudye.js} +1 -1
  190. package/dist/frontend-ssr/assets/{version_snapshot_label_placeholder-BbGD9YuN.js → version_snapshot_label_placeholder-DtDnHip8.js} +1 -1
  191. package/dist/frontend-ssr/assets/{weekday_we-BzGQ-iFc.js → weekday_we-CV1TMROW.js} +1 -1
  192. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  193. package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
  194. package/dist/frontend-ssr/components/delete-dialog.js +1 -1
  195. package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
  196. package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
  197. package/dist/frontend-ssr/components/editor/document-title.js +2 -2
  198. package/dist/frontend-ssr/components/editor/extensions.js +1 -1
  199. package/dist/frontend-ssr/components/editor/markdown-toggle.js +3 -3
  200. package/dist/frontend-ssr/components/editor/markdown.js +1 -1
  201. package/dist/frontend-ssr/components/folder-node.js +1 -1
  202. package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
  203. package/dist/frontend-ssr/components/save-as-dialog.js +10 -10
  204. package/dist/frontend-ssr/components/settings.js +1 -1
  205. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  206. package/dist/frontend-ssr/components/sidebar.js +1 -1
  207. package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
  208. package/dist/frontend-ssr/components/version-history.js +17 -17
  209. package/dist/frontend-ssr/dashboard.js +61 -158
  210. package/dist/frontend-ssr/extension.js +1 -1
  211. package/dist/frontend-ssr/i18n.js +31 -31
  212. package/dist/frontend-ssr/offline/identity.js +1 -1
  213. package/dist/frontend-ssr/search.js +13 -13
  214. package/dist/frontend-ssr/shared-document.js +1 -1
  215. package/dist/frontend-ssr/theme.js +1 -1
  216. package/dist/frontend-ssr/utils/dndzone.js +1 -1
  217. package/dist/lifecycle-runtime.js +17768 -11203
  218. package/dist/mcp-cli.js +1 -1
  219. package/dist/mcp-server.js +1 -1
  220. package/package.json +13 -13
  221. package/packages/cli/src/index.ts +1 -1
  222. package/server.json +2 -2
  223. package/dist/frontend/CategoryDialog-CVJi5PJu.js +0 -602
  224. package/dist/frontend/ConfirmDialog-0JwB8mKN.js +0 -218
  225. package/dist/frontend/CreateSnapshotDialog-BLrtuYs5.js +0 -218
  226. package/dist/frontend/DatePicker-BwSb8TRv.js +0 -326
  227. package/dist/frontend/DeleteDialog-s7Dr6bXg.js +0 -174
  228. package/dist/frontend/FolderNode-Ds0LDfK3.js +0 -290
  229. package/dist/frontend/FolderTreeSelector-BR3lYmPU.js +0 -101
  230. package/dist/frontend/HiAiEditor-BHz46Iqd.js +0 -3078
  231. package/dist/frontend/HiaiDocsExtensionProvider-A2nGddUR.js +0 -12
  232. package/dist/frontend/SettingsDialog-BvS74JZu.js +0 -978
  233. package/dist/frontend/ShareDialog-Bo50h_Oe.js +0 -271
  234. package/dist/frontend/Sidebar-DerKtpWB.js +0 -2168
  235. package/dist/frontend/TagCreateDialog-DhKfsfv3.js +0 -267
  236. package/dist/frontend/check-DiMZRkKS.js +0 -24
  237. package/dist/frontend/chevron-down-CxFrMFDJ.js +0 -24
  238. package/dist/frontend/circle-check-B4F_qgPx.js +0 -28
  239. package/dist/frontend/clock-dcpueRk-.js +0 -28
  240. package/dist/frontend/db-B1ZV452J.js +0 -3792
  241. package/dist/frontend/dist-BlcV_BOY.js +0 -39
  242. package/dist/frontend/dist-Dl9qg10h.js +0 -301
  243. package/dist/frontend/dndzone-B9jA0yIS.js +0 -1372
  244. package/dist/frontend/dropdown-menu-B3nk2aM-.js +0 -482
  245. package/dist/frontend/label-CfBWf3gI.js +0 -29
  246. package/dist/frontend/loader-circle-skKwfRCB.js +0 -24
  247. package/dist/frontend/popper-layer-force-mount-BG0eyrCk.js +0 -4255
  248. package/dist/frontend/rolldown-runtime-CwxnZyOB.js +0 -22
  249. package/dist/frontend/select-value-BY5Hw6Rl.js +0 -1412
  250. package/dist/frontend/tag-store.svelte-C9VYWqLQ.js +0 -28
  251. package/dist/frontend/textarea-D6emvAwM.js +0 -22
  252. package/dist/frontend/utils-DH0uqK40.js +0 -6
  253. package/dist/frontend/x-CBUgPygC.js +0 -24
  254. package/dist/frontend-ssr/assets/dropdown-menu-BS5fcN9l.js +0 -446
  255. package/dist/frontend-ssr/assets/{HiaiDocsExtensionProvider-D6cGL-9s.js → HiaiDocsExtensionProvider-BdfQP817.js} +1 -1
  256. package/dist/frontend-ssr/assets/{categories-bBPviKjl.js → categories-CMmudpEk.js} +1 -1
  257. package/dist/frontend-ssr/assets/{editorExtensions-2O7O2Nhv.js → editorExtensions-DOPTTKUS.js} +2 -2
  258. package/dist/frontend-ssr/assets/{tag-store.svelte-CUUgAaDD.js → tag-store.svelte-Djpf1W0n.js} +1 -1
  259. package/dist/frontend-ssr/assets/{tags-C7u-LBsl.js → tags-GQOEtqET.js} +1 -1
@@ -0,0 +1,1473 @@
1
+ import { t as e } from "./utils-BavN35Bw.js";
2
+ import { A as t, B as n, C as r, E as i, F as a, G as o, H as s, J as c, K as l, M as u, Q as d, S as f, U as p, X as m, Y as h, Z as g, a as _, at as v, c as y, d as b, dt as x, et as S, f as C, i as w, it as T, l as E, n as ee, nt as te, o as ne, ot as re, q as D, r as ie, rt as O, s as ae, st as oe, t as k, tt as A, u as se, w as ce, y as j } from "./popper-layer-force-mount-DS--Cvfo.js";
3
+ import "svelte/internal/init-operations";
4
+ import "svelte/internal/disclose-version";
5
+ import * as M from "svelte/internal/client";
6
+ import { untrack as N } from "svelte";
7
+ import { on as P } from "svelte/events";
8
+ import { SvelteMap as F } from "svelte/reactivity";
9
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/sr-only-styles.js
10
+ var I = {
11
+ position: "absolute",
12
+ width: "1px",
13
+ height: "1px",
14
+ padding: "0",
15
+ margin: "-1px",
16
+ overflow: "hidden",
17
+ clip: "rect(0, 0, 0, 0)",
18
+ whiteSpace: "nowrap",
19
+ borderWidth: "0",
20
+ transform: "translateX(-100%)"
21
+ };
22
+ re(I);
23
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/on-mount-effect.svelte.js
24
+ function L(e) {
25
+ M.user_effect(() => N(() => e()));
26
+ }
27
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/hidden-input.svelte
28
+ var R = /* @__PURE__ */ new Set([
29
+ "$$slots",
30
+ "$$events",
31
+ "$$legacy",
32
+ "value"
33
+ ]), z = M.from_html("<input/>");
34
+ function B(e, t) {
35
+ M.push(t, !0);
36
+ let n = M.prop(t, "value", 15), r = M.rest_props(t, R), i = M.derived(() => v(r, {
37
+ "aria-hidden": "true",
38
+ tabindex: -1,
39
+ style: {
40
+ ...I,
41
+ position: "absolute",
42
+ top: "0",
43
+ left: "0"
44
+ }
45
+ }));
46
+ var a = M.comment(), o = M.first_child(a), s = (e) => {
47
+ var t = z();
48
+ M.attribute_effect(t, () => ({
49
+ ...M.get(i),
50
+ value: n(),
51
+ defaultChecked: M.get(i).checked
52
+ })), M.append(e, t);
53
+ }, c = (e) => {
54
+ var t = z(), r = (e) => n(e.currentTarget.value);
55
+ M.attribute_effect(t, () => ({
56
+ ...M.get(i),
57
+ value: n(),
58
+ defaultValue: n() ?? "",
59
+ oninput: r
60
+ })), M.append(e, t);
61
+ };
62
+ M.if(o, (e) => {
63
+ M.get(i).type === "checkbox" ? e(s) : e(c, -1);
64
+ }), M.append(e, a), M.pop();
65
+ }
66
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/data-typeahead.svelte.js
67
+ var V = class {
68
+ #e;
69
+ #t = M.derived(() => this.#e.candidateValues());
70
+ #n;
71
+ constructor(e) {
72
+ this.#e = e, this.#n = _("", {
73
+ afterMs: 1e3,
74
+ getWindow: this.#e.getWindow
75
+ }), this.handleTypeaheadSearch = this.handleTypeaheadSearch.bind(this), this.resetTypeahead = this.resetTypeahead.bind(this);
76
+ }
77
+ handleTypeaheadSearch(e) {
78
+ if (!this.#e.enabled() || !M.get(this.#t).length) return;
79
+ this.#n.current = this.#n.current + e;
80
+ let t = this.#e.getCurrentItem(), n = M.get(this.#t).find((e) => e === t) ?? "", r = M.get(this.#t).map((e) => e ?? ""), i = se(r, this.#n.current, n), a = M.get(this.#t).find((e) => e === i);
81
+ return a && this.#e.onMatch(a), a;
82
+ }
83
+ resetTypeahead() {
84
+ this.#n.current = "";
85
+ }
86
+ }, H = [
87
+ u,
88
+ p,
89
+ n
90
+ ], U = [
91
+ a,
92
+ s,
93
+ "End"
94
+ ], W = [...H, ...U], G = c({
95
+ component: "select",
96
+ parts: [
97
+ "trigger",
98
+ "content",
99
+ "item",
100
+ "viewport",
101
+ "scroll-up-button",
102
+ "scroll-down-button",
103
+ "group",
104
+ "group-label",
105
+ "separator",
106
+ "arrow",
107
+ "input",
108
+ "content-wrapper",
109
+ "item-text",
110
+ "value"
111
+ ]
112
+ }), K = new T("Select.Root | Combobox.Root");
113
+ new T("Select.Group | Combobox.Group");
114
+ var q = new T("Select.Content | Combobox.Content"), J = class {
115
+ opts;
116
+ #e = M.state(!1);
117
+ get touchedInput() {
118
+ return M.get(this.#e);
119
+ }
120
+ set touchedInput(e) {
121
+ M.set(this.#e, e, !0);
122
+ }
123
+ #t = M.state(null);
124
+ get inputNode() {
125
+ return M.get(this.#t);
126
+ }
127
+ set inputNode(e) {
128
+ M.set(this.#t, e, !0);
129
+ }
130
+ #n = M.state(null);
131
+ get contentNode() {
132
+ return M.get(this.#n);
133
+ }
134
+ set contentNode(e) {
135
+ M.set(this.#n, e, !0);
136
+ }
137
+ contentPresence;
138
+ #r = M.state(null);
139
+ get viewportNode() {
140
+ return M.get(this.#r);
141
+ }
142
+ set viewportNode(e) {
143
+ M.set(this.#r, e, !0);
144
+ }
145
+ #i = M.state(null);
146
+ get triggerNode() {
147
+ return M.get(this.#i);
148
+ }
149
+ set triggerNode(e) {
150
+ M.set(this.#i, e, !0);
151
+ }
152
+ #a = M.state(null);
153
+ get valueNode() {
154
+ return M.get(this.#a);
155
+ }
156
+ set valueNode(e) {
157
+ M.set(this.#a, e, !0);
158
+ }
159
+ #o = M.state("");
160
+ get valueId() {
161
+ return M.get(this.#o);
162
+ }
163
+ set valueId(e) {
164
+ M.set(this.#o, e, !0);
165
+ }
166
+ selectedLabelsByValue = new F();
167
+ #s = M.state(null);
168
+ get highlightedNode() {
169
+ return M.get(this.#s);
170
+ }
171
+ set highlightedNode(e) {
172
+ M.set(this.#s, e, !0);
173
+ }
174
+ #c = M.derived(() => this.highlightedNode ? this.highlightedNode.getAttribute("data-value") : null);
175
+ get highlightedValue() {
176
+ return M.get(this.#c);
177
+ }
178
+ set highlightedValue(e) {
179
+ M.set(this.#c, e);
180
+ }
181
+ #l = M.derived(() => {
182
+ if (this.highlightedNode) return this.highlightedNode.id;
183
+ });
184
+ get highlightedId() {
185
+ return M.get(this.#l);
186
+ }
187
+ set highlightedId(e) {
188
+ M.set(this.#l, e);
189
+ }
190
+ #u = M.derived(() => this.highlightedNode ? this.highlightedNode.getAttribute("data-label") : null);
191
+ get highlightedLabel() {
192
+ return M.get(this.#u);
193
+ }
194
+ set highlightedLabel(e) {
195
+ M.set(this.#u, e);
196
+ }
197
+ #d = M.state(!1);
198
+ get contentIsPositioned() {
199
+ return M.get(this.#d);
200
+ }
201
+ set contentIsPositioned(e) {
202
+ M.set(this.#d, e, !0);
203
+ }
204
+ isUsingKeyboard = !1;
205
+ pressedItem = null;
206
+ isCombobox = !1;
207
+ domContext = new d(() => null);
208
+ constructor(e) {
209
+ this.opts = e, this.isCombobox = e.isCombobox, this.contentPresence = new ce({
210
+ ref: x(() => this.contentNode),
211
+ open: this.opts.open,
212
+ onComplete: () => {
213
+ this.opts.onOpenChangeComplete.current(this.opts.open.current);
214
+ }
215
+ }), M.user_pre_effect(() => {
216
+ this.opts.open.current || (this.setHighlightedNode(null), this.pressedItem = null);
217
+ });
218
+ }
219
+ setHighlightedNode(e, t = !1) {
220
+ this.highlightedNode = e, e && (this.isUsingKeyboard || t) && this.scrollHighlightedNodeIntoView(e);
221
+ }
222
+ scrollHighlightedNodeIntoView(e) {
223
+ let t = this.viewportNode;
224
+ if (!t || !this.contentIsPositioned) return;
225
+ let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
226
+ this.opts.scrollAlignment.current === "center" ? t.scrollTop += n.top + n.height / 2 - (r.top + r.height / 2) : n.top < r.top ? t.scrollTop -= r.top - n.top : n.bottom > r.bottom && (t.scrollTop += n.bottom - r.bottom);
227
+ }
228
+ getCandidateNodes() {
229
+ let e = this.contentNode;
230
+ return e ? Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)) : [];
231
+ }
232
+ setHighlightedToFirstCandidate(e = !1) {
233
+ this.setHighlightedNode(null);
234
+ let t = this.getCandidateNodes();
235
+ if (t.length) {
236
+ if (this.viewportNode) {
237
+ let e = this.viewportNode.getBoundingClientRect();
238
+ t = t.filter((t) => {
239
+ if (!this.viewportNode) return !1;
240
+ let n = t.getBoundingClientRect();
241
+ return n.right <= e.right && n.left >= e.left && n.bottom <= e.bottom && n.top >= e.top;
242
+ });
243
+ }
244
+ this.setHighlightedNode(t[0], e);
245
+ }
246
+ }
247
+ getNodeByValue(e) {
248
+ return this.getCandidateNodes().find((t) => t.dataset.value === e) ?? null;
249
+ }
250
+ getLabelForValue(e) {
251
+ if (e === "") return "";
252
+ let t = this.opts.items.current.find((t) => t.value === e)?.label;
253
+ return t?.trim() ? t : this.selectedLabelsByValue.get(e) ?? e;
254
+ }
255
+ resolveItemLabel(e, t, n) {
256
+ return t?.trim() ? t : n?.textContent?.trim() || e;
257
+ }
258
+ setSelectedLabel(e, t) {
259
+ e === "" || t === e ? this.selectedLabelsByValue.delete(e) : this.selectedLabelsByValue.set(e, t);
260
+ }
261
+ pruneSelectedLabels(e) {
262
+ for (let t of this.selectedLabelsByValue.keys()) e.includes(t) || this.selectedLabelsByValue.delete(t);
263
+ }
264
+ setOpen(e) {
265
+ this.opts.open.current = e;
266
+ }
267
+ toggleOpen() {
268
+ this.opts.open.current = !this.opts.open.current;
269
+ }
270
+ handleOpen() {
271
+ this.setOpen(!0);
272
+ }
273
+ handleClose() {
274
+ this.setHighlightedNode(null), this.setOpen(!1);
275
+ }
276
+ toggleMenu() {
277
+ this.toggleOpen();
278
+ }
279
+ getBitsAttr = (e) => G.getAttr(e, this.isCombobox ? "combobox" : void 0);
280
+ }, le = class extends J {
281
+ opts;
282
+ isMulti = !1;
283
+ #e = M.derived(() => this.opts.value.current !== "");
284
+ get hasValue() {
285
+ return M.get(this.#e);
286
+ }
287
+ set hasValue(e) {
288
+ M.set(this.#e, e);
289
+ }
290
+ #t = M.derived(() => this.opts.items.current.length ? this.opts.items.current.find((e) => e.value === this.opts.value.current)?.label ?? "" : "");
291
+ get currentLabel() {
292
+ return M.get(this.#t);
293
+ }
294
+ set currentLabel(e) {
295
+ M.set(this.#t, e);
296
+ }
297
+ #n = M.derived(() => this.opts.items.current.length ? this.opts.items.current.filter((e) => !e.disabled).map((e) => e.label) : []);
298
+ get candidateLabels() {
299
+ return M.get(this.#n);
300
+ }
301
+ set candidateLabels(e) {
302
+ M.set(this.#n, e);
303
+ }
304
+ #r = M.derived(() => !(this.isMulti || this.opts.items.current.length === 0));
305
+ get dataTypeaheadEnabled() {
306
+ return M.get(this.#r);
307
+ }
308
+ set dataTypeaheadEnabled(e) {
309
+ M.set(this.#r, e);
310
+ }
311
+ constructor(e) {
312
+ super(e), this.opts = e, M.user_effect(() => {
313
+ !this.opts.open.current && this.highlightedNode && this.setHighlightedNode(null);
314
+ }), O(() => this.opts.open.current, () => {
315
+ this.opts.open.current && this.setInitialHighlightedNode();
316
+ }), O(() => this.opts.value.current, (e) => {
317
+ this.pruneSelectedLabels(e === "" ? [] : [e]);
318
+ });
319
+ }
320
+ includesItem(e) {
321
+ return this.opts.value.current === e;
322
+ }
323
+ toggleItem(e, t = e) {
324
+ let n = this.includesItem(e) ? "" : e;
325
+ this.opts.value.current = n, n !== "" && (this.setSelectedLabel(e, t), this.opts.inputValue.current = t);
326
+ }
327
+ setInitialHighlightedNode() {
328
+ S(() => {
329
+ if (this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode)) return;
330
+ let e = this.getNodeByValue(this.opts.value.current);
331
+ e ? this.setHighlightedNode(e, !0) : this.setHighlightedToFirstCandidate(!0);
332
+ });
333
+ }
334
+ }, ue = class extends J {
335
+ opts;
336
+ isMulti = !0;
337
+ #e = M.derived(() => this.opts.value.current.length > 0);
338
+ get hasValue() {
339
+ return M.get(this.#e);
340
+ }
341
+ set hasValue(e) {
342
+ M.set(this.#e, e);
343
+ }
344
+ #t = M.derived(() => new Set(this.opts.value.current));
345
+ constructor(e) {
346
+ super(e), this.opts = e, M.user_effect(() => {
347
+ !this.opts.open.current && this.highlightedNode && this.setHighlightedNode(null);
348
+ }), O(() => this.opts.open.current, () => {
349
+ this.opts.open.current && this.setInitialHighlightedNode();
350
+ }), O(() => this.opts.value.current, (e) => {
351
+ this.pruneSelectedLabels(e);
352
+ });
353
+ }
354
+ includesItem(e) {
355
+ return M.get(this.#t).has(e);
356
+ }
357
+ toggleItem(e, t = e) {
358
+ this.includesItem(e) ? this.opts.value.current = this.opts.value.current.filter((t) => t !== e) : (this.opts.value.current = [...this.opts.value.current, e], this.setSelectedLabel(e, t)), this.opts.inputValue.current = t;
359
+ }
360
+ setInitialHighlightedNode() {
361
+ S(() => {
362
+ if (this.domContext && !(this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode))) {
363
+ if (this.opts.value.current.length) {
364
+ let e = this.getNodeByValue(this.opts.value.current[0]);
365
+ if (e) {
366
+ this.setHighlightedNode(e, !0);
367
+ return;
368
+ }
369
+ }
370
+ this.setHighlightedToFirstCandidate(!0);
371
+ }
372
+ });
373
+ }
374
+ }, de = class {
375
+ static create(e) {
376
+ let { type: t, ...n } = e, r = t === "single" ? new le(n) : new ue(n);
377
+ return K.set(r);
378
+ }
379
+ }, fe = class e {
380
+ static create(t) {
381
+ return new e(t, K.get());
382
+ }
383
+ root;
384
+ opts;
385
+ attachment;
386
+ constructor(e, t) {
387
+ this.root = t, this.opts = e, this.attachment = g(e.ref, (e) => this.root.valueNode = e), this.setValue = this.setValue.bind(this);
388
+ }
389
+ setValue(e) {
390
+ this.root.isMulti && !Array.isArray(e) || !this.root.isMulti && typeof e != "string" || (this.root.opts.value.current = e);
391
+ }
392
+ #e = M.derived(() => {
393
+ if (this.root.isMulti) return {
394
+ selection: {
395
+ type: "multiple",
396
+ selected: this.root.opts.value.current.length > 0 ? this.root.opts.value.current.map((e) => ({
397
+ value: e,
398
+ label: this.root.getLabelForValue(e)
399
+ })) : [],
400
+ setValue: this.setValue
401
+ },
402
+ placeholder: this.opts.placeholder.current ?? null,
403
+ disabled: this.root.opts.disabled.current
404
+ };
405
+ let e = this.root.opts.value.current;
406
+ return {
407
+ selection: {
408
+ type: "single",
409
+ selected: e === "" ? void 0 : {
410
+ value: e,
411
+ label: this.root.getLabelForValue(e)
412
+ },
413
+ setValue: this.setValue
414
+ },
415
+ placeholder: this.opts.placeholder.current ?? null,
416
+ disabled: this.root.opts.disabled.current
417
+ };
418
+ });
419
+ get snippetProps() {
420
+ return M.get(this.#e);
421
+ }
422
+ set snippetProps(e) {
423
+ M.set(this.#e, e);
424
+ }
425
+ #t = M.derived(() => ({
426
+ id: this.opts.id.current,
427
+ "data-placeholder": this.root.hasValue ? void 0 : "",
428
+ "data-select-value": "",
429
+ ...this.attachment
430
+ }));
431
+ get props() {
432
+ return M.get(this.#t);
433
+ }
434
+ set props(e) {
435
+ M.set(this.#t, e);
436
+ }
437
+ }, pe = class e {
438
+ static create(t) {
439
+ return new e(t, K.get());
440
+ }
441
+ opts;
442
+ root;
443
+ attachment;
444
+ #e;
445
+ #t;
446
+ constructor(e, t) {
447
+ this.opts = e, this.root = t, this.attachment = g(e.ref, (e) => this.root.triggerNode = e), this.root.domContext = new d(e.ref), this.#e = new w({
448
+ getCurrentItem: () => this.root.highlightedNode,
449
+ onMatch: (e) => {
450
+ this.root.setHighlightedNode(e);
451
+ },
452
+ getActiveElement: () => this.root.domContext.getActiveElement(),
453
+ getWindow: () => this.root.domContext.getWindow()
454
+ }), this.#t = new V({
455
+ getCurrentItem: () => this.root.isMulti ? "" : this.root.currentLabel,
456
+ onMatch: (e) => {
457
+ if (this.root.isMulti || !this.root.opts.items.current) return;
458
+ let t = this.root.opts.items.current.find((t) => t.label === e);
459
+ t && (this.root.opts.value.current = t.value);
460
+ },
461
+ enabled: () => !this.root.isMulti && this.root.dataTypeaheadEnabled,
462
+ candidateValues: () => this.root.isMulti ? [] : this.root.candidateLabels,
463
+ getWindow: () => this.root.domContext.getWindow()
464
+ }), this.onkeydown = this.onkeydown.bind(this), this.onpointerdown = this.onpointerdown.bind(this), this.onpointerup = this.onpointerup.bind(this), this.onclick = this.onclick.bind(this);
465
+ }
466
+ #n() {
467
+ this.root.opts.open.current = !0, this.#t.resetTypeahead(), this.#e.resetTypeahead();
468
+ }
469
+ #r(e) {
470
+ this.#n();
471
+ }
472
+ #i() {
473
+ if (this.root.opts.disabled.current) return !1;
474
+ let e = this.root.highlightedValue === this.root.opts.value.current;
475
+ return !this.root.opts.allowDeselect.current && e && !this.root.isMulti || (this.root.highlightedValue !== null && this.root.toggleItem(this.root.highlightedValue, this.root.resolveItemLabel(this.root.highlightedValue, this.root.highlightedLabel, this.root.highlightedNode)), !this.root.isMulti && !e) ? (this.root.handleClose(), !0) : !1;
476
+ }
477
+ onkeydown(e) {
478
+ if (this.root.isUsingKeyboard = !0, (e.key === "ArrowUp" || e.key === "ArrowDown") && e.preventDefault(), !this.root.opts.open.current) {
479
+ if (e.key === "Enter" || e.key === " " || e.key === "ArrowDown" || e.key === "ArrowUp") e.preventDefault(), this.root.handleOpen();
480
+ else if (!this.root.isMulti && this.root.dataTypeaheadEnabled) {
481
+ this.#t.handleTypeaheadSearch(e.key);
482
+ return;
483
+ }
484
+ if (this.root.hasValue) return;
485
+ let t = this.root.getCandidateNodes();
486
+ if (!t.length) return;
487
+ if (e.key === "ArrowDown") {
488
+ let e = t[0];
489
+ this.root.setHighlightedNode(e);
490
+ } else if (e.key === "ArrowUp") {
491
+ let e = t[t.length - 1];
492
+ this.root.setHighlightedNode(e);
493
+ }
494
+ return;
495
+ }
496
+ if (e.key === "Tab") {
497
+ this.root.handleClose();
498
+ return;
499
+ }
500
+ if ((e.key === "Enter" || e.key === " " && this.#e.search === "") && !e.isComposing && (e.preventDefault(), this.#i() || e.key === " ")) return;
501
+ if (e.key === "ArrowUp" && e.altKey && this.root.handleClose(), W.includes(e.key)) {
502
+ e.preventDefault();
503
+ let t = this.root.getCandidateNodes(), n = this.root.highlightedNode, r = n ? t.indexOf(n) : -1, i = this.root.opts.loop.current, a;
504
+ if (e.key === "ArrowDown" ? a = b(t, r, i) : e.key === "ArrowUp" ? a = C(t, r, i) : e.key === "PageDown" ? a = E(t, r, 10, i) : e.key === "PageUp" ? a = y(t, r, 10, i) : e.key === "Home" ? a = t[0] : e.key === "End" && (a = t[t.length - 1]), !a) return;
505
+ this.root.setHighlightedNode(a);
506
+ return;
507
+ }
508
+ let t = e.ctrlKey || e.altKey || e.metaKey, n = e.key.length === 1, r = e.key === " ", i = this.root.getCandidateNodes();
509
+ if (e.key !== "Tab") {
510
+ if (!t && (n || r)) {
511
+ let t = this.#e.handleTypeaheadSearch(e.key, i);
512
+ r && (e.preventDefault(), t || this.#i());
513
+ } else this.root.highlightedNode || this.root.setHighlightedToFirstCandidate();
514
+ }
515
+ }
516
+ onclick(e) {
517
+ e.currentTarget.focus(), this.root.opts.disabled.current || e.detail !== 0 || (this.root.opts.open.current ? this.root.handleClose() : this.#n(), e.preventDefault());
518
+ }
519
+ onpointerdown(e) {
520
+ if (this.root.opts.disabled.current || i(this.opts.ref.current)) return;
521
+ if (e.pointerType === "touch") return e.preventDefault();
522
+ let t = e.target;
523
+ t?.hasPointerCapture(e.pointerId) && t?.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && (this.root.opts.open.current === !1 ? this.#r(e) : this.root.handleClose());
524
+ }
525
+ onpointerup(e) {
526
+ this.root.opts.disabled.current || i(this.opts.ref.current) || (e.preventDefault(), e.pointerType === "touch" && (this.root.opts.open.current === !1 ? this.#r(e) : this.root.handleClose()));
527
+ }
528
+ #a = M.derived(() => ({
529
+ id: this.opts.id.current,
530
+ role: "combobox",
531
+ disabled: this.root.opts.disabled.current ? !0 : void 0,
532
+ "aria-haspopup": "listbox",
533
+ "aria-expanded": l(this.root.opts.open.current),
534
+ "aria-controls": this.root.contentNode?.id || void 0,
535
+ "aria-activedescendant": this.root.highlightedId,
536
+ "data-state": h(this.root.opts.open.current),
537
+ "data-disabled": o(this.root.opts.disabled.current),
538
+ "data-placeholder": this.root.hasValue ? void 0 : "",
539
+ [this.root.getBitsAttr("trigger")]: "",
540
+ onpointerdown: this.onpointerdown,
541
+ onkeydown: this.onkeydown,
542
+ onclick: this.onclick,
543
+ onpointerup: this.onpointerup,
544
+ ...this.attachment
545
+ }));
546
+ get props() {
547
+ return M.get(this.#a);
548
+ }
549
+ set props(e) {
550
+ M.set(this.#a, e);
551
+ }
552
+ }, me = class e {
553
+ static create(t) {
554
+ return q.set(new e(t, K.get()));
555
+ }
556
+ opts;
557
+ root;
558
+ attachment;
559
+ #e = M.state(!1);
560
+ get isPositioned() {
561
+ return M.get(this.#e);
562
+ }
563
+ set isPositioned(e) {
564
+ M.set(this.#e, e, !0);
565
+ }
566
+ userHasScrolled = !1;
567
+ domContext;
568
+ constructor(e, t) {
569
+ this.opts = e, this.root = t, this.attachment = g(e.ref, (e) => this.root.contentNode = e), this.domContext = new d(this.opts.ref), this.root.domContext === null && (this.root.domContext = this.domContext), A(() => {
570
+ this.root.contentNode = null, this.root.contentIsPositioned = !1, this.isPositioned = !1;
571
+ }), O(() => this.root.opts.open.current, () => {
572
+ this.root.opts.open.current || (this.root.contentIsPositioned = !1, this.isPositioned = !1, this.userHasScrolled = !1);
573
+ }), O([() => this.isPositioned, () => this.root.highlightedNode], () => {
574
+ this.isPositioned && this.root.highlightedNode && (this.root.isUsingKeyboard && (this.userHasScrolled = !1), this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode));
575
+ }), O([() => this.isPositioned, () => this.root.viewportNode], () => {
576
+ let e = this.root.viewportNode;
577
+ if (!this.isPositioned || !e) return;
578
+ let t = () => {
579
+ this.userHasScrolled = !0;
580
+ }, n = new (this.domContext.getWindow()).ResizeObserver(() => {
581
+ !this.userHasScrolled && this.root.highlightedNode && this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode);
582
+ });
583
+ return n.observe(e), oe(P(e, "wheel", t, { passive: !0 }), P(e, "touchmove", t, { passive: !0 }), () => n.disconnect());
584
+ }), this.onpointermove = this.onpointermove.bind(this);
585
+ }
586
+ onpointermove(e) {
587
+ this.root.isUsingKeyboard = !1;
588
+ }
589
+ onpointerdowncapture = () => {
590
+ this.root.pressedItem = null;
591
+ };
592
+ #t = M.derived(() => ne(this.root.isCombobox ? "combobox" : "select"));
593
+ onInteractOutside = (e) => {
594
+ j(e, this.root.triggerNode) || j(e, this.root.inputNode) ? e.preventDefault() : (this.opts.onInteractOutside.current(e), e.defaultPrevented || this.root.handleClose());
595
+ };
596
+ onEscapeKeydown = (e) => {
597
+ this.opts.onEscapeKeydown.current(e), e.defaultPrevented || this.root.handleClose();
598
+ };
599
+ onOpenAutoFocus = (e) => {
600
+ e.preventDefault();
601
+ };
602
+ onCloseAutoFocus = (e) => {
603
+ e.preventDefault();
604
+ };
605
+ get shouldRender() {
606
+ return this.root.contentPresence.shouldRender;
607
+ }
608
+ #n = M.derived(() => ({ open: this.root.opts.open.current }));
609
+ get snippetProps() {
610
+ return M.get(this.#n);
611
+ }
612
+ set snippetProps(e) {
613
+ M.set(this.#n, e);
614
+ }
615
+ #r = M.derived(() => ({
616
+ id: this.opts.id.current,
617
+ role: "listbox",
618
+ "aria-multiselectable": this.root.isMulti ? "true" : void 0,
619
+ "data-state": h(this.root.opts.open.current),
620
+ ...m(this.root.contentPresence.transitionStatus),
621
+ [this.root.getBitsAttr("content")]: "",
622
+ style: {
623
+ display: "flex",
624
+ flexDirection: "column",
625
+ outline: "none",
626
+ boxSizing: "border-box",
627
+ pointerEvents: "auto",
628
+ ...M.get(this.#t)
629
+ },
630
+ onpointermove: this.onpointermove,
631
+ onpointerdowncapture: this.onpointerdowncapture,
632
+ ...this.attachment
633
+ }));
634
+ get props() {
635
+ return M.get(this.#r);
636
+ }
637
+ set props(e) {
638
+ M.set(this.#r, e);
639
+ }
640
+ popperProps = {
641
+ onInteractOutside: this.onInteractOutside,
642
+ onEscapeKeydown: this.onEscapeKeydown,
643
+ onOpenAutoFocus: this.onOpenAutoFocus,
644
+ onCloseAutoFocus: this.onCloseAutoFocus,
645
+ trapFocus: !1,
646
+ loop: !1,
647
+ onPlaced: () => {
648
+ this.root.opts.open.current && (this.root.contentIsPositioned = !0, this.isPositioned = !0);
649
+ }
650
+ };
651
+ }, he = class e {
652
+ static create(t) {
653
+ return new e(t, K.get());
654
+ }
655
+ opts;
656
+ root;
657
+ attachment;
658
+ #e = M.derived(() => this.root.opts.disabled.current || this.opts.disabled.current);
659
+ get isDisabled() {
660
+ return M.get(this.#e);
661
+ }
662
+ set isDisabled(e) {
663
+ M.set(this.#e, e);
664
+ }
665
+ #t = M.derived(() => this.root.includesItem(this.opts.value.current));
666
+ get isSelected() {
667
+ return M.get(this.#t);
668
+ }
669
+ set isSelected(e) {
670
+ M.set(this.#t, e);
671
+ }
672
+ #n = M.derived(() => this.root.highlightedValue === this.opts.value.current);
673
+ get isHighlighted() {
674
+ return M.get(this.#n);
675
+ }
676
+ set isHighlighted(e) {
677
+ M.set(this.#n, e);
678
+ }
679
+ #r = M.derived(() => this.isHighlighted && !this.isDisabled);
680
+ prevHighlighted = new te(() => this.isHighlighted);
681
+ #i = M.state(!1);
682
+ get mounted() {
683
+ return M.get(this.#i);
684
+ }
685
+ set mounted(e) {
686
+ M.set(this.#i, e, !0);
687
+ }
688
+ #a;
689
+ constructor(e, t) {
690
+ this.opts = e, this.root = t, this.attachment = g(e.ref), O([() => this.isHighlighted, () => this.prevHighlighted.current], () => {
691
+ this.isHighlighted ? this.opts.onHighlight.current() : this.prevHighlighted.current && this.opts.onUnhighlight.current();
692
+ }), O(() => this.mounted, () => {
693
+ this.mounted && this.root.setInitialHighlightedNode();
694
+ }), O([
695
+ () => this.isSelected,
696
+ () => this.mounted,
697
+ () => this.opts.value.current,
698
+ () => this.opts.label.current
699
+ ], ([e, t, n]) => {
700
+ e && t && this.root.setSelectedLabel(n, this.#o());
701
+ }), this.onpointerdown = this.onpointerdown.bind(this), this.onpointerup = this.onpointerup.bind(this), this.onpointermove = this.onpointermove.bind(this);
702
+ }
703
+ #o() {
704
+ return this.root.resolveItemLabel(this.opts.value.current, this.opts.label.current, this.opts.ref.current);
705
+ }
706
+ handleSelect() {
707
+ if (this.isDisabled) return;
708
+ let e = this.opts.value.current === this.root.opts.value.current;
709
+ !this.root.opts.allowDeselect.current && e && !this.root.isMulti ? this.root.handleClose() : (this.root.toggleItem(this.opts.value.current, this.#o()), !this.root.isMulti && !e && this.root.handleClose());
710
+ }
711
+ #s = M.derived(() => ({
712
+ selected: this.isSelected,
713
+ highlighted: this.isHighlighted
714
+ }));
715
+ get snippetProps() {
716
+ return M.get(this.#s);
717
+ }
718
+ set snippetProps(e) {
719
+ M.set(this.#s, e);
720
+ }
721
+ onpointerdown(e) {
722
+ e.preventDefault(), this.root.pressedItem = {
723
+ item: this,
724
+ x: e.clientX,
725
+ y: e.clientY
726
+ };
727
+ }
728
+ onpointerup(e) {
729
+ if (this.#a?.(), e.defaultPrevented || !this.opts.ref.current) return;
730
+ let n = this.root.pressedItem;
731
+ this.root.pressedItem = null, n && n.item !== this && Math.hypot(e.clientX - n.x, e.clientY - n.y) < 4 ? (e.preventDefault(), n.item.handleSelect()) : e.pointerType === "touch" && !t ? this.#a = P(this.opts.ref.current, "click", () => {
732
+ this.handleSelect(), this.root.setHighlightedNode(this.opts.ref.current);
733
+ }, { once: !0 }) : (e.preventDefault(), this.handleSelect(), e.pointerType === "touch" && this.root.setHighlightedNode(this.opts.ref.current));
734
+ }
735
+ onpointermove(e) {
736
+ e.pointerType !== "touch" && this.root.highlightedNode !== this.opts.ref.current && this.root.setHighlightedNode(this.opts.ref.current);
737
+ }
738
+ #c = M.derived(() => ({
739
+ id: this.opts.id.current,
740
+ role: "option",
741
+ "aria-selected": l(this.isSelected),
742
+ "data-value": this.opts.value.current,
743
+ "data-disabled": o(this.isDisabled),
744
+ "data-highlighted": o(M.get(this.#r)),
745
+ "data-selected": o(this.isSelected),
746
+ "data-label": this.opts.label.current,
747
+ [this.root.getBitsAttr("item")]: "",
748
+ onpointermove: this.onpointermove,
749
+ onpointerdown: this.onpointerdown,
750
+ onpointerup: this.onpointerup,
751
+ ...this.attachment
752
+ }));
753
+ get props() {
754
+ return M.get(this.#c);
755
+ }
756
+ set props(e) {
757
+ M.set(this.#c, e);
758
+ }
759
+ }, Y = class e {
760
+ static create(t) {
761
+ return new e(t, K.get());
762
+ }
763
+ opts;
764
+ root;
765
+ #e = M.derived(() => this.root.opts.name.current !== "");
766
+ get shouldRender() {
767
+ return M.get(this.#e);
768
+ }
769
+ set shouldRender(e) {
770
+ M.set(this.#e, e);
771
+ }
772
+ constructor(e, t) {
773
+ this.opts = e, this.root = t, this.onfocus = this.onfocus.bind(this);
774
+ }
775
+ onfocus(e) {
776
+ e.preventDefault(), this.root.isCombobox ? this.root.inputNode?.focus() : this.root.triggerNode?.focus();
777
+ }
778
+ #t = M.derived(() => ({
779
+ disabled: D(this.root.opts.disabled.current),
780
+ required: D(this.root.opts.required.current),
781
+ name: this.root.opts.name.current,
782
+ value: this.opts.value.current,
783
+ onfocus: this.onfocus
784
+ }));
785
+ get props() {
786
+ return M.get(this.#t);
787
+ }
788
+ set props(e) {
789
+ M.set(this.#t, e);
790
+ }
791
+ }, ge = class e {
792
+ static create(t) {
793
+ return new e(t, q.get());
794
+ }
795
+ opts;
796
+ content;
797
+ root;
798
+ attachment;
799
+ #e = M.state(0);
800
+ get prevScrollTop() {
801
+ return M.get(this.#e);
802
+ }
803
+ set prevScrollTop(e) {
804
+ M.set(this.#e, e, !0);
805
+ }
806
+ constructor(e, t) {
807
+ this.opts = e, this.content = t, this.root = t.root, this.attachment = g(e.ref, (e) => {
808
+ this.root.viewportNode = e;
809
+ });
810
+ }
811
+ #t = M.derived(() => ({
812
+ id: this.opts.id.current,
813
+ role: "presentation",
814
+ [this.root.getBitsAttr("viewport")]: "",
815
+ style: {
816
+ position: "relative",
817
+ flex: 1,
818
+ overflow: "auto"
819
+ },
820
+ ...this.attachment
821
+ }));
822
+ get props() {
823
+ return M.get(this.#t);
824
+ }
825
+ set props(e) {
826
+ M.set(this.#t, e);
827
+ }
828
+ };
829
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-hidden-input.svelte
830
+ function X(e, t) {
831
+ M.push(t, !0);
832
+ let n = M.prop(t, "value", 15), r = Y.create({ value: x(() => n()) });
833
+ var i = M.comment(), a = M.first_child(i), o = (e) => {
834
+ B(e, M.spread_props(() => r.props, {
835
+ get autocomplete() {
836
+ return t.autocomplete;
837
+ },
838
+ get value() {
839
+ return n();
840
+ },
841
+ set value(e) {
842
+ n(e);
843
+ }
844
+ }));
845
+ };
846
+ M.if(a, (e) => {
847
+ r.shouldRender && e(o);
848
+ }), M.append(e, i), M.pop();
849
+ }
850
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-content.svelte
851
+ var _e = /* @__PURE__ */ new Set([
852
+ "$$slots",
853
+ "$$events",
854
+ "$$legacy",
855
+ "id",
856
+ "ref",
857
+ "forceMount",
858
+ "side",
859
+ "onInteractOutside",
860
+ "onEscapeKeydown",
861
+ "children",
862
+ "child",
863
+ "preventScroll",
864
+ "style"
865
+ ]), Z = M.from_html("<div><div><!></div></div>");
866
+ function ve(e, t) {
867
+ let n = M.props_id();
868
+ M.push(t, !0);
869
+ let i = M.prop(t, "id", 19, () => f(n)), a = M.prop(t, "ref", 15, null), o = M.prop(t, "forceMount", 3, !1), s = M.prop(t, "side", 3, "bottom"), c = M.prop(t, "onInteractOutside", 3, r), l = M.prop(t, "onEscapeKeydown", 3, r), u = M.prop(t, "preventScroll", 3, !1), d = M.rest_props(t, _e), p = me.create({
870
+ id: x(() => i()),
871
+ ref: x(() => a(), (e) => a(e)),
872
+ onInteractOutside: x(() => c()),
873
+ onEscapeKeydown: x(() => l())
874
+ }), m = M.derived(() => v(d, p.props));
875
+ var h = M.comment(), g = M.first_child(h), _ = (e) => {
876
+ k(e, M.spread_props(() => M.get(m), () => p.popperProps, {
877
+ get ref() {
878
+ return p.opts.ref;
879
+ },
880
+ get side() {
881
+ return s();
882
+ },
883
+ get enabled() {
884
+ return p.root.opts.open.current;
885
+ },
886
+ get id() {
887
+ return i();
888
+ },
889
+ get preventScroll() {
890
+ return u();
891
+ },
892
+ forceMount: !0,
893
+ get shouldRender() {
894
+ return p.shouldRender;
895
+ },
896
+ popper: (e, n) => {
897
+ let r = () => (n?.()).props, i = () => (n?.()).wrapperProps, a = M.derived(() => v(r(), { style: p.props.style }, { style: t.style }));
898
+ var o = M.comment(), s = M.first_child(o), c = (e) => {
899
+ var n = M.comment(), r = M.first_child(n);
900
+ {
901
+ let e = M.derived(() => ({
902
+ props: M.get(a),
903
+ wrapperProps: i(),
904
+ ...p.snippetProps
905
+ }));
906
+ M.snippet(r, () => t.child, () => M.get(e));
907
+ }
908
+ M.append(e, n);
909
+ }, l = (e) => {
910
+ var n = Z();
911
+ M.attribute_effect(n, () => ({ ...i() }));
912
+ var r = M.child(n);
913
+ M.attribute_effect(r, () => ({ ...M.get(a) }));
914
+ var o = M.child(r);
915
+ M.snippet(o, () => t.children ?? M.noop), M.reset(r), M.reset(n), M.append(e, n);
916
+ };
917
+ M.if(s, (e) => {
918
+ t.child ? e(c) : e(l, -1);
919
+ }), M.append(e, o);
920
+ },
921
+ $$slots: { popper: !0 }
922
+ }));
923
+ }, y = (e) => {
924
+ ee(e, M.spread_props(() => M.get(m), () => p.popperProps, {
925
+ get ref() {
926
+ return p.opts.ref;
927
+ },
928
+ get side() {
929
+ return s();
930
+ },
931
+ get open() {
932
+ return p.root.opts.open.current;
933
+ },
934
+ get id() {
935
+ return i();
936
+ },
937
+ get preventScroll() {
938
+ return u();
939
+ },
940
+ forceMount: !1,
941
+ get shouldRender() {
942
+ return p.shouldRender;
943
+ },
944
+ popper: (e, n) => {
945
+ let r = () => (n?.()).props, i = () => (n?.()).wrapperProps, a = M.derived(() => v(r(), { style: p.props.style }, { style: t.style }));
946
+ var o = M.comment(), s = M.first_child(o), c = (e) => {
947
+ var n = M.comment(), r = M.first_child(n);
948
+ {
949
+ let e = M.derived(() => ({
950
+ props: M.get(a),
951
+ wrapperProps: i(),
952
+ ...p.snippetProps
953
+ }));
954
+ M.snippet(r, () => t.child, () => M.get(e));
955
+ }
956
+ M.append(e, n);
957
+ }, l = (e) => {
958
+ var n = Z();
959
+ M.attribute_effect(n, () => ({ ...i() }));
960
+ var r = M.child(n);
961
+ M.attribute_effect(r, () => ({ ...M.get(a) }));
962
+ var o = M.child(r);
963
+ M.snippet(o, () => t.children ?? M.noop), M.reset(r), M.reset(n), M.append(e, n);
964
+ };
965
+ M.if(s, (e) => {
966
+ t.child ? e(c) : e(l, -1);
967
+ }), M.append(e, o);
968
+ },
969
+ $$slots: { popper: !0 }
970
+ }));
971
+ };
972
+ M.if(g, (e) => {
973
+ o() ? e(_) : o() || e(y, 1);
974
+ }), M.append(e, h), M.pop();
975
+ }
976
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/mounted.svelte
977
+ function ye(e, t) {
978
+ M.push(t, !0);
979
+ let n = M.prop(t, "mounted", 15, !1), i = M.prop(t, "onMountedChange", 3, r);
980
+ L(() => (n(!0), i()(!0), () => {
981
+ n(!1), i()(!1);
982
+ })), M.pop();
983
+ }
984
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-item.svelte
985
+ var be = /* @__PURE__ */ new Set([
986
+ "$$slots",
987
+ "$$events",
988
+ "$$legacy",
989
+ "id",
990
+ "ref",
991
+ "value",
992
+ "label",
993
+ "disabled",
994
+ "children",
995
+ "child",
996
+ "onHighlight",
997
+ "onUnhighlight"
998
+ ]), xe = M.from_html("<div><!></div>"), Se = M.from_html("<!> <!>", 1);
999
+ function Ce(e, t) {
1000
+ let n = M.props_id();
1001
+ M.push(t, !0);
1002
+ let i = M.prop(t, "id", 19, () => f(n)), a = M.prop(t, "ref", 15, null), o = M.prop(t, "label", 19, () => t.value), s = M.prop(t, "disabled", 3, !1), c = M.prop(t, "onHighlight", 3, r), l = M.prop(t, "onUnhighlight", 3, r), u = M.rest_props(t, be), d = he.create({
1003
+ id: x(() => i()),
1004
+ ref: x(() => a(), (e) => a(e)),
1005
+ value: x(() => t.value),
1006
+ disabled: x(() => s()),
1007
+ label: x(() => o()),
1008
+ onHighlight: x(() => c()),
1009
+ onUnhighlight: x(() => l())
1010
+ }), p = M.derived(() => v(u, d.props));
1011
+ var m = Se(), h = M.first_child(m), g = (e) => {
1012
+ var n = M.comment(), r = M.first_child(n);
1013
+ {
1014
+ let e = M.derived(() => ({
1015
+ props: M.get(p),
1016
+ ...d.snippetProps
1017
+ }));
1018
+ M.snippet(r, () => t.child, () => M.get(e));
1019
+ }
1020
+ M.append(e, n);
1021
+ }, _ = (e) => {
1022
+ var n = xe();
1023
+ M.attribute_effect(n, () => ({ ...M.get(p) }));
1024
+ var r = M.child(n);
1025
+ M.snippet(r, () => t.children ?? M.noop, () => d.snippetProps), M.reset(n), M.append(e, n);
1026
+ };
1027
+ M.if(h, (e) => {
1028
+ t.child ? e(g) : e(_, -1);
1029
+ }), ye(M.sibling(h, 2), {
1030
+ get mounted() {
1031
+ return d.mounted;
1032
+ },
1033
+ set mounted(e) {
1034
+ d.mounted = e;
1035
+ }
1036
+ }), M.append(e, m), M.pop();
1037
+ }
1038
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-viewport.svelte
1039
+ var we = /* @__PURE__ */ new Set([
1040
+ "$$slots",
1041
+ "$$events",
1042
+ "$$legacy",
1043
+ "id",
1044
+ "ref",
1045
+ "children",
1046
+ "child"
1047
+ ]), Te = M.from_html("<div><!></div>");
1048
+ function Ee(e, t) {
1049
+ let n = M.props_id();
1050
+ M.push(t, !0);
1051
+ let r = M.prop(t, "id", 19, () => f(n)), i = M.prop(t, "ref", 15, null), a = M.rest_props(t, we), o = ge.create({
1052
+ id: x(() => r()),
1053
+ ref: x(() => i(), (e) => i(e))
1054
+ }), s = M.derived(() => v(a, o.props));
1055
+ var c = M.comment(), l = M.first_child(c), u = (e) => {
1056
+ var n = M.comment(), r = M.first_child(n);
1057
+ M.snippet(r, () => t.child, () => ({ props: M.get(s) })), M.append(e, n);
1058
+ }, d = (e) => {
1059
+ var n = Te();
1060
+ M.attribute_effect(n, () => ({ ...M.get(s) }));
1061
+ var r = M.child(n);
1062
+ M.snippet(r, () => t.children ?? M.noop), M.reset(n), M.append(e, n);
1063
+ };
1064
+ M.if(l, (e) => {
1065
+ t.child ? e(u) : e(d, -1);
1066
+ }), M.append(e, c), M.pop();
1067
+ }
1068
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select.svelte
1069
+ var De = M.from_html("<!> <!>", 1);
1070
+ function Oe(e, t) {
1071
+ M.push(t, !0);
1072
+ let n = M.prop(t, "value", 15), i = M.prop(t, "onValueChange", 3, r), a = M.prop(t, "name", 3, ""), o = M.prop(t, "disabled", 3, !1), s = M.prop(t, "open", 15, !1), c = M.prop(t, "onOpenChange", 3, r), l = M.prop(t, "onOpenChangeComplete", 3, r), u = M.prop(t, "loop", 3, !1), d = M.prop(t, "scrollAlignment", 3, "nearest"), f = M.prop(t, "required", 3, !1), p = M.prop(t, "items", 19, () => []), m = M.prop(t, "allowDeselect", 3, !1);
1073
+ function h() {
1074
+ n() === void 0 && n(t.type === "single" ? "" : []);
1075
+ }
1076
+ h(), O.pre(() => n(), () => {
1077
+ h();
1078
+ });
1079
+ let g = M.state(""), _ = de.create({
1080
+ type: N(() => t.type),
1081
+ value: x(() => n(), (e) => {
1082
+ n(e), i()(e);
1083
+ }),
1084
+ disabled: x(() => o()),
1085
+ required: x(() => f()),
1086
+ open: x(() => s(), (e) => {
1087
+ s(e), c()(e);
1088
+ }),
1089
+ loop: x(() => u()),
1090
+ scrollAlignment: x(() => d()),
1091
+ name: x(() => a()),
1092
+ isCombobox: !1,
1093
+ items: x(() => p()),
1094
+ allowDeselect: x(() => m()),
1095
+ inputValue: x(() => M.get(g), (e) => M.set(g, e, !0)),
1096
+ onOpenChangeComplete: x(() => l())
1097
+ });
1098
+ var v = De(), y = M.first_child(v);
1099
+ ae(y, {
1100
+ children: (e, n) => {
1101
+ var r = M.comment(), i = M.first_child(r);
1102
+ M.snippet(i, () => t.children ?? M.noop), M.append(e, r);
1103
+ },
1104
+ $$slots: { default: !0 }
1105
+ });
1106
+ var b = M.sibling(y, 2), S = (e) => {
1107
+ var n = M.comment(), r = M.first_child(n), i = (e) => {
1108
+ X(e, { get autocomplete() {
1109
+ return t.autocomplete;
1110
+ } });
1111
+ }, a = (e) => {
1112
+ var n = M.comment(), r = M.first_child(n);
1113
+ M.each(r, 16, () => _.opts.value.current, (e) => e, (e, n) => {
1114
+ X(e, {
1115
+ get value() {
1116
+ return n;
1117
+ },
1118
+ get autocomplete() {
1119
+ return t.autocomplete;
1120
+ }
1121
+ });
1122
+ }), M.append(e, n);
1123
+ };
1124
+ M.if(r, (e) => {
1125
+ _.opts.value.current.length === 0 ? e(i) : e(a, -1);
1126
+ }), M.append(e, n);
1127
+ }, C = M.derived(() => Array.isArray(_.opts.value.current)), w = (e) => {
1128
+ X(e, {
1129
+ get autocomplete() {
1130
+ return t.autocomplete;
1131
+ },
1132
+ get value() {
1133
+ return _.opts.value.current;
1134
+ },
1135
+ set value(e) {
1136
+ _.opts.value.current = e;
1137
+ }
1138
+ });
1139
+ };
1140
+ M.if(b, (e) => {
1141
+ M.get(C) ? e(S) : e(w, -1);
1142
+ }), M.append(e, v), M.pop();
1143
+ }
1144
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-value.svelte
1145
+ var ke = /* @__PURE__ */ new Set([
1146
+ "$$slots",
1147
+ "$$events",
1148
+ "$$legacy",
1149
+ "ref",
1150
+ "id",
1151
+ "placeholder",
1152
+ "child",
1153
+ "children"
1154
+ ]), Ae = M.from_html("<span><!></span>");
1155
+ function Q(e, t) {
1156
+ let n = M.props_id();
1157
+ M.push(t, !0);
1158
+ let r = M.prop(t, "ref", 15, null), i = M.prop(t, "id", 19, () => f(n)), a = M.rest_props(t, ke), o = fe.create({
1159
+ id: x(() => i()),
1160
+ ref: x(() => r(), (e) => r(e)),
1161
+ placeholder: x(() => t.placeholder)
1162
+ }), s = M.derived(() => v(a, o.props));
1163
+ var c = M.comment(), l = M.first_child(c), u = (e) => {
1164
+ var n = M.comment(), r = M.first_child(n);
1165
+ {
1166
+ let e = M.derived(() => ({
1167
+ props: M.get(s),
1168
+ ...o.snippetProps
1169
+ }));
1170
+ M.snippet(r, () => t.child, () => M.get(e));
1171
+ }
1172
+ M.append(e, n);
1173
+ }, d = (e) => {
1174
+ var n = Ae();
1175
+ M.attribute_effect(n, () => ({ ...M.get(s) }));
1176
+ var r = M.child(n), i = (e) => {
1177
+ var n = M.comment(), r = M.first_child(n);
1178
+ M.snippet(r, () => t.children ?? M.noop, () => o.snippetProps), M.append(e, n);
1179
+ }, a = (e) => {
1180
+ var n = M.text();
1181
+ M.template_effect(() => M.set_text(n, o.snippetProps.selection.selected?.label ?? t.placeholder)), M.append(e, n);
1182
+ }, c = (e) => {
1183
+ var n = M.text();
1184
+ M.template_effect((e) => M.set_text(n, e), [() => o.snippetProps.selection.selected.length > 0 ? o.snippetProps.selection.selected.map((e) => e.label).join(", ") : t.placeholder]), M.append(e, n);
1185
+ }, l = (e) => {
1186
+ var n = M.text();
1187
+ M.template_effect(() => M.set_text(n, t.placeholder)), M.append(e, n);
1188
+ };
1189
+ M.if(r, (e) => {
1190
+ t.children ? e(i) : o.snippetProps.selection.type === "single" ? e(a, 1) : o.snippetProps.selection.type === "multiple" && o.snippetProps.selection.selected ? e(c, 2) : e(l, -1);
1191
+ }), M.reset(n), M.append(e, n);
1192
+ };
1193
+ M.if(l, (e) => {
1194
+ t.child ? e(u) : e(d, -1);
1195
+ }), M.append(e, c), M.pop();
1196
+ }
1197
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-trigger.svelte
1198
+ var je = /* @__PURE__ */ new Set([
1199
+ "$$slots",
1200
+ "$$events",
1201
+ "$$legacy",
1202
+ "id",
1203
+ "ref",
1204
+ "child",
1205
+ "children",
1206
+ "type"
1207
+ ]), Me = M.from_html("<button><!></button>");
1208
+ function $(e, t) {
1209
+ let n = M.props_id();
1210
+ M.push(t, !0);
1211
+ let r = M.prop(t, "id", 19, () => f(n)), i = M.prop(t, "ref", 15, null), a = M.prop(t, "type", 3, "button"), o = M.rest_props(t, je), s = pe.create({
1212
+ id: x(() => r()),
1213
+ ref: x(() => i(), (e) => i(e))
1214
+ }), c = M.derived(() => v(o, s.props, { type: a() }));
1215
+ var l = M.comment(), u = M.first_child(l);
1216
+ M.component(u, () => ie, (e, n) => {
1217
+ n(e, {
1218
+ get id() {
1219
+ return r();
1220
+ },
1221
+ get ref() {
1222
+ return s.opts.ref;
1223
+ },
1224
+ children: (e, n) => {
1225
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1226
+ var n = M.comment(), r = M.first_child(n);
1227
+ M.snippet(r, () => t.child, () => ({ props: M.get(c) })), M.append(e, n);
1228
+ }, o = (e) => {
1229
+ var n = Me();
1230
+ M.attribute_effect(n, () => ({ ...M.get(c) }));
1231
+ var r = M.child(n);
1232
+ M.snippet(r, () => t.children ?? M.noop), M.reset(n), M.append(e, n);
1233
+ };
1234
+ M.if(i, (e) => {
1235
+ t.child ? e(a) : e(o, -1);
1236
+ }), M.append(e, r);
1237
+ },
1238
+ $$slots: { default: !0 }
1239
+ });
1240
+ }), M.append(e, l), M.pop();
1241
+ }
1242
+ // ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select.svelte
1243
+ var Ne = /* @__PURE__ */ new Set([
1244
+ "$$slots",
1245
+ "$$events",
1246
+ "$$legacy",
1247
+ "value",
1248
+ "children"
1249
+ ]);
1250
+ function Pe(e, t) {
1251
+ M.push(t, !0);
1252
+ let n = M.prop(t, "value", 15), r = M.rest_props(t, Ne);
1253
+ var i = M.comment(), a = M.first_child(i);
1254
+ M.component(a, () => Oe, (e, i) => {
1255
+ i(e, M.spread_props(() => r, {
1256
+ get value() {
1257
+ return n();
1258
+ },
1259
+ set value(e) {
1260
+ n(e);
1261
+ },
1262
+ children: (e, n) => {
1263
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1264
+ var n = M.comment(), r = M.first_child(n);
1265
+ M.snippet(r, () => t.children), M.append(e, n);
1266
+ };
1267
+ M.if(i, (e) => {
1268
+ t.children && e(a);
1269
+ }), M.append(e, r);
1270
+ },
1271
+ $$slots: { default: !0 }
1272
+ }));
1273
+ }), M.append(e, i), M.pop();
1274
+ }
1275
+ // ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-content.svelte
1276
+ var Fe = /* @__PURE__ */ new Set([
1277
+ "$$slots",
1278
+ "$$events",
1279
+ "$$legacy",
1280
+ "ref",
1281
+ "class",
1282
+ "sideOffset",
1283
+ "children"
1284
+ ]);
1285
+ function Ie(t, n) {
1286
+ M.push(n, !0);
1287
+ let r = M.prop(n, "ref", 15, null), i = M.prop(n, "sideOffset", 3, 4), a = M.rest_props(n, Fe);
1288
+ var o = M.comment(), s = M.first_child(o);
1289
+ {
1290
+ let t = M.derived(() => e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md", n.class));
1291
+ M.component(s, () => ve, (e, o) => {
1292
+ o(e, M.spread_props({
1293
+ get sideOffset() {
1294
+ return i();
1295
+ },
1296
+ get class() {
1297
+ return M.get(t);
1298
+ }
1299
+ }, () => a, {
1300
+ get ref() {
1301
+ return r();
1302
+ },
1303
+ set ref(e) {
1304
+ r(e);
1305
+ },
1306
+ children: (e, t) => {
1307
+ var r = M.comment(), i = M.first_child(r);
1308
+ M.component(i, () => Ee, (e, t) => {
1309
+ t(e, {
1310
+ class: "p-1",
1311
+ children: (e, t) => {
1312
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1313
+ var t = M.comment(), r = M.first_child(t);
1314
+ M.snippet(r, () => n.children), M.append(e, t);
1315
+ };
1316
+ M.if(i, (e) => {
1317
+ n.children && e(a);
1318
+ }), M.append(e, r);
1319
+ },
1320
+ $$slots: { default: !0 }
1321
+ });
1322
+ }), M.append(e, r);
1323
+ },
1324
+ $$slots: { default: !0 }
1325
+ }));
1326
+ });
1327
+ }
1328
+ M.append(t, o), M.pop();
1329
+ }
1330
+ // ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-item.svelte
1331
+ var Le = /* @__PURE__ */ new Set([
1332
+ "$$slots",
1333
+ "$$events",
1334
+ "$$legacy",
1335
+ "ref",
1336
+ "class",
1337
+ "children"
1338
+ ]);
1339
+ function Re(t, n) {
1340
+ M.push(n, !0);
1341
+ let r = M.prop(n, "ref", 15, null), i = M.rest_props(n, Le);
1342
+ var a = M.comment(), o = M.first_child(a);
1343
+ {
1344
+ let t = M.derived(() => e("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 pr-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0", n.class));
1345
+ M.component(o, () => Ce, (e, a) => {
1346
+ a(e, M.spread_props({ get class() {
1347
+ return M.get(t);
1348
+ } }, () => i, {
1349
+ get ref() {
1350
+ return r();
1351
+ },
1352
+ set ref(e) {
1353
+ r(e);
1354
+ },
1355
+ children: (e, t) => {
1356
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1357
+ var t = M.comment(), r = M.first_child(t);
1358
+ M.snippet(r, () => n.children), M.append(e, t);
1359
+ };
1360
+ M.if(i, (e) => {
1361
+ n.children && e(a);
1362
+ }), M.append(e, r);
1363
+ },
1364
+ $$slots: { default: !0 }
1365
+ }));
1366
+ });
1367
+ }
1368
+ M.append(t, a), M.pop();
1369
+ }
1370
+ // ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-trigger.svelte
1371
+ var ze = /* @__PURE__ */ new Set([
1372
+ "$$slots",
1373
+ "$$events",
1374
+ "$$legacy",
1375
+ "ref",
1376
+ "class",
1377
+ "child",
1378
+ "children"
1379
+ ]);
1380
+ function Be(t, n) {
1381
+ M.push(n, !0);
1382
+ let r = M.prop(n, "ref", 15, null), i = M.rest_props(n, ze);
1383
+ var a = M.comment(), o = M.first_child(a), s = (t) => {
1384
+ let a = (e, t = M.noop) => {
1385
+ var r = M.comment(), i = M.first_child(r);
1386
+ M.snippet(i, () => n.child ?? M.noop, t), M.append(e, r);
1387
+ };
1388
+ var o = M.comment(), s = M.first_child(o);
1389
+ {
1390
+ let t = M.derived(() => e("flex h-9 items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", n.class));
1391
+ M.component(s, () => $, (e, n) => {
1392
+ n(e, M.spread_props(() => i, {
1393
+ get child() {
1394
+ return a;
1395
+ },
1396
+ get class() {
1397
+ return M.get(t);
1398
+ },
1399
+ get ref() {
1400
+ return r();
1401
+ },
1402
+ set ref(e) {
1403
+ r(e);
1404
+ }
1405
+ }));
1406
+ });
1407
+ }
1408
+ M.append(t, o);
1409
+ }, c = (t) => {
1410
+ var a = M.comment(), o = M.first_child(a);
1411
+ {
1412
+ let t = M.derived(() => e("flex h-9 items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", n.class));
1413
+ M.component(o, () => $, (e, a) => {
1414
+ a(e, M.spread_props(() => i, {
1415
+ get class() {
1416
+ return M.get(t);
1417
+ },
1418
+ get ref() {
1419
+ return r();
1420
+ },
1421
+ set ref(e) {
1422
+ r(e);
1423
+ },
1424
+ children: (e, t) => {
1425
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1426
+ var t = M.comment(), r = M.first_child(t);
1427
+ M.snippet(r, () => n.children), M.append(e, t);
1428
+ };
1429
+ M.if(i, (e) => {
1430
+ n.children && e(a);
1431
+ }), M.append(e, r);
1432
+ },
1433
+ $$slots: { default: !0 }
1434
+ }));
1435
+ });
1436
+ }
1437
+ M.append(t, a);
1438
+ };
1439
+ M.if(o, (e) => {
1440
+ n.child ? e(s) : e(c, -1);
1441
+ }), M.append(t, a), M.pop();
1442
+ }
1443
+ // ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-value.svelte
1444
+ var Ve = /* @__PURE__ */ new Set([
1445
+ "$$slots",
1446
+ "$$events",
1447
+ "$$legacy",
1448
+ "children"
1449
+ ]);
1450
+ function He(e, t) {
1451
+ let n = M.rest_props(t, Ve);
1452
+ var r = M.comment(), i = M.first_child(r), a = (e) => {
1453
+ var r = M.comment(), i = M.first_child(r);
1454
+ M.component(i, () => Q, (e, r) => {
1455
+ r(e, M.spread_props(() => n, {
1456
+ children: (e, n) => {
1457
+ var r = M.comment(), i = M.first_child(r);
1458
+ M.snippet(i, () => t.children), M.append(e, r);
1459
+ },
1460
+ $$slots: { default: !0 }
1461
+ }));
1462
+ }), M.append(e, r);
1463
+ }, o = (e) => {
1464
+ var t = M.comment(), r = M.first_child(t);
1465
+ M.component(r, () => Q, (e, t) => {
1466
+ t(e, M.spread_props(() => n));
1467
+ }), M.append(e, t);
1468
+ };
1469
+ M.if(i, (e) => {
1470
+ t.children ? e(a) : e(o, -1);
1471
+ }), M.append(e, r);
1472
+ }
1473
+ export { Pe as a, Ie as i, Be as n, Re as r, He as t };