decocms 4.507.2 → 4.507.4

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 (378) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-jySIfQfO.js → ActiveShapeUtils-BAL0Xqny.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-C49F0ts6.js → AlertCircle-T1ZkrR0m.js} +1 -1
  3. package/dist/client/assets/{AreaChart-DtekUHHL.js → AreaChart-Dvv3jub6.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-CSSCO41y.js → ArrowLeft-CYKCt2D_.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-eyGXli3J.js → ArrowUp-CrfIcCHY.js} +1 -1
  6. package/dist/client/assets/{BarChart-B6-ZUZgm.js → BarChart-Z1_46Epq.js} +1 -1
  7. package/dist/client/assets/{Building02-Cc0RR_mQ.js → Building02-BzqtLsiR.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-Bn8cFml0.js → CategoricalChart-DSzs6PbU.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-BED6dkLg.js → CheckCircle-Cyp8J2-O.js} +1 -1
  10. package/dist/client/assets/{ChevronSelectorVertical-DeVUWHMb.js → ChevronSelectorVertical-bMnA4IfS.js} +1 -1
  11. package/dist/client/assets/{ChevronUp-M8O43yJN.js → ChevronUp-DWP9CKrv.js} +1 -1
  12. package/dist/client/assets/{Copy01-IjT5Cr-0.js → Copy01-4Op2Jutz.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-CCewrsPV.js → CreditCard01-8ijEtUnj.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-C3vEzxwp.js → DotsVertical-Ik04gU0Z.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-Cb5oOttH.js → ErrorBarContext-1QYVhNWP.js} +1 -1
  16. package/dist/client/assets/{Globe04-DOtzWDgX.js → Globe04-DTYU91Z7.js} +1 -1
  17. package/dist/client/assets/{Image01-aYI2vrVV.js → Image01-BoNtuy7T.js} +1 -1
  18. package/dist/client/assets/{Key01-BnFprBC4.js → Key01-DVtNzjvm.js} +1 -1
  19. package/dist/client/assets/{Link01-CdThLL91.js → Link01-COgU4X0d.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-Cemx_-td.js → LinkBroken01-1s3iBfyN.js} +1 -1
  21. package/dist/client/assets/{Monitor01-BZieTizR.js → Monitor01-BMmwz8er.js} +1 -1
  22. package/dist/client/assets/{Play-DJbpbnnH.js → Play-C_Kc3qTH.js} +1 -1
  23. package/dist/client/assets/{Plus-Xcxre04p.js → Plus-bl3Do1ab.js} +1 -1
  24. package/dist/client/assets/{SearchMd-BiMpzfAz.js → SearchMd-CuIII2sM.js} +1 -1
  25. package/dist/client/assets/{Sector-DzF1455G.js → Sector-Ca7XNqZx.js} +1 -1
  26. package/dist/client/assets/{ShoppingBag01-7AUWsp7V.js → ShoppingBag01-CQamAcPv.js} +1 -1
  27. package/dist/client/assets/{Sun-DZd0pcUv.js → Sun-CT-ZvHiv.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-lbkLP1BV.js → SwitchHorizontal01-BMvJE9CE.js} +1 -1
  29. package/dist/client/assets/{Tool01-BuiUP3wu.js → Tool01-eRpAM_xP.js} +1 -1
  30. package/dist/client/assets/{Trash01-CSWWBhZk.js → Trash01-DtrweZMg.js} +1 -1
  31. package/dist/client/assets/{Upload01-By8WilO1.js → Upload01-dCDZcDY3.js} +1 -1
  32. package/dist/client/assets/{User01-558TF773.js → User01-N2rUxuZL.js} +1 -1
  33. package/dist/client/assets/{UserSquare-CWSxOMqR.js → UserSquare-BPqJsNeY.js} +1 -1
  34. package/dist/client/assets/{Users01-gicEePNg.js → Users01--Pjgrl_5.js} +1 -1
  35. package/dist/client/assets/{XAxis-qI7p2LLk.js → XAxis-Bcjro0Ob.js} +1 -1
  36. package/dist/client/assets/{XClose-BEUDzM_1.js → XClose-DBK6xbU_.js} +1 -1
  37. package/dist/client/assets/{ZoomOut-DmspxQ49.js → ZoomOut-BSgJ_qOu.js} +1 -1
  38. package/dist/client/assets/{access-gate-bpdPmASp.js → access-gate-DSd_cW3Q.js} +1 -1
  39. package/dist/client/assets/{add-connection-dialog-D2-Fevp3.js → add-connection-dialog-B2yW98GA.js} +1 -1
  40. package/dist/client/assets/{agent-analytics-CHLX8Dwa.js → agent-analytics-DAcM92Eu.js} +1 -1
  41. package/dist/client/assets/agent-app-DMpGNnPR.js +1 -0
  42. package/dist/client/assets/{agent-assets-DWHiQD98.js → agent-assets-CpU6grt8.js} +1 -1
  43. package/dist/client/assets/{agent-automation-DObMz1kl.js → agent-automation-B-gVk0Iu.js} +1 -1
  44. package/dist/client/assets/{agent-automations-DYbb1V-B.js → agent-automations-Un1oiGTh.js} +1 -1
  45. package/dist/client/assets/{agent-connect-sources-DebQ4hkB.js → agent-connect-sources-D2iZNBca.js} +1 -1
  46. package/dist/client/assets/agent-deck-CZNDv1mI.js +1 -0
  47. package/dist/client/assets/{agent-e2e-BRkJGMbT.js → agent-e2e-BU3R6DRe.js} +1 -1
  48. package/dist/client/assets/{agent-experiments-BjnXROCp.js → agent-experiments-De5Xjb8U.js} +1 -1
  49. package/dist/client/assets/{agent-file-C84-2ZAM.js → agent-file-BUbOjh-I.js} +1 -1
  50. package/dist/client/assets/{agent-hosting-DhdLSA5K.js → agent-hosting-DUYz3ME7.js} +1 -1
  51. package/dist/client/assets/{agent-icon-6qcGzKLI.js → agent-icon-u2ivNkJK.js} +1 -1
  52. package/dist/client/assets/agent-library-CRicVjHe.js +1 -0
  53. package/dist/client/assets/agent-library-file-5bEyOzlc.js +1 -0
  54. package/dist/client/assets/{agent-monitor-OPCmresQ.js → agent-monitor-6ujZcZJe.js} +1 -1
  55. package/dist/client/assets/{agent-overview-DhpnVP3O.js → agent-overview-Bxaa87a8.js} +1 -1
  56. package/dist/client/assets/{agent-releases-D99QXu6E.js → agent-releases-Bf8Vhnqt.js} +1 -1
  57. package/dist/client/assets/agent-settings-DoaEiYch.js +1 -0
  58. package/dist/client/assets/{agent-site-editor-MPorMBYa.js → agent-site-editor-B8Gy3O3j.js} +1 -1
  59. package/dist/client/assets/agent-site-editor-code-nxeUtWd2.js +2 -0
  60. package/dist/client/assets/agent-site-editor-content-MjcMIMIi.js +1 -0
  61. package/dist/client/assets/agent-site-editor-preview-BgfVqf-n.js +1 -0
  62. package/dist/client/assets/agent-view-B1-PgHLK.js +1 -0
  63. package/dist/client/assets/{agent-view-guard-f1rPRUHJ.js → agent-view-guard-D7Efz7aP.js} +1 -1
  64. package/dist/client/assets/{agents-list-CkAblqIe.js → agents-list-CjgsD106.js} +1 -1
  65. package/dist/client/assets/{ai-providers-BooBUwjF.js → ai-providers-DYVp9dmp.js} +1 -1
  66. package/dist/client/assets/{alert-ClPly-6t.js → alert-C4LKzrU_.js} +1 -1
  67. package/dist/client/assets/{alert-dialog-B2X6GVxf.js → alert-dialog-DiDDn4Bn.js} +1 -1
  68. package/dist/client/assets/{analytics-sections-CqsADfEb.js → analytics-sections-BTuh0sxQ.js} +1 -1
  69. package/dist/client/assets/api-keys-CAj6rmix.js +1 -0
  70. package/dist/client/assets/{api-keys-C7BCKoXO.js → api-keys-DT2jF2YV.js} +1 -1
  71. package/dist/client/assets/{app-editor-Cd1AaZAP.js → app-editor-2Z9PUdLT.js} +1 -1
  72. package/dist/client/assets/{asset-utils-PpGBHp7S.js → asset-utils-D_uCIG2N.js} +1 -1
  73. package/dist/client/assets/{auth-CDMxJjZ_.js → auth-CExazRf5.js} +1 -1
  74. package/dist/client/assets/{auth-catchall-CZDje7WE.js → auth-catchall-Bg4s733G.js} +1 -1
  75. package/dist/client/assets/{auth-entry-D9r_9K3P.js → auth-entry-DklrAmyd.js} +1 -1
  76. package/dist/client/assets/{auth-split-layout-oUo4Hk_G.js → auth-split-layout-yWRpLXbZ.js} +1 -1
  77. package/dist/client/assets/{authenticate-and-persist-oauth-BeZlu0Nl.js → authenticate-and-persist-oauth-B43eE55s.js} +1 -1
  78. package/dist/client/assets/{automation-list-row-DWfHs1ka.js → automation-list-row-rr5_wiXj.js} +1 -1
  79. package/dist/client/assets/{automation-runs-DYFrers-.js → automation-runs-Dzy5TJhL.js} +1 -1
  80. package/dist/client/assets/{automations-Dv14tuP7.js → automations-D7-lperE.js} +1 -1
  81. package/dist/client/assets/{autosend-Bh9N6QTP.js → autosend-CUxwH8aa.js} +1 -1
  82. package/dist/client/assets/{avatar-DLW_zv2o.js → avatar-k7zVZ1nb.js} +1 -1
  83. package/dist/client/assets/{badge-CNOkHFGC.js → badge-BE7xUmDV.js} +1 -1
  84. package/dist/client/assets/{block-document-BebIohGg.js → block-document-BISmqkMT.js} +1 -1
  85. package/dist/client/assets/{blocks-preview-workspace-context-Biv5NAm3.js → blocks-preview-workspace-context-9rYmJjdK.js} +1 -1
  86. package/dist/client/assets/{blocks-tab-states-BgNWRkH8.js → blocks-tab-states-B0RpWAaK.js} +3 -3
  87. package/dist/client/assets/{blog-schema-DiNpH4vZ.js → blog-schema-CYYjVJrx.js} +1 -1
  88. package/dist/client/assets/{board-analytics-BaTYwWrV.js → board-analytics-BPcQpX0a.js} +1 -1
  89. package/dist/client/assets/{buckets-DE3qVy9B.js → buckets-7sZ822gQ.js} +1 -1
  90. package/dist/client/assets/{build-improve-prompt-doc-BvSYvw5x.js → build-improve-prompt-doc-4hqh7aGt.js} +1 -1
  91. package/dist/client/assets/{calendar-BTqmD5cp.js → calendar-C_cq2tGg.js} +1 -1
  92. package/dist/client/assets/{capability-load-error-2YdYn89j.js → capability-load-error-Dm_yuCkZ.js} +1 -1
  93. package/dist/client/assets/{category-editor-Cgt25XK9.js → category-editor-CQjH2oSA.js} +1 -1
  94. package/dist/client/assets/{chart-DjCzbQW1.js → chart-B2lVx6UJ.js} +1 -1
  95. package/dist/client/assets/{chat-context-Ccuwf3qi.js → chat-context-DL44ik-l.js} +1 -1
  96. package/dist/client/assets/{chat-draft-DHvm4xVB.js → chat-draft-BGj508pV.js} +1 -1
  97. package/dist/client/assets/{checkbox-Cniz6XYs.js → checkbox-CTOJeQYr.js} +1 -1
  98. package/dist/client/assets/{choose-editor-CV0_JmWA.js → choose-editor-BoM3oSha.js} +1 -1
  99. package/dist/client/assets/{cli-auth-success-BMxtnAHr.js → cli-auth-success-CmIjetif.js} +1 -1
  100. package/dist/client/assets/{client-icons-B-2sMI-E.js → client-icons-C4GjI8VB.js} +1 -1
  101. package/dist/client/assets/cms-settings-editor-bq02-RQH.js +1 -0
  102. package/dist/client/assets/{collapsible-0KvGZBpu.js → collapsible-DM3c5ETU.js} +1 -1
  103. package/dist/client/assets/{collection-detail-93nG2ose.js → collection-detail-D94lQ1Zc.js} +1 -1
  104. package/dist/client/assets/{collection-display-button-C_VxQwWc.js → collection-display-button-Dz_a8Rja.js} +1 -1
  105. package/dist/client/assets/{collection-search-D-0zgzsL.js → collection-search-BgZ6ncMc.js} +1 -1
  106. package/dist/client/assets/{collection-table-wrapper-DPIsyB6U.js → collection-table-wrapper-DYmuLoSL.js} +1 -1
  107. package/dist/client/assets/{collection-tabs-BY3qzlzd.js → collection-tabs-C9sF3Ij7.js} +1 -1
  108. package/dist/client/assets/{column-rules-DeMbpPyG.js → column-rules-DVJwf6Ig.js} +1 -1
  109. package/dist/client/assets/{combobox-DihCFI-U.js → combobox-CWvfr2Bd.js} +1 -1
  110. package/dist/client/assets/{command-CAjgUN60.js → command-kL2BpXNu.js} +1 -1
  111. package/dist/client/assets/{companion-mcps-section-B5j1olGB.js → companion-mcps-section-BWwhuQv7.js} +1 -1
  112. package/dist/client/assets/{config-ChuL84XS.js → config-CmZDuh3u.js} +1 -1
  113. package/dist/client/assets/{connect-D60mJT6h.js → connect-Cxk1UNDF.js} +1 -1
  114. package/dist/client/assets/{connect-layout-YDysA7af.js → connect-layout-CuQDm86w.js} +1 -1
  115. package/dist/client/assets/{connection-DD0hCw09.js → connection-ClykfAAS.js} +1 -1
  116. package/dist/client/assets/{connection-card-CyrhBBJS.js → connection-card-CKRGS9aW.js} +1 -1
  117. package/dist/client/assets/{connection-detail-DhwlKLOJ.js → connection-detail-CIN8FXIj.js} +1 -1
  118. package/dist/client/assets/{connection-form-helpers-BEx47naA.js → connection-form-helpers-DaJ65Rex.js} +1 -1
  119. package/dist/client/assets/{connections-CZn8bCAP.js → connections-q1djGcEd.js} +1 -1
  120. package/dist/client/assets/{content-tab-DshitHzC.js → content-tab-Dvm-MV4U.js} +3 -3
  121. package/dist/client/assets/{context-D0Ph-RBZ.js → context-BXY_cB7z.js} +1 -1
  122. package/dist/client/assets/{context-menu-DaGblEhL.js → context-menu-CJERsJPE.js} +1 -1
  123. package/dist/client/assets/{core.esm-BlIrt00V.js → core.esm-BG0jKDkq.js} +1 -1
  124. package/dist/client/assets/{create-organization-dialog-ee9_Fve8.js → create-organization-dialog-qyMaxypW.js} +1 -1
  125. package/dist/client/assets/{daily-pulse-CsWzX1Ru.js → daily-pulse-DeWjd8Jy.js} +1 -1
  126. package/dist/client/assets/{discover-C9CAEVb4.js → discover-0qam8o_r.js} +1 -1
  127. package/dist/client/assets/{domain-settings-CJaRsZyt.js → domain-settings-Ci1klqCY.js} +1 -1
  128. package/dist/client/assets/{drawer-BxIrQZqO.js → drawer-NCwSL4IN.js} +1 -1
  129. package/dist/client/assets/{editor-C0Y6NYE-.js → editor-BAFV_HOz.js} +1 -1
  130. package/dist/client/assets/{editor-classes-Bd7RVaJi.js → editor-classes-Bf1cMZ5c.js} +1 -1
  131. package/dist/client/assets/{empty-state-CeH8S3Yb.js → empty-state-CazxAouP.js} +1 -1
  132. package/dist/client/assets/{empty-state-Bv2fyayR.js → empty-state-CyvDawXM.js} +1 -1
  133. package/dist/client/assets/{extract-connection-data-CVxXe6TN.js → extract-connection-data-Df_4NBNm.js} +1 -1
  134. package/dist/client/assets/{feature-gate-BiCs7UB2.js → feature-gate-DKISz7u2.js} +1 -1
  135. package/dist/client/assets/{feature-paywall-Bg9evHOs.js → feature-paywall-BfJ3JcG2.js} +1 -1
  136. package/dist/client/assets/{file-explorer-DBjksoe3.js → file-explorer-DBf-vGM2.js} +1 -1
  137. package/dist/client/assets/{file-preview-ohLcWFR0.js → file-preview-DG6sL6GL.js} +1 -1
  138. package/dist/client/assets/{file-share-button-Cj6Po3M3.js → file-share-button-v2uCK60u.js} +1 -1
  139. package/dist/client/assets/{file-type-icon-Dxw9T3ag.js → file-type-icon-CnGkqsAH.js} +1 -1
  140. package/dist/client/assets/flat-project-DW1zMPL_.js +1 -0
  141. package/dist/client/assets/{folder-icon-CTDuIMqX.js → folder-icon-OnROrjIS.js} +1 -1
  142. package/dist/client/assets/{form-Db6N6TDa.js → form-B0S4gwZl.js} +1 -1
  143. package/dist/client/assets/{general-Cgs5w9co.js → general-Bwo2AG61.js} +1 -1
  144. package/dist/client/assets/{home-CeX3Z1XE.js → home-Pp3nSwfE.js} +1 -1
  145. package/dist/client/assets/{hosted-publish-feedback-JXcVEfrI.js → hosted-publish-feedback-jZYaiFNy.js} +1 -1
  146. package/dist/client/assets/{icon-button-WQQroCBK.js → icon-button-BDgagVz4.js} +1 -1
  147. package/dist/client/assets/{index-D8O82DD7.js → index-AXw2yr4_.js} +1 -1
  148. package/dist/client/assets/{index-DdxfBS9Y.js → index-B9UR2St-.js} +1 -1
  149. package/dist/client/assets/{index-p-1akJlT.js → index-BUcAISa8.js} +2 -2
  150. package/dist/client/assets/{index-LAQehZep.js → index-Bfspj4xO.js} +1 -1
  151. package/dist/client/assets/{index-tu8iygVP.js → index-CvWx2Izz.js} +1 -1
  152. package/dist/client/assets/{index-Bw0JSfbm.js → index-Dd00K3eL.js} +1 -1
  153. package/dist/client/assets/{index-DCkpKmlr.js → index-JOJ7PVEg.js} +1 -1
  154. package/dist/client/assets/{index-CE8cdWnC.js → index-VMpHqTms.js} +1 -1
  155. package/dist/client/assets/{index-mJxHbuG8.js → index-_4HSlqk7.js} +1 -1
  156. package/dist/client/assets/{index-XGgg6Ukt.js → index-awJH-yt2.js} +3 -3
  157. package/dist/client/assets/{index--5hJacOk.js → index-c-E5TfxF.js} +1 -1
  158. package/dist/client/assets/{index-BGYDBFHU.js → index-jyhHzpR3.js} +1 -1
  159. package/dist/client/assets/{index-BRCFiPag.js → index-qMd-hqZw.js} +1 -1
  160. package/dist/client/assets/{index-redirect-ClvH8pll.js → index-redirect-BxHx01ue.js} +1 -1
  161. package/dist/client/assets/{index-BtVJvkKj.js → index-rxNSDZLc.js} +1 -1
  162. package/dist/client/assets/{index-BdfVBfZr.js → index-xJOQw_q2.js} +1 -1
  163. package/dist/client/assets/{infiniteQueryObserver-LkWhFNmL.js → infiniteQueryObserver-DOzqu3CQ.js} +1 -1
  164. package/dist/client/assets/{infra-billing-BXK-vKKS.js → infra-billing-D938gqE_.js} +1 -1
  165. package/dist/client/assets/{input-DZSN2_kg.js → input-B74-qJgM.js} +3 -3
  166. package/dist/client/assets/{input-BwdVmY-Z.js → input-BZCpPpnc.js} +1 -1
  167. package/dist/client/assets/{integration-icon-BfiQkuuA.js → integration-icon-ChciBY2o.js} +1 -1
  168. package/dist/client/assets/{jira-icon-D82mcgHX.js → jira-icon-B6QeGFuc.js} +1 -1
  169. package/dist/client/assets/{label-D1700VqO.js → label-eEmb1iBr.js} +1 -1
  170. package/dist/client/assets/{layout-CmiJ0weC.js → layout-0OB0eIys.js} +1 -1
  171. package/dist/client/assets/{legacy-agents-deep-BBEazmY_.js → legacy-agents-deep-1rcXPVaq.js} +1 -1
  172. package/dist/client/assets/{legacy-main-redirect-DX4_1VIr.js → legacy-main-redirect-C4cHO-CO.js} +1 -1
  173. package/dist/client/assets/library-4m0WPS60.js +1 -0
  174. package/dist/client/assets/{library-tab-U68AV6c3.js → library-tab-1vjc8QRq.js} +1 -1
  175. package/dist/client/assets/{login-J_4Re9C6.js → login-Cr9q8XjG.js} +1 -1
  176. package/dist/client/assets/{markdown-yum68Wep.js → markdown-B_belhjs.js} +1 -1
  177. package/dist/client/assets/{mcp-app-renderer-CjApEMHO.js → mcp-app-renderer-BTEXkB1o.js} +1 -1
  178. package/dist/client/assets/{mcp-oauth-DyD71bgf.js → mcp-oauth-BjnYnOAT.js} +1 -1
  179. package/dist/client/assets/{mcp-oauth-i6-iEEVI.js → mcp-oauth-Df_GM2_g.js} +1 -1
  180. package/dist/client/assets/{members-C394WPAn.js → members-CQVWPaLO.js} +1 -1
  181. package/dist/client/assets/{memory-JQY8gvE2.js → memory-tRje6nGV.js} +1 -1
  182. package/dist/client/assets/{mini-report-page-xHazX5G_.js → mini-report-page-PBpsjjW-.js} +1 -1
  183. package/dist/client/assets/{mock-board-TN4Nq-YY.js → mock-board-BMnnvW9l.js} +1 -1
  184. package/dist/client/assets/{monaco-editor-BZbJgxOV.js → monaco-editor-D7Wz-MKW.js} +1 -1
  185. package/dist/client/assets/{monitoring-stats-row-DAZum_Qb.js → monitoring-stats-row-DsjQfEly.js} +1 -1
  186. package/dist/client/assets/{multi-select-JpvMfiVw.js → multi-select-VdJ2yUcb.js} +1 -1
  187. package/dist/client/assets/{mustache-Bt-JW5rB.js → mustache-BzIipqEK.js} +1 -1
  188. package/dist/client/assets/{new-project-dialog-C0rIX_XO.js → new-project-dialog-4pgTOLZa.js} +1 -1
  189. package/dist/client/assets/{oauth-callback-C5XzBraz.js → oauth-callback-Cgt1SkEU.js} +1 -1
  190. package/dist/client/assets/{oauth-callback-ai-provider-DcG85B23.js → oauth-callback-ai-provider-CJw6k__Q.js} +1 -1
  191. package/dist/client/assets/{onboarding-DW4LAZLj.js → onboarding-HsEzs1cx.js} +1 -1
  192. package/dist/client/assets/{openai-conversation-B_n_Z1ww.js → openai-conversation-C9xs6L0k.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-0ZawMDqn.js → optimistic-project-sidebar-views-Dp6MX9Wo.js} +1 -1
  194. package/dist/client/assets/{order-monitor-day-dqFhfYqs.js → order-monitor-day-kvoSv5Oy.js} +1 -1
  195. package/dist/client/assets/{organization-choice-B8th9GDj.js → organization-choice-Dx3Q-TEp.js} +1 -1
  196. package/dist/client/assets/{orgs-DxYMf8VM.js → orgs-BvIpo_CC.js} +1 -1
  197. package/dist/client/assets/{page-seo-form-Dkd11mxM.js → page-seo-form-BRGFtgzV.js} +1 -1
  198. package/dist/client/assets/{pair-CdvXgzho.js → pair-DTCbqEJJ.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-tDE3yVKX.js → plan-ladder-BosseGj-.js} +1 -1
  200. package/dist/client/assets/{popover-Cb6oJHii.js → popover-2LCOzLqM.js} +1 -1
  201. package/dist/client/assets/{post-calendar-CC5kL8Uu.js → post-calendar-B-KeJmLM.js} +1 -1
  202. package/dist/client/assets/{post-editor-AQrMiPgh.js → post-editor-BBwuotw_.js} +1 -1
  203. package/dist/client/assets/{preview-content-BUvb2joL.js → preview-content-BrSgIQdx.js} +1 -1
  204. package/dist/client/assets/{preview-dialog-C3L3Hf_k.js → preview-dialog-DxCc_83x.js} +1 -1
  205. package/dist/client/assets/{preview-panel-D-BuFBy0.js → preview-panel-CEvLrF57.js} +1 -1
  206. package/dist/client/assets/{preview-tab-LnJANPnP.js → preview-tab-EDXeaUjq.js} +3 -3
  207. package/dist/client/assets/{product-picker-dialog-nfttqvPX.js → product-picker-dialog-CJY03R9-.js} +1 -1
  208. package/dist/client/assets/{profile-BkI92qNB.js → profile-ocYhDdf-.js} +1 -1
  209. package/dist/client/assets/{project-app-view-CN3iYy1I.js → project-app-view-BIPtsxJX.js} +1 -1
  210. package/dist/client/assets/{project-feed-BK-cIWDp.js → project-feed-2x8KDo1u.js} +1 -1
  211. package/dist/client/assets/{project-icon-F3J_yQ0q.js → project-icon-BVi6jykh.js} +1 -1
  212. package/dist/client/assets/project-reports-CCEjXGH-.js +1 -0
  213. package/dist/client/assets/project-tasks-B_cB8jUa.js +1 -0
  214. package/dist/client/assets/{projects-t0-Z9tsc.js → projects-B1gqzvaP.js} +1 -1
  215. package/dist/client/assets/{projects-empty-state-C0yTvrcV.js → projects-empty-state-msmXPtF9.js} +1 -1
  216. package/dist/client/assets/{prompts-MYwpW0Lg.js → prompts-DPI0Lbhi.js} +1 -1
  217. package/dist/client/assets/record-editor-C0cJzt3s.js +1 -0
  218. package/dist/client/assets/{redirect-editor-CGtccN6N.js → redirect-editor-ClyrjULu.js} +1 -1
  219. package/dist/client/assets/reports-7MVtogQn.js +1 -0
  220. package/dist/client/assets/{reports-kTfamDed.js → reports-D0-3BDN9.js} +1 -1
  221. package/dist/client/assets/{reports-onboarding-RuKhb80u.js → reports-onboarding-D5Ohh65U.js} +1 -1
  222. package/dist/client/assets/{reports-tab-C31tcj9A.js → reports-tab-CGM4OgZ-.js} +2 -2
  223. package/dist/client/assets/{repositories-bY6iYAdw.js → repositories-BX0zzV9H.js} +1 -1
  224. package/dist/client/assets/{repository-binding-CrTJC4PH.js → repository-binding-C4OsSA6m.js} +1 -1
  225. package/dist/client/assets/{repository-import-picker-DC6F2OwG.js → repository-import-picker-B0pfCyxB.js} +1 -1
  226. package/dist/client/assets/{repository-picker-Bo-zD5oc.js → repository-picker-BjLyF0UU.js} +1 -1
  227. package/dist/client/assets/{require-capability-eym-U6A2.js → require-capability-Sr5QmqkV.js} +1 -1
  228. package/dist/client/assets/{required-auth-layout-B5cH35q0.js → required-auth-layout-BcWyX0tN.js} +1 -1
  229. package/dist/client/assets/{reset-password-DQCEjF6G.js → reset-password-Dv7DePXr.js} +1 -1
  230. package/dist/client/assets/{resizable-BNDCWJ7j.js → resizable-rQgJB4MP.js} +1 -1
  231. package/dist/client/assets/{resolve-tab-icon-DNW-g7NS.js → resolve-tab-icon-CcwQIqdW.js} +1 -1
  232. package/dist/client/assets/{review-settings-BvwWcj_E.js → review-settings-DaCbRDPV.js} +1 -1
  233. package/dist/client/assets/{roles-BjOwGYNe.js → roles-CMWEHao_.js} +1 -1
  234. package/dist/client/assets/{route-DdQnn3q9.js → route-BRpVGRtq.js} +1 -1
  235. package/dist/client/assets/route-Ch1P1tF0.js +1 -0
  236. package/dist/client/assets/{route-Cumdkp6N.js → route-CowAxBHf.js} +1 -1
  237. package/dist/client/assets/{sandbox-lifecycle-context-LiaBB_6I.js → sandbox-lifecycle-context-Cai1YOLP.js} +1 -1
  238. package/dist/client/assets/{schema-nZYp8MHf.js → schema-Ctps-XT5.js} +1 -1
  239. package/dist/client/assets/{schema-EWHGi9mE.js → schema-DFwdEHXk.js} +1 -1
  240. package/dist/client/assets/{scroll-area-mUNQ_2-E.js → scroll-area-BquREfD9.js} +1 -1
  241. package/dist/client/assets/{search-input-DmONJsTJ.js → search-input-B3OlXYBk.js} +1 -1
  242. package/dist/client/assets/{search-toggle-CDUbsFv3.js → search-toggle-DlbC-qm6.js} +1 -1
  243. package/dist/client/assets/{secret-ciphertext-LIZTOM-t.js → secret-ciphertext-DspRdh2f.js} +1 -1
  244. package/dist/client/assets/{secret-picker-Dtf5aH-D.js → secret-picker-QpjTt9i4.js} +1 -1
  245. package/dist/client/assets/{secrets-BcM5O7u3.js → secrets-CweZX_-G.js} +1 -1
  246. package/dist/client/assets/{sections-editor-CQG2qvyW.js → sections-editor-tLPCjatE.js} +1 -1
  247. package/dist/client/assets/{select-jUuHkfjB.js → select-BZtkY-6Q.js} +1 -1
  248. package/dist/client/assets/{select-model-dvdCc609.js → select-model-ypXtXaeM.js} +1 -1
  249. package/dist/client/assets/{seo-editor-Dx3q24BD.js → seo-editor-BThkwHKz.js} +1 -1
  250. package/dist/client/assets/{separator-CHyWK0Qn.js → separator-WCuRepY7.js} +1 -1
  251. package/dist/client/assets/{settings-tab-BtQzOYK6.js → settings-tab-B_OtBvtL.js} +1 -1
  252. package/dist/client/assets/{sheet-DMEBFfdP.js → sheet-wIGY1BhL.js} +1 -1
  253. package/dist/client/assets/{shell-layout-DA1U2kkD.js → shell-layout-C6in_tdZ.js} +1 -1
  254. package/dist/client/assets/site-editor-DN_jWyDx.js +1 -0
  255. package/dist/client/assets/{site-editor-toast-DpTt5s80.js → site-editor-toast-DzpqzRIN.js} +1 -1
  256. package/dist/client/assets/{skills-DQF-uSzE.js → skills-CfpoVQzd.js} +1 -1
  257. package/dist/client/assets/{slider-zbUWyrgS.js → slider-DlGWUSHl.js} +1 -1
  258. package/dist/client/assets/{sortable.esm-BSVJlRZf.js → sortable.esm-CX1GpTrE.js} +1 -1
  259. package/dist/client/assets/{sso-D91zcNn9.js → sso-YsEFJ35H.js} +1 -1
  260. package/dist/client/assets/{suggestion-DBa1TtKe.js → suggestion-BDDkx8wt.js} +1 -1
  261. package/dist/client/assets/{switch-D5BJVOIP.js → switch-ByNrRBdU.js} +1 -1
  262. package/dist/client/assets/{symbol-BNQRzFZG.js → symbol-BMdRj-zf.js} +1 -1
  263. package/dist/client/assets/{synced-repos-DbzzsO4o.js → synced-repos-CTcDXXZs.js} +1 -1
  264. package/dist/client/assets/{tab-icon-glyph-DSbT5Juj.js → tab-icon-glyph-DqaNYjGu.js} +1 -1
  265. package/dist/client/assets/{table-BxCPcPbb.js → table-BnEG4fsZ.js} +1 -1
  266. package/dist/client/assets/{tabs-DG-0hqxq.js → tabs-CwSp61cB.js} +1 -1
  267. package/dist/client/assets/{task-board-qH-zSxS3.js → task-board-hdrVwFVS.js} +1 -1
  268. package/dist/client/assets/{task-route-DQ-RXVcD.js → task-route-CxU8BSZk.js} +1 -1
  269. package/dist/client/assets/{task-status-BdHKicFV.js → task-status-DpKiRcZA.js} +1 -1
  270. package/dist/client/assets/taskboard-analytics-9U6nRSeM.js +1 -0
  271. package/dist/client/assets/tasks-9qvqdnze.js +1 -0
  272. package/dist/client/assets/{tasks-7BmccsLt.js → tasks-Ckh-cnxw.js} +1 -1
  273. package/dist/client/assets/{textarea-CQEBFigV.js → textarea-CRyjwEqe.js} +1 -1
  274. package/dist/client/assets/{thread-analytics-D6QACDju.js → thread-analytics-BFx9-ViN.js} +1 -1
  275. package/dist/client/assets/{thread-intent-LfHRYRWC.js → thread-intent-DhkLy13k.js} +1 -1
  276. package/dist/client/assets/{thread-route-DPF9Q-Zg.js → thread-route-BzAkvXZO.js} +1 -1
  277. package/dist/client/assets/{thread-route-BIvY3iy0.js → thread-route-iBVNlpET.js} +1 -1
  278. package/dist/client/assets/{thread-sheet-body-BLMeXbLM.js → thread-sheet-body-CCi8emNA.js} +1 -1
  279. package/dist/client/assets/{time-range-picker--BYX_87N.js → time-range-picker-BrfdBzqI.js} +1 -1
  280. package/dist/client/assets/{toggle-group-BEVDihe8.js → toggle-group-Cke1wKDH.js} +1 -1
  281. package/dist/client/assets/{tool-namespace-Dcr66XbC.js → tool-namespace-BXFHxu5_.js} +1 -1
  282. package/dist/client/assets/{toolbar-icon-button-DXJ1vH5Z.js → toolbar-icon-button-WOmWcuPV.js} +1 -1
  283. package/dist/client/assets/{tooltip-OxzEYyq8.js → tooltip-Npd1IBFB.js} +1 -1
  284. package/dist/client/assets/{tooltipContext-F_F397K5.js → tooltipContext-C_RxKwqR.js} +1 -1
  285. package/dist/client/assets/{track-BzNFS1Wu.js → track-DWiQitlP.js} +1 -1
  286. package/dist/client/assets/{types-2GaxflNM.js → types-JYftUHor.js} +1 -1
  287. package/dist/client/assets/{url-slug-DIeHU92G.js → url-slug-psmAhJiF.js} +1 -1
  288. package/dist/client/assets/{usage-stats-7JI4qqsk.js → usage-stats-DeKdK9SW.js} +1 -1
  289. package/dist/client/assets/{use-ai-providers-Gj0qAd5n.js → use-ai-providers-CBBzjFhl.js} +1 -1
  290. package/dist/client/assets/{use-app-takeover-bhFW4jjZ.js → use-app-takeover-zY0NJ0sD.js} +1 -1
  291. package/dist/client/assets/{use-automations-CHxa5Awm.js → use-automations-CjaoEOVQ.js} +1 -1
  292. package/dist/client/assets/{use-autosave-Cg3HXp8E.js → use-autosave-C0hpkW37.js} +1 -1
  293. package/dist/client/assets/{use-chat-navigation-Bsf8Ofz7.js → use-chat-navigation-Cxan89R8.js} +1 -1
  294. package/dist/client/assets/{use-clock-tick-CZTHUR3c.js → use-clock-tick-DDv64CjX.js} +1 -1
  295. package/dist/client/assets/{use-connect-companion-BdQpJxNA.js → use-connect-companion-Cq1d8llk.js} +1 -1
  296. package/dist/client/assets/{use-connection-DJY11N6-.js → use-connection-DD-60zit.js} +1 -1
  297. package/dist/client/assets/{use-content-sync--SRRJ-Mw.js → use-content-sync-B6jQ4Cv-.js} +1 -1
  298. package/dist/client/assets/{use-copy-CCruuyq5.js → use-copy-D8rIRHRy.js} +1 -1
  299. package/dist/client/assets/{use-create-virtual-mcp-xZ1qTsxw.js → use-create-virtual-mcp-C6rhnZK4.js} +1 -1
  300. package/dist/client/assets/{use-date-fns-locale-BdVPe2o0.js → use-date-fns-locale-BHSKPU1I.js} +1 -1
  301. package/dist/client/assets/{use-debounced-autosave-B72Pttro.js → use-debounced-autosave-DlgW8h0y.js} +1 -1
  302. package/dist/client/assets/{use-debounced-value-Ci8g1xZm.js → use-debounced-value-DAimUErS.js} +1 -1
  303. package/dist/client/assets/{use-deco-credits-CYX05LPq.js → use-deco-credits-g8JxcvuQ.js} +1 -1
  304. package/dist/client/assets/{use-decopilot-events-Y_bEM1qx.js → use-decopilot-events-1Ue6t9uD.js} +1 -1
  305. package/dist/client/assets/{use-delete-connection-BpaP2GE0.js → use-delete-connection-aWCoQCSI.js} +1 -1
  306. package/dist/client/assets/{use-deployment-admin-CXE8V2Rr.js → use-deployment-admin-C_cAoqcz.js} +1 -1
  307. package/dist/client/assets/{use-ensure-project-folder-1ZUF1juP.js → use-ensure-project-folder-COMVsdzC.js} +1 -1
  308. package/dist/client/assets/{use-fast-preview-draft-url-RKLJh4cF.js → use-fast-preview-draft-url-CnqLh_PK.js} +1 -1
  309. package/dist/client/assets/{use-file-configs-CaudfVHS.js → use-file-configs-Yj2yOnDl.js} +1 -1
  310. package/dist/client/assets/{use-infinite-scroll-BzeoWUs-.js → use-infinite-scroll-Dzt1HFZA.js} +1 -1
  311. package/dist/client/assets/{use-join-requests-B0Lb4Xld.js → use-join-requests-Ca0-ZmOx.js} +1 -1
  312. package/dist/client/assets/{use-main-panel-tabs-CpKxJuHK.js → use-main-panel-tabs-Dw0WqVQl.js} +1 -1
  313. package/dist/client/assets/{use-mcp-auth-status-CD5U_xkB.js → use-mcp-auth-status-Bkm1SdFb.js} +1 -1
  314. package/dist/client/assets/{use-mcp-client-TpYhnmjl.js → use-mcp-client-CXzIAVI_.js} +1 -1
  315. package/dist/client/assets/{use-mcp-prompts-CpmfoZzy.js → use-mcp-prompts-B04lynbc.js} +1 -1
  316. package/dist/client/assets/{use-mcp-tools-BihOJhwY.js → use-mcp-tools-DOnkoD66.js} +1 -1
  317. package/dist/client/assets/{use-members-qFBNBM3N.js → use-members-DOrbNcAJ.js} +1 -1
  318. package/dist/client/assets/{use-mobile-vYE2HB1P.js → use-mobile-DszEwU_T.js} +1 -1
  319. package/dist/client/assets/{use-navigate-to-agent-p0i1D6nD.js → use-navigate-to-agent-BE6ZEPUi.js} +1 -1
  320. package/dist/client/assets/{use-open-billing-url-D_QihQeB.js → use-open-billing-url-DUKZxYlJ.js} +1 -1
  321. package/dist/client/assets/{use-org-auth-client-Fk6ICmBW.js → use-org-auth-client-CpM0RfU1.js} +1 -1
  322. package/dist/client/assets/{use-org-fs-CAd5ZqC2.js → use-org-fs-D7bxmks4.js} +1 -1
  323. package/dist/client/assets/{use-org-repo-syncs-CQBUzeD0.js → use-org-repo-syncs-DYJrqXto.js} +1 -1
  324. package/dist/client/assets/{use-org-sso-BfZer93d.js → use-org-sso-Cmy5SNH_.js} +1 -1
  325. package/dist/client/assets/{use-organization-roles-Dg8DgOVo.js → use-organization-roles-Ch4iCVoq.js} +1 -1
  326. package/dist/client/assets/{use-organization-settings-BFBW8RTu.js → use-organization-settings-DjWvQexi.js} +1 -1
  327. package/dist/client/assets/{use-panel-navigate-Cz7L1teW.js → use-panel-navigate-CeDVVCkS.js} +1 -1
  328. package/dist/client/assets/{use-project-native-view-presence-Bxsn_JFS.js → use-project-native-view-presence-YWMyr72T.js} +1 -1
  329. package/dist/client/assets/{use-project-scope--iaz7oOx.js → use-project-scope-5YpNgUL6.js} +1 -1
  330. package/dist/client/assets/{use-recent-apps-BlKs22ZO.js → use-recent-apps-BY5qGNsG.js} +1 -1
  331. package/dist/client/assets/{use-releases-DJ7h8Qee.js → use-releases-DNcZGEW5.js} +1 -1
  332. package/dist/client/assets/{use-reports-diagnostic-CBZ_dauu.js → use-reports-diagnostic-CkT6fJ7D.js} +1 -1
  333. package/dist/client/assets/{use-secrets-DS6b7i0g.js → use-secrets-uk71zh7-.js} +1 -1
  334. package/dist/client/assets/{use-section-preview-base-DhPFhZwv.js → use-section-preview-base-BYZiHlaA.js} +1 -1
  335. package/dist/client/assets/{use-tags-BYGeHLbk.js → use-tags-CKSnijO-.js} +1 -1
  336. package/dist/client/assets/{use-task-board-analytics-kSCSn8a8.js → use-task-board-analytics-q-mfDhSM.js} +1 -1
  337. package/dist/client/assets/{use-task-board-events-BXbE2HoE.js → use-task-board-events-D29THDyx.js} +1 -1
  338. package/dist/client/assets/{use-task-board-item-prs-BXR3CLsn.js → use-task-board-item-prs-C32PmmQm.js} +1 -1
  339. package/dist/client/assets/{use-task-board-items-Cl2KTjjg.js → use-task-board-items-Cj9ZgoVC.js} +1 -1
  340. package/dist/client/assets/{use-task-metadata-CEVJreaj.js → use-task-metadata-DnDtZNKw.js} +1 -1
  341. package/dist/client/assets/{use-thread-analytics-DI0UUy4e.js → use-thread-analytics-DqFvOcsE.js} +1 -1
  342. package/dist/client/assets/{use-thread-outputs-DxXrDY7V.js → use-thread-outputs-C6dqZco1.js} +1 -1
  343. package/dist/client/assets/useInfiniteQuery-DRIZEKZQ.js +1 -0
  344. package/dist/client/assets/{useQueries-CuK-BS9F.js → useQueries-Ds44Skcl.js} +1 -1
  345. package/dist/client/assets/useSuspenseInfiniteQuery-DLwZomQy.js +1 -0
  346. package/dist/client/assets/{users-wJGegpez.js → users-CuQ1a_93.js} +1 -1
  347. package/dist/client/assets/{utils-Ci3T7CsR.js → utils-B4VCCAxN.js} +1 -1
  348. package/dist/client/assets/{variant-calendar-Cjo5vNvc.js → variant-calendar-i6jj6ehs.js} +1 -1
  349. package/dist/client/assets/{variant-draft-pointer-CFIC5SMO.js → variant-draft-pointer-DOXokiAV.js} +1 -1
  350. package/dist/client/assets/{view-mode-toggle-CdIfZN7k.js → view-mode-toggle-7-N5f6LY.js} +1 -1
  351. package/dist/client/assets/{virtual-mcp-BJLRloMY.js → virtual-mcp-BT4ljKsC.js} +1 -1
  352. package/dist/client/assets/{watch-sse-pool-CTU0zZto.js → watch-sse-pool-CBn5OZ_Z.js} +1 -1
  353. package/dist/client/index.html +1 -1
  354. package/dist/server/server.js +618 -618
  355. package/package.json +1 -1
  356. package/dist/client/assets/agent-app-tzNa-TNJ.js +0 -1
  357. package/dist/client/assets/agent-deck-BCqe639U.js +0 -1
  358. package/dist/client/assets/agent-library-DNOIKpUu.js +0 -1
  359. package/dist/client/assets/agent-library-file-DDutw3lu.js +0 -1
  360. package/dist/client/assets/agent-settings-fdQZXBGW.js +0 -1
  361. package/dist/client/assets/agent-site-editor-code-Bh5LoZTU.js +0 -2
  362. package/dist/client/assets/agent-site-editor-content-D8dj4Hmz.js +0 -1
  363. package/dist/client/assets/agent-site-editor-preview-DQYY8I7P.js +0 -1
  364. package/dist/client/assets/agent-view-DmLNs6HS.js +0 -1
  365. package/dist/client/assets/api-keys-CINFl9fA.js +0 -1
  366. package/dist/client/assets/cms-settings-editor-B8EnFyLX.js +0 -1
  367. package/dist/client/assets/flat-project-NwcrmxWG.js +0 -1
  368. package/dist/client/assets/library-CaFuwk0-.js +0 -1
  369. package/dist/client/assets/project-reports-DgyjcFph.js +0 -1
  370. package/dist/client/assets/project-tasks-CmYcTX9M.js +0 -1
  371. package/dist/client/assets/record-editor-CBoC3ga-.js +0 -1
  372. package/dist/client/assets/reports-4V9HF3Ys.js +0 -1
  373. package/dist/client/assets/route-Nd3qdGiT.js +0 -1
  374. package/dist/client/assets/site-editor-DRIpZazl.js +0 -1
  375. package/dist/client/assets/taskboard-analytics-BPqcdFgc.js +0 -1
  376. package/dist/client/assets/tasks-CoDEIHpe.js +0 -1
  377. package/dist/client/assets/useInfiniteQuery-v5wivWhC.js +0 -1
  378. package/dist/client/assets/useSuspenseInfiniteQuery-BZNUHruQ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{c as $,b as j,r as E,j as x,l as q,ah as Tt,t as ue,aX as Xe,a2 as vt,m as At,K as Mt,b4 as St,h as Je}from"./index-p-1akJlT.js";import{a as Ct,n as Ye,E as ie,o as Rt,x as Et,y as P,z as $t,A as _t,B as et,C as N,G as Ee,H as Lt,I as It,J as $e,K as zt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as be,U as Pt,V as Ht,W as jt,X as Nt,Y as Ot,s as Bt,Z as Dt,u as Ft,b as qt}from"./usage-stats-7JI4qqsk.js";import{T as _,n as Wt,i as Ut,E as Zt}from"./editor-classes-Bd7RVaJi.js";import{a as Gt,e as nt,s as Vt,S as Kt}from"./suggestion-DBa1TtKe.js";import{B as Qt,c as Xt,t as Jt,C as rt,f as Yt,g as _e,s as en,m as Le,a as Ie,b as tn,d as ze,e as nn,h as rn,i as sn,j as an,k as on,l as ln,n as cn}from"./index-mJxHbuG8.js";import{ag as un,ah as hn,aj as dn,Z as pn,bd as fn,aV as gn}from"./agent-icon-6qcGzKLI.js";import{i as mn}from"./SwitchHorizontal01-lbkLP1BV.js";import{i as kn}from"./Link01-CdThLL91.js";import{s as bn}from"./Trash01-CSWWBhZk.js";import{i as xn,b as wn}from"./use-org-fs-CAd5ZqC2.js";import{E as Pe,i as st,c as yn,d as Tn,A as vn,e as An,m as Mn,f as Sn,g as Cn}from"./markdown-yum68Wep.js";import{A as Rn}from"./avatar-DLW_zv2o.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-CAjgUN60.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-Fk6ICmBW.js";import{I as Hn}from"./icon-button-WQQroCBK.js";function jn(t){const e=$.c(30),{editor:n}=t,r=j(),[s,i]=E.useState(!1),[a,l]=E.useState(""),[o,u]=E.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const h=c;let d;e[2]!==n||e[3]!==s?(d=()=>{if(s){i(!1);return}const M=n.getAttributes("link").href;l(typeof M=="string"?M:""),u(!1),i(!0)},e[2]=n,e[3]=s,e[4]=d):d=e[4];const f=d;let p;e[5]!==n?(p=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),i(!1)},e[5]=n,e[6]=p):p=e[6];const g=p;let m;e[7]!==a||e[8]!==n||e[9]!==g?(m=()=>{const M=Wt(a);if(M===""){g();return}if(!Ut(M)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:M}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let w;e[11]!==r?(w=r("markdownEditor.link"),e[11]=r,e[12]=w):w=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=x.jsx(kn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=x.jsx(_,{active:h,label:w,onClick:f,children:y}),e[14]=h,e[15]=w,e[16]=f,e[17]=T):T=e[17];let b;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(b=s&&x.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md border bg-popover p-1 shadow-md",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[x.jsx("input",{autoFocus:!0,type:"text","aria-label":r("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:r("markdownEditor.linkPlaceholder"),value:a,onChange:M=>{l(M.target.value),u(!1)},onKeyDown:M=>{M.key==="Enter"?(M.preventDefault(),k()):M.key==="Escape"&&(M.preventDefault(),i(!1),n.chain().focus().run())},className:q("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),x.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:x.jsx(Tt,{size:14})}),h&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.jsx(bn,{size:14})})]}),e[18]=h,e[19]=k,e[20]=a,e[21]=n,e[22]=o,e[23]=s,e[24]=g,e[25]=r,e[26]=b):b=e[26];let v;return e[27]!==T||e[28]!==b?(v=x.jsxs("div",{className:"relative",children:[T,b]}),e[27]=T,e[28]=b,e[29]=v):v=e[29],v}const le=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=x.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},He=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=x.jsx("span",{className:"text-[11px] font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},it=[1,2,3],Nn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function On(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:Bn},e[0]=n,e[1]=a):a=e[1];const l=Ct(a);let o;e[2]!==r?(o=r("markdownEditor.heading1"),e[2]=r,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("markdownEditor.heading2"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==r?(c=r("markdownEditor.heading3"),e[6]=r,e[7]=c):c=e[7];let h;e[8]!==o||e[9]!==u||e[10]!==c?(h={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=h):h=e[11];const d=h;let f;e[12]!==n||e[13]!==d||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&x.jsxs(Qt,{editor:n,shouldShow:Nn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg border border-border bg-popover p-1 shadow-md","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[x.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:x.jsx(un,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(hn,{size:14})}),x.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:x.jsx(dn,{size:14})}),x.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:x.jsx(pn,{size:14})}),x.jsx(le,{}),it.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:x.jsx(He,{children:`H${g}`})},g)),x.jsx(le,{}),x.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:x.jsx(mn,{size:14})}),x.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:x.jsx(He,{children:"1."})}),x.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:x.jsx(fn,{size:14})}),x.jsx(le,{}),x.jsx(jn,{editor:n})]}),e[12]=n,e[13]=d,e[14]=s,e[15]=l,e[16]=r,e[17]=f):f=e[17];let p;return e[18]!==f?(p=x.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function Bn(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:it.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Dn=10,Fn=25,qn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function Wn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??qn[t.type]??""}function Un(){const t=$.c(4),e=j(),{upload:n}=xn(Pe),r=wn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Dn:Fn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?yn:Tn,c=`${crypto.randomUUID()}${Wn(a)}`;try{return await n.mutateAsync({dir:u,files:[new File([a],c,{type:a.type})]}),r(`${u}/${c}`)}catch{return ue.error(e("markdownEditor.uploadFailed",{name:a.name})),null}}},t[0]=r,t[1]=e,t[2]=n,t[3]=s):s=t[3],s}const ee=new Ye("uploadSlots"),Zn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Rt({key:ee,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(ee);if(!t.docChanged&&!n)return e;const r=new Map;for(const[s,i]of e)r.set(s,t.mapping.map(i));if(n){const[s,i]=n;i===null?r.delete(s):r.set(s,i)}return r}}})]}});function he(t,e,n){return t.setMeta(ee,[e,n])}function Gn(t,e){return ee.getState(t)?.get(e)}function Vn(t,e,n,r,s){const{schema:i}=t.state,a=i.nodes[n];if(!a)return;const l=a.create(r),o=t.state.selection.to===e,u=t.state.doc.resolve(e),c=u.parent.textBetween(Math.max(0,u.parentOffset-1),u.parentOffset,void 0,""),h=()=>i.text(" "),d=l.isInline?[...c&&!/\s/.test(c)?[h()]:[],l,h()]:l,f=t.state.tr.replaceWith(e,e,d);let p=e,g=e;f.mapping.maps.at(-1)?.forEach((T,b,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,b)=>{T===l&&(m=b+T.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const w=i.nodes.paragraph;m!==void 0&&l.isBlock&&w&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,w.create()),k=m+1);const y=Et.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Kn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Qn(t=!0){const e=j(),{uploadFile:n}=Un(),r=E.useRef(n);r.current=n;const[s,i]=E.useState(0),a=E.useRef(0),l=h=>{a.current+=h,i(a.current)},o=(h,d,f)=>{if(!t||d.length===0)return!1;l(d.length);const p=Symbol("upload");return h.dispatch(he(h.state.tr,p,f)),(async()=>{for(const g of d)try{const m=await r.current(g);if(!m||h.isDestroyed)continue;const k=st(g);Vn(h,Gn(h.state,p)??h.state.selection.to,k?"image":"attachment",k?{src:m,alt:g.name}:{href:m,name:g.name},p)}catch{ue.error(e("markdownEditor.uploadFailed",{name:g.name}))}finally{l(-1)}h.isDestroyed||h.dispatch(he(h.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(h,d)=>{const f=Kn(d.clipboardData);return f.length===0?!1:(d.stopPropagation(),o(h,f,h.state.selection.to))},handleDrop:(h,d,f,p)=>{if(p)return!1;const g=Array.from(d.dataTransfer?.files??[]);if(g.length===0)return!1;const m=h.posAtCoords({left:d.clientX,top:d.clientY})?.pos;return m===void 0?!1:(d.stopPropagation(),o(h,g,m))}}}function xe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=xe();function at(t){F=t}var O={exec:()=>null};function A(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(R.caret,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,e)};return r}var Xn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Jn=/^(?:[ \t]*(?:\n|$))+/,Yn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,er=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,K=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ot=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lt=A(ot).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),nr=A(ot).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ye=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ir=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,we).getRegex(),ae="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ar=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ve).replace("tag",ae).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ct=A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),or=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ct).getRegex(),Ae={blockquote:or,code:Yn,def:sr,fences:er,heading:tr,hr:K,html:ar,lheading:lt,list:ir,newline:Jn,paragraph:ct,table:O,text:rr},je=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),lr={...Ae,lheading:nr,table:je,paragraph:A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex()},cr={...Ae,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:O,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(ye).replace("hr",K).replace("heading",` *#{1,6} *[^
1
+ import{c as $,b as j,r as E,j as x,l as q,ah as Tt,t as ue,aX as Xe,a2 as vt,m as At,K as Mt,b4 as St,h as Je}from"./index-BUcAISa8.js";import{a as Ct,n as Ye,E as ie,o as Rt,x as Et,y as P,z as $t,A as _t,B as et,C as N,G as Ee,H as Lt,I as It,J as $e,K as zt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as be,U as Pt,V as Ht,W as jt,X as Nt,Y as Ot,s as Bt,Z as Dt,u as Ft,b as qt}from"./usage-stats-DeKdK9SW.js";import{T as _,n as Wt,i as Ut,E as Zt}from"./editor-classes-Bf1cMZ5c.js";import{a as Gt,e as nt,s as Vt,S as Kt}from"./suggestion-BDDkx8wt.js";import{B as Qt,c as Xt,t as Jt,C as rt,f as Yt,g as _e,s as en,m as Le,a as Ie,b as tn,d as ze,e as nn,h as rn,i as sn,j as an,k as on,l as ln,n as cn}from"./index-_4HSlqk7.js";import{ag as un,ah as hn,aj as dn,Z as pn,bd as fn,aV as gn}from"./agent-icon-u2ivNkJK.js";import{i as mn}from"./SwitchHorizontal01-BMvJE9CE.js";import{i as kn}from"./Link01-COgU4X0d.js";import{s as bn}from"./Trash01-DtrweZMg.js";import{i as xn,b as wn}from"./use-org-fs-D7bxmks4.js";import{E as Pe,i as st,c as yn,d as Tn,A as vn,e as An,m as Mn,f as Sn,g as Cn}from"./markdown-B_belhjs.js";import{A as Rn}from"./avatar-k7zVZ1nb.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-kL2BpXNu.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-CpM0RfU1.js";import{I as Hn}from"./icon-button-BDgagVz4.js";function jn(t){const e=$.c(30),{editor:n}=t,r=j(),[s,i]=E.useState(!1),[a,l]=E.useState(""),[o,u]=E.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const h=c;let d;e[2]!==n||e[3]!==s?(d=()=>{if(s){i(!1);return}const M=n.getAttributes("link").href;l(typeof M=="string"?M:""),u(!1),i(!0)},e[2]=n,e[3]=s,e[4]=d):d=e[4];const f=d;let p;e[5]!==n?(p=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),i(!1)},e[5]=n,e[6]=p):p=e[6];const g=p;let m;e[7]!==a||e[8]!==n||e[9]!==g?(m=()=>{const M=Wt(a);if(M===""){g();return}if(!Ut(M)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:M}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let w;e[11]!==r?(w=r("markdownEditor.link"),e[11]=r,e[12]=w):w=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=x.jsx(kn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=x.jsx(_,{active:h,label:w,onClick:f,children:y}),e[14]=h,e[15]=w,e[16]=f,e[17]=T):T=e[17];let b;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(b=s&&x.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md border bg-popover p-1 shadow-md",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[x.jsx("input",{autoFocus:!0,type:"text","aria-label":r("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:r("markdownEditor.linkPlaceholder"),value:a,onChange:M=>{l(M.target.value),u(!1)},onKeyDown:M=>{M.key==="Enter"?(M.preventDefault(),k()):M.key==="Escape"&&(M.preventDefault(),i(!1),n.chain().focus().run())},className:q("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),x.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:x.jsx(Tt,{size:14})}),h&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.jsx(bn,{size:14})})]}),e[18]=h,e[19]=k,e[20]=a,e[21]=n,e[22]=o,e[23]=s,e[24]=g,e[25]=r,e[26]=b):b=e[26];let v;return e[27]!==T||e[28]!==b?(v=x.jsxs("div",{className:"relative",children:[T,b]}),e[27]=T,e[28]=b,e[29]=v):v=e[29],v}const le=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=x.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},He=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=x.jsx("span",{className:"text-[11px] font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},it=[1,2,3],Nn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function On(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:Bn},e[0]=n,e[1]=a):a=e[1];const l=Ct(a);let o;e[2]!==r?(o=r("markdownEditor.heading1"),e[2]=r,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("markdownEditor.heading2"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==r?(c=r("markdownEditor.heading3"),e[6]=r,e[7]=c):c=e[7];let h;e[8]!==o||e[9]!==u||e[10]!==c?(h={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=h):h=e[11];const d=h;let f;e[12]!==n||e[13]!==d||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&x.jsxs(Qt,{editor:n,shouldShow:Nn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg border border-border bg-popover p-1 shadow-md","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[x.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:x.jsx(un,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(hn,{size:14})}),x.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:x.jsx(dn,{size:14})}),x.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:x.jsx(pn,{size:14})}),x.jsx(le,{}),it.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:x.jsx(He,{children:`H${g}`})},g)),x.jsx(le,{}),x.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:x.jsx(mn,{size:14})}),x.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:x.jsx(He,{children:"1."})}),x.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:x.jsx(fn,{size:14})}),x.jsx(le,{}),x.jsx(jn,{editor:n})]}),e[12]=n,e[13]=d,e[14]=s,e[15]=l,e[16]=r,e[17]=f):f=e[17];let p;return e[18]!==f?(p=x.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function Bn(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:it.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Dn=10,Fn=25,qn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function Wn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??qn[t.type]??""}function Un(){const t=$.c(4),e=j(),{upload:n}=xn(Pe),r=wn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Dn:Fn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?yn:Tn,c=`${crypto.randomUUID()}${Wn(a)}`;try{return await n.mutateAsync({dir:u,files:[new File([a],c,{type:a.type})]}),r(`${u}/${c}`)}catch{return ue.error(e("markdownEditor.uploadFailed",{name:a.name})),null}}},t[0]=r,t[1]=e,t[2]=n,t[3]=s):s=t[3],s}const ee=new Ye("uploadSlots"),Zn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Rt({key:ee,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(ee);if(!t.docChanged&&!n)return e;const r=new Map;for(const[s,i]of e)r.set(s,t.mapping.map(i));if(n){const[s,i]=n;i===null?r.delete(s):r.set(s,i)}return r}}})]}});function he(t,e,n){return t.setMeta(ee,[e,n])}function Gn(t,e){return ee.getState(t)?.get(e)}function Vn(t,e,n,r,s){const{schema:i}=t.state,a=i.nodes[n];if(!a)return;const l=a.create(r),o=t.state.selection.to===e,u=t.state.doc.resolve(e),c=u.parent.textBetween(Math.max(0,u.parentOffset-1),u.parentOffset,void 0,""),h=()=>i.text(" "),d=l.isInline?[...c&&!/\s/.test(c)?[h()]:[],l,h()]:l,f=t.state.tr.replaceWith(e,e,d);let p=e,g=e;f.mapping.maps.at(-1)?.forEach((T,b,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,b)=>{T===l&&(m=b+T.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const w=i.nodes.paragraph;m!==void 0&&l.isBlock&&w&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,w.create()),k=m+1);const y=Et.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Kn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Qn(t=!0){const e=j(),{uploadFile:n}=Un(),r=E.useRef(n);r.current=n;const[s,i]=E.useState(0),a=E.useRef(0),l=h=>{a.current+=h,i(a.current)},o=(h,d,f)=>{if(!t||d.length===0)return!1;l(d.length);const p=Symbol("upload");return h.dispatch(he(h.state.tr,p,f)),(async()=>{for(const g of d)try{const m=await r.current(g);if(!m||h.isDestroyed)continue;const k=st(g);Vn(h,Gn(h.state,p)??h.state.selection.to,k?"image":"attachment",k?{src:m,alt:g.name}:{href:m,name:g.name},p)}catch{ue.error(e("markdownEditor.uploadFailed",{name:g.name}))}finally{l(-1)}h.isDestroyed||h.dispatch(he(h.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(h,d)=>{const f=Kn(d.clipboardData);return f.length===0?!1:(d.stopPropagation(),o(h,f,h.state.selection.to))},handleDrop:(h,d,f,p)=>{if(p)return!1;const g=Array.from(d.dataTransfer?.files??[]);if(g.length===0)return!1;const m=h.posAtCoords({left:d.clientX,top:d.clientY})?.pos;return m===void 0?!1:(d.stopPropagation(),o(h,g,m))}}}function xe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=xe();function at(t){F=t}var O={exec:()=>null};function A(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(R.caret,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,e)};return r}var Xn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Jn=/^(?:[ \t]*(?:\n|$))+/,Yn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,er=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,K=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ot=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lt=A(ot).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),nr=A(ot).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ye=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ir=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,we).getRegex(),ae="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ar=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ve).replace("tag",ae).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ct=A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),or=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ct).getRegex(),Ae={blockquote:or,code:Yn,def:sr,fences:er,heading:tr,hr:K,html:ar,lheading:lt,list:ir,newline:Jn,paragraph:ct,table:O,text:rr},je=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),lr={...Ae,lheading:nr,table:je,paragraph:A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex()},cr={...Ae,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:O,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(ye).replace("hr",K).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",lt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ur=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ut=/^( {2,}|\\)\n(?!\s*$)/,dr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,W=/[\p{P}\p{S}]/u,oe=/[\s\p{P}\p{S}]/u,Me=/[^\s\p{P}\p{S}]/u,pr=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,oe).getRegex(),ht=/(?!~)[\p{P}\p{S}]/u,fr=/(?!~)[\s\p{P}\p{S}]/u,gr=/(?:[^\s\p{P}\p{S}]|~)/u,mr=A(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Xn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),dt=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,kr=A(dt,"u").replace(/punct/g,W).getRegex(),br=A(dt,"u").replace(/punct/g,ht).getRegex(),pt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xr=A(pt,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),wr=A(pt,"gu").replace(/notPunctSpace/g,gr).replace(/punctSpace/g,fr).replace(/punct/g,ht).getRegex(),yr=A("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),Tr=A(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,W).getRegex(),vr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ar=A(vr,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),Mr=A(/\\(punct)/,"gu").replace(/punct/g,W).getRegex(),Sr=A(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Cr=A(ve).replace("(?:-->|$)","-->").getRegex(),Rr=A("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Cr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),te=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Er=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ft=A(/^!?\[(label)\]\[(ref)\]/).replace("label",te).replace("ref",Te).getRegex(),gt=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Te).getRegex(),$r=A("reflink|nolink(?!\\()","g").replace("reflink",ft).replace("nolink",gt).getRegex(),Ne=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Se={_backpedal:O,anyPunctuation:Mr,autolink:Sr,blockSkip:mr,br:ut,code:hr,del:O,delLDelim:O,delRDelim:O,emStrongLDelim:kr,emStrongRDelimAst:xr,emStrongRDelimUnd:yr,escape:ur,link:Er,nolink:gt,punctuation:pr,reflink:ft,reflinkSearch:$r,tag:Rr,text:dr,url:O},_r={...Se,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()},de={...Se,emStrongRDelimAst:wr,emStrongLDelim:br,delLDelim:Tr,delRDelim:Ar,url:A(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ne).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:A(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ne).getRegex()},Lr={...de,br:A(ut).replace("{2,}","*").getRegex(),text:A(de.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Q={normal:Ae,gfm:lr,pedantic:cr},U={normal:Se,gfm:de,breaks:Lr,pedantic:_r},Ir={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Oe=t=>Ir[t];function z(t,e){if(e){if(R.escapeTest.test(t))return t.replace(R.escapeReplace,Oe)}else if(R.escapeTestNoEncode.test(t))return t.replace(R.escapeReplaceNoEncode,Oe);return t}function Be(t){try{t=encodeURI(t).replace(R.percentDecode,"%")}catch{return null}return t}function De(t,e){let n=t.replace(R.findPipe,(i,a,l)=>{let o=!1,u=a;for(;--u>=0&&l[u]==="\\";)o=!o;return o?"|":" |"}),r=n.split(R.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(R.slashPipe,"|");return r}function Z(t,e,n){let r=t.length;if(r===0)return"";let s=0;for(;s<r&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function zr(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function Pr(t,e=0){let n=e,r="";for(let s of t)if(s===" "){let i=4-n%4;r+=" ".repeat(i),n+=i}else r+=s,n++;return r}function Fe(t,e,n,r,s){let i=e.href,a=e.title||null,l=t[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,o}function Hr(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let s=r[1];return e.split(`
3
3
  `).map(i=>{let a=i.match(n.other.beginningSpace);if(a===null)return i;let[l]=a;return l.length>=s.length?i.slice(s.length):i}).join(`
4
4
  `)}var ne=class{options;rules;lexer;constructor(t){this.options=t||F}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Z(n,`
@@ -1 +1 @@
1
- import{c as P,at as Z,av as ee,b as Y,a2 as te,ab as ne,k as se,j as s,L as ae,n as J,r as M,d as oe,aK as W,H as q,P as _,a_ as ie,B as le}from"./index-p-1akJlT.js";import{u as re}from"./use-mobile-vYE2HB1P.js";import{g as ce,u as ue,h as de,v as he}from"./use-app-takeover-bhFW4jjZ.js";import{a as Q,R as fe,b as me}from"./resizable-BNDCWJ7j.js";import{g as pe,h as ge,m as xe}from"./use-project-native-view-presence-Bxsn_JFS.js";import{L as be,k as ye}from"./agent-icon-6qcGzKLI.js";import{s as je}from"./XClose-BEUDzM_1.js";import{I as ve}from"./icon-button-WQQroCBK.js";import{c as Se,T as Ce,a as Te}from"./tooltip-OxzEYyq8.js";import{T as G}from"./toolbar-icon-button-DXJ1vH5Z.js";import{a as Le}from"./use-project-scope--iaz7oOx.js";import{c as Ne}from"./repository-binding-CrTJC4PH.js";function U(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Pe(l,e){const a=P.c(8);let i;a[0]!==e?(i=r=>U(r,e),a[0]=e,a[1]=i):i=a[1];const[t,o]=Z(l,i);let n;a[2]!==e||a[3]!==t?(n=U(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==o||a[6]!==n?(d=[n,o],a[5]=o,a[6]=n,a[7]=d):d=a[7],d}const ze=33;function _e(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ee.sidePanelWidth(),l[0]=e):e=l[0],Pe(e,ze)}function we(l){const e=P.c(60),{actions:a,navigation:i}=l,t=Y(),{org:o}=te(),n=Le(),d=Ne(n),r=ce(),{toggleSidebar:c}=ue(),u=de(),h=X(),m=ne();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:Oe},e[0]=x):x=e[0];const y=se(x),b=y?.mainView==="overview";let T;e[1]!==d?.title||e[2]!==t?(T=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=T):T=e[3];const g=T;let v;e[4]!==b||e[5]!==y?.pageTitle||e[6]!==g||e[7]!==n||e[8]!==t?(v=b?n?g:t("sidebar.navDestinations.home"):t(y?.pageTitle??"page.view"),e[4]=b,e[5]=y?.pageTitle,e[6]=g,e[7]=n,e[8]=t,e[9]=v):v=e[9];const j=v;let L;e[10]!==o.slug||e[11]!==m||e[12]!==n?(L=m?{to:"/$org/projects",params:{org:o.slug},search:{project:n??void 0}}:{to:"/$org/projects/$agentId",params:{org:o.slug,agentId:n??""}},e[10]=o.slug,e[11]=m,e[12]=n,e[13]=L):L=e[13];const f=L;let p;if(e[14]!==r||e[15]!==b||e[16]!==o.slug||e[17]!==f||e[18]!==g||e[19]!==n||e[20]!==t||e[21]!==j){if(p=[],r){let C;e[23]!==t?(C=t("sidebar.navDestinations.settings"),e[23]=t,e[24]=C):C=e[24];let E;e[25]!==o.slug?(E={to:"/$org/settings/general",params:{org:o.slug}},e[25]=o.slug,e[26]=E):E=e[26];let A;e[27]!==C||e[28]!==E?(A={key:"settings",label:C,link:E},e[27]=C,e[28]=E,e[29]=A):A=e[29],p.push(A)}else if(n&&!b){let C;e[30]!==f||e[31]!==g?(C={key:"project",label:g,link:f},e[30]=f,e[31]=g,e[32]=C):C=e[32],p.push(C)}let $;e[33]!==j?($={key:"page",label:j},e[33]=j,e[34]=$):$=e[34],p.push($),e[14]=r,e[15]=b,e[16]=o.slug,e[17]=f,e[18]=g,e[19]=n,e[20]=t,e[21]=j,e[22]=p}else p=e[22];let N;e[35]!==f||e[36]!==n||e[37]!==t||e[38]!==u?(N=u&&n&&s.jsx(ve,{label:t("projects.flat.close"),asChild:!0,children:s.jsx(ae,{...f,children:s.jsx(je,{size:16})})}),e[35]=f,e[36]=n,e[37]=t,e[38]=u,e[39]=N):N=e[39];const S=N;let z;e[40]!==h||e[41]!==t||e[42]!==u?(z=u&&h&&!h.threadless&&s.jsxs(Se,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(G,{"aria-label":t(h.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":h.threadOpen,active:h.threadOpen,onClick:h.toggleThread,children:s.jsx(be,{size:16})})}),s.jsx(Te,{side:"bottom",children:t(h.threadOpen?"page.closeThread":"page.openThread")})]}),e[40]=h,e[41]=t,e[42]=u,e[43]=z):z=e[43];const K=z;let w;e[44]!==t?(w=t("layouts.shellControls.toggleSidebar"),e[44]=t,e[45]=w):w=e[45];let R;e[46]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ye,{size:16}),e[46]=R):R=e[46];let O;e[47]!==w||e[48]!==c?(O=s.jsx(G,{className:"md:hidden",onClick:c,"aria-label":w,children:R}),e[47]=w,e[48]=c,e[49]=O):O=e[49];let k;e[50]!==K||e[51]!==O?(k=s.jsxs(s.Fragment,{children:[O,K]}),e[50]=K,e[51]=O,e[52]=k):k=e[52];let B;return e[53]!==a||e[54]!==p||e[55]!==S||e[56]!==i||e[57]!==o.name||e[58]!==k?(B=s.jsx(J.Header,{leading:k,breadcrumbs:p,scope:o.name,actions:a,trailingActions:S,navigation:i}),e[53]=a,e[54]=p,e[55]=S,e[56]=i,e[57]=o.name,e[58]=k,e[59]=B):B=e[59],B}function Oe(l){return l.matches.findLast(ke)?.staticData}function ke(l){return l.staticData.pageTitle}const I="chat-layout-thread",D="chat-layout-content",F=M.createContext(null);function Ee(){return H()}function X(){return M.use(F)}function H(){const l=M.use(F);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Ie(l){const e=P.c(23),{children:a,...i}=l,t=re(),o=oe(),n=M.useRef(null),[d,r]=_e(),{threadOpen:c,contentOpen:u}=i,h=pe(i),m=c&&u?d:h.side,x=100-m,y=f=>{const p=f.getLayout(),N=p[I],S=p[D];typeof N!="number"||typeof S!="number"||Math.abs(N-m)<.001&&Math.abs(S-x)<.001||f.setLayout({[I]:m,[D]:x})},b=ge({visibility:i,threadVisibilityExplicit:i.threadVisibilityExplicit});let T;e[0]!==t||e[1]!==i||e[2]!==b?(T={...i,isMobile:t,mobileSurface:b},e[0]=t,e[1]=i,e[2]=b,e[3]=T):T=e[3];const g=T;let v;e[4]!==t||e[5]!==i||e[6]!==o||e[7]!==c||e[8]!==g?(v=!i.threadless&&s.jsx(he,{open:t?g.mobileSurface==="chat":c,onToggle:()=>{t?o({to:".",search:f=>({...f,...xe(g.mobileSurface==="chat"?"main":"chat")}),replace:!0}):i.toggleThread()}}),e[4]=t,e[5]=i,e[6]=o,e[7]=c,e[8]=g,e[9]=v):v=e[9];let j;e[10]!==a||e[11]!==u||e[12]!==x||e[13]!==t||e[14]!==r||e[15]!==y||e[16]!==c||e[17]!==m?(j=t?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(fe,{ref:f=>{if(n.current=f,!f)return;let p=!0;return queueMicrotask(()=>{p&&y(f)}),()=>{p=!1,n.current===f&&(n.current=null)}},defaultLayout:{[I]:m,[D]:x},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(f,p)=>{const{isUserInteraction:N}=p;if(!N){const z=n.current;z&&y(z);return}const S=f[I];c&&u&&typeof S=="number"&&S>0&&S<100&&r(S)},children:a}),e[10]=a,e[11]=u,e[12]=x,e[13]=t,e[14]=r,e[15]=y,e[16]=c,e[17]=m,e[18]=j):j=e[18];let L;return e[19]!==v||e[20]!==j||e[21]!==g?(L=s.jsxs(F,{value:g,children:[v,j]}),e[19]=v,e[20]=j,e[21]=g,e[22]=L):L=e[22],L}function Me(l){const e=P.c(16),{children:a,topbar:i}=l,t=H();if(t.isMobile){let h;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==i?(h=t.mobileSurface==="chat"?s.jsxs(_,{variant:"plain","data-slot":"chat-layout-thread",children:[i,s.jsx(_.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=i,e[3]=h):h=e[3],h}const o=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==i?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[i,s.jsx(_.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=i,e[7]=n):n=e[7];let d;e[8]!==n?(d=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(_,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let r;e[10]!==o||e[11]!==d?(r=s.jsx(Q,{id:I,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":o,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=o,e[11]=d,e[12]=r):r=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(me,{className:"bg-sidebar"}),e[13]=c):c=e[13];let u;return e[14]!==r?(u=s.jsxs(s.Fragment,{children:[r,c]}),e[14]=r,e[15]=u):u=e[15],u}function Re({children:l,routeId:e}){return l}function V(l){const e=P.c(23),{children:a,actions:i,drawer:t,aside:o}=l,n=H();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let r;e[0]!==i||e[1]!==n.contentNavigation?(r=s.jsx(we,{navigation:n.contentNavigation,actions:i}),e[0]=i,e[1]=n.contentNavigation,e[2]=r):r=e[2];let c;e[3]!==a||e[4]!==n.contentKey?(c=s.jsx(W,{children:s.jsx(Re,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=c):c=e[5];let u;e[6]!==n.contentKey||e[7]!==c?(u=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(q,{children:c},n.contentKey)}),e[6]=n.contentKey,e[7]=c,e[8]=u):u=e[8];let h;e[9]!==t||e[10]!==u?(h=s.jsxs(_.Content,{children:[u,t]}),e[9]=t,e[10]=u,e[11]=h):h=e[11];let m;e[12]!==r||e[13]!==h?(m=s.jsxs(J.Breadcrumbs.Provider,{children:[r,h]}),e[12]=r,e[13]=h,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(_,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const y=x;let b;return e[18]!==o||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==y?(b=n.isMobile?y:s.jsx(Q,{id:D,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:y}),o&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(_,{"data-testid":"aside-panel",children:s.jsx(q,{children:s.jsx(W,{children:o})},M.isValidElement(o)?o.key??void 0:void 0)})})]})}),e[18]=o,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=y,e[22]=b):b=e[22],b}function Be(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(ie,{})}),l[0]=e):e=l[0],e}function $e(l){const e=P.c(18),{error:a,reset:i}=l,t=Y();let o;e[0]!==t?(o=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==o?(n=s.jsx("h2",{className:"text-lg font-medium",children:o}),e[2]=o,e[3]=n):n=e[3];let d;e[4]!==a.message||e[5]!==t?(d=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=d):d=e[6];let r;e[7]!==d?(r=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=r):r=e[8];let c;e[9]!==t?(c=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=c):c=e[10];let u;e[11]!==i||e[12]!==c?(u=s.jsx(le,{variant:"outline",onClick:i,children:c}),e[11]=i,e[12]=c,e[13]=u):u=e[13];let h;return e[14]!==n||e[15]!==r||e[16]!==u?(h=s.jsx(V,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,r,u]})}),e[14]=n,e[15]=r,e[16]=u,e[17]=h):h=e[17],h}const Ae=Object.assign(Ie,{Thread:Me,Content:V}),Xe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ae,ChatLayoutError:$e,ChatLayoutPending:Be,useChatLayout:Ee,useOptionalChatLayout:X},Symbol.toStringTag,{value:"Module"}));export{Ae as C,we as R,Xe as i,Ee as u};
1
+ import{c as P,at as Z,av as ee,b as Y,a2 as te,ab as ne,k as se,j as s,L as ae,n as J,r as M,d as oe,aK as W,H as q,P as _,a_ as ie,B as le}from"./index-BUcAISa8.js";import{u as re}from"./use-mobile-DszEwU_T.js";import{g as ce,u as ue,h as de,v as he}from"./use-app-takeover-zY0NJ0sD.js";import{a as Q,R as fe,b as me}from"./resizable-rQgJB4MP.js";import{g as pe,h as ge,m as xe}from"./use-project-native-view-presence-YWMyr72T.js";import{L as be,k as ye}from"./agent-icon-u2ivNkJK.js";import{s as je}from"./XClose-DBK6xbU_.js";import{I as ve}from"./icon-button-BDgagVz4.js";import{c as Se,T as Ce,a as Te}from"./tooltip-Npd1IBFB.js";import{T as G}from"./toolbar-icon-button-WOmWcuPV.js";import{a as Le}from"./use-project-scope-5YpNgUL6.js";import{c as Ne}from"./repository-binding-C4OsSA6m.js";function U(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Pe(l,e){const a=P.c(8);let i;a[0]!==e?(i=r=>U(r,e),a[0]=e,a[1]=i):i=a[1];const[t,o]=Z(l,i);let n;a[2]!==e||a[3]!==t?(n=U(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==o||a[6]!==n?(d=[n,o],a[5]=o,a[6]=n,a[7]=d):d=a[7],d}const ze=33;function _e(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ee.sidePanelWidth(),l[0]=e):e=l[0],Pe(e,ze)}function we(l){const e=P.c(60),{actions:a,navigation:i}=l,t=Y(),{org:o}=te(),n=Le(),d=Ne(n),r=ce(),{toggleSidebar:c}=ue(),u=de(),h=X(),m=ne();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:Oe},e[0]=x):x=e[0];const y=se(x),b=y?.mainView==="overview";let T;e[1]!==d?.title||e[2]!==t?(T=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=T):T=e[3];const g=T;let v;e[4]!==b||e[5]!==y?.pageTitle||e[6]!==g||e[7]!==n||e[8]!==t?(v=b?n?g:t("sidebar.navDestinations.home"):t(y?.pageTitle??"page.view"),e[4]=b,e[5]=y?.pageTitle,e[6]=g,e[7]=n,e[8]=t,e[9]=v):v=e[9];const j=v;let L;e[10]!==o.slug||e[11]!==m||e[12]!==n?(L=m?{to:"/$org/projects",params:{org:o.slug},search:{project:n??void 0}}:{to:"/$org/projects/$agentId",params:{org:o.slug,agentId:n??""}},e[10]=o.slug,e[11]=m,e[12]=n,e[13]=L):L=e[13];const f=L;let p;if(e[14]!==r||e[15]!==b||e[16]!==o.slug||e[17]!==f||e[18]!==g||e[19]!==n||e[20]!==t||e[21]!==j){if(p=[],r){let C;e[23]!==t?(C=t("sidebar.navDestinations.settings"),e[23]=t,e[24]=C):C=e[24];let E;e[25]!==o.slug?(E={to:"/$org/settings/general",params:{org:o.slug}},e[25]=o.slug,e[26]=E):E=e[26];let A;e[27]!==C||e[28]!==E?(A={key:"settings",label:C,link:E},e[27]=C,e[28]=E,e[29]=A):A=e[29],p.push(A)}else if(n&&!b){let C;e[30]!==f||e[31]!==g?(C={key:"project",label:g,link:f},e[30]=f,e[31]=g,e[32]=C):C=e[32],p.push(C)}let $;e[33]!==j?($={key:"page",label:j},e[33]=j,e[34]=$):$=e[34],p.push($),e[14]=r,e[15]=b,e[16]=o.slug,e[17]=f,e[18]=g,e[19]=n,e[20]=t,e[21]=j,e[22]=p}else p=e[22];let N;e[35]!==f||e[36]!==n||e[37]!==t||e[38]!==u?(N=u&&n&&s.jsx(ve,{label:t("projects.flat.close"),asChild:!0,children:s.jsx(ae,{...f,children:s.jsx(je,{size:16})})}),e[35]=f,e[36]=n,e[37]=t,e[38]=u,e[39]=N):N=e[39];const S=N;let z;e[40]!==h||e[41]!==t||e[42]!==u?(z=u&&h&&!h.threadless&&s.jsxs(Se,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(G,{"aria-label":t(h.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":h.threadOpen,active:h.threadOpen,onClick:h.toggleThread,children:s.jsx(be,{size:16})})}),s.jsx(Te,{side:"bottom",children:t(h.threadOpen?"page.closeThread":"page.openThread")})]}),e[40]=h,e[41]=t,e[42]=u,e[43]=z):z=e[43];const K=z;let w;e[44]!==t?(w=t("layouts.shellControls.toggleSidebar"),e[44]=t,e[45]=w):w=e[45];let R;e[46]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ye,{size:16}),e[46]=R):R=e[46];let O;e[47]!==w||e[48]!==c?(O=s.jsx(G,{className:"md:hidden",onClick:c,"aria-label":w,children:R}),e[47]=w,e[48]=c,e[49]=O):O=e[49];let k;e[50]!==K||e[51]!==O?(k=s.jsxs(s.Fragment,{children:[O,K]}),e[50]=K,e[51]=O,e[52]=k):k=e[52];let B;return e[53]!==a||e[54]!==p||e[55]!==S||e[56]!==i||e[57]!==o.name||e[58]!==k?(B=s.jsx(J.Header,{leading:k,breadcrumbs:p,scope:o.name,actions:a,trailingActions:S,navigation:i}),e[53]=a,e[54]=p,e[55]=S,e[56]=i,e[57]=o.name,e[58]=k,e[59]=B):B=e[59],B}function Oe(l){return l.matches.findLast(ke)?.staticData}function ke(l){return l.staticData.pageTitle}const I="chat-layout-thread",D="chat-layout-content",F=M.createContext(null);function Ee(){return H()}function X(){return M.use(F)}function H(){const l=M.use(F);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Ie(l){const e=P.c(23),{children:a,...i}=l,t=re(),o=oe(),n=M.useRef(null),[d,r]=_e(),{threadOpen:c,contentOpen:u}=i,h=pe(i),m=c&&u?d:h.side,x=100-m,y=f=>{const p=f.getLayout(),N=p[I],S=p[D];typeof N!="number"||typeof S!="number"||Math.abs(N-m)<.001&&Math.abs(S-x)<.001||f.setLayout({[I]:m,[D]:x})},b=ge({visibility:i,threadVisibilityExplicit:i.threadVisibilityExplicit});let T;e[0]!==t||e[1]!==i||e[2]!==b?(T={...i,isMobile:t,mobileSurface:b},e[0]=t,e[1]=i,e[2]=b,e[3]=T):T=e[3];const g=T;let v;e[4]!==t||e[5]!==i||e[6]!==o||e[7]!==c||e[8]!==g?(v=!i.threadless&&s.jsx(he,{open:t?g.mobileSurface==="chat":c,onToggle:()=>{t?o({to:".",search:f=>({...f,...xe(g.mobileSurface==="chat"?"main":"chat")}),replace:!0}):i.toggleThread()}}),e[4]=t,e[5]=i,e[6]=o,e[7]=c,e[8]=g,e[9]=v):v=e[9];let j;e[10]!==a||e[11]!==u||e[12]!==x||e[13]!==t||e[14]!==r||e[15]!==y||e[16]!==c||e[17]!==m?(j=t?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(fe,{ref:f=>{if(n.current=f,!f)return;let p=!0;return queueMicrotask(()=>{p&&y(f)}),()=>{p=!1,n.current===f&&(n.current=null)}},defaultLayout:{[I]:m,[D]:x},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(f,p)=>{const{isUserInteraction:N}=p;if(!N){const z=n.current;z&&y(z);return}const S=f[I];c&&u&&typeof S=="number"&&S>0&&S<100&&r(S)},children:a}),e[10]=a,e[11]=u,e[12]=x,e[13]=t,e[14]=r,e[15]=y,e[16]=c,e[17]=m,e[18]=j):j=e[18];let L;return e[19]!==v||e[20]!==j||e[21]!==g?(L=s.jsxs(F,{value:g,children:[v,j]}),e[19]=v,e[20]=j,e[21]=g,e[22]=L):L=e[22],L}function Me(l){const e=P.c(16),{children:a,topbar:i}=l,t=H();if(t.isMobile){let h;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==i?(h=t.mobileSurface==="chat"?s.jsxs(_,{variant:"plain","data-slot":"chat-layout-thread",children:[i,s.jsx(_.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=i,e[3]=h):h=e[3],h}const o=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==i?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[i,s.jsx(_.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=i,e[7]=n):n=e[7];let d;e[8]!==n?(d=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(_,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let r;e[10]!==o||e[11]!==d?(r=s.jsx(Q,{id:I,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":o,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=o,e[11]=d,e[12]=r):r=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(me,{className:"bg-sidebar"}),e[13]=c):c=e[13];let u;return e[14]!==r?(u=s.jsxs(s.Fragment,{children:[r,c]}),e[14]=r,e[15]=u):u=e[15],u}function Re({children:l,routeId:e}){return l}function V(l){const e=P.c(23),{children:a,actions:i,drawer:t,aside:o}=l,n=H();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let r;e[0]!==i||e[1]!==n.contentNavigation?(r=s.jsx(we,{navigation:n.contentNavigation,actions:i}),e[0]=i,e[1]=n.contentNavigation,e[2]=r):r=e[2];let c;e[3]!==a||e[4]!==n.contentKey?(c=s.jsx(W,{children:s.jsx(Re,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=c):c=e[5];let u;e[6]!==n.contentKey||e[7]!==c?(u=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(q,{children:c},n.contentKey)}),e[6]=n.contentKey,e[7]=c,e[8]=u):u=e[8];let h;e[9]!==t||e[10]!==u?(h=s.jsxs(_.Content,{children:[u,t]}),e[9]=t,e[10]=u,e[11]=h):h=e[11];let m;e[12]!==r||e[13]!==h?(m=s.jsxs(J.Breadcrumbs.Provider,{children:[r,h]}),e[12]=r,e[13]=h,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(_,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const y=x;let b;return e[18]!==o||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==y?(b=n.isMobile?y:s.jsx(Q,{id:D,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:y}),o&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(_,{"data-testid":"aside-panel",children:s.jsx(q,{children:s.jsx(W,{children:o})},M.isValidElement(o)?o.key??void 0:void 0)})})]})}),e[18]=o,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=y,e[22]=b):b=e[22],b}function Be(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(ie,{})}),l[0]=e):e=l[0],e}function $e(l){const e=P.c(18),{error:a,reset:i}=l,t=Y();let o;e[0]!==t?(o=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==o?(n=s.jsx("h2",{className:"text-lg font-medium",children:o}),e[2]=o,e[3]=n):n=e[3];let d;e[4]!==a.message||e[5]!==t?(d=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=d):d=e[6];let r;e[7]!==d?(r=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=r):r=e[8];let c;e[9]!==t?(c=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=c):c=e[10];let u;e[11]!==i||e[12]!==c?(u=s.jsx(le,{variant:"outline",onClick:i,children:c}),e[11]=i,e[12]=c,e[13]=u):u=e[13];let h;return e[14]!==n||e[15]!==r||e[16]!==u?(h=s.jsx(V,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,r,u]})}),e[14]=n,e[15]=r,e[16]=u,e[17]=h):h=e[17],h}const Ae=Object.assign(Ie,{Thread:Me,Content:V}),Xe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ae,ChatLayoutError:$e,ChatLayoutPending:Be,useChatLayout:Ee,useOptionalChatLayout:X},Symbol.toStringTag,{value:"Module"}));export{Ae as C,we as R,Xe as i,Ee as u};