@hiai-gg/docsmint 0.7.4 → 0.7.6

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 (246) hide show
  1. package/README.md +2 -2
  2. package/dist/backend/index.js +130026 -129609
  3. package/dist/backend-account-runtime-cleanup.js +2 -0
  4. package/dist/backend-api-key-facade.js +2 -0
  5. package/dist/backend-pipeline-cancellation.js +2 -0
  6. package/dist/frontend/CategoryDialog-D_xFSWGh.js +630 -0
  7. package/dist/frontend/ConfirmDialog-Cfq3D2Di.js +221 -0
  8. package/dist/frontend/{CreateSnapshotDialog-CojnWChs.js → CreateSnapshotDialog-BHODxZWK.js} +53 -52
  9. package/dist/frontend/{DatePicker-7FAbIOGg.js → DatePicker-CZyCnQ1q.js} +62 -64
  10. package/dist/frontend/{DeleteDialog-BIlqRb1u.js → DeleteDialog-DaJOO6SB.js} +17 -17
  11. package/dist/frontend/FolderNode-C_91NlEO.js +307 -0
  12. package/dist/frontend/{FolderTreeSelector-BMB1MS9N.js → FolderTreeSelector-DqO-f0nt.js} +7 -7
  13. package/dist/frontend/HiAiEditor-DtUGbQg6.js +3160 -0
  14. package/dist/frontend/{HiaiDocsExtensionProvider-OSn96BBw.js → HiaiDocsExtensionProvider-Cc3yzW5I.js} +5 -3
  15. package/dist/frontend/{Icon-Db-o32_E.js → Icon-y7xxAIC6.js} +1 -1
  16. package/dist/frontend/{SettingsDialog-DatuxOVX.js → SettingsDialog-BlIZqk2-.js} +169 -158
  17. package/dist/frontend/ShareDialog-CmX-VoJ9.js +273 -0
  18. package/dist/frontend/Sidebar-BVGm5BRR.js +2147 -0
  19. package/dist/frontend/{TagCreateDialog-Ch21yuWV.js → TagCreateDialog-BlGz4O9Z.js} +45 -36
  20. package/dist/frontend/action_cancel-Cuxsznzz.js +5 -0
  21. package/dist/frontend/action_close-BJm_52wm.js +5 -0
  22. package/dist/frontend/action_create-CtBQrRuj.js +5 -0
  23. package/dist/frontend/action_delete-BXBIzvn0.js +5 -0
  24. package/dist/frontend/action_go_to-VmK5jmEk.js +5 -0
  25. package/dist/frontend/action_loading-BLCGJVA9.js +5 -0
  26. package/dist/frontend/action_save-BRN2Z_GP.js +5 -0
  27. package/dist/frontend/api/attachments.js +1 -1
  28. package/dist/frontend/api/categories.js +1 -1
  29. package/dist/frontend/api/folders.js +1 -1
  30. package/dist/frontend/api/settings.js +1 -1
  31. package/dist/frontend/api/share.js +1 -1
  32. package/dist/frontend/api/tags.js +1 -1
  33. package/dist/frontend/app-shell.js +8 -8
  34. package/dist/frontend/{attachments-B2aH3hXF.js → attachments-C225gTA7.js} +2 -2
  35. package/dist/frontend/{auth-client-CnDZwPfp.js → auth-client-DCMne8vd.js} +630 -615
  36. package/dist/frontend/{bundle-mjs-DllmqUxV.js → bundle-mjs-CZ3g1Uzr.js} +35 -42
  37. package/dist/frontend/{camera-CzCxBOpc.js → camera-BI-BtnIm.js} +2 -2
  38. package/dist/frontend/{categories-X7gK8azc.js → categories-Bjcc41We.js} +1 -1
  39. package/dist/frontend/categories_update_error-4aSI8PTr.js +5 -0
  40. package/dist/frontend/{check-BIi-Ghti.js → check-sdTlLwi9.js} +2 -2
  41. package/dist/frontend/{chevron-down-C2ft7XUV.js → chevron-down-DlBnIE7Y.js} +2 -2
  42. package/dist/frontend/{circle-check-BrqfiQH1.js → circle-check-hWC-HeKu.js} +2 -2
  43. package/dist/frontend/{clock-Dz86E4Kz.js → clock-C4FHq-9q.js} +2 -2
  44. package/dist/frontend/collaboration.js +208 -103
  45. package/dist/frontend/components/category-dialog.js +1 -1
  46. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  47. package/dist/frontend/components/delete-dialog.js +1 -1
  48. package/dist/frontend/components/editor/compact-editor.js +1 -1
  49. package/dist/frontend/components/editor/document-editor.js +1 -1
  50. package/dist/frontend/components/editor/document-title.js +3 -2
  51. package/dist/frontend/components/editor/docx-serializer.js +140 -125
  52. package/dist/frontend/components/editor/extensions.js +1 -1
  53. package/dist/frontend/components/editor/markdown-toggle.js +9 -9
  54. package/dist/frontend/components/editor/markdown.js +1 -1
  55. package/dist/frontend/components/folder-node.js +1 -1
  56. package/dist/frontend/components/folder-tree-selector.js +1 -1
  57. package/dist/frontend/components/save-as-dialog.js +34 -25
  58. package/dist/frontend/components/settings.js +1 -1
  59. package/dist/frontend/components/share-dialog.js +1 -1
  60. package/dist/frontend/components/sidebar.js +1 -1
  61. package/dist/frontend/components/tag-create-dialog.js +1 -1
  62. package/dist/frontend/components/version-history.js +181 -176
  63. package/dist/frontend/{confirm-dialog-8T6vsWL7.js → confirm-dialog-BFTxjLv-.js} +46 -37
  64. package/dist/frontend/{copy-CvCh4ZVt.js → copy-4H99lwAQ.js} +2 -2
  65. package/dist/frontend/dashboard.js +462 -456
  66. package/dist/frontend/{db-Bo1t_76T.js → db-CbFRFAm2.js} +40 -38
  67. package/dist/frontend/{dialog-CiSwD-_v.js → dialog-tHAH3-9M.js} +10 -10
  68. package/dist/frontend/dist-Cg1BpNS7.js +2262 -0
  69. package/dist/frontend/dndzone-BrakBHwm.js +1375 -0
  70. package/dist/frontend/doc_title_label-DS9jSIh2.js +5 -0
  71. package/dist/frontend/doc_title_placeholder-DBQpM1aH.js +5 -0
  72. package/dist/frontend/{document-drop-coordinator-C4xHMjwC.js → document-drop-coordinator-Da7HcXgv.js} +1 -1
  73. package/dist/frontend/document-drop-coordinator.js +1 -1
  74. package/dist/frontend/{dropdown-menu-Bi5Iipwf.js → dropdown-menu-AJYeFPHu.js} +145 -145
  75. package/dist/frontend/{editor-content-sanitizer-CC_A8aaI.js → editor-content-sanitizer-CWjqiz0T.js} +30 -30
  76. package/dist/frontend/{editorExtensions--HusV819.js → editorExtensions-B-mKiWqq.js} +5085 -6220
  77. package/dist/frontend/editor_markdown_placeholder-BIWDUF1E.js +5 -0
  78. package/dist/frontend/error_dismiss-Dx_JbRjs.js +5 -0
  79. package/dist/frontend/error_generic-CzNtmBT4.js +5 -0
  80. package/dist/frontend/extension.js +1 -1
  81. package/dist/frontend/{folder-Cx60MRpi.js → folder-BAX6qBYy.js} +3 -3
  82. package/dist/frontend/{folders-ONG03Dkv.js → folders-CC0UWkZH.js} +3 -3
  83. package/dist/frontend/folders_rename-BJo4Gipq.js +5 -0
  84. package/dist/frontend/i18n.js +1007 -6
  85. package/dist/frontend/{identity-Ynrglr5i.js → identity-O4lAuchv.js} +2 -2
  86. package/dist/frontend/{input-N9dNSOWF.js → input-CrlYAH2S.js} +2 -2
  87. package/dist/frontend/{label-CK72_fw8.js → label-B0syEfns.js} +2 -2
  88. package/dist/frontend/{markdown-H6QB53zu.js → markdown-CMij27Gg.js} +1 -1
  89. package/dist/frontend/offline/identity.js +1 -1
  90. package/dist/frontend/{floating-layer-anchor-BGIndLY-.js → popper-layer-force-mount-BAYjg6Pp.js} +2476 -2564
  91. package/dist/frontend/{rolldown-runtime-CWhphoD1.js → rolldown-runtime-DArdT4gl.js} +2 -2
  92. package/dist/frontend/{rotate-ccw-ta4NosZ0.js → rotate-ccw-DtZDfSK3.js} +2 -2
  93. package/dist/frontend/runtime-CwWSo6c9.js +128 -0
  94. package/dist/frontend/{schemas-DwtKylCJ.js → schemas-CdPhcuru.js} +6 -7
  95. package/dist/frontend/scroll_to_top_aria-CvkNF_Hu.js +5 -0
  96. package/dist/frontend/search.js +237 -265
  97. package/dist/frontend/search_title-DOC0cPlQ.js +5 -0
  98. package/dist/frontend/{select-value-BD1DToYs.js → select-value-D9VqY5n5.js} +575 -572
  99. package/dist/frontend/{settings-BR48ihB4.js → settings-DJW8JkdF.js} +1 -1
  100. package/dist/frontend/{share-D7JtkC85.js → share-D5yo0JOh.js} +2 -1
  101. package/dist/frontend/share_copied-DPxVzfWh.js +5 -0
  102. package/dist/frontend/share_toggle_password-DdxfIjj1.js +5 -0
  103. package/dist/frontend/shared-document.js +1 -1
  104. package/dist/frontend/sidebar_uncategorized-qJ2_Aonf.js +5 -0
  105. package/dist/frontend/sort_relevance-DwYX5MO9.js +5 -0
  106. package/dist/frontend/{tag-DhVFHMcV.js → tag-ChpMfbfa.js} +3 -3
  107. package/dist/frontend/{tags-BdCaMGfj.js → tags-CzPNUoFw.js} +1 -1
  108. package/dist/frontend/tags_load_error-BKjA1pI0.js +5 -0
  109. package/dist/frontend/tags_new-BiNAJ9Bx.js +5 -0
  110. package/dist/frontend/{textarea-pl_fDBre.js → textarea-l_gRXsrH.js} +2 -2
  111. package/dist/frontend/theme.js +1 -1
  112. package/dist/frontend/{theme.svelte-DG3RS7wv.js → theme.svelte-Bzitjfh9.js} +2 -2
  113. package/dist/frontend/theme_system-BBNUhYKh.js +5 -0
  114. package/dist/frontend/utils/dndzone.js +1 -1
  115. package/dist/frontend/utils-B4LKx7VS.js +7 -0
  116. package/dist/frontend/{utils-DrfHTcei.js → utils-BovMJHdA.js} +2 -2
  117. package/dist/frontend/utils.js +1 -1
  118. package/dist/frontend/version_create_snapshot-3bu-0qzH.js +5 -0
  119. package/dist/frontend/version_restored_from-dVRN3Zdk.js +5 -0
  120. package/dist/frontend/version_snapshot_label_placeholder-DrMikux0.js +5 -0
  121. package/dist/frontend/weekday_we-C5H_M-df.js +5 -0
  122. package/dist/frontend/{x-cfdlccjs.js → x-B2ifxSH7.js} +2 -2
  123. package/dist/frontend/{awareness-snQ3RD9f.js → yjs-VUcKqaKW.js} +835 -944
  124. package/dist/frontend-ssr/api/attachments.js +92 -1
  125. package/dist/frontend-ssr/api/categories.js +1 -1
  126. package/dist/frontend-ssr/api/documents.js +1 -1
  127. package/dist/frontend-ssr/api/folders.js +1 -1
  128. package/dist/frontend-ssr/api/settings.js +1 -1
  129. package/dist/frontend-ssr/api/share.js +30 -1
  130. package/dist/frontend-ssr/api/tags.js +1 -1
  131. package/dist/frontend-ssr/app-shell.js +25 -18
  132. package/dist/frontend-ssr/assets/{CategoryDialog-DsXe54EF.js → CategoryDialog-C41IBNWG.js} +26 -35
  133. package/dist/frontend-ssr/assets/ConfirmDialog-CWO0HBaS.js +424 -0
  134. package/dist/frontend-ssr/assets/{CreateSnapshotDialog-D3-PjXVr.js → CreateSnapshotDialog-CECCRK0d.js} +12 -18
  135. package/dist/frontend-ssr/assets/{DatePicker-C9suIA1S.js → DatePicker-TZVeMZ2S.js} +32 -20
  136. package/dist/frontend-ssr/assets/{DeleteDialog-DxtMrS1O.js → DeleteDialog-BVnmzR2e.js} +5 -7
  137. package/dist/frontend-ssr/assets/{FolderNode-ChD10Elp.js → FolderNode-CClgk8BL.js} +7 -7
  138. package/dist/frontend-ssr/assets/{FolderTreeSelector-Bxi8EqMm.js → FolderTreeSelector-DnrKCYtl.js} +17 -20
  139. package/dist/frontend-ssr/assets/{HiAiEditor-2X3Uyg1B.js → HiAiEditor-_-m7MJDd.js} +330 -254
  140. package/dist/frontend-ssr/assets/{Icon-QwirKi9Y.js → Icon-Clqe8D8X.js} +28 -16
  141. package/dist/frontend-ssr/assets/{SettingsDialog-DDy0hN8x.js → SettingsDialog-BdvHRAxF.js} +45 -49
  142. package/dist/frontend-ssr/assets/{ShareDialog-BwW_wF4G.js → ShareDialog-DHPbSHZg.js} +5 -6
  143. package/dist/frontend-ssr/assets/{Sidebar-Dy-5gXOf.js → Sidebar-B3Saqn0O.js} +90 -93
  144. package/dist/frontend-ssr/assets/{TagCreateDialog-BPzgOaX8.js → TagCreateDialog-CPg-nG0D.js} +14 -14
  145. package/dist/frontend-ssr/assets/action_cancel-OVgQDP5Q.js +22 -0
  146. package/dist/frontend-ssr/assets/action_close-DagDyMXk.js +22 -0
  147. package/dist/frontend-ssr/assets/action_create-hqJWjyqh.js +22 -0
  148. package/dist/frontend-ssr/assets/action_delete-B1-16jSo.js +22 -0
  149. package/dist/frontend-ssr/assets/action_go_to-DQScgw7P.js +22 -0
  150. package/dist/frontend-ssr/assets/action_save-Bx7vlLZI.js +22 -0
  151. package/dist/frontend-ssr/assets/{api-keys-DIbclwj5.js → api-keys-CHOrbU-Q.js} +1 -1
  152. package/dist/frontend-ssr/assets/{auth-client-CojKIzqy.js → auth-client-DzkZlSQ8.js} +295 -261
  153. package/dist/frontend-ssr/assets/{camera-D6s20LDi.js → camera-Dwwtgvfn.js} +10 -6
  154. package/dist/frontend-ssr/assets/{categories-av9xjeg5.js → categories-C_dxFoHi.js} +1 -1
  155. package/dist/frontend-ssr/assets/categories_update_error-DkKgsqdD.js +202 -0
  156. package/dist/frontend-ssr/assets/{chevron-down-CvqKATjM.js → chevron-down-C6BTPJFz.js} +10 -6
  157. package/dist/frontend-ssr/assets/{chevron-right-DKD7WXjz.js → chevron-right-CseGE1qd.js} +10 -6
  158. package/dist/frontend-ssr/assets/{circle-check-CPS9dKEo.js → circle-check-BRhWPZo1.js} +10 -6
  159. package/dist/frontend-ssr/assets/{client-DZMkDkDn.js → client-rfwQYYHY.js} +4 -2
  160. package/dist/frontend-ssr/assets/{clock-CzsE58TH.js → clock-DpP_Y7WP.js} +10 -6
  161. package/dist/frontend-ssr/assets/{confirm-dialog-wYC07DPx.js → confirm-dialog-DeOR0SnQ.js} +44 -31
  162. package/dist/frontend-ssr/assets/{copy-DkkCPkBL.js → copy-DRMKiRZ0.js} +10 -6
  163. package/dist/frontend-ssr/assets/{db-BhwJPEkn.js → db-CUkQe9AU.js} +1 -1
  164. package/dist/frontend-ssr/assets/{dialog-ClcuF7nD.js → dialog--tDgDGw9.js} +12 -15
  165. package/dist/frontend-ssr/assets/{dndzone-DMvTO_Jz.js → dndzone-WtNaDxoQ.js} +309 -77
  166. package/dist/frontend-ssr/assets/doc_title_label-Ev_ltlh3.js +22 -0
  167. package/dist/frontend-ssr/assets/doc_title_placeholder-DSHpUb7w.js +22 -0
  168. package/dist/frontend-ssr/assets/{documents-CZ-wQohy.js → documents-CEuA1V6N.js} +1 -1
  169. package/dist/frontend-ssr/assets/{dropdown-menu-BKMGVNLL.js → dropdown-menu-CdEpn_LT.js} +74 -75
  170. package/dist/frontend-ssr/assets/editor_markdown_placeholder-BpezdkOr.js +42 -0
  171. package/dist/frontend-ssr/assets/editor_toolbar_undo-CKJAOqv2.js +562 -0
  172. package/dist/frontend-ssr/assets/error_generic-DTK0kwxT.js +42 -0
  173. package/dist/frontend-ssr/assets/{folder-DYIE-XPP.js → folder-DszunwKc.js} +10 -6
  174. package/dist/frontend-ssr/assets/{folders-BX30gHv6.js → folders-BOXeb9hz.js} +3 -2
  175. package/dist/frontend-ssr/assets/folders_rename-DvciOb6K.js +122 -0
  176. package/dist/frontend-ssr/assets/{identity-DcMMBKWg.js → identity-veXobEfE.js} +2 -2
  177. package/dist/frontend-ssr/assets/{input-DcDR8L8M.js → input-BlAj7LzC.js} +2 -2
  178. package/dist/frontend-ssr/assets/{label-Cz0_svJx.js → label-BRToaMg9.js} +2 -2
  179. package/dist/frontend-ssr/assets/{loader-circle-CIEWGyfP.js → loader-circle-BpRVrMZg.js} +10 -6
  180. package/dist/frontend-ssr/assets/{floating-layer-anchor-BoiiIEiK.js → popper-layer-force-mount-Djnq7l7a.js} +3684 -3674
  181. package/dist/frontend-ssr/assets/{rotate-ccw-dJSqPyTd.js → rotate-ccw-1GOD_yt_.js} +10 -6
  182. package/dist/frontend-ssr/assets/runtime-O78RzRqx.js +559 -0
  183. package/dist/frontend-ssr/assets/scroll_to_top_aria-BN4ZfOnM.js +22 -0
  184. package/dist/frontend-ssr/assets/search_title-CKUsQDT0.js +22 -0
  185. package/dist/frontend-ssr/assets/search_toggle_filters-hS9rvQhC.js +282 -0
  186. package/dist/frontend-ssr/assets/{select-value-CaDktvDW.js → select-value-BCWSsoTd.js} +204 -218
  187. package/dist/frontend-ssr/assets/{settings-Mp8EuFSn.js → settings-DwAcLGM1.js} +2 -2
  188. package/dist/frontend-ssr/assets/share_copied-BxU9rjXG.js +602 -0
  189. package/dist/frontend-ssr/assets/share_toggle_password-C6OmroqR.js +202 -0
  190. package/dist/frontend-ssr/assets/sidebar_uncategorized-Dx-LTd5w.js +102 -0
  191. package/dist/frontend-ssr/assets/{tag-BmiVU_Ej.js → tag-DFh6nF9R.js} +19 -11
  192. package/dist/frontend-ssr/assets/{tag-store.svelte-BM1lUI_P.js → tag-store.svelte-QRysvGKe.js} +1 -1
  193. package/dist/frontend-ssr/assets/{tags-BQsI_6OW.js → tags-BBCoFYro.js} +1 -1
  194. package/dist/frontend-ssr/assets/tags_load_error-CPrc6Gzs.js +362 -0
  195. package/dist/frontend-ssr/assets/tags_new-VmMr9v2V.js +62 -0
  196. package/dist/frontend-ssr/assets/{textarea-BGrjPOgU.js → textarea-BuszTo9i.js} +2 -2
  197. package/dist/frontend-ssr/assets/{theme.svelte-CN3BUhJG.js → theme.svelte-shZrSxz8.js} +1 -1
  198. package/dist/frontend-ssr/assets/theme_system-BucaNntV.js +362 -0
  199. package/dist/frontend-ssr/assets/{utils-Cg_R05dR.js → utils-BK35BJKQ.js} +1 -1
  200. package/dist/frontend-ssr/assets/version_create_snapshot-COHzwjle.js +22 -0
  201. package/dist/frontend-ssr/assets/version_restored_from-CertjFDl.js +242 -0
  202. package/dist/frontend-ssr/assets/version_snapshot_label_placeholder-Cy_rMCij.js +222 -0
  203. package/dist/frontend-ssr/assets/weekday_we-DrI3U230.js +422 -0
  204. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  205. package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
  206. package/dist/frontend-ssr/components/delete-dialog.js +1 -1
  207. package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
  208. package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
  209. package/dist/frontend-ssr/components/editor/document-title.js +2 -1
  210. package/dist/frontend-ssr/components/editor/markdown-toggle.js +2 -2
  211. package/dist/frontend-ssr/components/folder-node.js +1 -1
  212. package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
  213. package/dist/frontend-ssr/components/save-as-dialog.js +12 -14
  214. package/dist/frontend-ssr/components/settings.js +1 -1
  215. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  216. package/dist/frontend-ssr/components/sidebar.js +1 -1
  217. package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
  218. package/dist/frontend-ssr/components/version-history.js +47 -51
  219. package/dist/frontend-ssr/dashboard.js +243 -232
  220. package/dist/frontend-ssr/i18n.js +6698 -1
  221. package/dist/frontend-ssr/offline/identity.js +1 -1
  222. package/dist/frontend-ssr/search.js +28 -31
  223. package/dist/frontend-ssr/shared-document.js +1 -2
  224. package/dist/frontend-ssr/theme.js +1 -1
  225. package/dist/frontend-ssr/utils/dndzone.js +1 -1
  226. package/dist/lifecycle-runtime.js +4437 -2019
  227. package/dist/mcp-cli.js +1 -1
  228. package/dist/mcp-server.js +1 -1
  229. package/package.json +7 -7
  230. package/packages/cli/src/index.ts +1 -1
  231. package/packages/db/src/schema.ts +2 -0
  232. package/server.json +2 -2
  233. package/dist/frontend/CategoryDialog-bQKMpVFD.js +0 -631
  234. package/dist/frontend/ConfirmDialog-DF7kgkyq.js +0 -139
  235. package/dist/frontend/FolderNode-Cf443LBa.js +0 -298
  236. package/dist/frontend/HiAiEditor-CMZ-eL8s.js +0 -2992
  237. package/dist/frontend/ShareDialog-Bwz2y3Le.js +0 -281
  238. package/dist/frontend/Sidebar-C_t5RrOJ.js +0 -2101
  239. package/dist/frontend/dist-DQa_OHOa.js +0 -268
  240. package/dist/frontend/dndzone-BzsOINtP.js +0 -1199
  241. package/dist/frontend/messages-DTRe4U2V.js +0 -1093
  242. package/dist/frontend/utils-CMQRlxbx.js +0 -7
  243. package/dist/frontend-ssr/assets/ConfirmDialog-DrH653ua.js +0 -136
  244. package/dist/frontend-ssr/assets/attachments-BdkOp8ha.js +0 -93
  245. package/dist/frontend-ssr/assets/messages-B1TjVIH8.js +0 -11147
  246. package/dist/frontend-ssr/assets/share-qTqvd6Lu.js +0 -30
@@ -0,0 +1,5 @@
1
+ import { t as e } from "./runtime-CwWSo6c9.js";
2
+ //#region src/lib/paraglide/messages/doc_title_label.js
3
+ var t = () => "Document title", n = ((n = {}, r = {}) => (r.locale ?? e(), t(n)));
4
+ //#endregion
5
+ export { n as t };
@@ -0,0 +1,5 @@
1
+ import { t as e } from "./runtime-CwWSo6c9.js";
2
+ //#region src/lib/paraglide/messages/doc_title_placeholder.js
3
+ var t = () => "Untitled", n = ((n = {}, r = {}) => (r.locale ?? e(), t(n)));
4
+ //#endregion
5
+ export { n as t };
@@ -35,7 +35,7 @@ function t(e) {
35
35
  return a && !a.resolved && a.token === e ? a.id : null;
36
36
  },
37
37
  begin(e, t) {
38
- a?.id === e && a.token === t || (o(), a = {
38
+ (a?.id !== e || a.token !== t) && (o(), a = {
39
39
  id: e,
40
40
  token: t,
41
41
  resolved: !1,
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./document-drop-coordinator-C4xHMjwC.js";
1
+ import { n as e, t } from "./document-drop-coordinator-Da7HcXgv.js";
2
2
  export { t as createDocumentDropCoordinator, e as createDocumentPlacementWriter };
@@ -1,10 +1,10 @@
1
- import { t as e } from "./Icon-Db-o32_E.js";
2
- import { t } from "./utils-CMQRlxbx.js";
3
- import { Q as n, a as r, c as i, d as a, et as o, f as s, i as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h, v as g } from "./floating-layer-anchor-BGIndLY-.js";
1
+ import { t as e } from "./Icon-y7xxAIC6.js";
2
+ import { t } from "./utils-B4LKx7VS.js";
3
+ import { Q as n, S as r, a as i, d as a, et as o, f as s, i as c, l, n as u, o as d, r as f, s as p, t as m, u as h, x as g } from "./popper-layer-force-mount-BAYjg6Pp.js";
4
4
  import "svelte/internal/disclose-version";
5
5
  import * as _ from "svelte/internal/client";
6
6
  import "svelte/internal/flags/legacy";
7
- //#region ../node_modules/.bun/lucide-svelte@0.577.0+ff5f301bb2db9a0d/node_modules/lucide-svelte/dist/icons/ellipsis-vertical.svelte
7
+ //#region ../node_modules/.bun/lucide-svelte@1.0.1+7a2629d9b18e82d0/node_modules/lucide-svelte/dist/icons/ellipsis-vertical.svelte
8
8
  function v(t, n) {
9
9
  let r = _.legacy_rest_props(n, [
10
10
  "children",
@@ -40,33 +40,8 @@ function v(t, n) {
40
40
  }));
41
41
  }
42
42
  //#endregion
43
- //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/menu/components/menu.svelte
44
- function y(e, t) {
45
- _.push(t, !0);
46
- let n = _.prop(t, "open", 15, !1), i = _.prop(t, "dir", 3, "ltr"), c = _.prop(t, "onOpenChange", 3, g), l = _.prop(t, "onOpenChangeComplete", 3, g), u = _.prop(t, "_internal_variant", 3, "dropdown-menu"), d = _.prop(t, "_internal_should_skip_exit_animation", 3, void 0), f = s.create({
47
- variant: o(() => u()),
48
- dir: o(() => i()),
49
- onClose: () => {
50
- n(!1), c()(!1);
51
- },
52
- shouldSkipExitAnimation: () => d()?.() ?? !1
53
- });
54
- a.create({
55
- open: o(() => n(), (e) => {
56
- n(e), c()(e);
57
- }),
58
- onOpenChangeComplete: o(() => l())
59
- }, f), r(e, {
60
- children: (e, n) => {
61
- var r = _.comment(), i = _.first_child(r);
62
- _.snippet(i, () => t.children ?? _.noop), _.append(e, r);
63
- },
64
- $$slots: { default: !0 }
65
- }), _.pop();
66
- }
67
- //#endregion
68
- //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/menu/components/menu-item.svelte
69
- var b = /* @__PURE__ */ new Set([
43
+ //#region ../node_modules/.bun/bits-ui@2.19.0+6b8313878b0747a6/node_modules/bits-ui/dist/bits/menu/components/menu-item.svelte
44
+ var y = /* @__PURE__ */ new Set([
70
45
  "$$slots",
71
46
  "$$events",
72
47
  "$$legacy",
@@ -77,34 +52,90 @@ var b = /* @__PURE__ */ new Set([
77
52
  "disabled",
78
53
  "onSelect",
79
54
  "closeOnSelect"
80
- ]), x = _.from_html("<div><!></div>");
81
- function S(e, t) {
82
- let r = _.props_id();
55
+ ]), b = _.from_html("<div><!></div>");
56
+ function x(e, t) {
57
+ let i = _.props_id();
83
58
  _.push(t, !0);
84
- let i = _.prop(t, "ref", 15, null), a = _.prop(t, "id", 19, () => c(r)), s = _.prop(t, "disabled", 3, !1), l = _.prop(t, "onSelect", 3, g), u = _.prop(t, "closeOnSelect", 3, !0), d = _.rest_props(t, b), f = h.create({
85
- id: o(() => a()),
86
- disabled: o(() => s()),
87
- onSelect: o(() => l()),
88
- ref: o(() => i(), (e) => i(e)),
89
- closeOnSelect: o(() => u())
90
- }), p = _.derived(() => n(d, f.props));
91
- var m = _.comment(), v = _.first_child(m), y = (e) => {
59
+ let a = _.prop(t, "ref", 15, null), s = _.prop(t, "id", 19, () => g(i)), c = _.prop(t, "disabled", 3, !1), u = _.prop(t, "onSelect", 3, r), d = _.prop(t, "closeOnSelect", 3, !0), f = _.rest_props(t, y), p = l.create({
60
+ id: o(() => s()),
61
+ disabled: o(() => c()),
62
+ onSelect: o(() => u()),
63
+ ref: o(() => a(), (e) => a(e)),
64
+ closeOnSelect: o(() => d())
65
+ }), m = _.derived(() => n(f, p.props));
66
+ var h = _.comment(), v = _.first_child(h), x = (e) => {
92
67
  var n = _.comment(), r = _.first_child(n);
93
- _.snippet(r, () => t.child, () => ({ props: _.get(p) })), _.append(e, n);
68
+ _.snippet(r, () => t.child, () => ({ props: _.get(m) })), _.append(e, n);
94
69
  }, S = (e) => {
95
- var n = x();
96
- _.attribute_effect(n, () => ({ ..._.get(p) }));
70
+ var n = b();
71
+ _.attribute_effect(n, () => ({ ..._.get(m) }));
97
72
  var r = _.child(n);
98
73
  _.snippet(r, () => t.children ?? _.noop), _.reset(n), _.append(e, n);
99
74
  };
100
75
  _.if(v, (e) => {
101
- t.child ? e(y) : e(S, -1);
102
- }), _.append(e, m), _.pop();
76
+ t.child ? e(x) : e(S, -1);
77
+ }), _.append(e, h), _.pop();
103
78
  }
104
79
  _.from_html("<div><!></div>");
105
80
  //#endregion
106
- //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/menu/components/menu-group.svelte
107
- var C = /* @__PURE__ */ new Set([
81
+ //#region ../node_modules/.bun/bits-ui@2.19.0+6b8313878b0747a6/node_modules/bits-ui/dist/bits/menu/components/menu-group.svelte
82
+ var S = /* @__PURE__ */ new Set([
83
+ "$$slots",
84
+ "$$events",
85
+ "$$legacy",
86
+ "ref",
87
+ "id",
88
+ "child",
89
+ "children"
90
+ ]), C = _.from_html("<div><!></div>");
91
+ function w(e, t) {
92
+ let r = _.props_id();
93
+ _.push(t, !0);
94
+ let i = _.prop(t, "ref", 15, null), a = _.prop(t, "id", 19, () => g(r)), c = _.rest_props(t, S), l = s.create({
95
+ id: o(() => a()),
96
+ ref: o(() => i(), (e) => i(e))
97
+ }), u = _.derived(() => n(c, l.props));
98
+ var d = _.comment(), f = _.first_child(d), p = (e) => {
99
+ var n = _.comment(), r = _.first_child(n);
100
+ _.snippet(r, () => t.child, () => ({ props: _.get(u) })), _.append(e, n);
101
+ }, m = (e) => {
102
+ var n = C();
103
+ _.attribute_effect(n, () => ({ ..._.get(u) }));
104
+ var r = _.child(n);
105
+ _.snippet(r, () => t.children ?? _.noop), _.reset(n), _.append(e, n);
106
+ };
107
+ _.if(f, (e) => {
108
+ t.child ? e(p) : e(m, -1);
109
+ }), _.append(e, d), _.pop();
110
+ }
111
+ //#endregion
112
+ //#region ../node_modules/.bun/bits-ui@2.19.0+6b8313878b0747a6/node_modules/bits-ui/dist/bits/menu/components/menu.svelte
113
+ function T(e, t) {
114
+ _.push(t, !0);
115
+ let n = _.prop(t, "open", 15, !1), i = _.prop(t, "dir", 3, "ltr"), s = _.prop(t, "onOpenChange", 3, r), l = _.prop(t, "onOpenChangeComplete", 3, r), u = _.prop(t, "_internal_variant", 3, "dropdown-menu"), d = _.prop(t, "_internal_should_skip_exit_animation", 3, void 0), f = a.create({
116
+ variant: o(() => u()),
117
+ dir: o(() => i()),
118
+ onClose: () => {
119
+ n(!1), s()(!1);
120
+ },
121
+ shouldSkipExitAnimation: () => d()?.() ?? !1
122
+ });
123
+ h.create({
124
+ open: o(() => n(), (e) => {
125
+ n(e), s()(e);
126
+ }),
127
+ onOpenChangeComplete: o(() => l())
128
+ }, f), c(e, {
129
+ children: (e, n) => {
130
+ var r = _.comment(), i = _.first_child(r);
131
+ _.snippet(i, () => t.children ?? _.noop), _.append(e, r);
132
+ },
133
+ $$slots: { default: !0 }
134
+ }), _.pop();
135
+ }
136
+ //#endregion
137
+ //#region ../node_modules/.bun/bits-ui@2.19.0+6b8313878b0747a6/node_modules/bits-ui/dist/bits/dropdown-menu/components/dropdown-menu-content.svelte
138
+ var E = /* @__PURE__ */ new Set([
108
139
  "$$slots",
109
140
  "$$events",
110
141
  "$$legacy",
@@ -119,18 +150,18 @@ var C = /* @__PURE__ */ new Set([
119
150
  "forceMount",
120
151
  "trapFocus",
121
152
  "style"
122
- ]), w = _.from_html("<div><div><!></div></div>");
123
- function T(e, t) {
124
- let r = _.props_id();
153
+ ]), D = _.from_html("<div><div><!></div></div>");
154
+ function O(e, t) {
155
+ let a = _.props_id();
125
156
  _.push(t, !0);
126
- let a = _.prop(t, "id", 19, () => c(r)), s = _.prop(t, "ref", 15, null), d = _.prop(t, "loop", 3, !0), p = _.prop(t, "onInteractOutside", 3, g), m = _.prop(t, "onEscapeKeydown", 3, g), h = _.prop(t, "onCloseAutoFocus", 3, g), v = _.prop(t, "forceMount", 3, !1), y = _.prop(t, "trapFocus", 3, !1), b = _.rest_props(t, C), x = i.create({
127
- id: o(() => a()),
128
- loop: o(() => d()),
129
- ref: o(() => s(), (e) => s(e)),
157
+ let s = _.prop(t, "id", 19, () => g(a)), c = _.prop(t, "ref", 15, null), l = _.prop(t, "loop", 3, !0), d = _.prop(t, "onInteractOutside", 3, r), f = _.prop(t, "onEscapeKeydown", 3, r), h = _.prop(t, "onCloseAutoFocus", 3, r), v = _.prop(t, "forceMount", 3, !1), y = _.prop(t, "trapFocus", 3, !1), b = _.rest_props(t, E), x = p.create({
158
+ id: o(() => s()),
159
+ loop: o(() => l()),
160
+ ref: o(() => c(), (e) => c(e)),
130
161
  onCloseAutoFocus: o(() => h())
131
162
  }), S = _.derived(() => n(b, x.props));
132
- function T(e) {
133
- if (x.handleInteractOutside(e), !e.defaultPrevented && (p()(e), !e.defaultPrevented)) {
163
+ function C(e) {
164
+ if (x.handleInteractOutside(e), !e.defaultPrevented && (d()(e), !e.defaultPrevented)) {
134
165
  if (e.target && e.target instanceof Element) {
135
166
  let t = `[${x.parentMenu.root.getBitsAttr("sub-content")}]`;
136
167
  if (e.target.closest(t)) return;
@@ -138,117 +169,117 @@ function T(e, t) {
138
169
  x.parentMenu.onClose();
139
170
  }
140
171
  }
141
- function E(e) {
142
- m()(e), !e.defaultPrevented && x.parentMenu.onClose();
172
+ function w(e) {
173
+ f()(e), !e.defaultPrevented && x.parentMenu.onClose();
143
174
  }
144
- var D = _.comment(), O = _.first_child(D), k = (e) => {
145
- l(e, _.spread_props(() => _.get(S), () => x.popperProps, {
175
+ var T = _.comment(), O = _.first_child(T), k = (e) => {
176
+ m(e, _.spread_props(() => _.get(S), () => x.popperProps, {
146
177
  get ref() {
147
178
  return x.opts.ref;
148
179
  },
149
180
  get enabled() {
150
181
  return x.parentMenu.opts.open.current;
151
182
  },
152
- onInteractOutside: T,
153
- onEscapeKeydown: E,
183
+ onInteractOutside: C,
184
+ onEscapeKeydown: w,
154
185
  get trapFocus() {
155
186
  return y();
156
187
  },
157
188
  get loop() {
158
- return d();
189
+ return l();
159
190
  },
160
191
  forceMount: !0,
161
192
  get id() {
162
- return a();
193
+ return s();
163
194
  },
164
195
  get shouldRender() {
165
196
  return x.shouldRender;
166
197
  },
167
198
  popper: (e, r) => {
168
- let i = () => (r?.()).props, a = () => (r?.()).wrapperProps, o = _.derived(() => n(i(), { style: u("dropdown-menu") }, { style: t.style }));
169
- var s = _.comment(), c = _.first_child(s), l = (e) => {
199
+ let a = () => (r?.()).props, o = () => (r?.()).wrapperProps, s = _.derived(() => n(a(), { style: i("dropdown-menu") }, { style: t.style }));
200
+ var c = _.comment(), l = _.first_child(c), u = (e) => {
170
201
  var n = _.comment(), r = _.first_child(n);
171
202
  {
172
203
  let e = _.derived(() => ({
173
- props: _.get(o),
174
- wrapperProps: a(),
204
+ props: _.get(s),
205
+ wrapperProps: o(),
175
206
  ...x.snippetProps
176
207
  }));
177
208
  _.snippet(r, () => t.child, () => _.get(e));
178
209
  }
179
210
  _.append(e, n);
180
211
  }, d = (e) => {
181
- var n = w();
182
- _.attribute_effect(n, () => ({ ...a() }));
212
+ var n = D();
213
+ _.attribute_effect(n, () => ({ ...o() }));
183
214
  var r = _.child(n);
184
- _.attribute_effect(r, () => ({ ..._.get(o) }));
215
+ _.attribute_effect(r, () => ({ ..._.get(s) }));
185
216
  var i = _.child(r);
186
217
  _.snippet(i, () => t.children ?? _.noop), _.reset(r), _.reset(n), _.append(e, n);
187
218
  };
188
- _.if(c, (e) => {
189
- t.child ? e(l) : e(d, -1);
190
- }), _.append(e, s);
219
+ _.if(l, (e) => {
220
+ t.child ? e(u) : e(d, -1);
221
+ }), _.append(e, c);
191
222
  },
192
223
  $$slots: { popper: !0 }
193
224
  }));
194
225
  }, A = (e) => {
195
- f(e, _.spread_props(() => _.get(S), () => x.popperProps, {
226
+ u(e, _.spread_props(() => _.get(S), () => x.popperProps, {
196
227
  get ref() {
197
228
  return x.opts.ref;
198
229
  },
199
230
  get open() {
200
231
  return x.parentMenu.opts.open.current;
201
232
  },
202
- onInteractOutside: T,
203
- onEscapeKeydown: E,
233
+ onInteractOutside: C,
234
+ onEscapeKeydown: w,
204
235
  get trapFocus() {
205
236
  return y();
206
237
  },
207
238
  get loop() {
208
- return d();
239
+ return l();
209
240
  },
210
241
  forceMount: !1,
211
242
  get id() {
212
- return a();
243
+ return s();
213
244
  },
214
245
  get shouldRender() {
215
246
  return x.shouldRender;
216
247
  },
217
248
  popper: (e, r) => {
218
- let i = () => (r?.()).props, a = () => (r?.()).wrapperProps, o = _.derived(() => n(i(), { style: u("dropdown-menu") }, { style: t.style }));
219
- var s = _.comment(), c = _.first_child(s), l = (e) => {
249
+ let a = () => (r?.()).props, o = () => (r?.()).wrapperProps, s = _.derived(() => n(a(), { style: i("dropdown-menu") }, { style: t.style }));
250
+ var c = _.comment(), l = _.first_child(c), u = (e) => {
220
251
  var n = _.comment(), r = _.first_child(n);
221
252
  {
222
253
  let e = _.derived(() => ({
223
- props: _.get(o),
224
- wrapperProps: a(),
254
+ props: _.get(s),
255
+ wrapperProps: o(),
225
256
  ...x.snippetProps
226
257
  }));
227
258
  _.snippet(r, () => t.child, () => _.get(e));
228
259
  }
229
260
  _.append(e, n);
230
261
  }, d = (e) => {
231
- var n = w();
232
- _.attribute_effect(n, () => ({ ...a() }));
262
+ var n = D();
263
+ _.attribute_effect(n, () => ({ ...o() }));
233
264
  var r = _.child(n);
234
- _.attribute_effect(r, () => ({ ..._.get(o) }));
265
+ _.attribute_effect(r, () => ({ ..._.get(s) }));
235
266
  var i = _.child(r);
236
267
  _.snippet(i, () => t.children ?? _.noop), _.reset(r), _.reset(n), _.append(e, n);
237
268
  };
238
- _.if(c, (e) => {
239
- t.child ? e(l) : e(d, -1);
240
- }), _.append(e, s);
269
+ _.if(l, (e) => {
270
+ t.child ? e(u) : e(d, -1);
271
+ }), _.append(e, c);
241
272
  },
242
273
  $$slots: { popper: !0 }
243
274
  }));
244
275
  };
245
276
  _.if(O, (e) => {
246
277
  v() ? e(k) : v() || e(A, 1);
247
- }), _.append(e, D), _.pop();
278
+ }), _.append(e, T), _.pop();
248
279
  }
249
280
  //#endregion
250
- //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/menu/components/menu-trigger.svelte
251
- var E = /* @__PURE__ */ new Set([
281
+ //#region ../node_modules/.bun/bits-ui@2.19.0+6b8313878b0747a6/node_modules/bits-ui/dist/bits/menu/components/menu-trigger.svelte
282
+ var k = /* @__PURE__ */ new Set([
252
283
  "$$slots",
253
284
  "$$events",
254
285
  "$$legacy",
@@ -258,29 +289,29 @@ var E = /* @__PURE__ */ new Set([
258
289
  "children",
259
290
  "disabled",
260
291
  "type"
261
- ]), D = _.from_html("<button><!></button>");
262
- function O(e, t) {
292
+ ]), A = _.from_html("<button><!></button>");
293
+ function j(e, t) {
263
294
  let r = _.props_id();
264
295
  _.push(t, !0);
265
- let i = _.prop(t, "id", 19, () => c(r)), a = _.prop(t, "ref", 15, null), s = _.prop(t, "disabled", 3, !1), l = _.prop(t, "type", 3, "button"), u = _.rest_props(t, E), d = p.create({
296
+ let i = _.prop(t, "id", 19, () => g(r)), a = _.prop(t, "ref", 15, null), s = _.prop(t, "disabled", 3, !1), c = _.prop(t, "type", 3, "button"), l = _.rest_props(t, k), u = d.create({
266
297
  id: o(() => i()),
267
298
  disabled: o(() => s() ?? !1),
268
299
  ref: o(() => a(), (e) => a(e))
269
- }), f = _.derived(() => n(u, d.props, { type: l() }));
270
- m(e, {
300
+ }), p = _.derived(() => n(l, u.props, { type: c() }));
301
+ f(e, {
271
302
  get id() {
272
303
  return i();
273
304
  },
274
305
  get ref() {
275
- return d.opts.ref;
306
+ return u.opts.ref;
276
307
  },
277
308
  children: (e, n) => {
278
309
  var r = _.comment(), i = _.first_child(r), a = (e) => {
279
310
  var n = _.comment(), r = _.first_child(n);
280
- _.snippet(r, () => t.child, () => ({ props: _.get(f) })), _.append(e, n);
311
+ _.snippet(r, () => t.child, () => ({ props: _.get(p) })), _.append(e, n);
281
312
  }, o = (e) => {
282
- var n = D();
283
- _.attribute_effect(n, () => ({ ..._.get(f) }));
313
+ var n = A();
314
+ _.attribute_effect(n, () => ({ ..._.get(p) }));
284
315
  var r = _.child(n);
285
316
  _.snippet(r, () => t.children ?? _.noop), _.reset(n), _.append(e, n);
286
317
  };
@@ -292,38 +323,7 @@ function O(e, t) {
292
323
  }), _.pop();
293
324
  }
294
325
  //#endregion
295
- //#region ../node_modules/.bun/bits-ui@2.18.1+cc847a85639d1c68/node_modules/bits-ui/dist/bits/menu/components/menu-separator.svelte
296
- var k = /* @__PURE__ */ new Set([
297
- "$$slots",
298
- "$$events",
299
- "$$legacy",
300
- "ref",
301
- "id",
302
- "child",
303
- "children"
304
- ]), A = _.from_html("<div><!></div>");
305
- function j(e, t) {
306
- let r = _.props_id();
307
- _.push(t, !0);
308
- let i = _.prop(t, "ref", 15, null), a = _.prop(t, "id", 19, () => c(r)), s = _.rest_props(t, k), l = d.create({
309
- id: o(() => a()),
310
- ref: o(() => i(), (e) => i(e))
311
- }), u = _.derived(() => n(s, l.props));
312
- var f = _.comment(), p = _.first_child(f), m = (e) => {
313
- var n = _.comment(), r = _.first_child(n);
314
- _.snippet(r, () => t.child, () => ({ props: _.get(u) })), _.append(e, n);
315
- }, h = (e) => {
316
- var n = A();
317
- _.attribute_effect(n, () => ({ ..._.get(u) }));
318
- var r = _.child(n);
319
- _.snippet(r, () => t.children ?? _.noop), _.reset(n), _.append(e, n);
320
- };
321
- _.if(p, (e) => {
322
- t.child ? e(m) : e(h, -1);
323
- }), _.append(e, f), _.pop();
324
- }
325
- //#endregion
326
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu.svelte
326
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+2be6617fd6e54084/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu.svelte
327
327
  var M = /* @__PURE__ */ new Set([
328
328
  "$$slots",
329
329
  "$$events",
@@ -333,7 +333,7 @@ var M = /* @__PURE__ */ new Set([
333
333
  function N(e, t) {
334
334
  let n = _.rest_props(t, M);
335
335
  var r = _.comment(), i = _.first_child(r);
336
- _.component(i, () => y, (e, r) => {
336
+ _.component(i, () => T, (e, r) => {
337
337
  r(e, _.spread_props(() => n, {
338
338
  children: (e, n) => {
339
339
  var r = _.comment(), i = _.first_child(r), a = (e) => {
@@ -349,7 +349,7 @@ function N(e, t) {
349
349
  }), _.append(e, r);
350
350
  }
351
351
  //#endregion
352
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte
352
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+2be6617fd6e54084/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte
353
353
  var P = /* @__PURE__ */ new Set([
354
354
  "$$slots",
355
355
  "$$events",
@@ -365,7 +365,7 @@ function F(e, n) {
365
365
  var o = _.comment(), s = _.first_child(o);
366
366
  {
367
367
  let e = _.derived(() => t("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", n.class));
368
- _.component(s, () => T, (t, o) => {
368
+ _.component(s, () => O, (t, o) => {
369
369
  o(t, _.spread_props({
370
370
  get sideOffset() {
371
371
  return i();
@@ -396,7 +396,7 @@ function F(e, n) {
396
396
  _.append(e, o), _.pop();
397
397
  }
398
398
  //#endregion
399
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte
399
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+2be6617fd6e54084/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte
400
400
  var I = /* @__PURE__ */ new Set([
401
401
  "$$slots",
402
402
  "$$events",
@@ -412,7 +412,7 @@ function L(e, n) {
412
412
  var a = _.comment(), o = _.first_child(a);
413
413
  {
414
414
  let e = _.derived(() => t("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0", n.inset && "pl-8", n.class));
415
- _.component(o, () => S, (t, a) => {
415
+ _.component(o, () => x, (t, a) => {
416
416
  a(t, _.spread_props({ get class() {
417
417
  return _.get(e);
418
418
  } }, () => i, {
@@ -438,7 +438,7 @@ function L(e, n) {
438
438
  _.append(e, a), _.pop();
439
439
  }
440
440
  //#endregion
441
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte
441
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+2be6617fd6e54084/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte
442
442
  var R = /* @__PURE__ */ new Set([
443
443
  "$$slots",
444
444
  "$$events",
@@ -452,7 +452,7 @@ function z(e, n) {
452
452
  var a = _.comment(), o = _.first_child(a);
453
453
  {
454
454
  let e = _.derived(() => t("-mx-1 my-1 h-px bg-muted", n.class));
455
- _.component(o, () => j, (t, n) => {
455
+ _.component(o, () => w, (t, n) => {
456
456
  n(t, _.spread_props({ get class() {
457
457
  return _.get(e);
458
458
  } }, () => i, {
@@ -468,7 +468,7 @@ function z(e, n) {
468
468
  _.append(e, a), _.pop();
469
469
  }
470
470
  //#endregion
471
- //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte
471
+ //#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+2be6617fd6e54084/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte
472
472
  var B = /* @__PURE__ */ new Set([
473
473
  "$$slots",
474
474
  "$$events",
@@ -486,7 +486,7 @@ function V(e, t) {
486
486
  _.snippet(i, () => t.child ?? _.noop, n), _.append(e, r);
487
487
  };
488
488
  var a = _.comment(), o = _.first_child(a);
489
- _.component(o, () => O, (e, t) => {
489
+ _.component(o, () => j, (e, t) => {
490
490
  t(e, _.spread_props(() => r, {
491
491
  get child() {
492
492
  return i;
@@ -501,7 +501,7 @@ function V(e, t) {
501
501
  }), _.append(e, a);
502
502
  }, s = (e) => {
503
503
  var i = _.comment(), a = _.first_child(i);
504
- _.component(a, () => O, (e, i) => {
504
+ _.component(a, () => j, (e, i) => {
505
505
  i(e, _.spread_props(() => r, {
506
506
  get ref() {
507
507
  return n();
@@ -1,14 +1,14 @@
1
1
  //#region src/lib/components/editor/editor-content-sanitizer.ts
2
- var e = /^\/api\/attachments\/[0-9a-f-]+\/raw$/i, t = /(?:abs\.twimg\.com\/emoji\/|twemoji\.maxcdn\.com\/|(?:cdnjs\.cloudflare\.com|cdn\.jsdelivr\.net)\/(?:ajax\/libs\/)?twemoji)/i, n = /\/(?:emoji\/v2\/svg|twemoji\/[\d.]+\/(?:svg|72x72))\/([0-9a-f][0-9a-f-]*)\.svg(?:[?#].*)?$/i, r = 96;
3
- function i(e) {
2
+ var e = /^\/api\/attachments\/[0-9a-f-]+\/raw$/i, t = /(?:abs\.twimg\.com\/emoji\/|twemoji\.maxcdn\.com\/|(?:cdnjs\.cloudflare\.com|cdn\.jsdelivr\.net)\/(?:ajax\/libs\/)?twemoji)/i, n = /\/(?:emoji\/v2\/svg|twemoji\/[\d.]+\/(?:svg|72x72))\/([0-9a-f][0-9a-f-]*)\.svg(?:[?#].*)?$/i;
3
+ function r(e) {
4
4
  return /^[\d#*]\uFE0F?\u20E3$/u.test(e) || /^\p{Extended_Pictographic}/u.test(e);
5
5
  }
6
- function a(e) {
6
+ function i(e) {
7
7
  if (!e) return !1;
8
8
  try {
9
9
  let t = new Intl.Segmenter("en", { granularity: "grapheme" }), n = 0;
10
- for (let { segment: r } of t.segment(e)) {
11
- if (!i(r)) return !1;
10
+ for (let { segment: i } of t.segment(e)) {
11
+ if (!r(i)) return !1;
12
12
  n += 1;
13
13
  }
14
14
  return n > 0;
@@ -16,7 +16,7 @@ function a(e) {
16
16
  return /^(?:\p{Extended_Pictographic}|\d\uFE0F?\u20E3)+$/u.test(e);
17
17
  }
18
18
  }
19
- function o(e) {
19
+ function a(e) {
20
20
  let t = e.match(n);
21
21
  if (!t?.[1] || !/(?:\/emoji\/|\/twemoji\/)/i.test(e)) return null;
22
22
  try {
@@ -25,25 +25,25 @@ function o(e) {
25
25
  return null;
26
26
  }
27
27
  }
28
- function s(e) {
28
+ function o(e) {
29
29
  if (!e) return null;
30
- let n = typeof e.src == "string" ? e.src.trim() : "", i = typeof e.alt == "string" ? e.alt.trim() : "", s = Number(e.width), c = Number(e.height);
31
- if (Number.isFinite(s) && s >= r && Number.isFinite(c) && c >= r) return null;
32
- let l = o(n);
33
- return !t.test(n) && l === null ? null : (a(i) ? i : null) ?? l;
30
+ let n = typeof e.src == "string" ? e.src.trim() : "", r = typeof e.alt == "string" ? e.alt.trim() : "", o = Number(e.width), s = Number(e.height);
31
+ if (Number.isFinite(o) && o >= 96 && Number.isFinite(s) && s >= 96) return null;
32
+ let c = a(n);
33
+ return !t.test(n) && c === null ? null : (i(r) ? r : null) ?? c;
34
34
  }
35
- function c(t) {
35
+ function s(t) {
36
36
  return t.type === "image" && typeof t.attrs?.src == "string" && e.test(t.attrs.src);
37
37
  }
38
- function l(t) {
38
+ function c(t) {
39
39
  if (typeof t != "string") return !1;
40
40
  let n = t.trim();
41
41
  return e.test(n) || /^https?:\/\//i.test(n) || /^blob:/i.test(n) || /^data:image\//i.test(n);
42
42
  }
43
- function u(e) {
44
- return e.type === "image" ? l(e.attrs?.src) : !0;
43
+ function l(e) {
44
+ return e.type !== "image" || c(e.attrs?.src);
45
45
  }
46
- function d(e) {
46
+ function u(e) {
47
47
  return {
48
48
  type: "paragraph",
49
49
  content: [{
@@ -52,12 +52,12 @@ function d(e) {
52
52
  }]
53
53
  };
54
54
  }
55
- function f(e) {
56
- let t = s(e.attrs);
57
- if (e.type === "image" && t) return [d(t)];
58
- if (!u(e)) return [];
55
+ function d(e) {
56
+ let t = o(e.attrs);
57
+ if (e.type === "image" && t) return [u(t)];
58
+ if (!l(e)) return [];
59
59
  if (!e.content) return [e];
60
- let n = e.content.flatMap((e) => f(e));
60
+ let n = e.content.flatMap((e) => d(e));
61
61
  if (e.type === "paragraph") {
62
62
  let t = [], r = [], i = () => {
63
63
  r.length !== 0 && (t.push({
@@ -76,15 +76,15 @@ function f(e) {
76
76
  content: n
77
77
  }];
78
78
  }
79
- function p(e) {
80
- return f(e)[0] ?? {
79
+ function f(e) {
80
+ return d(e)[0] ?? {
81
81
  type: "doc",
82
82
  content: [{ type: "paragraph" }]
83
83
  };
84
84
  }
85
- async function m(e, t = fetch) {
86
- let n = p(e), r = /* @__PURE__ */ new Set(), i = (e) => {
87
- c(e) && r.add(e.attrs?.src);
85
+ async function p(e, t = fetch) {
86
+ let n = f(e), r = /* @__PURE__ */ new Set(), i = (e) => {
87
+ s(e) && r.add(e.attrs?.src);
88
88
  for (let t of e.content ?? []) i(t);
89
89
  };
90
90
  i(n);
@@ -96,12 +96,12 @@ async function m(e, t = fetch) {
96
96
  a.add(e);
97
97
  }
98
98
  }));
99
- let o = 0, s = (e) => c(e) && a.has(e.attrs?.src) ? (o += 1, null) : e.content ? {
99
+ let o = 0, c = (e) => s(e) && a.has(e.attrs?.src) ? (o += 1, null) : e.content ? {
100
100
  ...e,
101
- content: e.content.map(s).filter((e) => e !== null)
101
+ content: e.content.map(c).filter((e) => e !== null)
102
102
  } : e;
103
103
  return {
104
- content: s(n) ?? {
104
+ content: c(n) ?? {
105
105
  type: "doc",
106
106
  content: []
107
107
  },
@@ -109,4 +109,4 @@ async function m(e, t = fetch) {
109
109
  };
110
110
  }
111
111
  //#endregion
112
- export { p as i, l as n, m as r, s as t };
112
+ export { f as i, c as n, p as r, o as t };