@phtngyn/cms 0.2.0-beta.7 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (524) hide show
  1. package/LICENSE +18 -10
  2. package/README.md +59 -401
  3. package/drizzle/20261003215543_initial/migration.sql +251 -0
  4. package/drizzle/20261003215543_initial/snapshot.json +1941 -0
  5. package/package.json +75 -71
  6. package/src/Authoring.d.ts +41 -49
  7. package/src/Authoring.js +1 -1
  8. package/src/Blocks-BrxSemnd.js +40 -0
  9. package/src/Client.d.ts +8186 -0
  10. package/src/Client.js +41 -0
  11. package/src/Collections.d.ts +142 -0
  12. package/src/Collections.js +142 -0
  13. package/src/Config-CMiwciub.js +130 -0
  14. package/src/Config.d.ts +172 -0
  15. package/src/Config.js +2 -0
  16. package/src/Configuration-Dk2k3OIc.js +73 -0
  17. package/src/DataTransfer-BmECvPHB.js +488 -0
  18. package/src/Database-DSsNCGft.d.ts +3 -0
  19. package/src/Delivery.d.ts +28 -0
  20. package/src/Delivery.js +7 -0
  21. package/src/Document-CKXMSEf1.js +293 -0
  22. package/src/Document-TgwYKJZM.d.ts +220 -0
  23. package/src/DocumentRenderer-Wz2xaNyf.js +394 -0
  24. package/src/EditorSchema-wrDv-id6.js +296 -0
  25. package/src/Fields-BegSgYhj.d.ts +166 -0
  26. package/src/Fields-ioGaMEh9.js +130 -0
  27. package/src/Forms-BuKAXQxr.d.ts +203 -0
  28. package/src/Forms.d.ts +48 -11
  29. package/src/Forms.js +342 -7
  30. package/src/I18n-Ckf9h0rC.js +154 -0
  31. package/src/I18n.d.ts +45 -2
  32. package/src/I18n.js +2 -1
  33. package/src/Image-CJWPLnhP.js +110 -0
  34. package/src/Links-CJYyy7rC.js +28 -0
  35. package/src/Links-Dx1yOni8.d.ts +28 -0
  36. package/src/Locales-Ch7a5xuA.js +67 -0
  37. package/src/Locales-jwbmJaOp.d.ts +43 -0
  38. package/src/Locales.d.ts +3 -0
  39. package/src/Locales.js +3 -0
  40. package/src/Media-BQ0uL4w7.d.ts +15 -0
  41. package/src/Media-DSyvd14o.js +87 -0
  42. package/src/Module.d.ts +2 -10
  43. package/src/Module.js +1039 -162
  44. package/src/Operations.d.ts +57 -0
  45. package/src/Operations.js +263 -0
  46. package/src/People-DvNZauWw.js +69 -0
  47. package/src/PreviewFocus-C_EelZO5.js +104 -0
  48. package/src/Query-C0kGJF5_.d.ts +261 -0
  49. package/src/RevisionPreview-IVwbJ9Wy.js +133 -0
  50. package/src/Routes-BaZvm2LE.js +126 -0
  51. package/src/Routes-DM1rRp3r.d.ts +15 -0
  52. package/src/S3MediaObjects-y-WacEi9.js +193 -0
  53. package/src/Seo-BcpqxoAs.d.ts +57 -0
  54. package/src/Seo-CjNUtUkj.js +254 -0
  55. package/src/StudioApi-CXLwwocX.js +833 -0
  56. package/src/StudioErrors-T5zLGQ1M.js +117 -0
  57. package/src/StudioErrors-kq-E44lQ.d.ts +104 -0
  58. package/src/StudioServer.d.ts +20 -0
  59. package/src/StudioServer.js +34 -0
  60. package/src/answers-DcTg0Xv2.js +41 -0
  61. package/src/cli.js +681 -187
  62. package/src/contracts-rprW3ZOB.js +130 -0
  63. package/src/forms-3xuf0Ym7.d.ts +206 -0
  64. package/src/localeConfiguration-BPbkLi7-.js +32 -0
  65. package/src/localeContext-DhF3SPvM.js +59 -0
  66. package/src/locales-6OD4XGIZ.js +12 -0
  67. package/src/nuxtDelivery-BYX_Cddb.js +466 -0
  68. package/src/plugin-DTYuDaQu.js +7171 -0
  69. package/src/previewContext-dt3ZUh-w.js +4 -0
  70. package/src/previewRegions-CXjk5cbP.js +145 -0
  71. package/src/previewSource-fb-q3ESM.js +144 -0
  72. package/src/rendering-D9LVeEKX.js +47 -0
  73. package/src/rolldown-runtime-8H4AJuhK.js +14 -0
  74. package/src/runtime/CmsImage.js +38 -0
  75. package/src/runtime/DocumentPage.vue +10 -0
  76. package/src/runtime/DocumentPageContent.js +48 -0
  77. package/src/runtime/DocumentRenderer.d.ts +129 -0
  78. package/src/runtime/DocumentRenderer.js +2 -0
  79. package/src/runtime/api.js +48 -6
  80. package/src/runtime/delivery/useCmsDocument.js +2 -0
  81. package/src/runtime/delivery/useCmsDocumentQuery.js +2 -0
  82. package/src/runtime/delivery/useCmsDocumentSeo.js +2 -114
  83. package/src/runtime/delivery/useCmsLocale.js +10 -0
  84. package/src/runtime/plugin.js +2 -40
  85. package/src/runtime/preview.css +85 -0
  86. package/src/runtime/preview.js +277 -0
  87. package/src/runtime/previewSource.js +82 -0
  88. package/src/runtime/revisionPrivacy.js +13 -0
  89. package/src/runtime/studio.js +10 -0
  90. package/src/runtime/studioIcons.js +36 -0
  91. package/src/validation-3pggwcnm.js +396 -0
  92. package/src/validation-DpUwPC8Y.js +224 -0
  93. package/studio/THIRD-PARTY-LICENSES.md +2406 -0
  94. package/studio/chunks/AccountPage-DL3DitDM.js +288 -0
  95. package/studio/chunks/AccountPage-DL3DitDM.js.br +0 -0
  96. package/studio/chunks/AccountPage-DL3DitDM.js.gz +0 -0
  97. package/studio/chunks/ActivityPage-CLqVUqTh.js +584 -0
  98. package/studio/chunks/ActivityPage-CLqVUqTh.js.br +0 -0
  99. package/studio/chunks/ActivityPage-CLqVUqTh.js.gz +0 -0
  100. package/studio/chunks/Alert-D0D24z_a.js +335 -0
  101. package/studio/chunks/Alert-D0D24z_a.js.br +0 -0
  102. package/studio/chunks/Alert-D0D24z_a.js.gz +0 -0
  103. package/studio/chunks/Badge-BBFs88TI.js +346 -0
  104. package/studio/chunks/Badge-BBFs88TI.js.br +0 -0
  105. package/studio/chunks/Badge-BBFs88TI.js.gz +0 -0
  106. package/studio/chunks/Button-BT3ztSPx.js +14319 -0
  107. package/studio/chunks/Button-BT3ztSPx.js.br +0 -0
  108. package/studio/chunks/Button-BT3ztSPx.js.gz +0 -0
  109. package/studio/chunks/Collapsible-CKnEYIlp.js +246 -0
  110. package/studio/chunks/Collapsible-CKnEYIlp.js.br +0 -0
  111. package/studio/chunks/Collapsible-CKnEYIlp.js.gz +0 -0
  112. package/studio/chunks/ContentInventory-D7nsFA6U.js +1745 -0
  113. package/studio/chunks/ContentInventory-D7nsFA6U.js.br +0 -0
  114. package/studio/chunks/ContentInventory-D7nsFA6U.js.gz +0 -0
  115. package/studio/chunks/ContentPage-DCxt6BeD.js +18 -0
  116. package/studio/chunks/ContentPage-DCxt6BeD.js.br +0 -0
  117. package/studio/chunks/ContentPage-DCxt6BeD.js.gz +0 -0
  118. package/studio/chunks/DashboardSearch-DjyMjJwF.js +2413 -0
  119. package/studio/chunks/DashboardSearch-DjyMjJwF.js.br +0 -0
  120. package/studio/chunks/DashboardSearch-DjyMjJwF.js.gz +0 -0
  121. package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js +26063 -0
  122. package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js.br +0 -0
  123. package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js.gz +0 -0
  124. package/studio/chunks/DropdownMenu-CA9fB0uZ.js +4400 -0
  125. package/studio/chunks/DropdownMenu-CA9fB0uZ.js.br +0 -0
  126. package/studio/chunks/DropdownMenu-CA9fB0uZ.js.gz +0 -0
  127. package/studio/chunks/EditorPage-D_PAYEE4.js +7799 -0
  128. package/studio/chunks/EditorPage-D_PAYEE4.js.br +0 -0
  129. package/studio/chunks/EditorPage-D_PAYEE4.js.gz +0 -0
  130. package/studio/chunks/FormField-CgM6l2Yn.js +198 -0
  131. package/studio/chunks/FormField-CgM6l2Yn.js.br +0 -0
  132. package/studio/chunks/FormField-CgM6l2Yn.js.gz +0 -0
  133. package/studio/chunks/HelpPage-C-vrFcT_.js +552 -0
  134. package/studio/chunks/HelpPage-C-vrFcT_.js.br +0 -0
  135. package/studio/chunks/HelpPage-C-vrFcT_.js.gz +0 -0
  136. package/studio/chunks/Kbd-Ot7TIhVZ.js +271 -0
  137. package/studio/chunks/Kbd-Ot7TIhVZ.js.br +0 -0
  138. package/studio/chunks/Kbd-Ot7TIhVZ.js.gz +0 -0
  139. package/studio/chunks/MediaFolderDialog-DYu-eu-q.js +101 -0
  140. package/studio/chunks/MediaFolderDialog-DYu-eu-q.js.br +0 -0
  141. package/studio/chunks/MediaFolderDialog-DYu-eu-q.js.gz +0 -0
  142. package/studio/chunks/MediaPage-D-jaWtdl.js +923 -0
  143. package/studio/chunks/MediaPage-D-jaWtdl.js.br +0 -0
  144. package/studio/chunks/MediaPage-D-jaWtdl.js.gz +0 -0
  145. package/studio/chunks/MediaPicker-BZs2wUFz.js +837 -0
  146. package/studio/chunks/MediaPicker-BZs2wUFz.js.br +0 -0
  147. package/studio/chunks/MediaPicker-BZs2wUFz.js.gz +0 -0
  148. package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js +1173 -0
  149. package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js.br +0 -0
  150. package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js.gz +0 -0
  151. package/studio/chunks/Modal-D6hSvxHd.js +265 -0
  152. package/studio/chunks/Modal-D6hSvxHd.js.br +0 -0
  153. package/studio/chunks/Modal-D6hSvxHd.js.gz +0 -0
  154. package/studio/chunks/NewDocumentDialog-C8B6_r3J.js +277 -0
  155. package/studio/chunks/NewDocumentDialog-C8B6_r3J.js.br +0 -0
  156. package/studio/chunks/NewDocumentDialog-C8B6_r3J.js.gz +0 -0
  157. package/studio/chunks/Pagination-D9BSo5H2.js +573 -0
  158. package/studio/chunks/Pagination-D9BSo5H2.js.br +0 -0
  159. package/studio/chunks/Pagination-D9BSo5H2.js.gz +0 -0
  160. package/studio/chunks/PeoplePage-CWIXitBD.js +783 -0
  161. package/studio/chunks/PeoplePage-CWIXitBD.js.br +0 -0
  162. package/studio/chunks/PeoplePage-CWIXitBD.js.gz +0 -0
  163. package/studio/chunks/Popover-B63bkTMS.js +128 -0
  164. package/studio/chunks/Popover-B63bkTMS.js.br +0 -0
  165. package/studio/chunks/Popover-B63bkTMS.js.gz +0 -0
  166. package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js +255 -0
  167. package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js.br +0 -0
  168. package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js.gz +0 -0
  169. package/studio/chunks/Routes-DLYHmulE.js +102 -0
  170. package/studio/chunks/Routes-DLYHmulE.js.br +0 -0
  171. package/studio/chunks/Routes-DLYHmulE.js.gz +0 -0
  172. package/studio/chunks/RovingFocusItem-QZNg-wWF.js +95 -0
  173. package/studio/chunks/RovingFocusItem-QZNg-wWF.js.br +0 -0
  174. package/studio/chunks/RovingFocusItem-QZNg-wWF.js.gz +0 -0
  175. package/studio/chunks/ScheduledPage-C0hqrkr5.js +332 -0
  176. package/studio/chunks/ScheduledPage-C0hqrkr5.js.br +0 -0
  177. package/studio/chunks/ScheduledPage-C0hqrkr5.js.gz +0 -0
  178. package/studio/chunks/Search-BEgCe9Aj.js +14646 -0
  179. package/studio/chunks/Search-BEgCe9Aj.js.br +0 -0
  180. package/studio/chunks/Search-BEgCe9Aj.js.gz +0 -0
  181. package/studio/chunks/Select-B50WZMW-.js +2145 -0
  182. package/studio/chunks/Select-B50WZMW-.js.br +0 -0
  183. package/studio/chunks/Select-B50WZMW-.js.gz +0 -0
  184. package/studio/chunks/SelectMenu-DSweWGMz.js +2109 -0
  185. package/studio/chunks/SelectMenu-DSweWGMz.js.br +0 -0
  186. package/studio/chunks/SelectMenu-DSweWGMz.js.gz +0 -0
  187. package/studio/chunks/SeoPage-CNNxGe4h.js +846 -0
  188. package/studio/chunks/SeoPage-CNNxGe4h.js.br +0 -0
  189. package/studio/chunks/SeoPage-CNNxGe4h.js.gz +0 -0
  190. package/studio/chunks/Skeleton-COz8dcrw.js +39 -0
  191. package/studio/chunks/Skeleton-COz8dcrw.js.br +2 -0
  192. package/studio/chunks/Skeleton-COz8dcrw.js.gz +0 -0
  193. package/studio/chunks/Slideover-QMMHAAys.js +289 -0
  194. package/studio/chunks/Slideover-QMMHAAys.js.br +0 -0
  195. package/studio/chunks/Slideover-QMMHAAys.js.gz +0 -0
  196. package/studio/chunks/StudioPage-ngEIDr5d.js +80 -0
  197. package/studio/chunks/StudioPage-ngEIDr5d.js.br +0 -0
  198. package/studio/chunks/StudioPage-ngEIDr5d.js.gz +0 -0
  199. package/studio/chunks/StudioPageToolbar-BwHnqyr6.js +2524 -0
  200. package/studio/chunks/StudioPageToolbar-BwHnqyr6.js.br +0 -0
  201. package/studio/chunks/StudioPageToolbar-BwHnqyr6.js.gz +0 -0
  202. package/studio/chunks/Switch-qKl1aDn7.js +484 -0
  203. package/studio/chunks/Switch-qKl1aDn7.js.br +0 -0
  204. package/studio/chunks/Switch-qKl1aDn7.js.gz +0 -0
  205. package/studio/chunks/ToolPage-DxoVAJVk.js +29 -0
  206. package/studio/chunks/ToolPage-DxoVAJVk.js.br +0 -0
  207. package/studio/chunks/ToolPage-DxoVAJVk.js.gz +0 -0
  208. package/studio/chunks/Tooltip-Bu15m_DB.js +693 -0
  209. package/studio/chunks/Tooltip-Bu15m_DB.js.br +0 -0
  210. package/studio/chunks/Tooltip-Bu15m_DB.js.gz +0 -0
  211. package/studio/chunks/TrashPage-lhqLLdoG.js +12 -0
  212. package/studio/chunks/TrashPage-lhqLLdoG.js.br +0 -0
  213. package/studio/chunks/TrashPage-lhqLLdoG.js.gz +0 -0
  214. package/studio/chunks/VersionsPage-Cqy6UAp9.js +2349 -0
  215. package/studio/chunks/VersionsPage-Cqy6UAp9.js.br +0 -0
  216. package/studio/chunks/VersionsPage-Cqy6UAp9.js.gz +0 -0
  217. package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js +113 -0
  218. package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js.br +0 -0
  219. package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js.gz +0 -0
  220. package/studio/chunks/arrays-CUJkmV4I.js +10 -0
  221. package/studio/chunks/arrays-CUJkmV4I.js.br +0 -0
  222. package/studio/chunks/arrays-CUJkmV4I.js.gz +0 -0
  223. package/studio/chunks/base-DkTekJe8.js +213 -0
  224. package/studio/chunks/base-DkTekJe8.js.br +0 -0
  225. package/studio/chunks/base-DkTekJe8.js.gz +0 -0
  226. package/studio/chunks/content-DUGl3N4d.js +6012 -0
  227. package/studio/chunks/content-DUGl3N4d.js.br +0 -0
  228. package/studio/chunks/content-DUGl3N4d.js.gz +0 -0
  229. package/studio/chunks/destinations-DPIQVQa6.js +227 -0
  230. package/studio/chunks/destinations-DPIQVQa6.js.br +0 -0
  231. package/studio/chunks/destinations-DPIQVQa6.js.gz +0 -0
  232. package/studio/chunks/en-073cjKW4.js +152 -0
  233. package/studio/chunks/en-073cjKW4.js.br +0 -0
  234. package/studio/chunks/en-073cjKW4.js.gz +0 -0
  235. package/studio/chunks/en-Bn8mxPuf.js +134 -0
  236. package/studio/chunks/en-Bn8mxPuf.js.br +0 -0
  237. package/studio/chunks/en-Bn8mxPuf.js.gz +0 -0
  238. package/studio/chunks/en-C9OiaUDZ.js +251 -0
  239. package/studio/chunks/en-C9OiaUDZ.js.br +0 -0
  240. package/studio/chunks/en-C9OiaUDZ.js.gz +0 -0
  241. package/studio/chunks/en-CHAR6jzx.js +147 -0
  242. package/studio/chunks/en-CHAR6jzx.js.br +0 -0
  243. package/studio/chunks/en-CHAR6jzx.js.gz +0 -0
  244. package/studio/chunks/en-Cq4N1vEF.js +93 -0
  245. package/studio/chunks/en-Cq4N1vEF.js.br +2 -0
  246. package/studio/chunks/en-Cq4N1vEF.js.gz +0 -0
  247. package/studio/chunks/en-D2hRqlse.js +140 -0
  248. package/studio/chunks/en-D2hRqlse.js.br +0 -0
  249. package/studio/chunks/en-D2hRqlse.js.gz +0 -0
  250. package/studio/chunks/en-DiUC3-j6.js +144 -0
  251. package/studio/chunks/en-DiUC3-j6.js.br +0 -0
  252. package/studio/chunks/en-DiUC3-j6.js.gz +0 -0
  253. package/studio/chunks/english-Cs_Adu-u.js +8 -0
  254. package/studio/chunks/english-Cs_Adu-u.js.br +0 -0
  255. package/studio/chunks/english-Cs_Adu-u.js.gz +0 -0
  256. package/studio/chunks/esm-D6DqSiL1.js +752 -0
  257. package/studio/chunks/esm-D6DqSiL1.js.br +0 -0
  258. package/studio/chunks/esm-D6DqSiL1.js.gz +0 -0
  259. package/studio/chunks/externalRequest-CTzr2nDq.js +23 -0
  260. package/studio/chunks/externalRequest-CTzr2nDq.js.br +0 -0
  261. package/studio/chunks/externalRequest-CTzr2nDq.js.gz +0 -0
  262. package/studio/chunks/iconify-DR9ryCPv.js +1007 -0
  263. package/studio/chunks/iconify-DR9ryCPv.js.br +0 -0
  264. package/studio/chunks/iconify-DR9ryCPv.js.gz +0 -0
  265. package/studio/chunks/icons-D2MsAaXq.js +183 -0
  266. package/studio/chunks/icons-D2MsAaXq.js.br +0 -0
  267. package/studio/chunks/icons-D2MsAaXq.js.gz +0 -0
  268. package/studio/chunks/leaveGuards-D22fTGgr.js +26 -0
  269. package/studio/chunks/leaveGuards-D22fTGgr.js.br +0 -0
  270. package/studio/chunks/leaveGuards-D22fTGgr.js.gz +0 -0
  271. package/studio/chunks/lucideIcons-EyqyPBsX.js +238 -0
  272. package/studio/chunks/lucideIcons-EyqyPBsX.js.br +0 -0
  273. package/studio/chunks/lucideIcons-EyqyPBsX.js.gz +0 -0
  274. package/studio/chunks/mediaRoute--8cY8rUe.js +17 -0
  275. package/studio/chunks/mediaRoute--8cY8rUe.js.br +0 -0
  276. package/studio/chunks/mediaRoute--8cY8rUe.js.gz +0 -0
  277. package/studio/chunks/newDocumentPlanning-C26DHpvh.js +77 -0
  278. package/studio/chunks/newDocumentPlanning-C26DHpvh.js.br +0 -0
  279. package/studio/chunks/newDocumentPlanning-C26DHpvh.js.gz +0 -0
  280. package/studio/chunks/notifications-OKOLc40v.js +110 -0
  281. package/studio/chunks/notifications-OKOLc40v.js.br +0 -0
  282. package/studio/chunks/notifications-OKOLc40v.js.gz +0 -0
  283. package/studio/chunks/operations-CjNHyrEX.js +57 -0
  284. package/studio/chunks/operations-CjNHyrEX.js.br +0 -0
  285. package/studio/chunks/operations-CjNHyrEX.js.gz +0 -0
  286. package/studio/chunks/overlay-DnqFLZTc.js +1733 -0
  287. package/studio/chunks/overlay-DnqFLZTc.js.br +0 -0
  288. package/studio/chunks/overlay-DnqFLZTc.js.gz +0 -0
  289. package/studio/chunks/presentation-DF83w0hE.js +57 -0
  290. package/studio/chunks/presentation-DF83w0hE.js.br +0 -0
  291. package/studio/chunks/presentation-DF83w0hE.js.gz +0 -0
  292. package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js +4557 -0
  293. package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js.br +0 -0
  294. package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js.gz +0 -0
  295. package/studio/chunks/searchPresentation-DFwxQkt3.js +76 -0
  296. package/studio/chunks/searchPresentation-DFwxQkt3.js.br +0 -0
  297. package/studio/chunks/searchPresentation-DFwxQkt3.js.gz +0 -0
  298. package/studio/chunks/status-DQv6ihkU.js +38 -0
  299. package/studio/chunks/status-DQv6ihkU.js.br +0 -0
  300. package/studio/chunks/status-DQv6ihkU.js.gz +0 -0
  301. package/studio/chunks/studioContext-I8HozGU1.js +4953 -0
  302. package/studio/chunks/studioContext-I8HozGU1.js.br +0 -0
  303. package/studio/chunks/studioContext-I8HozGU1.js.gz +0 -0
  304. package/studio/chunks/studioQueries-BR-9NT5F.js +73 -0
  305. package/studio/chunks/studioQueries-BR-9NT5F.js.br +0 -0
  306. package/studio/chunks/studioQueries-BR-9NT5F.js.gz +0 -0
  307. package/studio/chunks/studioSearch-ByaL-QpM.js +1095 -0
  308. package/studio/chunks/studioSearch-ByaL-QpM.js.br +0 -0
  309. package/studio/chunks/studioSearch-ByaL-QpM.js.gz +0 -0
  310. package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js +62 -0
  311. package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js.br +0 -0
  312. package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js.gz +0 -0
  313. package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js +189 -0
  314. package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js.br +0 -0
  315. package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js.gz +0 -0
  316. package/studio/chunks/useDocumentMessage-BAWvc38w.js +16 -0
  317. package/studio/chunks/useDocumentMessage-BAWvc38w.js.br +3 -0
  318. package/studio/chunks/useDocumentMessage-BAWvc38w.js.gz +0 -0
  319. package/studio/chunks/useFilter-DzyiTR7f.js +87 -0
  320. package/studio/chunks/useFilter-DzyiTR7f.js.br +0 -0
  321. package/studio/chunks/useFilter-DzyiTR7f.js.gz +0 -0
  322. package/studio/chunks/useFormControl-CL7sSCUo.js +8 -0
  323. package/studio/chunks/useFormControl-CL7sSCUo.js.br +0 -0
  324. package/studio/chunks/useFormControl-CL7sSCUo.js.gz +0 -0
  325. package/studio/chunks/useGraceArea-Chcy25IQ.js +154 -0
  326. package/studio/chunks/useGraceArea-Chcy25IQ.js.br +0 -0
  327. package/studio/chunks/useGraceArea-Chcy25IQ.js.gz +0 -0
  328. package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js +44 -0
  329. package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js.br +8 -0
  330. package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js.gz +0 -0
  331. package/studio/chunks/useLinkCopy-CMjQteCy.js +35 -0
  332. package/studio/chunks/useLinkCopy-CMjQteCy.js.br +0 -0
  333. package/studio/chunks/useLinkCopy-CMjQteCy.js.gz +0 -0
  334. package/studio/chunks/usePointerMotion-DwRcwBNQ.js +16 -0
  335. package/studio/chunks/usePointerMotion-DwRcwBNQ.js.br +0 -0
  336. package/studio/chunks/usePointerMotion-DwRcwBNQ.js.gz +0 -0
  337. package/studio/chunks/useStudioNavigation-CLwtSYpb.js +298 -0
  338. package/studio/chunks/useStudioNavigation-CLwtSYpb.js.br +0 -0
  339. package/studio/chunks/useStudioNavigation-CLwtSYpb.js.gz +0 -0
  340. package/studio/chunks/useStudioPages-DR9qmYLg.js +79 -0
  341. package/studio/chunks/useStudioPages-DR9qmYLg.js.br +0 -0
  342. package/studio/chunks/useStudioPages-DR9qmYLg.js.gz +0 -0
  343. package/studio/chunks/utils-mdScC0v0.js +59 -0
  344. package/studio/chunks/utils-mdScC0v0.js.br +0 -0
  345. package/studio/chunks/utils-mdScC0v0.js.gz +0 -0
  346. package/studio/chunks/virtualizer-D1S0bZ4t.js +781 -0
  347. package/studio/chunks/virtualizer-D1S0bZ4t.js.br +0 -0
  348. package/studio/chunks/virtualizer-D1S0bZ4t.js.gz +0 -0
  349. package/studio/help/64f767fe29c2-save-and-publish.svg +7 -0
  350. package/studio/host.css +1 -1
  351. package/studio/host.css.br +0 -0
  352. package/studio/host.css.gz +0 -0
  353. package/studio/host.js +8757 -39178
  354. package/studio/host.js.br +0 -0
  355. package/studio/host.js.gz +0 -0
  356. package/CHANGELOG.md +0 -13
  357. package/bin/cms.mjs +0 -2
  358. package/src/ApplicationTypes.d.ts +0 -84
  359. package/src/ApplicationTypes.js +0 -1
  360. package/src/Configuration-Da5B2PVH.js +0 -1191
  361. package/src/Configuration-Da5B2PVH.js.map +0 -1
  362. package/src/Configuration.d.ts +0 -82
  363. package/src/Configuration.js +0 -8
  364. package/src/Configuration.js.map +0 -1
  365. package/src/Content.d.ts +0 -68
  366. package/src/Content.js +0 -373
  367. package/src/Content.js.map +0 -1
  368. package/src/ContentTransfer-BxwswWn3.js +0 -86
  369. package/src/ContentTransfer-BxwswWn3.js.map +0 -1
  370. package/src/ContentTransfer-Z9FHyLez.d.ts +0 -72
  371. package/src/DocumentEngine-hh_IGPXO.js +0 -978
  372. package/src/DocumentEngine-hh_IGPXO.js.map +0 -1
  373. package/src/DocumentModel.d.ts +0 -52
  374. package/src/DocumentModel.js +0 -66
  375. package/src/DocumentModel.js.map +0 -1
  376. package/src/Forms-CX-hwmJF.js +0 -391
  377. package/src/Forms-CX-hwmJF.js.map +0 -1
  378. package/src/Forms-CfNPTiCr.js +0 -110
  379. package/src/Forms-CfNPTiCr.js.map +0 -1
  380. package/src/Forms-R0HoTR-o.d.ts +0 -92
  381. package/src/Forms.js.map +0 -1
  382. package/src/HttpPaths-c9nLZ9H2.js +0 -21
  383. package/src/HttpPaths-c9nLZ9H2.js.map +0 -1
  384. package/src/I18n-zbqpWxki.d.ts +0 -29
  385. package/src/Media-j1bTritO.js +0 -112
  386. package/src/Media-j1bTritO.js.map +0 -1
  387. package/src/Module.js.map +0 -1
  388. package/src/References-CCPDAPve.js +0 -45
  389. package/src/References-CCPDAPve.js.map +0 -1
  390. package/src/S3MediaObjects-Dwhl2deX.js +0 -2742
  391. package/src/S3MediaObjects-Dwhl2deX.js.map +0 -1
  392. package/src/Seo-402YumpT.d.ts +0 -198
  393. package/src/cli/content.js +0 -101
  394. package/src/cli/content.js.map +0 -1
  395. package/src/cli.js.map +0 -1
  396. package/src/connection-BP80q4d-.js +0 -92
  397. package/src/connection-BP80q4d-.js.map +0 -1
  398. package/src/dev-lifecycle-CjDq63Ft.js +0 -535
  399. package/src/dev-lifecycle-CjDq63Ft.js.map +0 -1
  400. package/src/installation-DYNQQBD3.js +0 -9114
  401. package/src/installation-DYNQQBD3.js.map +0 -1
  402. package/src/internal/application-types.js +0 -43
  403. package/src/internal/application-types.js.map +0 -1
  404. package/src/internal/authoring-catalog.js +0 -158
  405. package/src/internal/authoring-catalog.js.map +0 -1
  406. package/src/internal/authoring-compiler.js +0 -146
  407. package/src/internal/authoring-compiler.js.map +0 -1
  408. package/src/internal/authoring-metadata.js +0 -191
  409. package/src/internal/authoring-metadata.js.map +0 -1
  410. package/src/internal/cms-config.js +0 -45
  411. package/src/internal/cms-config.js.map +0 -1
  412. package/src/internal/configuration.js +0 -228
  413. package/src/internal/configuration.js.map +0 -1
  414. package/src/internal/dev-lifecycle.js +0 -3
  415. package/src/internal/diagnostics.js +0 -47
  416. package/src/internal/diagnostics.js.map +0 -1
  417. package/src/internal/document-model.js +0 -376
  418. package/src/internal/document-model.js.map +0 -1
  419. package/src/internal/field-metadata.js +0 -7
  420. package/src/internal/field-metadata.js.map +0 -1
  421. package/src/internal/form-capabilities.js +0 -12
  422. package/src/internal/form-capabilities.js.map +0 -1
  423. package/src/internal/i18n.js +0 -73
  424. package/src/internal/i18n.js.map +0 -1
  425. package/src/internal/studio-app.js +0 -68
  426. package/src/internal/studio-app.js.map +0 -1
  427. package/src/location-CMNGO3lU.js +0 -35
  428. package/src/location-CMNGO3lU.js.map +0 -1
  429. package/src/metadata-DN9_K6Yl.js +0 -201
  430. package/src/metadata-DN9_K6Yl.js.map +0 -1
  431. package/src/models-5j67LMqW.js +0 -131
  432. package/src/models-5j67LMqW.js.map +0 -1
  433. package/src/models-VmGmG19-.js +0 -628
  434. package/src/models-VmGmG19-.js.map +0 -1
  435. package/src/runtime/api.js.map +0 -1
  436. package/src/runtime/blocks.js +0 -30
  437. package/src/runtime/blocks.js.map +0 -1
  438. package/src/runtime/collaboration.js +0 -45
  439. package/src/runtime/collaboration.js.map +0 -1
  440. package/src/runtime/delivery/DocumentField.js +0 -23
  441. package/src/runtime/delivery/DocumentField.js.map +0 -1
  442. package/src/runtime/delivery/DocumentRenderer.js +0 -61
  443. package/src/runtime/delivery/DocumentRenderer.js.map +0 -1
  444. package/src/runtime/delivery/DocumentScope.js +0 -41
  445. package/src/runtime/delivery/DocumentScope.js.map +0 -1
  446. package/src/runtime/delivery/blocks.js +0 -8
  447. package/src/runtime/delivery/blocks.js.map +0 -1
  448. package/src/runtime/delivery/context.js +0 -12
  449. package/src/runtime/delivery/context.js.map +0 -1
  450. package/src/runtime/delivery/document-page.js +0 -21
  451. package/src/runtime/delivery/document-page.js.map +0 -1
  452. package/src/runtime/delivery/document.js +0 -43
  453. package/src/runtime/delivery/document.js.map +0 -1
  454. package/src/runtime/delivery/error.js +0 -11
  455. package/src/runtime/delivery/error.js.map +0 -1
  456. package/src/runtime/delivery/plugin.js +0 -99
  457. package/src/runtime/delivery/plugin.js.map +0 -1
  458. package/src/runtime/delivery/preview.d.ts +0 -11
  459. package/src/runtime/delivery/preview.js +0 -6
  460. package/src/runtime/delivery/preview.js.map +0 -1
  461. package/src/runtime/delivery/types.d.ts +0 -2
  462. package/src/runtime/delivery/types.js +0 -1
  463. package/src/runtime/delivery/useCmsDocumentSeo.d.ts +0 -67
  464. package/src/runtime/delivery/useCmsDocumentSeo.js.map +0 -1
  465. package/src/runtime/delivery/useDocument.d.ts +0 -6
  466. package/src/runtime/delivery/useDocument.js +0 -23
  467. package/src/runtime/delivery/useDocument.js.map +0 -1
  468. package/src/runtime/delivery/useDocumentQuery.d.ts +0 -7
  469. package/src/runtime/delivery/useDocumentQuery.js +0 -29
  470. package/src/runtime/delivery/useDocumentQuery.js.map +0 -1
  471. package/src/runtime/forms/document.js +0 -38
  472. package/src/runtime/forms/document.js.map +0 -1
  473. package/src/runtime/forms/useCmsForm.js +0 -257
  474. package/src/runtime/forms/useCmsForm.js.map +0 -1
  475. package/src/runtime/i18n/translator.js +0 -51
  476. package/src/runtime/i18n/translator.js.map +0 -1
  477. package/src/runtime/i18n/useCmsI18n.d.ts +0 -13
  478. package/src/runtime/i18n/useCmsI18n.js +0 -38
  479. package/src/runtime/i18n/useCmsI18n.js.map +0 -1
  480. package/src/runtime/installation.js +0 -3
  481. package/src/runtime/plugin.js.map +0 -1
  482. package/src/runtime/preview/CmsStudioPreviewMarker.js +0 -29
  483. package/src/runtime/preview/CmsStudioPreviewMarker.js.map +0 -1
  484. package/src/runtime/preview/comark-document.js +0 -37
  485. package/src/runtime/preview/comark-document.js.map +0 -1
  486. package/src/runtime/preview/connection.js +0 -3
  487. package/src/runtime/preview/controller.js +0 -265
  488. package/src/runtime/preview/controller.js.map +0 -1
  489. package/src/runtime/preview/crypto.js +0 -16
  490. package/src/runtime/preview/crypto.js.map +0 -1
  491. package/src/runtime/preview/overlay.js +0 -122
  492. package/src/runtime/preview/overlay.js.map +0 -1
  493. package/src/runtime/preview/plugin.client.js +0 -68
  494. package/src/runtime/preview/plugin.client.js.map +0 -1
  495. package/src/runtime/preview/preview.css +0 -91
  496. package/src/runtime/preview/protocol.d.ts +0 -16
  497. package/src/runtime/preview/protocol.js +0 -23
  498. package/src/runtime/preview/protocol.js.map +0 -1
  499. package/src/runtime/preview/regions.js +0 -142
  500. package/src/runtime/preview/regions.js.map +0 -1
  501. package/src/runtime/preview/store.js +0 -4
  502. package/src/runtime/sitemap-entries.js +0 -17
  503. package/src/runtime/sitemap-entries.js.map +0 -1
  504. package/src/runtime/sitemap.js +0 -23
  505. package/src/runtime/sitemap.js.map +0 -1
  506. package/src/runtime/studio-app.js +0 -17
  507. package/src/runtime/studio-app.js.map +0 -1
  508. package/src/runtime/studio-document.js +0 -46
  509. package/src/runtime/studio-document.js.map +0 -1
  510. package/src/runtime/studio-entry.js +0 -19
  511. package/src/runtime/studio-entry.js.map +0 -1
  512. package/src/runtime/studio-navigation.js +0 -11
  513. package/src/runtime/studio-navigation.js.map +0 -1
  514. package/src/scalars-CA6kyipS.d.ts +0 -7
  515. package/src/scalars-CVZqT3L0.js +0 -22
  516. package/src/scalars-CVZqT3L0.js.map +0 -1
  517. package/src/store-X1e1o_MF.js +0 -209
  518. package/src/store-X1e1o_MF.js.map +0 -1
  519. package/src/types-DZ0IV-Ow.d.ts +0 -101
  520. package/studio/CreateDocumentDialog-BpjBYGfI.js +0 -335
  521. package/studio/SelectMenu-KiXwx4Y_.js +0 -34032
  522. package/studio/collaboration-DcK2F6v9.js +0 -4566
  523. package/studio/editor-P2rB7Csp.js +0 -30128
  524. package/studio/rolldown-runtime-Dy4uBu1J.js +0 -11
@@ -0,0 +1,2413 @@
1
+ import { $ as e, B as t, Bt as n, E as r, H as i, J as a, Lt as o, Wt as s, Z as c, _ as l, b as u, c as d, g as f, h as p, m, ot as h, pt as g, qt as _, s as v, t as y, tn as b, tt as x, v as S, y as ee, zt as C } from "./Button-BT3ztSPx.js";
2
+ import { b as te } from "./useApi-CUWMwLLw-B3Q3g2nf.js";
3
+ import { $t as w, A as T, B as ne, Ci as E, Cr as D, E as O, K as k, M as A, N as j, Nn as re, Or as M, Pn as N, Qt as P, R as ie, Si as F, V as I, aa as L, en as ae, fa as R, fr as oe, gi as se, gn as z, hr as ce, ii as le, k as ue, mr as de, o as fe, pt as pe, ra as B, ui as me, vi as V } from "./runtime-core.esm-bundler-DKFA9Rep.js";
4
+ import { n as he, o as H } from "./base-DkTekJe8.js";
5
+ import { n as U, t as ge } from "./Kbd-Ot7TIhVZ.js";
6
+ import { n as _e } from "./overlay-DnqFLZTc.js";
7
+ import { a as ve, c as ye, i as be, l as xe, n as Se, o as W, r as Ce, s as we, t as Te } from "./virtualizer-D1S0bZ4t.js";
8
+ import { t as Ee } from "./Modal-D6hSvxHd.js";
9
+ //#region ../../node_modules/.pnpm/@nuxt+ui@4.11.3_cb98d253b9bf6e94cc4ec1fe3cbbcc2e/node_modules/@nuxt/ui/dist/runtime/composables/defineShortcuts.js
10
+ var De = /^[^-]+.*-.*[^-]+$/, Oe = /^[^_]+.*_.*[^_]+$/, G = [
11
+ "arrowleft",
12
+ "arrowright",
13
+ "arrowup",
14
+ "arrowdown",
15
+ "tab",
16
+ "escape",
17
+ "enter",
18
+ "backspace"
19
+ ];
20
+ function K(e) {
21
+ return /^[a-z]$/i.test(e) ? `Key${e.toUpperCase()}` : /^\d$/.test(e) ? `Digit${e}` : /^f\d+$/i.test(e) ? e.toUpperCase() : {
22
+ space: "Space",
23
+ enter: "Enter",
24
+ escape: "Escape",
25
+ tab: "Tab",
26
+ backspace: "Backspace",
27
+ delete: "Delete",
28
+ arrowup: "ArrowUp",
29
+ arrowdown: "ArrowDown",
30
+ arrowleft: "ArrowLeft",
31
+ arrowright: "ArrowRight"
32
+ }[e.toLowerCase()] || e;
33
+ }
34
+ function ke(e, t = {}) {
35
+ let n = t.chainDelay ?? 800, r = le([]), i = () => {
36
+ r.value.splice(0, r.value.length);
37
+ }, a = s(i, n), o, c = () => {
38
+ o = void 0, u.stop();
39
+ }, l = () => {
40
+ let e = o;
41
+ if (c(), !e) return;
42
+ let t = S.value.find((t) => t.key === e.shortcut.key && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey);
43
+ t?.enabled && t.handler(e.event);
44
+ }, u = _(() => {
45
+ l(), i();
46
+ }, n, { immediate: !1 }), { macOS: d } = U(), f = h(), p = t.layoutIndependent ?? !1, m = G.map((e) => K(e)), v = (e) => {
47
+ if (!e.key) return;
48
+ let t = p || e.altKey, n = t ? /^Key[A-Z]$/i.test(e.code) : /^[a-z]{1}$/i.test(e.key), s = t ? m.includes(e.code) : G.includes(e.key.toLowerCase()), d;
49
+ if (r.value.push(p ? e.code : e.key), r.value.length >= 2) {
50
+ d = r.value.slice(-2).join("-");
51
+ for (let t of x.value) if (t.key === d) {
52
+ t.enabled ? (c(), e.preventDefault(), t.handler(e)) : l(), i();
53
+ return;
54
+ }
55
+ }
56
+ l();
57
+ for (let t of S.value) {
58
+ if (p) {
59
+ if (e.code !== t.key) continue;
60
+ } else if (t.altKey && e.altKey) {
61
+ if (e.code !== K(t.key)) continue;
62
+ } else if (e.key.toLowerCase() !== t.key) continue;
63
+ if (e.metaKey === t.metaKey && e.ctrlKey === t.ctrlKey && e.altKey === t.altKey && !((n || s || t.shiftKey || e.shiftKey && (e.metaKey || e.ctrlKey)) && e.shiftKey !== t.shiftKey)) {
64
+ if (!t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey && ee.value.has(t.key)) {
65
+ t.enabled && e.preventDefault(), o = {
66
+ shortcut: t,
67
+ event: e
68
+ }, u.start();
69
+ return;
70
+ }
71
+ t.enabled && (e.preventDefault(), t.handler(e)), i();
72
+ return;
73
+ }
74
+ }
75
+ a();
76
+ }, y = O(() => {
77
+ let e = f.value?.tagName, t = f.value?.contentEditable;
78
+ return e === "INPUT" || e === "TEXTAREA" || t === "true" || t === "plaintext-only" ? f.value?.name || !0 : !1;
79
+ }), b = O(() => Object.entries(V(e)).map(([e, t]) => {
80
+ if (!t) return null;
81
+ let n;
82
+ e.includes("-") && e !== "-" && !e.includes("_") && !e.match(De)?.length && console.trace(`[Shortcut] Invalid key: "${e}"`), e.includes("_") && e !== "_" && !e.match(Oe)?.length && console.trace(`[Shortcut] Invalid key: "${e}"`);
83
+ let r = e.includes("-") && e !== "-" && !e.includes("_");
84
+ if (r) n = p ? {
85
+ key: e.split("-").map((e) => K(e)).join("-"),
86
+ metaKey: !1,
87
+ ctrlKey: !1,
88
+ shiftKey: !1,
89
+ altKey: !1
90
+ } : {
91
+ key: e.toLowerCase(),
92
+ metaKey: !1,
93
+ ctrlKey: !1,
94
+ shiftKey: !1,
95
+ altKey: !1
96
+ };
97
+ else {
98
+ let t = e.toLowerCase().split("_").map((e) => e), r = t.filter((e) => ![
99
+ "meta",
100
+ "command",
101
+ "ctrl",
102
+ "shift",
103
+ "alt",
104
+ "option"
105
+ ].includes(e)).join("_");
106
+ p && (r = K(r)), n = {
107
+ key: r,
108
+ metaKey: t.includes("meta") || t.includes("command"),
109
+ ctrlKey: t.includes("ctrl"),
110
+ shiftKey: t.includes("shift"),
111
+ altKey: t.includes("alt") || t.includes("option")
112
+ };
113
+ }
114
+ if (n.chained = r, !d.value && n.metaKey && !n.ctrlKey && (n.metaKey = !1, n.ctrlKey = !0), typeof t == "function" ? n.handler = t : typeof t == "object" && (n = {
115
+ ...n,
116
+ handler: t.handler
117
+ }), !n.handler) return console.trace("[Shortcut] Invalid value"), null;
118
+ let i = !0;
119
+ return t.usingInput ? typeof t.usingInput == "string" && (i = y.value === t.usingInput) : i = !y.value, n.enabled = i, n;
120
+ }).filter(Boolean)), x = O(() => b.value.filter((e) => e.chained)), S = O(() => b.value.filter((e) => !e.chained)), ee = O(() => new Set(x.value.map((e) => e.key.split("-")[0])));
121
+ return g("keydown", v);
122
+ }
123
+ //#endregion
124
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.6.0-rc.10_typescript-native-bridge@6.0.3-bridge.18.tsgo.7.0.2_/node_modules/reka-ui/dist/Listbox/ListboxGroupLabel.js
125
+ var Ae = /* @__PURE__ */ k({
126
+ __name: "ListboxGroupLabel",
127
+ props: {
128
+ for: {
129
+ type: String,
130
+ required: !1
131
+ },
132
+ asChild: {
133
+ type: Boolean,
134
+ required: !1
135
+ },
136
+ as: {
137
+ type: null,
138
+ required: !1,
139
+ default: "div"
140
+ }
141
+ },
142
+ setup(e) {
143
+ let t = e, n = W({ id: "" });
144
+ return (e, i) => (z(), T(E(r), w(t, { id: E(n).id }), {
145
+ default: M(() => [N(e.$slots, "default")]),
146
+ _: 3
147
+ }, 16, ["id"]));
148
+ }
149
+ }), je = {
150
+ "&": "&",
151
+ "<": "&lt;",
152
+ ">": "&gt;",
153
+ "\"": "&quot;",
154
+ "'": "&#39;"
155
+ };
156
+ function q(e) {
157
+ return e.replace(/[&<>"']/g, (e) => je[e]);
158
+ }
159
+ function Me(e, t) {
160
+ let n = "", r = 0, i = !1, a = Array.from(e);
161
+ for (let e = a.length - 1; e >= 0; e--) {
162
+ let o = a[e];
163
+ if (o === ">") i = !0;
164
+ else if (o === "<") {
165
+ i = !1, n = o + n;
166
+ continue;
167
+ }
168
+ if (i || r++, r <= t) n = o + n;
169
+ else {
170
+ n = "..." + n;
171
+ break;
172
+ }
173
+ }
174
+ return n;
175
+ }
176
+ function Ne(e, t, n, r, i) {
177
+ let a = i && t.match(/[\p{L}\p{M}\p{N}_]+/gu) || [], o = a.length > 0 ? Math.min(...a.map((e) => e.length)) : t.length;
178
+ function s(e, t = []) {
179
+ e ||= "";
180
+ let n = "", r = 0;
181
+ t.forEach((t) => {
182
+ if (t.length === 2 && t[0] === t[1]) return;
183
+ let i = t[1] + 1, a = i - t[0] >= o;
184
+ n += [
185
+ q(e.substring(r, t[0])),
186
+ a && "<mark>",
187
+ q(e.substring(t[0], i)),
188
+ a && "</mark>"
189
+ ].filter(Boolean).join(""), r = i;
190
+ }), n += q(e.substring(r));
191
+ let i = n.indexOf("<mark>");
192
+ return i !== -1 && (n = Me(n, Array.from(n.slice(i)).length)), n;
193
+ }
194
+ if (e.matches?.length) {
195
+ for (let t of e.matches) if (!(n && t.key !== n) && !r?.includes(t.key)) return s(t.value, t.indices);
196
+ }
197
+ }
198
+ //#endregion
199
+ //#region ../../node_modules/.pnpm/fuse.js@7.5.0/node_modules/fuse.js/dist/fuse.mjs
200
+ function J(e) {
201
+ return Array.isArray ? Array.isArray(e) : Be(e) === "[object Array]";
202
+ }
203
+ function Pe(e) {
204
+ if (typeof e == "string") return e;
205
+ if (typeof e == "bigint") return e.toString();
206
+ let t = e + "";
207
+ return t == "0" && 1 / e == -Infinity ? "-0" : t;
208
+ }
209
+ function Y(e) {
210
+ return e == null ? "" : Pe(e);
211
+ }
212
+ function X(e) {
213
+ return typeof e == "string";
214
+ }
215
+ function Fe(e) {
216
+ return typeof e == "number";
217
+ }
218
+ function Ie(e) {
219
+ return e === !0 || e === !1 || Re(e) && Be(e) == "[object Boolean]";
220
+ }
221
+ function Le(e) {
222
+ return typeof e == "object";
223
+ }
224
+ function Re(e) {
225
+ return Le(e) && e !== null;
226
+ }
227
+ function Z(e) {
228
+ return e != null;
229
+ }
230
+ function ze(e) {
231
+ return !e.trim().length;
232
+ }
233
+ function Be(e) {
234
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
235
+ }
236
+ var Ve = "Incorrect 'index' type", He = "Invalid doc index: must be a non-negative integer within the bounds of the docs array", Ue = (e) => `Invalid value for key ${e}`, We = (e) => `Pattern length exceeds max of ${e}.`, Ge = (e) => `Missing ${e} property in key`, Ke = (e) => `Property 'weight' in key '${e}' must be a positive integer`, qe = "Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.", Je = Object.prototype.hasOwnProperty, Ye = class {
237
+ constructor(e) {
238
+ this._keys = [], this._keyMap = {};
239
+ let t = 0;
240
+ e.forEach((e) => {
241
+ let n = Xe(e);
242
+ this._keys.push(n), this._keyMap[n.id] = n, t += n.weight;
243
+ }), this._keys.forEach((e) => {
244
+ e.weight /= t;
245
+ });
246
+ }
247
+ get(e) {
248
+ return this._keyMap[e];
249
+ }
250
+ keys() {
251
+ return this._keys;
252
+ }
253
+ toJSON() {
254
+ return JSON.stringify(this._keys);
255
+ }
256
+ };
257
+ function Xe(e) {
258
+ let t = null, n = null, r = null, i = 1, a = null;
259
+ if (X(e) || J(e)) r = e, t = Ze(e), n = Qe(e);
260
+ else {
261
+ if (!Je.call(e, "name")) throw Error(Ge("name"));
262
+ let o = e.name;
263
+ if (r = o, Je.call(e, "weight") && e.weight !== void 0 && (i = e.weight, i <= 0)) throw Error(Ke(Qe(o)));
264
+ t = Ze(o), n = Qe(o), a = e.getFn ?? null;
265
+ }
266
+ return {
267
+ path: t,
268
+ id: n,
269
+ weight: i,
270
+ src: r,
271
+ getFn: a
272
+ };
273
+ }
274
+ function Ze(e) {
275
+ return J(e) ? e : e.split(".");
276
+ }
277
+ function Qe(e) {
278
+ return J(e) ? e.join(".") : e;
279
+ }
280
+ function $e(e, t) {
281
+ let n = [], r = !1, i = (e, t, a, o) => {
282
+ if (Z(e)) {
283
+ if (!t[a]) n.push(o === void 0 ? e : {
284
+ v: e,
285
+ i: o
286
+ });
287
+ else {
288
+ let s = e[t[a]];
289
+ if (!Z(s)) return;
290
+ if (a === t.length - 1 && (X(s) || Fe(s) || Ie(s) || typeof s == "bigint")) n.push(o === void 0 ? Y(s) : {
291
+ v: Y(s),
292
+ i: o
293
+ });
294
+ else if (J(s)) {
295
+ r = !0;
296
+ for (let e = 0, n = s.length; e < n; e += 1) i(s[e], t, a + 1, e);
297
+ } else t.length && i(s, t, a + 1, o);
298
+ }
299
+ }
300
+ };
301
+ return i(e, X(t) ? t.split(".") : t, 0), r ? n : n[0];
302
+ }
303
+ var et = {
304
+ includeMatches: !1,
305
+ findAllMatches: !1,
306
+ minMatchCharLength: 1
307
+ }, tt = {
308
+ isCaseSensitive: !1,
309
+ ignoreDiacritics: !1,
310
+ includeScore: !1,
311
+ keys: [],
312
+ shouldSort: !0,
313
+ sortFn: (e, t) => e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1
314
+ }, nt = {
315
+ location: 0,
316
+ threshold: .6,
317
+ distance: 100
318
+ }, rt = {
319
+ useExtendedSearch: !1,
320
+ useTokenSearch: !1,
321
+ tokenize: void 0,
322
+ tokenMatch: "any",
323
+ getFn: $e,
324
+ ignoreLocation: !1,
325
+ ignoreFieldNorm: !1,
326
+ fieldNormWeight: 1
327
+ }, Q = Object.freeze({
328
+ ...tt,
329
+ ...et,
330
+ ...nt,
331
+ ...rt
332
+ });
333
+ function it(e) {
334
+ return e >= 9 && e <= 13 || e === 32 || e === 160;
335
+ }
336
+ function at(e = 1, t = 3) {
337
+ let n = /* @__PURE__ */ new Map(), r = 10 ** t;
338
+ return {
339
+ get(t) {
340
+ let i = 0, a = !1;
341
+ for (let e = 0; e < t.length; e++) it(t.charCodeAt(e)) ? a = !1 : a ||= (i++, !0);
342
+ if (i === 0 && (i = 1), n.has(i)) return n.get(i);
343
+ let o = Math.round(r / i ** (.5 * e)) / r;
344
+ return n.set(i, o), o;
345
+ },
346
+ clear() {
347
+ n.clear();
348
+ }
349
+ };
350
+ }
351
+ var ot = class {
352
+ constructor({ getFn: e = Q.getFn, fieldNormWeight: t = Q.fieldNormWeight } = {}) {
353
+ this.norm = at(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
354
+ }
355
+ setSources(e = []) {
356
+ this.docs = e;
357
+ }
358
+ setIndexRecords(e = []) {
359
+ this.records = e;
360
+ }
361
+ setKeys(e = []) {
362
+ this.keys = e, this._keysMap = {}, e.forEach((e, t) => {
363
+ this._keysMap[e.id] = t;
364
+ });
365
+ }
366
+ create() {
367
+ if (this.isCreated || !this.docs.length) return;
368
+ this.isCreated = !0;
369
+ let e = this.docs.length;
370
+ this.records = Array(e);
371
+ let t = 0;
372
+ if (X(this.docs[0])) for (let n = 0; n < e; n++) {
373
+ let e = this._createStringRecord(this.docs[n], n);
374
+ e && (this.records[t++] = e);
375
+ }
376
+ else for (let n = 0; n < e; n++) this.records[t++] = this._createObjectRecord(this.docs[n], n);
377
+ this.records.length = t, this.norm.clear();
378
+ }
379
+ add(e, t) {
380
+ if (!Number.isInteger(t) || t < 0) throw Error(He);
381
+ if (X(e)) {
382
+ let n = this._createStringRecord(e, t);
383
+ return n && this.records.push(n), n;
384
+ }
385
+ let n = this._createObjectRecord(e, t);
386
+ return this.records.push(n), n;
387
+ }
388
+ removeAt(e) {
389
+ if (!Number.isInteger(e) || e < 0) throw Error(He);
390
+ for (let t = 0, n = this.records.length; t < n; t += 1) if (this.records[t].i === e) {
391
+ this.records.splice(t, 1);
392
+ break;
393
+ }
394
+ for (let t = 0, n = this.records.length; t < n; t += 1) this.records[t].i > e && --this.records[t].i;
395
+ }
396
+ removeAll(e) {
397
+ let t = /* @__PURE__ */ new Set();
398
+ for (let n of e) Number.isInteger(n) && n >= 0 && t.add(n);
399
+ if (t.size === 0) return;
400
+ this.records = this.records.filter((e) => !t.has(e.i));
401
+ let n = Array.from(t).sort((e, t) => e - t);
402
+ for (let e of this.records) {
403
+ let t = 0, r = n.length;
404
+ for (; t < r;) {
405
+ let i = t + r >>> 1;
406
+ n[i] < e.i ? t = i + 1 : r = i;
407
+ }
408
+ e.i -= t;
409
+ }
410
+ }
411
+ getValueForItemAtKeyId(e, t) {
412
+ return e[this._keysMap[t]];
413
+ }
414
+ size() {
415
+ return this.records.length;
416
+ }
417
+ _createStringRecord(e, t) {
418
+ return !Z(e) || ze(e) ? null : {
419
+ v: e,
420
+ i: t,
421
+ n: this.norm.get(e)
422
+ };
423
+ }
424
+ _createObjectRecord(e, t) {
425
+ let n = {
426
+ i: t,
427
+ $: {}
428
+ };
429
+ for (let t = 0, r = this.keys.length; t < r; t++) {
430
+ let r = this.keys[t], i = r.getFn ? r.getFn(e) : this.getFn(e, r.path);
431
+ if (Z(i)) {
432
+ if (J(i)) {
433
+ let e = [];
434
+ for (let t = 0, n = i.length; t < n; t += 1) {
435
+ let n = i[t];
436
+ if (Z(n)) {
437
+ if (X(n)) {
438
+ if (!ze(n)) {
439
+ let r = {
440
+ v: n,
441
+ i: t,
442
+ n: this.norm.get(n)
443
+ };
444
+ e.push(r);
445
+ }
446
+ } else if (Z(n.v)) {
447
+ let t = X(n.v) ? n.v : Y(n.v);
448
+ if (!ze(t)) {
449
+ let r = {
450
+ v: t,
451
+ i: n.i,
452
+ n: this.norm.get(t)
453
+ };
454
+ e.push(r);
455
+ }
456
+ }
457
+ }
458
+ }
459
+ n.$[t] = e;
460
+ } else if (X(i) && !ze(i)) {
461
+ let e = {
462
+ v: i,
463
+ n: this.norm.get(i)
464
+ };
465
+ n.$[t] = e;
466
+ }
467
+ }
468
+ }
469
+ return n;
470
+ }
471
+ toJSON() {
472
+ return {
473
+ keys: this.keys.map(({ getFn: e, ...t }) => t),
474
+ records: this.records
475
+ };
476
+ }
477
+ };
478
+ function st(e, t, { getFn: n = Q.getFn, fieldNormWeight: r = Q.fieldNormWeight } = {}) {
479
+ let i = new ot({
480
+ getFn: n,
481
+ fieldNormWeight: r
482
+ });
483
+ return i.setKeys(e.map(Xe)), i.setSources(t), i.create(), i;
484
+ }
485
+ function ct(e, { getFn: t = Q.getFn, fieldNormWeight: n = Q.fieldNormWeight } = {}) {
486
+ let { keys: r, records: i } = e, a = new ot({
487
+ getFn: t,
488
+ fieldNormWeight: n
489
+ });
490
+ return a.setKeys(r), a.setIndexRecords(i), a;
491
+ }
492
+ function lt(e = [], t = Q.minMatchCharLength) {
493
+ let n = [], r = -1, i = -1, a = 0;
494
+ for (let o = e.length; a < o; a += 1) {
495
+ let o = e[a];
496
+ o && r === -1 ? r = a : !o && r !== -1 && (i = a - 1, i - r + 1 >= t && n.push([r, i]), r = -1);
497
+ }
498
+ return e[a - 1] && a - r >= t && n.push([r, a - 1]), n;
499
+ }
500
+ function ut(e, t, n, { location: r = Q.location, distance: i = Q.distance, threshold: a = Q.threshold, findAllMatches: o = Q.findAllMatches, minMatchCharLength: s = Q.minMatchCharLength, includeMatches: c = Q.includeMatches, ignoreLocation: l = Q.ignoreLocation } = {}) {
501
+ if (t.length > 32) throw Error(We(32));
502
+ let u = t.length, d = e.length, f = Math.max(0, Math.min(r, d)), p = a, m = f, h = (e, t) => {
503
+ let n = e / u;
504
+ if (l) return n;
505
+ let r = Math.abs(f - t);
506
+ return i ? n + r / i : r ? 1 : n;
507
+ }, g = s > 1 || c, _ = g ? Array(d) : [], v;
508
+ for (; (v = e.indexOf(t, m)) > -1;) {
509
+ let e = h(0, v);
510
+ if (p = Math.min(e, p), m = v + u, g) {
511
+ let e = 0;
512
+ for (; e < u;) _[v + e] = 1, e += 1;
513
+ }
514
+ }
515
+ m = -1;
516
+ let y = [], b = 1, x = 0, S = u + d, ee = 1 << u - 1;
517
+ for (let t = 0; t < u; t += 1) {
518
+ let r = 0, i = S;
519
+ for (; r < i;) h(t, f + i) <= p ? r = i : S = i, i = Math.floor((S - r) / 2 + r);
520
+ S = i;
521
+ let a = Math.max(1, f - i + 1), s = o ? d : Math.min(f + i, d) + u, c = Array(s + 2);
522
+ c[s + 1] = (1 << t) - 1;
523
+ for (let r = s; r >= a; --r) {
524
+ let i = r - 1, o = n[e[i]];
525
+ if (c[r] = (c[r + 1] << 1 | 1) & o, t && (c[r] |= (y[r + 1] | y[r]) << 1 | 1 | y[r + 1]), c[r] & ee && (b = h(t, i), b <= p)) {
526
+ if (p = b, m = i, x = t, m <= f) break;
527
+ a = Math.max(1, 2 * f - m);
528
+ }
529
+ }
530
+ if (h(t + 1, f) > p) break;
531
+ y = c;
532
+ }
533
+ if (g && m >= 0) {
534
+ let t = Math.min(d - 1, m + u - 1 + x);
535
+ for (let r = m; r <= t; r += 1) n[e[r]] && (_[r] = 1);
536
+ }
537
+ let C = {
538
+ isMatch: m >= 0,
539
+ score: Math.max(.001, b)
540
+ };
541
+ if (g) {
542
+ let e = lt(_, s);
543
+ e.length ? c && (C.indices = e) : C.isMatch = !1;
544
+ }
545
+ return C;
546
+ }
547
+ function dt(e) {
548
+ let t = {};
549
+ for (let n = 0, r = e.length; n < r; n += 1) {
550
+ let i = e.charAt(n);
551
+ t[i] = (t[i] || 0) | 1 << r - n - 1;
552
+ }
553
+ return t;
554
+ }
555
+ function ft(e) {
556
+ if (e.length <= 1) return e;
557
+ e.sort((e, t) => e[0] - t[0] || e[1] - t[1]);
558
+ let t = [e[0]];
559
+ for (let n = 1, r = e.length; n < r; n += 1) {
560
+ let r = t[t.length - 1], i = e[n];
561
+ i[0] <= r[1] + 1 ? r[1] = Math.max(r[1], i[1]) : t.push(i);
562
+ }
563
+ return t;
564
+ }
565
+ var pt = {
566
+ ł: "l",
567
+ Ł: "L",
568
+ đ: "d",
569
+ Đ: "D",
570
+ ø: "o",
571
+ Ø: "O",
572
+ ħ: "h",
573
+ Ħ: "H",
574
+ ŧ: "t",
575
+ Ŧ: "T",
576
+ ı: "i",
577
+ ß: "ss"
578
+ }, mt = RegExp("[" + Object.keys(pt).join("") + "]", "g"), ht = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(mt, (e) => pt[e]) : (e) => e, gt = class {
579
+ constructor(e, { location: t = Q.location, threshold: n = Q.threshold, distance: r = Q.distance, includeMatches: i = Q.includeMatches, findAllMatches: a = Q.findAllMatches, minMatchCharLength: o = Q.minMatchCharLength, isCaseSensitive: s = Q.isCaseSensitive, ignoreDiacritics: c = Q.ignoreDiacritics, ignoreLocation: l = Q.ignoreLocation } = {}) {
580
+ if (this.options = {
581
+ location: t,
582
+ threshold: n,
583
+ distance: r,
584
+ includeMatches: i,
585
+ findAllMatches: a,
586
+ minMatchCharLength: o,
587
+ isCaseSensitive: s,
588
+ ignoreDiacritics: c,
589
+ ignoreLocation: l
590
+ }, e = s ? e : e.toLowerCase(), e = c ? ht(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
591
+ let u = (e, t) => {
592
+ this.chunks.push({
593
+ pattern: e,
594
+ alphabet: dt(e),
595
+ startIndex: t
596
+ });
597
+ }, d = this.pattern.length;
598
+ if (d > 32) {
599
+ let e = 0, t = d % 32, n = d - t;
600
+ for (; e < n;) u(this.pattern.substr(e, 32), e), e += 32;
601
+ if (t) {
602
+ let e = d - 32;
603
+ u(this.pattern.substr(e), e);
604
+ }
605
+ } else u(this.pattern, 0);
606
+ }
607
+ searchIn(e) {
608
+ let { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
609
+ if (e = t ? e : e.toLowerCase(), e = n ? ht(e) : e, this.pattern === e) {
610
+ if (e.length < this.options.minMatchCharLength) return {
611
+ isMatch: !1,
612
+ score: 1
613
+ };
614
+ let t = {
615
+ isMatch: !0,
616
+ score: 0
617
+ };
618
+ return r && (t.indices = [[0, e.length - 1]]), t;
619
+ }
620
+ let { location: i, distance: a, threshold: o, findAllMatches: s, minMatchCharLength: c, ignoreLocation: l } = this.options, u = [], d = 0, f = !1;
621
+ this.chunks.forEach(({ pattern: t, alphabet: n, startIndex: p }) => {
622
+ let { isMatch: m, score: h, indices: g } = ut(e, t, n, {
623
+ location: i + p,
624
+ distance: a,
625
+ threshold: o,
626
+ findAllMatches: s,
627
+ minMatchCharLength: c,
628
+ includeMatches: r,
629
+ ignoreLocation: l
630
+ });
631
+ m && (f = !0), d += h, m && g && u.push(...g);
632
+ });
633
+ let p = {
634
+ isMatch: f,
635
+ score: f ? d / this.chunks.length : 1
636
+ };
637
+ return f && r && (p.indices = ft(u)), p;
638
+ }
639
+ }, _t = /* @__PURE__ */ new Set(["fuzzy", "include"]);
640
+ function vt(e) {
641
+ return e.startsWith("inverse");
642
+ }
643
+ var yt = [
644
+ {
645
+ type: "exact",
646
+ multiRegex: /^="(.*)"$/,
647
+ singleRegex: /^=(.*)$/,
648
+ create: (e) => ({
649
+ type: "exact",
650
+ search(t) {
651
+ let n = t === e;
652
+ return {
653
+ isMatch: n,
654
+ score: +!n,
655
+ indices: [0, e.length - 1]
656
+ };
657
+ }
658
+ })
659
+ },
660
+ {
661
+ type: "include",
662
+ multiRegex: /^'"(.*)"$/,
663
+ singleRegex: /^'(.*)$/,
664
+ create: (e) => ({
665
+ type: "include",
666
+ search(t) {
667
+ let n = 0, r, i = [], a = e.length;
668
+ for (; (r = t.indexOf(e, n)) > -1;) n = r + a, i.push([r, n - 1]);
669
+ let o = !!i.length;
670
+ return {
671
+ isMatch: o,
672
+ score: +!o,
673
+ indices: i
674
+ };
675
+ }
676
+ })
677
+ },
678
+ {
679
+ type: "prefix-exact",
680
+ multiRegex: /^\^"(.*)"$/,
681
+ singleRegex: /^\^(.*)$/,
682
+ create: (e) => ({
683
+ type: "prefix-exact",
684
+ search(t) {
685
+ let n = t.startsWith(e);
686
+ return {
687
+ isMatch: n,
688
+ score: +!n,
689
+ indices: [0, e.length - 1]
690
+ };
691
+ }
692
+ })
693
+ },
694
+ {
695
+ type: "inverse-prefix-exact",
696
+ multiRegex: /^!\^"(.*)"$/,
697
+ singleRegex: /^!\^(.*)$/,
698
+ create: (e) => ({
699
+ type: "inverse-prefix-exact",
700
+ search(t) {
701
+ let n = !t.startsWith(e);
702
+ return {
703
+ isMatch: n,
704
+ score: +!n,
705
+ indices: [0, t.length - 1]
706
+ };
707
+ }
708
+ })
709
+ },
710
+ {
711
+ type: "inverse-suffix-exact",
712
+ multiRegex: /^!"(.*)"\$$/,
713
+ singleRegex: /^!(.*)\$$/,
714
+ create: (e) => ({
715
+ type: "inverse-suffix-exact",
716
+ search(t) {
717
+ let n = !t.endsWith(e);
718
+ return {
719
+ isMatch: n,
720
+ score: +!n,
721
+ indices: [0, t.length - 1]
722
+ };
723
+ }
724
+ })
725
+ },
726
+ {
727
+ type: "suffix-exact",
728
+ multiRegex: /^"(.*)"\$$/,
729
+ singleRegex: /^(.*)\$$/,
730
+ create: (e) => ({
731
+ type: "suffix-exact",
732
+ search(t) {
733
+ let n = t.endsWith(e);
734
+ return {
735
+ isMatch: n,
736
+ score: +!n,
737
+ indices: [t.length - e.length, t.length - 1]
738
+ };
739
+ }
740
+ })
741
+ },
742
+ {
743
+ type: "inverse-exact",
744
+ multiRegex: /^!"(.*)"$/,
745
+ singleRegex: /^!(.*)$/,
746
+ create: (e) => ({
747
+ type: "inverse-exact",
748
+ search(t) {
749
+ let n = t.indexOf(e) === -1;
750
+ return {
751
+ isMatch: n,
752
+ score: +!n,
753
+ indices: [0, t.length - 1]
754
+ };
755
+ }
756
+ })
757
+ },
758
+ {
759
+ type: "fuzzy",
760
+ multiRegex: /^"(.*)"$/,
761
+ singleRegex: /^(.*)$/,
762
+ create: (e, t = {}) => {
763
+ let n = new gt(e, {
764
+ location: t.location ?? Q.location,
765
+ threshold: t.threshold ?? Q.threshold,
766
+ distance: t.distance ?? Q.distance,
767
+ includeMatches: t.includeMatches ?? Q.includeMatches,
768
+ findAllMatches: t.findAllMatches ?? Q.findAllMatches,
769
+ minMatchCharLength: t.minMatchCharLength ?? Q.minMatchCharLength,
770
+ isCaseSensitive: t.isCaseSensitive ?? Q.isCaseSensitive,
771
+ ignoreDiacritics: t.ignoreDiacritics ?? Q.ignoreDiacritics,
772
+ ignoreLocation: t.ignoreLocation ?? Q.ignoreLocation
773
+ });
774
+ return {
775
+ type: "fuzzy",
776
+ search(e) {
777
+ return n.searchIn(e);
778
+ }
779
+ };
780
+ }
781
+ }
782
+ ], bt = yt.length, xt = "\0", St = "|";
783
+ function Ct(e) {
784
+ let t = [], n = e.length, r = 0;
785
+ for (; r < n;) {
786
+ for (; r < n && e[r] === " ";) r++;
787
+ if (r >= n) break;
788
+ let i = r;
789
+ for (; i < n && e[i] !== " " && e[i] !== "\"";) i++;
790
+ if (i < n && e[i] === "\"") {
791
+ for (i++; i < n;) {
792
+ if (e[i] === "\"") {
793
+ let t = i + 1;
794
+ if (t >= n || e[t] === " ") {
795
+ i++;
796
+ break;
797
+ }
798
+ if (e[t] === "$" && (t + 1 >= n || e[t + 1] === " ")) {
799
+ i += 2;
800
+ break;
801
+ }
802
+ }
803
+ i++;
804
+ }
805
+ t.push(e.substring(r, i)), r = i;
806
+ } else {
807
+ for (; i < n && e[i] !== " ";) i++;
808
+ t.push(e.substring(r, i)), r = i;
809
+ }
810
+ }
811
+ return t;
812
+ }
813
+ function wt(e, t) {
814
+ let n = e.match(t);
815
+ return n ? n[1] : null;
816
+ }
817
+ function Tt(e, t = {}) {
818
+ return e.replace(/\\\|/g, xt).split(St).map((e) => {
819
+ let n = Ct(e.replace(/\u0000/g, "|").trim()).filter((e) => e && !!e.trim()), r = [];
820
+ for (let e = 0, i = n.length; e < i; e += 1) {
821
+ let i = n[e], a = !1, o = -1;
822
+ for (; !a && ++o < bt;) {
823
+ let e = yt[o], n = wt(i, e.multiRegex);
824
+ n && (r.push(e.create(n, t)), a = !0);
825
+ }
826
+ if (!a) for (o = -1; ++o < bt;) {
827
+ let e = yt[o], n = wt(i, e.singleRegex);
828
+ if (n) {
829
+ r.push(e.create(n, t));
830
+ break;
831
+ }
832
+ }
833
+ }
834
+ return r;
835
+ });
836
+ }
837
+ var Et = class {
838
+ constructor(e, { isCaseSensitive: t = Q.isCaseSensitive, ignoreDiacritics: n = Q.ignoreDiacritics, includeMatches: r = Q.includeMatches, minMatchCharLength: i = Q.minMatchCharLength, ignoreLocation: a = Q.ignoreLocation, findAllMatches: o = Q.findAllMatches, location: s = Q.location, threshold: c = Q.threshold, distance: l = Q.distance } = {}) {
839
+ this.query = null, this.options = {
840
+ isCaseSensitive: t,
841
+ ignoreDiacritics: n,
842
+ includeMatches: r,
843
+ minMatchCharLength: i,
844
+ findAllMatches: o,
845
+ ignoreLocation: a,
846
+ location: s,
847
+ threshold: c,
848
+ distance: l
849
+ }, e = t ? e : e.toLowerCase(), e = n ? ht(e) : e, this.pattern = e, this.query = Tt(this.pattern, this.options);
850
+ }
851
+ static condition(e, t) {
852
+ return t.useExtendedSearch;
853
+ }
854
+ searchIn(e) {
855
+ let t = this.query;
856
+ if (!t) return {
857
+ isMatch: !1,
858
+ score: 1
859
+ };
860
+ let { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: i } = this.options;
861
+ e = r ? e : e.toLowerCase(), e = i ? ht(e) : e;
862
+ let a = 0, o = [], s = 0, c = !1;
863
+ for (let r = 0, i = t.length; r < i; r += 1) {
864
+ let i = t[r];
865
+ o.length = 0, a = 0, c = !1;
866
+ for (let t = 0, r = i.length; t < r; t += 1) {
867
+ let r = i[t], { isMatch: l, indices: u, score: d } = r.search(e);
868
+ if (l) a += 1, s += d, vt(r.type) && (c = !0), n && (_t.has(r.type) ? o.push(...u) : o.push(u));
869
+ else {
870
+ s = 0, a = 0, o.length = 0, c = !1;
871
+ break;
872
+ }
873
+ }
874
+ if (a) {
875
+ let e = {
876
+ isMatch: !0,
877
+ score: s / a
878
+ };
879
+ return c && (e.hasInverse = !0), n && (e.indices = ft(o)), e;
880
+ }
881
+ }
882
+ return {
883
+ isMatch: !1,
884
+ score: 1
885
+ };
886
+ }
887
+ }, Dt = [];
888
+ function Ot(...e) {
889
+ Dt.push(...e);
890
+ }
891
+ function kt(e, t) {
892
+ for (let n = 0, r = Dt.length; n < r; n += 1) {
893
+ let r = Dt[n];
894
+ if (r.condition(e, t)) return new r(e, t);
895
+ }
896
+ return new gt(e, t);
897
+ }
898
+ var At = {
899
+ AND: "$and",
900
+ OR: "$or"
901
+ }, jt = {
902
+ PATH: "$path",
903
+ PATTERN: "$val"
904
+ }, Mt = (e) => !!(e[At.AND] || e[At.OR]), Nt = (e) => !!e[jt.PATH], Pt = (e) => !J(e) && Le(e) && !Mt(e), Ft = (e) => ({ [At.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
905
+ function It(e, t, { auto: n = !0 } = {}) {
906
+ let r = (e) => {
907
+ if (X(e)) {
908
+ let r = {
909
+ keyId: null,
910
+ pattern: e
911
+ };
912
+ return n && (r.searcher = kt(e, t)), r;
913
+ }
914
+ let i = Object.keys(e), a = Nt(e);
915
+ if (!a && i.length > 1 && !Mt(e)) return r(Ft(e));
916
+ if (Pt(e)) {
917
+ let r = a ? e[jt.PATH] : i[0], o = a ? e[jt.PATTERN] : e[r];
918
+ if (!X(o)) throw Error(Ue(r));
919
+ let s = {
920
+ keyId: Qe(r),
921
+ pattern: o
922
+ };
923
+ return n && (s.searcher = kt(o, t)), s;
924
+ }
925
+ let o = {
926
+ children: [],
927
+ operator: i[0]
928
+ };
929
+ return i.forEach((t) => {
930
+ let n = e[t];
931
+ J(n) && n.forEach((e) => {
932
+ o.children.push(r(e));
933
+ });
934
+ }), o;
935
+ };
936
+ return Mt(e) || (e = Ft(e)), r(e);
937
+ }
938
+ function Lt(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
939
+ let n = 1;
940
+ return e.forEach(({ key: e, norm: r, score: i }) => {
941
+ let a = e ? e.weight : null;
942
+ n *= (i === 0 && a ? 2 ** -52 : i) ** +((a || 1) * (t ? 1 : r));
943
+ }), n;
944
+ }
945
+ function Rt(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
946
+ e.forEach((e) => {
947
+ e.score = Lt(e.matches, { ignoreFieldNorm: t });
948
+ });
949
+ }
950
+ var zt = class {
951
+ constructor(e, t) {
952
+ this.limit = e, this.heap = [], this.comparator = t;
953
+ }
954
+ get size() {
955
+ return this.heap.length;
956
+ }
957
+ insert(e) {
958
+ this.size < this.limit ? (this.heap.push(e), this._bubbleUp(this.size - 1)) : this.comparator(e, this.heap[0]) < 0 && (this.heap[0] = e, this._sinkDown(0));
959
+ }
960
+ extractSorted() {
961
+ return this.heap.sort(this.comparator);
962
+ }
963
+ _bubbleUp(e) {
964
+ let t = this.heap;
965
+ for (; e > 0;) {
966
+ let n = e - 1 >> 1;
967
+ if (this.comparator(t[e], t[n]) <= 0) break;
968
+ let r = t[e];
969
+ t[e] = t[n], t[n] = r, e = n;
970
+ }
971
+ }
972
+ _sinkDown(e) {
973
+ let t = this.heap, n = t.length, r = e;
974
+ do {
975
+ e = r;
976
+ let i = 2 * e + 1, a = 2 * e + 2;
977
+ if (i < n && this.comparator(t[i], t[r]) > 0 && (r = i), a < n && this.comparator(t[a], t[r]) > 0 && (r = a), r !== e) {
978
+ let n = t[e];
979
+ t[e] = t[r], t[r] = n;
980
+ }
981
+ } while (r !== e);
982
+ }
983
+ };
984
+ function Bt(e) {
985
+ let t = [];
986
+ return e.matches.forEach((e) => {
987
+ if (!Z(e.indices) || !e.indices.length) return;
988
+ let n = {
989
+ indices: e.indices,
990
+ value: e.value
991
+ };
992
+ e.key && (n.key = e.key.id), e.idx > -1 && (n.refIndex = e.idx), t.push(n);
993
+ }), t;
994
+ }
995
+ function Vt(e, t, { includeMatches: n = Q.includeMatches, includeScore: r = Q.includeScore } = {}) {
996
+ return e.map((e) => {
997
+ let { idx: i } = e, a = {
998
+ item: t[i],
999
+ refIndex: i
1000
+ };
1001
+ return n && (a.matches = Bt(e)), r && (a.score = e.score), a;
1002
+ });
1003
+ }
1004
+ var Ht = /[\p{L}\p{M}\p{N}_]+/gu, Ut = /* @__PURE__ */ new WeakSet();
1005
+ function Wt(e) {
1006
+ Ut.has(e) || (Ut.add(e), console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`));
1007
+ }
1008
+ function Gt(e) {
1009
+ if (typeof e == "function") {
1010
+ let t = !1;
1011
+ return (n) => {
1012
+ let r = e(n);
1013
+ if (!t && (t = !0, !Array.isArray(r) || r.some((e) => typeof e != "string"))) throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r) ? "array containing non-strings" : typeof r}.`);
1014
+ return r;
1015
+ };
1016
+ }
1017
+ return e instanceof RegExp ? (e.global || Wt(e), (t) => t.match(e) || []) : (e) => e.match(Ht) || [];
1018
+ }
1019
+ function Kt({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
1020
+ let r = Gt(n);
1021
+ return { tokenize(n) {
1022
+ return e || (n = n.toLowerCase()), t && (n = ht(n)), r(n);
1023
+ } };
1024
+ }
1025
+ var qt = class {
1026
+ static condition(e, t) {
1027
+ return t.useTokenSearch;
1028
+ }
1029
+ constructor(e, t) {
1030
+ this.options = t, this.analyzer = Kt({
1031
+ isCaseSensitive: t.isCaseSensitive,
1032
+ ignoreDiacritics: t.ignoreDiacritics,
1033
+ tokenize: t.tokenize
1034
+ });
1035
+ let n = this.analyzer.tokenize(e), { df: r, fieldCount: i } = t._invertedIndex;
1036
+ this.termSearchers = [], this.idfWeights = [];
1037
+ for (let e of n) {
1038
+ this.termSearchers.push(new gt(e, {
1039
+ location: t.location,
1040
+ threshold: t.threshold,
1041
+ distance: t.distance,
1042
+ includeMatches: t.includeMatches,
1043
+ findAllMatches: t.findAllMatches,
1044
+ minMatchCharLength: t.minMatchCharLength,
1045
+ isCaseSensitive: t.isCaseSensitive,
1046
+ ignoreDiacritics: t.ignoreDiacritics,
1047
+ ignoreLocation: !0
1048
+ }));
1049
+ let n = r.get(e) || 0, a = Math.log(1 + (i - n + .5) / (n + .5));
1050
+ this.idfWeights.push(a);
1051
+ }
1052
+ this.combineAll = t.tokenMatch === "all", this.numTerms = this.termSearchers.length, this.useMask = this.numTerms <= 31;
1053
+ }
1054
+ searchIn(e) {
1055
+ if (!this.termSearchers.length) return {
1056
+ isMatch: !1,
1057
+ score: 1
1058
+ };
1059
+ let t = [], n = 0, r = 0, i = 0, a = 0, o = this.combineAll && !this.useMask ? /* @__PURE__ */ new Set() : null;
1060
+ for (let s = 0; s < this.termSearchers.length; s++) {
1061
+ let c = this.termSearchers[s].searchIn(e), l = this.idfWeights[s];
1062
+ r += l, c.isMatch && (i++, n += l * (1 - c.score), c.indices && t.push(...c.indices), this.combineAll && (this.useMask ? a |= 1 << s : o.add(s)));
1063
+ }
1064
+ if (i === 0) return {
1065
+ isMatch: !1,
1066
+ score: 1
1067
+ };
1068
+ let s = r > 0 ? 1 - n / r : 0, c = {
1069
+ isMatch: !0,
1070
+ score: Math.max(.001, s)
1071
+ };
1072
+ return this.options.includeMatches && t.length && (c.indices = ft(t)), this.combineAll && (this.useMask ? c.matchedMask = a : c.matchedTerms = o, c.termCount = this.numTerms), c;
1073
+ }
1074
+ };
1075
+ function Jt(e, t, n, r) {
1076
+ let i = r.tokenize(t);
1077
+ if (!i.length) return;
1078
+ e.fieldCount++, e.docFieldCount.set(n, (e.docFieldCount.get(n) || 0) + 1);
1079
+ let a = new Set(i), o = e.docTermFieldHits.get(n);
1080
+ o || (o = /* @__PURE__ */ new Map(), e.docTermFieldHits.set(n, o));
1081
+ for (let t of a) o.set(t, (o.get(t) || 0) + 1), e.df.set(t, (e.df.get(t) || 0) + 1);
1082
+ }
1083
+ function Yt(e, t, n, r) {
1084
+ let { i, v: a, $: o } = t;
1085
+ if (a !== void 0) {
1086
+ Jt(e, a, i, r);
1087
+ return;
1088
+ }
1089
+ if (o) for (let t = 0; t < n; t++) {
1090
+ let n = o[t];
1091
+ if (n) {
1092
+ if (Array.isArray(n)) for (let t of n) Jt(e, t.v, i, r);
1093
+ else Jt(e, n.v, i, r);
1094
+ }
1095
+ }
1096
+ }
1097
+ function Xt(e, t, n) {
1098
+ let r = {
1099
+ fieldCount: 0,
1100
+ df: /* @__PURE__ */ new Map(),
1101
+ docFieldCount: /* @__PURE__ */ new Map(),
1102
+ docTermFieldHits: /* @__PURE__ */ new Map()
1103
+ };
1104
+ for (let i of e) Yt(r, i, t, n);
1105
+ return r;
1106
+ }
1107
+ function Zt(e, t, n, r) {
1108
+ Yt(e, t, n, r);
1109
+ }
1110
+ function Qt(e, t) {
1111
+ let n = e.docFieldCount.get(t);
1112
+ if (n === void 0) return;
1113
+ e.fieldCount -= n, e.docFieldCount.delete(t);
1114
+ let r = e.docTermFieldHits.get(t);
1115
+ if (r) {
1116
+ for (let [t, n] of r) {
1117
+ let r = (e.df.get(t) || 0) - n;
1118
+ r <= 0 ? e.df.delete(t) : e.df.set(t, r);
1119
+ }
1120
+ e.docTermFieldHits.delete(t);
1121
+ }
1122
+ }
1123
+ function $t(e, t) {
1124
+ if (t.length === 0) return;
1125
+ let n = Array.from(new Set(t)).sort((e, t) => e - t);
1126
+ for (let t of n) Qt(e, t);
1127
+ let r = (e) => {
1128
+ let t = 0, r = n.length;
1129
+ for (; t < r;) {
1130
+ let i = t + r >>> 1;
1131
+ n[i] < e ? t = i + 1 : r = i;
1132
+ }
1133
+ return e - t;
1134
+ }, i = n[0], a = /* @__PURE__ */ new Map();
1135
+ for (let [t, n] of e.docFieldCount) a.set(t > i ? r(t) : t, n);
1136
+ e.docFieldCount = a;
1137
+ let o = /* @__PURE__ */ new Map();
1138
+ for (let [t, n] of e.docTermFieldHits) o.set(t > i ? r(t) : t, n);
1139
+ e.docTermFieldHits = o;
1140
+ }
1141
+ var $ = class {
1142
+ constructor(e, t, n) {
1143
+ this.options = {
1144
+ ...Q,
1145
+ ...t
1146
+ }, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new Ye(this.options.keys), this._docs = e, this._myIndex = null, this._invertedIndex = null, this.setCollection(e, n), this._lastQuery = null, this._lastSearcher = null;
1147
+ }
1148
+ _getSearcher(e) {
1149
+ if (this._lastQuery === e) return this._lastSearcher;
1150
+ let t = kt(e, this._invertedIndex ? {
1151
+ ...this.options,
1152
+ _invertedIndex: this._invertedIndex
1153
+ } : this.options);
1154
+ return this._lastQuery = e, this._lastSearcher = t, t;
1155
+ }
1156
+ setCollection(e, t) {
1157
+ if (this._docs = e, t && !(t instanceof ot)) throw Error(Ve);
1158
+ if (this._myIndex = t || st(this.options.keys, this._docs, {
1159
+ getFn: this.options.getFn,
1160
+ fieldNormWeight: this.options.fieldNormWeight
1161
+ }), this.options.useTokenSearch) {
1162
+ let e = Kt({
1163
+ isCaseSensitive: this.options.isCaseSensitive,
1164
+ ignoreDiacritics: this.options.ignoreDiacritics,
1165
+ tokenize: this.options.tokenize
1166
+ });
1167
+ this._invertedIndex = Xt(this._myIndex.records, this._myIndex.keys.length, e);
1168
+ }
1169
+ this._invalidateSearcherCache();
1170
+ }
1171
+ add(e) {
1172
+ if (!Z(e)) return;
1173
+ this._docs.push(e);
1174
+ let t = this._myIndex.add(e, this._docs.length - 1);
1175
+ if (this._invertedIndex && t) {
1176
+ let e = Kt({
1177
+ isCaseSensitive: this.options.isCaseSensitive,
1178
+ ignoreDiacritics: this.options.ignoreDiacritics,
1179
+ tokenize: this.options.tokenize
1180
+ });
1181
+ Zt(this._invertedIndex, t, this._myIndex.keys.length, e);
1182
+ }
1183
+ this._invalidateSearcherCache();
1184
+ }
1185
+ remove(e = () => !1) {
1186
+ let t = [], n = [];
1187
+ for (let r = 0, i = this._docs.length; r < i; r += 1) e(this._docs[r], r) && (t.push(this._docs[r]), n.push(r));
1188
+ if (n.length) {
1189
+ this._invertedIndex && $t(this._invertedIndex, n);
1190
+ let e = new Set(n);
1191
+ this._docs = this._docs.filter((t, n) => !e.has(n)), this._myIndex.removeAll(n), this._invalidateSearcherCache();
1192
+ }
1193
+ return t;
1194
+ }
1195
+ removeAt(e) {
1196
+ if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(He);
1197
+ this._invertedIndex && $t(this._invertedIndex, [e]);
1198
+ let t = this._docs.splice(e, 1)[0];
1199
+ return this._myIndex.removeAt(e), this._invalidateSearcherCache(), t;
1200
+ }
1201
+ _invalidateSearcherCache() {
1202
+ this._lastQuery = null, this._lastSearcher = null;
1203
+ }
1204
+ getIndex() {
1205
+ return this._myIndex;
1206
+ }
1207
+ _normalizedKeys() {
1208
+ return this._myIndex.keys.map((e) => this._keyStore.get(e.id) || e);
1209
+ }
1210
+ search(e, t) {
1211
+ let { limit: n = -1 } = t || {}, { includeMatches: r, includeScore: i, shouldSort: a, sortFn: o, ignoreFieldNorm: s } = this.options;
1212
+ if (X(e) && !e.trim()) {
1213
+ let e = this._docs.map((e, t) => ({
1214
+ item: e,
1215
+ refIndex: t
1216
+ }));
1217
+ return Fe(n) && n > -1 && (e = e.slice(0, n)), e;
1218
+ }
1219
+ let c = a && Fe(n) && n > 0 && X(e), l = o, u = (e, t) => l(e, t) || e.idx - t.idx, d;
1220
+ if (c) {
1221
+ let t = new zt(n, u);
1222
+ X(this._docs[0]) ? this._searchStringList(e, {
1223
+ heap: t,
1224
+ ignoreFieldNorm: s
1225
+ }) : this._searchObjectList(e, {
1226
+ heap: t,
1227
+ ignoreFieldNorm: s
1228
+ }), d = t.extractSorted();
1229
+ } else d = X(e) ? X(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e), Rt(d, { ignoreFieldNorm: s }), a && d.sort(X(e) ? u : l), Fe(n) && n > -1 && (d = d.slice(0, n));
1230
+ return Vt(d, this._docs, {
1231
+ includeMatches: r,
1232
+ includeScore: i
1233
+ });
1234
+ }
1235
+ _searchStringList(e, { heap: t, ignoreFieldNorm: n } = {}) {
1236
+ let r = this._getSearcher(e), i = this.options.useTokenSearch && this.options.tokenMatch === "all", { records: a } = this._myIndex, o = t ? null : [];
1237
+ return a.forEach(({ v: e, i: a, n: s }) => {
1238
+ if (!Z(e)) return;
1239
+ let c = r.searchIn(e);
1240
+ if (c.isMatch) {
1241
+ let r = {
1242
+ score: c.score,
1243
+ value: e,
1244
+ norm: s,
1245
+ indices: c.indices
1246
+ };
1247
+ i && (r.matchedMask = c.matchedMask, r.matchedTerms = c.matchedTerms, r.termCount = c.termCount);
1248
+ let l = [r];
1249
+ if (!i || this._coversAllTokens(l)) {
1250
+ let r = {
1251
+ item: e,
1252
+ idx: a,
1253
+ matches: l
1254
+ };
1255
+ t ? (r.score = Lt(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : o.push(r);
1256
+ }
1257
+ }
1258
+ }), o;
1259
+ }
1260
+ _searchLogical(e) {
1261
+ let t = It(e, this.options), n = this._normalizedKeys(), r = (e, t, i) => {
1262
+ if (!("children" in e)) {
1263
+ let { keyId: r, searcher: a } = e, o;
1264
+ return r === null ? (o = [], n.forEach((e, n) => {
1265
+ o.push(...this._findMatches({
1266
+ key: e,
1267
+ value: t[n],
1268
+ searcher: a
1269
+ }));
1270
+ })) : o = this._findMatches({
1271
+ key: this._keyStore.get(r),
1272
+ value: this._myIndex.getValueForItemAtKeyId(t, r),
1273
+ searcher: a
1274
+ }), o && o.length ? [{
1275
+ idx: i,
1276
+ item: t,
1277
+ matches: o
1278
+ }] : [];
1279
+ }
1280
+ let { children: a, operator: o } = e, s = [];
1281
+ for (let e = 0, n = a.length; e < n; e += 1) {
1282
+ let n = a[e], c = r(n, t, i);
1283
+ if (c.length) s.push(...c);
1284
+ else if (o === At.AND) return [];
1285
+ }
1286
+ return s;
1287
+ }, i = this._myIndex.records, a = /* @__PURE__ */ new Map(), o = [];
1288
+ return i.forEach(({ $: e, i: n }) => {
1289
+ if (Z(e)) {
1290
+ let i = r(t, e, n);
1291
+ i.length && (a.has(n) || (a.set(n, {
1292
+ idx: n,
1293
+ item: e,
1294
+ matches: []
1295
+ }), o.push(a.get(n))), i.forEach(({ matches: e }) => {
1296
+ a.get(n).matches.push(...e);
1297
+ }));
1298
+ }
1299
+ }), o;
1300
+ }
1301
+ _searchObjectList(e, { heap: t, ignoreFieldNorm: n } = {}) {
1302
+ let r = this._getSearcher(e), i = this.options.useTokenSearch && this.options.tokenMatch === "all", { records: a } = this._myIndex, o = this._normalizedKeys(), s = t ? null : [];
1303
+ return a.forEach(({ $: e, i: a }) => {
1304
+ if (!Z(e)) return;
1305
+ let c = [], l = !1, u = !1;
1306
+ if (o.forEach((t, n) => {
1307
+ let i = this._findMatches({
1308
+ key: t,
1309
+ value: e[n],
1310
+ searcher: r
1311
+ });
1312
+ i.length ? (c.push(...i), i[0].hasInverse && (u = !0)) : l = !0;
1313
+ }), !(u && l) && c.length && (!i || this._coversAllTokens(c))) {
1314
+ let r = {
1315
+ idx: a,
1316
+ item: e,
1317
+ matches: c
1318
+ };
1319
+ t ? (r.score = Lt(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : s.push(r);
1320
+ }
1321
+ }), s;
1322
+ }
1323
+ _findMatches({ key: e, value: t, searcher: n }) {
1324
+ if (!Z(t)) return [];
1325
+ let r = [];
1326
+ if (J(t)) t.forEach(({ v: t, i, n: a }) => {
1327
+ if (!Z(t)) return;
1328
+ let o = n.searchIn(t);
1329
+ if (o.isMatch) {
1330
+ let n = {
1331
+ score: o.score,
1332
+ key: e,
1333
+ value: t,
1334
+ idx: i,
1335
+ norm: a,
1336
+ indices: o.indices,
1337
+ hasInverse: o.hasInverse
1338
+ };
1339
+ o.termCount !== void 0 && (n.matchedMask = o.matchedMask, n.matchedTerms = o.matchedTerms, n.termCount = o.termCount), r.push(n);
1340
+ }
1341
+ });
1342
+ else {
1343
+ let { v: i, n: a } = t, o = n.searchIn(i);
1344
+ if (o.isMatch) {
1345
+ let t = {
1346
+ score: o.score,
1347
+ key: e,
1348
+ value: i,
1349
+ norm: a,
1350
+ indices: o.indices,
1351
+ hasInverse: o.hasInverse
1352
+ };
1353
+ o.termCount !== void 0 && (t.matchedMask = o.matchedMask, t.matchedTerms = o.matchedTerms, t.termCount = o.termCount), r.push(t);
1354
+ }
1355
+ }
1356
+ return r;
1357
+ }
1358
+ _coversAllTokens(e) {
1359
+ let t = e.length ? e[0].termCount : void 0;
1360
+ if (t === void 0) return !0;
1361
+ if (t <= 31) {
1362
+ let n = 0;
1363
+ for (let t = 0; t < e.length; t++) n |= e[t].matchedMask || 0;
1364
+ return n === 2 ** t - 1;
1365
+ }
1366
+ let n = /* @__PURE__ */ new Set();
1367
+ for (let t = 0; t < e.length; t++) {
1368
+ let r = e[t].matchedTerms;
1369
+ if (r) for (let e of r) n.add(e);
1370
+ }
1371
+ return n.size === t;
1372
+ }
1373
+ };
1374
+ $.version = "7.5.0", $.createIndex = st, $.parseIndex = ct, $.config = Q, $.match = function(e, t, n) {
1375
+ if (n && n.useTokenSearch) throw Error(qe);
1376
+ return kt(e, {
1377
+ ...Q,
1378
+ ...n
1379
+ }).searchIn(t);
1380
+ }, $.parseQuery = It, Ot(Et), Ot(qt), $.use = function(...e) {
1381
+ e.forEach((e) => Ot(e));
1382
+ };
1383
+ var en = $;
1384
+ //#endregion
1385
+ //#region ../../node_modules/.pnpm/@vueuse+integrations@15.0.0_fuse.js@7.5.0_vue@3.6.0-rc.10_typescript-native-bridge@6.0.3-bridge.18.tsgo.7.0.2_/node_modules/@vueuse/integrations/dist/useFuse.js
1386
+ function tn(e, t, n) {
1387
+ let r = () => new en(V(t) ?? [], V(n)?.fuseOptions), i = me(r());
1388
+ return D(() => V(n)?.fuseOptions, () => {
1389
+ i.value = r();
1390
+ }, { deep: !0 }), D(() => V(t), (e) => {
1391
+ i.value.setCollection(e), F(i);
1392
+ }, { deep: !0 }), {
1393
+ fuse: i,
1394
+ results: O(() => {
1395
+ let r = V(n);
1396
+ if (r?.matchAllWhenSearchEmpty && !V(e)) return V(t).map((e, t) => ({
1397
+ item: e,
1398
+ refIndex: t
1399
+ }));
1400
+ let a = r?.resultLimit;
1401
+ return i.value.search(V(e), a ? { limit: a } : void 0);
1402
+ })
1403
+ };
1404
+ }
1405
+ //#endregion
1406
+ //#region virtual:nuxt-ui-templates/ui/command-palette.ts
1407
+ var nn = {
1408
+ slots: {
1409
+ root: "flex flex-col min-h-0 min-w-0 divide-y divide-default",
1410
+ input: "",
1411
+ close: "",
1412
+ back: "p-0",
1413
+ content: "relative overflow-hidden flex flex-col",
1414
+ footer: "p-1",
1415
+ viewport: "relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none",
1416
+ group: "p-1 isolate",
1417
+ empty: "text-center text-muted",
1418
+ label: "font-semibold text-highlighted",
1419
+ item: "group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75",
1420
+ itemLeadingIcon: "shrink-0",
1421
+ itemLeadingAvatar: "shrink-0",
1422
+ itemLeadingAvatarSize: "",
1423
+ itemLeadingChip: "shrink-0",
1424
+ itemLeadingChipSize: "",
1425
+ itemTrailing: "ms-auto inline-flex items-center",
1426
+ itemTrailingIcon: "shrink-0",
1427
+ itemTrailingHighlightedIcon: "shrink-0 text-dimmed hidden group-data-highlighted:inline-flex",
1428
+ itemTrailingKbds: "hidden lg:inline-flex items-center shrink-0",
1429
+ itemTrailingKbdsSize: "",
1430
+ itemWrapper: "flex-1 flex flex-col text-start min-w-0",
1431
+ itemLabel: "truncate space-x-1 text-dimmed",
1432
+ itemLabelBase: "text-highlighted [&>mark]:text-primary [&>mark]:bg-primary/15",
1433
+ itemLabelPrefix: "text-default",
1434
+ itemLabelSuffix: "text-dimmed [&>mark]:text-primary [&>mark]:bg-primary/15",
1435
+ itemDescription: "truncate text-muted [&>mark]:text-primary [&>mark]:bg-primary/15"
1436
+ },
1437
+ variants: {
1438
+ virtualize: {
1439
+ true: { viewport: "p-1 isolate" },
1440
+ false: { viewport: "divide-y divide-default" }
1441
+ },
1442
+ size: {
1443
+ xs: {
1444
+ input: "[&>input]:h-10",
1445
+ empty: "py-3 text-xs",
1446
+ label: "p-1 text-[10px]/3 gap-1",
1447
+ item: "p-1 text-xs gap-1",
1448
+ itemLeadingIcon: "size-4",
1449
+ itemLeadingAvatarSize: "3xs",
1450
+ itemLeadingChip: "size-4",
1451
+ itemLeadingChipSize: "sm",
1452
+ itemTrailing: "gap-1",
1453
+ itemTrailingIcon: "size-4",
1454
+ itemTrailingHighlightedIcon: "size-4",
1455
+ itemTrailingKbds: "gap-0.5",
1456
+ itemTrailingKbdsSize: "sm"
1457
+ },
1458
+ sm: {
1459
+ input: "[&>input]:h-11",
1460
+ empty: "py-4 text-xs",
1461
+ label: "p-1.5 text-[10px]/3 gap-1.5",
1462
+ item: "p-1.5 text-xs gap-1.5",
1463
+ itemLeadingIcon: "size-4",
1464
+ itemLeadingAvatarSize: "3xs",
1465
+ itemLeadingChip: "size-4",
1466
+ itemLeadingChipSize: "sm",
1467
+ itemTrailing: "gap-1.5",
1468
+ itemTrailingIcon: "size-4",
1469
+ itemTrailingHighlightedIcon: "size-4",
1470
+ itemTrailingKbds: "gap-0.5",
1471
+ itemTrailingKbdsSize: "sm"
1472
+ },
1473
+ md: {
1474
+ input: "[&>input]:h-12",
1475
+ empty: "py-6 text-sm",
1476
+ label: "p-1.5 text-xs gap-1.5",
1477
+ item: "p-1.5 text-sm gap-1.5",
1478
+ itemLeadingIcon: "size-5",
1479
+ itemLeadingAvatarSize: "2xs",
1480
+ itemLeadingChip: "size-5",
1481
+ itemLeadingChipSize: "md",
1482
+ itemTrailing: "gap-1.5",
1483
+ itemTrailingIcon: "size-5",
1484
+ itemTrailingHighlightedIcon: "size-5",
1485
+ itemTrailingKbds: "gap-0.5",
1486
+ itemTrailingKbdsSize: "md"
1487
+ },
1488
+ lg: {
1489
+ input: "[&>input]:h-13",
1490
+ empty: "py-7 text-sm",
1491
+ label: "p-2 text-xs gap-2",
1492
+ item: "p-2 text-sm gap-2",
1493
+ itemLeadingIcon: "size-5",
1494
+ itemLeadingAvatarSize: "2xs",
1495
+ itemLeadingChip: "size-5",
1496
+ itemLeadingChipSize: "md",
1497
+ itemTrailing: "gap-2",
1498
+ itemTrailingIcon: "size-5",
1499
+ itemTrailingHighlightedIcon: "size-5",
1500
+ itemTrailingKbds: "gap-0.5",
1501
+ itemTrailingKbdsSize: "md"
1502
+ },
1503
+ xl: {
1504
+ input: "[&>input]:h-14",
1505
+ empty: "py-8 text-base",
1506
+ label: "p-2 text-sm gap-2",
1507
+ item: "p-2 text-base gap-2",
1508
+ itemLeadingIcon: "size-6",
1509
+ itemLeadingAvatarSize: "xs",
1510
+ itemLeadingChip: "size-6",
1511
+ itemLeadingChipSize: "lg",
1512
+ itemTrailing: "gap-2",
1513
+ itemTrailingIcon: "size-6",
1514
+ itemTrailingHighlightedIcon: "size-6",
1515
+ itemTrailingKbds: "gap-0.5",
1516
+ itemTrailingKbdsSize: "lg"
1517
+ }
1518
+ },
1519
+ active: {
1520
+ true: {
1521
+ item: "text-highlighted before:bg-elevated",
1522
+ itemLeadingIcon: "text-default"
1523
+ },
1524
+ false: {
1525
+ item: ["text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50", "transition-colors before:transition-colors"],
1526
+ itemLeadingIcon: ["text-dimmed group-data-highlighted:not-group-data-disabled:text-default", "transition-colors"]
1527
+ }
1528
+ },
1529
+ loading: { true: { itemLeadingIcon: "animate-spin" } }
1530
+ },
1531
+ defaultVariants: { size: "md" }
1532
+ }, rn = ["innerHTML"], an = ["innerHTML"], on = ["innerHTML"], sn = /*@__PURE__*/ Object.assign({ inheritAttrs: !1 }, {
1533
+ __name: "CommandPalette",
1534
+ props: /*@__PURE__*/ P({
1535
+ as: {
1536
+ type: null,
1537
+ required: !1
1538
+ },
1539
+ size: {
1540
+ type: null,
1541
+ required: !1
1542
+ },
1543
+ icon: {
1544
+ type: [String, Boolean],
1545
+ required: !1,
1546
+ skipCheck: !0
1547
+ },
1548
+ trailingIcon: {
1549
+ type: null,
1550
+ required: !1
1551
+ },
1552
+ selectedIcon: {
1553
+ type: null,
1554
+ required: !1
1555
+ },
1556
+ childrenIcon: {
1557
+ type: null,
1558
+ required: !1
1559
+ },
1560
+ placeholder: {
1561
+ type: String,
1562
+ required: !1
1563
+ },
1564
+ autofocus: {
1565
+ type: Boolean,
1566
+ required: !1,
1567
+ default: !0
1568
+ },
1569
+ close: {
1570
+ type: [Boolean, Object],
1571
+ required: !1
1572
+ },
1573
+ closeIcon: {
1574
+ type: null,
1575
+ required: !1
1576
+ },
1577
+ back: {
1578
+ type: [Boolean, Object],
1579
+ required: !1,
1580
+ default: !0
1581
+ },
1582
+ backIcon: {
1583
+ type: null,
1584
+ required: !1
1585
+ },
1586
+ input: {
1587
+ type: [Boolean, Object],
1588
+ required: !1,
1589
+ default: !0
1590
+ },
1591
+ groups: {
1592
+ type: Array,
1593
+ required: !1
1594
+ },
1595
+ fuse: {
1596
+ type: Object,
1597
+ required: !1
1598
+ },
1599
+ virtualize: {
1600
+ type: [Boolean, Object],
1601
+ required: !1,
1602
+ default: !1
1603
+ },
1604
+ valueKey: {
1605
+ type: null,
1606
+ required: !1
1607
+ },
1608
+ labelKey: {
1609
+ type: null,
1610
+ required: !1,
1611
+ default: "label"
1612
+ },
1613
+ descriptionKey: {
1614
+ type: null,
1615
+ required: !1,
1616
+ default: "description"
1617
+ },
1618
+ preserveGroupOrder: {
1619
+ type: Boolean,
1620
+ required: !1,
1621
+ default: !1
1622
+ },
1623
+ searchDelay: {
1624
+ type: Number,
1625
+ required: !1,
1626
+ default: 0
1627
+ },
1628
+ class: {
1629
+ type: null,
1630
+ required: !1
1631
+ },
1632
+ ui: {
1633
+ type: Object,
1634
+ required: !1
1635
+ },
1636
+ multiple: {
1637
+ type: Boolean,
1638
+ required: !1
1639
+ },
1640
+ disabled: {
1641
+ type: Boolean,
1642
+ required: !1
1643
+ },
1644
+ modelValue: {
1645
+ type: null,
1646
+ required: !1
1647
+ },
1648
+ defaultValue: {
1649
+ type: null,
1650
+ required: !1
1651
+ },
1652
+ highlightOnHover: {
1653
+ type: Boolean,
1654
+ required: !1,
1655
+ default: !0
1656
+ },
1657
+ selectionBehavior: {
1658
+ type: String,
1659
+ required: !1
1660
+ },
1661
+ by: {
1662
+ type: [String, Function],
1663
+ required: !1
1664
+ },
1665
+ loading: {
1666
+ type: Boolean,
1667
+ required: !1
1668
+ },
1669
+ loadingIcon: {
1670
+ type: null,
1671
+ required: !1
1672
+ }
1673
+ }, {
1674
+ searchTerm: {
1675
+ type: String,
1676
+ default: ""
1677
+ },
1678
+ searchTermModifiers: {}
1679
+ }),
1680
+ emits: /*@__PURE__*/ P([
1681
+ "update:modelValue",
1682
+ "highlight",
1683
+ "entryFocus",
1684
+ "leave",
1685
+ "update:open"
1686
+ ], ["update:searchTerm"]),
1687
+ setup(r, { emit: s, attrs: c }) {
1688
+ let h = r, g = s, _ = de(), k = u("commandPalette", h), P = oe(r, "searchTerm", {
1689
+ type: String,
1690
+ default: ""
1691
+ }), { t: F } = t(), L = e(), pe = p(o(k, "as", "disabled", "multiple", "modelValue", "defaultValue", "highlightOnHover", "by"), g), me = se(() => k.virtualize ? te(typeof k.virtualize == "boolean" ? {} : k.virtualize, { estimateSize: Te(Me.value, "md", k.descriptionKey, !!_["item-description"]) }) : !1), [V, he] = x({ props: {
1692
+ item: {
1693
+ type: Object,
1694
+ required: !0
1695
+ },
1696
+ group: {
1697
+ type: Object,
1698
+ required: !1
1699
+ },
1700
+ index: {
1701
+ type: Number,
1702
+ required: !1
1703
+ }
1704
+ } }), H = O(() => ee({
1705
+ extend: nn,
1706
+ ...L.ui?.commandPalette || {}
1707
+ })({
1708
+ size: k.size,
1709
+ virtualize: !!k.virtualize
1710
+ })), U = O(() => te({}, k.fuse, {
1711
+ fuseOptions: {
1712
+ ignoreLocation: !0,
1713
+ threshold: .1,
1714
+ keys: [
1715
+ k.labelKey,
1716
+ k.descriptionKey,
1717
+ "suffix"
1718
+ ]
1719
+ },
1720
+ resultLimit: 12,
1721
+ matchAllWhenSearchEmpty: !0
1722
+ })), W = le([]), Ee = O(() => W.value[W.value.length - 1]?.placeholder || k.placeholder || F("commandPalette.placeholder")), De = O(() => W.value?.length ? [W.value[W.value.length - 1]] : k.groups), Oe = O(() => De.value?.filter((e) => e.id ? !e.ignoreFilter : (console.warn("[@nuxt/ui] CommandPalette group is missing an `id` property"), !1))?.flatMap((e) => e.items?.map((t) => ({
1723
+ ...t,
1724
+ group: e.id
1725
+ })) || []) || []), G = C(P, () => k.searchDelay), { results: K } = tn(G, Oe, U), ke = n(K, 16, !0);
1726
+ function je(e, t) {
1727
+ let n = t;
1728
+ return e?.postFilter && typeof e.postFilter == "function" && (n = e.postFilter(G.value, n)), {
1729
+ ...e,
1730
+ items: n.slice(0, U.value.resultLimit).map((e) => ({
1731
+ ...e,
1732
+ labelHtml: e.labelHtml ?? Ne(e, G.value, k.labelKey, void 0, U.value.fuseOptions?.useTokenSearch),
1733
+ suffixHtml: e.suffixHtml ?? Ne(e, G.value, "suffix", [k.labelKey], U.value.fuseOptions?.useTokenSearch),
1734
+ descriptionHtml: e.descriptionHtml ?? Ne(e, G.value, k.descriptionKey, [k.labelKey, "suffix"], U.value.fuseOptions?.useTokenSearch)
1735
+ }))
1736
+ };
1737
+ }
1738
+ let q = O(() => {
1739
+ let e = De.value, t = ke.value.reduce((e, t) => {
1740
+ let { item: n, matches: r } = t;
1741
+ return n.group ? (e[n.group] ||= [], e[n.group]?.push({
1742
+ ...n,
1743
+ matches: r
1744
+ }), e) : e;
1745
+ }, {});
1746
+ if (k.preserveGroupOrder) {
1747
+ let n = [];
1748
+ for (let r of e || []) {
1749
+ if (!r.items?.length) continue;
1750
+ let e = r.ignoreFilter ? r.items : t[r.id];
1751
+ if (!e?.length) continue;
1752
+ let i = je(r, e);
1753
+ i.items?.length && n.push(i);
1754
+ }
1755
+ return n;
1756
+ }
1757
+ let n = [...Object.entries(t).map(([t, n]) => {
1758
+ let r = e?.find((e) => e.id === t);
1759
+ if (!r) return;
1760
+ let i = je(r, n);
1761
+ return i.items?.length ? i : void 0;
1762
+ }).filter((e) => !!e)];
1763
+ for (let t of e || []) {
1764
+ if (!t.ignoreFilter || !t.items?.length) continue;
1765
+ let r = je(t, t.items);
1766
+ if (!r.items?.length) continue;
1767
+ let i = e.indexOf(t), a = /* @__PURE__ */ new Set();
1768
+ for (let t = 0; t < i; t++) a.add(e[t].id);
1769
+ let o = -1;
1770
+ for (let e = 0; e < n.length; e++) a.has(n[e].id) && (o = e);
1771
+ n.splice(o + 1, 0, r);
1772
+ }
1773
+ return n;
1774
+ }), Me = O(() => q.value.flatMap((e) => e.items || [])), J = ce("rootRef");
1775
+ D(q, () => {
1776
+ ae(() => {
1777
+ let e = J.value;
1778
+ (e?.$el)?.contains(document.activeElement) ? e?.highlightFirstItem() : e?.highlightSelected(void 0, !1);
1779
+ });
1780
+ });
1781
+ function Pe(e) {
1782
+ e.children?.length && (W.value.push({
1783
+ id: `history-${W.value.length}`,
1784
+ label: e.label,
1785
+ slot: e.slot,
1786
+ placeholder: e.placeholder,
1787
+ items: e.children
1788
+ }), P.value = "", J.value?.highlightFirstItem());
1789
+ }
1790
+ function Y() {
1791
+ W.value.length && (W.value.pop(), P.value = "", J.value?.highlightFirstItem());
1792
+ }
1793
+ function X() {
1794
+ P.value || Y();
1795
+ }
1796
+ function Fe(e, t) {
1797
+ t.children?.length ? (e.preventDefault(), Pe(t)) : t.onSelect?.(e);
1798
+ }
1799
+ return (e, t) => (z(), j(fe, null, [I(E(V), null, {
1800
+ default: M(({ item: t, index: n, group: r }) => [I(f, w(E(S)(t), { custom: "" }), {
1801
+ default: M(({ active: o, ...s }) => [I(E(be), {
1802
+ value: E(k).valueKey ? E(i)(t, E(k).valueKey) : E(a)(t, [
1803
+ "matches",
1804
+ "group",
1805
+ "onSelect",
1806
+ "labelHtml",
1807
+ "suffixHtml",
1808
+ "descriptionHtml",
1809
+ "children"
1810
+ ]),
1811
+ disabled: t.disabled,
1812
+ "as-child": "",
1813
+ onSelect: (e) => Fe(e, t)
1814
+ }, {
1815
+ default: M(() => [I(l, w(s, {
1816
+ "data-slot": "item",
1817
+ class: H.value.item({
1818
+ class: [
1819
+ E(k).ui?.item,
1820
+ t.ui?.item,
1821
+ t.class
1822
+ ],
1823
+ active: o || t.active
1824
+ })
1825
+ }), {
1826
+ default: M(() => [N(e.$slots, t.slot || r?.slot || "item", {
1827
+ item: t,
1828
+ index: n,
1829
+ ui: H.value
1830
+ }, () => [
1831
+ N(e.$slots, t.slot ? `${t.slot}-leading` : r?.slot ? `${r.slot}-leading` : "item-leading", {
1832
+ item: t,
1833
+ index: n,
1834
+ ui: H.value
1835
+ }, () => [t.loading ? (z(), T(m, {
1836
+ key: 0,
1837
+ name: E(k).loadingIcon || E(L).ui.icons.loading,
1838
+ "data-slot": "itemLeadingIcon",
1839
+ class: B(H.value.itemLeadingIcon({
1840
+ class: [E(k).ui?.itemLeadingIcon, t.ui?.itemLeadingIcon],
1841
+ loading: !0
1842
+ }))
1843
+ }, null, 8, ["name", "class"])) : t.icon ? (z(), T(m, {
1844
+ key: 1,
1845
+ name: t.icon,
1846
+ "data-slot": "itemLeadingIcon",
1847
+ class: B(H.value.itemLeadingIcon({
1848
+ class: [E(k).ui?.itemLeadingIcon, t.ui?.itemLeadingIcon],
1849
+ active: o || t.active
1850
+ }))
1851
+ }, null, 8, ["name", "class"])) : t.avatar ? (z(), T(v, w({
1852
+ key: 2,
1853
+ size: t.ui?.itemLeadingAvatarSize || E(k).ui?.itemLeadingAvatarSize || H.value.itemLeadingAvatarSize()
1854
+ }, t.avatar, {
1855
+ "data-slot": "itemLeadingAvatar",
1856
+ class: H.value.itemLeadingAvatar({
1857
+ class: [E(k).ui?.itemLeadingAvatar, t.ui?.itemLeadingAvatar],
1858
+ active: o || t.active
1859
+ })
1860
+ }), null, 16, ["size", "class"])) : t.chip ? (z(), T(d, w({
1861
+ key: 3,
1862
+ size: t.ui?.itemLeadingChipSize || E(k).ui?.itemLeadingChipSize || H.value.itemLeadingChipSize(),
1863
+ inset: "",
1864
+ standalone: ""
1865
+ }, t.chip, {
1866
+ "data-slot": "itemLeadingChip",
1867
+ class: H.value.itemLeadingChip({
1868
+ class: [E(k).ui?.itemLeadingChip, t.ui?.itemLeadingChip],
1869
+ active: o || t.active
1870
+ })
1871
+ }), null, 16, ["size", "class"])) : A("", !0)]),
1872
+ t.prefix || t.labelHtml || E(i)(t, E(k).labelKey) || t.suffixHtml || t.suffix || _[t.slot ? `${t.slot}-label` : r?.slot ? `${r.slot}-label` : "item-label"] || E(i)(t, E(k).descriptionKey) || _[t.slot ? `${t.slot}-description` : r?.slot ? `${r.slot}-description` : "item-description"] ? (z(), j("span", {
1873
+ key: 0,
1874
+ "data-slot": "itemWrapper",
1875
+ class: B(H.value.itemWrapper({ class: [E(k).ui?.itemWrapper, t.ui?.itemWrapper] }))
1876
+ }, [ue("span", {
1877
+ "data-slot": "itemLabel",
1878
+ class: B(H.value.itemLabel({
1879
+ class: [E(k).ui?.itemLabel, t.ui?.itemLabel],
1880
+ active: o || t.active
1881
+ }))
1882
+ }, [N(e.$slots, t.slot ? `${t.slot}-label` : r?.slot ? `${r.slot}-label` : "item-label", {
1883
+ item: t,
1884
+ index: n,
1885
+ ui: H.value
1886
+ }, () => [
1887
+ t.prefix ? (z(), j("span", {
1888
+ key: 0,
1889
+ "data-slot": "itemLabelPrefix",
1890
+ class: B(H.value.itemLabelPrefix({ class: [E(k).ui?.itemLabelPrefix, t.ui?.itemLabelPrefix] }))
1891
+ }, R(t.prefix), 3)) : A("", !0),
1892
+ t.labelHtml ? (z(), j("span", {
1893
+ key: 1,
1894
+ "data-slot": "itemLabelBase",
1895
+ class: B(H.value.itemLabelBase({
1896
+ class: [E(k).ui?.itemLabelBase, t.ui?.itemLabelBase],
1897
+ active: o || t.active
1898
+ })),
1899
+ innerHTML: t.labelHtml
1900
+ }, null, 10, rn)) : (z(), j("span", {
1901
+ key: 2,
1902
+ "data-slot": "itemLabelBase",
1903
+ class: B(H.value.itemLabelBase({
1904
+ class: [E(k).ui?.itemLabelBase, t.ui?.itemLabelBase],
1905
+ active: o || t.active
1906
+ }))
1907
+ }, R(E(i)(t, E(k).labelKey)), 3)),
1908
+ t.suffixHtml ? (z(), j("span", {
1909
+ key: 3,
1910
+ "data-slot": "itemLabelSuffix",
1911
+ class: B(H.value.itemLabelSuffix({
1912
+ class: [E(k).ui?.itemLabelSuffix, t.ui?.itemLabelSuffix],
1913
+ active: o || t.active
1914
+ })),
1915
+ innerHTML: t.suffixHtml
1916
+ }, null, 10, an)) : t.suffix ? (z(), j("span", {
1917
+ key: 4,
1918
+ "data-slot": "itemLabelSuffix",
1919
+ class: B(H.value.itemLabelSuffix({
1920
+ class: [E(k).ui?.itemLabelSuffix, t.ui?.itemLabelSuffix],
1921
+ active: o || t.active
1922
+ }))
1923
+ }, R(t.suffix), 3)) : A("", !0)
1924
+ ])], 2), t.descriptionHtml ? (z(), j("span", {
1925
+ key: 0,
1926
+ "data-slot": "itemDescription",
1927
+ class: B(H.value.itemDescription({ class: [E(k).ui?.itemDescription, t.ui?.itemDescription] })),
1928
+ innerHTML: t.descriptionHtml
1929
+ }, null, 10, on)) : E(i)(t, E(k).descriptionKey) || _[t.slot ? `${t.slot}-description` : r?.slot ? `${r.slot}-description` : "item-description"] ? (z(), j("span", {
1930
+ key: 1,
1931
+ "data-slot": "itemDescription",
1932
+ class: B(H.value.itemDescription({ class: [E(k).ui?.itemDescription, t.ui?.itemDescription] }))
1933
+ }, [N(e.$slots, t.slot ? `${t.slot}-description` : r?.slot ? `${r.slot}-description` : "item-description", {
1934
+ item: t,
1935
+ index: n,
1936
+ ui: H.value
1937
+ }, () => [ne(R(E(i)(t, E(k).descriptionKey)), 1)])], 2)) : A("", !0)], 2)) : A("", !0),
1938
+ ue("span", {
1939
+ "data-slot": "itemTrailing",
1940
+ class: B(H.value.itemTrailing({ class: [E(k).ui?.itemTrailing, t.ui?.itemTrailing] }))
1941
+ }, [N(e.$slots, t.slot ? `${t.slot}-trailing` : r?.slot ? `${r.slot}-trailing` : "item-trailing", {
1942
+ item: t,
1943
+ index: n,
1944
+ ui: H.value
1945
+ }, () => [t.children && t.children.length > 0 ? (z(), T(m, {
1946
+ key: 0,
1947
+ name: E(k).childrenIcon || E(L).ui.icons.chevronRight,
1948
+ "data-slot": "itemTrailingIcon",
1949
+ class: B(H.value.itemTrailingIcon({ class: [E(k).ui?.itemTrailingIcon, t.ui?.itemTrailingIcon] }))
1950
+ }, null, 8, ["name", "class"])) : t.kbds?.length ? (z(), j("span", {
1951
+ key: 1,
1952
+ "data-slot": "itemTrailingKbds",
1953
+ class: B(H.value.itemTrailingKbds({ class: [E(k).ui?.itemTrailingKbds, t.ui?.itemTrailingKbds] }))
1954
+ }, [(z(!0), j(fe, null, re(t.kbds, (e, n) => (z(), T(ge, w({
1955
+ key: n,
1956
+ size: t.ui?.itemTrailingKbdsSize || E(k).ui?.itemTrailingKbdsSize || H.value.itemTrailingKbdsSize()
1957
+ }, { ref_for: !0 }, typeof e == "string" ? { value: e } : e), null, 16, ["size"]))), 128))], 2)) : r?.highlightedIcon ? (z(), T(m, {
1958
+ key: 2,
1959
+ name: r.highlightedIcon,
1960
+ "data-slot": "itemTrailingHighlightedIcon",
1961
+ class: B(H.value.itemTrailingHighlightedIcon({ class: [E(k).ui?.itemTrailingHighlightedIcon, t.ui?.itemTrailingHighlightedIcon] }))
1962
+ }, null, 8, ["name", "class"])) : A("", !0)]), t.children?.length ? A("", !0) : (z(), T(E(Ce), {
1963
+ key: 0,
1964
+ "as-child": ""
1965
+ }, {
1966
+ default: M(() => [I(m, {
1967
+ name: E(k).selectedIcon || E(L).ui.icons.check,
1968
+ "data-slot": "itemTrailingIcon",
1969
+ class: B(H.value.itemTrailingIcon({ class: [E(k).ui?.itemTrailingIcon, t.ui?.itemTrailingIcon] }))
1970
+ }, null, 8, ["name", "class"])]),
1971
+ _: 2
1972
+ }, 1024))], 2)
1973
+ ])]),
1974
+ _: 2
1975
+ }, 1040, ["class"])]),
1976
+ _: 2
1977
+ }, 1032, [
1978
+ "value",
1979
+ "disabled",
1980
+ "onSelect"
1981
+ ])]),
1982
+ _: 2
1983
+ }, 1040)]),
1984
+ _: 3
1985
+ }), I(E(xe), w({
1986
+ ref_key: "rootRef",
1987
+ ref: J,
1988
+ "data-slot": "root"
1989
+ }, {
1990
+ ...E(pe),
1991
+ ...c
1992
+ }, {
1993
+ "selection-behavior": E(k).selectionBehavior,
1994
+ class: H.value.root({ class: [E(k).ui?.root, E(k).class] })
1995
+ }), {
1996
+ default: M(() => [
1997
+ E(k).input ? (z(), T(E(we), {
1998
+ key: 0,
1999
+ modelValue: P.value,
2000
+ "onUpdate:modelValue": t[1] ||= (e) => P.value = e,
2001
+ "as-child": ""
2002
+ }, {
2003
+ default: M(() => [I(_e, w({
2004
+ variant: "none",
2005
+ size: E(k).size,
2006
+ placeholder: Ee.value,
2007
+ autofocus: E(k).autofocus,
2008
+ loading: E(k).loading,
2009
+ "loading-icon": E(k).loadingIcon,
2010
+ "trailing-icon": E(k).trailingIcon,
2011
+ icon: E(k).icon === !1 ? void 0 : E(k).icon ?? E(L).ui.icons.search
2012
+ }, typeof E(k).input == "object" ? E(k).input : {}, {
2013
+ "data-slot": "input",
2014
+ class: H.value.input({ class: E(k).ui?.input }),
2015
+ onKeydown: b(X, ["backspace"])
2016
+ }), ie({ _: 2 }, [W.value?.length && (E(k).back || _.back) ? {
2017
+ name: "leading",
2018
+ fn: M(() => [N(e.$slots, "back", { ui: H.value }, () => [I(y, w({
2019
+ size: E(k).size,
2020
+ icon: E(k).backIcon || E(L).ui.icons.arrowLeft,
2021
+ color: "neutral",
2022
+ variant: "link",
2023
+ "aria-label": E(F)("commandPalette.back")
2024
+ }, typeof E(k).back == "object" ? E(k).back : {}, {
2025
+ "data-slot": "back",
2026
+ class: H.value.back({ class: E(k).ui?.back }),
2027
+ onClick: Y
2028
+ }), null, 16, [
2029
+ "size",
2030
+ "icon",
2031
+ "aria-label",
2032
+ "class"
2033
+ ])])]),
2034
+ key: "0"
2035
+ } : void 0, E(k).close || _.close ? {
2036
+ name: "trailing",
2037
+ fn: M(() => [N(e.$slots, "close", { ui: H.value }, () => [E(k).close ? (z(), T(y, w({
2038
+ key: 0,
2039
+ size: E(k).size,
2040
+ icon: E(k).closeIcon || E(L).ui.icons.close,
2041
+ color: "neutral",
2042
+ variant: "ghost",
2043
+ "aria-label": E(F)("commandPalette.close")
2044
+ }, typeof E(k).close == "object" ? E(k).close : {}, {
2045
+ "data-slot": "close",
2046
+ class: H.value.close({ class: E(k).ui?.close }),
2047
+ onClick: t[0] ||= (e) => g("update:open", !1)
2048
+ }), null, 16, [
2049
+ "size",
2050
+ "icon",
2051
+ "aria-label",
2052
+ "class"
2053
+ ])) : A("", !0)])]),
2054
+ key: "1"
2055
+ } : void 0]), 1040, [
2056
+ "size",
2057
+ "placeholder",
2058
+ "autofocus",
2059
+ "loading",
2060
+ "loading-icon",
2061
+ "trailing-icon",
2062
+ "icon",
2063
+ "class"
2064
+ ])]),
2065
+ _: 3
2066
+ }, 8, ["modelValue"])) : A("", !0),
2067
+ I(E(ye), {
2068
+ "data-slot": "content",
2069
+ class: B(H.value.content({ class: E(k).ui?.content }))
2070
+ }, {
2071
+ default: M(() => [q.value?.length ? (z(), j("div", {
2072
+ key: 0,
2073
+ role: "presentation",
2074
+ "data-slot": "viewport",
2075
+ class: B(H.value.viewport({ class: E(k).ui?.viewport }))
2076
+ }, [E(k).virtualize ? (z(), T(E(Se), w({
2077
+ key: 0,
2078
+ options: Me.value,
2079
+ "text-content": (e) => E(i)(e, E(k).labelKey)
2080
+ }, me.value), {
2081
+ default: M(({ option: e, virtualItem: t }) => [I(E(he), {
2082
+ item: e,
2083
+ index: t.index
2084
+ }, null, 8, ["item", "index"])]),
2085
+ _: 1
2086
+ }, 16, ["options", "text-content"])) : (z(!0), j(fe, { key: 1 }, re(q.value, (t) => (z(), T(E(ve), {
2087
+ key: `group-${t.id}`,
2088
+ "data-slot": "group",
2089
+ class: B(H.value.group({ class: E(k).ui?.group }))
2090
+ }, {
2091
+ default: M(() => [E(i)(t, E(k).labelKey) || _[t.slot ? `${t.slot}-group-label` : "group-label"] ? (z(), T(E(Ae), {
2092
+ key: 0,
2093
+ "data-slot": "label",
2094
+ class: B(H.value.label({ class: E(k).ui?.label }))
2095
+ }, {
2096
+ default: M(() => [N(e.$slots, t.slot ? `${t.slot}-group-label` : "group-label", {
2097
+ group: t,
2098
+ label: E(i)(t, E(k).labelKey),
2099
+ ui: H.value
2100
+ }, () => [ne(R(E(i)(t, E(k).labelKey)), 1)])]),
2101
+ _: 2
2102
+ }, 1032, ["class"])) : A("", !0), (z(!0), j(fe, null, re(t.items, (e, n) => (z(), T(E(he), {
2103
+ key: `group-${t.id}-${n}`,
2104
+ item: e,
2105
+ index: n,
2106
+ group: t
2107
+ }, null, 8, [
2108
+ "item",
2109
+ "index",
2110
+ "group"
2111
+ ]))), 128))]),
2112
+ _: 2
2113
+ }, 1032, ["class"]))), 128))], 2)) : (z(), j("div", {
2114
+ key: 1,
2115
+ "data-slot": "empty",
2116
+ class: B(H.value.empty({ class: E(k).ui?.empty }))
2117
+ }, [N(e.$slots, "empty", { searchTerm: P.value }, () => [ne(R(P.value ? E(F)("commandPalette.noMatch", { searchTerm: P.value }) : E(F)("commandPalette.noData")), 1)])], 2))]),
2118
+ _: 3
2119
+ }, 8, ["class"]),
2120
+ _.footer ? (z(), j("div", {
2121
+ key: 1,
2122
+ "data-slot": "footer",
2123
+ class: B(H.value.footer({ class: E(k).ui?.footer }))
2124
+ }, [N(e.$slots, "footer", { ui: H.value })], 2)) : A("", !0)
2125
+ ]),
2126
+ _: 3
2127
+ }, 16, ["selection-behavior", "class"])], 64));
2128
+ }
2129
+ }), cn = {
2130
+ slots: {
2131
+ modal: "",
2132
+ input: ""
2133
+ },
2134
+ variants: {
2135
+ fullscreen: { false: { modal: "sm:max-w-3xl h-full sm:h-[28rem]" } },
2136
+ size: {
2137
+ xs: {},
2138
+ sm: {},
2139
+ md: {},
2140
+ lg: {},
2141
+ xl: {}
2142
+ }
2143
+ },
2144
+ defaultVariants: { size: "md" }
2145
+ }, ln = {
2146
+ __name: "DashboardSearch",
2147
+ props: /*@__PURE__*/ P({
2148
+ size: {
2149
+ type: null,
2150
+ required: !1
2151
+ },
2152
+ close: {
2153
+ type: [Boolean, Object],
2154
+ required: !1,
2155
+ default: !0
2156
+ },
2157
+ input: {
2158
+ type: [Boolean, Object],
2159
+ required: !1
2160
+ },
2161
+ shortcut: {
2162
+ type: String,
2163
+ required: !1,
2164
+ default: "meta_k"
2165
+ },
2166
+ fuse: {
2167
+ type: Object,
2168
+ required: !1
2169
+ },
2170
+ searchDelay: {
2171
+ type: Number,
2172
+ required: !1,
2173
+ default: 100
2174
+ },
2175
+ colorMode: {
2176
+ type: Boolean,
2177
+ required: !1,
2178
+ default: !0
2179
+ },
2180
+ class: {
2181
+ type: null,
2182
+ required: !1
2183
+ },
2184
+ ui: {
2185
+ type: Object,
2186
+ required: !1
2187
+ },
2188
+ title: {
2189
+ type: String,
2190
+ required: !1
2191
+ },
2192
+ description: {
2193
+ type: String,
2194
+ required: !1
2195
+ },
2196
+ overlay: {
2197
+ type: Boolean,
2198
+ required: !1
2199
+ },
2200
+ transition: {
2201
+ type: Boolean,
2202
+ required: !1
2203
+ },
2204
+ content: {
2205
+ type: Object,
2206
+ required: !1
2207
+ },
2208
+ dismissible: {
2209
+ type: Boolean,
2210
+ required: !1
2211
+ },
2212
+ fullscreen: {
2213
+ type: Boolean,
2214
+ required: !1,
2215
+ default: !1
2216
+ },
2217
+ modal: {
2218
+ type: Boolean,
2219
+ required: !1
2220
+ },
2221
+ portal: {
2222
+ type: [Boolean, String],
2223
+ required: !1,
2224
+ skipCheck: !0
2225
+ },
2226
+ unmountOnHide: {
2227
+ type: Boolean,
2228
+ required: !1
2229
+ },
2230
+ icon: {
2231
+ type: [String, Boolean],
2232
+ required: !1,
2233
+ skipCheck: !0
2234
+ },
2235
+ trailingIcon: {
2236
+ type: null,
2237
+ required: !1
2238
+ },
2239
+ selectedIcon: {
2240
+ type: null,
2241
+ required: !1
2242
+ },
2243
+ childrenIcon: {
2244
+ type: null,
2245
+ required: !1
2246
+ },
2247
+ placeholder: {
2248
+ type: String,
2249
+ required: !1
2250
+ },
2251
+ autofocus: {
2252
+ type: Boolean,
2253
+ required: !1
2254
+ },
2255
+ loading: {
2256
+ type: Boolean,
2257
+ required: !1
2258
+ },
2259
+ loadingIcon: {
2260
+ type: null,
2261
+ required: !1
2262
+ },
2263
+ closeIcon: {
2264
+ type: null,
2265
+ required: !1
2266
+ },
2267
+ back: {
2268
+ type: [Boolean, Object],
2269
+ required: !1
2270
+ },
2271
+ backIcon: {
2272
+ type: null,
2273
+ required: !1
2274
+ },
2275
+ disabled: {
2276
+ type: Boolean,
2277
+ required: !1
2278
+ },
2279
+ highlightOnHover: {
2280
+ type: Boolean,
2281
+ required: !1
2282
+ },
2283
+ labelKey: {
2284
+ type: null,
2285
+ required: !1
2286
+ },
2287
+ descriptionKey: {
2288
+ type: null,
2289
+ required: !1
2290
+ },
2291
+ preserveGroupOrder: {
2292
+ type: Boolean,
2293
+ required: !1
2294
+ },
2295
+ virtualize: {
2296
+ type: [Boolean, Object],
2297
+ required: !1
2298
+ },
2299
+ groups: {
2300
+ type: Array,
2301
+ required: !1
2302
+ }
2303
+ }, {
2304
+ open: {
2305
+ type: Boolean,
2306
+ default: !1
2307
+ },
2308
+ openModifiers: {},
2309
+ searchTerm: {
2310
+ type: String,
2311
+ default: ""
2312
+ },
2313
+ searchTermModifiers: {}
2314
+ }),
2315
+ emits: ["update:open", "update:searchTerm"],
2316
+ setup(n, { expose: r }) {
2317
+ let i = n, s = de(), l = u("dashboardSearch", i), d = oe(n, "open", {
2318
+ type: Boolean,
2319
+ default: !1
2320
+ }), f = oe(n, "searchTerm", {
2321
+ type: String,
2322
+ default: ""
2323
+ });
2324
+ H("dashboard:search:toggle", () => {
2325
+ d.value = !d.value;
2326
+ });
2327
+ let { t: m, locale: h } = t(), g = he(), _ = e(), v = p(o(l, "size", "icon", "trailingIcon", "selectedIcon", "childrenIcon", "placeholder", "autofocus", "loading", "loadingIcon", "close", "closeIcon", "back", "backIcon", "disabled", "highlightOnHover", "labelKey", "descriptionKey", "preserveGroupOrder", "virtualize", "searchDelay")), y = p(o(l, "overlay", "transition", "content", "dismissible", "fullscreen", "modal", "portal", "unmountOnHide")), b = O(() => l.input !== !1 && te(typeof l.input == "object" ? l.input : {}, { fixed: !0 })), x = () => a(s, ["content"]), S = O(() => te({}, l.fuse, { fuseOptions: { useTokenSearch: !0 } })), C = O(() => ee({
2328
+ extend: cn,
2329
+ ..._.ui?.dashboardSearch || {}
2330
+ })({
2331
+ size: l.size,
2332
+ fullscreen: l.fullscreen
2333
+ })), ne = O(() => {
2334
+ let e = [];
2335
+ return e.push(...l.groups || []), l.colorMode && !g?.forced && e.push({
2336
+ id: "theme",
2337
+ label: m("dashboardSearch.theme"),
2338
+ items: [
2339
+ {
2340
+ label: m("colorMode.system"),
2341
+ icon: _.ui.icons.system,
2342
+ active: g.preference === "system",
2343
+ onSelect: () => {
2344
+ g.preference = "system";
2345
+ }
2346
+ },
2347
+ {
2348
+ label: m("colorMode.light"),
2349
+ icon: _.ui.icons.light,
2350
+ active: g.preference === "light",
2351
+ onSelect: () => {
2352
+ g.preference = "light";
2353
+ }
2354
+ },
2355
+ {
2356
+ label: m("colorMode.dark"),
2357
+ icon: _.ui.icons.dark,
2358
+ active: g.preference === "dark",
2359
+ onSelect: () => {
2360
+ g.preference = "dark";
2361
+ }
2362
+ }
2363
+ ]
2364
+ }), e;
2365
+ }), D = ce("commandPaletteRef");
2366
+ function k(e) {
2367
+ e.disabled || (d.value = !1, f.value = "");
2368
+ }
2369
+ return ke({ [l.shortcut]: {
2370
+ usingInput: !0,
2371
+ handler: () => d.value = !d.value
2372
+ } }), r({ commandPaletteRef: D }), (e, t) => (z(), T(Ee, w({
2373
+ open: d.value,
2374
+ "onUpdate:open": t[2] ||= (e) => d.value = e,
2375
+ title: E(l).title || E(h).messages.dashboardSearch?.title || E(m)("dashboardSearchButton.label"),
2376
+ description: E(l).description || E(h).messages.dashboardSearch?.description
2377
+ }, E(y), {
2378
+ "data-slot": "modal",
2379
+ class: C.value.modal({ class: [E(l).ui?.modal, E(l).class] })
2380
+ }), {
2381
+ content: M((n) => [N(e.$slots, "content", L(pe(n)), () => [I(sn, w({
2382
+ ref_key: "commandPaletteRef",
2383
+ ref: D,
2384
+ "search-term": f.value,
2385
+ "onUpdate:searchTerm": t[0] ||= (e) => f.value = e
2386
+ }, E(v), {
2387
+ groups: ne.value,
2388
+ fuse: S.value,
2389
+ input: b.value,
2390
+ ui: E(c)(E(a)(C.value, ["modal"]), E(l).ui),
2391
+ "onUpdate:modelValue": k,
2392
+ "onUpdate:open": t[1] ||= (e) => d.value = e
2393
+ }), ie({ _: 2 }, [re(x(), (t, n) => ({
2394
+ name: n,
2395
+ fn: M((t) => [N(e.$slots, n, L(pe(t)))])
2396
+ }))]), 1040, [
2397
+ "search-term",
2398
+ "groups",
2399
+ "fuse",
2400
+ "input",
2401
+ "ui"
2402
+ ])])]),
2403
+ _: 3
2404
+ }, 16, [
2405
+ "open",
2406
+ "title",
2407
+ "description",
2408
+ "class"
2409
+ ]));
2410
+ }
2411
+ };
2412
+ //#endregion
2413
+ export { ln as default };