@afbin/cli 0.4.1 → 0.4.2

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 (468) hide show
  1. package/README.md +5 -0
  2. package/dist/afbin.mjs +33 -12
  3. package/dist/index.mjs +11 -1
  4. package/dist/runtime/dist/web/.vite/manifest.json +216 -216
  5. package/dist/runtime/dist/web/assets/{Account-CvOF6jpD.js → Account-qnxwLep7.js} +1 -1
  6. package/dist/runtime/dist/web/assets/Account-qnxwLep7.js.br +0 -0
  7. package/dist/runtime/dist/web/assets/Account-qnxwLep7.js.gz +0 -0
  8. package/dist/runtime/dist/web/assets/{ArtifactAddress-DORDne01.js → ArtifactAddress-1ftOG9A5.js} +2 -2
  9. package/dist/runtime/dist/web/assets/ArtifactAddress-1ftOG9A5.js.br +0 -0
  10. package/dist/runtime/dist/web/assets/ArtifactAddress-1ftOG9A5.js.gz +0 -0
  11. package/dist/runtime/dist/web/assets/{ArtifactData-BdL9R2dA.js → ArtifactData-CZq-MLWc.js} +1 -1
  12. package/dist/runtime/dist/web/assets/ArtifactData-CZq-MLWc.js.br +0 -0
  13. package/dist/runtime/dist/web/assets/ArtifactData-CZq-MLWc.js.gz +0 -0
  14. package/dist/runtime/dist/web/assets/{ArtifactEditor-BZXbOk_F.js → ArtifactEditor-Cd_-Z6DK.js} +1 -1
  15. package/dist/runtime/dist/web/assets/ArtifactEditor-Cd_-Z6DK.js.br +0 -0
  16. package/dist/runtime/dist/web/assets/ArtifactEditor-Cd_-Z6DK.js.gz +0 -0
  17. package/dist/runtime/dist/web/assets/{AssetPageHeader-DX2RcYTv.js → AssetPageHeader-BqdRtu9K.js} +1 -1
  18. package/dist/runtime/dist/web/assets/AssetPageHeader-BqdRtu9K.js.br +0 -0
  19. package/dist/runtime/dist/web/assets/AssetPageHeader-BqdRtu9K.js.gz +0 -0
  20. package/dist/runtime/dist/web/assets/{Assets-dgdXIgAW.js → Assets-D6htDZnu.js} +1 -1
  21. package/dist/runtime/dist/web/assets/Assets-D6htDZnu.js.br +0 -0
  22. package/dist/runtime/dist/web/assets/Assets-D6htDZnu.js.gz +0 -0
  23. package/dist/runtime/dist/web/assets/{AvatarCircle-MNnIhRvg.js → AvatarCircle-CBpOuCGy.js} +1 -1
  24. package/dist/runtime/dist/web/assets/AvatarCircle-CBpOuCGy.js.br +0 -0
  25. package/dist/runtime/dist/web/assets/AvatarCircle-CBpOuCGy.js.gz +0 -0
  26. package/dist/runtime/dist/web/assets/{Chat-V1ku1-60.js → Chat-DueKnMAf.js} +1 -1
  27. package/dist/runtime/dist/web/assets/Chat-DueKnMAf.js.br +0 -0
  28. package/dist/runtime/dist/web/assets/Chat-DueKnMAf.js.gz +0 -0
  29. package/dist/runtime/dist/web/assets/{ConfirmDialog-Ph1VDgNN.js → ConfirmDialog-hdkXS1mg.js} +1 -1
  30. package/dist/runtime/dist/web/assets/ConfirmDialog-hdkXS1mg.js.br +0 -0
  31. package/dist/runtime/dist/web/assets/ConfirmDialog-hdkXS1mg.js.gz +0 -0
  32. package/dist/runtime/dist/web/assets/{DatasetCatalogView-DBJEPKFI.js → DatasetCatalogView-DKNdjYA_.js} +1 -1
  33. package/dist/runtime/dist/web/assets/DatasetCatalogView-DKNdjYA_.js.br +0 -0
  34. package/dist/runtime/dist/web/assets/DatasetCatalogView-DKNdjYA_.js.gz +0 -0
  35. package/dist/runtime/dist/web/assets/{DatasetEditor-CMqN1duq.js → DatasetEditor-C22-4oJL.js} +1 -1
  36. package/dist/runtime/dist/web/assets/DatasetEditor-C22-4oJL.js.br +0 -0
  37. package/dist/runtime/dist/web/assets/DatasetEditor-C22-4oJL.js.gz +0 -0
  38. package/dist/runtime/dist/web/assets/{Docs-DVoW7b7v.js → Docs-B80IZLN8.js} +1 -1
  39. package/dist/runtime/dist/web/assets/Docs-B80IZLN8.js.br +0 -0
  40. package/dist/runtime/dist/web/assets/Docs-B80IZLN8.js.gz +0 -0
  41. package/dist/runtime/dist/web/assets/{Document-udhy5mlX.js → Document-C6-E9V3_.js} +4 -4
  42. package/dist/runtime/dist/web/assets/Document-C6-E9V3_.js.br +0 -0
  43. package/dist/runtime/dist/web/assets/Document-C6-E9V3_.js.gz +0 -0
  44. package/dist/runtime/dist/web/assets/{DocumentChrome-EUbW_JvA.js → DocumentChrome-Bw4_z5yQ.js} +1 -1
  45. package/dist/runtime/dist/web/assets/DocumentChrome-Bw4_z5yQ.js.br +0 -0
  46. package/dist/runtime/dist/web/assets/DocumentChrome-Bw4_z5yQ.js.gz +0 -0
  47. package/dist/runtime/dist/web/assets/{DocumentSharing-BuTXuflA.js → DocumentSharing-BiTakFtn.js} +1 -1
  48. package/dist/runtime/dist/web/assets/DocumentSharing-BiTakFtn.js.br +0 -0
  49. package/dist/runtime/dist/web/assets/DocumentSharing-BiTakFtn.js.gz +0 -0
  50. package/dist/runtime/dist/web/assets/{FileUpload-D6RTOrHD.js → FileUpload-B-da-wki.js} +1 -1
  51. package/dist/runtime/dist/web/assets/FileUpload-B-da-wki.js.br +0 -0
  52. package/dist/runtime/dist/web/assets/FileUpload-B-da-wki.js.gz +0 -0
  53. package/dist/runtime/dist/web/assets/{Folder-DoNsFB2I.js → Folder-B-OlCz39.js} +1 -1
  54. package/dist/runtime/dist/web/assets/Folder-B-OlCz39.js.br +0 -0
  55. package/dist/runtime/dist/web/assets/Folder-B-OlCz39.js.gz +0 -0
  56. package/dist/runtime/dist/web/assets/{ForkArtifact-DDmXl1BZ.js → ForkArtifact-DXYU1-qL.js} +1 -1
  57. package/dist/runtime/dist/web/assets/ForkArtifact-DXYU1-qL.js.br +0 -0
  58. package/dist/runtime/dist/web/assets/ForkArtifact-DXYU1-qL.js.gz +0 -0
  59. package/dist/runtime/dist/web/assets/{GetStarted-YjltMEeN.js → GetStarted-CFsSvXR0.js} +1 -1
  60. package/dist/runtime/dist/web/assets/GetStarted-CFsSvXR0.js.br +0 -0
  61. package/dist/runtime/dist/web/assets/GetStarted-CFsSvXR0.js.gz +0 -0
  62. package/dist/runtime/dist/web/assets/{Home-DijnltFZ.js → Home-BSO7YYXA.js} +1 -1
  63. package/dist/runtime/dist/web/assets/Home-BSO7YYXA.js.br +0 -0
  64. package/dist/runtime/dist/web/assets/Home-BSO7YYXA.js.gz +0 -0
  65. package/dist/runtime/dist/web/assets/{Login-DLwn4aUr.js → Login-CszZ8VGu.js} +1 -1
  66. package/dist/runtime/dist/web/assets/Login-CszZ8VGu.js.br +0 -0
  67. package/dist/runtime/dist/web/assets/Login-CszZ8VGu.js.gz +0 -0
  68. package/dist/runtime/dist/web/assets/{NotFound-svz4wCeL.js → NotFound-D2MOGkIO.js} +1 -1
  69. package/dist/runtime/dist/web/assets/NotFound-D2MOGkIO.js.br +0 -0
  70. package/dist/runtime/dist/web/assets/NotFound-D2MOGkIO.js.gz +0 -0
  71. package/dist/runtime/dist/web/assets/{Notifications-BGeJKv2W.js → Notifications-M7BiDhSo.js} +1 -1
  72. package/dist/runtime/dist/web/assets/Notifications-M7BiDhSo.js.br +0 -0
  73. package/dist/runtime/dist/web/assets/Notifications-M7BiDhSo.js.gz +0 -0
  74. package/dist/runtime/dist/web/assets/{Profile-B38GeCbR.js → Profile-DqV5PMEi.js} +2 -2
  75. package/dist/runtime/dist/web/assets/Profile-DqV5PMEi.js.br +0 -0
  76. package/dist/runtime/dist/web/assets/Profile-DqV5PMEi.js.gz +0 -0
  77. package/dist/runtime/dist/web/assets/{Program-D3-Gfvjo.js → Program-CdwfK2zE.js} +1 -1
  78. package/dist/runtime/dist/web/assets/Program-CdwfK2zE.js.br +0 -0
  79. package/dist/runtime/dist/web/assets/Program-CdwfK2zE.js.gz +0 -0
  80. package/dist/runtime/dist/web/assets/{RowMenu-J4Gbci3B.js → RowMenu-B2c9LyOb.js} +1 -1
  81. package/dist/runtime/dist/web/assets/RowMenu-B2c9LyOb.js.br +0 -0
  82. package/dist/runtime/dist/web/assets/RowMenu-B2c9LyOb.js.gz +0 -0
  83. package/dist/runtime/dist/web/assets/Schedules-D05tndQ1.js +1 -0
  84. package/dist/runtime/dist/web/assets/Schedules-D05tndQ1.js.br +0 -0
  85. package/dist/runtime/dist/web/assets/Schedules-D05tndQ1.js.gz +0 -0
  86. package/dist/runtime/dist/web/assets/{ScreenshotEditor-CUmN5F2q.js → ScreenshotEditor-B8g3LiBx.js} +1 -1
  87. package/dist/runtime/dist/web/assets/ScreenshotEditor-B8g3LiBx.js.br +0 -0
  88. package/dist/runtime/dist/web/assets/ScreenshotEditor-B8g3LiBx.js.gz +0 -0
  89. package/dist/runtime/dist/web/assets/{ShareLink-n8KhtnaI.js → ShareLink-qbYss_Eh.js} +1 -1
  90. package/dist/runtime/dist/web/assets/ShareLink-qbYss_Eh.js.br +0 -0
  91. package/dist/runtime/dist/web/assets/ShareLink-qbYss_Eh.js.gz +0 -0
  92. package/dist/runtime/dist/web/assets/{Shelf-BgwHOaeW.js → Shelf-anhc5No9.js} +1 -1
  93. package/dist/runtime/dist/web/assets/Shelf-anhc5No9.js.br +0 -0
  94. package/dist/runtime/dist/web/assets/Shelf-anhc5No9.js.gz +0 -0
  95. package/dist/runtime/dist/web/assets/{SocialPreviewEditor-DwHHRW29.js → SocialPreviewEditor-B4nUY6FA.js} +1 -1
  96. package/dist/runtime/dist/web/assets/SocialPreviewEditor-B4nUY6FA.js.br +0 -0
  97. package/dist/runtime/dist/web/assets/SocialPreviewEditor-B4nUY6FA.js.gz +0 -0
  98. package/dist/runtime/dist/web/assets/{Starter-I01MNooi.js → Starter-DrID859q.js} +1 -1
  99. package/dist/runtime/dist/web/assets/Starter-DrID859q.js.br +0 -0
  100. package/dist/runtime/dist/web/assets/Starter-DrID859q.js.gz +0 -0
  101. package/dist/runtime/dist/web/assets/{Trash-Cu0KXeW7.js → Trash-DoKID_ux.js} +1 -1
  102. package/dist/runtime/dist/web/assets/Trash-DoKID_ux.js.br +0 -0
  103. package/dist/runtime/dist/web/assets/Trash-DoKID_ux.js.gz +0 -0
  104. package/dist/runtime/dist/web/assets/{Welcome-B8iPt_Nh.js → Welcome-Ct29u9Y9.js} +1 -1
  105. package/dist/runtime/dist/web/assets/Welcome-Ct29u9Y9.js.br +0 -0
  106. package/dist/runtime/dist/web/assets/Welcome-Ct29u9Y9.js.gz +0 -0
  107. package/dist/runtime/dist/web/assets/{WorkspaceLayout-fF_ot7EK.js → WorkspaceLayout-Qf3x5yOM.js} +1 -1
  108. package/dist/runtime/dist/web/assets/WorkspaceLayout-Qf3x5yOM.js.br +0 -0
  109. package/dist/runtime/dist/web/assets/WorkspaceLayout-Qf3x5yOM.js.gz +0 -0
  110. package/dist/runtime/dist/web/assets/{browser-artifact-write-ZsGe-hXr.js → browser-artifact-write-CG72iseh.js} +1 -1
  111. package/dist/runtime/dist/web/assets/browser-artifact-write-CG72iseh.js.br +0 -0
  112. package/dist/runtime/dist/web/assets/browser-artifact-write-CG72iseh.js.gz +0 -0
  113. package/dist/runtime/dist/web/assets/{chevron-down-COGO5cmx.js → chevron-down-M1fHuk7u.js} +1 -1
  114. package/dist/runtime/dist/web/assets/{chevron-left-BJZiR3W-.js → chevron-left-NHmvDJpN.js} +1 -1
  115. package/dist/runtime/dist/web/assets/{copy-PNNAtmJH.js → copy-v5iTV3kk.js} +1 -1
  116. package/dist/runtime/dist/web/assets/copy-v5iTV3kk.js.br +0 -0
  117. package/dist/runtime/dist/web/assets/copy-v5iTV3kk.js.gz +0 -0
  118. package/dist/runtime/dist/web/assets/{database-CKOnpvwb.js → database-BbH2eTSj.js} +1 -1
  119. package/dist/runtime/dist/web/assets/database-BbH2eTSj.js.br +2 -0
  120. package/dist/runtime/dist/web/assets/database-BbH2eTSj.js.gz +0 -0
  121. package/dist/runtime/dist/web/assets/{document-update-client-DUF0zs2Z.js → document-update-client-td73lQ81.js} +1 -1
  122. package/dist/runtime/dist/web/assets/document-update-client-td73lQ81.js.br +0 -0
  123. package/dist/runtime/dist/web/assets/document-update-client-td73lQ81.js.gz +0 -0
  124. package/dist/runtime/dist/web/assets/{dom-mounter-64phOf1s.js → dom-mounter-BSxIt5bC.js} +1 -1
  125. package/dist/runtime/dist/web/assets/dom-mounter-BSxIt5bC.js.br +0 -0
  126. package/dist/runtime/dist/web/assets/dom-mounter-BSxIt5bC.js.gz +0 -0
  127. package/dist/runtime/dist/web/assets/{download-j-nqks7p.js → download-Dk3mxCBK.js} +1 -1
  128. package/dist/runtime/dist/web/assets/download-Dk3mxCBK.js.br +0 -0
  129. package/dist/runtime/dist/web/assets/download-Dk3mxCBK.js.gz +0 -0
  130. package/dist/runtime/dist/web/assets/{eye-BNpzRKAK.js → eye-DEiYMLrO.js} +1 -1
  131. package/dist/runtime/dist/web/assets/eye-DEiYMLrO.js.br +0 -0
  132. package/dist/runtime/dist/web/assets/eye-DEiYMLrO.js.gz +0 -0
  133. package/dist/runtime/dist/web/assets/{file-up-DH-HiKEX.js → file-up-GoLKOXxO.js} +1 -1
  134. package/dist/runtime/dist/web/assets/file-up-GoLKOXxO.js.br +1 -0
  135. package/dist/runtime/dist/web/assets/file-up-GoLKOXxO.js.gz +0 -0
  136. package/dist/runtime/dist/web/assets/{git-fork-PQOXxmWW.js → git-fork-CN41g1lF.js} +1 -1
  137. package/dist/runtime/dist/web/assets/git-fork-CN41g1lF.js.br +0 -0
  138. package/dist/runtime/dist/web/assets/git-fork-CN41g1lF.js.gz +0 -0
  139. package/dist/runtime/dist/web/assets/{http-C2exCIpl.js → http-DEdzW08u.js} +1 -1
  140. package/dist/runtime/dist/web/assets/http-DEdzW08u.js.br +0 -0
  141. package/dist/runtime/dist/web/assets/http-DEdzW08u.js.gz +0 -0
  142. package/dist/runtime/dist/web/assets/{list-Dj3WErnh.js → list-CA_o21oZ.js} +1 -1
  143. package/dist/runtime/dist/web/assets/list-CA_o21oZ.js.br +0 -0
  144. package/dist/runtime/dist/web/assets/list-CA_o21oZ.js.gz +0 -0
  145. package/dist/runtime/dist/web/assets/{loader-circle-BXxJOPx-.js → loader-circle-2p_rsu6P.js} +1 -1
  146. package/dist/runtime/dist/web/assets/{lock-B1nhk71f.js → lock-BRsIxNP2.js} +1 -1
  147. package/dist/runtime/dist/web/assets/lock-BRsIxNP2.js.br +0 -0
  148. package/dist/runtime/dist/web/assets/lock-BRsIxNP2.js.gz +0 -0
  149. package/dist/runtime/dist/web/assets/{person-mentions-BEjAedYZ.js → person-mentions-C7vQd7Vr.js} +1 -1
  150. package/dist/runtime/dist/web/assets/person-mentions-C7vQd7Vr.js.br +0 -0
  151. package/dist/runtime/dist/web/assets/person-mentions-C7vQd7Vr.js.gz +0 -0
  152. package/dist/runtime/dist/web/assets/{plus-BtWrAD8F.js → plus-BNzHjmEg.js} +1 -1
  153. package/dist/runtime/dist/web/assets/{rotate-ccw-CSJ78xUE.js → rotate-ccw-CIMUmeuJ.js} +1 -1
  154. package/dist/runtime/dist/web/assets/rotate-ccw-CIMUmeuJ.js.br +0 -0
  155. package/dist/runtime/dist/web/assets/rotate-ccw-CIMUmeuJ.js.gz +0 -0
  156. package/dist/runtime/dist/web/assets/{search-agWZofH1.js → search-CmIkt7xE.js} +1 -1
  157. package/dist/runtime/dist/web/assets/{session-D__Apnw9.js → session-BsshdoaV.js} +1 -1
  158. package/dist/runtime/dist/web/assets/session-BsshdoaV.js.br +0 -0
  159. package/dist/runtime/dist/web/assets/session-BsshdoaV.js.gz +0 -0
  160. package/dist/runtime/dist/web/assets/{shelf-CeaX4iBg.js → shelf-DUXW45ap.js} +1 -1
  161. package/dist/runtime/dist/web/assets/shelf-DUXW45ap.js.br +0 -0
  162. package/dist/runtime/dist/web/assets/shelf-DUXW45ap.js.gz +0 -0
  163. package/dist/runtime/dist/web/assets/{solid-app-BtmRR9Ax.js → solid-app-BNcsMwv4.js} +2 -2
  164. package/dist/runtime/dist/web/assets/solid-app-BNcsMwv4.js.br +0 -0
  165. package/dist/runtime/dist/web/assets/solid-app-BNcsMwv4.js.gz +0 -0
  166. package/dist/runtime/dist/web/assets/solid-app-DRAhiXqs.css +2 -0
  167. package/dist/runtime/dist/web/assets/solid-app-DRAhiXqs.css.br +0 -0
  168. package/dist/runtime/dist/web/assets/solid-app-DRAhiXqs.css.gz +0 -0
  169. package/dist/runtime/dist/web/assets/{undo-2-Di8QrlfX.js → undo-2--XbU60MY.js} +1 -1
  170. package/dist/runtime/dist/web/assets/undo-2--XbU60MY.js.br +0 -0
  171. package/dist/runtime/dist/web/assets/undo-2--XbU60MY.js.gz +0 -0
  172. package/dist/runtime/dist/web/assets/{users-BJrdLUkX.js → users-Bm0xpNrq.js} +1 -1
  173. package/dist/runtime/dist/web/assets/users-Bm0xpNrq.js.br +0 -0
  174. package/dist/runtime/dist/web/assets/users-Bm0xpNrq.js.gz +0 -0
  175. package/dist/runtime/dist/web/solid-app.html +2 -2
  176. package/dist/runtime/draft-compile-worker.mjs +10 -0
  177. package/dist/runtime/host.mjs +12 -2
  178. package/dist/runtime/lambda-page-runtime.js +1 -1
  179. package/dist/runtime/lib/build-assets/.server-reader-cache.json +1 -1
  180. package/dist/runtime/lib/build-assets/offline/.build-cache.json +10 -7
  181. package/dist/runtime/lib/build-assets/offline/manifest.json +4 -4
  182. package/dist/runtime/lib/build-assets/offline/solid.js.gz +0 -0
  183. package/dist/runtime/lib/build-assets/prepared-sources.sha256 +1 -1
  184. package/dist/runtime/pool-worker.mjs +3 -0
  185. package/dist/runtime/preview/{ScreenshotEditor-R3UODF65.js → ScreenshotEditor-LHC3JZSA.js} +1 -1
  186. package/dist/runtime/preview/{annotate-U27XXRZK.js → annotate-THM7GL72.js} +1 -1
  187. package/dist/runtime/preview/chrome.css +1 -1
  188. package/dist/runtime/preview/{chunk-7RMKAFBO.js → chunk-4O7LVK2Q.js} +1 -1
  189. package/dist/runtime/preview/chunk-7T3V6PAW.js +1 -0
  190. package/dist/runtime/preview/{chunk-3KKU74WM.js → chunk-RDT3C3F6.js} +1 -1
  191. package/dist/runtime/preview/client.js +13 -13
  192. package/dist/runtime/preview/connect.js +1 -0
  193. package/dist/runtime/preview/{dom-mounter-3OQN7G4J.js → dom-mounter-2URPGP2F.js} +1 -1
  194. package/dist/runtime/preview/{engine-I6R47UTB.js → engine-5UO3LPN5.js} +1 -1
  195. package/dist/runtime/preview/{selection-actions-426G2H4N.js → selection-actions-LBFPODLD.js} +1 -1
  196. package/dist/runtime/preview/{session-UFN5GQK2.js → session-A2Z3M7QD.js} +1 -1
  197. package/dist/runtime/preview/update-parts-ZLXTYSVY.js +1 -0
  198. package/dist/runtime/preview.mjs +74496 -74135
  199. package/dist/runtime/public/chat/install.ps1 +1 -1
  200. package/dist/runtime/public/chat/install.sh +1 -1
  201. package/dist/runtime/public/chat/release.json +1 -1
  202. package/dist/runtime/public/islands/{boot-74e9143aa374c62b.js → boot-281adc05179334e6.js} +1 -1
  203. package/dist/runtime/public/islands/boot-281adc05179334e6.js.br +0 -0
  204. package/dist/runtime/public/islands/boot-281adc05179334e6.js.gz +0 -0
  205. package/dist/runtime/public/islands/{chunk-51a4b62dc42f3594.js → chunk-1af2f1c5f3e99805.js} +1 -1
  206. package/dist/runtime/public/islands/chunk-1af2f1c5f3e99805.js.br +0 -0
  207. package/dist/runtime/public/islands/chunk-1af2f1c5f3e99805.js.gz +0 -0
  208. package/dist/runtime/public/islands/{chunk-f451297257164687.js → chunk-2f5d885a7394f865.js} +1 -1
  209. package/dist/runtime/public/islands/chunk-2f5d885a7394f865.js.br +0 -0
  210. package/dist/runtime/public/islands/{chunk-f451297257164687.js.gz → chunk-2f5d885a7394f865.js.gz} +0 -0
  211. package/dist/runtime/public/islands/{chunk-68a083200dbd5bf7.js → chunk-3cb86bf7badbd2c3.js} +1 -1
  212. package/dist/runtime/public/islands/chunk-3cb86bf7badbd2c3.js.br +0 -0
  213. package/dist/runtime/public/islands/chunk-3cb86bf7badbd2c3.js.gz +0 -0
  214. package/dist/runtime/public/islands/{chunk-adcd632c8be50ba7.js → chunk-5e05b99cb275660b.js} +1 -1
  215. package/dist/runtime/public/islands/chunk-5e05b99cb275660b.js.br +0 -0
  216. package/dist/runtime/public/islands/{chunk-adcd632c8be50ba7.js.gz → chunk-5e05b99cb275660b.js.gz} +0 -0
  217. package/dist/runtime/public/islands/{chunk-e817ee4addba2d95.js → chunk-d924d4620b11b893.js} +1 -1
  218. package/dist/runtime/public/islands/chunk-d924d4620b11b893.js.br +0 -0
  219. package/dist/runtime/public/islands/chunk-d924d4620b11b893.js.gz +0 -0
  220. package/dist/runtime/public/islands/{chunk-1fa28532f51beb9c.js → chunk-dfe07cc2b19c50cc.js} +1 -1
  221. package/dist/runtime/public/islands/{frame-editor-6b8a50886fff8604.js → frame-editor-66b0c0d98283e912.js} +1 -1
  222. package/dist/runtime/public/islands/frame-editor-66b0c0d98283e912.js.br +0 -0
  223. package/dist/runtime/public/islands/frame-editor-66b0c0d98283e912.js.gz +0 -0
  224. package/dist/runtime/public/islands/{frame-editor-chunk-87b0311faf57261c.js → frame-editor-chunk-091e41cba1670be1.js} +1 -1
  225. package/dist/runtime/public/islands/frame-editor-chunk-091e41cba1670be1.js.br +0 -0
  226. package/dist/runtime/public/islands/frame-editor-chunk-091e41cba1670be1.js.gz +0 -0
  227. package/dist/runtime/public/islands/{frame-editor-chunk-69c553d9c4562981.js → frame-editor-chunk-5ea52db3a6d93294.js} +1 -1
  228. package/dist/runtime/public/islands/frame-editor-chunk-5ea52db3a6d93294.js.br +2 -0
  229. package/dist/runtime/public/islands/frame-editor-chunk-5ea52db3a6d93294.js.gz +0 -0
  230. package/dist/runtime/public/islands/{frame-editor-chunk-c2b9018371100824.js → frame-editor-chunk-a6db6db210776f5c.js} +1 -1
  231. package/dist/runtime/public/islands/frame-editor-chunk-a6db6db210776f5c.js.br +0 -0
  232. package/dist/runtime/public/islands/frame-editor-chunk-a6db6db210776f5c.js.gz +0 -0
  233. package/dist/runtime/public/islands/{frame-editor-chunk-a13dce46b9b8401f.js → frame-editor-chunk-c9facbfeee3c9bed.js} +1 -1
  234. package/dist/runtime/public/islands/frame-editor-chunk-c9facbfeee3c9bed.js.br +0 -0
  235. package/dist/runtime/public/islands/frame-editor-chunk-c9facbfeee3c9bed.js.gz +0 -0
  236. package/dist/runtime/public/islands/{frame-editor-chunk-b06f17fc7dae17e8.js → frame-editor-chunk-d6c77179f72db0ab.js} +1 -1
  237. package/dist/runtime/public/islands/frame-editor-chunk-d6c77179f72db0ab.js.br +0 -0
  238. package/dist/runtime/public/islands/frame-editor-chunk-d6c77179f72db0ab.js.gz +0 -0
  239. package/dist/runtime/public/islands/{image-map-a9f95f7e8d0712c1.js → image-map-7419ab54ff59434a.js} +1 -1
  240. package/dist/runtime/public/islands/image-map-7419ab54ff59434a.js.br +0 -0
  241. package/dist/runtime/public/islands/image-map-7419ab54ff59434a.js.gz +0 -0
  242. package/dist/runtime/public/islands/{kit-basic-cbabcc4b41d6132a.js → kit-basic-c22b54dcd2ea6161.js} +1 -1
  243. package/dist/runtime/public/islands/kit-basic-c22b54dcd2ea6161.js.br +2 -0
  244. package/dist/runtime/public/islands/kit-basic-c22b54dcd2ea6161.js.gz +0 -0
  245. package/dist/runtime/public/islands/{kit-cells-cefbceccdfd0dbe0.js → kit-cells-55ade213f1751716.js} +1 -1
  246. package/dist/runtime/public/islands/kit-cells-55ade213f1751716.js.br +0 -0
  247. package/dist/runtime/public/islands/kit-cells-55ade213f1751716.js.gz +0 -0
  248. package/dist/runtime/public/islands/{kit-controls-81d17a10f9d457f2.js → kit-controls-4f1b98d7d87c4b21.js} +1 -1
  249. package/dist/runtime/public/islands/kit-controls-4f1b98d7d87c4b21.js.br +0 -0
  250. package/dist/runtime/public/islands/kit-controls-4f1b98d7d87c4b21.js.gz +0 -0
  251. package/dist/runtime/public/islands/{kit-data-43947f36f1c501aa.js → kit-data-e1012fd12092b177.js} +1 -1
  252. package/dist/runtime/public/islands/kit-data-e1012fd12092b177.js.br +0 -0
  253. package/dist/runtime/public/islands/kit-data-e1012fd12092b177.js.gz +0 -0
  254. package/dist/runtime/public/islands/{kit-dialog-eedc51ce82feec4b.js → kit-dialog-1e427336472b2906.js} +1 -1
  255. package/dist/runtime/public/islands/kit-dialog-1e427336472b2906.js.br +0 -0
  256. package/dist/runtime/public/islands/kit-dialog-1e427336472b2906.js.gz +0 -0
  257. package/dist/runtime/public/islands/{kit-embed-3c8886cbfa06f74d.js → kit-embed-c7019820c5200806.js} +1 -1
  258. package/dist/runtime/public/islands/kit-embed-c7019820c5200806.js.br +0 -0
  259. package/dist/runtime/public/islands/kit-embed-c7019820c5200806.js.gz +0 -0
  260. package/dist/runtime/public/islands/{kit-files-b7a2cb758f00a68b.js → kit-files-dc0b71ca71f2151c.js} +1 -1
  261. package/dist/runtime/public/islands/kit-files-dc0b71ca71f2151c.js.br +0 -0
  262. package/dist/runtime/public/islands/kit-files-dc0b71ca71f2151c.js.gz +0 -0
  263. package/dist/runtime/public/islands/{kit-image-126e12fcae4215c1.js → kit-image-b31acf4d31a4eeaf.js} +1 -1
  264. package/dist/runtime/public/islands/kit-image-b31acf4d31a4eeaf.js.br +0 -0
  265. package/dist/runtime/public/islands/kit-image-b31acf4d31a4eeaf.js.gz +0 -0
  266. package/dist/runtime/public/islands/{kit-people-5b6f5dd4aa82b657.js → kit-people-6feb1b730c5fd37f.js} +1 -1
  267. package/dist/runtime/public/islands/kit-people-6feb1b730c5fd37f.js.br +0 -0
  268. package/dist/runtime/public/islands/kit-people-6feb1b730c5fd37f.js.gz +0 -0
  269. package/dist/runtime/public/islands/{kit-static-28174bd8f593f8c0.js → kit-static-853aed2cd04c1b4a.js} +1 -1
  270. package/dist/runtime/public/islands/kit-static-853aed2cd04c1b4a.js.br +0 -0
  271. package/dist/runtime/public/islands/kit-static-853aed2cd04c1b4a.js.gz +0 -0
  272. package/dist/runtime/public/islands/manifest.json +211 -211
  273. package/dist/runtime/public/islands/manifest.json.br +0 -0
  274. package/dist/runtime/public/islands/manifest.json.gz +0 -0
  275. package/dist/runtime/public/islands/{morph-engine-4e664485be475dbf.js → morph-engine-c61693caf767d9bd.js} +1 -1
  276. package/dist/runtime/public/islands/morph-engine-c61693caf767d9bd.js.br +0 -0
  277. package/dist/runtime/public/islands/morph-engine-c61693caf767d9bd.js.gz +0 -0
  278. package/dist/runtime/public/islands/offline-ba3717e06bc69a4e.json.gzip +0 -0
  279. package/dist/runtime/public/islands/{page-5f87c34c7c181387.js → page-c3ae4acf0988c2b6.js} +1 -1
  280. package/dist/runtime/public/islands/page-c3ae4acf0988c2b6.js.br +0 -0
  281. package/dist/runtime/public/islands/page-c3ae4acf0988c2b6.js.gz +0 -0
  282. package/dist/runtime/public/islands/{rt-30ff0d94ee3732a1.js → rt-2ab0fed85481c574.js} +1 -1
  283. package/dist/runtime/public/islands/rt-2ab0fed85481c574.js.br +0 -0
  284. package/dist/runtime/public/islands/rt-2ab0fed85481c574.js.gz +0 -0
  285. package/dist/runtime/public/islands/{sqlite-engine-9fc56fea8b1e2aaf.js → sqlite-engine-f3956693df7cfa5c.js} +8 -8
  286. package/dist/runtime/public/islands/sqlite-engine-f3956693df7cfa5c.js.br +0 -0
  287. package/dist/runtime/public/islands/sqlite-engine-f3956693df7cfa5c.js.gz +0 -0
  288. package/dist/runtime/public/islands/{ssr-456cabbcb26f723d.js → ssr-ce6931fb7bda9b08.js} +3 -0
  289. package/dist/runtime/public/islands/ssr-ce6931fb7bda9b08.js.br +0 -0
  290. package/dist/runtime/public/islands/ssr-ce6931fb7bda9b08.js.gz +0 -0
  291. package/dist/runtime/public/islands/{url-sync-74b5212f7b3417d7.js → url-sync-b179b054c9d958a7.js} +1 -1
  292. package/dist/runtime/public/islands/url-sync-b179b054c9d958a7.js.br +0 -0
  293. package/dist/runtime/public/islands/url-sync-b179b054c9d958a7.js.gz +0 -0
  294. package/dist/share/man/man1/afbin.1 +6 -4
  295. package/dist/skills/artifactbin/references/commands.md +4 -2
  296. package/dist/skills/artifactbin/references/publishing.md +5 -3
  297. package/npm-shrinkwrap.json +2 -2
  298. package/package.json +1 -1
  299. package/dist/runtime/dist/web/assets/Account-CvOF6jpD.js.br +0 -0
  300. package/dist/runtime/dist/web/assets/Account-CvOF6jpD.js.gz +0 -0
  301. package/dist/runtime/dist/web/assets/ArtifactAddress-DORDne01.js.br +0 -0
  302. package/dist/runtime/dist/web/assets/ArtifactAddress-DORDne01.js.gz +0 -0
  303. package/dist/runtime/dist/web/assets/ArtifactData-BdL9R2dA.js.br +0 -0
  304. package/dist/runtime/dist/web/assets/ArtifactData-BdL9R2dA.js.gz +0 -0
  305. package/dist/runtime/dist/web/assets/ArtifactEditor-BZXbOk_F.js.br +0 -0
  306. package/dist/runtime/dist/web/assets/ArtifactEditor-BZXbOk_F.js.gz +0 -0
  307. package/dist/runtime/dist/web/assets/AssetPageHeader-DX2RcYTv.js.br +0 -0
  308. package/dist/runtime/dist/web/assets/AssetPageHeader-DX2RcYTv.js.gz +0 -0
  309. package/dist/runtime/dist/web/assets/Assets-dgdXIgAW.js.br +0 -0
  310. package/dist/runtime/dist/web/assets/Assets-dgdXIgAW.js.gz +0 -0
  311. package/dist/runtime/dist/web/assets/AvatarCircle-MNnIhRvg.js.br +0 -0
  312. package/dist/runtime/dist/web/assets/AvatarCircle-MNnIhRvg.js.gz +0 -0
  313. package/dist/runtime/dist/web/assets/Chat-V1ku1-60.js.br +0 -0
  314. package/dist/runtime/dist/web/assets/Chat-V1ku1-60.js.gz +0 -0
  315. package/dist/runtime/dist/web/assets/ConfirmDialog-Ph1VDgNN.js.br +0 -0
  316. package/dist/runtime/dist/web/assets/ConfirmDialog-Ph1VDgNN.js.gz +0 -0
  317. package/dist/runtime/dist/web/assets/DatasetCatalogView-DBJEPKFI.js.br +0 -0
  318. package/dist/runtime/dist/web/assets/DatasetCatalogView-DBJEPKFI.js.gz +0 -0
  319. package/dist/runtime/dist/web/assets/DatasetEditor-CMqN1duq.js.br +0 -0
  320. package/dist/runtime/dist/web/assets/DatasetEditor-CMqN1duq.js.gz +0 -0
  321. package/dist/runtime/dist/web/assets/Docs-DVoW7b7v.js.br +0 -0
  322. package/dist/runtime/dist/web/assets/Docs-DVoW7b7v.js.gz +0 -0
  323. package/dist/runtime/dist/web/assets/Document-udhy5mlX.js.br +0 -0
  324. package/dist/runtime/dist/web/assets/Document-udhy5mlX.js.gz +0 -0
  325. package/dist/runtime/dist/web/assets/DocumentChrome-EUbW_JvA.js.br +0 -0
  326. package/dist/runtime/dist/web/assets/DocumentChrome-EUbW_JvA.js.gz +0 -0
  327. package/dist/runtime/dist/web/assets/DocumentSharing-BuTXuflA.js.br +0 -0
  328. package/dist/runtime/dist/web/assets/DocumentSharing-BuTXuflA.js.gz +0 -0
  329. package/dist/runtime/dist/web/assets/FileUpload-D6RTOrHD.js.br +0 -0
  330. package/dist/runtime/dist/web/assets/FileUpload-D6RTOrHD.js.gz +0 -0
  331. package/dist/runtime/dist/web/assets/Folder-DoNsFB2I.js.br +0 -0
  332. package/dist/runtime/dist/web/assets/Folder-DoNsFB2I.js.gz +0 -0
  333. package/dist/runtime/dist/web/assets/ForkArtifact-DDmXl1BZ.js.br +0 -0
  334. package/dist/runtime/dist/web/assets/ForkArtifact-DDmXl1BZ.js.gz +0 -0
  335. package/dist/runtime/dist/web/assets/GetStarted-YjltMEeN.js.br +0 -0
  336. package/dist/runtime/dist/web/assets/GetStarted-YjltMEeN.js.gz +0 -0
  337. package/dist/runtime/dist/web/assets/Home-DijnltFZ.js.br +0 -0
  338. package/dist/runtime/dist/web/assets/Home-DijnltFZ.js.gz +0 -0
  339. package/dist/runtime/dist/web/assets/Login-DLwn4aUr.js.br +0 -0
  340. package/dist/runtime/dist/web/assets/Login-DLwn4aUr.js.gz +0 -0
  341. package/dist/runtime/dist/web/assets/NotFound-svz4wCeL.js.br +0 -0
  342. package/dist/runtime/dist/web/assets/NotFound-svz4wCeL.js.gz +0 -0
  343. package/dist/runtime/dist/web/assets/Notifications-BGeJKv2W.js.br +0 -0
  344. package/dist/runtime/dist/web/assets/Notifications-BGeJKv2W.js.gz +0 -0
  345. package/dist/runtime/dist/web/assets/Profile-B38GeCbR.js.br +0 -0
  346. package/dist/runtime/dist/web/assets/Profile-B38GeCbR.js.gz +0 -0
  347. package/dist/runtime/dist/web/assets/Program-D3-Gfvjo.js.br +0 -0
  348. package/dist/runtime/dist/web/assets/Program-D3-Gfvjo.js.gz +0 -0
  349. package/dist/runtime/dist/web/assets/RowMenu-J4Gbci3B.js.br +0 -0
  350. package/dist/runtime/dist/web/assets/RowMenu-J4Gbci3B.js.gz +0 -0
  351. package/dist/runtime/dist/web/assets/Schedules-DK3-YUvJ.js +0 -1
  352. package/dist/runtime/dist/web/assets/Schedules-DK3-YUvJ.js.br +0 -0
  353. package/dist/runtime/dist/web/assets/Schedules-DK3-YUvJ.js.gz +0 -0
  354. package/dist/runtime/dist/web/assets/ScreenshotEditor-CUmN5F2q.js.br +0 -0
  355. package/dist/runtime/dist/web/assets/ScreenshotEditor-CUmN5F2q.js.gz +0 -0
  356. package/dist/runtime/dist/web/assets/ShareLink-n8KhtnaI.js.br +0 -0
  357. package/dist/runtime/dist/web/assets/ShareLink-n8KhtnaI.js.gz +0 -0
  358. package/dist/runtime/dist/web/assets/Shelf-BgwHOaeW.js.br +0 -0
  359. package/dist/runtime/dist/web/assets/Shelf-BgwHOaeW.js.gz +0 -0
  360. package/dist/runtime/dist/web/assets/SocialPreviewEditor-DwHHRW29.js.br +0 -0
  361. package/dist/runtime/dist/web/assets/SocialPreviewEditor-DwHHRW29.js.gz +0 -0
  362. package/dist/runtime/dist/web/assets/Starter-I01MNooi.js.br +0 -0
  363. package/dist/runtime/dist/web/assets/Starter-I01MNooi.js.gz +0 -0
  364. package/dist/runtime/dist/web/assets/Trash-Cu0KXeW7.js.br +0 -0
  365. package/dist/runtime/dist/web/assets/Trash-Cu0KXeW7.js.gz +0 -0
  366. package/dist/runtime/dist/web/assets/Welcome-B8iPt_Nh.js.br +0 -0
  367. package/dist/runtime/dist/web/assets/Welcome-B8iPt_Nh.js.gz +0 -0
  368. package/dist/runtime/dist/web/assets/WorkspaceLayout-fF_ot7EK.js.br +0 -0
  369. package/dist/runtime/dist/web/assets/WorkspaceLayout-fF_ot7EK.js.gz +0 -0
  370. package/dist/runtime/dist/web/assets/browser-artifact-write-ZsGe-hXr.js.br +0 -0
  371. package/dist/runtime/dist/web/assets/browser-artifact-write-ZsGe-hXr.js.gz +0 -0
  372. package/dist/runtime/dist/web/assets/copy-PNNAtmJH.js.br +0 -0
  373. package/dist/runtime/dist/web/assets/copy-PNNAtmJH.js.gz +0 -0
  374. package/dist/runtime/dist/web/assets/database-CKOnpvwb.js.br +0 -3
  375. package/dist/runtime/dist/web/assets/database-CKOnpvwb.js.gz +0 -0
  376. package/dist/runtime/dist/web/assets/document-update-client-DUF0zs2Z.js.br +0 -0
  377. package/dist/runtime/dist/web/assets/document-update-client-DUF0zs2Z.js.gz +0 -0
  378. package/dist/runtime/dist/web/assets/dom-mounter-64phOf1s.js.br +0 -0
  379. package/dist/runtime/dist/web/assets/dom-mounter-64phOf1s.js.gz +0 -0
  380. package/dist/runtime/dist/web/assets/download-j-nqks7p.js.br +0 -0
  381. package/dist/runtime/dist/web/assets/download-j-nqks7p.js.gz +0 -0
  382. package/dist/runtime/dist/web/assets/eye-BNpzRKAK.js.br +0 -0
  383. package/dist/runtime/dist/web/assets/eye-BNpzRKAK.js.gz +0 -0
  384. package/dist/runtime/dist/web/assets/file-up-DH-HiKEX.js.br +0 -0
  385. package/dist/runtime/dist/web/assets/file-up-DH-HiKEX.js.gz +0 -0
  386. package/dist/runtime/dist/web/assets/git-fork-PQOXxmWW.js.br +0 -0
  387. package/dist/runtime/dist/web/assets/git-fork-PQOXxmWW.js.gz +0 -0
  388. package/dist/runtime/dist/web/assets/http-C2exCIpl.js.br +0 -0
  389. package/dist/runtime/dist/web/assets/http-C2exCIpl.js.gz +0 -0
  390. package/dist/runtime/dist/web/assets/list-Dj3WErnh.js.br +0 -0
  391. package/dist/runtime/dist/web/assets/list-Dj3WErnh.js.gz +0 -0
  392. package/dist/runtime/dist/web/assets/lock-B1nhk71f.js.br +0 -0
  393. package/dist/runtime/dist/web/assets/lock-B1nhk71f.js.gz +0 -0
  394. package/dist/runtime/dist/web/assets/person-mentions-BEjAedYZ.js.br +0 -0
  395. package/dist/runtime/dist/web/assets/person-mentions-BEjAedYZ.js.gz +0 -0
  396. package/dist/runtime/dist/web/assets/rotate-ccw-CSJ78xUE.js.br +0 -0
  397. package/dist/runtime/dist/web/assets/rotate-ccw-CSJ78xUE.js.gz +0 -0
  398. package/dist/runtime/dist/web/assets/session-D__Apnw9.js.br +0 -0
  399. package/dist/runtime/dist/web/assets/session-D__Apnw9.js.gz +0 -0
  400. package/dist/runtime/dist/web/assets/shelf-CeaX4iBg.js.br +0 -0
  401. package/dist/runtime/dist/web/assets/shelf-CeaX4iBg.js.gz +0 -0
  402. package/dist/runtime/dist/web/assets/solid-app-BmdFnFpX.css +0 -2
  403. package/dist/runtime/dist/web/assets/solid-app-BmdFnFpX.css.br +0 -0
  404. package/dist/runtime/dist/web/assets/solid-app-BmdFnFpX.css.gz +0 -0
  405. package/dist/runtime/dist/web/assets/solid-app-BtmRR9Ax.js.br +0 -0
  406. package/dist/runtime/dist/web/assets/solid-app-BtmRR9Ax.js.gz +0 -0
  407. package/dist/runtime/dist/web/assets/undo-2-Di8QrlfX.js.br +0 -0
  408. package/dist/runtime/dist/web/assets/undo-2-Di8QrlfX.js.gz +0 -0
  409. package/dist/runtime/dist/web/assets/users-BJrdLUkX.js.br +0 -0
  410. package/dist/runtime/dist/web/assets/users-BJrdLUkX.js.gz +0 -0
  411. package/dist/runtime/preview/update-parts-OJC3ZSRW.js +0 -1
  412. package/dist/runtime/public/islands/boot-74e9143aa374c62b.js.br +0 -0
  413. package/dist/runtime/public/islands/boot-74e9143aa374c62b.js.gz +0 -0
  414. package/dist/runtime/public/islands/chunk-51a4b62dc42f3594.js.br +0 -0
  415. package/dist/runtime/public/islands/chunk-51a4b62dc42f3594.js.gz +0 -0
  416. package/dist/runtime/public/islands/chunk-68a083200dbd5bf7.js.br +0 -0
  417. package/dist/runtime/public/islands/chunk-68a083200dbd5bf7.js.gz +0 -0
  418. package/dist/runtime/public/islands/chunk-adcd632c8be50ba7.js.br +0 -0
  419. package/dist/runtime/public/islands/chunk-e817ee4addba2d95.js.br +0 -0
  420. package/dist/runtime/public/islands/chunk-e817ee4addba2d95.js.gz +0 -0
  421. package/dist/runtime/public/islands/chunk-f451297257164687.js.br +0 -0
  422. package/dist/runtime/public/islands/frame-editor-6b8a50886fff8604.js.br +0 -0
  423. package/dist/runtime/public/islands/frame-editor-6b8a50886fff8604.js.gz +0 -0
  424. package/dist/runtime/public/islands/frame-editor-chunk-69c553d9c4562981.js.br +0 -1
  425. package/dist/runtime/public/islands/frame-editor-chunk-69c553d9c4562981.js.gz +0 -0
  426. package/dist/runtime/public/islands/frame-editor-chunk-87b0311faf57261c.js.br +0 -0
  427. package/dist/runtime/public/islands/frame-editor-chunk-87b0311faf57261c.js.gz +0 -0
  428. package/dist/runtime/public/islands/frame-editor-chunk-a13dce46b9b8401f.js.br +0 -0
  429. package/dist/runtime/public/islands/frame-editor-chunk-a13dce46b9b8401f.js.gz +0 -0
  430. package/dist/runtime/public/islands/frame-editor-chunk-b06f17fc7dae17e8.js.br +0 -0
  431. package/dist/runtime/public/islands/frame-editor-chunk-b06f17fc7dae17e8.js.gz +0 -0
  432. package/dist/runtime/public/islands/frame-editor-chunk-c2b9018371100824.js.br +0 -0
  433. package/dist/runtime/public/islands/frame-editor-chunk-c2b9018371100824.js.gz +0 -0
  434. package/dist/runtime/public/islands/image-map-a9f95f7e8d0712c1.js.br +0 -0
  435. package/dist/runtime/public/islands/image-map-a9f95f7e8d0712c1.js.gz +0 -0
  436. package/dist/runtime/public/islands/kit-basic-cbabcc4b41d6132a.js.br +0 -0
  437. package/dist/runtime/public/islands/kit-basic-cbabcc4b41d6132a.js.gz +0 -0
  438. package/dist/runtime/public/islands/kit-cells-cefbceccdfd0dbe0.js.br +0 -0
  439. package/dist/runtime/public/islands/kit-cells-cefbceccdfd0dbe0.js.gz +0 -0
  440. package/dist/runtime/public/islands/kit-controls-81d17a10f9d457f2.js.br +0 -0
  441. package/dist/runtime/public/islands/kit-controls-81d17a10f9d457f2.js.gz +0 -0
  442. package/dist/runtime/public/islands/kit-data-43947f36f1c501aa.js.br +0 -0
  443. package/dist/runtime/public/islands/kit-data-43947f36f1c501aa.js.gz +0 -0
  444. package/dist/runtime/public/islands/kit-dialog-eedc51ce82feec4b.js.br +0 -0
  445. package/dist/runtime/public/islands/kit-dialog-eedc51ce82feec4b.js.gz +0 -0
  446. package/dist/runtime/public/islands/kit-embed-3c8886cbfa06f74d.js.br +0 -0
  447. package/dist/runtime/public/islands/kit-embed-3c8886cbfa06f74d.js.gz +0 -0
  448. package/dist/runtime/public/islands/kit-files-b7a2cb758f00a68b.js.br +0 -0
  449. package/dist/runtime/public/islands/kit-files-b7a2cb758f00a68b.js.gz +0 -0
  450. package/dist/runtime/public/islands/kit-image-126e12fcae4215c1.js.br +0 -0
  451. package/dist/runtime/public/islands/kit-image-126e12fcae4215c1.js.gz +0 -0
  452. package/dist/runtime/public/islands/kit-people-5b6f5dd4aa82b657.js.br +0 -0
  453. package/dist/runtime/public/islands/kit-people-5b6f5dd4aa82b657.js.gz +0 -0
  454. package/dist/runtime/public/islands/kit-static-28174bd8f593f8c0.js.br +0 -0
  455. package/dist/runtime/public/islands/kit-static-28174bd8f593f8c0.js.gz +0 -0
  456. package/dist/runtime/public/islands/morph-engine-4e664485be475dbf.js.br +0 -0
  457. package/dist/runtime/public/islands/morph-engine-4e664485be475dbf.js.gz +0 -0
  458. package/dist/runtime/public/islands/offline-4446a94ed9f706c3.json.gzip +0 -0
  459. package/dist/runtime/public/islands/page-5f87c34c7c181387.js.br +0 -0
  460. package/dist/runtime/public/islands/page-5f87c34c7c181387.js.gz +0 -0
  461. package/dist/runtime/public/islands/rt-30ff0d94ee3732a1.js.br +0 -0
  462. package/dist/runtime/public/islands/rt-30ff0d94ee3732a1.js.gz +0 -0
  463. package/dist/runtime/public/islands/sqlite-engine-9fc56fea8b1e2aaf.js.br +0 -0
  464. package/dist/runtime/public/islands/sqlite-engine-9fc56fea8b1e2aaf.js.gz +0 -0
  465. package/dist/runtime/public/islands/ssr-456cabbcb26f723d.js.br +0 -0
  466. package/dist/runtime/public/islands/ssr-456cabbcb26f723d.js.gz +0 -0
  467. package/dist/runtime/public/islands/url-sync-74b5212f7b3417d7.js.br +0 -0
  468. package/dist/runtime/public/islands/url-sync-74b5212f7b3417d7.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Trash-Cu0KXeW7.js","assets/web-Ckpee-ZJ.js","assets/chevron-left-BJZiR3W-.js","assets/RowMenu-J4Gbci3B.js","assets/rotate-ccw-CSJ78xUE.js","assets/search-agWZofH1.js","assets/NotFound-svz4wCeL.js","assets/Login-DLwn4aUr.js","assets/safe-redirect-C0PCIKoE.js","assets/Start-B5ji5vTT.js","assets/document-navigation-CED4GpXl.js","assets/Welcome-B8iPt_Nh.js","assets/AvatarCircle-MNnIhRvg.js","assets/loader-circle-BXxJOPx-.js","assets/src-CcX8uAQo.js","assets/upload-limits-Cxiss8cy.js","assets/Notifications-BGeJKv2W.js","assets/Account-CvOF6jpD.js","assets/copy-PNNAtmJH.js","assets/ConfirmDialog-Ph1VDgNN.js","assets/dialog-shell-D1Dv5nY8.js","assets/copy-text-BWnoOWaK.js","assets/Docs-DVoW7b7v.js","assets/story-themes-DOZK2BkF.js","assets/GetStarted-YjltMEeN.js","assets/default-server-CJjQV_9Y.js","assets/agent-discovery-tags-DYoCR4DA.js","assets/escape-CVx3RLA2.js","assets/Profile-B38GeCbR.js","assets/shelf-CeaX4iBg.js","assets/list-Dj3WErnh.js","assets/sign-in-required-7zEVbzx2.js","assets/urls-DtkapM59.js","assets/artifact-reference-ChS4TSVz.js","assets/Home-DijnltFZ.js","assets/WorkspaceLayout-fF_ot7EK.js","assets/chevron-down-COGO5cmx.js","assets/ShareLink-n8KhtnaI.js","assets/DialogShell-BA3tWbeJ.js","assets/database-CKOnpvwb.js","assets/Shelf-BgwHOaeW.js","assets/lock-B1nhk71f.js","assets/person-mentions-BEjAedYZ.js","assets/serialize-n0A-pNlo.js","assets/http-C2exCIpl.js","assets/browser-artifact-write-ZsGe-hXr.js","assets/document-update-client-DUF0zs2Z.js","assets/jsx-vj4cHW_Q.js","assets/annotation-range-DqD0nTBm.js","assets/runtime-id-CM5my_RX.js","assets/eye-BNpzRKAK.js","assets/file-up-DH-HiKEX.js","assets/git-fork-PQOXxmWW.js","assets/users-BJrdLUkX.js","assets/plus-BtWrAD8F.js","assets/share-roles-c4EwFuyA.js","assets/sharing-X_H561x5.js","assets/ArtifactAddress-DORDne01.js","assets/Assets-dgdXIgAW.js","assets/DatasetEditor-CMqN1duq.js","assets/DatasetCatalogView-DBJEPKFI.js","assets/AssetPageHeader-DX2RcYTv.js","assets/FileUpload-D6RTOrHD.js","assets/download-j-nqks7p.js","assets/file-display-CJZlQncv.js","assets/Schedules-DK3-YUvJ.js","assets/Program-D3-Gfvjo.js","assets/DocumentSharing-BuTXuflA.js","assets/Chat-V1ku1-60.js","assets/Chat-BrP-ENHg.css","assets/Document-udhy5mlX.js","assets/DocumentChrome-EUbW_JvA.js","assets/ForkArtifact-DDmXl1BZ.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Trash-DoKID_ux.js","assets/web-Ckpee-ZJ.js","assets/chevron-left-NHmvDJpN.js","assets/RowMenu-B2c9LyOb.js","assets/rotate-ccw-CIMUmeuJ.js","assets/search-CmIkt7xE.js","assets/NotFound-D2MOGkIO.js","assets/Login-CszZ8VGu.js","assets/safe-redirect-C0PCIKoE.js","assets/Start-B5ji5vTT.js","assets/document-navigation-CED4GpXl.js","assets/Welcome-Ct29u9Y9.js","assets/AvatarCircle-CBpOuCGy.js","assets/loader-circle-2p_rsu6P.js","assets/src-CcX8uAQo.js","assets/upload-limits-Cxiss8cy.js","assets/Notifications-M7BiDhSo.js","assets/Account-qnxwLep7.js","assets/copy-v5iTV3kk.js","assets/ConfirmDialog-hdkXS1mg.js","assets/dialog-shell-D1Dv5nY8.js","assets/copy-text-BWnoOWaK.js","assets/Docs-B80IZLN8.js","assets/story-themes-DOZK2BkF.js","assets/GetStarted-CFsSvXR0.js","assets/default-server-CJjQV_9Y.js","assets/agent-discovery-tags-DYoCR4DA.js","assets/escape-CVx3RLA2.js","assets/Profile-DqV5PMEi.js","assets/shelf-DUXW45ap.js","assets/list-CA_o21oZ.js","assets/sign-in-required-7zEVbzx2.js","assets/urls-DtkapM59.js","assets/artifact-reference-ChS4TSVz.js","assets/Home-BSO7YYXA.js","assets/WorkspaceLayout-Qf3x5yOM.js","assets/chevron-down-M1fHuk7u.js","assets/ShareLink-qbYss_Eh.js","assets/DialogShell-BA3tWbeJ.js","assets/database-BbH2eTSj.js","assets/Shelf-anhc5No9.js","assets/lock-BRsIxNP2.js","assets/person-mentions-C7vQd7Vr.js","assets/serialize-n0A-pNlo.js","assets/http-DEdzW08u.js","assets/browser-artifact-write-CG72iseh.js","assets/document-update-client-td73lQ81.js","assets/jsx-vj4cHW_Q.js","assets/annotation-range-DqD0nTBm.js","assets/runtime-id-CM5my_RX.js","assets/eye-DEiYMLrO.js","assets/file-up-GoLKOXxO.js","assets/git-fork-CN41g1lF.js","assets/users-Bm0xpNrq.js","assets/plus-BNzHjmEg.js","assets/share-roles-c4EwFuyA.js","assets/sharing-X_H561x5.js","assets/ArtifactAddress-1ftOG9A5.js","assets/Assets-D6htDZnu.js","assets/DatasetEditor-C22-4oJL.js","assets/DatasetCatalogView-DKNdjYA_.js","assets/AssetPageHeader-BqdRtu9K.js","assets/FileUpload-B-da-wki.js","assets/download-Dk3mxCBK.js","assets/file-display-CJZlQncv.js","assets/Schedules-D05tndQ1.js","assets/Program-CdwfK2zE.js","assets/DocumentSharing-BiTakFtn.js","assets/Chat-DueKnMAf.js","assets/Chat-BrP-ENHg.css","assets/Document-C6-E9V3_.js","assets/DocumentChrome-Bw4_z5yQ.js","assets/ForkArtifact-DXYU1-qL.js"])))=>i.map(i=>d[i]);
2
2
  import{B as e,C as t,D as n,E as r,F as i,G as a,H as o,I as s,K as c,L as l,M as u,N as d,O as f,P as p,R as m,T as h,U as g,V as _,W as v,_ as y,a as b,b as x,c as S,d as C,f as w,g as T,i as E,j as ee,k as D,l as O,m as k,n as A,o as j,p as M,r as te,s as N,t as ne,u as P,w as re,x as ie}from"./web-Ckpee-ZJ.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ae=`mx-page-data`,oe=(()=>{try{let e=document.querySelector(`body > script[type="application/json"][id="${ae}"]`);return e?.textContent?JSON.parse(e.textContent):null}catch{return null}})(),se=new Set;function ce(e,t){if(!oe||oe.path!==e||se.has(t))return null;let n=oe[t];return n===void 0?null:(se.add(t),n)}function le(){return typeof oe?.address==`string`?oe.address:null}var ue=le();ue&&/^\/(?![/\\])/.test(ue)&&ue!==window.location.pathname&&window.history.replaceState(window.history.state,``,ue+window.location.search+window.location.hash);var de=null,fe=new Set,pe=()=>{for(let e of fe)e()},me=e=>(fe.add(e),()=>{fe.delete(e)}),he=()=>de;function ge(){let e=de?.event??null;return de=null,pe(),e}var _e=new WeakSet;function ve(e){if(_e.has(e))return()=>{};_e.add(e);let t=t=>{let n=e.document.querySelector(`link[data-mx-pwa][rel="manifest"]`)?.href,r=n?new URL(n,e.location.href):null,i=r?.origin===e.location.origin?r.pathname.replace(/manifest\.webmanifest$/,``):e.location.pathname;/^\/a\/[a-zA-Z0-9]{6,12}\/app\/$/.test(i)&&(new URLSearchParams(e.location.search).has(`install`)&&t.preventDefault(),de={path:i,event:t},pe())},n=()=>{de=null,pe()};return e.addEventListener(`beforeinstallprompt`,t),e.addEventListener(`appinstalled`,n),()=>{_e.delete(e),e.removeEventListener(`beforeinstallprompt`,t),e.removeEventListener(`appinstalled`,n),n()}}var ye=`data-mx-framed`,be=null,xe=``;function Se(){be=document.querySelector(`body > [${ye}]`),xe=window.location.pathname}function Ce(){return be}function we(){let e=be;return be=null,e}function Te(){be?.remove(),be=null,document.head.querySelector(`style[data-mx-frame-css]`)?.remove()}function Ee(e){e!==xe&&Te()}var De=`[data-trusted-ui-root]`,Oe=`
3
3
  :host::before, :host::after { content: none !important; display: none !important; }
4
4
  ${De}[popover] {
@@ -12,4 +12,4 @@ ${De}[popover]:popover-open { display: block !important; }
12
12
  ${De}[popover] > div { pointer-events: auto; }
13
13
  `,ke=Oe,Ae=null,je=()=>{let e=Ae;return Ae=null,e?.(),ke},Me=new Set,Ne=new Map;function Pe(e,t){Ne.set(e,t),e.showPopover();for(let[n,r]of[...Ne].sort((e,t)=>e[1]-t[1]))n!==e&&r>t&&(n.hidePopover(),n.showPopover())}function Fe(e){ke=`@layer trusted-ui-reset { ${De} { all: initial; ${[...new Set(e.match(/--[a-zA-Z_][\w-]*/g)??[])].map(e=>`${e}: initial;`).join(``)} } }\n${e.replace(/:root\b|:host\b/g,De).replace(/(^|[},\s])(?:html|body)(?=[\s,{])/g,`$1${De}`)}\n${De} { display: contents; }\n${Oe}`;for(let e of Me)e.textContent=ke}function Ie(e=document){let t=new URL(e.baseURI).origin,n=[...e.head.querySelectorAll(`link[rel~="stylesheet"]`)].filter(n=>{try{return new URL(n.href,e.baseURI).origin===t}catch{return!1}}),r=new Map,i=e=>{try{return e.sheet?Array.from(e.sheet.cssRules,e=>e.cssText).join(`
14
14
  `):``}catch{return``}},a=()=>Fe(n.map(e=>r.get(e)??i(e)).join(`
15
- `));a();for(let e of n)e.sheet||e.addEventListener(`load`,()=>{r.has(e)||a()},{once:!0});Ae=()=>{for(let e of n)fetch(e.href,{credentials:`same-origin`,headers:{accept:`text/css`}}).then(e=>e.ok&&/\btext\/css\b/.test(e.headers.get(`content-type`)??``)?e.text():Promise.reject(Error(String(e.status)))).then(t=>{r.set(e,t),a()}).catch(()=>{})}}function Le(){let e=new Set;function t(t){return e.add(t),()=>e.delete(t)}let n=!1;function r(t,r){if(n)return!(n=!1);let i={to:t,options:r,defaultPrevented:!1,preventDefault:()=>i.defaultPrevented=!0};for(let a of e)a.listener({to:t,options:r,get defaultPrevented(){return i.defaultPrevented},preventDefault:i.preventDefault,from:a.location,retry:e=>{e&&(n=!0),a.navigate(t,{...r,resolve:!1})}});return!i.defaultPrevented}return{subscribe:t,confirm:r}}var Re;function ze(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},``),Re=window.history.state._depth}ze();function Be(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function Ve(e,t){let n=!1;return()=>{let r=Re;ze();let i=r==null?null:Re-r;if(n){n=!1;return}i&&t(i)?(n=!0,window.history.go(-i)):e()}}var He=/^(?:[a-z0-9]+:)?\/\//i,Ue=/^\/+|(\/)\/+$/g,We=`http://sr`;function Ge(e,t=!1){let n=e.replace(Ue,`$1`);return n?t||/^[?#]/.test(n)?n:`/`+n:``}function Ke(e,t,n){if(He.test(t))return;let r=Ge(e),i=n&&Ge(n),a=``;return a=!i||t.startsWith(`/`)?r:i.toLowerCase().indexOf(r.toLowerCase())===0?i:r+i,(a||`/`)+Ge(t,!a)}function qe(e,t){if(e==null)throw Error(t);return e}function Je(e,t){return Ge(e).replace(/\/*(\*.*)?$/g,``)+Ge(t)}function Ye(e){let t={};return e.searchParams.forEach((e,n)=>{n in t?Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]:t[n]=e}),t}function Xe(e,t,n){let[r,i]=e.split(`/*`,2),a=r.split(`/`).filter(Boolean),o=a.length;return e=>{let r=e.split(`/`);if(r[0]===``&&r.shift(),r.length&&r[r.length-1]===``&&r.pop(),r.includes(``))return null;let s=r.length-o;if(s<0||s>0&&i===void 0&&!t)return null;let c={path:o?``:`/`,params:{}},l=e=>n===void 0?void 0:n[e];for(let e=0;e<o;e++){let t=a[e],n=t[0]===`:`,i=n?r[e]:r[e].toLowerCase(),o=n?t.slice(1):t.toLowerCase();if(n&&Ze(i,l(o)))c.params[o]=i;else if(n||!Ze(i,o))return null;c.path+=`/${i}`}if(i){let e=s?r.slice(-s).join(`/`):``;if(Ze(e,l(i)))c.params[i]=e;else return null}return c}}function Ze(e,t){let n=t=>t===e;return t===void 0?!0:typeof t==`string`?n(t):typeof t==`function`?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp&&t.test(e)}function Qe(e){let[t,n]=e.pattern.split(`/*`,2),r=t.split(`/`).filter(Boolean);return r.reduce((e,t)=>e+(t.startsWith(`:`)?2:3),r.length-(n===void 0?0:1))}function $e(e){let t=new Map,n=p();return new Proxy({},{get(r,i){return t.has(i)||_(n,()=>t.set(i,f(()=>e()[i]))),t.get(i)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())},has(t,n){return n in e()}})}function et(e,t){let n=new URLSearchParams(e);Object.entries(t).forEach(([e,t])=>{t==null||t===``||t instanceof Array&&!t.length?n.delete(e):t instanceof Array?(n.delete(e),t.forEach(t=>{n.append(e,String(t))})):n.set(e,String(t))});let r=n.toString();return r?`?${r}`:``}function tt(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length),i=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)i.push(n+=t[1]),r=r.slice(t[0].length);return tt(r).reduce((e,t)=>[...e,...i.map(e=>e+t)],[])}var nt=100,rt=r(),it=r(),at=()=>qe(c(rt),`<A> and 'use' router primitives can be only used inside a Route.`),ot=()=>at().navigatorFactory(),F=()=>at().location,st=()=>at().params,ct=()=>{let e=at(),t=e.location,n=ot();return[t.query,(r,i)=>{let o=a(()=>{let n=e.pendingTarget&&new URL(e.pendingTarget.value,`http://sr`),i=n?n.pathname:t.pathname,a=n?n.search:t.search,o=n?n.hash:t.hash;return i+et(a,r)+o});n(o,{scroll:!1,resolve:!1,...i})}]},lt=e=>{let t=at().beforeLeave.subscribe({listener:e,location:F(),navigate:ot()});m(t)},ut=e=>encodeURIComponent(e).replace(/%(2B|40|3A|24|26|2C|3B|3D)/g,e=>decodeURIComponent(e));function dt(e,t=``){let{component:n,preload:r,load:i,children:a,info:o}=e,s=!a||Array.isArray(a)&&!a.length,c={key:e,component:n,preload:r||i,info:o};return pt(e.path).reduce((n,r)=>{for(let i of tt(r)){let a=Je(t,i),o=s?a:a.split(`/*`,1)[0];o=o.split(`/`).map(e=>e.startsWith(`:`)||e.startsWith(`*`)?e:ut(e)).join(`/`),n.push({...c,originalPath:r,pattern:o,matcher:Xe(o,!s,e.matchFilters)})}return n},[])}function ft(e,t=0){return{routes:e,score:Qe(e[e.length-1])*1e4-t,matcher(t){let n=[];for(let r=e.length-1;r>=0;r--){let i=e[r],a=i.matcher(t);if(!a)return null;n.unshift({...a,route:i})}return n}}}function pt(e){return Array.isArray(e)?e:[e]}function mt(e,t=``,n=[],r=[]){let i=pt(e);for(let e=0,a=i.length;e<a;e++){let a=i[e];if(a&&typeof a==`object`){a.hasOwnProperty(`path`)||(a.path=``);let e=dt(a,t);for(let t of e){n.push(t);let e=Array.isArray(a.children)&&a.children.length===0;if(a.children&&!e)mt(a.children,t.pattern,n,r);else{let e=ft([...n],r.length);r.push(e)}n.pop()}}}return n.length?r:r.sort((e,t)=>t.score-e.score)}function ht(e,t){for(let n=0,r=e.length;n<r;n++){let r=e[n].matcher(t);if(r)return r}return[]}function gt(e,t,n){let r=new URL(We),i=f(t=>{let n=e();try{return new URL(n[0]===`/`?We+n:n,r)}catch{return console.error(`Invalid path ${n}`),t}},r,{equals:(e,t)=>e.href===t.href}),a=f(()=>i().pathname),o=f(()=>i().search,!0),s=f(()=>i().hash),c=()=>``,u=l(o,()=>Ye(i()));return{get pathname(){return a()},get search(){return o()},get hash(){return s()},get state(){return t()},get key(){return c()},query:n?n(u):$e(u)}}var I;function _t(){return I}function vt(n,r,i,o={}){let{signal:[s,d],utils:p={}}=n,m=p.parsePath||(e=>e),h=p.renderPath||(e=>e),g=p.beforeLeave||Le(),y=Ke(``,o.base||``);if(y===void 0)throw Error(`${y} is not a valid base path`);y&&!s().value&&d({value:y,replace:!0,scroll:!1});let[b,x]=u(!1),S,C=(n,r)=>{(r.value!==w()||r.state!==E())&&(S===void 0&&x(!0),I=n,S=r,v(()=>{S===r&&(T(S.value),ee(S.state),e(),A[1](e=>e.filter(e=>e.pending)))}).finally(()=>{S===r&&t(()=>{I=void 0,n===`navigate`&&re(S),x(!1),S=void 0})}))},[w,T]=u(s().value),[E,ee]=u(s().state),O=gt(w,E,p.queryWrapper),k=[],A=u([]),j=f(()=>typeof o.transformUrl==`function`?ht(r(),o.transformUrl(O.pathname)):ht(r(),O.pathname)),M=()=>{let e=j(),t={};for(let n=0;n<e.length;n++)Object.assign(t,e[n].params);return t},te=p.paramsWrapper?p.paramsWrapper(M,r):$e(M),N={pattern:y,path:()=>y,outlet:()=>null,resolvePath(e){return Ke(y,e)}};return D(l(s,e=>C(`native`,e),{defer:!0})),{base:N,location:O,params:te,isRouting:b,get pendingTarget(){return S},renderPath:h,parsePath:m,navigatorFactory:P,matches:j,beforeLeave:g,preloadRoute:ie,singleFlight:o.singleFlight===void 0||o.singleFlight,submissions:A};function ne(e,t,n){a(()=>{if(typeof t==`number`){t&&(p.go?p.go(t):console.warn(`Router integration does not support relative routing`));return}let r=!t||t[0]===`?`,{replace:i,resolve:a,scroll:o,state:s}={replace:!1,resolve:!r,scroll:!0,...n},c=a?e.resolvePath(t):Ke(r&&O.pathname||``,t);if(c===void 0)throw Error(`Path '${t}' is not a routable path`);if(k.length>=nt)throw Error(`Too many redirects`);let l=w();(c!==l||s!==E())&&g.confirm(c,n)&&(k.push({value:l,replace:i,scroll:o,state:E()}),C(`navigate`,{value:c,state:s}))})}function P(e){return e=e||c(it)||N,(t,n)=>ne(e,t,n)}function re(e){let t=k[0];t&&(d({...e,replace:t.replace,scroll:t.scroll}),k.length=0)}function ie(e,t){let n=ht(r(),e.pathname),a=I;I=`preload`;for(let r in n){let{route:a,params:o}=n[r];a.component&&a.component.preload&&a.component.preload();let{preload:s}=a;t&&s&&_(i(),()=>s({params:o,location:{pathname:e.pathname,search:e.search,hash:e.hash,query:Ye(e),state:null,key:``},intent:`preload`}))}I=a}}function yt(e,t,n,r){let{base:i,location:a,params:o}=e,{pattern:s,component:c,preload:l}=r().route,u=f(()=>r().path);c&&c.preload&&c.preload();let d=l?l({params:o,location:a,intent:I||`initial`}):void 0;return{parent:t,pattern:s,path:u,outlet:()=>c?h(c,{params:o,location:a,data:d,get children(){return n()}}):n(),resolvePath(e){return Ke(i.path(),e,u())}}}var bt=e=>t=>{let{base:n}=t,r=re(()=>t.children),i=f(()=>mt(r(),t.base||``)),a,o=vt(e,i,()=>a,{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(o),h(rt.Provider,{value:o,get children(){return h(xt,{routerState:o,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[N(()=>(a=p())&&null),h(St,{routerState:o,get branches(){return i()}})]}})}})};function xt(e){let t=e.routerState.location,n=e.routerState.params,r=f(()=>e.preload&&a(()=>{e.preload({params:n,location:t,intent:_t()||`initial`})}));return h(x,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:i=>h(i,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function St(e){let t=[],n;m(()=>t.forEach(e=>e()));let r=f(l(e.routerState.matches,(i,a,o)=>{let s=a&&i.length===a.length,c=[];for(let n=0,l=i.length;n<l;n++){let l=a&&a[n],u=i[n];o&&l&&u.route.key===l.route.key?c[n]=o[n]:(s=!1,t[n]&&t[n](),ee(i=>{t[n]=i,c[n]=yt(e.routerState,c[n-1]||e.routerState.base,Ct(()=>r()[n+1]),()=>{let t=e.routerState.matches();return t[n]??t[0]})}))}return t.splice(i.length).forEach(e=>e()),o&&s?o:(n=c[0],c)}));return Ct(()=>r()&&n)()}var Ct=e=>()=>h(x,{get when(){return e()},keyed:!0,children:e=>h(it.Provider,{value:e,get children(){return e.outlet()}})}),L=e=>{let t=re(()=>e.children);return s(e,{get children(){return t()}})};function wt([e,t],n,r){return[n?()=>n(e()):e,r?e=>t(r(e)):t]}function Tt(e){let t=!1,n=e=>typeof e==`string`?{value:e}:e,r=wt(u(n(e.get()),{equals:(e,t)=>e.value===t.value&&e.state===t.state}),void 0,n=>(!t&&e.set(n),o.registry&&!o.done&&(o.done=!0),n));return e.init&&m(e.init((i=e.get())=>{t=!0,r[1](n(i)),t=!1})),bt({signal:r,create:e.create,utils:e.utils})}function Et(e,t,n){return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}function Dt(e,t){let n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}var Ot=new Map;function kt({preload:e=!0,explicitLinks:t=!1,actionBase:n=`/_server`,transformUrl:r}={}){return i=>{let a=i.base.path(),o=i.navigatorFactory(i.base),s,c;function l(e){return e.namespaceURI===`http://www.w3.org/2000/svg`}function u(e){if(e.defaultPrevented||e.button!==0||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;let n=e.composedPath().find(e=>e instanceof Node&&e.nodeName.toUpperCase()===`A`);if(!n||t&&!n.hasAttribute(`link`))return;let r=l(n),i=r?n.href.baseVal:n.href;if((r?n.target.baseVal:n.target)||!i&&!n.hasAttribute(`state`))return;let o=(n.getAttribute(`rel`)||``).split(/\s+/);if(n.hasAttribute(`download`)||o&&o.includes(`external`))return;let s=r?new URL(i,document.baseURI):new URL(i);if(!(s.origin!==window.location.origin||a&&s.pathname&&!s.pathname.toLowerCase().startsWith(a.toLowerCase())))return[n,s]}function d(e){let t=u(e);if(!t)return;let[n,r]=t,a=i.parsePath(r.pathname+r.search+r.hash),s=n.getAttribute(`state`);e.preventDefault(),o(a,{resolve:!1,replace:n.hasAttribute(`replace`),scroll:!n.hasAttribute(`noscroll`),state:s?JSON.parse(s):void 0})}function f(e){let t=u(e);if(!t)return;let[n,a]=t;r&&(a.pathname=r(a.pathname)),i.preloadRoute(a,n.getAttribute(`preload`)!==`false`)}function p(e){clearTimeout(s);let t=u(e);if(!t)return c=null;let[n,a]=t;c!==n&&(r&&(a.pathname=r(a.pathname)),s=setTimeout(()=>{i.preloadRoute(a,n.getAttribute(`preload`)!==`false`),c=n},20))}function h(e){if(e.defaultPrevented)return;let t=e.submitter&&e.submitter.hasAttribute(`formaction`)?e.submitter.getAttribute(`formaction`):e.target.getAttribute(`action`);if(!t)return;if(!t.startsWith(`https://action/`)){let e=new URL(t,We);if(t=i.parsePath(e.pathname+e.search),!t.startsWith(n))return}if(e.target.method.toUpperCase()!==`POST`)throw Error(`Only POST forms are supported for Actions`);let r=Ot.get(t);if(r){e.preventDefault();let t=new FormData(e.target,e.submitter);r.call({r:i,f:e.target},e.target.enctype===`multipart/form-data`?t:new URLSearchParams(t))}}b([`click`,`submit`]),document.addEventListener(`click`,d),e&&(document.addEventListener(`mousemove`,p,{passive:!0}),document.addEventListener(`focusin`,f,{passive:!0}),document.addEventListener(`touchstart`,f,{passive:!0})),document.addEventListener(`submit`,h),m(()=>{document.removeEventListener(`click`,d),e&&(document.removeEventListener(`mousemove`,p),document.removeEventListener(`focusin`,f),document.removeEventListener(`touchstart`,f)),document.removeEventListener(`submit`,h)})}}var At=`solid-router:scroll`;function jt(){window.history.scrollRestoration=`manual`,ze();let e={};try{e=JSON.parse(sessionStorage.getItem(At))||{}}catch{}let t=()=>window.history.state&&window.history.state._depth,r=!1,i,a=[Et(window,`scroll`,()=>{let n=t();n!=null&&(e[n]=window.scrollY),r||(i=void 0)}),Et(window,`pagehide`,()=>{try{sessionStorage.setItem(At,JSON.stringify(e))}catch{}})],o=()=>{if(i==null)return;let t=e[i];i=void 0,t!=null&&(r=!0,window.scrollTo(0,t),r=!1)};return{onPop(){i=t()},onPush(){let n=t();if(n!=null)for(let t in e)+t>=n&&delete e[t]},create(e){n(l(e.isRouting,e=>e||o(),{defer:!0})),m(()=>a.forEach(e=>e()));let[r]=performance.getEntriesByType&&performance.getEntriesByType(`navigation`);r&&r.type!==`navigate`&&(i=t(),o())}}}function Mt(e){let t=e.scrollRestoration?jt():void 0,n=()=>{let e=window.location.pathname+window.location.search,t=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:e+window.location.hash,state:t}},r=Le();return Tt({get:n,set({value:e,replace:n,scroll:r,state:i}){n?window.history.replaceState(Be(i),``,e):window.history.pushState(i,``,e),Dt(decodeURIComponent(window.location.hash.slice(1)),r),ze(),t&&!n&&t.onPush()},init:e=>{let i=Ve(e,e=>{if(e)return!r.confirm(e);{let e=n();return!r.confirm(e.value,{state:e.state})}});return Et(window,`popstate`,t?()=>{t.onPop(),i()}:i)},create:n=>{kt({preload:e.preload,explicitLinks:e.explicitLinks,actionBase:e.actionBase,transformUrl:e.transformUrl})(n),t&&t.create(n)},utils:{go:e=>window.history.go(e),beforeLeave:r}})(e)}function Nt(e){let t=ot(),n=F(),{href:r,state:i}=e;return t(typeof r==`function`?r({navigate:t,location:n}):r,{replace:!0,state:i}),null}function Pt(e){let t=new Map,n=new Set,r=null,i=0,a=0,o=!0,s=new Set,c=()=>{i++,n.forEach(e=>e())},l=e=>{e.preload&&clearTimeout(e.preload.timer),delete e.preload},u=()=>{let e=[...t.values()];t.clear(),e.forEach(e=>e.revoke()),s.forEach(e=>e()),s.clear(),c()},d=()=>{let n=[...t.values()].reduce((e,t)=>e+t.bytes,0);for(let[r,i]of[...t].sort((e,t)=>e[1].touched-t[1].touched)){if(t.size<=(e?.maxEntries??30)&&n<=(e?.maxBytes??8388608))break;i.listeners.size||(t.delete(r),n-=i.bytes,i.revoke())}};return{cancelPreloads(e){for(let n of t.values())n.preload?.navigationId===e&&n.resource.cancel()},preload(e,n,i){for(let e of t.values())e.preload&&e.preload.navigationId!==n&&e.resource.cancel();let a=this.resource(e),o=t.get(e);if(o.preload?.navigationId===n)return o.preload.work;let s=a.load(i);if(t.get(e)!==o)return s;let c={navigationId:n,scope:r,work:s,timer:setTimeout(()=>{o.preload===c&&o.resource.cancel()},3e4)};return o.preload=c,s.then(()=>{o.preload===c&&a.snapshot().error&&l(o)})},adoptPreload(e,n){let i=t.get(e),a=i?.preload;return!i||!a||a.navigationId!==n||a.scope!==r||r===null||i.expired||i.resource.snapshot().error?!1:(l(i),!0)},clear:u,expire(){for(let[e,n]of t)l(n),n.listeners.size?n.expired=!0:(t.delete(e),n.revoke());c()},setScope(e){if(r!==e){if(r=e,o&&e!==null){o=!1;for(let n of t.values())n.preload?.scope===null&&(n.preload.scope=e)}else u();s.forEach(e=>e()),s.clear()}},subscribe(e){return n.add(e),()=>{n.delete(e)}},revision:()=>i,resource(e){let n=t.get(e);if(n)return n.touched=++a,n.resource;let i={data:null,pending:!1,error:null},o=0,c=!1,u=null,f=null,p=new Set,m=e=>{i=e,_.bytes=e.data===null?0:JSON.stringify(e.data).length*2,_.touched=++a,p.forEach(e=>e()),d()},h=()=>{l(_),o++,u?.abort(),f=null,i={data:null,pending:!1,error:null},_.bytes=0,p.forEach(e=>e())},g={snapshot:()=>i,subscribe(n){return p.add(n),()=>{p.delete(n),!p.size&&f&&(l(_),o++,u?.abort(),f=null,i={...i,pending:!1}),!p.size&&_.expired&&(t.get(e)===_&&t.delete(e),_.revoke()),d()}},seed(e){c||(l(_),o++,u?.abort(),f=null,m({data:e,pending:!1,error:null}))},invalidate:h,cancel(){l(_),o++,u?.abort(),f=null,m({...i,pending:!1})},load(e,t){if(c)return Promise.resolve();if(f&&!t?.force)return f;l(_),u?.abort(),u=new AbortController;let n=u.signal,a=++o;m({...i,pending:!0,error:null});let d;try{d=e(n)}catch(e){d=Promise.reject(e)}return f=d.then(async e=>{r===null&&!c&&await new Promise(e=>{let t=()=>{s.delete(t),n.removeEventListener(`abort`,t),e()};s.add(t),n.addEventListener(`abort`,t,{once:!0}),n.aborted&&t()}),!c&&o===a&&m({data:e,pending:!1,error:null})},e=>{if(c||o!==a)return;let t=typeof e==`object`&&e&&`status`in e?e.status:null;m({data:t===401||t===403||t===404?null:i.data,pending:!1,error:e instanceof Error?e:Error(`Page unavailable`)})}).finally(()=>{o===a&&(f=null)}),f}},_={resource:g,listeners:p,bytes:0,touched:++a,expired:!1,revoke(){c=!0,h()}};return t.set(e,_),g}}}var Ft=`mx:page-data-changed`,It=()=>window.dispatchEvent(new Event(Ft)),Lt=`mx:refresh`,Rt=`mx:profile-changed`,zt=()=>window.dispatchEvent(new Event(Rt)),Bt=r({session:()=>null,reload:()=>{},pages:null,sessionError:()=>null});function Vt(e,t){window.addEventListener(e,t),m(()=>window.removeEventListener(e,t))}function Ht(e){let[t,r]=u(null),[i,a]=u(null),[o,s]=u(0),c=Pt();return n(l(o,()=>{let e=!0;fetch(`/api/page/session`,{credentials:`same-origin`}).then(e=>{if(!e.ok)throw Error(`session unavailable`);return e.json()}).then(t=>{e&&(c.setScope(t.user?.id??t.kind),a(null),r(t))}).catch(()=>{e&&(c.setScope(null),c.clear(),a(Error(`Could not load session`)),r(null))}),m(()=>{e=!1})})),m(()=>c.clear()),Vt(Lt,()=>{c.expire(),s(e=>e+1)}),Vt(Ft,()=>c.expire()),Vt(Rt,()=>{c.expire(),s(e=>e+1)}),h(Bt.Provider,{value:{session:t,reload:()=>{c.setScope(null),c.clear(),r(null),a(null),s(e=>e+1)},pages:c,sessionError:i},get children(){return e.children}})}var R=()=>c(Bt);async function Ut(e,t){let n=await fetch(e,{credentials:`same-origin`,signal:t});if(!n.ok)throw Object.assign(Error(`Could not load page`),{status:n.status});return n.json()}var Wt=[[/^\/$/,()=>`/api/page/home?part=core`],[/^\/(@[^/]+)\/?$/,e=>`/api/page/profile/${encodeURIComponent(e[1]??``)}`]];function Gt(e,t=location.origin){let n;try{n=new URL(e,t)}catch{return null}if(n.origin!==t)return null;for(let[e,t]of Wt){let r=e.exec(n.pathname);if(r)return t(r)}return null}function Kt(){let{pages:e}=R();if(!e)return;let t=t=>{let n=t.target instanceof Element?t.target.closest(`a[href]`):null;if(!n||n.target===`_blank`||n.hasAttribute(`download`)||t.type===`pointerover`&&t.pointerType!==`mouse`)return;let r=Gt(n.href);r&&e.preload(r,r,e=>Ut(r,e)).catch(()=>{})},n=[`pointerover`,`focusin`,`pointerdown`];for(let e of n)document.addEventListener(e,t,!0);m(()=>{for(let e of n)document.removeEventListener(e,t,!0)})}function qt(e,t){let r=R(),i=r.pages??null,o=r.session,s=r.sessionError??(()=>null),c=i??(()=>{let e=Pt();return e.setScope(`isolated`),e})(),d=typeof e==`function`?e:()=>e,[p,h]=u(c.revision());m(c.subscribe(()=>h(c.revision())));let g=f(()=>(p(),c.resource(d()))),_=null;(e=>{let n=t?.seed?.()??null;n!==null&&(_=e,a(g).seed(n))})(a(d));let[v,y]=u(a(g).snapshot());n(()=>{let e=g();y(e.snapshot()),m(e.subscribe(()=>y(e.snapshot())))});let b=(e=!1)=>{let n=a(d);return a(g).load(e=>t?.loader?t.loader(e):Ut(n,e),{force:e})},x=()=>t?.enabled?.()??!0;n(l([g,s,x],([,e,t])=>{if(!(!t||e)){if(_===a(d)){_=null;return}i?.adoptPreload(a(d),a(d))||b()}}));let S=()=>{x()&&b(!0)};window.addEventListener(Lt,S),m(()=>window.removeEventListener(Lt,S));let C=f(()=>i&&!o()&&s()?{data:null,pending:!1,error:s()}:v());return{data:()=>C().data,pending:()=>C().pending,error:()=>C().error,refresh:b,seed:e=>a(g).seed(e),invalidate:()=>a(g).invalidate()}}var Jt={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Yt=r({size:24,color:`currentColor`,strokeWidth:2,absoluteStrokeWidth:!1,class:``}),Xt=M(`<svg>`),Zt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Qt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),$t=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),en=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),tn=e=>{let t=$t(e);return t.charAt(0).toUpperCase()+t.slice(1)},z=e=>{let[t,n]=g(e,[`color`,`size`,`strokeWidth`,`children`,`class`,`name`,`iconNode`,`absoluteStrokeWidth`]),r=c(Yt);return(()=>{var e=Xt();return C(e,s(Jt,{get width(){return t.size??r.size??Jt.width},get height(){return t.size??r.size??Jt.height},get stroke(){return t.color??r.color??Jt.stroke},get"stroke-width"(){return N(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Jt[`stroke-width`])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Jt[`stroke-width`])},get class(){return Qt(`lucide`,`lucide-icon`,r.class,...t.name==null?[]:[`lucide-${en(tn(t.name))}`,`lucide-${en(t.name)}`],t.class)},get"aria-hidden"(){return!t.children&&!Zt(n)?`true`:void 0}},n),!0,!0),j(e,h(y,{get each(){return t.iconNode},children:([e,t])=>h(ne,s({component:e},t))})),e})()},nn=[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]],rn=e=>h(z,s(e,{iconNode:nn,name:`calendar-clock`})),an=[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]],on=e=>h(z,s(e,{iconNode:an,name:`bell`})),sn=[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]],cn=e=>h(z,s(e,{iconNode:sn,name:`book-open`})),ln=[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]],un=e=>h(z,s(e,{iconNode:ln,name:`check`})),dn=[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]],fn=e=>h(z,s(e,{iconNode:dn,name:`chevron-right`})),pn=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662`,key:`154egf`}]],mn=e=>h(z,s(e,{iconNode:pn,name:`circle-user`})),hn=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]],gn=e=>h(z,s(e,{iconNode:hn,name:`file-text`})),_n=[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]],vn=e=>h(z,s(e,{iconNode:_n,name:`log-in`})),yn=[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]],bn=e=>h(z,s(e,{iconNode:yn,name:`log-out`})),xn=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]],Sn=e=>h(z,s(e,{iconNode:xn,name:`moon`})),Cn=[[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M12 21v-9`,key:`17s77i`}],[`path`,{d:`M12 8V3`,key:`13r4qs`}],[`path`,{d:`M17 16h4`,key:`h1uq16`}],[`path`,{d:`M19 12V3`,key:`o1uvq1`}],[`path`,{d:`M19 21v-5`,key:`qua636`}],[`path`,{d:`M3 14h4`,key:`bcjad9`}],[`path`,{d:`M5 10V3`,key:`cb8scm`}],[`path`,{d:`M5 21v-7`,key:`1w1uti`}]],wn=e=>h(z,s(e,{iconNode:Cn,name:`sliders-vertical`})),Tn=[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]],En=e=>h(z,s(e,{iconNode:Tn,name:`sun`})),Dn=[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]],On=e=>h(z,s(e,{iconNode:Dn,name:`user`})),kn=[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]],An=e=>h(z,s(e,{iconNode:kn,name:`x`})),jn=`0 0 98 96`,Mn=`M41.4395 69.3848C28.8066 67.8535 19.9062 58.7617 19.9062 46.9902C19.9062 42.2051 21.6289 37.0371 24.5 33.5918C23.2559 30.4336 23.4473 23.7344 24.8828 20.959C28.7109 20.4805 33.8789 22.4902 36.9414 25.2656C40.5781 24.1172 44.4062 23.543 49.0957 23.543C53.7852 23.543 57.6133 24.1172 61.0586 25.1699C64.0254 22.4902 69.2891 20.4805 73.1172 20.959C74.457 23.543 74.6484 30.2422 73.4043 33.4961C76.4668 37.1328 78.0937 42.0137 78.0937 46.9902C78.0937 58.7617 69.1934 67.6621 56.3691 69.2891C59.623 71.3945 61.8242 75.9883 61.8242 81.252L61.8242 91.2051C61.8242 94.0762 64.2168 95.7031 67.0879 94.5547C84.4102 87.9512 98 70.6289 98 49.1914C98 22.1074 75.9883 6.69539e-07 48.9043 4.309e-07C21.8203 1.92261e-07 -1.9479e-07 22.1074 -4.3343e-07 49.1914C-6.20631e-07 70.4375 13.4941 88.0469 31.6777 94.6504C34.2617 95.6074 36.75 93.8848 36.75 91.3008L36.75 83.6445C35.4102 84.2188 33.6875 84.6016 32.1562 84.6016C25.8398 84.6016 22.1074 81.1563 19.4277 74.7441C18.375 72.1602 17.2266 70.6289 15.0254 70.3418C13.877 70.2461 13.4941 69.7676 13.4941 69.1934C13.4941 68.0449 15.4082 67.1836 17.3223 67.1836C20.0977 67.1836 22.4902 68.9063 24.9785 72.4473C26.8926 75.2227 28.9023 76.4668 31.2949 76.4668C33.6875 76.4668 35.2187 75.6055 37.4199 73.4043C39.0469 71.7773 40.291 70.3418 41.4395 69.3848Z`,Nn=M(`<svg><path clip-rule=evenodd d="M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z">`),Pn=M(`<svg><path d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z">`),Fn=M(`<svg><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z">`),In=M(`<svg><path d="M9.064 3.344a4.578 4.578 0 012.285-.312c1 .115 1.891.54 2.673 1.275.01.01.024.017.037.021a.09.09 0 00.043 0 4.55 4.55 0 013.046.275l.047.022.116.057a4.581 4.581 0 012.188 2.399c.209.51.313 1.041.315 1.595a4.24 4.24 0 01-.134 1.223.123.123 0 00.03.115c.594.607.988 1.33 1.183 2.17.289 1.425-.007 2.71-.887 3.854l-.136.166a4.548 4.548 0 01-2.201 1.388.123.123 0 00-.081.076c-.191.551-.383 1.023-.74 1.494-.9 1.187-2.222 1.846-3.711 1.838-1.187-.006-2.239-.44-3.157-1.302a.107.107 0 00-.105-.024c-.388.125-.78.143-1.204.138a4.441 4.441 0 01-1.945-.466 4.544 4.544 0 01-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81 5.81 0 01-.37-.961 4.582 4.582 0 01-.014-2.298.124.124 0 00.006-.056.085.085 0 00-.027-.048 4.467 4.467 0 01-1.034-1.651 3.896 3.896 0 01-.251-1.192 5.189 5.189 0 01.141-1.6c.337-1.112.982-1.985 1.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098 0 00.065-.066 4.51 4.51 0 01.829-1.615 4.535 4.535 0 011.837-1.388zm3.482 10.565a.637.637 0 000 1.272h3.636a.637.637 0 100-1.272h-3.636zM8.462 9.23a.637.637 0 00-1.106.631l1.272 2.224-1.266 2.136a.636.636 0 101.095.649l1.454-2.455a.636.636 0 00.005-.64L8.462 9.23z"fill=url(#mx-codex-grad)></path><defs><linearGradient gradientUnits=userSpaceOnUse id=mx-codex-grad x1=12 x2=12 y1=3 y2=21><stop stop-color=#B1A7FF></stop><stop offset=.5 stop-color=#7A9DFF></stop><stop offset=1 stop-color=#3941FF>`),Ln=M(`<svg><path fill-rule=evenodd d="M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z"></path><path d="M517.36 400H634.72V634.72H517.36Z">`),Rn=M(`<svg><path d="M210 240H90V120H210V240Z"fill=currentColor opacity=.2></path><path d="M210 60H90V240H210V60ZM270 300H30V0H270V300Z"fill=currentColor>`),zn=M(`<svg><path>`),B=({size:e=16,className:t})=>({viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":!0,class:t});function Bn(e){return(()=>{var t=Nn();return C(t,s(()=>B(e),{fill:`#D97757`,"fill-rule":`evenodd`}),!0,!0),t})()}function Vn(e){return(()=>{var t=Pn();return C(t,s(()=>B(e),{fill:`#D97757`,"fill-rule":`nonzero`}),!0,!0),t})()}function Hn(e){return(()=>{var t=Fn();return C(t,s(()=>B(e),{fill:`currentColor`,"fill-rule":`evenodd`}),!0,!0),t})()}function Un(e){return(()=>{var t=In();return C(t,s(()=>B(e)),!0,!0),t})()}function Wn(e){return(()=>{var t=Ln();return C(t,s(()=>B(e),{viewBox:`150 150 500 500`,fill:`currentColor`}),!0,!0),t})()}function Gn(e){return(()=>{var t=Rn();return C(t,s(()=>B(e),{viewBox:`0 0 300 300`,fill:`none`}),!0,!0),t})()}function Kn(e){return(()=>{var t=zn(),n=t.firstChild;return C(t,s(()=>B(e),{viewBox:jn,preserveAspectRatio:`xMidYMid meet`,fill:`currentColor`}),!0,!0),O(n,`d`,Mn),t})()}var qn=`data-trusted-layer`;function Jn(e=typeof document>`u`?void 0:document){return e?Yn(e.querySelectorAll(`[data-trusted-ui][data-trusted-layer="navigation"]`))??Yn(e.querySelectorAll(`[data-trusted-ui]`)):null}function Yn(e){for(let t of e){let e=[...t.shadowRoot?.children??[]].find(e=>e.hasAttribute(`data-trusted-ui-root`)),n=e?.children.length===2?e.children[1]:null;if(n instanceof HTMLElement)return n}return null}var Xn={"/notifications":`notifications`,"/account":`account`,"/tokens":`tokens`,"/login":`log in`,"/trash":`trash`},Zn=/^\/(@[a-z0-9_]+)(\/.*)?$/;function Qn(e,t){let n=e.replace(/\/+$/,``)||`/`,r=t?.trim()||null,i=Zn.exec(n);if(i){let[,e,t]=i;if(!t)return[{label:e}];let n=t.split(`/`).filter(Boolean).at(-1)??``;return[{label:e,href:`/${e}`},{label:r??n}]}if(n.startsWith(`/a/`))return[{label:r??`artifact`}];if(n===`/docs-human`)return[{label:`docs`}];let a=Xn[n]??r;return a?[{label:a}]:[]}var $n={logoSize:28,fontSize:13,fontWeight:500},er=`https://github.com/minusxai/artifactbin`,tr=`/api/external/github`;function nr(e=!0){return`<a href="${er}" target="_blank" rel="noopener noreferrer" aria-label="Star artifactbin on GitHub" style="display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:28px;overflow:hidden;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:5px;background:var(--mx-reader-bg,var(--color-surface,#fff));color:inherit;text-decoration:none;font:600 12px system-ui;letter-spacing:normal;white-space:nowrap"><span style="display:inline-flex;align-items:center;gap:4px;height:100%;padding:0 8px;background:linear-gradient(transparent,color-mix(in srgb,currentColor 7%,transparent))"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" fill="light-dark(#eac54f, #e3b341)" aria-hidden="true"><path d="m12 2.5 2.94 5.96 6.58.96-4.76 4.64 1.12 6.55L12 17.52l-5.88 3.09 1.12-6.55L2.48 9.42l6.58-.96Z"></path></svg><span>Star</span></span>${e?`<span data-mx-github-count hidden style="align-self:stretch;align-content:center;padding:0 8px;border-left:1px solid color-mix(in srgb,currentColor 25%,transparent);font-variant-numeric:tabular-nums"></span>`:``}</a>`}var rr,ir;function ar(){if(rr&&rr.expires>Date.now())return Promise.resolve(rr.stars);if(ir)return ir;let e=6e4;return ir=fetch(tr,{credentials:`omit`,cache:`no-store`}).then(async t=>{if(!t.ok)return null;let n=/(?:^|,)\s*max-age=(\d+)/.exec(t.headers.get(`cache-control`)??``);n&&(e=Math.min(6e4,Number(n[1])*1e3));let r=await t.json();return Number.isSafeInteger(r.stars)&&r.stars>=0?r.stars:null}).catch(()=>null).then(t=>(rr={stars:t,expires:Date.now()+e},t)).finally(()=>{ir=void 0}),ir}function or(e){let t=e.querySelectorAll(`[data-mx-github-count]`),n=!1;return t.length&&ar().then(e=>{if(!n)for(let n of t)n.hidden=e===null,n.textContent=e===null?``:e.toLocaleString(`en-US`)}),()=>{n=!0}}async function sr(e=document){let t=e.querySelector(`meta[name="mx-pages-session"]`)?.getAttribute(`content`);if(t)try{await fetch(t,{method:`DELETE`,credentials:`include`,mode:`cors`})}catch{}}async function cr(){await Promise.all([sr(),fetch(`/api/session/token`,{method:`DELETE`}).catch(()=>{})])}var lr=[`fork`,`comment`,`like`,`follow`,`join`],ur=`intent`;function dr(e){try{return decodeURIComponent(e.replace(/\+/g,` `))}catch{return null}}function fr(e){return(e.startsWith(`?`)?e.slice(1):e).split(`&`).filter(Boolean).map(e=>{let t=e.indexOf(`=`),[n,r]=t===-1?[e,``]:[e.slice(0,t),e.slice(t+1)];return{raw:e,key:dr(n),value:dr(r)}})}var pr=e=>e.length?`?${e.join(`&`)}`:``;function mr(e){let t=fr(e).find(e=>e.key===ur)?.value??null;return lr.includes(t??``)?t:null}function hr(e,t){return pr([...fr(e).filter(e=>e.key!==ur).map(e=>e.raw),`${ur}=${t}`])}function gr(e,t){if(!t&&(e.pathname===`/`||e.pathname===`/login`))return`/login`;let n=t?hr(e.search,t):e.search;return`/login?callbackUrl=${encodeURIComponent(e.pathname+n+e.hash)}`}var V=Math.min,H=Math.max,_r=Math.round,vr=Math.floor,U=e=>({x:e,y:e}),yr={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function br(e,t,n){return H(e,V(t,n))}function W(e,t){return typeof e==`function`?e(t):e}function G(e){return e.split(`-`)[0]}function xr(e){return e.split(`-`)[1]}function Sr(e){return e===`x`?`y`:`x`}function Cr(e){return e===`y`?`height`:`width`}function K(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function wr(e){return Sr(K(e))}function Tr(e,t,n){n===void 0&&(n=!1);let r=xr(e),i=wr(e),a=Cr(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Pr(o)),[o,Pr(o)]}function Er(e){let t=Pr(e);return[Dr(e),t,Dr(t)]}function Dr(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Or=[`left`,`right`],kr=[`right`,`left`],Ar=[`top`,`bottom`],jr=[`bottom`,`top`];function Mr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?kr:Or:t?Or:kr;case`left`:case`right`:return t?Ar:jr;default:return[]}}function Nr(e,t,n,r){let i=xr(e),a=Mr(G(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Dr)))),a}function Pr(e){let t=G(e);return yr[t]+e.slice(t.length)}function Fr(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ir(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Fr(e)}function Lr(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Rr(e,t,n){let{reference:r,floating:i}=e,a=K(t),o=wr(t),s=Cr(o),c=G(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=xr(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function zr(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=W(t,e),p=Ir(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Lr(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Lr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Br=50,Vr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:zr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Rr(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Br&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Rr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Hr=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=W(e,t)||{};if(l==null)return{};let d=Ir(u),f={x:n,y:r},p=wr(i),m=Cr(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=V(d[_],T),ee=V(d[v],T),D=C-h[m]-ee,O=C/2-h[m]/2+w,k=br(E,O,D),A=!c.arrow&&xr(i)!=null&&O!==k&&a.reference[m]/2-(O<E?E:ee)-h[m]/2<0,j=A?O<E?O-E:O-D:0;return{[p]:f[p]+j,data:{[p]:k,centerOffset:O-k-j,...A&&{alignmentOffset:j}},reset:A}}}),Ur=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=W(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=G(r),_=K(o),v=G(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Pr(o)]:Er(o)),x=p!==`none`;!d&&x&&b.push(...Nr(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Tr(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===K(t)||T.every(e=>K(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=K(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Wr=new Set([`left`,`top`]);async function Gr(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=G(n),s=xr(n),c=K(n)===`y`,l=Wr.has(o)?-1:1,u=a&&c?-1:1,d=W(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Kr=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Gr(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},qr=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=W(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=K(i),p=Sr(f),m=u[p],h=u[f],g=(e,t)=>br(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Jr=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=W(e,t),u={x:n,y:r},d=K(i),f=Sr(d),p=u[f],m=u[d],h=W(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Wr.has(G(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Yr=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=W(e,t),c=await i.detectOverflow(t,s),l=G(n),u=xr(n),d=K(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=V(p-c[m],g),y=V(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*H(c.left,c.right):S=p-2*H(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Xr(){return typeof window<`u`}function Zr(e){return Qr(e)?(e.nodeName||``).toLowerCase():`#document`}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function J(e){return((Qr(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Qr(e){return Xr()?e instanceof Node||e instanceof q(e).Node:!1}function Y(e){return Xr()?e instanceof Element||e instanceof q(e).Element:!1}function X(e){return Xr()?e instanceof HTMLElement||e instanceof q(e).HTMLElement:!1}function $r(e){return!Xr()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function ei(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ti(e){return/^(table|td|th)$/.test(Zr(e))}function ni(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ri=/transform|translate|scale|rotate|perspective|filter/,ii=/paint|layout|strict|content/,Z=e=>!!e&&e!==`none`,ai;function oi(e){let t=Y(e)?Q(e):e;return Z(t.transform)||Z(t.translate)||Z(t.scale)||Z(t.rotate)||Z(t.perspective)||!ci()&&(Z(t.backdropFilter)||Z(t.filter))||ri.test(t.willChange||``)||ii.test(t.contain||``)}function si(e){let t=di(e);for(;X(t)&&!li(t);){if(oi(t))return t;if(ni(t))return null;t=di(t)}return null}function ci(){return ai??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ai}function li(e){return/^(html|body|#document)$/.test(Zr(e))}function Q(e){return q(e).getComputedStyle(e)}function ui(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function di(e){if(Zr(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||$r(e)&&e.host||J(e);return $r(t)?t.host:t}function fi(e){let t=di(e);return li(t)?(e.ownerDocument||e).body:X(t)&&ei(t)?t:fi(t)}function pi(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=fi(e),i=r===e.ownerDocument?.body,a=q(r);if(i){let e=mi(a);return t.concat(a,a.visualViewport||[],ei(r)?r:[],e&&n?pi(e):[])}return t.concat(r,pi(r,[],n))}function mi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hi(e){let t=Q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=X(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=_r(n)!==a||_r(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function gi(e){return Y(e)?e:e.contextElement}function _i(e){let t=gi(e);if(!X(t))return U(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=hi(t),o=(a?_r(n.width):n.width)/r,s=(a?_r(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var vi=U(0);function yi(e){let t=q(e);return!ci()||!t.visualViewport?vi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bi(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===q(e)}function xi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=gi(e),o=U(1);t&&(r?Y(r)&&(o=_i(r)):o=_i(e));let s=bi(a,n,r)?yi(a):U(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=q(a),t=Y(r)?q(r):r,n=e,i=mi(n);for(;i&&t!==n;){let e=_i(i),t=i.getBoundingClientRect(),r=Q(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=q(i),i=mi(n)}}return Lr({width:u,height:d,x:c,y:l})}function Si(e,t){let n=ui(e).scrollLeft;return t?t.left+n:xi(J(e)).left+n}function Ci(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Si(e,n),y:n.top+t.scrollTop}}function wi(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=J(r),s=t?ni(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=U(1),u=U(0),d=X(r);if((d||!a)&&((Zr(r)!==`body`||ei(o))&&(c=ui(r)),d)){let e=xi(r);l=_i(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ci(o,c):U(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ti(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ei(e){let t=ui(e),n=e.ownerDocument.body,r=H(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=H(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Si(e),o=-t.scrollTop;return Q(n).direction===`rtl`&&(a+=H(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Di=25;function Oi(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=q(e),a=J(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ci()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Si(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Di&&(s-=o)}return{width:s,height:c,x:l,y:u}}function ki(e,t){let n=xi(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=_i(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ai(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Oi(e,n,t);else if(t===`document`)r=Ei(J(e));else if(Y(t))r=ki(t,n);else{let n=yi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Lr(r)}function ji(e,t){let n=t.get(e);if(n)return n;let r=pi(e,[],!1).filter(e=>Y(e)&&Zr(e)!==`body`),i=null,a=Q(e).position===`fixed`,o=a?di(e):e;for(;Y(o)&&!li(o);){let e=Q(o),t=oi(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=di(o)}return t.set(e,r),r}function Mi(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ni(t)?[]:ji(t,this._c):[].concat(n),r],o=Ai(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ai(t,a[e],i);s=H(n.top,s),c=V(n.right,c),l=V(n.bottom,l),u=H(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ni(e){let{width:t,height:n}=hi(e);return{width:t,height:n}}function Pi(e,t,n){let r=X(t),i=J(t),a=n===`fixed`,o=xi(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=U(0);if((r||!a)&&((Zr(t)!==`body`||ei(i))&&(s=ui(t)),r)){let e=xi(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Si(i));let l=i&&!r&&!a?Ci(i,s):U(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Fi(e){return Q(e).position===`static`}function Ii(e,t){if(!X(e)||Q(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return J(e)===n&&(n=n.ownerDocument.body),n}function Li(e,t){let n=q(e);if(ni(e))return n;if(!X(e)){let t=di(e);for(;t&&!li(t);){if(Y(t)&&!Fi(t))return t;t=di(t)}return n}let r=Ii(e,t);for(;r&&ti(r)&&Fi(r);)r=Ii(r,t);return r&&li(r)&&Fi(r)&&!oi(r)?n:r||si(e)||n}var Ri=async function(e){let t=this.getOffsetParent||Li,n=this.getDimensions,r=await n(e.floating);return{reference:Pi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zi(e){return Q(e).direction===`rtl`}var Bi={convertOffsetParentRelativeRectToViewportRelativeRect:wi,getDocumentElement:J,getClippingRect:Mi,getOffsetParent:Li,getElementRects:Ri,getClientRects:Ti,getDimensions:Ni,getScale:_i,isElement:Y,isRTL:zi};function Vi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Hi(e,t,n){let r=null,i,a=J(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=vr(d),h=vr(a.clientWidth-(u+f)),g=vr(a.clientHeight-(d+p)),_=vr(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:H(0,V(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Vi(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=q(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Ui(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=gi(e),u=i||a?[...l?pi(l):[],...t?pi(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Hi(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?xi(e):null;c&&g();function g(){let t=xi(e);h&&!Vi(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Wi=Kr,Gi=qr,Ki=Ur,qi=Yr,Ji=Hr,Yi=Jr,Xi=(e,t,n)=>{let r=new Map,i=n??{},a={...Bi,...i.platform,_c:r};return Vr(e,t,{...i,platform:a})},Zi=e=>{let[t,n=`center`]=e.split(`-`);return[t,n]},Qi=(e,t)=>({name:`transformOrigin`,fn({placement:n,rects:r,middlewareData:i}){let a=i.arrow?.centerOffset!==0,o=a?0:e,s=a?0:t,[c,l]=Zi(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),$i=e=>{let t=window.devicePixelRatio||1;return Math.round(e*t)/t};function ea(e,t,n,r){let i=r.collisionPadding,a=[Wi({mainAxis:r.sideOffset+r.arrowHeight,alignmentAxis:0}),Gi({mainAxis:!0,crossAxis:!1,limiter:Yi(),padding:i}),Ki({padding:i}),qi({padding:i,apply({elements:e,rects:t,availableWidth:n,availableHeight:r}){let i=e.floating.style;i.setProperty(`--radix-popper-available-width`,`${n}px`),i.setProperty(`--radix-popper-available-height`,`${r}px`),i.setProperty(`--radix-popper-anchor-width`,`${t.reference.width}px`),i.setProperty(`--radix-popper-anchor-height`,`${t.reference.height}px`)}}),...n?[Ji({element:n,padding:0})]:[],Qi(r.arrowWidth,r.arrowHeight)],o=r.side+(r.align===`center`?``:`-${r.align}`);return Ui(e,t,()=>void Xi(e,t,{strategy:`fixed`,placement:o,middleware:a}).then(({x:e,y:n,placement:i,middlewareData:a})=>{t.style.transform=`translate(${$i(e)}px, ${$i(n)}px)`;let o=a.transformOrigin;t.style.setProperty(`--radix-popper-transform-origin`,[o?.x,o?.y].join(` `));let[s,c]=Zi(i);r.onPlaced({side:s,align:c,arrowX:a.arrow?.x,arrowY:a.arrow?.y,hideArrow:a.arrow?.centerOffset!==0})}),{elementResize:typeof ResizeObserver<`u`})}var ta=`mx:tooltip-open`,na={closedAt:0};function ra(e){let t=d(),[r,i]=u(!1),o=0,s=n=>{n!==a(e.open)&&(n?document.dispatchEvent(new CustomEvent(ta,{detail:t})):na.closedAt=Date.now(),e.setOpen(n))},c=()=>{clearTimeout(o),o=0,i(!1),s(!0)},l=()=>{clearTimeout(o),o=0,s(!1)};return m(()=>clearTimeout(o)),n(()=>{if(!e.open())return;let n=e=>{e.detail!==t&&l()},r=e=>{e.key===`Escape`&&l()};document.addEventListener(ta,n),document.addEventListener(`keydown`,r),m(()=>{document.removeEventListener(ta,n),document.removeEventListener(`keydown`,r)})}),{state:()=>e.open()?r()?`delayed-open`:`instant-open`:`closed`,enter:()=>{if(Date.now()-na.closedAt<100){c();return}clearTimeout(o),o=window.setTimeout(()=>{i(!0),s(!0),o=0},e.delay?.()??300)},openNow:c,close:l}}var ia={top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`},aa={top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`},oa=M(`<div data-mx-theme-host><div data-radix-popper-content-wrapper style="position:fixed;left:0px;top:0px;transform:translate(0, -200%);min-width:max-content;z-index:100"><div role=tooltip data-slot=tooltip-content data-story-floating class="pointer-events-none z-[100] w-max max-w-[min(28rem,calc(100vw-1rem))] whitespace-normal rounded-md border border-edge-bright bg-surface px-2.5 py-1.5 text-left text-xs leading-normal text-fg shadow-md"><span style=position:absolute><svg stroke=var(--color-edge-bright) stroke-width=1 stroke-linejoin=round class="z-[100] fill-surface"width=10 height=5 viewBox="0 0 30 10"preserveAspectRatio=none style=display:block><polygon points="0,0 30,0 15,10">`);function sa(e){let t=re(()=>e.children),[r,i]=u(!1),[a,o]=u(),s=d(),{state:c,enter:l,openNow:f,close:p}=ra({open:r,setOpen:i}),g=()=>t.toArray().find(e=>e instanceof HTMLElement);return n(()=>{let t=g();if(!t||e.disabled)return;let n=!1,r=!1,i=[[`pointermove`,e=>{e.pointerType!==`touch`&&!r&&(l(),r=!0)}],[`pointerleave`,()=>{p(),r=!1}],[`pointerdown`,()=>{p(),n=!0,document.addEventListener(`pointerup`,()=>{n=!1},{once:!0})}],[`focus`,()=>{n||f()}],[`blur`,p],[`click`,p]];for(let[e,n]of i)t.addEventListener(e,n);m(()=>{for(let[e,n]of i)t.removeEventListener(e,n)})}),n(()=>{let e=g();e&&(e.setAttribute(`data-state`,c()),r()?e.setAttribute(`aria-describedby`,s):e.removeAttribute(`aria-describedby`))}),[N(t),h(x,{get when(){return N(()=>!!r())()&&!e.disabled},get children(){return h(A,{get mount(){return Jn(document)??document.body},get children(){return h(ca,{get anchor(){return g()},id:s,get side(){return e.side??`top`},placed:a,setPlaced:o,get children(){return e.content}})}})}})]}function ca(e){let t,r;n(()=>{if(!e.anchor)return;let n=ea(e.anchor,t,r,{side:e.side,align:`center`,sideOffset:6,collisionPadding:8,arrowWidth:10,arrowHeight:5,onPlaced:e.setPlaced});m(()=>{n(),e.setPlaced(void 0)})});let i=()=>e.placed()?.side??e.side;return(()=>{var n=oa(),a=n.firstChild,o=a.firstChild,s=o.firstChild;s.firstChild;var c=t;typeof c==`function`?k(c,a):t=a,j(o,()=>e.children,s);var l=r;return typeof l==`function`?k(l,s):r=s,D(t=>{var n=e.id,r=e.placed()?.side,a=i()===`right`?`0px`:e.placed()?.arrowX===void 0?void 0:`${e.placed().arrowX}px`,c=i()===`bottom`?`0px`:e.placed()?.arrowY===void 0?void 0:`${e.placed().arrowY}px`,l=i()===`left`?`0px`:void 0,u=i()===`top`?`0px`:void 0,d=aa[i()]||void 0,f=ia[i()],p=e.placed()?.hideArrow?`hidden`:void 0;return n!==t.e&&O(o,`id`,t.e=n),r!==t.t&&O(o,`data-side`,t.t=r),a!==t.a&&P(s,`left`,t.a=a),c!==t.o&&P(s,`top`,t.o=c),l!==t.i&&P(s,`right`,t.i=l),u!==t.n&&P(s,`bottom`,t.n=u),d!==t.s&&P(s,`transform-origin`,t.s=d),f!==t.h&&P(s,`transform`,t.h=f),p!==t.r&&P(s,`visibility`,t.r=p),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0}),n})()}function la(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function ua(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function da(e){return e=ua(Math.abs(e)),e?e[1]:NaN}function fa(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function pa(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var ma=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ha(e){if(!(t=ma.exec(e)))throw Error(`invalid format: `+e);var t;return new ga({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ha.prototype=ga.prototype;function ga(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}ga.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function _a(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var va;function ya(e,t){var n=ua(e,t);if(!n)return va=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(va=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+ua(e,Math.max(0,t+a-1))[0]}function ba(e,t){var n=ua(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var xa={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:la,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ba(e*100,t),r:ba,s:ya,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Sa(e){return e}var Ca=Array.prototype.map,wa=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Ta(e){var t=e.grouping===void 0||e.thousands===void 0?Sa:fa(Ca.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Sa:pa(Ca.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=ha(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):xa[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=xa[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=_a(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&va!==void 0?wa[8+va/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(da(t)/3)))*3,r=10**-n,i=l((e=ha(e),e.type=`f`,e),{suffix:wa[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var Ea,Da;Oa({thousands:`,`,grouping:[3],currency:[`$`,``]});function Oa(e){return Ea=Ta(e),Da=Ea.format,Ea.formatPrefix,Ea}var ka=`a d3-format spec — e.g. ",.0f" (thousands, no decimals), "$,.2f", ".1%"`,Aa=new Intl.NumberFormat(void 0,{maximumFractionDigits:2}),ja=new Map;function Ma(e){if(!ja.has(e))try{ja.set(e,Da(e))}catch{ja.set(e,null)}return ja.get(e)??null}function Na(e){return!e||Ma(e)!==null}function Pa(e){let t=e?Ma(e):null;return t?e=>{try{return t(e)}catch{return Aa.format(e)}}:e=>Aa.format(e)}var Fa=Pa(void 0);function Ia(e){return Fa(e)}function La(e){return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`})}function Ra(e){return new Date(e).toLocaleString()}function za(e){let t=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(t<1)return`just now`;if(t<60)return`${t} min${t===1?``:`s`} ago`;let n=Math.floor(t/60);return n<24?`${n} hr${n===1?``:`s`} ago`:La(e)}var Ba=M(`<span>`),Va=M(`<span class="inline-block rounded-[3px] border px-1.5 py-0.5 font-mono text-[11px] leading-none whitespace-nowrap">`),Ha=M(`<span class="font-mono text-[10px] uppercase tracking-[0.14em] text-faint">`),Ua=M(`<button>`),Wa=M(`<input>`);function Ga(e){return e===`markup`?`mx-markup`:e}var Ka={markup:`#c0392b`},qa=`mx-auto max-w-4xl px-4 sm:px-6`,Ja=`rounded-[6px] border border-edge bg-surface`,Ya=`border-t border-edge hover:bg-raised transition-colors`,Xa=`text-accent no-underline hover:underline underline-offset-4`,Za={default:`border-edge-bright text-muted`,accent:`border-accent/40 text-accent bg-accent-soft`,dim:`border-edge text-faint`};function Qa(e){return(()=>{var t=Ba();return j(t,()=>e.children),D(()=>E(t,`inline-block rounded-[3px] border px-1.5 py-0.5 font-mono text-[11px] leading-none ${Za[e.tone??`default`]}`)),t})()}function $a(e){let t=()=>e.format??`markup`,n=()=>Ka[t()]??`#95a5a6`;return(()=>{var e=Va();return j(e,()=>Ga(t())),D(t=>{var r=n(),i=`${n()}4d`,a=`${n()}14`;return r!==t.e&&P(e,`color`,t.e=r),i!==t.t&&P(e,`border-color`,t.t=i),a!==t.a&&P(e,`background`,t.a=a),t},{e:void 0,t:void 0,a:void 0}),e})()}function eo(e){return(()=>{var t=Ha();return j(t,()=>e.children),t})()}var to={solid:`bg-accent text-bg border border-accent hover:brightness-110 font-semibold`,ghost:`bg-transparent text-fg border border-edge-bright hover:border-accent hover:text-accent`,danger:`bg-transparent text-danger border border-edge-bright hover:border-danger hover:bg-danger-soft`};function no(e){return(()=>{var t=Ua();return C(t,s(e,{get class(){return`cursor-pointer rounded-[4px] px-3 py-1.5 font-mono text-xs transition-colors disabled:opacity-50 ${to[e.variant??`solid`]} ${e.class??``}`}}),!1,!1),t})()}function ro(e){return(()=>{var t=Wa();return C(t,s(e,{get class(){return`w-full rounded-[4px] border border-edge bg-surface px-3 py-1.5 font-mono text-sm text-fg placeholder:text-faint focus:border-accent focus:outline-none ${e.class??``}`}}),!1,!1),t})()}var io=`keepalive`,ao=45e3,oo=1e3,so=3e4;function co(e,t=Math.random){let n=Math.min(so,oo*2**Math.max(0,e));return Math.round(n/2+t()*(n/2))}function lo(e){let t=e.host??(typeof window>`u`?void 0:window),n=globalThis.EventSource,r=null,i=0,a=!1,o=Date.now(),s,c,l=()=>{clearTimeout(c),c=setTimeout(f,ao)},u=()=>{o=Date.now(),i=0,l()};function d(){if(a||!n)return;clearTimeout(s),s=void 0,r?.close();let t=new n(e.url);r=t;let i=()=>r===t&&!a;t.onopen=()=>{i()&&l()},t.onmessage=t=>{i()&&(u(),e.onMessage?.(String(t.data)))};for(let[n,r]of Object.entries(e.events??{}))t.addEventListener(n,e=>{i()&&(u(),r(String(e.data)))});t.addEventListener(io,()=>{i()&&u()}),t.onerror=()=>{i()&&f()},l()}function f(){a||(clearTimeout(c),r?.close(),r=null,clearTimeout(s),s=setTimeout(d,co(i++,e.random)),e.onError?.())}let p=()=>{if(!a){if(!r||Date.now()-o>2e4){i=0,d();return}e.onWake?.()}},m=()=>{t?.document?.visibilityState!==`hidden`&&p()};return t?.addEventListener(`online`,p),t?.document?.addEventListener(`visibilitychange`,m),d(),{close(){a||(a=!0,clearTimeout(s),clearTimeout(c),r?.close(),r=null,t?.removeEventListener(`online`,p),t?.document?.removeEventListener(`visibilitychange`,m))}}}var uo=r();function fo(e){let{session:t}=R(),[r,i]=u(null),[a,o]=u(``),s=0,c=50,l=0,d=async e=>{let n=t()?.kind===`account`?t()?.user?.id:null;if(!n)return;let r=++s;l=Date.now();try{let a=await fetch(`/api/my/people`,e?{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)}:void 0);if(!a.ok)throw Error(`Could not load notifications`);let u=await a.json();if(!Array.isArray(u.notifications)||!Array.isArray(u.blocks))throw Error(`Could not load notifications`);for(;u.next!=null&&u.notifications.length<c;){let e=await fetch(`/api/my/people?offset=${u.next}`);if(!e.ok)throw Error(`Could not load notifications`);let t=await e.json();u.notifications.push(...t.notifications),u.next=t.next}l=Date.now(),r===s&&t()?.user?.id===n&&(i(u),o(``))}catch{r===s&&o(`Could not load notifications. Try again.`)}},f=()=>{Date.now()-l>1500&&d()};return n(()=>{let e=t()?.kind===`account`?t()?.user?.id:null;if(s++,c=50,i(null),o(``),!e||(d(),typeof EventSource>`u`))return;let n=lo({url:`/api/my/people/events`,onMessage:f,onError:()=>o(`Connection interrupted. Retrying…`)}),r=()=>{document.visibilityState===`visible`&&f()};window.addEventListener(`focus`,r),document.addEventListener(`visibilitychange`,r),m(()=>{n.close(),s++,window.removeEventListener(`focus`,r),document.removeEventListener(`visibilitychange`,r)})}),h(uo.Provider,{value:{state:r,error:a,load:d,loadMore:async()=>{c+=50,await d()}},get children(){return e.children}})}function po(){return c(uo)}function mo(){let e=c(uo);if(!e)throw Error(`InboxProvider missing`);return e}var ho=class extends Error{status;constructor(e,t){super(e),this.status=t}};function go(e,t=`GET`,n,r){return fetch(e,{...r,method:t,credentials:`same-origin`,...n===void 0?{}:{headers:{"Content-Type":`application/json`,...r?.headers},body:JSON.stringify(n)}})}async function _o(e,t=`GET`,n,r){let i=await go(e,t,n,r),a=await i.json().catch(()=>({}));if(!i.ok)throw new ho(a.details?.[0]??a.error??`The request failed.`,i.status);return a}var vo=M(`<p role=alert class="p-3 text-sm text-danger"> <button>Retry`),yo=M(`<p role=status class="p-4 text-sm text-muted">Loading notifications…`),bo=M(`<div class="px-6 py-10 text-center"><p class="text-sm font-medium">You’re all caught up.</p><p class="mt-1 text-xs leading-5 text-muted">Invitations, replies and activity will appear here.`),xo=M(`<div class="border-t border-edge p-3 text-center"><button>Load more`),So=M(`<section aria-label="Notification list"class=font-sans><ul class="m-0 list-none divide-y divide-edge p-0">`),Co=M(`<a class="block break-words text-sm">`),wo=M(`<span aria-label=Unread class="mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-accent">`),To=M(`<li><div class="min-w-0 flex-1">`),Eo=M(`<a class="block break-words text-sm leading-5 text-fg hover:text-accent"><span class=font-semibold>@</span> <!> <span class=font-semibold>`),Do=M(`<time class="mt-1 block text-xs text-muted">`),Oo=M(`<div class="mt-2 flex gap-2"><button type=button class="rounded-[4px] border border-fg bg-fg px-2 py-1 text-xs text-bg"></button><button type=button>Dismiss`),ko=M(`<p role=status class="mt-2 text-xs text-accent"> Invitation accepted`),Ao=M(`<span class=block>`),jo={request:`asked to join`,invitation:`invited you to`,joined:`added you to`,follow:`followed you`,like:`liked`,reply_resolved:`replied and resolved your comment in`,reply:`replied in`,resolved:`resolved a comment in`,reopened:`reopened a comment in`};function Mo(e){if(e.kind===`follow`)return`/people/${e.sender_id}`;let t=e.source?.startsWith(`node:`)?`#${e.source.slice(5)}`:e.source?.startsWith(`comment:`)?`?thread=${e.source.slice(8)}${e.first_update_id?`&comment=${encodeURIComponent(e.first_update_id)}`:``}`:``;return`/a/${e.artifact_id}${t}`}function No(e){let t=mo(),[n,r]=u(!1),[i,a]=u(``),o=()=>e.compact?t.state()?.notifications.slice(0,6)??[]:t.state()?.notifications??[],s=n=>{t.load({read:n.id,revision:n.revision}),e.close?.()},c=async(e,n)=>{if(!(!e.artifact_id||`actor`in e)){r(!0),a(``);try{let r=await go(`/api/my/artifacts/${encodeURIComponent(e.artifact_id)}/members`,`POST`,{action:n,...e.direction===`request`?{userId:e.user_id}:{}});if(!r.ok){let e=await r.json();throw Error(e.detail??`Could not update invitation`)}await t.load({read:e.id,revision:e.revision})}catch(e){a(e instanceof Error?e.message:`Could not update invitation`)}finally{r(!1)}}};return(()=>{var r=So(),a=r.firstChild;return j(r,h(x,{get when(){return t.error()||i()},get children(){var e=vo(),n=e.firstChild,r=n.nextSibling;return j(e,()=>i()||t.error(),n),r.$$click=()=>void t.load(),e}}),a),j(r,h(x,{get when(){return N(()=>!t.state())()&&!t.error()},get children(){return yo()}}),a),j(r,h(x,{get when(){return N(()=>!!t.state())()&&!o().length},get children(){var e=bo(),t=e.firstChild;return j(e,h(on,{size:24,class:`mx-auto mb-3 text-muted`}),t),e}}),a),j(a,h(y,{get each(){return o()},children:e=>(()=>{var t=To(),r=t.firstChild;return j(r,h(x,{get when(){return`actor`in e},get fallback(){return[(()=>{var t=Eo(),n=t.firstChild;n.firstChild;var r=n.nextSibling.nextSibling,i=r.nextSibling.nextSibling;return t.$$click=()=>s(e),j(n,()=>e.username??`someone`,null),j(t,()=>jo[e.kind]??`mentioned you in`,r),j(i,()=>e.title??`Untitled artifact`),D(()=>O(t,`href`,Mo(e))),t})(),h(x,{get when(){return e.created_at},get children(){var t=Do();return j(t,()=>za(e.created_at)),D(()=>O(t,`datetime`,e.created_at)),t}}),h(x,{get when(){return N(()=>e.status===`pending`)()&&[`invitation`,`request`,`joined`].includes(e.kind)},get children(){var t=Oo(),r=t.firstChild,i=r.nextSibling;return r.$$click=()=>void c(e,e.direction===`request`?`approve`:`accept`),j(r,()=>e.direction===`request`?`Approve request`:`Accept invitation`),i.$$click=()=>void c(e,`dismiss`),D(e=>{var t=n(),a=n();return t!==e.e&&(r.disabled=e.e=t),a!==e.t&&(i.disabled=e.t=a),e},{e:void 0,t:void 0}),t}}),h(x,{get when(){return e.status===`accepted`},get children(){var e=ko(),t=e.firstChild;return j(e,h(un,{size:14,class:`inline`}),t),e}})]},get children(){var t=Co();return t.$$click=()=>s(e),j(t,h(y,{get each(){return N(()=>`messages`in e)()?e.messages:[]},children:e=>(()=>{var t=Ao();return j(t,e),t})()})),D(()=>O(t,`href`,`/a/${e.artifact_id}`)),t}})),j(t,h(x,{get when(){return!e.read_at},get children(){return wo()}}),null),D(n=>{var r=e.id,i=`relative flex gap-3 px-3 py-3.5 ${e.read_at?``:`bg-accent-soft/40`}`;return r!==n.e&&O(t,`data-notification-id`,n.e=r),i!==n.t&&E(t,n.t=i),n},{e:void 0,t:void 0}),t})()})),j(r,h(x,{get when(){return N(()=>!e.compact)()&&t.state()?.next!=null},get children(){var e=xo(),n=e.firstChild;return n.$$click=()=>void t.loadMore(),e}}),null),r})()}b([`click`]);function Po(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t*31+e.charCodeAt(n))%360;return t}var Fo=e=>`hsl(${Po(e)} 55% 30%)`,Io=e=>(e?.trim()[0]??`?`).toUpperCase(),Lo=M(`<img alt class="absolute inset-0 size-full object-cover">`),Ro=M(`<span aria-hidden=true class="relative block shrink-0 overflow-hidden rounded-full"><span data-face-initial class="flex size-full items-center justify-center font-semibold leading-none text-white">`);function zo(e){let[t,n]=u(null),r=()=>e.image&&/^(https?:\/\/|\/|data:image\/)/.test(e.image)?e.image:null;return(()=>{var i=Ro(),a=i.firstChild;return j(a,()=>Io(e.initial)),j(i,h(x,{get when(){return N(()=>!!r())()&&t()!==r()},get children(){var e=Lo();return e.addEventListener(`error`,()=>n(r())),D(()=>O(e,`src`,r())),e}}),null),D(t=>{var n=e.size?`${e.size}px`:`100%`,r=e.size?`${e.size}px`:`100%`,o=Fo(e.userId),s=e.size?`${Math.round(e.size*.42)}px`:void 0;return n!==t.e&&P(i,`width`,t.e=n),r!==t.t&&P(i,`height`,t.t=r),o!==t.a&&P(a,`background-color`,t.a=o),s!==t.o&&P(a,`font-size`,t.o=s),t},{e:void 0,t:void 0,a:void 0,o:void 0}),i})()}function Bo(e){let t=t=>{t.key===`Escape`&&e()};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)}var Vo=`mx:doc:`;function Ho(e){let t=e.name;if(!t.startsWith(Vo))return{};try{let e=JSON.parse(t.slice(7));return e&&typeof e==`object`?e:{}}catch{return{}}}function Uo(e,t){let n={...t.anchor?{anchor:t.anchor}:{},...t.mode===`light`||t.mode===`dark`?{mode:t.mode}:{}};e.name=Object.keys(n).length?Vo+JSON.stringify(n):``}function Wo(e,t){Uo(e,{...Ho(e),anchor:t})}function Go(e,t=document){e===`dark`?t.documentElement.dataset.theme=`dark`:delete t.documentElement.dataset.theme;try{t.defaultView?.localStorage.setItem(`mx_theme`,e)}catch{}}var Ko=M(`<div role=dialog class="absolute right-0 mt-2 w-64 rounded border border-edge bg-surface p-3 shadow-xl"><div class="mb-3 flex items-center justify-between"><h1 class="font-mono text-xs font-semibold"></h1><button type=button>×`),qo=M(`<aside class="fixed right-4 top-4 z-40"><button type=button aria-label="Open artifact controls"class="rounded border border-edge bg-surface px-3 py-2 text-xs text-fg"> ···`),Jo=M(`<span data-mx-github-star>`),Yo=M(`<span aria-hidden=true class="absolute right-1 top-1 h-2 w-2 rounded-full bg-red-500">`),Xo=M(`<button type=button class="flex h-9 w-9 cursor-pointer items-center justify-center rounded-[8px] border-0 bg-transparent text-muted transition-colors hover:bg-raised hover:text-fg relative">`),Zo=M(`<button type=button>`),Qo=M(`<span>`),$o=M(`<button type=button class="flex h-9 w-9 cursor-pointer items-center justify-center rounded-[8px] border-0 bg-transparent text-muted transition-colors hover:bg-raised hover:text-fg">`),es=M(`<header aria-label="Page bar"class="sticky top-0 z-40 flex h-11 items-center gap-2 border-b border-edge bg-surface/85 px-3 backdrop-blur-md sm:gap-3"><a href=/ aria-label=Home class="flex h-9 w-9 shrink-0 items-center justify-center rounded-[8px] no-underline transition-colors hover:bg-raised"><img src=/logo-128.png alt></a><a href=/ class="min-w-0 truncate font-mono text-[13px] font-medium text-fg no-underline hover:text-accent sm:hidden">artifactbin</a><nav aria-label="Current page"class="hidden min-w-0 items-center gap-2 font-mono text-fg sm:flex"><a href=/>artifactbin</a></nav><div class="ml-auto flex shrink-0 items-center gap-1">`),ts=M(`<button type=button aria-label="Close panel"class="fixed inset-0 z-40 cursor-default border-0 bg-black/25 p-0">`),ns=M(`<section class="fixed right-3 top-14 z-50 max-h-[80vh] w-72 max-w-[calc(100vw-24px)] overflow-auto rounded-[7px] border border-edge bg-surface p-3 font-mono text-xs shadow-xl"><div class="mb-3 flex items-center justify-between"><h1 class="font-mono text-xs font-semibold"></h1><button type=button></button></div><section aria-label=Appearance><h2 class="mb-2 font-mono text-[10px] font-semibold uppercase tracking-[0.14em] text-faint">appearance</h2><div role=group aria-label="Color mode"class="flex overflow-hidden rounded-[5px] border border-edge"><button type=button aria-label="Light mode">light</button><button type=button aria-label="Dark mode">dark`),rs=M(`<span aria-hidden=true class=text-faint>·`),is=M(`<span class="truncate font-normal text-muted">Google Docs for agents`),as=M(`<a class="shrink-0 text-muted no-underline hover:text-accent">`),os=M(`<span class="flex min-w-0 items-center gap-2">`),ss=M(`<span class="min-w-0 truncate font-semibold text-fg">`),cs=M(`<div class="mt-4 border-t border-edge pt-3">`),ls=M(`<a>`),us=M(`<button type=button aria-label="Sign out"class="flex w-full items-center gap-3 rounded-[5px] border-0 bg-transparent px-3 py-3 text-left font-mono text-sm no-underline transition-colors sm:gap-2.5 sm:px-2.5 sm:py-2 sm:text-xs cursor-pointer text-muted hover:bg-raised hover:text-fg">Sign out`),ds=M(`<nav aria-label=Menu><button type=button aria-label="Dismiss menu"class="absolute right-3 top-3 flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border border-edge bg-surface text-muted hover:bg-raised hover:text-fg sm:hidden"style="top:max(12px, env(safe-area-inset-top))"></button><a href=/ aria-label="Hosted at artifactbin"class="mb-3 flex items-center gap-2.5 px-2 font-mono text-sm font-semibold text-fg no-underline transition-colors hover:text-accent"><img src=/logo-128.png alt class="h-7 w-7">artifactbin</a><a target=_blank rel="noopener noreferrer"class="flex w-full items-center gap-3 rounded-[5px] border-0 bg-transparent px-3 py-3 text-left font-mono text-sm no-underline transition-colors sm:gap-2.5 sm:px-2.5 sm:py-2 sm:text-xs cursor-pointer text-muted hover:bg-raised hover:text-fg">Support artifactbin</a><div class=mt-auto></div><div class="my-1 h-px bg-edge">`),fs=M(`<button type=button aria-label="Disconnect this browser"class="flex w-full items-center gap-3 rounded-[5px] border-0 bg-transparent px-3 py-3 text-left font-mono text-sm no-underline transition-colors sm:gap-2.5 sm:px-2.5 sm:py-2 sm:text-xs cursor-pointer text-muted hover:bg-raised hover:text-fg">Disconnect this browser`),ps=M(`<section aria-label=Notifications class="fixed right-3 top-14 z-50 w-80 rounded-[7px] border border-edge bg-surface p-4 shadow-xl"><div class="mb-3 flex items-center justify-between"><h2 class="text-sm font-semibold">Notifications</h2><button type=button aria-label="Close notifications"></button></div><div class="max-h-[55vh] overflow-y-auto"></div><nav aria-label="Notification links"class="mt-2 flex flex-col gap-2 border-t border-edge pt-3"><a href=/notifications>All notifications</a><a href=/account#notifications>Notification settings`);function ms(e){let[t,n]=u(!1);return(()=>{var r=qo(),i=r.firstChild,a=i.firstChild;return i.$$click=()=>n(e=>!e),j(i,()=>e.title||`Artifact`,a),j(r,h(x,{get when(){return t()},get children(){var t=Ko(),r=t.firstChild.firstChild,i=r.nextSibling;return j(r,()=>e.label.toLowerCase()),i.$$click=()=>n(!1),j(t,()=>e.children,null),D(n=>{var r=e.label,a=`Dismiss ${e.label.toLowerCase()}`;return r!==n.e&&O(t,`aria-label`,n.e=r),a!==n.t&&O(i,`aria-label`,n.t=a),n},{e:void 0,t:void 0}),t}}),null),D(()=>O(i,`aria-expanded`,t())),r})()}var hs=r();function gs(){return c(hs)}var _s=`flex h-9 w-9 cursor-pointer items-center justify-center rounded-[8px] border-0 bg-transparent text-muted transition-colors hover:bg-raised hover:text-fg`;function vs(e){let t;return n(()=>or(t)),(()=>{var n=Jo(),r=t;return typeof r==`function`?k(r,n):t=n,D(t=>{var r=`${e.mobile?`inline-flex sm:hidden`:`hidden sm:inline-flex`} h-7 shrink-0 items-center text-fg print:hidden`,i=nr(!e.mobile);return r!==t.e&&E(n,t.e=r),i!==t.t&&(n.innerHTML=t.t=i),t},{e:void 0,t:void 0}),n})()}function ys(e={}){let t=F(),{session:r}=R(),i=po(),[a,o]=u(null),s=()=>e.panel?e.panel():a(),c=t=>{let n=typeof t==`function`?t(s()):t;e.setPanel?e.setPanel(n):o(n)},[d,f]=u(typeof document<`u`&&document.documentElement.dataset.theme===`dark`?`dark`:`light`),p=()=>e.mode?e.mode():d(),g=()=>r()?.kind===`account`?r()?.user:null,_=()=>Qn(t.pathname,e.title),v=()=>e.label??`Page controls`,b=()=>v().toLowerCase(),S=e=>`flex flex-1 cursor-pointer items-center justify-center gap-2 border-0 px-3 py-2 font-mono text-xs transition-colors ${p()===e?`bg-accent-soft text-accent`:`bg-transparent text-muted hover:bg-raised hover:text-fg`}`,C,w=(e,t)=>{C=t?.currentTarget??void 0,c(t=>t===e?null:e)},T=()=>c(null),ee=t=>{f(t),e.onMode?e.onMode(t):Go(t)},k=()=>!!i?.state()?.unread;return n(l(s,(e,t)=>{!e&&t&&C?.isConnected&&C.focus()},{defer:!0})),n(()=>{s()&&m(Bo(T))}),[(()=>{var t=es(),n=t.firstChild,r=n.firstChild,i=n.nextSibling.nextSibling,a=i.firstChild,o=i.nextSibling;return j(i,h(x,{get when(){return e.byline},get fallback(){return[h(x,{get when(){return!_().length},get children(){return[rs(),is()]}}),h(y,{get each(){return _()},children:e=>(()=>{var t=os();return j(t,h(fn,{size:14,class:`shrink-0 text-faint`,"aria-hidden":`true`}),null),j(t,h(x,{get when(){return e.href},get fallback(){return(()=>{var t=ss();return j(t,()=>e.label),t})()},get children(){var t=as();return j(t,()=>e.label),D(()=>O(t,`href`,e.href)),t}}),null),t})()})]},get children(){return e.byline}}),null),j(o,h(x,{get when(){return e.star!==!1},get children(){return[h(vs,{mobile:!1}),h(vs,{mobile:!0})]}}),null),j(o,()=>e.actions,null),j(o,h(x,{get when(){return g()},get children(){return h(sa,{content:`Notifications`,get children(){var e=Xo();return e.$$click=e=>w(`notifications`,e),j(e,h(on,{size:20,strokeWidth:1.5}),null),j(e,h(x,{get when(){return k()},get children(){return Yo()}}),null),D(t=>{var n=k()?`Notifications, unread updates`:`Notifications`,r=s()===`notifications`;return n!==t.e&&O(e,`aria-label`,t.e=n),r!==t.t&&O(e,`aria-expanded`,t.t=r),t},{e:void 0,t:void 0}),e}})}}),null),j(o,h(sa,{get content(){return b()},get children(){var e=Zo();return e.$$click=e=>w(`controls`,e),j(e,(()=>{var e=N(()=>s()===`controls`);return()=>e()?h(An,{size:17}):h(wn,{size:20,strokeWidth:1.5})})()),D(t=>{var n=`${s()===`controls`?`Close`:`Open`} ${b()}`,r=s()===`controls`,i=`${_s} ${s()===`controls`?`text-accent`:``}`;return n!==t.e&&O(e,`aria-label`,t.e=n),r!==t.t&&O(e,`aria-expanded`,t.t=r),i!==t.a&&E(e,t.a=i),t},{e:void 0,t:void 0,a:void 0}),e}}),null),j(o,h(sa,{content:`menu`,get children(){var e=$o();return e.$$click=e=>w(`menu`,e),j(e,h(x,{get when(){return g()},get fallback(){return N(()=>s()===`menu`)()?h(An,{size:17}):h(mn,{size:20,strokeWidth:1.5})},get children(){var e=Qo();return j(e,h(zo,{get image(){return g()?.image??null},get initial(){return g()?.username||g()?.email||`?`},get userId(){return g()?.id??``},size:24})),D(()=>E(e,`rounded-full ring-offset-1 ring-offset-surface ${s()===`menu`?`ring-2 ring-accent`:``}`)),e}})),D(t=>{var n=s()===`menu`?`Close menu`:`Open menu`,r=s()===`menu`;return n!==t.e&&O(e,`aria-label`,t.e=n),r!==t.t&&O(e,`aria-expanded`,t.t=r),t},{e:void 0,t:void 0}),e}}),null),D(t=>{var n=`${$n.logoSize}px`,o=`${$n.logoSize}px`,s=`${$n.fontSize}px`,c=$n.fontWeight,l=`shrink-0 no-underline hover:text-accent ${_().length||e.byline?`text-muted`:`font-semibold text-fg`}`;return n!==t.e&&P(r,`width`,t.e=n),o!==t.t&&P(r,`height`,t.t=o),s!==t.a&&P(i,`font-size`,t.a=s),c!==t.o&&P(i,`font-weight`,t.o=c),l!==t.i&&E(a,t.i=l),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),t})(),h(x,{get when(){return s()},get children(){return h(A,{get mount(){return Jn(document)??document.body},get children(){return[(()=>{var e=ts();return e.$$click=T,e})(),h(x,{get when(){return s()===`menu`},get children(){return h(xs,{close:T})}}),h(x,{get when(){return s()===`controls`},get children(){var t=ns(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,a=n.nextSibling.firstChild.nextSibling.firstChild,o=a.firstChild,s=a.nextSibling,c=s.firstChild;return j(r,b),i.$$click=T,j(i,h(An,{size:15})),a.$$click=()=>ee(`light`),j(a,h(En,{size:14,strokeWidth:1.5}),o),s.$$click=()=>ee(`dark`),j(s,h(Sn,{size:14,strokeWidth:1.5}),c),j(t,h(x,{get when(){return e.controls},children:e=>(()=>{var t=cs();return j(t,()=>e()(T)),t})()}),null),D(e=>{var n=v(),r=`Dismiss ${b()}`,o=p()===`light`,c=S(`light`),l=p()===`dark`,u=S(`dark`);return n!==e.e&&O(t,`aria-label`,e.e=n),r!==e.t&&O(i,`aria-label`,e.t=r),o!==e.a&&O(a,`aria-pressed`,e.a=o),c!==e.o&&E(a,e.o=c),l!==e.i&&O(s,`aria-pressed`,e.i=l),u!==e.n&&E(s,e.n=u),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),t}}),h(x,{get when(){return s()===`notifications`},get children(){return h(Ss,{close:T})}})]}})}})]}var bs=`flex w-full items-center gap-3 rounded-[5px] border-0 bg-transparent px-3 py-3 text-left font-mono text-sm no-underline transition-colors sm:gap-2.5 sm:px-2.5 sm:py-2 sm:text-xs`;function xs(e){let{session:t}=R(),n=F(),r=()=>t()?.kind===`account`?t()?.user:null,i=()=>e.close(),a=(e,t,r)=>{let a=()=>n.pathname===e;return(()=>{var n=ls();return n.$$click=i,O(n,`href`,e),O(n,`aria-label`,t),j(n,r,null),j(n,t,null),D(t=>{var r=[`/`,`/assets`,`/trash`,`/login`,`/start`,`/welcome`,`/notifications`,`/account`,`/docs-human`,`/chat`,`/schedules`,`/programs/new`].includes(e)?void 0:`external`,i=`${bs} cursor-pointer ${a()?`bg-accent-soft text-accent`:`text-muted hover:bg-raised hover:text-fg`}`;return r!==t.e&&O(n,`rel`,t.e=r),i!==t.t&&E(n,t.t=i),t},{e:void 0,t:void 0}),n})()},o=()=>e.dropdown?e.phone?`fixed inset-x-0 bottom-0 z-50 flex animate-[rise_.14s_ease-out] flex-col rounded-t-[10px] border-t border-edge bg-surface p-3 pb-[max(20px,env(safe-area-inset-bottom))] shadow-xl`:`fixed right-3 top-14 z-50 flex w-72 animate-[rise_.14s_ease-out] flex-col rounded-[7px] border border-edge bg-surface p-2 shadow-xl`:`fixed inset-y-0 left-0 z-50 flex w-full animate-[drawer-in_.15s_ease-out] flex-col border-r border-edge bg-surface p-2 pt-16 shadow-xl sm:w-72`;return(()=>{var n=ds(),s=n.firstChild,c=s.nextSibling.nextSibling,l=c.firstChild;return c.nextSibling.nextSibling,s.$$click=i,j(s,h(An,{size:17,"stroke-width":1.5})),j(n,()=>a(`/`,`Artifacts`,h(gn,{size:15,"stroke-width":1.5})),c),j(n,()=>a(`/schedules`,`Schedules`,h(rn,{size:15})),c),j(n,()=>a(`/chat`,`Remote sessions`,h(On,{size:15,"stroke-width":1.5})),c),j(n,()=>a(`/notifications`,`Notifications`,h(On,{size:15,"stroke-width":1.5})),c),j(n,()=>a(`/account`,`Account`,h(On,{size:15,"stroke-width":1.5})),c),j(n,()=>a(`/docs-human`,`Human Docs`,h(cn,{size:15,"stroke-width":1.5})),c),c.$$click=i,O(c,`href`,er),j(c,h(Kn,{size:15}),l),j(n,h(x,{get when(){return r()},get fallback(){return h(x,{get when(){return t()?.kind===`anon`},get fallback(){return a(gr(window.location),`Login`,h(vn,{size:15,"stroke-width":1.5}))},get children(){var e=fs(),t=e.firstChild;return e.$$click=()=>void cr().then(()=>{window.location.href=`/`}),j(e,h(bn,{size:15,"stroke-width":1.5}),t),e}})},get children(){var e=us(),t=e.firstChild;return e.$$click=()=>void Promise.all([sr(),fetch(`/api/auth/sign-out`,{method:`POST`,headers:{"Content-Type":`application/json`},body:`{}`}).catch(()=>null)]).then(()=>{window.location.href=`/`}),j(e,h(bn,{size:15,"stroke-width":1.5}),t),e}}),null),D(t=>{var r=o(),i=e.dropdown&&!e.phone&&e.top!==void 0?{top:`${e.top}px`}:void 0;return r!==t.e&&E(n,t.e=r),t.t=w(n,i,t.t),t},{e:void 0,t:void 0}),n})()}function Ss(e){let t=()=>e.close();return(()=>{var e=ps(),n=e.firstChild,r=n.firstChild.nextSibling,i=n.nextSibling,a=i.nextSibling.firstChild,o=a.nextSibling;return r.$$click=t,j(r,h(An,{size:18})),j(i,h(No,{compact:!0,close:t})),a.$$click=t,o.$$click=t,e})()}b([`click`]);var Cs=new Set([`/welcome`,`/login`,`/start`]);function ws(){let[e,t]=u(document.readyState===`complete`);if(!e()){let e,n=()=>{e=setTimeout(()=>t(!0),0)};window.addEventListener(`load`,n,{once:!0}),m(()=>{window.removeEventListener(`load`,n),clearTimeout(e)})}return e}function Ts(e){let{session:t}=R(),n=F(),r=ws(),i=null,a=f(()=>{let e=n.pathname,a=n.search,o=n.hash,s=t();mr(a)?i=e:i!==e&&(i=null);let c=e.replace(/\/+$/,``)||`/`;return!s?.user||s.onboarded!==!1||Cs.has(c)||i===e||!r()?null:`/welcome?callbackUrl=${encodeURIComponent(`${e}${a}${o}`)}`});return h(x,{get when(){return!a()},get fallback(){return h(Nt,{get href(){return a()}})},get children(){return e.children}})}var Es=`modulepreload`,Ds=function(e){return`/`+e},Os={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Ds(t,n),t=s(t),t in Os)return;Os[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Es,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ks=M(`<main aria-label="Loading page"role=status aria-busy=true class="mx-auto max-w-5xl px-4 py-10"><span class=sr-only>Loading page…</span><div aria-hidden=true class="h-7 w-48 rounded bg-raised">`),As=M(`<main class="mx-auto max-w-5xl px-4 py-10"role=alert>Could not load this page. <button aria-label="Retry loading page">Retry`),js=i(()=>$(()=>import(`./Trash-Cu0KXeW7.js`).then(e=>({default:e.TrashPage})),__vite__mapDeps([0,1,2,3,4,5]))),Ms=i(()=>$(()=>import(`./NotFound-svz4wCeL.js`).then(e=>({default:e.NotFoundPage})),__vite__mapDeps([6,1]))),Ns=i(()=>$(()=>import(`./Login-DLwn4aUr.js`).then(e=>({default:e.LoginPage})),__vite__mapDeps([7,1,8]))),Ps=i(()=>$(()=>import(`./Start-B5ji5vTT.js`).then(e=>({default:e.StartPage})),__vite__mapDeps([9,1,10]))),Fs=i(()=>$(()=>import(`./Welcome-B8iPt_Nh.js`).then(e=>({default:e.WelcomePage})),__vite__mapDeps([11,1,12,13,14,15,10,8]))),Is=i(()=>$(()=>import(`./Notifications-BGeJKv2W.js`).then(e=>({default:e.NotificationsPage})),__vite__mapDeps([16,1]))),Ls=i(()=>$(()=>import(`./Account-CvOF6jpD.js`).then(e=>({default:e.AccountPage})),__vite__mapDeps([17,1,18,12,13,14,15,19,20,21]))),Rs=i(()=>$(()=>import(`./Docs-DVoW7b7v.js`).then(e=>({default:e.DocsPage})),__vite__mapDeps([22,1,23,24,18,13,14,25,21,26,27]))),zs=i(()=>$(()=>import(`./Profile-B38GeCbR.js`).then(e=>({default:e.ProfilePage})),__vite__mapDeps([28,1,29,30,5,31,6,32,14,33]))),Bs=i(()=>$(()=>import(`./Profile-B38GeCbR.js`).then(e=>({default:e.ProfileAliasRoute})),__vite__mapDeps([28,1,29,30,5,31,6,32,14,33]))),Vs=i(()=>$(()=>import(`./Home-DijnltFZ.js`).then(e=>({default:e.HomePage})),__vite__mapDeps([34,1,35,36,37,21,38,20,39,40,3,29,30,41,42,43,27,14,33,44,31,5,45,46,47,48,49,19,50,51,52,53,54,55,24,18,13,25,26,56]))),Hs=i(()=>$(()=>import(`./ArtifactAddress-DORDne01.js`).then(e=>({default:e.ArtifactAddressRoute})),__vite__mapDeps([57,1,10,6]))),Us=i(()=>$(()=>import(`./Assets-dgdXIgAW.js`).then(e=>({default:e.AssetsPage})),__vite__mapDeps([58,1,2,37,21,38,20,39,40,3,29,30,41,42,43,27,14,33,44,31,5,45,46,47,48,49,19,51]))),Ws=i(()=>$(()=>import(`./DatasetEditor-CMqN1duq.js`).then(e=>({default:e.DatasetEditorPage})),__vite__mapDeps([59,47,43,27,1,36,37,21,38,20,39,54,49,60,32,14,33,61]))),Gs=i(()=>$(()=>import(`./FileUpload-D6RTOrHD.js`).then(e=>({default:e.FileUploadPage})),__vite__mapDeps([62,1,18,63,51,21,64,61]))),Ks=i(()=>$(()=>import(`./Schedules-DK3-YUvJ.js`).then(e=>({default:e.SchedulesPage})),__vite__mapDeps([65,1,49]))),qs=i(()=>$(()=>import(`./Program-D3-Gfvjo.js`).then(e=>({default:e.ProgramPage})),__vite__mapDeps([66,1,67,36,14,33,56,19,20,55,21,32,38,49]))),Js=()=>{let e=st();return h(qs,{get artifactId(){return e.id}})},Ys=i(()=>$(()=>import(`./Chat-V1ku1-60.js`).then(e=>({default:e.ChatPage})),__vite__mapDeps([68,1,21,26,27,14,25,69]))),Xs=i(()=>$(()=>import(`./Document-udhy5mlX.js`).then(e=>({default:e.DocumentPage})),__vite__mapDeps([70,1,36,18,67,14,33,56,19,20,55,21,32,38,30,13,71,63,52,53,42,43,27,44,31,72,54,49,6])));function Zs(){return ks()}function Qs(){return Kt(),[]}function $s(e){let t=F(),r=!!Ce(),i=()=>r&&(/^\/a\/[^/]+(?:\/(?:edit|app))?\/?$/.test(t.pathname)||/^\/@[^/]+\/[^/]+(?:\/edit)?\/?$/.test(t.pathname)),[a,o]=u(!0),s=window.location.pathname;return n(()=>{Ee(t.pathname),t.pathname!==s&&document.querySelectorAll(`[data-mx-pwa]`).forEach(e=>e.remove())}),h(Ht,{get children(){return[h(Qs,{}),h(fo,{get children(){return h(Ts,{get children(){return h(hs.Provider,{value:o,get children(){return[h(x,{get when(){return N(()=>!i())()&&a()},get children(){return h(ys,{})}}),h(T,{fallback:(e,t)=>(()=>{var e=As(),n=e.firstChild.nextSibling;return te(n,`click`,t,!0),e})(),get children(){return h(ie,{get fallback(){return h(Zs,{})},get children(){return e.children}})}})]}})}})}})]}})}function ec(){return Ce()?h(Xs,{}):h(Hs,{})}function tc(){return Ce()?h(Xs,{}):h(Hs,{editing:!0})}function nc(){return h(Mt,{root:$s,get children(){return[h(L,{path:`/`,component:Vs}),h(L,{path:`/a/:id`,component:ec}),h(L,{path:`/a/:id/app/`,component:ec}),h(L,{path:`/trash`,component:js}),h(L,{path:`/tokens`,component:()=>h(Nt,{href:`/account`})}),h(L,{path:`/assets`,component:Us}),h(L,{path:`/datasets/new`,component:Ws}),h(L,{path:`/files/new`,component:Gs}),h(L,{path:`/a/:id/edit`,component:tc}),h(L,{path:`/schedules`,component:Ks}),h(L,{path:`/programs/new`,component:qs}),h(L,{path:`/programs/:id/edit`,component:Js}),h(L,{path:`/chat`,component:Ys}),h(L,{path:`/login`,component:Ns}),h(L,{path:`/start`,component:Ps}),h(L,{path:`/welcome`,component:Fs}),h(L,{path:`/notifications`,component:Is}),h(L,{path:`/account`,component:Ls}),h(L,{path:`/docs-human`,component:Rs}),h(L,{path:`/:user`,component:zs}),h(L,{path:`/:user/*rest`,component:Bs}),h(L,{path:`*404`,component:Ms})]}})}b([`click`]),ve(window),Se(),Ie(document),S(()=>h(nc,{}),document.getElementById(`root`));export{F as $,sa as A,Wn as B,Ya as C,za as D,Ia as E,Hn as F,z as G,gn as H,Vn as I,Lt as J,qt as K,Bn as L,gr as M,qn as N,ka as O,Jn as P,lt as Q,Un as R,Ja as S,Ra as T,fn as U,An as V,un as W,zt as X,It as Y,Nt as Z,$a as _,Go as a,Pe as at,eo as b,No as c,Te as ct,mo as d,he as dt,ot as et,po as f,me as ft,no as g,Qa as h,gs as i,Me as it,ea as j,Na as k,go as l,Ce as lt,lo as m,ms as n,ct as nt,Wo as o,Ne as ot,co as p,ce as pt,R as q,ys as r,je as rt,zo as s,we as st,$ as t,st as tt,_o as u,ge as ut,ro as v,Ga as w,qa as x,Xa as y,Gn as z};
15
+ `));a();for(let e of n)e.sheet||e.addEventListener(`load`,()=>{r.has(e)||a()},{once:!0});Ae=()=>{for(let e of n)fetch(e.href,{credentials:`same-origin`,headers:{accept:`text/css`}}).then(e=>e.ok&&/\btext\/css\b/.test(e.headers.get(`content-type`)??``)?e.text():Promise.reject(Error(String(e.status)))).then(t=>{r.set(e,t),a()}).catch(()=>{})}}function Le(){let e=new Set;function t(t){return e.add(t),()=>e.delete(t)}let n=!1;function r(t,r){if(n)return!(n=!1);let i={to:t,options:r,defaultPrevented:!1,preventDefault:()=>i.defaultPrevented=!0};for(let a of e)a.listener({to:t,options:r,get defaultPrevented(){return i.defaultPrevented},preventDefault:i.preventDefault,from:a.location,retry:e=>{e&&(n=!0),a.navigate(t,{...r,resolve:!1})}});return!i.defaultPrevented}return{subscribe:t,confirm:r}}var Re;function ze(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},``),Re=window.history.state._depth}ze();function Be(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function Ve(e,t){let n=!1;return()=>{let r=Re;ze();let i=r==null?null:Re-r;if(n){n=!1;return}i&&t(i)?(n=!0,window.history.go(-i)):e()}}var He=/^(?:[a-z0-9]+:)?\/\//i,Ue=/^\/+|(\/)\/+$/g,We=`http://sr`;function Ge(e,t=!1){let n=e.replace(Ue,`$1`);return n?t||/^[?#]/.test(n)?n:`/`+n:``}function Ke(e,t,n){if(He.test(t))return;let r=Ge(e),i=n&&Ge(n),a=``;return a=!i||t.startsWith(`/`)?r:i.toLowerCase().indexOf(r.toLowerCase())===0?i:r+i,(a||`/`)+Ge(t,!a)}function qe(e,t){if(e==null)throw Error(t);return e}function Je(e,t){return Ge(e).replace(/\/*(\*.*)?$/g,``)+Ge(t)}function Ye(e){let t={};return e.searchParams.forEach((e,n)=>{n in t?Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]:t[n]=e}),t}function Xe(e,t,n){let[r,i]=e.split(`/*`,2),a=r.split(`/`).filter(Boolean),o=a.length;return e=>{let r=e.split(`/`);if(r[0]===``&&r.shift(),r.length&&r[r.length-1]===``&&r.pop(),r.includes(``))return null;let s=r.length-o;if(s<0||s>0&&i===void 0&&!t)return null;let c={path:o?``:`/`,params:{}},l=e=>n===void 0?void 0:n[e];for(let e=0;e<o;e++){let t=a[e],n=t[0]===`:`,i=n?r[e]:r[e].toLowerCase(),o=n?t.slice(1):t.toLowerCase();if(n&&Ze(i,l(o)))c.params[o]=i;else if(n||!Ze(i,o))return null;c.path+=`/${i}`}if(i){let e=s?r.slice(-s).join(`/`):``;if(Ze(e,l(i)))c.params[i]=e;else return null}return c}}function Ze(e,t){let n=t=>t===e;return t===void 0?!0:typeof t==`string`?n(t):typeof t==`function`?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp&&t.test(e)}function Qe(e){let[t,n]=e.pattern.split(`/*`,2),r=t.split(`/`).filter(Boolean);return r.reduce((e,t)=>e+(t.startsWith(`:`)?2:3),r.length-(n===void 0?0:1))}function $e(e){let t=new Map,n=p();return new Proxy({},{get(r,i){return t.has(i)||_(n,()=>t.set(i,f(()=>e()[i]))),t.get(i)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())},has(t,n){return n in e()}})}function et(e,t){let n=new URLSearchParams(e);Object.entries(t).forEach(([e,t])=>{t==null||t===``||t instanceof Array&&!t.length?n.delete(e):t instanceof Array?(n.delete(e),t.forEach(t=>{n.append(e,String(t))})):n.set(e,String(t))});let r=n.toString();return r?`?${r}`:``}function tt(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length),i=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)i.push(n+=t[1]),r=r.slice(t[0].length);return tt(r).reduce((e,t)=>[...e,...i.map(e=>e+t)],[])}var nt=100,rt=r(),it=r(),at=()=>qe(c(rt),`<A> and 'use' router primitives can be only used inside a Route.`),ot=()=>at().navigatorFactory(),F=()=>at().location,st=()=>at().params,ct=()=>{let e=at(),t=e.location,n=ot();return[t.query,(r,i)=>{let o=a(()=>{let n=e.pendingTarget&&new URL(e.pendingTarget.value,`http://sr`),i=n?n.pathname:t.pathname,a=n?n.search:t.search,o=n?n.hash:t.hash;return i+et(a,r)+o});n(o,{scroll:!1,resolve:!1,...i})}]},lt=e=>{let t=at().beforeLeave.subscribe({listener:e,location:F(),navigate:ot()});m(t)},ut=e=>encodeURIComponent(e).replace(/%(2B|40|3A|24|26|2C|3B|3D)/g,e=>decodeURIComponent(e));function dt(e,t=``){let{component:n,preload:r,load:i,children:a,info:o}=e,s=!a||Array.isArray(a)&&!a.length,c={key:e,component:n,preload:r||i,info:o};return pt(e.path).reduce((n,r)=>{for(let i of tt(r)){let a=Je(t,i),o=s?a:a.split(`/*`,1)[0];o=o.split(`/`).map(e=>e.startsWith(`:`)||e.startsWith(`*`)?e:ut(e)).join(`/`),n.push({...c,originalPath:r,pattern:o,matcher:Xe(o,!s,e.matchFilters)})}return n},[])}function ft(e,t=0){return{routes:e,score:Qe(e[e.length-1])*1e4-t,matcher(t){let n=[];for(let r=e.length-1;r>=0;r--){let i=e[r],a=i.matcher(t);if(!a)return null;n.unshift({...a,route:i})}return n}}}function pt(e){return Array.isArray(e)?e:[e]}function mt(e,t=``,n=[],r=[]){let i=pt(e);for(let e=0,a=i.length;e<a;e++){let a=i[e];if(a&&typeof a==`object`){a.hasOwnProperty(`path`)||(a.path=``);let e=dt(a,t);for(let t of e){n.push(t);let e=Array.isArray(a.children)&&a.children.length===0;if(a.children&&!e)mt(a.children,t.pattern,n,r);else{let e=ft([...n],r.length);r.push(e)}n.pop()}}}return n.length?r:r.sort((e,t)=>t.score-e.score)}function ht(e,t){for(let n=0,r=e.length;n<r;n++){let r=e[n].matcher(t);if(r)return r}return[]}function gt(e,t,n){let r=new URL(We),i=f(t=>{let n=e();try{return new URL(n[0]===`/`?We+n:n,r)}catch{return console.error(`Invalid path ${n}`),t}},r,{equals:(e,t)=>e.href===t.href}),a=f(()=>i().pathname),o=f(()=>i().search,!0),s=f(()=>i().hash),c=()=>``,u=l(o,()=>Ye(i()));return{get pathname(){return a()},get search(){return o()},get hash(){return s()},get state(){return t()},get key(){return c()},query:n?n(u):$e(u)}}var I;function _t(){return I}function vt(n,r,i,o={}){let{signal:[s,d],utils:p={}}=n,m=p.parsePath||(e=>e),h=p.renderPath||(e=>e),g=p.beforeLeave||Le(),y=Ke(``,o.base||``);if(y===void 0)throw Error(`${y} is not a valid base path`);y&&!s().value&&d({value:y,replace:!0,scroll:!1});let[b,x]=u(!1),S,C=(n,r)=>{(r.value!==w()||r.state!==E())&&(S===void 0&&x(!0),I=n,S=r,v(()=>{S===r&&(T(S.value),ee(S.state),e(),A[1](e=>e.filter(e=>e.pending)))}).finally(()=>{S===r&&t(()=>{I=void 0,n===`navigate`&&re(S),x(!1),S=void 0})}))},[w,T]=u(s().value),[E,ee]=u(s().state),O=gt(w,E,p.queryWrapper),k=[],A=u([]),j=f(()=>typeof o.transformUrl==`function`?ht(r(),o.transformUrl(O.pathname)):ht(r(),O.pathname)),M=()=>{let e=j(),t={};for(let n=0;n<e.length;n++)Object.assign(t,e[n].params);return t},te=p.paramsWrapper?p.paramsWrapper(M,r):$e(M),N={pattern:y,path:()=>y,outlet:()=>null,resolvePath(e){return Ke(y,e)}};return D(l(s,e=>C(`native`,e),{defer:!0})),{base:N,location:O,params:te,isRouting:b,get pendingTarget(){return S},renderPath:h,parsePath:m,navigatorFactory:P,matches:j,beforeLeave:g,preloadRoute:ie,singleFlight:o.singleFlight===void 0||o.singleFlight,submissions:A};function ne(e,t,n){a(()=>{if(typeof t==`number`){t&&(p.go?p.go(t):console.warn(`Router integration does not support relative routing`));return}let r=!t||t[0]===`?`,{replace:i,resolve:a,scroll:o,state:s}={replace:!1,resolve:!r,scroll:!0,...n},c=a?e.resolvePath(t):Ke(r&&O.pathname||``,t);if(c===void 0)throw Error(`Path '${t}' is not a routable path`);if(k.length>=nt)throw Error(`Too many redirects`);let l=w();(c!==l||s!==E())&&g.confirm(c,n)&&(k.push({value:l,replace:i,scroll:o,state:E()}),C(`navigate`,{value:c,state:s}))})}function P(e){return e=e||c(it)||N,(t,n)=>ne(e,t,n)}function re(e){let t=k[0];t&&(d({...e,replace:t.replace,scroll:t.scroll}),k.length=0)}function ie(e,t){let n=ht(r(),e.pathname),a=I;I=`preload`;for(let r in n){let{route:a,params:o}=n[r];a.component&&a.component.preload&&a.component.preload();let{preload:s}=a;t&&s&&_(i(),()=>s({params:o,location:{pathname:e.pathname,search:e.search,hash:e.hash,query:Ye(e),state:null,key:``},intent:`preload`}))}I=a}}function yt(e,t,n,r){let{base:i,location:a,params:o}=e,{pattern:s,component:c,preload:l}=r().route,u=f(()=>r().path);c&&c.preload&&c.preload();let d=l?l({params:o,location:a,intent:I||`initial`}):void 0;return{parent:t,pattern:s,path:u,outlet:()=>c?h(c,{params:o,location:a,data:d,get children(){return n()}}):n(),resolvePath(e){return Ke(i.path(),e,u())}}}var bt=e=>t=>{let{base:n}=t,r=re(()=>t.children),i=f(()=>mt(r(),t.base||``)),a,o=vt(e,i,()=>a,{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(o),h(rt.Provider,{value:o,get children(){return h(xt,{routerState:o,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[N(()=>(a=p())&&null),h(St,{routerState:o,get branches(){return i()}})]}})}})};function xt(e){let t=e.routerState.location,n=e.routerState.params,r=f(()=>e.preload&&a(()=>{e.preload({params:n,location:t,intent:_t()||`initial`})}));return h(x,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:i=>h(i,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function St(e){let t=[],n;m(()=>t.forEach(e=>e()));let r=f(l(e.routerState.matches,(i,a,o)=>{let s=a&&i.length===a.length,c=[];for(let n=0,l=i.length;n<l;n++){let l=a&&a[n],u=i[n];o&&l&&u.route.key===l.route.key?c[n]=o[n]:(s=!1,t[n]&&t[n](),ee(i=>{t[n]=i,c[n]=yt(e.routerState,c[n-1]||e.routerState.base,Ct(()=>r()[n+1]),()=>{let t=e.routerState.matches();return t[n]??t[0]})}))}return t.splice(i.length).forEach(e=>e()),o&&s?o:(n=c[0],c)}));return Ct(()=>r()&&n)()}var Ct=e=>()=>h(x,{get when(){return e()},keyed:!0,children:e=>h(it.Provider,{value:e,get children(){return e.outlet()}})}),L=e=>{let t=re(()=>e.children);return s(e,{get children(){return t()}})};function wt([e,t],n,r){return[n?()=>n(e()):e,r?e=>t(r(e)):t]}function Tt(e){let t=!1,n=e=>typeof e==`string`?{value:e}:e,r=wt(u(n(e.get()),{equals:(e,t)=>e.value===t.value&&e.state===t.state}),void 0,n=>(!t&&e.set(n),o.registry&&!o.done&&(o.done=!0),n));return e.init&&m(e.init((i=e.get())=>{t=!0,r[1](n(i)),t=!1})),bt({signal:r,create:e.create,utils:e.utils})}function Et(e,t,n){return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}function Dt(e,t){let n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}var Ot=new Map;function kt({preload:e=!0,explicitLinks:t=!1,actionBase:n=`/_server`,transformUrl:r}={}){return i=>{let a=i.base.path(),o=i.navigatorFactory(i.base),s,c;function l(e){return e.namespaceURI===`http://www.w3.org/2000/svg`}function u(e){if(e.defaultPrevented||e.button!==0||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;let n=e.composedPath().find(e=>e instanceof Node&&e.nodeName.toUpperCase()===`A`);if(!n||t&&!n.hasAttribute(`link`))return;let r=l(n),i=r?n.href.baseVal:n.href;if((r?n.target.baseVal:n.target)||!i&&!n.hasAttribute(`state`))return;let o=(n.getAttribute(`rel`)||``).split(/\s+/);if(n.hasAttribute(`download`)||o&&o.includes(`external`))return;let s=r?new URL(i,document.baseURI):new URL(i);if(!(s.origin!==window.location.origin||a&&s.pathname&&!s.pathname.toLowerCase().startsWith(a.toLowerCase())))return[n,s]}function d(e){let t=u(e);if(!t)return;let[n,r]=t,a=i.parsePath(r.pathname+r.search+r.hash),s=n.getAttribute(`state`);e.preventDefault(),o(a,{resolve:!1,replace:n.hasAttribute(`replace`),scroll:!n.hasAttribute(`noscroll`),state:s?JSON.parse(s):void 0})}function f(e){let t=u(e);if(!t)return;let[n,a]=t;r&&(a.pathname=r(a.pathname)),i.preloadRoute(a,n.getAttribute(`preload`)!==`false`)}function p(e){clearTimeout(s);let t=u(e);if(!t)return c=null;let[n,a]=t;c!==n&&(r&&(a.pathname=r(a.pathname)),s=setTimeout(()=>{i.preloadRoute(a,n.getAttribute(`preload`)!==`false`),c=n},20))}function h(e){if(e.defaultPrevented)return;let t=e.submitter&&e.submitter.hasAttribute(`formaction`)?e.submitter.getAttribute(`formaction`):e.target.getAttribute(`action`);if(!t)return;if(!t.startsWith(`https://action/`)){let e=new URL(t,We);if(t=i.parsePath(e.pathname+e.search),!t.startsWith(n))return}if(e.target.method.toUpperCase()!==`POST`)throw Error(`Only POST forms are supported for Actions`);let r=Ot.get(t);if(r){e.preventDefault();let t=new FormData(e.target,e.submitter);r.call({r:i,f:e.target},e.target.enctype===`multipart/form-data`?t:new URLSearchParams(t))}}b([`click`,`submit`]),document.addEventListener(`click`,d),e&&(document.addEventListener(`mousemove`,p,{passive:!0}),document.addEventListener(`focusin`,f,{passive:!0}),document.addEventListener(`touchstart`,f,{passive:!0})),document.addEventListener(`submit`,h),m(()=>{document.removeEventListener(`click`,d),e&&(document.removeEventListener(`mousemove`,p),document.removeEventListener(`focusin`,f),document.removeEventListener(`touchstart`,f)),document.removeEventListener(`submit`,h)})}}var At=`solid-router:scroll`;function jt(){window.history.scrollRestoration=`manual`,ze();let e={};try{e=JSON.parse(sessionStorage.getItem(At))||{}}catch{}let t=()=>window.history.state&&window.history.state._depth,r=!1,i,a=[Et(window,`scroll`,()=>{let n=t();n!=null&&(e[n]=window.scrollY),r||(i=void 0)}),Et(window,`pagehide`,()=>{try{sessionStorage.setItem(At,JSON.stringify(e))}catch{}})],o=()=>{if(i==null)return;let t=e[i];i=void 0,t!=null&&(r=!0,window.scrollTo(0,t),r=!1)};return{onPop(){i=t()},onPush(){let n=t();if(n!=null)for(let t in e)+t>=n&&delete e[t]},create(e){n(l(e.isRouting,e=>e||o(),{defer:!0})),m(()=>a.forEach(e=>e()));let[r]=performance.getEntriesByType&&performance.getEntriesByType(`navigation`);r&&r.type!==`navigate`&&(i=t(),o())}}}function Mt(e){let t=e.scrollRestoration?jt():void 0,n=()=>{let e=window.location.pathname+window.location.search,t=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:e+window.location.hash,state:t}},r=Le();return Tt({get:n,set({value:e,replace:n,scroll:r,state:i}){n?window.history.replaceState(Be(i),``,e):window.history.pushState(i,``,e),Dt(decodeURIComponent(window.location.hash.slice(1)),r),ze(),t&&!n&&t.onPush()},init:e=>{let i=Ve(e,e=>{if(e)return!r.confirm(e);{let e=n();return!r.confirm(e.value,{state:e.state})}});return Et(window,`popstate`,t?()=>{t.onPop(),i()}:i)},create:n=>{kt({preload:e.preload,explicitLinks:e.explicitLinks,actionBase:e.actionBase,transformUrl:e.transformUrl})(n),t&&t.create(n)},utils:{go:e=>window.history.go(e),beforeLeave:r}})(e)}function Nt(e){let t=ot(),n=F(),{href:r,state:i}=e;return t(typeof r==`function`?r({navigate:t,location:n}):r,{replace:!0,state:i}),null}function Pt(e){let t=new Map,n=new Set,r=null,i=0,a=0,o=!0,s=new Set,c=()=>{i++,n.forEach(e=>e())},l=e=>{e.preload&&clearTimeout(e.preload.timer),delete e.preload},u=()=>{let e=[...t.values()];t.clear(),e.forEach(e=>e.revoke()),s.forEach(e=>e()),s.clear(),c()},d=()=>{let n=[...t.values()].reduce((e,t)=>e+t.bytes,0);for(let[r,i]of[...t].sort((e,t)=>e[1].touched-t[1].touched)){if(t.size<=(e?.maxEntries??30)&&n<=(e?.maxBytes??8388608))break;i.listeners.size||(t.delete(r),n-=i.bytes,i.revoke())}};return{cancelPreloads(e){for(let n of t.values())n.preload?.navigationId===e&&n.resource.cancel()},preload(e,n,i){for(let e of t.values())e.preload&&e.preload.navigationId!==n&&e.resource.cancel();let a=this.resource(e),o=t.get(e);if(o.preload?.navigationId===n)return o.preload.work;let s=a.load(i);if(t.get(e)!==o)return s;let c={navigationId:n,scope:r,work:s,timer:setTimeout(()=>{o.preload===c&&o.resource.cancel()},3e4)};return o.preload=c,s.then(()=>{o.preload===c&&a.snapshot().error&&l(o)})},adoptPreload(e,n){let i=t.get(e),a=i?.preload;return!i||!a||a.navigationId!==n||a.scope!==r||r===null||i.expired||i.resource.snapshot().error?!1:(l(i),!0)},clear:u,expire(){for(let[e,n]of t)l(n),n.listeners.size?n.expired=!0:(t.delete(e),n.revoke());c()},setScope(e){if(r!==e){if(r=e,o&&e!==null){o=!1;for(let n of t.values())n.preload?.scope===null&&(n.preload.scope=e)}else u();s.forEach(e=>e()),s.clear()}},subscribe(e){return n.add(e),()=>{n.delete(e)}},revision:()=>i,resource(e){let n=t.get(e);if(n)return n.touched=++a,n.resource;let i={data:null,pending:!1,error:null},o=0,c=!1,u=null,f=null,p=new Set,m=e=>{i=e,_.bytes=e.data===null?0:JSON.stringify(e.data).length*2,_.touched=++a,p.forEach(e=>e()),d()},h=()=>{l(_),o++,u?.abort(),f=null,i={data:null,pending:!1,error:null},_.bytes=0,p.forEach(e=>e())},g={snapshot:()=>i,subscribe(n){return p.add(n),()=>{p.delete(n),!p.size&&f&&(l(_),o++,u?.abort(),f=null,i={...i,pending:!1}),!p.size&&_.expired&&(t.get(e)===_&&t.delete(e),_.revoke()),d()}},seed(e){c||(l(_),o++,u?.abort(),f=null,m({data:e,pending:!1,error:null}))},invalidate:h,cancel(){l(_),o++,u?.abort(),f=null,m({...i,pending:!1})},load(e,t){if(c)return Promise.resolve();if(f&&!t?.force)return f;l(_),u?.abort(),u=new AbortController;let n=u.signal,a=++o;m({...i,pending:!0,error:null});let d;try{d=e(n)}catch(e){d=Promise.reject(e)}return f=d.then(async e=>{r===null&&!c&&await new Promise(e=>{let t=()=>{s.delete(t),n.removeEventListener(`abort`,t),e()};s.add(t),n.addEventListener(`abort`,t,{once:!0}),n.aborted&&t()}),!c&&o===a&&m({data:e,pending:!1,error:null})},e=>{if(c||o!==a)return;let t=typeof e==`object`&&e&&`status`in e?e.status:null;m({data:t===401||t===403||t===404?null:i.data,pending:!1,error:e instanceof Error?e:Error(`Page unavailable`)})}).finally(()=>{o===a&&(f=null)}),f}},_={resource:g,listeners:p,bytes:0,touched:++a,expired:!1,revoke(){c=!0,h()}};return t.set(e,_),g}}}var Ft=`mx:page-data-changed`,It=()=>window.dispatchEvent(new Event(Ft)),Lt=`mx:refresh`,Rt=`mx:profile-changed`,zt=()=>window.dispatchEvent(new Event(Rt)),Bt=r({session:()=>null,reload:()=>{},pages:null,sessionError:()=>null});function Vt(e,t){window.addEventListener(e,t),m(()=>window.removeEventListener(e,t))}function Ht(e){let[t,r]=u(null),[i,a]=u(null),[o,s]=u(0),c=Pt();return n(l(o,()=>{let e=!0;fetch(`/api/page/session`,{credentials:`same-origin`}).then(e=>{if(!e.ok)throw Error(`session unavailable`);return e.json()}).then(t=>{e&&(c.setScope(t.user?.id??t.kind),a(null),r(t))}).catch(()=>{e&&(c.setScope(null),c.clear(),a(Error(`Could not load session`)),r(null))}),m(()=>{e=!1})})),m(()=>c.clear()),Vt(Lt,()=>{c.expire(),s(e=>e+1)}),Vt(Ft,()=>c.expire()),Vt(Rt,()=>{c.expire(),s(e=>e+1)}),h(Bt.Provider,{value:{session:t,reload:()=>{c.setScope(null),c.clear(),r(null),a(null),s(e=>e+1)},pages:c,sessionError:i},get children(){return e.children}})}var R=()=>c(Bt);async function Ut(e,t){let n=await fetch(e,{credentials:`same-origin`,signal:t});if(!n.ok)throw Object.assign(Error(`Could not load page`),{status:n.status});return n.json()}var Wt=[[/^\/$/,()=>`/api/page/home?part=core`],[/^\/(@[^/]+)\/?$/,e=>`/api/page/profile/${encodeURIComponent(e[1]??``)}`]];function Gt(e,t=location.origin){let n;try{n=new URL(e,t)}catch{return null}if(n.origin!==t)return null;for(let[e,t]of Wt){let r=e.exec(n.pathname);if(r)return t(r)}return null}function Kt(){let{pages:e}=R();if(!e)return;let t=t=>{let n=t.target instanceof Element?t.target.closest(`a[href]`):null;if(!n||n.target===`_blank`||n.hasAttribute(`download`)||t.type===`pointerover`&&t.pointerType!==`mouse`)return;let r=Gt(n.href);r&&e.preload(r,r,e=>Ut(r,e)).catch(()=>{})},n=[`pointerover`,`focusin`,`pointerdown`];for(let e of n)document.addEventListener(e,t,!0);m(()=>{for(let e of n)document.removeEventListener(e,t,!0)})}function qt(e,t){let r=R(),i=r.pages??null,o=r.session,s=r.sessionError??(()=>null),c=i??(()=>{let e=Pt();return e.setScope(`isolated`),e})(),d=typeof e==`function`?e:()=>e,[p,h]=u(c.revision());m(c.subscribe(()=>h(c.revision())));let g=f(()=>(p(),c.resource(d()))),_=null;(e=>{let n=t?.seed?.()??null;n!==null&&(_=e,a(g).seed(n))})(a(d));let[v,y]=u(a(g).snapshot());n(()=>{let e=g();y(e.snapshot()),m(e.subscribe(()=>y(e.snapshot())))});let b=(e=!1)=>{let n=a(d);return a(g).load(e=>t?.loader?t.loader(e):Ut(n,e),{force:e})},x=()=>t?.enabled?.()??!0;n(l([g,s,x],([,e,t])=>{if(!(!t||e)){if(_===a(d)){_=null;return}i?.adoptPreload(a(d),a(d))||b()}}));let S=()=>{x()&&b(!0)};window.addEventListener(Lt,S),m(()=>window.removeEventListener(Lt,S));let C=f(()=>i&&!o()&&s()?{data:null,pending:!1,error:s()}:v());return{data:()=>C().data,pending:()=>C().pending,error:()=>C().error,refresh:b,seed:e=>a(g).seed(e),invalidate:()=>a(g).invalidate()}}var Jt={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Yt=r({size:24,color:`currentColor`,strokeWidth:2,absoluteStrokeWidth:!1,class:``}),Xt=M(`<svg>`),Zt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Qt=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),$t=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),en=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),tn=e=>{let t=$t(e);return t.charAt(0).toUpperCase()+t.slice(1)},z=e=>{let[t,n]=g(e,[`color`,`size`,`strokeWidth`,`children`,`class`,`name`,`iconNode`,`absoluteStrokeWidth`]),r=c(Yt);return(()=>{var e=Xt();return C(e,s(Jt,{get width(){return t.size??r.size??Jt.width},get height(){return t.size??r.size??Jt.height},get stroke(){return t.color??r.color??Jt.stroke},get"stroke-width"(){return N(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Jt[`stroke-width`])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Jt[`stroke-width`])},get class(){return Qt(`lucide`,`lucide-icon`,r.class,...t.name==null?[]:[`lucide-${en(tn(t.name))}`,`lucide-${en(t.name)}`],t.class)},get"aria-hidden"(){return!t.children&&!Zt(n)?`true`:void 0}},n),!0,!0),j(e,h(y,{get each(){return t.iconNode},children:([e,t])=>h(ne,s({component:e},t))})),e})()},nn=[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]],rn=e=>h(z,s(e,{iconNode:nn,name:`calendar-clock`})),an=[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]],on=e=>h(z,s(e,{iconNode:an,name:`bell`})),sn=[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]],cn=e=>h(z,s(e,{iconNode:sn,name:`book-open`})),ln=[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]],un=e=>h(z,s(e,{iconNode:ln,name:`check`})),dn=[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]],fn=e=>h(z,s(e,{iconNode:dn,name:`chevron-right`})),pn=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}],[`path`,{d:`M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662`,key:`154egf`}]],mn=e=>h(z,s(e,{iconNode:pn,name:`circle-user`})),hn=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]],gn=e=>h(z,s(e,{iconNode:hn,name:`file-text`})),_n=[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]],vn=e=>h(z,s(e,{iconNode:_n,name:`log-in`})),yn=[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]],bn=e=>h(z,s(e,{iconNode:yn,name:`log-out`})),xn=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]],Sn=e=>h(z,s(e,{iconNode:xn,name:`moon`})),Cn=[[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M12 21v-9`,key:`17s77i`}],[`path`,{d:`M12 8V3`,key:`13r4qs`}],[`path`,{d:`M17 16h4`,key:`h1uq16`}],[`path`,{d:`M19 12V3`,key:`o1uvq1`}],[`path`,{d:`M19 21v-5`,key:`qua636`}],[`path`,{d:`M3 14h4`,key:`bcjad9`}],[`path`,{d:`M5 10V3`,key:`cb8scm`}],[`path`,{d:`M5 21v-7`,key:`1w1uti`}]],wn=e=>h(z,s(e,{iconNode:Cn,name:`sliders-vertical`})),Tn=[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]],En=e=>h(z,s(e,{iconNode:Tn,name:`sun`})),Dn=[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]],On=e=>h(z,s(e,{iconNode:Dn,name:`user`})),kn=[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]],An=e=>h(z,s(e,{iconNode:kn,name:`x`})),jn=`0 0 98 96`,Mn=`M41.4395 69.3848C28.8066 67.8535 19.9062 58.7617 19.9062 46.9902C19.9062 42.2051 21.6289 37.0371 24.5 33.5918C23.2559 30.4336 23.4473 23.7344 24.8828 20.959C28.7109 20.4805 33.8789 22.4902 36.9414 25.2656C40.5781 24.1172 44.4062 23.543 49.0957 23.543C53.7852 23.543 57.6133 24.1172 61.0586 25.1699C64.0254 22.4902 69.2891 20.4805 73.1172 20.959C74.457 23.543 74.6484 30.2422 73.4043 33.4961C76.4668 37.1328 78.0937 42.0137 78.0937 46.9902C78.0937 58.7617 69.1934 67.6621 56.3691 69.2891C59.623 71.3945 61.8242 75.9883 61.8242 81.252L61.8242 91.2051C61.8242 94.0762 64.2168 95.7031 67.0879 94.5547C84.4102 87.9512 98 70.6289 98 49.1914C98 22.1074 75.9883 6.69539e-07 48.9043 4.309e-07C21.8203 1.92261e-07 -1.9479e-07 22.1074 -4.3343e-07 49.1914C-6.20631e-07 70.4375 13.4941 88.0469 31.6777 94.6504C34.2617 95.6074 36.75 93.8848 36.75 91.3008L36.75 83.6445C35.4102 84.2188 33.6875 84.6016 32.1562 84.6016C25.8398 84.6016 22.1074 81.1563 19.4277 74.7441C18.375 72.1602 17.2266 70.6289 15.0254 70.3418C13.877 70.2461 13.4941 69.7676 13.4941 69.1934C13.4941 68.0449 15.4082 67.1836 17.3223 67.1836C20.0977 67.1836 22.4902 68.9063 24.9785 72.4473C26.8926 75.2227 28.9023 76.4668 31.2949 76.4668C33.6875 76.4668 35.2187 75.6055 37.4199 73.4043C39.0469 71.7773 40.291 70.3418 41.4395 69.3848Z`,Nn=M(`<svg><path clip-rule=evenodd d="M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z">`),Pn=M(`<svg><path d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z">`),Fn=M(`<svg><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z">`),In=M(`<svg><path d="M9.064 3.344a4.578 4.578 0 012.285-.312c1 .115 1.891.54 2.673 1.275.01.01.024.017.037.021a.09.09 0 00.043 0 4.55 4.55 0 013.046.275l.047.022.116.057a4.581 4.581 0 012.188 2.399c.209.51.313 1.041.315 1.595a4.24 4.24 0 01-.134 1.223.123.123 0 00.03.115c.594.607.988 1.33 1.183 2.17.289 1.425-.007 2.71-.887 3.854l-.136.166a4.548 4.548 0 01-2.201 1.388.123.123 0 00-.081.076c-.191.551-.383 1.023-.74 1.494-.9 1.187-2.222 1.846-3.711 1.838-1.187-.006-2.239-.44-3.157-1.302a.107.107 0 00-.105-.024c-.388.125-.78.143-1.204.138a4.441 4.441 0 01-1.945-.466 4.544 4.544 0 01-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81 5.81 0 01-.37-.961 4.582 4.582 0 01-.014-2.298.124.124 0 00.006-.056.085.085 0 00-.027-.048 4.467 4.467 0 01-1.034-1.651 3.896 3.896 0 01-.251-1.192 5.189 5.189 0 01.141-1.6c.337-1.112.982-1.985 1.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098 0 00.065-.066 4.51 4.51 0 01.829-1.615 4.535 4.535 0 011.837-1.388zm3.482 10.565a.637.637 0 000 1.272h3.636a.637.637 0 100-1.272h-3.636zM8.462 9.23a.637.637 0 00-1.106.631l1.272 2.224-1.266 2.136a.636.636 0 101.095.649l1.454-2.455a.636.636 0 00.005-.64L8.462 9.23z"fill=url(#mx-codex-grad)></path><defs><linearGradient gradientUnits=userSpaceOnUse id=mx-codex-grad x1=12 x2=12 y1=3 y2=21><stop stop-color=#B1A7FF></stop><stop offset=.5 stop-color=#7A9DFF></stop><stop offset=1 stop-color=#3941FF>`),Ln=M(`<svg><path fill-rule=evenodd d="M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z"></path><path d="M517.36 400H634.72V634.72H517.36Z">`),Rn=M(`<svg><path d="M210 240H90V120H210V240Z"fill=currentColor opacity=.2></path><path d="M210 60H90V240H210V60ZM270 300H30V0H270V300Z"fill=currentColor>`),zn=M(`<svg><path>`),B=({size:e=16,className:t})=>({viewBox:`0 0 24 24`,width:e,height:e,"aria-hidden":!0,class:t});function Bn(e){return(()=>{var t=Nn();return C(t,s(()=>B(e),{fill:`#D97757`,"fill-rule":`evenodd`}),!0,!0),t})()}function Vn(e){return(()=>{var t=Pn();return C(t,s(()=>B(e),{fill:`#D97757`,"fill-rule":`nonzero`}),!0,!0),t})()}function Hn(e){return(()=>{var t=Fn();return C(t,s(()=>B(e),{fill:`currentColor`,"fill-rule":`evenodd`}),!0,!0),t})()}function Un(e){return(()=>{var t=In();return C(t,s(()=>B(e)),!0,!0),t})()}function Wn(e){return(()=>{var t=Ln();return C(t,s(()=>B(e),{viewBox:`150 150 500 500`,fill:`currentColor`}),!0,!0),t})()}function Gn(e){return(()=>{var t=Rn();return C(t,s(()=>B(e),{viewBox:`0 0 300 300`,fill:`none`}),!0,!0),t})()}function Kn(e){return(()=>{var t=zn(),n=t.firstChild;return C(t,s(()=>B(e),{viewBox:jn,preserveAspectRatio:`xMidYMid meet`,fill:`currentColor`}),!0,!0),O(n,`d`,Mn),t})()}var qn=`data-trusted-layer`;function Jn(e=typeof document>`u`?void 0:document){return e?Yn(e.querySelectorAll(`[data-trusted-ui][data-trusted-layer="navigation"]`))??Yn(e.querySelectorAll(`[data-trusted-ui]`)):null}function Yn(e){for(let t of e){let e=[...t.shadowRoot?.children??[]].find(e=>e.hasAttribute(`data-trusted-ui-root`)),n=e?.children.length===2?e.children[1]:null;if(n instanceof HTMLElement)return n}return null}var Xn={"/notifications":`notifications`,"/account":`account`,"/tokens":`tokens`,"/login":`log in`,"/trash":`trash`},Zn=/^\/(@[a-z0-9_]+)(\/.*)?$/;function Qn(e,t){let n=e.replace(/\/+$/,``)||`/`,r=t?.trim()||null,i=Zn.exec(n);if(i){let[,e,t]=i;if(!t)return[{label:e}];let n=t.split(`/`).filter(Boolean).at(-1)??``;return[{label:e,href:`/${e}`},{label:r??n}]}if(n.startsWith(`/a/`))return[{label:r??`artifact`}];if(n===`/docs-human`)return[{label:`docs`}];let a=Xn[n]??r;return a?[{label:a}]:[]}var $n={logoSize:28,fontSize:13,fontWeight:500},er=`https://github.com/minusxai/artifactbin`,tr=`/api/external/github`;function nr(e=!0){return`<a href="${er}" target="_blank" rel="noopener noreferrer" aria-label="Star artifactbin on GitHub" style="display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:28px;overflow:hidden;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:5px;background:var(--mx-reader-bg,var(--color-surface,#fff));color:inherit;text-decoration:none;font:600 12px system-ui;letter-spacing:normal;white-space:nowrap"><span style="display:inline-flex;align-items:center;gap:4px;height:100%;padding:0 8px;background:linear-gradient(transparent,color-mix(in srgb,currentColor 7%,transparent))"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" fill="light-dark(#eac54f, #e3b341)" aria-hidden="true"><path d="m12 2.5 2.94 5.96 6.58.96-4.76 4.64 1.12 6.55L12 17.52l-5.88 3.09 1.12-6.55L2.48 9.42l6.58-.96Z"></path></svg><span>Star</span></span>${e?`<span data-mx-github-count hidden style="align-self:stretch;align-content:center;padding:0 8px;border-left:1px solid color-mix(in srgb,currentColor 25%,transparent);font-variant-numeric:tabular-nums"></span>`:``}</a>`}var rr,ir;function ar(){if(rr&&rr.expires>Date.now())return Promise.resolve(rr.stars);if(ir)return ir;let e=6e4;return ir=fetch(tr,{credentials:`omit`,cache:`no-store`}).then(async t=>{if(!t.ok)return null;let n=/(?:^|,)\s*max-age=(\d+)/.exec(t.headers.get(`cache-control`)??``);n&&(e=Math.min(6e4,Number(n[1])*1e3));let r=await t.json();return Number.isSafeInteger(r.stars)&&r.stars>=0?r.stars:null}).catch(()=>null).then(t=>(rr={stars:t,expires:Date.now()+e},t)).finally(()=>{ir=void 0}),ir}function or(e){let t=e.querySelectorAll(`[data-mx-github-count]`),n=!1;return t.length&&ar().then(e=>{if(!n)for(let n of t)n.hidden=e===null,n.textContent=e===null?``:e.toLocaleString(`en-US`)}),()=>{n=!0}}async function sr(e=document){let t=e.querySelector(`meta[name="mx-pages-session"]`)?.getAttribute(`content`);if(t)try{await fetch(t,{method:`DELETE`,credentials:`include`,mode:`cors`})}catch{}}async function cr(){await Promise.all([sr(),fetch(`/api/session/token`,{method:`DELETE`}).catch(()=>{})])}var lr=[`fork`,`comment`,`like`,`follow`,`join`],ur=`intent`;function dr(e){try{return decodeURIComponent(e.replace(/\+/g,` `))}catch{return null}}function fr(e){return(e.startsWith(`?`)?e.slice(1):e).split(`&`).filter(Boolean).map(e=>{let t=e.indexOf(`=`),[n,r]=t===-1?[e,``]:[e.slice(0,t),e.slice(t+1)];return{raw:e,key:dr(n),value:dr(r)}})}var pr=e=>e.length?`?${e.join(`&`)}`:``;function mr(e){let t=fr(e).find(e=>e.key===ur)?.value??null;return lr.includes(t??``)?t:null}function hr(e,t){return pr([...fr(e).filter(e=>e.key!==ur).map(e=>e.raw),`${ur}=${t}`])}function gr(e,t){if(!t&&(e.pathname===`/`||e.pathname===`/login`))return`/login`;let n=t?hr(e.search,t):e.search;return`/login?callbackUrl=${encodeURIComponent(e.pathname+n+e.hash)}`}var V=Math.min,H=Math.max,_r=Math.round,vr=Math.floor,U=e=>({x:e,y:e}),yr={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function br(e,t,n){return H(e,V(t,n))}function W(e,t){return typeof e==`function`?e(t):e}function G(e){return e.split(`-`)[0]}function xr(e){return e.split(`-`)[1]}function Sr(e){return e===`x`?`y`:`x`}function Cr(e){return e===`y`?`height`:`width`}function K(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function wr(e){return Sr(K(e))}function Tr(e,t,n){n===void 0&&(n=!1);let r=xr(e),i=wr(e),a=Cr(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Pr(o)),[o,Pr(o)]}function Er(e){let t=Pr(e);return[Dr(e),t,Dr(t)]}function Dr(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Or=[`left`,`right`],kr=[`right`,`left`],Ar=[`top`,`bottom`],jr=[`bottom`,`top`];function Mr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?kr:Or:t?Or:kr;case`left`:case`right`:return t?Ar:jr;default:return[]}}function Nr(e,t,n,r){let i=xr(e),a=Mr(G(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Dr)))),a}function Pr(e){let t=G(e);return yr[t]+e.slice(t.length)}function Fr(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ir(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Fr(e)}function Lr(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Rr(e,t,n){let{reference:r,floating:i}=e,a=K(t),o=wr(t),s=Cr(o),c=G(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=xr(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function zr(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=W(t,e),p=Ir(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Lr(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Lr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Br=50,Vr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:zr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Rr(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Br&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Rr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Hr=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=W(e,t)||{};if(l==null)return{};let d=Ir(u),f={x:n,y:r},p=wr(i),m=Cr(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=V(d[_],T),ee=V(d[v],T),D=C-h[m]-ee,O=C/2-h[m]/2+w,k=br(E,O,D),A=!c.arrow&&xr(i)!=null&&O!==k&&a.reference[m]/2-(O<E?E:ee)-h[m]/2<0,j=A?O<E?O-E:O-D:0;return{[p]:f[p]+j,data:{[p]:k,centerOffset:O-k-j,...A&&{alignmentOffset:j}},reset:A}}}),Ur=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=W(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=G(r),_=K(o),v=G(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Pr(o)]:Er(o)),x=p!==`none`;!d&&x&&b.push(...Nr(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Tr(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===K(t)||T.every(e=>K(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=K(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Wr=new Set([`left`,`top`]);async function Gr(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=G(n),s=xr(n),c=K(n)===`y`,l=Wr.has(o)?-1:1,u=a&&c?-1:1,d=W(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Kr=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Gr(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},qr=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=W(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=K(i),p=Sr(f),m=u[p],h=u[f],g=(e,t)=>br(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Jr=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=W(e,t),u={x:n,y:r},d=K(i),f=Sr(d),p=u[f],m=u[d],h=W(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Wr.has(G(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Yr=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=W(e,t),c=await i.detectOverflow(t,s),l=G(n),u=xr(n),d=K(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=V(p-c[m],g),y=V(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*H(c.left,c.right):S=p-2*H(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Xr(){return typeof window<`u`}function Zr(e){return Qr(e)?(e.nodeName||``).toLowerCase():`#document`}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function J(e){return((Qr(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Qr(e){return Xr()?e instanceof Node||e instanceof q(e).Node:!1}function Y(e){return Xr()?e instanceof Element||e instanceof q(e).Element:!1}function X(e){return Xr()?e instanceof HTMLElement||e instanceof q(e).HTMLElement:!1}function $r(e){return!Xr()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function ei(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ti(e){return/^(table|td|th)$/.test(Zr(e))}function ni(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ri=/transform|translate|scale|rotate|perspective|filter/,ii=/paint|layout|strict|content/,Z=e=>!!e&&e!==`none`,ai;function oi(e){let t=Y(e)?Q(e):e;return Z(t.transform)||Z(t.translate)||Z(t.scale)||Z(t.rotate)||Z(t.perspective)||!ci()&&(Z(t.backdropFilter)||Z(t.filter))||ri.test(t.willChange||``)||ii.test(t.contain||``)}function si(e){let t=di(e);for(;X(t)&&!li(t);){if(oi(t))return t;if(ni(t))return null;t=di(t)}return null}function ci(){return ai??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ai}function li(e){return/^(html|body|#document)$/.test(Zr(e))}function Q(e){return q(e).getComputedStyle(e)}function ui(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function di(e){if(Zr(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||$r(e)&&e.host||J(e);return $r(t)?t.host:t}function fi(e){let t=di(e);return li(t)?(e.ownerDocument||e).body:X(t)&&ei(t)?t:fi(t)}function pi(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=fi(e),i=r===e.ownerDocument?.body,a=q(r);if(i){let e=mi(a);return t.concat(a,a.visualViewport||[],ei(r)?r:[],e&&n?pi(e):[])}return t.concat(r,pi(r,[],n))}function mi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hi(e){let t=Q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=X(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=_r(n)!==a||_r(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function gi(e){return Y(e)?e:e.contextElement}function _i(e){let t=gi(e);if(!X(t))return U(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=hi(t),o=(a?_r(n.width):n.width)/r,s=(a?_r(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var vi=U(0);function yi(e){let t=q(e);return!ci()||!t.visualViewport?vi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bi(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===q(e)}function xi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=gi(e),o=U(1);t&&(r?Y(r)&&(o=_i(r)):o=_i(e));let s=bi(a,n,r)?yi(a):U(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=q(a),t=Y(r)?q(r):r,n=e,i=mi(n);for(;i&&t!==n;){let e=_i(i),t=i.getBoundingClientRect(),r=Q(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=q(i),i=mi(n)}}return Lr({width:u,height:d,x:c,y:l})}function Si(e,t){let n=ui(e).scrollLeft;return t?t.left+n:xi(J(e)).left+n}function Ci(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Si(e,n),y:n.top+t.scrollTop}}function wi(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=J(r),s=t?ni(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=U(1),u=U(0),d=X(r);if((d||!a)&&((Zr(r)!==`body`||ei(o))&&(c=ui(r)),d)){let e=xi(r);l=_i(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ci(o,c):U(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ti(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ei(e){let t=ui(e),n=e.ownerDocument.body,r=H(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=H(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Si(e),o=-t.scrollTop;return Q(n).direction===`rtl`&&(a+=H(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Di=25;function Oi(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=q(e),a=J(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ci()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Si(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Di&&(s-=o)}return{width:s,height:c,x:l,y:u}}function ki(e,t){let n=xi(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=_i(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ai(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Oi(e,n,t);else if(t===`document`)r=Ei(J(e));else if(Y(t))r=ki(t,n);else{let n=yi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Lr(r)}function ji(e,t){let n=t.get(e);if(n)return n;let r=pi(e,[],!1).filter(e=>Y(e)&&Zr(e)!==`body`),i=null,a=Q(e).position===`fixed`,o=a?di(e):e;for(;Y(o)&&!li(o);){let e=Q(o),t=oi(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=di(o)}return t.set(e,r),r}function Mi(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ni(t)?[]:ji(t,this._c):[].concat(n),r],o=Ai(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ai(t,a[e],i);s=H(n.top,s),c=V(n.right,c),l=V(n.bottom,l),u=H(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ni(e){let{width:t,height:n}=hi(e);return{width:t,height:n}}function Pi(e,t,n){let r=X(t),i=J(t),a=n===`fixed`,o=xi(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=U(0);if((r||!a)&&((Zr(t)!==`body`||ei(i))&&(s=ui(t)),r)){let e=xi(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Si(i));let l=i&&!r&&!a?Ci(i,s):U(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Fi(e){return Q(e).position===`static`}function Ii(e,t){if(!X(e)||Q(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return J(e)===n&&(n=n.ownerDocument.body),n}function Li(e,t){let n=q(e);if(ni(e))return n;if(!X(e)){let t=di(e);for(;t&&!li(t);){if(Y(t)&&!Fi(t))return t;t=di(t)}return n}let r=Ii(e,t);for(;r&&ti(r)&&Fi(r);)r=Ii(r,t);return r&&li(r)&&Fi(r)&&!oi(r)?n:r||si(e)||n}var Ri=async function(e){let t=this.getOffsetParent||Li,n=this.getDimensions,r=await n(e.floating);return{reference:Pi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zi(e){return Q(e).direction===`rtl`}var Bi={convertOffsetParentRelativeRectToViewportRelativeRect:wi,getDocumentElement:J,getClippingRect:Mi,getOffsetParent:Li,getElementRects:Ri,getClientRects:Ti,getDimensions:Ni,getScale:_i,isElement:Y,isRTL:zi};function Vi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Hi(e,t,n){let r=null,i,a=J(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=vr(d),h=vr(a.clientWidth-(u+f)),g=vr(a.clientHeight-(d+p)),_=vr(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:H(0,V(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Vi(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=q(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Ui(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=gi(e),u=i||a?[...l?pi(l):[],...t?pi(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Hi(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?xi(e):null;c&&g();function g(){let t=xi(e);h&&!Vi(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Wi=Kr,Gi=qr,Ki=Ur,qi=Yr,Ji=Hr,Yi=Jr,Xi=(e,t,n)=>{let r=new Map,i=n??{},a={...Bi,...i.platform,_c:r};return Vr(e,t,{...i,platform:a})},Zi=e=>{let[t,n=`center`]=e.split(`-`);return[t,n]},Qi=(e,t)=>({name:`transformOrigin`,fn({placement:n,rects:r,middlewareData:i}){let a=i.arrow?.centerOffset!==0,o=a?0:e,s=a?0:t,[c,l]=Zi(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),$i=e=>{let t=window.devicePixelRatio||1;return Math.round(e*t)/t};function ea(e,t,n,r){let i=r.collisionPadding,a=[Wi({mainAxis:r.sideOffset+r.arrowHeight,alignmentAxis:0}),Gi({mainAxis:!0,crossAxis:!1,limiter:Yi(),padding:i}),Ki({padding:i}),qi({padding:i,apply({elements:e,rects:t,availableWidth:n,availableHeight:r}){let i=e.floating.style;i.setProperty(`--radix-popper-available-width`,`${n}px`),i.setProperty(`--radix-popper-available-height`,`${r}px`),i.setProperty(`--radix-popper-anchor-width`,`${t.reference.width}px`),i.setProperty(`--radix-popper-anchor-height`,`${t.reference.height}px`)}}),...n?[Ji({element:n,padding:0})]:[],Qi(r.arrowWidth,r.arrowHeight)],o=r.side+(r.align===`center`?``:`-${r.align}`);return Ui(e,t,()=>void Xi(e,t,{strategy:`fixed`,placement:o,middleware:a}).then(({x:e,y:n,placement:i,middlewareData:a})=>{t.style.transform=`translate(${$i(e)}px, ${$i(n)}px)`;let o=a.transformOrigin;t.style.setProperty(`--radix-popper-transform-origin`,[o?.x,o?.y].join(` `));let[s,c]=Zi(i);r.onPlaced({side:s,align:c,arrowX:a.arrow?.x,arrowY:a.arrow?.y,hideArrow:a.arrow?.centerOffset!==0})}),{elementResize:typeof ResizeObserver<`u`})}var ta=`mx:tooltip-open`,na={closedAt:0};function ra(e){let t=d(),[r,i]=u(!1),o=0,s=n=>{n!==a(e.open)&&(n?document.dispatchEvent(new CustomEvent(ta,{detail:t})):na.closedAt=Date.now(),e.setOpen(n))},c=()=>{clearTimeout(o),o=0,i(!1),s(!0)},l=()=>{clearTimeout(o),o=0,s(!1)};return m(()=>clearTimeout(o)),n(()=>{if(!e.open())return;let n=e=>{e.detail!==t&&l()},r=e=>{e.key===`Escape`&&l()};document.addEventListener(ta,n),document.addEventListener(`keydown`,r),m(()=>{document.removeEventListener(ta,n),document.removeEventListener(`keydown`,r)})}),{state:()=>e.open()?r()?`delayed-open`:`instant-open`:`closed`,enter:()=>{if(Date.now()-na.closedAt<100){c();return}clearTimeout(o),o=window.setTimeout(()=>{i(!0),s(!0),o=0},e.delay?.()??300)},openNow:c,close:l}}var ia={top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`},aa={top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`},oa=M(`<div data-mx-theme-host><div data-radix-popper-content-wrapper style="position:fixed;left:0px;top:0px;transform:translate(0, -200%);min-width:max-content;z-index:100"><div role=tooltip data-slot=tooltip-content data-story-floating class="pointer-events-none z-[100] w-max max-w-[min(28rem,calc(100vw-1rem))] whitespace-normal rounded-md border border-edge-bright bg-surface px-2.5 py-1.5 text-left text-xs leading-normal text-fg shadow-md"><span style=position:absolute><svg stroke=var(--color-edge-bright) stroke-width=1 stroke-linejoin=round class="z-[100] fill-surface"width=10 height=5 viewBox="0 0 30 10"preserveAspectRatio=none style=display:block><polygon points="0,0 30,0 15,10">`);function sa(e){let t=re(()=>e.children),[r,i]=u(!1),[a,o]=u(),s=d(),{state:c,enter:l,openNow:f,close:p}=ra({open:r,setOpen:i}),g=()=>t.toArray().find(e=>e instanceof HTMLElement);return n(()=>{let t=g();if(!t||e.disabled)return;let n=!1,r=!1,i=[[`pointermove`,e=>{e.pointerType!==`touch`&&!r&&(l(),r=!0)}],[`pointerleave`,()=>{p(),r=!1}],[`pointerdown`,()=>{p(),n=!0,document.addEventListener(`pointerup`,()=>{n=!1},{once:!0})}],[`focus`,()=>{n||f()}],[`blur`,p],[`click`,p]];for(let[e,n]of i)t.addEventListener(e,n);m(()=>{for(let[e,n]of i)t.removeEventListener(e,n)})}),n(()=>{let e=g();e&&(e.setAttribute(`data-state`,c()),r()?e.setAttribute(`aria-describedby`,s):e.removeAttribute(`aria-describedby`))}),[N(t),h(x,{get when(){return N(()=>!!r())()&&!e.disabled},get children(){return h(A,{get mount(){return Jn(document)??document.body},get children(){return h(ca,{get anchor(){return g()},id:s,get side(){return e.side??`top`},placed:a,setPlaced:o,get children(){return e.content}})}})}})]}function ca(e){let t,r;n(()=>{if(!e.anchor)return;let n=ea(e.anchor,t,r,{side:e.side,align:`center`,sideOffset:6,collisionPadding:8,arrowWidth:10,arrowHeight:5,onPlaced:e.setPlaced});m(()=>{n(),e.setPlaced(void 0)})});let i=()=>e.placed()?.side??e.side;return(()=>{var n=oa(),a=n.firstChild,o=a.firstChild,s=o.firstChild;s.firstChild;var c=t;typeof c==`function`?k(c,a):t=a,j(o,()=>e.children,s);var l=r;return typeof l==`function`?k(l,s):r=s,D(t=>{var n=e.id,r=e.placed()?.side,a=i()===`right`?`0px`:e.placed()?.arrowX===void 0?void 0:`${e.placed().arrowX}px`,c=i()===`bottom`?`0px`:e.placed()?.arrowY===void 0?void 0:`${e.placed().arrowY}px`,l=i()===`left`?`0px`:void 0,u=i()===`top`?`0px`:void 0,d=aa[i()]||void 0,f=ia[i()],p=e.placed()?.hideArrow?`hidden`:void 0;return n!==t.e&&O(o,`id`,t.e=n),r!==t.t&&O(o,`data-side`,t.t=r),a!==t.a&&P(s,`left`,t.a=a),c!==t.o&&P(s,`top`,t.o=c),l!==t.i&&P(s,`right`,t.i=l),u!==t.n&&P(s,`bottom`,t.n=u),d!==t.s&&P(s,`transform-origin`,t.s=d),f!==t.h&&P(s,`transform`,t.h=f),p!==t.r&&P(s,`visibility`,t.r=p),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0}),n})()}function la(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function ua(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function da(e){return e=ua(Math.abs(e)),e?e[1]:NaN}function fa(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function pa(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var ma=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ha(e){if(!(t=ma.exec(e)))throw Error(`invalid format: `+e);var t;return new ga({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ha.prototype=ga.prototype;function ga(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}ga.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function _a(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var va;function ya(e,t){var n=ua(e,t);if(!n)return va=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(va=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+ua(e,Math.max(0,t+a-1))[0]}function ba(e,t){var n=ua(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var xa={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:la,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ba(e*100,t),r:ba,s:ya,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Sa(e){return e}var Ca=Array.prototype.map,wa=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Ta(e){var t=e.grouping===void 0||e.thousands===void 0?Sa:fa(Ca.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Sa:pa(Ca.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=ha(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):xa[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=xa[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=_a(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&va!==void 0?wa[8+va/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(da(t)/3)))*3,r=10**-n,i=l((e=ha(e),e.type=`f`,e),{suffix:wa[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var Ea,Da;Oa({thousands:`,`,grouping:[3],currency:[`$`,``]});function Oa(e){return Ea=Ta(e),Da=Ea.format,Ea.formatPrefix,Ea}var ka=`a d3-format spec — e.g. ",.0f" (thousands, no decimals), "$,.2f", ".1%"`,Aa=new Intl.NumberFormat(void 0,{maximumFractionDigits:2}),ja=new Map;function Ma(e){if(!ja.has(e))try{ja.set(e,Da(e))}catch{ja.set(e,null)}return ja.get(e)??null}function Na(e){return!e||Ma(e)!==null}function Pa(e){let t=e?Ma(e):null;return t?e=>{try{return t(e)}catch{return Aa.format(e)}}:e=>Aa.format(e)}var Fa=Pa(void 0);function Ia(e){return Fa(e)}function La(e){return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`})}function Ra(e){return new Date(e).toLocaleString()}function za(e){let t=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(t<1)return`just now`;if(t<60)return`${t} min${t===1?``:`s`} ago`;let n=Math.floor(t/60);return n<24?`${n} hr${n===1?``:`s`} ago`:La(e)}var Ba=M(`<span>`),Va=M(`<span class="inline-block rounded-[3px] border px-1.5 py-0.5 font-mono text-[11px] leading-none whitespace-nowrap">`),Ha=M(`<span class="font-mono text-[10px] uppercase tracking-[0.14em] text-faint">`),Ua=M(`<button>`),Wa=M(`<input>`);function Ga(e){return e===`markup`?`mx-markup`:e}var Ka={markup:`#c0392b`},qa=`mx-auto max-w-4xl px-4 sm:px-6`,Ja=`rounded-[6px] border border-edge bg-surface`,Ya=`border-t border-edge hover:bg-raised transition-colors`,Xa=`text-accent no-underline hover:underline underline-offset-4`,Za={default:`border-edge-bright text-muted`,accent:`border-accent/40 text-accent bg-accent-soft`,dim:`border-edge text-faint`};function Qa(e){return(()=>{var t=Ba();return j(t,()=>e.children),D(()=>E(t,`inline-block rounded-[3px] border px-1.5 py-0.5 font-mono text-[11px] leading-none ${Za[e.tone??`default`]}`)),t})()}function $a(e){let t=()=>e.format??`markup`,n=()=>Ka[t()]??`#95a5a6`;return(()=>{var e=Va();return j(e,()=>Ga(t())),D(t=>{var r=n(),i=`${n()}4d`,a=`${n()}14`;return r!==t.e&&P(e,`color`,t.e=r),i!==t.t&&P(e,`border-color`,t.t=i),a!==t.a&&P(e,`background`,t.a=a),t},{e:void 0,t:void 0,a:void 0}),e})()}function eo(e){return(()=>{var t=Ha();return j(t,()=>e.children),t})()}var to={solid:`bg-accent text-bg border border-accent hover:brightness-110 font-semibold`,ghost:`bg-transparent text-fg border border-edge-bright hover:border-accent hover:text-accent`,danger:`bg-transparent text-danger border border-edge-bright hover:border-danger hover:bg-danger-soft`};function no(e){return(()=>{var t=Ua();return C(t,s(e,{get class(){return`cursor-pointer rounded-[4px] px-3 py-1.5 font-mono text-xs transition-colors disabled:opacity-50 ${to[e.variant??`solid`]} ${e.class??``}`}}),!1,!1),t})()}function ro(e){return(()=>{var t=Wa();return C(t,s(e,{get class(){return`w-full rounded-[4px] border border-edge bg-surface px-3 py-1.5 font-mono text-sm text-fg placeholder:text-faint focus:border-accent focus:outline-none ${e.class??``}`}}),!1,!1),t})()}var io=`keepalive`,ao=45e3,oo=1e3,so=3e4;function co(e,t=Math.random){let n=Math.min(so,oo*2**Math.max(0,e));return Math.round(n/2+t()*(n/2))}function lo(e){let t=e.host??(typeof window>`u`?void 0:window),n=globalThis.EventSource,r=null,i=0,a=!1,o=Date.now(),s,c,l=()=>{clearTimeout(c),c=setTimeout(f,ao)},u=()=>{o=Date.now(),i=0,l()};function d(){if(a||!n)return;clearTimeout(s),s=void 0,r?.close();let t=new n(e.url);r=t;let i=()=>r===t&&!a;t.onopen=()=>{i()&&l()},t.onmessage=t=>{i()&&(u(),e.onMessage?.(String(t.data)))};for(let[n,r]of Object.entries(e.events??{}))t.addEventListener(n,e=>{i()&&(u(),r(String(e.data)))});t.addEventListener(io,()=>{i()&&u()}),t.onerror=()=>{i()&&f()},l()}function f(){a||(clearTimeout(c),r?.close(),r=null,clearTimeout(s),s=setTimeout(d,co(i++,e.random)),e.onError?.())}let p=()=>{if(!a){if(!r||Date.now()-o>2e4){i=0,d();return}e.onWake?.()}},m=()=>{t?.document?.visibilityState!==`hidden`&&p()};return t?.addEventListener(`online`,p),t?.document?.addEventListener(`visibilitychange`,m),d(),{close(){a||(a=!0,clearTimeout(s),clearTimeout(c),r?.close(),r=null,t?.removeEventListener(`online`,p),t?.document?.removeEventListener(`visibilitychange`,m))}}}var uo=r();function fo(e){let{session:t}=R(),[r,i]=u(null),[a,o]=u(``),s=0,c=50,l=0,d=async e=>{let n=t()?.kind===`account`?t()?.user?.id:null;if(!n)return;let r=++s;l=Date.now();try{let a=await fetch(`/api/my/people`,e?{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)}:void 0);if(!a.ok)throw Error(`Could not load notifications`);let u=await a.json();if(!Array.isArray(u.notifications)||!Array.isArray(u.blocks))throw Error(`Could not load notifications`);for(;u.next!=null&&u.notifications.length<c;){let e=await fetch(`/api/my/people?offset=${u.next}`);if(!e.ok)throw Error(`Could not load notifications`);let t=await e.json();u.notifications.push(...t.notifications),u.next=t.next}l=Date.now(),r===s&&t()?.user?.id===n&&(i(u),o(``))}catch{r===s&&o(`Could not load notifications. Try again.`)}},f=()=>{Date.now()-l>1500&&d()};return n(()=>{let e=t()?.kind===`account`?t()?.user?.id:null;if(s++,c=50,i(null),o(``),!e||(d(),typeof EventSource>`u`))return;let n=lo({url:`/api/my/people/events`,onMessage:f,onError:()=>o(`Connection interrupted. Retrying…`)}),r=()=>{document.visibilityState===`visible`&&f()};window.addEventListener(`focus`,r),document.addEventListener(`visibilitychange`,r),m(()=>{n.close(),s++,window.removeEventListener(`focus`,r),document.removeEventListener(`visibilitychange`,r)})}),h(uo.Provider,{value:{state:r,error:a,load:d,loadMore:async()=>{c+=50,await d()}},get children(){return e.children}})}function po(){return c(uo)}function mo(){let e=c(uo);if(!e)throw Error(`InboxProvider missing`);return e}var ho=class extends Error{status;constructor(e,t){super(e),this.status=t}};function go(e,t=`GET`,n,r){return fetch(e,{...r,method:t,credentials:`same-origin`,...n===void 0?{}:{headers:{"Content-Type":`application/json`,...r?.headers},body:JSON.stringify(n)}})}async function _o(e,t=`GET`,n,r){let i=await go(e,t,n,r),a=await i.json().catch(()=>({}));if(!i.ok)throw new ho(a.details?.[0]??a.error??`The request failed.`,i.status);return a}var vo=M(`<p role=alert class="p-3 text-sm text-danger"> <button>Retry`),yo=M(`<p role=status class="p-4 text-sm text-muted">Loading notifications…`),bo=M(`<div class="px-6 py-10 text-center"><p class="text-sm font-medium">You’re all caught up.</p><p class="mt-1 text-xs leading-5 text-muted">Invitations, replies and activity will appear here.`),xo=M(`<div class="border-t border-edge p-3 text-center"><button>Load more`),So=M(`<section aria-label="Notification list"class=font-sans><ul class="m-0 list-none divide-y divide-edge p-0">`),Co=M(`<a class="block break-words text-sm">`),wo=M(`<span aria-label=Unread class="mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-accent">`),To=M(`<li><div class="min-w-0 flex-1">`),Eo=M(`<a class="block break-words text-sm leading-5 text-fg hover:text-accent"><span class=font-semibold>@</span> <!> <span class=font-semibold>`),Do=M(`<time class="mt-1 block text-xs text-muted">`),Oo=M(`<div class="mt-2 flex gap-2"><button type=button class="rounded-[4px] border border-fg bg-fg px-2 py-1 text-xs text-bg"></button><button type=button>Dismiss`),ko=M(`<p role=status class="mt-2 text-xs text-accent"> Invitation accepted`),Ao=M(`<span class=block>`),jo={request:`asked to join`,invitation:`invited you to`,joined:`added you to`,follow:`followed you`,like:`liked`,reply_resolved:`replied and resolved your comment in`,reply:`replied in`,resolved:`resolved a comment in`,reopened:`reopened a comment in`};function Mo(e){if(e.kind===`follow`)return`/people/${e.sender_id}`;let t=e.source?.startsWith(`node:`)?`#${e.source.slice(5)}`:e.source?.startsWith(`comment:`)?`?thread=${e.source.slice(8)}${e.first_update_id?`&comment=${encodeURIComponent(e.first_update_id)}`:``}`:``;return`/a/${e.artifact_id}${t}`}function No(e){let t=mo(),[n,r]=u(!1),[i,a]=u(``),o=()=>e.compact?t.state()?.notifications.slice(0,6)??[]:t.state()?.notifications??[],s=n=>{t.load({read:n.id,revision:n.revision}),e.close?.()},c=async(e,n)=>{if(!(!e.artifact_id||`actor`in e)){r(!0),a(``);try{let r=await go(`/api/my/artifacts/${encodeURIComponent(e.artifact_id)}/members`,`POST`,{action:n,...e.direction===`request`?{userId:e.user_id}:{}});if(!r.ok){let e=await r.json();throw Error(e.detail??`Could not update invitation`)}await t.load({read:e.id,revision:e.revision})}catch(e){a(e instanceof Error?e.message:`Could not update invitation`)}finally{r(!1)}}};return(()=>{var r=So(),a=r.firstChild;return j(r,h(x,{get when(){return t.error()||i()},get children(){var e=vo(),n=e.firstChild,r=n.nextSibling;return j(e,()=>i()||t.error(),n),r.$$click=()=>void t.load(),e}}),a),j(r,h(x,{get when(){return N(()=>!t.state())()&&!t.error()},get children(){return yo()}}),a),j(r,h(x,{get when(){return N(()=>!!t.state())()&&!o().length},get children(){var e=bo(),t=e.firstChild;return j(e,h(on,{size:24,class:`mx-auto mb-3 text-muted`}),t),e}}),a),j(a,h(y,{get each(){return o()},children:e=>(()=>{var t=To(),r=t.firstChild;return j(r,h(x,{get when(){return`actor`in e},get fallback(){return[(()=>{var t=Eo(),n=t.firstChild;n.firstChild;var r=n.nextSibling.nextSibling,i=r.nextSibling.nextSibling;return t.$$click=()=>s(e),j(n,()=>e.username??`someone`,null),j(t,()=>jo[e.kind]??`mentioned you in`,r),j(i,()=>e.title??`Untitled artifact`),D(()=>O(t,`href`,Mo(e))),t})(),h(x,{get when(){return e.created_at},get children(){var t=Do();return j(t,()=>za(e.created_at)),D(()=>O(t,`datetime`,e.created_at)),t}}),h(x,{get when(){return N(()=>e.status===`pending`)()&&[`invitation`,`request`,`joined`].includes(e.kind)},get children(){var t=Oo(),r=t.firstChild,i=r.nextSibling;return r.$$click=()=>void c(e,e.direction===`request`?`approve`:`accept`),j(r,()=>e.direction===`request`?`Approve request`:`Accept invitation`),i.$$click=()=>void c(e,`dismiss`),D(e=>{var t=n(),a=n();return t!==e.e&&(r.disabled=e.e=t),a!==e.t&&(i.disabled=e.t=a),e},{e:void 0,t:void 0}),t}}),h(x,{get when(){return e.status===`accepted`},get children(){var e=ko(),t=e.firstChild;return j(e,h(un,{size:14,class:`inline`}),t),e}})]},get children(){var t=Co();return t.$$click=()=>s(e),j(t,h(y,{get each(){return N(()=>`messages`in e)()?e.messages:[]},children:e=>(()=>{var t=Ao();return j(t,e),t})()})),D(()=>O(t,`href`,`/a/${e.artifact_id}`)),t}})),j(t,h(x,{get when(){return!e.read_at},get children(){return wo()}}),null),D(n=>{var r=e.id,i=`relative flex gap-3 px-3 py-3.5 ${e.read_at?``:`bg-accent-soft/40`}`;return r!==n.e&&O(t,`data-notification-id`,n.e=r),i!==n.t&&E(t,n.t=i),n},{e:void 0,t:void 0}),t})()})),j(r,h(x,{get when(){return N(()=>!e.compact)()&&t.state()?.next!=null},get children(){var e=xo(),n=e.firstChild;return n.$$click=()=>void t.loadMore(),e}}),null),r})()}b([`click`]);function Po(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t*31+e.charCodeAt(n))%360;return t}var Fo=e=>`hsl(${Po(e)} 55% 30%)`,Io=e=>(e?.trim()[0]??`?`).toUpperCase(),Lo=M(`<img alt class="absolute inset-0 size-full object-cover">`),Ro=M(`<span aria-hidden=true class="relative block shrink-0 overflow-hidden rounded-full"><span data-face-initial class="flex size-full items-center justify-center font-semibold leading-none text-white">`);function zo(e){let[t,n]=u(null),r=()=>e.image&&/^(https?:\/\/|\/|data:image\/)/.test(e.image)?e.image:null;return(()=>{var i=Ro(),a=i.firstChild;return j(a,()=>Io(e.initial)),j(i,h(x,{get when(){return N(()=>!!r())()&&t()!==r()},get children(){var e=Lo();return e.addEventListener(`error`,()=>n(r())),D(()=>O(e,`src`,r())),e}}),null),D(t=>{var n=e.size?`${e.size}px`:`100%`,r=e.size?`${e.size}px`:`100%`,o=Fo(e.userId),s=e.size?`${Math.round(e.size*.42)}px`:void 0;return n!==t.e&&P(i,`width`,t.e=n),r!==t.t&&P(i,`height`,t.t=r),o!==t.a&&P(a,`background-color`,t.a=o),s!==t.o&&P(a,`font-size`,t.o=s),t},{e:void 0,t:void 0,a:void 0,o:void 0}),i})()}function Bo(e){let t=t=>{t.key===`Escape`&&e()};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)}var Vo=`mx:doc:`;function Ho(e){let t=e.name;if(!t.startsWith(Vo))return{};try{let e=JSON.parse(t.slice(7));return e&&typeof e==`object`?e:{}}catch{return{}}}function Uo(e,t){let n={...t.anchor?{anchor:t.anchor}:{},...t.mode===`light`||t.mode===`dark`?{mode:t.mode}:{}};e.name=Object.keys(n).length?Vo+JSON.stringify(n):``}function Wo(e,t){Uo(e,{...Ho(e),anchor:t})}function Go(e,t=document){e===`dark`?t.documentElement.dataset.theme=`dark`:delete t.documentElement.dataset.theme;try{t.defaultView?.localStorage.setItem(`mx_theme`,e)}catch{}}var Ko=M(`<div role=dialog class="absolute right-0 mt-2 w-64 rounded border border-edge bg-surface p-3 shadow-xl"><div class="mb-3 flex items-center justify-between"><h1 class="font-mono text-xs font-semibold"></h1><button type=button>×`),qo=M(`<aside class="fixed right-4 top-4 z-40"><button type=button aria-label="Open artifact controls"class="rounded border border-edge bg-surface px-3 py-2 text-xs text-fg"> ···`),Jo=M(`<span data-mx-github-star>`),Yo=M(`<span aria-hidden=true class="absolute right-1 top-1 h-2 w-2 rounded-full bg-red-500">`),Xo=M(`<button type=button class="flex h-9 w-9 cursor-pointer items-center justify-center rounded-[8px] border-0 bg-transparent text-muted transition-colors hover:bg-raised hover:text-fg relative">`),Zo=M(`<button type=button>`),Qo=M(`<span>`),$o=M(`<button type=button class="flex h-9 w-9 cursor-pointer items-center justify-center rounded-[8px] border-0 bg-transparent text-muted transition-colors hover:bg-raised hover:text-fg">`),es=M(`<header aria-label="Page bar"class="sticky top-0 z-40 flex h-11 items-center gap-2 border-b border-edge bg-surface/85 px-3 backdrop-blur-md sm:gap-3"><a href=/ aria-label=Home class="flex h-9 w-9 shrink-0 items-center justify-center rounded-[8px] no-underline transition-colors hover:bg-raised"><img src=/logo-128.png alt></a><a href=/ class="min-w-0 truncate font-mono text-[13px] font-medium text-fg no-underline hover:text-accent sm:hidden">artifactbin</a><nav aria-label="Current page"class="hidden min-w-0 items-center gap-2 font-mono text-fg sm:flex"><a href=/>artifactbin</a></nav><div class="ml-auto flex shrink-0 items-center gap-1">`),ts=M(`<button type=button aria-label="Close panel"class="fixed inset-0 z-40 cursor-default border-0 bg-black/25 p-0">`),ns=M(`<section class="fixed right-3 top-14 z-50 max-h-[80vh] w-72 max-w-[calc(100vw-24px)] overflow-auto rounded-[7px] border border-edge bg-surface p-3 font-mono text-xs shadow-xl"><div class="mb-3 flex items-center justify-between"><h1 class="font-mono text-xs font-semibold"></h1><button type=button></button></div><section aria-label=Appearance><h2 class="mb-2 font-mono text-[10px] font-semibold uppercase tracking-[0.14em] text-faint">appearance</h2><div role=group aria-label="Color mode"class="flex overflow-hidden rounded-[5px] border border-edge"><button type=button aria-label="Light mode">light</button><button type=button aria-label="Dark mode">dark`),rs=M(`<span aria-hidden=true class=text-faint>·`),is=M(`<span class="truncate font-normal text-muted">Google Docs for agents`),as=M(`<a class="shrink-0 text-muted no-underline hover:text-accent">`),os=M(`<span class="flex min-w-0 items-center gap-2">`),ss=M(`<span class="min-w-0 truncate font-semibold text-fg">`),cs=M(`<div class="mt-4 border-t border-edge pt-3">`),ls=M(`<a>`),us=M(`<button type=button aria-label="Sign out"class="flex w-full items-center gap-3 rounded-[5px] border-0 bg-transparent px-3 py-3 text-left font-mono text-sm no-underline transition-colors sm:gap-2.5 sm:px-2.5 sm:py-2 sm:text-xs cursor-pointer text-muted hover:bg-raised hover:text-fg">Sign out`),ds=M(`<nav aria-label=Menu><button type=button aria-label="Dismiss menu"class="absolute right-3 top-3 flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border border-edge bg-surface text-muted hover:bg-raised hover:text-fg sm:hidden"style="top:max(12px, env(safe-area-inset-top))"></button><a href=/ aria-label="Hosted at artifactbin"class="mb-3 flex items-center gap-2.5 px-2 font-mono text-sm font-semibold text-fg no-underline transition-colors hover:text-accent"><img src=/logo-128.png alt class="h-7 w-7">artifactbin</a><a target=_blank rel="noopener noreferrer"class="flex w-full items-center gap-3 rounded-[5px] border-0 bg-transparent px-3 py-3 text-left font-mono text-sm no-underline transition-colors sm:gap-2.5 sm:px-2.5 sm:py-2 sm:text-xs cursor-pointer text-muted hover:bg-raised hover:text-fg">Support artifactbin</a><div class=mt-auto></div><div class="my-1 h-px bg-edge">`),fs=M(`<button type=button aria-label="Disconnect this browser"class="flex w-full items-center gap-3 rounded-[5px] border-0 bg-transparent px-3 py-3 text-left font-mono text-sm no-underline transition-colors sm:gap-2.5 sm:px-2.5 sm:py-2 sm:text-xs cursor-pointer text-muted hover:bg-raised hover:text-fg">Disconnect this browser`),ps=M(`<section aria-label=Notifications class="fixed right-3 top-14 z-50 w-80 rounded-[7px] border border-edge bg-surface p-4 shadow-xl"><div class="mb-3 flex items-center justify-between"><h2 class="text-sm font-semibold">Notifications</h2><button type=button aria-label="Close notifications"></button></div><div class="max-h-[55vh] overflow-y-auto"></div><nav aria-label="Notification links"class="mt-2 flex flex-col gap-2 border-t border-edge pt-3"><a href=/notifications>All notifications</a><a href=/account#notifications>Notification settings`);function ms(e){let[t,n]=u(!1);return(()=>{var r=qo(),i=r.firstChild,a=i.firstChild;return i.$$click=()=>n(e=>!e),j(i,()=>e.title||`Artifact`,a),j(r,h(x,{get when(){return t()},get children(){var t=Ko(),r=t.firstChild.firstChild,i=r.nextSibling;return j(r,()=>e.label.toLowerCase()),i.$$click=()=>n(!1),j(t,()=>e.children,null),D(n=>{var r=e.label,a=`Dismiss ${e.label.toLowerCase()}`;return r!==n.e&&O(t,`aria-label`,n.e=r),a!==n.t&&O(i,`aria-label`,n.t=a),n},{e:void 0,t:void 0}),t}}),null),D(()=>O(i,`aria-expanded`,t())),r})()}var hs=r();function gs(){return c(hs)}var _s=`flex h-9 w-9 cursor-pointer items-center justify-center rounded-[8px] border-0 bg-transparent text-muted transition-colors hover:bg-raised hover:text-fg`;function vs(e){let t;return n(()=>or(t)),(()=>{var n=Jo(),r=t;return typeof r==`function`?k(r,n):t=n,D(t=>{var r=`${e.mobile?`inline-flex sm:hidden`:`hidden sm:inline-flex`} h-7 shrink-0 items-center text-fg print:hidden`,i=nr(!e.mobile);return r!==t.e&&E(n,t.e=r),i!==t.t&&(n.innerHTML=t.t=i),t},{e:void 0,t:void 0}),n})()}function ys(e={}){let t=F(),{session:r}=R(),i=po(),[a,o]=u(null),s=()=>e.panel?e.panel():a(),c=t=>{let n=typeof t==`function`?t(s()):t;e.setPanel?e.setPanel(n):o(n)},[d,f]=u(typeof document<`u`&&document.documentElement.dataset.theme===`dark`?`dark`:`light`),p=()=>e.mode?e.mode():d(),g=()=>r()?.kind===`account`?r()?.user:null,_=()=>Qn(t.pathname,e.title),v=()=>e.label??`Page controls`,b=()=>v().toLowerCase(),S=e=>`flex flex-1 cursor-pointer items-center justify-center gap-2 border-0 px-3 py-2 font-mono text-xs transition-colors ${p()===e?`bg-accent-soft text-accent`:`bg-transparent text-muted hover:bg-raised hover:text-fg`}`,C,w=(e,t)=>{C=t?.currentTarget??void 0,c(t=>t===e?null:e)},T=()=>c(null),ee=t=>{f(t),e.onMode?e.onMode(t):Go(t)},k=()=>!!i?.state()?.unread;return n(l(s,(e,t)=>{!e&&t&&C?.isConnected&&C.focus()},{defer:!0})),n(()=>{s()&&m(Bo(T))}),[(()=>{var t=es(),n=t.firstChild,r=n.firstChild,i=n.nextSibling.nextSibling,a=i.firstChild,o=i.nextSibling;return j(i,h(x,{get when(){return e.byline},get fallback(){return[h(x,{get when(){return!_().length},get children(){return[rs(),is()]}}),h(y,{get each(){return _()},children:e=>(()=>{var t=os();return j(t,h(fn,{size:14,class:`shrink-0 text-faint`,"aria-hidden":`true`}),null),j(t,h(x,{get when(){return e.href},get fallback(){return(()=>{var t=ss();return j(t,()=>e.label),t})()},get children(){var t=as();return j(t,()=>e.label),D(()=>O(t,`href`,e.href)),t}}),null),t})()})]},get children(){return e.byline}}),null),j(o,h(x,{get when(){return e.star!==!1},get children(){return[h(vs,{mobile:!1}),h(vs,{mobile:!0})]}}),null),j(o,()=>e.actions,null),j(o,h(x,{get when(){return g()},get children(){return h(sa,{content:`Notifications`,get children(){var e=Xo();return e.$$click=e=>w(`notifications`,e),j(e,h(on,{size:20,strokeWidth:1.5}),null),j(e,h(x,{get when(){return k()},get children(){return Yo()}}),null),D(t=>{var n=k()?`Notifications, unread updates`:`Notifications`,r=s()===`notifications`;return n!==t.e&&O(e,`aria-label`,t.e=n),r!==t.t&&O(e,`aria-expanded`,t.t=r),t},{e:void 0,t:void 0}),e}})}}),null),j(o,h(sa,{get content(){return b()},get children(){var e=Zo();return e.$$click=e=>w(`controls`,e),j(e,(()=>{var e=N(()=>s()===`controls`);return()=>e()?h(An,{size:17}):h(wn,{size:20,strokeWidth:1.5})})()),D(t=>{var n=`${s()===`controls`?`Close`:`Open`} ${b()}`,r=s()===`controls`,i=`${_s} ${s()===`controls`?`text-accent`:``}`;return n!==t.e&&O(e,`aria-label`,t.e=n),r!==t.t&&O(e,`aria-expanded`,t.t=r),i!==t.a&&E(e,t.a=i),t},{e:void 0,t:void 0,a:void 0}),e}}),null),j(o,h(sa,{content:`menu`,get children(){var e=$o();return e.$$click=e=>w(`menu`,e),j(e,h(x,{get when(){return g()},get fallback(){return N(()=>s()===`menu`)()?h(An,{size:17}):h(mn,{size:20,strokeWidth:1.5})},get children(){var e=Qo();return j(e,h(zo,{get image(){return g()?.image??null},get initial(){return g()?.username||g()?.email||`?`},get userId(){return g()?.id??``},size:24})),D(()=>E(e,`rounded-full ring-offset-1 ring-offset-surface ${s()===`menu`?`ring-2 ring-accent`:``}`)),e}})),D(t=>{var n=s()===`menu`?`Close menu`:`Open menu`,r=s()===`menu`;return n!==t.e&&O(e,`aria-label`,t.e=n),r!==t.t&&O(e,`aria-expanded`,t.t=r),t},{e:void 0,t:void 0}),e}}),null),D(t=>{var n=`${$n.logoSize}px`,o=`${$n.logoSize}px`,s=`${$n.fontSize}px`,c=$n.fontWeight,l=`shrink-0 no-underline hover:text-accent ${_().length||e.byline?`text-muted`:`font-semibold text-fg`}`;return n!==t.e&&P(r,`width`,t.e=n),o!==t.t&&P(r,`height`,t.t=o),s!==t.a&&P(i,`font-size`,t.a=s),c!==t.o&&P(i,`font-weight`,t.o=c),l!==t.i&&E(a,t.i=l),t},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),t})(),h(x,{get when(){return s()},get children(){return h(A,{get mount(){return Jn(document)??document.body},get children(){return[(()=>{var e=ts();return e.$$click=T,e})(),h(x,{get when(){return s()===`menu`},get children(){return h(xs,{close:T})}}),h(x,{get when(){return s()===`controls`},get children(){var t=ns(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,a=n.nextSibling.firstChild.nextSibling.firstChild,o=a.firstChild,s=a.nextSibling,c=s.firstChild;return j(r,b),i.$$click=T,j(i,h(An,{size:15})),a.$$click=()=>ee(`light`),j(a,h(En,{size:14,strokeWidth:1.5}),o),s.$$click=()=>ee(`dark`),j(s,h(Sn,{size:14,strokeWidth:1.5}),c),j(t,h(x,{get when(){return e.controls},children:e=>(()=>{var t=cs();return j(t,()=>e()(T)),t})()}),null),D(e=>{var n=v(),r=`Dismiss ${b()}`,o=p()===`light`,c=S(`light`),l=p()===`dark`,u=S(`dark`);return n!==e.e&&O(t,`aria-label`,e.e=n),r!==e.t&&O(i,`aria-label`,e.t=r),o!==e.a&&O(a,`aria-pressed`,e.a=o),c!==e.o&&E(a,e.o=c),l!==e.i&&O(s,`aria-pressed`,e.i=l),u!==e.n&&E(s,e.n=u),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),t}}),h(x,{get when(){return s()===`notifications`},get children(){return h(Ss,{close:T})}})]}})}})]}var bs=`flex w-full items-center gap-3 rounded-[5px] border-0 bg-transparent px-3 py-3 text-left font-mono text-sm no-underline transition-colors sm:gap-2.5 sm:px-2.5 sm:py-2 sm:text-xs`;function xs(e){let{session:t}=R(),n=F(),r=()=>t()?.kind===`account`?t()?.user:null,i=()=>e.close(),a=(e,t,r)=>{let a=()=>n.pathname===e;return(()=>{var n=ls();return n.$$click=i,O(n,`href`,e),O(n,`aria-label`,t),j(n,r,null),j(n,t,null),D(t=>{var r=[`/`,`/assets`,`/trash`,`/login`,`/start`,`/welcome`,`/notifications`,`/account`,`/docs-human`,`/chat`,`/schedules`,`/programs/new`].includes(e)?void 0:`external`,i=`${bs} cursor-pointer ${a()?`bg-accent-soft text-accent`:`text-muted hover:bg-raised hover:text-fg`}`;return r!==t.e&&O(n,`rel`,t.e=r),i!==t.t&&E(n,t.t=i),t},{e:void 0,t:void 0}),n})()},o=()=>e.dropdown?e.phone?`fixed inset-x-0 bottom-0 z-50 flex animate-[rise_.14s_ease-out] flex-col rounded-t-[10px] border-t border-edge bg-surface p-3 pb-[max(20px,env(safe-area-inset-bottom))] shadow-xl`:`fixed right-3 top-14 z-50 flex w-72 animate-[rise_.14s_ease-out] flex-col rounded-[7px] border border-edge bg-surface p-2 shadow-xl`:`fixed inset-y-0 left-0 z-50 flex w-full animate-[drawer-in_.15s_ease-out] flex-col border-r border-edge bg-surface p-2 pt-16 shadow-xl sm:w-72`;return(()=>{var n=ds(),s=n.firstChild,c=s.nextSibling.nextSibling,l=c.firstChild;return c.nextSibling.nextSibling,s.$$click=i,j(s,h(An,{size:17,"stroke-width":1.5})),j(n,()=>a(`/`,`Artifacts`,h(gn,{size:15,"stroke-width":1.5})),c),j(n,()=>a(`/schedules`,`Schedules`,h(rn,{size:15})),c),j(n,()=>a(`/chat`,`Remote sessions`,h(On,{size:15,"stroke-width":1.5})),c),j(n,()=>a(`/notifications`,`Notifications`,h(On,{size:15,"stroke-width":1.5})),c),j(n,()=>a(`/account`,`Account`,h(On,{size:15,"stroke-width":1.5})),c),j(n,()=>a(`/docs-human`,`Human Docs`,h(cn,{size:15,"stroke-width":1.5})),c),c.$$click=i,O(c,`href`,er),j(c,h(Kn,{size:15}),l),j(n,h(x,{get when(){return r()},get fallback(){return h(x,{get when(){return t()?.kind===`anon`},get fallback(){return a(gr(window.location),`Login`,h(vn,{size:15,"stroke-width":1.5}))},get children(){var e=fs(),t=e.firstChild;return e.$$click=()=>void cr().then(()=>{window.location.href=`/`}),j(e,h(bn,{size:15,"stroke-width":1.5}),t),e}})},get children(){var e=us(),t=e.firstChild;return e.$$click=()=>void Promise.all([sr(),fetch(`/api/auth/sign-out`,{method:`POST`,headers:{"Content-Type":`application/json`},body:`{}`}).catch(()=>null)]).then(()=>{window.location.href=`/`}),j(e,h(bn,{size:15,"stroke-width":1.5}),t),e}}),null),D(t=>{var r=o(),i=e.dropdown&&!e.phone&&e.top!==void 0?{top:`${e.top}px`}:void 0;return r!==t.e&&E(n,t.e=r),t.t=w(n,i,t.t),t},{e:void 0,t:void 0}),n})()}function Ss(e){let t=()=>e.close();return(()=>{var e=ps(),n=e.firstChild,r=n.firstChild.nextSibling,i=n.nextSibling,a=i.nextSibling.firstChild,o=a.nextSibling;return r.$$click=t,j(r,h(An,{size:18})),j(i,h(No,{compact:!0,close:t})),a.$$click=t,o.$$click=t,e})()}b([`click`]);var Cs=new Set([`/welcome`,`/login`,`/start`]);function ws(){let[e,t]=u(document.readyState===`complete`);if(!e()){let e,n=()=>{e=setTimeout(()=>t(!0),0)};window.addEventListener(`load`,n,{once:!0}),m(()=>{window.removeEventListener(`load`,n),clearTimeout(e)})}return e}function Ts(e){let{session:t}=R(),n=F(),r=ws(),i=null,a=f(()=>{let e=n.pathname,a=n.search,o=n.hash,s=t();mr(a)?i=e:i!==e&&(i=null);let c=e.replace(/\/+$/,``)||`/`;return!s?.user||s.onboarded!==!1||Cs.has(c)||i===e||!r()?null:`/welcome?callbackUrl=${encodeURIComponent(`${e}${a}${o}`)}`});return h(x,{get when(){return!a()},get fallback(){return h(Nt,{get href(){return a()}})},get children(){return e.children}})}var Es=`modulepreload`,Ds=function(e){return`/`+e},Os={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Ds(t,n),t=s(t),t in Os)return;Os[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Es,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ks=M(`<main aria-label="Loading page"role=status aria-busy=true class="mx-auto max-w-5xl px-4 py-10"><span class=sr-only>Loading page…</span><div aria-hidden=true class="h-7 w-48 rounded bg-raised">`),As=M(`<main class="mx-auto max-w-5xl px-4 py-10"role=alert>Could not load this page. <button aria-label="Retry loading page">Retry`),js=i(()=>$(()=>import(`./Trash-DoKID_ux.js`).then(e=>({default:e.TrashPage})),__vite__mapDeps([0,1,2,3,4,5]))),Ms=i(()=>$(()=>import(`./NotFound-D2MOGkIO.js`).then(e=>({default:e.NotFoundPage})),__vite__mapDeps([6,1]))),Ns=i(()=>$(()=>import(`./Login-CszZ8VGu.js`).then(e=>({default:e.LoginPage})),__vite__mapDeps([7,1,8]))),Ps=i(()=>$(()=>import(`./Start-B5ji5vTT.js`).then(e=>({default:e.StartPage})),__vite__mapDeps([9,1,10]))),Fs=i(()=>$(()=>import(`./Welcome-Ct29u9Y9.js`).then(e=>({default:e.WelcomePage})),__vite__mapDeps([11,1,12,13,14,15,10,8]))),Is=i(()=>$(()=>import(`./Notifications-M7BiDhSo.js`).then(e=>({default:e.NotificationsPage})),__vite__mapDeps([16,1]))),Ls=i(()=>$(()=>import(`./Account-qnxwLep7.js`).then(e=>({default:e.AccountPage})),__vite__mapDeps([17,1,18,12,13,14,15,19,20,21]))),Rs=i(()=>$(()=>import(`./Docs-B80IZLN8.js`).then(e=>({default:e.DocsPage})),__vite__mapDeps([22,1,23,24,18,13,14,25,21,26,27]))),zs=i(()=>$(()=>import(`./Profile-DqV5PMEi.js`).then(e=>({default:e.ProfilePage})),__vite__mapDeps([28,1,29,30,5,31,6,32,14,33]))),Bs=i(()=>$(()=>import(`./Profile-DqV5PMEi.js`).then(e=>({default:e.ProfileAliasRoute})),__vite__mapDeps([28,1,29,30,5,31,6,32,14,33]))),Vs=i(()=>$(()=>import(`./Home-BSO7YYXA.js`).then(e=>({default:e.HomePage})),__vite__mapDeps([34,1,35,36,37,21,38,20,39,40,3,29,30,41,42,43,27,14,33,44,31,5,45,46,47,48,49,19,50,51,52,53,54,55,24,18,13,25,26,56]))),Hs=i(()=>$(()=>import(`./ArtifactAddress-1ftOG9A5.js`).then(e=>({default:e.ArtifactAddressRoute})),__vite__mapDeps([57,1,10,6]))),Us=i(()=>$(()=>import(`./Assets-D6htDZnu.js`).then(e=>({default:e.AssetsPage})),__vite__mapDeps([58,1,2,37,21,38,20,39,40,3,29,30,41,42,43,27,14,33,44,31,5,45,46,47,48,49,19,51]))),Ws=i(()=>$(()=>import(`./DatasetEditor-C22-4oJL.js`).then(e=>({default:e.DatasetEditorPage})),__vite__mapDeps([59,47,43,27,1,36,37,21,38,20,39,54,49,60,32,14,33,61]))),Gs=i(()=>$(()=>import(`./FileUpload-B-da-wki.js`).then(e=>({default:e.FileUploadPage})),__vite__mapDeps([62,1,18,63,51,21,64,61]))),Ks=i(()=>$(()=>import(`./Schedules-D05tndQ1.js`).then(e=>({default:e.SchedulesRoute})),__vite__mapDeps([65,1,49]))),qs=i(()=>$(()=>import(`./Program-CdwfK2zE.js`).then(e=>({default:e.ProgramPage})),__vite__mapDeps([66,1,67,36,14,33,56,19,20,55,21,32,38,49]))),Js=()=>{let e=st();return h(qs,{get artifactId(){return e.id}})},Ys=i(()=>$(()=>import(`./Chat-DueKnMAf.js`).then(e=>({default:e.ChatPage})),__vite__mapDeps([68,1,21,26,27,14,25,69]))),Xs=i(()=>$(()=>import(`./Document-C6-E9V3_.js`).then(e=>({default:e.DocumentPage})),__vite__mapDeps([70,1,36,18,67,14,33,56,19,20,55,21,32,38,30,13,71,63,52,53,42,43,27,44,31,72,54,49,6])));function Zs(){return ks()}function Qs(){return Kt(),[]}function $s(e){let t=F(),r=!!Ce(),i=()=>r&&(/^\/a\/[^/]+(?:\/(?:edit|app))?\/?$/.test(t.pathname)||/^\/@[^/]+\/[^/]+(?:\/edit)?\/?$/.test(t.pathname)),[a,o]=u(!0),s=window.location.pathname;return n(()=>{Ee(t.pathname),t.pathname!==s&&document.querySelectorAll(`[data-mx-pwa]`).forEach(e=>e.remove())}),h(Ht,{get children(){return[h(Qs,{}),h(fo,{get children(){return h(Ts,{get children(){return h(hs.Provider,{value:o,get children(){return[h(x,{get when(){return N(()=>!i())()&&a()},get children(){return h(ys,{})}}),h(T,{fallback:(e,t)=>(()=>{var e=As(),n=e.firstChild.nextSibling;return te(n,`click`,t,!0),e})(),get children(){return h(ie,{get fallback(){return h(Zs,{})},get children(){return e.children}})}})]}})}})}})]}})}function ec(){return Ce()?h(Xs,{}):h(Hs,{})}function tc(){return Ce()?h(Xs,{}):h(Hs,{editing:!0})}function nc(){return h(Mt,{root:$s,get children(){return[h(L,{path:`/`,component:Vs}),h(L,{path:`/a/:id`,component:ec}),h(L,{path:`/a/:id/app/`,component:ec}),h(L,{path:`/trash`,component:js}),h(L,{path:`/tokens`,component:()=>h(Nt,{href:`/account`})}),h(L,{path:`/assets`,component:Us}),h(L,{path:`/datasets/new`,component:Ws}),h(L,{path:`/files/new`,component:Gs}),h(L,{path:`/a/:id/edit`,component:tc}),h(L,{path:`/schedules`,component:Ks}),h(L,{path:`/programs/new`,component:qs}),h(L,{path:`/programs/:id/edit`,component:Js}),h(L,{path:`/chat`,component:Ys}),h(L,{path:`/login`,component:Ns}),h(L,{path:`/start`,component:Ps}),h(L,{path:`/welcome`,component:Fs}),h(L,{path:`/notifications`,component:Is}),h(L,{path:`/account`,component:Ls}),h(L,{path:`/docs-human`,component:Rs}),h(L,{path:`/:user`,component:zs}),h(L,{path:`/:user/*rest`,component:Bs}),h(L,{path:`*404`,component:Ms})]}})}b([`click`]),ve(window),Se(),Ie(document),S(()=>h(nc,{}),document.getElementById(`root`));export{F as $,sa as A,Wn as B,Ya as C,za as D,Ia as E,Hn as F,z as G,gn as H,Vn as I,Lt as J,qt as K,Bn as L,gr as M,qn as N,ka as O,Jn as P,lt as Q,Un as R,Ja as S,Ra as T,fn as U,An as V,un as W,zt as X,It as Y,Nt as Z,$a as _,Go as a,Pe as at,eo as b,No as c,Te as ct,mo as d,he as dt,ot as et,po as f,me as ft,no as g,Qa as h,gs as i,Me as it,ea as j,Na as k,go as l,Ce as lt,lo as m,ms as n,ct as nt,Wo as o,Ne as ot,co as p,ce as pt,R as q,ys as r,je as rt,zo as s,we as st,$ as t,st as tt,_o as u,ge as ut,ro as v,Ga as w,qa as x,Xa as y,Gn as z};