decocms 4.513.1 → 4.513.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-DLigh1zJ.js → ActiveShapeUtils-DNLuEkJN.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-BGsPYuR3.js → AlertCircle-Cb7ndqDi.js} +1 -1
  3. package/dist/client/assets/{AreaChart-CzXIOspF.js → AreaChart-DzbVaDzU.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-BY0o9p-g.js → ArrowLeft-DADrHN7i.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BIUPa0Dd.js → ArrowUp-DDNEd9Kd.js} +1 -1
  6. package/dist/client/assets/{BarChart-C93WKtUQ.js → BarChart-iMUenMNk.js} +1 -1
  7. package/dist/client/assets/{Building02-DRJukUHS.js → Building02-Bjomir6q.js} +1 -1
  8. package/dist/client/assets/{CartesianChart-Dm7PETVH.js → CartesianChart-B-ERY6oB.js} +1 -1
  9. package/dist/client/assets/{CategoricalChart-71YzazvL.js → CategoricalChart-Dj35HbVW.js} +1 -1
  10. package/dist/client/assets/{CheckCircle-BMzfjrcN.js → CheckCircle-BnL-7vYW.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-OsgtEFsS.js → ChevronSelectorVertical-DyQRoN8S.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-gQvBs5Wr.js → ChevronUp-GbOxC6gE.js} +1 -1
  13. package/dist/client/assets/{Copy01-B6uJ5A3t.js → Copy01-B1NgywZM.js} +1 -1
  14. package/dist/client/assets/{CreditCard01-CVvsJVHy.js → CreditCard01-DJ4OPM2F.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-CRoDrMwf.js → DotsVertical-BO_pRsYT.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-B-ZKQrQu.js → ErrorBarContext-BLuoM6lW.js} +1 -1
  17. package/dist/client/assets/{Globe04-mgILh7rR.js → Globe04-B963sNy5.js} +1 -1
  18. package/dist/client/assets/{Image01-D3cjfdzm.js → Image01-FEyFRIu4.js} +1 -1
  19. package/dist/client/assets/{Key01-DBuAbIfl.js → Key01-CrB_0Jxl.js} +1 -1
  20. package/dist/client/assets/{Link01-BkraNRbc.js → Link01-D28Oc9En.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-COSlZBTJ.js → LinkBroken01-BpXFCHgm.js} +1 -1
  22. package/dist/client/assets/{Monitor01-CSJlATNa.js → Monitor01-Cz8hihT4.js} +1 -1
  23. package/dist/client/assets/{Play-CS7ZIu7O.js → Play-CszCFuB0.js} +1 -1
  24. package/dist/client/assets/{Plus-Dam4fGJv.js → Plus-B_brjzsp.js} +1 -1
  25. package/dist/client/assets/{ReferenceLine-D2WOwhtk.js → ReferenceLine-COZsjBLj.js} +1 -1
  26. package/dist/client/assets/{SearchMd-BmY7B7q3.js → SearchMd-BSSF0unp.js} +1 -1
  27. package/dist/client/assets/{Sector-BZsKaQxF.js → Sector-BfMO0Em0.js} +1 -1
  28. package/dist/client/assets/{ShoppingBag01-Di2JjyaO.js → ShoppingBag01-Dlk4kUf8.js} +1 -1
  29. package/dist/client/assets/{Sun-CBRr2mzj.js → Sun-D_QcunZ5.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-CVhIGWzI.js → SwitchHorizontal01-Lv3kQi4S.js} +1 -1
  31. package/dist/client/assets/{Tool01-C0tA6_WY.js → Tool01-D466WVJp.js} +1 -1
  32. package/dist/client/assets/{Trash01-BWvgZ-My.js → Trash01-DX9NEJ4w.js} +1 -1
  33. package/dist/client/assets/{Upload01-Ayc3pkY7.js → Upload01-BRjzqqMY.js} +1 -1
  34. package/dist/client/assets/{User01-Cv65FqsE.js → User01-C-xjsybN.js} +1 -1
  35. package/dist/client/assets/{UserSquare-jVbr-XG_.js → UserSquare-O-hZIHpe.js} +1 -1
  36. package/dist/client/assets/{Users01-C8djc4kj.js → Users01-B4q5TfTb.js} +1 -1
  37. package/dist/client/assets/{XClose-J1FWOmKL.js → XClose-C5GW1-eR.js} +1 -1
  38. package/dist/client/assets/{ZoomOut-DOsQL5PZ.js → ZoomOut-qxAbCsOQ.js} +1 -1
  39. package/dist/client/assets/{access-gate-CSnpnsDz.js → access-gate-DgcpY2_l.js} +1 -1
  40. package/dist/client/assets/{add-connection-dialog-9kRnWMWN.js → add-connection-dialog-DlaFy1j5.js} +1 -1
  41. package/dist/client/assets/{agent-analytics-BksVEHnl.js → agent-analytics-Ca1oaPIi.js} +1 -1
  42. package/dist/client/assets/agent-app-DXtqnkjl.js +1 -0
  43. package/dist/client/assets/{agent-assets-tvE-HIyg.js → agent-assets-gQMGVGXO.js} +1 -1
  44. package/dist/client/assets/{agent-automation-V4FV4x5y.js → agent-automation-DU2dhJVm.js} +1 -1
  45. package/dist/client/assets/{agent-automations-Cc2YYUR6.js → agent-automations-BkZ9jt0u.js} +1 -1
  46. package/dist/client/assets/{agent-connect-sources-tJKzdDG2.js → agent-connect-sources-QJp-D7v2.js} +1 -1
  47. package/dist/client/assets/agent-deck-BuTSIBNI.js +1 -0
  48. package/dist/client/assets/{agent-e2e-DGsy6V0w.js → agent-e2e-BL4DjoIO.js} +1 -1
  49. package/dist/client/assets/{agent-experiments-CEmVLVx7.js → agent-experiments-CLA8qaK_.js} +1 -1
  50. package/dist/client/assets/agent-file-kxJZrKAd.js +1 -0
  51. package/dist/client/assets/{agent-hosting-SI9CUAyr.js → agent-hosting-pJNEGRI5.js} +1 -1
  52. package/dist/client/assets/{agent-icon-BAsaPIPW.js → agent-icon-DwmxbPaq.js} +1 -1
  53. package/dist/client/assets/agent-library-YdIW4Rzn.js +1 -0
  54. package/dist/client/assets/agent-library-file-CbauNXoS.js +1 -0
  55. package/dist/client/assets/{agent-monitor-BAD4Hlpg.js → agent-monitor-MbEGfkIe.js} +1 -1
  56. package/dist/client/assets/{agent-overview-yn0Mx7V2.js → agent-overview-BBb-sgbs.js} +1 -1
  57. package/dist/client/assets/{agent-releases-BROUPRoA.js → agent-releases-BlTe7Hcc.js} +1 -1
  58. package/dist/client/assets/agent-settings-DKg7T8YA.js +1 -0
  59. package/dist/client/assets/{agent-site-editor-Bc4JzAtX.js → agent-site-editor-CsLLIpIh.js} +1 -1
  60. package/dist/client/assets/agent-site-editor-code-DE9rk64p.js +2 -0
  61. package/dist/client/assets/agent-site-editor-content-B8P8zgnm.js +1 -0
  62. package/dist/client/assets/agent-site-editor-preview-DSjfSHbz.js +1 -0
  63. package/dist/client/assets/agent-view-B1QpWVh1.js +1 -0
  64. package/dist/client/assets/{agent-view-guard-COE0o9OW.js → agent-view-guard-4yNoxyNQ.js} +1 -1
  65. package/dist/client/assets/{agents-list-DsnUnijY.js → agents-list-M4zncHWL.js} +1 -1
  66. package/dist/client/assets/{ai-providers-_9Q72ibF.js → ai-providers-Dt3w2lyZ.js} +1 -1
  67. package/dist/client/assets/{alert-DVLk8Iin.js → alert-BWjbIOy1.js} +1 -1
  68. package/dist/client/assets/{alert-dialog-BXsSwOCK.js → alert-dialog-CqKp341b.js} +1 -1
  69. package/dist/client/assets/{analytics-sections-CVdZcg3H.js → analytics-sections-CEDTGQ8-.js} +1 -1
  70. package/dist/client/assets/api-keys-DSvkW_vi.js +1 -0
  71. package/dist/client/assets/{api-keys-C5_mr7Dx.js → api-keys-hlhQbrjA.js} +1 -1
  72. package/dist/client/assets/{app-editor-CAZxpcHR.js → app-editor-BeiaBuC5.js} +1 -1
  73. package/dist/client/assets/{asset-utils-BYeUUuYD.js → asset-utils-BQS_NKB_.js} +1 -1
  74. package/dist/client/assets/{auth-BGlQUcUq.js → auth-CBXab2m6.js} +1 -1
  75. package/dist/client/assets/{auth-catchall-B57MQTC7.js → auth-catchall-BCQkynqA.js} +1 -1
  76. package/dist/client/assets/{auth-entry-DEDwSnje.js → auth-entry-2tWB9-U3.js} +1 -1
  77. package/dist/client/assets/{auth-split-layout-Bywa1Rdj.js → auth-split-layout-BaSwmyPX.js} +1 -1
  78. package/dist/client/assets/{authenticate-and-persist-oauth-DawdQrNH.js → authenticate-and-persist-oauth-DXsqOITV.js} +1 -1
  79. package/dist/client/assets/{automation-list-row-DxgABVkv.js → automation-list-row-B__G16Qp.js} +1 -1
  80. package/dist/client/assets/{automation-runs-CiiZvO3g.js → automation-runs-DpDynQvo.js} +1 -1
  81. package/dist/client/assets/{automations-BYa97um_.js → automations-DCG9rK8z.js} +1 -1
  82. package/dist/client/assets/{autosend-C7UE5qBo.js → autosend--6ZIpjhq.js} +1 -1
  83. package/dist/client/assets/{avatar-D92LQoMs.js → avatar-BJGuSqS3.js} +1 -1
  84. package/dist/client/assets/{badge-Qo4xyqqo.js → badge-B3EgxcRx.js} +1 -1
  85. package/dist/client/assets/{block-document-skQMirff.js → block-document-BHtZYy4h.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-C5n4-2zD.js → blocks-preview-workspace-context-QIV7KvrA.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-ZrFyRJRO.js → blocks-tab-states-B5P_cvY5.js} +3 -3
  88. package/dist/client/assets/{blog-schema-BLRxEC9n.js → blog-schema-D3O0oyBh.js} +1 -1
  89. package/dist/client/assets/{board-analytics-CUpSvAlz.js → board-analytics-CcDtIc50.js} +1 -1
  90. package/dist/client/assets/{buckets-BJtJwr6_.js → buckets-2JKt09K5.js} +1 -1
  91. package/dist/client/assets/{build-improve-prompt-doc-8Y6fyKcx.js → build-improve-prompt-doc-vLW4gOYr.js} +1 -1
  92. package/dist/client/assets/{calendar-O9AxJqnv.js → calendar-BTdSuKmR.js} +1 -1
  93. package/dist/client/assets/{capability-load-error-CNqk0tFF.js → capability-load-error-DhN3dvCq.js} +1 -1
  94. package/dist/client/assets/{category-editor-Be436pUw.js → category-editor-DEzU52bm.js} +1 -1
  95. package/dist/client/assets/{chart-D6QCrw1j.js → chart-Bd2uUAHk.js} +1 -1
  96. package/dist/client/assets/{chat-context-CHUVtsDo.js → chat-context-Coy1UYuH.js} +1 -1
  97. package/dist/client/assets/{chat-draft-DxqHQ-qR.js → chat-draft-xSrNQVJE.js} +1 -1
  98. package/dist/client/assets/{checkbox-D1J9YzHt.js → checkbox-D-qN2orr.js} +1 -1
  99. package/dist/client/assets/{choose-editor-zF0EkKBL.js → choose-editor-BqrHilH3.js} +1 -1
  100. package/dist/client/assets/{cli-auth-success-BIVUc0bz.js → cli-auth-success-BaVi5VQk.js} +1 -1
  101. package/dist/client/assets/{client-icons-NYHaAc2_.js → client-icons-CTYzrbhU.js} +1 -1
  102. package/dist/client/assets/cms-settings-editor-CvtUeIdP.js +1 -0
  103. package/dist/client/assets/{collapsible-4U8s9Q7m.js → collapsible-Dob0Gg_e.js} +1 -1
  104. package/dist/client/assets/{collection-detail-DrU7rdOW.js → collection-detail-D9r97JP-.js} +1 -1
  105. package/dist/client/assets/{collection-display-button-BaRotray.js → collection-display-button-DacZ056r.js} +1 -1
  106. package/dist/client/assets/{collection-search-Da85q05W.js → collection-search-sN8waZP5.js} +1 -1
  107. package/dist/client/assets/{collection-table-wrapper-Dnz2lweC.js → collection-table-wrapper-BQUacbo9.js} +1 -1
  108. package/dist/client/assets/{collection-tabs-Mlp_Rejx.js → collection-tabs-BFsU5Zso.js} +1 -1
  109. package/dist/client/assets/{column-rules-B6lY_qpw.js → column-rules-Ds5Jgvm7.js} +1 -1
  110. package/dist/client/assets/{combobox-BCOMReLT.js → combobox-F_LBjMtH.js} +1 -1
  111. package/dist/client/assets/{coming-soon-page-CvYKECN2.js → coming-soon-page-DlojAWRM.js} +1 -1
  112. package/dist/client/assets/{command-DEXvL0cT.js → command-D1ymY4gO.js} +1 -1
  113. package/dist/client/assets/{companion-mcps-section-B8jhQ1lU.js → companion-mcps-section-OEmhUK0f.js} +1 -1
  114. package/dist/client/assets/config-CBfVP-wT.js +1 -0
  115. package/dist/client/assets/{connect-CJaggTPx.js → connect-Tln2LDcj.js} +1 -1
  116. package/dist/client/assets/{connect-layout-cAlAMnNX.js → connect-layout-BcDPeexp.js} +1 -1
  117. package/dist/client/assets/{connection-vIWlN3YD.js → connection-Pn9kdL_8.js} +1 -1
  118. package/dist/client/assets/{connection-card-BJdYhmjP.js → connection-card-Bc59k0i8.js} +1 -1
  119. package/dist/client/assets/{connection-detail-BW1b2Mg7.js → connection-detail-CbHe1t8N.js} +1 -1
  120. package/dist/client/assets/{connection-form-helpers-CEC9pgiR.js → connection-form-helpers-G-5cYdg3.js} +1 -1
  121. package/dist/client/assets/{connections-DHSlk7eF.js → connections-CzOtLgLI.js} +1 -1
  122. package/dist/client/assets/{content-tab-D6dlC_eK.js → content-tab-gr7h5BcR.js} +3 -3
  123. package/dist/client/assets/{context-D9Kj70hJ.js → context-DXcYxbwf.js} +1 -1
  124. package/dist/client/assets/{context-menu-BdSGqs_f.js → context-menu-HB-xVnZ6.js} +1 -1
  125. package/dist/client/assets/{context-shell-BcUuYMwr.js → context-shell-D9QmzGmJ.js} +3 -3
  126. package/dist/client/assets/{core.esm-C_n7cKI9.js → core.esm-Di-3x0Qn.js} +1 -1
  127. package/dist/client/assets/{create-organization-dialog-BCynjnXm.js → create-organization-dialog-CiHyL_ZA.js} +1 -1
  128. package/dist/client/assets/{daily-pulse-jLaM72aD.js → daily-pulse-4xZOFp13.js} +1 -1
  129. package/dist/client/assets/{discover-WzG-rd-A.js → discover-D_by7MyW.js} +1 -1
  130. package/dist/client/assets/{domain-settings-BctCKhK5.js → domain-settings-lAwxZmmh.js} +1 -1
  131. package/dist/client/assets/{drawer-PNF7GPi2.js → drawer-BbkIzsz8.js} +1 -1
  132. package/dist/client/assets/{editor-DOvs1ZAj.js → editor-Cly6-aoh.js} +1 -1
  133. package/dist/client/assets/{editor-classes-BJdm0od6.js → editor-classes-vywjIAzY.js} +1 -1
  134. package/dist/client/assets/{empty-state-Czk_KZf6.js → empty-state-2EYtSNtp.js} +1 -1
  135. package/dist/client/assets/{empty-state-DRKp6xDi.js → empty-state-CaGj2wvA.js} +1 -1
  136. package/dist/client/assets/{extract-connection-data-B-l9PdV0.js → extract-connection-data-CD2O55Fx.js} +1 -1
  137. package/dist/client/assets/{feature-gate-Cfsfll5L.js → feature-gate-DlXIe7R6.js} +1 -1
  138. package/dist/client/assets/{feature-paywall-CpCMXj0j.js → feature-paywall-Al0a-RPe.js} +1 -1
  139. package/dist/client/assets/{file-explorer-B_BhjGuw.js → file-explorer-Bad8IiIm.js} +1 -1
  140. package/dist/client/assets/{file-preview-BgeZG3Ut.js → file-preview-CxCZRvno.js} +1 -1
  141. package/dist/client/assets/{file-share-button-CjByqgRv.js → file-share-button-CSzPgcqM.js} +1 -1
  142. package/dist/client/assets/{file-type-icon-DrKVTY_y.js → file-type-icon-Cm8vAJwL.js} +1 -1
  143. package/dist/client/assets/flat-project-DW0HjQsj.js +1 -0
  144. package/dist/client/assets/{folder-icon-BL3ikPej.js → folder-icon--EbdSNHa.js} +1 -1
  145. package/dist/client/assets/{form-BReygSsa.js → form-CrmtK4j0.js} +1 -1
  146. package/dist/client/assets/{general-ayENLq_6.js → general-BWMceY7i.js} +1 -1
  147. package/dist/client/assets/{home-Be7m5c5B.js → home-as4Go5Xa.js} +1 -1
  148. package/dist/client/assets/{hosted-publish-feedback-DJnIOpIA.js → hosted-publish-feedback-CuXiDE6x.js} +1 -1
  149. package/dist/client/assets/{icon-button-BMIQVqVD.js → icon-button-BrZlJXH5.js} +1 -1
  150. package/dist/client/assets/{index-CNWJYHvX.js → index-BEk_WTZs.js} +2 -2
  151. package/dist/client/assets/{index--jYyuT9F.js → index-BzltXJFS.js} +1 -1
  152. package/dist/client/assets/{index-BqhDNSVy.js → index-C5bz2gzy.js} +1 -1
  153. package/dist/client/assets/{index-DmRWIJlm.js → index-CA-kdET7.js} +1 -1
  154. package/dist/client/assets/{index-DG1Kruym.js → index-CE9fHEwG.js} +1 -1
  155. package/dist/client/assets/{index-Bf67UBtK.js → index-CQt4JCCp.js} +1 -1
  156. package/dist/client/assets/{index-59MGyrbA.js → index-CSHf4zLr.js} +1 -1
  157. package/dist/client/assets/{index-CPKH5oCf.js → index-CjULAL4c.js} +1 -1
  158. package/dist/client/assets/{index-CsPw2N1B.js → index-CpQRu7t8.js} +1 -1
  159. package/dist/client/assets/{index-BPxS5t0S.js → index-D30IA74D.js} +1 -1
  160. package/dist/client/assets/{index-CB34n0pr.js → index-D8eSicMj.js} +1 -1
  161. package/dist/client/assets/{index-DYoNho4Y.js → index-DCS4QeiG.js} +5 -5
  162. package/dist/client/assets/{index-B-_uoizr.js → index-DJuli02A.js} +1 -1
  163. package/dist/client/assets/{index-DrCJgI2a.js → index-Lg5vOW5A.js} +1 -1
  164. package/dist/client/assets/{index-IZZ1QWYx.js → index-LvFXmodN.js} +1 -1
  165. package/dist/client/assets/{index-Dg_sZbJ0.js → index-jnVgqX2F.js} +1 -1
  166. package/dist/client/assets/{index-redirect-DZaEKj9N.js → index-redirect-ByaTEbzV.js} +1 -1
  167. package/dist/client/assets/{infiniteQueryObserver-BZJj1RTX.js → infiniteQueryObserver-koqq_t6E.js} +1 -1
  168. package/dist/client/assets/{infra-billing-BGzk-gx3.js → infra-billing-BGK18L2h.js} +1 -1
  169. package/dist/client/assets/{input-DQjMvdWZ.js → input-JWuF17lz.js} +1 -1
  170. package/dist/client/assets/{input-C14RAevO.js → input-p8PRj6z_.js} +3 -3
  171. package/dist/client/assets/{integration-icon-A_JAytZI.js → integration-icon-Bc0Jjx1L.js} +1 -1
  172. package/dist/client/assets/{jira-icon-BaW-JhER.js → jira-icon-D_eYULbH.js} +1 -1
  173. package/dist/client/assets/{label-DKrrhY82.js → label-CpABTL2s.js} +1 -1
  174. package/dist/client/assets/{layout-D0vGvTyD.js → layout-Bd_7mv2J.js} +1 -1
  175. package/dist/client/assets/{legacy-agents-deep-DHz8EBj2.js → legacy-agents-deep-CT9NQAHU.js} +1 -1
  176. package/dist/client/assets/{legacy-main-redirect-CXWM5YMx.js → legacy-main-redirect-Cv0nziD7.js} +1 -1
  177. package/dist/client/assets/library-YrE-i4nR.js +1 -0
  178. package/dist/client/assets/{library-tab-DkG0GP2E.js → library-tab-CsxDUrZR.js} +1 -1
  179. package/dist/client/assets/{login-7DjR_ib1.js → login-u3lW07tQ.js} +1 -1
  180. package/dist/client/assets/{markdown-Dkv8vF7I.js → markdown-BxVSyqCQ.js} +1 -1
  181. package/dist/client/assets/{mcp-app-renderer-BTmNB3HB.js → mcp-app-renderer-D-1Jc5qd.js} +1 -1
  182. package/dist/client/assets/{mcp-oauth-B26YcM5J.js → mcp-oauth-DJRiAtQQ.js} +1 -1
  183. package/dist/client/assets/{mcp-oauth-D8hJrLwY.js → mcp-oauth-x28XGRDj.js} +1 -1
  184. package/dist/client/assets/{members-E4TpKIKd.js → members-CiSkbNHN.js} +1 -1
  185. package/dist/client/assets/{memory-oZaHxU5s.js → memory-BMLB_dNw.js} +1 -1
  186. package/dist/client/assets/{mini-report-page-BArv5mW4.js → mini-report-page-DztTyWTZ.js} +1 -1
  187. package/dist/client/assets/{mock-board-Bwwa0M9R.js → mock-board-XExjNIKz.js} +1 -1
  188. package/dist/client/assets/{monaco-editor-BqY_G1yM.js → monaco-editor-ChNCFt9F.js} +1 -1
  189. package/dist/client/assets/monitoring-CFJbMtKG.js +1 -0
  190. package/dist/client/assets/{monitoring-stats-row-DVnv34v6.js → monitoring-stats-row-CDWAR8uK.js} +1 -1
  191. package/dist/client/assets/{multi-select-Cbl9yFmn.js → multi-select-BvmODAJ0.js} +1 -1
  192. package/dist/client/assets/{mustache-CKwi1qbg.js → mustache-dgI_uMCe.js} +1 -1
  193. package/dist/client/assets/{new-project-dialog-N-lmXyX9.js → new-project-dialog-Bfr1DlqM.js} +1 -1
  194. package/dist/client/assets/{oauth-callback-CO5zT2gX.js → oauth-callback-DMjIvl9l.js} +1 -1
  195. package/dist/client/assets/{oauth-callback-ai-provider-DUDQxWlr.js → oauth-callback-ai-provider-CPW-zXlu.js} +1 -1
  196. package/dist/client/assets/{onboarding-BTnElaEx.js → onboarding-DjPWBraU.js} +1 -1
  197. package/dist/client/assets/{openai-conversation-n75eRcLs.js → openai-conversation-DoPS-LFe.js} +1 -1
  198. package/dist/client/assets/{optimistic-project-sidebar-views-DQouTCdv.js → optimistic-project-sidebar-views-CGIshkUr.js} +1 -1
  199. package/dist/client/assets/{order-monitor-day-04mjD1ep.js → order-monitor-day-C6BSoCn8.js} +1 -1
  200. package/dist/client/assets/{organization-choice-Cp6NuWiL.js → organization-choice-BYfR2EXK.js} +1 -1
  201. package/dist/client/assets/{orgs-ClkY5PpT.js → orgs-OVTCqTT4.js} +1 -1
  202. package/dist/client/assets/{page-seo-form-CPFkTIUJ.js → page-seo-form-BRW26Uzu.js} +1 -1
  203. package/dist/client/assets/{pair-B8IyaaR6.js → pair-6YWdY-Q7.js} +1 -1
  204. package/dist/client/assets/{plan-ladder-CsKZpYtk.js → plan-ladder-CyCOSwmo.js} +1 -1
  205. package/dist/client/assets/plan-wsUBcQ7g.js +1 -0
  206. package/dist/client/assets/{popover-D5cvllcj.js → popover-C-oQerVr.js} +1 -1
  207. package/dist/client/assets/{post-calendar-BjbOMFj8.js → post-calendar-CgGKZchl.js} +1 -1
  208. package/dist/client/assets/{post-editor-Bkg0zAby.js → post-editor-D4Y-MMT2.js} +1 -1
  209. package/dist/client/assets/{preview-content-DOlR7Sto.js → preview-content-Cy0OuCqf.js} +1 -1
  210. package/dist/client/assets/{preview-dialog-BFeDZCyo.js → preview-dialog-DUTRadPh.js} +1 -1
  211. package/dist/client/assets/{preview-panel-hig46M8n.js → preview-panel-DtWn_bhx.js} +1 -1
  212. package/dist/client/assets/{preview-tab-Db6Udxne.js → preview-tab-Bczbv8HB.js} +3 -3
  213. package/dist/client/assets/{product-picker-dialog-BoRMhmF_.js → product-picker-dialog-S83jd6ev.js} +1 -1
  214. package/dist/client/assets/{profile-DWc7hq2C.js → profile-BvSnb--g.js} +1 -1
  215. package/dist/client/assets/{project-app-view-D2zjD9lX.js → project-app-view-anCnu9BG.js} +1 -1
  216. package/dist/client/assets/{project-apps-BccHfSJ8.js → project-apps-C_C2iCTZ.js} +1 -1
  217. package/dist/client/assets/{project-feed-rwZLZcmg.js → project-feed-DvC6WHpM.js} +1 -1
  218. package/dist/client/assets/{project-icon-C5PSWWOk.js → project-icon-C_uHaXmg.js} +1 -1
  219. package/dist/client/assets/project-reports-Cee8YhRw.js +1 -0
  220. package/dist/client/assets/project-tasks-Duj1sO12.js +1 -0
  221. package/dist/client/assets/{projects-yiMF0-RY.js → projects-BQtUpy7O.js} +1 -1
  222. package/dist/client/assets/{projects-empty-state-BbguoYWh.js → projects-empty-state-CfSS9rAY.js} +1 -1
  223. package/dist/client/assets/{prompts-DpUxXr6K.js → prompts-BJfl973v.js} +1 -1
  224. package/dist/client/assets/record-editor-Bv2l9gde.js +1 -0
  225. package/dist/client/assets/{redirect-editor-cabEvZG6.js → redirect-editor-KuJ3OBTg.js} +1 -1
  226. package/dist/client/assets/reports-BZ3C-Rtl.js +1 -0
  227. package/dist/client/assets/{reports-B_iXvMFR.js → reports-DamWZyPm.js} +1 -1
  228. package/dist/client/assets/{reports-onboarding-D2u26MsR.js → reports-onboarding-u4Fg2qqp.js} +1 -1
  229. package/dist/client/assets/{reports-tab-BaXzi2FM.js → reports-tab-Vnuo8P3Z.js} +2 -2
  230. package/dist/client/assets/{repositories-CLCQSYhg.js → repositories-BMAa9URG.js} +1 -1
  231. package/dist/client/assets/repositories-C0nemF_c.js +1 -0
  232. package/dist/client/assets/{repository-binding-CGk3ZX0j.js → repository-binding-DOn_c38k.js} +1 -1
  233. package/dist/client/assets/{repository-import-picker-BTeoI4rZ.js → repository-import-picker-B5Od5ysl.js} +1 -1
  234. package/dist/client/assets/{repository-picker-CoWZ9iTd.js → repository-picker-SpluN2Hm.js} +1 -1
  235. package/dist/client/assets/{require-capability-D-ZlkNFz.js → require-capability-DKAyifuP.js} +1 -1
  236. package/dist/client/assets/{required-auth-layout-BtRjrHP0.js → required-auth-layout-Cn2D0ANa.js} +1 -1
  237. package/dist/client/assets/{reset-password-5BD1CHP9.js → reset-password-BQSMv4al.js} +1 -1
  238. package/dist/client/assets/{resizable-2vxsnemp.js → resizable-DRflfEhN.js} +1 -1
  239. package/dist/client/assets/{resolve-tab-icon-BernL4Vf.js → resolve-tab-icon-CRIhXzmd.js} +1 -1
  240. package/dist/client/assets/{review-settings-QBVdfldx.js → review-settings-lJm8-rF4.js} +1 -1
  241. package/dist/client/assets/{roles-DOHABx88.js → roles-Dw8aG6kE.js} +1 -1
  242. package/dist/client/assets/route-BysNOXcr.js +1 -0
  243. package/dist/client/assets/{route-E8TOccvZ.js → route-D4F6-sOu.js} +1 -1
  244. package/dist/client/assets/{route-DFi5KwM0.js → route-_XWnewH9.js} +1 -1
  245. package/dist/client/assets/{sandbox-lifecycle-context-D_9evUyh.js → sandbox-lifecycle-context-7oc5oJVd.js} +1 -1
  246. package/dist/client/assets/{schema-BEutq4eJ.js → schema-BSJ0sHp6.js} +1 -1
  247. package/dist/client/assets/{schema-L6FFXvke.js → schema-DLSPJnp7.js} +1 -1
  248. package/dist/client/assets/{scroll-area-D7vhzfPi.js → scroll-area-Dx3_jrcN.js} +1 -1
  249. package/dist/client/assets/{search-input-Dujh_El7.js → search-input-DD7c4OUd.js} +1 -1
  250. package/dist/client/assets/{search-toggle-DnvRupWM.js → search-toggle-Cv7LdVcN.js} +1 -1
  251. package/dist/client/assets/{secret-ciphertext-CQx2VEMI.js → secret-ciphertext-DQg1CPV0.js} +1 -1
  252. package/dist/client/assets/{secret-picker-CPXxDZGW.js → secret-picker-V1abFHJN.js} +1 -1
  253. package/dist/client/assets/{secrets-DGJVx-Hd.js → secrets-DwKwF0Be.js} +1 -1
  254. package/dist/client/assets/{sections-CJqhzmZf.js → sections-Bi831sYI.js} +1 -1
  255. package/dist/client/assets/{sections-editor-BtYUAQwb.js → sections-editor-BsnQkscM.js} +1 -1
  256. package/dist/client/assets/{select-DZhmnwp_.js → select-FSISnflw.js} +1 -1
  257. package/dist/client/assets/{select-model-CMMJURkr.js → select-model-DQZrxUSs.js} +1 -1
  258. package/dist/client/assets/{seo-editor-B_llRc49.js → seo-editor-C7jQKy7V.js} +1 -1
  259. package/dist/client/assets/{separator-D1JWkxza.js → separator-CLVnFcId.js} +1 -1
  260. package/dist/client/assets/settings-tab-B5zrdJtB.js +1 -0
  261. package/dist/client/assets/{sheet-EBRPi3dD.js → sheet-DhiO6taC.js} +1 -1
  262. package/dist/client/assets/{shell-layout-Cng6sPGR.js → shell-layout-CoBnb4w9.js} +1 -1
  263. package/dist/client/assets/site-editor-B3fUzfCM.js +1 -0
  264. package/dist/client/assets/{site-editor-toast-CB9KCYI4.js → site-editor-toast-CwYfl4q6.js} +1 -1
  265. package/dist/client/assets/{skills-t2RbhpKV.js → skills-B9bus4iJ.js} +1 -1
  266. package/dist/client/assets/{slider-B1Au3IHI.js → slider-Cx5rpy0r.js} +1 -1
  267. package/dist/client/assets/{sortable.esm-BMPY9Sd5.js → sortable.esm-q9LLqP52.js} +1 -1
  268. package/dist/client/assets/{sso-BCCAXBz3.js → sso-BTwpFuQF.js} +1 -1
  269. package/dist/client/assets/{suggestion-BWGM-l4J.js → suggestion-CZGngaPS.js} +1 -1
  270. package/dist/client/assets/{switch-zkrdrMZj.js → switch-BYCbdFfw.js} +1 -1
  271. package/dist/client/assets/{symbol-Dy_rO5Hd.js → symbol-CUrpU8uk.js} +1 -1
  272. package/dist/client/assets/{synced-repos-Ci3QmgG7.js → synced-repos-BmOh0eYi.js} +1 -1
  273. package/dist/client/assets/{tab-icon-glyph-RNaGE4GF.js → tab-icon-glyph-D3OOWIWn.js} +1 -1
  274. package/dist/client/assets/{table-WldSmBJB.js → table-Ddw2ISvx.js} +1 -1
  275. package/dist/client/assets/{tabs-D6AJgzOF.js → tabs-DhTj8yw2.js} +1 -1
  276. package/dist/client/assets/{task-assignee-avatar-DSa4iRni.js → task-assignee-avatar-B5OEzHzK.js} +1 -1
  277. package/dist/client/assets/{task-board-Dg8D4L_r.js → task-board-D1SFckEs.js} +1 -1
  278. package/dist/client/assets/{task-route-C97BcCaG.js → task-route-BtlGqeQc.js} +1 -1
  279. package/dist/client/assets/{task-status-BYiz6w3h.js → task-status-Crkd0bWM.js} +1 -1
  280. package/dist/client/assets/taskboard-analytics-CMy1GbdL.js +1 -0
  281. package/dist/client/assets/{tasks-BugNujmt.js → tasks--NmM3TR0.js} +1 -1
  282. package/dist/client/assets/tasks-B11vjQQm.js +1 -0
  283. package/dist/client/assets/{textarea-ynJNuYy7.js → textarea-DWhPcLzw.js} +1 -1
  284. package/dist/client/assets/{thread-analytics-CRzIsQDC.js → thread-analytics-CSteZ9_I.js} +1 -1
  285. package/dist/client/assets/{thread-intent-DEna0N6y.js → thread-intent-D8559itm.js} +1 -1
  286. package/dist/client/assets/{thread-route-Bo3gwmaG.js → thread-route-BDPjgqHi.js} +1 -1
  287. package/dist/client/assets/{thread-route-CKIN4nc-.js → thread-route-DkNA3E48.js} +1 -1
  288. package/dist/client/assets/{thread-sheet-body-By8NyP0y.js → thread-sheet-body-C5z794H-.js} +1 -1
  289. package/dist/client/assets/{time-range-picker-CtXKDXpg.js → time-range-picker-BSDJg6fw.js} +1 -1
  290. package/dist/client/assets/{toggle-group-COK-wW8I.js → toggle-group-BlVpp_7t.js} +1 -1
  291. package/dist/client/assets/{tool-namespace-rRU5qMc_.js → tool-namespace-Cx8s90ND.js} +1 -1
  292. package/dist/client/assets/{toolbar-icon-button-BKHwq05w.js → toolbar-icon-button-CDHRFb0a.js} +1 -1
  293. package/dist/client/assets/{tooltip-BwU3TfFp.js → tooltip-BEN3un1D.js} +1 -1
  294. package/dist/client/assets/{tooltipContext-CAHajv8a.js → tooltipContext-DwCYZ3qZ.js} +1 -1
  295. package/dist/client/assets/{track-BPoEwC0E.js → track-DF_jIBxB.js} +1 -1
  296. package/dist/client/assets/{types-DRalEM3C.js → types-_hfdlRdA.js} +1 -1
  297. package/dist/client/assets/{url-slug-COrOe0WW.js → url-slug-D3Cm_8aO.js} +1 -1
  298. package/dist/client/assets/{usage-stats-XZL_1T4w.js → usage-stats-BVNZF_vK.js} +1 -1
  299. package/dist/client/assets/{use-ai-providers-Cp5F1VcY.js → use-ai-providers-CheVdPj0.js} +1 -1
  300. package/dist/client/assets/{use-automations-eFmS2FKe.js → use-automations-CXLdGmUn.js} +1 -1
  301. package/dist/client/assets/{use-autosave-C9nj8WNq.js → use-autosave-CEBKDOdf.js} +1 -1
  302. package/dist/client/assets/{use-chat-layout-state-xTXMyKKk.js → use-chat-layout-state-COV67i0R.js} +1 -1
  303. package/dist/client/assets/{use-clock-tick-Ea25VUYb.js → use-clock-tick-vQJpJ6bo.js} +1 -1
  304. package/dist/client/assets/{use-connect-companion-POnaAIsR.js → use-connect-companion-BDKHIMlH.js} +1 -1
  305. package/dist/client/assets/{use-connection-K9rEqDx3.js → use-connection-hyvgf2AK.js} +1 -1
  306. package/dist/client/assets/{use-content-sync-C_a-vn-B.js → use-content-sync-D-V2aTbb.js} +1 -1
  307. package/dist/client/assets/{use-copy-B5Nw2ln-.js → use-copy-zazyE4Vo.js} +1 -1
  308. package/dist/client/assets/{use-create-virtual-mcp-BM5JgPZg.js → use-create-virtual-mcp-DJFakAHg.js} +1 -1
  309. package/dist/client/assets/{use-date-fns-locale-CtFSWiK4.js → use-date-fns-locale-DPVM_08l.js} +1 -1
  310. package/dist/client/assets/{use-debounced-autosave-CpCeYixJ.js → use-debounced-autosave-2yGut2s1.js} +1 -1
  311. package/dist/client/assets/{use-debounced-value-BOMWTPY3.js → use-debounced-value-B53EfeCb.js} +1 -1
  312. package/dist/client/assets/{use-deco-credits-DR8-Tka6.js → use-deco-credits-CP7S36Yv.js} +1 -1
  313. package/dist/client/assets/{use-decopilot-events-Qf3fSwYr.js → use-decopilot-events-CpbqX2iN.js} +1 -1
  314. package/dist/client/assets/{use-delete-connection-BGCZqvQL.js → use-delete-connection-d05mpe7n.js} +1 -1
  315. package/dist/client/assets/{use-deployment-admin-Bar4XffR.js → use-deployment-admin-DUxD-mc7.js} +1 -1
  316. package/dist/client/assets/{use-ensure-project-folder-SxuhSqkI.js → use-ensure-project-folder-DOcm8B1N.js} +1 -1
  317. package/dist/client/assets/{use-fast-preview-draft-url-EV84odfX.js → use-fast-preview-draft-url-D91J_xkd.js} +1 -1
  318. package/dist/client/assets/{use-file-configs-DCrTPP04.js → use-file-configs-ue4x6ZiE.js} +1 -1
  319. package/dist/client/assets/{use-inbox-feed-bSceDcjX.js → use-inbox-feed-C6vEhX4Z.js} +1 -1
  320. package/dist/client/assets/{use-infinite-scroll-HwZjX02J.js → use-infinite-scroll-DX2hUrro.js} +1 -1
  321. package/dist/client/assets/{use-join-requests-C5AvVu_b.js → use-join-requests-_-2yRxaZ.js} +1 -1
  322. package/dist/client/assets/{use-main-panel-tabs-dd8MU14H.js → use-main-panel-tabs-D2Q-TJnv.js} +1 -1
  323. package/dist/client/assets/{use-main-schema-v8-CEMheePi.js → use-main-schema-v8-9qhvKD29.js} +1 -1
  324. package/dist/client/assets/{use-mcp-auth-status-DijdJpV2.js → use-mcp-auth-status-Bbgx8ryN.js} +1 -1
  325. package/dist/client/assets/{use-mcp-client-BqxufeFQ.js → use-mcp-client-czbUeolO.js} +1 -1
  326. package/dist/client/assets/{use-mcp-prompts-x85qdRTs.js → use-mcp-prompts-DKjhFpww.js} +1 -1
  327. package/dist/client/assets/{use-mcp-tools-C7RNSCm2.js → use-mcp-tools-tT47D9UP.js} +1 -1
  328. package/dist/client/assets/{use-members-hZfDNsyQ.js → use-members-CrcjI34B.js} +1 -1
  329. package/dist/client/assets/{use-mobile-B-6bodzw.js → use-mobile-DGWmoviF.js} +1 -1
  330. package/dist/client/assets/{use-navigate-to-agent-B4nMFFrr.js → use-navigate-to-agent-buLUZSRe.js} +1 -1
  331. package/dist/client/assets/{use-open-billing-url-BnVW18Te.js → use-open-billing-url-C45P627K.js} +1 -1
  332. package/dist/client/assets/{use-org-auth-client-DbZXNKzp.js → use-org-auth-client-D9B8eoGH.js} +1 -1
  333. package/dist/client/assets/{use-org-fs-DvrG4oqK.js → use-org-fs-D6x-b24u.js} +1 -1
  334. package/dist/client/assets/{use-org-repo-syncs-BsfQ-AYu.js → use-org-repo-syncs-CEXDZz0w.js} +1 -1
  335. package/dist/client/assets/{use-org-sso-B5w9Y6-K.js → use-org-sso-DiCiYqVc.js} +1 -1
  336. package/dist/client/assets/{use-organization-roles-DKryRiui.js → use-organization-roles-BQVe8FmZ.js} +1 -1
  337. package/dist/client/assets/{use-organization-settings-CT_gWjCV.js → use-organization-settings-DOZnh8j2.js} +1 -1
  338. package/dist/client/assets/{use-panel-navigate-C5hBMKoK.js → use-panel-navigate-Dw27Kac_.js} +1 -1
  339. package/dist/client/assets/{use-project-native-view-presence-BTvz93hM.js → use-project-native-view-presence-bLOseI5f.js} +1 -1
  340. package/dist/client/assets/{use-project-scope-BOmNgUbL.js → use-project-scope-D4Wa0UIq.js} +1 -1
  341. package/dist/client/assets/{use-recent-apps-DnoPUgq-.js → use-recent-apps-CfWMYqWg.js} +1 -1
  342. package/dist/client/assets/{use-releases-xYpnMQ0G.js → use-releases-DvTtpsEr.js} +1 -1
  343. package/dist/client/assets/{use-reports-diagnostic-CrPfCARR.js → use-reports-diagnostic-Cwi1u-Sx.js} +1 -1
  344. package/dist/client/assets/{use-secrets-BK9OUQjp.js → use-secrets-862Hiwwx.js} +1 -1
  345. package/dist/client/assets/{use-section-preview-base-D-BAP2Kx.js → use-section-preview-base-Ca4lf-nY.js} +1 -1
  346. package/dist/client/assets/{use-sidebar-collapsed-ztBUIrIJ.js → use-sidebar-collapsed-Cdsfw2fo.js} +1 -1
  347. package/dist/client/assets/{use-tags-CRZAuKXI.js → use-tags-CAP1ygrL.js} +1 -1
  348. package/dist/client/assets/{use-task-board-analytics-C3khGqxr.js → use-task-board-analytics-DjS4sCFS.js} +1 -1
  349. package/dist/client/assets/{use-task-board-events-CEFK_U8B.js → use-task-board-events-Dvp4c0Av.js} +1 -1
  350. package/dist/client/assets/{use-task-board-item-prs-D_DLSRFh.js → use-task-board-item-prs-C5kg44zS.js} +1 -1
  351. package/dist/client/assets/{use-task-metadata-DQNI_DYQ.js → use-task-metadata-DaTi9KKH.js} +1 -1
  352. package/dist/client/assets/{use-thread-analytics-CKrVTOjH.js → use-thread-analytics-Cry53iXj.js} +1 -1
  353. package/dist/client/assets/{use-thread-outputs-fctBbSfO.js → use-thread-outputs-fctBiI6a.js} +1 -1
  354. package/dist/client/assets/useInfiniteQuery-BSFydIm7.js +1 -0
  355. package/dist/client/assets/{useQueries-DApBF_hk.js → useQueries-fZYgI5gx.js} +1 -1
  356. package/dist/client/assets/useSuspenseInfiniteQuery-Cs7GINC8.js +1 -0
  357. package/dist/client/assets/{users-B0WV36dy.js → users-CZOtp2UG.js} +1 -1
  358. package/dist/client/assets/{utils-DqDe2PdG.js → utils-DjRsqje4.js} +1 -1
  359. package/dist/client/assets/{variant-calendar-Cw6bsyC8.js → variant-calendar-C-fTqOM-.js} +1 -1
  360. package/dist/client/assets/{variant-draft-pointer-ybS7yl-Y.js → variant-draft-pointer-DZL_MicZ.js} +1 -1
  361. package/dist/client/assets/{view-mode-toggle-B4L0Gqe-.js → view-mode-toggle-BIDnQDfR.js} +1 -1
  362. package/dist/client/assets/{virtual-mcp-m7xS4Fyh.js → virtual-mcp-DBd93SS3.js} +1 -1
  363. package/dist/client/assets/{watch-sse-pool-BZYzglPJ.js → watch-sse-pool-nDCqas3x.js} +1 -1
  364. package/dist/client/index.html +1 -1
  365. package/dist/server/server.js +1 -1
  366. package/package.json +1 -1
  367. package/dist/client/assets/agent-app-BvW3NdzM.js +0 -1
  368. package/dist/client/assets/agent-deck-VsdzJHTb.js +0 -1
  369. package/dist/client/assets/agent-file-BS9xNFAD.js +0 -1
  370. package/dist/client/assets/agent-library-DGYQBCM9.js +0 -1
  371. package/dist/client/assets/agent-library-file-DewMMSvO.js +0 -1
  372. package/dist/client/assets/agent-settings-CSFW5nek.js +0 -1
  373. package/dist/client/assets/agent-site-editor-code-MU0whE6U.js +0 -2
  374. package/dist/client/assets/agent-site-editor-content-zSQpYEGg.js +0 -1
  375. package/dist/client/assets/agent-site-editor-preview-txveR_ds.js +0 -1
  376. package/dist/client/assets/agent-view-B4w7PCL8.js +0 -1
  377. package/dist/client/assets/api-keys-DZBvZYm9.js +0 -1
  378. package/dist/client/assets/cms-settings-editor-TWoAtc7Q.js +0 -1
  379. package/dist/client/assets/config-Ujr94uo2.js +0 -1
  380. package/dist/client/assets/flat-project-CoYmpFOt.js +0 -1
  381. package/dist/client/assets/library-DgG4D6VI.js +0 -1
  382. package/dist/client/assets/monitoring-Bbj5Lns2.js +0 -1
  383. package/dist/client/assets/plan-BlqG-PLe.js +0 -1
  384. package/dist/client/assets/project-reports-C5VIbCKB.js +0 -1
  385. package/dist/client/assets/project-tasks-DY-VwdNN.js +0 -1
  386. package/dist/client/assets/record-editor-CgQYmq0a.js +0 -1
  387. package/dist/client/assets/reports-CDdk6ylM.js +0 -1
  388. package/dist/client/assets/repositories-BLczkc5V.js +0 -1
  389. package/dist/client/assets/route-BJz_Tse0.js +0 -1
  390. package/dist/client/assets/settings-tab-BBqyUPly.js +0 -1
  391. package/dist/client/assets/site-editor-BGIwq6Fv.js +0 -1
  392. package/dist/client/assets/taskboard-analytics-DAGovxBg.js +0 -1
  393. package/dist/client/assets/tasks-DAULEt97.js +0 -1
  394. package/dist/client/assets/useInfiniteQuery-DYe2VDkL.js +0 -1
  395. package/dist/client/assets/useSuspenseInfiniteQuery-DrwXhpXt.js +0 -1
@@ -1 +1 @@
1
- import{c as w,au as ee,aw as te,b as J,a2 as ne,aa as se,k as ae,j as s,l as ie,n as Q,r as M,d as oe,aK as V,H as F,P,a_ as le,B as re}from"./index-CNWJYHvX.js";import{u as ce}from"./use-mobile-B-6bodzw.js";import{h as de,c as ue,u as he,m as me}from"./use-sidebar-collapsed-ztBUIrIJ.js";import{a as X,R as fe,b as pe}from"./resizable-2vxsnemp.js";import{c as ge,r as xe,m as be}from"./use-chat-layout-state-xTXMyKKk.js";import{N as je,m as W}from"./agent-icon-BAsaPIPW.js";import{c as q,T as G,a as U}from"./tooltip-BwU3TfFp.js";import{T as D}from"./toolbar-icon-button-BKHwq05w.js";import{a as ye}from"./use-project-scope-BOmNgUbL.js";import{c as Se}from"./repository-binding-CGk3ZX0j.js";function Y(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function ve(l,e){const a=w.c(8);let o;a[0]!==e?(o=c=>Y(c,e),a[0]=e,a[1]=o):o=a[1];const[t,i]=ee(l,o);let n;a[2]!==e||a[3]!==t?(n=Y(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==i||a[6]!==n?(d=[n,i],a[5]=i,a[6]=n,a[7]=d):d=a[7],d}const Ce=33;function Te(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=te.sidePanelWidth(),l[0]=e):e=l[0],ve(e,Ce)}function Ne(l){const e=w.c(55),{actions:a,navigation:o}=l,t=J(),{org:i}=ne(),n=ye(),d=Se(n),c=de(),{toggleSidebar:r}=ue(),h=he(),u=Z(),m=se();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={select:Le},e[0]=b):b=e[0];const f=ae(b),j=f?.mainView==="overview";let N;e[1]!==d?.title||e[2]!==t?(N=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=N):N=e[3];const x=N;let v;e[4]!==j||e[5]!==f?.mainView||e[6]!==f?.pageTitle||e[7]!==m||e[8]!==x||e[9]!==n||e[10]!==t?(v=j?n?x:t("sidebar.navDestinations.home"):m&&f?.mainView==="files"?t("sidebar.navDestinations.context"):t(f?.pageTitle??"page.view"),e[4]=j,e[5]=f?.mainView,e[6]=f?.pageTitle,e[7]=m,e[8]=x,e[9]=n,e[10]=t,e[11]=v):v=e[11];const y=v;let L;e[12]!==i.slug||e[13]!==m||e[14]!==n?(L=m?{to:"/$org/projects",params:{org:i.slug},search:{project:n??void 0}}:{to:"/$org/projects/$agentId",params:{org:i.slug,agentId:n??""}},e[12]=i.slug,e[13]=m,e[14]=n,e[15]=L):L=e[15];const p=L;let g;if(e[16]!==c||e[17]!==j||e[18]!==i.slug||e[19]!==p||e[20]!==x||e[21]!==n||e[22]!==t||e[23]!==y){if(g=[],c){let T;e[25]!==t?(T=t("sidebar.navDestinations.settings"),e[25]=t,e[26]=T):T=e[26];let E;e[27]!==i.slug?(E={to:"/$org/settings/general",params:{org:i.slug}},e[27]=i.slug,e[28]=E):E=e[28];let $;e[29]!==T||e[30]!==E?($={key:"settings",label:T,link:E},e[29]=T,e[30]=E,e[31]=$):$=e[31],g.push($)}else if(n&&!j){let T;e[32]!==p||e[33]!==x?(T={key:"project",label:x,link:p},e[32]=p,e[33]=x,e[34]=T):T=e[34],g.push(T)}let R;e[35]!==y?(R={key:"page",label:y},e[35]=y,e[36]=R):R=e[36],g.push(R),e[16]=c,e[17]=j,e[18]=i.slug,e[19]=p,e[20]=x,e[21]=n,e[22]=t,e[23]=y,e[24]=g}else g=e[24];const C=m&&h;let S;e[37]!==u||e[38]!==C||e[39]!==t?(S=C&&u&&!u.threadless&&s.jsxs(q,{children:[s.jsx(G,{asChild:!0,children:s.jsx(D,{"aria-label":t(u.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":u.threadOpen,active:u.threadOpen,onClick:u.toggleThread,children:s.jsx(je,{size:16})})}),s.jsx(U,{side:"bottom",children:t(u.threadOpen?"page.closeThread":"page.openThread")})]}),e[37]=u,e[38]=C,e[39]=t,e[40]=S):S=e[40];const z=S;let _;e[41]!==m||e[42]!==C||e[43]!==t||e[44]!==r?(_=m?s.jsxs(q,{children:[s.jsx(G,{asChild:!0,children:s.jsx(D,{className:ie(!C&&"md:hidden"),onClick:r,"aria-label":t("page.expandSidebar"),children:s.jsx(W,{size:16})})}),s.jsx(U,{side:"bottom",children:t("page.expandSidebar")})]}):s.jsx(D,{className:"md:hidden",onClick:r,"aria-label":t("layouts.shellControls.toggleSidebar"),children:s.jsx(W,{size:16})}),e[41]=m,e[42]=C,e[43]=t,e[44]=r,e[45]=_):_=e[45];let O;e[46]!==z||e[47]!==_?(O=s.jsxs(s.Fragment,{children:[_,z]}),e[46]=z,e[47]=_,e[48]=O):O=e[48];let I;return e[49]!==a||e[50]!==g||e[51]!==o||e[52]!==i.name||e[53]!==O?(I=s.jsx(Q.Header,{leading:O,breadcrumbs:g,scope:i.name,actions:a,navigation:o}),e[49]=a,e[50]=g,e[51]=o,e[52]=i.name,e[53]=O,e[54]=I):I=e[54],I}function Le(l){return l.matches.findLast(we)?.staticData}function we(l){return l.staticData.pageTitle}const k="chat-layout-thread",B="chat-layout-content",A=M.createContext(null);function Pe(){return H()}function Z(){return M.use(A)}function H(){const l=M.use(A);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function ze(l){const e=w.c(23),{children:a,...o}=l,t=ce(),i=oe(),n=M.useRef(null),[d,c]=Te(),{threadOpen:r,contentOpen:h}=o,u=ge(o),m=r&&h?d:u.side,b=100-m,f=p=>{const g=p.getLayout(),C=g[k],S=g[B];typeof C!="number"||typeof S!="number"||Math.abs(C-m)<.001&&Math.abs(S-b)<.001||p.setLayout({[k]:m,[B]:b})},j=xe({visibility:o,threadVisibilityExplicit:o.threadVisibilityExplicit});let N;e[0]!==t||e[1]!==o||e[2]!==j?(N={...o,isMobile:t,mobileSurface:j},e[0]=t,e[1]=o,e[2]=j,e[3]=N):N=e[3];const x=N;let v;e[4]!==t||e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==x?(v=!o.threadless&&s.jsx(me,{open:t?x.mobileSurface==="chat":r,onToggle:()=>{t?i({to:".",search:p=>({...p,...be(x.mobileSurface==="chat"?"main":"chat")}),replace:!0}):o.toggleThread()}}),e[4]=t,e[5]=o,e[6]=i,e[7]=r,e[8]=x,e[9]=v):v=e[9];let y;e[10]!==a||e[11]!==h||e[12]!==b||e[13]!==t||e[14]!==c||e[15]!==f||e[16]!==r||e[17]!==m?(y=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:p=>{if(n.current=p,!p)return;let g=!0;return queueMicrotask(()=>{g&&f(p)}),()=>{g=!1,n.current===p&&(n.current=null)}},defaultLayout:{[k]:m,[B]:b},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:(p,g)=>{const{isUserInteraction:C}=g;if(!C){const z=n.current;z&&f(z);return}const S=p[k];r&&h&&typeof S=="number"&&S>0&&S<100&&c(S)},children:a}),e[10]=a,e[11]=h,e[12]=b,e[13]=t,e[14]=c,e[15]=f,e[16]=r,e[17]=m,e[18]=y):y=e[18];let L;return e[19]!==v||e[20]!==y||e[21]!==x?(L=s.jsxs(A,{value:x,children:[v,y]}),e[19]=v,e[20]=y,e[21]=x,e[22]=L):L=e[22],L}function _e(l){const e=w.c(16),{children:a,topbar:o}=l,t=H();if(t.isMobile){let u;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==o?(u=t.mobileSurface==="chat"?s.jsxs(P,{variant:"plain","data-slot":"chat-layout-thread",children:[o,s.jsx(P.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=o,e[3]=u):u=e[3],u}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==o?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[o,s.jsx(P.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=o,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(P,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let c;e[10]!==i||e[11]!==d?(c=s.jsx(X,{id:k,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=i,e[11]=d,e[12]=c):c=e[12];let r;e[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(pe,{className:"bg-sidebar"}),e[13]=r):r=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,r]}),e[14]=c,e[15]=h):h=e[15],h}function Oe({children:l,routeId:e}){return l}function K(l){const e=w.c(23),{children:a,actions:o,drawer:t,aside:i}=l,n=H();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let c;e[0]!==o||e[1]!==n.contentNavigation?(c=s.jsx(Ne,{navigation:n.contentNavigation,actions:o}),e[0]=o,e[1]=n.contentNavigation,e[2]=c):c=e[2];let r;e[3]!==a||e[4]!==n.contentKey?(r=s.jsx(V,{children:s.jsx(Oe,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=r):r=e[5];let h;e[6]!==n.contentKey||e[7]!==r?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(F,{children:r},n.contentKey)}),e[6]=n.contentKey,e[7]=r,e[8]=h):h=e[8];let u;e[9]!==t||e[10]!==h?(u=s.jsxs(P.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==u?(m=s.jsxs(Q.Breadcrumbs.Provider,{children:[c,u]}),e[12]=c,e[13]=u,e[14]=m):m=e[14];let b;e[15]!==d||e[16]!==m?(b=s.jsx(P,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=b):b=e[17];const f=b;let j;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==f?(j=n.isMobile?f:s.jsx(X,{id:B,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:f}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(P,{"data-testid":"aside-panel",children:s.jsx(F,{children:s.jsx(V,{children:i})},M.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=f,e[22]=j):j=e[22],j}function Ee(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(K,{children:s.jsx(le,{})}),l[0]=e):e=l[0],e}function ke(l){const e=w.c(18),{error:a,reset:o}=l,t=J();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,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 c;e[7]!==d?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==t?(r=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=r):r=e[10];let h;e[11]!==o||e[12]!==r?(h=s.jsx(re,{variant:"outline",onClick:o,children:r}),e[11]=o,e[12]=r,e[13]=h):h=e[13];let u;return e[14]!==n||e[15]!==c||e[16]!==h?(u=s.jsx(K,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=u):u=e[17],u}const Me=Object.assign(ze,{Thread:_e,Content:K}),We=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Me,ChatLayoutError:ke,ChatLayoutPending:Ee,useChatLayout:Pe,useOptionalChatLayout:Z},Symbol.toStringTag,{value:"Module"}));export{Me as C,Ne as R,We as i,Pe as u};
1
+ import{c as w,au as ee,aw as te,b as J,a2 as ne,aa as se,k as ae,j as s,l as ie,n as Q,r as M,d as oe,aK as V,H as F,P,a_ as le,B as re}from"./index-BEk_WTZs.js";import{u as ce}from"./use-mobile-DGWmoviF.js";import{h as de,c as ue,u as he,m as me}from"./use-sidebar-collapsed-Cdsfw2fo.js";import{a as X,R as fe,b as pe}from"./resizable-DRflfEhN.js";import{c as ge,r as xe,m as be}from"./use-chat-layout-state-COV67i0R.js";import{N as je,m as W}from"./agent-icon-DwmxbPaq.js";import{c as q,T as G,a as U}from"./tooltip-BEN3un1D.js";import{T as D}from"./toolbar-icon-button-CDHRFb0a.js";import{a as ye}from"./use-project-scope-D4Wa0UIq.js";import{c as Se}from"./repository-binding-DOn_c38k.js";function Y(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function ve(l,e){const a=w.c(8);let o;a[0]!==e?(o=c=>Y(c,e),a[0]=e,a[1]=o):o=a[1];const[t,i]=ee(l,o);let n;a[2]!==e||a[3]!==t?(n=Y(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==i||a[6]!==n?(d=[n,i],a[5]=i,a[6]=n,a[7]=d):d=a[7],d}const Ce=33;function Te(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=te.sidePanelWidth(),l[0]=e):e=l[0],ve(e,Ce)}function Ne(l){const e=w.c(55),{actions:a,navigation:o}=l,t=J(),{org:i}=ne(),n=ye(),d=Se(n),c=de(),{toggleSidebar:r}=ue(),h=he(),u=Z(),m=se();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={select:Le},e[0]=b):b=e[0];const f=ae(b),j=f?.mainView==="overview";let N;e[1]!==d?.title||e[2]!==t?(N=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=N):N=e[3];const x=N;let v;e[4]!==j||e[5]!==f?.mainView||e[6]!==f?.pageTitle||e[7]!==m||e[8]!==x||e[9]!==n||e[10]!==t?(v=j?n?x:t("sidebar.navDestinations.home"):m&&f?.mainView==="files"?t("sidebar.navDestinations.context"):t(f?.pageTitle??"page.view"),e[4]=j,e[5]=f?.mainView,e[6]=f?.pageTitle,e[7]=m,e[8]=x,e[9]=n,e[10]=t,e[11]=v):v=e[11];const y=v;let L;e[12]!==i.slug||e[13]!==m||e[14]!==n?(L=m?{to:"/$org/projects",params:{org:i.slug},search:{project:n??void 0}}:{to:"/$org/projects/$agentId",params:{org:i.slug,agentId:n??""}},e[12]=i.slug,e[13]=m,e[14]=n,e[15]=L):L=e[15];const p=L;let g;if(e[16]!==c||e[17]!==j||e[18]!==i.slug||e[19]!==p||e[20]!==x||e[21]!==n||e[22]!==t||e[23]!==y){if(g=[],c){let T;e[25]!==t?(T=t("sidebar.navDestinations.settings"),e[25]=t,e[26]=T):T=e[26];let E;e[27]!==i.slug?(E={to:"/$org/settings/general",params:{org:i.slug}},e[27]=i.slug,e[28]=E):E=e[28];let $;e[29]!==T||e[30]!==E?($={key:"settings",label:T,link:E},e[29]=T,e[30]=E,e[31]=$):$=e[31],g.push($)}else if(n&&!j){let T;e[32]!==p||e[33]!==x?(T={key:"project",label:x,link:p},e[32]=p,e[33]=x,e[34]=T):T=e[34],g.push(T)}let R;e[35]!==y?(R={key:"page",label:y},e[35]=y,e[36]=R):R=e[36],g.push(R),e[16]=c,e[17]=j,e[18]=i.slug,e[19]=p,e[20]=x,e[21]=n,e[22]=t,e[23]=y,e[24]=g}else g=e[24];const C=m&&h;let S;e[37]!==u||e[38]!==C||e[39]!==t?(S=C&&u&&!u.threadless&&s.jsxs(q,{children:[s.jsx(G,{asChild:!0,children:s.jsx(D,{"aria-label":t(u.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":u.threadOpen,active:u.threadOpen,onClick:u.toggleThread,children:s.jsx(je,{size:16})})}),s.jsx(U,{side:"bottom",children:t(u.threadOpen?"page.closeThread":"page.openThread")})]}),e[37]=u,e[38]=C,e[39]=t,e[40]=S):S=e[40];const z=S;let _;e[41]!==m||e[42]!==C||e[43]!==t||e[44]!==r?(_=m?s.jsxs(q,{children:[s.jsx(G,{asChild:!0,children:s.jsx(D,{className:ie(!C&&"md:hidden"),onClick:r,"aria-label":t("page.expandSidebar"),children:s.jsx(W,{size:16})})}),s.jsx(U,{side:"bottom",children:t("page.expandSidebar")})]}):s.jsx(D,{className:"md:hidden",onClick:r,"aria-label":t("layouts.shellControls.toggleSidebar"),children:s.jsx(W,{size:16})}),e[41]=m,e[42]=C,e[43]=t,e[44]=r,e[45]=_):_=e[45];let O;e[46]!==z||e[47]!==_?(O=s.jsxs(s.Fragment,{children:[_,z]}),e[46]=z,e[47]=_,e[48]=O):O=e[48];let I;return e[49]!==a||e[50]!==g||e[51]!==o||e[52]!==i.name||e[53]!==O?(I=s.jsx(Q.Header,{leading:O,breadcrumbs:g,scope:i.name,actions:a,navigation:o}),e[49]=a,e[50]=g,e[51]=o,e[52]=i.name,e[53]=O,e[54]=I):I=e[54],I}function Le(l){return l.matches.findLast(we)?.staticData}function we(l){return l.staticData.pageTitle}const k="chat-layout-thread",B="chat-layout-content",A=M.createContext(null);function Pe(){return H()}function Z(){return M.use(A)}function H(){const l=M.use(A);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function ze(l){const e=w.c(23),{children:a,...o}=l,t=ce(),i=oe(),n=M.useRef(null),[d,c]=Te(),{threadOpen:r,contentOpen:h}=o,u=ge(o),m=r&&h?d:u.side,b=100-m,f=p=>{const g=p.getLayout(),C=g[k],S=g[B];typeof C!="number"||typeof S!="number"||Math.abs(C-m)<.001&&Math.abs(S-b)<.001||p.setLayout({[k]:m,[B]:b})},j=xe({visibility:o,threadVisibilityExplicit:o.threadVisibilityExplicit});let N;e[0]!==t||e[1]!==o||e[2]!==j?(N={...o,isMobile:t,mobileSurface:j},e[0]=t,e[1]=o,e[2]=j,e[3]=N):N=e[3];const x=N;let v;e[4]!==t||e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==x?(v=!o.threadless&&s.jsx(me,{open:t?x.mobileSurface==="chat":r,onToggle:()=>{t?i({to:".",search:p=>({...p,...be(x.mobileSurface==="chat"?"main":"chat")}),replace:!0}):o.toggleThread()}}),e[4]=t,e[5]=o,e[6]=i,e[7]=r,e[8]=x,e[9]=v):v=e[9];let y;e[10]!==a||e[11]!==h||e[12]!==b||e[13]!==t||e[14]!==c||e[15]!==f||e[16]!==r||e[17]!==m?(y=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:p=>{if(n.current=p,!p)return;let g=!0;return queueMicrotask(()=>{g&&f(p)}),()=>{g=!1,n.current===p&&(n.current=null)}},defaultLayout:{[k]:m,[B]:b},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:(p,g)=>{const{isUserInteraction:C}=g;if(!C){const z=n.current;z&&f(z);return}const S=p[k];r&&h&&typeof S=="number"&&S>0&&S<100&&c(S)},children:a}),e[10]=a,e[11]=h,e[12]=b,e[13]=t,e[14]=c,e[15]=f,e[16]=r,e[17]=m,e[18]=y):y=e[18];let L;return e[19]!==v||e[20]!==y||e[21]!==x?(L=s.jsxs(A,{value:x,children:[v,y]}),e[19]=v,e[20]=y,e[21]=x,e[22]=L):L=e[22],L}function _e(l){const e=w.c(16),{children:a,topbar:o}=l,t=H();if(t.isMobile){let u;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==o?(u=t.mobileSurface==="chat"?s.jsxs(P,{variant:"plain","data-slot":"chat-layout-thread",children:[o,s.jsx(P.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=o,e[3]=u):u=e[3],u}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==o?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[o,s.jsx(P.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=o,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(P,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let c;e[10]!==i||e[11]!==d?(c=s.jsx(X,{id:k,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=i,e[11]=d,e[12]=c):c=e[12];let r;e[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(pe,{className:"bg-sidebar"}),e[13]=r):r=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,r]}),e[14]=c,e[15]=h):h=e[15],h}function Oe({children:l,routeId:e}){return l}function K(l){const e=w.c(23),{children:a,actions:o,drawer:t,aside:i}=l,n=H();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let c;e[0]!==o||e[1]!==n.contentNavigation?(c=s.jsx(Ne,{navigation:n.contentNavigation,actions:o}),e[0]=o,e[1]=n.contentNavigation,e[2]=c):c=e[2];let r;e[3]!==a||e[4]!==n.contentKey?(r=s.jsx(V,{children:s.jsx(Oe,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=r):r=e[5];let h;e[6]!==n.contentKey||e[7]!==r?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(F,{children:r},n.contentKey)}),e[6]=n.contentKey,e[7]=r,e[8]=h):h=e[8];let u;e[9]!==t||e[10]!==h?(u=s.jsxs(P.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==u?(m=s.jsxs(Q.Breadcrumbs.Provider,{children:[c,u]}),e[12]=c,e[13]=u,e[14]=m):m=e[14];let b;e[15]!==d||e[16]!==m?(b=s.jsx(P,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=b):b=e[17];const f=b;let j;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==f?(j=n.isMobile?f:s.jsx(X,{id:B,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:f}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(P,{"data-testid":"aside-panel",children:s.jsx(F,{children:s.jsx(V,{children:i})},M.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=f,e[22]=j):j=e[22],j}function Ee(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(K,{children:s.jsx(le,{})}),l[0]=e):e=l[0],e}function ke(l){const e=w.c(18),{error:a,reset:o}=l,t=J();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,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 c;e[7]!==d?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==t?(r=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=r):r=e[10];let h;e[11]!==o||e[12]!==r?(h=s.jsx(re,{variant:"outline",onClick:o,children:r}),e[11]=o,e[12]=r,e[13]=h):h=e[13];let u;return e[14]!==n||e[15]!==c||e[16]!==h?(u=s.jsx(K,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=u):u=e[17],u}const Me=Object.assign(ze,{Thread:_e,Content:K}),We=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Me,ChatLayoutError:ke,ChatLayoutPending:Ee,useChatLayout:Pe,useOptionalChatLayout:Z},Symbol.toStringTag,{value:"Module"}));export{Me as C,Ne as R,We as i,Pe as u};
@@ -1,4 +1,4 @@
1
- import{c as $,b as j,r as E,j as x,l as q,af 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-CNWJYHvX.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-XZL_1T4w.js";import{T as _,n as Wt,i as Ut,E as Gt}from"./editor-classes-BJdm0od6.js";import{a as Zt,e as nt,s as Vt,S as Kt}from"./suggestion-BWGM-l4J.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-BPxS5t0S.js";import{ak as un,al as hn,an as dn,a1 as pn,bg as fn,aW as gn}from"./agent-icon-BAsaPIPW.js";import{i as mn}from"./SwitchHorizontal01-CVhIGWzI.js";import{i as kn}from"./Link01-BkraNRbc.js";import{s as bn}from"./Trash01-BWvgZ-My.js";import{j as xn,b as wn}from"./use-org-fs-DvrG4oqK.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-Dkv8vF7I.js";import{A as Rn}from"./avatar-D92LQoMs.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-DEXvL0cT.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-DbZXNKzp.js";import{I as Hn}from"./icon-button-BMIQVqVD.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"),Gn=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 Zn(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,Zn(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,af 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-BEk_WTZs.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-BVNZF_vK.js";import{T as _,n as Wt,i as Ut,E as Gt}from"./editor-classes-vywjIAzY.js";import{a as Zt,e as nt,s as Vt,S as Kt}from"./suggestion-CZGngaPS.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-D30IA74D.js";import{ak as un,al as hn,an as dn,a1 as pn,bg as fn,aW as gn}from"./agent-icon-DwmxbPaq.js";import{i as mn}from"./SwitchHorizontal01-Lv3kQi4S.js";import{i as kn}from"./Link01-D28Oc9En.js";import{s as bn}from"./Trash01-DX9NEJ4w.js";import{j as xn,b as wn}from"./use-org-fs-D6x-b24u.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-BxVSyqCQ.js";import{A as Rn}from"./avatar-BJGuSqS3.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-D1ymY4gO.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-D9B8eoGH.js";import{I as Hn}from"./icon-button-BrZlJXH5.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"),Gn=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 Zn(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,Zn(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 G(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:G(n,`
@@ -1 +1 @@
1
- import{c as f,a2 as h,fc as d,j as g,N as m,ac as p,a0 as j}from"./index-CNWJYHvX.js";import{L as v}from"./legacy-main-redirect-CXWM5YMx.js";import"./thread-route-CKIN4nc-.js";const x=j("/shell/$org/org-shell/");function L(){const t=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let e;t[0]!==i||t[1]!==a.slug||t[2]!==l||t[3]!==o?(e=d({org:a.slug,agentId:o,main:i,search:l}),t[0]=i,t[1]=a.slug,t[2]=l,t[3]=o,t[4]=e):e=t[4];const s=e;if(s?.kind==="canonical"){let r;return t[5]!==s?(r=g.jsx(v,{target:s}),t[5]=s,t[6]=r):r=t[6],r}}let c;t[7]!==o?(c=o?.trim()||null,t[7]=o,t[8]=c):c=t[8];const n=c;if(n){let e;t[9]!==a.slug||t[10]!==n?(e={org:a.slug,agentId:n},t[9]=a.slug,t[10]=n,t[11]=e):e=t[11];let s;t[12]!==l?(s={...l,virtualmcpid:void 0},t[12]=l,t[13]=s):s=t[13];let r;return t[14]!==e||t[15]!==s?(r=g.jsx(m,{to:p.projects,params:e,search:s,hash:!0,replace:!0}),t[14]=e,t[15]=s,t[16]=r):r=t[16],r}let u;return t[17]!==a.slug?(u=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),t[17]=a.slug,t[18]=u):u=t[18],u}function N(t){return{...t,virtualmcpid:void 0}}export{L as default};
1
+ import{c as f,a2 as h,fc as d,j as g,N as m,ac as p,a0 as j}from"./index-BEk_WTZs.js";import{L as v}from"./legacy-main-redirect-Cv0nziD7.js";import"./thread-route-DkNA3E48.js";const x=j("/shell/$org/org-shell/");function L(){const t=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let e;t[0]!==i||t[1]!==a.slug||t[2]!==l||t[3]!==o?(e=d({org:a.slug,agentId:o,main:i,search:l}),t[0]=i,t[1]=a.slug,t[2]=l,t[3]=o,t[4]=e):e=t[4];const s=e;if(s?.kind==="canonical"){let r;return t[5]!==s?(r=g.jsx(v,{target:s}),t[5]=s,t[6]=r):r=t[6],r}}let c;t[7]!==o?(c=o?.trim()||null,t[7]=o,t[8]=c):c=t[8];const n=c;if(n){let e;t[9]!==a.slug||t[10]!==n?(e={org:a.slug,agentId:n},t[9]=a.slug,t[10]=n,t[11]=e):e=t[11];let s;t[12]!==l?(s={...l,virtualmcpid:void 0},t[12]=l,t[13]=s):s=t[13];let r;return t[14]!==e||t[15]!==s?(r=g.jsx(m,{to:p.projects,params:e,search:s,hash:!0,replace:!0}),t[14]=e,t[15]=s,t[16]=r):r=t[16],r}let u;return t[17]!==a.slug?(u=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),t[17]=a.slug,t[18]=u):u=t[18],u}function N(t){return{...t,virtualmcpid:void 0}}export{L as default};